From fffde843a1feef941b1078a81db8432e70e5fa97 Mon Sep 17 00:00:00 2001 From: Lucas Carl Date: Sun, 10 Mar 2019 11:56:22 +0100 Subject: [PATCH 01/45] Show active viewport dimensions & button to rotate --- addons/viewport/src/Tool.js | 42 ++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/addons/viewport/src/Tool.js b/addons/viewport/src/Tool.js index 2c4390838f19..f88ff5dfe993 100644 --- a/addons/viewport/src/Tool.js +++ b/addons/viewport/src/Tool.js @@ -3,7 +3,7 @@ import PropTypes from 'prop-types'; import memoize from 'memoizerific'; import deprecate from 'util-deprecate'; -import { Global } from '@storybook/theming'; +import { styled, Global } from '@storybook/theming'; import { Icons, IconButton, WithTooltip, TooltipLinkList } from '@storybook/components'; import { SET_STORIES } from '@storybook/core-events'; @@ -88,6 +88,24 @@ const getState = memoize(10)((props, state, change) => { }; }); +const ActiveViewportSize = styled.div(() => ({ + display: 'inline-flex', +})); + +const ActiveViewportLabel = styled.div(({ theme }) => ({ + display: 'inline-block', + textDecoration: 'none', + padding: '10px', + fontWeight: theme.typography.weight.bold, + fontSize: theme.typography.size.s2 - 1, + lineHeight: 1, + height: 40, + border: 'none', + borderTop: '3px solid transparent', + borderBottom: '3px solid transparent', + background: 'transparent', +})); + export default class ViewportTool extends Component { constructor(props) { super(props); @@ -118,11 +136,24 @@ export default class ViewportTool extends Component { change = (...args) => this.setState(...args); + flipViewport = () => + this.setState(({ isRotated }) => ({ isRotated: !isRotated, expanded: false })); + render() { const { expanded } = this.state; const { items, selected, isRotated } = getState(this.props, this.state, this.change); const item = items.find(i => i.id === selected); + let viewportX = 0; + let viewportY = 0; + if (item) { + const height = item.value.height.replace('px', ''); + const width = item.value.width.replace('px', ''); + + viewportX = isRotated ? height : width; + viewportY = isRotated ? width : height; + } + return items.length ? ( {item ? ( @@ -150,6 +181,15 @@ export default class ViewportTool extends Component { + {item ? ( + + {viewportX} + + + + {viewportY} + + ) : null} ) : null; } From f215a50cf0c065a74330f115ebdae9151913ce6c Mon Sep 17 00:00:00 2001 From: Arman Sargsyan Date: Sun, 17 Mar 2019 13:18:17 +0300 Subject: [PATCH 02/45] feat(svelte): adding svelte cli generator --- lib/cli/generators/SVELTE/index.js | 43 +++++++++++++++++++ .../SVELTE/template/.storybook/addons.js | 2 + .../SVELTE/template/.storybook/config.js | 9 ++++ .../SVELTE/template/stories/button.svelte | 25 +++++++++++ .../SVELTE/template/stories/index.stories.js | 18 ++++++++ lib/cli/lib/initiate.js | 6 +++ lib/cli/lib/project_types.js | 2 + lib/cli/package.json | 1 + 8 files changed, 106 insertions(+) create mode 100644 lib/cli/generators/SVELTE/index.js create mode 100644 lib/cli/generators/SVELTE/template/.storybook/addons.js create mode 100644 lib/cli/generators/SVELTE/template/.storybook/config.js create mode 100644 lib/cli/generators/SVELTE/template/stories/button.svelte create mode 100644 lib/cli/generators/SVELTE/template/stories/index.stories.js diff --git a/lib/cli/generators/SVELTE/index.js b/lib/cli/generators/SVELTE/index.js new file mode 100644 index 000000000000..49026e04130d --- /dev/null +++ b/lib/cli/generators/SVELTE/index.js @@ -0,0 +1,43 @@ +import path from 'path'; +import mergeDirs from 'merge-dirs'; +import { getVersions, getPackageJson, writePackageJson, installBabel } from '../../lib/helpers'; + +export default async npmOptions => { + const [ + storybookVersion, + actionsVersion, + linksVersion, + addonsVersion, + svelte, + svelteLoader, + ] = await getVersions( + npmOptions, + '@storybook/svelte', + '@storybook/addon-actions', + '@storybook/addon-links', + '@storybook/addons', + 'svelte', + 'svelte-loader' + ); + + mergeDirs(path.resolve(__dirname, 'template/'), '.', 'overwrite'); + + const packageJson = getPackageJson(); + + packageJson.dependencies = packageJson.dependencies || {}; + packageJson.devDependencies = packageJson.devDependencies || {}; + packageJson.devDependencies['@storybook/svelte'] = storybookVersion; + packageJson.devDependencies['@storybook/addon-actions'] = actionsVersion; + packageJson.devDependencies['@storybook/addon-links'] = linksVersion; + packageJson.devDependencies['@storybook/addons'] = addonsVersion; + packageJson.devDependencies.svelte = svelte; + packageJson.devDependencies['svelte-loader'] = svelteLoader; + + await installBabel(npmOptions, packageJson); + + packageJson.scripts = packageJson.scripts || {}; + packageJson.scripts.storybook = 'start-storybook -p 6006'; + packageJson.scripts['build-storybook'] = 'build-storybook'; + + writePackageJson(packageJson); +}; diff --git a/lib/cli/generators/SVELTE/template/.storybook/addons.js b/lib/cli/generators/SVELTE/template/.storybook/addons.js new file mode 100644 index 000000000000..6aed412d04af --- /dev/null +++ b/lib/cli/generators/SVELTE/template/.storybook/addons.js @@ -0,0 +1,2 @@ +import '@storybook/addon-actions/register'; +import '@storybook/addon-links/register'; diff --git a/lib/cli/generators/SVELTE/template/.storybook/config.js b/lib/cli/generators/SVELTE/template/.storybook/config.js new file mode 100644 index 000000000000..38704e222b62 --- /dev/null +++ b/lib/cli/generators/SVELTE/template/.storybook/config.js @@ -0,0 +1,9 @@ +import { configure } from '@storybook/svelte'; + +// automatically import all files ending in *.stories.js +const req = require.context('../stories', true, /.stories.js$/); +function loadStories() { + req.keys().forEach(filename => req(filename)); +} + +configure(loadStories, module); diff --git a/lib/cli/generators/SVELTE/template/stories/button.svelte b/lib/cli/generators/SVELTE/template/stories/button.svelte new file mode 100644 index 000000000000..8ba29bed25b2 --- /dev/null +++ b/lib/cli/generators/SVELTE/template/stories/button.svelte @@ -0,0 +1,25 @@ + + + + + diff --git a/lib/cli/generators/SVELTE/template/stories/index.stories.js b/lib/cli/generators/SVELTE/template/stories/index.stories.js new file mode 100644 index 000000000000..ddf44bb7af8e --- /dev/null +++ b/lib/cli/generators/SVELTE/template/stories/index.stories.js @@ -0,0 +1,18 @@ +import { storiesOf } from '@storybook/svelte'; +import { action } from '@storybook/addon-actions'; + +import Button from './button.svelte'; + +storiesOf('Button', module) + .add('with text', () => ({ + Component: Button, + data: { text: 'Hello Button' }, + on: { click: action('clicked') }, + })) + .add('with some emoji', () => ({ + Component: Button, + data: { + text: '😀 😎 👍 💯', + }, + on: { click: action('clicked') }, + })); diff --git a/lib/cli/lib/initiate.js b/lib/cli/lib/initiate.js index fca756e4784e..86b3b75b6db3 100644 --- a/lib/cli/lib/initiate.js +++ b/lib/cli/lib/initiate.js @@ -21,6 +21,7 @@ import markoGenerator from '../generators/MARKO'; import htmlGenerator from '../generators/HTML'; import riotGenerator from '../generators/RIOT'; import preactGenerator from '../generators/PREACT'; +import svelteGenerator from '../generators/SVELTE'; const logger = console; @@ -168,6 +169,11 @@ const installStorybook = (projectType, options) => { .then(commandLog('Adding storybook support to your "Preact" app')) .then(end); + case types.SVELTE: + return svelteGenerator(npmOptions) + .then(commandLog('Adding storybook support to your "Svelte" app')) + .then(end); + default: paddedLog(`We couldn't detect your project type. (code: ${projectType})`); paddedLog( diff --git a/lib/cli/lib/project_types.js b/lib/cli/lib/project_types.js index e027b3faae0e..c597ef9a566c 100644 --- a/lib/cli/lib/project_types.js +++ b/lib/cli/lib/project_types.js @@ -18,6 +18,7 @@ const projectTypes = { HTML: 'HTML', RIOT: 'RIOT', PREACT: 'PREACT', + SVELTE: 'SVELTE', }; export default projectTypes; @@ -34,6 +35,7 @@ export const supportedFrameworks = [ 'marko', 'meteor', 'preact', + 'svelte', ]; const notInstallableProjectTypes = [ diff --git a/lib/cli/package.json b/lib/cli/package.json index 70082885f520..87e742a55bce 100644 --- a/lib/cli/package.json +++ b/lib/cli/package.json @@ -67,6 +67,7 @@ "@storybook/react": "5.1.0-alpha.7", "@storybook/react-native": "5.1.0-alpha.7", "@storybook/riot": "5.1.0-alpha.7", + "@storybook/svelte": "5.1.0-alpha.7", "@storybook/ui": "5.1.0-alpha.7", "@storybook/vue": "5.1.0-alpha.7" }, From e5af74ba0a48cd0eb44fef24c272a0eb2fd6527d Mon Sep 17 00:00:00 2001 From: "Leo Y. Li" Date: Mon, 18 Mar 2019 14:36:06 -0400 Subject: [PATCH 03/45] Fix addon-knobs ObjectType knob react warning #5276 --- addons/knobs/src/components/types/Object.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/addons/knobs/src/components/types/Object.js b/addons/knobs/src/components/types/Object.js index 4db5bb82a690..ade747bf12ee 100644 --- a/addons/knobs/src/components/types/Object.js +++ b/addons/knobs/src/components/types/Object.js @@ -5,8 +5,18 @@ import { polyfill } from 'react-lifecycles-compat'; import { Form } from '@storybook/components'; class ObjectType extends Component { + constructor(props) { + super(props); + + this.state = { + values: null, + failed: false, + state: '', + }; + } + static getDerivedStateFromProps(props, state) { - if (!state || !deepEqual(props.knob.value, state.json)) { + if (!deepEqual(props.knob.value, state.json)) { try { return { value: JSON.stringify(props.knob.value, null, 2), From 5d30b5134a9f3d0fc2665728f1f4983b3ed15372 Mon Sep 17 00:00:00 2001 From: Arman Date: Tue, 19 Mar 2019 11:51:57 +0300 Subject: [PATCH 04/45] chore(packages): bump storybook/riot to 5.1.0-alpha.9 --- lib/cli/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cli/package.json b/lib/cli/package.json index c62631cbbf52..715bf956d388 100644 --- a/lib/cli/package.json +++ b/lib/cli/package.json @@ -67,7 +67,7 @@ "@storybook/react": "5.1.0-alpha.9", "@storybook/react-native": "5.1.0-alpha.9", "@storybook/riot": "5.1.0-alpha.9", - "@storybook/svelte": "5.1.0-alpha.8", + "@storybook/svelte": "5.1.0-alpha.9", "@storybook/ui": "5.1.0-alpha.9", "@storybook/vue": "5.1.0-alpha.9" }, From c574c1d98aaa46c7ac300fba41a644320603a19f Mon Sep 17 00:00:00 2001 From: "Leo Y. Li" Date: Tue, 19 Mar 2019 09:41:13 -0400 Subject: [PATCH 05/45] Fix addon-knobs ObjectType knob react warning #5276 --- addons/knobs/src/components/types/Object.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/knobs/src/components/types/Object.js b/addons/knobs/src/components/types/Object.js index ade747bf12ee..2440ab5022ac 100644 --- a/addons/knobs/src/components/types/Object.js +++ b/addons/knobs/src/components/types/Object.js @@ -9,9 +9,9 @@ class ObjectType extends Component { super(props); this.state = { - values: null, + value: null, failed: false, - state: '', + json: props.knob.value, }; } From 4b9ec199eaa5f415ca927e9b565d0c7cb63e10c0 Mon Sep 17 00:00:00 2001 From: Marco Solazzi Date: Wed, 20 Mar 2019 12:57:59 +0900 Subject: [PATCH 06/45] control forced re-renders with a parameter --- app/html/src/client/preview/render.js | 4 +++- examples/html-kitchen-sink/.storybook/config.js | 3 +++ .../stories/__snapshots__/addon-knobs.stories.storyshot | 6 ++++++ examples/html-kitchen-sink/stories/addon-knobs.stories.js | 7 +++++++ 4 files changed, 19 insertions(+), 1 deletion(-) diff --git a/app/html/src/client/preview/render.js b/app/html/src/client/preview/render.js index a3898b72346f..a9d900f0b5fc 100644 --- a/app/html/src/client/preview/render.js +++ b/app/html/src/client/preview/render.js @@ -4,6 +4,7 @@ import { stripIndents } from 'common-tags'; const rootElement = document.getElementById('root'); export default function renderMain({ + parameters = {}, storyFn, selectedKind, selectedStory, @@ -11,13 +12,14 @@ export default function renderMain({ showError, forceRender, }) { + const { html = {} } = parameters; const element = storyFn(); showMain(); if (typeof element === 'string') { rootElement.innerHTML = element; } else if (element instanceof Node) { - if (forceRender === true) { + if (html.preventForcedRender === true && forceRender === true) { return; } diff --git a/examples/html-kitchen-sink/.storybook/config.js b/examples/html-kitchen-sink/.storybook/config.js index 01cf1eef5fd5..70b1c92783a9 100644 --- a/examples/html-kitchen-sink/.storybook/config.js +++ b/examples/html-kitchen-sink/.storybook/config.js @@ -1,6 +1,9 @@ import { configure, addParameters } from '@storybook/html'; addParameters({ + html: { + preventForcedRender: false, // default + }, options: { hierarchyRootSeparator: /\|/, }, diff --git a/examples/html-kitchen-sink/stories/__snapshots__/addon-knobs.stories.storyshot b/examples/html-kitchen-sink/stories/__snapshots__/addon-knobs.stories.storyshot index 1517b1b70843..7d7dc3f6f0a7 100644 --- a/examples/html-kitchen-sink/stories/__snapshots__/addon-knobs.stories.storyshot +++ b/examples/html-kitchen-sink/stories/__snapshots__/addon-knobs.stories.storyshot @@ -47,6 +47,12 @@ exports[`Storyshots Addons|Knobs All knobs 1`] = ` `; +exports[`Storyshots Addons|Knobs DOM 1`] = ` +

+ John Doe +

+`; + exports[`Storyshots Addons|Knobs Simple 1`] = `
I am John Doe and I'm 44 years old. diff --git a/examples/html-kitchen-sink/stories/addon-knobs.stories.js b/examples/html-kitchen-sink/stories/addon-knobs.stories.js index 1a97b85a369d..372e509295b2 100644 --- a/examples/html-kitchen-sink/stories/addon-knobs.stories.js +++ b/examples/html-kitchen-sink/stories/addon-knobs.stories.js @@ -22,6 +22,13 @@ storiesOf('Addons|Knobs', module) return `
${content}
`; }) + .add('DOM', () => { + const name = text('Name', 'John Doe'); + // eslint-disable-next-line + const container = document.createElement('p'); + container.textContent = name; + return container; + }) .add('All knobs', () => { const name = text('Name', 'Jane'); const stock = number('Stock', 20, { From e6226e9047fa26b2352e891495282e2af9f62cea Mon Sep 17 00:00:00 2001 From: Filipp Riabchun Date: Thu, 21 Mar 2019 22:07:06 +0100 Subject: [PATCH 07/45] Remove myself from code owners Sorry to say that, but I'm getting much more personal notifications than I'm able to handle. Feel free to add me to reviews manually whenever you think that my attention is needed --- .github/CODEOWNERS | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 70cf0a2fe9b7..4a30dc8af1e4 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,19 +1,20 @@ -.circleci/ @hypnosphi @ndelangen +.circleci/ @ndelangen +.teamcity/ @hypnosphi .github/ @danielduan /addons/a11y/ @jbovenschen /addons/actions/ @rhalff -/addons/backgrounds/ @ndelangen @hypnosphi +/addons/backgrounds/ @ndelangen /addons/centered/ @kazupon /addons/events/ @z4o4z @ndelangen /addons/graphql/ @mnmtanish -/addons/info/ @theinterned @z4o4z @UsulPro @hypnosphi @dangreenisrael @danielduan +/addons/info/ @theinterned @z4o4z @UsulPro @dangreenisrael @danielduan /addons/jest/ @renaudtertrais -/addons/knobs/ @alexandrebodin @theinterned @leonrodenburg @alterx @hypnosphi -/addons/links/ @hypnosphi @ndelangen +/addons/knobs/ @alexandrebodin @theinterned @leonrodenburg @alterx +/addons/links/ @ndelangen /addons/notes/ @alexandrebodin /addons/options/ @danielduan @UsulPro -/addons/storyshots/ @igor-dv @thomasbertet @hypnosphi +/addons/storyshots/ @igor-dv @thomasbertet /addons/storysource/ @igor-dv /addons/viewport/ @saponifi3d @@ -24,12 +25,12 @@ /app/vue/ @thomasbertet @kazupon /app/svelte/ @plumpNation -/docs/ @ndelangen @shilman @hypnosphi +/docs/ @ndelangen @shilman /examples/angular-cli/ @igor-dv @alterx -/examples/cra-kitchen-sink/ @ndelangen @UsulPro @hypnosphi +/examples/cra-kitchen-sink/ @ndelangen @UsulPro /examples/cra-ts-kitchen-sink/ @mucsi96 -/examples/official-storybook/ @hypnosphi @danielduan @UsulPro +/examples/official-storybook/ @danielduan @UsulPro /examples/polymer-cli/ @naipath @igor-dv /examples/vue-kitchen-sink/ @igor-dv @alexandrebodin /examples/svelte-kitchen-sink/ @plumpNation @@ -40,12 +41,12 @@ /lib/channel-postmessage/ @mnmtanish @ndelangen /lib/channel-websocket/ @mnmtanish @ndelangen /lib/channels/ @mnmtanish @ndelangen -/lib/cli/ @hypnosphi @ndelangen @shilman @stijnkoopal +/lib/cli/ @ndelangen @shilman @stijnkoopal /lib/client-logger/ @dangreenisrael /lib/codemod/ @aaronmcadam @ndelangen -/lib/components/ @ndelangen @hypnosphi @tmeasday +/lib/components/ @ndelangen @tmeasday /lib/core/ @tmeasday @igor-dv @alterx /lib/node-logger/ @dangreenisrael -/lib/ui/ @tmeasday @igor-dv @hypnosphi @ndelangen +/lib/ui/ @tmeasday @igor-dv @ndelangen -/scripts/ @ndelangen @igor-dv @hypnosphi +/scripts/ @ndelangen @igor-dv From c8f24b14e47432c5f13ccd673ba1a0cafaecdd48 Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Fri, 22 Mar 2019 12:17:50 +0800 Subject: [PATCH 08/45] 5.1.0-alpha.12 changelog --- CHANGELOG.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 985042d9291a..5f33ccecaa3c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,20 @@ +## 5.1.0-alpha.12 (March 22, 2019) + +### Bug Fixes + +* CLI: Fix stories regexp in config.js ([#6180](https://github.com/storybooks/storybook/pull/6180)) +* Addon-Info: Restore fonts and color styling ([#6186](https://github.com/storybooks/storybook/pull/6186)) +* Core: Add core-js as a dep to client-api ([#6209](https://github.com/storybooks/storybook/pull/6209)) + +### Dependency Upgrades + +* Bump eslint-plugin-jest from 22.3.2 to 22.4.1 ([#6168](https://github.com/storybooks/storybook/pull/6168)) +* Bump ember-cli-babel from 7.5.0 to 7.6.0 ([#6165](https://github.com/storybooks/storybook/pull/6165)) +* Bump danger from 7.0.14 to 7.0.15 ([#6164](https://github.com/storybooks/storybook/pull/6164)) +* Bump babel-preset-expo from 5.0.0 to 5.1.1 ([#6167](https://github.com/storybooks/storybook/pull/6167)) +* Bump @emotion/core from 10.0.7 to 10.0.9 ([#6169](https://github.com/storybooks/storybook/pull/6169)) +* Bump marko from 4.15.4 to 4.16.2 ([#6205](https://github.com/storybooks/storybook/pull/6205)) + ## 5.1.0-alpha.11 (March 21, 2019) ### Features From 2c1fae398f887fdad6bd6e8037f1a6bf96074289 Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Fri, 22 Mar 2019 12:28:02 +0800 Subject: [PATCH 09/45] v5.1.0-alpha.12 --- addons/a11y/package.json | 14 ++--- addons/actions/package.json | 12 ++--- addons/backgrounds/package.json | 14 ++--- addons/centered/package.json | 2 +- addons/cssresources/package.json | 10 ++-- addons/events/package.json | 8 +-- addons/google-analytics/package.json | 6 +-- addons/graphql/package.json | 2 +- addons/info/package.json | 10 ++-- addons/jest/package.json | 10 ++-- addons/knobs/package.json | 10 ++-- addons/links/package.json | 8 +-- addons/notes/package.json | 14 ++--- addons/ondevice-backgrounds/package.json | 4 +- addons/ondevice-knobs/package.json | 6 +-- addons/ondevice-notes/package.json | 4 +- addons/options/package.json | 4 +- .../storyshots/storyshots-core/package.json | 4 +- .../storyshots-puppeteer/package.json | 6 +-- addons/storysource/package.json | 10 ++-- addons/viewport/package.json | 12 ++--- app/angular/package.json | 6 +-- app/ember/package.json | 4 +- app/html/package.json | 4 +- app/marko/package.json | 4 +- app/mithril/package.json | 4 +- app/polymer/package.json | 4 +- app/preact/package.json | 4 +- app/react-native-server/package.json | 14 ++--- app/react-native/package.json | 12 ++--- app/react/package.json | 6 +-- app/riot/package.json | 4 +- app/svelte/package.json | 4 +- app/vue/package.json | 4 +- .../crna-kitchen-sink/package.json | 12 ++--- examples/angular-cli/package.json | 26 ++++----- examples/cra-kitchen-sink/package.json | 32 +++++------ examples/cra-ts-kitchen-sink/package.json | 12 ++--- examples/ember-cli/package.json | 26 ++++----- examples/html-kitchen-sink/package.json | 36 ++++++------- examples/marko-cli/package.json | 14 ++--- examples/mithril-kitchen-sink/package.json | 26 ++++----- examples/official-storybook/package.json | 48 ++++++++--------- examples/polymer-cli/package.json | 20 +++---- examples/preact-kitchen-sink/package.json | 26 ++++----- examples/riot-kitchen-sink/package.json | 26 ++++----- examples/svelte-kitchen-sink/package.json | 26 ++++----- examples/vue-kitchen-sink/package.json | 26 ++++----- lerna.json | 2 +- lib/addons/package.json | 8 +-- lib/api/package.json | 12 ++--- lib/channel-postmessage/package.json | 6 +-- lib/channel-websocket/package.json | 4 +- lib/channels/package.json | 2 +- lib/cli/package.json | 54 +++++++++---------- lib/client-api/package.json | 10 ++-- lib/client-logger/package.json | 2 +- lib/codemod/package.json | 2 +- lib/components/package.json | 12 ++--- lib/core-events/package.json | 2 +- lib/core/package.json | 18 +++---- lib/node-logger/package.json | 2 +- lib/router/package.json | 4 +- lib/theming/package.json | 4 +- lib/ui/package.json | 16 +++--- 65 files changed, 380 insertions(+), 380 deletions(-) diff --git a/addons/a11y/package.json b/addons/a11y/package.json index 2d7e3594fad6..e9a120cb5310 100644 --- a/addons/a11y/package.json +++ b/addons/a11y/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-a11y", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "a11y addon for storybook", "keywords": [ "a11y", @@ -26,12 +26,12 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.11", - "@storybook/api": "5.1.0-alpha.11", - "@storybook/client-logger": "5.1.0-alpha.11", - "@storybook/components": "5.1.0-alpha.11", - "@storybook/core-events": "5.1.0-alpha.11", - "@storybook/theming": "5.1.0-alpha.11", + "@storybook/addons": "5.1.0-alpha.12", + "@storybook/api": "5.1.0-alpha.12", + "@storybook/client-logger": "5.1.0-alpha.12", + "@storybook/components": "5.1.0-alpha.12", + "@storybook/core-events": "5.1.0-alpha.12", + "@storybook/theming": "5.1.0-alpha.12", "axe-core": "^3.2.2", "common-tags": "^1.8.0", "core-js": "^2.6.5", diff --git a/addons/actions/package.json b/addons/actions/package.json index 982e7299c68f..dcd5967e3c83 100644 --- a/addons/actions/package.json +++ b/addons/actions/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-actions", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "Action Logger addon for storybook", "keywords": [ "storybook" @@ -21,11 +21,11 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.11", - "@storybook/api": "5.1.0-alpha.11", - "@storybook/components": "5.1.0-alpha.11", - "@storybook/core-events": "5.1.0-alpha.11", - "@storybook/theming": "5.1.0-alpha.11", + "@storybook/addons": "5.1.0-alpha.12", + "@storybook/api": "5.1.0-alpha.12", + "@storybook/components": "5.1.0-alpha.12", + "@storybook/core-events": "5.1.0-alpha.12", + "@storybook/theming": "5.1.0-alpha.12", "core-js": "^2.6.5", "fast-deep-equal": "^2.0.1", "global": "^4.3.2", diff --git a/addons/backgrounds/package.json b/addons/backgrounds/package.json index e7bfbb6b1355..0cb992eeab8c 100644 --- a/addons/backgrounds/package.json +++ b/addons/backgrounds/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-backgrounds", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "A storybook addon to show different backgrounds for your preview", "keywords": [ "addon", @@ -25,12 +25,12 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.11", - "@storybook/api": "5.1.0-alpha.11", - "@storybook/client-logger": "5.1.0-alpha.11", - "@storybook/components": "5.1.0-alpha.11", - "@storybook/core-events": "5.1.0-alpha.11", - "@storybook/theming": "5.1.0-alpha.11", + "@storybook/addons": "5.1.0-alpha.12", + "@storybook/api": "5.1.0-alpha.12", + "@storybook/client-logger": "5.1.0-alpha.12", + "@storybook/components": "5.1.0-alpha.12", + "@storybook/core-events": "5.1.0-alpha.12", + "@storybook/theming": "5.1.0-alpha.12", "core-js": "^2.6.5", "memoizerific": "^1.11.3", "react": "^16.8.4", diff --git a/addons/centered/package.json b/addons/centered/package.json index 024d2f2806e4..17f23da0ab12 100644 --- a/addons/centered/package.json +++ b/addons/centered/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-centered", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "Storybook decorator to center components", "keywords": [ "addon", diff --git a/addons/cssresources/package.json b/addons/cssresources/package.json index 02887736a446..b32086579e5e 100644 --- a/addons/cssresources/package.json +++ b/addons/cssresources/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-cssresources", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "A storybook addon to switch between css resources at runtime for your story", "keywords": [ "addon", @@ -25,10 +25,10 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.11", - "@storybook/api": "5.1.0-alpha.11", - "@storybook/components": "5.1.0-alpha.11", - "@storybook/core-events": "5.1.0-alpha.11", + "@storybook/addons": "5.1.0-alpha.12", + "@storybook/api": "5.1.0-alpha.12", + "@storybook/components": "5.1.0-alpha.12", + "@storybook/core-events": "5.1.0-alpha.12", "core-js": "^2.6.5", "global": "^4.3.2", "react": "^16.8.4" diff --git a/addons/events/package.json b/addons/events/package.json index e0e77cbb6a79..10199a231565 100644 --- a/addons/events/package.json +++ b/addons/events/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-events", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "Add events to your Storybook stories.", "keywords": [ "addon", @@ -24,9 +24,9 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.11", - "@storybook/core-events": "5.1.0-alpha.11", - "@storybook/theming": "5.1.0-alpha.11", + "@storybook/addons": "5.1.0-alpha.12", + "@storybook/core-events": "5.1.0-alpha.12", + "@storybook/theming": "5.1.0-alpha.12", "core-js": "^2.6.5", "format-json": "^1.0.3", "prop-types": "^15.7.2", diff --git a/addons/google-analytics/package.json b/addons/google-analytics/package.json index ed11048b9b98..7515c2b9b46a 100644 --- a/addons/google-analytics/package.json +++ b/addons/google-analytics/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-google-analytics", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "Storybook addon for google analytics", "keywords": [ "addon", @@ -20,8 +20,8 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.11", - "@storybook/core-events": "5.1.0-alpha.11", + "@storybook/addons": "5.1.0-alpha.12", + "@storybook/core-events": "5.1.0-alpha.12", "core-js": "^2.6.5", "global": "^4.3.2", "react-ga": "^2.5.7" diff --git a/addons/graphql/package.json b/addons/graphql/package.json index 408cba89dc10..64e16a4b7aee 100644 --- a/addons/graphql/package.json +++ b/addons/graphql/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-graphql", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "Storybook addon to display the GraphiQL IDE", "keywords": [ "addon", diff --git a/addons/info/package.json b/addons/info/package.json index e3d4cb5642fc..25833cdf2009 100644 --- a/addons/info/package.json +++ b/addons/info/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-info", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "A Storybook addon to show additional information for your stories.", "keywords": [ "addon", @@ -22,10 +22,10 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.11", - "@storybook/client-logger": "5.1.0-alpha.11", - "@storybook/components": "5.1.0-alpha.11", - "@storybook/theming": "5.1.0-alpha.11", + "@storybook/addons": "5.1.0-alpha.12", + "@storybook/client-logger": "5.1.0-alpha.12", + "@storybook/components": "5.1.0-alpha.12", + "@storybook/theming": "5.1.0-alpha.12", "core-js": "^2.6.5", "global": "^4.3.2", "marksy": "^6.1.0", diff --git a/addons/jest/package.json b/addons/jest/package.json index 7acac5368b68..b35a97ed3b4f 100644 --- a/addons/jest/package.json +++ b/addons/jest/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-jest", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "React storybook addon that show component jest report", "keywords": [ "addon", @@ -28,10 +28,10 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.11", - "@storybook/components": "5.1.0-alpha.11", - "@storybook/core-events": "5.1.0-alpha.11", - "@storybook/theming": "5.1.0-alpha.11", + "@storybook/addons": "5.1.0-alpha.12", + "@storybook/components": "5.1.0-alpha.12", + "@storybook/core-events": "5.1.0-alpha.12", + "@storybook/theming": "5.1.0-alpha.12", "core-js": "^2.6.5", "global": "^4.3.2", "prop-types": "^15.7.2", diff --git a/addons/knobs/package.json b/addons/knobs/package.json index ddb77721be1a..97a66142e2ba 100644 --- a/addons/knobs/package.json +++ b/addons/knobs/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-knobs", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "Storybook Addon Prop Editor Component", "keywords": [ "addon", @@ -22,10 +22,10 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.11", - "@storybook/components": "5.1.0-alpha.11", - "@storybook/core-events": "5.1.0-alpha.11", - "@storybook/theming": "5.1.0-alpha.11", + "@storybook/addons": "5.1.0-alpha.12", + "@storybook/components": "5.1.0-alpha.12", + "@storybook/core-events": "5.1.0-alpha.12", + "@storybook/theming": "5.1.0-alpha.12", "copy-to-clipboard": "^3.0.8", "core-js": "^2.6.5", "escape-html": "^1.0.3", diff --git a/addons/links/package.json b/addons/links/package.json index c2e6bdf1cb28..76eec76942c3 100644 --- a/addons/links/package.json +++ b/addons/links/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-links", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "Story Links addon for storybook", "keywords": [ "addon", @@ -22,9 +22,9 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.11", - "@storybook/core-events": "5.1.0-alpha.11", - "@storybook/router": "5.1.0-alpha.11", + "@storybook/addons": "5.1.0-alpha.12", + "@storybook/core-events": "5.1.0-alpha.12", + "@storybook/router": "5.1.0-alpha.12", "common-tags": "^1.8.0", "core-js": "^2.6.5", "global": "^4.3.2", diff --git a/addons/notes/package.json b/addons/notes/package.json index 23d076955107..b03d08cc7a4e 100644 --- a/addons/notes/package.json +++ b/addons/notes/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-notes", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "Write notes for your Storybook stories.", "keywords": [ "addon", @@ -23,12 +23,12 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.11", - "@storybook/api": "5.1.0-alpha.11", - "@storybook/client-logger": "5.1.0-alpha.11", - "@storybook/components": "5.1.0-alpha.11", - "@storybook/core-events": "5.1.0-alpha.11", - "@storybook/theming": "5.1.0-alpha.11", + "@storybook/addons": "5.1.0-alpha.12", + "@storybook/api": "5.1.0-alpha.12", + "@storybook/client-logger": "5.1.0-alpha.12", + "@storybook/components": "5.1.0-alpha.12", + "@storybook/core-events": "5.1.0-alpha.12", + "@storybook/theming": "5.1.0-alpha.12", "core-js": "^2.6.5", "markdown-to-jsx": "^6.9.3", "prop-types": "^15.7.2", diff --git a/addons/ondevice-backgrounds/package.json b/addons/ondevice-backgrounds/package.json index 2ead1113cefc..85e18ca55f61 100644 --- a/addons/ondevice-backgrounds/package.json +++ b/addons/ondevice-backgrounds/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-ondevice-backgrounds", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "A storybook addon to show different backgrounds for your preview", "keywords": [ "addon", @@ -24,7 +24,7 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.11", + "@storybook/addons": "5.1.0-alpha.12", "core-js": "^2.6.5", "prop-types": "^15.7.2" }, diff --git a/addons/ondevice-knobs/package.json b/addons/ondevice-knobs/package.json index 4df3a4e68e6c..e83d9e9cbc00 100644 --- a/addons/ondevice-knobs/package.json +++ b/addons/ondevice-knobs/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-ondevice-knobs", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "Display storybook story knobs on your deviced.", "keywords": [ "addon", @@ -21,8 +21,8 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.11", - "@storybook/core-events": "5.1.0-alpha.11", + "@storybook/addons": "5.1.0-alpha.12", + "@storybook/core-events": "5.1.0-alpha.12", "core-js": "^2.6.5", "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 6a602885f619..b1ecaf22699a 100644 --- a/addons/ondevice-notes/package.json +++ b/addons/ondevice-notes/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-ondevice-notes", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "Write notes for your Storybook stories.", "keywords": [ "addon", @@ -19,7 +19,7 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.11", + "@storybook/addons": "5.1.0-alpha.12", "core-js": "^2.6.5", "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 6d022c7e4855..4813ba638b2e 100644 --- a/addons/options/package.json +++ b/addons/options/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-options", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "Options addon for storybook", "keywords": [ "addon", @@ -21,7 +21,7 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.11", + "@storybook/addons": "5.1.0-alpha.12", "core-js": "^2.6.5", "util-deprecate": "^1.0.2" }, diff --git a/addons/storyshots/storyshots-core/package.json b/addons/storyshots/storyshots-core/package.json index 4cd0d876a89f..112093b6ad7b 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.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "StoryShots is a Jest Snapshot Testing Addon for Storybook.", "keywords": [ "addon", @@ -25,7 +25,7 @@ "storybook": "start-storybook -p 6006" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.11", + "@storybook/addons": "5.1.0-alpha.12", "core-js": "^2.6.5", "glob": "^7.1.3", "global": "^4.3.2", diff --git a/addons/storyshots/storyshots-puppeteer/package.json b/addons/storyshots/storyshots-puppeteer/package.json index 09150d0dbd6c..cd9a9b02e2fe 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.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "Image snappshots addition to StoryShots base on puppeteer", "keywords": [ "addon", @@ -22,8 +22,8 @@ "prepare": "node ../../../scripts/prepare.js" }, "dependencies": { - "@storybook/node-logger": "5.1.0-alpha.11", - "@storybook/router": "5.1.0-alpha.11", + "@storybook/node-logger": "5.1.0-alpha.12", + "@storybook/router": "5.1.0-alpha.12", "core-js": "^2.6.5", "jest-image-snapshot": "^2.8.1", "puppeteer": "^1.12.2", diff --git a/addons/storysource/package.json b/addons/storysource/package.json index 305001c7dbbe..26a665b0da13 100644 --- a/addons/storysource/package.json +++ b/addons/storysource/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-storysource", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "Stories addon for storybook", "keywords": [ "addon", @@ -22,10 +22,10 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.11", - "@storybook/components": "5.1.0-alpha.11", - "@storybook/router": "5.1.0-alpha.11", - "@storybook/theming": "5.1.0-alpha.11", + "@storybook/addons": "5.1.0-alpha.12", + "@storybook/components": "5.1.0-alpha.12", + "@storybook/router": "5.1.0-alpha.12", + "@storybook/theming": "5.1.0-alpha.12", "core-js": "^2.6.5", "estraverse": "^4.2.0", "loader-utils": "^1.2.3", diff --git a/addons/viewport/package.json b/addons/viewport/package.json index 3c9fba52bb3e..0e4d0b089e32 100644 --- a/addons/viewport/package.json +++ b/addons/viewport/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-viewport", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "Storybook addon to change the viewport size to mobile", "keywords": [ "addon", @@ -21,11 +21,11 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.11", - "@storybook/client-logger": "5.1.0-alpha.11", - "@storybook/components": "5.1.0-alpha.11", - "@storybook/core-events": "5.1.0-alpha.11", - "@storybook/theming": "5.1.0-alpha.11", + "@storybook/addons": "5.1.0-alpha.12", + "@storybook/client-logger": "5.1.0-alpha.12", + "@storybook/components": "5.1.0-alpha.12", + "@storybook/core-events": "5.1.0-alpha.12", + "@storybook/theming": "5.1.0-alpha.12", "core-js": "^2.6.5", "global": "^4.3.2", "memoizerific": "^1.11.3", diff --git a/app/angular/package.json b/app/angular/package.json index 742beb583cbc..e8e3fa10c0ae 100644 --- a/app/angular/package.json +++ b/app/angular/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/angular", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "Storybook for Angular: Develop Angular Components in isolation with Hot Reloading.", "keywords": [ "storybook" @@ -26,8 +26,8 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/core": "5.1.0-alpha.11", - "@storybook/node-logger": "5.1.0-alpha.11", + "@storybook/core": "5.1.0-alpha.12", + "@storybook/node-logger": "5.1.0-alpha.12", "angular2-template-loader": "^0.6.2", "core-js": "^2.6.5", "fork-ts-checker-webpack-plugin": "^0.5.2", diff --git a/app/ember/package.json b/app/ember/package.json index 800ca5dff467..2ddc48b28e35 100644 --- a/app/ember/package.json +++ b/app/ember/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/ember", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "Storybook for Ember: Develop Ember Component in isolation with Hot Reloading.", "homepage": "https://github.com/storybooks/storybook/tree/master/app/ember", "bugs": { @@ -24,7 +24,7 @@ }, "dependencies": { "@ember/test-helpers": "^1.5.0", - "@storybook/core": "5.1.0-alpha.11", + "@storybook/core": "5.1.0-alpha.12", "common-tags": "^1.8.0", "core-js": "^2.6.5", "global": "^4.3.2", diff --git a/app/html/package.json b/app/html/package.json index 0380f6033373..4a5d461b00a8 100644 --- a/app/html/package.json +++ b/app/html/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/html", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "Storybook for HTML: View HTML snippets in isolation with Hot Reloading.", "keywords": [ "storybook" @@ -25,7 +25,7 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/core": "5.1.0-alpha.11", + "@storybook/core": "5.1.0-alpha.12", "common-tags": "^1.8.0", "core-js": "^2.6.5", "global": "^4.3.2", diff --git a/app/marko/package.json b/app/marko/package.json index 5dccec1b58c0..039de7eb3b3a 100644 --- a/app/marko/package.json +++ b/app/marko/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/marko", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "Storybook for Marko: Develop Marko Component in isolation with Hot Reloading.", "keywords": [ "storybook" @@ -26,7 +26,7 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/core": "5.1.0-alpha.11", + "@storybook/core": "5.1.0-alpha.12", "common-tags": "^1.8.0", "core-js": "^2.6.5", "global": "^4.3.2", diff --git a/app/mithril/package.json b/app/mithril/package.json index d7272a12a9f5..20313d9f9fb5 100644 --- a/app/mithril/package.json +++ b/app/mithril/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/mithril", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "Storybook for Mithril: Develop Mithril Component in isolation.", "keywords": [ "storybook" @@ -27,7 +27,7 @@ }, "dependencies": { "@babel/plugin-transform-react-jsx": "^7.3.0", - "@storybook/core": "5.1.0-alpha.11", + "@storybook/core": "5.1.0-alpha.12", "common-tags": "^1.8.0", "core-js": "^2.6.5", "global": "^4.3.2", diff --git a/app/polymer/package.json b/app/polymer/package.json index 129ffc102cf1..89f0c6668cc3 100644 --- a/app/polymer/package.json +++ b/app/polymer/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/polymer", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "Storybook for Polymer: Develop Polymer components in isolation with Hot Reloading.", "keywords": [ "storybook" @@ -25,7 +25,7 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/core": "5.1.0-alpha.11", + "@storybook/core": "5.1.0-alpha.12", "@webcomponents/webcomponentsjs": "^1.2.0", "common-tags": "^1.8.0", "core-js": "^2.6.5", diff --git a/app/preact/package.json b/app/preact/package.json index 6e1a41776dbc..441786ff38ce 100644 --- a/app/preact/package.json +++ b/app/preact/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/preact", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "Storybook for Preact: Develop Preact Component in isolation.", "keywords": [ "storybook" @@ -27,7 +27,7 @@ }, "dependencies": { "@babel/plugin-transform-react-jsx": "^7.3.0", - "@storybook/core": "5.1.0-alpha.11", + "@storybook/core": "5.1.0-alpha.12", "common-tags": "^1.8.0", "core-js": "^2.6.5", "global": "^4.3.2", diff --git a/app/react-native-server/package.json b/app/react-native-server/package.json index 5b2522dd933b..1c4813903473 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.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "A better way to develop React Native Components for your app", "keywords": [ "react", @@ -24,12 +24,12 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.11", - "@storybook/api": "5.1.0-alpha.11", - "@storybook/channel-websocket": "5.1.0-alpha.11", - "@storybook/core": "5.1.0-alpha.11", - "@storybook/core-events": "5.1.0-alpha.11", - "@storybook/ui": "5.1.0-alpha.11", + "@storybook/addons": "5.1.0-alpha.12", + "@storybook/api": "5.1.0-alpha.12", + "@storybook/channel-websocket": "5.1.0-alpha.12", + "@storybook/core": "5.1.0-alpha.12", + "@storybook/core-events": "5.1.0-alpha.12", + "@storybook/ui": "5.1.0-alpha.12", "commander": "^2.19.0", "global": "^4.3.2", "react": "^16.6.0", diff --git a/app/react-native/package.json b/app/react-native/package.json index 82ad425cb748..075f16acab89 100644 --- a/app/react-native/package.json +++ b/app/react-native/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/react-native", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "A better way to develop React Native Components for your app", "keywords": [ "react", @@ -23,11 +23,11 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.11", - "@storybook/channel-websocket": "5.1.0-alpha.11", - "@storybook/channels": "5.1.0-alpha.11", - "@storybook/client-api": "5.1.0-alpha.11", - "@storybook/core-events": "5.1.0-alpha.11", + "@storybook/addons": "5.1.0-alpha.12", + "@storybook/channel-websocket": "5.1.0-alpha.12", + "@storybook/channels": "5.1.0-alpha.12", + "@storybook/client-api": "5.1.0-alpha.12", + "@storybook/core-events": "5.1.0-alpha.12", "core-js": "^2.6.5", "prop-types": "^15.7.2", "react-native-swipe-gestures": "^1.0.3", diff --git a/app/react/package.json b/app/react/package.json index d8136fe02fb8..5e8b7b9f31ae 100644 --- a/app/react/package.json +++ b/app/react/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/react", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "Storybook for React: Develop React Component in isolation with Hot Reloading.", "keywords": [ "storybook" @@ -29,8 +29,8 @@ "@babel/plugin-transform-react-constant-elements": "^7.2.0", "@babel/preset-flow": "^7.0.0", "@babel/preset-react": "^7.0.0", - "@storybook/core": "5.1.0-alpha.11", - "@storybook/node-logger": "5.1.0-alpha.11", + "@storybook/core": "5.1.0-alpha.12", + "@storybook/node-logger": "5.1.0-alpha.12", "@svgr/webpack": "^4.0.3", "babel-plugin-named-asset-import": "^0.3.1", "babel-plugin-react-docgen": "^2.0.2", diff --git a/app/riot/package.json b/app/riot/package.json index d07facbeb801..d64f2a1f2293 100644 --- a/app/riot/package.json +++ b/app/riot/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/riot", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "Storybook for riot.js: View riot snippets in isolation with Hot Reloading.", "keywords": [ "storybook" @@ -25,7 +25,7 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/core": "5.1.0-alpha.11", + "@storybook/core": "5.1.0-alpha.12", "common-tags": "^1.8.0", "core-js": "^2.6.5", "global": "^4.3.2", diff --git a/app/svelte/package.json b/app/svelte/package.json index 4c702de72561..9eeccb8ef7d0 100644 --- a/app/svelte/package.json +++ b/app/svelte/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/svelte", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "Storybook for Svelte: Develop Svelte Component in isolation with Hot Reloading.", "keywords": [ "storybook" @@ -26,7 +26,7 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/core": "5.1.0-alpha.11", + "@storybook/core": "5.1.0-alpha.12", "common-tags": "^1.8.0", "core-js": "^2.6.5", "global": "^4.3.2", diff --git a/app/vue/package.json b/app/vue/package.json index 07ef2029c05c..665622f8c0ef 100644 --- a/app/vue/package.json +++ b/app/vue/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/vue", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "Storybook for Vue: Develop Vue Component in isolation with Hot Reloading.", "keywords": [ "storybook" @@ -26,7 +26,7 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/core": "5.1.0-alpha.11", + "@storybook/core": "5.1.0-alpha.12", "common-tags": "^1.8.0", "core-js": "^2.6.5", "global": "^4.3.2", diff --git a/examples-native/crna-kitchen-sink/package.json b/examples-native/crna-kitchen-sink/package.json index ac4cd8db02ab..28b08490726d 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.1.0-alpha.11", + "version": "5.1.0-alpha.12", "private": true, "main": "node_modules/expo/AppEntry.js", "scripts": { @@ -24,11 +24,11 @@ "devDependencies": { "@babel/core": "^7.2.2", "@babel/plugin-transform-react-jsx-source": "^7.2.0", - "@storybook/addon-knobs": "5.1.0-alpha.11", - "@storybook/addon-ondevice-knobs": "5.1.0-alpha.11", - "@storybook/addon-ondevice-notes": "5.1.0-alpha.11", - "@storybook/addons": "5.1.0-alpha.11", - "@storybook/react-native": "5.1.0-alpha.11", + "@storybook/addon-knobs": "5.1.0-alpha.12", + "@storybook/addon-ondevice-knobs": "5.1.0-alpha.12", + "@storybook/addon-ondevice-notes": "5.1.0-alpha.12", + "@storybook/addons": "5.1.0-alpha.12", + "@storybook/react-native": "5.1.0-alpha.12", "babel-loader": "^8.0.4", "babel-plugin-module-resolver": "^3.2.0", "babel-preset-expo": "^5.1.1", diff --git a/examples/angular-cli/package.json b/examples/angular-cli/package.json index c84d93e81f5d..ce8fbedf6d74 100644 --- a/examples/angular-cli/package.json +++ b/examples/angular-cli/package.json @@ -1,6 +1,6 @@ { "name": "angular-cli", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "private": true, "license": "MIT", "scripts": { @@ -34,18 +34,18 @@ "@angular-devkit/build-angular": "^0.13.4", "@angular/cli": "^7.3.6", "@angular/compiler-cli": "^7.2.6", - "@storybook/addon-actions": "5.1.0-alpha.11", - "@storybook/addon-backgrounds": "5.1.0-alpha.11", - "@storybook/addon-centered": "5.1.0-alpha.11", - "@storybook/addon-jest": "5.1.0-alpha.11", - "@storybook/addon-knobs": "5.1.0-alpha.11", - "@storybook/addon-links": "5.1.0-alpha.11", - "@storybook/addon-notes": "5.1.0-alpha.11", - "@storybook/addon-options": "5.1.0-alpha.11", - "@storybook/addon-storyshots": "5.1.0-alpha.11", - "@storybook/addon-storysource": "5.1.0-alpha.11", - "@storybook/addons": "5.1.0-alpha.11", - "@storybook/angular": "5.1.0-alpha.11", + "@storybook/addon-actions": "5.1.0-alpha.12", + "@storybook/addon-backgrounds": "5.1.0-alpha.12", + "@storybook/addon-centered": "5.1.0-alpha.12", + "@storybook/addon-jest": "5.1.0-alpha.12", + "@storybook/addon-knobs": "5.1.0-alpha.12", + "@storybook/addon-links": "5.1.0-alpha.12", + "@storybook/addon-notes": "5.1.0-alpha.12", + "@storybook/addon-options": "5.1.0-alpha.12", + "@storybook/addon-storyshots": "5.1.0-alpha.12", + "@storybook/addon-storysource": "5.1.0-alpha.12", + "@storybook/addons": "5.1.0-alpha.12", + "@storybook/angular": "5.1.0-alpha.12", "@types/core-js": "^2.5.0", "@types/jest": "^24.0.11", "@types/node": "~11.11.0", diff --git a/examples/cra-kitchen-sink/package.json b/examples/cra-kitchen-sink/package.json index f8ed073e9da4..d625007bd12e 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.1.0-alpha.11", + "version": "5.1.0-alpha.12", "private": true, "scripts": { "build": "react-scripts build", @@ -19,21 +19,21 @@ "react-lifecycles-compat": "^3.0.4" }, "devDependencies": { - "@storybook/addon-a11y": "5.1.0-alpha.11", - "@storybook/addon-actions": "5.1.0-alpha.11", - "@storybook/addon-backgrounds": "5.1.0-alpha.11", - "@storybook/addon-centered": "5.1.0-alpha.11", - "@storybook/addon-events": "5.1.0-alpha.11", - "@storybook/addon-info": "5.1.0-alpha.11", - "@storybook/addon-jest": "5.1.0-alpha.11", - "@storybook/addon-knobs": "5.1.0-alpha.11", - "@storybook/addon-links": "5.1.0-alpha.11", - "@storybook/addon-notes": "5.1.0-alpha.11", - "@storybook/addon-options": "5.1.0-alpha.11", - "@storybook/addon-storyshots": "5.1.0-alpha.11", - "@storybook/addons": "5.1.0-alpha.11", - "@storybook/client-logger": "5.1.0-alpha.11", - "@storybook/react": "5.1.0-alpha.11", + "@storybook/addon-a11y": "5.1.0-alpha.12", + "@storybook/addon-actions": "5.1.0-alpha.12", + "@storybook/addon-backgrounds": "5.1.0-alpha.12", + "@storybook/addon-centered": "5.1.0-alpha.12", + "@storybook/addon-events": "5.1.0-alpha.12", + "@storybook/addon-info": "5.1.0-alpha.12", + "@storybook/addon-jest": "5.1.0-alpha.12", + "@storybook/addon-knobs": "5.1.0-alpha.12", + "@storybook/addon-links": "5.1.0-alpha.12", + "@storybook/addon-notes": "5.1.0-alpha.12", + "@storybook/addon-options": "5.1.0-alpha.12", + "@storybook/addon-storyshots": "5.1.0-alpha.12", + "@storybook/addons": "5.1.0-alpha.12", + "@storybook/client-logger": "5.1.0-alpha.12", + "@storybook/react": "5.1.0-alpha.12", "enzyme": "^3.9.0", "enzyme-adapter-react-16": "^1.9.1", "enzyme-to-json": "^3.3.5", diff --git a/examples/cra-ts-kitchen-sink/package.json b/examples/cra-ts-kitchen-sink/package.json index 172227dd5587..df0ad1e92da7 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.1.0-alpha.11", + "version": "5.1.0-alpha.12", "private": true, "scripts": { "build-storybook": "build-storybook -s public", @@ -20,11 +20,11 @@ "react-dom": "^16.8.4" }, "devDependencies": { - "@storybook/addon-actions": "5.1.0-alpha.11", - "@storybook/addon-info": "5.1.0-alpha.11", - "@storybook/addon-options": "5.1.0-alpha.11", - "@storybook/addons": "5.1.0-alpha.11", - "@storybook/react": "5.1.0-alpha.11", + "@storybook/addon-actions": "5.1.0-alpha.12", + "@storybook/addon-info": "5.1.0-alpha.12", + "@storybook/addon-options": "5.1.0-alpha.12", + "@storybook/addons": "5.1.0-alpha.12", + "@storybook/react": "5.1.0-alpha.12", "@types/enzyme": "^3.9.0", "@types/react": "^16.8.4", "@types/react-dom": "^16.8.2", diff --git a/examples/ember-cli/package.json b/examples/ember-cli/package.json index 1b495977f84f..fe782d30cb07 100644 --- a/examples/ember-cli/package.json +++ b/examples/ember-cli/package.json @@ -1,6 +1,6 @@ { "name": "ember-example", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "private": true, "scripts": { "build": "ember build", @@ -15,18 +15,18 @@ }, "devDependencies": { "@babel/core": "^7.3.4", - "@storybook/addon-a11y": "5.1.0-alpha.11", - "@storybook/addon-actions": "5.1.0-alpha.11", - "@storybook/addon-backgrounds": "5.1.0-alpha.11", - "@storybook/addon-centered": "5.1.0-alpha.11", - "@storybook/addon-knobs": "5.1.0-alpha.11", - "@storybook/addon-links": "5.1.0-alpha.11", - "@storybook/addon-notes": "5.1.0-alpha.11", - "@storybook/addon-options": "5.1.0-alpha.11", - "@storybook/addon-storysource": "5.1.0-alpha.11", - "@storybook/addon-viewport": "5.1.0-alpha.11", - "@storybook/addons": "5.1.0-alpha.11", - "@storybook/ember": "5.1.0-alpha.11", + "@storybook/addon-a11y": "5.1.0-alpha.12", + "@storybook/addon-actions": "5.1.0-alpha.12", + "@storybook/addon-backgrounds": "5.1.0-alpha.12", + "@storybook/addon-centered": "5.1.0-alpha.12", + "@storybook/addon-knobs": "5.1.0-alpha.12", + "@storybook/addon-links": "5.1.0-alpha.12", + "@storybook/addon-notes": "5.1.0-alpha.12", + "@storybook/addon-options": "5.1.0-alpha.12", + "@storybook/addon-storysource": "5.1.0-alpha.12", + "@storybook/addon-viewport": "5.1.0-alpha.12", + "@storybook/addons": "5.1.0-alpha.12", + "@storybook/ember": "5.1.0-alpha.12", "babel-loader": "^8", "broccoli-asset-rev": "^3.0.0", "cross-env": "^5.2.0", diff --git a/examples/html-kitchen-sink/package.json b/examples/html-kitchen-sink/package.json index 1b38e9c90cbc..03e60f6bbd65 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.1.0-alpha.11", + "version": "5.1.0-alpha.12", "private": true, "description": "", "keywords": [], @@ -14,23 +14,23 @@ "storybook": "start-storybook -p 9006" }, "devDependencies": { - "@storybook/addon-a11y": "5.1.0-alpha.11", - "@storybook/addon-actions": "5.1.0-alpha.11", - "@storybook/addon-backgrounds": "5.1.0-alpha.11", - "@storybook/addon-centered": "5.1.0-alpha.11", - "@storybook/addon-events": "5.1.0-alpha.11", - "@storybook/addon-jest": "5.1.0-alpha.11", - "@storybook/addon-knobs": "5.1.0-alpha.11", - "@storybook/addon-links": "5.1.0-alpha.11", - "@storybook/addon-notes": "5.1.0-alpha.11", - "@storybook/addon-options": "5.1.0-alpha.11", - "@storybook/addon-storyshots": "5.1.0-alpha.11", - "@storybook/addon-storysource": "5.1.0-alpha.11", - "@storybook/addon-viewport": "5.1.0-alpha.11", - "@storybook/addons": "5.1.0-alpha.11", - "@storybook/core": "5.1.0-alpha.11", - "@storybook/core-events": "5.1.0-alpha.11", - "@storybook/html": "5.1.0-alpha.11", + "@storybook/addon-a11y": "5.1.0-alpha.12", + "@storybook/addon-actions": "5.1.0-alpha.12", + "@storybook/addon-backgrounds": "5.1.0-alpha.12", + "@storybook/addon-centered": "5.1.0-alpha.12", + "@storybook/addon-events": "5.1.0-alpha.12", + "@storybook/addon-jest": "5.1.0-alpha.12", + "@storybook/addon-knobs": "5.1.0-alpha.12", + "@storybook/addon-links": "5.1.0-alpha.12", + "@storybook/addon-notes": "5.1.0-alpha.12", + "@storybook/addon-options": "5.1.0-alpha.12", + "@storybook/addon-storyshots": "5.1.0-alpha.12", + "@storybook/addon-storysource": "5.1.0-alpha.12", + "@storybook/addon-viewport": "5.1.0-alpha.12", + "@storybook/addons": "5.1.0-alpha.12", + "@storybook/core": "5.1.0-alpha.12", + "@storybook/core-events": "5.1.0-alpha.12", + "@storybook/html": "5.1.0-alpha.12", "eventemitter3": "^3.1.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 2f9043692951..63a80e153196 100644 --- a/examples/marko-cli/package.json +++ b/examples/marko-cli/package.json @@ -1,6 +1,6 @@ { "name": "marko-cli", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "private": true, "description": "Demo of how to build an app using marko-starter", "repository": { @@ -24,12 +24,12 @@ "marko-starter": "^2.0.4" }, "devDependencies": { - "@storybook/addon-actions": "5.1.0-alpha.11", - "@storybook/addon-knobs": "5.1.0-alpha.11", - "@storybook/addon-options": "5.1.0-alpha.11", - "@storybook/addon-storysource": "5.1.0-alpha.11", - "@storybook/addons": "5.1.0-alpha.11", - "@storybook/marko": "5.1.0-alpha.11", + "@storybook/addon-actions": "5.1.0-alpha.12", + "@storybook/addon-knobs": "5.1.0-alpha.12", + "@storybook/addon-options": "5.1.0-alpha.12", + "@storybook/addon-storysource": "5.1.0-alpha.12", + "@storybook/addons": "5.1.0-alpha.12", + "@storybook/marko": "5.1.0-alpha.12", "prettier": "^1.16.4", "webpack": "^4.29.6" } diff --git a/examples/mithril-kitchen-sink/package.json b/examples/mithril-kitchen-sink/package.json index f0e12e8b5118..6d8e7bf1120c 100644 --- a/examples/mithril-kitchen-sink/package.json +++ b/examples/mithril-kitchen-sink/package.json @@ -1,6 +1,6 @@ { "name": "mithril-example", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "private": true, "scripts": { "build-storybook": "build-storybook", @@ -11,18 +11,18 @@ "mithril": "^1.1.6" }, "devDependencies": { - "@storybook/addon-actions": "5.1.0-alpha.11", - "@storybook/addon-backgrounds": "5.1.0-alpha.11", - "@storybook/addon-centered": "5.1.0-alpha.11", - "@storybook/addon-knobs": "5.1.0-alpha.11", - "@storybook/addon-links": "5.1.0-alpha.11", - "@storybook/addon-notes": "5.1.0-alpha.11", - "@storybook/addon-options": "5.1.0-alpha.11", - "@storybook/addon-storyshots": "5.1.0-alpha.11", - "@storybook/addon-storysource": "5.1.0-alpha.11", - "@storybook/addon-viewport": "5.1.0-alpha.11", - "@storybook/addons": "5.1.0-alpha.11", - "@storybook/mithril": "5.1.0-alpha.11", + "@storybook/addon-actions": "5.1.0-alpha.12", + "@storybook/addon-backgrounds": "5.1.0-alpha.12", + "@storybook/addon-centered": "5.1.0-alpha.12", + "@storybook/addon-knobs": "5.1.0-alpha.12", + "@storybook/addon-links": "5.1.0-alpha.12", + "@storybook/addon-notes": "5.1.0-alpha.12", + "@storybook/addon-options": "5.1.0-alpha.12", + "@storybook/addon-storyshots": "5.1.0-alpha.12", + "@storybook/addon-storysource": "5.1.0-alpha.12", + "@storybook/addon-viewport": "5.1.0-alpha.12", + "@storybook/addons": "5.1.0-alpha.12", + "@storybook/mithril": "5.1.0-alpha.12", "webpack": "^4.29.6" } } diff --git a/examples/official-storybook/package.json b/examples/official-storybook/package.json index f9fbbd1069eb..65a1a3a5eb62 100644 --- a/examples/official-storybook/package.json +++ b/examples/official-storybook/package.json @@ -1,6 +1,6 @@ { "name": "official-storybook", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "private": true, "scripts": { "build-storybook": "build-storybook -c ./ -s built-storybooks", @@ -13,29 +13,29 @@ "storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true start-storybook -p 9011 -c ./ -s built-storybooks --no-dll" }, "devDependencies": { - "@storybook/addon-a11y": "5.1.0-alpha.11", - "@storybook/addon-actions": "5.1.0-alpha.11", - "@storybook/addon-backgrounds": "5.1.0-alpha.11", - "@storybook/addon-centered": "5.1.0-alpha.11", - "@storybook/addon-cssresources": "5.1.0-alpha.11", - "@storybook/addon-events": "5.1.0-alpha.11", - "@storybook/addon-graphql": "5.1.0-alpha.11", - "@storybook/addon-info": "5.1.0-alpha.11", - "@storybook/addon-jest": "5.1.0-alpha.11", - "@storybook/addon-knobs": "5.1.0-alpha.11", - "@storybook/addon-links": "5.1.0-alpha.11", - "@storybook/addon-notes": "5.1.0-alpha.11", - "@storybook/addon-options": "5.1.0-alpha.11", - "@storybook/addon-storyshots": "5.1.0-alpha.11", - "@storybook/addon-storyshots-puppeteer": "5.1.0-alpha.11", - "@storybook/addon-storysource": "5.1.0-alpha.11", - "@storybook/addon-viewport": "5.1.0-alpha.11", - "@storybook/addons": "5.1.0-alpha.11", - "@storybook/components": "5.1.0-alpha.11", - "@storybook/core-events": "5.1.0-alpha.11", - "@storybook/node-logger": "5.1.0-alpha.11", - "@storybook/react": "5.1.0-alpha.11", - "@storybook/theming": "5.1.0-alpha.11", + "@storybook/addon-a11y": "5.1.0-alpha.12", + "@storybook/addon-actions": "5.1.0-alpha.12", + "@storybook/addon-backgrounds": "5.1.0-alpha.12", + "@storybook/addon-centered": "5.1.0-alpha.12", + "@storybook/addon-cssresources": "5.1.0-alpha.12", + "@storybook/addon-events": "5.1.0-alpha.12", + "@storybook/addon-graphql": "5.1.0-alpha.12", + "@storybook/addon-info": "5.1.0-alpha.12", + "@storybook/addon-jest": "5.1.0-alpha.12", + "@storybook/addon-knobs": "5.1.0-alpha.12", + "@storybook/addon-links": "5.1.0-alpha.12", + "@storybook/addon-notes": "5.1.0-alpha.12", + "@storybook/addon-options": "5.1.0-alpha.12", + "@storybook/addon-storyshots": "5.1.0-alpha.12", + "@storybook/addon-storyshots-puppeteer": "5.1.0-alpha.12", + "@storybook/addon-storysource": "5.1.0-alpha.12", + "@storybook/addon-viewport": "5.1.0-alpha.12", + "@storybook/addons": "5.1.0-alpha.12", + "@storybook/components": "5.1.0-alpha.12", + "@storybook/core-events": "5.1.0-alpha.12", + "@storybook/node-logger": "5.1.0-alpha.12", + "@storybook/react": "5.1.0-alpha.12", + "@storybook/theming": "5.1.0-alpha.12", "cors": "^2.8.5", "cross-env": "^5.2.0", "enzyme-to-json": "^3.3.5", diff --git a/examples/polymer-cli/package.json b/examples/polymer-cli/package.json index bd7dd90e1127..1b1df9caa6a3 100644 --- a/examples/polymer-cli/package.json +++ b/examples/polymer-cli/package.json @@ -1,6 +1,6 @@ { "name": "polymer-cli", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "private": true, "scripts": { "build-storybook": "build-storybook", @@ -10,15 +10,15 @@ }, "dependencies": { "@polymer/polymer": "^2.6.0", - "@storybook/addon-actions": "5.1.0-alpha.11", - "@storybook/addon-backgrounds": "5.1.0-alpha.11", - "@storybook/addon-knobs": "5.1.0-alpha.11", - "@storybook/addon-links": "5.1.0-alpha.11", - "@storybook/addon-notes": "5.1.0-alpha.11", - "@storybook/addon-options": "5.1.0-alpha.11", - "@storybook/addon-storysource": "5.1.0-alpha.11", - "@storybook/addon-viewport": "5.1.0-alpha.11", - "@storybook/polymer": "5.1.0-alpha.11", + "@storybook/addon-actions": "5.1.0-alpha.12", + "@storybook/addon-backgrounds": "5.1.0-alpha.12", + "@storybook/addon-knobs": "5.1.0-alpha.12", + "@storybook/addon-links": "5.1.0-alpha.12", + "@storybook/addon-notes": "5.1.0-alpha.12", + "@storybook/addon-options": "5.1.0-alpha.12", + "@storybook/addon-storysource": "5.1.0-alpha.12", + "@storybook/addon-viewport": "5.1.0-alpha.12", + "@storybook/polymer": "5.1.0-alpha.12", "@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 e6259b227833..2c28bf6858f1 100644 --- a/examples/preact-kitchen-sink/package.json +++ b/examples/preact-kitchen-sink/package.json @@ -1,6 +1,6 @@ { "name": "preact-example", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "private": true, "scripts": { "build": "cross-env NODE_ENV=production webpack --progress --hide-modules", @@ -16,18 +16,18 @@ "devDependencies": { "@babel/core": "^7.3.4", "@babel/plugin-transform-runtime": "^7.2.0", - "@storybook/addon-actions": "5.1.0-alpha.11", - "@storybook/addon-backgrounds": "5.1.0-alpha.11", - "@storybook/addon-centered": "5.1.0-alpha.11", - "@storybook/addon-knobs": "5.1.0-alpha.11", - "@storybook/addon-links": "5.1.0-alpha.11", - "@storybook/addon-notes": "5.1.0-alpha.11", - "@storybook/addon-options": "5.1.0-alpha.11", - "@storybook/addon-storyshots": "5.1.0-alpha.11", - "@storybook/addon-storysource": "5.1.0-alpha.11", - "@storybook/addon-viewport": "5.1.0-alpha.11", - "@storybook/addons": "5.1.0-alpha.11", - "@storybook/preact": "5.1.0-alpha.11", + "@storybook/addon-actions": "5.1.0-alpha.12", + "@storybook/addon-backgrounds": "5.1.0-alpha.12", + "@storybook/addon-centered": "5.1.0-alpha.12", + "@storybook/addon-knobs": "5.1.0-alpha.12", + "@storybook/addon-links": "5.1.0-alpha.12", + "@storybook/addon-notes": "5.1.0-alpha.12", + "@storybook/addon-options": "5.1.0-alpha.12", + "@storybook/addon-storyshots": "5.1.0-alpha.12", + "@storybook/addon-storysource": "5.1.0-alpha.12", + "@storybook/addon-viewport": "5.1.0-alpha.12", + "@storybook/addons": "5.1.0-alpha.12", + "@storybook/preact": "5.1.0-alpha.12", "babel-loader": "^8.0.4", "cross-env": "^5.2.0", "file-loader": "^3.0.1", diff --git a/examples/riot-kitchen-sink/package.json b/examples/riot-kitchen-sink/package.json index db427ea9d36d..a20aed2a65b9 100644 --- a/examples/riot-kitchen-sink/package.json +++ b/examples/riot-kitchen-sink/package.json @@ -1,6 +1,6 @@ { "name": "riot-example", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "private": true, "scripts": { "build": "cross-env NODE_ENV=production webpack --progress --hide-modules", @@ -16,18 +16,18 @@ }, "devDependencies": { "@babel/core": "^7.3.4", - "@storybook/addon-actions": "5.1.0-alpha.11", - "@storybook/addon-backgrounds": "5.1.0-alpha.11", - "@storybook/addon-centered": "5.1.0-alpha.11", - "@storybook/addon-knobs": "5.1.0-alpha.11", - "@storybook/addon-links": "5.1.0-alpha.11", - "@storybook/addon-notes": "5.1.0-alpha.11", - "@storybook/addon-options": "5.1.0-alpha.11", - "@storybook/addon-storyshots": "5.1.0-alpha.11", - "@storybook/addon-storysource": "5.1.0-alpha.11", - "@storybook/addon-viewport": "5.1.0-alpha.11", - "@storybook/addons": "5.1.0-alpha.11", - "@storybook/riot": "5.1.0-alpha.11", + "@storybook/addon-actions": "5.1.0-alpha.12", + "@storybook/addon-backgrounds": "5.1.0-alpha.12", + "@storybook/addon-centered": "5.1.0-alpha.12", + "@storybook/addon-knobs": "5.1.0-alpha.12", + "@storybook/addon-links": "5.1.0-alpha.12", + "@storybook/addon-notes": "5.1.0-alpha.12", + "@storybook/addon-options": "5.1.0-alpha.12", + "@storybook/addon-storyshots": "5.1.0-alpha.12", + "@storybook/addon-storysource": "5.1.0-alpha.12", + "@storybook/addon-viewport": "5.1.0-alpha.12", + "@storybook/addons": "5.1.0-alpha.12", + "@storybook/riot": "5.1.0-alpha.12", "babel-loader": "^8.0.4", "cross-env": "^5.2.0", "file-loader": "^3.0.1", diff --git a/examples/svelte-kitchen-sink/package.json b/examples/svelte-kitchen-sink/package.json index cc2818b3975c..43e5557cfdf3 100644 --- a/examples/svelte-kitchen-sink/package.json +++ b/examples/svelte-kitchen-sink/package.json @@ -1,6 +1,6 @@ { "name": "svelte-example", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "private": true, "scripts": { "build-storybook": "build-storybook -s public", @@ -11,17 +11,17 @@ "global": "^4.3.2" }, "devDependencies": { - "@storybook/addon-actions": "5.1.0-alpha.11", - "@storybook/addon-backgrounds": "5.1.0-alpha.11", - "@storybook/addon-centered": "5.1.0-alpha.11", - "@storybook/addon-knobs": "5.1.0-alpha.11", - "@storybook/addon-links": "5.1.0-alpha.11", - "@storybook/addon-notes": "5.1.0-alpha.11", - "@storybook/addon-options": "5.1.0-alpha.11", - "@storybook/addon-storyshots": "5.1.0-alpha.11", - "@storybook/addon-storysource": "5.1.0-alpha.11", - "@storybook/addon-viewport": "5.1.0-alpha.11", - "@storybook/addons": "5.1.0-alpha.11", - "@storybook/svelte": "5.1.0-alpha.11" + "@storybook/addon-actions": "5.1.0-alpha.12", + "@storybook/addon-backgrounds": "5.1.0-alpha.12", + "@storybook/addon-centered": "5.1.0-alpha.12", + "@storybook/addon-knobs": "5.1.0-alpha.12", + "@storybook/addon-links": "5.1.0-alpha.12", + "@storybook/addon-notes": "5.1.0-alpha.12", + "@storybook/addon-options": "5.1.0-alpha.12", + "@storybook/addon-storyshots": "5.1.0-alpha.12", + "@storybook/addon-storysource": "5.1.0-alpha.12", + "@storybook/addon-viewport": "5.1.0-alpha.12", + "@storybook/addons": "5.1.0-alpha.12", + "@storybook/svelte": "5.1.0-alpha.12" } } diff --git a/examples/vue-kitchen-sink/package.json b/examples/vue-kitchen-sink/package.json index 56346a24207f..d66054d38bc5 100644 --- a/examples/vue-kitchen-sink/package.json +++ b/examples/vue-kitchen-sink/package.json @@ -1,6 +1,6 @@ { "name": "vue-example", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "private": true, "scripts": { "build": "cross-env NODE_ENV=production webpack --progress --hide-modules", @@ -15,18 +15,18 @@ }, "devDependencies": { "@babel/core": "^7.3.4", - "@storybook/addon-actions": "5.1.0-alpha.11", - "@storybook/addon-backgrounds": "5.1.0-alpha.11", - "@storybook/addon-centered": "5.1.0-alpha.11", - "@storybook/addon-knobs": "5.1.0-alpha.11", - "@storybook/addon-links": "5.1.0-alpha.11", - "@storybook/addon-notes": "5.1.0-alpha.11", - "@storybook/addon-options": "5.1.0-alpha.11", - "@storybook/addon-storyshots": "5.1.0-alpha.11", - "@storybook/addon-storysource": "5.1.0-alpha.11", - "@storybook/addon-viewport": "5.1.0-alpha.11", - "@storybook/addons": "5.1.0-alpha.11", - "@storybook/vue": "5.1.0-alpha.11", + "@storybook/addon-actions": "5.1.0-alpha.12", + "@storybook/addon-backgrounds": "5.1.0-alpha.12", + "@storybook/addon-centered": "5.1.0-alpha.12", + "@storybook/addon-knobs": "5.1.0-alpha.12", + "@storybook/addon-links": "5.1.0-alpha.12", + "@storybook/addon-notes": "5.1.0-alpha.12", + "@storybook/addon-options": "5.1.0-alpha.12", + "@storybook/addon-storyshots": "5.1.0-alpha.12", + "@storybook/addon-storysource": "5.1.0-alpha.12", + "@storybook/addon-viewport": "5.1.0-alpha.12", + "@storybook/addons": "5.1.0-alpha.12", + "@storybook/vue": "5.1.0-alpha.12", "babel-core": "^7.0.0-bridge.0", "babel-loader": "^8.0.5", "cross-env": "^5.2.0", diff --git a/lerna.json b/lerna.json index 903c229036e9..3748042d346c 100644 --- a/lerna.json +++ b/lerna.json @@ -11,5 +11,5 @@ "npmClient": "yarn", "useWorkspaces": true, "registry": "https://registry.npmjs.org", - "version": "5.1.0-alpha.11" + "version": "5.1.0-alpha.12" } diff --git a/lib/addons/package.json b/lib/addons/package.json index 696bb48e08d2..22351a7303be 100644 --- a/lib/addons/package.json +++ b/lib/addons/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addons", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "Storybook addons store", "keywords": [ "storybook" @@ -21,9 +21,9 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/api": "5.1.0-alpha.11", - "@storybook/channels": "5.1.0-alpha.11", - "@storybook/client-logger": "5.1.0-alpha.11", + "@storybook/api": "5.1.0-alpha.12", + "@storybook/channels": "5.1.0-alpha.12", + "@storybook/client-logger": "5.1.0-alpha.12", "core-js": "^2.6.5", "global": "^4.3.2", "util-deprecate": "^1.0.2" diff --git a/lib/api/package.json b/lib/api/package.json index 277b64e1e429..67e3a8e460f0 100644 --- a/lib/api/package.json +++ b/lib/api/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/api", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "Core Storybook API & Context", "keywords": [ "storybook" @@ -20,11 +20,11 @@ "prepare": "node ./scripts/generateVersion.js && node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/channels": "5.1.0-alpha.11", - "@storybook/client-logger": "5.1.0-alpha.11", - "@storybook/core-events": "5.1.0-alpha.11", - "@storybook/router": "5.1.0-alpha.11", - "@storybook/theming": "5.1.0-alpha.11", + "@storybook/channels": "5.1.0-alpha.12", + "@storybook/client-logger": "5.1.0-alpha.12", + "@storybook/core-events": "5.1.0-alpha.12", + "@storybook/router": "5.1.0-alpha.12", + "@storybook/theming": "5.1.0-alpha.12", "core-js": "^2.6.5", "fast-deep-equal": "^2.0.1", "global": "^4.3.2", diff --git a/lib/channel-postmessage/package.json b/lib/channel-postmessage/package.json index df56325e66f6..742dd8a163cd 100644 --- a/lib/channel-postmessage/package.json +++ b/lib/channel-postmessage/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/channel-postmessage", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "", "keywords": [ "storybook" @@ -21,8 +21,8 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/channels": "5.1.0-alpha.11", - "@storybook/client-logger": "5.1.0-alpha.11", + "@storybook/channels": "5.1.0-alpha.12", + "@storybook/client-logger": "5.1.0-alpha.12", "core-js": "^2.6.5", "global": "^4.3.2", "telejson": "^2.1.1" diff --git a/lib/channel-websocket/package.json b/lib/channel-websocket/package.json index db4e2063d33a..b695756bf5b5 100644 --- a/lib/channel-websocket/package.json +++ b/lib/channel-websocket/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/channel-websocket", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "", "keywords": [ "storybook" @@ -21,7 +21,7 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/channels": "5.1.0-alpha.11", + "@storybook/channels": "5.1.0-alpha.12", "core-js": "^2.6.5", "global": "^4.3.2", "json-fn": "^1.1.1" diff --git a/lib/channels/package.json b/lib/channels/package.json index f8fdd0d191db..567b2497730c 100644 --- a/lib/channels/package.json +++ b/lib/channels/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/channels", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "", "keywords": [ "storybook" diff --git a/lib/cli/package.json b/lib/cli/package.json index 491bd853b040..341dfb5bfddc 100644 --- a/lib/cli/package.json +++ b/lib/cli/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/cli", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "Storybook's CLI - easiest method of adding storybook to your projects", "keywords": [ "cli", @@ -30,7 +30,7 @@ "@babel/core": "^7.3.4", "@babel/preset-env": "^7.3.4", "@babel/register": "^7.0.0", - "@storybook/codemod": "5.1.0-alpha.11", + "@storybook/codemod": "5.1.0-alpha.12", "chalk": "^2.4.1", "commander": "^2.19.0", "core-js": "^2.6.5", @@ -44,31 +44,31 @@ "update-notifier": "^2.5.0" }, "devDependencies": { - "@storybook/addon-actions": "5.1.0-alpha.11", - "@storybook/addon-centered": "5.1.0-alpha.11", - "@storybook/addon-graphql": "5.1.0-alpha.11", - "@storybook/addon-info": "5.1.0-alpha.11", - "@storybook/addon-knobs": "5.1.0-alpha.11", - "@storybook/addon-links": "5.1.0-alpha.11", - "@storybook/addon-notes": "5.1.0-alpha.11", - "@storybook/addon-options": "5.1.0-alpha.11", - "@storybook/addon-storyshots": "5.1.0-alpha.11", - "@storybook/addons": "5.1.0-alpha.11", - "@storybook/angular": "5.1.0-alpha.11", - "@storybook/channel-postmessage": "5.1.0-alpha.11", - "@storybook/channel-websocket": "5.1.0-alpha.11", - "@storybook/channels": "5.1.0-alpha.11", - "@storybook/ember": "5.1.0-alpha.11", - "@storybook/html": "5.1.0-alpha.11", - "@storybook/marko": "5.1.0-alpha.11", - "@storybook/mithril": "5.1.0-alpha.11", - "@storybook/polymer": "5.1.0-alpha.11", - "@storybook/preact": "5.1.0-alpha.11", - "@storybook/react": "5.1.0-alpha.11", - "@storybook/react-native": "5.1.0-alpha.11", - "@storybook/riot": "5.1.0-alpha.11", - "@storybook/ui": "5.1.0-alpha.11", - "@storybook/vue": "5.1.0-alpha.11" + "@storybook/addon-actions": "5.1.0-alpha.12", + "@storybook/addon-centered": "5.1.0-alpha.12", + "@storybook/addon-graphql": "5.1.0-alpha.12", + "@storybook/addon-info": "5.1.0-alpha.12", + "@storybook/addon-knobs": "5.1.0-alpha.12", + "@storybook/addon-links": "5.1.0-alpha.12", + "@storybook/addon-notes": "5.1.0-alpha.12", + "@storybook/addon-options": "5.1.0-alpha.12", + "@storybook/addon-storyshots": "5.1.0-alpha.12", + "@storybook/addons": "5.1.0-alpha.12", + "@storybook/angular": "5.1.0-alpha.12", + "@storybook/channel-postmessage": "5.1.0-alpha.12", + "@storybook/channel-websocket": "5.1.0-alpha.12", + "@storybook/channels": "5.1.0-alpha.12", + "@storybook/ember": "5.1.0-alpha.12", + "@storybook/html": "5.1.0-alpha.12", + "@storybook/marko": "5.1.0-alpha.12", + "@storybook/mithril": "5.1.0-alpha.12", + "@storybook/polymer": "5.1.0-alpha.12", + "@storybook/preact": "5.1.0-alpha.12", + "@storybook/react": "5.1.0-alpha.12", + "@storybook/react-native": "5.1.0-alpha.12", + "@storybook/riot": "5.1.0-alpha.12", + "@storybook/ui": "5.1.0-alpha.12", + "@storybook/vue": "5.1.0-alpha.12" }, "publishConfig": { "access": "public" diff --git a/lib/client-api/package.json b/lib/client-api/package.json index c833f82655b7..af279a9a3505 100644 --- a/lib/client-api/package.json +++ b/lib/client-api/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/client-api", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "Storybook Client API", "keywords": [ "storybook" @@ -20,10 +20,10 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.11", - "@storybook/client-logger": "5.1.0-alpha.11", - "@storybook/core-events": "5.1.0-alpha.11", - "@storybook/router": "5.1.0-alpha.11", + "@storybook/addons": "5.1.0-alpha.12", + "@storybook/client-logger": "5.1.0-alpha.12", + "@storybook/core-events": "5.1.0-alpha.12", + "@storybook/router": "5.1.0-alpha.12", "common-tags": "^1.8.0", "core-js": "^2.6.5", "eventemitter3": "^3.1.0", diff --git a/lib/client-logger/package.json b/lib/client-logger/package.json index 613058666d0f..459dbdc502ba 100644 --- a/lib/client-logger/package.json +++ b/lib/client-logger/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/client-logger", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "", "keywords": [ "storybook" diff --git a/lib/codemod/package.json b/lib/codemod/package.json index da7d89b1c704..7a79cbf5acfe 100644 --- a/lib/codemod/package.json +++ b/lib/codemod/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/codemod", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "A collection of codemod scripts written with JSCodeshift", "keywords": [ "storybook" diff --git a/lib/components/package.json b/lib/components/package.json index f6ad725ebe11..437bea311fbe 100644 --- a/lib/components/package.json +++ b/lib/components/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/components", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "Core Storybook Components", "keywords": [ "storybook" @@ -21,11 +21,11 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.11", - "@storybook/client-logger": "5.1.0-alpha.11", - "@storybook/core-events": "5.1.0-alpha.11", - "@storybook/router": "5.1.0-alpha.11", - "@storybook/theming": "5.1.0-alpha.11", + "@storybook/addons": "5.1.0-alpha.12", + "@storybook/client-logger": "5.1.0-alpha.12", + "@storybook/core-events": "5.1.0-alpha.12", + "@storybook/router": "5.1.0-alpha.12", + "@storybook/theming": "5.1.0-alpha.12", "core-js": "^2.6.5", "global": "^4.3.2", "js-beautify": "^1.8.9", diff --git a/lib/core-events/package.json b/lib/core-events/package.json index f61f0ada92a0..c8aa43fb752d 100644 --- a/lib/core-events/package.json +++ b/lib/core-events/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/core-events", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "Event names used in storybook core", "keywords": [ "storybook" diff --git a/lib/core/package.json b/lib/core/package.json index ed5ef1e3e55f..e9b6cf6202d0 100644 --- a/lib/core/package.json +++ b/lib/core/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/core", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "Storybook framework-agnostic API", "keywords": [ "storybook" @@ -25,14 +25,14 @@ "@babel/plugin-syntax-dynamic-import": "^7.2.0", "@babel/plugin-transform-react-constant-elements": "^7.2.0", "@babel/preset-env": "^7.3.4", - "@storybook/addons": "5.1.0-alpha.11", - "@storybook/channel-postmessage": "5.1.0-alpha.11", - "@storybook/client-api": "5.1.0-alpha.11", - "@storybook/client-logger": "5.1.0-alpha.11", - "@storybook/core-events": "5.1.0-alpha.11", - "@storybook/node-logger": "5.1.0-alpha.11", - "@storybook/router": "5.1.0-alpha.11", - "@storybook/ui": "5.1.0-alpha.11", + "@storybook/addons": "5.1.0-alpha.12", + "@storybook/channel-postmessage": "5.1.0-alpha.12", + "@storybook/client-api": "5.1.0-alpha.12", + "@storybook/client-logger": "5.1.0-alpha.12", + "@storybook/core-events": "5.1.0-alpha.12", + "@storybook/node-logger": "5.1.0-alpha.12", + "@storybook/router": "5.1.0-alpha.12", + "@storybook/ui": "5.1.0-alpha.12", "airbnb-js-shims": "^1 || ^2", "autoprefixer": "^9.4.9", "babel-plugin-add-react-displayname": "^0.0.5", diff --git a/lib/node-logger/package.json b/lib/node-logger/package.json index 02d73e46114e..24828c0709db 100644 --- a/lib/node-logger/package.json +++ b/lib/node-logger/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/node-logger", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "", "keywords": [ "storybook" diff --git a/lib/router/package.json b/lib/router/package.json index 1fbec92a9cb3..fa55153e3951 100644 --- a/lib/router/package.json +++ b/lib/router/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/router", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "Core Storybook Router", "keywords": [ "storybook" @@ -22,7 +22,7 @@ }, "dependencies": { "@reach/router": "^1.2.1", - "@storybook/theming": "5.1.0-alpha.11", + "@storybook/theming": "5.1.0-alpha.12", "core-js": "^2.6.5", "global": "^4.3.2", "memoizerific": "^1.11.3", diff --git a/lib/theming/package.json b/lib/theming/package.json index 3b51d7c006ac..7b85678a8b38 100644 --- a/lib/theming/package.json +++ b/lib/theming/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/theming", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "Core Storybook Components", "keywords": [ "storybook" @@ -23,7 +23,7 @@ "dependencies": { "@emotion/core": "^10.0.9", "@emotion/styled": "^10.0.7", - "@storybook/client-logger": "5.1.0-alpha.11", + "@storybook/client-logger": "5.1.0-alpha.12", "common-tags": "^1.8.0", "core-js": "^2.6.5", "deep-object-diff": "^1.1.0", diff --git a/lib/ui/package.json b/lib/ui/package.json index df5f4a9a9d17..0ebdb96c2410 100644 --- a/lib/ui/package.json +++ b/lib/ui/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/ui", - "version": "5.1.0-alpha.11", + "version": "5.1.0-alpha.12", "description": "Core Storybook UI", "keywords": [ "storybook" @@ -22,13 +22,13 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.11", - "@storybook/api": "5.1.0-alpha.11", - "@storybook/client-logger": "5.1.0-alpha.11", - "@storybook/components": "5.1.0-alpha.11", - "@storybook/core-events": "5.1.0-alpha.11", - "@storybook/router": "5.1.0-alpha.11", - "@storybook/theming": "5.1.0-alpha.11", + "@storybook/addons": "5.1.0-alpha.12", + "@storybook/api": "5.1.0-alpha.12", + "@storybook/client-logger": "5.1.0-alpha.12", + "@storybook/components": "5.1.0-alpha.12", + "@storybook/core-events": "5.1.0-alpha.12", + "@storybook/router": "5.1.0-alpha.12", + "@storybook/theming": "5.1.0-alpha.12", "core-js": "^2.6.5", "fast-deep-equal": "^2.0.1", "fuzzy-search": "^3.0.1", From f0fef9978084a9ea6fcdb2f52e2483ac0bee961a Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Fri, 22 Mar 2019 12:46:40 +0800 Subject: [PATCH 10/45] 5.1.0-alpha.12 next.json version file --- docs/src/versions/next.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/versions/next.json b/docs/src/versions/next.json index 362fbd6a7443..bb2a8139fac5 100644 --- a/docs/src/versions/next.json +++ b/docs/src/versions/next.json @@ -1 +1 @@ -{"version":"5.1.0-alpha.11","info":{"plain":"### Features\n\n* Addon-notes: Support theming ([#5922](https://github.com/storybooks/storybook/pull/5922))\n\n### Bug Fixes\n\n* Addon-knkobs: Fix color type button z-index ([#6203](https://github.com/storybooks/storybook/pull/6203))\n* Angular: Fix typo in demo example ([#6193](https://github.com/storybooks/storybook/pull/6193))\n* UI: Fix problem with selectedPanel reset ([#6149](https://github.com/storybooks/storybook/pull/6149))\n\n### Maintenance\n\n* React-native: Publish crna-kitchen-sink app to expo ([#6183](https://github.com/storybooks/storybook/pull/6183))"}} \ No newline at end of file +{"version":"5.1.0-alpha.12","info":{"plain":"### Bug Fixes\n\n* CLI: Fix stories regexp in config.js ([#6180](https://github.com/storybooks/storybook/pull/6180))\n* Addon-Info: Restore fonts and color styling ([#6186](https://github.com/storybooks/storybook/pull/6186))\n* Core: Add core-js as a dep to client-api ([#6209](https://github.com/storybooks/storybook/pull/6209))\n\n### Dependency Upgrades\n\n* Bump eslint-plugin-jest from 22.3.2 to 22.4.1 ([#6168](https://github.com/storybooks/storybook/pull/6168))\n* Bump ember-cli-babel from 7.5.0 to 7.6.0 ([#6165](https://github.com/storybooks/storybook/pull/6165))\n* Bump danger from 7.0.14 to 7.0.15 ([#6164](https://github.com/storybooks/storybook/pull/6164))\n* Bump babel-preset-expo from 5.0.0 to 5.1.1 ([#6167](https://github.com/storybooks/storybook/pull/6167))\n* Bump @emotion/core from 10.0.7 to 10.0.9 ([#6169](https://github.com/storybooks/storybook/pull/6169))\n* Bump marko from 4.15.4 to 4.16.2 ([#6205](https://github.com/storybooks/storybook/pull/6205))"}} \ No newline at end of file From 5243ac0c11540cf2443ae0c3b9901e6112d810f1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Fri, 22 Mar 2019 05:23:50 +0000 Subject: [PATCH 11/45] Bump react-resize-detector from 4.0.2 to 4.0.5 Bumps [react-resize-detector](https://github.com/maslianok/react-resize-detector) from 4.0.2 to 4.0.5. - [Release notes](https://github.com/maslianok/react-resize-detector/releases) - [Commits](https://github.com/maslianok/react-resize-detector/commits/v4.0.5) Signed-off-by: dependabot[bot] --- lib/ui/package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/ui/package.json b/lib/ui/package.json index 0ebdb96c2410..64ea58b464bb 100644 --- a/lib/ui/package.json +++ b/lib/ui/package.json @@ -47,7 +47,7 @@ "react-draggable": "^3.1.1", "react-helmet-async": "^0.2.0", "react-hotkeys": "2.0.0-pre4", - "react-resize-detector": "^4.0.2", + "react-resize-detector": "^4.0.5", "recompose": "^0.30.0", "semver": "^5.6.0", "telejson": "^2.1.1", diff --git a/yarn.lock b/yarn.lock index cfb0ab95ce73..b7b21188f4a4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -21879,10 +21879,10 @@ react-proxy@^1.1.7: lodash "^4.6.1" react-deep-force-update "^1.0.0" -react-resize-detector@^4.0.2: - version "4.0.2" - resolved "https://registry.yarnpkg.com/react-resize-detector/-/react-resize-detector-4.0.2.tgz#8eb3d0442ea352dd3e8b42cd241729006cb8bc91" - integrity sha512-s1O34sLjEAu8l6FLbrjVG9z6xrPeyZdbEFH50QqMmimfQ9nx7876R6zXKLFzLdBcpYSRjmPRqjt7Kkzo1mbclw== +react-resize-detector@^4.0.5: + version "4.0.5" + resolved "https://registry.yarnpkg.com/react-resize-detector/-/react-resize-detector-4.0.5.tgz#25eb7df5f34fd69ee1ef2229b1f5e728e14e8300" + integrity sha512-JbTkf+08No1R2lcplc1Xfcgyc/S7931ujs09tFtWKRy/cthZMuc2Nj25Pox7g6e4CwHk+OH8AQ6jF5s7utIQlA== dependencies: lodash "^4.17.11" lodash-es "^4.17.11" From 307c886d3c8e41a0bd57746ff6f922cf752457c7 Mon Sep 17 00:00:00 2001 From: Arman Date: Fri, 22 Mar 2019 12:06:42 +0300 Subject: [PATCH 12/45] fix(svelte): regexp --- lib/cli/generators/SVELTE/template/.storybook/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cli/generators/SVELTE/template/.storybook/config.js b/lib/cli/generators/SVELTE/template/.storybook/config.js index 38704e222b62..5ece32aff07c 100644 --- a/lib/cli/generators/SVELTE/template/.storybook/config.js +++ b/lib/cli/generators/SVELTE/template/.storybook/config.js @@ -1,7 +1,7 @@ import { configure } from '@storybook/svelte'; // automatically import all files ending in *.stories.js -const req = require.context('../stories', true, /.stories.js$/); +const req = require.context('../stories', true, /\.stories\.js$/); function loadStories() { req.keys().forEach(filename => req(filename)); } From 8f82ea1020a59d51467648a2964494f691141d02 Mon Sep 17 00:00:00 2001 From: Sergey Zwezdin Date: Fri, 22 Mar 2019 21:48:04 +0500 Subject: [PATCH 13/45] Forked CRA support #5801 --- app/react/src/server/cra-config.js | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/app/react/src/server/cra-config.js b/app/react/src/server/cra-config.js index f8abe489bd0f..83fd5cbbbeab 100644 --- a/app/react/src/server/cra-config.js +++ b/app/react/src/server/cra-config.js @@ -14,10 +14,37 @@ export function getReactScriptsPath({ noCache } = {}) { if (reactScriptsPath && !noCache) return reactScriptsPath; const appDirectory = fs.realpathSync(process.cwd()); - const reactScriptsScriptPath = fs.realpathSync( + let reactScriptsScriptPath = fs.realpathSync( path.join(appDirectory, '/node_modules/.bin/react-scripts') ); + try { + // Note: Since there is no symlink for .bin/react-scripts on Windows + // we'll parse react-scripts file to find actual package path. + // This is important if you use fork of CRA. + + const pathIsNotResolved = /node_modules[\\/]\.bin[\\/]react-scripts/i.test( + reactScriptsScriptPath + ); + + if (pathIsNotResolved) { + const content = fs.readFileSync(reactScriptsScriptPath, 'utf8'); + const packagePathMatch = content.match( + /"\$basedir[\\/]([^\s]+?[\\/]bin[\\/]react-scripts\.js")/i + ); + + if (packagePathMatch && packagePathMatch.length > 1) { + reactScriptsScriptPath = path.join( + appDirectory, + '/node_modules/.bin/', + packagePathMatch[1] + ); + } + } + } catch (e) { + console.warn('Error occured during react-scripts package path resolving.', e); + } + reactScriptsPath = path.join(reactScriptsScriptPath, '../..'); const scriptsPkgJson = path.join(reactScriptsPath, 'package.json'); From 8069b7fecc95d735abee7373eed84e2c4dc48a40 Mon Sep 17 00:00:00 2001 From: Arman Sargsyan Date: Fri, 22 Mar 2019 22:22:46 +0300 Subject: [PATCH 14/45] fix(tooltip): event bindings, logger import --- lib/components/src/tooltip/WithTooltip.js | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/lib/components/src/tooltip/WithTooltip.js b/lib/components/src/tooltip/WithTooltip.js index 664805c7da49..23962e559758 100644 --- a/lib/components/src/tooltip/WithTooltip.js +++ b/lib/components/src/tooltip/WithTooltip.js @@ -1,7 +1,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import { styled } from '@storybook/theming'; -import logger from '@storybook/client-logger'; +import { logger } from '@storybook/client-logger'; import { withState, lifecycle } from 'recompose'; import { document } from 'global'; @@ -107,16 +107,18 @@ const WithTooltip = lifecycle({ iframes.forEach(iframe => { const bind = () => { try { - iframe.contentDocument.addEventListener('click', hide); - unbinders.push(() => { - try { - iframe.contentDocument.removeEventListener('click', hide); - } catch (e) { - logger.log('tried to remove listeners from iframe, but failed. whatever'); - } - }); + if (iframe.contentWindow.document) { + iframe.contentWindow.document.addEventListener('click', hide); + unbinders.push(() => { + try { + iframe.contentWindow.document.removeEventListener('click', hide); + } catch (e) { + logger.warn('Removing a click listener from iframe failed: ', e); + } + }); + } } catch (e) { - logger.log('tried to remove listeners from iframe, but failed. whatever'); + logger.warn('Adding a click listener to iframe failed: ', e); } }; From 2a6bbd4933edd991417ff7fb449443c3839cc8e9 Mon Sep 17 00:00:00 2001 From: Arman Sargsyan Date: Sat, 23 Mar 2019 00:11:02 +0300 Subject: [PATCH 15/45] chore(yarn): actualize lock file --- docs/yarn.lock | 257 +++++++++++++++++++++++++++++-------------------- 1 file changed, 151 insertions(+), 106 deletions(-) diff --git a/docs/yarn.lock b/docs/yarn.lock index de949af787bf..65d272de46b7 100644 --- a/docs/yarn.lock +++ b/docs/yarn.lock @@ -1014,15 +1014,16 @@ react-lifecycles-compat "^3.0.4" warning "^3.0.0" -"@storybook/addon-actions@5.1.0-alpha.9": - version "5.1.0-alpha.9" - resolved "https://registry.yarnpkg.com/@storybook/addon-actions/-/addon-actions-5.1.0-alpha.9.tgz#3a2a9101e053e16f9bf2c3d4eaeb2c11b7dcaece" - integrity sha512-2xGQ4WBV8rOWq6nfuvcUq1p1/OgUZ5Pb38j3MIBxj7/dFWya4J0CrjZYmd/7mXmwMyTLcrlqwprspKkyfFpcqA== - dependencies: - "@storybook/addons" "5.1.0-alpha.9" - "@storybook/components" "5.1.0-alpha.9" - "@storybook/core-events" "5.1.0-alpha.9" - "@storybook/theming" "5.1.0-alpha.9" +"@storybook/addon-actions@5.1.0-alpha.11": + version "5.1.0-alpha.11" + resolved "https://registry.yarnpkg.com/@storybook/addon-actions/-/addon-actions-5.1.0-alpha.11.tgz#186cf257b4285aa1daf24af69b2d0212df046c11" + integrity sha512-cNalQjFVOJW6z7QDDijxGScZsZZ5q5RfvzQJ70tC28MoGr08QuXMZbGA4FTIZJfLTimNIerLbhNb3f++LSKFug== + dependencies: + "@storybook/addons" "5.1.0-alpha.11" + "@storybook/api" "5.1.0-alpha.11" + "@storybook/components" "5.1.0-alpha.11" + "@storybook/core-events" "5.1.0-alpha.11" + "@storybook/theming" "5.1.0-alpha.11" core-js "^2.6.5" fast-deep-equal "^2.0.1" global "^4.3.2" @@ -1033,57 +1034,82 @@ react-inspector "^2.3.1" uuid "^3.3.2" -"@storybook/addon-links@5.1.0-alpha.9": - version "5.1.0-alpha.9" - resolved "https://registry.yarnpkg.com/@storybook/addon-links/-/addon-links-5.1.0-alpha.9.tgz#d5503b5bae813fe4d78fdfe335f081f2ff675965" - integrity sha512-yq0c7eKLItIfDsvWdP8WYNApwnBmOTcYKsC924/TpZ9yZaYBpTuHqoIbh/3c1I0e75grT03eKkRYn/Ya7rAvLw== +"@storybook/addon-links@5.1.0-alpha.11": + version "5.1.0-alpha.11" + resolved "https://registry.yarnpkg.com/@storybook/addon-links/-/addon-links-5.1.0-alpha.11.tgz#9f59d7269d36a1ee2d7bd985e0c4130be7ef16c5" + integrity sha512-8X1qmGr9aMCJspievP6loBZ5Q/hr/T68tr5WvXPheD7UZ0QDgddc/jiSN+QcFH/7OjNMHNnJmZZIDoSTMs41vA== dependencies: - "@storybook/addons" "5.1.0-alpha.9" - "@storybook/core-events" "5.1.0-alpha.9" + "@storybook/addons" "5.1.0-alpha.11" + "@storybook/core-events" "5.1.0-alpha.11" + "@storybook/router" "5.1.0-alpha.11" common-tags "^1.8.0" core-js "^2.6.5" global "^4.3.2" prop-types "^15.7.2" qs "^6.6.0" -"@storybook/addons@5.1.0-alpha.9": - version "5.1.0-alpha.9" - resolved "https://registry.yarnpkg.com/@storybook/addons/-/addons-5.1.0-alpha.9.tgz#0aed24ba4eb2345f3d2a6429a93463e282dfb9cb" - integrity sha512-B7cBzw+89cuxBDNL14EO+sng8G9RGaQ1reuZJTFB1mopI3nTHipaEhjpEVNGcZtW6DNkiBWN60rV3SDPybUeOg== +"@storybook/addons@5.1.0-alpha.11": + version "5.1.0-alpha.11" + resolved "https://registry.yarnpkg.com/@storybook/addons/-/addons-5.1.0-alpha.11.tgz#52ed5d62ca87b66beb69d18108ab37837302228d" + integrity sha512-C6dxfcIWDH634xYz3Mtz9X69ulL8u1uEfD4ZgksyA94iM0i8qOkZQuf+Axb8GLmqzIzJlS2vkuBnlmgSUPJP2w== dependencies: - "@storybook/channels" "5.1.0-alpha.9" - "@storybook/client-logger" "5.1.0-alpha.9" + "@storybook/api" "5.1.0-alpha.11" + "@storybook/channels" "5.1.0-alpha.11" + "@storybook/client-logger" "5.1.0-alpha.11" core-js "^2.6.5" global "^4.3.2" util-deprecate "^1.0.2" -"@storybook/channel-postmessage@5.1.0-alpha.9": - version "5.1.0-alpha.9" - resolved "https://registry.yarnpkg.com/@storybook/channel-postmessage/-/channel-postmessage-5.1.0-alpha.9.tgz#9f5ff69db3feaea805f358130e58c220edba10c5" - integrity sha512-5XJ1nE4gb/97EnoCQvj5SkKDuvdXIvlmJ5zprEH5OV0jZn9urRIjBW6HslY+07jKhrCit5mI6R/zxeyAfJoglg== +"@storybook/api@5.1.0-alpha.11": + version "5.1.0-alpha.11" + resolved "https://registry.yarnpkg.com/@storybook/api/-/api-5.1.0-alpha.11.tgz#d748ce7a3513fd3f7ab02a4675ce04cfccd63bc0" + integrity sha512-TjJcX7C2/C8k6Butkv+saRRVgYaef4YQo/Cr3pa8wvGse0CqYQZAlSKt/vZ57r5L/GlR5ZZS4UmcWmGPaY2f8w== dependencies: - "@storybook/channels" "5.1.0-alpha.9" - "@storybook/client-logger" "5.1.0-alpha.9" + "@storybook/channels" "5.1.0-alpha.11" + "@storybook/client-logger" "5.1.0-alpha.11" + "@storybook/core-events" "5.1.0-alpha.11" + "@storybook/router" "5.1.0-alpha.11" + "@storybook/theming" "5.1.0-alpha.11" + core-js "^2.6.5" + fast-deep-equal "^2.0.1" + global "^4.3.2" + lodash.isequal "^4.5.0" + lodash.mergewith "^4.6.1" + lodash.pick "^4.4.0" + memoizerific "^1.11.3" + prop-types "^15.6.2" + react "^16.7.0" + semver "^5.6.0" + telejson "^2.1.1" + util-deprecate "^1.0.2" + +"@storybook/channel-postmessage@5.1.0-alpha.11": + version "5.1.0-alpha.11" + resolved "https://registry.yarnpkg.com/@storybook/channel-postmessage/-/channel-postmessage-5.1.0-alpha.11.tgz#b0d2861d881045921d87d418d5614f0f061d9e89" + integrity sha512-wjcI//c3D88/1dB4X0bMM21dP181nFtIzeOiQvw45/5sKurCWhzbdXIghPqI5UnPLs3hhzL2D85frgjcAk3bbg== + dependencies: + "@storybook/channels" "5.1.0-alpha.11" + "@storybook/client-logger" "5.1.0-alpha.11" core-js "^2.6.5" global "^4.3.2" telejson "^2.1.1" -"@storybook/channels@5.1.0-alpha.9": - version "5.1.0-alpha.9" - resolved "https://registry.yarnpkg.com/@storybook/channels/-/channels-5.1.0-alpha.9.tgz#0078e6250cf44d5c7d885565a98807518242731b" - integrity sha512-gJMJTyzutLcF3u69s3XzU+h1+iEEJ8DcP3DC1OqimhhRy8w+pqn+pRSIMUXLYknRyIeXY95/ShUySKogHQECRA== +"@storybook/channels@5.1.0-alpha.11": + version "5.1.0-alpha.11" + resolved "https://registry.yarnpkg.com/@storybook/channels/-/channels-5.1.0-alpha.11.tgz#8d1424f33e379c3cf10d8b2e9c6f2595f89117f4" + integrity sha512-02fA+HgSh98c6cEvGcvd9io+ny+okvCRlqya4BQMtC+HF+J7AsSgZWRWlUiu43+WRnnGg2ol3UHXJR/DgoC9cQ== dependencies: core-js "^2.6.5" -"@storybook/client-api@5.1.0-alpha.9": - version "5.1.0-alpha.9" - resolved "https://registry.yarnpkg.com/@storybook/client-api/-/client-api-5.1.0-alpha.9.tgz#712d5ea1f85eecb40f9ee630239d2da3860829b6" - integrity sha512-t+Xm0N/pxBQu7LYistVuO/pnwLTqNcKCL45QCe/sYjsB8ONWEw0w7zXrBQZaVAsdzMdAVj4bJUP5s5M1RgK03Q== +"@storybook/client-api@5.1.0-alpha.11": + version "5.1.0-alpha.11" + resolved "https://registry.yarnpkg.com/@storybook/client-api/-/client-api-5.1.0-alpha.11.tgz#652d537a67edc323572d038381315d6cd077b238" + integrity sha512-no34lqI6KzSKI6fdeYHyFWshIYhqRKQI71nzKVPONNNQ3l6CDyQvAjBnu7Mwi3lLVWxHEa2EbCUqGxu9D8/OlQ== dependencies: - "@storybook/addons" "5.1.0-alpha.9" - "@storybook/client-logger" "5.1.0-alpha.9" - "@storybook/core-events" "5.1.0-alpha.9" - "@storybook/router" "5.1.0-alpha.9" + "@storybook/addons" "5.1.0-alpha.11" + "@storybook/client-logger" "5.1.0-alpha.11" + "@storybook/core-events" "5.1.0-alpha.11" + "@storybook/router" "5.1.0-alpha.11" common-tags "^1.8.0" eventemitter3 "^3.1.0" global "^4.3.2" @@ -1094,23 +1120,23 @@ memoizerific "^1.11.3" qs "^6.6.0" -"@storybook/client-logger@5.1.0-alpha.9": - version "5.1.0-alpha.9" - resolved "https://registry.yarnpkg.com/@storybook/client-logger/-/client-logger-5.1.0-alpha.9.tgz#bdefa0a2317ba004bb6332ced591b3e6cf84b393" - integrity sha512-JjjIWmSV+hVF2n7m212sUP1E5HdGgZvWg7k4nn8ZPO87TPSLnskIFjz5eA71NrFLXS2DkYQB8FoXmSEH1Hfa2g== +"@storybook/client-logger@5.1.0-alpha.11": + version "5.1.0-alpha.11" + resolved "https://registry.yarnpkg.com/@storybook/client-logger/-/client-logger-5.1.0-alpha.11.tgz#1f063e040ac90f1c7abc5a7489dbcf3bad787fb1" + integrity sha512-XP3IHjsokQDLWBOzlKMnFNhopX2MZ/y3YsNhTcL3KaVBd9XOKzCXoww3ly0LnjZiYhZMrWDFcifF/4bX2md2Lw== dependencies: core-js "^2.6.5" -"@storybook/components@5.1.0-alpha.9": - version "5.1.0-alpha.9" - resolved "https://registry.yarnpkg.com/@storybook/components/-/components-5.1.0-alpha.9.tgz#707d07b9c900b5a2cab9805137f3136d74ac365b" - integrity sha512-xU666kuAU2WscjlGdoXfLCPFbxA2JHwWXGZuykHEY1Y9H7QDPH+7Yr+82z2aZTgokvd/ZZAA/ZhmVXFhl1V3VA== +"@storybook/components@5.1.0-alpha.11": + version "5.1.0-alpha.11" + resolved "https://registry.yarnpkg.com/@storybook/components/-/components-5.1.0-alpha.11.tgz#05bb615f5227fe891dc35bed5be8c2c4dbbb81ee" + integrity sha512-FGOXeDRfhPbSDyRe4FYOwJxOwLKt/voZ1sNWaiHVBSNk0lOGuFBvs6amEgqex6hP0AO6SiSqgjqrhT2YaaUqug== dependencies: - "@storybook/addons" "5.1.0-alpha.9" - "@storybook/client-logger" "5.1.0-alpha.9" - "@storybook/core-events" "5.1.0-alpha.9" - "@storybook/router" "5.1.0-alpha.9" - "@storybook/theming" "5.1.0-alpha.9" + "@storybook/addons" "5.1.0-alpha.11" + "@storybook/client-logger" "5.1.0-alpha.11" + "@storybook/core-events" "5.1.0-alpha.11" + "@storybook/router" "5.1.0-alpha.11" + "@storybook/theming" "5.1.0-alpha.11" core-js "^2.6.5" global "^4.3.2" js-beautify "^1.8.9" @@ -1127,31 +1153,31 @@ recompose "^0.30.0" simplebar-react "^0.1.4" -"@storybook/core-events@5.1.0-alpha.9": - version "5.1.0-alpha.9" - resolved "https://registry.yarnpkg.com/@storybook/core-events/-/core-events-5.1.0-alpha.9.tgz#0422c02917ba17deeb6754d64f43019cf9f1a51a" - integrity sha512-12A0XkufJRSHacmuzXOdHx+ON/gbeIr82/8jwCGzikc/nDP7G85kKy7e1WKYTy1pZkxJ17jwturwPnMO17XeSQ== +"@storybook/core-events@5.1.0-alpha.11": + version "5.1.0-alpha.11" + resolved "https://registry.yarnpkg.com/@storybook/core-events/-/core-events-5.1.0-alpha.11.tgz#3acb0a77d6351a1405d8ab50e55e979cf31b5da9" + integrity sha512-SKv/uYyrRgP/mjgavrhgHu0YsOq5vny8BwAFPNzKQhxoKPBbO1XcIB1BioGOdkZwpQD9w3gAHJpUb7lr+eMecA== dependencies: core-js "^2.6.5" -"@storybook/core@5.1.0-alpha.9": - version "5.1.0-alpha.9" - resolved "https://registry.yarnpkg.com/@storybook/core/-/core-5.1.0-alpha.9.tgz#1894cf70ca90e98d1cce070a48c0f5066e245840" - integrity sha512-6IxICzguIaPkqn+vEq5qzFB7ovqDUbabd8qpfQZC8v37qp/OEZV7EzVFKpT//cYHusXjvC5Ie1h9wy+irZsXfA== +"@storybook/core@5.1.0-alpha.11": + version "5.1.0-alpha.11" + resolved "https://registry.yarnpkg.com/@storybook/core/-/core-5.1.0-alpha.11.tgz#1b1665f1298109e9b07e98c15911caa5e2fe6e14" + integrity sha512-8AvW0f15+LzC+NBQgq2274bVReEUEgAaLfiiIgYqq26NTyBBwWFA5lV9MNDUjeUwLDbQMgyZKkx5NKnx0NEihw== dependencies: "@babel/plugin-proposal-class-properties" "^7.3.3" "@babel/plugin-proposal-object-rest-spread" "^7.3.2" "@babel/plugin-syntax-dynamic-import" "^7.2.0" "@babel/plugin-transform-react-constant-elements" "^7.2.0" "@babel/preset-env" "^7.3.4" - "@storybook/addons" "5.1.0-alpha.9" - "@storybook/channel-postmessage" "5.1.0-alpha.9" - "@storybook/client-api" "5.1.0-alpha.9" - "@storybook/client-logger" "5.1.0-alpha.9" - "@storybook/core-events" "5.1.0-alpha.9" - "@storybook/node-logger" "5.1.0-alpha.9" - "@storybook/router" "5.1.0-alpha.9" - "@storybook/ui" "5.1.0-alpha.9" + "@storybook/addons" "5.1.0-alpha.11" + "@storybook/channel-postmessage" "5.1.0-alpha.11" + "@storybook/client-api" "5.1.0-alpha.11" + "@storybook/client-logger" "5.1.0-alpha.11" + "@storybook/core-events" "5.1.0-alpha.11" + "@storybook/node-logger" "5.1.0-alpha.11" + "@storybook/router" "5.1.0-alpha.11" + "@storybook/ui" "5.1.0-alpha.11" airbnb-js-shims "^1 || ^2" autoprefixer "^9.4.9" babel-plugin-add-react-displayname "^0.0.5" @@ -1203,10 +1229,10 @@ webpack-dev-middleware "^3.6.0" webpack-hot-middleware "^2.24.3" -"@storybook/node-logger@5.1.0-alpha.9": - version "5.1.0-alpha.9" - resolved "https://registry.yarnpkg.com/@storybook/node-logger/-/node-logger-5.1.0-alpha.9.tgz#bd3e61f49dbd48bcec6cce35ac7dd3e37c52678d" - integrity sha512-1NZneQ4Frb8hACgBDjleVBSxroujW2kM3CAVOnLo0FtkJzT33H58Ch/61ILcybdrBDEfoKtevqHadbkkPY40Hw== +"@storybook/node-logger@5.1.0-alpha.11": + version "5.1.0-alpha.11" + resolved "https://registry.yarnpkg.com/@storybook/node-logger/-/node-logger-5.1.0-alpha.11.tgz#c85e624140214b4b105e89a482f8e02b4f79750e" + integrity sha512-TRuAvajfgXJdOfgH4QS2H/sYaGMd8j43/pkbPDgWoem8nalceCXlFBnmAZVZImd2y6B1MI3NS2ZtR9d7yhspwA== dependencies: chalk "^2.4.2" core-js "^2.6.5" @@ -1214,16 +1240,16 @@ pretty-hrtime "^1.0.3" regenerator-runtime "^0.12.1" -"@storybook/react@5.1.0-alpha.9": - version "5.1.0-alpha.9" - resolved "https://registry.yarnpkg.com/@storybook/react/-/react-5.1.0-alpha.9.tgz#93e05b274933a4af58e2efa4d5ccce995d880e18" - integrity sha512-VwR2n+/lAT4qoutJ4D11IoZZWWUo3nvDiEWugt1bXuGB4kWLzftD4oDoQIoG04Kq8IAnwaWAxXQ3sqYwm+m3Sw== +"@storybook/react@5.1.0-alpha.11": + version "5.1.0-alpha.11" + resolved "https://registry.yarnpkg.com/@storybook/react/-/react-5.1.0-alpha.11.tgz#80f2ea5485627ede61cb6c22c0e66dcafc90d57e" + integrity sha512-4jRf9bTJLCeLdsz54+AMJvcIl8soGY8VLFeukd7e88WpyzIuNS+iU8EVS6Eg6US7duLyht9diSTZ35JexxBUPg== dependencies: "@babel/plugin-transform-react-constant-elements" "^7.2.0" "@babel/preset-flow" "^7.0.0" "@babel/preset-react" "^7.0.0" - "@storybook/core" "5.1.0-alpha.9" - "@storybook/node-logger" "5.1.0-alpha.9" + "@storybook/core" "5.1.0-alpha.11" + "@storybook/node-logger" "5.1.0-alpha.11" "@svgr/webpack" "^4.0.3" babel-plugin-named-asset-import "^0.3.1" babel-plugin-react-docgen "^2.0.2" @@ -1239,30 +1265,30 @@ semver "^5.6.0" webpack "^4.29.6" -"@storybook/router@5.1.0-alpha.9": - version "5.1.0-alpha.9" - resolved "https://registry.yarnpkg.com/@storybook/router/-/router-5.1.0-alpha.9.tgz#027b5db9b71b068ca305aae716f61c5ea4303159" - integrity sha512-cSug0QbxjhjC3pCZkt2GRBXLql2N2q+PaY5T7ns1QPd+v5tMQjiIJvJs4HMRtqCi81cSHTRt4NMqd42U9GNbfA== +"@storybook/router@5.1.0-alpha.11": + version "5.1.0-alpha.11" + resolved "https://registry.yarnpkg.com/@storybook/router/-/router-5.1.0-alpha.11.tgz#e64b26f8d5a010c85f93ad6f5e85bf0b9e21abbe" + integrity sha512-pz4JE3963ZZV4GojxV4y17Zh0Nxj4VjOeJARNbY853ekagjjmDNrF6rBQvLLsQH/HA4smz9mVwetbId2tv37DA== dependencies: "@reach/router" "^1.2.1" - "@storybook/theming" "5.1.0-alpha.9" + "@storybook/theming" "5.1.0-alpha.11" core-js "^2.6.5" global "^4.3.2" memoizerific "^1.11.3" qs "^6.6.0" -"@storybook/theming@5.1.0-alpha.9": - version "5.1.0-alpha.9" - resolved "https://registry.yarnpkg.com/@storybook/theming/-/theming-5.1.0-alpha.9.tgz#04e0d46180f313d7ced0c4429bf52cede6e42c9d" - integrity sha512-Q7VV6EtRpOHJ6Qnz22oF34KMLcJIAYVNuYkDDoeEhR6zboD8n2BTS0N0gSXMGrq611BdbIuZKiaytatmQvFdQw== +"@storybook/theming@5.1.0-alpha.11": + version "5.1.0-alpha.11" + resolved "https://registry.yarnpkg.com/@storybook/theming/-/theming-5.1.0-alpha.11.tgz#7622403ff8551c0a92779ee0de2d24851714c9ff" + integrity sha512-0O+1ENyc19F+e5KROY2U12/x7ptvjbmvujzIyAR+hiza/JW6VJyXNPIGgkPO+cVw9Jpv99EsmfjtyYP2SboRig== dependencies: "@emotion/core" "^10.0.7" "@emotion/styled" "^10.0.7" - "@storybook/client-logger" "5.1.0-alpha.9" + "@storybook/client-logger" "5.1.0-alpha.11" common-tags "^1.8.0" core-js "^2.6.5" deep-object-diff "^1.1.0" - emotion-theming "^10.0.7" + emotion-theming "^10.0.9" global "^4.3.2" lodash.isequal "^4.5.0" lodash.mergewith "^4.6.1" @@ -1271,17 +1297,18 @@ prop-types "^15.7.2" react-inspector "^2.3.1" -"@storybook/ui@5.1.0-alpha.9": - version "5.1.0-alpha.9" - resolved "https://registry.yarnpkg.com/@storybook/ui/-/ui-5.1.0-alpha.9.tgz#d1bc4e674728a63e0d548b9dd16445e972042d3d" - integrity sha512-t8rDjSayS48fXWv4E34kRrj27v0j3sRJDDg1qg4VvyuV0M8t7S8YTJMN/XyEwwSo80Zst0z7U6uamVnyh0LIBg== - dependencies: - "@storybook/addons" "5.1.0-alpha.9" - "@storybook/client-logger" "5.1.0-alpha.9" - "@storybook/components" "5.1.0-alpha.9" - "@storybook/core-events" "5.1.0-alpha.9" - "@storybook/router" "5.1.0-alpha.9" - "@storybook/theming" "5.1.0-alpha.9" +"@storybook/ui@5.1.0-alpha.11": + version "5.1.0-alpha.11" + resolved "https://registry.yarnpkg.com/@storybook/ui/-/ui-5.1.0-alpha.11.tgz#acffcdc943319fb42c0e2d9e938bf132117e20e2" + integrity sha512-Oqin2iG948f8GAjLkpUk6rrynQgWgL8aGF8mvxHUgDagzsZZeN+meS1O3zqcN2KfEL1BPIV/zlRHwLleaHtSGQ== + dependencies: + "@storybook/addons" "5.1.0-alpha.11" + "@storybook/api" "5.1.0-alpha.11" + "@storybook/client-logger" "5.1.0-alpha.11" + "@storybook/components" "5.1.0-alpha.11" + "@storybook/core-events" "5.1.0-alpha.11" + "@storybook/router" "5.1.0-alpha.11" + "@storybook/theming" "5.1.0-alpha.11" core-js "^2.6.5" fast-deep-equal "^2.0.1" fuzzy-search "^3.0.1" @@ -1290,7 +1317,7 @@ lodash.isequal "^4.5.0" lodash.mergewith "^4.6.1" lodash.pick "^4.4.0" - markdown-to-jsx "^6.9.1" + markdown-to-jsx "^6.9.3" memoizerific "^1.11.3" polished "^3.0.0" prop-types "^15.7.2" @@ -5786,7 +5813,7 @@ emojis-list@^2.0.0: resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-2.1.0.tgz#4daa4d9db00f9819880c79fa457ae5b09a1fd389" integrity sha1-TapNnbAPmBmIDHn6RXrlsJof04k= -emotion-theming@^10.0.7: +emotion-theming@^10.0.9: version "10.0.9" resolved "https://registry.yarnpkg.com/emotion-theming/-/emotion-theming-10.0.9.tgz#80e9fc40db8c46b466fcc11f3ae076f332933a4e" integrity sha512-Z8fg5+5u62fOkZR9uCO9/TTxjTk5ieL/GIQgtRhi6WrZT++NAqY9u9GBUjbbJDWYkt6GIcy/S+m7yKaB+iGrDA== @@ -9911,10 +9938,10 @@ markdown-table@^1.1.0: resolved "https://registry.yarnpkg.com/markdown-table/-/markdown-table-1.1.2.tgz#c78db948fa879903a41bce522e3b96f801c63786" integrity sha512-NcWuJFHDA8V3wkDgR/j4+gZx+YQwstPgfQDV8ndUeWWzta3dnDTBxpVzqS9lkmJAuV5YX35lmyojl6HO5JXAgw== -markdown-to-jsx@^6.9.1: - version "6.9.1" - resolved "https://registry.yarnpkg.com/markdown-to-jsx/-/markdown-to-jsx-6.9.1.tgz#a5771d468727e282f54a15ff447bcd79fc2e619f" - integrity sha512-SAUZWD//gjhP3Sfy2Q7EqhNOm7YYKTfQKuiuyr8FO9fa0EPkrXSDDE3u28A5SQx6j4BJ9Zs9Va77GBMtIcgAWw== +markdown-to-jsx@^6.9.3: + version "6.9.3" + resolved "https://registry.yarnpkg.com/markdown-to-jsx/-/markdown-to-jsx-6.9.3.tgz#31719e3c54517ba9805db81d53701b89f5d2ed7e" + integrity sha512-iXteiv317VZd1vk/PBH5MWMD4r0XWekoWCHRVVadBcnCtxavhtfV1UaEaQgq9KyckTv31L60ASh5ZVVrOh37Qg== dependencies: prop-types "^15.6.2" unquote "^1.1.0" @@ -12809,6 +12836,16 @@ react@^15.6.0: object-assign "^4.1.0" prop-types "^15.5.10" +react@^16.7.0: + version "16.8.5" + resolved "https://registry.yarnpkg.com/react/-/react-16.8.5.tgz#49be3b655489d74504ad994016407e8a0445de66" + integrity sha512-daCb9TD6FZGvJ3sg8da1tRAtIuw29PbKZW++NN4wqkbEvxL+bZpaaYb4xuftW/SpXmgacf1skXl/ddX6CdOlDw== + dependencies: + loose-envify "^1.1.0" + object-assign "^4.1.1" + prop-types "^15.6.2" + scheduler "^0.13.5" + react@^16.8.3, react@^16.8.4: version "16.8.4" resolved "https://registry.yarnpkg.com/react/-/react-16.8.4.tgz#fdf7bd9ae53f03a9c4cd1a371432c206be1c4768" @@ -13758,6 +13795,14 @@ scheduler@^0.13.4: loose-envify "^1.1.0" object-assign "^4.1.1" +scheduler@^0.13.5: + version "0.13.5" + resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.13.5.tgz#b7226625167041298af3b98088a9dbbf6d7733a8" + integrity sha512-K98vjkQX9OIt/riLhp6F+XtDPtMQhqNcf045vsh+pcuvHq+PHy1xCrH3pq1P40m6yR46lpVvVhKdEOtnimuUJw== + dependencies: + loose-envify "^1.1.0" + object-assign "^4.1.1" + schema-utils@^0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-0.3.0.tgz#f5877222ce3e931edae039f17eb3716e7137f8cf" From 5c376038daf6cc43fb27065c31ea1c4c9a15505d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Fri, 22 Mar 2019 21:18:43 +0000 Subject: [PATCH 16/45] Bump simplebar-react from 0.1.4 to 0.1.5 Bumps [simplebar-react](https://github.com/grsmto/simplebar) from 0.1.4 to 0.1.5. - [Release notes](https://github.com/grsmto/simplebar/releases) - [Commits](https://github.com/grsmto/simplebar/compare/simplebar-react@0.1.4...simplebar-react@0.1.5) Signed-off-by: dependabot[bot] --- lib/components/package.json | 2 +- yarn.lock | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/components/package.json b/lib/components/package.json index 437bea311fbe..2aec1a002262 100644 --- a/lib/components/package.json +++ b/lib/components/package.json @@ -40,7 +40,7 @@ "react-syntax-highlighter": "^8.0.1", "react-textarea-autosize": "^7.1.0", "recompose": "^0.30.0", - "simplebar-react": "^0.1.4" + "simplebar-react": "^0.1.5" }, "peerDependencies": { "react": "*", diff --git a/yarn.lock b/yarn.lock index cfb0ab95ce73..2ea47b1a82dd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -23804,18 +23804,18 @@ simple-swizzle@^0.2.2: dependencies: is-arrayish "^0.3.1" -simplebar-react@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/simplebar-react/-/simplebar-react-0.1.4.tgz#6b795166840b1cce55c2d45a0a9c7ede6cb59cee" - integrity sha512-nsu+Ag/CiPJoC756opBO1vtPpVmGeFk4TKIQ5eRIeT3THBCnJUzSQBUYBc+Ah+emMyjp8WQcC5fZmqqkB3NntA== +simplebar-react@^0.1.5: + version "0.1.5" + resolved "https://registry.yarnpkg.com/simplebar-react/-/simplebar-react-0.1.5.tgz#ba123efa4e3cd7aeb9cc4492b70331afd148fbab" + integrity sha512-t8KKy2+uBWy+4zzVPNOpO0QbM0+vXspnhIL7mIdQl66tyIJLlSagKQZGkHhFCR0kQxGNwPOXpvBerXxH3YPNPA== dependencies: prop-types "^15.6.1" - simplebar "^3.1.3" + simplebar "^3.1.4" -simplebar@^3.1.3: - version "3.1.3" - resolved "https://registry.yarnpkg.com/simplebar/-/simplebar-3.1.3.tgz#fa6c669d080d1a7514b277b2e27807bba1a6e118" - integrity sha512-IjRPRhAgBgKi9fo/lzvdf4q7rRkrgyyQ0lJ/LtqfZhByQPXsgRHCHWtYpTKA5VKEe9NxA5CTUNT7m4piwCucqA== +simplebar@^3.1.4: + version "3.1.4" + resolved "https://registry.yarnpkg.com/simplebar/-/simplebar-3.1.4.tgz#bfee6b71784eca2ad543828396d3db7ed50e3e33" + integrity sha512-gmcc6hhaRznCohLIBc82pbuwjeeWqpBu/18U6EnXCqvwG4xkq3i5i8ebGVwbaxWEbEcOGGDGW4y+vvjgQxO1Pw== dependencies: can-use-dom "^0.1.0" core-js "^2.6.2" From 015ec4b394e36c0e155d8c7f3d4c1f0dae7fcbf2 Mon Sep 17 00:00:00 2001 From: Arman Sargsyan Date: Sat, 23 Mar 2019 00:36:03 +0300 Subject: [PATCH 17/45] fix(actions): deepEqual don't can compare cyclic object: wrap it in try/catch for safe render --- .../src/containers/ActionLogger/index.tsx | 31 ++++++++++++------- 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/addons/actions/src/containers/ActionLogger/index.tsx b/addons/actions/src/containers/ActionLogger/index.tsx index 5b77420f0723..4caa1b54b35f 100644 --- a/addons/actions/src/containers/ActionLogger/index.tsx +++ b/addons/actions/src/containers/ActionLogger/index.tsx @@ -17,6 +17,14 @@ interface ActionLoggerState { actions: ActionDisplay[]; } +const safeDeepEqual = (a: any, b: any): boolean => { + try { + return deepEqual(a, b); + } catch (e) { + return false; + } +}; + export default class ActionLogger extends Component { private mounted: boolean; @@ -50,18 +58,17 @@ export default class ActionLogger extends Component { - let { actions = [] } = this.state; - actions = [...actions]; - - const previous = actions.length && actions[0]; - - if (previous && deepEqual(previous.data, action.data)) { - previous.count++; // eslint-disable-line - } else { - action.count = 1; // eslint-disable-line - actions.unshift(action); - } - this.setState({ actions: actions.slice(0, action.options.limit) }); + this.setState((prevState: ActionLoggerState) => { + const actions = [...prevState.actions]; + const previous = actions.length && actions[0]; + if (previous && safeDeepEqual(previous.data, action.data)) { + previous.count++; // eslint-disable-line + } else { + action.count = 1; // eslint-disable-line + actions.unshift(action); + } + return { actions: actions.slice(0, action.options.limit) }; + }); }; clearActions = () => { From 213e91d236c05e9a042d00fd9f3919464269d108 Mon Sep 17 00:00:00 2001 From: Joe Fraley Date: Fri, 22 Mar 2019 18:52:01 -0700 Subject: [PATCH 18/45] adds an example of a boolean knob proves that the boolean knob works as expected --- examples/ember-cli/stories/addon-knobs.stories.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/ember-cli/stories/addon-knobs.stories.js b/examples/ember-cli/stories/addon-knobs.stories.js index 76245dea98d9..5e65fcd6ddbf 100644 --- a/examples/ember-cli/stories/addon-knobs.stories.js +++ b/examples/ember-cli/stories/addon-knobs.stories.js @@ -1,6 +1,6 @@ import hbs from 'htmlbars-inline-precompile'; import { storiesOf } from '@storybook/ember'; -import { withKnobs, text, color } from '@storybook/addon-knobs'; +import { withKnobs, text, color, boolean } from '@storybook/addon-knobs'; import { action } from '@storybook/addon-actions'; storiesOf('Addon|Knobs', module) @@ -9,6 +9,7 @@ storiesOf('Addon|Knobs', module) .add('with text', () => ({ template: hbs` {{welcome-banner + style=(if this.hidden "display: hidden") backgroundColor=backgroundColor titleColor=titleColor subTitleColor=subTitleColor @@ -18,6 +19,7 @@ storiesOf('Addon|Knobs', module) }} `, context: { + hidden: boolean('hidden', false), backgroundColor: color('backgroundColor', '#FDF4E7'), titleColor: color('titleColor', '#DF4D37'), subTitleColor: color('subTitleColor', '#B8854F'), From e34bbfc2e728e06f21262bb6e32928f8acb8b759 Mon Sep 17 00:00:00 2001 From: "Leo Y. Li" Date: Fri, 22 Mar 2019 22:25:13 -0400 Subject: [PATCH 19/45] Fix addon-knobs ObjectType knob react warning #5276 --- addons/knobs/src/components/types/Object.js | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/addons/knobs/src/components/types/Object.js b/addons/knobs/src/components/types/Object.js index 2440ab5022ac..b68e55e24fa5 100644 --- a/addons/knobs/src/components/types/Object.js +++ b/addons/knobs/src/components/types/Object.js @@ -5,15 +5,11 @@ import { polyfill } from 'react-lifecycles-compat'; import { Form } from '@storybook/components'; class ObjectType extends Component { - constructor(props) { - super(props); - - this.state = { - value: null, - failed: false, - json: props.knob.value, - }; - } + state = { + value: {}, + failed: false, + json: '', + }; static getDerivedStateFromProps(props, state) { if (!deepEqual(props.knob.value, state.json)) { From 2540eba5647bed40dc8459cc36907b24052dd78d Mon Sep 17 00:00:00 2001 From: Sergey Zwezdin Date: Sat, 23 Mar 2019 08:36:59 +0500 Subject: [PATCH 20/45] Test added for forked CRA support #5801 --- app/react/src/server/cra-config.test.js | 33 +++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/app/react/src/server/cra-config.test.js b/app/react/src/server/cra-config.test.js index c2d76ea50bec..21b8a1d18322 100644 --- a/app/react/src/server/cra-config.test.js +++ b/app/react/src/server/cra-config.test.js @@ -6,6 +6,7 @@ import mockConfig from './__mocks__/mockConfig'; jest.mock('fs', () => ({ realpathSync: jest.fn(), + readFileSync: jest.fn(), existsSync: () => true, })); jest.mock('mini-css-extract-plugin', () => {}); @@ -46,6 +47,38 @@ describe('cra-config', () => { }); }); + describe('when used with a custom react-scripts package without symlinks in .bin folder', () => { + beforeEach(() => { + // In case of .bin/react-scripts is not symlink (like it happens on Windows), + // realpathSync() method does not translate the path. + fs.realpathSync.mockImplementationOnce(filePath => filePath); + + fs.readFileSync.mockImplementationOnce( + () => `#!/bin/sh +basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") + +case \`uname\` in + *CYGWIN*) basedir=\`cygpath -w "$basedir"\`;; +esac + +if [ -x "$basedir/node" ]; then + "$basedir/node" "$basedir/../custom-react-scripts/bin/react-scripts.js" "$@" + ret=$? +else + node "$basedir/../custom-react-scripts/bin/react-scripts.js" "$@" + ret=$? +fi +exit $ret` + ); + }); + + it('should locate the react-scripts package', () => { + expect(getReactScriptsPath({ noCache: true })).toEqual( + '/test-project/node_modules/custom-react-scripts' + ); + }); + }); + describe('when used with TypeScript', () => { it('should return the correct config', () => { // Normalise the return, as we know our new rules object will be an array, whereas a string is expected. From 8a9ecd50d44c72eb1514934b432b2c748db20e79 Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Sat, 23 Mar 2019 13:07:42 +0800 Subject: [PATCH 21/45] 5.1.0-alpha.13 changelog --- CHANGELOG.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f33ccecaa3c..dc93e26f320f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,15 @@ +## 5.1.0-alpha.13 (March 23, 2019) + +### Features + +* Svelte: add svelte cli generator ([#6132](https://github.com/storybooks/storybook/pull/6132)) + +### Bug Fixes + +* Addon-knobs: Fix ObjectType knob react warning ([#6159](https://github.com/storybooks/storybook/pull/6159)) +* React: Fix forked CRA support on Windows ([#6236](https://github.com/storybooks/storybook/pull/6236)) +* UI: Fix tooltip event bindings, logger import ([#6238](https://github.com/storybooks/storybook/pull/6238)) + ## 5.1.0-alpha.12 (March 22, 2019) ### Bug Fixes From 15871945e228a6b15bcd553f8b97d9a3a1997233 Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Sat, 23 Mar 2019 13:19:10 +0800 Subject: [PATCH 22/45] v5.1.0-alpha.13 --- addons/a11y/package.json | 14 ++--- addons/actions/package.json | 12 ++-- addons/backgrounds/package.json | 14 ++--- addons/centered/package.json | 2 +- addons/cssresources/package.json | 10 ++-- addons/events/package.json | 8 +-- addons/google-analytics/package.json | 6 +- addons/graphql/package.json | 2 +- addons/info/package.json | 10 ++-- addons/jest/package.json | 10 ++-- addons/knobs/package.json | 10 ++-- addons/links/package.json | 8 +-- addons/notes/package.json | 14 ++--- addons/ondevice-backgrounds/package.json | 4 +- addons/ondevice-knobs/package.json | 6 +- addons/ondevice-notes/package.json | 4 +- addons/options/package.json | 4 +- .../storyshots/storyshots-core/package.json | 4 +- .../storyshots-puppeteer/package.json | 6 +- addons/storysource/package.json | 10 ++-- addons/viewport/package.json | 12 ++-- app/angular/package.json | 6 +- app/ember/package.json | 4 +- app/html/package.json | 4 +- app/marko/package.json | 4 +- app/mithril/package.json | 4 +- app/polymer/package.json | 4 +- app/preact/package.json | 4 +- app/react-native-server/package.json | 14 ++--- app/react-native/package.json | 12 ++-- app/react/package.json | 6 +- app/riot/package.json | 4 +- app/svelte/package.json | 4 +- app/vue/package.json | 4 +- .../crna-kitchen-sink/package.json | 12 ++-- examples/angular-cli/package.json | 26 ++++----- examples/cra-kitchen-sink/package.json | 32 +++++------ examples/cra-ts-kitchen-sink/package.json | 12 ++-- examples/ember-cli/package.json | 26 ++++----- examples/html-kitchen-sink/package.json | 36 ++++++------ examples/marko-cli/package.json | 14 ++--- examples/mithril-kitchen-sink/package.json | 26 ++++----- examples/official-storybook/package.json | 48 ++++++++-------- examples/polymer-cli/package.json | 20 +++---- examples/preact-kitchen-sink/package.json | 26 ++++----- examples/riot-kitchen-sink/package.json | 26 ++++----- examples/svelte-kitchen-sink/package.json | 26 ++++----- examples/vue-kitchen-sink/package.json | 26 ++++----- lerna.json | 2 +- lib/addons/package.json | 8 +-- lib/api/package.json | 12 ++-- lib/channel-postmessage/package.json | 6 +- lib/channel-websocket/package.json | 4 +- lib/channels/package.json | 2 +- lib/cli/package.json | 56 +++++++++---------- lib/client-api/package.json | 10 ++-- lib/client-logger/package.json | 2 +- lib/codemod/package.json | 2 +- lib/components/package.json | 12 ++-- lib/core-events/package.json | 2 +- lib/core/package.json | 18 +++--- lib/node-logger/package.json | 2 +- lib/router/package.json | 4 +- lib/theming/package.json | 4 +- lib/ui/package.json | 16 +++--- 65 files changed, 381 insertions(+), 381 deletions(-) diff --git a/addons/a11y/package.json b/addons/a11y/package.json index e9a120cb5310..75316cedaead 100644 --- a/addons/a11y/package.json +++ b/addons/a11y/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-a11y", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "a11y addon for storybook", "keywords": [ "a11y", @@ -26,12 +26,12 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.12", - "@storybook/api": "5.1.0-alpha.12", - "@storybook/client-logger": "5.1.0-alpha.12", - "@storybook/components": "5.1.0-alpha.12", - "@storybook/core-events": "5.1.0-alpha.12", - "@storybook/theming": "5.1.0-alpha.12", + "@storybook/addons": "5.1.0-alpha.13", + "@storybook/api": "5.1.0-alpha.13", + "@storybook/client-logger": "5.1.0-alpha.13", + "@storybook/components": "5.1.0-alpha.13", + "@storybook/core-events": "5.1.0-alpha.13", + "@storybook/theming": "5.1.0-alpha.13", "axe-core": "^3.2.2", "common-tags": "^1.8.0", "core-js": "^2.6.5", diff --git a/addons/actions/package.json b/addons/actions/package.json index dcd5967e3c83..1de86cb282f1 100644 --- a/addons/actions/package.json +++ b/addons/actions/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-actions", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "Action Logger addon for storybook", "keywords": [ "storybook" @@ -21,11 +21,11 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.12", - "@storybook/api": "5.1.0-alpha.12", - "@storybook/components": "5.1.0-alpha.12", - "@storybook/core-events": "5.1.0-alpha.12", - "@storybook/theming": "5.1.0-alpha.12", + "@storybook/addons": "5.1.0-alpha.13", + "@storybook/api": "5.1.0-alpha.13", + "@storybook/components": "5.1.0-alpha.13", + "@storybook/core-events": "5.1.0-alpha.13", + "@storybook/theming": "5.1.0-alpha.13", "core-js": "^2.6.5", "fast-deep-equal": "^2.0.1", "global": "^4.3.2", diff --git a/addons/backgrounds/package.json b/addons/backgrounds/package.json index 0cb992eeab8c..05ddf12ecece 100644 --- a/addons/backgrounds/package.json +++ b/addons/backgrounds/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-backgrounds", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "A storybook addon to show different backgrounds for your preview", "keywords": [ "addon", @@ -25,12 +25,12 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.12", - "@storybook/api": "5.1.0-alpha.12", - "@storybook/client-logger": "5.1.0-alpha.12", - "@storybook/components": "5.1.0-alpha.12", - "@storybook/core-events": "5.1.0-alpha.12", - "@storybook/theming": "5.1.0-alpha.12", + "@storybook/addons": "5.1.0-alpha.13", + "@storybook/api": "5.1.0-alpha.13", + "@storybook/client-logger": "5.1.0-alpha.13", + "@storybook/components": "5.1.0-alpha.13", + "@storybook/core-events": "5.1.0-alpha.13", + "@storybook/theming": "5.1.0-alpha.13", "core-js": "^2.6.5", "memoizerific": "^1.11.3", "react": "^16.8.4", diff --git a/addons/centered/package.json b/addons/centered/package.json index 17f23da0ab12..9538d4f0fdac 100644 --- a/addons/centered/package.json +++ b/addons/centered/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-centered", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "Storybook decorator to center components", "keywords": [ "addon", diff --git a/addons/cssresources/package.json b/addons/cssresources/package.json index b32086579e5e..0176c74c2acc 100644 --- a/addons/cssresources/package.json +++ b/addons/cssresources/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-cssresources", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "A storybook addon to switch between css resources at runtime for your story", "keywords": [ "addon", @@ -25,10 +25,10 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.12", - "@storybook/api": "5.1.0-alpha.12", - "@storybook/components": "5.1.0-alpha.12", - "@storybook/core-events": "5.1.0-alpha.12", + "@storybook/addons": "5.1.0-alpha.13", + "@storybook/api": "5.1.0-alpha.13", + "@storybook/components": "5.1.0-alpha.13", + "@storybook/core-events": "5.1.0-alpha.13", "core-js": "^2.6.5", "global": "^4.3.2", "react": "^16.8.4" diff --git a/addons/events/package.json b/addons/events/package.json index 10199a231565..97b05dfd5c8e 100644 --- a/addons/events/package.json +++ b/addons/events/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-events", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "Add events to your Storybook stories.", "keywords": [ "addon", @@ -24,9 +24,9 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.12", - "@storybook/core-events": "5.1.0-alpha.12", - "@storybook/theming": "5.1.0-alpha.12", + "@storybook/addons": "5.1.0-alpha.13", + "@storybook/core-events": "5.1.0-alpha.13", + "@storybook/theming": "5.1.0-alpha.13", "core-js": "^2.6.5", "format-json": "^1.0.3", "prop-types": "^15.7.2", diff --git a/addons/google-analytics/package.json b/addons/google-analytics/package.json index 7515c2b9b46a..0847b1b7bafd 100644 --- a/addons/google-analytics/package.json +++ b/addons/google-analytics/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-google-analytics", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "Storybook addon for google analytics", "keywords": [ "addon", @@ -20,8 +20,8 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.12", - "@storybook/core-events": "5.1.0-alpha.12", + "@storybook/addons": "5.1.0-alpha.13", + "@storybook/core-events": "5.1.0-alpha.13", "core-js": "^2.6.5", "global": "^4.3.2", "react-ga": "^2.5.7" diff --git a/addons/graphql/package.json b/addons/graphql/package.json index 64e16a4b7aee..c1547e7360f2 100644 --- a/addons/graphql/package.json +++ b/addons/graphql/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-graphql", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "Storybook addon to display the GraphiQL IDE", "keywords": [ "addon", diff --git a/addons/info/package.json b/addons/info/package.json index 25833cdf2009..449e545021de 100644 --- a/addons/info/package.json +++ b/addons/info/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-info", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "A Storybook addon to show additional information for your stories.", "keywords": [ "addon", @@ -22,10 +22,10 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.12", - "@storybook/client-logger": "5.1.0-alpha.12", - "@storybook/components": "5.1.0-alpha.12", - "@storybook/theming": "5.1.0-alpha.12", + "@storybook/addons": "5.1.0-alpha.13", + "@storybook/client-logger": "5.1.0-alpha.13", + "@storybook/components": "5.1.0-alpha.13", + "@storybook/theming": "5.1.0-alpha.13", "core-js": "^2.6.5", "global": "^4.3.2", "marksy": "^6.1.0", diff --git a/addons/jest/package.json b/addons/jest/package.json index b35a97ed3b4f..b15e4c8922f6 100644 --- a/addons/jest/package.json +++ b/addons/jest/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-jest", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "React storybook addon that show component jest report", "keywords": [ "addon", @@ -28,10 +28,10 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.12", - "@storybook/components": "5.1.0-alpha.12", - "@storybook/core-events": "5.1.0-alpha.12", - "@storybook/theming": "5.1.0-alpha.12", + "@storybook/addons": "5.1.0-alpha.13", + "@storybook/components": "5.1.0-alpha.13", + "@storybook/core-events": "5.1.0-alpha.13", + "@storybook/theming": "5.1.0-alpha.13", "core-js": "^2.6.5", "global": "^4.3.2", "prop-types": "^15.7.2", diff --git a/addons/knobs/package.json b/addons/knobs/package.json index 97a66142e2ba..961ad94a812d 100644 --- a/addons/knobs/package.json +++ b/addons/knobs/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-knobs", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "Storybook Addon Prop Editor Component", "keywords": [ "addon", @@ -22,10 +22,10 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.12", - "@storybook/components": "5.1.0-alpha.12", - "@storybook/core-events": "5.1.0-alpha.12", - "@storybook/theming": "5.1.0-alpha.12", + "@storybook/addons": "5.1.0-alpha.13", + "@storybook/components": "5.1.0-alpha.13", + "@storybook/core-events": "5.1.0-alpha.13", + "@storybook/theming": "5.1.0-alpha.13", "copy-to-clipboard": "^3.0.8", "core-js": "^2.6.5", "escape-html": "^1.0.3", diff --git a/addons/links/package.json b/addons/links/package.json index 76eec76942c3..560f4c287758 100644 --- a/addons/links/package.json +++ b/addons/links/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-links", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "Story Links addon for storybook", "keywords": [ "addon", @@ -22,9 +22,9 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.12", - "@storybook/core-events": "5.1.0-alpha.12", - "@storybook/router": "5.1.0-alpha.12", + "@storybook/addons": "5.1.0-alpha.13", + "@storybook/core-events": "5.1.0-alpha.13", + "@storybook/router": "5.1.0-alpha.13", "common-tags": "^1.8.0", "core-js": "^2.6.5", "global": "^4.3.2", diff --git a/addons/notes/package.json b/addons/notes/package.json index b03d08cc7a4e..41da686f91ad 100644 --- a/addons/notes/package.json +++ b/addons/notes/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-notes", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "Write notes for your Storybook stories.", "keywords": [ "addon", @@ -23,12 +23,12 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.12", - "@storybook/api": "5.1.0-alpha.12", - "@storybook/client-logger": "5.1.0-alpha.12", - "@storybook/components": "5.1.0-alpha.12", - "@storybook/core-events": "5.1.0-alpha.12", - "@storybook/theming": "5.1.0-alpha.12", + "@storybook/addons": "5.1.0-alpha.13", + "@storybook/api": "5.1.0-alpha.13", + "@storybook/client-logger": "5.1.0-alpha.13", + "@storybook/components": "5.1.0-alpha.13", + "@storybook/core-events": "5.1.0-alpha.13", + "@storybook/theming": "5.1.0-alpha.13", "core-js": "^2.6.5", "markdown-to-jsx": "^6.9.3", "prop-types": "^15.7.2", diff --git a/addons/ondevice-backgrounds/package.json b/addons/ondevice-backgrounds/package.json index 85e18ca55f61..0f426281fb74 100644 --- a/addons/ondevice-backgrounds/package.json +++ b/addons/ondevice-backgrounds/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-ondevice-backgrounds", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "A storybook addon to show different backgrounds for your preview", "keywords": [ "addon", @@ -24,7 +24,7 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.12", + "@storybook/addons": "5.1.0-alpha.13", "core-js": "^2.6.5", "prop-types": "^15.7.2" }, diff --git a/addons/ondevice-knobs/package.json b/addons/ondevice-knobs/package.json index e83d9e9cbc00..7ab75c2c8858 100644 --- a/addons/ondevice-knobs/package.json +++ b/addons/ondevice-knobs/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-ondevice-knobs", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "Display storybook story knobs on your deviced.", "keywords": [ "addon", @@ -21,8 +21,8 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.12", - "@storybook/core-events": "5.1.0-alpha.12", + "@storybook/addons": "5.1.0-alpha.13", + "@storybook/core-events": "5.1.0-alpha.13", "core-js": "^2.6.5", "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 b1ecaf22699a..fd6cd188c59b 100644 --- a/addons/ondevice-notes/package.json +++ b/addons/ondevice-notes/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-ondevice-notes", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "Write notes for your Storybook stories.", "keywords": [ "addon", @@ -19,7 +19,7 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.12", + "@storybook/addons": "5.1.0-alpha.13", "core-js": "^2.6.5", "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 4813ba638b2e..a4fc38725a0c 100644 --- a/addons/options/package.json +++ b/addons/options/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-options", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "Options addon for storybook", "keywords": [ "addon", @@ -21,7 +21,7 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.12", + "@storybook/addons": "5.1.0-alpha.13", "core-js": "^2.6.5", "util-deprecate": "^1.0.2" }, diff --git a/addons/storyshots/storyshots-core/package.json b/addons/storyshots/storyshots-core/package.json index 112093b6ad7b..94224c015947 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.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "StoryShots is a Jest Snapshot Testing Addon for Storybook.", "keywords": [ "addon", @@ -25,7 +25,7 @@ "storybook": "start-storybook -p 6006" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.12", + "@storybook/addons": "5.1.0-alpha.13", "core-js": "^2.6.5", "glob": "^7.1.3", "global": "^4.3.2", diff --git a/addons/storyshots/storyshots-puppeteer/package.json b/addons/storyshots/storyshots-puppeteer/package.json index 2163aeb66f10..1ad702a3216b 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.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "Image snappshots addition to StoryShots base on puppeteer", "keywords": [ "addon", @@ -22,8 +22,8 @@ "prepare": "node ../../../scripts/prepare.js" }, "dependencies": { - "@storybook/node-logger": "5.1.0-alpha.12", - "@storybook/router": "5.1.0-alpha.12", + "@storybook/node-logger": "5.1.0-alpha.13", + "@storybook/router": "5.1.0-alpha.13", "core-js": "^2.6.5", "jest-image-snapshot": "^2.8.1", "puppeteer": "^1.12.2", diff --git a/addons/storysource/package.json b/addons/storysource/package.json index 26a665b0da13..58d5a3e42c94 100644 --- a/addons/storysource/package.json +++ b/addons/storysource/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-storysource", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "Stories addon for storybook", "keywords": [ "addon", @@ -22,10 +22,10 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.12", - "@storybook/components": "5.1.0-alpha.12", - "@storybook/router": "5.1.0-alpha.12", - "@storybook/theming": "5.1.0-alpha.12", + "@storybook/addons": "5.1.0-alpha.13", + "@storybook/components": "5.1.0-alpha.13", + "@storybook/router": "5.1.0-alpha.13", + "@storybook/theming": "5.1.0-alpha.13", "core-js": "^2.6.5", "estraverse": "^4.2.0", "loader-utils": "^1.2.3", diff --git a/addons/viewport/package.json b/addons/viewport/package.json index 0e4d0b089e32..58e35e160173 100644 --- a/addons/viewport/package.json +++ b/addons/viewport/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-viewport", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "Storybook addon to change the viewport size to mobile", "keywords": [ "addon", @@ -21,11 +21,11 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.12", - "@storybook/client-logger": "5.1.0-alpha.12", - "@storybook/components": "5.1.0-alpha.12", - "@storybook/core-events": "5.1.0-alpha.12", - "@storybook/theming": "5.1.0-alpha.12", + "@storybook/addons": "5.1.0-alpha.13", + "@storybook/client-logger": "5.1.0-alpha.13", + "@storybook/components": "5.1.0-alpha.13", + "@storybook/core-events": "5.1.0-alpha.13", + "@storybook/theming": "5.1.0-alpha.13", "core-js": "^2.6.5", "global": "^4.3.2", "memoizerific": "^1.11.3", diff --git a/app/angular/package.json b/app/angular/package.json index e8e3fa10c0ae..d7c0940035fc 100644 --- a/app/angular/package.json +++ b/app/angular/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/angular", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "Storybook for Angular: Develop Angular Components in isolation with Hot Reloading.", "keywords": [ "storybook" @@ -26,8 +26,8 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/core": "5.1.0-alpha.12", - "@storybook/node-logger": "5.1.0-alpha.12", + "@storybook/core": "5.1.0-alpha.13", + "@storybook/node-logger": "5.1.0-alpha.13", "angular2-template-loader": "^0.6.2", "core-js": "^2.6.5", "fork-ts-checker-webpack-plugin": "^0.5.2", diff --git a/app/ember/package.json b/app/ember/package.json index 2ddc48b28e35..3f98167d7622 100644 --- a/app/ember/package.json +++ b/app/ember/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/ember", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "Storybook for Ember: Develop Ember Component in isolation with Hot Reloading.", "homepage": "https://github.com/storybooks/storybook/tree/master/app/ember", "bugs": { @@ -24,7 +24,7 @@ }, "dependencies": { "@ember/test-helpers": "^1.5.0", - "@storybook/core": "5.1.0-alpha.12", + "@storybook/core": "5.1.0-alpha.13", "common-tags": "^1.8.0", "core-js": "^2.6.5", "global": "^4.3.2", diff --git a/app/html/package.json b/app/html/package.json index 4a5d461b00a8..9b34ece01399 100644 --- a/app/html/package.json +++ b/app/html/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/html", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "Storybook for HTML: View HTML snippets in isolation with Hot Reloading.", "keywords": [ "storybook" @@ -25,7 +25,7 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/core": "5.1.0-alpha.12", + "@storybook/core": "5.1.0-alpha.13", "common-tags": "^1.8.0", "core-js": "^2.6.5", "global": "^4.3.2", diff --git a/app/marko/package.json b/app/marko/package.json index 039de7eb3b3a..f0c59ea64773 100644 --- a/app/marko/package.json +++ b/app/marko/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/marko", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "Storybook for Marko: Develop Marko Component in isolation with Hot Reloading.", "keywords": [ "storybook" @@ -26,7 +26,7 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/core": "5.1.0-alpha.12", + "@storybook/core": "5.1.0-alpha.13", "common-tags": "^1.8.0", "core-js": "^2.6.5", "global": "^4.3.2", diff --git a/app/mithril/package.json b/app/mithril/package.json index 20313d9f9fb5..53bc9a59c8b2 100644 --- a/app/mithril/package.json +++ b/app/mithril/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/mithril", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "Storybook for Mithril: Develop Mithril Component in isolation.", "keywords": [ "storybook" @@ -27,7 +27,7 @@ }, "dependencies": { "@babel/plugin-transform-react-jsx": "^7.3.0", - "@storybook/core": "5.1.0-alpha.12", + "@storybook/core": "5.1.0-alpha.13", "common-tags": "^1.8.0", "core-js": "^2.6.5", "global": "^4.3.2", diff --git a/app/polymer/package.json b/app/polymer/package.json index 89f0c6668cc3..a4707176ba13 100644 --- a/app/polymer/package.json +++ b/app/polymer/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/polymer", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "Storybook for Polymer: Develop Polymer components in isolation with Hot Reloading.", "keywords": [ "storybook" @@ -25,7 +25,7 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/core": "5.1.0-alpha.12", + "@storybook/core": "5.1.0-alpha.13", "@webcomponents/webcomponentsjs": "^1.2.0", "common-tags": "^1.8.0", "core-js": "^2.6.5", diff --git a/app/preact/package.json b/app/preact/package.json index 441786ff38ce..22e8fb270db3 100644 --- a/app/preact/package.json +++ b/app/preact/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/preact", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "Storybook for Preact: Develop Preact Component in isolation.", "keywords": [ "storybook" @@ -27,7 +27,7 @@ }, "dependencies": { "@babel/plugin-transform-react-jsx": "^7.3.0", - "@storybook/core": "5.1.0-alpha.12", + "@storybook/core": "5.1.0-alpha.13", "common-tags": "^1.8.0", "core-js": "^2.6.5", "global": "^4.3.2", diff --git a/app/react-native-server/package.json b/app/react-native-server/package.json index 1c4813903473..7fff33a43e74 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.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "A better way to develop React Native Components for your app", "keywords": [ "react", @@ -24,12 +24,12 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.12", - "@storybook/api": "5.1.0-alpha.12", - "@storybook/channel-websocket": "5.1.0-alpha.12", - "@storybook/core": "5.1.0-alpha.12", - "@storybook/core-events": "5.1.0-alpha.12", - "@storybook/ui": "5.1.0-alpha.12", + "@storybook/addons": "5.1.0-alpha.13", + "@storybook/api": "5.1.0-alpha.13", + "@storybook/channel-websocket": "5.1.0-alpha.13", + "@storybook/core": "5.1.0-alpha.13", + "@storybook/core-events": "5.1.0-alpha.13", + "@storybook/ui": "5.1.0-alpha.13", "commander": "^2.19.0", "global": "^4.3.2", "react": "^16.6.0", diff --git a/app/react-native/package.json b/app/react-native/package.json index 075f16acab89..8c6a3a5a7ff5 100644 --- a/app/react-native/package.json +++ b/app/react-native/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/react-native", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "A better way to develop React Native Components for your app", "keywords": [ "react", @@ -23,11 +23,11 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.12", - "@storybook/channel-websocket": "5.1.0-alpha.12", - "@storybook/channels": "5.1.0-alpha.12", - "@storybook/client-api": "5.1.0-alpha.12", - "@storybook/core-events": "5.1.0-alpha.12", + "@storybook/addons": "5.1.0-alpha.13", + "@storybook/channel-websocket": "5.1.0-alpha.13", + "@storybook/channels": "5.1.0-alpha.13", + "@storybook/client-api": "5.1.0-alpha.13", + "@storybook/core-events": "5.1.0-alpha.13", "core-js": "^2.6.5", "prop-types": "^15.7.2", "react-native-swipe-gestures": "^1.0.3", diff --git a/app/react/package.json b/app/react/package.json index 5e8b7b9f31ae..22dbe5ae1b22 100644 --- a/app/react/package.json +++ b/app/react/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/react", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "Storybook for React: Develop React Component in isolation with Hot Reloading.", "keywords": [ "storybook" @@ -29,8 +29,8 @@ "@babel/plugin-transform-react-constant-elements": "^7.2.0", "@babel/preset-flow": "^7.0.0", "@babel/preset-react": "^7.0.0", - "@storybook/core": "5.1.0-alpha.12", - "@storybook/node-logger": "5.1.0-alpha.12", + "@storybook/core": "5.1.0-alpha.13", + "@storybook/node-logger": "5.1.0-alpha.13", "@svgr/webpack": "^4.0.3", "babel-plugin-named-asset-import": "^0.3.1", "babel-plugin-react-docgen": "^2.0.2", diff --git a/app/riot/package.json b/app/riot/package.json index d64f2a1f2293..e384ac1c395a 100644 --- a/app/riot/package.json +++ b/app/riot/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/riot", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "Storybook for riot.js: View riot snippets in isolation with Hot Reloading.", "keywords": [ "storybook" @@ -25,7 +25,7 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/core": "5.1.0-alpha.12", + "@storybook/core": "5.1.0-alpha.13", "common-tags": "^1.8.0", "core-js": "^2.6.5", "global": "^4.3.2", diff --git a/app/svelte/package.json b/app/svelte/package.json index 9eeccb8ef7d0..3f93c2c8ebff 100644 --- a/app/svelte/package.json +++ b/app/svelte/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/svelte", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "Storybook for Svelte: Develop Svelte Component in isolation with Hot Reloading.", "keywords": [ "storybook" @@ -26,7 +26,7 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/core": "5.1.0-alpha.12", + "@storybook/core": "5.1.0-alpha.13", "common-tags": "^1.8.0", "core-js": "^2.6.5", "global": "^4.3.2", diff --git a/app/vue/package.json b/app/vue/package.json index 665622f8c0ef..5f2069e657d5 100644 --- a/app/vue/package.json +++ b/app/vue/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/vue", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "Storybook for Vue: Develop Vue Component in isolation with Hot Reloading.", "keywords": [ "storybook" @@ -26,7 +26,7 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/core": "5.1.0-alpha.12", + "@storybook/core": "5.1.0-alpha.13", "common-tags": "^1.8.0", "core-js": "^2.6.5", "global": "^4.3.2", diff --git a/examples-native/crna-kitchen-sink/package.json b/examples-native/crna-kitchen-sink/package.json index 28b08490726d..0eb8d89bdf0b 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.1.0-alpha.12", + "version": "5.1.0-alpha.13", "private": true, "main": "node_modules/expo/AppEntry.js", "scripts": { @@ -24,11 +24,11 @@ "devDependencies": { "@babel/core": "^7.2.2", "@babel/plugin-transform-react-jsx-source": "^7.2.0", - "@storybook/addon-knobs": "5.1.0-alpha.12", - "@storybook/addon-ondevice-knobs": "5.1.0-alpha.12", - "@storybook/addon-ondevice-notes": "5.1.0-alpha.12", - "@storybook/addons": "5.1.0-alpha.12", - "@storybook/react-native": "5.1.0-alpha.12", + "@storybook/addon-knobs": "5.1.0-alpha.13", + "@storybook/addon-ondevice-knobs": "5.1.0-alpha.13", + "@storybook/addon-ondevice-notes": "5.1.0-alpha.13", + "@storybook/addons": "5.1.0-alpha.13", + "@storybook/react-native": "5.1.0-alpha.13", "babel-loader": "^8.0.4", "babel-plugin-module-resolver": "^3.2.0", "babel-preset-expo": "^5.1.1", diff --git a/examples/angular-cli/package.json b/examples/angular-cli/package.json index ce8fbedf6d74..a1365388db02 100644 --- a/examples/angular-cli/package.json +++ b/examples/angular-cli/package.json @@ -1,6 +1,6 @@ { "name": "angular-cli", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "private": true, "license": "MIT", "scripts": { @@ -34,18 +34,18 @@ "@angular-devkit/build-angular": "^0.13.4", "@angular/cli": "^7.3.6", "@angular/compiler-cli": "^7.2.6", - "@storybook/addon-actions": "5.1.0-alpha.12", - "@storybook/addon-backgrounds": "5.1.0-alpha.12", - "@storybook/addon-centered": "5.1.0-alpha.12", - "@storybook/addon-jest": "5.1.0-alpha.12", - "@storybook/addon-knobs": "5.1.0-alpha.12", - "@storybook/addon-links": "5.1.0-alpha.12", - "@storybook/addon-notes": "5.1.0-alpha.12", - "@storybook/addon-options": "5.1.0-alpha.12", - "@storybook/addon-storyshots": "5.1.0-alpha.12", - "@storybook/addon-storysource": "5.1.0-alpha.12", - "@storybook/addons": "5.1.0-alpha.12", - "@storybook/angular": "5.1.0-alpha.12", + "@storybook/addon-actions": "5.1.0-alpha.13", + "@storybook/addon-backgrounds": "5.1.0-alpha.13", + "@storybook/addon-centered": "5.1.0-alpha.13", + "@storybook/addon-jest": "5.1.0-alpha.13", + "@storybook/addon-knobs": "5.1.0-alpha.13", + "@storybook/addon-links": "5.1.0-alpha.13", + "@storybook/addon-notes": "5.1.0-alpha.13", + "@storybook/addon-options": "5.1.0-alpha.13", + "@storybook/addon-storyshots": "5.1.0-alpha.13", + "@storybook/addon-storysource": "5.1.0-alpha.13", + "@storybook/addons": "5.1.0-alpha.13", + "@storybook/angular": "5.1.0-alpha.13", "@types/core-js": "^2.5.0", "@types/jest": "^24.0.11", "@types/node": "~11.11.0", diff --git a/examples/cra-kitchen-sink/package.json b/examples/cra-kitchen-sink/package.json index d625007bd12e..b8c5fa6470cc 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.1.0-alpha.12", + "version": "5.1.0-alpha.13", "private": true, "scripts": { "build": "react-scripts build", @@ -19,21 +19,21 @@ "react-lifecycles-compat": "^3.0.4" }, "devDependencies": { - "@storybook/addon-a11y": "5.1.0-alpha.12", - "@storybook/addon-actions": "5.1.0-alpha.12", - "@storybook/addon-backgrounds": "5.1.0-alpha.12", - "@storybook/addon-centered": "5.1.0-alpha.12", - "@storybook/addon-events": "5.1.0-alpha.12", - "@storybook/addon-info": "5.1.0-alpha.12", - "@storybook/addon-jest": "5.1.0-alpha.12", - "@storybook/addon-knobs": "5.1.0-alpha.12", - "@storybook/addon-links": "5.1.0-alpha.12", - "@storybook/addon-notes": "5.1.0-alpha.12", - "@storybook/addon-options": "5.1.0-alpha.12", - "@storybook/addon-storyshots": "5.1.0-alpha.12", - "@storybook/addons": "5.1.0-alpha.12", - "@storybook/client-logger": "5.1.0-alpha.12", - "@storybook/react": "5.1.0-alpha.12", + "@storybook/addon-a11y": "5.1.0-alpha.13", + "@storybook/addon-actions": "5.1.0-alpha.13", + "@storybook/addon-backgrounds": "5.1.0-alpha.13", + "@storybook/addon-centered": "5.1.0-alpha.13", + "@storybook/addon-events": "5.1.0-alpha.13", + "@storybook/addon-info": "5.1.0-alpha.13", + "@storybook/addon-jest": "5.1.0-alpha.13", + "@storybook/addon-knobs": "5.1.0-alpha.13", + "@storybook/addon-links": "5.1.0-alpha.13", + "@storybook/addon-notes": "5.1.0-alpha.13", + "@storybook/addon-options": "5.1.0-alpha.13", + "@storybook/addon-storyshots": "5.1.0-alpha.13", + "@storybook/addons": "5.1.0-alpha.13", + "@storybook/client-logger": "5.1.0-alpha.13", + "@storybook/react": "5.1.0-alpha.13", "enzyme": "^3.9.0", "enzyme-adapter-react-16": "^1.9.1", "enzyme-to-json": "^3.3.5", diff --git a/examples/cra-ts-kitchen-sink/package.json b/examples/cra-ts-kitchen-sink/package.json index df0ad1e92da7..2429ad0f8d20 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.1.0-alpha.12", + "version": "5.1.0-alpha.13", "private": true, "scripts": { "build-storybook": "build-storybook -s public", @@ -20,11 +20,11 @@ "react-dom": "^16.8.4" }, "devDependencies": { - "@storybook/addon-actions": "5.1.0-alpha.12", - "@storybook/addon-info": "5.1.0-alpha.12", - "@storybook/addon-options": "5.1.0-alpha.12", - "@storybook/addons": "5.1.0-alpha.12", - "@storybook/react": "5.1.0-alpha.12", + "@storybook/addon-actions": "5.1.0-alpha.13", + "@storybook/addon-info": "5.1.0-alpha.13", + "@storybook/addon-options": "5.1.0-alpha.13", + "@storybook/addons": "5.1.0-alpha.13", + "@storybook/react": "5.1.0-alpha.13", "@types/enzyme": "^3.9.0", "@types/react": "^16.8.4", "@types/react-dom": "^16.8.2", diff --git a/examples/ember-cli/package.json b/examples/ember-cli/package.json index fe782d30cb07..3463cad5ed82 100644 --- a/examples/ember-cli/package.json +++ b/examples/ember-cli/package.json @@ -1,6 +1,6 @@ { "name": "ember-example", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "private": true, "scripts": { "build": "ember build", @@ -15,18 +15,18 @@ }, "devDependencies": { "@babel/core": "^7.3.4", - "@storybook/addon-a11y": "5.1.0-alpha.12", - "@storybook/addon-actions": "5.1.0-alpha.12", - "@storybook/addon-backgrounds": "5.1.0-alpha.12", - "@storybook/addon-centered": "5.1.0-alpha.12", - "@storybook/addon-knobs": "5.1.0-alpha.12", - "@storybook/addon-links": "5.1.0-alpha.12", - "@storybook/addon-notes": "5.1.0-alpha.12", - "@storybook/addon-options": "5.1.0-alpha.12", - "@storybook/addon-storysource": "5.1.0-alpha.12", - "@storybook/addon-viewport": "5.1.0-alpha.12", - "@storybook/addons": "5.1.0-alpha.12", - "@storybook/ember": "5.1.0-alpha.12", + "@storybook/addon-a11y": "5.1.0-alpha.13", + "@storybook/addon-actions": "5.1.0-alpha.13", + "@storybook/addon-backgrounds": "5.1.0-alpha.13", + "@storybook/addon-centered": "5.1.0-alpha.13", + "@storybook/addon-knobs": "5.1.0-alpha.13", + "@storybook/addon-links": "5.1.0-alpha.13", + "@storybook/addon-notes": "5.1.0-alpha.13", + "@storybook/addon-options": "5.1.0-alpha.13", + "@storybook/addon-storysource": "5.1.0-alpha.13", + "@storybook/addon-viewport": "5.1.0-alpha.13", + "@storybook/addons": "5.1.0-alpha.13", + "@storybook/ember": "5.1.0-alpha.13", "babel-loader": "^8", "broccoli-asset-rev": "^3.0.0", "cross-env": "^5.2.0", diff --git a/examples/html-kitchen-sink/package.json b/examples/html-kitchen-sink/package.json index 03e60f6bbd65..58d8f8481b58 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.1.0-alpha.12", + "version": "5.1.0-alpha.13", "private": true, "description": "", "keywords": [], @@ -14,23 +14,23 @@ "storybook": "start-storybook -p 9006" }, "devDependencies": { - "@storybook/addon-a11y": "5.1.0-alpha.12", - "@storybook/addon-actions": "5.1.0-alpha.12", - "@storybook/addon-backgrounds": "5.1.0-alpha.12", - "@storybook/addon-centered": "5.1.0-alpha.12", - "@storybook/addon-events": "5.1.0-alpha.12", - "@storybook/addon-jest": "5.1.0-alpha.12", - "@storybook/addon-knobs": "5.1.0-alpha.12", - "@storybook/addon-links": "5.1.0-alpha.12", - "@storybook/addon-notes": "5.1.0-alpha.12", - "@storybook/addon-options": "5.1.0-alpha.12", - "@storybook/addon-storyshots": "5.1.0-alpha.12", - "@storybook/addon-storysource": "5.1.0-alpha.12", - "@storybook/addon-viewport": "5.1.0-alpha.12", - "@storybook/addons": "5.1.0-alpha.12", - "@storybook/core": "5.1.0-alpha.12", - "@storybook/core-events": "5.1.0-alpha.12", - "@storybook/html": "5.1.0-alpha.12", + "@storybook/addon-a11y": "5.1.0-alpha.13", + "@storybook/addon-actions": "5.1.0-alpha.13", + "@storybook/addon-backgrounds": "5.1.0-alpha.13", + "@storybook/addon-centered": "5.1.0-alpha.13", + "@storybook/addon-events": "5.1.0-alpha.13", + "@storybook/addon-jest": "5.1.0-alpha.13", + "@storybook/addon-knobs": "5.1.0-alpha.13", + "@storybook/addon-links": "5.1.0-alpha.13", + "@storybook/addon-notes": "5.1.0-alpha.13", + "@storybook/addon-options": "5.1.0-alpha.13", + "@storybook/addon-storyshots": "5.1.0-alpha.13", + "@storybook/addon-storysource": "5.1.0-alpha.13", + "@storybook/addon-viewport": "5.1.0-alpha.13", + "@storybook/addons": "5.1.0-alpha.13", + "@storybook/core": "5.1.0-alpha.13", + "@storybook/core-events": "5.1.0-alpha.13", + "@storybook/html": "5.1.0-alpha.13", "eventemitter3": "^3.1.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 63a80e153196..daf70adffaed 100644 --- a/examples/marko-cli/package.json +++ b/examples/marko-cli/package.json @@ -1,6 +1,6 @@ { "name": "marko-cli", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "private": true, "description": "Demo of how to build an app using marko-starter", "repository": { @@ -24,12 +24,12 @@ "marko-starter": "^2.0.4" }, "devDependencies": { - "@storybook/addon-actions": "5.1.0-alpha.12", - "@storybook/addon-knobs": "5.1.0-alpha.12", - "@storybook/addon-options": "5.1.0-alpha.12", - "@storybook/addon-storysource": "5.1.0-alpha.12", - "@storybook/addons": "5.1.0-alpha.12", - "@storybook/marko": "5.1.0-alpha.12", + "@storybook/addon-actions": "5.1.0-alpha.13", + "@storybook/addon-knobs": "5.1.0-alpha.13", + "@storybook/addon-options": "5.1.0-alpha.13", + "@storybook/addon-storysource": "5.1.0-alpha.13", + "@storybook/addons": "5.1.0-alpha.13", + "@storybook/marko": "5.1.0-alpha.13", "prettier": "^1.16.4", "webpack": "^4.29.6" } diff --git a/examples/mithril-kitchen-sink/package.json b/examples/mithril-kitchen-sink/package.json index 6d8e7bf1120c..116449c40808 100644 --- a/examples/mithril-kitchen-sink/package.json +++ b/examples/mithril-kitchen-sink/package.json @@ -1,6 +1,6 @@ { "name": "mithril-example", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "private": true, "scripts": { "build-storybook": "build-storybook", @@ -11,18 +11,18 @@ "mithril": "^1.1.6" }, "devDependencies": { - "@storybook/addon-actions": "5.1.0-alpha.12", - "@storybook/addon-backgrounds": "5.1.0-alpha.12", - "@storybook/addon-centered": "5.1.0-alpha.12", - "@storybook/addon-knobs": "5.1.0-alpha.12", - "@storybook/addon-links": "5.1.0-alpha.12", - "@storybook/addon-notes": "5.1.0-alpha.12", - "@storybook/addon-options": "5.1.0-alpha.12", - "@storybook/addon-storyshots": "5.1.0-alpha.12", - "@storybook/addon-storysource": "5.1.0-alpha.12", - "@storybook/addon-viewport": "5.1.0-alpha.12", - "@storybook/addons": "5.1.0-alpha.12", - "@storybook/mithril": "5.1.0-alpha.12", + "@storybook/addon-actions": "5.1.0-alpha.13", + "@storybook/addon-backgrounds": "5.1.0-alpha.13", + "@storybook/addon-centered": "5.1.0-alpha.13", + "@storybook/addon-knobs": "5.1.0-alpha.13", + "@storybook/addon-links": "5.1.0-alpha.13", + "@storybook/addon-notes": "5.1.0-alpha.13", + "@storybook/addon-options": "5.1.0-alpha.13", + "@storybook/addon-storyshots": "5.1.0-alpha.13", + "@storybook/addon-storysource": "5.1.0-alpha.13", + "@storybook/addon-viewport": "5.1.0-alpha.13", + "@storybook/addons": "5.1.0-alpha.13", + "@storybook/mithril": "5.1.0-alpha.13", "webpack": "^4.29.6" } } diff --git a/examples/official-storybook/package.json b/examples/official-storybook/package.json index 65a1a3a5eb62..0289e86bc63f 100644 --- a/examples/official-storybook/package.json +++ b/examples/official-storybook/package.json @@ -1,6 +1,6 @@ { "name": "official-storybook", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "private": true, "scripts": { "build-storybook": "build-storybook -c ./ -s built-storybooks", @@ -13,29 +13,29 @@ "storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true start-storybook -p 9011 -c ./ -s built-storybooks --no-dll" }, "devDependencies": { - "@storybook/addon-a11y": "5.1.0-alpha.12", - "@storybook/addon-actions": "5.1.0-alpha.12", - "@storybook/addon-backgrounds": "5.1.0-alpha.12", - "@storybook/addon-centered": "5.1.0-alpha.12", - "@storybook/addon-cssresources": "5.1.0-alpha.12", - "@storybook/addon-events": "5.1.0-alpha.12", - "@storybook/addon-graphql": "5.1.0-alpha.12", - "@storybook/addon-info": "5.1.0-alpha.12", - "@storybook/addon-jest": "5.1.0-alpha.12", - "@storybook/addon-knobs": "5.1.0-alpha.12", - "@storybook/addon-links": "5.1.0-alpha.12", - "@storybook/addon-notes": "5.1.0-alpha.12", - "@storybook/addon-options": "5.1.0-alpha.12", - "@storybook/addon-storyshots": "5.1.0-alpha.12", - "@storybook/addon-storyshots-puppeteer": "5.1.0-alpha.12", - "@storybook/addon-storysource": "5.1.0-alpha.12", - "@storybook/addon-viewport": "5.1.0-alpha.12", - "@storybook/addons": "5.1.0-alpha.12", - "@storybook/components": "5.1.0-alpha.12", - "@storybook/core-events": "5.1.0-alpha.12", - "@storybook/node-logger": "5.1.0-alpha.12", - "@storybook/react": "5.1.0-alpha.12", - "@storybook/theming": "5.1.0-alpha.12", + "@storybook/addon-a11y": "5.1.0-alpha.13", + "@storybook/addon-actions": "5.1.0-alpha.13", + "@storybook/addon-backgrounds": "5.1.0-alpha.13", + "@storybook/addon-centered": "5.1.0-alpha.13", + "@storybook/addon-cssresources": "5.1.0-alpha.13", + "@storybook/addon-events": "5.1.0-alpha.13", + "@storybook/addon-graphql": "5.1.0-alpha.13", + "@storybook/addon-info": "5.1.0-alpha.13", + "@storybook/addon-jest": "5.1.0-alpha.13", + "@storybook/addon-knobs": "5.1.0-alpha.13", + "@storybook/addon-links": "5.1.0-alpha.13", + "@storybook/addon-notes": "5.1.0-alpha.13", + "@storybook/addon-options": "5.1.0-alpha.13", + "@storybook/addon-storyshots": "5.1.0-alpha.13", + "@storybook/addon-storyshots-puppeteer": "5.1.0-alpha.13", + "@storybook/addon-storysource": "5.1.0-alpha.13", + "@storybook/addon-viewport": "5.1.0-alpha.13", + "@storybook/addons": "5.1.0-alpha.13", + "@storybook/components": "5.1.0-alpha.13", + "@storybook/core-events": "5.1.0-alpha.13", + "@storybook/node-logger": "5.1.0-alpha.13", + "@storybook/react": "5.1.0-alpha.13", + "@storybook/theming": "5.1.0-alpha.13", "cors": "^2.8.5", "cross-env": "^5.2.0", "enzyme-to-json": "^3.3.5", diff --git a/examples/polymer-cli/package.json b/examples/polymer-cli/package.json index 1b1df9caa6a3..96341d57a9b7 100644 --- a/examples/polymer-cli/package.json +++ b/examples/polymer-cli/package.json @@ -1,6 +1,6 @@ { "name": "polymer-cli", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "private": true, "scripts": { "build-storybook": "build-storybook", @@ -10,15 +10,15 @@ }, "dependencies": { "@polymer/polymer": "^2.6.0", - "@storybook/addon-actions": "5.1.0-alpha.12", - "@storybook/addon-backgrounds": "5.1.0-alpha.12", - "@storybook/addon-knobs": "5.1.0-alpha.12", - "@storybook/addon-links": "5.1.0-alpha.12", - "@storybook/addon-notes": "5.1.0-alpha.12", - "@storybook/addon-options": "5.1.0-alpha.12", - "@storybook/addon-storysource": "5.1.0-alpha.12", - "@storybook/addon-viewport": "5.1.0-alpha.12", - "@storybook/polymer": "5.1.0-alpha.12", + "@storybook/addon-actions": "5.1.0-alpha.13", + "@storybook/addon-backgrounds": "5.1.0-alpha.13", + "@storybook/addon-knobs": "5.1.0-alpha.13", + "@storybook/addon-links": "5.1.0-alpha.13", + "@storybook/addon-notes": "5.1.0-alpha.13", + "@storybook/addon-options": "5.1.0-alpha.13", + "@storybook/addon-storysource": "5.1.0-alpha.13", + "@storybook/addon-viewport": "5.1.0-alpha.13", + "@storybook/polymer": "5.1.0-alpha.13", "@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 2c28bf6858f1..d85ddc4ab0bc 100644 --- a/examples/preact-kitchen-sink/package.json +++ b/examples/preact-kitchen-sink/package.json @@ -1,6 +1,6 @@ { "name": "preact-example", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "private": true, "scripts": { "build": "cross-env NODE_ENV=production webpack --progress --hide-modules", @@ -16,18 +16,18 @@ "devDependencies": { "@babel/core": "^7.3.4", "@babel/plugin-transform-runtime": "^7.2.0", - "@storybook/addon-actions": "5.1.0-alpha.12", - "@storybook/addon-backgrounds": "5.1.0-alpha.12", - "@storybook/addon-centered": "5.1.0-alpha.12", - "@storybook/addon-knobs": "5.1.0-alpha.12", - "@storybook/addon-links": "5.1.0-alpha.12", - "@storybook/addon-notes": "5.1.0-alpha.12", - "@storybook/addon-options": "5.1.0-alpha.12", - "@storybook/addon-storyshots": "5.1.0-alpha.12", - "@storybook/addon-storysource": "5.1.0-alpha.12", - "@storybook/addon-viewport": "5.1.0-alpha.12", - "@storybook/addons": "5.1.0-alpha.12", - "@storybook/preact": "5.1.0-alpha.12", + "@storybook/addon-actions": "5.1.0-alpha.13", + "@storybook/addon-backgrounds": "5.1.0-alpha.13", + "@storybook/addon-centered": "5.1.0-alpha.13", + "@storybook/addon-knobs": "5.1.0-alpha.13", + "@storybook/addon-links": "5.1.0-alpha.13", + "@storybook/addon-notes": "5.1.0-alpha.13", + "@storybook/addon-options": "5.1.0-alpha.13", + "@storybook/addon-storyshots": "5.1.0-alpha.13", + "@storybook/addon-storysource": "5.1.0-alpha.13", + "@storybook/addon-viewport": "5.1.0-alpha.13", + "@storybook/addons": "5.1.0-alpha.13", + "@storybook/preact": "5.1.0-alpha.13", "babel-loader": "^8.0.4", "cross-env": "^5.2.0", "file-loader": "^3.0.1", diff --git a/examples/riot-kitchen-sink/package.json b/examples/riot-kitchen-sink/package.json index a20aed2a65b9..0cae6a1f3a85 100644 --- a/examples/riot-kitchen-sink/package.json +++ b/examples/riot-kitchen-sink/package.json @@ -1,6 +1,6 @@ { "name": "riot-example", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "private": true, "scripts": { "build": "cross-env NODE_ENV=production webpack --progress --hide-modules", @@ -16,18 +16,18 @@ }, "devDependencies": { "@babel/core": "^7.3.4", - "@storybook/addon-actions": "5.1.0-alpha.12", - "@storybook/addon-backgrounds": "5.1.0-alpha.12", - "@storybook/addon-centered": "5.1.0-alpha.12", - "@storybook/addon-knobs": "5.1.0-alpha.12", - "@storybook/addon-links": "5.1.0-alpha.12", - "@storybook/addon-notes": "5.1.0-alpha.12", - "@storybook/addon-options": "5.1.0-alpha.12", - "@storybook/addon-storyshots": "5.1.0-alpha.12", - "@storybook/addon-storysource": "5.1.0-alpha.12", - "@storybook/addon-viewport": "5.1.0-alpha.12", - "@storybook/addons": "5.1.0-alpha.12", - "@storybook/riot": "5.1.0-alpha.12", + "@storybook/addon-actions": "5.1.0-alpha.13", + "@storybook/addon-backgrounds": "5.1.0-alpha.13", + "@storybook/addon-centered": "5.1.0-alpha.13", + "@storybook/addon-knobs": "5.1.0-alpha.13", + "@storybook/addon-links": "5.1.0-alpha.13", + "@storybook/addon-notes": "5.1.0-alpha.13", + "@storybook/addon-options": "5.1.0-alpha.13", + "@storybook/addon-storyshots": "5.1.0-alpha.13", + "@storybook/addon-storysource": "5.1.0-alpha.13", + "@storybook/addon-viewport": "5.1.0-alpha.13", + "@storybook/addons": "5.1.0-alpha.13", + "@storybook/riot": "5.1.0-alpha.13", "babel-loader": "^8.0.4", "cross-env": "^5.2.0", "file-loader": "^3.0.1", diff --git a/examples/svelte-kitchen-sink/package.json b/examples/svelte-kitchen-sink/package.json index 43e5557cfdf3..8e76677b17e9 100644 --- a/examples/svelte-kitchen-sink/package.json +++ b/examples/svelte-kitchen-sink/package.json @@ -1,6 +1,6 @@ { "name": "svelte-example", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "private": true, "scripts": { "build-storybook": "build-storybook -s public", @@ -11,17 +11,17 @@ "global": "^4.3.2" }, "devDependencies": { - "@storybook/addon-actions": "5.1.0-alpha.12", - "@storybook/addon-backgrounds": "5.1.0-alpha.12", - "@storybook/addon-centered": "5.1.0-alpha.12", - "@storybook/addon-knobs": "5.1.0-alpha.12", - "@storybook/addon-links": "5.1.0-alpha.12", - "@storybook/addon-notes": "5.1.0-alpha.12", - "@storybook/addon-options": "5.1.0-alpha.12", - "@storybook/addon-storyshots": "5.1.0-alpha.12", - "@storybook/addon-storysource": "5.1.0-alpha.12", - "@storybook/addon-viewport": "5.1.0-alpha.12", - "@storybook/addons": "5.1.0-alpha.12", - "@storybook/svelte": "5.1.0-alpha.12" + "@storybook/addon-actions": "5.1.0-alpha.13", + "@storybook/addon-backgrounds": "5.1.0-alpha.13", + "@storybook/addon-centered": "5.1.0-alpha.13", + "@storybook/addon-knobs": "5.1.0-alpha.13", + "@storybook/addon-links": "5.1.0-alpha.13", + "@storybook/addon-notes": "5.1.0-alpha.13", + "@storybook/addon-options": "5.1.0-alpha.13", + "@storybook/addon-storyshots": "5.1.0-alpha.13", + "@storybook/addon-storysource": "5.1.0-alpha.13", + "@storybook/addon-viewport": "5.1.0-alpha.13", + "@storybook/addons": "5.1.0-alpha.13", + "@storybook/svelte": "5.1.0-alpha.13" } } diff --git a/examples/vue-kitchen-sink/package.json b/examples/vue-kitchen-sink/package.json index d66054d38bc5..516348149024 100644 --- a/examples/vue-kitchen-sink/package.json +++ b/examples/vue-kitchen-sink/package.json @@ -1,6 +1,6 @@ { "name": "vue-example", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "private": true, "scripts": { "build": "cross-env NODE_ENV=production webpack --progress --hide-modules", @@ -15,18 +15,18 @@ }, "devDependencies": { "@babel/core": "^7.3.4", - "@storybook/addon-actions": "5.1.0-alpha.12", - "@storybook/addon-backgrounds": "5.1.0-alpha.12", - "@storybook/addon-centered": "5.1.0-alpha.12", - "@storybook/addon-knobs": "5.1.0-alpha.12", - "@storybook/addon-links": "5.1.0-alpha.12", - "@storybook/addon-notes": "5.1.0-alpha.12", - "@storybook/addon-options": "5.1.0-alpha.12", - "@storybook/addon-storyshots": "5.1.0-alpha.12", - "@storybook/addon-storysource": "5.1.0-alpha.12", - "@storybook/addon-viewport": "5.1.0-alpha.12", - "@storybook/addons": "5.1.0-alpha.12", - "@storybook/vue": "5.1.0-alpha.12", + "@storybook/addon-actions": "5.1.0-alpha.13", + "@storybook/addon-backgrounds": "5.1.0-alpha.13", + "@storybook/addon-centered": "5.1.0-alpha.13", + "@storybook/addon-knobs": "5.1.0-alpha.13", + "@storybook/addon-links": "5.1.0-alpha.13", + "@storybook/addon-notes": "5.1.0-alpha.13", + "@storybook/addon-options": "5.1.0-alpha.13", + "@storybook/addon-storyshots": "5.1.0-alpha.13", + "@storybook/addon-storysource": "5.1.0-alpha.13", + "@storybook/addon-viewport": "5.1.0-alpha.13", + "@storybook/addons": "5.1.0-alpha.13", + "@storybook/vue": "5.1.0-alpha.13", "babel-core": "^7.0.0-bridge.0", "babel-loader": "^8.0.5", "cross-env": "^5.2.0", diff --git a/lerna.json b/lerna.json index 3748042d346c..facfcb1e80ec 100644 --- a/lerna.json +++ b/lerna.json @@ -11,5 +11,5 @@ "npmClient": "yarn", "useWorkspaces": true, "registry": "https://registry.npmjs.org", - "version": "5.1.0-alpha.12" + "version": "5.1.0-alpha.13" } diff --git a/lib/addons/package.json b/lib/addons/package.json index 22351a7303be..f3cfaad30bbd 100644 --- a/lib/addons/package.json +++ b/lib/addons/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addons", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "Storybook addons store", "keywords": [ "storybook" @@ -21,9 +21,9 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/api": "5.1.0-alpha.12", - "@storybook/channels": "5.1.0-alpha.12", - "@storybook/client-logger": "5.1.0-alpha.12", + "@storybook/api": "5.1.0-alpha.13", + "@storybook/channels": "5.1.0-alpha.13", + "@storybook/client-logger": "5.1.0-alpha.13", "core-js": "^2.6.5", "global": "^4.3.2", "util-deprecate": "^1.0.2" diff --git a/lib/api/package.json b/lib/api/package.json index 67e3a8e460f0..9fa97e5d88e2 100644 --- a/lib/api/package.json +++ b/lib/api/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/api", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "Core Storybook API & Context", "keywords": [ "storybook" @@ -20,11 +20,11 @@ "prepare": "node ./scripts/generateVersion.js && node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/channels": "5.1.0-alpha.12", - "@storybook/client-logger": "5.1.0-alpha.12", - "@storybook/core-events": "5.1.0-alpha.12", - "@storybook/router": "5.1.0-alpha.12", - "@storybook/theming": "5.1.0-alpha.12", + "@storybook/channels": "5.1.0-alpha.13", + "@storybook/client-logger": "5.1.0-alpha.13", + "@storybook/core-events": "5.1.0-alpha.13", + "@storybook/router": "5.1.0-alpha.13", + "@storybook/theming": "5.1.0-alpha.13", "core-js": "^2.6.5", "fast-deep-equal": "^2.0.1", "global": "^4.3.2", diff --git a/lib/channel-postmessage/package.json b/lib/channel-postmessage/package.json index 742dd8a163cd..eea3765ca229 100644 --- a/lib/channel-postmessage/package.json +++ b/lib/channel-postmessage/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/channel-postmessage", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "", "keywords": [ "storybook" @@ -21,8 +21,8 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/channels": "5.1.0-alpha.12", - "@storybook/client-logger": "5.1.0-alpha.12", + "@storybook/channels": "5.1.0-alpha.13", + "@storybook/client-logger": "5.1.0-alpha.13", "core-js": "^2.6.5", "global": "^4.3.2", "telejson": "^2.1.1" diff --git a/lib/channel-websocket/package.json b/lib/channel-websocket/package.json index b695756bf5b5..44bbd70e4437 100644 --- a/lib/channel-websocket/package.json +++ b/lib/channel-websocket/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/channel-websocket", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "", "keywords": [ "storybook" @@ -21,7 +21,7 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/channels": "5.1.0-alpha.12", + "@storybook/channels": "5.1.0-alpha.13", "core-js": "^2.6.5", "global": "^4.3.2", "json-fn": "^1.1.1" diff --git a/lib/channels/package.json b/lib/channels/package.json index 567b2497730c..7b945e38db14 100644 --- a/lib/channels/package.json +++ b/lib/channels/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/channels", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "", "keywords": [ "storybook" diff --git a/lib/cli/package.json b/lib/cli/package.json index 6ec1a69b7d71..29e0e9e22e96 100644 --- a/lib/cli/package.json +++ b/lib/cli/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/cli", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "Storybook's CLI - easiest method of adding storybook to your projects", "keywords": [ "cli", @@ -30,7 +30,7 @@ "@babel/core": "^7.3.4", "@babel/preset-env": "^7.3.4", "@babel/register": "^7.0.0", - "@storybook/codemod": "5.1.0-alpha.12", + "@storybook/codemod": "5.1.0-alpha.13", "chalk": "^2.4.1", "commander": "^2.19.0", "core-js": "^2.6.5", @@ -44,32 +44,32 @@ "update-notifier": "^2.5.0" }, "devDependencies": { - "@storybook/addon-actions": "5.1.0-alpha.12", - "@storybook/addon-centered": "5.1.0-alpha.12", - "@storybook/addon-graphql": "5.1.0-alpha.12", - "@storybook/addon-info": "5.1.0-alpha.12", - "@storybook/addon-knobs": "5.1.0-alpha.12", - "@storybook/addon-links": "5.1.0-alpha.12", - "@storybook/addon-notes": "5.1.0-alpha.12", - "@storybook/addon-options": "5.1.0-alpha.12", - "@storybook/addon-storyshots": "5.1.0-alpha.12", - "@storybook/addons": "5.1.0-alpha.12", - "@storybook/angular": "5.1.0-alpha.12", - "@storybook/channel-postmessage": "5.1.0-alpha.12", - "@storybook/channel-websocket": "5.1.0-alpha.12", - "@storybook/channels": "5.1.0-alpha.12", - "@storybook/ember": "5.1.0-alpha.12", - "@storybook/html": "5.1.0-alpha.12", - "@storybook/marko": "5.1.0-alpha.12", - "@storybook/mithril": "5.1.0-alpha.12", - "@storybook/polymer": "5.1.0-alpha.12", - "@storybook/preact": "5.1.0-alpha.12", - "@storybook/react": "5.1.0-alpha.12", - "@storybook/react-native": "5.1.0-alpha.12", - "@storybook/riot": "5.1.0-alpha.12", - "@storybook/svelte": "5.1.0-alpha.12", - "@storybook/ui": "5.1.0-alpha.12", - "@storybook/vue": "5.1.0-alpha.12" + "@storybook/addon-actions": "5.1.0-alpha.13", + "@storybook/addon-centered": "5.1.0-alpha.13", + "@storybook/addon-graphql": "5.1.0-alpha.13", + "@storybook/addon-info": "5.1.0-alpha.13", + "@storybook/addon-knobs": "5.1.0-alpha.13", + "@storybook/addon-links": "5.1.0-alpha.13", + "@storybook/addon-notes": "5.1.0-alpha.13", + "@storybook/addon-options": "5.1.0-alpha.13", + "@storybook/addon-storyshots": "5.1.0-alpha.13", + "@storybook/addons": "5.1.0-alpha.13", + "@storybook/angular": "5.1.0-alpha.13", + "@storybook/channel-postmessage": "5.1.0-alpha.13", + "@storybook/channel-websocket": "5.1.0-alpha.13", + "@storybook/channels": "5.1.0-alpha.13", + "@storybook/ember": "5.1.0-alpha.13", + "@storybook/html": "5.1.0-alpha.13", + "@storybook/marko": "5.1.0-alpha.13", + "@storybook/mithril": "5.1.0-alpha.13", + "@storybook/polymer": "5.1.0-alpha.13", + "@storybook/preact": "5.1.0-alpha.13", + "@storybook/react": "5.1.0-alpha.13", + "@storybook/react-native": "5.1.0-alpha.13", + "@storybook/riot": "5.1.0-alpha.13", + "@storybook/svelte": "5.1.0-alpha.13", + "@storybook/ui": "5.1.0-alpha.13", + "@storybook/vue": "5.1.0-alpha.13" }, "publishConfig": { "access": "public" diff --git a/lib/client-api/package.json b/lib/client-api/package.json index af279a9a3505..7c8e16fd802b 100644 --- a/lib/client-api/package.json +++ b/lib/client-api/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/client-api", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "Storybook Client API", "keywords": [ "storybook" @@ -20,10 +20,10 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.12", - "@storybook/client-logger": "5.1.0-alpha.12", - "@storybook/core-events": "5.1.0-alpha.12", - "@storybook/router": "5.1.0-alpha.12", + "@storybook/addons": "5.1.0-alpha.13", + "@storybook/client-logger": "5.1.0-alpha.13", + "@storybook/core-events": "5.1.0-alpha.13", + "@storybook/router": "5.1.0-alpha.13", "common-tags": "^1.8.0", "core-js": "^2.6.5", "eventemitter3": "^3.1.0", diff --git a/lib/client-logger/package.json b/lib/client-logger/package.json index 459dbdc502ba..52a48db3620e 100644 --- a/lib/client-logger/package.json +++ b/lib/client-logger/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/client-logger", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "", "keywords": [ "storybook" diff --git a/lib/codemod/package.json b/lib/codemod/package.json index 7a79cbf5acfe..16309b16e0d8 100644 --- a/lib/codemod/package.json +++ b/lib/codemod/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/codemod", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "A collection of codemod scripts written with JSCodeshift", "keywords": [ "storybook" diff --git a/lib/components/package.json b/lib/components/package.json index 437bea311fbe..0026bc28f855 100644 --- a/lib/components/package.json +++ b/lib/components/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/components", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "Core Storybook Components", "keywords": [ "storybook" @@ -21,11 +21,11 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.12", - "@storybook/client-logger": "5.1.0-alpha.12", - "@storybook/core-events": "5.1.0-alpha.12", - "@storybook/router": "5.1.0-alpha.12", - "@storybook/theming": "5.1.0-alpha.12", + "@storybook/addons": "5.1.0-alpha.13", + "@storybook/client-logger": "5.1.0-alpha.13", + "@storybook/core-events": "5.1.0-alpha.13", + "@storybook/router": "5.1.0-alpha.13", + "@storybook/theming": "5.1.0-alpha.13", "core-js": "^2.6.5", "global": "^4.3.2", "js-beautify": "^1.8.9", diff --git a/lib/core-events/package.json b/lib/core-events/package.json index c8aa43fb752d..3285e2af73a8 100644 --- a/lib/core-events/package.json +++ b/lib/core-events/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/core-events", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "Event names used in storybook core", "keywords": [ "storybook" diff --git a/lib/core/package.json b/lib/core/package.json index e9b6cf6202d0..e22ac324d672 100644 --- a/lib/core/package.json +++ b/lib/core/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/core", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "Storybook framework-agnostic API", "keywords": [ "storybook" @@ -25,14 +25,14 @@ "@babel/plugin-syntax-dynamic-import": "^7.2.0", "@babel/plugin-transform-react-constant-elements": "^7.2.0", "@babel/preset-env": "^7.3.4", - "@storybook/addons": "5.1.0-alpha.12", - "@storybook/channel-postmessage": "5.1.0-alpha.12", - "@storybook/client-api": "5.1.0-alpha.12", - "@storybook/client-logger": "5.1.0-alpha.12", - "@storybook/core-events": "5.1.0-alpha.12", - "@storybook/node-logger": "5.1.0-alpha.12", - "@storybook/router": "5.1.0-alpha.12", - "@storybook/ui": "5.1.0-alpha.12", + "@storybook/addons": "5.1.0-alpha.13", + "@storybook/channel-postmessage": "5.1.0-alpha.13", + "@storybook/client-api": "5.1.0-alpha.13", + "@storybook/client-logger": "5.1.0-alpha.13", + "@storybook/core-events": "5.1.0-alpha.13", + "@storybook/node-logger": "5.1.0-alpha.13", + "@storybook/router": "5.1.0-alpha.13", + "@storybook/ui": "5.1.0-alpha.13", "airbnb-js-shims": "^1 || ^2", "autoprefixer": "^9.4.9", "babel-plugin-add-react-displayname": "^0.0.5", diff --git a/lib/node-logger/package.json b/lib/node-logger/package.json index 24828c0709db..af573c43e5d1 100644 --- a/lib/node-logger/package.json +++ b/lib/node-logger/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/node-logger", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "", "keywords": [ "storybook" diff --git a/lib/router/package.json b/lib/router/package.json index fa55153e3951..dacf4c034752 100644 --- a/lib/router/package.json +++ b/lib/router/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/router", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "Core Storybook Router", "keywords": [ "storybook" @@ -22,7 +22,7 @@ }, "dependencies": { "@reach/router": "^1.2.1", - "@storybook/theming": "5.1.0-alpha.12", + "@storybook/theming": "5.1.0-alpha.13", "core-js": "^2.6.5", "global": "^4.3.2", "memoizerific": "^1.11.3", diff --git a/lib/theming/package.json b/lib/theming/package.json index 7b85678a8b38..e4b47dc5b149 100644 --- a/lib/theming/package.json +++ b/lib/theming/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/theming", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "Core Storybook Components", "keywords": [ "storybook" @@ -23,7 +23,7 @@ "dependencies": { "@emotion/core": "^10.0.9", "@emotion/styled": "^10.0.7", - "@storybook/client-logger": "5.1.0-alpha.12", + "@storybook/client-logger": "5.1.0-alpha.13", "common-tags": "^1.8.0", "core-js": "^2.6.5", "deep-object-diff": "^1.1.0", diff --git a/lib/ui/package.json b/lib/ui/package.json index 0ebdb96c2410..cd23e4ff2d59 100644 --- a/lib/ui/package.json +++ b/lib/ui/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/ui", - "version": "5.1.0-alpha.12", + "version": "5.1.0-alpha.13", "description": "Core Storybook UI", "keywords": [ "storybook" @@ -22,13 +22,13 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@storybook/addons": "5.1.0-alpha.12", - "@storybook/api": "5.1.0-alpha.12", - "@storybook/client-logger": "5.1.0-alpha.12", - "@storybook/components": "5.1.0-alpha.12", - "@storybook/core-events": "5.1.0-alpha.12", - "@storybook/router": "5.1.0-alpha.12", - "@storybook/theming": "5.1.0-alpha.12", + "@storybook/addons": "5.1.0-alpha.13", + "@storybook/api": "5.1.0-alpha.13", + "@storybook/client-logger": "5.1.0-alpha.13", + "@storybook/components": "5.1.0-alpha.13", + "@storybook/core-events": "5.1.0-alpha.13", + "@storybook/router": "5.1.0-alpha.13", + "@storybook/theming": "5.1.0-alpha.13", "core-js": "^2.6.5", "fast-deep-equal": "^2.0.1", "fuzzy-search": "^3.0.1", From bbec9a01ca654791bed66468608bcd8c42e2ae53 Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Sat, 23 Mar 2019 13:27:53 +0800 Subject: [PATCH 23/45] 5.1.0-alpha.13 next.json version file --- docs/src/versions/next.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/versions/next.json b/docs/src/versions/next.json index bb2a8139fac5..7f7762a5dce0 100644 --- a/docs/src/versions/next.json +++ b/docs/src/versions/next.json @@ -1 +1 @@ -{"version":"5.1.0-alpha.12","info":{"plain":"### Bug Fixes\n\n* CLI: Fix stories regexp in config.js ([#6180](https://github.com/storybooks/storybook/pull/6180))\n* Addon-Info: Restore fonts and color styling ([#6186](https://github.com/storybooks/storybook/pull/6186))\n* Core: Add core-js as a dep to client-api ([#6209](https://github.com/storybooks/storybook/pull/6209))\n\n### Dependency Upgrades\n\n* Bump eslint-plugin-jest from 22.3.2 to 22.4.1 ([#6168](https://github.com/storybooks/storybook/pull/6168))\n* Bump ember-cli-babel from 7.5.0 to 7.6.0 ([#6165](https://github.com/storybooks/storybook/pull/6165))\n* Bump danger from 7.0.14 to 7.0.15 ([#6164](https://github.com/storybooks/storybook/pull/6164))\n* Bump babel-preset-expo from 5.0.0 to 5.1.1 ([#6167](https://github.com/storybooks/storybook/pull/6167))\n* Bump @emotion/core from 10.0.7 to 10.0.9 ([#6169](https://github.com/storybooks/storybook/pull/6169))\n* Bump marko from 4.15.4 to 4.16.2 ([#6205](https://github.com/storybooks/storybook/pull/6205))"}} \ No newline at end of file +{"version":"5.1.0-alpha.13","info":{"plain":"### Features\n\n* Svelte: add svelte cli generator ([#6132](https://github.com/storybooks/storybook/pull/6132))\n\n### Bug Fixes\n\n* Addon-knobs: Fix ObjectType knob react warning ([#6159](https://github.com/storybooks/storybook/pull/6159))\n* React: Fix forked CRA support on Windows ([#6236](https://github.com/storybooks/storybook/pull/6236))\n* UI: Fix tooltip event bindings, logger import ([#6238](https://github.com/storybooks/storybook/pull/6238))"}} \ No newline at end of file From 6df76efa573af852133474ba56480a6f6aa0bf67 Mon Sep 17 00:00:00 2001 From: mohsinulhaq Date: Sat, 23 Mar 2019 14:02:26 +0530 Subject: [PATCH 24/45] use Fuse.js package instead of fuzzy-search for customizable search threshold --- lib/api/src/version.ts | 2 +- lib/ui/package.json | 2 +- lib/ui/src/components/sidebar/treeview/utils.js | 13 +++++++++---- yarn.lock | 8 ++++---- 4 files changed, 15 insertions(+), 10 deletions(-) diff --git a/lib/api/src/version.ts b/lib/api/src/version.ts index 3810ff15e452..7ccf603e2167 100644 --- a/lib/api/src/version.ts +++ b/lib/api/src/version.ts @@ -1 +1 @@ -export const version = '5.1.0-alpha.10'; +export const version = '5.1.0-alpha.13'; diff --git a/lib/ui/package.json b/lib/ui/package.json index cd23e4ff2d59..18beb398b098 100644 --- a/lib/ui/package.json +++ b/lib/ui/package.json @@ -31,7 +31,7 @@ "@storybook/theming": "5.1.0-alpha.13", "core-js": "^2.6.5", "fast-deep-equal": "^2.0.1", - "fuzzy-search": "^3.0.1", + "fuse.js": "^3.4.4", "global": "^4.3.2", "lodash.debounce": "^4.0.8", "lodash.isequal": "^4.5.0", diff --git a/lib/ui/src/components/sidebar/treeview/utils.js b/lib/ui/src/components/sidebar/treeview/utils.js index 81efc9cfe054..b32643ecc431 100644 --- a/lib/ui/src/components/sidebar/treeview/utils.js +++ b/lib/ui/src/components/sidebar/treeview/utils.js @@ -1,5 +1,7 @@ import memoize from 'memoizerific'; -import FuzzySearch from 'fuzzy-search'; +import Fuse from 'fuse.js'; + +const FUZZY_SEARCH_THRESHOLD = 0.4; export const prevent = e => e.preventDefault(); @@ -163,9 +165,12 @@ export const getNext = ({ id, dataset, expanded }) => { return next.result; }; -const toHayStack = memoize(2)( +const fuse = memoize(5)( dataset => - new FuzzySearch(toList(dataset), ['kind', 'name', 'parameters.fileName', 'parameters.notes']) + new Fuse(toList(dataset), { + threshold: FUZZY_SEARCH_THRESHOLD, + keys: ['kind', 'name', 'parameters.fileName', 'parameters.notes'], + }) ); const exactMatch = memoize(1)(filter => i => @@ -179,7 +184,7 @@ export const toId = (base, addition) => (base === '' ? `${addition}` : `${base}- export const toFiltered = (dataset, filter) => { let found; if (filter.length && filter.length > 2) { - found = toHayStack(dataset).search(filter); + found = fuse(dataset).search(filter); } else { found = toList(dataset).filter(exactMatch(filter)); } diff --git a/yarn.lock b/yarn.lock index cfb0ab95ce73..18b11e00bf59 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12144,10 +12144,10 @@ functional-red-black-tree@^1.0.1: resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327" integrity sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc= -fuzzy-search@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/fuzzy-search/-/fuzzy-search-3.0.1.tgz#14a4964508a9607d6e9a88818e7ff634108260b6" - integrity sha512-rjUvzdsMlOyarm0oD5k6zVQwgvt4Tb5Xe3YdIGU+Vogw54+ueAGPUTMU2B9jfPQEie5cD11i/S9J9d+MNBSQ3Q== +fuse.js@^3.4.4: + version "3.4.4" + resolved "https://registry.yarnpkg.com/fuse.js/-/fuse.js-3.4.4.tgz#f98f55fcb3b595cf6a3e629c5ffaf10982103e95" + integrity sha512-pyLQo/1oR5Ywf+a/tY8z4JygnIglmRxVUOiyFAbd11o9keUDpUJSMGRWJngcnkURj30kDHPmhoKY8ChJiz3EpQ== g-status@^2.0.2: version "2.0.2" From a03f7eb86d560b97e4e77e1deebe366559f7035e Mon Sep 17 00:00:00 2001 From: Anton Savoskin Date: Sat, 23 Mar 2019 20:35:55 +0700 Subject: [PATCH 25/45] chore: add tsconfig in addons/links --- addons/links/tsconfig.json | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 addons/links/tsconfig.json diff --git a/addons/links/tsconfig.json b/addons/links/tsconfig.json new file mode 100644 index 000000000000..8876bb6737a1 --- /dev/null +++ b/addons/links/tsconfig.json @@ -0,0 +1,13 @@ +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "rootDir": "./src", + "types": ["webpack-env"] + }, + "include": [ + "src/**/*" + ], + "exclude": [ + "src/__tests__/**/*" + ] +} From c81f5617a5b71352d1c63f166c02b4ad73ba230b Mon Sep 17 00:00:00 2001 From: Anton Savoskin Date: Sat, 23 Mar 2019 20:47:24 +0700 Subject: [PATCH 26/45] chore: migrate src of addons/a11y to Typescript --- addons/links/package.json | 2 +- .../links/src/{constants.js => constants.ts} | 2 + addons/links/src/{index.js => index.ts} | 2 +- addons/links/src/{manager.js => manager.ts} | 0 addons/links/src/{preview.js => preview.ts} | 26 +++++---- .../react/components/{link.js => link.tsx} | 53 +++++++++---------- addons/links/src/react/index.js | 1 - addons/links/src/react/index.ts | 2 + addons/links/src/typings.d.ts | 1 + 9 files changed, 49 insertions(+), 40 deletions(-) rename addons/links/src/{constants.js => constants.ts} (59%) rename addons/links/src/{index.js => index.ts} (93%) rename addons/links/src/{manager.js => manager.ts} (100%) rename addons/links/src/{preview.js => preview.ts} (57%) rename addons/links/src/react/components/{link.js => link.tsx} (64%) delete mode 100644 addons/links/src/react/index.js create mode 100644 addons/links/src/react/index.ts create mode 100644 addons/links/src/typings.d.ts diff --git a/addons/links/package.json b/addons/links/package.json index 560f4c287758..dda074afec75 100644 --- a/addons/links/package.json +++ b/addons/links/package.json @@ -17,7 +17,7 @@ }, "license": "MIT", "main": "dist/index.js", - "jsnext:main": "src/index.js", + "types": "dist/index.d.ts", "scripts": { "prepare": "node ../../scripts/prepare.js" }, diff --git a/addons/links/src/constants.js b/addons/links/src/constants.ts similarity index 59% rename from addons/links/src/constants.js rename to addons/links/src/constants.ts index 67a313cb314d..8cd994edd00a 100644 --- a/addons/links/src/constants.js +++ b/addons/links/src/constants.ts @@ -2,4 +2,6 @@ export const ADDON_ID = 'storybook/links'; export default { NAVIGATE: `${ADDON_ID}/navigate`, + REQUEST: `${ADDON_ID}/request`, + RECEIVE: `${ADDON_ID}/receive`, }; diff --git a/addons/links/src/index.js b/addons/links/src/index.ts similarity index 93% rename from addons/links/src/index.js rename to addons/links/src/index.ts index c0f6e6372817..00d9a85684d1 100644 --- a/addons/links/src/index.js +++ b/addons/links/src/index.ts @@ -3,7 +3,7 @@ import { linkTo, hrefTo, withLinks } from './preview'; let hasWarned = false; -export function LinkTo() { +export function LinkTo(): null { if (!hasWarned) { // eslint-disable-next-line no-console console.error(stripIndents` diff --git a/addons/links/src/manager.js b/addons/links/src/manager.ts similarity index 100% rename from addons/links/src/manager.js rename to addons/links/src/manager.ts diff --git a/addons/links/src/preview.js b/addons/links/src/preview.ts similarity index 57% rename from addons/links/src/preview.js rename to addons/links/src/preview.ts index f20f7b1621db..ad7bf3c92c46 100644 --- a/addons/links/src/preview.js +++ b/addons/links/src/preview.ts @@ -1,11 +1,18 @@ +import { SyntheticEvent } from 'react'; import { document } from 'global'; import qs from 'qs'; import addons from '@storybook/addons'; import { SELECT_STORY, STORY_CHANGED } from '@storybook/core-events'; -import { toId } from '@storybook/router/utils'; +import { toId } from '@storybook/router'; -export const navigate = params => addons.getChannel().emit(SELECT_STORY, params); -const generateUrl = id => { +interface Params { + kind: string; + story: string; +} + +export const navigate = (params: Params) => addons.getChannel().emit(SELECT_STORY, params); + +const generateUrl = (id: string) => { const { location } = document; const query = qs.parse(location.search, { ignoreQueryPrefix: true }); return `${location.origin + location.pathname}?${qs.stringify( @@ -14,9 +21,10 @@ const generateUrl = id => { )}`; }; -const valueOrCall = args => value => (typeof value === 'function' ? value(...args) : value); +const valueOrCall = (args: string[]) => (value: string | ((...args: string[]) => string)) => + typeof value === 'function' ? value(...args) : value; -export const linkTo = (kind, story) => (...args) => { +export const linkTo = (kind: string, story: string) => (...args: string[]) => { const resolver = valueOrCall(args); navigate({ kind: resolver(kind), @@ -24,13 +32,13 @@ export const linkTo = (kind, story) => (...args) => { }); }; -export const hrefTo = (kind, name) => +export const hrefTo = (kind: string, name: string): Promise => new Promise(resolve => { resolve(generateUrl(toId(kind, name))); }); -const linksListener = e => { - const { sbKind: kind, sbStory: story } = e.target.dataset; +const linksListener = (e: SyntheticEvent) => { + const { sbKind: kind, sbStory: story } = e.currentTarget.dataset; if (kind || story) { e.preventDefault(); navigate({ kind, story }); @@ -52,7 +60,7 @@ const off = () => { } }; -export const withLinks = storyFn => { +export const withLinks = (storyFn: () => void) => { on(); addons.getChannel().once(STORY_CHANGED, off); return storyFn(); diff --git a/addons/links/src/react/components/link.js b/addons/links/src/react/components/link.tsx similarity index 64% rename from addons/links/src/react/components/link.js rename to addons/links/src/react/components/link.tsx index 4c43d8e9ece4..b84547609a87 100644 --- a/addons/links/src/react/components/link.js +++ b/addons/links/src/react/components/link.tsx @@ -1,5 +1,4 @@ import React, { PureComponent } from 'react'; -import PropTypes from 'prop-types'; import { navigate, hrefTo } from '../../preview'; @@ -9,32 +8,42 @@ import { navigate, hrefTo } from '../../preview'; // Cmd/Ctrl/Shift/Alt + Click should trigger default browser behaviour. Same applies to non-left clicks const LEFT_BUTTON = 0; -const isPlainLeftClick = e => +const isPlainLeftClick = (e: React.MouseEvent) => e.button === LEFT_BUTTON && !e.altKey && !e.ctrlKey && !e.metaKey && !e.shiftKey; -const cancelled = (e, cb = () => {}) => { +const cancelled = (e: React.MouseEvent, cb = (_e: any) => {}) => { if (isPlainLeftClick(e)) { e.preventDefault(); cb(e); } }; -export default class LinkTo extends PureComponent { - constructor(...args) { - super(...args); +interface Props { + kind: string; + story: string; + children: React.ReactNode; +} - this.state = { - href: '/', - }; +interface State { + href: string; +} - this.handleClick = this.handleClick.bind(this); - } +export default class LinkTo extends PureComponent { + defaultProps: Props = { + kind: null, + story: null, + children: undefined, + }; + + state: State = { + href: '/', + }; componentDidMount() { this.updateHref(); } - componentDidUpdate(prevProps) { + componentDidUpdate(prevProps: Props) { const { kind, story } = this.props; if (prevProps.kind !== kind || prevProps.story !== story) { @@ -42,15 +51,15 @@ export default class LinkTo extends PureComponent { } } - async updateHref() { + updateHref = async () => { const { kind, story } = this.props; const href = await hrefTo(kind, story); this.setState({ href }); - } + }; - handleClick() { + handleClick = () => { navigate(this.props); - } + }; render() { const { kind, story, children, ...rest } = this.props; @@ -63,15 +72,3 @@ export default class LinkTo extends PureComponent { ); } } - -LinkTo.defaultProps = { - kind: null, - story: null, - children: undefined, -}; - -LinkTo.propTypes = { - kind: PropTypes.string, - story: PropTypes.string, - children: PropTypes.node, -}; diff --git a/addons/links/src/react/index.js b/addons/links/src/react/index.js deleted file mode 100644 index cb1f5b43c5d0..000000000000 --- a/addons/links/src/react/index.js +++ /dev/null @@ -1 +0,0 @@ -export default from './components/link'; diff --git a/addons/links/src/react/index.ts b/addons/links/src/react/index.ts new file mode 100644 index 000000000000..cc4312b98492 --- /dev/null +++ b/addons/links/src/react/index.ts @@ -0,0 +1,2 @@ +import LinkTo from './components/link'; +export default LinkTo; diff --git a/addons/links/src/typings.d.ts b/addons/links/src/typings.d.ts new file mode 100644 index 000000000000..2f4eb9cf4fd9 --- /dev/null +++ b/addons/links/src/typings.d.ts @@ -0,0 +1 @@ +declare module 'global'; From 12611a464d5ca4d42a737e2e1d86ef45558c8524 Mon Sep 17 00:00:00 2001 From: Arman Sargsyan Date: Sat, 23 Mar 2019 16:47:30 +0300 Subject: [PATCH 27/45] fix(cra-config): use node-logger instead of console --- app/react/src/server/cra-config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/react/src/server/cra-config.js b/app/react/src/server/cra-config.js index 83fd5cbbbeab..28f6bf845011 100644 --- a/app/react/src/server/cra-config.js +++ b/app/react/src/server/cra-config.js @@ -3,6 +3,7 @@ import path from 'path'; import semver from 'semver'; import MiniCssExtractPlugin from 'mini-css-extract-plugin'; import { normalizeCondition } from 'webpack/lib/RuleSet'; +import { logger } from '@storybook/node-logger'; const cssExtensions = ['.css', '.scss', '.sass']; const cssModuleExtensions = ['.module.css', '.module.scss', '.module.sass']; @@ -42,7 +43,7 @@ export function getReactScriptsPath({ noCache } = {}) { } } } catch (e) { - console.warn('Error occured during react-scripts package path resolving.', e); + logger.warn(`Error occured during react-scripts package path resolving: ${e}`); } reactScriptsPath = path.join(reactScriptsScriptPath, '../..'); From 2ffc2cff0f7be7d5d20ae4e22586bfda740c7a31 Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Sun, 24 Mar 2019 15:15:20 +0800 Subject: [PATCH 28/45] 4.1.15 changelog --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index dc93e26f320f..6e6e3aa1d6d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 4.1.15 (March 24, 2019) + +### Bug Fixes + +* UI: Workaround broken treebeard animations ([#6249](https://github.com/storybooks/storybook/pull/6249)) + ## 5.1.0-alpha.13 (March 23, 2019) ### Features From 57a300032f94bbc526b9b76349c085868b6936d5 Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Sun, 24 Mar 2019 15:23:52 +0800 Subject: [PATCH 29/45] 4.1.16 changelog --- CHANGELOG.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e6e3aa1d6d3..037e4543c5d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,13 @@ -## 4.1.15 (March 24, 2019) +## 4.1.16 (March 24, 2019) ### Bug Fixes * UI: Workaround broken treebeard animations ([#6249](https://github.com/storybooks/storybook/pull/6249)) +## 4.1.15 (March 24, 2019) + +NPM publish failed + ## 5.1.0-alpha.13 (March 23, 2019) ### Features From f7d33ee5abb86b2df487033e697dd09ce2410f66 Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Mon, 18 Mar 2019 18:22:46 +0800 Subject: [PATCH 30/45] 5.0.3 changelog --- CHANGELOG.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 037e4543c5d5..b3f91b5eec76 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +## 5.0.3 (March 18, 2019) + +### Bug Fixes + +* Accessibility: Add missing button titles ([#6124](https://github.com/storybooks/storybook/pull/6124)) + +### Maintenance + +* UI: Make update notifications much less aggressive ([#6143](https://github.com/storybooks/storybook/pull/6143)) + ## 4.1.16 (March 24, 2019) ### Bug Fixes From cf6dc8fcb5e22d005ee42778b6cf928c0418d06b Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Sun, 24 Mar 2019 16:01:13 +0800 Subject: [PATCH 31/45] 5.0.4 changelog --- CHANGELOG.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b3f91b5eec76..ba248d2b1d8a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,18 @@ +## 5.0.4 (March 24, 2019) + +### Bug Fixes + +* UI: Fix tooltip event bindings, logger import ([#6238](https://github.com/storybooks/storybook/pull/6238)) +* CLI: Fix stories regexp in config.js ([#6180](https://github.com/storybooks/storybook/pull/6180)) +* Accessibilty: Add missing button titles ([#6124](https://github.com/storybooks/storybook/pull/6124)) +* React: Fix forked CRA support on Windows ([#6236](https://github.com/storybooks/storybook/pull/6236)) +* Addon-knkobs: Fix color type button z-index ([#6203](https://github.com/storybooks/storybook/pull/6203)) +* Angular: Fix typo in demo example ([#6193](https://github.com/storybooks/storybook/pull/6193)) +* Addon-Info: Restore fonts and color styling ([#6186](https://github.com/storybooks/storybook/pull/6186)) +* Addon-knobs: Fix ObjectType knob react warning ([#6159](https://github.com/storybooks/storybook/pull/6159)) +* Core: Add core-js as a dep to client-api ([#6209](https://github.com/storybooks/storybook/pull/6209)) +* React: Fix logging in cra-config ([#6245](https://github.com/storybooks/storybook/pull/6245)) + ## 5.0.3 (March 18, 2019) ### Bug Fixes From 71e1c18aedaf4784f096edd830467fcad81425ca Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Sun, 24 Mar 2019 16:28:26 +0800 Subject: [PATCH 32/45] Fix bad marege --- CHANGELOG.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ba248d2b1d8a..c2ad9bfbd1af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,16 +13,6 @@ * Core: Add core-js as a dep to client-api ([#6209](https://github.com/storybooks/storybook/pull/6209)) * React: Fix logging in cra-config ([#6245](https://github.com/storybooks/storybook/pull/6245)) -## 5.0.3 (March 18, 2019) - -### Bug Fixes - -* Accessibility: Add missing button titles ([#6124](https://github.com/storybooks/storybook/pull/6124)) - -### Maintenance - -* UI: Make update notifications much less aggressive ([#6143](https://github.com/storybooks/storybook/pull/6143)) - ## 4.1.16 (March 24, 2019) ### Bug Fixes @@ -98,6 +88,16 @@ NPM publish failed * Bump ember-cli from 3.7.1 to 3.8.1 ([#6142](https://github.com/storybooks/storybook/pull/6142)) * Bump markdown-to-jsx from 6.9.1 to 6.9.3 ([#6139](https://github.com/storybooks/storybook/pull/6139)) +## 5.0.3 (March 18, 2019) + +### Bug Fixes + +* Accessibility: Add missing button titles ([#6124](https://github.com/storybooks/storybook/pull/6124)) + +### Maintenance + +* UI: Make update notifications much less aggressive ([#6143](https://github.com/storybooks/storybook/pull/6143)) + ## 5.1.0-alpha.9 (March 18, 2019) ### Maintenance From 80c7127bb862e352e3679883ddbd7ef81be5767b Mon Sep 17 00:00:00 2001 From: Lucas Carl Date: Sun, 24 Mar 2019 13:21:45 +0100 Subject: [PATCH 33/45] Show name of selected view on viewport button --- addons/viewport/src/Tool.js | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/addons/viewport/src/Tool.js b/addons/viewport/src/Tool.js index f88ff5dfe993..0a29af26292d 100644 --- a/addons/viewport/src/Tool.js +++ b/addons/viewport/src/Tool.js @@ -106,6 +106,16 @@ const ActiveViewportLabel = styled.div(({ theme }) => ({ background: 'transparent', })); +const IconButtonWithLabel = styled(IconButton)(() => ({ + display: 'inline-flex', + alignItems: 'center', +})); + +const IconButtonLabel = styled.div(({ theme }) => ({ + fontSize: theme.typography.size.s2 - 1, + marginLeft: '10px', +})); + export default class ViewportTool extends Component { constructor(props) { super(props); @@ -146,12 +156,15 @@ export default class ViewportTool extends Component { let viewportX = 0; let viewportY = 0; + let viewportTitle = ''; if (item) { const height = item.value.height.replace('px', ''); const width = item.value.width.replace('px', ''); viewportX = isRotated ? height : width; viewportY = isRotated ? width : height; + + viewportTitle = isRotated ? `${item.title} (L)` : `${item.title} (P)`; } return items.length ? ( @@ -177,9 +190,14 @@ export default class ViewportTool extends Component { tooltip={} closeOnClick > - + - + {viewportTitle} + {item ? ( From 9c23aa76aee518549182998852a774272bbd0325 Mon Sep 17 00:00:00 2001 From: Lucas Carl Date: Sun, 24 Mar 2019 13:32:44 +0100 Subject: [PATCH 34/45] Reset viewport on double click --- addons/viewport/src/Tool.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/addons/viewport/src/Tool.js b/addons/viewport/src/Tool.js index 0a29af26292d..6a54da1c4dde 100644 --- a/addons/viewport/src/Tool.js +++ b/addons/viewport/src/Tool.js @@ -149,6 +149,13 @@ export default class ViewportTool extends Component { flipViewport = () => this.setState(({ isRotated }) => ({ isRotated: !isRotated, expanded: false })); + resetViewport = e => { + e.stopPropagation(); + e.nativeEvent.stopImmediatePropagation(); + + this.setState({ selected: undefined, expanded: false }); + }; + render() { const { expanded } = this.state; const { items, selected, isRotated } = getState(this.props, this.state, this.change); @@ -194,6 +201,7 @@ export default class ViewportTool extends Component { key="viewport" title="Change the size of the preview" active={!!item} + onDoubleClick={e => this.resetViewport(e)} > {viewportTitle} From 85031daae6a3ac1adaae1e5d8d9886820fa68306 Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Sun, 24 Mar 2019 20:35:57 +0800 Subject: [PATCH 35/45] 3.4.12 changelog --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c2ad9bfbd1af..aac4ea62c217 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 3.4.12 (March 24, 2019) + +### Bug Fixes + +* UI: Workaround broken treebeard animations ([#6249](https://github.com/storybooks/storybook/pull/6249)) + ## 5.0.4 (March 24, 2019) ### Bug Fixes From 4f5b847631112dd18186fc60e52a562239b76306 Mon Sep 17 00:00:00 2001 From: aamct2 Date: Sun, 24 Mar 2019 18:08:31 +0000 Subject: [PATCH 36/45] Add custom grid size --- .../cra-kitchen-sink/.storybook/config.js | 1 + lib/theming/src/base.ts | 3 ++ lib/theming/src/create.ts | 2 + lib/theming/src/tests/create.test.js | 25 ++++++++++ lib/ui/src/components/preview/background.js | 50 ++++++++++++++++--- 5 files changed, 74 insertions(+), 7 deletions(-) diff --git a/examples/cra-kitchen-sink/.storybook/config.js b/examples/cra-kitchen-sink/.storybook/config.js index 22abd30d10df..83e6f4c59bdb 100644 --- a/examples/cra-kitchen-sink/.storybook/config.js +++ b/examples/cra-kitchen-sink/.storybook/config.js @@ -15,6 +15,7 @@ addParameters({ hierarchySeparator: /\./, hierarchyRootSeparator: /\|/, enableShortcuts: true, + gridCellSize: 12, }, }); diff --git a/lib/theming/src/base.ts b/lib/theming/src/base.ts index fa0a3ca35d46..ed6364116bb5 100644 --- a/lib/theming/src/base.ts +++ b/lib/theming/src/base.ts @@ -42,6 +42,7 @@ export const background = { app: '#F6F9FC', bar: '#FFFFFF', content: color.lightest, + gridCellSize: 10, hoverable: 'rgba(0,0,0,.05)', // hover state for items in a list // Notification, error, and warning backgrounds @@ -129,6 +130,8 @@ export interface ThemeVars { brandTitle?: string; brandUrl?: string; brandImage?: string; + + gridCellSize?: number; } export type Color = typeof color; diff --git a/lib/theming/src/create.ts b/lib/theming/src/create.ts index 2e09727ba806..ed73fc5fce48 100644 --- a/lib/theming/src/create.ts +++ b/lib/theming/src/create.ts @@ -119,6 +119,7 @@ export const convert = (inherit: ThemeVars = lightThemeVars): Theme => { brandTitle, brandUrl, brandImage, + gridCellSize, ...rest } = inherit; @@ -131,6 +132,7 @@ export const convert = (inherit: ThemeVars = lightThemeVars): Theme => { app: appBg, bar: background.bar, content: appContentBg, + gridCellSize: gridCellSize || background.gridCellSize, hoverable: base === 'light' ? 'rgba(0,0,0,.05)' : 'rgba(250,250,252,.1)' || background.hoverable, diff --git a/lib/theming/src/tests/create.test.js b/lib/theming/src/tests/create.test.js index 94494ceea090..c65d72ff66d8 100644 --- a/lib/theming/src/tests/create.test.js +++ b/lib/theming/src/tests/create.test.js @@ -81,6 +81,31 @@ describe('create brand', () => { }); }); +describe('create grid', () => { + it('should have default', () => { + const result = create({ base: 'light' }); + + expect(result.gridCellSize).not.toBeDefined(); + }); + it('should accept null', () => { + const result = create({ base: 'light', gridCellSize: null }); + + expect(result).toMatchObject({ + gridCellSize: null, + }); + }); + it('should accept values', () => { + const result = create({ + base: 'light', + gridCellSize: 12, + }); + + expect(result).toMatchObject({ + gridCellSize: 12, + }); + }); +}); + describe('create extend', () => { it('should allow custom props', () => { const result = create( diff --git a/lib/ui/src/components/preview/background.js b/lib/ui/src/components/preview/background.js index 4c155ad6ef3e..27ad2e429415 100644 --- a/lib/ui/src/components/preview/background.js +++ b/lib/ui/src/components/preview/background.js @@ -1,4 +1,5 @@ import React, { Component } from 'react'; +import { renderToStaticMarkup } from 'react-dom/server'; import PropTypes from 'prop-types'; import { styled } from '@storybook/theming'; @@ -31,14 +32,49 @@ class Provider extends Component { const { Consumer } = Context; -const defaults = { - grid: { - backgroundImage: `url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='smallGrid' width='10' height='10' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 10 0 L 0 0 0 10' fill='none' stroke='gray' stroke-width='0.5'/%3E%3C/pattern%3E%3Cpattern id='grid' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Crect width='100' height='100' fill='url(%23smallGrid)'/%3E%3Cpath d='M 100 0 L 0 0 0 100' fill='none' stroke='gray' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23grid)' /%3E%3C/svg%3E")`, - backgroundSize: '100px 100px, 100px 100px, 20px 20px, 20px 20px', +function createGridStyles(cellSize) { + const cellSizeDoubled = cellSize * 2; + const cellSizeSquared = cellSize ** 2; + + const gridSVGEncoded = encodeURIComponent( + renderToStaticMarkup( + + + + + + + + + + + + + ) + ); + + return { + backgroundImage: `url("data:image/svg+xml,${gridSVGEncoded}")`, + backgroundSize: `${cellSizeSquared}px ${cellSizeSquared}px, ${cellSizeSquared}px ${cellSizeSquared}px, ${cellSizeDoubled}px ${cellSizeDoubled}px, ${cellSizeDoubled}px ${cellSizeDoubled}px`, backgroundPosition: '-2px -2px', mixBlendMode: 'difference', - }, -}; + }; +} const Grid = styled.div( { @@ -48,7 +84,7 @@ const Grid = styled.div( width: '100%', height: '100%', }, - defaults.grid + ({ theme }) => createGridStyles(theme.background.gridCellSize) ); const Background = styled.div( From 38f25e2dd5884d6e54a959928070259b8156075d Mon Sep 17 00:00:00 2001 From: aamct2 Date: Sun, 24 Mar 2019 21:02:42 +0000 Subject: [PATCH 37/45] Fix config demo of grid --- examples/cra-kitchen-sink/.storybook/config.js | 10 +++++++--- examples/cra-kitchen-sink/package.json | 1 + lib/theming/src/tests/create.test.js | 18 ++++++++++++++++++ 3 files changed, 26 insertions(+), 3 deletions(-) diff --git a/examples/cra-kitchen-sink/.storybook/config.js b/examples/cra-kitchen-sink/.storybook/config.js index 83e6f4c59bdb..14a944abd8bb 100644 --- a/examples/cra-kitchen-sink/.storybook/config.js +++ b/examples/cra-kitchen-sink/.storybook/config.js @@ -1,12 +1,11 @@ import { configure, addParameters, addDecorator } from '@storybook/react'; +import { create } from '@storybook/theming'; import { withA11y } from '@storybook/addon-a11y'; addDecorator(withA11y); addParameters({ options: { - brandTitle: 'CRA Kitchen Sink', - brandUrl: 'https://github.com/storybooks/storybook/tree/master/examples/cra-kitchen-sink', isFullscreen: false, showAddonsPanel: true, showSearchBox: false, @@ -15,7 +14,12 @@ addParameters({ hierarchySeparator: /\./, hierarchyRootSeparator: /\|/, enableShortcuts: true, - gridCellSize: 12, + theme: create({ + base: 'light', + brandTitle: 'CRA Kitchen Sink', + brandUrl: 'https://github.com/storybooks/storybook/tree/master/examples/cra-kitchen-sink', + gridCellSize: 12, + }), }, }); diff --git a/examples/cra-kitchen-sink/package.json b/examples/cra-kitchen-sink/package.json index b8c5fa6470cc..ca056409f8c7 100644 --- a/examples/cra-kitchen-sink/package.json +++ b/examples/cra-kitchen-sink/package.json @@ -34,6 +34,7 @@ "@storybook/addons": "5.1.0-alpha.13", "@storybook/client-logger": "5.1.0-alpha.13", "@storybook/react": "5.1.0-alpha.13", + "@storybook/theming": "5.1.0-alpha.13", "enzyme": "^3.9.0", "enzyme-adapter-react-16": "^1.9.1", "enzyme-to-json": "^3.3.5", diff --git a/lib/theming/src/tests/create.test.js b/lib/theming/src/tests/create.test.js index c65d72ff66d8..c4f22becd56d 100644 --- a/lib/theming/src/tests/create.test.js +++ b/lib/theming/src/tests/create.test.js @@ -167,4 +167,22 @@ describe('convert', () => { }), }); }); + it('should map optional vars', () => { + const customVars = create({ + base: 'light', + brandTitle: 'my custom storybook', + gridCellSize: 12, + }); + + const result = convert(customVars); + expect(result.base).toEqual('light'); + expect(result).toMatchObject({ + background: expect.objectContaining({ + gridCellSize: 12, + }), + brand: expect.objectContaining({ + title: 'my custom storybook', + }), + }); + }); }); From fabc703a522a93877b40230f89c0fcfb95632b1e Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Mon, 25 Mar 2019 06:56:50 +0800 Subject: [PATCH 38/45] 5.0.5 changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index aac4ea62c217..d2317828125f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 5.0.5 (March 25, 2019) + +Bump version number (same as 5.0.4, but need to make this `latest` again!) + ## 3.4.12 (March 24, 2019) ### Bug Fixes From 8e0d963dd4e91348bd9caf0b207bc9ed3be7fb70 Mon Sep 17 00:00:00 2001 From: Doug MacKenzie Date: Mon, 25 Mar 2019 15:40:33 +1100 Subject: [PATCH 39/45] Update type definition for panelPosition to enum of strings --- docs/src/pages/configurations/options-parameter/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/pages/configurations/options-parameter/index.md b/docs/src/pages/configurations/options-parameter/index.md index b5c1c05f7b3a..ee234d6d31b7 100644 --- a/docs/src/pages/configurations/options-parameter/index.md +++ b/docs/src/pages/configurations/options-parameter/index.md @@ -34,7 +34,7 @@ addParameters({ showPanel: true, /** * where to show the addon panel - * @type {String} + * @type {('bottom'|'right')} */ panelPosition: 'bottom', /** From 1cc89459d047e783b9578248f1b048e6ec21f2ed Mon Sep 17 00:00:00 2001 From: Anton Savoskin Date: Mon, 25 Mar 2019 18:20:52 +0700 Subject: [PATCH 40/45] chore: fix linkTo type in addons/links --- addons/links/src/preview.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/links/src/preview.ts b/addons/links/src/preview.ts index ad7bf3c92c46..8354fdf0e199 100644 --- a/addons/links/src/preview.ts +++ b/addons/links/src/preview.ts @@ -24,7 +24,7 @@ const generateUrl = (id: string) => { const valueOrCall = (args: string[]) => (value: string | ((...args: string[]) => string)) => typeof value === 'function' ? value(...args) : value; -export const linkTo = (kind: string, story: string) => (...args: string[]) => { +export const linkTo = (kind: string, story?: string) => (...args: string[]) => { const resolver = valueOrCall(args); navigate({ kind: resolver(kind), From d2d8d3984ddb68353982555020783bdea0131b2e Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Mon, 25 Mar 2019 12:33:52 +0100 Subject: [PATCH 41/45] FIX linting & tests --- addons/links/src/react/components/link.test.js | 2 +- .../storyshots/storyshots-core/src/api/integrityTestTemplate.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/links/src/react/components/link.test.js b/addons/links/src/react/components/link.test.js index 804dad07e130..2488071651d3 100644 --- a/addons/links/src/react/components/link.test.js +++ b/addons/links/src/react/components/link.test.js @@ -4,7 +4,7 @@ import addons from '@storybook/addons'; import { SELECT_STORY } from '@storybook/core-events'; import { mockChannel } from '../../preview.test'; -import LinkTo from './link'; +import LinkTo from './link.tsx'; jest.mock('@storybook/addons'); diff --git a/addons/storyshots/storyshots-core/src/api/integrityTestTemplate.js b/addons/storyshots/storyshots-core/src/api/integrityTestTemplate.js index 7a47470a81eb..684c99c4b9e9 100644 --- a/addons/storyshots/storyshots-core/src/api/integrityTestTemplate.js +++ b/addons/storyshots/storyshots-core/src/api/integrityTestTemplate.js @@ -16,7 +16,7 @@ function integrityTest(integrityOptions, stories2snapsConverter) { const possibleStoriesFiles = stories2snapsConverter.getPossibleStoriesFiles(fileName); return !possibleStoriesFiles.some(fs.existsSync); }); - expect(abandonedStoryshots).toHaveLength(0); + expect(abandonedStoryshots.length).toBe(0); }); }); } From 5091cd2d6786c1e26f1009b02a024700957d38cb Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Mon, 25 Mar 2019 15:11:22 +0100 Subject: [PATCH 42/45] FIX the boolean example --- examples/ember-cli/app/templates/components/welcome-banner.hbs | 2 +- examples/ember-cli/stories/addon-knobs.stories.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/ember-cli/app/templates/components/welcome-banner.hbs b/examples/ember-cli/app/templates/components/welcome-banner.hbs index 80ee9112cc97..9ca8973181aa 100644 --- a/examples/ember-cli/app/templates/components/welcome-banner.hbs +++ b/examples/ember-cli/app/templates/components/welcome-banner.hbs @@ -1,4 +1,4 @@ -