mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-18 05:02:24 +08:00
Merge remote-tracking branch 'origin/next' into react/refresh2
This commit is contained in:
commit
d789ea53fa
@ -166,7 +166,7 @@ jobs:
|
||||
command: yarn info @storybook/core
|
||||
- run:
|
||||
name: run e2e tests
|
||||
command: yarn test:e2e-framework --use-yarn-2 cra
|
||||
command: yarn test:e2e-framework --use-yarn-2 sfcVue cra
|
||||
- store_artifacts:
|
||||
path: /tmp/storybook/cypress
|
||||
destination: cypress
|
||||
|
31
CHANGELOG.md
31
CHANGELOG.md
@ -1,3 +1,34 @@
|
||||
## 6.1.0-alpha.9 (September 13, 2020)
|
||||
|
||||
### Features
|
||||
|
||||
* Storyshots: Allow taking a screenshot of just a specific element ([#12460](https://github.com/storybookjs/storybook/pull/12460))
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* CLI: Fix storiesof-to-csf codemod for TypeScript ([#12453](https://github.com/storybookjs/storybook/pull/12453))
|
||||
|
||||
### Maintenance
|
||||
|
||||
* Addon-docs: Resolve vue-docgen-loader from @storybook/vue ([#12461](https://github.com/storybookjs/storybook/pull/12461))
|
||||
* Build: Disable problematic story in Chromatic ([#12457](https://github.com/storybookjs/storybook/pull/12457))
|
||||
|
||||
## 6.1.0-alpha.8 (September 12, 2020)
|
||||
|
||||
### Features
|
||||
|
||||
- HTML: Add script tag support ([#12089](https://github.com/storybookjs/storybook/pull/12089))
|
||||
- Addon-docs: Fix fixed-position inline stories ([#11350](https://github.com/storybookjs/storybook/pull/11350))
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- Core: require.resolve loaders and add missing dependencies ([#12383](https://github.com/storybookjs/storybook/pull/12383))
|
||||
- Addon-docs: Fix DocsPage scroll behavior ([#12047](https://github.com/storybookjs/storybook/pull/12047))
|
||||
|
||||
### Maintenance
|
||||
|
||||
- Core: Fix monorepo compatibility ([#11753](https://github.com/storybookjs/storybook/pull/11753))
|
||||
|
||||
## 6.1.0-alpha.7 (September 10, 2020)
|
||||
|
||||
### Features
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-a11y",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "a11y addon for storybook",
|
||||
"keywords": [
|
||||
"a11y",
|
||||
@ -33,14 +33,14 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/api": "6.1.0-alpha.7",
|
||||
"@storybook/channels": "6.1.0-alpha.7",
|
||||
"@storybook/client-api": "6.1.0-alpha.7",
|
||||
"@storybook/client-logger": "6.1.0-alpha.7",
|
||||
"@storybook/components": "6.1.0-alpha.7",
|
||||
"@storybook/core-events": "6.1.0-alpha.7",
|
||||
"@storybook/theming": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/api": "6.1.0-alpha.9",
|
||||
"@storybook/channels": "6.1.0-alpha.9",
|
||||
"@storybook/client-api": "6.1.0-alpha.9",
|
||||
"@storybook/client-logger": "6.1.0-alpha.9",
|
||||
"@storybook/components": "6.1.0-alpha.9",
|
||||
"@storybook/core-events": "6.1.0-alpha.9",
|
||||
"@storybook/theming": "6.1.0-alpha.9",
|
||||
"axe-core": "^4.0.1",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
@ -59,7 +59,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e",
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-actions",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "Action Logger addon for storybook",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -28,12 +28,12 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/api": "6.1.0-alpha.7",
|
||||
"@storybook/client-api": "6.1.0-alpha.7",
|
||||
"@storybook/components": "6.1.0-alpha.7",
|
||||
"@storybook/core-events": "6.1.0-alpha.7",
|
||||
"@storybook/theming": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/api": "6.1.0-alpha.9",
|
||||
"@storybook/client-api": "6.1.0-alpha.9",
|
||||
"@storybook/components": "6.1.0-alpha.9",
|
||||
"@storybook/core-events": "6.1.0-alpha.9",
|
||||
"@storybook/theming": "6.1.0-alpha.9",
|
||||
"core-js": "^3.0.1",
|
||||
"fast-deep-equal": "^3.1.1",
|
||||
"global": "^4.3.2",
|
||||
@ -56,7 +56,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e",
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-backgrounds",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "A storybook addon to show different backgrounds for your preview",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -32,12 +32,12 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/api": "6.1.0-alpha.7",
|
||||
"@storybook/client-logger": "6.1.0-alpha.7",
|
||||
"@storybook/components": "6.1.0-alpha.7",
|
||||
"@storybook/core-events": "6.1.0-alpha.7",
|
||||
"@storybook/theming": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/api": "6.1.0-alpha.9",
|
||||
"@storybook/client-logger": "6.1.0-alpha.9",
|
||||
"@storybook/components": "6.1.0-alpha.9",
|
||||
"@storybook/core-events": "6.1.0-alpha.9",
|
||||
"@storybook/theming": "6.1.0-alpha.9",
|
||||
"core-js": "^3.0.1",
|
||||
"memoizerific": "^1.11.3",
|
||||
"react": "^16.8.3",
|
||||
@ -50,7 +50,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e",
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-controls",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "Controls for component properties",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -30,12 +30,12 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/api": "6.1.0-alpha.7",
|
||||
"@storybook/client-api": "6.1.0-alpha.7",
|
||||
"@storybook/components": "6.1.0-alpha.7",
|
||||
"@storybook/node-logger": "6.1.0-alpha.7",
|
||||
"@storybook/theming": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/api": "6.1.0-alpha.9",
|
||||
"@storybook/client-api": "6.1.0-alpha.9",
|
||||
"@storybook/components": "6.1.0-alpha.9",
|
||||
"@storybook/node-logger": "6.1.0-alpha.9",
|
||||
"@storybook/theming": "6.1.0-alpha.9",
|
||||
"core-js": "^3.0.1",
|
||||
"react": "^16.8.3",
|
||||
"react-dom": "^16.8.3",
|
||||
@ -44,5 +44,5 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e"
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-cssresources",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "A storybook addon to switch between css resources at runtime for your story",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -32,11 +32,11 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/api": "6.1.0-alpha.7",
|
||||
"@storybook/components": "6.1.0-alpha.7",
|
||||
"@storybook/core-events": "6.1.0-alpha.7",
|
||||
"@storybook/theming": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/api": "6.1.0-alpha.9",
|
||||
"@storybook/components": "6.1.0-alpha.9",
|
||||
"@storybook/core-events": "6.1.0-alpha.9",
|
||||
"@storybook/theming": "6.1.0-alpha.9",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"react": "^16.8.3",
|
||||
@ -51,7 +51,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e",
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-design-assets",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "Design asset preview for storybook",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -34,12 +34,12 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/api": "6.1.0-alpha.7",
|
||||
"@storybook/client-logger": "6.1.0-alpha.7",
|
||||
"@storybook/components": "6.1.0-alpha.7",
|
||||
"@storybook/core-events": "6.1.0-alpha.7",
|
||||
"@storybook/theming": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/api": "6.1.0-alpha.9",
|
||||
"@storybook/client-logger": "6.1.0-alpha.9",
|
||||
"@storybook/components": "6.1.0-alpha.9",
|
||||
"@storybook/core-events": "6.1.0-alpha.9",
|
||||
"@storybook/theming": "6.1.0-alpha.9",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"react": "^16.8.3",
|
||||
@ -51,7 +51,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e",
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -85,7 +85,7 @@ basic.parameters = {
|
||||
}
|
||||
```
|
||||
|
||||
And for `MDX` you can modify it as an attribute on the `Story` element:
|
||||
And for `MDX` you can modify it, especially if you work with some components using fixed or sticky positions, as an attribute on the `Story` element:
|
||||
|
||||
```md
|
||||
<Story name='basic' height='400px'>{...}</Story>
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-docs",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "Superior documentation for your components",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -47,18 +47,18 @@
|
||||
"@mdx-js/loader": "^1.5.1",
|
||||
"@mdx-js/mdx": "^1.5.1",
|
||||
"@mdx-js/react": "^1.5.1",
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/api": "6.1.0-alpha.7",
|
||||
"@storybook/client-api": "6.1.0-alpha.7",
|
||||
"@storybook/client-logger": "6.1.0-alpha.7",
|
||||
"@storybook/components": "6.1.0-alpha.7",
|
||||
"@storybook/core": "6.1.0-alpha.7",
|
||||
"@storybook/core-events": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/api": "6.1.0-alpha.9",
|
||||
"@storybook/client-api": "6.1.0-alpha.9",
|
||||
"@storybook/client-logger": "6.1.0-alpha.9",
|
||||
"@storybook/components": "6.1.0-alpha.9",
|
||||
"@storybook/core": "6.1.0-alpha.9",
|
||||
"@storybook/core-events": "6.1.0-alpha.9",
|
||||
"@storybook/csf": "0.0.1",
|
||||
"@storybook/node-logger": "6.1.0-alpha.7",
|
||||
"@storybook/postinstall": "6.1.0-alpha.7",
|
||||
"@storybook/source-loader": "6.1.0-alpha.7",
|
||||
"@storybook/theming": "6.1.0-alpha.7",
|
||||
"@storybook/node-logger": "6.1.0-alpha.9",
|
||||
"@storybook/postinstall": "6.1.0-alpha.9",
|
||||
"@storybook/source-loader": "6.1.0-alpha.9",
|
||||
"@storybook/theming": "6.1.0-alpha.9",
|
||||
"acorn": "^7.1.0",
|
||||
"acorn-jsx": "^5.1.0",
|
||||
"acorn-walk": "^7.0.0",
|
||||
@ -86,8 +86,9 @@
|
||||
"@babel/core": "^7.9.6",
|
||||
"@emotion/core": "^10.0.20",
|
||||
"@emotion/styled": "^10.0.17",
|
||||
"@storybook/react": "6.1.0-alpha.7",
|
||||
"@storybook/web-components": "6.1.0-alpha.7",
|
||||
"@storybook/react": "6.1.0-alpha.9",
|
||||
"@storybook/vue": "6.1.0-alpha.9",
|
||||
"@storybook/web-components": "6.1.0-alpha.9",
|
||||
"@types/cross-spawn": "^6.0.1",
|
||||
"@types/doctrine": "^0.0.3",
|
||||
"@types/enzyme": "^3.10.3",
|
||||
@ -118,26 +119,22 @@
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@babel/core": "^7.0.0-0",
|
||||
"@storybook/vue": "6.1.0-alpha.9",
|
||||
"babel-loader": "^8.0.0",
|
||||
"sveltedoc-parser": "^3.0.4",
|
||||
"vue": "^2.6.10",
|
||||
"vue-docgen-api": "^4.29.1",
|
||||
"vue-docgen-loader": "^1.5.0",
|
||||
"webpack": ">=4"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"@storybook/vue": {
|
||||
"optional": true
|
||||
},
|
||||
"sveltedoc-parser": {
|
||||
"optional": true
|
||||
},
|
||||
"vue": {
|
||||
"optional": true
|
||||
},
|
||||
"vue-docgen-api": {
|
||||
"optional": true
|
||||
},
|
||||
"vue-docgen-loader": {
|
||||
"optional": true
|
||||
},
|
||||
"webpack": {
|
||||
"optional": true
|
||||
}
|
||||
@ -145,7 +142,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e",
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,7 +1,7 @@
|
||||
export function webpackFinal(webpackConfig: any = {}, options: any = {}) {
|
||||
webpackConfig.module.rules.push({
|
||||
test: /\.vue$/,
|
||||
loader: require.resolve('vue-docgen-loader'),
|
||||
loader: require.resolve('vue-docgen-loader', { paths: [require.resolve('@storybook/vue')] }),
|
||||
enforce: 'post',
|
||||
options: {
|
||||
docgenOptions: {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-essentials",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "Curated addons to bring out the best of Storybook",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -28,15 +28,15 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addon-actions": "6.1.0-alpha.7",
|
||||
"@storybook/addon-backgrounds": "6.1.0-alpha.7",
|
||||
"@storybook/addon-controls": "6.1.0-alpha.7",
|
||||
"@storybook/addon-docs": "6.1.0-alpha.7",
|
||||
"@storybook/addon-toolbars": "6.1.0-alpha.7",
|
||||
"@storybook/addon-viewport": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/api": "6.1.0-alpha.7",
|
||||
"@storybook/node-logger": "6.1.0-alpha.7",
|
||||
"@storybook/addon-actions": "6.1.0-alpha.9",
|
||||
"@storybook/addon-backgrounds": "6.1.0-alpha.9",
|
||||
"@storybook/addon-controls": "6.1.0-alpha.9",
|
||||
"@storybook/addon-docs": "6.1.0-alpha.9",
|
||||
"@storybook/addon-toolbars": "6.1.0-alpha.9",
|
||||
"@storybook/addon-viewport": "6.1.0-alpha.9",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/api": "6.1.0-alpha.9",
|
||||
"@storybook/node-logger": "6.1.0-alpha.9",
|
||||
"core-js": "^3.0.1",
|
||||
"react": "^16.8.3",
|
||||
"react-dom": "^16.8.3",
|
||||
@ -45,16 +45,29 @@
|
||||
"ts-dedent": "^1.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.9.6",
|
||||
"@storybook/vue": "6.1.0-alpha.9",
|
||||
"@types/jest": "^25.1.1",
|
||||
"@types/webpack-env": "^1.15.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"babel-loader": "^8.0.0"
|
||||
"@babel/core": "^7.9.6",
|
||||
"@storybook/vue": "6.1.0-alpha.9",
|
||||
"babel-loader": "^8.0.0",
|
||||
"webpack": ">=4"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"@storybook/vue": {
|
||||
"optional": true
|
||||
},
|
||||
"webpack": {
|
||||
"optional": true
|
||||
}
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e",
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-events",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "Add events to your Storybook stories.",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -31,11 +31,11 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/api": "6.1.0-alpha.7",
|
||||
"@storybook/client-api": "6.1.0-alpha.7",
|
||||
"@storybook/core-events": "6.1.0-alpha.7",
|
||||
"@storybook/theming": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/api": "6.1.0-alpha.9",
|
||||
"@storybook/client-api": "6.1.0-alpha.9",
|
||||
"@storybook/core-events": "6.1.0-alpha.9",
|
||||
"@storybook/theming": "6.1.0-alpha.9",
|
||||
"core-js": "^3.0.1",
|
||||
"format-json": "^1.0.3",
|
||||
"lodash": "^4.17.15",
|
||||
@ -52,7 +52,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e",
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-google-analytics",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "Storybook addon for google analytics",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -20,8 +20,8 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/core-events": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/core-events": "6.1.0-alpha.9",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"react": "^16.8.3",
|
||||
@ -32,5 +32,5 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e"
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-graphql",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "Storybook addon to display the GraphiQL IDE",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -31,8 +31,8 @@
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.9.0",
|
||||
"@babel/plugin-transform-classes": "^7.9.2",
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/api": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/api": "6.1.0-alpha.9",
|
||||
"@types/webpack": "^4.41.9",
|
||||
"babel-loader": "^8.0.6",
|
||||
"core-js": "^3.0.1",
|
||||
@ -48,7 +48,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e",
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-jest",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "React storybook addon that show component jest report",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -35,11 +35,11 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/api": "6.1.0-alpha.7",
|
||||
"@storybook/components": "6.1.0-alpha.7",
|
||||
"@storybook/core-events": "6.1.0-alpha.7",
|
||||
"@storybook/theming": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/api": "6.1.0-alpha.9",
|
||||
"@storybook/components": "6.1.0-alpha.9",
|
||||
"@storybook/core-events": "6.1.0-alpha.9",
|
||||
"@storybook/theming": "6.1.0-alpha.9",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"react": "^16.8.3",
|
||||
@ -54,7 +54,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e",
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-knobs",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "Storybook Addon Prop Editor Component",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -29,13 +29,13 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/api": "6.1.0-alpha.7",
|
||||
"@storybook/channels": "6.1.0-alpha.7",
|
||||
"@storybook/client-api": "6.1.0-alpha.7",
|
||||
"@storybook/components": "6.1.0-alpha.7",
|
||||
"@storybook/core-events": "6.1.0-alpha.7",
|
||||
"@storybook/theming": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/api": "6.1.0-alpha.9",
|
||||
"@storybook/channels": "6.1.0-alpha.9",
|
||||
"@storybook/client-api": "6.1.0-alpha.9",
|
||||
"@storybook/components": "6.1.0-alpha.9",
|
||||
"@storybook/core-events": "6.1.0-alpha.9",
|
||||
"@storybook/theming": "6.1.0-alpha.9",
|
||||
"copy-to-clipboard": "^3.0.8",
|
||||
"core-js": "^3.0.1",
|
||||
"escape-html": "^1.0.3",
|
||||
@ -63,7 +63,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e",
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-links",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "Story Links addon for storybook",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -29,11 +29,11 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/client-logger": "6.1.0-alpha.7",
|
||||
"@storybook/core-events": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/client-logger": "6.1.0-alpha.9",
|
||||
"@storybook/core-events": "6.1.0-alpha.9",
|
||||
"@storybook/csf": "0.0.1",
|
||||
"@storybook/router": "6.1.0-alpha.7",
|
||||
"@storybook/router": "6.1.0-alpha.9",
|
||||
"@types/qs": "^6.9.0",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
@ -51,7 +51,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e",
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-queryparams",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "parameter addon for storybook",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -30,12 +30,12 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/api": "6.1.0-alpha.7",
|
||||
"@storybook/client-logger": "6.1.0-alpha.7",
|
||||
"@storybook/components": "6.1.0-alpha.7",
|
||||
"@storybook/core-events": "6.1.0-alpha.7",
|
||||
"@storybook/theming": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/api": "6.1.0-alpha.9",
|
||||
"@storybook/client-logger": "6.1.0-alpha.9",
|
||||
"@storybook/components": "6.1.0-alpha.9",
|
||||
"@storybook/core-events": "6.1.0-alpha.9",
|
||||
"@storybook/theming": "6.1.0-alpha.9",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"qs": "^6.6.0",
|
||||
@ -50,7 +50,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e",
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-storyshots",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "StoryShots is a Jest Snapshot Testing Addon for Storybook.",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -33,9 +33,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@jest/transform": "^26.0.0",
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/client-api": "6.1.0-alpha.7",
|
||||
"@storybook/core": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/client-api": "6.1.0-alpha.9",
|
||||
"@storybook/core": "6.1.0-alpha.9",
|
||||
"@types/glob": "^7.1.1",
|
||||
"@types/jest": "^25.1.1",
|
||||
"@types/jest-specific-snapshot": "^0.5.3",
|
||||
@ -53,8 +53,8 @@
|
||||
"ts-dedent": "^1.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-docs": "6.1.0-alpha.7",
|
||||
"@storybook/react": "6.1.0-alpha.7",
|
||||
"@storybook/addon-docs": "6.1.0-alpha.9",
|
||||
"@storybook/react": "6.1.0-alpha.9",
|
||||
"babel-loader": "^8.0.6",
|
||||
"enzyme": "^3.11.0",
|
||||
"enzyme-to-json": "^3.4.1",
|
||||
@ -63,7 +63,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e",
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -305,3 +305,16 @@ initStoryshots({
|
||||
```
|
||||
|
||||
`getScreenshotOptions` receives an object `{ context: {kind, story}, url}`. _kind_ is the kind of the story and the _story_ its name. _url_ is the URL the browser will use to screenshot.
|
||||
|
||||
To create a screenshot of just a single element (with its children), rather than the page or current viewport, an ElementHandle can be returned from `beforeScreenshot`:
|
||||
```js
|
||||
import initStoryshots from '@storybook/addon-storyshots';
|
||||
import { imageSnapshot } from '@storybook/addon-storyshots-puppeteer';
|
||||
|
||||
const beforeScreenshot = (page) => page.$('#root > *');
|
||||
|
||||
initStoryshots({
|
||||
suite: 'Image storyshots',
|
||||
test: imageSnapshot({ storybookUrl: 'http://localhost:6006', beforeScreenshot }),
|
||||
});
|
||||
```
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-storyshots-puppeteer",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "Image snapshots addition to StoryShots based on puppeteer",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -30,7 +30,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/csf": "0.0.1",
|
||||
"@storybook/node-logger": "6.1.0-alpha.7",
|
||||
"@storybook/node-logger": "6.1.0-alpha.9",
|
||||
"@types/jest-image-snapshot": "^2.8.0",
|
||||
"@wordpress/jest-puppeteer-axe": "^1.5.0",
|
||||
"core-js": "^3.0.1",
|
||||
@ -42,7 +42,7 @@
|
||||
"@types/puppeteer": "^2.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@storybook/addon-storyshots": "6.1.0-alpha.7",
|
||||
"@storybook/addon-storyshots": "6.1.0-alpha.9",
|
||||
"puppeteer": "^2.0.0 || ^3.0.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
@ -53,7 +53,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e",
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,5 +1,11 @@
|
||||
import { MatchImageSnapshotOptions } from 'jest-image-snapshot';
|
||||
import { Base64ScreenShotOptions, Browser, DirectNavigationOptions, Page } from 'puppeteer';
|
||||
import {
|
||||
Base64ScreenShotOptions,
|
||||
Browser,
|
||||
DirectNavigationOptions,
|
||||
Page,
|
||||
ElementHandle,
|
||||
} from 'puppeteer';
|
||||
|
||||
export interface Context {
|
||||
kind: string;
|
||||
@ -33,7 +39,7 @@ export interface PuppeteerTestConfig extends CommonConfig {
|
||||
export interface ImageSnapshotConfig extends CommonConfig {
|
||||
getMatchOptions: (options: Options) => MatchImageSnapshotOptions;
|
||||
getScreenshotOptions: (options: Options) => Base64ScreenShotOptions;
|
||||
beforeScreenshot: (page: Page, options: Options) => void;
|
||||
beforeScreenshot: (page: Page, options: Options) => void | ElementHandle;
|
||||
afterScreenshot: (options: { image: string; context: Context }) => void;
|
||||
}
|
||||
|
||||
|
@ -12,8 +12,8 @@ export const imageSnapshot = (customConfig: Partial<ImageSnapshotConfig> = {}) =
|
||||
...config,
|
||||
async testBody(page, options) {
|
||||
expect.assertions(1);
|
||||
await beforeScreenshot(page, options);
|
||||
const image = await page.screenshot(getScreenshotOptions(options));
|
||||
const element = await beforeScreenshot(page, options);
|
||||
const image = await (element || page).screenshot(getScreenshotOptions(options));
|
||||
await afterScreenshot({ image, context: options.context });
|
||||
expect(image).toMatchImageSnapshot(getMatchOptions(options));
|
||||
},
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-storysource",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "Stories addon for storybook",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -29,13 +29,13 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/api": "6.1.0-alpha.7",
|
||||
"@storybook/client-logger": "6.1.0-alpha.7",
|
||||
"@storybook/components": "6.1.0-alpha.7",
|
||||
"@storybook/router": "6.1.0-alpha.7",
|
||||
"@storybook/source-loader": "6.1.0-alpha.7",
|
||||
"@storybook/theming": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/api": "6.1.0-alpha.9",
|
||||
"@storybook/client-logger": "6.1.0-alpha.9",
|
||||
"@storybook/components": "6.1.0-alpha.9",
|
||||
"@storybook/router": "6.1.0-alpha.9",
|
||||
"@storybook/source-loader": "6.1.0-alpha.9",
|
||||
"@storybook/theming": "6.1.0-alpha.9",
|
||||
"core-js": "^3.0.1",
|
||||
"estraverse": "^4.2.0",
|
||||
"loader-utils": "^2.0.0",
|
||||
@ -53,5 +53,5 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e"
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-toolbars",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "Storybook toolbars addon",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -30,10 +30,10 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/api": "6.1.0-alpha.7",
|
||||
"@storybook/client-api": "6.1.0-alpha.7",
|
||||
"@storybook/components": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/api": "6.1.0-alpha.9",
|
||||
"@storybook/client-api": "6.1.0-alpha.9",
|
||||
"@storybook/components": "6.1.0-alpha.9",
|
||||
"core-js": "^3.0.1",
|
||||
"react": "^16.8.3",
|
||||
"react-dom": "^16.8.3"
|
||||
@ -41,5 +41,5 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e"
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-viewport",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "Storybook addon to change the viewport size to mobile",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -29,12 +29,12 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/api": "6.1.0-alpha.7",
|
||||
"@storybook/client-logger": "6.1.0-alpha.7",
|
||||
"@storybook/components": "6.1.0-alpha.7",
|
||||
"@storybook/core-events": "6.1.0-alpha.7",
|
||||
"@storybook/theming": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/api": "6.1.0-alpha.9",
|
||||
"@storybook/client-logger": "6.1.0-alpha.9",
|
||||
"@storybook/components": "6.1.0-alpha.9",
|
||||
"@storybook/core-events": "6.1.0-alpha.9",
|
||||
"@storybook/theming": "6.1.0-alpha.9",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"memoizerific": "^1.11.3",
|
||||
@ -46,7 +46,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e",
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/angular",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "Storybook for Angular: Develop Angular Components in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -34,9 +34,9 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/core": "6.1.0-alpha.7",
|
||||
"@storybook/node-logger": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/core": "6.1.0-alpha.9",
|
||||
"@storybook/node-logger": "6.1.0-alpha.9",
|
||||
"@types/webpack-env": "^1.15.2",
|
||||
"autoprefixer": "^9.7.6",
|
||||
"core-js": "^3.0.1",
|
||||
@ -74,7 +74,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e",
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/aurelia",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "Storybook for Aurelia: Develop Aurelia Components in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -27,10 +27,10 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@aurelia/webpack-loader": "^0.7.0",
|
||||
"@storybook/addon-knobs": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/core": "6.1.0-alpha.7",
|
||||
"@storybook/node-logger": "6.1.0-alpha.7",
|
||||
"@storybook/addon-knobs": "6.1.0-alpha.9",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/core": "6.1.0-alpha.9",
|
||||
"@storybook/node-logger": "6.1.0-alpha.9",
|
||||
"fork-ts-checker-webpack-plugin": "^4.0.3",
|
||||
"global": "^4.3.2",
|
||||
"ts-loader": "^6.0.1",
|
||||
@ -57,5 +57,5 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e"
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/ember",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "Storybook for Ember: Develop Ember Component in isolation with Hot Reloading.",
|
||||
"homepage": "https://github.com/storybookjs/storybook/tree/master/app/ember",
|
||||
"bugs": {
|
||||
@ -32,7 +32,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@ember/test-helpers": "^1.7.0",
|
||||
"@storybook/core": "6.1.0-alpha.7",
|
||||
"@storybook/core": "6.1.0-alpha.9",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"regenerator-runtime": "^0.13.3",
|
||||
@ -50,5 +50,5 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e"
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/html",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "Storybook for HTML: View HTML snippets in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -34,8 +34,8 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/core": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/core": "6.1.0-alpha.9",
|
||||
"@types/webpack-env": "^1.15.2",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
@ -52,7 +52,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e",
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
97
app/html/src/client/preview/helpers/simulate-pageload.ts
Normal file
97
app/html/src/client/preview/helpers/simulate-pageload.ts
Normal file
@ -0,0 +1,97 @@
|
||||
import { document } from 'global';
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/scripting.html
|
||||
const runScriptTypes = [
|
||||
'application/javascript',
|
||||
'application/ecmascript',
|
||||
'application/x-ecmascript',
|
||||
'application/x-javascript',
|
||||
'text/ecmascript',
|
||||
'text/javascript',
|
||||
'text/javascript1.0',
|
||||
'text/javascript1.1',
|
||||
'text/javascript1.2',
|
||||
'text/javascript1.3',
|
||||
'text/javascript1.4',
|
||||
'text/javascript1.5',
|
||||
'text/jscript',
|
||||
'text/livescript',
|
||||
'text/x-ecmascript',
|
||||
'text/x-javascript',
|
||||
];
|
||||
|
||||
const SCRIPT = 'script';
|
||||
const SCRIPTS_ROOT_ID = 'scripts-root';
|
||||
|
||||
// trigger DOMContentLoaded
|
||||
export function simulateDOMContentLoaded() {
|
||||
const DOMContentLoadedEvent = document.createEvent('Event');
|
||||
DOMContentLoadedEvent.initEvent('DOMContentLoaded', true, true);
|
||||
document.dispatchEvent(DOMContentLoadedEvent);
|
||||
}
|
||||
|
||||
function insertScript($script: any, callback: any, $scriptRoot: any) {
|
||||
const scriptEl = document.createElement('script');
|
||||
scriptEl.type = 'text/javascript';
|
||||
if ($script.src) {
|
||||
scriptEl.onload = callback;
|
||||
scriptEl.onerror = callback;
|
||||
scriptEl.src = $script.src;
|
||||
} else {
|
||||
scriptEl.textContent = $script.innerText;
|
||||
}
|
||||
|
||||
// re-insert the script tag so it executes.
|
||||
if ($scriptRoot) $scriptRoot.appendChild(scriptEl);
|
||||
else document.head.appendChild(scriptEl);
|
||||
|
||||
// clean-up
|
||||
$script.parentNode.removeChild($script);
|
||||
|
||||
// run the callback immediately for inline scripts
|
||||
if (!$script.src) callback();
|
||||
}
|
||||
|
||||
// runs an array of async functions in sequential order
|
||||
/* eslint-disable no-param-reassign, no-plusplus */
|
||||
function insertScriptsSequentially(scriptsToExecute: any[], callback: any, index = 0) {
|
||||
scriptsToExecute[index](() => {
|
||||
index++;
|
||||
if (index === scriptsToExecute.length) {
|
||||
callback();
|
||||
} else {
|
||||
insertScriptsSequentially(scriptsToExecute, callback, index);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
export function simulatePageLoad($container: any) {
|
||||
let $scriptsRoot = document.getElementById(SCRIPTS_ROOT_ID);
|
||||
if (!$scriptsRoot) {
|
||||
$scriptsRoot = document.createElement('div');
|
||||
$scriptsRoot.id = SCRIPTS_ROOT_ID;
|
||||
document.body.appendChild($scriptsRoot);
|
||||
} else {
|
||||
$scriptsRoot.innerHTML = '';
|
||||
}
|
||||
const $scripts = Array.from($container.querySelectorAll(SCRIPT));
|
||||
|
||||
if ($scripts.length) {
|
||||
const scriptsToExecute: any[] = [];
|
||||
$scripts.forEach(($script: any) => {
|
||||
const typeAttr = $script.getAttribute('type');
|
||||
|
||||
// only run script tags without the type attribute
|
||||
// or with a javascript mime attribute value
|
||||
if (!typeAttr || !runScriptTypes.includes(typeAttr)) {
|
||||
scriptsToExecute.push((callback: any) => insertScript($script, callback, $scriptsRoot));
|
||||
}
|
||||
});
|
||||
|
||||
// insert the script tags sequentially
|
||||
// to preserve execution order
|
||||
insertScriptsSequentially(scriptsToExecute, simulateDOMContentLoaded, undefined);
|
||||
} else {
|
||||
simulateDOMContentLoaded();
|
||||
}
|
||||
}
|
@ -1,6 +1,7 @@
|
||||
import { document, Node } from 'global';
|
||||
import dedent from 'ts-dedent';
|
||||
import { RenderContext } from './types';
|
||||
import { simulatePageLoad, simulateDOMContentLoaded } from './helpers/simulate-pageload';
|
||||
|
||||
const rootElement = document.getElementById('root');
|
||||
|
||||
@ -17,6 +18,7 @@ export default function renderMain({
|
||||
showMain();
|
||||
if (typeof element === 'string') {
|
||||
rootElement.innerHTML = element;
|
||||
simulatePageLoad(rootElement);
|
||||
} else if (element instanceof Node) {
|
||||
// Don't re-mount the element if it didn't change and neither did the story
|
||||
if (rootElement.firstChild === element && forceRender === true) {
|
||||
@ -25,6 +27,7 @@ export default function renderMain({
|
||||
|
||||
rootElement.innerHTML = '';
|
||||
rootElement.appendChild(element);
|
||||
simulateDOMContentLoaded();
|
||||
} else {
|
||||
showError({
|
||||
title: `Expecting an HTML snippet or DOM node from the story: "${name}" of "${kind}".`,
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/marionette",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "Storybook for Marionette: Develop Marionette.js component in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -25,7 +25,7 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/core": "6.1.0-alpha.7",
|
||||
"@storybook/core": "6.1.0-alpha.9",
|
||||
"common-tags": "^1.8.0",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
@ -47,5 +47,5 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e"
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/marko",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "Storybook for Marko: Develop Marko Component in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -34,8 +34,8 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@marko/webpack": "^2.1.0",
|
||||
"@storybook/client-logger": "6.1.0-alpha.7",
|
||||
"@storybook/core": "6.1.0-alpha.7",
|
||||
"@storybook/client-logger": "6.1.0-alpha.9",
|
||||
"@storybook/core": "6.1.0-alpha.9",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"regenerator-runtime": "^0.13.3",
|
||||
@ -52,5 +52,5 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e"
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/mithril",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "Storybook for Mithril: Develop Mithril Component in isolation.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -36,8 +36,8 @@
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.9.6",
|
||||
"@babel/plugin-transform-react-jsx": "^7.3.0",
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/core": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/core": "6.1.0-alpha.9",
|
||||
"@types/mithril": "^2.0.0",
|
||||
"@types/webpack-env": "^1.15.2",
|
||||
"core-js": "^3.0.1",
|
||||
@ -58,7 +58,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e",
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/preact",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "Storybook for Preact: Develop Preact Component in isolation.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -35,8 +35,8 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/plugin-transform-react-jsx": "^7.3.0",
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/core": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/core": "6.1.0-alpha.9",
|
||||
"@types/webpack-env": "^1.15.2",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
@ -56,7 +56,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e",
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/rax",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "Storybook for Rax: Develop Rax Component in isolation.",
|
||||
"keywords": [
|
||||
"rax",
|
||||
@ -34,7 +34,7 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/core": "6.1.0-alpha.7",
|
||||
"@storybook/core": "6.1.0-alpha.9",
|
||||
"babel-preset-rax": "^1.0.0-beta.0",
|
||||
"core-js": "^3.0.1",
|
||||
"driver-dom": "^2.0.0",
|
||||
@ -52,5 +52,5 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e"
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/react",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "Storybook for React: Develop React Component in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -37,9 +37,9 @@
|
||||
"@babel/preset-flow": "^7.0.0",
|
||||
"@babel/preset-react": "^7.0.0",
|
||||
"@pmmmwh/react-refresh-webpack-plugin": "^0.4.2",
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/core": "6.1.0-alpha.7",
|
||||
"@storybook/node-logger": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/core": "6.1.0-alpha.9",
|
||||
"@storybook/node-logger": "6.1.0-alpha.9",
|
||||
"@storybook/semver": "^7.3.2",
|
||||
"@svgr/webpack": "^5.4.0",
|
||||
"@types/webpack-env": "^1.15.2",
|
||||
@ -60,7 +60,7 @@
|
||||
"webpack": "^4.43.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/client-api": "6.1.0-alpha.7",
|
||||
"@storybook/client-api": "6.1.0-alpha.9",
|
||||
"@types/node": "^14.0.10",
|
||||
"@types/webpack": "^4.41.12"
|
||||
},
|
||||
@ -73,7 +73,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e",
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/riot",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "Storybook for riot.js: View riot snippets in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -34,7 +34,7 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/core": "6.1.0-alpha.7",
|
||||
"@storybook/core": "6.1.0-alpha.9",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"raw-loader": "^4.0.1",
|
||||
@ -61,5 +61,5 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e"
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/server",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "Storybook for Server: View HTML snippets from a server in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -34,10 +34,10 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/api": "6.1.0-alpha.7",
|
||||
"@storybook/core": "6.1.0-alpha.7",
|
||||
"@storybook/node-logger": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/api": "6.1.0-alpha.9",
|
||||
"@storybook/core": "6.1.0-alpha.9",
|
||||
"@storybook/node-logger": "6.1.0-alpha.9",
|
||||
"@types/webpack-env": "^1.15.2",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
@ -54,5 +54,5 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e"
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/svelte",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "Storybook for Svelte: Develop Svelte Component in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -34,8 +34,8 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/core": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/core": "6.1.0-alpha.9",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"regenerator-runtime": "^0.13.3",
|
||||
@ -58,7 +58,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e",
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/vue",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "Storybook for Vue: Develop Vue Component in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -34,8 +34,8 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/core": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/core": "6.1.0-alpha.9",
|
||||
"@types/webpack-env": "^1.15.2",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
@ -68,7 +68,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e",
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/web-components",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "Storybook for web-components: View web components snippets in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"lit-html",
|
||||
@ -39,8 +39,8 @@
|
||||
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
|
||||
"@babel/plugin-syntax-import-meta": "^7.2.0",
|
||||
"@babel/preset-env": "^7.11.5",
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/core": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/core": "6.1.0-alpha.9",
|
||||
"@types/webpack-env": "^1.15.2",
|
||||
"babel-plugin-bundled-import-meta": "^0.3.1",
|
||||
"core-js": "^3.0.1",
|
||||
@ -62,7 +62,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e",
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-decorator",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "decorator addon for storybook",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -24,15 +24,15 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/client-api": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/client-api": "6.1.0-alpha.9",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.4.0"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e",
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-parameter",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "parameter addon for storybook",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -24,12 +24,12 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/api": "6.1.0-alpha.7",
|
||||
"@storybook/client-logger": "6.1.0-alpha.7",
|
||||
"@storybook/components": "6.1.0-alpha.7",
|
||||
"@storybook/core-events": "6.1.0-alpha.7",
|
||||
"@storybook/theming": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/api": "6.1.0-alpha.9",
|
||||
"@storybook/client-logger": "6.1.0-alpha.9",
|
||||
"@storybook/components": "6.1.0-alpha.9",
|
||||
"@storybook/core-events": "6.1.0-alpha.9",
|
||||
"@storybook/theming": "6.1.0-alpha.9",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"react": "^16.8.3",
|
||||
@ -38,7 +38,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e",
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-preview-wrapper",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "preview wrapper addon for storybook",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -24,13 +24,13 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"react": "^16.8.3"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e",
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-roundtrip",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "roundtrip addon for storybook",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -24,13 +24,13 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/api": "6.1.0-alpha.7",
|
||||
"@storybook/client-api": "6.1.0-alpha.7",
|
||||
"@storybook/client-logger": "6.1.0-alpha.7",
|
||||
"@storybook/components": "6.1.0-alpha.7",
|
||||
"@storybook/core-events": "6.1.0-alpha.7",
|
||||
"@storybook/theming": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/api": "6.1.0-alpha.9",
|
||||
"@storybook/client-api": "6.1.0-alpha.9",
|
||||
"@storybook/client-logger": "6.1.0-alpha.9",
|
||||
"@storybook/components": "6.1.0-alpha.9",
|
||||
"@storybook/core-events": "6.1.0-alpha.9",
|
||||
"@storybook/theming": "6.1.0-alpha.9",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"react": "^16.8.3",
|
||||
@ -39,7 +39,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e",
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -44,6 +44,7 @@ Learn how leading teams build design systems.
|
||||
- [AppNexus Lucid](https://appnexus.github.io/lucid/?path=/docs/documentation-introduction--introduction)
|
||||
- [AnyVision UI](http://storybook.anyvision.co/)
|
||||
- [Skyscanner Backpack](https://backpack.github.io/storybook/)
|
||||
- [GitLab UI](https://gitlab-org.gitlab.io/gitlab-ui)
|
||||
<!--
|
||||
NOTE for contributors: This is a curated list. Here's what qualifies:
|
||||
- Design system or component library
|
||||
|
@ -1 +1 @@
|
||||
{"version":"6.1.0-alpha.7","info":{"plain":"### Features\n\n- Components: Add graphql support to SyntaxHighlighter ([#12385](https://github.com/storybookjs/storybook/pull/12385))\n\n### Bug Fixes\n\n- UI: Fix the p > div nesting issue ([#12298](https://github.com/storybookjs/storybook/pull/12298))\n- Addon-docs: Apply transformSource to any SourceType ([#12375](https://github.com/storybookjs/storybook/pull/12375))\n- CLI: Workaround for react native `sb init` ([#12405](https://github.com/storybookjs/storybook/pull/12405))\n\n### Dependency Upgrades\n\n- Core: Change react deps to normal deps ([#11628](https://github.com/storybookjs/storybook/pull/11628))"}}
|
||||
{"version":"6.1.0-alpha.9","info":{"plain":"### Features\n\n* Storyshots: Allow taking a screenshot of just a specific element ([#12460](https://github.com/storybookjs/storybook/pull/12460))\n\n### Bug Fixes\n\n* CLI: Fix storiesof-to-csf codemod for TypeScript ([#12453](https://github.com/storybookjs/storybook/pull/12453))\n\n### Maintenance\n\n* Addon-docs: Resolve vue-docgen-loader from @storybook/vue ([#12461](https://github.com/storybookjs/storybook/pull/12461))\n* Build: Disable problematic story in Chromatic ([#12457](https://github.com/storybookjs/storybook/pull/12457))"}}
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "angular-cli",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"private": true,
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
@ -37,19 +37,19 @@
|
||||
"@angular/cli": "^9.1.0",
|
||||
"@angular/compiler-cli": "^9.1.0",
|
||||
"@compodoc/compodoc": "^1.1.11",
|
||||
"@storybook/addon-a11y": "6.1.0-alpha.7",
|
||||
"@storybook/addon-actions": "6.1.0-alpha.7",
|
||||
"@storybook/addon-backgrounds": "6.1.0-alpha.7",
|
||||
"@storybook/addon-controls": "6.1.0-alpha.7",
|
||||
"@storybook/addon-docs": "6.1.0-alpha.7",
|
||||
"@storybook/addon-jest": "6.1.0-alpha.7",
|
||||
"@storybook/addon-knobs": "6.1.0-alpha.7",
|
||||
"@storybook/addon-links": "6.1.0-alpha.7",
|
||||
"@storybook/addon-storyshots": "6.1.0-alpha.7",
|
||||
"@storybook/addon-storysource": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/angular": "6.1.0-alpha.7",
|
||||
"@storybook/source-loader": "6.1.0-alpha.7",
|
||||
"@storybook/addon-a11y": "6.1.0-alpha.9",
|
||||
"@storybook/addon-actions": "6.1.0-alpha.9",
|
||||
"@storybook/addon-backgrounds": "6.1.0-alpha.9",
|
||||
"@storybook/addon-controls": "6.1.0-alpha.9",
|
||||
"@storybook/addon-docs": "6.1.0-alpha.9",
|
||||
"@storybook/addon-jest": "6.1.0-alpha.9",
|
||||
"@storybook/addon-knobs": "6.1.0-alpha.9",
|
||||
"@storybook/addon-links": "6.1.0-alpha.9",
|
||||
"@storybook/addon-storyshots": "6.1.0-alpha.9",
|
||||
"@storybook/addon-storysource": "6.1.0-alpha.9",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/angular": "6.1.0-alpha.9",
|
||||
"@storybook/source-loader": "6.1.0-alpha.9",
|
||||
"@types/core-js": "^2.5.0",
|
||||
"@types/jest": "^25.1.1",
|
||||
"@types/node": "^14.0.10",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "aurelia-kitchen-sink",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"private": true,
|
||||
"description": "An Aurelia client application.",
|
||||
"repository": {
|
||||
@ -22,18 +22,18 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@aurelia/webpack-loader": "dev",
|
||||
"@storybook/addon-a11y": "6.1.0-alpha.7",
|
||||
"@storybook/addon-actions": "6.1.0-alpha.7",
|
||||
"@storybook/addon-backgrounds": "6.1.0-alpha.7",
|
||||
"@storybook/addon-docs": "6.1.0-alpha.7",
|
||||
"@storybook/addon-jest": "6.1.0-alpha.7",
|
||||
"@storybook/addon-knobs": "6.1.0-alpha.7",
|
||||
"@storybook/addon-links": "6.1.0-alpha.7",
|
||||
"@storybook/addon-storyshots": "6.1.0-alpha.7",
|
||||
"@storybook/addon-storysource": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/aurelia": "6.1.0-alpha.7",
|
||||
"@storybook/source-loader": "6.1.0-alpha.7",
|
||||
"@storybook/addon-a11y": "6.1.0-alpha.9",
|
||||
"@storybook/addon-actions": "6.1.0-alpha.9",
|
||||
"@storybook/addon-backgrounds": "6.1.0-alpha.9",
|
||||
"@storybook/addon-docs": "6.1.0-alpha.9",
|
||||
"@storybook/addon-jest": "6.1.0-alpha.9",
|
||||
"@storybook/addon-knobs": "6.1.0-alpha.9",
|
||||
"@storybook/addon-links": "6.1.0-alpha.9",
|
||||
"@storybook/addon-storyshots": "6.1.0-alpha.9",
|
||||
"@storybook/addon-storysource": "6.1.0-alpha.9",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/aurelia": "6.1.0-alpha.9",
|
||||
"@storybook/source-loader": "6.1.0-alpha.9",
|
||||
"@types/node": "^14.0.10",
|
||||
"css-loader": "^3.0.0",
|
||||
"file-loader": "^4.2.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cra-kitchen-sink",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "react-scripts build",
|
||||
@ -18,19 +18,19 @@
|
||||
"react-lifecycles-compat": "^3.0.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-a11y": "6.1.0-alpha.7",
|
||||
"@storybook/addon-actions": "6.1.0-alpha.7",
|
||||
"@storybook/addon-backgrounds": "6.1.0-alpha.7",
|
||||
"@storybook/addon-docs": "6.1.0-alpha.7",
|
||||
"@storybook/addon-events": "6.1.0-alpha.7",
|
||||
"@storybook/addon-jest": "6.1.0-alpha.7",
|
||||
"@storybook/addon-knobs": "6.1.0-alpha.7",
|
||||
"@storybook/addon-links": "6.1.0-alpha.7",
|
||||
"@storybook/addon-storyshots": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/client-logger": "6.1.0-alpha.7",
|
||||
"@storybook/react": "6.1.0-alpha.7",
|
||||
"@storybook/theming": "6.1.0-alpha.7",
|
||||
"@storybook/addon-a11y": "6.1.0-alpha.9",
|
||||
"@storybook/addon-actions": "6.1.0-alpha.9",
|
||||
"@storybook/addon-backgrounds": "6.1.0-alpha.9",
|
||||
"@storybook/addon-docs": "6.1.0-alpha.9",
|
||||
"@storybook/addon-events": "6.1.0-alpha.9",
|
||||
"@storybook/addon-jest": "6.1.0-alpha.9",
|
||||
"@storybook/addon-knobs": "6.1.0-alpha.9",
|
||||
"@storybook/addon-links": "6.1.0-alpha.9",
|
||||
"@storybook/addon-storyshots": "6.1.0-alpha.9",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/client-logger": "6.1.0-alpha.9",
|
||||
"@storybook/react": "6.1.0-alpha.9",
|
||||
"@storybook/theming": "6.1.0-alpha.9",
|
||||
"react-scripts": "^3.0.1"
|
||||
},
|
||||
"storybook": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cra-react15",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "react-scripts build",
|
||||
@ -18,11 +18,11 @@
|
||||
"react-scripts": "3.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-actions": "6.1.0-alpha.7",
|
||||
"@storybook/addon-links": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/react": "6.1.0-alpha.7",
|
||||
"@storybook/theming": "6.1.0-alpha.7",
|
||||
"@storybook/addon-actions": "6.1.0-alpha.9",
|
||||
"@storybook/addon-links": "6.1.0-alpha.9",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/react": "6.1.0-alpha.9",
|
||||
"@storybook/theming": "6.1.0-alpha.9",
|
||||
"babel-core": "6",
|
||||
"babel-runtime": "6"
|
||||
},
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cra-ts-essentials",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "react-scripts build",
|
||||
@ -34,10 +34,10 @@
|
||||
"typescript": "^3.9.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-essentials": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/addon-essentials": "6.1.0-alpha.9",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/preset-create-react-app": "^3.1.4",
|
||||
"@storybook/react": "6.1.0-alpha.7"
|
||||
"@storybook/react": "6.1.0-alpha.9"
|
||||
},
|
||||
"storybook": {
|
||||
"chromatic": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cra-ts-kitchen-sink",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "react-scripts build",
|
||||
@ -34,14 +34,14 @@
|
||||
"typescript": "^3.9.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-a11y": "6.1.0-alpha.7",
|
||||
"@storybook/addon-actions": "6.1.0-alpha.7",
|
||||
"@storybook/addon-docs": "6.1.0-alpha.7",
|
||||
"@storybook/addon-knobs": "6.1.0-alpha.7",
|
||||
"@storybook/addon-links": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/addon-a11y": "6.1.0-alpha.9",
|
||||
"@storybook/addon-actions": "6.1.0-alpha.9",
|
||||
"@storybook/addon-docs": "6.1.0-alpha.9",
|
||||
"@storybook/addon-knobs": "6.1.0-alpha.9",
|
||||
"@storybook/addon-links": "6.1.0-alpha.9",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/preset-create-react-app": "^3.1.4",
|
||||
"@storybook/react": "6.1.0-alpha.7",
|
||||
"@storybook/react": "6.1.0-alpha.9",
|
||||
"@types/enzyme": "^3.9.0",
|
||||
"enzyme": "^3.9.0",
|
||||
"enzyme-adapter-react-16": "^1.9.1",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/example-devkits",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"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 ./ --no-dll"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-decorator": "6.1.0-alpha.7",
|
||||
"@storybook/addon-parameter": "6.1.0-alpha.7",
|
||||
"@storybook/addon-preview-wrapper": "6.1.0-alpha.7",
|
||||
"@storybook/addon-roundtrip": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/api": "6.1.0-alpha.7",
|
||||
"@storybook/client-api": "6.1.0-alpha.7",
|
||||
"@storybook/components": "6.1.0-alpha.7",
|
||||
"@storybook/core-events": "6.1.0-alpha.7",
|
||||
"@storybook/node-logger": "6.1.0-alpha.7",
|
||||
"@storybook/react": "6.1.0-alpha.7",
|
||||
"@storybook/theming": "6.1.0-alpha.7",
|
||||
"@storybook/addon-decorator": "6.1.0-alpha.9",
|
||||
"@storybook/addon-parameter": "6.1.0-alpha.9",
|
||||
"@storybook/addon-preview-wrapper": "6.1.0-alpha.9",
|
||||
"@storybook/addon-roundtrip": "6.1.0-alpha.9",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/api": "6.1.0-alpha.9",
|
||||
"@storybook/client-api": "6.1.0-alpha.9",
|
||||
"@storybook/components": "6.1.0-alpha.9",
|
||||
"@storybook/core-events": "6.1.0-alpha.9",
|
||||
"@storybook/node-logger": "6.1.0-alpha.9",
|
||||
"@storybook/react": "6.1.0-alpha.9",
|
||||
"@storybook/theming": "6.1.0-alpha.9",
|
||||
"cors": "^2.8.5",
|
||||
"cross-env": "^7.0.0",
|
||||
"enzyme-to-json": "^3.4.1",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ember-example",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "ember build --output-path ember-output",
|
||||
@ -16,19 +16,19 @@
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.9.6",
|
||||
"@ember/optional-features": "^1.3.0",
|
||||
"@storybook/addon-a11y": "6.1.0-alpha.7",
|
||||
"@storybook/addon-actions": "6.1.0-alpha.7",
|
||||
"@storybook/addon-backgrounds": "6.1.0-alpha.7",
|
||||
"@storybook/addon-controls": "6.1.0-alpha.7",
|
||||
"@storybook/addon-docs": "6.1.0-alpha.7",
|
||||
"@storybook/addon-knobs": "6.1.0-alpha.7",
|
||||
"@storybook/addon-links": "6.1.0-alpha.7",
|
||||
"@storybook/addon-storysource": "6.1.0-alpha.7",
|
||||
"@storybook/addon-viewport": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/ember": "6.1.0-alpha.7",
|
||||
"@storybook/addon-a11y": "6.1.0-alpha.9",
|
||||
"@storybook/addon-actions": "6.1.0-alpha.9",
|
||||
"@storybook/addon-backgrounds": "6.1.0-alpha.9",
|
||||
"@storybook/addon-controls": "6.1.0-alpha.9",
|
||||
"@storybook/addon-docs": "6.1.0-alpha.9",
|
||||
"@storybook/addon-knobs": "6.1.0-alpha.9",
|
||||
"@storybook/addon-links": "6.1.0-alpha.9",
|
||||
"@storybook/addon-storysource": "6.1.0-alpha.9",
|
||||
"@storybook/addon-viewport": "6.1.0-alpha.9",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/ember": "6.1.0-alpha.9",
|
||||
"@storybook/ember-cli-storybook": "^0.2.1",
|
||||
"@storybook/source-loader": "6.1.0-alpha.7",
|
||||
"@storybook/source-loader": "6.1.0-alpha.9",
|
||||
"babel-loader": "^8",
|
||||
"broccoli-asset-rev": "^3.0.0",
|
||||
"cross-env": "^7.0.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "html-kitchen-sink",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"private": true,
|
||||
"description": "",
|
||||
"keywords": [],
|
||||
@ -13,24 +13,24 @@
|
||||
"storybook": "start-storybook -p 9006"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-a11y": "6.1.0-alpha.7",
|
||||
"@storybook/addon-actions": "6.1.0-alpha.7",
|
||||
"@storybook/addon-backgrounds": "6.1.0-alpha.7",
|
||||
"@storybook/addon-controls": "6.1.0-alpha.7",
|
||||
"@storybook/addon-docs": "6.1.0-alpha.7",
|
||||
"@storybook/addon-events": "6.1.0-alpha.7",
|
||||
"@storybook/addon-jest": "6.1.0-alpha.7",
|
||||
"@storybook/addon-knobs": "6.1.0-alpha.7",
|
||||
"@storybook/addon-links": "6.1.0-alpha.7",
|
||||
"@storybook/addon-storyshots": "6.1.0-alpha.7",
|
||||
"@storybook/addon-storysource": "6.1.0-alpha.7",
|
||||
"@storybook/addon-viewport": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/client-api": "6.1.0-alpha.7",
|
||||
"@storybook/core": "6.1.0-alpha.7",
|
||||
"@storybook/core-events": "6.1.0-alpha.7",
|
||||
"@storybook/html": "6.1.0-alpha.7",
|
||||
"@storybook/source-loader": "6.1.0-alpha.7",
|
||||
"@storybook/addon-a11y": "6.1.0-alpha.9",
|
||||
"@storybook/addon-actions": "6.1.0-alpha.9",
|
||||
"@storybook/addon-backgrounds": "6.1.0-alpha.9",
|
||||
"@storybook/addon-controls": "6.1.0-alpha.9",
|
||||
"@storybook/addon-docs": "6.1.0-alpha.9",
|
||||
"@storybook/addon-events": "6.1.0-alpha.9",
|
||||
"@storybook/addon-jest": "6.1.0-alpha.9",
|
||||
"@storybook/addon-knobs": "6.1.0-alpha.9",
|
||||
"@storybook/addon-links": "6.1.0-alpha.9",
|
||||
"@storybook/addon-storyshots": "6.1.0-alpha.9",
|
||||
"@storybook/addon-storysource": "6.1.0-alpha.9",
|
||||
"@storybook/addon-viewport": "6.1.0-alpha.9",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/client-api": "6.1.0-alpha.9",
|
||||
"@storybook/core": "6.1.0-alpha.9",
|
||||
"@storybook/core-events": "6.1.0-alpha.9",
|
||||
"@storybook/html": "6.1.0-alpha.9",
|
||||
"@storybook/source-loader": "6.1.0-alpha.9",
|
||||
"eventemitter3": "^4.0.0",
|
||||
"format-json": "^1.0.3",
|
||||
"global": "^4.3.2",
|
||||
|
@ -36,3 +36,14 @@ exports[`Storyshots Demo Headings 1`] = `
|
||||
</h4>
|
||||
</section>
|
||||
`;
|
||||
|
||||
exports[`Storyshots Demo Script 1`] = `
|
||||
<section>
|
||||
<div>
|
||||
JS alert
|
||||
</div>
|
||||
<script>
|
||||
alert("hello")
|
||||
</script>
|
||||
</section>
|
||||
`;
|
||||
|
@ -24,3 +24,5 @@ export const Effect = () => {
|
||||
|
||||
return '<button id="button">I should be yellow</button>';
|
||||
};
|
||||
|
||||
export const Script = () => '<div>JS alert</div><script>alert("hello")</script>';
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "marko-cli",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"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.1.0-alpha.7",
|
||||
"@storybook/addon-actions": "6.1.0-alpha.7",
|
||||
"@storybook/addon-knobs": "6.1.0-alpha.7",
|
||||
"@storybook/addon-storysource": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/marko": "6.1.0-alpha.7",
|
||||
"@storybook/source-loader": "6.1.0-alpha.7",
|
||||
"@storybook/addon-a11y": "6.1.0-alpha.9",
|
||||
"@storybook/addon-actions": "6.1.0-alpha.9",
|
||||
"@storybook/addon-knobs": "6.1.0-alpha.9",
|
||||
"@storybook/addon-storysource": "6.1.0-alpha.9",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/marko": "6.1.0-alpha.9",
|
||||
"@storybook/source-loader": "6.1.0-alpha.9",
|
||||
"prettier": "~2.0.5",
|
||||
"webpack": "^4.33.0"
|
||||
},
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "mithril-example",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build-storybook": "build-storybook",
|
||||
@ -10,17 +10,17 @@
|
||||
"mithril": "^1.1.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-a11y": "6.1.0-alpha.7",
|
||||
"@storybook/addon-actions": "6.1.0-alpha.7",
|
||||
"@storybook/addon-backgrounds": "6.1.0-alpha.7",
|
||||
"@storybook/addon-knobs": "6.1.0-alpha.7",
|
||||
"@storybook/addon-links": "6.1.0-alpha.7",
|
||||
"@storybook/addon-storyshots": "6.1.0-alpha.7",
|
||||
"@storybook/addon-storysource": "6.1.0-alpha.7",
|
||||
"@storybook/addon-viewport": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/mithril": "6.1.0-alpha.7",
|
||||
"@storybook/source-loader": "6.1.0-alpha.7",
|
||||
"@storybook/addon-a11y": "6.1.0-alpha.9",
|
||||
"@storybook/addon-actions": "6.1.0-alpha.9",
|
||||
"@storybook/addon-backgrounds": "6.1.0-alpha.9",
|
||||
"@storybook/addon-knobs": "6.1.0-alpha.9",
|
||||
"@storybook/addon-links": "6.1.0-alpha.9",
|
||||
"@storybook/addon-storyshots": "6.1.0-alpha.9",
|
||||
"@storybook/addon-storysource": "6.1.0-alpha.9",
|
||||
"@storybook/addon-viewport": "6.1.0-alpha.9",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/mithril": "6.1.0-alpha.9",
|
||||
"@storybook/source-loader": "6.1.0-alpha.9",
|
||||
"webpack": "^4.33.0"
|
||||
},
|
||||
"storybook": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "official-storybook",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"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.0.1",
|
||||
"@storybook/addon-a11y": "6.1.0-alpha.7",
|
||||
"@storybook/addon-actions": "6.1.0-alpha.7",
|
||||
"@storybook/addon-backgrounds": "6.1.0-alpha.7",
|
||||
"@storybook/addon-controls": "6.1.0-alpha.7",
|
||||
"@storybook/addon-cssresources": "6.1.0-alpha.7",
|
||||
"@storybook/addon-design-assets": "6.1.0-alpha.7",
|
||||
"@storybook/addon-docs": "6.1.0-alpha.7",
|
||||
"@storybook/addon-events": "6.1.0-alpha.7",
|
||||
"@storybook/addon-graphql": "6.1.0-alpha.7",
|
||||
"@storybook/addon-jest": "6.1.0-alpha.7",
|
||||
"@storybook/addon-knobs": "6.1.0-alpha.7",
|
||||
"@storybook/addon-links": "6.1.0-alpha.7",
|
||||
"@storybook/addon-queryparams": "6.1.0-alpha.7",
|
||||
"@storybook/addon-storyshots": "6.1.0-alpha.7",
|
||||
"@storybook/addon-storyshots-puppeteer": "6.1.0-alpha.7",
|
||||
"@storybook/addon-storysource": "6.1.0-alpha.7",
|
||||
"@storybook/addon-toolbars": "6.1.0-alpha.7",
|
||||
"@storybook/addon-viewport": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/cli": "6.1.0-alpha.7",
|
||||
"@storybook/components": "6.1.0-alpha.7",
|
||||
"@storybook/core-events": "6.1.0-alpha.7",
|
||||
"@storybook/addon-a11y": "6.1.0-alpha.9",
|
||||
"@storybook/addon-actions": "6.1.0-alpha.9",
|
||||
"@storybook/addon-backgrounds": "6.1.0-alpha.9",
|
||||
"@storybook/addon-controls": "6.1.0-alpha.9",
|
||||
"@storybook/addon-cssresources": "6.1.0-alpha.9",
|
||||
"@storybook/addon-design-assets": "6.1.0-alpha.9",
|
||||
"@storybook/addon-docs": "6.1.0-alpha.9",
|
||||
"@storybook/addon-events": "6.1.0-alpha.9",
|
||||
"@storybook/addon-graphql": "6.1.0-alpha.9",
|
||||
"@storybook/addon-jest": "6.1.0-alpha.9",
|
||||
"@storybook/addon-knobs": "6.1.0-alpha.9",
|
||||
"@storybook/addon-links": "6.1.0-alpha.9",
|
||||
"@storybook/addon-queryparams": "6.1.0-alpha.9",
|
||||
"@storybook/addon-storyshots": "6.1.0-alpha.9",
|
||||
"@storybook/addon-storyshots-puppeteer": "6.1.0-alpha.9",
|
||||
"@storybook/addon-storysource": "6.1.0-alpha.9",
|
||||
"@storybook/addon-toolbars": "6.1.0-alpha.9",
|
||||
"@storybook/addon-viewport": "6.1.0-alpha.9",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/cli": "6.1.0-alpha.9",
|
||||
"@storybook/components": "6.1.0-alpha.9",
|
||||
"@storybook/core-events": "6.1.0-alpha.9",
|
||||
"@storybook/design-system": "^5.1.0",
|
||||
"@storybook/node-logger": "6.1.0-alpha.7",
|
||||
"@storybook/react": "6.1.0-alpha.7",
|
||||
"@storybook/source-loader": "6.1.0-alpha.7",
|
||||
"@storybook/theming": "6.1.0-alpha.7",
|
||||
"@storybook/node-logger": "6.1.0-alpha.9",
|
||||
"@storybook/react": "6.1.0-alpha.9",
|
||||
"@storybook/source-loader": "6.1.0-alpha.9",
|
||||
"@storybook/theming": "6.1.0-alpha.9",
|
||||
"chromatic": "^5.0.0",
|
||||
"cors": "^2.8.5",
|
||||
"cross-env": "^7.0.0",
|
||||
|
@ -11,6 +11,7 @@ import {
|
||||
import { withKnobs, text } from '@storybook/addon-knobs';
|
||||
import { action } from '@storybook/addon-actions';
|
||||
import { Button } from '@storybook/react/demo';
|
||||
import styled from 'styled-components';
|
||||
import TsButton from '../../components/TsButton';
|
||||
import FlowTypeButton from '../../components/FlowTypeButton';
|
||||
import { DocgenButton } from '../../components/DocgenButton';
|
||||
@ -133,6 +134,49 @@ export const nonStory2 = () => <Button>Not a story</Button>; // another one
|
||||
<Story id="basics-button--all-buttons" height="400px" />
|
||||
</Canvas>
|
||||
|
||||
export const FixedLayoutExample = styled.div(({ theme }) => ({
|
||||
'&, header, aside, main, footer': {
|
||||
position: 'fixed',
|
||||
top: 0,
|
||||
right: 0,
|
||||
bottom: 0,
|
||||
left: 0,
|
||||
},
|
||||
header: {
|
||||
height: '3rem',
|
||||
background: 'red',
|
||||
},
|
||||
'aside, main': {
|
||||
top: '3rem',
|
||||
},
|
||||
aside: {
|
||||
width: '10rem',
|
||||
background: 'coral',
|
||||
},
|
||||
main: {
|
||||
left: '10rem',
|
||||
background: 'yellow',
|
||||
},
|
||||
footer: {
|
||||
top: 'auto',
|
||||
height: '3rem',
|
||||
background: 'green',
|
||||
},
|
||||
}));
|
||||
|
||||
Fixed layout requires custom `height` since it can't be determined.
|
||||
|
||||
<Canvas withToolbar>
|
||||
<Story name="fixed layout example" height="15rem">
|
||||
<FixedLayoutExample>
|
||||
<header />
|
||||
<aside />
|
||||
<main />
|
||||
<footer />
|
||||
</FixedLayoutExample>
|
||||
</Story>
|
||||
</Canvas>
|
||||
|
||||
## Description
|
||||
|
||||
<Description markdown="this is _markdown_" />
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "preact-example",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules",
|
||||
@ -15,17 +15,17 @@
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.9.6",
|
||||
"@babel/plugin-transform-runtime": "^7.9.6",
|
||||
"@storybook/addon-a11y": "6.1.0-alpha.7",
|
||||
"@storybook/addon-actions": "6.1.0-alpha.7",
|
||||
"@storybook/addon-backgrounds": "6.1.0-alpha.7",
|
||||
"@storybook/addon-knobs": "6.1.0-alpha.7",
|
||||
"@storybook/addon-links": "6.1.0-alpha.7",
|
||||
"@storybook/addon-storyshots": "6.1.0-alpha.7",
|
||||
"@storybook/addon-storysource": "6.1.0-alpha.7",
|
||||
"@storybook/addon-viewport": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/preact": "6.1.0-alpha.7",
|
||||
"@storybook/source-loader": "6.1.0-alpha.7",
|
||||
"@storybook/addon-a11y": "6.1.0-alpha.9",
|
||||
"@storybook/addon-actions": "6.1.0-alpha.9",
|
||||
"@storybook/addon-backgrounds": "6.1.0-alpha.9",
|
||||
"@storybook/addon-knobs": "6.1.0-alpha.9",
|
||||
"@storybook/addon-links": "6.1.0-alpha.9",
|
||||
"@storybook/addon-storyshots": "6.1.0-alpha.9",
|
||||
"@storybook/addon-storysource": "6.1.0-alpha.9",
|
||||
"@storybook/addon-viewport": "6.1.0-alpha.9",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/preact": "6.1.0-alpha.9",
|
||||
"@storybook/source-loader": "6.1.0-alpha.9",
|
||||
"babel-loader": "^8.0.4",
|
||||
"cross-env": "^7.0.0",
|
||||
"file-loader": "^6.0.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "rax-kitchen-sink",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "build-scripts build",
|
||||
@ -20,20 +20,20 @@
|
||||
"devDependencies": {
|
||||
"@alib/build-scripts": "^0.1.8",
|
||||
"@babel/preset-react": "^7.7.4",
|
||||
"@storybook/addon-a11y": "6.1.0-alpha.7",
|
||||
"@storybook/addon-actions": "6.1.0-alpha.7",
|
||||
"@storybook/addon-backgrounds": "6.1.0-alpha.7",
|
||||
"@storybook/addon-events": "6.1.0-alpha.7",
|
||||
"@storybook/addon-jest": "6.1.0-alpha.7",
|
||||
"@storybook/addon-knobs": "6.1.0-alpha.7",
|
||||
"@storybook/addon-links": "6.1.0-alpha.7",
|
||||
"@storybook/addon-storyshots": "6.1.0-alpha.7",
|
||||
"@storybook/addon-storysource": "6.1.0-alpha.7",
|
||||
"@storybook/addon-viewport": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/rax": "6.1.0-alpha.7",
|
||||
"@storybook/source-loader": "6.1.0-alpha.7",
|
||||
"@storybook/theming": "6.1.0-alpha.7",
|
||||
"@storybook/addon-a11y": "6.1.0-alpha.9",
|
||||
"@storybook/addon-actions": "6.1.0-alpha.9",
|
||||
"@storybook/addon-backgrounds": "6.1.0-alpha.9",
|
||||
"@storybook/addon-events": "6.1.0-alpha.9",
|
||||
"@storybook/addon-jest": "6.1.0-alpha.9",
|
||||
"@storybook/addon-knobs": "6.1.0-alpha.9",
|
||||
"@storybook/addon-links": "6.1.0-alpha.9",
|
||||
"@storybook/addon-storyshots": "6.1.0-alpha.9",
|
||||
"@storybook/addon-storysource": "6.1.0-alpha.9",
|
||||
"@storybook/addon-viewport": "6.1.0-alpha.9",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/rax": "6.1.0-alpha.9",
|
||||
"@storybook/source-loader": "6.1.0-alpha.9",
|
||||
"@storybook/theming": "6.1.0-alpha.9",
|
||||
"babel-eslint": "^10.0.3",
|
||||
"build-plugin-rax-app": "^0.2.0",
|
||||
"stylesheet-loader": "^0.8.0"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/example-react-ts",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build-storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true build-storybook -c ./",
|
||||
@ -8,9 +8,9 @@
|
||||
"storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true start-storybook -p 9011 -c ./ --no-dll"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addon-controls": "6.1.0-alpha.7",
|
||||
"@storybook/addon-essentials": "6.1.0-alpha.7",
|
||||
"@storybook/react": "6.1.0-alpha.7",
|
||||
"@storybook/addon-controls": "6.1.0-alpha.9",
|
||||
"@storybook/addon-essentials": "6.1.0-alpha.9",
|
||||
"@storybook/react": "6.1.0-alpha.9",
|
||||
"@types/react": "^16.9.35",
|
||||
"@types/react-dom": "^16.9.8",
|
||||
"prop-types": "15.7.2",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "riot-example",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules",
|
||||
@ -15,17 +15,17 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.9.6",
|
||||
"@storybook/addon-a11y": "6.1.0-alpha.7",
|
||||
"@storybook/addon-actions": "6.1.0-alpha.7",
|
||||
"@storybook/addon-backgrounds": "6.1.0-alpha.7",
|
||||
"@storybook/addon-knobs": "6.1.0-alpha.7",
|
||||
"@storybook/addon-links": "6.1.0-alpha.7",
|
||||
"@storybook/addon-storyshots": "6.1.0-alpha.7",
|
||||
"@storybook/addon-storysource": "6.1.0-alpha.7",
|
||||
"@storybook/addon-viewport": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/riot": "6.1.0-alpha.7",
|
||||
"@storybook/source-loader": "6.1.0-alpha.7",
|
||||
"@storybook/addon-a11y": "6.1.0-alpha.9",
|
||||
"@storybook/addon-actions": "6.1.0-alpha.9",
|
||||
"@storybook/addon-backgrounds": "6.1.0-alpha.9",
|
||||
"@storybook/addon-knobs": "6.1.0-alpha.9",
|
||||
"@storybook/addon-links": "6.1.0-alpha.9",
|
||||
"@storybook/addon-storyshots": "6.1.0-alpha.9",
|
||||
"@storybook/addon-storysource": "6.1.0-alpha.9",
|
||||
"@storybook/addon-viewport": "6.1.0-alpha.9",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/riot": "6.1.0-alpha.9",
|
||||
"@storybook/source-loader": "6.1.0-alpha.9",
|
||||
"babel-loader": "^8.0.4",
|
||||
"cross-env": "^7.0.0",
|
||||
"file-loader": "^6.0.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "server-kitchen-sink",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"private": true,
|
||||
"description": "",
|
||||
"keywords": [],
|
||||
@ -14,13 +14,13 @@
|
||||
"storybook": "SERVER_PORT=1137 start-storybook -p 9006 --quiet"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-a11y": "6.1.0-alpha.7",
|
||||
"@storybook/addon-actions": "6.1.0-alpha.7",
|
||||
"@storybook/addon-backgrounds": "6.1.0-alpha.7",
|
||||
"@storybook/addon-controls": "6.1.0-alpha.7",
|
||||
"@storybook/addon-links": "6.1.0-alpha.7",
|
||||
"@storybook/node-logger": "6.1.0-alpha.7",
|
||||
"@storybook/server": "6.1.0-alpha.7",
|
||||
"@storybook/addon-a11y": "6.1.0-alpha.9",
|
||||
"@storybook/addon-actions": "6.1.0-alpha.9",
|
||||
"@storybook/addon-backgrounds": "6.1.0-alpha.9",
|
||||
"@storybook/addon-controls": "6.1.0-alpha.9",
|
||||
"@storybook/addon-links": "6.1.0-alpha.9",
|
||||
"@storybook/node-logger": "6.1.0-alpha.9",
|
||||
"@storybook/server": "6.1.0-alpha.9",
|
||||
"concurrently": "^5.2.0",
|
||||
"cors": "^2.8.5",
|
||||
"express": "~4.17.1",
|
||||
|
@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "standalone-preview",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"storybook": "parcel ./storybook.html --port 1337"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/react": "6.1.0-alpha.7",
|
||||
"@storybook/react": "6.1.0-alpha.9",
|
||||
"parcel": "^1.12.3",
|
||||
"react": "^16.8.3",
|
||||
"react-dom": "^16.8.3"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "svelte-example",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build-storybook": "build-storybook -s public",
|
||||
@ -10,19 +10,19 @@
|
||||
"global": "^4.3.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-a11y": "6.1.0-alpha.7",
|
||||
"@storybook/addon-actions": "6.1.0-alpha.7",
|
||||
"@storybook/addon-backgrounds": "6.1.0-alpha.7",
|
||||
"@storybook/addon-controls": "6.1.0-alpha.7",
|
||||
"@storybook/addon-docs": "6.1.0-alpha.7",
|
||||
"@storybook/addon-knobs": "6.1.0-alpha.7",
|
||||
"@storybook/addon-links": "6.1.0-alpha.7",
|
||||
"@storybook/addon-storyshots": "6.1.0-alpha.7",
|
||||
"@storybook/addon-storysource": "6.1.0-alpha.7",
|
||||
"@storybook/addon-viewport": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/source-loader": "6.1.0-alpha.7",
|
||||
"@storybook/svelte": "6.1.0-alpha.7"
|
||||
"@storybook/addon-a11y": "6.1.0-alpha.9",
|
||||
"@storybook/addon-actions": "6.1.0-alpha.9",
|
||||
"@storybook/addon-backgrounds": "6.1.0-alpha.9",
|
||||
"@storybook/addon-controls": "6.1.0-alpha.9",
|
||||
"@storybook/addon-docs": "6.1.0-alpha.9",
|
||||
"@storybook/addon-knobs": "6.1.0-alpha.9",
|
||||
"@storybook/addon-links": "6.1.0-alpha.9",
|
||||
"@storybook/addon-storyshots": "6.1.0-alpha.9",
|
||||
"@storybook/addon-storysource": "6.1.0-alpha.9",
|
||||
"@storybook/addon-viewport": "6.1.0-alpha.9",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/source-loader": "6.1.0-alpha.9",
|
||||
"@storybook/svelte": "6.1.0-alpha.9"
|
||||
},
|
||||
"storybook": {
|
||||
"chromatic": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "vue-cli-example",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "vue-cli-service build",
|
||||
@ -15,11 +15,11 @@
|
||||
"vue-property-decorator": "^9.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-controls": "6.1.0-alpha.7",
|
||||
"@storybook/addon-essentials": "6.1.0-alpha.7",
|
||||
"@storybook/addon-controls": "6.1.0-alpha.9",
|
||||
"@storybook/addon-essentials": "6.1.0-alpha.9",
|
||||
"@storybook/preset-scss": "^1.0.2",
|
||||
"@storybook/source-loader": "6.1.0-alpha.7",
|
||||
"@storybook/vue": "6.1.0-alpha.7",
|
||||
"@storybook/source-loader": "6.1.0-alpha.9",
|
||||
"@storybook/vue": "6.1.0-alpha.9",
|
||||
"@vue/cli-plugin-babel": "~4.3.0",
|
||||
"@vue/cli-plugin-typescript": "~4.3.0",
|
||||
"@vue/cli-service": "~4.3.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "vue-example",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules",
|
||||
@ -14,19 +14,19 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.9.6",
|
||||
"@storybook/addon-a11y": "6.1.0-alpha.7",
|
||||
"@storybook/addon-actions": "6.1.0-alpha.7",
|
||||
"@storybook/addon-backgrounds": "6.1.0-alpha.7",
|
||||
"@storybook/addon-controls": "6.1.0-alpha.7",
|
||||
"@storybook/addon-docs": "6.1.0-alpha.7",
|
||||
"@storybook/addon-knobs": "6.1.0-alpha.7",
|
||||
"@storybook/addon-links": "6.1.0-alpha.7",
|
||||
"@storybook/addon-storyshots": "6.1.0-alpha.7",
|
||||
"@storybook/addon-storysource": "6.1.0-alpha.7",
|
||||
"@storybook/addon-viewport": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/source-loader": "6.1.0-alpha.7",
|
||||
"@storybook/vue": "6.1.0-alpha.7",
|
||||
"@storybook/addon-a11y": "6.1.0-alpha.9",
|
||||
"@storybook/addon-actions": "6.1.0-alpha.9",
|
||||
"@storybook/addon-backgrounds": "6.1.0-alpha.9",
|
||||
"@storybook/addon-controls": "6.1.0-alpha.9",
|
||||
"@storybook/addon-docs": "6.1.0-alpha.9",
|
||||
"@storybook/addon-knobs": "6.1.0-alpha.9",
|
||||
"@storybook/addon-links": "6.1.0-alpha.9",
|
||||
"@storybook/addon-storyshots": "6.1.0-alpha.9",
|
||||
"@storybook/addon-storysource": "6.1.0-alpha.9",
|
||||
"@storybook/addon-viewport": "6.1.0-alpha.9",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/source-loader": "6.1.0-alpha.9",
|
||||
"@storybook/vue": "6.1.0-alpha.9",
|
||||
"@vue/babel-preset-jsx": "^1.1.2",
|
||||
"babel-loader": "^8.0.5",
|
||||
"cross-env": "^7.0.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "web-components-kitchen-sink",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"private": true,
|
||||
"description": "",
|
||||
"keywords": [],
|
||||
@ -12,24 +12,24 @@
|
||||
"storybook": "start-storybook -p 9006"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-a11y": "6.1.0-alpha.7",
|
||||
"@storybook/addon-actions": "6.1.0-alpha.7",
|
||||
"@storybook/addon-backgrounds": "6.1.0-alpha.7",
|
||||
"@storybook/addon-controls": "6.1.0-alpha.7",
|
||||
"@storybook/addon-docs": "6.1.0-alpha.7",
|
||||
"@storybook/addon-events": "6.1.0-alpha.7",
|
||||
"@storybook/addon-jest": "6.1.0-alpha.7",
|
||||
"@storybook/addon-knobs": "6.1.0-alpha.7",
|
||||
"@storybook/addon-links": "6.1.0-alpha.7",
|
||||
"@storybook/addon-storyshots": "6.1.0-alpha.7",
|
||||
"@storybook/addon-storysource": "6.1.0-alpha.7",
|
||||
"@storybook/addon-viewport": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/client-api": "6.1.0-alpha.7",
|
||||
"@storybook/core": "6.1.0-alpha.7",
|
||||
"@storybook/core-events": "6.1.0-alpha.7",
|
||||
"@storybook/source-loader": "6.1.0-alpha.7",
|
||||
"@storybook/web-components": "6.1.0-alpha.7",
|
||||
"@storybook/addon-a11y": "6.1.0-alpha.9",
|
||||
"@storybook/addon-actions": "6.1.0-alpha.9",
|
||||
"@storybook/addon-backgrounds": "6.1.0-alpha.9",
|
||||
"@storybook/addon-controls": "6.1.0-alpha.9",
|
||||
"@storybook/addon-docs": "6.1.0-alpha.9",
|
||||
"@storybook/addon-events": "6.1.0-alpha.9",
|
||||
"@storybook/addon-jest": "6.1.0-alpha.9",
|
||||
"@storybook/addon-knobs": "6.1.0-alpha.9",
|
||||
"@storybook/addon-links": "6.1.0-alpha.9",
|
||||
"@storybook/addon-storyshots": "6.1.0-alpha.9",
|
||||
"@storybook/addon-storysource": "6.1.0-alpha.9",
|
||||
"@storybook/addon-viewport": "6.1.0-alpha.9",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/client-api": "6.1.0-alpha.9",
|
||||
"@storybook/core": "6.1.0-alpha.9",
|
||||
"@storybook/core-events": "6.1.0-alpha.9",
|
||||
"@storybook/source-loader": "6.1.0-alpha.9",
|
||||
"@storybook/web-components": "6.1.0-alpha.9",
|
||||
"babel-loader": "^8.0.5",
|
||||
"eventemitter3": "^4.0.0",
|
||||
"format-json": "^1.0.3",
|
||||
|
@ -2,5 +2,5 @@
|
||||
"npmClient": "yarn",
|
||||
"useWorkspaces": true,
|
||||
"registry": "https://registry.npmjs.org",
|
||||
"version": "6.1.0-alpha.7"
|
||||
"version": "6.1.0-alpha.9"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addons",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "Storybook addons store",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -28,12 +28,12 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/api": "6.1.0-alpha.7",
|
||||
"@storybook/channels": "6.1.0-alpha.7",
|
||||
"@storybook/client-logger": "6.1.0-alpha.7",
|
||||
"@storybook/core-events": "6.1.0-alpha.7",
|
||||
"@storybook/router": "6.1.0-alpha.7",
|
||||
"@storybook/theming": "6.1.0-alpha.7",
|
||||
"@storybook/api": "6.1.0-alpha.9",
|
||||
"@storybook/channels": "6.1.0-alpha.9",
|
||||
"@storybook/client-logger": "6.1.0-alpha.9",
|
||||
"@storybook/core-events": "6.1.0-alpha.9",
|
||||
"@storybook/router": "6.1.0-alpha.9",
|
||||
"@storybook/theming": "6.1.0-alpha.9",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"react": "^16.8.3",
|
||||
@ -43,7 +43,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e",
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/api",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "Core Storybook API & Context",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -29,13 +29,13 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@reach/router": "^1.3.3",
|
||||
"@storybook/channels": "6.1.0-alpha.7",
|
||||
"@storybook/client-logger": "6.1.0-alpha.7",
|
||||
"@storybook/core-events": "6.1.0-alpha.7",
|
||||
"@storybook/channels": "6.1.0-alpha.9",
|
||||
"@storybook/client-logger": "6.1.0-alpha.9",
|
||||
"@storybook/core-events": "6.1.0-alpha.9",
|
||||
"@storybook/csf": "0.0.1",
|
||||
"@storybook/router": "6.1.0-alpha.7",
|
||||
"@storybook/router": "6.1.0-alpha.9",
|
||||
"@storybook/semver": "^7.3.2",
|
||||
"@storybook/theming": "6.1.0-alpha.7",
|
||||
"@storybook/theming": "6.1.0-alpha.9",
|
||||
"@types/reach__router": "^1.3.5",
|
||||
"core-js": "^3.0.1",
|
||||
"fast-deep-equal": "^3.1.1",
|
||||
@ -59,7 +59,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e",
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1 +1 @@
|
||||
export const version = '6.1.0-alpha.7';
|
||||
export const version = '6.1.0-alpha.9';
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/channel-postmessage",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -28,9 +28,9 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/channels": "6.1.0-alpha.7",
|
||||
"@storybook/client-logger": "6.1.0-alpha.7",
|
||||
"@storybook/core-events": "6.1.0-alpha.7",
|
||||
"@storybook/channels": "6.1.0-alpha.9",
|
||||
"@storybook/client-logger": "6.1.0-alpha.9",
|
||||
"@storybook/core-events": "6.1.0-alpha.9",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"qs": "^6.6.0",
|
||||
@ -39,7 +39,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e",
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/channel-websocket",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -28,7 +28,7 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/channels": "6.1.0-alpha.7",
|
||||
"@storybook/channels": "6.1.0-alpha.9",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"telejson": "^5.0.2"
|
||||
@ -36,7 +36,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e",
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/channels",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -35,7 +35,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e",
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "sb",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "Storybook CLI",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -22,10 +22,10 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/cli": "6.1.0-alpha.7"
|
||||
"@storybook/cli": "6.1.0-alpha.9"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e"
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "storybook",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "Storybook CLI",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -23,10 +23,10 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/cli": "6.1.0-alpha.7"
|
||||
"@storybook/cli": "6.1.0-alpha.9"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e"
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/cli",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "Storybook's CLI - easiest method of adding storybook to your projects",
|
||||
"keywords": [
|
||||
"cli",
|
||||
@ -39,8 +39,8 @@
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.9.6",
|
||||
"@babel/preset-env": "^7.9.6",
|
||||
"@storybook/codemod": "6.1.0-alpha.7",
|
||||
"@storybook/node-logger": "6.1.0-alpha.7",
|
||||
"@storybook/codemod": "6.1.0-alpha.9",
|
||||
"@storybook/node-logger": "6.1.0-alpha.9",
|
||||
"@storybook/semver": "^7.3.2",
|
||||
"chalk": "^4.0.0",
|
||||
"commander": "^5.0.0",
|
||||
@ -62,7 +62,7 @@
|
||||
"update-notifier": "^4.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/client-api": "6.1.0-alpha.7",
|
||||
"@storybook/client-api": "6.1.0-alpha.9",
|
||||
"@types/cross-spawn": "^6.0.1",
|
||||
"@types/inquirer": "^6.5.0",
|
||||
"@types/puppeteer-core": "^2.0.0",
|
||||
@ -76,5 +76,5 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e"
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629"
|
||||
}
|
||||
|
@ -1,55 +1,55 @@
|
||||
{
|
||||
"@storybook/addon-a11y": "6.1.0-alpha.7",
|
||||
"@storybook/addon-actions": "6.1.0-alpha.7",
|
||||
"@storybook/addon-backgrounds": "6.1.0-alpha.7",
|
||||
"@storybook/addon-controls": "6.1.0-alpha.7",
|
||||
"@storybook/addon-cssresources": "6.1.0-alpha.7",
|
||||
"@storybook/addon-design-assets": "6.1.0-alpha.7",
|
||||
"@storybook/addon-docs": "6.1.0-alpha.7",
|
||||
"@storybook/addon-essentials": "6.1.0-alpha.7",
|
||||
"@storybook/addon-events": "6.1.0-alpha.7",
|
||||
"@storybook/addon-google-analytics": "6.1.0-alpha.7",
|
||||
"@storybook/addon-graphql": "6.1.0-alpha.7",
|
||||
"@storybook/addon-jest": "6.1.0-alpha.7",
|
||||
"@storybook/addon-knobs": "6.1.0-alpha.7",
|
||||
"@storybook/addon-links": "6.1.0-alpha.7",
|
||||
"@storybook/addon-queryparams": "6.1.0-alpha.7",
|
||||
"@storybook/addon-storyshots": "6.1.0-alpha.7",
|
||||
"@storybook/addon-storyshots-puppeteer": "6.1.0-alpha.7",
|
||||
"@storybook/addon-storysource": "6.1.0-alpha.7",
|
||||
"@storybook/addon-toolbars": "6.1.0-alpha.7",
|
||||
"@storybook/addon-viewport": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/angular": "6.1.0-alpha.7",
|
||||
"@storybook/api": "6.1.0-alpha.7",
|
||||
"@storybook/aurelia": "6.1.0-alpha.7",
|
||||
"@storybook/channel-postmessage": "6.1.0-alpha.7",
|
||||
"@storybook/channel-websocket": "6.1.0-alpha.7",
|
||||
"@storybook/channels": "6.1.0-alpha.7",
|
||||
"@storybook/cli": "6.1.0-alpha.7",
|
||||
"@storybook/client-api": "6.1.0-alpha.7",
|
||||
"@storybook/client-logger": "6.1.0-alpha.7",
|
||||
"@storybook/codemod": "6.1.0-alpha.7",
|
||||
"@storybook/components": "6.1.0-alpha.7",
|
||||
"@storybook/core": "6.1.0-alpha.7",
|
||||
"@storybook/core-events": "6.1.0-alpha.7",
|
||||
"@storybook/ember": "6.1.0-alpha.7",
|
||||
"@storybook/html": "6.1.0-alpha.7",
|
||||
"@storybook/marionette": "6.1.0-alpha.7",
|
||||
"@storybook/marko": "6.1.0-alpha.7",
|
||||
"@storybook/mithril": "6.1.0-alpha.7",
|
||||
"@storybook/node-logger": "6.1.0-alpha.7",
|
||||
"@storybook/postinstall": "6.1.0-alpha.7",
|
||||
"@storybook/preact": "6.1.0-alpha.7",
|
||||
"@storybook/rax": "6.1.0-alpha.7",
|
||||
"@storybook/react": "6.1.0-alpha.7",
|
||||
"@storybook/riot": "6.1.0-alpha.7",
|
||||
"@storybook/router": "6.1.0-alpha.7",
|
||||
"@storybook/server": "6.1.0-alpha.7",
|
||||
"@storybook/source-loader": "6.1.0-alpha.7",
|
||||
"@storybook/svelte": "6.1.0-alpha.7",
|
||||
"@storybook/theming": "6.1.0-alpha.7",
|
||||
"@storybook/ui": "6.1.0-alpha.7",
|
||||
"@storybook/vue": "6.1.0-alpha.7",
|
||||
"@storybook/web-components": "6.1.0-alpha.7"
|
||||
"@storybook/addon-a11y": "6.1.0-alpha.9",
|
||||
"@storybook/addon-actions": "6.1.0-alpha.9",
|
||||
"@storybook/addon-backgrounds": "6.1.0-alpha.9",
|
||||
"@storybook/addon-controls": "6.1.0-alpha.9",
|
||||
"@storybook/addon-cssresources": "6.1.0-alpha.9",
|
||||
"@storybook/addon-design-assets": "6.1.0-alpha.9",
|
||||
"@storybook/addon-docs": "6.1.0-alpha.9",
|
||||
"@storybook/addon-essentials": "6.1.0-alpha.9",
|
||||
"@storybook/addon-events": "6.1.0-alpha.9",
|
||||
"@storybook/addon-google-analytics": "6.1.0-alpha.9",
|
||||
"@storybook/addon-graphql": "6.1.0-alpha.9",
|
||||
"@storybook/addon-jest": "6.1.0-alpha.9",
|
||||
"@storybook/addon-knobs": "6.1.0-alpha.9",
|
||||
"@storybook/addon-links": "6.1.0-alpha.9",
|
||||
"@storybook/addon-queryparams": "6.1.0-alpha.9",
|
||||
"@storybook/addon-storyshots": "6.1.0-alpha.9",
|
||||
"@storybook/addon-storyshots-puppeteer": "6.1.0-alpha.9",
|
||||
"@storybook/addon-storysource": "6.1.0-alpha.9",
|
||||
"@storybook/addon-toolbars": "6.1.0-alpha.9",
|
||||
"@storybook/addon-viewport": "6.1.0-alpha.9",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/angular": "6.1.0-alpha.9",
|
||||
"@storybook/api": "6.1.0-alpha.9",
|
||||
"@storybook/aurelia": "6.1.0-alpha.9",
|
||||
"@storybook/channel-postmessage": "6.1.0-alpha.9",
|
||||
"@storybook/channel-websocket": "6.1.0-alpha.9",
|
||||
"@storybook/channels": "6.1.0-alpha.9",
|
||||
"@storybook/cli": "6.1.0-alpha.9",
|
||||
"@storybook/client-api": "6.1.0-alpha.9",
|
||||
"@storybook/client-logger": "6.1.0-alpha.9",
|
||||
"@storybook/codemod": "6.1.0-alpha.9",
|
||||
"@storybook/components": "6.1.0-alpha.9",
|
||||
"@storybook/core": "6.1.0-alpha.9",
|
||||
"@storybook/core-events": "6.1.0-alpha.9",
|
||||
"@storybook/ember": "6.1.0-alpha.9",
|
||||
"@storybook/html": "6.1.0-alpha.9",
|
||||
"@storybook/marionette": "6.1.0-alpha.9",
|
||||
"@storybook/marko": "6.1.0-alpha.9",
|
||||
"@storybook/mithril": "6.1.0-alpha.9",
|
||||
"@storybook/node-logger": "6.1.0-alpha.9",
|
||||
"@storybook/postinstall": "6.1.0-alpha.9",
|
||||
"@storybook/preact": "6.1.0-alpha.9",
|
||||
"@storybook/rax": "6.1.0-alpha.9",
|
||||
"@storybook/react": "6.1.0-alpha.9",
|
||||
"@storybook/riot": "6.1.0-alpha.9",
|
||||
"@storybook/router": "6.1.0-alpha.9",
|
||||
"@storybook/server": "6.1.0-alpha.9",
|
||||
"@storybook/source-loader": "6.1.0-alpha.9",
|
||||
"@storybook/svelte": "6.1.0-alpha.9",
|
||||
"@storybook/theming": "6.1.0-alpha.9",
|
||||
"@storybook/ui": "6.1.0-alpha.9",
|
||||
"@storybook/vue": "6.1.0-alpha.9",
|
||||
"@storybook/web-components": "6.1.0-alpha.9"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/client-api",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "Storybook Client API",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -28,11 +28,11 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/channel-postmessage": "6.1.0-alpha.7",
|
||||
"@storybook/channels": "6.1.0-alpha.7",
|
||||
"@storybook/client-logger": "6.1.0-alpha.7",
|
||||
"@storybook/core-events": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/channel-postmessage": "6.1.0-alpha.9",
|
||||
"@storybook/channels": "6.1.0-alpha.9",
|
||||
"@storybook/client-logger": "6.1.0-alpha.9",
|
||||
"@storybook/core-events": "6.1.0-alpha.9",
|
||||
"@storybook/csf": "0.0.1",
|
||||
"@types/qs": "^6.9.0",
|
||||
"@types/webpack-env": "^1.15.2",
|
||||
@ -51,7 +51,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e",
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/client-logger",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -34,7 +34,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e",
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/codemod",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "A collection of codemod scripts written with JSCodeshift",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -30,7 +30,7 @@
|
||||
"dependencies": {
|
||||
"@mdx-js/mdx": "^1.5.1",
|
||||
"@storybook/csf": "0.0.1",
|
||||
"@storybook/node-logger": "6.1.0-alpha.7",
|
||||
"@storybook/node-logger": "6.1.0-alpha.9",
|
||||
"core-js": "^3.0.1",
|
||||
"cross-spawn": "^7.0.0",
|
||||
"globby": "^11.0.0",
|
||||
@ -47,5 +47,5 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e"
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629"
|
||||
}
|
||||
|
@ -13,3 +13,14 @@ export const sanitizeName = (name) => {
|
||||
}
|
||||
return key;
|
||||
};
|
||||
|
||||
export function jscodeshiftToPrettierParser(parser) {
|
||||
const parserMap = {
|
||||
babylon: 'babel',
|
||||
flow: 'flow',
|
||||
ts: 'typescript',
|
||||
tsx: 'typescript',
|
||||
};
|
||||
|
||||
return parserMap[parser] || 'babel';
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
import prettier from 'prettier';
|
||||
import { logger } from '@storybook/node-logger';
|
||||
import { storyNameFromExport } from '@storybook/csf';
|
||||
import { sanitizeName } from '../lib/utils';
|
||||
import { sanitizeName, jscodeshiftToPrettierParser } from '../lib/utils';
|
||||
|
||||
/**
|
||||
* Convert a legacy story API to component story format
|
||||
@ -25,6 +25,8 @@ import { sanitizeName } from '../lib/utils';
|
||||
* NOTES: only support chained storiesOf() calls
|
||||
*/
|
||||
export default function transformer(file, api, options) {
|
||||
const LITERAL = ['ts', 'tsx'].includes(options.parser) ? 'StringLiteral' : 'Literal';
|
||||
|
||||
const j = api.jscodeshift;
|
||||
const root = j(file.source);
|
||||
|
||||
@ -107,7 +109,7 @@ export default function transformer(file, api, options) {
|
||||
base
|
||||
.find(j.CallExpression)
|
||||
.filter((call) => call.node.callee.name === 'storiesOf')
|
||||
.filter((call) => call.node.arguments.length > 0 && call.node.arguments[0].type === 'Literal')
|
||||
.filter((call) => call.node.arguments.length > 0 && call.node.arguments[0].type === LITERAL)
|
||||
.forEach((storiesOf) => {
|
||||
const title = storiesOf.node.arguments[0].value;
|
||||
statements.push(
|
||||
@ -125,7 +127,7 @@ export default function transformer(file, api, options) {
|
||||
base
|
||||
.find(j.CallExpression)
|
||||
.filter((add) => add.node.callee.property && add.node.callee.property.name === 'add')
|
||||
.filter((add) => add.node.arguments.length >= 2 && add.node.arguments[0].type === 'Literal')
|
||||
.filter((add) => add.node.arguments.length >= 2 && add.node.arguments[0].type === LITERAL)
|
||||
.forEach((add) => adds.push(add));
|
||||
|
||||
adds.reverse();
|
||||
@ -233,7 +235,7 @@ export default function transformer(file, api, options) {
|
||||
root
|
||||
.find(j.CallExpression)
|
||||
.filter((add) => add.node.callee.property && add.node.callee.property.name === 'add')
|
||||
.filter((add) => add.node.arguments.length >= 2 && add.node.arguments[0].type === 'Literal')
|
||||
.filter((add) => add.node.arguments.length >= 2 && add.node.arguments[0].type === LITERAL)
|
||||
.filter((add) =>
|
||||
['ExpressionStatement', 'VariableDeclarator'].includes(add.parentPath.node.type)
|
||||
)
|
||||
@ -260,13 +262,16 @@ export default function transformer(file, api, options) {
|
||||
return source;
|
||||
}
|
||||
|
||||
return prettier.format(source, {
|
||||
parser: options.parser || 'babel',
|
||||
// FIXME: storybook defaults
|
||||
const prettierConfig = prettier.resolveConfig.sync('.', { editorconfig: true }) || {
|
||||
printWidth: 100,
|
||||
tabWidth: 2,
|
||||
bracketSpacing: true,
|
||||
trailingComma: 'es5',
|
||||
singleQuote: true,
|
||||
};
|
||||
|
||||
return prettier.format(source, {
|
||||
...prettierConfig,
|
||||
parser: jscodeshiftToPrettierParser(options.parser) || 'babel',
|
||||
});
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/components",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "Core Storybook Components",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -29,9 +29,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@popperjs/core": "^2.4.4",
|
||||
"@storybook/client-logger": "6.1.0-alpha.7",
|
||||
"@storybook/client-logger": "6.1.0-alpha.9",
|
||||
"@storybook/csf": "0.0.1",
|
||||
"@storybook/theming": "6.1.0-alpha.7",
|
||||
"@storybook/theming": "6.1.0-alpha.9",
|
||||
"@types/overlayscrollbars": "^1.9.0",
|
||||
"@types/react-color": "^3.0.1",
|
||||
"@types/react-syntax-highlighter": "11.0.4",
|
||||
@ -60,7 +60,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e",
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -36,7 +36,9 @@ type StoryProps = InlineStoryProps | IFrameStoryProps;
|
||||
|
||||
const InlineStory: FunctionComponent<InlineStoryProps> = ({ storyFn, height, id }) => (
|
||||
<Fragment>
|
||||
{height ? <style>{`#story--${id} { min-height: ${height} }`}</style> : null}
|
||||
{height ? (
|
||||
<style>{`#story--${id} { min-height: ${height}; transform: translateZ(0); overflow: auto }`}</style>
|
||||
) : null}
|
||||
<Fragment>
|
||||
{storyFn ? createElement(storyFn) : <EmptyBlock>{MISSING_STORY(id)}</EmptyBlock>}
|
||||
</Fragment>
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/core-events",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "Event names used in storybook core",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -33,7 +33,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e",
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/core",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "Storybook framework-agnostic API",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -52,20 +52,20 @@
|
||||
"@babel/preset-react": "^7.8.3",
|
||||
"@babel/preset-typescript": "^7.9.0",
|
||||
"@babel/register": "^7.10.5",
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/api": "6.1.0-alpha.7",
|
||||
"@storybook/channel-postmessage": "6.1.0-alpha.7",
|
||||
"@storybook/channels": "6.1.0-alpha.7",
|
||||
"@storybook/client-api": "6.1.0-alpha.7",
|
||||
"@storybook/client-logger": "6.1.0-alpha.7",
|
||||
"@storybook/components": "6.1.0-alpha.7",
|
||||
"@storybook/core-events": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/api": "6.1.0-alpha.9",
|
||||
"@storybook/channel-postmessage": "6.1.0-alpha.9",
|
||||
"@storybook/channels": "6.1.0-alpha.9",
|
||||
"@storybook/client-api": "6.1.0-alpha.9",
|
||||
"@storybook/client-logger": "6.1.0-alpha.9",
|
||||
"@storybook/components": "6.1.0-alpha.9",
|
||||
"@storybook/core-events": "6.1.0-alpha.9",
|
||||
"@storybook/csf": "0.0.1",
|
||||
"@storybook/node-logger": "6.1.0-alpha.7",
|
||||
"@storybook/router": "6.1.0-alpha.7",
|
||||
"@storybook/node-logger": "6.1.0-alpha.9",
|
||||
"@storybook/router": "6.1.0-alpha.9",
|
||||
"@storybook/semver": "^7.3.2",
|
||||
"@storybook/theming": "6.1.0-alpha.7",
|
||||
"@storybook/ui": "6.1.0-alpha.7",
|
||||
"@storybook/theming": "6.1.0-alpha.9",
|
||||
"@storybook/ui": "6.1.0-alpha.9",
|
||||
"@types/glob-base": "^0.3.0",
|
||||
"@types/micromatch": "^4.0.1",
|
||||
"@types/node-fetch": "^2.5.4",
|
||||
@ -137,5 +137,5 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e"
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/node-logger",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -40,7 +40,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e",
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/postinstall",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "Storybook addons postinstall utilities",
|
||||
"keywords": [
|
||||
"api",
|
||||
@ -39,7 +39,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e",
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/router",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "Core Storybook Router",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -40,7 +40,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e",
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/source-loader",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "Source loader",
|
||||
"keywords": [
|
||||
"lib",
|
||||
@ -29,8 +29,8 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.1.0-alpha.7",
|
||||
"@storybook/client-logger": "6.1.0-alpha.7",
|
||||
"@storybook/addons": "6.1.0-alpha.9",
|
||||
"@storybook/client-logger": "6.1.0-alpha.9",
|
||||
"@storybook/csf": "0.0.1",
|
||||
"core-js": "^3.0.1",
|
||||
"estraverse": "^4.2.0",
|
||||
@ -45,5 +45,5 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e"
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/theming",
|
||||
"version": "6.1.0-alpha.7",
|
||||
"version": "6.1.0-alpha.9",
|
||||
"description": "Core Storybook Components",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -31,7 +31,7 @@
|
||||
"@emotion/core": "^10.0.20",
|
||||
"@emotion/is-prop-valid": "^0.8.6",
|
||||
"@emotion/styled": "^10.0.17",
|
||||
"@storybook/client-logger": "6.1.0-alpha.7",
|
||||
"@storybook/client-logger": "6.1.0-alpha.9",
|
||||
"core-js": "^3.0.1",
|
||||
"deep-object-diff": "^1.1.0",
|
||||
"emotion-theming": "^10.0.19",
|
||||
@ -46,7 +46,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "c63131f0325d039ec30fe244bfc43ee17ad4fe9e",
|
||||
"gitHead": "91446c812d677e4aa2ff714d4c49015a7c8c9629",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
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