mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 07:21:17 +08:00
# Conflicts: # .eslintignore # .travis.yml # addons/actions/src/containers/ActionLogger/index.js # addons/centered/package.json # addons/graphql/package.json # addons/info/src/components/PropTable.js # addons/info/src/components/Props.js # addons/knobs/package.json # addons/knobs/src/components/Panel.js # addons/notes/package.json # addons/notes/src/index.js # addons/notes/src/register.js # addons/storyshots/package.json # addons/storyshots/src/index.js # app/react-native/package.json # app/react/package.json # examples/cra-storybook/package.json # examples/cra-storybook/src/stories/Welcome.js # examples/test-cra/src/stories/Button.js # examples/test-cra/src/stories/Welcome.js # lib/channel-postmessage/package.json # lib/channel-websocket/package.json # lib/cli/bin/generate.js # lib/cli/generators/METEOR/index.js # lib/cli/generators/REACT/index.js # lib/cli/generators/REACT/template/stories/index.js # lib/cli/generators/REACT_NATIVE/index.js # lib/cli/generators/REACT_SCRIPTS/index.js # lib/cli/generators/REACT_SCRIPTS/template/src/stories/Welcome.js # lib/cli/generators/WEBPACK_REACT/index.js # lib/cli/lib/helpers.js # lib/cli/package.json # package.json
27 lines
1009 B
JavaScript
27 lines
1009 B
JavaScript
import deprecate from 'util-deprecate';
|
|
|
|
// NOTE export these to keep backwards compatibility
|
|
import { action as deprecatedAction } from '@storybook/addon-actions';
|
|
import { linkTo as deprecatedLinkTo } from '@storybook/addon-links';
|
|
|
|
import Preview from './preview';
|
|
|
|
const preview = new Preview();
|
|
|
|
export const storiesOf = preview.storiesOf.bind(preview);
|
|
export const setAddon = preview.setAddon.bind(preview);
|
|
export const addDecorator = preview.addDecorator.bind(preview);
|
|
export const configure = preview.configure.bind(preview);
|
|
export const getStorybook = preview.getStorybook.bind(preview);
|
|
export const getStorybookUI = preview.getStorybookUI.bind(preview);
|
|
|
|
export const action = deprecate(
|
|
deprecatedAction,
|
|
'@storybook/react action is deprecated. See: https://github.com/storybooks/storybook/tree/master/addon/actions'
|
|
);
|
|
|
|
export const linkTo = deprecate(
|
|
deprecatedLinkTo,
|
|
'@storybook/react linkTo is deprecated. See: https://github.com/storybooks/storybook/tree/master/addon/links'
|
|
);
|