diff --git a/.babelrc.js b/.babelrc.js index 3579315ef8e6..c1e808c5983a 100644 --- a/.babelrc.js +++ b/.babelrc.js @@ -72,6 +72,11 @@ module.exports = { test: withTests, }, }, + { + test: './app/react-native', + presets: ['module:metro-react-native-babel-preset'], + plugins: ['babel-plugin-macros', ['emotion', { sourceMap: true, autoLabel: true }]], + }, { test: [ './lib/node-logger', diff --git a/CHANGELOG.md b/CHANGELOG.md index 996dac7cb8d9..9e44006ff4ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,44 @@ +## 5.2.6 (November 9, 2019) + +### Bug Fixes + +* Addon-info: Remove jsnext:main ([#8764](https://github.com/storybookjs/storybook/pull/8764)) +* Addon-info: Fix "The prop 'children' is marked as required in 'Td'" ([#8745](https://github.com/storybookjs/storybook/pull/8745)) +* UI: Fix unmount components on Canvas/Docs tab switch ([#8625](https://github.com/storybookjs/storybook/pull/8625)) +* Addon-docs: Fix code style inside LI ([#8708](https://github.com/storybookjs/storybook/pull/8708)) +* Remove min-height CSS rule from DocsPage wrapper ([#8366](https://github.com/storybookjs/storybook/pull/8366)) +* Core: Revert webpack rebuild changes in node_modules ([#8657](https://github.com/storybookjs/storybook/pull/8657)) +* Addon-notes: Add key to render function ([#8633](https://github.com/storybookjs/storybook/pull/8633)) +* Addon-docs: Fix story scroll-to heuristics ([#8629](https://github.com/storybookjs/storybook/pull/8629)) +* React-native-server: Changed default port to number in CLI options ([#8584](https://github.com/storybookjs/storybook/pull/8584)) +* Increase TooltipLinkList max-height to accommodate more links ([#8545](https://github.com/storybookjs/storybook/pull/8545)) +* Prevent form submission as search is done while typing ([#8546](https://github.com/storybookjs/storybook/pull/8546)) +* Ondevice-knobs: Fix peer dep ([#8644](https://github.com/storybookjs/storybook/pull/8644)) + +## 5.3.0-alpha.42 (November 9, 2019) + +### Bug Fixes + +* Addon-info: Remove jsnext:main ([#8764](https://github.com/storybookjs/storybook/pull/8764)) +* Addon-info: Fix "The prop 'children' is marked as required in 'Td'" ([#8745](https://github.com/storybookjs/storybook/pull/8745)) + +### Maintenance + +* React-native: Update compilation target - it was compiled for old browsers ([#8698](https://github.com/storybookjs/storybook/pull/8698)) + +## 5.3.0-alpha.41 (November 7, 2019) + +### Features + +* Addon-docs: Render array of shape properly in props table ([#8707](https://github.com/storybookjs/storybook/pull/8707)) +* Addon-docs: Render params description in props table, support @ignore ([#8702](https://github.com/storybookjs/storybook/pull/8702)) + +### Bug Fixes + +* Addon-docs: Fix "Cannot read property 'props'" ([#8731](https://github.com/storybookjs/storybook/pull/8731)) +* UI: Fix unmount components on Canvas/Docs tab switch ([#8625](https://github.com/storybookjs/storybook/pull/8625)) +* Angular: Fix loading baseConfig if no angular.json found ([#8727](https://github.com/storybookjs/storybook/pull/8727)) + ## 5.3.0-alpha.40 (November 6, 2019) ### Features diff --git a/addons/a11y/package.json b/addons/a11y/package.json index 3c7dd28bc918..a67ecd063f32 100644 --- a/addons/a11y/package.json +++ b/addons/a11y/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-a11y", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "a11y addon for storybook", "keywords": [ "a11y", @@ -33,12 +33,12 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/api": "5.3.0-alpha.40", - "@storybook/client-logger": "5.3.0-alpha.40", - "@storybook/components": "5.3.0-alpha.40", - "@storybook/core-events": "5.3.0-alpha.40", - "@storybook/theming": "5.3.0-alpha.40", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/api": "5.3.0-alpha.42", + "@storybook/client-logger": "5.3.0-alpha.42", + "@storybook/components": "5.3.0-alpha.42", + "@storybook/core-events": "5.3.0-alpha.42", + "@storybook/theming": "5.3.0-alpha.42", "axe-core": "^3.3.2", "core-js": "^3.0.1", "global": "^4.3.2", diff --git a/addons/actions/package.json b/addons/actions/package.json index a8e49b28644c..2c909c4fc84d 100644 --- a/addons/actions/package.json +++ b/addons/actions/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-actions", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "Action Logger addon for storybook", "keywords": [ "storybook" @@ -28,12 +28,12 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/api": "5.3.0-alpha.40", - "@storybook/client-api": "5.3.0-alpha.40", - "@storybook/components": "5.3.0-alpha.40", - "@storybook/core-events": "5.3.0-alpha.40", - "@storybook/theming": "5.3.0-alpha.40", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/api": "5.3.0-alpha.42", + "@storybook/client-api": "5.3.0-alpha.42", + "@storybook/components": "5.3.0-alpha.42", + "@storybook/core-events": "5.3.0-alpha.42", + "@storybook/theming": "5.3.0-alpha.42", "core-js": "^3.0.1", "fast-deep-equal": "^2.0.1", "global": "^4.3.2", diff --git a/addons/backgrounds/package.json b/addons/backgrounds/package.json index 0eeeda1a2878..132b21f72e34 100644 --- a/addons/backgrounds/package.json +++ b/addons/backgrounds/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-backgrounds", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "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": "5.3.0-alpha.40", - "@storybook/api": "5.3.0-alpha.40", - "@storybook/client-logger": "5.3.0-alpha.40", - "@storybook/components": "5.3.0-alpha.40", - "@storybook/core-events": "5.3.0-alpha.40", - "@storybook/theming": "5.3.0-alpha.40", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/api": "5.3.0-alpha.42", + "@storybook/client-logger": "5.3.0-alpha.42", + "@storybook/components": "5.3.0-alpha.42", + "@storybook/core-events": "5.3.0-alpha.42", + "@storybook/theming": "5.3.0-alpha.42", "core-js": "^3.0.1", "memoizerific": "^1.11.3", "react": "^16.8.3", diff --git a/addons/centered/package.json b/addons/centered/package.json index 0fd78d129354..8d533a6bb1de 100644 --- a/addons/centered/package.json +++ b/addons/centered/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-centered", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "Storybook decorator to center components", "keywords": [ "addon", @@ -29,7 +29,7 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.3.0-alpha.40", + "@storybook/addons": "5.3.0-alpha.42", "core-js": "^3.0.1", "global": "^4.3.2", "util-deprecate": "^1.0.2" diff --git a/addons/contexts/package.json b/addons/contexts/package.json index e6849c05d75e..e0499f061466 100644 --- a/addons/contexts/package.json +++ b/addons/contexts/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-contexts", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "Storybook Addon Contexts", "keywords": [ "preact", @@ -27,10 +27,10 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/api": "5.3.0-alpha.40", - "@storybook/components": "5.3.0-alpha.40", - "@storybook/core-events": "5.3.0-alpha.40", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/api": "5.3.0-alpha.42", + "@storybook/components": "5.3.0-alpha.42", + "@storybook/core-events": "5.3.0-alpha.42", "core-js": "^3.0.1", "global": "^4.3.2", "qs": "^6.6.0" diff --git a/addons/cssresources/package.json b/addons/cssresources/package.json index 3dd103e74260..db0b2eb27ef3 100644 --- a/addons/cssresources/package.json +++ b/addons/cssresources/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-cssresources", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "A storybook addon to switch between css resources at runtime for your story", "keywords": [ "addon", @@ -32,10 +32,10 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/api": "5.3.0-alpha.40", - "@storybook/components": "5.3.0-alpha.40", - "@storybook/core-events": "5.3.0-alpha.40", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/api": "5.3.0-alpha.42", + "@storybook/components": "5.3.0-alpha.42", + "@storybook/core-events": "5.3.0-alpha.42", "core-js": "^3.0.1", "global": "^4.3.2", "react": "^16.8.3" diff --git a/addons/design-assets/package.json b/addons/design-assets/package.json index 30b71bead3bc..655b8929902f 100644 --- a/addons/design-assets/package.json +++ b/addons/design-assets/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-design-assets", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "Design asset preview for storybook", "keywords": [ "addon", @@ -34,12 +34,12 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/api": "5.3.0-alpha.40", - "@storybook/client-logger": "5.3.0-alpha.40", - "@storybook/components": "5.3.0-alpha.40", - "@storybook/core-events": "5.3.0-alpha.40", - "@storybook/theming": "5.3.0-alpha.40", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/api": "5.3.0-alpha.42", + "@storybook/client-logger": "5.3.0-alpha.42", + "@storybook/components": "5.3.0-alpha.42", + "@storybook/core-events": "5.3.0-alpha.42", + "@storybook/theming": "5.3.0-alpha.42", "core-js": "^3.0.1", "global": "^4.3.2", "react": "^16.8.3", diff --git a/addons/docs/angular/README.md b/addons/docs/angular/README.md index a7be2e12dbf6..6a8de67eae48 100644 --- a/addons/docs/angular/README.md +++ b/addons/docs/angular/README.md @@ -104,7 +104,7 @@ configure(require.context('../src/stories', true, /\.stories\.(ts|mdx)$/), modul Finally, you can create MDX files like this: ```md -import { Meta, Story, Props } from '@storybook/docs/blocks'; +import { Meta, Story, Props } from '@storybook/addon-docs/blocks'; import { AppComponent } from './app.component'; diff --git a/addons/docs/package.json b/addons/docs/package.json index a1da273f81d9..31aa30b1ffb1 100644 --- a/addons/docs/package.json +++ b/addons/docs/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-docs", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "Superior documentation for your components", "keywords": [ "addon", @@ -44,12 +44,12 @@ "@mdx-js/loader": "^1.1.0", "@mdx-js/mdx": "^1.1.0", "@mdx-js/react": "^1.0.27", - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/api": "5.3.0-alpha.40", - "@storybook/components": "5.3.0-alpha.40", - "@storybook/router": "5.3.0-alpha.40", - "@storybook/source-loader": "5.3.0-alpha.40", - "@storybook/theming": "5.3.0-alpha.40", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/api": "5.3.0-alpha.42", + "@storybook/components": "5.3.0-alpha.42", + "@storybook/router": "5.3.0-alpha.42", + "@storybook/source-loader": "5.3.0-alpha.42", + "@storybook/theming": "5.3.0-alpha.42", "core-js": "^3.0.1", "doctrine": "^3.0.0", "global": "^4.3.2", diff --git a/addons/events/package.json b/addons/events/package.json index b6d20974c42d..7ad501377521 100644 --- a/addons/events/package.json +++ b/addons/events/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-events", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "Add events to your Storybook stories.", "keywords": [ "addon", @@ -31,11 +31,11 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/api": "5.3.0-alpha.40", - "@storybook/client-api": "5.3.0-alpha.40", - "@storybook/core-events": "5.3.0-alpha.40", - "@storybook/theming": "5.3.0-alpha.40", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/api": "5.3.0-alpha.42", + "@storybook/client-api": "5.3.0-alpha.42", + "@storybook/core-events": "5.3.0-alpha.42", + "@storybook/theming": "5.3.0-alpha.42", "core-js": "^3.0.1", "format-json": "^1.0.3", "lodash": "^4.17.15", diff --git a/addons/google-analytics/package.json b/addons/google-analytics/package.json index ca40a0ded969..5d28a0cadb46 100644 --- a/addons/google-analytics/package.json +++ b/addons/google-analytics/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-google-analytics", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "Storybook addon for google analytics", "keywords": [ "addon", @@ -20,8 +20,8 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/core-events": "5.3.0-alpha.40", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/core-events": "5.3.0-alpha.42", "core-js": "^3.0.1", "global": "^4.3.2", "react-ga": "^2.5.7" diff --git a/addons/graphql/package.json b/addons/graphql/package.json index c04c7f3a367b..cfd2930ca78a 100644 --- a/addons/graphql/package.json +++ b/addons/graphql/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-graphql", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "Storybook addon to display the GraphiQL IDE", "keywords": [ "addon", @@ -29,8 +29,8 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/api": "5.3.0-alpha.40", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/api": "5.3.0-alpha.42", "core-js": "^3.0.1", "global": "^4.3.2", "graphiql": "^0.16.0", diff --git a/addons/info/package.json b/addons/info/package.json index 4e38be6091a4..49b7b2790416 100644 --- a/addons/info/package.json +++ b/addons/info/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-info", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "A Storybook addon to show additional information for your stories.", "keywords": [ "addon", @@ -24,15 +24,14 @@ "*.d.ts" ], "main": "dist/index.js", - "jsnext:main": "src/index.js", "scripts": { "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/client-logger": "5.3.0-alpha.40", - "@storybook/components": "5.3.0-alpha.40", - "@storybook/theming": "5.3.0-alpha.40", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/client-logger": "5.3.0-alpha.42", + "@storybook/components": "5.3.0-alpha.42", + "@storybook/theming": "5.3.0-alpha.42", "core-js": "^3.0.1", "global": "^4.3.2", "marksy": "^7.0.0", diff --git a/addons/info/src/components/PropTable/components/Td.js b/addons/info/src/components/PropTable/components/Td.js index 480c43110c15..a429e6bc633e 100644 --- a/addons/info/src/components/PropTable/components/Td.js +++ b/addons/info/src/components/PropTable/components/Td.js @@ -12,12 +12,13 @@ Td.propTypes = { PropTypes.element, PropTypes.arrayOf(PropTypes.node), PropTypes.arrayOf(PropTypes.element), - ]).isRequired, + ]), isMonospace: PropTypes.bool, }; Td.defaultProps = { isMonospace: false, + children: null, }; export default Td; diff --git a/addons/jest/package.json b/addons/jest/package.json index 1c69651573e4..8b20abab2579 100644 --- a/addons/jest/package.json +++ b/addons/jest/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-jest", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "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.0-alpha.40", - "@storybook/api": "5.3.0-alpha.40", - "@storybook/components": "5.3.0-alpha.40", - "@storybook/core-events": "5.3.0-alpha.40", - "@storybook/theming": "5.3.0-alpha.40", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/api": "5.3.0-alpha.42", + "@storybook/components": "5.3.0-alpha.42", + "@storybook/core-events": "5.3.0-alpha.42", + "@storybook/theming": "5.3.0-alpha.42", "core-js": "^3.0.1", "global": "^4.3.2", "react": "^16.8.3", diff --git a/addons/knobs/README.md b/addons/knobs/README.md index 9573ee40b030..2da7666da27d 100644 --- a/addons/knobs/README.md +++ b/addons/knobs/README.md @@ -3,9 +3,9 @@ Storybook Addon Knobs allow you to edit props dynamically using the Storybook UI. You can also use Knobs as a dynamic variable inside stories in [Storybook](https://storybook.js.org). -[Framework Support](https://github.com/storybookjs/storybook/blob/master/ADDONS_SUPPORT.md) +[Framework Support](https://github.com/storybookjs/storybook/blob/master/ADDONS_SUPPORT.md). -This is how Knobs look like: +This is what Knobs looks like: [![Storybook Knobs Demo](docs/storybook-knobs-example.png)](https://storybooks-official.netlify.com/?knob-Dollars=12.5&knob-Name=Storyteller&knob-Years%20in%20NY=9&knob-background=%23ffff00&knob-Age=70&knob-Items%5B0%5D=Laptop&knob-Items%5B1%5D=Book&knob-Items%5B2%5D=Whiskey&knob-Other%20Fruit=lime&knob-Birthday=1484870400000&knob-Nice=true&knob-Styles=%7B%22border%22%3A%223px%20solid%20%23ff00ff%22%2C%22padding%22%3A%2210px%22%7D&knob-Fruit=apple&selectedKind=Addons%7CKnobs.withKnobs&selectedStory=tweaks%20static%20values&full=0&addons=1&stories=1&panelRight=0&addonPanel=storybooks%2Fstorybook-addon-knobs) @@ -13,7 +13,7 @@ This is how Knobs look like: ## Getting Started -First of all, you need to install knobs into your project as a dev dependency. +First of all, you need to install Knobs into your project as a dev dependency. ```sh yarn add @storybook/addon-knobs --dev @@ -25,34 +25,35 @@ Then, configure it as an addon by adding it to your `addons.js` file (located in import '@storybook/addon-knobs/register'; ``` -Now, write your stories with knobs. +Now, write your stories with Knobs. ### With React ```js -import { storiesOf } from '@storybook/react'; -import { withKnobs, text, boolean, number } from '@storybook/addon-knobs'; - -const stories = storiesOf('Storybook Knobs', module); +import React from "react"; +import { withKnobs, text, boolean, number } from "@storybook/addon-knobs"; +export default { + title: "Storybook Knobs", + decorators: [withKnobs] +}; // Add the `withKnobs` decorator to add knobs support to your stories. // You can also configure `withKnobs` as a global decorator. -stories.addDecorator(withKnobs); // Knobs for React props -stories.add('with a button', () => ( - -)); +); // Knobs as dynamic variables. -stories.add('as dynamic variables', () => { - const name = text('Name', 'Arunoda Susiripala'); - const age = number('Age', 89); +export const asDynamicVariables = () => { + const name = text("Name", "Arunoda Susiripala"); + const age = number("Age", 89); const content = `I am ${name} and I'm ${age} years old.`; - return (
{content}
); -}); + return
{content}
; +}; ``` ### With Vue.js @@ -130,7 +131,7 @@ stories.add('with a button', () => ({ ``` -Categorize your knobs by assigning them a `groupId`. When a `groupId` exists, tabs will appear in the knobs storybook panel to filter between the groups. Knobs without a `groupId` are automatically categorized into the `ALL` group. +Categorize your Knobs by assigning them a `groupId`. When a `groupId` exists, tabs will appear in the Knobs storybook panel to filter between the groups. Knobs without a `groupId` are automatically categorized into the `ALL` group. ```js // Knob assigned a groupId. stories.add('as dynamic variables', () => { @@ -148,7 +149,7 @@ You can see your Knobs in a Storybook panel as shown below. ## Available Knobs -These are the knobs available for you to use. You can import these Knobs from the `@storybook/addon-knobs` module. +These are the Knobs available for you to use. You can import these Knobs from the `@storybook/addon-knobs` module. Here's how to import the **text** Knob. ```js @@ -198,7 +199,7 @@ const groupId = 'GROUP-ID1'; const value = number(label, defaultValue); ``` -For use with `groupId`, pass the default `options` as the third argument +For use with `groupId`, pass the default `options` as the third argument. ``` const value = number(label, defaultValue, {}, groupId); ``` @@ -269,7 +270,7 @@ const value = array(label, defaultValue); ``` > While editing values inside the knob, you will need to use a separator. -> By default it's a comma, but this can be override by passing a separator variable. +> By default it is a comma, but this can be overridden by passing a separator variable. > > ```js > import { array } from '@storybook/addon-knobs'; @@ -287,7 +288,7 @@ const value = array(label, defaultValue, ',', groupId); ### select -Allows you to get a value from a select box from the user. +It allows you to get a value from a select box from the user. ```js import { select } from '@storybook/addon-knobs'; @@ -306,12 +307,12 @@ const groupId = 'GROUP-ID1'; const value = select(label, options, defaultValue, groupId); ``` -> You can also provide options as an array like this: `['red', 'blue', 'yellow']` +> You can also provide options as an array like this: `['red', 'blue', 'yellow']`. ### radio buttons -Allows you to get a value from a list of radio buttons from the user. +It allows you to get a value from a list of radio buttons from the user. ```js import { radios } from '@storybook/addon-knobs'; @@ -359,7 +360,7 @@ const value = options(label, valuesObj, defaultValue, optionsObj, groupId); ### files -Allows you to get a value from a file input from the user. +It allows you to get a value from a file input from the user. ```js import { files } from '@storybook/addon-knobs'; @@ -377,7 +378,7 @@ const value = files(label, accept, defaultValue, groupId); ### date -Allow you to get date (and time) from the user. +Allows you to get date (and time) from the user. ```js import { date } from '@storybook/addon-knobs'; @@ -389,7 +390,7 @@ const groupId = 'GROUP-ID1'; const value = date(label, defaultValue, groupId); ``` -> Note: the default value must not change - e.g., do not do `date('Label', new Date())` or `date('Label')` +> Note: the default value must not change - e.g., do not do `date('Label', new Date())` or `date('Label')`. The `date` knob returns the selected date as stringified Unix timestamp (e.g. `"1510913096516"`). If your component needs the date in a different form you can wrap the `date` function: @@ -403,7 +404,7 @@ function myDateKnob(name, defaultValue) { ### button -Allows you to include a button and associated handler. +It allows you to include a button and associated handler. ```js import { button } from '@storybook/addon-knobs'; @@ -415,8 +416,8 @@ const groupId = 'GROUP-ID1'; button(label, handler, groupId); ``` -Button knobs cause the story to re-render after the handler fires, you can prevent -this by having the handler return false. +Button knobs cause the story to re-render after the handler fires. +You can prevent this by having the handler return `false`. ### withKnobs options @@ -441,7 +442,7 @@ stories.add('story name', () => ..., { ## Typescript -If you are using typescript, make sure you have the type definitions installed for the following libs: +If you are using Typescript, make sure you have the type definitions installed for the following libs: - node - react diff --git a/addons/knobs/package.json b/addons/knobs/package.json index 253b0f5c8883..a96d48357b82 100644 --- a/addons/knobs/package.json +++ b/addons/knobs/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-knobs", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "Storybook Addon Prop Editor Component", "keywords": [ "addon", @@ -29,12 +29,12 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/api": "5.3.0-alpha.40", - "@storybook/client-api": "5.3.0-alpha.40", - "@storybook/components": "5.3.0-alpha.40", - "@storybook/core-events": "5.3.0-alpha.40", - "@storybook/theming": "5.3.0-alpha.40", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/api": "5.3.0-alpha.42", + "@storybook/client-api": "5.3.0-alpha.42", + "@storybook/components": "5.3.0-alpha.42", + "@storybook/core-events": "5.3.0-alpha.42", + "@storybook/theming": "5.3.0-alpha.42", "@types/react-color": "^3.0.1", "copy-to-clipboard": "^3.0.8", "core-js": "^3.0.1", diff --git a/addons/links/package.json b/addons/links/package.json index 610261ac2ee5..3c575c38d945 100644 --- a/addons/links/package.json +++ b/addons/links/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-links", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "Story Links addon for storybook", "keywords": [ "addon", @@ -29,10 +29,10 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/client-logger": "5.3.0-alpha.40", - "@storybook/core-events": "5.3.0-alpha.40", - "@storybook/router": "5.3.0-alpha.40", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/client-logger": "5.3.0-alpha.42", + "@storybook/core-events": "5.3.0-alpha.42", + "@storybook/router": "5.3.0-alpha.42", "core-js": "^3.0.1", "global": "^4.3.2", "prop-types": "^15.7.2", diff --git a/addons/notes/README.md b/addons/notes/README.md index 120448da5cd4..3debb6c863a4 100644 --- a/addons/notes/README.md +++ b/addons/notes/README.md @@ -95,12 +95,12 @@ storiesOf('Component', module).add('With Markdown', () => , { ## Giphy -When using Markdown, you can also embed gifs from Giphy into your Markdown. Currently, the value `gif` of the gif prop is used to search and return the first result returned by Giphy. +When using Markdown, you can also embed gifs from Giphy into your Markdown. Currently, the value `cheese` of the query prop is used to search and return the first result returned by Giphy. ```md # Title - + ``` ## Multiple Notes Sections diff --git a/addons/notes/package.json b/addons/notes/package.json index 827ba87ef400..8a7c69b54370 100644 --- a/addons/notes/package.json +++ b/addons/notes/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-notes", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "Write notes for your Storybook stories.", "keywords": [ "addon", @@ -30,13 +30,13 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/api": "5.3.0-alpha.40", - "@storybook/client-logger": "5.3.0-alpha.40", - "@storybook/components": "5.3.0-alpha.40", - "@storybook/core-events": "5.3.0-alpha.40", - "@storybook/router": "5.3.0-alpha.40", - "@storybook/theming": "5.3.0-alpha.40", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/api": "5.3.0-alpha.42", + "@storybook/client-logger": "5.3.0-alpha.42", + "@storybook/components": "5.3.0-alpha.42", + "@storybook/core-events": "5.3.0-alpha.42", + "@storybook/router": "5.3.0-alpha.42", + "@storybook/theming": "5.3.0-alpha.42", "core-js": "^3.0.1", "global": "^4.3.2", "markdown-to-jsx": "^6.10.3", diff --git a/addons/ondevice-actions/package.json b/addons/ondevice-actions/package.json index ac5b337c3412..6a09489e5638 100644 --- a/addons/ondevice-actions/package.json +++ b/addons/ondevice-actions/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-ondevice-actions", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "Action Logger addon for react-native storybook", "keywords": [ "storybook" @@ -26,13 +26,13 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/core-events": "5.3.0-alpha.40", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/core-events": "5.3.0-alpha.42", "core-js": "^3.0.1", "fast-deep-equal": "^2.0.1" }, "devDependencies": { - "@storybook/addon-actions": "5.3.0-alpha.40" + "@storybook/addon-actions": "5.3.0-alpha.42" }, "peerDependencies": { "@storybook/addon-actions": "*", diff --git a/addons/ondevice-backgrounds/package.json b/addons/ondevice-backgrounds/package.json index 3c1c499f630b..3d60379232a7 100644 --- a/addons/ondevice-backgrounds/package.json +++ b/addons/ondevice-backgrounds/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-ondevice-backgrounds", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "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.0-alpha.40", - "@storybook/api": "5.3.0-alpha.40", - "@storybook/client-api": "5.3.0-alpha.40", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/api": "5.3.0-alpha.42", + "@storybook/client-api": "5.3.0-alpha.42", "core-js": "^3.0.1", "prop-types": "^15.7.2" }, diff --git a/addons/ondevice-knobs/package.json b/addons/ondevice-knobs/package.json index 6abe47ed847d..3030a7b277f8 100644 --- a/addons/ondevice-knobs/package.json +++ b/addons/ondevice-knobs/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-ondevice-knobs", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "Display storybook story knobs on your deviced.", "keywords": [ "addon", @@ -27,8 +27,8 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/core-events": "5.3.0-alpha.40", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/core-events": "5.3.0-alpha.42", "core-js": "^3.0.1", "deep-equal": "^1.0.1", "prop-types": "^15.7.2", diff --git a/addons/ondevice-notes/package.json b/addons/ondevice-notes/package.json index 426785e21d46..9f0779c2b7a9 100644 --- a/addons/ondevice-notes/package.json +++ b/addons/ondevice-notes/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-ondevice-notes", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "Write notes for your react-native Storybook stories.", "keywords": [ "addon", @@ -27,11 +27,11 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/api": "5.3.0-alpha.40", - "@storybook/client-api": "5.3.0-alpha.40", - "@storybook/client-logger": "5.3.0-alpha.40", - "@storybook/core-events": "5.3.0-alpha.40", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/api": "5.3.0-alpha.42", + "@storybook/client-api": "5.3.0-alpha.42", + "@storybook/client-logger": "5.3.0-alpha.42", + "@storybook/core-events": "5.3.0-alpha.42", "core-js": "^3.0.1", "prop-types": "^15.7.2", "react-native-simple-markdown": "^1.1.0" diff --git a/addons/options/package.json b/addons/options/package.json index 55fd8cb1944b..6484c8035f10 100644 --- a/addons/options/package.json +++ b/addons/options/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-options", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "Options addon for storybook", "keywords": [ "addon", @@ -29,7 +29,7 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.3.0-alpha.40", + "@storybook/addons": "5.3.0-alpha.42", "core-js": "^3.0.1", "util-deprecate": "^1.0.2" }, diff --git a/addons/queryparams/package.json b/addons/queryparams/package.json index 1abe1ba8a6ee..a158a8107b60 100644 --- a/addons/queryparams/package.json +++ b/addons/queryparams/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-queryparams", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "parameter addon for storybook", "keywords": [ "addon", @@ -30,12 +30,12 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/api": "5.3.0-alpha.40", - "@storybook/client-logger": "5.3.0-alpha.40", - "@storybook/components": "5.3.0-alpha.40", - "@storybook/core-events": "5.3.0-alpha.40", - "@storybook/theming": "5.3.0-alpha.40", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/api": "5.3.0-alpha.42", + "@storybook/client-logger": "5.3.0-alpha.42", + "@storybook/components": "5.3.0-alpha.42", + "@storybook/core-events": "5.3.0-alpha.42", + "@storybook/theming": "5.3.0-alpha.42", "core-js": "^3.0.1", "global": "^4.3.2", "qs": "^6.6.0", diff --git a/addons/storyshots/storyshots-core/package.json b/addons/storyshots/storyshots-core/package.json index 77fd46779448..ed11d0855b63 100644 --- a/addons/storyshots/storyshots-core/package.json +++ b/addons/storyshots/storyshots-core/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-storyshots", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "StoryShots is a Jest Snapshot Testing Addon for Storybook.", "keywords": [ "addon", @@ -33,8 +33,8 @@ }, "dependencies": { "@jest/transform": "^24.9.0", - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/client-api": "5.3.0-alpha.40", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/client-api": "5.3.0-alpha.42", "@types/glob": "^7.1.1", "@types/jest": "^24.0.16", "@types/jest-specific-snapshot": "^0.5.3", @@ -47,8 +47,8 @@ "ts-dedent": "^1.1.0" }, "devDependencies": { - "@storybook/addon-docs": "5.3.0-alpha.40", - "@storybook/react": "5.3.0-alpha.40", + "@storybook/addon-docs": "5.3.0-alpha.42", + "@storybook/react": "5.3.0-alpha.42", "babel-loader": "^8.0.6", "enzyme-to-json": "^3.4.1", "jest-emotion": "^10.0.17", diff --git a/addons/storyshots/storyshots-puppeteer/package.json b/addons/storyshots/storyshots-puppeteer/package.json index 9dc2fc488174..339c16385cb7 100644 --- a/addons/storyshots/storyshots-puppeteer/package.json +++ b/addons/storyshots/storyshots-puppeteer/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-storyshots-puppeteer", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "Image snapshots addition to StoryShots based on puppeteer", "keywords": [ "addon", @@ -29,8 +29,8 @@ "prepare": "node ../../../scripts/prepare.js" }, "dependencies": { - "@storybook/node-logger": "5.3.0-alpha.40", - "@storybook/router": "5.3.0-alpha.40", + "@storybook/node-logger": "5.3.0-alpha.42", + "@storybook/router": "5.3.0-alpha.42", "@types/jest-image-snapshot": "^2.8.0", "@types/puppeteer-core": "^1.9.0", "core-js": "^3.0.1", diff --git a/addons/storysource/package.json b/addons/storysource/package.json index 40148ac22895..c6b0bab5cc9b 100644 --- a/addons/storysource/package.json +++ b/addons/storysource/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-storysource", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "Stories addon for storybook", "keywords": [ "addon", @@ -28,11 +28,11 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/components": "5.3.0-alpha.40", - "@storybook/router": "5.3.0-alpha.40", - "@storybook/source-loader": "5.3.0-alpha.40", - "@storybook/theming": "5.3.0-alpha.40", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/components": "5.3.0-alpha.42", + "@storybook/router": "5.3.0-alpha.42", + "@storybook/source-loader": "5.3.0-alpha.42", + "@storybook/theming": "5.3.0-alpha.42", "core-js": "^3.0.1", "estraverse": "^4.2.0", "loader-utils": "^1.2.3", diff --git a/addons/viewport/package.json b/addons/viewport/package.json index 85845fee34aa..076a52a70183 100644 --- a/addons/viewport/package.json +++ b/addons/viewport/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-viewport", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "Storybook addon to change the viewport size to mobile", "keywords": [ "addon", @@ -28,12 +28,12 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/api": "5.3.0-alpha.40", - "@storybook/client-logger": "5.3.0-alpha.40", - "@storybook/components": "5.3.0-alpha.40", - "@storybook/core-events": "5.3.0-alpha.40", - "@storybook/theming": "5.3.0-alpha.40", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/api": "5.3.0-alpha.42", + "@storybook/client-logger": "5.3.0-alpha.42", + "@storybook/components": "5.3.0-alpha.42", + "@storybook/core-events": "5.3.0-alpha.42", + "@storybook/theming": "5.3.0-alpha.42", "core-js": "^3.0.1", "global": "^4.3.2", "memoizerific": "^1.11.3", diff --git a/app/angular/package.json b/app/angular/package.json index 8dc897a2a8ea..dbaadc75907b 100644 --- a/app/angular/package.json +++ b/app/angular/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/angular", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "Storybook for Angular: Develop Angular Components in isolation with Hot Reloading.", "keywords": [ "storybook" @@ -33,9 +33,9 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/core": "5.3.0-alpha.40", - "@storybook/node-logger": "5.3.0-alpha.40", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/core": "5.3.0-alpha.42", + "@storybook/node-logger": "5.3.0-alpha.42", "core-js": "^3.0.1", "fork-ts-checker-webpack-plugin": "^3.0.1", "global": "^4.3.2", diff --git a/app/ember/package.json b/app/ember/package.json index b46b513b6b28..caf235045895 100644 --- a/app/ember/package.json +++ b/app/ember/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/ember", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "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.0-alpha.40", + "@storybook/core": "5.3.0-alpha.42", "core-js": "^3.0.1", "global": "^4.3.2", "regenerator-runtime": "^0.13.3", diff --git a/app/html/package.json b/app/html/package.json index 92ae21ebad78..8d06b0cee415 100644 --- a/app/html/package.json +++ b/app/html/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/html", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "Storybook for HTML: View HTML snippets in isolation with Hot Reloading.", "keywords": [ "storybook" @@ -33,8 +33,8 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/core": "5.3.0-alpha.40", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/core": "5.3.0-alpha.42", "@types/webpack-env": "^1.13.9", "core-js": "^3.0.1", "global": "^4.3.2", diff --git a/app/marko/package.json b/app/marko/package.json index 38bd4a5fe787..2fa80b7422bd 100644 --- a/app/marko/package.json +++ b/app/marko/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/marko", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "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.0-alpha.40", - "@storybook/core": "5.3.0-alpha.40", + "@storybook/client-logger": "5.3.0-alpha.42", + "@storybook/core": "5.3.0-alpha.42", "core-js": "^3.0.1", "global": "^4.3.2", "regenerator-runtime": "^0.13.3", diff --git a/app/mithril/package.json b/app/mithril/package.json index 594a0682249f..f80735ce09de 100644 --- a/app/mithril/package.json +++ b/app/mithril/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/mithril", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "Storybook for Mithril: Develop Mithril Component in isolation.", "keywords": [ "storybook" @@ -35,8 +35,8 @@ "dependencies": { "@babel/core": "^7.6.2", "@babel/plugin-transform-react-jsx": "^7.3.0", - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/core": "5.3.0-alpha.40", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/core": "5.3.0-alpha.42", "@types/mithril": "^2.0.0", "core-js": "^3.0.1", "global": "^4.3.2", diff --git a/app/polymer/package.json b/app/polymer/package.json index cc79bc47df28..569b9fb3855c 100644 --- a/app/polymer/package.json +++ b/app/polymer/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/polymer", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "Storybook for Polymer: Develop Polymer components in isolation with Hot Reloading.", "keywords": [ "storybook" @@ -32,7 +32,7 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/core": "5.3.0-alpha.40", + "@storybook/core": "5.3.0-alpha.42", "@webcomponents/webcomponentsjs": "^1.2.0", "core-js": "^3.0.1", "global": "^4.3.2", diff --git a/app/preact/package.json b/app/preact/package.json index 9cdc1160f0b9..18575b5af254 100644 --- a/app/preact/package.json +++ b/app/preact/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/preact", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "Storybook for Preact: Develop Preact Component in isolation.", "keywords": [ "storybook" @@ -34,8 +34,8 @@ }, "dependencies": { "@babel/plugin-transform-react-jsx": "^7.3.0", - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/core": "5.3.0-alpha.40", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/core": "5.3.0-alpha.42", "@types/webpack-env": "^1.13.9", "core-js": "^3.0.1", "global": "^4.3.2", diff --git a/app/rax/package.json b/app/rax/package.json index 76808c08a2e5..b3ed48e515b7 100644 --- a/app/rax/package.json +++ b/app/rax/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/rax", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "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.0-alpha.40", + "@storybook/core": "5.3.0-alpha.42", "babel-preset-rax": "^1.0.0-beta.0", "core-js": "^3.0.1", "driver-dom": "^2.0.0", diff --git a/app/react-native-server/package.json b/app/react-native-server/package.json index 5eccab0fe8ab..b505471dc24f 100644 --- a/app/react-native-server/package.json +++ b/app/react-native-server/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/react-native-server", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "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.0-alpha.40", - "@storybook/api": "5.3.0-alpha.40", - "@storybook/channel-websocket": "5.3.0-alpha.40", - "@storybook/core": "5.3.0-alpha.40", - "@storybook/core-events": "5.3.0-alpha.40", - "@storybook/ui": "5.3.0-alpha.40", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/api": "5.3.0-alpha.42", + "@storybook/channel-websocket": "5.3.0-alpha.42", + "@storybook/core": "5.3.0-alpha.42", + "@storybook/core-events": "5.3.0-alpha.42", + "@storybook/ui": "5.3.0-alpha.42", "commander": "^3.0.2", "core-js": "^3.0.1", "global": "^4.3.2", diff --git a/app/react-native/package.json b/app/react-native/package.json index 7af3069c9dad..5d0bf6e3e369 100644 --- a/app/react-native/package.json +++ b/app/react-native/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/react-native", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "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.0-alpha.40", - "@storybook/channel-websocket": "5.3.0-alpha.40", - "@storybook/channels": "5.3.0-alpha.40", - "@storybook/client-api": "5.3.0-alpha.40", - "@storybook/core-events": "5.3.0-alpha.40", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/channel-websocket": "5.3.0-alpha.42", + "@storybook/channels": "5.3.0-alpha.42", + "@storybook/client-api": "5.3.0-alpha.42", + "@storybook/core-events": "5.3.0-alpha.42", "core-js": "^3.0.1", "emotion-theming": "^10.0.19", "react-native-swipe-gestures": "^1.0.4" diff --git a/app/react/package.json b/app/react/package.json index bf131426241d..bae229a9a820 100644 --- a/app/react/package.json +++ b/app/react/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/react", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "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.2.0", "@babel/preset-flow": "^7.0.0", "@babel/preset-react": "^7.0.0", - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/core": "5.3.0-alpha.40", - "@storybook/node-logger": "5.3.0-alpha.40", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/core": "5.3.0-alpha.42", + "@storybook/node-logger": "5.3.0-alpha.42", "@svgr/webpack": "^4.0.3", "@types/webpack-env": "^1.13.7", "babel-plugin-add-react-displayname": "^0.0.5", diff --git a/app/riot/package.json b/app/riot/package.json index 7c84102dfc88..25b94ec0396f 100644 --- a/app/riot/package.json +++ b/app/riot/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/riot", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "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.0-alpha.40", + "@storybook/core": "5.3.0-alpha.42", "core-js": "^3.0.1", "global": "^4.3.2", "raw-loader": "^3.1.0", diff --git a/app/svelte/package.json b/app/svelte/package.json index 58c5fee2679a..ddd610fbb9b8 100644 --- a/app/svelte/package.json +++ b/app/svelte/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/svelte", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "Storybook for Svelte: Develop Svelte Component in isolation with Hot Reloading.", "keywords": [ "storybook" @@ -34,7 +34,7 @@ }, "dependencies": { "@storybook/addons": "5.3.0-alpha.41", - "@storybook/core": "5.3.0-alpha.40", + "@storybook/core": "5.3.0-alpha.42", "core-js": "^3.0.1", "global": "^4.3.2", "regenerator-runtime": "^0.13.3", diff --git a/app/vue/package.json b/app/vue/package.json index 841a40d0cd19..8f45fd0fabd9 100644 --- a/app/vue/package.json +++ b/app/vue/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/vue", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "Storybook for Vue: Develop Vue Component in isolation with Hot Reloading.", "keywords": [ "storybook" @@ -33,8 +33,8 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/core": "5.3.0-alpha.40", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/core": "5.3.0-alpha.42", "@types/webpack-env": "^1.13.9", "core-js": "^3.0.1", "global": "^4.3.2", diff --git a/app/web-components/package.json b/app/web-components/package.json index 74763a0006db..39cca6960b91 100644 --- a/app/web-components/package.json +++ b/app/web-components/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/web-components", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "Storybook for web-components: View web components snippets in isolation with Hot Reloading.", "keywords": [ "lit-html", @@ -37,8 +37,8 @@ "dependencies": { "@babel/plugin-syntax-dynamic-import": "^7.2.0", "@babel/plugin-syntax-import-meta": "^7.2.0", - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/core": "5.3.0-alpha.40", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/core": "5.3.0-alpha.42", "@types/webpack-env": "^1.13.9", "babel-plugin-bundled-import-meta": "^0.3.1", "core-js": "^3.0.1", diff --git a/dev-kits/addon-decorator/package.json b/dev-kits/addon-decorator/package.json index 3eedd8ba6074..6cd6c76ba65e 100644 --- a/dev-kits/addon-decorator/package.json +++ b/dev-kits/addon-decorator/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-decorator", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "decorator addon for storybook", "keywords": [ "addon", @@ -24,8 +24,8 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/client-api": "5.3.0-alpha.40", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/client-api": "5.3.0-alpha.42", "core-js": "^3.0.1", "global": "^4.4.0" }, diff --git a/dev-kits/addon-parameter/package.json b/dev-kits/addon-parameter/package.json index 070af9cc7366..6f1c211825a6 100644 --- a/dev-kits/addon-parameter/package.json +++ b/dev-kits/addon-parameter/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-parameter", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "parameter addon for storybook", "keywords": [ "addon", @@ -24,12 +24,12 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/api": "5.3.0-alpha.40", - "@storybook/client-logger": "5.3.0-alpha.40", - "@storybook/components": "5.3.0-alpha.40", - "@storybook/core-events": "5.3.0-alpha.40", - "@storybook/theming": "5.3.0-alpha.40", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/api": "5.3.0-alpha.42", + "@storybook/client-logger": "5.3.0-alpha.42", + "@storybook/components": "5.3.0-alpha.42", + "@storybook/core-events": "5.3.0-alpha.42", + "@storybook/theming": "5.3.0-alpha.42", "core-js": "^3.0.1", "global": "^4.3.2", "react": "^16.8.3", diff --git a/dev-kits/addon-preview-wrapper/README.md b/dev-kits/addon-preview-wrapper/README.md new file mode 100644 index 000000000000..212ad2a49cac --- /dev/null +++ b/dev-kits/addon-preview-wrapper/README.md @@ -0,0 +1,8 @@ +# example addon: preview wrapper + +This addon adds a wrapper around the preview iframe + +This can be useful to display some information around the story preview + +Uses include: +- showing a edit this page link to the story diff --git a/dev-kits/addon-preview-wrapper/package.json b/dev-kits/addon-preview-wrapper/package.json new file mode 100644 index 000000000000..d59d7009ee86 --- /dev/null +++ b/dev-kits/addon-preview-wrapper/package.json @@ -0,0 +1,33 @@ +{ + "name": "@storybook/addon-preview-wrapper", + "version": "5.3.0-alpha.42", + "description": "preview wrapper addon for storybook", + "keywords": [ + "addon", + "devkit", + "storybook", + "types" + ], + "homepage": "https://github.com/storybookjs/storybook#readme", + "bugs": { + "url": "https://github.com/storybookjs/storybook/issues" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/storybookjs/storybook.git", + "directory": "dev-kit/addon-preview-wrappe" + }, + "license": "MIT", + "main": "dist/index.js", + "types": "dist/index.d.ts", + "scripts": { + "prepare": "node ../../scripts/prepare.js" + }, + "dependencies": { + "@storybook/addons": "5.3.0-alpha.42", + "react": "^16.8.3" + }, + "publishConfig": { + "access": "public" + } +} diff --git a/dev-kits/addon-preview-wrapper/register.js b/dev-kits/addon-preview-wrapper/register.js new file mode 100644 index 000000000000..cc38cb06f1f2 --- /dev/null +++ b/dev-kits/addon-preview-wrapper/register.js @@ -0,0 +1 @@ +require('./dist/register'); diff --git a/dev-kits/addon-preview-wrapper/src/constants.ts b/dev-kits/addon-preview-wrapper/src/constants.ts new file mode 100755 index 000000000000..6120231ce3e7 --- /dev/null +++ b/dev-kits/addon-preview-wrapper/src/constants.ts @@ -0,0 +1 @@ +export const ADDON_ID = 'storybook/preview-wrapper'; diff --git a/dev-kits/addon-preview-wrapper/src/register.tsx b/dev-kits/addon-preview-wrapper/src/register.tsx new file mode 100644 index 000000000000..6fe81015ff16 --- /dev/null +++ b/dev-kits/addon-preview-wrapper/src/register.tsx @@ -0,0 +1,20 @@ +import React, { FunctionComponent } from 'react'; +import { addons, types } from '@storybook/addons'; +import { ADDON_ID } from './constants'; + +const PreviewWrapper: FunctionComponent<{}> = p => ( +
+ + {p.children} +
+); + +addons.register(ADDON_ID, () => { + addons.add(ADDON_ID, { + title: 'edit page', + type: types.PREVIEW, + render: PreviewWrapper as any, + }); +}); diff --git a/dev-kits/addon-preview-wrapper/tsconfig.json b/dev-kits/addon-preview-wrapper/tsconfig.json new file mode 100644 index 000000000000..8876bb6737a1 --- /dev/null +++ b/dev-kits/addon-preview-wrapper/tsconfig.json @@ -0,0 +1,13 @@ +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "rootDir": "./src", + "types": ["webpack-env"] + }, + "include": [ + "src/**/*" + ], + "exclude": [ + "src/__tests__/**/*" + ] +} diff --git a/dev-kits/addon-roundtrip/package.json b/dev-kits/addon-roundtrip/package.json index 1b7d196e78a0..b1af896b8bb5 100644 --- a/dev-kits/addon-roundtrip/package.json +++ b/dev-kits/addon-roundtrip/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-roundtrip", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "roundtrip addon for storybook", "keywords": [ "addon", @@ -24,13 +24,13 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/api": "5.3.0-alpha.40", - "@storybook/client-api": "5.3.0-alpha.40", - "@storybook/client-logger": "5.3.0-alpha.40", - "@storybook/components": "5.3.0-alpha.40", - "@storybook/core-events": "5.3.0-alpha.40", - "@storybook/theming": "5.3.0-alpha.40", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/api": "5.3.0-alpha.42", + "@storybook/client-api": "5.3.0-alpha.42", + "@storybook/client-logger": "5.3.0-alpha.42", + "@storybook/components": "5.3.0-alpha.42", + "@storybook/core-events": "5.3.0-alpha.42", + "@storybook/theming": "5.3.0-alpha.42", "core-js": "^3.0.1", "global": "^4.3.2", "react": "^16.8.3", diff --git a/docs/src/pages/configurations/typescript-config/index.md b/docs/src/pages/configurations/typescript-config/index.md index a0871f04274b..cb16b460ac8b 100644 --- a/docs/src/pages/configurations/typescript-config/index.md +++ b/docs/src/pages/configurations/typescript-config/index.md @@ -13,7 +13,9 @@ If you're using Create React App (CRA) and have configured it to work with TS, y If you're not using CRA, the next best thing is to use the [Typescript preset](https://github.com/storybookjs/presets/tree/master/packages/preset-typescript), which configures `ts-loader` under the hood. -If you need more control than the Typescript preset offers, read on for manual configuration instructions. +If you need more control than the TypeScript preset offers, read on for manual configuration instructions. + +> If using TypeScript, some addons require features available in TS version 3.4+. ## Setting up TypeScript with awesome-typescript-loader diff --git a/docs/src/versions/next.json b/docs/src/versions/next.json index 2e195e764463..c0ac49b2cebe 100644 --- a/docs/src/versions/next.json +++ b/docs/src/versions/next.json @@ -1 +1 @@ -{"version":"5.3.0-alpha.40","info":{"plain":"### Features\n\n* TriConfig configuration refactor ([#8597](https://github.com/storybookjs/storybook/pull/8597))\n* Presets: Ability to combine presets into another preset ([#6828](https://github.com/storybookjs/storybook/pull/6828))\n\n### Bug Fixes\n\n* Theming: Fix invisible hr styles in typography ([#8659](https://github.com/storybookjs/storybook/pull/8659))\n\n### Maintenance\n\n* Build: caching to github workflows ([#8724](https://github.com/storybookjs/storybook/pull/8724))"}} \ No newline at end of file +{"version":"5.3.0-alpha.42","info":{"plain":"### Bug Fixes\n\n* Addon-info: Remove jsnext:main ([#8764](https://github.com/storybookjs/storybook/pull/8764))\n* Addon-info: Fix \"The prop 'children' is marked as required in 'Td'\" ([#8745](https://github.com/storybookjs/storybook/pull/8745))\n\n### Maintenance\n\n* React-native: Update compilation target - it was compiled for old browsers ([#8698](https://github.com/storybookjs/storybook/pull/8698))"}} \ No newline at end of file diff --git a/examples-native/crna-kitchen-sink/package.json b/examples-native/crna-kitchen-sink/package.json index 1024211c6456..994e3a660d32 100644 --- a/examples-native/crna-kitchen-sink/package.json +++ b/examples-native/crna-kitchen-sink/package.json @@ -1,6 +1,6 @@ { "name": "crna-kitchen-sink", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "private": true, "main": "node_modules/expo/AppEntry.js", "workspaces": { @@ -31,15 +31,15 @@ "devDependencies": { "@babel/core": "^7.2.2", "@babel/plugin-transform-react-jsx-source": "^7.2.0", - "@storybook/addon-actions": "5.3.0-alpha.40", - "@storybook/addon-knobs": "5.3.0-alpha.40", - "@storybook/addon-links": "5.3.0-alpha.40", - "@storybook/addon-ondevice-actions": "5.3.0-alpha.40", - "@storybook/addon-ondevice-backgrounds": "5.3.0-alpha.40", - "@storybook/addon-ondevice-knobs": "5.3.0-alpha.40", - "@storybook/addon-ondevice-notes": "5.3.0-alpha.40", - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/react-native": "5.3.0-alpha.40", + "@storybook/addon-actions": "5.3.0-alpha.42", + "@storybook/addon-knobs": "5.3.0-alpha.42", + "@storybook/addon-links": "5.3.0-alpha.42", + "@storybook/addon-ondevice-actions": "5.3.0-alpha.42", + "@storybook/addon-ondevice-backgrounds": "5.3.0-alpha.42", + "@storybook/addon-ondevice-knobs": "5.3.0-alpha.42", + "@storybook/addon-ondevice-notes": "5.3.0-alpha.42", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/react-native": "5.3.0-alpha.42", "babel-loader": "^8.0.4", "babel-plugin-module-resolver": "^3.2.0", "babel-preset-expo": "^7.0.0", diff --git a/examples/angular-cli/package.json b/examples/angular-cli/package.json index a2a0052cfee0..369dfb4a8b8a 100644 --- a/examples/angular-cli/package.json +++ b/examples/angular-cli/package.json @@ -1,6 +1,6 @@ { "name": "angular-cli", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "private": true, "license": "MIT", "scripts": { @@ -37,21 +37,21 @@ "@angular/cli": "^8.3.6", "@angular/compiler-cli": "^8.2.8", "@compodoc/compodoc": "^1.1.11", - "@storybook/addon-a11y": "5.3.0-alpha.40", - "@storybook/addon-actions": "5.3.0-alpha.40", - "@storybook/addon-backgrounds": "5.3.0-alpha.40", - "@storybook/addon-centered": "5.3.0-alpha.40", - "@storybook/addon-docs": "5.3.0-alpha.40", - "@storybook/addon-jest": "5.3.0-alpha.40", - "@storybook/addon-knobs": "5.3.0-alpha.40", - "@storybook/addon-links": "5.3.0-alpha.40", - "@storybook/addon-notes": "5.3.0-alpha.40", - "@storybook/addon-options": "5.3.0-alpha.40", - "@storybook/addon-storyshots": "5.3.0-alpha.40", - "@storybook/addon-storysource": "5.3.0-alpha.40", - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/angular": "5.3.0-alpha.40", - "@storybook/source-loader": "5.3.0-alpha.40", + "@storybook/addon-a11y": "5.3.0-alpha.42", + "@storybook/addon-actions": "5.3.0-alpha.42", + "@storybook/addon-backgrounds": "5.3.0-alpha.42", + "@storybook/addon-centered": "5.3.0-alpha.42", + "@storybook/addon-docs": "5.3.0-alpha.42", + "@storybook/addon-jest": "5.3.0-alpha.42", + "@storybook/addon-knobs": "5.3.0-alpha.42", + "@storybook/addon-links": "5.3.0-alpha.42", + "@storybook/addon-notes": "5.3.0-alpha.42", + "@storybook/addon-options": "5.3.0-alpha.42", + "@storybook/addon-storyshots": "5.3.0-alpha.42", + "@storybook/addon-storysource": "5.3.0-alpha.42", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/angular": "5.3.0-alpha.42", + "@storybook/source-loader": "5.3.0-alpha.42", "@types/core-js": "^2.5.0", "@types/jest": "^24.0.11", "@types/node": "^12.7.9", diff --git a/examples/cra-kitchen-sink/package.json b/examples/cra-kitchen-sink/package.json index 0fcd7337f8cc..f2d353ad96dd 100644 --- a/examples/cra-kitchen-sink/package.json +++ b/examples/cra-kitchen-sink/package.json @@ -1,6 +1,6 @@ { "name": "cra-kitchen-sink", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "private": true, "scripts": { "build": "react-scripts build", @@ -18,23 +18,23 @@ "react-lifecycles-compat": "^3.0.4" }, "devDependencies": { - "@storybook/addon-a11y": "5.3.0-alpha.40", - "@storybook/addon-actions": "5.3.0-alpha.40", - "@storybook/addon-backgrounds": "5.3.0-alpha.40", - "@storybook/addon-centered": "5.3.0-alpha.40", - "@storybook/addon-docs": "5.3.0-alpha.40", - "@storybook/addon-events": "5.3.0-alpha.40", - "@storybook/addon-info": "5.3.0-alpha.40", - "@storybook/addon-jest": "5.3.0-alpha.40", - "@storybook/addon-knobs": "5.3.0-alpha.40", - "@storybook/addon-links": "5.3.0-alpha.40", - "@storybook/addon-notes": "5.3.0-alpha.40", - "@storybook/addon-options": "5.3.0-alpha.40", - "@storybook/addon-storyshots": "5.3.0-alpha.40", - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/client-logger": "5.3.0-alpha.40", - "@storybook/react": "5.3.0-alpha.40", - "@storybook/theming": "5.3.0-alpha.40", + "@storybook/addon-a11y": "5.3.0-alpha.42", + "@storybook/addon-actions": "5.3.0-alpha.42", + "@storybook/addon-backgrounds": "5.3.0-alpha.42", + "@storybook/addon-centered": "5.3.0-alpha.42", + "@storybook/addon-docs": "5.3.0-alpha.42", + "@storybook/addon-events": "5.3.0-alpha.42", + "@storybook/addon-info": "5.3.0-alpha.42", + "@storybook/addon-jest": "5.3.0-alpha.42", + "@storybook/addon-knobs": "5.3.0-alpha.42", + "@storybook/addon-links": "5.3.0-alpha.42", + "@storybook/addon-notes": "5.3.0-alpha.42", + "@storybook/addon-options": "5.3.0-alpha.42", + "@storybook/addon-storyshots": "5.3.0-alpha.42", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/client-logger": "5.3.0-alpha.42", + "@storybook/react": "5.3.0-alpha.42", + "@storybook/theming": "5.3.0-alpha.42", "react-scripts": "^3.0.1" } } diff --git a/examples/cra-react15/package.json b/examples/cra-react15/package.json index 03af417c72cf..d9ba788bc79f 100644 --- a/examples/cra-react15/package.json +++ b/examples/cra-react15/package.json @@ -1,6 +1,6 @@ { "name": "cra-react15", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "private": true, "scripts": { "build": "react-scripts build", @@ -18,10 +18,10 @@ "react-scripts": "3.0.1" }, "devDependencies": { - "@storybook/addon-actions": "5.3.0-alpha.40", - "@storybook/addon-links": "5.3.0-alpha.40", - "@storybook/react": "5.3.0-alpha.40", - "@storybook/theming": "5.3.0-alpha.40", + "@storybook/addon-actions": "5.3.0-alpha.42", + "@storybook/addon-links": "5.3.0-alpha.42", + "@storybook/react": "5.3.0-alpha.42", + "@storybook/theming": "5.3.0-alpha.42", "babel-core": "6", "babel-runtime": "6" } diff --git a/examples/cra-ts-kitchen-sink/package.json b/examples/cra-ts-kitchen-sink/package.json index 25189dcef639..bb34da4f0858 100644 --- a/examples/cra-ts-kitchen-sink/package.json +++ b/examples/cra-ts-kitchen-sink/package.json @@ -1,6 +1,6 @@ { "name": "cra-ts-kitchen-sink", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "private": true, "scripts": { "build": "react-scripts build", @@ -34,15 +34,15 @@ "typescript": "3.6.4" }, "devDependencies": { - "@storybook/addon-a11y": "5.3.0-alpha.40", - "@storybook/addon-actions": "5.3.0-alpha.40", - "@storybook/addon-info": "5.3.0-alpha.40", - "@storybook/addon-knobs": "5.3.0-alpha.40", - "@storybook/addon-links": "5.3.0-alpha.40", - "@storybook/addon-options": "5.3.0-alpha.40", - "@storybook/addons": "5.3.0-alpha.40", + "@storybook/addon-a11y": "5.3.0-alpha.42", + "@storybook/addon-actions": "5.3.0-alpha.42", + "@storybook/addon-info": "5.3.0-alpha.42", + "@storybook/addon-knobs": "5.3.0-alpha.42", + "@storybook/addon-links": "5.3.0-alpha.42", + "@storybook/addon-options": "5.3.0-alpha.42", + "@storybook/addons": "5.3.0-alpha.42", "@storybook/preset-create-react-app": "^1.2.0", - "@storybook/react": "5.3.0-alpha.40", + "@storybook/react": "5.3.0-alpha.42", "@types/enzyme": "^3.9.0", "@types/react": "^16.8.14", "@types/react-dom": "^16.8.2", diff --git a/examples/dev-kits/addons.js b/examples/dev-kits/addons.js index eb60732417bb..25fb6ff0e5d6 100644 --- a/examples/dev-kits/addons.js +++ b/examples/dev-kits/addons.js @@ -1,5 +1,6 @@ import '@storybook/addon-roundtrip/register'; import '@storybook/addon-parameter/register'; +import '@storybook/addon-preview-wrapper/register'; import { addons } from '@storybook/addons'; import { themes } from '@storybook/theming'; diff --git a/examples/dev-kits/package.json b/examples/dev-kits/package.json index 6160f6fb561b..f74654203674 100644 --- a/examples/dev-kits/package.json +++ b/examples/dev-kits/package.json @@ -1,21 +1,22 @@ { "name": "@storybook/example-devkits", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "private": true, "scripts": { "build-storybook": "build-storybook -c ./", "storybook": "start-storybook -p 9011 -c ./" }, "devDependencies": { - "@storybook/addon-decorator": "5.3.0-alpha.40", - "@storybook/addon-parameter": "5.3.0-alpha.40", - "@storybook/addon-roundtrip": "5.3.0-alpha.40", - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/components": "5.3.0-alpha.40", - "@storybook/core-events": "5.3.0-alpha.40", - "@storybook/node-logger": "5.3.0-alpha.40", - "@storybook/react": "5.3.0-alpha.40", - "@storybook/theming": "5.3.0-alpha.40", + "@storybook/addon-decorator": "5.3.0-alpha.42", + "@storybook/addon-parameter": "5.3.0-alpha.42", + "@storybook/addon-preview-wrapper": "5.3.0-alpha.42", + "@storybook/addon-roundtrip": "5.3.0-alpha.42", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/components": "5.3.0-alpha.42", + "@storybook/core-events": "5.3.0-alpha.42", + "@storybook/node-logger": "5.3.0-alpha.42", + "@storybook/react": "5.3.0-alpha.42", + "@storybook/theming": "5.3.0-alpha.42", "cors": "^2.8.5", "cross-env": "^6.0.3", "enzyme-to-json": "^3.4.1", diff --git a/examples/ember-cli/package.json b/examples/ember-cli/package.json index ee8cffb062d4..232e0247a4ff 100644 --- a/examples/ember-cli/package.json +++ b/examples/ember-cli/package.json @@ -1,6 +1,6 @@ { "name": "ember-example", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "private": true, "scripts": { "build": "ember build", @@ -15,19 +15,19 @@ }, "devDependencies": { "@babel/core": "^7.3.4", - "@storybook/addon-a11y": "5.3.0-alpha.40", - "@storybook/addon-actions": "5.3.0-alpha.40", - "@storybook/addon-backgrounds": "5.3.0-alpha.40", - "@storybook/addon-centered": "5.3.0-alpha.40", - "@storybook/addon-knobs": "5.3.0-alpha.40", - "@storybook/addon-links": "5.3.0-alpha.40", - "@storybook/addon-notes": "5.3.0-alpha.40", - "@storybook/addon-options": "5.3.0-alpha.40", - "@storybook/addon-storysource": "5.3.0-alpha.40", - "@storybook/addon-viewport": "5.3.0-alpha.40", - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/ember": "5.3.0-alpha.40", - "@storybook/source-loader": "5.3.0-alpha.40", + "@storybook/addon-a11y": "5.3.0-alpha.42", + "@storybook/addon-actions": "5.3.0-alpha.42", + "@storybook/addon-backgrounds": "5.3.0-alpha.42", + "@storybook/addon-centered": "5.3.0-alpha.42", + "@storybook/addon-knobs": "5.3.0-alpha.42", + "@storybook/addon-links": "5.3.0-alpha.42", + "@storybook/addon-notes": "5.3.0-alpha.42", + "@storybook/addon-options": "5.3.0-alpha.42", + "@storybook/addon-storysource": "5.3.0-alpha.42", + "@storybook/addon-viewport": "5.3.0-alpha.42", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/ember": "5.3.0-alpha.42", + "@storybook/source-loader": "5.3.0-alpha.42", "babel-loader": "^8", "broccoli-asset-rev": "^3.0.0", "cross-env": "^6.0.3", diff --git a/examples/html-kitchen-sink/package.json b/examples/html-kitchen-sink/package.json index fc2d3e09c8bd..8a2fcf698588 100644 --- a/examples/html-kitchen-sink/package.json +++ b/examples/html-kitchen-sink/package.json @@ -1,6 +1,6 @@ { "name": "html-kitchen-sink", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "private": true, "description": "", "keywords": [], @@ -13,26 +13,26 @@ "storybook": "start-storybook -p 9006" }, "devDependencies": { - "@storybook/addon-a11y": "5.3.0-alpha.40", - "@storybook/addon-actions": "5.3.0-alpha.40", - "@storybook/addon-backgrounds": "5.3.0-alpha.40", - "@storybook/addon-centered": "5.3.0-alpha.40", - "@storybook/addon-docs": "5.3.0-alpha.40", - "@storybook/addon-events": "5.3.0-alpha.40", - "@storybook/addon-jest": "5.3.0-alpha.40", - "@storybook/addon-knobs": "5.3.0-alpha.40", - "@storybook/addon-links": "5.3.0-alpha.40", - "@storybook/addon-notes": "5.3.0-alpha.40", - "@storybook/addon-options": "5.3.0-alpha.40", - "@storybook/addon-storyshots": "5.3.0-alpha.40", - "@storybook/addon-storysource": "5.3.0-alpha.40", - "@storybook/addon-viewport": "5.3.0-alpha.40", - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/client-api": "5.3.0-alpha.40", - "@storybook/core": "5.3.0-alpha.40", - "@storybook/core-events": "5.3.0-alpha.40", - "@storybook/html": "5.3.0-alpha.40", - "@storybook/source-loader": "5.3.0-alpha.40", + "@storybook/addon-a11y": "5.3.0-alpha.42", + "@storybook/addon-actions": "5.3.0-alpha.42", + "@storybook/addon-backgrounds": "5.3.0-alpha.42", + "@storybook/addon-centered": "5.3.0-alpha.42", + "@storybook/addon-docs": "5.3.0-alpha.42", + "@storybook/addon-events": "5.3.0-alpha.42", + "@storybook/addon-jest": "5.3.0-alpha.42", + "@storybook/addon-knobs": "5.3.0-alpha.42", + "@storybook/addon-links": "5.3.0-alpha.42", + "@storybook/addon-notes": "5.3.0-alpha.42", + "@storybook/addon-options": "5.3.0-alpha.42", + "@storybook/addon-storyshots": "5.3.0-alpha.42", + "@storybook/addon-storysource": "5.3.0-alpha.42", + "@storybook/addon-viewport": "5.3.0-alpha.42", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/client-api": "5.3.0-alpha.42", + "@storybook/core": "5.3.0-alpha.42", + "@storybook/core-events": "5.3.0-alpha.42", + "@storybook/html": "5.3.0-alpha.42", + "@storybook/source-loader": "5.3.0-alpha.42", "eventemitter3": "^4.0.0", "format-json": "^1.0.3", "global": "^4.3.2", diff --git a/examples/marko-cli/package.json b/examples/marko-cli/package.json index cace8ba4bb34..018915d63163 100644 --- a/examples/marko-cli/package.json +++ b/examples/marko-cli/package.json @@ -1,6 +1,6 @@ { "name": "marko-cli", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "private": true, "description": "Demo of how to build an app using marko-starter", "repository": { @@ -23,14 +23,14 @@ "marko-starter": "^2.0.4" }, "devDependencies": { - "@storybook/addon-a11y": "5.3.0-alpha.40", - "@storybook/addon-actions": "5.3.0-alpha.40", - "@storybook/addon-knobs": "5.3.0-alpha.40", - "@storybook/addon-options": "5.3.0-alpha.40", - "@storybook/addon-storysource": "5.3.0-alpha.40", - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/marko": "5.3.0-alpha.40", - "@storybook/source-loader": "5.3.0-alpha.40", + "@storybook/addon-a11y": "5.3.0-alpha.42", + "@storybook/addon-actions": "5.3.0-alpha.42", + "@storybook/addon-knobs": "5.3.0-alpha.42", + "@storybook/addon-options": "5.3.0-alpha.42", + "@storybook/addon-storysource": "5.3.0-alpha.42", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/marko": "5.3.0-alpha.42", + "@storybook/source-loader": "5.3.0-alpha.42", "prettier": "^1.16.4", "webpack": "^4.33.0" } diff --git a/examples/mithril-kitchen-sink/package.json b/examples/mithril-kitchen-sink/package.json index adddef8d87c9..58ecf47ff1db 100644 --- a/examples/mithril-kitchen-sink/package.json +++ b/examples/mithril-kitchen-sink/package.json @@ -1,6 +1,6 @@ { "name": "mithril-example", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "private": true, "scripts": { "build-storybook": "build-storybook", @@ -10,20 +10,20 @@ "mithril": "^1.1.6" }, "devDependencies": { - "@storybook/addon-a11y": "5.3.0-alpha.40", - "@storybook/addon-actions": "5.3.0-alpha.40", - "@storybook/addon-backgrounds": "5.3.0-alpha.40", - "@storybook/addon-centered": "5.3.0-alpha.40", - "@storybook/addon-knobs": "5.3.0-alpha.40", - "@storybook/addon-links": "5.3.0-alpha.40", - "@storybook/addon-notes": "5.3.0-alpha.40", - "@storybook/addon-options": "5.3.0-alpha.40", - "@storybook/addon-storyshots": "5.3.0-alpha.40", - "@storybook/addon-storysource": "5.3.0-alpha.40", - "@storybook/addon-viewport": "5.3.0-alpha.40", - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/mithril": "5.3.0-alpha.40", - "@storybook/source-loader": "5.3.0-alpha.40", + "@storybook/addon-a11y": "5.3.0-alpha.42", + "@storybook/addon-actions": "5.3.0-alpha.42", + "@storybook/addon-backgrounds": "5.3.0-alpha.42", + "@storybook/addon-centered": "5.3.0-alpha.42", + "@storybook/addon-knobs": "5.3.0-alpha.42", + "@storybook/addon-links": "5.3.0-alpha.42", + "@storybook/addon-notes": "5.3.0-alpha.42", + "@storybook/addon-options": "5.3.0-alpha.42", + "@storybook/addon-storyshots": "5.3.0-alpha.42", + "@storybook/addon-storysource": "5.3.0-alpha.42", + "@storybook/addon-viewport": "5.3.0-alpha.42", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/mithril": "5.3.0-alpha.42", + "@storybook/source-loader": "5.3.0-alpha.42", "webpack": "^4.33.0" } } diff --git a/examples/official-storybook/package.json b/examples/official-storybook/package.json index 1607d97812b1..dc58a49ef1e7 100644 --- a/examples/official-storybook/package.json +++ b/examples/official-storybook/package.json @@ -1,6 +1,6 @@ { "name": "official-storybook", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "private": true, "scripts": { "build-storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true build-storybook -c ./", @@ -13,34 +13,34 @@ }, "devDependencies": { "@packtracker/webpack-plugin": "^2.0.1", - "@storybook/addon-a11y": "5.3.0-alpha.40", - "@storybook/addon-actions": "5.3.0-alpha.40", - "@storybook/addon-backgrounds": "5.3.0-alpha.40", - "@storybook/addon-centered": "5.3.0-alpha.40", - "@storybook/addon-contexts": "5.3.0-alpha.40", - "@storybook/addon-cssresources": "5.3.0-alpha.40", - "@storybook/addon-design-assets": "5.3.0-alpha.40", - "@storybook/addon-docs": "5.3.0-alpha.40", - "@storybook/addon-events": "5.3.0-alpha.40", - "@storybook/addon-graphql": "5.3.0-alpha.40", - "@storybook/addon-info": "5.3.0-alpha.40", - "@storybook/addon-jest": "5.3.0-alpha.40", - "@storybook/addon-knobs": "5.3.0-alpha.40", - "@storybook/addon-links": "5.3.0-alpha.40", - "@storybook/addon-notes": "5.3.0-alpha.40", - "@storybook/addon-options": "5.3.0-alpha.40", - "@storybook/addon-queryparams": "5.3.0-alpha.40", - "@storybook/addon-storyshots": "5.3.0-alpha.40", - "@storybook/addon-storyshots-puppeteer": "5.3.0-alpha.40", - "@storybook/addon-storysource": "5.3.0-alpha.40", - "@storybook/addon-viewport": "5.3.0-alpha.40", - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/components": "5.3.0-alpha.40", - "@storybook/core-events": "5.3.0-alpha.40", - "@storybook/node-logger": "5.3.0-alpha.40", - "@storybook/react": "5.3.0-alpha.40", - "@storybook/source-loader": "5.3.0-alpha.40", - "@storybook/theming": "5.3.0-alpha.40", + "@storybook/addon-a11y": "5.3.0-alpha.42", + "@storybook/addon-actions": "5.3.0-alpha.42", + "@storybook/addon-backgrounds": "5.3.0-alpha.42", + "@storybook/addon-centered": "5.3.0-alpha.42", + "@storybook/addon-contexts": "5.3.0-alpha.42", + "@storybook/addon-cssresources": "5.3.0-alpha.42", + "@storybook/addon-design-assets": "5.3.0-alpha.42", + "@storybook/addon-docs": "5.3.0-alpha.42", + "@storybook/addon-events": "5.3.0-alpha.42", + "@storybook/addon-graphql": "5.3.0-alpha.42", + "@storybook/addon-info": "5.3.0-alpha.42", + "@storybook/addon-jest": "5.3.0-alpha.42", + "@storybook/addon-knobs": "5.3.0-alpha.42", + "@storybook/addon-links": "5.3.0-alpha.42", + "@storybook/addon-notes": "5.3.0-alpha.42", + "@storybook/addon-options": "5.3.0-alpha.42", + "@storybook/addon-queryparams": "5.3.0-alpha.42", + "@storybook/addon-storyshots": "5.3.0-alpha.42", + "@storybook/addon-storyshots-puppeteer": "5.3.0-alpha.42", + "@storybook/addon-storysource": "5.3.0-alpha.42", + "@storybook/addon-viewport": "5.3.0-alpha.42", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/components": "5.3.0-alpha.42", + "@storybook/core-events": "5.3.0-alpha.42", + "@storybook/node-logger": "5.3.0-alpha.42", + "@storybook/react": "5.3.0-alpha.42", + "@storybook/source-loader": "5.3.0-alpha.42", + "@storybook/theming": "5.3.0-alpha.42", "cors": "^2.8.5", "cross-env": "^6.0.3", "enzyme-to-json": "^3.4.1", diff --git a/examples/official-storybook/stories/addon-docs/addon-docs.stories.mdx b/examples/official-storybook/stories/addon-docs/addon-docs.stories.mdx index b9a11b4a4832..b4f47769f3aa 100644 --- a/examples/official-storybook/stories/addon-docs/addon-docs.stories.mdx +++ b/examples/official-storybook/stories/addon-docs/addon-docs.stories.mdx @@ -8,6 +8,7 @@ import { ColorItem, Meta, } from '@storybook/addon-docs/blocks'; +import { withKnobs, text } from '@storybook/addon-knobs'; import { action } from '@storybook/addon-actions'; import { Button } from '@storybook/react/demo'; import FlowTypeButton from '../../components/FlowTypeButton'; @@ -16,7 +17,7 @@ import { DocgenButton } from '../../components/DocgenButton';
{storyFn()}
]} + decorators={[storyFn =>
{storyFn()}
, withKnobs]} parameters={{ notes: 'component notes' }} /> @@ -64,7 +65,7 @@ export const nonStory2 = () => ; // another one - + diff --git a/examples/polymer-cli/package.json b/examples/polymer-cli/package.json index 44421813193d..c4628f719b93 100644 --- a/examples/polymer-cli/package.json +++ b/examples/polymer-cli/package.json @@ -1,6 +1,6 @@ { "name": "polymer-cli", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "private": true, "scripts": { "build-storybook": "build-storybook", @@ -9,17 +9,17 @@ }, "dependencies": { "@polymer/polymer": "^2.6.0", - "@storybook/addon-a11y": "5.3.0-alpha.40", - "@storybook/addon-actions": "5.3.0-alpha.40", - "@storybook/addon-backgrounds": "5.3.0-alpha.40", - "@storybook/addon-knobs": "5.3.0-alpha.40", - "@storybook/addon-links": "5.3.0-alpha.40", - "@storybook/addon-notes": "5.3.0-alpha.40", - "@storybook/addon-options": "5.3.0-alpha.40", - "@storybook/addon-storysource": "5.3.0-alpha.40", - "@storybook/addon-viewport": "5.3.0-alpha.40", - "@storybook/polymer": "5.3.0-alpha.40", - "@storybook/source-loader": "5.3.0-alpha.40", + "@storybook/addon-a11y": "5.3.0-alpha.42", + "@storybook/addon-actions": "5.3.0-alpha.42", + "@storybook/addon-backgrounds": "5.3.0-alpha.42", + "@storybook/addon-knobs": "5.3.0-alpha.42", + "@storybook/addon-links": "5.3.0-alpha.42", + "@storybook/addon-notes": "5.3.0-alpha.42", + "@storybook/addon-options": "5.3.0-alpha.42", + "@storybook/addon-storysource": "5.3.0-alpha.42", + "@storybook/addon-viewport": "5.3.0-alpha.42", + "@storybook/polymer": "5.3.0-alpha.42", + "@storybook/source-loader": "5.3.0-alpha.42", "@webcomponents/webcomponentsjs": "^1.2.0", "global": "^4.3.2", "lit-html": "^1.0.0", diff --git a/examples/preact-kitchen-sink/package.json b/examples/preact-kitchen-sink/package.json index d44c6e44cf56..24932b4af108 100644 --- a/examples/preact-kitchen-sink/package.json +++ b/examples/preact-kitchen-sink/package.json @@ -1,6 +1,6 @@ { "name": "preact-example", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "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.0-alpha.40", - "@storybook/addon-actions": "5.3.0-alpha.40", - "@storybook/addon-backgrounds": "5.3.0-alpha.40", - "@storybook/addon-centered": "5.3.0-alpha.40", - "@storybook/addon-contexts": "5.3.0-alpha.40", - "@storybook/addon-knobs": "5.3.0-alpha.40", - "@storybook/addon-links": "5.3.0-alpha.40", - "@storybook/addon-notes": "5.3.0-alpha.40", - "@storybook/addon-options": "5.3.0-alpha.40", - "@storybook/addon-storyshots": "5.3.0-alpha.40", - "@storybook/addon-storysource": "5.3.0-alpha.40", - "@storybook/addon-viewport": "5.3.0-alpha.40", - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/preact": "5.3.0-alpha.40", - "@storybook/source-loader": "5.3.0-alpha.40", + "@storybook/addon-a11y": "5.3.0-alpha.42", + "@storybook/addon-actions": "5.3.0-alpha.42", + "@storybook/addon-backgrounds": "5.3.0-alpha.42", + "@storybook/addon-centered": "5.3.0-alpha.42", + "@storybook/addon-contexts": "5.3.0-alpha.42", + "@storybook/addon-knobs": "5.3.0-alpha.42", + "@storybook/addon-links": "5.3.0-alpha.42", + "@storybook/addon-notes": "5.3.0-alpha.42", + "@storybook/addon-options": "5.3.0-alpha.42", + "@storybook/addon-storyshots": "5.3.0-alpha.42", + "@storybook/addon-storysource": "5.3.0-alpha.42", + "@storybook/addon-viewport": "5.3.0-alpha.42", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/preact": "5.3.0-alpha.42", + "@storybook/source-loader": "5.3.0-alpha.42", "babel-loader": "^8.0.4", "cross-env": "^6.0.3", "file-loader": "^4.2.0", diff --git a/examples/rax-kitchen-sink/package.json b/examples/rax-kitchen-sink/package.json index cc532c5e019f..52395014189a 100644 --- a/examples/rax-kitchen-sink/package.json +++ b/examples/rax-kitchen-sink/package.json @@ -1,6 +1,6 @@ { "name": "rax-kitchen-sink", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "private": true, "scripts": { "build": "rax-scripts build", @@ -21,23 +21,23 @@ "rax-view": "^1.0.0" }, "devDependencies": { - "@storybook/addon-a11y": "5.3.0-alpha.40", - "@storybook/addon-actions": "5.3.0-alpha.40", - "@storybook/addon-backgrounds": "5.3.0-alpha.40", - "@storybook/addon-centered": "5.3.0-alpha.40", - "@storybook/addon-events": "5.3.0-alpha.40", - "@storybook/addon-info": "5.3.0-alpha.40", - "@storybook/addon-jest": "5.3.0-alpha.40", - "@storybook/addon-knobs": "5.3.0-alpha.40", - "@storybook/addon-links": "5.3.0-alpha.40", - "@storybook/addon-notes": "5.3.0-alpha.40", - "@storybook/addon-options": "5.3.0-alpha.40", - "@storybook/addon-storyshots": "5.3.0-alpha.40", - "@storybook/addon-storysource": "5.3.0-alpha.40", - "@storybook/addon-viewport": "5.3.0-alpha.40", - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/rax": "5.3.0-alpha.40", - "@storybook/source-loader": "5.3.0-alpha.40", + "@storybook/addon-a11y": "5.3.0-alpha.42", + "@storybook/addon-actions": "5.3.0-alpha.42", + "@storybook/addon-backgrounds": "5.3.0-alpha.42", + "@storybook/addon-centered": "5.3.0-alpha.42", + "@storybook/addon-events": "5.3.0-alpha.42", + "@storybook/addon-info": "5.3.0-alpha.42", + "@storybook/addon-jest": "5.3.0-alpha.42", + "@storybook/addon-knobs": "5.3.0-alpha.42", + "@storybook/addon-links": "5.3.0-alpha.42", + "@storybook/addon-notes": "5.3.0-alpha.42", + "@storybook/addon-options": "5.3.0-alpha.42", + "@storybook/addon-storyshots": "5.3.0-alpha.42", + "@storybook/addon-storysource": "5.3.0-alpha.42", + "@storybook/addon-viewport": "5.3.0-alpha.42", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/rax": "5.3.0-alpha.42", + "@storybook/source-loader": "5.3.0-alpha.42", "babel-eslint": "^10.0.3", "babel-preset-rax": "^1.0.0-beta.0", "rax-scripts": "^2.0.0", diff --git a/examples/riot-kitchen-sink/package.json b/examples/riot-kitchen-sink/package.json index 2949da5f1c2d..17e813b1abde 100644 --- a/examples/riot-kitchen-sink/package.json +++ b/examples/riot-kitchen-sink/package.json @@ -1,6 +1,6 @@ { "name": "riot-example", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "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.0-alpha.40", - "@storybook/addon-actions": "5.3.0-alpha.40", - "@storybook/addon-backgrounds": "5.3.0-alpha.40", - "@storybook/addon-centered": "5.3.0-alpha.40", - "@storybook/addon-knobs": "5.3.0-alpha.40", - "@storybook/addon-links": "5.3.0-alpha.40", - "@storybook/addon-notes": "5.3.0-alpha.40", - "@storybook/addon-options": "5.3.0-alpha.40", - "@storybook/addon-storyshots": "5.3.0-alpha.40", - "@storybook/addon-storysource": "5.3.0-alpha.40", - "@storybook/addon-viewport": "5.3.0-alpha.40", - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/riot": "5.3.0-alpha.40", - "@storybook/source-loader": "5.3.0-alpha.40", + "@storybook/addon-a11y": "5.3.0-alpha.42", + "@storybook/addon-actions": "5.3.0-alpha.42", + "@storybook/addon-backgrounds": "5.3.0-alpha.42", + "@storybook/addon-centered": "5.3.0-alpha.42", + "@storybook/addon-knobs": "5.3.0-alpha.42", + "@storybook/addon-links": "5.3.0-alpha.42", + "@storybook/addon-notes": "5.3.0-alpha.42", + "@storybook/addon-options": "5.3.0-alpha.42", + "@storybook/addon-storyshots": "5.3.0-alpha.42", + "@storybook/addon-storysource": "5.3.0-alpha.42", + "@storybook/addon-viewport": "5.3.0-alpha.42", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/riot": "5.3.0-alpha.42", + "@storybook/source-loader": "5.3.0-alpha.42", "babel-loader": "^8.0.4", "cross-env": "^6.0.3", "file-loader": "^4.2.0", diff --git a/examples/standalone-preview/package.json b/examples/standalone-preview/package.json index 83ba88aac83f..0bc6d9b89b63 100644 --- a/examples/standalone-preview/package.json +++ b/examples/standalone-preview/package.json @@ -1,12 +1,12 @@ { "name": "standalone-preview", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "private": true, "scripts": { "storybook": "parcel ./storybook.html --port 1337" }, "devDependencies": { - "@storybook/react": "5.3.0-alpha.40", + "@storybook/react": "5.3.0-alpha.42", "parcel": "^1.12.3", "react": "^16.8.4", "react-dom": "^16.8.4" diff --git a/examples/svelte-kitchen-sink/package.json b/examples/svelte-kitchen-sink/package.json index 6f3465496082..32de9988eec2 100644 --- a/examples/svelte-kitchen-sink/package.json +++ b/examples/svelte-kitchen-sink/package.json @@ -1,6 +1,6 @@ { "name": "svelte-example", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "private": true, "scripts": { "build-storybook": "build-storybook -s public", @@ -10,19 +10,19 @@ "global": "^4.3.2" }, "devDependencies": { - "@storybook/addon-a11y": "5.3.0-alpha.40", - "@storybook/addon-actions": "5.3.0-alpha.40", - "@storybook/addon-backgrounds": "5.3.0-alpha.40", - "@storybook/addon-centered": "5.3.0-alpha.40", - "@storybook/addon-knobs": "5.3.0-alpha.40", - "@storybook/addon-links": "5.3.0-alpha.40", - "@storybook/addon-notes": "5.3.0-alpha.40", - "@storybook/addon-options": "5.3.0-alpha.40", - "@storybook/addon-storyshots": "5.3.0-alpha.40", - "@storybook/addon-storysource": "5.3.0-alpha.40", - "@storybook/addon-viewport": "5.3.0-alpha.40", - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/source-loader": "5.3.0-alpha.40", - "@storybook/svelte": "5.3.0-alpha.40" + "@storybook/addon-a11y": "5.3.0-alpha.42", + "@storybook/addon-actions": "5.3.0-alpha.42", + "@storybook/addon-backgrounds": "5.3.0-alpha.42", + "@storybook/addon-centered": "5.3.0-alpha.42", + "@storybook/addon-knobs": "5.3.0-alpha.42", + "@storybook/addon-links": "5.3.0-alpha.42", + "@storybook/addon-notes": "5.3.0-alpha.42", + "@storybook/addon-options": "5.3.0-alpha.42", + "@storybook/addon-storyshots": "5.3.0-alpha.42", + "@storybook/addon-storysource": "5.3.0-alpha.42", + "@storybook/addon-viewport": "5.3.0-alpha.42", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/source-loader": "5.3.0-alpha.42", + "@storybook/svelte": "5.3.0-alpha.42" } } diff --git a/examples/vue-kitchen-sink/package.json b/examples/vue-kitchen-sink/package.json index 68c987d7c242..e09cbb9bc0c0 100644 --- a/examples/vue-kitchen-sink/package.json +++ b/examples/vue-kitchen-sink/package.json @@ -1,6 +1,6 @@ { "name": "vue-example", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "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.0-alpha.40", - "@storybook/addon-actions": "5.3.0-alpha.40", - "@storybook/addon-backgrounds": "5.3.0-alpha.40", - "@storybook/addon-centered": "5.3.0-alpha.40", - "@storybook/addon-contexts": "5.3.0-alpha.40", - "@storybook/addon-docs": "5.3.0-alpha.40", - "@storybook/addon-knobs": "5.3.0-alpha.40", - "@storybook/addon-links": "5.3.0-alpha.40", - "@storybook/addon-notes": "5.3.0-alpha.40", - "@storybook/addon-options": "5.3.0-alpha.40", - "@storybook/addon-storyshots": "5.3.0-alpha.40", - "@storybook/addon-storysource": "5.3.0-alpha.40", - "@storybook/addon-viewport": "5.3.0-alpha.40", - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/source-loader": "5.3.0-alpha.40", - "@storybook/vue": "5.3.0-alpha.40", + "@storybook/addon-a11y": "5.3.0-alpha.42", + "@storybook/addon-actions": "5.3.0-alpha.42", + "@storybook/addon-backgrounds": "5.3.0-alpha.42", + "@storybook/addon-centered": "5.3.0-alpha.42", + "@storybook/addon-contexts": "5.3.0-alpha.42", + "@storybook/addon-docs": "5.3.0-alpha.42", + "@storybook/addon-knobs": "5.3.0-alpha.42", + "@storybook/addon-links": "5.3.0-alpha.42", + "@storybook/addon-notes": "5.3.0-alpha.42", + "@storybook/addon-options": "5.3.0-alpha.42", + "@storybook/addon-storyshots": "5.3.0-alpha.42", + "@storybook/addon-storysource": "5.3.0-alpha.42", + "@storybook/addon-viewport": "5.3.0-alpha.42", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/source-loader": "5.3.0-alpha.42", + "@storybook/vue": "5.3.0-alpha.42", "babel-core": "^7.0.0-bridge.0", "babel-loader": "^8.0.5", "cross-env": "^6.0.3", diff --git a/examples/web-components-kitchen-sink/package.json b/examples/web-components-kitchen-sink/package.json index b281d2c91858..c406f4f8b535 100644 --- a/examples/web-components-kitchen-sink/package.json +++ b/examples/web-components-kitchen-sink/package.json @@ -1,6 +1,6 @@ { "name": "web-components-kitchen-sink", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "private": true, "description": "", "keywords": [], @@ -12,26 +12,26 @@ "storybook": "start-storybook -p 9006" }, "devDependencies": { - "@storybook/addon-a11y": "5.3.0-alpha.40", - "@storybook/addon-actions": "5.3.0-alpha.40", - "@storybook/addon-backgrounds": "5.3.0-alpha.40", - "@storybook/addon-centered": "5.3.0-alpha.40", - "@storybook/addon-docs": "5.3.0-alpha.40", - "@storybook/addon-events": "5.3.0-alpha.40", - "@storybook/addon-jest": "5.3.0-alpha.40", - "@storybook/addon-knobs": "5.3.0-alpha.40", - "@storybook/addon-links": "5.3.0-alpha.40", - "@storybook/addon-notes": "5.3.0-alpha.40", - "@storybook/addon-options": "5.3.0-alpha.40", - "@storybook/addon-storyshots": "5.3.0-alpha.40", - "@storybook/addon-storysource": "5.3.0-alpha.40", - "@storybook/addon-viewport": "5.3.0-alpha.40", - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/client-api": "5.3.0-alpha.40", - "@storybook/core": "5.3.0-alpha.40", - "@storybook/core-events": "5.3.0-alpha.40", - "@storybook/source-loader": "5.3.0-alpha.40", - "@storybook/web-components": "5.3.0-alpha.40", + "@storybook/addon-a11y": "5.3.0-alpha.42", + "@storybook/addon-actions": "5.3.0-alpha.42", + "@storybook/addon-backgrounds": "5.3.0-alpha.42", + "@storybook/addon-centered": "5.3.0-alpha.42", + "@storybook/addon-docs": "5.3.0-alpha.42", + "@storybook/addon-events": "5.3.0-alpha.42", + "@storybook/addon-jest": "5.3.0-alpha.42", + "@storybook/addon-knobs": "5.3.0-alpha.42", + "@storybook/addon-links": "5.3.0-alpha.42", + "@storybook/addon-notes": "5.3.0-alpha.42", + "@storybook/addon-options": "5.3.0-alpha.42", + "@storybook/addon-storyshots": "5.3.0-alpha.42", + "@storybook/addon-storysource": "5.3.0-alpha.42", + "@storybook/addon-viewport": "5.3.0-alpha.42", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/client-api": "5.3.0-alpha.42", + "@storybook/core": "5.3.0-alpha.42", + "@storybook/core-events": "5.3.0-alpha.42", + "@storybook/source-loader": "5.3.0-alpha.42", + "@storybook/web-components": "5.3.0-alpha.42", "babel-loader": "^8.0.5", "eventemitter3": "^4.0.0", "format-json": "^1.0.3", diff --git a/lerna.json b/lerna.json index 233f20571eda..11bc5f32adbc 100644 --- a/lerna.json +++ b/lerna.json @@ -2,5 +2,5 @@ "npmClient": "yarn", "useWorkspaces": true, "registry": "https://registry.npmjs.org", - "version": "5.3.0-alpha.40" + "version": "5.3.0-alpha.42" } diff --git a/lib/addons/package.json b/lib/addons/package.json index 19a8e7924305..2025163bd33e 100644 --- a/lib/addons/package.json +++ b/lib/addons/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addons", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "Storybook addons store", "keywords": [ "storybook" @@ -27,10 +27,10 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/api": "5.3.0-alpha.40", - "@storybook/channels": "5.3.0-alpha.40", - "@storybook/client-logger": "5.3.0-alpha.40", - "@storybook/core-events": "5.3.0-alpha.40", + "@storybook/api": "5.3.0-alpha.42", + "@storybook/channels": "5.3.0-alpha.42", + "@storybook/client-logger": "5.3.0-alpha.42", + "@storybook/core-events": "5.3.0-alpha.42", "core-js": "^3.0.1", "global": "^4.3.2", "util-deprecate": "^1.0.2" diff --git a/lib/api/package.json b/lib/api/package.json index 4ac91d82e073..985d2b4a5cba 100644 --- a/lib/api/package.json +++ b/lib/api/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/api", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "Core Storybook API & Context", "keywords": [ "storybook" @@ -26,11 +26,11 @@ "prepare": "node ./scripts/generateVersion.js && node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/channels": "5.3.0-alpha.40", - "@storybook/client-logger": "5.3.0-alpha.40", - "@storybook/core-events": "5.3.0-alpha.40", - "@storybook/router": "5.3.0-alpha.40", - "@storybook/theming": "5.3.0-alpha.40", + "@storybook/channels": "5.3.0-alpha.42", + "@storybook/client-logger": "5.3.0-alpha.42", + "@storybook/core-events": "5.3.0-alpha.42", + "@storybook/router": "5.3.0-alpha.42", + "@storybook/theming": "5.3.0-alpha.42", "core-js": "^3.0.1", "fast-deep-equal": "^2.0.1", "global": "^4.3.2", diff --git a/lib/api/src/version.ts b/lib/api/src/version.ts index fa8f564c9135..a612235a834e 100644 --- a/lib/api/src/version.ts +++ b/lib/api/src/version.ts @@ -1 +1 @@ -export const version = '5.3.0-alpha.40'; +export const version = '5.3.0-alpha.42'; diff --git a/lib/channel-postmessage/package.json b/lib/channel-postmessage/package.json index 437811068ede..3b19b7711949 100644 --- a/lib/channel-postmessage/package.json +++ b/lib/channel-postmessage/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/channel-postmessage", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "", "keywords": [ "storybook" @@ -27,8 +27,8 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/channels": "5.3.0-alpha.40", - "@storybook/client-logger": "5.3.0-alpha.40", + "@storybook/channels": "5.3.0-alpha.42", + "@storybook/client-logger": "5.3.0-alpha.42", "core-js": "^3.0.1", "global": "^4.3.2", "telejson": "^3.0.3" diff --git a/lib/channel-websocket/package.json b/lib/channel-websocket/package.json index 1252b07adeda..80084b875842 100644 --- a/lib/channel-websocket/package.json +++ b/lib/channel-websocket/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/channel-websocket", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "", "keywords": [ "storybook" @@ -27,7 +27,7 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/channels": "5.3.0-alpha.40", + "@storybook/channels": "5.3.0-alpha.42", "core-js": "^3.0.1", "global": "^4.3.2", "json-fn": "^1.1.1" diff --git a/lib/channels/package.json b/lib/channels/package.json index aa36af1d681a..29408ed9d32d 100644 --- a/lib/channels/package.json +++ b/lib/channels/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/channels", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "", "keywords": [ "storybook" diff --git a/lib/cli-sb/package.json b/lib/cli-sb/package.json index c40f08da6faf..72943b48c111 100644 --- a/lib/cli-sb/package.json +++ b/lib/cli-sb/package.json @@ -1,6 +1,6 @@ { "name": "sb", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "private": true, "description": "Storybook CLI", "keywords": [ @@ -23,7 +23,7 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/cli": "5.3.0-alpha.40" + "@storybook/cli": "5.3.0-alpha.42" }, "publishConfig": { "access": "public" diff --git a/lib/cli-storybook/package.json b/lib/cli-storybook/package.json index 437fbce57c2b..05aa4906eb4d 100644 --- a/lib/cli-storybook/package.json +++ b/lib/cli-storybook/package.json @@ -1,6 +1,6 @@ { "name": "storybook", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "private": true, "description": "Storybook CLI", "keywords": [ @@ -24,7 +24,7 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/cli": "5.3.0-alpha.40" + "@storybook/cli": "5.3.0-alpha.42" }, "publishConfig": { "access": "public" diff --git a/lib/cli/package.json b/lib/cli/package.json index 9675e3a9cbaf..51c634d82498 100644 --- a/lib/cli/package.json +++ b/lib/cli/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/cli", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "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.0-alpha.40", + "@storybook/codemod": "5.3.0-alpha.42", "chalk": "^2.4.1", "commander": "^3.0.2", "core-js": "^3.0.1", @@ -57,33 +57,33 @@ "update-notifier": "^3.0.0" }, "devDependencies": { - "@storybook/addon-actions": "5.3.0-alpha.40", - "@storybook/addon-centered": "5.3.0-alpha.40", - "@storybook/addon-graphql": "5.3.0-alpha.40", - "@storybook/addon-info": "5.3.0-alpha.40", - "@storybook/addon-knobs": "5.3.0-alpha.40", - "@storybook/addon-links": "5.3.0-alpha.40", - "@storybook/addon-notes": "5.3.0-alpha.40", - "@storybook/addon-options": "5.3.0-alpha.40", - "@storybook/addon-storyshots": "5.3.0-alpha.40", - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/angular": "5.3.0-alpha.40", - "@storybook/channel-postmessage": "5.3.0-alpha.40", - "@storybook/channel-websocket": "5.3.0-alpha.40", - "@storybook/channels": "5.3.0-alpha.40", - "@storybook/ember": "5.3.0-alpha.40", - "@storybook/html": "5.3.0-alpha.40", - "@storybook/marko": "5.3.0-alpha.40", - "@storybook/mithril": "5.3.0-alpha.40", - "@storybook/polymer": "5.3.0-alpha.40", - "@storybook/preact": "5.3.0-alpha.40", - "@storybook/rax": "5.3.0-alpha.40", - "@storybook/react": "5.3.0-alpha.40", - "@storybook/react-native": "5.3.0-alpha.40", - "@storybook/riot": "5.3.0-alpha.40", - "@storybook/svelte": "5.3.0-alpha.40", - "@storybook/ui": "5.3.0-alpha.40", - "@storybook/vue": "5.3.0-alpha.40" + "@storybook/addon-actions": "5.3.0-alpha.42", + "@storybook/addon-centered": "5.3.0-alpha.42", + "@storybook/addon-graphql": "5.3.0-alpha.42", + "@storybook/addon-info": "5.3.0-alpha.42", + "@storybook/addon-knobs": "5.3.0-alpha.42", + "@storybook/addon-links": "5.3.0-alpha.42", + "@storybook/addon-notes": "5.3.0-alpha.42", + "@storybook/addon-options": "5.3.0-alpha.42", + "@storybook/addon-storyshots": "5.3.0-alpha.42", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/angular": "5.3.0-alpha.42", + "@storybook/channel-postmessage": "5.3.0-alpha.42", + "@storybook/channel-websocket": "5.3.0-alpha.42", + "@storybook/channels": "5.3.0-alpha.42", + "@storybook/ember": "5.3.0-alpha.42", + "@storybook/html": "5.3.0-alpha.42", + "@storybook/marko": "5.3.0-alpha.42", + "@storybook/mithril": "5.3.0-alpha.42", + "@storybook/polymer": "5.3.0-alpha.42", + "@storybook/preact": "5.3.0-alpha.42", + "@storybook/rax": "5.3.0-alpha.42", + "@storybook/react": "5.3.0-alpha.42", + "@storybook/react-native": "5.3.0-alpha.42", + "@storybook/riot": "5.3.0-alpha.42", + "@storybook/svelte": "5.3.0-alpha.42", + "@storybook/ui": "5.3.0-alpha.42", + "@storybook/vue": "5.3.0-alpha.42" }, "publishConfig": { "access": "public" diff --git a/lib/client-api/package.json b/lib/client-api/package.json index 402ef0e05f71..8196c72d34e0 100644 --- a/lib/client-api/package.json +++ b/lib/client-api/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/client-api", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "Storybook Client API", "keywords": [ "storybook" @@ -27,12 +27,12 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/channel-postmessage": "5.3.0-alpha.40", - "@storybook/channels": "5.3.0-alpha.40", - "@storybook/client-logger": "5.3.0-alpha.40", - "@storybook/core-events": "5.3.0-alpha.40", - "@storybook/router": "5.3.0-alpha.40", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/channel-postmessage": "5.3.0-alpha.42", + "@storybook/channels": "5.3.0-alpha.42", + "@storybook/client-logger": "5.3.0-alpha.42", + "@storybook/core-events": "5.3.0-alpha.42", + "@storybook/router": "5.3.0-alpha.42", "core-js": "^3.0.1", "eventemitter3": "^4.0.0", "global": "^4.3.2", diff --git a/lib/client-logger/package.json b/lib/client-logger/package.json index 26c71f57bc3c..e68a0c7bfdc9 100644 --- a/lib/client-logger/package.json +++ b/lib/client-logger/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/client-logger", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "", "keywords": [ "storybook" diff --git a/lib/codemod/package.json b/lib/codemod/package.json index cb4c83c12997..ee75d1cea9ec 100644 --- a/lib/codemod/package.json +++ b/lib/codemod/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/codemod", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "A collection of codemod scripts written with JSCodeshift", "keywords": [ "storybook" @@ -29,8 +29,8 @@ "dependencies": { "@hypnosphi/jscodeshift": "^0.6.4", "@mdx-js/mdx": "^1.0.0", - "@storybook/node-logger": "5.3.0-alpha.40", - "@storybook/router": "5.3.0-alpha.40", + "@storybook/node-logger": "5.3.0-alpha.42", + "@storybook/router": "5.3.0-alpha.42", "core-js": "^3.0.1", "cross-spawn": "^7.0.0", "globby": "^10.0.1", diff --git a/lib/components/package.json b/lib/components/package.json index 6c36c473fe1e..8d6460b7f35b 100644 --- a/lib/components/package.json +++ b/lib/components/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/components", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "Core Storybook Components", "keywords": [ "storybook" @@ -27,8 +27,8 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/client-logger": "5.3.0-alpha.40", - "@storybook/theming": "5.3.0-alpha.40", + "@storybook/client-logger": "5.3.0-alpha.42", + "@storybook/theming": "5.3.0-alpha.42", "@types/react-syntax-highlighter": "11.0.1", "@types/react-textarea-autosize": "^4.3.3", "core-js": "^3.0.1", diff --git a/lib/core-events/package.json b/lib/core-events/package.json index e9c2921af3ca..3b2bf7e9e005 100644 --- a/lib/core-events/package.json +++ b/lib/core-events/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/core-events", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "Event names used in storybook core", "keywords": [ "storybook" diff --git a/lib/core/package.json b/lib/core/package.json index d814f06717fb..fe8ad9344e80 100644 --- a/lib/core/package.json +++ b/lib/core/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/core", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "Storybook framework-agnostic API", "keywords": [ "storybook" @@ -32,15 +32,15 @@ "@babel/plugin-syntax-dynamic-import": "^7.2.0", "@babel/plugin-transform-react-constant-elements": "^7.2.0", "@babel/preset-env": "^7.4.5", - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/channel-postmessage": "5.3.0-alpha.40", - "@storybook/client-api": "5.3.0-alpha.40", - "@storybook/client-logger": "5.3.0-alpha.40", - "@storybook/core-events": "5.3.0-alpha.40", - "@storybook/node-logger": "5.3.0-alpha.40", - "@storybook/router": "5.3.0-alpha.40", - "@storybook/theming": "5.3.0-alpha.40", - "@storybook/ui": "5.3.0-alpha.40", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/channel-postmessage": "5.3.0-alpha.42", + "@storybook/client-api": "5.3.0-alpha.42", + "@storybook/client-logger": "5.3.0-alpha.42", + "@storybook/core-events": "5.3.0-alpha.42", + "@storybook/node-logger": "5.3.0-alpha.42", + "@storybook/router": "5.3.0-alpha.42", + "@storybook/theming": "5.3.0-alpha.42", + "@storybook/ui": "5.3.0-alpha.42", "airbnb-js-shims": "^1 || ^2", "ansi-to-html": "^0.6.11", "autoprefixer": "^9.4.9", diff --git a/lib/node-logger/package.json b/lib/node-logger/package.json index 13553ad3258e..62f856cd9528 100644 --- a/lib/node-logger/package.json +++ b/lib/node-logger/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/node-logger", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "", "keywords": [ "storybook" diff --git a/lib/router/package.json b/lib/router/package.json index 0fc5d4ca260d..5468012fdf53 100644 --- a/lib/router/package.json +++ b/lib/router/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/router", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "Core Storybook Router", "keywords": [ "storybook" diff --git a/lib/source-loader/package.json b/lib/source-loader/package.json index 76808de6e014..6e8c7c70af20 100644 --- a/lib/source-loader/package.json +++ b/lib/source-loader/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/source-loader", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "Source loader", "keywords": [ "lib", @@ -28,8 +28,8 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/router": "5.3.0-alpha.40", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/router": "5.3.0-alpha.42", "core-js": "^3.0.1", "estraverse": "^4.2.0", "global": "^4.3.2", diff --git a/lib/theming/package.json b/lib/theming/package.json index bb12831229cd..ce785f1b28fb 100644 --- a/lib/theming/package.json +++ b/lib/theming/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/theming", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "Core Storybook Components", "keywords": [ "storybook" @@ -29,7 +29,7 @@ "dependencies": { "@emotion/core": "^10.0.20", "@emotion/styled": "^10.0.17", - "@storybook/client-logger": "5.3.0-alpha.40", + "@storybook/client-logger": "5.3.0-alpha.42", "core-js": "^3.0.1", "deep-object-diff": "^1.1.0", "emotion-theming": "^10.0.19", diff --git a/lib/ui/package.json b/lib/ui/package.json index 92a1879a345e..1312bb977f35 100644 --- a/lib/ui/package.json +++ b/lib/ui/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/ui", - "version": "5.3.0-alpha.40", + "version": "5.3.0-alpha.42", "description": "Core Storybook UI", "keywords": [ "storybook" @@ -28,14 +28,14 @@ }, "dependencies": { "@emotion/core": "^10.0.20", - "@storybook/addons": "5.3.0-alpha.40", - "@storybook/api": "5.3.0-alpha.40", - "@storybook/channels": "5.3.0-alpha.40", - "@storybook/client-logger": "5.3.0-alpha.40", - "@storybook/components": "5.3.0-alpha.40", - "@storybook/core-events": "5.3.0-alpha.40", - "@storybook/router": "5.3.0-alpha.40", - "@storybook/theming": "5.3.0-alpha.40", + "@storybook/addons": "5.3.0-alpha.42", + "@storybook/api": "5.3.0-alpha.42", + "@storybook/channels": "5.3.0-alpha.42", + "@storybook/client-logger": "5.3.0-alpha.42", + "@storybook/components": "5.3.0-alpha.42", + "@storybook/core-events": "5.3.0-alpha.42", + "@storybook/router": "5.3.0-alpha.42", + "@storybook/theming": "5.3.0-alpha.42", "copy-to-clipboard": "^3.0.8", "core-js": "^3.0.1", "core-js-pure": "^3.0.1", @@ -63,8 +63,8 @@ "util-deprecate": "^1.0.2" }, "devDependencies": { - "@storybook/addon-actions": "5.3.0-alpha.40", - "@storybook/addon-knobs": "5.3.0-alpha.40", + "@storybook/addon-actions": "5.3.0-alpha.42", + "@storybook/addon-knobs": "5.3.0-alpha.42", "corejs-upgrade-webpack-plugin": "^2.2.0", "flush-promises": "^1.0.2", "terser-webpack-plugin": "^2.1.2", diff --git a/lib/ui/src/components/preview/preview.js b/lib/ui/src/components/preview/preview.js index 9009ffddc530..33fb3cd46604 100644 --- a/lib/ui/src/components/preview/preview.js +++ b/lib/ui/src/components/preview/preview.js @@ -56,7 +56,6 @@ const ActualPreview = ({ }) => { const data = [storyId, viewMode, id, baseUrl, scale, queryParams]; const base = customCanvas ? customCanvas(...data) : renderIframe(...data); - return wrappers.reduceRight( (acc, wrapper, index) => wrapper.render({ index, children: acc, id, storyId, active }), base @@ -237,7 +236,6 @@ class Preview extends Component { } = this.props; const toolbarHeight = options.isToolshown ? 40 : 0; - const wrappers = getElementList(getElements, types.PREVIEW, defaultWrappers); const panels = getElementList(getElements, types.TAB, [ { diff --git a/package.json b/package.json index 14ff896d5677..a6f71181b406 100644 --- a/package.json +++ b/package.json @@ -134,6 +134,7 @@ "@babel/preset-flow": "^7.0.0", "@babel/preset-react": "^7.0.0", "@babel/preset-typescript": "^7.3.3", + "@babel/runtime": "^7.7.2", "@emotion/snapshot-serializer": "^0.8.2", "@storybook/eslint-config-storybook": "^2.0.0", "@storybook/linter-config": "^2.0.0", diff --git a/yarn.lock b/yarn.lock index ee804cff7e75..3800caa1de79 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1445,6 +1445,13 @@ dependencies: regenerator-runtime "^0.13.2" +"@babel/runtime@^7.7.2": + version "7.7.2" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.7.2.tgz#111a78002a5c25fc8e3361bedc9529c696b85a6a" + integrity sha512-JONRbXbTXc9WQE2mAZd1p0Z3DZ/6vaQIkgYMSTP3KjRCyd7rCZCcfhCyX+YjwcKxcZ82UrxbRD358bpExNgrjw== + dependencies: + regenerator-runtime "^0.13.2" + "@babel/template@^7.0.0", "@babel/template@^7.1.0", "@babel/template@^7.4.0", "@babel/template@^7.4.4", "@babel/template@^7.6.0": version "7.6.0" resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.6.0.tgz#7f0159c7f5012230dad64cca42ec9bdb5c9536e6"