storybook 10.2.0-alpha.2 → 10.2.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_browser-chunks/{chunk-MOYJJEXA.js → chunk-Q5RYDXT3.js} +3 -4
- package/dist/_node-chunks/{builder-manager-ZK4QXZNX.js → builder-manager-U6SN6ZED.js} +12 -12
- package/dist/_node-chunks/{camelcase-QWQG7I72.js → camelcase-GLXVGCEV.js} +7 -7
- package/dist/_node-chunks/{chunk-HMFROKHU.js → chunk-2IFACTU4.js} +7 -7
- package/dist/_node-chunks/{chunk-TOXVUAH2.js → chunk-4VZME5CV.js} +6 -6
- package/dist/_node-chunks/{chunk-OV2CP4VV.js → chunk-5SCVRD6U.js} +6 -6
- package/dist/_node-chunks/{chunk-WUKWNPSQ.js → chunk-5ZGZ22PV.js} +9 -9
- package/dist/_node-chunks/{chunk-Q5ZQH2OQ.js → chunk-6RXAFKLM.js} +7 -7
- package/dist/_node-chunks/chunk-6WHPDWFA.js +61 -0
- package/dist/_node-chunks/chunk-B6AJKALV.js +20 -0
- package/dist/_node-chunks/{chunk-EXZXVBZO.js → chunk-C2G5ML5F.js} +7 -7
- package/dist/_node-chunks/chunk-CFCZ5PKC.js +18 -0
- package/dist/_node-chunks/{chunk-NKOHF7TQ.js → chunk-DO56XDMZ.js} +10 -10
- package/dist/_node-chunks/{chunk-URBB5EGY.js → chunk-E6CKDKNL.js} +7 -7
- package/dist/_node-chunks/{chunk-QFSK4B7R.js → chunk-H4BZRGVO.js} +8 -8
- package/dist/_node-chunks/{chunk-UWJ4BOOL.js → chunk-HGYHQF7Z.js} +9 -9
- package/dist/_node-chunks/{chunk-GKEAARBQ.js → chunk-HKTRFCJD.js} +6 -6
- package/dist/_node-chunks/{chunk-6OZRMRVO.js → chunk-HYH2IT7K.js} +7 -7
- package/dist/_node-chunks/{chunk-2AFVBCGF.js → chunk-IKSK6CEY.js} +6 -6
- package/dist/_node-chunks/{chunk-FZFZ5TOM.js → chunk-KP6H4S3L.js} +6 -6
- package/dist/_node-chunks/{chunk-I5TOD3AY.js → chunk-LHBDNMEP.js} +12 -12
- package/dist/_node-chunks/{chunk-WOS3OQVT.js → chunk-MUWHX7GN.js} +6 -6
- package/dist/_node-chunks/{chunk-CW7HJRCY.js → chunk-N3O3HJMU.js} +7 -7
- package/dist/_node-chunks/{chunk-KVNLJSAB.js → chunk-NKUDIVPF.js} +7 -7
- package/dist/_node-chunks/chunk-O5OIO47U.js +23 -0
- package/dist/_node-chunks/{chunk-XFU23B4C.js → chunk-Q27GKV7Y.js} +7 -7
- package/dist/_node-chunks/{chunk-DWVHBQGR.js → chunk-Q47IIVLL.js} +8 -8
- package/dist/_node-chunks/{chunk-5VZMCPTH.js → chunk-SM7QXYN4.js} +43 -27
- package/dist/_node-chunks/{chunk-VJPI73BB.js → chunk-VKFEIIOF.js} +39 -24
- package/dist/_node-chunks/{chunk-R2J3OB3H.js → chunk-XYVZIRZC.js} +6 -6
- package/dist/_node-chunks/{chunk-RGQC4G3L.js → chunk-YPCGEC3N.js} +13 -13
- package/dist/_node-chunks/{dist-UBFMIJZC.js → dist-GGDI7EVD.js} +9 -9
- package/dist/_node-chunks/{globby-VD3CGPVI.js → globby-DY2UCDKN.js} +9 -9
- package/dist/_node-chunks/{lib-MMJB47J3.js → lib-PFKECSVA.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-3J2G7NZZ.js → mdx-N42X6CFJ-OPAAI5WZ.js} +8 -8
- package/dist/_node-chunks/{p-limit-SOBWTEVH.js → p-limit-PMYE6ZFC.js} +7 -7
- package/dist/babel/index.js +10 -10
- package/dist/bin/core.js +24 -18
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +9 -9
- package/dist/cli/index.js +18 -18
- package/dist/common/index.d.ts +25 -18
- package/dist/common/index.js +19 -19
- package/dist/core-server/index.js +35 -35
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +25 -25
- package/dist/csf-tools/index.js +9 -9
- package/dist/instrumenter/index.js +1 -1
- package/dist/manager/globals-runtime.js +3102 -3017
- package/dist/manager-api/index.js +1 -1
- package/dist/mocking-utils/index.js +8 -8
- package/dist/node-logger/index.d.ts +1 -1
- package/dist/node-logger/index.js +9 -9
- package/dist/preview/runtime.js +706 -621
- package/dist/server-errors.js +11 -11
- package/dist/telemetry/index.js +23 -23
- package/dist/test/index.js +370 -286
- package/dist/types/index.d.ts +3 -1
- package/package.json +1 -1
- package/dist/_node-chunks/chunk-CLCLRZYL.js +0 -61
- package/dist/_node-chunks/chunk-DF3QP62W.js +0 -18
- package/dist/_node-chunks/chunk-EVBCPGQO.js +0 -20
- package/dist/_node-chunks/chunk-PCMFKXWQ.js +0 -23
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_2512dr0mzhu from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_2512dr0mzhu from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_2512dr0mzhu from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_2512dr0mzhu.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_2512dr0mzhu.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_2512dr0mzhu.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-4VZME5CV.js";
|
|
13
13
|
|
|
14
14
|
// ../../node_modules/yocto-queue/index.js
|
|
15
15
|
var Node = class {
|
package/dist/babel/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_2512dr0mzhu from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_2512dr0mzhu from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_2512dr0mzhu from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_2512dr0mzhu.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_2512dr0mzhu.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_2512dr0mzhu.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -22,10 +22,10 @@ import {
|
|
|
22
22
|
recast,
|
|
23
23
|
traverse,
|
|
24
24
|
types
|
|
25
|
-
} from "../_node-chunks/chunk-
|
|
26
|
-
import "../_node-chunks/chunk-
|
|
27
|
-
import "../_node-chunks/chunk-
|
|
28
|
-
import "../_node-chunks/chunk-
|
|
25
|
+
} from "../_node-chunks/chunk-HGYHQF7Z.js";
|
|
26
|
+
import "../_node-chunks/chunk-HYH2IT7K.js";
|
|
27
|
+
import "../_node-chunks/chunk-Q27GKV7Y.js";
|
|
28
|
+
import "../_node-chunks/chunk-4VZME5CV.js";
|
|
29
29
|
var export_transformSync = import_core.transformSync;
|
|
30
30
|
export {
|
|
31
31
|
BabelFileClass,
|
package/dist/bin/core.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_2512dr0mzhu from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_2512dr0mzhu from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_2512dr0mzhu from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_2512dr0mzhu.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_2512dr0mzhu.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_2512dr0mzhu.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 "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-CFCZ5PKC.js";
|
|
15
15
|
import {
|
|
16
16
|
globalSettings
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
18
|
-
import "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-5ZGZ22PV.js";
|
|
18
|
+
import "../_node-chunks/chunk-XYVZIRZC.js";
|
|
19
19
|
import {
|
|
20
20
|
require_dist
|
|
21
|
-
} from "../_node-chunks/chunk-
|
|
21
|
+
} from "../_node-chunks/chunk-N3O3HJMU.js";
|
|
22
22
|
import {
|
|
23
23
|
require_picocolors
|
|
24
|
-
} from "../_node-chunks/chunk-
|
|
24
|
+
} from "../_node-chunks/chunk-Q27GKV7Y.js";
|
|
25
25
|
import {
|
|
26
26
|
__commonJS,
|
|
27
27
|
__require,
|
|
28
28
|
__toESM
|
|
29
|
-
} from "../_node-chunks/chunk-
|
|
29
|
+
} from "../_node-chunks/chunk-4VZME5CV.js";
|
|
30
30
|
|
|
31
31
|
// ../../node_modules/commander/lib/error.js
|
|
32
32
|
var require_error = __commonJS({
|
|
@@ -2745,8 +2745,12 @@ var dev = async (cliOptions) => {
|
|
|
2745
2745
|
// src/bin/core.ts
|
|
2746
2746
|
addToGlobalContext("cliVersion", version);
|
|
2747
2747
|
var handleCommandFailure = async (logFilePath) => {
|
|
2748
|
-
|
|
2749
|
-
|
|
2748
|
+
try {
|
|
2749
|
+
let logFile = await logTracker.writeToFile(logFilePath);
|
|
2750
|
+
logger2.log(`Debug logs are written to: ${logFile}`);
|
|
2751
|
+
} catch {
|
|
2752
|
+
}
|
|
2753
|
+
logger2.outro("Storybook exited with an error"), process.exit(1);
|
|
2750
2754
|
}, command = (name) => program.command(name).option(
|
|
2751
2755
|
"--disable-telemetry",
|
|
2752
2756
|
"Disable sending telemetry data",
|
|
@@ -2763,10 +2767,12 @@ var handleCommandFailure = async (logFilePath) => {
|
|
|
2763
2767
|
` + String(e));
|
|
2764
2768
|
}
|
|
2765
2769
|
}).hook("postAction", async (command2) => {
|
|
2766
|
-
if (logTracker.shouldWriteLogsToFile)
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
+
if (logTracker.shouldWriteLogsToFile)
|
|
2771
|
+
try {
|
|
2772
|
+
let logFile = await logTracker.writeToFile(command2.getOptionValue("logfile"));
|
|
2773
|
+
logger2.outro(`Debug logs are written to: ${logFile}`);
|
|
2774
|
+
} catch {
|
|
2775
|
+
}
|
|
2770
2776
|
});
|
|
2771
2777
|
command("dev").option("-p, --port <number>", "Port to run Storybook", (str) => parseInt(str, 10)).option("-h, --host <string>", "Host to run Storybook").option("-c, --config-dir <dir-name>", "Directory where to load Storybook configurations from").option(
|
|
2772
2778
|
"--https",
|
package/dist/bin/dispatcher.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import CJS_COMPAT_NODE_URL_2512dr0mzhu from 'node:url';
|
|
3
|
+
import CJS_COMPAT_NODE_PATH_2512dr0mzhu from 'node:path';
|
|
4
|
+
import CJS_COMPAT_NODE_MODULE_2512dr0mzhu from "node:module";
|
|
5
5
|
|
|
6
|
-
var __filename =
|
|
7
|
-
var __dirname =
|
|
8
|
-
var require =
|
|
6
|
+
var __filename = CJS_COMPAT_NODE_URL_2512dr0mzhu.fileURLToPath(import.meta.url);
|
|
7
|
+
var __dirname = CJS_COMPAT_NODE_PATH_2512dr0mzhu.dirname(__filename);
|
|
8
|
+
var require = CJS_COMPAT_NODE_MODULE_2512dr0mzhu.createRequire(import.meta.url);
|
|
9
9
|
|
|
10
10
|
// ------------------------------------------------------------
|
|
11
11
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
12
12
|
// ------------------------------------------------------------
|
|
13
13
|
import {
|
|
14
14
|
versions_default
|
|
15
|
-
} from "../_node-chunks/chunk-
|
|
15
|
+
} from "../_node-chunks/chunk-6WHPDWFA.js";
|
|
16
16
|
import {
|
|
17
17
|
resolvePackageDir
|
|
18
|
-
} from "../_node-chunks/chunk-
|
|
18
|
+
} from "../_node-chunks/chunk-E6CKDKNL.js";
|
|
19
19
|
import {
|
|
20
20
|
join
|
|
21
|
-
} from "../_node-chunks/chunk-
|
|
21
|
+
} from "../_node-chunks/chunk-5SCVRD6U.js";
|
|
22
22
|
import {
|
|
23
23
|
require_dist
|
|
24
|
-
} from "../_node-chunks/chunk-
|
|
24
|
+
} from "../_node-chunks/chunk-N3O3HJMU.js";
|
|
25
25
|
import {
|
|
26
26
|
__toESM
|
|
27
|
-
} from "../_node-chunks/chunk-
|
|
27
|
+
} from "../_node-chunks/chunk-4VZME5CV.js";
|
|
28
28
|
|
|
29
29
|
// src/bin/dispatcher.ts
|
|
30
30
|
import { pathToFileURL } from "node:url";
|
package/dist/bin/loader.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_2512dr0mzhu from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_2512dr0mzhu from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_2512dr0mzhu from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_2512dr0mzhu.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_2512dr0mzhu.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_2512dr0mzhu.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
|
NODE_TARGET
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-IKSK6CEY.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-N3O3HJMU.js";
|
|
18
18
|
import {
|
|
19
19
|
__toESM
|
|
20
|
-
} from "../_node-chunks/chunk-
|
|
20
|
+
} from "../_node-chunks/chunk-4VZME5CV.js";
|
|
21
21
|
|
|
22
22
|
// src/bin/loader.ts
|
|
23
23
|
var import_ts_dedent = __toESM(require_dist(), 1);
|
package/dist/cli/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_2512dr0mzhu from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_2512dr0mzhu from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_2512dr0mzhu from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_2512dr0mzhu.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_2512dr0mzhu.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_2512dr0mzhu.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -33,24 +33,24 @@ import {
|
|
|
33
33
|
readFileAsJson,
|
|
34
34
|
suggestESLintPlugin,
|
|
35
35
|
writeFileAsJson
|
|
36
|
-
} from "../_node-chunks/chunk-
|
|
36
|
+
} from "../_node-chunks/chunk-LHBDNMEP.js";
|
|
37
37
|
import {
|
|
38
38
|
detectPnp
|
|
39
|
-
} from "../_node-chunks/chunk-
|
|
39
|
+
} from "../_node-chunks/chunk-O5OIO47U.js";
|
|
40
40
|
import {
|
|
41
41
|
Settings,
|
|
42
42
|
_clearGlobalSettings,
|
|
43
43
|
globalSettings
|
|
44
|
-
} from "../_node-chunks/chunk-
|
|
45
|
-
import "../_node-chunks/chunk-
|
|
46
|
-
import "../_node-chunks/chunk-
|
|
47
|
-
import "../_node-chunks/chunk-
|
|
48
|
-
import "../_node-chunks/chunk-
|
|
49
|
-
import "../_node-chunks/chunk-
|
|
50
|
-
import "../_node-chunks/chunk-
|
|
51
|
-
import "../_node-chunks/chunk-
|
|
52
|
-
import "../_node-chunks/chunk-
|
|
53
|
-
import "../_node-chunks/chunk-
|
|
44
|
+
} from "../_node-chunks/chunk-5ZGZ22PV.js";
|
|
45
|
+
import "../_node-chunks/chunk-HKTRFCJD.js";
|
|
46
|
+
import "../_node-chunks/chunk-E6CKDKNL.js";
|
|
47
|
+
import "../_node-chunks/chunk-XYVZIRZC.js";
|
|
48
|
+
import "../_node-chunks/chunk-5SCVRD6U.js";
|
|
49
|
+
import "../_node-chunks/chunk-N3O3HJMU.js";
|
|
50
|
+
import "../_node-chunks/chunk-HGYHQF7Z.js";
|
|
51
|
+
import "../_node-chunks/chunk-HYH2IT7K.js";
|
|
52
|
+
import "../_node-chunks/chunk-Q27GKV7Y.js";
|
|
53
|
+
import "../_node-chunks/chunk-4VZME5CV.js";
|
|
54
54
|
export {
|
|
55
55
|
ANGULAR_JSON_PATH,
|
|
56
56
|
AddonVitestService,
|
package/dist/common/index.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ import { WriteStream } from 'node:fs';
|
|
|
5
5
|
import { Buffer } from 'node:buffer';
|
|
6
6
|
import { ChildProcess } from 'node:child_process';
|
|
7
7
|
import { Readable, Writable, Stream } from 'node:stream';
|
|
8
|
-
import * as prettier from 'prettier';
|
|
9
8
|
import { ConfigFile } from 'storybook/internal/csf-tools';
|
|
10
9
|
import { types } from 'storybook/internal/babel';
|
|
11
10
|
|
|
@@ -1392,24 +1391,32 @@ declare function validateConfigurationFiles(configDir: string, cwd?: string): Pr
|
|
|
1392
1391
|
/** Mimicking the satisfies operator until we can upgrade to TS4.9 */
|
|
1393
1392
|
declare function satisfies<A>(): <T extends A>(x: T) => T;
|
|
1394
1393
|
|
|
1395
|
-
|
|
1396
|
-
resolveConfig: (
|
|
1397
|
-
|
|
1398
|
-
}
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
formatWithCursor(
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
getFileInfo(
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1394
|
+
interface Prettier {
|
|
1395
|
+
resolveConfig: (filePath: string, options?: {
|
|
1396
|
+
editorconfig?: boolean;
|
|
1397
|
+
}) => Promise<any>;
|
|
1398
|
+
format: (content: string, options?: any) => Promise<string> | string;
|
|
1399
|
+
check: (content: string, options?: any) => Promise<boolean>;
|
|
1400
|
+
clearConfigCache: () => Promise<void>;
|
|
1401
|
+
formatWithCursor: (content: string, options?: any) => Promise<{
|
|
1402
|
+
formatted: string;
|
|
1403
|
+
cursorOffset: number;
|
|
1404
|
+
}>;
|
|
1405
|
+
getFileInfo: (filePath: string, options?: any) => Promise<{
|
|
1406
|
+
ignored: boolean;
|
|
1407
|
+
inferredParser: string | null;
|
|
1408
|
+
}>;
|
|
1409
|
+
getSupportInfo: () => Promise<{
|
|
1410
|
+
languages: any[];
|
|
1411
|
+
options: any[];
|
|
1412
|
+
}>;
|
|
1413
|
+
resolveConfigFile: (filePath?: string) => Promise<string | null>;
|
|
1410
1414
|
version: string;
|
|
1411
|
-
|
|
1412
|
-
|
|
1415
|
+
AstPath: any;
|
|
1416
|
+
doc: any;
|
|
1417
|
+
util: any;
|
|
1418
|
+
}
|
|
1419
|
+
declare function getPrettier(): Promise<Prettier>;
|
|
1413
1420
|
/**
|
|
1414
1421
|
* Format the content of a file using prettier. If prettier is not available in the user's project,
|
|
1415
1422
|
* it will fallback to use editorconfig settings if available and formats the file by a
|
package/dist/common/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_2512dr0mzhu from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_2512dr0mzhu from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_2512dr0mzhu from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_2512dr0mzhu.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_2512dr0mzhu.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_2512dr0mzhu.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -102,29 +102,29 @@ import {
|
|
|
102
102
|
validateConfigurationFiles,
|
|
103
103
|
validateFrameworkName,
|
|
104
104
|
wrapValueWithGetAbsolutePathWrapper
|
|
105
|
-
} from "../_node-chunks/chunk-
|
|
105
|
+
} from "../_node-chunks/chunk-VKFEIIOF.js";
|
|
106
106
|
import {
|
|
107
107
|
versions_default
|
|
108
|
-
} from "../_node-chunks/chunk-
|
|
109
|
-
import "../_node-chunks/chunk-
|
|
110
|
-
import "../_node-chunks/chunk-
|
|
111
|
-
import "../_node-chunks/chunk-
|
|
108
|
+
} from "../_node-chunks/chunk-6WHPDWFA.js";
|
|
109
|
+
import "../_node-chunks/chunk-2IFACTU4.js";
|
|
110
|
+
import "../_node-chunks/chunk-Q47IIVLL.js";
|
|
111
|
+
import "../_node-chunks/chunk-HKTRFCJD.js";
|
|
112
112
|
import {
|
|
113
113
|
importMetaResolve,
|
|
114
114
|
importModule,
|
|
115
115
|
resolvePackageDir,
|
|
116
116
|
safeResolveModule
|
|
117
|
-
} from "../_node-chunks/chunk-
|
|
117
|
+
} from "../_node-chunks/chunk-E6CKDKNL.js";
|
|
118
118
|
import {
|
|
119
119
|
groupBy,
|
|
120
120
|
invariant
|
|
121
|
-
} from "../_node-chunks/chunk-
|
|
122
|
-
import "../_node-chunks/chunk-
|
|
123
|
-
import "../_node-chunks/chunk-
|
|
124
|
-
import "../_node-chunks/chunk-
|
|
125
|
-
import "../_node-chunks/chunk-
|
|
126
|
-
import "../_node-chunks/chunk-
|
|
127
|
-
import "../_node-chunks/chunk-
|
|
121
|
+
} from "../_node-chunks/chunk-XYVZIRZC.js";
|
|
122
|
+
import "../_node-chunks/chunk-5SCVRD6U.js";
|
|
123
|
+
import "../_node-chunks/chunk-NKUDIVPF.js";
|
|
124
|
+
import "../_node-chunks/chunk-B6AJKALV.js";
|
|
125
|
+
import "../_node-chunks/chunk-N3O3HJMU.js";
|
|
126
|
+
import "../_node-chunks/chunk-Q27GKV7Y.js";
|
|
127
|
+
import "../_node-chunks/chunk-4VZME5CV.js";
|
|
128
128
|
export {
|
|
129
129
|
DEFAULT_FILES_PATTERN,
|
|
130
130
|
FileSystemCache,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_2512dr0mzhu from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_2512dr0mzhu from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_2512dr0mzhu from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_2512dr0mzhu.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_2512dr0mzhu.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_2512dr0mzhu.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
|
StatusTypeIdMismatchError
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-DO56XDMZ.js";
|
|
15
15
|
import {
|
|
16
16
|
debounce,
|
|
17
17
|
getErrorLevel,
|
|
@@ -21,66 +21,66 @@ import {
|
|
|
21
21
|
sendTelemetryError,
|
|
22
22
|
useStatics,
|
|
23
23
|
withTelemetry
|
|
24
|
-
} from "../_node-chunks/chunk-
|
|
25
|
-
import "../_node-chunks/chunk-
|
|
24
|
+
} from "../_node-chunks/chunk-YPCGEC3N.js";
|
|
25
|
+
import "../_node-chunks/chunk-6RXAFKLM.js";
|
|
26
26
|
import {
|
|
27
27
|
detectPnp
|
|
28
|
-
} from "../_node-chunks/chunk-
|
|
28
|
+
} from "../_node-chunks/chunk-O5OIO47U.js";
|
|
29
29
|
import {
|
|
30
30
|
StorybookError
|
|
31
|
-
} from "../_node-chunks/chunk-
|
|
31
|
+
} from "../_node-chunks/chunk-MUWHX7GN.js";
|
|
32
32
|
import {
|
|
33
33
|
telemetry
|
|
34
|
-
} from "../_node-chunks/chunk-
|
|
35
|
-
import "../_node-chunks/chunk-
|
|
34
|
+
} from "../_node-chunks/chunk-SM7QXYN4.js";
|
|
35
|
+
import "../_node-chunks/chunk-CFCZ5PKC.js";
|
|
36
36
|
import {
|
|
37
37
|
optionalEnvToBoolean,
|
|
38
38
|
require_cross_spawn,
|
|
39
39
|
resolveImport,
|
|
40
40
|
supportedExtensions,
|
|
41
41
|
userOrAutoTitleFromSpecifier
|
|
42
|
-
} from "../_node-chunks/chunk-
|
|
43
|
-
import "../_node-chunks/chunk-
|
|
44
|
-
import "../_node-chunks/chunk-
|
|
42
|
+
} from "../_node-chunks/chunk-VKFEIIOF.js";
|
|
43
|
+
import "../_node-chunks/chunk-6WHPDWFA.js";
|
|
44
|
+
import "../_node-chunks/chunk-2IFACTU4.js";
|
|
45
45
|
import {
|
|
46
46
|
require_pretty_hrtime
|
|
47
|
-
} from "../_node-chunks/chunk-
|
|
48
|
-
import "../_node-chunks/chunk-
|
|
49
|
-
import "../_node-chunks/chunk-
|
|
47
|
+
} from "../_node-chunks/chunk-Q47IIVLL.js";
|
|
48
|
+
import "../_node-chunks/chunk-KP6H4S3L.js";
|
|
49
|
+
import "../_node-chunks/chunk-5ZGZ22PV.js";
|
|
50
50
|
import {
|
|
51
51
|
invariant,
|
|
52
52
|
up2 as up
|
|
53
|
-
} from "../_node-chunks/chunk-
|
|
53
|
+
} from "../_node-chunks/chunk-HKTRFCJD.js";
|
|
54
54
|
import {
|
|
55
55
|
importModule,
|
|
56
56
|
resolvePackageDir
|
|
57
|
-
} from "../_node-chunks/chunk-
|
|
58
|
-
import "../_node-chunks/chunk-
|
|
57
|
+
} from "../_node-chunks/chunk-E6CKDKNL.js";
|
|
58
|
+
import "../_node-chunks/chunk-XYVZIRZC.js";
|
|
59
59
|
import {
|
|
60
60
|
dirname,
|
|
61
61
|
join,
|
|
62
62
|
relative,
|
|
63
63
|
resolve
|
|
64
|
-
} from "../_node-chunks/chunk-
|
|
65
|
-
import "../_node-chunks/chunk-
|
|
64
|
+
} from "../_node-chunks/chunk-5SCVRD6U.js";
|
|
65
|
+
import "../_node-chunks/chunk-NKUDIVPF.js";
|
|
66
66
|
import {
|
|
67
67
|
slash
|
|
68
|
-
} from "../_node-chunks/chunk-
|
|
68
|
+
} from "../_node-chunks/chunk-B6AJKALV.js";
|
|
69
69
|
import {
|
|
70
70
|
require_dist
|
|
71
|
-
} from "../_node-chunks/chunk-
|
|
71
|
+
} from "../_node-chunks/chunk-N3O3HJMU.js";
|
|
72
72
|
import {
|
|
73
73
|
require_lib,
|
|
74
74
|
require_src
|
|
75
|
-
} from "../_node-chunks/chunk-
|
|
75
|
+
} from "../_node-chunks/chunk-HYH2IT7K.js";
|
|
76
76
|
import {
|
|
77
77
|
require_picocolors
|
|
78
|
-
} from "../_node-chunks/chunk-
|
|
78
|
+
} from "../_node-chunks/chunk-Q27GKV7Y.js";
|
|
79
79
|
import {
|
|
80
80
|
__commonJS,
|
|
81
81
|
__require,
|
|
82
82
|
__toESM
|
|
83
|
-
} from "../_node-chunks/chunk-
|
|
83
|
+
} from "../_node-chunks/chunk-4VZME5CV.js";
|
|
84
84
|
|
|
85
85
|
// ../../node_modules/tsconfig-paths/lib/filesystem.js
|
|
86
86
|
var require_filesystem = __commonJS({
|
|
@@ -5147,10 +5147,10 @@ var makeAbsolute = (otherImport, normalizedPath, workingDir) => otherImport.star
|
|
|
5147
5147
|
let cacheKey = this.getFindMatchingFilesCacheKey(specifier, workingDir, ignoreWarnings), cached = this.findMatchingFilesCache.get(cacheKey);
|
|
5148
5148
|
if (cached)
|
|
5149
5149
|
return cached;
|
|
5150
|
-
let pathToSubIndex = {},
|
|
5150
|
+
let pathToSubIndex = {}, globCwd = slash(resolve2(workingDir, specifier.directory)), globPattern = specifier.files.startsWith("!") ? `./${specifier.files}` : specifier.files, { globby } = await import("../_node-chunks/globby-DY2UCDKN.js"), files = await globby(globPattern, {
|
|
5151
5151
|
absolute: !0,
|
|
5152
|
-
cwd:
|
|
5153
|
-
...commonGlobOptions(
|
|
5152
|
+
cwd: globCwd,
|
|
5153
|
+
...commonGlobOptions(globPattern)
|
|
5154
5154
|
});
|
|
5155
5155
|
return files.length === 0 && !ignoreWarnings && once.warn(
|
|
5156
5156
|
`No story files found for the specified pattern: ${import_picocolors.default.blue(
|
|
@@ -5336,7 +5336,7 @@ var makeAbsolute = (otherImport, normalizedPath, workingDir) => otherImport.star
|
|
|
5336
5336
|
async extractDocs(specifier, absolutePath, projectTags = []) {
|
|
5337
5337
|
let relativePath = relative2(this.options.workingDir, absolutePath);
|
|
5338
5338
|
try {
|
|
5339
|
-
let normalizedPath = normalizeStoryPath(relativePath), importPath = slash(normalizedPath), content = await readFile(absolutePath, { encoding: "utf8" }), { analyze } = await import("../_node-chunks/dist-
|
|
5339
|
+
let normalizedPath = normalizeStoryPath(relativePath), importPath = slash(normalizedPath), content = await readFile(absolutePath, { encoding: "utf8" }), { analyze } = await import("../_node-chunks/dist-GGDI7EVD.js"), result = await analyze(content);
|
|
5340
5340
|
if (result.isTemplate)
|
|
5341
5341
|
return !1;
|
|
5342
5342
|
let absoluteImports = result.imports.map(
|
|
@@ -5596,7 +5596,7 @@ function print(p) {
|
|
|
5596
5596
|
// src/core-server/utils/get-builders.ts
|
|
5597
5597
|
import { MissingBuilderError } from "storybook/internal/server-errors";
|
|
5598
5598
|
async function getManagerBuilder() {
|
|
5599
|
-
return await import("../_node-chunks/builder-manager-
|
|
5599
|
+
return await import("../_node-chunks/builder-manager-U6SN6ZED.js");
|
|
5600
5600
|
}
|
|
5601
5601
|
async function getPreviewBuilder(resolvedPreviewBuilder) {
|
|
5602
5602
|
return await importModule(resolvedPreviewBuilder);
|
|
@@ -5696,7 +5696,7 @@ function watchStorySpecifiers(specifiers, options, onInvalidate) {
|
|
|
5696
5696
|
// files can be e.g. '**/foo/*/*.js' so we just want the last bit,
|
|
5697
5697
|
// because the directory could already be within the files part (e.g. './x/foo/bar')
|
|
5698
5698
|
basename2(specifier.files)
|
|
5699
|
-
), { globby } = await import("../_node-chunks/globby-
|
|
5699
|
+
), { globby } = await import("../_node-chunks/globby-DY2UCDKN.js");
|
|
5700
5700
|
(await globby(slash(dirGlob), commonGlobOptions2(dirGlob))).forEach((filePath) => {
|
|
5701
5701
|
let fileImportPath = toImportPath(filePath);
|
|
5702
5702
|
specifier.importPathMatcher.exec(fileImportPath) && onInvalidate(specifier, fileImportPath, removed);
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_2512dr0mzhu from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_2512dr0mzhu from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_2512dr0mzhu from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_2512dr0mzhu.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_2512dr0mzhu.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_2512dr0mzhu.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-NKUDIVPF.js";
|
|
15
15
|
import {
|
|
16
16
|
slash
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
18
|
-
import "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-B6AJKALV.js";
|
|
18
|
+
import "../../_node-chunks/chunk-4VZME5CV.js";
|
|
19
19
|
|
|
20
20
|
// src/core-server/utils/remove-mdx-entries.ts
|
|
21
21
|
import { isAbsolute, join, relative } from "node:path";
|