Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
feat(frontend-components): add shared edit dialog primitives
Josuéb1c94a8ab1f5
diff --git a/packages/frontend-components/package-lock.json b/packages/frontend-components/package-lock.jsonindex 168bcfdc2..5a906df1e 100644--- a/packages/frontend-components/package-lock.json+++ b/packages/frontend-components/package-lock.json@@ -8,70 +8,1553 @@"name": "@clerum/frontend-components","version": "0.1.0","devDependencies": {+ "@testing-library/jest-dom": "^7.0.1",+ "@testing-library/react": "^16.3.3",+ "@testing-library/user-event": "^14.6.7","@types/react": "18.3.28","@types/react-dom": "18.3.7",+ "jsdom": "^29.1.1","react": "^18.3.1","react-dom": "^18.3.1",- "typescript": "^5.9.2"+ "typescript": "^5.9.2",+ "vitest": "^5.0.1"},"peerDependencies": {"react": "^18.3.1","react-dom": "^18.3.1"}},+ "node_modules/@adobe/css-tools": {+ "version": "4.5.0",+ "resolved": "https://registry.npmjs.org/@adobe/css-tools/-/css-tools-4.5.0.tgz",+ "integrity": "sha512-6OzddxPio9UiWTCemp4N8cYLV2ZN1ncRnV1cVGtve7dhPOtRkleRyx32GQCYSwDYgaHU3USMm84tNsvKzRCa1Q==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@asamuzakjp/css-color": {+ "version": "5.1.11",+ "resolved": "https://registry.npmjs.org/@asamuzakjp/css-color/-/css-color-5.1.11.tgz",+ "integrity": "sha512-KVw6qIiCTUQhByfTd78h2yD1/00waTmm9uy/R7Ck/ctUyAPj+AEDLkQIdJW0T8+qGgj3j5bpNKK7Q3G+LedJWg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@asamuzakjp/generational-cache": "^1.0.1",+ "@csstools/css-calc": "^3.2.0",+ "@csstools/css-color-parser": "^4.1.0",+ "@csstools/css-parser-algorithms": "^4.0.0",+ "@csstools/css-tokenizer": "^4.0.0"+ },+ "engines": {+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0"+ }+ },+ "node_modules/@asamuzakjp/dom-selector": {+ "version": "7.1.1",+ "resolved": "https://registry.npmjs.org/@asamuzakjp/dom-selector/-/dom-selector-7.1.1.tgz",+ "integrity": "sha512-67RZDnYRc8H/8MLDgQCDE//zoqVFwajkepHZgmXrbwybzXOEwOWGPYGmALYl9J2DOLfFPPs6kKCqmbzV895hTQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@asamuzakjp/generational-cache": "^1.0.1",+ "@asamuzakjp/nwsapi": "^2.3.9",+ "bidi-js": "^1.0.3",+ "css-tree": "^3.2.1",+ "is-potential-custom-element-name": "^1.0.1"+ },+ "engines": {+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0"+ }+ },+ "node_modules/@asamuzakjp/generational-cache": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/@asamuzakjp/generational-cache/-/generational-cache-1.0.1.tgz",+ "integrity": "sha512-wajfB8KqzMCN2KGNFdLkReeHncd0AslUSrvHVvvYWuU8ghncRJoA50kT3zP9MVL0+9g4/67H+cdvBskj9THPzg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0"+ }+ },+ "node_modules/@asamuzakjp/nwsapi": {+ "version": "2.3.9",+ "resolved": "https://registry.npmjs.org/@asamuzakjp/nwsapi/-/nwsapi-2.3.9.tgz",+ "integrity": "sha512-n8GuYSrI9bF7FFZ/SjhwevlHc8xaVlb/7HmHelnc/PZXBD2ZR49NnN9sMMuDdEGPeeRQ5d0hqlSlEpgCX3Wl0Q==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@babel/code-frame": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.7.tgz",+ "integrity": "sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "@babel/helper-validator-identifier": "^7.29.7",+ "js-tokens": "^4.0.0",+ "picocolors": "^1.1.1"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-validator-identifier": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz",+ "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/runtime": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.7.tgz",+ "integrity": "sha512-Nq8OhGWiZIZGV6hLHoyAKLLcJihP/xFeBMGJoUrxTX2psI8dCifzLhZISFb+VWS3wFMRDmCGw5R+dOySCqPLhw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@bramus/specificity": {+ "version": "2.4.2",+ "resolved": "https://registry.npmjs.org/@bramus/specificity/-/specificity-2.4.2.tgz",+ "integrity": "sha512-ctxtJ/eA+t+6q2++vj5j7FYX3nRu311q1wfYH3xjlLOsczhlhxAg2FWNUXhpGvAw3BWo1xBcvOV6/YLc2r5FJw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "css-tree": "^3.0.0"+ },+ "bin": {+ "specificity": "bin/cli.js"+ }+ },+ "node_modules/@csstools/color-helpers": {+ "version": "6.1.1",+ "resolved": "https://registry.npmjs.org/@csstools/color-helpers/-/color-helpers-6.1.1.tgz",+ "integrity": "sha512-gLNsunvwf3mCi5u5o46/Z/JcJMnhbHSaZ69rkgPzNM3J4s8hWwpPUQB6/tt0EDFyCiWzxANlx+2LJwpYj4zS1w==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/csstools"+ },+ {+ "type": "opencollective",+ "url": "https://opencollective.com/csstools"+ }+ ],+ "license": "MIT-0",+ "engines": {+ "node": ">=20.19.0"+ }+ },+ "node_modules/@csstools/css-calc": {+ "version": "3.4.0",+ "resolved": "https://registry.npmjs.org/@csstools/css-calc/-/css-calc-3.4.0.tgz",+ "integrity": "sha512-XQKj5B7QiZcHiegCOCAzcAOJdhGgWOHbbu62h5e5mkHnn8lWcfiJhllkqWmxu5zWR9jucPHuo1iTB56P033hcg==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/csstools"+ },+ {+ "type": "opencollective",+ "url": "https://opencollective.com/csstools"+ }+ ],+ "license": "MIT",+ "engines": {+ "node": ">=20.19.0"+ },+ "peerDependencies": {+ "@csstools/css-parser-algorithms": "^4.0.0",+ "@csstools/css-tokenizer": "^4.0.0"+ }+ },+ "node_modules/@csstools/css-color-parser": {+ "version": "4.2.3",+ "resolved": "https://registry.npmjs.org/@csstools/css-color-parser/-/css-color-parser-4.2.3.tgz",+ "integrity": "sha512-y4LpL+lmpuyKDiEFq2PnZUVFdAjsoB/qQJod79yLNokXyW7jewi+/WJ69EfItj8A2unWtxXnGjw6LYXgXu5ZjA==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/csstools"+ },+ {+ "type": "opencollective",+ "url": "https://opencollective.com/csstools"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "@csstools/color-helpers": "^6.1.1",+ "@csstools/css-calc": "^3.4.0"+ },+ "engines": {+ "node": ">=20.19.0"+ },+ "peerDependencies": {+ "@csstools/css-parser-algorithms": "^4.0.0",+ "@csstools/css-tokenizer": "^4.0.0"+ }+ },+ "node_modules/@csstools/css-parser-algorithms": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/@csstools/css-parser-algorithms/-/css-parser-algorithms-4.0.0.tgz",+ "integrity": "sha512-+B87qS7fIG3L5h3qwJ/IFbjoVoOe/bpOdh9hAjXbvx0o8ImEmUsGXN0inFOnk2ChCFgqkkGFQ+TpM5rbhkKe4w==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/csstools"+ },+ {+ "type": "opencollective",+ "url": "https://opencollective.com/csstools"+ }+ ],+ "license": "MIT",+ "engines": {+ "node": ">=20.19.0"+ },+ "peerDependencies": {+ "@csstools/css-tokenizer": "^4.0.0"+ }+ },+ "node_modules/@csstools/css-syntax-patches-for-csstree": {+ "version": "1.1.14",+ "resolved": "https://registry.npmjs.org/@csstools/css-syntax-patches-for-csstree/-/css-syntax-patches-for-csstree-1.1.14.tgz",+ "integrity": "sha512-HpbVXyrofRXpHpgkNIjU/3EWR4WJvOkO3emNK/L6X/mTJU7bGUI3AkkpoTNXznQLp0KRjLHELTGeKI5dIkI9JQ==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/csstools"+ },+ {+ "type": "opencollective",+ "url": "https://opencollective.com/csstools"+ }+ ],+ "license": "MIT-0",+ "peerDependencies": {+ "css-tree": "^3.2.1"+ },+ "peerDependenciesMeta": {+ "css-tree": {+ "optional": true+ }+ }+ },+ "node_modules/@csstools/css-tokenizer": {+ "version": "4.0.1",+ "resolved": "https://registry.npmjs.org/@csstools/css-tokenizer/-/css-tokenizer-4.0.1.tgz",+ "integrity": "sha512-bPlN9S9O1A0euCpEWE4qnvB5YDuyYVsUTrxSgmAM1Is0j4tICHoVyOVAXfWMP/kS9ZrjvyIXWV2PmomiAXXqOw==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/csstools"+ },+ {+ "type": "opencollective",+ "url": "https://opencollective.com/csstools"+ }+ ],+ "license": "MIT",+ "engines": {+ "node": ">=20.19.0"+ }+ },+ "node_modules/@exodus/bytes": {+ "version": "1.16.0",+ "resolved": "https://registry.npmjs.org/@exodus/bytes/-/bytes-1.16.0.tgz",+ "integrity": "sha512-IcpW84uEn3N7ETtNZMlxKhfl6Pec8rUNGOTBtWbK1FKhJxIFAptZyVrvVRVBimAJxJCgc3PxepxkdWWG4DVzfA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0"+ },+ "peerDependencies": {+ "@noble/hashes": "^1.8.0 || ^2.0.0"+ },+ "peerDependenciesMeta": {+ "@noble/hashes": {+ "optional": true+ }+ }+ },+ "node_modules/@jridgewell/resolve-uri": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",+ "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@jridgewell/sourcemap-codec": {+ "version": "1.6.0",+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz",+ "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@jridgewell/trace-mapping": {+ "version": "0.3.31",+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",+ "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/resolve-uri": "^3.1.0",+ "@jridgewell/sourcemap-codec": "^1.4.14"+ }+ },+ "node_modules/@oxc-project/types": {+ "version": "0.150.0",+ "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.150.0.tgz",+ "integrity": "sha512-rDS5/31E9HfPl/CIzGrn0DOlvBbXFseQ5URJ9sYMfstbKLD/c6Gm9vmRzRGDdAXyOIL4zmO37lc9RIwYqVruZw==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "funding": {+ "url": "https://github.com/sponsors/oxc-project"+ }+ },+ "node_modules/@rolldown/binding-android-arm-eabi": {+ "version": "1.2.9",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.2.9.tgz",+ "integrity": "sha512-tNISae1QEf/vkb3xkRcjV5SEdzPE97We5IVaa2Z8jSszQPZ8U60B/YCYpw4QI7VidYsBtKavczXf+DyDs9WGxw==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "peer": true,+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-android-arm64": {+ "version": "1.2.9",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.2.9.tgz",+ "integrity": "sha512-YC8YsI30o606GTZi0VyzYlsDKFP8W61i/QzayHDkLbNEz/IShqAmTa+hsJRj13xTHA0H+6fk4b2UmGn+Q/cMlg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "peer": true,+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-darwin-arm64": {+ "version": "1.2.9",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.2.9.tgz",+ "integrity": "sha512-IwhlH3qK5urrY8hZiEgGkHKEFN901p/p2bjxCxJlr4GyNnF7wYpUvK+Y43uaRYuC4hpfjzbR3SJC3arX1jGvmw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "peer": true,+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-darwin-x64": {+ "version": "1.2.9",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.2.9.tgz",+ "integrity": "sha512-XxpJfVzFh+jilRxIXUqcfYAYcunIc/XEzIizsOL1fcJee5Sf7H3mH8WlLmfHfluz5amqR88QQo9izKtmMlavAw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "peer": true,+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-freebsd-x64": {+ "version": "1.2.9",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.2.9.tgz",+ "integrity": "sha512-kSfvhmgeWyfkbT3p/1s5vSgboogoah2zkm9fX2zjg2hHxSV7T4KhMWRUUaRk4OXNqoD3QAUeRqLcs1aZOK4U1g==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "peer": true,+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-linux-arm-gnueabihf": {+ "version": "1.2.9",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.2.9.tgz",+ "integrity": "sha512-1RVzG17pxqbTfYLC352JlLt6kKLG+6Hr30n8DlIJqsnV5luUDd2Qdx9Ayw1Cabfyb1K9k0jXEZ7evxkRoT+uiw==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "peer": true,+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-linux-arm64-gnu": {+ "version": "1.2.9",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.2.9.tgz",+ "integrity": "sha512-BXqPvZ2drqVD+/Z8UpKwcs4Mp7grM+eGFku4CAEKrEtcbAsUpzREphK1sogCRZGreVPiMkiiBtw0n3TPteuqvw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "peer": true,+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-linux-arm64-musl": {+ "version": "1.2.9",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.2.9.tgz",+ "integrity": "sha512-11vWvo8YDwLzukt27J3aYDWU+gg2P7J+ZOmiJ0hkF5BXZDW7pVya7r40MXDy6ya0i9KamoENSVKIugvJNgFXIA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "peer": true,+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-linux-ppc64-gnu": {+ "version": "1.2.9",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.2.9.tgz",+ "integrity": "sha512-a1tijMkdwsIARtc0F39ApURROkf3NwqinI6TOiSSWCTR7dT96dffNvMUtDHnq64wKNTIZOIlzKrFvvFUznJiyw==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "peer": true,+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-linux-s390x-gnu": {+ "version": "1.2.9",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.2.9.tgz",+ "integrity": "sha512-x6SQNdAvv4c3hWqTMaWuawzMX9myaCs/yEmlGsxJzkdClnHW7FbrjQuSiRDhuSYzEYoEMhsaJy9qHG/XNemJPQ==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "peer": true,+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-linux-x64-gnu": {+ "version": "1.2.9",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.2.9.tgz",+ "integrity": "sha512-9s0AZ8BFK5/n7B/TBoa2yJE3gI3KURrbXcPBlsAsvjU4VeJKgE90y1YtNxyEUIcHPQkg6/yfF3qihUrcM/Kf0Q==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "peer": true,+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-linux-x64-musl": {+ "version": "1.2.9",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.2.9.tgz",+ "integrity": "sha512-P7VWAmV+WdJluH7ovnRGoiv2i8To7GAZ+kGzfGup635cyL7SyYl3lSUaA3Gp5THf0n/Co5EyEqb2zbqq+nMOHQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "peer": true,+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-openharmony-arm64": {+ "version": "1.2.9",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.2.9.tgz",+ "integrity": "sha512-1qixtsE4BK8h+yS3BfmZ09UhA7O/N4IACva6YBr7EBvCJraByTuRcgOTaiA62Tm0vey3UcKXLOaoGHtYmNGEVg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openharmony"+ ],+ "peer": true,+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-win32-arm64-msvc": {+ "version": "1.2.9",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.2.9.tgz",+ "integrity": "sha512-ok8IQjcEPs1AKZfuEUznVBrJw+gK4soq+bx8b1X2XoMqVClarc1q5JDmVtWXY1xfr6ZuHTAsPXHTgTrqKTZeww==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "peer": true,+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-win32-x64-msvc": {+ "version": "1.2.9",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.2.9.tgz",+ "integrity": "sha512-Ip2mXoU0hM0boq3Rf+ekuT653OROSo6aSYcPT1VHE4q52KvyxgFkQgrgb/IEsxOuvQ2fZZbs8khJAyCEPM24/g==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "peer": true,+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/pluginutils": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.1.tgz",+ "integrity": "sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==",+ "dev": true,+ "license": "MIT",+ "peer": true+ },+ "node_modules/@testing-library/dom": {+ "version": "10.4.2",+ "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-10.4.2.tgz",+ "integrity": "sha512-yzr2S9HyAIdhz2/6qHgbs665Q7PKVcDF05vsOlHPxG1mo36gKVesdYVeDLnXgfjJ03CrKRk08knc6+E/9m8v2Q==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "@babel/code-frame": "^7.10.4",+ "@babel/runtime": "^7.12.5",+ "@types/aria-query": "^5.0.1",+ "aria-query": "5.3.0",+ "dom-accessibility-api": "^0.5.9",+ "lz-string": "^1.5.0",+ "picocolors": "1.1.1",+ "pretty-format": "^27.0.2"+ },+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@testing-library/jest-dom": {+ "version": "7.0.1",+ "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-7.0.1.tgz",+ "integrity": "sha512-oMDTC3oA+6CXSO2JZnvOI7CA6oVub6kij5ggk9ohwye5slmkwxYDXcPOVxgMw/RQlticjtO0C1RZkR97HgrWMw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@adobe/css-tools": "^4.4.0",+ "aria-query": "^5.0.0",+ "css.escape": "^1.5.1",+ "dom-accessibility-api": "^0.6.3",+ "picocolors": "^1.1.1",+ "redent": "^3.0.0"+ },+ "engines": {+ "node": ">=22",+ "npm": ">=6",+ "yarn": ">=1"+ },+ "peerDependencies": {+ "@testing-library/dom": ">=10 <11",+ "vitest": ">= 0.32"+ },+ "peerDependenciesMeta": {+ "vitest": {+ "optional": true+ }+ }+ },+ "node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api": {+ "version": "0.6.3",+ "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.6.3.tgz",+ "integrity": "sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@testing-library/react": {+ "version": "16.3.3",+ "resolved": "https://registry.npmjs.org/@testing-library/react/-/react-16.3.3.tgz",+ "integrity": "sha512-Uo193NgQbPMz6lrrhtRQQFcMC6Re/ELLFbbuVL30WDlZxlpZf9/lMHTAVxPRLw1q1iu9OJmR1c2BLiENRstdBg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.12.5"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "@testing-library/dom": "^10.0.0",+ "@types/react": "^18.0.0 || ^19.0.0",+ "@types/react-dom": "^18.0.0 || ^19.0.0",+ "react": "^18.0.0 || ^19.0.0",+ "react-dom": "^18.0.0 || ^19.0.0"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@testing-library/user-event": {+ "version": "14.6.7",+ "resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-14.6.7.tgz",+ "integrity": "sha512-MPCpX8bxe8zS+JmmTwLp8jd0dy1rAm60Te/SL8JrQM3qvQJcBOs1d7IefJMyZzqM3EWBrDn/LWDt1BCGu4ASfg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12",+ "npm": ">=6"+ },+ "peerDependencies": {+ "@testing-library/dom": ">=7.21.4"+ }+ },+ "node_modules/@types/aria-query": {+ "version": "5.0.4",+ "resolved": "https://registry.npmjs.org/@types/aria-query/-/aria-query-5.0.4.tgz",+ "integrity": "sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==",+ "dev": true,+ "license": "MIT",+ "peer": true+ },+ "node_modules/@types/chai": {+ "version": "5.2.3",+ "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.3.tgz",+ "integrity": "sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/deep-eql": "*",+ "assertion-error": "^2.0.1"+ }+ },+ "node_modules/@types/deep-eql": {+ "version": "4.0.2",+ "resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz",+ "integrity": "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/estree": {+ "version": "1.0.9",+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz",+ "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==",+ "dev": true,+ "license": "MIT"+ },"node_modules/@types/prop-types": {"version": "15.7.15","resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.15.tgz","integrity": "sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw==","dev": true,- "license": "MIT"+ "license": "MIT"+ },+ "node_modules/@types/react": {+ "version": "18.3.28",+ "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.28.tgz",+ "integrity": "sha512-z9VXpC7MWrhfWipitjNdgCauoMLRdIILQsAEV+ZesIzBq/oUlxk0m3ApZuMFCXdnS4U7KrI+l3WRUEGQ8K1QKw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/prop-types": "*",+ "csstype": "^3.2.2"+ }+ },+ "node_modules/@types/react-dom": {+ "version": "18.3.7",+ "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.7.tgz",+ "integrity": "sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ==",+ "dev": true,+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "^18.0.0"+ }+ },+ "node_modules/@vitest/mocker": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-5.0.1.tgz",+ "integrity": "sha512-6K1DoBNAPGvuOcSsGA4D6x+5zEEff/KmOOP3uetT2TrGpVfI+HRHRnJJfKi5ib/g1vx8IYHQD8s0pbJz8WQI7Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/trace-mapping": "0.3.31",+ "@vitest/spy": "5.0.1",+ "estree-walker": "^3.0.3",+ "magic-string": "^1.2.3"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ },+ "peerDependencies": {+ "msw": "^2.4.9",+ "vite": "^6.0.0 || ^7.0.0 || ^8.0.0"+ },+ "peerDependenciesMeta": {+ "msw": {+ "optional": true+ },+ "vite": {+ "optional": true+ }+ }+ },+ "node_modules/@vitest/spy": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-5.0.1.tgz",+ "integrity": "sha512-rbto/mF/SGERxEgYOek7Xm6B9b+y+mVoo+f4b2LymYO8zM1b7uB5nHuhVMTP2hxdzgxvGiZYGxGIaMvL5y180Q==",+ "dev": true,+ "license": "MIT",+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/ansi-regex": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/ansi-styles": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz",+ "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ }+ },+ "node_modules/aria-query": {+ "version": "5.3.0",+ "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz",+ "integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "dequal": "^2.0.3"+ }+ },+ "node_modules/assertion-error": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz",+ "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/bidi-js": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/bidi-js/-/bidi-js-1.1.0.tgz",+ "integrity": "sha512-fX1Onk0tdVPC7obPWB5EbJ1z7NVhLq4m2xZLq2YXBkxzMXIGRpNMU88n0EPgWseKl12J7zXs7qrDxPK4sRs2fg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "require-from-string": "^2.0.2"+ }+ },+ "node_modules/chai": {+ "version": "6.2.2",+ "resolved": "https://registry.npmjs.org/chai/-/chai-6.2.2.tgz",+ "integrity": "sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/css-tree": {+ "version": "3.2.1",+ "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-3.2.1.tgz",+ "integrity": "sha512-X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "mdn-data": "2.27.1",+ "source-map-js": "^1.2.1"+ },+ "engines": {+ "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0"+ }+ },+ "node_modules/css.escape": {+ "version": "1.5.1",+ "resolved": "https://registry.npmjs.org/css.escape/-/css.escape-1.5.1.tgz",+ "integrity": "sha512-YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/csstype": {+ "version": "3.2.3",+ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",+ "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/data-urls": {+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-7.0.0.tgz",+ "integrity": "sha512-23XHcCF+coGYevirZceTVD7NdJOqVn+49IHyxgszm+JIiHLoB2TkmPtsYkNWT1pvRSGkc35L6NHs0yHkN2SumA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "whatwg-mimetype": "^5.0.0",+ "whatwg-url": "^16.0.0"+ },+ "engines": {+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0"+ }+ },+ "node_modules/decimal.js": {+ "version": "10.6.0",+ "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.6.0.tgz",+ "integrity": "sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/dequal": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz",+ "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/detect-libc": {+ "version": "2.1.2",+ "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",+ "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",+ "dev": true,+ "license": "Apache-2.0",+ "peer": true,+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/dom-accessibility-api": {+ "version": "0.5.16",+ "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.5.16.tgz",+ "integrity": "sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==",+ "dev": true,+ "license": "MIT",+ "peer": true+ },+ "node_modules/entities": {+ "version": "8.1.0",+ "resolved": "https://registry.npmjs.org/entities/-/entities-8.1.0.tgz",+ "integrity": "sha512-kxL7msIffSuh9aaFAMD7rxAIuTRMAHMeBtgHW2yUdWw732ZNh4MehkF2gdjvtdmikkaIP9bFDDJOPlsvm7avrA==",+ "dev": true,+ "license": "BSD-2-Clause",+ "engines": {+ "node": ">=20.19.0"+ },+ "funding": {+ "url": "https://github.com/fb55/entities?sponsor=1"+ }+ },+ "node_modules/es-module-lexer": {+ "version": "2.3.2",+ "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.3.2.tgz",+ "integrity": "sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/estree-walker": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz",+ "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/estree": "^1.0.0"+ }+ },+ "node_modules/expect-type": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.4.0.tgz",+ "integrity": "sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": ">=12.0.0"+ }+ },+ "node_modules/fdir": {+ "version": "6.5.0",+ "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",+ "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12.0.0"+ },+ "peerDependencies": {+ "picomatch": "^3 || ^4"+ },+ "peerDependenciesMeta": {+ "picomatch": {+ "optional": true+ }+ }+ },+ "node_modules/fsevents": {+ "version": "2.3.3",+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "peer": true,+ "engines": {+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"+ }+ },+ "node_modules/html-encoding-sniffer": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-6.0.0.tgz",+ "integrity": "sha512-CV9TW3Y3f8/wT0BRFc1/KAVQ3TUHiXmaAb6VW9vtiMFf7SLoMd1PdAc4W3KFOFETBJUb90KatHqlsZMWV+R9Gg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@exodus/bytes": "^1.6.0"+ },+ "engines": {+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0"+ }+ },+ "node_modules/indent-string": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz",+ "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/is-potential-custom-element-name": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz",+ "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/js-tokens": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/jsdom": {+ "version": "29.1.1",+ "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-29.1.1.tgz",+ "integrity": "sha512-ECi4Fi2f7BdJtUKTflYRTiaMxIB0O6zfR1fX0GXpUrf6flp8QIYn1UT20YQqdSOfk2dfkCwS8LAFoJDEppNK5Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@asamuzakjp/css-color": "^5.1.11",+ "@asamuzakjp/dom-selector": "^7.1.1",+ "@bramus/specificity": "^2.4.2",+ "@csstools/css-syntax-patches-for-csstree": "^1.1.3",+ "@exodus/bytes": "^1.15.0",+ "css-tree": "^3.2.1",+ "data-urls": "^7.0.0",+ "decimal.js": "^10.6.0",+ "html-encoding-sniffer": "^6.0.0",+ "is-potential-custom-element-name": "^1.0.1",+ "lru-cache": "^11.3.5",+ "parse5": "^8.0.1",+ "saxes": "^6.0.0",+ "symbol-tree": "^3.2.4",+ "tough-cookie": "^6.0.1",+ "undici": "^7.25.0",+ "w3c-xmlserializer": "^5.0.0",+ "webidl-conversions": "^8.0.1",+ "whatwg-mimetype": "^5.0.0",+ "whatwg-url": "^16.0.1",+ "xml-name-validator": "^5.0.0"+ },+ "engines": {+ "node": "^20.19.0 || ^22.13.0 || >=24.0.0"+ },+ "peerDependencies": {+ "canvas": "^3.0.0"+ },+ "peerDependenciesMeta": {+ "canvas": {+ "optional": true+ }+ }+ },+ "node_modules/lightningcss": {+ "version": "1.33.0",+ "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.33.0.tgz",+ "integrity": "sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==",+ "dev": true,+ "license": "MPL-2.0",+ "peer": true,+ "dependencies": {+ "detect-libc": "^2.0.3"+ },+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ },+ "optionalDependencies": {+ "lightningcss-android-arm64": "1.33.0",+ "lightningcss-darwin-arm64": "1.33.0",+ "lightningcss-darwin-x64": "1.33.0",+ "lightningcss-freebsd-x64": "1.33.0",+ "lightningcss-linux-arm-gnueabihf": "1.33.0",+ "lightningcss-linux-arm64-gnu": "1.33.0",+ "lightningcss-linux-arm64-musl": "1.33.0",+ "lightningcss-linux-x64-gnu": "1.33.0",+ "lightningcss-linux-x64-musl": "1.33.0",+ "lightningcss-win32-arm64-msvc": "1.33.0",+ "lightningcss-win32-x64-msvc": "1.33.0"+ }+ },+ "node_modules/lightningcss-android-arm64": {+ "version": "1.33.0",+ "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.33.0.tgz",+ "integrity": "sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "android"+ ],+ "peer": true,+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-darwin-arm64": {+ "version": "1.33.0",+ "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.33.0.tgz",+ "integrity": "sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "darwin"+ ],+ "peer": true,+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-darwin-x64": {+ "version": "1.33.0",+ "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.33.0.tgz",+ "integrity": "sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "darwin"+ ],+ "peer": true,+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-freebsd-x64": {+ "version": "1.33.0",+ "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.33.0.tgz",+ "integrity": "sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "peer": true,+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-linux-arm-gnueabihf": {+ "version": "1.33.0",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.33.0.tgz",+ "integrity": "sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "peer": true,+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-linux-arm64-gnu": {+ "version": "1.33.0",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.33.0.tgz",+ "integrity": "sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "peer": true,+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-linux-arm64-musl": {+ "version": "1.33.0",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.33.0.tgz",+ "integrity": "sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "peer": true,+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-linux-x64-gnu": {+ "version": "1.33.0",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.33.0.tgz",+ "integrity": "sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "peer": true,+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-linux-x64-musl": {+ "version": "1.33.0",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.33.0.tgz",+ "integrity": "sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "peer": true,+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-win32-arm64-msvc": {+ "version": "1.33.0",+ "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.33.0.tgz",+ "integrity": "sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "win32"+ ],+ "peer": true,+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-win32-x64-msvc": {+ "version": "1.33.0",+ "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.33.0.tgz",+ "integrity": "sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "win32"+ ],+ "peer": true,+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/loose-envify": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",+ "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "js-tokens": "^3.0.0 || ^4.0.0"+ },+ "bin": {+ "loose-envify": "cli.js"+ }},- "node_modules/@types/react": {- "version": "18.3.28",- "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.28.tgz",- "integrity": "sha512-z9VXpC7MWrhfWipitjNdgCauoMLRdIILQsAEV+ZesIzBq/oUlxk0m3ApZuMFCXdnS4U7KrI+l3WRUEGQ8K1QKw==",+ "node_modules/lru-cache": {+ "version": "11.5.3",+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.3.tgz",+ "integrity": "sha512-U4N8FgzmWxc8k1VH8Kr6lQg18U7Fjvby6wXHVRX/ZZ7IwWbRMgrRbP0Wrb5q5NVinryp4SQampHKdvtecItxUg==",+ "dev": true,+ "license": "BlueOak-1.0.0",+ "engines": {+ "node": "20 || >=22"+ }+ },+ "node_modules/lz-string": {+ "version": "1.5.0",+ "resolved": "https://registry.npmjs.org/lz-string/-/lz-string-1.5.0.tgz",+ "integrity": "sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "bin": {+ "lz-string": "bin/bin.js"+ }+ },+ "node_modules/magic-string": {+ "version": "1.4.1",+ "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-1.4.1.tgz",+ "integrity": "sha512-8lyCu36ErXR0J9uaGKlKQoiLZKmtI63YGLE8G2o9jyRPdr4X47LusSOwgOJOzcVtp81fTAAjxR7BwKz682Jhow==","dev": true,"license": "MIT","dependencies": {- "@types/prop-types": "*",- "csstype": "^3.2.2"+ "@jridgewell/sourcemap-codec": "^1.6.0"}},- "node_modules/@types/react-dom": {- "version": "18.3.7",- "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.7.tgz",- "integrity": "sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ==",+ "node_modules/mdn-data": {+ "version": "2.27.1",+ "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.27.1.tgz",+ "integrity": "sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ==",+ "dev": true,+ "license": "CC0-1.0"+ },+ "node_modules/min-indent": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz",+ "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==","dev": true,"license": "MIT",- "peerDependencies": {- "@types/react": "^18.0.0"+ "engines": {+ "node": ">=4"}},- "node_modules/csstype": {- "version": "3.2.3",- "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",- "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",+ "node_modules/nanoid": {+ "version": "3.3.19",+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.19.tgz",+ "integrity": "sha512-Y2tUNy4ouw6tq5oDSKeQYGOyhkUBhNOcGV/02KC+6kd9eDGqdZd++mjMiIDilrBYvjEnCYvVtsuHCuP+okSfug==","dev": true,- "license": "MIT"+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "peer": true,+ "bin": {+ "nanoid": "bin/nanoid.cjs"+ },+ "engines": {+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"+ }},- "node_modules/js-tokens": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",- "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",+ "node_modules/obug": {+ "version": "2.2.1",+ "resolved": "https://registry.npmjs.org/obug/-/obug-2.2.1.tgz",+ "integrity": "sha512-XrsrhT5sybtKI6wakr2SPOlGZWWYbUXZ7a0jT8/QOeAPau+1X/bSegNe5YR75oJmEZQbKningirmGOEJCIk61Q==","dev": true,- "license": "MIT"+ "funding": [+ "https://github.com/sponsors/sxzz",+ "https://opencollective.com/debug"+ ],+ "license": "MIT",+ "engines": {+ "node": ">=12.20.0"+ }},- "node_modules/loose-envify": {- "version": "1.4.0",- "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",- "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",+ "node_modules/parse5": {+ "version": "8.0.1",+ "resolved": "https://registry.npmjs.org/parse5/-/parse5-8.0.1.tgz",+ "integrity": "sha512-z1e/HMG90obSGeidlli3hj7cbocou0/wa5HacvI3ASx34PecNjNQeaHNo5WIZpWofN9kgkqV1q5YvXe3F0FoPw==","dev": true,"license": "MIT","dependencies": {- "js-tokens": "^3.0.0 || ^4.0.0"+ "entities": "^8.0.0"},- "bin": {- "loose-envify": "cli.js"+ "funding": {+ "url": "https://github.com/inikulin/parse5?sponsor=1"+ }+ },+ "node_modules/picocolors": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/picomatch": {+ "version": "4.0.7",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz",+ "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },+ "node_modules/postcss": {+ "version": "8.5.28",+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.28.tgz",+ "integrity": "sha512-RRuzqDtt5Y9h3quz5hWhK+TPnsmVs6WwSU6LkJMeY4HstUEDuYTG8UJSdawMRzmzAtV+KEoG8N3Qg2qLy5vM/A==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/postcss"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "nanoid": "^3.3.18",+ "picocolors": "^1.1.1",+ "source-map-js": "^1.2.1"+ },+ "engines": {+ "node": "^10 || ^12 || >=14"+ }+ },+ "node_modules/pretty-format": {+ "version": "27.5.1",+ "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz",+ "integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "ansi-regex": "^5.0.1",+ "ansi-styles": "^5.0.0",+ "react-is": "^17.0.1"+ },+ "engines": {+ "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0"+ }+ },+ "node_modules/punycode": {+ "version": "2.3.1",+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",+ "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"}},"node_modules/react": {@@ -101,6 +1584,86 @@"react": "^18.3.1"}},+ "node_modules/react-is": {+ "version": "17.0.2",+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz",+ "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==",+ "dev": true,+ "license": "MIT",+ "peer": true+ },+ "node_modules/redent": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz",+ "integrity": "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "indent-string": "^4.0.0",+ "strip-indent": "^3.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/require-from-string": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",+ "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/rolldown": {+ "version": "1.2.9",+ "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.2.9.tgz",+ "integrity": "sha512-hx/Pv0N1haXRb11qkfnK5MXB/iqr7i0yjWQqmO9uHqZpBgQSqzc8UsSnEpalsh+j1I8qQ2CkXAkJC8Br3dKSlg==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "@oxc-project/types": "=0.150.0",+ "@rolldown/pluginutils": "^1.0.0"+ },+ "bin": {+ "rolldown": "bin/cli.mjs"+ },+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ },+ "optionalDependencies": {+ "@rolldown/binding-android-arm-eabi": "1.2.9",+ "@rolldown/binding-android-arm64": "1.2.9",+ "@rolldown/binding-darwin-arm64": "1.2.9",+ "@rolldown/binding-darwin-x64": "1.2.9",+ "@rolldown/binding-freebsd-x64": "1.2.9",+ "@rolldown/binding-linux-arm-gnueabihf": "1.2.9",+ "@rolldown/binding-linux-arm64-gnu": "1.2.9",+ "@rolldown/binding-linux-arm64-musl": "1.2.9",+ "@rolldown/binding-linux-ppc64-gnu": "1.2.9",+ "@rolldown/binding-linux-s390x-gnu": "1.2.9",+ "@rolldown/binding-linux-x64-gnu": "1.2.9",+ "@rolldown/binding-linux-x64-musl": "1.2.9",+ "@rolldown/binding-openharmony-arm64": "1.2.9",+ "@rolldown/binding-win32-arm64-msvc": "1.2.9",+ "@rolldown/binding-win32-x64-msvc": "1.2.9"+ }+ },+ "node_modules/saxes": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz",+ "integrity": "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "xmlchars": "^2.2.0"+ },+ "engines": {+ "node": ">=v12.22.7"+ }+ },"node_modules/scheduler": {"version": "0.23.2","resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz",@@ -111,6 +1674,140 @@"loose-envify": "^1.1.0"}},+ "node_modules/siginfo": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz",+ "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/source-map-js": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",+ "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",+ "dev": true,+ "license": "BSD-3-Clause",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/stackback": {+ "version": "0.0.2",+ "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz",+ "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/std-env": {+ "version": "4.2.0",+ "resolved": "https://registry.npmjs.org/std-env/-/std-env-4.2.0.tgz",+ "integrity": "sha512-oCUKSupKTHX53EyjDtuZQ64pjLJ6yYCtpmEw0goYxtjG9KpbRe8KAsl2tBUGU9DyMcJ0RwJ8GqJAFzMXcXW1Rw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/strip-indent": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz",+ "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "min-indent": "^1.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/symbol-tree": {+ "version": "3.2.4",+ "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz",+ "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/tinybench": {+ "version": "6.1.4",+ "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-6.1.4.tgz",+ "integrity": "sha512-9APumHG7r4yOk4X4WlkmE71aZcv1gvin1czO3OQ1U9iJcFA5Ja/ygyb0vPOVHTthFozUYs8CLoLUlM8grb2lTQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/tinyexec": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.3.0.tgz",+ "integrity": "sha512-QKAl9m8gWWGHV8jZcPeym6j+XULi6tOf1mT83WYJ4Lk2ytW/uwAWkrP0uFsdoYMdueVJ0qs26wZ+23xeB4ibNQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tinyglobby": {+ "version": "0.2.17",+ "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz",+ "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "fdir": "^6.5.0",+ "picomatch": "^4.0.4"+ },+ "engines": {+ "node": ">=12.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/SuperchupuDev"+ }+ },+ "node_modules/tldts": {+ "version": "7.4.14",+ "resolved": "https://registry.npmjs.org/tldts/-/tldts-7.4.14.tgz",+ "integrity": "sha512-EahQoi+Q5oqmG3yxRHx+bwn36OaLbtw6jnTFcGjc8fcmktzTgk45xRnzAx8Ch87PFEiqRhoc3FWBmY+LBrvEGQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "tldts-core": "^7.4.14"+ },+ "bin": {+ "tldts": "bin/cli.js"+ }+ },+ "node_modules/tldts-core": {+ "version": "7.4.14",+ "resolved": "https://registry.npmjs.org/tldts-core/-/tldts-core-7.4.14.tgz",+ "integrity": "sha512-KYkjfJHnIC5t+Gy7hPrMHgJmWc/N9FfmS+fggRPSlpFckidpB9HD6OzPsSTkfDH+MpZgcu2tJPGgLfHl979N1Q==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/tough-cookie": {+ "version": "6.0.2",+ "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-6.0.2.tgz",+ "integrity": "sha512-exgYmnmL/sJpR3upZfXG5PoatXQii55xAiXGXzY+sROLZ/Y+SLcp9PgJNI9Vz37HpQ74WvDcLT8eqm+kV3FzrA==",+ "dev": true,+ "license": "BSD-3-Clause",+ "dependencies": {+ "tldts": "^7.0.5"+ },+ "engines": {+ "node": ">=16"+ }+ },+ "node_modules/tr46": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/tr46/-/tr46-6.0.0.tgz",+ "integrity": "sha512-bLVMLPtstlZ4iMQHpFHTR7GAGj2jxi8Dg0s2h2MafAE4uSWF98FC/3MomU51iQAMf8/qDUbKWf5GxuvvVcXEhw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "punycode": "^2.3.1"+ },+ "engines": {+ "node": ">=20"+ }+ },"node_modules/typescript": {"version": "5.9.3","resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",@@ -124,6 +1821,260 @@"engines": {"node": ">=14.17"}+ },+ "node_modules/undici": {+ "version": "7.29.1",+ "resolved": "https://registry.npmjs.org/undici/-/undici-7.29.1.tgz",+ "integrity": "sha512-RYONW2MeafgYlkVOKYKkA/Ag7BmXqgIWCa8t1m0JcxrQg9pI9lEqRhAOruOBCbAohOa/gkCF+iPi9hrgvTzu6Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=20.18.1"+ }+ },+ "node_modules/vite": {+ "version": "8.3.0",+ "resolved": "https://registry.npmjs.org/vite/-/vite-8.3.0.tgz",+ "integrity": "sha512-lhZBVvEHefgE+HQZC9O7EBJgCU/nVzFNl7vkS4RE0APtWLP02/8QVIkQtzBxPquh7lq5/78NHipTj7ODQ6XuyQ==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "lightningcss": "^1.33.0",+ "picomatch": "^4.0.7",+ "postcss": "^8.5.28",+ "rolldown": "~1.2.6",+ "tinyglobby": "^0.2.17"+ },+ "bin": {+ "vite": "bin/vite.js"+ },+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ },+ "funding": {+ "url": "https://github.com/vitejs/vite?sponsor=1"+ },+ "optionalDependencies": {+ "fsevents": "~2.3.3"+ },+ "peerDependencies": {+ "@types/node": "^20.19.0 || >=22.12.0",+ "@vitejs/devtools": "^0.7.1",+ "esbuild": "^0.27.0 || ^0.28.0",+ "jiti": ">=1.21.0",+ "less": "^4.0.0",+ "sass": "^1.70.0",+ "sass-embedded": "^1.70.0",+ "stylus": ">=0.54.8",+ "sugarss": "^5.0.0",+ "terser": "^5.16.0",+ "tsx": "^4.8.1",+ "yaml": "^2.4.2"+ },+ "peerDependenciesMeta": {+ "@types/node": {+ "optional": true+ },+ "@vitejs/devtools": {+ "optional": true+ },+ "esbuild": {+ "optional": true+ },+ "jiti": {+ "optional": true+ },+ "less": {+ "optional": true+ },+ "sass": {+ "optional": true+ },+ "sass-embedded": {+ "optional": true+ },+ "stylus": {+ "optional": true+ },+ "sugarss": {+ "optional": true+ },+ "terser": {+ "optional": true+ },+ "tsx": {+ "optional": true+ },+ "yaml": {+ "optional": true+ }+ }+ },+ "node_modules/vitest": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/vitest/-/vitest-5.0.1.tgz",+ "integrity": "sha512-iA95lQbKEkvrtTkdAgnWbXfbipWiiWe/hDl2P5tMi6WFwD76G0NxXAGp/M9EOcYupeGJRr6wppMc7CoA41TQjg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/chai": "^5.2.2",+ "@vitest/mocker": "5.0.1",+ "chai": "^6.2.2",+ "es-module-lexer": "^2.3.2",+ "expect-type": "^1.4.0",+ "magic-string": "^1.2.3",+ "obug": "^2.1.4",+ "picomatch": "^4.0.7",+ "std-env": "^4.2.0",+ "tinybench": "6.1.4",+ "tinyexec": "1.3.0",+ "tinyglobby": "^0.2.17",+ "why-is-node-running": "^2.3.0"+ },+ "bin": {+ "vitest": "vitest.mjs"+ },+ "engines": {+ "node": "^22.12.0 || ^24.0.0 || >=26.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ },+ "peerDependencies": {+ "@edge-runtime/vm": "*",+ "@opentelemetry/api": "^1.9.0",+ "@types/node": "^22.0.0 || >=24.0.0",+ "@vitest/browser-playwright": "5.0.1",+ "@vitest/browser-preview": "5.0.1",+ "@vitest/browser-webdriverio": "^5.0.0-beta.5 || >=5.0.0",+ "@vitest/coverage-istanbul": "5.0.1",+ "@vitest/coverage-v8": "5.0.1",+ "@vitest/ui": "5.0.1",+ "happy-dom": "*",+ "jsdom": "*",+ "vite": "^6.4.0 || ^7.0.0 || ^8.0.0"+ },+ "peerDependenciesMeta": {+ "@edge-runtime/vm": {+ "optional": true+ },+ "@opentelemetry/api": {+ "optional": true+ },+ "@types/node": {+ "optional": true+ },+ "@vitest/browser-playwright": {+ "optional": true+ },+ "@vitest/browser-preview": {+ "optional": true+ },+ "@vitest/browser-webdriverio": {+ "optional": true+ },+ "@vitest/coverage-istanbul": {+ "optional": true+ },+ "@vitest/coverage-v8": {+ "optional": true+ },+ "@vitest/ui": {+ "optional": true+ },+ "happy-dom": {+ "optional": true+ },+ "jsdom": {+ "optional": true+ },+ "vite": {+ "optional": false+ }+ }+ },+ "node_modules/w3c-xmlserializer": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-5.0.0.tgz",+ "integrity": "sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "xml-name-validator": "^5.0.0"+ },+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/webidl-conversions": {+ "version": "8.0.1",+ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-8.0.1.tgz",+ "integrity": "sha512-BMhLD/Sw+GbJC21C/UgyaZX41nPt8bUTg+jWyDeg7e7YN4xOM05YPSIXceACnXVtqyEw/LMClUQMtMZ+PGGpqQ==",+ "dev": true,+ "license": "BSD-2-Clause",+ "engines": {+ "node": ">=20"+ }+ },+ "node_modules/whatwg-mimetype": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-5.0.0.tgz",+ "integrity": "sha512-sXcNcHOC51uPGF0P/D4NVtrkjSU2fNsm9iog4ZvZJsL3rjoDAzXZhkm2MWt1y+PUdggKAYVoMAIYcs78wJ51Cw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=20"+ }+ },+ "node_modules/whatwg-url": {+ "version": "16.0.1",+ "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-16.0.1.tgz",+ "integrity": "sha512-1to4zXBxmXHV3IiSSEInrreIlu02vUOvrhxJJH5vcxYTBDAx51cqZiKdyTxlecdKNSjj8EcxGBxNf6Vg+945gw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@exodus/bytes": "^1.11.0",+ "tr46": "^6.0.0",+ "webidl-conversions": "^8.0.1"+ },+ "engines": {+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0"+ }+ },+ "node_modules/why-is-node-running": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz",+ "integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "siginfo": "^2.0.0",+ "stackback": "0.0.2"+ },+ "bin": {+ "why-is-node-running": "cli.js"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/xml-name-validator": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-5.0.0.tgz",+ "integrity": "sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/xmlchars": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz",+ "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==",+ "dev": true,+ "license": "MIT"}}}diff --git a/packages/frontend-components/package.json b/packages/frontend-components/package.jsonindex c904d9da7..f1af50cc6 100644--- a/packages/frontend-components/package.json+++ b/packages/frontend-components/package.json@@ -12,14 +12,19 @@"react-dom": "^18.3.1"},"devDependencies": {+ "@testing-library/jest-dom": "^7.0.1",+ "@testing-library/react": "^16.3.3",+ "@testing-library/user-event": "^14.6.7","@types/react": "18.3.28","@types/react-dom": "18.3.7",+ "jsdom": "^29.1.1","react": "^18.3.1","react-dom": "^18.3.1",- "typescript": "^5.9.2"+ "typescript": "^5.9.2",+ "vitest": "^5.0.1"},"scripts": {"build": "tsc --noEmit --skipLibCheck --types react,react-dom --jsx react-jsx --module esnext --moduleResolution bundler --target es2022 src/index.tsx",- "test": "tsc --noEmit --skipLibCheck --types react,react-dom --jsx react-jsx --module esnext --moduleResolution bundler --target es2022 src/index.tsx src/public-api.test.ts"+ "test": "tsc --noEmit --skipLibCheck --types react,react-dom --jsx react-jsx --module esnext --moduleResolution bundler --target es2022 src/index.tsx src/public-api.test.ts && vitest run --environment jsdom src/edit"}}diff --git a/packages/frontend-components/src/edit/ConfirmationDialog.tsx b/packages/frontend-components/src/edit/ConfirmationDialog.tsxnew file mode 100644index 000000000..68cc9cd07--- /dev/null+++ b/packages/frontend-components/src/edit/ConfirmationDialog.tsx@@ -0,0 +1,83 @@+'use client'++import type { ReactNode } from 'react'+import { DialogShell } from './DialogShell'+import type { ConfirmationDialogProps, DialogDismissReason } from './types'++export function ConfirmationDialog({+ open,+ onCancel,+ onConfirm,+ title,+ description,+ children,+ tone = 'info',+ icon,+ cancelLabel = 'Cancel',+ confirmLabel = 'Confirm',+ secondaryAction,+ confirmDisabled = false,+ pending = false,+ error,+ size = 'default',+}: ConfirmationDialogProps) {+ function handleDismiss(_reason: DialogDismissReason) {+ onCancel()+ }++ const footer: ReactNode = (+ <>+ <button+ className="eft-dialog__button eft-dialog__button--secondary"+ disabled={pending}+ onClick={onCancel}+ type="button"+ >+ {cancelLabel}+ </button>+ {secondaryAction ? (+ <button+ className="eft-dialog__button eft-dialog__button--secondary"+ disabled={pending || secondaryAction.disabled}+ onClick={secondaryAction.onSelect}+ type="button"+ >+ {secondaryAction.label}+ </button>+ ) : null}+ <button+ className={`eft-dialog__button eft-dialog__button--primary eft-dialog__button--${tone}`}+ disabled={pending || confirmDisabled}+ onClick={onConfirm}+ type="button"+ >+ {pending ? 'Working…' : confirmLabel}+ </button>+ </>+ )++ return (+ <DialogShell+ busy={pending}+ description={description}+ error={error}+ footer={footer}+ onDismiss={handleDismiss}+ open={open}+ role="alertdialog"+ size={size}+ title={+ <span className="eft-dialog-confirmation__title" data-tone={tone}>+ {icon != null ? (+ <span aria-hidden="true" className="eft-dialog-confirmation__icon">+ {icon}+ </span>+ ) : null}+ {title}+ </span>+ }+ >+ {children}+ </DialogShell>+ )+}diff --git a/packages/frontend-components/src/edit/DialogShell.tsx b/packages/frontend-components/src/edit/DialogShell.tsxnew file mode 100644index 000000000..8b45ed72b--- /dev/null+++ b/packages/frontend-components/src/edit/DialogShell.tsx@@ -0,0 +1,169 @@+'use client'++import { type KeyboardEvent, type ReactNode, useId, useLayoutEffect, useRef, useState } from 'react'+import { createPortal } from 'react-dom'+import { classNames } from '../table/utils'+import type { DialogDismissReason, DialogShellProps } from './types'++function getFocusableElements(root: HTMLElement): HTMLElement[] {+ return Array.from(+ root.querySelectorAll<HTMLElement>(+ 'a[href], button:not(:disabled), input:not(:disabled):not([type="hidden"]), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])'+ )+ ).filter(element => {+ if (element.closest('[hidden], [aria-hidden="true"]')) return false+ const style = window.getComputedStyle(element)+ return style.display !== 'none' && style.visibility !== 'hidden'+ })+}++export function DialogShell({+ open,+ onDismiss,+ title,+ description,+ children,+ footer,+ status,+ error,+ size = 'default',+ role = 'dialog',+ closeButtonLabel = 'Close dialog',+ dismissOnEscape = true,+ dismissOnBackdrop = true,+ preventDismissWhileBusy = true,+ busy = false,+ initialFocusRef,+ className,+}: DialogShellProps) {+ const titleId = useId()+ const descriptionId = useId()+ const statusId = useId()+ const errorId = useId()+ const panelRef = useRef<HTMLElement | null>(null)+ const [mounted, setMounted] = useState(false)+ const blocked = busy && preventDismissWhileBusy++ useLayoutEffect(() => {+ setMounted(true)+ }, [])++ useLayoutEffect(() => {+ if (!open || !mounted) return+ const previousActiveElement =+ document.activeElement instanceof HTMLElement ? document.activeElement : null+ const panel = panelRef.current+ if (panel) {+ const focusTarget =+ initialFocusRef?.current ??+ getFocusableElements(panel).find(element => !element.hasAttribute('data-dialog-close')) ??+ panel+ focusTarget.focus()+ }+ return () => {+ if (previousActiveElement?.isConnected) previousActiveElement.focus()+ }+ }, [initialFocusRef, mounted, open])++ function dismiss(reason: DialogDismissReason) {+ if (!blocked) onDismiss(reason)+ }++ function handleKeyDown(event: KeyboardEvent<HTMLElement>) {+ if (event.key === 'Escape') {+ if (!dismissOnEscape || blocked) return+ event.preventDefault()+ event.stopPropagation()+ dismiss('escape')+ return+ }+ if (event.key !== 'Tab' || !panelRef.current) return++ const focusable = getFocusableElements(panelRef.current)+ if (focusable.length === 0) {+ event.preventDefault()+ panelRef.current.focus()+ return+ }+ const first = focusable[0]+ const last = focusable[focusable.length - 1]+ const active = document.activeElement+ if (event.shiftKey && (active === first || !panelRef.current.contains(active))) {+ event.preventDefault()+ last.focus()+ } else if (!event.shiftKey && (active === last || !panelRef.current.contains(active))) {+ event.preventDefault()+ first.focus()+ }+ }++ if (!open || !mounted || typeof document === 'undefined') return null++ const describedBy =+ [+ description ? descriptionId : undefined,+ status ? statusId : undefined,+ error ? errorId : undefined,+ ]+ .filter(Boolean)+ .join(' ') || undefined++ return createPortal(+ <div+ className="eft-dialog-backdrop"+ data-testid="dialog-backdrop"+ onKeyDown={handleKeyDown}+ onMouseDown={event => {+ if (event.target === event.currentTarget && dismissOnBackdrop) dismiss('backdrop')+ }}+ role="presentation"+ >+ <section+ aria-busy={busy || undefined}+ aria-describedby={describedBy}+ aria-labelledby={titleId}+ aria-modal="true"+ className={classNames('eft-dialog', `eft-dialog--${size}`, className)}+ ref={panelRef}+ role={role}+ tabIndex={-1}+ >+ <header className="eft-dialog__header">+ <div className="eft-dialog__heading">+ <h3 className="eft-dialog__title" id={titleId}>+ {title}+ </h3>+ {description ? (+ <div className="eft-dialog__description" id={descriptionId}>+ {description}+ </div>+ ) : null}+ </div>+ <button+ aria-label={closeButtonLabel}+ className="eft-dialog__close"+ data-dialog-close="true"+ disabled={blocked}+ onClick={() => dismiss('close-button')}+ type="button"+ >+ <span aria-hidden="true">×</span>+ </button>+ </header>+ {children != null ? <div className="eft-dialog__content">{children}</div> : null}+ {error ? (+ <div className="eft-dialog__error" id={errorId} role="alert">+ {error}+ </div>+ ) : null}+ {status ? (+ <div className="eft-dialog__status" id={statusId} role="status">+ {status}+ </div>+ ) : null}+ {footer ? <footer className="eft-dialog__footer">{footer}</footer> : null}+ </section>+ </div>,+ document.body+ )+}diff --git a/packages/frontend-components/src/edit/MultiSelectActionDialog.tsx b/packages/frontend-components/src/edit/MultiSelectActionDialog.tsxnew file mode 100644index 000000000..6b6e0cf6a--- /dev/null+++ b/packages/frontend-components/src/edit/MultiSelectActionDialog.tsx@@ -0,0 +1,124 @@+'use client'++import { useId, useMemo, useState } from 'react'+import type { ReactNode } from 'react'+import { DialogShell } from './DialogShell'+import type { MultiSelectActionDialogProps } from './types'++export function MultiSelectActionDialog({+ open,+ onDismiss,+ title,+ description,+ items,+ selectedIds,+ onSelectedIdsChange,+ onAction,+ actionLabel,+ cancelLabel = 'Cancel',+ searchLabel = 'Search items',+ searchPlaceholder = 'Search',+ emptyMessage = 'No items available.',+ noMatchesMessage = 'No matching items.',+ loading = false,+ pending = false,+ error,+ size = 'large',+}: MultiSelectActionDialogProps) {+ const searchId = useId()+ const [query, setQuery] = useState('')+ const normalizedQuery = query.trim().toLocaleLowerCase()+ const visibleItems = useMemo(+ () =>+ items.filter(+ item =>+ !normalizedQuery || (item.searchText ?? '').toLocaleLowerCase().includes(normalizedQuery)+ ),+ [items, normalizedQuery]+ )+ const selected = new Set(selectedIds)+ const actionableSelectedIds = selectedIds.filter(id =>+ items.some(item => item.id === id && !item.disabled)+ )+ const footer: ReactNode = (+ <>+ <button+ className="eft-dialog__button eft-dialog__button--secondary"+ disabled={pending}+ onClick={() => onDismiss('cancel')}+ type="button"+ >+ {cancelLabel}+ </button>+ <button+ className="eft-dialog__button eft-dialog__button--primary"+ disabled={loading || pending || actionableSelectedIds.length === 0}+ onClick={() => onAction(actionableSelectedIds)}+ type="button"+ >+ {pending ? 'Working…' : actionLabel}+ </button>+ </>+ )++ return (+ <DialogShell+ busy={pending}+ description={description}+ error={error}+ footer={footer}+ onDismiss={onDismiss}+ open={open}+ size={size}+ title={title}+ status={loading ? 'Loading items…' : undefined}+ >+ <div className="eft-multi-select">+ <label className="eft-multi-select__search-label" htmlFor={searchId}>+ {searchLabel}+ </label>+ <input+ className="eft-multi-select__search"+ id={searchId}+ onChange={event => setQuery(event.currentTarget.value)}+ placeholder={searchPlaceholder}+ type="search"+ value={query}+ />+ {loading ? null : items.length === 0 ? (+ <p className="eft-multi-select__message">{emptyMessage}</p>+ ) : visibleItems.length === 0 ? (+ <p className="eft-multi-select__message">{noMatchesMessage}</p>+ ) : (+ <ul className="eft-multi-select__list">+ {visibleItems.map(item => (+ <li className="eft-multi-select__item" key={item.id}>+ <label className="eft-multi-select__option">+ <input+ checked={selected.has(item.id)}+ disabled={pending || item.disabled}+ onChange={event => {+ const next = new Set(selectedIds)+ if (event.currentTarget.checked) next.add(item.id)+ else next.delete(item.id)+ onSelectedIdsChange([...next])+ }}+ type="checkbox"+ />+ <span>+ <span className="eft-multi-select__option-label">{item.label}</span>+ {item.description ? (+ <span className="eft-multi-select__option-description">+ {item.description}+ </span>+ ) : null}+ </span>+ </label>+ </li>+ ))}+ </ul>+ )}+ </div>+ </DialogShell>+ )+}diff --git a/packages/frontend-components/src/edit/SecretEditField.tsx b/packages/frontend-components/src/edit/SecretEditField.tsxnew file mode 100644index 000000000..1c1cfad49--- /dev/null+++ b/packages/frontend-components/src/edit/SecretEditField.tsx@@ -0,0 +1,80 @@+'use client'++import type { ChangeEvent } from 'react'+import type { SecretEditFieldProps } from './types'++export function SecretEditField({+ id,+ label,+ existingValue,+ state,+ onStateChange,+ disabled = false,+ placeholder = 'Enter a new value',+ helpText,+ clearLabel = 'Clear value',+ restoreLabel = 'Restore',+}: SecretEditFieldProps) {+ const inputValue = state.status === 'replaced' ? state.value : ''+ function change(event: ChangeEvent<HTMLInputElement>) {+ const next = event.currentTarget.value+ onStateChange(+ next+ ? { status: 'replaced', value: next }+ : state.status === 'replaced' || existingValue+ ? { status: 'cleared' }+ : { status: 'untouched' }+ )+ }++ return (+ <div className="eft-secret-field">+ <label className="eft-secret-field__label" htmlFor={id}>+ {label}+ </label>+ <input+ autoComplete="new-password"+ className="eft-secret-field__input"+ disabled={disabled}+ id={id}+ onChange={change}+ placeholder={placeholder}+ type="password"+ value={inputValue}+ />+ {existingValue && state.status === 'untouched' ? (+ <p className="eft-secret-field__hint" id={`${id}-stored-hint`}>+ A value is stored. Leave this field blank to keep it.+ </p>+ ) : null}+ {helpText ? <div className="eft-secret-field__hint">{helpText}</div> : null}+ <div className="eft-secret-field__actions">+ <button+ className="eft-dialog__text-button"+ disabled={+ disabled ||+ state.status === 'cleared' ||+ (!existingValue && state.status === 'untouched')+ }+ onClick={() => onStateChange({ status: 'cleared' })}+ type="button"+ >+ {clearLabel}+ </button>+ <button+ className="eft-dialog__text-button"+ disabled={+ disabled ||+ !existingValue ||+ state.status === 'untouched' ||+ state.status === 'restored'+ }+ onClick={() => onStateChange({ status: 'restored' })}+ type="button"+ >+ {restoreLabel}+ </button>+ </div>+ </div>+ )+}diff --git a/packages/frontend-components/src/edit/SimpleEditDialog.tsx b/packages/frontend-components/src/edit/SimpleEditDialog.tsxnew file mode 100644index 000000000..83c89f420--- /dev/null+++ b/packages/frontend-components/src/edit/SimpleEditDialog.tsx@@ -0,0 +1,66 @@+'use client'++import { type FormEvent, type ReactNode, useId } from 'react'+import { DialogShell } from './DialogShell'+import type { SimpleEditDialogProps } from './types'++export function SimpleEditDialog({+ open,+ onCancel,+ onSave,+ title,+ description,+ children,+ isValid = true,+ isDirty = false,+ pending = false,+ error,+ cancelLabel = 'Cancel',+ saveLabel = 'Save',+ closeButtonLabel,+ size = 'default',+}: SimpleEditDialogProps) {+ const formId = useId()+ function submit(event: FormEvent<HTMLFormElement>) {+ event.preventDefault()+ if (!pending && isValid && isDirty) onSave()+ }+ const footer: ReactNode = (+ <>+ <button+ className="eft-dialog__button eft-dialog__button--secondary"+ disabled={pending}+ onClick={onCancel}+ type="button"+ >+ {cancelLabel}+ </button>+ <button+ className="eft-dialog__button eft-dialog__button--primary"+ disabled={pending || !isValid || !isDirty}+ form={formId}+ type="submit"+ >+ {pending ? 'Saving…' : saveLabel}+ </button>+ </>+ )++ return (+ <DialogShell+ busy={pending}+ closeButtonLabel={closeButtonLabel}+ description={description}+ error={error}+ footer={footer}+ onDismiss={() => onCancel()}+ open={open}+ size={size}+ title={title}+ >+ <form className="eft-dialog__form" id={formId} onSubmit={submit}>+ {children}+ </form>+ </DialogShell>+ )+}diff --git a/packages/frontend-components/src/edit/SingleValueEditDialog.tsx b/packages/frontend-components/src/edit/SingleValueEditDialog.tsxnew file mode 100644index 000000000..216fad56a--- /dev/null+++ b/packages/frontend-components/src/edit/SingleValueEditDialog.tsx@@ -0,0 +1,85 @@+'use client'++import { type FormEvent, type ReactNode, useEffect, useId, useRef, useState } from 'react'+import { DialogShell } from './DialogShell'+import type { SingleValueEditDialogProps } from './types'++export function SingleValueEditDialog<T>({+ open,+ initialValue,+ onDismiss,+ onSave,+ renderEditor,+ title,+ description,+ isValid = true,+ isEqual = Object.is,+ pending = false,+ error,+ discardLabel = 'Discard',+ saveLabel = 'Save',+ closeButtonLabel,+ size = 'default',+}: SingleValueEditDialogProps<T>) {+ const formId = useId()+ const [value, setValue] = useState(initialValue)+ const previousOpen = useRef(false)+ useEffect(() => {+ if (open && !previousOpen.current) setValue(initialValue)+ if (!open) setValue(initialValue)+ previousOpen.current = open+ }, [initialValue, open])++ const dirty = !isEqual(value, initialValue)+ function submit(event: FormEvent<HTMLFormElement>) {+ event.preventDefault()+ if (!pending && dirty && isValid) onSave(value)+ }+ const footer: ReactNode = (+ <>+ <button+ className="eft-dialog__button eft-dialog__button--secondary"+ disabled={pending}+ onClick={() => {+ setValue(initialValue)+ onDismiss('cancel')+ }}+ type="button"+ >+ {discardLabel}+ </button>+ <button+ className="eft-dialog__button eft-dialog__button--primary"+ disabled={pending || !dirty || !isValid}+ form={formId}+ type="submit"+ >+ {pending ? 'Saving…' : saveLabel}+ </button>+ </>+ )++ return (+ <DialogShell+ busy={pending}+ closeButtonLabel={closeButtonLabel}+ description={description}+ error={error}+ footer={footer}+ onDismiss={onDismiss}+ open={open}+ size={size}+ title={title}+ >+ <form className="eft-dialog__form" id={formId} onSubmit={submit}>+ {renderEditor({+ value,+ onChange: next => {+ if (!pending) setValue(next)+ },+ disabled: pending,+ })}+ </form>+ </DialogShell>+ )+}diff --git a/packages/frontend-components/src/edit/__tests__/DialogShell.test.tsx b/packages/frontend-components/src/edit/__tests__/DialogShell.test.tsxnew file mode 100644index 000000000..225581677--- /dev/null+++ b/packages/frontend-components/src/edit/__tests__/DialogShell.test.tsx@@ -0,0 +1,185 @@+import { useState } from 'react'+import { afterEach, describe, expect, it, vi } from 'vitest'+import '@testing-library/jest-dom/vitest'+import { cleanup, fireEvent, render, screen, waitFor, within } from '@testing-library/react'+import userEvent from '@testing-library/user-event'+import { ConfirmationDialog } from '../ConfirmationDialog'+import { DialogShell } from '../DialogShell'++afterEach(cleanup)++describe('DialogShell', () => {+ it('labels the dialog, associates its description and error, and focuses inside on open', async () => {+ const user = userEvent.setup()+ render(+ <>+ <button type="button">Open</button>+ <DialogShell+ description="Short explanatory text"+ error="Correct the required field"+ onDismiss={vi.fn()}+ open+ title="Edit item"+ >+ <label>+ Name <input />+ </label>+ </DialogShell>+ </>+ )++ const dialog = await screen.findByRole('dialog', { name: 'Edit item' })+ expect(dialog).toHaveAttribute('aria-modal', 'true')+ expect(dialog).toHaveAccessibleDescription('Short explanatory text Correct the required field')+ expect(screen.getByRole('alert')).toHaveTextContent('Correct the required field')+ await waitFor(() => expect(within(dialog).getByLabelText('Name')).toHaveFocus())+ await user.tab()+ expect(within(dialog).getByRole('button', { name: 'Close dialog' })).toHaveFocus()+ })++ it('contains forward and reverse tab movement and returns focus to the opener', async () => {+ const user = userEvent.setup()+ const onDismiss = vi.fn()+ function OpenDialog() {+ const [open, setOpen] = useState(false)+ return (+ <>+ <button onClick={() => setOpen(true)} type="button">+ Open+ </button>+ <DialogShell+ onDismiss={reason => {+ onDismiss(reason)+ setOpen(false)+ }}+ open={open}+ title="Choose"+ >+ <button type="button">First</button>+ <button type="button">Last</button>+ </DialogShell>+ </>+ )+ }+ render(<OpenDialog />)+ const opener = screen.getByRole('button', { name: 'Open' })+ await user.click(opener)+ const dialog = await screen.findByRole('dialog', { name: 'Choose' })+ const first = within(dialog).getByRole('button', { name: 'First' })+ const last = within(dialog).getByRole('button', { name: 'Last' })+ const close = within(dialog).getByRole('button', { name: 'Close dialog' })+ await waitFor(() => expect(first).toHaveFocus())++ last.focus()+ await user.tab()+ expect(close).toHaveFocus()+ await user.tab({ shift: true })+ expect(last).toHaveFocus()+ await user.keyboard('{Escape}')+ expect(onDismiss).toHaveBeenCalledWith('escape')+ await waitFor(() => expect(opener).toHaveFocus())+ })++ it('supports configured dismissal paths and blocks them while busy by default', async () => {+ const onDismiss = vi.fn()+ const { rerender } = render(+ <DialogShell busy onDismiss={onDismiss} open title="Saving">+ <button type="button">Continue</button>+ </DialogShell>+ )+ const dialog = await screen.findByRole('dialog', { name: 'Saving' })+ fireEvent.keyDown(dialog, { key: 'Escape' })+ fireEvent.mouseDown(screen.getByTestId('dialog-backdrop'))+ await userEvent.setup().click(within(dialog).getByRole('button', { name: 'Close dialog' }))+ expect(onDismiss).not.toHaveBeenCalled()++ rerender(+ <DialogShell onDismiss={onDismiss} open title="Saving" dismissOnEscape={false}>+ <button type="button">Continue</button>+ </DialogShell>+ )+ const nextDialog = screen.getByRole('dialog', { name: 'Saving' })+ fireEvent.keyDown(nextDialog, { key: 'Escape' })+ expect(onDismiss).not.toHaveBeenCalled()+ fireEvent.mouseDown(screen.getByTestId('dialog-backdrop'))+ expect(onDismiss).toHaveBeenCalledWith('backdrop')+ })++ it('routes the explicit close control through the close-button dismissal reason', async () => {+ const onDismiss = vi.fn()+ render(+ <DialogShell onDismiss={onDismiss} open title="Closeable">+ <button type="button">Continue</button>+ </DialogShell>+ )+ const dialog = await screen.findByRole('dialog', { name: 'Closeable' })+ await userEvent.setup().click(within(dialog).getByRole('button', { name: 'Close dialog' }))+ expect(onDismiss).toHaveBeenCalledWith('close-button')+ })++ it('uses unique accessible IDs and supports the large layout', async () => {+ render(+ <>+ <DialogShell onDismiss={vi.fn()} open size="large" title="First dialog" />+ <DialogShell onDismiss={vi.fn()} open size="large" title="Second dialog" />+ </>+ )+ const first = await screen.findByRole('dialog', { name: 'First dialog' })+ const second = screen.getByRole('dialog', { name: 'Second dialog' })+ expect(first).toHaveClass('eft-dialog--large')+ expect(second).toHaveClass('eft-dialog--large')+ expect(first.getAttribute('aria-labelledby')).not.toBe(second.getAttribute('aria-labelledby'))+ })+})++describe('ConfirmationDialog', () => {+ it.each(['info', 'warning', 'error', 'success'] as const)(+ 'exposes the %s tone and orders cancel, optional secondary, then primary actions',+ async tone => {+ const user = userEvent.setup()+ const onCancel = vi.fn()+ const onSecondary = vi.fn()+ const onConfirm = vi.fn()+ render(+ <ConfirmationDialog+ confirmLabel="Apply"+ onCancel={onCancel}+ onConfirm={onConfirm}+ open+ secondaryAction={{ label: 'Review', onSelect: onSecondary }}+ title="Apply changes"+ tone={tone}+ />+ )+ const dialog = await screen.findByRole('alertdialog', { name: 'Apply changes' })+ expect(dialog.querySelector('[data-tone]')).toHaveAttribute('data-tone', tone)+ const buttons = within(dialog)+ .getAllByRole('button')+ .map(button => button.textContent?.trim())+ expect(buttons).toEqual(['×', 'Cancel', 'Review', 'Apply'])+ await user.click(within(dialog).getByRole('button', { name: 'Review' }))+ await user.click(within(dialog).getByRole('button', { name: 'Apply' }))+ expect(onSecondary).toHaveBeenCalledOnce()+ expect(onConfirm).toHaveBeenCalledOnce()+ }+ )++ it('disables actions while pending and routes dismiss through cancel', async () => {+ const onCancel = vi.fn()+ const onConfirm = vi.fn()+ render(+ <ConfirmationDialog+ onCancel={onCancel}+ onConfirm={onConfirm}+ open+ pending+ title="Remove access"+ />+ )+ const dialog = await screen.findByRole('alertdialog', { name: 'Remove access' })+ expect(within(dialog).getByRole('button', { name: 'Working…' })).toBeDisabled()+ fireEvent.keyDown(dialog, { key: 'Escape' })+ expect(onCancel).not.toHaveBeenCalled()+ expect(onConfirm).not.toHaveBeenCalled()+ })+})diff --git a/packages/frontend-components/src/edit/__tests__/EditPrimitives.test.tsx b/packages/frontend-components/src/edit/__tests__/EditPrimitives.test.tsxnew file mode 100644index 000000000..5968e2470--- /dev/null+++ b/packages/frontend-components/src/edit/__tests__/EditPrimitives.test.tsx@@ -0,0 +1,308 @@+import { useState } from 'react'+import { afterEach, describe, expect, it, vi } from 'vitest'+import '@testing-library/jest-dom/vitest'+import { cleanup, fireEvent, render, screen, within } from '@testing-library/react'+import userEvent from '@testing-library/user-event'+import { MultiSelectActionDialog } from '../MultiSelectActionDialog'+import { SecretEditField } from '../SecretEditField'+import { SimpleEditDialog } from '../SimpleEditDialog'+import { SingleValueEditDialog } from '../SingleValueEditDialog'+import type { SecretEditState } from '../types'++afterEach(cleanup)++describe('SingleValueEditDialog', () => {+ it('keeps one value atomic, disables unchanged/invalid saves, and saves the edited value', async () => {+ const user = userEvent.setup()+ const onSave = vi.fn()+ const onDismiss = vi.fn()+ function Harness() {+ const [value, setValue] = useState('original')+ return (+ <SingleValueEditDialog+ initialValue="original"+ isValid={value.length > 2}+ onDismiss={onDismiss}+ onSave={onSave}+ open+ renderEditor={({ value: draft, onChange, disabled }) => (+ <label>+ Value+ <input+ disabled={disabled}+ onChange={event => {+ onChange(event.currentTarget.value)+ setValue(event.currentTarget.value)+ }}+ value={draft}+ />+ </label>+ )}+ title="Edit value"+ />+ )+ }+ render(<Harness />)+ const dialog = await screen.findByRole('dialog', { name: 'Edit value' })+ const save = within(dialog).getByRole('button', { name: 'Save' })+ expect(save).toBeDisabled()+ const input = within(dialog).getByLabelText('Value')+ await user.clear(input)+ await user.type(input, 'x')+ expect(save).toBeDisabled()+ await user.clear(input)+ await user.type(input, 'changed')+ expect(save).toBeEnabled()+ await user.type(input, '{Enter}')+ expect(onSave).toHaveBeenCalledWith('changed')+ expect(onDismiss).not.toHaveBeenCalled()+ })++ it('discards the local draft through the cancel callback', async () => {+ const user = userEvent.setup()+ const onDismiss = vi.fn()+ render(+ <SingleValueEditDialog+ initialValue={4}+ onDismiss={onDismiss}+ onSave={vi.fn()}+ open+ renderEditor={({ value }) => <output>{value}</output>}+ title="Edit count"+ />+ )+ await user.click(screen.getByRole('button', { name: 'Discard' }))+ expect(onDismiss).toHaveBeenCalledWith('cancel')+ })+})++describe('SimpleEditDialog', () => {+ it('keeps form validity, dirty state, and pending state at the action boundary', async () => {+ const user = userEvent.setup()+ const onSave = vi.fn()+ const onCancel = vi.fn()+ const { rerender } = render(+ <SimpleEditDialog+ isDirty={false}+ isValid+ onCancel={onCancel}+ onSave={onSave}+ open+ title="Edit profile"+ >+ <label>+ Name+ <input defaultValue="Ada" />+ </label>+ </SimpleEditDialog>+ )+ const dialog = await screen.findByRole('dialog', { name: 'Edit profile' })+ expect(within(dialog).getByRole('button', { name: 'Save' })).toBeDisabled()+ rerender(+ <SimpleEditDialog+ isDirty+ isValid+ pending+ onCancel={onCancel}+ onSave={onSave}+ open+ title="Edit profile"+ >+ <label>+ Name+ <input defaultValue="Ada" />+ </label>+ </SimpleEditDialog>+ )+ expect(within(dialog).getByRole('button', { name: 'Saving…' })).toBeDisabled()+ fireEvent.keyDown(dialog, { key: 'Escape' })+ expect(onCancel).not.toHaveBeenCalled()+ expect(onSave).not.toHaveBeenCalled()+ })++ it('supports keyboard-only submission from the bounded form', async () => {+ const user = userEvent.setup()+ const onSave = vi.fn()+ render(+ <SimpleEditDialog isDirty isValid onCancel={vi.fn()} onSave={onSave} open title="Add label">+ <label>+ Label+ <input defaultValue="Platform" />+ </label>+ </SimpleEditDialog>+ )+ const input = await screen.findByLabelText('Label')+ input.focus()+ await user.keyboard('{Enter}')+ expect(onSave).toHaveBeenCalledOnce()+ })+})++describe('SecretEditField', () => {+ it('never reads an existing secret, exposes write-only operations, and emits explicit tagged state', async () => {+ const user = userEvent.setup()+ const onStateChange = vi.fn()+ function SecretHarness() {+ const [state, setState] = useState<SecretEditState>({ status: 'untouched' })+ return (+ <SecretEditField+ existingValue+ id="credential"+ label="Credential"+ onStateChange={next => {+ onStateChange(next)+ setState(next)+ }}+ state={state}+ />+ )+ }+ render(<SecretHarness />)+ const field = screen.getByLabelText('Credential')+ expect(field).toHaveAttribute('type', 'password')+ expect(field).toHaveValue('')+ expect(+ screen.getByText('A value is stored. Leave this field blank to keep it.')+ ).toBeInTheDocument()+ expect(screen.getByRole('button', { name: 'Restore' })).toBeDisabled()+ await user.type(field, 'new-secret')+ expect(onStateChange).toHaveBeenLastCalledWith({ status: 'replaced', value: 'new-secret' })+ await user.clear(field)+ expect(onStateChange).toHaveBeenLastCalledWith({ status: 'cleared' })+ await user.type(field, 'replacement')+ await user.click(screen.getByRole('button', { name: 'Clear value' }))+ expect(onStateChange).toHaveBeenLastCalledWith({ status: 'cleared' })+ await user.click(screen.getByRole('button', { name: 'Restore' }))+ expect(onStateChange).toHaveBeenLastCalledWith({ status: 'restored' })+ expect(document.body).not.toHaveTextContent('new-secret')+ })++ it('does not offer restore when no stored value exists', () => {+ render(+ <SecretEditField+ existingValue={false}+ id="new-secret"+ label="New secret"+ onStateChange={vi.fn()}+ state={{ status: 'untouched' }}+ />+ )+ expect(screen.getByRole('button', { name: 'Restore' })).toBeDisabled()+ })+})++describe('MultiSelectActionDialog', () => {+ const items = [+ { id: 'alpha', label: 'Alpha', description: 'First option', searchText: 'first alpha' },+ { id: 'beta', label: 'Beta', searchText: 'second beta', disabled: true },+ ] as const++ it('filters accessible options, keeps disabled items immutable, and acts only on selected IDs', async () => {+ const user = userEvent.setup()+ const onSelectedIdsChange = vi.fn()+ const onAction = vi.fn()+ const { rerender } = render(+ <MultiSelectActionDialog+ actionLabel="Apply to selected"+ items={items}+ onAction={onAction}+ onDismiss={vi.fn()}+ onSelectedIdsChange={onSelectedIdsChange}+ open+ selectedIds={[]}+ title="Choose records"+ />+ )+ const dialog = await screen.findByRole('dialog', { name: 'Choose records' })+ const action = within(dialog).getByRole('button', { name: 'Apply to selected' })+ expect(action).toBeDisabled()+ await user.type(within(dialog).getByRole('searchbox', { name: 'Search items' }), 'alpha')+ expect(within(dialog).getByRole('checkbox', { name: /Alpha/ })).toBeInTheDocument()+ expect(within(dialog).queryByRole('checkbox', { name: /Beta/ })).not.toBeInTheDocument()+ await user.clear(within(dialog).getByRole('searchbox', { name: 'Search items' }))+ expect(within(dialog).getByRole('checkbox', { name: /Beta/ })).toBeDisabled()+ await user.click(within(dialog).getByRole('checkbox', { name: /Alpha/ }))+ expect(onSelectedIdsChange).toHaveBeenCalledWith(['alpha'])+ rerender(+ <MultiSelectActionDialog+ actionLabel="Apply to selected"+ items={items}+ onAction={onAction}+ onDismiss={vi.fn()}+ onSelectedIdsChange={onSelectedIdsChange}+ open+ selectedIds={['alpha']}+ title="Choose records"+ />+ )+ await user.click(within(dialog).getByRole('button', { name: 'Apply to selected' }))+ expect(onAction).toHaveBeenCalledWith(['alpha'])+ })++ it('announces loading, empty results, and no matches while suppressing actions', async () => {+ const { rerender } = render(+ <MultiSelectActionDialog+ actionLabel="Run"+ items={[]}+ loading+ onAction={vi.fn()}+ onDismiss={vi.fn()}+ onSelectedIdsChange={vi.fn()}+ open+ selectedIds={['stale']}+ title="Batch action"+ />+ )+ const dialog = await screen.findByRole('dialog', { name: 'Batch action' })+ expect(within(dialog).getByRole('status')).toHaveTextContent('Loading items…')+ expect(within(dialog).getByRole('button', { name: 'Run' })).toBeDisabled()+ rerender(+ <MultiSelectActionDialog+ actionLabel="Run"+ items={[]}+ onAction={vi.fn()}+ onDismiss={vi.fn()}+ onSelectedIdsChange={vi.fn()}+ open+ selectedIds={[]}+ title="Batch action"+ />+ )+ expect(within(dialog).getByText('No items available.')).toBeInTheDocument()+ rerender(+ <MultiSelectActionDialog+ actionLabel="Run"+ items={items}+ onAction={vi.fn()}+ onDismiss={vi.fn()}+ onSelectedIdsChange={vi.fn()}+ open+ selectedIds={[]}+ title="Batch action"+ />+ )+ await userEvent+ .setup()+ .type(within(dialog).getByRole('searchbox', { name: 'Search items' }), 'missing')+ expect(within(dialog).getByText('No matching items.')).toBeInTheDocument()+ })++ it('does not act on a controlled selection containing only unavailable IDs', async () => {+ const onAction = vi.fn()+ render(+ <MultiSelectActionDialog+ actionLabel="Apply"+ items={[{ id: 'locked', label: 'Locked item', disabled: true }]}+ onAction={onAction}+ onDismiss={vi.fn()}+ onSelectedIdsChange={vi.fn()}+ open+ selectedIds={['locked', 'missing']}+ title="Choose records"+ />+ )+ const dialog = await screen.findByRole('dialog', { name: 'Choose records' })+ expect(within(dialog).getByRole('button', { name: 'Apply' })).toBeDisabled()+ expect(onAction).not.toHaveBeenCalled()+ })+})diff --git a/packages/frontend-components/src/edit/index.ts b/packages/frontend-components/src/edit/index.tsnew file mode 100644index 000000000..5de823def--- /dev/null+++ b/packages/frontend-components/src/edit/index.ts@@ -0,0 +1,7 @@+export * from './ConfirmationDialog'+export * from './DialogShell'+export * from './MultiSelectActionDialog'+export * from './SecretEditField'+export * from './SimpleEditDialog'+export * from './SingleValueEditDialog'+export type * from './types'diff --git a/packages/frontend-components/src/edit/types.ts b/packages/frontend-components/src/edit/types.tsnew file mode 100644index 000000000..1d6d0a984--- /dev/null+++ b/packages/frontend-components/src/edit/types.ts@@ -0,0 +1,138 @@+import type { ReactNode, RefObject } from 'react'++export type DialogSize = 'default' | 'large'+export type DialogTone = 'info' | 'warning' | 'error' | 'success'+export type DialogDismissReason = 'escape' | 'backdrop' | 'close-button' | 'cancel'++export interface DialogShellProps {+ open: boolean+ onDismiss: (reason: DialogDismissReason) => void+ title: ReactNode+ description?: ReactNode+ children?: ReactNode+ footer?: ReactNode+ status?: ReactNode+ error?: ReactNode+ size?: DialogSize+ role?: 'dialog' | 'alertdialog'+ closeButtonLabel?: string+ dismissOnEscape?: boolean+ dismissOnBackdrop?: boolean+ preventDismissWhileBusy?: boolean+ busy?: boolean+ initialFocusRef?: RefObject<HTMLElement | null>+ className?: string+}++export interface ConfirmationSecondaryAction {+ label: string+ onSelect: () => void+ disabled?: boolean+}++export interface ConfirmationDialogProps {+ open: boolean+ onCancel: () => void+ onConfirm: () => void+ title: ReactNode+ description?: ReactNode+ children?: ReactNode+ tone?: DialogTone+ icon?: ReactNode+ cancelLabel?: string+ confirmLabel?: string+ secondaryAction?: ConfirmationSecondaryAction+ confirmDisabled?: boolean+ pending?: boolean+ error?: ReactNode+ size?: DialogSize+}++export interface SingleValueEditorProps<T> {+ value: T+ onChange: (value: T) => void+ disabled: boolean+}++export interface SingleValueEditDialogProps<T> {+ open: boolean+ initialValue: T+ onDismiss: (reason: DialogDismissReason) => void+ onSave: (value: T) => void+ renderEditor: (props: SingleValueEditorProps<T>) => ReactNode+ title: ReactNode+ description?: ReactNode+ isValid?: boolean+ isEqual?: (left: T, right: T) => boolean+ pending?: boolean+ error?: ReactNode+ discardLabel?: string+ saveLabel?: string+ closeButtonLabel?: string+ size?: DialogSize+}++export interface SimpleEditDialogProps {+ open: boolean+ onCancel: () => void+ onSave: () => void+ title: ReactNode+ description?: ReactNode+ children?: ReactNode+ isValid?: boolean+ isDirty?: boolean+ pending?: boolean+ error?: ReactNode+ cancelLabel?: string+ saveLabel?: string+ closeButtonLabel?: string+ size?: DialogSize+}++export type SecretEditState =+ | { status: 'untouched' }+ | { status: 'replaced'; value: string }+ | { status: 'cleared' }+ | { status: 'restored' }++export interface SecretEditFieldProps {+ id: string+ label: string+ existingValue: boolean+ state: SecretEditState+ onStateChange: (state: SecretEditState) => void+ disabled?: boolean+ placeholder?: string+ helpText?: ReactNode+ clearLabel?: string+ restoreLabel?: string+}++export interface MultiSelectItem {+ id: string+ label: ReactNode+ description?: ReactNode+ searchText?: string+ disabled?: boolean+}++export interface MultiSelectActionDialogProps {+ open: boolean+ onDismiss: (reason: DialogDismissReason) => void+ title: ReactNode+ description?: ReactNode+ items: readonly MultiSelectItem[]+ selectedIds: readonly string[]+ onSelectedIdsChange: (selectedIds: string[]) => void+ onAction: (selectedIds: string[]) => void+ actionLabel: string+ cancelLabel?: string+ searchLabel?: string+ searchPlaceholder?: string+ emptyMessage?: ReactNode+ noMatchesMessage?: ReactNode+ loading?: boolean+ pending?: boolean+ error?: ReactNode+ size?: DialogSize+}diff --git a/packages/frontend-components/src/index.tsx b/packages/frontend-components/src/index.tsxindex 302847a87..18c80eb9b 100644--- a/packages/frontend-components/src/index.tsx+++ b/packages/frontend-components/src/index.tsx@@ -1 +1,2 @@export * from './table'+export * from './edit'diff --git a/packages/frontend-components/src/public-api.test.ts b/packages/frontend-components/src/public-api.test.tsindex c46faf337..d9b38d2df 100644--- a/packages/frontend-components/src/public-api.test.ts+++ b/packages/frontend-components/src/public-api.test.ts@@ -1,10 +1,16 @@import {+ ConfirmationDialog,DataTable,DataViewHeader,+ DialogShell,GroupedTableBody,+ MultiSelectActionDialog,RecordList,RecordListRow,RowActionMenu,+ SecretEditField,+ SimpleEditDialog,+ SingleValueEditDialog,TableCell,TableHeaderCell,TableRow,@@ -18,10 +24,16 @@ import {} from './index'import type {CellKind,+ ConfirmationDialogProps,DataViewHeaderProps,+ DialogShellProps,GroupedTableBodyProps,GroupedTableSummaryCell,+ MultiSelectActionDialogProps,RowAction,+ SecretEditFieldProps,+ SimpleEditDialogProps,+ SingleValueEditDialogProps,SortDirection,SortValue,TableHeaderCellProps,@@ -46,6 +58,12 @@ export const publicRuntimeApi = {compareSortValues,stableSortRows,useTableSort,+ ConfirmationDialog,+ DialogShell,+ MultiSelectActionDialog,+ SecretEditField,+ SimpleEditDialog,+ SingleValueEditDialog,}export type PublicTypeApi = {@@ -59,4 +77,10 @@ export type PublicTypeApi = {tableHeaderCell: TableHeaderCellPropstableStateRow: TableStateRowPropstableVariant: TableVariant+ confirmationDialog: ConfirmationDialogProps+ dialogShell: DialogShellProps+ multiSelectActionDialog: MultiSelectActionDialogProps+ secretEditField: SecretEditFieldProps+ simpleEditDialog: SimpleEditDialogProps+ singleValueEditDialog: SingleValueEditDialogProps<string>}diff --git a/packages/frontend-components/styles.css b/packages/frontend-components/styles.cssindex 359f5866e..9a1be9737 100644--- a/packages/frontend-components/styles.css+++ b/packages/frontend-components/styles.css@@ -6,9 +6,282 @@--eft-muted: var(--cu-text-muted);--eft-accent: var(--cu-accent);--eft-danger: var(--cu-danger);+ --eft-warning: var(--cu-warning);+ --eft-success: var(--cu-success);+ --eft-overlay: var(--cu-overlay);--eft-focus: rgba(var(--cu-focus-rgb), 0.8);}+.eft-dialog-backdrop {+ align-items: center;+ background: var(--eft-overlay);+ display: flex;+ inset: 0;+ justify-content: center;+ overflow: auto;+ padding: var(--cu-space-4);+ position: fixed;+ z-index: 1000;+}+.eft-dialog {+ background: var(--eft-surface);+ border: 1px solid var(--eft-border);+ border-radius: var(--cu-radius);+ box-shadow: var(--cu-shadow);+ color: var(--eft-text);+ display: flex;+ flex-direction: column;+ max-height: calc(100vh - 2rem);+ max-width: min(100%, 34rem);+ outline: none;+ overflow: auto;+ width: 100%;+}+.eft-dialog--large {+ max-width: min(100%, 60rem);+}+.eft-dialog:focus-visible,+.eft-dialog__close:focus-visible,+.eft-dialog__button:focus-visible,+.eft-dialog__text-button:focus-visible,+.eft-secret-field__input:focus-visible,+.eft-multi-select__search:focus-visible,+.eft-multi-select__option:focus-within {+ outline: 2px solid var(--eft-focus);+ outline-offset: 2px;+}+.eft-dialog__header {+ align-items: flex-start;+ border-bottom: 1px solid var(--eft-border);+ display: flex;+ gap: var(--cu-space-3);+ justify-content: space-between;+ padding: var(--cu-space-4);+}+.eft-dialog__heading {+ min-width: 0;+}+.eft-dialog__title {+ color: var(--eft-text);+ font: inherit;+ font-weight: var(--eft-table-header-font-weight);+ line-height: 1.2;+ margin: 0;+}+.eft-dialog__description,+.eft-dialog__content,+.eft-dialog__status,+.eft-dialog__error {+ line-height: 1.45;+}+.eft-dialog__description {+ color: var(--eft-muted);+ margin-top: var(--cu-space-2);+}+.eft-dialog__content {+ min-height: 0;+ overflow: auto;+ padding: var(--cu-space-4);+}+.eft-dialog__form {+ min-width: 0;+}+.eft-dialog__close {+ align-items: center;+ background: transparent;+ border: 0;+ border-radius: var(--cu-radius-sm);+ color: var(--eft-muted);+ cursor: pointer;+ display: inline-flex;+ flex: 0 0 auto;+ font: inherit;+ justify-content: center;+ min-height: 2rem;+ min-width: 2rem;+}+.eft-dialog__close:hover:not(:disabled) {+ background: var(--eft-surface-muted);+ color: var(--eft-text);+}+.eft-dialog__close:disabled {+ cursor: not-allowed;+ opacity: 0.6;+}+.eft-dialog__status,+.eft-dialog__error {+ margin: 0 var(--cu-space-4) var(--cu-space-3);+ padding: var(--cu-space-3);+}+.eft-dialog__status {+ background: color-mix(in srgb, var(--eft-accent) 12%, transparent);+ border: 1px solid color-mix(in srgb, var(--eft-accent) 36%, transparent);+ border-radius: var(--cu-radius-sm);+}+.eft-dialog__error {+ background: color-mix(in srgb, var(--eft-danger) 12%, transparent);+ border: 1px solid color-mix(in srgb, var(--eft-danger) 48%, transparent);+ border-radius: var(--cu-radius-sm);+}+.eft-dialog__footer {+ align-items: center;+ border-top: 1px solid var(--eft-border);+ display: flex;+ flex-wrap: wrap;+ gap: var(--cu-space-2);+ justify-content: flex-end;+ padding: var(--cu-space-3) var(--cu-space-4);+}+.eft-dialog__button,+.eft-secret-field__input,+.eft-multi-select__search {+ background: var(--eft-surface-muted);+ border: 1px solid var(--eft-border);+ border-radius: var(--cu-radius-sm);+ color: var(--eft-text);+ cursor: pointer;+ font: inherit;+ min-height: 2.25rem;+ padding: var(--cu-space-2) var(--cu-space-3);+}+.eft-dialog__button:hover:not(:disabled) {+ border-color: var(--eft-accent);+}+.eft-dialog__button:disabled,+.eft-secret-field__input:disabled,+.eft-multi-select__search:disabled {+ cursor: not-allowed;+ opacity: 0.6;+}+.eft-dialog__button--primary {+ background: var(--eft-accent);+ border-color: var(--eft-accent);+ color: var(--cu-text-inverse);+}+.eft-dialog__button--error {+ background: var(--eft-danger);+ border-color: var(--eft-danger);+ color: var(--cu-text-inverse);+}+.eft-dialog-confirmation__title {+ align-items: center;+ display: inline-flex;+ gap: var(--cu-space-2);+}+.eft-dialog-confirmation__title[data-tone='warning'] .eft-dialog-confirmation__icon {+ color: var(--eft-warning);+}+.eft-dialog-confirmation__title[data-tone='error'] .eft-dialog-confirmation__icon {+ color: var(--eft-danger);+}+.eft-dialog-confirmation__title[data-tone='success'] .eft-dialog-confirmation__icon {+ color: var(--eft-success);+}+.eft-dialog-confirmation__icon {+ display: inline-flex;+}+.eft-dialog__text-button {+ background: transparent;+ border: 0;+ border-radius: var(--cu-radius-sm);+ color: var(--eft-accent);+ cursor: pointer;+ font: inherit;+ min-height: 2.25rem;+ padding: var(--cu-space-2) var(--cu-space-2);+ text-decoration: underline;+ text-underline-offset: 0.15em;+}+.eft-dialog__text-button:disabled {+ color: var(--eft-muted);+ cursor: not-allowed;+ opacity: 0.7;+}+.eft-secret-field,+.eft-multi-select {+ display: grid;+ gap: var(--cu-space-2);+ min-width: 0;+}+.eft-secret-field__label,+.eft-multi-select__search-label {+ color: var(--eft-text);+ font-weight: var(--eft-table-header-font-weight);+}+.eft-secret-field__input,+.eft-multi-select__search {+ background: var(--eft-surface);+ color: var(--eft-text);+ min-width: 0;+ width: 100%;+}+.eft-secret-field__hint,+.eft-multi-select__option-description,+.eft-multi-select__message {+ color: var(--eft-muted);+ margin: 0;+}+.eft-secret-field__actions {+ display: flex;+ flex-wrap: wrap;+ gap: var(--cu-space-2);+}+.eft-multi-select__list {+ border: 1px solid var(--eft-border);+ border-radius: var(--cu-radius-sm);+ list-style: none;+ margin: 0;+ max-height: min(45vh, 26rem);+ overflow: auto;+ padding: 0;+}+.eft-multi-select__item + .eft-multi-select__item {+ border-top: 1px solid var(--eft-border);+}+.eft-multi-select__option {+ align-items: flex-start;+ cursor: pointer;+ display: flex;+ gap: var(--cu-space-3);+ min-width: 0;+ padding: var(--cu-space-3);+}+.eft-multi-select__option input {+ flex: 0 0 auto;+ margin-top: 0.2em;+}+.eft-multi-select__option > span,+.eft-multi-select__option-label,+.eft-multi-select__option-description {+ display: block;+ min-width: 0;+ overflow-wrap: anywhere;+}+.eft-multi-select__option-label {+ color: var(--eft-text);+ font-weight: var(--eft-table-header-font-weight);+}+.eft-multi-select__option-description {+ margin-top: var(--cu-space-1);+}++@media (max-width: 40rem) {+ .eft-dialog-backdrop {+ padding: var(--cu-space-4);+ }+ .eft-dialog {+ max-height: calc(100vh - 2rem);+ max-width: min(100%, 34rem);+ width: 100%;+ }+ .eft-dialog__footer > * {+ flex: 1 1 8rem;+ }+ .eft-multi-select__list {+ max-height: min(36vh, 20rem);+ }+}+.eft-data-view-header {display: flex;flex-direction: column;