diff --git a/code/core/package.json b/code/core/package.json index be83a92cde85..477fff6e33b3 100644 --- a/code/core/package.json +++ b/code/core/package.json @@ -275,7 +275,6 @@ }, "dependencies": { "@storybook/csf": "0.1.12", - "@storybook/theming": "workspace:*", "better-opn": "^3.0.2", "browser-assert": "^1.2.1", "esbuild": "^0.18.0 || ^0.19.0 || ^0.20.0 || ^0.21.0 || ^0.22.0 || ^0.23.0 || ^0.24.0", diff --git a/code/frameworks/angular/package.json b/code/frameworks/angular/package.json index 35ca6a1bbeaa..ff63e86b9853 100644 --- a/code/frameworks/angular/package.json +++ b/code/frameworks/angular/package.json @@ -41,9 +41,6 @@ "@storybook/components": "workspace:*", "@storybook/core-webpack": "workspace:*", "@storybook/global": "^5.0.0", - "@storybook/manager-api": "workspace:*", - "@storybook/preview-api": "workspace:*", - "@storybook/theming": "workspace:*", "@types/react": "^18.0.37", "@types/react-dom": "^18.0.11", "@types/semver": "^7.3.4", diff --git a/code/frameworks/react-vite/package.json b/code/frameworks/react-vite/package.json index 024a7f8d9ff7..843ba040beeb 100644 --- a/code/frameworks/react-vite/package.json +++ b/code/frameworks/react-vite/package.json @@ -77,11 +77,15 @@ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta", "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta", "storybook": "workspace:^", + "typescript": ">= 4.2.x", "vite": "^4.0.0 || ^5.0.0 || ^6.0.0" }, "peerDependenciesMeta": { "@storybook/test": { "optional": true + }, + "typescript": { + "optional": true } }, "engines": { diff --git a/code/lib/test/package.json b/code/lib/test/package.json index 127227283355..d60f1e3becb1 100644 --- a/code/lib/test/package.json +++ b/code/lib/test/package.json @@ -54,6 +54,7 @@ }, "devDependencies": { "chai": "^5.1.1", + "storybook": "workspace:*", "tinyspy": "^3.0.0", "ts-dedent": "^2.2.0", "type-fest": "~2.19", diff --git a/code/presets/react-webpack/package.json b/code/presets/react-webpack/package.json index 244f773974b7..ec9f5706378e 100644 --- a/code/presets/react-webpack/package.json +++ b/code/presets/react-webpack/package.json @@ -81,11 +81,15 @@ "typescript": "^5.3.2" }, "peerDependencies": { + "@storybook/test": "workspace:*", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta", "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta", "storybook": "workspace:^" }, "peerDependenciesMeta": { + "@storybook/test": { + "optional": true + }, "typescript": { "optional": true } diff --git a/code/renderers/html/package.json b/code/renderers/html/package.json index a75d5819a787..ef72b265f86e 100644 --- a/code/renderers/html/package.json +++ b/code/renderers/html/package.json @@ -48,9 +48,6 @@ "dependencies": { "@storybook/components": "workspace:*", "@storybook/global": "^5.0.0", - "@storybook/manager-api": "workspace:*", - "@storybook/preview-api": "workspace:*", - "@storybook/theming": "workspace:*", "ts-dedent": "^2.0.0" }, "devDependencies": { diff --git a/code/renderers/preact/package.json b/code/renderers/preact/package.json index 4c86e52c205b..9083556484a0 100644 --- a/code/renderers/preact/package.json +++ b/code/renderers/preact/package.json @@ -48,9 +48,6 @@ "dependencies": { "@storybook/components": "workspace:*", "@storybook/global": "^5.0.0", - "@storybook/manager-api": "workspace:*", - "@storybook/preview-api": "workspace:*", - "@storybook/theming": "workspace:*", "ts-dedent": "^2.0.0" }, "devDependencies": { diff --git a/code/renderers/react/package.json b/code/renderers/react/package.json index 6b5af52a3dc8..8cf3bd13e147 100644 --- a/code/renderers/react/package.json +++ b/code/renderers/react/package.json @@ -62,12 +62,8 @@ "prep": "jiti ../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/components": "workspace:*", "@storybook/global": "^5.0.0", - "@storybook/manager-api": "workspace:*", - "@storybook/preview-api": "workspace:*", - "@storybook/react-dom-shim": "workspace:*", - "@storybook/theming": "workspace:*" + "@storybook/react-dom-shim": "workspace:*" }, "devDependencies": { "@storybook/test": "workspace:*", diff --git a/code/renderers/react/src/__test__/portable-stories-legacy.test.tsx b/code/renderers/react/src/__test__/portable-stories-legacy.test.tsx index 5567b1fd9fbc..3b2e6c0090f7 100644 --- a/code/renderers/react/src/__test__/portable-stories-legacy.test.tsx +++ b/code/renderers/react/src/__test__/portable-stories-legacy.test.tsx @@ -8,7 +8,7 @@ import React from 'react'; import type { Meta } from '@storybook/react'; -import { addons } from '@storybook/preview-api'; +import { addons } from '@storybook/core/preview-api'; import * as addonActionsPreview from '@storybook/addon-actions/preview'; diff --git a/code/renderers/server/package.json b/code/renderers/server/package.json index 943bfc1a9800..13a7d87d4390 100644 --- a/code/renderers/server/package.json +++ b/code/renderers/server/package.json @@ -48,9 +48,6 @@ "@storybook/components": "workspace:*", "@storybook/csf": "0.1.12", "@storybook/global": "^5.0.0", - "@storybook/manager-api": "workspace:*", - "@storybook/preview-api": "workspace:*", - "@storybook/theming": "workspace:*", "ts-dedent": "^2.0.0", "yaml": "^2.3.1" }, diff --git a/code/renderers/svelte/package.json b/code/renderers/svelte/package.json index 7086103c0408..d14f85600094 100644 --- a/code/renderers/svelte/package.json +++ b/code/renderers/svelte/package.json @@ -57,9 +57,6 @@ "dependencies": { "@storybook/components": "workspace:*", "@storybook/global": "^5.0.0", - "@storybook/manager-api": "workspace:*", - "@storybook/preview-api": "workspace:*", - "@storybook/theming": "workspace:*", "sveltedoc-parser": "^4.2.1", "ts-dedent": "^2.0.0", "type-fest": "~2.19" diff --git a/code/renderers/vue3/package.json b/code/renderers/vue3/package.json index 32139c937c6e..02a819d6c085 100644 --- a/code/renderers/vue3/package.json +++ b/code/renderers/vue3/package.json @@ -63,9 +63,6 @@ "dependencies": { "@storybook/components": "workspace:*", "@storybook/global": "^5.0.0", - "@storybook/manager-api": "workspace:*", - "@storybook/preview-api": "workspace:*", - "@storybook/theming": "workspace:*", "@vue/compiler-core": "^3.0.0", "ts-dedent": "^2.0.0", "type-fest": "~2.19", diff --git a/code/renderers/web-components/package.json b/code/renderers/web-components/package.json index 59cc6e3344f9..630a40d210b5 100644 --- a/code/renderers/web-components/package.json +++ b/code/renderers/web-components/package.json @@ -51,9 +51,6 @@ "dependencies": { "@storybook/components": "workspace:*", "@storybook/global": "^5.0.0", - "@storybook/manager-api": "workspace:*", - "@storybook/preview-api": "workspace:*", - "@storybook/theming": "workspace:*", "tiny-invariant": "^1.3.1", "ts-dedent": "^2.0.0" }, diff --git a/code/yarn.lock b/code/yarn.lock index 81621dd31f62..0ad6108692ad 100644 --- a/code/yarn.lock +++ b/code/yarn.lock @@ -7388,9 +7388,6 @@ __metadata: "@storybook/components": "workspace:*" "@storybook/core-webpack": "workspace:*" "@storybook/global": "npm:^5.0.0" - "@storybook/manager-api": "workspace:*" - "@storybook/preview-api": "workspace:*" - "@storybook/theming": "workspace:*" "@types/cross-spawn": "npm:^6.0.2" "@types/node": "npm:^22.0.0" "@types/react": "npm:^18.0.37" @@ -7728,7 +7725,6 @@ __metadata: "@storybook/docs-mdx": "npm:4.0.0-next.1" "@storybook/global": "npm:^5.0.0" "@storybook/icons": "npm:^1.2.12" - "@storybook/theming": "workspace:*" "@tanstack/react-virtual": "npm:^3.3.0" "@testing-library/react": "npm:^14.0.0" "@types/cross-spawn": "npm:^6.0.2" @@ -8055,9 +8051,6 @@ __metadata: dependencies: "@storybook/components": "workspace:*" "@storybook/global": "npm:^5.0.0" - "@storybook/manager-api": "workspace:*" - "@storybook/preview-api": "workspace:*" - "@storybook/theming": "workspace:*" ts-dedent: "npm:^2.0.0" typescript: "npm:^5.3.2" peerDependencies: @@ -8114,7 +8107,7 @@ __metadata: languageName: node linkType: hard -"@storybook/manager-api@workspace:*, @storybook/manager-api@workspace:deprecated/manager-api": +"@storybook/manager-api@workspace:deprecated/manager-api": version: 0.0.0-use.local resolution: "@storybook/manager-api@workspace:deprecated/manager-api" peerDependencies: @@ -8244,9 +8237,6 @@ __metadata: dependencies: "@storybook/components": "workspace:*" "@storybook/global": "npm:^5.0.0" - "@storybook/manager-api": "workspace:*" - "@storybook/preview-api": "workspace:*" - "@storybook/theming": "workspace:*" preact: "npm:^10.5.13" ts-dedent: "npm:^2.0.0" typescript: "npm:^5.3.2" @@ -8319,10 +8309,13 @@ __metadata: typescript: "npm:^5.3.2" webpack: "npm:5" peerDependencies: + "@storybook/test": "workspace:*" react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta storybook: "workspace:^" peerDependenciesMeta: + "@storybook/test": + optional: true typescript: optional: true languageName: unknown @@ -8384,7 +8377,7 @@ __metadata: languageName: unknown linkType: soft -"@storybook/preview-api@workspace:*, @storybook/preview-api@workspace:deprecated/preview-api": +"@storybook/preview-api@workspace:deprecated/preview-api": version: 0.0.0-use.local resolution: "@storybook/preview-api@workspace:deprecated/preview-api" peerDependencies: @@ -8478,10 +8471,13 @@ __metadata: react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta storybook: "workspace:^" + typescript: ">= 4.2.x" vite: ^4.0.0 || ^5.0.0 || ^6.0.0 peerDependenciesMeta: "@storybook/test": optional: true + typescript: + optional: true languageName: unknown linkType: soft @@ -8508,13 +8504,9 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/react@workspace:renderers/react" dependencies: - "@storybook/components": "workspace:*" "@storybook/global": "npm:^5.0.0" - "@storybook/manager-api": "workspace:*" - "@storybook/preview-api": "workspace:*" "@storybook/react-dom-shim": "workspace:*" "@storybook/test": "workspace:*" - "@storybook/theming": "workspace:*" "@types/babel-plugin-react-docgen": "npm:^4" "@types/escodegen": "npm:^0.0.6" "@types/estree": "npm:^0.0.51" @@ -8735,9 +8727,6 @@ __metadata: "@storybook/components": "workspace:*" "@storybook/csf": "npm:0.1.12" "@storybook/global": "npm:^5.0.0" - "@storybook/manager-api": "workspace:*" - "@storybook/preview-api": "workspace:*" - "@storybook/theming": "workspace:*" ts-dedent: "npm:^2.0.0" typescript: "npm:^5.3.2" yaml: "npm:^2.3.1" @@ -8807,9 +8796,6 @@ __metadata: dependencies: "@storybook/components": "workspace:*" "@storybook/global": "npm:^5.0.0" - "@storybook/manager-api": "workspace:*" - "@storybook/preview-api": "workspace:*" - "@storybook/theming": "workspace:*" "@sveltejs/vite-plugin-svelte": "npm:^4.0.0" "@testing-library/svelte": "npm:^5.2.4" expect-type: "npm:^0.15.0" @@ -8864,6 +8850,7 @@ __metadata: "@vitest/expect": "npm:2.0.5" "@vitest/spy": "npm:2.0.5" chai: "npm:^5.1.1" + storybook: "workspace:*" tinyspy: "npm:^3.0.0" ts-dedent: "npm:^2.2.0" type-fest: "npm:~2.19" @@ -8945,9 +8932,6 @@ __metadata: "@digitak/esrun": "npm:^3.2.2" "@storybook/components": "workspace:*" "@storybook/global": "npm:^5.0.0" - "@storybook/manager-api": "workspace:*" - "@storybook/preview-api": "workspace:*" - "@storybook/theming": "workspace:*" "@testing-library/vue": "npm:^8.0.0" "@types/prettier": "npm:^3.0.0" "@vitejs/plugin-vue": "npm:^4.4.0" @@ -8999,9 +8983,6 @@ __metadata: dependencies: "@storybook/components": "workspace:*" "@storybook/global": "npm:^5.0.0" - "@storybook/manager-api": "workspace:*" - "@storybook/preview-api": "workspace:*" - "@storybook/theming": "workspace:*" "@types/cross-spawn": "npm:^6.0.2" "@types/node": "npm:^22.0.0" cross-spawn: "npm:^7.0.3"