storybook 10.2.0-alpha.1 → 10.2.0-alpha.10
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/{Color-TNPFN3FC.js → Color-XESOIGZP.js} +9 -568
- package/dist/_browser-chunks/{WithTooltip-IO6J4KBT.js → WithTooltip-65CFNBJE.js} +70 -70
- package/dist/_browser-chunks/{chunk-45UGUKRX.js → chunk-242VQQM5.js} +1 -1
- package/dist/_browser-chunks/{chunk-JP7NCOJX.js → chunk-3LY4VQVK.js} +1 -1
- package/dist/_browser-chunks/{chunk-VYJQ7RU5.js → chunk-G4M6MXF4.js} +31 -27
- package/dist/_browser-chunks/{chunk-BRX2HXH7.js → chunk-IH6QJILI.js} +1 -1
- package/dist/_browser-chunks/{chunk-AS2HQEYC.js → chunk-IWQGIXJS.js} +1 -1
- package/dist/_browser-chunks/{chunk-3IAH5M2U.js → chunk-IYCKG66Y.js} +5 -5
- package/dist/_browser-chunks/{chunk-UD6FQLAF.js → chunk-JK6U3MQW.js} +3 -3
- package/dist/_browser-chunks/{chunk-FQ7SLVLR.js → chunk-JVRDBUUP.js} +20 -1
- package/dist/_browser-chunks/{chunk-GFLS4VP3.js → chunk-LCHBOIHN.js} +6 -6
- package/dist/_browser-chunks/{chunk-CHUV5WSW.js → chunk-LE2LTDW3.js} +1 -1
- package/dist/_browser-chunks/{chunk-IPA5A322.js → chunk-MEXTPDJG.js} +1 -1
- package/dist/_browser-chunks/{chunk-XJNX76GA.js → chunk-NQJGOFZV.js} +4 -4
- package/dist/_browser-chunks/chunk-NZMVUW5T.js +7 -0
- package/dist/_browser-chunks/{chunk-2XZMBGTA.js → chunk-POMIZRJL.js} +3 -3
- package/dist/_browser-chunks/{chunk-RP5RXKFU.js → chunk-Q5RYDXT3.js} +38 -30
- package/dist/_browser-chunks/{chunk-SS2NHR7W.js → chunk-RBABWY22.js} +18 -18
- package/dist/_browser-chunks/{chunk-AXG2BOBL.js → chunk-S6TK43XQ.js} +10 -10
- package/dist/_browser-chunks/{chunk-AIOS4NGK.js → chunk-SWJP5COI.js} +11 -11
- package/dist/_browser-chunks/{chunk-H6XK3RSC.js → chunk-UAYGIC3L.js} +6 -6
- package/dist/_browser-chunks/{chunk-YKE5S47A.js → chunk-V2VKKSMQ.js} +18 -18
- package/dist/_browser-chunks/{chunk-GFY5R5EY.js → chunk-V5NV5R37.js} +1 -1
- package/dist/_browser-chunks/chunk-VIJ7SQRO.js +568 -0
- package/dist/_browser-chunks/{chunk-3OXGAGBE.js → chunk-XLJZ7AOP.js} +14 -14
- package/dist/_browser-chunks/{chunk-P4F4UVXX.js → chunk-YKABRMAI.js} +15 -15
- package/dist/_browser-chunks/{chunk-WJYERY3R.js → chunk-ZCFV7BZB.js} +2 -2
- package/dist/_browser-chunks/{formatter-QJ4M4OGQ.js → formatter-EIJCOSYU.js} +2 -2
- package/dist/_browser-chunks/{syntaxhighlighter-IQDEPFLK.js → syntaxhighlighter-ED5Y7EFY.js} +119 -119
- package/dist/_node-chunks/{builder-manager-LXL5N6M5.js → builder-manager-IL56SHZF.js} +23 -22
- package/dist/_node-chunks/camelcase-P3NIWBZX.js +62 -0
- package/dist/_node-chunks/{chunk-SR5ZYD7K.js → chunk-BP66TAYC.js} +8 -8
- package/dist/_node-chunks/{chunk-R3WYNAT5.js → chunk-D3YJHXPC.js} +6 -6
- package/dist/_node-chunks/{chunk-5GNBLJKS.js → chunk-E2KSZELU.js} +8 -8
- package/dist/_node-chunks/{chunk-KXDU466E.js → chunk-EKU7ASGO.js} +31 -31
- package/dist/_node-chunks/chunk-GLYH3TSV.js +61 -0
- package/dist/_node-chunks/{chunk-GOOBGRAV.js → chunk-JXL37VS7.js} +34 -24
- package/dist/_node-chunks/{chunk-4BQMSZKI.js → chunk-KH2A547Y.js} +165 -191
- package/dist/_node-chunks/{chunk-77APSTTM.js → chunk-KP3IIE5P.js} +8 -9
- package/dist/_node-chunks/{chunk-5NWCBUGD.js → chunk-LZ5NNY6S.js} +6 -6
- package/dist/_node-chunks/{chunk-AJUO2ZU3.js → chunk-MLCI5FPI.js} +9 -9
- package/dist/_node-chunks/{chunk-CLNMK7MP.js → chunk-OVKHHS4W.js} +5434 -1625
- package/dist/_node-chunks/{chunk-ET4VMMZG.js → chunk-OZHIDIRL.js} +77 -16
- package/dist/_node-chunks/{chunk-TX77W2KY.js → chunk-POAHHCVK.js} +597 -593
- package/dist/_node-chunks/chunk-Q6PDB4Y6.js +126 -0
- package/dist/_node-chunks/{chunk-VFTNRF5X.js → chunk-QF3YWFYM.js} +17 -17
- package/dist/_node-chunks/{chunk-KMTK5W6O.js → chunk-RGJIQDLW.js} +48 -26
- package/dist/_node-chunks/{chunk-FTR6MHOX.js → chunk-SME7252C.js} +59 -147
- package/dist/_node-chunks/{chunk-LEDV47V2.js → chunk-TAETXAN6.js} +15 -15
- package/dist/_node-chunks/chunk-TPSZ4QDT.js +20 -0
- package/dist/_node-chunks/{chunk-PGFQADZC.js → chunk-WULYWBBT.js} +7 -7
- package/dist/_node-chunks/{chunk-JYMZJCZ7.js → chunk-XBDIQU4P.js} +62 -124
- package/dist/_node-chunks/chunk-XXOA6ULE.js +18 -0
- package/dist/_node-chunks/{chunk-ZI2RAI3I.js → chunk-YCQRVBE4.js} +26 -7
- package/dist/_node-chunks/{chunk-TP6ICLTL.js → chunk-YELE6V4D.js} +6 -6
- package/dist/_node-chunks/{chunk-GYZQMMTN.js → chunk-Z2CJCEHN.js} +9 -9
- package/dist/_node-chunks/{chunk-F7377GT2.js → chunk-Z2ETF7EI.js} +111 -38
- package/dist/_node-chunks/chunk-ZHSAQXJF.js +23 -0
- package/dist/_node-chunks/{dist-HGQ5R6JU.js → dist-5MXCD6KF.js} +10 -10
- package/dist/_node-chunks/{globby-5XJTXKUJ.js → globby-322GM5CY.js} +155 -164
- package/dist/_node-chunks/{lib-XNLTS2RI.js → lib-IXZT5UQX.js} +16 -16
- package/dist/_node-chunks/{mdx-N42X6CFJ-7WF3QWVO.js → mdx-N42X6CFJ-DBPHTSPN.js} +11 -11
- package/dist/_node-chunks/{p-limit-RBKYTJKF.js → p-limit-TLN4WCPA.js} +19 -15
- package/dist/babel/index.js +10 -10
- package/dist/bin/core.js +40 -34
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +14 -11
- package/dist/channels/index.js +3 -3
- package/dist/cli/index.d.ts +1330 -250
- package/dist/cli/index.js +18 -18
- package/dist/common/index.d.ts +1344 -289
- package/dist/common/index.js +22 -22
- package/dist/components/index.d.ts +9 -2
- package/dist/components/index.js +339 -317
- package/dist/core-events/index.d.ts +4 -2
- package/dist/core-events/index.js +4 -2
- package/dist/core-server/index.d.ts +71 -2
- package/dist/core-server/index.js +3381 -3529
- package/dist/core-server/presets/common-manager.css +2 -2
- package/dist/core-server/presets/common-manager.js +93 -65
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +86 -118
- package/dist/csf/index.d.ts +41 -11
- package/dist/csf/index.js +46 -39
- package/dist/csf-tools/index.js +9 -9
- package/dist/docs-tools/index.js +5 -5
- package/dist/instrumenter/index.js +1 -1
- package/dist/manager/globals-runtime.js +9402 -7204
- package/dist/manager/runtime.js +186 -143
- package/dist/manager-api/index.js +34 -26
- package/dist/manager-errors.d.ts +24 -0
- package/dist/manager-errors.js +2 -2
- package/dist/mocking-utils/index.js +14 -14
- package/dist/node-logger/index.d.ts +1456 -111
- package/dist/node-logger/index.js +9 -9
- package/dist/preview/runtime.js +4608 -2436
- package/dist/preview-api/index.js +12 -12
- package/dist/preview-errors.d.ts +24 -0
- package/dist/preview-errors.js +3 -3
- package/dist/router/index.js +11 -11
- package/dist/server-errors.d.ts +59 -3
- package/dist/server-errors.js +22 -11
- package/dist/telemetry/index.d.ts +10 -3
- package/dist/telemetry/index.js +27 -25
- package/dist/test/index.js +3237 -1653
- package/dist/theming/create.js +3 -3
- package/dist/theming/index.d.ts +5 -5
- package/dist/theming/index.js +38 -38
- package/dist/types/index.d.ts +12 -6
- package/dist/viewport/index.d.ts +3 -3
- package/package.json +27 -33
- package/dist/_browser-chunks/chunk-EZSQOHRI.js +0 -18
- package/dist/_browser-chunks/chunk-QKODTO7K.js +0 -7
- package/dist/_node-chunks/camelcase-64II7H4U.js +0 -37
- package/dist/_node-chunks/chunk-4EZYJUAC.js +0 -70
- package/dist/_node-chunks/chunk-COQ27OZ3.js +0 -61
- package/dist/_node-chunks/chunk-MC2R4DSD.js +0 -20
- package/dist/_node-chunks/chunk-NEENMS4J.js +0 -18
- package/dist/_node-chunks/chunk-VR5LMO3F.js +0 -72
- package/dist/_node-chunks/chunk-XEPVDCRL.js +0 -23
|
@@ -48,23 +48,23 @@ import {
|
|
|
48
48
|
useStoryContext,
|
|
49
49
|
userOrAutoTitle,
|
|
50
50
|
userOrAutoTitleFromSpecifier
|
|
51
|
-
} from "../_browser-chunks/chunk-
|
|
51
|
+
} from "../_browser-chunks/chunk-RBABWY22.js";
|
|
52
52
|
import {
|
|
53
53
|
pauseAnimations,
|
|
54
54
|
waitForAnimations
|
|
55
|
-
} from "../_browser-chunks/chunk-
|
|
56
|
-
import "../_browser-chunks/chunk-
|
|
55
|
+
} from "../_browser-chunks/chunk-MEXTPDJG.js";
|
|
56
|
+
import "../_browser-chunks/chunk-XLJZ7AOP.js";
|
|
57
57
|
import {
|
|
58
58
|
combineParameters
|
|
59
|
-
} from "../_browser-chunks/chunk-
|
|
60
|
-
import "../_browser-chunks/chunk-
|
|
61
|
-
import "../_browser-chunks/chunk-
|
|
62
|
-
import "../_browser-chunks/chunk-
|
|
63
|
-
import "../_browser-chunks/chunk-
|
|
64
|
-
import "../_browser-chunks/chunk-
|
|
65
|
-
import "../_browser-chunks/chunk-
|
|
66
|
-
import "../_browser-chunks/chunk-
|
|
67
|
-
import "../_browser-chunks/chunk-
|
|
59
|
+
} from "../_browser-chunks/chunk-G4M6MXF4.js";
|
|
60
|
+
import "../_browser-chunks/chunk-IYCKG66Y.js";
|
|
61
|
+
import "../_browser-chunks/chunk-NZMVUW5T.js";
|
|
62
|
+
import "../_browser-chunks/chunk-IWQGIXJS.js";
|
|
63
|
+
import "../_browser-chunks/chunk-V2VKKSMQ.js";
|
|
64
|
+
import "../_browser-chunks/chunk-SWJP5COI.js";
|
|
65
|
+
import "../_browser-chunks/chunk-LCHBOIHN.js";
|
|
66
|
+
import "../_browser-chunks/chunk-ZCFV7BZB.js";
|
|
67
|
+
import "../_browser-chunks/chunk-3LY4VQVK.js";
|
|
68
68
|
import "../_browser-chunks/chunk-A242L54C.js";
|
|
69
69
|
export {
|
|
70
70
|
DocsContext,
|
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,9 +20,9 @@ import {
|
|
|
20
20
|
StoryStoreAccessedBeforeInitializationError,
|
|
21
21
|
UnknownArgTypesError,
|
|
22
22
|
UnsupportedViewportDimensionError
|
|
23
|
-
} from "./_browser-chunks/chunk-
|
|
24
|
-
import "./_browser-chunks/chunk-
|
|
25
|
-
import "./_browser-chunks/chunk-
|
|
23
|
+
} from "./_browser-chunks/chunk-POMIZRJL.js";
|
|
24
|
+
import "./_browser-chunks/chunk-JVRDBUUP.js";
|
|
25
|
+
import "./_browser-chunks/chunk-3LY4VQVK.js";
|
|
26
26
|
import "./_browser-chunks/chunk-A242L54C.js";
|
|
27
27
|
export {
|
|
28
28
|
CalledExtractOnStoreError,
|
package/dist/router/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
require_main
|
|
3
|
-
} from "../_browser-chunks/chunk-
|
|
3
|
+
} from "../_browser-chunks/chunk-XLJZ7AOP.js";
|
|
4
4
|
import {
|
|
5
5
|
isEqual
|
|
6
|
-
} from "../_browser-chunks/chunk-
|
|
7
|
-
import "../_browser-chunks/chunk-
|
|
6
|
+
} from "../_browser-chunks/chunk-IYCKG66Y.js";
|
|
7
|
+
import "../_browser-chunks/chunk-NZMVUW5T.js";
|
|
8
8
|
import {
|
|
9
9
|
isPlainObject
|
|
10
|
-
} from "../_browser-chunks/chunk-
|
|
10
|
+
} from "../_browser-chunks/chunk-LCHBOIHN.js";
|
|
11
11
|
import {
|
|
12
12
|
require_memoizerific
|
|
13
|
-
} from "../_browser-chunks/chunk-
|
|
13
|
+
} from "../_browser-chunks/chunk-ZCFV7BZB.js";
|
|
14
14
|
import {
|
|
15
15
|
dedent
|
|
16
|
-
} from "../_browser-chunks/chunk-
|
|
16
|
+
} from "../_browser-chunks/chunk-3LY4VQVK.js";
|
|
17
17
|
import {
|
|
18
18
|
__toESM
|
|
19
19
|
} from "../_browser-chunks/chunk-A242L54C.js";
|
|
@@ -102,13 +102,13 @@ var splitPathRegex = /\/([^/]+)\/(?:(.*)_)?([^/]+)?/, parsePath = (0, import_mem
|
|
|
102
102
|
import React3, { useCallback as useCallback3 } from "react";
|
|
103
103
|
import { global } from "@storybook/global";
|
|
104
104
|
|
|
105
|
-
//
|
|
105
|
+
// ../../node_modules/react-router-dom/dist/index.js
|
|
106
106
|
import * as React2 from "react";
|
|
107
107
|
|
|
108
|
-
//
|
|
108
|
+
// ../../node_modules/react-router/dist/index.js
|
|
109
109
|
import * as React from "react";
|
|
110
110
|
|
|
111
|
-
//
|
|
111
|
+
// ../../node_modules/@remix-run/router/dist/router.js
|
|
112
112
|
function _extends() {
|
|
113
113
|
return _extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
114
114
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -358,7 +358,7 @@ function isRouteErrorResponse(error) {
|
|
|
358
358
|
var validMutationMethodsArr = ["post", "put", "patch", "delete"], validMutationMethods = new Set(validMutationMethodsArr), validRequestMethodsArr = ["get", ...validMutationMethodsArr], validRequestMethods = new Set(validRequestMethodsArr);
|
|
359
359
|
var UNSAFE_DEFERRED_SYMBOL = Symbol("deferred");
|
|
360
360
|
|
|
361
|
-
//
|
|
361
|
+
// ../../node_modules/react-router/dist/index.js
|
|
362
362
|
function _extends2() {
|
|
363
363
|
return _extends2 = Object.assign ? Object.assign.bind() : function(target) {
|
|
364
364
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -607,7 +607,7 @@ var AwaitRenderStatus = (function(AwaitRenderStatus2) {
|
|
|
607
607
|
})(AwaitRenderStatus || {}), neverSettledPromise = new Promise(() => {
|
|
608
608
|
});
|
|
609
609
|
|
|
610
|
-
//
|
|
610
|
+
// ../../node_modules/react-router-dom/dist/index.js
|
|
611
611
|
function _extends3() {
|
|
612
612
|
return _extends3 = Object.assign ? Object.assign.bind() : function(target) {
|
|
613
613
|
for (var i = 1; i < arguments.length; i++) {
|
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_1qalasm8z9n from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_1qalasm8z9n from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_1qalasm8z9n from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_1qalasm8z9n.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_1qalasm8z9n.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_1qalasm8z9n.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-OZHIDIRL.js";
|
|
50
|
+
import {
|
|
51
|
+
StorybookError
|
|
52
|
+
} from "./_node-chunks/chunk-YCQRVBE4.js";
|
|
53
|
+
import "./_node-chunks/chunk-MLCI5FPI.js";
|
|
54
|
+
import "./_node-chunks/chunk-Z2CJCEHN.js";
|
|
55
|
+
import "./_node-chunks/chunk-LZ5NNY6S.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,
|
|
@@ -32,7 +32,7 @@ declare const monorepoConfigs: {
|
|
|
32
32
|
};
|
|
33
33
|
type MonorepoType = keyof typeof monorepoConfigs | 'Workspaces' | undefined;
|
|
34
34
|
|
|
35
|
-
type EventType = 'boot' | 'add' | 'dev' | 'build' | 'index' | 'upgrade' | 'multi-upgrade' | 'init' | 'init-step' | 'scaffolded-empty' | 'browser' | 'canceled' | 'error' | 'error-metadata' | 'version-update' | 'core-config' | 'remove' | 'save-story' | 'create-new-story-file' | 'create-new-story-file-search' | 'open-in-editor' | 'testing-module-watch-mode' | 'testing-module-completed-report' | 'testing-module-crash-report' | 'addon-test' | 'test-run' | 'addon-onboarding' | 'onboarding-survey' | 'onboarding-checklist' | 'mocking' | 'automigrate' | 'migrate' | 'preview-first-load' | 'doctor';
|
|
35
|
+
type EventType = 'boot' | 'add' | 'dev' | 'build' | 'index' | 'upgrade' | 'multi-upgrade' | 'init' | 'init-step' | 'scaffolded-empty' | 'browser' | 'canceled' | 'error' | 'error-metadata' | 'version-update' | 'core-config' | 'remove' | 'save-story' | 'create-new-story-file' | 'create-new-story-file-search' | 'open-in-editor' | 'testing-module-watch-mode' | 'testing-module-completed-report' | 'testing-module-crash-report' | 'addon-test' | 'test-run' | 'addon-onboarding' | 'onboarding-survey' | 'onboarding-checklist-muted' | 'onboarding-checklist-status' | 'mocking' | 'automigrate' | 'migrate' | 'preview-first-load' | 'doctor';
|
|
36
36
|
interface Dependency {
|
|
37
37
|
version: string | undefined;
|
|
38
38
|
versionSpecifier?: string;
|
|
@@ -166,7 +166,14 @@ interface UpgradeSummary {
|
|
|
166
166
|
eventId?: string;
|
|
167
167
|
sessionId?: string;
|
|
168
168
|
}
|
|
169
|
-
|
|
169
|
+
interface CacheEntry {
|
|
170
|
+
timestamp: number;
|
|
171
|
+
body: TelemetryEvent;
|
|
172
|
+
}
|
|
173
|
+
declare const getLastEvents: () => Promise<Record<EventType, CacheEntry>>;
|
|
174
|
+
declare const getPrecedingUpgrade: (events?: Partial<Record<EventType, CacheEntry>> | undefined) => Promise<UpgradeSummary | undefined>;
|
|
175
|
+
|
|
176
|
+
declare const getSessionId: () => Promise<string>;
|
|
170
177
|
|
|
171
178
|
declare const addToGlobalContext: (key: string, value: any) => void;
|
|
172
179
|
|
|
@@ -174,4 +181,4 @@ declare const addToGlobalContext: (key: string, value: any) => void;
|
|
|
174
181
|
declare const isExampleStoryId: (storyId: string) => boolean;
|
|
175
182
|
declare const telemetry: (eventType: EventType, payload?: Payload, options?: Partial<Options>) => Promise<void>;
|
|
176
183
|
|
|
177
|
-
export { type Context, type Dependency, ErrorCollector, type EventType, type IErrorWithStdErrAndStdOut, type InitPayload, type Options, type Payload, type StorybookAddon, type StorybookMetadata, type TelemetryData, type TelemetryEvent, addToGlobalContext, cleanPaths, computeStorybookMetadata, getPrecedingUpgrade, getStorybookMetadata, isExampleStoryId, metaFrameworks, oneWayHash, removeAnsiEscapeCodes, sanitizeAddonName, sanitizeError, telemetry };
|
|
184
|
+
export { type CacheEntry, type Context, type Dependency, ErrorCollector, type EventType, type IErrorWithStdErrAndStdOut, type InitPayload, type Options, type Payload, type StorybookAddon, type StorybookMetadata, type TelemetryData, type TelemetryEvent, addToGlobalContext, cleanPaths, computeStorybookMetadata, getLastEvents, getPrecedingUpgrade, getSessionId, getStorybookMetadata, isExampleStoryId, metaFrameworks, oneWayHash, removeAnsiEscapeCodes, sanitizeAddonName, sanitizeError, telemetry };
|
package/dist/telemetry/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_1qalasm8z9n from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_1qalasm8z9n from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_1qalasm8z9n from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_1qalasm8z9n.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_1qalasm8z9n.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_1qalasm8z9n.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -14,6 +14,9 @@ import {
|
|
|
14
14
|
addToGlobalContext,
|
|
15
15
|
cleanPaths,
|
|
16
16
|
computeStorybookMetadata,
|
|
17
|
+
getLastEvents,
|
|
18
|
+
getPrecedingUpgrade,
|
|
19
|
+
getSessionId,
|
|
17
20
|
getStorybookMetadata,
|
|
18
21
|
isExampleStoryId,
|
|
19
22
|
metaFrameworks,
|
|
@@ -22,31 +25,30 @@ import {
|
|
|
22
25
|
sanitizeAddonName,
|
|
23
26
|
sanitizeError,
|
|
24
27
|
telemetry
|
|
25
|
-
} from "../_node-chunks/chunk-
|
|
26
|
-
import "../_node-chunks/chunk-
|
|
27
|
-
import "../_node-chunks/chunk-
|
|
28
|
-
import "../_node-chunks/chunk-
|
|
29
|
-
import "../_node-chunks/chunk-
|
|
30
|
-
import "../_node-chunks/chunk-
|
|
31
|
-
import
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
import "../_node-chunks/chunk-
|
|
35
|
-
import "../_node-chunks/chunk-
|
|
36
|
-
import "../_node-chunks/chunk-
|
|
37
|
-
import "../_node-chunks/chunk-
|
|
38
|
-
import "../_node-chunks/chunk-
|
|
39
|
-
import "../_node-chunks/chunk-
|
|
40
|
-
import "../_node-chunks/chunk-
|
|
41
|
-
import "../_node-chunks/chunk-AJUO2ZU3.js";
|
|
42
|
-
import "../_node-chunks/chunk-GYZQMMTN.js";
|
|
43
|
-
import "../_node-chunks/chunk-5NWCBUGD.js";
|
|
28
|
+
} from "../_node-chunks/chunk-Z2ETF7EI.js";
|
|
29
|
+
import "../_node-chunks/chunk-XXOA6ULE.js";
|
|
30
|
+
import "../_node-chunks/chunk-OVKHHS4W.js";
|
|
31
|
+
import "../_node-chunks/chunk-GLYH3TSV.js";
|
|
32
|
+
import "../_node-chunks/chunk-RGJIQDLW.js";
|
|
33
|
+
import "../_node-chunks/chunk-KH2A547Y.js";
|
|
34
|
+
import "../_node-chunks/chunk-QF3YWFYM.js";
|
|
35
|
+
import "../_node-chunks/chunk-Q6PDB4Y6.js";
|
|
36
|
+
import "../_node-chunks/chunk-YELE6V4D.js";
|
|
37
|
+
import "../_node-chunks/chunk-BP66TAYC.js";
|
|
38
|
+
import "../_node-chunks/chunk-WULYWBBT.js";
|
|
39
|
+
import "../_node-chunks/chunk-SME7252C.js";
|
|
40
|
+
import "../_node-chunks/chunk-TPSZ4QDT.js";
|
|
41
|
+
import "../_node-chunks/chunk-MLCI5FPI.js";
|
|
42
|
+
import "../_node-chunks/chunk-Z2CJCEHN.js";
|
|
43
|
+
import "../_node-chunks/chunk-LZ5NNY6S.js";
|
|
44
44
|
export {
|
|
45
45
|
ErrorCollector,
|
|
46
46
|
addToGlobalContext,
|
|
47
47
|
cleanPaths,
|
|
48
48
|
computeStorybookMetadata,
|
|
49
|
+
getLastEvents,
|
|
49
50
|
getPrecedingUpgrade,
|
|
51
|
+
getSessionId,
|
|
50
52
|
getStorybookMetadata,
|
|
51
53
|
isExampleStoryId,
|
|
52
54
|
metaFrameworks,
|