storybook 10.0.0-beta.7 → 10.0.0-beta.8
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/_node-chunks/{builder-manager-VFP7HSCF.js → builder-manager-Y34L3HC4.js} +30 -15
- package/dist/_node-chunks/camelcase-W6EWLMZP.js +18 -0
- package/dist/_node-chunks/{chunk-IGWCAXA2.js → chunk-3VCGPS3V.js} +7 -7
- package/dist/_node-chunks/{chunk-DH7BCQMG.js → chunk-4QSDBUYK.js} +8 -8
- package/dist/_node-chunks/{chunk-RP3VMQPF.js → chunk-4SIVISOF.js} +21 -27
- package/dist/_node-chunks/{chunk-TFIGR2HH.js → chunk-5SPDSTWP.js} +7 -7
- package/dist/_node-chunks/{chunk-3QZ7KLON.js → chunk-6NAUDAPE.js} +8 -8
- package/dist/_node-chunks/{chunk-KVOP6ASA.js → chunk-6SXRGPL6.js} +7 -7
- package/dist/_node-chunks/{chunk-U6MJQ7C6.js → chunk-7JZFWQN4.js} +72 -8
- package/dist/_node-chunks/{chunk-46BWYN3K.js → chunk-7Q5EKYUL.js} +7 -7
- package/dist/_node-chunks/{chunk-I7SRMFT5.js → chunk-AND2M2X5.js} +7 -7
- package/dist/_node-chunks/{chunk-XXVKM2ZR.js → chunk-AZWKFSEJ.js} +104 -75
- package/dist/_node-chunks/{chunk-ZPNXCXIT.js → chunk-CL53RP5L.js} +8 -8
- package/dist/_node-chunks/{chunk-C4EOB63P.js → chunk-CZLW5B2W.js} +7 -7
- package/dist/_node-chunks/{chunk-GCWAGPDV.js → chunk-DRNU7FEF.js} +12 -12
- package/dist/_node-chunks/{chunk-YWU65VY4.js → chunk-EMCS3ZKS.js} +6 -6
- package/dist/_node-chunks/{chunk-IEFSRAX2.js → chunk-F43CI3CD.js} +10 -10
- package/dist/_node-chunks/{chunk-ZM2HT2RW.js → chunk-FRTUAT3V.js} +6 -6
- package/dist/_node-chunks/{chunk-FCNWWJV7.js → chunk-HRBWZFVH.js} +7 -7
- package/dist/_node-chunks/{chunk-5YUTWYNI.js → chunk-IE2VBA4V.js} +9 -9
- package/dist/_node-chunks/{chunk-Z3PLI7S2.js → chunk-JEIQPNWQ.js} +7 -7
- package/dist/_node-chunks/{chunk-3NIQHNDU.js → chunk-JG7IEUS3.js} +7 -7
- package/dist/_node-chunks/{chunk-BID2X7MU.js → chunk-LKGWQEHR.js} +7 -7
- package/dist/_node-chunks/{chunk-GBZZSL2K.js → chunk-MIJKYKSO.js} +8 -8
- package/dist/_node-chunks/{chunk-MHVF6Y35.js → chunk-O33XSHQE.js} +7 -7
- package/dist/_node-chunks/{chunk-3XXQRL3A.js → chunk-SOIRRZYG.js} +7 -7
- package/dist/_node-chunks/chunk-T46D5USU.js +18 -0
- package/dist/_node-chunks/{chunk-MRCMZPA2.js → chunk-T5VNV7FG.js} +7 -7
- package/dist/_node-chunks/{chunk-4DIDWIST.js → chunk-TL5UYDH2.js} +7 -7
- package/dist/_node-chunks/{chunk-TXDIOSHI.js → chunk-UORO6DG4.js} +9 -9
- package/dist/_node-chunks/chunk-USP6T4QU.js +62 -0
- package/dist/_node-chunks/{chunk-A2DKPKBY.js → chunk-WS3L7DA7.js} +7 -7
- package/dist/_node-chunks/{chunk-2GCKJYK6.js → chunk-YMZK6547.js} +7 -7
- package/dist/_node-chunks/{dist-PG4I7ZDU.js → dist-RINWIIFC.js} +9 -9
- package/dist/_node-chunks/{globby-HXB6X43W.js → globby-G3CLKE4Y.js} +9 -9
- package/dist/_node-chunks/{lib-4JJTZC7T.js → lib-67I574Z7.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-3JBJ7PQF.js → mdx-N42X6CFJ-6DP2YFMY.js} +8 -8
- package/dist/_node-chunks/{p-limit-WBBNX4KI.js → p-limit-JBOY5PGK.js} +7 -7
- package/dist/_node-chunks/{plugin-SG6I7RFC.js → plugin-2IR6AOYP.js} +10 -10
- package/dist/_node-chunks/{plugin-SEQ2OPRK.js → plugin-5XCSTKS6.js} +10 -10
- package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-5O25VYCQ.js → webpack-inject-mocker-runtime-plugin-5FUND5HJ.js} +10 -10
- package/dist/_node-chunks/{webpack-mock-plugin-35I32SAF.js → webpack-mock-plugin-JVWSZ2PI.js} +9 -9
- package/dist/babel/index.js +11 -11
- package/dist/bin/core.js +11 -11
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +8 -8
- package/dist/cli/index.js +20 -20
- package/dist/common/index.js +20 -21
- package/dist/components/index.js +2 -2
- package/dist/core-server/index.js +34 -35
- package/dist/core-server/presets/common-manager.js +551 -512
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +22 -22
- package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +9 -9
- package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +10 -10
- package/dist/csf-tools/index.js +9 -9
- package/dist/manager/globals-runtime.js +3 -3
- package/dist/manager/runtime.js +42 -15
- package/dist/manager-api/index.d.ts +1 -1
- package/dist/manager-api/index.js +4 -4
- package/dist/node-logger/index.js +14 -14
- package/dist/preview/globals.js +1 -1
- package/dist/preview/runtime.js +1 -1
- package/dist/server-errors.js +10 -10
- package/dist/telemetry/index.js +23 -24
- package/package.json +1 -33
- package/dist/_node-chunks/camelcase-ZLZNQMDD.js +0 -18
- package/dist/_node-chunks/chunk-BC23FKU4.js +0 -80
- package/dist/_node-chunks/chunk-IYOHZPPC.js +0 -18
- package/dist/_node-chunks/chunk-RNHUADRS.js +0 -62
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_7kszd2fgfzq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_7kszd2fgfzq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_7kszd2fgfzq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_7kszd2fgfzq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_7kszd2fgfzq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_7kszd2fgfzq.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,23 +13,21 @@ import {
|
|
|
13
13
|
BROWSER_TARGETS,
|
|
14
14
|
NODE_TARGET,
|
|
15
15
|
SUPPORTED_FEATURES
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-EMCS3ZKS.js";
|
|
17
17
|
import {
|
|
18
18
|
require_build
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import {
|
|
21
|
-
resolveModulePath
|
|
22
|
-
} from "./chunk-U6MJQ7C6.js";
|
|
19
|
+
} from "./chunk-YMZK6547.js";
|
|
23
20
|
import {
|
|
21
|
+
resolveModulePath,
|
|
24
22
|
resolvePackageDir
|
|
25
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-7JZFWQN4.js";
|
|
26
24
|
import {
|
|
27
25
|
join,
|
|
28
26
|
parse
|
|
29
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-WS3L7DA7.js";
|
|
30
28
|
import {
|
|
31
29
|
slash
|
|
32
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-HRBWZFVH.js";
|
|
33
31
|
import {
|
|
34
32
|
__commonJS,
|
|
35
33
|
__esm,
|
|
@@ -38,7 +36,7 @@ import {
|
|
|
38
36
|
__require,
|
|
39
37
|
__toCommonJS,
|
|
40
38
|
__toESM
|
|
41
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-FRTUAT3V.js";
|
|
42
40
|
|
|
43
41
|
// ../node_modules/tslib/tslib.es6.mjs
|
|
44
42
|
var tslib_es6_exports = {};
|
|
@@ -2221,6 +2219,15 @@ var globalsNameReferenceMap = {
|
|
|
2221
2219
|
var globalPackages = Object.keys(globalsNameReferenceMap);
|
|
2222
2220
|
|
|
2223
2221
|
// src/manager/globals/globals-module-info.ts
|
|
2222
|
+
var duplicatedKeys = [
|
|
2223
|
+
"storybook/theming",
|
|
2224
|
+
"storybook/theming/create",
|
|
2225
|
+
"storybook/manager-api",
|
|
2226
|
+
"storybook/test",
|
|
2227
|
+
"storybook/actions",
|
|
2228
|
+
"storybook/highlight",
|
|
2229
|
+
"storybook/viewport"
|
|
2230
|
+
];
|
|
2224
2231
|
var globalsModuleInfoMap = globalPackages.reduce(
|
|
2225
2232
|
(acc, key) => {
|
|
2226
2233
|
acc[key] = {
|
|
@@ -2229,6 +2236,14 @@ var globalsModuleInfoMap = globalPackages.reduce(
|
|
|
2229
2236
|
namedExports: exports_default[key],
|
|
2230
2237
|
defaultExport: true
|
|
2231
2238
|
};
|
|
2239
|
+
if (duplicatedKeys.includes(key)) {
|
|
2240
|
+
acc[key.replace("storybook", "storybook/internal")] = {
|
|
2241
|
+
type: "esm",
|
|
2242
|
+
varName: globalsNameReferenceMap[key],
|
|
2243
|
+
namedExports: exports_default[key],
|
|
2244
|
+
defaultExport: true
|
|
2245
|
+
};
|
|
2246
|
+
}
|
|
2232
2247
|
return acc;
|
|
2233
2248
|
},
|
|
2234
2249
|
{}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_7kszd2fgfzq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_7kszd2fgfzq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_7kszd2fgfzq from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_7kszd2fgfzq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_7kszd2fgfzq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_7kszd2fgfzq.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
import {
|
|
13
|
+
camelCase
|
|
14
|
+
} from "./chunk-3VCGPS3V.js";
|
|
15
|
+
import "./chunk-FRTUAT3V.js";
|
|
16
|
+
export {
|
|
17
|
+
camelCase as default
|
|
18
|
+
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_7kszd2fgfzq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_7kszd2fgfzq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_7kszd2fgfzq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_7kszd2fgfzq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_7kszd2fgfzq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_7kszd2fgfzq.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
|
__name
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-FRTUAT3V.js";
|
|
15
15
|
|
|
16
16
|
// ../node_modules/camelcase/index.js
|
|
17
17
|
var UPPERCASE = /[\p{Lu}]/u;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_7kszd2fgfzq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_7kszd2fgfzq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_7kszd2fgfzq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_7kszd2fgfzq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_7kszd2fgfzq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_7kszd2fgfzq.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
|
camelCase
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-3VCGPS3V.js";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
17
17
|
__name,
|
|
18
18
|
__toESM
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-FRTUAT3V.js";
|
|
20
20
|
|
|
21
21
|
// ../node_modules/boxen/node_modules/emoji-regex/index.js
|
|
22
22
|
var require_emoji_regex = __commonJS({
|
|
@@ -1,46 +1,43 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_7kszd2fgfzq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_7kszd2fgfzq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_7kszd2fgfzq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_7kszd2fgfzq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_7kszd2fgfzq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_7kszd2fgfzq.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
|
version
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-T46D5USU.js";
|
|
15
15
|
import {
|
|
16
16
|
createFileSystemCache,
|
|
17
17
|
resolvePathInStorybookCache,
|
|
18
18
|
up
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-AZWKFSEJ.js";
|
|
20
20
|
import {
|
|
21
21
|
globalSettings
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-CL53RP5L.js";
|
|
23
23
|
import {
|
|
24
24
|
execaCommand,
|
|
25
25
|
getProjectRoot
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-IE2VBA4V.js";
|
|
27
27
|
import {
|
|
28
28
|
resolvePackageDir
|
|
29
|
-
} from "./chunk-
|
|
30
|
-
import {
|
|
31
|
-
join
|
|
32
|
-
} from "./chunk-A2DKPKBY.js";
|
|
29
|
+
} from "./chunk-7JZFWQN4.js";
|
|
33
30
|
import {
|
|
34
31
|
slash
|
|
35
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-HRBWZFVH.js";
|
|
36
33
|
import {
|
|
37
34
|
require_picocolors
|
|
38
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-JEIQPNWQ.js";
|
|
39
36
|
import {
|
|
40
37
|
__commonJS,
|
|
41
38
|
__name,
|
|
42
39
|
__toESM
|
|
43
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-FRTUAT3V.js";
|
|
44
41
|
|
|
45
42
|
// ../node_modules/fetch-retry/index.js
|
|
46
43
|
var require_fetch_retry = __commonJS({
|
|
@@ -348,10 +345,7 @@ var getActualPackageJson = /* @__PURE__ */ __name(async (packageName) => {
|
|
|
348
345
|
cwd: fileURLToPath(import.meta.resolve(packageName, process.cwd()))
|
|
349
346
|
});
|
|
350
347
|
if (!resolvedPackageJsonPath) {
|
|
351
|
-
resolvedPackageJsonPath = import.meta.resolve(
|
|
352
|
-
join(packageName, "package.json"),
|
|
353
|
-
process.cwd()
|
|
354
|
-
);
|
|
348
|
+
resolvedPackageJsonPath = import.meta.resolve(`${packageName}/package.json`, process.cwd());
|
|
355
349
|
}
|
|
356
350
|
const { default: packageJson } = await import(pathToFileURL(resolvedPackageJsonPath).href, {
|
|
357
351
|
with: { type: "json" }
|
|
@@ -453,7 +447,7 @@ __name(getHasRouterPackage, "getHasRouterPackage");
|
|
|
453
447
|
|
|
454
448
|
// src/telemetry/get-monorepo-type.ts
|
|
455
449
|
import { existsSync, readFileSync } from "node:fs";
|
|
456
|
-
import { join
|
|
450
|
+
import { join } from "node:path";
|
|
457
451
|
import { getProjectRoot as getProjectRoot2 } from "storybook/internal/common";
|
|
458
452
|
var monorepoConfigs = {
|
|
459
453
|
Nx: "nx.json",
|
|
@@ -465,17 +459,17 @@ var monorepoConfigs = {
|
|
|
465
459
|
var getMonorepoType = /* @__PURE__ */ __name(() => {
|
|
466
460
|
const keys = Object.keys(monorepoConfigs);
|
|
467
461
|
const monorepoType = keys.find((monorepo) => {
|
|
468
|
-
const configFile =
|
|
462
|
+
const configFile = join(getProjectRoot2(), monorepoConfigs[monorepo]);
|
|
469
463
|
return existsSync(configFile);
|
|
470
464
|
});
|
|
471
465
|
if (monorepoType) {
|
|
472
466
|
return monorepoType;
|
|
473
467
|
}
|
|
474
|
-
if (!existsSync(
|
|
468
|
+
if (!existsSync(join(getProjectRoot2(), "package.json"))) {
|
|
475
469
|
return void 0;
|
|
476
470
|
}
|
|
477
471
|
const packageJson = JSON.parse(
|
|
478
|
-
readFileSync(
|
|
472
|
+
readFileSync(join(getProjectRoot2(), "package.json"), { encoding: "utf8" })
|
|
479
473
|
);
|
|
480
474
|
if (packageJson?.workspaces) {
|
|
481
475
|
return "Workspaces";
|
|
@@ -1022,7 +1016,7 @@ var getStorybookMetadata = /* @__PURE__ */ __name(async (_configDir) => {
|
|
|
1022
1016
|
var import_fetch_retry = __toESM(require_fetch_retry(), 1);
|
|
1023
1017
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
1024
1018
|
import * as os from "node:os";
|
|
1025
|
-
import { join as
|
|
1019
|
+
import { join as join2 } from "node:path";
|
|
1026
1020
|
import { isCI as isCI2 } from "storybook/internal/common";
|
|
1027
1021
|
|
|
1028
1022
|
// ../node_modules/nanoid/index.js
|
|
@@ -1205,7 +1199,7 @@ var prepareRequest = /* @__PURE__ */ __name(async (data, context, options) => {
|
|
|
1205
1199
|
}, "prepareRequest");
|
|
1206
1200
|
function getVersionNumber() {
|
|
1207
1201
|
try {
|
|
1208
|
-
return JSON.parse(readFileSync2(
|
|
1202
|
+
return JSON.parse(readFileSync2(join2(resolvePackageDir("storybook"), "package.json"), "utf8")).version;
|
|
1209
1203
|
} catch (e) {
|
|
1210
1204
|
return version;
|
|
1211
1205
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_7kszd2fgfzq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_7kszd2fgfzq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_7kszd2fgfzq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_7kszd2fgfzq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_7kszd2fgfzq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_7kszd2fgfzq.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_srln17sp2zh.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__name
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-FRTUAT3V.js";
|
|
16
16
|
|
|
17
17
|
// ../node_modules/ts-dedent/dist/index.js
|
|
18
18
|
var require_dist = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_7kszd2fgfzq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_7kszd2fgfzq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_7kszd2fgfzq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_7kszd2fgfzq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_7kszd2fgfzq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_7kszd2fgfzq.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
join,
|
|
17
17
|
normalize,
|
|
18
18
|
resolve
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-WS3L7DA7.js";
|
|
20
20
|
import {
|
|
21
21
|
__name
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-FRTUAT3V.js";
|
|
23
23
|
|
|
24
24
|
// src/core-server/mocking-utils/resolve.ts
|
|
25
25
|
import { readFileSync as readFileSync2, realpathSync } from "node:fs";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_7kszd2fgfzq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_7kszd2fgfzq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_7kszd2fgfzq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_7kszd2fgfzq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_7kszd2fgfzq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_7kszd2fgfzq.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-FRTUAT3V.js";
|
|
15
15
|
|
|
16
16
|
// ../node_modules/pretty-hrtime/index.js
|
|
17
17
|
var require_pretty_hrtime = __commonJS({
|
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_7kszd2fgfzq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_7kszd2fgfzq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_7kszd2fgfzq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_7kszd2fgfzq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_7kszd2fgfzq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_7kszd2fgfzq.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 {
|
|
13
|
+
dirname,
|
|
14
|
+
join
|
|
15
|
+
} from "./chunk-WS3L7DA7.js";
|
|
12
16
|
import {
|
|
13
17
|
__name
|
|
14
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-FRTUAT3V.js";
|
|
15
19
|
|
|
16
20
|
// ../node_modules/exsolve/dist/index.mjs
|
|
17
21
|
import fs, { realpathSync, statSync, lstatSync } from "node:fs";
|
|
@@ -1471,6 +1475,66 @@ function _parseInput(input) {
|
|
|
1471
1475
|
}
|
|
1472
1476
|
__name(_parseInput, "_parseInput");
|
|
1473
1477
|
|
|
1478
|
+
// src/shared/utils/module.ts
|
|
1479
|
+
import { statSync as statSync2 } from "node:fs";
|
|
1480
|
+
import { createRequire, register } from "node:module";
|
|
1481
|
+
import { win32 } from "node:path/win32";
|
|
1482
|
+
import { fileURLToPath as fileURLToPath2, pathToFileURL as pathToFileURL2 } from "node:url";
|
|
1483
|
+
var importMetaResolve = /* @__PURE__ */ __name((...args) => {
|
|
1484
|
+
if (typeof import.meta.resolve !== "function" && process.env.VITEST === "true") {
|
|
1485
|
+
console.warn(
|
|
1486
|
+
"importMetaResolve from within Storybook is being used in a Vitest test, but it shouldn't be. Please report this at https://github.com/storybookjs/storybook/issues/new?template=bug_report.yml"
|
|
1487
|
+
);
|
|
1488
|
+
return pathToFileURL2(args[0]).href;
|
|
1489
|
+
}
|
|
1490
|
+
return import.meta.resolve(...args);
|
|
1491
|
+
}, "importMetaResolve");
|
|
1492
|
+
var resolvePackageDir = /* @__PURE__ */ __name((pkg, parent) => {
|
|
1493
|
+
return dirname(fileURLToPath2(importMetaResolve(join(pkg, "package.json"), parent)));
|
|
1494
|
+
}, "resolvePackageDir");
|
|
1495
|
+
var isTypescriptLoaderRegistered = false;
|
|
1496
|
+
async function importModule(path2) {
|
|
1497
|
+
if (!isTypescriptLoaderRegistered) {
|
|
1498
|
+
const typescriptLoaderUrl = importMetaResolve("storybook/internal/bin/loader");
|
|
1499
|
+
register(typescriptLoaderUrl, import.meta.url);
|
|
1500
|
+
isTypescriptLoaderRegistered = true;
|
|
1501
|
+
}
|
|
1502
|
+
let mod;
|
|
1503
|
+
try {
|
|
1504
|
+
const resolvedPath = win32.isAbsolute(path2) ? pathToFileURL2(path2).href : path2;
|
|
1505
|
+
mod = await import(resolvedPath);
|
|
1506
|
+
} catch (importError) {
|
|
1507
|
+
try {
|
|
1508
|
+
const require2 = createRequire(import.meta.url);
|
|
1509
|
+
mod = require2(path2);
|
|
1510
|
+
} catch (requireError) {
|
|
1511
|
+
throw importError;
|
|
1512
|
+
}
|
|
1513
|
+
}
|
|
1514
|
+
return mod.default ?? mod;
|
|
1515
|
+
}
|
|
1516
|
+
__name(importModule, "importModule");
|
|
1517
|
+
var safeResolveModule = /* @__PURE__ */ __name(({
|
|
1518
|
+
specifier,
|
|
1519
|
+
parent,
|
|
1520
|
+
extensions = [".mjs", ".js", ".cjs"]
|
|
1521
|
+
}) => {
|
|
1522
|
+
try {
|
|
1523
|
+
const resolvedPath = resolveModulePath(specifier, {
|
|
1524
|
+
from: parent,
|
|
1525
|
+
extensions: [""].concat(extensions)
|
|
1526
|
+
});
|
|
1527
|
+
if (statSync2(resolvedPath).isFile()) {
|
|
1528
|
+
return resolvedPath;
|
|
1529
|
+
}
|
|
1530
|
+
} catch (e) {
|
|
1531
|
+
}
|
|
1532
|
+
}, "safeResolveModule");
|
|
1533
|
+
|
|
1474
1534
|
export {
|
|
1475
|
-
resolveModulePath
|
|
1535
|
+
resolveModulePath,
|
|
1536
|
+
importMetaResolve,
|
|
1537
|
+
resolvePackageDir,
|
|
1538
|
+
importModule,
|
|
1539
|
+
safeResolveModule
|
|
1476
1540
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_7kszd2fgfzq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_7kszd2fgfzq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_7kszd2fgfzq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_7kszd2fgfzq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_7kszd2fgfzq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_7kszd2fgfzq.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
__commonJS,
|
|
14
14
|
__name,
|
|
15
15
|
__require
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-FRTUAT3V.js";
|
|
17
17
|
|
|
18
18
|
// ../node_modules/picomatch/lib/constants.js
|
|
19
19
|
var require_constants = __commonJS({
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_7kszd2fgfzq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_7kszd2fgfzq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_7kszd2fgfzq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_7kszd2fgfzq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_7kszd2fgfzq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_7kszd2fgfzq.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
|
__name
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-FRTUAT3V.js";
|
|
15
15
|
|
|
16
16
|
// ../node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
|
|
17
17
|
var comma = ",".charCodeAt(0);
|