@modern-js/storybook-builder 0.0.0-nightly-20231205170638 → 0.0.0-nightly-20231207170637

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.
@@ -2,4 +2,4 @@
2
2
  import type { Plugin } from '@modern-js/runtime';
3
3
  import type { IConfig } from '../type';
4
4
  export declare const WrapProviders: (storyFn: any, config: IConfig) => JSX.Element;
5
- export declare const resolvePlugins: (runtime: IConfig['modernConfigRuntime']) => Plugin[];
5
+ export declare const resolvePlugins: (runtime: IConfig['modernConfigRuntime']) => Plugin[];
@@ -1 +1 @@
1
- export declare const ADDON_ID = "storybook/modern-runtime";
1
+ export declare const ADDON_ID = "storybook/modern-runtime";
@@ -1,2 +1,2 @@
1
1
  declare const _default: {};
2
- export default _default;
2
+ export default _default;
@@ -1 +1 @@
1
- export declare const decorators: import("@storybook/types").DecoratorFunction[];
1
+ export declare const decorators: import("@storybook/types").DecoratorFunction[];
@@ -1,4 +1,4 @@
1
1
  export interface IConfig {
2
- modernConfigRuntime: any;
3
- modernConfigDesignToken: any;
4
- }
2
+ modernConfigRuntime: any;
3
+ modernConfigDesignToken: any;
4
+ }
@@ -1,2 +1,2 @@
1
1
  import { DecoratorFunction } from '@storybook/types';
2
- export declare const withPluginRuntime: DecoratorFunction;
2
+ export declare const withPluginRuntime: DecoratorFunction;
@@ -4,4 +4,4 @@ export type StorybookBuilder = RawStorybookBuilder<BuilderOptions, Stats>;
4
4
  export declare const getConfig: StorybookBuilder['getConfig'];
5
5
  export declare const build: StorybookBuilder['build'];
6
6
  export declare const start: StorybookBuilder['start'];
7
- export declare const bail: () => Promise<void>;
7
+ export declare const bail: () => Promise<void>;
@@ -1,4 +1,4 @@
1
1
  import type { Options } from '@storybook/types';
2
2
  import type { Compiler } from '@modern-js/builder-shared/webpack-dev-middleware';
3
3
  import type { BuilderOptions } from './types';
4
- export declare function getCompiler(cwd: string, builderOptions: BuilderOptions, options: Options): Promise<Compiler>;
4
+ export declare function getCompiler(cwd: string, builderOptions: BuilderOptions, options: Options): Promise<Compiler>;
@@ -11,4 +11,4 @@
11
11
  import type { NodePath } from 'ast-types/lib/node-path';
12
12
  import type { Importer } from 'react-docgen/dist/parse';
13
13
  import type Documentation from 'react-docgen/dist/Documentation';
14
- export default function actualNameHandler(documentation: Documentation, path: NodePath, importer: Importer): void;
14
+ export default function actualNameHandler(documentation: Documentation, path: NodePath, importer: Importer): void;
@@ -2,8 +2,8 @@ import type { Options } from '@storybook/types';
2
2
  import { RspackConfig } from '@modern-js/builder-rspack-provider';
3
3
  import { WebpackChain } from '@modern-js/builder-webpack-provider';
4
4
  export type DocgenOptions = {
5
- reactDocgen?: 'react-docgen' | 'react-docgen-typescript' | false;
6
- reactDocgenTypescriptOptions?: any;
5
+ reactDocgen?: 'react-docgen' | 'react-docgen-typescript' | false;
6
+ reactDocgenTypescriptOptions?: any;
7
7
  };
8
8
  export declare function applyDocgenWebpack(chain: WebpackChain, options: Options): Promise<void>;
9
- export declare function applyDocgenRspack(config: RspackConfig, options: Options): Promise<void>;
9
+ export declare function applyDocgenRspack(config: RspackConfig, options: Options): Promise<void>;
@@ -1,2 +1,2 @@
1
1
  declare function docLoader(this: any, source: string, map: string, data: any): Promise<void>;
2
- export default docLoader;
2
+ export default docLoader;
@@ -1,10 +1,6 @@
1
- declare const _default: ({
2
- source,
3
- map,
4
- filename
5
- }: {
6
- source: string;
7
- map: string;
8
- filename: string;
1
+ declare const _default: ({ source, map, filename, }: {
2
+ source: string;
3
+ map: string;
4
+ filename: string;
9
5
  }) => string[] | null;
10
- export default _default;
6
+ export default _default;
@@ -1,3 +1,3 @@
1
1
  export { start, build, bail, getConfig } from './build';
2
2
  export * from './types';
3
- export declare const corePresets: string[];
3
+ export declare const corePresets: string[];
@@ -3,4 +3,4 @@ import type { Options } from '@storybook/types';
3
3
  import type { BuilderPluginAPI as WebpackAPI } from '@modern-js/builder-webpack-provider';
4
4
  import type { BuilderPluginAPI as RspackAPI } from '@modern-js/builder-rspack-provider';
5
5
  export declare function finalize(): Promise<void>;
6
- export declare const pluginStorybook: (cwd: string, options: Options) => BuilderPlugin<WebpackAPI | RspackAPI>;
6
+ export declare const pluginStorybook: (cwd: string, options: Options) => BuilderPlugin<WebpackAPI | RspackAPI>;
@@ -2,4 +2,4 @@ import type { Options } from '@storybook/types';
2
2
  import { BuilderConfig } from './types';
3
3
  export declare const previewMainTemplate: () => string;
4
4
  export declare const entries: (_: unknown, options: Options) => Promise<string[]>;
5
- export declare const modern: (builderConfig: BuilderConfig, options: Options) => BuilderConfig;
5
+ export declare const modern: (builderConfig: BuilderConfig, options: Options) => BuilderConfig;
@@ -5,11 +5,11 @@ export type BundlerType = 'webpack' | 'rspack';
5
5
  export type { WebpackBuilderConfig, RspackBuilderConfig };
6
6
  export type AllBuilderConfig = WebpackBuilderConfig | RspackBuilderConfig;
7
7
  export type BuilderOptions = {
8
- bundler?: BundlerType;
9
- builderConfig?: AllBuilderConfig;
10
- configPath?: string;
8
+ bundler?: BundlerType;
9
+ builderConfig?: AllBuilderConfig;
10
+ configPath?: string;
11
11
  };
12
12
  export type BuilderConfig = AllBuilderConfig & {
13
- builderPlugins?: BuilderPlugin[];
13
+ builderPlugins?: BuilderPlugin[];
14
14
  };
15
- export { defineConfig } from '@modern-js/builder/cli';
15
+ export { defineConfig } from '@modern-js/builder/cli';
@@ -12,4 +12,4 @@ export declare function getAbsolutePath<I extends string>(input: I): I;
12
12
  export declare function maybeGetAbsolutePath<I extends string>(input: I): I | false;
13
13
  export declare function runWithErrorMsg<T>(op: () => Promise<T>, msg: string): Promise<T | undefined>;
14
14
  export declare function isDev(): boolean;
15
- export declare function getConfigFileName(): string;
15
+ export declare function getConfigFileName(): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modern-js/storybook-builder",
3
- "version": "0.0.0-nightly-20231205170638",
3
+ "version": "0.0.0-nightly-20231207170637",
4
4
  "description": "modern.js support for storybook",
5
5
  "repository": {
6
6
  "type": "git",
@@ -51,7 +51,7 @@
51
51
  },
52
52
  "license": "MIT",
53
53
  "dependencies": {
54
- "@rspack/plugin-react-refresh": "0.4.1",
54
+ "@rspack/plugin-react-refresh": "0.4.2",
55
55
  "@storybook/components": "~7.6.1",
56
56
  "@storybook/core-common": "~7.6.1",
57
57
  "@storybook/csf-plugin": "~7.6.1",
@@ -71,11 +71,11 @@
71
71
  "serve-static": "^1.14.1",
72
72
  "tinypool": "^0.8.0",
73
73
  "webpack-hot-middleware": "^2.25.4",
74
- "@modern-js/builder": "0.0.0-nightly-20231205170638",
75
- "@modern-js/builder-shared": "0.0.0-nightly-20231205170638",
76
- "@modern-js/core": "0.0.0-nightly-20231205170638",
77
- "@modern-js/runtime": "0.0.0-nightly-20231205170638",
78
- "@modern-js/utils": "0.0.0-nightly-20231205170638"
74
+ "@modern-js/builder": "0.0.0-nightly-20231207170637",
75
+ "@modern-js/core": "0.0.0-nightly-20231207170637",
76
+ "@modern-js/runtime": "0.0.0-nightly-20231207170637",
77
+ "@modern-js/builder-shared": "0.0.0-nightly-20231207170637",
78
+ "@modern-js/utils": "0.0.0-nightly-20231207170637"
79
79
  },
80
80
  "devDependencies": {
81
81
  "@storybook/types": "~7.6.1",
@@ -83,14 +83,14 @@
83
83
  "@types/serve-static": "^1.13.10",
84
84
  "@types/webpack-hot-middleware": "^2.25.6",
85
85
  "typescript": "^5.2.2",
86
- "@modern-js/builder-rspack-provider": "0.0.0-nightly-20231205170638",
87
- "@modern-js/builder-webpack-provider": "0.0.0-nightly-20231205170638",
88
- "@scripts/build": "0.0.0-nightly-20231205170638",
89
- "@modern-js/core": "0.0.0-nightly-20231205170638"
86
+ "@modern-js/builder-rspack-provider": "0.0.0-nightly-20231207170637",
87
+ "@modern-js/builder-webpack-provider": "0.0.0-nightly-20231207170637",
88
+ "@modern-js/core": "0.0.0-nightly-20231207170637",
89
+ "@scripts/build": "0.0.0-nightly-20231207170637"
90
90
  },
91
91
  "peerDependencies": {
92
- "@modern-js/builder-webpack-provider": "0.0.0-nightly-20231205170638",
93
- "@modern-js/builder-rspack-provider": "0.0.0-nightly-20231205170638"
92
+ "@modern-js/builder-webpack-provider": "0.0.0-nightly-20231207170637",
93
+ "@modern-js/builder-rspack-provider": "0.0.0-nightly-20231207170637"
94
94
  },
95
95
  "peerDependenciesMeta": {
96
96
  "@modern-js/builder-webpack-provider": {