@modern-js/storybook 0.0.0-next-20230913081749 → 0.0.0-next-20230914060020

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # @modern-js/storybook
2
2
 
3
- ## 0.0.0-next-20230913081749
3
+ ## 0.0.0-next-20230914060020
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - 366c3528a: feat: add storybook-framework
8
8
  feat: 支持 storybook-framework
9
9
  - Updated dependencies [366c3528a]
10
- - @modern-js/storybook-builder@0.0.0-next-20230913081749
10
+ - @modern-js/storybook-builder@0.0.0-next-20230914060020
package/dist/types.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import type { StorybookConfig as StorybookConfigBase } from '@storybook/types';
2
- import { FrameworkOptions } from '.';
3
- export { defineConfig, type FrameworkOptions, } from '@modern-js/storybook-builder';
2
+ import type { BuilderOptions } from '@modern-js/storybook-builder';
3
+ export { defineConfig, type BuilderOptions, } from '@modern-js/storybook-builder';
4
4
  export type FrameworkName = '@modern-js/storybook' | string;
5
5
  export interface StorybookConfig extends StorybookConfigBase {
6
6
  framework: FrameworkName | {
7
7
  name: FrameworkName;
8
- options: FrameworkOptions;
8
+ options: BuilderOptions;
9
9
  };
10
10
  typescript?: {
11
11
  reactDocgen?: 'react-docgen' | 'react-docgen-typescript' | false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modern-js/storybook",
3
- "version": "0.0.0-next-20230913081749",
3
+ "version": "0.0.0-next-20230914060020",
4
4
  "description": "modern.js support for storybook",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,6 +25,12 @@
25
25
  "types": "./dist/preset.d.ts",
26
26
  "default": "./dist/preset.js"
27
27
  },
28
+ "./types": {
29
+ "jsnext:source": "./src/types.ts",
30
+ "types": "./dist/types.d.ts",
31
+ "default": "./dist/types.ks"
32
+ },
33
+ "./bin": "./bin.js",
28
34
  "./package.json": "./package.json"
29
35
  },
30
36
  "engines": {
@@ -36,7 +42,7 @@
36
42
  "dependencies": {
37
43
  "@storybook/react": "^7.4.0",
38
44
  "storybook": "^7.4.0",
39
- "@modern-js/storybook-builder": "0.0.0-next-20230913081749"
45
+ "@modern-js/storybook-builder": "0.0.0-next-20230914060020"
40
46
  },
41
47
  "devDependencies": {
42
48
  "@storybook/types": "^7.4.0",
package/src/types.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import type { StorybookConfig as StorybookConfigBase } from '@storybook/types';
2
- import { FrameworkOptions } from '.';
2
+ import type { BuilderOptions } from '@modern-js/storybook-builder';
3
3
 
4
4
  export {
5
5
  defineConfig,
6
- type FrameworkOptions,
6
+ type BuilderOptions,
7
7
  } from '@modern-js/storybook-builder';
8
8
 
9
9
  export type FrameworkName = '@modern-js/storybook' | string;
@@ -13,7 +13,7 @@ export interface StorybookConfig extends StorybookConfigBase {
13
13
  | FrameworkName
14
14
  | {
15
15
  name: FrameworkName;
16
- options: FrameworkOptions;
16
+ options: BuilderOptions;
17
17
  };
18
18
  typescript?: {
19
19
  reactDocgen?: 'react-docgen' | 'react-docgen-typescript' | false;