diff --git a/code/frameworks/react-vite/package.json b/code/frameworks/react-vite/package.json index 4bea1cbcb3e9..bf3ed6153b21 100644 --- a/code/frameworks/react-vite/package.json +++ b/code/frameworks/react-vite/package.json @@ -54,9 +54,6 @@ "@joshwooding/vite-plugin-react-docgen-typescript": "^0.0.5", "@rollup/pluginutils": "^4.2.0", "@storybook/builder-vite": "7.0.0-alpha.54", - "@storybook/channel-postmessage": "7.0.0-alpha.54", - "@storybook/channel-websocket": "7.0.0-alpha.54", - "@storybook/preview-api": "7.0.0-alpha.54", "@storybook/react": "7.0.0-alpha.54", "@vitejs/plugin-react": "^2.0.0", "ast-types": "^0.14.2", diff --git a/code/frameworks/react-vite/src/index.ts b/code/frameworks/react-vite/src/index.ts index 8b0346b167de..d3ded0cdbbb9 100644 --- a/code/frameworks/react-vite/src/index.ts +++ b/code/frameworks/react-vite/src/index.ts @@ -1,11 +1 @@ -// TODO: figure out if any of this is required -// possibly make it not required, framework should never be imported directly, except for types in config files - -export { createChannel as createPostMessageChannel } from '@storybook/channel-postmessage'; -export { createChannel as createWebSocketChannel } from '@storybook/channel-websocket'; - -export { addons } from '@storybook/preview-api'; -export { composeConfigs, PreviewWeb } from '@storybook/preview-api'; -export { ClientApi } from '@storybook/preview-api'; - export type { StorybookConfig } from '@storybook/builder-vite'; diff --git a/code/frameworks/svelte-vite/package.json b/code/frameworks/svelte-vite/package.json index 4e980a220dca..f5141d28baee 100644 --- a/code/frameworks/svelte-vite/package.json +++ b/code/frameworks/svelte-vite/package.json @@ -53,10 +53,7 @@ "dependencies": { "@storybook/addon-svelte-csf": "^2.0.0", "@storybook/builder-vite": "7.0.0-alpha.54", - "@storybook/channel-postmessage": "7.0.0-alpha.54", - "@storybook/channel-websocket": "7.0.0-alpha.54", "@storybook/node-logger": "7.0.0-alpha.54", - "@storybook/preview-api": "7.0.0-alpha.54", "@storybook/svelte": "7.0.0-alpha.54", "@sveltejs/vite-plugin-svelte": "^1.0.0", "magic-string": "^0.26.1", diff --git a/code/frameworks/svelte-vite/src/index.ts b/code/frameworks/svelte-vite/src/index.ts index 1aa9b0bb063e..d3ded0cdbbb9 100644 --- a/code/frameworks/svelte-vite/src/index.ts +++ b/code/frameworks/svelte-vite/src/index.ts @@ -1,8 +1 @@ -export { createChannel as createPostMessageChannel } from '@storybook/channel-postmessage'; -export { createChannel as createWebSocketChannel } from '@storybook/channel-websocket'; - -export { addons } from '@storybook/preview-api'; -export { composeConfigs, PreviewWeb } from '@storybook/preview-api'; -export { ClientApi } from '@storybook/preview-api'; - export type { StorybookConfig } from '@storybook/builder-vite'; diff --git a/code/frameworks/vue-vite/package.json b/code/frameworks/vue-vite/package.json index a0f8202e61e1..cd79bffbe48a 100644 --- a/code/frameworks/vue-vite/package.json +++ b/code/frameworks/vue-vite/package.json @@ -51,11 +51,8 @@ }, "dependencies": { "@storybook/builder-vite": "7.0.0-alpha.54", - "@storybook/channel-postmessage": "7.0.0-alpha.54", - "@storybook/channel-websocket": "7.0.0-alpha.54", "@storybook/core-common": "7.0.0-alpha.54", "@storybook/core-server": "7.0.0-alpha.54", - "@storybook/preview-api": "7.0.0-alpha.54", "@storybook/vue": "7.0.0-alpha.54", "magic-string": "^0.26.1", "vite": "^3.1.3", diff --git a/code/frameworks/vue-vite/src/index.ts b/code/frameworks/vue-vite/src/index.ts index 1aa9b0bb063e..d3ded0cdbbb9 100644 --- a/code/frameworks/vue-vite/src/index.ts +++ b/code/frameworks/vue-vite/src/index.ts @@ -1,8 +1 @@ -export { createChannel as createPostMessageChannel } from '@storybook/channel-postmessage'; -export { createChannel as createWebSocketChannel } from '@storybook/channel-websocket'; - -export { addons } from '@storybook/preview-api'; -export { composeConfigs, PreviewWeb } from '@storybook/preview-api'; -export { ClientApi } from '@storybook/preview-api'; - export type { StorybookConfig } from '@storybook/builder-vite'; diff --git a/code/frameworks/vue3-vite/package.json b/code/frameworks/vue3-vite/package.json index 3339785d6dd3..2c2b7faa229e 100644 --- a/code/frameworks/vue3-vite/package.json +++ b/code/frameworks/vue3-vite/package.json @@ -52,10 +52,7 @@ }, "dependencies": { "@storybook/builder-vite": "7.0.0-alpha.54", - "@storybook/channel-postmessage": "7.0.0-alpha.54", - "@storybook/channel-websocket": "7.0.0-alpha.54", "@storybook/core-server": "7.0.0-alpha.54", - "@storybook/preview-api": "7.0.0-alpha.54", "@storybook/vue3": "7.0.0-alpha.54", "@vitejs/plugin-vue": "^3.0.0", "magic-string": "^0.26.1", diff --git a/code/frameworks/vue3-vite/src/index.ts b/code/frameworks/vue3-vite/src/index.ts index 1aa9b0bb063e..d3ded0cdbbb9 100644 --- a/code/frameworks/vue3-vite/src/index.ts +++ b/code/frameworks/vue3-vite/src/index.ts @@ -1,8 +1 @@ -export { createChannel as createPostMessageChannel } from '@storybook/channel-postmessage'; -export { createChannel as createWebSocketChannel } from '@storybook/channel-websocket'; - -export { addons } from '@storybook/preview-api'; -export { composeConfigs, PreviewWeb } from '@storybook/preview-api'; -export { ClientApi } from '@storybook/preview-api'; - export type { StorybookConfig } from '@storybook/builder-vite'; diff --git a/code/frameworks/web-components-vite/package.json b/code/frameworks/web-components-vite/package.json index 893a25fb134e..0e37fa66f14b 100644 --- a/code/frameworks/web-components-vite/package.json +++ b/code/frameworks/web-components-vite/package.json @@ -52,11 +52,8 @@ }, "dependencies": { "@storybook/builder-vite": "7.0.0-alpha.54", - "@storybook/channel-postmessage": "7.0.0-alpha.54", - "@storybook/channel-websocket": "7.0.0-alpha.54", "@storybook/core-server": "7.0.0-alpha.54", "@storybook/node-logger": "7.0.0-alpha.54", - "@storybook/preview-api": "7.0.0-alpha.54", "@storybook/web-components": "7.0.0-alpha.54", "magic-string": "^0.26.1", "vite": "3" diff --git a/code/frameworks/web-components-vite/src/index.ts b/code/frameworks/web-components-vite/src/index.ts index 1aa9b0bb063e..d3ded0cdbbb9 100644 --- a/code/frameworks/web-components-vite/src/index.ts +++ b/code/frameworks/web-components-vite/src/index.ts @@ -1,8 +1 @@ -export { createChannel as createPostMessageChannel } from '@storybook/channel-postmessage'; -export { createChannel as createWebSocketChannel } from '@storybook/channel-websocket'; - -export { addons } from '@storybook/preview-api'; -export { composeConfigs, PreviewWeb } from '@storybook/preview-api'; -export { ClientApi } from '@storybook/preview-api'; - export type { StorybookConfig } from '@storybook/builder-vite'; diff --git a/code/lib/builder-vite/input/iframe.html b/code/lib/builder-vite/input/iframe.html index c26846fa2b73..5e522dda6c44 100644 --- a/code/lib/builder-vite/input/iframe.html +++ b/code/lib/builder-vite/input/iframe.html @@ -25,11 +25,7 @@
- + +