├── .babelrc ├── .gitignore ├── .prettierrc ├── CHANGELOG.md ├── LICENSE ├── README.md ├── enzyme.config.js ├── jest.config.js ├── package.json ├── preact.js ├── react.js ├── register.js ├── src ├── index.ts ├── manager │ ├── ContextsManager.tsx │ ├── components │ │ ├── ToolBar.test.tsx │ │ ├── ToolBar.tsx │ │ ├── ToolBarControl.test.tsx │ │ ├── ToolBarControl.tsx │ │ ├── ToolBarMenu.test.tsx │ │ ├── ToolBarMenu.tsx │ │ ├── ToolBarMenuOptions.test.tsx │ │ └── ToolBarMenuOptions.tsx │ └── libs │ │ └── useChannel.ts ├── preview │ ├── ContextsPreviewAPI.ts │ ├── frameworks │ │ ├── preact.ts │ │ ├── react.ts │ │ └── vue.ts │ └── libs │ │ ├── decorators.test.ts │ │ ├── decorators.ts │ │ ├── getContextNodes.test.ts │ │ ├── getContextNodes.ts │ │ ├── getPropsMap.test.ts │ │ ├── getPropsMap.ts │ │ ├── getRendererFrom.test.ts │ │ ├── getRendererFrom.ts │ │ └── index.ts ├── register.ts └── shared │ ├── @mock-types │ ├── _global.d.ts │ └── _preact.d.ts │ ├── constants.ts │ ├── serializers.test.ts │ ├── serializers.ts │ └── types.d.ts ├── tsconfig.json ├── vue.js └── yarn.lock /.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoyli/storybook-addon-contexts/HEAD/.babelrc -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist 3 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoyli/storybook-addon-contexts/HEAD/.prettierrc -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoyli/storybook-addon-contexts/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoyli/storybook-addon-contexts/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoyli/storybook-addon-contexts/HEAD/README.md -------------------------------------------------------------------------------- /enzyme.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoyli/storybook-addon-contexts/HEAD/enzyme.config.js -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoyli/storybook-addon-contexts/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoyli/storybook-addon-contexts/HEAD/package.json -------------------------------------------------------------------------------- /preact.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoyli/storybook-addon-contexts/HEAD/preact.js -------------------------------------------------------------------------------- /react.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoyli/storybook-addon-contexts/HEAD/react.js -------------------------------------------------------------------------------- /register.js: -------------------------------------------------------------------------------- 1 | export * from './dist/register'; 2 | -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoyli/storybook-addon-contexts/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/manager/ContextsManager.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoyli/storybook-addon-contexts/HEAD/src/manager/ContextsManager.tsx -------------------------------------------------------------------------------- /src/manager/components/ToolBar.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoyli/storybook-addon-contexts/HEAD/src/manager/components/ToolBar.test.tsx -------------------------------------------------------------------------------- /src/manager/components/ToolBar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoyli/storybook-addon-contexts/HEAD/src/manager/components/ToolBar.tsx -------------------------------------------------------------------------------- /src/manager/components/ToolBarControl.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoyli/storybook-addon-contexts/HEAD/src/manager/components/ToolBarControl.test.tsx -------------------------------------------------------------------------------- /src/manager/components/ToolBarControl.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoyli/storybook-addon-contexts/HEAD/src/manager/components/ToolBarControl.tsx -------------------------------------------------------------------------------- /src/manager/components/ToolBarMenu.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoyli/storybook-addon-contexts/HEAD/src/manager/components/ToolBarMenu.test.tsx -------------------------------------------------------------------------------- /src/manager/components/ToolBarMenu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoyli/storybook-addon-contexts/HEAD/src/manager/components/ToolBarMenu.tsx -------------------------------------------------------------------------------- /src/manager/components/ToolBarMenuOptions.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoyli/storybook-addon-contexts/HEAD/src/manager/components/ToolBarMenuOptions.test.tsx -------------------------------------------------------------------------------- /src/manager/components/ToolBarMenuOptions.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoyli/storybook-addon-contexts/HEAD/src/manager/components/ToolBarMenuOptions.tsx -------------------------------------------------------------------------------- /src/manager/libs/useChannel.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoyli/storybook-addon-contexts/HEAD/src/manager/libs/useChannel.ts -------------------------------------------------------------------------------- /src/preview/ContextsPreviewAPI.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoyli/storybook-addon-contexts/HEAD/src/preview/ContextsPreviewAPI.ts -------------------------------------------------------------------------------- /src/preview/frameworks/preact.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoyli/storybook-addon-contexts/HEAD/src/preview/frameworks/preact.ts -------------------------------------------------------------------------------- /src/preview/frameworks/react.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoyli/storybook-addon-contexts/HEAD/src/preview/frameworks/react.ts -------------------------------------------------------------------------------- /src/preview/frameworks/vue.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoyli/storybook-addon-contexts/HEAD/src/preview/frameworks/vue.ts -------------------------------------------------------------------------------- /src/preview/libs/decorators.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoyli/storybook-addon-contexts/HEAD/src/preview/libs/decorators.test.ts -------------------------------------------------------------------------------- /src/preview/libs/decorators.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoyli/storybook-addon-contexts/HEAD/src/preview/libs/decorators.ts -------------------------------------------------------------------------------- /src/preview/libs/getContextNodes.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoyli/storybook-addon-contexts/HEAD/src/preview/libs/getContextNodes.test.ts -------------------------------------------------------------------------------- /src/preview/libs/getContextNodes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoyli/storybook-addon-contexts/HEAD/src/preview/libs/getContextNodes.ts -------------------------------------------------------------------------------- /src/preview/libs/getPropsMap.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoyli/storybook-addon-contexts/HEAD/src/preview/libs/getPropsMap.test.ts -------------------------------------------------------------------------------- /src/preview/libs/getPropsMap.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoyli/storybook-addon-contexts/HEAD/src/preview/libs/getPropsMap.ts -------------------------------------------------------------------------------- /src/preview/libs/getRendererFrom.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoyli/storybook-addon-contexts/HEAD/src/preview/libs/getRendererFrom.test.ts -------------------------------------------------------------------------------- /src/preview/libs/getRendererFrom.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoyli/storybook-addon-contexts/HEAD/src/preview/libs/getRendererFrom.ts -------------------------------------------------------------------------------- /src/preview/libs/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoyli/storybook-addon-contexts/HEAD/src/preview/libs/index.ts -------------------------------------------------------------------------------- /src/register.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoyli/storybook-addon-contexts/HEAD/src/register.ts -------------------------------------------------------------------------------- /src/shared/@mock-types/_global.d.ts: -------------------------------------------------------------------------------- 1 | declare module 'global'; 2 | -------------------------------------------------------------------------------- /src/shared/@mock-types/_preact.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoyli/storybook-addon-contexts/HEAD/src/shared/@mock-types/_preact.d.ts -------------------------------------------------------------------------------- /src/shared/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoyli/storybook-addon-contexts/HEAD/src/shared/constants.ts -------------------------------------------------------------------------------- /src/shared/serializers.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoyli/storybook-addon-contexts/HEAD/src/shared/serializers.test.ts -------------------------------------------------------------------------------- /src/shared/serializers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoyli/storybook-addon-contexts/HEAD/src/shared/serializers.ts -------------------------------------------------------------------------------- /src/shared/types.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoyli/storybook-addon-contexts/HEAD/src/shared/types.d.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoyli/storybook-addon-contexts/HEAD/tsconfig.json -------------------------------------------------------------------------------- /vue.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoyli/storybook-addon-contexts/HEAD/vue.js -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoyli/storybook-addon-contexts/HEAD/yarn.lock --------------------------------------------------------------------------------