storybook 10.5.0-beta.2 → 10.5.0
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-77EKNFOA.js → chunk-SNLGT2ZI.js} +4 -8
- package/dist/_node-chunks/{builder-manager-OY25MPMX.js → builder-manager-XIMR4NGJ.js} +13 -13
- package/dist/_node-chunks/{camelcase-GWN56XT6.js → camelcase-LHFW4J7B.js} +7 -7
- package/dist/_node-chunks/{chunk-7HMZMYI2.js → chunk-2XRAUFH3.js} +8 -8
- package/dist/_node-chunks/{chunk-KCM5HKSY.js → chunk-3FG4ZIOY.js} +7 -7
- package/dist/_node-chunks/{chunk-77W3Z6QQ.js → chunk-3I7UZF4L.js} +9 -9
- package/dist/_node-chunks/{chunk-QPBPZPI6.js → chunk-4DVJ2XLD.js} +17 -17
- package/dist/_node-chunks/{chunk-LPCX6P4L.js → chunk-4MJR6CNZ.js} +7 -7
- package/dist/_node-chunks/{chunk-ZUBJV2RO.js → chunk-4X66OVAC.js} +6 -6
- package/dist/_node-chunks/{chunk-TM227JNB.js → chunk-57SVN5FU.js} +6 -6
- package/dist/_node-chunks/{chunk-J2CQCDP5.js → chunk-5QBPSITR.js} +10 -10
- package/dist/_node-chunks/{chunk-2OLFSSKS.js → chunk-5SVYOSQR.js} +9 -9
- package/dist/_node-chunks/{chunk-HCLBZFEL.js → chunk-6BBCMK2E.js} +68 -41
- package/dist/_node-chunks/chunk-6HPNADJF.js +85 -0
- package/dist/_node-chunks/{chunk-AOXW3EVV.js → chunk-7H2QWASA.js} +14 -14
- package/dist/_node-chunks/{chunk-CBXPLPGI.js → chunk-A5K36J6C.js} +10 -10
- package/dist/_node-chunks/{chunk-I55NSWWO.js → chunk-BFTJL2HZ.js} +7 -7
- package/dist/_node-chunks/{chunk-H4WOQ3QQ.js → chunk-BSSMDXLU.js} +6 -6
- package/dist/_node-chunks/{chunk-TOI7EH5J.js → chunk-C2HCSW4Z.js} +6 -6
- package/dist/_node-chunks/{chunk-DJ73EPZO.js → chunk-D42WAKAJ.js} +9 -9
- package/dist/_node-chunks/{chunk-QNXH45M2.js → chunk-EONKEATP.js} +6 -6
- package/dist/_node-chunks/{chunk-Q4ETUHI4.js → chunk-EV2CT3GE.js} +6 -6
- package/dist/_node-chunks/{chunk-3L2SJVC4.js → chunk-HAN44MVS.js} +6 -6
- package/dist/_node-chunks/{chunk-7S2RC6EU.js → chunk-HFCMUCGM.js} +30 -21
- package/dist/_node-chunks/{chunk-Y4Z63NWO.js → chunk-IAHCG5SY.js} +6 -6
- package/dist/_node-chunks/{chunk-OOYDV7OI.js → chunk-IX5QBGTT.js} +6 -6
- package/dist/_node-chunks/{chunk-CLEQMWUO.js → chunk-IYHL7P35.js} +6 -6
- package/dist/_node-chunks/{chunk-FMY7HSX4.js → chunk-KHGPJOK6.js} +6 -6
- package/dist/_node-chunks/{chunk-7OPZKK5C.js → chunk-LMAJUNK2.js} +8 -8
- package/dist/_node-chunks/{chunk-T4Y43ZFR.js → chunk-NXH67N4S.js} +7 -7
- package/dist/_node-chunks/{chunk-XDPYNPHH.js → chunk-ONALV673.js} +10 -8
- package/dist/_node-chunks/{chunk-OQPJAM6Q.js → chunk-PTVE4JY6.js} +6 -6
- package/dist/_node-chunks/{chunk-2GGLMW72.js → chunk-Q6LJZFXW.js} +7 -7
- package/dist/_node-chunks/{chunk-OPQ2V4FW.js → chunk-QXYFYOF4.js} +6 -6
- package/dist/_node-chunks/{chunk-MF54VX3X.js → chunk-RIARFK7G.js} +7 -7
- package/dist/_node-chunks/{chunk-SVTWMX77.js → chunk-SJMIDNON.js} +7 -7
- package/dist/_node-chunks/{chunk-HHOQJD6U.js → chunk-UM2ZG4W6.js} +7 -7
- package/dist/_node-chunks/{chunk-TXBBD3GJ.js → chunk-VFV5MDK3.js} +5576 -32
- package/dist/_node-chunks/{chunk-NCS5F42U.js → chunk-VKFJLSIZ.js} +7 -7
- package/dist/_node-chunks/{chunk-2TPQSJNS.js → chunk-WNYUQAFN.js} +6 -6
- package/dist/_node-chunks/{chunk-LQRQLIYB.js → chunk-XGLK2JRA.js} +9 -9
- package/dist/_node-chunks/{chunk-UMHD43QS.js → chunk-XJ2M3N7X.js} +7 -7
- package/dist/_node-chunks/{chunk-NXRRYRBF.js → chunk-YOJEDPR4.js} +7 -7
- package/dist/_node-chunks/{chunk-GMPEJ5M4.js → chunk-YU24DKXR.js} +6 -6
- package/dist/_node-chunks/{chunk-FB2HA6TI.js → chunk-YXP5YOPH.js} +24 -24
- package/dist/_node-chunks/{globby-BBCUX4IV.js → globby-APSF6JYH.js} +9 -9
- package/dist/_node-chunks/{lib-LLLO34RA.js → lib-HLGV2BK5.js} +7 -7
- package/dist/_node-chunks/{monorepo-ETNXMW7Z.js → monorepo-NDS5CV6L.js} +11 -11
- package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-NCXHJ735.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-34MHHWJM.js} +11 -11
- package/dist/_node-chunks/optimized-tests-R3RO33FS.js +22 -0
- package/dist/_node-chunks/p-limit-HULXHXNL.js +20 -0
- package/dist/_node-chunks/{pattern-copy-play-ANYLDQYO.js → pattern-copy-play-XPHBQ4VN.js} +17 -13
- package/dist/_node-chunks/{relaxed-limits-RUNQGR6N.js → relaxed-limits-6U4HLXBS.js} +11 -11
- package/dist/_node-chunks/session-id-YXMGQCBN.js +23 -0
- package/dist/_node-chunks/{setup-73TIYL3I.js → setup-SN3K7XFX.js} +19 -18
- package/dist/babel/index.js +10 -10
- package/dist/bin/core.js +81 -38
- package/dist/bin/dispatcher.js +26 -16
- package/dist/bin/loader.js +12 -11
- package/dist/channels/index.js +5 -1
- package/dist/cli/index.d.ts +48 -3
- package/dist/cli/index.js +25 -21
- package/dist/common/index.d.ts +45 -1
- package/dist/common/index.js +53 -25
- package/dist/components/index.js +1 -1
- package/dist/core-server/index.js +42 -42
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +33 -33
- package/dist/csf/index.js +4 -3
- package/dist/csf-tools/index.js +10 -10
- package/dist/manager/globals-runtime.js +49 -30
- package/dist/manager/runtime.js +206 -1238
- package/dist/manager-api/index.d.ts +2 -0
- package/dist/manager-api/index.js +39 -20
- package/dist/mocking-utils/index.js +9 -9
- package/dist/node-logger/index.js +9 -9
- package/dist/oxc-parser/index.js +11 -11
- package/dist/oxc-parser/worker.js +11 -11
- package/dist/preview/runtime.js +12 -11
- package/dist/preview-api/index.js +1 -1
- package/dist/server-errors.js +10 -10
- package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +9 -9
- package/dist/telemetry/index.js +31 -31
- package/dist/test/index.d.ts +1 -1
- package/dist/types/index.d.ts +14 -2
- package/package.json +3 -1
- package/dist/_node-chunks/chunk-4D2AXXS6.js +0 -85
- package/dist/_node-chunks/optimized-tests-NER647RV.js +0 -22
- package/dist/_node-chunks/p-limit-TDMHGOYA.js +0 -20
- package/dist/_node-chunks/session-id-HJ4SNO56.js +0 -23
|
@@ -61,14 +61,10 @@ import {
|
|
|
61
61
|
var AddonStore = class {
|
|
62
62
|
constructor() {
|
|
63
63
|
this.getChannel = () => {
|
|
64
|
-
if (
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
let channel = mockChannel();
|
|
69
|
-
return this.setChannel(channel), channel;
|
|
70
|
-
}
|
|
71
|
-
return this.channel;
|
|
64
|
+
if (this.channel)
|
|
65
|
+
return this.channel;
|
|
66
|
+
let installed = readInstalledChannel();
|
|
67
|
+
return installed ? (this.channel = installed, this.resolve(), this.channel) : mockChannel();
|
|
72
68
|
};
|
|
73
69
|
this.ready = () => this.promise;
|
|
74
70
|
this.hasChannel = () => !!this.channel || !!readInstalledChannel();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_3za304dh1il from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_3za304dh1il from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_3za304dh1il from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_3za304dh1il.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_3za304dh1il.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_3za304dh1il.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,27 +13,27 @@ import {
|
|
|
13
13
|
BROWSER_TARGETS,
|
|
14
14
|
NODE_TARGET,
|
|
15
15
|
SUPPORTED_FEATURES
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-IX5QBGTT.js";
|
|
17
17
|
import {
|
|
18
18
|
require_build
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-NXH67N4S.js";
|
|
20
20
|
import {
|
|
21
21
|
resolveModulePath,
|
|
22
22
|
resolvePackageDir
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-2XRAUFH3.js";
|
|
24
|
+
import "./chunk-EV2CT3GE.js";
|
|
25
25
|
import {
|
|
26
26
|
join,
|
|
27
27
|
parse
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-BSSMDXLU.js";
|
|
29
29
|
import {
|
|
30
30
|
slash
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-KHGPJOK6.js";
|
|
32
32
|
import {
|
|
33
33
|
__commonJS,
|
|
34
34
|
__require,
|
|
35
35
|
__toESM
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-57SVN5FU.js";
|
|
37
37
|
|
|
38
38
|
// ../../node_modules/ejs/lib/utils.js
|
|
39
39
|
var require_utils = __commonJS({
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_3za304dh1il from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_3za304dh1il from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_3za304dh1il from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_3za304dh1il.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_3za304dh1il.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_3za304dh1il.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-57SVN5FU.js";
|
|
13
13
|
|
|
14
14
|
// ../../node_modules/camelcase/index.js
|
|
15
15
|
var UPPERCASE = /[\p{Lu}]/u, LOWERCASE = /[\p{Ll}]/u, LEADING_CAPITAL = /^[\p{Lu}](?![\p{Lu}])/u, SEPARATORS = /[_.\- ]+/, IDENTIFIER = /([\p{Alpha}\p{N}_]|$)/u, LEADING_SEPARATORS = new RegExp("^" + SEPARATORS.source), SEPARATORS_AND_IDENTIFIER = new RegExp(SEPARATORS.source + IDENTIFIER.source, "gu"), NUMBERS_AND_IDENTIFIER = new RegExp(String.raw`\d+` + IDENTIFIER.source, "gu"), preserveCamelCase = (string, toLowerCase, toUpperCase, preserveConsecutiveUppercase2) => {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_3za304dh1il from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_3za304dh1il from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_3za304dh1il from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_3za304dh1il.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_3za304dh1il.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_3za304dh1il.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
|
jsModuleExtensions
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-EV2CT3GE.js";
|
|
15
15
|
import {
|
|
16
16
|
dirname,
|
|
17
17
|
join
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-BSSMDXLU.js";
|
|
19
19
|
|
|
20
20
|
// ../../node_modules/exsolve/dist/index.mjs
|
|
21
21
|
import fs, { lstatSync, realpathSync, statSync } from "node:fs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_3za304dh1il from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_3za304dh1il from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_3za304dh1il from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_3za304dh1il.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_3za304dh1il.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_3za304dh1il.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_70pmhcbrfdp.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__require
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-57SVN5FU.js";
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/picomatch/lib/constants.js
|
|
18
18
|
var require_constants = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_3za304dh1il from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_3za304dh1il from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_3za304dh1il from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_3za304dh1il.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_3za304dh1il.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_3za304dh1il.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,15 +12,15 @@ var require = CJS_COMPAT_NODE_MODULE_70pmhcbrfdp.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
require_lib,
|
|
14
14
|
require_src
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-SJMIDNON.js";
|
|
16
16
|
import {
|
|
17
17
|
require_picocolors
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-UM2ZG4W6.js";
|
|
19
19
|
import {
|
|
20
20
|
__commonJS,
|
|
21
21
|
__require,
|
|
22
22
|
__toESM
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-57SVN5FU.js";
|
|
24
24
|
|
|
25
25
|
// ../../node_modules/@babel/types/lib/utils/shallowEqual.js
|
|
26
26
|
var require_shallowEqual = __commonJS({
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_3za304dh1il from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_3za304dh1il from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_3za304dh1il from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_3za304dh1il.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_3za304dh1il.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_3za304dh1il.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
|
getSessionId
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-Q6LJZFXW.js";
|
|
15
15
|
import {
|
|
16
16
|
detectAgent,
|
|
17
17
|
version
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-XJ2M3N7X.js";
|
|
19
19
|
import {
|
|
20
20
|
getMonorepoType
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-WNYUQAFN.js";
|
|
22
22
|
import {
|
|
23
23
|
createFileSystemCache,
|
|
24
24
|
execa,
|
|
25
25
|
execaCommand,
|
|
26
26
|
resolvePathInStorybookCache,
|
|
27
27
|
up
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-VFV5MDK3.js";
|
|
29
29
|
import {
|
|
30
30
|
DATA_FETCHING_PACKAGES,
|
|
31
31
|
I18N_PACKAGES,
|
|
@@ -36,26 +36,26 @@ import {
|
|
|
36
36
|
UI_LIBRARY_PACKAGES,
|
|
37
37
|
matchesPackagePattern,
|
|
38
38
|
set
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-RIARFK7G.js";
|
|
40
40
|
import {
|
|
41
41
|
getProjectRoot
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-7H2QWASA.js";
|
|
43
43
|
import {
|
|
44
44
|
nanoid
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-PTVE4JY6.js";
|
|
46
46
|
import {
|
|
47
47
|
globalSettings
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-5SVYOSQR.js";
|
|
49
49
|
import {
|
|
50
50
|
resolvePackageDir
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-2XRAUFH3.js";
|
|
52
52
|
import {
|
|
53
53
|
slash
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-KHGPJOK6.js";
|
|
55
55
|
import {
|
|
56
56
|
__commonJS,
|
|
57
57
|
__toESM
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-57SVN5FU.js";
|
|
59
59
|
|
|
60
60
|
// ../../node_modules/fetch-retry/index.js
|
|
61
61
|
var require_fetch_retry = __commonJS({
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_3za304dh1il from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_3za304dh1il from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_3za304dh1il from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_3za304dh1il.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_3za304dh1il.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_3za304dh1il.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
StorybookError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-D42WAKAJ.js";
|
|
15
15
|
|
|
16
16
|
// src/oxc-parser/parse.ts
|
|
17
17
|
import { parse as oxcRawParse } from "oxc-parser";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_3za304dh1il from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_3za304dh1il from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_3za304dh1il from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_3za304dh1il.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_3za304dh1il.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_3za304dh1il.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_3za304dh1il from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_3za304dh1il from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_3za304dh1il from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_3za304dh1il.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_3za304dh1il.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_3za304dh1il.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_3za304dh1il from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_3za304dh1il from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_3za304dh1il from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_3za304dh1il.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_3za304dh1il.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_3za304dh1il.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -35,16 +35,16 @@ import {
|
|
|
35
35
|
verifyStep,
|
|
36
36
|
vitestPassesStrictDOD,
|
|
37
37
|
writeStoriesStep
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-HFCMUCGM.js";
|
|
39
39
|
import {
|
|
40
40
|
getDocsMarkdownUrl
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-YU24DKXR.js";
|
|
42
42
|
import {
|
|
43
43
|
require_dist
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-YOJEDPR4.js";
|
|
45
45
|
import {
|
|
46
46
|
__toESM
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-57SVN5FU.js";
|
|
48
48
|
|
|
49
49
|
// src/cli/ai/setup-prompts/optimized-tests.ts
|
|
50
50
|
var import_ts_dedent = __toESM(require_dist(), 1);
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_3za304dh1il from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_3za304dh1il from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_3za304dh1il from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_3za304dh1il.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_3za304dh1il.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_3za304dh1il.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
|
invariant
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-IAHCG5SY.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-YOJEDPR4.js";
|
|
18
18
|
import {
|
|
19
19
|
__export,
|
|
20
20
|
__toESM
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-57SVN5FU.js";
|
|
22
22
|
|
|
23
23
|
// src/cli/globalSettings.ts
|
|
24
24
|
var import_ts_dedent = __toESM(require_dist(), 1);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_3za304dh1il from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_3za304dh1il from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_3za304dh1il from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_3za304dh1il.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_3za304dh1il.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_3za304dh1il.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -14,27 +14,27 @@ import {
|
|
|
14
14
|
recast,
|
|
15
15
|
traverse,
|
|
16
16
|
types
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-3I7UZF4L.js";
|
|
18
18
|
import {
|
|
19
19
|
any,
|
|
20
20
|
detectIndent,
|
|
21
21
|
invariant,
|
|
22
22
|
up2 as up
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-IYHL7P35.js";
|
|
24
24
|
import {
|
|
25
25
|
resolvePackageDir
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-2XRAUFH3.js";
|
|
27
27
|
import {
|
|
28
28
|
require_dist
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-YOJEDPR4.js";
|
|
30
30
|
import {
|
|
31
31
|
require_picocolors
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-UM2ZG4W6.js";
|
|
33
33
|
import {
|
|
34
34
|
__commonJS,
|
|
35
35
|
__require,
|
|
36
36
|
__toESM
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-57SVN5FU.js";
|
|
38
38
|
|
|
39
39
|
// ../../node_modules/esprima/dist/esprima.js
|
|
40
40
|
var require_esprima = __commonJS({
|
|
@@ -4697,21 +4697,21 @@ var require_stringify = __commonJS({
|
|
|
4697
4697
|
return display_block || is_line_comment ? str + LF + deeper_gap : str;
|
|
4698
4698
|
}, replacer = null, indent = EMPTY, clean = () => {
|
|
4699
4699
|
replacer = null, indent = EMPTY;
|
|
4700
|
-
},
|
|
4700
|
+
}, join4 = (one, two, gap) => one ? two ? one + two.trim() + LF + gap : one.trimRight() + LF + gap : two ? two.trimRight() + LF + gap : EMPTY, join_content = (inside, value, gap) => {
|
|
4701
4701
|
let comment = process_comments(value, PREFIX_BEFORE, gap + indent, !0);
|
|
4702
|
-
return
|
|
4702
|
+
return join4(comment, inside, gap);
|
|
4703
4703
|
}, array_stringify = (value, gap) => {
|
|
4704
4704
|
let deeper_gap = gap + indent, { length } = value, inside = EMPTY, after_comma = EMPTY;
|
|
4705
4705
|
for (let i = 0; i < length; i++) {
|
|
4706
4706
|
i !== 0 && (inside += COMMA);
|
|
4707
|
-
let before =
|
|
4707
|
+
let before = join4(
|
|
4708
4708
|
after_comma,
|
|
4709
4709
|
process_comments(value, BEFORE(i), deeper_gap),
|
|
4710
4710
|
deeper_gap
|
|
4711
4711
|
);
|
|
4712
4712
|
inside += before || LF + deeper_gap, inside += stringify(i, value, deeper_gap) || STR_NULL, inside += process_comments(value, AFTER_VALUE(i), deeper_gap), after_comma = process_comments(value, AFTER(i), deeper_gap);
|
|
4713
4713
|
}
|
|
4714
|
-
return inside +=
|
|
4714
|
+
return inside += join4(
|
|
4715
4715
|
after_comma,
|
|
4716
4716
|
process_comments(value, PREFIX_AFTER, deeper_gap),
|
|
4717
4717
|
deeper_gap
|
|
@@ -4724,14 +4724,14 @@ var require_stringify = __commonJS({
|
|
|
4724
4724
|
if (sv === UNDEFINED)
|
|
4725
4725
|
return;
|
|
4726
4726
|
first || (inside += COMMA), first = !1;
|
|
4727
|
-
let before =
|
|
4727
|
+
let before = join4(
|
|
4728
4728
|
after_comma,
|
|
4729
4729
|
process_comments(value, BEFORE(key), deeper_gap),
|
|
4730
4730
|
deeper_gap
|
|
4731
4731
|
);
|
|
4732
4732
|
inside += before || LF + deeper_gap, inside += quote(key) + process_comments(value, AFTER_PROP(key), deeper_gap) + COLON + process_comments(value, AFTER_COLON(key), deeper_gap) + SPACE + sv + process_comments(value, AFTER_VALUE(key), deeper_gap), after_comma = process_comments(value, AFTER(key), deeper_gap);
|
|
4733
4733
|
};
|
|
4734
|
-
return keys.forEach(iteratee), inside +=
|
|
4734
|
+
return keys.forEach(iteratee), inside += join4(
|
|
4735
4735
|
after_comma,
|
|
4736
4736
|
process_comments(value, PREFIX_AFTER, deeper_gap),
|
|
4737
4737
|
deeper_gap
|
|
@@ -5235,8 +5235,8 @@ function unpackTar(directoryPath, options = {}) {
|
|
|
5235
5235
|
}), resetTimeout(), stream;
|
|
5236
5236
|
}
|
|
5237
5237
|
function createFSHandler(directoryPath, options) {
|
|
5238
|
-
let { maxDepth = 1024, dmode, fmode, concurrency = cpus().length || 8 } = options, abortController = new AbortController(), { signal } = abortController, opQueue = [], activeOps = 0, pathPromises = /* @__PURE__ */ new Map(), activeEntryStream = null, processingEnded = !1, resolveDrain, drainPromise = new Promise((
|
|
5239
|
-
resolveDrain =
|
|
5238
|
+
let { maxDepth = 1024, dmode, fmode, concurrency = cpus().length || 8 } = options, abortController = new AbortController(), { signal } = abortController, opQueue = [], activeOps = 0, pathPromises = /* @__PURE__ */ new Map(), activeEntryStream = null, processingEnded = !1, resolveDrain, drainPromise = new Promise((resolve4) => {
|
|
5239
|
+
resolveDrain = resolve4;
|
|
5240
5240
|
}), processQueue = () => {
|
|
5241
5241
|
for (signal.aborted && (opQueue.length = 0); activeOps < concurrency && opQueue.length > 0; ) {
|
|
5242
5242
|
activeOps++;
|
|
@@ -5519,15 +5519,25 @@ function hasStorybookDependencies(packageManager) {
|
|
|
5519
5519
|
|
|
5520
5520
|
// src/cli/angular/helpers.ts
|
|
5521
5521
|
import { existsSync as existsSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
5522
|
-
import {
|
|
5522
|
+
import { resolve as resolve3 } from "node:path";
|
|
5523
5523
|
import { prompt } from "storybook/internal/node-logger";
|
|
5524
5524
|
import { MissingAngularJsonError } from "storybook/internal/server-errors";
|
|
5525
|
-
|
|
5526
|
-
|
|
5527
|
-
|
|
5528
|
-
|
|
5529
|
-
|
|
5530
|
-
|
|
5525
|
+
import { applyEdits, modify } from "jsonc-parser";
|
|
5526
|
+
var ANGULAR_JSON_PATH = "angular.json", JSON_EDIT_FORMATTING = { insertSpaces: !0, tabSize: 2, eol: `
|
|
5527
|
+
` }, editJsonText = (text, path2, value) => applyEdits(text, modify(text, path2, value, { formattingOptions: JSON_EDIT_FORMATTING })), isStorybookTarget = (target) => {
|
|
5528
|
+
if (typeof target != "object" || target === null)
|
|
5529
|
+
return !1;
|
|
5530
|
+
let ref = target.builder ?? target.executor;
|
|
5531
|
+
return typeof ref == "string" && (ref.endsWith(":start-storybook") || ref.endsWith(":build-storybook"));
|
|
5532
|
+
}, AngularJSON = class {
|
|
5533
|
+
constructor(path2 = ANGULAR_JSON_PATH) {
|
|
5534
|
+
if (!existsSync2(path2))
|
|
5535
|
+
throw new MissingAngularJsonError({ path: resolve3(path2) });
|
|
5536
|
+
this.path = path2, this.rawText = readFileSync2(path2, "utf8"), this.json = JSON.parse(this.rawText);
|
|
5537
|
+
}
|
|
5538
|
+
/** Apply a format-preserving edit at `path` and keep `json` in sync with the result. */
|
|
5539
|
+
edit(path2, value) {
|
|
5540
|
+
this.rawText = editJsonText(this.rawText, path2, value), this.json = JSON.parse(this.rawText);
|
|
5531
5541
|
}
|
|
5532
5542
|
get projects() {
|
|
5533
5543
|
return this.json.projects;
|
|
@@ -5581,13 +5591,13 @@ var ANGULAR_JSON_PATH = "angular.json", AngularJSON = class {
|
|
|
5581
5591
|
...useCompodoc && { compodocArgs: ["-e", "json", "-d", root || "."] }
|
|
5582
5592
|
}
|
|
5583
5593
|
};
|
|
5584
|
-
architect.storybook || (architect
|
|
5594
|
+
architect.storybook || this.edit(["projects", angularProjectName, "architect", "storybook"], {
|
|
5585
5595
|
builder: `${builderPackage}:start-storybook`,
|
|
5586
5596
|
options: {
|
|
5587
5597
|
...baseOptions,
|
|
5588
5598
|
port: 6006
|
|
5589
5599
|
}
|
|
5590
|
-
}), architect["build-storybook"] || (
|
|
5600
|
+
}), architect["build-storybook"] || this.edit(["projects", angularProjectName, "architect", "build-storybook"], {
|
|
5591
5601
|
builder: `${builderPackage}:build-storybook`,
|
|
5592
5602
|
options: {
|
|
5593
5603
|
...baseOptions,
|
|
@@ -5596,7 +5606,7 @@ var ANGULAR_JSON_PATH = "angular.json", AngularJSON = class {
|
|
|
5596
5606
|
});
|
|
5597
5607
|
}
|
|
5598
5608
|
write() {
|
|
5599
|
-
writeFileSync2(
|
|
5609
|
+
writeFileSync2(this.path, this.rawText);
|
|
5600
5610
|
}
|
|
5601
5611
|
};
|
|
5602
5612
|
|
|
@@ -5820,10 +5830,22 @@ var SUPPORTED_FRAMEWORKS = [
|
|
|
5820
5830
|
];
|
|
5821
5831
|
|
|
5822
5832
|
// src/cli/AddonVitestService.ts
|
|
5823
|
-
var AddonVitestService = class {
|
|
5833
|
+
var AddonVitestService = class _AddonVitestService {
|
|
5824
5834
|
constructor(packageManager) {
|
|
5825
5835
|
this.packageManager = packageManager;
|
|
5826
5836
|
}
|
|
5837
|
+
/**
|
|
5838
|
+
* Reduce a Vitest version specifier (exact or range) to a single concrete version for
|
|
5839
|
+
* `semver.satisfies` comparisons, so dependency collection and postinstall template selection make
|
|
5840
|
+
* the same major/minor decision. Uses the lower bound of a valid range, then coerces so a
|
|
5841
|
+
* prerelease like `4.0.0-beta.1` is treated as `4.0.0` rather than failing `>=4.0.0`.
|
|
5842
|
+
*/
|
|
5843
|
+
static getComparableVersion(specifier) {
|
|
5844
|
+
if (!specifier)
|
|
5845
|
+
return;
|
|
5846
|
+
let range = validRange(specifier);
|
|
5847
|
+
return coerce2(range ? minVersion(range)?.version : specifier)?.version;
|
|
5848
|
+
}
|
|
5827
5849
|
/**
|
|
5828
5850
|
* Collect all dependencies needed for @storybook/addon-vitest
|
|
5829
5851
|
*
|
|
@@ -5834,24 +5856,27 @@ var AddonVitestService = class {
|
|
|
5834
5856
|
* - Coverage reporter: @vitest/coverage-v8
|
|
5835
5857
|
*/
|
|
5836
5858
|
async collectDependencies() {
|
|
5837
|
-
let allDeps = this.packageManager.getAllDependencies(), dependencies = [], vitestVersionSpecifier = await this.packageManager.
|
|
5838
|
-
!vitestVersionSpecifier && allDeps.vitest && (vitestVersionSpecifier = allDeps.vitest);
|
|
5839
|
-
let isVitest4OrNewer = !0;
|
|
5840
|
-
if (vitestVersionSpecifier) {
|
|
5841
|
-
let range = validRange(vitestVersionSpecifier), versionToCheck = range ? minVersion(range)?.version : coerce2(vitestVersionSpecifier)?.version;
|
|
5842
|
-
isVitest4OrNewer = versionToCheck ? satisfies2(versionToCheck, ">=4.0.0") : !0;
|
|
5843
|
-
}
|
|
5844
|
-
let basePackages = [
|
|
5859
|
+
let allDeps = this.packageManager.getAllDependencies(), dependencies = [], vitestVersionSpecifier = await this.packageManager.getDeclaredVersionSpecifier("vitest"), versionToCheck = _AddonVitestService.getComparableVersion(vitestVersionSpecifier), basePackages = [
|
|
5845
5860
|
"vitest",
|
|
5846
5861
|
"playwright",
|
|
5847
|
-
|
|
5862
|
+
(versionToCheck ? satisfies2(versionToCheck, ">=4.0.0") : !0) ? "@vitest/browser-playwright" : "@vitest/browser"
|
|
5848
5863
|
];
|
|
5849
5864
|
for (let pkg of basePackages)
|
|
5850
5865
|
allDeps[pkg] || dependencies.push(pkg);
|
|
5851
5866
|
let v8Version = await this.packageManager.getInstalledVersion("@vitest/coverage-v8"), istanbulVersion = await this.packageManager.getInstalledVersion(
|
|
5852
5867
|
"@vitest/coverage-istanbul"
|
|
5853
5868
|
);
|
|
5854
|
-
|
|
5869
|
+
if (!v8Version && !istanbulVersion && dependencies.push("@vitest/coverage-v8"), !vitestVersionSpecifier)
|
|
5870
|
+
return dependencies;
|
|
5871
|
+
let related = dependencies.filter((pkg) => pkg.includes("vitest")), rest = dependencies.filter((pkg) => !pkg.includes("vitest"));
|
|
5872
|
+
return [
|
|
5873
|
+
...this.packageManager.applyVersionToRelatedPackages(
|
|
5874
|
+
related,
|
|
5875
|
+
vitestVersionSpecifier,
|
|
5876
|
+
"vitest"
|
|
5877
|
+
),
|
|
5878
|
+
...rest
|
|
5879
|
+
];
|
|
5855
5880
|
}
|
|
5856
5881
|
/**
|
|
5857
5882
|
* Install Playwright browser binaries for @storybook/addon-vitest
|
|
@@ -5987,6 +6012,8 @@ export {
|
|
|
5987
6012
|
coerceSemver,
|
|
5988
6013
|
hasStorybookDependencies,
|
|
5989
6014
|
ANGULAR_JSON_PATH,
|
|
6015
|
+
editJsonText,
|
|
6016
|
+
isStorybookTarget,
|
|
5990
6017
|
AngularJSON,
|
|
5991
6018
|
ProjectType,
|
|
5992
6019
|
SUPPORTED_ESLINT_EXTENSIONS,
|