Merge branch 'next' into 16422-fix-chained-expect

This commit is contained in:
Gert Hengeveld 2021-10-26 00:37:01 +02:00
commit 8123b37c9f
98 changed files with 1472 additions and 1283 deletions

View File

@ -1,3 +1,15 @@
## 6.4.0-beta.20 (October 26, 2021)
### Bug Fixes
- Interactions: Do not cleanup state when loading initial story ([#16462](https://github.com/storybookjs/storybook/pull/16462))
- Addon-interactions: Add safety check on fileName parameter ([#16454](https://github.com/storybookjs/storybook/pull/16454))
- Core: Fix optional global features in PreviewWeb ([#16448](https://github.com/storybookjs/storybook/pull/16448))
### Maintenance
- UI: Migrate router to react-router ([#16440](https://github.com/storybookjs/storybook/pull/16440))
## 6.4.0-beta.19 (October 22, 2021)
### Bug Fixes

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-a11y",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Test component compliance with web accessibility standards",
"keywords": [
"a11y",
@ -45,14 +45,14 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "6.4.0-beta.19",
"@storybook/api": "6.4.0-beta.19",
"@storybook/channels": "6.4.0-beta.19",
"@storybook/client-logger": "6.4.0-beta.19",
"@storybook/components": "6.4.0-beta.19",
"@storybook/core-events": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/api": "6.4.0-beta.20",
"@storybook/channels": "6.4.0-beta.20",
"@storybook/client-logger": "6.4.0-beta.20",
"@storybook/components": "6.4.0-beta.20",
"@storybook/core-events": "6.4.0-beta.20",
"@storybook/csf": "0.0.2--canary.87bc651.0",
"@storybook/theming": "6.4.0-beta.19",
"@storybook/theming": "6.4.0-beta.20",
"axe-core": "^4.2.0",
"core-js": "^3.8.2",
"global": "^4.4.0",
@ -81,7 +81,7 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/index.js",
"storybook": {
"displayName": "Accessibility",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-actions",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Get UI feedback when an action is performed on an interactive element",
"keywords": [
"storybook",
@ -41,12 +41,12 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "6.4.0-beta.19",
"@storybook/api": "6.4.0-beta.19",
"@storybook/components": "6.4.0-beta.19",
"@storybook/core-events": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/api": "6.4.0-beta.20",
"@storybook/components": "6.4.0-beta.20",
"@storybook/core-events": "6.4.0-beta.20",
"@storybook/csf": "0.0.2--canary.87bc651.0",
"@storybook/theming": "6.4.0-beta.19",
"@storybook/theming": "6.4.0-beta.20",
"core-js": "^3.8.2",
"fast-deep-equal": "^3.1.3",
"global": "^4.4.0",
@ -79,7 +79,7 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/index.js",
"storybook": {
"displayName": "Actions",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-backgrounds",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Switch backgrounds to view components in different settings",
"keywords": [
"addon",
@ -45,13 +45,13 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "6.4.0-beta.19",
"@storybook/api": "6.4.0-beta.19",
"@storybook/client-logger": "6.4.0-beta.19",
"@storybook/components": "6.4.0-beta.19",
"@storybook/core-events": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/api": "6.4.0-beta.20",
"@storybook/client-logger": "6.4.0-beta.20",
"@storybook/components": "6.4.0-beta.20",
"@storybook/core-events": "6.4.0-beta.20",
"@storybook/csf": "0.0.2--canary.87bc651.0",
"@storybook/theming": "6.4.0-beta.19",
"@storybook/theming": "6.4.0-beta.20",
"core-js": "^3.8.2",
"global": "^4.4.0",
"memoizerific": "^1.11.3",
@ -77,7 +77,7 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/index.js",
"storybook": {
"displayName": "Backgrounds",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-controls",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Interact with component inputs dynamically in the Storybook UI",
"keywords": [
"addon",
@ -45,15 +45,15 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "6.4.0-beta.19",
"@storybook/api": "6.4.0-beta.19",
"@storybook/client-logger": "6.4.0-beta.19",
"@storybook/components": "6.4.0-beta.19",
"@storybook/core-common": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/api": "6.4.0-beta.20",
"@storybook/client-logger": "6.4.0-beta.20",
"@storybook/components": "6.4.0-beta.20",
"@storybook/core-common": "6.4.0-beta.20",
"@storybook/csf": "0.0.2--canary.87bc651.0",
"@storybook/node-logger": "6.4.0-beta.19",
"@storybook/store": "6.4.0-beta.19",
"@storybook/theming": "6.4.0-beta.19",
"@storybook/node-logger": "6.4.0-beta.20",
"@storybook/store": "6.4.0-beta.20",
"@storybook/theming": "6.4.0-beta.20",
"core-js": "^3.8.2",
"lodash": "^4.17.20",
"ts-dedent": "^2.0.0"
@ -73,7 +73,7 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/register.js",
"storybook": {
"displayName": "Controls",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-docs",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Document component usage and properties in Markdown",
"keywords": [
"addon",
@ -63,21 +63,21 @@
"@mdx-js/loader": "^1.6.22",
"@mdx-js/mdx": "^1.6.22",
"@mdx-js/react": "^1.6.22",
"@storybook/addons": "6.4.0-beta.19",
"@storybook/api": "6.4.0-beta.19",
"@storybook/builder-webpack4": "6.4.0-beta.19",
"@storybook/client-logger": "6.4.0-beta.19",
"@storybook/components": "6.4.0-beta.19",
"@storybook/core": "6.4.0-beta.19",
"@storybook/core-events": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/api": "6.4.0-beta.20",
"@storybook/builder-webpack4": "6.4.0-beta.20",
"@storybook/client-logger": "6.4.0-beta.20",
"@storybook/components": "6.4.0-beta.20",
"@storybook/core": "6.4.0-beta.20",
"@storybook/core-events": "6.4.0-beta.20",
"@storybook/csf": "0.0.2--canary.87bc651.0",
"@storybook/csf-tools": "6.4.0-beta.19",
"@storybook/node-logger": "6.4.0-beta.19",
"@storybook/postinstall": "6.4.0-beta.19",
"@storybook/preview-web": "6.4.0-beta.19",
"@storybook/source-loader": "6.4.0-beta.19",
"@storybook/store": "6.4.0-beta.19",
"@storybook/theming": "6.4.0-beta.19",
"@storybook/csf-tools": "6.4.0-beta.20",
"@storybook/node-logger": "6.4.0-beta.20",
"@storybook/postinstall": "6.4.0-beta.20",
"@storybook/preview-web": "6.4.0-beta.20",
"@storybook/source-loader": "6.4.0-beta.20",
"@storybook/store": "6.4.0-beta.20",
"@storybook/theming": "6.4.0-beta.20",
"acorn": "^7.4.1",
"acorn-jsx": "^5.3.1",
"acorn-walk": "^7.2.0",
@ -106,11 +106,11 @@
"@babel/core": "^7.12.10",
"@emotion/core": "^10.1.1",
"@emotion/styled": "^10.0.27",
"@storybook/angular": "6.4.0-beta.19",
"@storybook/html": "6.4.0-beta.19",
"@storybook/react": "6.4.0-beta.19",
"@storybook/vue": "6.4.0-beta.19",
"@storybook/web-components": "6.4.0-beta.19",
"@storybook/angular": "6.4.0-beta.20",
"@storybook/html": "6.4.0-beta.20",
"@storybook/react": "6.4.0-beta.20",
"@storybook/vue": "6.4.0-beta.20",
"@storybook/web-components": "6.4.0-beta.20",
"@types/cross-spawn": "^6.0.2",
"@types/doctrine": "^0.0.3",
"@types/enzyme": "^3.10.8",
@ -140,12 +140,12 @@
"zone.js": "^0.11.3"
},
"peerDependencies": {
"@storybook/angular": "6.4.0-beta.19",
"@storybook/html": "6.4.0-beta.19",
"@storybook/react": "6.4.0-beta.19",
"@storybook/vue": "6.4.0-beta.19",
"@storybook/vue3": "6.4.0-beta.19",
"@storybook/web-components": "6.4.0-beta.19",
"@storybook/angular": "6.4.0-beta.20",
"@storybook/html": "6.4.0-beta.20",
"@storybook/react": "6.4.0-beta.20",
"@storybook/vue": "6.4.0-beta.20",
"@storybook/vue3": "6.4.0-beta.20",
"@storybook/web-components": "6.4.0-beta.20",
"lit": "^2.0.0-rc.1",
"lit-html": "^1.4.1 || ^2.0.0-rc.3",
"react": "^16.8.0 || ^17.0.0",
@ -202,7 +202,7 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/index.js",
"storybook": {
"displayName": "Docs",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-essentials",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Curated addons to bring out the best of Storybook",
"keywords": [
"addon",
@ -39,31 +39,31 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addon-actions": "6.4.0-beta.19",
"@storybook/addon-backgrounds": "6.4.0-beta.19",
"@storybook/addon-controls": "6.4.0-beta.19",
"@storybook/addon-docs": "6.4.0-beta.19",
"@storybook/addon-measure": "6.4.0-beta.19",
"@storybook/addon-outline": "6.4.0-beta.19",
"@storybook/addon-toolbars": "6.4.0-beta.19",
"@storybook/addon-viewport": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.19",
"@storybook/api": "6.4.0-beta.19",
"@storybook/node-logger": "6.4.0-beta.19",
"@storybook/addon-actions": "6.4.0-beta.20",
"@storybook/addon-backgrounds": "6.4.0-beta.20",
"@storybook/addon-controls": "6.4.0-beta.20",
"@storybook/addon-docs": "6.4.0-beta.20",
"@storybook/addon-measure": "6.4.0-beta.20",
"@storybook/addon-outline": "6.4.0-beta.20",
"@storybook/addon-toolbars": "6.4.0-beta.20",
"@storybook/addon-viewport": "6.4.0-beta.20",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/api": "6.4.0-beta.20",
"@storybook/node-logger": "6.4.0-beta.20",
"core-js": "^3.8.2",
"regenerator-runtime": "^0.13.7",
"ts-dedent": "^2.0.0"
},
"devDependencies": {
"@babel/core": "^7.12.10",
"@storybook/vue": "6.4.0-beta.19",
"@storybook/vue": "6.4.0-beta.20",
"@types/jest": "^26.0.16",
"@types/webpack-env": "^1.16.0"
},
"peerDependencies": {
"@babel/core": "^7.9.6",
"@storybook/vue": "6.4.0-beta.19",
"@storybook/web-components": "6.4.0-beta.19",
"@storybook/vue": "6.4.0-beta.20",
"@storybook/web-components": "6.4.0-beta.20",
"babel-loader": "^8.0.0",
"lit-html": "^1.4.1 || ^2.0.0-rc.3",
"react": "^16.8.0 || ^17.0.0",
@ -93,6 +93,6 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/index.js"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-interactions",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Automate, test and debug user interactions",
"keywords": [
"storybook-addons",
@ -41,14 +41,14 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "6.4.0-beta.19",
"@storybook/api": "6.4.0-beta.19",
"@storybook/components": "6.4.0-beta.19",
"@storybook/core-common": "6.4.0-beta.19",
"@storybook/core-events": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/api": "6.4.0-beta.20",
"@storybook/components": "6.4.0-beta.20",
"@storybook/core-common": "6.4.0-beta.20",
"@storybook/core-events": "6.4.0-beta.20",
"@storybook/csf": "0.0.2--canary.87bc651.0",
"@storybook/instrumenter": "6.4.0-beta.19",
"@storybook/theming": "6.4.0-beta.19",
"@storybook/instrumenter": "6.4.0-beta.20",
"@storybook/theming": "6.4.0-beta.20",
"global": "^4.4.0",
"jest-mock": "^27.0.6",
"polished": "^4.0.5",
@ -74,7 +74,7 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/index.js",
"storybook": {
"displayName": "Interactions",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-jest",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "React storybook addon that show component jest report",
"keywords": [
"addon",
@ -47,11 +47,11 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "6.4.0-beta.19",
"@storybook/api": "6.4.0-beta.19",
"@storybook/components": "6.4.0-beta.19",
"@storybook/core-events": "6.4.0-beta.19",
"@storybook/theming": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/api": "6.4.0-beta.20",
"@storybook/components": "6.4.0-beta.20",
"@storybook/core-events": "6.4.0-beta.20",
"@storybook/theming": "6.4.0-beta.20",
"core-js": "^3.8.2",
"global": "^4.4.0",
"react-sizeme": "^3.0.1",
@ -76,7 +76,7 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/index.js",
"storybook": {
"displayName": "Jest",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-links",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Link stories together to build demos and prototypes with your UI components",
"keywords": [
"addon",
@ -41,11 +41,11 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "6.4.0-beta.19",
"@storybook/client-logger": "6.4.0-beta.19",
"@storybook/core-events": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/client-logger": "6.4.0-beta.20",
"@storybook/core-events": "6.4.0-beta.20",
"@storybook/csf": "0.0.2--canary.87bc651.0",
"@storybook/router": "6.4.0-beta.19",
"@storybook/router": "6.4.0-beta.20",
"@types/qs": "^6.9.5",
"core-js": "^3.8.2",
"global": "^4.4.0",
@ -72,7 +72,7 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/index.js",
"storybook": {
"displayName": "Links",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-measure",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Inspect layouts by visualizing the box model",
"keywords": [
"storybook-addons",
@ -44,11 +44,11 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "6.4.0-beta.19",
"@storybook/api": "6.4.0-beta.19",
"@storybook/client-logger": "6.4.0-beta.19",
"@storybook/components": "6.4.0-beta.19",
"@storybook/core-events": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/api": "6.4.0-beta.20",
"@storybook/client-logger": "6.4.0-beta.20",
"@storybook/components": "6.4.0-beta.20",
"@storybook/core-events": "6.4.0-beta.20",
"@storybook/csf": "0.0.2--canary.87bc651.0",
"core-js": "^3.8.2",
"global": "^4.4.0"
@ -71,7 +71,7 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/index.js",
"storybook": {
"displayName": "Measure",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-outline",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Outline all elements with CSS to help with layout placement and alignment",
"keywords": [
"storybook-addons",
@ -47,11 +47,11 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "6.4.0-beta.19",
"@storybook/api": "6.4.0-beta.19",
"@storybook/client-logger": "6.4.0-beta.19",
"@storybook/components": "6.4.0-beta.19",
"@storybook/core-events": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/api": "6.4.0-beta.20",
"@storybook/client-logger": "6.4.0-beta.20",
"@storybook/components": "6.4.0-beta.20",
"@storybook/core-events": "6.4.0-beta.20",
"@storybook/csf": "0.0.2--canary.87bc651.0",
"core-js": "^3.8.2",
"global": "^4.4.0",
@ -76,7 +76,7 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/index.js",
"storybook": {
"displayName": "Outline",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-storyshots",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Take a code snapshot of every story automatically with Jest",
"keywords": [
"addon",
@ -45,11 +45,11 @@
},
"dependencies": {
"@jest/transform": "^26.6.2",
"@storybook/addons": "6.4.0-beta.19",
"@storybook/client-api": "6.4.0-beta.19",
"@storybook/core": "6.4.0-beta.19",
"@storybook/core-client": "6.4.0-beta.19",
"@storybook/core-common": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/client-api": "6.4.0-beta.20",
"@storybook/core": "6.4.0-beta.20",
"@storybook/core-client": "6.4.0-beta.20",
"@storybook/core-common": "6.4.0-beta.20",
"@storybook/csf": "0.0.2--canary.87bc651.0",
"@types/glob": "^7.1.3",
"@types/jest": "^26.0.16",
@ -69,11 +69,11 @@
"devDependencies": {
"@angular/core": "^11.2.0",
"@angular/platform-browser-dynamic": "^11.2.0",
"@storybook/addon-docs": "6.4.0-beta.19",
"@storybook/angular": "6.4.0-beta.19",
"@storybook/react": "6.4.0-beta.19",
"@storybook/vue": "6.4.0-beta.19",
"@storybook/vue3": "6.4.0-beta.19",
"@storybook/addon-docs": "6.4.0-beta.20",
"@storybook/angular": "6.4.0-beta.20",
"@storybook/react": "6.4.0-beta.20",
"@storybook/vue": "6.4.0-beta.20",
"@storybook/vue3": "6.4.0-beta.20",
"babel-loader": "^8.0.0",
"enzyme": "^3.11.0",
"enzyme-to-json": "^3.6.1",
@ -151,7 +151,7 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"storybook": {
"displayName": "Storyshots",
"icon": "https://user-images.githubusercontent.com/263385/101991676-48cdf300-3c7c-11eb-8aa1-944dab6ab29b.png",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-storyshots-puppeteer",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Image snapshots addition to StoryShots based on puppeteer",
"keywords": [
"addon",
@ -42,7 +42,7 @@
"dependencies": {
"@axe-core/puppeteer": "^4.2.0",
"@storybook/csf": "0.0.2--canary.87bc651.0",
"@storybook/node-logger": "6.4.0-beta.19",
"@storybook/node-logger": "6.4.0-beta.20",
"@types/jest-image-snapshot": "^4.1.3",
"core-js": "^3.8.2",
"jest-image-snapshot": "^4.3.0",
@ -53,7 +53,7 @@
"@types/puppeteer": "^5.4.0"
},
"peerDependencies": {
"@storybook/addon-storyshots": "6.4.0-beta.19",
"@storybook/addon-storyshots": "6.4.0-beta.20",
"puppeteer": "^2.0.0 || ^3.0.0"
},
"peerDependenciesMeta": {
@ -64,5 +64,5 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d"
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-storysource",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "View a storys source code to see how it works and paste into your app",
"keywords": [
"addon",
@ -41,13 +41,13 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "6.4.0-beta.19",
"@storybook/api": "6.4.0-beta.19",
"@storybook/client-logger": "6.4.0-beta.19",
"@storybook/components": "6.4.0-beta.19",
"@storybook/router": "6.4.0-beta.19",
"@storybook/source-loader": "6.4.0-beta.19",
"@storybook/theming": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/api": "6.4.0-beta.20",
"@storybook/client-logger": "6.4.0-beta.20",
"@storybook/components": "6.4.0-beta.20",
"@storybook/router": "6.4.0-beta.20",
"@storybook/source-loader": "6.4.0-beta.20",
"@storybook/theming": "6.4.0-beta.20",
"core-js": "^3.8.2",
"estraverse": "^5.2.0",
"loader-utils": "^2.0.0",
@ -75,7 +75,7 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/index.js",
"storybook": {
"displayName": "Storysource",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-toolbars",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Create your own toolbar items that control story rendering",
"keywords": [
"addon",
@ -45,10 +45,10 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "6.4.0-beta.19",
"@storybook/api": "6.4.0-beta.19",
"@storybook/components": "6.4.0-beta.19",
"@storybook/theming": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/api": "6.4.0-beta.20",
"@storybook/components": "6.4.0-beta.20",
"@storybook/theming": "6.4.0-beta.20",
"core-js": "^3.8.2",
"regenerator-runtime": "^0.13.7"
},
@ -67,7 +67,7 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/register.js",
"storybook": {
"displayName": "Toolbars",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-viewport",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Build responsive components by adjusting Storybooks viewport size and orientation",
"keywords": [
"addon",
@ -42,12 +42,12 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "6.4.0-beta.19",
"@storybook/api": "6.4.0-beta.19",
"@storybook/client-logger": "6.4.0-beta.19",
"@storybook/components": "6.4.0-beta.19",
"@storybook/core-events": "6.4.0-beta.19",
"@storybook/theming": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/api": "6.4.0-beta.20",
"@storybook/client-logger": "6.4.0-beta.20",
"@storybook/components": "6.4.0-beta.20",
"@storybook/core-events": "6.4.0-beta.20",
"@storybook/theming": "6.4.0-beta.20",
"core-js": "^3.8.2",
"global": "^4.4.0",
"memoizerific": "^1.11.3",
@ -69,7 +69,7 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/preview.js",
"storybook": {
"displayName": "Viewport",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/angular",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Storybook for Angular: Develop Angular Components in isolation with Hot Reloading.",
"keywords": [
"storybook"
@ -45,14 +45,14 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "6.4.0-beta.19",
"@storybook/api": "6.4.0-beta.19",
"@storybook/core": "6.4.0-beta.19",
"@storybook/core-common": "6.4.0-beta.19",
"@storybook/core-events": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/api": "6.4.0-beta.20",
"@storybook/core": "6.4.0-beta.20",
"@storybook/core-common": "6.4.0-beta.20",
"@storybook/core-events": "6.4.0-beta.20",
"@storybook/csf": "0.0.2--canary.87bc651.0",
"@storybook/node-logger": "6.4.0-beta.19",
"@storybook/store": "6.4.0-beta.19",
"@storybook/node-logger": "6.4.0-beta.20",
"@storybook/store": "6.4.0-beta.20",
"@types/webpack-env": "^1.16.0",
"autoprefixer": "^9.8.6",
"core-js": "^3.8.2",
@ -131,5 +131,5 @@
"access": "public"
},
"builders": "dist/ts3.9/builders/builders.json",
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d"
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/ember",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Storybook for Ember: Develop Ember Component in isolation with Hot Reloading.",
"homepage": "https://github.com/storybookjs/storybook/tree/main/app/ember",
"bugs": {
@ -43,9 +43,9 @@
},
"dependencies": {
"@ember/test-helpers": "^2.1.4",
"@storybook/core": "6.4.0-beta.19",
"@storybook/core-common": "6.4.0-beta.19",
"@storybook/store": "6.4.0-beta.19",
"@storybook/core": "6.4.0-beta.20",
"@storybook/core-common": "6.4.0-beta.20",
"@storybook/store": "6.4.0-beta.20",
"core-js": "^3.8.2",
"global": "^4.4.0",
"react": "16.14.0",
@ -66,6 +66,6 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/client/index.js"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/html",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Storybook for HTML: View HTML snippets in isolation with Hot Reloading.",
"keywords": [
"storybook"
@ -45,13 +45,13 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "6.4.0-beta.19",
"@storybook/client-api": "6.4.0-beta.19",
"@storybook/core": "6.4.0-beta.19",
"@storybook/core-common": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/client-api": "6.4.0-beta.20",
"@storybook/core": "6.4.0-beta.20",
"@storybook/core-common": "6.4.0-beta.20",
"@storybook/csf": "0.0.2--canary.87bc651.0",
"@storybook/preview-web": "6.4.0-beta.19",
"@storybook/store": "6.4.0-beta.19",
"@storybook/preview-web": "6.4.0-beta.20",
"@storybook/store": "6.4.0-beta.20",
"@types/webpack-env": "^1.16.0",
"core-js": "^3.8.2",
"global": "^4.4.0",
@ -71,6 +71,6 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/client/index.js"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/preact",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Storybook for Preact: Develop Preact Component in isolation.",
"keywords": [
"storybook"
@ -46,11 +46,11 @@
},
"dependencies": {
"@babel/plugin-transform-react-jsx": "^7.12.12",
"@storybook/addons": "6.4.0-beta.19",
"@storybook/core": "6.4.0-beta.19",
"@storybook/core-common": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/core": "6.4.0-beta.20",
"@storybook/core-common": "6.4.0-beta.20",
"@storybook/csf": "0.0.2--canary.87bc651.0",
"@storybook/store": "6.4.0-beta.19",
"@storybook/store": "6.4.0-beta.20",
"@types/webpack-env": "^1.16.0",
"core-js": "^3.8.2",
"global": "^4.4.0",
@ -74,6 +74,6 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/client/index.js"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/react",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Storybook for React: Develop React Component in isolation with Hot Reloading.",
"keywords": [
"storybook"
@ -49,14 +49,14 @@
"@babel/preset-flow": "^7.12.1",
"@babel/preset-react": "^7.12.10",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.1",
"@storybook/addons": "6.4.0-beta.19",
"@storybook/core": "6.4.0-beta.19",
"@storybook/core-common": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/core": "6.4.0-beta.20",
"@storybook/core-common": "6.4.0-beta.20",
"@storybook/csf": "0.0.2--canary.87bc651.0",
"@storybook/node-logger": "6.4.0-beta.19",
"@storybook/node-logger": "6.4.0-beta.20",
"@storybook/react-docgen-typescript-plugin": "1.0.2-canary.253f8c1.0",
"@storybook/semver": "^7.3.2",
"@storybook/store": "6.4.0-beta.19",
"@storybook/store": "6.4.0-beta.20",
"@types/webpack-env": "^1.16.0",
"babel-plugin-add-react-displayname": "^0.0.5",
"babel-plugin-named-asset-import": "^0.3.1",
@ -73,7 +73,7 @@
"webpack": "4"
},
"devDependencies": {
"@storybook/client-api": "6.4.0-beta.19",
"@storybook/client-api": "6.4.0-beta.20",
"@types/node": "^14.14.20",
"@types/prompts": "^2.0.9"
},
@ -96,6 +96,6 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/client/index.js"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/server",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Storybook for Server: View HTML snippets from a server in isolation with Hot Reloading.",
"keywords": [
"storybook"
@ -45,15 +45,15 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "6.4.0-beta.19",
"@storybook/api": "6.4.0-beta.19",
"@storybook/client-api": "6.4.0-beta.19",
"@storybook/core": "6.4.0-beta.19",
"@storybook/core-common": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/api": "6.4.0-beta.20",
"@storybook/client-api": "6.4.0-beta.20",
"@storybook/core": "6.4.0-beta.20",
"@storybook/core-common": "6.4.0-beta.20",
"@storybook/csf": "0.0.2--canary.87bc651.0",
"@storybook/node-logger": "6.4.0-beta.19",
"@storybook/preview-web": "6.4.0-beta.19",
"@storybook/store": "6.4.0-beta.19",
"@storybook/node-logger": "6.4.0-beta.20",
"@storybook/preview-web": "6.4.0-beta.20",
"@storybook/store": "6.4.0-beta.20",
"@types/webpack-env": "^1.16.0",
"core-js": "^3.8.2",
"global": "^4.4.0",
@ -75,6 +75,6 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/client/index.js"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/svelte",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Storybook for Svelte: Develop Svelte Component in isolation with Hot Reloading.",
"keywords": [
"storybook"
@ -45,11 +45,11 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "6.4.0-beta.19",
"@storybook/core": "6.4.0-beta.19",
"@storybook/core-common": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/core": "6.4.0-beta.20",
"@storybook/core-common": "6.4.0-beta.20",
"@storybook/csf": "0.0.2--canary.87bc651.0",
"@storybook/store": "6.4.0-beta.19",
"@storybook/store": "6.4.0-beta.20",
"core-js": "^3.8.2",
"global": "^4.4.0",
"react": "16.14.0",
@ -75,6 +75,6 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/client/index.js"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/vue",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Storybook for Vue: Develop Vue Component in isolation with Hot Reloading.",
"keywords": [
"storybook"
@ -45,11 +45,11 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "6.4.0-beta.19",
"@storybook/core": "6.4.0-beta.19",
"@storybook/core-common": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/core": "6.4.0-beta.20",
"@storybook/core-common": "6.4.0-beta.20",
"@storybook/csf": "0.0.2--canary.87bc651.0",
"@storybook/store": "6.4.0-beta.19",
"@storybook/store": "6.4.0-beta.20",
"@types/webpack-env": "^1.16.0",
"core-js": "^3.8.2",
"global": "^4.4.0",
@ -83,6 +83,6 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/client/index.js"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/vue3",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Storybook for Vue 3: Develop Vue 3 Components in isolation with Hot Reloading.",
"keywords": [
"storybook"
@ -45,11 +45,11 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "6.4.0-beta.19",
"@storybook/core": "6.4.0-beta.19",
"@storybook/core-common": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/core": "6.4.0-beta.20",
"@storybook/core-common": "6.4.0-beta.20",
"@storybook/csf": "0.0.2--canary.87bc651.0",
"@storybook/store": "6.4.0-beta.19",
"@storybook/store": "6.4.0-beta.20",
"@types/webpack-env": "^1.16.0",
"core-js": "^3.8.2",
"global": "^4.4.0",
@ -81,6 +81,6 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/client/index.js"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/web-components",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Storybook for web-components: View web components snippets in isolation with Hot Reloading.",
"keywords": [
"lit-html",
@ -50,13 +50,13 @@
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-syntax-import-meta": "^7.10.4",
"@babel/preset-env": "^7.12.11",
"@storybook/addons": "6.4.0-beta.19",
"@storybook/client-api": "6.4.0-beta.19",
"@storybook/core": "6.4.0-beta.19",
"@storybook/core-common": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/client-api": "6.4.0-beta.20",
"@storybook/core": "6.4.0-beta.20",
"@storybook/core-common": "6.4.0-beta.20",
"@storybook/csf": "0.0.2--canary.87bc651.0",
"@storybook/preview-web": "6.4.0-beta.19",
"@storybook/store": "6.4.0-beta.19",
"@storybook/preview-web": "6.4.0-beta.20",
"@storybook/store": "6.4.0-beta.20",
"@types/webpack-env": "^1.16.0",
"babel-plugin-bundled-import-meta": "^0.3.1",
"core-js": "^3.8.2",
@ -79,6 +79,6 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/client/index.js"
}

View File

@ -2,7 +2,7 @@
title: 'TypeScript'
---
Storybook has built-in Typescript support, so your Typescript project should work with zero configuration needed.
Storybook has built-in Typescript support, so your Typescript project should work with zero configuration needed [unless you use the `paths` option in your TSConfig.](./webpack#typescript-module-resolution)
### Default configuration
@ -30,14 +30,12 @@ The following code snippets shows the fields for you to use with TypeScript:
<!-- prettier-ignore-end -->
| Field | Framework | Description | Type |
| :------------------------------- | :-------- | :------------------------------------------------------------------------------------------ | :----------------------------------------------------------------------------------------------------- |
| **check** | All | Optionally run fork-ts-checker-webpack-plugin | boolean |
| Field | Framework | Description | Type |
| :------------------------------- | :-------- | :------------------------------------------------------------------------------------------ | :---------------------------------------------------------------------------------------------------------------- |
| **check** | All | Optionally run fork-ts-checker-webpack-plugin | boolean |
| **checkOptions** | All | Options to pass to fork-ts-checker-webpack-plugin if it's enabled | <a href="https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/blob/v4.1.6/README.md#options">See Docs</a> |
| **reactDocgen** | React | Which react docgen processor to run: `"react-docgen-typescript"`, `"react-docgen"`, `false` | string or false |
| **reactDocgenTypescriptOptions** | React | Options to pass to react-docgen-typescript-plugin if react-docgen-typescript is enabled. | [See docs](https://github.com/hipstersmoothie/react-docgen-typescript-plugin) |
| **reactDocgen** | React | Which react docgen processor to run: `"react-docgen-typescript"`, `"react-docgen"`, `false` | string or false |
| **reactDocgenTypescriptOptions** | React | Options to pass to react-docgen-typescript-plugin if react-docgen-typescript is enabled. | [See docs](https://github.com/hipstersmoothie/react-docgen-typescript-plugin) |
### Overriding the configuration to infer additional props
@ -61,4 +59,4 @@ Next time you restart your Storybook the extra props will also be in the UI.
<div class="aside">
If you run into an issue where the extra props aren't included, check how your component is being exported. If it's using a default export, change it to a named export and the extra props will be included as well.
</div>
</div>

View File

@ -1 +1 @@
{"version":"6.4.0-beta.19","info":{"plain":"### Bug Fixes\n\n- Core: Fix some slashes for windows ([#16445](https://github.com/storybookjs/storybook/pull/16445))\n\n### Maintenance\n\n- Core: Add typing for StorybookConfig.refs ([#16443](https://github.com/storybookjs/storybook/pull/16443))"}}
{"version":"6.4.0-beta.20","info":{"plain":"### Bug Fixes\n\n- Interactions: Do not cleanup state when loading initial story ([#16462](https://github.com/storybookjs/storybook/pull/16462))\n- Addon-interactions: Add safety check on fileName parameter ([#16454](https://github.com/storybookjs/storybook/pull/16454))\n- Core: Fix optional global features in PreviewWeb ([#16448](https://github.com/storybookjs/storybook/pull/16448))\n\n### Maintenance\n\n- UI: Migrate router to react-router ([#16440](https://github.com/storybookjs/storybook/pull/16440))"}}

View File

@ -1,6 +1,6 @@
{
"name": "angular-cli",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"private": true,
"license": "MIT",
"scripts": {
@ -39,20 +39,20 @@
"@angular/compiler-cli": "^11.2.14",
"@angular/elements": "^11.2.14",
"@compodoc/compodoc": "^1.1.14",
"@storybook/addon-a11y": "6.4.0-beta.19",
"@storybook/addon-actions": "6.4.0-beta.19",
"@storybook/addon-backgrounds": "6.4.0-beta.19",
"@storybook/addon-controls": "6.4.0-beta.19",
"@storybook/addon-docs": "6.4.0-beta.19",
"@storybook/addon-interactions": "6.4.0-beta.19",
"@storybook/addon-jest": "6.4.0-beta.19",
"@storybook/addon-links": "6.4.0-beta.19",
"@storybook/addon-storyshots": "6.4.0-beta.19",
"@storybook/addon-storysource": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.19",
"@storybook/angular": "6.4.0-beta.19",
"@storybook/addon-a11y": "6.4.0-beta.20",
"@storybook/addon-actions": "6.4.0-beta.20",
"@storybook/addon-backgrounds": "6.4.0-beta.20",
"@storybook/addon-controls": "6.4.0-beta.20",
"@storybook/addon-docs": "6.4.0-beta.20",
"@storybook/addon-interactions": "6.4.0-beta.20",
"@storybook/addon-jest": "6.4.0-beta.20",
"@storybook/addon-links": "6.4.0-beta.20",
"@storybook/addon-storyshots": "6.4.0-beta.20",
"@storybook/addon-storysource": "6.4.0-beta.20",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/angular": "6.4.0-beta.20",
"@storybook/jest": "^0.0.2",
"@storybook/source-loader": "6.4.0-beta.19",
"@storybook/source-loader": "6.4.0-beta.20",
"@storybook/testing-library": "^0.0.3",
"@types/core-js": "^2.5.4",
"@types/jest": "^26.0.16",

View File

@ -1,6 +1,6 @@
{
"name": "cra-kitchen-sink",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"private": true,
"scripts": {
"build": "react-scripts build",
@ -11,7 +11,7 @@
"test": "react-scripts test --env=jsdom"
},
"dependencies": {
"@storybook/client-logger": "6.4.0-beta.19",
"@storybook/client-logger": "6.4.0-beta.20",
"global": "^4.4.0",
"prop-types": "^15.7.2",
"react": "16.14.0",
@ -21,19 +21,19 @@
},
"devDependencies": {
"@pmmmwh/react-refresh-webpack-plugin": "^0.4.3",
"@storybook/addon-a11y": "6.4.0-beta.19",
"@storybook/addon-actions": "6.4.0-beta.19",
"@storybook/addon-backgrounds": "6.4.0-beta.19",
"@storybook/addon-docs": "6.4.0-beta.19",
"@storybook/addon-a11y": "6.4.0-beta.20",
"@storybook/addon-actions": "6.4.0-beta.20",
"@storybook/addon-backgrounds": "6.4.0-beta.20",
"@storybook/addon-docs": "6.4.0-beta.20",
"@storybook/addon-ie11": "0.0.7--canary.5e87b64.0",
"@storybook/addon-jest": "6.4.0-beta.19",
"@storybook/addon-links": "6.4.0-beta.19",
"@storybook/addon-storyshots": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.19",
"@storybook/builder-webpack4": "6.4.0-beta.19",
"@storybook/addon-jest": "6.4.0-beta.20",
"@storybook/addon-links": "6.4.0-beta.20",
"@storybook/addon-storyshots": "6.4.0-beta.20",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/builder-webpack4": "6.4.0-beta.20",
"@storybook/preset-create-react-app": "^3.1.6",
"@storybook/react": "6.4.0-beta.19",
"@storybook/theming": "6.4.0-beta.19",
"@storybook/react": "6.4.0-beta.20",
"@storybook/theming": "6.4.0-beta.20",
"webpack": "4"
},
"storybook": {

View File

@ -1,6 +1,6 @@
{
"name": "cra-react15",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"private": true,
"scripts": {
"build": "react-scripts build",
@ -19,14 +19,14 @@
"react-scripts": "3.4.4"
},
"devDependencies": {
"@storybook/addon-actions": "6.4.0-beta.19",
"@storybook/addon-actions": "6.4.0-beta.20",
"@storybook/addon-ie11": "0.0.7--canary.5e87b64.0",
"@storybook/addon-links": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.19",
"@storybook/builder-webpack4": "6.4.0-beta.19",
"@storybook/addon-links": "6.4.0-beta.20",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/builder-webpack4": "6.4.0-beta.20",
"@storybook/preset-create-react-app": "^3.1.6",
"@storybook/react": "6.4.0-beta.19",
"@storybook/theming": "6.4.0-beta.19",
"@storybook/react": "6.4.0-beta.20",
"@storybook/theming": "6.4.0-beta.20",
"babel-core": "6",
"babel-runtime": "6",
"webpack": "4"

View File

@ -1,6 +1,6 @@
{
"name": "cra-ts-essentials",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"private": true,
"scripts": {
"build": "react-scripts build",
@ -34,12 +34,12 @@
"typescript": "^3.9.7"
},
"devDependencies": {
"@storybook/addon-essentials": "6.4.0-beta.19",
"@storybook/addon-essentials": "6.4.0-beta.20",
"@storybook/addon-ie11": "0.0.7--canary.5e87b64.0",
"@storybook/addons": "6.4.0-beta.19",
"@storybook/builder-webpack4": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/builder-webpack4": "6.4.0-beta.20",
"@storybook/preset-create-react-app": "^3.1.6",
"@storybook/react": "6.4.0-beta.19",
"@storybook/react": "6.4.0-beta.20",
"webpack": "4"
},
"storybook": {

View File

@ -1,6 +1,6 @@
{
"name": "cra-ts-kitchen-sink",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"private": true,
"scripts": {
"build": "react-scripts build",
@ -34,15 +34,15 @@
"typescript": "^3.9.7"
},
"devDependencies": {
"@storybook/addon-a11y": "6.4.0-beta.19",
"@storybook/addon-actions": "6.4.0-beta.19",
"@storybook/addon-docs": "6.4.0-beta.19",
"@storybook/addon-a11y": "6.4.0-beta.20",
"@storybook/addon-actions": "6.4.0-beta.20",
"@storybook/addon-docs": "6.4.0-beta.20",
"@storybook/addon-ie11": "0.0.7--canary.5e87b64.0",
"@storybook/addon-links": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.19",
"@storybook/builder-webpack4": "6.4.0-beta.19",
"@storybook/addon-links": "6.4.0-beta.20",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/builder-webpack4": "6.4.0-beta.20",
"@storybook/preset-create-react-app": "^3.1.6",
"@storybook/react": "6.4.0-beta.19",
"@storybook/react": "6.4.0-beta.20",
"@types/enzyme": "^3.10.8",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.9.1",

View File

@ -1,6 +1,6 @@
{
"name": "ember-example",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"private": true,
"scripts": {
"build": "ember build --output-path ember-output",
@ -17,18 +17,18 @@
"devDependencies": {
"@babel/core": "^7.12.10",
"@ember/optional-features": "^2.0.0",
"@storybook/addon-a11y": "6.4.0-beta.19",
"@storybook/addon-actions": "6.4.0-beta.19",
"@storybook/addon-backgrounds": "6.4.0-beta.19",
"@storybook/addon-controls": "6.4.0-beta.19",
"@storybook/addon-docs": "6.4.0-beta.19",
"@storybook/addon-links": "6.4.0-beta.19",
"@storybook/addon-storysource": "6.4.0-beta.19",
"@storybook/addon-viewport": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.19",
"@storybook/ember": "6.4.0-beta.19",
"@storybook/addon-a11y": "6.4.0-beta.20",
"@storybook/addon-actions": "6.4.0-beta.20",
"@storybook/addon-backgrounds": "6.4.0-beta.20",
"@storybook/addon-controls": "6.4.0-beta.20",
"@storybook/addon-docs": "6.4.0-beta.20",
"@storybook/addon-links": "6.4.0-beta.20",
"@storybook/addon-storysource": "6.4.0-beta.20",
"@storybook/addon-viewport": "6.4.0-beta.20",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/ember": "6.4.0-beta.20",
"@storybook/ember-cli-storybook": "^0.2.1",
"@storybook/source-loader": "6.4.0-beta.19",
"@storybook/source-loader": "6.4.0-beta.20",
"babel-loader": "^8.0.0",
"broccoli-asset-rev": "^3.0.0",
"cross-env": "^7.0.3",

View File

@ -1,6 +1,6 @@
{
"name": "html-kitchen-sink",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"private": true,
"description": "",
"keywords": [],
@ -13,23 +13,23 @@
"storybook": "start-storybook -p 9006 --no-manager-cache"
},
"devDependencies": {
"@storybook/addon-a11y": "6.4.0-beta.19",
"@storybook/addon-actions": "6.4.0-beta.19",
"@storybook/addon-backgrounds": "6.4.0-beta.19",
"@storybook/addon-controls": "6.4.0-beta.19",
"@storybook/addon-docs": "6.4.0-beta.19",
"@storybook/addon-jest": "6.4.0-beta.19",
"@storybook/addon-links": "6.4.0-beta.19",
"@storybook/addon-a11y": "6.4.0-beta.20",
"@storybook/addon-actions": "6.4.0-beta.20",
"@storybook/addon-backgrounds": "6.4.0-beta.20",
"@storybook/addon-controls": "6.4.0-beta.20",
"@storybook/addon-docs": "6.4.0-beta.20",
"@storybook/addon-jest": "6.4.0-beta.20",
"@storybook/addon-links": "6.4.0-beta.20",
"@storybook/addon-postcss": "^2.0.0",
"@storybook/addon-storyshots": "6.4.0-beta.19",
"@storybook/addon-storysource": "6.4.0-beta.19",
"@storybook/addon-viewport": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.19",
"@storybook/client-api": "6.4.0-beta.19",
"@storybook/core": "6.4.0-beta.19",
"@storybook/core-events": "6.4.0-beta.19",
"@storybook/html": "6.4.0-beta.19",
"@storybook/source-loader": "6.4.0-beta.19",
"@storybook/addon-storyshots": "6.4.0-beta.20",
"@storybook/addon-storysource": "6.4.0-beta.20",
"@storybook/addon-viewport": "6.4.0-beta.20",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/client-api": "6.4.0-beta.20",
"@storybook/core": "6.4.0-beta.20",
"@storybook/core-events": "6.4.0-beta.20",
"@storybook/html": "6.4.0-beta.20",
"@storybook/source-loader": "6.4.0-beta.20",
"autoprefixer": "^10.0.1",
"eventemitter3": "^4.0.7",
"format-json": "^1.0.3",

View File

@ -1,6 +1,6 @@
{
"name": "official-storybook",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"private": true,
"scripts": {
"build-storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true build-storybook -c ./",
@ -14,30 +14,31 @@
"devDependencies": {
"@packtracker/webpack-plugin": "^2.3.0",
"@pmmmwh/react-refresh-webpack-plugin": "^0.4.3",
"@storybook/addon-a11y": "6.4.0-beta.19",
"@storybook/addon-actions": "6.4.0-beta.19",
"@storybook/addon-backgrounds": "6.4.0-beta.19",
"@storybook/addon-controls": "6.4.0-beta.19",
"@storybook/addon-docs": "6.4.0-beta.19",
"@storybook/addon-interactions": "6.4.0-beta.19",
"@storybook/addon-jest": "6.4.0-beta.19",
"@storybook/addon-links": "6.4.0-beta.19",
"@storybook/addon-storyshots": "6.4.0-beta.19",
"@storybook/addon-storyshots-puppeteer": "6.4.0-beta.19",
"@storybook/addon-storysource": "6.4.0-beta.19",
"@storybook/addon-toolbars": "6.4.0-beta.19",
"@storybook/addon-viewport": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.19",
"@storybook/cli": "6.4.0-beta.19",
"@storybook/components": "6.4.0-beta.19",
"@storybook/core-events": "6.4.0-beta.19",
"@storybook/addon-a11y": "6.4.0-beta.20",
"@storybook/addon-actions": "6.4.0-beta.20",
"@storybook/addon-backgrounds": "6.4.0-beta.20",
"@storybook/addon-controls": "6.4.0-beta.20",
"@storybook/addon-docs": "6.4.0-beta.20",
"@storybook/addon-interactions": "6.4.0-beta.20",
"@storybook/addon-jest": "6.4.0-beta.20",
"@storybook/addon-links": "6.4.0-beta.20",
"@storybook/addon-storyshots": "6.4.0-beta.20",
"@storybook/addon-storyshots-puppeteer": "6.4.0-beta.20",
"@storybook/addon-storysource": "6.4.0-beta.20",
"@storybook/addon-toolbars": "6.4.0-beta.20",
"@storybook/addon-viewport": "6.4.0-beta.20",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/cli": "6.4.0-beta.20",
"@storybook/components": "6.4.0-beta.20",
"@storybook/core-events": "6.4.0-beta.20",
"@storybook/design-system": "^5.4.7",
"@storybook/jest": "^0.0.2",
"@storybook/node-logger": "6.4.0-beta.19",
"@storybook/react": "6.4.0-beta.19",
"@storybook/source-loader": "6.4.0-beta.19",
"@storybook/node-logger": "6.4.0-beta.20",
"@storybook/react": "6.4.0-beta.20",
"@storybook/router": "6.4.0-beta.20",
"@storybook/source-loader": "6.4.0-beta.20",
"@storybook/testing-library": "^0.0.3",
"@storybook/theming": "6.4.0-beta.19",
"@storybook/theming": "6.4.0-beta.20",
"@testing-library/dom": "^7.31.2",
"@testing-library/user-event": "^13.1.9",
"chromatic": "^6.0.2",

View File

@ -1,6 +1,6 @@
{
"name": "preact-example",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"private": true,
"scripts": {
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules",
@ -15,16 +15,16 @@
"devDependencies": {
"@babel/core": "^7.12.10",
"@babel/plugin-transform-runtime": "^7.12.10",
"@storybook/addon-a11y": "6.4.0-beta.19",
"@storybook/addon-actions": "6.4.0-beta.19",
"@storybook/addon-backgrounds": "6.4.0-beta.19",
"@storybook/addon-links": "6.4.0-beta.19",
"@storybook/addon-storyshots": "6.4.0-beta.19",
"@storybook/addon-storysource": "6.4.0-beta.19",
"@storybook/addon-viewport": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.19",
"@storybook/preact": "6.4.0-beta.19",
"@storybook/source-loader": "6.4.0-beta.19",
"@storybook/addon-a11y": "6.4.0-beta.20",
"@storybook/addon-actions": "6.4.0-beta.20",
"@storybook/addon-backgrounds": "6.4.0-beta.20",
"@storybook/addon-links": "6.4.0-beta.20",
"@storybook/addon-storyshots": "6.4.0-beta.20",
"@storybook/addon-storysource": "6.4.0-beta.20",
"@storybook/addon-viewport": "6.4.0-beta.20",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/preact": "6.4.0-beta.20",
"@storybook/source-loader": "6.4.0-beta.20",
"@types/prop-types": "^15.7.3",
"@types/react": "^17",
"@types/react-dom": "^17",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/example-react-ts-webpack4",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"private": true,
"scripts": {
"build-storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true build-storybook -c ./",
@ -8,10 +8,10 @@
"storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true start-storybook -p 9011 -c ./ --no-manager-cache"
},
"dependencies": {
"@storybook/addon-controls": "6.4.0-beta.19",
"@storybook/addon-essentials": "6.4.0-beta.19",
"@storybook/builder-webpack4": "6.4.0-beta.19",
"@storybook/react": "6.4.0-beta.19",
"@storybook/addon-controls": "6.4.0-beta.20",
"@storybook/addon-essentials": "6.4.0-beta.20",
"@storybook/builder-webpack4": "6.4.0-beta.20",
"@storybook/react": "6.4.0-beta.20",
"@types/react": "^16.14.2",
"@types/react-dom": "^16.9.10",
"prop-types": "15.7.2",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/example-react-ts",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"private": true,
"scripts": {
"build-storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true build-storybook",
@ -17,12 +17,12 @@
"@babel/preset-env": "^7.12.11",
"@babel/preset-react": "^7.12.10",
"@babel/preset-typescript": "^7.12.7",
"@storybook/addon-essentials": "6.4.0-beta.19",
"@storybook/addon-storyshots": "6.4.0-beta.19",
"@storybook/addon-storysource": "6.4.0-beta.19",
"@storybook/components": "6.4.0-beta.19",
"@storybook/react": "6.4.0-beta.19",
"@storybook/theming": "6.4.0-beta.19",
"@storybook/addon-essentials": "6.4.0-beta.20",
"@storybook/addon-storyshots": "6.4.0-beta.20",
"@storybook/addon-storysource": "6.4.0-beta.20",
"@storybook/components": "6.4.0-beta.20",
"@storybook/react": "6.4.0-beta.20",
"@storybook/theming": "6.4.0-beta.20",
"@testing-library/dom": "^7.31.2",
"@testing-library/user-event": "^13.1.9",
"@types/babel__preset-env": "^7",

View File

@ -1,6 +1,6 @@
{
"name": "server-kitchen-sink",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"private": true,
"description": "",
"keywords": [],
@ -14,13 +14,13 @@
"storybook": "SERVER_PORT=1137 start-storybook -p 9006 --quiet"
},
"devDependencies": {
"@storybook/addon-a11y": "6.4.0-beta.19",
"@storybook/addon-actions": "6.4.0-beta.19",
"@storybook/addon-backgrounds": "6.4.0-beta.19",
"@storybook/addon-controls": "6.4.0-beta.19",
"@storybook/addon-links": "6.4.0-beta.19",
"@storybook/node-logger": "6.4.0-beta.19",
"@storybook/server": "6.4.0-beta.19",
"@storybook/addon-a11y": "6.4.0-beta.20",
"@storybook/addon-actions": "6.4.0-beta.20",
"@storybook/addon-backgrounds": "6.4.0-beta.20",
"@storybook/addon-controls": "6.4.0-beta.20",
"@storybook/addon-links": "6.4.0-beta.20",
"@storybook/node-logger": "6.4.0-beta.20",
"@storybook/server": "6.4.0-beta.20",
"concurrently": "^5.3.0",
"cors": "^2.8.5",
"express": "~4.17.1",

View File

@ -1,13 +1,13 @@
{
"name": "standalone-preview",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"private": true,
"scripts": {
"storybook": "parcel ./storybook.html --port 1337"
},
"devDependencies": {
"@storybook/addon-docs": "6.4.0-beta.19",
"@storybook/react": "6.4.0-beta.19",
"@storybook/addon-docs": "6.4.0-beta.20",
"@storybook/react": "6.4.0-beta.20",
"parcel": "^1.12.4",
"react": "16.14.0",
"react-dom": "16.14.0"

View File

@ -1,6 +1,6 @@
{
"name": "svelte-example",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"private": true,
"scripts": {
"build-storybook": "build-storybook -s public",
@ -10,20 +10,20 @@
"global": "^4.4.0"
},
"devDependencies": {
"@storybook/addon-a11y": "6.4.0-beta.19",
"@storybook/addon-actions": "6.4.0-beta.19",
"@storybook/addon-backgrounds": "6.4.0-beta.19",
"@storybook/addon-controls": "6.4.0-beta.19",
"@storybook/addon-docs": "6.4.0-beta.19",
"@storybook/addon-interactions": "6.4.0-beta.19",
"@storybook/addon-links": "6.4.0-beta.19",
"@storybook/addon-storyshots": "6.4.0-beta.19",
"@storybook/addon-storysource": "6.4.0-beta.19",
"@storybook/addon-viewport": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.19",
"@storybook/addon-a11y": "6.4.0-beta.20",
"@storybook/addon-actions": "6.4.0-beta.20",
"@storybook/addon-backgrounds": "6.4.0-beta.20",
"@storybook/addon-controls": "6.4.0-beta.20",
"@storybook/addon-docs": "6.4.0-beta.20",
"@storybook/addon-interactions": "6.4.0-beta.20",
"@storybook/addon-links": "6.4.0-beta.20",
"@storybook/addon-storyshots": "6.4.0-beta.20",
"@storybook/addon-storysource": "6.4.0-beta.20",
"@storybook/addon-viewport": "6.4.0-beta.20",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/jest": "^0.0.2",
"@storybook/source-loader": "6.4.0-beta.19",
"@storybook/svelte": "6.4.0-beta.19",
"@storybook/source-loader": "6.4.0-beta.20",
"@storybook/svelte": "6.4.0-beta.20",
"@storybook/testing-library": "^0.0.3",
"svelte-jester": "1.3.0",
"svelte-preprocess": "4.6.8"

View File

@ -1,6 +1,6 @@
{
"name": "vue-3-cli-example",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"private": true,
"scripts": {
"build": "vue-cli-service build",
@ -14,14 +14,14 @@
},
"devDependencies": {
"@babel/core": "^7.12.10",
"@storybook/addon-actions": "6.4.0-beta.19",
"@storybook/addon-essentials": "6.4.0-beta.19",
"@storybook/addon-interactions": "6.4.0-beta.19",
"@storybook/addon-links": "6.4.0-beta.19",
"@storybook/addon-storyshots": "6.4.0-beta.19",
"@storybook/addon-actions": "6.4.0-beta.20",
"@storybook/addon-essentials": "6.4.0-beta.20",
"@storybook/addon-interactions": "6.4.0-beta.20",
"@storybook/addon-links": "6.4.0-beta.20",
"@storybook/addon-storyshots": "6.4.0-beta.20",
"@storybook/jest": "^0.0.2",
"@storybook/testing-library": "^0.0.3",
"@storybook/vue3": "6.4.0-beta.19",
"@storybook/vue3": "6.4.0-beta.20",
"@vue/cli-plugin-babel": "~4.5.0",
"@vue/cli-plugin-typescript": "~4.5.0",
"@vue/cli-service": "~4.5.0",

View File

@ -1,6 +1,6 @@
{
"name": "vue-cli-example",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"private": true,
"scripts": {
"build": "vue-cli-service build",
@ -15,11 +15,11 @@
"vue-property-decorator": "^9.1.2"
},
"devDependencies": {
"@storybook/addon-controls": "6.4.0-beta.19",
"@storybook/addon-essentials": "6.4.0-beta.19",
"@storybook/addon-controls": "6.4.0-beta.20",
"@storybook/addon-essentials": "6.4.0-beta.20",
"@storybook/preset-scss": "^1.0.3",
"@storybook/source-loader": "6.4.0-beta.19",
"@storybook/vue": "6.4.0-beta.19",
"@storybook/source-loader": "6.4.0-beta.20",
"@storybook/vue": "6.4.0-beta.20",
"@vue/cli-plugin-babel": "~4.3.1",
"@vue/cli-plugin-typescript": "~4.3.1",
"@vue/cli-service": "~4.3.1",

View File

@ -1,6 +1,6 @@
{
"name": "vue-example",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"private": true,
"scripts": {
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules",
@ -14,21 +14,21 @@
},
"devDependencies": {
"@babel/core": "^7.12.10",
"@storybook/addon-a11y": "6.4.0-beta.19",
"@storybook/addon-actions": "6.4.0-beta.19",
"@storybook/addon-backgrounds": "6.4.0-beta.19",
"@storybook/addon-controls": "6.4.0-beta.19",
"@storybook/addon-docs": "6.4.0-beta.19",
"@storybook/addon-interactions": "6.4.0-beta.19",
"@storybook/addon-links": "6.4.0-beta.19",
"@storybook/addon-storyshots": "6.4.0-beta.19",
"@storybook/addon-storysource": "6.4.0-beta.19",
"@storybook/addon-viewport": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.19",
"@storybook/addon-a11y": "6.4.0-beta.20",
"@storybook/addon-actions": "6.4.0-beta.20",
"@storybook/addon-backgrounds": "6.4.0-beta.20",
"@storybook/addon-controls": "6.4.0-beta.20",
"@storybook/addon-docs": "6.4.0-beta.20",
"@storybook/addon-interactions": "6.4.0-beta.20",
"@storybook/addon-links": "6.4.0-beta.20",
"@storybook/addon-storyshots": "6.4.0-beta.20",
"@storybook/addon-storysource": "6.4.0-beta.20",
"@storybook/addon-viewport": "6.4.0-beta.20",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/jest": "^0.0.2",
"@storybook/source-loader": "6.4.0-beta.19",
"@storybook/source-loader": "6.4.0-beta.20",
"@storybook/testing-library": "^0.0.3",
"@storybook/vue": "6.4.0-beta.19",
"@storybook/vue": "6.4.0-beta.20",
"@vue/babel-preset-jsx": "^1.2.4",
"babel-loader": "^8.0.0",
"cross-env": "^7.0.3",

View File

@ -1,6 +1,6 @@
{
"name": "web-components-kitchen-sink",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"private": true,
"description": "",
"keywords": [],

View File

@ -2,5 +2,5 @@
"npmClient": "yarn",
"useWorkspaces": true,
"registry": "https://registry.npmjs.org",
"version": "6.4.0-beta.19"
"version": "6.4.0-beta.20"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addons",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Storybook addons store",
"keywords": [
"storybook"
@ -40,13 +40,13 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/api": "6.4.0-beta.19",
"@storybook/channels": "6.4.0-beta.19",
"@storybook/client-logger": "6.4.0-beta.19",
"@storybook/core-events": "6.4.0-beta.19",
"@storybook/api": "6.4.0-beta.20",
"@storybook/channels": "6.4.0-beta.20",
"@storybook/client-logger": "6.4.0-beta.20",
"@storybook/core-events": "6.4.0-beta.20",
"@storybook/csf": "0.0.2--canary.87bc651.0",
"@storybook/router": "6.4.0-beta.19",
"@storybook/theming": "6.4.0-beta.19",
"@storybook/router": "6.4.0-beta.20",
"@storybook/theming": "6.4.0-beta.20",
"@types/webpack-env": "^1.16.0",
"core-js": "^3.8.2",
"global": "^4.4.0",
@ -59,6 +59,6 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/public_api.js"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/api",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Core Storybook API & Context",
"keywords": [
"storybook"
@ -38,21 +38,18 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@reach/router": "^1.3.4",
"@storybook/channels": "6.4.0-beta.19",
"@storybook/client-logger": "6.4.0-beta.19",
"@storybook/core-events": "6.4.0-beta.19",
"@storybook/channels": "6.4.0-beta.20",
"@storybook/client-logger": "6.4.0-beta.20",
"@storybook/core-events": "6.4.0-beta.20",
"@storybook/csf": "0.0.2--canary.87bc651.0",
"@storybook/router": "6.4.0-beta.19",
"@storybook/router": "6.4.0-beta.20",
"@storybook/semver": "^7.3.2",
"@storybook/theming": "6.4.0-beta.19",
"@types/reach__router": "^1.3.7",
"@storybook/theming": "6.4.0-beta.20",
"core-js": "^3.8.2",
"fast-deep-equal": "^3.1.3",
"global": "^4.4.0",
"lodash": "^4.17.20",
"memoizerific": "^1.11.3",
"qs": "^6.10.0",
"regenerator-runtime": "^0.13.7",
"store2": "^2.12.0",
"telejson": "^5.3.2",
@ -72,6 +69,6 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/index.js"
}

View File

@ -18,7 +18,7 @@ import {
SHARED_STATE_SET,
SET_STORIES,
} from '@storybook/core-events';
import { RenderData as RouterData } from '@storybook/router';
import { RouterData } from '@storybook/router';
import { Listener } from '@storybook/channels';
import { createContext } from './context';

View File

@ -1,5 +1,5 @@
import { ReactElement } from 'react';
import { WindowLocation } from '@reach/router';
import type { RenderData } from '@storybook/router';
import deprecate from 'util-deprecate';
import dedent from 'ts-dedent';
@ -35,13 +35,13 @@ export interface RenderOptions {
export interface RouteOptions {
storyId: string;
viewMode: ViewMode;
location: WindowLocation;
location: RenderData['location'];
path: string;
}
export interface MatchOptions {
storyId: string;
viewMode: ViewMode;
location: WindowLocation;
location: RenderData['location'];
path: string;
}

View File

@ -1,4 +1,3 @@
import { navigate as navigateRouter, NavigateOptions } from '@reach/router';
import { once } from '@storybook/client-logger';
import {
NAVIGATE_URL,
@ -6,7 +5,7 @@ import {
SET_CURRENT_STORY,
GLOBALS_UPDATED,
} from '@storybook/core-events';
import { queryFromLocation, navigate as queryNavigate, buildArgsParam } from '@storybook/router';
import { queryFromLocation, buildArgsParam, NavigateOptions } from '@storybook/router';
import { toId, sanitize } from '@storybook/csf';
import deepEqual from 'fast-deep-equal';
import global from 'global';
@ -28,15 +27,6 @@ const parseBoolean = (value: string) => {
return undefined;
};
const navigateTo = (path: string, queryParams: Record<string, string> = {}, options = {}) => {
const params = Object.entries(queryParams)
.filter(([, v]) => v)
.sort(([a], [b]) => (a < b ? -1 : 1))
.map(([k, v]) => `${k}=${v}`);
const to = [path, ...params].join('&');
return queryNavigate(to, options);
};
// Initialize the state based on the URL.
// NOTE:
// Although we don't change the URL when you change the state, we do support setting initial state
@ -130,7 +120,7 @@ export interface QueryParams {
}
export interface SubAPI {
navigateUrl: (url: string, options: NavigateOptions<{}>) => void;
navigateUrl: (url: string, options: NavigateOptions) => void;
getQueryParam: (key: string) => string | undefined;
getUrlState: () => {
queryParams: QueryParams;
@ -143,6 +133,15 @@ export interface SubAPI {
}
export const init: ModuleFn = ({ store, navigate, state, provider, fullAPI, ...rest }) => {
const navigateTo = (path: string, queryParams: Record<string, string> = {}, options = {}) => {
const params = Object.entries(queryParams)
.filter(([, v]) => v)
.sort(([a], [b]) => (a < b ? -1 : 1))
.map(([k, v]) => `${k}=${v}`);
const to = [path, ...params].join('&');
return navigate(to, options);
};
const api: SubAPI = {
getQueryParam(key) {
const { customQueryParams } = store.getState();
@ -167,8 +166,8 @@ export const init: ModuleFn = ({ store, navigate, state, provider, fullAPI, ...r
const equal = deepEqual(customQueryParams, update);
if (!equal) store.setState({ customQueryParams: update });
},
navigateUrl(url: string, options: NavigateOptions<{}>) {
navigateRouter(url, options);
navigateUrl(url, options) {
navigate(url, { ...options, plain: true });
},
};

View File

@ -1,12 +1,10 @@
import qs from 'qs';
import { SET_CURRENT_STORY, GLOBALS_UPDATED } from '@storybook/core-events';
import { navigate as reachNavigate } from '@reach/router';
import { init as initURL } from '../modules/url';
jest.mock('@storybook/client-logger');
jest.mock('@reach/router');
jest.useFakeTimers();
describe('initial state', () => {
@ -193,7 +191,9 @@ describe('initModule', () => {
it('updates args param on SET_CURRENT_STORY', async () => {
store.setState(storyState('test--story'));
const { api, init } = initURL({ store, state: { location: {} }, fullAPI });
const navigate = jest.fn();
const { api, init } = initURL({ store, state: { location: {} }, navigate, fullAPI });
Object.assign(fullAPI, api, {
getCurrentStoryData: () => ({
args: { a: 1, b: 2 },
@ -204,8 +204,8 @@ describe('initModule', () => {
init();
fullAPI.emit(SET_CURRENT_STORY);
expect(reachNavigate).toHaveBeenCalledWith(
'/?path=/story/test--story&args=b:2',
expect(navigate).toHaveBeenCalledWith(
'/story/test--story&args=b:2',
expect.objectContaining({ replace: true })
);
expect(store.getState().customQueryParams).toEqual({ args: 'b:2' });
@ -214,13 +214,15 @@ describe('initModule', () => {
it('updates globals param on GLOBALS_UPDATED', async () => {
store.setState(storyState('test--story'));
const { api, init } = initURL({ store, state: { location: {} }, fullAPI });
const navigate = jest.fn();
const { api, init } = initURL({ store, state: { location: {} }, navigate, fullAPI });
Object.assign(fullAPI, api);
init();
fullAPI.emit(GLOBALS_UPDATED, { globals: { a: 2 }, initialGlobals: { a: 1, b: 1 } });
expect(reachNavigate).toHaveBeenCalledWith(
'/?path=/story/test--story&globals=a:2;b:!undefined',
expect(navigate).toHaveBeenCalledWith(
'/story/test--story&globals=a:2;b:!undefined',
expect.objectContaining({ replace: true })
);
expect(store.getState().customQueryParams).toEqual({ globals: 'a:2;b:!undefined' });
@ -228,22 +230,23 @@ describe('initModule', () => {
it('adds url params alphabetically', async () => {
store.setState({ ...storyState('test--story'), customQueryParams: { full: 1 } });
const navigate = jest.fn();
const { api, init } = initURL({ store, state: { location: {} }, fullAPI });
const { api, init } = initURL({ store, state: { location: {} }, navigate, fullAPI });
Object.assign(fullAPI, api, {
getCurrentStoryData: () => ({ args: { a: 1 }, isLeaf: true }),
});
init();
fullAPI.emit(GLOBALS_UPDATED, { globals: { g: 2 } });
expect(reachNavigate).toHaveBeenCalledWith(
'/?path=/story/test--story&full=1&globals=g:2',
expect(navigate).toHaveBeenCalledWith(
'/story/test--story&full=1&globals=g:2',
expect.objectContaining({ replace: true })
);
fullAPI.emit(SET_CURRENT_STORY);
expect(reachNavigate).toHaveBeenCalledWith(
'/?path=/story/test--story&args=a:1&full=1&globals=g:2',
expect(navigate).toHaveBeenCalledWith(
'/story/test--story&args=a:1&full=1&globals=g:2',
expect.objectContaining({ replace: true })
);
});

View File

@ -1 +1 @@
export const version = '6.4.0-beta.19';
export const version = '6.4.0-beta.20';

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/builder-webpack4",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Storybook framework-agnostic API",
"keywords": [
"storybook"
@ -61,22 +61,22 @@
"@babel/preset-env": "^7.12.11",
"@babel/preset-react": "^7.12.10",
"@babel/preset-typescript": "^7.12.7",
"@storybook/addons": "6.4.0-beta.19",
"@storybook/api": "6.4.0-beta.19",
"@storybook/channel-postmessage": "6.4.0-beta.19",
"@storybook/channels": "6.4.0-beta.19",
"@storybook/client-api": "6.4.0-beta.19",
"@storybook/client-logger": "6.4.0-beta.19",
"@storybook/components": "6.4.0-beta.19",
"@storybook/core-common": "6.4.0-beta.19",
"@storybook/core-events": "6.4.0-beta.19",
"@storybook/node-logger": "6.4.0-beta.19",
"@storybook/preview-web": "6.4.0-beta.19",
"@storybook/router": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/api": "6.4.0-beta.20",
"@storybook/channel-postmessage": "6.4.0-beta.20",
"@storybook/channels": "6.4.0-beta.20",
"@storybook/client-api": "6.4.0-beta.20",
"@storybook/client-logger": "6.4.0-beta.20",
"@storybook/components": "6.4.0-beta.20",
"@storybook/core-common": "6.4.0-beta.20",
"@storybook/core-events": "6.4.0-beta.20",
"@storybook/node-logger": "6.4.0-beta.20",
"@storybook/preview-web": "6.4.0-beta.20",
"@storybook/router": "6.4.0-beta.20",
"@storybook/semver": "^7.3.2",
"@storybook/store": "6.4.0-beta.19",
"@storybook/theming": "6.4.0-beta.19",
"@storybook/ui": "6.4.0-beta.19",
"@storybook/store": "6.4.0-beta.20",
"@storybook/theming": "6.4.0-beta.20",
"@storybook/ui": "6.4.0-beta.20",
"@types/node": "^14.0.10",
"@types/webpack": "^4.41.26",
"autoprefixer": "^9.8.6",
@ -131,6 +131,6 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/index.js"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/builder-webpack5",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Storybook framework-agnostic API",
"keywords": [
"storybook"
@ -60,21 +60,21 @@
"@babel/preset-env": "^7.12.11",
"@babel/preset-react": "^7.12.10",
"@babel/preset-typescript": "^7.12.7",
"@storybook/addons": "6.4.0-beta.19",
"@storybook/api": "6.4.0-beta.19",
"@storybook/channel-postmessage": "6.4.0-beta.19",
"@storybook/channels": "6.4.0-beta.19",
"@storybook/client-api": "6.4.0-beta.19",
"@storybook/client-logger": "6.4.0-beta.19",
"@storybook/components": "6.4.0-beta.19",
"@storybook/core-common": "6.4.0-beta.19",
"@storybook/core-events": "6.4.0-beta.19",
"@storybook/node-logger": "6.4.0-beta.19",
"@storybook/preview-web": "6.4.0-beta.19",
"@storybook/router": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/api": "6.4.0-beta.20",
"@storybook/channel-postmessage": "6.4.0-beta.20",
"@storybook/channels": "6.4.0-beta.20",
"@storybook/client-api": "6.4.0-beta.20",
"@storybook/client-logger": "6.4.0-beta.20",
"@storybook/components": "6.4.0-beta.20",
"@storybook/core-common": "6.4.0-beta.20",
"@storybook/core-events": "6.4.0-beta.20",
"@storybook/node-logger": "6.4.0-beta.20",
"@storybook/preview-web": "6.4.0-beta.20",
"@storybook/router": "6.4.0-beta.20",
"@storybook/semver": "^7.3.2",
"@storybook/store": "6.4.0-beta.19",
"@storybook/theming": "6.4.0-beta.19",
"@storybook/store": "6.4.0-beta.20",
"@storybook/theming": "6.4.0-beta.20",
"@types/node": "^14.0.10",
"babel-loader": "^8.0.0",
"babel-plugin-macros": "^3.0.1",
@ -117,6 +117,6 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/index.js"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/channel-postmessage",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "",
"keywords": [
"storybook"
@ -40,9 +40,9 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/channels": "6.4.0-beta.19",
"@storybook/client-logger": "6.4.0-beta.19",
"@storybook/core-events": "6.4.0-beta.19",
"@storybook/channels": "6.4.0-beta.20",
"@storybook/client-logger": "6.4.0-beta.20",
"@storybook/core-events": "6.4.0-beta.20",
"core-js": "^3.8.2",
"global": "^4.4.0",
"qs": "^6.10.0",
@ -51,6 +51,6 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/index.js"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/channel-websocket",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "",
"keywords": [
"storybook"
@ -40,7 +40,7 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/channels": "6.4.0-beta.19",
"@storybook/channels": "6.4.0-beta.20",
"core-js": "^3.8.2",
"global": "^4.4.0",
"telejson": "^5.3.2"
@ -48,6 +48,6 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/index.js"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/channels",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "",
"keywords": [
"storybook"
@ -47,6 +47,6 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/index.js"
}

View File

@ -1,6 +1,6 @@
{
"name": "sb",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Storybook CLI",
"keywords": [
"storybook"
@ -24,10 +24,10 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/cli": "6.4.0-beta.19"
"@storybook/cli": "6.4.0-beta.20"
},
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d"
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01"
}

View File

@ -1,6 +1,6 @@
{
"name": "storybook",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Storybook CLI",
"keywords": [
"storybook"
@ -27,10 +27,10 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/cli": "6.4.0-beta.19"
"@storybook/cli": "6.4.0-beta.20"
},
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d"
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/cli",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Storybook's CLI - easiest method of adding storybook to your projects",
"keywords": [
"cli",
@ -48,10 +48,10 @@
"dependencies": {
"@babel/core": "^7.12.10",
"@babel/preset-env": "^7.12.11",
"@storybook/codemod": "6.4.0-beta.19",
"@storybook/core-common": "6.4.0-beta.19",
"@storybook/csf-tools": "6.4.0-beta.19",
"@storybook/node-logger": "6.4.0-beta.19",
"@storybook/codemod": "6.4.0-beta.20",
"@storybook/core-common": "6.4.0-beta.20",
"@storybook/csf-tools": "6.4.0-beta.20",
"@storybook/node-logger": "6.4.0-beta.20",
"@storybook/semver": "^7.3.2",
"boxen": "^5.1.2",
"chalk": "^4.1.0",
@ -76,7 +76,7 @@
"update-notifier": "^5.0.1"
},
"devDependencies": {
"@storybook/client-api": "6.4.0-beta.19",
"@storybook/client-api": "6.4.0-beta.20",
"@types/cross-spawn": "^6.0.2",
"@types/prompts": "^2.0.9",
"@types/puppeteer-core": "^2.1.0",
@ -92,5 +92,5 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d"
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01"
}

View File

@ -1,59 +1,59 @@
{
"@storybook/addon-a11y": "6.4.0-beta.19",
"@storybook/addon-actions": "6.4.0-beta.19",
"@storybook/addon-backgrounds": "6.4.0-beta.19",
"@storybook/addon-controls": "6.4.0-beta.19",
"@storybook/addon-docs": "6.4.0-beta.19",
"@storybook/addon-essentials": "6.4.0-beta.19",
"@storybook/addon-interactions": "6.4.0-beta.19",
"@storybook/addon-jest": "6.4.0-beta.19",
"@storybook/addon-links": "6.4.0-beta.19",
"@storybook/addon-storyshots": "6.4.0-beta.19",
"@storybook/addon-storyshots-puppeteer": "6.4.0-beta.19",
"@storybook/addon-storysource": "6.4.0-beta.19",
"@storybook/addon-toolbars": "6.4.0-beta.19",
"@storybook/addon-viewport": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.19",
"@storybook/angular": "6.4.0-beta.19",
"@storybook/api": "6.4.0-beta.19",
"@storybook/aurelia": "6.4.0-beta.19",
"@storybook/builder-webpack4": "6.4.0-beta.19",
"@storybook/builder-webpack5": "6.4.0-beta.19",
"@storybook/channel-postmessage": "6.4.0-beta.19",
"@storybook/channel-websocket": "6.4.0-beta.19",
"@storybook/channels": "6.4.0-beta.19",
"@storybook/cli": "6.4.0-beta.19",
"@storybook/client-api": "6.4.0-beta.19",
"@storybook/client-logger": "6.4.0-beta.19",
"@storybook/codemod": "6.4.0-beta.19",
"@storybook/components": "6.4.0-beta.19",
"@storybook/core": "6.4.0-beta.19",
"@storybook/core-client": "6.4.0-beta.19",
"@storybook/core-common": "6.4.0-beta.19",
"@storybook/core-events": "6.4.0-beta.19",
"@storybook/core-server": "6.4.0-beta.19",
"@storybook/csf-tools": "6.4.0-beta.19",
"@storybook/ember": "6.4.0-beta.19",
"@storybook/html": "6.4.0-beta.19",
"@storybook/instrumenter": "6.4.0-beta.19",
"@storybook/manager-webpack4": "6.4.0-beta.19",
"@storybook/manager-webpack5": "6.4.0-beta.19",
"@storybook/marionette": "6.4.0-beta.19",
"@storybook/marko": "6.4.0-beta.19",
"@storybook/mithril": "6.4.0-beta.19",
"@storybook/node-logger": "6.4.0-beta.19",
"@storybook/postinstall": "6.4.0-beta.19",
"@storybook/preact": "6.4.0-beta.19",
"@storybook/rax": "6.4.0-beta.19",
"@storybook/react": "6.4.0-beta.19",
"@storybook/riot": "6.4.0-beta.19",
"@storybook/router": "6.4.0-beta.19",
"@storybook/server": "6.4.0-beta.19",
"@storybook/source-loader": "6.4.0-beta.19",
"@storybook/svelte": "6.4.0-beta.19",
"@storybook/theming": "6.4.0-beta.19",
"@storybook/ui": "6.4.0-beta.19",
"@storybook/vue": "6.4.0-beta.19",
"@storybook/vue3": "6.4.0-beta.19",
"@storybook/web-components": "6.4.0-beta.19"
"@storybook/addon-a11y": "6.4.0-beta.20",
"@storybook/addon-actions": "6.4.0-beta.20",
"@storybook/addon-backgrounds": "6.4.0-beta.20",
"@storybook/addon-controls": "6.4.0-beta.20",
"@storybook/addon-docs": "6.4.0-beta.20",
"@storybook/addon-essentials": "6.4.0-beta.20",
"@storybook/addon-interactions": "6.4.0-beta.20",
"@storybook/addon-jest": "6.4.0-beta.20",
"@storybook/addon-links": "6.4.0-beta.20",
"@storybook/addon-storyshots": "6.4.0-beta.20",
"@storybook/addon-storyshots-puppeteer": "6.4.0-beta.20",
"@storybook/addon-storysource": "6.4.0-beta.20",
"@storybook/addon-toolbars": "6.4.0-beta.20",
"@storybook/addon-viewport": "6.4.0-beta.20",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/angular": "6.4.0-beta.20",
"@storybook/api": "6.4.0-beta.20",
"@storybook/aurelia": "6.4.0-beta.20",
"@storybook/builder-webpack4": "6.4.0-beta.20",
"@storybook/builder-webpack5": "6.4.0-beta.20",
"@storybook/channel-postmessage": "6.4.0-beta.20",
"@storybook/channel-websocket": "6.4.0-beta.20",
"@storybook/channels": "6.4.0-beta.20",
"@storybook/cli": "6.4.0-beta.20",
"@storybook/client-api": "6.4.0-beta.20",
"@storybook/client-logger": "6.4.0-beta.20",
"@storybook/codemod": "6.4.0-beta.20",
"@storybook/components": "6.4.0-beta.20",
"@storybook/core": "6.4.0-beta.20",
"@storybook/core-client": "6.4.0-beta.20",
"@storybook/core-common": "6.4.0-beta.20",
"@storybook/core-events": "6.4.0-beta.20",
"@storybook/core-server": "6.4.0-beta.20",
"@storybook/csf-tools": "6.4.0-beta.20",
"@storybook/ember": "6.4.0-beta.20",
"@storybook/html": "6.4.0-beta.20",
"@storybook/instrumenter": "6.4.0-beta.20",
"@storybook/manager-webpack4": "6.4.0-beta.20",
"@storybook/manager-webpack5": "6.4.0-beta.20",
"@storybook/marionette": "6.4.0-beta.20",
"@storybook/marko": "6.4.0-beta.20",
"@storybook/mithril": "6.4.0-beta.20",
"@storybook/node-logger": "6.4.0-beta.20",
"@storybook/postinstall": "6.4.0-beta.20",
"@storybook/preact": "6.4.0-beta.20",
"@storybook/rax": "6.4.0-beta.20",
"@storybook/react": "6.4.0-beta.20",
"@storybook/riot": "6.4.0-beta.20",
"@storybook/router": "6.4.0-beta.20",
"@storybook/server": "6.4.0-beta.20",
"@storybook/source-loader": "6.4.0-beta.20",
"@storybook/svelte": "6.4.0-beta.20",
"@storybook/theming": "6.4.0-beta.20",
"@storybook/ui": "6.4.0-beta.20",
"@storybook/vue": "6.4.0-beta.20",
"@storybook/vue3": "6.4.0-beta.20",
"@storybook/web-components": "6.4.0-beta.20"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/client-api",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Storybook Client API",
"keywords": [
"storybook"
@ -40,13 +40,13 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "6.4.0-beta.19",
"@storybook/channel-postmessage": "6.4.0-beta.19",
"@storybook/channels": "6.4.0-beta.19",
"@storybook/client-logger": "6.4.0-beta.19",
"@storybook/core-events": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/channel-postmessage": "6.4.0-beta.20",
"@storybook/channels": "6.4.0-beta.20",
"@storybook/client-logger": "6.4.0-beta.20",
"@storybook/core-events": "6.4.0-beta.20",
"@storybook/csf": "0.0.2--canary.87bc651.0",
"@storybook/store": "6.4.0-beta.19",
"@storybook/store": "6.4.0-beta.20",
"@types/qs": "^6.9.5",
"@types/webpack-env": "^1.16.0",
"core-js": "^3.8.2",
@ -67,6 +67,6 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/index.js"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/client-logger",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "",
"keywords": [
"storybook"
@ -46,6 +46,6 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/index.js"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/codemod",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "A collection of codemod scripts written with JSCodeshift",
"keywords": [
"storybook"
@ -44,8 +44,8 @@
"@babel/types": "^7.12.11",
"@mdx-js/mdx": "^1.6.22",
"@storybook/csf": "0.0.2--canary.87bc651.0",
"@storybook/csf-tools": "6.4.0-beta.19",
"@storybook/node-logger": "6.4.0-beta.19",
"@storybook/csf-tools": "6.4.0-beta.20",
"@storybook/node-logger": "6.4.0-beta.20",
"core-js": "^3.8.2",
"cross-spawn": "^7.0.3",
"globby": "^11.0.2",
@ -62,6 +62,6 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/index.js"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/components",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Core Storybook Components",
"keywords": [
"storybook"
@ -41,9 +41,9 @@
},
"dependencies": {
"@popperjs/core": "^2.6.0",
"@storybook/client-logger": "6.4.0-beta.19",
"@storybook/client-logger": "6.4.0-beta.20",
"@storybook/csf": "0.0.2--canary.87bc651.0",
"@storybook/theming": "6.4.0-beta.19",
"@storybook/theming": "6.4.0-beta.20",
"@types/color-convert": "^2.0.0",
"@types/overlayscrollbars": "^1.12.0",
"@types/react-syntax-highlighter": "11.0.5",
@ -76,6 +76,6 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/index.js"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/core-client",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Storybook framework-agnostic API",
"keywords": [
"storybook"
@ -40,15 +40,15 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "6.4.0-beta.19",
"@storybook/channel-postmessage": "6.4.0-beta.19",
"@storybook/client-api": "6.4.0-beta.19",
"@storybook/client-logger": "6.4.0-beta.19",
"@storybook/core-events": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/channel-postmessage": "6.4.0-beta.20",
"@storybook/client-api": "6.4.0-beta.20",
"@storybook/client-logger": "6.4.0-beta.20",
"@storybook/core-events": "6.4.0-beta.20",
"@storybook/csf": "0.0.2--canary.87bc651.0",
"@storybook/preview-web": "6.4.0-beta.19",
"@storybook/store": "6.4.0-beta.19",
"@storybook/ui": "6.4.0-beta.19",
"@storybook/preview-web": "6.4.0-beta.20",
"@storybook/store": "6.4.0-beta.20",
"@storybook/ui": "6.4.0-beta.20",
"airbnb-js-shims": "^2.2.1",
"ansi-to-html": "^0.6.11",
"core-js": "^3.8.2",
@ -73,6 +73,6 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/index.js"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/core-common",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Storybook framework-agnostic API",
"keywords": [
"storybook"
@ -61,7 +61,7 @@
"@babel/preset-react": "^7.12.10",
"@babel/preset-typescript": "^7.12.7",
"@babel/register": "^7.12.1",
"@storybook/node-logger": "6.4.0-beta.19",
"@storybook/node-logger": "6.4.0-beta.20",
"@storybook/semver": "^7.3.2",
"@types/micromatch": "^4.0.1",
"@types/node": "^14.0.10",
@ -110,6 +110,6 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/index.js"
}

View File

@ -261,10 +261,13 @@ export type Preset =
*/
export type Entry = string;
type StorybookRefs = Record<string, {
title: string;
url: string;
}>;
type StorybookRefs = Record<
string,
{
title: string;
url: string;
}
>;
/**
* The interface for Storybook configuration in `main.ts` files.
@ -337,7 +340,7 @@ export interface StorybookConfig {
/**
* References external Storybooks
*/
refs?: StorybookRefs | ((config: Configuration, options: Options) => StorybookRefs)
refs?: StorybookRefs | ((config: Configuration, options: Options) => StorybookRefs);
/**
* Modify or return a custom Webpack config.

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/core-events",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Event names used in storybook core",
"keywords": [
"storybook"
@ -45,6 +45,6 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/index.js"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/core-server",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Storybook framework-agnostic API",
"keywords": [
"storybook"
@ -41,15 +41,15 @@
},
"dependencies": {
"@discoveryjs/json-ext": "^0.5.3",
"@storybook/builder-webpack4": "6.4.0-beta.19",
"@storybook/core-client": "6.4.0-beta.19",
"@storybook/core-common": "6.4.0-beta.19",
"@storybook/builder-webpack4": "6.4.0-beta.20",
"@storybook/core-client": "6.4.0-beta.20",
"@storybook/core-common": "6.4.0-beta.20",
"@storybook/csf": "0.0.2--canary.87bc651.0",
"@storybook/csf-tools": "6.4.0-beta.19",
"@storybook/manager-webpack4": "6.4.0-beta.19",
"@storybook/node-logger": "6.4.0-beta.19",
"@storybook/csf-tools": "6.4.0-beta.20",
"@storybook/manager-webpack4": "6.4.0-beta.20",
"@storybook/node-logger": "6.4.0-beta.20",
"@storybook/semver": "^7.3.2",
"@storybook/store": "6.4.0-beta.19",
"@storybook/store": "6.4.0-beta.20",
"@types/node": "^14.0.10",
"@types/node-fetch": "^2.5.7",
"@types/pretty-hrtime": "^1.0.0",
@ -81,15 +81,15 @@
"webpack": "4"
},
"devDependencies": {
"@storybook/builder-webpack5": "6.4.0-beta.19",
"@storybook/builder-webpack5": "6.4.0-beta.20",
"@types/compression": "^1.7.0",
"@types/ip": "^1.1.0",
"@types/serve-favicon": "^2.5.2",
"jest-specific-snapshot": "^4.0.0"
},
"peerDependencies": {
"@storybook/builder-webpack5": "6.4.0-beta.19",
"@storybook/manager-webpack5": "6.4.0-beta.19",
"@storybook/builder-webpack5": "6.4.0-beta.20",
"@storybook/manager-webpack5": "6.4.0-beta.20",
"react": "^16.8.0 || ^17.0.0",
"react-dom": "^16.8.0 || ^17.0.0"
},
@ -107,6 +107,6 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/index.js"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/core",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Storybook framework-agnostic API",
"keywords": [
"storybook"
@ -40,11 +40,11 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/core-client": "6.4.0-beta.19",
"@storybook/core-server": "6.4.0-beta.19"
"@storybook/core-client": "6.4.0-beta.20",
"@storybook/core-server": "6.4.0-beta.20"
},
"peerDependencies": {
"@storybook/builder-webpack5": "6.4.0-beta.19",
"@storybook/builder-webpack5": "6.4.0-beta.20",
"react": "^16.8.0 || ^17.0.0",
"react-dom": "^16.8.0 || ^17.0.0",
"webpack": "*"
@ -60,6 +60,6 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/index.js"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/csf-tools",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "",
"keywords": [
"storybook"
@ -65,6 +65,6 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/index.js"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/instrumenter",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "",
"keywords": [
"storybook"
@ -40,14 +40,14 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "6.4.0-beta.19",
"@storybook/client-logger": "6.4.0-beta.19",
"@storybook/core-events": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/client-logger": "6.4.0-beta.20",
"@storybook/core-events": "6.4.0-beta.20",
"global": "^4.4.0"
},
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/index.js"
}

View File

@ -317,6 +317,7 @@ describe('Instrumenter', () => {
});
it('clears state when switching stories', () => {
addons.getChannel().emit(SET_CURRENT_STORY); // initialization
instrumenter.state = {
'kind--story': {
isDebugging: false,

View File

@ -102,6 +102,8 @@ const getRetainedState = (state: State, isDebugging = false) => {
export class Instrumenter {
channel: Channel;
initialized = false;
// State is tracked per story to deal with multiple stories on the same canvas (i.e. docs mode)
state: Record<StoryId, State>;
@ -144,8 +146,11 @@ export class Instrumenter {
}
});
// Trash non-retained state and clear the log when switching stories.
this.channel.on(SET_CURRENT_STORY, this.cleanup.bind(this));
// Trash non-retained state and clear the log when switching stories, but not on initial boot.
this.channel.on(SET_CURRENT_STORY, () => {
if (this.initialized) this.cleanup();
else this.initialized = true;
});
const start = ({ storyId, playUntil }: { storyId: string; playUntil?: Call['id'] }) => {
if (!this.getState(storyId).isDebugging) {

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/manager-webpack4",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Storybook framework-agnostic API",
"keywords": [
"storybook"
@ -45,12 +45,12 @@
"@babel/core": "^7.12.10",
"@babel/plugin-transform-template-literals": "^7.12.1",
"@babel/preset-react": "^7.12.10",
"@storybook/addons": "6.4.0-beta.19",
"@storybook/core-client": "6.4.0-beta.19",
"@storybook/core-common": "6.4.0-beta.19",
"@storybook/node-logger": "6.4.0-beta.19",
"@storybook/theming": "6.4.0-beta.19",
"@storybook/ui": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/core-client": "6.4.0-beta.20",
"@storybook/core-common": "6.4.0-beta.20",
"@storybook/node-logger": "6.4.0-beta.20",
"@storybook/theming": "6.4.0-beta.20",
"@storybook/ui": "6.4.0-beta.20",
"@types/node": "^14.0.10",
"@types/webpack": "^4.41.26",
"babel-loader": "^8.0.0",
@ -97,6 +97,6 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/index.js"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/manager-webpack5",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Storybook framework-agnostic API",
"keywords": [
"storybook"
@ -45,12 +45,12 @@
"@babel/core": "^7.12.10",
"@babel/plugin-transform-template-literals": "^7.12.1",
"@babel/preset-react": "^7.12.10",
"@storybook/addons": "6.4.0-beta.19",
"@storybook/core-client": "6.4.0-beta.19",
"@storybook/core-common": "6.4.0-beta.19",
"@storybook/node-logger": "6.4.0-beta.19",
"@storybook/theming": "6.4.0-beta.19",
"@storybook/ui": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/core-client": "6.4.0-beta.20",
"@storybook/core-common": "6.4.0-beta.20",
"@storybook/node-logger": "6.4.0-beta.20",
"@storybook/theming": "6.4.0-beta.20",
"@storybook/ui": "6.4.0-beta.20",
"@types/node": "^14.0.10",
"babel-loader": "^8.0.0",
"case-sensitive-paths-webpack-plugin": "^2.3.0",
@ -93,6 +93,6 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/index.js"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/node-logger",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "",
"keywords": [
"storybook"
@ -52,6 +52,6 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/index.js"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/postinstall",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Storybook addons postinstall utilities",
"keywords": [
"api",
@ -51,6 +51,6 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/index.js"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/preview-web",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "",
"keywords": [
"storybook"
@ -40,12 +40,12 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "6.4.0-beta.19",
"@storybook/channel-postmessage": "6.4.0-beta.19",
"@storybook/client-logger": "6.4.0-beta.19",
"@storybook/core-events": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/channel-postmessage": "6.4.0-beta.20",
"@storybook/client-logger": "6.4.0-beta.20",
"@storybook/core-events": "6.4.0-beta.20",
"@storybook/csf": "0.0.2--canary.87bc651.0",
"@storybook/store": "6.4.0-beta.19",
"@storybook/store": "6.4.0-beta.20",
"ansi-to-html": "^0.6.11",
"core-js": "^3.8.2",
"global": "^4.4.0",
@ -63,6 +63,6 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/index.js"
}

View File

@ -1,5 +1,5 @@
# Storybook Router
Storybook Router is a wrapper library for reach/router.
Storybook Router is a wrapper library for react-router.
It ensures a single version of the router is used everywhere.
It also includes some ready to use utils to read the path, query, viewMode and storyId from location.

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/router",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Core Storybook Router",
"keywords": [
"storybook"
@ -40,15 +40,16 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@reach/router": "^1.3.4",
"@storybook/client-logger": "6.4.0-beta.19",
"@types/reach__router": "^1.3.7",
"@storybook/client-logger": "6.4.0-beta.20",
"core-js": "^3.8.2",
"fast-deep-equal": "^3.1.3",
"global": "^4.4.0",
"history": "^5.0.1",
"lodash": "^4.17.20",
"memoizerific": "^1.11.3",
"qs": "^6.10.0",
"react-router": "^6.0.0-beta.7",
"react-router-dom": "^6.0.0-beta.7",
"ts-dedent": "^2.0.0"
},
"peerDependencies": {
@ -58,6 +59,6 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/index.js"
}

View File

@ -1,17 +1,14 @@
import global from 'global';
import React, { ReactNode } from 'react';
import React, { ReactNode, useCallback } from 'react';
import {
Link,
Location,
navigate,
LocationProvider,
RouteComponentProps,
LocationContext,
NavigateFn,
BrowserRouter,
useNavigate,
useLocation,
NavigateOptions,
History,
} from '@reach/router';
Router,
} from 'react-router-dom';
import { ToggleVisibility } from './visibility';
import { queryFromString, parsePath, getMatch, StoryData } from './utils';
@ -22,9 +19,12 @@ interface Other extends StoryData {
singleStory?: boolean;
}
export type RenderData = Pick<LocationContext, 'location'> &
Partial<Pick<LocationContext, 'navigate'>> &
Other;
export type RouterData = {
location: Partial<Location>;
navigate: ReturnType<typeof useQueryNavigate>;
} & Other;
export type RenderData = Pick<RouterData, 'location'> & Other;
interface MatchingData {
match: null | { path: string };
@ -52,8 +52,26 @@ export interface QueryLinkProps {
const getBase = () => `${document.location.pathname}?`;
const queryNavigate: NavigateFn = (to: string | number, options?: NavigateOptions<{}>) =>
typeof to === 'number' ? navigate(to) : navigate(`${getBase()}path=${to}`, options);
type ExpandedNavigateOptions = NavigateOptions & { plain?: boolean };
// const queryNavigate: NavigateFn = (to: string | number, options?: NavigateOptions<{}>) =>
// typeof to === 'number' ? navigate(to) : navigate(`${getBase()}path=${to}`, options);
const useQueryNavigate = () => {
const navigate = useNavigate();
return useCallback((to: string | number, options?: ExpandedNavigateOptions) => {
if (typeof to === 'string') {
const target = options?.plain ? to : `?path=${to}`;
return navigate(target, options);
}
if (typeof to === 'number') {
return navigate(to);
}
return undefined;
}, []);
};
// A component that will navigate to a new location/path when clicked
const QueryLink = ({ to, children, ...rest }: QueryLinkProps) => (
@ -65,24 +83,24 @@ QueryLink.displayName = 'QueryLink';
// A render-prop component where children is called with a location
// and will be called whenever it changes when it changes
const QueryLocation = ({ children }: QueryLocationProps) => (
<Location>
{({ location }: RouteComponentProps): ReactNode => {
const { path, singleStory } = queryFromString(location.search);
const { viewMode, storyId, refId } = parsePath(path);
const QueryLocation = ({ children }: QueryLocationProps) => {
const location = useLocation();
const { path, singleStory } = queryFromString(location.search);
const { viewMode, storyId, refId } = parsePath(path);
return children({
return (
<>
{children({
path,
location,
navigate: queryNavigate,
viewMode,
storyId,
refId,
singleStory: singleStory === 'true',
});
}}
</Location>
);
})}
</>
);
};
QueryLocation.displayName = 'QueryLocation';
// A render-prop component for rendering when a certain path is hit.
@ -117,6 +135,10 @@ export { QueryLink as Link };
export { QueryMatch as Match };
export { QueryLocation as Location };
export { Route };
export { queryNavigate as navigate };
export { LocationProvider };
export type { History };
export { useQueryNavigate as useNavigate };
export { BrowserRouter as LocationProvider };
export { Router as BaseLocationProvider };
export { useNavigate as usePlainNavigate };
// eslint-disable-next-line no-undef
export type { ExpandedNavigateOptions as NavigateOptions };

View File

@ -139,7 +139,7 @@ interface Query {
export const queryFromString = memoize(1000)(
(s: string): Query => qs.parse(s, { ignoreQueryPrefix: true })
);
export const queryFromLocation = (location: { search: string }) => queryFromString(location.search);
export const queryFromLocation = (location: Partial<Location>) => queryFromString(location.search);
export const stringifyQuery = (query: Query) =>
qs.stringify(query, { addQueryPrefix: true, encode: false });

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/source-loader",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Source loader",
"keywords": [
"lib",
@ -41,8 +41,8 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "6.4.0-beta.19",
"@storybook/client-logger": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/client-logger": "6.4.0-beta.20",
"@storybook/csf": "0.0.2--canary.87bc651.0",
"core-js": "^3.8.2",
"estraverse": "^5.2.0",
@ -59,6 +59,6 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/index.js"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/store",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "",
"keywords": [
"storybook"
@ -40,9 +40,9 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "6.4.0-beta.19",
"@storybook/client-logger": "6.4.0-beta.19",
"@storybook/core-events": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/client-logger": "6.4.0-beta.20",
"@storybook/core-events": "6.4.0-beta.20",
"@storybook/csf": "0.0.2--canary.87bc651.0",
"core-js": "^3.8.2",
"fast-deep-equal": "^3.1.3",
@ -58,6 +58,6 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/index.js"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/theming",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Core Storybook Components",
"keywords": [
"storybook"
@ -43,7 +43,7 @@
"@emotion/core": "^10.1.1",
"@emotion/is-prop-valid": "^0.8.6",
"@emotion/styled": "^10.0.27",
"@storybook/client-logger": "6.4.0-beta.19",
"@storybook/client-logger": "6.4.0-beta.20",
"core-js": "^3.8.2",
"deep-object-diff": "^1.1.0",
"emotion-theming": "^10.0.27",
@ -60,6 +60,6 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/index.js"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/ui",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"description": "Core Storybook UI",
"keywords": [
"storybook"
@ -41,15 +41,15 @@
},
"dependencies": {
"@emotion/core": "^10.1.1",
"@storybook/addons": "6.4.0-beta.19",
"@storybook/api": "6.4.0-beta.19",
"@storybook/channels": "6.4.0-beta.19",
"@storybook/client-logger": "6.4.0-beta.19",
"@storybook/components": "6.4.0-beta.19",
"@storybook/core-events": "6.4.0-beta.19",
"@storybook/router": "6.4.0-beta.19",
"@storybook/addons": "6.4.0-beta.20",
"@storybook/api": "6.4.0-beta.20",
"@storybook/channels": "6.4.0-beta.20",
"@storybook/client-logger": "6.4.0-beta.20",
"@storybook/components": "6.4.0-beta.20",
"@storybook/core-events": "6.4.0-beta.20",
"@storybook/router": "6.4.0-beta.20",
"@storybook/semver": "^7.3.2",
"@storybook/theming": "6.4.0-beta.19",
"@storybook/theming": "6.4.0-beta.20",
"copy-to-clipboard": "^3.3.1",
"core-js": "^3.8.2",
"core-js-pure": "^3.8.2",
@ -86,6 +86,6 @@
"publishConfig": {
"access": "public"
},
"gitHead": "60b9bd1e5123938a66ad1ae25a8a63d03324a14d",
"gitHead": "1a9315fd39f7e4abcdf3eb839dc29aedce346e01",
"sbmodern": "dist/modern/index.js"
}

View File

@ -1,9 +1,10 @@
import React from 'react';
import { createMemorySource, createHistory } from '@reach/router';
import { Root as App } from './index';
import { Provider as ManagerProvider } from '@storybook/api';
import { LocationProvider } from '@storybook/router';
import { HelmetProvider } from 'react-helmet-async';
import App from './app';
import { PrettyFakeProvider, FakeProvider } from './FakeProvider';
import Provider from './provider';
export default {
title: 'UI/App',
@ -11,14 +12,67 @@ export default {
parameters: {
layout: 'fullscreen',
},
decorators: [
(StoryFn) => (
<HelmetProvider key="helmet.Provider">
<LocationProvider>
<StoryFn />
</LocationProvider>
</HelmetProvider>
),
],
};
const history = createHistory(createMemorySource('/?path=/story/story--id'));
export const Default = () => (
<App provider={(new FakeProvider() as unknown) as Provider} history={history} />
<ManagerProvider
key="manager"
provider={new FakeProvider()}
path="/story/ui-app--loading-state"
storyId="ui-app--loading-state"
location={{ search: '' }}
navigate={() => {}}
docsMode={false}
>
<App
key="app"
viewMode="story"
layout={{
initialActive: 'addons',
isFullscreen: false,
isToolshown: true,
panelPosition: 'right',
showNav: true,
showPanel: true,
}}
panelCount={0}
docsOnly={false}
/>
</ManagerProvider>
);
export const LoadingState = () => (
<App provider={(new PrettyFakeProvider() as unknown) as Provider} history={history} />
<ManagerProvider
key="manager"
provider={new PrettyFakeProvider()}
path=""
storyId="ui-app--loading-state"
location={{ search: '' }}
navigate={() => {}}
docsMode={false}
>
<App
key="app"
viewMode="story"
layout={{
initialActive: 'addons',
isFullscreen: false,
isToolshown: true,
panelPosition: 'right',
showNav: true,
showPanel: true,
}}
panelCount={0}
docsOnly={false}
/>
</ManagerProvider>
);

View File

@ -1,10 +1,18 @@
import React from 'react';
import { LocationProvider } from '@storybook/router';
import NotificationItem from './NotificationItem';
export default {
component: NotificationItem,
title: 'UI/Notifications/NotificationItem',
decorators: [(storyFn) => <div style={{ width: '240px', margin: '1rem' }}>{storyFn()}</div>],
decorators: [
(StoryFn) => (
<LocationProvider>
<StoryFn />
</LocationProvider>
),
(storyFn) => <div style={{ width: '240px', margin: '1rem' }}>{storyFn()}</div>,
],
excludeStories: /.*Data$/,
};

View File

@ -1,4 +1,5 @@
import React from 'react';
import { LocationProvider } from '@storybook/router';
import NotificationList from './NotificationList';
import itemMeta, * as itemStories from './NotificationItem.stories';
@ -7,6 +8,12 @@ export default {
component: NotificationList,
title: 'UI/Notifications/NotificationList',
decorators: [
(StoryFn) => (
<LocationProvider>
<StoryFn />
</LocationProvider>
),
(storyFn) => (
<div style={{ width: '240px', margin: '1rem', position: 'relative', height: '100%' }}>
{storyFn()}

View File

@ -1,8 +1,9 @@
import React from 'react';
import { parsePath, createPath } from 'history';
import { Provider as ManagerProvider, Combo, Consumer } from '@storybook/api';
import { createMemorySource, createHistory } from '@reach/router';
import { Location, LocationProvider } from '@storybook/router';
import { Location, BaseLocationProvider } from '@storybook/router';
import { ThemeProvider, ensure as ensureTheme, themes } from '@storybook/theming';
import { DecoratorFn } from '@storybook/react';
@ -12,27 +13,65 @@ import { PrettyFakeProvider } from '../../FakeProvider';
import { previewProps } from './preview.mockdata';
const provider = new PrettyFakeProvider();
const staticNavigator = {
createHref(to) {
return typeof to === 'string' ? to : createPath(to);
},
push() {},
replace() {},
go() {},
back() {},
forward() {},
};
export default {
title: 'UI/Preview',
component: Preview,
decorators: [
((StoryFn, c) => (
<LocationProvider
key="location.provider"
history={createHistory(createMemorySource('/?path=/story/story--id'))}
>
<Location key="location.consumer">
{(locationData) => (
<ManagerProvider key="manager" provider={provider} {...locationData} docsMode={false}>
<ThemeProvider key="theme.provider" theme={ensureTheme(themes.light)}>
<StoryFn {...c} />
</ThemeProvider>
</ManagerProvider>
)}
</Location>
</LocationProvider>
)) as DecoratorFn,
((StoryFn, c) => {
const locationProp = parsePath('/?path=/story/story--id');
const location = {
pathname: locationProp.pathname || '/',
search: locationProp.search || '',
hash: locationProp.hash || '',
state: null,
key: 'default',
};
return (
<BaseLocationProvider
key="location.provider"
basename={undefined}
location={location}
navigator={staticNavigator}
static
>
<Location key="location.consumer">
{(locationData) => (
<ManagerProvider
key="manager"
provider={provider}
{...locationData}
docsMode={false}
path="/story/story--id"
storyId="story--id"
navigate={() => {}}
>
<ThemeProvider key="theme.provider" theme={ensureTheme(themes.light)}>
<StoryFn {...c} />
</ThemeProvider>
</ManagerProvider>
)}
</Location>
</BaseLocationProvider>
);
}) as DecoratorFn,
],
};

View File

@ -1,8 +1,8 @@
import global from 'global';
import React, { FunctionComponent } from 'react';
import React, { FC, FunctionComponent } from 'react';
import ReactDOM from 'react-dom';
import { Location, LocationProvider, History } from '@storybook/router';
import { Location, LocationProvider, useNavigate } from '@storybook/router';
import { Provider as ManagerProvider, Combo } from '@storybook/api';
import { ThemeProvider, ensure as ensureTheme } from '@storybook/theming';
import { HelmetProvider } from 'react-helmet-async';
@ -33,45 +33,53 @@ export interface RootProps {
history?: History;
}
export const Root: FunctionComponent<RootProps> = ({ provider, history }) => (
export const Root: FunctionComponent<RootProps> = ({ provider }) => (
<Container key="container">
<HelmetProvider key="helmet.Provider">
<LocationProvider key="location.provider" history={history}>
<Location key="location.consumer">
{(locationData) => (
<ManagerProvider
key="manager"
provider={provider}
{...locationData}
docsMode={getDocsMode()}
>
{({ state, api }: Combo) => {
const panelCount = Object.keys(api.getPanels()).length;
const story = api.getData(state.storyId, state.refId);
const isLoading = story
? !!state.refs[state.refId] && !state.refs[state.refId].ready
: !state.storiesFailed && !state.storiesConfigured;
return (
<ThemeProvider key="theme.provider" theme={ensureTheme(state.theme)}>
<App
key="app"
viewMode={state.viewMode}
layout={isLoading ? { ...state.layout, showPanel: false } : state.layout}
panelCount={panelCount}
docsOnly={story && story.parameters && story.parameters.docsOnly}
/>
</ThemeProvider>
);
}}
</ManagerProvider>
)}
</Location>
<LocationProvider key="location.provider">
<Main provider={provider} />
</LocationProvider>
</HelmetProvider>
</Container>
);
const Main: FC<{ provider: Provider }> = ({ provider }) => {
const navigate = useNavigate();
return (
<Location key="location.consumer">
{(locationData) => (
<ManagerProvider
key="manager"
provider={provider}
{...locationData}
navigate={navigate}
docsMode={getDocsMode()}
>
{({ state, api }: Combo) => {
const panelCount = Object.keys(api.getPanels()).length;
const story = api.getData(state.storyId, state.refId);
const isLoading = story
? !!state.refs[state.refId] && !state.refs[state.refId].ready
: !state.storiesFailed && !state.storiesConfigured;
return (
<ThemeProvider key="theme.provider" theme={ensureTheme(state.theme)}>
<App
key="app"
viewMode={state.viewMode}
layout={isLoading ? { ...state.layout, showPanel: false } : state.layout}
panelCount={panelCount}
docsOnly={story && story.parameters && story.parameters.docsOnly}
/>
</ThemeProvider>
);
}}
</ManagerProvider>
)}
</Location>
);
};
function renderStorybookUI(domNode: HTMLElement, provider: Provider) {
if (!(provider instanceof Provider)) {
throw new Error('provider is not extended from the base Provider');

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/root",
"version": "6.4.0-beta.19",
"version": "6.4.0-beta.20",
"private": true,
"description": "Storybook is an open source tool for developing UI components in isolation for React, Vue and Angular. It makes building stunning UIs organized and efficient.",
"keywords": [

1037
yarn.lock

File diff suppressed because it is too large Load Diff