mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 23:21:15 +08:00
Merge branch 'next' into fix/cjs
This commit is contained in:
commit
58385e5f2e
45
CHANGELOG.md
45
CHANGELOG.md
@ -1,17 +1,48 @@
|
||||
## 6.0.0-alpha.33 (April 14, 2020)
|
||||
|
||||
### Breaking prerelease
|
||||
|
||||
- Core: Rename ParameterEnhancer to ArgsEnhancer ([#10398](https://github.com/storybookjs/storybook/pull/10398))
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- Core: Fix `webpackFinal` being called twice ([#10402](https://github.com/storybookjs/storybook/pull/10402))
|
||||
- Core: Fix legacy redirect ([#10404](https://github.com/storybookjs/storybook/pull/10404))
|
||||
|
||||
### Maintenance
|
||||
|
||||
- CLI: Update fixtures used for CLI tests ([#10396](https://github.com/storybookjs/storybook/pull/10396))
|
||||
- Build: Update bootstrap to install optional deps on CI ([#10408](https://github.com/storybookjs/storybook/pull/10408))
|
||||
- Addon-docs: Format source at render time ([#10383](https://github.com/storybookjs/storybook/pull/10383))
|
||||
|
||||
## 6.0.0-alpha.32 (April 11, 2020)
|
||||
|
||||
### Features
|
||||
|
||||
- CSF: Warn when there are no exported stories ([#10357](https://github.com/storybookjs/storybook/pull/10357))
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- Marko: Always destroy old component when switching stories ([#10345](https://github.com/storybookjs/storybook/pull/10345))
|
||||
|
||||
### Maintenance
|
||||
|
||||
- Dev: Build script for package development ([#10343](https://github.com/storybookjs/storybook/pull/10343))
|
||||
|
||||
## 6.0.0-alpha.31 (April 7, 2020)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Core: Fix ie11 compatibility ([#10281](https://github.com/storybookjs/storybook/pull/10281))
|
||||
* Core: Add .cjs & .mjs to interpret-files ([#10288](https://github.com/storybookjs/storybook/pull/10288))
|
||||
* Core: Fix source-map strategy for production ([#10290](https://github.com/storybookjs/storybook/pull/10290))
|
||||
* Addon-knobs: Allow `text` and `number` to take undefined values ([#10101](https://github.com/storybookjs/storybook/pull/10101))
|
||||
- Core: Fix ie11 compatibility ([#10281](https://github.com/storybookjs/storybook/pull/10281))
|
||||
- Core: Add .cjs & .mjs to interpret-files ([#10288](https://github.com/storybookjs/storybook/pull/10288))
|
||||
- Core: Fix source-map strategy for production ([#10290](https://github.com/storybookjs/storybook/pull/10290))
|
||||
- Addon-knobs: Allow `text` and `number` to take undefined values ([#10101](https://github.com/storybookjs/storybook/pull/10101))
|
||||
|
||||
### Maintenance
|
||||
|
||||
* Core: Warn about deprecated config files ([#10097](https://github.com/storybookjs/storybook/pull/10097))
|
||||
* Yarn 2: rework imports in webpack preview virtual module to fix compatibility ([#10305](https://github.com/storybookjs/storybook/pull/10305))
|
||||
* Addon-centered: Move to deprecated-addons ([#10300](https://github.com/storybookjs/storybook/pull/10300))
|
||||
- Core: Warn about deprecated config files ([#10097](https://github.com/storybookjs/storybook/pull/10097))
|
||||
- Yarn 2: rework imports in webpack preview virtual module to fix compatibility ([#10305](https://github.com/storybookjs/storybook/pull/10305))
|
||||
- Addon-centered: Move to deprecated-addons ([#10300](https://github.com/storybookjs/storybook/pull/10300))
|
||||
|
||||
## 5.3.18 (March 31, 2020)
|
||||
|
||||
|
@ -295,6 +295,17 @@ _This method is slow_
|
||||
2. Take a break 🍵
|
||||
3. `yarn test` (to verify everything worked)
|
||||
|
||||
#### Building specific packages
|
||||
|
||||
If you're working on one or a few packages, for every change that you make, you have to rebuild those packages. To make the process easier, there is a CLI command for that:
|
||||
|
||||
- Run `yarn build` to bring you a list of packages to select from. There will be also an option to run in watch mode.
|
||||
- Run `yarn build <package-name>` to build that package specifically. \
|
||||
For the package name, use its short version. Example: for `@storybook/addon-docs`, run `yarn build addon-docs`.
|
||||
- Run `yarn build --all` to build everything.
|
||||
- Add `--watch` to run automatically in watch more if you are either building a selection of packages by name or building all.
|
||||
Example: `yarn build core addon-docs --watch` or `yarn build --all --watch`.
|
||||
|
||||
### Working with the kitchen sink apps
|
||||
|
||||
Within the `examples` folder of the Storybook repo, you will find kitchen sink examples of storybook implementations for the various platforms that storybook supports.
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-a11y",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"description": "a11y addon for storybook",
|
||||
"keywords": [
|
||||
"a11y",
|
||||
@ -33,14 +33,14 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.0.0-alpha.31",
|
||||
"@storybook/api": "6.0.0-alpha.31",
|
||||
"@storybook/channels": "6.0.0-alpha.31",
|
||||
"@storybook/client-api": "6.0.0-alpha.31",
|
||||
"@storybook/client-logger": "6.0.0-alpha.31",
|
||||
"@storybook/components": "6.0.0-alpha.31",
|
||||
"@storybook/core-events": "6.0.0-alpha.31",
|
||||
"@storybook/theming": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/api": "6.0.0-alpha.33",
|
||||
"@storybook/channels": "6.0.0-alpha.33",
|
||||
"@storybook/client-api": "6.0.0-alpha.33",
|
||||
"@storybook/client-logger": "6.0.0-alpha.33",
|
||||
"@storybook/components": "6.0.0-alpha.33",
|
||||
"@storybook/core-events": "6.0.0-alpha.33",
|
||||
"@storybook/theming": "6.0.0-alpha.33",
|
||||
"axe-core": "^3.3.2",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-actions",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"description": "Action Logger addon for storybook",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -28,12 +28,12 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.0.0-alpha.31",
|
||||
"@storybook/api": "6.0.0-alpha.31",
|
||||
"@storybook/client-api": "6.0.0-alpha.31",
|
||||
"@storybook/components": "6.0.0-alpha.31",
|
||||
"@storybook/core-events": "6.0.0-alpha.31",
|
||||
"@storybook/theming": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/api": "6.0.0-alpha.33",
|
||||
"@storybook/client-api": "6.0.0-alpha.33",
|
||||
"@storybook/components": "6.0.0-alpha.33",
|
||||
"@storybook/core-events": "6.0.0-alpha.33",
|
||||
"@storybook/theming": "6.0.0-alpha.33",
|
||||
"core-js": "^3.0.1",
|
||||
"fast-deep-equal": "^3.1.1",
|
||||
"global": "^4.3.2",
|
||||
|
@ -1,6 +1,9 @@
|
||||
import { StoryContext } from '@storybook/addons';
|
||||
import { inferActionsFromArgTypesRegex, addActionsFromArgTypes } from './addArgs';
|
||||
|
||||
const withDefaultValue = (argTypes) =>
|
||||
Object.keys(argTypes).filter((key) => !!argTypes[key].defaultValue);
|
||||
|
||||
describe('actions parameter enhancers', () => {
|
||||
describe('actions.argTypesRegex parameter', () => {
|
||||
const baseParameters = {
|
||||
@ -10,18 +13,18 @@ describe('actions parameter enhancers', () => {
|
||||
|
||||
it('should add actions that match a pattern', () => {
|
||||
const parameters = baseParameters;
|
||||
const { args } = inferActionsFromArgTypesRegex({ parameters } as StoryContext);
|
||||
expect(Object.keys(args)).toEqual(['onClick', 'onFocus']);
|
||||
const argTypes = inferActionsFromArgTypesRegex({ parameters } as StoryContext);
|
||||
expect(withDefaultValue(argTypes)).toEqual(['onClick', 'onFocus']);
|
||||
});
|
||||
|
||||
it('should prioritize pre-existing args', () => {
|
||||
it('should prioritize pre-existing argTypes', () => {
|
||||
const parameters = {
|
||||
...baseParameters,
|
||||
args: { onClick: 'pre-existing arg' },
|
||||
argTypes: { onClick: { defaultValue: 'pre-existing value' }, onFocus: {} },
|
||||
};
|
||||
const { args } = inferActionsFromArgTypesRegex({ parameters } as StoryContext);
|
||||
expect(Object.keys(args)).toEqual(['onClick', 'onFocus']);
|
||||
expect(args.onClick).toEqual('pre-existing arg');
|
||||
const argTypes = inferActionsFromArgTypesRegex({ parameters } as StoryContext);
|
||||
expect(withDefaultValue(argTypes)).toEqual(['onClick', 'onFocus']);
|
||||
expect(argTypes.onClick.defaultValue).toEqual('pre-existing value');
|
||||
});
|
||||
|
||||
it('should do nothing if actions are disabled', () => {
|
||||
@ -30,7 +33,7 @@ describe('actions parameter enhancers', () => {
|
||||
actions: { ...baseParameters.actions, disable: true },
|
||||
};
|
||||
const result = inferActionsFromArgTypesRegex({ parameters } as StoryContext);
|
||||
expect(result).toBeFalsy();
|
||||
expect(result).toEqual(parameters.argTypes);
|
||||
});
|
||||
});
|
||||
|
||||
@ -41,27 +44,29 @@ describe('actions parameter enhancers', () => {
|
||||
onBlur: { action: 'blurred!' },
|
||||
},
|
||||
};
|
||||
|
||||
it('should add actions based on action.args', () => {
|
||||
const parameters = baseParameters;
|
||||
const { args } = addActionsFromArgTypes({ parameters } as StoryContext);
|
||||
expect(Object.keys(args)).toEqual(['onClick', 'onBlur']);
|
||||
const argTypes = addActionsFromArgTypes({ parameters } as StoryContext);
|
||||
expect(withDefaultValue(argTypes)).toEqual(['onClick', 'onBlur']);
|
||||
});
|
||||
|
||||
it('should prioritize pre-existing args', () => {
|
||||
const parameters = {
|
||||
...baseParameters,
|
||||
args: { onClick: 'pre-existing arg' },
|
||||
argTypes: {
|
||||
onClick: { defaultValue: 'pre-existing value', action: 'onClick' },
|
||||
onBlur: { action: 'onBlur' },
|
||||
},
|
||||
};
|
||||
const { args } = addActionsFromArgTypes({ parameters } as StoryContext);
|
||||
expect(Object.keys(args)).toEqual(['onClick', 'onBlur']);
|
||||
expect(args.onClick).toEqual('pre-existing arg');
|
||||
const argTypes = addActionsFromArgTypes({ parameters } as StoryContext);
|
||||
expect(withDefaultValue(argTypes)).toEqual(['onClick', 'onBlur']);
|
||||
expect(argTypes.onClick.defaultValue).toEqual('pre-existing value');
|
||||
});
|
||||
|
||||
it('should do nothing if actions are disabled', () => {
|
||||
const parameters = { ...baseParameters, actions: { disable: true } };
|
||||
const result = addActionsFromArgTypes({ parameters } as StoryContext);
|
||||
expect(result).toBeFalsy();
|
||||
expect(result).toEqual(parameters.argTypes);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { ParameterEnhancer, combineParameters } from '@storybook/client-api';
|
||||
import { Args, ArgType } from '@storybook/addons';
|
||||
import { ArgTypesEnhancer, combineParameters } from '@storybook/client-api';
|
||||
import { ArgTypes, ArgType } from '@storybook/addons';
|
||||
|
||||
import { action } from '../index';
|
||||
|
||||
@ -12,46 +12,42 @@ import { action } from '../index';
|
||||
* Automatically add action args for argTypes whose name
|
||||
* matches a regex, such as `^on.*` for react-style `onClick` etc.
|
||||
*/
|
||||
export const inferActionsFromArgTypesRegex: ParameterEnhancer = (context) => {
|
||||
const { args, actions, argTypes } = context.parameters;
|
||||
export const inferActionsFromArgTypesRegex: ArgTypesEnhancer = (context) => {
|
||||
const { actions, argTypes } = context.parameters;
|
||||
if (!actions || actions.disable || !actions.argTypesRegex || !argTypes) {
|
||||
return null;
|
||||
return argTypes;
|
||||
}
|
||||
|
||||
const argTypesRegex = new RegExp(actions.argTypesRegex);
|
||||
const actionArgs = Object.keys(argTypes).reduce((acc, name) => {
|
||||
const actionArgTypes = Object.keys(argTypes).reduce((acc, name) => {
|
||||
if (argTypesRegex.test(name)) {
|
||||
acc[name] = action(name);
|
||||
acc[name] = { defaultValue: action(name) };
|
||||
}
|
||||
return acc;
|
||||
}, {} as Args);
|
||||
}, {} as ArgTypes);
|
||||
|
||||
return {
|
||||
args: combineParameters(actionArgs, args),
|
||||
};
|
||||
return combineParameters(actionArgTypes, argTypes) as ArgTypes;
|
||||
};
|
||||
|
||||
/**
|
||||
* Add action args for list of strings.
|
||||
*/
|
||||
export const addActionsFromArgTypes: ParameterEnhancer = (context) => {
|
||||
const { args, argTypes, actions } = context.parameters;
|
||||
export const addActionsFromArgTypes: ArgTypesEnhancer = (context) => {
|
||||
const { argTypes, actions } = context.parameters;
|
||||
if (actions?.disable || !argTypes) {
|
||||
return null;
|
||||
return argTypes;
|
||||
}
|
||||
|
||||
const actionArgs = Object.keys(argTypes).reduce((acc, argName) => {
|
||||
const actionArgTypes = Object.keys(argTypes).reduce((acc, argName) => {
|
||||
const argType: ArgType = argTypes[argName];
|
||||
if (argType.action) {
|
||||
const message = typeof argType.action === 'string' ? argType.action : argName;
|
||||
acc[argName] = action(message);
|
||||
acc[argName] = { defaultValue: action(message) };
|
||||
}
|
||||
return acc;
|
||||
}, {} as Args);
|
||||
}, {} as ArgTypes);
|
||||
|
||||
return {
|
||||
args: combineParameters(actionArgs, args),
|
||||
};
|
||||
return combineParameters(actionArgTypes, argTypes) as ArgTypes;
|
||||
};
|
||||
|
||||
export const parameterEnhancers = [addActionsFromArgTypes, inferActionsFromArgTypesRegex];
|
||||
export const argTypesEnhancers = [addActionsFromArgTypes, inferActionsFromArgTypesRegex];
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-backgrounds",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"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-alpha.31",
|
||||
"@storybook/api": "6.0.0-alpha.31",
|
||||
"@storybook/client-logger": "6.0.0-alpha.31",
|
||||
"@storybook/components": "6.0.0-alpha.31",
|
||||
"@storybook/core-events": "6.0.0-alpha.31",
|
||||
"@storybook/theming": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/api": "6.0.0-alpha.33",
|
||||
"@storybook/client-logger": "6.0.0-alpha.33",
|
||||
"@storybook/components": "6.0.0-alpha.33",
|
||||
"@storybook/core-events": "6.0.0-alpha.33",
|
||||
"@storybook/theming": "6.0.0-alpha.33",
|
||||
"core-js": "^3.0.1",
|
||||
"memoizerific": "^1.11.3",
|
||||
"react": "^16.8.3",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-contexts",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"description": "Storybook Addon Contexts",
|
||||
"keywords": [
|
||||
"preact",
|
||||
@ -28,10 +28,10 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.0.0-alpha.31",
|
||||
"@storybook/api": "6.0.0-alpha.31",
|
||||
"@storybook/components": "6.0.0-alpha.31",
|
||||
"@storybook/core-events": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/api": "6.0.0-alpha.33",
|
||||
"@storybook/components": "6.0.0-alpha.33",
|
||||
"@storybook/core-events": "6.0.0-alpha.33",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"qs": "^6.6.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-cssresources",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"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-alpha.31",
|
||||
"@storybook/api": "6.0.0-alpha.31",
|
||||
"@storybook/components": "6.0.0-alpha.31",
|
||||
"@storybook/core-events": "6.0.0-alpha.31",
|
||||
"@storybook/theming": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/api": "6.0.0-alpha.33",
|
||||
"@storybook/components": "6.0.0-alpha.33",
|
||||
"@storybook/core-events": "6.0.0-alpha.33",
|
||||
"@storybook/theming": "6.0.0-alpha.33",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"react": "^16.8.3",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-design-assets",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"description": "Design asset preview for storybook",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -34,12 +34,12 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.0.0-alpha.31",
|
||||
"@storybook/api": "6.0.0-alpha.31",
|
||||
"@storybook/client-logger": "6.0.0-alpha.31",
|
||||
"@storybook/components": "6.0.0-alpha.31",
|
||||
"@storybook/core-events": "6.0.0-alpha.31",
|
||||
"@storybook/theming": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/api": "6.0.0-alpha.33",
|
||||
"@storybook/client-logger": "6.0.0-alpha.33",
|
||||
"@storybook/components": "6.0.0-alpha.33",
|
||||
"@storybook/core-events": "6.0.0-alpha.33",
|
||||
"@storybook/theming": "6.0.0-alpha.33",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"react": "^16.8.3",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-docs",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"description": "Superior documentation for your components",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -48,16 +48,16 @@
|
||||
"@mdx-js/loader": "^1.5.1",
|
||||
"@mdx-js/mdx": "^1.5.1",
|
||||
"@mdx-js/react": "^1.5.1",
|
||||
"@storybook/addons": "6.0.0-alpha.31",
|
||||
"@storybook/api": "6.0.0-alpha.31",
|
||||
"@storybook/client-api": "6.0.0-alpha.31",
|
||||
"@storybook/components": "6.0.0-alpha.31",
|
||||
"@storybook/core-events": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/api": "6.0.0-alpha.33",
|
||||
"@storybook/client-api": "6.0.0-alpha.33",
|
||||
"@storybook/components": "6.0.0-alpha.33",
|
||||
"@storybook/core-events": "6.0.0-alpha.33",
|
||||
"@storybook/csf": "0.0.1",
|
||||
"@storybook/node-logger": "6.0.0-alpha.31",
|
||||
"@storybook/postinstall": "6.0.0-alpha.31",
|
||||
"@storybook/source-loader": "6.0.0-alpha.31",
|
||||
"@storybook/theming": "6.0.0-alpha.31",
|
||||
"@storybook/node-logger": "6.0.0-alpha.33",
|
||||
"@storybook/postinstall": "6.0.0-alpha.33",
|
||||
"@storybook/source-loader": "6.0.0-alpha.33",
|
||||
"@storybook/theming": "6.0.0-alpha.33",
|
||||
"acorn": "^7.1.0",
|
||||
"acorn-jsx": "^5.1.0",
|
||||
"acorn-walk": "^7.0.0",
|
||||
@ -83,8 +83,8 @@
|
||||
"@babel/core": "^7.8.4",
|
||||
"@emotion/core": "^10.0.20",
|
||||
"@emotion/styled": "^10.0.17",
|
||||
"@storybook/react": "6.0.0-alpha.31",
|
||||
"@storybook/web-components": "6.0.0-alpha.31",
|
||||
"@storybook/react": "6.0.0-alpha.33",
|
||||
"@storybook/web-components": "6.0.0-alpha.33",
|
||||
"@types/doctrine": "^0.0.3",
|
||||
"@types/enzyme": "^3.10.3",
|
||||
"@types/jest": "^25.1.1",
|
||||
|
@ -1 +0,0 @@
|
||||
module.exports = require('../dist/frameworks/react/config');
|
@ -2,6 +2,7 @@ import React, { FunctionComponent } from 'react';
|
||||
import { Source, SourceProps as PureSourceProps, SourceError } from '@storybook/components';
|
||||
import { DocsContext, DocsContextProps } from './DocsContext';
|
||||
import { CURRENT_SELECTION } from './types';
|
||||
import { enhanceSource } from './enhanceSource';
|
||||
|
||||
interface CommonProps {
|
||||
language?: string;
|
||||
@ -39,7 +40,8 @@ export const getSourceProps = (
|
||||
source = targetIds
|
||||
.map((sourceId) => {
|
||||
const data = storyStore.fromId(sourceId);
|
||||
return data?.parameters?.docs?.source?.code || '';
|
||||
const enhanced = enhanceSource(data);
|
||||
return enhanced?.docs?.source?.code || '';
|
||||
})
|
||||
.join('\n\n');
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
import { ParameterEnhancer, combineParameters } from '@storybook/client-api';
|
||||
import { combineParameters } from '@storybook/client-api';
|
||||
import { StoryContext, Parameters } from '@storybook/addons';
|
||||
|
||||
interface Location {
|
||||
line: number;
|
||||
@ -36,7 +37,7 @@ const extract = (targetId: string, { source, locationsMap }: StorySource) => {
|
||||
].join('\n');
|
||||
};
|
||||
|
||||
export const enhanceSource: ParameterEnhancer = (context) => {
|
||||
export const enhanceSource = (context: StoryContext): Parameters => {
|
||||
const { id, parameters } = context;
|
||||
const { storySource, docs = {} } = parameters;
|
||||
const { formatSource } = docs;
|
@ -1,6 +1,5 @@
|
||||
/* eslint-disable-next-line import/no-extraneous-dependencies */
|
||||
import { DocsPage, DocsContainer } from '@storybook/addon-docs/blocks';
|
||||
import { enhanceSource } from './enhanceSource';
|
||||
|
||||
export const parameters = {
|
||||
docs: {
|
||||
@ -8,5 +7,3 @@ export const parameters = {
|
||||
page: DocsPage,
|
||||
},
|
||||
};
|
||||
|
||||
export const parameterEnhancers = [enhanceSource];
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-essentials",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"description": "Curated addons to bring out the best of Storybook",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -28,11 +28,11 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addon-backgrounds": "6.0.0-alpha.31",
|
||||
"@storybook/addon-viewport": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.31",
|
||||
"@storybook/api": "6.0.0-alpha.31",
|
||||
"@storybook/node-logger": "6.0.0-alpha.31",
|
||||
"@storybook/addon-backgrounds": "6.0.0-alpha.33",
|
||||
"@storybook/addon-viewport": "6.0.0-alpha.33",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/api": "6.0.0-alpha.33",
|
||||
"@storybook/node-logger": "6.0.0-alpha.33",
|
||||
"core-js": "^3.0.1",
|
||||
"regenerator-runtime": "^0.13.3",
|
||||
"ts-dedent": "^1.1.1"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-events",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"description": "Add events to your Storybook stories.",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -31,11 +31,11 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.0.0-alpha.31",
|
||||
"@storybook/api": "6.0.0-alpha.31",
|
||||
"@storybook/client-api": "6.0.0-alpha.31",
|
||||
"@storybook/core-events": "6.0.0-alpha.31",
|
||||
"@storybook/theming": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/api": "6.0.0-alpha.33",
|
||||
"@storybook/client-api": "6.0.0-alpha.33",
|
||||
"@storybook/core-events": "6.0.0-alpha.33",
|
||||
"@storybook/theming": "6.0.0-alpha.33",
|
||||
"core-js": "^3.0.1",
|
||||
"format-json": "^1.0.3",
|
||||
"lodash": "^4.17.15",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-google-analytics",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"description": "Storybook addon for google analytics",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -20,8 +20,8 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.0.0-alpha.31",
|
||||
"@storybook/core-events": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/core-events": "6.0.0-alpha.33",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"react-ga": "^2.5.7",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-graphql",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"description": "Storybook addon to display the GraphiQL IDE",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -30,8 +30,8 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/plugin-transform-classes": "^7.9.2",
|
||||
"@storybook/addons": "6.0.0-alpha.31",
|
||||
"@storybook/api": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/api": "6.0.0-alpha.33",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"graphiql": "^0.17.5",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-jest",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"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-alpha.31",
|
||||
"@storybook/api": "6.0.0-alpha.31",
|
||||
"@storybook/components": "6.0.0-alpha.31",
|
||||
"@storybook/core-events": "6.0.0-alpha.31",
|
||||
"@storybook/theming": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/api": "6.0.0-alpha.33",
|
||||
"@storybook/components": "6.0.0-alpha.33",
|
||||
"@storybook/core-events": "6.0.0-alpha.33",
|
||||
"@storybook/theming": "6.0.0-alpha.33",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"react": "^16.8.3",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-knobs",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"description": "Storybook Addon Prop Editor Component",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -29,13 +29,13 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.0.0-alpha.31",
|
||||
"@storybook/api": "6.0.0-alpha.31",
|
||||
"@storybook/channels": "6.0.0-alpha.31",
|
||||
"@storybook/client-api": "6.0.0-alpha.31",
|
||||
"@storybook/components": "6.0.0-alpha.31",
|
||||
"@storybook/core-events": "6.0.0-alpha.31",
|
||||
"@storybook/theming": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/api": "6.0.0-alpha.33",
|
||||
"@storybook/channels": "6.0.0-alpha.33",
|
||||
"@storybook/client-api": "6.0.0-alpha.33",
|
||||
"@storybook/components": "6.0.0-alpha.33",
|
||||
"@storybook/core-events": "6.0.0-alpha.33",
|
||||
"@storybook/theming": "6.0.0-alpha.33",
|
||||
"@types/react-color": "^3.0.1",
|
||||
"copy-to-clipboard": "^3.0.8",
|
||||
"core-js": "^3.0.1",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-links",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"description": "Story Links addon for storybook",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -29,11 +29,11 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.0.0-alpha.31",
|
||||
"@storybook/client-logger": "6.0.0-alpha.31",
|
||||
"@storybook/core-events": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/client-logger": "6.0.0-alpha.33",
|
||||
"@storybook/core-events": "6.0.0-alpha.33",
|
||||
"@storybook/csf": "0.0.1",
|
||||
"@storybook/router": "6.0.0-alpha.31",
|
||||
"@storybook/router": "6.0.0-alpha.33",
|
||||
"@types/qs": "^6.9.0",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-queryparams",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"description": "parameter addon for storybook",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -30,12 +30,12 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.0.0-alpha.31",
|
||||
"@storybook/api": "6.0.0-alpha.31",
|
||||
"@storybook/client-logger": "6.0.0-alpha.31",
|
||||
"@storybook/components": "6.0.0-alpha.31",
|
||||
"@storybook/core-events": "6.0.0-alpha.31",
|
||||
"@storybook/theming": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/api": "6.0.0-alpha.33",
|
||||
"@storybook/client-logger": "6.0.0-alpha.33",
|
||||
"@storybook/components": "6.0.0-alpha.33",
|
||||
"@storybook/core-events": "6.0.0-alpha.33",
|
||||
"@storybook/theming": "6.0.0-alpha.33",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"qs": "^6.6.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-storyshots",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"description": "StoryShots is a Jest Snapshot Testing Addon for Storybook.",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -33,9 +33,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@jest/transform": "^25.2.4",
|
||||
"@storybook/addons": "6.0.0-alpha.31",
|
||||
"@storybook/client-api": "6.0.0-alpha.31",
|
||||
"@storybook/core": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/client-api": "6.0.0-alpha.33",
|
||||
"@storybook/core": "6.0.0-alpha.33",
|
||||
"@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-alpha.31",
|
||||
"@storybook/react": "6.0.0-alpha.31",
|
||||
"@storybook/addon-docs": "6.0.0-alpha.33",
|
||||
"@storybook/react": "6.0.0-alpha.33",
|
||||
"babel-loader": "^8.0.6",
|
||||
"enzyme": "^3.11.0",
|
||||
"enzyme-to-json": "^3.4.1",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-storyshots-puppeteer",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"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-alpha.31",
|
||||
"@storybook/node-logger": "6.0.0-alpha.33",
|
||||
"@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-alpha.31",
|
||||
"@storybook/addon-storyshots": "6.0.0-alpha.33",
|
||||
"puppeteer": "^1.12.2 || ^2.0.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-storysource",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"description": "Stories addon for storybook",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -29,13 +29,13 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.0.0-alpha.31",
|
||||
"@storybook/api": "6.0.0-alpha.31",
|
||||
"@storybook/client-logger": "6.0.0-alpha.31",
|
||||
"@storybook/components": "6.0.0-alpha.31",
|
||||
"@storybook/router": "6.0.0-alpha.31",
|
||||
"@storybook/source-loader": "6.0.0-alpha.31",
|
||||
"@storybook/theming": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/api": "6.0.0-alpha.33",
|
||||
"@storybook/client-logger": "6.0.0-alpha.33",
|
||||
"@storybook/components": "6.0.0-alpha.33",
|
||||
"@storybook/router": "6.0.0-alpha.33",
|
||||
"@storybook/source-loader": "6.0.0-alpha.33",
|
||||
"@storybook/theming": "6.0.0-alpha.33",
|
||||
"core-js": "^3.0.1",
|
||||
"estraverse": "^4.2.0",
|
||||
"loader-utils": "^2.0.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-toolbars",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"description": "Storybook toolbars addon",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -30,10 +30,10 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.0.0-alpha.31",
|
||||
"@storybook/api": "6.0.0-alpha.31",
|
||||
"@storybook/client-api": "6.0.0-alpha.31",
|
||||
"@storybook/components": "6.0.0-alpha.31"
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/api": "6.0.0-alpha.33",
|
||||
"@storybook/client-api": "6.0.0-alpha.33",
|
||||
"@storybook/components": "6.0.0-alpha.33"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "*"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-viewport",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"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-alpha.31",
|
||||
"@storybook/api": "6.0.0-alpha.31",
|
||||
"@storybook/client-logger": "6.0.0-alpha.31",
|
||||
"@storybook/components": "6.0.0-alpha.31",
|
||||
"@storybook/core-events": "6.0.0-alpha.31",
|
||||
"@storybook/theming": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/api": "6.0.0-alpha.33",
|
||||
"@storybook/client-logger": "6.0.0-alpha.33",
|
||||
"@storybook/components": "6.0.0-alpha.33",
|
||||
"@storybook/core-events": "6.0.0-alpha.33",
|
||||
"@storybook/theming": "6.0.0-alpha.33",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"memoizerific": "^1.11.3",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/angular",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"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-alpha.31",
|
||||
"@storybook/core": "6.0.0-alpha.31",
|
||||
"@storybook/node-logger": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/core": "6.0.0-alpha.33",
|
||||
"@storybook/node-logger": "6.0.0-alpha.33",
|
||||
"@types/webpack-env": "^1.15.1",
|
||||
"core-js": "^3.0.1",
|
||||
"fork-ts-checker-webpack-plugin": "^4.0.3",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/ember",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"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-alpha.31",
|
||||
"@storybook/core": "6.0.0-alpha.33",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"regenerator-runtime": "^0.13.3",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/html",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"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-alpha.31",
|
||||
"@storybook/core": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/core": "6.0.0-alpha.33",
|
||||
"@types/webpack-env": "^1.15.1",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/marionette",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"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-alpha.31",
|
||||
"@storybook/core": "6.0.0-alpha.33",
|
||||
"common-tags": "^1.8.0",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/marko",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"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-alpha.31",
|
||||
"@storybook/core": "6.0.0-alpha.31",
|
||||
"@storybook/client-logger": "6.0.0-alpha.33",
|
||||
"@storybook/core": "6.0.0-alpha.33",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"regenerator-runtime": "^0.13.3",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/mithril",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"description": "Storybook for Mithril: Develop Mithril Component in isolation.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -36,8 +36,8 @@
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.8.4",
|
||||
"@babel/plugin-transform-react-jsx": "^7.3.0",
|
||||
"@storybook/addons": "6.0.0-alpha.31",
|
||||
"@storybook/core": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/core": "6.0.0-alpha.33",
|
||||
"@types/mithril": "^2.0.0",
|
||||
"@types/webpack-env": "^1.15.1",
|
||||
"core-js": "^3.0.1",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/preact",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"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-alpha.31",
|
||||
"@storybook/core": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/core": "6.0.0-alpha.33",
|
||||
"@types/webpack-env": "^1.15.1",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/rax",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"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-alpha.31",
|
||||
"@storybook/core": "6.0.0-alpha.33",
|
||||
"babel-preset-rax": "^1.0.0-beta.0",
|
||||
"core-js": "^3.0.1",
|
||||
"driver-dom": "^2.0.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/react",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"description": "Storybook for React: Develop React Component in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -37,9 +37,9 @@
|
||||
"@babel/plugin-transform-react-constant-elements": "^7.6.3",
|
||||
"@babel/preset-flow": "^7.0.0",
|
||||
"@babel/preset-react": "^7.0.0",
|
||||
"@storybook/addons": "6.0.0-alpha.31",
|
||||
"@storybook/core": "6.0.0-alpha.31",
|
||||
"@storybook/node-logger": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/core": "6.0.0-alpha.33",
|
||||
"@storybook/node-logger": "6.0.0-alpha.33",
|
||||
"@svgr/webpack": "^5.1.0",
|
||||
"@types/webpack-env": "^1.15.1",
|
||||
"babel-plugin-add-react-displayname": "^0.0.5",
|
||||
@ -57,7 +57,7 @@
|
||||
"webpack": "^4.33.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/client-api": "6.0.0-alpha.31",
|
||||
"@storybook/client-api": "6.0.0-alpha.33",
|
||||
"@types/mini-css-extract-plugin": "^0.9.0",
|
||||
"@types/node": "^13.9.5",
|
||||
"@types/webpack": "^4.41.9"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/riot",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"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-alpha.31",
|
||||
"@storybook/core": "6.0.0-alpha.33",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"raw-loader": "^4.0.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/server",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"description": "Storybook for Server: View HTML snippets from a server in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -34,8 +34,8 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.0.0-alpha.31",
|
||||
"@storybook/core": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/core": "6.0.0-alpha.33",
|
||||
"@storybook/node-logger": "^5.2.8",
|
||||
"@types/webpack-env": "^1.13.9",
|
||||
"core-js": "^3.0.1",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/svelte",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"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-alpha.31",
|
||||
"@storybook/core": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/core": "6.0.0-alpha.33",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"regenerator-runtime": "^0.13.3",
|
||||
|
@ -19,7 +19,7 @@ For more information visit: [storybook.js.org](https://storybook.js.org)
|
||||
|
||||
## Starter Storybook-for-Vue Boilerplate project with [Vuetify](https://github.com/vuetifyjs/vuetify) Material Component Framework
|
||||
|
||||
<https://github.com/white-rabbit-japan/vuetify-storyboard-boilerplate>
|
||||
<https://github.com/white-rabbit-japan/vue-vuetify-storybook>
|
||||
|
||||
---
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/vue",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"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-alpha.31",
|
||||
"@storybook/core": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/core": "6.0.0-alpha.33",
|
||||
"@types/webpack-env": "^1.15.1",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/web-components",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"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-alpha.31",
|
||||
"@storybook/core": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/core": "6.0.0-alpha.33",
|
||||
"@types/webpack-env": "^1.15.1",
|
||||
"babel-plugin-bundled-import-meta": "^0.3.1",
|
||||
"core-js": "^3.0.1",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-decorator",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"description": "decorator addon for storybook",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -24,8 +24,8 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.0.0-alpha.31",
|
||||
"@storybook/client-api": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/client-api": "6.0.0-alpha.33",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.4.0"
|
||||
},
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-parameter",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"description": "parameter addon for storybook",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -24,12 +24,12 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.0.0-alpha.31",
|
||||
"@storybook/api": "6.0.0-alpha.31",
|
||||
"@storybook/client-logger": "6.0.0-alpha.31",
|
||||
"@storybook/components": "6.0.0-alpha.31",
|
||||
"@storybook/core-events": "6.0.0-alpha.31",
|
||||
"@storybook/theming": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/api": "6.0.0-alpha.33",
|
||||
"@storybook/client-logger": "6.0.0-alpha.33",
|
||||
"@storybook/components": "6.0.0-alpha.33",
|
||||
"@storybook/core-events": "6.0.0-alpha.33",
|
||||
"@storybook/theming": "6.0.0-alpha.33",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"react": "^16.8.3",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-preview-wrapper",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"description": "preview wrapper addon for storybook",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -24,7 +24,7 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"react": "^16.8.3"
|
||||
},
|
||||
"publishConfig": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-roundtrip",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"description": "roundtrip addon for storybook",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -24,13 +24,13 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "6.0.0-alpha.31",
|
||||
"@storybook/api": "6.0.0-alpha.31",
|
||||
"@storybook/client-api": "6.0.0-alpha.31",
|
||||
"@storybook/client-logger": "6.0.0-alpha.31",
|
||||
"@storybook/components": "6.0.0-alpha.31",
|
||||
"@storybook/core-events": "6.0.0-alpha.31",
|
||||
"@storybook/theming": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/api": "6.0.0-alpha.33",
|
||||
"@storybook/client-api": "6.0.0-alpha.33",
|
||||
"@storybook/client-logger": "6.0.0-alpha.33",
|
||||
"@storybook/components": "6.0.0-alpha.33",
|
||||
"@storybook/core-events": "6.0.0-alpha.33",
|
||||
"@storybook/theming": "6.0.0-alpha.33",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"react": "^16.8.3",
|
||||
|
@ -99,6 +99,10 @@ Add different paddings to your preview. Useful for checking how components behav
|
||||
Given possible values for each prop, renders your component with all combinations of prop values.
|
||||
Useful for finding edge cases or seeing all component states at once.
|
||||
|
||||
### [Performance](https://github.com/atlassian-labs/storybook-addon-performance)
|
||||
|
||||
This addon will help you better understand and debug performance for `React` components.
|
||||
|
||||
### [Material-UI](https://github.com/sm-react/storybook-addon-material-ui)
|
||||
|
||||
Wraps your story into MuiThemeProvider.
|
||||
|
@ -18,4 +18,4 @@ Here are some featured Storybooks to see how it works:
|
||||
- [Demo of React Dates](http://airbnb.io/react-dates/) - [source](https://github.com/airbnb/react-dates)
|
||||
- [Demo of React Native Web](https://necolas.github.io/react-native-web/docs/) - [source](https://github.com/necolas/react-native-web)
|
||||
|
||||
Read the Learn Storybook [tutorial](https://www.learnstorybook.com) for a step by step guide to building an app with Storybook and to see how building components in isolation can supercharge your app development workflow.
|
||||
Read the Learn Storybook [tutorial](https://www.learnstorybook.com) for a step-by-step guide to building an app with Storybook and to see how building components in isolation can supercharge your app development workflow.
|
||||
|
@ -5,7 +5,7 @@ title: 'Custom Webpack Config'
|
||||
|
||||
> migration guide: This page documents the method to configure storybook introduced recently in 5.3.0, consult the [migration guide](https://github.com/storybookjs/storybook/blob/next/MIGRATION.md) if you want to migrate to this format of configuring storybook.
|
||||
|
||||
You can customize Storybook's webpack setup by providing a `webpack` field in `main.js` file.
|
||||
You can customize Storybook's webpack setup by providing a `webpackFinal` field in `main.js` file.
|
||||
The value should be an async function that receives a webpack config and eventually returns a webpack config.
|
||||
|
||||
Storybook has its own Webpack setup and a dev server.
|
||||
|
@ -1 +1 @@
|
||||
{"version":"6.0.0-alpha.31","info":{"plain":"### Bug Fixes\n\n* Core: Fix ie11 compatibility ([#10281](https://github.com/storybookjs/storybook/pull/10281))\n* Core: Add .cjs & .mjs to interpret-files ([#10288](https://github.com/storybookjs/storybook/pull/10288))\n* Core: Fix source-map strategy for production ([#10290](https://github.com/storybookjs/storybook/pull/10290))\n* Addon-knobs: Allow `text` and `number` to take undefined values ([#10101](https://github.com/storybookjs/storybook/pull/10101))\n\n### Maintenance\n\n* Core: Warn about deprecated config files ([#10097](https://github.com/storybookjs/storybook/pull/10097))\n* Yarn 2: rework imports in webpack preview virtual module to fix compatibility ([#10305](https://github.com/storybookjs/storybook/pull/10305))\n* Addon-centered: Move to deprecated-addons ([#10300](https://github.com/storybookjs/storybook/pull/10300))"}}
|
||||
{"version":"6.0.0-alpha.33","info":{"plain":"### Breaking prerelease\n\n- Core: Rename ParameterEnhancer to ArgsEnhancer ([#10398](https://github.com/storybookjs/storybook/pull/10398))\n\n### Bug Fixes\n\n- Core: Fix `webpackFinal` being called twice ([#10402](https://github.com/storybookjs/storybook/pull/10402))\n- Core: Fix legacy redirect ([#10404](https://github.com/storybookjs/storybook/pull/10404))\n\n### Maintenance\n\n- CLI: Update fixtures used for CLI tests ([#10396](https://github.com/storybookjs/storybook/pull/10396))\n- Build: Update bootstrap to install optional deps on CI ([#10408](https://github.com/storybookjs/storybook/pull/10408))\n- Addon-docs: Format source at render time ([#10383](https://github.com/storybookjs/storybook/pull/10383))"}}
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "angular-cli",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"private": true,
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
@ -37,18 +37,18 @@
|
||||
"@angular/cli": "^9.1.0",
|
||||
"@angular/compiler-cli": "^9.1.0",
|
||||
"@compodoc/compodoc": "^1.1.11",
|
||||
"@storybook/addon-a11y": "6.0.0-alpha.31",
|
||||
"@storybook/addon-actions": "6.0.0-alpha.31",
|
||||
"@storybook/addon-backgrounds": "6.0.0-alpha.31",
|
||||
"@storybook/addon-docs": "6.0.0-alpha.31",
|
||||
"@storybook/addon-jest": "6.0.0-alpha.31",
|
||||
"@storybook/addon-knobs": "6.0.0-alpha.31",
|
||||
"@storybook/addon-links": "6.0.0-alpha.31",
|
||||
"@storybook/addon-storyshots": "6.0.0-alpha.31",
|
||||
"@storybook/addon-storysource": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.31",
|
||||
"@storybook/angular": "6.0.0-alpha.31",
|
||||
"@storybook/source-loader": "6.0.0-alpha.31",
|
||||
"@storybook/addon-a11y": "6.0.0-alpha.33",
|
||||
"@storybook/addon-actions": "6.0.0-alpha.33",
|
||||
"@storybook/addon-backgrounds": "6.0.0-alpha.33",
|
||||
"@storybook/addon-docs": "6.0.0-alpha.33",
|
||||
"@storybook/addon-jest": "6.0.0-alpha.33",
|
||||
"@storybook/addon-knobs": "6.0.0-alpha.33",
|
||||
"@storybook/addon-links": "6.0.0-alpha.33",
|
||||
"@storybook/addon-storyshots": "6.0.0-alpha.33",
|
||||
"@storybook/addon-storysource": "6.0.0-alpha.33",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/angular": "6.0.0-alpha.33",
|
||||
"@storybook/source-loader": "6.0.0-alpha.33",
|
||||
"@types/core-js": "^2.5.0",
|
||||
"@types/jest": "^25.1.1",
|
||||
"@types/node": "^13.9.5",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cra-kitchen-sink",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "react-scripts build",
|
||||
@ -18,19 +18,19 @@
|
||||
"react-lifecycles-compat": "^3.0.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-a11y": "6.0.0-alpha.31",
|
||||
"@storybook/addon-actions": "6.0.0-alpha.31",
|
||||
"@storybook/addon-backgrounds": "6.0.0-alpha.31",
|
||||
"@storybook/addon-docs": "6.0.0-alpha.31",
|
||||
"@storybook/addon-events": "6.0.0-alpha.31",
|
||||
"@storybook/addon-jest": "6.0.0-alpha.31",
|
||||
"@storybook/addon-knobs": "6.0.0-alpha.31",
|
||||
"@storybook/addon-links": "6.0.0-alpha.31",
|
||||
"@storybook/addon-storyshots": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.31",
|
||||
"@storybook/client-logger": "6.0.0-alpha.31",
|
||||
"@storybook/react": "6.0.0-alpha.31",
|
||||
"@storybook/theming": "6.0.0-alpha.31",
|
||||
"@storybook/addon-a11y": "6.0.0-alpha.33",
|
||||
"@storybook/addon-actions": "6.0.0-alpha.33",
|
||||
"@storybook/addon-backgrounds": "6.0.0-alpha.33",
|
||||
"@storybook/addon-docs": "6.0.0-alpha.33",
|
||||
"@storybook/addon-events": "6.0.0-alpha.33",
|
||||
"@storybook/addon-jest": "6.0.0-alpha.33",
|
||||
"@storybook/addon-knobs": "6.0.0-alpha.33",
|
||||
"@storybook/addon-links": "6.0.0-alpha.33",
|
||||
"@storybook/addon-storyshots": "6.0.0-alpha.33",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/client-logger": "6.0.0-alpha.33",
|
||||
"@storybook/react": "6.0.0-alpha.33",
|
||||
"@storybook/theming": "6.0.0-alpha.33",
|
||||
"react-scripts": "^3.0.1"
|
||||
},
|
||||
"storybook": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cra-react15",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "react-scripts build",
|
||||
@ -18,11 +18,11 @@
|
||||
"react-scripts": "3.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-actions": "6.0.0-alpha.31",
|
||||
"@storybook/addon-links": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.31",
|
||||
"@storybook/react": "6.0.0-alpha.31",
|
||||
"@storybook/theming": "6.0.0-alpha.31",
|
||||
"@storybook/addon-actions": "6.0.0-alpha.33",
|
||||
"@storybook/addon-links": "6.0.0-alpha.33",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/react": "6.0.0-alpha.33",
|
||||
"@storybook/theming": "6.0.0-alpha.33",
|
||||
"babel-core": "6",
|
||||
"babel-runtime": "6"
|
||||
},
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cra-ts-essentials",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "react-scripts build",
|
||||
@ -34,10 +34,10 @@
|
||||
"typescript": "3.8.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-essentials": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.31",
|
||||
"@storybook/addon-essentials": "6.0.0-alpha.33",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/preset-create-react-app": "^2.1.1",
|
||||
"@storybook/react": "6.0.0-alpha.31"
|
||||
"@storybook/react": "6.0.0-alpha.33"
|
||||
},
|
||||
"storybook": {
|
||||
"chromatic": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cra-ts-kitchen-sink",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "react-scripts build",
|
||||
@ -34,13 +34,13 @@
|
||||
"typescript": "3.8.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-a11y": "6.0.0-alpha.31",
|
||||
"@storybook/addon-actions": "6.0.0-alpha.31",
|
||||
"@storybook/addon-knobs": "6.0.0-alpha.31",
|
||||
"@storybook/addon-links": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.31",
|
||||
"@storybook/addon-a11y": "6.0.0-alpha.33",
|
||||
"@storybook/addon-actions": "6.0.0-alpha.33",
|
||||
"@storybook/addon-knobs": "6.0.0-alpha.33",
|
||||
"@storybook/addon-links": "6.0.0-alpha.33",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/preset-create-react-app": "^2.1.1",
|
||||
"@storybook/react": "6.0.0-alpha.31",
|
||||
"@storybook/react": "6.0.0-alpha.33",
|
||||
"@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-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"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-alpha.31",
|
||||
"@storybook/addon-parameter": "6.0.0-alpha.31",
|
||||
"@storybook/addon-preview-wrapper": "6.0.0-alpha.31",
|
||||
"@storybook/addon-roundtrip": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.31",
|
||||
"@storybook/api": "6.0.0-alpha.31",
|
||||
"@storybook/client-api": "6.0.0-alpha.31",
|
||||
"@storybook/components": "6.0.0-alpha.31",
|
||||
"@storybook/core-events": "6.0.0-alpha.31",
|
||||
"@storybook/node-logger": "6.0.0-alpha.31",
|
||||
"@storybook/react": "6.0.0-alpha.31",
|
||||
"@storybook/theming": "6.0.0-alpha.31",
|
||||
"@storybook/addon-decorator": "6.0.0-alpha.33",
|
||||
"@storybook/addon-parameter": "6.0.0-alpha.33",
|
||||
"@storybook/addon-preview-wrapper": "6.0.0-alpha.33",
|
||||
"@storybook/addon-roundtrip": "6.0.0-alpha.33",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/api": "6.0.0-alpha.33",
|
||||
"@storybook/client-api": "6.0.0-alpha.33",
|
||||
"@storybook/components": "6.0.0-alpha.33",
|
||||
"@storybook/core-events": "6.0.0-alpha.33",
|
||||
"@storybook/node-logger": "6.0.0-alpha.33",
|
||||
"@storybook/react": "6.0.0-alpha.33",
|
||||
"@storybook/theming": "6.0.0-alpha.33",
|
||||
"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-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "ember build --output-path ember-output",
|
||||
@ -16,18 +16,18 @@
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.8.4",
|
||||
"@ember/optional-features": "^1.3.0",
|
||||
"@storybook/addon-a11y": "6.0.0-alpha.31",
|
||||
"@storybook/addon-actions": "6.0.0-alpha.31",
|
||||
"@storybook/addon-backgrounds": "6.0.0-alpha.31",
|
||||
"@storybook/addon-docs": "6.0.0-alpha.31",
|
||||
"@storybook/addon-knobs": "6.0.0-alpha.31",
|
||||
"@storybook/addon-links": "6.0.0-alpha.31",
|
||||
"@storybook/addon-storysource": "6.0.0-alpha.31",
|
||||
"@storybook/addon-viewport": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.31",
|
||||
"@storybook/ember": "6.0.0-alpha.31",
|
||||
"@storybook/addon-a11y": "6.0.0-alpha.33",
|
||||
"@storybook/addon-actions": "6.0.0-alpha.33",
|
||||
"@storybook/addon-backgrounds": "6.0.0-alpha.33",
|
||||
"@storybook/addon-docs": "6.0.0-alpha.33",
|
||||
"@storybook/addon-knobs": "6.0.0-alpha.33",
|
||||
"@storybook/addon-links": "6.0.0-alpha.33",
|
||||
"@storybook/addon-storysource": "6.0.0-alpha.33",
|
||||
"@storybook/addon-viewport": "6.0.0-alpha.33",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/ember": "6.0.0-alpha.33",
|
||||
"@storybook/ember-cli-storybook": "^0.2.1",
|
||||
"@storybook/source-loader": "6.0.0-alpha.31",
|
||||
"@storybook/source-loader": "6.0.0-alpha.33",
|
||||
"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-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"private": true,
|
||||
"description": "",
|
||||
"keywords": [],
|
||||
@ -13,23 +13,23 @@
|
||||
"storybook": "start-storybook -p 9006"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-a11y": "6.0.0-alpha.31",
|
||||
"@storybook/addon-actions": "6.0.0-alpha.31",
|
||||
"@storybook/addon-backgrounds": "6.0.0-alpha.31",
|
||||
"@storybook/addon-docs": "6.0.0-alpha.31",
|
||||
"@storybook/addon-events": "6.0.0-alpha.31",
|
||||
"@storybook/addon-jest": "6.0.0-alpha.31",
|
||||
"@storybook/addon-knobs": "6.0.0-alpha.31",
|
||||
"@storybook/addon-links": "6.0.0-alpha.31",
|
||||
"@storybook/addon-storyshots": "6.0.0-alpha.31",
|
||||
"@storybook/addon-storysource": "6.0.0-alpha.31",
|
||||
"@storybook/addon-viewport": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.31",
|
||||
"@storybook/client-api": "6.0.0-alpha.31",
|
||||
"@storybook/core": "6.0.0-alpha.31",
|
||||
"@storybook/core-events": "6.0.0-alpha.31",
|
||||
"@storybook/html": "6.0.0-alpha.31",
|
||||
"@storybook/source-loader": "6.0.0-alpha.31",
|
||||
"@storybook/addon-a11y": "6.0.0-alpha.33",
|
||||
"@storybook/addon-actions": "6.0.0-alpha.33",
|
||||
"@storybook/addon-backgrounds": "6.0.0-alpha.33",
|
||||
"@storybook/addon-docs": "6.0.0-alpha.33",
|
||||
"@storybook/addon-events": "6.0.0-alpha.33",
|
||||
"@storybook/addon-jest": "6.0.0-alpha.33",
|
||||
"@storybook/addon-knobs": "6.0.0-alpha.33",
|
||||
"@storybook/addon-links": "6.0.0-alpha.33",
|
||||
"@storybook/addon-storyshots": "6.0.0-alpha.33",
|
||||
"@storybook/addon-storysource": "6.0.0-alpha.33",
|
||||
"@storybook/addon-viewport": "6.0.0-alpha.33",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/client-api": "6.0.0-alpha.33",
|
||||
"@storybook/core": "6.0.0-alpha.33",
|
||||
"@storybook/core-events": "6.0.0-alpha.33",
|
||||
"@storybook/html": "6.0.0-alpha.33",
|
||||
"@storybook/source-loader": "6.0.0-alpha.33",
|
||||
"eventemitter3": "^4.0.0",
|
||||
"format-json": "^1.0.3",
|
||||
"global": "^4.3.2",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "marko-cli",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"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-alpha.31",
|
||||
"@storybook/addon-actions": "6.0.0-alpha.31",
|
||||
"@storybook/addon-knobs": "6.0.0-alpha.31",
|
||||
"@storybook/addon-storysource": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.31",
|
||||
"@storybook/marko": "6.0.0-alpha.31",
|
||||
"@storybook/source-loader": "6.0.0-alpha.31",
|
||||
"@storybook/addon-a11y": "6.0.0-alpha.33",
|
||||
"@storybook/addon-actions": "6.0.0-alpha.33",
|
||||
"@storybook/addon-knobs": "6.0.0-alpha.33",
|
||||
"@storybook/addon-storysource": "6.0.0-alpha.33",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/marko": "6.0.0-alpha.33",
|
||||
"@storybook/source-loader": "6.0.0-alpha.33",
|
||||
"prettier": "^2.0.2",
|
||||
"webpack": "^4.33.0"
|
||||
},
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "mithril-example",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build-storybook": "build-storybook",
|
||||
@ -10,17 +10,17 @@
|
||||
"mithril": "^1.1.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-a11y": "6.0.0-alpha.31",
|
||||
"@storybook/addon-actions": "6.0.0-alpha.31",
|
||||
"@storybook/addon-backgrounds": "6.0.0-alpha.31",
|
||||
"@storybook/addon-knobs": "6.0.0-alpha.31",
|
||||
"@storybook/addon-links": "6.0.0-alpha.31",
|
||||
"@storybook/addon-storyshots": "6.0.0-alpha.31",
|
||||
"@storybook/addon-storysource": "6.0.0-alpha.31",
|
||||
"@storybook/addon-viewport": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.31",
|
||||
"@storybook/mithril": "6.0.0-alpha.31",
|
||||
"@storybook/source-loader": "6.0.0-alpha.31",
|
||||
"@storybook/addon-a11y": "6.0.0-alpha.33",
|
||||
"@storybook/addon-actions": "6.0.0-alpha.33",
|
||||
"@storybook/addon-backgrounds": "6.0.0-alpha.33",
|
||||
"@storybook/addon-knobs": "6.0.0-alpha.33",
|
||||
"@storybook/addon-links": "6.0.0-alpha.33",
|
||||
"@storybook/addon-storyshots": "6.0.0-alpha.33",
|
||||
"@storybook/addon-storysource": "6.0.0-alpha.33",
|
||||
"@storybook/addon-viewport": "6.0.0-alpha.33",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/mithril": "6.0.0-alpha.33",
|
||||
"@storybook/source-loader": "6.0.0-alpha.33",
|
||||
"webpack": "^4.33.0"
|
||||
},
|
||||
"storybook": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "official-storybook",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build-storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true build-storybook -c ./",
|
||||
@ -14,32 +14,32 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@packtracker/webpack-plugin": "^2.0.1",
|
||||
"@storybook/addon-a11y": "6.0.0-alpha.31",
|
||||
"@storybook/addon-actions": "6.0.0-alpha.31",
|
||||
"@storybook/addon-backgrounds": "6.0.0-alpha.31",
|
||||
"@storybook/addon-contexts": "6.0.0-alpha.31",
|
||||
"@storybook/addon-cssresources": "6.0.0-alpha.31",
|
||||
"@storybook/addon-design-assets": "6.0.0-alpha.31",
|
||||
"@storybook/addon-docs": "6.0.0-alpha.31",
|
||||
"@storybook/addon-events": "6.0.0-alpha.31",
|
||||
"@storybook/addon-graphql": "6.0.0-alpha.31",
|
||||
"@storybook/addon-jest": "6.0.0-alpha.31",
|
||||
"@storybook/addon-knobs": "6.0.0-alpha.31",
|
||||
"@storybook/addon-links": "6.0.0-alpha.31",
|
||||
"@storybook/addon-queryparams": "6.0.0-alpha.31",
|
||||
"@storybook/addon-storyshots": "6.0.0-alpha.31",
|
||||
"@storybook/addon-storyshots-puppeteer": "6.0.0-alpha.31",
|
||||
"@storybook/addon-storysource": "6.0.0-alpha.31",
|
||||
"@storybook/addon-toolbars": "6.0.0-alpha.31",
|
||||
"@storybook/addon-viewport": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.31",
|
||||
"@storybook/cli": "6.0.0-alpha.31",
|
||||
"@storybook/components": "6.0.0-alpha.31",
|
||||
"@storybook/core-events": "6.0.0-alpha.31",
|
||||
"@storybook/node-logger": "6.0.0-alpha.31",
|
||||
"@storybook/react": "6.0.0-alpha.31",
|
||||
"@storybook/source-loader": "6.0.0-alpha.31",
|
||||
"@storybook/theming": "6.0.0-alpha.31",
|
||||
"@storybook/addon-a11y": "6.0.0-alpha.33",
|
||||
"@storybook/addon-actions": "6.0.0-alpha.33",
|
||||
"@storybook/addon-backgrounds": "6.0.0-alpha.33",
|
||||
"@storybook/addon-contexts": "6.0.0-alpha.33",
|
||||
"@storybook/addon-cssresources": "6.0.0-alpha.33",
|
||||
"@storybook/addon-design-assets": "6.0.0-alpha.33",
|
||||
"@storybook/addon-docs": "6.0.0-alpha.33",
|
||||
"@storybook/addon-events": "6.0.0-alpha.33",
|
||||
"@storybook/addon-graphql": "6.0.0-alpha.33",
|
||||
"@storybook/addon-jest": "6.0.0-alpha.33",
|
||||
"@storybook/addon-knobs": "6.0.0-alpha.33",
|
||||
"@storybook/addon-links": "6.0.0-alpha.33",
|
||||
"@storybook/addon-queryparams": "6.0.0-alpha.33",
|
||||
"@storybook/addon-storyshots": "6.0.0-alpha.33",
|
||||
"@storybook/addon-storyshots-puppeteer": "6.0.0-alpha.33",
|
||||
"@storybook/addon-storysource": "6.0.0-alpha.33",
|
||||
"@storybook/addon-toolbars": "6.0.0-alpha.33",
|
||||
"@storybook/addon-viewport": "6.0.0-alpha.33",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/cli": "6.0.0-alpha.33",
|
||||
"@storybook/components": "6.0.0-alpha.33",
|
||||
"@storybook/core-events": "6.0.0-alpha.33",
|
||||
"@storybook/node-logger": "6.0.0-alpha.33",
|
||||
"@storybook/react": "6.0.0-alpha.33",
|
||||
"@storybook/source-loader": "6.0.0-alpha.33",
|
||||
"@storybook/theming": "6.0.0-alpha.33",
|
||||
"cors": "^2.8.5",
|
||||
"cross-env": "^7.0.0",
|
||||
"enzyme-to-json": "^3.4.1",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "preact-example",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules",
|
||||
@ -15,18 +15,18 @@
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.8.4",
|
||||
"@babel/plugin-transform-runtime": "^7.2.0",
|
||||
"@storybook/addon-a11y": "6.0.0-alpha.31",
|
||||
"@storybook/addon-actions": "6.0.0-alpha.31",
|
||||
"@storybook/addon-backgrounds": "6.0.0-alpha.31",
|
||||
"@storybook/addon-contexts": "6.0.0-alpha.31",
|
||||
"@storybook/addon-knobs": "6.0.0-alpha.31",
|
||||
"@storybook/addon-links": "6.0.0-alpha.31",
|
||||
"@storybook/addon-storyshots": "6.0.0-alpha.31",
|
||||
"@storybook/addon-storysource": "6.0.0-alpha.31",
|
||||
"@storybook/addon-viewport": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.31",
|
||||
"@storybook/preact": "6.0.0-alpha.31",
|
||||
"@storybook/source-loader": "6.0.0-alpha.31",
|
||||
"@storybook/addon-a11y": "6.0.0-alpha.33",
|
||||
"@storybook/addon-actions": "6.0.0-alpha.33",
|
||||
"@storybook/addon-backgrounds": "6.0.0-alpha.33",
|
||||
"@storybook/addon-contexts": "6.0.0-alpha.33",
|
||||
"@storybook/addon-knobs": "6.0.0-alpha.33",
|
||||
"@storybook/addon-links": "6.0.0-alpha.33",
|
||||
"@storybook/addon-storyshots": "6.0.0-alpha.33",
|
||||
"@storybook/addon-storysource": "6.0.0-alpha.33",
|
||||
"@storybook/addon-viewport": "6.0.0-alpha.33",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/preact": "6.0.0-alpha.33",
|
||||
"@storybook/source-loader": "6.0.0-alpha.33",
|
||||
"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-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"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-alpha.31",
|
||||
"@storybook/addon-actions": "6.0.0-alpha.31",
|
||||
"@storybook/addon-backgrounds": "6.0.0-alpha.31",
|
||||
"@storybook/addon-events": "6.0.0-alpha.31",
|
||||
"@storybook/addon-jest": "6.0.0-alpha.31",
|
||||
"@storybook/addon-knobs": "6.0.0-alpha.31",
|
||||
"@storybook/addon-links": "6.0.0-alpha.31",
|
||||
"@storybook/addon-storyshots": "6.0.0-alpha.31",
|
||||
"@storybook/addon-storysource": "6.0.0-alpha.31",
|
||||
"@storybook/addon-viewport": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.31",
|
||||
"@storybook/rax": "6.0.0-alpha.31",
|
||||
"@storybook/source-loader": "6.0.0-alpha.31",
|
||||
"@storybook/theming": "6.0.0-alpha.31",
|
||||
"@storybook/addon-a11y": "6.0.0-alpha.33",
|
||||
"@storybook/addon-actions": "6.0.0-alpha.33",
|
||||
"@storybook/addon-backgrounds": "6.0.0-alpha.33",
|
||||
"@storybook/addon-events": "6.0.0-alpha.33",
|
||||
"@storybook/addon-jest": "6.0.0-alpha.33",
|
||||
"@storybook/addon-knobs": "6.0.0-alpha.33",
|
||||
"@storybook/addon-links": "6.0.0-alpha.33",
|
||||
"@storybook/addon-storyshots": "6.0.0-alpha.33",
|
||||
"@storybook/addon-storysource": "6.0.0-alpha.33",
|
||||
"@storybook/addon-viewport": "6.0.0-alpha.33",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/rax": "6.0.0-alpha.33",
|
||||
"@storybook/source-loader": "6.0.0-alpha.33",
|
||||
"@storybook/theming": "6.0.0-alpha.33",
|
||||
"babel-eslint": "^10.0.3",
|
||||
"build-plugin-rax-app": "^0.2.0",
|
||||
"stylesheet-loader": "^0.8.0"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "riot-example",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules",
|
||||
@ -15,17 +15,17 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.8.4",
|
||||
"@storybook/addon-a11y": "6.0.0-alpha.31",
|
||||
"@storybook/addon-actions": "6.0.0-alpha.31",
|
||||
"@storybook/addon-backgrounds": "6.0.0-alpha.31",
|
||||
"@storybook/addon-knobs": "6.0.0-alpha.31",
|
||||
"@storybook/addon-links": "6.0.0-alpha.31",
|
||||
"@storybook/addon-storyshots": "6.0.0-alpha.31",
|
||||
"@storybook/addon-storysource": "6.0.0-alpha.31",
|
||||
"@storybook/addon-viewport": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.31",
|
||||
"@storybook/riot": "6.0.0-alpha.31",
|
||||
"@storybook/source-loader": "6.0.0-alpha.31",
|
||||
"@storybook/addon-a11y": "6.0.0-alpha.33",
|
||||
"@storybook/addon-actions": "6.0.0-alpha.33",
|
||||
"@storybook/addon-backgrounds": "6.0.0-alpha.33",
|
||||
"@storybook/addon-knobs": "6.0.0-alpha.33",
|
||||
"@storybook/addon-links": "6.0.0-alpha.33",
|
||||
"@storybook/addon-storyshots": "6.0.0-alpha.33",
|
||||
"@storybook/addon-storysource": "6.0.0-alpha.33",
|
||||
"@storybook/addon-viewport": "6.0.0-alpha.33",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/riot": "6.0.0-alpha.33",
|
||||
"@storybook/source-loader": "6.0.0-alpha.33",
|
||||
"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-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"private": true,
|
||||
"description": "",
|
||||
"keywords": [],
|
||||
@ -14,13 +14,13 @@
|
||||
"storybook": "SERVER_PORT=1137 start-storybook -p 9006 --quiet"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-a11y": "6.0.0-alpha.31",
|
||||
"@storybook/addon-actions": "6.0.0-alpha.31",
|
||||
"@storybook/addon-backgrounds": "6.0.0-alpha.31",
|
||||
"@storybook/addon-knobs": "6.0.0-alpha.31",
|
||||
"@storybook/addon-links": "6.0.0-alpha.31",
|
||||
"@storybook/node-logger": "6.0.0-alpha.31",
|
||||
"@storybook/server": "6.0.0-alpha.31",
|
||||
"@storybook/addon-a11y": "6.0.0-alpha.33",
|
||||
"@storybook/addon-actions": "6.0.0-alpha.33",
|
||||
"@storybook/addon-backgrounds": "6.0.0-alpha.33",
|
||||
"@storybook/addon-knobs": "6.0.0-alpha.33",
|
||||
"@storybook/addon-links": "6.0.0-alpha.33",
|
||||
"@storybook/node-logger": "6.0.0-alpha.33",
|
||||
"@storybook/server": "6.0.0-alpha.33",
|
||||
"concurrently": "^5.0.2",
|
||||
"cors": "^2.8.5",
|
||||
"express": "~4.17.1",
|
||||
|
@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "standalone-preview",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"storybook": "parcel ./storybook.html --port 1337"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/react": "6.0.0-alpha.31",
|
||||
"@storybook/react": "6.0.0-alpha.33",
|
||||
"parcel": "^1.12.3",
|
||||
"react": "^16.8.4",
|
||||
"react-dom": "^16.8.4"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "svelte-example",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build-storybook": "build-storybook -s public",
|
||||
@ -10,18 +10,18 @@
|
||||
"global": "^4.3.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-a11y": "6.0.0-alpha.31",
|
||||
"@storybook/addon-actions": "6.0.0-alpha.31",
|
||||
"@storybook/addon-backgrounds": "6.0.0-alpha.31",
|
||||
"@storybook/addon-docs": "6.0.0-alpha.31",
|
||||
"@storybook/addon-knobs": "6.0.0-alpha.31",
|
||||
"@storybook/addon-links": "6.0.0-alpha.31",
|
||||
"@storybook/addon-storyshots": "6.0.0-alpha.31",
|
||||
"@storybook/addon-storysource": "6.0.0-alpha.31",
|
||||
"@storybook/addon-viewport": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.31",
|
||||
"@storybook/source-loader": "6.0.0-alpha.31",
|
||||
"@storybook/svelte": "6.0.0-alpha.31"
|
||||
"@storybook/addon-a11y": "6.0.0-alpha.33",
|
||||
"@storybook/addon-actions": "6.0.0-alpha.33",
|
||||
"@storybook/addon-backgrounds": "6.0.0-alpha.33",
|
||||
"@storybook/addon-docs": "6.0.0-alpha.33",
|
||||
"@storybook/addon-knobs": "6.0.0-alpha.33",
|
||||
"@storybook/addon-links": "6.0.0-alpha.33",
|
||||
"@storybook/addon-storyshots": "6.0.0-alpha.33",
|
||||
"@storybook/addon-storysource": "6.0.0-alpha.33",
|
||||
"@storybook/addon-viewport": "6.0.0-alpha.33",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/source-loader": "6.0.0-alpha.33",
|
||||
"@storybook/svelte": "6.0.0-alpha.33"
|
||||
},
|
||||
"storybook": {
|
||||
"chromatic": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "vue-example",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules",
|
||||
@ -14,19 +14,19 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.8.4",
|
||||
"@storybook/addon-a11y": "6.0.0-alpha.31",
|
||||
"@storybook/addon-actions": "6.0.0-alpha.31",
|
||||
"@storybook/addon-backgrounds": "6.0.0-alpha.31",
|
||||
"@storybook/addon-contexts": "6.0.0-alpha.31",
|
||||
"@storybook/addon-docs": "6.0.0-alpha.31",
|
||||
"@storybook/addon-knobs": "6.0.0-alpha.31",
|
||||
"@storybook/addon-links": "6.0.0-alpha.31",
|
||||
"@storybook/addon-storyshots": "6.0.0-alpha.31",
|
||||
"@storybook/addon-storysource": "6.0.0-alpha.31",
|
||||
"@storybook/addon-viewport": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.31",
|
||||
"@storybook/source-loader": "6.0.0-alpha.31",
|
||||
"@storybook/vue": "6.0.0-alpha.31",
|
||||
"@storybook/addon-a11y": "6.0.0-alpha.33",
|
||||
"@storybook/addon-actions": "6.0.0-alpha.33",
|
||||
"@storybook/addon-backgrounds": "6.0.0-alpha.33",
|
||||
"@storybook/addon-contexts": "6.0.0-alpha.33",
|
||||
"@storybook/addon-docs": "6.0.0-alpha.33",
|
||||
"@storybook/addon-knobs": "6.0.0-alpha.33",
|
||||
"@storybook/addon-links": "6.0.0-alpha.33",
|
||||
"@storybook/addon-storyshots": "6.0.0-alpha.33",
|
||||
"@storybook/addon-storysource": "6.0.0-alpha.33",
|
||||
"@storybook/addon-viewport": "6.0.0-alpha.33",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/source-loader": "6.0.0-alpha.33",
|
||||
"@storybook/vue": "6.0.0-alpha.33",
|
||||
"babel-core": "^7.0.0-bridge.0",
|
||||
"babel-loader": "^8.0.5",
|
||||
"cross-env": "^7.0.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "web-components-kitchen-sink",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"private": true,
|
||||
"description": "",
|
||||
"keywords": [],
|
||||
@ -12,23 +12,23 @@
|
||||
"storybook": "start-storybook -p 9006"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-a11y": "6.0.0-alpha.31",
|
||||
"@storybook/addon-actions": "6.0.0-alpha.31",
|
||||
"@storybook/addon-backgrounds": "6.0.0-alpha.31",
|
||||
"@storybook/addon-docs": "6.0.0-alpha.31",
|
||||
"@storybook/addon-events": "6.0.0-alpha.31",
|
||||
"@storybook/addon-jest": "6.0.0-alpha.31",
|
||||
"@storybook/addon-knobs": "6.0.0-alpha.31",
|
||||
"@storybook/addon-links": "6.0.0-alpha.31",
|
||||
"@storybook/addon-storyshots": "6.0.0-alpha.31",
|
||||
"@storybook/addon-storysource": "6.0.0-alpha.31",
|
||||
"@storybook/addon-viewport": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.31",
|
||||
"@storybook/client-api": "6.0.0-alpha.31",
|
||||
"@storybook/core": "6.0.0-alpha.31",
|
||||
"@storybook/core-events": "6.0.0-alpha.31",
|
||||
"@storybook/source-loader": "6.0.0-alpha.31",
|
||||
"@storybook/web-components": "6.0.0-alpha.31",
|
||||
"@storybook/addon-a11y": "6.0.0-alpha.33",
|
||||
"@storybook/addon-actions": "6.0.0-alpha.33",
|
||||
"@storybook/addon-backgrounds": "6.0.0-alpha.33",
|
||||
"@storybook/addon-docs": "6.0.0-alpha.33",
|
||||
"@storybook/addon-events": "6.0.0-alpha.33",
|
||||
"@storybook/addon-jest": "6.0.0-alpha.33",
|
||||
"@storybook/addon-knobs": "6.0.0-alpha.33",
|
||||
"@storybook/addon-links": "6.0.0-alpha.33",
|
||||
"@storybook/addon-storyshots": "6.0.0-alpha.33",
|
||||
"@storybook/addon-storysource": "6.0.0-alpha.33",
|
||||
"@storybook/addon-viewport": "6.0.0-alpha.33",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/client-api": "6.0.0-alpha.33",
|
||||
"@storybook/core": "6.0.0-alpha.33",
|
||||
"@storybook/core-events": "6.0.0-alpha.33",
|
||||
"@storybook/source-loader": "6.0.0-alpha.33",
|
||||
"@storybook/web-components": "6.0.0-alpha.33",
|
||||
"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-alpha.31"
|
||||
"version": "6.0.0-alpha.33"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addons",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"description": "Storybook addons store",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -28,12 +28,12 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/api": "6.0.0-alpha.31",
|
||||
"@storybook/channels": "6.0.0-alpha.31",
|
||||
"@storybook/client-logger": "6.0.0-alpha.31",
|
||||
"@storybook/core-events": "6.0.0-alpha.31",
|
||||
"@storybook/router": "6.0.0-alpha.31",
|
||||
"@storybook/theming": "6.0.0-alpha.31",
|
||||
"@storybook/api": "6.0.0-alpha.33",
|
||||
"@storybook/channels": "6.0.0-alpha.33",
|
||||
"@storybook/client-logger": "6.0.0-alpha.33",
|
||||
"@storybook/core-events": "6.0.0-alpha.33",
|
||||
"@storybook/router": "6.0.0-alpha.33",
|
||||
"@storybook/theming": "6.0.0-alpha.33",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"regenerator-runtime": "^0.13.3"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/api",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"description": "Core Storybook API & Context",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -28,12 +28,12 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@reach/router": "^1.3.3",
|
||||
"@storybook/channels": "6.0.0-alpha.31",
|
||||
"@storybook/client-logger": "6.0.0-alpha.31",
|
||||
"@storybook/core-events": "6.0.0-alpha.31",
|
||||
"@storybook/channels": "6.0.0-alpha.33",
|
||||
"@storybook/client-logger": "6.0.0-alpha.33",
|
||||
"@storybook/core-events": "6.0.0-alpha.33",
|
||||
"@storybook/csf": "0.0.1",
|
||||
"@storybook/router": "6.0.0-alpha.31",
|
||||
"@storybook/theming": "6.0.0-alpha.31",
|
||||
"@storybook/router": "6.0.0-alpha.33",
|
||||
"@storybook/theming": "6.0.0-alpha.33",
|
||||
"@types/reach__router": "^1.2.3",
|
||||
"core-js": "^3.0.1",
|
||||
"fast-deep-equal": "^3.1.1",
|
||||
|
@ -1 +1 @@
|
||||
export const version = '6.0.0-alpha.31';
|
||||
export const version = '6.0.0-alpha.33';
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/channel-postmessage",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"description": "",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -28,9 +28,9 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/channels": "6.0.0-alpha.31",
|
||||
"@storybook/client-logger": "6.0.0-alpha.31",
|
||||
"@storybook/core-events": "6.0.0-alpha.31",
|
||||
"@storybook/channels": "6.0.0-alpha.33",
|
||||
"@storybook/client-logger": "6.0.0-alpha.33",
|
||||
"@storybook/core-events": "6.0.0-alpha.33",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"telejson": "^3.2.0"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/channel-websocket",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"description": "",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -28,7 +28,7 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/channels": "6.0.0-alpha.31",
|
||||
"@storybook/channels": "6.0.0-alpha.33",
|
||||
"core-js": "^3.0.1",
|
||||
"global": "^4.3.2",
|
||||
"telejson": "^3.2.0"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/channels",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"description": "",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "sb",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"description": "Storybook CLI",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -22,7 +22,7 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/cli": "6.0.0-alpha.31"
|
||||
"@storybook/cli": "6.0.0-alpha.33"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "storybook",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"description": "Storybook CLI",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -23,7 +23,7 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/cli": "6.0.0-alpha.31"
|
||||
"@storybook/cli": "6.0.0-alpha.33"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/cli",
|
||||
"version": "6.0.0-alpha.31",
|
||||
"version": "6.0.0-alpha.33",
|
||||
"description": "Storybook's CLI - easiest method of adding storybook to your projects",
|
||||
"keywords": [
|
||||
"cli",
|
||||
@ -39,8 +39,8 @@
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.8.4",
|
||||
"@babel/preset-env": "^7.8.4",
|
||||
"@storybook/codemod": "6.0.0-alpha.31",
|
||||
"@storybook/node-logger": "6.0.0-alpha.31",
|
||||
"@storybook/codemod": "6.0.0-alpha.33",
|
||||
"@storybook/node-logger": "6.0.0-alpha.33",
|
||||
"chalk": "^3.0.0",
|
||||
"commander": "^4.0.1",
|
||||
"core-js": "^3.0.1",
|
||||
@ -62,30 +62,30 @@
|
||||
"update-notifier": "^4.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-actions": "6.0.0-alpha.31",
|
||||
"@storybook/addon-graphql": "6.0.0-alpha.31",
|
||||
"@storybook/addon-knobs": "6.0.0-alpha.31",
|
||||
"@storybook/addon-links": "6.0.0-alpha.31",
|
||||
"@storybook/addon-storyshots": "6.0.0-alpha.31",
|
||||
"@storybook/addons": "6.0.0-alpha.31",
|
||||
"@storybook/angular": "6.0.0-alpha.31",
|
||||
"@storybook/channel-postmessage": "6.0.0-alpha.31",
|
||||
"@storybook/channel-websocket": "6.0.0-alpha.31",
|
||||
"@storybook/channels": "6.0.0-alpha.31",
|
||||
"@storybook/ember": "6.0.0-alpha.31",
|
||||
"@storybook/html": "6.0.0-alpha.31",
|
||||
"@storybook/marionette": "6.0.0-alpha.31",
|
||||
"@storybook/marko": "6.0.0-alpha.31",
|
||||
"@storybook/mithril": "6.0.0-alpha.31",
|
||||
"@storybook/preact": "6.0.0-alpha.31",
|
||||
"@storybook/rax": "6.0.0-alpha.31",
|
||||
"@storybook/react": "6.0.0-alpha.31",
|
||||
"@storybook/addon-actions": "6.0.0-alpha.33",
|
||||
"@storybook/addon-graphql": "6.0.0-alpha.33",
|
||||
"@storybook/addon-knobs": "6.0.0-alpha.33",
|
||||
"@storybook/addon-links": "6.0.0-alpha.33",
|
||||
"@storybook/addon-storyshots": "6.0.0-alpha.33",
|
||||
"@storybook/addons": "6.0.0-alpha.33",
|
||||
"@storybook/angular": "6.0.0-alpha.33",
|
||||
"@storybook/channel-postmessage": "6.0.0-alpha.33",
|
||||
"@storybook/channel-websocket": "6.0.0-alpha.33",
|
||||
"@storybook/channels": "6.0.0-alpha.33",
|
||||
"@storybook/ember": "6.0.0-alpha.33",
|
||||
"@storybook/html": "6.0.0-alpha.33",
|
||||
"@storybook/marionette": "6.0.0-alpha.33",
|
||||
"@storybook/marko": "6.0.0-alpha.33",
|
||||
"@storybook/mithril": "6.0.0-alpha.33",
|
||||
"@storybook/preact": "6.0.0-alpha.33",
|
||||
"@storybook/rax": "6.0.0-alpha.33",
|
||||
"@storybook/react": "6.0.0-alpha.33",
|
||||
"@storybook/react-native": "6.0.0-alpha.0",
|
||||
"@storybook/riot": "6.0.0-alpha.31",
|
||||
"@storybook/svelte": "6.0.0-alpha.31",
|
||||
"@storybook/ui": "6.0.0-alpha.31",
|
||||
"@storybook/vue": "6.0.0-alpha.31",
|
||||
"@storybook/web-components": "6.0.0-alpha.31"
|
||||
"@storybook/riot": "6.0.0-alpha.33",
|
||||
"@storybook/svelte": "6.0.0-alpha.33",
|
||||
"@storybook/ui": "6.0.0-alpha.33",
|
||||
"@storybook/vue": "6.0.0-alpha.33",
|
||||
"@storybook/web-components": "6.0.0-alpha.33"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"jest": "*"
|
||||
|
@ -1,9 +0,0 @@
|
||||
import { configure } from '@storybook/react';
|
||||
|
||||
// automatically import all files ending in *.stories.js
|
||||
const req = require.context('../stories', true, /\.stories\.js$/);
|
||||
function loadStories() {
|
||||
req.keys().forEach(filename => req(filename));
|
||||
}
|
||||
|
||||
configure(loadStories, module);
|
3
lib/cli/test/fixtures/react_babel_config_js/.storybook/main.js
vendored
Normal file
3
lib/cli/test/fixtures/react_babel_config_js/.storybook/main.js
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
module.exports = {
|
||||
stories: ['../stories/**/*.stories.js'],
|
||||
}
|
@ -1,12 +0,0 @@
|
||||
import React from 'react';
|
||||
|
||||
import { storiesOf } from '@storybook/react';
|
||||
|
||||
const data = {
|
||||
user: {
|
||||
name: 'Joe',
|
||||
},
|
||||
};
|
||||
|
||||
storiesOf('My Component', module)
|
||||
.add('state', () => <span>Hello {data.user?.name}</span>)
|
@ -1,9 +0,0 @@
|
||||
import { configure } from '@storybook/react';
|
||||
|
||||
// automatically import all files ending in *.stories.js
|
||||
const req = require.context('../stories', true, /\.stories\.js$/);
|
||||
function loadStories() {
|
||||
req.keys().forEach(filename => req(filename));
|
||||
}
|
||||
|
||||
configure(loadStories, module);
|
3
lib/cli/test/fixtures/react_babel_custom_preset/.storybook/main.js
vendored
Normal file
3
lib/cli/test/fixtures/react_babel_custom_preset/.storybook/main.js
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
module.exports = {
|
||||
stories: ['../stories/**/*.stories.js'],
|
||||
}
|
@ -1,12 +0,0 @@
|
||||
import React from 'react';
|
||||
|
||||
import { storiesOf } from '@storybook/react';
|
||||
|
||||
const data = {
|
||||
user: {
|
||||
name: 'Joe',
|
||||
},
|
||||
};
|
||||
|
||||
storiesOf('My Component', module)
|
||||
.add('state', () => <span>Hello {data.user?.name}</span>)
|
@ -1,9 +0,0 @@
|
||||
import { configure } from '@storybook/react';
|
||||
|
||||
// automatically import all files ending in *.stories.js
|
||||
const req = require.context('../stories', true, /\.stories\.js$/);
|
||||
function loadStories() {
|
||||
req.keys().forEach(filename => req(filename));
|
||||
}
|
||||
|
||||
configure(loadStories, module);
|
3
lib/cli/test/fixtures/react_babel_pkg_json/.storybook/main.js
vendored
Normal file
3
lib/cli/test/fixtures/react_babel_pkg_json/.storybook/main.js
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
module.exports = {
|
||||
stories: ['../stories/**/*.stories.js'],
|
||||
}
|
@ -1,12 +0,0 @@
|
||||
import React from 'react';
|
||||
|
||||
import { storiesOf } from '@storybook/react';
|
||||
|
||||
const data = {
|
||||
user: {
|
||||
name: 'Joe',
|
||||
},
|
||||
};
|
||||
|
||||
storiesOf('My Component', module)
|
||||
.add('state', () => <span>Hello {data.user?.name}</span>)
|
@ -1,9 +0,0 @@
|
||||
import { configure } from '@storybook/react';
|
||||
|
||||
// automatically import all files ending in *.stories.js
|
||||
const req = require.context('../stories', true, /\.stories\.js$/);
|
||||
function loadStories() {
|
||||
req.keys().forEach(filename => req(filename));
|
||||
}
|
||||
|
||||
configure(loadStories, module);
|
3
lib/cli/test/fixtures/react_babelrc/.storybook/main.js
vendored
Normal file
3
lib/cli/test/fixtures/react_babelrc/.storybook/main.js
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
module.exports = {
|
||||
stories: ['../stories/**/*.stories.js'],
|
||||
}
|
@ -1,12 +0,0 @@
|
||||
import React from 'react';
|
||||
|
||||
import { storiesOf } from '@storybook/react';
|
||||
|
||||
const data = {
|
||||
user: {
|
||||
name: 'Joe',
|
||||
},
|
||||
};
|
||||
|
||||
storiesOf('My Component', module)
|
||||
.add('state', () => <span>Hello {data.user?.name}</span>)
|
@ -1,9 +0,0 @@
|
||||
import { configure } from '@storybook/react';
|
||||
|
||||
// automatically import all files ending in *.stories.js
|
||||
const req = require.context('../stories', true, /\.stories\.js$/);
|
||||
function loadStories() {
|
||||
req.keys().forEach(filename => req(filename));
|
||||
}
|
||||
|
||||
configure(loadStories, module);
|
3
lib/cli/test/fixtures/react_babelrc_js/.storybook/main.js
vendored
Normal file
3
lib/cli/test/fixtures/react_babelrc_js/.storybook/main.js
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
module.exports = {
|
||||
stories: ['../stories/**/*.stories.js'],
|
||||
}
|
@ -1,12 +0,0 @@
|
||||
import React from 'react';
|
||||
|
||||
import { storiesOf } from '@storybook/react';
|
||||
|
||||
const data = {
|
||||
user: {
|
||||
name: 'Joe',
|
||||
},
|
||||
};
|
||||
|
||||
storiesOf('My Component', module)
|
||||
.add('state', () => <span>Hello {data.user?.name}</span>)
|
@ -1,7 +0,0 @@
|
||||
import { configure } from '@kadira/storybook';
|
||||
|
||||
function loadStories() {
|
||||
require('../stories');
|
||||
}
|
||||
|
||||
configure(loadStories, module);
|
3
lib/cli/test/fixtures/update_package_organisations/.storybook/main.js
vendored
Normal file
3
lib/cli/test/fixtures/update_package_organisations/.storybook/main.js
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
module.exports = {
|
||||
stories: ['../stories/**/*.stories.js'],
|
||||
}
|
@ -43,7 +43,7 @@ do
|
||||
yarn sb init --skip-install --yes
|
||||
;;
|
||||
mdx)
|
||||
if [[ $dir =~ (react_native*|angular-cli-v6|ember-cli|marko|meteor|mithril|riot|react_babel_6) ]]
|
||||
if [[ $dir =~ (react_native*|angular-cli-v6|ember-cli|marko|meteor|mithril|riot) ]]
|
||||
then
|
||||
yarn sb init --skip-install --yes
|
||||
else
|
||||
|
@ -65,7 +65,7 @@ do
|
||||
yarn sb init --skip-install --yes
|
||||
;;
|
||||
mdx)
|
||||
if [[ $dir =~ (react_native*|angular-cli-v6|ember-cli|marko|meteor|mithril|riot|react_babel_6) ]]
|
||||
if [[ $dir =~ (react_native*|angular-cli-v6|ember-cli|marko|meteor|mithril|riot) ]]
|
||||
then
|
||||
yarn sb init --skip-install --yes
|
||||
else
|
||||
|
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