storybook 10.2.0-alpha.2 → 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/_browser-chunks/{chunk-FQ7SLVLR.js → chunk-JVRDBUUP.js} +20 -1
- package/dist/_browser-chunks/{chunk-MOYJJEXA.js → chunk-Q5RYDXT3.js} +3 -4
- 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-ZK4QXZNX.js → builder-manager-UYH5WXWQ.js} +12 -12
- package/dist/_node-chunks/{camelcase-QWQG7I72.js → camelcase-VC2MI4D3.js} +7 -7
- package/dist/_node-chunks/{chunk-TOXVUAH2.js → chunk-2LVUTXDF.js} +6 -6
- package/dist/_node-chunks/chunk-2ZQ6Y2UX.js +18 -0
- package/dist/_node-chunks/{chunk-QFSK4B7R.js → chunk-3SB46FMB.js} +8 -8
- package/dist/_node-chunks/{chunk-WUKWNPSQ.js → chunk-5IKN22PK.js} +9 -9
- package/dist/_node-chunks/{chunk-UWJ4BOOL.js → chunk-5Y2B5Y2I.js} +9 -9
- package/dist/_node-chunks/{chunk-2AFVBCGF.js → chunk-6DSSKDEB.js} +6 -6
- package/dist/_node-chunks/{chunk-I5TOD3AY.js → chunk-6RZ6ESPF.js} +12 -12
- package/dist/_node-chunks/{chunk-WOS3OQVT.js → chunk-6XCE5DKF.js} +26 -7
- package/dist/_node-chunks/{chunk-XFU23B4C.js → chunk-AEF4OCMB.js} +7 -7
- package/dist/_node-chunks/chunk-ATFXKLVA.js +61 -0
- package/dist/_node-chunks/{chunk-RGQC4G3L.js → chunk-BRVASHE4.js} +21 -17
- package/dist/_node-chunks/{chunk-GKEAARBQ.js → chunk-BXGPI53U.js} +6 -6
- package/dist/_node-chunks/{chunk-OV2CP4VV.js → chunk-CSLYLE5Z.js} +6 -6
- package/dist/_node-chunks/{chunk-6OZRMRVO.js → chunk-EGGWMXFM.js} +7 -7
- package/dist/_node-chunks/{chunk-FZFZ5TOM.js → chunk-HATD2DIT.js} +6 -6
- package/dist/_node-chunks/{chunk-DWVHBQGR.js → chunk-I6C74YGE.js} +8 -8
- package/dist/_node-chunks/chunk-IXZ54TG6.js +20 -0
- package/dist/_node-chunks/chunk-JUQFZI7H.js +23 -0
- package/dist/_node-chunks/{chunk-KVNLJSAB.js → chunk-KLBUL53W.js} +7 -7
- package/dist/_node-chunks/{chunk-URBB5EGY.js → chunk-NCENIJPW.js} +7 -7
- package/dist/_node-chunks/{chunk-NKOHF7TQ.js → chunk-OBFKPAHB.js} +72 -11
- package/dist/_node-chunks/{chunk-5VZMCPTH.js → chunk-OW656GJO.js} +43 -27
- package/dist/_node-chunks/{chunk-Q5ZQH2OQ.js → chunk-S3WG5D7I.js} +7 -7
- package/dist/_node-chunks/{chunk-CW7HJRCY.js → chunk-THYQIUTI.js} +7 -7
- package/dist/_node-chunks/{chunk-EXZXVBZO.js → chunk-VHJPAZFZ.js} +7 -7
- package/dist/_node-chunks/{chunk-VJPI73BB.js → chunk-VJ5C7NTM.js} +59 -26
- package/dist/_node-chunks/{chunk-HMFROKHU.js → chunk-WI5ZJAAJ.js} +7 -7
- package/dist/_node-chunks/{chunk-R2J3OB3H.js → chunk-X6TQDZZW.js} +6 -6
- package/dist/_node-chunks/{dist-UBFMIJZC.js → dist-ZK2DO62Y.js} +9 -9
- package/dist/_node-chunks/{globby-VD3CGPVI.js → globby-3NVGNGRX.js} +9 -9
- package/dist/_node-chunks/{lib-MMJB47J3.js → lib-ALOTNL3B.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-3J2G7NZZ.js → mdx-N42X6CFJ-AVHGVFIO.js} +8 -8
- package/dist/_node-chunks/{p-limit-SOBWTEVH.js → p-limit-JMHEGI5E.js} +7 -7
- package/dist/babel/index.js +10 -10
- package/dist/bin/core.js +24 -18
- 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 +35 -35
- 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/instrumenter/index.js +1 -1
- package/dist/manager/globals-runtime.js +3122 -3018
- 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.d.ts +1 -1
- package/dist/node-logger/index.js +9 -9
- package/dist/preview/runtime.js +727 -623
- 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/dist/test/index.js +370 -286
- package/dist/types/index.d.ts +3 -1
- package/package.json +1 -1
- package/dist/_node-chunks/chunk-CLCLRZYL.js +0 -61
- package/dist/_node-chunks/chunk-DF3QP62W.js +0 -18
- package/dist/_node-chunks/chunk-EVBCPGQO.js +0 -20
- package/dist/_node-chunks/chunk-PCMFKXWQ.js +0 -23
|
@@ -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);
|
|
@@ -677,4 +677,4 @@ declare const once: {
|
|
|
677
677
|
};
|
|
678
678
|
declare const deprecate: (message: string) => void;
|
|
679
679
|
|
|
680
|
-
export { CLI_COLORS, ConsoleLogger, type SpinnerInstance, StyledConsoleLogger, type TaskLogInstance, colors, createHyperlink, deprecate, npmlog as instance, logTracker, logger, once, prompt, protectUrls };
|
|
680
|
+
export { CLI_COLORS, ConsoleLogger, type LogLevel, type SpinnerInstance, StyledConsoleLogger, type TaskLogInstance, colors, createHyperlink, deprecate, npmlog as instance, logTracker, logger, once, prompt, protectUrls };
|
|
@@ -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,
|