diff --git a/code/addons/a11y/package.json b/code/addons/a11y/package.json index 7e568b218a8b..119c7139824d 100644 --- a/code/addons/a11y/package.json +++ b/code/addons/a11y/package.json @@ -82,7 +82,7 @@ "react-dom": "^18.2.0", "react-resize-detector": "^7.1.2", "resize-observer-polyfill": "^1.5.1", - "typescript": "^5.3.2" + "typescript": "^5.7.3" }, "peerDependencies": { "storybook": "workspace:^" diff --git a/code/addons/actions/package.json b/code/addons/actions/package.json index db5e16284c0b..65d6b08a6113 100644 --- a/code/addons/actions/package.json +++ b/code/addons/actions/package.json @@ -79,7 +79,7 @@ "react-dom": "^18.2.0", "react-inspector": "^6.0.0", "telejson": "^7.2.0", - "typescript": "^5.3.2" + "typescript": "^5.7.3" }, "peerDependencies": { "storybook": "workspace:^" diff --git a/code/addons/backgrounds/package.json b/code/addons/backgrounds/package.json index e5ae3d9090fb..1426cc134d98 100644 --- a/code/addons/backgrounds/package.json +++ b/code/addons/backgrounds/package.json @@ -63,7 +63,7 @@ "@storybook/icons": "^1.2.12", "react": "^18.2.0", "react-dom": "^18.2.0", - "typescript": "^5.3.2" + "typescript": "^5.7.3" }, "peerDependencies": { "storybook": "workspace:^" diff --git a/code/addons/docs/package.json b/code/addons/docs/package.json index 26605fb9cbf4..ad0fc8a96e6e 100644 --- a/code/addons/docs/package.json +++ b/code/addons/docs/package.json @@ -118,7 +118,7 @@ "react-dom": "^18.2.0", "rehype-external-links": "^3.0.0", "rehype-slug": "^6.0.0", - "typescript": "^5.3.2", + "typescript": "^5.7.3", "vite": "^4.0.4" }, "peerDependencies": { diff --git a/code/addons/essentials/package.json b/code/addons/essentials/package.json index bd6e76dd4ba4..f0dd850c6bcb 100644 --- a/code/addons/essentials/package.json +++ b/code/addons/essentials/package.json @@ -101,7 +101,7 @@ "ts-dedent": "^2.0.0" }, "devDependencies": { - "typescript": "^5.3.2" + "typescript": "^5.7.3" }, "peerDependencies": { "storybook": "workspace:^" diff --git a/code/addons/gfm/package.json b/code/addons/gfm/package.json index 0144efa6fe15..122d2091eecb 100644 --- a/code/addons/gfm/package.json +++ b/code/addons/gfm/package.json @@ -48,7 +48,7 @@ "ts-dedent": "^2.0.0" }, "devDependencies": { - "typescript": "^5.3.2" + "typescript": "^5.7.3" }, "peerDependencies": { "storybook": "workspace:^" diff --git a/code/addons/highlight/package.json b/code/addons/highlight/package.json index 124194a0ef42..b3d235d91d27 100644 --- a/code/addons/highlight/package.json +++ b/code/addons/highlight/package.json @@ -55,7 +55,7 @@ }, "devDependencies": { "@types/webpack-env": "^1.16.0", - "typescript": "^5.3.2" + "typescript": "^5.7.3" }, "peerDependencies": { "storybook": "workspace:^" diff --git a/code/addons/interactions/package.json b/code/addons/interactions/package.json index 037fede94b29..d54e71a9185c 100644 --- a/code/addons/interactions/package.json +++ b/code/addons/interactions/package.json @@ -66,7 +66,7 @@ "formik": "^2.2.9", "react": "^18.2.0", "react-dom": "^18.2.0", - "typescript": "^5.3.2" + "typescript": "^5.7.3" }, "peerDependencies": { "storybook": "workspace:^" diff --git a/code/addons/interactions/src/mocks/index.ts b/code/addons/interactions/src/mocks/index.ts index 02760bce429d..9b6329df170a 100644 --- a/code/addons/interactions/src/mocks/index.ts +++ b/code/addons/interactions/src/mocks/index.ts @@ -141,7 +141,7 @@ export const getInteractions = (finalStatus: CallStates) => .filter((call) => call.interceptable) .map((call) => ({ ...call, - childCallIds: [], + childCallIds: [] as any[], isCollapsed: false, isHidden: false, toggleCollapsed: () => {}, diff --git a/code/addons/jest/package.json b/code/addons/jest/package.json index 75e4e022d771..52c762c108bc 100644 --- a/code/addons/jest/package.json +++ b/code/addons/jest/package.json @@ -62,7 +62,7 @@ "react": "^18.2.0", "react-dom": "^18.2.0", "react-resize-detector": "^7.1.2", - "typescript": "^5.3.2" + "typescript": "^5.7.3" }, "peerDependencies": { "storybook": "workspace:^" diff --git a/code/addons/links/package.json b/code/addons/links/package.json index 789709e9160e..9b8f585504e5 100644 --- a/code/addons/links/package.json +++ b/code/addons/links/package.json @@ -70,7 +70,7 @@ "ts-dedent": "^2.0.0" }, "devDependencies": { - "typescript": "^5.3.2" + "typescript": "^5.7.3" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta", diff --git a/code/addons/measure/package.json b/code/addons/measure/package.json index 842a1857ba3d..c8a4956cf81a 100644 --- a/code/addons/measure/package.json +++ b/code/addons/measure/package.json @@ -74,7 +74,7 @@ "@storybook/icons": "^1.2.12", "react": "^18.2.0", "react-dom": "^18.2.0", - "typescript": "^5.3.2" + "typescript": "^5.7.3" }, "peerDependencies": { "storybook": "workspace:^" diff --git a/code/addons/onboarding/package.json b/code/addons/onboarding/package.json index d0e11b99f052..1069f0ac88c0 100644 --- a/code/addons/onboarding/package.json +++ b/code/addons/onboarding/package.json @@ -54,7 +54,7 @@ "react-dom": "^18.2.0", "react-joyride": "^2.8.2", "react-use-measure": "^2.1.1", - "typescript": "^5.3.2" + "typescript": "^5.7.3" }, "peerDependencies": { "storybook": "workspace:^" diff --git a/code/addons/outline/package.json b/code/addons/outline/package.json index f370f78e51d2..b20065931cb4 100644 --- a/code/addons/outline/package.json +++ b/code/addons/outline/package.json @@ -64,7 +64,7 @@ "@storybook/icons": "^1.2.12", "react": "^18.2.0", "react-dom": "^18.2.0", - "typescript": "^5.3.2" + "typescript": "^5.7.3" }, "peerDependencies": { "storybook": "workspace:^" diff --git a/code/addons/storysource/package.json b/code/addons/storysource/package.json index 37cf5d584dd4..79de1e52d447 100644 --- a/code/addons/storysource/package.json +++ b/code/addons/storysource/package.json @@ -56,7 +56,7 @@ "react": "^18.2.0", "react-dom": "^18.2.0", "react-syntax-highlighter": "^15.5.0", - "typescript": "^5.3.2" + "typescript": "^5.7.3" }, "peerDependencies": { "storybook": "workspace:^" diff --git a/code/addons/test/package.json b/code/addons/test/package.json index 42a4f9ad52e7..2228c54659c6 100644 --- a/code/addons/test/package.json +++ b/code/addons/test/package.json @@ -115,7 +115,7 @@ "tinyglobby": "^0.2.10", "tree-kill": "^1.2.2", "ts-dedent": "^2.2.0", - "typescript": "^5.3.2", + "typescript": "^5.7.3", "vitest": "^3.0.2" }, "peerDependencies": { diff --git a/code/addons/themes/package.json b/code/addons/themes/package.json index e7ad1d56186d..2d87f77ec226 100644 --- a/code/addons/themes/package.json +++ b/code/addons/themes/package.json @@ -60,7 +60,7 @@ }, "devDependencies": { "@storybook/icons": "^1.2.12", - "typescript": "^5.3.2" + "typescript": "^5.7.3" }, "peerDependencies": { "storybook": "workspace:^" diff --git a/code/addons/toolbars/package.json b/code/addons/toolbars/package.json index 9e1e201783c4..e7ae0ffdebf9 100644 --- a/code/addons/toolbars/package.json +++ b/code/addons/toolbars/package.json @@ -52,7 +52,7 @@ "devDependencies": { "react": "^18.2.0", "react-dom": "^18.2.0", - "typescript": "^5.3.2" + "typescript": "^5.7.3" }, "peerDependencies": { "storybook": "workspace:^" diff --git a/code/addons/viewport/package.json b/code/addons/viewport/package.json index 9679e24264d2..a6b07f18b10f 100644 --- a/code/addons/viewport/package.json +++ b/code/addons/viewport/package.json @@ -58,7 +58,7 @@ "@storybook/icons": "^1.2.12", "react": "^18.2.0", "react-dom": "^18.2.0", - "typescript": "^5.3.2" + "typescript": "^5.7.3" }, "peerDependencies": { "storybook": "workspace:^" diff --git a/code/builders/builder-webpack5/package.json b/code/builders/builder-webpack5/package.json index 85a1301b557d..b233b64fdf6e 100644 --- a/code/builders/builder-webpack5/package.json +++ b/code/builders/builder-webpack5/package.json @@ -96,7 +96,7 @@ "pretty-hrtime": "^1.0.3", "sirv": "^2.0.4", "slash": "^5.0.0", - "typescript": "^5.3.2" + "typescript": "^5.7.3" }, "peerDependencies": { "storybook": "workspace:^" diff --git a/code/core/package.json b/code/core/package.json index 7b75e746384d..40afc1f8a412 100644 --- a/code/core/package.json +++ b/code/core/package.json @@ -406,7 +406,7 @@ "ts-dedent": "^2.0.0", "tsconfig-paths": "^4.2.0", "type-fest": "^4.18.1", - "typescript": "^5.3.2", + "typescript": "^5.7.3", "unique-string": "^3.0.0", "use-resize-observer": "^9.1.0", "watchpack": "^2.2.0" diff --git a/code/core/src/core-server/presets/favicon.test.ts b/code/core/src/core-server/presets/favicon.test.ts index 4e6c72cc0618..c7da1a160781 100644 --- a/code/core/src/core-server/presets/favicon.test.ts +++ b/code/core/src/core-server/presets/favicon.test.ts @@ -53,7 +53,7 @@ it('with no staticDirs favicon should return default', async () => { it('with staticDirs containing a single favicon.ico should return the found favicon', async () => { const location = 'static'; - existsSyncMock.mockImplementation((p: string | Buffer | URL) => { + existsSyncMock.mockImplementation((p) => { if (p === createPath(location)) { return true; } @@ -69,7 +69,7 @@ it('with staticDirs containing a single favicon.ico should return the found favi it('with staticDirs containing a single favicon.svg should return the found favicon', async () => { const location = 'static'; - existsSyncMock.mockImplementation((p: string | Buffer | URL) => { + existsSyncMock.mockImplementation((p) => { if (p === createPath(location)) { return true; } @@ -85,7 +85,7 @@ it('with staticDirs containing a single favicon.svg should return the found favi it('with staticDirs containing a multiple favicons should return the first favicon and warn', async () => { const location = 'static'; - existsSyncMock.mockImplementation((p: string | Buffer | URL) => { + existsSyncMock.mockImplementation((p) => { if (p === createPath(location)) { return true; } @@ -107,7 +107,7 @@ it('with staticDirs containing a multiple favicons should return the first favic it('with multiple staticDirs containing a multiple favicons should return the first favicon and warn', async () => { const locationA = 'static-a'; const locationB = 'static-b'; - existsSyncMock.mockImplementation((p: string | Buffer | URL) => { + existsSyncMock.mockImplementation((p) => { if (p === createPath(locationA)) { return true; } diff --git a/code/core/src/manager-api/modules/stories.ts b/code/core/src/manager-api/modules/stories.ts index fa295bc20567..94debb0ea884 100644 --- a/code/core/src/manager-api/modules/stories.ts +++ b/code/core/src/manager-api/modules/stories.ts @@ -345,7 +345,6 @@ export const init: ModuleFn = ({ return undefined; } if (refId) { - // @ts-expect-error (possibly undefined) return refs[refId].index ? refs[refId].index[storyId] : undefined; } return index ? index[storyId] : undefined; diff --git a/code/frameworks/angular/package.json b/code/frameworks/angular/package.json index fc3e6ccaf84f..080ff773a424 100644 --- a/code/frameworks/angular/package.json +++ b/code/frameworks/angular/package.json @@ -77,7 +77,7 @@ "cross-spawn": "^7.0.3", "rimraf": "^6.0.1", "tmp": "^0.2.1", - "typescript": "^5.3.2", + "typescript": "^5.7.3", "webpack": "5", "zone.js": "^0.15.0" }, diff --git a/code/frameworks/ember/package.json b/code/frameworks/ember/package.json index e6985533f56b..db956d14bfdf 100644 --- a/code/frameworks/ember/package.json +++ b/code/frameworks/ember/package.json @@ -41,7 +41,7 @@ "devDependencies": { "@types/babel__preset-env": "^7", "ember-source": "~3.28.1", - "typescript": "^5.3.2" + "typescript": "^5.7.3" }, "peerDependencies": { "@babel/core": "*", diff --git a/code/frameworks/experimental-nextjs-vite/package.json b/code/frameworks/experimental-nextjs-vite/package.json index 729c59645090..99fded715b62 100644 --- a/code/frameworks/experimental-nextjs-vite/package.json +++ b/code/frameworks/experimental-nextjs-vite/package.json @@ -105,7 +105,7 @@ "devDependencies": { "@types/node": "^22.0.0", "next": "^15.0.3", - "typescript": "^5.3.2" + "typescript": "^5.7.3" }, "peerDependencies": { "@storybook/test": "workspace:*", diff --git a/code/frameworks/html-vite/package.json b/code/frameworks/html-vite/package.json index 4fbd10c80a35..993f19a7480e 100644 --- a/code/frameworks/html-vite/package.json +++ b/code/frameworks/html-vite/package.json @@ -53,7 +53,7 @@ }, "devDependencies": { "@types/node": "^22.0.0", - "typescript": "^5.3.2" + "typescript": "^5.7.3" }, "peerDependencies": { "storybook": "workspace:^" diff --git a/code/frameworks/html-webpack5/package.json b/code/frameworks/html-webpack5/package.json index 6ec1aabe3740..49fd20020d5c 100644 --- a/code/frameworks/html-webpack5/package.json +++ b/code/frameworks/html-webpack5/package.json @@ -54,7 +54,7 @@ }, "devDependencies": { "@types/node": "^22.0.0", - "typescript": "^5.3.2" + "typescript": "^5.7.3" }, "peerDependencies": { "storybook": "workspace:^" diff --git a/code/frameworks/nextjs/package.json b/code/frameworks/nextjs/package.json index f6c35b89713d..94f24f7d4268 100644 --- a/code/frameworks/nextjs/package.json +++ b/code/frameworks/nextjs/package.json @@ -177,7 +177,7 @@ "@types/node": "^22.0.0", "@types/react-refresh": "^0", "next": "^15.0.3", - "typescript": "^5.3.2", + "typescript": "^5.7.3", "webpack": "^5.65.0" }, "peerDependencies": { diff --git a/code/frameworks/preact-vite/package.json b/code/frameworks/preact-vite/package.json index 4b891621177a..4e808dedea67 100644 --- a/code/frameworks/preact-vite/package.json +++ b/code/frameworks/preact-vite/package.json @@ -52,7 +52,7 @@ }, "devDependencies": { "@types/node": "^22.0.0", - "typescript": "^5.3.2", + "typescript": "^5.7.3", "vite": "^4.0.0" }, "peerDependencies": { diff --git a/code/frameworks/preact-webpack5/package.json b/code/frameworks/preact-webpack5/package.json index 482ef267efe2..5c91540ec7e7 100644 --- a/code/frameworks/preact-webpack5/package.json +++ b/code/frameworks/preact-webpack5/package.json @@ -54,7 +54,7 @@ "devDependencies": { "@types/node": "^22.0.0", "preact": "^10.5.13", - "typescript": "^5.3.2" + "typescript": "^5.7.3" }, "peerDependencies": { "preact": ">=10.0.0", diff --git a/code/frameworks/react-native-web-vite/package.json b/code/frameworks/react-native-web-vite/package.json index d871838f181d..af8e8ec1ef0a 100644 --- a/code/frameworks/react-native-web-vite/package.json +++ b/code/frameworks/react-native-web-vite/package.json @@ -67,7 +67,7 @@ }, "devDependencies": { "@types/node": "^22.0.0", - "typescript": "^5.3.2" + "typescript": "^5.7.3" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta", diff --git a/code/frameworks/react-vite/package.json b/code/frameworks/react-vite/package.json index ddcef067f0d9..6a31b60ed78a 100644 --- a/code/frameworks/react-vite/package.json +++ b/code/frameworks/react-vite/package.json @@ -69,7 +69,7 @@ }, "devDependencies": { "@types/node": "^22.0.0", - "typescript": "^5.3.2", + "typescript": "^5.7.3", "vite": "^4.0.0" }, "peerDependencies": { diff --git a/code/frameworks/server-webpack5/package.json b/code/frameworks/server-webpack5/package.json index 6a3ef93eb5c0..cd2baef57679 100644 --- a/code/frameworks/server-webpack5/package.json +++ b/code/frameworks/server-webpack5/package.json @@ -53,7 +53,7 @@ }, "devDependencies": { "@types/node": "^22.0.0", - "typescript": "^5.3.2" + "typescript": "^5.7.3" }, "peerDependencies": { "storybook": "workspace:^" diff --git a/code/frameworks/svelte-vite/package.json b/code/frameworks/svelte-vite/package.json index 1e7addcdba8a..cf070844ab47 100644 --- a/code/frameworks/svelte-vite/package.json +++ b/code/frameworks/svelte-vite/package.json @@ -57,10 +57,10 @@ "typescript": "^4.9.4 || ^5.0.0" }, "devDependencies": { - "@sveltejs/vite-plugin-svelte": "^4.0.0", + "@sveltejs/vite-plugin-svelte": "^5.0.3", "@types/node": "^22.0.0", "svelte": "^5.0.5", - "typescript": "^5.3.2", + "typescript": "^5.7.3", "vite": "^4.0.0" }, "peerDependencies": { diff --git a/code/frameworks/svelte-webpack5/package.json b/code/frameworks/svelte-webpack5/package.json index 8ab8f58c212f..0a781a892ac0 100644 --- a/code/frameworks/svelte-webpack5/package.json +++ b/code/frameworks/svelte-webpack5/package.json @@ -54,7 +54,7 @@ "devDependencies": { "svelte": "^5.0.5", "svelte-loader": "^3.2.4", - "typescript": "^5.3.2" + "typescript": "^5.7.3" }, "peerDependencies": { "storybook": "workspace:^", diff --git a/code/frameworks/sveltekit/package.json b/code/frameworks/sveltekit/package.json index 4e9d270531ab..e585380e43c7 100644 --- a/code/frameworks/sveltekit/package.json +++ b/code/frameworks/sveltekit/package.json @@ -65,7 +65,7 @@ }, "devDependencies": { "@types/node": "^22.0.0", - "typescript": "^5.3.2", + "typescript": "^5.7.3", "vite": "^4.0.0" }, "peerDependencies": { diff --git a/code/frameworks/vue3-vite/package.json b/code/frameworks/vue3-vite/package.json index 616f723ca52b..74da6a38f292 100644 --- a/code/frameworks/vue3-vite/package.json +++ b/code/frameworks/vue3-vite/package.json @@ -56,14 +56,14 @@ "@storybook/vue3": "workspace:*", "find-package-json": "^1.2.0", "magic-string": "^0.30.0", - "typescript": "^5.0.0", + "typescript": "^5.7.3", "vue-component-meta": "^2.0.0", "vue-docgen-api": "^4.75.1" }, "devDependencies": { "@types/find-package-json": "^1.2.6", "@types/node": "^22.0.0", - "typescript": "^5.3.2", + "typescript": "^5.7.3", "vite": "^4.0.0" }, "peerDependencies": { diff --git a/code/frameworks/vue3-webpack5/package.json b/code/frameworks/vue3-webpack5/package.json index 4598d42ed993..d41c5cfd0e33 100644 --- a/code/frameworks/vue3-webpack5/package.json +++ b/code/frameworks/vue3-webpack5/package.json @@ -54,7 +54,7 @@ "devDependencies": { "@types/node": "^22.0.0", "@vue/compiler-sfc": "3.0.0", - "typescript": "^5.3.2", + "typescript": "^5.7.3", "vue": "3.0.0" }, "peerDependencies": { diff --git a/code/frameworks/web-components-vite/package.json b/code/frameworks/web-components-vite/package.json index 2866298bd235..2a5608c45ba3 100644 --- a/code/frameworks/web-components-vite/package.json +++ b/code/frameworks/web-components-vite/package.json @@ -53,7 +53,7 @@ }, "devDependencies": { "@types/node": "^22.0.0", - "typescript": "^5.3.2" + "typescript": "^5.7.3" }, "peerDependencies": { "storybook": "workspace:^" diff --git a/code/frameworks/web-components-webpack5/package.json b/code/frameworks/web-components-webpack5/package.json index 6c506a0f1acd..1bf7b2093860 100644 --- a/code/frameworks/web-components-webpack5/package.json +++ b/code/frameworks/web-components-webpack5/package.json @@ -56,7 +56,7 @@ "devDependencies": { "@types/node": "^22.0.0", "lit": "2.3.1", - "typescript": "^5.3.2" + "typescript": "^5.7.3" }, "peerDependencies": { "lit": "^2.0.0 || ^3.0.0", diff --git a/code/lib/blocks/src/components/ArgsTable/ArgsTable.stories.tsx b/code/lib/blocks/src/components/ArgsTable/ArgsTable.stories.tsx index 8d44e5f7cb43..ce83ae7e67ed 100644 --- a/code/lib/blocks/src/components/ArgsTable/ArgsTable.stories.tsx +++ b/code/lib/blocks/src/components/ArgsTable/ArgsTable.stories.tsx @@ -146,7 +146,7 @@ export const InAddonPanelNoControls = { args: { ...InAddonPanel.args, rows: Object.fromEntries( - Object.entries(InAddonPanel.args.rows).map(([k, v]) => [k, { ...v, control: null }]) + Object.entries(InAddonPanel.args.rows).map(([k, v]) => [k, { ...v, control: null as any }]) ), }, }; diff --git a/code/lib/cli-storybook/package.json b/code/lib/cli-storybook/package.json index 5455a9d94d90..960fef5ff368 100644 --- a/code/lib/cli-storybook/package.json +++ b/code/lib/cli-storybook/package.json @@ -68,7 +68,7 @@ "picocolors": "^1.1.0", "slash": "^5.0.0", "strip-ansi": "^7.1.0", - "typescript": "^5.3.2" + "typescript": "^5.7.3" }, "publishConfig": { "access": "public" diff --git a/code/lib/cli/package.json b/code/lib/cli/package.json index b0818dfb2445..da4d8fb963a0 100644 --- a/code/lib/cli/package.json +++ b/code/lib/cli/package.json @@ -318,7 +318,7 @@ "@storybook/core": "workspace:*" }, "devDependencies": { - "typescript": "^5.3.2" + "typescript": "^5.7.3" }, "peerDependencies": { "prettier": "^2 || ^3" diff --git a/code/lib/codemod/package.json b/code/lib/codemod/package.json index baee6823af32..ce5c9f50f94b 100644 --- a/code/lib/codemod/package.json +++ b/code/lib/codemod/package.json @@ -77,7 +77,7 @@ "remark": "^15.0.1", "remark-mdx": "^3.0.0", "ts-dedent": "^2.2.0", - "typescript": "^5.3.2", + "typescript": "^5.7.3", "unist-util-is": "^6.0.0", "unist-util-select": "^5.1.0", "unist-util-visit": "^5.0.0", diff --git a/code/lib/core-webpack/package.json b/code/lib/core-webpack/package.json index f41e1646acb5..fa9167fe4d21 100644 --- a/code/lib/core-webpack/package.json +++ b/code/lib/core-webpack/package.json @@ -49,7 +49,7 @@ "devDependencies": { "@types/node": "^22.0.0", "slash": "^5.1.0", - "typescript": "^5.3.2", + "typescript": "^5.7.3", "webpack": "5" }, "peerDependencies": { diff --git a/code/lib/create-storybook/package.json b/code/lib/create-storybook/package.json index 887db697a0a6..f8d8ea027e13 100644 --- a/code/lib/create-storybook/package.json +++ b/code/lib/create-storybook/package.json @@ -73,7 +73,7 @@ "@types/util-deprecate": "^1.0.0", "boxen": "^7.1.1", "picocolors": "^1.1.0", - "typescript": "^5.3.2" + "typescript": "^5.7.3" }, "publishConfig": { "access": "public" diff --git a/code/lib/csf-plugin/package.json b/code/lib/csf-plugin/package.json index 2bcfefb6cb41..5659477ea6db 100644 --- a/code/lib/csf-plugin/package.json +++ b/code/lib/csf-plugin/package.json @@ -53,7 +53,7 @@ "unplugin": "^1.3.1" }, "devDependencies": { - "typescript": "^5.3.2" + "typescript": "^5.7.3" }, "peerDependencies": { "storybook": "workspace:^" diff --git a/code/lib/csf-plugin/src/index.ts b/code/lib/csf-plugin/src/index.ts index 7ad2a1c96ffc..13d417d94e22 100644 --- a/code/lib/csf-plugin/src/index.ts +++ b/code/lib/csf-plugin/src/index.ts @@ -15,7 +15,7 @@ export const unplugin = createUnplugin((options) => { }, vite: { enforce: 'pre', - ...rollupBasedPlugin(options), + ...(rollupBasedPlugin(options) as any), }, webpack(compiler) { compiler.options.module.rules.unshift({ diff --git a/code/lib/instrumenter/package.json b/code/lib/instrumenter/package.json index d482d03d607e..c94fc5d539ae 100644 --- a/code/lib/instrumenter/package.json +++ b/code/lib/instrumenter/package.json @@ -47,7 +47,7 @@ "@vitest/utils": "^2.1.1" }, "devDependencies": { - "typescript": "^5.3.2" + "typescript": "^5.7.3" }, "peerDependencies": { "storybook": "workspace:^" diff --git a/code/lib/react-dom-shim/package.json b/code/lib/react-dom-shim/package.json index 63a124affa5d..70b2649e5c81 100644 --- a/code/lib/react-dom-shim/package.json +++ b/code/lib/react-dom-shim/package.json @@ -54,7 +54,7 @@ "prep": "jiti ../../../scripts/prepare/bundle.ts" }, "devDependencies": { - "typescript": "^5.3.2" + "typescript": "^5.7.3" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta", diff --git a/code/lib/source-loader/package.json b/code/lib/source-loader/package.json index 133e0e16e13e..9988cb8a6b4b 100644 --- a/code/lib/source-loader/package.json +++ b/code/lib/source-loader/package.json @@ -50,7 +50,7 @@ "prettier": "^3.1.1" }, "devDependencies": { - "typescript": "^5.3.2" + "typescript": "^5.7.3" }, "peerDependencies": { "storybook": "workspace:^" diff --git a/code/lib/test/package.json b/code/lib/test/package.json index 4369cee87728..0a568964d5ab 100644 --- a/code/lib/test/package.json +++ b/code/lib/test/package.json @@ -57,7 +57,7 @@ "tinyspy": "^3.0.0", "ts-dedent": "^2.2.0", "type-fest": "~2.19", - "typescript": "^5.3.2" + "typescript": "^5.7.3" }, "peerDependencies": { "storybook": "workspace:^" diff --git a/code/package.json b/code/package.json index 0e8299b54717..365b2147398c 100644 --- a/code/package.json +++ b/code/package.json @@ -85,6 +85,7 @@ "@types/node": "^22.0.0", "@vitest/expect@npm:2.0.5": "patch:@vitest/expect@npm%3A2.0.5#~/.yarn/patches/@vitest-expect-npm-2.0.5-8933466cce.patch", "esbuild": "^0.24.0", + "typescript": "^5.7.3", "playwright": "1.48.1", "playwright-core": "1.48.1", "serialize-javascript": "^3.1.0", @@ -221,7 +222,7 @@ "storybook": "workspace:^", "svelte": "^5.0.0-next.268", "ts-dedent": "^2.0.0", - "typescript": "5.4.3", + "typescript": "^5.7.3", "util": "^0.12.4", "vite": "^4.0.0", "vite-plugin-inspect": "^0.8.5", diff --git a/code/presets/create-react-app/package.json b/code/presets/create-react-app/package.json index 120260b2d114..125b52b16387 100644 --- a/code/presets/create-react-app/package.json +++ b/code/presets/create-react-app/package.json @@ -57,7 +57,7 @@ }, "devDependencies": { "@types/node": "^22.0.0", - "typescript": "^5.3.2" + "typescript": "^5.7.3" }, "peerDependencies": { "react-scripts": ">=5.0.0", diff --git a/code/presets/html-webpack/package.json b/code/presets/html-webpack/package.json index 44386a5f49ea..f7264bb76554 100644 --- a/code/presets/html-webpack/package.json +++ b/code/presets/html-webpack/package.json @@ -55,7 +55,7 @@ }, "devDependencies": { "@types/node": "^22.0.0", - "typescript": "^5.3.2" + "typescript": "^5.7.3" }, "peerDependencies": { "storybook": "workspace:^" diff --git a/code/presets/preact-webpack/package.json b/code/presets/preact-webpack/package.json index 2d3f8a934512..9ab728220680 100644 --- a/code/presets/preact-webpack/package.json +++ b/code/presets/preact-webpack/package.json @@ -54,7 +54,7 @@ "devDependencies": { "@types/node": "^22.0.0", "preact": "^10.5.13", - "typescript": "^5.3.2" + "typescript": "^5.7.3" }, "peerDependencies": { "preact": "^8.0.0||^10.0.0", diff --git a/code/presets/react-webpack/package.json b/code/presets/react-webpack/package.json index b5c9d3949ac7..5475710ddf0e 100644 --- a/code/presets/react-webpack/package.json +++ b/code/presets/react-webpack/package.json @@ -78,7 +78,7 @@ }, "devDependencies": { "@types/node": "^22.0.0", - "typescript": "^5.3.2" + "typescript": "^5.7.3" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta", diff --git a/code/presets/server-webpack/package.json b/code/presets/server-webpack/package.json index 4bb8c123e41f..93afeae513d6 100644 --- a/code/presets/server-webpack/package.json +++ b/code/presets/server-webpack/package.json @@ -63,7 +63,7 @@ }, "devDependencies": { "@types/node": "^22.0.0", - "typescript": "^5.3.2", + "typescript": "^5.7.3", "yaml": "^2.3.1" }, "peerDependencies": { diff --git a/code/presets/svelte-webpack/package.json b/code/presets/svelte-webpack/package.json index e9ded420d42c..bf3db66a7eda 100644 --- a/code/presets/svelte-webpack/package.json +++ b/code/presets/svelte-webpack/package.json @@ -71,7 +71,7 @@ "devDependencies": { "svelte": "^5.0.0", "svelte-loader": "^3.2.4", - "typescript": "^5.3.2" + "typescript": "^5.7.3" }, "peerDependencies": { "storybook": "workspace:^", diff --git a/code/presets/vue3-webpack/package.json b/code/presets/vue3-webpack/package.json index 8412ade65a69..c91c2b6d0149 100644 --- a/code/presets/vue3-webpack/package.json +++ b/code/presets/vue3-webpack/package.json @@ -69,7 +69,7 @@ "devDependencies": { "@types/node": "^22.0.0", "@vue/compiler-sfc": "^3.2.33", - "typescript": "^5.3.2", + "typescript": "^5.7.3", "vue": "^3.2.33" }, "peerDependencies": { diff --git a/code/renderers/html/package.json b/code/renderers/html/package.json index b5807b9a33f7..b294770ca8d9 100644 --- a/code/renderers/html/package.json +++ b/code/renderers/html/package.json @@ -54,7 +54,7 @@ "ts-dedent": "^2.0.0" }, "devDependencies": { - "typescript": "^5.3.2" + "typescript": "^5.7.3" }, "peerDependencies": { "storybook": "workspace:^" diff --git a/code/renderers/preact/package.json b/code/renderers/preact/package.json index e3b8681214a2..539decfe6cc6 100644 --- a/code/renderers/preact/package.json +++ b/code/renderers/preact/package.json @@ -55,7 +55,7 @@ }, "devDependencies": { "preact": "^10.5.13", - "typescript": "^5.3.2" + "typescript": "^5.7.3" }, "peerDependencies": { "preact": "^8.0.0||^10.0.0", diff --git a/code/renderers/server/package.json b/code/renderers/server/package.json index 65f402f2bfa0..4f2b383c699f 100644 --- a/code/renderers/server/package.json +++ b/code/renderers/server/package.json @@ -55,7 +55,7 @@ "yaml": "^2.3.1" }, "devDependencies": { - "typescript": "^5.3.2" + "typescript": "^5.7.3" }, "peerDependencies": { "storybook": "workspace:^" diff --git a/code/renderers/svelte/package.json b/code/renderers/svelte/package.json index 96b6780ab405..ab4726d52396 100644 --- a/code/renderers/svelte/package.json +++ b/code/renderers/svelte/package.json @@ -65,12 +65,13 @@ "type-fest": "~2.19" }, "devDependencies": { - "@sveltejs/vite-plugin-svelte": "^4.0.0", + "@sveltejs/vite-plugin-svelte": "^5.0.3", "@testing-library/svelte": "^5.2.4", - "expect-type": "^0.15.0", - "svelte": "^5.0.5", - "svelte-check": "^4.0.5", - "typescript": "^5.3.2" + "expect-type": "^1.1.0", + "svelte": "^5.19.2", + "svelte-check": "^4.1.4", + "typescript": "^5.7.3", + "vite": "^6.0.11" }, "peerDependencies": { "storybook": "workspace:^", diff --git a/code/renderers/svelte/src/__test__/composeStories/CustomRenderComponent.svelte b/code/renderers/svelte/src/__test__/composeStories/CustomRenderComponent.svelte index 2619c6cfc849..900a596e860c 100644 --- a/code/renderers/svelte/src/__test__/composeStories/CustomRenderComponent.svelte +++ b/code/renderers/svelte/src/__test__/composeStories/CustomRenderComponent.svelte @@ -1,6 +1,6 @@ diff --git a/code/renderers/svelte/src/mount.ts b/code/renderers/svelte/src/mount.ts index 56980eea4ee9..8a2eb3275de4 100644 --- a/code/renderers/svelte/src/mount.ts +++ b/code/renderers/svelte/src/mount.ts @@ -1,6 +1,6 @@ -import { type BaseAnnotations } from 'storybook/internal/types'; +import type { BaseAnnotations } from 'storybook/internal/types'; -import { type StoryContext, type SvelteRenderer } from './public-types'; +import type { StoryContext, SvelteRenderer } from './public-types'; export const mount: BaseAnnotations['mount'] = (context: StoryContext) => { return async (Component, options) => { diff --git a/code/renderers/svelte/src/public-types.test.ts b/code/renderers/svelte/src/public-types.test.ts index b68debe58b48..8c375d8c4f6a 100644 --- a/code/renderers/svelte/src/public-types.test.ts +++ b/code/renderers/svelte/src/public-types.test.ts @@ -29,7 +29,7 @@ describe('Meta', () => { }, }; - expectTypeOf(meta).toEqualTypeOf< + expectTypeOf(meta).toMatchTypeOf< ComponentAnnotations, { disabled: boolean; label: string }> >(); }); @@ -40,7 +40,7 @@ describe('Meta', () => { args: { label: 'good', disabled: false }, }; - expectTypeOf(meta).toEqualTypeOf< + expectTypeOf(meta).toMatchTypeOf< ComponentAnnotations >(); }); @@ -57,7 +57,7 @@ describe('Meta', () => { props: args, on: { mousemove: (event) => { - expectTypeOf(event).toEqualTypeOf(); + expectTypeOf(event).toMatchTypeOf(); }, }, }), @@ -74,7 +74,7 @@ describe('Meta', () => { props: args, on: { mousemove: (event) => { - expectTypeOf(event).toEqualTypeOf(); + expectTypeOf(event).toMatchTypeOf(); }, }, }), @@ -96,7 +96,7 @@ describe('StoryObj', () => { { disabled: boolean; label: string }, { disabled: boolean; label?: string } >; - expectTypeOf().toEqualTypeOf(); + expectTypeOf().toMatchTypeOf(); }); it('❌ The combined shape of meta args and story args must match the required args.', () => { @@ -108,7 +108,7 @@ describe('StoryObj', () => { { disabled: boolean; label: string }, { disabled: boolean; label: string } >; - expectTypeOf>().toEqualTypeOf(); + expectTypeOf>().toMatchTypeOf(); } { const meta = satisfies>()({ @@ -123,7 +123,7 @@ describe('StoryObj', () => { { disabled: boolean; label: string }, { disabled: boolean; label?: string } >; - expectTypeOf(Basic).toEqualTypeOf(); + expectTypeOf(Basic).toMatchTypeOf(); } { const meta = satisfies>()({ component: Button }); @@ -137,12 +137,12 @@ describe('StoryObj', () => { { disabled: boolean; label: string }, { disabled: boolean; label: string } >; - expectTypeOf(Basic).toEqualTypeOf(); + expectTypeOf(Basic).toMatchTypeOf(); } }); it('Component can be used as generic parameter for StoryObj', () => { - expectTypeOf>().toEqualTypeOf< + expectTypeOf>().toMatchTypeOf< SvelteStory< Button, { disabled: boolean; label: string }, @@ -174,7 +174,7 @@ describe('Story args can be inferred', () => { { theme: ThemeData; disabled: boolean; label: string }, { theme: ThemeData; disabled?: boolean; label: string } >; - expectTypeOf(Basic).toEqualTypeOf(); + expectTypeOf(Basic).toMatchTypeOf(); }); const withDecorator: Decorator<{ decoratorArg: string }> = ( @@ -201,7 +201,7 @@ describe('Story args can be inferred', () => { Props, { decoratorArg: string; disabled?: boolean; label: string } >; - expectTypeOf(Basic).toEqualTypeOf(); + expectTypeOf(Basic).toMatchTypeOf(); }); it('Correct args are inferred when type is widened for multiple decorators', () => { @@ -230,7 +230,7 @@ describe('Story args can be inferred', () => { Props, { decoratorArg: string; decoratorArg2: string; disabled?: boolean; label: string } >; - expectTypeOf(Basic).toEqualTypeOf(); + expectTypeOf(Basic).toMatchTypeOf(); }); }); @@ -238,8 +238,8 @@ it('mount accepts a Component and props', () => { const Basic: StoryObj