diff --git a/package.json b/package.json index 2b1199e5335..bf03f428db0 100644 --- a/package.json +++ b/package.json @@ -56,8 +56,8 @@ "@testing-library/react": "^16.3.2", "@testing-library/user-event": "^14.6.1", "@types/node": "^22.19.15", - "@types/react": "^18.3.28", - "@types/react-dom": "^18.3.7", + "@types/react": "^19.2.14", + "@types/react-dom": "^19.2.3", "@vitest/eslint-plugin": "^1.6.14", "chromatic": "^15.3.1", "eslint": "^9.18.0", @@ -68,7 +68,7 @@ "eslint-plugin-mdx": "^3.7.0", "eslint-plugin-prettier": "^5.5.5", "eslint-plugin-react": "^7.37.5", - "eslint-plugin-react-hooks": "^5.2.0", + "eslint-plugin-react-hooks": "^7.0.1", "eslint-plugin-storybook": "^0.12.0", "globals": "^17.4.0", "node-fetch": "^3.3.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a4330a2ed2c..1558b6d6cae 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -36,7 +36,7 @@ importers: version: 8.6.12(storybook@8.6.12(prettier@3.8.1)) '@storybook/addon-essentials': specifier: 8.6.12 - version: 8.6.12(@types/react@18.3.28)(storybook@8.6.12(prettier@3.8.1)) + version: 8.6.12(@types/react@19.2.14)(storybook@8.6.12(prettier@3.8.1)) '@storybook/addon-interactions': specifier: 8.6.12 version: 8.6.12(storybook@8.6.12(prettier@3.8.1)) @@ -66,7 +66,7 @@ importers: version: 6.9.1 '@testing-library/react': specifier: ^16.3.2 - version: 16.3.2(@testing-library/dom@10.4.1)(@types/react-dom@18.3.7(@types/react@18.3.28))(@types/react@18.3.28)(react-dom@19.2.4(react@19.2.4))(react@19.2.4) + version: 16.3.2(@testing-library/dom@10.4.1)(@types/react-dom@19.2.3(@types/react@19.2.14))(@types/react@19.2.14)(react-dom@19.2.4(react@19.2.4))(react@19.2.4) '@testing-library/user-event': specifier: ^14.6.1 version: 14.6.1(@testing-library/dom@10.4.1) @@ -74,11 +74,11 @@ importers: specifier: ^22.19.15 version: 22.19.15 '@types/react': - specifier: ^18.3.28 - version: 18.3.28 + specifier: ^19.2.14 + version: 19.2.14 '@types/react-dom': - specifier: ^18.3.7 - version: 18.3.7(@types/react@18.3.28) + specifier: ^19.2.3 + version: 19.2.3(@types/react@19.2.14) '@vitest/eslint-plugin': specifier: ^1.6.14 version: 1.6.14(@typescript-eslint/eslint-plugin@8.57.2(@typescript-eslint/parser@8.57.2(eslint@9.18.0(jiti@1.21.7))(typescript@5.9.3))(eslint@9.18.0(jiti@1.21.7))(typescript@5.9.3))(eslint@9.18.0(jiti@1.21.7))(typescript@5.9.3)(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.19.15)(jiti@1.21.7)(jsdom@20.0.3)(less@4.2.0)(sass@1.79.6)(stylus@0.62.0)(terser@5.31.5)(tsx@4.21.0)(yaml@2.5.0)) @@ -110,8 +110,8 @@ importers: specifier: ^7.37.5 version: 7.37.5(eslint@9.18.0(jiti@1.21.7)) eslint-plugin-react-hooks: - specifier: ^5.2.0 - version: 5.2.0(eslint@9.18.0(jiti@1.21.7)) + specifier: ^7.0.1 + version: 7.0.1(eslint@9.18.0(jiti@1.21.7)) eslint-plugin-storybook: specifier: ^0.12.0 version: 0.12.0(eslint@9.18.0(jiti@1.21.7))(typescript@5.9.3) @@ -382,16 +382,16 @@ importers: version: 9.6.7(react@19.2.4) react-focus-lock: specifier: ^2.13.7 - version: 2.13.7(@types/react@18.3.28)(react@19.2.4) + version: 2.13.7(@types/react@19.2.14)(react@19.2.4) react-focus-on: specifier: ^3.10.2 - version: 3.10.2(@types/react@18.3.28)(react@19.2.4) + version: 3.10.2(@types/react@19.2.14)(react@19.2.4) react-popper: specifier: ^2.3.0 version: 2.3.0(@popperjs/core@2.11.8)(react-dom@19.2.4(react@19.2.4))(react@19.2.4) react-select: specifier: ^5.10.2 - version: 5.10.2(@types/react@18.3.28)(react-dom@19.2.4(react@19.2.4))(react@19.2.4) + version: 5.10.2(@types/react@19.2.14)(react-dom@19.2.4(react@19.2.4))(react@19.2.4) react-textfit: specifier: ^1.1.1 version: 1.1.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4) @@ -4078,10 +4078,10 @@ packages: '@types/prop-types@15.7.12': resolution: {integrity: sha512-5zvhXYtRNRluoE/jAp4GVsSduVUzNWKkOZrCDBWYtE7biZywwdC2AcEzg+cSMLFRfVgeAFqpfNabiPjxFddV1Q==} - '@types/react-dom@18.3.7': - resolution: {integrity: sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ==} + '@types/react-dom@19.2.3': + resolution: {integrity: sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==} peerDependencies: - '@types/react': ^18.0.0 + '@types/react': ^19.2.0 '@types/react-highlight@0.12.8': resolution: {integrity: sha512-V7O7zwXUw8WSPd//YUO8sz489J/EeobJljASGhP0rClrvq+1Y1qWEpToGu+Pp7YuChxhAXSgkLkrOYpZX5A62g==} @@ -4095,8 +4095,8 @@ packages: '@types/react@18.3.27': resolution: {integrity: sha512-cisd7gxkzjBKU2GgdYrTdtQx1SORymWyaAFhaxQPK9bYO9ot3Y5OikQRvY0VYQtvwjeQnizCINJAenh/V7MK2w==} - '@types/react@18.3.28': - resolution: {integrity: sha512-z9VXpC7MWrhfWipitjNdgCauoMLRdIILQsAEV+ZesIzBq/oUlxk0m3ApZuMFCXdnS4U7KrI+l3WRUEGQ8K1QKw==} + '@types/react@19.2.14': + resolution: {integrity: sha512-ilcTH/UniCkMdtexkoCN0bI7pMcJDvmQFPvuPvmEaYA/NSfFTAgdUSLAoVjaRJm7+6PvcM+q1zYOwS4wTYMF9w==} '@types/resolve@1.20.2': resolution: {integrity: sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==} @@ -5820,9 +5820,9 @@ packages: eslint-config-prettier: optional: true - eslint-plugin-react-hooks@5.2.0: - resolution: {integrity: sha512-+f15FfK64YQwZdJNELETdn5ibXEUQmW1DZL6KXhNnc2heoy/sg9VJJeT7n8TlMWouzWqSWavFkIhHyIbIAEapg==} - engines: {node: '>=10'} + eslint-plugin-react-hooks@7.0.1: + resolution: {integrity: sha512-O0d0m04evaNzEPoSW+59Mezf8Qt0InfgGIBJnpC0h3NH/WjUAR7BIKUfysC6todmtiZ/A0oUVS8Gce0WhBrHsA==} + engines: {node: '>=18'} peerDependencies: eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0 @@ -6356,6 +6356,12 @@ packages: headers-utils@3.0.2: resolution: {integrity: sha512-xAxZkM1dRyGV2Ou5bzMxBPNLoRCjcX+ya7KSWybQD2KwLphxsapUVK6x/02o7f4VU6GPSXch9vNY2+gkU8tYWQ==} + hermes-estree@0.25.1: + resolution: {integrity: sha512-0wUoCcLp+5Ev5pDW2OriHC2MJCbwLwuRx+gAqMTOkGKJJiBCLjtrvy4PWUGn6MIVefecRpzoOZ/UV6iGdOr+Cw==} + + hermes-parser@0.25.1: + resolution: {integrity: sha512-6pEjquH3rqaI6cYAXYPcz9MS4rY6R4ngRgrgfDshRptUZIc3lw0MCIJIGDj9++mfySOuPTHB4nrSW99BCvOPIA==} + highlight.js@10.7.3: resolution: {integrity: sha512-tzcUFauisWKNHaRkN4Wjl/ZA07gENAjFl3J/c480dprkGTg5EQstgaNFqBfUqCq54kZRIEcreTsAgF/m2quD7A==} @@ -10272,6 +10278,15 @@ packages: engines: {node: '>=8.0.0'} hasBin: true + zod-validation-error@4.0.2: + resolution: {integrity: sha512-Q6/nZLe6jxuU80qb/4uJ4t5v2VEZ44lzQjPDhYJNztRQ4wyWc6VF3D3Kb/fAuPetZQnhS3hnajCf9CsWesghLQ==} + engines: {node: '>=18.0.0'} + peerDependencies: + zod: ^3.25.0 || ^4.0.0 + + zod@4.3.6: + resolution: {integrity: sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg==} + zwitch@2.0.4: resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==} @@ -11273,7 +11288,7 @@ snapshots: '@emotion/memoize@0.8.1': {} - '@emotion/react@11.11.4(@types/react@18.3.28)(react@19.2.4)': + '@emotion/react@11.11.4(@types/react@19.2.14)(react@19.2.4)': dependencies: '@babel/runtime': 7.25.0 '@emotion/babel-plugin': 11.11.0 @@ -11285,7 +11300,7 @@ snapshots: hoist-non-react-statics: 3.3.2 react: 19.2.4 optionalDependencies: - '@types/react': 18.3.28 + '@types/react': 19.2.14 transitivePeerDependencies: - supports-color @@ -12175,10 +12190,10 @@ snapshots: globby: 11.1.0 read-yaml-file: 1.1.0 - '@mdx-js/react@3.0.1(@types/react@18.3.28)(react@19.2.4)': + '@mdx-js/react@3.0.1(@types/react@19.2.14)(react@19.2.4)': dependencies: '@types/mdx': 2.0.13 - '@types/react': 18.3.28 + '@types/react': 19.2.14 react: 19.2.4 '@mswjs/cookies@1.1.0': {} @@ -13744,9 +13759,9 @@ snapshots: storybook: 8.6.12(prettier@3.8.1) ts-dedent: 2.2.0 - '@storybook/addon-docs@8.6.12(@types/react@18.3.28)(storybook@8.6.12(prettier@3.8.1))': + '@storybook/addon-docs@8.6.12(@types/react@19.2.14)(storybook@8.6.12(prettier@3.8.1))': dependencies: - '@mdx-js/react': 3.0.1(@types/react@18.3.28)(react@19.2.4) + '@mdx-js/react': 3.0.1(@types/react@19.2.14)(react@19.2.4) '@storybook/blocks': 8.6.12(react-dom@19.2.4(react@19.2.4))(react@19.2.4)(storybook@8.6.12(prettier@3.8.1)) '@storybook/csf-plugin': 8.6.12(storybook@8.6.12(prettier@3.8.1)) '@storybook/react-dom-shim': 8.6.12(react-dom@19.2.4(react@19.2.4))(react@19.2.4)(storybook@8.6.12(prettier@3.8.1)) @@ -13757,12 +13772,12 @@ snapshots: transitivePeerDependencies: - '@types/react' - '@storybook/addon-essentials@8.6.12(@types/react@18.3.28)(storybook@8.6.12(prettier@3.8.1))': + '@storybook/addon-essentials@8.6.12(@types/react@19.2.14)(storybook@8.6.12(prettier@3.8.1))': dependencies: '@storybook/addon-actions': 8.6.12(storybook@8.6.12(prettier@3.8.1)) '@storybook/addon-backgrounds': 8.6.12(storybook@8.6.12(prettier@3.8.1)) '@storybook/addon-controls': 8.6.12(storybook@8.6.12(prettier@3.8.1)) - '@storybook/addon-docs': 8.6.12(@types/react@18.3.28)(storybook@8.6.12(prettier@3.8.1)) + '@storybook/addon-docs': 8.6.12(@types/react@19.2.14)(storybook@8.6.12(prettier@3.8.1)) '@storybook/addon-highlight': 8.6.12(storybook@8.6.12(prettier@3.8.1)) '@storybook/addon-measure': 8.6.12(storybook@8.6.12(prettier@3.8.1)) '@storybook/addon-outline': 8.6.12(storybook@8.6.12(prettier@3.8.1)) @@ -14158,15 +14173,15 @@ snapshots: picocolors: 1.1.1 redent: 3.0.0 - '@testing-library/react@16.3.2(@testing-library/dom@10.4.1)(@types/react-dom@18.3.7(@types/react@18.3.28))(@types/react@18.3.28)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)': + '@testing-library/react@16.3.2(@testing-library/dom@10.4.1)(@types/react-dom@19.2.3(@types/react@19.2.14))(@types/react@19.2.14)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)': dependencies: '@babel/runtime': 7.25.0 '@testing-library/dom': 10.4.1 react: 19.2.4 react-dom: 19.2.4(react@19.2.4) optionalDependencies: - '@types/react': 18.3.28 - '@types/react-dom': 18.3.7(@types/react@18.3.28) + '@types/react': 19.2.14 + '@types/react-dom': 19.2.3(@types/react@19.2.14) '@testing-library/user-event@14.5.2(@testing-library/dom@10.4.0)': dependencies: @@ -14303,7 +14318,7 @@ snapshots: '@types/hoist-non-react-statics@3.3.5': dependencies: - '@types/react': 18.3.28 + '@types/react': 19.2.14 hoist-non-react-statics: 3.3.2 '@types/http-errors@2.0.4': {} @@ -14400,9 +14415,9 @@ snapshots: '@types/prop-types@15.7.12': {} - '@types/react-dom@18.3.7(@types/react@18.3.28)': + '@types/react-dom@19.2.3(@types/react@19.2.14)': dependencies: - '@types/react': 18.3.28 + '@types/react': 19.2.14 '@types/react-highlight@0.12.8': dependencies: @@ -14414,16 +14429,15 @@ snapshots: '@types/react-transition-group@4.4.10': dependencies: - '@types/react': 18.3.28 + '@types/react': 19.2.14 '@types/react@18.3.27': dependencies: '@types/prop-types': 15.7.12 csstype: 3.2.3 - '@types/react@18.3.28': + '@types/react@19.2.14': dependencies: - '@types/prop-types': 15.7.12 csstype: 3.2.3 '@types/resolve@1.20.2': {} @@ -16463,9 +16477,16 @@ snapshots: '@types/eslint': 8.56.10 eslint-config-prettier: 10.1.8(eslint@9.18.0(jiti@1.21.7)) - eslint-plugin-react-hooks@5.2.0(eslint@9.18.0(jiti@1.21.7)): + eslint-plugin-react-hooks@7.0.1(eslint@9.18.0(jiti@1.21.7)): dependencies: + '@babel/core': 7.29.0 + '@babel/parser': 7.29.0 eslint: 9.18.0(jiti@1.21.7) + hermes-parser: 0.25.1 + zod: 4.3.6 + zod-validation-error: 4.0.2(zod@4.3.6) + transitivePeerDependencies: + - supports-color eslint-plugin-react@7.37.5(eslint@9.18.0(jiti@1.21.7)): dependencies: @@ -17082,6 +17103,12 @@ snapshots: headers-utils@3.0.2: {} + hermes-estree@0.25.1: {} + + hermes-parser@0.25.1: + dependencies: + hermes-estree: 0.25.1 + highlight.js@10.7.3: {} highlight.js@11.11.1: {} @@ -20164,29 +20191,29 @@ snapshots: react-fast-compare@3.2.2: {} - react-focus-lock@2.13.7(@types/react@18.3.28)(react@19.2.4): + react-focus-lock@2.13.7(@types/react@19.2.14)(react@19.2.4): dependencies: '@babel/runtime': 7.25.0 focus-lock: 1.3.6 prop-types: 15.8.1 react: 19.2.4 react-clientside-effect: 1.2.7(react@19.2.4) - use-callback-ref: 1.3.3(@types/react@18.3.28)(react@19.2.4) - use-sidecar: 1.1.3(@types/react@18.3.28)(react@19.2.4) + use-callback-ref: 1.3.3(@types/react@19.2.14)(react@19.2.4) + use-sidecar: 1.1.3(@types/react@19.2.14)(react@19.2.4) optionalDependencies: - '@types/react': 18.3.28 + '@types/react': 19.2.14 - react-focus-on@3.10.2(@types/react@18.3.28)(react@19.2.4): + react-focus-on@3.10.2(@types/react@19.2.14)(react@19.2.4): dependencies: aria-hidden: 1.2.6 react: 19.2.4 - react-focus-lock: 2.13.7(@types/react@18.3.28)(react@19.2.4) - react-remove-scroll: 2.7.0(@types/react@18.3.28)(react@19.2.4) - react-style-singleton: 2.2.3(@types/react@18.3.28)(react@19.2.4) + react-focus-lock: 2.13.7(@types/react@19.2.14)(react@19.2.4) + react-remove-scroll: 2.7.0(@types/react@19.2.14)(react@19.2.4) + react-style-singleton: 2.2.3(@types/react@19.2.14)(react@19.2.4) tslib: 2.8.1 - use-sidecar: 1.1.3(@types/react@18.3.28)(react@19.2.4) + use-sidecar: 1.1.3(@types/react@19.2.14)(react@19.2.4) optionalDependencies: - '@types/react': 18.3.28 + '@types/react': 19.2.14 react-highlight@0.15.0: dependencies: @@ -20227,30 +20254,30 @@ snapshots: react-refresh@0.18.0: {} - react-remove-scroll-bar@2.3.8(@types/react@18.3.28)(react@19.2.4): + react-remove-scroll-bar@2.3.8(@types/react@19.2.14)(react@19.2.4): dependencies: react: 19.2.4 - react-style-singleton: 2.2.3(@types/react@18.3.28)(react@19.2.4) + react-style-singleton: 2.2.3(@types/react@19.2.14)(react@19.2.4) tslib: 2.8.1 optionalDependencies: - '@types/react': 18.3.28 + '@types/react': 19.2.14 - react-remove-scroll@2.7.0(@types/react@18.3.28)(react@19.2.4): + react-remove-scroll@2.7.0(@types/react@19.2.14)(react@19.2.4): dependencies: react: 19.2.4 - react-remove-scroll-bar: 2.3.8(@types/react@18.3.28)(react@19.2.4) - react-style-singleton: 2.2.3(@types/react@18.3.28)(react@19.2.4) + react-remove-scroll-bar: 2.3.8(@types/react@19.2.14)(react@19.2.4) + react-style-singleton: 2.2.3(@types/react@19.2.14)(react@19.2.4) tslib: 2.8.1 - use-callback-ref: 1.3.3(@types/react@18.3.28)(react@19.2.4) - use-sidecar: 1.1.3(@types/react@18.3.28)(react@19.2.4) + use-callback-ref: 1.3.3(@types/react@19.2.14)(react@19.2.4) + use-sidecar: 1.1.3(@types/react@19.2.14)(react@19.2.4) optionalDependencies: - '@types/react': 18.3.28 + '@types/react': 19.2.14 - react-select@5.10.2(@types/react@18.3.28)(react-dom@19.2.4(react@19.2.4))(react@19.2.4): + react-select@5.10.2(@types/react@19.2.14)(react-dom@19.2.4(react@19.2.4))(react@19.2.4): dependencies: '@babel/runtime': 7.25.0 '@emotion/cache': 11.11.0 - '@emotion/react': 11.11.4(@types/react@18.3.28)(react@19.2.4) + '@emotion/react': 11.11.4(@types/react@19.2.14)(react@19.2.4) '@floating-ui/dom': 1.7.4 '@types/react-transition-group': 4.4.10 memoize-one: 6.0.0 @@ -20258,7 +20285,7 @@ snapshots: react: 19.2.4 react-dom: 19.2.4(react@19.2.4) react-transition-group: 4.4.5(react-dom@19.2.4(react@19.2.4))(react@19.2.4) - use-isomorphic-layout-effect: 1.2.0(@types/react@18.3.28)(react@19.2.4) + use-isomorphic-layout-effect: 1.2.0(@types/react@19.2.14)(react@19.2.4) transitivePeerDependencies: - '@types/react' - supports-color @@ -20293,13 +20320,13 @@ snapshots: '@react-types/shared': 3.32.0(react@19.2.4) react: 19.2.4 - react-style-singleton@2.2.3(@types/react@18.3.28)(react@19.2.4): + react-style-singleton@2.2.3(@types/react@19.2.14)(react@19.2.4): dependencies: get-nonce: 1.0.1 react: 19.2.4 tslib: 2.8.1 optionalDependencies: - '@types/react': 18.3.28 + '@types/react': 19.2.14 react-textfit@1.1.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4): dependencies: @@ -21708,30 +21735,30 @@ snapshots: punycode: 1.4.1 qs: 6.13.0 - use-callback-ref@1.3.3(@types/react@18.3.28)(react@19.2.4): + use-callback-ref@1.3.3(@types/react@19.2.14)(react@19.2.4): dependencies: react: 19.2.4 tslib: 2.8.1 optionalDependencies: - '@types/react': 18.3.28 + '@types/react': 19.2.14 use-debounce@10.1.1(react@19.2.4): dependencies: react: 19.2.4 - use-isomorphic-layout-effect@1.2.0(@types/react@18.3.28)(react@19.2.4): + use-isomorphic-layout-effect@1.2.0(@types/react@19.2.14)(react@19.2.4): dependencies: react: 19.2.4 optionalDependencies: - '@types/react': 18.3.28 + '@types/react': 19.2.14 - use-sidecar@1.1.3(@types/react@18.3.28)(react@19.2.4): + use-sidecar@1.1.3(@types/react@19.2.14)(react@19.2.4): dependencies: detect-node-es: 1.1.0 react: 19.2.4 tslib: 2.8.1 optionalDependencies: - '@types/react': 18.3.28 + '@types/react': 19.2.14 use-sync-external-store@1.5.0(react@19.2.4): dependencies: @@ -22179,4 +22206,10 @@ snapshots: optionalDependencies: commander: 9.5.0 + zod-validation-error@4.0.2(zod@4.3.6): + dependencies: + zod: 4.3.6 + + zod@4.3.6: {} + zwitch@2.0.4: {}