storybook 10.0.0-beta.12 → 10.0.0-beta.13
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/{builder-manager-OSSM4NWE.js → builder-manager-L3MZVMZ5.js} +12 -12
- package/dist/_node-chunks/camelcase-SBGRHZU6.js +18 -0
- package/dist/_node-chunks/{chunk-P4A5LSOL.js → chunk-2PVUQY5V.js} +7 -7
- package/dist/_node-chunks/{chunk-ZC7MGMUM.js → chunk-66ENUZM3.js} +9 -9
- package/dist/_node-chunks/{chunk-VILCWP7X.js → chunk-6EM7SHCK.js} +7 -7
- package/dist/_node-chunks/{chunk-HMQ4V7Z5.js → chunk-6R3ENJUF.js} +7 -7
- package/dist/_node-chunks/{chunk-L66JUN4K.js → chunk-A4LTSGWA.js} +7 -7
- package/dist/_node-chunks/{chunk-PZKOFPBC.js → chunk-AWXGSZGM.js} +8 -8
- package/dist/_node-chunks/{chunk-Q7TTM3CS.js → chunk-BM3XDPHW.js} +12 -12
- package/dist/_node-chunks/{chunk-6TWKDGVL.js → chunk-CE25WRUD.js} +7 -7
- package/dist/_node-chunks/{chunk-CMSO5CKP.js → chunk-CKZNJYLM.js} +8 -8
- package/dist/_node-chunks/{chunk-XZM5EEGR.js → chunk-EIAGLK2S.js} +9 -9
- package/dist/_node-chunks/{chunk-X2GOBKPX.js → chunk-EJX3QGDP.js} +26 -24
- package/dist/_node-chunks/{chunk-D6Y5ILYC.js → chunk-ETYXUFUN.js} +6 -6
- package/dist/_node-chunks/{chunk-FEYCLHUC.js → chunk-H3OKFQ7Y.js} +7 -7
- package/dist/_node-chunks/chunk-H7H5VH4N.js +18 -0
- package/dist/_node-chunks/{chunk-C5A5EHZD.js → chunk-KBIRRRF3.js} +7 -7
- package/dist/_node-chunks/{chunk-LNJG27QP.js → chunk-KHRYPC5C.js} +7 -7
- package/dist/_node-chunks/{chunk-P52J67ZF.js → chunk-MJUX6QTP.js} +7 -7
- package/dist/_node-chunks/{chunk-FIQDWC46.js → chunk-NR3HISO5.js} +7 -7
- package/dist/_node-chunks/{chunk-O6PZSYDR.js → chunk-OCVLGT5T.js} +8 -8
- package/dist/_node-chunks/chunk-OGLI2H2L.js +61 -0
- package/dist/_node-chunks/{chunk-LLYQYHE5.js → chunk-OJHR3DEG.js} +8 -8
- package/dist/_node-chunks/{chunk-ZBLA36L3.js → chunk-ROPO5JHR.js} +7 -7
- package/dist/_node-chunks/{chunk-LGYIF62P.js → chunk-RQM73BBF.js} +7 -7
- package/dist/_node-chunks/{chunk-B5SKO5PI.js → chunk-TZLQJVUQ.js} +7 -7
- package/dist/_node-chunks/{chunk-E37BDCHA.js → chunk-VV7UYTM2.js} +6 -6
- package/dist/_node-chunks/{chunk-VYLAKHZ4.js → chunk-VWAQR7SK.js} +7 -7
- package/dist/_node-chunks/{chunk-FHECLS7O.js → chunk-VWDE4KGF.js} +7 -7
- package/dist/_node-chunks/{chunk-QEKKJKST.js → chunk-WONPUF7K.js} +8 -8
- package/dist/_node-chunks/{chunk-QVJTCLCM.js → chunk-XFXHZ5JF.js} +14 -14
- package/dist/_node-chunks/{chunk-55DIS7QM.js → chunk-XIGLO64N.js} +10 -10
- package/dist/_node-chunks/{chunk-WCTWPKT5.js → chunk-YQWCYFNY.js} +7 -7
- package/dist/_node-chunks/{dist-MU5GUPNX.js → dist-4LTP5352.js} +9 -9
- package/dist/_node-chunks/{globby-O76AC2B6.js → globby-YL2WN4IM.js} +9 -9
- package/dist/_node-chunks/{lib-LNU5U5LQ.js → lib-H6VRT3L6.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-XEA2YCLC.js → mdx-N42X6CFJ-PUU6DJRU.js} +8 -8
- package/dist/_node-chunks/{p-limit-YQHFHRN5.js → p-limit-B4XGNEDI.js} +7 -7
- package/dist/_node-chunks/{plugin-I6VO7Z4N.js → plugin-FTK7LQSU.js} +10 -10
- package/dist/_node-chunks/{plugin-W2OFPK2T.js → plugin-WPIGKPJE.js} +10 -10
- package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-M3ZKBWSR.js → webpack-inject-mocker-runtime-plugin-ZVJPX75F.js} +10 -10
- package/dist/_node-chunks/{webpack-mock-plugin-PU6SBAYY.js → webpack-mock-plugin-BYKVULFT.js} +9 -9
- package/dist/babel/index.js +11 -11
- package/dist/bin/core.js +11 -11
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +9 -9
- package/dist/cli/index.js +20 -20
- package/dist/common/index.d.ts +0 -1
- package/dist/common/index.js +20 -20
- package/dist/core-server/index.js +34 -34
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +22 -22
- package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +9 -9
- package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +10 -10
- package/dist/csf-tools/index.js +9 -9
- package/dist/manager/globals-runtime.js +1 -1
- package/dist/manager-api/index.d.ts +1 -1
- package/dist/manager-api/index.js +1 -1
- package/dist/node-logger/index.js +14 -14
- package/dist/preview-api/index.d.ts +68 -67
- package/dist/server-errors.js +10 -10
- package/dist/telemetry/index.js +23 -23
- package/package.json +1 -1
- package/dist/_node-chunks/camelcase-GGFG4KN6.js +0 -18
- package/dist/_node-chunks/chunk-Q3KIVM64.js +0 -18
- package/dist/_node-chunks/chunk-WV6BPXST.js +0 -62
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_lsrbdpi9o7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_lsrbdpi9o7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_lsrbdpi9o7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_lsrbdpi9o7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,21 +13,21 @@ import {
|
|
|
13
13
|
BROWSER_TARGETS,
|
|
14
14
|
NODE_TARGET,
|
|
15
15
|
SUPPORTED_FEATURES
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-VV7UYTM2.js";
|
|
17
17
|
import {
|
|
18
18
|
require_build
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-CE25WRUD.js";
|
|
20
20
|
import {
|
|
21
21
|
resolveModulePath,
|
|
22
22
|
resolvePackageDir
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-OCVLGT5T.js";
|
|
24
24
|
import {
|
|
25
25
|
join,
|
|
26
26
|
parse
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-TZLQJVUQ.js";
|
|
28
28
|
import {
|
|
29
29
|
slash
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-VWDE4KGF.js";
|
|
31
31
|
import {
|
|
32
32
|
__commonJS,
|
|
33
33
|
__esm,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
__require,
|
|
37
37
|
__toCommonJS,
|
|
38
38
|
__toESM
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-ETYXUFUN.js";
|
|
40
40
|
|
|
41
41
|
// ../node_modules/tslib/tslib.es6.mjs
|
|
42
42
|
var tslib_es6_exports = {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_lsrbdpi9o7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_lsrbdpi9o7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_lsrbdpi9o7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_lsrbdpi9o7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
import {
|
|
13
|
+
camelCase
|
|
14
|
+
} from "./chunk-A4LTSGWA.js";
|
|
15
|
+
import "./chunk-ETYXUFUN.js";
|
|
16
|
+
export {
|
|
17
|
+
camelCase as default
|
|
18
|
+
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_lsrbdpi9o7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_lsrbdpi9o7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_lsrbdpi9o7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_lsrbdpi9o7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c.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
|
__name
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ETYXUFUN.js";
|
|
15
15
|
|
|
16
16
|
// ../node_modules/empathic/resolve.mjs
|
|
17
17
|
import { createRequire } from "node:module";
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_lsrbdpi9o7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_lsrbdpi9o7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_lsrbdpi9o7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_lsrbdpi9o7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c.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-6EM7SHCK.js";
|
|
15
15
|
import {
|
|
16
16
|
require_picocolors
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ROPO5JHR.js";
|
|
18
18
|
import {
|
|
19
19
|
__name,
|
|
20
20
|
__toESM
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-ETYXUFUN.js";
|
|
22
22
|
|
|
23
23
|
// src/server-errors.ts
|
|
24
24
|
var import_picocolors = __toESM(require_picocolors(), 1);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_lsrbdpi9o7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_lsrbdpi9o7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_lsrbdpi9o7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_lsrbdpi9o7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c.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_ukdptlocs4k.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__name
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ETYXUFUN.js";
|
|
16
16
|
|
|
17
17
|
// ../node_modules/ts-dedent/dist/index.js
|
|
18
18
|
var require_dist = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_lsrbdpi9o7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_lsrbdpi9o7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_lsrbdpi9o7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_lsrbdpi9o7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c.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_ukdptlocs4k.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__name,
|
|
14
14
|
__require
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ETYXUFUN.js";
|
|
16
16
|
|
|
17
17
|
// ../node_modules/@storybook/docs-mdx/dist/chunk-H6DQNFQR.js
|
|
18
18
|
var __create = Object.create;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_lsrbdpi9o7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_lsrbdpi9o7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_lsrbdpi9o7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_lsrbdpi9o7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c.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
|
__name
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ETYXUFUN.js";
|
|
15
15
|
|
|
16
16
|
// ../node_modules/camelcase/index.js
|
|
17
17
|
var UPPERCASE = /[\p{Lu}]/u;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_lsrbdpi9o7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_lsrbdpi9o7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_lsrbdpi9o7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_lsrbdpi9o7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
join,
|
|
17
17
|
normalize,
|
|
18
18
|
resolve
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-TZLQJVUQ.js";
|
|
20
20
|
import {
|
|
21
21
|
__name
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ETYXUFUN.js";
|
|
23
23
|
|
|
24
24
|
// src/core-server/mocking-utils/resolve.ts
|
|
25
25
|
import { readFileSync as readFileSync2, realpathSync } from "node:fs";
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_lsrbdpi9o7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_lsrbdpi9o7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_lsrbdpi9o7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_lsrbdpi9o7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c.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_build
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-CE25WRUD.js";
|
|
15
15
|
import {
|
|
16
16
|
resolvePackageDir
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-OCVLGT5T.js";
|
|
18
18
|
import {
|
|
19
19
|
require_prompts
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-YQWCYFNY.js";
|
|
21
21
|
import {
|
|
22
22
|
require_dist
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-6EM7SHCK.js";
|
|
24
24
|
import {
|
|
25
25
|
require_picocolors
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-ROPO5JHR.js";
|
|
27
27
|
import {
|
|
28
28
|
__name,
|
|
29
29
|
__toESM
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-ETYXUFUN.js";
|
|
31
31
|
|
|
32
32
|
// src/core-server/utils/server-statics.ts
|
|
33
33
|
var import_picocolors = __toESM(require_picocolors(), 1);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_lsrbdpi9o7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_lsrbdpi9o7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_lsrbdpi9o7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_lsrbdpi9o7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c.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
|
__name,
|
|
15
15
|
__require
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ETYXUFUN.js";
|
|
17
17
|
|
|
18
18
|
// ../node_modules/totalist/sync/index.js
|
|
19
19
|
var require_sync = __commonJS({
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_lsrbdpi9o7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_lsrbdpi9o7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_lsrbdpi9o7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_lsrbdpi9o7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c.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-6EM7SHCK.js";
|
|
15
15
|
import {
|
|
16
16
|
__export,
|
|
17
17
|
__name,
|
|
18
18
|
__toESM
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ETYXUFUN.js";
|
|
20
20
|
|
|
21
21
|
// src/cli/globalSettings.ts
|
|
22
22
|
var import_ts_dedent = __toESM(require_dist(), 1);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_lsrbdpi9o7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_lsrbdpi9o7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_lsrbdpi9o7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_lsrbdpi9o7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
any,
|
|
14
14
|
up,
|
|
15
15
|
up2
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-2PVUQY5V.js";
|
|
17
17
|
import {
|
|
18
18
|
__commonJS,
|
|
19
19
|
__name,
|
|
20
20
|
__require,
|
|
21
21
|
__toESM
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ETYXUFUN.js";
|
|
23
23
|
|
|
24
24
|
// ../node_modules/tinyglobby/node_modules/picomatch/lib/constants.js
|
|
25
25
|
var require_constants = __commonJS({
|
|
@@ -3023,7 +3023,7 @@ __name(normalizeStoryPath, "normalizeStoryPath");
|
|
|
3023
3023
|
|
|
3024
3024
|
// src/common/utils/envs.ts
|
|
3025
3025
|
async function loadEnvs(options = {}) {
|
|
3026
|
-
const { getEnvironment } = await import("./lib-
|
|
3026
|
+
const { getEnvironment } = await import("./lib-H6VRT3L6.js");
|
|
3027
3027
|
const defaultNodeEnv = options.production ? "production" : "development";
|
|
3028
3028
|
const env = {
|
|
3029
3029
|
// eslint-disable-next-line @typescript-eslint/dot-notation
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_lsrbdpi9o7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_lsrbdpi9o7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_lsrbdpi9o7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_lsrbdpi9o7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c.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_picomatch
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-H3OKFQ7Y.js";
|
|
15
15
|
import {
|
|
16
16
|
versions_default
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-OGLI2H2L.js";
|
|
18
18
|
import {
|
|
19
19
|
BUN_LOCKFILE,
|
|
20
20
|
BUN_LOCKFILE_BINARY,
|
|
@@ -27,42 +27,42 @@ import {
|
|
|
27
27
|
getProjectRoot,
|
|
28
28
|
normalizeStoryPath,
|
|
29
29
|
require_cross_spawn
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-EIAGLK2S.js";
|
|
31
31
|
import {
|
|
32
32
|
any,
|
|
33
33
|
from,
|
|
34
34
|
up2 as up
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-2PVUQY5V.js";
|
|
36
36
|
import {
|
|
37
37
|
invariant
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-RQM73BBF.js";
|
|
39
39
|
import {
|
|
40
40
|
importModule,
|
|
41
41
|
resolveModulePath,
|
|
42
42
|
resolvePackageDir,
|
|
43
43
|
safeResolveModule
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-OCVLGT5T.js";
|
|
45
45
|
import {
|
|
46
46
|
join,
|
|
47
47
|
parse,
|
|
48
48
|
resolve
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-TZLQJVUQ.js";
|
|
50
50
|
import {
|
|
51
51
|
require_prompts
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-YQWCYFNY.js";
|
|
53
53
|
import {
|
|
54
54
|
glob,
|
|
55
55
|
globSync
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-MJUX6QTP.js";
|
|
57
57
|
import {
|
|
58
58
|
slash
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-VWDE4KGF.js";
|
|
60
60
|
import {
|
|
61
61
|
require_dist
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-6EM7SHCK.js";
|
|
63
63
|
import {
|
|
64
64
|
require_picocolors
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-ROPO5JHR.js";
|
|
66
66
|
import {
|
|
67
67
|
__commonJS,
|
|
68
68
|
__esm,
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
__require,
|
|
72
72
|
__toCommonJS,
|
|
73
73
|
__toESM
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-ETYXUFUN.js";
|
|
75
75
|
|
|
76
76
|
// ../node_modules/@yarnpkg/fslib/node_modules/tslib/tslib.es6.js
|
|
77
77
|
var tslib_es6_exports = {};
|
|
@@ -12225,9 +12225,9 @@ async function loadMainConfig({
|
|
|
12225
12225
|
if (!(e instanceof Error)) {
|
|
12226
12226
|
throw e;
|
|
12227
12227
|
}
|
|
12228
|
-
if (e.message.includes("
|
|
12228
|
+
if (e.message.includes("not defined in ES module scope")) {
|
|
12229
12229
|
logger5.info(
|
|
12230
|
-
"Loading main config failed
|
|
12230
|
+
"Loading main config failed as the file does not seem to be valid ESM. Trying a temporary fix, please ensure the main config is valid ESM."
|
|
12231
12231
|
);
|
|
12232
12232
|
const comment = "// end of Storybook 10 migration assistant header, you can delete the above code";
|
|
12233
12233
|
const content = await readFile4(mainPath, "utf-8");
|
|
@@ -12716,6 +12716,7 @@ import {
|
|
|
12716
12716
|
import { logger as logger9 } from "storybook/internal/node-logger";
|
|
12717
12717
|
|
|
12718
12718
|
// src/common/utils/get-addon-annotations.ts
|
|
12719
|
+
import { createRequire } from "node:module";
|
|
12719
12720
|
function getAnnotationsName(addonName) {
|
|
12720
12721
|
const cleanedUpName = addonName.replace(/^@storybook\//, "").split(/[^a-zA-Z0-9]+/).map(
|
|
12721
12722
|
(word, index) => index === 0 ? word.toLowerCase() : word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()
|
|
@@ -12734,7 +12735,8 @@ async function getAddonAnnotations(addon, configDir) {
|
|
|
12734
12735
|
data.importPath = `${addon}/preview`;
|
|
12735
12736
|
}
|
|
12736
12737
|
try {
|
|
12737
|
-
import.meta.
|
|
12738
|
+
const require2 = createRequire(import.meta.url);
|
|
12739
|
+
require2.resolve(`${addon}/preview`, { paths: [configDir] });
|
|
12738
12740
|
} catch (err) {
|
|
12739
12741
|
return null;
|
|
12740
12742
|
}
|
|
@@ -14160,7 +14162,7 @@ async function scanAndTransformFiles({
|
|
|
14160
14162
|
initial: defaultGlob
|
|
14161
14163
|
});
|
|
14162
14164
|
console.log("Scanning for affected files...");
|
|
14163
|
-
const globby = (await import("./globby-
|
|
14165
|
+
const globby = (await import("./globby-YL2WN4IM.js")).globby;
|
|
14164
14166
|
const sourceFiles = await globby([glob2], {
|
|
14165
14167
|
...commonGlobOptions(""),
|
|
14166
14168
|
ignore: ["**/node_modules/**"],
|
|
@@ -14190,7 +14192,7 @@ function transformImports(source, renamedImports) {
|
|
|
14190
14192
|
__name(transformImports, "transformImports");
|
|
14191
14193
|
var transformImportFiles = /* @__PURE__ */ __name(async (files, renamedImports, dryRun) => {
|
|
14192
14194
|
const errors = [];
|
|
14193
|
-
const { default: pLimit } = await import("./p-limit-
|
|
14195
|
+
const { default: pLimit } = await import("./p-limit-B4XGNEDI.js");
|
|
14194
14196
|
const limit = pLimit(10);
|
|
14195
14197
|
await Promise.all(
|
|
14196
14198
|
files.map(
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_lsrbdpi9o7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_lsrbdpi9o7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_lsrbdpi9o7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_lsrbdpi9o7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c.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_lsrbdpi9o7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_lsrbdpi9o7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_lsrbdpi9o7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_lsrbdpi9o7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c.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
|
__name,
|
|
15
15
|
__require
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ETYXUFUN.js";
|
|
17
17
|
|
|
18
18
|
// ../node_modules/picomatch/lib/constants.js
|
|
19
19
|
var require_constants = __commonJS({
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_lsrbdpi9o7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_lsrbdpi9o7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_lsrbdpi9o7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_lsrbdpi9o7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
|
|
13
|
+
// package.json
|
|
14
|
+
var version = "10.0.0-beta.13";
|
|
15
|
+
|
|
16
|
+
export {
|
|
17
|
+
version
|
|
18
|
+
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_lsrbdpi9o7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_lsrbdpi9o7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_lsrbdpi9o7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_lsrbdpi9o7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c.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-ETYXUFUN.js";
|
|
15
15
|
|
|
16
16
|
// ../node_modules/pretty-hrtime/index.js
|
|
17
17
|
var require_pretty_hrtime = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_lsrbdpi9o7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_lsrbdpi9o7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_lsrbdpi9o7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_lsrbdpi9o7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c.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
|
__name,
|
|
15
15
|
__require
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ETYXUFUN.js";
|
|
17
17
|
|
|
18
18
|
// ../node_modules/ms/index.js
|
|
19
19
|
var require_ms = __commonJS({
|