storybook 10.4.4 → 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-ML5UXL3U.js → builder-manager-5MEJYN36.js} +12 -12
- package/dist/_node-chunks/{camelcase-OQUPHNXH.js → camelcase-GAERL3PL.js} +7 -7
- package/dist/_node-chunks/{chunk-TQLYOGGH.js → chunk-2P3TQKKP.js} +19 -19
- package/dist/_node-chunks/chunk-47JL7C6G.js +20 -0
- package/dist/_node-chunks/{chunk-NXMYSVH6.js → chunk-5JUHF6LD.js} +12 -12
- package/dist/_node-chunks/{chunk-MI22B6QL.js → chunk-5NFZNFNE.js} +15 -15
- package/dist/_node-chunks/{chunk-OPPP3ZVD.js → chunk-7FDZXKDX.js} +9 -9
- package/dist/_node-chunks/{chunk-Q6DQCNHY.js → chunk-7IV5W6W4.js} +7 -7
- package/dist/_node-chunks/{chunk-SSLFYQA4.js → chunk-7RHTHE2L.js} +7 -7
- package/dist/_node-chunks/{chunk-NMZ2FUOR.js → chunk-7RXSWV2F.js} +7 -7
- package/dist/_node-chunks/{chunk-LGWDBQCF.js → chunk-B6YAKVGB.js} +6 -6
- package/dist/_node-chunks/{chunk-TPRFXFAJ.js → chunk-BZLMDYBT.js} +7 -7
- package/dist/_node-chunks/{chunk-UX445D4A.js → chunk-CF6XMT3V.js} +6 -6
- package/dist/_node-chunks/{chunk-SIHYXN6T.js → chunk-DS2RYKOF.js} +6 -6
- package/dist/_node-chunks/chunk-F2JWHUG3.js +84 -0
- package/dist/_node-chunks/{chunk-AVCEQXMX.js → chunk-FPG6QEHU.js} +6 -6
- package/dist/_node-chunks/{chunk-FS7UJHJO.js → chunk-GBOT6YH3.js} +10 -10
- package/dist/_node-chunks/{chunk-OOFBFCWG.js → chunk-LU3JS5YC.js} +7 -7
- package/dist/_node-chunks/{chunk-H3J77TM6.js → chunk-N2NC4ZUG.js} +6 -6
- package/dist/_node-chunks/{chunk-L64YPGUF.js → chunk-OHPFBAFX.js} +7 -7
- package/dist/_node-chunks/{chunk-ULZBLQ6I.js → chunk-PEICF2GJ.js} +7 -7
- package/dist/_node-chunks/{chunk-HT5O7ZWA.js → chunk-PY7RWBGZ.js} +8 -8
- package/dist/_node-chunks/{chunk-4CKOOAKX.js → chunk-QOQQSFOP.js} +9 -9
- package/dist/_node-chunks/{chunk-OPKU3YFW.js → chunk-QSH5QAHO.js} +7 -7
- package/dist/_node-chunks/{chunk-DKPTV7OY.js → chunk-QT24SDPV.js} +7 -7
- package/dist/_node-chunks/{chunk-3X73JSWN.js → chunk-S3URB77E.js} +8 -8
- package/dist/_node-chunks/{chunk-3FBJJ3J7.js → chunk-UTMZDFPP.js} +20 -20
- package/dist/_node-chunks/{chunk-YELFZJ2B.js → chunk-YAYNUB53.js} +6 -6
- package/dist/_node-chunks/{chunk-75LGFSSP.js → chunk-YFIAT7MP.js} +6 -6
- package/dist/_node-chunks/{chunk-XZNPZNTE.js → chunk-YM6JOEYD.js} +9 -9
- package/dist/_node-chunks/{chunk-WVKUKJCY.js → chunk-ZWNUUPRK.js} +9 -9
- package/dist/_node-chunks/chunk-ZWPS33BL.js +18 -0
- package/dist/_node-chunks/{globby-W5ZVMK2K.js → globby-BKONZQFM.js} +9 -9
- package/dist/_node-chunks/{lib-RAUDNJ5V.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-ONBWXGRU.js +0 -84
- package/dist/_node-chunks/chunk-RLSKSEJD.js +0 -18
- package/dist/_node-chunks/chunk-X7PI2AKG.js +0 -20
- package/dist/_node-chunks/p-limit-RUP5WM5V.js +0 -20
- package/dist/_node-chunks/session-id-ZD2SDJCL.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({
|
|
@@ -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_pt912roydgi.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({
|
|
@@ -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_pt912roydgi.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
|
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
// src/common/versions.ts
|
|
14
|
+
var versions_default = {
|
|
15
|
+
"@storybook/addon-a11y": "10.4.5",
|
|
16
|
+
"@storybook/addon-docs": "10.4.5",
|
|
17
|
+
"@storybook/addon-links": "10.4.5",
|
|
18
|
+
"@storybook/addon-onboarding": "10.4.5",
|
|
19
|
+
"storybook-addon-pseudo-states": "10.4.5",
|
|
20
|
+
"@storybook/addon-themes": "10.4.5",
|
|
21
|
+
"@storybook/addon-vitest": "10.4.5",
|
|
22
|
+
"@storybook/builder-vite": "10.4.5",
|
|
23
|
+
"@storybook/builder-webpack5": "10.4.5",
|
|
24
|
+
storybook: "10.4.5",
|
|
25
|
+
"@storybook/angular": "10.4.5",
|
|
26
|
+
"@storybook/ember": "10.4.5",
|
|
27
|
+
"@storybook/html-vite": "10.4.5",
|
|
28
|
+
"@storybook/nextjs": "10.4.5",
|
|
29
|
+
"@storybook/nextjs-vite": "10.4.5",
|
|
30
|
+
"@storybook/preact-vite": "10.4.5",
|
|
31
|
+
"@storybook/react-native-web-vite": "10.4.5",
|
|
32
|
+
"@storybook/react-vite": "10.4.5",
|
|
33
|
+
"@storybook/react-webpack5": "10.4.5",
|
|
34
|
+
"@storybook/server-webpack5": "10.4.5",
|
|
35
|
+
"@storybook/svelte-vite": "10.4.5",
|
|
36
|
+
"@storybook/sveltekit": "10.4.5",
|
|
37
|
+
"@storybook/tanstack-react": "10.4.5",
|
|
38
|
+
"@storybook/vue3-vite": "10.4.5",
|
|
39
|
+
"@storybook/web-components-vite": "10.4.5",
|
|
40
|
+
sb: "10.4.5",
|
|
41
|
+
"@storybook/cli": "10.4.5",
|
|
42
|
+
"@storybook/codemod": "10.4.5",
|
|
43
|
+
"@storybook/core-webpack": "10.4.5",
|
|
44
|
+
"create-storybook": "10.4.5",
|
|
45
|
+
"@storybook/csf-plugin": "10.4.5",
|
|
46
|
+
"eslint-plugin-storybook": "10.4.5",
|
|
47
|
+
"@storybook/react-dom-shim": "10.4.5",
|
|
48
|
+
"@storybook/preset-create-react-app": "10.4.5",
|
|
49
|
+
"@storybook/preset-react-webpack": "10.4.5",
|
|
50
|
+
"@storybook/preset-server-webpack": "10.4.5",
|
|
51
|
+
"@storybook/html": "10.4.5",
|
|
52
|
+
"@storybook/preact": "10.4.5",
|
|
53
|
+
"@storybook/react": "10.4.5",
|
|
54
|
+
"@storybook/server": "10.4.5",
|
|
55
|
+
"@storybook/svelte": "10.4.5",
|
|
56
|
+
"@storybook/vue3": "10.4.5",
|
|
57
|
+
"@storybook/web-components": "10.4.5"
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
// src/common/node-version.ts
|
|
61
|
+
import { satisfies } from "semver";
|
|
62
|
+
var MIN_SUPPORTED_NODE_VERSIONS = [
|
|
63
|
+
{ major: 20, minor: 19, patch: 0 },
|
|
64
|
+
{ major: 22, minor: 12, patch: 0 }
|
|
65
|
+
];
|
|
66
|
+
function formatMinVersion(v) {
|
|
67
|
+
return v.minor === 0 && v.patch === 0 ? `${v.major}+` : v.patch === 0 ? `${v.major}.${v.minor}+` : `${v.major}.${v.minor}.${v.patch}+`;
|
|
68
|
+
}
|
|
69
|
+
var MIN_SUPPORTED_NODE_DESCRIPTION = MIN_SUPPORTED_NODE_VERSIONS.map(formatMinVersion).join(" or ");
|
|
70
|
+
function isNodeVersionSupported(major, minor, patch) {
|
|
71
|
+
let sortedMinimums = [...MIN_SUPPORTED_NODE_VERSIONS].sort((a, b) => a.major - b.major), supportedRange = sortedMinimums.map((min, index) => {
|
|
72
|
+
let next = sortedMinimums[index + 1], lowerBound = `>=${min.major}.${min.minor}.${min.patch}`;
|
|
73
|
+
return next ? `${lowerBound} <${next.major}.0.0` : lowerBound;
|
|
74
|
+
}).join(" || ");
|
|
75
|
+
return satisfies(`${major}.${minor}.${patch}`, supportedRange);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export {
|
|
79
|
+
versions_default,
|
|
80
|
+
MIN_SUPPORTED_NODE_VERSIONS,
|
|
81
|
+
formatMinVersion,
|
|
82
|
+
MIN_SUPPORTED_NODE_DESCRIPTION,
|
|
83
|
+
isNodeVersionSupported
|
|
84
|
+
};
|