mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 22:21:27 +08:00
Merge branch 'next' into tech/core-builder
# Conflicts: # CHANGELOG.md # addons/a11y/package.json # addons/actions/package.json # addons/backgrounds/package.json # addons/controls/package.json # addons/cssresources/package.json # addons/design-assets/package.json # addons/docs/package.json # addons/docs/src/frameworks/common/preset.ts # addons/essentials/package.json # addons/events/package.json # addons/google-analytics/package.json # addons/graphql/package.json # addons/jest/package.json # addons/jest/tsconfig.json # addons/knobs/package.json # addons/links/package.json # addons/queryparams/package.json # addons/storyshots/storyshots-core/package.json # addons/storyshots/storyshots-puppeteer/package.json # addons/storysource/package.json # addons/toolbars/package.json # addons/viewport/package.json # app/angular/package.json # app/angular/src/client/preview/index.ts # app/angular/src/server/options.ts # app/aurelia/package.json # app/aurelia/src/server/options.ts # app/ember/package.json # app/ember/src/server/options.ts # app/html/package.json # app/html/src/server/options.ts # app/marionette/package.json # app/marionette/src/client/index.js # app/marionette/src/client/index.ts # app/marionette/src/client/preview/index.ts # app/marionette/src/server/framework-preset-marionette.ts # app/marionette/src/server/options.ts # app/marionette/src/typings.d.ts # app/marionette/tsconfig.json # app/marko/package.json # app/marko/src/client/index.js # app/marko/src/client/index.ts # app/marko/src/client/preview/index.ts # app/marko/src/server/framework-preset-marko.ts # app/marko/src/server/options.ts # app/marko/src/typings.d.ts # app/marko/tsconfig.json # app/mithril/package.json # app/mithril/src/server/options.ts # app/preact/package.json # app/preact/src/server/options.ts # app/rax/package.json # app/rax/src/client/preview/index.ts # app/rax/src/server/options.ts # app/rax/src/typings.d.ts # app/react/package.json # app/react/src/server/options.ts # app/riot/package.json # app/riot/src/client/preview/index.ts # app/riot/src/server/framework-preset-riot.ts # app/riot/src/server/options.ts # app/riot/src/typings.d.ts # app/riot/tsconfig.json # app/server/package.json # app/server/src/client/preview/types.ts # app/server/src/server/options.ts # app/svelte/package.json # app/svelte/src/server/options.ts # app/vue/package.json # app/vue/src/server/options.ts # app/vue3/package.json # app/vue3/src/client/preview/types.ts # app/vue3/src/server/framework-preset-vue3.ts # app/vue3/src/server/options.ts # app/vue3/src/typings.d.ts # app/vue3/tsconfig.json # app/web-components/package.json # app/web-components/src/client/preview/types.ts # app/web-components/src/server/options.ts # dev-kits/addon-decorator/package.json # dev-kits/addon-parameter/package.json # dev-kits/addon-preview-wrapper/package.json # dev-kits/addon-roundtrip/package.json # docs/versions/next.json # examples/angular-cli/package.json # examples/aurelia-kitchen-sink/package.json # examples/cra-kitchen-sink/package.json # examples/cra-react15/package.json # examples/cra-ts-essentials/package.json # examples/cra-ts-kitchen-sink/package.json # examples/dev-kits/package.json # examples/ember-cli/package.json # examples/html-kitchen-sink/package.json # examples/marko-cli/package.json # examples/mithril-kitchen-sink/package.json # examples/official-storybook/package.json # examples/preact-kitchen-sink/package.json # examples/rax-kitchen-sink/package.json # examples/react-ts/package.json # examples/riot-kitchen-sink/package.json # examples/server-kitchen-sink/package.json # examples/standalone-preview/package.json # examples/svelte-kitchen-sink/package.json # examples/vue-3-cli/package.json # examples/vue-3-cli/src/stories/Button.vue # examples/vue-3-cli/src/stories/Header.stories.js # examples/vue-3-cli/src/stories/Header.vue # examples/vue-3-cli/src/stories/Page.stories.js # examples/vue-3-cli/src/stories/Page.vue # examples/vue-3-cli/tsconfig.json # examples/vue-cli/package.json # examples/vue-kitchen-sink/package.json # examples/web-components-kitchen-sink/package.json # lerna.json # lib/addons/package.json # lib/api/package.json # lib/api/src/version.ts # lib/builder-webpack4/src/preview/iframe-webpack.config.ts # lib/channel-postmessage/package.json # lib/channel-websocket/package.json # lib/channels/package.json # lib/cli-sb/package.json # lib/cli-storybook/package.json # lib/cli/package.json # lib/cli/src/versions.json # lib/client-api/package.json # lib/client-logger/package.json # lib/codemod/package.json # lib/components/package.json # lib/core-events/package.json # lib/core-server/src/cli/dev.ts # lib/core-server/src/manager/manager-webpack.config.ts # lib/core/client.js # lib/core/package.json # lib/core/server.js # lib/core/src/server/build-dev.ts # lib/core/src/server/build-static.ts # lib/core/src/server/common/es6Transpiler.ts # lib/core/src/server/dev-server.ts # lib/core/src/server/preview/base-webpack.config.ts # lib/node-logger/package.json # lib/postinstall/package.json # lib/router/package.json # lib/source-loader/package.json # lib/theming/package.json # lib/ui/package.json # lib/ui/tsconfig.json # package.json # scripts/build-manager.js # yarn.lock
This commit is contained in:
commit
3b45d2c4f9
39
CHANGELOG.md
39
CHANGELOG.md
@ -1,3 +1,42 @@
|
||||
## 6.2.0-alpha.24 (February 6, 2021)
|
||||
|
||||
### Features
|
||||
|
||||
* Addon-storyshots: Add support for Vue 3 ([#13828](https://github.com/storybookjs/storybook/pull/13828))
|
||||
|
||||
### Maintenance
|
||||
|
||||
* CLI: only kill other processes on fail ([#13822](https://github.com/storybookjs/storybook/pull/13822))
|
||||
|
||||
## 6.2.0-alpha.23 (February 5, 2021)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Addon-docs/Vue3: Resolve vue3 package for addon-docs preset ([#13819](https://github.com/storybookjs/storybook/pull/13819))
|
||||
|
||||
## 6.2.0-alpha.22 (February 5, 2021)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- CLI: Fix opening localhost in browser by default ([#13812](https://github.com/storybookjs/storybook/pull/13812))
|
||||
|
||||
## 6.1.17 (February 4, 2021)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- CLI: Fix opening localhost in browser by default ([#13812](https://github.com/storybookjs/storybook/pull/13812))
|
||||
|
||||
## 6.2.0-alpha.21 (February 4, 2021)
|
||||
|
||||
### Features
|
||||
|
||||
- Addon-docs: Add support for Vue 3 ([#13809](https://github.com/storybookjs/storybook/pull/13809))
|
||||
|
||||
### Maintenance
|
||||
|
||||
- Build: Exclude all test and story files from transpilation ([#13714](https://github.com/storybookjs/storybook/pull/13714))
|
||||
- Build: Generate version file with preval macro ([#13715](https://github.com/storybookjs/storybook/pull/13715))
|
||||
|
||||
## 6.1.16 (February 2, 2021)
|
||||
|
||||
### Bug Fixes
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-a11y",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"description": "Test component compliance with web accessibility standards",
|
||||
"keywords": [
|
||||
"a11y",
|
||||
@ -40,14 +40,14 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/api": "6.2.0-alpha.20",
|
||||
"@storybook/channels": "6.2.0-alpha.20",
|
||||
"@storybook/client-api": "6.2.0-alpha.20",
|
||||
"@storybook/client-logger": "6.2.0-alpha.20",
|
||||
"@storybook/components": "6.2.0-alpha.20",
|
||||
"@storybook/core-events": "6.2.0-alpha.20",
|
||||
"@storybook/theming": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/api": "6.2.0-alpha.24",
|
||||
"@storybook/channels": "6.2.0-alpha.24",
|
||||
"@storybook/client-api": "6.2.0-alpha.24",
|
||||
"@storybook/client-logger": "6.2.0-alpha.24",
|
||||
"@storybook/components": "6.2.0-alpha.24",
|
||||
"@storybook/core-events": "6.2.0-alpha.24",
|
||||
"@storybook/theming": "6.2.0-alpha.24",
|
||||
"axe-core": "^4.1.1",
|
||||
"core-js": "^3.8.2",
|
||||
"global": "^4.4.0",
|
||||
|
@ -11,5 +11,12 @@
|
||||
"noFallthroughCasesInSwitch": true
|
||||
},
|
||||
"include": ["src/**/*"],
|
||||
"exclude": ["src/__tests__/**/*"]
|
||||
"exclude": [
|
||||
"src/**/*.test.*",
|
||||
"src/**/tests/**/*",
|
||||
"src/**/__tests__/**/*",
|
||||
"src/**/*.stories.*",
|
||||
"src/**/*.mockdata.*",
|
||||
"src/**/__testfixtures__/**"
|
||||
]
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-actions",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"description": "Get UI feedback when an action is performed on an interactive element",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -36,12 +36,12 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"polished": "^4.0.5",
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/api": "6.2.0-alpha.20",
|
||||
"@storybook/client-api": "6.2.0-alpha.20",
|
||||
"@storybook/components": "6.2.0-alpha.20",
|
||||
"@storybook/core-events": "6.2.0-alpha.20",
|
||||
"@storybook/theming": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/api": "6.2.0-alpha.24",
|
||||
"@storybook/client-api": "6.2.0-alpha.24",
|
||||
"@storybook/components": "6.2.0-alpha.24",
|
||||
"@storybook/core-events": "6.2.0-alpha.24",
|
||||
"@storybook/theming": "6.2.0-alpha.24",
|
||||
"core-js": "^3.8.2",
|
||||
"fast-deep-equal": "^3.1.3",
|
||||
"global": "^4.4.0",
|
||||
|
@ -5,5 +5,12 @@
|
||||
"types": ["webpack-env", "jest"]
|
||||
},
|
||||
"include": ["src/**/*"],
|
||||
"exclude": ["src/__tests__/**/*", "src/**/*.test.ts"]
|
||||
"exclude": [
|
||||
"src/**/*.test.*",
|
||||
"src/**/tests/**/*",
|
||||
"src/**/__tests__/**/*",
|
||||
"src/**/*.stories.*",
|
||||
"src/**/*.mockdata.*",
|
||||
"src/**/__testfixtures__/**"
|
||||
]
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-backgrounds",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"description": "Switch backgrounds to view components in different settings",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -39,12 +39,12 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/api": "6.2.0-alpha.20",
|
||||
"@storybook/client-logger": "6.2.0-alpha.20",
|
||||
"@storybook/components": "6.2.0-alpha.20",
|
||||
"@storybook/core-events": "6.2.0-alpha.20",
|
||||
"@storybook/theming": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/api": "6.2.0-alpha.24",
|
||||
"@storybook/client-logger": "6.2.0-alpha.24",
|
||||
"@storybook/components": "6.2.0-alpha.24",
|
||||
"@storybook/core-events": "6.2.0-alpha.24",
|
||||
"@storybook/theming": "6.2.0-alpha.24",
|
||||
"core-js": "^3.8.2",
|
||||
"global": "^4.4.0",
|
||||
"memoizerific": "^1.11.3",
|
||||
|
@ -8,6 +8,11 @@
|
||||
"src/**/*"
|
||||
],
|
||||
"exclude": [
|
||||
"src/__tests__/**/*"
|
||||
"src/**/*.test.*",
|
||||
"src/**/tests/**/*",
|
||||
"src/**/__tests__/**/*",
|
||||
"src/**/*.stories.*",
|
||||
"src/**/*.mockdata.*",
|
||||
"src/**/__testfixtures__/**"
|
||||
]
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-controls",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"description": "Interact with component inputs dynamically in the Storybook UI",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -39,12 +39,12 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/api": "6.2.0-alpha.20",
|
||||
"@storybook/client-api": "6.2.0-alpha.20",
|
||||
"@storybook/components": "6.2.0-alpha.20",
|
||||
"@storybook/node-logger": "6.2.0-alpha.20",
|
||||
"@storybook/theming": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/api": "6.2.0-alpha.24",
|
||||
"@storybook/client-api": "6.2.0-alpha.24",
|
||||
"@storybook/components": "6.2.0-alpha.24",
|
||||
"@storybook/node-logger": "6.2.0-alpha.24",
|
||||
"@storybook/theming": "6.2.0-alpha.24",
|
||||
"core-js": "^3.8.2",
|
||||
"ts-dedent": "^2.0.0"
|
||||
},
|
||||
|
@ -5,5 +5,12 @@
|
||||
"types": ["webpack-env", "jest", "node"]
|
||||
},
|
||||
"include": ["src/**/*"],
|
||||
"exclude": ["src/**.test.ts"]
|
||||
"exclude": [
|
||||
"src/**/*.test.*",
|
||||
"src/**/tests/**/*",
|
||||
"src/**/__tests__/**/*",
|
||||
"src/**/*.stories.*",
|
||||
"src/**/*.mockdata.*",
|
||||
"src/**/__testfixtures__/**"
|
||||
]
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-cssresources",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"description": "A storybook addon to switch between css resources at runtime for your story",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -39,11 +39,11 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/api": "6.2.0-alpha.20",
|
||||
"@storybook/components": "6.2.0-alpha.20",
|
||||
"@storybook/core-events": "6.2.0-alpha.20",
|
||||
"@storybook/theming": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/api": "6.2.0-alpha.24",
|
||||
"@storybook/components": "6.2.0-alpha.24",
|
||||
"@storybook/core-events": "6.2.0-alpha.24",
|
||||
"@storybook/theming": "6.2.0-alpha.24",
|
||||
"core-js": "^3.8.2",
|
||||
"global": "^4.4.0",
|
||||
"regenerator-runtime": "^0.13.7"
|
||||
|
@ -8,6 +8,11 @@
|
||||
"src/**/*"
|
||||
],
|
||||
"exclude": [
|
||||
"src/__tests__/**/*"
|
||||
"src/**/*.test.*",
|
||||
"src/**/tests/**/*",
|
||||
"src/**/__tests__/**/*",
|
||||
"src/**/*.stories.*",
|
||||
"src/**/*.mockdata.*",
|
||||
"src/**/__testfixtures__/**"
|
||||
]
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-design-assets",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"description": "Design asset preview for storybook",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -41,12 +41,12 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/api": "6.2.0-alpha.20",
|
||||
"@storybook/client-logger": "6.2.0-alpha.20",
|
||||
"@storybook/components": "6.2.0-alpha.20",
|
||||
"@storybook/core-events": "6.2.0-alpha.20",
|
||||
"@storybook/theming": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/api": "6.2.0-alpha.24",
|
||||
"@storybook/client-logger": "6.2.0-alpha.24",
|
||||
"@storybook/components": "6.2.0-alpha.24",
|
||||
"@storybook/core-events": "6.2.0-alpha.24",
|
||||
"@storybook/theming": "6.2.0-alpha.24",
|
||||
"core-js": "^3.8.2",
|
||||
"global": "^4.4.0",
|
||||
"regenerator-runtime": "^0.13.7",
|
||||
|
@ -8,6 +8,11 @@
|
||||
"src/**/*"
|
||||
],
|
||||
"exclude": [
|
||||
"src/__tests__/**/*"
|
||||
"src/**/*.test.*",
|
||||
"src/**/tests/**/*",
|
||||
"src/**/__tests__/**/*",
|
||||
"src/**/*.stories.*",
|
||||
"src/**/*.mockdata.*",
|
||||
"src/**/__testfixtures__/**"
|
||||
]
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-docs",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"description": "Document component usage and properties in Markdown",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -55,18 +55,18 @@
|
||||
"@mdx-js/loader": "^1.6.22",
|
||||
"@mdx-js/mdx": "^1.6.22",
|
||||
"@mdx-js/react": "^1.6.22",
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/api": "6.2.0-alpha.20",
|
||||
"@storybook/client-api": "6.2.0-alpha.20",
|
||||
"@storybook/client-logger": "6.2.0-alpha.20",
|
||||
"@storybook/components": "6.2.0-alpha.20",
|
||||
"@storybook/core": "6.2.0-alpha.20",
|
||||
"@storybook/core-events": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/api": "6.2.0-alpha.24",
|
||||
"@storybook/client-api": "6.2.0-alpha.24",
|
||||
"@storybook/client-logger": "6.2.0-alpha.24",
|
||||
"@storybook/components": "6.2.0-alpha.24",
|
||||
"@storybook/core": "6.2.0-alpha.24",
|
||||
"@storybook/core-events": "6.2.0-alpha.24",
|
||||
"@storybook/csf": "0.0.1",
|
||||
"@storybook/node-logger": "6.2.0-alpha.20",
|
||||
"@storybook/postinstall": "6.2.0-alpha.20",
|
||||
"@storybook/source-loader": "6.2.0-alpha.20",
|
||||
"@storybook/theming": "6.2.0-alpha.20",
|
||||
"@storybook/node-logger": "6.2.0-alpha.24",
|
||||
"@storybook/postinstall": "6.2.0-alpha.24",
|
||||
"@storybook/source-loader": "6.2.0-alpha.24",
|
||||
"@storybook/theming": "6.2.0-alpha.24",
|
||||
"acorn": "^7.4.1",
|
||||
"acorn-jsx": "^5.3.1",
|
||||
"acorn-walk": "^7.2.0",
|
||||
@ -92,10 +92,10 @@
|
||||
"@babel/core": "^7.12.10",
|
||||
"@emotion/core": "^10.1.1",
|
||||
"@emotion/styled": "^10.0.27",
|
||||
"@storybook/angular": "6.2.0-alpha.20",
|
||||
"@storybook/react": "6.2.0-alpha.20",
|
||||
"@storybook/vue": "6.2.0-alpha.20",
|
||||
"@storybook/web-components": "6.2.0-alpha.20",
|
||||
"@storybook/angular": "6.2.0-alpha.24",
|
||||
"@storybook/react": "6.2.0-alpha.24",
|
||||
"@storybook/vue": "6.2.0-alpha.24",
|
||||
"@storybook/web-components": "6.2.0-alpha.24",
|
||||
"@types/cross-spawn": "^6.0.2",
|
||||
"@types/doctrine": "^0.0.3",
|
||||
"@types/jest": "^26.0.16",
|
||||
@ -125,8 +125,8 @@
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@babel/core": "^7.11.5",
|
||||
"@storybook/angular": "6.2.0-alpha.20",
|
||||
"@storybook/vue": "6.2.0-alpha.20",
|
||||
"@storybook/angular": "6.2.0-alpha.24",
|
||||
"@storybook/vue": "6.2.0-alpha.24",
|
||||
"babel-loader": "^8.0.0",
|
||||
"react": "^16.8.0 || ^17.0.0",
|
||||
"react-dom": "^16.8.0 || ^17.0.0",
|
||||
|
@ -10,7 +10,11 @@ export const parameters = {
|
||||
// eslint-disable-next-line react/no-danger
|
||||
return <div dangerouslySetInnerHTML={{ __html: html }} />;
|
||||
}
|
||||
return <div ref={(node) => (node ? node.appendChild(html) : null)} />;
|
||||
return (
|
||||
<div
|
||||
ref={(node?: HTMLDivElement): never | null => (node ? node.appendChild(html) : null)}
|
||||
/>
|
||||
);
|
||||
},
|
||||
},
|
||||
};
|
||||
|
12
addons/docs/src/frameworks/vue3/config.ts
Normal file
12
addons/docs/src/frameworks/vue3/config.ts
Normal file
@ -0,0 +1,12 @@
|
||||
import { extractArgTypes } from './extractArgTypes';
|
||||
import { extractComponentDescription } from '../../lib/docgen';
|
||||
import { prepareForInline } from './prepareForInline';
|
||||
|
||||
export const parameters = {
|
||||
docs: {
|
||||
inlineStories: true,
|
||||
prepareForInline,
|
||||
extractArgTypes,
|
||||
extractComponentDescription,
|
||||
},
|
||||
};
|
39
addons/docs/src/frameworks/vue3/extractArgTypes.ts
Normal file
39
addons/docs/src/frameworks/vue3/extractArgTypes.ts
Normal file
@ -0,0 +1,39 @@
|
||||
import { ArgTypes } from '@storybook/api';
|
||||
import { ArgTypesExtractor, hasDocgen, extractComponentProps } from '../../lib/docgen';
|
||||
import { convert } from '../../lib/convert';
|
||||
|
||||
const SECTIONS = ['props', 'events', 'slots'];
|
||||
|
||||
export const extractArgTypes: ArgTypesExtractor = (component) => {
|
||||
if (!hasDocgen(component)) {
|
||||
return null;
|
||||
}
|
||||
const results: ArgTypes = {};
|
||||
SECTIONS.forEach((section) => {
|
||||
const props = extractComponentProps(component, section);
|
||||
props.forEach(({ propDef, docgenInfo, jsDocTags }) => {
|
||||
const { name, type, description, defaultValue: defaultSummary, required } = propDef;
|
||||
const sbType = section === 'props' ? convert(docgenInfo) : { name: 'void' };
|
||||
let defaultValue = defaultSummary && (defaultSummary.detail || defaultSummary.summary);
|
||||
try {
|
||||
// eslint-disable-next-line no-eval
|
||||
defaultValue = eval(defaultValue);
|
||||
// eslint-disable-next-line no-empty
|
||||
} catch {}
|
||||
|
||||
results[name] = {
|
||||
name,
|
||||
description,
|
||||
type: { required, ...sbType },
|
||||
defaultValue,
|
||||
table: {
|
||||
type,
|
||||
jsDocTags,
|
||||
defaultValue: defaultSummary,
|
||||
category: section,
|
||||
},
|
||||
};
|
||||
});
|
||||
});
|
||||
return results;
|
||||
};
|
14
addons/docs/src/frameworks/vue3/prepareForInline.ts
Normal file
14
addons/docs/src/frameworks/vue3/prepareForInline.ts
Normal file
@ -0,0 +1,14 @@
|
||||
import React from 'react';
|
||||
import * as Vue from 'vue';
|
||||
import { StoryFn, StoryContext } from '@storybook/addons';
|
||||
|
||||
// This is cast as `any` to workaround type errors caused by Vue 2 types
|
||||
const { render, h } = Vue as any;
|
||||
|
||||
export const prepareForInline = (storyFn: StoryFn, { args }: StoryContext) => {
|
||||
const component = storyFn();
|
||||
|
||||
return React.createElement('div', {
|
||||
ref: (node?: HTMLDivElement): void => (node ? render(h(component, args), node) : null),
|
||||
});
|
||||
};
|
14
addons/docs/src/frameworks/vue3/preset.ts
Normal file
14
addons/docs/src/frameworks/vue3/preset.ts
Normal file
@ -0,0 +1,14 @@
|
||||
export function webpackFinal(webpackConfig: any = {}, options: any = {}) {
|
||||
webpackConfig.module.rules.push({
|
||||
test: /\.vue$/,
|
||||
loader: require.resolve('vue-docgen-loader', { paths: [require.resolve('@storybook/vue3')] }),
|
||||
enforce: 'post',
|
||||
options: {
|
||||
docgenOptions: {
|
||||
alias: webpackConfig.resolve.alias,
|
||||
...options.vueDocgenOptions,
|
||||
},
|
||||
},
|
||||
});
|
||||
return webpackConfig;
|
||||
}
|
@ -5,5 +5,11 @@
|
||||
"types": ["webpack-env", "jest", "node"]
|
||||
},
|
||||
"include": ["src/**/*"],
|
||||
"exclude": ["src/**.test.ts"]
|
||||
"exclude": [
|
||||
"src/**/*.test.*",
|
||||
"src/**/__tests__/**/*",
|
||||
"src/**/*.stories.*",
|
||||
"src/**/*.mockdata.*",
|
||||
"src/**/__testfixtures__/**"
|
||||
]
|
||||
}
|
||||
|
156
addons/docs/vue3/README.md
Normal file
156
addons/docs/vue3/README.md
Normal file
@ -0,0 +1,156 @@
|
||||
<center>
|
||||
<img src="../docs/media/vue-hero.png" width="100%" />
|
||||
</center>
|
||||
|
||||
<h1>Storybook Docs for Vue 3</h1>
|
||||
|
||||
> migration guide: This page documents the method to configure storybook introduced recently in 5.3.0, consult the [migration guide](https://github.com/storybookjs/storybook/blob/next/MIGRATION.md) if you want to migrate to this format of configuring storybook.
|
||||
|
||||
Storybook Docs transforms your Storybook stories into world-class component documentation. Storybook Docs for Vue 3 supports [DocsPage](../docs/docspage.md) for auto-generated docs, and [MDX](../docs/mdx.md) for rich long-form docs.
|
||||
|
||||
To learn more about Storybook Docs, read the [general documentation](../README.md). To learn the Vue 3 specifics, read on!
|
||||
|
||||
- [Installation](#installation)
|
||||
- [Preset options](#preset-options)
|
||||
- [DocsPage](#docspage)
|
||||
- [Props tables](#props-tables)
|
||||
- [MDX](#mdx)
|
||||
- [Inline Stories](#inline-stories)
|
||||
- [More resources](#more-resources)
|
||||
|
||||
## Installation
|
||||
|
||||
First add the package. Make sure that the versions for your `@storybook/*` packages match:
|
||||
|
||||
```sh
|
||||
yarn add -D @storybook/addon-docs@next
|
||||
```
|
||||
|
||||
Then add the following to your `.storybook/main.js` addons:
|
||||
|
||||
```js
|
||||
module.exports = {
|
||||
addons: ['@storybook/addon-docs'],
|
||||
};
|
||||
```
|
||||
|
||||
## Preset options
|
||||
|
||||
The `addon-docs` preset for Vue has a configuration option that can be used to configure [`vue-docgen-api`](https://github.com/vue-styleguidist/vue-styleguidist/tree/dev/packages/vue-docgen-api), a tool which extracts information from Vue components. Here's an example of how to use the preset with options for Vue app:
|
||||
|
||||
```js
|
||||
const path = require('path');
|
||||
|
||||
module.exports = {
|
||||
addons: [
|
||||
{
|
||||
name: '@storybook/addon-docs',
|
||||
options: {
|
||||
vueDocgenOptions: {
|
||||
alias: {
|
||||
'@': path.resolve(__dirname, '../'),
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
```
|
||||
|
||||
The `vueDocgenOptions` is an object for configuring `vue-docgen-api`. See [`vue-docgen-api`'s docs](https://github.com/vue-styleguidist/vue-styleguidist/tree/dev/packages/vue-docgen-api#options-docgenoptions) for available configuration options.
|
||||
|
||||
## DocsPage
|
||||
|
||||
When you [install docs](#installation) you should get basic [DocsPage](../docs/docspage.md) documentation automagically for all your stories, available in the `Docs` tab of the Storybook UI.
|
||||
|
||||
## Props tables
|
||||
|
||||
Getting [Props tables](../docs/props-tables.md) for your components requires a few more steps. Docs for Vue relies on [`vue-docgen-loader`](https://github.com/pocka/vue-docgen-loader). It supports `props`, `events`, and `slots` as first class prop types.
|
||||
|
||||
Finally, be sure to fill in the `component` field in your story metadata:
|
||||
|
||||
```ts
|
||||
import { InfoButton } from './InfoButton.vue';
|
||||
|
||||
export default {
|
||||
title: 'InfoButton',
|
||||
component: InfoButton,
|
||||
};
|
||||
```
|
||||
|
||||
If you haven't upgraded from `storiesOf`, you can use a parameter to do the same thing:
|
||||
|
||||
```ts
|
||||
import { storiesOf } from '@storybook/vue';
|
||||
import { InfoButton } from './InfoButton.vue';
|
||||
|
||||
storiesOf('InfoButton', module)
|
||||
.addParameters({ component: InfoButton })
|
||||
.add( ... );
|
||||
```
|
||||
|
||||
## MDX
|
||||
|
||||
[MDX](../docs/mdx.md) is a convenient way to document your components in Markdown and embed documentation components, such as stories and props tables, inline.
|
||||
|
||||
Docs has peer dependencies on `react` and `babel-loader`. If you want to write stories in MDX, you'll need to add these dependencies as well:
|
||||
|
||||
```sh
|
||||
yarn add -D react babel-loader
|
||||
```
|
||||
|
||||
Then update your `.storybook/main.js` to make sure you load MDX files:
|
||||
|
||||
```js
|
||||
module.exports = {
|
||||
stories: ['../src/stories/**/*.stories.@(js|mdx)'],
|
||||
};
|
||||
```
|
||||
|
||||
Finally, you can create MDX files like this:
|
||||
|
||||
```md
|
||||
import { Meta, Story, ArgsTable } from '@storybook/addon-docs/blocks';
|
||||
import { InfoButton } from './InfoButton.vue';
|
||||
|
||||
<Meta title='InfoButton' component={InfoButton} />
|
||||
|
||||
# InfoButton
|
||||
|
||||
Some **markdown** description, or whatever you want.
|
||||
|
||||
<Story name='basic' height='400px'>{{
|
||||
components: { InfoButton },
|
||||
template: '<info-button label="I\'m a button!"/>',
|
||||
}}</Story>
|
||||
|
||||
## ArgsTable
|
||||
|
||||
<ArgsTable of={InfoButton} />
|
||||
```
|
||||
|
||||
Yes, it's redundant to declare `component` twice. [Coming soon](https://github.com/storybookjs/storybook/issues/8685).
|
||||
|
||||
## Inline Stories
|
||||
|
||||
Storybook Docs renders all Vue stories inside IFrames, with a default height of `60px` (configurable using the `docs.iframeHeight` story parameter).
|
||||
|
||||
Starting in 5.3, you can also render stories inline, and in 6.0 this has become the default behavior. To render inline, update `.storybook/preview.js`:
|
||||
|
||||
```js
|
||||
import { addParameters } from '@storybook/vue';
|
||||
|
||||
addParameters({
|
||||
docs: {
|
||||
inlineStories: true,
|
||||
},
|
||||
});
|
||||
```
|
||||
|
||||
## More resources
|
||||
|
||||
Want to learn more? Here are some more articles on Storybook Docs:
|
||||
|
||||
- References: [DocsPage](../docs/docspage.md) / [MDX](../docs/mdx.md) / [FAQ](../docs/faq.md) / [Recipes](../docs/recipes.md) / [Theming](../docs/theming.md) / [Props](../docs/props-tables.md)
|
||||
- Announcements: [Vision](https://medium.com/storybookjs/storybook-docs-sneak-peak-5be78445094a) / [DocsPage](https://medium.com/storybookjs/storybook-docspage-e185bc3622bf) / [MDX](https://medium.com/storybookjs/rich-docs-with-storybook-mdx-61bc145ae7bc) / [Framework support](https://medium.com/storybookjs/storybook-docs-for-new-frameworks-b1f6090ee0ea)
|
||||
- Example: [Storybook Design System](https://github.com/storybookjs/design-system)
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-essentials",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"description": "Curated addons to bring out the best of Storybook",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -35,15 +35,15 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addon-actions": "6.2.0-alpha.20",
|
||||
"@storybook/addon-backgrounds": "6.2.0-alpha.20",
|
||||
"@storybook/addon-controls": "6.2.0-alpha.20",
|
||||
"@storybook/addon-docs": "6.2.0-alpha.20",
|
||||
"@storybook/addon-toolbars": "6.2.0-alpha.20",
|
||||
"@storybook/addon-viewport": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/api": "6.2.0-alpha.20",
|
||||
"@storybook/node-logger": "6.2.0-alpha.20",
|
||||
"@storybook/addon-actions": "6.2.0-alpha.24",
|
||||
"@storybook/addon-backgrounds": "6.2.0-alpha.24",
|
||||
"@storybook/addon-controls": "6.2.0-alpha.24",
|
||||
"@storybook/addon-docs": "6.2.0-alpha.24",
|
||||
"@storybook/addon-toolbars": "6.2.0-alpha.24",
|
||||
"@storybook/addon-viewport": "6.2.0-alpha.24",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/api": "6.2.0-alpha.24",
|
||||
"@storybook/node-logger": "6.2.0-alpha.24",
|
||||
"core-js": "^3.8.2",
|
||||
"regenerator-runtime": "^0.13.7",
|
||||
"ts-dedent": "^2.0.0"
|
||||
@ -51,12 +51,12 @@
|
||||
"devDependencies": {
|
||||
"@types/jest": "^26.0.16",
|
||||
"@babel/core": "^7.12.10",
|
||||
"@storybook/vue": "6.2.0-alpha.20",
|
||||
"@storybook/vue": "6.2.0-alpha.24",
|
||||
"@types/webpack-env": "^1.16.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@babel/core": "^7.9.6",
|
||||
"@storybook/vue": "6.2.0-alpha.20",
|
||||
"@storybook/vue": "6.2.0-alpha.24",
|
||||
"babel-loader": "^8.0.0",
|
||||
"react": "^16.8.0 || ^17.0.0",
|
||||
"react-dom": "^16.8.0 || ^17.0.0",
|
||||
|
@ -5,5 +5,12 @@
|
||||
"types": ["webpack-env", "jest", "node"]
|
||||
},
|
||||
"include": ["src/**/*"],
|
||||
"exclude": ["src/**.test.ts"]
|
||||
"exclude": [
|
||||
"src/**/*.test.*",
|
||||
"src/**/tests/**/*",
|
||||
"src/**/__tests__/**/*",
|
||||
"src/**/*.stories.*",
|
||||
"src/**/*.mockdata.*",
|
||||
"src/**/__testfixtures__/**"
|
||||
]
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-events",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"description": "Add events to your Storybook stories.",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -38,11 +38,11 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/api": "6.2.0-alpha.20",
|
||||
"@storybook/client-api": "6.2.0-alpha.20",
|
||||
"@storybook/core-events": "6.2.0-alpha.20",
|
||||
"@storybook/theming": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/api": "6.2.0-alpha.24",
|
||||
"@storybook/client-api": "6.2.0-alpha.24",
|
||||
"@storybook/core-events": "6.2.0-alpha.24",
|
||||
"@storybook/theming": "6.2.0-alpha.24",
|
||||
"core-js": "^3.8.2",
|
||||
"format-json": "^1.0.3",
|
||||
"lodash": "^4.17.20",
|
||||
|
@ -8,6 +8,11 @@
|
||||
"src/**/*"
|
||||
],
|
||||
"exclude": [
|
||||
"src/__tests__/**/*"
|
||||
"src/**/*.test.*",
|
||||
"src/**/tests/**/*",
|
||||
"src/**/__tests__/**/*",
|
||||
"src/**/*.stories.*",
|
||||
"src/**/*.mockdata.*",
|
||||
"src/**/__testfixtures__/**"
|
||||
]
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-google-analytics",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"description": "Storybook addon for google analytics",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -30,8 +30,8 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/core-events": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/core-events": "6.2.0-alpha.24",
|
||||
"core-js": "^3.8.2",
|
||||
"global": "^4.4.0",
|
||||
"react-ga": "^2.7.0",
|
||||
|
@ -8,6 +8,11 @@
|
||||
"src/**/*"
|
||||
],
|
||||
"exclude": [
|
||||
"src/__tests__/**/*"
|
||||
"src/**/*.test.*",
|
||||
"src/**/tests/**/*",
|
||||
"src/**/__tests__/**/*",
|
||||
"src/**/*.stories.*",
|
||||
"src/**/*.mockdata.*",
|
||||
"src/**/__testfixtures__/**"
|
||||
]
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-graphql",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"description": "Storybook addon to display the GraphiQL IDE",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -38,8 +38,8 @@
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.12.10",
|
||||
"@babel/plugin-transform-classes": "^7.12.1",
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/api": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/api": "6.2.0-alpha.24",
|
||||
"babel-loader": "^8.2.2",
|
||||
"core-js": "^3.8.2",
|
||||
"global": "^4.4.0",
|
||||
|
@ -8,6 +8,11 @@
|
||||
"src/**/*"
|
||||
],
|
||||
"exclude": [
|
||||
"src/__tests__/**/*"
|
||||
"src/**/*.test.*",
|
||||
"src/**/tests/**/*",
|
||||
"src/**/__tests__/**/*",
|
||||
"src/**/*.stories.*",
|
||||
"src/**/*.mockdata.*",
|
||||
"src/**/__testfixtures__/**"
|
||||
]
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-jest",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"description": "React storybook addon that show component jest report",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -42,11 +42,11 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/api": "6.2.0-alpha.20",
|
||||
"@storybook/components": "6.2.0-alpha.20",
|
||||
"@storybook/core-events": "6.2.0-alpha.20",
|
||||
"@storybook/theming": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/api": "6.2.0-alpha.24",
|
||||
"@storybook/components": "6.2.0-alpha.24",
|
||||
"@storybook/core-events": "6.2.0-alpha.24",
|
||||
"@storybook/theming": "6.2.0-alpha.24",
|
||||
"core-js": "^3.8.2",
|
||||
"global": "^4.4.0",
|
||||
"react-sizeme": "^2.6.12",
|
||||
|
@ -4,6 +4,15 @@
|
||||
"rootDir": "./src",
|
||||
"types": ["webpack-env", "jest"]
|
||||
},
|
||||
"include": ["src/**/*"],
|
||||
"exclude": ["src/__tests__/**/*"]
|
||||
"include": [
|
||||
"src/**/*"
|
||||
],
|
||||
"exclude": [
|
||||
"src/**/*.test.*",
|
||||
"src/**/tests/**/*",
|
||||
"src/**/__tests__/**/*",
|
||||
"src/**/*.stories.*",
|
||||
"src/**/*.mockdata.*",
|
||||
"src/**/__testfixtures__/**"
|
||||
]
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-knobs",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"description": "Storybook Addon Prop Editor Component",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -36,13 +36,13 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/api": "6.2.0-alpha.20",
|
||||
"@storybook/channels": "6.2.0-alpha.20",
|
||||
"@storybook/client-api": "6.2.0-alpha.20",
|
||||
"@storybook/components": "6.2.0-alpha.20",
|
||||
"@storybook/core-events": "6.2.0-alpha.20",
|
||||
"@storybook/theming": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/api": "6.2.0-alpha.24",
|
||||
"@storybook/channels": "6.2.0-alpha.24",
|
||||
"@storybook/client-api": "6.2.0-alpha.24",
|
||||
"@storybook/components": "6.2.0-alpha.24",
|
||||
"@storybook/core-events": "6.2.0-alpha.24",
|
||||
"@storybook/theming": "6.2.0-alpha.24",
|
||||
"copy-to-clipboard": "^3.3.1",
|
||||
"core-js": "^3.8.2",
|
||||
"escape-html": "^1.0.3",
|
||||
|
@ -7,5 +7,12 @@
|
||||
"noUnusedLocals": true
|
||||
},
|
||||
"include": ["src/**/*"],
|
||||
"exclude": ["src/__tests__/**/*"]
|
||||
"exclude": [
|
||||
"src/**/*.test.*",
|
||||
"src/**/tests/**/*",
|
||||
"src/**/__tests__/**/*",
|
||||
"src/**/*.stories.*",
|
||||
"src/**/*.mockdata.*",
|
||||
"src/**/__testfixtures__/**"
|
||||
]
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-links",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"description": "Link stories together to build demos and prototypes with your UI components",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -36,11 +36,11 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/client-logger": "6.2.0-alpha.20",
|
||||
"@storybook/core-events": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/client-logger": "6.2.0-alpha.24",
|
||||
"@storybook/core-events": "6.2.0-alpha.24",
|
||||
"@storybook/csf": "0.0.1",
|
||||
"@storybook/router": "6.2.0-alpha.20",
|
||||
"@storybook/router": "6.2.0-alpha.24",
|
||||
"@types/qs": "^6.9.5",
|
||||
"core-js": "^3.8.2",
|
||||
"global": "^4.4.0",
|
||||
|
@ -8,6 +8,11 @@
|
||||
"src/**/*"
|
||||
],
|
||||
"exclude": [
|
||||
"src/__tests__/**/*"
|
||||
"src/**/*.test.*",
|
||||
"src/**/tests/**/*",
|
||||
"src/**/__tests__/**/*",
|
||||
"src/**/*.stories.*",
|
||||
"src/**/*.mockdata.*",
|
||||
"src/**/__testfixtures__/**"
|
||||
]
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-queryparams",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"description": "parameter addon for storybook",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -37,12 +37,12 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/api": "6.2.0-alpha.20",
|
||||
"@storybook/client-logger": "6.2.0-alpha.20",
|
||||
"@storybook/components": "6.2.0-alpha.20",
|
||||
"@storybook/core-events": "6.2.0-alpha.20",
|
||||
"@storybook/theming": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/api": "6.2.0-alpha.24",
|
||||
"@storybook/client-logger": "6.2.0-alpha.24",
|
||||
"@storybook/components": "6.2.0-alpha.24",
|
||||
"@storybook/core-events": "6.2.0-alpha.24",
|
||||
"@storybook/theming": "6.2.0-alpha.24",
|
||||
"core-js": "^3.8.2",
|
||||
"global": "^4.4.0",
|
||||
"qs": "^6.9.5",
|
||||
|
@ -8,6 +8,11 @@
|
||||
"src/**/*"
|
||||
],
|
||||
"exclude": [
|
||||
"src/__tests__/**/*"
|
||||
"src/**/*.test.*",
|
||||
"src/**/tests/**/*",
|
||||
"src/**/__tests__/**/*",
|
||||
"src/**/*.stories.*",
|
||||
"src/**/*.mockdata.*",
|
||||
"src/**/__testfixtures__/**"
|
||||
]
|
||||
}
|
||||
|
@ -210,6 +210,29 @@ module.exports = {
|
||||
};
|
||||
```
|
||||
|
||||
### Configure Jest for Vue 3
|
||||
|
||||
StoryShots addon for Vue is dependent on [vue-jest v5](https://www.npmjs.com/package/vue-jest/v/5.0.0-alpha.8), but
|
||||
[doesn't](#deps-issue) install it, so you need to install it separately.
|
||||
|
||||
```sh
|
||||
yarn add vue-jest@5.0.0-alpha.8
|
||||
```
|
||||
|
||||
If you already use Jest for testing your vue app - probably you already have the needed jest configuration.
|
||||
Anyway you can add these lines to your jest config:
|
||||
|
||||
```js
|
||||
module.exports = {
|
||||
transform: {
|
||||
'^.+\\.jsx?$': 'babel-jest',
|
||||
'.*\\.(vue)$': '<rootDir>/node_modules/vue-jest',
|
||||
},
|
||||
transformIgnorePatterns: ['/node_modules/(?!(@storybook/.*\\.vue$))'],
|
||||
moduleFileExtensions: ['vue', 'js', 'jsx', 'json', 'node'],
|
||||
};
|
||||
```
|
||||
|
||||
### Configure Jest for Preact
|
||||
|
||||
StoryShots addon for Preact is dependent on [preact-render-to-json](https://github.com/nathancahill/preact-render-to-json), but
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-storyshots",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"description": "Take a code snapshot of every story automatically with Jest",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -40,9 +40,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@jest/transform": "^26.6.2",
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/client-api": "6.2.0-alpha.20",
|
||||
"@storybook/core": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/client-api": "6.2.0-alpha.24",
|
||||
"@storybook/core": "6.2.0-alpha.24",
|
||||
"@types/glob": "^7.1.3",
|
||||
"@types/jest": "^26.0.16",
|
||||
"@types/jest-specific-snapshot": "^0.5.3",
|
||||
@ -58,9 +58,9 @@
|
||||
"ts-dedent": "^2.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-docs": "6.2.0-alpha.20",
|
||||
"@storybook/angular": "6.2.0-alpha.20",
|
||||
"@storybook/react": "6.2.0-alpha.20",
|
||||
"@storybook/addon-docs": "6.2.0-alpha.24",
|
||||
"@storybook/angular": "6.2.0-alpha.24",
|
||||
"@storybook/react": "6.2.0-alpha.24",
|
||||
"babel-loader": "^8.2.2",
|
||||
"enzyme": "^3.11.0",
|
||||
"enzyme-to-json": "^3.6.1",
|
||||
|
@ -7,5 +7,6 @@ export type SupportedFramework =
|
||||
| 'react-native'
|
||||
| 'svelte'
|
||||
| 'vue'
|
||||
| 'vue3'
|
||||
| 'web-components'
|
||||
| 'rax';
|
||||
|
@ -0,0 +1,33 @@
|
||||
import global from 'global';
|
||||
import hasDependency from '../hasDependency';
|
||||
import configure from '../configure';
|
||||
import { Loader } from '../Loader';
|
||||
import { StoryshotsOptions } from '../../api/StoryshotsOptions';
|
||||
|
||||
function test(options: StoryshotsOptions): boolean {
|
||||
return options.framework === 'vue3' || (!options.framework && hasDependency('@storybook/vue3'));
|
||||
}
|
||||
|
||||
function load(options: StoryshotsOptions) {
|
||||
global.STORYBOOK_ENV = 'vue3';
|
||||
|
||||
const storybook = jest.requireActual('@storybook/vue3');
|
||||
|
||||
configure({ ...options, storybook });
|
||||
|
||||
return {
|
||||
framework: 'vue3' as const,
|
||||
renderTree: jest.requireActual('./renderTree').default,
|
||||
renderShallowTree: () => {
|
||||
throw new Error('Shallow renderer is not supported for Vue 3');
|
||||
},
|
||||
storybook,
|
||||
};
|
||||
}
|
||||
|
||||
const vueLoader: Loader = {
|
||||
load,
|
||||
test,
|
||||
};
|
||||
|
||||
export default vueLoader;
|
@ -0,0 +1,31 @@
|
||||
import * as Vue from 'vue';
|
||||
import { document } from 'global';
|
||||
import dedent from 'ts-dedent';
|
||||
|
||||
// This is cast as `any` to workaround type errors caused by Vue 2 types
|
||||
const { render, h } = Vue as any;
|
||||
|
||||
function getRenderedTree(story: any) {
|
||||
const component = story.render();
|
||||
|
||||
const vnode = h(component, story.args);
|
||||
|
||||
// Vue 3's Jest renderer throws if all of the required props aren't specified
|
||||
// So we try/catch and warn the user if they forgot to specify one in their args
|
||||
try {
|
||||
render(vnode, document.createElement('div'));
|
||||
} catch (err) {
|
||||
// Jest throws an error when you call `console.error`
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(
|
||||
dedent`
|
||||
Storyshots encountered an error while rendering Vue 3 story: ${story.id}
|
||||
Did you remember to define every prop you are using in the story?
|
||||
`
|
||||
);
|
||||
}
|
||||
|
||||
return vnode.el;
|
||||
}
|
||||
|
||||
export default getRenderedTree;
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-storyshots-puppeteer",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"description": "Image snapshots addition to StoryShots based on puppeteer",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -37,7 +37,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/csf": "0.0.1",
|
||||
"@storybook/node-logger": "6.2.0-alpha.20",
|
||||
"@storybook/node-logger": "6.2.0-alpha.24",
|
||||
"@types/jest-image-snapshot": "^4.1.3",
|
||||
"@wordpress/jest-puppeteer-axe": "^1.10.0",
|
||||
"core-js": "^3.8.2",
|
||||
@ -49,7 +49,7 @@
|
||||
"@types/puppeteer": "^5.4.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@storybook/addon-storyshots": "6.2.0-alpha.20",
|
||||
"@storybook/addon-storyshots": "6.2.0-alpha.24",
|
||||
"puppeteer": "^2.0.0 || ^3.0.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-storysource",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"description": "View a story’s source code to see how it works and paste into your app",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -36,13 +36,13 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/api": "6.2.0-alpha.20",
|
||||
"@storybook/client-logger": "6.2.0-alpha.20",
|
||||
"@storybook/components": "6.2.0-alpha.20",
|
||||
"@storybook/router": "6.2.0-alpha.20",
|
||||
"@storybook/source-loader": "6.2.0-alpha.20",
|
||||
"@storybook/theming": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/api": "6.2.0-alpha.24",
|
||||
"@storybook/client-logger": "6.2.0-alpha.24",
|
||||
"@storybook/components": "6.2.0-alpha.24",
|
||||
"@storybook/router": "6.2.0-alpha.24",
|
||||
"@storybook/source-loader": "6.2.0-alpha.24",
|
||||
"@storybook/theming": "6.2.0-alpha.24",
|
||||
"core-js": "^3.8.2",
|
||||
"estraverse": "^5.2.0",
|
||||
"loader-utils": "^2.0.0",
|
||||
|
@ -8,6 +8,11 @@
|
||||
"src/**/*"
|
||||
],
|
||||
"exclude": [
|
||||
"src/__tests__/**/*"
|
||||
"src/**/*.test.*",
|
||||
"src/**/tests/**/*",
|
||||
"src/**/__tests__/**/*",
|
||||
"src/**/*.stories.*",
|
||||
"src/**/*.mockdata.*",
|
||||
"src/**/__testfixtures__/**"
|
||||
]
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-toolbars",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"description": "Create your own toolbar items that control story rendering",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -39,10 +39,10 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/api": "6.2.0-alpha.20",
|
||||
"@storybook/client-api": "6.2.0-alpha.20",
|
||||
"@storybook/components": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/api": "6.2.0-alpha.24",
|
||||
"@storybook/client-api": "6.2.0-alpha.24",
|
||||
"@storybook/components": "6.2.0-alpha.24",
|
||||
"core-js": "^3.8.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
@ -5,5 +5,12 @@
|
||||
"types": ["webpack-env", "jest"]
|
||||
},
|
||||
"include": ["src/**/*"],
|
||||
"exclude": ["src/**.test.ts"]
|
||||
"exclude": [
|
||||
"src/**/*.test.*",
|
||||
"src/**/tests/**/*",
|
||||
"src/**/__tests__/**/*",
|
||||
"src/**/*.stories.*",
|
||||
"src/**/*.mockdata.*",
|
||||
"src/**/__testfixtures__/**"
|
||||
]
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-viewport",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"description": "Build responsive components by adjusting Storybook’s viewport size and orientation",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -36,12 +36,12 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/api": "6.2.0-alpha.20",
|
||||
"@storybook/client-logger": "6.2.0-alpha.20",
|
||||
"@storybook/components": "6.2.0-alpha.20",
|
||||
"@storybook/core-events": "6.2.0-alpha.20",
|
||||
"@storybook/theming": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/api": "6.2.0-alpha.24",
|
||||
"@storybook/client-logger": "6.2.0-alpha.24",
|
||||
"@storybook/components": "6.2.0-alpha.24",
|
||||
"@storybook/core-events": "6.2.0-alpha.24",
|
||||
"@storybook/theming": "6.2.0-alpha.24",
|
||||
"core-js": "^3.8.2",
|
||||
"global": "^4.4.0",
|
||||
"memoizerific": "^1.11.3",
|
||||
|
@ -8,6 +8,11 @@
|
||||
"src/**/*"
|
||||
],
|
||||
"exclude": [
|
||||
"src/__tests__/**/*"
|
||||
"src/**/*.test.*",
|
||||
"src/**/tests/**/*",
|
||||
"src/**/__tests__/**/*",
|
||||
"src/**/*.stories.*",
|
||||
"src/**/*.mockdata.*",
|
||||
"src/**/__testfixtures__/**"
|
||||
]
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/angular",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"description": "Storybook for Angular: Develop Angular Components in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -41,10 +41,10 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/core": "6.2.0-alpha.20",
|
||||
"@storybook/core-common": "6.2.0-alpha.20",
|
||||
"@storybook/node-logger": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/core": "6.2.0-alpha.24",
|
||||
"@storybook/core-common": "6.2.0-alpha.24",
|
||||
"@storybook/node-logger": "6.2.0-alpha.24",
|
||||
"@types/webpack-env": "^1.16.0",
|
||||
"autoprefixer": "^9.8.6",
|
||||
"core-js": "^3.8.2",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/aurelia",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"description": "Storybook for Aurelia: Develop Aurelia Components in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -35,11 +35,11 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@aurelia/webpack-loader": "^0.7.0",
|
||||
"@storybook/addon-knobs": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/core-common": "6.2.0-alpha.20",
|
||||
"@storybook/core": "6.2.0-alpha.20",
|
||||
"@storybook/node-logger": "6.2.0-alpha.20",
|
||||
"@storybook/addon-knobs": "6.2.0-alpha.24",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/core-common": "6.2.0-alpha.24",
|
||||
"@storybook/core": "6.2.0-alpha.24",
|
||||
"@storybook/node-logger": "6.2.0-alpha.24",
|
||||
"fork-ts-checker-webpack-plugin": "^6.0.4",
|
||||
"global": "^4.4.0",
|
||||
"react": "16.14.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/ember",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"description": "Storybook for Ember: Develop Ember Component in isolation with Hot Reloading.",
|
||||
"homepage": "https://github.com/storybookjs/storybook/tree/master/app/ember",
|
||||
"bugs": {
|
||||
@ -39,8 +39,8 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@ember/test-helpers": "^2.1.4",
|
||||
"@storybook/core-common": "6.2.0-alpha.20",
|
||||
"@storybook/core": "6.2.0-alpha.20",
|
||||
"@storybook/core-common": "6.2.0-alpha.24",
|
||||
"@storybook/core": "6.2.0-alpha.24",
|
||||
"core-js": "^3.8.2",
|
||||
"global": "^4.4.0",
|
||||
"react": "16.14.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/html",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"description": "Storybook for HTML: View HTML snippets in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -41,10 +41,10 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/client-api": "6.2.0-alpha.20",
|
||||
"@storybook/core": "6.2.0-alpha.20",
|
||||
"@storybook/core-common": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/client-api": "6.2.0-alpha.24",
|
||||
"@storybook/core": "6.2.0-alpha.24",
|
||||
"@storybook/core-common": "6.2.0-alpha.24",
|
||||
"@types/webpack-env": "^1.16.0",
|
||||
"core-js": "^3.8.2",
|
||||
"global": "^4.4.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/marionette",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"description": "Storybook for Marionette: Develop Marionette.js component in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -34,8 +34,8 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/core": "6.2.0-alpha.20",
|
||||
"@storybook/core-common": "6.2.0-alpha.20",
|
||||
"@storybook/core": "6.2.0-alpha.24",
|
||||
"@storybook/core-common": "6.2.0-alpha.24",
|
||||
"common-tags": "^1.8.0",
|
||||
"core-js": "^3.8.2",
|
||||
"global": "^4.4.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/marko",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"description": "Storybook for Marko: Develop Marko Component in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -42,9 +42,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@marko/webpack": "^7.0.0",
|
||||
"@storybook/client-logger": "6.2.0-alpha.20",
|
||||
"@storybook/core": "6.2.0-alpha.20",
|
||||
"@storybook/core-common": "6.2.0-alpha.20",
|
||||
"@storybook/client-logger": "6.2.0-alpha.24",
|
||||
"@storybook/core": "6.2.0-alpha.24",
|
||||
"@storybook/core-common": "6.2.0-alpha.24",
|
||||
"@types/webpack-env": "^1.16.0",
|
||||
"core-js": "^3.8.2",
|
||||
"global": "^4.4.0",
|
||||
|
@ -1,8 +1,7 @@
|
||||
import { sync } from 'read-pkg-up';
|
||||
import { LoadOptions } from '@storybook/core-common';
|
||||
|
||||
export default {
|
||||
packageJson: sync({ cwd: __dirname }).packageJson,
|
||||
framework: 'marko',
|
||||
frameworkPresets: [require.resolve('./framework-preset-marko.js')],
|
||||
} as LoadOptions;
|
||||
};
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/mithril",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"description": "Storybook for Mithril: Develop Mithril Component in isolation.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -43,9 +43,9 @@
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.12.10",
|
||||
"@babel/plugin-transform-react-jsx": "^7.12.12",
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/core": "6.2.0-alpha.20",
|
||||
"@storybook/core-common": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/core": "6.2.0-alpha.24",
|
||||
"@storybook/core-common": "6.2.0-alpha.24",
|
||||
"@types/mithril": "^2.0.6",
|
||||
"@types/webpack-env": "^1.16.0",
|
||||
"core-js": "^3.8.2",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/preact",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"description": "Storybook for Preact: Develop Preact Component in isolation.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -42,9 +42,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/plugin-transform-react-jsx": "^7.12.12",
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/core": "6.2.0-alpha.20",
|
||||
"@storybook/core-common": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/core": "6.2.0-alpha.24",
|
||||
"@storybook/core-common": "6.2.0-alpha.24",
|
||||
"@types/webpack-env": "^1.16.0",
|
||||
"core-js": "^3.8.2",
|
||||
"global": "^4.4.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/rax",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"description": "Storybook for Rax: Develop Rax Component in isolation.",
|
||||
"keywords": [
|
||||
"rax",
|
||||
@ -42,8 +42,8 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/core": "6.2.0-alpha.20",
|
||||
"@storybook/core-common": "6.2.0-alpha.20",
|
||||
"@storybook/core": "6.2.0-alpha.24",
|
||||
"@storybook/core-common": "6.2.0-alpha.24",
|
||||
"babel-preset-rax": "^1.0.0-beta.0",
|
||||
"core-js": "^3.8.2",
|
||||
"driver-dom": "^2.2.0",
|
||||
|
@ -1,8 +1,7 @@
|
||||
import { sync } from 'read-pkg-up';
|
||||
import { LoadOptions } from '@storybook/core-common';
|
||||
|
||||
export default {
|
||||
packageJson: sync({ cwd: __dirname }).packageJson,
|
||||
framework: 'rax',
|
||||
frameworkPresets: [require.resolve('./framework-preset-rax.js')],
|
||||
} as LoadOptions;
|
||||
};
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/react",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"description": "Storybook for React: Develop React Component in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -45,10 +45,10 @@
|
||||
"@babel/preset-flow": "^7.12.1",
|
||||
"@babel/preset-react": "^7.12.10",
|
||||
"@pmmmwh/react-refresh-webpack-plugin": "^0.4.2",
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/core": "6.2.0-alpha.20",
|
||||
"@storybook/core-common": "6.2.0-alpha.20",
|
||||
"@storybook/node-logger": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/core": "6.2.0-alpha.24",
|
||||
"@storybook/core-common": "6.2.0-alpha.24",
|
||||
"@storybook/node-logger": "6.2.0-alpha.24",
|
||||
"@storybook/semver": "^7.3.2",
|
||||
"@types/webpack-env": "^1.16.0",
|
||||
"babel-plugin-add-react-displayname": "^0.0.5",
|
||||
@ -67,7 +67,7 @@
|
||||
"webpack": "^5.9.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/client-api": "6.2.0-alpha.20",
|
||||
"@storybook/client-api": "6.2.0-alpha.24",
|
||||
"@types/node": "^14.14.20",
|
||||
"@types/prompts": "^2.0.9"
|
||||
},
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/riot",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"description": "Storybook for riot.js: View riot snippets in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -42,8 +42,8 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/core": "6.2.0-alpha.20",
|
||||
"@storybook/core-common": "6.2.0-alpha.20",
|
||||
"@storybook/core": "6.2.0-alpha.24",
|
||||
"@storybook/core-common": "6.2.0-alpha.24",
|
||||
"core-js": "^3.8.2",
|
||||
"global": "^4.4.0",
|
||||
"raw-loader": "^4.0.2",
|
||||
|
@ -1,8 +1,7 @@
|
||||
import { sync } from 'read-pkg-up';
|
||||
import { LoadOptions } from '@storybook/core-common';
|
||||
|
||||
export default {
|
||||
packageJson: sync({ cwd: __dirname }).packageJson,
|
||||
framework: 'riot',
|
||||
frameworkPresets: [require.resolve('./framework-preset-riot.js')],
|
||||
} as LoadOptions;
|
||||
};
|
||||
|
@ -2,7 +2,7 @@
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"rootDir": "./src",
|
||||
"types": ["webpack-env", "node"],
|
||||
"types": ["webpack-env", "node", "jest"],
|
||||
"resolveJsonModule": true
|
||||
},
|
||||
"include": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/server",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"description": "Storybook for Server: View HTML snippets from a server in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -41,12 +41,12 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/api": "6.2.0-alpha.20",
|
||||
"@storybook/client-api": "6.2.0-alpha.20",
|
||||
"@storybook/core": "6.2.0-alpha.20",
|
||||
"@storybook/core-common": "6.2.0-alpha.20",
|
||||
"@storybook/node-logger": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/api": "6.2.0-alpha.24",
|
||||
"@storybook/client-api": "6.2.0-alpha.24",
|
||||
"@storybook/core": "6.2.0-alpha.24",
|
||||
"@storybook/core-common": "6.2.0-alpha.24",
|
||||
"@storybook/node-logger": "6.2.0-alpha.24",
|
||||
"@types/webpack-env": "^1.16.0",
|
||||
"core-js": "^3.8.2",
|
||||
"global": "^4.4.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/svelte",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"description": "Storybook for Svelte: Develop Svelte Component in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -41,9 +41,9 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/core": "6.2.0-alpha.20",
|
||||
"@storybook/core-common": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/core": "6.2.0-alpha.24",
|
||||
"@storybook/core-common": "6.2.0-alpha.24",
|
||||
"core-js": "^3.8.2",
|
||||
"global": "^4.4.0",
|
||||
"react": "16.14.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/vue",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"description": "Storybook for Vue: Develop Vue Component in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -41,9 +41,9 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/core": "6.2.0-alpha.20",
|
||||
"@storybook/core-common": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/core": "6.2.0-alpha.24",
|
||||
"@storybook/core-common": "6.2.0-alpha.24",
|
||||
"@types/webpack-env": "^1.16.0",
|
||||
"core-js": "^3.8.2",
|
||||
"global": "^4.4.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/vue3",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"description": "Storybook for Vue 3: Develop Vue 3 Components in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -41,9 +41,9 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/core": "6.2.0-alpha.20",
|
||||
"@storybook/core-common": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/core": "6.2.0-alpha.24",
|
||||
"@storybook/core-common": "6.2.0-alpha.24",
|
||||
"@types/webpack-env": "^1.16.0",
|
||||
"core-js": "^3.8.2",
|
||||
"global": "^4.4.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/web-components",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"description": "Storybook for web-components: View web components snippets in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"lit-html",
|
||||
@ -46,10 +46,10 @@
|
||||
"@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.2.0-alpha.20",
|
||||
"@storybook/client-api": "6.2.0-alpha.20",
|
||||
"@storybook/core": "6.2.0-alpha.20",
|
||||
"@storybook/core-common": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/client-api": "6.2.0-alpha.24",
|
||||
"@storybook/core": "6.2.0-alpha.24",
|
||||
"@storybook/core-common": "6.2.0-alpha.24",
|
||||
"@types/webpack-env": "^1.16.0",
|
||||
"babel-plugin-bundled-import-meta": "^0.3.1",
|
||||
"core-js": "^3.8.2",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-decorator",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"description": "decorator addon for storybook",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -25,8 +25,8 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/client-api": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/client-api": "6.2.0-alpha.24",
|
||||
"core-js": "^3.8.2",
|
||||
"global": "^4.4.0"
|
||||
},
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-parameter",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"description": "parameter addon for storybook",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -25,12 +25,12 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/api": "6.2.0-alpha.20",
|
||||
"@storybook/client-logger": "6.2.0-alpha.20",
|
||||
"@storybook/components": "6.2.0-alpha.20",
|
||||
"@storybook/core-events": "6.2.0-alpha.20",
|
||||
"@storybook/theming": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/api": "6.2.0-alpha.24",
|
||||
"@storybook/client-logger": "6.2.0-alpha.24",
|
||||
"@storybook/components": "6.2.0-alpha.24",
|
||||
"@storybook/core-events": "6.2.0-alpha.24",
|
||||
"@storybook/theming": "6.2.0-alpha.24",
|
||||
"core-js": "^3.8.2",
|
||||
"global": "^4.4.0",
|
||||
"react": "^16.8.0 || ^17.0.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-preview-wrapper",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"description": "preview wrapper addon for storybook",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -25,7 +25,7 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"react": "^16.8.0 || ^17.0.0"
|
||||
},
|
||||
"publishConfig": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-roundtrip",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"description": "roundtrip addon for storybook",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -25,13 +25,13 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/api": "6.2.0-alpha.20",
|
||||
"@storybook/client-api": "6.2.0-alpha.20",
|
||||
"@storybook/client-logger": "6.2.0-alpha.20",
|
||||
"@storybook/components": "6.2.0-alpha.20",
|
||||
"@storybook/core-events": "6.2.0-alpha.20",
|
||||
"@storybook/theming": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/api": "6.2.0-alpha.24",
|
||||
"@storybook/client-api": "6.2.0-alpha.24",
|
||||
"@storybook/client-logger": "6.2.0-alpha.24",
|
||||
"@storybook/components": "6.2.0-alpha.24",
|
||||
"@storybook/core-events": "6.2.0-alpha.24",
|
||||
"@storybook/theming": "6.2.0-alpha.24",
|
||||
"core-js": "^3.8.2",
|
||||
"global": "^4.4.0",
|
||||
"react": "^16.8.0 || ^17.0.0",
|
||||
|
@ -1 +1 @@
|
||||
{"version":"6.2.0-alpha.20","info":{"plain":"### Features\n\n- Vue: Add Vue 3 support ([#13775](https://github.com/storybookjs/storybook/pull/13775))\n- CLI: Add try/catch on readFileAsJson to improve error message ([#13730](https://github.com/storybookjs/storybook/pull/13730))\n- Core: Generate manager cache in smoke test, but don't use/clear any cache ([#13784](https://github.com/storybookjs/storybook/pull/13784))\n\n### Bug Fixes\n\n- Addon-docs/Svelte: Fix component name in docgen-loader ([#13760](https://github.com/storybookjs/storybook/pull/13760))\n- Addon-docs/Svelte: Fix component description ([#13659](https://github.com/storybookjs/storybook/pull/13659))\n- UI: Fix copy to clipboard for insecure deployments ([#13777](https://github.com/storybookjs/storybook/pull/13777))\n\n### Maintenance\n\n- CLI: Handle package versions in package strings for generators ([#13774](https://github.com/storybookjs/storybook/pull/13774))\n- Build: Do not recompile packages in publish step of the CI ([#13786](https://github.com/storybookjs/storybook/pull/13786))\n- CI: Remove generic cache key from Circle CI ([#13787](https://github.com/storybookjs/storybook/pull/13787))\n- CI: Upgrade cache GH Action & remove fallback caches ([#13752](https://github.com/storybookjs/storybook/pull/13752))"}}
|
||||
{"version":"6.2.0-alpha.24","info":{"plain":"### Features\n\n* Addon-storyshots: Add support for Vue 3 ([#13828](https://github.com/storybookjs/storybook/pull/13828))\n\n### Maintenance\n\n* CLI: only kill other processes on fail ([#13822](https://github.com/storybookjs/storybook/pull/13822))"}}
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "angular-cli",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"private": true,
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
@ -38,19 +38,19 @@
|
||||
"@angular/compiler-cli": "^11.1.0",
|
||||
"@angular/elements": "^11.1.0",
|
||||
"@compodoc/compodoc": "^1.1.11",
|
||||
"@storybook/addon-a11y": "6.2.0-alpha.20",
|
||||
"@storybook/addon-actions": "6.2.0-alpha.20",
|
||||
"@storybook/addon-backgrounds": "6.2.0-alpha.20",
|
||||
"@storybook/addon-controls": "6.2.0-alpha.20",
|
||||
"@storybook/addon-docs": "6.2.0-alpha.20",
|
||||
"@storybook/addon-jest": "6.2.0-alpha.20",
|
||||
"@storybook/addon-knobs": "6.2.0-alpha.20",
|
||||
"@storybook/addon-links": "6.2.0-alpha.20",
|
||||
"@storybook/addon-storyshots": "6.2.0-alpha.20",
|
||||
"@storybook/addon-storysource": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/angular": "6.2.0-alpha.20",
|
||||
"@storybook/source-loader": "6.2.0-alpha.20",
|
||||
"@storybook/addon-a11y": "6.2.0-alpha.24",
|
||||
"@storybook/addon-actions": "6.2.0-alpha.24",
|
||||
"@storybook/addon-backgrounds": "6.2.0-alpha.24",
|
||||
"@storybook/addon-controls": "6.2.0-alpha.24",
|
||||
"@storybook/addon-docs": "6.2.0-alpha.24",
|
||||
"@storybook/addon-jest": "6.2.0-alpha.24",
|
||||
"@storybook/addon-knobs": "6.2.0-alpha.24",
|
||||
"@storybook/addon-links": "6.2.0-alpha.24",
|
||||
"@storybook/addon-storyshots": "6.2.0-alpha.24",
|
||||
"@storybook/addon-storysource": "6.2.0-alpha.24",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/angular": "6.2.0-alpha.24",
|
||||
"@storybook/source-loader": "6.2.0-alpha.24",
|
||||
"@types/core-js": "^2.5.4",
|
||||
"@types/jest": "^26.0.16",
|
||||
"@types/node": "^14.14.20",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "aurelia-kitchen-sink",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"private": true,
|
||||
"description": "An Aurelia client application.",
|
||||
"repository": {
|
||||
@ -22,18 +22,18 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@aurelia/webpack-loader": "^0.7.0",
|
||||
"@storybook/addon-a11y": "6.2.0-alpha.20",
|
||||
"@storybook/addon-actions": "6.2.0-alpha.20",
|
||||
"@storybook/addon-backgrounds": "6.2.0-alpha.20",
|
||||
"@storybook/addon-docs": "6.2.0-alpha.20",
|
||||
"@storybook/addon-jest": "6.2.0-alpha.20",
|
||||
"@storybook/addon-knobs": "6.2.0-alpha.20",
|
||||
"@storybook/addon-links": "6.2.0-alpha.20",
|
||||
"@storybook/addon-storyshots": "6.2.0-alpha.20",
|
||||
"@storybook/addon-storysource": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/aurelia": "6.2.0-alpha.20",
|
||||
"@storybook/source-loader": "6.2.0-alpha.20",
|
||||
"@storybook/addon-a11y": "6.2.0-alpha.24",
|
||||
"@storybook/addon-actions": "6.2.0-alpha.24",
|
||||
"@storybook/addon-backgrounds": "6.2.0-alpha.24",
|
||||
"@storybook/addon-docs": "6.2.0-alpha.24",
|
||||
"@storybook/addon-jest": "6.2.0-alpha.24",
|
||||
"@storybook/addon-knobs": "6.2.0-alpha.24",
|
||||
"@storybook/addon-links": "6.2.0-alpha.24",
|
||||
"@storybook/addon-storyshots": "6.2.0-alpha.24",
|
||||
"@storybook/addon-storysource": "6.2.0-alpha.24",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/aurelia": "6.2.0-alpha.24",
|
||||
"@storybook/source-loader": "6.2.0-alpha.24",
|
||||
"@types/node": "^14.14.20",
|
||||
"css-loader": "^5.0.1",
|
||||
"file-loader": "^6.2.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cra-kitchen-sink",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "react-scripts build",
|
||||
@ -18,19 +18,19 @@
|
||||
"react-lifecycles-compat": "^3.0.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-a11y": "6.2.0-alpha.20",
|
||||
"@storybook/addon-actions": "6.2.0-alpha.20",
|
||||
"@storybook/addon-backgrounds": "6.2.0-alpha.20",
|
||||
"@storybook/addon-docs": "6.2.0-alpha.20",
|
||||
"@storybook/addon-events": "6.2.0-alpha.20",
|
||||
"@storybook/addon-jest": "6.2.0-alpha.20",
|
||||
"@storybook/addon-knobs": "6.2.0-alpha.20",
|
||||
"@storybook/addon-links": "6.2.0-alpha.20",
|
||||
"@storybook/addon-storyshots": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/client-logger": "6.2.0-alpha.20",
|
||||
"@storybook/react": "6.2.0-alpha.20",
|
||||
"@storybook/theming": "6.2.0-alpha.20",
|
||||
"@storybook/addon-a11y": "6.2.0-alpha.24",
|
||||
"@storybook/addon-actions": "6.2.0-alpha.24",
|
||||
"@storybook/addon-backgrounds": "6.2.0-alpha.24",
|
||||
"@storybook/addon-docs": "6.2.0-alpha.24",
|
||||
"@storybook/addon-events": "6.2.0-alpha.24",
|
||||
"@storybook/addon-jest": "6.2.0-alpha.24",
|
||||
"@storybook/addon-knobs": "6.2.0-alpha.24",
|
||||
"@storybook/addon-links": "6.2.0-alpha.24",
|
||||
"@storybook/addon-storyshots": "6.2.0-alpha.24",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/client-logger": "6.2.0-alpha.24",
|
||||
"@storybook/react": "6.2.0-alpha.24",
|
||||
"@storybook/theming": "6.2.0-alpha.24",
|
||||
"react-scripts": "^3.4.4"
|
||||
},
|
||||
"storybook": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cra-react15",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "react-scripts build",
|
||||
@ -18,11 +18,11 @@
|
||||
"react-scripts": "3.4.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-actions": "6.2.0-alpha.20",
|
||||
"@storybook/addon-links": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/react": "6.2.0-alpha.20",
|
||||
"@storybook/theming": "6.2.0-alpha.20",
|
||||
"@storybook/addon-actions": "6.2.0-alpha.24",
|
||||
"@storybook/addon-links": "6.2.0-alpha.24",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/react": "6.2.0-alpha.24",
|
||||
"@storybook/theming": "6.2.0-alpha.24",
|
||||
"babel-core": "6",
|
||||
"babel-runtime": "6"
|
||||
},
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cra-ts-essentials",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "react-scripts build",
|
||||
@ -34,10 +34,10 @@
|
||||
"typescript": "^3.9.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-essentials": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/addon-essentials": "6.2.0-alpha.24",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/preset-create-react-app": "^3.1.5",
|
||||
"@storybook/react": "6.2.0-alpha.20"
|
||||
"@storybook/react": "6.2.0-alpha.24"
|
||||
},
|
||||
"storybook": {
|
||||
"chromatic": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cra-ts-kitchen-sink",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "react-scripts build",
|
||||
@ -34,14 +34,14 @@
|
||||
"typescript": "^3.9.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-a11y": "6.2.0-alpha.20",
|
||||
"@storybook/addon-actions": "6.2.0-alpha.20",
|
||||
"@storybook/addon-docs": "6.2.0-alpha.20",
|
||||
"@storybook/addon-knobs": "6.2.0-alpha.20",
|
||||
"@storybook/addon-links": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/addon-a11y": "6.2.0-alpha.24",
|
||||
"@storybook/addon-actions": "6.2.0-alpha.24",
|
||||
"@storybook/addon-docs": "6.2.0-alpha.24",
|
||||
"@storybook/addon-knobs": "6.2.0-alpha.24",
|
||||
"@storybook/addon-links": "6.2.0-alpha.24",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/preset-create-react-app": "^3.1.5",
|
||||
"@storybook/react": "6.2.0-alpha.20",
|
||||
"@storybook/react": "6.2.0-alpha.24",
|
||||
"@types/enzyme": "^3.10.8",
|
||||
"enzyme": "^3.11.0",
|
||||
"enzyme-adapter-react-16": "^1.9.1",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/example-devkits",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build-storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true build-storybook -c ./",
|
||||
@ -8,18 +8,18 @@
|
||||
"storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true start-storybook -p 9011 -c ./"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-decorator": "6.2.0-alpha.20",
|
||||
"@storybook/addon-parameter": "6.2.0-alpha.20",
|
||||
"@storybook/addon-preview-wrapper": "6.2.0-alpha.20",
|
||||
"@storybook/addon-roundtrip": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/api": "6.2.0-alpha.20",
|
||||
"@storybook/client-api": "6.2.0-alpha.20",
|
||||
"@storybook/components": "6.2.0-alpha.20",
|
||||
"@storybook/core-events": "6.2.0-alpha.20",
|
||||
"@storybook/node-logger": "6.2.0-alpha.20",
|
||||
"@storybook/react": "6.2.0-alpha.20",
|
||||
"@storybook/theming": "6.2.0-alpha.20",
|
||||
"@storybook/addon-decorator": "6.2.0-alpha.24",
|
||||
"@storybook/addon-parameter": "6.2.0-alpha.24",
|
||||
"@storybook/addon-preview-wrapper": "6.2.0-alpha.24",
|
||||
"@storybook/addon-roundtrip": "6.2.0-alpha.24",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/api": "6.2.0-alpha.24",
|
||||
"@storybook/client-api": "6.2.0-alpha.24",
|
||||
"@storybook/components": "6.2.0-alpha.24",
|
||||
"@storybook/core-events": "6.2.0-alpha.24",
|
||||
"@storybook/node-logger": "6.2.0-alpha.24",
|
||||
"@storybook/react": "6.2.0-alpha.24",
|
||||
"@storybook/theming": "6.2.0-alpha.24",
|
||||
"cors": "^2.8.5",
|
||||
"cross-env": "^7.0.3",
|
||||
"enzyme-to-json": "^3.6.1",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ember-example",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "ember build --output-path ember-output",
|
||||
@ -17,19 +17,19 @@
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.12.10",
|
||||
"@ember/optional-features": "^2.0.0",
|
||||
"@storybook/addon-a11y": "6.2.0-alpha.20",
|
||||
"@storybook/addon-actions": "6.2.0-alpha.20",
|
||||
"@storybook/addon-backgrounds": "6.2.0-alpha.20",
|
||||
"@storybook/addon-controls": "6.2.0-alpha.20",
|
||||
"@storybook/addon-docs": "6.2.0-alpha.20",
|
||||
"@storybook/addon-knobs": "6.2.0-alpha.20",
|
||||
"@storybook/addon-links": "6.2.0-alpha.20",
|
||||
"@storybook/addon-storysource": "6.2.0-alpha.20",
|
||||
"@storybook/addon-viewport": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/ember": "6.2.0-alpha.20",
|
||||
"@storybook/addon-a11y": "6.2.0-alpha.24",
|
||||
"@storybook/addon-actions": "6.2.0-alpha.24",
|
||||
"@storybook/addon-backgrounds": "6.2.0-alpha.24",
|
||||
"@storybook/addon-controls": "6.2.0-alpha.24",
|
||||
"@storybook/addon-docs": "6.2.0-alpha.24",
|
||||
"@storybook/addon-knobs": "6.2.0-alpha.24",
|
||||
"@storybook/addon-links": "6.2.0-alpha.24",
|
||||
"@storybook/addon-storysource": "6.2.0-alpha.24",
|
||||
"@storybook/addon-viewport": "6.2.0-alpha.24",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/ember": "6.2.0-alpha.24",
|
||||
"@storybook/ember-cli-storybook": "^0.2.1",
|
||||
"@storybook/source-loader": "6.2.0-alpha.20",
|
||||
"@storybook/source-loader": "6.2.0-alpha.24",
|
||||
"babel-loader": "^8",
|
||||
"broccoli-asset-rev": "^3.0.0",
|
||||
"cross-env": "^7.0.3",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "html-kitchen-sink",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"private": true,
|
||||
"description": "",
|
||||
"keywords": [],
|
||||
@ -13,25 +13,25 @@
|
||||
"storybook": "start-storybook -p 9006"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-a11y": "6.2.0-alpha.20",
|
||||
"@storybook/addon-actions": "6.2.0-alpha.20",
|
||||
"@storybook/addon-backgrounds": "6.2.0-alpha.20",
|
||||
"@storybook/addon-controls": "6.2.0-alpha.20",
|
||||
"@storybook/addon-docs": "6.2.0-alpha.20",
|
||||
"@storybook/addon-events": "6.2.0-alpha.20",
|
||||
"@storybook/addon-jest": "6.2.0-alpha.20",
|
||||
"@storybook/addon-knobs": "6.2.0-alpha.20",
|
||||
"@storybook/addon-links": "6.2.0-alpha.20",
|
||||
"@storybook/addon-a11y": "6.2.0-alpha.24",
|
||||
"@storybook/addon-actions": "6.2.0-alpha.24",
|
||||
"@storybook/addon-backgrounds": "6.2.0-alpha.24",
|
||||
"@storybook/addon-controls": "6.2.0-alpha.24",
|
||||
"@storybook/addon-docs": "6.2.0-alpha.24",
|
||||
"@storybook/addon-events": "6.2.0-alpha.24",
|
||||
"@storybook/addon-jest": "6.2.0-alpha.24",
|
||||
"@storybook/addon-knobs": "6.2.0-alpha.24",
|
||||
"@storybook/addon-links": "6.2.0-alpha.24",
|
||||
"@storybook/addon-postcss": "^2.0.0",
|
||||
"@storybook/addon-storyshots": "6.2.0-alpha.20",
|
||||
"@storybook/addon-storysource": "6.2.0-alpha.20",
|
||||
"@storybook/addon-viewport": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/client-api": "6.2.0-alpha.20",
|
||||
"@storybook/core": "6.2.0-alpha.20",
|
||||
"@storybook/core-events": "6.2.0-alpha.20",
|
||||
"@storybook/html": "6.2.0-alpha.20",
|
||||
"@storybook/source-loader": "6.2.0-alpha.20",
|
||||
"@storybook/addon-storyshots": "6.2.0-alpha.24",
|
||||
"@storybook/addon-storysource": "6.2.0-alpha.24",
|
||||
"@storybook/addon-viewport": "6.2.0-alpha.24",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/client-api": "6.2.0-alpha.24",
|
||||
"@storybook/core": "6.2.0-alpha.24",
|
||||
"@storybook/core-events": "6.2.0-alpha.24",
|
||||
"@storybook/html": "6.2.0-alpha.24",
|
||||
"@storybook/source-loader": "6.2.0-alpha.24",
|
||||
"autoprefixer": "^10.0.1",
|
||||
"eventemitter3": "^4.0.7",
|
||||
"format-json": "^1.0.3",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "marko-cli",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"private": true,
|
||||
"description": "Demo of how to build an app using marko-starter",
|
||||
"repository": {
|
||||
@ -23,13 +23,13 @@
|
||||
"marko-starter": "^2.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-a11y": "6.2.0-alpha.20",
|
||||
"@storybook/addon-actions": "6.2.0-alpha.20",
|
||||
"@storybook/addon-knobs": "6.2.0-alpha.20",
|
||||
"@storybook/addon-storysource": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/marko": "6.2.0-alpha.20",
|
||||
"@storybook/source-loader": "6.2.0-alpha.20",
|
||||
"@storybook/addon-a11y": "6.2.0-alpha.24",
|
||||
"@storybook/addon-actions": "6.2.0-alpha.24",
|
||||
"@storybook/addon-knobs": "6.2.0-alpha.24",
|
||||
"@storybook/addon-storysource": "6.2.0-alpha.24",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/marko": "6.2.0-alpha.24",
|
||||
"@storybook/source-loader": "6.2.0-alpha.24",
|
||||
"prettier": "~2.2.1",
|
||||
"webpack": "^5.9.0"
|
||||
},
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "mithril-example",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build-storybook": "build-storybook",
|
||||
@ -10,17 +10,17 @@
|
||||
"mithril": "^1.1.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-a11y": "6.2.0-alpha.20",
|
||||
"@storybook/addon-actions": "6.2.0-alpha.20",
|
||||
"@storybook/addon-backgrounds": "6.2.0-alpha.20",
|
||||
"@storybook/addon-knobs": "6.2.0-alpha.20",
|
||||
"@storybook/addon-links": "6.2.0-alpha.20",
|
||||
"@storybook/addon-storyshots": "6.2.0-alpha.20",
|
||||
"@storybook/addon-storysource": "6.2.0-alpha.20",
|
||||
"@storybook/addon-viewport": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/mithril": "6.2.0-alpha.20",
|
||||
"@storybook/source-loader": "6.2.0-alpha.20",
|
||||
"@storybook/addon-a11y": "6.2.0-alpha.24",
|
||||
"@storybook/addon-actions": "6.2.0-alpha.24",
|
||||
"@storybook/addon-backgrounds": "6.2.0-alpha.24",
|
||||
"@storybook/addon-knobs": "6.2.0-alpha.24",
|
||||
"@storybook/addon-links": "6.2.0-alpha.24",
|
||||
"@storybook/addon-storyshots": "6.2.0-alpha.24",
|
||||
"@storybook/addon-storysource": "6.2.0-alpha.24",
|
||||
"@storybook/addon-viewport": "6.2.0-alpha.24",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/mithril": "6.2.0-alpha.24",
|
||||
"@storybook/source-loader": "6.2.0-alpha.24",
|
||||
"webpack": "^5.9.0"
|
||||
},
|
||||
"storybook": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "official-storybook",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build-storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true build-storybook -c ./",
|
||||
@ -14,33 +14,33 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@packtracker/webpack-plugin": "^2.3.0",
|
||||
"@storybook/addon-a11y": "6.2.0-alpha.20",
|
||||
"@storybook/addon-actions": "6.2.0-alpha.20",
|
||||
"@storybook/addon-backgrounds": "6.2.0-alpha.20",
|
||||
"@storybook/addon-controls": "6.2.0-alpha.20",
|
||||
"@storybook/addon-cssresources": "6.2.0-alpha.20",
|
||||
"@storybook/addon-design-assets": "6.2.0-alpha.20",
|
||||
"@storybook/addon-docs": "6.2.0-alpha.20",
|
||||
"@storybook/addon-events": "6.2.0-alpha.20",
|
||||
"@storybook/addon-graphql": "6.2.0-alpha.20",
|
||||
"@storybook/addon-jest": "6.2.0-alpha.20",
|
||||
"@storybook/addon-knobs": "6.2.0-alpha.20",
|
||||
"@storybook/addon-links": "6.2.0-alpha.20",
|
||||
"@storybook/addon-queryparams": "6.2.0-alpha.20",
|
||||
"@storybook/addon-storyshots": "6.2.0-alpha.20",
|
||||
"@storybook/addon-storyshots-puppeteer": "6.2.0-alpha.20",
|
||||
"@storybook/addon-storysource": "6.2.0-alpha.20",
|
||||
"@storybook/addon-toolbars": "6.2.0-alpha.20",
|
||||
"@storybook/addon-viewport": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/cli": "6.2.0-alpha.20",
|
||||
"@storybook/components": "6.2.0-alpha.20",
|
||||
"@storybook/core-events": "6.2.0-alpha.20",
|
||||
"@storybook/addon-a11y": "6.2.0-alpha.24",
|
||||
"@storybook/addon-actions": "6.2.0-alpha.24",
|
||||
"@storybook/addon-backgrounds": "6.2.0-alpha.24",
|
||||
"@storybook/addon-controls": "6.2.0-alpha.24",
|
||||
"@storybook/addon-cssresources": "6.2.0-alpha.24",
|
||||
"@storybook/addon-design-assets": "6.2.0-alpha.24",
|
||||
"@storybook/addon-docs": "6.2.0-alpha.24",
|
||||
"@storybook/addon-events": "6.2.0-alpha.24",
|
||||
"@storybook/addon-graphql": "6.2.0-alpha.24",
|
||||
"@storybook/addon-jest": "6.2.0-alpha.24",
|
||||
"@storybook/addon-knobs": "6.2.0-alpha.24",
|
||||
"@storybook/addon-links": "6.2.0-alpha.24",
|
||||
"@storybook/addon-queryparams": "6.2.0-alpha.24",
|
||||
"@storybook/addon-storyshots": "6.2.0-alpha.24",
|
||||
"@storybook/addon-storyshots-puppeteer": "6.2.0-alpha.24",
|
||||
"@storybook/addon-storysource": "6.2.0-alpha.24",
|
||||
"@storybook/addon-toolbars": "6.2.0-alpha.24",
|
||||
"@storybook/addon-viewport": "6.2.0-alpha.24",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/cli": "6.2.0-alpha.24",
|
||||
"@storybook/components": "6.2.0-alpha.24",
|
||||
"@storybook/core-events": "6.2.0-alpha.24",
|
||||
"@storybook/design-system": "^5.4.7",
|
||||
"@storybook/node-logger": "6.2.0-alpha.20",
|
||||
"@storybook/react": "6.2.0-alpha.20",
|
||||
"@storybook/source-loader": "6.2.0-alpha.20",
|
||||
"@storybook/theming": "6.2.0-alpha.20",
|
||||
"@storybook/node-logger": "6.2.0-alpha.24",
|
||||
"@storybook/react": "6.2.0-alpha.24",
|
||||
"@storybook/source-loader": "6.2.0-alpha.24",
|
||||
"@storybook/theming": "6.2.0-alpha.24",
|
||||
"chromatic": "^5.6.0",
|
||||
"cors": "^2.8.5",
|
||||
"cross-env": "^7.0.3",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "preact-example",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules",
|
||||
@ -15,17 +15,17 @@
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.12.10",
|
||||
"@babel/plugin-transform-runtime": "^7.12.10",
|
||||
"@storybook/addon-a11y": "6.2.0-alpha.20",
|
||||
"@storybook/addon-actions": "6.2.0-alpha.20",
|
||||
"@storybook/addon-backgrounds": "6.2.0-alpha.20",
|
||||
"@storybook/addon-knobs": "6.2.0-alpha.20",
|
||||
"@storybook/addon-links": "6.2.0-alpha.20",
|
||||
"@storybook/addon-storyshots": "6.2.0-alpha.20",
|
||||
"@storybook/addon-storysource": "6.2.0-alpha.20",
|
||||
"@storybook/addon-viewport": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/preact": "6.2.0-alpha.20",
|
||||
"@storybook/source-loader": "6.2.0-alpha.20",
|
||||
"@storybook/addon-a11y": "6.2.0-alpha.24",
|
||||
"@storybook/addon-actions": "6.2.0-alpha.24",
|
||||
"@storybook/addon-backgrounds": "6.2.0-alpha.24",
|
||||
"@storybook/addon-knobs": "6.2.0-alpha.24",
|
||||
"@storybook/addon-links": "6.2.0-alpha.24",
|
||||
"@storybook/addon-storyshots": "6.2.0-alpha.24",
|
||||
"@storybook/addon-storysource": "6.2.0-alpha.24",
|
||||
"@storybook/addon-viewport": "6.2.0-alpha.24",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/preact": "6.2.0-alpha.24",
|
||||
"@storybook/source-loader": "6.2.0-alpha.24",
|
||||
"babel-loader": "^8.2.2",
|
||||
"cross-env": "^7.0.3",
|
||||
"file-loader": "^6.2.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "rax-kitchen-sink",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "build-scripts build",
|
||||
@ -20,20 +20,20 @@
|
||||
"devDependencies": {
|
||||
"@alib/build-scripts": "^0.1.8",
|
||||
"@babel/preset-react": "^7.12.10",
|
||||
"@storybook/addon-a11y": "6.2.0-alpha.20",
|
||||
"@storybook/addon-actions": "6.2.0-alpha.20",
|
||||
"@storybook/addon-backgrounds": "6.2.0-alpha.20",
|
||||
"@storybook/addon-events": "6.2.0-alpha.20",
|
||||
"@storybook/addon-jest": "6.2.0-alpha.20",
|
||||
"@storybook/addon-knobs": "6.2.0-alpha.20",
|
||||
"@storybook/addon-links": "6.2.0-alpha.20",
|
||||
"@storybook/addon-storyshots": "6.2.0-alpha.20",
|
||||
"@storybook/addon-storysource": "6.2.0-alpha.20",
|
||||
"@storybook/addon-viewport": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/rax": "6.2.0-alpha.20",
|
||||
"@storybook/source-loader": "6.2.0-alpha.20",
|
||||
"@storybook/theming": "6.2.0-alpha.20",
|
||||
"@storybook/addon-a11y": "6.2.0-alpha.24",
|
||||
"@storybook/addon-actions": "6.2.0-alpha.24",
|
||||
"@storybook/addon-backgrounds": "6.2.0-alpha.24",
|
||||
"@storybook/addon-events": "6.2.0-alpha.24",
|
||||
"@storybook/addon-jest": "6.2.0-alpha.24",
|
||||
"@storybook/addon-knobs": "6.2.0-alpha.24",
|
||||
"@storybook/addon-links": "6.2.0-alpha.24",
|
||||
"@storybook/addon-storyshots": "6.2.0-alpha.24",
|
||||
"@storybook/addon-storysource": "6.2.0-alpha.24",
|
||||
"@storybook/addon-viewport": "6.2.0-alpha.24",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/rax": "6.2.0-alpha.24",
|
||||
"@storybook/source-loader": "6.2.0-alpha.24",
|
||||
"@storybook/theming": "6.2.0-alpha.24",
|
||||
"babel-eslint": "^10.1.0",
|
||||
"build-plugin-rax-app": "^0.2.0",
|
||||
"stylesheet-loader": "^0.8.0"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/example-react-ts-webpack4",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"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 ./"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addon-controls": "6.2.0-alpha.20",
|
||||
"@storybook/addon-essentials": "6.2.0-alpha.20",
|
||||
"@storybook/react": "6.2.0-alpha.20",
|
||||
"@storybook/builder-webpack4": "6.2.0-alpha.20",
|
||||
"@storybook/addon-controls": "6.2.0-alpha.24",
|
||||
"@storybook/addon-essentials": "6.2.0-alpha.24",
|
||||
"@storybook/react": "6.2.0-alpha.24",
|
||||
"@storybook/builder-webpack4": "6.2.0-alpha.24",
|
||||
"@types/react": "^16.14.2",
|
||||
"@types/react-dom": "^16.9.10",
|
||||
"prop-types": "15.7.2",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/example-react-ts",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"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 ./"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addon-controls": "6.2.0-alpha.20",
|
||||
"@storybook/addon-essentials": "6.2.0-alpha.20",
|
||||
"@storybook/react": "6.2.0-alpha.20",
|
||||
"@storybook/builder-webpack5": "6.2.0-alpha.20",
|
||||
"@storybook/addon-controls": "6.2.0-alpha.24",
|
||||
"@storybook/addon-essentials": "6.2.0-alpha.24",
|
||||
"@storybook/react": "6.2.0-alpha.24",
|
||||
"@storybook/builder-webpack5": "6.2.0-alpha.24",
|
||||
"@types/react": "^16.14.2",
|
||||
"@types/react-dom": "^16.9.10",
|
||||
"prop-types": "15.7.2",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "riot-example",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules",
|
||||
@ -15,17 +15,17 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.12.10",
|
||||
"@storybook/addon-a11y": "6.2.0-alpha.20",
|
||||
"@storybook/addon-actions": "6.2.0-alpha.20",
|
||||
"@storybook/addon-backgrounds": "6.2.0-alpha.20",
|
||||
"@storybook/addon-knobs": "6.2.0-alpha.20",
|
||||
"@storybook/addon-links": "6.2.0-alpha.20",
|
||||
"@storybook/addon-storyshots": "6.2.0-alpha.20",
|
||||
"@storybook/addon-storysource": "6.2.0-alpha.20",
|
||||
"@storybook/addon-viewport": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/riot": "6.2.0-alpha.20",
|
||||
"@storybook/source-loader": "6.2.0-alpha.20",
|
||||
"@storybook/addon-a11y": "6.2.0-alpha.24",
|
||||
"@storybook/addon-actions": "6.2.0-alpha.24",
|
||||
"@storybook/addon-backgrounds": "6.2.0-alpha.24",
|
||||
"@storybook/addon-knobs": "6.2.0-alpha.24",
|
||||
"@storybook/addon-links": "6.2.0-alpha.24",
|
||||
"@storybook/addon-storyshots": "6.2.0-alpha.24",
|
||||
"@storybook/addon-storysource": "6.2.0-alpha.24",
|
||||
"@storybook/addon-viewport": "6.2.0-alpha.24",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/riot": "6.2.0-alpha.24",
|
||||
"@storybook/source-loader": "6.2.0-alpha.24",
|
||||
"babel-loader": "^8.2.2",
|
||||
"cross-env": "^7.0.3",
|
||||
"file-loader": "^6.2.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "server-kitchen-sink",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"private": true,
|
||||
"description": "",
|
||||
"keywords": [],
|
||||
@ -14,13 +14,13 @@
|
||||
"storybook": "SERVER_PORT=1137 start-storybook -p 9006 --quiet"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-a11y": "6.2.0-alpha.20",
|
||||
"@storybook/addon-actions": "6.2.0-alpha.20",
|
||||
"@storybook/addon-backgrounds": "6.2.0-alpha.20",
|
||||
"@storybook/addon-controls": "6.2.0-alpha.20",
|
||||
"@storybook/addon-links": "6.2.0-alpha.20",
|
||||
"@storybook/node-logger": "6.2.0-alpha.20",
|
||||
"@storybook/server": "6.2.0-alpha.20",
|
||||
"@storybook/addon-a11y": "6.2.0-alpha.24",
|
||||
"@storybook/addon-actions": "6.2.0-alpha.24",
|
||||
"@storybook/addon-backgrounds": "6.2.0-alpha.24",
|
||||
"@storybook/addon-controls": "6.2.0-alpha.24",
|
||||
"@storybook/addon-links": "6.2.0-alpha.24",
|
||||
"@storybook/node-logger": "6.2.0-alpha.24",
|
||||
"@storybook/server": "6.2.0-alpha.24",
|
||||
"concurrently": "^5.3.0",
|
||||
"cors": "^2.8.5",
|
||||
"express": "~4.17.1",
|
||||
|
@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "standalone-preview",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"storybook": "parcel ./storybook.html --port 1337"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/react": "6.2.0-alpha.20",
|
||||
"@storybook/react": "6.2.0-alpha.24",
|
||||
"parcel": "^1.12.4",
|
||||
"react": "16.14.0",
|
||||
"react-dom": "16.14.0"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "svelte-example",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build-storybook": "build-storybook -s public",
|
||||
@ -10,19 +10,19 @@
|
||||
"global": "^4.4.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-a11y": "6.2.0-alpha.20",
|
||||
"@storybook/addon-actions": "6.2.0-alpha.20",
|
||||
"@storybook/addon-backgrounds": "6.2.0-alpha.20",
|
||||
"@storybook/addon-controls": "6.2.0-alpha.20",
|
||||
"@storybook/addon-docs": "6.2.0-alpha.20",
|
||||
"@storybook/addon-knobs": "6.2.0-alpha.20",
|
||||
"@storybook/addon-links": "6.2.0-alpha.20",
|
||||
"@storybook/addon-storyshots": "6.2.0-alpha.20",
|
||||
"@storybook/addon-storysource": "6.2.0-alpha.20",
|
||||
"@storybook/addon-viewport": "6.2.0-alpha.20",
|
||||
"@storybook/addons": "6.2.0-alpha.20",
|
||||
"@storybook/source-loader": "6.2.0-alpha.20",
|
||||
"@storybook/svelte": "6.2.0-alpha.20"
|
||||
"@storybook/addon-a11y": "6.2.0-alpha.24",
|
||||
"@storybook/addon-actions": "6.2.0-alpha.24",
|
||||
"@storybook/addon-backgrounds": "6.2.0-alpha.24",
|
||||
"@storybook/addon-controls": "6.2.0-alpha.24",
|
||||
"@storybook/addon-docs": "6.2.0-alpha.24",
|
||||
"@storybook/addon-knobs": "6.2.0-alpha.24",
|
||||
"@storybook/addon-links": "6.2.0-alpha.24",
|
||||
"@storybook/addon-storyshots": "6.2.0-alpha.24",
|
||||
"@storybook/addon-storysource": "6.2.0-alpha.24",
|
||||
"@storybook/addon-viewport": "6.2.0-alpha.24",
|
||||
"@storybook/addons": "6.2.0-alpha.24",
|
||||
"@storybook/source-loader": "6.2.0-alpha.24",
|
||||
"@storybook/svelte": "6.2.0-alpha.24"
|
||||
},
|
||||
"storybook": {
|
||||
"chromatic": {
|
||||
|
11
examples/vue-3-cli/jest.config.js
Normal file
11
examples/vue-3-cli/jest.config.js
Normal file
@ -0,0 +1,11 @@
|
||||
const config = require('../../jest.config');
|
||||
|
||||
module.exports = {
|
||||
...config,
|
||||
roots: [__dirname],
|
||||
transform: {
|
||||
...config.transform,
|
||||
'.*\\.(vue)$': require.resolve('vue-jest'),
|
||||
},
|
||||
moduleFileExtensions: [...config.moduleFileExtensions, 'vue'],
|
||||
};
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "vue-3-cli-example",
|
||||
"version": "6.2.0-alpha.20",
|
||||
"version": "6.2.0-alpha.24",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "vue-cli-service build",
|
||||
@ -14,10 +14,10 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.12.10",
|
||||
"@storybook/addon-actions": "6.2.0-alpha.20",
|
||||
"@storybook/addon-essentials": "6.2.0-alpha.20",
|
||||
"@storybook/addon-links": "6.2.0-alpha.20",
|
||||
"@storybook/vue3": "6.2.0-alpha.20",
|
||||
"@storybook/addon-actions": "6.2.0-alpha.24",
|
||||
"@storybook/addon-essentials": "6.2.0-alpha.24",
|
||||
"@storybook/addon-links": "6.2.0-alpha.24",
|
||||
"@storybook/vue3": "6.2.0-alpha.24",
|
||||
"@vue/cli-plugin-babel": "~4.5.0",
|
||||
"@vue/cli-plugin-typescript": "~4.5.0",
|
||||
"@vue/cli-service": "~4.5.0",
|
||||
|
@ -2,7 +2,7 @@
|
||||
<button type="button" :class="classes" @click="onClick" :style="style">{{ label }}</button>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import './button.css';
|
||||
import { reactive, computed } from 'vue';
|
||||
|
||||
@ -32,6 +32,7 @@ export default {
|
||||
|
||||
emits: ['click'],
|
||||
|
||||
// @ts-ignore
|
||||
setup(props, { emit }) {
|
||||
props = reactive(props);
|
||||
return {
|
||||
|
@ -17,4 +17,6 @@ LoggedIn.args = {
|
||||
};
|
||||
|
||||
export const LoggedOut = Template.bind({});
|
||||
LoggedOut.args = {};
|
||||
LoggedOut.args = {
|
||||
user: null,
|
||||
};
|
||||
|
@ -29,7 +29,7 @@
|
||||
</header>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import './header.css';
|
||||
import MyButton from './Button.vue';
|
||||
|
||||
|
@ -6,8 +6,10 @@ export default {
|
||||
component: MyPage,
|
||||
};
|
||||
|
||||
const Template = (args, { argTypes }) => ({
|
||||
props: Object.keys(argTypes),
|
||||
// If your props are optional and don't always exist in argTypes,
|
||||
// you can specify them explicitly as you normally specify props
|
||||
const Template = () => ({
|
||||
props: ['user'],
|
||||
components: { MyPage },
|
||||
template: '<my-page :user="user" />',
|
||||
});
|
||||
@ -18,6 +20,4 @@ LoggedIn.args = {
|
||||
};
|
||||
|
||||
export const LoggedOut = Template.bind({});
|
||||
LoggedOut.args = {
|
||||
...HeaderStories.LoggedOut.args,
|
||||
};
|
||||
LoggedOut.args = {};
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user