diff --git a/packages/components-react/package.json b/packages/components-react/package.json index 9d8dad0a91..49ed1ac21b 100644 --- a/packages/components-react/package.json +++ b/packages/components-react/package.json @@ -33,8 +33,8 @@ }, "devDependencies": { "@types/node": "20.14.14", - "@types/react": "18.3.3", - "@types/react-dom": "18.3.0", + "@types/react": "19.0.2", + "@types/react-dom": "19.0.2", "@typescript-eslint/eslint-plugin": "7.18.0", "@typescript-eslint/parser": "7.18.0", "eslint": "8.57.0", @@ -43,14 +43,14 @@ "eslint-plugin-n": "16.6.2", "eslint-plugin-promise": "6.6.0", "eslint-plugin-react": "7.35.0", - "react": "18.3.1", - "react-dom": "18.3.1", + "react": "19.0.0", + "react-dom": "19.0.0", "rimraf": "6.0.1", "typescript": "*" }, "peerDependencies": { - "react": "18.3.1", - "react-dom": "18.3.1" + "react": "19.0.0", + "react-dom": "19.0.0" }, "keywords": [ "components", diff --git a/packages/documentation/package.json b/packages/documentation/package.json index 275e7f7bf1..b5e464b15a 100644 --- a/packages/documentation/package.json +++ b/packages/documentation/package.json @@ -58,7 +58,7 @@ "@swisspost/design-system-intranet-header": "workspace:9.0.0-next.9", "@types/css-modules": "1.0.5", "@types/mdx": "2.0.13", - "@types/react": "18.3.3", + "@types/react": "19.0.2", "@types/react-syntax-highlighter": "15.5.13", "@typescript-eslint/eslint-plugin": "7.18.0", "@typescript-eslint/parser": "7.18.0", @@ -71,8 +71,8 @@ "lit": "3.1.4", "lit-html": "3.1.4", "prettier": "2.8.8", - "react": "18.3.1", - "react-dom": "18.3.1", + "react": "19.0.0", + "react-dom": "19.0.0", "react-syntax-highlighter": "15.5.0", "rehype-autolink-headings": "7.1.0", "rehype-slug": "6.0.0", diff --git a/packages/nextjs-integration/package.json b/packages/nextjs-integration/package.json index be32dc764c..5a586f40e4 100644 --- a/packages/nextjs-integration/package.json +++ b/packages/nextjs-integration/package.json @@ -13,13 +13,13 @@ "@swisspost/design-system-styles": "workspace:9.0.0-next.9", "@swisspost/internet-header": "workspace:2.0.0-next.9", "next": "15.0.1", - "react": "^18", - "react-dom": "^18" + "react": "^19.0.0", + "react-dom": "^19.0.0" }, "devDependencies": { "@types/node": "20.14.14", - "@types/react": "^18", - "@types/react-dom": "^18", + "@types/react": "^19.0.0", + "@types/react-dom": "^19.0.0", "autoprefixer": "^10.0.1", "eslint": "^8", "eslint-config-next": "14.2.5", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 93cd856493..0ea46cee5f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -258,11 +258,11 @@ importers: specifier: 20.14.14 version: 20.14.14 '@types/react': - specifier: 18.3.3 - version: 18.3.3 + specifier: 19.0.2 + version: 19.0.2 '@types/react-dom': - specifier: 18.3.0 - version: 18.3.0 + specifier: 19.0.2 + version: 19.0.2(@types/react@19.0.2) '@typescript-eslint/eslint-plugin': specifier: 7.18.0 version: 7.18.0(@typescript-eslint/parser@7.18.0(eslint@8.57.0)(typescript@5.5.4))(eslint@8.57.0)(typescript@5.5.4) @@ -288,11 +288,11 @@ importers: specifier: 7.35.0 version: 7.35.0(eslint@8.57.0) react: - specifier: 18.3.1 - version: 18.3.1 + specifier: 19.0.0 + version: 19.0.0 react-dom: - specifier: 18.3.1 - version: 18.3.1(react@18.3.1) + specifier: 19.0.0 + version: 19.0.0(react@19.0.0) rimraf: specifier: 6.0.1 version: 6.0.1 @@ -347,10 +347,10 @@ importers: version: 8.3.6(storybook@8.2.7(@babel/preset-env@7.25.3(@babel/core@7.25.2))) '@storybook/addon-links': specifier: 8.3.6 - version: 8.3.6(react@18.3.1)(storybook@8.2.7(@babel/preset-env@7.25.3(@babel/core@7.25.2))) + version: 8.3.6(react@19.0.0)(storybook@8.2.7(@babel/preset-env@7.25.3(@babel/core@7.25.2))) '@storybook/blocks': specifier: 8.3.6 - version: 8.3.6(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(storybook@8.2.7(@babel/preset-env@7.25.3(@babel/core@7.25.2))) + version: 8.3.6(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(storybook@8.2.7(@babel/preset-env@7.25.3(@babel/core@7.25.2))) '@storybook/components': specifier: 8.3.6 version: 8.3.6(storybook@8.2.7(@babel/preset-env@7.25.3(@babel/core@7.25.2))) @@ -388,8 +388,8 @@ importers: specifier: 2.0.13 version: 2.0.13 '@types/react': - specifier: 18.3.3 - version: 18.3.3 + specifier: 19.0.2 + version: 19.0.2 '@types/react-syntax-highlighter': specifier: 15.5.13 version: 15.5.13 @@ -427,14 +427,14 @@ importers: specifier: 2.8.8 version: 2.8.8 react: - specifier: 18.3.1 - version: 18.3.1 + specifier: 19.0.0 + version: 19.0.0 react-dom: - specifier: 18.3.1 - version: 18.3.1(react@18.3.1) + specifier: 19.0.0 + version: 19.0.0(react@19.0.0) react-syntax-highlighter: specifier: 15.5.0 - version: 15.5.0(react@18.3.1) + version: 15.5.0(react@19.0.0) rehype-autolink-headings: specifier: 7.1.0 version: 7.1.0 @@ -835,23 +835,23 @@ importers: version: link:../internet-header next: specifier: 15.0.1 - version: 15.0.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.78.0) + version: 15.0.1(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.78.0) react: - specifier: ^18 - version: 18.3.1 + specifier: ^19.0.0 + version: 19.0.0 react-dom: - specifier: ^18 - version: 18.3.1(react@18.3.1) + specifier: ^19.0.0 + version: 19.0.0(react@19.0.0) devDependencies: '@types/node': specifier: 20.14.14 version: 20.14.14 '@types/react': - specifier: ^18 - version: 18.3.3 + specifier: ^19.0.0 + version: 19.0.2 '@types/react-dom': - specifier: ^18 - version: 18.3.0 + specifier: ^19.0.0 + version: 19.0.2(@types/react@19.0.2) autoprefixer: specifier: ^10.0.1 version: 10.4.19(postcss@8.4.40) @@ -3996,8 +3996,10 @@ packages: '@types/range-parser@1.2.4': resolution: {integrity: sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw==} - '@types/react-dom@18.3.0': - resolution: {integrity: sha512-EhwApuTmMBmXuFOikhQLIBUn6uFg81SwLMOAUgodJF14SOBOCMdU04gDoYi0WOJJHD144TL32z4yDqCW3dnkQg==} + '@types/react-dom@19.0.2': + resolution: {integrity: sha512-c1s+7TKFaDRRxr1TxccIX2u7sfCnc3RxkVyBIUA2lCpyqCF+QoAwQ/CBg7bsMdVwP120HEH143VQezKtef5nCg==} + peerDependencies: + '@types/react': ^19.0.0 '@types/react-syntax-highlighter@15.5.13': resolution: {integrity: sha512-uLGJ87j6Sz8UaBAooU0T6lWJ0dBmjZgN1PZTrj05TNql2/XpC6+4HhMT5syIdFUUt+FASfCeLLv4kBygNU+8qA==} @@ -4005,6 +4007,9 @@ packages: '@types/react@18.3.3': resolution: {integrity: sha512-hti/R0pS0q1/xx+TsI73XIqk26eBsISZ2R0wUijXIngRK9R/e7Xw/cXVxQK7R5JjW+SV4zGcn5hXjudkN/pLIw==} + '@types/react@19.0.2': + resolution: {integrity: sha512-USU8ZI/xyKJwFTpjSVIrSeHBVAGagkHQKPNbxeWwql/vDmnTIBgx+TJnhFnj1NXgz8XfprU0egV2dROLGpsBEg==} + '@types/resolve@1.20.2': resolution: {integrity: sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==} @@ -9306,6 +9311,11 @@ packages: peerDependencies: react: ^18.3.1 + react-dom@19.0.0: + resolution: {integrity: sha512-4GV5sHFG0e/0AD4X+ySy6UJd3jVl1iNsNHdpad0qhABJ11twS3TTBnseqsKurKcsNqCEFeGL3uLpVChpIO3QfQ==} + peerDependencies: + react: ^19.0.0 + react-is@16.13.1: resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==} @@ -9321,6 +9331,10 @@ packages: resolution: {integrity: sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==} engines: {node: '>=0.10.0'} + react@19.0.0: + resolution: {integrity: sha512-V8AVnmPIICiWpGfm6GLzCR/W5FXLchHop40W4nXBmdlEceh16rCN8O8LNWm5bh5XUX91fh7KpA+W0TgMKmgTpQ==} + engines: {node: '>=0.10.0'} + read-cache@1.0.0: resolution: {integrity: sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==} @@ -9920,6 +9934,9 @@ packages: scheduler@0.23.2: resolution: {integrity: sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==} + scheduler@0.25.0: + resolution: {integrity: sha512-xFVuu11jh+xcO7JOAGJNOXld8/TcEHK/4CituBUeUb5hqxJLj9YuemAEuvm9gQ/+pgXYfbQuqAkiYu+u7YEsNA==} + schema-utils@3.3.0: resolution: {integrity: sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==} engines: {node: '>= 10.13.0'} @@ -14658,14 +14675,14 @@ snapshots: '@storybook/global': 5.0.0 storybook: 8.2.7(@babel/preset-env@7.25.3(@babel/core@7.25.2)) - '@storybook/addon-links@8.3.6(react@18.3.1)(storybook@8.2.7(@babel/preset-env@7.25.3(@babel/core@7.25.2)))': + '@storybook/addon-links@8.3.6(react@19.0.0)(storybook@8.2.7(@babel/preset-env@7.25.3(@babel/core@7.25.2)))': dependencies: '@storybook/csf': 0.1.11 '@storybook/global': 5.0.0 storybook: 8.2.7(@babel/preset-env@7.25.3(@babel/core@7.25.2)) ts-dedent: 2.2.0 optionalDependencies: - react: 18.3.1 + react: 19.0.0 '@storybook/addon-measure@8.3.6(storybook@8.2.7(@babel/preset-env@7.25.3(@babel/core@7.25.2)))': dependencies: @@ -14709,6 +14726,27 @@ snapshots: react: 18.3.1 react-dom: 18.3.1(react@18.3.1) + '@storybook/blocks@8.3.6(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(storybook@8.2.7(@babel/preset-env@7.25.3(@babel/core@7.25.2)))': + dependencies: + '@storybook/csf': 0.1.11 + '@storybook/global': 5.0.0 + '@storybook/icons': 1.2.12(react-dom@19.0.0(react@19.0.0))(react@19.0.0) + '@types/lodash': 4.14.194 + color-convert: 2.0.1 + dequal: 2.0.3 + lodash: 4.17.21 + markdown-to-jsx: 7.4.7(react@19.0.0) + memoizerific: 1.11.3 + polished: 4.2.2 + react-colorful: 5.6.1(react-dom@19.0.0(react@19.0.0))(react@19.0.0) + storybook: 8.2.7(@babel/preset-env@7.25.3(@babel/core@7.25.2)) + telejson: 7.2.0 + ts-dedent: 2.2.0 + util-deprecate: 1.0.2 + optionalDependencies: + react: 19.0.0 + react-dom: 19.0.0(react@19.0.0) + '@storybook/builder-vite@8.3.6(storybook@8.2.7(@babel/preset-env@7.25.3(@babel/core@7.25.2)))(typescript@5.5.4)(vite@5.4.8(@types/node@22.7.9)(less@4.2.0)(sass-embedded@1.78.0)(sass@1.78.0)(terser@5.31.6))': dependencies: '@storybook/csf-plugin': 8.3.6(storybook@8.2.7(@babel/preset-env@7.25.3(@babel/core@7.25.2))) @@ -14797,6 +14835,11 @@ snapshots: react: 18.3.1 react-dom: 18.3.1(react@18.3.1) + '@storybook/icons@1.2.12(react-dom@19.0.0(react@19.0.0))(react@19.0.0)': + dependencies: + react: 19.0.0 + react-dom: 19.0.0(react@19.0.0) + '@storybook/manager-api@8.3.6(storybook@8.2.7(@babel/preset-env@7.25.3(@babel/core@7.25.2)))': dependencies: storybook: 8.2.7(@babel/preset-env@7.25.3(@babel/core@7.25.2)) @@ -15081,19 +15124,23 @@ snapshots: '@types/range-parser@1.2.4': {} - '@types/react-dom@18.3.0': + '@types/react-dom@19.0.2(@types/react@19.0.2)': dependencies: - '@types/react': 18.3.3 + '@types/react': 19.0.2 '@types/react-syntax-highlighter@15.5.13': dependencies: - '@types/react': 18.3.3 + '@types/react': 19.0.2 '@types/react@18.3.3': dependencies: '@types/prop-types': 15.7.12 csstype: 3.1.3 + '@types/react@19.0.2': + dependencies: + csstype: 3.1.3 + '@types/resolve@1.20.2': {} '@types/retry@0.12.2': {} @@ -20038,6 +20085,10 @@ snapshots: dependencies: react: 18.3.1 + markdown-to-jsx@7.4.7(react@19.0.0): + dependencies: + react: 19.0.0 + mathml-tag-names@2.1.3: {} mdast-util-from-markdown@0.8.5: @@ -20557,7 +20608,7 @@ snapshots: next-tick@1.1.0: {} - next@15.0.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.78.0): + next@15.0.1(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(sass@1.78.0): dependencies: '@next/env': 15.0.1 '@swc/counter': 0.1.3 @@ -20565,9 +20616,9 @@ snapshots: busboy: 1.6.0 caniuse-lite: 1.0.30001669 postcss: 8.4.31 - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) - styled-jsx: 5.1.6(react@18.3.1) + react: 19.0.0 + react-dom: 19.0.0(react@19.0.0) + styled-jsx: 5.1.6(react@19.0.0) optionalDependencies: '@next/swc-darwin-arm64': 15.0.1 '@next/swc-darwin-x64': 15.0.1 @@ -21711,29 +21762,41 @@ snapshots: react: 18.3.1 react-dom: 18.3.1(react@18.3.1) + react-colorful@5.6.1(react-dom@19.0.0(react@19.0.0))(react@19.0.0): + dependencies: + react: 19.0.0 + react-dom: 19.0.0(react@19.0.0) + react-dom@18.3.1(react@18.3.1): dependencies: loose-envify: 1.4.0 react: 18.3.1 scheduler: 0.23.2 + react-dom@19.0.0(react@19.0.0): + dependencies: + react: 19.0.0 + scheduler: 0.25.0 + react-is@16.13.1: {} react-is@18.2.0: {} - react-syntax-highlighter@15.5.0(react@18.3.1): + react-syntax-highlighter@15.5.0(react@19.0.0): dependencies: '@babel/runtime': 7.21.5 highlight.js: 10.7.3 lowlight: 1.20.0 prismjs: 1.29.0 - react: 18.3.1 + react: 19.0.0 refractor: 3.6.0 react@18.3.1: dependencies: loose-envify: 1.4.0 + react@19.0.0: {} + read-cache@1.0.0: dependencies: pify: 2.3.0 @@ -22372,6 +22435,8 @@ snapshots: dependencies: loose-envify: 1.4.0 + scheduler@0.25.0: {} + schema-utils@3.3.0: dependencies: '@types/json-schema': 7.0.15 @@ -22967,10 +23032,10 @@ snapshots: style-inject@0.3.0: {} - styled-jsx@5.1.6(react@18.3.1): + styled-jsx@5.1.6(react@19.0.0): dependencies: client-only: 0.0.1 - react: 18.3.1 + react: 19.0.0 stylehacks@5.1.1(postcss@8.4.45): dependencies: