storybook 10.1.3 → 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-U6IY6QQN.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-N4D23FLX.js → builder-manager-ZXJBDRXR.js} +12 -12
- package/dist/_node-chunks/{camelcase-EXGV75P2.js → camelcase-WRTIKEO6.js} +7 -7
- package/dist/_node-chunks/{chunk-A7QREOLM.js → chunk-255LKCUD.js} +6 -6
- package/dist/_node-chunks/chunk-3GJDB3VJ.js +18 -0
- package/dist/_node-chunks/{chunk-CD52AW7X.js → chunk-3N5PBWO5.js} +9 -9
- package/dist/_node-chunks/{chunk-TCNV3SSR.js → chunk-52EAUB7R.js} +7 -7
- package/dist/_node-chunks/{chunk-4FES3Z32.js → chunk-56BVIMJO.js} +7 -7
- package/dist/_node-chunks/{chunk-IHWETTDK.js → chunk-5H7WLGZC.js} +7 -7
- package/dist/_node-chunks/{chunk-RIFAW6Y4.js → chunk-AJ7QOTOZ.js} +43 -27
- package/dist/{_browser-chunks/chunk-FQ7SLVLR.js → _node-chunks/chunk-B2EXFXPG.js} +32 -1
- package/dist/_node-chunks/{chunk-3PAK6HOZ.js → chunk-C3CWELCD.js} +7 -7
- package/dist/_node-chunks/{chunk-EE622TFR.js → chunk-CUUCEXYW.js} +6 -6
- package/dist/_node-chunks/chunk-EBMWZDZG.js +23 -0
- package/dist/_node-chunks/{chunk-PDCQDYS4.js → chunk-FCQVKOY4.js} +72 -11
- package/dist/_node-chunks/{chunk-2S4J6WRI.js → chunk-FD76ZM2X.js} +8 -8
- package/dist/_node-chunks/{chunk-J33WT6V7.js → chunk-GJ5FSAL5.js} +6 -6
- package/dist/_node-chunks/{chunk-RCCMX64R.js → chunk-GUCJOBT7.js} +6 -6
- package/dist/_node-chunks/{chunk-EY7WWLFP.js → chunk-HNDTWAF5.js} +7 -7
- package/dist/_node-chunks/{chunk-W77J252D.js → chunk-ITMM32VP.js} +9 -9
- package/dist/_node-chunks/{chunk-KQCVPCQD.js → chunk-KYHFIXVV.js} +6 -6
- package/dist/_node-chunks/{chunk-O5HLDMLW.js → chunk-PL7KUITS.js} +12 -12
- package/dist/_node-chunks/{chunk-TTAIHANB.js → chunk-QCZPELNP.js} +7 -7
- package/dist/_node-chunks/{chunk-745ARPQW.js → chunk-RZ3SV46Y.js} +40 -24
- package/dist/_node-chunks/{chunk-V6NSKAAJ.js → chunk-SNGQFKE7.js} +7 -7
- package/dist/_node-chunks/{chunk-4K33EHJJ.js → chunk-VGBOM5PD.js} +21 -17
- package/dist/_node-chunks/chunk-VRODUWUT.js +61 -0
- package/dist/_node-chunks/{chunk-NAZXVKZR.js → chunk-WUVM2V22.js} +6 -6
- package/dist/_node-chunks/{chunk-YF6BQNR6.js → chunk-WYREEMWZ.js} +6 -6
- package/dist/_node-chunks/{chunk-OBA5XT44.js → chunk-XPWMJEXT.js} +7 -7
- package/dist/_node-chunks/{chunk-DUT2G4P5.js → chunk-ZIG3SZMN.js} +8 -8
- package/dist/_node-chunks/{dist-BV4S5XPY.js → dist-XHCP6OFU.js} +9 -9
- package/dist/_node-chunks/{globby-MMDNVX5S.js → globby-YHL6UTMA.js} +9 -9
- package/dist/_node-chunks/{lib-ZNCEKZ43.js → lib-RWWG7TOS.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-KXIBNMFG.js → mdx-N42X6CFJ-ZALEYAPJ.js} +8 -8
- package/dist/_node-chunks/{p-limit-RIAILNZP.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.d.ts +25 -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-6WT5T7D6.js +0 -23
- package/dist/_node-chunks/chunk-ABYOUG2G.js +0 -18
- package/dist/_node-chunks/chunk-UQA3ZWVX.js +0 -61
|
@@ -1,26 +1,26 @@
|
|
|
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
|
StorybookError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-B2EXFXPG.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-QCZPELNP.js";
|
|
18
18
|
import {
|
|
19
19
|
require_picocolors
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-56BVIMJO.js";
|
|
21
21
|
import {
|
|
22
22
|
__toESM
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-WYREEMWZ.js";
|
|
24
24
|
|
|
25
25
|
// src/server-errors.ts
|
|
26
26
|
var import_picocolors = __toESM(require_picocolors(), 1), import_ts_dedent = __toESM(require_dist(), 1);
|
|
@@ -365,6 +365,62 @@ var WebpackCompilationError = class extends StorybookError {
|
|
|
365
365
|
});
|
|
366
366
|
this.data = data;
|
|
367
367
|
}
|
|
368
|
+
}, AddonVitestPostinstallFailedAddonA11yError = class extends StorybookError {
|
|
369
|
+
constructor(data) {
|
|
370
|
+
super({
|
|
371
|
+
name: "AddonVitestPostinstallFailedAddonA11yError",
|
|
372
|
+
message: "The @storybook/addon-a11y couldn't be set up for the Vitest addon",
|
|
373
|
+
category: "CLI_INIT" /* CLI_INIT */,
|
|
374
|
+
isHandledError: !0,
|
|
375
|
+
code: 6
|
|
376
|
+
});
|
|
377
|
+
this.data = data;
|
|
378
|
+
}
|
|
379
|
+
}, AddonVitestPostinstallExistingSetupFileError = class extends StorybookError {
|
|
380
|
+
constructor(data) {
|
|
381
|
+
super({
|
|
382
|
+
name: "AddonVitestPostinstallExistingSetupFileError",
|
|
383
|
+
category: "CLI_INIT" /* CLI_INIT */,
|
|
384
|
+
isHandledError: !0,
|
|
385
|
+
code: 7,
|
|
386
|
+
documentation: "https://storybook.js.org/docs/writing-tests/integrations/vitest-addon#manual-setup",
|
|
387
|
+
message: import_ts_dedent.dedent`
|
|
388
|
+
Found an existing Vitest setup file: ${data.filePath}
|
|
389
|
+
Please refer to the documentation to complete the setup manually.
|
|
390
|
+
`
|
|
391
|
+
});
|
|
392
|
+
this.data = data;
|
|
393
|
+
}
|
|
394
|
+
}, AddonVitestPostinstallWorkspaceUpdateError = class extends StorybookError {
|
|
395
|
+
constructor(data) {
|
|
396
|
+
super({
|
|
397
|
+
name: "AddonVitestPostinstallWorkspaceUpdateError",
|
|
398
|
+
category: "CLI_INIT" /* CLI_INIT */,
|
|
399
|
+
isHandledError: !0,
|
|
400
|
+
code: 8,
|
|
401
|
+
documentation: "https://storybook.js.org/docs/writing-tests/integrations/vitest-addon#manual-setup",
|
|
402
|
+
message: import_ts_dedent.dedent`
|
|
403
|
+
Could not update existing Vitest workspace file: ${data.filePath}
|
|
404
|
+
Please refer to the documentation to complete the setup manually.
|
|
405
|
+
`
|
|
406
|
+
});
|
|
407
|
+
this.data = data;
|
|
408
|
+
}
|
|
409
|
+
}, AddonVitestPostinstallConfigUpdateError = class extends StorybookError {
|
|
410
|
+
constructor(data) {
|
|
411
|
+
super({
|
|
412
|
+
name: "AddonVitestPostinstallConfigUpdateError",
|
|
413
|
+
category: "CLI_INIT" /* CLI_INIT */,
|
|
414
|
+
isHandledError: !0,
|
|
415
|
+
code: 9,
|
|
416
|
+
documentation: "https://storybook.js.org/docs/writing-tests/integrations/vitest-addon#manual-setup",
|
|
417
|
+
message: import_ts_dedent.dedent`
|
|
418
|
+
Unable to update existing Vitest config file: ${data.filePath}
|
|
419
|
+
Please refer to the documentation to complete the setup manually.
|
|
420
|
+
`
|
|
421
|
+
});
|
|
422
|
+
this.data = data;
|
|
423
|
+
}
|
|
368
424
|
}, AddonVitestPostinstallError = class extends StorybookError {
|
|
369
425
|
constructor(data) {
|
|
370
426
|
super({
|
|
@@ -372,7 +428,8 @@ var WebpackCompilationError = class extends StorybookError {
|
|
|
372
428
|
category: "CLI_INIT" /* CLI_INIT */,
|
|
373
429
|
isHandledError: !0,
|
|
374
430
|
code: 5,
|
|
375
|
-
message: "The Vitest addon setup failed."
|
|
431
|
+
message: "The Vitest addon setup failed.",
|
|
432
|
+
subErrors: data.errors
|
|
376
433
|
});
|
|
377
434
|
this.data = data;
|
|
378
435
|
}
|
|
@@ -528,6 +585,10 @@ export {
|
|
|
528
585
|
StatusTypeIdMismatchError,
|
|
529
586
|
GenerateNewProjectOnInitError,
|
|
530
587
|
AddonVitestPostinstallPrerequisiteCheckError,
|
|
588
|
+
AddonVitestPostinstallFailedAddonA11yError,
|
|
589
|
+
AddonVitestPostinstallExistingSetupFileError,
|
|
590
|
+
AddonVitestPostinstallWorkspaceUpdateError,
|
|
591
|
+
AddonVitestPostinstallConfigUpdateError,
|
|
531
592
|
AddonVitestPostinstallError,
|
|
532
593
|
UpgradeStorybookToLowerVersionError,
|
|
533
594
|
UpgradeStorybookUnknownCurrentVersionError,
|
|
@@ -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
|
require_picocolors
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-56BVIMJO.js";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
17
17
|
__export,
|
|
18
18
|
__require,
|
|
19
19
|
__toESM
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-WYREEMWZ.js";
|
|
21
21
|
|
|
22
22
|
// ../node_modules/are-we-there-yet/lib/tracker-base.js
|
|
23
23
|
var require_tracker_base = __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
|
|
@@ -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
|
|
@@ -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
|
__require
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-WYREEMWZ.js";
|
|
15
15
|
|
|
16
16
|
// ../node_modules/@storybook/docs-mdx/dist/chunk-H6DQNFQR.js
|
|
17
17
|
var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __require2 = ((x) => typeof __require < "u" ? __require : typeof Proxy < "u" ? new Proxy(x, {
|
|
@@ -1,24 +1,24 @@
|
|
|
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
|
invariant
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-GJ5FSAL5.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-QCZPELNP.js";
|
|
18
18
|
import {
|
|
19
19
|
__export,
|
|
20
20
|
__toESM
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-WYREEMWZ.js";
|
|
22
22
|
|
|
23
23
|
// src/cli/globalSettings.ts
|
|
24
24
|
var import_ts_dedent = __toESM(require_dist(), 1);
|
|
@@ -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
|
|
@@ -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,27 +13,27 @@ import {
|
|
|
13
13
|
any,
|
|
14
14
|
invariant,
|
|
15
15
|
up2 as up
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-255LKCUD.js";
|
|
17
17
|
import {
|
|
18
18
|
resolvePackageDir
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-SNGQFKE7.js";
|
|
20
20
|
import {
|
|
21
21
|
require_dist
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-QCZPELNP.js";
|
|
23
23
|
import {
|
|
24
24
|
babelParse,
|
|
25
25
|
recast,
|
|
26
26
|
traverse,
|
|
27
27
|
types
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-3N5PBWO5.js";
|
|
29
29
|
import {
|
|
30
30
|
require_picocolors
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-56BVIMJO.js";
|
|
32
32
|
import {
|
|
33
33
|
__commonJS,
|
|
34
34
|
__require,
|
|
35
35
|
__toESM
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-WYREEMWZ.js";
|
|
37
37
|
|
|
38
38
|
// ../node_modules/esprima/dist/esprima.js
|
|
39
39
|
var require_esprima = __commonJS({
|
|
@@ -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
|
__commonJS
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-WYREEMWZ.js";
|
|
15
15
|
|
|
16
16
|
// ../node_modules/ts-dedent/dist/index.js
|
|
17
17
|
var require_dist = __commonJS({
|
|
@@ -1,54 +1,54 @@
|
|
|
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
|
versions_default
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-VRODUWUT.js";
|
|
15
15
|
import {
|
|
16
16
|
require_picomatch
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-XPWMJEXT.js";
|
|
18
18
|
import {
|
|
19
19
|
logger
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-FD76ZM2X.js";
|
|
21
21
|
import {
|
|
22
22
|
any,
|
|
23
23
|
from,
|
|
24
24
|
invariant,
|
|
25
25
|
up,
|
|
26
26
|
up2
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-255LKCUD.js";
|
|
28
28
|
import {
|
|
29
29
|
importModule,
|
|
30
30
|
resolveModulePath,
|
|
31
31
|
resolvePackageDir,
|
|
32
32
|
safeResolveModule
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-SNGQFKE7.js";
|
|
34
34
|
import {
|
|
35
35
|
join,
|
|
36
36
|
parse,
|
|
37
37
|
resolve
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-CUUCEXYW.js";
|
|
39
39
|
import {
|
|
40
40
|
glob,
|
|
41
41
|
globSync
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-52EAUB7R.js";
|
|
43
43
|
import {
|
|
44
44
|
slash
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-WUVM2V22.js";
|
|
46
46
|
import {
|
|
47
47
|
require_dist
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-QCZPELNP.js";
|
|
49
49
|
import {
|
|
50
50
|
require_picocolors
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-56BVIMJO.js";
|
|
52
52
|
import {
|
|
53
53
|
__commonJS,
|
|
54
54
|
__esm,
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
__require,
|
|
57
57
|
__toCommonJS,
|
|
58
58
|
__toESM
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-WYREEMWZ.js";
|
|
60
60
|
|
|
61
61
|
// ../node_modules/resolve/lib/homedir.js
|
|
62
62
|
var require_homedir = __commonJS({
|
|
@@ -11086,7 +11086,7 @@ function normalizeStoryPath(filename) {
|
|
|
11086
11086
|
|
|
11087
11087
|
// src/common/utils/envs.ts
|
|
11088
11088
|
async function loadEnvs(options = {}) {
|
|
11089
|
-
let { getEnvironment } = await import("./lib-
|
|
11089
|
+
let { getEnvironment } = await import("./lib-RWWG7TOS.js"), defaultNodeEnv = options.production ? "production" : "development", env2 = {
|
|
11090
11090
|
// eslint-disable-next-line @typescript-eslint/dot-notation
|
|
11091
11091
|
NODE_ENV: process.env.NODE_ENV || defaultNodeEnv,
|
|
11092
11092
|
NODE_PATH: process.env.NODE_PATH || "",
|
|
@@ -11716,6 +11716,7 @@ var rendererPackages = {
|
|
|
11716
11716
|
"@storybook/svelte": SupportedRenderer2.SVELTE,
|
|
11717
11717
|
"@storybook/preact": SupportedRenderer2.PREACT,
|
|
11718
11718
|
"@storybook/server": SupportedRenderer2.SERVER,
|
|
11719
|
+
"@storybook/react-native": SupportedRenderer2.REACT_NATIVE,
|
|
11719
11720
|
// community (outside of monorepo)
|
|
11720
11721
|
"storybook-framework-qwik": SupportedRenderer2.QWIK,
|
|
11721
11722
|
"storybook-solidjs-vite": SupportedRenderer2.SOLID
|
|
@@ -12134,10 +12135,25 @@ function satisfies2() {
|
|
|
12134
12135
|
|
|
12135
12136
|
// src/common/utils/formatter.ts
|
|
12136
12137
|
async function getPrettier() {
|
|
12137
|
-
|
|
12138
|
-
|
|
12139
|
-
|
|
12140
|
-
|
|
12138
|
+
try {
|
|
12139
|
+
return await import("prettier");
|
|
12140
|
+
} catch {
|
|
12141
|
+
return {
|
|
12142
|
+
AstPath: class {
|
|
12143
|
+
},
|
|
12144
|
+
doc: {},
|
|
12145
|
+
util: {},
|
|
12146
|
+
version: "0.0.0-fallback",
|
|
12147
|
+
resolveConfig: async () => null,
|
|
12148
|
+
format: (content) => Promise.resolve(content),
|
|
12149
|
+
check: () => Promise.resolve(!1),
|
|
12150
|
+
clearConfigCache: () => Promise.resolve(void 0),
|
|
12151
|
+
formatWithCursor: () => Promise.resolve({ formatted: "", cursorOffset: 0 }),
|
|
12152
|
+
getFileInfo: async () => ({ ignored: !1, inferredParser: null }),
|
|
12153
|
+
getSupportInfo: () => Promise.resolve({ languages: [], options: [] }),
|
|
12154
|
+
resolveConfigFile: async () => null
|
|
12155
|
+
};
|
|
12156
|
+
}
|
|
12141
12157
|
}
|
|
12142
12158
|
async function formatFileContent(filePath, content) {
|
|
12143
12159
|
try {
|
|
@@ -14743,7 +14759,7 @@ async function scanAndTransformFiles({
|
|
|
14743
14759
|
initialValue: defaultGlob
|
|
14744
14760
|
});
|
|
14745
14761
|
logger13.log("Scanning for affected files...");
|
|
14746
|
-
let globby = (await import("./globby-
|
|
14762
|
+
let globby = (await import("./globby-YHL6UTMA.js")).globby, sourceFiles = await globby([glob2], {
|
|
14747
14763
|
...commonGlobOptions(""),
|
|
14748
14764
|
ignore: ["**/node_modules/**"],
|
|
14749
14765
|
dot: !0,
|
|
@@ -14764,7 +14780,7 @@ function transformImports(source, renamedImports) {
|
|
|
14764
14780
|
return hasChanges ? transformed : null;
|
|
14765
14781
|
}
|
|
14766
14782
|
var transformImportFiles = async (files, renamedImports, dryRun) => {
|
|
14767
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
14783
|
+
let errors = [], { default: pLimit } = await import("./p-limit-LLBQLQ7I.js"), limit = pLimit(10);
|
|
14768
14784
|
return await Promise.all(
|
|
14769
14785
|
files.map(
|
|
14770
14786
|
(file) => limit(async () => {
|
|
@@ -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
|
|
@@ -12,7 +12,7 @@ var require = CJS_COMPAT_NODE_MODULE_f2mg11kr5cs.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
dirname,
|
|
14
14
|
join
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-CUUCEXYW.js";
|
|
16
16
|
|
|
17
17
|
// ../node_modules/exsolve/dist/index.mjs
|
|
18
18
|
import fs, { lstatSync, realpathSync, statSync } from "node:fs";
|
|
@@ -1,35 +1,35 @@
|
|
|
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
|
require_build
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5H7WLGZC.js";
|
|
15
15
|
import {
|
|
16
16
|
StorybookError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-B2EXFXPG.js";
|
|
18
18
|
import {
|
|
19
19
|
resolvePackageDir
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-SNGQFKE7.js";
|
|
21
21
|
import {
|
|
22
22
|
relative
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-CUUCEXYW.js";
|
|
24
24
|
import {
|
|
25
25
|
require_dist
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-QCZPELNP.js";
|
|
27
27
|
import {
|
|
28
28
|
require_picocolors
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-56BVIMJO.js";
|
|
30
30
|
import {
|
|
31
31
|
__toESM
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-WYREEMWZ.js";
|
|
33
33
|
|
|
34
34
|
// src/core-server/utils/server-statics.ts
|
|
35
35
|
import { existsSync, statSync } from "node:fs";
|
|
@@ -157,7 +157,7 @@ async function getErrorLevel({
|
|
|
157
157
|
let valueFromPrompt = await promptCrashReports();
|
|
158
158
|
return valueFromPrompt !== void 0 ? valueFromPrompt ? "full" : "error" : "full";
|
|
159
159
|
}
|
|
160
|
-
async function sendTelemetryError(_error, eventType, options, blocking = !0) {
|
|
160
|
+
async function sendTelemetryError(_error, eventType, options, blocking = !0, parent) {
|
|
161
161
|
try {
|
|
162
162
|
let errorLevel = "error";
|
|
163
163
|
try {
|
|
@@ -168,7 +168,7 @@ async function sendTelemetryError(_error, eventType, options, blocking = !0) {
|
|
|
168
168
|
let precedingUpgrade = await getPrecedingUpgrade(), error = _error, errorHash;
|
|
169
169
|
"message" in error ? errorHash = error.message ? oneWayHash(error.message) : "EMPTY_MESSAGE" : errorHash = "NO_MESSAGE";
|
|
170
170
|
let { code, name, category } = error;
|
|
171
|
-
await telemetry(
|
|
171
|
+
if (await telemetry(
|
|
172
172
|
"error",
|
|
173
173
|
{
|
|
174
174
|
code,
|
|
@@ -180,14 +180,18 @@ async function sendTelemetryError(_error, eventType, options, blocking = !0) {
|
|
|
180
180
|
error: errorLevel === "full" ? error : void 0,
|
|
181
181
|
errorHash,
|
|
182
182
|
// if we ever end up sending a non-error instance, we'd like to know
|
|
183
|
-
isErrorInstance: error instanceof Error
|
|
183
|
+
isErrorInstance: error instanceof Error,
|
|
184
|
+
// Include parent error information if this is a sub-error
|
|
185
|
+
...parent ? { parent: parent.fullErrorCode } : {}
|
|
184
186
|
},
|
|
185
187
|
{
|
|
186
188
|
immediate: !0,
|
|
187
189
|
configDir: options.cliOptions.configDir || options.presetOptions?.configDir,
|
|
188
190
|
enableCrashReports: errorLevel === "full"
|
|
189
191
|
}
|
|
190
|
-
)
|
|
192
|
+
), error instanceof StorybookError && error.subErrors.length > 0)
|
|
193
|
+
for (let subError of error.subErrors)
|
|
194
|
+
subError instanceof StorybookError && await sendTelemetryError(subError, eventType, options, blocking, error);
|
|
191
195
|
}
|
|
192
196
|
} catch {
|
|
193
197
|
}
|