storybook 10.2.0-alpha.3 → 10.2.0-alpha.4
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-Y6HZAT53.js → chunk-HX32VQZR.js} +1 -1
- package/dist/{_node-chunks/chunk-MUWHX7GN.js → _browser-chunks/chunk-JVRDBUUP.js} +20 -13
- package/dist/_browser-chunks/{chunk-DOSERVNW.js → chunk-UXVP56J6.js} +1 -1
- package/dist/_browser-chunks/{chunk-GFY5R5EY.js → chunk-V5NV5R37.js} +1 -1
- package/dist/_node-chunks/{builder-manager-U6SN6ZED.js → builder-manager-UYH5WXWQ.js} +12 -12
- package/dist/_node-chunks/{camelcase-GLXVGCEV.js → camelcase-VC2MI4D3.js} +7 -7
- package/dist/_node-chunks/{chunk-4VZME5CV.js → chunk-2LVUTXDF.js} +6 -6
- package/dist/_node-chunks/chunk-2ZQ6Y2UX.js +18 -0
- package/dist/_node-chunks/{chunk-H4BZRGVO.js → chunk-3SB46FMB.js} +8 -8
- package/dist/_node-chunks/{chunk-5ZGZ22PV.js → chunk-5IKN22PK.js} +9 -9
- package/dist/_node-chunks/{chunk-HGYHQF7Z.js → chunk-5Y2B5Y2I.js} +9 -9
- package/dist/_node-chunks/{chunk-IKSK6CEY.js → chunk-6DSSKDEB.js} +6 -6
- package/dist/_node-chunks/{chunk-LHBDNMEP.js → chunk-6RZ6ESPF.js} +12 -12
- package/dist/{_browser-chunks/chunk-FQ7SLVLR.js → _node-chunks/chunk-6XCE5DKF.js} +32 -1
- package/dist/_node-chunks/{chunk-Q27GKV7Y.js → chunk-AEF4OCMB.js} +7 -7
- package/dist/_node-chunks/chunk-ATFXKLVA.js +61 -0
- package/dist/_node-chunks/{chunk-YPCGEC3N.js → chunk-BRVASHE4.js} +21 -17
- package/dist/_node-chunks/{chunk-HKTRFCJD.js → chunk-BXGPI53U.js} +6 -6
- package/dist/_node-chunks/{chunk-5SCVRD6U.js → chunk-CSLYLE5Z.js} +6 -6
- package/dist/_node-chunks/{chunk-HYH2IT7K.js → chunk-EGGWMXFM.js} +7 -7
- package/dist/_node-chunks/{chunk-KP6H4S3L.js → chunk-HATD2DIT.js} +6 -6
- package/dist/_node-chunks/{chunk-Q47IIVLL.js → chunk-I6C74YGE.js} +8 -8
- package/dist/_node-chunks/{chunk-B6AJKALV.js → chunk-IXZ54TG6.js} +6 -6
- package/dist/_node-chunks/chunk-JUQFZI7H.js +23 -0
- package/dist/_node-chunks/{chunk-NKUDIVPF.js → chunk-KLBUL53W.js} +7 -7
- package/dist/_node-chunks/{chunk-E6CKDKNL.js → chunk-NCENIJPW.js} +7 -7
- package/dist/_node-chunks/{chunk-DO56XDMZ.js → chunk-OBFKPAHB.js} +72 -11
- package/dist/_node-chunks/{chunk-SM7QXYN4.js → chunk-OW656GJO.js} +13 -13
- package/dist/_node-chunks/{chunk-6RXAFKLM.js → chunk-S3WG5D7I.js} +7 -7
- package/dist/_node-chunks/{chunk-N3O3HJMU.js → chunk-THYQIUTI.js} +7 -7
- package/dist/_node-chunks/{chunk-C2G5ML5F.js → chunk-VHJPAZFZ.js} +7 -7
- package/dist/_node-chunks/{chunk-VKFEIIOF.js → chunk-VJ5C7NTM.js} +40 -22
- package/dist/_node-chunks/{chunk-2IFACTU4.js → chunk-WI5ZJAAJ.js} +7 -7
- package/dist/_node-chunks/{chunk-XYVZIRZC.js → chunk-X6TQDZZW.js} +6 -6
- package/dist/_node-chunks/{dist-GGDI7EVD.js → dist-ZK2DO62Y.js} +9 -9
- package/dist/_node-chunks/{globby-DY2UCDKN.js → globby-3NVGNGRX.js} +9 -9
- package/dist/_node-chunks/{lib-PFKECSVA.js → lib-ALOTNL3B.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-OPAAI5WZ.js → mdx-N42X6CFJ-AVHGVFIO.js} +8 -8
- package/dist/_node-chunks/{p-limit-PMYE6ZFC.js → p-limit-JMHEGI5E.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-6WHPDWFA.js +0 -61
- package/dist/_node-chunks/chunk-CFCZ5PKC.js +0 -18
- package/dist/_node-chunks/chunk-O5OIO47U.js +0 -23
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_uzmhoq39aog from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_uzmhoq39aog from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_uzmhoq39aog from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_uzmhoq39aog.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_uzmhoq39aog.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_uzmhoq39aog.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-KLBUL53W.js";
|
|
15
15
|
import {
|
|
16
16
|
slash
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
18
|
-
import "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-IXZ54TG6.js";
|
|
18
|
+
import "../../_node-chunks/chunk-2LVUTXDF.js";
|
|
19
19
|
|
|
20
20
|
// src/core-server/utils/remove-mdx-entries.ts
|
|
21
21
|
import { isAbsolute, join, relative } from "node:path";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_uzmhoq39aog from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_uzmhoq39aog from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_uzmhoq39aog from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_uzmhoq39aog.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_uzmhoq39aog.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_uzmhoq39aog.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 "../../_node-chunks/chunk-
|
|
12
|
+
import "../../_node-chunks/chunk-6RZ6ESPF.js";
|
|
13
13
|
import {
|
|
14
14
|
AbortError,
|
|
15
15
|
after,
|
|
@@ -32,45 +32,45 @@ import {
|
|
|
32
32
|
sendTelemetryError,
|
|
33
33
|
throttle,
|
|
34
34
|
unary
|
|
35
|
-
} from "../../_node-chunks/chunk-
|
|
36
|
-
import "../../_node-chunks/chunk-
|
|
37
|
-
import "../../_node-chunks/chunk-
|
|
38
|
-
import "../../_node-chunks/chunk-
|
|
35
|
+
} from "../../_node-chunks/chunk-BRVASHE4.js";
|
|
36
|
+
import "../../_node-chunks/chunk-S3WG5D7I.js";
|
|
37
|
+
import "../../_node-chunks/chunk-JUQFZI7H.js";
|
|
38
|
+
import "../../_node-chunks/chunk-6XCE5DKF.js";
|
|
39
39
|
import {
|
|
40
40
|
getLastEvents,
|
|
41
41
|
getSessionId
|
|
42
|
-
} from "../../_node-chunks/chunk-
|
|
42
|
+
} from "../../_node-chunks/chunk-HATD2DIT.js";
|
|
43
43
|
import {
|
|
44
44
|
globalSettings
|
|
45
|
-
} from "../../_node-chunks/chunk-
|
|
45
|
+
} from "../../_node-chunks/chunk-5IKN22PK.js";
|
|
46
46
|
import {
|
|
47
47
|
invariant
|
|
48
|
-
} from "../../_node-chunks/chunk-
|
|
48
|
+
} from "../../_node-chunks/chunk-BXGPI53U.js";
|
|
49
49
|
import {
|
|
50
50
|
resolvePackageDir
|
|
51
|
-
} from "../../_node-chunks/chunk-
|
|
52
|
-
import "../../_node-chunks/chunk-
|
|
51
|
+
} from "../../_node-chunks/chunk-NCENIJPW.js";
|
|
52
|
+
import "../../_node-chunks/chunk-X6TQDZZW.js";
|
|
53
53
|
import {
|
|
54
54
|
isAbsolute,
|
|
55
55
|
join
|
|
56
|
-
} from "../../_node-chunks/chunk-
|
|
56
|
+
} from "../../_node-chunks/chunk-CSLYLE5Z.js";
|
|
57
57
|
import {
|
|
58
58
|
loadConfig
|
|
59
|
-
} from "../../_node-chunks/chunk-
|
|
59
|
+
} from "../../_node-chunks/chunk-3SB46FMB.js";
|
|
60
60
|
import {
|
|
61
61
|
require_dist
|
|
62
|
-
} from "../../_node-chunks/chunk-
|
|
63
|
-
import "../../_node-chunks/chunk-
|
|
64
|
-
import "../../_node-chunks/chunk-
|
|
62
|
+
} from "../../_node-chunks/chunk-THYQIUTI.js";
|
|
63
|
+
import "../../_node-chunks/chunk-5Y2B5Y2I.js";
|
|
64
|
+
import "../../_node-chunks/chunk-EGGWMXFM.js";
|
|
65
65
|
import {
|
|
66
66
|
require_picocolors
|
|
67
|
-
} from "../../_node-chunks/chunk-
|
|
67
|
+
} from "../../_node-chunks/chunk-AEF4OCMB.js";
|
|
68
68
|
import {
|
|
69
69
|
__commonJS,
|
|
70
70
|
__export,
|
|
71
71
|
__require,
|
|
72
72
|
__toESM
|
|
73
|
-
} from "../../_node-chunks/chunk-
|
|
73
|
+
} from "../../_node-chunks/chunk-2LVUTXDF.js";
|
|
74
74
|
|
|
75
75
|
// ../../node_modules/shell-quote/quote.js
|
|
76
76
|
var require_quote = __commonJS({
|
|
@@ -537,7 +537,7 @@ import { isCsfFactoryPreview } from "storybook/internal/csf-tools";
|
|
|
537
537
|
var import_ts_dedent = __toESM(require_dist(), 1);
|
|
538
538
|
|
|
539
539
|
// src/core-server/utils/get-component-variable-name.ts
|
|
540
|
-
var getComponentVariableName = async (name) => (await import("../../_node-chunks/camelcase-
|
|
540
|
+
var getComponentVariableName = async (name) => (await import("../../_node-chunks/camelcase-VC2MI4D3.js")).default(name.replace(/^[^a-zA-Z_$]*/, ""), { pascalCase: !0 }).replace(/[^a-zA-Z_$]+/, "");
|
|
541
541
|
|
|
542
542
|
// src/core-server/utils/new-story-templates/csf-factory-template.ts
|
|
543
543
|
async function getCsfFactoryTemplateForNewStoryFile(data) {
|
|
@@ -802,7 +802,7 @@ async function searchFiles({
|
|
|
802
802
|
ignoredFiles = IGNORED_FILES,
|
|
803
803
|
fileExtensions = FILE_EXTENSIONS
|
|
804
804
|
}) {
|
|
805
|
-
let { globby, isDynamicPattern } = await import("../../_node-chunks/globby-
|
|
805
|
+
let { globby, isDynamicPattern } = await import("../../_node-chunks/globby-3NVGNGRX.js"), hasSearchSpecialGlobChars = isDynamicPattern(searchQuery, { cwd }), searchQueryHasExtension = /(\.[a-z]+)$/i.test(searchQuery), fileExtensionsPattern = `{${fileExtensions.join(",")}}`, globbedSearchQuery = hasSearchSpecialGlobChars ? searchQuery : searchQueryHasExtension ? [`**/*${searchQuery}*`, `**/*${searchQuery}*/**`] : [
|
|
806
806
|
`**/*${searchQuery}*.${fileExtensionsPattern}`,
|
|
807
807
|
`**/*${searchQuery}*/**/*.${fileExtensionsPattern}`
|
|
808
808
|
];
|
package/dist/csf/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
mountDestructured,
|
|
11
11
|
normalizeArrays,
|
|
12
12
|
normalizeProjectAnnotations
|
|
13
|
-
} from "../_browser-chunks/chunk-
|
|
13
|
+
} from "../_browser-chunks/chunk-HX32VQZR.js";
|
|
14
14
|
import "../_browser-chunks/chunk-IPA5A322.js";
|
|
15
15
|
import "../_browser-chunks/chunk-XLJZ7AOP.js";
|
|
16
16
|
import {
|
package/dist/csf-tools/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_uzmhoq39aog from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_uzmhoq39aog from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_uzmhoq39aog from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_uzmhoq39aog.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_uzmhoq39aog.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_uzmhoq39aog.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -38,9 +38,9 @@ import {
|
|
|
38
38
|
vitestTransform,
|
|
39
39
|
writeConfig,
|
|
40
40
|
writeCsf
|
|
41
|
-
} from "../_node-chunks/chunk-
|
|
42
|
-
import "../_node-chunks/chunk-
|
|
43
|
-
import "../_node-chunks/chunk-
|
|
41
|
+
} from "../_node-chunks/chunk-3SB46FMB.js";
|
|
42
|
+
import "../_node-chunks/chunk-THYQIUTI.js";
|
|
43
|
+
import "../_node-chunks/chunk-2LVUTXDF.js";
|
|
44
44
|
export {
|
|
45
45
|
BadMetaError,
|
|
46
46
|
ConfigFile,
|
|
@@ -45609,7 +45609,26 @@ var StorybookError = class _StorybookError extends Error {
|
|
|
45609
45609
|
* user.
|
|
45610
45610
|
*/
|
|
45611
45611
|
this.isHandledError = !1;
|
|
45612
|
-
|
|
45612
|
+
/**
|
|
45613
|
+
* A collection of sub errors which relate to a parent error.
|
|
45614
|
+
*
|
|
45615
|
+
* Sub-errors are used to represent multiple related errors that occurred together. When a
|
|
45616
|
+
* StorybookError with sub-errors is sent to telemetry, both the parent error and each sub-error
|
|
45617
|
+
* are sent as separate telemetry events. This allows for better error tracking and debugging.
|
|
45618
|
+
*
|
|
45619
|
+
* @example
|
|
45620
|
+
*
|
|
45621
|
+
* ```ts
|
|
45622
|
+
* const error1 = new SomeError();
|
|
45623
|
+
* const error2 = new AnotherError();
|
|
45624
|
+
* const parentError = new ParentError({
|
|
45625
|
+
* // ... other props
|
|
45626
|
+
* subErrors: [error1, error2],
|
|
45627
|
+
* });
|
|
45628
|
+
* ```
|
|
45629
|
+
*/
|
|
45630
|
+
this.subErrors = [];
|
|
45631
|
+
this.category = props.category, this.documentation = props.documentation ?? !1, this.code = props.code, this.isHandledError = props.isHandledError ?? !1, this.name = props.name, this.subErrors = props.subErrors ?? [];
|
|
45613
45632
|
}
|
|
45614
45633
|
get fullErrorCode() {
|
|
45615
45634
|
return parseErrorCode({ code: this.code, category: this.category });
|
|
@@ -66314,7 +66333,7 @@ init_dist();
|
|
|
66314
66333
|
var import_memoizerific8 = __toESM(require_memoizerific(), 1), import_semver = __toESM(require_semver2(), 1);
|
|
66315
66334
|
|
|
66316
66335
|
// src/manager-api/version.ts
|
|
66317
|
-
var version = "10.2.0-alpha.
|
|
66336
|
+
var version = "10.2.0-alpha.4";
|
|
66318
66337
|
|
|
66319
66338
|
// src/manager-api/modules/versions.ts
|
|
66320
66339
|
var { VERSIONCHECK } = scope, getVersionCheckData = (0, import_memoizerific8.default)(1)(() => {
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
} from "../_browser-chunks/chunk-JK6U3MQW.js";
|
|
6
6
|
import {
|
|
7
7
|
StatusTypeIdMismatchError
|
|
8
|
-
} from "../_browser-chunks/chunk-
|
|
8
|
+
} from "../_browser-chunks/chunk-V5NV5R37.js";
|
|
9
9
|
import {
|
|
10
10
|
StatusTypeIdMismatchError as StatusTypeIdMismatchError2
|
|
11
|
-
} from "../_browser-chunks/chunk-
|
|
11
|
+
} from "../_browser-chunks/chunk-UXVP56J6.js";
|
|
12
12
|
import {
|
|
13
13
|
StorybookError
|
|
14
|
-
} from "../_browser-chunks/chunk-
|
|
14
|
+
} from "../_browser-chunks/chunk-JVRDBUUP.js";
|
|
15
15
|
import {
|
|
16
16
|
dequal,
|
|
17
17
|
partition
|
|
@@ -2338,7 +2338,7 @@ import { global as global8 } from "@storybook/global";
|
|
|
2338
2338
|
import semver from "semver";
|
|
2339
2339
|
|
|
2340
2340
|
// src/manager-api/version.ts
|
|
2341
|
-
var version = "10.2.0-alpha.
|
|
2341
|
+
var version = "10.2.0-alpha.4";
|
|
2342
2342
|
|
|
2343
2343
|
// src/manager-api/modules/versions.ts
|
|
2344
2344
|
var { VERSIONCHECK } = global8, getVersionCheckData = (0, import_memoizerific2.default)(1)(() => {
|
package/dist/manager-errors.d.ts
CHANGED
|
@@ -570,6 +570,25 @@ declare abstract class StorybookError extends Error {
|
|
|
570
570
|
/** Overrides the default `Error.name` property in the format: SB_<CATEGORY>_<CODE>. */
|
|
571
571
|
get name(): string;
|
|
572
572
|
set name(name: string);
|
|
573
|
+
/**
|
|
574
|
+
* A collection of sub errors which relate to a parent error.
|
|
575
|
+
*
|
|
576
|
+
* Sub-errors are used to represent multiple related errors that occurred together. When a
|
|
577
|
+
* StorybookError with sub-errors is sent to telemetry, both the parent error and each sub-error
|
|
578
|
+
* are sent as separate telemetry events. This allows for better error tracking and debugging.
|
|
579
|
+
*
|
|
580
|
+
* @example
|
|
581
|
+
*
|
|
582
|
+
* ```ts
|
|
583
|
+
* const error1 = new SomeError();
|
|
584
|
+
* const error2 = new AnotherError();
|
|
585
|
+
* const parentError = new ParentError({
|
|
586
|
+
* // ... other props
|
|
587
|
+
* subErrors: [error1, error2],
|
|
588
|
+
* });
|
|
589
|
+
* ```
|
|
590
|
+
*/
|
|
591
|
+
subErrors: StorybookError[];
|
|
573
592
|
constructor(props: {
|
|
574
593
|
category: string;
|
|
575
594
|
code: number;
|
|
@@ -577,6 +596,11 @@ declare abstract class StorybookError extends Error {
|
|
|
577
596
|
documentation?: boolean | string | string[];
|
|
578
597
|
isHandledError?: boolean;
|
|
579
598
|
name: string;
|
|
599
|
+
/**
|
|
600
|
+
* Optional array of sub-errors that are related to this error. When this error is sent to
|
|
601
|
+
* telemetry, each sub-error will be sent as a separate event.
|
|
602
|
+
*/
|
|
603
|
+
subErrors?: StorybookError[];
|
|
580
604
|
});
|
|
581
605
|
/** Generates the error message along with additional documentation link (if applicable). */
|
|
582
606
|
static getFullMessage({ documentation, code, category, message, }: ConstructorParameters<typeof StorybookError>[0]): string;
|
package/dist/manager-errors.js
CHANGED
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
ProviderDoesNotExtendBaseProviderError,
|
|
4
4
|
StatusTypeIdMismatchError,
|
|
5
5
|
UncaughtManagerError
|
|
6
|
-
} from "./_browser-chunks/chunk-
|
|
7
|
-
import "./_browser-chunks/chunk-
|
|
6
|
+
} from "./_browser-chunks/chunk-V5NV5R37.js";
|
|
7
|
+
import "./_browser-chunks/chunk-JVRDBUUP.js";
|
|
8
8
|
import "./_browser-chunks/chunk-A242L54C.js";
|
|
9
9
|
export {
|
|
10
10
|
Category,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_uzmhoq39aog from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_uzmhoq39aog from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_uzmhoq39aog from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_uzmhoq39aog.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_uzmhoq39aog.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_uzmhoq39aog.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
join,
|
|
17
17
|
normalize,
|
|
18
18
|
resolve
|
|
19
|
-
} from "../_node-chunks/chunk-
|
|
20
|
-
import "../_node-chunks/chunk-
|
|
19
|
+
} from "../_node-chunks/chunk-CSLYLE5Z.js";
|
|
20
|
+
import "../_node-chunks/chunk-2LVUTXDF.js";
|
|
21
21
|
|
|
22
22
|
// ../../node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
|
|
23
23
|
var comma = 44, semicolon = 59, chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", intToChar = new Uint8Array(64), charToInt = new Uint8Array(128);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_uzmhoq39aog from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_uzmhoq39aog from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_uzmhoq39aog from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_uzmhoq39aog.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_uzmhoq39aog.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_uzmhoq39aog.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -22,9 +22,9 @@ import {
|
|
|
22
22
|
once,
|
|
23
23
|
prompt,
|
|
24
24
|
protectUrls
|
|
25
|
-
} from "../_node-chunks/chunk-
|
|
26
|
-
import "../_node-chunks/chunk-
|
|
27
|
-
import "../_node-chunks/chunk-
|
|
25
|
+
} from "../_node-chunks/chunk-I6C74YGE.js";
|
|
26
|
+
import "../_node-chunks/chunk-AEF4OCMB.js";
|
|
27
|
+
import "../_node-chunks/chunk-2LVUTXDF.js";
|
|
28
28
|
var export_instance = import_npmlog.default;
|
|
29
29
|
export {
|
|
30
30
|
CLI_COLORS,
|
package/dist/preview/runtime.js
CHANGED
|
@@ -15662,7 +15662,26 @@ var StorybookError = class _StorybookError extends Error {
|
|
|
15662
15662
|
* user.
|
|
15663
15663
|
*/
|
|
15664
15664
|
this.isHandledError = !1;
|
|
15665
|
-
|
|
15665
|
+
/**
|
|
15666
|
+
* A collection of sub errors which relate to a parent error.
|
|
15667
|
+
*
|
|
15668
|
+
* Sub-errors are used to represent multiple related errors that occurred together. When a
|
|
15669
|
+
* StorybookError with sub-errors is sent to telemetry, both the parent error and each sub-error
|
|
15670
|
+
* are sent as separate telemetry events. This allows for better error tracking and debugging.
|
|
15671
|
+
*
|
|
15672
|
+
* @example
|
|
15673
|
+
*
|
|
15674
|
+
* ```ts
|
|
15675
|
+
* const error1 = new SomeError();
|
|
15676
|
+
* const error2 = new AnotherError();
|
|
15677
|
+
* const parentError = new ParentError({
|
|
15678
|
+
* // ... other props
|
|
15679
|
+
* subErrors: [error1, error2],
|
|
15680
|
+
* });
|
|
15681
|
+
* ```
|
|
15682
|
+
*/
|
|
15683
|
+
this.subErrors = [];
|
|
15684
|
+
this.category = props.category, this.documentation = props.documentation ?? !1, this.code = props.code, this.isHandledError = props.isHandledError ?? !1, this.name = props.name, this.subErrors = props.subErrors ?? [];
|
|
15666
15685
|
}
|
|
15667
15686
|
get fullErrorCode() {
|
|
15668
15687
|
return parseErrorCode({ code: this.code, category: this.category });
|
|
@@ -40698,7 +40717,7 @@ var DocsContext = class {
|
|
|
40698
40717
|
}
|
|
40699
40718
|
resolveModuleExport(moduleExportOrType) {
|
|
40700
40719
|
let csfFile = this.exportsToCSFFile.get(moduleExportOrType);
|
|
40701
|
-
if (csfFile)
|
|
40720
|
+
if (!csfFile && moduleExportOrType && typeof moduleExportOrType == "object" && "default" in moduleExportOrType && (csfFile = this.exportsToCSFFile.get(moduleExportOrType.default)), csfFile)
|
|
40702
40721
|
return { type: "meta", csfFile };
|
|
40703
40722
|
let story = this.exportToStory.get(
|
|
40704
40723
|
isStory(moduleExportOrType) ? moduleExportOrType.input : moduleExportOrType
|
package/dist/preview-errors.d.ts
CHANGED
|
@@ -570,6 +570,25 @@ declare abstract class StorybookError extends Error {
|
|
|
570
570
|
/** Overrides the default `Error.name` property in the format: SB_<CATEGORY>_<CODE>. */
|
|
571
571
|
get name(): string;
|
|
572
572
|
set name(name: string);
|
|
573
|
+
/**
|
|
574
|
+
* A collection of sub errors which relate to a parent error.
|
|
575
|
+
*
|
|
576
|
+
* Sub-errors are used to represent multiple related errors that occurred together. When a
|
|
577
|
+
* StorybookError with sub-errors is sent to telemetry, both the parent error and each sub-error
|
|
578
|
+
* are sent as separate telemetry events. This allows for better error tracking and debugging.
|
|
579
|
+
*
|
|
580
|
+
* @example
|
|
581
|
+
*
|
|
582
|
+
* ```ts
|
|
583
|
+
* const error1 = new SomeError();
|
|
584
|
+
* const error2 = new AnotherError();
|
|
585
|
+
* const parentError = new ParentError({
|
|
586
|
+
* // ... other props
|
|
587
|
+
* subErrors: [error1, error2],
|
|
588
|
+
* });
|
|
589
|
+
* ```
|
|
590
|
+
*/
|
|
591
|
+
subErrors: StorybookError[];
|
|
573
592
|
constructor(props: {
|
|
574
593
|
category: string;
|
|
575
594
|
code: number;
|
|
@@ -577,6 +596,11 @@ declare abstract class StorybookError extends Error {
|
|
|
577
596
|
documentation?: boolean | string | string[];
|
|
578
597
|
isHandledError?: boolean;
|
|
579
598
|
name: string;
|
|
599
|
+
/**
|
|
600
|
+
* Optional array of sub-errors that are related to this error. When this error is sent to
|
|
601
|
+
* telemetry, each sub-error will be sent as a separate event.
|
|
602
|
+
*/
|
|
603
|
+
subErrors?: StorybookError[];
|
|
580
604
|
});
|
|
581
605
|
/** Generates the error message along with additional documentation link (if applicable). */
|
|
582
606
|
static getFullMessage({ documentation, code, category, message, }: ConstructorParameters<typeof StorybookError>[0]): string;
|
package/dist/preview-errors.js
CHANGED
|
@@ -20,8 +20,8 @@ import {
|
|
|
20
20
|
StoryStoreAccessedBeforeInitializationError,
|
|
21
21
|
UnknownArgTypesError,
|
|
22
22
|
UnsupportedViewportDimensionError
|
|
23
|
-
} from "./_browser-chunks/chunk-
|
|
24
|
-
import "./_browser-chunks/chunk-
|
|
23
|
+
} from "./_browser-chunks/chunk-UXVP56J6.js";
|
|
24
|
+
import "./_browser-chunks/chunk-JVRDBUUP.js";
|
|
25
25
|
import "./_browser-chunks/chunk-3LY4VQVK.js";
|
|
26
26
|
import "./_browser-chunks/chunk-A242L54C.js";
|
|
27
27
|
export {
|
package/dist/server-errors.d.ts
CHANGED
|
@@ -570,6 +570,25 @@ declare abstract class StorybookError extends Error {
|
|
|
570
570
|
/** Overrides the default `Error.name` property in the format: SB_<CATEGORY>_<CODE>. */
|
|
571
571
|
get name(): string;
|
|
572
572
|
set name(name: string);
|
|
573
|
+
/**
|
|
574
|
+
* A collection of sub errors which relate to a parent error.
|
|
575
|
+
*
|
|
576
|
+
* Sub-errors are used to represent multiple related errors that occurred together. When a
|
|
577
|
+
* StorybookError with sub-errors is sent to telemetry, both the parent error and each sub-error
|
|
578
|
+
* are sent as separate telemetry events. This allows for better error tracking and debugging.
|
|
579
|
+
*
|
|
580
|
+
* @example
|
|
581
|
+
*
|
|
582
|
+
* ```ts
|
|
583
|
+
* const error1 = new SomeError();
|
|
584
|
+
* const error2 = new AnotherError();
|
|
585
|
+
* const parentError = new ParentError({
|
|
586
|
+
* // ... other props
|
|
587
|
+
* subErrors: [error1, error2],
|
|
588
|
+
* });
|
|
589
|
+
* ```
|
|
590
|
+
*/
|
|
591
|
+
subErrors: StorybookError[];
|
|
573
592
|
constructor(props: {
|
|
574
593
|
category: string;
|
|
575
594
|
code: number;
|
|
@@ -577,6 +596,11 @@ declare abstract class StorybookError extends Error {
|
|
|
577
596
|
documentation?: boolean | string | string[];
|
|
578
597
|
isHandledError?: boolean;
|
|
579
598
|
name: string;
|
|
599
|
+
/**
|
|
600
|
+
* Optional array of sub-errors that are related to this error. When this error is sent to
|
|
601
|
+
* telemetry, each sub-error will be sent as a separate event.
|
|
602
|
+
*/
|
|
603
|
+
subErrors?: StorybookError[];
|
|
580
604
|
});
|
|
581
605
|
/** Generates the error message along with additional documentation link (if applicable). */
|
|
582
606
|
static getFullMessage({ documentation, code, category, message, }: ConstructorParameters<typeof StorybookError>[0]): string;
|
|
@@ -787,12 +811,44 @@ declare class AddonVitestPostinstallPrerequisiteCheckError extends StorybookErro
|
|
|
787
811
|
reasons: string[];
|
|
788
812
|
});
|
|
789
813
|
}
|
|
814
|
+
declare class AddonVitestPostinstallFailedAddonA11yError extends StorybookError {
|
|
815
|
+
data: {
|
|
816
|
+
error: unknown | Error;
|
|
817
|
+
};
|
|
818
|
+
constructor(data: {
|
|
819
|
+
error: unknown | Error;
|
|
820
|
+
});
|
|
821
|
+
}
|
|
822
|
+
declare class AddonVitestPostinstallExistingSetupFileError extends StorybookError {
|
|
823
|
+
data: {
|
|
824
|
+
filePath: string;
|
|
825
|
+
};
|
|
826
|
+
constructor(data: {
|
|
827
|
+
filePath: string;
|
|
828
|
+
});
|
|
829
|
+
}
|
|
830
|
+
declare class AddonVitestPostinstallWorkspaceUpdateError extends StorybookError {
|
|
831
|
+
data: {
|
|
832
|
+
filePath: string;
|
|
833
|
+
};
|
|
834
|
+
constructor(data: {
|
|
835
|
+
filePath: string;
|
|
836
|
+
});
|
|
837
|
+
}
|
|
838
|
+
declare class AddonVitestPostinstallConfigUpdateError extends StorybookError {
|
|
839
|
+
data: {
|
|
840
|
+
filePath: string;
|
|
841
|
+
};
|
|
842
|
+
constructor(data: {
|
|
843
|
+
filePath: string;
|
|
844
|
+
});
|
|
845
|
+
}
|
|
790
846
|
declare class AddonVitestPostinstallError extends StorybookError {
|
|
791
847
|
data: {
|
|
792
|
-
errors:
|
|
848
|
+
errors: StorybookError[];
|
|
793
849
|
};
|
|
794
850
|
constructor(data: {
|
|
795
|
-
errors:
|
|
851
|
+
errors: StorybookError[];
|
|
796
852
|
});
|
|
797
853
|
}
|
|
798
854
|
declare class UpgradeStorybookToLowerVersionError extends StorybookError {
|
|
@@ -853,4 +909,4 @@ declare class AutomigrateError extends StorybookError {
|
|
|
853
909
|
});
|
|
854
910
|
}
|
|
855
911
|
|
|
856
|
-
export { AddonVitestPostinstallError, AddonVitestPostinstallPrerequisiteCheckError, AngularLegacyBuildOptionsError, AutomigrateError, Category, CommonJsConfigNotSupportedError, ConflictingStaticDirConfigError, CouldNotEvaluateFrameworkError, CriticalPresetLoadError, FindPackageVersionsError, GenerateNewProjectOnInitError, GoogleFontsDownloadError, GoogleFontsLoadingError, IncompatiblePostCssConfigError, InvalidFrameworkNameError, InvalidStoriesEntryError, MainFileEvaluationError, MainFileMissingError, MissingAngularJsonError, MissingBuilderError, MissingFrameworkFieldError, NoMatchingExportError, NoStatsForViteDevError, NxProjectDetectedError, SavingGlobalSettingsFileError, StatusTypeIdMismatchError, SvelteViteWithSvelteKitError, UpgradeStorybookToLowerVersionError, UpgradeStorybookUnknownCurrentVersionError, WebpackCompilationError, WebpackInvocationError, WebpackMissingStatsError };
|
|
912
|
+
export { AddonVitestPostinstallConfigUpdateError, AddonVitestPostinstallError, AddonVitestPostinstallExistingSetupFileError, AddonVitestPostinstallFailedAddonA11yError, AddonVitestPostinstallPrerequisiteCheckError, AddonVitestPostinstallWorkspaceUpdateError, AngularLegacyBuildOptionsError, AutomigrateError, Category, CommonJsConfigNotSupportedError, ConflictingStaticDirConfigError, CouldNotEvaluateFrameworkError, CriticalPresetLoadError, FindPackageVersionsError, GenerateNewProjectOnInitError, GoogleFontsDownloadError, GoogleFontsLoadingError, IncompatiblePostCssConfigError, InvalidFrameworkNameError, InvalidStoriesEntryError, MainFileEvaluationError, MainFileMissingError, MissingAngularJsonError, MissingBuilderError, MissingFrameworkFieldError, NoMatchingExportError, NoStatsForViteDevError, NxProjectDetectedError, SavingGlobalSettingsFileError, StatusTypeIdMismatchError, StorybookError, SvelteViteWithSvelteKitError, UpgradeStorybookToLowerVersionError, UpgradeStorybookUnknownCurrentVersionError, WebpackCompilationError, WebpackInvocationError, WebpackMissingStatsError };
|
package/dist/server-errors.js
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_uzmhoq39aog from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_uzmhoq39aog from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_uzmhoq39aog from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_uzmhoq39aog.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_uzmhoq39aog.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_uzmhoq39aog.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
|
+
AddonVitestPostinstallConfigUpdateError,
|
|
13
14
|
AddonVitestPostinstallError,
|
|
15
|
+
AddonVitestPostinstallExistingSetupFileError,
|
|
16
|
+
AddonVitestPostinstallFailedAddonA11yError,
|
|
14
17
|
AddonVitestPostinstallPrerequisiteCheckError,
|
|
18
|
+
AddonVitestPostinstallWorkspaceUpdateError,
|
|
15
19
|
AngularLegacyBuildOptionsError,
|
|
16
20
|
AutomigrateError,
|
|
17
21
|
Category,
|
|
@@ -42,14 +46,20 @@ import {
|
|
|
42
46
|
WebpackCompilationError,
|
|
43
47
|
WebpackInvocationError,
|
|
44
48
|
WebpackMissingStatsError
|
|
45
|
-
} from "./_node-chunks/chunk-
|
|
46
|
-
import
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
import "./_node-chunks/chunk-
|
|
49
|
+
} from "./_node-chunks/chunk-OBFKPAHB.js";
|
|
50
|
+
import {
|
|
51
|
+
StorybookError
|
|
52
|
+
} from "./_node-chunks/chunk-6XCE5DKF.js";
|
|
53
|
+
import "./_node-chunks/chunk-THYQIUTI.js";
|
|
54
|
+
import "./_node-chunks/chunk-AEF4OCMB.js";
|
|
55
|
+
import "./_node-chunks/chunk-2LVUTXDF.js";
|
|
50
56
|
export {
|
|
57
|
+
AddonVitestPostinstallConfigUpdateError,
|
|
51
58
|
AddonVitestPostinstallError,
|
|
59
|
+
AddonVitestPostinstallExistingSetupFileError,
|
|
60
|
+
AddonVitestPostinstallFailedAddonA11yError,
|
|
52
61
|
AddonVitestPostinstallPrerequisiteCheckError,
|
|
62
|
+
AddonVitestPostinstallWorkspaceUpdateError,
|
|
53
63
|
AngularLegacyBuildOptionsError,
|
|
54
64
|
AutomigrateError,
|
|
55
65
|
Category,
|
|
@@ -74,6 +84,7 @@ export {
|
|
|
74
84
|
NxProjectDetectedError,
|
|
75
85
|
SavingGlobalSettingsFileError,
|
|
76
86
|
StatusTypeIdMismatchError,
|
|
87
|
+
StorybookError,
|
|
77
88
|
SvelteViteWithSvelteKitError,
|
|
78
89
|
UpgradeStorybookToLowerVersionError,
|
|
79
90
|
UpgradeStorybookUnknownCurrentVersionError,
|