diff --git a/addons/a11y/package.json b/addons/a11y/package.json index 3dc3b7a0866e..b8f98b64fcb5 100644 --- a/addons/a11y/package.json +++ b/addons/a11y/package.json @@ -51,7 +51,7 @@ "@storybook/client-logger": "6.5.0-alpha.49", "@storybook/components": "6.5.0-alpha.49", "@storybook/core-events": "6.5.0-alpha.49", - "@storybook/csf": "0.0.2--canary.87bc651.0", + "@storybook/csf": "0.0.2--canary.507502b.0", "@storybook/theming": "6.5.0-alpha.49", "axe-core": "^4.2.0", "core-js": "^3.8.2", diff --git a/addons/actions/package.json b/addons/actions/package.json index 6730a483519a..f7a6c9942599 100644 --- a/addons/actions/package.json +++ b/addons/actions/package.json @@ -45,7 +45,7 @@ "@storybook/api": "6.5.0-alpha.49", "@storybook/components": "6.5.0-alpha.49", "@storybook/core-events": "6.5.0-alpha.49", - "@storybook/csf": "0.0.2--canary.87bc651.0", + "@storybook/csf": "0.0.2--canary.507502b.0", "@storybook/theming": "6.5.0-alpha.49", "core-js": "^3.8.2", "fast-deep-equal": "^3.1.3", diff --git a/addons/backgrounds/package.json b/addons/backgrounds/package.json index 6cc8b8e5f455..7a3bf214ddcb 100644 --- a/addons/backgrounds/package.json +++ b/addons/backgrounds/package.json @@ -50,7 +50,7 @@ "@storybook/client-logger": "6.5.0-alpha.49", "@storybook/components": "6.5.0-alpha.49", "@storybook/core-events": "6.5.0-alpha.49", - "@storybook/csf": "0.0.2--canary.87bc651.0", + "@storybook/csf": "0.0.2--canary.507502b.0", "@storybook/theming": "6.5.0-alpha.49", "core-js": "^3.8.2", "global": "^4.4.0", diff --git a/addons/controls/package.json b/addons/controls/package.json index df0bac754587..33f63baf5f81 100644 --- a/addons/controls/package.json +++ b/addons/controls/package.json @@ -50,7 +50,7 @@ "@storybook/client-logger": "6.5.0-alpha.49", "@storybook/components": "6.5.0-alpha.49", "@storybook/core-common": "6.5.0-alpha.49", - "@storybook/csf": "0.0.2--canary.87bc651.0", + "@storybook/csf": "0.0.2--canary.507502b.0", "@storybook/node-logger": "6.5.0-alpha.49", "@storybook/store": "6.5.0-alpha.49", "@storybook/theming": "6.5.0-alpha.49", diff --git a/addons/docs/docs/multiframework.md b/addons/docs/docs/multiframework.md index e6b8a6f400f8..967d14c90130 100644 --- a/addons/docs/docs/multiframework.md +++ b/addons/docs/docs/multiframework.md @@ -53,6 +53,8 @@ export interface ArgType { name?: string; description?: string; defaultValue?: any; + addIf?: string; + removeIf?: string; [key: string]: any; } @@ -106,7 +108,7 @@ The input is the story function and the story context (id, parameters, args, etc ## Dynamic source rendering -With the release of Storybook 6.0, we've improved how stories are rendered in the [Source doc block](https://storybook.js.org/docs/react/writing-docs/doc-blocks#source). One of such improvements is the `dynamic` source type, which renders a snippet based on the output the story function. +With the release of Storybook 6.0, we've improved how stories are rendered in the [Source doc block](https://storybook.js.org/docs/react/writing-docs/doc-blocks#source). One of such improvements is the `dynamic` source type, which renders a snippet based on the output the story function. This dynamic rendering is framework-specific, meaning it needs a custom implementation for each framework. @@ -151,7 +153,7 @@ import { jsxDecorator } from './jsxDecorator'; export const decorators = [jsxDecorator]; ``` -This configures the `jsxDecorator` to be run on every story. +This configures the `jsxDecorator` to be run on every story.
To learn more and see how it's implemented in context, check out the code . diff --git a/addons/docs/package.json b/addons/docs/package.json index 70aeafe78341..db290dc77225 100644 --- a/addons/docs/package.json +++ b/addons/docs/package.json @@ -64,7 +64,7 @@ "@storybook/components": "6.5.0-alpha.49", "@storybook/core-common": "6.5.0-alpha.49", "@storybook/core-events": "6.5.0-alpha.49", - "@storybook/csf": "0.0.2--canary.87bc651.0", + "@storybook/csf": "0.0.2--canary.507502b.0", "@storybook/docs-tools": "6.5.0-alpha.49", "@storybook/mdx1-csf": "canary", "@storybook/node-logger": "6.5.0-alpha.49", diff --git a/addons/interactions/package.json b/addons/interactions/package.json index 7aa41cc8a891..6861b63fb107 100644 --- a/addons/interactions/package.json +++ b/addons/interactions/package.json @@ -46,7 +46,7 @@ "@storybook/components": "6.5.0-alpha.49", "@storybook/core-common": "6.5.0-alpha.49", "@storybook/core-events": "6.5.0-alpha.49", - "@storybook/csf": "0.0.2--canary.87bc651.0", + "@storybook/csf": "0.0.2--canary.507502b.0", "@storybook/instrumenter": "6.5.0-alpha.49", "@storybook/theming": "6.5.0-alpha.49", "core-js": "^3.8.2", diff --git a/addons/links/package.json b/addons/links/package.json index f240f1394741..4149745c3eb5 100644 --- a/addons/links/package.json +++ b/addons/links/package.json @@ -44,7 +44,7 @@ "@storybook/addons": "6.5.0-alpha.49", "@storybook/client-logger": "6.5.0-alpha.49", "@storybook/core-events": "6.5.0-alpha.49", - "@storybook/csf": "0.0.2--canary.87bc651.0", + "@storybook/csf": "0.0.2--canary.507502b.0", "@storybook/router": "6.5.0-alpha.49", "@types/qs": "^6.9.5", "core-js": "^3.8.2", diff --git a/addons/measure/package.json b/addons/measure/package.json index 02669913a243..1856e07c4c59 100644 --- a/addons/measure/package.json +++ b/addons/measure/package.json @@ -49,7 +49,7 @@ "@storybook/client-logger": "6.5.0-alpha.49", "@storybook/components": "6.5.0-alpha.49", "@storybook/core-events": "6.5.0-alpha.49", - "@storybook/csf": "0.0.2--canary.87bc651.0", + "@storybook/csf": "0.0.2--canary.507502b.0", "core-js": "^3.8.2", "global": "^4.4.0" }, diff --git a/addons/outline/package.json b/addons/outline/package.json index 3d9d281fd1a0..250b7bf64d0f 100644 --- a/addons/outline/package.json +++ b/addons/outline/package.json @@ -52,7 +52,7 @@ "@storybook/client-logger": "6.5.0-alpha.49", "@storybook/components": "6.5.0-alpha.49", "@storybook/core-events": "6.5.0-alpha.49", - "@storybook/csf": "0.0.2--canary.87bc651.0", + "@storybook/csf": "0.0.2--canary.507502b.0", "core-js": "^3.8.2", "global": "^4.4.0", "regenerator-runtime": "^0.13.7", diff --git a/addons/storyshots/storyshots-core/package.json b/addons/storyshots/storyshots-core/package.json index 779d60e381f0..bcfaf40d946a 100644 --- a/addons/storyshots/storyshots-core/package.json +++ b/addons/storyshots/storyshots-core/package.json @@ -51,7 +51,7 @@ "@storybook/core": "6.5.0-alpha.49", "@storybook/core-client": "6.5.0-alpha.49", "@storybook/core-common": "6.5.0-alpha.49", - "@storybook/csf": "0.0.2--canary.87bc651.0", + "@storybook/csf": "0.0.2--canary.507502b.0", "@types/glob": "^7.1.3", "@types/jest": "^26.0.16", "@types/jest-specific-snapshot": "^0.5.3", diff --git a/addons/storyshots/storyshots-puppeteer/package.json b/addons/storyshots/storyshots-puppeteer/package.json index 48d338e146a3..8e5b3a7ff84a 100644 --- a/addons/storyshots/storyshots-puppeteer/package.json +++ b/addons/storyshots/storyshots-puppeteer/package.json @@ -41,7 +41,7 @@ }, "dependencies": { "@axe-core/puppeteer": "^4.2.0", - "@storybook/csf": "0.0.2--canary.87bc651.0", + "@storybook/csf": "0.0.2--canary.507502b.0", "@storybook/node-logger": "6.5.0-alpha.49", "@types/jest-image-snapshot": "^4.1.3", "core-js": "^3.8.2", @@ -49,7 +49,7 @@ "regenerator-runtime": "^0.13.7" }, "devDependencies": { - "@storybook/csf": "0.0.2--canary.87bc651.0", + "@storybook/csf": "0.0.2--canary.507502b.0", "@types/puppeteer": "^5.4.0" }, "peerDependencies": { diff --git a/app/angular/package.json b/app/angular/package.json index 8e0d0756d2eb..ac228ddb40b4 100644 --- a/app/angular/package.json +++ b/app/angular/package.json @@ -51,7 +51,7 @@ "@storybook/core": "6.5.0-alpha.49", "@storybook/core-common": "6.5.0-alpha.49", "@storybook/core-events": "6.5.0-alpha.49", - "@storybook/csf": "0.0.2--canary.87bc651.0", + "@storybook/csf": "0.0.2--canary.507502b.0", "@storybook/docs-tools": "6.5.0-alpha.49", "@storybook/node-logger": "6.5.0-alpha.49", "@storybook/semver": "^7.3.2", diff --git a/app/html/package.json b/app/html/package.json index 67697ad31b64..829f0cc5e980 100644 --- a/app/html/package.json +++ b/app/html/package.json @@ -48,7 +48,7 @@ "@storybook/addons": "6.5.0-alpha.49", "@storybook/core": "6.5.0-alpha.49", "@storybook/core-common": "6.5.0-alpha.49", - "@storybook/csf": "0.0.2--canary.87bc651.0", + "@storybook/csf": "0.0.2--canary.507502b.0", "@storybook/docs-tools": "6.5.0-alpha.49", "@storybook/preview-web": "6.5.0-alpha.49", "@storybook/store": "6.5.0-alpha.49", diff --git a/app/preact/package.json b/app/preact/package.json index f69f1e0f8d2e..7320a3d6aef2 100644 --- a/app/preact/package.json +++ b/app/preact/package.json @@ -49,7 +49,7 @@ "@storybook/addons": "6.5.0-alpha.49", "@storybook/core": "6.5.0-alpha.49", "@storybook/core-common": "6.5.0-alpha.49", - "@storybook/csf": "0.0.2--canary.87bc651.0", + "@storybook/csf": "0.0.2--canary.507502b.0", "@storybook/store": "6.5.0-alpha.49", "@types/node": "^14.14.20 || ^16.0.0", "@types/webpack-env": "^1.16.0", diff --git a/app/react/package.json b/app/react/package.json index bd832b6d1d73..d3c831927f43 100644 --- a/app/react/package.json +++ b/app/react/package.json @@ -53,7 +53,7 @@ "@storybook/client-logger": "6.5.0-alpha.49", "@storybook/core": "6.5.0-alpha.49", "@storybook/core-common": "6.5.0-alpha.49", - "@storybook/csf": "0.0.2--canary.87bc651.0", + "@storybook/csf": "0.0.2--canary.507502b.0", "@storybook/docs-tools": "6.5.0-alpha.49", "@storybook/node-logger": "6.5.0-alpha.49", "@storybook/react-docgen-typescript-plugin": "1.0.2-canary.6.9d540b91e815f8fc2f8829189deb00553559ff63.0", diff --git a/app/server/package.json b/app/server/package.json index 736881a402f3..301212cb6604 100644 --- a/app/server/package.json +++ b/app/server/package.json @@ -50,7 +50,7 @@ "@storybook/client-api": "6.5.0-alpha.49", "@storybook/core": "6.5.0-alpha.49", "@storybook/core-common": "6.5.0-alpha.49", - "@storybook/csf": "0.0.2--canary.87bc651.0", + "@storybook/csf": "0.0.2--canary.507502b.0", "@storybook/node-logger": "6.5.0-alpha.49", "@storybook/preview-web": "6.5.0-alpha.49", "@storybook/store": "6.5.0-alpha.49", diff --git a/app/svelte/package.json b/app/svelte/package.json index 4dca934cafb6..1bf0c7dbfedc 100644 --- a/app/svelte/package.json +++ b/app/svelte/package.json @@ -50,7 +50,7 @@ "@storybook/client-logger": "6.5.0-alpha.49", "@storybook/core": "6.5.0-alpha.49", "@storybook/core-common": "6.5.0-alpha.49", - "@storybook/csf": "0.0.2--canary.87bc651.0", + "@storybook/csf": "0.0.2--canary.507502b.0", "@storybook/docs-tools": "6.5.0-alpha.49", "@storybook/node-logger": "6.5.0-alpha.49", "@storybook/store": "6.5.0-alpha.49", diff --git a/app/vue/package.json b/app/vue/package.json index 06453e24041c..dcaca1db813a 100644 --- a/app/vue/package.json +++ b/app/vue/package.json @@ -49,7 +49,7 @@ "@storybook/client-logger": "6.5.0-alpha.49", "@storybook/core": "6.5.0-alpha.49", "@storybook/core-common": "6.5.0-alpha.49", - "@storybook/csf": "0.0.2--canary.87bc651.0", + "@storybook/csf": "0.0.2--canary.507502b.0", "@storybook/docs-tools": "6.5.0-alpha.49", "@storybook/store": "6.5.0-alpha.49", "@types/node": "^14.14.20 || ^16.0.0", diff --git a/app/vue3/package.json b/app/vue3/package.json index c3dc252cf22b..21c1f350e8e2 100644 --- a/app/vue3/package.json +++ b/app/vue3/package.json @@ -48,7 +48,7 @@ "@storybook/addons": "6.5.0-alpha.49", "@storybook/core": "6.5.0-alpha.49", "@storybook/core-common": "6.5.0-alpha.49", - "@storybook/csf": "0.0.2--canary.87bc651.0", + "@storybook/csf": "0.0.2--canary.507502b.0", "@storybook/docs-tools": "6.5.0-alpha.49", "@storybook/store": "6.5.0-alpha.49", "@types/node": "^14.14.20 || ^16.0.0", diff --git a/app/web-components/package.json b/app/web-components/package.json index cfd47f9b125d..9ec5867795d3 100644 --- a/app/web-components/package.json +++ b/app/web-components/package.json @@ -55,7 +55,7 @@ "@storybook/client-logger": "6.5.0-alpha.49", "@storybook/core": "6.5.0-alpha.49", "@storybook/core-common": "6.5.0-alpha.49", - "@storybook/csf": "0.0.2--canary.87bc651.0", + "@storybook/csf": "0.0.2--canary.507502b.0", "@storybook/docs-tools": "6.5.0-alpha.49", "@storybook/preview-web": "6.5.0-alpha.49", "@storybook/store": "6.5.0-alpha.49", diff --git a/docs/essentials/controls.md b/docs/essentials/controls.md index dda42e4c3185..305653acedfd 100644 --- a/docs/essentials/controls.md +++ b/docs/essentials/controls.md @@ -300,6 +300,34 @@ paths={[
+### Conditional controls + +In some cases, it's useful to be able to conditionally exclude a control based on the value of another control. Controls supports basic versions of these use cases with the `addIf` and `removeIf` options, which can take a boolean value, or a string which can refer to the value of another arg. + +Consider a collection of "advanced" settings that are only visible when the user toggles an "advanced" toggle. + + + + + + + +Or consider a constraint where if the user sets one control value, it doesn't make sense for the user to be able to set another value. + + + + + + + ## Hide NoControls warning If you don't plan to handle the control args inside your Story, you can remove the warning with: diff --git a/docs/snippets/common/component-story-conditional-controls-mutual-exclusion.js.mdx b/docs/snippets/common/component-story-conditional-controls-mutual-exclusion.js.mdx new file mode 100644 index 000000000000..86b3c15aaccc --- /dev/null +++ b/docs/snippets/common/component-story-conditional-controls-mutual-exclusion.js.mdx @@ -0,0 +1,16 @@ +```js +// Button.stories.js +import { Button } from './Button'; +export default { + component: Button, + title: 'Button', + argTypes: { + // button can be passed a label or an image, not both + label: { control: 'text', removeIf: 'image' }, + image: { + control: { type: 'select', options: ['foo.jpg', 'bar.jpg'] }, + removeIf: 'label', + }, + }, +}; +``` diff --git a/docs/snippets/common/component-story-conditional-controls-toggle.js.mdx b/docs/snippets/common/component-story-conditional-controls-toggle.js.mdx new file mode 100644 index 000000000000..9f46bf6e4acb --- /dev/null +++ b/docs/snippets/common/component-story-conditional-controls-toggle.js.mdx @@ -0,0 +1,16 @@ +```js +// Button.stories.js +import { Button } from './Button'; +export default { + component: Button, + title: 'Button', + argTypes: { + label: { control: 'text' }, // always shows + advanced: { control: 'boolean' }, + // below are only included when advanced is true + margin: { control: 'number', addIf: 'advanced' }, + padding: { control: 'number', addIf: 'advanced' }, + cornerRadius: { control: 'number', addIf: 'advanced' }, + }, +}; +``` diff --git a/docs/snippets/common/component-story-disable-controls.js.mdx b/docs/snippets/common/component-story-disable-controls.js.mdx index 4bbcdaccf3ac..b1a054880605 100644 --- a/docs/snippets/common/component-story-disable-controls.js.mdx +++ b/docs/snippets/common/component-story-disable-controls.js.mdx @@ -5,9 +5,9 @@ import { YourComponent } from './YourComponent'; export default { /* 👇 The title prop is optional. - * See https://storybook.js.org/docs/react/configure/overview#configure-story-loading - * to learn how to generate automatic titles - */ + * See https://storybook.js.org/docs/react/configure/overview#configure-story-loading + * to learn how to generate automatic titles + */ title: 'YourComponent', component: YourComponent, argTypes: { @@ -19,4 +19,4 @@ export default { }, }, }; -``` \ No newline at end of file +``` diff --git a/docs/snippets/common/component-story-disable-controls.mdx.mdx b/docs/snippets/common/component-story-disable-controls.mdx.mdx index 04f50ba86a62..52d04044e018 100644 --- a/docs/snippets/common/component-story-disable-controls.mdx.mdx +++ b/docs/snippets/common/component-story-disable-controls.mdx.mdx @@ -9,10 +9,10 @@ import { YourComponent } from './YourComponent' title="YourComponent" component={YourComponent} argTypes={{ - foo:{ - table:{ + foo: { + table: { disable: true, } } }} /> -``` \ No newline at end of file +``` diff --git a/examples/official-storybook/stories/addon-controls.stories.tsx b/examples/official-storybook/stories/addon-controls.stories.tsx index ec83aa20c377..9550d612193f 100644 --- a/examples/official-storybook/stories/addon-controls.stories.tsx +++ b/examples/official-storybook/stories/addon-controls.stories.tsx @@ -28,6 +28,37 @@ export default { ], }, }, + mutuallyExclusiveA: { control: 'text', removeIf: 'mutuallyExclusiveB' }, + mutuallyExclusiveB: { control: 'text', removeIf: 'mutuallyExclusiveA' }, + colorMode: { + control: 'boolean', + }, + dynamicText: { + removeIf: 'colorMode', + control: 'text', + }, + dynamicColor: { + addIf: 'colorMode', + control: 'color', + }, + advanced: { + control: 'boolean', + }, + margin: { + control: 'number', + addIf: 'advanced', + }, + padding: { + control: 'number', + addIf: 'advanced', + }, + cornerRadius: { + control: 'number', + addIf: 'advanced', + }, + someText: { control: 'text' }, + subText: { control: 'text', addIf: 'someText' }, + anotherText: { control: 'text', addIf: 'someText' }, }, parameters: { chromatic: { disable: true }, diff --git a/examples/web-components-kitchen-sink/yarn.lock b/examples/web-components-kitchen-sink/yarn.lock index 879e095c6a80..b3a020637d0a 100644 --- a/examples/web-components-kitchen-sink/yarn.lock +++ b/examples/web-components-kitchen-sink/yarn.lock @@ -2114,14 +2114,14 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/addon-a11y@portal:../../addons/a11y::locator=web-components-kitchen-sink%40workspace%3A." dependencies: - "@storybook/addons": 6.5.0-alpha.47 - "@storybook/api": 6.5.0-alpha.47 - "@storybook/channels": 6.5.0-alpha.47 - "@storybook/client-logger": 6.5.0-alpha.47 - "@storybook/components": 6.5.0-alpha.47 - "@storybook/core-events": 6.5.0-alpha.47 - "@storybook/csf": 0.0.2--canary.87bc651.0 - "@storybook/theming": 6.5.0-alpha.47 + "@storybook/addons": 6.5.0-alpha.48 + "@storybook/api": 6.5.0-alpha.48 + "@storybook/channels": 6.5.0-alpha.48 + "@storybook/client-logger": 6.5.0-alpha.48 + "@storybook/components": 6.5.0-alpha.48 + "@storybook/core-events": 6.5.0-alpha.48 + "@storybook/csf": 0.0.2--canary.507502b.0 + "@storybook/theming": 6.5.0-alpha.48 axe-core: ^4.2.0 core-js: ^3.8.2 global: ^4.4.0 @@ -2145,12 +2145,12 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/addon-actions@portal:../../addons/actions::locator=web-components-kitchen-sink%40workspace%3A." dependencies: - "@storybook/addons": 6.5.0-alpha.47 - "@storybook/api": 6.5.0-alpha.47 - "@storybook/components": 6.5.0-alpha.47 - "@storybook/core-events": 6.5.0-alpha.47 - "@storybook/csf": 0.0.2--canary.87bc651.0 - "@storybook/theming": 6.5.0-alpha.47 + "@storybook/addons": 6.5.0-alpha.48 + "@storybook/api": 6.5.0-alpha.48 + "@storybook/components": 6.5.0-alpha.48 + "@storybook/core-events": 6.5.0-alpha.48 + "@storybook/csf": 0.0.2--canary.507502b.0 + "@storybook/theming": 6.5.0-alpha.48 core-js: ^3.8.2 fast-deep-equal: ^3.1.3 global: ^4.4.0 @@ -2178,13 +2178,13 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/addon-backgrounds@portal:../../addons/backgrounds::locator=web-components-kitchen-sink%40workspace%3A." dependencies: - "@storybook/addons": 6.5.0-alpha.47 - "@storybook/api": 6.5.0-alpha.47 - "@storybook/client-logger": 6.5.0-alpha.47 - "@storybook/components": 6.5.0-alpha.47 - "@storybook/core-events": 6.5.0-alpha.47 - "@storybook/csf": 0.0.2--canary.87bc651.0 - "@storybook/theming": 6.5.0-alpha.47 + "@storybook/addons": 6.5.0-alpha.48 + "@storybook/api": 6.5.0-alpha.48 + "@storybook/client-logger": 6.5.0-alpha.48 + "@storybook/components": 6.5.0-alpha.48 + "@storybook/core-events": 6.5.0-alpha.48 + "@storybook/csf": 0.0.2--canary.507502b.0 + "@storybook/theming": 6.5.0-alpha.48 core-js: ^3.8.2 global: ^4.4.0 memoizerific: ^1.11.3 @@ -2206,15 +2206,15 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/addon-controls@portal:../../addons/controls::locator=web-components-kitchen-sink%40workspace%3A." dependencies: - "@storybook/addons": 6.5.0-alpha.47 - "@storybook/api": 6.5.0-alpha.47 - "@storybook/client-logger": 6.5.0-alpha.47 - "@storybook/components": 6.5.0-alpha.47 - "@storybook/core-common": 6.5.0-alpha.47 - "@storybook/csf": 0.0.2--canary.87bc651.0 - "@storybook/node-logger": 6.5.0-alpha.47 - "@storybook/store": 6.5.0-alpha.47 - "@storybook/theming": 6.5.0-alpha.47 + "@storybook/addons": 6.5.0-alpha.48 + "@storybook/api": 6.5.0-alpha.48 + "@storybook/client-logger": 6.5.0-alpha.48 + "@storybook/components": 6.5.0-alpha.48 + "@storybook/core-common": 6.5.0-alpha.48 + "@storybook/csf": 0.0.2--canary.507502b.0 + "@storybook/node-logger": 6.5.0-alpha.48 + "@storybook/store": 6.5.0-alpha.48 + "@storybook/theming": 6.5.0-alpha.48 core-js: ^3.8.2 lodash: ^4.17.21 ts-dedent: ^2.0.0 @@ -2237,20 +2237,20 @@ __metadata: "@babel/preset-env": ^7.12.11 "@jest/transform": ^26.6.2 "@mdx-js/react": ^1.6.22 - "@storybook/addons": 6.5.0-alpha.47 - "@storybook/api": 6.5.0-alpha.47 - "@storybook/components": 6.5.0-alpha.47 - "@storybook/core-common": 6.5.0-alpha.47 - "@storybook/core-events": 6.5.0-alpha.47 - "@storybook/csf": 0.0.2--canary.87bc651.0 - "@storybook/docs-tools": 6.5.0-alpha.47 + "@storybook/addons": 6.5.0-alpha.48 + "@storybook/api": 6.5.0-alpha.48 + "@storybook/components": 6.5.0-alpha.48 + "@storybook/core-common": 6.5.0-alpha.48 + "@storybook/core-events": 6.5.0-alpha.48 + "@storybook/csf": 0.0.2--canary.507502b.0 + "@storybook/docs-tools": 6.5.0-alpha.48 "@storybook/mdx1-csf": canary - "@storybook/node-logger": 6.5.0-alpha.47 - "@storybook/postinstall": 6.5.0-alpha.47 - "@storybook/preview-web": 6.5.0-alpha.47 - "@storybook/source-loader": 6.5.0-alpha.47 - "@storybook/store": 6.5.0-alpha.47 - "@storybook/theming": 6.5.0-alpha.47 + "@storybook/node-logger": 6.5.0-alpha.48 + "@storybook/postinstall": 6.5.0-alpha.48 + "@storybook/preview-web": 6.5.0-alpha.48 + "@storybook/source-loader": 6.5.0-alpha.48 + "@storybook/store": 6.5.0-alpha.48 + "@storybook/theming": 6.5.0-alpha.48 core-js: ^3.8.2 fast-deep-equal: ^3.1.3 global: ^4.4.0 @@ -2310,11 +2310,11 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/addon-links@portal:../../addons/links::locator=web-components-kitchen-sink%40workspace%3A." dependencies: - "@storybook/addons": 6.5.0-alpha.47 - "@storybook/client-logger": 6.5.0-alpha.47 - "@storybook/core-events": 6.5.0-alpha.47 - "@storybook/csf": 0.0.2--canary.87bc651.0 - "@storybook/router": 6.5.0-alpha.47 + "@storybook/addons": 6.5.0-alpha.48 + "@storybook/client-logger": 6.5.0-alpha.48 + "@storybook/core-events": 6.5.0-alpha.48 + "@storybook/csf": 0.0.2--canary.507502b.0 + "@storybook/router": 6.5.0-alpha.48 "@types/qs": ^6.9.5 core-js: ^3.8.2 global: ^4.4.0 @@ -2338,13 +2338,13 @@ __metadata: resolution: "@storybook/addon-storyshots@portal:../../addons/storyshots/storyshots-core::locator=web-components-kitchen-sink%40workspace%3A." dependencies: "@jest/transform": ^26.6.2 - "@storybook/addons": 6.5.0-alpha.47 + "@storybook/addons": 6.5.0-alpha.48 "@storybook/babel-plugin-require-context-hook": 1.0.1 - "@storybook/client-api": 6.5.0-alpha.47 - "@storybook/core": 6.5.0-alpha.47 - "@storybook/core-client": 6.5.0-alpha.47 - "@storybook/core-common": 6.5.0-alpha.47 - "@storybook/csf": 0.0.2--canary.87bc651.0 + "@storybook/client-api": 6.5.0-alpha.48 + "@storybook/core": 6.5.0-alpha.48 + "@storybook/core-client": 6.5.0-alpha.48 + "@storybook/core-common": 6.5.0-alpha.48 + "@storybook/csf": 0.0.2--canary.507502b.0 "@types/glob": ^7.1.3 "@types/jest": ^26.0.16 "@types/jest-specific-snapshot": ^0.5.3 @@ -2413,13 +2413,13 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/addon-storysource@portal:../../addons/storysource::locator=web-components-kitchen-sink%40workspace%3A." dependencies: - "@storybook/addons": 6.5.0-alpha.47 - "@storybook/api": 6.5.0-alpha.47 - "@storybook/client-logger": 6.5.0-alpha.47 - "@storybook/components": 6.5.0-alpha.47 - "@storybook/router": 6.5.0-alpha.47 - "@storybook/source-loader": 6.5.0-alpha.47 - "@storybook/theming": 6.5.0-alpha.47 + "@storybook/addons": 6.5.0-alpha.48 + "@storybook/api": 6.5.0-alpha.48 + "@storybook/client-logger": 6.5.0-alpha.48 + "@storybook/components": 6.5.0-alpha.48 + "@storybook/router": 6.5.0-alpha.48 + "@storybook/source-loader": 6.5.0-alpha.48 + "@storybook/theming": 6.5.0-alpha.48 core-js: ^3.8.2 estraverse: ^5.2.0 loader-utils: ^2.0.0 @@ -2442,12 +2442,12 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/addon-viewport@portal:../../addons/viewport::locator=web-components-kitchen-sink%40workspace%3A." dependencies: - "@storybook/addons": 6.5.0-alpha.47 - "@storybook/api": 6.5.0-alpha.47 - "@storybook/client-logger": 6.5.0-alpha.47 - "@storybook/components": 6.5.0-alpha.47 - "@storybook/core-events": 6.5.0-alpha.47 - "@storybook/theming": 6.5.0-alpha.47 + "@storybook/addons": 6.5.0-alpha.48 + "@storybook/api": 6.5.0-alpha.48 + "@storybook/client-logger": 6.5.0-alpha.48 + "@storybook/components": 6.5.0-alpha.48 + "@storybook/core-events": 6.5.0-alpha.48 + "@storybook/theming": 6.5.0-alpha.48 core-js: ^3.8.2 global: ^4.4.0 memoizerific: ^1.11.3 @@ -2468,13 +2468,13 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/addons@portal:../../lib/addons::locator=web-components-kitchen-sink%40workspace%3A." dependencies: - "@storybook/api": 6.5.0-alpha.47 - "@storybook/channels": 6.5.0-alpha.47 - "@storybook/client-logger": 6.5.0-alpha.47 - "@storybook/core-events": 6.5.0-alpha.47 - "@storybook/csf": 0.0.2--canary.87bc651.0 - "@storybook/router": 6.5.0-alpha.47 - "@storybook/theming": 6.5.0-alpha.47 + "@storybook/api": 6.5.0-alpha.48 + "@storybook/channels": 6.5.0-alpha.48 + "@storybook/client-logger": 6.5.0-alpha.48 + "@storybook/core-events": 6.5.0-alpha.48 + "@storybook/csf": 0.0.2--canary.507502b.0 + "@storybook/router": 6.5.0-alpha.48 + "@storybook/theming": 6.5.0-alpha.48 "@types/webpack-env": ^1.16.0 core-js: ^3.8.2 global: ^4.4.0 @@ -2489,13 +2489,13 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/api@portal:../../lib/api::locator=web-components-kitchen-sink%40workspace%3A." dependencies: - "@storybook/channels": 6.5.0-alpha.47 - "@storybook/client-logger": 6.5.0-alpha.47 - "@storybook/core-events": 6.5.0-alpha.47 - "@storybook/csf": 0.0.2--canary.87bc651.0 - "@storybook/router": 6.5.0-alpha.47 + "@storybook/channels": 6.5.0-alpha.48 + "@storybook/client-logger": 6.5.0-alpha.48 + "@storybook/core-events": 6.5.0-alpha.48 + "@storybook/csf": 0.0.2--canary.507502b.0 + "@storybook/router": 6.5.0-alpha.48 "@storybook/semver": ^7.3.2 - "@storybook/theming": 6.5.0-alpha.47 + "@storybook/theming": 6.5.0-alpha.48 core-js: ^3.8.2 fast-deep-equal: ^3.1.3 global: ^4.4.0 @@ -2524,22 +2524,22 @@ __metadata: resolution: "@storybook/builder-webpack4@portal:../../lib/builder-webpack4::locator=web-components-kitchen-sink%40workspace%3A." dependencies: "@babel/core": ^7.12.10 - "@storybook/addons": 6.5.0-alpha.47 - "@storybook/api": 6.5.0-alpha.47 - "@storybook/channel-postmessage": 6.5.0-alpha.47 - "@storybook/channels": 6.5.0-alpha.47 - "@storybook/client-api": 6.5.0-alpha.47 - "@storybook/client-logger": 6.5.0-alpha.47 - "@storybook/components": 6.5.0-alpha.47 - "@storybook/core-common": 6.5.0-alpha.47 - "@storybook/core-events": 6.5.0-alpha.47 - "@storybook/node-logger": 6.5.0-alpha.47 - "@storybook/preview-web": 6.5.0-alpha.47 - "@storybook/router": 6.5.0-alpha.47 + "@storybook/addons": 6.5.0-alpha.48 + "@storybook/api": 6.5.0-alpha.48 + "@storybook/channel-postmessage": 6.5.0-alpha.48 + "@storybook/channels": 6.5.0-alpha.48 + "@storybook/client-api": 6.5.0-alpha.48 + "@storybook/client-logger": 6.5.0-alpha.48 + "@storybook/components": 6.5.0-alpha.48 + "@storybook/core-common": 6.5.0-alpha.48 + "@storybook/core-events": 6.5.0-alpha.48 + "@storybook/node-logger": 6.5.0-alpha.48 + "@storybook/preview-web": 6.5.0-alpha.48 + "@storybook/router": 6.5.0-alpha.48 "@storybook/semver": ^7.3.2 - "@storybook/store": 6.5.0-alpha.47 - "@storybook/theming": 6.5.0-alpha.47 - "@storybook/ui": 6.5.0-alpha.47 + "@storybook/store": 6.5.0-alpha.48 + "@storybook/theming": 6.5.0-alpha.48 + "@storybook/ui": 6.5.0-alpha.48 "@types/node": ^14.0.10 || ^16.0.0 "@types/webpack": ^4.41.26 autoprefixer: ^9.8.6 @@ -2583,9 +2583,9 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/channel-postmessage@portal:../../lib/channel-postmessage::locator=web-components-kitchen-sink%40workspace%3A." dependencies: - "@storybook/channels": 6.5.0-alpha.47 - "@storybook/client-logger": 6.5.0-alpha.47 - "@storybook/core-events": 6.5.0-alpha.47 + "@storybook/channels": 6.5.0-alpha.48 + "@storybook/client-logger": 6.5.0-alpha.48 + "@storybook/core-events": 6.5.0-alpha.48 core-js: ^3.8.2 global: ^4.4.0 qs: ^6.10.0 @@ -2597,8 +2597,8 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/channel-websocket@portal:../../lib/channel-websocket::locator=web-components-kitchen-sink%40workspace%3A." dependencies: - "@storybook/channels": 6.5.0-alpha.47 - "@storybook/client-logger": 6.5.0-alpha.47 + "@storybook/channels": 6.5.0-alpha.48 + "@storybook/client-logger": 6.5.0-alpha.48 core-js: ^3.8.2 global: ^4.4.0 telejson: ^5.3.3 @@ -2619,13 +2619,13 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/client-api@portal:../../lib/client-api::locator=web-components-kitchen-sink%40workspace%3A." dependencies: - "@storybook/addons": 6.5.0-alpha.47 - "@storybook/channel-postmessage": 6.5.0-alpha.47 - "@storybook/channels": 6.5.0-alpha.47 - "@storybook/client-logger": 6.5.0-alpha.47 - "@storybook/core-events": 6.5.0-alpha.47 - "@storybook/csf": 0.0.2--canary.87bc651.0 - "@storybook/store": 6.5.0-alpha.47 + "@storybook/addons": 6.5.0-alpha.48 + "@storybook/channel-postmessage": 6.5.0-alpha.48 + "@storybook/channels": 6.5.0-alpha.48 + "@storybook/client-logger": 6.5.0-alpha.48 + "@storybook/core-events": 6.5.0-alpha.48 + "@storybook/csf": 0.0.2--canary.507502b.0 + "@storybook/store": 6.5.0-alpha.48 "@types/qs": ^6.9.5 "@types/webpack-env": ^1.16.0 core-js: ^3.8.2 @@ -2658,9 +2658,9 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/components@portal:../../lib/components::locator=web-components-kitchen-sink%40workspace%3A." dependencies: - "@storybook/client-logger": 6.5.0-alpha.47 - "@storybook/csf": 0.0.2--canary.87bc651.0 - "@storybook/theming": 6.5.0-alpha.47 + "@storybook/client-logger": 6.5.0-alpha.48 + "@storybook/csf": 0.0.2--canary.507502b.0 + "@storybook/theming": 6.5.0-alpha.48 core-js: ^3.8.2 regenerator-runtime: ^0.13.7 peerDependencies: @@ -2673,16 +2673,16 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/core-client@portal:../../lib/core-client::locator=web-components-kitchen-sink%40workspace%3A." dependencies: - "@storybook/addons": 6.5.0-alpha.47 - "@storybook/channel-postmessage": 6.5.0-alpha.47 - "@storybook/channel-websocket": 6.5.0-alpha.47 - "@storybook/client-api": 6.5.0-alpha.47 - "@storybook/client-logger": 6.5.0-alpha.47 - "@storybook/core-events": 6.5.0-alpha.47 - "@storybook/csf": 0.0.2--canary.87bc651.0 - "@storybook/preview-web": 6.5.0-alpha.47 - "@storybook/store": 6.5.0-alpha.47 - "@storybook/ui": 6.5.0-alpha.47 + "@storybook/addons": 6.5.0-alpha.48 + "@storybook/channel-postmessage": 6.5.0-alpha.48 + "@storybook/channel-websocket": 6.5.0-alpha.48 + "@storybook/client-api": 6.5.0-alpha.48 + "@storybook/client-logger": 6.5.0-alpha.48 + "@storybook/core-events": 6.5.0-alpha.48 + "@storybook/csf": 0.0.2--canary.507502b.0 + "@storybook/preview-web": 6.5.0-alpha.48 + "@storybook/store": 6.5.0-alpha.48 + "@storybook/ui": 6.5.0-alpha.48 airbnb-js-shims: ^2.2.1 ansi-to-html: ^0.6.11 core-js: ^3.8.2 @@ -2729,7 +2729,7 @@ __metadata: "@babel/preset-react": ^7.12.10 "@babel/preset-typescript": ^7.12.7 "@babel/register": ^7.12.1 - "@storybook/node-logger": 6.5.0-alpha.47 + "@storybook/node-logger": 6.5.0-alpha.48 "@storybook/semver": ^7.3.2 "@types/node": ^14.0.10 || ^16.0.0 "@types/pretty-hrtime": ^1.0.0 @@ -2779,16 +2779,16 @@ __metadata: resolution: "@storybook/core-server@portal:../../lib/core-server::locator=web-components-kitchen-sink%40workspace%3A." dependencies: "@discoveryjs/json-ext": ^0.5.3 - "@storybook/builder-webpack4": 6.5.0-alpha.47 - "@storybook/core-client": 6.5.0-alpha.47 - "@storybook/core-common": 6.5.0-alpha.47 - "@storybook/core-events": 6.5.0-alpha.47 - "@storybook/csf": 0.0.2--canary.87bc651.0 - "@storybook/csf-tools": 6.5.0-alpha.47 - "@storybook/manager-webpack4": 6.5.0-alpha.47 - "@storybook/node-logger": 6.5.0-alpha.47 + "@storybook/builder-webpack4": 6.5.0-alpha.48 + "@storybook/core-client": 6.5.0-alpha.48 + "@storybook/core-common": 6.5.0-alpha.48 + "@storybook/core-events": 6.5.0-alpha.48 + "@storybook/csf": 0.0.2--canary.507502b.0 + "@storybook/csf-tools": 6.5.0-alpha.48 + "@storybook/manager-webpack4": 6.5.0-alpha.48 + "@storybook/node-logger": 6.5.0-alpha.48 "@storybook/semver": ^7.3.2 - "@storybook/store": 6.5.0-alpha.47 + "@storybook/store": 6.5.0-alpha.48 "@types/node": ^14.0.10 || ^16.0.0 "@types/node-fetch": ^2.5.7 "@types/pretty-hrtime": ^1.0.0 @@ -2839,8 +2839,8 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/core@portal:../../lib/core::locator=web-components-kitchen-sink%40workspace%3A." dependencies: - "@storybook/core-client": 6.5.0-alpha.47 - "@storybook/core-server": 6.5.0-alpha.47 + "@storybook/core-client": 6.5.0-alpha.48 + "@storybook/core-server": 6.5.0-alpha.48 peerDependencies: react: ^16.8.0 || ^17.0.0 react-dom: ^16.8.0 || ^17.0.0 @@ -2866,7 +2866,7 @@ __metadata: "@babel/preset-env": ^7.12.11 "@babel/traverse": ^7.12.11 "@babel/types": ^7.12.11 - "@storybook/csf": 0.0.2--canary.87bc651.0 + "@storybook/csf": 0.0.2--canary.507502b.0 "@storybook/mdx1-csf": canary core-js: ^3.8.2 fs-extra: ^9.0.1 @@ -2881,12 +2881,12 @@ __metadata: languageName: node linkType: soft -"@storybook/csf@npm:0.0.2--canary.87bc651.0": - version: 0.0.2--canary.87bc651.0 - resolution: "@storybook/csf@npm:0.0.2--canary.87bc651.0" +"@storybook/csf@npm:0.0.2--canary.507502b.0": + version: 0.0.2--canary.507502b.0 + resolution: "@storybook/csf@npm:0.0.2--canary.507502b.0" dependencies: lodash: ^4.17.15 - checksum: 0e7c378b358666ddae637ffba4c4345bed0a2603138528cbc5049f416a62a74cd8ab917856d444bf0b7b3dc0ba52186456c24b21ccb1f028dc5cd43e7f2509dc + checksum: 1d48f1d320a6dbbdc7932943ffdba51783a16d86ea870a7c1b4438978fc8a6bd0600399cf748bcdf295f7fcd8ac80b62c6aebc1c68aac9ffe30ba8f3fbbf8f13 languageName: node linkType: hard @@ -2895,9 +2895,8 @@ __metadata: resolution: "@storybook/docs-tools@portal:../../lib/docs-tools::locator=web-components-kitchen-sink%40workspace%3A." dependencies: "@babel/core": ^7.12.10 - "@storybook/csf": 0.0.2--canary.87bc651.0 - "@storybook/node-logger": 6.5.0-alpha.47 - "@storybook/store": 6.5.0-alpha.47 + "@storybook/csf": 0.0.2--canary.507502b.0 + "@storybook/store": 6.5.0-alpha.48 core-js: ^3.8.2 doctrine: ^3.0.0 lodash: ^4.17.21 @@ -2912,12 +2911,12 @@ __metadata: "@babel/core": ^7.12.10 "@babel/plugin-transform-template-literals": ^7.12.1 "@babel/preset-react": ^7.12.10 - "@storybook/addons": 6.5.0-alpha.47 - "@storybook/core-client": 6.5.0-alpha.47 - "@storybook/core-common": 6.5.0-alpha.47 - "@storybook/node-logger": 6.5.0-alpha.47 - "@storybook/theming": 6.5.0-alpha.47 - "@storybook/ui": 6.5.0-alpha.47 + "@storybook/addons": 6.5.0-alpha.48 + "@storybook/core-client": 6.5.0-alpha.48 + "@storybook/core-common": 6.5.0-alpha.48 + "@storybook/node-logger": 6.5.0-alpha.48 + "@storybook/theming": 6.5.0-alpha.48 + "@storybook/ui": 6.5.0-alpha.48 "@types/node": ^14.0.10 || ^16.0.0 "@types/webpack": ^4.41.26 babel-loader: ^8.0.0 @@ -2996,12 +2995,12 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/preview-web@portal:../../lib/preview-web::locator=web-components-kitchen-sink%40workspace%3A." dependencies: - "@storybook/addons": 6.5.0-alpha.47 - "@storybook/channel-postmessage": 6.5.0-alpha.47 - "@storybook/client-logger": 6.5.0-alpha.47 - "@storybook/core-events": 6.5.0-alpha.47 - "@storybook/csf": 0.0.2--canary.87bc651.0 - "@storybook/store": 6.5.0-alpha.47 + "@storybook/addons": 6.5.0-alpha.48 + "@storybook/channel-postmessage": 6.5.0-alpha.48 + "@storybook/client-logger": 6.5.0-alpha.48 + "@storybook/core-events": 6.5.0-alpha.48 + "@storybook/csf": 0.0.2--canary.507502b.0 + "@storybook/store": 6.5.0-alpha.48 ansi-to-html: ^0.6.11 core-js: ^3.8.2 global: ^4.4.0 @@ -3022,7 +3021,7 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/router@portal:../../lib/router::locator=web-components-kitchen-sink%40workspace%3A." dependencies: - "@storybook/client-logger": 6.5.0-alpha.47 + "@storybook/client-logger": 6.5.0-alpha.48 core-js: ^3.8.2 regenerator-runtime: ^0.13.7 peerDependencies: @@ -3047,9 +3046,9 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/source-loader@portal:../../lib/source-loader::locator=web-components-kitchen-sink%40workspace%3A." dependencies: - "@storybook/addons": 6.5.0-alpha.47 - "@storybook/client-logger": 6.5.0-alpha.47 - "@storybook/csf": 0.0.2--canary.87bc651.0 + "@storybook/addons": 6.5.0-alpha.48 + "@storybook/client-logger": 6.5.0-alpha.48 + "@storybook/csf": 0.0.2--canary.507502b.0 core-js: ^3.8.2 estraverse: ^5.2.0 global: ^4.4.0 @@ -3067,10 +3066,10 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/store@portal:../../lib/store::locator=web-components-kitchen-sink%40workspace%3A." dependencies: - "@storybook/addons": 6.5.0-alpha.47 - "@storybook/client-logger": 6.5.0-alpha.47 - "@storybook/core-events": 6.5.0-alpha.47 - "@storybook/csf": 0.0.2--canary.87bc651.0 + "@storybook/addons": 6.5.0-alpha.48 + "@storybook/client-logger": 6.5.0-alpha.48 + "@storybook/core-events": 6.5.0-alpha.48 + "@storybook/csf": 0.0.2--canary.507502b.0 core-js: ^3.8.2 fast-deep-equal: ^3.1.3 global: ^4.4.0 @@ -3092,7 +3091,7 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/theming@portal:../../lib/theming::locator=web-components-kitchen-sink%40workspace%3A." dependencies: - "@storybook/client-logger": 6.5.0-alpha.47 + "@storybook/client-logger": 6.5.0-alpha.48 core-js: ^3.8.2 regenerator-runtime: ^0.13.7 peerDependencies: @@ -3105,15 +3104,15 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/ui@portal:../../lib/ui::locator=web-components-kitchen-sink%40workspace%3A." dependencies: - "@storybook/addons": 6.5.0-alpha.47 - "@storybook/api": 6.5.0-alpha.47 - "@storybook/channels": 6.5.0-alpha.47 - "@storybook/client-logger": 6.5.0-alpha.47 - "@storybook/components": 6.5.0-alpha.47 - "@storybook/core-events": 6.5.0-alpha.47 - "@storybook/router": 6.5.0-alpha.47 + "@storybook/addons": 6.5.0-alpha.48 + "@storybook/api": 6.5.0-alpha.48 + "@storybook/channels": 6.5.0-alpha.48 + "@storybook/client-logger": 6.5.0-alpha.48 + "@storybook/components": 6.5.0-alpha.48 + "@storybook/core-events": 6.5.0-alpha.48 + "@storybook/router": 6.5.0-alpha.48 "@storybook/semver": ^7.3.2 - "@storybook/theming": 6.5.0-alpha.47 + "@storybook/theming": 6.5.0-alpha.48 core-js: ^3.8.2 regenerator-runtime: ^0.13.7 resolve-from: ^5.0.0 @@ -3130,15 +3129,15 @@ __metadata: "@babel/plugin-syntax-dynamic-import": ^7.8.3 "@babel/plugin-syntax-import-meta": ^7.10.4 "@babel/preset-env": ^7.12.11 - "@storybook/addons": 6.5.0-alpha.47 - "@storybook/client-api": 6.5.0-alpha.47 - "@storybook/client-logger": 6.5.0-alpha.47 - "@storybook/core": 6.5.0-alpha.47 - "@storybook/core-common": 6.5.0-alpha.47 - "@storybook/csf": 0.0.2--canary.87bc651.0 - "@storybook/docs-tools": 6.5.0-alpha.47 - "@storybook/preview-web": 6.5.0-alpha.47 - "@storybook/store": 6.5.0-alpha.47 + "@storybook/addons": 6.5.0-alpha.48 + "@storybook/client-api": 6.5.0-alpha.48 + "@storybook/client-logger": 6.5.0-alpha.48 + "@storybook/core": 6.5.0-alpha.48 + "@storybook/core-common": 6.5.0-alpha.48 + "@storybook/csf": 0.0.2--canary.507502b.0 + "@storybook/docs-tools": 6.5.0-alpha.48 + "@storybook/preview-web": 6.5.0-alpha.48 + "@storybook/store": 6.5.0-alpha.48 "@types/node": ^14.14.20 || ^16.0.0 "@types/webpack-env": ^1.16.0 babel-plugin-bundled-import-meta: ^0.3.1 diff --git a/lib/addons/package.json b/lib/addons/package.json index 446a8e95514d..838e8e0dd215 100644 --- a/lib/addons/package.json +++ b/lib/addons/package.json @@ -44,7 +44,7 @@ "@storybook/channels": "6.5.0-alpha.49", "@storybook/client-logger": "6.5.0-alpha.49", "@storybook/core-events": "6.5.0-alpha.49", - "@storybook/csf": "0.0.2--canary.87bc651.0", + "@storybook/csf": "0.0.2--canary.507502b.0", "@storybook/router": "6.5.0-alpha.49", "@storybook/theming": "6.5.0-alpha.49", "@types/webpack-env": "^1.16.0", diff --git a/lib/api/package.json b/lib/api/package.json index 7568fc0c0f91..8889d3de929a 100644 --- a/lib/api/package.json +++ b/lib/api/package.json @@ -41,7 +41,7 @@ "@storybook/channels": "6.5.0-alpha.49", "@storybook/client-logger": "6.5.0-alpha.49", "@storybook/core-events": "6.5.0-alpha.49", - "@storybook/csf": "0.0.2--canary.87bc651.0", + "@storybook/csf": "0.0.2--canary.507502b.0", "@storybook/router": "6.5.0-alpha.49", "@storybook/semver": "^7.3.2", "@storybook/theming": "6.5.0-alpha.49", diff --git a/lib/api/src/index.tsx b/lib/api/src/index.tsx index 671119a9b096..20fefb81a498 100644 --- a/lib/api/src/index.tsx +++ b/lib/api/src/index.tsx @@ -117,6 +117,8 @@ export interface ArgType { name?: string; description?: string; defaultValue?: any; + addIf?: string; + removeIf?: string; [key: string]: any; } diff --git a/lib/cli/src/versions.ts b/lib/cli/src/versions.ts index 819cdf9f33af..f1ae04bc8ffc 100644 --- a/lib/cli/src/versions.ts +++ b/lib/cli/src/versions.ts @@ -1,59 +1,59 @@ // auto generated file, do not edit export default { - "@storybook/addon-a11y": "6.5.0-alpha.49", - "@storybook/addon-actions": "6.5.0-alpha.49", - "@storybook/addon-backgrounds": "6.5.0-alpha.49", - "@storybook/addon-controls": "6.5.0-alpha.49", - "@storybook/addon-docs": "6.5.0-alpha.49", - "@storybook/addon-essentials": "6.5.0-alpha.49", - "@storybook/addon-interactions": "6.5.0-alpha.49", - "@storybook/addon-jest": "6.5.0-alpha.49", - "@storybook/addon-links": "6.5.0-alpha.49", - "@storybook/addon-measure": "6.5.0-alpha.49", - "@storybook/addon-outline": "6.5.0-alpha.49", - "@storybook/addon-storyshots": "6.5.0-alpha.49", - "@storybook/addon-storyshots-puppeteer": "6.5.0-alpha.49", - "@storybook/addon-storysource": "6.5.0-alpha.49", - "@storybook/addon-toolbars": "6.5.0-alpha.49", - "@storybook/addon-viewport": "6.5.0-alpha.49", - "@storybook/addons": "6.5.0-alpha.49", - "@storybook/angular": "6.5.0-alpha.49", - "@storybook/api": "6.5.0-alpha.49", - "@storybook/builder-webpack4": "6.5.0-alpha.49", - "@storybook/builder-webpack5": "6.5.0-alpha.49", - "@storybook/channel-postmessage": "6.5.0-alpha.49", - "@storybook/channel-websocket": "6.5.0-alpha.49", - "@storybook/channels": "6.5.0-alpha.49", - "@storybook/cli": "6.5.0-alpha.49", - "@storybook/client-api": "6.5.0-alpha.49", - "@storybook/client-logger": "6.5.0-alpha.49", - "@storybook/codemod": "6.5.0-alpha.49", - "@storybook/components": "6.5.0-alpha.49", - "@storybook/core": "6.5.0-alpha.49", - "@storybook/core-client": "6.5.0-alpha.49", - "@storybook/core-common": "6.5.0-alpha.49", - "@storybook/core-events": "6.5.0-alpha.49", - "@storybook/core-server": "6.5.0-alpha.49", - "@storybook/csf-tools": "6.5.0-alpha.49", - "@storybook/docs-tools": "6.5.0-alpha.49", - "@storybook/ember": "6.5.0-alpha.49", - "@storybook/html": "6.5.0-alpha.49", - "@storybook/instrumenter": "6.5.0-alpha.49", - "@storybook/manager-webpack4": "6.5.0-alpha.49", - "@storybook/manager-webpack5": "6.5.0-alpha.49", - "@storybook/node-logger": "6.5.0-alpha.49", - "@storybook/postinstall": "6.5.0-alpha.49", - "@storybook/preact": "6.5.0-alpha.49", - "@storybook/preview-web": "6.5.0-alpha.49", - "@storybook/react": "6.5.0-alpha.49", - "@storybook/router": "6.5.0-alpha.49", - "@storybook/server": "6.5.0-alpha.49", - "@storybook/source-loader": "6.5.0-alpha.49", - "@storybook/store": "6.5.0-alpha.49", - "@storybook/svelte": "6.5.0-alpha.49", - "@storybook/theming": "6.5.0-alpha.49", - "@storybook/ui": "6.5.0-alpha.49", - "@storybook/vue": "6.5.0-alpha.49", - "@storybook/vue3": "6.5.0-alpha.49", - "@storybook/web-components": "6.5.0-alpha.49" -} \ No newline at end of file + '@storybook/addon-a11y': '6.5.0-alpha.49', + '@storybook/addon-actions': '6.5.0-alpha.49', + '@storybook/addon-backgrounds': '6.5.0-alpha.49', + '@storybook/addon-controls': '6.5.0-alpha.49', + '@storybook/addon-docs': '6.5.0-alpha.49', + '@storybook/addon-essentials': '6.5.0-alpha.49', + '@storybook/addon-interactions': '6.5.0-alpha.49', + '@storybook/addon-jest': '6.5.0-alpha.49', + '@storybook/addon-links': '6.5.0-alpha.49', + '@storybook/addon-measure': '6.5.0-alpha.49', + '@storybook/addon-outline': '6.5.0-alpha.49', + '@storybook/addon-storyshots': '6.5.0-alpha.49', + '@storybook/addon-storyshots-puppeteer': '6.5.0-alpha.49', + '@storybook/addon-storysource': '6.5.0-alpha.49', + '@storybook/addon-toolbars': '6.5.0-alpha.49', + '@storybook/addon-viewport': '6.5.0-alpha.49', + '@storybook/addons': '6.5.0-alpha.49', + '@storybook/angular': '6.5.0-alpha.49', + '@storybook/api': '6.5.0-alpha.49', + '@storybook/builder-webpack4': '6.5.0-alpha.49', + '@storybook/builder-webpack5': '6.5.0-alpha.49', + '@storybook/channel-postmessage': '6.5.0-alpha.49', + '@storybook/channel-websocket': '6.5.0-alpha.49', + '@storybook/channels': '6.5.0-alpha.49', + '@storybook/cli': '6.5.0-alpha.49', + '@storybook/client-api': '6.5.0-alpha.49', + '@storybook/client-logger': '6.5.0-alpha.49', + '@storybook/codemod': '6.5.0-alpha.49', + '@storybook/components': '6.5.0-alpha.49', + '@storybook/core': '6.5.0-alpha.49', + '@storybook/core-client': '6.5.0-alpha.49', + '@storybook/core-common': '6.5.0-alpha.49', + '@storybook/core-events': '6.5.0-alpha.49', + '@storybook/core-server': '6.5.0-alpha.49', + '@storybook/csf-tools': '6.5.0-alpha.49', + '@storybook/docs-tools': '6.5.0-alpha.49', + '@storybook/ember': '6.5.0-alpha.49', + '@storybook/html': '6.5.0-alpha.49', + '@storybook/instrumenter': '6.5.0-alpha.49', + '@storybook/manager-webpack4': '6.5.0-alpha.49', + '@storybook/manager-webpack5': '6.5.0-alpha.49', + '@storybook/node-logger': '6.5.0-alpha.49', + '@storybook/postinstall': '6.5.0-alpha.49', + '@storybook/preact': '6.5.0-alpha.49', + '@storybook/preview-web': '6.5.0-alpha.49', + '@storybook/react': '6.5.0-alpha.49', + '@storybook/router': '6.5.0-alpha.49', + '@storybook/server': '6.5.0-alpha.49', + '@storybook/source-loader': '6.5.0-alpha.49', + '@storybook/store': '6.5.0-alpha.49', + '@storybook/svelte': '6.5.0-alpha.49', + '@storybook/theming': '6.5.0-alpha.49', + '@storybook/ui': '6.5.0-alpha.49', + '@storybook/vue': '6.5.0-alpha.49', + '@storybook/vue3': '6.5.0-alpha.49', + '@storybook/web-components': '6.5.0-alpha.49', +}; diff --git a/lib/client-api/package.json b/lib/client-api/package.json index 77555970ec78..7db984ff4a9a 100644 --- a/lib/client-api/package.json +++ b/lib/client-api/package.json @@ -45,7 +45,7 @@ "@storybook/channels": "6.5.0-alpha.49", "@storybook/client-logger": "6.5.0-alpha.49", "@storybook/core-events": "6.5.0-alpha.49", - "@storybook/csf": "0.0.2--canary.87bc651.0", + "@storybook/csf": "0.0.2--canary.507502b.0", "@storybook/store": "6.5.0-alpha.49", "@types/qs": "^6.9.5", "@types/webpack-env": "^1.16.0", diff --git a/lib/codemod/package.json b/lib/codemod/package.json index 45bccdd8d397..5c19a7e3c834 100644 --- a/lib/codemod/package.json +++ b/lib/codemod/package.json @@ -43,7 +43,7 @@ "dependencies": { "@babel/types": "^7.12.11", "@mdx-js/mdx": "^1.6.22", - "@storybook/csf": "0.0.2--canary.87bc651.0", + "@storybook/csf": "0.0.2--canary.507502b.0", "@storybook/csf-tools": "6.5.0-alpha.49", "@storybook/node-logger": "6.5.0-alpha.49", "core-js": "^3.8.2", diff --git a/lib/components/package.json b/lib/components/package.json index 45c82fecfb6b..1dd5b9da1a0d 100644 --- a/lib/components/package.json +++ b/lib/components/package.json @@ -41,7 +41,7 @@ }, "dependencies": { "@storybook/client-logger": "6.5.0-alpha.49", - "@storybook/csf": "0.0.2--canary.87bc651.0", + "@storybook/csf": "0.0.2--canary.507502b.0", "@storybook/theming": "6.5.0-alpha.49", "core-js": "^3.8.2", "regenerator-runtime": "^0.13.7" diff --git a/lib/components/src/blocks/ArgsTable/ArgsTable.tsx b/lib/components/src/blocks/ArgsTable/ArgsTable.tsx index faabe0e11c24..54d72ef45d7e 100644 --- a/lib/components/src/blocks/ArgsTable/ArgsTable.tsx +++ b/lib/components/src/blocks/ArgsTable/ArgsTable.tsx @@ -2,6 +2,7 @@ import React, { FC } from 'react'; import pickBy from 'lodash/pickBy'; import { styled, ignoreSsrWarning } from '@storybook/theming'; import { opacify, transparentize, darken, lighten } from 'polished'; +import { includeConditionalArg } from '@storybook/csf'; import { Icons } from '../../icon/icon'; import { ArgRow } from './ArgRow'; import { SectionRow } from './SectionRow'; @@ -398,7 +399,7 @@ export const ArgsTable: FC = (props) => { const { rows, args } = 'rows' in props ? props : argsTableLoadingData; const groups = groupRows( - pickBy(rows, (row) => !row?.table?.disable), + pickBy(rows, (row) => !row?.table?.disable && includeConditionalArg(row, args)), sort ); diff --git a/lib/components/src/blocks/ArgsTable/types.ts b/lib/components/src/blocks/ArgsTable/types.ts index 4b8a3fa4941c..ce22a510dc17 100644 --- a/lib/components/src/blocks/ArgsTable/types.ts +++ b/lib/components/src/blocks/ArgsTable/types.ts @@ -32,6 +32,8 @@ export interface ArgType { name?: string; description?: string; defaultValue?: any; + addIf?: string; + removeIf?: string; [key: string]: any; } diff --git a/lib/core-client/package.json b/lib/core-client/package.json index d77dfcccf90b..b46e1eafd9a0 100644 --- a/lib/core-client/package.json +++ b/lib/core-client/package.json @@ -46,7 +46,7 @@ "@storybook/client-api": "6.5.0-alpha.49", "@storybook/client-logger": "6.5.0-alpha.49", "@storybook/core-events": "6.5.0-alpha.49", - "@storybook/csf": "0.0.2--canary.87bc651.0", + "@storybook/csf": "0.0.2--canary.507502b.0", "@storybook/preview-web": "6.5.0-alpha.49", "@storybook/store": "6.5.0-alpha.49", "@storybook/ui": "6.5.0-alpha.49", diff --git a/lib/core-server/package.json b/lib/core-server/package.json index fc8fe1143f7e..6c6134d51b66 100644 --- a/lib/core-server/package.json +++ b/lib/core-server/package.json @@ -44,7 +44,7 @@ "@storybook/core-client": "6.5.0-alpha.49", "@storybook/core-common": "6.5.0-alpha.49", "@storybook/core-events": "6.5.0-alpha.49", - "@storybook/csf": "0.0.2--canary.87bc651.0", + "@storybook/csf": "0.0.2--canary.507502b.0", "@storybook/csf-tools": "6.5.0-alpha.49", "@storybook/manager-webpack4": "6.5.0-alpha.49", "@storybook/node-logger": "6.5.0-alpha.49", diff --git a/lib/csf-tools/package.json b/lib/csf-tools/package.json index d6c14c19c0fe..5ae3183bdecf 100644 --- a/lib/csf-tools/package.json +++ b/lib/csf-tools/package.json @@ -47,7 +47,7 @@ "@babel/preset-env": "^7.12.11", "@babel/traverse": "^7.12.11", "@babel/types": "^7.12.11", - "@storybook/csf": "0.0.2--canary.87bc651.0", + "@storybook/csf": "0.0.2--canary.507502b.0", "@storybook/mdx1-csf": "canary", "core-js": "^3.8.2", "fs-extra": "^9.0.1", diff --git a/lib/docs-tools/package.json b/lib/docs-tools/package.json index f4d38c2042ec..02edd7347e98 100644 --- a/lib/docs-tools/package.json +++ b/lib/docs-tools/package.json @@ -41,7 +41,7 @@ }, "dependencies": { "@babel/core": "^7.12.10", - "@storybook/csf": "0.0.2--canary.87bc651.0", + "@storybook/csf": "0.0.2--canary.507502b.0", "@storybook/store": "6.5.0-alpha.49", "core-js": "^3.8.2", "doctrine": "^3.0.0", diff --git a/lib/preview-web/package.json b/lib/preview-web/package.json index 9c724f2a9d8f..d9ba04af734f 100644 --- a/lib/preview-web/package.json +++ b/lib/preview-web/package.json @@ -44,7 +44,7 @@ "@storybook/channel-postmessage": "6.5.0-alpha.49", "@storybook/client-logger": "6.5.0-alpha.49", "@storybook/core-events": "6.5.0-alpha.49", - "@storybook/csf": "0.0.2--canary.87bc651.0", + "@storybook/csf": "0.0.2--canary.507502b.0", "@storybook/store": "6.5.0-alpha.49", "ansi-to-html": "^0.6.11", "core-js": "^3.8.2", diff --git a/lib/source-loader/package.json b/lib/source-loader/package.json index de23e75da9e3..5dfa605e30b3 100644 --- a/lib/source-loader/package.json +++ b/lib/source-loader/package.json @@ -43,7 +43,7 @@ "dependencies": { "@storybook/addons": "6.5.0-alpha.49", "@storybook/client-logger": "6.5.0-alpha.49", - "@storybook/csf": "0.0.2--canary.87bc651.0", + "@storybook/csf": "0.0.2--canary.507502b.0", "core-js": "^3.8.2", "estraverse": "^5.2.0", "global": "^4.4.0", diff --git a/lib/store/package.json b/lib/store/package.json index 397307350ca5..d005f4988c37 100644 --- a/lib/store/package.json +++ b/lib/store/package.json @@ -43,7 +43,7 @@ "@storybook/addons": "6.5.0-alpha.49", "@storybook/client-logger": "6.5.0-alpha.49", "@storybook/core-events": "6.5.0-alpha.49", - "@storybook/csf": "0.0.2--canary.87bc651.0", + "@storybook/csf": "0.0.2--canary.507502b.0", "core-js": "^3.8.2", "fast-deep-equal": "^3.1.3", "global": "^4.4.0", diff --git a/lib/store/src/csf/prepareStory.test.ts b/lib/store/src/csf/prepareStory.test.ts index bd228a56c052..0ea0c48615e8 100644 --- a/lib/store/src/csf/prepareStory.test.ts +++ b/lib/store/src/csf/prepareStory.test.ts @@ -504,6 +504,30 @@ describe('prepareStory', () => { ); }); + it('filters out conditional args', () => { + const renderMock = jest.fn(); + const firstStory = prepareStory( + { + id, + name, + args: { a: 1, b: 2 }, + argTypes: { b: { name: 'b', removeIf: 'a' } }, + }, + { id, title }, + { render: renderMock } + ); + + firstStory.unboundStoryFn({ + args: firstStory.initialArgs, + hooks: new HooksContext(), + ...firstStory, + } as any); + expect(renderMock).toHaveBeenCalledWith( + { a: 1 }, + expect.objectContaining({ args: { a: 1 }, allArgs: { a: 1, b: 2 } }) + ); + }); + it('adds argsByTarget to context', () => { const renderMock = jest.fn(); const firstStory = prepareStory( diff --git a/lib/store/src/csf/prepareStory.ts b/lib/store/src/csf/prepareStory.ts index b1f64b309982..ca49ca969ca2 100644 --- a/lib/store/src/csf/prepareStory.ts +++ b/lib/store/src/csf/prepareStory.ts @@ -12,6 +12,7 @@ import type { AnyFramework, StrictArgTypes, } from '@storybook/csf'; +import { includeConditionalArg } from '@storybook/csf'; import type { NormalizedComponentAnnotations, @@ -165,12 +166,18 @@ export function prepareStory( acc[key] = mapping && val in mapping ? mapping[val] : val; return acc; }, {} as Args); - const mappedContext = { ...context, args: mappedArgs }; + const includedArgs = Object.entries(mappedArgs).reduce((acc, [key, val]) => { + const argType = context.argTypes[key] || {}; + if (includeConditionalArg(argType, mappedArgs)) acc[key] = val; + return acc; + }, {} as Args); + + const includedContext = { ...context, args: includedArgs }; const { passArgsFirst: renderTimePassArgsFirst = true } = context.parameters; return renderTimePassArgsFirst - ? (render as ArgsStoryFn)(mappedContext.args, mappedContext) - : (render as LegacyStoryFn)(mappedContext); + ? (render as ArgsStoryFn)(includedContext.args, includedContext) + : (render as LegacyStoryFn)(includedContext); }; const decoratedStoryFn = applyHooks(applyDecorators)(undecoratedStoryFn, decorators); const unboundStoryFn = (context: StoryContext) => { diff --git a/yarn.lock b/yarn.lock index e5c24e26170d..9c7c65f291fa 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6202,7 +6202,7 @@ __metadata: "@storybook/client-logger": 6.5.0-alpha.49 "@storybook/components": 6.5.0-alpha.49 "@storybook/core-events": 6.5.0-alpha.49 - "@storybook/csf": 0.0.2--canary.87bc651.0 + "@storybook/csf": 0.0.2--canary.507502b.0 "@storybook/theming": 6.5.0-alpha.49 "@testing-library/react": ^11.2.2 "@types/webpack-env": ^1.16.0 @@ -6233,7 +6233,7 @@ __metadata: "@storybook/api": 6.5.0-alpha.49 "@storybook/components": 6.5.0-alpha.49 "@storybook/core-events": 6.5.0-alpha.49 - "@storybook/csf": 0.0.2--canary.87bc651.0 + "@storybook/csf": 0.0.2--canary.507502b.0 "@storybook/theming": 6.5.0-alpha.49 "@types/lodash": ^4.14.167 "@types/webpack-env": ^1.16.0 @@ -6269,7 +6269,7 @@ __metadata: "@storybook/client-logger": 6.5.0-alpha.49 "@storybook/components": 6.5.0-alpha.49 "@storybook/core-events": 6.5.0-alpha.49 - "@storybook/csf": 0.0.2--canary.87bc651.0 + "@storybook/csf": 0.0.2--canary.507502b.0 "@storybook/theming": 6.5.0-alpha.49 "@types/webpack-env": ^1.16.0 core-js: ^3.8.2 @@ -6298,7 +6298,7 @@ __metadata: "@storybook/client-logger": 6.5.0-alpha.49 "@storybook/components": 6.5.0-alpha.49 "@storybook/core-common": 6.5.0-alpha.49 - "@storybook/csf": 0.0.2--canary.87bc651.0 + "@storybook/csf": 0.0.2--canary.507502b.0 "@storybook/node-logger": 6.5.0-alpha.49 "@storybook/store": 6.5.0-alpha.49 "@storybook/theming": 6.5.0-alpha.49 @@ -6330,7 +6330,7 @@ __metadata: "@storybook/components": 6.5.0-alpha.49 "@storybook/core-common": 6.5.0-alpha.49 "@storybook/core-events": 6.5.0-alpha.49 - "@storybook/csf": 0.0.2--canary.87bc651.0 + "@storybook/csf": 0.0.2--canary.507502b.0 "@storybook/docs-tools": 6.5.0-alpha.49 "@storybook/mdx1-csf": canary "@storybook/mdx2-csf": canary @@ -6461,7 +6461,7 @@ __metadata: "@storybook/components": 6.5.0-alpha.49 "@storybook/core-common": 6.5.0-alpha.49 "@storybook/core-events": 6.5.0-alpha.49 - "@storybook/csf": 0.0.2--canary.87bc651.0 + "@storybook/csf": 0.0.2--canary.507502b.0 "@storybook/instrumenter": 6.5.0-alpha.49 "@storybook/jest": ^0.0.5 "@storybook/testing-library": ^0.0.7 @@ -6516,7 +6516,7 @@ __metadata: "@storybook/addons": 6.5.0-alpha.49 "@storybook/client-logger": 6.5.0-alpha.49 "@storybook/core-events": 6.5.0-alpha.49 - "@storybook/csf": 0.0.2--canary.87bc651.0 + "@storybook/csf": 0.0.2--canary.507502b.0 "@storybook/router": 6.5.0-alpha.49 "@types/qs": ^6.9.5 "@types/webpack-env": ^1.16.0 @@ -6546,7 +6546,7 @@ __metadata: "@storybook/client-logger": 6.5.0-alpha.49 "@storybook/components": 6.5.0-alpha.49 "@storybook/core-events": 6.5.0-alpha.49 - "@storybook/csf": 0.0.2--canary.87bc651.0 + "@storybook/csf": 0.0.2--canary.507502b.0 "@types/webpack-env": ^1.16.0 core-js: ^3.8.2 global: ^4.4.0 @@ -6570,7 +6570,7 @@ __metadata: "@storybook/client-logger": 6.5.0-alpha.49 "@storybook/components": 6.5.0-alpha.49 "@storybook/core-events": 6.5.0-alpha.49 - "@storybook/csf": 0.0.2--canary.87bc651.0 + "@storybook/csf": 0.0.2--canary.507502b.0 "@types/webpack-env": ^1.16.0 core-js: ^3.8.2 global: ^4.4.0 @@ -6605,7 +6605,7 @@ __metadata: resolution: "@storybook/addon-storyshots-puppeteer@workspace:addons/storyshots/storyshots-puppeteer" dependencies: "@axe-core/puppeteer": ^4.2.0 - "@storybook/csf": 0.0.2--canary.87bc651.0 + "@storybook/csf": 0.0.2--canary.507502b.0 "@storybook/node-logger": 6.5.0-alpha.49 "@types/jest-image-snapshot": ^4.1.3 "@types/puppeteer": ^5.4.0 @@ -6636,7 +6636,7 @@ __metadata: "@storybook/core": 6.5.0-alpha.49 "@storybook/core-client": 6.5.0-alpha.49 "@storybook/core-common": 6.5.0-alpha.49 - "@storybook/csf": 0.0.2--canary.87bc651.0 + "@storybook/csf": 0.0.2--canary.507502b.0 "@storybook/react": 6.5.0-alpha.49 "@storybook/vue": 6.5.0-alpha.49 "@storybook/vue3": 6.5.0-alpha.49 @@ -6798,7 +6798,7 @@ __metadata: "@storybook/channels": 6.5.0-alpha.49 "@storybook/client-logger": 6.5.0-alpha.49 "@storybook/core-events": 6.5.0-alpha.49 - "@storybook/csf": 0.0.2--canary.87bc651.0 + "@storybook/csf": 0.0.2--canary.507502b.0 "@storybook/router": 6.5.0-alpha.49 "@storybook/theming": 6.5.0-alpha.49 "@types/webpack-env": ^1.16.0 @@ -6855,7 +6855,7 @@ __metadata: "@storybook/core": 6.5.0-alpha.49 "@storybook/core-common": 6.5.0-alpha.49 "@storybook/core-events": 6.5.0-alpha.49 - "@storybook/csf": 0.0.2--canary.87bc651.0 + "@storybook/csf": 0.0.2--canary.507502b.0 "@storybook/docs-tools": 6.5.0-alpha.49 "@storybook/node-logger": 6.5.0-alpha.49 "@storybook/semver": ^7.3.2 @@ -6929,7 +6929,7 @@ __metadata: "@storybook/channels": 6.5.0-alpha.49 "@storybook/client-logger": 6.5.0-alpha.49 "@storybook/core-events": 6.5.0-alpha.49 - "@storybook/csf": 0.0.2--canary.87bc651.0 + "@storybook/csf": 0.0.2--canary.507502b.0 "@storybook/router": 6.5.0-alpha.49 "@storybook/semver": ^7.3.2 "@storybook/theming": 6.5.0-alpha.49 @@ -7214,7 +7214,7 @@ __metadata: "@storybook/channels": 6.5.0-alpha.49 "@storybook/client-logger": 6.5.0-alpha.49 "@storybook/core-events": 6.5.0-alpha.49 - "@storybook/csf": 0.0.2--canary.87bc651.0 + "@storybook/csf": 0.0.2--canary.507502b.0 "@storybook/store": 6.5.0-alpha.49 "@types/qs": ^6.9.5 "@types/webpack-env": ^1.16.0 @@ -7260,7 +7260,7 @@ __metadata: dependencies: "@babel/types": ^7.12.11 "@mdx-js/mdx": ^1.6.22 - "@storybook/csf": 0.0.2--canary.87bc651.0 + "@storybook/csf": 0.0.2--canary.507502b.0 "@storybook/csf-tools": 6.5.0-alpha.49 "@storybook/node-logger": 6.5.0-alpha.49 core-js: ^3.8.2 @@ -7282,7 +7282,7 @@ __metadata: dependencies: "@popperjs/core": ^2.6.0 "@storybook/client-logger": 6.5.0-alpha.49 - "@storybook/csf": 0.0.2--canary.87bc651.0 + "@storybook/csf": 0.0.2--canary.507502b.0 "@storybook/theming": 6.5.0-alpha.49 "@types/color-convert": ^2.0.0 "@types/overlayscrollbars": ^1.12.0 @@ -7324,7 +7324,7 @@ __metadata: "@storybook/client-api": 6.5.0-alpha.49 "@storybook/client-logger": 6.5.0-alpha.49 "@storybook/core-events": 6.5.0-alpha.49 - "@storybook/csf": 0.0.2--canary.87bc651.0 + "@storybook/csf": 0.0.2--canary.507502b.0 "@storybook/preview-web": 6.5.0-alpha.49 "@storybook/store": 6.5.0-alpha.49 "@storybook/ui": 6.5.0-alpha.49 @@ -7444,7 +7444,7 @@ __metadata: "@storybook/core-client": 6.5.0-alpha.49 "@storybook/core-common": 6.5.0-alpha.49 "@storybook/core-events": 6.5.0-alpha.49 - "@storybook/csf": 0.0.2--canary.87bc651.0 + "@storybook/csf": 0.0.2--canary.507502b.0 "@storybook/csf-tools": 6.5.0-alpha.49 "@storybook/manager-webpack4": 6.5.0-alpha.49 "@storybook/node-logger": 6.5.0-alpha.49 @@ -7532,7 +7532,7 @@ __metadata: "@babel/preset-env": ^7.12.11 "@babel/traverse": ^7.12.11 "@babel/types": ^7.12.11 - "@storybook/csf": 0.0.2--canary.87bc651.0 + "@storybook/csf": 0.0.2--canary.507502b.0 "@storybook/mdx1-csf": canary "@storybook/mdx2-csf": canary "@types/fs-extra": ^9.0.6 @@ -7550,6 +7550,15 @@ __metadata: languageName: unknown linkType: soft +"@storybook/csf@npm:0.0.2--canary.507502b.0": + version: 0.0.2--canary.507502b.0 + resolution: "@storybook/csf@npm:0.0.2--canary.507502b.0" + dependencies: + lodash: ^4.17.15 + checksum: 1d48f1d320a6dbbdc7932943ffdba51783a16d86ea870a7c1b4438978fc8a6bd0600399cf748bcdf295f7fcd8ac80b62c6aebc1c68aac9ffe30ba8f3fbbf8f13 + languageName: node + linkType: hard + "@storybook/csf@npm:0.0.2--canary.87bc651.0": version: 0.0.2--canary.87bc651.0 resolution: "@storybook/csf@npm:0.0.2--canary.87bc651.0" @@ -7596,7 +7605,7 @@ __metadata: resolution: "@storybook/docs-tools@workspace:lib/docs-tools" dependencies: "@babel/core": ^7.12.10 - "@storybook/csf": 0.0.2--canary.87bc651.0 + "@storybook/csf": 0.0.2--canary.507502b.0 "@storybook/store": 6.5.0-alpha.49 core-js: ^3.8.2 doctrine: ^3.0.0 @@ -7718,7 +7727,7 @@ __metadata: "@storybook/addons": 6.5.0-alpha.49 "@storybook/core": 6.5.0-alpha.49 "@storybook/core-common": 6.5.0-alpha.49 - "@storybook/csf": 0.0.2--canary.87bc651.0 + "@storybook/csf": 0.0.2--canary.507502b.0 "@storybook/docs-tools": 6.5.0-alpha.49 "@storybook/preview-web": 6.5.0-alpha.49 "@storybook/store": 6.5.0-alpha.49 @@ -7986,7 +7995,7 @@ __metadata: "@storybook/addons": 6.5.0-alpha.49 "@storybook/core": 6.5.0-alpha.49 "@storybook/core-common": 6.5.0-alpha.49 - "@storybook/csf": 0.0.2--canary.87bc651.0 + "@storybook/csf": 0.0.2--canary.507502b.0 "@storybook/store": 6.5.0-alpha.49 "@types/node": ^14.14.20 || ^16.0.0 "@types/webpack-env": ^1.16.0 @@ -8048,7 +8057,7 @@ __metadata: "@storybook/channel-postmessage": 6.5.0-alpha.49 "@storybook/client-logger": 6.5.0-alpha.49 "@storybook/core-events": 6.5.0-alpha.49 - "@storybook/csf": 0.0.2--canary.87bc651.0 + "@storybook/csf": 0.0.2--canary.507502b.0 "@storybook/store": 6.5.0-alpha.49 ansi-to-html: ^0.6.11 core-js: ^3.8.2 @@ -8095,7 +8104,7 @@ __metadata: "@storybook/client-logger": 6.5.0-alpha.49 "@storybook/core": 6.5.0-alpha.49 "@storybook/core-common": 6.5.0-alpha.49 - "@storybook/csf": 0.0.2--canary.87bc651.0 + "@storybook/csf": 0.0.2--canary.507502b.0 "@storybook/docs-tools": 6.5.0-alpha.49 "@storybook/node-logger": 6.5.0-alpha.49 "@storybook/react-docgen-typescript-plugin": 1.0.2-canary.6.9d540b91e815f8fc2f8829189deb00553559ff63.0 @@ -8463,7 +8472,7 @@ __metadata: "@storybook/client-api": 6.5.0-alpha.49 "@storybook/core": 6.5.0-alpha.49 "@storybook/core-common": 6.5.0-alpha.49 - "@storybook/csf": 0.0.2--canary.87bc651.0 + "@storybook/csf": 0.0.2--canary.507502b.0 "@storybook/node-logger": 6.5.0-alpha.49 "@storybook/preview-web": 6.5.0-alpha.49 "@storybook/store": 6.5.0-alpha.49 @@ -8493,7 +8502,7 @@ __metadata: dependencies: "@storybook/addons": 6.5.0-alpha.49 "@storybook/client-logger": 6.5.0-alpha.49 - "@storybook/csf": 0.0.2--canary.87bc651.0 + "@storybook/csf": 0.0.2--canary.507502b.0 core-js: ^3.8.2 estraverse: ^5.2.0 global: ^4.4.0 @@ -8514,7 +8523,7 @@ __metadata: "@storybook/addons": 6.5.0-alpha.49 "@storybook/client-logger": 6.5.0-alpha.49 "@storybook/core-events": 6.5.0-alpha.49 - "@storybook/csf": 0.0.2--canary.87bc651.0 + "@storybook/csf": 0.0.2--canary.507502b.0 core-js: ^3.8.2 fast-deep-equal: ^3.1.3 global: ^4.4.0 @@ -8540,7 +8549,7 @@ __metadata: "@storybook/client-logger": 6.5.0-alpha.49 "@storybook/core": 6.5.0-alpha.49 "@storybook/core-common": 6.5.0-alpha.49 - "@storybook/csf": 0.0.2--canary.87bc651.0 + "@storybook/csf": 0.0.2--canary.507502b.0 "@storybook/docs-tools": 6.5.0-alpha.49 "@storybook/node-logger": 6.5.0-alpha.49 "@storybook/store": 6.5.0-alpha.49 @@ -8678,7 +8687,7 @@ __metadata: "@storybook/addons": 6.5.0-alpha.49 "@storybook/core": 6.5.0-alpha.49 "@storybook/core-common": 6.5.0-alpha.49 - "@storybook/csf": 0.0.2--canary.87bc651.0 + "@storybook/csf": 0.0.2--canary.507502b.0 "@storybook/docs-tools": 6.5.0-alpha.49 "@storybook/store": 6.5.0-alpha.49 "@types/node": ^14.14.20 || ^16.0.0 @@ -8717,7 +8726,7 @@ __metadata: "@storybook/client-logger": 6.5.0-alpha.49 "@storybook/core": 6.5.0-alpha.49 "@storybook/core-common": 6.5.0-alpha.49 - "@storybook/csf": 0.0.2--canary.87bc651.0 + "@storybook/csf": 0.0.2--canary.507502b.0 "@storybook/docs-tools": 6.5.0-alpha.49 "@storybook/store": 6.5.0-alpha.49 "@types/node": ^14.14.20 || ^16.0.0 @@ -8763,7 +8772,7 @@ __metadata: "@storybook/client-logger": 6.5.0-alpha.49 "@storybook/core": 6.5.0-alpha.49 "@storybook/core-common": 6.5.0-alpha.49 - "@storybook/csf": 0.0.2--canary.87bc651.0 + "@storybook/csf": 0.0.2--canary.507502b.0 "@storybook/docs-tools": 6.5.0-alpha.49 "@storybook/preview-web": 6.5.0-alpha.49 "@storybook/store": 6.5.0-alpha.49