Merge branch 'next' into pr/kroeder/8102

# Conflicts:
#	app/polymer/package.json
This commit is contained in:
Norbert de Langen 2020-01-20 19:44:52 +01:00
commit b8543b569c
No known key found for this signature in database
GPG Key ID: 976651DA156C2825
126 changed files with 922 additions and 865 deletions

View File

@ -1,3 +1,60 @@
## 6.0.0-alpha.0 (January 21, 2020)
### Features
* Addon-a11y: Support manual run ([#8883](https://github.com/storybookjs/storybook/pull/8883))
* Addon-cssresources: Disable SyntaxHighlighter for long code ([#9360](https://github.com/storybookjs/storybook/pull/9360))
* Core: Improve monorepo support ([#8822](https://github.com/storybookjs/storybook/pull/8822))
### Bug Fixes
* Fixed Angular button example story ([#9540](https://github.com/storybookjs/storybook/pull/9540))
* Core: Fix generated entry to import at top of file ([#9398](https://github.com/storybookjs/storybook/pull/9398))
* Preact: Fix story function typescript type ([#9123](https://github.com/storybookjs/storybook/pull/9123))
* UI: Make canvas link a link ([#9257](https://github.com/storybookjs/storybook/pull/9257))
### Maintenance
* Typescript: Migrate ember ([#9020](https://github.com/storybookjs/storybook/pull/9020))
* Next 6.0.0 ([#9212](https://github.com/storybookjs/storybook/pull/9212))
* Lock yarn version ([#9138](https://github.com/storybookjs/storybook/pull/9138))
* REMOVE subscription_store ([#9228](https://github.com/storybookjs/storybook/pull/9228))
### Dependency Upgrades
* Update husky to v4 ([#9509](https://github.com/storybookjs/storybook/pull/9509))
## 5.3.7 (January 20, 2020)
### Bug Fixes
* Node-logger: Move `@types/npmlog` to dependencies ([#9538](https://github.com/storybookjs/storybook/pull/9538))
* Core: Fix legacy story URLs ([#9545](https://github.com/storybookjs/storybook/pull/9545))
* Addon-docs: Convert default prop value to string ([#9525](https://github.com/storybookjs/storybook/pull/9525))
* Addon-docs: Preserve Source indentation by default ([#9513](https://github.com/storybookjs/storybook/pull/9513))
## 5.3.6 (January 17, 2020)
### Bug Fixes
* Source-loader: Bypass if file has no exports ([#9505](https://github.com/storybookjs/storybook/pull/9505))
* Core: Fix default sorting of docs-only stories ([#9504](https://github.com/storybookjs/storybook/pull/9504))
## 5.3.5 (January 17, 2020)
### Bug Fixes
* Core: Fix typo for loading addon-notes/register-panel ([#9497](https://github.com/storybookjs/storybook/pull/9497))
* Source-loader: Add imports to top of file ([#9492](https://github.com/storybookjs/storybook/pull/9492))
## 5.3.4 (January 16, 2020)
### Bug Fixes
* Core: Fix presets register panel ([#9486](https://github.com/storybookjs/storybook/pull/9486))
* Core: Fix addon/preset detection for local addons ([#9485](https://github.com/storybookjs/storybook/pull/9485))
* Core: Fix default story sort ([#9482](https://github.com/storybookjs/storybook/pull/9482))
## 5.3.3 (January 14, 2020)
### Bug Fixes

View File

@ -9,6 +9,7 @@
- [Deprecate displayName parameter](#deprecate-displayname-parameter)
- [Unified docs preset](#unified-docs-preset)
- [Simplified hierarchy separators](#simplified-hierarchy-separators)
- [Addon StoryShots Puppeteer uses external puppeteer](#addon-storyshots-puppeteer-uses-external-puppeteer)
- [From version 5.1.x to 5.2.x](#from-version-51x-to-52x)
- [Source-loader](#source-loader)
- [Default viewports](#default-viewports)
@ -186,6 +187,8 @@ getStorybookUI({
});
```
The benefit of using Async Storage is so that when users refresh the app, Storybook can open their last visited story.
### Deprecate displayName parameter
In 5.2, the story parameter `displayName` was introduced as a publicly visible (but internal) API. Storybook's Component Story Format (CSF) loader used it to modify a story's display name independent of the story's `name`/`id` (which were coupled).
@ -218,6 +221,17 @@ addParameters({
NOTE: it is no longer possible to have some stories with roots and others without. If you want to keep the old behavior, simply add a root called "Others" to all your previously unrooted stories.
### Addon StoryShots Puppeteer uses external puppeteer
To give you more control on the Chrome version used when running StoryShots Puppeteer, `puppeteer` is no more included in the addon dependencies. So you can now pick the version of `puppeteer` you want and set it in your project.
If you want the latest version available just run:
```sh
yarn add puppeteer --dev
OR
npm install puppeteer --save-dev
```
## From version 5.1.x to 5.2.x
### Source-loader

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-a11y",
"version": "5.3.3",
"version": "5.3.7",
"description": "a11y addon for storybook",
"keywords": [
"a11y",
@ -33,12 +33,12 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "5.3.3",
"@storybook/api": "5.3.3",
"@storybook/client-logger": "5.3.3",
"@storybook/components": "5.3.3",
"@storybook/core-events": "5.3.3",
"@storybook/theming": "5.3.3",
"@storybook/addons": "5.3.7",
"@storybook/api": "5.3.7",
"@storybook/client-logger": "5.3.7",
"@storybook/components": "5.3.7",
"@storybook/core-events": "5.3.7",
"@storybook/theming": "5.3.7",
"axe-core": "^3.3.2",
"core-js": "^3.0.1",
"global": "^4.3.2",
@ -51,7 +51,8 @@
"util-deprecate": "^1.0.2"
},
"devDependencies": {
"@types/react-redux": "^7.0.6"
"@types/react-redux": "^7.0.6",
"@types/webpack-env": "^1.15.0"
},
"publishConfig": {
"access": "public"

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-actions",
"version": "5.3.3",
"version": "5.3.7",
"description": "Action Logger addon for storybook",
"keywords": [
"storybook"
@ -28,12 +28,12 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "5.3.3",
"@storybook/api": "5.3.3",
"@storybook/client-api": "5.3.3",
"@storybook/components": "5.3.3",
"@storybook/core-events": "5.3.3",
"@storybook/theming": "5.3.3",
"@storybook/addons": "5.3.7",
"@storybook/api": "5.3.7",
"@storybook/client-api": "5.3.7",
"@storybook/components": "5.3.7",
"@storybook/core-events": "5.3.7",
"@storybook/theming": "5.3.7",
"core-js": "^3.0.1",
"fast-deep-equal": "^2.0.1",
"global": "^4.3.2",
@ -45,7 +45,8 @@
},
"devDependencies": {
"@types/lodash": "^4.14.149",
"@types/uuid": "^3.4.4"
"@types/uuid": "^3.4.4",
"@types/webpack-env": "^1.15.0"
},
"publishConfig": {
"access": "public"

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-backgrounds",
"version": "5.3.3",
"version": "5.3.7",
"description": "A storybook addon to show different backgrounds for your preview",
"keywords": [
"addon",
@ -32,19 +32,20 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "5.3.3",
"@storybook/api": "5.3.3",
"@storybook/client-logger": "5.3.3",
"@storybook/components": "5.3.3",
"@storybook/core-events": "5.3.3",
"@storybook/theming": "5.3.3",
"@storybook/addons": "5.3.7",
"@storybook/api": "5.3.7",
"@storybook/client-logger": "5.3.7",
"@storybook/components": "5.3.7",
"@storybook/core-events": "5.3.7",
"@storybook/theming": "5.3.7",
"core-js": "^3.0.1",
"memoizerific": "^1.11.3",
"react": "^16.8.3",
"util-deprecate": "^1.0.2"
},
"devDependencies": {
"@types/util-deprecate": "^1.0.0"
"@types/util-deprecate": "^1.0.0",
"@types/webpack-env": "^1.15.0"
},
"publishConfig": {
"access": "public"

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-centered",
"version": "5.3.3",
"version": "5.3.7",
"description": "Storybook decorator to center components",
"keywords": [
"addon",
@ -29,13 +29,14 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "5.3.3",
"@storybook/addons": "5.3.7",
"core-js": "^3.0.1",
"global": "^4.3.2",
"util-deprecate": "^1.0.2"
},
"devDependencies": {
"@types/mithril": "^1.1.16",
"@types/webpack-env": "^1.15.0",
"mithril": "*",
"preact": "*",
"react": "*"

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-contexts",
"version": "5.3.3",
"version": "5.3.7",
"description": "Storybook Addon Contexts",
"keywords": [
"preact",
@ -27,10 +27,10 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "5.3.3",
"@storybook/api": "5.3.3",
"@storybook/components": "5.3.3",
"@storybook/core-events": "5.3.3",
"@storybook/addons": "5.3.7",
"@storybook/api": "5.3.7",
"@storybook/components": "5.3.7",
"@storybook/core-events": "5.3.7",
"core-js": "^3.0.1",
"global": "^4.3.2",
"qs": "^6.6.0"

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-cssresources",
"version": "5.3.3",
"version": "5.3.7",
"description": "A storybook addon to switch between css resources at runtime for your story",
"keywords": [
"addon",
@ -32,15 +32,18 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "5.3.3",
"@storybook/api": "5.3.3",
"@storybook/components": "5.3.3",
"@storybook/core-events": "5.3.3",
"@storybook/theming": "5.3.3",
"@storybook/addons": "5.3.7",
"@storybook/api": "5.3.7",
"@storybook/components": "5.3.7",
"@storybook/core-events": "5.3.7",
"@storybook/theming": "5.3.7",
"core-js": "^3.0.1",
"global": "^4.3.2",
"react": "^16.8.3"
},
"devDependencies": {
"@types/webpack-env": "^1.15.0"
},
"peerDependencies": {
"react": "*"
},

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-design-assets",
"version": "5.3.3",
"version": "5.3.7",
"description": "Design asset preview for storybook",
"keywords": [
"addon",
@ -34,12 +34,12 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "5.3.3",
"@storybook/api": "5.3.3",
"@storybook/client-logger": "5.3.3",
"@storybook/components": "5.3.3",
"@storybook/core-events": "5.3.3",
"@storybook/theming": "5.3.3",
"@storybook/addons": "5.3.7",
"@storybook/api": "5.3.7",
"@storybook/client-logger": "5.3.7",
"@storybook/components": "5.3.7",
"@storybook/core-events": "5.3.7",
"@storybook/theming": "5.3.7",
"core-js": "^3.0.1",
"global": "^4.3.2",
"react": "^16.8.3",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-docs",
"version": "5.3.3",
"version": "5.3.7",
"description": "Superior documentation for your components",
"keywords": [
"addon",
@ -46,14 +46,14 @@
"@mdx-js/loader": "^1.5.1",
"@mdx-js/mdx": "^1.5.1",
"@mdx-js/react": "^1.5.1",
"@storybook/addons": "5.3.3",
"@storybook/api": "5.3.3",
"@storybook/components": "5.3.3",
"@storybook/core-events": "5.3.3",
"@storybook/addons": "5.3.7",
"@storybook/api": "5.3.7",
"@storybook/components": "5.3.7",
"@storybook/core-events": "5.3.7",
"@storybook/csf": "0.0.1",
"@storybook/postinstall": "5.3.3",
"@storybook/source-loader": "5.3.3",
"@storybook/theming": "5.3.3",
"@storybook/postinstall": "5.3.7",
"@storybook/source-loader": "5.3.7",
"@storybook/theming": "5.3.7",
"acorn": "^7.1.0",
"acorn-jsx": "^5.1.0",
"acorn-walk": "^7.0.0",
@ -79,7 +79,6 @@
"@types/jest": "^24.0.11",
"@types/prop-types": "^15.5.9",
"@types/util-deprecate": "^1.0.0",
"@types/webpack-env": "^1.14.0",
"jest-specific-snapshot": "^2.0.0"
},
"peerDependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-essentials",
"version": "5.3.3",
"version": "5.3.7",
"description": "Curated addons to bring out the best of Storybook",
"keywords": [
"addon",
@ -27,11 +27,11 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addon-backgrounds": "5.3.3",
"@storybook/addon-viewport": "5.3.3",
"@storybook/addons": "5.3.3",
"@storybook/api": "5.3.3",
"@storybook/node-logger": "5.3.3",
"@storybook/addon-backgrounds": "5.3.7",
"@storybook/addon-viewport": "5.3.7",
"@storybook/addons": "5.3.7",
"@storybook/api": "5.3.7",
"@storybook/node-logger": "5.3.7",
"ts-dedent": "^1.1.0"
},
"devDependencies": {

View File

@ -2,7 +2,7 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
"types": ["webpack-env", "jest"]
"types": ["jest"]
},
"include": ["src/**/*"],
"exclude": ["src/**.test.ts"]

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-events",
"version": "5.3.3",
"version": "5.3.7",
"description": "Add events to your Storybook stories.",
"keywords": [
"addon",
@ -31,11 +31,11 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "5.3.3",
"@storybook/api": "5.3.3",
"@storybook/client-api": "5.3.3",
"@storybook/core-events": "5.3.3",
"@storybook/theming": "5.3.3",
"@storybook/addons": "5.3.7",
"@storybook/api": "5.3.7",
"@storybook/client-api": "5.3.7",
"@storybook/core-events": "5.3.7",
"@storybook/theming": "5.3.7",
"core-js": "^3.0.1",
"format-json": "^1.0.3",
"lodash": "^4.17.15",
@ -45,6 +45,9 @@
"react-textarea-autosize": "^7.0.4",
"util-deprecate": "^1.0.2"
},
"devDependencies": {
"@types/webpack-env": "^1.15.0"
},
"peerDependencies": {
"react": "*"
},

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-google-analytics",
"version": "5.3.3",
"version": "5.3.7",
"description": "Storybook addon for google analytics",
"keywords": [
"addon",
@ -20,8 +20,8 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "5.3.3",
"@storybook/core-events": "5.3.3",
"@storybook/addons": "5.3.7",
"@storybook/core-events": "5.3.7",
"core-js": "^3.0.1",
"global": "^4.3.2",
"react-ga": "^2.5.7"

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-graphql",
"version": "5.3.3",
"version": "5.3.7",
"description": "Storybook addon to display the GraphiQL IDE",
"keywords": [
"addon",
@ -29,8 +29,8 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "5.3.3",
"@storybook/api": "5.3.3",
"@storybook/addons": "5.3.7",
"@storybook/api": "5.3.7",
"core-js": "^3.0.1",
"global": "^4.3.2",
"graphiql": "^0.16.0",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-info",
"version": "5.3.3",
"version": "5.3.7",
"description": "A Storybook addon to show additional information for your stories.",
"keywords": [
"addon",
@ -28,10 +28,10 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "5.3.3",
"@storybook/client-logger": "5.3.3",
"@storybook/components": "5.3.3",
"@storybook/theming": "5.3.3",
"@storybook/addons": "5.3.7",
"@storybook/client-logger": "5.3.7",
"@storybook/components": "5.3.7",
"@storybook/theming": "5.3.7",
"core-js": "^3.0.1",
"global": "^4.3.2",
"marksy": "^8.0.0",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-jest",
"version": "5.3.3",
"version": "5.3.7",
"description": "React storybook addon that show component jest report",
"keywords": [
"addon",
@ -35,11 +35,11 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "5.3.3",
"@storybook/api": "5.3.3",
"@storybook/components": "5.3.3",
"@storybook/core-events": "5.3.3",
"@storybook/theming": "5.3.3",
"@storybook/addons": "5.3.7",
"@storybook/api": "5.3.7",
"@storybook/components": "5.3.7",
"@storybook/core-events": "5.3.7",
"@storybook/theming": "5.3.7",
"core-js": "^3.0.1",
"global": "^4.3.2",
"react": "^16.8.3",
@ -47,6 +47,9 @@
"upath": "^1.1.0",
"util-deprecate": "^1.0.2"
},
"devDependencies": {
"@types/webpack-env": "^1.15.0"
},
"peerDependencies": {
"react": "*"
},

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-knobs",
"version": "5.3.3",
"version": "5.3.7",
"description": "Storybook Addon Prop Editor Component",
"keywords": [
"addon",
@ -29,12 +29,12 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "5.3.3",
"@storybook/api": "5.3.3",
"@storybook/client-api": "5.3.3",
"@storybook/components": "5.3.3",
"@storybook/core-events": "5.3.3",
"@storybook/theming": "5.3.3",
"@storybook/addons": "5.3.7",
"@storybook/api": "5.3.7",
"@storybook/client-api": "5.3.7",
"@storybook/components": "5.3.7",
"@storybook/core-events": "5.3.7",
"@storybook/theming": "5.3.7",
"@types/react-color": "^3.0.1",
"copy-to-clipboard": "^3.0.8",
"core-js": "^3.0.1",
@ -51,7 +51,8 @@
"devDependencies": {
"@types/escape-html": "0.0.20",
"@types/react-lifecycles-compat": "^3.0.1",
"@types/react-select": "^2.0.19"
"@types/react-select": "^2.0.19",
"@types/webpack-env": "^1.15.0"
},
"peerDependencies": {
"react": "*"

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-links",
"version": "5.3.3",
"version": "5.3.7",
"description": "Story Links addon for storybook",
"keywords": [
"addon",
@ -29,17 +29,20 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "5.3.3",
"@storybook/client-logger": "5.3.3",
"@storybook/core-events": "5.3.3",
"@storybook/addons": "5.3.7",
"@storybook/client-logger": "5.3.7",
"@storybook/core-events": "5.3.7",
"@storybook/csf": "0.0.1",
"@storybook/router": "5.3.3",
"@storybook/router": "5.3.7",
"core-js": "^3.0.1",
"global": "^4.3.2",
"prop-types": "^15.7.2",
"qs": "^6.6.0",
"ts-dedent": "^1.1.0"
},
"devDependencies": {
"@types/webpack-env": "^1.15.0"
},
"peerDependencies": {
"react": "*"
},

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-notes",
"version": "5.3.3",
"version": "5.3.7",
"description": "Write notes for your Storybook stories.",
"keywords": [
"addon",
@ -30,13 +30,13 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "5.3.3",
"@storybook/api": "5.3.3",
"@storybook/client-logger": "5.3.3",
"@storybook/components": "5.3.3",
"@storybook/core-events": "5.3.3",
"@storybook/router": "5.3.3",
"@storybook/theming": "5.3.3",
"@storybook/addons": "5.3.7",
"@storybook/api": "5.3.7",
"@storybook/client-logger": "5.3.7",
"@storybook/components": "5.3.7",
"@storybook/core-events": "5.3.7",
"@storybook/router": "5.3.7",
"@storybook/theming": "5.3.7",
"core-js": "^3.0.1",
"global": "^4.3.2",
"markdown-to-jsx": "^6.10.3",
@ -47,7 +47,7 @@
"devDependencies": {
"@types/prop-types": "^15.5.9",
"@types/util-deprecate": "^1.0.0",
"@types/webpack-env": "^1.14.0"
"@types/webpack-env": "^1.15.0"
},
"peerDependencies": {
"react": "*"

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-ondevice-actions",
"version": "5.3.3",
"version": "5.3.7",
"description": "Action Logger addon for react-native storybook",
"keywords": [
"storybook"
@ -26,13 +26,13 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "5.3.3",
"@storybook/core-events": "5.3.3",
"@storybook/addons": "5.3.7",
"@storybook/core-events": "5.3.7",
"core-js": "^3.0.1",
"fast-deep-equal": "^2.0.1"
},
"devDependencies": {
"@storybook/addon-actions": "5.3.3"
"@storybook/addon-actions": "5.3.7"
},
"peerDependencies": {
"@storybook/addon-actions": "*",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-ondevice-backgrounds",
"version": "5.3.3",
"version": "5.3.7",
"description": "A react-native storybook addon to show different backgrounds for your preview",
"keywords": [
"addon",
@ -31,9 +31,9 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "5.3.3",
"@storybook/api": "5.3.3",
"@storybook/client-api": "5.3.3",
"@storybook/addons": "5.3.7",
"@storybook/api": "5.3.7",
"@storybook/client-api": "5.3.7",
"core-js": "^3.0.1",
"prop-types": "^15.7.2"
},

View File

@ -1,8 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
"types": ["webpack-env"]
"rootDir": "./src"
},
"include": [
"src/**/*"

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-ondevice-knobs",
"version": "5.3.3",
"version": "5.3.7",
"description": "Display storybook story knobs on your deviced.",
"keywords": [
"addon",
@ -28,8 +28,8 @@
},
"dependencies": {
"@emotion/native": "^10.0.14",
"@storybook/addons": "5.3.3",
"@storybook/core-events": "5.3.3",
"@storybook/addons": "5.3.7",
"@storybook/core-events": "5.3.7",
"core-js": "^3.0.1",
"deep-equal": "^1.0.1",
"prop-types": "^15.7.2",
@ -39,7 +39,7 @@
"react-native-switch": "^1.5.0"
},
"peerDependencies": {
"@storybook/addon-knobs": "5.3.3",
"@storybook/addon-knobs": "5.3.7",
"react": "*",
"react-native": "*"
},

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-ondevice-notes",
"version": "5.3.3",
"version": "5.3.7",
"description": "Write notes for your react-native Storybook stories.",
"keywords": [
"addon",
@ -28,11 +28,11 @@
},
"dependencies": {
"@emotion/core": "^10.0.20",
"@storybook/addons": "5.3.3",
"@storybook/api": "5.3.3",
"@storybook/client-api": "5.3.3",
"@storybook/client-logger": "5.3.3",
"@storybook/core-events": "5.3.3",
"@storybook/addons": "5.3.7",
"@storybook/api": "5.3.7",
"@storybook/client-api": "5.3.7",
"@storybook/client-logger": "5.3.7",
"@storybook/core-events": "5.3.7",
"core-js": "^3.0.1",
"prop-types": "^15.7.2",
"react-native-simple-markdown": "^1.1.0"

View File

@ -1,13 +1,12 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
"types": ["webpack-env"]
},
"include": [
"src/**/*"
],
"exclude": [
"src/__tests__/**/*"
]
}
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src"
},
"include": [
"src/**/*"
],
"exclude": [
"src/__tests__/**/*"
]
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-options",
"version": "5.3.3",
"version": "5.3.7",
"description": "Options addon for storybook",
"keywords": [
"addon",
@ -29,10 +29,13 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "5.3.3",
"@storybook/addons": "5.3.7",
"core-js": "^3.0.1",
"util-deprecate": "^1.0.2"
},
"devDependencies": {
"@types/webpack-env": "^1.15.0"
},
"peerDependencies": {
"react": "*"
},

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-queryparams",
"version": "5.3.3",
"version": "5.3.7",
"description": "parameter addon for storybook",
"keywords": [
"addon",
@ -30,18 +30,21 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "5.3.3",
"@storybook/api": "5.3.3",
"@storybook/client-logger": "5.3.3",
"@storybook/components": "5.3.3",
"@storybook/core-events": "5.3.3",
"@storybook/theming": "5.3.3",
"@storybook/addons": "5.3.7",
"@storybook/api": "5.3.7",
"@storybook/client-logger": "5.3.7",
"@storybook/components": "5.3.7",
"@storybook/core-events": "5.3.7",
"@storybook/theming": "5.3.7",
"core-js": "^3.0.1",
"global": "^4.3.2",
"qs": "^6.6.0",
"react": "^16.8.3",
"ts-dedent": "^1.1.0"
},
"devDependencies": {
"@types/webpack-env": "^1.15.0"
},
"publishConfig": {
"access": "public"
},

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-storyshots",
"version": "5.3.3",
"version": "5.3.7",
"description": "StoryShots is a Jest Snapshot Testing Addon for Storybook.",
"keywords": [
"addon",
@ -33,9 +33,9 @@
},
"dependencies": {
"@jest/transform": "^24.9.0",
"@storybook/addons": "5.3.3",
"@storybook/client-api": "5.3.3",
"@storybook/core": "5.3.3",
"@storybook/addons": "5.3.7",
"@storybook/client-api": "5.3.7",
"@storybook/core": "5.3.7",
"@types/glob": "^7.1.1",
"@types/jest": "^24.0.16",
"@types/jest-specific-snapshot": "^0.5.3",
@ -49,8 +49,8 @@
"ts-dedent": "^1.1.0"
},
"devDependencies": {
"@storybook/addon-docs": "5.3.3",
"@storybook/react": "5.3.3",
"@storybook/addon-docs": "5.3.7",
"@storybook/react": "5.3.7",
"babel-loader": "^8.0.6",
"enzyme-to-json": "^3.4.1",
"jest-emotion": "^10.0.17",

View File

@ -8,9 +8,11 @@ Add the following modules into your app.
npm install @storybook/addon-storyshots-puppeteer puppeteer --save-dev
```
⚠️ As of Storybook 5.3 `puppeteer` is no more included in addon dependencies and must be added to your project directly.
## Configure Storyshots for Puppeteeer tests
/\*\ **React-native** is **not supported** by this test function.
⚠️ **React-native** is **not supported** by this test function.
When willing to run Puppeteer tests for your stories, you have two options:

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-storyshots-puppeteer",
"version": "5.3.3",
"version": "5.3.7",
"description": "Image snapshots addition to StoryShots based on puppeteer",
"keywords": [
"addon",
@ -30,7 +30,7 @@
},
"dependencies": {
"@storybook/csf": "0.0.1",
"@storybook/node-logger": "5.3.3",
"@storybook/node-logger": "5.3.7",
"@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": "5.3.3",
"@storybook/addon-storyshots": "5.3.7",
"puppeteer": "^1.12.2 || ^2.0.0"
},
"publishConfig": {

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-storysource",
"version": "5.3.3",
"version": "5.3.7",
"description": "Stories addon for storybook",
"keywords": [
"addon",
@ -28,11 +28,11 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "5.3.3",
"@storybook/components": "5.3.3",
"@storybook/router": "5.3.3",
"@storybook/source-loader": "5.3.3",
"@storybook/theming": "5.3.3",
"@storybook/addons": "5.3.7",
"@storybook/components": "5.3.7",
"@storybook/router": "5.3.7",
"@storybook/source-loader": "5.3.7",
"@storybook/theming": "5.3.7",
"core-js": "^3.0.1",
"estraverse": "^4.2.0",
"loader-utils": "^1.2.3",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-viewport",
"version": "5.3.3",
"version": "5.3.7",
"description": "Storybook addon to change the viewport size to mobile",
"keywords": [
"addon",
@ -29,12 +29,12 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "5.3.3",
"@storybook/api": "5.3.3",
"@storybook/client-logger": "5.3.3",
"@storybook/components": "5.3.3",
"@storybook/core-events": "5.3.3",
"@storybook/theming": "5.3.3",
"@storybook/addons": "5.3.7",
"@storybook/api": "5.3.7",
"@storybook/client-logger": "5.3.7",
"@storybook/components": "5.3.7",
"@storybook/core-events": "5.3.7",
"@storybook/theming": "5.3.7",
"core-js": "^3.0.1",
"global": "^4.3.2",
"memoizerific": "^1.11.3",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/angular",
"version": "5.3.3",
"version": "5.3.7",
"description": "Storybook for Angular: Develop Angular Components in isolation with Hot Reloading.",
"keywords": [
"storybook"
@ -33,9 +33,10 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "5.3.3",
"@storybook/core": "5.3.3",
"@storybook/node-logger": "5.3.3",
"@storybook/addons": "5.3.7",
"@storybook/core": "5.3.7",
"@storybook/node-logger": "5.3.7",
"@types/webpack-env": "^1.15.0",
"core-js": "^3.0.1",
"fork-ts-checker-webpack-plugin": "^3.0.1",
"global": "^4.3.2",
@ -47,7 +48,6 @@
},
"devDependencies": {
"@types/autoprefixer": "^9.4.0",
"@types/webpack-env": "^1.14.0",
"webpack": "^4.33.0"
},
"peerDependencies": {

View File

@ -11,8 +11,6 @@ export {
export { moduleMetadata } from './preview/angular/decorators';
// tsc wants to use NodeModule instead of WebpackModule
declare const module: any;
if (module && module.hot && module.hot.decline) {
module.hot.decline();
}

View File

@ -3,7 +3,7 @@
"compileOnSave": false,
"compilerOptions": {
"outDir": "dist",
"types": [],
"types": ["webpack-env"],
"rootDir": "./src",
"resolveJsonModule": true
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/ember",
"version": "5.3.3",
"version": "5.3.7",
"description": "Storybook for Ember: Develop Ember Component in isolation with Hot Reloading.",
"homepage": "https://github.com/storybookjs/storybook/tree/master/app/ember",
"bugs": {
@ -31,7 +31,7 @@
},
"dependencies": {
"@ember/test-helpers": "^1.5.0",
"@storybook/core": "5.3.3",
"@storybook/core": "5.3.7",
"core-js": "^3.0.1",
"global": "^4.3.2",
"regenerator-runtime": "^0.13.3",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/html",
"version": "5.3.3",
"version": "5.3.7",
"description": "Storybook for HTML: View HTML snippets in isolation with Hot Reloading.",
"keywords": [
"storybook"
@ -33,9 +33,9 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "5.3.3",
"@storybook/core": "5.3.3",
"@types/webpack-env": "^1.13.9",
"@storybook/addons": "5.3.7",
"@storybook/core": "5.3.7",
"@types/webpack-env": "^1.15.0",
"core-js": "^3.0.1",
"global": "^4.3.2",
"html-loader": "^0.5.5",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/marko",
"version": "5.3.3",
"version": "5.3.7",
"description": "Storybook for Marko: Develop Marko Component in isolation with Hot Reloading.",
"keywords": [
"storybook"
@ -33,8 +33,8 @@
},
"dependencies": {
"@marko/webpack": "^2.0.0",
"@storybook/client-logger": "5.3.3",
"@storybook/core": "5.3.3",
"@storybook/client-logger": "5.3.7",
"@storybook/core": "5.3.7",
"core-js": "^3.0.1",
"global": "^4.3.2",
"regenerator-runtime": "^0.13.3",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/mithril",
"version": "5.3.3",
"version": "5.3.7",
"description": "Storybook for Mithril: Develop Mithril Component in isolation.",
"keywords": [
"storybook"
@ -35,9 +35,10 @@
"dependencies": {
"@babel/core": "^7.6.2",
"@babel/plugin-transform-react-jsx": "^7.3.0",
"@storybook/addons": "5.3.3",
"@storybook/core": "5.3.3",
"@storybook/addons": "5.3.7",
"@storybook/core": "5.3.7",
"@types/mithril": "^2.0.0",
"@types/webpack-env": "^1.15.0",
"core-js": "^3.0.1",
"global": "^4.3.2",
"regenerator-runtime": "^0.13.3",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/polymer",
"version": "5.3.3",
"version": "5.3.7",
"description": "Storybook for Polymer: Develop Polymer components in isolation with Hot Reloading.",
"keywords": [
"storybook"
@ -33,8 +33,8 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "5.3.3",
"@storybook/core": "5.3.3",
"@storybook/addons": "5.3.7",
"@storybook/core": "5.3.7",
"@webcomponents/webcomponentsjs": "^1.2.0",
"core-js": "^3.0.1",
"global": "^4.3.2",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/preact",
"version": "5.3.3",
"version": "5.3.7",
"description": "Storybook for Preact: Develop Preact Component in isolation.",
"keywords": [
"storybook"
@ -34,9 +34,9 @@
},
"dependencies": {
"@babel/plugin-transform-react-jsx": "^7.3.0",
"@storybook/addons": "5.3.3",
"@storybook/core": "5.3.3",
"@types/webpack-env": "^1.13.9",
"@storybook/addons": "5.3.7",
"@storybook/core": "5.3.7",
"@types/webpack-env": "^1.15.0",
"core-js": "^3.0.1",
"global": "^4.3.2",
"regenerator-runtime": "^0.13.3",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/rax",
"version": "5.3.3",
"version": "5.3.7",
"description": "Storybook for Rax: Develop Rax Component in isolation.",
"keywords": [
"rax",
@ -33,7 +33,7 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/core": "5.3.3",
"@storybook/core": "5.3.7",
"babel-preset-rax": "^1.0.0-beta.0",
"core-js": "^3.0.1",
"driver-dom": "^2.0.0",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/react-native-server",
"version": "5.3.3",
"version": "5.3.7",
"description": "A better way to develop React Native Components for your app",
"keywords": [
"react",
@ -31,12 +31,12 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "5.3.3",
"@storybook/api": "5.3.3",
"@storybook/channel-websocket": "5.3.3",
"@storybook/core": "5.3.3",
"@storybook/core-events": "5.3.3",
"@storybook/ui": "5.3.3",
"@storybook/addons": "5.3.7",
"@storybook/api": "5.3.7",
"@storybook/channel-websocket": "5.3.7",
"@storybook/core": "5.3.7",
"@storybook/core-events": "5.3.7",
"@storybook/ui": "5.3.7",
"commander": "^4.0.1",
"core-js": "^3.0.1",
"global": "^4.3.2",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/react-native",
"version": "5.3.3",
"version": "5.3.7",
"description": "A better way to develop React Native Components for your app",
"keywords": [
"react",
@ -31,11 +31,11 @@
"dependencies": {
"@emotion/core": "^10.0.20",
"@emotion/native": "^10.0.14",
"@storybook/addons": "5.3.3",
"@storybook/channel-websocket": "5.3.3",
"@storybook/channels": "5.3.3",
"@storybook/client-api": "5.3.3",
"@storybook/core-events": "5.3.3",
"@storybook/addons": "5.3.7",
"@storybook/channel-websocket": "5.3.7",
"@storybook/channels": "5.3.7",
"@storybook/client-api": "5.3.7",
"@storybook/core-events": "5.3.7",
"core-js": "^3.0.1",
"emotion-theming": "^10.0.19",
"react-native-swipe-gestures": "^1.0.4"

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/react",
"version": "5.3.3",
"version": "5.3.7",
"description": "Storybook for React: Develop React Component in isolation with Hot Reloading.",
"keywords": [
"storybook"
@ -36,9 +36,9 @@
"@babel/plugin-transform-react-constant-elements": "^7.6.3",
"@babel/preset-flow": "^7.0.0",
"@babel/preset-react": "^7.0.0",
"@storybook/addons": "5.3.3",
"@storybook/core": "5.3.3",
"@storybook/node-logger": "5.3.3",
"@storybook/addons": "5.3.7",
"@storybook/core": "5.3.7",
"@storybook/node-logger": "5.3.7",
"@svgr/webpack": "^4.0.3",
"@types/webpack-env": "^1.15.0",
"babel-plugin-add-react-displayname": "^0.0.5",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/riot",
"version": "5.3.3",
"version": "5.3.7",
"description": "Storybook for riot.js: View riot snippets in isolation with Hot Reloading.",
"keywords": [
"storybook"
@ -33,7 +33,7 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/core": "5.3.3",
"@storybook/core": "5.3.7",
"core-js": "^3.0.1",
"global": "^4.3.2",
"raw-loader": "^3.1.0",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/svelte",
"version": "5.3.3",
"version": "5.3.7",
"description": "Storybook for Svelte: Develop Svelte Component in isolation with Hot Reloading.",
"keywords": [
"storybook"
@ -33,14 +33,15 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "5.3.3",
"@storybook/core": "5.3.3",
"@storybook/addons": "5.3.7",
"@storybook/core": "5.3.7",
"core-js": "^3.0.1",
"global": "^4.3.2",
"regenerator-runtime": "^0.13.3",
"ts-dedent": "^1.1.0"
},
"devDependencies": {
"@types/webpack-env": "^1.15.0",
"svelte": "^3.4.1",
"svelte-loader": "^2.13.4"
},

View File

@ -11,4 +11,4 @@
"exclude": [
"src/**/*.test.*"
]
}
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/vue",
"version": "5.3.3",
"version": "5.3.7",
"description": "Storybook for Vue: Develop Vue Component in isolation with Hot Reloading.",
"keywords": [
"storybook"
@ -33,9 +33,9 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "5.3.3",
"@storybook/core": "5.3.3",
"@types/webpack-env": "^1.13.9",
"@storybook/addons": "5.3.7",
"@storybook/core": "5.3.7",
"@types/webpack-env": "^1.15.0",
"core-js": "^3.0.1",
"global": "^4.3.2",
"regenerator-runtime": "^0.13.3",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/web-components",
"version": "5.3.3",
"version": "5.3.7",
"description": "Storybook for web-components: View web components snippets in isolation with Hot Reloading.",
"keywords": [
"lit-html",
@ -37,9 +37,9 @@
"dependencies": {
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@babel/plugin-syntax-import-meta": "^7.2.0",
"@storybook/addons": "5.3.3",
"@storybook/core": "5.3.3",
"@types/webpack-env": "^1.13.9",
"@storybook/addons": "5.3.7",
"@storybook/core": "5.3.7",
"@types/webpack-env": "^1.15.0",
"babel-plugin-bundled-import-meta": "^0.3.1",
"core-js": "^3.0.1",
"global": "^4.3.2",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-decorator",
"version": "5.3.3",
"version": "5.3.7",
"description": "decorator addon for storybook",
"keywords": [
"addon",
@ -24,8 +24,8 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "5.3.3",
"@storybook/client-api": "5.3.3",
"@storybook/addons": "5.3.7",
"@storybook/client-api": "5.3.7",
"core-js": "^3.0.1",
"global": "^4.4.0"
},

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-parameter",
"version": "5.3.3",
"version": "5.3.7",
"description": "parameter addon for storybook",
"keywords": [
"addon",
@ -24,12 +24,12 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "5.3.3",
"@storybook/api": "5.3.3",
"@storybook/client-logger": "5.3.3",
"@storybook/components": "5.3.3",
"@storybook/core-events": "5.3.3",
"@storybook/theming": "5.3.3",
"@storybook/addons": "5.3.7",
"@storybook/api": "5.3.7",
"@storybook/client-logger": "5.3.7",
"@storybook/components": "5.3.7",
"@storybook/core-events": "5.3.7",
"@storybook/theming": "5.3.7",
"core-js": "^3.0.1",
"global": "^4.3.2",
"react": "^16.8.3",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-preview-wrapper",
"version": "5.3.3",
"version": "5.3.7",
"description": "preview wrapper addon for storybook",
"keywords": [
"addon",
@ -24,7 +24,7 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "5.3.3",
"@storybook/addons": "5.3.7",
"react": "^16.8.3"
},
"publishConfig": {

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-roundtrip",
"version": "5.3.3",
"version": "5.3.7",
"description": "roundtrip addon for storybook",
"keywords": [
"addon",
@ -24,13 +24,13 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "5.3.3",
"@storybook/api": "5.3.3",
"@storybook/client-api": "5.3.3",
"@storybook/client-logger": "5.3.3",
"@storybook/components": "5.3.3",
"@storybook/core-events": "5.3.3",
"@storybook/theming": "5.3.3",
"@storybook/addons": "5.3.7",
"@storybook/api": "5.3.7",
"@storybook/client-api": "5.3.7",
"@storybook/client-logger": "5.3.7",
"@storybook/components": "5.3.7",
"@storybook/core-events": "5.3.7",
"@storybook/theming": "5.3.7",
"core-js": "^3.0.1",
"global": "^4.3.2",
"react": "^16.8.3",

View File

@ -372,7 +372,7 @@ Now suppose you want to change the position in the hierarchy to `OtherFoo/Bar` a
```js
export default {
title: 'OtherFoo/Bar',
componentId: 'Foo/Bar', // or 'foo-bar' if you prefer
id: 'Foo/Bar', // or 'foo-bar' if you prefer
};
export const Baz = () => <MyComponent />;
@ -381,4 +381,4 @@ Baz.story = {
};
```
Storybook will prioritize the `componentId` over the title for ID generation, if provided, and will prioritize the `story.name` over the export key for display.
Storybook will prioritize the `id` over the title for ID generation, if provided, and will prioritize the `story.name` over the export key for display.

View File

@ -109,7 +109,7 @@ The presets API is also more powerful than the [standard configuration options](
For example, some users want to configure the webpack for Storybook's UI and addons ([issue](https://github.com/storybookjs/storybook/issues/4995)), but this is not possible using [standard webpack configuration](../custom-webpack-config/) (it used to be possible before SB4.1). However, you can achieve this with a private preset.
If it doesn't exists yet, create a file `.storybook/main.js`:
If it doesn't exist yet, create a file `.storybook/main.js`:
```js
module.exports = {
@ -166,4 +166,4 @@ module.exports = {
};
```
Place your `my-preset.js` file where ever you want, if you want to share if far and wide you'll want to make it it's own package.
Place your `my-preset.js` file wherever you want, if you want to share it far and wide you'll want to make it its own package.

View File

@ -1 +1 @@
{"version":"5.3.3","info":{"plain":"### Bug Fixes\n\n* UI: Fix edge case where only one legacy separator is defined ([#9425](https://github.com/storybookjs/storybook/pull/9425))\n* Core: Preserve kind load order on HMR when no sortFn is provided ([#9424](https://github.com/storybookjs/storybook/pull/9424))\n* Angular: Fix missing architect properties ([#9390](https://github.com/storybookjs/storybook/pull/9390))\n* Addon-knobs: Fix null knob values in select ([#9416](https://github.com/storybookjs/storybook/pull/9416))\n* Source-loader: Disable linting altogether ([#9417](https://github.com/storybookjs/storybook/pull/9417))"}}
{"version":"5.3.7","info":{"plain":"### Bug Fixes\n\n* Node-logger: Move `@types/npmlog` to dependencies ([#9538](https://github.com/storybookjs/storybook/pull/9538))\n* Core: Fix legacy story URLs ([#9545](https://github.com/storybookjs/storybook/pull/9545))\n* Addon-docs: Convert default prop value to string ([#9525](https://github.com/storybookjs/storybook/pull/9525))\n* Addon-docs: Preserve Source indentation by default ([#9513](https://github.com/storybookjs/storybook/pull/9513))"}}

View File

@ -1,6 +1,6 @@
{
"name": "crna-kitchen-sink",
"version": "5.3.3",
"version": "5.3.7",
"private": true,
"main": "node_modules/expo/AppEntry.js",
"workspaces": {
@ -31,15 +31,15 @@
"devDependencies": {
"@babel/core": "^7.7.2",
"@babel/plugin-transform-react-jsx-source": "^7.2.0",
"@storybook/addon-actions": "5.3.3",
"@storybook/addon-knobs": "5.3.3",
"@storybook/addon-links": "5.3.3",
"@storybook/addon-ondevice-actions": "5.3.3",
"@storybook/addon-ondevice-backgrounds": "5.3.3",
"@storybook/addon-ondevice-knobs": "5.3.3",
"@storybook/addon-ondevice-notes": "5.3.3",
"@storybook/addons": "5.3.3",
"@storybook/react-native": "5.3.3",
"@storybook/addon-actions": "5.3.7",
"@storybook/addon-knobs": "5.3.7",
"@storybook/addon-links": "5.3.7",
"@storybook/addon-ondevice-actions": "5.3.7",
"@storybook/addon-ondevice-backgrounds": "5.3.7",
"@storybook/addon-ondevice-knobs": "5.3.7",
"@storybook/addon-ondevice-notes": "5.3.7",
"@storybook/addons": "5.3.7",
"@storybook/react-native": "5.3.7",
"babel-loader": "^8.0.4",
"babel-plugin-module-resolver": "^3.2.0",
"babel-preset-expo": "^7.0.0",

View File

@ -1,6 +1,6 @@
{
"name": "angular-cli",
"version": "5.3.3",
"version": "5.3.7",
"private": true,
"license": "MIT",
"scripts": {
@ -37,25 +37,25 @@
"@angular/cli": "^8.3.6",
"@angular/compiler-cli": "^8.2.8",
"@compodoc/compodoc": "^1.1.11",
"@storybook/addon-a11y": "5.3.3",
"@storybook/addon-actions": "5.3.3",
"@storybook/addon-backgrounds": "5.3.3",
"@storybook/addon-centered": "5.3.3",
"@storybook/addon-docs": "5.3.3",
"@storybook/addon-jest": "5.3.3",
"@storybook/addon-knobs": "5.3.3",
"@storybook/addon-links": "5.3.3",
"@storybook/addon-notes": "5.3.3",
"@storybook/addon-options": "5.3.3",
"@storybook/addon-storyshots": "5.3.3",
"@storybook/addon-storysource": "5.3.3",
"@storybook/addons": "5.3.3",
"@storybook/angular": "5.3.3",
"@storybook/source-loader": "5.3.3",
"@storybook/addon-a11y": "5.3.7",
"@storybook/addon-actions": "5.3.7",
"@storybook/addon-backgrounds": "5.3.7",
"@storybook/addon-centered": "5.3.7",
"@storybook/addon-docs": "5.3.7",
"@storybook/addon-jest": "5.3.7",
"@storybook/addon-knobs": "5.3.7",
"@storybook/addon-links": "5.3.7",
"@storybook/addon-notes": "5.3.7",
"@storybook/addon-options": "5.3.7",
"@storybook/addon-storyshots": "5.3.7",
"@storybook/addon-storysource": "5.3.7",
"@storybook/addons": "5.3.7",
"@storybook/angular": "5.3.7",
"@storybook/source-loader": "5.3.7",
"@types/core-js": "^2.5.0",
"@types/jest": "^24.0.11",
"@types/node": "^12.12.11",
"@types/webpack-env": "^1.14.0",
"@types/webpack-env": "^1.15.0",
"babel-plugin-require-context-hook": "^1.0.0",
"global": "^4.3.2",
"jasmine-core": "~3.5.0",

View File

@ -1,6 +1,6 @@
{
"name": "cra-kitchen-sink",
"version": "5.3.3",
"version": "5.3.7",
"private": true,
"scripts": {
"build": "react-scripts build",
@ -18,23 +18,23 @@
"react-lifecycles-compat": "^3.0.4"
},
"devDependencies": {
"@storybook/addon-a11y": "5.3.3",
"@storybook/addon-actions": "5.3.3",
"@storybook/addon-backgrounds": "5.3.3",
"@storybook/addon-centered": "5.3.3",
"@storybook/addon-docs": "5.3.3",
"@storybook/addon-events": "5.3.3",
"@storybook/addon-info": "5.3.3",
"@storybook/addon-jest": "5.3.3",
"@storybook/addon-knobs": "5.3.3",
"@storybook/addon-links": "5.3.3",
"@storybook/addon-notes": "5.3.3",
"@storybook/addon-options": "5.3.3",
"@storybook/addon-storyshots": "5.3.3",
"@storybook/addons": "5.3.3",
"@storybook/client-logger": "5.3.3",
"@storybook/react": "5.3.3",
"@storybook/theming": "5.3.3",
"@storybook/addon-a11y": "5.3.7",
"@storybook/addon-actions": "5.3.7",
"@storybook/addon-backgrounds": "5.3.7",
"@storybook/addon-centered": "5.3.7",
"@storybook/addon-docs": "5.3.7",
"@storybook/addon-events": "5.3.7",
"@storybook/addon-info": "5.3.7",
"@storybook/addon-jest": "5.3.7",
"@storybook/addon-knobs": "5.3.7",
"@storybook/addon-links": "5.3.7",
"@storybook/addon-notes": "5.3.7",
"@storybook/addon-options": "5.3.7",
"@storybook/addon-storyshots": "5.3.7",
"@storybook/addons": "5.3.7",
"@storybook/client-logger": "5.3.7",
"@storybook/react": "5.3.7",
"@storybook/theming": "5.3.7",
"react-scripts": "^3.0.1"
}
}

View File

@ -1,6 +1,6 @@
{
"name": "cra-react15",
"version": "5.3.3",
"version": "5.3.7",
"private": true,
"scripts": {
"build": "react-scripts build",
@ -18,11 +18,11 @@
"react-scripts": "3.0.1"
},
"devDependencies": {
"@storybook/addon-actions": "5.3.3",
"@storybook/addon-links": "5.3.3",
"@storybook/addons": "5.3.3",
"@storybook/react": "5.3.3",
"@storybook/theming": "5.3.3",
"@storybook/addon-actions": "5.3.7",
"@storybook/addon-links": "5.3.7",
"@storybook/addons": "5.3.7",
"@storybook/react": "5.3.7",
"@storybook/theming": "5.3.7",
"babel-core": "6",
"babel-runtime": "6"
}

View File

@ -1,6 +1,6 @@
{
"name": "cra-ts-essentials",
"version": "5.3.3",
"version": "5.3.7",
"private": true,
"scripts": {
"build": "react-scripts build",
@ -36,9 +36,9 @@
"typescript": "3.7.2"
},
"devDependencies": {
"@storybook/addon-essentials": "5.3.3",
"@storybook/addons": "5.3.3",
"@storybook/addon-essentials": "5.3.7",
"@storybook/addons": "5.3.7",
"@storybook/preset-create-react-app": "^1.5.0",
"@storybook/react": "5.3.3"
"@storybook/react": "5.3.7"
}
}

View File

@ -1,6 +1,6 @@
{
"name": "cra-ts-kitchen-sink",
"version": "5.3.3",
"version": "5.3.7",
"private": true,
"scripts": {
"build": "react-scripts build",
@ -34,15 +34,15 @@
"typescript": "3.7.2"
},
"devDependencies": {
"@storybook/addon-a11y": "5.3.3",
"@storybook/addon-actions": "5.3.3",
"@storybook/addon-info": "5.3.3",
"@storybook/addon-knobs": "5.3.3",
"@storybook/addon-links": "5.3.3",
"@storybook/addon-options": "5.3.3",
"@storybook/addons": "5.3.3",
"@storybook/addon-a11y": "5.3.7",
"@storybook/addon-actions": "5.3.7",
"@storybook/addon-info": "5.3.7",
"@storybook/addon-knobs": "5.3.7",
"@storybook/addon-links": "5.3.7",
"@storybook/addon-options": "5.3.7",
"@storybook/addons": "5.3.7",
"@storybook/preset-create-react-app": "^1.5.0",
"@storybook/react": "5.3.3",
"@storybook/react": "5.3.7",
"@types/enzyme": "^3.9.0",
"@types/react": "^16.8.14",
"@types/react-dom": "^16.8.2",

View File

@ -5,6 +5,11 @@ interface ButtonProps {
* Simple click handler
*/
onClick?: () => void;
/**
* Is primary?
*/
primary: boolean;
}
/**
@ -15,3 +20,7 @@ export const Button: FC<ButtonProps> = ({ children, onClick }) => (
{children}
</button>
);
Button.defaultProps = {
primary: true,
};

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/example-devkits",
"version": "5.3.3",
"version": "5.3.7",
"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": "5.3.3",
"@storybook/addon-parameter": "5.3.3",
"@storybook/addon-preview-wrapper": "5.3.3",
"@storybook/addon-roundtrip": "5.3.3",
"@storybook/addons": "5.3.3",
"@storybook/api": "5.3.3",
"@storybook/client-api": "5.3.3",
"@storybook/components": "5.3.3",
"@storybook/core-events": "5.3.3",
"@storybook/node-logger": "5.3.3",
"@storybook/react": "5.3.3",
"@storybook/theming": "5.3.3",
"@storybook/addon-decorator": "5.3.7",
"@storybook/addon-parameter": "5.3.7",
"@storybook/addon-preview-wrapper": "5.3.7",
"@storybook/addon-roundtrip": "5.3.7",
"@storybook/addons": "5.3.7",
"@storybook/api": "5.3.7",
"@storybook/client-api": "5.3.7",
"@storybook/components": "5.3.7",
"@storybook/core-events": "5.3.7",
"@storybook/node-logger": "5.3.7",
"@storybook/react": "5.3.7",
"@storybook/theming": "5.3.7",
"cors": "^2.8.5",
"cross-env": "^6.0.3",
"enzyme-to-json": "^3.4.1",

View File

@ -1,6 +1,6 @@
{
"name": "ember-example",
"version": "5.3.3",
"version": "5.3.7",
"private": true,
"scripts": {
"build": "ember build",
@ -15,21 +15,21 @@
},
"devDependencies": {
"@babel/core": "^7.3.4",
"@storybook/addon-a11y": "5.3.3",
"@storybook/addon-actions": "5.3.3",
"@storybook/addon-backgrounds": "5.3.3",
"@storybook/addon-centered": "5.3.3",
"@storybook/addon-docs": "5.3.3",
"@storybook/addon-knobs": "5.3.3",
"@storybook/addon-links": "5.3.3",
"@storybook/addon-notes": "5.3.3",
"@storybook/addon-options": "5.3.3",
"@storybook/addon-storysource": "5.3.3",
"@storybook/addon-viewport": "5.3.3",
"@storybook/addons": "5.3.3",
"@storybook/ember": "5.3.3",
"@storybook/addon-a11y": "5.3.7",
"@storybook/addon-actions": "5.3.7",
"@storybook/addon-backgrounds": "5.3.7",
"@storybook/addon-centered": "5.3.7",
"@storybook/addon-docs": "5.3.7",
"@storybook/addon-knobs": "5.3.7",
"@storybook/addon-links": "5.3.7",
"@storybook/addon-notes": "5.3.7",
"@storybook/addon-options": "5.3.7",
"@storybook/addon-storysource": "5.3.7",
"@storybook/addon-viewport": "5.3.7",
"@storybook/addons": "5.3.7",
"@storybook/ember": "5.3.7",
"@storybook/ember-cli-storybook": "^0.2.0",
"@storybook/source-loader": "5.3.3",
"@storybook/source-loader": "5.3.7",
"babel-loader": "^8",
"broccoli-asset-rev": "^3.0.0",
"cross-env": "^6.0.3",

View File

@ -1,6 +1,6 @@
{
"name": "html-kitchen-sink",
"version": "5.3.3",
"version": "5.3.7",
"private": true,
"description": "",
"keywords": [],
@ -13,26 +13,26 @@
"storybook": "start-storybook -p 9006"
},
"devDependencies": {
"@storybook/addon-a11y": "5.3.3",
"@storybook/addon-actions": "5.3.3",
"@storybook/addon-backgrounds": "5.3.3",
"@storybook/addon-centered": "5.3.3",
"@storybook/addon-docs": "5.3.3",
"@storybook/addon-events": "5.3.3",
"@storybook/addon-jest": "5.3.3",
"@storybook/addon-knobs": "5.3.3",
"@storybook/addon-links": "5.3.3",
"@storybook/addon-notes": "5.3.3",
"@storybook/addon-options": "5.3.3",
"@storybook/addon-storyshots": "5.3.3",
"@storybook/addon-storysource": "5.3.3",
"@storybook/addon-viewport": "5.3.3",
"@storybook/addons": "5.3.3",
"@storybook/client-api": "5.3.3",
"@storybook/core": "5.3.3",
"@storybook/core-events": "5.3.3",
"@storybook/html": "5.3.3",
"@storybook/source-loader": "5.3.3",
"@storybook/addon-a11y": "5.3.7",
"@storybook/addon-actions": "5.3.7",
"@storybook/addon-backgrounds": "5.3.7",
"@storybook/addon-centered": "5.3.7",
"@storybook/addon-docs": "5.3.7",
"@storybook/addon-events": "5.3.7",
"@storybook/addon-jest": "5.3.7",
"@storybook/addon-knobs": "5.3.7",
"@storybook/addon-links": "5.3.7",
"@storybook/addon-notes": "5.3.7",
"@storybook/addon-options": "5.3.7",
"@storybook/addon-storyshots": "5.3.7",
"@storybook/addon-storysource": "5.3.7",
"@storybook/addon-viewport": "5.3.7",
"@storybook/addons": "5.3.7",
"@storybook/client-api": "5.3.7",
"@storybook/core": "5.3.7",
"@storybook/core-events": "5.3.7",
"@storybook/html": "5.3.7",
"@storybook/source-loader": "5.3.7",
"eventemitter3": "^4.0.0",
"format-json": "^1.0.3",
"global": "^4.3.2",

View File

@ -1,6 +1,6 @@
{
"name": "marko-cli",
"version": "5.3.3",
"version": "5.3.7",
"private": true,
"description": "Demo of how to build an app using marko-starter",
"repository": {
@ -23,14 +23,14 @@
"marko-starter": "^2.1.0"
},
"devDependencies": {
"@storybook/addon-a11y": "5.3.3",
"@storybook/addon-actions": "5.3.3",
"@storybook/addon-knobs": "5.3.3",
"@storybook/addon-options": "5.3.3",
"@storybook/addon-storysource": "5.3.3",
"@storybook/addons": "5.3.3",
"@storybook/marko": "5.3.3",
"@storybook/source-loader": "5.3.3",
"@storybook/addon-a11y": "5.3.7",
"@storybook/addon-actions": "5.3.7",
"@storybook/addon-knobs": "5.3.7",
"@storybook/addon-options": "5.3.7",
"@storybook/addon-storysource": "5.3.7",
"@storybook/addons": "5.3.7",
"@storybook/marko": "5.3.7",
"@storybook/source-loader": "5.3.7",
"prettier": "^1.16.4",
"webpack": "^4.33.0"
}

View File

@ -1,6 +1,6 @@
{
"name": "mithril-example",
"version": "5.3.3",
"version": "5.3.7",
"private": true,
"scripts": {
"build-storybook": "build-storybook",
@ -10,20 +10,20 @@
"mithril": "^1.1.6"
},
"devDependencies": {
"@storybook/addon-a11y": "5.3.3",
"@storybook/addon-actions": "5.3.3",
"@storybook/addon-backgrounds": "5.3.3",
"@storybook/addon-centered": "5.3.3",
"@storybook/addon-knobs": "5.3.3",
"@storybook/addon-links": "5.3.3",
"@storybook/addon-notes": "5.3.3",
"@storybook/addon-options": "5.3.3",
"@storybook/addon-storyshots": "5.3.3",
"@storybook/addon-storysource": "5.3.3",
"@storybook/addon-viewport": "5.3.3",
"@storybook/addons": "5.3.3",
"@storybook/mithril": "5.3.3",
"@storybook/source-loader": "5.3.3",
"@storybook/addon-a11y": "5.3.7",
"@storybook/addon-actions": "5.3.7",
"@storybook/addon-backgrounds": "5.3.7",
"@storybook/addon-centered": "5.3.7",
"@storybook/addon-knobs": "5.3.7",
"@storybook/addon-links": "5.3.7",
"@storybook/addon-notes": "5.3.7",
"@storybook/addon-options": "5.3.7",
"@storybook/addon-storyshots": "5.3.7",
"@storybook/addon-storysource": "5.3.7",
"@storybook/addon-viewport": "5.3.7",
"@storybook/addons": "5.3.7",
"@storybook/mithril": "5.3.7",
"@storybook/source-loader": "5.3.7",
"webpack": "^4.33.0"
}
}

View File

@ -0,0 +1,5 @@
<Meta title="About/Intro" />
# Official-storybook
Welcome to `official-storybook`, a collection of test cases and demos for `@storybook/react` and all its addons.

View File

@ -1,5 +1,6 @@
module.exports = {
stories: [
// FIXME: Breaks e2e tests './intro.stories.mdx',
'../../lib/ui/src/**/*.stories.(js|tsx|mdx)',
'../../lib/components/src/**/*.stories.(js|tsx|mdx)',
'./stories/**/*.stories.(js|tsx|mdx)',

View File

@ -1,6 +1,6 @@
{
"name": "official-storybook",
"version": "5.3.3",
"version": "5.3.7",
"private": true,
"scripts": {
"build-storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true build-storybook -c ./",
@ -14,34 +14,34 @@
},
"devDependencies": {
"@packtracker/webpack-plugin": "^2.0.1",
"@storybook/addon-a11y": "5.3.3",
"@storybook/addon-actions": "5.3.3",
"@storybook/addon-backgrounds": "5.3.3",
"@storybook/addon-centered": "5.3.3",
"@storybook/addon-contexts": "5.3.3",
"@storybook/addon-cssresources": "5.3.3",
"@storybook/addon-design-assets": "5.3.3",
"@storybook/addon-docs": "5.3.3",
"@storybook/addon-events": "5.3.3",
"@storybook/addon-graphql": "5.3.3",
"@storybook/addon-info": "5.3.3",
"@storybook/addon-jest": "5.3.3",
"@storybook/addon-knobs": "5.3.3",
"@storybook/addon-links": "5.3.3",
"@storybook/addon-notes": "5.3.3",
"@storybook/addon-options": "5.3.3",
"@storybook/addon-queryparams": "5.3.3",
"@storybook/addon-storyshots": "5.3.3",
"@storybook/addon-storyshots-puppeteer": "5.3.3",
"@storybook/addon-storysource": "5.3.3",
"@storybook/addon-viewport": "5.3.3",
"@storybook/addons": "5.3.3",
"@storybook/components": "5.3.3",
"@storybook/core-events": "5.3.3",
"@storybook/node-logger": "5.3.3",
"@storybook/react": "5.3.3",
"@storybook/source-loader": "5.3.3",
"@storybook/theming": "5.3.3",
"@storybook/addon-a11y": "5.3.7",
"@storybook/addon-actions": "5.3.7",
"@storybook/addon-backgrounds": "5.3.7",
"@storybook/addon-centered": "5.3.7",
"@storybook/addon-contexts": "5.3.7",
"@storybook/addon-cssresources": "5.3.7",
"@storybook/addon-design-assets": "5.3.7",
"@storybook/addon-docs": "5.3.7",
"@storybook/addon-events": "5.3.7",
"@storybook/addon-graphql": "5.3.7",
"@storybook/addon-info": "5.3.7",
"@storybook/addon-jest": "5.3.7",
"@storybook/addon-knobs": "5.3.7",
"@storybook/addon-links": "5.3.7",
"@storybook/addon-notes": "5.3.7",
"@storybook/addon-options": "5.3.7",
"@storybook/addon-queryparams": "5.3.7",
"@storybook/addon-storyshots": "5.3.7",
"@storybook/addon-storyshots-puppeteer": "5.3.7",
"@storybook/addon-storysource": "5.3.7",
"@storybook/addon-viewport": "5.3.7",
"@storybook/addons": "5.3.7",
"@storybook/components": "5.3.7",
"@storybook/core-events": "5.3.7",
"@storybook/node-logger": "5.3.7",
"@storybook/react": "5.3.7",
"@storybook/source-loader": "5.3.7",
"@storybook/theming": "5.3.7",
"cors": "^2.8.5",
"cross-env": "^6.0.3",
"enzyme-to-json": "^3.4.1",

View File

@ -0,0 +1,16 @@
/* eslint-disable import/first,import/no-duplicates */
import React from 'react';
import { action } from '@storybook/addon-actions';
export default {
title: 'Core/Interleaved exports',
parameters: { chromatic: { disable: true } },
};
import { Welcome } from '@storybook/react/demo';
export const First = () => <Welcome showApp={action('show')} />;
import { Button } from '@storybook/react/demo';
export const Second = () => <Button onClick={action('click')}>Second</Button>;

View File

@ -0,0 +1,8 @@
export default {
title: 'Core/Re-export source loader',
};
const Story1 = () => 'story1';
const Story2 = () => 'story2';
export { Story1, Story2 };

View File

@ -1,6 +1,6 @@
{
"name": "polymer-cli",
"version": "5.3.3",
"version": "5.3.7",
"private": true,
"scripts": {
"build-storybook": "build-storybook",
@ -9,18 +9,18 @@
},
"dependencies": {
"@polymer/polymer": "^2.6.0",
"@storybook/addon-a11y": "5.3.3",
"@storybook/addon-actions": "5.3.3",
"@storybook/addon-backgrounds": "5.3.3",
"@storybook/addon-knobs": "5.3.3",
"@storybook/addon-links": "5.3.3",
"@storybook/addon-notes": "5.3.3",
"@storybook/addon-options": "5.3.3",
"@storybook/addon-storysource": "5.3.3",
"@storybook/addon-viewport": "5.3.3",
"@storybook/addons": "5.3.3",
"@storybook/polymer": "5.3.3",
"@storybook/source-loader": "5.3.3",
"@storybook/addon-a11y": "5.3.7",
"@storybook/addon-actions": "5.3.7",
"@storybook/addon-backgrounds": "5.3.7",
"@storybook/addon-knobs": "5.3.7",
"@storybook/addon-links": "5.3.7",
"@storybook/addon-notes": "5.3.7",
"@storybook/addon-options": "5.3.7",
"@storybook/addon-storysource": "5.3.7",
"@storybook/addon-viewport": "5.3.7",
"@storybook/addons": "5.3.7",
"@storybook/polymer": "5.3.7",
"@storybook/source-loader": "5.3.7",
"@webcomponents/webcomponentsjs": "^1.2.0",
"global": "^4.3.2",
"lit-html": "^1.0.0",

View File

@ -1,6 +1,6 @@
{
"name": "preact-example",
"version": "5.3.3",
"version": "5.3.7",
"private": true,
"scripts": {
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules",
@ -15,21 +15,21 @@
"devDependencies": {
"@babel/core": "^7.3.4",
"@babel/plugin-transform-runtime": "^7.2.0",
"@storybook/addon-a11y": "5.3.3",
"@storybook/addon-actions": "5.3.3",
"@storybook/addon-backgrounds": "5.3.3",
"@storybook/addon-centered": "5.3.3",
"@storybook/addon-contexts": "5.3.3",
"@storybook/addon-knobs": "5.3.3",
"@storybook/addon-links": "5.3.3",
"@storybook/addon-notes": "5.3.3",
"@storybook/addon-options": "5.3.3",
"@storybook/addon-storyshots": "5.3.3",
"@storybook/addon-storysource": "5.3.3",
"@storybook/addon-viewport": "5.3.3",
"@storybook/addons": "5.3.3",
"@storybook/preact": "5.3.3",
"@storybook/source-loader": "5.3.3",
"@storybook/addon-a11y": "5.3.7",
"@storybook/addon-actions": "5.3.7",
"@storybook/addon-backgrounds": "5.3.7",
"@storybook/addon-centered": "5.3.7",
"@storybook/addon-contexts": "5.3.7",
"@storybook/addon-knobs": "5.3.7",
"@storybook/addon-links": "5.3.7",
"@storybook/addon-notes": "5.3.7",
"@storybook/addon-options": "5.3.7",
"@storybook/addon-storyshots": "5.3.7",
"@storybook/addon-storysource": "5.3.7",
"@storybook/addon-viewport": "5.3.7",
"@storybook/addons": "5.3.7",
"@storybook/preact": "5.3.7",
"@storybook/source-loader": "5.3.7",
"babel-loader": "^8.0.4",
"cross-env": "^6.0.3",
"file-loader": "^5.0.2",

View File

@ -1,6 +1,6 @@
{
"name": "rax-kitchen-sink",
"version": "5.3.3",
"version": "5.3.7",
"private": true,
"scripts": {
"build": "build-scripts build",
@ -20,24 +20,24 @@
"devDependencies": {
"@alib/build-scripts": "^0.1.8",
"@babel/preset-react": "^7.7.4",
"@storybook/addon-a11y": "5.3.3",
"@storybook/addon-actions": "5.3.3",
"@storybook/addon-backgrounds": "5.3.3",
"@storybook/addon-centered": "5.3.3",
"@storybook/addon-events": "5.3.3",
"@storybook/addon-info": "5.3.3",
"@storybook/addon-jest": "5.3.3",
"@storybook/addon-knobs": "5.3.3",
"@storybook/addon-links": "5.3.3",
"@storybook/addon-notes": "5.3.3",
"@storybook/addon-options": "5.3.3",
"@storybook/addon-storyshots": "5.3.3",
"@storybook/addon-storysource": "5.3.3",
"@storybook/addon-viewport": "5.3.3",
"@storybook/addons": "5.3.3",
"@storybook/rax": "5.3.3",
"@storybook/source-loader": "5.3.3",
"@storybook/theming": "5.3.3",
"@storybook/addon-a11y": "5.3.7",
"@storybook/addon-actions": "5.3.7",
"@storybook/addon-backgrounds": "5.3.7",
"@storybook/addon-centered": "5.3.7",
"@storybook/addon-events": "5.3.7",
"@storybook/addon-info": "5.3.7",
"@storybook/addon-jest": "5.3.7",
"@storybook/addon-knobs": "5.3.7",
"@storybook/addon-links": "5.3.7",
"@storybook/addon-notes": "5.3.7",
"@storybook/addon-options": "5.3.7",
"@storybook/addon-storyshots": "5.3.7",
"@storybook/addon-storysource": "5.3.7",
"@storybook/addon-viewport": "5.3.7",
"@storybook/addons": "5.3.7",
"@storybook/rax": "5.3.7",
"@storybook/source-loader": "5.3.7",
"@storybook/theming": "5.3.7",
"babel-eslint": "^10.0.3",
"build-plugin-rax-app": "^0.2.0",
"stylesheet-loader": "^0.6.5"

View File

@ -1,6 +1,6 @@
{
"name": "riot-example",
"version": "5.3.3",
"version": "5.3.7",
"private": true,
"scripts": {
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules",
@ -15,20 +15,20 @@
},
"devDependencies": {
"@babel/core": "^7.3.4",
"@storybook/addon-a11y": "5.3.3",
"@storybook/addon-actions": "5.3.3",
"@storybook/addon-backgrounds": "5.3.3",
"@storybook/addon-centered": "5.3.3",
"@storybook/addon-knobs": "5.3.3",
"@storybook/addon-links": "5.3.3",
"@storybook/addon-notes": "5.3.3",
"@storybook/addon-options": "5.3.3",
"@storybook/addon-storyshots": "5.3.3",
"@storybook/addon-storysource": "5.3.3",
"@storybook/addon-viewport": "5.3.3",
"@storybook/addons": "5.3.3",
"@storybook/riot": "5.3.3",
"@storybook/source-loader": "5.3.3",
"@storybook/addon-a11y": "5.3.7",
"@storybook/addon-actions": "5.3.7",
"@storybook/addon-backgrounds": "5.3.7",
"@storybook/addon-centered": "5.3.7",
"@storybook/addon-knobs": "5.3.7",
"@storybook/addon-links": "5.3.7",
"@storybook/addon-notes": "5.3.7",
"@storybook/addon-options": "5.3.7",
"@storybook/addon-storyshots": "5.3.7",
"@storybook/addon-storysource": "5.3.7",
"@storybook/addon-viewport": "5.3.7",
"@storybook/addons": "5.3.7",
"@storybook/riot": "5.3.7",
"@storybook/source-loader": "5.3.7",
"babel-loader": "^8.0.4",
"cross-env": "^6.0.3",
"file-loader": "^5.0.2",

View File

@ -1,12 +1,12 @@
{
"name": "standalone-preview",
"version": "5.3.3",
"version": "5.3.7",
"private": true,
"scripts": {
"storybook": "parcel ./storybook.html --port 1337"
},
"devDependencies": {
"@storybook/react": "5.3.3",
"@storybook/react": "5.3.7",
"parcel": "^1.12.3",
"react": "^16.8.4",
"react-dom": "^16.8.4"

View File

@ -1,6 +1,6 @@
{
"name": "svelte-example",
"version": "5.3.3",
"version": "5.3.7",
"private": true,
"scripts": {
"build-storybook": "build-storybook -s public",
@ -10,19 +10,19 @@
"global": "^4.3.2"
},
"devDependencies": {
"@storybook/addon-a11y": "5.3.3",
"@storybook/addon-actions": "5.3.3",
"@storybook/addon-backgrounds": "5.3.3",
"@storybook/addon-centered": "5.3.3",
"@storybook/addon-knobs": "5.3.3",
"@storybook/addon-links": "5.3.3",
"@storybook/addon-notes": "5.3.3",
"@storybook/addon-options": "5.3.3",
"@storybook/addon-storyshots": "5.3.3",
"@storybook/addon-storysource": "5.3.3",
"@storybook/addon-viewport": "5.3.3",
"@storybook/addons": "5.3.3",
"@storybook/source-loader": "5.3.3",
"@storybook/svelte": "5.3.3"
"@storybook/addon-a11y": "5.3.7",
"@storybook/addon-actions": "5.3.7",
"@storybook/addon-backgrounds": "5.3.7",
"@storybook/addon-centered": "5.3.7",
"@storybook/addon-knobs": "5.3.7",
"@storybook/addon-links": "5.3.7",
"@storybook/addon-notes": "5.3.7",
"@storybook/addon-options": "5.3.7",
"@storybook/addon-storyshots": "5.3.7",
"@storybook/addon-storysource": "5.3.7",
"@storybook/addon-viewport": "5.3.7",
"@storybook/addons": "5.3.7",
"@storybook/source-loader": "5.3.7",
"@storybook/svelte": "5.3.7"
}
}

View File

@ -1,6 +1,6 @@
{
"name": "vue-example",
"version": "5.3.3",
"version": "5.3.7",
"private": true,
"scripts": {
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules",
@ -14,22 +14,22 @@
},
"devDependencies": {
"@babel/core": "^7.3.4",
"@storybook/addon-a11y": "5.3.3",
"@storybook/addon-actions": "5.3.3",
"@storybook/addon-backgrounds": "5.3.3",
"@storybook/addon-centered": "5.3.3",
"@storybook/addon-contexts": "5.3.3",
"@storybook/addon-docs": "5.3.3",
"@storybook/addon-knobs": "5.3.3",
"@storybook/addon-links": "5.3.3",
"@storybook/addon-notes": "5.3.3",
"@storybook/addon-options": "5.3.3",
"@storybook/addon-storyshots": "5.3.3",
"@storybook/addon-storysource": "5.3.3",
"@storybook/addon-viewport": "5.3.3",
"@storybook/addons": "5.3.3",
"@storybook/source-loader": "5.3.3",
"@storybook/vue": "5.3.3",
"@storybook/addon-a11y": "5.3.7",
"@storybook/addon-actions": "5.3.7",
"@storybook/addon-backgrounds": "5.3.7",
"@storybook/addon-centered": "5.3.7",
"@storybook/addon-contexts": "5.3.7",
"@storybook/addon-docs": "5.3.7",
"@storybook/addon-knobs": "5.3.7",
"@storybook/addon-links": "5.3.7",
"@storybook/addon-notes": "5.3.7",
"@storybook/addon-options": "5.3.7",
"@storybook/addon-storyshots": "5.3.7",
"@storybook/addon-storysource": "5.3.7",
"@storybook/addon-viewport": "5.3.7",
"@storybook/addons": "5.3.7",
"@storybook/source-loader": "5.3.7",
"@storybook/vue": "5.3.7",
"babel-core": "^7.0.0-bridge.0",
"babel-loader": "^8.0.5",
"cross-env": "^6.0.3",

View File

@ -1,23 +1,26 @@
<script>
/**
* InfoButton component description
*/
export default {
props: {
/**
* Whether to disable button
*/
disabled: {
type: Boolean
type: Boolean,
},
/**
* Button type
*/
type: {
type: String,
default: 'normal'
default: 'normal',
},
label: {
type: String,
required: true
}
required: true,
},
},
methods: {
click(ev) {
@ -25,10 +28,10 @@ export default {
* Passthrough click event
* @type {Event}
*/
this.$emit('click', ev)
}
}
}
this.$emit('click', ev);
},
},
};
</script>
<template>
@ -64,4 +67,4 @@ export default {
background-color: #eee;
color: #777;
}
</style>
</style>

View File

@ -1,6 +1,6 @@
{
"name": "web-components-kitchen-sink",
"version": "5.3.3",
"version": "5.3.7",
"private": true,
"description": "",
"keywords": [],
@ -12,26 +12,26 @@
"storybook": "start-storybook -p 9006"
},
"devDependencies": {
"@storybook/addon-a11y": "5.3.3",
"@storybook/addon-actions": "5.3.3",
"@storybook/addon-backgrounds": "5.3.3",
"@storybook/addon-centered": "5.3.3",
"@storybook/addon-docs": "5.3.3",
"@storybook/addon-events": "5.3.3",
"@storybook/addon-jest": "5.3.3",
"@storybook/addon-knobs": "5.3.3",
"@storybook/addon-links": "5.3.3",
"@storybook/addon-notes": "5.3.3",
"@storybook/addon-options": "5.3.3",
"@storybook/addon-storyshots": "5.3.3",
"@storybook/addon-storysource": "5.3.3",
"@storybook/addon-viewport": "5.3.3",
"@storybook/addons": "5.3.3",
"@storybook/client-api": "5.3.3",
"@storybook/core": "5.3.3",
"@storybook/core-events": "5.3.3",
"@storybook/source-loader": "5.3.3",
"@storybook/web-components": "5.3.3",
"@storybook/addon-a11y": "5.3.7",
"@storybook/addon-actions": "5.3.7",
"@storybook/addon-backgrounds": "5.3.7",
"@storybook/addon-centered": "5.3.7",
"@storybook/addon-docs": "5.3.7",
"@storybook/addon-events": "5.3.7",
"@storybook/addon-jest": "5.3.7",
"@storybook/addon-knobs": "5.3.7",
"@storybook/addon-links": "5.3.7",
"@storybook/addon-notes": "5.3.7",
"@storybook/addon-options": "5.3.7",
"@storybook/addon-storyshots": "5.3.7",
"@storybook/addon-storysource": "5.3.7",
"@storybook/addon-viewport": "5.3.7",
"@storybook/addons": "5.3.7",
"@storybook/client-api": "5.3.7",
"@storybook/core": "5.3.7",
"@storybook/core-events": "5.3.7",
"@storybook/source-loader": "5.3.7",
"@storybook/web-components": "5.3.7",
"babel-loader": "^8.0.5",
"eventemitter3": "^4.0.0",
"format-json": "^1.0.3",

View File

@ -2,5 +2,5 @@
"npmClient": "yarn",
"useWorkspaces": true,
"registry": "https://registry.npmjs.org",
"version": "5.3.3"
"version": "5.3.7"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addons",
"version": "5.3.3",
"version": "5.3.7",
"description": "Storybook addons store",
"keywords": [
"storybook"
@ -27,10 +27,10 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/api": "5.3.3",
"@storybook/channels": "5.3.3",
"@storybook/client-logger": "5.3.3",
"@storybook/core-events": "5.3.3",
"@storybook/api": "5.3.7",
"@storybook/channels": "5.3.7",
"@storybook/client-logger": "5.3.7",
"@storybook/core-events": "5.3.7",
"core-js": "^3.0.1",
"global": "^4.3.2",
"util-deprecate": "^1.0.2"

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/api",
"version": "5.3.3",
"version": "5.3.7",
"description": "Core Storybook API & Context",
"keywords": [
"storybook"
@ -27,12 +27,12 @@
},
"dependencies": {
"@reach/router": "^1.2.1",
"@storybook/channels": "5.3.3",
"@storybook/client-logger": "5.3.3",
"@storybook/core-events": "5.3.3",
"@storybook/channels": "5.3.7",
"@storybook/client-logger": "5.3.7",
"@storybook/core-events": "5.3.7",
"@storybook/csf": "0.0.1",
"@storybook/router": "5.3.3",
"@storybook/theming": "5.3.3",
"@storybook/router": "5.3.7",
"@storybook/theming": "5.3.7",
"@types/reach__router": "^1.2.3",
"core-js": "^3.0.1",
"fast-deep-equal": "^2.0.1",

View File

@ -1 +1 @@
export const version = '5.3.3';
export const version = '5.3.7';

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/channel-postmessage",
"version": "5.3.3",
"version": "5.3.7",
"description": "",
"keywords": [
"storybook"
@ -27,8 +27,8 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/channels": "5.3.3",
"@storybook/client-logger": "5.3.3",
"@storybook/channels": "5.3.7",
"@storybook/client-logger": "5.3.7",
"core-js": "^3.0.1",
"global": "^4.3.2",
"telejson": "^3.2.0"

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/channel-websocket",
"version": "5.3.3",
"version": "5.3.7",
"description": "",
"keywords": [
"storybook"
@ -27,7 +27,7 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/channels": "5.3.3",
"@storybook/channels": "5.3.7",
"core-js": "^3.0.1",
"global": "^4.3.2",
"json-fn": "^1.1.1"

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/channels",
"version": "5.3.3",
"version": "5.3.7",
"description": "",
"keywords": [
"storybook"

View File

@ -1,6 +1,6 @@
{
"name": "sb",
"version": "5.3.3",
"version": "5.3.7",
"description": "Storybook CLI",
"keywords": [
"storybook"
@ -22,7 +22,7 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/cli": "5.3.3"
"@storybook/cli": "5.3.7"
},
"publishConfig": {
"access": "public"

View File

@ -1,6 +1,6 @@
{
"name": "storybook",
"version": "5.3.3",
"version": "5.3.7",
"description": "Storybook CLI",
"keywords": [
"storybook"
@ -23,7 +23,7 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/cli": "5.3.3"
"@storybook/cli": "5.3.7"
},
"publishConfig": {
"access": "public"

View File

@ -11,14 +11,14 @@ export default {
export const Text = () => ({
component: Button,
props: {
Text: 'Hello Button',
text: 'Hello Button',
},
});
export const Emoji = () => ({
component: Button,
props: {
Text: '😀 😎 👍 💯',
text: '😀 😎 👍 💯',
},
});
@ -29,7 +29,7 @@ Emoji.story = {
export const WithSomeEmojiAndAction = () => ({
component: Button,
props: {
Text: '😀 😎 👍 💯',
text: '😀 😎 👍 💯',
onClick: action('This was clicked OMG'),
},
});
@ -42,7 +42,7 @@ WithSomeEmojiAndAction.story = {
export const ButtonWithLinkToAnotherStory = () => ({
component: Button,
props: {
Text: 'Go to Welcome Story',
text: 'Go to Welcome Story',
onClick: linkTo('Welcome'),
},
});

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/cli",
"version": "5.3.3",
"version": "5.3.7",
"description": "Storybook's CLI - easiest method of adding storybook to your projects",
"keywords": [
"cli",
@ -38,7 +38,7 @@
"dependencies": {
"@babel/core": "^7.4.5",
"@babel/preset-env": "^7.4.5",
"@storybook/codemod": "5.3.3",
"@storybook/codemod": "5.3.7",
"chalk": "^3.0.0",
"commander": "^4.0.1",
"core-js": "^3.0.1",
@ -58,34 +58,34 @@
"update-notifier": "^3.0.0"
},
"devDependencies": {
"@storybook/addon-actions": "5.3.3",
"@storybook/addon-centered": "5.3.3",
"@storybook/addon-graphql": "5.3.3",
"@storybook/addon-info": "5.3.3",
"@storybook/addon-knobs": "5.3.3",
"@storybook/addon-links": "5.3.3",
"@storybook/addon-notes": "5.3.3",
"@storybook/addon-options": "5.3.3",
"@storybook/addon-storyshots": "5.3.3",
"@storybook/addons": "5.3.3",
"@storybook/angular": "5.3.3",
"@storybook/channel-postmessage": "5.3.3",
"@storybook/channel-websocket": "5.3.3",
"@storybook/channels": "5.3.3",
"@storybook/ember": "5.3.3",
"@storybook/html": "5.3.3",
"@storybook/marko": "5.3.3",
"@storybook/mithril": "5.3.3",
"@storybook/polymer": "5.3.3",
"@storybook/preact": "5.3.3",
"@storybook/rax": "5.3.3",
"@storybook/react": "5.3.3",
"@storybook/react-native": "5.3.3",
"@storybook/riot": "5.3.3",
"@storybook/svelte": "5.3.3",
"@storybook/ui": "5.3.3",
"@storybook/vue": "5.3.3",
"@storybook/web-components": "5.3.3"
"@storybook/addon-actions": "5.3.7",
"@storybook/addon-centered": "5.3.7",
"@storybook/addon-graphql": "5.3.7",
"@storybook/addon-info": "5.3.7",
"@storybook/addon-knobs": "5.3.7",
"@storybook/addon-links": "5.3.7",
"@storybook/addon-notes": "5.3.7",
"@storybook/addon-options": "5.3.7",
"@storybook/addon-storyshots": "5.3.7",
"@storybook/addons": "5.3.7",
"@storybook/angular": "5.3.7",
"@storybook/channel-postmessage": "5.3.7",
"@storybook/channel-websocket": "5.3.7",
"@storybook/channels": "5.3.7",
"@storybook/ember": "5.3.7",
"@storybook/html": "5.3.7",
"@storybook/marko": "5.3.7",
"@storybook/mithril": "5.3.7",
"@storybook/polymer": "5.3.7",
"@storybook/preact": "5.3.7",
"@storybook/rax": "5.3.7",
"@storybook/react": "5.3.7",
"@storybook/react-native": "5.3.7",
"@storybook/riot": "5.3.7",
"@storybook/svelte": "5.3.7",
"@storybook/ui": "5.3.7",
"@storybook/vue": "5.3.7",
"@storybook/web-components": "5.3.7"
},
"publishConfig": {
"access": "public"

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/client-api",
"version": "5.3.3",
"version": "5.3.7",
"description": "Storybook Client API",
"keywords": [
"storybook"
@ -27,12 +27,13 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "5.3.3",
"@storybook/channel-postmessage": "5.3.3",
"@storybook/channels": "5.3.3",
"@storybook/client-logger": "5.3.3",
"@storybook/core-events": "5.3.3",
"@storybook/addons": "5.3.7",
"@storybook/channel-postmessage": "5.3.7",
"@storybook/channels": "5.3.7",
"@storybook/client-logger": "5.3.7",
"@storybook/core-events": "5.3.7",
"@storybook/csf": "0.0.1",
"@types/webpack-env": "^1.15.0",
"core-js": "^3.0.1",
"eventemitter3": "^4.0.0",
"global": "^4.3.2",

View File

@ -514,21 +514,23 @@ describe('preview.client_api', () => {
clientApi: { storiesOf, getStorybook },
channel,
} = getContext(undefined);
const module0 = new MockModule();
const module1 = new MockModule();
const module2 = new MockModule();
channel.emit = jest.fn();
expect(getStorybook()).toEqual([]);
storiesOf('kind0', module0).add('story0-docs-only', jest.fn(), { docsOnly: true });
storiesOf('kind1', module1).add('story1', jest.fn());
storiesOf('kind2', module2).add('story2', jest.fn());
// storyStore debounces so we need to wait for the next tick
await new Promise(r => setTimeout(r, 0));
let [event, storiesHash] = channel.emit.mock.calls[0];
let [event, args] = channel.emit.mock.calls[0];
expect(event).toEqual(Events.SET_STORIES);
expect(Object.values(storiesHash.stories).map(v => v.kind)).toEqual(['kind1', 'kind2']);
expect(Object.values(args.stories).map(v => v.kind)).toEqual(['kind0', 'kind1', 'kind2']);
expect(getStorybook().map(story => story.kind)).toEqual(['kind1', 'kind2']);
channel.emit.mockClear();
@ -540,10 +542,10 @@ describe('preview.client_api', () => {
await new Promise(r => setTimeout(r, 0));
// eslint-disable-next-line prefer-destructuring
[event, storiesHash] = channel.emit.mock.calls[0];
[event, args] = channel.emit.mock.calls[0];
expect(event).toEqual(Events.SET_STORIES);
expect(Object.values(storiesHash.stories).map(v => v.kind)).toEqual(['kind1', 'kind2']);
expect(Object.values(args.stories).map(v => v.kind)).toEqual(['kind0', 'kind1', 'kind2']);
expect(getStorybook().map(story => story.kind)).toEqual(['kind1', 'kind2']);
});
});

View File

@ -223,10 +223,11 @@ describe('preview.story_store', () => {
});
});
describe('dumpStoryBook', () => {
describe('dumpStoryBook/getStoriesForManager', () => {
it('should return nothing when empty', () => {
const store = new StoryStore({ channel });
expect(store.dumpStoryBook()).toEqual([]);
expect(Object.keys(store.getStoriesForManager())).toEqual([]);
});
it('should return storybook with stories', () => {
@ -247,6 +248,13 @@ describe('preview.story_store', () => {
stories: ['story-2.1', 'story-2.2'],
},
]);
expect(Object.keys(store.getStoriesForManager())).toEqual([
'kind-1--story-1-1',
'kind-1--story-1-2',
'kind-2--story-2-1',
'kind-2--story-2-2',
]);
});
});

View File

@ -56,6 +56,8 @@ interface StoryOptions {
includeDocsOnly?: boolean;
}
type KindOrder = Record<string, number>;
const isStoryDocsOnly = (parameters?: Parameters) => {
return parameters && parameters.docsOnly;
};
@ -82,6 +84,8 @@ export default class StoryStore extends EventEmitter {
_selection: Selection;
_kindOrder: KindOrder;
constructor(params: { channel: Channel }) {
super();
@ -91,6 +95,7 @@ export default class StoryStore extends EventEmitter {
this._selection = {} as any;
this._channel = params.channel;
this._error = undefined;
this._kindOrder = {};
}
setChannel = (channel: Channel) => {
@ -140,17 +145,11 @@ export default class StoryStore extends EventEmitter {
stable.inplace(stories, sortFn);
} else {
// NOTE: when kinds are HMR'ed they get temporarily removed from the `_data` array
// and thus lose order. However in `_legacydata` they just get zeroed out, meaning
// that the order is preserved. Here we can use this to preserve the load
// order if there is no sort function, although it's a hack.
const kindOrder = Object.keys(this._legacydata).reduce(
(acc: Record<string, number>, kind: string, idx: number) => {
acc[kind] = idx;
return acc;
},
{}
// and thus lose order. However `_kindOrder` preservers the original load order
stable.inplace(
stories,
(s1, s2) => this._kindOrder[s1[1].kind] - this._kindOrder[s2[1].kind]
);
stable.inplace(stories, (s1, s2) => kindOrder[s1[1].kind] - kindOrder[s2[1].kind]);
}
}
// removes function values from all stories so they are safe to transport over the channel
@ -259,24 +258,47 @@ export default class StoryStore extends EventEmitter {
parameters,
};
// LEGACY DATA
// Don't store docs-only stories in legacy data because
// existing clients (at the time?!), e.g. storyshots/chromatic
// are not necessarily equipped to process them
if (!isStoryDocsOnly(parameters)) {
this.addLegacyStory({ kind, name, storyFn, parameters });
}
// Store 1-based order of kind loading to preserve sorting on HMR
if (!this._kindOrder[kind]) {
this._kindOrder[kind] = 1 + Object.keys(this._kindOrder).length;
}
// LET'S SEND IT TO THE MANAGER
this.pushToManager();
}
getStoriesForManager = () => {
return this.extract({ includeDocsOnly: true });
};
pushToManager = debounce(() => {
if (this._channel) {
const stories = this.extract({ includeDocsOnly: true });
const stories = this.getStoriesForManager();
// send to the parent frame.
this._channel.emit(Events.SET_STORIES, { stories });
}
}, 0);
// Unlike a bunch of deprecated APIs below, these lookup functions
// use the `_data` member, which is the new data structure. They should
// be the preferred way of looking up stories in the future.
getStoriesForKind(kind: string) {
return this.raw().filter(story => story.kind === kind);
}
getRawStory(kind: string, name: string) {
return this.getStoriesForKind(kind).find(s => s.name === name);
}
// OLD apis
getRevision() {
return this._revision;
@ -336,10 +358,6 @@ export default class StoryStore extends EventEmitter {
.map(info => info.name);
}
getStoriesForKind(kind: string) {
return this.raw().filter(story => story.kind === kind);
}
getStoryFileName(kind: string) {
const key = toKey(kind);
const storiesKind = this._legacydata[key as string];

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/client-logger",
"version": "5.3.3",
"version": "5.3.7",
"description": "",
"keywords": [
"storybook"

Some files were not shown because too many files have changed in this diff Show More