diff --git a/code/builders/builder-vite/src/optimizeDeps.ts b/code/builders/builder-vite/src/optimizeDeps.ts index ddb32c800403..af6eedd34bab 100644 --- a/code/builders/builder-vite/src/optimizeDeps.ts +++ b/code/builders/builder-vite/src/optimizeDeps.ts @@ -13,12 +13,10 @@ const INCLUDE_CANDIDATES = [ '@storybook/addon-docs', '@storybook/addon-essentials/docs/mdx-react-shim', '@storybook/channels', - '@storybook/client-api', '@storybook/client-logger', '@storybook/core/client', '@storybook/global', '@storybook/preview-api', - '@storybook/preview-web', '@storybook/react > acorn-jsx', '@storybook/react', '@storybook/svelte', diff --git a/code/builders/builder-webpack5/src/preview/iframe-webpack.config.ts b/code/builders/builder-webpack5/src/preview/iframe-webpack.config.ts index 01b294f48fb0..55e0d733aa9e 100644 --- a/code/builders/builder-webpack5/src/preview/iframe-webpack.config.ts +++ b/code/builders/builder-webpack5/src/preview/iframe-webpack.config.ts @@ -49,8 +49,6 @@ const themingPath = maybeGetAbsolutePath(`@storybook/theming`); const storybookPaths: Record = { ...(managerAPIPath ? { - // deprecated, remove in 8.0 - [`@storybook/api`]: managerAPIPath, [`@storybook/manager-api`]: managerAPIPath, } : {}), diff --git a/code/deprecated/addons/README.md b/code/deprecated/addons/README.md deleted file mode 100644 index 41f81df8a95d..000000000000 --- a/code/deprecated/addons/README.md +++ /dev/null @@ -1,3 +0,0 @@ -The contents of this package have moved to `@storybook/preview-api` and `@storybook/manager-api`. Please update your import depending on where are using this API. - -This package will no longer be released as part of the 8.0 release of storybook. diff --git a/code/deprecated/addons/package.json b/code/deprecated/addons/package.json deleted file mode 100644 index 433e952e6036..000000000000 --- a/code/deprecated/addons/package.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "name": "@storybook/addons", - "version": "7.6.0-alpha.1", - "description": "Storybook addons store", - "keywords": [ - "storybook" - ], - "homepage": "https://github.com/storybookjs/storybook/tree/next/code/deprecated/addons", - "bugs": { - "url": "https://github.com/storybookjs/storybook/issues" - }, - "repository": { - "type": "git", - "url": "https://github.com/storybookjs/storybook.git", - "directory": "code/deprecated/addons" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/storybook" - }, - "license": "MIT", - "sideEffects": false, - "exports": { - ".": { - "types": "./dist/index.d.ts", - "node": "./dist/index.js", - "require": "./dist/index.js", - "import": "./dist/index.mjs" - }, - "./package.json": "./package.json" - }, - "main": "./dist/index.js", - "module": "./dist/index.mjs", - "types": "./dist/index.d.ts", - "files": [ - "dist/**/*", - "README.md", - "*.js", - "*.d.ts", - "!src/**/*" - ], - "scripts": { - "check": "../../../scripts/prepare/check.ts", - "prep": "../../../scripts/prepare/bundle.ts" - }, - "dependencies": { - "@storybook/manager-api": "workspace:*", - "@storybook/preview-api": "workspace:*", - "@storybook/types": "workspace:*" - }, - "peerDependencies": { - "react": "^16.8.0 || ^17.0.0 || ^18.0.0", - "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" - }, - "publishConfig": { - "access": "public" - }, - "bundler": { - "entries": [ - "./src/index.ts" - ] - }, - "gitHead": "e6a7fd8a655c69780bc20b9749c2699e44beae17" -} diff --git a/code/deprecated/addons/project.json b/code/deprecated/addons/project.json deleted file mode 100644 index db49d29418b1..000000000000 --- a/code/deprecated/addons/project.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "@storybook/addons", - "$schema": "../../node_modules/nx/schemas/project-schema.json", - "implicitDependencies": [], - "type": "library" -} diff --git a/code/deprecated/addons/src/index.ts b/code/deprecated/addons/src/index.ts deleted file mode 100644 index 2dee3d2d2ea4..000000000000 --- a/code/deprecated/addons/src/index.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { type Addon_Type, Addon_TypesEnum } from '@storybook/types'; - -export { type Addon_Type as Addon, Addon_TypesEnum as types }; - -export { addons, type AddonStore, mockChannel } from '@storybook/manager-api'; - -export { - type EventMap, - HooksContext, - type Listener, - type MakeDecoratorOptions, - type MakeDecoratorResult, - applyHooks, - makeDecorator, - useArgs, - useCallback, - useChannel, - useEffect, - useGlobals, - useMemo, - useParameter, - useReducer, - useRef, - useState, - useStoryContext, -} from '@storybook/preview-api/dist/addons'; diff --git a/code/deprecated/addons/tsconfig.json b/code/deprecated/addons/tsconfig.json deleted file mode 100644 index 4c6f20a1be4d..000000000000 --- a/code/deprecated/addons/tsconfig.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "include": ["src/**/*"], - "compilerOptions": { - "strict": false - } -} diff --git a/code/deprecated/channel-postmessage/README.md b/code/deprecated/channel-postmessage/README.md deleted file mode 100644 index 8edc7163f9e2..000000000000 --- a/code/deprecated/channel-postmessage/README.md +++ /dev/null @@ -1,14 +0,0 @@ -# Storybook PostMessage Channel - -Storybook PostMessage Channel is a channel for Storybook that can be used when the Storybook Renderer runs inside an iframe or a child window. -A channel can be created using the `createChannel` function. - -```js -import { createChannel } from '@storybook/channel-postmessage'; - -const channel = createChannel({ key: 'postmsg-key' }); -``` - ---- - -For more information visit: [storybook.js.org](https://storybook.js.org) diff --git a/code/deprecated/channel-postmessage/jest.config.js b/code/deprecated/channel-postmessage/jest.config.js deleted file mode 100644 index 4396fbc7010d..000000000000 --- a/code/deprecated/channel-postmessage/jest.config.js +++ /dev/null @@ -1,7 +0,0 @@ -const path = require('path'); -const baseConfig = require('../../jest.config.browser'); - -module.exports = { - ...baseConfig, - displayName: __dirname.split(path.sep).slice(-2).join(path.posix.sep), -}; diff --git a/code/deprecated/channel-postmessage/package.json b/code/deprecated/channel-postmessage/package.json deleted file mode 100644 index 9b003416fabe..000000000000 --- a/code/deprecated/channel-postmessage/package.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "name": "@storybook/channel-postmessage", - "version": "7.6.0-alpha.1", - "description": "", - "keywords": [ - "storybook" - ], - "homepage": "https://github.com/storybookjs/storybook/tree/next/code/lib/channel-postmessage", - "bugs": { - "url": "https://github.com/storybookjs/storybook/issues" - }, - "repository": { - "type": "git", - "url": "https://github.com/storybookjs/storybook.git", - "directory": "code/lib/channel-postmessage" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/storybook" - }, - "license": "MIT", - "sideEffects": false, - "exports": { - ".": { - "types": "./dist/entry.d.ts", - "node": "./dist/entry.js", - "require": "./dist/entry.js", - "import": "./dist/entry.mjs" - }, - "./package.json": "./package.json" - }, - "main": "dist/entry.js", - "module": "dist/entry.mjs", - "types": "dist/entry.d.ts", - "files": [ - "dist/**/*", - "README.md", - "*.js", - "*.d.ts", - "!src/**/*" - ], - "scripts": { - "check": "../../../scripts/prepare/check.ts", - "prep": "../../../scripts/prepare/bundle.ts" - }, - "dependencies": { - "@storybook/channels": "workspace:*", - "@storybook/client-logger": "workspace:*" - }, - "devDependencies": { - "typescript": "~5.2.2" - }, - "publishConfig": { - "access": "public" - }, - "bundler": { - "entries": [ - "./src/entry.ts" - ], - "shim": "@storybook/channels/dist/postmessage/index" - }, - "gitHead": "e6a7fd8a655c69780bc20b9749c2699e44beae17" -} diff --git a/code/deprecated/channel-postmessage/project.json b/code/deprecated/channel-postmessage/project.json deleted file mode 100644 index 8a56b8804d7f..000000000000 --- a/code/deprecated/channel-postmessage/project.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "@storybook/channel-postmessage", - "$schema": "../../node_modules/nx/schemas/project-schema.json", - "implicitDependencies": [], - "type": "library" -} diff --git a/code/deprecated/channel-postmessage/src/entry.ts b/code/deprecated/channel-postmessage/src/entry.ts deleted file mode 100644 index 2190b9f5382e..000000000000 --- a/code/deprecated/channel-postmessage/src/entry.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { deprecate } from '@storybook/client-logger'; - -deprecate( - 'importing from @storybook/channel-postmessage is deprecated and will be removed in 8.0, please import createPostmessageChannel from @storybook/channels' -); - -export * from '@storybook/channels/dist/postmessage/index'; diff --git a/code/deprecated/channel-postmessage/tsconfig.json b/code/deprecated/channel-postmessage/tsconfig.json deleted file mode 100644 index b5a2f9a70918..000000000000 --- a/code/deprecated/channel-postmessage/tsconfig.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "include": ["src/**/*"], - "compilerOptions": { - "strict": true - } -} diff --git a/code/deprecated/channel-websocket/README.md b/code/deprecated/channel-websocket/README.md deleted file mode 100644 index 8f131ab21ae3..000000000000 --- a/code/deprecated/channel-websocket/README.md +++ /dev/null @@ -1,14 +0,0 @@ -# Storybook Websocket Channel - -Storybook Websocket Channel is a channel for Storybook that can be used when the Storybook Renderer should communicate with the Storybook Manager over the network. -A channel can be created using the `createChannel` function. - -```js -import createChannel from '@storybook/channel-websocket'; - -const channel = createChannel({ url: 'ws://localhost:9001' }); -``` - ---- - -For more information visit: [storybook.js.org](https://storybook.js.org) diff --git a/code/deprecated/channel-websocket/jest.config.js b/code/deprecated/channel-websocket/jest.config.js deleted file mode 100644 index 4396fbc7010d..000000000000 --- a/code/deprecated/channel-websocket/jest.config.js +++ /dev/null @@ -1,7 +0,0 @@ -const path = require('path'); -const baseConfig = require('../../jest.config.browser'); - -module.exports = { - ...baseConfig, - displayName: __dirname.split(path.sep).slice(-2).join(path.posix.sep), -}; diff --git a/code/deprecated/channel-websocket/package.json b/code/deprecated/channel-websocket/package.json deleted file mode 100644 index e855e87c1411..000000000000 --- a/code/deprecated/channel-websocket/package.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "name": "@storybook/channel-websocket", - "version": "7.6.0-alpha.1", - "description": "", - "keywords": [ - "storybook" - ], - "homepage": "https://github.com/storybookjs/storybook/tree/next/code/lib/channel-websocket", - "bugs": { - "url": "https://github.com/storybookjs/storybook/issues" - }, - "repository": { - "type": "git", - "url": "https://github.com/storybookjs/storybook.git", - "directory": "code/lib/channel-websocket" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/storybook" - }, - "license": "MIT", - "sideEffects": false, - "exports": { - ".": { - "types": "./dist/entry.d.ts", - "node": "./dist/entry.js", - "require": "./dist/entry.js", - "import": "./dist/entry.mjs" - }, - "./package.json": "./package.json" - }, - "main": "dist/entry.js", - "module": "dist/entry.mjs", - "types": "dist/entry.d.ts", - "files": [ - "dist/**/*", - "README.md", - "*.js", - "*.d.ts", - "!src/**/*" - ], - "scripts": { - "check": "../../../scripts/prepare/check.ts", - "prep": "../../../scripts/prepare/facade.ts" - }, - "dependencies": { - "@storybook/channels": "workspace:*", - "@storybook/client-logger": "workspace:*" - }, - "devDependencies": { - "typescript": "~5.2.2" - }, - "publishConfig": { - "access": "public" - }, - "bundler": { - "entries": [ - "./src/entry.ts" - ], - "shim": "@storybook/channels/dist/websocket/index" - }, - "gitHead": "e6a7fd8a655c69780bc20b9749c2699e44beae17" -} diff --git a/code/deprecated/channel-websocket/project.json b/code/deprecated/channel-websocket/project.json deleted file mode 100644 index f778bc09228d..000000000000 --- a/code/deprecated/channel-websocket/project.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "@storybook/channel-websocket", - "$schema": "../../node_modules/nx/schemas/project-schema.json", - "implicitDependencies": [], - "type": "library" -} diff --git a/code/deprecated/channel-websocket/src/entry.ts b/code/deprecated/channel-websocket/src/entry.ts deleted file mode 100644 index e5b6602e6120..000000000000 --- a/code/deprecated/channel-websocket/src/entry.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { deprecate } from '@storybook/client-logger'; - -deprecate( - 'importing from @storybook/channel-websocket is deprecated and will be removed in 8.0, please import createWebsocketChannel from @storybook/channels' -); - -export * from '@storybook/channels/dist/websocket/index'; diff --git a/code/deprecated/channel-websocket/tsconfig.json b/code/deprecated/channel-websocket/tsconfig.json deleted file mode 100644 index b5a2f9a70918..000000000000 --- a/code/deprecated/channel-websocket/tsconfig.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "include": ["src/**/*"], - "compilerOptions": { - "strict": true - } -} diff --git a/code/deprecated/client-api/README.md b/code/deprecated/client-api/README.md deleted file mode 100644 index 2220a03cb98b..000000000000 --- a/code/deprecated/client-api/README.md +++ /dev/null @@ -1,3 +0,0 @@ -The contents of this package have moved to `@storybook/preview-api`. Please update your import. - -This package will no longer be released as part of the 8.0 release of storybook. diff --git a/code/deprecated/client-api/package.json b/code/deprecated/client-api/package.json deleted file mode 100644 index 2983e47bd7ba..000000000000 --- a/code/deprecated/client-api/package.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "name": "@storybook/client-api", - "version": "7.6.0-alpha.1", - "description": "Storybook Client API", - "keywords": [ - "storybook" - ], - "homepage": "https://github.com/storybookjs/storybook/tree/next/code/deprecated/client-api", - "bugs": { - "url": "https://github.com/storybookjs/storybook/issues" - }, - "repository": { - "type": "git", - "url": "https://github.com/storybookjs/storybook.git", - "directory": "code/deprecated/client-api" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/storybook" - }, - "license": "MIT", - "sideEffects": false, - "exports": { - ".": { - "types": "./dist/entry.d.ts", - "require": "./dist/entry.js", - "import": "./dist/entry.mjs" - }, - "./package.json": "./package.json" - }, - "main": "dist/entry.js", - "module": "dist/entry.mjs", - "types": "dist/entry.d.ts", - "files": [ - "dist/**/*", - "README.md", - "*.js", - "*.d.ts", - "!src/**/*" - ], - "scripts": { - "check": "../../../scripts/prepare/check.ts", - "prep": "../../../scripts/prepare/facade.ts" - }, - "dependencies": { - "@storybook/client-logger": "workspace:*", - "@storybook/preview-api": "workspace:*" - }, - "publishConfig": { - "access": "public" - }, - "bundler": { - "entries": [ - "./src/entry.ts" - ], - "shim": "@storybook/preview-api/dist/client-api" - }, - "gitHead": "e6a7fd8a655c69780bc20b9749c2699e44beae17" -} diff --git a/code/deprecated/client-api/project.json b/code/deprecated/client-api/project.json deleted file mode 100644 index 6ad043cf9a61..000000000000 --- a/code/deprecated/client-api/project.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "@storybook/client-api", - "$schema": "../../node_modules/nx/schemas/project-schema.json", - "implicitDependencies": [], - "type": "library" -} diff --git a/code/deprecated/client-api/src/entry.ts b/code/deprecated/client-api/src/entry.ts deleted file mode 100644 index c5528bee29db..000000000000 --- a/code/deprecated/client-api/src/entry.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { deprecate } from '@storybook/client-logger'; - -deprecate( - 'importing from @storybook/client-api is deprecated and will be removed in 8.0, please import canvas related modules from @storybook/preview-api' -); - -export * from '@storybook/preview-api/dist/client-api'; diff --git a/code/deprecated/client-api/src/typings.d.ts b/code/deprecated/client-api/src/typings.d.ts deleted file mode 100644 index bfd9e55123ff..000000000000 --- a/code/deprecated/client-api/src/typings.d.ts +++ /dev/null @@ -1 +0,0 @@ -declare var LOGLEVEL: 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'silent' | undefined; diff --git a/code/deprecated/client-api/tsconfig.json b/code/deprecated/client-api/tsconfig.json deleted file mode 100644 index b5a2f9a70918..000000000000 --- a/code/deprecated/client-api/tsconfig.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "include": ["src/**/*"], - "compilerOptions": { - "strict": true - } -} diff --git a/code/deprecated/core-client/README.md b/code/deprecated/core-client/README.md deleted file mode 100644 index 2220a03cb98b..000000000000 --- a/code/deprecated/core-client/README.md +++ /dev/null @@ -1,3 +0,0 @@ -The contents of this package have moved to `@storybook/preview-api`. Please update your import. - -This package will no longer be released as part of the 8.0 release of storybook. diff --git a/code/deprecated/core-client/package.json b/code/deprecated/core-client/package.json deleted file mode 100644 index f434f59425f3..000000000000 --- a/code/deprecated/core-client/package.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "name": "@storybook/core-client", - "version": "7.6.0-alpha.1", - "description": "Storybook framework-agnostic API", - "keywords": [ - "storybook" - ], - "homepage": "https://github.com/storybookjs/storybook/tree/next/code/deprecated/core-client", - "bugs": { - "url": "https://github.com/storybookjs/storybook/issues" - }, - "repository": { - "type": "git", - "url": "https://github.com/storybookjs/storybook.git", - "directory": "code/deprecated/core-client" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/storybook" - }, - "license": "MIT", - "exports": { - ".": { - "types": "./dist/entry.d.ts", - "require": "./dist/entry.js", - "import": "./dist/entry.mjs" - }, - "./package.json": "./package.json" - }, - "main": "dist/entry.js", - "module": "dist/entry.mjs", - "types": "dist/entry.d.ts", - "scripts": { - "check": "../../../scripts/prepare/check.ts", - "prep": "../../../scripts/prepare/facade.ts" - }, - "dependencies": { - "@storybook/client-logger": "workspace:*", - "@storybook/preview-api": "workspace:*" - }, - "publishConfig": { - "access": "public" - }, - "bundler": { - "entries": [ - "./src/entry.ts" - ], - "shim": "@storybook/preview-api/dist/core-client" - }, - "gitHead": "e6a7fd8a655c69780bc20b9749c2699e44beae17" -} diff --git a/code/deprecated/core-client/project.json b/code/deprecated/core-client/project.json deleted file mode 100644 index 9ae6f7635e71..000000000000 --- a/code/deprecated/core-client/project.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "@storybook/core-client", - "$schema": "../../node_modules/nx/schemas/project-schema.json", - "implicitDependencies": [], - "type": "library" -} diff --git a/code/deprecated/core-client/src/entry.ts b/code/deprecated/core-client/src/entry.ts deleted file mode 100644 index e838a6bd7930..000000000000 --- a/code/deprecated/core-client/src/entry.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { deprecate } from '@storybook/client-logger'; - -deprecate( - 'importing from @storybook/core-client is deprecated and will be removed in 8.0, please import canvas related modules from @storybook/preview-api' -); - -export * from '@storybook/preview-api/dist/core-client'; diff --git a/code/deprecated/core-client/src/typings.d.ts b/code/deprecated/core-client/src/typings.d.ts deleted file mode 100644 index bfd9e55123ff..000000000000 --- a/code/deprecated/core-client/src/typings.d.ts +++ /dev/null @@ -1 +0,0 @@ -declare var LOGLEVEL: 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'silent' | undefined; diff --git a/code/deprecated/core-client/tsconfig.json b/code/deprecated/core-client/tsconfig.json deleted file mode 100644 index cb1c83813c18..000000000000 --- a/code/deprecated/core-client/tsconfig.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "include": ["src/**/*", "typings.d.ts"], - "compilerOptions": { - "strict": true - } -} diff --git a/code/deprecated/core-client/typings.d.ts b/code/deprecated/core-client/typings.d.ts deleted file mode 100644 index 2a4bb7deb464..000000000000 --- a/code/deprecated/core-client/typings.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -declare class AnsiToHtml { - constructor(options: { escapeHtml: boolean }); - - toHtml: (ansi: string) => string; -} diff --git a/code/deprecated/manager-api-shim/README.md b/code/deprecated/manager-api-shim/README.md deleted file mode 100644 index 21130d9a30f1..000000000000 --- a/code/deprecated/manager-api-shim/README.md +++ /dev/null @@ -1,3 +0,0 @@ -The contents of this package have moved to `@storybook/manager-api`. Please update your import. - -This package will no longer be released as part of the 8.0 release of storybook. diff --git a/code/deprecated/manager-api-shim/package.json b/code/deprecated/manager-api-shim/package.json deleted file mode 100644 index 9483d44d7b25..000000000000 --- a/code/deprecated/manager-api-shim/package.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "name": "@storybook/api", - "version": "7.6.0-alpha.1", - "description": "Storybook Manager API (facade)", - "keywords": [ - "storybook" - ], - "homepage": "https://github.com/storybookjs/storybook/tree/next/code/lib/api", - "bugs": { - "url": "https://github.com/storybookjs/storybook/issues" - }, - "repository": { - "type": "git", - "url": "https://github.com/storybookjs/storybook.git", - "directory": "code/deprecated/manager-api-shim" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/storybook" - }, - "license": "MIT", - "sideEffects": false, - "exports": { - ".": { - "types": "./dist/entry.d.ts", - "require": "./dist/entry.js", - "import": "./dist/entry.mjs" - }, - "./package.json": "./package.json" - }, - "main": "dist/entry.js", - "module": "dist/entry.mjs", - "types": "dist/entry.d.ts", - "files": [ - "dist/**/*", - "README.md", - "*.js", - "*.d.ts", - "!src/**/*" - ], - "scripts": { - "check": "../../../scripts/prepare/check.ts", - "prep": "../../../scripts/prepare/facade.ts" - }, - "dependencies": { - "@storybook/client-logger": "workspace:*", - "@storybook/manager-api": "workspace:*" - }, - "peerDependencies": { - "react": "^16.8.0 || ^17.0.0 || ^18.0.0", - "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" - }, - "peerDependenciesMeta": { - "react": { - "optional": true - }, - "react-dom": { - "optional": true - } - }, - "publishConfig": { - "access": "public" - }, - "bundler": { - "entries": [ - "./src/entry.ts" - ], - "shim": "@storybook/manager-api" - }, - "gitHead": "e6a7fd8a655c69780bc20b9749c2699e44beae17" -} diff --git a/code/deprecated/manager-api-shim/project.json b/code/deprecated/manager-api-shim/project.json deleted file mode 100644 index fdba5d62b5b2..000000000000 --- a/code/deprecated/manager-api-shim/project.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "@storybook/api", - "$schema": "../../node_modules/nx/schemas/project-schema.json", - "implicitDependencies": [], - "type": "library" -} diff --git a/code/deprecated/manager-api-shim/src/entry.ts b/code/deprecated/manager-api-shim/src/entry.ts deleted file mode 100644 index c0174219dd33..000000000000 --- a/code/deprecated/manager-api-shim/src/entry.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { deprecate } from '@storybook/client-logger'; - -deprecate( - 'importing from @storybook/api is deprecated and will be removed in 8.0, please import manager related modules from @storybook/manager-api' -); - -export * from '@storybook/manager-api'; diff --git a/code/deprecated/manager-api-shim/src/typings.d.ts b/code/deprecated/manager-api-shim/src/typings.d.ts deleted file mode 100644 index bfd9e55123ff..000000000000 --- a/code/deprecated/manager-api-shim/src/typings.d.ts +++ /dev/null @@ -1 +0,0 @@ -declare var LOGLEVEL: 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'silent' | undefined; diff --git a/code/deprecated/manager-api-shim/tsconfig.json b/code/deprecated/manager-api-shim/tsconfig.json deleted file mode 100644 index 4c6f20a1be4d..000000000000 --- a/code/deprecated/manager-api-shim/tsconfig.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "include": ["src/**/*"], - "compilerOptions": { - "strict": false - } -} diff --git a/code/deprecated/preview-web/README.md b/code/deprecated/preview-web/README.md deleted file mode 100644 index 2220a03cb98b..000000000000 --- a/code/deprecated/preview-web/README.md +++ /dev/null @@ -1,3 +0,0 @@ -The contents of this package have moved to `@storybook/preview-api`. Please update your import. - -This package will no longer be released as part of the 8.0 release of storybook. diff --git a/code/deprecated/preview-web/package.json b/code/deprecated/preview-web/package.json deleted file mode 100644 index d8dfe769f063..000000000000 --- a/code/deprecated/preview-web/package.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "name": "@storybook/preview-web", - "version": "7.6.0-alpha.1", - "description": "", - "keywords": [ - "storybook" - ], - "homepage": "https://github.com/storybookjs/storybook/tree/next/code/deprecated/preview-web", - "bugs": { - "url": "https://github.com/storybookjs/storybook/issues" - }, - "repository": { - "type": "git", - "url": "https://github.com/storybookjs/storybook.git", - "directory": "code/deprecated/preview-web" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/storybook" - }, - "license": "MIT", - "sideEffects": false, - "exports": { - ".": { - "types": "./dist/entry.d.ts", - "require": "./dist/entry.js", - "import": "./dist/entry.mjs" - }, - "./package.json": "./package.json" - }, - "main": "dist/entry.js", - "module": "dist/entry.mjs", - "types": "dist/entry.d.ts", - "files": [ - "dist/**/*", - "README.md", - "*.js", - "*.d.ts", - "!src/**/*" - ], - "scripts": { - "check": "../../../scripts/prepare/check.ts", - "prep": "../../../scripts/prepare/facade.ts" - }, - "dependencies": { - "@storybook/client-logger": "workspace:*", - "@storybook/preview-api": "workspace:*" - }, - "publishConfig": { - "access": "public" - }, - "bundler": { - "entries": [ - "./src/entry.ts" - ], - "shim": "@storybook/preview-api/dist/preview-web" - }, - "gitHead": "e6a7fd8a655c69780bc20b9749c2699e44beae17" -} diff --git a/code/deprecated/preview-web/project.json b/code/deprecated/preview-web/project.json deleted file mode 100644 index 461764d60368..000000000000 --- a/code/deprecated/preview-web/project.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "@storybook/preview-web", - "$schema": "../../node_modules/nx/schemas/project-schema.json", - "implicitDependencies": [], - "type": "library" -} diff --git a/code/deprecated/preview-web/src/entry.ts b/code/deprecated/preview-web/src/entry.ts deleted file mode 100644 index 0e2b07b5379e..000000000000 --- a/code/deprecated/preview-web/src/entry.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { deprecate } from '@storybook/client-logger'; - -deprecate( - 'importing from @storybook/preview is deprecated and will be removed in 8.0, please import canvas related modules from @storybook/preview-api' -); - -export * from '@storybook/preview-api/dist/preview-web'; diff --git a/code/deprecated/preview-web/src/typings.d.ts b/code/deprecated/preview-web/src/typings.d.ts deleted file mode 100644 index bfd9e55123ff..000000000000 --- a/code/deprecated/preview-web/src/typings.d.ts +++ /dev/null @@ -1 +0,0 @@ -declare var LOGLEVEL: 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'silent' | undefined; diff --git a/code/deprecated/preview-web/tsconfig.json b/code/deprecated/preview-web/tsconfig.json deleted file mode 100644 index 5b3f3a56a68d..000000000000 --- a/code/deprecated/preview-web/tsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "strict": true, - "skipLibCheck": true - }, - "include": ["src/**/*"] -} diff --git a/code/deprecated/store/README.md b/code/deprecated/store/README.md deleted file mode 100644 index 2220a03cb98b..000000000000 --- a/code/deprecated/store/README.md +++ /dev/null @@ -1,3 +0,0 @@ -The contents of this package have moved to `@storybook/preview-api`. Please update your import. - -This package will no longer be released as part of the 8.0 release of storybook. diff --git a/code/deprecated/store/package.json b/code/deprecated/store/package.json deleted file mode 100644 index 54a60af8f973..000000000000 --- a/code/deprecated/store/package.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "name": "@storybook/store", - "version": "7.6.0-alpha.1", - "description": "", - "keywords": [ - "storybook" - ], - "homepage": "https://github.com/storybookjs/storybook/tree/next/code/deprecated/store", - "bugs": { - "url": "https://github.com/storybookjs/storybook/issues" - }, - "repository": { - "type": "git", - "url": "https://github.com/storybookjs/storybook.git", - "directory": "code/deprecated/store" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/storybook" - }, - "license": "MIT", - "sideEffects": false, - "exports": { - ".": { - "types": "./dist/entry.d.ts", - "require": "./dist/entry.js", - "import": "./dist/entry.mjs" - }, - "./package.json": "./package.json" - }, - "main": "dist/entry.js", - "module": "dist/entry.mjs", - "types": "dist/entry.d.ts", - "files": [ - "dist/**/*", - "README.md", - "*.js", - "*.d.ts", - "!src/**/*" - ], - "scripts": { - "check": "../../../scripts/prepare/check.ts", - "prep": "../../../scripts/prepare/facade.ts" - }, - "dependencies": { - "@storybook/client-logger": "workspace:*", - "@storybook/preview-api": "workspace:*" - }, - "publishConfig": { - "access": "public" - }, - "bundler": { - "entries": [ - "./src/entry.ts" - ], - "platform": "node", - "shim": "@storybook/preview-api/dist/store" - } -} diff --git a/code/deprecated/store/project.json b/code/deprecated/store/project.json deleted file mode 100644 index 7fc42733239c..000000000000 --- a/code/deprecated/store/project.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "@storybook/store", - "$schema": "../../node_modules/nx/schemas/project-schema.json", - "implicitDependencies": [], - "type": "library" -} diff --git a/code/deprecated/store/src/entry.ts b/code/deprecated/store/src/entry.ts deleted file mode 100644 index 5183f9456376..000000000000 --- a/code/deprecated/store/src/entry.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { deprecate } from '@storybook/client-logger'; - -deprecate( - 'importing from @storybook/store is deprecated and will be removed in 8.0, please import canvas related modules from @storybook/preview-api' -); - -export * from '@storybook/preview-api/dist/store'; diff --git a/code/deprecated/store/src/typings.d.ts b/code/deprecated/store/src/typings.d.ts deleted file mode 100644 index bfd9e55123ff..000000000000 --- a/code/deprecated/store/src/typings.d.ts +++ /dev/null @@ -1 +0,0 @@ -declare var LOGLEVEL: 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'silent' | undefined; diff --git a/code/deprecated/store/tsconfig.json b/code/deprecated/store/tsconfig.json deleted file mode 100644 index 5b3f3a56a68d..000000000000 --- a/code/deprecated/store/tsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "strict": true, - "skipLibCheck": true - }, - "include": ["src/**/*"] -} diff --git a/code/frameworks/html-vite/package.json b/code/frameworks/html-vite/package.json index afc82689a045..65e69cd1342c 100644 --- a/code/frameworks/html-vite/package.json +++ b/code/frameworks/html-vite/package.json @@ -47,13 +47,10 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/addons": "workspace:*", "@storybook/builder-vite": "workspace:*", - "@storybook/client-api": "workspace:*", "@storybook/core-server": "workspace:*", "@storybook/html": "workspace:*", "@storybook/node-logger": "workspace:*", - "@storybook/preview-web": "workspace:*", "magic-string": "^0.30.0" }, "devDependencies": { diff --git a/code/lib/channels/package.json b/code/lib/channels/package.json index 4d48f8f44f02..d1a03841946b 100644 --- a/code/lib/channels/package.json +++ b/code/lib/channels/package.json @@ -27,36 +27,11 @@ "require": "./dist/index.js", "import": "./dist/index.mjs" }, - "./dist/postmessage/index": { - "types": "./dist/postmessage/index.d.ts", - "node": "./dist/postmessage/index.js", - "require": "./dist/postmessage/index.js", - "import": "./dist/postmessage/index.mjs" - }, - "./dist/websocket/index": { - "types": "./dist/websocket/index.d.ts", - "node": "./dist/websocket/index.js", - "require": "./dist/websocket/index.js", - "import": "./dist/websocket/index.mjs" - }, "./package.json": "./package.json" }, "main": "dist/index.js", "module": "dist/index.mjs", "types": "dist/index.d.ts", - "typesVersions": { - "*": { - "*": [ - "dist/index.d.ts" - ], - "dist/postmessage/index": [ - "dist/postmessage/index.d.ts" - ], - "dist/websocket/index": [ - "dist/websocket/index.d.ts" - ] - } - }, "files": [ "dist/**/*", "README.md", @@ -84,9 +59,7 @@ }, "bundler": { "entries": [ - "./src/index.ts", - "./src/postmessage/index.ts", - "./src/websocket/index.ts" + "./src/index.ts" ] }, "gitHead": "e6a7fd8a655c69780bc20b9749c2699e44beae17" diff --git a/code/lib/cli/package.json b/code/lib/cli/package.json index bdba2e509210..20a8d7ea28e0 100644 --- a/code/lib/cli/package.json +++ b/code/lib/cli/package.json @@ -98,7 +98,6 @@ "util-deprecate": "^1.0.2" }, "devDependencies": { - "@storybook/client-api": "workspace:*", "@types/cross-spawn": "^6.0.2", "@types/prompts": "^2.0.9", "@types/puppeteer-core": "^2.1.0", diff --git a/code/lib/cli/src/automigrate/helpers/getMigrationSummary.test.ts b/code/lib/cli/src/automigrate/helpers/getMigrationSummary.test.ts index f5569ae2f49d..370ffc60e3b4 100644 --- a/code/lib/cli/src/automigrate/helpers/getMigrationSummary.test.ts +++ b/code/lib/cli/src/automigrate/helpers/getMigrationSummary.test.ts @@ -25,7 +25,6 @@ describe('getMigrationSummary', () => { const installationMetadata: InstallationMetadata = { duplicatedDependencies: { - '@storybook/core-client': ['7.0.0', '7.1.0'], '@storybook/instrumenter': ['6.0.0', '7.1.0'], '@storybook/core-common': ['6.0.0', '7.1.0'], '@storybook/addon-essentials': ['7.0.0', '7.1.0'], diff --git a/code/lib/cli/src/automigrate/helpers/getMigrationSummary.ts b/code/lib/cli/src/automigrate/helpers/getMigrationSummary.ts index 6a16e2ae3291..1ca1bfd47350 100644 --- a/code/lib/cli/src/automigrate/helpers/getMigrationSummary.ts +++ b/code/lib/cli/src/automigrate/helpers/getMigrationSummary.ts @@ -107,23 +107,15 @@ export function getMigrationSummary({ const allowList = [ '@storybook/csf', // see this file for more info: code/lib/preview/src/globals/types.ts - '@storybook/addons', - '@storybook/channel-postmessage', // @deprecated: remove in 8.0 - '@storybook/channel-websocket', // @deprecated: remove in 8.0 '@storybook/channels', - '@storybook/client-api', '@storybook/client-logger', - '@storybook/core-client', '@storybook/core-events', - '@storybook/preview-web', '@storybook/preview-api', - '@storybook/store', // see this file for more info: code/ui/manager/src/globals/types.ts '@storybook/components', '@storybook/router', '@storybook/theming', - '@storybook/api', // @deprecated: remove in 8.0 '@storybook/manager-api', ]; diff --git a/code/lib/cli/src/versions.ts b/code/lib/cli/src/versions.ts index 9b6350bf9875..512b08d396d0 100644 --- a/code/lib/cli/src/versions.ts +++ b/code/lib/cli/src/versions.ts @@ -17,22 +17,16 @@ export default { '@storybook/addon-storysource': '7.6.0-alpha.1', '@storybook/addon-toolbars': '7.6.0-alpha.1', '@storybook/addon-viewport': '7.6.0-alpha.1', - '@storybook/addons': '7.6.0-alpha.1', '@storybook/angular': '7.6.0-alpha.1', - '@storybook/api': '7.6.0-alpha.1', '@storybook/blocks': '7.6.0-alpha.1', '@storybook/builder-manager': '7.6.0-alpha.1', '@storybook/builder-vite': '7.6.0-alpha.1', '@storybook/builder-webpack5': '7.6.0-alpha.1', - '@storybook/channel-postmessage': '7.6.0-alpha.1', - '@storybook/channel-websocket': '7.6.0-alpha.1', '@storybook/channels': '7.6.0-alpha.1', '@storybook/cli': '7.6.0-alpha.1', - '@storybook/client-api': '7.6.0-alpha.1', '@storybook/client-logger': '7.6.0-alpha.1', '@storybook/codemod': '7.6.0-alpha.1', '@storybook/components': '7.6.0-alpha.1', - '@storybook/core-client': '7.6.0-alpha.1', '@storybook/core-common': '7.6.0-alpha.1', '@storybook/core-events': '7.6.0-alpha.1', '@storybook/core-server': '7.6.0-alpha.1', @@ -64,7 +58,6 @@ export default { '@storybook/preset-web-components-webpack': '7.6.0-alpha.1', '@storybook/preview': '7.6.0-alpha.1', '@storybook/preview-api': '7.6.0-alpha.1', - '@storybook/preview-web': '7.6.0-alpha.1', '@storybook/react': '7.6.0-alpha.1', '@storybook/react-dom-shim': '7.6.0-alpha.1', '@storybook/react-vite': '7.6.0-alpha.1', @@ -73,7 +66,6 @@ export default { '@storybook/server': '7.6.0-alpha.1', '@storybook/server-webpack5': '7.6.0-alpha.1', '@storybook/source-loader': '7.6.0-alpha.1', - '@storybook/store': '7.6.0-alpha.1', '@storybook/svelte': '7.6.0-alpha.1', '@storybook/svelte-vite': '7.6.0-alpha.1', '@storybook/svelte-webpack5': '7.6.0-alpha.1', diff --git a/code/lib/preview-api/package.json b/code/lib/preview-api/package.json index 676a1a60ae86..76039c559e07 100644 --- a/code/lib/preview-api/package.json +++ b/code/lib/preview-api/package.json @@ -26,31 +26,6 @@ "import": "./dist/index.mjs", "require": "./dist/index.js" }, - "./dist/addons": { - "types": "./dist/addons.d.ts", - "import": "./dist/addons.mjs", - "require": "./dist/addons.js" - }, - "./dist/store": { - "types": "./dist/store.d.ts", - "import": "./dist/store.mjs", - "require": "./dist/store.js" - }, - "./dist/client-api": { - "types": "./dist/client-api.d.ts", - "import": "./dist/client-api.mjs", - "require": "./dist/client-api.js" - }, - "./dist/core-client": { - "types": "./dist/core-client.d.ts", - "import": "./dist/core-client.mjs", - "require": "./dist/core-client.js" - }, - "./dist/preview-web": { - "types": "./dist/preview-web.d.ts", - "import": "./dist/preview-web.mjs", - "require": "./dist/preview-web.js" - }, "./package.json": "./package.json" }, "main": "dist/index.js", @@ -95,12 +70,7 @@ }, "bundler": { "entries": [ - "./src/index.ts", - "./src/addons.ts", - "./src/client-api.ts", - "./src/core-client.ts", - "./src/preview-web.ts", - "./src/store.ts" + "./src/index.ts" ] }, "gitHead": "e6a7fd8a655c69780bc20b9749c2699e44beae17" diff --git a/code/lib/preview-api/src/modules/addons/main.ts b/code/lib/preview-api/src/modules/addons/main.ts index 5b663fe0f435..cf81d655724d 100644 --- a/code/lib/preview-api/src/modules/addons/main.ts +++ b/code/lib/preview-api/src/modules/addons/main.ts @@ -75,9 +75,4 @@ function getAddonsStore(): AddonStore { return global[KEY]; } -// Exporting this twice in order to to be able to import it like { addons } instead of 'addons' -// prefer import { addons } from '@storybook/addons' over import addons from '@storybook/addons' -// -// See public_api.ts - export const addons = getAddonsStore(); diff --git a/code/lib/preview-api/src/modules/store/StoryIndexStore.test.ts b/code/lib/preview-api/src/modules/store/StoryIndexStore.test.ts index c906d7a21a75..677cf83ee1a6 100644 --- a/code/lib/preview-api/src/modules/store/StoryIndexStore.test.ts +++ b/code/lib/preview-api/src/modules/store/StoryIndexStore.test.ts @@ -3,8 +3,6 @@ import { expect } from '@jest/globals'; import type { StoryIndex } from '@storybook/types'; import { StoryIndexStore } from './StoryIndexStore'; -jest.mock('@storybook/channel-websocket', () => () => ({ on: jest.fn() })); - const storyIndex: StoryIndex = { v: 4, entries: { diff --git a/code/lib/preview/src/globals/runtime.ts b/code/lib/preview/src/globals/runtime.ts index ad078c4afa8d..b8c8ea3d90f1 100644 --- a/code/lib/preview/src/globals/runtime.ts +++ b/code/lib/preview/src/globals/runtime.ts @@ -1,34 +1,16 @@ -import * as CHANNEL_POSTMESSAGE from '@storybook/channels/dist/postmessage/index'; -import * as CHANNEL_WEBSOCKET from '@storybook/channels/dist/websocket/index'; import * as CHANNELS from '@storybook/channels'; import * as CLIENT_LOGGER from '@storybook/client-logger'; import * as CORE_EVENTS from '@storybook/core-events'; import * as PREVIEW_API from '@storybook/preview-api'; import * as GLOBAL from '@storybook/global'; -// DEPRECATED, remove in 8.0 -import * as ADDONS from '@storybook/preview-api/dist/addons'; -import * as CLIENT_API from '@storybook/preview-api/dist/client-api'; -import * as CORE_CLIENT from '@storybook/preview-api/dist/core-client'; -import * as PREVIEW_WEB from '@storybook/preview-api/dist/preview-web'; -import * as STORE from '@storybook/preview-api/dist/store'; - import type { globals } from './types'; // Here we map the name of a module to their VALUE in the global scope. export const values: Required> = { - '@storybook/channel-postmessage': CHANNEL_POSTMESSAGE, // @deprecated: remove in 8.0 - '@storybook/channel-websocket': CHANNEL_WEBSOCKET, // @deprecated: remove in 8.0 '@storybook/channels': CHANNELS, '@storybook/client-logger': CLIENT_LOGGER, '@storybook/core-events': CORE_EVENTS, '@storybook/preview-api': PREVIEW_API, '@storybook/global': GLOBAL, - - // DEPRECATED, remove in 8.0 - '@storybook/addons': ADDONS, - '@storybook/client-api': CLIENT_API, - '@storybook/core-client': CORE_CLIENT, - '@storybook/preview-web': PREVIEW_WEB, - '@storybook/store': STORE, }; diff --git a/code/lib/preview/src/globals/types.ts b/code/lib/preview/src/globals/types.ts index 40ed603cd598..3e9a68ccfbd7 100644 --- a/code/lib/preview/src/globals/types.ts +++ b/code/lib/preview/src/globals/types.ts @@ -1,15 +1,8 @@ // Here we map the name of a module to their NAME in the global scope. export const globals = { - '@storybook/addons': '__STORYBOOK_MODULE_ADDONS__', '@storybook/global': '__STORYBOOK_MODULE_GLOBAL__', - '@storybook/channel-postmessage': '__STORYBOOK_MODULE_CHANNEL_POSTMESSAGE__', // @deprecated: remove in 8.0 - '@storybook/channel-websocket': '__STORYBOOK_MODULE_CHANNEL_WEBSOCKET__', // @deprecated: remove in 8.0 '@storybook/channels': '__STORYBOOK_MODULE_CHANNELS__', - '@storybook/client-api': '__STORYBOOK_MODULE_CLIENT_API__', '@storybook/client-logger': '__STORYBOOK_MODULE_CLIENT_LOGGER__', - '@storybook/core-client': '__STORYBOOK_MODULE_CORE_CLIENT__', '@storybook/core-events': '__STORYBOOK_MODULE_CORE_EVENTS__', - '@storybook/preview-web': '__STORYBOOK_MODULE_PREVIEW_WEB__', '@storybook/preview-api': '__STORYBOOK_MODULE_PREVIEW_API__', - '@storybook/store': '__STORYBOOK_MODULE_STORE__', }; diff --git a/code/package.json b/code/package.json index 9f6a8ff6e011..749a7837d64b 100644 --- a/code/package.json +++ b/code/package.json @@ -117,24 +117,18 @@ "@storybook/addon-storysource": "workspace:*", "@storybook/addon-toolbars": "workspace:*", "@storybook/addon-viewport": "workspace:*", - "@storybook/addons": "workspace:*", "@storybook/angular": "workspace:*", - "@storybook/api": "workspace:*", "@storybook/babel-plugin-require-context-hook": "1.0.1", "@storybook/bench": "next", "@storybook/blocks": "workspace:*", "@storybook/builder-manager": "workspace:*", "@storybook/builder-vite": "workspace:*", "@storybook/builder-webpack5": "workspace:*", - "@storybook/channel-postmessage": "workspace:*", - "@storybook/channel-websocket": "workspace:*", "@storybook/channels": "workspace:*", "@storybook/cli": "workspace:*", - "@storybook/client-api": "workspace:*", "@storybook/client-logger": "workspace:*", "@storybook/codemod": "workspace:*", "@storybook/components": "workspace:*", - "@storybook/core-client": "workspace:*", "@storybook/core-common": "workspace:*", "@storybook/core-events": "workspace:*", "@storybook/core-server": "workspace:*", @@ -171,7 +165,6 @@ "@storybook/preset-web-components-webpack": "workspace:*", "@storybook/preview": "workspace:*", "@storybook/preview-api": "workspace:*", - "@storybook/preview-web": "workspace:*", "@storybook/react": "workspace:*", "@storybook/react-vite": "workspace:*", "@storybook/react-webpack5": "workspace:*", @@ -179,7 +172,6 @@ "@storybook/server": "workspace:*", "@storybook/server-webpack5": "workspace:*", "@storybook/source-loader": "workspace:*", - "@storybook/store": "workspace:*", "@storybook/svelte": "workspace:*", "@storybook/svelte-webpack5": "workspace:*", "@storybook/telemetry": "workspace:*", diff --git a/code/renderers/html/package.json b/code/renderers/html/package.json index b523f787b619..fc61134cb459 100644 --- a/code/renderers/html/package.json +++ b/code/renderers/html/package.json @@ -49,7 +49,6 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/core-client": "workspace:*", "@storybook/docs-tools": "workspace:*", "@storybook/global": "^5.0.0", "@storybook/preview-api": "workspace:*", diff --git a/code/renderers/preact/package.json b/code/renderers/preact/package.json index f16cf98ca30a..ffdf15562c7b 100644 --- a/code/renderers/preact/package.json +++ b/code/renderers/preact/package.json @@ -49,7 +49,6 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/core-client": "workspace:*", "@storybook/global": "^5.0.0", "@storybook/preview-api": "workspace:*", "@storybook/types": "workspace:*", diff --git a/code/renderers/react/package.json b/code/renderers/react/package.json index eb861165d24e..f8ce8eaba06f 100644 --- a/code/renderers/react/package.json +++ b/code/renderers/react/package.json @@ -54,7 +54,6 @@ }, "dependencies": { "@storybook/client-logger": "workspace:*", - "@storybook/core-client": "workspace:*", "@storybook/docs-tools": "workspace:*", "@storybook/global": "^5.0.0", "@storybook/preview-api": "workspace:*", diff --git a/code/renderers/server/package.json b/code/renderers/server/package.json index 3495e6bfd07d..82e8d5a391d5 100644 --- a/code/renderers/server/package.json +++ b/code/renderers/server/package.json @@ -54,7 +54,6 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/core-client": "workspace:*", "@storybook/csf": "^0.1.0", "@storybook/csf-tools": "workspace:*", "@storybook/global": "^5.0.0", diff --git a/code/renderers/svelte/package.json b/code/renderers/svelte/package.json index 6b2e841148f2..cb3737e9f004 100644 --- a/code/renderers/svelte/package.json +++ b/code/renderers/svelte/package.json @@ -54,7 +54,6 @@ }, "dependencies": { "@storybook/client-logger": "workspace:*", - "@storybook/core-client": "workspace:*", "@storybook/core-events": "workspace:*", "@storybook/docs-tools": "workspace:*", "@storybook/global": "^5.0.0", diff --git a/code/renderers/vue/package.json b/code/renderers/vue/package.json index 5a0bd8382f05..fa5eae062a17 100644 --- a/code/renderers/vue/package.json +++ b/code/renderers/vue/package.json @@ -50,7 +50,6 @@ }, "dependencies": { "@storybook/client-logger": "workspace:*", - "@storybook/core-client": "workspace:*", "@storybook/docs-tools": "workspace:*", "@storybook/global": "^5.0.0", "@storybook/preview-api": "workspace:*", diff --git a/code/renderers/vue3/package.json b/code/renderers/vue3/package.json index 342272956a75..a8ebb0c78aaa 100644 --- a/code/renderers/vue3/package.json +++ b/code/renderers/vue3/package.json @@ -49,7 +49,6 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/core-client": "workspace:*", "@storybook/docs-tools": "workspace:*", "@storybook/global": "^5.0.0", "@storybook/preview-api": "workspace:*", diff --git a/code/renderers/web-components/package.json b/code/renderers/web-components/package.json index f1e58c52b970..d19f1f7ba851 100644 --- a/code/renderers/web-components/package.json +++ b/code/renderers/web-components/package.json @@ -53,7 +53,6 @@ }, "dependencies": { "@storybook/client-logger": "workspace:*", - "@storybook/core-client": "workspace:*", "@storybook/docs-tools": "workspace:*", "@storybook/global": "^5.0.0", "@storybook/manager-api": "workspace:*", diff --git a/code/ui/manager/package.json b/code/ui/manager/package.json index bea4ca9ccb33..f27b681b68ff 100644 --- a/code/ui/manager/package.json +++ b/code/ui/manager/package.json @@ -53,7 +53,6 @@ "devDependencies": { "@fal-works/esbuild-plugin-global-externals": "^2.1.2", "@storybook/addon-designs": "^7.0.4", - "@storybook/addons": "workspace:*", "@storybook/channels": "workspace:*", "@storybook/client-logger": "workspace:*", "@storybook/components": "workspace:*", diff --git a/code/ui/manager/paths.js b/code/ui/manager/paths.js index 0ad1bef88de3..b259dd1b1881 100644 --- a/code/ui/manager/paths.js +++ b/code/ui/manager/paths.js @@ -6,7 +6,6 @@ const resolve = resolveFrom.bind(null, __dirname); // These paths need to be aliased in the manager webpack config to ensure that all // code running inside the manager uses the *same* version of react[-dom] that we use. module.exports = { - '@storybook/addons': dirname(resolve('@storybook/addons/package.json')), '@storybook/channels': dirname(resolve('@storybook/channels/package.json')), '@storybook/components': dirname(resolve('@storybook/components/package.json')), '@storybook/core-events': dirname(resolve('@storybook/core-events/package.json')), diff --git a/code/ui/manager/src/globals/exports.ts b/code/ui/manager/src/globals/exports.ts index 7e5acc1b6a50..63377c7ee561 100644 --- a/code/ui/manager/src/globals/exports.ts +++ b/code/ui/manager/src/globals/exports.ts @@ -445,38 +445,6 @@ export default { 'useTheme', 'withTheme', ], - '@storybook/api': [ - 'ActiveTabs', - 'Consumer', - 'ManagerContext', - 'Provider', - 'addons', - 'combineParameters', - 'controlOrMetaKey', - 'controlOrMetaSymbol', - 'eventMatchesShortcut', - 'eventToShortcut', - 'isMacLike', - 'isShortcutTaken', - 'keyToSymbol', - 'merge', - 'mockChannel', - 'optionOrAltSymbol', - 'shortcutMatchesShortcut', - 'shortcutToHumanString', - 'types', - 'useAddonState', - 'useArgTypes', - 'useArgs', - 'useChannel', - 'useGlobalTypes', - 'useGlobals', - 'useParameter', - 'useSharedState', - 'useStoryPrepared', - 'useStorybookApi', - 'useStorybookState', - ], '@storybook/manager-api': [ 'ActiveTabs', 'Consumer', @@ -509,6 +477,5 @@ export default { 'useStorybookApi', 'useStorybookState', ], - '@storybook/addons': ['addons', 'types', 'mockChannel'], '@storybook/client-logger': ['deprecate', 'logger', 'once', 'pretty'], } as const; diff --git a/code/ui/manager/src/globals/runtime.ts b/code/ui/manager/src/globals/runtime.ts index cad48006923f..9aea8399858e 100644 --- a/code/ui/manager/src/globals/runtime.ts +++ b/code/ui/manager/src/globals/runtime.ts @@ -22,13 +22,6 @@ export const values: Required> = { '@storybook/router': STORYBOOKROUTER, '@storybook/icons': STORYBOOKICONS, '@storybook/theming': STORYBOOKTHEMING, - '@storybook/api': STORYBOOKMANAGERAPI, // deprecated, remove in 8.0 '@storybook/manager-api': STORYBOOKMANAGERAPI, - // backwards compatibility - '@storybook/addons': { - addons: STORYBOOKMANAGERAPI.addons, - types: STORYBOOKMANAGERAPI.types, - mockChannel: STORYBOOKMANAGERAPI.mockChannel, - }, '@storybook/client-logger': STORYBOOKCLIENTLOGGER, }; diff --git a/code/ui/manager/src/globals/types.ts b/code/ui/manager/src/globals/types.ts index 3a380d11d875..dffedcc6c1c9 100644 --- a/code/ui/manager/src/globals/types.ts +++ b/code/ui/manager/src/globals/types.ts @@ -9,10 +9,8 @@ export enum Keys { '@storybook/core-events' = '__STORYBOOKCOREEVENTS__', '@storybook/router' = '__STORYBOOKROUTER__', '@storybook/theming' = '__STORYBOOKTHEMING__', - '@storybook/api' = '__STORYBOOKAPI__', // deprecated, remove in 8.0 '@storybook/icons' = '__STORYBOOKICONS__', '@storybook/manager-api' = '__STORYBOOKAPI__', - '@storybook/addons' = '__STORYBOOKADDONS__', '@storybook/client-logger' = '__STORYBOOKCLIENTLOGGER__', } diff --git a/code/yarn.lock b/code/yarn.lock index 5c9a7f355772..bc8e3f738037 100644 --- a/code/yarn.lock +++ b/code/yarn.lock @@ -5714,19 +5714,6 @@ __metadata: languageName: unknown linkType: soft -"@storybook/addons@workspace:*, @storybook/addons@workspace:deprecated/addons": - version: 0.0.0-use.local - resolution: "@storybook/addons@workspace:deprecated/addons" - dependencies: - "@storybook/manager-api": "workspace:*" - "@storybook/preview-api": "workspace:*" - "@storybook/types": "workspace:*" - peerDependencies: - react: ^16.8.0 || ^17.0.0 || ^18.0.0 - react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 - languageName: unknown - linkType: soft - "@storybook/angular@workspace:*, @storybook/angular@workspace:frameworks/angular": version: 0.0.0-use.local resolution: "@storybook/angular@workspace:frameworks/angular" @@ -5803,23 +5790,6 @@ __metadata: languageName: unknown linkType: soft -"@storybook/api@workspace:*, @storybook/api@workspace:deprecated/manager-api-shim": - version: 0.0.0-use.local - resolution: "@storybook/api@workspace:deprecated/manager-api-shim" - dependencies: - "@storybook/client-logger": "workspace:*" - "@storybook/manager-api": "workspace:*" - peerDependencies: - react: ^16.8.0 || ^17.0.0 || ^18.0.0 - react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 - peerDependenciesMeta: - react: - optional: true - react-dom: - optional: true - languageName: unknown - linkType: soft - "@storybook/babel-plugin-require-context-hook@npm:1.0.1": version: 1.0.1 resolution: "@storybook/babel-plugin-require-context-hook@npm:1.0.1" @@ -6007,26 +5977,6 @@ __metadata: languageName: unknown linkType: soft -"@storybook/channel-postmessage@workspace:*, @storybook/channel-postmessage@workspace:deprecated/channel-postmessage": - version: 0.0.0-use.local - resolution: "@storybook/channel-postmessage@workspace:deprecated/channel-postmessage" - dependencies: - "@storybook/channels": "workspace:*" - "@storybook/client-logger": "workspace:*" - typescript: ~5.2.2 - languageName: unknown - linkType: soft - -"@storybook/channel-websocket@workspace:*, @storybook/channel-websocket@workspace:deprecated/channel-websocket": - version: 0.0.0-use.local - resolution: "@storybook/channel-websocket@workspace:deprecated/channel-websocket" - dependencies: - "@storybook/channels": "workspace:*" - "@storybook/client-logger": "workspace:*" - typescript: ~5.2.2 - languageName: unknown - linkType: soft - "@storybook/channels@workspace:*, @storybook/channels@workspace:lib/channels": version: 0.0.0-use.local resolution: "@storybook/channels@workspace:lib/channels" @@ -6049,7 +5999,6 @@ __metadata: "@babel/preset-env": ^7.22.9 "@babel/types": ^7.22.5 "@ndelangen/get-tarball": ^3.0.7 - "@storybook/client-api": "workspace:*" "@storybook/codemod": "workspace:*" "@storybook/core-common": "workspace:*" "@storybook/core-events": "workspace:*" @@ -6100,15 +6049,6 @@ __metadata: languageName: unknown linkType: soft -"@storybook/client-api@workspace:*, @storybook/client-api@workspace:deprecated/client-api": - version: 0.0.0-use.local - resolution: "@storybook/client-api@workspace:deprecated/client-api" - dependencies: - "@storybook/client-logger": "workspace:*" - "@storybook/preview-api": "workspace:*" - languageName: unknown - linkType: soft - "@storybook/client-logger@npm:7.5.0": version: 7.5.0 resolution: "@storybook/client-logger@npm:7.5.0" @@ -6196,15 +6136,6 @@ __metadata: languageName: unknown linkType: soft -"@storybook/core-client@workspace:*, @storybook/core-client@workspace:deprecated/core-client": - version: 0.0.0-use.local - resolution: "@storybook/core-client@workspace:deprecated/core-client" - dependencies: - "@storybook/client-logger": "workspace:*" - "@storybook/preview-api": "workspace:*" - languageName: unknown - linkType: soft - "@storybook/core-common@workspace:*, @storybook/core-common@workspace:lib/core-common": version: 0.0.0-use.local resolution: "@storybook/core-common@workspace:lib/core-common" @@ -6475,13 +6406,10 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/html-vite@workspace:frameworks/html-vite" dependencies: - "@storybook/addons": "workspace:*" "@storybook/builder-vite": "workspace:*" - "@storybook/client-api": "workspace:*" "@storybook/core-server": "workspace:*" "@storybook/html": "workspace:*" "@storybook/node-logger": "workspace:*" - "@storybook/preview-web": "workspace:*" "@types/node": ^18.0.0 magic-string: ^0.30.0 typescript: ~5.2.2 @@ -6510,7 +6438,6 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/html@workspace:renderers/html" dependencies: - "@storybook/core-client": "workspace:*" "@storybook/docs-tools": "workspace:*" "@storybook/global": ^5.0.0 "@storybook/preview-api": "workspace:*" @@ -6621,7 +6548,6 @@ __metadata: dependencies: "@fal-works/esbuild-plugin-global-externals": ^2.1.2 "@storybook/addon-designs": ^7.0.4 - "@storybook/addons": "workspace:*" "@storybook/channels": "workspace:*" "@storybook/client-logger": "workspace:*" "@storybook/components": "workspace:*" @@ -6797,7 +6723,6 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/preact@workspace:renderers/preact" dependencies: - "@storybook/core-client": "workspace:*" "@storybook/global": ^5.0.0 "@storybook/preview-api": "workspace:*" "@storybook/types": "workspace:*" @@ -7021,15 +6946,6 @@ __metadata: languageName: unknown linkType: soft -"@storybook/preview-web@workspace:*, @storybook/preview-web@workspace:deprecated/preview-web": - version: 0.0.0-use.local - resolution: "@storybook/preview-web@workspace:deprecated/preview-web" - dependencies: - "@storybook/client-logger": "workspace:*" - "@storybook/preview-api": "workspace:*" - languageName: unknown - linkType: soft - "@storybook/preview@workspace:*, @storybook/preview@workspace:lib/preview": version: 0.0.0-use.local resolution: "@storybook/preview@workspace:lib/preview" @@ -7123,7 +7039,6 @@ __metadata: dependencies: "@babel/core": ^7.22.9 "@storybook/client-logger": "workspace:*" - "@storybook/core-client": "workspace:*" "@storybook/docs-tools": "workspace:*" "@storybook/global": ^5.0.0 "@storybook/preview-api": "workspace:*" @@ -7186,24 +7101,18 @@ __metadata: "@storybook/addon-storysource": "workspace:*" "@storybook/addon-toolbars": "workspace:*" "@storybook/addon-viewport": "workspace:*" - "@storybook/addons": "workspace:*" "@storybook/angular": "workspace:*" - "@storybook/api": "workspace:*" "@storybook/babel-plugin-require-context-hook": 1.0.1 "@storybook/bench": next "@storybook/blocks": "workspace:*" "@storybook/builder-manager": "workspace:*" "@storybook/builder-vite": "workspace:*" "@storybook/builder-webpack5": "workspace:*" - "@storybook/channel-postmessage": "workspace:*" - "@storybook/channel-websocket": "workspace:*" "@storybook/channels": "workspace:*" "@storybook/cli": "workspace:*" - "@storybook/client-api": "workspace:*" "@storybook/client-logger": "workspace:*" "@storybook/codemod": "workspace:*" "@storybook/components": "workspace:*" - "@storybook/core-client": "workspace:*" "@storybook/core-common": "workspace:*" "@storybook/core-events": "workspace:*" "@storybook/core-server": "workspace:*" @@ -7240,7 +7149,6 @@ __metadata: "@storybook/preset-web-components-webpack": "workspace:*" "@storybook/preview": "workspace:*" "@storybook/preview-api": "workspace:*" - "@storybook/preview-web": "workspace:*" "@storybook/react": "workspace:*" "@storybook/react-vite": "workspace:*" "@storybook/react-webpack5": "workspace:*" @@ -7248,7 +7156,6 @@ __metadata: "@storybook/server": "workspace:*" "@storybook/server-webpack5": "workspace:*" "@storybook/source-loader": "workspace:*" - "@storybook/store": "workspace:*" "@storybook/svelte": "workspace:*" "@storybook/svelte-webpack5": "workspace:*" "@storybook/telemetry": "workspace:*" @@ -7388,7 +7295,6 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/server@workspace:renderers/server" dependencies: - "@storybook/core-client": "workspace:*" "@storybook/csf": ^0.1.0 "@storybook/csf-tools": "workspace:*" "@storybook/global": ^5.0.0 @@ -7419,15 +7325,6 @@ __metadata: languageName: unknown linkType: soft -"@storybook/store@workspace:*, @storybook/store@workspace:deprecated/store": - version: 0.0.0-use.local - resolution: "@storybook/store@workspace:deprecated/store" - dependencies: - "@storybook/client-logger": "workspace:*" - "@storybook/preview-api": "workspace:*" - languageName: unknown - linkType: soft - "@storybook/svelte-vite@workspace:*, @storybook/svelte-vite@workspace:frameworks/svelte-vite": version: 0.0.0-use.local resolution: "@storybook/svelte-vite@workspace:frameworks/svelte-vite" @@ -7475,7 +7372,6 @@ __metadata: resolution: "@storybook/svelte@workspace:renderers/svelte" dependencies: "@storybook/client-logger": "workspace:*" - "@storybook/core-client": "workspace:*" "@storybook/core-events": "workspace:*" "@storybook/docs-tools": "workspace:*" "@storybook/global": ^5.0.0 @@ -7685,7 +7581,6 @@ __metadata: resolution: "@storybook/vue3@workspace:renderers/vue3" dependencies: "@digitak/esrun": ^3.2.2 - "@storybook/core-client": "workspace:*" "@storybook/docs-tools": "workspace:*" "@storybook/global": ^5.0.0 "@storybook/preview-api": "workspace:*" @@ -7711,7 +7606,6 @@ __metadata: resolution: "@storybook/vue@workspace:renderers/vue" dependencies: "@storybook/client-logger": "workspace:*" - "@storybook/core-client": "workspace:*" "@storybook/docs-tools": "workspace:*" "@storybook/global": ^5.0.0 "@storybook/preview-api": "workspace:*" @@ -7773,7 +7667,6 @@ __metadata: resolution: "@storybook/web-components@workspace:renderers/web-components" dependencies: "@storybook/client-logger": "workspace:*" - "@storybook/core-client": "workspace:*" "@storybook/docs-tools": "workspace:*" "@storybook/global": ^5.0.0 "@storybook/manager-api": "workspace:*" diff --git a/docs/snippets/common/storybook-builder-api-preview-exports.ts.mdx b/docs/snippets/common/storybook-builder-api-preview-exports.ts.mdx index e05724b7db58..87d466cf1002 100644 --- a/docs/snippets/common/storybook-builder-api-preview-exports.ts.mdx +++ b/docs/snippets/common/storybook-builder-api-preview-exports.ts.mdx @@ -31,7 +31,7 @@ export async function generateIframeScriptCode(options: ExtendedOptions) { addArgTypesEnhancer, addArgsEnhancer, setGlobalRender - } from '@storybook/client-api'; + } from '@storybook/preview-api'; import { logger } from '@storybook/client-logger'; ${absoluteFilesToImport(configEntries, 'config')} import * as preview from '${virtualPreviewFile}'; diff --git a/test-storybooks/ember-cli/package.json b/test-storybooks/ember-cli/package.json index 8ceca49e95bc..030ade6a58e2 100644 --- a/test-storybooks/ember-cli/package.json +++ b/test-storybooks/ember-cli/package.json @@ -26,7 +26,6 @@ "@storybook/addon-storysource": "portal:../../code/addons/storysource", "@storybook/addon-toolbars": "portal:../../code/addons/toolbars", "@storybook/addon-viewport": "portal:../../code/addons/viewport", - "@storybook/addons": "portal:../../code/deprecated/addons", "@storybook/angular": "portal:../../code/frameworks/angular", "@storybook/blocks": "portal:../../code/lib/blocks", "@storybook/builder-manager": "portal:../../code/builders/builder-manager", @@ -34,11 +33,9 @@ "@storybook/builder-webpack5": "portal:../../code/builders/builder-webpack5", "@storybook/channels": "portal:../../code/lib/channels", "@storybook/cli": "portal:../../code/lib/cli", - "@storybook/client-api": "portal:../../code/deprecated/client-api", "@storybook/client-logger": "portal:../../code/lib/client-logger", "@storybook/codemod": "portal:../../code/lib/codemod", "@storybook/components": "portal:../../code/lib/components", - "@storybook/core-client": "portal:../../code/deprecated/core-client", "@storybook/core-common": "portal:../../code/lib/core-common", "@storybook/core-events": "portal:../../code/lib/core-events", "@storybook/core-server": "portal:../../code/lib/core-server", @@ -63,7 +60,6 @@ "@storybook/preset-vue-webpack": "portal:../../code/presets/vue-webpack", "@storybook/preset-vue3-webpack": "portal:../../code/presets/vue3-webpack", "@storybook/preset-web-components-webpack": "portal:../../code/presets/web-components-webpack", - "@storybook/preview-web": "portal:../../code/deprecated/preview-web", "@storybook/react": "portal:../../code/renderers/react", "@storybook/react-vite": "portal:../../code/frameworks/react-vite", "@storybook/react-webpack5": "portal:../../code/frameworks/react-webpack5", @@ -71,7 +67,6 @@ "@storybook/server": "portal:../../code/renderers/server", "@storybook/server-webpack5": "portal:../../code/frameworks/server-webpack5", "@storybook/source-loader": "portal:../../code/lib/source-loader", - "@storybook/store": "portal:../../code/deprecated/store", "@storybook/svelte": "portal:../../code/renderers/svelte", "@storybook/svelte-vite": "portal:../../code/frameworks/svelte-vite", "@storybook/svelte-webpack5": "portal:../../code/frameworks/svelte-webpack5", @@ -105,7 +100,6 @@ "@storybook/addon-links": "7.2.0-alpha.0", "@storybook/addon-storysource": "7.2.0-alpha.0", "@storybook/addon-viewport": "7.2.0-alpha.0", - "@storybook/addons": "7.2.0-alpha.0", "@storybook/ember": "7.2.0-alpha.0", "@storybook/ember-cli-storybook": "^0.2.1", "@storybook/source-loader": "7.2.0-alpha.0", diff --git a/test-storybooks/external-docs/package.json b/test-storybooks/external-docs/package.json index 0de9886abe35..705a09fab988 100644 --- a/test-storybooks/external-docs/package.json +++ b/test-storybooks/external-docs/package.json @@ -26,7 +26,6 @@ "@storybook/addon-storysource": "portal:../../code/addons/storysource", "@storybook/addon-toolbars": "portal:../../code/addons/toolbars", "@storybook/addon-viewport": "portal:../../code/addons/viewport", - "@storybook/addons": "portal:../../code/deprecated/addons", "@storybook/angular": "portal:../../code/frameworks/angular", "@storybook/blocks": "portal:../../code/ui/blocks", "@storybook/builder-manager": "portal:../../code/builders/builder-manager", @@ -34,11 +33,9 @@ "@storybook/builder-webpack5": "portal:../../code/builders/builder-webpack5", "@storybook/channels": "portal:../../code/lib/channels", "@storybook/cli": "portal:../../code/lib/cli", - "@storybook/client-api": "portal:../../code/deprecated/client-api", "@storybook/client-logger": "portal:../../code/lib/client-logger", "@storybook/codemod": "portal:../../code/lib/codemod", "@storybook/components": "portal:../../code/ui/components", - "@storybook/core-client": "portal:../../code/deprecated/core-client", "@storybook/core-common": "portal:../../code/lib/core-common", "@storybook/core-events": "portal:../../code/lib/core-events", "@storybook/core-server": "portal:../../code/lib/core-server", @@ -72,7 +69,6 @@ "@storybook/server": "portal:../../code/renderers/server", "@storybook/server-webpack5": "portal:../../code/frameworks/server-webpack5", "@storybook/source-loader": "portal:../../code/lib/source-loader", - "@storybook/store": "portal:../../code/deprecated/store", "@storybook/svelte": "portal:../../code/renderers/svelte", "@storybook/svelte-vite": "portal:../../code/frameworks/svelte-vite", "@storybook/svelte-webpack5": "portal:../../code/frameworks/svelte-webpack5", @@ -95,7 +91,6 @@ "@storybook/addon-essentials": "7.2.0-alpha.0", "@storybook/blocks": "7.2.0-alpha.0", "@storybook/components": "7.2.0-alpha.0", - "@storybook/preview-web": "7.2.0-alpha.0", "@storybook/react": "7.2.0-alpha.0", "@storybook/react-webpack5": "7.2.0-alpha.0", "@storybook/theming": "7.2.0-alpha.0", diff --git a/test-storybooks/server-kitchen-sink/package.json b/test-storybooks/server-kitchen-sink/package.json index 4987d2b8c86a..beffa87a6fda 100644 --- a/test-storybooks/server-kitchen-sink/package.json +++ b/test-storybooks/server-kitchen-sink/package.json @@ -29,7 +29,6 @@ "@storybook/addon-storysource": "portal:../../code/addons/storysource", "@storybook/addon-toolbars": "portal:../../code/addons/toolbars", "@storybook/addon-viewport": "portal:../../code/addons/viewport", - "@storybook/addons": "portal:../../code/deprecated/addons", "@storybook/angular": "portal:../../code/frameworks/angular", "@storybook/blocks": "portal:../../code/lib/blocks", "@storybook/builder-manager": "portal:../../code/builders/builder-manager", @@ -37,11 +36,9 @@ "@storybook/builder-webpack5": "portal:../../code/builders/builder-webpack5", "@storybook/channels": "portal:../../code/lib/channels", "@storybook/cli": "portal:../../code/lib/cli", - "@storybook/client-api": "portal:../../code/deprecated/client-api", "@storybook/client-logger": "portal:../../code/lib/client-logger", "@storybook/codemod": "portal:../../code/lib/codemod", "@storybook/components": "portal:../../code/lib/components", - "@storybook/core-client": "portal:../../code/deprecated/core-client", "@storybook/core-common": "portal:../../code/lib/core-common", "@storybook/core-events": "portal:../../code/lib/core-events", "@storybook/core-server": "portal:../../code/lib/core-server", @@ -66,7 +63,6 @@ "@storybook/preset-vue-webpack": "portal:../../code/presets/vue-webpack", "@storybook/preset-vue3-webpack": "portal:../../code/presets/vue3-webpack", "@storybook/preset-web-components-webpack": "portal:../../code/presets/web-components-webpack", - "@storybook/preview-web": "portal:../../code/deprecated/preview-web", "@storybook/react": "portal:../../code/renderers/react", "@storybook/react-vite": "portal:../../code/frameworks/react-vite", "@storybook/react-webpack5": "portal:../../code/frameworks/react-webpack5", @@ -74,7 +70,6 @@ "@storybook/server": "portal:../../code/renderers/server", "@storybook/server-webpack5": "portal:../../code/frameworks/server-webpack5", "@storybook/source-loader": "portal:../../code/lib/source-loader", - "@storybook/store": "portal:../../code/deprecated/store", "@storybook/svelte": "portal:../../code/renderers/svelte", "@storybook/svelte-vite": "portal:../../code/frameworks/svelte-vite", "@storybook/svelte-webpack5": "portal:../../code/frameworks/svelte-webpack5", diff --git a/test-storybooks/standalone-preview/package.json b/test-storybooks/standalone-preview/package.json index 725b0002ab1a..00c01f10f997 100644 --- a/test-storybooks/standalone-preview/package.json +++ b/test-storybooks/standalone-preview/package.json @@ -22,7 +22,6 @@ "@storybook/addon-storysource": "portal:../../code/addons/storysource", "@storybook/addon-toolbars": "portal:../../code/addons/toolbars", "@storybook/addon-viewport": "portal:../../code/addons/viewport", - "@storybook/addons": "portal:../../code/deprecated/addons", "@storybook/angular": "portal:../../code/frameworks/angular", "@storybook/blocks": "portal:../../code/lib/blocks", "@storybook/builder-manager": "portal:../../code/builders/builder-manager", @@ -30,11 +29,9 @@ "@storybook/builder-webpack5": "portal:../../code/builders/builder-webpack5", "@storybook/channels": "portal:../../code/lib/channels", "@storybook/cli": "portal:../../code/lib/cli", - "@storybook/client-api": "portal:../../code/deprecated/client-api", "@storybook/client-logger": "portal:../../code/lib/client-logger", "@storybook/codemod": "portal:../../code/lib/codemod", "@storybook/components": "portal:../../code/lib/components", - "@storybook/core-client": "portal:../../code/deprecated/core-client", "@storybook/core-common": "portal:../../code/lib/core-common", "@storybook/core-events": "portal:../../code/lib/core-events", "@storybook/core-server": "portal:../../code/lib/core-server", @@ -59,7 +56,6 @@ "@storybook/preset-vue-webpack": "portal:../../code/presets/vue-webpack", "@storybook/preset-vue3-webpack": "portal:../../code/presets/vue3-webpack", "@storybook/preset-web-components-webpack": "portal:../../code/presets/web-components-webpack", - "@storybook/preview-web": "portal:../../code/deprecated/preview-web", "@storybook/react": "portal:../../code/renderers/react", "@storybook/react-vite": "portal:../../code/frameworks/react-vite", "@storybook/react-webpack5": "portal:../../code/frameworks/react-webpack5", @@ -67,7 +63,6 @@ "@storybook/server": "portal:../../code/renderers/server", "@storybook/server-webpack5": "portal:../../code/frameworks/server-webpack5", "@storybook/source-loader": "portal:../../code/lib/source-loader", - "@storybook/store": "portal:../../code/deprecated/store", "@storybook/svelte": "portal:../../code/renderers/svelte", "@storybook/svelte-vite": "portal:../../code/frameworks/svelte-vite", "@storybook/svelte-webpack5": "portal:../../code/frameworks/svelte-webpack5",