@storybook/react 11.0.0-beta.2 → 11.0.0-beta.3
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/_node-chunks/{chunk-VQBUQHU3.js → chunk-23AJ2HMB.js} +7 -7
- package/dist/_node-chunks/{chunk-QRCEILHM.js → chunk-DYAQFVW4.js} +8 -8
- package/dist/_node-chunks/{chunk-TP7UUO2M.js → chunk-IHFW4SZ5.js} +6 -6
- package/dist/_node-chunks/{chunk-XQPV7U3R.js → chunk-J7MJPACM.js} +9 -9
- package/dist/_node-chunks/{chunk-ASUAJQT5.js → chunk-MA6UOA7T.js} +6 -6
- package/dist/_node-chunks/{chunk-BWU7O3KC.js → chunk-OICUDNLP.js} +7 -7
- package/dist/_node-chunks/{chunk-2DNUEB5U.js → chunk-WCSAV7ZK.js} +8 -8
- package/dist/_node-chunks/{chunk-DW2HJ23M.js → chunk-YAHZ47OQ.js} +7 -7
- package/dist/_node-chunks/{chunk-PXKXGEPO.js → chunk-YSSTGZG6.js} +19 -19
- package/dist/_node-chunks/{chunk-XIFLZILW.js → chunk-ZQMXVWN3.js} +7 -7
- package/dist/_node-chunks/{extractArgTypesFromComponentFile-PKEIPQGN.js → extractArgTypesFromComponentFile-U3IU4PU3.js} +14 -14
- package/dist/_node-chunks/{extractReactDocgenInfo-J6CKNSQN.js → extractReactDocgenInfo-XQKB6M4O.js} +11 -11
- package/dist/_node-chunks/{extractReactTypescriptDocgenInfo-AJTC3KA3.js → extractReactTypescriptDocgenInfo-X3XIYU7H.js} +9 -9
- package/dist/_node-chunks/reactDocgen-US7O3JSK.js +26 -0
- package/dist/builder-docgen.js +9 -9
- package/dist/docgen/docgen-worker.js +13 -13
- package/dist/preset.js +15 -15
- package/package.json +3 -3
- package/dist/_node-chunks/reactDocgen-YAGNM6ZQ.js +0 -26
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_f25fxbi8k7f from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_f25fxbi8k7f from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_f25fxbi8k7f from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_f25fxbi8k7f.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_f25fxbi8k7f.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_f25fxbi8k7f.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,7 +12,7 @@ var require = CJS_COMPAT_NODE_MODULE_0pbco1v5vos.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
ComponentMetaManager,
|
|
14
14
|
loadDocgenTypeScript
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YSSTGZG6.js";
|
|
16
16
|
|
|
17
17
|
// src/componentManifest/componentMetaManagerSingleton.ts
|
|
18
18
|
import { logger } from "storybook/internal/node-logger";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_f25fxbi8k7f from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_f25fxbi8k7f from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_f25fxbi8k7f from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_f25fxbi8k7f.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_f25fxbi8k7f.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_f25fxbi8k7f.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
buildComponentDocgenFromResolved,
|
|
14
14
|
posix,
|
|
15
15
|
resolveStoryFileComponents
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-YSSTGZG6.js";
|
|
17
17
|
import {
|
|
18
18
|
extractArgTypes
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-WCSAV7ZK.js";
|
|
20
20
|
|
|
21
21
|
// src/docgen/buildDocgen.ts
|
|
22
22
|
import { getStoryImportPathFromEntry } from "storybook/internal/common";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_f25fxbi8k7f from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_f25fxbi8k7f from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_f25fxbi8k7f from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_f25fxbi8k7f.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_f25fxbi8k7f.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_f25fxbi8k7f.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_f25fxbi8k7f from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_f25fxbi8k7f from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_f25fxbi8k7f from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_f25fxbi8k7f.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_f25fxbi8k7f.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_f25fxbi8k7f.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -14,15 +14,15 @@ import {
|
|
|
14
14
|
cachedReadFileSync,
|
|
15
15
|
cachedResolveImport,
|
|
16
16
|
matchPath
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-YAHZ47OQ.js";
|
|
18
18
|
import {
|
|
19
19
|
require_dist
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-OICUDNLP.js";
|
|
21
21
|
import {
|
|
22
22
|
__commonJS,
|
|
23
23
|
__require,
|
|
24
24
|
__toESM
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-MA6UOA7T.js";
|
|
26
26
|
|
|
27
27
|
// ../../../node_modules/resolve/lib/homedir.js
|
|
28
28
|
var require_homedir = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_f25fxbi8k7f from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_f25fxbi8k7f from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_f25fxbi8k7f from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_f25fxbi8k7f.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_f25fxbi8k7f.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_f25fxbi8k7f.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_f25fxbi8k7f from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_f25fxbi8k7f from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_f25fxbi8k7f from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_f25fxbi8k7f.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_f25fxbi8k7f.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_f25fxbi8k7f.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
__commonJS
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-MA6UOA7T.js";
|
|
15
15
|
|
|
16
16
|
// ../../../node_modules/ts-dedent/dist/index.js
|
|
17
17
|
var require_dist = __commonJS({
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_f25fxbi8k7f from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_f25fxbi8k7f from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_f25fxbi8k7f from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_f25fxbi8k7f.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_f25fxbi8k7f.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_f25fxbi8k7f.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
require_dist
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-OICUDNLP.js";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
17
17
|
__esm,
|
|
18
18
|
__export,
|
|
19
19
|
__toCommonJS,
|
|
20
20
|
__toESM
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-MA6UOA7T.js";
|
|
22
22
|
|
|
23
23
|
// ../../../node_modules/estraverse/estraverse.js
|
|
24
24
|
var require_estraverse = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_f25fxbi8k7f from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_f25fxbi8k7f from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_f25fxbi8k7f from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_f25fxbi8k7f.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_f25fxbi8k7f.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_f25fxbi8k7f.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
__commonJS,
|
|
14
14
|
__require,
|
|
15
15
|
__toESM
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-MA6UOA7T.js";
|
|
17
17
|
|
|
18
18
|
// ../../../node_modules/tsconfig-paths/lib/filesystem.js
|
|
19
19
|
var require_filesystem = __commonJS({
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_f25fxbi8k7f from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_f25fxbi8k7f from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_f25fxbi8k7f from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_f25fxbi8k7f.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_f25fxbi8k7f.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_f25fxbi8k7f.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
REACT_DOCGEN_TYPESCRIPT_APIS
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-IHFW4SZ5.js";
|
|
15
15
|
import {
|
|
16
16
|
asyncCache,
|
|
17
17
|
cached,
|
|
@@ -23,11 +23,11 @@ import {
|
|
|
23
23
|
groupByToMap,
|
|
24
24
|
invariant,
|
|
25
25
|
matchPath
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-YAHZ47OQ.js";
|
|
27
27
|
import {
|
|
28
28
|
__commonJS,
|
|
29
29
|
__toESM
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-MA6UOA7T.js";
|
|
31
31
|
|
|
32
32
|
// ../../../node_modules/@volar/source-map/lib/binarySearch.js
|
|
33
33
|
var require_binarySearch = __commonJS({
|
|
@@ -3328,10 +3328,10 @@ var require_typescript = __commonJS({
|
|
|
3328
3328
|
}
|
|
3329
3329
|
});
|
|
3330
3330
|
|
|
3331
|
-
// ../../lib/component-meta-typescript/dist/_node-chunks/chunk-
|
|
3332
|
-
import
|
|
3333
|
-
import
|
|
3334
|
-
import
|
|
3331
|
+
// ../../lib/component-meta-typescript/dist/_node-chunks/chunk-IDD6AHYE.js
|
|
3332
|
+
import CJS_COMPAT_NODE_URL_r3c3rhnvdz from "node:url";
|
|
3333
|
+
import CJS_COMPAT_NODE_PATH_r3c3rhnvdz from "node:path";
|
|
3334
|
+
import CJS_COMPAT_NODE_MODULE_r3c3rhnvdz from "node:module";
|
|
3335
3335
|
import { pathToFileURL } from "node:url";
|
|
3336
3336
|
import {
|
|
3337
3337
|
getTypeScriptDocgenApi,
|
|
@@ -3343,7 +3343,7 @@ import {
|
|
|
3343
3343
|
TypeScriptMissingForDocgenError,
|
|
3344
3344
|
TypeScriptWithoutCompilerApiError
|
|
3345
3345
|
} from "storybook/internal/server-errors";
|
|
3346
|
-
var __filename =
|
|
3346
|
+
var __filename = CJS_COMPAT_NODE_URL_r3c3rhnvdz.fileURLToPath(import.meta.url), __dirname = CJS_COMPAT_NODE_PATH_r3c3rhnvdz.dirname(__filename), require2 = CJS_COMPAT_NODE_MODULE_r3c3rhnvdz.createRequire(import.meta.url), _lazyMatch = () => {
|
|
3347
3347
|
var __lib__ = (() => {
|
|
3348
3348
|
var m = Object.defineProperty, V = Object.getOwnPropertyDescriptor, G = Object.getOwnPropertyNames, T = Object.prototype.hasOwnProperty, q = (r, e) => {
|
|
3349
3349
|
for (var n in e) m(r, n, { get: e[n], enumerable: !0 });
|
|
@@ -3667,16 +3667,16 @@ function loadDocgenTypeScript(typeScriptSpecifier) {
|
|
|
3667
3667
|
}
|
|
3668
3668
|
|
|
3669
3669
|
// ../../lib/component-meta-typescript/dist/index.js
|
|
3670
|
-
import
|
|
3671
|
-
import
|
|
3672
|
-
import
|
|
3670
|
+
import CJS_COMPAT_NODE_URL_r3c3rhnvdz2 from "node:url";
|
|
3671
|
+
import CJS_COMPAT_NODE_PATH_r3c3rhnvdz2 from "node:path";
|
|
3672
|
+
import CJS_COMPAT_NODE_MODULE_r3c3rhnvdz2 from "node:module";
|
|
3673
3673
|
import { existsSync, readFileSync, statSync } from "node:fs";
|
|
3674
3674
|
import {
|
|
3675
3675
|
filterSourceFilePaths
|
|
3676
3676
|
} from "storybook/internal/component-meta";
|
|
3677
3677
|
import { statSync as statSync2 } from "node:fs";
|
|
3678
3678
|
import { logger } from "storybook/internal/node-logger";
|
|
3679
|
-
var __filename2 =
|
|
3679
|
+
var __filename2 = CJS_COMPAT_NODE_URL_r3c3rhnvdz2.fileURLToPath(import.meta.url), __dirname2 = CJS_COMPAT_NODE_PATH_r3c3rhnvdz2.dirname(__filename2), require3 = CJS_COMPAT_NODE_MODULE_r3c3rhnvdz2.createRequire(import.meta.url), DOCGEN_NODE_GUARDS = [
|
|
3680
3680
|
"isArrayLiteralExpression",
|
|
3681
3681
|
"isArrayTypeNode",
|
|
3682
3682
|
"isArrowFunction",
|
|
@@ -6178,7 +6178,7 @@ import { getTypeScriptForDocgenError, isModuleNotFoundError as isModuleNotFoundE
|
|
|
6178
6178
|
import { logger as logger5 } from "storybook/internal/node-logger";
|
|
6179
6179
|
var reactDocgenPromise;
|
|
6180
6180
|
function loadReactDocgen() {
|
|
6181
|
-
return reactDocgenPromise ??= import("./reactDocgen-
|
|
6181
|
+
return reactDocgenPromise ??= import("./reactDocgen-US7O3JSK.js").catch((error) => {
|
|
6182
6182
|
if (isModuleNotFoundError2(error)) {
|
|
6183
6183
|
logger5.debug(`Skipping react-docgen, which is not installed: ${error}`);
|
|
6184
6184
|
return;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_f25fxbi8k7f from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_f25fxbi8k7f from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_f25fxbi8k7f from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_f25fxbi8k7f.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_f25fxbi8k7f.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_f25fxbi8k7f.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
REACT_DOCGEN_TYPESCRIPT_APIS
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-IHFW4SZ5.js";
|
|
15
15
|
|
|
16
16
|
// src/builder-docgen.ts
|
|
17
17
|
import {
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_f25fxbi8k7f from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_f25fxbi8k7f from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_f25fxbi8k7f from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_f25fxbi8k7f.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_f25fxbi8k7f.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_f25fxbi8k7f.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
getSharedComponentMetaManager
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-23AJ2HMB.js";
|
|
15
15
|
import {
|
|
16
16
|
extractArgTypesFromComponentMeta
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-DYAQFVW4.js";
|
|
18
|
+
import "./chunk-YSSTGZG6.js";
|
|
19
|
+
import "./chunk-IHFW4SZ5.js";
|
|
20
|
+
import "./chunk-YAHZ47OQ.js";
|
|
21
|
+
import "./chunk-WCSAV7ZK.js";
|
|
22
|
+
import "./chunk-OICUDNLP.js";
|
|
23
|
+
import "./chunk-MA6UOA7T.js";
|
|
24
24
|
|
|
25
25
|
// src/docgen/extractArgTypesFromComponentFile.ts
|
|
26
26
|
async function extractArgTypesFromComponentFile({
|
package/dist/_node-chunks/{extractReactDocgenInfo-J6CKNSQN.js → extractReactDocgenInfo-XQKB6M4O.js}
RENAMED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_f25fxbi8k7f from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_f25fxbi8k7f from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_f25fxbi8k7f from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_f25fxbi8k7f.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_f25fxbi8k7f.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_f25fxbi8k7f.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
parseWithReactDocgen
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-J7MJPACM.js";
|
|
15
15
|
import {
|
|
16
16
|
cachedReadFileSync
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-YAHZ47OQ.js";
|
|
18
18
|
import {
|
|
19
19
|
extractArgTypes
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-WCSAV7ZK.js";
|
|
21
|
+
import "./chunk-OICUDNLP.js";
|
|
22
|
+
import "./chunk-MA6UOA7T.js";
|
|
23
23
|
|
|
24
24
|
// src/componentManifest/reactDocgen/extractReactDocgenInfo.ts
|
|
25
25
|
import { logger } from "storybook/internal/node-logger";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_f25fxbi8k7f from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_f25fxbi8k7f from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_f25fxbi8k7f from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_f25fxbi8k7f.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_f25fxbi8k7f.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_f25fxbi8k7f.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
extractArgTypes
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-WCSAV7ZK.js";
|
|
15
|
+
import "./chunk-OICUDNLP.js";
|
|
16
|
+
import "./chunk-MA6UOA7T.js";
|
|
17
17
|
|
|
18
18
|
// src/componentManifest/reactDocgen/extractReactTypescriptDocgenInfo.ts
|
|
19
19
|
import { logger } from "storybook/internal/node-logger";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_f25fxbi8k7f from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_f25fxbi8k7f from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_f25fxbi8k7f from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_f25fxbi8k7f.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_f25fxbi8k7f.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_f25fxbi8k7f.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
import {
|
|
13
|
+
getMatchingDocgen,
|
|
14
|
+
getReactDocgen,
|
|
15
|
+
getReactDocgenImporter,
|
|
16
|
+
parseWithReactDocgen
|
|
17
|
+
} from "./chunk-J7MJPACM.js";
|
|
18
|
+
import "./chunk-YAHZ47OQ.js";
|
|
19
|
+
import "./chunk-OICUDNLP.js";
|
|
20
|
+
import "./chunk-MA6UOA7T.js";
|
|
21
|
+
export {
|
|
22
|
+
getMatchingDocgen,
|
|
23
|
+
getReactDocgen,
|
|
24
|
+
getReactDocgenImporter,
|
|
25
|
+
parseWithReactDocgen
|
|
26
|
+
};
|
package/dist/builder-docgen.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_f25fxbi8k7f from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_f25fxbi8k7f from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_f25fxbi8k7f from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_f25fxbi8k7f.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_f25fxbi8k7f.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_f25fxbi8k7f.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -14,9 +14,9 @@ import {
|
|
|
14
14
|
getReactBuilderDocgenPackages,
|
|
15
15
|
isReactBuilderDocgenPackageInstalled,
|
|
16
16
|
prepareReactBuilderDocgen
|
|
17
|
-
} from "./_node-chunks/chunk-
|
|
18
|
-
import "./_node-chunks/chunk-
|
|
19
|
-
import "./_node-chunks/chunk-
|
|
17
|
+
} from "./_node-chunks/chunk-ZQMXVWN3.js";
|
|
18
|
+
import "./_node-chunks/chunk-IHFW4SZ5.js";
|
|
19
|
+
import "./_node-chunks/chunk-MA6UOA7T.js";
|
|
20
20
|
export {
|
|
21
21
|
REACT_BUILDER_DOCGEN_PACKAGES,
|
|
22
22
|
getReactBuilderDocgenPackages,
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_f25fxbi8k7f from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_f25fxbi8k7f from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_f25fxbi8k7f from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_f25fxbi8k7f.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_f25fxbi8k7f.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_f25fxbi8k7f.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
buildDocgenPayload
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-DYAQFVW4.js";
|
|
15
15
|
import {
|
|
16
16
|
ComponentMetaManager,
|
|
17
17
|
loadDocgenTypeScript
|
|
18
|
-
} from "../_node-chunks/chunk-
|
|
19
|
-
import "../_node-chunks/chunk-
|
|
20
|
-
import "../_node-chunks/chunk-
|
|
21
|
-
import "../_node-chunks/chunk-
|
|
22
|
-
import "../_node-chunks/chunk-
|
|
23
|
-
import "../_node-chunks/chunk-
|
|
18
|
+
} from "../_node-chunks/chunk-YSSTGZG6.js";
|
|
19
|
+
import "../_node-chunks/chunk-IHFW4SZ5.js";
|
|
20
|
+
import "../_node-chunks/chunk-YAHZ47OQ.js";
|
|
21
|
+
import "../_node-chunks/chunk-WCSAV7ZK.js";
|
|
22
|
+
import "../_node-chunks/chunk-OICUDNLP.js";
|
|
23
|
+
import "../_node-chunks/chunk-MA6UOA7T.js";
|
|
24
24
|
|
|
25
25
|
// src/docgen/docgen-worker.ts
|
|
26
26
|
import {
|
package/dist/preset.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_f25fxbi8k7f from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_f25fxbi8k7f from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_f25fxbi8k7f from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_f25fxbi8k7f.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_f25fxbi8k7f.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_f25fxbi8k7f.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
REACT_BUILDER_DOCGEN_PACKAGES
|
|
14
|
-
} from "./_node-chunks/chunk-
|
|
14
|
+
} from "./_node-chunks/chunk-ZQMXVWN3.js";
|
|
15
15
|
import {
|
|
16
16
|
getSharedComponentMetaManager
|
|
17
|
-
} from "./_node-chunks/chunk-
|
|
17
|
+
} from "./_node-chunks/chunk-23AJ2HMB.js";
|
|
18
18
|
import {
|
|
19
19
|
buildReactComponentDocgenFromResolved,
|
|
20
20
|
buildStoryDocsFromResolved,
|
|
@@ -24,14 +24,14 @@ import {
|
|
|
24
24
|
join,
|
|
25
25
|
posix,
|
|
26
26
|
resolveStoryFileComponents
|
|
27
|
-
} from "./_node-chunks/chunk-
|
|
27
|
+
} from "./_node-chunks/chunk-YSSTGZG6.js";
|
|
28
28
|
import {
|
|
29
29
|
REACT_DOCGEN_TYPESCRIPT_APIS
|
|
30
|
-
} from "./_node-chunks/chunk-
|
|
30
|
+
} from "./_node-chunks/chunk-IHFW4SZ5.js";
|
|
31
31
|
import {
|
|
32
32
|
invalidateCache
|
|
33
|
-
} from "./_node-chunks/chunk-
|
|
34
|
-
import "./_node-chunks/chunk-
|
|
33
|
+
} from "./_node-chunks/chunk-YAHZ47OQ.js";
|
|
34
|
+
import "./_node-chunks/chunk-MA6UOA7T.js";
|
|
35
35
|
|
|
36
36
|
// src/preset.ts
|
|
37
37
|
import path2, { join as join3 } from "node:path";
|
|
@@ -514,7 +514,7 @@ async function internal_getArgTypesData(_input, options) {
|
|
|
514
514
|
return null;
|
|
515
515
|
let absoluteComponentFilePath = path2.isAbsolute(componentFilePath) ? componentFilePath : join3(getProjectRoot(), componentFilePath);
|
|
516
516
|
if ((await presets?.apply("features", {}))?.docgenServer) {
|
|
517
|
-
let { extractArgTypesFromComponentFile } = await import("./_node-chunks/extractArgTypesFromComponentFile-
|
|
517
|
+
let { extractArgTypesFromComponentFile } = await import("./_node-chunks/extractArgTypesFromComponentFile-U3IU4PU3.js");
|
|
518
518
|
return extractArgTypesFromComponentFile({
|
|
519
519
|
componentFilePath: absoluteComponentFilePath,
|
|
520
520
|
componentExportName,
|
|
@@ -533,14 +533,14 @@ async function internal_getArgTypesData(_input, options) {
|
|
|
533
533
|
let argTypesData;
|
|
534
534
|
try {
|
|
535
535
|
if (reactDocgen === "react-docgen-typescript") {
|
|
536
|
-
let { extractArgTypesFromDocgenTypescript } = await import("./_node-chunks/extractReactTypescriptDocgenInfo-
|
|
536
|
+
let { extractArgTypesFromDocgenTypescript } = await import("./_node-chunks/extractReactTypescriptDocgenInfo-X3XIYU7H.js");
|
|
537
537
|
argTypesData = await extractArgTypesFromDocgenTypescript({
|
|
538
538
|
componentFilePath: absoluteComponentFilePath,
|
|
539
539
|
componentExportName,
|
|
540
540
|
reactDocgenTypescriptOptions
|
|
541
541
|
});
|
|
542
542
|
} else {
|
|
543
|
-
let { extractArgTypesFromDocgen } = await import("./_node-chunks/extractReactDocgenInfo-
|
|
543
|
+
let { extractArgTypesFromDocgen } = await import("./_node-chunks/extractReactDocgenInfo-XQKB6M4O.js");
|
|
544
544
|
argTypesData = extractArgTypesFromDocgen({
|
|
545
545
|
componentFilePath: absoluteComponentFilePath,
|
|
546
546
|
componentExportName
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/react",
|
|
3
|
-
"version": "11.0.0-beta.
|
|
3
|
+
"version": "11.0.0-beta.3",
|
|
4
4
|
"description": "Storybook React renderer",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@storybook/global": "^5.0.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@storybook/component-meta-typescript": "11.0.0-beta.
|
|
59
|
+
"@storybook/component-meta-typescript": "11.0.0-beta.3",
|
|
60
60
|
"@types/babel-plugin-react-docgen": "^4.2.3",
|
|
61
61
|
"@types/escodegen": "^0.0.6",
|
|
62
62
|
"@types/estree": "^1.0.6",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"react-docgen": "^8.0.2",
|
|
91
91
|
"react-docgen-typescript": "^2.2.2",
|
|
92
92
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
93
|
-
"storybook": "^11.0.0-beta.
|
|
93
|
+
"storybook": "^11.0.0-beta.3",
|
|
94
94
|
"typescript": "^5.9.0 || ^6.0.0 || ^7.0.0"
|
|
95
95
|
},
|
|
96
96
|
"peerDependenciesMeta": {
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_0pbco1v5vos from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_0pbco1v5vos from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_0pbco1v5vos from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_0pbco1v5vos.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_0pbco1v5vos.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_0pbco1v5vos.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
|
-
import {
|
|
13
|
-
getMatchingDocgen,
|
|
14
|
-
getReactDocgen,
|
|
15
|
-
getReactDocgenImporter,
|
|
16
|
-
parseWithReactDocgen
|
|
17
|
-
} from "./chunk-XQPV7U3R.js";
|
|
18
|
-
import "./chunk-DW2HJ23M.js";
|
|
19
|
-
import "./chunk-BWU7O3KC.js";
|
|
20
|
-
import "./chunk-ASUAJQT5.js";
|
|
21
|
-
export {
|
|
22
|
-
getMatchingDocgen,
|
|
23
|
-
getReactDocgen,
|
|
24
|
-
getReactDocgenImporter,
|
|
25
|
-
parseWithReactDocgen
|
|
26
|
-
};
|