storybook 10.2.0-alpha.3 → 10.2.0-alpha.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-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-OWA7PM5D.js} +13 -12
- package/dist/_node-chunks/{camelcase-GLXVGCEV.js → camelcase-2LEK4OOC.js} +7 -7
- package/dist/_node-chunks/{chunk-DO56XDMZ.js → chunk-3NPQ2Y77.js} +72 -11
- package/dist/_node-chunks/chunk-4P6JV5PD.js +61 -0
- package/dist/_node-chunks/{chunk-N3O3HJMU.js → chunk-53QZPC5B.js} +7 -7
- package/dist/_node-chunks/{chunk-LHBDNMEP.js → chunk-5MG7AO5M.js} +12 -12
- package/dist/_node-chunks/{chunk-HKTRFCJD.js → chunk-APNNQRRU.js} +6 -6
- package/dist/_node-chunks/{chunk-6RXAFKLM.js → chunk-BPLKNOG7.js} +7 -7
- package/dist/_node-chunks/{chunk-Q47IIVLL.js → chunk-FUGUVTSE.js} +8 -8
- package/dist/_node-chunks/{chunk-XYVZIRZC.js → chunk-HT3TF35B.js} +6 -6
- package/dist/_node-chunks/chunk-IMOJACVP.js +23 -0
- package/dist/_node-chunks/chunk-IV4K2PSX.js +18 -0
- package/dist/{_browser-chunks/chunk-FQ7SLVLR.js → _node-chunks/chunk-J7VMFLRZ.js} +32 -1
- package/dist/_node-chunks/{chunk-NKUDIVPF.js → chunk-JRJT7Q2N.js} +7 -7
- package/dist/_node-chunks/{chunk-B6AJKALV.js → chunk-LOJ6VLWV.js} +6 -6
- package/dist/_node-chunks/{chunk-E6CKDKNL.js → chunk-MJEVYN6O.js} +7 -7
- package/dist/_node-chunks/{chunk-KP6H4S3L.js → chunk-O72O5WMW.js} +7 -7
- package/dist/_node-chunks/{chunk-Q27GKV7Y.js → chunk-Q2N5EUMK.js} +7 -7
- package/dist/_node-chunks/{chunk-H4BZRGVO.js → chunk-Q4YMOGYF.js} +8 -8
- package/dist/_node-chunks/{chunk-YPCGEC3N.js → chunk-QUCPWX6N.js} +21 -17
- package/dist/_node-chunks/{chunk-5SCVRD6U.js → chunk-RJ6MVIQ7.js} +6 -6
- package/dist/_node-chunks/{chunk-5ZGZ22PV.js → chunk-SKKDMIEL.js} +9 -9
- package/dist/_node-chunks/{chunk-2IFACTU4.js → chunk-TM67IYGR.js} +7 -7
- package/dist/_node-chunks/{chunk-4VZME5CV.js → chunk-TUFR2XYI.js} +6 -6
- package/dist/_node-chunks/{chunk-HGYHQF7Z.js → chunk-TX3LEYMY.js} +9 -9
- package/dist/_node-chunks/{chunk-IKSK6CEY.js → chunk-UIW2C2AI.js} +6 -6
- package/dist/_node-chunks/{chunk-SM7QXYN4.js → chunk-VG22ND3P.js} +13 -13
- package/dist/_node-chunks/{chunk-HYH2IT7K.js → chunk-WAM2AUH6.js} +7 -7
- package/dist/_node-chunks/{chunk-C2G5ML5F.js → chunk-WMGB2RD3.js} +7 -7
- package/dist/_node-chunks/{chunk-VKFEIIOF.js → chunk-ZRAJ6YTG.js} +40 -22
- package/dist/_node-chunks/{dist-GGDI7EVD.js → dist-KMT22HT2.js} +9 -9
- package/dist/_node-chunks/{globby-DY2UCDKN.js → globby-MSDE3LN6.js} +9 -9
- package/dist/_node-chunks/{lib-PFKECSVA.js → lib-2BTWTGXL.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-OPAAI5WZ.js → mdx-N42X6CFJ-RO5JQN35.js} +8 -8
- package/dist/_node-chunks/{p-limit-PMYE6ZFC.js → p-limit-6ZDUMRV5.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/components/index.js +10 -4
- package/dist/core-events/index.d.ts +4 -2
- package/dist/core-events/index.js +4 -2
- package/dist/core-server/index.d.ts +68 -1
- package/dist/core-server/index.js +35 -35
- package/dist/core-server/presets/common-manager.js +1 -1
- 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 +35 -8
- package/dist/manager/runtime.js +20 -5
- 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 +30 -5
- 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
|
@@ -2230,7 +2230,7 @@ var DocsContext = class {
|
|
|
2230
2230
|
}
|
|
2231
2231
|
resolveModuleExport(moduleExportOrType) {
|
|
2232
2232
|
let csfFile = this.exportsToCSFFile.get(moduleExportOrType);
|
|
2233
|
-
if (csfFile)
|
|
2233
|
+
if (!csfFile && moduleExportOrType && typeof moduleExportOrType == "object" && "default" in moduleExportOrType && (csfFile = this.exportsToCSFFile.get(moduleExportOrType.default)), csfFile)
|
|
2234
2234
|
return { type: "meta", csfFile };
|
|
2235
2235
|
let story = this.exportToStory.get(
|
|
2236
2236
|
isStory3(moduleExportOrType) ? moduleExportOrType.input : moduleExportOrType
|
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_2512dr0mzhu from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_2512dr0mzhu from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_2512dr0mzhu from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_2512dr0mzhu.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_2512dr0mzhu.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_2512dr0mzhu.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
|
-
|
|
13
1
|
// src/storybook-error.ts
|
|
14
2
|
function parseErrorCode({
|
|
15
3
|
code,
|
|
@@ -43,7 +31,26 @@ var StorybookError = class _StorybookError extends Error {
|
|
|
43
31
|
* user.
|
|
44
32
|
*/
|
|
45
33
|
this.isHandledError = !1;
|
|
46
|
-
|
|
34
|
+
/**
|
|
35
|
+
* A collection of sub errors which relate to a parent error.
|
|
36
|
+
*
|
|
37
|
+
* Sub-errors are used to represent multiple related errors that occurred together. When a
|
|
38
|
+
* StorybookError with sub-errors is sent to telemetry, both the parent error and each sub-error
|
|
39
|
+
* are sent as separate telemetry events. This allows for better error tracking and debugging.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
*
|
|
43
|
+
* ```ts
|
|
44
|
+
* const error1 = new SomeError();
|
|
45
|
+
* const error2 = new AnotherError();
|
|
46
|
+
* const parentError = new ParentError({
|
|
47
|
+
* // ... other props
|
|
48
|
+
* subErrors: [error1, error2],
|
|
49
|
+
* });
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
this.subErrors = [];
|
|
53
|
+
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 ?? [];
|
|
47
54
|
}
|
|
48
55
|
get fullErrorCode() {
|
|
49
56
|
return parseErrorCode({ code: this.code, category: this.category });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
StorybookError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JVRDBUUP.js";
|
|
4
4
|
|
|
5
5
|
// src/manager-errors.ts
|
|
6
6
|
var Category = /* @__PURE__ */ ((Category2) => (Category2.MANAGER_UNCAUGHT = "MANAGER_UNCAUGHT", Category2.MANAGER_UI = "MANAGER_UI", Category2.MANAGER_API = "MANAGER_API", Category2.MANAGER_CLIENT_LOGGER = "MANAGER_CLIENT-LOGGER", Category2.MANAGER_CHANNELS = "MANAGER_CHANNELS", Category2.MANAGER_CORE_EVENTS = "MANAGER_CORE-EVENTS", Category2.MANAGER_ROUTER = "MANAGER_ROUTER", Category2.MANAGER_THEMING = "MANAGER_THEMING", Category2))(Category || {}), ProviderDoesNotExtendBaseProviderError = class extends StorybookError {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,26 +13,26 @@ import {
|
|
|
13
13
|
BROWSER_TARGETS,
|
|
14
14
|
NODE_TARGET,
|
|
15
15
|
SUPPORTED_FEATURES
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-UIW2C2AI.js";
|
|
17
17
|
import {
|
|
18
18
|
require_build
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-BPLKNOG7.js";
|
|
20
20
|
import {
|
|
21
21
|
resolveModulePath,
|
|
22
22
|
resolvePackageDir
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-MJEVYN6O.js";
|
|
24
24
|
import {
|
|
25
25
|
join,
|
|
26
26
|
parse
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-RJ6MVIQ7.js";
|
|
28
28
|
import {
|
|
29
29
|
slash
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-LOJ6VLWV.js";
|
|
31
31
|
import {
|
|
32
32
|
__commonJS,
|
|
33
33
|
__require,
|
|
34
34
|
__toESM
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-TUFR2XYI.js";
|
|
36
36
|
|
|
37
37
|
// ../../node_modules/ejs/lib/utils.js
|
|
38
38
|
var require_utils = __commonJS({
|
|
@@ -1153,6 +1153,7 @@ var exports_default = {
|
|
|
1153
1153
|
"FORCE_REMOUNT",
|
|
1154
1154
|
"FORCE_RE_RENDER",
|
|
1155
1155
|
"GLOBALS_UPDATED",
|
|
1156
|
+
"MANAGER_INERT_ATTRIBUTE_CHANGED",
|
|
1156
1157
|
"NAVIGATE_URL",
|
|
1157
1158
|
"OPEN_IN_EDITOR_REQUEST",
|
|
1158
1159
|
"OPEN_IN_EDITOR_RESPONSE",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.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-TUFR2XYI.js";
|
|
13
13
|
|
|
14
14
|
// ../../node_modules/camelcase/index.js
|
|
15
15
|
var UPPERCASE = /[\p{Lu}]/u, LOWERCASE = /[\p{Ll}]/u, LEADING_CAPITAL = /^[\p{Lu}](?![\p{Lu}])/gu, IDENTIFIER = /([\p{Alpha}\p{N}_]|$)/u, SEPARATORS = /[_.\- ]+/, LEADING_SEPARATORS = new RegExp("^" + SEPARATORS.source), SEPARATORS_AND_IDENTIFIER = new RegExp(SEPARATORS.source + IDENTIFIER.source, "gu"), NUMBERS_AND_IDENTIFIER = new RegExp("\\d+" + IDENTIFIER.source, "gu"), preserveCamelCase = (string, toLowerCase, toUpperCase, preserveConsecutiveUppercase2) => {
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.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-J7VMFLRZ.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-53QZPC5B.js";
|
|
18
18
|
import {
|
|
19
19
|
require_picocolors
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-Q2N5EUMK.js";
|
|
21
21
|
import {
|
|
22
22
|
__toESM
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-TUFR2XYI.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,
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
|
|
13
|
+
// src/common/versions.ts
|
|
14
|
+
var versions_default = {
|
|
15
|
+
"@storybook/addon-a11y": "10.2.0-alpha.5",
|
|
16
|
+
"@storybook/addon-docs": "10.2.0-alpha.5",
|
|
17
|
+
"@storybook/addon-links": "10.2.0-alpha.5",
|
|
18
|
+
"@storybook/addon-onboarding": "10.2.0-alpha.5",
|
|
19
|
+
"storybook-addon-pseudo-states": "10.2.0-alpha.5",
|
|
20
|
+
"@storybook/addon-themes": "10.2.0-alpha.5",
|
|
21
|
+
"@storybook/addon-vitest": "10.2.0-alpha.5",
|
|
22
|
+
"@storybook/builder-vite": "10.2.0-alpha.5",
|
|
23
|
+
"@storybook/builder-webpack5": "10.2.0-alpha.5",
|
|
24
|
+
storybook: "10.2.0-alpha.5",
|
|
25
|
+
"@storybook/angular": "10.2.0-alpha.5",
|
|
26
|
+
"@storybook/ember": "10.2.0-alpha.5",
|
|
27
|
+
"@storybook/html-vite": "10.2.0-alpha.5",
|
|
28
|
+
"@storybook/nextjs": "10.2.0-alpha.5",
|
|
29
|
+
"@storybook/nextjs-vite": "10.2.0-alpha.5",
|
|
30
|
+
"@storybook/preact-vite": "10.2.0-alpha.5",
|
|
31
|
+
"@storybook/react-native-web-vite": "10.2.0-alpha.5",
|
|
32
|
+
"@storybook/react-vite": "10.2.0-alpha.5",
|
|
33
|
+
"@storybook/react-webpack5": "10.2.0-alpha.5",
|
|
34
|
+
"@storybook/server-webpack5": "10.2.0-alpha.5",
|
|
35
|
+
"@storybook/svelte-vite": "10.2.0-alpha.5",
|
|
36
|
+
"@storybook/sveltekit": "10.2.0-alpha.5",
|
|
37
|
+
"@storybook/vue3-vite": "10.2.0-alpha.5",
|
|
38
|
+
"@storybook/web-components-vite": "10.2.0-alpha.5",
|
|
39
|
+
sb: "10.2.0-alpha.5",
|
|
40
|
+
"@storybook/cli": "10.2.0-alpha.5",
|
|
41
|
+
"@storybook/codemod": "10.2.0-alpha.5",
|
|
42
|
+
"@storybook/core-webpack": "10.2.0-alpha.5",
|
|
43
|
+
"create-storybook": "10.2.0-alpha.5",
|
|
44
|
+
"@storybook/csf-plugin": "10.2.0-alpha.5",
|
|
45
|
+
"eslint-plugin-storybook": "10.2.0-alpha.5",
|
|
46
|
+
"@storybook/react-dom-shim": "10.2.0-alpha.5",
|
|
47
|
+
"@storybook/preset-create-react-app": "10.2.0-alpha.5",
|
|
48
|
+
"@storybook/preset-react-webpack": "10.2.0-alpha.5",
|
|
49
|
+
"@storybook/preset-server-webpack": "10.2.0-alpha.5",
|
|
50
|
+
"@storybook/html": "10.2.0-alpha.5",
|
|
51
|
+
"@storybook/preact": "10.2.0-alpha.5",
|
|
52
|
+
"@storybook/react": "10.2.0-alpha.5",
|
|
53
|
+
"@storybook/server": "10.2.0-alpha.5",
|
|
54
|
+
"@storybook/svelte": "10.2.0-alpha.5",
|
|
55
|
+
"@storybook/vue3": "10.2.0-alpha.5",
|
|
56
|
+
"@storybook/web-components": "10.2.0-alpha.5"
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export {
|
|
60
|
+
versions_default
|
|
61
|
+
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.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-TUFR2XYI.js";
|
|
15
15
|
|
|
16
16
|
// ../../node_modules/ts-dedent/dist/index.js
|
|
17
17
|
var require_dist = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.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-APNNQRRU.js";
|
|
17
17
|
import {
|
|
18
18
|
resolvePackageDir
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-MJEVYN6O.js";
|
|
20
20
|
import {
|
|
21
21
|
require_dist
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-53QZPC5B.js";
|
|
23
23
|
import {
|
|
24
24
|
babelParse,
|
|
25
25
|
recast,
|
|
26
26
|
traverse,
|
|
27
27
|
types
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-TX3LEYMY.js";
|
|
29
29
|
import {
|
|
30
30
|
require_picocolors
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-Q2N5EUMK.js";
|
|
32
32
|
import {
|
|
33
33
|
__commonJS,
|
|
34
34
|
__require,
|
|
35
35
|
__toESM
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-TUFR2XYI.js";
|
|
37
37
|
|
|
38
38
|
// ../../node_modules/esprima/dist/esprima.js
|
|
39
39
|
var require_esprima = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.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_9jhkjsyjv7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.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_2512dr0mzhu.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__require
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-TUFR2XYI.js";
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/totalist/sync/index.js
|
|
18
18
|
var require_sync = __commonJS({
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.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-Q2N5EUMK.js";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
17
17
|
__export,
|
|
18
18
|
__require,
|
|
19
19
|
__toESM
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-TUFR2XYI.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_9jhkjsyjv7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
import {
|
|
13
|
+
any
|
|
14
|
+
} from "./chunk-APNNQRRU.js";
|
|
15
|
+
|
|
16
|
+
// src/cli/detect.ts
|
|
17
|
+
async function detectPnp() {
|
|
18
|
+
return !!any([".pnp.js", ".pnp.cjs"]);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
detectPnp
|
|
23
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
|
|
13
|
+
// package.json
|
|
14
|
+
var version = "10.2.0-alpha.5";
|
|
15
|
+
|
|
16
|
+
export {
|
|
17
|
+
version
|
|
18
|
+
};
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
|
|
1
13
|
// src/storybook-error.ts
|
|
2
14
|
function parseErrorCode({
|
|
3
15
|
code,
|
|
@@ -31,7 +43,26 @@ var StorybookError = class _StorybookError extends Error {
|
|
|
31
43
|
* user.
|
|
32
44
|
*/
|
|
33
45
|
this.isHandledError = !1;
|
|
34
|
-
|
|
46
|
+
/**
|
|
47
|
+
* A collection of sub errors which relate to a parent error.
|
|
48
|
+
*
|
|
49
|
+
* Sub-errors are used to represent multiple related errors that occurred together. When a
|
|
50
|
+
* StorybookError with sub-errors is sent to telemetry, both the parent error and each sub-error
|
|
51
|
+
* are sent as separate telemetry events. This allows for better error tracking and debugging.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
*
|
|
55
|
+
* ```ts
|
|
56
|
+
* const error1 = new SomeError();
|
|
57
|
+
* const error2 = new AnotherError();
|
|
58
|
+
* const parentError = new ParentError({
|
|
59
|
+
* // ... other props
|
|
60
|
+
* subErrors: [error1, error2],
|
|
61
|
+
* });
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
this.subErrors = [];
|
|
65
|
+
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 ?? [];
|
|
35
66
|
}
|
|
36
67
|
get fullErrorCode() {
|
|
37
68
|
return parseErrorCode({ code: this.code, category: this.category });
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.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_2512dr0mzhu.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__toESM
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-TUFR2XYI.js";
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/balanced-match/index.js
|
|
18
18
|
var require_balanced_match = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|