storybook 10.4.3 → 10.4.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-V5EFL4BW.js → chunk-FON5IJBZ.js} +8 -7
- package/dist/_node-chunks/{builder-manager-S4AMI67M.js → builder-manager-5MEJYN36.js} +13 -12
- package/dist/_node-chunks/{camelcase-EGNQ2JHN.js → camelcase-GAERL3PL.js} +7 -7
- package/dist/_node-chunks/{chunk-ZQ5NLTS2.js → chunk-2P3TQKKP.js} +19 -19
- package/dist/_node-chunks/chunk-47JL7C6G.js +20 -0
- package/dist/_node-chunks/{chunk-W2YN4DWA.js → chunk-5JUHF6LD.js} +12 -12
- package/dist/_node-chunks/{chunk-7NHIPC5Z.js → chunk-5NFZNFNE.js} +19 -19
- package/dist/_node-chunks/{chunk-7LMLRE2Q.js → chunk-7FDZXKDX.js} +9 -9
- package/dist/_node-chunks/{chunk-NP3B2HKL.js → chunk-7IV5W6W4.js} +7 -7
- package/dist/_node-chunks/{chunk-NU6RNHCQ.js → chunk-7RHTHE2L.js} +7 -7
- package/dist/_node-chunks/{chunk-HM6QFLRG.js → chunk-7RXSWV2F.js} +7 -7
- package/dist/_node-chunks/{chunk-Y5XIETER.js → chunk-B6YAKVGB.js} +6 -6
- package/dist/_node-chunks/{chunk-JL6WVRJP.js → chunk-BZLMDYBT.js} +7 -7
- package/dist/_node-chunks/{chunk-IROO3KK3.js → chunk-CF6XMT3V.js} +6 -6
- package/dist/_node-chunks/{chunk-SSZGIGV7.js → chunk-DS2RYKOF.js} +6 -6
- package/dist/_node-chunks/chunk-F2JWHUG3.js +84 -0
- package/dist/_node-chunks/{chunk-7HUVSFHY.js → chunk-FPG6QEHU.js} +6 -6
- package/dist/_node-chunks/{chunk-XAXODSDY.js → chunk-GBOT6YH3.js} +10 -10
- package/dist/_node-chunks/{chunk-DDXC5KYD.js → chunk-LU3JS5YC.js} +7 -7
- package/dist/_node-chunks/{chunk-RYS4RAEO.js → chunk-N2NC4ZUG.js} +6 -6
- package/dist/_node-chunks/{chunk-OCHY2TY6.js → chunk-OHPFBAFX.js} +7 -7
- package/dist/_node-chunks/{chunk-SOCOANKH.js → chunk-PEICF2GJ.js} +7 -7
- package/dist/_node-chunks/{chunk-SA3UWYRW.js → chunk-PY7RWBGZ.js} +8 -8
- package/dist/_node-chunks/{chunk-YPTE6EJM.js → chunk-QOQQSFOP.js} +9 -9
- package/dist/_node-chunks/{chunk-W6G6WTNU.js → chunk-QSH5QAHO.js} +7 -7
- package/dist/_node-chunks/{chunk-C4KI5RNF.js → chunk-QT24SDPV.js} +7 -7
- package/dist/_node-chunks/{chunk-6GLEZUPS.js → chunk-S3URB77E.js} +8 -8
- package/dist/_node-chunks/{chunk-QTJ23TAE.js → chunk-UTMZDFPP.js} +20 -20
- package/dist/_node-chunks/{chunk-NGVYRHZL.js → chunk-YAYNUB53.js} +6 -6
- package/dist/_node-chunks/{chunk-44YWME5V.js → chunk-YFIAT7MP.js} +6 -6
- package/dist/_node-chunks/{chunk-SJTHLB7E.js → chunk-YM6JOEYD.js} +9 -9
- package/dist/_node-chunks/{chunk-66M6CYI3.js → chunk-ZWNUUPRK.js} +9 -9
- package/dist/_node-chunks/chunk-ZWPS33BL.js +18 -0
- package/dist/_node-chunks/{globby-VANCOAKK.js → globby-BKONZQFM.js} +9 -9
- package/dist/_node-chunks/{lib-U4CGBRN4.js → lib-RKQRV3A6.js} +7 -7
- package/dist/_node-chunks/p-limit-FPF4MEPV.js +20 -0
- package/dist/_node-chunks/session-id-FBTE4TWP.js +22 -0
- 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 +19 -19
- package/dist/common/index.js +20 -20
- 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 +27 -27
- package/dist/csf/index.d.ts +5 -1
- package/dist/csf/index.js +19 -3
- package/dist/csf-tools/index.js +9 -9
- package/dist/manager/globals-runtime.js +4 -1
- package/dist/manager-api/index.js +1 -1
- package/dist/mocking-utils/index.js +8 -8
- package/dist/node-logger/index.js +9 -9
- package/dist/oxc-parser/index.js +11 -11
- package/dist/oxc-parser/worker.js +11 -11
- package/dist/preview/runtime.js +10 -5
- package/dist/preview-api/index.js +1 -1
- package/dist/server-errors.js +10 -10
- package/dist/telemetry/index.js +25 -25
- package/package.json +1 -1
- package/dist/_node-chunks/chunk-ADQFWPTE.js +0 -18
- package/dist/_node-chunks/chunk-DUA3THVM.js +0 -84
- package/dist/_node-chunks/chunk-VWS27CF2.js +0 -20
- package/dist/_node-chunks/p-limit-EKBALEI3.js +0 -20
- package/dist/_node-chunks/session-id-2Y46JNBI.js +0 -22
|
@@ -318,7 +318,7 @@ var makeDecorator = ({
|
|
|
318
318
|
};
|
|
319
319
|
|
|
320
320
|
// src/preview-api/modules/store/StoryStore.ts
|
|
321
|
-
import { getCoreAnnotations as getCoreAnnotations2 } from "storybook/internal/csf";
|
|
321
|
+
import { getCoreAnnotations as getCoreAnnotations2, hasCoreAnnotations as hasCoreAnnotations2 } from "storybook/internal/csf";
|
|
322
322
|
import {
|
|
323
323
|
CalledExtractOnStoreError,
|
|
324
324
|
MissingStoryFromCsfFileError
|
|
@@ -1121,7 +1121,7 @@ function composeConfigs(moduleExportList) {
|
|
|
1121
1121
|
|
|
1122
1122
|
// src/preview-api/modules/store/csf/portable-stories.ts
|
|
1123
1123
|
import { isExportStory as isExportStory2 } from "storybook/internal/csf";
|
|
1124
|
-
import { getCoreAnnotations } from "storybook/internal/csf";
|
|
1124
|
+
import { getCoreAnnotations, hasCoreAnnotations } from "storybook/internal/csf";
|
|
1125
1125
|
import { MountMustBeDestructuredError } from "storybook/internal/preview-errors";
|
|
1126
1126
|
|
|
1127
1127
|
// src/preview-api/modules/store/reporter-api.ts
|
|
@@ -1153,9 +1153,9 @@ function extractAnnotation(annotation) {
|
|
|
1153
1153
|
return annotation ? composeConfigs([annotation]) : {};
|
|
1154
1154
|
}
|
|
1155
1155
|
function setProjectAnnotations(projectAnnotations) {
|
|
1156
|
-
let annotations = Array.isArray(projectAnnotations) ? projectAnnotations : [projectAnnotations];
|
|
1156
|
+
let annotations = Array.isArray(projectAnnotations) ? projectAnnotations : [projectAnnotations], alreadyComposedWithCore = annotations.some((annotation) => hasCoreAnnotations(annotation));
|
|
1157
1157
|
return globalThis.globalProjectAnnotations = composeConfigs([
|
|
1158
|
-
...getCoreAnnotations(),
|
|
1158
|
+
...alreadyComposedWithCore ? [] : getCoreAnnotations(),
|
|
1159
1159
|
globalThis.defaultProjectAnnotations ?? {},
|
|
1160
1160
|
composeConfigs(annotations.map(extractAnnotation))
|
|
1161
1161
|
]), globalThis.globalProjectAnnotations ?? {};
|
|
@@ -1329,12 +1329,13 @@ async function runStory(story, context) {
|
|
|
1329
1329
|
}
|
|
1330
1330
|
|
|
1331
1331
|
// src/preview-api/modules/store/StoryStore.ts
|
|
1332
|
+
function composeProjectAnnotations(projectAnnotations) {
|
|
1333
|
+
return hasCoreAnnotations2(projectAnnotations) ? normalizeProjectAnnotations(projectAnnotations) : normalizeProjectAnnotations(composeConfigs([...getCoreAnnotations2(), projectAnnotations]));
|
|
1334
|
+
}
|
|
1332
1335
|
var CSF_CACHE_SIZE = 1e3, STORY_CACHE_SIZE = 1e4, StoryStore = class {
|
|
1333
1336
|
constructor(storyIndex, importFn, projectAnnotations) {
|
|
1334
1337
|
this.importFn = importFn;
|
|
1335
|
-
this.storyIndex = new StoryIndexStore(storyIndex), this.projectAnnotations =
|
|
1336
|
-
composeConfigs([...getCoreAnnotations2(), projectAnnotations])
|
|
1337
|
-
);
|
|
1338
|
+
this.storyIndex = new StoryIndexStore(storyIndex), this.projectAnnotations = composeProjectAnnotations(projectAnnotations);
|
|
1338
1339
|
let { initialGlobals, globalTypes } = this.projectAnnotations;
|
|
1339
1340
|
this.args = new ArgsStore(), this.userGlobals = new GlobalsStore({ globals: initialGlobals, globalTypes }), this.hooks = {}, this.cleanupCallbacks = {}, this.processCSFFileWithCache = (0, import_memoizerific2.default)(CSF_CACHE_SIZE)(processCSFFile), this.prepareMetaWithCache = (0, import_memoizerific2.default)(CSF_CACHE_SIZE)(prepareMeta), this.prepareStoryWithCache = (0, import_memoizerific2.default)(STORY_CACHE_SIZE)(prepareStory);
|
|
1340
1341
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_07ga0het4puh from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_07ga0het4puh from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_07ga0het4puh from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_07ga0het4puh.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_07ga0het4puh.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_07ga0het4puh.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-DS2RYKOF.js";
|
|
17
17
|
import {
|
|
18
18
|
require_build
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-OHPFBAFX.js";
|
|
20
20
|
import {
|
|
21
21
|
resolveModulePath,
|
|
22
22
|
resolvePackageDir
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-PEICF2GJ.js";
|
|
24
24
|
import {
|
|
25
25
|
join,
|
|
26
26
|
parse
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-YFIAT7MP.js";
|
|
28
28
|
import {
|
|
29
29
|
slash
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-47JL7C6G.js";
|
|
31
31
|
import {
|
|
32
32
|
__commonJS,
|
|
33
33
|
__require,
|
|
34
34
|
__toESM
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-N2NC4ZUG.js";
|
|
36
36
|
|
|
37
37
|
// ../../node_modules/ejs/lib/utils.js
|
|
38
38
|
var require_utils = __commonJS({
|
|
@@ -1242,6 +1242,7 @@ var exports_default = {
|
|
|
1242
1242
|
"CoreWebpackCompiler",
|
|
1243
1243
|
"Feature",
|
|
1244
1244
|
"SupportedBuilder",
|
|
1245
|
+
"SupportedFramework",
|
|
1245
1246
|
"SupportedLanguage",
|
|
1246
1247
|
"SupportedRenderer"
|
|
1247
1248
|
]
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_07ga0het4puh from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_07ga0het4puh from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_07ga0het4puh from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_07ga0het4puh.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_07ga0het4puh.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_07ga0het4puh.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-N2NC4ZUG.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}])/u, SEPARATORS = /[_.\- ]+/, IDENTIFIER = /([\p{Alpha}\p{N}_]|$)/u, LEADING_SEPARATORS = new RegExp("^" + SEPARATORS.source), SEPARATORS_AND_IDENTIFIER = new RegExp(SEPARATORS.source + IDENTIFIER.source, "gu"), NUMBERS_AND_IDENTIFIER = new RegExp(String.raw`\d+` + IDENTIFIER.source, "gu"), preserveCamelCase = (string, toLowerCase, toUpperCase, preserveConsecutiveUppercase2) => {
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_07ga0het4puh from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_07ga0het4puh from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_07ga0het4puh from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_07ga0het4puh.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_07ga0het4puh.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_07ga0het4puh.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
require_build
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-OHPFBAFX.js";
|
|
15
15
|
import {
|
|
16
16
|
STORYBOOK_FN_PLACEHOLDER,
|
|
17
17
|
generateDummyArgsFromArgTypes,
|
|
18
18
|
loadConfig,
|
|
19
19
|
printConfig
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-PY7RWBGZ.js";
|
|
21
21
|
import {
|
|
22
22
|
StorybookError
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-YM6JOEYD.js";
|
|
24
24
|
import {
|
|
25
25
|
isI18nPackage,
|
|
26
26
|
isRouterPackage,
|
|
27
27
|
isStateManagementPackage,
|
|
28
28
|
isStylingPackage
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-7RXSWV2F.js";
|
|
30
30
|
import {
|
|
31
31
|
optionalEnvToBoolean
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-7FDZXKDX.js";
|
|
33
33
|
import {
|
|
34
34
|
up
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-B6YAKVGB.js";
|
|
36
36
|
import {
|
|
37
37
|
resolvePackageDir
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-PEICF2GJ.js";
|
|
39
39
|
import {
|
|
40
40
|
join,
|
|
41
41
|
relative
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-YFIAT7MP.js";
|
|
43
43
|
import {
|
|
44
44
|
require_dist
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-QT24SDPV.js";
|
|
46
46
|
import {
|
|
47
47
|
require_picocolors
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-7IV5W6W4.js";
|
|
49
49
|
import {
|
|
50
50
|
glob
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-QSH5QAHO.js";
|
|
52
52
|
import {
|
|
53
53
|
__toESM
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-N2NC4ZUG.js";
|
|
55
55
|
|
|
56
56
|
// src/core-server/utils/server-statics.ts
|
|
57
57
|
import { existsSync, statSync } from "node:fs";
|
|
@@ -698,7 +698,7 @@ import { logger as logger3 } from "storybook/internal/node-logger";
|
|
|
698
698
|
var import_ts_dedent3 = __toESM(require_dist(), 1);
|
|
699
699
|
|
|
700
700
|
// src/core-server/utils/get-component-variable-name.ts
|
|
701
|
-
var getComponentVariableName = async (name) => (await import("./camelcase-
|
|
701
|
+
var getComponentVariableName = async (name) => (await import("./camelcase-GAERL3PL.js")).default(name.replace(/^[^a-zA-Z_$]*/, ""), { pascalCase: !0 }).replace(/[^a-zA-Z_$]+/, "");
|
|
702
702
|
|
|
703
703
|
// src/core-server/utils/new-story-templates/csf-factory-template.ts
|
|
704
704
|
async function getCsfFactoryTemplateForNewStoryFile(data) {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_07ga0het4puh from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_07ga0het4puh from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_07ga0het4puh from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_07ga0het4puh.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_07ga0het4puh.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_07ga0het4puh.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
|
|
13
|
+
// ../../node_modules/slash/index.js
|
|
14
|
+
function slash(path) {
|
|
15
|
+
return path.startsWith("\\\\?\\") ? path : path.replace(/\\/g, "/");
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
slash
|
|
20
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_07ga0het4puh from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_07ga0het4puh from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_07ga0het4puh from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_07ga0het4puh.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_07ga0het4puh.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_07ga0het4puh.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -14,27 +14,27 @@ import {
|
|
|
14
14
|
recast,
|
|
15
15
|
traverse,
|
|
16
16
|
types
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-QOQQSFOP.js";
|
|
18
18
|
import {
|
|
19
19
|
any,
|
|
20
20
|
detectIndent,
|
|
21
21
|
invariant,
|
|
22
22
|
up2 as up
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-B6YAKVGB.js";
|
|
24
24
|
import {
|
|
25
25
|
resolvePackageDir
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-PEICF2GJ.js";
|
|
27
27
|
import {
|
|
28
28
|
require_dist
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-QT24SDPV.js";
|
|
30
30
|
import {
|
|
31
31
|
require_picocolors
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-7IV5W6W4.js";
|
|
33
33
|
import {
|
|
34
34
|
__commonJS,
|
|
35
35
|
__require,
|
|
36
36
|
__toESM
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-N2NC4ZUG.js";
|
|
38
38
|
|
|
39
39
|
// ../../node_modules/esprima/dist/esprima.js
|
|
40
40
|
var require_esprima = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_07ga0het4puh from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_07ga0het4puh from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_07ga0het4puh from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_07ga0het4puh.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_07ga0het4puh.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_07ga0het4puh.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,17 +12,17 @@ var require = CJS_COMPAT_NODE_MODULE_3nzk4esy03a.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
getSessionId,
|
|
14
14
|
nanoid
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-FPG6QEHU.js";
|
|
16
16
|
import {
|
|
17
17
|
version
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ZWPS33BL.js";
|
|
19
19
|
import {
|
|
20
20
|
createFileSystemCache,
|
|
21
21
|
execa,
|
|
22
22
|
execaCommand,
|
|
23
23
|
resolvePathInStorybookCache,
|
|
24
24
|
up
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-UTMZDFPP.js";
|
|
26
26
|
import {
|
|
27
27
|
DATA_FETCHING_PACKAGES,
|
|
28
28
|
I18N_PACKAGES,
|
|
@@ -33,23 +33,23 @@ import {
|
|
|
33
33
|
UI_LIBRARY_PACKAGES,
|
|
34
34
|
matchesPackagePattern,
|
|
35
35
|
set
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-7RXSWV2F.js";
|
|
37
37
|
import {
|
|
38
38
|
getProjectRoot
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-7FDZXKDX.js";
|
|
40
40
|
import {
|
|
41
41
|
globalSettings
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-ZWNUUPRK.js";
|
|
43
43
|
import {
|
|
44
44
|
resolvePackageDir
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-PEICF2GJ.js";
|
|
46
46
|
import {
|
|
47
47
|
slash
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-47JL7C6G.js";
|
|
49
49
|
import {
|
|
50
50
|
__commonJS,
|
|
51
51
|
__toESM
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-N2NC4ZUG.js";
|
|
53
53
|
|
|
54
54
|
// ../../node_modules/fetch-retry/index.js
|
|
55
55
|
var require_fetch_retry = __commonJS({
|
|
@@ -971,14 +971,14 @@ var retryingFetch = (0, import_fetch_retry.default)(fetch), URL = process.env.ST
|
|
|
971
971
|
nodeVersion: process.versions.node,
|
|
972
972
|
storybookVersion: getVersionNumber()
|
|
973
973
|
}, prepareRequest = async (data, context, options) => {
|
|
974
|
-
let { eventType, payload, metadata, ...rest } = data, sessionId = await getSessionId(), eventId = nanoid(), body = { ...rest, eventType, eventId, sessionId, metadata, payload, context };
|
|
974
|
+
let { eventType, payload, metadata, ...rest } = data, sessionId = await getSessionId(), eventId = nanoid(), body = { ...rest, eventType, eventId, sessionId, metadata, payload, context }, signal = AbortSignal.timeout(3e4), maxRetries = 3;
|
|
975
975
|
return retryingFetch(URL, {
|
|
976
976
|
method: "post",
|
|
977
977
|
body: JSON.stringify(body),
|
|
978
978
|
headers: { "Content-Type": "application/json" },
|
|
979
|
-
|
|
980
|
-
retryOn:
|
|
981
|
-
|
|
979
|
+
retryDelay: (attempt) => 2 ** attempt * (typeof options?.retryDelay == "number" && !Number.isNaN(options?.retryDelay) ? options.retryDelay : 1e3),
|
|
980
|
+
retryOn: (attempt, error, response) => signal.aborted || attempt >= maxRetries ? !1 : !!error || response?.status === 503 || response?.status === 504,
|
|
981
|
+
signal
|
|
982
982
|
});
|
|
983
983
|
};
|
|
984
984
|
function getVersionNumber() {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_07ga0het4puh from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_07ga0het4puh from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_07ga0het4puh from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_07ga0het4puh.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_07ga0het4puh.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_07ga0het4puh.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
any,
|
|
14
14
|
up,
|
|
15
15
|
up2
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-B6YAKVGB.js";
|
|
17
17
|
import {
|
|
18
18
|
__commonJS,
|
|
19
19
|
__toESM
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-N2NC4ZUG.js";
|
|
21
21
|
|
|
22
22
|
// ../../node_modules/tinyglobby/node_modules/picomatch/lib/constants.js
|
|
23
23
|
var require_constants = __commonJS({
|
|
@@ -1748,7 +1748,7 @@ function normalizeStoryPath(filename) {
|
|
|
1748
1748
|
// src/common/utils/envs.ts
|
|
1749
1749
|
import { isWebContainer } from "@webcontainer/env";
|
|
1750
1750
|
async function loadEnvs(options = {}) {
|
|
1751
|
-
let { getEnvironment } = await import("./lib-
|
|
1751
|
+
let { getEnvironment } = await import("./lib-RKQRV3A6.js"), defaultNodeEnv = options.production ? "production" : "development", baseEnv = {
|
|
1752
1752
|
// eslint-disable-next-line @typescript-eslint/dot-notation
|
|
1753
1753
|
NODE_ENV: process.env.NODE_ENV || defaultNodeEnv,
|
|
1754
1754
|
NODE_PATH: process.env.NODE_PATH || "",
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_07ga0het4puh from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_07ga0het4puh from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_07ga0het4puh from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_07ga0het4puh.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_07ga0het4puh.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_07ga0het4puh.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-N2NC4ZUG.js";
|
|
15
15
|
|
|
16
16
|
// ../../node_modules/picocolors/picocolors.js
|
|
17
17
|
var require_picocolors = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_07ga0het4puh from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_07ga0het4puh from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_07ga0het4puh from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_07ga0het4puh.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_07ga0het4puh.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_07ga0het4puh.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_3nzk4esy03a.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__require
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-N2NC4ZUG.js";
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/ms/index.js
|
|
18
18
|
var require_ms = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_07ga0het4puh from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_07ga0het4puh from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_07ga0het4puh from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_07ga0het4puh.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_07ga0het4puh.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_07ga0het4puh.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -42,7 +42,7 @@ async function isWithinInitialSession(events) {
|
|
|
42
42
|
let eventTypes = Array.isArray(events) ? events : [events], lastEvents = await getLastEvents(), lastRelevantEvent = lastEvent(lastEvents, eventTypes);
|
|
43
43
|
if (!lastRelevantEvent)
|
|
44
44
|
return !1;
|
|
45
|
-
let { getSessionId } = await import("./session-id-
|
|
45
|
+
let { getSessionId } = await import("./session-id-FBTE4TWP.js"), sessionId = await getSessionId();
|
|
46
46
|
return !(lastRelevantEvent.body?.sessionId && lastRelevantEvent.body.sessionId !== sessionId);
|
|
47
47
|
} catch {
|
|
48
48
|
return !1;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_07ga0het4puh from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_07ga0het4puh from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_07ga0het4puh from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_07ga0het4puh.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_07ga0het4puh.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_07ga0het4puh.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_07ga0het4puh from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_07ga0het4puh from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_07ga0het4puh from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_07ga0het4puh.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_07ga0het4puh.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_07ga0het4puh.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-YM6JOEYD.js";
|
|
15
15
|
|
|
16
16
|
// src/oxc-parser/parse.ts
|
|
17
17
|
import { parse as oxcRawParse } from "oxc-parser";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_07ga0het4puh from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_07ga0het4puh from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_07ga0het4puh from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_07ga0het4puh.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_07ga0het4puh.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_07ga0het4puh.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_07ga0het4puh from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_07ga0het4puh from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_07ga0het4puh from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_07ga0het4puh.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_07ga0het4puh.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_07ga0het4puh.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|