diff --git a/.circleci/config.yml b/.circleci/config.yml index 596da221fa85..4c67a2a010a0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -593,19 +593,19 @@ workflows: requires: - unit-tests - create-sandboxes: - parallelism: 20 + parallelism: 19 requires: - build - build-sandboxes: - parallelism: 20 + parallelism: 19 requires: - create-sandboxes - chromatic-sandboxes: - parallelism: 18 + parallelism: 17 requires: - build-sandboxes - e2e-production: - parallelism: 18 + parallelism: 17 requires: - build-sandboxes - e2e-dev: @@ -613,7 +613,7 @@ workflows: requires: - create-sandboxes - test-runner-production: - parallelism: 18 + parallelism: 17 requires: - build-sandboxes - bench: @@ -647,22 +647,22 @@ workflows: requires: - build - create-sandboxes: - parallelism: 34 + parallelism: 33 requires: - build # - smoke-test-sandboxes: # disabled for now # requires: # - create-sandboxes - build-sandboxes: - parallelism: 34 + parallelism: 33 requires: - create-sandboxes - chromatic-sandboxes: - parallelism: 32 + parallelism: 31 requires: - build-sandboxes - e2e-production: - parallelism: 32 + parallelism: 31 requires: - build-sandboxes - e2e-dev: @@ -670,7 +670,7 @@ workflows: requires: - create-sandboxes - test-runner-production: - parallelism: 32 + parallelism: 31 requires: - build-sandboxes # TODO: reenable once we find out the source of flakyness diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/DISCUSSION_TEMPLATE/ideas.yml similarity index 90% rename from .github/ISSUE_TEMPLATE/feature_request.yml rename to .github/DISCUSSION_TEMPLATE/ideas.yml index 206ddf06f62a..e166880447ed 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ b/.github/DISCUSSION_TEMPLATE/ideas.yml @@ -1,6 +1,3 @@ -name: Feature request 💡 -description: Suggest an idea for this project -title: '[Feature Request]:' labels: - needs triage - feature request @@ -8,7 +5,7 @@ body: - type: textarea id: problem attributes: - label: Is your feature request related to a problem? Please describe + label: Is your feature request related to a problem? Please describe. description: >- A clear and concise description of the problem. E.g. I'm always frustrated when [...] diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index fa07cbe842fa..95be4a49c705 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -2,10 +2,16 @@ blank_issues_enabled: false contact_links: - name: View documentation 📚 url: https://storybook.js.org/docs/ - about: Check out the official docs for answers to common questions + about: Check out the official docs for answers to common questions. + - name: Feature Requests 💡 + url: https://github.com/storybookjs/storybook/discussions/new?category=ideas + about: Suggest a feature idea for this project. + - name: Open an RFC 🦄 + url: https://github.com/storybookjs/storybook/discussions/new?category=rfc + about: Do you want to propose a more involved change to Storybook? Open an RFC (Request for Comments) to start a discussion. - name: Questions & discussions 🤔 url: https://github.com/storybookjs/storybook/discussions - about: Ask questions, request features & discuss RFCs + about: Ask questions, show off your Storybook, etc. - name: Community Discord 💬 url: https://discord.gg/storybook about: Community discussions, interactive support, contributor help diff --git a/.github/workflows/prepare-patch-release.yml b/.github/workflows/prepare-patch-release.yml index 20a4e24d023e..00ed4bd7fa09 100644 --- a/.github/workflows/prepare-patch-release.yml +++ b/.github/workflows/prepare-patch-release.yml @@ -84,8 +84,8 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - git config --global user.name 'github-actions[bot]' - git config --global user.email 'github-actions[bot]@users.noreply.github.com' + git config --global user.name 'storybook-bot' + git config --global user.email '32066757+storybook-bot@users.noreply.github.com' yarn release:pick-patches - name: Bump version @@ -117,8 +117,8 @@ jobs: - name: 'Commit changes to branch: version-patch-from-${{ steps.versions.outputs.current }}' working-directory: . run: | - git config --global user.name 'github-actions[bot]' - git config --global user.email 'github-actions[bot]@users.noreply.github.com' + git config --global user.name 'storybook-bot' + git config --global user.email '32066757+storybook-bot@users.noreply.github.com' git checkout -b version-patch-from-${{ steps.versions.outputs.current }} git add . git commit -m "Bump version from ${{ steps.versions.outputs.current }} to ${{ steps.versions.outputs.next }}" || true diff --git a/.github/workflows/prepare-prerelease.yml b/.github/workflows/prepare-prerelease.yml index bf387d464ccf..211996d4821b 100644 --- a/.github/workflows/prepare-prerelease.yml +++ b/.github/workflows/prepare-prerelease.yml @@ -121,8 +121,8 @@ jobs: - name: 'Commit changes to branch: version-prerelease-from-${{ steps.bump-version.outputs.current-version }}' working-directory: . run: | - git config --global user.name 'github-actions[bot]' - git config --global user.email 'github-actions[bot]@users.noreply.github.com' + git config --global user.name 'storybook-bot' + git config --global user.email '32066757+storybook-bot@users.noreply.github.com' git checkout -b version-prerelease-from-${{ steps.bump-version.outputs.current-version }} git add . git commit -m "Bump version from ${{ steps.bump-version.outputs.current-version }} to ${{ steps.bump-version.outputs.next-version }}" || true diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5dd070b1fe1b..2374708d1b57 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -112,8 +112,8 @@ jobs: - name: Merge ${{ github.ref_name }} into ${{ steps.target.outputs.target }} run: | - git config --global user.name "github-actions[bot]" - git config --global user.email "github-actions[bot]@users.noreply.github.com" + git config --global user.name "storybook-bot" + git config --global user.email "32066757+storybook-bot@users.noreply.github.com" git fetch origin ${{ steps.target.outputs.target }} git checkout ${{ steps.target.outputs.target }} git merge ${{ github.ref_name }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 940682e25a50..ec7c86066743 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,35 @@ +## 7.0.26 + +- Next.js: Fix next/image usage in latest Next.js release - [#23296](https://github.com/storybookjs/storybook/pull/23296), thanks [@valentinpalkovic](https://github.com/valentinpalkovic)! +- NextJS: Fix `useParams` support - [#22946](https://github.com/storybookjs/storybook/pull/22946), thanks [@gitstart-storybook](https://github.com/gitstart-storybook)! +- NextJS: Allow disabling next/image lazy loading - [#21909](https://github.com/storybookjs/storybook/pull/21909), thanks [@martinnabhan](https://github.com/martinnabhan) + +## 7.0.25 + +- CLI: Fix pnp paths logic in storybook metadata - [#23259](https://github.com/storybookjs/storybook/pull/23259), thanks [@yannbf](https://github.com/yannbf)! +- Controls: Fix UI to add array items - [#22993](https://github.com/storybookjs/storybook/pull/22993), thanks [@sookmax](https://github.com/sookmax)! +- Next.js: Support disableStaticImages setting - [#23167](https://github.com/storybookjs/storybook/pull/23167), thanks [@valentinpalkovic](https://github.com/valentinpalkovic)! +- React: Fix decorators to conditionally render children - [#22336](https://github.com/storybookjs/storybook/pull/22336), thanks [@redbugz](https://github.com/redbugz)! + +## 7.0.24 + +- CLI: Parse pnp paths in storybook metadata - [#23199](https://github.com/storybookjs/storybook/pull/23199), thanks [@yannbf](https://github.com/yannbf)! +- Dependencies: Pin `file-system-cache` to 2.3.0 - [#23221](https://github.com/storybookjs/storybook/pull/23221), thanks [@JReinhold](https://github.com/JReinhold)! +- Svelte: Support v4 - [#22905](https://github.com/storybookjs/storybook/pull/22905), thanks [@JReinhold](https://github.com/JReinhold)! + +## 7.0.23 + +- Core: Fix compat by disabling name mangling in `esbuild` require - [#22486](https://github.com/storybookjs/storybook/pull/22486), thanks [@youngboy](https://github.com/youngboy)! +- Core: Prebundle node-logger and make it CJS only - [#23109](https://github.com/storybookjs/storybook/pull/23109), thanks [@ndelangen](https://github.com/ndelangen)! +- NextJS: Fix fonts not loading with 3+ words in name - [#23121](https://github.com/storybookjs/storybook/pull/23121), thanks [@ygkn](https://github.com/ygkn)! +- Telemetry: Count onboarding stories - [#23092](https://github.com/storybookjs/storybook/pull/23092), thanks [@shilman](https://github.com/shilman)! + +## 7.0.22 + +- CLI: Prebundle boxen to resolve a ESM/CJS incompatibility - [#23080](https://github.com/storybookjs/storybook/pull/23080), thanks [@ndelangen](https://github.com/ndelangen)! +- Core: Fix core-common to use node-fetch - [#23077](https://github.com/storybookjs/storybook/pull/23077), thanks [@ndelangen](https://github.com/ndelangen)! +- Telemetry: Count onboarding stories - [#23092](https://github.com/storybookjs/storybook/pull/23092), thanks [@shilman](https://github.com/shilman)! + ## 7.0.21 - Angular: Fix 16.1 compatibility - [#23064](https://github.com/storybookjs/storybook/pull/23064), thanks [@ndelangen](https://github.com/ndelangen)! diff --git a/CHANGELOG.prerelease.md b/CHANGELOG.prerelease.md index 246926020f49..d589df877029 100644 --- a/CHANGELOG.prerelease.md +++ b/CHANGELOG.prerelease.md @@ -1,3 +1,19 @@ +## 7.1.0-beta.2 + +- Next.js: Fix for @nx/react/plugin/storybook with stories containing SVGs - [#23210](https://github.com/storybookjs/storybook/pull/23210), thanks [@daves28](https://github.com/daves28)! +- Yarn: Downgrade yarnpkg packages and support virtual files properly - [#23354](https://github.com/storybookjs/storybook/pull/23354), thanks [@valentinpalkovic](https://github.com/valentinpalkovic)! + +## 7.1.0-beta.1 + +- Addon-docs: Add opt-in table of contents - [#23142](https://github.com/storybookjs/storybook/pull/23142), thanks [@shilman](https://github.com/shilman)! +- SyntaxHighlighter: Expose registerLanguage - [#23166](https://github.com/storybookjs/storybook/pull/23166), thanks [@ndelangen](https://github.com/ndelangen)! +- Yarn: Fix pnp package resolution on Windows - [#23274](https://github.com/storybookjs/storybook/pull/23274), thanks [@valentinpalkovic](https://github.com/valentinpalkovic)! +- Yarn: Pin version of @yarnpkg packages to support Node 16 - [#23330](https://github.com/storybookjs/storybook/pull/23330), thanks [@valentinpalkovic](https://github.com/valentinpalkovic)! + +## 7.1.0-beta.0 + +- Settings: Add what's new page, remove release notes - [#23202](https://github.com/storybookjs/storybook/pull/23202), thanks [@kasperpeulen](https://github.com/kasperpeulen)! + ## 7.1.0-alpha.44 - Next.js: Fix next/image usage in latest Next.js release - [#23296](https://github.com/storybookjs/storybook/pull/23296), thanks [@valentinpalkovic](https://github.com/valentinpalkovic)! diff --git a/code/addons/a11y/package.json b/code/addons/a11y/package.json index 36210b31c314..7ee86d557e28 100644 --- a/code/addons/a11y/package.json +++ b/code/addons/a11y/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-a11y", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Test component compliance with web accessibility standards", "keywords": [ "a11y", @@ -63,16 +63,16 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/addon-highlight": "7.1.0-alpha.44", - "@storybook/channels": "7.1.0-alpha.44", - "@storybook/client-logger": "7.1.0-alpha.44", - "@storybook/components": "7.1.0-alpha.44", - "@storybook/core-events": "7.1.0-alpha.44", + "@storybook/addon-highlight": "7.1.0-beta.2", + "@storybook/channels": "7.1.0-beta.2", + "@storybook/client-logger": "7.1.0-beta.2", + "@storybook/components": "7.1.0-beta.2", + "@storybook/core-events": "7.1.0-beta.2", "@storybook/global": "^5.0.0", - "@storybook/manager-api": "7.1.0-alpha.44", - "@storybook/preview-api": "7.1.0-alpha.44", - "@storybook/theming": "7.1.0-alpha.44", - "@storybook/types": "7.1.0-alpha.44", + "@storybook/manager-api": "7.1.0-beta.2", + "@storybook/preview-api": "7.1.0-beta.2", + "@storybook/theming": "7.1.0-beta.2", + "@storybook/types": "7.1.0-beta.2", "axe-core": "^4.2.0", "lodash": "^4.17.21", "react-resize-detector": "^7.1.2" diff --git a/code/addons/actions/package.json b/code/addons/actions/package.json index 6efbfaf57eda..1077c45c56d5 100644 --- a/code/addons/actions/package.json +++ b/code/addons/actions/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-actions", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Get UI feedback when an action is performed on an interactive element", "keywords": [ "storybook", @@ -80,14 +80,14 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/client-logger": "7.1.0-alpha.44", - "@storybook/components": "7.1.0-alpha.44", - "@storybook/core-events": "7.1.0-alpha.44", + "@storybook/client-logger": "7.1.0-beta.2", + "@storybook/components": "7.1.0-beta.2", + "@storybook/core-events": "7.1.0-beta.2", "@storybook/global": "^5.0.0", - "@storybook/manager-api": "7.1.0-alpha.44", - "@storybook/preview-api": "7.1.0-alpha.44", - "@storybook/theming": "7.1.0-alpha.44", - "@storybook/types": "7.1.0-alpha.44", + "@storybook/manager-api": "7.1.0-beta.2", + "@storybook/preview-api": "7.1.0-beta.2", + "@storybook/theming": "7.1.0-beta.2", + "@storybook/types": "7.1.0-beta.2", "dequal": "^2.0.2", "lodash": "^4.17.21", "polished": "^4.2.2", diff --git a/code/addons/backgrounds/package.json b/code/addons/backgrounds/package.json index b4ffece0495b..82a51a3cf285 100644 --- a/code/addons/backgrounds/package.json +++ b/code/addons/backgrounds/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-backgrounds", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Switch backgrounds to view components in different settings", "keywords": [ "addon", @@ -76,14 +76,14 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/client-logger": "7.1.0-alpha.44", - "@storybook/components": "7.1.0-alpha.44", - "@storybook/core-events": "7.1.0-alpha.44", + "@storybook/client-logger": "7.1.0-beta.2", + "@storybook/components": "7.1.0-beta.2", + "@storybook/core-events": "7.1.0-beta.2", "@storybook/global": "^5.0.0", - "@storybook/manager-api": "7.1.0-alpha.44", - "@storybook/preview-api": "7.1.0-alpha.44", - "@storybook/theming": "7.1.0-alpha.44", - "@storybook/types": "7.1.0-alpha.44", + "@storybook/manager-api": "7.1.0-beta.2", + "@storybook/preview-api": "7.1.0-beta.2", + "@storybook/theming": "7.1.0-beta.2", + "@storybook/types": "7.1.0-beta.2", "memoizerific": "^1.11.3", "ts-dedent": "^2.0.0" }, diff --git a/code/addons/controls/package.json b/code/addons/controls/package.json index 388b9decb1ba..cbe2d9c79275 100644 --- a/code/addons/controls/package.json +++ b/code/addons/controls/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-controls", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Interact with component inputs dynamically in the Storybook UI", "keywords": [ "addon", @@ -68,15 +68,15 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/blocks": "7.1.0-alpha.44", - "@storybook/client-logger": "7.1.0-alpha.44", - "@storybook/components": "7.1.0-alpha.44", - "@storybook/core-common": "7.1.0-alpha.44", - "@storybook/manager-api": "7.1.0-alpha.44", - "@storybook/node-logger": "7.1.0-alpha.44", - "@storybook/preview-api": "7.1.0-alpha.44", - "@storybook/theming": "7.1.0-alpha.44", - "@storybook/types": "7.1.0-alpha.44", + "@storybook/blocks": "7.1.0-beta.2", + "@storybook/client-logger": "7.1.0-beta.2", + "@storybook/components": "7.1.0-beta.2", + "@storybook/core-common": "7.1.0-beta.2", + "@storybook/manager-api": "7.1.0-beta.2", + "@storybook/node-logger": "7.1.0-beta.2", + "@storybook/preview-api": "7.1.0-beta.2", + "@storybook/theming": "7.1.0-beta.2", + "@storybook/types": "7.1.0-beta.2", "lodash": "^4.17.21", "ts-dedent": "^2.0.0" }, diff --git a/code/addons/docs/package.json b/code/addons/docs/package.json index 0e40b212d8d8..0d159cc3e506 100644 --- a/code/addons/docs/package.json +++ b/code/addons/docs/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-docs", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Document component usage and properties in Markdown", "keywords": [ "addon", @@ -99,19 +99,19 @@ "dependencies": { "@jest/transform": "^29.3.1", "@mdx-js/react": "^2.1.5", - "@storybook/blocks": "7.1.0-alpha.44", - "@storybook/client-logger": "7.1.0-alpha.44", - "@storybook/components": "7.1.0-alpha.44", - "@storybook/csf-plugin": "7.1.0-alpha.44", - "@storybook/csf-tools": "7.1.0-alpha.44", + "@storybook/blocks": "7.1.0-beta.2", + "@storybook/client-logger": "7.1.0-beta.2", + "@storybook/components": "7.1.0-beta.2", + "@storybook/csf-plugin": "7.1.0-beta.2", + "@storybook/csf-tools": "7.1.0-beta.2", "@storybook/global": "^5.0.0", "@storybook/mdx2-csf": "^1.0.0", - "@storybook/node-logger": "7.1.0-alpha.44", - "@storybook/postinstall": "7.1.0-alpha.44", - "@storybook/preview-api": "7.1.0-alpha.44", - "@storybook/react-dom-shim": "7.1.0-alpha.44", - "@storybook/theming": "7.1.0-alpha.44", - "@storybook/types": "7.1.0-alpha.44", + "@storybook/node-logger": "7.1.0-beta.2", + "@storybook/postinstall": "7.1.0-beta.2", + "@storybook/preview-api": "7.1.0-beta.2", + "@storybook/react-dom-shim": "7.1.0-beta.2", + "@storybook/theming": "7.1.0-beta.2", + "@storybook/types": "7.1.0-beta.2", "fs-extra": "^11.1.0", "remark-external-links": "^8.0.0", "remark-slug": "^6.0.0", diff --git a/code/addons/docs/template/stories/toc/basic.stories.ts b/code/addons/docs/template/stories/toc/basic.stories.ts new file mode 100644 index 000000000000..63938a400e8f --- /dev/null +++ b/code/addons/docs/template/stories/toc/basic.stories.ts @@ -0,0 +1,14 @@ +import { global as globalThis } from '@storybook/global'; + +export default { + component: globalThis.Components.Button, + tags: ['autodocs'], + parameters: { + chromatic: { disable: true }, + docs: { toc: {} }, + }, +}; + +export const One = { args: { label: 'One' } }; +export const Two = { args: { label: 'Two' } }; +export const Three = { args: { label: 'Three' } }; diff --git a/code/addons/docs/template/stories/toc/custom-selector.stories.ts b/code/addons/docs/template/stories/toc/custom-selector.stories.ts new file mode 100644 index 000000000000..e031366aa829 --- /dev/null +++ b/code/addons/docs/template/stories/toc/custom-selector.stories.ts @@ -0,0 +1,15 @@ +import { global as globalThis } from '@storybook/global'; + +export default { + component: globalThis.Components.Button, + tags: ['autodocs'], + parameters: { + chromatic: { disable: true }, + // Select all the headings in the document + docs: { toc: { headingSelector: 'h1, h2, h3' } }, + }, +}; + +export const One = { args: { label: 'One' } }; +export const Two = { args: { label: 'Two' } }; +export const Three = { args: { label: 'Three' } }; diff --git a/code/addons/docs/template/stories/toc/custom-title.stories.ts b/code/addons/docs/template/stories/toc/custom-title.stories.ts new file mode 100644 index 000000000000..69303e905cd0 --- /dev/null +++ b/code/addons/docs/template/stories/toc/custom-title.stories.ts @@ -0,0 +1,15 @@ +import { global as globalThis } from '@storybook/global'; + +export default { + component: globalThis.Components.Button, + tags: ['autodocs'], + parameters: { + chromatic: { disable: true }, + // Custom title label + docs: { toc: { title: 'Contents' } }, + }, +}; + +export const One = { args: { label: 'One' } }; +export const Two = { args: { label: 'Two' } }; +export const Three = { args: { label: 'Three' } }; diff --git a/code/addons/docs/template/stories/toc/ignore-selector.stories.ts b/code/addons/docs/template/stories/toc/ignore-selector.stories.ts new file mode 100644 index 000000000000..61ae6d12f2a7 --- /dev/null +++ b/code/addons/docs/template/stories/toc/ignore-selector.stories.ts @@ -0,0 +1,15 @@ +import { global as globalThis } from '@storybook/global'; + +export default { + component: globalThis.Components.Button, + tags: ['autodocs'], + parameters: { + chromatic: { disable: true }, + // Skip the first story in the TOC + docs: { toc: { ignoreSelector: '#one' } }, + }, +}; + +export const One = { args: { label: 'One' } }; +export const Two = { args: { label: 'Two' } }; +export const Three = { args: { label: 'Three' } }; diff --git a/code/addons/essentials/package.json b/code/addons/essentials/package.json index b1e7fe83ef4b..1976cbfb456a 100644 --- a/code/addons/essentials/package.json +++ b/code/addons/essentials/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-essentials", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Curated addons to bring out the best of Storybook", "keywords": [ "addon", @@ -119,23 +119,23 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/addon-actions": "7.1.0-alpha.44", - "@storybook/addon-backgrounds": "7.1.0-alpha.44", - "@storybook/addon-controls": "7.1.0-alpha.44", - "@storybook/addon-docs": "7.1.0-alpha.44", - "@storybook/addon-highlight": "7.1.0-alpha.44", - "@storybook/addon-measure": "7.1.0-alpha.44", - "@storybook/addon-outline": "7.1.0-alpha.44", - "@storybook/addon-toolbars": "7.1.0-alpha.44", - "@storybook/addon-viewport": "7.1.0-alpha.44", - "@storybook/core-common": "7.1.0-alpha.44", - "@storybook/manager-api": "7.1.0-alpha.44", - "@storybook/node-logger": "7.1.0-alpha.44", - "@storybook/preview-api": "7.1.0-alpha.44", + "@storybook/addon-actions": "7.1.0-beta.2", + "@storybook/addon-backgrounds": "7.1.0-beta.2", + "@storybook/addon-controls": "7.1.0-beta.2", + "@storybook/addon-docs": "7.1.0-beta.2", + "@storybook/addon-highlight": "7.1.0-beta.2", + "@storybook/addon-measure": "7.1.0-beta.2", + "@storybook/addon-outline": "7.1.0-beta.2", + "@storybook/addon-toolbars": "7.1.0-beta.2", + "@storybook/addon-viewport": "7.1.0-beta.2", + "@storybook/core-common": "7.1.0-beta.2", + "@storybook/manager-api": "7.1.0-beta.2", + "@storybook/node-logger": "7.1.0-beta.2", + "@storybook/preview-api": "7.1.0-beta.2", "ts-dedent": "^2.0.0" }, "devDependencies": { - "@storybook/vue": "7.1.0-alpha.44", + "@storybook/vue": "7.1.0-beta.2", "typescript": "^4.9.3" }, "peerDependencies": { diff --git a/code/addons/gfm/package.json b/code/addons/gfm/package.json index cddb402e6475..16eb49007c2c 100644 --- a/code/addons/gfm/package.json +++ b/code/addons/gfm/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-mdx-gfm", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "GitHub Flavored Markdown in Storybook", "keywords": [ "addon", @@ -51,7 +51,7 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/node-logger": "7.1.0-alpha.44", + "@storybook/node-logger": "7.1.0-beta.2", "remark-gfm": "^3.0.1", "ts-dedent": "^2.0.0" }, diff --git a/code/addons/highlight/package.json b/code/addons/highlight/package.json index 20beeeb6da18..43d94ef80006 100644 --- a/code/addons/highlight/package.json +++ b/code/addons/highlight/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-highlight", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Highlight DOM nodes within your stories", "keywords": [ "storybook-addons", @@ -61,9 +61,9 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/core-events": "7.1.0-alpha.44", + "@storybook/core-events": "7.1.0-beta.2", "@storybook/global": "^5.0.0", - "@storybook/preview-api": "7.1.0-alpha.44" + "@storybook/preview-api": "7.1.0-beta.2" }, "devDependencies": { "@types/webpack-env": "^1.16.0", diff --git a/code/addons/interactions/package.json b/code/addons/interactions/package.json index f9c1477b18eb..b549ebe7929f 100644 --- a/code/addons/interactions/package.json +++ b/code/addons/interactions/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-interactions", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Automate, test and debug user interactions", "keywords": [ "storybook-addons", @@ -72,16 +72,16 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/client-logger": "7.1.0-alpha.44", - "@storybook/components": "7.1.0-alpha.44", - "@storybook/core-common": "7.1.0-alpha.44", - "@storybook/core-events": "7.1.0-alpha.44", + "@storybook/client-logger": "7.1.0-beta.2", + "@storybook/components": "7.1.0-beta.2", + "@storybook/core-common": "7.1.0-beta.2", + "@storybook/core-events": "7.1.0-beta.2", "@storybook/global": "^5.0.0", - "@storybook/instrumenter": "7.1.0-alpha.44", - "@storybook/manager-api": "7.1.0-alpha.44", - "@storybook/preview-api": "7.1.0-alpha.44", - "@storybook/theming": "7.1.0-alpha.44", - "@storybook/types": "7.1.0-alpha.44", + "@storybook/instrumenter": "7.1.0-beta.2", + "@storybook/manager-api": "7.1.0-beta.2", + "@storybook/preview-api": "7.1.0-beta.2", + "@storybook/theming": "7.1.0-beta.2", + "@storybook/types": "7.1.0-beta.2", "jest-mock": "^29.5.0", "polished": "^4.2.2", "ts-dedent": "^2.2.0" diff --git a/code/addons/jest/package.json b/code/addons/jest/package.json index 424ca2bb7501..dacc8b922386 100644 --- a/code/addons/jest/package.json +++ b/code/addons/jest/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-jest", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "React storybook addon that show component jest report", "keywords": [ "addon", @@ -70,13 +70,13 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/client-logger": "7.1.0-alpha.44", - "@storybook/components": "7.1.0-alpha.44", - "@storybook/core-events": "7.1.0-alpha.44", + "@storybook/client-logger": "7.1.0-beta.2", + "@storybook/components": "7.1.0-beta.2", + "@storybook/core-events": "7.1.0-beta.2", "@storybook/global": "^5.0.0", - "@storybook/manager-api": "7.1.0-alpha.44", - "@storybook/preview-api": "7.1.0-alpha.44", - "@storybook/theming": "7.1.0-alpha.44", + "@storybook/manager-api": "7.1.0-beta.2", + "@storybook/preview-api": "7.1.0-beta.2", + "@storybook/theming": "7.1.0-beta.2", "react-resize-detector": "^7.1.2", "tiny-invariant": "^1.3.1", "upath": "^2.0.1" diff --git a/code/addons/links/package.json b/code/addons/links/package.json index 8a1853492a89..91fd1daf25af 100644 --- a/code/addons/links/package.json +++ b/code/addons/links/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-links", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Link stories together to build demos and prototypes with your UI components", "keywords": [ "addon", @@ -80,14 +80,14 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/client-logger": "7.1.0-alpha.44", - "@storybook/core-events": "7.1.0-alpha.44", + "@storybook/client-logger": "7.1.0-beta.2", + "@storybook/core-events": "7.1.0-beta.2", "@storybook/csf": "^0.1.0", "@storybook/global": "^5.0.0", - "@storybook/manager-api": "7.1.0-alpha.44", - "@storybook/preview-api": "7.1.0-alpha.44", - "@storybook/router": "7.1.0-alpha.44", - "@storybook/types": "7.1.0-alpha.44", + "@storybook/manager-api": "7.1.0-beta.2", + "@storybook/preview-api": "7.1.0-beta.2", + "@storybook/router": "7.1.0-beta.2", + "@storybook/types": "7.1.0-beta.2", "prop-types": "^15.7.2", "ts-dedent": "^2.0.0" }, diff --git a/code/addons/measure/package.json b/code/addons/measure/package.json index 9f9a92e5ca40..eed59cf5f3c3 100644 --- a/code/addons/measure/package.json +++ b/code/addons/measure/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-measure", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Inspect layouts by visualizing the box model", "keywords": [ "storybook-addons", @@ -75,13 +75,13 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/client-logger": "7.1.0-alpha.44", - "@storybook/components": "7.1.0-alpha.44", - "@storybook/core-events": "7.1.0-alpha.44", + "@storybook/client-logger": "7.1.0-beta.2", + "@storybook/components": "7.1.0-beta.2", + "@storybook/core-events": "7.1.0-beta.2", "@storybook/global": "^5.0.0", - "@storybook/manager-api": "7.1.0-alpha.44", - "@storybook/preview-api": "7.1.0-alpha.44", - "@storybook/types": "7.1.0-alpha.44", + "@storybook/manager-api": "7.1.0-beta.2", + "@storybook/preview-api": "7.1.0-beta.2", + "@storybook/types": "7.1.0-beta.2", "tiny-invariant": "^1.3.1" }, "devDependencies": { diff --git a/code/addons/outline/package.json b/code/addons/outline/package.json index 9f5e29fca187..37fda06aeb99 100644 --- a/code/addons/outline/package.json +++ b/code/addons/outline/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-outline", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Outline all elements with CSS to help with layout placement and alignment", "keywords": [ "storybook-addons", @@ -78,13 +78,13 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/client-logger": "7.1.0-alpha.44", - "@storybook/components": "7.1.0-alpha.44", - "@storybook/core-events": "7.1.0-alpha.44", + "@storybook/client-logger": "7.1.0-beta.2", + "@storybook/components": "7.1.0-beta.2", + "@storybook/core-events": "7.1.0-beta.2", "@storybook/global": "^5.0.0", - "@storybook/manager-api": "7.1.0-alpha.44", - "@storybook/preview-api": "7.1.0-alpha.44", - "@storybook/types": "7.1.0-alpha.44", + "@storybook/manager-api": "7.1.0-beta.2", + "@storybook/preview-api": "7.1.0-beta.2", + "@storybook/types": "7.1.0-beta.2", "ts-dedent": "^2.0.0" }, "devDependencies": { diff --git a/code/addons/storyshots-core/package.json b/code/addons/storyshots-core/package.json index 5debfd0470ac..d6fa42167a65 100644 --- a/code/addons/storyshots-core/package.json +++ b/code/addons/storyshots-core/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-storyshots", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Take a code snapshot of every story automatically with Jest", "keywords": [ "addon", @@ -38,12 +38,12 @@ "dependencies": { "@jest/transform": "^29.3.1", "@storybook/babel-plugin-require-context-hook": "1.0.1", - "@storybook/client-api": "7.1.0-alpha.44", - "@storybook/core-common": "7.1.0-alpha.44", - "@storybook/core-webpack": "7.1.0-alpha.44", + "@storybook/client-api": "7.1.0-beta.2", + "@storybook/core-common": "7.1.0-beta.2", + "@storybook/core-webpack": "7.1.0-beta.2", "@storybook/global": "^5.0.0", - "@storybook/preview-api": "7.1.0-alpha.44", - "@storybook/types": "7.1.0-alpha.44", + "@storybook/preview-api": "7.1.0-beta.2", + "@storybook/types": "7.1.0-beta.2", "@types/jest-specific-snapshot": "^0.5.6", "glob": "^10.0.0", "jest-specific-snapshot": "^8.0.0", @@ -57,11 +57,11 @@ "@angular/core": "^16.0.0-rc.4", "@angular/platform-browser-dynamic": "^16.0.0-rc.4", "@emotion/jest": "^11.8.0", - "@storybook/addon-docs": "7.1.0-alpha.44", - "@storybook/angular": "7.1.0-alpha.44", - "@storybook/react": "7.1.0-alpha.44", - "@storybook/vue": "7.1.0-alpha.44", - "@storybook/vue3": "7.1.0-alpha.44", + "@storybook/addon-docs": "7.1.0-beta.2", + "@storybook/angular": "7.1.0-beta.2", + "@storybook/react": "7.1.0-beta.2", + "@storybook/vue": "7.1.0-beta.2", + "@storybook/vue3": "7.1.0-beta.2", "babel-loader": "^9.1.2", "enzyme": "^3.11.0", "enzyme-adapter-react-16": "^1.15.5", diff --git a/code/addons/storyshots-puppeteer/package.json b/code/addons/storyshots-puppeteer/package.json index 4bb7266855b3..cc0043c07d59 100644 --- a/code/addons/storyshots-puppeteer/package.json +++ b/code/addons/storyshots-puppeteer/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-storyshots-puppeteer", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Image snapshots addition to StoryShots based on puppeteer", "keywords": [ "addon", @@ -37,8 +37,8 @@ "dependencies": { "@axe-core/puppeteer": "^4.2.0", "@storybook/csf": "^0.1.0", - "@storybook/node-logger": "7.1.0-alpha.44", - "@storybook/types": "7.1.0-alpha.44", + "@storybook/node-logger": "7.1.0-beta.2", + "@storybook/types": "7.1.0-beta.2", "@types/jest-image-snapshot": "^6.0.0", "jest-image-snapshot": "^6.0.0" }, @@ -49,7 +49,7 @@ "puppeteer": "^2.0.0 || ^3.0.0" }, "peerDependencies": { - "@storybook/addon-storyshots": "7.1.0-alpha.44", + "@storybook/addon-storyshots": "7.1.0-beta.2", "puppeteer": ">=2.0.0" }, "peerDependenciesMeta": { diff --git a/code/addons/storysource/package.json b/code/addons/storysource/package.json index 034db1a732b3..a4fef2b10a67 100644 --- a/code/addons/storysource/package.json +++ b/code/addons/storysource/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-storysource", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "View a story’s source code to see how it works and paste into your app", "keywords": [ "addon", @@ -53,13 +53,13 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/client-logger": "7.1.0-alpha.44", - "@storybook/components": "7.1.0-alpha.44", - "@storybook/manager-api": "7.1.0-alpha.44", - "@storybook/preview-api": "7.1.0-alpha.44", - "@storybook/router": "7.1.0-alpha.44", - "@storybook/source-loader": "7.1.0-alpha.44", - "@storybook/theming": "7.1.0-alpha.44", + "@storybook/client-logger": "7.1.0-beta.2", + "@storybook/components": "7.1.0-beta.2", + "@storybook/manager-api": "7.1.0-beta.2", + "@storybook/preview-api": "7.1.0-beta.2", + "@storybook/router": "7.1.0-beta.2", + "@storybook/source-loader": "7.1.0-beta.2", + "@storybook/theming": "7.1.0-beta.2", "estraverse": "^5.2.0", "prop-types": "^15.7.2", "react-syntax-highlighter": "^15.5.0", diff --git a/code/addons/toolbars/package.json b/code/addons/toolbars/package.json index 41181c656524..c57907a3a04c 100644 --- a/code/addons/toolbars/package.json +++ b/code/addons/toolbars/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-toolbars", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Create your own toolbar items that control story rendering", "keywords": [ "addon", @@ -68,11 +68,11 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/client-logger": "7.1.0-alpha.44", - "@storybook/components": "7.1.0-alpha.44", - "@storybook/manager-api": "7.1.0-alpha.44", - "@storybook/preview-api": "7.1.0-alpha.44", - "@storybook/theming": "7.1.0-alpha.44" + "@storybook/client-logger": "7.1.0-beta.2", + "@storybook/components": "7.1.0-beta.2", + "@storybook/manager-api": "7.1.0-beta.2", + "@storybook/preview-api": "7.1.0-beta.2", + "@storybook/theming": "7.1.0-beta.2" }, "devDependencies": { "typescript": "~4.9.3" diff --git a/code/addons/viewport/package.json b/code/addons/viewport/package.json index 43f46b1f5cc5..39a1de123195 100644 --- a/code/addons/viewport/package.json +++ b/code/addons/viewport/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-viewport", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Build responsive components by adjusting Storybook’s viewport size and orientation", "keywords": [ "addon", @@ -73,13 +73,13 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/client-logger": "7.1.0-alpha.44", - "@storybook/components": "7.1.0-alpha.44", - "@storybook/core-events": "7.1.0-alpha.44", + "@storybook/client-logger": "7.1.0-beta.2", + "@storybook/components": "7.1.0-beta.2", + "@storybook/core-events": "7.1.0-beta.2", "@storybook/global": "^5.0.0", - "@storybook/manager-api": "7.1.0-alpha.44", - "@storybook/preview-api": "7.1.0-alpha.44", - "@storybook/theming": "7.1.0-alpha.44", + "@storybook/manager-api": "7.1.0-beta.2", + "@storybook/preview-api": "7.1.0-beta.2", + "@storybook/theming": "7.1.0-beta.2", "memoizerific": "^1.11.3", "prop-types": "^15.7.2" }, diff --git a/code/builders/builder-manager/package.json b/code/builders/builder-manager/package.json index 8774d488d279..34b407ee4683 100644 --- a/code/builders/builder-manager/package.json +++ b/code/builders/builder-manager/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/builder-manager", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook manager builder", "keywords": [ "storybook" @@ -44,9 +44,9 @@ }, "dependencies": { "@fal-works/esbuild-plugin-global-externals": "^2.1.2", - "@storybook/core-common": "7.1.0-alpha.44", - "@storybook/manager": "7.1.0-alpha.44", - "@storybook/node-logger": "7.1.0-alpha.44", + "@storybook/core-common": "7.1.0-beta.2", + "@storybook/manager": "7.1.0-beta.2", + "@storybook/node-logger": "7.1.0-beta.2", "@types/ejs": "^3.1.1", "@types/find-cache-dir": "^3.2.1", "@yarnpkg/esbuild-plugin-pnp": "^3.0.0-rc.10", diff --git a/code/builders/builder-manager/src/index.ts b/code/builders/builder-manager/src/index.ts index 3597a206ec46..e2bdf248be82 100644 --- a/code/builders/builder-manager/src/index.ts +++ b/code/builders/builder-manager/src/index.ts @@ -190,7 +190,6 @@ const starter: StarterFunction = async function* starterGeneratorFn({ } }); router.use(`/index.html`, ({ path }, res) => { - console.log({ path }); res.status(200).send(html); }); diff --git a/code/builders/builder-vite/package.json b/code/builders/builder-vite/package.json index 869e3a681285..51644bb7874a 100644 --- a/code/builders/builder-vite/package.json +++ b/code/builders/builder-vite/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/builder-vite", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "A plugin to run and build Storybooks with Vite", "homepage": "https://github.com/storybookjs/storybook/tree/next/code/builders/builder-vite/#readme", "bugs": { @@ -42,15 +42,15 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/channels": "7.1.0-alpha.44", - "@storybook/client-logger": "7.1.0-alpha.44", - "@storybook/core-common": "7.1.0-alpha.44", - "@storybook/csf-plugin": "7.1.0-alpha.44", + "@storybook/channels": "7.1.0-beta.2", + "@storybook/client-logger": "7.1.0-beta.2", + "@storybook/core-common": "7.1.0-beta.2", + "@storybook/csf-plugin": "7.1.0-beta.2", "@storybook/mdx2-csf": "^1.0.0", - "@storybook/node-logger": "7.1.0-alpha.44", - "@storybook/preview": "7.1.0-alpha.44", - "@storybook/preview-api": "7.1.0-alpha.44", - "@storybook/types": "7.1.0-alpha.44", + "@storybook/node-logger": "7.1.0-beta.2", + "@storybook/preview": "7.1.0-beta.2", + "@storybook/preview-api": "7.1.0-beta.2", + "@storybook/types": "7.1.0-beta.2", "@types/find-cache-dir": "^3.2.1", "browser-assert": "^1.2.1", "es-module-lexer": "^0.9.3", diff --git a/code/builders/builder-webpack5/package.json b/code/builders/builder-webpack5/package.json index 99c072999320..8c9922a5f019 100644 --- a/code/builders/builder-webpack5/package.json +++ b/code/builders/builder-webpack5/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/builder-webpack5", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook framework-agnostic API", "keywords": [ "storybook" @@ -56,24 +56,24 @@ }, "dependencies": { "@babel/core": "^7.22.0", - "@storybook/addons": "7.1.0-alpha.44", - "@storybook/api": "7.1.0-alpha.44", - "@storybook/channel-postmessage": "7.1.0-alpha.44", - "@storybook/channels": "7.1.0-alpha.44", - "@storybook/client-api": "7.1.0-alpha.44", - "@storybook/client-logger": "7.1.0-alpha.44", - "@storybook/components": "7.1.0-alpha.44", - "@storybook/core-common": "7.1.0-alpha.44", - "@storybook/core-events": "7.1.0-alpha.44", - "@storybook/core-webpack": "7.1.0-alpha.44", + "@storybook/addons": "7.1.0-beta.2", + "@storybook/api": "7.1.0-beta.2", + "@storybook/channel-postmessage": "7.1.0-beta.2", + "@storybook/channels": "7.1.0-beta.2", + "@storybook/client-api": "7.1.0-beta.2", + "@storybook/client-logger": "7.1.0-beta.2", + "@storybook/components": "7.1.0-beta.2", + "@storybook/core-common": "7.1.0-beta.2", + "@storybook/core-events": "7.1.0-beta.2", + "@storybook/core-webpack": "7.1.0-beta.2", "@storybook/global": "^5.0.0", - "@storybook/manager-api": "7.1.0-alpha.44", - "@storybook/node-logger": "7.1.0-alpha.44", - "@storybook/preview": "7.1.0-alpha.44", - "@storybook/preview-api": "7.1.0-alpha.44", - "@storybook/router": "7.1.0-alpha.44", - "@storybook/store": "7.1.0-alpha.44", - "@storybook/theming": "7.1.0-alpha.44", + "@storybook/manager-api": "7.1.0-beta.2", + "@storybook/node-logger": "7.1.0-beta.2", + "@storybook/preview": "7.1.0-beta.2", + "@storybook/preview-api": "7.1.0-beta.2", + "@storybook/router": "7.1.0-beta.2", + "@storybook/store": "7.1.0-beta.2", + "@storybook/theming": "7.1.0-beta.2", "@swc/core": "^1.3.49", "@types/node": "^16.0.0", "@types/semver": "^7.3.4", diff --git a/code/deprecated/addons/package.json b/code/deprecated/addons/package.json index b39c4f4dea59..a3627edc0ffb 100644 --- a/code/deprecated/addons/package.json +++ b/code/deprecated/addons/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addons", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook addons store", "keywords": [ "storybook" @@ -44,9 +44,9 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/manager-api": "7.1.0-alpha.44", - "@storybook/preview-api": "7.1.0-alpha.44", - "@storybook/types": "7.1.0-alpha.44" + "@storybook/manager-api": "7.1.0-beta.2", + "@storybook/preview-api": "7.1.0-beta.2", + "@storybook/types": "7.1.0-beta.2" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0", diff --git a/code/deprecated/channel-postmessage/package.json b/code/deprecated/channel-postmessage/package.json index ac53e71917dc..81e1fd194a87 100644 --- a/code/deprecated/channel-postmessage/package.json +++ b/code/deprecated/channel-postmessage/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/channel-postmessage", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "", "keywords": [ "storybook" @@ -43,8 +43,8 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/channels": "7.1.0-alpha.44", - "@storybook/client-logger": "7.1.0-alpha.44" + "@storybook/channels": "7.1.0-beta.2", + "@storybook/client-logger": "7.1.0-beta.2" }, "devDependencies": { "typescript": "~4.9.3" diff --git a/code/deprecated/channel-websocket/package.json b/code/deprecated/channel-websocket/package.json index 1eb69b5e8f05..47656948bb30 100644 --- a/code/deprecated/channel-websocket/package.json +++ b/code/deprecated/channel-websocket/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/channel-websocket", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "", "keywords": [ "storybook" @@ -43,8 +43,8 @@ "prep": "../../../scripts/prepare/facade.ts" }, "dependencies": { - "@storybook/channels": "7.1.0-alpha.44", - "@storybook/client-logger": "7.1.0-alpha.44" + "@storybook/channels": "7.1.0-beta.2", + "@storybook/client-logger": "7.1.0-beta.2" }, "devDependencies": { "typescript": "~4.9.3" diff --git a/code/deprecated/client-api/package.json b/code/deprecated/client-api/package.json index 5e4c9cfcdcb7..6a38b2f6f76a 100644 --- a/code/deprecated/client-api/package.json +++ b/code/deprecated/client-api/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/client-api", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook Client API", "keywords": [ "storybook" @@ -42,8 +42,8 @@ "prep": "../../../scripts/prepare/facade.ts" }, "dependencies": { - "@storybook/client-logger": "7.1.0-alpha.44", - "@storybook/preview-api": "7.1.0-alpha.44" + "@storybook/client-logger": "7.1.0-beta.2", + "@storybook/preview-api": "7.1.0-beta.2" }, "publishConfig": { "access": "public" diff --git a/code/deprecated/core-client/package.json b/code/deprecated/core-client/package.json index 4dbe7d89ffa8..eb00e56ee639 100644 --- a/code/deprecated/core-client/package.json +++ b/code/deprecated/core-client/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/core-client", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook framework-agnostic API", "keywords": [ "storybook" @@ -35,8 +35,8 @@ "prep": "../../../scripts/prepare/facade.ts" }, "dependencies": { - "@storybook/client-logger": "7.1.0-alpha.44", - "@storybook/preview-api": "7.1.0-alpha.44" + "@storybook/client-logger": "7.1.0-beta.2", + "@storybook/preview-api": "7.1.0-beta.2" }, "publishConfig": { "access": "public" diff --git a/code/deprecated/manager-api-shim/package.json b/code/deprecated/manager-api-shim/package.json index 428855cb81d6..e2605dec1d0a 100644 --- a/code/deprecated/manager-api-shim/package.json +++ b/code/deprecated/manager-api-shim/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/api", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook Manager API (facade)", "keywords": [ "storybook" @@ -42,8 +42,8 @@ "prep": "../../../scripts/prepare/facade.ts" }, "dependencies": { - "@storybook/client-logger": "7.1.0-alpha.44", - "@storybook/manager-api": "7.1.0-alpha.44" + "@storybook/client-logger": "7.1.0-beta.2", + "@storybook/manager-api": "7.1.0-beta.2" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0", diff --git a/code/deprecated/preview-web/package.json b/code/deprecated/preview-web/package.json index 4f42e90380e2..e8bf96b6aa9b 100644 --- a/code/deprecated/preview-web/package.json +++ b/code/deprecated/preview-web/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/preview-web", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "", "keywords": [ "storybook" @@ -42,8 +42,8 @@ "prep": "../../../scripts/prepare/facade.ts" }, "dependencies": { - "@storybook/client-logger": "7.1.0-alpha.44", - "@storybook/preview-api": "7.1.0-alpha.44" + "@storybook/client-logger": "7.1.0-beta.2", + "@storybook/preview-api": "7.1.0-beta.2" }, "publishConfig": { "access": "public" diff --git a/code/deprecated/store/package.json b/code/deprecated/store/package.json index 135dc89f8f1c..46822ab2e75e 100644 --- a/code/deprecated/store/package.json +++ b/code/deprecated/store/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/store", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "", "keywords": [ "storybook" @@ -42,8 +42,8 @@ "prep": "../../../scripts/prepare/facade.ts" }, "dependencies": { - "@storybook/client-logger": "7.1.0-alpha.44", - "@storybook/preview-api": "7.1.0-alpha.44" + "@storybook/client-logger": "7.1.0-beta.2", + "@storybook/preview-api": "7.1.0-beta.2" }, "publishConfig": { "access": "public" diff --git a/code/e2e-tests/addon-actions.spec.ts b/code/e2e-tests/addon-actions.spec.ts index a38b6b82d118..c1a5dff84959 100644 --- a/code/e2e-tests/addon-actions.spec.ts +++ b/code/e2e-tests/addon-actions.spec.ts @@ -5,6 +5,11 @@ import { SbPage } from './util'; const storybookUrl = process.env.STORYBOOK_URL || 'http://localhost:8001'; test.describe('addon-actions', () => { + test.afterEach(async ({ page }) => { + await page.evaluate(() => window.localStorage.clear()); + await page.evaluate(() => window.sessionStorage.clear()); + }); + test.beforeEach(async ({ page }) => { await page.goto(storybookUrl); await new SbPage(page).waitUntilLoaded(); diff --git a/code/e2e-tests/addon-backgrounds.spec.ts b/code/e2e-tests/addon-backgrounds.spec.ts index 29ab0cbd1957..689172c4be17 100644 --- a/code/e2e-tests/addon-backgrounds.spec.ts +++ b/code/e2e-tests/addon-backgrounds.spec.ts @@ -6,6 +6,11 @@ const storybookUrl = process.env.STORYBOOK_URL || 'http://localhost:8001'; const templateName = process.env.STORYBOOK_TEMPLATE_NAME; test.describe('addon-backgrounds', () => { + test.afterEach(async ({ page }) => { + await page.evaluate(() => window.localStorage.clear()); + await page.evaluate(() => window.sessionStorage.clear()); + }); + test.beforeEach(async ({ page }) => { await page.goto(storybookUrl); await new SbPage(page).waitUntilLoaded(); diff --git a/code/e2e-tests/addon-controls.spec.ts b/code/e2e-tests/addon-controls.spec.ts index bcbf96019947..388398def9b2 100644 --- a/code/e2e-tests/addon-controls.spec.ts +++ b/code/e2e-tests/addon-controls.spec.ts @@ -5,6 +5,11 @@ import { SbPage } from './util'; const storybookUrl = process.env.STORYBOOK_URL || 'http://localhost:8001'; test.describe('addon-controls', () => { + test.afterEach(async ({ page }) => { + await page.evaluate(() => window.localStorage.clear()); + await page.evaluate(() => window.sessionStorage.clear()); + }); + test('should change component when changing controls', async ({ page }) => { await page.goto(storybookUrl); const sbPage = new SbPage(page); diff --git a/code/e2e-tests/addon-docs.spec.ts b/code/e2e-tests/addon-docs.spec.ts index 0f318f9f657d..9255c467275a 100644 --- a/code/e2e-tests/addon-docs.spec.ts +++ b/code/e2e-tests/addon-docs.spec.ts @@ -14,6 +14,10 @@ test.describe('addon-docs', () => { await page.goto(storybookUrl); await new SbPage(page).waitUntilLoaded(); }); + test.afterEach(async ({ page }) => { + await page.evaluate(() => window.localStorage.clear()); + await page.evaluate(() => window.sessionStorage.clear()); + }); test('should show descriptions for stories', async ({ page }) => { const skipped = [ diff --git a/code/e2e-tests/addon-interactions.spec.ts b/code/e2e-tests/addon-interactions.spec.ts index 063cfd14cefd..8305f3f40926 100644 --- a/code/e2e-tests/addon-interactions.spec.ts +++ b/code/e2e-tests/addon-interactions.spec.ts @@ -11,6 +11,10 @@ test.describe('addon-interactions', () => { await page.goto(storybookUrl); await new SbPage(page).waitUntilLoaded(); }); + test.afterEach(async ({ page }) => { + await page.evaluate(() => window.localStorage.clear()); + await page.evaluate(() => window.sessionStorage.clear()); + }); // FIXME: skip xxx test('should have interactions', async ({ page }) => { @@ -103,6 +107,12 @@ test.describe('addon-interactions', () => { await expect(interactionsTab).toContainText(/(3)/); await expect(interactionsTab).toBeVisible(); + // After debugging I found that sometimes the toolbar gets hidden, maybe some keypress or session storage issue? + // if the toolbar is hidden, this will toggle the toolbar + if (await page.locator('[offset="40"]').isHidden()) { + await page.locator('html').press('t'); + } + // Test remount state (from toolbar) - Interactions have rerun, count is correct and values are as expected const remountComponentButton = await page.locator('[title="Remount component"]'); await remountComponentButton.click(); diff --git a/code/e2e-tests/addon-viewport.spec.ts b/code/e2e-tests/addon-viewport.spec.ts index ec96a3bd93ea..38968fb794ba 100644 --- a/code/e2e-tests/addon-viewport.spec.ts +++ b/code/e2e-tests/addon-viewport.spec.ts @@ -9,6 +9,10 @@ test.describe('addon-viewport', () => { await page.goto(storybookUrl); await new SbPage(page).waitUntilLoaded(); }); + test.afterEach(async ({ page }) => { + await page.evaluate(() => window.localStorage.clear()); + await page.evaluate(() => window.sessionStorage.clear()); + }); test('should have viewport button in the toolbar', async ({ page }) => { const sbPage = new SbPage(page); diff --git a/code/e2e-tests/framework-nextjs.spec.ts b/code/e2e-tests/framework-nextjs.spec.ts index d5519251da39..a0ef84a0d257 100644 --- a/code/e2e-tests/framework-nextjs.spec.ts +++ b/code/e2e-tests/framework-nextjs.spec.ts @@ -12,7 +12,7 @@ test.describe('Next.js', () => { // and this only tests nextjs/default-js test.skip( // eslint-disable-next-line jest/valid-title - !templateName.includes('nextjs/default-js'), + !templateName?.includes('nextjs/default-js'), 'Only run this test for the Frameworks that support next/navigation' ); @@ -20,6 +20,10 @@ test.describe('Next.js', () => { await page.goto(storybookUrl); await new SbPage(page).waitUntilLoaded(); }); + test.afterEach(async ({ page }) => { + await page.evaluate(() => window.localStorage.clear()); + await page.evaluate(() => window.sessionStorage.clear()); + }); test.describe('next/image', () => { let sbPage: SbPage; diff --git a/code/e2e-tests/json-files.spec.ts b/code/e2e-tests/json-files.spec.ts index e0e29fab7c9c..12d0781beba3 100644 --- a/code/e2e-tests/json-files.spec.ts +++ b/code/e2e-tests/json-files.spec.ts @@ -9,6 +9,10 @@ test.describe('JSON files', () => { test.beforeEach(async ({ page }) => { await page.goto(storybookUrl); }); + test.afterEach(async ({ page }) => { + await page.evaluate(() => window.localStorage.clear()); + await page.evaluate(() => window.sessionStorage.clear()); + }); test('should have index.json', async ({ page }) => { test.skip( diff --git a/code/e2e-tests/manager.spec.ts b/code/e2e-tests/manager.spec.ts new file mode 100644 index 000000000000..4930ab78d70e --- /dev/null +++ b/code/e2e-tests/manager.spec.ts @@ -0,0 +1,98 @@ +import { test, expect } from '@playwright/test'; +import process from 'process'; +import { SbPage } from './util'; + +const storybookUrl = process.env.STORYBOOK_URL || 'http://localhost:8001'; + +test.describe('manager', () => { + test.beforeEach(async ({ page }) => { + await page.goto(storybookUrl); + + await new SbPage(page).waitUntilLoaded(); + }); + test.afterEach(async ({ page }) => { + await page.evaluate(() => window.localStorage.clear()); + await page.evaluate(() => window.sessionStorage.clear()); + }); + + test('shortcuts sidebar', async ({ page }) => { + const sbPage = new SbPage(page); + + await expect(sbPage.page.locator('.sidebar-container')).toBeVisible(); + + await sbPage.page.locator('html').press('s'); + await expect(sbPage.page.locator('.sidebar-container')).not.toBeVisible(); + + await sbPage.page.locator('[aria-label="Show sidebar"]').click(); + await expect(sbPage.page.locator('.sidebar-container')).toBeVisible(); + + await sbPage.page.locator('[aria-label="Shortcuts"]').click(); + await sbPage.page.locator('#list-item-S').click(); + + await expect(sbPage.page.locator('.sidebar-container')).not.toBeVisible(); + + await sbPage.page.locator('html').press('s'); + await expect(sbPage.page.locator('.sidebar-container')).toBeVisible(); + }); + + test('shortcuts toolbar', async ({ page }) => { + const sbPage = new SbPage(page); + const isToolbarShown = async () => { + const canvas = await sbPage.page.locator('div', { + has: sbPage.page.locator('> #storybook-preview-wrapper'), + }); + + return (await canvas.getAttribute('offset')) === '40'; + }; + + await expect(await isToolbarShown()).toBeTruthy(); + + await sbPage.page.locator('html').press('t'); + await expect(await isToolbarShown()).toBeFalsy(); + + await sbPage.page.locator('[aria-label="Shortcuts"]').click(); + await sbPage.page.locator('#list-item-T').click(); + await expect(await isToolbarShown()).toBeTruthy(); + }); + + test('shortcuts panel', async ({ page }) => { + const sbPage = new SbPage(page); + const isPanelsShown = async () => { + const main = await sbPage.page.locator('div', { + has: sbPage.page.locator('> * > #storybook-preview-wrapper'), + }); + + const style = await main.getAttribute('style'); + return style; + }; + + await sbPage.navigateToStory('example/button', 'primary'); + await expect(await isPanelsShown()).toBeTruthy(); + + await sbPage.page.locator('html').press('a'); + await expect(await isPanelsShown()).toBeFalsy(); + + await sbPage.page.locator('[aria-label="Shortcuts"]').click(); + await sbPage.page.locator('#list-item-A').click(); + await expect(await isPanelsShown()).toBeTruthy(); + + await sbPage.page.locator('html').press('a'); + await expect(await isPanelsShown()).toBeFalsy(); + + await sbPage.page.locator('html').press('a'); + await sbPage.page.locator('[aria-label="Shortcuts"]').click(); + await sbPage.page.locator('#list-item-D').click(); + await expect(await isPanelsShown()).toBeTruthy(); + }); + + test('settings page', async ({ page }) => { + const sbPage = new SbPage(page); + await sbPage.page.locator('[aria-label="Shortcuts"]').click(); + await sbPage.page.locator('#list-item-about').click(); + + await expect(sbPage.page.url()).toContain('/settings/about'); + + await sbPage.page.locator('[title="Close settings page"]').click(); + await expect(sbPage.page.url()).not.toContain('/settings/about'); + }); +}); diff --git a/code/e2e-tests/preview-web.spec.ts b/code/e2e-tests/preview-web.spec.ts index e44c3448f4f3..781f04b04dda 100644 --- a/code/e2e-tests/preview-web.spec.ts +++ b/code/e2e-tests/preview-web.spec.ts @@ -7,8 +7,13 @@ const storybookUrl = process.env.STORYBOOK_URL || 'http://localhost:8001'; test.describe('preview-web', () => { test.beforeEach(async ({ page }) => { await page.goto(storybookUrl); + await new SbPage(page).waitUntilLoaded(); }); + test.afterEach(async ({ page }) => { + await page.evaluate(() => window.localStorage.clear()); + await page.evaluate(() => window.sessionStorage.clear()); + }); test('should pass over shortcuts, but not from play functions, story', async ({ page }) => { const sbPage = new SbPage(page); @@ -18,6 +23,10 @@ test.describe('preview-web', () => { await sbPage.previewRoot().locator('button').press('s'); await expect(sbPage.page.locator('.sidebar-container')).not.toBeVisible(); + + // restore the sidebar back to visible, because it is persisted in localStorage + await page.locator('html').press('s'); + await expect(sbPage.page.locator('.sidebar-container')).toBeVisible(); }); test('should pass over shortcuts, but not from play functions, docs', async ({ page }) => { @@ -28,5 +37,9 @@ test.describe('preview-web', () => { await sbPage.previewRoot().getByRole('button').getByText('Submit').first().press('s'); await expect(sbPage.page.locator('.sidebar-container')).not.toBeVisible(); + + // restore the sidebar back to visible, because it is persisted in localStorage + await page.locator('html').press('s'); + await expect(sbPage.page.locator('.sidebar-container')).toBeVisible(); }); }); diff --git a/code/frameworks/angular/package.json b/code/frameworks/angular/package.json index 18a31f4a5046..e45a8530d299 100644 --- a/code/frameworks/angular/package.json +++ b/code/frameworks/angular/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/angular", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook for Angular: Develop Angular components in isolation with hot reloading.", "keywords": [ "storybook", @@ -36,20 +36,20 @@ "prep": "../../../scripts/prepare/tsc.ts" }, "dependencies": { - "@storybook/builder-webpack5": "7.1.0-alpha.44", - "@storybook/cli": "7.1.0-alpha.44", - "@storybook/client-logger": "7.1.0-alpha.44", - "@storybook/core-common": "7.1.0-alpha.44", - "@storybook/core-events": "7.1.0-alpha.44", - "@storybook/core-server": "7.1.0-alpha.44", - "@storybook/core-webpack": "7.1.0-alpha.44", - "@storybook/docs-tools": "7.1.0-alpha.44", + "@storybook/builder-webpack5": "7.1.0-beta.2", + "@storybook/cli": "7.1.0-beta.2", + "@storybook/client-logger": "7.1.0-beta.2", + "@storybook/core-common": "7.1.0-beta.2", + "@storybook/core-events": "7.1.0-beta.2", + "@storybook/core-server": "7.1.0-beta.2", + "@storybook/core-webpack": "7.1.0-beta.2", + "@storybook/docs-tools": "7.1.0-beta.2", "@storybook/global": "^5.0.0", - "@storybook/manager-api": "7.1.0-alpha.44", - "@storybook/node-logger": "7.1.0-alpha.44", - "@storybook/preview-api": "7.1.0-alpha.44", - "@storybook/telemetry": "7.1.0-alpha.44", - "@storybook/types": "7.1.0-alpha.44", + "@storybook/manager-api": "7.1.0-beta.2", + "@storybook/node-logger": "7.1.0-beta.2", + "@storybook/preview-api": "7.1.0-beta.2", + "@storybook/telemetry": "7.1.0-beta.2", + "@storybook/types": "7.1.0-beta.2", "@types/node": "^16.0.0", "@types/react": "^16.14.34", "@types/react-dom": "^16.9.14", diff --git a/code/frameworks/ember/package.json b/code/frameworks/ember/package.json index 951a6dd8e031..2139a11dedc3 100644 --- a/code/frameworks/ember/package.json +++ b/code/frameworks/ember/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/ember", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook for Ember: Develop Ember Component in isolation with Hot Reloading.", "homepage": "https://github.com/storybookjs/storybook/tree/next/code/frameworks/ember", "bugs": { @@ -31,12 +31,12 @@ "prep": "../../../scripts/prepare/tsc.ts" }, "dependencies": { - "@storybook/builder-webpack5": "7.1.0-alpha.44", - "@storybook/core-common": "7.1.0-alpha.44", - "@storybook/docs-tools": "7.1.0-alpha.44", + "@storybook/builder-webpack5": "7.1.0-beta.2", + "@storybook/core-common": "7.1.0-beta.2", + "@storybook/docs-tools": "7.1.0-beta.2", "@storybook/global": "^5.0.0", - "@storybook/preview-api": "7.1.0-alpha.44", - "@storybook/types": "7.1.0-alpha.44", + "@storybook/preview-api": "7.1.0-beta.2", + "@storybook/types": "7.1.0-beta.2", "ts-dedent": "^2.0.0" }, "devDependencies": { diff --git a/code/frameworks/html-vite/package.json b/code/frameworks/html-vite/package.json index 87c696035a2b..2974dd12afda 100644 --- a/code/frameworks/html-vite/package.json +++ b/code/frameworks/html-vite/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/html-vite", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook for HTML and Vite: Develop HTML in isolation with Hot Reloading.", "keywords": [ "storybook" @@ -47,14 +47,14 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/addons": "7.1.0-alpha.44", - "@storybook/builder-vite": "7.1.0-alpha.44", - "@storybook/channel-postmessage": "7.1.0-alpha.44", - "@storybook/client-api": "7.1.0-alpha.44", - "@storybook/core-server": "7.1.0-alpha.44", - "@storybook/html": "7.1.0-alpha.44", - "@storybook/node-logger": "7.1.0-alpha.44", - "@storybook/preview-web": "7.1.0-alpha.44", + "@storybook/addons": "7.1.0-beta.2", + "@storybook/builder-vite": "7.1.0-beta.2", + "@storybook/channel-postmessage": "7.1.0-beta.2", + "@storybook/client-api": "7.1.0-beta.2", + "@storybook/core-server": "7.1.0-beta.2", + "@storybook/html": "7.1.0-beta.2", + "@storybook/node-logger": "7.1.0-beta.2", + "@storybook/preview-web": "7.1.0-beta.2", "magic-string": "^0.30.0" }, "devDependencies": { diff --git a/code/frameworks/html-webpack5/package.json b/code/frameworks/html-webpack5/package.json index f6b142fd2dfb..1164a9f618d8 100644 --- a/code/frameworks/html-webpack5/package.json +++ b/code/frameworks/html-webpack5/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/html-webpack5", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook for HTML: View HTML snippets in isolation with Hot Reloading.", "keywords": [ "storybook" @@ -47,11 +47,11 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/builder-webpack5": "7.1.0-alpha.44", - "@storybook/core-common": "7.1.0-alpha.44", + "@storybook/builder-webpack5": "7.1.0-beta.2", + "@storybook/core-common": "7.1.0-beta.2", "@storybook/global": "^5.0.0", - "@storybook/html": "7.1.0-alpha.44", - "@storybook/preset-html-webpack": "7.1.0-alpha.44", + "@storybook/html": "7.1.0-beta.2", + "@storybook/preset-html-webpack": "7.1.0-beta.2", "@types/node": "^16.0.0" }, "devDependencies": { diff --git a/code/frameworks/nextjs/package.json b/code/frameworks/nextjs/package.json index 1ecdcb82a317..d9841e11f212 100644 --- a/code/frameworks/nextjs/package.json +++ b/code/frameworks/nextjs/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/nextjs", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook for Next.js", "keywords": [ "storybook", @@ -70,13 +70,13 @@ "@babel/preset-react": "^7.22.0", "@babel/preset-typescript": "^7.21.0", "@babel/runtime": "^7.22.0", - "@storybook/addon-actions": "7.1.0-alpha.44", - "@storybook/builder-webpack5": "7.1.0-alpha.44", - "@storybook/core-common": "7.1.0-alpha.44", - "@storybook/node-logger": "7.1.0-alpha.44", - "@storybook/preset-react-webpack": "7.1.0-alpha.44", - "@storybook/preview-api": "7.1.0-alpha.44", - "@storybook/react": "7.1.0-alpha.44", + "@storybook/addon-actions": "7.1.0-beta.2", + "@storybook/builder-webpack5": "7.1.0-beta.2", + "@storybook/core-common": "7.1.0-beta.2", + "@storybook/node-logger": "7.1.0-beta.2", + "@storybook/preset-react-webpack": "7.1.0-beta.2", + "@storybook/preview-api": "7.1.0-beta.2", + "@storybook/react": "7.1.0-beta.2", "@types/node": "^16.0.0", "css-loader": "^6.7.3", "find-up": "^5.0.0", diff --git a/code/frameworks/nextjs/src/images/webpack.ts b/code/frameworks/nextjs/src/images/webpack.ts index 51064d40cc8a..6f1f24208563 100644 --- a/code/frameworks/nextjs/src/images/webpack.ts +++ b/code/frameworks/nextjs/src/images/webpack.ts @@ -9,6 +9,8 @@ export const configureImages = (baseConfig: WebpackConfig, nextConfig: NextConfi configureImageDefaults(baseConfig); }; +const fallbackFilename = 'static/media/[path][name][ext]'; + const configureImageDefaults = (baseConfig: WebpackConfig): void => { const version = getNextjsVersion(); const resolve = baseConfig.resolve ?? {}; @@ -58,7 +60,7 @@ const configureStaticImageImport = (baseConfig: WebpackConfig, nextConfig: NextC { loader: require.resolve('@storybook/nextjs/next-image-loader-stub.js'), options: { - filename: assetRule.generator?.filename, + filename: assetRule.generator?.filename ?? fallbackFilename, nextConfig, }, }, @@ -69,7 +71,7 @@ const configureStaticImageImport = (baseConfig: WebpackConfig, nextConfig: NextC issuer: /\.(css|scss|sass)$/, type: 'asset/resource', generator: { - filename: assetRule.generator?.filename, + filename: assetRule.generator?.filename ?? fallbackFilename, }, }); }; diff --git a/code/frameworks/preact-vite/package.json b/code/frameworks/preact-vite/package.json index 5c1b802d388d..7334cfc7a3b3 100644 --- a/code/frameworks/preact-vite/package.json +++ b/code/frameworks/preact-vite/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/preact-vite", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook for Preact and Vite: Develop Preact components in isolation with Hot Reloading.", "keywords": [ "storybook" @@ -47,8 +47,8 @@ }, "dependencies": { "@preact/preset-vite": "^2.0.0", - "@storybook/builder-vite": "7.1.0-alpha.44", - "@storybook/preact": "7.1.0-alpha.44" + "@storybook/builder-vite": "7.1.0-beta.2", + "@storybook/preact": "7.1.0-beta.2" }, "devDependencies": { "@types/node": "^16.0.0", diff --git a/code/frameworks/preact-webpack5/package.json b/code/frameworks/preact-webpack5/package.json index 2bfa3c273d84..330023a80242 100644 --- a/code/frameworks/preact-webpack5/package.json +++ b/code/frameworks/preact-webpack5/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/preact-webpack5", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook for Preact: Develop Preact Component in isolation.", "keywords": [ "storybook" @@ -47,10 +47,10 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/builder-webpack5": "7.1.0-alpha.44", - "@storybook/core-common": "7.1.0-alpha.44", - "@storybook/preact": "7.1.0-alpha.44", - "@storybook/preset-preact-webpack": "7.1.0-alpha.44", + "@storybook/builder-webpack5": "7.1.0-beta.2", + "@storybook/core-common": "7.1.0-beta.2", + "@storybook/preact": "7.1.0-beta.2", + "@storybook/preset-preact-webpack": "7.1.0-beta.2", "@types/node": "^16.0.0" }, "devDependencies": { diff --git a/code/frameworks/react-vite/package.json b/code/frameworks/react-vite/package.json index daef3f49701e..6b198c02ccd4 100644 --- a/code/frameworks/react-vite/package.json +++ b/code/frameworks/react-vite/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/react-vite", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook for React and Vite: Develop React components in isolation with Hot Reloading.", "keywords": [ "storybook" @@ -49,8 +49,8 @@ "dependencies": { "@joshwooding/vite-plugin-react-docgen-typescript": "0.2.1", "@rollup/pluginutils": "^5.0.2", - "@storybook/builder-vite": "7.1.0-alpha.44", - "@storybook/react": "7.1.0-alpha.44", + "@storybook/builder-vite": "7.1.0-beta.2", + "@storybook/react": "7.1.0-beta.2", "@vitejs/plugin-react": "^3.0.1", "ast-types": "^0.14.2", "magic-string": "^0.30.0", diff --git a/code/frameworks/react-webpack5/package.json b/code/frameworks/react-webpack5/package.json index 6baced9de224..3796b570fff0 100644 --- a/code/frameworks/react-webpack5/package.json +++ b/code/frameworks/react-webpack5/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/react-webpack5", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook for React: Develop React Component in isolation with Hot Reloading.", "keywords": [ "storybook" @@ -47,19 +47,19 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/builder-webpack5": "7.1.0-alpha.44", - "@storybook/preset-react-webpack": "7.1.0-alpha.44", - "@storybook/react": "7.1.0-alpha.44", + "@storybook/builder-webpack5": "7.1.0-beta.2", + "@storybook/preset-react-webpack": "7.1.0-beta.2", + "@storybook/react": "7.1.0-beta.2", "@types/node": "^16.0.0" }, "devDependencies": { - "jest-specific-snapshot": "^8.0.0", - "typescript": "~4.9.3" + "jest-specific-snapshot": "^8.0.0" }, "peerDependencies": { "@babel/core": "^7.22.0", "react": "^16.8.0 || ^17.0.0 || ^18.0.0", - "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" + "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0", + "typescript": "*" }, "peerDependenciesMeta": { "@babel/core": { diff --git a/code/frameworks/server-webpack5/README.md b/code/frameworks/server-webpack5/README.md index 0afe86f1fef0..fdb20cbe4c57 100644 --- a/code/frameworks/server-webpack5/README.md +++ b/code/frameworks/server-webpack5/README.md @@ -33,7 +33,7 @@ For more information visit: [storybook.js.org](https://storybook.js.org) ## Writing Stories -To write a story, use whatever API is natural for your server-side rendering framework to generate set of JSON or YAML files of stories analogous to CSF files (see the [`server-kitchen-sink`](../../examples/server-kitchen-sink/stories) example for ideas). +To write a story, use whatever API is natural for your server-side rendering framework to generate set of JSON or YAML files of stories analogous to CSF files (see the [`server-kitchen-sink`](../../../test-storybooks/server-kitchen-sink/stories) example for ideas). ```json { diff --git a/code/frameworks/server-webpack5/package.json b/code/frameworks/server-webpack5/package.json index 13c8a2f3a427..a968c700e17c 100644 --- a/code/frameworks/server-webpack5/package.json +++ b/code/frameworks/server-webpack5/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/server-webpack5", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook for Server: View HTML snippets from a server in isolation with Hot Reloading.", "keywords": [ "storybook" @@ -47,10 +47,10 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/builder-webpack5": "7.1.0-alpha.44", - "@storybook/core-common": "7.1.0-alpha.44", - "@storybook/preset-server-webpack": "7.1.0-alpha.44", - "@storybook/server": "7.1.0-alpha.44", + "@storybook/builder-webpack5": "7.1.0-beta.2", + "@storybook/core-common": "7.1.0-beta.2", + "@storybook/preset-server-webpack": "7.1.0-beta.2", + "@storybook/server": "7.1.0-beta.2", "@types/node": "^16.0.0" }, "devDependencies": { diff --git a/code/frameworks/svelte-vite/package.json b/code/frameworks/svelte-vite/package.json index 3d7aa9dd5ede..7c7b4fe8749d 100644 --- a/code/frameworks/svelte-vite/package.json +++ b/code/frameworks/svelte-vite/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/svelte-vite", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook for Svelte and Vite: Develop Svelte components in isolation with Hot Reloading.", "keywords": [ "storybook" @@ -47,9 +47,9 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/builder-vite": "7.1.0-alpha.44", - "@storybook/node-logger": "7.1.0-alpha.44", - "@storybook/svelte": "7.1.0-alpha.44", + "@storybook/builder-vite": "7.1.0-beta.2", + "@storybook/node-logger": "7.1.0-beta.2", + "@storybook/svelte": "7.1.0-beta.2", "@sveltejs/vite-plugin-svelte": "^2.4.1", "magic-string": "^0.30.0", "sveltedoc-parser": "^4.2.1", diff --git a/code/frameworks/svelte-webpack5/package.json b/code/frameworks/svelte-webpack5/package.json index eb6d6cc060db..fb420a49889b 100644 --- a/code/frameworks/svelte-webpack5/package.json +++ b/code/frameworks/svelte-webpack5/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/svelte-webpack5", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook for Svelte: Develop Svelte Component in isolation with Hot Reloading.", "keywords": [ "storybook" @@ -47,10 +47,10 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/builder-webpack5": "7.1.0-alpha.44", - "@storybook/core-common": "7.1.0-alpha.44", - "@storybook/preset-svelte-webpack": "7.1.0-alpha.44", - "@storybook/svelte": "7.1.0-alpha.44" + "@storybook/builder-webpack5": "7.1.0-beta.2", + "@storybook/core-common": "7.1.0-beta.2", + "@storybook/preset-svelte-webpack": "7.1.0-beta.2", + "@storybook/svelte": "7.1.0-beta.2" }, "devDependencies": { "svelte": "^3.48.0", diff --git a/code/frameworks/sveltekit/package.json b/code/frameworks/sveltekit/package.json index 696ab586a9b8..b060298ce4fa 100644 --- a/code/frameworks/sveltekit/package.json +++ b/code/frameworks/sveltekit/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/sveltekit", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook for SvelteKit", "keywords": [ "storybook", @@ -50,9 +50,9 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/builder-vite": "7.1.0-alpha.44", - "@storybook/svelte": "7.1.0-alpha.44", - "@storybook/svelte-vite": "7.1.0-alpha.44" + "@storybook/builder-vite": "7.1.0-beta.2", + "@storybook/svelte": "7.1.0-beta.2", + "@storybook/svelte-vite": "7.1.0-beta.2" }, "devDependencies": { "@types/node": "^16.0.0", diff --git a/code/frameworks/vue-vite/package.json b/code/frameworks/vue-vite/package.json index 16a3f132a207..b548cead0c10 100644 --- a/code/frameworks/vue-vite/package.json +++ b/code/frameworks/vue-vite/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/vue-vite", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook for Vue2 and Vite: Develop Vue2 Components in isolation with Hot Reloading.", "keywords": [ "storybook" @@ -47,10 +47,10 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/builder-vite": "7.1.0-alpha.44", - "@storybook/core-common": "7.1.0-alpha.44", - "@storybook/core-server": "7.1.0-alpha.44", - "@storybook/vue": "7.1.0-alpha.44", + "@storybook/builder-vite": "7.1.0-beta.2", + "@storybook/core-common": "7.1.0-beta.2", + "@storybook/core-server": "7.1.0-beta.2", + "@storybook/vue": "7.1.0-beta.2", "magic-string": "^0.30.0", "vue-docgen-api": "^4.40.0" }, diff --git a/code/frameworks/vue-webpack5/package.json b/code/frameworks/vue-webpack5/package.json index e7833947d7b4..5026d2657879 100644 --- a/code/frameworks/vue-webpack5/package.json +++ b/code/frameworks/vue-webpack5/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/vue-webpack5", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook for Vue: Develop Vue Component in isolation with Hot Reloading.", "keywords": [ "storybook" @@ -47,10 +47,10 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/builder-webpack5": "7.1.0-alpha.44", - "@storybook/core-common": "7.1.0-alpha.44", - "@storybook/preset-vue-webpack": "7.1.0-alpha.44", - "@storybook/vue": "7.1.0-alpha.44", + "@storybook/builder-webpack5": "7.1.0-beta.2", + "@storybook/core-common": "7.1.0-beta.2", + "@storybook/preset-vue-webpack": "7.1.0-beta.2", + "@storybook/vue": "7.1.0-beta.2", "@types/node": "^16.0.0" }, "devDependencies": { diff --git a/code/frameworks/vue3-vite/package.json b/code/frameworks/vue3-vite/package.json index ad08f14a78d4..33c41c02e0f0 100644 --- a/code/frameworks/vue3-vite/package.json +++ b/code/frameworks/vue3-vite/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/vue3-vite", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook for Vue3 and Vite: Develop Vue3 components in isolation with Hot Reloading.", "keywords": [ "storybook" @@ -47,9 +47,9 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/builder-vite": "7.1.0-alpha.44", - "@storybook/core-server": "7.1.0-alpha.44", - "@storybook/vue3": "7.1.0-alpha.44", + "@storybook/builder-vite": "7.1.0-beta.2", + "@storybook/core-server": "7.1.0-beta.2", + "@storybook/vue3": "7.1.0-beta.2", "@vitejs/plugin-vue": "^4.0.0", "magic-string": "^0.30.0", "vue-docgen-api": "^4.40.0" diff --git a/code/frameworks/vue3-webpack5/package.json b/code/frameworks/vue3-webpack5/package.json index 402777250f98..09b1dc7b537c 100644 --- a/code/frameworks/vue3-webpack5/package.json +++ b/code/frameworks/vue3-webpack5/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/vue3-webpack5", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook for Vue 3: Develop Vue 3 Components in isolation with Hot Reloading.", "keywords": [ "storybook" @@ -47,10 +47,10 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/builder-webpack5": "7.1.0-alpha.44", - "@storybook/core-common": "7.1.0-alpha.44", - "@storybook/preset-vue3-webpack": "7.1.0-alpha.44", - "@storybook/vue3": "7.1.0-alpha.44", + "@storybook/builder-webpack5": "7.1.0-beta.2", + "@storybook/core-common": "7.1.0-beta.2", + "@storybook/preset-vue3-webpack": "7.1.0-beta.2", + "@storybook/vue3": "7.1.0-beta.2", "@types/node": "^16.0.0" }, "devDependencies": { diff --git a/code/frameworks/web-components-vite/package.json b/code/frameworks/web-components-vite/package.json index ec26f9dfe365..0ccae02d6b14 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": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook for web-components and Vite: Develop Web Components in isolation with Hot Reloading.", "keywords": [ "storybook" @@ -47,10 +47,10 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/builder-vite": "7.1.0-alpha.44", - "@storybook/core-server": "7.1.0-alpha.44", - "@storybook/node-logger": "7.1.0-alpha.44", - "@storybook/web-components": "7.1.0-alpha.44", + "@storybook/builder-vite": "7.1.0-beta.2", + "@storybook/core-server": "7.1.0-beta.2", + "@storybook/node-logger": "7.1.0-beta.2", + "@storybook/web-components": "7.1.0-beta.2", "magic-string": "^0.30.0" }, "devDependencies": { diff --git a/code/frameworks/web-components-webpack5/package.json b/code/frameworks/web-components-webpack5/package.json index 2c1a9f1c12c7..3e43faa139ab 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": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook for web-components: View web components snippets in isolation with Hot Reloading.", "keywords": [ "lit", @@ -51,10 +51,10 @@ }, "dependencies": { "@babel/preset-env": "^7.22.0", - "@storybook/builder-webpack5": "7.1.0-alpha.44", - "@storybook/core-common": "7.1.0-alpha.44", - "@storybook/preset-web-components-webpack": "7.1.0-alpha.44", - "@storybook/web-components": "7.1.0-alpha.44", + "@storybook/builder-webpack5": "7.1.0-beta.2", + "@storybook/core-common": "7.1.0-beta.2", + "@storybook/preset-web-components-webpack": "7.1.0-beta.2", + "@storybook/web-components": "7.1.0-beta.2", "@types/node": "^16.0.0" }, "devDependencies": { diff --git a/code/lib/channels/package.json b/code/lib/channels/package.json index 44625ecbc786..7c560426f631 100644 --- a/code/lib/channels/package.json +++ b/code/lib/channels/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/channels", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "", "keywords": [ "storybook" @@ -68,9 +68,9 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/channels": "7.1.0-alpha.44", - "@storybook/client-logger": "7.1.0-alpha.44", - "@storybook/core-events": "7.1.0-alpha.44", + "@storybook/channels": "7.1.0-beta.2", + "@storybook/client-logger": "7.1.0-beta.2", + "@storybook/core-events": "7.1.0-beta.2", "@storybook/global": "^5.0.0", "qs": "^6.10.0", "telejson": "^7.0.3", diff --git a/code/lib/cli-sb/package.json b/code/lib/cli-sb/package.json index e5480442c8d8..45025b32d156 100644 --- a/code/lib/cli-sb/package.json +++ b/code/lib/cli-sb/package.json @@ -1,6 +1,6 @@ { "name": "sb", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook CLI", "keywords": [ "storybook" @@ -21,7 +21,7 @@ "license": "MIT", "bin": "./index.js", "dependencies": { - "@storybook/cli": "7.1.0-alpha.44" + "@storybook/cli": "7.1.0-beta.2" }, "publishConfig": { "access": "public" diff --git a/code/lib/cli-storybook/package.json b/code/lib/cli-storybook/package.json index f0329536d28a..034170b190ae 100644 --- a/code/lib/cli-storybook/package.json +++ b/code/lib/cli-storybook/package.json @@ -1,6 +1,6 @@ { "name": "storybook", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook CLI", "keywords": [ "storybook" @@ -24,7 +24,7 @@ "storybook": "./index.js" }, "dependencies": { - "@storybook/cli": "7.1.0-alpha.44" + "@storybook/cli": "7.1.0-beta.2" }, "publishConfig": { "access": "public" diff --git a/code/lib/cli/package.json b/code/lib/cli/package.json index 00bf87718c7c..91c7e8e593f9 100644 --- a/code/lib/cli/package.json +++ b/code/lib/cli/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/cli", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook's CLI - easiest method of adding storybook to your projects", "keywords": [ "cli", @@ -57,16 +57,16 @@ "@babel/core": "^7.22.0", "@babel/preset-env": "^7.22.0", "@ndelangen/get-tarball": "^3.0.7", - "@storybook/codemod": "7.1.0-alpha.44", - "@storybook/core-common": "7.1.0-alpha.44", - "@storybook/core-server": "7.1.0-alpha.44", - "@storybook/csf-tools": "7.1.0-alpha.44", - "@storybook/node-logger": "7.1.0-alpha.44", - "@storybook/telemetry": "7.1.0-alpha.44", - "@storybook/types": "7.1.0-alpha.44", + "@storybook/codemod": "7.1.0-beta.2", + "@storybook/core-common": "7.1.0-beta.2", + "@storybook/core-server": "7.1.0-beta.2", + "@storybook/csf-tools": "7.1.0-beta.2", + "@storybook/node-logger": "7.1.0-beta.2", + "@storybook/telemetry": "7.1.0-beta.2", + "@storybook/types": "7.1.0-beta.2", "@types/semver": "^7.3.4", - "@yarnpkg/fslib": "^2.10.3", - "@yarnpkg/libzip": "^2.3.0", + "@yarnpkg/fslib": "2.10.3", + "@yarnpkg/libzip": "2.3.0", "chalk": "^4.1.0", "commander": "^6.2.1", "cross-spawn": "^7.0.3", @@ -95,7 +95,7 @@ "util-deprecate": "^1.0.2" }, "devDependencies": { - "@storybook/client-api": "7.1.0-alpha.44", + "@storybook/client-api": "7.1.0-beta.2", "@types/cross-spawn": "^6.0.2", "@types/prompts": "^2.0.9", "@types/puppeteer-core": "^2.1.0", diff --git a/code/lib/cli/src/js-package-manager/Yarn2Proxy.ts b/code/lib/cli/src/js-package-manager/Yarn2Proxy.ts index 742bcf4a8fd3..a4d4484f554e 100644 --- a/code/lib/cli/src/js-package-manager/Yarn2Proxy.ts +++ b/code/lib/cli/src/js-package-manager/Yarn2Proxy.ts @@ -1,8 +1,8 @@ import dedent from 'ts-dedent'; import { sync as findUpSync, sync as syncFindUp } from 'find-up'; -import fs, { existsSync, readFileSync } from 'fs'; +import { existsSync, readFileSync } from 'fs'; import path from 'path'; -import { NodeFS, VirtualFS, ZipOpenFS } from '@yarnpkg/fslib'; +import { PosixFS, VirtualFS, ZipOpenFS } from '@yarnpkg/fslib'; import { getLibzipSync } from '@yarnpkg/libzip'; import semver from 'semver'; import { createLogStream } from '../utils'; @@ -138,20 +138,16 @@ export class Yarn2Proxy extends JsPackageManager { const pkgLocator = pnpApi.findPackageLocator(resolvedPath); const pkg = pnpApi.getPackageInformation(pkgLocator); - const localFs: typeof fs = { ...fs }; - const nodeFs = new NodeFS(localFs); - const zipOpenFs = new ZipOpenFS({ libzip: getLibzipSync(), - baseFs: nodeFs, - readOnlyArchives: true, }); - const virtualFs = new VirtualFS({ - baseFs: zipOpenFs, - }); + const virtualFs = new VirtualFS({ baseFs: zipOpenFs }); + const crossFs = new PosixFS(virtualFs); + + const virtualPath = path.join(pkg.packageLocation, 'package.json'); - return virtualFs.readJsonSync(path.join(pkg.packageLocation, 'package.json') as any); + return crossFs.readJsonSync(virtualPath); } catch (error) { if (error.code !== 'MODULE_NOT_FOUND') { console.error('Error while fetching package version in Yarn PnP mode:', error); diff --git a/code/lib/cli/src/sandbox-templates.ts b/code/lib/cli/src/sandbox-templates.ts index 2ca650b32eb4..abad0370cfa0 100644 --- a/code/lib/cli/src/sandbox-templates.ts +++ b/code/lib/cli/src/sandbox-templates.ts @@ -296,10 +296,12 @@ const baseTemplates = { }, skipTasks: ['e2e-tests-dev', 'bench'], }, - 'angular-cli/14-ts': { - name: 'Angular CLI (Version 14)', + 'angular-cli/15-ts': { + name: 'Angular CLI (Version 15)', script: - 'npx -p @angular/cli@14 ng new angular-v14 --directory {{beforeDir}} --routing=true --minimal=true --style=scss --strict --skip-git --skip-install --package-manager=yarn', + 'npx -p @angular/cli@15 ng new angular-v15 --directory {{beforeDir}} --routing=true --minimal=true --style=scss --strict --skip-git --skip-install --package-manager=yarn', + // TODO: Remove as soon as available + inDevelopment: true, expected: { framework: '@storybook/angular', renderer: '@storybook/angular', @@ -551,7 +553,7 @@ export const merged: TemplateKey[] = [ ...pr, 'react-webpack/18-ts', 'react-webpack/17-ts', - 'angular-cli/14-ts', + 'angular-cli/15-ts', 'preact-webpack5/default-ts', 'preact-vite/default-ts', 'html-webpack/default', diff --git a/code/lib/cli/src/versions.ts b/code/lib/cli/src/versions.ts index 7e08d66e388d..a5b1d66f0616 100644 --- a/code/lib/cli/src/versions.ts +++ b/code/lib/cli/src/versions.ts @@ -1,96 +1,96 @@ // auto generated file, do not edit export default { - '@storybook/addon-a11y': '7.1.0-alpha.44', - '@storybook/addon-actions': '7.1.0-alpha.44', - '@storybook/addon-backgrounds': '7.1.0-alpha.44', - '@storybook/addon-controls': '7.1.0-alpha.44', - '@storybook/addon-docs': '7.1.0-alpha.44', - '@storybook/addon-essentials': '7.1.0-alpha.44', - '@storybook/addon-highlight': '7.1.0-alpha.44', - '@storybook/addon-interactions': '7.1.0-alpha.44', - '@storybook/addon-jest': '7.1.0-alpha.44', - '@storybook/addon-links': '7.1.0-alpha.44', - '@storybook/addon-mdx-gfm': '7.1.0-alpha.44', - '@storybook/addon-measure': '7.1.0-alpha.44', - '@storybook/addon-outline': '7.1.0-alpha.44', - '@storybook/addon-storyshots': '7.1.0-alpha.44', - '@storybook/addon-storyshots-puppeteer': '7.1.0-alpha.44', - '@storybook/addon-storysource': '7.1.0-alpha.44', - '@storybook/addon-toolbars': '7.1.0-alpha.44', - '@storybook/addon-viewport': '7.1.0-alpha.44', - '@storybook/addons': '7.1.0-alpha.44', - '@storybook/angular': '7.1.0-alpha.44', - '@storybook/api': '7.1.0-alpha.44', - '@storybook/blocks': '7.1.0-alpha.44', - '@storybook/builder-manager': '7.1.0-alpha.44', - '@storybook/builder-vite': '7.1.0-alpha.44', - '@storybook/builder-webpack5': '7.1.0-alpha.44', - '@storybook/channel-postmessage': '7.1.0-alpha.44', - '@storybook/channel-websocket': '7.1.0-alpha.44', - '@storybook/channels': '7.1.0-alpha.44', - '@storybook/cli': '7.1.0-alpha.44', - '@storybook/client-api': '7.1.0-alpha.44', - '@storybook/client-logger': '7.1.0-alpha.44', - '@storybook/codemod': '7.1.0-alpha.44', - '@storybook/components': '7.1.0-alpha.44', - '@storybook/core-client': '7.1.0-alpha.44', - '@storybook/core-common': '7.1.0-alpha.44', - '@storybook/core-events': '7.1.0-alpha.44', - '@storybook/core-server': '7.1.0-alpha.44', - '@storybook/core-webpack': '7.1.0-alpha.44', - '@storybook/csf-plugin': '7.1.0-alpha.44', - '@storybook/csf-tools': '7.1.0-alpha.44', - '@storybook/docs-tools': '7.1.0-alpha.44', - '@storybook/ember': '7.1.0-alpha.44', - '@storybook/html': '7.1.0-alpha.44', - '@storybook/html-vite': '7.1.0-alpha.44', - '@storybook/html-webpack5': '7.1.0-alpha.44', - '@storybook/instrumenter': '7.1.0-alpha.44', - '@storybook/manager': '7.1.0-alpha.44', - '@storybook/manager-api': '7.1.0-alpha.44', - '@storybook/nextjs': '7.1.0-alpha.44', - '@storybook/node-logger': '7.1.0-alpha.44', - '@storybook/postinstall': '7.1.0-alpha.44', - '@storybook/preact': '7.1.0-alpha.44', - '@storybook/preact-vite': '7.1.0-alpha.44', - '@storybook/preact-webpack5': '7.1.0-alpha.44', - '@storybook/preset-create-react-app': '7.1.0-alpha.44', - '@storybook/preset-html-webpack': '7.1.0-alpha.44', - '@storybook/preset-preact-webpack': '7.1.0-alpha.44', - '@storybook/preset-react-webpack': '7.1.0-alpha.44', - '@storybook/preset-server-webpack': '7.1.0-alpha.44', - '@storybook/preset-svelte-webpack': '7.1.0-alpha.44', - '@storybook/preset-vue-webpack': '7.1.0-alpha.44', - '@storybook/preset-vue3-webpack': '7.1.0-alpha.44', - '@storybook/preset-web-components-webpack': '7.1.0-alpha.44', - '@storybook/preview': '7.1.0-alpha.44', - '@storybook/preview-api': '7.1.0-alpha.44', - '@storybook/preview-web': '7.1.0-alpha.44', - '@storybook/react': '7.1.0-alpha.44', - '@storybook/react-dom-shim': '7.1.0-alpha.44', - '@storybook/react-vite': '7.1.0-alpha.44', - '@storybook/react-webpack5': '7.1.0-alpha.44', - '@storybook/router': '7.1.0-alpha.44', - '@storybook/server': '7.1.0-alpha.44', - '@storybook/server-webpack5': '7.1.0-alpha.44', - '@storybook/source-loader': '7.1.0-alpha.44', - '@storybook/store': '7.1.0-alpha.44', - '@storybook/svelte': '7.1.0-alpha.44', - '@storybook/svelte-vite': '7.1.0-alpha.44', - '@storybook/svelte-webpack5': '7.1.0-alpha.44', - '@storybook/sveltekit': '7.1.0-alpha.44', - '@storybook/telemetry': '7.1.0-alpha.44', - '@storybook/theming': '7.1.0-alpha.44', - '@storybook/types': '7.1.0-alpha.44', - '@storybook/vue': '7.1.0-alpha.44', - '@storybook/vue-vite': '7.1.0-alpha.44', - '@storybook/vue-webpack5': '7.1.0-alpha.44', - '@storybook/vue3': '7.1.0-alpha.44', - '@storybook/vue3-vite': '7.1.0-alpha.44', - '@storybook/vue3-webpack5': '7.1.0-alpha.44', - '@storybook/web-components': '7.1.0-alpha.44', - '@storybook/web-components-vite': '7.1.0-alpha.44', - '@storybook/web-components-webpack5': '7.1.0-alpha.44', - sb: '7.1.0-alpha.44', - storybook: '7.1.0-alpha.44', + '@storybook/addon-a11y': '7.1.0-beta.2', + '@storybook/addon-actions': '7.1.0-beta.2', + '@storybook/addon-backgrounds': '7.1.0-beta.2', + '@storybook/addon-controls': '7.1.0-beta.2', + '@storybook/addon-docs': '7.1.0-beta.2', + '@storybook/addon-essentials': '7.1.0-beta.2', + '@storybook/addon-highlight': '7.1.0-beta.2', + '@storybook/addon-interactions': '7.1.0-beta.2', + '@storybook/addon-jest': '7.1.0-beta.2', + '@storybook/addon-links': '7.1.0-beta.2', + '@storybook/addon-mdx-gfm': '7.1.0-beta.2', + '@storybook/addon-measure': '7.1.0-beta.2', + '@storybook/addon-outline': '7.1.0-beta.2', + '@storybook/addon-storyshots': '7.1.0-beta.2', + '@storybook/addon-storyshots-puppeteer': '7.1.0-beta.2', + '@storybook/addon-storysource': '7.1.0-beta.2', + '@storybook/addon-toolbars': '7.1.0-beta.2', + '@storybook/addon-viewport': '7.1.0-beta.2', + '@storybook/addons': '7.1.0-beta.2', + '@storybook/angular': '7.1.0-beta.2', + '@storybook/api': '7.1.0-beta.2', + '@storybook/blocks': '7.1.0-beta.2', + '@storybook/builder-manager': '7.1.0-beta.2', + '@storybook/builder-vite': '7.1.0-beta.2', + '@storybook/builder-webpack5': '7.1.0-beta.2', + '@storybook/channel-postmessage': '7.1.0-beta.2', + '@storybook/channel-websocket': '7.1.0-beta.2', + '@storybook/channels': '7.1.0-beta.2', + '@storybook/cli': '7.1.0-beta.2', + '@storybook/client-api': '7.1.0-beta.2', + '@storybook/client-logger': '7.1.0-beta.2', + '@storybook/codemod': '7.1.0-beta.2', + '@storybook/components': '7.1.0-beta.2', + '@storybook/core-client': '7.1.0-beta.2', + '@storybook/core-common': '7.1.0-beta.2', + '@storybook/core-events': '7.1.0-beta.2', + '@storybook/core-server': '7.1.0-beta.2', + '@storybook/core-webpack': '7.1.0-beta.2', + '@storybook/csf-plugin': '7.1.0-beta.2', + '@storybook/csf-tools': '7.1.0-beta.2', + '@storybook/docs-tools': '7.1.0-beta.2', + '@storybook/ember': '7.1.0-beta.2', + '@storybook/html': '7.1.0-beta.2', + '@storybook/html-vite': '7.1.0-beta.2', + '@storybook/html-webpack5': '7.1.0-beta.2', + '@storybook/instrumenter': '7.1.0-beta.2', + '@storybook/manager': '7.1.0-beta.2', + '@storybook/manager-api': '7.1.0-beta.2', + '@storybook/nextjs': '7.1.0-beta.2', + '@storybook/node-logger': '7.1.0-beta.2', + '@storybook/postinstall': '7.1.0-beta.2', + '@storybook/preact': '7.1.0-beta.2', + '@storybook/preact-vite': '7.1.0-beta.2', + '@storybook/preact-webpack5': '7.1.0-beta.2', + '@storybook/preset-create-react-app': '7.1.0-beta.2', + '@storybook/preset-html-webpack': '7.1.0-beta.2', + '@storybook/preset-preact-webpack': '7.1.0-beta.2', + '@storybook/preset-react-webpack': '7.1.0-beta.2', + '@storybook/preset-server-webpack': '7.1.0-beta.2', + '@storybook/preset-svelte-webpack': '7.1.0-beta.2', + '@storybook/preset-vue-webpack': '7.1.0-beta.2', + '@storybook/preset-vue3-webpack': '7.1.0-beta.2', + '@storybook/preset-web-components-webpack': '7.1.0-beta.2', + '@storybook/preview': '7.1.0-beta.2', + '@storybook/preview-api': '7.1.0-beta.2', + '@storybook/preview-web': '7.1.0-beta.2', + '@storybook/react': '7.1.0-beta.2', + '@storybook/react-dom-shim': '7.1.0-beta.2', + '@storybook/react-vite': '7.1.0-beta.2', + '@storybook/react-webpack5': '7.1.0-beta.2', + '@storybook/router': '7.1.0-beta.2', + '@storybook/server': '7.1.0-beta.2', + '@storybook/server-webpack5': '7.1.0-beta.2', + '@storybook/source-loader': '7.1.0-beta.2', + '@storybook/store': '7.1.0-beta.2', + '@storybook/svelte': '7.1.0-beta.2', + '@storybook/svelte-vite': '7.1.0-beta.2', + '@storybook/svelte-webpack5': '7.1.0-beta.2', + '@storybook/sveltekit': '7.1.0-beta.2', + '@storybook/telemetry': '7.1.0-beta.2', + '@storybook/theming': '7.1.0-beta.2', + '@storybook/types': '7.1.0-beta.2', + '@storybook/vue': '7.1.0-beta.2', + '@storybook/vue-vite': '7.1.0-beta.2', + '@storybook/vue-webpack5': '7.1.0-beta.2', + '@storybook/vue3': '7.1.0-beta.2', + '@storybook/vue3-vite': '7.1.0-beta.2', + '@storybook/vue3-webpack5': '7.1.0-beta.2', + '@storybook/web-components': '7.1.0-beta.2', + '@storybook/web-components-vite': '7.1.0-beta.2', + '@storybook/web-components-webpack5': '7.1.0-beta.2', + sb: '7.1.0-beta.2', + storybook: '7.1.0-beta.2', }; diff --git a/code/lib/client-logger/package.json b/code/lib/client-logger/package.json index 0dbf35e546c2..ff0a5f27448e 100644 --- a/code/lib/client-logger/package.json +++ b/code/lib/client-logger/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/client-logger", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "", "keywords": [ "storybook" diff --git a/code/lib/codemod/package.json b/code/lib/codemod/package.json index 9e46d499a73c..6885174ac167 100644 --- a/code/lib/codemod/package.json +++ b/code/lib/codemod/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/codemod", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "A collection of codemod scripts written with JSCodeshift", "keywords": [ "storybook" @@ -49,9 +49,9 @@ "@babel/preset-env": "^7.22.0", "@babel/types": "^7.22.0", "@storybook/csf": "^0.1.0", - "@storybook/csf-tools": "7.1.0-alpha.44", - "@storybook/node-logger": "7.1.0-alpha.44", - "@storybook/types": "7.1.0-alpha.44", + "@storybook/csf-tools": "7.1.0-beta.2", + "@storybook/node-logger": "7.1.0-beta.2", + "@storybook/types": "7.1.0-beta.2", "@types/cross-spawn": "^6.0.2", "cross-spawn": "^7.0.3", "globby": "^11.0.2", diff --git a/code/lib/core-common/package.json b/code/lib/core-common/package.json index 7cf1e6fd8e9b..6a1550a00b14 100644 --- a/code/lib/core-common/package.json +++ b/code/lib/core-common/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/core-common", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook framework-agnostic API", "keywords": [ "storybook" @@ -43,8 +43,8 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/node-logger": "7.1.0-alpha.44", - "@storybook/types": "7.1.0-alpha.44", + "@storybook/node-logger": "7.1.0-beta.2", + "@storybook/types": "7.1.0-beta.2", "@types/find-cache-dir": "^3.2.1", "@types/node": "^16.0.0", "@types/node-fetch": "^2.6.4", diff --git a/code/lib/core-events/package.json b/code/lib/core-events/package.json index 6bc31b5ca8ac..bc6814cc16b3 100644 --- a/code/lib/core-events/package.json +++ b/code/lib/core-events/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/core-events", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Event names used in storybook core", "keywords": [ "storybook" diff --git a/code/lib/core-server/package.json b/code/lib/core-server/package.json index c14049158681..916ca137e35e 100644 --- a/code/lib/core-server/package.json +++ b/code/lib/core-server/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/core-server", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook framework-agnostic API", "keywords": [ "storybook" @@ -56,19 +56,19 @@ "dependencies": { "@aw-web-design/x-default-browser": "1.4.126", "@discoveryjs/json-ext": "^0.5.3", - "@storybook/builder-manager": "7.1.0-alpha.44", - "@storybook/channels": "7.1.0-alpha.44", - "@storybook/core-common": "7.1.0-alpha.44", - "@storybook/core-events": "7.1.0-alpha.44", + "@storybook/builder-manager": "7.1.0-beta.2", + "@storybook/channels": "7.1.0-beta.2", + "@storybook/core-common": "7.1.0-beta.2", + "@storybook/core-events": "7.1.0-beta.2", "@storybook/csf": "^0.1.0", - "@storybook/csf-tools": "7.1.0-alpha.44", + "@storybook/csf-tools": "7.1.0-beta.2", "@storybook/docs-mdx": "^0.1.0", "@storybook/global": "^5.0.0", - "@storybook/manager": "7.1.0-alpha.44", - "@storybook/node-logger": "7.1.0-alpha.44", - "@storybook/preview-api": "7.1.0-alpha.44", - "@storybook/telemetry": "7.1.0-alpha.44", - "@storybook/types": "7.1.0-alpha.44", + "@storybook/manager": "7.1.0-beta.2", + "@storybook/node-logger": "7.1.0-beta.2", + "@storybook/preview-api": "7.1.0-beta.2", + "@storybook/telemetry": "7.1.0-beta.2", + "@storybook/types": "7.1.0-beta.2", "@types/detect-port": "^1.3.0", "@types/node": "^16.0.0", "@types/pretty-hrtime": "^1.0.0", diff --git a/code/lib/core-webpack/package.json b/code/lib/core-webpack/package.json index de8ddef6f586..0b271cf8e615 100644 --- a/code/lib/core-webpack/package.json +++ b/code/lib/core-webpack/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/core-webpack", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook framework-agnostic API", "keywords": [ "storybook" @@ -43,9 +43,9 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/core-common": "7.1.0-alpha.44", - "@storybook/node-logger": "7.1.0-alpha.44", - "@storybook/types": "7.1.0-alpha.44", + "@storybook/core-common": "7.1.0-beta.2", + "@storybook/node-logger": "7.1.0-beta.2", + "@storybook/types": "7.1.0-beta.2", "@types/node": "^16.0.0", "ts-dedent": "^2.0.0" }, diff --git a/code/lib/csf-plugin/package.json b/code/lib/csf-plugin/package.json index 0186d4b43cb3..047319326bb3 100644 --- a/code/lib/csf-plugin/package.json +++ b/code/lib/csf-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/csf-plugin", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Enrich CSF files via static analysis", "keywords": [ "storybook" @@ -43,7 +43,7 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/csf-tools": "7.1.0-alpha.44", + "@storybook/csf-tools": "7.1.0-beta.2", "unplugin": "^1.3.1" }, "devDependencies": { diff --git a/code/lib/csf-tools/package.json b/code/lib/csf-tools/package.json index 175ed780f544..51dba6f87f57 100644 --- a/code/lib/csf-tools/package.json +++ b/code/lib/csf-tools/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/csf-tools", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Parse and manipulate CSF and Storybook config files", "keywords": [ "storybook" @@ -46,7 +46,7 @@ "@babel/traverse": "^7.22.0", "@babel/types": "^7.22.0", "@storybook/csf": "^0.1.0", - "@storybook/types": "7.1.0-alpha.44", + "@storybook/types": "7.1.0-beta.2", "fs-extra": "^11.1.0", "recast": "^0.23.1", "ts-dedent": "^2.0.0" diff --git a/code/lib/docs-tools/package.json b/code/lib/docs-tools/package.json index e670cdddd74f..80b57409239d 100644 --- a/code/lib/docs-tools/package.json +++ b/code/lib/docs-tools/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/docs-tools", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Shared utility functions for frameworks to implement docs", "keywords": [ "storybook" @@ -43,9 +43,9 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/core-common": "7.1.0-alpha.44", - "@storybook/preview-api": "7.1.0-alpha.44", - "@storybook/types": "7.1.0-alpha.44", + "@storybook/core-common": "7.1.0-beta.2", + "@storybook/preview-api": "7.1.0-beta.2", + "@storybook/types": "7.1.0-beta.2", "@types/doctrine": "^0.0.3", "doctrine": "^3.0.0", "lodash": "^4.17.21" diff --git a/code/lib/instrumenter/package.json b/code/lib/instrumenter/package.json index 42d21c6c5ca9..84050b61cdc7 100644 --- a/code/lib/instrumenter/package.json +++ b/code/lib/instrumenter/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/instrumenter", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "", "keywords": [ "storybook" @@ -43,11 +43,11 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/channels": "7.1.0-alpha.44", - "@storybook/client-logger": "7.1.0-alpha.44", - "@storybook/core-events": "7.1.0-alpha.44", + "@storybook/channels": "7.1.0-beta.2", + "@storybook/client-logger": "7.1.0-beta.2", + "@storybook/core-events": "7.1.0-beta.2", "@storybook/global": "^5.0.0", - "@storybook/preview-api": "7.1.0-alpha.44" + "@storybook/preview-api": "7.1.0-beta.2" }, "devDependencies": { "typescript": "~4.9.3" diff --git a/code/lib/manager-api/package.json b/code/lib/manager-api/package.json index 28e54c1a2213..c9c3f0d47ef8 100644 --- a/code/lib/manager-api/package.json +++ b/code/lib/manager-api/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/manager-api", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Core Storybook Manager API & Context", "keywords": [ "storybook" @@ -42,14 +42,14 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/channels": "7.1.0-alpha.44", - "@storybook/client-logger": "7.1.0-alpha.44", - "@storybook/core-events": "7.1.0-alpha.44", + "@storybook/channels": "7.1.0-beta.2", + "@storybook/client-logger": "7.1.0-beta.2", + "@storybook/core-events": "7.1.0-beta.2", "@storybook/csf": "^0.1.0", "@storybook/global": "^5.0.0", - "@storybook/router": "7.1.0-alpha.44", - "@storybook/theming": "7.1.0-alpha.44", - "@storybook/types": "7.1.0-alpha.44", + "@storybook/router": "7.1.0-beta.2", + "@storybook/theming": "7.1.0-beta.2", + "@storybook/types": "7.1.0-beta.2", "dequal": "^2.0.2", "lodash": "^4.17.21", "memoizerific": "^1.11.3", diff --git a/code/lib/manager-api/src/version.ts b/code/lib/manager-api/src/version.ts index 4d225914e6c2..3147cfe7ad60 100644 --- a/code/lib/manager-api/src/version.ts +++ b/code/lib/manager-api/src/version.ts @@ -1 +1 @@ -export const version = '7.1.0-alpha.44'; +export const version = '7.1.0-beta.2'; diff --git a/code/lib/node-logger/package.json b/code/lib/node-logger/package.json index f7463ed56d2c..98f73631461f 100644 --- a/code/lib/node-logger/package.json +++ b/code/lib/node-logger/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/node-logger", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "", "keywords": [ "storybook" diff --git a/code/lib/postinstall/package.json b/code/lib/postinstall/package.json index 4b1a6642480a..f52b88a97a87 100644 --- a/code/lib/postinstall/package.json +++ b/code/lib/postinstall/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/postinstall", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook addons postinstall utilities", "keywords": [ "api", diff --git a/code/lib/preview-api/package.json b/code/lib/preview-api/package.json index d0ffe865911e..2d6277039da1 100644 --- a/code/lib/preview-api/package.json +++ b/code/lib/preview-api/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/preview-api", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "", "keywords": [ "storybook" @@ -67,13 +67,13 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/channel-postmessage": "7.1.0-alpha.44", - "@storybook/channels": "7.1.0-alpha.44", - "@storybook/client-logger": "7.1.0-alpha.44", - "@storybook/core-events": "7.1.0-alpha.44", + "@storybook/channel-postmessage": "7.1.0-beta.2", + "@storybook/channels": "7.1.0-beta.2", + "@storybook/client-logger": "7.1.0-beta.2", + "@storybook/core-events": "7.1.0-beta.2", "@storybook/csf": "^0.1.0", "@storybook/global": "^5.0.0", - "@storybook/types": "7.1.0-alpha.44", + "@storybook/types": "7.1.0-beta.2", "@types/qs": "^6.9.5", "dequal": "^2.0.2", "lodash": "^4.17.21", @@ -85,7 +85,7 @@ }, "devDependencies": { "@jest/globals": "^29.5.0", - "@storybook/core-common": "7.1.0-alpha.44", + "@storybook/core-common": "7.1.0-beta.2", "ansi-to-html": "^0.6.11", "react": "^16.14.0", "slash": "^5.0.0" diff --git a/code/lib/preview/package.json b/code/lib/preview/package.json index adef3197a0da..9618f6dc54c1 100644 --- a/code/lib/preview/package.json +++ b/code/lib/preview/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/preview", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "", "keywords": [ "storybook" @@ -55,10 +55,10 @@ "prep": "../../../scripts/prepare/esm-bundle.ts" }, "devDependencies": { - "@storybook/channels": "7.1.0-alpha.44", - "@storybook/client-logger": "7.1.0-alpha.44", - "@storybook/core-events": "7.1.0-alpha.44", - "@storybook/preview-api": "7.1.0-alpha.44", + "@storybook/channels": "7.1.0-beta.2", + "@storybook/client-logger": "7.1.0-beta.2", + "@storybook/core-events": "7.1.0-beta.2", + "@storybook/preview-api": "7.1.0-beta.2", "typescript": "~4.9.3" }, "publishConfig": { diff --git a/code/lib/react-dom-shim/package.json b/code/lib/react-dom-shim/package.json index 484da3a43d5e..b58a4f2c9f9b 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": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "", "keywords": [ "storybook" @@ -53,7 +53,7 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "devDependencies": { - "@storybook/types": "7.1.0-alpha.44", + "@storybook/types": "7.1.0-beta.2", "typescript": "~4.9.3" }, "peerDependencies": { diff --git a/code/lib/router/package.json b/code/lib/router/package.json index a40f15878a0c..e964534b0c57 100644 --- a/code/lib/router/package.json +++ b/code/lib/router/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/router", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Core Storybook Router", "keywords": [ "storybook" @@ -48,7 +48,7 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/client-logger": "7.1.0-alpha.44", + "@storybook/client-logger": "7.1.0-beta.2", "memoizerific": "^1.11.3", "qs": "^6.10.0" }, diff --git a/code/lib/source-loader/package.json b/code/lib/source-loader/package.json index 4f1e39c8cc29..c112ca59b865 100644 --- a/code/lib/source-loader/package.json +++ b/code/lib/source-loader/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/source-loader", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Source loader", "keywords": [ "lib", @@ -45,7 +45,7 @@ }, "dependencies": { "@storybook/csf": "^0.1.0", - "@storybook/types": "7.1.0-alpha.44", + "@storybook/types": "7.1.0-beta.2", "estraverse": "^5.2.0", "lodash": "^4.17.21", "prettier": "^2.8.0" diff --git a/code/lib/telemetry/package.json b/code/lib/telemetry/package.json index c79f16b1b72c..ae1d2199771f 100644 --- a/code/lib/telemetry/package.json +++ b/code/lib/telemetry/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/telemetry", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Telemetry logging for crash reports and usage statistics", "keywords": [ "storybook" @@ -43,8 +43,8 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/client-logger": "7.1.0-alpha.44", - "@storybook/core-common": "7.1.0-alpha.44", + "@storybook/client-logger": "7.1.0-beta.2", + "@storybook/core-common": "7.1.0-beta.2", "chalk": "^4.1.0", "detect-package-manager": "^2.0.1", "fetch-retry": "^5.0.2", diff --git a/code/lib/theming/package.json b/code/lib/theming/package.json index 3f047d4bcb87..2f81bcd94891 100644 --- a/code/lib/theming/package.json +++ b/code/lib/theming/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/theming", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Core Storybook Components", "keywords": [ "storybook" @@ -49,7 +49,7 @@ }, "dependencies": { "@emotion/use-insertion-effect-with-fallbacks": "^1.0.0", - "@storybook/client-logger": "7.1.0-alpha.44", + "@storybook/client-logger": "7.1.0-beta.2", "@storybook/global": "^5.0.0", "memoizerific": "^1.11.3" }, diff --git a/code/lib/types/package.json b/code/lib/types/package.json index 6734def4abc6..399d1343812e 100644 --- a/code/lib/types/package.json +++ b/code/lib/types/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/types", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Core Storybook TS Types", "keywords": [ "storybook" @@ -43,7 +43,7 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/channels": "7.1.0-alpha.44", + "@storybook/channels": "7.1.0-beta.2", "@types/babel__core": "^7.0.0", "@types/express": "^4.7.0", "file-system-cache": "2.3.0" diff --git a/code/package.json b/code/package.json index 46b0fa6412b1..e3f8825097f1 100644 --- a/code/package.json +++ b/code/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/root", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "private": true, "description": "Storybook root", "homepage": "https://storybook.js.org/", diff --git a/code/presets/create-react-app/package.json b/code/presets/create-react-app/package.json index 13ffeac63b89..78745c434110 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": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook for Create React App preset", "keywords": [ "storybook" @@ -50,14 +50,14 @@ "dependencies": { "@pmmmwh/react-refresh-webpack-plugin": "^0.5.1", "@storybook/react-docgen-typescript-plugin": "1.0.6--canary.9.0c3f3b7.0", - "@storybook/types": "7.1.0-alpha.44", + "@storybook/types": "7.1.0-beta.2", "@types/babel__core": "^7.1.7", "babel-plugin-react-docgen": "^4.1.0", "pnp-webpack-plugin": "^1.7.0", "semver": "^7.3.5" }, "devDependencies": { - "@storybook/node-logger": "7.1.0-alpha.44", + "@storybook/node-logger": "7.1.0-beta.2", "@types/node": "^16.0.0", "typescript": "~4.9.3" }, diff --git a/code/presets/html-webpack/package.json b/code/presets/html-webpack/package.json index 3c6a070d1b6c..5752aafbf440 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": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook for HTML: View HTML snippets in isolation with Hot Reloading.", "keywords": [ "storybook" @@ -48,7 +48,7 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/core-webpack": "7.1.0-alpha.44", + "@storybook/core-webpack": "7.1.0-beta.2", "@types/node": "^16.0.0", "html-loader": "^3.1.0", "webpack": "5" diff --git a/code/presets/preact-webpack/package.json b/code/presets/preact-webpack/package.json index 2acbc9902cf7..edaa4eef3b77 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": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook for Preact: Develop Preact Component in isolation.", "keywords": [ "storybook" @@ -50,7 +50,7 @@ "dependencies": { "@babel/plugin-transform-react-jsx": "^7.21.0", "@babel/preset-typescript": "^7.21.0", - "@storybook/core-webpack": "7.1.0-alpha.44", + "@storybook/core-webpack": "7.1.0-beta.2", "@types/node": "^16.0.0" }, "devDependencies": { diff --git a/code/presets/react-webpack/package.json b/code/presets/react-webpack/package.json index d30d756df783..0b4435533af2 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": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook for React: Develop React Component in isolation with Hot Reloading", "keywords": [ "storybook" @@ -66,10 +66,10 @@ "@babel/preset-flow": "^7.21.0", "@babel/preset-react": "^7.22.0", "@pmmmwh/react-refresh-webpack-plugin": "^0.5.5", - "@storybook/core-webpack": "7.1.0-alpha.44", - "@storybook/docs-tools": "7.1.0-alpha.44", - "@storybook/node-logger": "7.1.0-alpha.44", - "@storybook/react": "7.1.0-alpha.44", + "@storybook/core-webpack": "7.1.0-beta.2", + "@storybook/docs-tools": "7.1.0-beta.2", + "@storybook/node-logger": "7.1.0-beta.2", + "@storybook/react": "7.1.0-beta.2", "@storybook/react-docgen-typescript-plugin": "1.0.6--canary.9.0c3f3b7.0", "@types/node": "^16.0.0", "@types/semver": "^7.3.4", diff --git a/code/presets/server-webpack/package.json b/code/presets/server-webpack/package.json index 01eaa8b1b5f5..9488297affde 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": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook for Server: View HTML snippets from a server in isolation with Hot Reloading.", "keywords": [ "storybook" @@ -53,10 +53,10 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/core-server": "7.1.0-alpha.44", - "@storybook/core-webpack": "7.1.0-alpha.44", + "@storybook/core-server": "7.1.0-beta.2", + "@storybook/core-webpack": "7.1.0-beta.2", "@storybook/global": "^5.0.0", - "@storybook/server": "7.1.0-alpha.44", + "@storybook/server": "7.1.0-beta.2", "@types/node": "^16.0.0", "safe-identifier": "^0.4.1", "ts-dedent": "^2.0.0", diff --git a/code/presets/svelte-webpack/package.json b/code/presets/svelte-webpack/package.json index f1864dca70bc..7b292d136cd9 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": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook for Svelte: Develop Svelte Component in isolation with Hot Reloading.", "keywords": [ "storybook" @@ -63,8 +63,8 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/core-webpack": "7.1.0-alpha.44", - "@storybook/node-logger": "7.1.0-alpha.44", + "@storybook/core-webpack": "7.1.0-beta.2", + "@storybook/node-logger": "7.1.0-beta.2", "sveltedoc-parser": "^4.2.1", "ts-dedent": "^2.0.0" }, diff --git a/code/presets/vue-webpack/package.json b/code/presets/vue-webpack/package.json index 0ada2b6aef68..4f33456662d7 100644 --- a/code/presets/vue-webpack/package.json +++ b/code/presets/vue-webpack/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/preset-vue-webpack", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook for Vue: Develop Vue Component in isolation with Hot Reloading.", "keywords": [ "storybook" @@ -58,8 +58,8 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/core-webpack": "7.1.0-alpha.44", - "@storybook/docs-tools": "7.1.0-alpha.44", + "@storybook/core-webpack": "7.1.0-beta.2", + "@storybook/docs-tools": "7.1.0-beta.2", "@types/node": "^16.0.0", "ts-loader": "^9.2.8", "vue-docgen-api": "^4.44.23", diff --git a/code/presets/vue3-webpack/package.json b/code/presets/vue3-webpack/package.json index 33886cf892f6..a94712230c61 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": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook for Vue 3: Develop Vue 3 Components in isolation with Hot Reloading.", "keywords": [ "storybook" @@ -58,8 +58,8 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/core-webpack": "7.1.0-alpha.44", - "@storybook/docs-tools": "7.1.0-alpha.44", + "@storybook/core-webpack": "7.1.0-beta.2", + "@storybook/docs-tools": "7.1.0-beta.2", "@types/node": "^16.0.0", "ts-loader": "^9.2.8", "vue-docgen-api": "^4.46.0", diff --git a/code/presets/web-components-webpack/package.json b/code/presets/web-components-webpack/package.json index b48657e7d2a4..817080461a95 100644 --- a/code/presets/web-components-webpack/package.json +++ b/code/presets/web-components-webpack/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/preset-web-components-webpack", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook for web-components: View web components snippets in isolation with Hot Reloading.", "keywords": [ "lit", @@ -54,7 +54,7 @@ "@babel/plugin-syntax-dynamic-import": "^7.8.3", "@babel/plugin-syntax-import-meta": "^7.10.4", "@babel/preset-env": "^7.22.0", - "@storybook/core-webpack": "7.1.0-alpha.44", + "@storybook/core-webpack": "7.1.0-beta.2", "@types/node": "^16.0.0", "babel-loader": "^7.0.0 || ^8.0.0 || ^9.0.0", "babel-plugin-bundled-import-meta": "^0.3.1" diff --git a/code/renderers/html/package.json b/code/renderers/html/package.json index d43df0feafaa..58d08c2f28bb 100644 --- a/code/renderers/html/package.json +++ b/code/renderers/html/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/html", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook HTML renderer", "keywords": [ "storybook" @@ -48,11 +48,11 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/core-client": "7.1.0-alpha.44", - "@storybook/docs-tools": "7.1.0-alpha.44", + "@storybook/core-client": "7.1.0-beta.2", + "@storybook/docs-tools": "7.1.0-beta.2", "@storybook/global": "^5.0.0", - "@storybook/preview-api": "7.1.0-alpha.44", - "@storybook/types": "7.1.0-alpha.44", + "@storybook/preview-api": "7.1.0-beta.2", + "@storybook/types": "7.1.0-beta.2", "ts-dedent": "^2.0.0" }, "devDependencies": { diff --git a/code/renderers/preact/package.json b/code/renderers/preact/package.json index 5782b24e8941..71d6f2aaac2e 100644 --- a/code/renderers/preact/package.json +++ b/code/renderers/preact/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/preact", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook Preact renderer", "keywords": [ "storybook" @@ -48,10 +48,10 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/core-client": "7.1.0-alpha.44", + "@storybook/core-client": "7.1.0-beta.2", "@storybook/global": "^5.0.0", - "@storybook/preview-api": "7.1.0-alpha.44", - "@storybook/types": "7.1.0-alpha.44", + "@storybook/preview-api": "7.1.0-beta.2", + "@storybook/types": "7.1.0-beta.2", "ts-dedent": "^2.0.0" }, "devDependencies": { diff --git a/code/renderers/react/package.json b/code/renderers/react/package.json index d555721d415d..add0c98a6525 100644 --- a/code/renderers/react/package.json +++ b/code/renderers/react/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/react", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook React renderer", "keywords": [ "storybook" @@ -52,13 +52,13 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/client-logger": "7.1.0-alpha.44", - "@storybook/core-client": "7.1.0-alpha.44", - "@storybook/docs-tools": "7.1.0-alpha.44", + "@storybook/client-logger": "7.1.0-beta.2", + "@storybook/core-client": "7.1.0-beta.2", + "@storybook/docs-tools": "7.1.0-beta.2", "@storybook/global": "^5.0.0", - "@storybook/preview-api": "7.1.0-alpha.44", - "@storybook/react-dom-shim": "7.1.0-alpha.44", - "@storybook/types": "7.1.0-alpha.44", + "@storybook/preview-api": "7.1.0-beta.2", + "@storybook/react-dom-shim": "7.1.0-beta.2", + "@storybook/types": "7.1.0-beta.2", "@types/escodegen": "^0.0.6", "@types/estree": "^0.0.51", "@types/node": "^16.0.0", @@ -79,12 +79,12 @@ "@types/util-deprecate": "^1.0.0", "expect-type": "^0.15.0", "jest-specific-snapshot": "^8.0.0", - "require-from-string": "^2.0.2", - "typescript": "~4.9.3" + "require-from-string": "^2.0.2" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0", - "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" + "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0", + "typescript": "*" }, "peerDependenciesMeta": { "typescript": { diff --git a/code/renderers/server/package.json b/code/renderers/server/package.json index 3be21b15902d..68c51f5dcaa7 100644 --- a/code/renderers/server/package.json +++ b/code/renderers/server/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/server", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook Server renderer", "keywords": [ "storybook" @@ -53,12 +53,12 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/core-client": "7.1.0-alpha.44", + "@storybook/core-client": "7.1.0-beta.2", "@storybook/csf": "^0.1.0", - "@storybook/csf-tools": "7.1.0-alpha.44", + "@storybook/csf-tools": "7.1.0-beta.2", "@storybook/global": "^5.0.0", - "@storybook/preview-api": "7.1.0-alpha.44", - "@storybook/types": "7.1.0-alpha.44", + "@storybook/preview-api": "7.1.0-beta.2", + "@storybook/types": "7.1.0-beta.2", "@types/fs-extra": "^11.0.1", "fs-extra": "^11.1.0", "ts-dedent": "^2.0.0", diff --git a/code/renderers/svelte/package.json b/code/renderers/svelte/package.json index 79e6b8b62249..c224a590faba 100644 --- a/code/renderers/svelte/package.json +++ b/code/renderers/svelte/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/svelte", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook Svelte renderer", "keywords": [ "storybook" @@ -52,13 +52,13 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/client-logger": "7.1.0-alpha.44", - "@storybook/core-client": "7.1.0-alpha.44", - "@storybook/core-events": "7.1.0-alpha.44", - "@storybook/docs-tools": "7.1.0-alpha.44", + "@storybook/client-logger": "7.1.0-beta.2", + "@storybook/core-client": "7.1.0-beta.2", + "@storybook/core-events": "7.1.0-beta.2", + "@storybook/docs-tools": "7.1.0-beta.2", "@storybook/global": "^5.0.0", - "@storybook/preview-api": "7.1.0-alpha.44", - "@storybook/types": "7.1.0-alpha.44", + "@storybook/preview-api": "7.1.0-beta.2", + "@storybook/types": "7.1.0-beta.2", "sveltedoc-parser": "^4.2.1", "type-fest": "^3.11.0" }, diff --git a/code/renderers/vue/package.json b/code/renderers/vue/package.json index eee57feba3ec..8c99058b9596 100644 --- a/code/renderers/vue/package.json +++ b/code/renderers/vue/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/vue", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook Vue renderer", "keywords": [ "storybook" @@ -48,12 +48,12 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/client-logger": "7.1.0-alpha.44", - "@storybook/core-client": "7.1.0-alpha.44", - "@storybook/docs-tools": "7.1.0-alpha.44", + "@storybook/client-logger": "7.1.0-beta.2", + "@storybook/core-client": "7.1.0-beta.2", + "@storybook/docs-tools": "7.1.0-beta.2", "@storybook/global": "^5.0.0", - "@storybook/preview-api": "7.1.0-alpha.44", - "@storybook/types": "7.1.0-alpha.44", + "@storybook/preview-api": "7.1.0-beta.2", + "@storybook/types": "7.1.0-beta.2", "ts-dedent": "^2.0.0", "type-fest": "^3.11.0" }, diff --git a/code/renderers/vue3/package.json b/code/renderers/vue3/package.json index 8354cf44edf9..0a233b0463b7 100644 --- a/code/renderers/vue3/package.json +++ b/code/renderers/vue3/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/vue3", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook Vue 3 renderer", "keywords": [ "storybook" @@ -48,11 +48,11 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/core-client": "7.1.0-alpha.44", - "@storybook/docs-tools": "7.1.0-alpha.44", + "@storybook/core-client": "7.1.0-beta.2", + "@storybook/docs-tools": "7.1.0-beta.2", "@storybook/global": "^5.0.0", - "@storybook/preview-api": "7.1.0-alpha.44", - "@storybook/types": "7.1.0-alpha.44", + "@storybook/preview-api": "7.1.0-beta.2", + "@storybook/types": "7.1.0-beta.2", "lodash": "^4.17.21", "ts-dedent": "^2.0.0", "type-fest": "^3.11.0", diff --git a/code/renderers/web-components/package.json b/code/renderers/web-components/package.json index 7bd934372e11..1dde0309b740 100644 --- a/code/renderers/web-components/package.json +++ b/code/renderers/web-components/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/web-components", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook web-components renderer", "keywords": [ "lit", @@ -51,13 +51,13 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/client-logger": "7.1.0-alpha.44", - "@storybook/core-client": "7.1.0-alpha.44", - "@storybook/docs-tools": "7.1.0-alpha.44", + "@storybook/client-logger": "7.1.0-beta.2", + "@storybook/core-client": "7.1.0-beta.2", + "@storybook/docs-tools": "7.1.0-beta.2", "@storybook/global": "^5.0.0", - "@storybook/manager-api": "7.1.0-alpha.44", - "@storybook/preview-api": "7.1.0-alpha.44", - "@storybook/types": "7.1.0-alpha.44", + "@storybook/manager-api": "7.1.0-beta.2", + "@storybook/preview-api": "7.1.0-beta.2", + "@storybook/types": "7.1.0-beta.2", "tiny-invariant": "^1.3.1", "ts-dedent": "^2.0.0" }, diff --git a/code/ui/.storybook/main.ts b/code/ui/.storybook/main.ts index 23a70dc16661..541b0f2c69e1 100644 --- a/code/ui/.storybook/main.ts +++ b/code/ui/.storybook/main.ts @@ -50,6 +50,7 @@ const config: StorybookConfig = { '@storybook/addon-essentials', '@storybook/addon-interactions', '@storybook/addon-storysource', + '@storybook/addon-designs', ], framework: { name: '@storybook/react-vite', diff --git a/code/ui/.storybook/preview.tsx b/code/ui/.storybook/preview.tsx index 7c52ad023776..c89c15e85db4 100644 --- a/code/ui/.storybook/preview.tsx +++ b/code/ui/.storybook/preview.tsx @@ -277,6 +277,7 @@ export const parameters = { }, docs: { theme: themes.light, + toc: {}, }, controls: { presetColors: [ diff --git a/code/ui/blocks/package.json b/code/ui/blocks/package.json index 62625736212f..70b667de3e2c 100644 --- a/code/ui/blocks/package.json +++ b/code/ui/blocks/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/blocks", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Storybook Doc Blocks", "keywords": [ "storybook" @@ -43,17 +43,17 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/channels": "7.1.0-alpha.44", - "@storybook/client-logger": "7.1.0-alpha.44", - "@storybook/components": "7.1.0-alpha.44", - "@storybook/core-events": "7.1.0-alpha.44", + "@storybook/channels": "7.1.0-beta.2", + "@storybook/client-logger": "7.1.0-beta.2", + "@storybook/components": "7.1.0-beta.2", + "@storybook/core-events": "7.1.0-beta.2", "@storybook/csf": "^0.1.0", - "@storybook/docs-tools": "7.1.0-alpha.44", + "@storybook/docs-tools": "7.1.0-beta.2", "@storybook/global": "^5.0.0", - "@storybook/manager-api": "7.1.0-alpha.44", - "@storybook/preview-api": "7.1.0-alpha.44", - "@storybook/theming": "7.1.0-alpha.44", - "@storybook/types": "7.1.0-alpha.44", + "@storybook/manager-api": "7.1.0-beta.2", + "@storybook/preview-api": "7.1.0-beta.2", + "@storybook/theming": "7.1.0-beta.2", + "@storybook/types": "7.1.0-beta.2", "@types/lodash": "^4.14.167", "color-convert": "^2.0.1", "dequal": "^2.0.2", @@ -63,11 +63,12 @@ "polished": "^4.2.2", "react-colorful": "^5.1.2", "telejson": "^7.0.3", + "tocbot": "^4.20.1", "ts-dedent": "^2.0.0", "util-deprecate": "^1.0.2" }, "devDependencies": { - "@storybook/addon-actions": "7.1.0-alpha.44", + "@storybook/addon-actions": "7.1.0-beta.2", "@types/color-convert": "^2.0.0" }, "peerDependencies": { diff --git a/code/ui/blocks/src/blocks/DocsContainer.tsx b/code/ui/blocks/src/blocks/DocsContainer.tsx index 8640f06a68f1..07b855295f10 100644 --- a/code/ui/blocks/src/blocks/DocsContainer.tsx +++ b/code/ui/blocks/src/blocks/DocsContainer.tsx @@ -9,6 +9,7 @@ import type { DocsContextProps } from './DocsContext'; import { DocsContext } from './DocsContext'; import { SourceContainer } from './SourceContainer'; import { scrollToElement } from './utils'; +import { TableOfContents } from '../components/TableOfContents'; const { document, window: globalWindow } = global; @@ -22,6 +23,16 @@ export const DocsContainer: FC> = ({ theme, children, }) => { + let toc; + + try { + const meta = context.resolveOf('meta', ['meta']); + toc = meta.preparedMeta.parameters?.docs?.toc; + } catch (err) { + // No meta, falling back to project annotations + toc = context?.projectAnnotations?.parameters?.docs?.toc; + } + useEffect(() => { let url; try { @@ -44,7 +55,11 @@ export const DocsContainer: FC> = ({ - {children} + : null} + > + {children} + diff --git a/code/ui/blocks/src/components/DocsPage.tsx b/code/ui/blocks/src/components/DocsPage.tsx index 6b097e66063e..112025269863 100644 --- a/code/ui/blocks/src/components/DocsPage.tsx +++ b/code/ui/blocks/src/components/DocsPage.tsx @@ -1,9 +1,9 @@ +import type { FC } from 'react'; +import React from 'react'; +import { transparentize } from 'polished'; import { withReset } from '@storybook/components'; import type { CSSObject } from '@storybook/theming'; import { styled } from '@storybook/theming'; -import { transparentize } from 'polished'; -import type { FC } from 'react'; -import React from 'react'; /** * This selector styles all raw elements inside the DocsPage like this example with a `
`: @@ -429,16 +429,19 @@ export const DocsWrapper = styled.div(({ theme }) => ({ padding: '4rem 20px', minHeight: '100vh', boxSizing: 'border-box', + gap: '3rem', [`@media (min-width: ${breakpoint}px)`]: {}, })); interface DocsPageWrapperProps { children?: React.ReactNode; + toc?: React.ReactNode; } -export const DocsPageWrapper: FC = ({ children }) => ( +export const DocsPageWrapper: FC = ({ children, toc }) => ( {children} + {toc} ); diff --git a/code/ui/blocks/src/components/Source.tsx b/code/ui/blocks/src/components/Source.tsx index 970b501b6cb9..19c3d68f1cb8 100644 --- a/code/ui/blocks/src/components/Source.tsx +++ b/code/ui/blocks/src/components/Source.tsx @@ -8,27 +8,26 @@ import { ignoreSsrWarning, useTheme, } from '@storybook/theming'; -import { SyntaxHighlighter } from '@storybook/components'; +import { SyntaxHighlighter } from '@storybook/components'; +import type { SyntaxHighlighterProps } from '@storybook/components'; import { EmptyBlock } from './EmptyBlock'; -const StyledSyntaxHighlighter: typeof SyntaxHighlighter = styled(SyntaxHighlighter)( - ({ theme }) => ({ - // DocBlocks-specific styling and overrides - fontSize: `${theme.typography.size.s2 - 1}px`, - lineHeight: '19px', - margin: '25px 0 40px', - borderRadius: theme.appBorderRadius, - boxShadow: - theme.base === 'light' - ? 'rgba(0, 0, 0, 0.10) 0 1px 3px 0' - : 'rgba(0, 0, 0, 0.20) 0 2px 5px 0', - 'pre.prismjs': { - padding: 20, - background: 'inherit', - }, - }) -); +const StyledSyntaxHighlighter: React.FunctionComponent = styled( + SyntaxHighlighter +)(({ theme }) => ({ + // DocBlocks-specific styling and overrides + fontSize: `${theme.typography.size.s2 - 1}px`, + lineHeight: '19px', + margin: '25px 0 40px', + borderRadius: theme.appBorderRadius, + boxShadow: + theme.base === 'light' ? 'rgba(0, 0, 0, 0.10) 0 1px 3px 0' : 'rgba(0, 0, 0, 0.20) 0 2px 5px 0', + 'pre.prismjs': { + padding: 20, + background: 'inherit', + }, +})); export enum SourceError { NO_STORY = 'There\u2019s no story here.', diff --git a/code/ui/blocks/src/components/TableOfContents.tsx b/code/ui/blocks/src/components/TableOfContents.tsx new file mode 100644 index 000000000000..892f1e137f20 --- /dev/null +++ b/code/ui/blocks/src/components/TableOfContents.tsx @@ -0,0 +1,181 @@ +import React, { useEffect } from 'react'; +import type { FC, ReactElement } from 'react'; +import { styled } from '@storybook/theming'; +import tocbot from 'tocbot'; + +export interface TocParameters { + /** CSS selector for the container to search for headings. */ + contentsSelector?: string; + + /** + * When true, hide the TOC. We still show the empty container + * (as opposed to showing nothing at all) because it affects the + * page layout and we want to preserve the layout across pages. + */ + disable?: boolean; + + /** CSS selector to match headings to list in the TOC. */ + headingSelector?: string; + + /** Headings that match the ignoreSelector will be skipped. */ + ignoreSelector?: string; + + /** Custom title ReactElement or string to display above the TOC. */ + title?: ReactElement | string | null; + + /** + * TocBot options, not guaranteed to be available in future versions. + * @see tocbot docs {@link https://tscanlin.github.io/tocbot/#usage} + */ + unsafeTocbotOptions?: tocbot.IStaticOptions; +} + +const Wrapper = styled.div(({ theme }) => ({ + width: '10rem', + + '@media (max-width: 768px)': { + display: 'none', + }, +})); + +const Content = styled.div(({ theme }) => ({ + position: 'fixed', + top: 0, + width: '10rem', + paddingTop: '4rem', + + fontFamily: theme.typography.fonts.base, + fontSize: theme.typography.size.s2, + + WebkitFontSmoothing: 'antialiased', + MozOsxFontSmoothing: 'grayscale', + WebkitTapHighlightColor: 'rgba(0, 0, 0, 0)', + WebkitOverflowScrolling: 'touch', + + '& *': { + boxSizing: 'border-box', + }, + + '& > .toc-wrapper > .toc-list': { + paddingLeft: 0, + borderLeft: `solid 2px ${theme.color.mediumlight}`, + + '.toc-list': { + paddingLeft: 0, + borderLeft: `solid 2px ${theme.color.mediumlight}`, + + '.toc-list': { + paddingLeft: 0, + borderLeft: `solid 2px ${theme.color.mediumlight}`, + }, + }, + }, + '& .toc-list-item': { + position: 'relative', + listStyleType: 'none', + marginLeft: 20, + paddingTop: 3, + paddingBottom: 3, + }, + '& .toc-list-item::before': { + content: '""', + position: 'absolute', + height: '100%', + top: 0, + left: 0, + transform: `translateX(calc(-2px - 20px))`, + borderLeft: `solid 2px ${theme.color.mediumdark}`, + opacity: 0, + transition: 'opacity 0.2s', + }, + '& .toc-list-item.is-active-li::before': { + opacity: 1, + }, + '& .toc-list-item > a': { + color: theme.color.defaultText, + textDecoration: 'none', + }, + '& .toc-list-item.is-active-li > a': { + fontWeight: 600, + color: theme.color.secondary, + textDecoration: 'none', + }, +})); + +const Heading = styled.p(({ theme }) => ({ + fontWeight: 600, + fontSize: '0.875em', + color: theme.textColor, + textTransform: 'uppercase', + marginBottom: 10, +})); + +type TableOfContentsProps = React.PropsWithChildren< + TocParameters & { + className?: string; + } +>; + +const OptionalTitle: FC<{ title: TableOfContentsProps['title'] }> = ({ title }) => { + if (title === null) { + return null; + } + if (typeof title === 'string') { + return {title}; + } + return title; +}; + +export const TableOfContents = ({ + title, + disable, + headingSelector, + contentsSelector, + ignoreSelector, + unsafeTocbotOptions, +}: TableOfContentsProps) => { + useEffect(() => { + const configuration = { + tocSelector: '.toc-wrapper', + contentSelector: contentsSelector ?? '.sbdocs-content', + headingSelector: headingSelector ?? 'h3', + ignoreSelector: ignoreSelector ?? '.skip-toc', + headingsOffset: 40, + scrollSmoothOffset: -40, + /** + * Ignore headings that did not + * come from the main markdown code. + */ + // ignoreSelector: ':not(.sbdocs), .hide-from-toc', + orderedList: false, + /** + * Prevent default linking behavior, + * leaving only the smooth scrolling. + */ + onClick: () => false, + ...unsafeTocbotOptions, + }; + + /** + * Wait for the DOM to be ready. + */ + const timeout = setTimeout(() => tocbot.init(configuration), 100); + return () => { + clearTimeout(timeout); + tocbot.destroy(); + }; + }, [disable]); + + return ( + <> + + {!disable ? ( + + +
+ + ) : null} + + + ); +}; diff --git a/code/ui/components/package.json b/code/ui/components/package.json index 2e13894096f5..325c27e2a5b3 100644 --- a/code/ui/components/package.json +++ b/code/ui/components/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/components", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Core Storybook Components", "keywords": [ "storybook" @@ -48,11 +48,11 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "@storybook/client-logger": "7.1.0-alpha.44", + "@storybook/client-logger": "7.1.0-beta.2", "@storybook/csf": "^0.1.0", "@storybook/global": "^5.0.0", - "@storybook/theming": "7.1.0-alpha.44", - "@storybook/types": "7.1.0-alpha.44", + "@storybook/theming": "7.1.0-beta.2", + "@storybook/types": "7.1.0-beta.2", "memoizerific": "^1.11.3", "use-resize-observer": "^9.1.0", "util-deprecate": "^1.0.2" diff --git a/code/ui/components/src/Zoom/ZoomElement.tsx b/code/ui/components/src/Zoom/ZoomElement.tsx index e880637a30b7..8293d9a7f031 100644 --- a/code/ui/components/src/Zoom/ZoomElement.tsx +++ b/code/ui/components/src/Zoom/ZoomElement.tsx @@ -2,23 +2,13 @@ import type { ReactElement } from 'react'; import React, { useEffect, useRef, useState, useCallback } from 'react'; import useResizeObserver from 'use-resize-observer'; import { styled } from '@storybook/theming'; -import { browserSupportsCssZoom } from './browserSupportsCssZoom'; - -const hasBrowserSupportForCssZoom = browserSupportsCssZoom(); const ZoomElementWrapper = styled.div<{ scale: number; elementHeight: number }>( - ({ scale = 1, elementHeight }) => - hasBrowserSupportForCssZoom - ? { - '> *': { - zoom: 1 / scale, - }, - } - : { - height: elementHeight || 'auto', - transformOrigin: 'top left', - transform: `scale(${1 / scale})`, - } + ({ scale = 1, elementHeight }) => ({ + height: elementHeight || 'auto', + transformOrigin: 'top left', + transform: `scale(${1 / scale})`, + }) ); type ZoomProps = { @@ -52,10 +42,7 @@ export function ZoomElement({ scale, children }: ZoomProps) { return ( -
+
{children}
diff --git a/code/ui/components/src/Zoom/ZoomIFrame.tsx b/code/ui/components/src/Zoom/ZoomIFrame.tsx index 255a39c414b5..3101364bd861 100644 --- a/code/ui/components/src/Zoom/ZoomIFrame.tsx +++ b/code/ui/components/src/Zoom/ZoomIFrame.tsx @@ -1,6 +1,5 @@ import type { RefObject, ReactElement } from 'react'; import { Component } from 'react'; -import { browserSupportsCssZoom } from './browserSupportsCssZoom'; export type IZoomIFrameProps = { scale: number; @@ -36,19 +35,12 @@ export class ZoomIFrame extends Component { setIframeInnerZoom(scale: number) { try { - if (browserSupportsCssZoom()) { - Object.assign(this.iframe.contentDocument.body.style, { - zoom: 1 / scale, - minHeight: `calc(100vh / ${1 / scale})`, - }); - } else { - Object.assign(this.iframe.contentDocument.body.style, { - width: `${scale * 100}%`, - height: `${scale * 100}%`, - transform: `scale(${1 / scale})`, - transformOrigin: 'top left', - }); - } + Object.assign(this.iframe.contentDocument.body.style, { + width: `${scale * 100}%`, + height: `${scale * 100}%`, + transform: `scale(${1 / scale})`, + transformOrigin: 'top left', + }); } catch (e) { this.setIframeZoom(scale); } diff --git a/code/ui/components/src/Zoom/browserSupportsCssZoom.ts b/code/ui/components/src/Zoom/browserSupportsCssZoom.ts deleted file mode 100644 index 43ff5b9004cf..000000000000 --- a/code/ui/components/src/Zoom/browserSupportsCssZoom.ts +++ /dev/null @@ -1,13 +0,0 @@ -export function browserSupportsCssZoom(): boolean { - try { - // First checks if Safari is being used, because Safari supports zoom, but it's buggy: https://developer.mozilla.org/en-US/docs/Web/CSS/zoom#browser_compatibility - if (/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) { - return false; - } - - // Next check if the browser supports zoom styling - return global.CSS?.supports('zoom: 1'); - } catch (error) { - return false; - } -} diff --git a/code/ui/components/src/clipboard/ClipboardCode.tsx b/code/ui/components/src/clipboard/ClipboardCode.tsx new file mode 100644 index 000000000000..577a6674f5d4 --- /dev/null +++ b/code/ui/components/src/clipboard/ClipboardCode.tsx @@ -0,0 +1,27 @@ +import React from 'react'; +import { color, styled, typography } from '@storybook/theming'; + +const Code = styled.pre` + line-height: 18px; + padding: 11px 1rem; + white-space: pre-wrap; + background: rgba(0, 0, 0, 0.05); + color: ${color.darkest}; + border-radius: 3px; + margin: 1rem 0; + width: 100%; + display: block; + overflow: hidden; + font-family: ${typography.fonts.mono}; + font-size: ${typography.size.s2 - 1}px; +`; + +interface ClipboardCodeProps { + code: string; +} + +export const ClipboardCode = ({ code, ...props }: ClipboardCodeProps) => ( + + {code} + +); diff --git a/code/ui/components/src/index.ts b/code/ui/components/src/index.ts index c654094f1b61..292a9c7067dd 100644 --- a/code/ui/components/src/index.ts +++ b/code/ui/components/src/index.ts @@ -26,7 +26,6 @@ export { Span } from './typography/elements/Span'; export { Table } from './typography/elements/Table'; export { TT } from './typography/elements/TT'; export { UL } from './typography/elements/UL'; - export { Badge } from './Badge/Badge'; // Typography @@ -85,6 +84,8 @@ export * from './typography/ResetWrapper'; export { withReset, codeCommon } from './typography/lib/common'; +export { ClipboardCode } from './clipboard/ClipboardCode'; + // eslint-disable-next-line prefer-destructuring export const components = typography.components; diff --git a/code/ui/components/src/syntaxhighlighter/lazy-syntaxhighlighter.tsx b/code/ui/components/src/syntaxhighlighter/lazy-syntaxhighlighter.tsx index 9ac7c5314e17..822034aca219 100644 --- a/code/ui/components/src/syntaxhighlighter/lazy-syntaxhighlighter.tsx +++ b/code/ui/components/src/syntaxhighlighter/lazy-syntaxhighlighter.tsx @@ -1,21 +1,57 @@ -import type { ComponentProps } from 'react'; import React, { Suspense, lazy } from 'react'; -const LazySyntaxHighlighter = lazy(() => import('./syntaxhighlighter')); +import type { ComponentProps } from 'react'; +import type ReactSyntaxHighlighter from './syntaxhighlighter'; + +let languages: Parameters[] = []; +let Comp: typeof ReactSyntaxHighlighter | null = null; + +const LazySyntaxHighlighter = lazy(async () => { + const { SyntaxHighlighter } = await import('./syntaxhighlighter'); + + if (languages.length > 0) { + languages.forEach((args) => { + SyntaxHighlighter.registerLanguage(...args); + }); + languages = []; + } + + if (Comp === null) Comp = SyntaxHighlighter; + + return { + default: (props: ComponentProps) => , + }; +}); + const LazySyntaxHighlighterWithFormatter = lazy(async () => { const [{ SyntaxHighlighter }, { formatter }] = await Promise.all([ import('./syntaxhighlighter'), import('./formatter'), ]); + if (languages.length > 0) { + languages.forEach((args) => { + SyntaxHighlighter.registerLanguage(...args); + }); + languages = []; + } + + if (Comp === null) { + Comp = SyntaxHighlighter; + } + return { - default: (props: ComponentProps) => ( + default: (props: ComponentProps) => ( ), }; }); -export const SyntaxHighlighter = (props: ComponentProps) => ( +export const SyntaxHighlighter = ( + props: + | ComponentProps + | ComponentProps +) => ( }> {props.format !== false ? ( @@ -24,3 +60,13 @@ export const SyntaxHighlighter = (props: ComponentProps ); + +SyntaxHighlighter.registerLanguage = ( + ...args: Parameters +) => { + if (Comp !== null) { + Comp.registerLanguage(...args); + return; + } + languages.push(args); +}; diff --git a/code/ui/components/src/syntaxhighlighter/syntaxhighlighter.stories.tsx b/code/ui/components/src/syntaxhighlighter/syntaxhighlighter.stories.tsx index 22609a6f5543..12d76391f6cf 100644 --- a/code/ui/components/src/syntaxhighlighter/syntaxhighlighter.stories.tsx +++ b/code/ui/components/src/syntaxhighlighter/syntaxhighlighter.stories.tsx @@ -1,6 +1,7 @@ +import { ThemeProvider, ensure, themes } from '@storybook/theming'; + import type { ComponentProps } from 'react'; import React from 'react'; -import { ThemeProvider, themes, ensure } from '@storybook/theming'; import { SyntaxHighlighter } from './lazy-syntaxhighlighter'; export default { @@ -108,6 +109,24 @@ export const GraphQL = { }, }; +export const CustomSyntax = { + args: { + language: 'scss', + children: `// Custom language syntax registered +div.parent { + div.child { + color: $red; + } +}`, + }, + loaders: [ + async () => { + const scss = (await import('react-syntax-highlighter/dist/esm/languages/prism/scss')).default; + SyntaxHighlighter.registerLanguage('scss', scss); + }, + ], +}; + export const Unsupported = { args: { language: 'C#', diff --git a/code/ui/components/src/syntaxhighlighter/syntaxhighlighter.tsx b/code/ui/components/src/syntaxhighlighter/syntaxhighlighter.tsx index 752ccb5dcb17..ec23fa8c4d47 100644 --- a/code/ui/components/src/syntaxhighlighter/syntaxhighlighter.tsx +++ b/code/ui/components/src/syntaxhighlighter/syntaxhighlighter.tsx @@ -190,7 +190,7 @@ export interface SyntaxHighlighterState { // copied from @types/react-syntax-highlighter/index.d.ts -export const SyntaxHighlighter: FC = ({ +export const SyntaxHighlighter = ({ children, language = 'jsx', copyable = false, @@ -201,7 +201,7 @@ export const SyntaxHighlighter: FC = ({ className = null, showLineNumbers = false, ...rest -}) => { +}: SyntaxHighlighterProps) => { if (typeof children !== 'string' || !children.trim()) { return null; } @@ -255,4 +255,8 @@ export const SyntaxHighlighter: FC = ({ ); }; +SyntaxHighlighter.registerLanguage = ( + ...args: Parameters +) => ReactSyntaxHighlighter.registerLanguage(...args); + export default SyntaxHighlighter; diff --git a/code/ui/manager/package.json b/code/ui/manager/package.json index 6a66ea301650..4674a01f8345 100644 --- a/code/ui/manager/package.json +++ b/code/ui/manager/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/manager", - "version": "7.1.0-alpha.44", + "version": "7.1.0-beta.2", "description": "Core Storybook UI", "keywords": [ "storybook" @@ -51,18 +51,19 @@ }, "devDependencies": { "@fal-works/esbuild-plugin-global-externals": "^2.1.2", - "@storybook/addons": "7.1.0-alpha.44", - "@storybook/api": "7.1.0-alpha.44", - "@storybook/channel-postmessage": "7.1.0-alpha.44", - "@storybook/channels": "7.1.0-alpha.44", - "@storybook/client-logger": "7.1.0-alpha.44", - "@storybook/components": "7.1.0-alpha.44", - "@storybook/core-events": "7.1.0-alpha.44", + "@storybook/addon-designs": "^7.0.0", + "@storybook/addons": "7.1.0-beta.2", + "@storybook/api": "7.1.0-beta.2", + "@storybook/channel-postmessage": "7.1.0-beta.2", + "@storybook/channels": "7.1.0-beta.2", + "@storybook/client-logger": "7.1.0-beta.2", + "@storybook/components": "7.1.0-beta.2", + "@storybook/core-events": "7.1.0-beta.2", "@storybook/global": "^5.0.0", - "@storybook/manager-api": "7.1.0-alpha.44", - "@storybook/router": "7.1.0-alpha.44", - "@storybook/theming": "7.1.0-alpha.44", - "@storybook/types": "7.1.0-alpha.44", + "@storybook/manager-api": "7.1.0-beta.2", + "@storybook/router": "7.1.0-beta.2", + "@storybook/theming": "7.1.0-beta.2", + "@storybook/types": "7.1.0-beta.2", "@testing-library/react": "^11.2.2", "@types/semver": "^7.3.4", "copy-to-clipboard": "^3.3.1", diff --git a/code/ui/manager/src/globals/exports.ts b/code/ui/manager/src/globals/exports.ts index 0e8fa703c97a..473867f750c0 100644 --- a/code/ui/manager/src/globals/exports.ts +++ b/code/ui/manager/src/globals/exports.ts @@ -54,6 +54,7 @@ export default { 'Bar', 'Blockquote', 'Button', + 'ClipboardCode', 'Code', 'DL', 'Div', diff --git a/code/ui/manager/src/settings/about.stories.jsx b/code/ui/manager/src/settings/about.stories.jsx deleted file mode 100644 index 7bb06a45ad0b..000000000000 --- a/code/ui/manager/src/settings/about.stories.jsx +++ /dev/null @@ -1,44 +0,0 @@ -import React from 'react'; -import { actions as createActions } from '@storybook/addon-actions'; - -import { AboutScreen } from './about'; - -const info = { - plain: `- upgrade webpack & babel to latest\n- new addParameters and third argument to .add to pass data to addons\n- added the ability to theme storybook\n- improved ui for mobile devices\n- improved performance of addon-knobs`, -}; - -export default { - component: AboutScreen, - title: 'Settings/AboutScreen', - decorators: [ - (storyFn) => ( -
- {storyFn()} -
- ), - ], -}; - -const actions = createActions('onClose'); - -export const UpToDate = () => ( - -); - -export const OldVersionRaceCondition = () => ( - -); - -export const NewVersionRequired = () => ( - -); - -export const FailedToFetchNewVersion = () => ( - -); diff --git a/code/ui/manager/src/settings/about.stories.tsx b/code/ui/manager/src/settings/about.stories.tsx new file mode 100644 index 000000000000..67fcabcf6667 --- /dev/null +++ b/code/ui/manager/src/settings/about.stories.tsx @@ -0,0 +1,39 @@ +import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; +import { AboutScreen } from './about'; + +const meta = { + component: AboutScreen, + title: 'Settings/AboutScreen', + decorators: [ + (Story) => ( +
+ +
+ ), + ], +} satisfies Meta; + +export default meta; + +type Story = StoryObj; + +export const Default: Story = { + args: { + current: { + version: '7.0.1', + }, + }, + parameters: { + design: { + type: 'figma', + url: 'https://www.figma.com/file/ur4kydUbRqdDyfoZWzdiIw/Storybook-app?type=design&node-id=9564-120444&mode=design&t=0TPINZFpwgFQFQeX-4', + }, + }, +}; diff --git a/code/ui/manager/src/settings/about.tsx b/code/ui/manager/src/settings/about.tsx index fccd4ee15111..cdb0db8c2a73 100644 --- a/code/ui/manager/src/settings/about.tsx +++ b/code/ui/manager/src/settings/about.tsx @@ -1,114 +1,159 @@ +/* eslint-disable no-nested-ternary */ import type { FC } from 'react'; -import React from 'react'; -import semver from 'semver'; +import React, { useState } from 'react'; import { styled } from '@storybook/theming'; import type { State } from '@storybook/manager-api'; -import { StorybookIcon, SyntaxHighlighter, DocumentWrapper } from '@storybook/components'; - -import SettingsFooter from './SettingsFooter'; +import { Button as BaseButton, Icons, Link, StorybookIcon } from '@storybook/components'; const Header = styled.header(({ theme }) => ({ - marginBottom: 20, - fontSize: theme.typography.size.m3, + marginBottom: 32, + fontSize: theme.typography.size.l2, color: theme.base === 'light' ? theme.color.darkest : theme.color.lightest, fontWeight: theme.typography.weight.bold, alignItems: 'center', display: 'flex', '> svg': { - height: 32, + height: 48, width: 'auto', marginRight: 8, }, })); -const UpdateMessage = styled.div<{ status: 'positive' | 'negative' | string }>( - ({ status, theme }) => { - if (status === 'positive') { - return { background: theme.background.positive, color: theme.color.positiveText }; - } - if (status === 'negative') { - return { background: theme.background.negative, color: theme.color.negativeText }; - } - return { - background: theme.base === 'light' ? '#EAF3FC' : theme.color.darkest, - color: theme.base === 'light' ? theme.color.darkest : theme.defaultText, - }; - }, +const Container = styled.div({ + display: `flex`, + alignItems: 'center', + justifyContent: 'center', + height: 'calc(100% - 40px)', + flexDirection: 'column', +}); - ({ theme }) => ({ - fontWeight: theme.typography.weight.bold, +const UpgradeBlock = styled.div(({ theme }) => { + return { + border: '1px solid', + borderRadius: 5, + padding: 20, + margin: 20, + maxWidth: 400, + borderColor: theme.appBorderColor, fontSize: theme.typography.size.s2, - padding: '10px 20px', - marginBottom: 24, - borderRadius: theme.appBorderRadius, - border: `1px solid ${theme.appBorderColor}`, - textAlign: 'center', - }) -); + }; +}); -const Upgrade = styled.div(({ theme }) => ({ - marginTop: 20, - borderTop: `1px solid ${theme.appBorderColor}`, +const Code = styled.pre(({ theme }) => ({ + background: theme.base === 'light' ? 'rgba(0, 0, 0, 0.05)' : theme.appBorderColor, + fontSize: theme.typography.size.s2 - 1, + margin: '4px 0 16px', })); -const Container = styled.div({ - padding: `3rem 20px`, - maxWidth: 600, - margin: '0 auto', -}); +const Footer = styled.div(({ theme }) => ({ + marginBottom: 24, + display: 'flex', + flexDirection: 'column', + alignItems: 'center', + color: theme.base === 'light' ? theme.color.dark : theme.color.lightest, + fontWeight: theme.typography.weight.regular, + fontSize: theme.typography.size.s2, +})); -const AboutScreen: FC<{ - latest: State['versions']['latest']; - current: State['versions']['current']; -}> = ({ latest = null, current }) => { - const canUpdate = latest && semver.gt(latest.version, current.version); +const SquareButton = styled(BaseButton)(({ theme }) => ({ + '&&': { + borderRadius: 4, + fontSize: '13px', + lineHeight: '14px', + color: theme.base === 'light' ? theme.color.darker : theme.color.lightest, + padding: '9px 12px', + svg: { + marginRight: 6, + }, + }, +})); + +const TabButton = styled(BaseButton)<{ active: boolean }>(({ theme, active }) => ({ + '&&': { + padding: 2, + paddingRight: 8, + margin: 0, + color: active + ? theme.color.secondary + : theme.base === 'light' + ? theme.color.dark + : theme.color.lightest, + }, +})); - let updateMessage; - if (latest) { - if (canUpdate) { - updateMessage = ( - - Storybook {latest.version} is available. Upgrade from {current.version} now. - - ); - } else { - updateMessage = ( - Looking good! You're up to date. - ); - } - } else { - updateMessage = ( - - Oops! The latest version of Storybook couldn't be fetched. - - ); - } +const StyledLink = styled(Link as any)(({ theme }) => ({ + '&&': { + fontWeight: theme.typography.weight.bold, + color: theme.base === 'light' ? theme.color.dark : theme.color.light, + }, + '&:hover': { + color: theme.base === 'light' ? theme.color.darkest : theme.color.lightest, + }, +})); +const AboutScreen: FC<{ + current: State['versions']['current']; + onNavigateToWhatsNew?: () => void; +}> = ({ current, onNavigateToWhatsNew }) => { + const [activeTab, setActiveTab] = useState<'npm' | 'pnpm'>('npm'); return ( +
- - Storybook {current.version} + Storybook
+ + You are on Storybook {current.version} +

Run the following script to check for updates and upgrade to the latest version.

+
+ setActiveTab('npm')}> + npm + + setActiveTab('pnpm')}> + pnpm + +
- {updateMessage} + + {activeTab === 'npm' + ? 'npx storybook@latest upgrade' + : 'pnpm dlx storybook@latest upgrade'} + + {onNavigateToWhatsNew && ( + // eslint-disable-next-line jsx-a11y/anchor-is-valid + See what's new in Storybook + )} +
- {canUpdate && ( - - -

- Upgrade all Storybook packages to latest: -

- - npx storybook@latest upgrade - -
-
- )} +
+
+
+ + + GitHub + - + + + Documentation + +
+
+ Open source software maintained by{' '} + Chromatic and the{' '} + + Storybook Community + +
+
); }; diff --git a/code/ui/manager/src/settings/about_page.tsx b/code/ui/manager/src/settings/about_page.tsx index 34640957ad18..e20d89d5362a 100644 --- a/code/ui/manager/src/settings/about_page.tsx +++ b/code/ui/manager/src/settings/about_page.tsx @@ -1,7 +1,7 @@ import type { FC } from 'react'; -import React, { Component } from 'react'; +import React, { Component, useCallback } from 'react'; -import { type API, useStorybookApi } from '@storybook/manager-api'; +import { type API, useStorybookApi, useStorybookState } from '@storybook/manager-api'; import { AboutScreen } from './about'; @@ -20,10 +20,19 @@ class NotificationClearer extends Component<{ api: API; notificationId: string } const AboutPage: FC = () => { const api = useStorybookApi(); + const state = useStorybookState(); + const onNavigateToWhatsNew = useCallback(() => { + api.changeSettingsTab('whats-new'); + }, [api]); return ( - + ); }; diff --git a/code/ui/manager/src/settings/whats_new.tsx b/code/ui/manager/src/settings/whats_new.tsx index a033f3b7ffe9..4f0b5072259e 100644 --- a/code/ui/manager/src/settings/whats_new.tsx +++ b/code/ui/manager/src/settings/whats_new.tsx @@ -37,7 +37,7 @@ const Iframe = styled.iframe<{ isLoaded: boolean }>( margin: 0, padding: 0, width: '100%', - height: '100%', + height: 'calc(100% - 40px)', }, ({ isLoaded }) => ({ visibility: isLoaded ? 'visible' : 'hidden' }) ); diff --git a/code/yarn.lock b/code/yarn.lock index 7191fc138352..ef1c71b726f8 100644 --- a/code/yarn.lock +++ b/code/yarn.lock @@ -2922,6 +2922,27 @@ __metadata: languageName: node linkType: hard +"@figspec/components@npm:^1.0.1": + version: 1.0.1 + resolution: "@figspec/components@npm:1.0.1" + dependencies: + lit: ^2.1.3 + checksum: 74e2c4c6959355efc5d89f224b32ed8207c4885b7d4bbdc2c7c9de6e5ef3e5b80a553fc26ca51eac77b03b6414ec645b147ba64211cf1165e2bcce49ced67fc8 + languageName: node + linkType: hard + +"@figspec/react@npm:^1.0.0": + version: 1.0.3 + resolution: "@figspec/react@npm:1.0.3" + dependencies: + "@figspec/components": ^1.0.1 + "@lit-labs/react": ^1.0.2 + peerDependencies: + react: ^16.14.0 || ^17.0.0 || ^18.0.0 + checksum: d5bbb79e106f522f5b867d0f55de01391edd1011e3f5d5a966ac07a5fca75f499d1d4d40a6186cf0afdc4fc4b49d808eb5d4fcbaf1784401a1ace2865dbc19be + languageName: node + linkType: hard + "@gar/promisify@npm:^1.1.3": version: 1.1.3 resolution: "@gar/promisify@npm:1.1.3" @@ -3912,6 +3933,13 @@ __metadata: languageName: node linkType: hard +"@lit-labs/react@npm:^1.0.2": + version: 1.2.1 + resolution: "@lit-labs/react@npm:1.2.1" + checksum: c92364101348400a06c3eb45a6384ca7d47c32765fdcad892827b360d0bad6cef7916f9a17744f2f471a5da3d7d73750767b885fc1521cd5e5e724badb71f014 + languageName: node + linkType: hard + "@lit-labs/ssr-dom-shim@npm:^1.0.0, @lit-labs/ssr-dom-shim@npm:^1.1.0": version: 1.1.1 resolution: "@lit-labs/ssr-dom-shim@npm:1.1.1" @@ -3919,7 +3947,7 @@ __metadata: languageName: node linkType: hard -"@lit/reactive-element@npm:^1.3.0, @lit/reactive-element@npm:^1.4.0": +"@lit/reactive-element@npm:^1.3.0, @lit/reactive-element@npm:^1.4.0, @lit/reactive-element@npm:^1.6.0": version: 1.6.2 resolution: "@lit/reactive-element@npm:1.6.2" dependencies: @@ -5124,16 +5152,16 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/addon-a11y@workspace:addons/a11y" dependencies: - "@storybook/addon-highlight": 7.1.0-alpha.44 - "@storybook/channels": 7.1.0-alpha.44 - "@storybook/client-logger": 7.1.0-alpha.44 - "@storybook/components": 7.1.0-alpha.44 - "@storybook/core-events": 7.1.0-alpha.44 + "@storybook/addon-highlight": 7.1.0-beta.2 + "@storybook/channels": 7.1.0-beta.2 + "@storybook/client-logger": 7.1.0-beta.2 + "@storybook/components": 7.1.0-beta.2 + "@storybook/core-events": 7.1.0-beta.2 "@storybook/global": ^5.0.0 - "@storybook/manager-api": 7.1.0-alpha.44 - "@storybook/preview-api": 7.1.0-alpha.44 - "@storybook/theming": 7.1.0-alpha.44 - "@storybook/types": 7.1.0-alpha.44 + "@storybook/manager-api": 7.1.0-beta.2 + "@storybook/preview-api": 7.1.0-beta.2 + "@storybook/theming": 7.1.0-beta.2 + "@storybook/types": 7.1.0-beta.2 "@testing-library/react": ^11.2.2 axe-core: ^4.2.0 lodash: ^4.17.21 @@ -5151,18 +5179,18 @@ __metadata: languageName: unknown linkType: soft -"@storybook/addon-actions@7.1.0-alpha.44, @storybook/addon-actions@workspace:*, @storybook/addon-actions@workspace:addons/actions": +"@storybook/addon-actions@7.1.0-beta.2, @storybook/addon-actions@workspace:*, @storybook/addon-actions@workspace:addons/actions": version: 0.0.0-use.local resolution: "@storybook/addon-actions@workspace:addons/actions" dependencies: - "@storybook/client-logger": 7.1.0-alpha.44 - "@storybook/components": 7.1.0-alpha.44 - "@storybook/core-events": 7.1.0-alpha.44 + "@storybook/client-logger": 7.1.0-beta.2 + "@storybook/components": 7.1.0-beta.2 + "@storybook/core-events": 7.1.0-beta.2 "@storybook/global": ^5.0.0 - "@storybook/manager-api": 7.1.0-alpha.44 - "@storybook/preview-api": 7.1.0-alpha.44 - "@storybook/theming": 7.1.0-alpha.44 - "@storybook/types": 7.1.0-alpha.44 + "@storybook/manager-api": 7.1.0-beta.2 + "@storybook/preview-api": 7.1.0-beta.2 + "@storybook/theming": 7.1.0-beta.2 + "@storybook/types": 7.1.0-beta.2 "@types/lodash": ^4.14.167 "@types/uuid": ^9.0.1 dequal: ^2.0.2 @@ -5185,18 +5213,18 @@ __metadata: languageName: unknown linkType: soft -"@storybook/addon-backgrounds@7.1.0-alpha.44, @storybook/addon-backgrounds@workspace:*, @storybook/addon-backgrounds@workspace:addons/backgrounds": +"@storybook/addon-backgrounds@7.1.0-beta.2, @storybook/addon-backgrounds@workspace:*, @storybook/addon-backgrounds@workspace:addons/backgrounds": version: 0.0.0-use.local resolution: "@storybook/addon-backgrounds@workspace:addons/backgrounds" dependencies: - "@storybook/client-logger": 7.1.0-alpha.44 - "@storybook/components": 7.1.0-alpha.44 - "@storybook/core-events": 7.1.0-alpha.44 + "@storybook/client-logger": 7.1.0-beta.2 + "@storybook/components": 7.1.0-beta.2 + "@storybook/core-events": 7.1.0-beta.2 "@storybook/global": ^5.0.0 - "@storybook/manager-api": 7.1.0-alpha.44 - "@storybook/preview-api": 7.1.0-alpha.44 - "@storybook/theming": 7.1.0-alpha.44 - "@storybook/types": 7.1.0-alpha.44 + "@storybook/manager-api": 7.1.0-beta.2 + "@storybook/preview-api": 7.1.0-beta.2 + "@storybook/theming": 7.1.0-beta.2 + "@storybook/types": 7.1.0-beta.2 memoizerific: ^1.11.3 ts-dedent: ^2.0.0 typescript: ~4.9.3 @@ -5211,19 +5239,19 @@ __metadata: languageName: unknown linkType: soft -"@storybook/addon-controls@7.1.0-alpha.44, @storybook/addon-controls@workspace:*, @storybook/addon-controls@workspace:addons/controls": +"@storybook/addon-controls@7.1.0-beta.2, @storybook/addon-controls@workspace:*, @storybook/addon-controls@workspace:addons/controls": version: 0.0.0-use.local resolution: "@storybook/addon-controls@workspace:addons/controls" dependencies: - "@storybook/blocks": 7.1.0-alpha.44 - "@storybook/client-logger": 7.1.0-alpha.44 - "@storybook/components": 7.1.0-alpha.44 - "@storybook/core-common": 7.1.0-alpha.44 - "@storybook/manager-api": 7.1.0-alpha.44 - "@storybook/node-logger": 7.1.0-alpha.44 - "@storybook/preview-api": 7.1.0-alpha.44 - "@storybook/theming": 7.1.0-alpha.44 - "@storybook/types": 7.1.0-alpha.44 + "@storybook/blocks": 7.1.0-beta.2 + "@storybook/client-logger": 7.1.0-beta.2 + "@storybook/components": 7.1.0-beta.2 + "@storybook/core-common": 7.1.0-beta.2 + "@storybook/manager-api": 7.1.0-beta.2 + "@storybook/node-logger": 7.1.0-beta.2 + "@storybook/preview-api": 7.1.0-beta.2 + "@storybook/theming": 7.1.0-beta.2 + "@storybook/types": 7.1.0-beta.2 lodash: ^4.17.21 ts-dedent: ^2.0.0 peerDependencies: @@ -5237,25 +5265,48 @@ __metadata: languageName: unknown linkType: soft -"@storybook/addon-docs@7.1.0-alpha.44, @storybook/addon-docs@workspace:*, @storybook/addon-docs@workspace:addons/docs": +"@storybook/addon-designs@npm:^7.0.0": + version: 7.0.0 + resolution: "@storybook/addon-designs@npm:7.0.0" + dependencies: + "@figspec/react": ^1.0.0 + peerDependencies: + "@storybook/addon-docs": ^7.0.0 + "@storybook/addons": ^7.0.0 + "@storybook/components": ^7.0.0 + "@storybook/manager-api": ^7.0.0 + "@storybook/preview-api": ^7.0.0 + "@storybook/theming": ^7.0.0 + 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 + checksum: 7e532334ddd94051e4ada81fffc75ad17f955e5c1a2b1c03a7c6895000b1bade18906069497e4e8cdad960da650273fd95ca9ed6f5cfaad365c4d60bd640438a + languageName: node + linkType: hard + +"@storybook/addon-docs@7.1.0-beta.2, @storybook/addon-docs@workspace:*, @storybook/addon-docs@workspace:addons/docs": version: 0.0.0-use.local resolution: "@storybook/addon-docs@workspace:addons/docs" dependencies: "@jest/transform": ^29.3.1 "@mdx-js/react": ^2.1.5 - "@storybook/blocks": 7.1.0-alpha.44 - "@storybook/client-logger": 7.1.0-alpha.44 - "@storybook/components": 7.1.0-alpha.44 - "@storybook/csf-plugin": 7.1.0-alpha.44 - "@storybook/csf-tools": 7.1.0-alpha.44 + "@storybook/blocks": 7.1.0-beta.2 + "@storybook/client-logger": 7.1.0-beta.2 + "@storybook/components": 7.1.0-beta.2 + "@storybook/csf-plugin": 7.1.0-beta.2 + "@storybook/csf-tools": 7.1.0-beta.2 "@storybook/global": ^5.0.0 "@storybook/mdx2-csf": ^1.0.0 - "@storybook/node-logger": 7.1.0-alpha.44 - "@storybook/postinstall": 7.1.0-alpha.44 - "@storybook/preview-api": 7.1.0-alpha.44 - "@storybook/react-dom-shim": 7.1.0-alpha.44 - "@storybook/theming": 7.1.0-alpha.44 - "@storybook/types": 7.1.0-alpha.44 + "@storybook/node-logger": 7.1.0-beta.2 + "@storybook/postinstall": 7.1.0-beta.2 + "@storybook/preview-api": 7.1.0-beta.2 + "@storybook/react-dom-shim": 7.1.0-beta.2 + "@storybook/theming": 7.1.0-beta.2 + "@storybook/types": 7.1.0-beta.2 fs-extra: ^11.1.0 react: ^16.14.0 react-dom: ^16.8.0 @@ -5273,20 +5324,20 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/addon-essentials@workspace:addons/essentials" dependencies: - "@storybook/addon-actions": 7.1.0-alpha.44 - "@storybook/addon-backgrounds": 7.1.0-alpha.44 - "@storybook/addon-controls": 7.1.0-alpha.44 - "@storybook/addon-docs": 7.1.0-alpha.44 - "@storybook/addon-highlight": 7.1.0-alpha.44 - "@storybook/addon-measure": 7.1.0-alpha.44 - "@storybook/addon-outline": 7.1.0-alpha.44 - "@storybook/addon-toolbars": 7.1.0-alpha.44 - "@storybook/addon-viewport": 7.1.0-alpha.44 - "@storybook/core-common": 7.1.0-alpha.44 - "@storybook/manager-api": 7.1.0-alpha.44 - "@storybook/node-logger": 7.1.0-alpha.44 - "@storybook/preview-api": 7.1.0-alpha.44 - "@storybook/vue": 7.1.0-alpha.44 + "@storybook/addon-actions": 7.1.0-beta.2 + "@storybook/addon-backgrounds": 7.1.0-beta.2 + "@storybook/addon-controls": 7.1.0-beta.2 + "@storybook/addon-docs": 7.1.0-beta.2 + "@storybook/addon-highlight": 7.1.0-beta.2 + "@storybook/addon-measure": 7.1.0-beta.2 + "@storybook/addon-outline": 7.1.0-beta.2 + "@storybook/addon-toolbars": 7.1.0-beta.2 + "@storybook/addon-viewport": 7.1.0-beta.2 + "@storybook/core-common": 7.1.0-beta.2 + "@storybook/manager-api": 7.1.0-beta.2 + "@storybook/node-logger": 7.1.0-beta.2 + "@storybook/preview-api": 7.1.0-beta.2 + "@storybook/vue": 7.1.0-beta.2 ts-dedent: ^2.0.0 typescript: ^4.9.3 peerDependencies: @@ -5295,13 +5346,13 @@ __metadata: languageName: unknown linkType: soft -"@storybook/addon-highlight@7.1.0-alpha.44, @storybook/addon-highlight@workspace:*, @storybook/addon-highlight@workspace:addons/highlight": +"@storybook/addon-highlight@7.1.0-beta.2, @storybook/addon-highlight@workspace:*, @storybook/addon-highlight@workspace:addons/highlight": version: 0.0.0-use.local resolution: "@storybook/addon-highlight@workspace:addons/highlight" dependencies: - "@storybook/core-events": 7.1.0-alpha.44 + "@storybook/core-events": 7.1.0-beta.2 "@storybook/global": ^5.0.0 - "@storybook/preview-api": 7.1.0-alpha.44 + "@storybook/preview-api": 7.1.0-beta.2 "@types/webpack-env": ^1.16.0 typescript: ~4.9.3 languageName: unknown @@ -5312,18 +5363,18 @@ __metadata: resolution: "@storybook/addon-interactions@workspace:addons/interactions" dependencies: "@devtools-ds/object-inspector": ^1.1.2 - "@storybook/client-logger": 7.1.0-alpha.44 - "@storybook/components": 7.1.0-alpha.44 - "@storybook/core-common": 7.1.0-alpha.44 - "@storybook/core-events": 7.1.0-alpha.44 + "@storybook/client-logger": 7.1.0-beta.2 + "@storybook/components": 7.1.0-beta.2 + "@storybook/core-common": 7.1.0-beta.2 + "@storybook/core-events": 7.1.0-beta.2 "@storybook/global": ^5.0.0 - "@storybook/instrumenter": 7.1.0-alpha.44 + "@storybook/instrumenter": 7.1.0-beta.2 "@storybook/jest": next - "@storybook/manager-api": 7.1.0-alpha.44 - "@storybook/preview-api": 7.1.0-alpha.44 + "@storybook/manager-api": 7.1.0-beta.2 + "@storybook/preview-api": 7.1.0-beta.2 "@storybook/testing-library": next - "@storybook/theming": 7.1.0-alpha.44 - "@storybook/types": 7.1.0-alpha.44 + "@storybook/theming": 7.1.0-beta.2 + "@storybook/types": 7.1.0-beta.2 "@types/node": ^16.0.0 formik: ^2.2.9 jest-mock: ^29.5.0 @@ -5345,13 +5396,13 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/addon-jest@workspace:addons/jest" dependencies: - "@storybook/client-logger": 7.1.0-alpha.44 - "@storybook/components": 7.1.0-alpha.44 - "@storybook/core-events": 7.1.0-alpha.44 + "@storybook/client-logger": 7.1.0-beta.2 + "@storybook/components": 7.1.0-beta.2 + "@storybook/core-events": 7.1.0-beta.2 "@storybook/global": ^5.0.0 - "@storybook/manager-api": 7.1.0-alpha.44 - "@storybook/preview-api": 7.1.0-alpha.44 - "@storybook/theming": 7.1.0-alpha.44 + "@storybook/manager-api": 7.1.0-beta.2 + "@storybook/preview-api": 7.1.0-beta.2 + "@storybook/theming": 7.1.0-beta.2 react-resize-detector: ^7.1.2 tiny-invariant: ^1.3.1 typescript: ~4.9.3 @@ -5371,14 +5422,14 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/addon-links@workspace:addons/links" dependencies: - "@storybook/client-logger": 7.1.0-alpha.44 - "@storybook/core-events": 7.1.0-alpha.44 + "@storybook/client-logger": 7.1.0-beta.2 + "@storybook/core-events": 7.1.0-beta.2 "@storybook/csf": ^0.1.0 "@storybook/global": ^5.0.0 - "@storybook/manager-api": 7.1.0-alpha.44 - "@storybook/preview-api": 7.1.0-alpha.44 - "@storybook/router": 7.1.0-alpha.44 - "@storybook/types": 7.1.0-alpha.44 + "@storybook/manager-api": 7.1.0-beta.2 + "@storybook/preview-api": 7.1.0-beta.2 + "@storybook/router": 7.1.0-beta.2 + "@storybook/types": 7.1.0-beta.2 fs-extra: ^11.1.0 prop-types: ^15.7.2 ts-dedent: ^2.0.0 @@ -5398,24 +5449,24 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/addon-mdx-gfm@workspace:addons/gfm" dependencies: - "@storybook/node-logger": 7.1.0-alpha.44 + "@storybook/node-logger": 7.1.0-beta.2 remark-gfm: ^3.0.1 ts-dedent: ^2.0.0 typescript: ~4.9.3 languageName: unknown linkType: soft -"@storybook/addon-measure@7.1.0-alpha.44, @storybook/addon-measure@workspace:*, @storybook/addon-measure@workspace:addons/measure": +"@storybook/addon-measure@7.1.0-beta.2, @storybook/addon-measure@workspace:*, @storybook/addon-measure@workspace:addons/measure": version: 0.0.0-use.local resolution: "@storybook/addon-measure@workspace:addons/measure" dependencies: - "@storybook/client-logger": 7.1.0-alpha.44 - "@storybook/components": 7.1.0-alpha.44 - "@storybook/core-events": 7.1.0-alpha.44 + "@storybook/client-logger": 7.1.0-beta.2 + "@storybook/components": 7.1.0-beta.2 + "@storybook/core-events": 7.1.0-beta.2 "@storybook/global": ^5.0.0 - "@storybook/manager-api": 7.1.0-alpha.44 - "@storybook/preview-api": 7.1.0-alpha.44 - "@storybook/types": 7.1.0-alpha.44 + "@storybook/manager-api": 7.1.0-beta.2 + "@storybook/preview-api": 7.1.0-beta.2 + "@storybook/types": 7.1.0-beta.2 tiny-invariant: ^1.3.1 typescript: ~4.9.3 peerDependencies: @@ -5429,17 +5480,17 @@ __metadata: languageName: unknown linkType: soft -"@storybook/addon-outline@7.1.0-alpha.44, @storybook/addon-outline@workspace:*, @storybook/addon-outline@workspace:addons/outline": +"@storybook/addon-outline@7.1.0-beta.2, @storybook/addon-outline@workspace:*, @storybook/addon-outline@workspace:addons/outline": version: 0.0.0-use.local resolution: "@storybook/addon-outline@workspace:addons/outline" dependencies: - "@storybook/client-logger": 7.1.0-alpha.44 - "@storybook/components": 7.1.0-alpha.44 - "@storybook/core-events": 7.1.0-alpha.44 + "@storybook/client-logger": 7.1.0-beta.2 + "@storybook/components": 7.1.0-beta.2 + "@storybook/core-events": 7.1.0-beta.2 "@storybook/global": ^5.0.0 - "@storybook/manager-api": 7.1.0-alpha.44 - "@storybook/preview-api": 7.1.0-alpha.44 - "@storybook/types": 7.1.0-alpha.44 + "@storybook/manager-api": 7.1.0-beta.2 + "@storybook/preview-api": 7.1.0-beta.2 + "@storybook/types": 7.1.0-beta.2 ts-dedent: ^2.0.0 typescript: ~4.9.3 peerDependencies: @@ -5459,8 +5510,8 @@ __metadata: dependencies: "@axe-core/puppeteer": ^4.2.0 "@storybook/csf": ^0.1.0 - "@storybook/node-logger": 7.1.0-alpha.44 - "@storybook/types": 7.1.0-alpha.44 + "@storybook/node-logger": 7.1.0-beta.2 + "@storybook/types": 7.1.0-beta.2 "@types/jest-image-snapshot": ^6.0.0 "@types/puppeteer": ^5.4.0 enzyme: ^3.11.0 @@ -5468,7 +5519,7 @@ __metadata: jest-image-snapshot: ^6.0.0 puppeteer: ^2.0.0 || ^3.0.0 peerDependencies: - "@storybook/addon-storyshots": 7.1.0-alpha.44 + "@storybook/addon-storyshots": 7.1.0-beta.2 puppeteer: ">=2.0.0" peerDependenciesMeta: puppeteer: @@ -5484,18 +5535,18 @@ __metadata: "@angular/platform-browser-dynamic": ^16.0.0-rc.4 "@emotion/jest": ^11.8.0 "@jest/transform": ^29.3.1 - "@storybook/addon-docs": 7.1.0-alpha.44 - "@storybook/angular": 7.1.0-alpha.44 + "@storybook/addon-docs": 7.1.0-beta.2 + "@storybook/angular": 7.1.0-beta.2 "@storybook/babel-plugin-require-context-hook": 1.0.1 - "@storybook/client-api": 7.1.0-alpha.44 - "@storybook/core-common": 7.1.0-alpha.44 - "@storybook/core-webpack": 7.1.0-alpha.44 + "@storybook/client-api": 7.1.0-beta.2 + "@storybook/core-common": 7.1.0-beta.2 + "@storybook/core-webpack": 7.1.0-beta.2 "@storybook/global": ^5.0.0 - "@storybook/preview-api": 7.1.0-alpha.44 - "@storybook/react": 7.1.0-alpha.44 - "@storybook/types": 7.1.0-alpha.44 - "@storybook/vue": 7.1.0-alpha.44 - "@storybook/vue3": 7.1.0-alpha.44 + "@storybook/preview-api": 7.1.0-beta.2 + "@storybook/react": 7.1.0-beta.2 + "@storybook/types": 7.1.0-beta.2 + "@storybook/vue": 7.1.0-beta.2 + "@storybook/vue3": 7.1.0-beta.2 "@types/jest-specific-snapshot": ^0.5.6 babel-loader: ^9.1.2 enzyme: ^3.11.0 @@ -5567,13 +5618,13 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/addon-storysource@workspace:addons/storysource" dependencies: - "@storybook/client-logger": 7.1.0-alpha.44 - "@storybook/components": 7.1.0-alpha.44 - "@storybook/manager-api": 7.1.0-alpha.44 - "@storybook/preview-api": 7.1.0-alpha.44 - "@storybook/router": 7.1.0-alpha.44 - "@storybook/source-loader": 7.1.0-alpha.44 - "@storybook/theming": 7.1.0-alpha.44 + "@storybook/client-logger": 7.1.0-beta.2 + "@storybook/components": 7.1.0-beta.2 + "@storybook/manager-api": 7.1.0-beta.2 + "@storybook/preview-api": 7.1.0-beta.2 + "@storybook/router": 7.1.0-beta.2 + "@storybook/source-loader": 7.1.0-beta.2 + "@storybook/theming": 7.1.0-beta.2 "@types/react": ^16.14.34 "@types/react-syntax-highlighter": 11.0.5 estraverse: ^5.2.0 @@ -5592,15 +5643,15 @@ __metadata: languageName: unknown linkType: soft -"@storybook/addon-toolbars@7.1.0-alpha.44, @storybook/addon-toolbars@workspace:*, @storybook/addon-toolbars@workspace:addons/toolbars": +"@storybook/addon-toolbars@7.1.0-beta.2, @storybook/addon-toolbars@workspace:*, @storybook/addon-toolbars@workspace:addons/toolbars": version: 0.0.0-use.local resolution: "@storybook/addon-toolbars@workspace:addons/toolbars" dependencies: - "@storybook/client-logger": 7.1.0-alpha.44 - "@storybook/components": 7.1.0-alpha.44 - "@storybook/manager-api": 7.1.0-alpha.44 - "@storybook/preview-api": 7.1.0-alpha.44 - "@storybook/theming": 7.1.0-alpha.44 + "@storybook/client-logger": 7.1.0-beta.2 + "@storybook/components": 7.1.0-beta.2 + "@storybook/manager-api": 7.1.0-beta.2 + "@storybook/preview-api": 7.1.0-beta.2 + "@storybook/theming": 7.1.0-beta.2 typescript: ~4.9.3 peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 @@ -5613,17 +5664,17 @@ __metadata: languageName: unknown linkType: soft -"@storybook/addon-viewport@7.1.0-alpha.44, @storybook/addon-viewport@workspace:*, @storybook/addon-viewport@workspace:addons/viewport": +"@storybook/addon-viewport@7.1.0-beta.2, @storybook/addon-viewport@workspace:*, @storybook/addon-viewport@workspace:addons/viewport": version: 0.0.0-use.local resolution: "@storybook/addon-viewport@workspace:addons/viewport" dependencies: - "@storybook/client-logger": 7.1.0-alpha.44 - "@storybook/components": 7.1.0-alpha.44 - "@storybook/core-events": 7.1.0-alpha.44 + "@storybook/client-logger": 7.1.0-beta.2 + "@storybook/components": 7.1.0-beta.2 + "@storybook/core-events": 7.1.0-beta.2 "@storybook/global": ^5.0.0 - "@storybook/manager-api": 7.1.0-alpha.44 - "@storybook/preview-api": 7.1.0-alpha.44 - "@storybook/theming": 7.1.0-alpha.44 + "@storybook/manager-api": 7.1.0-beta.2 + "@storybook/preview-api": 7.1.0-beta.2 + "@storybook/theming": 7.1.0-beta.2 memoizerific: ^1.11.3 prop-types: ^15.7.2 typescript: ~4.9.3 @@ -5638,20 +5689,20 @@ __metadata: languageName: unknown linkType: soft -"@storybook/addons@7.1.0-alpha.44, @storybook/addons@workspace:*, @storybook/addons@workspace:deprecated/addons": +"@storybook/addons@7.1.0-beta.2, @storybook/addons@workspace:*, @storybook/addons@workspace:deprecated/addons": version: 0.0.0-use.local resolution: "@storybook/addons@workspace:deprecated/addons" dependencies: - "@storybook/manager-api": 7.1.0-alpha.44 - "@storybook/preview-api": 7.1.0-alpha.44 - "@storybook/types": 7.1.0-alpha.44 + "@storybook/manager-api": 7.1.0-beta.2 + "@storybook/preview-api": 7.1.0-beta.2 + "@storybook/types": 7.1.0-beta.2 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@7.1.0-alpha.44, @storybook/angular@workspace:*, @storybook/angular@workspace:frameworks/angular": +"@storybook/angular@7.1.0-beta.2, @storybook/angular@workspace:*, @storybook/angular@workspace:frameworks/angular": version: 0.0.0-use.local resolution: "@storybook/angular@workspace:frameworks/angular" dependencies: @@ -5667,20 +5718,20 @@ __metadata: "@angular/forms": ^16.0.0-rc.4 "@angular/platform-browser": ^16.0.0-rc.4 "@angular/platform-browser-dynamic": ^16.0.0-rc.4 - "@storybook/builder-webpack5": 7.1.0-alpha.44 - "@storybook/cli": 7.1.0-alpha.44 - "@storybook/client-logger": 7.1.0-alpha.44 - "@storybook/core-common": 7.1.0-alpha.44 - "@storybook/core-events": 7.1.0-alpha.44 - "@storybook/core-server": 7.1.0-alpha.44 - "@storybook/core-webpack": 7.1.0-alpha.44 - "@storybook/docs-tools": 7.1.0-alpha.44 + "@storybook/builder-webpack5": 7.1.0-beta.2 + "@storybook/cli": 7.1.0-beta.2 + "@storybook/client-logger": 7.1.0-beta.2 + "@storybook/core-common": 7.1.0-beta.2 + "@storybook/core-events": 7.1.0-beta.2 + "@storybook/core-server": 7.1.0-beta.2 + "@storybook/core-webpack": 7.1.0-beta.2 + "@storybook/docs-tools": 7.1.0-beta.2 "@storybook/global": ^5.0.0 - "@storybook/manager-api": 7.1.0-alpha.44 - "@storybook/node-logger": 7.1.0-alpha.44 - "@storybook/preview-api": 7.1.0-alpha.44 - "@storybook/telemetry": 7.1.0-alpha.44 - "@storybook/types": 7.1.0-alpha.44 + "@storybook/manager-api": 7.1.0-beta.2 + "@storybook/node-logger": 7.1.0-beta.2 + "@storybook/preview-api": 7.1.0-beta.2 + "@storybook/telemetry": 7.1.0-beta.2 + "@storybook/types": 7.1.0-beta.2 "@types/cross-spawn": ^6.0.2 "@types/node": ^16.0.0 "@types/react": ^16.14.34 @@ -5727,12 +5778,12 @@ __metadata: languageName: unknown linkType: soft -"@storybook/api@7.1.0-alpha.44, @storybook/api@workspace:*, @storybook/api@workspace:deprecated/manager-api-shim": +"@storybook/api@7.1.0-beta.2, @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": 7.1.0-alpha.44 - "@storybook/manager-api": 7.1.0-alpha.44 + "@storybook/client-logger": 7.1.0-beta.2 + "@storybook/manager-api": 7.1.0-beta.2 peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 @@ -5776,22 +5827,22 @@ __metadata: languageName: node linkType: hard -"@storybook/blocks@7.1.0-alpha.44, @storybook/blocks@workspace:*, @storybook/blocks@workspace:ui/blocks": +"@storybook/blocks@7.1.0-beta.2, @storybook/blocks@workspace:*, @storybook/blocks@workspace:ui/blocks": version: 0.0.0-use.local resolution: "@storybook/blocks@workspace:ui/blocks" dependencies: - "@storybook/addon-actions": 7.1.0-alpha.44 - "@storybook/channels": 7.1.0-alpha.44 - "@storybook/client-logger": 7.1.0-alpha.44 - "@storybook/components": 7.1.0-alpha.44 - "@storybook/core-events": 7.1.0-alpha.44 + "@storybook/addon-actions": 7.1.0-beta.2 + "@storybook/channels": 7.1.0-beta.2 + "@storybook/client-logger": 7.1.0-beta.2 + "@storybook/components": 7.1.0-beta.2 + "@storybook/core-events": 7.1.0-beta.2 "@storybook/csf": ^0.1.0 - "@storybook/docs-tools": 7.1.0-alpha.44 + "@storybook/docs-tools": 7.1.0-beta.2 "@storybook/global": ^5.0.0 - "@storybook/manager-api": 7.1.0-alpha.44 - "@storybook/preview-api": 7.1.0-alpha.44 - "@storybook/theming": 7.1.0-alpha.44 - "@storybook/types": 7.1.0-alpha.44 + "@storybook/manager-api": 7.1.0-beta.2 + "@storybook/preview-api": 7.1.0-beta.2 + "@storybook/theming": 7.1.0-beta.2 + "@storybook/types": 7.1.0-beta.2 "@types/color-convert": ^2.0.0 "@types/lodash": ^4.14.167 color-convert: ^2.0.1 @@ -5802,6 +5853,7 @@ __metadata: polished: ^4.2.2 react-colorful: ^5.1.2 telejson: ^7.0.3 + tocbot: ^4.20.1 ts-dedent: ^2.0.0 util-deprecate: ^1.0.2 peerDependencies: @@ -5810,14 +5862,14 @@ __metadata: languageName: unknown linkType: soft -"@storybook/builder-manager@7.1.0-alpha.44, @storybook/builder-manager@workspace:*, @storybook/builder-manager@workspace:builders/builder-manager": +"@storybook/builder-manager@7.1.0-beta.2, @storybook/builder-manager@workspace:*, @storybook/builder-manager@workspace:builders/builder-manager": version: 0.0.0-use.local resolution: "@storybook/builder-manager@workspace:builders/builder-manager" dependencies: "@fal-works/esbuild-plugin-global-externals": ^2.1.2 - "@storybook/core-common": 7.1.0-alpha.44 - "@storybook/manager": 7.1.0-alpha.44 - "@storybook/node-logger": 7.1.0-alpha.44 + "@storybook/core-common": 7.1.0-beta.2 + "@storybook/manager": 7.1.0-beta.2 + "@storybook/node-logger": 7.1.0-beta.2 "@types/ejs": ^3.1.1 "@types/find-cache-dir": ^3.2.1 "@yarnpkg/esbuild-plugin-pnp": ^3.0.0-rc.10 @@ -5835,19 +5887,19 @@ __metadata: languageName: unknown linkType: soft -"@storybook/builder-vite@7.1.0-alpha.44, @storybook/builder-vite@workspace:*, @storybook/builder-vite@workspace:builders/builder-vite": +"@storybook/builder-vite@7.1.0-beta.2, @storybook/builder-vite@workspace:*, @storybook/builder-vite@workspace:builders/builder-vite": version: 0.0.0-use.local resolution: "@storybook/builder-vite@workspace:builders/builder-vite" dependencies: - "@storybook/channels": 7.1.0-alpha.44 - "@storybook/client-logger": 7.1.0-alpha.44 - "@storybook/core-common": 7.1.0-alpha.44 - "@storybook/csf-plugin": 7.1.0-alpha.44 + "@storybook/channels": 7.1.0-beta.2 + "@storybook/client-logger": 7.1.0-beta.2 + "@storybook/core-common": 7.1.0-beta.2 + "@storybook/csf-plugin": 7.1.0-beta.2 "@storybook/mdx2-csf": ^1.0.0 - "@storybook/node-logger": 7.1.0-alpha.44 - "@storybook/preview": 7.1.0-alpha.44 - "@storybook/preview-api": 7.1.0-alpha.44 - "@storybook/types": 7.1.0-alpha.44 + "@storybook/node-logger": 7.1.0-beta.2 + "@storybook/preview": 7.1.0-beta.2 + "@storybook/preview-api": 7.1.0-beta.2 + "@storybook/types": 7.1.0-beta.2 "@types/express": ^4.17.13 "@types/find-cache-dir": ^3.2.1 "@types/node": ^16.0.0 @@ -5879,29 +5931,29 @@ __metadata: languageName: unknown linkType: soft -"@storybook/builder-webpack5@7.1.0-alpha.44, @storybook/builder-webpack5@workspace:*, @storybook/builder-webpack5@workspace:builders/builder-webpack5": +"@storybook/builder-webpack5@7.1.0-beta.2, @storybook/builder-webpack5@workspace:*, @storybook/builder-webpack5@workspace:builders/builder-webpack5": version: 0.0.0-use.local resolution: "@storybook/builder-webpack5@workspace:builders/builder-webpack5" dependencies: "@babel/core": ^7.22.0 - "@storybook/addons": 7.1.0-alpha.44 - "@storybook/api": 7.1.0-alpha.44 - "@storybook/channel-postmessage": 7.1.0-alpha.44 - "@storybook/channels": 7.1.0-alpha.44 - "@storybook/client-api": 7.1.0-alpha.44 - "@storybook/client-logger": 7.1.0-alpha.44 - "@storybook/components": 7.1.0-alpha.44 - "@storybook/core-common": 7.1.0-alpha.44 - "@storybook/core-events": 7.1.0-alpha.44 - "@storybook/core-webpack": 7.1.0-alpha.44 + "@storybook/addons": 7.1.0-beta.2 + "@storybook/api": 7.1.0-beta.2 + "@storybook/channel-postmessage": 7.1.0-beta.2 + "@storybook/channels": 7.1.0-beta.2 + "@storybook/client-api": 7.1.0-beta.2 + "@storybook/client-logger": 7.1.0-beta.2 + "@storybook/components": 7.1.0-beta.2 + "@storybook/core-common": 7.1.0-beta.2 + "@storybook/core-events": 7.1.0-beta.2 + "@storybook/core-webpack": 7.1.0-beta.2 "@storybook/global": ^5.0.0 - "@storybook/manager-api": 7.1.0-alpha.44 - "@storybook/node-logger": 7.1.0-alpha.44 - "@storybook/preview": 7.1.0-alpha.44 - "@storybook/preview-api": 7.1.0-alpha.44 - "@storybook/router": 7.1.0-alpha.44 - "@storybook/store": 7.1.0-alpha.44 - "@storybook/theming": 7.1.0-alpha.44 + "@storybook/manager-api": 7.1.0-beta.2 + "@storybook/node-logger": 7.1.0-beta.2 + "@storybook/preview": 7.1.0-beta.2 + "@storybook/preview-api": 7.1.0-beta.2 + "@storybook/router": 7.1.0-beta.2 + "@storybook/store": 7.1.0-beta.2 + "@storybook/theming": 7.1.0-beta.2 "@swc/core": ^1.3.49 "@types/node": ^16.0.0 "@types/pretty-hrtime": ^1.0.0 @@ -5945,12 +5997,12 @@ __metadata: languageName: unknown linkType: soft -"@storybook/channel-postmessage@7.1.0-alpha.44, @storybook/channel-postmessage@workspace:*, @storybook/channel-postmessage@workspace:deprecated/channel-postmessage": +"@storybook/channel-postmessage@7.1.0-beta.2, @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": 7.1.0-alpha.44 - "@storybook/client-logger": 7.1.0-alpha.44 + "@storybook/channels": 7.1.0-beta.2 + "@storybook/client-logger": 7.1.0-beta.2 typescript: ~4.9.3 languageName: unknown linkType: soft @@ -5959,19 +6011,19 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/channel-websocket@workspace:deprecated/channel-websocket" dependencies: - "@storybook/channels": 7.1.0-alpha.44 - "@storybook/client-logger": 7.1.0-alpha.44 + "@storybook/channels": 7.1.0-beta.2 + "@storybook/client-logger": 7.1.0-beta.2 typescript: ~4.9.3 languageName: unknown linkType: soft -"@storybook/channels@7.1.0-alpha.44, @storybook/channels@workspace:*, @storybook/channels@workspace:lib/channels": +"@storybook/channels@7.1.0-beta.2, @storybook/channels@workspace:*, @storybook/channels@workspace:lib/channels": version: 0.0.0-use.local resolution: "@storybook/channels@workspace:lib/channels" dependencies: - "@storybook/channels": 7.1.0-alpha.44 - "@storybook/client-logger": 7.1.0-alpha.44 - "@storybook/core-events": 7.1.0-alpha.44 + "@storybook/channels": 7.1.0-beta.2 + "@storybook/client-logger": 7.1.0-beta.2 + "@storybook/core-events": 7.1.0-beta.2 "@storybook/global": ^5.0.0 qs: ^6.10.0 telejson: ^7.0.3 @@ -5980,28 +6032,28 @@ __metadata: languageName: unknown linkType: soft -"@storybook/cli@7.1.0-alpha.44, @storybook/cli@workspace:*, @storybook/cli@workspace:lib/cli": +"@storybook/cli@7.1.0-beta.2, @storybook/cli@workspace:*, @storybook/cli@workspace:lib/cli": version: 0.0.0-use.local resolution: "@storybook/cli@workspace:lib/cli" dependencies: "@babel/core": ^7.22.0 "@babel/preset-env": ^7.22.0 "@ndelangen/get-tarball": ^3.0.7 - "@storybook/client-api": 7.1.0-alpha.44 - "@storybook/codemod": 7.1.0-alpha.44 - "@storybook/core-common": 7.1.0-alpha.44 - "@storybook/core-server": 7.1.0-alpha.44 - "@storybook/csf-tools": 7.1.0-alpha.44 - "@storybook/node-logger": 7.1.0-alpha.44 - "@storybook/telemetry": 7.1.0-alpha.44 - "@storybook/types": 7.1.0-alpha.44 + "@storybook/client-api": 7.1.0-beta.2 + "@storybook/codemod": 7.1.0-beta.2 + "@storybook/core-common": 7.1.0-beta.2 + "@storybook/core-server": 7.1.0-beta.2 + "@storybook/csf-tools": 7.1.0-beta.2 + "@storybook/node-logger": 7.1.0-beta.2 + "@storybook/telemetry": 7.1.0-beta.2 + "@storybook/types": 7.1.0-beta.2 "@types/cross-spawn": ^6.0.2 "@types/prompts": ^2.0.9 "@types/puppeteer-core": ^2.1.0 "@types/semver": ^7.3.4 "@types/util-deprecate": ^1.0.0 - "@yarnpkg/fslib": ^2.10.3 - "@yarnpkg/libzip": ^2.3.0 + "@yarnpkg/fslib": 2.10.3 + "@yarnpkg/libzip": 2.3.0 boxen: ^5.1.2 chalk: ^4.1.0 commander: ^6.2.1 @@ -6037,16 +6089,16 @@ __metadata: languageName: unknown linkType: soft -"@storybook/client-api@7.1.0-alpha.44, @storybook/client-api@workspace:*, @storybook/client-api@workspace:deprecated/client-api": +"@storybook/client-api@7.1.0-beta.2, @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": 7.1.0-alpha.44 - "@storybook/preview-api": 7.1.0-alpha.44 + "@storybook/client-logger": 7.1.0-beta.2 + "@storybook/preview-api": 7.1.0-beta.2 languageName: unknown linkType: soft -"@storybook/client-logger@7.1.0-alpha.44, @storybook/client-logger@workspace:*, @storybook/client-logger@workspace:lib/client-logger": +"@storybook/client-logger@7.1.0-beta.2, @storybook/client-logger@workspace:*, @storybook/client-logger@workspace:lib/client-logger": version: 0.0.0-use.local resolution: "@storybook/client-logger@workspace:lib/client-logger" dependencies: @@ -6055,7 +6107,7 @@ __metadata: languageName: unknown linkType: soft -"@storybook/codemod@7.1.0-alpha.44, @storybook/codemod@workspace:*, @storybook/codemod@workspace:lib/codemod": +"@storybook/codemod@7.1.0-beta.2, @storybook/codemod@workspace:*, @storybook/codemod@workspace:lib/codemod": version: 0.0.0-use.local resolution: "@storybook/codemod@workspace:lib/codemod" dependencies: @@ -6063,9 +6115,9 @@ __metadata: "@babel/preset-env": ^7.22.0 "@babel/types": ^7.22.0 "@storybook/csf": ^0.1.0 - "@storybook/csf-tools": 7.1.0-alpha.44 - "@storybook/node-logger": 7.1.0-alpha.44 - "@storybook/types": 7.1.0-alpha.44 + "@storybook/csf-tools": 7.1.0-beta.2 + "@storybook/node-logger": 7.1.0-beta.2 + "@storybook/types": 7.1.0-beta.2 "@types/cross-spawn": ^6.0.2 "@types/jscodeshift": ^0.11.6 ansi-regex: ^5.0.1 @@ -6091,16 +6143,16 @@ __metadata: languageName: unknown linkType: soft -"@storybook/components@7.1.0-alpha.44, @storybook/components@workspace:*, @storybook/components@workspace:ui/components": +"@storybook/components@7.1.0-beta.2, @storybook/components@workspace:*, @storybook/components@workspace:ui/components": version: 0.0.0-use.local resolution: "@storybook/components@workspace:ui/components" dependencies: "@popperjs/core": ^2.6.0 - "@storybook/client-logger": 7.1.0-alpha.44 + "@storybook/client-logger": 7.1.0-beta.2 "@storybook/csf": ^0.1.0 "@storybook/global": ^5.0.0 - "@storybook/theming": 7.1.0-alpha.44 - "@storybook/types": 7.1.0-alpha.44 + "@storybook/theming": 7.1.0-beta.2 + "@storybook/types": 7.1.0-beta.2 "@types/react-syntax-highlighter": 11.0.5 "@types/util-deprecate": ^1.0.0 css: ^3.0.0 @@ -6122,21 +6174,21 @@ __metadata: languageName: unknown linkType: soft -"@storybook/core-client@7.1.0-alpha.44, @storybook/core-client@workspace:*, @storybook/core-client@workspace:deprecated/core-client": +"@storybook/core-client@7.1.0-beta.2, @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": 7.1.0-alpha.44 - "@storybook/preview-api": 7.1.0-alpha.44 + "@storybook/client-logger": 7.1.0-beta.2 + "@storybook/preview-api": 7.1.0-beta.2 languageName: unknown linkType: soft -"@storybook/core-common@7.1.0-alpha.44, @storybook/core-common@workspace:*, @storybook/core-common@workspace:lib/core-common": +"@storybook/core-common@7.1.0-beta.2, @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" dependencies: - "@storybook/node-logger": 7.1.0-alpha.44 - "@storybook/types": 7.1.0-alpha.44 + "@storybook/node-logger": 7.1.0-beta.2 + "@storybook/types": 7.1.0-beta.2 "@types/find-cache-dir": ^3.2.1 "@types/mock-fs": ^4.13.1 "@types/node": ^16.0.0 @@ -6166,7 +6218,7 @@ __metadata: languageName: unknown linkType: soft -"@storybook/core-events@7.1.0-alpha.44, @storybook/core-events@workspace:*, @storybook/core-events@workspace:lib/core-events": +"@storybook/core-events@7.1.0-beta.2, @storybook/core-events@workspace:*, @storybook/core-events@workspace:lib/core-events": version: 0.0.0-use.local resolution: "@storybook/core-events@workspace:lib/core-events" dependencies: @@ -6174,25 +6226,25 @@ __metadata: languageName: unknown linkType: soft -"@storybook/core-server@7.1.0-alpha.44, @storybook/core-server@workspace:*, @storybook/core-server@workspace:lib/core-server": +"@storybook/core-server@7.1.0-beta.2, @storybook/core-server@workspace:*, @storybook/core-server@workspace:lib/core-server": version: 0.0.0-use.local resolution: "@storybook/core-server@workspace:lib/core-server" dependencies: "@aw-web-design/x-default-browser": 1.4.126 "@discoveryjs/json-ext": ^0.5.3 - "@storybook/builder-manager": 7.1.0-alpha.44 - "@storybook/channels": 7.1.0-alpha.44 - "@storybook/core-common": 7.1.0-alpha.44 - "@storybook/core-events": 7.1.0-alpha.44 + "@storybook/builder-manager": 7.1.0-beta.2 + "@storybook/channels": 7.1.0-beta.2 + "@storybook/core-common": 7.1.0-beta.2 + "@storybook/core-events": 7.1.0-beta.2 "@storybook/csf": ^0.1.0 - "@storybook/csf-tools": 7.1.0-alpha.44 + "@storybook/csf-tools": 7.1.0-beta.2 "@storybook/docs-mdx": ^0.1.0 "@storybook/global": ^5.0.0 - "@storybook/manager": 7.1.0-alpha.44 - "@storybook/node-logger": 7.1.0-alpha.44 - "@storybook/preview-api": 7.1.0-alpha.44 - "@storybook/telemetry": 7.1.0-alpha.44 - "@storybook/types": 7.1.0-alpha.44 + "@storybook/manager": 7.1.0-beta.2 + "@storybook/node-logger": 7.1.0-beta.2 + "@storybook/preview-api": 7.1.0-beta.2 + "@storybook/telemetry": 7.1.0-beta.2 + "@storybook/types": 7.1.0-beta.2 "@types/compression": ^1.7.0 "@types/detect-port": ^1.3.0 "@types/ip": ^1.1.0 @@ -6234,13 +6286,13 @@ __metadata: languageName: unknown linkType: soft -"@storybook/core-webpack@7.1.0-alpha.44, @storybook/core-webpack@workspace:*, @storybook/core-webpack@workspace:lib/core-webpack": +"@storybook/core-webpack@7.1.0-beta.2, @storybook/core-webpack@workspace:*, @storybook/core-webpack@workspace:lib/core-webpack": version: 0.0.0-use.local resolution: "@storybook/core-webpack@workspace:lib/core-webpack" dependencies: - "@storybook/core-common": 7.1.0-alpha.44 - "@storybook/node-logger": 7.1.0-alpha.44 - "@storybook/types": 7.1.0-alpha.44 + "@storybook/core-common": 7.1.0-beta.2 + "@storybook/node-logger": 7.1.0-beta.2 + "@storybook/types": 7.1.0-beta.2 "@types/node": ^16.0.0 ts-dedent: ^2.0.0 typescript: ~4.9.3 @@ -6248,17 +6300,17 @@ __metadata: languageName: unknown linkType: soft -"@storybook/csf-plugin@7.1.0-alpha.44, @storybook/csf-plugin@workspace:*, @storybook/csf-plugin@workspace:lib/csf-plugin": +"@storybook/csf-plugin@7.1.0-beta.2, @storybook/csf-plugin@workspace:*, @storybook/csf-plugin@workspace:lib/csf-plugin": version: 0.0.0-use.local resolution: "@storybook/csf-plugin@workspace:lib/csf-plugin" dependencies: - "@storybook/csf-tools": 7.1.0-alpha.44 + "@storybook/csf-tools": 7.1.0-beta.2 typescript: ~4.9.3 unplugin: ^1.3.1 languageName: unknown linkType: soft -"@storybook/csf-tools@7.1.0-alpha.44, @storybook/csf-tools@workspace:*, @storybook/csf-tools@workspace:lib/csf-tools": +"@storybook/csf-tools@7.1.0-beta.2, @storybook/csf-tools@workspace:*, @storybook/csf-tools@workspace:lib/csf-tools": version: 0.0.0-use.local resolution: "@storybook/csf-tools@workspace:lib/csf-tools" dependencies: @@ -6267,7 +6319,7 @@ __metadata: "@babel/traverse": ^7.22.0 "@babel/types": ^7.22.0 "@storybook/csf": ^0.1.0 - "@storybook/types": 7.1.0-alpha.44 + "@storybook/types": 7.1.0-beta.2 "@types/fs-extra": ^11.0.1 "@types/js-yaml": ^4.0.5 fs-extra: ^11.1.0 @@ -6303,14 +6355,14 @@ __metadata: languageName: node linkType: hard -"@storybook/docs-tools@7.1.0-alpha.44, @storybook/docs-tools@workspace:*, @storybook/docs-tools@workspace:lib/docs-tools": +"@storybook/docs-tools@7.1.0-beta.2, @storybook/docs-tools@workspace:*, @storybook/docs-tools@workspace:lib/docs-tools": version: 0.0.0-use.local resolution: "@storybook/docs-tools@workspace:lib/docs-tools" dependencies: "@babel/core": ^7.22.0 - "@storybook/core-common": 7.1.0-alpha.44 - "@storybook/preview-api": 7.1.0-alpha.44 - "@storybook/types": 7.1.0-alpha.44 + "@storybook/core-common": 7.1.0-beta.2 + "@storybook/preview-api": 7.1.0-beta.2 + "@storybook/types": 7.1.0-beta.2 "@types/doctrine": ^0.0.3 doctrine: ^3.0.0 jest-specific-snapshot: ^8.0.0 @@ -6324,12 +6376,12 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/ember@workspace:frameworks/ember" dependencies: - "@storybook/builder-webpack5": 7.1.0-alpha.44 - "@storybook/core-common": 7.1.0-alpha.44 - "@storybook/docs-tools": 7.1.0-alpha.44 + "@storybook/builder-webpack5": 7.1.0-beta.2 + "@storybook/core-common": 7.1.0-beta.2 + "@storybook/docs-tools": 7.1.0-beta.2 "@storybook/global": ^5.0.0 - "@storybook/preview-api": 7.1.0-alpha.44 - "@storybook/types": 7.1.0-alpha.44 + "@storybook/preview-api": 7.1.0-beta.2 + "@storybook/types": 7.1.0-beta.2 ember-source: ~3.28.1 ts-dedent: ^2.0.0 typescript: ~4.9.3 @@ -6373,14 +6425,14 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/html-vite@workspace:frameworks/html-vite" dependencies: - "@storybook/addons": 7.1.0-alpha.44 - "@storybook/builder-vite": 7.1.0-alpha.44 - "@storybook/channel-postmessage": 7.1.0-alpha.44 - "@storybook/client-api": 7.1.0-alpha.44 - "@storybook/core-server": 7.1.0-alpha.44 - "@storybook/html": 7.1.0-alpha.44 - "@storybook/node-logger": 7.1.0-alpha.44 - "@storybook/preview-web": 7.1.0-alpha.44 + "@storybook/addons": 7.1.0-beta.2 + "@storybook/builder-vite": 7.1.0-beta.2 + "@storybook/channel-postmessage": 7.1.0-beta.2 + "@storybook/client-api": 7.1.0-beta.2 + "@storybook/core-server": 7.1.0-beta.2 + "@storybook/html": 7.1.0-beta.2 + "@storybook/node-logger": 7.1.0-beta.2 + "@storybook/preview-web": 7.1.0-beta.2 "@types/node": ^16.0.0 magic-string: ^0.30.0 typescript: ~4.9.3 @@ -6391,11 +6443,11 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/html-webpack5@workspace:frameworks/html-webpack5" dependencies: - "@storybook/builder-webpack5": 7.1.0-alpha.44 - "@storybook/core-common": 7.1.0-alpha.44 + "@storybook/builder-webpack5": 7.1.0-beta.2 + "@storybook/core-common": 7.1.0-beta.2 "@storybook/global": ^5.0.0 - "@storybook/html": 7.1.0-alpha.44 - "@storybook/preset-html-webpack": 7.1.0-alpha.44 + "@storybook/html": 7.1.0-beta.2 + "@storybook/preset-html-webpack": 7.1.0-beta.2 "@types/node": ^16.0.0 typescript: ~4.9.3 peerDependencies: @@ -6405,15 +6457,15 @@ __metadata: languageName: unknown linkType: soft -"@storybook/html@7.1.0-alpha.44, @storybook/html@workspace:*, @storybook/html@workspace:renderers/html": +"@storybook/html@7.1.0-beta.2, @storybook/html@workspace:*, @storybook/html@workspace:renderers/html": version: 0.0.0-use.local resolution: "@storybook/html@workspace:renderers/html" dependencies: - "@storybook/core-client": 7.1.0-alpha.44 - "@storybook/docs-tools": 7.1.0-alpha.44 + "@storybook/core-client": 7.1.0-beta.2 + "@storybook/docs-tools": 7.1.0-beta.2 "@storybook/global": ^5.0.0 - "@storybook/preview-api": 7.1.0-alpha.44 - "@storybook/types": 7.1.0-alpha.44 + "@storybook/preview-api": 7.1.0-beta.2 + "@storybook/types": 7.1.0-beta.2 ts-dedent: ^2.0.0 typescript: ~4.9.3 peerDependencies: @@ -6421,15 +6473,15 @@ __metadata: languageName: unknown linkType: soft -"@storybook/instrumenter@7.1.0-alpha.44, @storybook/instrumenter@workspace:*, @storybook/instrumenter@workspace:lib/instrumenter": +"@storybook/instrumenter@7.1.0-beta.2, @storybook/instrumenter@workspace:*, @storybook/instrumenter@workspace:lib/instrumenter": version: 0.0.0-use.local resolution: "@storybook/instrumenter@workspace:lib/instrumenter" dependencies: - "@storybook/channels": 7.1.0-alpha.44 - "@storybook/client-logger": 7.1.0-alpha.44 - "@storybook/core-events": 7.1.0-alpha.44 + "@storybook/channels": 7.1.0-beta.2 + "@storybook/client-logger": 7.1.0-beta.2 + "@storybook/core-events": 7.1.0-beta.2 "@storybook/global": ^5.0.0 - "@storybook/preview-api": 7.1.0-alpha.44 + "@storybook/preview-api": 7.1.0-beta.2 typescript: ~4.9.3 languageName: unknown linkType: soft @@ -6472,19 +6524,19 @@ __metadata: languageName: node linkType: hard -"@storybook/manager-api@7.1.0-alpha.44, @storybook/manager-api@workspace:*, @storybook/manager-api@workspace:lib/manager-api": +"@storybook/manager-api@7.1.0-beta.2, @storybook/manager-api@workspace:*, @storybook/manager-api@workspace:lib/manager-api": version: 0.0.0-use.local resolution: "@storybook/manager-api@workspace:lib/manager-api" dependencies: "@jest/globals": ^29.3.1 - "@storybook/channels": 7.1.0-alpha.44 - "@storybook/client-logger": 7.1.0-alpha.44 - "@storybook/core-events": 7.1.0-alpha.44 + "@storybook/channels": 7.1.0-beta.2 + "@storybook/client-logger": 7.1.0-beta.2 + "@storybook/core-events": 7.1.0-beta.2 "@storybook/csf": ^0.1.0 "@storybook/global": ^5.0.0 - "@storybook/router": 7.1.0-alpha.44 - "@storybook/theming": 7.1.0-alpha.44 - "@storybook/types": 7.1.0-alpha.44 + "@storybook/router": 7.1.0-beta.2 + "@storybook/theming": 7.1.0-beta.2 + "@storybook/types": 7.1.0-beta.2 "@types/lodash": ^4.14.167 "@types/qs": ^6 dequal: ^2.0.2 @@ -6503,23 +6555,24 @@ __metadata: languageName: unknown linkType: soft -"@storybook/manager@7.1.0-alpha.44, @storybook/manager@workspace:*, @storybook/manager@workspace:ui/manager": +"@storybook/manager@7.1.0-beta.2, @storybook/manager@workspace:*, @storybook/manager@workspace:ui/manager": version: 0.0.0-use.local resolution: "@storybook/manager@workspace:ui/manager" dependencies: "@fal-works/esbuild-plugin-global-externals": ^2.1.2 - "@storybook/addons": 7.1.0-alpha.44 - "@storybook/api": 7.1.0-alpha.44 - "@storybook/channel-postmessage": 7.1.0-alpha.44 - "@storybook/channels": 7.1.0-alpha.44 - "@storybook/client-logger": 7.1.0-alpha.44 - "@storybook/components": 7.1.0-alpha.44 - "@storybook/core-events": 7.1.0-alpha.44 + "@storybook/addon-designs": ^7.0.0 + "@storybook/addons": 7.1.0-beta.2 + "@storybook/api": 7.1.0-beta.2 + "@storybook/channel-postmessage": 7.1.0-beta.2 + "@storybook/channels": 7.1.0-beta.2 + "@storybook/client-logger": 7.1.0-beta.2 + "@storybook/components": 7.1.0-beta.2 + "@storybook/core-events": 7.1.0-beta.2 "@storybook/global": ^5.0.0 - "@storybook/manager-api": 7.1.0-alpha.44 - "@storybook/router": 7.1.0-alpha.44 - "@storybook/theming": 7.1.0-alpha.44 - "@storybook/types": 7.1.0-alpha.44 + "@storybook/manager-api": 7.1.0-beta.2 + "@storybook/router": 7.1.0-beta.2 + "@storybook/theming": 7.1.0-beta.2 + "@storybook/types": 7.1.0-beta.2 "@testing-library/react": ^11.2.2 "@types/semver": ^7.3.4 copy-to-clipboard: ^3.3.1 @@ -6569,13 +6622,13 @@ __metadata: "@babel/preset-typescript": ^7.21.0 "@babel/runtime": ^7.22.0 "@babel/types": ^7.22.0 - "@storybook/addon-actions": 7.1.0-alpha.44 - "@storybook/builder-webpack5": 7.1.0-alpha.44 - "@storybook/core-common": 7.1.0-alpha.44 - "@storybook/node-logger": 7.1.0-alpha.44 - "@storybook/preset-react-webpack": 7.1.0-alpha.44 - "@storybook/preview-api": 7.1.0-alpha.44 - "@storybook/react": 7.1.0-alpha.44 + "@storybook/addon-actions": 7.1.0-beta.2 + "@storybook/builder-webpack5": 7.1.0-beta.2 + "@storybook/core-common": 7.1.0-beta.2 + "@storybook/node-logger": 7.1.0-beta.2 + "@storybook/preset-react-webpack": 7.1.0-beta.2 + "@storybook/preview-api": 7.1.0-beta.2 + "@storybook/react": 7.1.0-beta.2 "@types/babel__core": ^7 "@types/babel__plugin-transform-runtime": ^7 "@types/babel__preset-env": ^7 @@ -6621,7 +6674,7 @@ __metadata: languageName: unknown linkType: soft -"@storybook/node-logger@7.1.0-alpha.44, @storybook/node-logger@workspace:*, @storybook/node-logger@workspace:lib/node-logger": +"@storybook/node-logger@7.1.0-beta.2, @storybook/node-logger@workspace:*, @storybook/node-logger@workspace:lib/node-logger": version: 0.0.0-use.local resolution: "@storybook/node-logger@workspace:lib/node-logger" dependencies: @@ -6634,7 +6687,7 @@ __metadata: languageName: unknown linkType: soft -"@storybook/postinstall@7.1.0-alpha.44, @storybook/postinstall@workspace:*, @storybook/postinstall@workspace:lib/postinstall": +"@storybook/postinstall@7.1.0-beta.2, @storybook/postinstall@workspace:*, @storybook/postinstall@workspace:lib/postinstall": version: 0.0.0-use.local resolution: "@storybook/postinstall@workspace:lib/postinstall" dependencies: @@ -6650,8 +6703,8 @@ __metadata: resolution: "@storybook/preact-vite@workspace:frameworks/preact-vite" dependencies: "@preact/preset-vite": ^2.0.0 - "@storybook/builder-vite": 7.1.0-alpha.44 - "@storybook/preact": 7.1.0-alpha.44 + "@storybook/builder-vite": 7.1.0-beta.2 + "@storybook/preact": 7.1.0-beta.2 "@types/node": ^16.0.0 typescript: ~4.9.3 vite: ^4.0.0 @@ -6665,10 +6718,10 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/preact-webpack5@workspace:frameworks/preact-webpack5" dependencies: - "@storybook/builder-webpack5": 7.1.0-alpha.44 - "@storybook/core-common": 7.1.0-alpha.44 - "@storybook/preact": 7.1.0-alpha.44 - "@storybook/preset-preact-webpack": 7.1.0-alpha.44 + "@storybook/builder-webpack5": 7.1.0-beta.2 + "@storybook/core-common": 7.1.0-beta.2 + "@storybook/preact": 7.1.0-beta.2 + "@storybook/preset-preact-webpack": 7.1.0-beta.2 "@types/node": ^16.0.0 preact: ^10.5.13 typescript: ~4.9.3 @@ -6680,14 +6733,14 @@ __metadata: languageName: unknown linkType: soft -"@storybook/preact@7.1.0-alpha.44, @storybook/preact@workspace:*, @storybook/preact@workspace:renderers/preact": +"@storybook/preact@7.1.0-beta.2, @storybook/preact@workspace:*, @storybook/preact@workspace:renderers/preact": version: 0.0.0-use.local resolution: "@storybook/preact@workspace:renderers/preact" dependencies: - "@storybook/core-client": 7.1.0-alpha.44 + "@storybook/core-client": 7.1.0-beta.2 "@storybook/global": ^5.0.0 - "@storybook/preview-api": 7.1.0-alpha.44 - "@storybook/types": 7.1.0-alpha.44 + "@storybook/preview-api": 7.1.0-beta.2 + "@storybook/types": 7.1.0-beta.2 preact: ^10.5.13 ts-dedent: ^2.0.0 typescript: ~4.9.3 @@ -6701,9 +6754,9 @@ __metadata: resolution: "@storybook/preset-create-react-app@workspace:presets/create-react-app" dependencies: "@pmmmwh/react-refresh-webpack-plugin": ^0.5.1 - "@storybook/node-logger": 7.1.0-alpha.44 + "@storybook/node-logger": 7.1.0-beta.2 "@storybook/react-docgen-typescript-plugin": 1.0.6--canary.9.0c3f3b7.0 - "@storybook/types": 7.1.0-alpha.44 + "@storybook/types": 7.1.0-beta.2 "@types/babel__core": ^7.1.7 "@types/node": ^16.0.0 babel-plugin-react-docgen: ^4.1.0 @@ -6716,11 +6769,11 @@ __metadata: languageName: unknown linkType: soft -"@storybook/preset-html-webpack@7.1.0-alpha.44, @storybook/preset-html-webpack@workspace:*, @storybook/preset-html-webpack@workspace:presets/html-webpack": +"@storybook/preset-html-webpack@7.1.0-beta.2, @storybook/preset-html-webpack@workspace:*, @storybook/preset-html-webpack@workspace:presets/html-webpack": version: 0.0.0-use.local resolution: "@storybook/preset-html-webpack@workspace:presets/html-webpack" dependencies: - "@storybook/core-webpack": 7.1.0-alpha.44 + "@storybook/core-webpack": 7.1.0-beta.2 "@types/node": ^16.0.0 html-loader: ^3.1.0 typescript: ~4.9.3 @@ -6730,13 +6783,13 @@ __metadata: languageName: unknown linkType: soft -"@storybook/preset-preact-webpack@7.1.0-alpha.44, @storybook/preset-preact-webpack@workspace:*, @storybook/preset-preact-webpack@workspace:presets/preact-webpack": +"@storybook/preset-preact-webpack@7.1.0-beta.2, @storybook/preset-preact-webpack@workspace:*, @storybook/preset-preact-webpack@workspace:presets/preact-webpack": version: 0.0.0-use.local resolution: "@storybook/preset-preact-webpack@workspace:presets/preact-webpack" dependencies: "@babel/plugin-transform-react-jsx": ^7.21.0 "@babel/preset-typescript": ^7.21.0 - "@storybook/core-webpack": 7.1.0-alpha.44 + "@storybook/core-webpack": 7.1.0-beta.2 "@types/node": ^16.0.0 preact: ^10.5.13 typescript: ~4.9.3 @@ -6746,17 +6799,17 @@ __metadata: languageName: unknown linkType: soft -"@storybook/preset-react-webpack@7.1.0-alpha.44, @storybook/preset-react-webpack@workspace:*, @storybook/preset-react-webpack@workspace:presets/react-webpack": +"@storybook/preset-react-webpack@7.1.0-beta.2, @storybook/preset-react-webpack@workspace:*, @storybook/preset-react-webpack@workspace:presets/react-webpack": version: 0.0.0-use.local resolution: "@storybook/preset-react-webpack@workspace:presets/react-webpack" dependencies: "@babel/preset-flow": ^7.21.0 "@babel/preset-react": ^7.22.0 "@pmmmwh/react-refresh-webpack-plugin": ^0.5.5 - "@storybook/core-webpack": 7.1.0-alpha.44 - "@storybook/docs-tools": 7.1.0-alpha.44 - "@storybook/node-logger": 7.1.0-alpha.44 - "@storybook/react": 7.1.0-alpha.44 + "@storybook/core-webpack": 7.1.0-beta.2 + "@storybook/docs-tools": 7.1.0-beta.2 + "@storybook/node-logger": 7.1.0-beta.2 + "@storybook/react": 7.1.0-beta.2 "@storybook/react-docgen-typescript-plugin": 1.0.6--canary.9.0c3f3b7.0 "@types/node": ^16.0.0 "@types/semver": ^7.3.4 @@ -6779,14 +6832,14 @@ __metadata: languageName: unknown linkType: soft -"@storybook/preset-server-webpack@7.1.0-alpha.44, @storybook/preset-server-webpack@workspace:*, @storybook/preset-server-webpack@workspace:presets/server-webpack": +"@storybook/preset-server-webpack@7.1.0-beta.2, @storybook/preset-server-webpack@workspace:*, @storybook/preset-server-webpack@workspace:presets/server-webpack": version: 0.0.0-use.local resolution: "@storybook/preset-server-webpack@workspace:presets/server-webpack" dependencies: - "@storybook/core-server": 7.1.0-alpha.44 - "@storybook/core-webpack": 7.1.0-alpha.44 + "@storybook/core-server": 7.1.0-beta.2 + "@storybook/core-webpack": 7.1.0-beta.2 "@storybook/global": ^5.0.0 - "@storybook/server": 7.1.0-alpha.44 + "@storybook/server": 7.1.0-beta.2 "@types/node": ^16.0.0 fs-extra: ^11.1.0 jest-specific-snapshot: ^8.0.0 @@ -6798,12 +6851,12 @@ __metadata: languageName: unknown linkType: soft -"@storybook/preset-svelte-webpack@7.1.0-alpha.44, @storybook/preset-svelte-webpack@workspace:*, @storybook/preset-svelte-webpack@workspace:presets/svelte-webpack": +"@storybook/preset-svelte-webpack@7.1.0-beta.2, @storybook/preset-svelte-webpack@workspace:*, @storybook/preset-svelte-webpack@workspace:presets/svelte-webpack": version: 0.0.0-use.local resolution: "@storybook/preset-svelte-webpack@workspace:presets/svelte-webpack" dependencies: - "@storybook/core-webpack": 7.1.0-alpha.44 - "@storybook/node-logger": 7.1.0-alpha.44 + "@storybook/core-webpack": 7.1.0-beta.2 + "@storybook/node-logger": 7.1.0-beta.2 svelte: ^3.31.2 svelte-loader: ^3.1.2 sveltedoc-parser: ^4.2.1 @@ -6816,12 +6869,12 @@ __metadata: languageName: unknown linkType: soft -"@storybook/preset-vue-webpack@7.1.0-alpha.44, @storybook/preset-vue-webpack@workspace:*, @storybook/preset-vue-webpack@workspace:presets/vue-webpack": +"@storybook/preset-vue-webpack@7.1.0-beta.2, @storybook/preset-vue-webpack@workspace:*, @storybook/preset-vue-webpack@workspace:presets/vue-webpack": version: 0.0.0-use.local resolution: "@storybook/preset-vue-webpack@workspace:presets/vue-webpack" dependencies: - "@storybook/core-webpack": 7.1.0-alpha.44 - "@storybook/docs-tools": 7.1.0-alpha.44 + "@storybook/core-webpack": 7.1.0-beta.2 + "@storybook/docs-tools": 7.1.0-beta.2 "@types/node": ^16.0.0 ts-loader: ^9.2.8 typescript: ~4.9.3 @@ -6841,12 +6894,12 @@ __metadata: languageName: unknown linkType: soft -"@storybook/preset-vue3-webpack@7.1.0-alpha.44, @storybook/preset-vue3-webpack@workspace:*, @storybook/preset-vue3-webpack@workspace:presets/vue3-webpack": +"@storybook/preset-vue3-webpack@7.1.0-beta.2, @storybook/preset-vue3-webpack@workspace:*, @storybook/preset-vue3-webpack@workspace:presets/vue3-webpack": version: 0.0.0-use.local resolution: "@storybook/preset-vue3-webpack@workspace:presets/vue3-webpack" dependencies: - "@storybook/core-webpack": 7.1.0-alpha.44 - "@storybook/docs-tools": 7.1.0-alpha.44 + "@storybook/core-webpack": 7.1.0-beta.2 + "@storybook/docs-tools": 7.1.0-beta.2 "@types/node": ^16.0.0 "@vue/compiler-sfc": ^3.2.33 ts-loader: ^9.2.8 @@ -6864,14 +6917,14 @@ __metadata: languageName: unknown linkType: soft -"@storybook/preset-web-components-webpack@7.1.0-alpha.44, @storybook/preset-web-components-webpack@workspace:*, @storybook/preset-web-components-webpack@workspace:presets/web-components-webpack": +"@storybook/preset-web-components-webpack@7.1.0-beta.2, @storybook/preset-web-components-webpack@workspace:*, @storybook/preset-web-components-webpack@workspace:presets/web-components-webpack": version: 0.0.0-use.local resolution: "@storybook/preset-web-components-webpack@workspace:presets/web-components-webpack" dependencies: "@babel/plugin-syntax-dynamic-import": ^7.8.3 "@babel/plugin-syntax-import-meta": ^7.10.4 "@babel/preset-env": ^7.22.0 - "@storybook/core-webpack": 7.1.0-alpha.44 + "@storybook/core-webpack": 7.1.0-beta.2 "@types/node": ^16.0.0 babel-loader: ^7.0.0 || ^8.0.0 || ^9.0.0 babel-plugin-bundled-import-meta: ^0.3.1 @@ -6882,19 +6935,19 @@ __metadata: languageName: unknown linkType: soft -"@storybook/preview-api@7.1.0-alpha.44, @storybook/preview-api@workspace:*, @storybook/preview-api@workspace:lib/preview-api": +"@storybook/preview-api@7.1.0-beta.2, @storybook/preview-api@workspace:*, @storybook/preview-api@workspace:lib/preview-api": version: 0.0.0-use.local resolution: "@storybook/preview-api@workspace:lib/preview-api" dependencies: "@jest/globals": ^29.5.0 - "@storybook/channel-postmessage": 7.1.0-alpha.44 - "@storybook/channels": 7.1.0-alpha.44 - "@storybook/client-logger": 7.1.0-alpha.44 - "@storybook/core-common": 7.1.0-alpha.44 - "@storybook/core-events": 7.1.0-alpha.44 + "@storybook/channel-postmessage": 7.1.0-beta.2 + "@storybook/channels": 7.1.0-beta.2 + "@storybook/client-logger": 7.1.0-beta.2 + "@storybook/core-common": 7.1.0-beta.2 + "@storybook/core-events": 7.1.0-beta.2 "@storybook/csf": ^0.1.0 "@storybook/global": ^5.0.0 - "@storybook/types": 7.1.0-alpha.44 + "@storybook/types": 7.1.0-beta.2 "@types/qs": ^6.9.5 ansi-to-html: ^0.6.11 dequal: ^2.0.2 @@ -6909,23 +6962,23 @@ __metadata: languageName: unknown linkType: soft -"@storybook/preview-web@7.1.0-alpha.44, @storybook/preview-web@workspace:*, @storybook/preview-web@workspace:deprecated/preview-web": +"@storybook/preview-web@7.1.0-beta.2, @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": 7.1.0-alpha.44 - "@storybook/preview-api": 7.1.0-alpha.44 + "@storybook/client-logger": 7.1.0-beta.2 + "@storybook/preview-api": 7.1.0-beta.2 languageName: unknown linkType: soft -"@storybook/preview@7.1.0-alpha.44, @storybook/preview@workspace:*, @storybook/preview@workspace:lib/preview": +"@storybook/preview@7.1.0-beta.2, @storybook/preview@workspace:*, @storybook/preview@workspace:lib/preview": version: 0.0.0-use.local resolution: "@storybook/preview@workspace:lib/preview" dependencies: - "@storybook/channels": 7.1.0-alpha.44 - "@storybook/client-logger": 7.1.0-alpha.44 - "@storybook/core-events": 7.1.0-alpha.44 - "@storybook/preview-api": 7.1.0-alpha.44 + "@storybook/channels": 7.1.0-beta.2 + "@storybook/client-logger": 7.1.0-beta.2 + "@storybook/core-events": 7.1.0-beta.2 + "@storybook/preview-api": 7.1.0-beta.2 typescript: ~4.9.3 languageName: unknown linkType: soft @@ -6948,11 +7001,11 @@ __metadata: languageName: node linkType: hard -"@storybook/react-dom-shim@7.1.0-alpha.44, @storybook/react-dom-shim@workspace:lib/react-dom-shim": +"@storybook/react-dom-shim@7.1.0-beta.2, @storybook/react-dom-shim@workspace:lib/react-dom-shim": version: 0.0.0-use.local resolution: "@storybook/react-dom-shim@workspace:lib/react-dom-shim" dependencies: - "@storybook/types": 7.1.0-alpha.44 + "@storybook/types": 7.1.0-beta.2 typescript: ~4.9.3 peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 @@ -6966,8 +7019,8 @@ __metadata: dependencies: "@joshwooding/vite-plugin-react-docgen-typescript": 0.2.1 "@rollup/pluginutils": ^5.0.2 - "@storybook/builder-vite": 7.1.0-alpha.44 - "@storybook/react": 7.1.0-alpha.44 + "@storybook/builder-vite": 7.1.0-beta.2 + "@storybook/react": 7.1.0-beta.2 "@types/node": ^16.0.0 "@vitejs/plugin-react": ^3.0.1 ast-types: ^0.14.2 @@ -6986,16 +7039,16 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/react-webpack5@workspace:frameworks/react-webpack5" dependencies: - "@storybook/builder-webpack5": 7.1.0-alpha.44 - "@storybook/preset-react-webpack": 7.1.0-alpha.44 - "@storybook/react": 7.1.0-alpha.44 + "@storybook/builder-webpack5": 7.1.0-beta.2 + "@storybook/preset-react-webpack": 7.1.0-beta.2 + "@storybook/react": 7.1.0-beta.2 "@types/node": ^16.0.0 jest-specific-snapshot: ^8.0.0 - typescript: ~4.9.3 peerDependencies: "@babel/core": ^7.22.0 react: ^16.8.0 || ^17.0.0 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 + typescript: "*" peerDependenciesMeta: "@babel/core": optional: true @@ -7004,18 +7057,18 @@ __metadata: languageName: unknown linkType: soft -"@storybook/react@7.1.0-alpha.44, @storybook/react@workspace:*, @storybook/react@workspace:renderers/react": +"@storybook/react@7.1.0-beta.2, @storybook/react@workspace:*, @storybook/react@workspace:renderers/react": version: 0.0.0-use.local resolution: "@storybook/react@workspace:renderers/react" dependencies: "@babel/core": ^7.22.0 - "@storybook/client-logger": 7.1.0-alpha.44 - "@storybook/core-client": 7.1.0-alpha.44 - "@storybook/docs-tools": 7.1.0-alpha.44 + "@storybook/client-logger": 7.1.0-beta.2 + "@storybook/core-client": 7.1.0-beta.2 + "@storybook/docs-tools": 7.1.0-beta.2 "@storybook/global": ^5.0.0 - "@storybook/preview-api": 7.1.0-alpha.44 - "@storybook/react-dom-shim": 7.1.0-alpha.44 - "@storybook/types": 7.1.0-alpha.44 + "@storybook/preview-api": 7.1.0-beta.2 + "@storybook/react-dom-shim": 7.1.0-beta.2 + "@storybook/types": 7.1.0-beta.2 "@types/escodegen": ^0.0.6 "@types/estree": ^0.0.51 "@types/node": ^16.0.0 @@ -7033,11 +7086,11 @@ __metadata: require-from-string: ^2.0.2 ts-dedent: ^2.0.0 type-fest: ^3.11.0 - typescript: ~4.9.3 util-deprecate: ^1.0.2 peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 + typescript: "*" peerDependenciesMeta: typescript: optional: true @@ -7235,11 +7288,11 @@ __metadata: languageName: unknown linkType: soft -"@storybook/router@7.1.0-alpha.44, @storybook/router@workspace:*, @storybook/router@workspace:lib/router": +"@storybook/router@7.1.0-beta.2, @storybook/router@workspace:*, @storybook/router@workspace:lib/router": version: 0.0.0-use.local resolution: "@storybook/router@workspace:lib/router" dependencies: - "@storybook/client-logger": 7.1.0-alpha.44 + "@storybook/client-logger": 7.1.0-beta.2 "@storybook/global": ^5.0.0 dequal: ^2.0.2 lodash: ^4.17.21 @@ -7258,10 +7311,10 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/server-webpack5@workspace:frameworks/server-webpack5" dependencies: - "@storybook/builder-webpack5": 7.1.0-alpha.44 - "@storybook/core-common": 7.1.0-alpha.44 - "@storybook/preset-server-webpack": 7.1.0-alpha.44 - "@storybook/server": 7.1.0-alpha.44 + "@storybook/builder-webpack5": 7.1.0-beta.2 + "@storybook/core-common": 7.1.0-beta.2 + "@storybook/preset-server-webpack": 7.1.0-beta.2 + "@storybook/server": 7.1.0-beta.2 "@types/node": ^16.0.0 typescript: ~4.9.3 peerDependencies: @@ -7270,16 +7323,16 @@ __metadata: languageName: unknown linkType: soft -"@storybook/server@7.1.0-alpha.44, @storybook/server@workspace:*, @storybook/server@workspace:renderers/server": +"@storybook/server@7.1.0-beta.2, @storybook/server@workspace:*, @storybook/server@workspace:renderers/server": version: 0.0.0-use.local resolution: "@storybook/server@workspace:renderers/server" dependencies: - "@storybook/core-client": 7.1.0-alpha.44 + "@storybook/core-client": 7.1.0-beta.2 "@storybook/csf": ^0.1.0 - "@storybook/csf-tools": 7.1.0-alpha.44 + "@storybook/csf-tools": 7.1.0-beta.2 "@storybook/global": ^5.0.0 - "@storybook/preview-api": 7.1.0-alpha.44 - "@storybook/types": 7.1.0-alpha.44 + "@storybook/preview-api": 7.1.0-beta.2 + "@storybook/types": 7.1.0-beta.2 "@types/fs-extra": ^11.0.1 fs-extra: ^11.1.0 ts-dedent: ^2.0.0 @@ -7288,12 +7341,12 @@ __metadata: languageName: unknown linkType: soft -"@storybook/source-loader@7.1.0-alpha.44, @storybook/source-loader@workspace:*, @storybook/source-loader@workspace:lib/source-loader": +"@storybook/source-loader@7.1.0-beta.2, @storybook/source-loader@workspace:*, @storybook/source-loader@workspace:lib/source-loader": version: 0.0.0-use.local resolution: "@storybook/source-loader@workspace:lib/source-loader" dependencies: "@storybook/csf": ^0.1.0 - "@storybook/types": 7.1.0-alpha.44 + "@storybook/types": 7.1.0-beta.2 estraverse: ^5.2.0 jest-specific-snapshot: ^8.0.0 lodash: ^4.17.21 @@ -7305,22 +7358,22 @@ __metadata: languageName: unknown linkType: soft -"@storybook/store@7.1.0-alpha.44, @storybook/store@workspace:*, @storybook/store@workspace:deprecated/store": +"@storybook/store@7.1.0-beta.2, @storybook/store@workspace:*, @storybook/store@workspace:deprecated/store": version: 0.0.0-use.local resolution: "@storybook/store@workspace:deprecated/store" dependencies: - "@storybook/client-logger": 7.1.0-alpha.44 - "@storybook/preview-api": 7.1.0-alpha.44 + "@storybook/client-logger": 7.1.0-beta.2 + "@storybook/preview-api": 7.1.0-beta.2 languageName: unknown linkType: soft -"@storybook/svelte-vite@7.1.0-alpha.44, @storybook/svelte-vite@workspace:frameworks/svelte-vite": +"@storybook/svelte-vite@7.1.0-beta.2, @storybook/svelte-vite@workspace:frameworks/svelte-vite": version: 0.0.0-use.local resolution: "@storybook/svelte-vite@workspace:frameworks/svelte-vite" dependencies: - "@storybook/builder-vite": 7.1.0-alpha.44 - "@storybook/node-logger": 7.1.0-alpha.44 - "@storybook/svelte": 7.1.0-alpha.44 + "@storybook/builder-vite": 7.1.0-beta.2 + "@storybook/node-logger": 7.1.0-beta.2 + "@storybook/svelte": 7.1.0-beta.2 "@sveltejs/vite-plugin-svelte": ^2.4.1 "@types/node": ^16.0.0 magic-string: ^0.30.0 @@ -7339,10 +7392,10 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/svelte-webpack5@workspace:frameworks/svelte-webpack5" dependencies: - "@storybook/builder-webpack5": 7.1.0-alpha.44 - "@storybook/core-common": 7.1.0-alpha.44 - "@storybook/preset-svelte-webpack": 7.1.0-alpha.44 - "@storybook/svelte": 7.1.0-alpha.44 + "@storybook/builder-webpack5": 7.1.0-beta.2 + "@storybook/core-common": 7.1.0-beta.2 + "@storybook/preset-svelte-webpack": 7.1.0-beta.2 + "@storybook/svelte": 7.1.0-beta.2 svelte: ^3.48.0 svelte-loader: ^3.1.2 typescript: ~4.9.3 @@ -7355,17 +7408,17 @@ __metadata: languageName: unknown linkType: soft -"@storybook/svelte@7.1.0-alpha.44, @storybook/svelte@workspace:*, @storybook/svelte@workspace:renderers/svelte": +"@storybook/svelte@7.1.0-beta.2, @storybook/svelte@workspace:*, @storybook/svelte@workspace:renderers/svelte": version: 0.0.0-use.local resolution: "@storybook/svelte@workspace:renderers/svelte" dependencies: - "@storybook/client-logger": 7.1.0-alpha.44 - "@storybook/core-client": 7.1.0-alpha.44 - "@storybook/core-events": 7.1.0-alpha.44 - "@storybook/docs-tools": 7.1.0-alpha.44 + "@storybook/client-logger": 7.1.0-beta.2 + "@storybook/core-client": 7.1.0-beta.2 + "@storybook/core-events": 7.1.0-beta.2 + "@storybook/docs-tools": 7.1.0-beta.2 "@storybook/global": ^5.0.0 - "@storybook/preview-api": 7.1.0-alpha.44 - "@storybook/types": 7.1.0-alpha.44 + "@storybook/preview-api": 7.1.0-beta.2 + "@storybook/types": 7.1.0-beta.2 expect-type: ^0.15.0 svelte: ^4.0.0 svelte-check: ^3.4.3 @@ -7381,9 +7434,9 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/sveltekit@workspace:frameworks/sveltekit" dependencies: - "@storybook/builder-vite": 7.1.0-alpha.44 - "@storybook/svelte": 7.1.0-alpha.44 - "@storybook/svelte-vite": 7.1.0-alpha.44 + "@storybook/builder-vite": 7.1.0-beta.2 + "@storybook/svelte": 7.1.0-beta.2 + "@storybook/svelte-vite": 7.1.0-beta.2 "@types/node": ^16.0.0 typescript: ^4.9.3 vite: ^4.0.0 @@ -7393,12 +7446,12 @@ __metadata: languageName: unknown linkType: soft -"@storybook/telemetry@7.1.0-alpha.44, @storybook/telemetry@workspace:*, @storybook/telemetry@workspace:lib/telemetry": +"@storybook/telemetry@7.1.0-beta.2, @storybook/telemetry@workspace:*, @storybook/telemetry@workspace:lib/telemetry": version: 0.0.0-use.local resolution: "@storybook/telemetry@workspace:lib/telemetry" dependencies: - "@storybook/client-logger": 7.1.0-alpha.44 - "@storybook/core-common": 7.1.0-alpha.44 + "@storybook/client-logger": 7.1.0-beta.2 + "@storybook/core-common": 7.1.0-beta.2 chalk: ^4.1.0 detect-package-manager: ^2.0.1 fetch-retry: ^5.0.2 @@ -7421,7 +7474,7 @@ __metadata: languageName: node linkType: hard -"@storybook/theming@7.1.0-alpha.44, @storybook/theming@workspace:*, @storybook/theming@workspace:lib/theming": +"@storybook/theming@7.1.0-beta.2, @storybook/theming@workspace:*, @storybook/theming@workspace:lib/theming": version: 0.0.0-use.local resolution: "@storybook/theming@workspace:lib/theming" dependencies: @@ -7430,7 +7483,7 @@ __metadata: "@emotion/react": ^11.10.4 "@emotion/styled": ^11.10.4 "@emotion/use-insertion-effect-with-fallbacks": ^1.0.0 - "@storybook/client-logger": 7.1.0-alpha.44 + "@storybook/client-logger": 7.1.0-beta.2 "@storybook/global": ^5.0.0 "@types/fs-extra": ^11.0.1 "@types/node": ^16.0.0 @@ -7446,11 +7499,11 @@ __metadata: languageName: unknown linkType: soft -"@storybook/types@7.1.0-alpha.44, @storybook/types@workspace:*, @storybook/types@workspace:lib/types": +"@storybook/types@7.1.0-beta.2, @storybook/types@workspace:*, @storybook/types@workspace:lib/types": version: 0.0.0-use.local resolution: "@storybook/types@workspace:lib/types" dependencies: - "@storybook/channels": 7.1.0-alpha.44 + "@storybook/channels": 7.1.0-beta.2 "@storybook/csf": ^0.1.0 "@types/babel__core": ^7.0.0 "@types/express": ^4.7.0 @@ -7464,10 +7517,10 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/vue-vite@workspace:frameworks/vue-vite" dependencies: - "@storybook/builder-vite": 7.1.0-alpha.44 - "@storybook/core-common": 7.1.0-alpha.44 - "@storybook/core-server": 7.1.0-alpha.44 - "@storybook/vue": 7.1.0-alpha.44 + "@storybook/builder-vite": 7.1.0-beta.2 + "@storybook/core-common": 7.1.0-beta.2 + "@storybook/core-server": 7.1.0-beta.2 + "@storybook/vue": 7.1.0-beta.2 magic-string: ^0.30.0 typescript: ~4.9.3 vite: ^4.0.0 @@ -7485,10 +7538,10 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/vue-webpack5@workspace:frameworks/vue-webpack5" dependencies: - "@storybook/builder-webpack5": 7.1.0-alpha.44 - "@storybook/core-common": 7.1.0-alpha.44 - "@storybook/preset-vue-webpack": 7.1.0-alpha.44 - "@storybook/vue": 7.1.0-alpha.44 + "@storybook/builder-webpack5": 7.1.0-beta.2 + "@storybook/core-common": 7.1.0-beta.2 + "@storybook/preset-vue-webpack": 7.1.0-beta.2 + "@storybook/vue": 7.1.0-beta.2 "@types/node": ^16.0.0 typescript: ~4.9.3 vue: ^2.6.12 @@ -7510,9 +7563,9 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/vue3-vite@workspace:frameworks/vue3-vite" dependencies: - "@storybook/builder-vite": 7.1.0-alpha.44 - "@storybook/core-server": 7.1.0-alpha.44 - "@storybook/vue3": 7.1.0-alpha.44 + "@storybook/builder-vite": 7.1.0-beta.2 + "@storybook/core-server": 7.1.0-beta.2 + "@storybook/vue3": 7.1.0-beta.2 "@types/node": ^16.0.0 "@vitejs/plugin-vue": ^4.0.0 magic-string: ^0.30.0 @@ -7530,10 +7583,10 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/vue3-webpack5@workspace:frameworks/vue3-webpack5" dependencies: - "@storybook/builder-webpack5": 7.1.0-alpha.44 - "@storybook/core-common": 7.1.0-alpha.44 - "@storybook/preset-vue3-webpack": 7.1.0-alpha.44 - "@storybook/vue3": 7.1.0-alpha.44 + "@storybook/builder-webpack5": 7.1.0-beta.2 + "@storybook/core-common": 7.1.0-beta.2 + "@storybook/preset-vue3-webpack": 7.1.0-beta.2 + "@storybook/vue3": 7.1.0-beta.2 "@types/node": ^16.0.0 "@vue/compiler-sfc": 3.0.0 typescript: ~4.9.3 @@ -7548,16 +7601,16 @@ __metadata: languageName: unknown linkType: soft -"@storybook/vue3@7.1.0-alpha.44, @storybook/vue3@workspace:*, @storybook/vue3@workspace:renderers/vue3": +"@storybook/vue3@7.1.0-beta.2, @storybook/vue3@workspace:*, @storybook/vue3@workspace:renderers/vue3": version: 0.0.0-use.local resolution: "@storybook/vue3@workspace:renderers/vue3" dependencies: "@digitak/esrun": ^3.2.2 - "@storybook/core-client": 7.1.0-alpha.44 - "@storybook/docs-tools": 7.1.0-alpha.44 + "@storybook/core-client": 7.1.0-beta.2 + "@storybook/docs-tools": 7.1.0-beta.2 "@storybook/global": ^5.0.0 - "@storybook/preview-api": 7.1.0-alpha.44 - "@storybook/types": 7.1.0-alpha.44 + "@storybook/preview-api": 7.1.0-beta.2 + "@storybook/types": 7.1.0-beta.2 "@types/prettier": 2.7.2 "@vue/compiler-core": ^3.3.4 "@vue/vue3-jest": 29 @@ -7574,16 +7627,16 @@ __metadata: languageName: unknown linkType: soft -"@storybook/vue@7.1.0-alpha.44, @storybook/vue@workspace:*, @storybook/vue@workspace:renderers/vue": +"@storybook/vue@7.1.0-beta.2, @storybook/vue@workspace:*, @storybook/vue@workspace:renderers/vue": version: 0.0.0-use.local resolution: "@storybook/vue@workspace:renderers/vue" dependencies: - "@storybook/client-logger": 7.1.0-alpha.44 - "@storybook/core-client": 7.1.0-alpha.44 - "@storybook/docs-tools": 7.1.0-alpha.44 + "@storybook/client-logger": 7.1.0-beta.2 + "@storybook/core-client": 7.1.0-beta.2 + "@storybook/docs-tools": 7.1.0-beta.2 "@storybook/global": ^5.0.0 - "@storybook/preview-api": 7.1.0-alpha.44 - "@storybook/types": 7.1.0-alpha.44 + "@storybook/preview-api": 7.1.0-beta.2 + "@storybook/types": 7.1.0-beta.2 ts-dedent: ^2.0.0 type-fest: ^3.11.0 typescript: ~4.9.3 @@ -7604,10 +7657,10 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/web-components-vite@workspace:frameworks/web-components-vite" dependencies: - "@storybook/builder-vite": 7.1.0-alpha.44 - "@storybook/core-server": 7.1.0-alpha.44 - "@storybook/node-logger": 7.1.0-alpha.44 - "@storybook/web-components": 7.1.0-alpha.44 + "@storybook/builder-vite": 7.1.0-beta.2 + "@storybook/core-server": 7.1.0-beta.2 + "@storybook/node-logger": 7.1.0-beta.2 + "@storybook/web-components": 7.1.0-beta.2 "@types/node": ^16.0.0 magic-string: ^0.30.0 typescript: ~4.9.3 @@ -7622,10 +7675,10 @@ __metadata: resolution: "@storybook/web-components-webpack5@workspace:frameworks/web-components-webpack5" dependencies: "@babel/preset-env": ^7.22.0 - "@storybook/builder-webpack5": 7.1.0-alpha.44 - "@storybook/core-common": 7.1.0-alpha.44 - "@storybook/preset-web-components-webpack": 7.1.0-alpha.44 - "@storybook/web-components": 7.1.0-alpha.44 + "@storybook/builder-webpack5": 7.1.0-beta.2 + "@storybook/core-common": 7.1.0-beta.2 + "@storybook/preset-web-components-webpack": 7.1.0-beta.2 + "@storybook/web-components": 7.1.0-beta.2 "@types/node": ^16.0.0 lit: 2.3.1 typescript: ~4.9.3 @@ -7636,17 +7689,17 @@ __metadata: languageName: unknown linkType: soft -"@storybook/web-components@7.1.0-alpha.44, @storybook/web-components@workspace:*, @storybook/web-components@workspace:renderers/web-components": +"@storybook/web-components@7.1.0-beta.2, @storybook/web-components@workspace:*, @storybook/web-components@workspace:renderers/web-components": version: 0.0.0-use.local resolution: "@storybook/web-components@workspace:renderers/web-components" dependencies: - "@storybook/client-logger": 7.1.0-alpha.44 - "@storybook/core-client": 7.1.0-alpha.44 - "@storybook/docs-tools": 7.1.0-alpha.44 + "@storybook/client-logger": 7.1.0-beta.2 + "@storybook/core-client": 7.1.0-beta.2 + "@storybook/docs-tools": 7.1.0-beta.2 "@storybook/global": ^5.0.0 - "@storybook/manager-api": 7.1.0-alpha.44 - "@storybook/preview-api": 7.1.0-alpha.44 - "@storybook/types": 7.1.0-alpha.44 + "@storybook/manager-api": 7.1.0-beta.2 + "@storybook/preview-api": 7.1.0-beta.2 + "@storybook/types": 7.1.0-beta.2 "@types/cross-spawn": ^6.0.2 "@types/node": ^16.0.0 cross-spawn: ^7.0.3 @@ -9716,7 +9769,7 @@ __metadata: languageName: node linkType: hard -"@yarnpkg/fslib@npm:^2.10.3": +"@yarnpkg/fslib@npm:2.10.3": version: 2.10.3 resolution: "@yarnpkg/fslib@npm:2.10.3" dependencies: @@ -9726,7 +9779,7 @@ __metadata: languageName: node linkType: hard -"@yarnpkg/libzip@npm:^2.3.0": +"@yarnpkg/libzip@npm:2.3.0, @yarnpkg/libzip@npm:^2.3.0": version: 2.3.0 resolution: "@yarnpkg/libzip@npm:2.3.0" dependencies: @@ -20570,7 +20623,7 @@ __metadata: languageName: node linkType: hard -"lit-element@npm:^3.2.0": +"lit-element@npm:^3.2.0, lit-element@npm:^3.3.0": version: 3.3.2 resolution: "lit-element@npm:3.3.2" dependencies: @@ -20601,6 +20654,17 @@ __metadata: languageName: node linkType: hard +"lit@npm:^2.1.3": + version: 2.7.6 + resolution: "lit@npm:2.7.6" + dependencies: + "@lit/reactive-element": ^1.6.0 + lit-element: ^3.3.0 + lit-html: ^2.7.0 + checksum: bfd629c6eff8e6086200d0c0904c7a20a4d1dab21d1016d40cc8591d00d972171537e8466ca4eae8c5f227f2c5d2ef2ab9a9fe3587e024a493c93614c928b6fe + languageName: node + linkType: hard + "load-json-file@npm:6.2.0": version: 6.2.0 resolution: "load-json-file@npm:6.2.0" @@ -27294,7 +27358,7 @@ __metadata: version: 0.0.0-use.local resolution: "sb@workspace:lib/cli-sb" dependencies: - "@storybook/cli": 7.1.0-alpha.44 + "@storybook/cli": 7.1.0-beta.2 bin: sb: ./index.js languageName: unknown @@ -28236,7 +28300,7 @@ __metadata: version: 0.0.0-use.local resolution: "storybook@workspace:lib/cli-storybook" dependencies: - "@storybook/cli": 7.1.0-alpha.44 + "@storybook/cli": 7.1.0-beta.2 bin: sb: ./index.js storybook: ./index.js @@ -29207,6 +29271,13 @@ __metadata: languageName: node linkType: hard +"tocbot@npm:^4.20.1": + version: 4.21.0 + resolution: "tocbot@npm:4.21.0" + checksum: 877d99df40c07ec5e5c2259b820be9c8af9a9f52d582a61b7bed3d43daff820f23031bc613a5cc3bb14ecc34b79c1a45349dcbae8f3a79de7ecc127f366ed3c6 + languageName: node + linkType: hard + "toggle-selection@npm:^1.0.6": version: 1.0.6 resolution: "toggle-selection@npm:1.0.6" diff --git a/docs/configure/frameworks.md b/docs/configure/frameworks.md index 75abaff4b73c..80ebc224932e 100644 --- a/docs/configure/frameworks.md +++ b/docs/configure/frameworks.md @@ -52,7 +52,7 @@ Every modern web application has unique requirements and relies on various tools ### NextJS 13 doesn't work with Storybook -The latest release of [NexJS](https://nextjs.org/) introduced breaking changes (e.g., [TurboPack](https://turbo.build/pack), [Server Component](https://nextjs.org/docs/advanced-features/react-18/server-components), [SWC](https://nextjs.org/docs/advanced-features/compiler#why-swc)) that are not yet fully supported by Storybook. The Storybook team is working on adding support for these features. In the meantime, you can still use Storybook alongside your NextJS 13 project if you're not relying on them. +The latest release of [NextJS](https://nextjs.org/) introduced breaking changes (e.g., [TurboPack](https://turbo.build/pack), [Server Component](https://nextjs.org/docs/advanced-features/react-18/server-components), [SWC](https://nextjs.org/docs/advanced-features/compiler#why-swc)) that are not yet fully supported by Storybook. The Storybook team is working on adding support for these features. In the meantime, you can still use Storybook alongside your NextJS 13 project if you're not relying on them. ### My framework doesn't work with Storybook diff --git a/docs/contribute/RFC.md b/docs/contribute/RFC.md new file mode 100644 index 000000000000..e920e6b6bead --- /dev/null +++ b/docs/contribute/RFC.md @@ -0,0 +1,55 @@ +--- +title: 'RFC process' +--- + +The RFC (Request for Comment) process is intended to provide a consistent and controlled path for new features to enter the project. It helps ensure that new features are well-designed, well-implemented, and well-tested, and they do not conflict with the project's overall direction and scope. + +## Goal + +Many changes, such as bug fixes and documentation improvements, can be implemented and reviewed via the normal GitHub pull request workflow. Some changes, however, are considered “substantial”, and we ask that these undergo a design process, solicit community input, and reach a consensus among the Storybook core team. + +The purpose of the RFC (Request for Comment) process is to: + +- Provide a transparent system for proposing new feature ideas. +- Establish a reliable and well-regulated process for introducing new features into the project. +- Provide a way for the community to participate in developing new features. + +### “Feature Request” vs. “RFC” + +A _feature request_ is a straightforward and relatively informal way for Storybook users to suggest a new feature or enhancement to the project. While feature requests can provide valuable insights and ideas, they typically do not involve an in-depth design process or require consensus among the core team. Feature requests are usually open to discussion and may or may not be implemented based on factors like popularity, feasibility, and alignment with the project's goals. + +On the other hand, an _RFC_ is a more formalized and structured process for proposing substantial changes or additions to the project. It involves following a defined set of steps to ensure that the proposed feature or modification receives proper consideration, design, and feedback. RFCs are typically used for changes that significantly impact the project, such as introducing new API functionality, removing existing features, or establishing new usage conventions. The RFC process aims to foster discussions, gather feedback from a wider audience, and reach consensus among the core team before integrating the proposed change into the project. Accepted RFCs are more likely to be implemented than regular feature requests. + +## The RFC lifecycle + +### 1. `Status: Proposed` + +Open a new GitHub discussion in the [“RFC” category](https://github.com/storybookjs/storybook/discussions/new?category=rfc). Fill out the form as instructed. + +_Details matter_: RFCs that do not present convincing motivation, demonstrate a lack of understanding of the design's impact, or are disingenuous about the drawbacks or alternatives tend to be poorly received. + +### 2. `Status: In review` + +RFCs tend to remain in this stage for a while, giving the community and core team members time to weigh in. During this period, the author of an RFC should be prepared to revise the proposal, integrate feedback, and build consensus. RFCs that have broad support are much more likely to make progress than those that don't receive any comments. + +Every Monday at 11 a.m. (EST), the Storybook core team conducts a weekly triage meeting to review open RFCs as part of the meeting's agenda. The meeting is held in the [Storybook Discord's Watercooler channel](https://discord.com/channels/486522875931656193/486522876388704260). We invite the RFC author(s) and interested members of the community to participate and engage in a more detailed discussion of the RFC. If a core team member deems it necessary, they will be assigned as the "champion" of the RFC. The champion will collaborate with the RFC author and assist them throughout the RFC process. + +### 3. `Status: accepted/rejected` + +Eventually, the team will decide whether the RFC is a candidate for inclusion in Storybook. On the other hand, an RFC may be rejected by the team after a public discussion has settled and comments have been made summarizing the rationale for rejection. + +## Implementing an accepted RFC + +The author of an RFC is not obligated to implement it. Of course, the RFC author (like any other developer) is welcome to post an implementation for review after the RFC has been accepted. However, note that the “accepted” status does not indicate priority nor whether it’s being actively worked on. + +If you are interested in implementing an "active" RFC, but cannot determine if someone else is already working on it, feel free to ask (e.g., by leaving a comment on the associated issue). + +This RFC process took heavy inspiration from the RFC processes from [Rust](https://github.com/rust-lang/rfcs) and [Gatsby](https://www.gatsbyjs.com/contributing/rfc-process/). + +## Learn more about contributing to Storybook + +- RFC process for authoring feature requests +- [Code](./code.md) for features and bug fixes +- [Frameworks](./framework.md) to get started with a new framework +- [Documentation](./documentation-updates.md) for documentation improvements, typos, and clarifications +- [Examples](./new-snippets.md) for new snippets and examples diff --git a/docs/contribute/code.md b/docs/contribute/code.md index ece3481c1e1c..e0317f634c8d 100644 --- a/docs/contribute/code.md +++ b/docs/contribute/code.md @@ -254,11 +254,10 @@ It's troublesome to know which packages you'll change ahead of time, and watchin -## Other ways to contribute +## Learn more about contributing to Storybook -Learn about other ways you can contribute to Storybook. - -- [**Overview**](./how-to-contribute.md): General guidance -- [**Docs**](./documentation-updates.md): Typos, clarifications -- [**Addons**](./../addons/introduction.md): Build an addon and share it with the community -- [**Frameworks**](./framework.md): Integrate Storybook with your favorite library +- [RFC process](./RFC.md) for authoring feature requests +- Code for features and bug fixes +- [Frameworks](./framework.md) to get started with a new framework +- [Documentation](./documentation-updates.md) for documentation improvements, typos, and clarifications +- [Examples](./new-snippets.md) for new snippets and examples diff --git a/docs/contribute/documentation-updates.md b/docs/contribute/documentation-updates.md index 2e3a630585c7..76808e2c786b 100644 --- a/docs/contribute/documentation-updates.md +++ b/docs/contribute/documentation-updates.md @@ -22,11 +22,10 @@ Scroll down to the bottom of the document page on GitHub and describe what you c In the Storybook repository, create a pull request that describes changes and includes additional context that would help maintainers review. Once you submit the PR, a maintainer will guide you through the triage and merge process. -## Other ways to contribute +## Learn more about contributing to Storybook -Learn about other ways you can contribute to Storybook. - -- [**Overview**](./how-to-contribute.md): General guidance -- [**Code**](./code.md): Features, bug fixes, dependency updates -- [**Addons**](./../addons/introduction.md): Build an addon and share it with the community -- [**Frameworks**](./framework.md): Integrate Storybook with your favorite library +- [RFC process](./RFC.md) for authoring feature requests +- [Code](./code.md) for features and bug fixes +- [Frameworks](./framework.md) to get started with a new framework +- Documentation for documentation improvements, typos, and clarifications +- [Examples](./new-snippets.md) for new snippets and examples diff --git a/docs/contribute/framework.md b/docs/contribute/framework.md index d3912bfd80ad..f3125080a4b9 100644 --- a/docs/contribute/framework.md +++ b/docs/contribute/framework.md @@ -144,11 +144,10 @@ Test it in a fresh project using a Storybook set up as close as possible to your Once it's fully tested and released, please let us know about your framework by either announcing it in the `#showcase` channel of the [Storybook Discord](https://discord.gg/storybook) or tweeting it and mentioning `@storybookjs`. It's our hope that well-made community frameworks can eventually move into the Storybook codebase and be considered "officially" supported. -## Other ways to contribute +## Learn more about contributing to Storybook -Learn about other ways you can contribute to Storybook. - -- [**Contribution overview**](./how-to-contribute.md): General guidance -- [**Code**](./code.md): Features, bug fixes, dependency updates -- [**Docs**](./documentation-updates.md): Typos, clarifications -- [**Addons**](./../addons/introduction.md): Build an addon and share it with the community +- [RFC process](./RFC.md) for authoring feature requests +- [Code](./code.md) for features and bug fixes +- Frameworks to get started with a new framework +- [Documentation](./documentation-updates.md) for documentation improvements, typos, and clarifications +- [Examples](./new-snippets.md) for new snippets and examples diff --git a/docs/contribute/how-to-contribute.md b/docs/contribute/how-to-contribute.md index 4e079a212fcb..35faaa534d55 100644 --- a/docs/contribute/how-to-contribute.md +++ b/docs/contribute/how-to-contribute.md @@ -6,14 +6,16 @@ Storybook is a community-oriented open source project that welcomes contribution ## Contributor covenant -In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.[Continue reading our contributor covenant »](https://github.com/storybookjs/storybook/blob/next/CODE_OF_CONDUCT.md) +In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. [Continue reading our contributor covenant »](https://github.com/storybookjs/storybook/blob/next/CODE_OF_CONDUCT.md) ## Ways to contribute -- [**Code**](./code.md): Features, bug fixes, dependency updates -- [**Docs**](./documentation-updates.md): Typos, clarifications -- [**Addons**](./../addons/introduction.md): Build an addon and share it with the community -- [**Frameworks**](./framework.md): Integrate Storybook with your favorite library +- [**RFC process**](./RFC.md) for authoring feature requests +- [**Code**](./code.md) for features and bug fixes +- [**Frameworks**](./framework.md) to get started with a new framework +- [**Documentation**](./documentation-updates.md) for documentation improvements, typos, and clarifications +- [**Examples**](./new-snippets.md) for new snippets and examples +- [**Addons**](./../addons/introduction.md) for new addons ## Not sure how to get started? diff --git a/docs/contribute/new-snippets.md b/docs/contribute/new-snippets.md index 49bd3a6c8b0a..1698945a64ac 100644 --- a/docs/contribute/new-snippets.md +++ b/docs/contribute/new-snippets.md @@ -126,3 +126,11 @@ Go through the documentation and check your work. ## Submit your contribution Finally, commit, push and open a pull request in the Storybook monorepo. Add a clear description of the work you've done, and one of the maintainers will guide you through the merge process. + +## Learn more about contributing to Storybook + +- [RFC process](./RFC.md) for authoring feature requests +- [Code](./code.md) for features and bug fixes +- [Frameworks](./framework.md) to get started with a new framework +- [Documentation](./documentation-updates.md) for documentation improvements, typos, and clarifications +- [Examples](./new-snippets.md) for new snippets and examples diff --git a/docs/sharing/design-integrations.md b/docs/sharing/design-integrations.md index 1ce35fa81d05..cf2e5ac4934c 100644 --- a/docs/sharing/design-integrations.md +++ b/docs/sharing/design-integrations.md @@ -75,12 +75,6 @@ Run the following command to install the addon. -
- -ℹ️ This addon is still being converted to fully support Storybook 7.0. If you're adding this addon to a Storybook 7.0 instance or migrating from a previous version, you must install the `beta` version. - -
- Update your Storybook configuration (in `.storybook/main.js|ts`) to include the addon. @@ -88,6 +82,7 @@ Update your Storybook configuration (in `.storybook/main.js|ts`) to include the diff --git a/docs/snippets/common/storybook-figma-addon-install.npm.js.mdx b/docs/snippets/common/storybook-figma-addon-install.npm.js.mdx index b09592930ccc..8b4450fcfbeb 100644 --- a/docs/snippets/common/storybook-figma-addon-install.npm.js.mdx +++ b/docs/snippets/common/storybook-figma-addon-install.npm.js.mdx @@ -1,3 +1,3 @@ ```shell -npm install --save-dev storybook-addon-designs@beta +npm install --save-dev @storybook/addon-designs ``` diff --git a/docs/snippets/common/storybook-figma-addon-install.pnpm.js.mdx b/docs/snippets/common/storybook-figma-addon-install.pnpm.js.mdx index deac368cc436..84611d606fb0 100644 --- a/docs/snippets/common/storybook-figma-addon-install.pnpm.js.mdx +++ b/docs/snippets/common/storybook-figma-addon-install.pnpm.js.mdx @@ -1,3 +1,3 @@ ```shell -pnpm add --save-dev storybook-addon-designs@beta +pnpm add --save-dev @storybook/addon-designs ``` diff --git a/docs/snippets/common/storybook-figma-addon-install.yarn.js.mdx b/docs/snippets/common/storybook-figma-addon-install.yarn.js.mdx index 98c343b260ca..188862d539f0 100644 --- a/docs/snippets/common/storybook-figma-addon-install.yarn.js.mdx +++ b/docs/snippets/common/storybook-figma-addon-install.yarn.js.mdx @@ -1,3 +1,3 @@ ```shell -yarn add --dev storybook-addon-designs@beta +yarn add --dev @storybook/addon-designs ``` diff --git a/docs/snippets/common/storybook-main-figma-addon-register.js.mdx b/docs/snippets/common/storybook-main-figma-addon-register.js.mdx index 4f71c0578217..9550e34d64dc 100644 --- a/docs/snippets/common/storybook-main-figma-addon-register.js.mdx +++ b/docs/snippets/common/storybook-main-figma-addon-register.js.mdx @@ -1,11 +1,11 @@ ```js -// .storybook/main.js|ts +// .storybook/main.js export default { stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'], addons: [ // Other Storybook addons - 'storybook-addon-designs', // 👈 Addon is registered here + '@storybook/addon-designs', // 👈 Addon is registered here ], }; ``` diff --git a/docs/snippets/common/storybook-main-figma-addon-register.ts.mdx b/docs/snippets/common/storybook-main-figma-addon-register.ts.mdx new file mode 100644 index 000000000000..be1188d84598 --- /dev/null +++ b/docs/snippets/common/storybook-main-figma-addon-register.ts.mdx @@ -0,0 +1,17 @@ +```ts +// .storybook/main.ts + +// Replace your-framework with the framework you are using (e.g., react-webpack5, vue3-vite) +import type { StorybookConfig } from '@storybook/your-framework'; + +const config: StorybookConfig = { + framework: '@storybook/your-framework', + stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'], + addons: [ + // Other Storybook addons + '@storybook/addon-designs', // 👈 Addon is registered here + ], +}; + +export default config; +``` diff --git a/docs/snippets/react/simple-page-implementation.ts.mdx b/docs/snippets/react/simple-page-implementation.ts.mdx index 913064973839..02629a7a3bb9 100644 --- a/docs/snippets/react/simple-page-implementation.ts.mdx +++ b/docs/snippets/react/simple-page-implementation.ts.mdx @@ -7,13 +7,13 @@ import SubDocuments from './SubDocuments'; import DocumentHeader from './DocumentHeader'; import DocumentList from './DocumentList'; -export interface DocumentScreen { +export interface DocumentScreenProps { user?: {}; document?: Document; subdocuments?: SubDocuments[]; } -function DocumentScreen({ user, document, subdocuments }) { +export function DocumentScreen({ user, document, subdocuments }: DocumentScreenProps) { return ( diff --git a/docs/toc.js b/docs/toc.js index 94175272cbd9..4a1c5d57dad8 100644 --- a/docs/toc.js +++ b/docs/toc.js @@ -680,6 +680,11 @@ module.exports = { title: 'How to', type: 'link', }, + { + pathSegment: 'RFC', + title: 'RFC Process', + type: 'link', + }, { pathSegment: 'code', title: 'Code', diff --git a/docs/versions/next.json b/docs/versions/next.json index 8864525cdf8f..d1e7d215fd35 100644 --- a/docs/versions/next.json +++ b/docs/versions/next.json @@ -1 +1 @@ -{"version":"7.1.0-alpha.44","info":{"plain":"- Next.js: Fix next/image usage in latest Next.js release - [#23296](https://github.com/storybookjs/storybook/pull/23296), thanks [@valentinpalkovic](https://github.com/valentinpalkovic)!"}} +{"version":"7.1.0-beta.2","info":{"plain":"- Next.js: Fix for @nx/react/plugin/storybook with stories containing SVGs - [#23210](https://github.com/storybookjs/storybook/pull/23210), thanks [@daves28](https://github.com/daves28)!\n- Yarn: Downgrade yarnpkg packages and support virtual files properly - [#23354](https://github.com/storybookjs/storybook/pull/23354), thanks [@valentinpalkovic](https://github.com/valentinpalkovic)!"}} diff --git a/scripts/release/__tests__/generate-pr-description.test.ts b/scripts/release/__tests__/generate-pr-description.test.ts index b96d466514ed..06e6a0cf9026 100644 --- a/scripts/release/__tests__/generate-pr-description.test.ts +++ b/scripts/release/__tests__/generate-pr-description.test.ts @@ -24,7 +24,7 @@ describe('Generate PR Description', () => { { // this Bump version commit should be ignored id: null, - user: 'github-actions[bot]', + user: 'storybook-bot', pull: null, commit: '012b58140c3606efeacbe99c0c410624b0a1ed1f', title: 'Bump version on `next`: preminor (alpha) from 7.2.0 to 7.3.0-alpha.0', @@ -33,7 +33,7 @@ describe('Generate PR Description', () => { commit: '[`012b58140c3606efeacbe99c0c410624b0a1ed1f`](https://github.com/storybookjs/storybook/commit/012b58140c3606efeacbe99c0c410624b0a1ed1f)', pull: null, - user: '[@github-actions[bot]](https://github.com/github-actions%5Bbot%5D)', + user: '[@storybook-bot](https://github.com/storybook-bot)', }, }, {