mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 06:01:22 +08:00
Re-export all addons from addon-essentials
This commit is contained in:
parent
af941fd365
commit
aaa4a210e0
@ -27,35 +27,75 @@
|
||||
"import": "./dist/index.mjs",
|
||||
"types": "./dist/index.d.ts"
|
||||
},
|
||||
"./preview/actions": {
|
||||
"require": "./dist/preview/actions.js",
|
||||
"import": "./dist/preview/actions.mjs",
|
||||
"types": "./dist/preview/actions.d.ts"
|
||||
"./actions/preview": {
|
||||
"require": "./dist/actions/preview.js",
|
||||
"import": "./dist/actions/preview.mjs",
|
||||
"types": "./dist/actions/preview.d.ts"
|
||||
},
|
||||
"./preview/backgrounds": {
|
||||
"require": "./dist/preview/backgrounds.js",
|
||||
"import": "./dist/preview/backgrounds.mjs",
|
||||
"types": "./dist/preview/backgrounds.d.ts"
|
||||
"./actions/manager": {
|
||||
"require": "./dist/actions/manager.js",
|
||||
"import": "./dist/actions/manager.mjs",
|
||||
"types": "./dist/actions/manager.d.ts"
|
||||
},
|
||||
"./preview/docs": {
|
||||
"require": "./dist/preview/docs.js",
|
||||
"import": "./dist/preview/docs.mjs",
|
||||
"types": "./dist/preview/docs.d.ts"
|
||||
"./backgrounds/preview": {
|
||||
"require": "./dist/backgrounds/preview.js",
|
||||
"import": "./dist/backgrounds/preview.mjs",
|
||||
"types": "./dist/backgrounds/preview.d.ts"
|
||||
},
|
||||
"./preview/highlight": {
|
||||
"require": "./dist/preview/highlight.js",
|
||||
"import": "./dist/preview/highlight.mjs",
|
||||
"types": "./dist/preview/highlight.d.ts"
|
||||
"./backgrounds/manager": {
|
||||
"require": "./dist/backgrounds/manager.js",
|
||||
"import": "./dist/backgrounds/manager.mjs",
|
||||
"types": "./dist/backgrounds/manager.d.ts"
|
||||
},
|
||||
"./preview/measure": {
|
||||
"require": "./dist/preview/measure.js",
|
||||
"import": "./dist/preview/measure.mjs",
|
||||
"types": "./dist/preview/measure.d.ts"
|
||||
"./controls/manager": {
|
||||
"require": "./dist/controls/manager.js",
|
||||
"import": "./dist/controls/manager.mjs",
|
||||
"types": "./dist/controls/manager.d.ts"
|
||||
},
|
||||
"./preview/outline": {
|
||||
"require": "./dist/preview/outline.js",
|
||||
"import": "./dist/preview/outline.mjs",
|
||||
"types": "./dist/preview/outline.d.ts"
|
||||
"./docs/preview": {
|
||||
"require": "./dist/docs/preview.js",
|
||||
"import": "./dist/docs/preview.mjs",
|
||||
"types": "./dist/docs/preview.d.ts"
|
||||
},
|
||||
"./docs/preset": {
|
||||
"require": "./dist/docs/preset.js",
|
||||
"import": "./dist/docs/preset.mjs",
|
||||
"types": "./dist/docs/preset.d.ts"
|
||||
},
|
||||
"./highlight/preview": {
|
||||
"require": "./dist/highlight/preview.js",
|
||||
"import": "./dist/highlight/preview.mjs",
|
||||
"types": "./dist/highlight/preview.d.ts"
|
||||
},
|
||||
"./measure/preview": {
|
||||
"require": "./dist/measure/preview.js",
|
||||
"import": "./dist/measure/preview.mjs",
|
||||
"types": "./dist/measure/preview.d.ts"
|
||||
},
|
||||
"./measure/manager": {
|
||||
"require": "./dist/measure/manager.js",
|
||||
"import": "./dist/measure/manager.mjs",
|
||||
"types": "./dist/measure/manager.d.ts"
|
||||
},
|
||||
"./outline/preview": {
|
||||
"require": "./dist/outline/preview.js",
|
||||
"import": "./dist/outline/preview.mjs",
|
||||
"types": "./dist/outline/preview.d.ts"
|
||||
},
|
||||
"./outline/manager": {
|
||||
"require": "./dist/outline/manager.js",
|
||||
"import": "./dist/outline/manager.mjs",
|
||||
"types": "./dist/outline/manager.d.ts"
|
||||
},
|
||||
"./toolbars/manager": {
|
||||
"require": "./dist/toolbars/manager.js",
|
||||
"import": "./dist/toolbars/manager.mjs",
|
||||
"types": "./dist/toolbars/manager.d.ts"
|
||||
},
|
||||
"./viewport/manager": {
|
||||
"require": "./dist/viewport/manager.js",
|
||||
"import": "./dist/viewport/manager.mjs",
|
||||
"types": "./dist/viewport/manager.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
@ -139,12 +179,20 @@
|
||||
"bundler": {
|
||||
"entries": [
|
||||
"./src/index.ts",
|
||||
"./src/preview/actions.ts",
|
||||
"./src/preview/backgrounds.ts",
|
||||
"./src/preview/docs.ts",
|
||||
"./src/preview/highlight.ts",
|
||||
"./src/preview/measure.ts",
|
||||
"./src/preview/outline.ts"
|
||||
"./src/actions/preview.ts",
|
||||
"./src/actions/manager.ts",
|
||||
"./src/backgrounds/preview.ts",
|
||||
"./src/backgrounds/manager.ts",
|
||||
"./src/controls/manager.ts",
|
||||
"./src/docs/preview.ts",
|
||||
"./src/docs/preset.ts",
|
||||
"./src/highlight/preview.ts",
|
||||
"./src/measure/preview.ts",
|
||||
"./src/measure/manager.ts",
|
||||
"./src/outline/preview.ts",
|
||||
"./src/outline/manager.ts",
|
||||
"./src/toolbars/manager.ts",
|
||||
"./src/viewport/manager.ts"
|
||||
],
|
||||
"platform": "node"
|
||||
},
|
||||
|
5
code/addons/essentials/src/actions/manager.ts
Normal file
5
code/addons/essentials/src/actions/manager.ts
Normal file
@ -0,0 +1,5 @@
|
||||
/* eslint-disable import/export */
|
||||
// TODO: We need to configure an eslint-import typescript resolver for export maps to be considered
|
||||
|
||||
// @ts-expect-error The generated definition file is empty. https://github.com/egoist/tsup/issues/762
|
||||
export * from '@storybook/addon-actions/manager';
|
5
code/addons/essentials/src/backgrounds/manager.ts
Normal file
5
code/addons/essentials/src/backgrounds/manager.ts
Normal file
@ -0,0 +1,5 @@
|
||||
/* eslint-disable import/export */
|
||||
// TODO: We need to configure an eslint-import typescript resolver for export maps to be considered
|
||||
|
||||
// @ts-expect-error The generated definition file is empty. https://github.com/egoist/tsup/issues/762
|
||||
export * from '@storybook/addon-backgrounds/manager';
|
5
code/addons/essentials/src/controls/manager.ts
Normal file
5
code/addons/essentials/src/controls/manager.ts
Normal file
@ -0,0 +1,5 @@
|
||||
/* eslint-disable import/export */
|
||||
// TODO: We need to configure an eslint-import typescript resolver for export maps to be considered
|
||||
|
||||
// @ts-expect-error The generated definition file is empty. https://github.com/egoist/tsup/issues/762
|
||||
export * from '@storybook/addon-controls/manager';
|
1
code/addons/essentials/src/docs/preset.ts
Normal file
1
code/addons/essentials/src/docs/preset.ts
Normal file
@ -0,0 +1 @@
|
||||
export * from '@storybook/addon-docs/preset';
|
5
code/addons/essentials/src/measure/manager.ts
Normal file
5
code/addons/essentials/src/measure/manager.ts
Normal file
@ -0,0 +1,5 @@
|
||||
/* eslint-disable import/export */
|
||||
// TODO: We need to configure an eslint-import typescript resolver for export maps to be considered
|
||||
|
||||
// @ts-expect-error The generated definition file is empty. https://github.com/egoist/tsup/issues/762
|
||||
export * from '@storybook/addon-measure/manager';
|
5
code/addons/essentials/src/outline/manager.ts
Normal file
5
code/addons/essentials/src/outline/manager.ts
Normal file
@ -0,0 +1,5 @@
|
||||
/* eslint-disable import/export */
|
||||
// TODO: We need to configure an eslint-import typescript resolver for export maps to be considered
|
||||
|
||||
// @ts-expect-error The generated definition file is empty. https://github.com/egoist/tsup/issues/762
|
||||
export * from '@storybook/addon-outline/manager';
|
5
code/addons/essentials/src/toolbars/manager.ts
Normal file
5
code/addons/essentials/src/toolbars/manager.ts
Normal file
@ -0,0 +1,5 @@
|
||||
/* eslint-disable import/export */
|
||||
// TODO: We need to configure an eslint-import typescript resolver for export maps to be considered
|
||||
|
||||
// @ts-expect-error The generated definition file is empty. https://github.com/egoist/tsup/issues/762
|
||||
export * from '@storybook/addon-toolbars/manager';
|
1
code/addons/essentials/src/typings.d.ts
vendored
1
code/addons/essentials/src/typings.d.ts
vendored
@ -2,3 +2,4 @@ declare module 'fs';
|
||||
|
||||
// TODO: Remove this once addon-docs is generated with tsup
|
||||
declare module '@storybook/addon-docs/preview';
|
||||
declare module '@storybook/addon-docs/preset';
|
||||
|
5
code/addons/essentials/src/viewport/manager.ts
Normal file
5
code/addons/essentials/src/viewport/manager.ts
Normal file
@ -0,0 +1,5 @@
|
||||
/* eslint-disable import/export */
|
||||
// TODO: We need to configure an eslint-import typescript resolver for export maps to be considered
|
||||
|
||||
// @ts-expect-error The generated definition file is empty. https://github.com/egoist/tsup/issues/762
|
||||
export * from '@storybook/addon-viewport/manager';
|
Loading…
x
Reference in New Issue
Block a user