@storybook/react-webpack5 10.6.0-alpha.0 → 10.6.0-alpha.2
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/dist/chunk-CtCG3FOo.d.ts +27 -0
- package/dist/index.d.ts +4 -28
- package/dist/node/index.d.ts +4 -26
- package/dist/node/index.js +6 -6
- package/dist/preset.js +6 -6
- package/package.json +5 -5
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { CompatibleString } from "storybook/internal/types";
|
|
2
|
+
import { BuilderOptions, StorybookConfigWebpack, TypescriptOptions } from "@storybook/builder-webpack5";
|
|
3
|
+
import { ReactOptions, StorybookConfig, TypescriptOptions as TypescriptOptions$1 } from "@storybook/preset-react-webpack";
|
|
4
|
+
|
|
5
|
+
//#region code/frameworks/react-webpack5/.dts-emit/code/frameworks/react-webpack5/src/types.d.ts
|
|
6
|
+
type FrameworkName = CompatibleString<'@storybook/react-webpack5'>;
|
|
7
|
+
type BuilderName = CompatibleString<'@storybook/builder-webpack5'>;
|
|
8
|
+
type FrameworkOptions = ReactOptions & {
|
|
9
|
+
builder?: BuilderOptions;
|
|
10
|
+
};
|
|
11
|
+
type StorybookConfigFramework = {
|
|
12
|
+
framework: FrameworkName | {
|
|
13
|
+
name: FrameworkName;
|
|
14
|
+
options: FrameworkOptions;
|
|
15
|
+
};
|
|
16
|
+
core?: StorybookConfig['core'] & {
|
|
17
|
+
builder?: BuilderName | {
|
|
18
|
+
name: BuilderName;
|
|
19
|
+
options: BuilderOptions;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
typescript?: Partial<TypescriptOptions & TypescriptOptions$1> & StorybookConfig['typescript'];
|
|
23
|
+
};
|
|
24
|
+
/** The interface for Storybook configuration in `main.ts` files. */
|
|
25
|
+
type StorybookConfig$1 = Omit<StorybookConfig, keyof StorybookConfigWebpack | keyof StorybookConfigFramework> & StorybookConfigWebpack & StorybookConfigFramework;
|
|
26
|
+
//#endregion
|
|
27
|
+
export { StorybookConfig$1 as n, FrameworkOptions as t };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,28 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { ReactOptions, StorybookConfig as StorybookConfig$1, TypescriptOptions as TypescriptOptions$1 } from '@storybook/preset-react-webpack';
|
|
6
|
-
|
|
7
|
-
type FrameworkName = CompatibleString<'@storybook/react-webpack5'>;
|
|
8
|
-
type BuilderName = CompatibleString<'@storybook/builder-webpack5'>;
|
|
9
|
-
type FrameworkOptions = ReactOptions & {
|
|
10
|
-
builder?: BuilderOptions;
|
|
11
|
-
};
|
|
12
|
-
type StorybookConfigFramework = {
|
|
13
|
-
framework: FrameworkName | {
|
|
14
|
-
name: FrameworkName;
|
|
15
|
-
options: FrameworkOptions;
|
|
16
|
-
};
|
|
17
|
-
core?: StorybookConfig$1['core'] & {
|
|
18
|
-
builder?: BuilderName | {
|
|
19
|
-
name: BuilderName;
|
|
20
|
-
options: BuilderOptions;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
typescript?: Partial<TypescriptOptions & TypescriptOptions$1> & StorybookConfig$1['typescript'];
|
|
24
|
-
};
|
|
25
|
-
/** The interface for Storybook configuration in `main.ts` files. */
|
|
26
|
-
type StorybookConfig = Omit<StorybookConfig$1, keyof StorybookConfigWebpack | keyof StorybookConfigFramework> & StorybookConfigWebpack & StorybookConfigFramework;
|
|
27
|
-
|
|
28
|
-
export type { FrameworkOptions, StorybookConfig };
|
|
1
|
+
import { n as StorybookConfig, t as FrameworkOptions } from "./chunk-CtCG3FOo.js";
|
|
2
|
+
import { __definePreview as definePreview } from "@storybook/react";
|
|
3
|
+
export * from "@storybook/react";
|
|
4
|
+
export { FrameworkOptions, StorybookConfig, definePreview };
|
package/dist/node/index.d.ts
CHANGED
|
@@ -1,28 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { StorybookConfigWebpack, BuilderOptions, TypescriptOptions } from '@storybook/builder-webpack5';
|
|
3
|
-
import { StorybookConfig as StorybookConfig$1, ReactOptions, TypescriptOptions as TypescriptOptions$1 } from '@storybook/preset-react-webpack';
|
|
4
|
-
|
|
5
|
-
type FrameworkName = CompatibleString<'@storybook/react-webpack5'>;
|
|
6
|
-
type BuilderName = CompatibleString<'@storybook/builder-webpack5'>;
|
|
7
|
-
type FrameworkOptions = ReactOptions & {
|
|
8
|
-
builder?: BuilderOptions;
|
|
9
|
-
};
|
|
10
|
-
type StorybookConfigFramework = {
|
|
11
|
-
framework: FrameworkName | {
|
|
12
|
-
name: FrameworkName;
|
|
13
|
-
options: FrameworkOptions;
|
|
14
|
-
};
|
|
15
|
-
core?: StorybookConfig$1['core'] & {
|
|
16
|
-
builder?: BuilderName | {
|
|
17
|
-
name: BuilderName;
|
|
18
|
-
options: BuilderOptions;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
typescript?: Partial<TypescriptOptions & TypescriptOptions$1> & StorybookConfig$1['typescript'];
|
|
22
|
-
};
|
|
23
|
-
/** The interface for Storybook configuration in `main.ts` files. */
|
|
24
|
-
type StorybookConfig = Omit<StorybookConfig$1, keyof StorybookConfigWebpack | keyof StorybookConfigFramework> & StorybookConfigWebpack & StorybookConfigFramework;
|
|
1
|
+
import { n as StorybookConfig } from "../chunk-CtCG3FOo.js";
|
|
25
2
|
|
|
3
|
+
//#region code/frameworks/react-webpack5/.dts-emit/code/frameworks/react-webpack5/src/node/index.d.ts
|
|
26
4
|
declare function defineMain(config: StorybookConfig): StorybookConfig;
|
|
27
|
-
|
|
28
|
-
export { type StorybookConfig, defineMain };
|
|
5
|
+
//#endregion
|
|
6
|
+
export { type StorybookConfig, defineMain };
|
package/dist/node/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_r8laz4q6kc from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_r8laz4q6kc from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_r8laz4q6kc from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_r8laz4q6kc.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_r8laz4q6kc.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_r8laz4q6kc.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
package/dist/preset.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_r8laz4q6kc from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_r8laz4q6kc from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_r8laz4q6kc from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_r8laz4q6kc.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_r8laz4q6kc.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_r8laz4q6kc.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/react-webpack5",
|
|
3
|
-
"version": "10.6.0-alpha.
|
|
3
|
+
"version": "10.6.0-alpha.2",
|
|
4
4
|
"description": "Storybook for React and Webpack: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"!src/**/*"
|
|
49
49
|
],
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@storybook/builder-webpack5": "10.6.0-alpha.
|
|
52
|
-
"@storybook/preset-react-webpack": "10.6.0-alpha.
|
|
53
|
-
"@storybook/react": "10.6.0-alpha.
|
|
51
|
+
"@storybook/builder-webpack5": "10.6.0-alpha.2",
|
|
52
|
+
"@storybook/preset-react-webpack": "10.6.0-alpha.2",
|
|
53
|
+
"@storybook/react": "10.6.0-alpha.2"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/node": "^22.19.1"
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"peerDependencies": {
|
|
59
59
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
60
60
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
61
|
-
"storybook": "^10.6.0-alpha.
|
|
61
|
+
"storybook": "^10.6.0-alpha.2",
|
|
62
62
|
"typescript": ">= 4.9.x"
|
|
63
63
|
},
|
|
64
64
|
"peerDependenciesMeta": {
|