From e1f59e98a3866c0420e4550364d60bad7c8f6da1 Mon Sep 17 00:00:00 2001 From: Gert Hengeveld Date: Fri, 13 Dec 2024 16:36:30 +0100 Subject: [PATCH 01/18] Clear coverageSummary when disabling the coverage feature --- code/addons/test/src/manager.tsx | 116 +++++++++++++++++-------------- 1 file changed, 63 insertions(+), 53 deletions(-) diff --git a/code/addons/test/src/manager.tsx b/code/addons/test/src/manager.tsx index 4db0c5defcbd..dbc8f18fa1de 100644 --- a/code/addons/test/src/manager.tsx +++ b/code/addons/test/src/manager.tsx @@ -73,64 +73,74 @@ addons.register(ADDON_ID, (api) => { }, stateUpdater: (state, update) => { - if (!update.details?.testResults) { - return; + const updated = { + ...state, + ...update, + details: { ...state.details, ...update.details }, + }; + + if (update.config?.coverage === false) { + delete updated.details.coverageSummary; } - (async () => { - await api.experimental_updateStatus( - TEST_PROVIDER_ID, - Object.fromEntries( - update.details.testResults.flatMap((testResult) => - testResult.results - .filter(({ storyId }) => storyId) - .map(({ storyId, status, testRunId, ...rest }) => [ - storyId, - { - title: 'Component tests', - status: statusMap[status], - description: - 'failureMessages' in rest && rest.failureMessages - ? rest.failureMessages.join('\n') - : '', - data: { testRunId }, - onClick: openTestsPanel, - sidebarContextMenu: false, - } satisfies API_StatusObject, - ]) + if (update.details?.testResults) { + (async () => { + await api.experimental_updateStatus( + TEST_PROVIDER_ID, + Object.fromEntries( + update.details.testResults.flatMap((testResult) => + testResult.results + .filter(({ storyId }) => storyId) + .map(({ storyId, status, testRunId, ...rest }) => [ + storyId, + { + title: 'Component tests', + status: statusMap[status], + description: + 'failureMessages' in rest && rest.failureMessages + ? rest.failureMessages.join('\n') + : '', + data: { testRunId }, + onClick: openTestsPanel, + sidebarContextMenu: false, + } satisfies API_StatusObject, + ]) + ) ) - ) - ); + ); - await api.experimental_updateStatus( - 'storybook/addon-a11y/test-provider', - Object.fromEntries( - update.details.testResults.flatMap((testResult) => - testResult.results - .filter(({ storyId }) => storyId) - .map(({ storyId, testRunId, reports }) => { - const a11yReport = reports.find((r: any) => r.type === 'a11y'); - return [ - storyId, - a11yReport - ? ({ - title: 'Accessibility tests', - description: '', - status: statusMap[a11yReport.status], - data: { testRunId }, - onClick: () => { - api.setSelectedPanel('storybook/a11y/panel'); - api.togglePanel(true); - }, - sidebarContextMenu: false, - } satisfies API_StatusObject) - : null, - ]; - }) + await api.experimental_updateStatus( + 'storybook/addon-a11y/test-provider', + Object.fromEntries( + update.details.testResults.flatMap((testResult) => + testResult.results + .filter(({ storyId }) => storyId) + .map(({ storyId, testRunId, reports }) => { + const a11yReport = reports.find((r: any) => r.type === 'a11y'); + return [ + storyId, + a11yReport + ? ({ + title: 'Accessibility tests', + description: '', + status: statusMap[a11yReport.status], + data: { testRunId }, + onClick: () => { + api.setSelectedPanel('storybook/a11y/panel'); + api.togglePanel(true); + }, + sidebarContextMenu: false, + } satisfies API_StatusObject) + : null, + ]; + }) + ) ) - ) - ); - })(); + ); + })(); + } + + return updated; }, } as Addon_TestProviderType); } From 51ab99b600e892f715ee450b61294940a69f3c45 Mon Sep 17 00:00:00 2001 From: Yann Braga Date: Fri, 13 Dec 2024 12:20:20 +0100 Subject: [PATCH 02/18] Build: Add text suggestions for incorrect task names --- scripts/task.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/scripts/task.ts b/scripts/task.ts index d35e1350d653..327fe3b5641b 100644 --- a/scripts/task.ts +++ b/scripts/task.ts @@ -34,6 +34,7 @@ import { testRunnerBuild } from './tasks/test-runner-build'; import { testRunnerDev } from './tasks/test-runner-dev'; import { vitestTests } from './tasks/vitest-test'; import { CODE_DIRECTORY, JUNIT_DIRECTORY, SANDBOX_DIRECTORY } from './utils/constants'; +import { findMostMatchText } from './utils/diff'; import type { OptionValues } from './utils/options'; import { createOptions, getCommand, getOptionsOrPrompt } from './utils/options'; @@ -351,6 +352,19 @@ async function run() { const { junit, startFrom, ...optionValues } = allOptionValues; const taskKey = optionValues.task; + if (!(taskKey in tasks)) { + const matchText = findMostMatchText(Object.keys(tasks), taskKey); + + if (matchText) { + console.log( + `${picocolors.red('Error')}: ${picocolors.cyan( + taskKey + )} is not a valid task name, Did you mean ${picocolors.cyan(matchText)}?` + ); + } + process.exit(1); + } + const finalTask = tasks[taskKey]; const { template: templateKey } = optionValues; const template = TEMPLATES[templateKey]; From 77f94d950fe458ebd72a4e40f436aafd5c0caa2e Mon Sep 17 00:00:00 2001 From: Kyle Gach Date: Fri, 13 Dec 2024 06:48:33 -0700 Subject: [PATCH 03/18] Update exclude details --- docs/writing-tests/test-coverage.mdx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/writing-tests/test-coverage.mdx b/docs/writing-tests/test-coverage.mdx index bb150ef1af56..4f0dd7700a1c 100644 --- a/docs/writing-tests/test-coverage.mdx +++ b/docs/writing-tests/test-coverage.mdx @@ -192,7 +192,7 @@ When calculating coverage in the Storybook UI, the following options are always #### Excluding stories from the coverage report -Until Vitest 2.2.0 is released, the generated coverage report will include the stories files themselves. This is misleading and they should be excluded. To do this, you can add the following to your Vitest config: +Until Vitest 3.0.0 is released, the generated coverage report will include the stories files themselves and output from your built Storybook application. This is misleading and they should be excluded. To do this, you can add the following to your Vitest config: ```ts title="vitest.config.ts" import { coverageConfigDefaults, defineConfig } from 'vitest/config'; @@ -205,7 +205,9 @@ export default defineConfig({ exclude: [ ...coverageConfigDefaults.exclude, // This pattern must align with the `stories` property of your `.storybook/main.ts` config - '**/*.stories.*', '**/*.story.*', '**/stories.*', '**/story.*' + '**/*.stories.*', + // This pattern must align with the output directory of `storybook build` + 'storybook-static/**', ], } } From 39259b37da1389a0fea7ab2051c4fcb4f7d4b9dd Mon Sep 17 00:00:00 2001 From: Kyle Gach Date: Fri, 13 Dec 2024 09:05:29 -0700 Subject: [PATCH 04/18] Remove mention of Vitest prompting of coverage support pkgs --- docs/writing-tests/test-coverage.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/writing-tests/test-coverage.mdx b/docs/writing-tests/test-coverage.mdx index 4f0dd7700a1c..1b62f752dfbd 100644 --- a/docs/writing-tests/test-coverage.mdx +++ b/docs/writing-tests/test-coverage.mdx @@ -25,7 +25,7 @@ Coverage is included in the Test addon and, when enabled, will be calculated whe ![Screenshot of test module, expanded, showing coverage toggle](../_assets/writing-tests/addon-test-module-edit-coverage.png) -Before coverage can be calculated, you may be prompted to install a support package corresponding to your [coverage provider](#coverage-provider): +Before coverage can be calculated, you may need to install a support package corresponding to your [coverage provider](#coverage-provider): {/* prettier-ignore-start */} From 25545c286bc9db281110b68b79d2318456e8f366 Mon Sep 17 00:00:00 2001 From: storybook-bot <32066757+storybook-bot@users.noreply.github.com> Date: Fri, 13 Dec 2024 13:42:04 +0000 Subject: [PATCH 05/18] Write changelog for 8.5.0-alpha.22 [skip ci] --- CHANGELOG.prerelease.md | 16 ++++++++++++++++ code/package.json | 3 ++- docs/versions/next.json | 2 +- 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.prerelease.md b/CHANGELOG.prerelease.md index c10fb3b99635..d83e71323f92 100644 --- a/CHANGELOG.prerelease.md +++ b/CHANGELOG.prerelease.md @@ -1,3 +1,19 @@ +## 8.5.0-alpha.22 + +- Addon Docs: Dynamically import rehype - [#29544](https://github.com/storybookjs/storybook/pull/29544), thanks @valentinpalkovic! +- Addon Test: Fix duplicate `test.include` patterns - [#30029](https://github.com/storybookjs/storybook/pull/30029), thanks @JReinhold! +- Addon Test: Fix environment variable for Vitest Storybook integration - [#30054](https://github.com/storybookjs/storybook/pull/30054), thanks @valentinpalkovic! +- Addon Test: Use local storybook binary instead - [#30021](https://github.com/storybookjs/storybook/pull/30021), thanks @kasperpeulen! +- Addon Test: Wait for 2 seconds before showing result mismatch warning - [#30002](https://github.com/storybookjs/storybook/pull/30002), thanks @ghengeveld! +- Angular: Support statsJson in angular schemas - [#29233](https://github.com/storybookjs/storybook/pull/29233), thanks @yannbf! +- Core: Fix `scrollIntoView` behavior and reimplement testing module time rendering - [#30044](https://github.com/storybookjs/storybook/pull/30044), thanks @ghengeveld! +- Docs: Add code snippet to addons panel - [#29253](https://github.com/storybookjs/storybook/pull/29253), thanks @larsrickert! +- Next.js: Fix webpack fsCache not working - [#29654](https://github.com/storybookjs/storybook/pull/29654), thanks @sentience! +- Nextjs-Vite: Add TS docgen support - [#29824](https://github.com/storybookjs/storybook/pull/29824), thanks @yannbf! +- Nextjs-Vite: Fix docgen types in main config - [#30042](https://github.com/storybookjs/storybook/pull/30042), thanks @yannbf! +- React: Fix RSC compatibility with addon-themes and hooks - [#26243](https://github.com/storybookjs/storybook/pull/26243), thanks @shilman! +- UI: Fix controls and parameters on tag-filtered stories - [#30038](https://github.com/storybookjs/storybook/pull/30038), thanks @shilman! + ## 8.5.0-alpha.21 - Addon A11y: Add typesVersions support for TypeScript definitions in a11y package - [#30005](https://github.com/storybookjs/storybook/pull/30005), thanks @valentinpalkovic! diff --git a/code/package.json b/code/package.json index 50f1604dc814..6a7cb034c37f 100644 --- a/code/package.json +++ b/code/package.json @@ -294,5 +294,6 @@ "Dependency Upgrades" ] ] - } + }, + "deferredNextVersion": "8.5.0-alpha.22" } diff --git a/docs/versions/next.json b/docs/versions/next.json index c38c2352087f..8ba437344971 100644 --- a/docs/versions/next.json +++ b/docs/versions/next.json @@ -1 +1 @@ -{"version":"8.5.0-alpha.21","info":{"plain":"- Addon A11y: Add typesVersions support for TypeScript definitions in a11y package - [#30005](https://github.com/storybookjs/storybook/pull/30005), thanks @valentinpalkovic!\n- Addon A11y: Refactor environment variable handling for Vitest integration - [#30022](https://github.com/storybookjs/storybook/pull/30022), thanks @valentinpalkovic!\n- Addon A11y: Run the a11y automigration on postInstall - [#30004](https://github.com/storybookjs/storybook/pull/30004), thanks @kasperpeulen!\n- Addon A11y: Update accessibility status handling in TestProviderRender - [#30027](https://github.com/storybookjs/storybook/pull/30027), thanks @valentinpalkovic!\n- Addon Onboarding: Prebundle react-confetti - [#29996](https://github.com/storybookjs/storybook/pull/29996), thanks @yannbf!\n- Addon Test: Correctly stop Storybook when Vitest closes - [#30012](https://github.com/storybookjs/storybook/pull/30012), thanks @JReinhold!\n- Addon Test: Show sub test provider toggle state in main testing module - [#30019](https://github.com/storybookjs/storybook/pull/30019), thanks @ghengeveld!\n- Addon Test: Wrap sub-paths exported with `require.resolve` - [#30026](https://github.com/storybookjs/storybook/pull/30026), thanks @ndelangen!\n- Core: Fix bundling of React - [#30003](https://github.com/storybookjs/storybook/pull/30003), thanks @yannbf!"}} +{"version":"8.5.0-alpha.22","info":{"plain":"- Addon Docs: Dynamically import rehype - [#29544](https://github.com/storybookjs/storybook/pull/29544), thanks @valentinpalkovic!\n- Addon Test: Fix duplicate `test.include` patterns - [#30029](https://github.com/storybookjs/storybook/pull/30029), thanks @JReinhold!\n- Addon Test: Fix environment variable for Vitest Storybook integration - [#30054](https://github.com/storybookjs/storybook/pull/30054), thanks @valentinpalkovic!\n- Addon Test: Use local storybook binary instead - [#30021](https://github.com/storybookjs/storybook/pull/30021), thanks @kasperpeulen!\n- Addon Test: Wait for 2 seconds before showing result mismatch warning - [#30002](https://github.com/storybookjs/storybook/pull/30002), thanks @ghengeveld!\n- Angular: Support statsJson in angular schemas - [#29233](https://github.com/storybookjs/storybook/pull/29233), thanks @yannbf!\n- Core: Fix `scrollIntoView` behavior and reimplement testing module time rendering - [#30044](https://github.com/storybookjs/storybook/pull/30044), thanks @ghengeveld!\n- Docs: Add code snippet to addons panel - [#29253](https://github.com/storybookjs/storybook/pull/29253), thanks @larsrickert!\n- Next.js: Fix webpack fsCache not working - [#29654](https://github.com/storybookjs/storybook/pull/29654), thanks @sentience!\n- Nextjs-Vite: Add TS docgen support - [#29824](https://github.com/storybookjs/storybook/pull/29824), thanks @yannbf!\n- Nextjs-Vite: Fix docgen types in main config - [#30042](https://github.com/storybookjs/storybook/pull/30042), thanks @yannbf!\n- React: Fix RSC compatibility with addon-themes and hooks - [#26243](https://github.com/storybookjs/storybook/pull/26243), thanks @shilman!\n- UI: Fix controls and parameters on tag-filtered stories - [#30038](https://github.com/storybookjs/storybook/pull/30038), thanks @shilman!"}} From 7ef7a0e2dbac1fd38a162c91eb0547fb7313a2b7 Mon Sep 17 00:00:00 2001 From: storybook-bot <32066757+storybook-bot@users.noreply.github.com> Date: Fri, 13 Dec 2024 15:30:04 +0000 Subject: [PATCH 06/18] Bump version from "8.5.0-alpha.21" to "8.5.0-alpha.22" [skip ci] --- code/addons/a11y/package.json | 2 +- code/addons/actions/package.json | 2 +- code/addons/backgrounds/package.json | 2 +- code/addons/controls/package.json | 2 +- code/addons/docs/package.json | 2 +- code/addons/essentials/package.json | 2 +- code/addons/gfm/package.json | 2 +- code/addons/highlight/package.json | 2 +- code/addons/interactions/package.json | 2 +- code/addons/jest/package.json | 2 +- code/addons/links/package.json | 2 +- code/addons/measure/package.json | 2 +- code/addons/onboarding/package.json | 2 +- code/addons/outline/package.json | 2 +- code/addons/storysource/package.json | 2 +- code/addons/test/package.json | 2 +- code/addons/themes/package.json | 2 +- code/addons/toolbars/package.json | 2 +- code/addons/viewport/package.json | 2 +- code/builders/builder-vite/package.json | 2 +- code/builders/builder-webpack5/package.json | 2 +- code/core/package.json | 2 +- code/core/src/common/versions.ts | 170 +++++++++--------- code/core/src/manager-api/version.ts | 2 +- code/deprecated/builder-manager/package.json | 2 +- code/deprecated/channels/package.json | 2 +- code/deprecated/client-logger/package.json | 2 +- code/deprecated/components/package.json | 2 +- code/deprecated/core-common/package.json | 2 +- code/deprecated/core-events/package.json | 2 +- code/deprecated/core-server/package.json | 2 +- code/deprecated/csf-tools/package.json | 2 +- code/deprecated/docs-tools/package.json | 2 +- code/deprecated/manager-api/package.json | 2 +- code/deprecated/manager/package.json | 2 +- code/deprecated/node-logger/package.json | 2 +- code/deprecated/preview-api/package.json | 2 +- code/deprecated/preview/package.json | 2 +- code/deprecated/router/package.json | 2 +- code/deprecated/telemetry/package.json | 2 +- code/deprecated/theming/package.json | 2 +- code/deprecated/types/package.json | 2 +- code/frameworks/angular/package.json | 2 +- code/frameworks/ember/package.json | 2 +- .../experimental-nextjs-vite/package.json | 2 +- code/frameworks/html-vite/package.json | 2 +- code/frameworks/html-webpack5/package.json | 2 +- code/frameworks/nextjs/package.json | 2 +- code/frameworks/preact-vite/package.json | 2 +- code/frameworks/preact-webpack5/package.json | 2 +- .../react-native-web-vite/package.json | 2 +- code/frameworks/react-vite/package.json | 2 +- code/frameworks/react-webpack5/package.json | 2 +- code/frameworks/server-webpack5/package.json | 2 +- code/frameworks/svelte-vite/package.json | 2 +- code/frameworks/svelte-webpack5/package.json | 2 +- code/frameworks/sveltekit/package.json | 2 +- code/frameworks/vue3-vite/package.json | 2 +- code/frameworks/vue3-webpack5/package.json | 2 +- .../web-components-vite/package.json | 2 +- .../web-components-webpack5/package.json | 2 +- code/lib/blocks/package.json | 2 +- code/lib/cli-sb/package.json | 2 +- code/lib/cli-storybook/package.json | 2 +- code/lib/cli/package.json | 2 +- code/lib/codemod/package.json | 2 +- code/lib/core-webpack/package.json | 2 +- code/lib/create-storybook/package.json | 2 +- code/lib/csf-plugin/package.json | 2 +- code/lib/instrumenter/package.json | 2 +- code/lib/react-dom-shim/package.json | 2 +- code/lib/source-loader/package.json | 2 +- code/lib/test/package.json | 2 +- code/package.json | 5 +- code/presets/create-react-app/package.json | 2 +- code/presets/html-webpack/package.json | 2 +- code/presets/preact-webpack/package.json | 2 +- code/presets/react-webpack/package.json | 2 +- code/presets/server-webpack/package.json | 2 +- code/presets/svelte-webpack/package.json | 2 +- code/presets/vue3-webpack/package.json | 2 +- code/renderers/html/package.json | 2 +- code/renderers/preact/package.json | 2 +- code/renderers/react/package.json | 2 +- code/renderers/server/package.json | 2 +- code/renderers/svelte/package.json | 2 +- code/renderers/vue3/package.json | 2 +- code/renderers/web-components/package.json | 2 +- 88 files changed, 173 insertions(+), 174 deletions(-) diff --git a/code/addons/a11y/package.json b/code/addons/a11y/package.json index 67e5942522ea..871521c0bbb5 100644 --- a/code/addons/a11y/package.json +++ b/code/addons/a11y/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-a11y", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Test component compliance with web accessibility standards", "keywords": [ "a11y", diff --git a/code/addons/actions/package.json b/code/addons/actions/package.json index 7fbcf17f65ca..cd465addf3f5 100644 --- a/code/addons/actions/package.json +++ b/code/addons/actions/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-actions", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Get UI feedback when an action is performed on an interactive element", "keywords": [ "storybook", diff --git a/code/addons/backgrounds/package.json b/code/addons/backgrounds/package.json index eb5029e0cf4f..64ddf7cbe09b 100644 --- a/code/addons/backgrounds/package.json +++ b/code/addons/backgrounds/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-backgrounds", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Switch backgrounds to view components in different settings", "keywords": [ "addon", diff --git a/code/addons/controls/package.json b/code/addons/controls/package.json index 57f55867aab1..d7837a6dbb59 100644 --- a/code/addons/controls/package.json +++ b/code/addons/controls/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-controls", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Interact with component inputs dynamically in the Storybook UI", "keywords": [ "addon", diff --git a/code/addons/docs/package.json b/code/addons/docs/package.json index 85ad01ecc334..4e2a84bfd70a 100644 --- a/code/addons/docs/package.json +++ b/code/addons/docs/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-docs", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Document component usage and properties in Markdown", "keywords": [ "addon", diff --git a/code/addons/essentials/package.json b/code/addons/essentials/package.json index 8946fc941275..3fde9eab3744 100644 --- a/code/addons/essentials/package.json +++ b/code/addons/essentials/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-essentials", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Curated addons to bring out the best of Storybook", "keywords": [ "addon", diff --git a/code/addons/gfm/package.json b/code/addons/gfm/package.json index 050e23eee083..c4042cd7690a 100644 --- a/code/addons/gfm/package.json +++ b/code/addons/gfm/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-mdx-gfm", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "GitHub Flavored Markdown in Storybook", "keywords": [ "addon", diff --git a/code/addons/highlight/package.json b/code/addons/highlight/package.json index 132725309900..f84dfd1ed338 100644 --- a/code/addons/highlight/package.json +++ b/code/addons/highlight/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-highlight", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Highlight DOM nodes within your stories", "keywords": [ "storybook-addons", diff --git a/code/addons/interactions/package.json b/code/addons/interactions/package.json index 94616d18d0b2..b584e70801c4 100644 --- a/code/addons/interactions/package.json +++ b/code/addons/interactions/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-interactions", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Automate, test and debug user interactions", "keywords": [ "storybook-addons", diff --git a/code/addons/jest/package.json b/code/addons/jest/package.json index 6cd0af1cf358..05197566dd86 100644 --- a/code/addons/jest/package.json +++ b/code/addons/jest/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-jest", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "React storybook addon that show component jest report", "keywords": [ "addon", diff --git a/code/addons/links/package.json b/code/addons/links/package.json index 400983200101..a5068e439214 100644 --- a/code/addons/links/package.json +++ b/code/addons/links/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-links", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Link stories together to build demos and prototypes with your UI components", "keywords": [ "storybook-addons", diff --git a/code/addons/measure/package.json b/code/addons/measure/package.json index c3dc010a7a79..036809014573 100644 --- a/code/addons/measure/package.json +++ b/code/addons/measure/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-measure", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Inspect layouts by visualizing the box model", "keywords": [ "storybook-addons", diff --git a/code/addons/onboarding/package.json b/code/addons/onboarding/package.json index da5be23da6de..496fdf643e76 100644 --- a/code/addons/onboarding/package.json +++ b/code/addons/onboarding/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-onboarding", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Storybook Addon Onboarding - Introduces a new onboarding experience", "keywords": [ "storybook-addons", diff --git a/code/addons/outline/package.json b/code/addons/outline/package.json index 7a835eb493b4..404c69cb7c1d 100644 --- a/code/addons/outline/package.json +++ b/code/addons/outline/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-outline", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Outline all elements with CSS to help with layout placement and alignment", "keywords": [ "storybook-addons", diff --git a/code/addons/storysource/package.json b/code/addons/storysource/package.json index edb6981d7fcf..46db49209197 100644 --- a/code/addons/storysource/package.json +++ b/code/addons/storysource/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-storysource", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "View a story’s source code to see how it works and paste into your app", "keywords": [ "addon", diff --git a/code/addons/test/package.json b/code/addons/test/package.json index e74a870c875a..9c96805ede79 100644 --- a/code/addons/test/package.json +++ b/code/addons/test/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/experimental-addon-test", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Integrate Vitest with Storybook", "keywords": [ "storybook-addons", diff --git a/code/addons/themes/package.json b/code/addons/themes/package.json index 30ac3cda924c..9e788efc90cf 100644 --- a/code/addons/themes/package.json +++ b/code/addons/themes/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-themes", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Switch between multiple themes for you components in Storybook", "keywords": [ "css", diff --git a/code/addons/toolbars/package.json b/code/addons/toolbars/package.json index 740f58f8ad96..21716863b7b6 100644 --- a/code/addons/toolbars/package.json +++ b/code/addons/toolbars/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-toolbars", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Create your own toolbar items that control story rendering", "keywords": [ "addon", diff --git a/code/addons/viewport/package.json b/code/addons/viewport/package.json index 4202107ed176..dfe78a2799b1 100644 --- a/code/addons/viewport/package.json +++ b/code/addons/viewport/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-viewport", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Build responsive components by adjusting Storybook’s viewport size and orientation", "keywords": [ "addon", diff --git a/code/builders/builder-vite/package.json b/code/builders/builder-vite/package.json index 856346cc86a2..1a19730107ca 100644 --- a/code/builders/builder-vite/package.json +++ b/code/builders/builder-vite/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/builder-vite", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "A plugin to run and build Storybooks with Vite", "homepage": "https://github.com/storybookjs/storybook/tree/next/code/builders/builder-vite/#readme", "bugs": { diff --git a/code/builders/builder-webpack5/package.json b/code/builders/builder-webpack5/package.json index 387b808ae269..8dca343bbc1f 100644 --- a/code/builders/builder-webpack5/package.json +++ b/code/builders/builder-webpack5/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/builder-webpack5", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Storybook framework-agnostic API", "keywords": [ "storybook" diff --git a/code/core/package.json b/code/core/package.json index ff9c6c9b3c3f..c0a6b170ff23 100644 --- a/code/core/package.json +++ b/code/core/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/core", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Storybook framework-agnostic API", "keywords": [ "storybook" diff --git a/code/core/src/common/versions.ts b/code/core/src/common/versions.ts index ddc0f5d2ed67..cd5bdcc85a13 100644 --- a/code/core/src/common/versions.ts +++ b/code/core/src/common/versions.ts @@ -1,88 +1,88 @@ // auto generated file, do not edit export default { - '@storybook/addon-a11y': '8.5.0-alpha.21', - '@storybook/addon-actions': '8.5.0-alpha.21', - '@storybook/addon-backgrounds': '8.5.0-alpha.21', - '@storybook/addon-controls': '8.5.0-alpha.21', - '@storybook/addon-docs': '8.5.0-alpha.21', - '@storybook/addon-essentials': '8.5.0-alpha.21', - '@storybook/addon-mdx-gfm': '8.5.0-alpha.21', - '@storybook/addon-highlight': '8.5.0-alpha.21', - '@storybook/addon-interactions': '8.5.0-alpha.21', - '@storybook/addon-jest': '8.5.0-alpha.21', - '@storybook/addon-links': '8.5.0-alpha.21', - '@storybook/addon-measure': '8.5.0-alpha.21', - '@storybook/addon-onboarding': '8.5.0-alpha.21', - '@storybook/addon-outline': '8.5.0-alpha.21', - '@storybook/addon-storysource': '8.5.0-alpha.21', - '@storybook/experimental-addon-test': '8.5.0-alpha.21', - '@storybook/addon-themes': '8.5.0-alpha.21', - '@storybook/addon-toolbars': '8.5.0-alpha.21', - '@storybook/addon-viewport': '8.5.0-alpha.21', - '@storybook/builder-vite': '8.5.0-alpha.21', - '@storybook/builder-webpack5': '8.5.0-alpha.21', - '@storybook/core': '8.5.0-alpha.21', - '@storybook/builder-manager': '8.5.0-alpha.21', - '@storybook/channels': '8.5.0-alpha.21', - '@storybook/client-logger': '8.5.0-alpha.21', - '@storybook/components': '8.5.0-alpha.21', - '@storybook/core-common': '8.5.0-alpha.21', - '@storybook/core-events': '8.5.0-alpha.21', - '@storybook/core-server': '8.5.0-alpha.21', - '@storybook/csf-tools': '8.5.0-alpha.21', - '@storybook/docs-tools': '8.5.0-alpha.21', - '@storybook/manager': '8.5.0-alpha.21', - '@storybook/manager-api': '8.5.0-alpha.21', - '@storybook/node-logger': '8.5.0-alpha.21', - '@storybook/preview': '8.5.0-alpha.21', - '@storybook/preview-api': '8.5.0-alpha.21', - '@storybook/router': '8.5.0-alpha.21', - '@storybook/telemetry': '8.5.0-alpha.21', - '@storybook/theming': '8.5.0-alpha.21', - '@storybook/types': '8.5.0-alpha.21', - '@storybook/angular': '8.5.0-alpha.21', - '@storybook/ember': '8.5.0-alpha.21', - '@storybook/experimental-nextjs-vite': '8.5.0-alpha.21', - '@storybook/html-vite': '8.5.0-alpha.21', - '@storybook/html-webpack5': '8.5.0-alpha.21', - '@storybook/nextjs': '8.5.0-alpha.21', - '@storybook/preact-vite': '8.5.0-alpha.21', - '@storybook/preact-webpack5': '8.5.0-alpha.21', - '@storybook/react-native-web-vite': '8.5.0-alpha.21', - '@storybook/react-vite': '8.5.0-alpha.21', - '@storybook/react-webpack5': '8.5.0-alpha.21', - '@storybook/server-webpack5': '8.5.0-alpha.21', - '@storybook/svelte-vite': '8.5.0-alpha.21', - '@storybook/svelte-webpack5': '8.5.0-alpha.21', - '@storybook/sveltekit': '8.5.0-alpha.21', - '@storybook/vue3-vite': '8.5.0-alpha.21', - '@storybook/vue3-webpack5': '8.5.0-alpha.21', - '@storybook/web-components-vite': '8.5.0-alpha.21', - '@storybook/web-components-webpack5': '8.5.0-alpha.21', - '@storybook/blocks': '8.5.0-alpha.21', - storybook: '8.5.0-alpha.21', - sb: '8.5.0-alpha.21', - '@storybook/cli': '8.5.0-alpha.21', - '@storybook/codemod': '8.5.0-alpha.21', - '@storybook/core-webpack': '8.5.0-alpha.21', - 'create-storybook': '8.5.0-alpha.21', - '@storybook/csf-plugin': '8.5.0-alpha.21', - '@storybook/instrumenter': '8.5.0-alpha.21', - '@storybook/react-dom-shim': '8.5.0-alpha.21', - '@storybook/source-loader': '8.5.0-alpha.21', - '@storybook/test': '8.5.0-alpha.21', - '@storybook/preset-create-react-app': '8.5.0-alpha.21', - '@storybook/preset-html-webpack': '8.5.0-alpha.21', - '@storybook/preset-preact-webpack': '8.5.0-alpha.21', - '@storybook/preset-react-webpack': '8.5.0-alpha.21', - '@storybook/preset-server-webpack': '8.5.0-alpha.21', - '@storybook/preset-svelte-webpack': '8.5.0-alpha.21', - '@storybook/preset-vue3-webpack': '8.5.0-alpha.21', - '@storybook/html': '8.5.0-alpha.21', - '@storybook/preact': '8.5.0-alpha.21', - '@storybook/react': '8.5.0-alpha.21', - '@storybook/server': '8.5.0-alpha.21', - '@storybook/svelte': '8.5.0-alpha.21', - '@storybook/vue3': '8.5.0-alpha.21', - '@storybook/web-components': '8.5.0-alpha.21', + '@storybook/addon-a11y': '8.5.0-alpha.22', + '@storybook/addon-actions': '8.5.0-alpha.22', + '@storybook/addon-backgrounds': '8.5.0-alpha.22', + '@storybook/addon-controls': '8.5.0-alpha.22', + '@storybook/addon-docs': '8.5.0-alpha.22', + '@storybook/addon-essentials': '8.5.0-alpha.22', + '@storybook/addon-mdx-gfm': '8.5.0-alpha.22', + '@storybook/addon-highlight': '8.5.0-alpha.22', + '@storybook/addon-interactions': '8.5.0-alpha.22', + '@storybook/addon-jest': '8.5.0-alpha.22', + '@storybook/addon-links': '8.5.0-alpha.22', + '@storybook/addon-measure': '8.5.0-alpha.22', + '@storybook/addon-onboarding': '8.5.0-alpha.22', + '@storybook/addon-outline': '8.5.0-alpha.22', + '@storybook/addon-storysource': '8.5.0-alpha.22', + '@storybook/experimental-addon-test': '8.5.0-alpha.22', + '@storybook/addon-themes': '8.5.0-alpha.22', + '@storybook/addon-toolbars': '8.5.0-alpha.22', + '@storybook/addon-viewport': '8.5.0-alpha.22', + '@storybook/builder-vite': '8.5.0-alpha.22', + '@storybook/builder-webpack5': '8.5.0-alpha.22', + '@storybook/core': '8.5.0-alpha.22', + '@storybook/builder-manager': '8.5.0-alpha.22', + '@storybook/channels': '8.5.0-alpha.22', + '@storybook/client-logger': '8.5.0-alpha.22', + '@storybook/components': '8.5.0-alpha.22', + '@storybook/core-common': '8.5.0-alpha.22', + '@storybook/core-events': '8.5.0-alpha.22', + '@storybook/core-server': '8.5.0-alpha.22', + '@storybook/csf-tools': '8.5.0-alpha.22', + '@storybook/docs-tools': '8.5.0-alpha.22', + '@storybook/manager': '8.5.0-alpha.22', + '@storybook/manager-api': '8.5.0-alpha.22', + '@storybook/node-logger': '8.5.0-alpha.22', + '@storybook/preview': '8.5.0-alpha.22', + '@storybook/preview-api': '8.5.0-alpha.22', + '@storybook/router': '8.5.0-alpha.22', + '@storybook/telemetry': '8.5.0-alpha.22', + '@storybook/theming': '8.5.0-alpha.22', + '@storybook/types': '8.5.0-alpha.22', + '@storybook/angular': '8.5.0-alpha.22', + '@storybook/ember': '8.5.0-alpha.22', + '@storybook/experimental-nextjs-vite': '8.5.0-alpha.22', + '@storybook/html-vite': '8.5.0-alpha.22', + '@storybook/html-webpack5': '8.5.0-alpha.22', + '@storybook/nextjs': '8.5.0-alpha.22', + '@storybook/preact-vite': '8.5.0-alpha.22', + '@storybook/preact-webpack5': '8.5.0-alpha.22', + '@storybook/react-native-web-vite': '8.5.0-alpha.22', + '@storybook/react-vite': '8.5.0-alpha.22', + '@storybook/react-webpack5': '8.5.0-alpha.22', + '@storybook/server-webpack5': '8.5.0-alpha.22', + '@storybook/svelte-vite': '8.5.0-alpha.22', + '@storybook/svelte-webpack5': '8.5.0-alpha.22', + '@storybook/sveltekit': '8.5.0-alpha.22', + '@storybook/vue3-vite': '8.5.0-alpha.22', + '@storybook/vue3-webpack5': '8.5.0-alpha.22', + '@storybook/web-components-vite': '8.5.0-alpha.22', + '@storybook/web-components-webpack5': '8.5.0-alpha.22', + '@storybook/blocks': '8.5.0-alpha.22', + storybook: '8.5.0-alpha.22', + sb: '8.5.0-alpha.22', + '@storybook/cli': '8.5.0-alpha.22', + '@storybook/codemod': '8.5.0-alpha.22', + '@storybook/core-webpack': '8.5.0-alpha.22', + 'create-storybook': '8.5.0-alpha.22', + '@storybook/csf-plugin': '8.5.0-alpha.22', + '@storybook/instrumenter': '8.5.0-alpha.22', + '@storybook/react-dom-shim': '8.5.0-alpha.22', + '@storybook/source-loader': '8.5.0-alpha.22', + '@storybook/test': '8.5.0-alpha.22', + '@storybook/preset-create-react-app': '8.5.0-alpha.22', + '@storybook/preset-html-webpack': '8.5.0-alpha.22', + '@storybook/preset-preact-webpack': '8.5.0-alpha.22', + '@storybook/preset-react-webpack': '8.5.0-alpha.22', + '@storybook/preset-server-webpack': '8.5.0-alpha.22', + '@storybook/preset-svelte-webpack': '8.5.0-alpha.22', + '@storybook/preset-vue3-webpack': '8.5.0-alpha.22', + '@storybook/html': '8.5.0-alpha.22', + '@storybook/preact': '8.5.0-alpha.22', + '@storybook/react': '8.5.0-alpha.22', + '@storybook/server': '8.5.0-alpha.22', + '@storybook/svelte': '8.5.0-alpha.22', + '@storybook/vue3': '8.5.0-alpha.22', + '@storybook/web-components': '8.5.0-alpha.22', }; diff --git a/code/core/src/manager-api/version.ts b/code/core/src/manager-api/version.ts index 0bba74f935f9..90c0bfd8e29f 100644 --- a/code/core/src/manager-api/version.ts +++ b/code/core/src/manager-api/version.ts @@ -1 +1 @@ -export const version = '8.5.0-alpha.21'; +export const version = '8.5.0-alpha.22'; diff --git a/code/deprecated/builder-manager/package.json b/code/deprecated/builder-manager/package.json index 126dfe4c5815..fd71436811d1 100644 --- a/code/deprecated/builder-manager/package.json +++ b/code/deprecated/builder-manager/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/builder-manager", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Storybook manager builder", "keywords": [ "storybook" diff --git a/code/deprecated/channels/package.json b/code/deprecated/channels/package.json index 6c31fd448d6a..e0f982ac028b 100644 --- a/code/deprecated/channels/package.json +++ b/code/deprecated/channels/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/channels", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "", "keywords": [ "storybook" diff --git a/code/deprecated/client-logger/package.json b/code/deprecated/client-logger/package.json index f32f09ca650a..d09c87e56926 100644 --- a/code/deprecated/client-logger/package.json +++ b/code/deprecated/client-logger/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/client-logger", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "", "keywords": [ "storybook" diff --git a/code/deprecated/components/package.json b/code/deprecated/components/package.json index 2928619eb576..469a51d0ebb5 100644 --- a/code/deprecated/components/package.json +++ b/code/deprecated/components/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/components", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Core Storybook Components", "keywords": [ "storybook" diff --git a/code/deprecated/core-common/package.json b/code/deprecated/core-common/package.json index ea6f5f01af92..fe28424bb50b 100644 --- a/code/deprecated/core-common/package.json +++ b/code/deprecated/core-common/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/core-common", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Storybook framework-agnostic API", "keywords": [ "storybook" diff --git a/code/deprecated/core-events/package.json b/code/deprecated/core-events/package.json index ec7a6f10d658..9f6b683c3320 100644 --- a/code/deprecated/core-events/package.json +++ b/code/deprecated/core-events/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/core-events", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Event names used in storybook core", "keywords": [ "storybook" diff --git a/code/deprecated/core-server/package.json b/code/deprecated/core-server/package.json index 9a9e140507e8..2ad77557ad53 100644 --- a/code/deprecated/core-server/package.json +++ b/code/deprecated/core-server/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/core-server", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Storybook framework-agnostic API", "keywords": [ "storybook" diff --git a/code/deprecated/csf-tools/package.json b/code/deprecated/csf-tools/package.json index 6e1a317e6aef..58acc248335c 100644 --- a/code/deprecated/csf-tools/package.json +++ b/code/deprecated/csf-tools/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/csf-tools", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Parse and manipulate CSF and Storybook config files", "keywords": [ "storybook" diff --git a/code/deprecated/docs-tools/package.json b/code/deprecated/docs-tools/package.json index 8ca8d5eca235..fe154c164db4 100644 --- a/code/deprecated/docs-tools/package.json +++ b/code/deprecated/docs-tools/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/docs-tools", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Shared utility functions for frameworks to implement docs", "keywords": [ "storybook" diff --git a/code/deprecated/manager-api/package.json b/code/deprecated/manager-api/package.json index 8fa0294fa760..a0cb5ac6f9b6 100644 --- a/code/deprecated/manager-api/package.json +++ b/code/deprecated/manager-api/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/manager-api", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Core Storybook Manager API & Context", "keywords": [ "storybook" diff --git a/code/deprecated/manager/package.json b/code/deprecated/manager/package.json index d5df04c24258..941049b955b2 100644 --- a/code/deprecated/manager/package.json +++ b/code/deprecated/manager/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/manager", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Core Storybook UI", "keywords": [ "storybook" diff --git a/code/deprecated/node-logger/package.json b/code/deprecated/node-logger/package.json index 67784935f5e5..f1081b028213 100644 --- a/code/deprecated/node-logger/package.json +++ b/code/deprecated/node-logger/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/node-logger", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "", "keywords": [ "storybook" diff --git a/code/deprecated/preview-api/package.json b/code/deprecated/preview-api/package.json index 2995ec342e9a..5c5d894f90af 100644 --- a/code/deprecated/preview-api/package.json +++ b/code/deprecated/preview-api/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/preview-api", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "", "keywords": [ "storybook" diff --git a/code/deprecated/preview/package.json b/code/deprecated/preview/package.json index 27da2496c369..fa91ac524655 100644 --- a/code/deprecated/preview/package.json +++ b/code/deprecated/preview/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/preview", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "", "keywords": [ "storybook" diff --git a/code/deprecated/router/package.json b/code/deprecated/router/package.json index 7224c7ce0ce4..3b2e0b23416e 100644 --- a/code/deprecated/router/package.json +++ b/code/deprecated/router/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/router", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Core Storybook Router", "keywords": [ "storybook" diff --git a/code/deprecated/telemetry/package.json b/code/deprecated/telemetry/package.json index fd7a105320d8..c2a12b4fd4a9 100644 --- a/code/deprecated/telemetry/package.json +++ b/code/deprecated/telemetry/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/telemetry", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Telemetry logging for crash reports and usage statistics", "keywords": [ "storybook" diff --git a/code/deprecated/theming/package.json b/code/deprecated/theming/package.json index db27fb520d9a..7d232d7d961a 100644 --- a/code/deprecated/theming/package.json +++ b/code/deprecated/theming/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/theming", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Core Storybook Components", "keywords": [ "storybook" diff --git a/code/deprecated/types/package.json b/code/deprecated/types/package.json index 6d4a568f68b6..d8aa8cf50e59 100644 --- a/code/deprecated/types/package.json +++ b/code/deprecated/types/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/types", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Core Storybook TS Types", "keywords": [ "storybook" diff --git a/code/frameworks/angular/package.json b/code/frameworks/angular/package.json index 92eb88d21a34..7ac17f6c5506 100644 --- a/code/frameworks/angular/package.json +++ b/code/frameworks/angular/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/angular", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Storybook for Angular: Develop Angular components in isolation with hot reloading.", "keywords": [ "storybook", diff --git a/code/frameworks/ember/package.json b/code/frameworks/ember/package.json index 13ce986ce29d..9b63281d1e21 100644 --- a/code/frameworks/ember/package.json +++ b/code/frameworks/ember/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/ember", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Storybook for Ember: Develop Ember Component in isolation with Hot Reloading.", "homepage": "https://github.com/storybookjs/storybook/tree/next/code/frameworks/ember", "bugs": { diff --git a/code/frameworks/experimental-nextjs-vite/package.json b/code/frameworks/experimental-nextjs-vite/package.json index f5737d7c79f6..c8beb6e37803 100644 --- a/code/frameworks/experimental-nextjs-vite/package.json +++ b/code/frameworks/experimental-nextjs-vite/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/experimental-nextjs-vite", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Storybook for Next.js and Vite", "keywords": [ "storybook", diff --git a/code/frameworks/html-vite/package.json b/code/frameworks/html-vite/package.json index 4ebf99ebf5d1..f6e7d96701f6 100644 --- a/code/frameworks/html-vite/package.json +++ b/code/frameworks/html-vite/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/html-vite", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Storybook for HTML and Vite: Develop HTML in isolation with Hot Reloading.", "keywords": [ "storybook" diff --git a/code/frameworks/html-webpack5/package.json b/code/frameworks/html-webpack5/package.json index 98225ebcdc48..c6597bb17a64 100644 --- a/code/frameworks/html-webpack5/package.json +++ b/code/frameworks/html-webpack5/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/html-webpack5", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Storybook for HTML: View HTML snippets in isolation with Hot Reloading.", "keywords": [ "storybook" diff --git a/code/frameworks/nextjs/package.json b/code/frameworks/nextjs/package.json index fb6f6a1d1f98..fe21d56ea6b9 100644 --- a/code/frameworks/nextjs/package.json +++ b/code/frameworks/nextjs/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/nextjs", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Storybook for Next.js", "keywords": [ "storybook", diff --git a/code/frameworks/preact-vite/package.json b/code/frameworks/preact-vite/package.json index 1687b02e0230..94c8152f6308 100644 --- a/code/frameworks/preact-vite/package.json +++ b/code/frameworks/preact-vite/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/preact-vite", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Storybook for Preact and Vite: Develop Preact components in isolation with Hot Reloading.", "keywords": [ "storybook" diff --git a/code/frameworks/preact-webpack5/package.json b/code/frameworks/preact-webpack5/package.json index 17fc5dd05953..22a6956d8142 100644 --- a/code/frameworks/preact-webpack5/package.json +++ b/code/frameworks/preact-webpack5/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/preact-webpack5", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Storybook for Preact: Develop Preact Component in isolation.", "keywords": [ "storybook" diff --git a/code/frameworks/react-native-web-vite/package.json b/code/frameworks/react-native-web-vite/package.json index 42847738ee1d..b256cf70d1b6 100644 --- a/code/frameworks/react-native-web-vite/package.json +++ b/code/frameworks/react-native-web-vite/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/react-native-web-vite", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Develop react-native components an isolated web environment with hot reloading.", "keywords": [ "storybook" diff --git a/code/frameworks/react-vite/package.json b/code/frameworks/react-vite/package.json index 6d07c52bfac8..c6a45266f22b 100644 --- a/code/frameworks/react-vite/package.json +++ b/code/frameworks/react-vite/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/react-vite", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Storybook for React and Vite: Develop React components in isolation with Hot Reloading.", "keywords": [ "storybook" diff --git a/code/frameworks/react-webpack5/package.json b/code/frameworks/react-webpack5/package.json index bb74a3e7240a..8e564dffa63f 100644 --- a/code/frameworks/react-webpack5/package.json +++ b/code/frameworks/react-webpack5/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/react-webpack5", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Storybook for React: Develop React Component in isolation with Hot Reloading.", "keywords": [ "storybook" diff --git a/code/frameworks/server-webpack5/package.json b/code/frameworks/server-webpack5/package.json index 1de70d7f8b63..58ed15954906 100644 --- a/code/frameworks/server-webpack5/package.json +++ b/code/frameworks/server-webpack5/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/server-webpack5", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Storybook for Server: View HTML snippets from a server in isolation with Hot Reloading.", "keywords": [ "storybook" diff --git a/code/frameworks/svelte-vite/package.json b/code/frameworks/svelte-vite/package.json index 83ffa79e2f8c..955e2206cfe9 100644 --- a/code/frameworks/svelte-vite/package.json +++ b/code/frameworks/svelte-vite/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/svelte-vite", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Storybook for Svelte and Vite: Develop Svelte components in isolation with Hot Reloading.", "keywords": [ "storybook" diff --git a/code/frameworks/svelte-webpack5/package.json b/code/frameworks/svelte-webpack5/package.json index 065828177e41..6bc52a6b823c 100644 --- a/code/frameworks/svelte-webpack5/package.json +++ b/code/frameworks/svelte-webpack5/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/svelte-webpack5", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Storybook for Svelte: Develop Svelte Component in isolation with Hot Reloading.", "keywords": [ "storybook" diff --git a/code/frameworks/sveltekit/package.json b/code/frameworks/sveltekit/package.json index 69a794c5365a..77fb37cc5f03 100644 --- a/code/frameworks/sveltekit/package.json +++ b/code/frameworks/sveltekit/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/sveltekit", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Storybook for SvelteKit", "keywords": [ "storybook", diff --git a/code/frameworks/vue3-vite/package.json b/code/frameworks/vue3-vite/package.json index 8e93d5775057..7bb0922259a9 100644 --- a/code/frameworks/vue3-vite/package.json +++ b/code/frameworks/vue3-vite/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/vue3-vite", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Storybook for Vue3 and Vite: Develop Vue3 components in isolation with Hot Reloading.", "keywords": [ "storybook" diff --git a/code/frameworks/vue3-webpack5/package.json b/code/frameworks/vue3-webpack5/package.json index f05663bad9c6..4cc005ebf449 100644 --- a/code/frameworks/vue3-webpack5/package.json +++ b/code/frameworks/vue3-webpack5/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/vue3-webpack5", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Storybook for Vue 3: Develop Vue 3 Components in isolation with Hot Reloading.", "keywords": [ "storybook" diff --git a/code/frameworks/web-components-vite/package.json b/code/frameworks/web-components-vite/package.json index f367cc35ce05..e6fa38e1646a 100644 --- a/code/frameworks/web-components-vite/package.json +++ b/code/frameworks/web-components-vite/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/web-components-vite", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Storybook for web-components and Vite: Develop Web Components in isolation with Hot Reloading.", "keywords": [ "storybook" diff --git a/code/frameworks/web-components-webpack5/package.json b/code/frameworks/web-components-webpack5/package.json index faa2b6763fa3..58dfcaa0738b 100644 --- a/code/frameworks/web-components-webpack5/package.json +++ b/code/frameworks/web-components-webpack5/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/web-components-webpack5", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Storybook for web-components: View web components snippets in isolation with Hot Reloading.", "keywords": [ "lit", diff --git a/code/lib/blocks/package.json b/code/lib/blocks/package.json index 430250ca9e3a..12504b248173 100644 --- a/code/lib/blocks/package.json +++ b/code/lib/blocks/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/blocks", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Storybook Doc Blocks", "keywords": [ "storybook" diff --git a/code/lib/cli-sb/package.json b/code/lib/cli-sb/package.json index 858eaee4fcd8..3d9f74381e87 100644 --- a/code/lib/cli-sb/package.json +++ b/code/lib/cli-sb/package.json @@ -1,6 +1,6 @@ { "name": "sb", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Storybook CLI", "keywords": [ "storybook" diff --git a/code/lib/cli-storybook/package.json b/code/lib/cli-storybook/package.json index 5164fbf92187..7e0d04ac274a 100644 --- a/code/lib/cli-storybook/package.json +++ b/code/lib/cli-storybook/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/cli", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Storybook CLI", "keywords": [ "storybook" diff --git a/code/lib/cli/package.json b/code/lib/cli/package.json index 879f9fda1ed8..765a06c1f3d6 100644 --- a/code/lib/cli/package.json +++ b/code/lib/cli/package.json @@ -1,6 +1,6 @@ { "name": "storybook", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Storybook's CLI - install, dev, build, upgrade, and more", "keywords": [ "cli", diff --git a/code/lib/codemod/package.json b/code/lib/codemod/package.json index d0075f450f7a..b41d0290501c 100644 --- a/code/lib/codemod/package.json +++ b/code/lib/codemod/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/codemod", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "A collection of codemod scripts written with JSCodeshift", "keywords": [ "storybook" diff --git a/code/lib/core-webpack/package.json b/code/lib/core-webpack/package.json index 5ac62b95195c..bb490874f2ba 100644 --- a/code/lib/core-webpack/package.json +++ b/code/lib/core-webpack/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/core-webpack", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Storybook framework-agnostic API", "keywords": [ "storybook" diff --git a/code/lib/create-storybook/package.json b/code/lib/create-storybook/package.json index 984e9d7df530..8916f1e56826 100644 --- a/code/lib/create-storybook/package.json +++ b/code/lib/create-storybook/package.json @@ -1,6 +1,6 @@ { "name": "create-storybook", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Initialize Storybook into your project", "homepage": "https://github.com/storybookjs/storybook/tree/next/code/lib/create-storybook", "bugs": { diff --git a/code/lib/csf-plugin/package.json b/code/lib/csf-plugin/package.json index b05f5b11e303..21b0e8b1855f 100644 --- a/code/lib/csf-plugin/package.json +++ b/code/lib/csf-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/csf-plugin", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Enrich CSF files via static analysis", "keywords": [ "storybook" diff --git a/code/lib/instrumenter/package.json b/code/lib/instrumenter/package.json index 6c15c502a711..a015da12f533 100644 --- a/code/lib/instrumenter/package.json +++ b/code/lib/instrumenter/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/instrumenter", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "", "keywords": [ "storybook" diff --git a/code/lib/react-dom-shim/package.json b/code/lib/react-dom-shim/package.json index 8a17e18920d3..75818dcef25d 100644 --- a/code/lib/react-dom-shim/package.json +++ b/code/lib/react-dom-shim/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/react-dom-shim", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "", "keywords": [ "storybook" diff --git a/code/lib/source-loader/package.json b/code/lib/source-loader/package.json index c52a0f92894f..a3073390d00d 100644 --- a/code/lib/source-loader/package.json +++ b/code/lib/source-loader/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/source-loader", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Source loader", "keywords": [ "lib", diff --git a/code/lib/test/package.json b/code/lib/test/package.json index f142e3644729..e1d356bdb570 100644 --- a/code/lib/test/package.json +++ b/code/lib/test/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/test", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "", "keywords": [ "storybook" diff --git a/code/package.json b/code/package.json index 6a7cb034c37f..80fb0fb2089f 100644 --- a/code/package.json +++ b/code/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/root", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "private": true, "description": "Storybook root", "homepage": "https://storybook.js.org/", @@ -294,6 +294,5 @@ "Dependency Upgrades" ] ] - }, - "deferredNextVersion": "8.5.0-alpha.22" + } } diff --git a/code/presets/create-react-app/package.json b/code/presets/create-react-app/package.json index 6affbff09691..f0b9550cd8e1 100644 --- a/code/presets/create-react-app/package.json +++ b/code/presets/create-react-app/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/preset-create-react-app", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Storybook for Create React App preset", "keywords": [ "storybook" diff --git a/code/presets/html-webpack/package.json b/code/presets/html-webpack/package.json index 7ae3edc465f6..0187f6af1adc 100644 --- a/code/presets/html-webpack/package.json +++ b/code/presets/html-webpack/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/preset-html-webpack", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Storybook for HTML: View HTML snippets in isolation with Hot Reloading.", "keywords": [ "storybook" diff --git a/code/presets/preact-webpack/package.json b/code/presets/preact-webpack/package.json index 13c9c5badaf4..45fe95cdc3c3 100644 --- a/code/presets/preact-webpack/package.json +++ b/code/presets/preact-webpack/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/preset-preact-webpack", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Storybook for Preact: Develop Preact Component in isolation.", "keywords": [ "storybook" diff --git a/code/presets/react-webpack/package.json b/code/presets/react-webpack/package.json index acfe5f3ea4e1..65bdb059fed4 100644 --- a/code/presets/react-webpack/package.json +++ b/code/presets/react-webpack/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/preset-react-webpack", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Storybook for React: Develop React Component in isolation with Hot Reloading", "keywords": [ "storybook" diff --git a/code/presets/server-webpack/package.json b/code/presets/server-webpack/package.json index a783568c9eff..e3e366850900 100644 --- a/code/presets/server-webpack/package.json +++ b/code/presets/server-webpack/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/preset-server-webpack", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Storybook for Server: View HTML snippets from a server in isolation with Hot Reloading.", "keywords": [ "storybook" diff --git a/code/presets/svelte-webpack/package.json b/code/presets/svelte-webpack/package.json index 6e4a595a9bb0..45448bf58dc0 100644 --- a/code/presets/svelte-webpack/package.json +++ b/code/presets/svelte-webpack/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/preset-svelte-webpack", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Storybook for Svelte: Develop Svelte Component in isolation with Hot Reloading.", "keywords": [ "storybook" diff --git a/code/presets/vue3-webpack/package.json b/code/presets/vue3-webpack/package.json index 38d7ec940384..aedd88aff477 100644 --- a/code/presets/vue3-webpack/package.json +++ b/code/presets/vue3-webpack/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/preset-vue3-webpack", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Storybook for Vue 3: Develop Vue 3 Components in isolation with Hot Reloading.", "keywords": [ "storybook" diff --git a/code/renderers/html/package.json b/code/renderers/html/package.json index 056a860d6dde..817ba8045700 100644 --- a/code/renderers/html/package.json +++ b/code/renderers/html/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/html", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Storybook HTML renderer", "keywords": [ "storybook" diff --git a/code/renderers/preact/package.json b/code/renderers/preact/package.json index 921291e4fd75..b47e3cbd0164 100644 --- a/code/renderers/preact/package.json +++ b/code/renderers/preact/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/preact", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Storybook Preact renderer", "keywords": [ "storybook" diff --git a/code/renderers/react/package.json b/code/renderers/react/package.json index 968b2be5d175..a58ef3d8dde8 100644 --- a/code/renderers/react/package.json +++ b/code/renderers/react/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/react", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Storybook React renderer", "keywords": [ "storybook" diff --git a/code/renderers/server/package.json b/code/renderers/server/package.json index 8f05da4f5759..232c064fbd58 100644 --- a/code/renderers/server/package.json +++ b/code/renderers/server/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/server", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Storybook Server renderer", "keywords": [ "storybook" diff --git a/code/renderers/svelte/package.json b/code/renderers/svelte/package.json index c8a221096ee9..0e084a61dd4f 100644 --- a/code/renderers/svelte/package.json +++ b/code/renderers/svelte/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/svelte", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Storybook Svelte renderer", "keywords": [ "storybook" diff --git a/code/renderers/vue3/package.json b/code/renderers/vue3/package.json index c57db46d9306..c5a70b1bf71f 100644 --- a/code/renderers/vue3/package.json +++ b/code/renderers/vue3/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/vue3", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Storybook Vue 3 renderer", "keywords": [ "storybook" diff --git a/code/renderers/web-components/package.json b/code/renderers/web-components/package.json index cfcdef31e344..3365415dccca 100644 --- a/code/renderers/web-components/package.json +++ b/code/renderers/web-components/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/web-components", - "version": "8.5.0-alpha.21", + "version": "8.5.0-alpha.22", "description": "Storybook web-components renderer", "keywords": [ "lit", From b57db9eaac92e7b2b1dd7d898e3c65e372999c18 Mon Sep 17 00:00:00 2001 From: Yann Braga Date: Fri, 13 Dec 2024 13:12:20 +0100 Subject: [PATCH 07/18] Build: Improve waiting detection on E2E to fix flake --- code/e2e-tests/util.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/e2e-tests/util.ts b/code/e2e-tests/util.ts index 057dc91f715d..0e8c6d0b93d8 100644 --- a/code/e2e-tests/util.ts +++ b/code/e2e-tests/util.ts @@ -112,6 +112,10 @@ export class SbPage { const storyLoadingPage = root.locator('.sb-preparing-story'); await docsLoadingPage.waitFor({ state: 'hidden' }); await storyLoadingPage.waitFor({ state: 'hidden' }); + await this.page.waitForFunction(() => { + const storybookRoot = document.querySelector('#storybook-root'); + return storybookRoot && storybookRoot.children.length > 0; + }); } previewIframe() { From a57336acd0abefb624b6d04357ac6d3de53e2e7d Mon Sep 17 00:00:00 2001 From: Yann Braga Date: Fri, 13 Dec 2024 13:15:51 +0100 Subject: [PATCH 08/18] add deps optimization in react kitchen sink --- .../react/.storybook/main.ts | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/test-storybooks/portable-stories-kitchen-sink/react/.storybook/main.ts b/test-storybooks/portable-stories-kitchen-sink/react/.storybook/main.ts index 0a76f80b4d25..57b96d2e8d1e 100644 --- a/test-storybooks/portable-stories-kitchen-sink/react/.storybook/main.ts +++ b/test-storybooks/portable-stories-kitchen-sink/react/.storybook/main.ts @@ -12,9 +12,21 @@ const config: StorybookConfig = { options: {}, }, core: { - disableWhatsNewNotifications: true + disableWhatsNewNotifications: true, }, - previewHead: (head = '') => `${head} + viteFinal: (config) => ({ + ...config, + optimizeDeps: { + ...config.optimizeDeps, + include: [ + ...(config.optimizeDeps?.include || []), + "react-dom/test-utils", + "@storybook/react/**", + "@storybook/experimental-addon-test/preview", + ], + }, + }), + previewHead: (head = "") => `${head}