storybook 10.0.0-beta.7 → 10.0.0-beta.9
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-ZMBCXQXV.js} +30 -15
- package/dist/_node-chunks/camelcase-JMK43JMF.js +18 -0
- package/dist/_node-chunks/{chunk-Z3PLI7S2.js → chunk-2RLHFYFA.js} +7 -7
- package/dist/_node-chunks/chunk-5G7GJHS7.js +62 -0
- package/dist/_node-chunks/{chunk-KVOP6ASA.js → chunk-75N2O5FL.js} +7 -7
- package/dist/_node-chunks/chunk-7VDHEICM.js +18 -0
- package/dist/_node-chunks/{chunk-2GCKJYK6.js → chunk-A33ZDBWG.js} +7 -7
- package/dist/_node-chunks/{chunk-3NIQHNDU.js → chunk-AEVVTNDL.js} +7 -7
- package/dist/_node-chunks/{chunk-XXVKM2ZR.js → chunk-AV6DOLF6.js} +104 -75
- package/dist/_node-chunks/{chunk-TXDIOSHI.js → chunk-B5W4OROC.js} +9 -9
- package/dist/_node-chunks/{chunk-3XXQRL3A.js → chunk-BUQRXXWE.js} +7 -7
- package/dist/_node-chunks/{chunk-ZM2HT2RW.js → chunk-CALGSUC5.js} +6 -6
- package/dist/_node-chunks/{chunk-FCNWWJV7.js → chunk-GEDTSFBQ.js} +7 -7
- package/dist/_node-chunks/{chunk-C4EOB63P.js → chunk-I5NPNO3G.js} +7 -7
- package/dist/_node-chunks/{chunk-A2DKPKBY.js → chunk-IXMF5FBT.js} +7 -7
- package/dist/_node-chunks/{chunk-5YUTWYNI.js → chunk-JIERQ4FU.js} +9 -9
- package/dist/_node-chunks/{chunk-U6MJQ7C6.js → chunk-JVFB6XG6.js} +72 -8
- package/dist/_node-chunks/{chunk-TFIGR2HH.js → chunk-LTKYC6VP.js} +7 -7
- package/dist/_node-chunks/{chunk-GBZZSL2K.js → chunk-NEEUVKLS.js} +8 -8
- package/dist/_node-chunks/{chunk-MRCMZPA2.js → chunk-NRBIODYE.js} +7 -7
- package/dist/_node-chunks/{chunk-MHVF6Y35.js → chunk-O2AHQDZJ.js} +7 -7
- package/dist/_node-chunks/{chunk-ZPNXCXIT.js → chunk-R4BIB4NX.js} +8 -8
- package/dist/_node-chunks/{chunk-RP3VMQPF.js → chunk-TO3ARZYO.js} +21 -27
- package/dist/_node-chunks/{chunk-I7SRMFT5.js → chunk-U3LOLMF3.js} +7 -7
- package/dist/_node-chunks/{chunk-3QZ7KLON.js → chunk-U3TBYKZA.js} +8 -8
- package/dist/_node-chunks/{chunk-BID2X7MU.js → chunk-UOCLAXMF.js} +7 -7
- package/dist/_node-chunks/{chunk-4DIDWIST.js → chunk-V5DK6ZKU.js} +7 -7
- package/dist/_node-chunks/{chunk-46BWYN3K.js → chunk-V6E6RSUO.js} +7 -7
- package/dist/_node-chunks/{chunk-IGWCAXA2.js → chunk-VM3IJPAW.js} +7 -7
- package/dist/_node-chunks/{chunk-YWU65VY4.js → chunk-XBOE5GD4.js} +6 -6
- package/dist/_node-chunks/{chunk-GCWAGPDV.js → chunk-XHXUIPIC.js} +12 -12
- package/dist/_node-chunks/{chunk-IEFSRAX2.js → chunk-XYRZ6AGE.js} +10 -10
- package/dist/_node-chunks/{chunk-DH7BCQMG.js → chunk-Z6UKYBDV.js} +8 -8
- package/dist/_node-chunks/{dist-PG4I7ZDU.js → dist-HAF4OXIQ.js} +9 -9
- package/dist/_node-chunks/{globby-HXB6X43W.js → globby-HUMXQF7C.js} +9 -9
- package/dist/_node-chunks/{lib-4JJTZC7T.js → lib-TOFZQAVG.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-3JBJ7PQF.js → mdx-N42X6CFJ-LCPMSYGS.js} +8 -8
- package/dist/_node-chunks/{p-limit-WBBNX4KI.js → p-limit-JSCSHFNF.js} +7 -7
- package/dist/_node-chunks/{plugin-SEQ2OPRK.js → plugin-4OW72VQ5.js} +10 -10
- package/dist/_node-chunks/{plugin-SG6I7RFC.js → plugin-XRJQD5ND.js} +10 -10
- package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-5O25VYCQ.js → webpack-inject-mocker-runtime-plugin-XI7KJK6X.js} +10 -10
- package/dist/_node-chunks/{webpack-mock-plugin-35I32SAF.js → webpack-mock-plugin-6BAMUAJ3.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.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,23 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_5dt5laqry3q from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_5dt5laqry3q from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_5dt5laqry3q from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_5dt5laqry3q.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_5dt5laqry3q.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_5dt5laqry3q.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_picomatch
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import {
|
|
16
|
-
resolveModulePath
|
|
17
|
-
} from "./chunk-U6MJQ7C6.js";
|
|
14
|
+
} from "./chunk-V6E6RSUO.js";
|
|
18
15
|
import {
|
|
19
16
|
versions_default
|
|
20
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-5G7GJHS7.js";
|
|
21
18
|
import {
|
|
22
19
|
BUN_LOCKFILE,
|
|
23
20
|
BUN_LOCKFILE_BINARY,
|
|
@@ -30,41 +27,42 @@ import {
|
|
|
30
27
|
getProjectRoot,
|
|
31
28
|
normalizeStoryPath,
|
|
32
29
|
require_cross_spawn
|
|
33
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-JIERQ4FU.js";
|
|
34
31
|
import {
|
|
35
32
|
any,
|
|
36
33
|
from,
|
|
37
34
|
up2 as up
|
|
38
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-O2AHQDZJ.js";
|
|
39
36
|
import {
|
|
40
37
|
invariant
|
|
41
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-BUQRXXWE.js";
|
|
42
39
|
import {
|
|
43
40
|
importModule,
|
|
41
|
+
resolveModulePath,
|
|
44
42
|
resolvePackageDir,
|
|
45
43
|
safeResolveModule
|
|
46
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-JVFB6XG6.js";
|
|
47
45
|
import {
|
|
48
46
|
join,
|
|
49
47
|
parse,
|
|
50
48
|
resolve
|
|
51
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-IXMF5FBT.js";
|
|
52
50
|
import {
|
|
53
51
|
require_prompts
|
|
54
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-V5DK6ZKU.js";
|
|
55
53
|
import {
|
|
56
54
|
glob,
|
|
57
55
|
globSync
|
|
58
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-NRBIODYE.js";
|
|
59
57
|
import {
|
|
60
58
|
slash
|
|
61
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-GEDTSFBQ.js";
|
|
62
60
|
import {
|
|
63
61
|
require_dist
|
|
64
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-LTKYC6VP.js";
|
|
65
63
|
import {
|
|
66
64
|
require_picocolors
|
|
67
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-2RLHFYFA.js";
|
|
68
66
|
import {
|
|
69
67
|
__commonJS,
|
|
70
68
|
__esm,
|
|
@@ -73,7 +71,7 @@ import {
|
|
|
73
71
|
__require,
|
|
74
72
|
__toCommonJS,
|
|
75
73
|
__toESM
|
|
76
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-CALGSUC5.js";
|
|
77
75
|
|
|
78
76
|
// ../node_modules/@yarnpkg/fslib/node_modules/tslib/tslib.es6.js
|
|
79
77
|
var tslib_es6_exports = {};
|
|
@@ -12208,7 +12206,10 @@ function serverRequire(filePath) {
|
|
|
12208
12206
|
__name(serverRequire, "serverRequire");
|
|
12209
12207
|
|
|
12210
12208
|
// src/common/utils/load-main-config.ts
|
|
12211
|
-
|
|
12209
|
+
var import_ts_dedent4 = __toESM(require_dist(), 1);
|
|
12210
|
+
import { readFile as readFile4, rm as rm3, writeFile as writeFile3 } from "node:fs/promises";
|
|
12211
|
+
import { join as join9, parse as parse2, relative, resolve as resolve4 } from "node:path";
|
|
12212
|
+
import { logger as logger5 } from "storybook/internal/node-logger";
|
|
12212
12213
|
import { MainFileEvaluationError } from "storybook/internal/server-errors";
|
|
12213
12214
|
async function loadMainConfig({
|
|
12214
12215
|
configDir = ".storybook",
|
|
@@ -12223,6 +12224,34 @@ async function loadMainConfig({
|
|
|
12223
12224
|
if (!(e instanceof Error)) {
|
|
12224
12225
|
throw e;
|
|
12225
12226
|
}
|
|
12227
|
+
if (e.message.includes("require is not defined")) {
|
|
12228
|
+
logger5.info(
|
|
12229
|
+
"Loading main config failed, trying a temporary fix, Please ensure the main config is valid ESM"
|
|
12230
|
+
);
|
|
12231
|
+
const comment = "// end of Storybook 10 migration assistant header, you can delete the above code";
|
|
12232
|
+
const content = await readFile4(mainPath, "utf-8");
|
|
12233
|
+
if (!content.includes(comment)) {
|
|
12234
|
+
const header = import_ts_dedent4.dedent`
|
|
12235
|
+
import { createRequire } from "node:module";
|
|
12236
|
+
import { dirname } from "node:path";
|
|
12237
|
+
import { fileURLToPath } from "node:url";
|
|
12238
|
+
|
|
12239
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
12240
|
+
const __dirname = dirname(__filename);
|
|
12241
|
+
const require = createRequire(import.meta.url);
|
|
12242
|
+
`;
|
|
12243
|
+
const { ext, name, dir } = parse2(mainPath);
|
|
12244
|
+
const modifiedMainPath = join9(dir, `${name}.tmp.${ext}`);
|
|
12245
|
+
await writeFile3(modifiedMainPath, [header, comment, content].join("\n\n"));
|
|
12246
|
+
let out;
|
|
12247
|
+
try {
|
|
12248
|
+
out = await importModule(modifiedMainPath);
|
|
12249
|
+
} finally {
|
|
12250
|
+
await rm3(modifiedMainPath);
|
|
12251
|
+
}
|
|
12252
|
+
return out;
|
|
12253
|
+
}
|
|
12254
|
+
}
|
|
12226
12255
|
throw new MainFileEvaluationError({
|
|
12227
12256
|
location: relative(process.cwd(), mainPath),
|
|
12228
12257
|
error: e
|
|
@@ -12232,17 +12261,17 @@ async function loadMainConfig({
|
|
|
12232
12261
|
__name(loadMainConfig, "loadMainConfig");
|
|
12233
12262
|
|
|
12234
12263
|
// src/common/utils/load-manager-or-addons-file.ts
|
|
12235
|
-
var
|
|
12264
|
+
var import_ts_dedent5 = __toESM(require_dist(), 1);
|
|
12236
12265
|
import { resolve as resolve5 } from "node:path";
|
|
12237
|
-
import { logger as
|
|
12266
|
+
import { logger as logger6 } from "storybook/internal/node-logger";
|
|
12238
12267
|
function loadManagerOrAddonsFile({ configDir }) {
|
|
12239
12268
|
const storybookCustomAddonsPath = getInterpretedFile(resolve5(configDir, "addons"));
|
|
12240
12269
|
const storybookCustomManagerPath = getInterpretedFile(resolve5(configDir, "manager"));
|
|
12241
12270
|
if (storybookCustomAddonsPath || storybookCustomManagerPath) {
|
|
12242
|
-
|
|
12271
|
+
logger6.info("=> Loading custom manager config");
|
|
12243
12272
|
}
|
|
12244
12273
|
if (storybookCustomAddonsPath && storybookCustomManagerPath) {
|
|
12245
|
-
throw new Error(
|
|
12274
|
+
throw new Error(import_ts_dedent5.dedent`
|
|
12246
12275
|
You have both a "addons.js" and a "manager.js", remove the "addons.js" file from your configDir (${resolve5(
|
|
12247
12276
|
configDir,
|
|
12248
12277
|
"addons"
|
|
@@ -12253,13 +12282,13 @@ function loadManagerOrAddonsFile({ configDir }) {
|
|
|
12253
12282
|
__name(loadManagerOrAddonsFile, "loadManagerOrAddonsFile");
|
|
12254
12283
|
|
|
12255
12284
|
// src/common/utils/load-preview-or-config-file.ts
|
|
12256
|
-
var
|
|
12285
|
+
var import_ts_dedent6 = __toESM(require_dist(), 1);
|
|
12257
12286
|
import { resolve as resolve6 } from "node:path";
|
|
12258
12287
|
function loadPreviewOrConfigFile({ configDir }) {
|
|
12259
12288
|
const storybookConfigPath = getInterpretedFile(resolve6(configDir, "config"));
|
|
12260
12289
|
const storybookPreviewPath = getInterpretedFile(resolve6(configDir, "preview"));
|
|
12261
12290
|
if (storybookConfigPath && storybookPreviewPath) {
|
|
12262
|
-
throw new Error(
|
|
12291
|
+
throw new Error(import_ts_dedent6.dedent`
|
|
12263
12292
|
You have both a "config.js" and a "preview.js", remove the "config.js" file from your configDir (${resolve6(
|
|
12264
12293
|
configDir,
|
|
12265
12294
|
"config"
|
|
@@ -12271,20 +12300,20 @@ __name(loadPreviewOrConfigFile, "loadPreviewOrConfigFile");
|
|
|
12271
12300
|
|
|
12272
12301
|
// src/common/utils/log.ts
|
|
12273
12302
|
var import_picocolors2 = __toESM(require_picocolors(), 1);
|
|
12274
|
-
import { logger as
|
|
12303
|
+
import { logger as logger7 } from "storybook/internal/node-logger";
|
|
12275
12304
|
var commandLog = /* @__PURE__ */ __name((message) => {
|
|
12276
12305
|
process.stdout.write(import_picocolors2.default.cyan(" \u2022 ") + message);
|
|
12277
12306
|
return (errorMessage, errorInfo) => {
|
|
12278
12307
|
if (errorMessage) {
|
|
12279
12308
|
process.stdout.write(`. ${import_picocolors2.default.red("\u2716")}
|
|
12280
12309
|
`);
|
|
12281
|
-
|
|
12310
|
+
logger7.error(`
|
|
12282
12311
|
${import_picocolors2.default.red(errorMessage)}`);
|
|
12283
12312
|
if (!errorInfo) {
|
|
12284
12313
|
return;
|
|
12285
12314
|
}
|
|
12286
12315
|
const newErrorInfo = errorInfo.split("\n").map((line) => ` ${import_picocolors2.default.dim(line)}`).join("\n");
|
|
12287
|
-
|
|
12316
|
+
logger7.error(`${newErrorInfo}
|
|
12288
12317
|
`);
|
|
12289
12318
|
return;
|
|
12290
12319
|
}
|
|
@@ -12294,7 +12323,7 @@ var commandLog = /* @__PURE__ */ __name((message) => {
|
|
|
12294
12323
|
}, "commandLog");
|
|
12295
12324
|
function paddedLog(message) {
|
|
12296
12325
|
const newMessage = message.split("\n").map((line) => ` ${line}`).join("\n");
|
|
12297
|
-
|
|
12326
|
+
logger7.log(newMessage);
|
|
12298
12327
|
}
|
|
12299
12328
|
__name(paddedLog, "paddedLog");
|
|
12300
12329
|
function getChars(char, amount) {
|
|
@@ -12317,7 +12346,7 @@ function codeLog(codeLines, leftPadAmount) {
|
|
|
12317
12346
|
newLine = getChars(" ", leftPadAmount || 2) + import_picocolors2.default.inverse(` ${newLine} `);
|
|
12318
12347
|
return newLine;
|
|
12319
12348
|
}).join("\n");
|
|
12320
|
-
|
|
12349
|
+
logger7.log(finalResult);
|
|
12321
12350
|
}
|
|
12322
12351
|
__name(codeLog, "codeLog");
|
|
12323
12352
|
|
|
@@ -12408,44 +12437,44 @@ var normalizeStories = /* @__PURE__ */ __name((entries, options) => {
|
|
|
12408
12437
|
}, "normalizeStories");
|
|
12409
12438
|
|
|
12410
12439
|
// src/common/utils/readTemplate.ts
|
|
12411
|
-
import { readFile as
|
|
12440
|
+
import { readFile as readFile5 } from "node:fs/promises";
|
|
12412
12441
|
async function readTemplate(filename) {
|
|
12413
|
-
return
|
|
12442
|
+
return readFile5(filename, {
|
|
12414
12443
|
encoding: "utf8"
|
|
12415
12444
|
});
|
|
12416
12445
|
}
|
|
12417
12446
|
__name(readTemplate, "readTemplate");
|
|
12418
12447
|
|
|
12419
12448
|
// src/common/utils/remove.ts
|
|
12420
|
-
var
|
|
12449
|
+
var import_ts_dedent7 = __toESM(require_dist(), 1);
|
|
12421
12450
|
import { readConfig, writeConfig } from "storybook/internal/csf-tools";
|
|
12422
|
-
import { logger as
|
|
12451
|
+
import { logger as logger8 } from "storybook/internal/node-logger";
|
|
12423
12452
|
async function removeAddon(addon, options) {
|
|
12424
12453
|
const { packageManager, skipInstall } = options;
|
|
12425
12454
|
const { mainConfigPath, configDir } = getConfigInfo(options.configDir);
|
|
12426
12455
|
if (typeof configDir === "undefined") {
|
|
12427
|
-
throw new Error(
|
|
12456
|
+
throw new Error(import_ts_dedent7.dedent`
|
|
12428
12457
|
Unable to find storybook config directory
|
|
12429
12458
|
`);
|
|
12430
12459
|
}
|
|
12431
12460
|
if (!mainConfigPath) {
|
|
12432
|
-
|
|
12461
|
+
logger8.error("Unable to find storybook main.js config");
|
|
12433
12462
|
return;
|
|
12434
12463
|
}
|
|
12435
12464
|
const main = await readConfig(mainConfigPath);
|
|
12436
|
-
|
|
12465
|
+
logger8.debug(`Uninstalling ${addon}`);
|
|
12437
12466
|
await packageManager.removeDependencies([addon]);
|
|
12438
12467
|
if (!skipInstall) {
|
|
12439
12468
|
await packageManager.installDependencies();
|
|
12440
12469
|
}
|
|
12441
12470
|
const currentAddons = main.getNamesFromPath(["addons"]) ?? [];
|
|
12442
12471
|
if (currentAddons.includes(addon)) {
|
|
12443
|
-
|
|
12472
|
+
logger8.debug(`Removing '${addon}' from main.js addons field.`);
|
|
12444
12473
|
try {
|
|
12445
12474
|
main.removeEntryFromArray(["addons"], addon);
|
|
12446
12475
|
await writeConfig(main);
|
|
12447
12476
|
} catch (err) {
|
|
12448
|
-
|
|
12477
|
+
logger8.warn(`Failed to remove '${addon}' from main.js addons field. ${String(err)}`);
|
|
12449
12478
|
}
|
|
12450
12479
|
}
|
|
12451
12480
|
}
|
|
@@ -12489,7 +12518,7 @@ function getPreviewHeadTemplate(configDirPath, interpolations) {
|
|
|
12489
12518
|
__name(getPreviewHeadTemplate, "getPreviewHeadTemplate");
|
|
12490
12519
|
|
|
12491
12520
|
// src/common/utils/validate-config.ts
|
|
12492
|
-
import { join as
|
|
12521
|
+
import { join as join10 } from "node:path";
|
|
12493
12522
|
import {
|
|
12494
12523
|
CouldNotEvaluateFrameworkError,
|
|
12495
12524
|
InvalidFrameworkNameError,
|
|
@@ -12508,7 +12537,7 @@ function validateFrameworkName(frameworkName) {
|
|
|
12508
12537
|
return;
|
|
12509
12538
|
}
|
|
12510
12539
|
try {
|
|
12511
|
-
resolveModulePath(
|
|
12540
|
+
resolveModulePath(join10(frameworkName, "preset"), {
|
|
12512
12541
|
extensions: [".mjs", ".js", ".cjs"],
|
|
12513
12542
|
conditions: ["node", "import", "require"]
|
|
12514
12543
|
});
|
|
@@ -12563,14 +12592,14 @@ async function formatWithEditorConfig(filePath, content) {
|
|
|
12563
12592
|
__name(formatWithEditorConfig, "formatWithEditorConfig");
|
|
12564
12593
|
|
|
12565
12594
|
// src/common/utils/get-story-id.ts
|
|
12566
|
-
var
|
|
12595
|
+
var import_ts_dedent9 = __toESM(require_dist(), 1);
|
|
12567
12596
|
import { relative as relative3 } from "node:path";
|
|
12568
12597
|
import { normalizeStories as normalizeStories2, normalizeStoryPath as normalizeStoryPath2 } from "storybook/internal/common";
|
|
12569
12598
|
import { sanitize as sanitize2, storyNameFromExport, toId } from "storybook/internal/csf";
|
|
12570
12599
|
|
|
12571
12600
|
// src/preview-api/modules/store/autoTitle.ts
|
|
12572
12601
|
import { once as once2 } from "storybook/internal/client-logger";
|
|
12573
|
-
var
|
|
12602
|
+
var import_ts_dedent8 = __toESM(require_dist(), 1);
|
|
12574
12603
|
var sanitize = /* @__PURE__ */ __name((parts) => {
|
|
12575
12604
|
if (parts.length === 0) {
|
|
12576
12605
|
return parts;
|
|
@@ -12593,7 +12622,7 @@ __name(pathJoin, "pathJoin");
|
|
|
12593
12622
|
var userOrAutoTitleFromSpecifier = /* @__PURE__ */ __name((fileName, entry, userTitle) => {
|
|
12594
12623
|
const { directory, importPathMatcher, titlePrefix = "" } = entry || {};
|
|
12595
12624
|
if (typeof fileName === "number") {
|
|
12596
|
-
once2.warn(
|
|
12625
|
+
once2.warn(import_ts_dedent8.dedent`
|
|
12597
12626
|
CSF Auto-title received a numeric fileName. This typically happens when
|
|
12598
12627
|
webpack is mis-configured in production mode. To force webpack to produce
|
|
12599
12628
|
filenames, set optimization.moduleIds = "named" in your webpack config.
|
|
@@ -12628,7 +12657,7 @@ async function getStoryId(data, options) {
|
|
|
12628
12657
|
configDir: options.configDir
|
|
12629
12658
|
});
|
|
12630
12659
|
if (autoTitle === void 0) {
|
|
12631
|
-
throw new Error(
|
|
12660
|
+
throw new Error(import_ts_dedent9.dedent`
|
|
12632
12661
|
The new story file was successfully generated, but we are unable to index it. Please ensure that the new Story file is matched by the 'stories' glob pattern in your Storybook configuration.
|
|
12633
12662
|
`);
|
|
12634
12663
|
}
|
|
@@ -12683,7 +12712,7 @@ import {
|
|
|
12683
12712
|
readConfig as readConfig2,
|
|
12684
12713
|
writeConfig as writeConfig2
|
|
12685
12714
|
} from "storybook/internal/csf-tools";
|
|
12686
|
-
import { logger as
|
|
12715
|
+
import { logger as logger9 } from "storybook/internal/node-logger";
|
|
12687
12716
|
|
|
12688
12717
|
// src/common/utils/get-addon-annotations.ts
|
|
12689
12718
|
function getAnnotationsName(addonName) {
|
|
@@ -12760,7 +12789,7 @@ async function getSyncedStorybookAddons(mainConfig, previewConfig, configDir) {
|
|
|
12760
12789
|
}
|
|
12761
12790
|
}
|
|
12762
12791
|
if (syncedAddons.length > 0) {
|
|
12763
|
-
|
|
12792
|
+
logger9.log(
|
|
12764
12793
|
`Synchronizing addons from main config in ${import_picocolors4.default.cyan(previewConfig.fileName)}:
|
|
12765
12794
|
${syncedAddons.map(import_picocolors4.default.magenta).join(", ")}`
|
|
12766
12795
|
);
|
|
@@ -12771,13 +12800,13 @@ __name(getSyncedStorybookAddons, "getSyncedStorybookAddons");
|
|
|
12771
12800
|
|
|
12772
12801
|
// src/common/js-package-manager/JsPackageManagerFactory.ts
|
|
12773
12802
|
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
12774
|
-
import { basename as basename2, parse as
|
|
12803
|
+
import { basename as basename2, parse as parse3, relative as relative4 } from "node:path";
|
|
12775
12804
|
|
|
12776
12805
|
// src/common/js-package-manager/BUNProxy.ts
|
|
12777
12806
|
import { readFileSync as readFileSync5 } from "node:fs";
|
|
12778
12807
|
import { platform } from "node:os";
|
|
12779
|
-
import { join as
|
|
12780
|
-
import { logger as
|
|
12808
|
+
import { join as join11 } from "node:path";
|
|
12809
|
+
import { logger as logger10 } from "storybook/internal/node-logger";
|
|
12781
12810
|
import { FindPackageVersionsError } from "storybook/internal/server-errors";
|
|
12782
12811
|
import sort from "semver/functions/sort.js";
|
|
12783
12812
|
var NPM_ERROR_REGEX = /npm ERR! code (\w+)/;
|
|
@@ -12835,7 +12864,7 @@ var BUNProxy = class extends JsPackageManager {
|
|
|
12835
12864
|
return `bunx ${pkg}${specifier ? `@${specifier}` : ""} ${args.join(" ")}`;
|
|
12836
12865
|
}
|
|
12837
12866
|
async getModulePackageJSON(packageName) {
|
|
12838
|
-
const wantedPath =
|
|
12867
|
+
const wantedPath = join11("node_modules", packageName, "package.json");
|
|
12839
12868
|
const packageJsonPath = up(wantedPath, { cwd: this.cwd, last: getProjectRoot() });
|
|
12840
12869
|
if (!packageJsonPath) {
|
|
12841
12870
|
return null;
|
|
@@ -12893,7 +12922,7 @@ var BUNProxy = class extends JsPackageManager {
|
|
|
12893
12922
|
const parsedOutput = JSON.parse(commandResult);
|
|
12894
12923
|
return this.mapDependencies(parsedOutput, pattern);
|
|
12895
12924
|
} catch (err) {
|
|
12896
|
-
|
|
12925
|
+
logger10.debug(`An issue occurred while trying to find dependencies metadata using npm.`);
|
|
12897
12926
|
return void 0;
|
|
12898
12927
|
}
|
|
12899
12928
|
}
|
|
@@ -13018,8 +13047,8 @@ var BUNProxy = class extends JsPackageManager {
|
|
|
13018
13047
|
// src/common/js-package-manager/NPMProxy.ts
|
|
13019
13048
|
import { readFileSync as readFileSync6 } from "node:fs";
|
|
13020
13049
|
import { platform as platform2 } from "node:os";
|
|
13021
|
-
import { join as
|
|
13022
|
-
import { logger as
|
|
13050
|
+
import { join as join12 } from "node:path";
|
|
13051
|
+
import { logger as logger11, prompt as prompt2 } from "storybook/internal/node-logger";
|
|
13023
13052
|
import { FindPackageVersionsError as FindPackageVersionsError2 } from "storybook/internal/server-errors";
|
|
13024
13053
|
import sort2 from "semver/functions/sort.js";
|
|
13025
13054
|
var NPM_ERROR_REGEX2 = /npm (ERR!|error) (code|errno) (\w+)/i;
|
|
@@ -13071,7 +13100,7 @@ var NPMProxy = class extends JsPackageManager {
|
|
|
13071
13100
|
return `npx ${pkg}${specifier ? `@${specifier}` : ""} ${args.join(" ")}`;
|
|
13072
13101
|
}
|
|
13073
13102
|
async getModulePackageJSON(packageName) {
|
|
13074
|
-
const wantedPath =
|
|
13103
|
+
const wantedPath = join12("node_modules", packageName, "package.json");
|
|
13075
13104
|
const packageJsonPath = up(wantedPath, { cwd: this.cwd, last: getProjectRoot() });
|
|
13076
13105
|
if (!packageJsonPath) {
|
|
13077
13106
|
return null;
|
|
@@ -13133,7 +13162,7 @@ var NPMProxy = class extends JsPackageManager {
|
|
|
13133
13162
|
const parsedOutput = JSON.parse(commandResult);
|
|
13134
13163
|
return this.mapDependencies(parsedOutput, pattern);
|
|
13135
13164
|
} catch (err) {
|
|
13136
|
-
|
|
13165
|
+
logger11.debug(`An issue occurred while trying to find dependencies metadata using npm.`);
|
|
13137
13166
|
return void 0;
|
|
13138
13167
|
}
|
|
13139
13168
|
}
|
|
@@ -13257,7 +13286,7 @@ var NPMProxy = class extends JsPackageManager {
|
|
|
13257
13286
|
|
|
13258
13287
|
// src/common/js-package-manager/PNPMProxy.ts
|
|
13259
13288
|
import { existsSync as existsSync6, readFileSync as readFileSync7 } from "node:fs";
|
|
13260
|
-
import { join as
|
|
13289
|
+
import { join as join13 } from "node:path";
|
|
13261
13290
|
import { pathToFileURL } from "node:url";
|
|
13262
13291
|
import { prompt as prompt3 } from "storybook/internal/node-logger";
|
|
13263
13292
|
import { FindPackageVersionsError as FindPackageVersionsError3 } from "storybook/internal/server-errors";
|
|
@@ -13360,7 +13389,7 @@ var PNPMProxy = class extends JsPackageManager {
|
|
|
13360
13389
|
const pkgLocator = pnpApi.findPackageLocator(resolvedPath);
|
|
13361
13390
|
const pkg = pnpApi.getPackageInformation(pkgLocator);
|
|
13362
13391
|
const packageJSON = JSON.parse(
|
|
13363
|
-
readFileSync7(
|
|
13392
|
+
readFileSync7(join13(pkg.packageLocation, "package.json"), "utf-8")
|
|
13364
13393
|
);
|
|
13365
13394
|
return packageJSON;
|
|
13366
13395
|
} catch (error) {
|
|
@@ -13370,7 +13399,7 @@ var PNPMProxy = class extends JsPackageManager {
|
|
|
13370
13399
|
return null;
|
|
13371
13400
|
}
|
|
13372
13401
|
}
|
|
13373
|
-
const wantedPath =
|
|
13402
|
+
const wantedPath = join13("node_modules", packageName, "package.json");
|
|
13374
13403
|
const packageJsonPath = up(wantedPath, { cwd: this.cwd, last: getProjectRoot() });
|
|
13375
13404
|
if (!packageJsonPath) {
|
|
13376
13405
|
return null;
|
|
@@ -13483,7 +13512,7 @@ var PNPMProxy = class extends JsPackageManager {
|
|
|
13483
13512
|
|
|
13484
13513
|
// src/common/js-package-manager/Yarn1Proxy.ts
|
|
13485
13514
|
import { readFileSync as readFileSync8 } from "node:fs";
|
|
13486
|
-
import { join as
|
|
13515
|
+
import { join as join14 } from "node:path";
|
|
13487
13516
|
import process2 from "node:process";
|
|
13488
13517
|
import { prompt as prompt4 } from "storybook/internal/node-logger";
|
|
13489
13518
|
import { FindPackageVersionsError as FindPackageVersionsError4 } from "storybook/internal/server-errors";
|
|
@@ -13534,7 +13563,7 @@ var Yarn1Proxy = class extends JsPackageManager {
|
|
|
13534
13563
|
return this.executeCommand({ command: `yarn`, args: [command, ...args], cwd, stdio });
|
|
13535
13564
|
}
|
|
13536
13565
|
async getModulePackageJSON(packageName) {
|
|
13537
|
-
const wantedPath =
|
|
13566
|
+
const wantedPath = join14("node_modules", packageName, "package.json");
|
|
13538
13567
|
const packageJsonPath = up(wantedPath, { cwd: this.cwd, last: getProjectRoot() });
|
|
13539
13568
|
if (!packageJsonPath) {
|
|
13540
13569
|
return null;
|
|
@@ -13673,7 +13702,7 @@ var Yarn1Proxy = class extends JsPackageManager {
|
|
|
13673
13702
|
var import_fslib = __toESM(require_lib(), 1);
|
|
13674
13703
|
var import_libzip = __toESM(require_sync(), 1);
|
|
13675
13704
|
import { readFileSync as readFileSync9 } from "node:fs";
|
|
13676
|
-
import { join as
|
|
13705
|
+
import { join as join15 } from "node:path";
|
|
13677
13706
|
import { pathToFileURL as pathToFileURL2 } from "node:url";
|
|
13678
13707
|
import { prompt as prompt5 } from "storybook/internal/node-logger";
|
|
13679
13708
|
import { FindPackageVersionsError as FindPackageVersionsError5 } from "storybook/internal/server-errors";
|
|
@@ -13808,7 +13837,7 @@ var Yarn2Proxy = class extends JsPackageManager {
|
|
|
13808
13837
|
});
|
|
13809
13838
|
const virtualFs = new import_fslib.VirtualFS({ baseFs: zipOpenFs });
|
|
13810
13839
|
const crossFs = new import_fslib.PosixFS(virtualFs);
|
|
13811
|
-
const virtualPath =
|
|
13840
|
+
const virtualPath = join15(pkg.packageLocation, "package.json");
|
|
13812
13841
|
return crossFs.readJsonSync(virtualPath);
|
|
13813
13842
|
} catch (error) {
|
|
13814
13843
|
if (error.code !== "ERR_MODULE_NOT_FOUND") {
|
|
@@ -13817,7 +13846,7 @@ var Yarn2Proxy = class extends JsPackageManager {
|
|
|
13817
13846
|
return null;
|
|
13818
13847
|
}
|
|
13819
13848
|
}
|
|
13820
|
-
const wantedPath =
|
|
13849
|
+
const wantedPath = join15("node_modules", packageName, "package.json");
|
|
13821
13850
|
const packageJsonPath = up(wantedPath, {
|
|
13822
13851
|
cwd: this.primaryPackageJson.operationDir,
|
|
13823
13852
|
last: getProjectRoot()
|
|
@@ -13970,8 +13999,8 @@ var JsPackageManagerFactory = class {
|
|
|
13970
13999
|
up(BUN_LOCKFILE, { cwd, last: root }),
|
|
13971
14000
|
up(BUN_LOCKFILE_BINARY, { cwd, last: root })
|
|
13972
14001
|
].filter(Boolean).sort((a, b) => {
|
|
13973
|
-
const dirA =
|
|
13974
|
-
const dirB =
|
|
14002
|
+
const dirA = parse3(a).dir;
|
|
14003
|
+
const dirB = parse3(b).dir;
|
|
13975
14004
|
const compare = relative4(dirA, dirB);
|
|
13976
14005
|
if (dirA === dirB) {
|
|
13977
14006
|
return 0;
|
|
@@ -14130,7 +14159,7 @@ async function scanAndTransformFiles({
|
|
|
14130
14159
|
initial: defaultGlob
|
|
14131
14160
|
});
|
|
14132
14161
|
console.log("Scanning for affected files...");
|
|
14133
|
-
const globby = (await import("./globby-
|
|
14162
|
+
const globby = (await import("./globby-HUMXQF7C.js")).globby;
|
|
14134
14163
|
const sourceFiles = await globby([glob2], {
|
|
14135
14164
|
...commonGlobOptions(""),
|
|
14136
14165
|
ignore: ["**/node_modules/**"],
|
|
@@ -14144,7 +14173,7 @@ async function scanAndTransformFiles({
|
|
|
14144
14173
|
__name(scanAndTransformFiles, "scanAndTransformFiles");
|
|
14145
14174
|
|
|
14146
14175
|
// src/common/utils/transform-imports.ts
|
|
14147
|
-
import { readFile as
|
|
14176
|
+
import { readFile as readFile6, writeFile as writeFile4 } from "node:fs/promises";
|
|
14148
14177
|
function transformImports(source, renamedImports) {
|
|
14149
14178
|
let hasChanges = false;
|
|
14150
14179
|
let transformed = source;
|
|
@@ -14160,16 +14189,16 @@ function transformImports(source, renamedImports) {
|
|
|
14160
14189
|
__name(transformImports, "transformImports");
|
|
14161
14190
|
var transformImportFiles = /* @__PURE__ */ __name(async (files, renamedImports, dryRun) => {
|
|
14162
14191
|
const errors = [];
|
|
14163
|
-
const { default: pLimit } = await import("./p-limit-
|
|
14192
|
+
const { default: pLimit } = await import("./p-limit-JSCSHFNF.js");
|
|
14164
14193
|
const limit = pLimit(10);
|
|
14165
14194
|
await Promise.all(
|
|
14166
14195
|
files.map(
|
|
14167
14196
|
(file) => limit(async () => {
|
|
14168
14197
|
try {
|
|
14169
|
-
const contents = await
|
|
14198
|
+
const contents = await readFile6(file, "utf-8");
|
|
14170
14199
|
const transformed = transformImports(contents, renamedImports);
|
|
14171
14200
|
if (!dryRun && transformed) {
|
|
14172
|
-
await
|
|
14201
|
+
await writeFile4(file, transformed);
|
|
14173
14202
|
}
|
|
14174
14203
|
} catch (error) {
|
|
14175
14204
|
errors.push({ file, error });
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_5dt5laqry3q from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_5dt5laqry3q from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_5dt5laqry3q from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_5dt5laqry3q.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_5dt5laqry3q.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_5dt5laqry3q.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_dist
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-LTKYC6VP.js";
|
|
15
15
|
import {
|
|
16
16
|
require_picocolors
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-2RLHFYFA.js";
|
|
18
18
|
import {
|
|
19
19
|
__name,
|
|
20
20
|
__toESM
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-CALGSUC5.js";
|
|
22
22
|
|
|
23
23
|
// src/server-errors.ts
|
|
24
24
|
var import_picocolors = __toESM(require_picocolors(), 1);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_5dt5laqry3q from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_5dt5laqry3q from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_5dt5laqry3q from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_5dt5laqry3q.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_5dt5laqry3q.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_5dt5laqry3q.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-CALGSUC5.js";
|
|
15
15
|
|
|
16
16
|
// ../node_modules/tiny-invariant/dist/esm/tiny-invariant.js
|
|
17
17
|
var isProduction = process.env.NODE_ENV === "production";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_5dt5laqry3q from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_5dt5laqry3q from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_5dt5laqry3q from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_5dt5laqry3q.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_5dt5laqry3q.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_5dt5laqry3q.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_5dt5laqry3q from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_5dt5laqry3q from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_5dt5laqry3q from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_5dt5laqry3q.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_5dt5laqry3q.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_5dt5laqry3q.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-CALGSUC5.js";
|
|
15
15
|
|
|
16
16
|
// ../node_modules/slash/index.js
|
|
17
17
|
function slash(path) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_5dt5laqry3q from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_5dt5laqry3q from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_5dt5laqry3q from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_5dt5laqry3q.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_5dt5laqry3q.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_5dt5laqry3q.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
|
__name,
|
|
14
14
|
__require
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-CALGSUC5.js";
|
|
16
16
|
|
|
17
17
|
// ../node_modules/@storybook/docs-mdx/dist/chunk-H6DQNFQR.js
|
|
18
18
|
var __create = Object.create;
|