storybook 10.1.0-alpha.0 → 10.1.0-alpha.1
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-OTO33TIA.js → builder-manager-6UBDPV7P.js} +12 -12
- package/dist/_node-chunks/camelcase-WKJOVNPM.js +18 -0
- package/dist/_node-chunks/{chunk-VW3GGAQI.js → chunk-2RIKHYCS.js} +12 -12
- package/dist/_node-chunks/{chunk-6M2IPO4E.js → chunk-3FPF5Y2F.js} +6 -6
- package/dist/_node-chunks/{chunk-NTB3C5XQ.js → chunk-3JCSHYSU.js} +7 -7
- package/dist/_node-chunks/{chunk-OYGAWJQE.js → chunk-4GE6Q4MX.js} +7 -7
- package/dist/_node-chunks/{chunk-FWW4IJCM.js → chunk-5SEHHENC.js} +10 -10
- package/dist/_node-chunks/{chunk-O4KUWXD6.js → chunk-6GD23U64.js} +8 -8
- package/dist/_node-chunks/{chunk-O3OJUFKU.js → chunk-6OAXYS5T.js} +8 -8
- package/dist/_node-chunks/{chunk-RR6Q3657.js → chunk-7TNUMFKR.js} +9 -9
- package/dist/_node-chunks/{chunk-RKANIOER.js → chunk-BCDHUXAJ.js} +8 -8
- package/dist/_node-chunks/{chunk-HHTKRAIE.js → chunk-BYVQZ2HU.js} +25 -7
- package/dist/_node-chunks/{chunk-AITYHU22.js → chunk-CJHAP7SE.js} +7 -7
- package/dist/_node-chunks/{chunk-SV7ZHC5Z.js → chunk-DAMVKHAC.js} +7 -7
- package/dist/_node-chunks/{chunk-2WZNP46P.js → chunk-FEOC7OX2.js} +8 -8
- package/dist/_node-chunks/{chunk-Q6QFW2Y7.js → chunk-FY7XZPLY.js} +8 -8
- package/dist/_node-chunks/{chunk-6C7OBGYG.js → chunk-GD2FXWDF.js} +7 -7
- package/dist/_node-chunks/chunk-HM6B7FE5.js +18 -0
- package/dist/_node-chunks/{chunk-QOI32MCO.js → chunk-HORWITP7.js} +7 -7
- package/dist/_node-chunks/{chunk-L5WAZZY3.js → chunk-II4AFH3V.js} +7 -7
- package/dist/_node-chunks/{chunk-NTAOH664.js → chunk-J7N7PD5Q.js} +9 -9
- package/dist/_node-chunks/{chunk-YS6OLN4N.js → chunk-LAU7VVPC.js} +7 -7
- package/dist/_node-chunks/{chunk-3ICYWJ3N.js → chunk-MF2PUEWG.js} +7 -7
- package/dist/_node-chunks/{chunk-27W6KHQ2.js → chunk-QNUGJO6L.js} +7 -7
- package/dist/_node-chunks/{chunk-LOF6SIRE.js → chunk-RVE4UTVQ.js} +12 -12
- package/dist/_node-chunks/{chunk-ZFRTME73.js → chunk-SCTKVDWR.js} +21 -21
- package/dist/_node-chunks/{chunk-HYNQ2IX4.js → chunk-TUFWZUTO.js} +7 -7
- package/dist/_node-chunks/{chunk-XI2VU32X.js → chunk-TXHNWNH4.js} +7 -7
- package/dist/_node-chunks/{chunk-A6T2YN75.js → chunk-ULWNTI6M.js} +15 -15
- package/dist/_node-chunks/{chunk-Q4CZSEBO.js → chunk-VYRFXLRO.js} +7 -7
- package/dist/_node-chunks/{chunk-FDDQACQD.js → chunk-WNOSTIYP.js} +7 -7
- package/dist/_node-chunks/{chunk-EFJRT54D.js → chunk-X67VGZN4.js} +7 -7
- package/dist/_node-chunks/{chunk-VL6WDGIU.js → chunk-XCEBYOA4.js} +6 -6
- package/dist/_node-chunks/{chunk-HIGKW2KB.js → chunk-XW7YMR7I.js} +7 -7
- package/dist/_node-chunks/chunk-ZRFYQ46H.js +61 -0
- package/dist/_node-chunks/{dist-BA2GAJJB.js → dist-APCKHSY3.js} +9 -9
- package/dist/_node-chunks/{globby-4HAI4KJH.js → globby-TSGXGDA2.js} +9 -9
- package/dist/_node-chunks/{lib-ITRY6RT7.js → lib-DZ5TVIU5.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-7PULFTZI.js → mdx-N42X6CFJ-Z6BYQCPN.js} +8 -8
- package/dist/_node-chunks/{p-limit-63FY4KTG.js → p-limit-MLJNGG2K.js} +7 -7
- package/dist/_node-chunks/{plugin-2BSKCSMA.js → plugin-HJLCLGNT.js} +10 -10
- package/dist/_node-chunks/{plugin-JEBMTDIB.js → plugin-J3JI3ZKJ.js} +10 -10
- package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-AZ7YPMMD.js → webpack-inject-mocker-runtime-plugin-3QHNTM5B.js} +10 -10
- package/dist/_node-chunks/{webpack-mock-plugin-7IF6PA2O.js → webpack-mock-plugin-4Y3MWPJ6.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 +9 -9
- package/dist/cli/index.js +21 -21
- package/dist/common/index.js +20 -20
- package/dist/core-server/index.js +96 -97
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +27 -27
- 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 +1 -1
- package/dist/manager-api/index.js +1 -1
- package/dist/node-logger/index.js +14 -14
- package/dist/preview-api/index.d.ts +68 -67
- package/dist/server-errors.js +10 -10
- package/dist/telemetry/index.js +24 -24
- package/package.json +1 -1
- package/dist/_node-chunks/camelcase-HURSU73A.js +0 -18
- package/dist/_node-chunks/chunk-P7ZABCRS.js +0 -18
- package/dist/_node-chunks/chunk-QWBT2XCX.js +0 -61
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_in4hyfgp7kn from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_in4hyfgp7kn from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_in4hyfgp7kn from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_in4hyfgp7kn.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_in4hyfgp7kn.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_in4hyfgp7kn.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
|
detectPnp
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-RVE4UTVQ.js";
|
|
15
15
|
import {
|
|
16
16
|
require_pretty_hrtime
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-HORWITP7.js";
|
|
18
18
|
import {
|
|
19
19
|
boxen,
|
|
20
20
|
require_string_width
|
|
21
|
-
} from "../_node-chunks/chunk-
|
|
22
|
-
import "../_node-chunks/chunk-
|
|
21
|
+
} from "../_node-chunks/chunk-FEOC7OX2.js";
|
|
22
|
+
import "../_node-chunks/chunk-DAMVKHAC.js";
|
|
23
23
|
import {
|
|
24
24
|
StatusTypeIdMismatchError,
|
|
25
25
|
StorybookError
|
|
26
|
-
} from "../_node-chunks/chunk-
|
|
26
|
+
} from "../_node-chunks/chunk-J7N7PD5Q.js";
|
|
27
27
|
import {
|
|
28
28
|
getErrorLevel,
|
|
29
29
|
mapStaticDir,
|
|
@@ -31,59 +31,61 @@ import {
|
|
|
31
31
|
sendTelemetryError,
|
|
32
32
|
useStatics,
|
|
33
33
|
withTelemetry
|
|
34
|
-
} from "../_node-chunks/chunk-
|
|
35
|
-
import "../_node-chunks/chunk-
|
|
34
|
+
} from "../_node-chunks/chunk-2RIKHYCS.js";
|
|
35
|
+
import "../_node-chunks/chunk-GD2FXWDF.js";
|
|
36
36
|
import {
|
|
37
37
|
telemetry
|
|
38
|
-
} from "../_node-chunks/chunk-
|
|
39
|
-
import "../_node-chunks/chunk-
|
|
38
|
+
} from "../_node-chunks/chunk-ULWNTI6M.js";
|
|
39
|
+
import "../_node-chunks/chunk-HM6B7FE5.js";
|
|
40
40
|
import {
|
|
41
41
|
userOrAutoTitleFromSpecifier
|
|
42
|
-
} from "../_node-chunks/chunk-
|
|
43
|
-
import "../_node-chunks/chunk-
|
|
44
|
-
import "../_node-chunks/chunk-
|
|
45
|
-
import "../_node-chunks/chunk-
|
|
42
|
+
} from "../_node-chunks/chunk-SCTKVDWR.js";
|
|
43
|
+
import "../_node-chunks/chunk-4GE6Q4MX.js";
|
|
44
|
+
import "../_node-chunks/chunk-ZRFYQ46H.js";
|
|
45
|
+
import "../_node-chunks/chunk-BCDHUXAJ.js";
|
|
46
46
|
import {
|
|
47
47
|
optionalEnvToBoolean,
|
|
48
48
|
require_cross_spawn
|
|
49
|
-
} from "../_node-chunks/chunk-
|
|
49
|
+
} from "../_node-chunks/chunk-7TNUMFKR.js";
|
|
50
50
|
import {
|
|
51
51
|
up2 as up
|
|
52
|
-
} from "../_node-chunks/chunk-
|
|
53
|
-
import "../_node-chunks/chunk-
|
|
52
|
+
} from "../_node-chunks/chunk-TXHNWNH4.js";
|
|
53
|
+
import "../_node-chunks/chunk-XW7YMR7I.js";
|
|
54
54
|
import {
|
|
55
55
|
invariant
|
|
56
|
-
} from "../_node-chunks/chunk-
|
|
56
|
+
} from "../_node-chunks/chunk-WNOSTIYP.js";
|
|
57
57
|
import {
|
|
58
58
|
importModule,
|
|
59
59
|
resolvePackageDir
|
|
60
|
-
} from "../_node-chunks/chunk-
|
|
60
|
+
} from "../_node-chunks/chunk-6OAXYS5T.js";
|
|
61
61
|
import {
|
|
62
|
+
join,
|
|
63
|
+
relative,
|
|
62
64
|
resolve
|
|
63
|
-
} from "../_node-chunks/chunk-
|
|
65
|
+
} from "../_node-chunks/chunk-BYVQZ2HU.js";
|
|
64
66
|
import {
|
|
65
67
|
require_prompts
|
|
66
|
-
} from "../_node-chunks/chunk-
|
|
67
|
-
import "../_node-chunks/chunk-
|
|
68
|
+
} from "../_node-chunks/chunk-MF2PUEWG.js";
|
|
69
|
+
import "../_node-chunks/chunk-VYRFXLRO.js";
|
|
68
70
|
import {
|
|
69
71
|
slash
|
|
70
|
-
} from "../_node-chunks/chunk-
|
|
72
|
+
} from "../_node-chunks/chunk-II4AFH3V.js";
|
|
71
73
|
import {
|
|
72
74
|
require_dist
|
|
73
|
-
} from "../_node-chunks/chunk-
|
|
75
|
+
} from "../_node-chunks/chunk-TUFWZUTO.js";
|
|
74
76
|
import {
|
|
75
77
|
require_lib,
|
|
76
78
|
require_src
|
|
77
|
-
} from "../_node-chunks/chunk-
|
|
79
|
+
} from "../_node-chunks/chunk-LAU7VVPC.js";
|
|
78
80
|
import {
|
|
79
81
|
require_picocolors
|
|
80
|
-
} from "../_node-chunks/chunk-
|
|
82
|
+
} from "../_node-chunks/chunk-QNUGJO6L.js";
|
|
81
83
|
import {
|
|
82
84
|
__commonJS,
|
|
83
85
|
__name,
|
|
84
86
|
__require,
|
|
85
87
|
__toESM
|
|
86
|
-
} from "../_node-chunks/chunk-
|
|
88
|
+
} from "../_node-chunks/chunk-XCEBYOA4.js";
|
|
87
89
|
|
|
88
90
|
// ../node_modules/tsconfig-paths/lib/filesystem.js
|
|
89
91
|
var require_filesystem = __commonJS({
|
|
@@ -1827,7 +1829,7 @@ var require_parse_chunked = __commonJS({
|
|
|
1827
1829
|
module.exports = function(chunkEmitter) {
|
|
1828
1830
|
let parser = new ChunkParser();
|
|
1829
1831
|
if (isObject(chunkEmitter) && isReadableStream(chunkEmitter)) {
|
|
1830
|
-
return new Promise((
|
|
1832
|
+
return new Promise((resolve4, reject) => {
|
|
1831
1833
|
chunkEmitter.on("data", (chunk) => {
|
|
1832
1834
|
try {
|
|
1833
1835
|
parser.push(chunk);
|
|
@@ -1840,7 +1842,7 @@ var require_parse_chunked = __commonJS({
|
|
|
1840
1842
|
reject(e);
|
|
1841
1843
|
}).on("end", () => {
|
|
1842
1844
|
try {
|
|
1843
|
-
|
|
1845
|
+
resolve4(parser.finish());
|
|
1844
1846
|
} catch (e) {
|
|
1845
1847
|
reject(adjustPosition(e, parser));
|
|
1846
1848
|
} finally {
|
|
@@ -1852,12 +1854,12 @@ var require_parse_chunked = __commonJS({
|
|
|
1852
1854
|
if (typeof chunkEmitter === "function") {
|
|
1853
1855
|
const iterator = chunkEmitter();
|
|
1854
1856
|
if (isObject(iterator) && (Symbol.iterator in iterator || Symbol.asyncIterator in iterator)) {
|
|
1855
|
-
return new Promise(async (
|
|
1857
|
+
return new Promise(async (resolve4, reject) => {
|
|
1856
1858
|
try {
|
|
1857
1859
|
for await (const chunk of iterator) {
|
|
1858
1860
|
parser.push(chunk);
|
|
1859
1861
|
}
|
|
1860
|
-
|
|
1862
|
+
resolve4(parser.finish());
|
|
1861
1863
|
} catch (e) {
|
|
1862
1864
|
reject(adjustPosition(e, parser));
|
|
1863
1865
|
} finally {
|
|
@@ -6585,9 +6587,9 @@ var require_detect_port = __commonJS({
|
|
|
6585
6587
|
if (typeof callback === "function") {
|
|
6586
6588
|
return tryListen(port, maxPort, hostname, callback);
|
|
6587
6589
|
}
|
|
6588
|
-
return new Promise((
|
|
6590
|
+
return new Promise((resolve4) => {
|
|
6589
6591
|
tryListen(port, maxPort, hostname, (_, realPort) => {
|
|
6590
|
-
|
|
6592
|
+
resolve4(realPort);
|
|
6591
6593
|
});
|
|
6592
6594
|
});
|
|
6593
6595
|
};
|
|
@@ -6668,7 +6670,7 @@ var require_wait_port = __commonJS({
|
|
|
6668
6670
|
"use strict";
|
|
6669
6671
|
var debug = require_src()("wait-port");
|
|
6670
6672
|
var detect = require_detect_port();
|
|
6671
|
-
var sleep = /* @__PURE__ */ __name((ms) => new Promise((
|
|
6673
|
+
var sleep = /* @__PURE__ */ __name((ms) => new Promise((resolve4) => setTimeout(resolve4, ms)), "sleep");
|
|
6672
6674
|
async function waitPort(port, options = {}) {
|
|
6673
6675
|
const { retryInterval = 1e3, retries = Infinity } = options;
|
|
6674
6676
|
let count = 1;
|
|
@@ -8471,10 +8473,8 @@ var require_cli_table3 = __commonJS({
|
|
|
8471
8473
|
import { getPreviewHeadTemplate, getPreviewBodyTemplate } from "storybook/internal/common";
|
|
8472
8474
|
|
|
8473
8475
|
// src/core-server/build-static.ts
|
|
8474
|
-
var import_picocolors4 = __toESM(require_picocolors(), 1);
|
|
8475
8476
|
import { cp as cp2, mkdir } from "node:fs/promises";
|
|
8476
8477
|
import { rm } from "node:fs/promises";
|
|
8477
|
-
import { join as join5, relative as relative4, resolve as resolve4 } from "node:path";
|
|
8478
8478
|
import {
|
|
8479
8479
|
loadAllPresets,
|
|
8480
8480
|
loadMainConfig,
|
|
@@ -8485,11 +8485,12 @@ import {
|
|
|
8485
8485
|
import { logger as logger4 } from "storybook/internal/node-logger";
|
|
8486
8486
|
import { getPrecedingUpgrade, telemetry as telemetry2 } from "storybook/internal/telemetry";
|
|
8487
8487
|
import { global as global2 } from "@storybook/global";
|
|
8488
|
+
var import_picocolors4 = __toESM(require_picocolors(), 1);
|
|
8488
8489
|
|
|
8489
8490
|
// src/core-server/utils/StoryIndexGenerator.ts
|
|
8490
8491
|
import { existsSync } from "node:fs";
|
|
8491
8492
|
import { readFile } from "node:fs/promises";
|
|
8492
|
-
import { dirname, extname, join, normalize, relative, resolve as resolve2, sep } from "node:path";
|
|
8493
|
+
import { dirname, extname, join as join2, normalize, relative as relative2, resolve as resolve2, sep } from "node:path";
|
|
8493
8494
|
import { commonGlobOptions, getProjectRoot, normalizeStoryPath } from "storybook/internal/common";
|
|
8494
8495
|
import { combineTags, storyNameFromExport, toId } from "storybook/internal/csf";
|
|
8495
8496
|
import { getStorySortParameter, loadConfig } from "storybook/internal/csf-tools";
|
|
@@ -8683,7 +8684,7 @@ function isMdxEntry({ tags }) {
|
|
|
8683
8684
|
return tags?.includes(UNATTACHED_MDX_TAG) || tags?.includes(ATTACHED_MDX_TAG);
|
|
8684
8685
|
}
|
|
8685
8686
|
__name(isMdxEntry, "isMdxEntry");
|
|
8686
|
-
var makeAbsolute = /* @__PURE__ */ __name((otherImport, normalizedPath, workingDir) => otherImport.startsWith(".") ? slash(resolve2(workingDir, normalizeStoryPath(
|
|
8687
|
+
var makeAbsolute = /* @__PURE__ */ __name((otherImport, normalizedPath, workingDir) => otherImport.startsWith(".") ? slash(resolve2(workingDir, normalizeStoryPath(join2(dirname(normalizedPath), otherImport)))) : otherImport, "makeAbsolute");
|
|
8687
8688
|
var StoryIndexGenerator = class _StoryIndexGenerator {
|
|
8688
8689
|
constructor(specifiers, options) {
|
|
8689
8690
|
this.specifiers = specifiers;
|
|
@@ -8717,8 +8718,8 @@ var StoryIndexGenerator = class _StoryIndexGenerator {
|
|
|
8717
8718
|
return cached;
|
|
8718
8719
|
}
|
|
8719
8720
|
const pathToSubIndex = {};
|
|
8720
|
-
const fullGlob = slash(
|
|
8721
|
-
const { globby } = await import("../_node-chunks/globby-
|
|
8721
|
+
const fullGlob = slash(join2(specifier.directory, specifier.files));
|
|
8722
|
+
const { globby } = await import("../_node-chunks/globby-TSGXGDA2.js");
|
|
8722
8723
|
const files = await globby(fullGlob, {
|
|
8723
8724
|
absolute: true,
|
|
8724
8725
|
cwd: workingDir,
|
|
@@ -8727,14 +8728,14 @@ var StoryIndexGenerator = class _StoryIndexGenerator {
|
|
|
8727
8728
|
if (files.length === 0 && !ignoreWarnings) {
|
|
8728
8729
|
once.warn(
|
|
8729
8730
|
`No story files found for the specified pattern: ${import_picocolors.default.blue(
|
|
8730
|
-
|
|
8731
|
+
join2(specifier.directory, specifier.files)
|
|
8731
8732
|
)}`
|
|
8732
8733
|
);
|
|
8733
8734
|
}
|
|
8734
8735
|
files.sort().forEach((absolutePath) => {
|
|
8735
8736
|
const ext = extname(absolutePath);
|
|
8736
8737
|
if (ext === ".storyshot") {
|
|
8737
|
-
const relativePath =
|
|
8738
|
+
const relativePath = relative2(workingDir, absolutePath);
|
|
8738
8739
|
logger.info(`Skipping ${ext} file ${relativePath}`);
|
|
8739
8740
|
return;
|
|
8740
8741
|
}
|
|
@@ -8786,7 +8787,7 @@ var StoryIndexGenerator = class _StoryIndexGenerator {
|
|
|
8786
8787
|
try {
|
|
8787
8788
|
entry[absolutePath] = await updater(specifier, absolutePath, entry[absolutePath]);
|
|
8788
8789
|
} catch (err) {
|
|
8789
|
-
const relativePath = `.${sep}${
|
|
8790
|
+
const relativePath = `.${sep}${relative2(this.options.workingDir, absolutePath)}`;
|
|
8790
8791
|
entry[absolutePath] = {
|
|
8791
8792
|
type: "error",
|
|
8792
8793
|
err: new IndexingError(
|
|
@@ -8874,13 +8875,13 @@ var StoryIndexGenerator = class _StoryIndexGenerator {
|
|
|
8874
8875
|
const absoluteComponentPath = resolve2(dirname(absolutePath), rawPath);
|
|
8875
8876
|
const existing = ["", ".js", ".ts", ".jsx", ".tsx", ".mjs", ".mts"].map((ext) => `${absoluteComponentPath}${ext}`).find((candidate) => existsSync(candidate));
|
|
8876
8877
|
if (existing) {
|
|
8877
|
-
const relativePath =
|
|
8878
|
+
const relativePath = relative2(this.options.workingDir, existing);
|
|
8878
8879
|
return slash(normalizeStoryPath(relativePath));
|
|
8879
8880
|
}
|
|
8880
8881
|
return rawComponentPath;
|
|
8881
8882
|
}
|
|
8882
8883
|
async extractStories(specifier, absolutePath, projectTags = []) {
|
|
8883
|
-
const relativePath =
|
|
8884
|
+
const relativePath = relative2(this.options.workingDir, absolutePath);
|
|
8884
8885
|
const importPath = slash(normalizeStoryPath(relativePath));
|
|
8885
8886
|
const defaultMakeTitle = /* @__PURE__ */ __name((userTitle) => {
|
|
8886
8887
|
const title = userOrAutoTitleFromSpecifier(importPath, specifier, userTitle);
|
|
@@ -8971,12 +8972,12 @@ var StoryIndexGenerator = class _StoryIndexGenerator {
|
|
|
8971
8972
|
};
|
|
8972
8973
|
}
|
|
8973
8974
|
async extractDocs(specifier, absolutePath, projectTags = []) {
|
|
8974
|
-
const relativePath =
|
|
8975
|
+
const relativePath = relative2(this.options.workingDir, absolutePath);
|
|
8975
8976
|
try {
|
|
8976
8977
|
const normalizedPath = normalizeStoryPath(relativePath);
|
|
8977
8978
|
const importPath = slash(normalizedPath);
|
|
8978
8979
|
const content = await readFile(absolutePath, { encoding: "utf8" });
|
|
8979
|
-
const { analyze } = await import("../_node-chunks/dist-
|
|
8980
|
+
const { analyze } = await import("../_node-chunks/dist-APCKHSY3.js");
|
|
8980
8981
|
const result = await analyze(content);
|
|
8981
8982
|
if (result.isTemplate) {
|
|
8982
8983
|
return false;
|
|
@@ -9223,7 +9224,7 @@ var StoryIndexGenerator = class _StoryIndexGenerator {
|
|
|
9223
9224
|
this.lastError = null;
|
|
9224
9225
|
}
|
|
9225
9226
|
async getPreviewCode() {
|
|
9226
|
-
const previewFile = ["js", "jsx", "ts", "tsx", "mjs", "cjs", "mts"].map((ext) =>
|
|
9227
|
+
const previewFile = ["js", "jsx", "ts", "tsx", "mjs", "cjs", "mts"].map((ext) => join2(this.options.configDir, `preview.${ext}`)).find((fname) => existsSync(fname));
|
|
9227
9228
|
return previewFile && (await readFile(previewFile, { encoding: "utf8" })).toString();
|
|
9228
9229
|
}
|
|
9229
9230
|
getProjectTags(previewCode) {
|
|
@@ -9280,7 +9281,7 @@ __name(buildOrThrow, "buildOrThrow");
|
|
|
9280
9281
|
// src/core-server/utils/copy-all-static-files.ts
|
|
9281
9282
|
var import_picocolors2 = __toESM(require_picocolors(), 1);
|
|
9282
9283
|
import { cp } from "node:fs/promises";
|
|
9283
|
-
import { join as
|
|
9284
|
+
import { join as join3, relative as relative3 } from "node:path";
|
|
9284
9285
|
import { getDirectoryFromWorkingDir } from "storybook/internal/common";
|
|
9285
9286
|
import { logger as logger2 } from "storybook/internal/node-logger";
|
|
9286
9287
|
async function copyAllStaticFilesRelativeToMain(staticDirs, outputDir, configDir) {
|
|
@@ -9295,8 +9296,8 @@ async function copyAllStaticFilesRelativeToMain(staticDirs, outputDir, configDir
|
|
|
9295
9296
|
directory: staticDirAndTarget
|
|
9296
9297
|
})
|
|
9297
9298
|
);
|
|
9298
|
-
const targetPath =
|
|
9299
|
-
const skipPaths = ["index.html", "iframe.html"].map((f) =>
|
|
9299
|
+
const targetPath = join3(outputDir, to);
|
|
9300
|
+
const skipPaths = ["index.html", "iframe.html"].map((f) => join3(outputDir, f));
|
|
9300
9301
|
if (!from.includes("node_modules")) {
|
|
9301
9302
|
logger2.info(
|
|
9302
9303
|
`=> Copying static files: ${import_picocolors2.default.cyan(print(from))} at ${import_picocolors2.default.cyan(print(targetPath))}`
|
|
@@ -9312,14 +9313,14 @@ async function copyAllStaticFilesRelativeToMain(staticDirs, outputDir, configDir
|
|
|
9312
9313
|
}
|
|
9313
9314
|
__name(copyAllStaticFilesRelativeToMain, "copyAllStaticFilesRelativeToMain");
|
|
9314
9315
|
function print(p) {
|
|
9315
|
-
return
|
|
9316
|
+
return relative3(process.cwd(), p);
|
|
9316
9317
|
}
|
|
9317
9318
|
__name(print, "print");
|
|
9318
9319
|
|
|
9319
9320
|
// src/core-server/utils/get-builders.ts
|
|
9320
9321
|
import { MissingBuilderError } from "storybook/internal/server-errors";
|
|
9321
9322
|
async function getManagerBuilder() {
|
|
9322
|
-
return await import("../_node-chunks/builder-manager-
|
|
9323
|
+
return await import("../_node-chunks/builder-manager-6UBDPV7P.js");
|
|
9323
9324
|
}
|
|
9324
9325
|
__name(getManagerBuilder, "getManagerBuilder");
|
|
9325
9326
|
async function getPreviewBuilder(resolvedPreviewBuilder) {
|
|
@@ -9358,7 +9359,7 @@ __name(useStorybookMetadata, "useStorybookMetadata");
|
|
|
9358
9359
|
var import_json_ext = __toESM(require_src2(), 1);
|
|
9359
9360
|
var import_picocolors3 = __toESM(require_picocolors(), 1);
|
|
9360
9361
|
import { createWriteStream } from "node:fs";
|
|
9361
|
-
import { join as
|
|
9362
|
+
import { join as join4 } from "node:path";
|
|
9362
9363
|
import { logger as logger3 } from "storybook/internal/node-logger";
|
|
9363
9364
|
async function outputStats(directory, previewStats, managerStats) {
|
|
9364
9365
|
if (previewStats) {
|
|
@@ -9372,10 +9373,10 @@ async function outputStats(directory, previewStats, managerStats) {
|
|
|
9372
9373
|
}
|
|
9373
9374
|
__name(outputStats, "outputStats");
|
|
9374
9375
|
var writeStats = /* @__PURE__ */ __name(async (directory, name, stats) => {
|
|
9375
|
-
const filePath =
|
|
9376
|
+
const filePath = join4(directory, `${name}-stats.json`);
|
|
9376
9377
|
const { chunks, ...data } = stats.toJson();
|
|
9377
|
-
await new Promise((
|
|
9378
|
-
(0, import_json_ext.stringifyStream)(data, null, 2).on("error", reject).pipe(createWriteStream(filePath)).on("error", reject).on("finish",
|
|
9378
|
+
await new Promise((resolve4, reject) => {
|
|
9379
|
+
(0, import_json_ext.stringifyStream)(data, null, 2).on("error", reject).pipe(createWriteStream(filePath)).on("error", reject).on("finish", resolve4);
|
|
9379
9380
|
});
|
|
9380
9381
|
return filePath;
|
|
9381
9382
|
}, "writeStats");
|
|
@@ -9497,7 +9498,7 @@ var DEFAULT_RETRIES = Number.POSITIVE_INFINITY;
|
|
|
9497
9498
|
|
|
9498
9499
|
// src/core-server/utils/watch-story-specifiers.ts
|
|
9499
9500
|
import { lstatSync, readdirSync } from "node:fs";
|
|
9500
|
-
import { basename as basename2, join as
|
|
9501
|
+
import { basename as basename2, join as join5, relative as relative4, resolve as resolve3 } from "node:path";
|
|
9501
9502
|
import { commonGlobOptions as commonGlobOptions2 } from "storybook/internal/common";
|
|
9502
9503
|
var import_watchpack = __toESM(require_watchpack(), 1);
|
|
9503
9504
|
var isDirectory = /* @__PURE__ */ __name((directory) => {
|
|
@@ -9516,9 +9517,9 @@ function getNestedFilesAndDirectories(directories) {
|
|
|
9516
9517
|
}
|
|
9517
9518
|
readdirSync(directory, { withFileTypes: true }).forEach((ent) => {
|
|
9518
9519
|
if (ent.isDirectory()) {
|
|
9519
|
-
traverse(
|
|
9520
|
+
traverse(join5(directory, ent.name));
|
|
9520
9521
|
} else if (ent.isFile()) {
|
|
9521
|
-
files.add(
|
|
9522
|
+
files.add(join5(directory, ent.name));
|
|
9522
9523
|
}
|
|
9523
9524
|
});
|
|
9524
9525
|
traversedDirectories.add(directory);
|
|
@@ -9538,7 +9539,7 @@ function watchStorySpecifiers(specifiers, options, onInvalidate) {
|
|
|
9538
9539
|
});
|
|
9539
9540
|
wp.watch({ files, directories });
|
|
9540
9541
|
const toImportPath = /* @__PURE__ */ __name((absolutePath) => {
|
|
9541
|
-
const relativePath =
|
|
9542
|
+
const relativePath = relative4(options.workingDir, absolutePath);
|
|
9542
9543
|
return slash(relativePath.startsWith(".") ? relativePath : `./${relativePath}`);
|
|
9543
9544
|
}, "toImportPath");
|
|
9544
9545
|
async function onChangeOrRemove(absolutePath, removed) {
|
|
@@ -9551,14 +9552,14 @@ function watchStorySpecifiers(specifiers, options, onInvalidate) {
|
|
|
9551
9552
|
if (!removed && isDirectory(absolutePath)) {
|
|
9552
9553
|
await Promise.all(
|
|
9553
9554
|
specifiers.filter((specifier) => importPath.startsWith(specifier.directory)).map(async (specifier) => {
|
|
9554
|
-
const dirGlob =
|
|
9555
|
+
const dirGlob = join5(
|
|
9555
9556
|
absolutePath,
|
|
9556
9557
|
"**",
|
|
9557
9558
|
// files can be e.g. '**/foo/*/*.js' so we just want the last bit,
|
|
9558
9559
|
// because the directory could already be within the files part (e.g. './x/foo/bar')
|
|
9559
9560
|
basename2(specifier.files)
|
|
9560
9561
|
);
|
|
9561
|
-
const { globby } = await import("../_node-chunks/globby-
|
|
9562
|
+
const { globby } = await import("../_node-chunks/globby-TSGXGDA2.js");
|
|
9562
9563
|
const addedFiles = await globby(slash(dirGlob), commonGlobOptions2(dirGlob));
|
|
9563
9564
|
addedFiles.forEach((filePath) => {
|
|
9564
9565
|
const fileImportPath = toImportPath(filePath);
|
|
@@ -9762,10 +9763,10 @@ async function buildStaticStandalone(options) {
|
|
|
9762
9763
|
if (options.outputDir === "") {
|
|
9763
9764
|
throw new Error("Won't remove current directory. Check your outputDir!");
|
|
9764
9765
|
}
|
|
9765
|
-
options.outputDir =
|
|
9766
|
-
options.configDir =
|
|
9766
|
+
options.outputDir = resolve(options.outputDir);
|
|
9767
|
+
options.configDir = resolve(options.configDir);
|
|
9767
9768
|
logger4.info(
|
|
9768
|
-
`=> Cleaning outputDir: ${import_picocolors4.default.cyan(
|
|
9769
|
+
`=> Cleaning outputDir: ${import_picocolors4.default.cyan(relative(process.cwd(), options.outputDir))}`
|
|
9769
9770
|
);
|
|
9770
9771
|
if (options.outputDir === "/") {
|
|
9771
9772
|
throw new Error("Won't remove directory '/'. Check your outputDir!");
|
|
@@ -9778,11 +9779,11 @@ async function buildStaticStandalone(options) {
|
|
|
9778
9779
|
const corePresets = [];
|
|
9779
9780
|
const frameworkName = typeof framework === "string" ? framework : framework?.name;
|
|
9780
9781
|
if (frameworkName) {
|
|
9781
|
-
corePresets.push(
|
|
9782
|
+
corePresets.push(join(frameworkName, "preset"));
|
|
9782
9783
|
} else if (!options.ignorePreview) {
|
|
9783
9784
|
logger4.warn(`you have not specified a framework in your ${options.configDir}/main.js`);
|
|
9784
9785
|
}
|
|
9785
|
-
const commonPreset =
|
|
9786
|
+
const commonPreset = join(
|
|
9786
9787
|
resolvePackageDir("storybook"),
|
|
9787
9788
|
"dist/core-server/presets/common-preset.js"
|
|
9788
9789
|
);
|
|
@@ -9842,7 +9843,7 @@ async function buildStaticStandalone(options) {
|
|
|
9842
9843
|
copyAllStaticFilesRelativeToMain(staticDirs, options.outputDir, options.configDir)
|
|
9843
9844
|
);
|
|
9844
9845
|
}
|
|
9845
|
-
const coreServerPublicDir =
|
|
9846
|
+
const coreServerPublicDir = join(resolvePackageDir("storybook"), "assets/browser");
|
|
9846
9847
|
effects.push(cp2(coreServerPublicDir, options.outputDir, { recursive: true }));
|
|
9847
9848
|
let initializedStoryIndexGenerator = Promise.resolve(void 0);
|
|
9848
9849
|
if (!options.ignorePreview) {
|
|
@@ -9861,14 +9862,14 @@ async function buildStaticStandalone(options) {
|
|
|
9861
9862
|
initializedStoryIndexGenerator = generator.initialize().then(() => generator);
|
|
9862
9863
|
effects.push(
|
|
9863
9864
|
extractStoriesJson(
|
|
9864
|
-
|
|
9865
|
+
join(options.outputDir, "index.json"),
|
|
9865
9866
|
initializedStoryIndexGenerator
|
|
9866
9867
|
)
|
|
9867
9868
|
);
|
|
9868
9869
|
}
|
|
9869
9870
|
if (!core2?.disableProjectJson) {
|
|
9870
9871
|
effects.push(
|
|
9871
|
-
extractStorybookMetadata(
|
|
9872
|
+
extractStorybookMetadata(join(options.outputDir, "project.json"), options.configDir)
|
|
9872
9873
|
);
|
|
9873
9874
|
}
|
|
9874
9875
|
if (options.debugWebpack) {
|
|
@@ -9921,9 +9922,7 @@ async function buildStaticStandalone(options) {
|
|
|
9921
9922
|
__name(buildStaticStandalone, "buildStaticStandalone");
|
|
9922
9923
|
|
|
9923
9924
|
// src/core-server/build-dev.ts
|
|
9924
|
-
var import_prompts = __toESM(require_prompts(), 1);
|
|
9925
9925
|
import { readFile as readFile4 } from "node:fs/promises";
|
|
9926
|
-
import { join as join7, relative as relative5, resolve as resolve5 } from "node:path";
|
|
9927
9926
|
import {
|
|
9928
9927
|
JsPackageManagerFactory,
|
|
9929
9928
|
getConfigInfo,
|
|
@@ -9940,6 +9939,7 @@ import { deprecate, logger as logger11 } from "storybook/internal/node-logger";
|
|
|
9940
9939
|
import { MissingBuilderError as MissingBuilderError3, NoStatsForViteDevError } from "storybook/internal/server-errors";
|
|
9941
9940
|
import { oneWayHash, telemetry as telemetry4 } from "storybook/internal/telemetry";
|
|
9942
9941
|
import { global as global3 } from "@storybook/global";
|
|
9942
|
+
var import_prompts = __toESM(require_prompts(), 1);
|
|
9943
9943
|
var import_ts_dedent8 = __toESM(require_dist(), 1);
|
|
9944
9944
|
|
|
9945
9945
|
// src/core-server/dev-server.ts
|
|
@@ -10418,13 +10418,13 @@ var UniversalStore = class _UniversalStore {
|
|
|
10418
10418
|
} else {
|
|
10419
10419
|
let syncingResolve;
|
|
10420
10420
|
let syncingReject;
|
|
10421
|
-
const syncingPromise = new Promise((
|
|
10421
|
+
const syncingPromise = new Promise((resolve4, reject) => {
|
|
10422
10422
|
syncingResolve = /* @__PURE__ */ __name(() => {
|
|
10423
10423
|
if (this.syncing.state !== ProgressState.PENDING) {
|
|
10424
10424
|
return;
|
|
10425
10425
|
}
|
|
10426
10426
|
this.syncing.state = ProgressState.RESOLVED;
|
|
10427
|
-
|
|
10427
|
+
resolve4();
|
|
10428
10428
|
}, "syncingResolve");
|
|
10429
10429
|
syncingReject = /* @__PURE__ */ __name((reason) => {
|
|
10430
10430
|
if (this.syncing.state !== ProgressState.PENDING) {
|
|
@@ -10521,9 +10521,9 @@ var UniversalStore = class _UniversalStore {
|
|
|
10521
10521
|
let resolveRef;
|
|
10522
10522
|
let rejectRef;
|
|
10523
10523
|
const promise = new Promise(
|
|
10524
|
-
(
|
|
10524
|
+
(resolve4, reject) => {
|
|
10525
10525
|
resolveRef = /* @__PURE__ */ __name((args) => {
|
|
10526
|
-
|
|
10526
|
+
resolve4(args);
|
|
10527
10527
|
}, "resolveRef");
|
|
10528
10528
|
rejectRef = /* @__PURE__ */ __name((...args) => {
|
|
10529
10529
|
reject(args);
|
|
@@ -11362,14 +11362,14 @@ var baseOpen = /* @__PURE__ */ __name(async (options) => {
|
|
|
11362
11362
|
}
|
|
11363
11363
|
const subprocess = childProcess.spawn(command, cliArguments, childProcessOptions);
|
|
11364
11364
|
if (options.wait) {
|
|
11365
|
-
return new Promise((
|
|
11365
|
+
return new Promise((resolve4, reject) => {
|
|
11366
11366
|
subprocess.once("error", reject);
|
|
11367
11367
|
subprocess.once("close", (exitCode) => {
|
|
11368
11368
|
if (!options.allowNonzeroExitCode && exitCode > 0) {
|
|
11369
11369
|
reject(new Error(`Exited with code ${exitCode}`));
|
|
11370
11370
|
return;
|
|
11371
11371
|
}
|
|
11372
|
-
|
|
11372
|
+
resolve4(subprocess);
|
|
11373
11373
|
});
|
|
11374
11374
|
});
|
|
11375
11375
|
}
|
|
@@ -11718,9 +11718,9 @@ async function storybookDevServer(options) {
|
|
|
11718
11718
|
throw e;
|
|
11719
11719
|
});
|
|
11720
11720
|
}
|
|
11721
|
-
const listening = new Promise((
|
|
11721
|
+
const listening = new Promise((resolve4, reject) => {
|
|
11722
11722
|
server.once("error", reject);
|
|
11723
|
-
app.listen({ port, host },
|
|
11723
|
+
app.listen({ port, host }, resolve4);
|
|
11724
11724
|
});
|
|
11725
11725
|
await Promise.all([initializedStoryIndexGenerator, listening]).then(async ([indexGenerator]) => {
|
|
11726
11726
|
if (indexGenerator && !options.ci && !options.smokeTest && options.open) {
|
|
@@ -12089,7 +12089,7 @@ __name(warnWhenUsingArgTypesRegex, "warnWhenUsingArgTypesRegex");
|
|
|
12089
12089
|
async function buildDevStandalone(options) {
|
|
12090
12090
|
const { packageJson, versionUpdates } = options;
|
|
12091
12091
|
let { storybookVersion, previewConfigPath } = options;
|
|
12092
|
-
const configDir =
|
|
12092
|
+
const configDir = resolve(options.configDir);
|
|
12093
12093
|
if (packageJson) {
|
|
12094
12094
|
invariant(
|
|
12095
12095
|
packageJson.version !== void 0,
|
|
@@ -12117,9 +12117,9 @@ async function buildDevStandalone(options) {
|
|
|
12117
12117
|
process.exit(1);
|
|
12118
12118
|
}
|
|
12119
12119
|
}
|
|
12120
|
-
const cacheKey = oneWayHash(
|
|
12120
|
+
const cacheKey = oneWayHash(relative(getProjectRoot2(), configDir));
|
|
12121
12121
|
const cacheOutputDir = resolvePathInStorybookCache("public", cacheKey);
|
|
12122
|
-
let outputDir =
|
|
12122
|
+
let outputDir = resolve(options.outputDir || cacheOutputDir);
|
|
12123
12123
|
if (options.smokeTest) {
|
|
12124
12124
|
outputDir = cacheOutputDir;
|
|
12125
12125
|
}
|
|
@@ -12147,7 +12147,7 @@ async function buildDevStandalone(options) {
|
|
|
12147
12147
|
validateFrameworkName(frameworkName);
|
|
12148
12148
|
}
|
|
12149
12149
|
if (frameworkName) {
|
|
12150
|
-
corePresets.push(
|
|
12150
|
+
corePresets.push(join(frameworkName, "preset"));
|
|
12151
12151
|
}
|
|
12152
12152
|
frameworkName = frameworkName || "custom";
|
|
12153
12153
|
const packageManager = JsPackageManagerFactory.getPackageManager({
|
|
@@ -12189,7 +12189,7 @@ async function buildDevStandalone(options) {
|
|
|
12189
12189
|
const deprecationMessage = (0, import_ts_dedent8.dedent)(`Using CommonJS in your main configuration file is deprecated with Vite.
|
|
12190
12190
|
- Refer to the migration guide at https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#commonjs-with-vite-is-deprecated`);
|
|
12191
12191
|
const mainJsPath = getInterpretedFile(
|
|
12192
|
-
|
|
12192
|
+
resolve(options.configDir || ".storybook", "main")
|
|
12193
12193
|
);
|
|
12194
12194
|
if (/\.c[jt]s$/.test(mainJsPath)) {
|
|
12195
12195
|
deprecate(deprecationMessage);
|
|
@@ -12203,7 +12203,7 @@ async function buildDevStandalone(options) {
|
|
|
12203
12203
|
const resolvedRenderer = renderer && resolveAddonName2(options.configDir, renderer, options);
|
|
12204
12204
|
presets = await loadAllPresets2({
|
|
12205
12205
|
corePresets: [
|
|
12206
|
-
|
|
12206
|
+
join(resolvePackageDir("storybook"), "dist/core-server/presets/common-preset.js"),
|
|
12207
12207
|
...managerBuilder.corePresets || [],
|
|
12208
12208
|
...previewBuilder.corePresets || [],
|
|
12209
12209
|
...resolvedRenderer ? [resolvedRenderer] : [],
|
|
@@ -12274,7 +12274,6 @@ import { normalizeStories as normalizeStories3 } from "storybook/internal/common
|
|
|
12274
12274
|
import { logger as logger12 } from "storybook/internal/node-logger";
|
|
12275
12275
|
|
|
12276
12276
|
// src/core-server/load.ts
|
|
12277
|
-
import { join as join8, relative as relative6, resolve as resolve6 } from "node:path";
|
|
12278
12277
|
import {
|
|
12279
12278
|
getProjectRoot as getProjectRoot3,
|
|
12280
12279
|
loadAllPresets as loadAllPresets3,
|
|
@@ -12285,8 +12284,8 @@ import {
|
|
|
12285
12284
|
import { oneWayHash as oneWayHash2 } from "storybook/internal/telemetry";
|
|
12286
12285
|
import { global as global4 } from "@storybook/global";
|
|
12287
12286
|
async function loadStorybook(options) {
|
|
12288
|
-
const configDir =
|
|
12289
|
-
const cacheKey = oneWayHash2(
|
|
12287
|
+
const configDir = resolve(options.configDir);
|
|
12288
|
+
const cacheKey = oneWayHash2(relative(getProjectRoot3(), configDir));
|
|
12290
12289
|
options.configType = "DEVELOPMENT";
|
|
12291
12290
|
options.configDir = configDir;
|
|
12292
12291
|
options.cacheKey = cacheKey;
|
|
@@ -12298,7 +12297,7 @@ async function loadStorybook(options) {
|
|
|
12298
12297
|
validateFrameworkName2(frameworkName);
|
|
12299
12298
|
}
|
|
12300
12299
|
if (frameworkName) {
|
|
12301
|
-
corePresets.push(
|
|
12300
|
+
corePresets.push(join(frameworkName, "preset"));
|
|
12302
12301
|
}
|
|
12303
12302
|
frameworkName = frameworkName || "custom";
|
|
12304
12303
|
let presets = await loadAllPresets3({
|
|
@@ -12313,7 +12312,7 @@ async function loadStorybook(options) {
|
|
|
12313
12312
|
const resolvedRenderer = renderer && resolveAddonName3(options.configDir, renderer, options);
|
|
12314
12313
|
presets = await loadAllPresets3({
|
|
12315
12314
|
corePresets: [
|
|
12316
|
-
|
|
12315
|
+
join(resolvePackageDir("storybook"), "dist/core-server/presets/common-preset.js"),
|
|
12317
12316
|
...resolvedRenderer ? [resolvedRenderer] : [],
|
|
12318
12317
|
...corePresets
|
|
12319
12318
|
],
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_in4hyfgp7kn from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_in4hyfgp7kn from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_in4hyfgp7kn from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_in4hyfgp7kn.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_in4hyfgp7kn.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_in4hyfgp7kn.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
|
glob
|
|
14
|
-
} from "../../_node-chunks/chunk-
|
|
14
|
+
} from "../../_node-chunks/chunk-VYRFXLRO.js";
|
|
15
15
|
import {
|
|
16
16
|
slash
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-II4AFH3V.js";
|
|
18
18
|
import {
|
|
19
19
|
__name
|
|
20
|
-
} from "../../_node-chunks/chunk-
|
|
20
|
+
} from "../../_node-chunks/chunk-XCEBYOA4.js";
|
|
21
21
|
|
|
22
22
|
// src/core-server/utils/remove-mdx-entries.ts
|
|
23
23
|
import { isAbsolute, join, relative } from "node:path";
|