storybook 10.1.4 → 10.1.5
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/_browser-chunks/{chunk-2XZMBGTA.js → chunk-7S2XPX5M.js} +1 -1
- package/dist/_browser-chunks/{chunk-SS2NHR7W.js → chunk-GPBRNGY5.js} +1 -1
- package/dist/{_node-chunks/chunk-LJRKMWYC.js → _browser-chunks/chunk-JVRDBUUP.js} +20 -13
- package/dist/_browser-chunks/{chunk-GFY5R5EY.js → chunk-V5NV5R37.js} +1 -1
- package/dist/_node-chunks/{builder-manager-7ZU5KYAD.js → builder-manager-ZXJBDRXR.js} +12 -12
- package/dist/_node-chunks/{camelcase-YSJ5EORN.js → camelcase-WRTIKEO6.js} +7 -7
- package/dist/_node-chunks/{chunk-2IIRK2OT.js → chunk-255LKCUD.js} +6 -6
- package/dist/_node-chunks/chunk-3GJDB3VJ.js +18 -0
- package/dist/_node-chunks/{chunk-W6O6RFMF.js → chunk-3N5PBWO5.js} +9 -9
- package/dist/_node-chunks/{chunk-F2RDEFFH.js → chunk-52EAUB7R.js} +7 -7
- package/dist/_node-chunks/{chunk-RZ2YFNVH.js → chunk-56BVIMJO.js} +7 -7
- package/dist/_node-chunks/{chunk-COZFRL72.js → chunk-5H7WLGZC.js} +7 -7
- package/dist/_node-chunks/{chunk-7KESMTGS.js → chunk-AJ7QOTOZ.js} +13 -13
- package/dist/{_browser-chunks/chunk-FQ7SLVLR.js → _node-chunks/chunk-B2EXFXPG.js} +32 -1
- package/dist/_node-chunks/{chunk-MZL4HRPC.js → chunk-C3CWELCD.js} +7 -7
- package/dist/_node-chunks/{chunk-VBZIULNK.js → chunk-CUUCEXYW.js} +6 -6
- package/dist/_node-chunks/chunk-EBMWZDZG.js +23 -0
- package/dist/_node-chunks/{chunk-DMPGFWI4.js → chunk-FCQVKOY4.js} +72 -11
- package/dist/_node-chunks/{chunk-VUIYVJKC.js → chunk-FD76ZM2X.js} +8 -8
- package/dist/_node-chunks/{chunk-FMYFRXPU.js → chunk-GJ5FSAL5.js} +6 -6
- package/dist/_node-chunks/{chunk-N54KYQ6P.js → chunk-GUCJOBT7.js} +6 -6
- package/dist/_node-chunks/{chunk-QIY6TMKF.js → chunk-HNDTWAF5.js} +7 -7
- package/dist/_node-chunks/{chunk-S3DQCJWT.js → chunk-ITMM32VP.js} +9 -9
- package/dist/_node-chunks/{chunk-T5WYRHJT.js → chunk-KYHFIXVV.js} +6 -6
- package/dist/_node-chunks/{chunk-6O3OB2PO.js → chunk-PL7KUITS.js} +12 -12
- package/dist/_node-chunks/{chunk-76KIYDRU.js → chunk-QCZPELNP.js} +7 -7
- package/dist/_node-chunks/{chunk-QZJSO2TW.js → chunk-RZ3SV46Y.js} +21 -20
- package/dist/_node-chunks/{chunk-Q6B5LJGA.js → chunk-SNGQFKE7.js} +7 -7
- package/dist/_node-chunks/{chunk-6KX7N5UF.js → chunk-VGBOM5PD.js} +21 -17
- package/dist/_node-chunks/chunk-VRODUWUT.js +61 -0
- package/dist/_node-chunks/chunk-WUVM2V22.js +20 -0
- package/dist/_node-chunks/{chunk-J4VC4I2M.js → chunk-WYREEMWZ.js} +6 -6
- package/dist/_node-chunks/{chunk-4X3VTYIW.js → chunk-XPWMJEXT.js} +7 -7
- package/dist/_node-chunks/{chunk-FY6IUM4S.js → chunk-ZIG3SZMN.js} +8 -8
- package/dist/_node-chunks/{dist-NF4P7GPD.js → dist-XHCP6OFU.js} +9 -9
- package/dist/_node-chunks/{globby-54L4JJRV.js → globby-YHL6UTMA.js} +9 -9
- package/dist/_node-chunks/{lib-GX44WIWA.js → lib-RWWG7TOS.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-WJFAHXML.js → mdx-N42X6CFJ-ZALEYAPJ.js} +8 -8
- package/dist/_node-chunks/{p-limit-QB7Q2I4D.js → p-limit-LLBQLQ7I.js} +7 -7
- package/dist/babel/index.js +10 -10
- package/dist/bin/core.js +12 -12
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +9 -9
- package/dist/cli/index.js +18 -18
- package/dist/common/index.js +19 -19
- package/dist/core-server/index.d.ts +68 -1
- package/dist/core-server/index.js +33 -33
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +25 -25
- package/dist/csf/index.js +1 -1
- package/dist/csf-tools/index.js +9 -9
- package/dist/manager/globals-runtime.js +21 -2
- package/dist/manager-api/index.js +4 -4
- package/dist/manager-errors.d.ts +24 -0
- package/dist/manager-errors.js +2 -2
- package/dist/mocking-utils/index.js +8 -8
- package/dist/node-logger/index.js +9 -9
- package/dist/preview/runtime.js +21 -2
- package/dist/preview-api/index.js +1 -1
- package/dist/preview-errors.d.ts +24 -0
- package/dist/preview-errors.js +2 -2
- package/dist/server-errors.d.ts +59 -3
- package/dist/server-errors.js +22 -11
- package/dist/telemetry/index.js +23 -23
- package/package.json +1 -1
- package/dist/_node-chunks/chunk-4FAPWW5I.js +0 -61
- package/dist/_node-chunks/chunk-5UYX4ZF6.js +0 -23
- package/dist/_node-chunks/chunk-CMI5GRPA.js +0 -18
- package/dist/_node-chunks/chunk-GVOXGNOU.js +0 -20
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_16w7d0j2rs7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_16w7d0j2rs7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_16w7d0j2rs7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_16w7d0j2rs7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_16w7d0j2rs7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_16w7d0j2rs7.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-WYREEMWZ.js";
|
|
17
17
|
|
|
18
18
|
// ../node_modules/app-root-dir/lib/index.js
|
|
19
19
|
var require_lib = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_16w7d0j2rs7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_16w7d0j2rs7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_16w7d0j2rs7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_16w7d0j2rs7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_16w7d0j2rs7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_16w7d0j2rs7.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -21,8 +21,8 @@ import {
|
|
|
21
21
|
position,
|
|
22
22
|
start,
|
|
23
23
|
toEstree
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-HNDTWAF5.js";
|
|
25
|
+
import "./chunk-WYREEMWZ.js";
|
|
26
26
|
|
|
27
27
|
// ../node_modules/@storybook/docs-mdx/dist/mdx-N42X6CFJ.js
|
|
28
28
|
import { default as default2 } from "path";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_16w7d0j2rs7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_16w7d0j2rs7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_16w7d0j2rs7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_16w7d0j2rs7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_16w7d0j2rs7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_16w7d0j2rs7.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-WYREEMWZ.js";
|
|
13
13
|
|
|
14
14
|
// ../node_modules/yocto-queue/index.js
|
|
15
15
|
var Node = class {
|
package/dist/babel/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_16w7d0j2rs7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_16w7d0j2rs7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_16w7d0j2rs7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_16w7d0j2rs7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_16w7d0j2rs7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_16w7d0j2rs7.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -22,10 +22,10 @@ import {
|
|
|
22
22
|
recast,
|
|
23
23
|
traverse,
|
|
24
24
|
types
|
|
25
|
-
} from "../_node-chunks/chunk-
|
|
26
|
-
import "../_node-chunks/chunk-
|
|
27
|
-
import "../_node-chunks/chunk-
|
|
28
|
-
import "../_node-chunks/chunk-
|
|
25
|
+
} from "../_node-chunks/chunk-3N5PBWO5.js";
|
|
26
|
+
import "../_node-chunks/chunk-C3CWELCD.js";
|
|
27
|
+
import "../_node-chunks/chunk-56BVIMJO.js";
|
|
28
|
+
import "../_node-chunks/chunk-WYREEMWZ.js";
|
|
29
29
|
var export_transformSync = import_core.transformSync;
|
|
30
30
|
export {
|
|
31
31
|
BabelFileClass,
|
package/dist/bin/core.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_16w7d0j2rs7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_16w7d0j2rs7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_16w7d0j2rs7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_16w7d0j2rs7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_16w7d0j2rs7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_16w7d0j2rs7.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
|
version
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-3GJDB3VJ.js";
|
|
15
15
|
import {
|
|
16
16
|
globalSettings
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
18
|
-
import "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-ITMM32VP.js";
|
|
18
|
+
import "../_node-chunks/chunk-GJ5FSAL5.js";
|
|
19
19
|
import {
|
|
20
20
|
require_dist
|
|
21
|
-
} from "../_node-chunks/chunk-
|
|
21
|
+
} from "../_node-chunks/chunk-QCZPELNP.js";
|
|
22
22
|
import {
|
|
23
23
|
require_picocolors
|
|
24
|
-
} from "../_node-chunks/chunk-
|
|
24
|
+
} from "../_node-chunks/chunk-56BVIMJO.js";
|
|
25
25
|
import {
|
|
26
26
|
__commonJS,
|
|
27
27
|
__require,
|
|
28
28
|
__toESM
|
|
29
|
-
} from "../_node-chunks/chunk-
|
|
29
|
+
} from "../_node-chunks/chunk-WYREEMWZ.js";
|
|
30
30
|
|
|
31
31
|
// ../node_modules/commander/lib/error.js
|
|
32
32
|
var require_error = __commonJS({
|
package/dist/bin/dispatcher.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import CJS_COMPAT_NODE_URL_16w7d0j2rs7 from 'node:url';
|
|
3
|
+
import CJS_COMPAT_NODE_PATH_16w7d0j2rs7 from 'node:path';
|
|
4
|
+
import CJS_COMPAT_NODE_MODULE_16w7d0j2rs7 from "node:module";
|
|
5
5
|
|
|
6
|
-
var __filename =
|
|
7
|
-
var __dirname =
|
|
8
|
-
var require =
|
|
6
|
+
var __filename = CJS_COMPAT_NODE_URL_16w7d0j2rs7.fileURLToPath(import.meta.url);
|
|
7
|
+
var __dirname = CJS_COMPAT_NODE_PATH_16w7d0j2rs7.dirname(__filename);
|
|
8
|
+
var require = CJS_COMPAT_NODE_MODULE_16w7d0j2rs7.createRequire(import.meta.url);
|
|
9
9
|
|
|
10
10
|
// ------------------------------------------------------------
|
|
11
11
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
12
12
|
// ------------------------------------------------------------
|
|
13
13
|
import {
|
|
14
14
|
versions_default
|
|
15
|
-
} from "../_node-chunks/chunk-
|
|
15
|
+
} from "../_node-chunks/chunk-VRODUWUT.js";
|
|
16
16
|
import {
|
|
17
17
|
resolvePackageDir
|
|
18
|
-
} from "../_node-chunks/chunk-
|
|
18
|
+
} from "../_node-chunks/chunk-SNGQFKE7.js";
|
|
19
19
|
import {
|
|
20
20
|
join
|
|
21
|
-
} from "../_node-chunks/chunk-
|
|
21
|
+
} from "../_node-chunks/chunk-CUUCEXYW.js";
|
|
22
22
|
import {
|
|
23
23
|
require_dist
|
|
24
|
-
} from "../_node-chunks/chunk-
|
|
24
|
+
} from "../_node-chunks/chunk-QCZPELNP.js";
|
|
25
25
|
import {
|
|
26
26
|
__toESM
|
|
27
|
-
} from "../_node-chunks/chunk-
|
|
27
|
+
} from "../_node-chunks/chunk-WYREEMWZ.js";
|
|
28
28
|
|
|
29
29
|
// src/bin/dispatcher.ts
|
|
30
30
|
import { pathToFileURL } from "node:url";
|
package/dist/bin/loader.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_16w7d0j2rs7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_16w7d0j2rs7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_16w7d0j2rs7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_16w7d0j2rs7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_16w7d0j2rs7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_16w7d0j2rs7.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
|
NODE_TARGET
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-KYHFIXVV.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-QCZPELNP.js";
|
|
18
18
|
import {
|
|
19
19
|
__toESM
|
|
20
|
-
} from "../_node-chunks/chunk-
|
|
20
|
+
} from "../_node-chunks/chunk-WYREEMWZ.js";
|
|
21
21
|
|
|
22
22
|
// src/bin/loader.ts
|
|
23
23
|
var import_ts_dedent = __toESM(require_dist(), 1);
|
package/dist/cli/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_16w7d0j2rs7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_16w7d0j2rs7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_16w7d0j2rs7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_16w7d0j2rs7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_16w7d0j2rs7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_16w7d0j2rs7.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -33,24 +33,24 @@ import {
|
|
|
33
33
|
readFileAsJson,
|
|
34
34
|
suggestESLintPlugin,
|
|
35
35
|
writeFileAsJson
|
|
36
|
-
} from "../_node-chunks/chunk-
|
|
36
|
+
} from "../_node-chunks/chunk-PL7KUITS.js";
|
|
37
37
|
import {
|
|
38
38
|
detectPnp
|
|
39
|
-
} from "../_node-chunks/chunk-
|
|
39
|
+
} from "../_node-chunks/chunk-EBMWZDZG.js";
|
|
40
40
|
import {
|
|
41
41
|
Settings,
|
|
42
42
|
_clearGlobalSettings,
|
|
43
43
|
globalSettings
|
|
44
|
-
} from "../_node-chunks/chunk-
|
|
45
|
-
import "../_node-chunks/chunk-
|
|
46
|
-
import "../_node-chunks/chunk-
|
|
47
|
-
import "../_node-chunks/chunk-
|
|
48
|
-
import "../_node-chunks/chunk-
|
|
49
|
-
import "../_node-chunks/chunk-
|
|
50
|
-
import "../_node-chunks/chunk-
|
|
51
|
-
import "../_node-chunks/chunk-
|
|
52
|
-
import "../_node-chunks/chunk-
|
|
53
|
-
import "../_node-chunks/chunk-
|
|
44
|
+
} from "../_node-chunks/chunk-ITMM32VP.js";
|
|
45
|
+
import "../_node-chunks/chunk-255LKCUD.js";
|
|
46
|
+
import "../_node-chunks/chunk-SNGQFKE7.js";
|
|
47
|
+
import "../_node-chunks/chunk-GJ5FSAL5.js";
|
|
48
|
+
import "../_node-chunks/chunk-CUUCEXYW.js";
|
|
49
|
+
import "../_node-chunks/chunk-QCZPELNP.js";
|
|
50
|
+
import "../_node-chunks/chunk-3N5PBWO5.js";
|
|
51
|
+
import "../_node-chunks/chunk-C3CWELCD.js";
|
|
52
|
+
import "../_node-chunks/chunk-56BVIMJO.js";
|
|
53
|
+
import "../_node-chunks/chunk-WYREEMWZ.js";
|
|
54
54
|
export {
|
|
55
55
|
ANGULAR_JSON_PATH,
|
|
56
56
|
AddonVitestService,
|
package/dist/common/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_16w7d0j2rs7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_16w7d0j2rs7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_16w7d0j2rs7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_16w7d0j2rs7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_16w7d0j2rs7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_16w7d0j2rs7.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -102,29 +102,29 @@ import {
|
|
|
102
102
|
validateConfigurationFiles,
|
|
103
103
|
validateFrameworkName,
|
|
104
104
|
wrapValueWithGetAbsolutePathWrapper
|
|
105
|
-
} from "../_node-chunks/chunk-
|
|
105
|
+
} from "../_node-chunks/chunk-RZ3SV46Y.js";
|
|
106
106
|
import {
|
|
107
107
|
versions_default
|
|
108
|
-
} from "../_node-chunks/chunk-
|
|
109
|
-
import "../_node-chunks/chunk-
|
|
110
|
-
import "../_node-chunks/chunk-
|
|
111
|
-
import "../_node-chunks/chunk-
|
|
108
|
+
} from "../_node-chunks/chunk-VRODUWUT.js";
|
|
109
|
+
import "../_node-chunks/chunk-XPWMJEXT.js";
|
|
110
|
+
import "../_node-chunks/chunk-FD76ZM2X.js";
|
|
111
|
+
import "../_node-chunks/chunk-255LKCUD.js";
|
|
112
112
|
import {
|
|
113
113
|
importMetaResolve,
|
|
114
114
|
importModule,
|
|
115
115
|
resolvePackageDir,
|
|
116
116
|
safeResolveModule
|
|
117
|
-
} from "../_node-chunks/chunk-
|
|
117
|
+
} from "../_node-chunks/chunk-SNGQFKE7.js";
|
|
118
118
|
import {
|
|
119
119
|
groupBy,
|
|
120
120
|
invariant
|
|
121
|
-
} from "../_node-chunks/chunk-
|
|
122
|
-
import "../_node-chunks/chunk-
|
|
123
|
-
import "../_node-chunks/chunk-
|
|
124
|
-
import "../_node-chunks/chunk-
|
|
125
|
-
import "../_node-chunks/chunk-
|
|
126
|
-
import "../_node-chunks/chunk-
|
|
127
|
-
import "../_node-chunks/chunk-
|
|
121
|
+
} from "../_node-chunks/chunk-GJ5FSAL5.js";
|
|
122
|
+
import "../_node-chunks/chunk-CUUCEXYW.js";
|
|
123
|
+
import "../_node-chunks/chunk-52EAUB7R.js";
|
|
124
|
+
import "../_node-chunks/chunk-WUVM2V22.js";
|
|
125
|
+
import "../_node-chunks/chunk-QCZPELNP.js";
|
|
126
|
+
import "../_node-chunks/chunk-56BVIMJO.js";
|
|
127
|
+
import "../_node-chunks/chunk-WYREEMWZ.js";
|
|
128
128
|
export {
|
|
129
129
|
DEFAULT_FILES_PATTERN,
|
|
130
130
|
FileSystemCache,
|
|
@@ -26,6 +26,73 @@ declare const buildIndexStandalone: (options: BuildIndexOptions & {
|
|
|
26
26
|
outputFile: string;
|
|
27
27
|
}) => Promise<void>;
|
|
28
28
|
|
|
29
|
+
declare abstract class StorybookError extends Error {
|
|
30
|
+
private _name;
|
|
31
|
+
/** Category of the error. Used to classify the type of error, e.g., 'PREVIEW_API'. */
|
|
32
|
+
readonly category: string;
|
|
33
|
+
/** Code representing the error. Used to uniquely identify the error, e.g., 1. */
|
|
34
|
+
readonly code: number;
|
|
35
|
+
/**
|
|
36
|
+
* Data associated with the error. Used to provide additional information in the error message or
|
|
37
|
+
* to be passed to telemetry.
|
|
38
|
+
*/
|
|
39
|
+
readonly data: {};
|
|
40
|
+
/**
|
|
41
|
+
* Specifies the documentation for the error.
|
|
42
|
+
*
|
|
43
|
+
* - If `true`, links to a documentation page on the Storybook website (make sure it exists before
|
|
44
|
+
* enabling) – This is not implemented yet.
|
|
45
|
+
* - If a string, uses the provided URL for documentation (external or FAQ links).
|
|
46
|
+
* - If `false` (default), no documentation link is added.
|
|
47
|
+
*/
|
|
48
|
+
readonly documentation: boolean | string | string[];
|
|
49
|
+
/** Flag used to easily determine if the error originates from Storybook. */
|
|
50
|
+
readonly fromStorybook: true;
|
|
51
|
+
/**
|
|
52
|
+
* Flag used to determine if the error is handled by us and should therefore not be shown to the
|
|
53
|
+
* user.
|
|
54
|
+
*/
|
|
55
|
+
isHandledError: boolean;
|
|
56
|
+
get fullErrorCode(): `SB_${string}_${string}`;
|
|
57
|
+
/** Overrides the default `Error.name` property in the format: SB_<CATEGORY>_<CODE>. */
|
|
58
|
+
get name(): string;
|
|
59
|
+
set name(name: string);
|
|
60
|
+
/**
|
|
61
|
+
* A collection of sub errors which relate to a parent error.
|
|
62
|
+
*
|
|
63
|
+
* Sub-errors are used to represent multiple related errors that occurred together. When a
|
|
64
|
+
* StorybookError with sub-errors is sent to telemetry, both the parent error and each sub-error
|
|
65
|
+
* are sent as separate telemetry events. This allows for better error tracking and debugging.
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
*
|
|
69
|
+
* ```ts
|
|
70
|
+
* const error1 = new SomeError();
|
|
71
|
+
* const error2 = new AnotherError();
|
|
72
|
+
* const parentError = new ParentError({
|
|
73
|
+
* // ... other props
|
|
74
|
+
* subErrors: [error1, error2],
|
|
75
|
+
* });
|
|
76
|
+
* ```
|
|
77
|
+
*/
|
|
78
|
+
subErrors: StorybookError[];
|
|
79
|
+
constructor(props: {
|
|
80
|
+
category: string;
|
|
81
|
+
code: number;
|
|
82
|
+
message: string;
|
|
83
|
+
documentation?: boolean | string | string[];
|
|
84
|
+
isHandledError?: boolean;
|
|
85
|
+
name: string;
|
|
86
|
+
/**
|
|
87
|
+
* Optional array of sub-errors that are related to this error. When this error is sent to
|
|
88
|
+
* telemetry, each sub-error will be sent as a separate event.
|
|
89
|
+
*/
|
|
90
|
+
subErrors?: StorybookError[];
|
|
91
|
+
});
|
|
92
|
+
/** Generates the error message along with additional documentation link (if applicable). */
|
|
93
|
+
static getFullMessage({ documentation, code, category, message, }: ConstructorParameters<typeof StorybookError>[0]): string;
|
|
94
|
+
}
|
|
95
|
+
|
|
29
96
|
type TelemetryOptions = {
|
|
30
97
|
cliOptions: CLIOptions;
|
|
31
98
|
presetOptions?: Parameters<typeof loadAllPresets>[0];
|
|
@@ -34,7 +101,7 @@ type TelemetryOptions = {
|
|
|
34
101
|
};
|
|
35
102
|
type ErrorLevel = 'none' | 'error' | 'full';
|
|
36
103
|
declare function getErrorLevel({ cliOptions, presetOptions, skipPrompt, }: TelemetryOptions): Promise<ErrorLevel>;
|
|
37
|
-
declare function sendTelemetryError(_error: unknown, eventType: EventType, options: TelemetryOptions, blocking?: boolean): Promise<void>;
|
|
104
|
+
declare function sendTelemetryError(_error: unknown, eventType: EventType, options: TelemetryOptions, blocking?: boolean, parent?: StorybookError): Promise<void>;
|
|
38
105
|
declare function isTelemetryEnabled(options: TelemetryOptions): boolean;
|
|
39
106
|
declare function withTelemetry<T>(eventType: EventType, options: TelemetryOptions, run: () => Promise<T>): Promise<T | undefined>;
|
|
40
107
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_16w7d0j2rs7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_16w7d0j2rs7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_16w7d0j2rs7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_16w7d0j2rs7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_16w7d0j2rs7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_16w7d0j2rs7.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
|
StatusTypeIdMismatchError
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-FCQVKOY4.js";
|
|
15
15
|
import {
|
|
16
16
|
debounce,
|
|
17
17
|
getErrorLevel,
|
|
@@ -21,66 +21,66 @@ import {
|
|
|
21
21
|
sendTelemetryError,
|
|
22
22
|
useStatics,
|
|
23
23
|
withTelemetry
|
|
24
|
-
} from "../_node-chunks/chunk-
|
|
25
|
-
import "../_node-chunks/chunk-
|
|
24
|
+
} from "../_node-chunks/chunk-VGBOM5PD.js";
|
|
25
|
+
import "../_node-chunks/chunk-5H7WLGZC.js";
|
|
26
26
|
import {
|
|
27
27
|
detectPnp
|
|
28
|
-
} from "../_node-chunks/chunk-
|
|
28
|
+
} from "../_node-chunks/chunk-EBMWZDZG.js";
|
|
29
29
|
import {
|
|
30
30
|
StorybookError
|
|
31
|
-
} from "../_node-chunks/chunk-
|
|
31
|
+
} from "../_node-chunks/chunk-B2EXFXPG.js";
|
|
32
32
|
import {
|
|
33
33
|
telemetry
|
|
34
|
-
} from "../_node-chunks/chunk-
|
|
35
|
-
import "../_node-chunks/chunk-
|
|
34
|
+
} from "../_node-chunks/chunk-AJ7QOTOZ.js";
|
|
35
|
+
import "../_node-chunks/chunk-3GJDB3VJ.js";
|
|
36
36
|
import {
|
|
37
37
|
optionalEnvToBoolean,
|
|
38
38
|
require_cross_spawn,
|
|
39
39
|
resolveImport,
|
|
40
40
|
supportedExtensions,
|
|
41
41
|
userOrAutoTitleFromSpecifier
|
|
42
|
-
} from "../_node-chunks/chunk-
|
|
43
|
-
import "../_node-chunks/chunk-
|
|
44
|
-
import "../_node-chunks/chunk-
|
|
42
|
+
} from "../_node-chunks/chunk-RZ3SV46Y.js";
|
|
43
|
+
import "../_node-chunks/chunk-VRODUWUT.js";
|
|
44
|
+
import "../_node-chunks/chunk-XPWMJEXT.js";
|
|
45
45
|
import {
|
|
46
46
|
require_pretty_hrtime
|
|
47
|
-
} from "../_node-chunks/chunk-
|
|
48
|
-
import "../_node-chunks/chunk-
|
|
49
|
-
import "../_node-chunks/chunk-
|
|
47
|
+
} from "../_node-chunks/chunk-FD76ZM2X.js";
|
|
48
|
+
import "../_node-chunks/chunk-GUCJOBT7.js";
|
|
49
|
+
import "../_node-chunks/chunk-ITMM32VP.js";
|
|
50
50
|
import {
|
|
51
51
|
invariant,
|
|
52
52
|
up2 as up
|
|
53
|
-
} from "../_node-chunks/chunk-
|
|
53
|
+
} from "../_node-chunks/chunk-255LKCUD.js";
|
|
54
54
|
import {
|
|
55
55
|
importModule,
|
|
56
56
|
resolvePackageDir
|
|
57
|
-
} from "../_node-chunks/chunk-
|
|
58
|
-
import "../_node-chunks/chunk-
|
|
57
|
+
} from "../_node-chunks/chunk-SNGQFKE7.js";
|
|
58
|
+
import "../_node-chunks/chunk-GJ5FSAL5.js";
|
|
59
59
|
import {
|
|
60
60
|
dirname,
|
|
61
61
|
join,
|
|
62
62
|
relative,
|
|
63
63
|
resolve
|
|
64
|
-
} from "../_node-chunks/chunk-
|
|
65
|
-
import "../_node-chunks/chunk-
|
|
64
|
+
} from "../_node-chunks/chunk-CUUCEXYW.js";
|
|
65
|
+
import "../_node-chunks/chunk-52EAUB7R.js";
|
|
66
66
|
import {
|
|
67
67
|
slash
|
|
68
|
-
} from "../_node-chunks/chunk-
|
|
68
|
+
} from "../_node-chunks/chunk-WUVM2V22.js";
|
|
69
69
|
import {
|
|
70
70
|
require_dist
|
|
71
|
-
} from "../_node-chunks/chunk-
|
|
71
|
+
} from "../_node-chunks/chunk-QCZPELNP.js";
|
|
72
72
|
import {
|
|
73
73
|
require_lib,
|
|
74
74
|
require_src
|
|
75
|
-
} from "../_node-chunks/chunk-
|
|
75
|
+
} from "../_node-chunks/chunk-C3CWELCD.js";
|
|
76
76
|
import {
|
|
77
77
|
require_picocolors
|
|
78
|
-
} from "../_node-chunks/chunk-
|
|
78
|
+
} from "../_node-chunks/chunk-56BVIMJO.js";
|
|
79
79
|
import {
|
|
80
80
|
__commonJS,
|
|
81
81
|
__require,
|
|
82
82
|
__toESM
|
|
83
|
-
} from "../_node-chunks/chunk-
|
|
83
|
+
} from "../_node-chunks/chunk-WYREEMWZ.js";
|
|
84
84
|
|
|
85
85
|
// ../node_modules/tsconfig-paths/lib/filesystem.js
|
|
86
86
|
var require_filesystem = __commonJS({
|
|
@@ -5147,7 +5147,7 @@ var makeAbsolute = (otherImport, normalizedPath, workingDir) => otherImport.star
|
|
|
5147
5147
|
let cacheKey = this.getFindMatchingFilesCacheKey(specifier, workingDir, ignoreWarnings), cached = this.findMatchingFilesCache.get(cacheKey);
|
|
5148
5148
|
if (cached)
|
|
5149
5149
|
return cached;
|
|
5150
|
-
let pathToSubIndex = {}, fullGlob = slash(join2(specifier.directory, specifier.files)), { globby } = await import("../_node-chunks/globby-
|
|
5150
|
+
let pathToSubIndex = {}, fullGlob = slash(join2(specifier.directory, specifier.files)), { globby } = await import("../_node-chunks/globby-YHL6UTMA.js"), files = await globby(fullGlob, {
|
|
5151
5151
|
absolute: !0,
|
|
5152
5152
|
cwd: workingDir,
|
|
5153
5153
|
...commonGlobOptions(fullGlob)
|
|
@@ -5336,7 +5336,7 @@ var makeAbsolute = (otherImport, normalizedPath, workingDir) => otherImport.star
|
|
|
5336
5336
|
async extractDocs(specifier, absolutePath, projectTags = []) {
|
|
5337
5337
|
let relativePath = relative2(this.options.workingDir, absolutePath);
|
|
5338
5338
|
try {
|
|
5339
|
-
let normalizedPath = normalizeStoryPath(relativePath), importPath = slash(normalizedPath), content = await readFile(absolutePath, { encoding: "utf8" }), { analyze } = await import("../_node-chunks/dist-
|
|
5339
|
+
let normalizedPath = normalizeStoryPath(relativePath), importPath = slash(normalizedPath), content = await readFile(absolutePath, { encoding: "utf8" }), { analyze } = await import("../_node-chunks/dist-XHCP6OFU.js"), result = await analyze(content);
|
|
5340
5340
|
if (result.isTemplate)
|
|
5341
5341
|
return !1;
|
|
5342
5342
|
let absoluteImports = result.imports.map(
|
|
@@ -5596,7 +5596,7 @@ function print(p) {
|
|
|
5596
5596
|
// src/core-server/utils/get-builders.ts
|
|
5597
5597
|
import { MissingBuilderError } from "storybook/internal/server-errors";
|
|
5598
5598
|
async function getManagerBuilder() {
|
|
5599
|
-
return await import("../_node-chunks/builder-manager-
|
|
5599
|
+
return await import("../_node-chunks/builder-manager-ZXJBDRXR.js");
|
|
5600
5600
|
}
|
|
5601
5601
|
async function getPreviewBuilder(resolvedPreviewBuilder) {
|
|
5602
5602
|
return await importModule(resolvedPreviewBuilder);
|
|
@@ -5696,7 +5696,7 @@ function watchStorySpecifiers(specifiers, options, onInvalidate) {
|
|
|
5696
5696
|
// files can be e.g. '**/foo/*/*.js' so we just want the last bit,
|
|
5697
5697
|
// because the directory could already be within the files part (e.g. './x/foo/bar')
|
|
5698
5698
|
basename2(specifier.files)
|
|
5699
|
-
), { globby } = await import("../_node-chunks/globby-
|
|
5699
|
+
), { globby } = await import("../_node-chunks/globby-YHL6UTMA.js");
|
|
5700
5700
|
(await globby(slash(dirGlob), commonGlobOptions2(dirGlob))).forEach((filePath) => {
|
|
5701
5701
|
let fileImportPath = toImportPath(filePath);
|
|
5702
5702
|
specifier.importPathMatcher.exec(fileImportPath) && onInvalidate(specifier, fileImportPath, removed);
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_16w7d0j2rs7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_16w7d0j2rs7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_16w7d0j2rs7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_16w7d0j2rs7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_16w7d0j2rs7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_16w7d0j2rs7.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
|
glob
|
|
14
|
-
} from "../../_node-chunks/chunk-
|
|
14
|
+
} from "../../_node-chunks/chunk-52EAUB7R.js";
|
|
15
15
|
import {
|
|
16
16
|
slash
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
18
|
-
import "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-WUVM2V22.js";
|
|
18
|
+
import "../../_node-chunks/chunk-WYREEMWZ.js";
|
|
19
19
|
|
|
20
20
|
// src/core-server/utils/remove-mdx-entries.ts
|
|
21
21
|
import { isAbsolute, join, relative } from "node:path";
|