mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 21:41:21 +08:00
Merge branch 'next' into tech/change-sbextract-cli-command-to-use-better-api
This commit is contained in:
commit
22edca834e
30
CHANGELOG.md
30
CHANGELOG.md
@ -1,3 +1,33 @@
|
||||
## 6.0.0-rc.12 (July 20, 2020)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- Addon-controls: Fix undefined args handling ([#11619](https://github.com/storybookjs/storybook/pull/11619))
|
||||
- UI: Fix the color of the menu separator ([#11564](https://github.com/storybookjs/storybook/pull/11564))
|
||||
- Storyshots: Don't show `configure` deprecation warning ([#11611](https://github.com/storybookjs/storybook/pull/11611))
|
||||
- Addon-docs: Fix Props `components` input ([#11612](https://github.com/storybookjs/storybook/pull/11612))
|
||||
|
||||
### Maintenance
|
||||
|
||||
- Examples: Remove deprecated hierarchy separators ([#11615](https://github.com/storybookjs/storybook/pull/11615))
|
||||
- Hoist CSF `.story` annotations ([#11617](https://github.com/storybookjs/storybook/pull/11617))
|
||||
|
||||
## 6.0.0-rc.11 (July 19, 2020)
|
||||
|
||||
### Features
|
||||
|
||||
- Addon-controls: Expose `presetColors` for the color control ([#11606](https://github.com/storybookjs/storybook/pull/11606))
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- Addon-docs: Fix Vue defaultValue in props table ([#11603](https://github.com/storybookjs/storybook/pull/11603))
|
||||
|
||||
## 6.0.0-rc.10 (July 18, 2020)
|
||||
|
||||
### Features
|
||||
|
||||
- Addon-docs: Automatic source selection based on story type ([#11601](https://github.com/storybookjs/storybook/pull/11601))
|
||||
|
||||
## 6.0.0-rc.9 (July 17, 2020)
|
||||
|
||||
### Bug Fixes
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-a11y",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "a11y addon for storybook",
|
||||
"keywords": [
|
||||
"a11y",
|
||||
@ -33,14 +33,14 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/api": "6.0.0-rc.9",
|
||||
"@storybook/channels": "6.0.0-rc.9",
|
||||
"@storybook/client-api": "6.0.0-rc.9",
|
||||
"@storybook/client-logger": "6.0.0-rc.9",
|
||||
"@storybook/components": "6.0.0-rc.9",
|
||||
"@storybook/core-events": "6.0.0-rc.9",
|
||||
"@storybook/theming": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/api": "6.0.0-rc.12",
|
||||
"@storybook/channels": "6.0.0-rc.12",
|
||||
"@storybook/client-api": "6.0.0-rc.12",
|
||||
"@storybook/client-logger": "6.0.0-rc.12",
|
||||
"@storybook/components": "6.0.0-rc.12",
|
||||
"@storybook/core-events": "6.0.0-rc.12",
|
||||
"@storybook/theming": "6.0.0-rc.12",
|
||||
"axe-core": "^3.5.2",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
@ -63,7 +63,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9",
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-actions",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "Action Logger addon for storybook",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -28,12 +28,12 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/api": "6.0.0-rc.9",
|
||||
"@storybook/client-api": "6.0.0-rc.9",
|
||||
"@storybook/components": "6.0.0-rc.9",
|
||||
"@storybook/core-events": "6.0.0-rc.9",
|
||||
"@storybook/theming": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/api": "6.0.0-rc.12",
|
||||
"@storybook/client-api": "6.0.0-rc.12",
|
||||
"@storybook/components": "6.0.0-rc.12",
|
||||
"@storybook/core-events": "6.0.0-rc.12",
|
||||
"@storybook/theming": "6.0.0-rc.12",
|
||||
"core-js": "^3.0.1",
|
||||
"fast-deep-equal": "^3.1.1",
|
||||
"global": "^4.3.2",
|
||||
@ -58,7 +58,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9",
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-backgrounds",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "A storybook addon to show different backgrounds for your preview",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -32,12 +32,12 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/api": "6.0.0-rc.9",
|
||||
"@storybook/client-logger": "6.0.0-rc.9",
|
||||
"@storybook/components": "6.0.0-rc.9",
|
||||
"@storybook/core-events": "6.0.0-rc.9",
|
||||
"@storybook/theming": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/api": "6.0.0-rc.12",
|
||||
"@storybook/client-logger": "6.0.0-rc.12",
|
||||
"@storybook/components": "6.0.0-rc.12",
|
||||
"@storybook/core-events": "6.0.0-rc.12",
|
||||
"@storybook/theming": "6.0.0-rc.12",
|
||||
"core-js": "^3.0.1",
|
||||
"memoizerific": "^1.11.3",
|
||||
"react": "^16.8.3",
|
||||
@ -52,7 +52,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9",
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -41,6 +41,7 @@ Controls replaces [Storybook Knobs](https://github.com/storybookjs/storybook/tre
|
||||
- [How do I migrate from addon-knobs?](#how-do-i-migrate-from-addon-knobs)
|
||||
- [My controls aren't being auto-generated. What should I do?](#my-controls-arent-being-auto-generated-what-should-i-do)
|
||||
- [How can I disable controls for certain fields on a particular story?](#how-can-i-disable-controls-for-certain-fields-on-a-particular-story)
|
||||
- [How do controls work with MDX?](#how-do-controls-work-with-mdx)
|
||||
|
||||
## Installation
|
||||
|
||||
@ -326,7 +327,7 @@ Here is the full list of available controls:
|
||||
| | select | select dropdown input | options |
|
||||
| | multi-select | multi-select dropdown input | options |
|
||||
| **string** | text | simple text input | - |
|
||||
| | color | color picker input that assumes strings are color values | - |
|
||||
| | color | color picker input that assumes strings are color values | presetColors |
|
||||
| | date | date picker input | - |
|
||||
|
||||
Example customizing a control for an `enum` data type (defaults to `select` control type):
|
||||
@ -357,6 +358,20 @@ export default {
|
||||
};
|
||||
```
|
||||
|
||||
Example customizing a `color` data type:
|
||||
|
||||
```js
|
||||
export default {
|
||||
title: 'Button',
|
||||
component: Button,
|
||||
argTypes: {
|
||||
backgroundColor: {
|
||||
control: { type: 'color', presetColors: ['#FFF', '#000', '#AAA'] },
|
||||
},
|
||||
},
|
||||
};
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Controls supports the following configuration parameters, either [globally or on a per-story basis](https://storybook.js.org/docs/basics/writing-stories/#parameters):
|
||||
@ -532,3 +547,41 @@ CustomControls.argTypes = {
|
||||
```
|
||||
|
||||
Like [story parameters](https://github.com/storybookjs/storybook/blob/next/docs/src/pages/basics/writing-stories/index.md#parameters), `args` and `argTypes` annotations are hierarchically merged, so story-level annotations overwrite component-level annotations.
|
||||
|
||||
### How do controls work with MDX?
|
||||
|
||||
MDX compiles to component story format (CSF) under the hood, so there's a direct mapping for every example above using the `args` and `argTypes` props.
|
||||
|
||||
Consider this example in CSF:
|
||||
|
||||
```js
|
||||
import { Button } from './Button';
|
||||
export default {
|
||||
title: 'Button',
|
||||
component: Button,
|
||||
argTypes: {
|
||||
background: { control: 'color' },
|
||||
},
|
||||
};
|
||||
|
||||
const Template = (args) => <Button {...args} />;
|
||||
export const Basic = Template.bind({});
|
||||
Basic.args = { label: 'hello', background: '#ff0' };
|
||||
```
|
||||
|
||||
Here's the MDX equivalent:
|
||||
|
||||
```jsx
|
||||
import { Meta, Story } from '@storybook/addon-docs/blocks';
|
||||
import { Button } from './Button';
|
||||
|
||||
<Meta title="Button" component={Button} argTypes={{ background: { control: 'color' } }} />;
|
||||
|
||||
export const Template = (args) => <Button {...args} />;
|
||||
|
||||
<Story name="Basic" args={{ label: 'hello', background: '#ff0' }}>
|
||||
{Template.bind({})}
|
||||
</Story>;
|
||||
```
|
||||
|
||||
For more info, see a full [Controls example in MDX for Vue](https://raw.githubusercontent.com/storybookjs/storybook/next/examples/vue-kitchen-sink/src/stories/addon-controls.stories.mdx).
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-controls",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "Controls for component properties",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -30,12 +30,12 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/api": "6.0.0-rc.9",
|
||||
"@storybook/client-api": "6.0.0-rc.9",
|
||||
"@storybook/components": "6.0.0-rc.9",
|
||||
"@storybook/node-logger": "6.0.0-rc.9",
|
||||
"@storybook/theming": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/api": "6.0.0-rc.12",
|
||||
"@storybook/client-api": "6.0.0-rc.12",
|
||||
"@storybook/components": "6.0.0-rc.12",
|
||||
"@storybook/node-logger": "6.0.0-rc.12",
|
||||
"@storybook/theming": "6.0.0-rc.12",
|
||||
"core-js": "^3.0.1",
|
||||
"ts-dedent": "^1.1.1"
|
||||
},
|
||||
@ -46,5 +46,5 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9"
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-cssresources",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "A storybook addon to switch between css resources at runtime for your story",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -32,11 +32,11 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/api": "6.0.0-rc.9",
|
||||
"@storybook/components": "6.0.0-rc.9",
|
||||
"@storybook/core-events": "6.0.0-rc.9",
|
||||
"@storybook/theming": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/api": "6.0.0-rc.12",
|
||||
"@storybook/components": "6.0.0-rc.12",
|
||||
"@storybook/core-events": "6.0.0-rc.12",
|
||||
"@storybook/theming": "6.0.0-rc.12",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"react": "^16.8.3",
|
||||
@ -55,7 +55,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9",
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-design-assets",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "Design asset preview for storybook",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -34,12 +34,12 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/api": "6.0.0-rc.9",
|
||||
"@storybook/client-logger": "6.0.0-rc.9",
|
||||
"@storybook/components": "6.0.0-rc.9",
|
||||
"@storybook/core-events": "6.0.0-rc.9",
|
||||
"@storybook/theming": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/api": "6.0.0-rc.12",
|
||||
"@storybook/client-logger": "6.0.0-rc.12",
|
||||
"@storybook/components": "6.0.0-rc.12",
|
||||
"@storybook/core-events": "6.0.0-rc.12",
|
||||
"@storybook/theming": "6.0.0-rc.12",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"react": "^16.8.3",
|
||||
@ -53,7 +53,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9",
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-docs",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "Superior documentation for your components",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -47,18 +47,18 @@
|
||||
"@mdx-js/loader": "^1.5.1",
|
||||
"@mdx-js/mdx": "^1.5.1",
|
||||
"@mdx-js/react": "^1.5.1",
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/api": "6.0.0-rc.9",
|
||||
"@storybook/client-api": "6.0.0-rc.9",
|
||||
"@storybook/client-logger": "6.0.0-rc.9",
|
||||
"@storybook/components": "6.0.0-rc.9",
|
||||
"@storybook/core": "6.0.0-rc.9",
|
||||
"@storybook/core-events": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/api": "6.0.0-rc.12",
|
||||
"@storybook/client-api": "6.0.0-rc.12",
|
||||
"@storybook/client-logger": "6.0.0-rc.12",
|
||||
"@storybook/components": "6.0.0-rc.12",
|
||||
"@storybook/core": "6.0.0-rc.12",
|
||||
"@storybook/core-events": "6.0.0-rc.12",
|
||||
"@storybook/csf": "0.0.1",
|
||||
"@storybook/node-logger": "6.0.0-rc.9",
|
||||
"@storybook/postinstall": "6.0.0-rc.9",
|
||||
"@storybook/source-loader": "6.0.0-rc.9",
|
||||
"@storybook/theming": "6.0.0-rc.9",
|
||||
"@storybook/node-logger": "6.0.0-rc.12",
|
||||
"@storybook/postinstall": "6.0.0-rc.12",
|
||||
"@storybook/source-loader": "6.0.0-rc.12",
|
||||
"@storybook/theming": "6.0.0-rc.12",
|
||||
"acorn": "^7.1.0",
|
||||
"acorn-jsx": "^5.1.0",
|
||||
"acorn-walk": "^7.0.0",
|
||||
@ -85,8 +85,8 @@
|
||||
"@babel/core": "^7.9.6",
|
||||
"@emotion/core": "^10.0.20",
|
||||
"@emotion/styled": "^10.0.17",
|
||||
"@storybook/react": "6.0.0-rc.9",
|
||||
"@storybook/web-components": "6.0.0-rc.9",
|
||||
"@storybook/react": "6.0.0-rc.12",
|
||||
"@storybook/web-components": "6.0.0-rc.12",
|
||||
"@types/cross-spawn": "^6.0.1",
|
||||
"@types/doctrine": "^0.0.3",
|
||||
"@types/enzyme": "^3.10.3",
|
||||
@ -138,7 +138,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9",
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -230,6 +230,10 @@ export const Props: FC<PropsProps> = (props) => {
|
||||
return <ArgsTable {...mainProps} />;
|
||||
}
|
||||
|
||||
if (components) {
|
||||
return <ComponentsTable {...(props as ComponentsProps)} components={components} />;
|
||||
}
|
||||
|
||||
const mainLabel = getComponentName(main);
|
||||
return (
|
||||
<ComponentsTable
|
||||
|
@ -4,12 +4,38 @@ import {
|
||||
SourceError,
|
||||
SourceProps as PureSourceProps,
|
||||
} from '@storybook/components';
|
||||
import { StoryId } from '@storybook/api';
|
||||
import { logger } from '@storybook/client-logger';
|
||||
|
||||
import { DocsContext, DocsContextProps } from './DocsContext';
|
||||
import { SourceContext, SourceContextProps } from './SourceContainer';
|
||||
import { CURRENT_SELECTION } from './types';
|
||||
|
||||
import { enhanceSource } from './enhanceSource';
|
||||
|
||||
enum SourceType {
|
||||
/**
|
||||
* AUTO is the default
|
||||
*
|
||||
* Use the CODE logic if:
|
||||
* - the user has set a custom source snippet in `docs.source.code` story parameter
|
||||
* - the story is not an args-based story
|
||||
*
|
||||
* Use the DYNAMIC rendered snippet if the story is an args story
|
||||
*/
|
||||
AUTO = 'auto',
|
||||
|
||||
/**
|
||||
* Render the code extracted by source-loader
|
||||
*/
|
||||
CODE = 'code',
|
||||
|
||||
/**
|
||||
* Render dynamically-rendered source snippet from the story's virtual DOM (currently React only)
|
||||
*/
|
||||
DYNAMIC = 'dynamic',
|
||||
}
|
||||
|
||||
interface CommonProps {
|
||||
language?: string;
|
||||
dark?: boolean;
|
||||
@ -32,13 +58,53 @@ type NoneProps = CommonProps;
|
||||
|
||||
type SourceProps = SingleSourceProps | MultiSourceProps | CodeProps | NoneProps;
|
||||
|
||||
const getSnippet = (
|
||||
storyId: StoryId,
|
||||
sourceContext: SourceContextProps,
|
||||
docsContext: DocsContextProps
|
||||
): string => {
|
||||
const { sources } = sourceContext;
|
||||
const { storyStore } = docsContext;
|
||||
|
||||
const snippet = sources && sources[storyId];
|
||||
const data = storyStore?.fromId(storyId);
|
||||
|
||||
if (!data) {
|
||||
// Fallback if we can't get the story data for this story
|
||||
logger.warn(`Unable to find source for story ID '${storyId}'`);
|
||||
return snippet || '';
|
||||
}
|
||||
|
||||
const { parameters } = data;
|
||||
// eslint-disable-next-line no-underscore-dangle
|
||||
const isArgsStory = parameters.__isArgsStory;
|
||||
const type = parameters.docs?.source?.type || SourceType.AUTO;
|
||||
|
||||
// if user has hard-coded the snippet, that takes precedence
|
||||
const userCode = parameters.docs?.source?.code;
|
||||
if (userCode) return userCode;
|
||||
|
||||
// if user has explicitly set this as dynamic, use snippet
|
||||
if (type === SourceType.DYNAMIC) {
|
||||
return snippet || '';
|
||||
}
|
||||
|
||||
// if this is an args story and there's a snippet
|
||||
if (type === SourceType.AUTO && snippet && isArgsStory) {
|
||||
return snippet;
|
||||
}
|
||||
|
||||
// otherwise, use the source code logic
|
||||
const enhanced = enhanceSource(data) || data.parameters;
|
||||
return enhanced?.docs?.source?.code || '';
|
||||
};
|
||||
|
||||
export const getSourceProps = (
|
||||
props: SourceProps,
|
||||
docsContext: DocsContextProps,
|
||||
sourceContext: SourceContextProps
|
||||
): PureSourceProps => {
|
||||
const { id: currentId, storyStore } = docsContext;
|
||||
const { sources } = sourceContext;
|
||||
const { id: currentId } = docsContext;
|
||||
|
||||
const codeProps = props as CodeProps;
|
||||
const singleProps = props as SingleSourceProps;
|
||||
@ -50,16 +116,7 @@ export const getSourceProps = (
|
||||
singleProps.id === CURRENT_SELECTION || !singleProps.id ? currentId : singleProps.id;
|
||||
const targetIds = multiProps.ids || [targetId];
|
||||
source = targetIds
|
||||
.map((sourceId) => {
|
||||
const snippet = sources && sources[sourceId];
|
||||
if (snippet) return snippet;
|
||||
if (storyStore) {
|
||||
const data = storyStore.fromId(sourceId);
|
||||
const enhanced = data && (enhanceSource(data) || data.parameters);
|
||||
return enhanced?.docs?.source?.code || '';
|
||||
}
|
||||
return '';
|
||||
})
|
||||
.map((storyId) => getSnippet(storyId, sourceContext, docsContext))
|
||||
.join('\n\n');
|
||||
}
|
||||
return source
|
||||
|
@ -32,7 +32,7 @@ export const extractArgTypes: ArgTypesExtractor = (component) => {
|
||||
table: {
|
||||
type,
|
||||
jsDocTags,
|
||||
defaultValue,
|
||||
defaultValue: defaultSummary,
|
||||
category: section,
|
||||
},
|
||||
};
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-essentials",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "Curated addons to bring out the best of Storybook",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -28,14 +28,14 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addon-actions": "6.0.0-rc.9",
|
||||
"@storybook/addon-backgrounds": "6.0.0-rc.9",
|
||||
"@storybook/addon-controls": "6.0.0-rc.9",
|
||||
"@storybook/addon-docs": "6.0.0-rc.9",
|
||||
"@storybook/addon-viewport": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/api": "6.0.0-rc.9",
|
||||
"@storybook/node-logger": "6.0.0-rc.9",
|
||||
"@storybook/addon-actions": "6.0.0-rc.12",
|
||||
"@storybook/addon-backgrounds": "6.0.0-rc.12",
|
||||
"@storybook/addon-controls": "6.0.0-rc.12",
|
||||
"@storybook/addon-docs": "6.0.0-rc.12",
|
||||
"@storybook/addon-viewport": "6.0.0-rc.12",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/api": "6.0.0-rc.12",
|
||||
"@storybook/node-logger": "6.0.0-rc.12",
|
||||
"core-js": "^3.0.1",
|
||||
"regenerator-runtime": "^0.13.3",
|
||||
"ts-dedent": "^1.1.1"
|
||||
@ -53,7 +53,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9",
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-events",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "Add events to your Storybook stories.",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -31,11 +31,11 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/api": "6.0.0-rc.9",
|
||||
"@storybook/client-api": "6.0.0-rc.9",
|
||||
"@storybook/core-events": "6.0.0-rc.9",
|
||||
"@storybook/theming": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/api": "6.0.0-rc.12",
|
||||
"@storybook/client-api": "6.0.0-rc.12",
|
||||
"@storybook/core-events": "6.0.0-rc.12",
|
||||
"@storybook/theming": "6.0.0-rc.12",
|
||||
"core-js": "^3.0.1",
|
||||
"format-json": "^1.0.3",
|
||||
"lodash": "^4.17.15",
|
||||
@ -55,7 +55,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9",
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-google-analytics",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "Storybook addon for google analytics",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -20,8 +20,8 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/core-events": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/core-events": "6.0.0-rc.12",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"react-ga": "^2.5.7",
|
||||
@ -35,5 +35,5 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9"
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-graphql",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "Storybook addon to display the GraphiQL IDE",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -31,8 +31,8 @@
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.9.0",
|
||||
"@babel/plugin-transform-classes": "^7.9.2",
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/api": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/api": "6.0.0-rc.12",
|
||||
"@types/webpack": "^4.41.9",
|
||||
"babel-loader": "^8.0.6",
|
||||
"core-js": "^3.0.1",
|
||||
@ -50,7 +50,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9",
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-jest",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "React storybook addon that show component jest report",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -35,11 +35,11 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/api": "6.0.0-rc.9",
|
||||
"@storybook/components": "6.0.0-rc.9",
|
||||
"@storybook/core-events": "6.0.0-rc.9",
|
||||
"@storybook/theming": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/api": "6.0.0-rc.12",
|
||||
"@storybook/components": "6.0.0-rc.12",
|
||||
"@storybook/core-events": "6.0.0-rc.12",
|
||||
"@storybook/theming": "6.0.0-rc.12",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"react": "^16.8.3",
|
||||
@ -57,7 +57,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9",
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-knobs",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "Storybook Addon Prop Editor Component",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -29,13 +29,13 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/api": "6.0.0-rc.9",
|
||||
"@storybook/channels": "6.0.0-rc.9",
|
||||
"@storybook/client-api": "6.0.0-rc.9",
|
||||
"@storybook/components": "6.0.0-rc.9",
|
||||
"@storybook/core-events": "6.0.0-rc.9",
|
||||
"@storybook/theming": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/api": "6.0.0-rc.12",
|
||||
"@storybook/channels": "6.0.0-rc.12",
|
||||
"@storybook/client-api": "6.0.0-rc.12",
|
||||
"@storybook/components": "6.0.0-rc.12",
|
||||
"@storybook/core-events": "6.0.0-rc.12",
|
||||
"@storybook/theming": "6.0.0-rc.12",
|
||||
"@types/react-color": "^3.0.1",
|
||||
"copy-to-clipboard": "^3.0.8",
|
||||
"core-js": "^3.0.1",
|
||||
@ -65,7 +65,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9",
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-links",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "Story Links addon for storybook",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -29,11 +29,11 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/client-logger": "6.0.0-rc.9",
|
||||
"@storybook/core-events": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/client-logger": "6.0.0-rc.12",
|
||||
"@storybook/core-events": "6.0.0-rc.12",
|
||||
"@storybook/csf": "0.0.1",
|
||||
"@storybook/router": "6.0.0-rc.9",
|
||||
"@storybook/router": "6.0.0-rc.12",
|
||||
"@types/qs": "^6.9.0",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
@ -53,7 +53,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9",
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-queryparams",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "parameter addon for storybook",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -30,12 +30,12 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/api": "6.0.0-rc.9",
|
||||
"@storybook/client-logger": "6.0.0-rc.9",
|
||||
"@storybook/components": "6.0.0-rc.9",
|
||||
"@storybook/core-events": "6.0.0-rc.9",
|
||||
"@storybook/theming": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/api": "6.0.0-rc.12",
|
||||
"@storybook/client-logger": "6.0.0-rc.12",
|
||||
"@storybook/components": "6.0.0-rc.12",
|
||||
"@storybook/core-events": "6.0.0-rc.12",
|
||||
"@storybook/theming": "6.0.0-rc.12",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"qs": "^6.6.0",
|
||||
@ -52,7 +52,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9",
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-storyshots",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "StoryShots is a Jest Snapshot Testing Addon for Storybook.",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -33,9 +33,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@jest/transform": "^26.0.0",
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/client-api": "6.0.0-rc.9",
|
||||
"@storybook/core": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/client-api": "6.0.0-rc.12",
|
||||
"@storybook/core": "6.0.0-rc.12",
|
||||
"@types/glob": "^7.1.1",
|
||||
"@types/jest": "^25.1.1",
|
||||
"@types/jest-specific-snapshot": "^0.5.3",
|
||||
@ -50,8 +50,8 @@
|
||||
"ts-dedent": "^1.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-docs": "6.0.0-rc.9",
|
||||
"@storybook/react": "6.0.0-rc.9",
|
||||
"@storybook/addon-docs": "6.0.0-rc.12",
|
||||
"@storybook/react": "6.0.0-rc.12",
|
||||
"babel-loader": "^8.0.6",
|
||||
"enzyme": "^3.11.0",
|
||||
"enzyme-to-json": "^3.4.1",
|
||||
@ -64,7 +64,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9",
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -6,7 +6,7 @@ import { SupportedFramework } from './SupportedFramework';
|
||||
export type RenderTree = (story: any, context?: any, options?: any) => any;
|
||||
|
||||
export interface ClientApi extends ClientStoryApi<unknown> {
|
||||
configure(loader: Loadable, module: NodeModule | false): void;
|
||||
configure(loader: Loadable, module: NodeModule | false, showDeprecationWarning?: boolean): void;
|
||||
forceReRender(): void;
|
||||
clearDecorators: ClientApiThing['clearDecorators'];
|
||||
getStorybook: ClientApiThing['getStorybook'];
|
||||
|
@ -86,7 +86,7 @@ function configure(
|
||||
});
|
||||
|
||||
if (stories && stories.length) {
|
||||
storybook.configure(stories, false);
|
||||
storybook.configure(stories, false, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-storyshots-puppeteer",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "Image snapshots addition to StoryShots based on puppeteer",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -30,7 +30,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/csf": "0.0.1",
|
||||
"@storybook/node-logger": "6.0.0-rc.9",
|
||||
"@storybook/node-logger": "6.0.0-rc.12",
|
||||
"@types/jest-image-snapshot": "^2.8.0",
|
||||
"@wordpress/jest-puppeteer-axe": "^1.5.0",
|
||||
"core-js": "^3.0.1",
|
||||
@ -42,7 +42,7 @@
|
||||
"@types/puppeteer": "^2.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@storybook/addon-storyshots": "6.0.0-rc.9",
|
||||
"@storybook/addon-storyshots": "6.0.0-rc.12",
|
||||
"puppeteer": "^2.0.0 || ^3.0.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
@ -53,7 +53,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9",
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-storysource",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "Stories addon for storybook",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -29,13 +29,13 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/api": "6.0.0-rc.9",
|
||||
"@storybook/client-logger": "6.0.0-rc.9",
|
||||
"@storybook/components": "6.0.0-rc.9",
|
||||
"@storybook/router": "6.0.0-rc.9",
|
||||
"@storybook/source-loader": "6.0.0-rc.9",
|
||||
"@storybook/theming": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/api": "6.0.0-rc.12",
|
||||
"@storybook/client-logger": "6.0.0-rc.12",
|
||||
"@storybook/components": "6.0.0-rc.12",
|
||||
"@storybook/router": "6.0.0-rc.12",
|
||||
"@storybook/source-loader": "6.0.0-rc.12",
|
||||
"@storybook/theming": "6.0.0-rc.12",
|
||||
"core-js": "^3.0.1",
|
||||
"estraverse": "^4.2.0",
|
||||
"loader-utils": "^2.0.0",
|
||||
@ -57,5 +57,5 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9"
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-toolbars",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "Storybook toolbars addon",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -30,10 +30,10 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/api": "6.0.0-rc.9",
|
||||
"@storybook/client-api": "6.0.0-rc.9",
|
||||
"@storybook/components": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/api": "6.0.0-rc.12",
|
||||
"@storybook/client-api": "6.0.0-rc.12",
|
||||
"@storybook/components": "6.0.0-rc.12",
|
||||
"core-js": "^3.0.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
@ -43,5 +43,5 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9"
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-viewport",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "Storybook addon to change the viewport size to mobile",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -29,12 +29,12 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/api": "6.0.0-rc.9",
|
||||
"@storybook/client-logger": "6.0.0-rc.9",
|
||||
"@storybook/components": "6.0.0-rc.9",
|
||||
"@storybook/core-events": "6.0.0-rc.9",
|
||||
"@storybook/theming": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/api": "6.0.0-rc.12",
|
||||
"@storybook/client-logger": "6.0.0-rc.12",
|
||||
"@storybook/components": "6.0.0-rc.12",
|
||||
"@storybook/core-events": "6.0.0-rc.12",
|
||||
"@storybook/theming": "6.0.0-rc.12",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"memoizerific": "^1.11.3",
|
||||
@ -48,7 +48,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9",
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/angular",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "Storybook for Angular: Develop Angular Components in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -34,9 +34,9 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/core": "6.0.0-rc.9",
|
||||
"@storybook/node-logger": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/core": "6.0.0-rc.12",
|
||||
"@storybook/node-logger": "6.0.0-rc.12",
|
||||
"@types/webpack-env": "^1.15.2",
|
||||
"autoprefixer": "^9.7.6",
|
||||
"core-js": "^3.0.1",
|
||||
@ -75,7 +75,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9",
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/aurelia",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "Storybook for Aurelia: Develop Aurelia Components in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -26,10 +26,10 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addon-knobs": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/core": "6.0.0-rc.9",
|
||||
"@storybook/node-logger": "6.0.0-rc.9",
|
||||
"@storybook/addon-knobs": "6.0.0-rc.12",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/core": "6.0.0-rc.12",
|
||||
"@storybook/node-logger": "6.0.0-rc.12",
|
||||
"fork-ts-checker-webpack-plugin": "^4.0.3",
|
||||
"global": "^4.3.2",
|
||||
"ts-loader": "^6.0.1",
|
||||
@ -55,5 +55,5 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9"
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/ember",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "Storybook for Ember: Develop Ember Component in isolation with Hot Reloading.",
|
||||
"homepage": "https://github.com/storybookjs/storybook/tree/master/app/ember",
|
||||
"bugs": {
|
||||
@ -32,7 +32,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@ember/test-helpers": "^1.7.0",
|
||||
"@storybook/core": "6.0.0-rc.9",
|
||||
"@storybook/core": "6.0.0-rc.12",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"regenerator-runtime": "^0.13.3",
|
||||
@ -52,5 +52,5 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9"
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/html",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "Storybook for HTML: View HTML snippets in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -34,8 +34,8 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/core": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/core": "6.0.0-rc.12",
|
||||
"@types/webpack-env": "^1.15.2",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
@ -54,7 +54,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9",
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/marionette",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "Storybook for Marionette: Develop Marionette.js component in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -25,7 +25,7 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/core": "6.0.0-rc.9",
|
||||
"@storybook/core": "6.0.0-rc.12",
|
||||
"common-tags": "^1.8.0",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
@ -49,5 +49,5 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9"
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/marko",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "Storybook for Marko: Develop Marko Component in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -34,8 +34,8 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@marko/webpack": "^2.1.0",
|
||||
"@storybook/client-logger": "6.0.0-rc.9",
|
||||
"@storybook/core": "6.0.0-rc.9",
|
||||
"@storybook/client-logger": "6.0.0-rc.12",
|
||||
"@storybook/core": "6.0.0-rc.12",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"regenerator-runtime": "^0.13.3",
|
||||
@ -54,5 +54,5 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9"
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/mithril",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "Storybook for Mithril: Develop Mithril Component in isolation.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -36,8 +36,8 @@
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.9.6",
|
||||
"@babel/plugin-transform-react-jsx": "^7.3.0",
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/core": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/core": "6.0.0-rc.12",
|
||||
"@types/mithril": "^2.0.0",
|
||||
"@types/webpack-env": "^1.15.2",
|
||||
"core-js": "^3.0.1",
|
||||
@ -60,7 +60,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9",
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/preact",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "Storybook for Preact: Develop Preact Component in isolation.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -35,8 +35,8 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/plugin-transform-react-jsx": "^7.3.0",
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/core": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/core": "6.0.0-rc.12",
|
||||
"@types/webpack-env": "^1.15.2",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
@ -58,7 +58,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9",
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/rax",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "Storybook for Rax: Develop Rax Component in isolation.",
|
||||
"keywords": [
|
||||
"rax",
|
||||
@ -34,7 +34,7 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/core": "6.0.0-rc.9",
|
||||
"@storybook/core": "6.0.0-rc.12",
|
||||
"babel-preset-rax": "^1.0.0-beta.0",
|
||||
"core-js": "^3.0.1",
|
||||
"driver-dom": "^2.0.0",
|
||||
@ -54,5 +54,5 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9"
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/react",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "Storybook for React: Develop React Component in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -36,9 +36,9 @@
|
||||
"dependencies": {
|
||||
"@babel/preset-flow": "^7.0.0",
|
||||
"@babel/preset-react": "^7.0.0",
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/core": "6.0.0-rc.9",
|
||||
"@storybook/node-logger": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/core": "6.0.0-rc.12",
|
||||
"@storybook/node-logger": "6.0.0-rc.12",
|
||||
"@storybook/semver": "^7.3.2",
|
||||
"@svgr/webpack": "^5.4.0",
|
||||
"@types/webpack-env": "^1.15.2",
|
||||
@ -56,7 +56,7 @@
|
||||
"webpack": "^4.43.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/client-api": "6.0.0-rc.9",
|
||||
"@storybook/client-api": "6.0.0-rc.12",
|
||||
"@types/node": "^14.0.10",
|
||||
"@types/webpack": "^4.41.12"
|
||||
},
|
||||
@ -71,7 +71,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9",
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/riot",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "Storybook for riot.js: View riot snippets in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -34,7 +34,7 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/core": "6.0.0-rc.9",
|
||||
"@storybook/core": "6.0.0-rc.12",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"raw-loader": "^4.0.1",
|
||||
@ -63,5 +63,5 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9"
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/server",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "Storybook for Server: View HTML snippets from a server in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -34,9 +34,9 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/core": "6.0.0-rc.9",
|
||||
"@storybook/node-logger": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/core": "6.0.0-rc.12",
|
||||
"@storybook/node-logger": "6.0.0-rc.12",
|
||||
"@types/webpack-env": "^1.15.2",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
@ -53,5 +53,5 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9"
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/svelte",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "Storybook for Svelte: Develop Svelte Component in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -34,8 +34,8 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/core": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/core": "6.0.0-rc.12",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"regenerator-runtime": "^0.13.3",
|
||||
@ -59,7 +59,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9",
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/vue",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "Storybook for Vue: Develop Vue Component in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -34,8 +34,8 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/core": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/core": "6.0.0-rc.12",
|
||||
"@types/webpack-env": "^1.15.2",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
@ -68,7 +68,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9",
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/web-components",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "Storybook for web-components: View web components snippets in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"lit-html",
|
||||
@ -38,8 +38,8 @@
|
||||
"dependencies": {
|
||||
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
|
||||
"@babel/plugin-syntax-import-meta": "^7.2.0",
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/core": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/core": "6.0.0-rc.12",
|
||||
"@types/webpack-env": "^1.15.2",
|
||||
"babel-plugin-bundled-import-meta": "^0.3.1",
|
||||
"core-js": "^3.0.1",
|
||||
@ -63,7 +63,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9",
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -4,7 +4,7 @@ describe('addon-viewport', () => {
|
||||
});
|
||||
|
||||
it('should have viewport button in the toolbar', () => {
|
||||
cy.navigateToStory('button', 'Text');
|
||||
cy.navigateToStory('example-button', 'Primary');
|
||||
|
||||
// Click on viewport button and select small mobile
|
||||
cy.get('[title="Change the size of the preview"]').click();
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-decorator",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "decorator addon for storybook",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -24,15 +24,15 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/client-api": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/client-api": "6.0.0-rc.12",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.4.0"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9",
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-parameter",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "parameter addon for storybook",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -24,12 +24,12 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/api": "6.0.0-rc.9",
|
||||
"@storybook/client-logger": "6.0.0-rc.9",
|
||||
"@storybook/components": "6.0.0-rc.9",
|
||||
"@storybook/core-events": "6.0.0-rc.9",
|
||||
"@storybook/theming": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/api": "6.0.0-rc.12",
|
||||
"@storybook/client-logger": "6.0.0-rc.12",
|
||||
"@storybook/components": "6.0.0-rc.12",
|
||||
"@storybook/core-events": "6.0.0-rc.12",
|
||||
"@storybook/theming": "6.0.0-rc.12",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"react": "^16.8.3",
|
||||
@ -38,7 +38,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9",
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-preview-wrapper",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "preview wrapper addon for storybook",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -24,13 +24,13 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"react": "^16.8.3"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9",
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-roundtrip",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "roundtrip addon for storybook",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -24,13 +24,13 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/api": "6.0.0-rc.9",
|
||||
"@storybook/client-api": "6.0.0-rc.9",
|
||||
"@storybook/client-logger": "6.0.0-rc.9",
|
||||
"@storybook/components": "6.0.0-rc.9",
|
||||
"@storybook/core-events": "6.0.0-rc.9",
|
||||
"@storybook/theming": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/api": "6.0.0-rc.12",
|
||||
"@storybook/client-api": "6.0.0-rc.12",
|
||||
"@storybook/client-logger": "6.0.0-rc.12",
|
||||
"@storybook/components": "6.0.0-rc.12",
|
||||
"@storybook/core-events": "6.0.0-rc.12",
|
||||
"@storybook/theming": "6.0.0-rc.12",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"react": "^16.8.3",
|
||||
@ -39,7 +39,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9",
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1 +1 @@
|
||||
{"version":"6.0.0-rc.9","info":{"plain":"### Bug Fixes\n\n- Addon-controls: Fix no-args warning if argTypes are used ([#11598](https://github.com/storybookjs/storybook/pull/11598))\n- Core: Pass denormalized stories to the sort function ([#11572](https://github.com/storybookjs/storybook/pull/11572))\n- Addon-docs: Fix Vue inline rendering with Args and decorators ([#11594](https://github.com/storybookjs/storybook/pull/11594))\n- Composition: Fix missing refId on getData calls ([#11541](https://github.com/storybookjs/storybook/pull/11541))\n- UI: Fix scrollbars in flexbar ([#11579](https://github.com/storybookjs/storybook/pull/11579))"}}
|
||||
{"version":"6.0.0-rc.12","info":{"plain":"### Bug Fixes\n\n- Addon-controls: Fix undefined args handling ([#11619](https://github.com/storybookjs/storybook/pull/11619))\n- UI: Fix the color of the menu separator ([#11564](https://github.com/storybookjs/storybook/pull/11564))\n- Storyshots: Don't show `configure` deprecation warning ([#11611](https://github.com/storybookjs/storybook/pull/11611))\n- Addon-docs: Fix Props `components` input ([#11612](https://github.com/storybookjs/storybook/pull/11612))\n\n### Maintenance\n\n- Examples: Remove deprecated hierarchy separators ([#11615](https://github.com/storybookjs/storybook/pull/11615))\n- Hoist CSF `.story` annotations ([#11617](https://github.com/storybookjs/storybook/pull/11617))"}}
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "angular-cli",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"private": true,
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
@ -37,19 +37,19 @@
|
||||
"@angular/cli": "^9.1.0",
|
||||
"@angular/compiler-cli": "^9.1.0",
|
||||
"@compodoc/compodoc": "^1.1.11",
|
||||
"@storybook/addon-a11y": "6.0.0-rc.9",
|
||||
"@storybook/addon-actions": "6.0.0-rc.9",
|
||||
"@storybook/addon-backgrounds": "6.0.0-rc.9",
|
||||
"@storybook/addon-controls": "6.0.0-rc.9",
|
||||
"@storybook/addon-docs": "6.0.0-rc.9",
|
||||
"@storybook/addon-jest": "6.0.0-rc.9",
|
||||
"@storybook/addon-knobs": "6.0.0-rc.9",
|
||||
"@storybook/addon-links": "6.0.0-rc.9",
|
||||
"@storybook/addon-storyshots": "6.0.0-rc.9",
|
||||
"@storybook/addon-storysource": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/angular": "6.0.0-rc.9",
|
||||
"@storybook/source-loader": "6.0.0-rc.9",
|
||||
"@storybook/addon-a11y": "6.0.0-rc.12",
|
||||
"@storybook/addon-actions": "6.0.0-rc.12",
|
||||
"@storybook/addon-backgrounds": "6.0.0-rc.12",
|
||||
"@storybook/addon-controls": "6.0.0-rc.12",
|
||||
"@storybook/addon-docs": "6.0.0-rc.12",
|
||||
"@storybook/addon-jest": "6.0.0-rc.12",
|
||||
"@storybook/addon-knobs": "6.0.0-rc.12",
|
||||
"@storybook/addon-links": "6.0.0-rc.12",
|
||||
"@storybook/addon-storyshots": "6.0.0-rc.12",
|
||||
"@storybook/addon-storysource": "6.0.0-rc.12",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/angular": "6.0.0-rc.12",
|
||||
"@storybook/source-loader": "6.0.0-rc.12",
|
||||
"@types/core-js": "^2.5.0",
|
||||
"@types/jest": "^25.1.1",
|
||||
"@types/node": "^14.0.10",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "aurelia-kitchen-sink",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"private": true,
|
||||
"description": "An Aurelia client application.",
|
||||
"repository": {
|
||||
@ -22,18 +22,18 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@aurelia/webpack-loader": "dev",
|
||||
"@storybook/addon-a11y": "6.0.0-rc.9",
|
||||
"@storybook/addon-actions": "6.0.0-rc.9",
|
||||
"@storybook/addon-backgrounds": "6.0.0-rc.9",
|
||||
"@storybook/addon-docs": "6.0.0-rc.9",
|
||||
"@storybook/addon-jest": "6.0.0-rc.9",
|
||||
"@storybook/addon-knobs": "6.0.0-rc.9",
|
||||
"@storybook/addon-links": "6.0.0-rc.9",
|
||||
"@storybook/addon-storyshots": "6.0.0-rc.9",
|
||||
"@storybook/addon-storysource": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/aurelia": "6.0.0-rc.9",
|
||||
"@storybook/source-loader": "6.0.0-rc.9",
|
||||
"@storybook/addon-a11y": "6.0.0-rc.12",
|
||||
"@storybook/addon-actions": "6.0.0-rc.12",
|
||||
"@storybook/addon-backgrounds": "6.0.0-rc.12",
|
||||
"@storybook/addon-docs": "6.0.0-rc.12",
|
||||
"@storybook/addon-jest": "6.0.0-rc.12",
|
||||
"@storybook/addon-knobs": "6.0.0-rc.12",
|
||||
"@storybook/addon-links": "6.0.0-rc.12",
|
||||
"@storybook/addon-storyshots": "6.0.0-rc.12",
|
||||
"@storybook/addon-storysource": "6.0.0-rc.12",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/aurelia": "6.0.0-rc.12",
|
||||
"@storybook/source-loader": "6.0.0-rc.12",
|
||||
"@types/node": "^14.0.10",
|
||||
"css-loader": "^3.0.0",
|
||||
"file-loader": "^4.2.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cra-kitchen-sink",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "react-scripts build",
|
||||
@ -18,19 +18,19 @@
|
||||
"react-lifecycles-compat": "^3.0.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-a11y": "6.0.0-rc.9",
|
||||
"@storybook/addon-actions": "6.0.0-rc.9",
|
||||
"@storybook/addon-backgrounds": "6.0.0-rc.9",
|
||||
"@storybook/addon-docs": "6.0.0-rc.9",
|
||||
"@storybook/addon-events": "6.0.0-rc.9",
|
||||
"@storybook/addon-jest": "6.0.0-rc.9",
|
||||
"@storybook/addon-knobs": "6.0.0-rc.9",
|
||||
"@storybook/addon-links": "6.0.0-rc.9",
|
||||
"@storybook/addon-storyshots": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/client-logger": "6.0.0-rc.9",
|
||||
"@storybook/react": "6.0.0-rc.9",
|
||||
"@storybook/theming": "6.0.0-rc.9",
|
||||
"@storybook/addon-a11y": "6.0.0-rc.12",
|
||||
"@storybook/addon-actions": "6.0.0-rc.12",
|
||||
"@storybook/addon-backgrounds": "6.0.0-rc.12",
|
||||
"@storybook/addon-docs": "6.0.0-rc.12",
|
||||
"@storybook/addon-events": "6.0.0-rc.12",
|
||||
"@storybook/addon-jest": "6.0.0-rc.12",
|
||||
"@storybook/addon-knobs": "6.0.0-rc.12",
|
||||
"@storybook/addon-links": "6.0.0-rc.12",
|
||||
"@storybook/addon-storyshots": "6.0.0-rc.12",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/client-logger": "6.0.0-rc.12",
|
||||
"@storybook/react": "6.0.0-rc.12",
|
||||
"@storybook/theming": "6.0.0-rc.12",
|
||||
"react-scripts": "^3.0.1"
|
||||
},
|
||||
"storybook": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cra-react15",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "react-scripts build",
|
||||
@ -18,11 +18,11 @@
|
||||
"react-scripts": "3.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-actions": "6.0.0-rc.9",
|
||||
"@storybook/addon-links": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/react": "6.0.0-rc.9",
|
||||
"@storybook/theming": "6.0.0-rc.9",
|
||||
"@storybook/addon-actions": "6.0.0-rc.12",
|
||||
"@storybook/addon-links": "6.0.0-rc.12",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/react": "6.0.0-rc.12",
|
||||
"@storybook/theming": "6.0.0-rc.12",
|
||||
"babel-core": "6",
|
||||
"babel-runtime": "6"
|
||||
},
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cra-ts-essentials",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "react-scripts build",
|
||||
@ -34,10 +34,10 @@
|
||||
"typescript": "3.8.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-essentials": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/addon-essentials": "6.0.0-rc.12",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/preset-create-react-app": "^3.1.4",
|
||||
"@storybook/react": "6.0.0-rc.9"
|
||||
"@storybook/react": "6.0.0-rc.12"
|
||||
},
|
||||
"storybook": {
|
||||
"chromatic": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cra-ts-kitchen-sink",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "react-scripts build",
|
||||
@ -34,14 +34,14 @@
|
||||
"typescript": "3.8.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-a11y": "6.0.0-rc.9",
|
||||
"@storybook/addon-actions": "6.0.0-rc.9",
|
||||
"@storybook/addon-docs": "6.0.0-rc.9",
|
||||
"@storybook/addon-knobs": "6.0.0-rc.9",
|
||||
"@storybook/addon-links": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/addon-a11y": "6.0.0-rc.12",
|
||||
"@storybook/addon-actions": "6.0.0-rc.12",
|
||||
"@storybook/addon-docs": "6.0.0-rc.12",
|
||||
"@storybook/addon-knobs": "6.0.0-rc.12",
|
||||
"@storybook/addon-links": "6.0.0-rc.12",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/preset-create-react-app": "^3.1.4",
|
||||
"@storybook/react": "6.0.0-rc.9",
|
||||
"@storybook/react": "6.0.0-rc.12",
|
||||
"@types/enzyme": "^3.9.0",
|
||||
"enzyme": "^3.9.0",
|
||||
"enzyme-adapter-react-16": "^1.9.1",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/example-devkits",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build-storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true build-storybook -c ./",
|
||||
@ -8,18 +8,18 @@
|
||||
"storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true start-storybook -p 9011 -c ./ --no-dll"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-decorator": "6.0.0-rc.9",
|
||||
"@storybook/addon-parameter": "6.0.0-rc.9",
|
||||
"@storybook/addon-preview-wrapper": "6.0.0-rc.9",
|
||||
"@storybook/addon-roundtrip": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/api": "6.0.0-rc.9",
|
||||
"@storybook/client-api": "6.0.0-rc.9",
|
||||
"@storybook/components": "6.0.0-rc.9",
|
||||
"@storybook/core-events": "6.0.0-rc.9",
|
||||
"@storybook/node-logger": "6.0.0-rc.9",
|
||||
"@storybook/react": "6.0.0-rc.9",
|
||||
"@storybook/theming": "6.0.0-rc.9",
|
||||
"@storybook/addon-decorator": "6.0.0-rc.12",
|
||||
"@storybook/addon-parameter": "6.0.0-rc.12",
|
||||
"@storybook/addon-preview-wrapper": "6.0.0-rc.12",
|
||||
"@storybook/addon-roundtrip": "6.0.0-rc.12",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/api": "6.0.0-rc.12",
|
||||
"@storybook/client-api": "6.0.0-rc.12",
|
||||
"@storybook/components": "6.0.0-rc.12",
|
||||
"@storybook/core-events": "6.0.0-rc.12",
|
||||
"@storybook/node-logger": "6.0.0-rc.12",
|
||||
"@storybook/react": "6.0.0-rc.12",
|
||||
"@storybook/theming": "6.0.0-rc.12",
|
||||
"cors": "^2.8.5",
|
||||
"cross-env": "^7.0.0",
|
||||
"enzyme-to-json": "^3.4.1",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ember-example",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "ember build --output-path ember-output",
|
||||
@ -16,19 +16,19 @@
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.9.6",
|
||||
"@ember/optional-features": "^1.3.0",
|
||||
"@storybook/addon-a11y": "6.0.0-rc.9",
|
||||
"@storybook/addon-actions": "6.0.0-rc.9",
|
||||
"@storybook/addon-backgrounds": "6.0.0-rc.9",
|
||||
"@storybook/addon-controls": "6.0.0-rc.9",
|
||||
"@storybook/addon-docs": "6.0.0-rc.9",
|
||||
"@storybook/addon-knobs": "6.0.0-rc.9",
|
||||
"@storybook/addon-links": "6.0.0-rc.9",
|
||||
"@storybook/addon-storysource": "6.0.0-rc.9",
|
||||
"@storybook/addon-viewport": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/ember": "6.0.0-rc.9",
|
||||
"@storybook/addon-a11y": "6.0.0-rc.12",
|
||||
"@storybook/addon-actions": "6.0.0-rc.12",
|
||||
"@storybook/addon-backgrounds": "6.0.0-rc.12",
|
||||
"@storybook/addon-controls": "6.0.0-rc.12",
|
||||
"@storybook/addon-docs": "6.0.0-rc.12",
|
||||
"@storybook/addon-knobs": "6.0.0-rc.12",
|
||||
"@storybook/addon-links": "6.0.0-rc.12",
|
||||
"@storybook/addon-storysource": "6.0.0-rc.12",
|
||||
"@storybook/addon-viewport": "6.0.0-rc.12",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/ember": "6.0.0-rc.12",
|
||||
"@storybook/ember-cli-storybook": "^0.2.1",
|
||||
"@storybook/source-loader": "6.0.0-rc.9",
|
||||
"@storybook/source-loader": "6.0.0-rc.12",
|
||||
"babel-loader": "^8",
|
||||
"broccoli-asset-rev": "^3.0.0",
|
||||
"cross-env": "^7.0.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "html-kitchen-sink",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"private": true,
|
||||
"description": "",
|
||||
"keywords": [],
|
||||
@ -13,24 +13,24 @@
|
||||
"storybook": "start-storybook -p 9006"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-a11y": "6.0.0-rc.9",
|
||||
"@storybook/addon-actions": "6.0.0-rc.9",
|
||||
"@storybook/addon-backgrounds": "6.0.0-rc.9",
|
||||
"@storybook/addon-controls": "6.0.0-rc.9",
|
||||
"@storybook/addon-docs": "6.0.0-rc.9",
|
||||
"@storybook/addon-events": "6.0.0-rc.9",
|
||||
"@storybook/addon-jest": "6.0.0-rc.9",
|
||||
"@storybook/addon-knobs": "6.0.0-rc.9",
|
||||
"@storybook/addon-links": "6.0.0-rc.9",
|
||||
"@storybook/addon-storyshots": "6.0.0-rc.9",
|
||||
"@storybook/addon-storysource": "6.0.0-rc.9",
|
||||
"@storybook/addon-viewport": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/client-api": "6.0.0-rc.9",
|
||||
"@storybook/core": "6.0.0-rc.9",
|
||||
"@storybook/core-events": "6.0.0-rc.9",
|
||||
"@storybook/html": "6.0.0-rc.9",
|
||||
"@storybook/source-loader": "6.0.0-rc.9",
|
||||
"@storybook/addon-a11y": "6.0.0-rc.12",
|
||||
"@storybook/addon-actions": "6.0.0-rc.12",
|
||||
"@storybook/addon-backgrounds": "6.0.0-rc.12",
|
||||
"@storybook/addon-controls": "6.0.0-rc.12",
|
||||
"@storybook/addon-docs": "6.0.0-rc.12",
|
||||
"@storybook/addon-events": "6.0.0-rc.12",
|
||||
"@storybook/addon-jest": "6.0.0-rc.12",
|
||||
"@storybook/addon-knobs": "6.0.0-rc.12",
|
||||
"@storybook/addon-links": "6.0.0-rc.12",
|
||||
"@storybook/addon-storyshots": "6.0.0-rc.12",
|
||||
"@storybook/addon-storysource": "6.0.0-rc.12",
|
||||
"@storybook/addon-viewport": "6.0.0-rc.12",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/client-api": "6.0.0-rc.12",
|
||||
"@storybook/core": "6.0.0-rc.12",
|
||||
"@storybook/core-events": "6.0.0-rc.12",
|
||||
"@storybook/html": "6.0.0-rc.12",
|
||||
"@storybook/source-loader": "6.0.0-rc.12",
|
||||
"eventemitter3": "^4.0.0",
|
||||
"format-json": "^1.0.3",
|
||||
"global": "^4.3.2",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "marko-cli",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"private": true,
|
||||
"description": "Demo of how to build an app using marko-starter",
|
||||
"repository": {
|
||||
@ -23,13 +23,13 @@
|
||||
"marko-starter": "^2.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-a11y": "6.0.0-rc.9",
|
||||
"@storybook/addon-actions": "6.0.0-rc.9",
|
||||
"@storybook/addon-knobs": "6.0.0-rc.9",
|
||||
"@storybook/addon-storysource": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/marko": "6.0.0-rc.9",
|
||||
"@storybook/source-loader": "6.0.0-rc.9",
|
||||
"@storybook/addon-a11y": "6.0.0-rc.12",
|
||||
"@storybook/addon-actions": "6.0.0-rc.12",
|
||||
"@storybook/addon-knobs": "6.0.0-rc.12",
|
||||
"@storybook/addon-storysource": "6.0.0-rc.12",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/marko": "6.0.0-rc.12",
|
||||
"@storybook/source-loader": "6.0.0-rc.12",
|
||||
"prettier": "^2.0.5",
|
||||
"webpack": "^4.33.0"
|
||||
},
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "mithril-example",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build-storybook": "build-storybook",
|
||||
@ -10,17 +10,17 @@
|
||||
"mithril": "^1.1.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-a11y": "6.0.0-rc.9",
|
||||
"@storybook/addon-actions": "6.0.0-rc.9",
|
||||
"@storybook/addon-backgrounds": "6.0.0-rc.9",
|
||||
"@storybook/addon-knobs": "6.0.0-rc.9",
|
||||
"@storybook/addon-links": "6.0.0-rc.9",
|
||||
"@storybook/addon-storyshots": "6.0.0-rc.9",
|
||||
"@storybook/addon-storysource": "6.0.0-rc.9",
|
||||
"@storybook/addon-viewport": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/mithril": "6.0.0-rc.9",
|
||||
"@storybook/source-loader": "6.0.0-rc.9",
|
||||
"@storybook/addon-a11y": "6.0.0-rc.12",
|
||||
"@storybook/addon-actions": "6.0.0-rc.12",
|
||||
"@storybook/addon-backgrounds": "6.0.0-rc.12",
|
||||
"@storybook/addon-knobs": "6.0.0-rc.12",
|
||||
"@storybook/addon-links": "6.0.0-rc.12",
|
||||
"@storybook/addon-storyshots": "6.0.0-rc.12",
|
||||
"@storybook/addon-storysource": "6.0.0-rc.12",
|
||||
"@storybook/addon-viewport": "6.0.0-rc.12",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/mithril": "6.0.0-rc.12",
|
||||
"@storybook/source-loader": "6.0.0-rc.12",
|
||||
"webpack": "^4.33.0"
|
||||
},
|
||||
"storybook": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "official-storybook",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build-storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true build-storybook -c ./",
|
||||
@ -14,33 +14,33 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@packtracker/webpack-plugin": "^2.0.1",
|
||||
"@storybook/addon-a11y": "6.0.0-rc.9",
|
||||
"@storybook/addon-actions": "6.0.0-rc.9",
|
||||
"@storybook/addon-backgrounds": "6.0.0-rc.9",
|
||||
"@storybook/addon-controls": "6.0.0-rc.9",
|
||||
"@storybook/addon-cssresources": "6.0.0-rc.9",
|
||||
"@storybook/addon-design-assets": "6.0.0-rc.9",
|
||||
"@storybook/addon-docs": "6.0.0-rc.9",
|
||||
"@storybook/addon-events": "6.0.0-rc.9",
|
||||
"@storybook/addon-graphql": "6.0.0-rc.9",
|
||||
"@storybook/addon-jest": "6.0.0-rc.9",
|
||||
"@storybook/addon-knobs": "6.0.0-rc.9",
|
||||
"@storybook/addon-links": "6.0.0-rc.9",
|
||||
"@storybook/addon-queryparams": "6.0.0-rc.9",
|
||||
"@storybook/addon-storyshots": "6.0.0-rc.9",
|
||||
"@storybook/addon-storyshots-puppeteer": "6.0.0-rc.9",
|
||||
"@storybook/addon-storysource": "6.0.0-rc.9",
|
||||
"@storybook/addon-toolbars": "6.0.0-rc.9",
|
||||
"@storybook/addon-viewport": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/cli": "6.0.0-rc.9",
|
||||
"@storybook/components": "6.0.0-rc.9",
|
||||
"@storybook/core-events": "6.0.0-rc.9",
|
||||
"@storybook/addon-a11y": "6.0.0-rc.12",
|
||||
"@storybook/addon-actions": "6.0.0-rc.12",
|
||||
"@storybook/addon-backgrounds": "6.0.0-rc.12",
|
||||
"@storybook/addon-controls": "6.0.0-rc.12",
|
||||
"@storybook/addon-cssresources": "6.0.0-rc.12",
|
||||
"@storybook/addon-design-assets": "6.0.0-rc.12",
|
||||
"@storybook/addon-docs": "6.0.0-rc.12",
|
||||
"@storybook/addon-events": "6.0.0-rc.12",
|
||||
"@storybook/addon-graphql": "6.0.0-rc.12",
|
||||
"@storybook/addon-jest": "6.0.0-rc.12",
|
||||
"@storybook/addon-knobs": "6.0.0-rc.12",
|
||||
"@storybook/addon-links": "6.0.0-rc.12",
|
||||
"@storybook/addon-queryparams": "6.0.0-rc.12",
|
||||
"@storybook/addon-storyshots": "6.0.0-rc.12",
|
||||
"@storybook/addon-storyshots-puppeteer": "6.0.0-rc.12",
|
||||
"@storybook/addon-storysource": "6.0.0-rc.12",
|
||||
"@storybook/addon-toolbars": "6.0.0-rc.12",
|
||||
"@storybook/addon-viewport": "6.0.0-rc.12",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/cli": "6.0.0-rc.12",
|
||||
"@storybook/components": "6.0.0-rc.12",
|
||||
"@storybook/core-events": "6.0.0-rc.12",
|
||||
"@storybook/design-system": "^5.1.0",
|
||||
"@storybook/node-logger": "6.0.0-rc.9",
|
||||
"@storybook/react": "6.0.0-rc.9",
|
||||
"@storybook/source-loader": "6.0.0-rc.9",
|
||||
"@storybook/theming": "6.0.0-rc.9",
|
||||
"@storybook/node-logger": "6.0.0-rc.12",
|
||||
"@storybook/react": "6.0.0-rc.12",
|
||||
"@storybook/source-loader": "6.0.0-rc.12",
|
||||
"@storybook/theming": "6.0.0-rc.12",
|
||||
"chromatic": "^5.0.0",
|
||||
"cors": "^2.8.5",
|
||||
"cross-env": "^7.0.0",
|
||||
|
@ -2,7 +2,7 @@ import React from 'react';
|
||||
import { DocgenButton } from '../../components/DocgenButton';
|
||||
|
||||
export default {
|
||||
title: 'Addons|Docs/ForwardRef',
|
||||
title: 'Addons/Docs/ForwardRef',
|
||||
component: ForwardedButton,
|
||||
parameters: { chromatic: { disable: true } },
|
||||
};
|
||||
|
@ -4,7 +4,7 @@ import { DocgenButton } from '../../components/DocgenButton';
|
||||
const ButtonWithMemo = React.memo((props) => <DocgenButton {...props} />);
|
||||
|
||||
export default {
|
||||
title: 'Addons|Docs/ButtonWithMemo',
|
||||
title: 'Addons/Docs/ButtonWithMemo',
|
||||
component: ButtonWithMemo,
|
||||
parameters: { chromatic: { disable: true } },
|
||||
};
|
||||
|
@ -0,0 +1,32 @@
|
||||
import React from 'react';
|
||||
import Button from '../../components/TsButton';
|
||||
|
||||
export default {
|
||||
title: 'Addons/Docs/Source',
|
||||
component: Button,
|
||||
argTypes: {
|
||||
children: { control: 'text' },
|
||||
type: { control: 'text' },
|
||||
},
|
||||
parameters: {
|
||||
chromatic: { disable: true },
|
||||
},
|
||||
};
|
||||
|
||||
const Template = (args) => <Button {...args} />;
|
||||
|
||||
export const Basic = Template.bind({});
|
||||
Basic.args = {
|
||||
children: 'basic',
|
||||
somethingElse: { a: 2 },
|
||||
};
|
||||
|
||||
export const NoArgs = () => <Button>no args</Button>;
|
||||
|
||||
export const ForceCodeSource = Template.bind({});
|
||||
ForceCodeSource.args = { ...Basic.args };
|
||||
ForceCodeSource.parameters = { docs: { source: { type: 'code' } } };
|
||||
|
||||
export const CustomSource = Template.bind({});
|
||||
CustomSource.args = { ...Basic.args };
|
||||
CustomSource.parameters = { docs: { source: { code: 'custom source' } } };
|
@ -7,7 +7,7 @@ export default {
|
||||
};
|
||||
|
||||
export const Log = () => {
|
||||
hrefTo('Addons|Links.Href', 'log').then((href) => action('URL of this story')(href));
|
||||
hrefTo('Addons/Links/Href', 'log').then((href) => action('URL of this story')(href));
|
||||
|
||||
return <span>See action logger</span>;
|
||||
};
|
||||
|
@ -7,7 +7,7 @@ export default {
|
||||
};
|
||||
|
||||
export const Index = () => (
|
||||
<select value="Index" onChange={linkTo('Addons|Links.Select', (e) => e.currentTarget.value)}>
|
||||
<select value="Index" onChange={linkTo('Addons/Links/Select', (e) => e.currentTarget.value)}>
|
||||
<option>Index</option>
|
||||
<option>First</option>
|
||||
<option>Second</option>
|
||||
|
@ -1,6 +1,4 @@
|
||||
import React, { useState } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
import { useArgs } from '@storybook/client-api';
|
||||
|
||||
// eslint-disable-next-line react/prop-types
|
||||
@ -44,17 +42,25 @@ export default {
|
||||
],
|
||||
};
|
||||
|
||||
export const PassedToStory = (inputArgs) => {
|
||||
const Template = (args) => {
|
||||
return (
|
||||
<div>
|
||||
<h3>Input args:</h3>
|
||||
<pre>{JSON.stringify(inputArgs)}</pre>
|
||||
<pre>{JSON.stringify(args)}</pre>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export const PassedToStory = Template.bind({});
|
||||
|
||||
PassedToStory.argTypes = { name: { defaultValue: 'initial', control: 'text' } };
|
||||
|
||||
PassedToStory.propTypes = {
|
||||
args: PropTypes.shape({}).isRequired,
|
||||
export const OtherValues = Template.bind({});
|
||||
|
||||
OtherValues.argTypes = { name: { control: 'text' } };
|
||||
|
||||
export const DifferentSet = Template.bind({});
|
||||
DifferentSet.args = {
|
||||
foo: 'bar',
|
||||
bar: 2,
|
||||
};
|
||||
|
@ -4,7 +4,7 @@ import React from 'react';
|
||||
import { addDecorator } from '@storybook/react';
|
||||
|
||||
addDecorator((s, { kind }) =>
|
||||
kind === 'Core|Decorators' ? (
|
||||
kind === 'Core/Decorators' ? (
|
||||
<>
|
||||
<p>Global Decorator</p>
|
||||
{s()}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "preact-example",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules",
|
||||
@ -15,17 +15,17 @@
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.9.6",
|
||||
"@babel/plugin-transform-runtime": "^7.9.6",
|
||||
"@storybook/addon-a11y": "6.0.0-rc.9",
|
||||
"@storybook/addon-actions": "6.0.0-rc.9",
|
||||
"@storybook/addon-backgrounds": "6.0.0-rc.9",
|
||||
"@storybook/addon-knobs": "6.0.0-rc.9",
|
||||
"@storybook/addon-links": "6.0.0-rc.9",
|
||||
"@storybook/addon-storyshots": "6.0.0-rc.9",
|
||||
"@storybook/addon-storysource": "6.0.0-rc.9",
|
||||
"@storybook/addon-viewport": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/preact": "6.0.0-rc.9",
|
||||
"@storybook/source-loader": "6.0.0-rc.9",
|
||||
"@storybook/addon-a11y": "6.0.0-rc.12",
|
||||
"@storybook/addon-actions": "6.0.0-rc.12",
|
||||
"@storybook/addon-backgrounds": "6.0.0-rc.12",
|
||||
"@storybook/addon-knobs": "6.0.0-rc.12",
|
||||
"@storybook/addon-links": "6.0.0-rc.12",
|
||||
"@storybook/addon-storyshots": "6.0.0-rc.12",
|
||||
"@storybook/addon-storysource": "6.0.0-rc.12",
|
||||
"@storybook/addon-viewport": "6.0.0-rc.12",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/preact": "6.0.0-rc.12",
|
||||
"@storybook/source-loader": "6.0.0-rc.12",
|
||||
"babel-loader": "^8.0.4",
|
||||
"cross-env": "^7.0.0",
|
||||
"file-loader": "^6.0.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "rax-kitchen-sink",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "build-scripts build",
|
||||
@ -20,20 +20,20 @@
|
||||
"devDependencies": {
|
||||
"@alib/build-scripts": "^0.1.8",
|
||||
"@babel/preset-react": "^7.7.4",
|
||||
"@storybook/addon-a11y": "6.0.0-rc.9",
|
||||
"@storybook/addon-actions": "6.0.0-rc.9",
|
||||
"@storybook/addon-backgrounds": "6.0.0-rc.9",
|
||||
"@storybook/addon-events": "6.0.0-rc.9",
|
||||
"@storybook/addon-jest": "6.0.0-rc.9",
|
||||
"@storybook/addon-knobs": "6.0.0-rc.9",
|
||||
"@storybook/addon-links": "6.0.0-rc.9",
|
||||
"@storybook/addon-storyshots": "6.0.0-rc.9",
|
||||
"@storybook/addon-storysource": "6.0.0-rc.9",
|
||||
"@storybook/addon-viewport": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/rax": "6.0.0-rc.9",
|
||||
"@storybook/source-loader": "6.0.0-rc.9",
|
||||
"@storybook/theming": "6.0.0-rc.9",
|
||||
"@storybook/addon-a11y": "6.0.0-rc.12",
|
||||
"@storybook/addon-actions": "6.0.0-rc.12",
|
||||
"@storybook/addon-backgrounds": "6.0.0-rc.12",
|
||||
"@storybook/addon-events": "6.0.0-rc.12",
|
||||
"@storybook/addon-jest": "6.0.0-rc.12",
|
||||
"@storybook/addon-knobs": "6.0.0-rc.12",
|
||||
"@storybook/addon-links": "6.0.0-rc.12",
|
||||
"@storybook/addon-storyshots": "6.0.0-rc.12",
|
||||
"@storybook/addon-storysource": "6.0.0-rc.12",
|
||||
"@storybook/addon-viewport": "6.0.0-rc.12",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/rax": "6.0.0-rc.12",
|
||||
"@storybook/source-loader": "6.0.0-rc.12",
|
||||
"@storybook/theming": "6.0.0-rc.12",
|
||||
"babel-eslint": "^10.0.3",
|
||||
"build-plugin-rax-app": "^0.2.0",
|
||||
"stylesheet-loader": "^0.8.0"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/example-react-ts",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build-storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true build-storybook -c ./",
|
||||
@ -8,9 +8,9 @@
|
||||
"storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true start-storybook -p 9011 -c ./ --no-dll"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addon-controls": "6.0.0-rc.9",
|
||||
"@storybook/addon-essentials": "6.0.0-rc.9",
|
||||
"@storybook/react": "6.0.0-rc.9",
|
||||
"@storybook/addon-controls": "6.0.0-rc.12",
|
||||
"@storybook/addon-essentials": "6.0.0-rc.12",
|
||||
"@storybook/react": "6.0.0-rc.12",
|
||||
"@types/react": "^16.9.35",
|
||||
"@types/react-dom": "^16.9.8",
|
||||
"prop-types": "15.7.2",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "riot-example",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules",
|
||||
@ -15,17 +15,17 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.9.6",
|
||||
"@storybook/addon-a11y": "6.0.0-rc.9",
|
||||
"@storybook/addon-actions": "6.0.0-rc.9",
|
||||
"@storybook/addon-backgrounds": "6.0.0-rc.9",
|
||||
"@storybook/addon-knobs": "6.0.0-rc.9",
|
||||
"@storybook/addon-links": "6.0.0-rc.9",
|
||||
"@storybook/addon-storyshots": "6.0.0-rc.9",
|
||||
"@storybook/addon-storysource": "6.0.0-rc.9",
|
||||
"@storybook/addon-viewport": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/riot": "6.0.0-rc.9",
|
||||
"@storybook/source-loader": "6.0.0-rc.9",
|
||||
"@storybook/addon-a11y": "6.0.0-rc.12",
|
||||
"@storybook/addon-actions": "6.0.0-rc.12",
|
||||
"@storybook/addon-backgrounds": "6.0.0-rc.12",
|
||||
"@storybook/addon-knobs": "6.0.0-rc.12",
|
||||
"@storybook/addon-links": "6.0.0-rc.12",
|
||||
"@storybook/addon-storyshots": "6.0.0-rc.12",
|
||||
"@storybook/addon-storysource": "6.0.0-rc.12",
|
||||
"@storybook/addon-viewport": "6.0.0-rc.12",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/riot": "6.0.0-rc.12",
|
||||
"@storybook/source-loader": "6.0.0-rc.12",
|
||||
"babel-loader": "^8.0.4",
|
||||
"cross-env": "^7.0.0",
|
||||
"file-loader": "^6.0.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "server-kitchen-sink",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"private": true,
|
||||
"description": "",
|
||||
"keywords": [],
|
||||
@ -14,13 +14,13 @@
|
||||
"storybook": "SERVER_PORT=1137 start-storybook -p 9006 --quiet"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-a11y": "6.0.0-rc.9",
|
||||
"@storybook/addon-actions": "6.0.0-rc.9",
|
||||
"@storybook/addon-backgrounds": "6.0.0-rc.9",
|
||||
"@storybook/addon-knobs": "6.0.0-rc.9",
|
||||
"@storybook/addon-links": "6.0.0-rc.9",
|
||||
"@storybook/node-logger": "6.0.0-rc.9",
|
||||
"@storybook/server": "6.0.0-rc.9",
|
||||
"@storybook/addon-a11y": "6.0.0-rc.12",
|
||||
"@storybook/addon-actions": "6.0.0-rc.12",
|
||||
"@storybook/addon-backgrounds": "6.0.0-rc.12",
|
||||
"@storybook/addon-knobs": "6.0.0-rc.12",
|
||||
"@storybook/addon-links": "6.0.0-rc.12",
|
||||
"@storybook/node-logger": "6.0.0-rc.12",
|
||||
"@storybook/server": "6.0.0-rc.12",
|
||||
"concurrently": "^5.2.0",
|
||||
"cors": "^2.8.5",
|
||||
"express": "~4.17.1",
|
||||
|
@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "standalone-preview",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"storybook": "parcel ./storybook.html --port 1337"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/react": "6.0.0-rc.9",
|
||||
"@storybook/react": "6.0.0-rc.12",
|
||||
"parcel": "^1.12.3",
|
||||
"react": "^16.8.4",
|
||||
"react-dom": "^16.8.4"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "svelte-example",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build-storybook": "build-storybook -s public",
|
||||
@ -10,19 +10,19 @@
|
||||
"global": "^4.3.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-a11y": "6.0.0-rc.9",
|
||||
"@storybook/addon-actions": "6.0.0-rc.9",
|
||||
"@storybook/addon-backgrounds": "6.0.0-rc.9",
|
||||
"@storybook/addon-controls": "6.0.0-rc.9",
|
||||
"@storybook/addon-docs": "6.0.0-rc.9",
|
||||
"@storybook/addon-knobs": "6.0.0-rc.9",
|
||||
"@storybook/addon-links": "6.0.0-rc.9",
|
||||
"@storybook/addon-storyshots": "6.0.0-rc.9",
|
||||
"@storybook/addon-storysource": "6.0.0-rc.9",
|
||||
"@storybook/addon-viewport": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/source-loader": "6.0.0-rc.9",
|
||||
"@storybook/svelte": "6.0.0-rc.9"
|
||||
"@storybook/addon-a11y": "6.0.0-rc.12",
|
||||
"@storybook/addon-actions": "6.0.0-rc.12",
|
||||
"@storybook/addon-backgrounds": "6.0.0-rc.12",
|
||||
"@storybook/addon-controls": "6.0.0-rc.12",
|
||||
"@storybook/addon-docs": "6.0.0-rc.12",
|
||||
"@storybook/addon-knobs": "6.0.0-rc.12",
|
||||
"@storybook/addon-links": "6.0.0-rc.12",
|
||||
"@storybook/addon-storyshots": "6.0.0-rc.12",
|
||||
"@storybook/addon-storysource": "6.0.0-rc.12",
|
||||
"@storybook/addon-viewport": "6.0.0-rc.12",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/source-loader": "6.0.0-rc.12",
|
||||
"@storybook/svelte": "6.0.0-rc.12"
|
||||
},
|
||||
"storybook": {
|
||||
"chromatic": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "vue-cli-example",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "vue-cli-service build",
|
||||
@ -15,11 +15,11 @@
|
||||
"vue-property-decorator": "^9.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-controls": "6.0.0-rc.9",
|
||||
"@storybook/addon-essentials": "6.0.0-rc.9",
|
||||
"@storybook/addon-controls": "6.0.0-rc.12",
|
||||
"@storybook/addon-essentials": "6.0.0-rc.12",
|
||||
"@storybook/preset-scss": "^1.0.2",
|
||||
"@storybook/source-loader": "6.0.0-rc.9",
|
||||
"@storybook/vue": "6.0.0-rc.9",
|
||||
"@storybook/source-loader": "6.0.0-rc.12",
|
||||
"@storybook/vue": "6.0.0-rc.12",
|
||||
"@vue/cli-plugin-babel": "~4.3.0",
|
||||
"@vue/cli-plugin-typescript": "~4.3.0",
|
||||
"@vue/cli-service": "~4.3.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "vue-example",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules",
|
||||
@ -14,19 +14,19 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.9.6",
|
||||
"@storybook/addon-a11y": "6.0.0-rc.9",
|
||||
"@storybook/addon-actions": "6.0.0-rc.9",
|
||||
"@storybook/addon-backgrounds": "6.0.0-rc.9",
|
||||
"@storybook/addon-controls": "6.0.0-rc.9",
|
||||
"@storybook/addon-docs": "6.0.0-rc.9",
|
||||
"@storybook/addon-knobs": "6.0.0-rc.9",
|
||||
"@storybook/addon-links": "6.0.0-rc.9",
|
||||
"@storybook/addon-storyshots": "6.0.0-rc.9",
|
||||
"@storybook/addon-storysource": "6.0.0-rc.9",
|
||||
"@storybook/addon-viewport": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/source-loader": "6.0.0-rc.9",
|
||||
"@storybook/vue": "6.0.0-rc.9",
|
||||
"@storybook/addon-a11y": "6.0.0-rc.12",
|
||||
"@storybook/addon-actions": "6.0.0-rc.12",
|
||||
"@storybook/addon-backgrounds": "6.0.0-rc.12",
|
||||
"@storybook/addon-controls": "6.0.0-rc.12",
|
||||
"@storybook/addon-docs": "6.0.0-rc.12",
|
||||
"@storybook/addon-knobs": "6.0.0-rc.12",
|
||||
"@storybook/addon-links": "6.0.0-rc.12",
|
||||
"@storybook/addon-storyshots": "6.0.0-rc.12",
|
||||
"@storybook/addon-storysource": "6.0.0-rc.12",
|
||||
"@storybook/addon-viewport": "6.0.0-rc.12",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/source-loader": "6.0.0-rc.12",
|
||||
"@storybook/vue": "6.0.0-rc.12",
|
||||
"@vue/babel-preset-jsx": "^1.1.2",
|
||||
"babel-loader": "^8.0.5",
|
||||
"cross-env": "^7.0.0",
|
||||
|
@ -1,3 +1,3 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`Storyshots Core|Errors Null Error 1`] = `<!---->`;
|
||||
exports[`Storyshots Core/Errors Null Error 1`] = `<!---->`;
|
||||
|
@ -1,5 +1,6 @@
|
||||
import { Meta, Preview, Story, Props } from '@storybook/addon-docs/blocks';
|
||||
import MyButton from './Button.vue';
|
||||
import InfoButton from './components/InfoButton.vue';
|
||||
|
||||
<Meta
|
||||
title="Addon/ControlsMDX"
|
||||
@ -52,3 +53,7 @@ Controls can also be defined and used in MDX stories.
|
||||
</Preview>
|
||||
|
||||
<Props story="Square" />
|
||||
|
||||
## Multiple components
|
||||
|
||||
<Props components={{ MyButton, InfoButton }} />
|
||||
|
@ -1,5 +1,5 @@
|
||||
export default {
|
||||
title: 'Core|Errors',
|
||||
title: 'Core/Errors',
|
||||
parameters: { chromatic: { disable: true } },
|
||||
};
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "web-components-kitchen-sink",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"private": true,
|
||||
"description": "",
|
||||
"keywords": [],
|
||||
@ -12,24 +12,24 @@
|
||||
"storybook": "start-storybook -p 9006"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-a11y": "6.0.0-rc.9",
|
||||
"@storybook/addon-actions": "6.0.0-rc.9",
|
||||
"@storybook/addon-backgrounds": "6.0.0-rc.9",
|
||||
"@storybook/addon-controls": "6.0.0-rc.9",
|
||||
"@storybook/addon-docs": "6.0.0-rc.9",
|
||||
"@storybook/addon-events": "6.0.0-rc.9",
|
||||
"@storybook/addon-jest": "6.0.0-rc.9",
|
||||
"@storybook/addon-knobs": "6.0.0-rc.9",
|
||||
"@storybook/addon-links": "6.0.0-rc.9",
|
||||
"@storybook/addon-storyshots": "6.0.0-rc.9",
|
||||
"@storybook/addon-storysource": "6.0.0-rc.9",
|
||||
"@storybook/addon-viewport": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/client-api": "6.0.0-rc.9",
|
||||
"@storybook/core": "6.0.0-rc.9",
|
||||
"@storybook/core-events": "6.0.0-rc.9",
|
||||
"@storybook/source-loader": "6.0.0-rc.9",
|
||||
"@storybook/web-components": "6.0.0-rc.9",
|
||||
"@storybook/addon-a11y": "6.0.0-rc.12",
|
||||
"@storybook/addon-actions": "6.0.0-rc.12",
|
||||
"@storybook/addon-backgrounds": "6.0.0-rc.12",
|
||||
"@storybook/addon-controls": "6.0.0-rc.12",
|
||||
"@storybook/addon-docs": "6.0.0-rc.12",
|
||||
"@storybook/addon-events": "6.0.0-rc.12",
|
||||
"@storybook/addon-jest": "6.0.0-rc.12",
|
||||
"@storybook/addon-knobs": "6.0.0-rc.12",
|
||||
"@storybook/addon-links": "6.0.0-rc.12",
|
||||
"@storybook/addon-storyshots": "6.0.0-rc.12",
|
||||
"@storybook/addon-storysource": "6.0.0-rc.12",
|
||||
"@storybook/addon-viewport": "6.0.0-rc.12",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/client-api": "6.0.0-rc.12",
|
||||
"@storybook/core": "6.0.0-rc.12",
|
||||
"@storybook/core-events": "6.0.0-rc.12",
|
||||
"@storybook/source-loader": "6.0.0-rc.12",
|
||||
"@storybook/web-components": "6.0.0-rc.12",
|
||||
"babel-loader": "^8.0.5",
|
||||
"eventemitter3": "^4.0.0",
|
||||
"format-json": "^1.0.3",
|
||||
|
@ -2,5 +2,5 @@
|
||||
"npmClient": "yarn",
|
||||
"useWorkspaces": true,
|
||||
"registry": "https://registry.npmjs.org",
|
||||
"version": "6.0.0-rc.9"
|
||||
"version": "6.0.0-rc.12"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addons",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "Storybook addons store",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -28,12 +28,12 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/api": "6.0.0-rc.9",
|
||||
"@storybook/channels": "6.0.0-rc.9",
|
||||
"@storybook/client-logger": "6.0.0-rc.9",
|
||||
"@storybook/core-events": "6.0.0-rc.9",
|
||||
"@storybook/router": "6.0.0-rc.9",
|
||||
"@storybook/theming": "6.0.0-rc.9",
|
||||
"@storybook/api": "6.0.0-rc.12",
|
||||
"@storybook/channels": "6.0.0-rc.12",
|
||||
"@storybook/client-logger": "6.0.0-rc.12",
|
||||
"@storybook/core-events": "6.0.0-rc.12",
|
||||
"@storybook/router": "6.0.0-rc.12",
|
||||
"@storybook/theming": "6.0.0-rc.12",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"regenerator-runtime": "^0.13.3"
|
||||
@ -45,7 +45,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9",
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/api",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "Core Storybook API & Context",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -29,13 +29,13 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@reach/router": "^1.3.3",
|
||||
"@storybook/channels": "6.0.0-rc.9",
|
||||
"@storybook/client-logger": "6.0.0-rc.9",
|
||||
"@storybook/core-events": "6.0.0-rc.9",
|
||||
"@storybook/channels": "6.0.0-rc.12",
|
||||
"@storybook/client-logger": "6.0.0-rc.12",
|
||||
"@storybook/core-events": "6.0.0-rc.12",
|
||||
"@storybook/csf": "0.0.1",
|
||||
"@storybook/router": "6.0.0-rc.9",
|
||||
"@storybook/router": "6.0.0-rc.12",
|
||||
"@storybook/semver": "^7.3.2",
|
||||
"@storybook/theming": "6.0.0-rc.9",
|
||||
"@storybook/theming": "6.0.0-rc.12",
|
||||
"@types/reach__router": "^1.3.5",
|
||||
"core-js": "^3.0.1",
|
||||
"fast-deep-equal": "^3.1.1",
|
||||
@ -61,7 +61,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9",
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1 +1 @@
|
||||
export const version = '6.0.0-rc.9';
|
||||
export const version = '6.0.0-rc.12';
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/channel-postmessage",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -28,9 +28,9 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/channels": "6.0.0-rc.9",
|
||||
"@storybook/client-logger": "6.0.0-rc.9",
|
||||
"@storybook/core-events": "6.0.0-rc.9",
|
||||
"@storybook/channels": "6.0.0-rc.12",
|
||||
"@storybook/client-logger": "6.0.0-rc.12",
|
||||
"@storybook/core-events": "6.0.0-rc.12",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"qs": "^6.6.0",
|
||||
@ -39,7 +39,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9",
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/channel-websocket",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -28,7 +28,7 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/channels": "6.0.0-rc.9",
|
||||
"@storybook/channels": "6.0.0-rc.12",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"telejson": "^4.0.0"
|
||||
@ -36,7 +36,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9",
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/channels",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -35,7 +35,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9",
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "sb",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "Storybook CLI",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -22,10 +22,10 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/cli": "6.0.0-rc.9"
|
||||
"@storybook/cli": "6.0.0-rc.12"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9"
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "storybook",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "Storybook CLI",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -23,10 +23,10 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/cli": "6.0.0-rc.9"
|
||||
"@storybook/cli": "6.0.0-rc.12"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9"
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/cli",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "Storybook's CLI - easiest method of adding storybook to your projects",
|
||||
"keywords": [
|
||||
"cli",
|
||||
@ -40,8 +40,8 @@
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.9.6",
|
||||
"@babel/preset-env": "^7.9.6",
|
||||
"@storybook/codemod": "6.0.0-rc.9",
|
||||
"@storybook/node-logger": "6.0.0-rc.9",
|
||||
"@storybook/codemod": "6.0.0-rc.12",
|
||||
"@storybook/node-logger": "6.0.0-rc.12",
|
||||
"@storybook/semver": "^7.3.2",
|
||||
"chalk": "^4.0.0",
|
||||
"commander": "^5.0.0",
|
||||
@ -76,5 +76,5 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9"
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05"
|
||||
}
|
||||
|
@ -1,5 +1,7 @@
|
||||
import * as path from 'path';
|
||||
import * as fs from 'fs';
|
||||
import { pathExists } from 'fs-extra';
|
||||
|
||||
import { readFileAsJson, writeFileAsJson } from '../../helpers';
|
||||
|
||||
type TsConfig = {
|
||||
@ -52,3 +54,7 @@ export function isDefaultProjectSet() {
|
||||
const angularJson = readFileAsJson('angular.json', true);
|
||||
return angularJson && !!angularJson.defaultProject;
|
||||
}
|
||||
|
||||
export async function getBaseTsConfigName() {
|
||||
return (await pathExists('./tsconfig.base.json')) ? 'tsconfig.base.json' : 'tsconfig.json';
|
||||
}
|
||||
|
@ -4,6 +4,7 @@ import {
|
||||
editStorybookTsConfig,
|
||||
getAngularAppTsConfigJson,
|
||||
getAngularAppTsConfigPath,
|
||||
getBaseTsConfigName,
|
||||
} from './angular-helpers';
|
||||
import { writeFileAsJson, copyTemplate } from '../../helpers';
|
||||
import { baseGenerator, Generator } from '../baseGenerator';
|
||||
@ -40,8 +41,9 @@ const generator: Generator = async (packageManager, npmOptions, options) => {
|
||||
editStorybookTsConfig(path.resolve('./.storybook/tsconfig.json'));
|
||||
|
||||
// edit scripts to generate docs
|
||||
const tsConfigFile = await getBaseTsConfigName();
|
||||
packageManager.addScripts({
|
||||
'docs:json': 'compodoc -p ./tsconfig.base.json -e json -d .',
|
||||
'docs:json': `compodoc -p ./${tsConfigFile} -e json -d .`,
|
||||
});
|
||||
packageManager.addStorybookCommandInScripts({
|
||||
port: 6006,
|
||||
|
@ -1,55 +1,55 @@
|
||||
{
|
||||
"@storybook/addon-a11y": "6.0.0-rc.9",
|
||||
"@storybook/addon-actions": "6.0.0-rc.9",
|
||||
"@storybook/addon-backgrounds": "6.0.0-rc.9",
|
||||
"@storybook/addon-controls": "6.0.0-rc.9",
|
||||
"@storybook/addon-cssresources": "6.0.0-rc.9",
|
||||
"@storybook/addon-design-assets": "6.0.0-rc.9",
|
||||
"@storybook/addon-docs": "6.0.0-rc.9",
|
||||
"@storybook/addon-essentials": "6.0.0-rc.9",
|
||||
"@storybook/addon-events": "6.0.0-rc.9",
|
||||
"@storybook/addon-google-analytics": "6.0.0-rc.9",
|
||||
"@storybook/addon-graphql": "6.0.0-rc.9",
|
||||
"@storybook/addon-jest": "6.0.0-rc.9",
|
||||
"@storybook/addon-knobs": "6.0.0-rc.9",
|
||||
"@storybook/addon-links": "6.0.0-rc.9",
|
||||
"@storybook/addon-queryparams": "6.0.0-rc.9",
|
||||
"@storybook/addon-storyshots": "6.0.0-rc.9",
|
||||
"@storybook/addon-storyshots-puppeteer": "6.0.0-rc.9",
|
||||
"@storybook/addon-storysource": "6.0.0-rc.9",
|
||||
"@storybook/addon-toolbars": "6.0.0-rc.9",
|
||||
"@storybook/addon-viewport": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/angular": "6.0.0-rc.9",
|
||||
"@storybook/api": "6.0.0-rc.9",
|
||||
"@storybook/aurelia": "6.0.0-rc.9",
|
||||
"@storybook/channel-postmessage": "6.0.0-rc.9",
|
||||
"@storybook/channel-websocket": "6.0.0-rc.9",
|
||||
"@storybook/channels": "6.0.0-rc.9",
|
||||
"@storybook/cli": "6.0.0-rc.9",
|
||||
"@storybook/client-api": "6.0.0-rc.9",
|
||||
"@storybook/client-logger": "6.0.0-rc.9",
|
||||
"@storybook/codemod": "6.0.0-rc.9",
|
||||
"@storybook/components": "6.0.0-rc.9",
|
||||
"@storybook/core": "6.0.0-rc.9",
|
||||
"@storybook/core-events": "6.0.0-rc.9",
|
||||
"@storybook/ember": "6.0.0-rc.9",
|
||||
"@storybook/html": "6.0.0-rc.9",
|
||||
"@storybook/marionette": "6.0.0-rc.9",
|
||||
"@storybook/marko": "6.0.0-rc.9",
|
||||
"@storybook/mithril": "6.0.0-rc.9",
|
||||
"@storybook/node-logger": "6.0.0-rc.9",
|
||||
"@storybook/postinstall": "6.0.0-rc.9",
|
||||
"@storybook/preact": "6.0.0-rc.9",
|
||||
"@storybook/rax": "6.0.0-rc.9",
|
||||
"@storybook/react": "6.0.0-rc.9",
|
||||
"@storybook/riot": "6.0.0-rc.9",
|
||||
"@storybook/router": "6.0.0-rc.9",
|
||||
"@storybook/server": "6.0.0-rc.9",
|
||||
"@storybook/source-loader": "6.0.0-rc.9",
|
||||
"@storybook/svelte": "6.0.0-rc.9",
|
||||
"@storybook/theming": "6.0.0-rc.9",
|
||||
"@storybook/ui": "6.0.0-rc.9",
|
||||
"@storybook/vue": "6.0.0-rc.9",
|
||||
"@storybook/web-components": "6.0.0-rc.9"
|
||||
"@storybook/addon-a11y": "6.0.0-rc.12",
|
||||
"@storybook/addon-actions": "6.0.0-rc.12",
|
||||
"@storybook/addon-backgrounds": "6.0.0-rc.12",
|
||||
"@storybook/addon-controls": "6.0.0-rc.12",
|
||||
"@storybook/addon-cssresources": "6.0.0-rc.12",
|
||||
"@storybook/addon-design-assets": "6.0.0-rc.12",
|
||||
"@storybook/addon-docs": "6.0.0-rc.12",
|
||||
"@storybook/addon-essentials": "6.0.0-rc.12",
|
||||
"@storybook/addon-events": "6.0.0-rc.12",
|
||||
"@storybook/addon-google-analytics": "6.0.0-rc.12",
|
||||
"@storybook/addon-graphql": "6.0.0-rc.12",
|
||||
"@storybook/addon-jest": "6.0.0-rc.12",
|
||||
"@storybook/addon-knobs": "6.0.0-rc.12",
|
||||
"@storybook/addon-links": "6.0.0-rc.12",
|
||||
"@storybook/addon-queryparams": "6.0.0-rc.12",
|
||||
"@storybook/addon-storyshots": "6.0.0-rc.12",
|
||||
"@storybook/addon-storyshots-puppeteer": "6.0.0-rc.12",
|
||||
"@storybook/addon-storysource": "6.0.0-rc.12",
|
||||
"@storybook/addon-toolbars": "6.0.0-rc.12",
|
||||
"@storybook/addon-viewport": "6.0.0-rc.12",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/angular": "6.0.0-rc.12",
|
||||
"@storybook/api": "6.0.0-rc.12",
|
||||
"@storybook/aurelia": "6.0.0-rc.12",
|
||||
"@storybook/channel-postmessage": "6.0.0-rc.12",
|
||||
"@storybook/channel-websocket": "6.0.0-rc.12",
|
||||
"@storybook/channels": "6.0.0-rc.12",
|
||||
"@storybook/cli": "6.0.0-rc.12",
|
||||
"@storybook/client-api": "6.0.0-rc.12",
|
||||
"@storybook/client-logger": "6.0.0-rc.12",
|
||||
"@storybook/codemod": "6.0.0-rc.12",
|
||||
"@storybook/components": "6.0.0-rc.12",
|
||||
"@storybook/core": "6.0.0-rc.12",
|
||||
"@storybook/core-events": "6.0.0-rc.12",
|
||||
"@storybook/ember": "6.0.0-rc.12",
|
||||
"@storybook/html": "6.0.0-rc.12",
|
||||
"@storybook/marionette": "6.0.0-rc.12",
|
||||
"@storybook/marko": "6.0.0-rc.12",
|
||||
"@storybook/mithril": "6.0.0-rc.12",
|
||||
"@storybook/node-logger": "6.0.0-rc.12",
|
||||
"@storybook/postinstall": "6.0.0-rc.12",
|
||||
"@storybook/preact": "6.0.0-rc.12",
|
||||
"@storybook/rax": "6.0.0-rc.12",
|
||||
"@storybook/react": "6.0.0-rc.12",
|
||||
"@storybook/riot": "6.0.0-rc.12",
|
||||
"@storybook/router": "6.0.0-rc.12",
|
||||
"@storybook/server": "6.0.0-rc.12",
|
||||
"@storybook/source-loader": "6.0.0-rc.12",
|
||||
"@storybook/svelte": "6.0.0-rc.12",
|
||||
"@storybook/theming": "6.0.0-rc.12",
|
||||
"@storybook/ui": "6.0.0-rc.12",
|
||||
"@storybook/vue": "6.0.0-rc.12",
|
||||
"@storybook/web-components": "6.0.0-rc.12"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/client-api",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "Storybook Client API",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -28,11 +28,11 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.0.0-rc.9",
|
||||
"@storybook/channel-postmessage": "6.0.0-rc.9",
|
||||
"@storybook/channels": "6.0.0-rc.9",
|
||||
"@storybook/client-logger": "6.0.0-rc.9",
|
||||
"@storybook/core-events": "6.0.0-rc.9",
|
||||
"@storybook/addons": "6.0.0-rc.12",
|
||||
"@storybook/channel-postmessage": "6.0.0-rc.12",
|
||||
"@storybook/channels": "6.0.0-rc.12",
|
||||
"@storybook/client-logger": "6.0.0-rc.12",
|
||||
"@storybook/core-events": "6.0.0-rc.12",
|
||||
"@storybook/csf": "0.0.1",
|
||||
"@types/qs": "^6.9.0",
|
||||
"@types/webpack-env": "^1.15.2",
|
||||
@ -53,7 +53,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9",
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/client-logger",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -34,7 +34,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9",
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/codemod",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "A collection of codemod scripts written with JSCodeshift",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -30,7 +30,7 @@
|
||||
"dependencies": {
|
||||
"@mdx-js/mdx": "^1.5.1",
|
||||
"@storybook/csf": "0.0.1",
|
||||
"@storybook/node-logger": "6.0.0-rc.9",
|
||||
"@storybook/node-logger": "6.0.0-rc.12",
|
||||
"core-js": "^3.0.1",
|
||||
"cross-spawn": "^7.0.0",
|
||||
"globby": "^11.0.0",
|
||||
@ -47,5 +47,5 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9"
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/components",
|
||||
"version": "6.0.0-rc.9",
|
||||
"version": "6.0.0-rc.12",
|
||||
"description": "Core Storybook Components",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -28,9 +28,9 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/client-logger": "6.0.0-rc.9",
|
||||
"@storybook/client-logger": "6.0.0-rc.12",
|
||||
"@storybook/csf": "0.0.1",
|
||||
"@storybook/theming": "6.0.0-rc.9",
|
||||
"@storybook/theming": "6.0.0-rc.12",
|
||||
"@types/overlayscrollbars": "^1.9.0",
|
||||
"@types/react-color": "^3.0.1",
|
||||
"@types/react-syntax-highlighter": "11.0.4",
|
||||
@ -64,7 +64,7 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "2e5d8431be9d0d3d9d2eda95724f772d980640b9",
|
||||
"gitHead": "7f48e2852608964b1a287a0a2c36ca7386a56a05",
|
||||
"typesVersions": {
|
||||
"<=3.5": {
|
||||
"*": [
|
||||
|
@ -6,22 +6,21 @@ export default {
|
||||
component: ArrayControl,
|
||||
};
|
||||
|
||||
export const Basic = () => {
|
||||
const [value, setValue] = useState(['Bat', 'Cat', 'Rat']);
|
||||
const Template = (initialValue: any) => {
|
||||
const [value, setValue] = useState(initialValue);
|
||||
return (
|
||||
<>
|
||||
<ArrayControl name="array" value={value} onChange={(name, newVal) => setValue(newVal)} />
|
||||
<ArrayControl
|
||||
name="array"
|
||||
value={value}
|
||||
onChange={(name, newVal) => setValue(newVal)}
|
||||
separator=","
|
||||
/>
|
||||
<ul>{value && value.map((item) => <li key={item}>{item}</li>)}</ul>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export const Null = () => {
|
||||
const [value, setValue] = useState(null);
|
||||
return (
|
||||
<>
|
||||
<ArrayControl name="array" value={value} onChange={(name, newVal) => setValue(newVal)} />
|
||||
<ul>{value && value.map((item) => <li key={item}>{item}</li>)}</ul>
|
||||
</>
|
||||
);
|
||||
};
|
||||
export const Basic = () => Template(['Bat', 'Cat', 'Rat']);
|
||||
|
||||
export const Undefined = () => Template(undefined);
|
||||
|
@ -7,7 +7,7 @@ import { ControlProps, ArrayValue, ArrayConfig } from './types';
|
||||
const parse = (value: string, separator: string): ArrayValue =>
|
||||
!value || value.trim() === '' ? [] : value.split(separator);
|
||||
|
||||
const format = (value: ArrayValue, separator: string) => {
|
||||
const format = (value: ArrayValue | undefined, separator: string) => {
|
||||
return value && Array.isArray(value) ? value.join(separator) : '';
|
||||
};
|
||||
|
||||
@ -20,7 +20,6 @@ export const ArrayControl: FC<ArrayProps> = ({
|
||||
name,
|
||||
value,
|
||||
onChange,
|
||||
argType,
|
||||
separator = ',',
|
||||
onBlur,
|
||||
onFocus,
|
||||
|
@ -6,12 +6,16 @@ export default {
|
||||
component: BooleanControl,
|
||||
};
|
||||
|
||||
export const Basic = () => {
|
||||
const [value, setValue] = useState(false);
|
||||
const Template = (initialValue?: boolean) => {
|
||||
const [value, setValue] = useState(initialValue);
|
||||
return (
|
||||
<>
|
||||
<BooleanControl name="boolean" value={value} onChange={(name, newVal) => setValue(newVal)} />
|
||||
<p>value: {value.toString()}</p>
|
||||
<p>value: {typeof value === 'boolean' ? value.toString() : value}</p>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export const Basic = () => Template(false);
|
||||
|
||||
export const Undefined = () => Template(undefined);
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user