storybook 9.0.0-alpha.2 → 9.0.0-alpha.4
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/README.md +1 -1
- package/dist/actions/decorator.d.ts +6 -0
- package/dist/actions/decorator.js +139 -0
- package/dist/actions/index.cjs +127 -0
- package/dist/actions/index.d.ts +105 -0
- package/dist/actions/index.js +112 -0
- package/dist/actions/manager.js +1196 -0
- package/dist/actions/preview.cjs +165 -0
- package/dist/actions/preview.d.ts +55 -0
- package/dist/actions/preview.js +156 -0
- package/dist/bin/index.cjs +63 -65
- package/dist/bin/index.js +63 -65
- package/dist/channels/index.cjs +209 -234
- package/dist/channels/index.js +304 -308
- package/dist/cli/bin/index.cjs +409 -409
- package/dist/cli/bin/index.js +414 -414
- package/dist/cli/index.cjs +1 -1
- package/dist/cli/index.d.ts +2 -2
- package/dist/cli/index.js +1 -1
- package/dist/client-logger/index.cjs +56 -88
- package/dist/client-logger/index.js +41 -47
- package/dist/common/index.cjs +148 -148
- package/dist/common/index.d.ts +1 -5
- package/dist/common/index.js +171 -171
- package/dist/components/index.cjs +9413 -11578
- package/dist/components/index.d.ts +92 -92
- package/dist/components/index.js +6768 -7544
- package/dist/core-events/index.d.ts +138 -25
- package/dist/core-server/index.cjs +5244 -5270
- package/dist/core-server/index.d.ts +1 -1
- package/dist/core-server/index.js +5356 -5380
- package/dist/core-server/presets/common-manager.js +11 -19
- package/dist/core-server/presets/common-preset.cjs +243 -242
- package/dist/core-server/presets/common-preset.js +379 -378
- package/dist/csf/index.cjs +76 -120
- package/dist/csf/index.d.ts +1 -3
- package/dist/csf/index.js +69 -113
- package/dist/docs-tools/index.cjs +1 -1
- package/dist/docs-tools/index.d.ts +2 -2
- package/dist/docs-tools/index.js +1 -1
- package/dist/instrumenter/index.cjs +1260 -1289
- package/dist/instrumenter/index.js +1344 -1348
- package/dist/manager/globals-module-info.cjs +272 -135
- package/dist/manager/globals-module-info.d.ts +1 -1
- package/dist/manager/globals-module-info.js +257 -120
- package/dist/manager/globals-runtime.js +59553 -22373
- package/dist/manager/globals.cjs +23 -19
- package/dist/manager/globals.d.ts +8 -5
- package/dist/manager/globals.js +10 -6
- package/dist/manager/runtime.js +129 -129
- package/dist/manager-api/index.cjs +1184 -1209
- package/dist/manager-api/index.d.ts +3 -3
- package/dist/manager-api/index.js +1012 -1012
- package/dist/preview/globals.cjs +21 -17
- package/dist/preview/globals.d.ts +4 -1
- package/dist/preview/globals.js +6 -2
- package/dist/preview/runtime.js +43946 -6548
- package/dist/preview-api/index.cjs +1245 -1243
- package/dist/preview-api/index.d.ts +105 -61
- package/dist/preview-api/index.js +1311 -1273
- package/dist/preview-errors.cjs +1 -1
- package/dist/preview-errors.js +1 -1
- package/dist/router/index.cjs +847 -871
- package/dist/router/index.js +193 -199
- package/dist/test/index.cjs +34778 -0
- package/dist/test/index.d.ts +186 -0
- package/dist/test/index.js +32916 -0
- package/dist/test/preview.cjs +15870 -0
- package/dist/test/preview.d.ts +54 -0
- package/dist/test/preview.js +14441 -0
- package/dist/test/spy.cjs +258 -0
- package/dist/test/spy.d.ts +66 -0
- package/dist/test/spy.js +240 -0
- package/dist/theming/create.cjs +79 -2269
- package/dist/theming/create.js +67 -841
- package/dist/theming/index.cjs +1065 -3232
- package/dist/theming/index.js +951 -1719
- package/dist/types/index.d.ts +242 -242
- package/package.json +155 -3
package/dist/common/index.cjs
CHANGED
|
@@ -592,7 +592,7 @@ var Ra = j((XF, Ma) => {
|
|
|
592
592
|
// ../node_modules/picomatch/lib/constants.js
|
|
593
593
|
var Tr = j((JN, $a) => {
|
|
594
594
|
"use strict";
|
|
595
|
-
var Nf = require("path"),
|
|
595
|
+
var Nf = require("path"), Me = "\\\\/", Wa = `[^${Me}]`, ve = "\\.", kf = "\\+", Mf = "\\?", to = "\\/", Rf = "(?=.)", Xa = "[^/]", ds = `\
|
|
596
596
|
(?:${to}|$)`, Va = `(?:^|${to})`, ps = `${ve}{1,2}${ds}`, bf = `(?!${ve})`, Lf = `(?!${Va}${ps})`, Yf = `(?!${ve}{0,1}${ds})`, Uf = `(?!${ps}\
|
|
597
597
|
)`, Gf = `[^.${to}]`, Jf = `${Xa}*?`, Za = {
|
|
598
598
|
DOT_LITERAL: ve,
|
|
@@ -612,17 +612,17 @@ var Tr = j((JN, $a) => {
|
|
|
612
612
|
START_ANCHOR: Va
|
|
613
613
|
}, vf = {
|
|
614
614
|
...Za,
|
|
615
|
-
SLASH_LITERAL: `[${
|
|
615
|
+
SLASH_LITERAL: `[${Me}]`,
|
|
616
616
|
QMARK: Wa,
|
|
617
617
|
STAR: `${Wa}*?`,
|
|
618
|
-
DOTS_SLASH: `${ve}{1,2}(?:[${
|
|
618
|
+
DOTS_SLASH: `${ve}{1,2}(?:[${Me}]|$)`,
|
|
619
619
|
NO_DOT: `(?!${ve})`,
|
|
620
|
-
NO_DOTS: `(?!(?:^|[${
|
|
621
|
-
NO_DOT_SLASH: `(?!${ve}{0,1}(?:[${
|
|
622
|
-
NO_DOTS_SLASH: `(?!${ve}{1,2}(?:[${
|
|
623
|
-
QMARK_NO_DOT: `[^.${
|
|
624
|
-
START_ANCHOR: `(?:^|[${
|
|
625
|
-
END_ANCHOR: `(?:[${
|
|
620
|
+
NO_DOTS: `(?!(?:^|[${Me}])${ve}{1,2}(?:[${Me}]|$))`,
|
|
621
|
+
NO_DOT_SLASH: `(?!${ve}{0,1}(?:[${Me}]|$))`,
|
|
622
|
+
NO_DOTS_SLASH: `(?!${ve}{1,2}(?:[${Me}]|$))`,
|
|
623
|
+
QMARK_NO_DOT: `[^.${Me}]`,
|
|
624
|
+
START_ANCHOR: `(?:^|[${Me}])`,
|
|
625
|
+
END_ANCHOR: `(?:[${Me}]|$)`
|
|
626
626
|
}, xf = {
|
|
627
627
|
alnum: "a-zA-Z0-9",
|
|
628
628
|
alpha: "a-zA-Z",
|
|
@@ -1065,7 +1065,7 @@ var IE = j((ON, CE) => {
|
|
|
1065
1065
|
return Y % 2 === 0 ? !1 : (F.negated = !0, F.start++, !0);
|
|
1066
1066
|
}, "negate"), je = /* @__PURE__ */ g((Y) => {
|
|
1067
1067
|
F[Y]++, Ce.push(Y);
|
|
1068
|
-
}, "increment"),
|
|
1068
|
+
}, "increment"), Re = /* @__PURE__ */ g((Y) => {
|
|
1069
1069
|
F[Y]--, Ce.pop();
|
|
1070
1070
|
}, "decrement"), rA = /* @__PURE__ */ g((Y) => {
|
|
1071
1071
|
if (S.type === "globstar") {
|
|
@@ -1097,7 +1097,7 @@ var IE = j((ON, CE) => {
|
|
|
1097
1097
|
}
|
|
1098
1098
|
Y.prev.type === "bos" && (F.negatedExtglob = !0);
|
|
1099
1099
|
}
|
|
1100
|
-
rA({ type: "paren", extglob: !0, value: K, output: IA }),
|
|
1100
|
+
rA({ type: "paren", extglob: !0, value: K, output: IA }), Re("parens");
|
|
1101
1101
|
}, "extglobClose");
|
|
1102
1102
|
if (e.fastpaths !== !1 && !/(^[*!]|[/()[\]{}"])/.test(r)) {
|
|
1103
1103
|
let Y = !1, IA = r.replace(tw, (b, N, QA, DA, lA, Kt) => DA === "\\" ? (Y = !0, b) : DA === "?" ? N ? N + DA + (lA ? M.repeat(lA.length) :
|
|
@@ -1159,7 +1159,7 @@ var IE = j((ON, CE) => {
|
|
|
1159
1159
|
RA(cA.pop());
|
|
1160
1160
|
continue;
|
|
1161
1161
|
}
|
|
1162
|
-
rA({ type: "paren", value: K, output: F.parens ? ")" : "\\)" }),
|
|
1162
|
+
rA({ type: "paren", value: K, output: F.parens ? ")" : "\\)" }), Re("parens");
|
|
1163
1163
|
continue;
|
|
1164
1164
|
}
|
|
1165
1165
|
if (K === "[") {
|
|
@@ -1183,7 +1183,7 @@ var IE = j((ON, CE) => {
|
|
|
1183
1183
|
rA({ type: "text", value: K, output: `\\${K}` });
|
|
1184
1184
|
continue;
|
|
1185
1185
|
}
|
|
1186
|
-
|
|
1186
|
+
Re("brackets");
|
|
1187
1187
|
let b = S.value.slice(1);
|
|
1188
1188
|
if (S.posix !== !0 && b[0] === "^" && !b.includes("/") && (K = `/${K}`), S.value += K, at({ value: K }), e.literalBrackets === !1 ||
|
|
1189
1189
|
Ae.hasRegexChars(b))
|
|
@@ -1227,7 +1227,7 @@ var IE = j((ON, CE) => {
|
|
|
1227
1227
|
for (let lA of DA)
|
|
1228
1228
|
F.output += lA.output || lA.value;
|
|
1229
1229
|
}
|
|
1230
|
-
rA({ type: "brace", value: K, output: N }),
|
|
1230
|
+
rA({ type: "brace", value: K, output: N }), Re("braces"), BA.pop();
|
|
1231
1231
|
continue;
|
|
1232
1232
|
}
|
|
1233
1233
|
if (K === "|") {
|
|
@@ -1389,15 +1389,15 @@ slash", value: "/", output: "" });
|
|
|
1389
1389
|
}
|
|
1390
1390
|
for (; F.brackets > 0; ) {
|
|
1391
1391
|
if (e.strictBrackets === !0) throw new SyntaxError(Xt("closing", "]"));
|
|
1392
|
-
F.output = Ae.escapeLast(F.output, "["),
|
|
1392
|
+
F.output = Ae.escapeLast(F.output, "["), Re("brackets");
|
|
1393
1393
|
}
|
|
1394
1394
|
for (; F.parens > 0; ) {
|
|
1395
1395
|
if (e.strictBrackets === !0) throw new SyntaxError(Xt("closing", ")"));
|
|
1396
|
-
F.output = Ae.escapeLast(F.output, "("),
|
|
1396
|
+
F.output = Ae.escapeLast(F.output, "("), Re("parens");
|
|
1397
1397
|
}
|
|
1398
1398
|
for (; F.braces > 0; ) {
|
|
1399
1399
|
if (e.strictBrackets === !0) throw new SyntaxError(Xt("closing", "}"));
|
|
1400
|
-
F.output = Ae.escapeLast(F.output, "{"),
|
|
1400
|
+
F.output = Ae.escapeLast(F.output, "{"), Re("braces");
|
|
1401
1401
|
}
|
|
1402
1402
|
if (e.strictSlashes !== !0 && (S.type === "star" || S.type === "bracket") && rA({ type: "maybe_slash", value: "", output: `${p}?` }), F.
|
|
1403
1403
|
backtrack === !0) {
|
|
@@ -6795,7 +6795,7 @@ var RQ = j((Ig, sC) => {
|
|
|
6795
6795
|
}, "string"),
|
|
6796
6796
|
array: /* @__PURE__ */ g(function(_) {
|
|
6797
6797
|
var tA = DC(_.length);
|
|
6798
|
-
return
|
|
6798
|
+
return Re(_, tA), tA;
|
|
6799
6799
|
}, "array")
|
|
6800
6800
|
};
|
|
6801
6801
|
function d(_) {
|
|
@@ -6896,10 +6896,10 @@ var RQ = j((Ig, sC) => {
|
|
|
6896
6896
|
return a && yA(n, RA, a, C), a;
|
|
6897
6897
|
}
|
|
6898
6898
|
g(je, "allocateUTF8");
|
|
6899
|
-
function
|
|
6899
|
+
function Re(n, C) {
|
|
6900
6900
|
RA.set(n, C);
|
|
6901
6901
|
}
|
|
6902
|
-
g(
|
|
6902
|
+
g(Re, "writeArrayToMemory");
|
|
6903
6903
|
function rA(n, C) {
|
|
6904
6904
|
return n % C > 0 && (n += C - n % C), n;
|
|
6905
6905
|
}
|
|
@@ -8625,7 +8625,7 @@ OWTH to allow any size memory (and also make sure not to set INITIAL_MEMORY at r
|
|
|
8625
8625
|
return C(Q[0]), e.asm;
|
|
8626
8626
|
}
|
|
8627
8627
|
g(ch, "createWasm");
|
|
8628
|
-
var SA,
|
|
8628
|
+
var SA, be;
|
|
8629
8629
|
function fg(n) {
|
|
8630
8630
|
for (; n.length > 0; ) {
|
|
8631
8631
|
var C = n.shift();
|
|
@@ -8715,7 +8715,7 @@ OWTH to allow any size memory (and also make sure not to set INITIAL_MEMORY at r
|
|
|
8715
8715
|
};
|
|
8716
8716
|
}
|
|
8717
8717
|
g(Qh, "getRandomDevice");
|
|
8718
|
-
var
|
|
8718
|
+
var Le = {
|
|
8719
8719
|
resolve: /* @__PURE__ */ g(function() {
|
|
8720
8720
|
for (var n = "", C = !1, a = arguments.length - 1; a >= -1 && !C; a--) {
|
|
8721
8721
|
var Q = a >= 0 ? arguments[a] : c.cwd();
|
|
@@ -8733,7 +8733,7 @@ OWTH to allow any size memory (and also make sure not to set INITIAL_MEMORY at r
|
|
|
8733
8733
|
).join("/"), (C ? "/" : "") + n || ".";
|
|
8734
8734
|
}, "resolve"),
|
|
8735
8735
|
relative: /* @__PURE__ */ g(function(n, C) {
|
|
8736
|
-
n =
|
|
8736
|
+
n = Le.resolve(n).substr(1), C = Le.resolve(C).substr(1);
|
|
8737
8737
|
function a(v) {
|
|
8738
8738
|
for (var O = 0; O < v.length && v[O] === ""; O++)
|
|
8739
8739
|
;
|
|
@@ -9619,7 +9619,7 @@ OWTH to allow any size memory (and also make sure not to set INITIAL_MEMORY at r
|
|
|
9619
9619
|
filesystems: null,
|
|
9620
9620
|
syncFSRequests: 0,
|
|
9621
9621
|
lookupPath: /* @__PURE__ */ g(function(n, C) {
|
|
9622
|
-
if (n =
|
|
9622
|
+
if (n = Le.resolve(c.cwd(), n), C = C || {}, !n) return { path: "", node: null };
|
|
9623
9623
|
var a = { follow_mount: !0, recurse_count: 0 };
|
|
9624
9624
|
for (var Q in a)
|
|
9625
9625
|
C[Q] === void 0 && (C[Q] = a[Q]);
|
|
@@ -9638,7 +9638,7 @@ OWTH to allow any size memory (and also make sure not to set INITIAL_MEMORY at r
|
|
|
9638
9638
|
C.follow)
|
|
9639
9639
|
for (var v = 0; c.isLink(w.mode); ) {
|
|
9640
9640
|
var O = c.readlink(d);
|
|
9641
|
-
d =
|
|
9641
|
+
d = Le.resolve(iA.dirname(d), O);
|
|
9642
9642
|
var eA = c.lookupPath(d, {
|
|
9643
9643
|
recurse_count: C.recurse_count
|
|
9644
9644
|
});
|
|
@@ -9941,7 +9941,7 @@ OWTH to allow any size memory (and also make sure not to set INITIAL_MEMORY at r
|
|
|
9941
9941
|
return typeof a > "u" && (a = C, C = 438), C |= 8192, c.mknod(n, C, a);
|
|
9942
9942
|
}, "mkdev"),
|
|
9943
9943
|
symlink: /* @__PURE__ */ g(function(n, C) {
|
|
9944
|
-
if (!
|
|
9944
|
+
if (!Le.resolve(n))
|
|
9945
9945
|
throw new c.ErrnoError(44);
|
|
9946
9946
|
var a = c.lookupPath(C, { parent: !0 }), Q = a.node;
|
|
9947
9947
|
if (!Q)
|
|
@@ -9959,10 +9959,10 @@ OWTH to allow any size memory (and also make sure not to set INITIAL_MEMORY at r
|
|
|
9959
9959
|
44);
|
|
9960
9960
|
if (y.mount !== k.mount)
|
|
9961
9961
|
throw new c.ErrnoError(75);
|
|
9962
|
-
var v = c.lookupNode(y, l), O =
|
|
9962
|
+
var v = c.lookupNode(y, l), O = Le.relative(n, Q);
|
|
9963
9963
|
if (O.charAt(0) !== ".")
|
|
9964
9964
|
throw new c.ErrnoError(28);
|
|
9965
|
-
if (O =
|
|
9965
|
+
if (O = Le.relative(C, a), O.charAt(0) !== ".")
|
|
9966
9966
|
throw new c.ErrnoError(55);
|
|
9967
9967
|
var eA;
|
|
9968
9968
|
try {
|
|
@@ -10065,7 +10065,7 @@ OWTH to allow any size memory (and also make sure not to set INITIAL_MEMORY at r
|
|
|
10065
10065
|
throw new c.ErrnoError(44);
|
|
10066
10066
|
if (!a.node_ops.readlink)
|
|
10067
10067
|
throw new c.ErrnoError(28);
|
|
10068
|
-
return
|
|
10068
|
+
return Le.resolve(
|
|
10069
10069
|
c.getPath(a.parent),
|
|
10070
10070
|
a.node_ops.readlink(a)
|
|
10071
10071
|
);
|
|
@@ -10679,7 +10679,7 @@ ers. Use --embed-file or --preload-file in emcc on the main thread."
|
|
|
10679
10679
|
}, "createLazyFile"),
|
|
10680
10680
|
createPreloadedFile: /* @__PURE__ */ g(function(n, C, a, Q, l, w, d, y, k, v) {
|
|
10681
10681
|
Browser.init();
|
|
10682
|
-
var O = C ?
|
|
10682
|
+
var O = C ? Le.resolve(iA.join2(n, C)) : n, eA = "cp " + O;
|
|
10683
10683
|
function W(_) {
|
|
10684
10684
|
function tA(Ie) {
|
|
10685
10685
|
v && v(), y || c.createDataFile(
|
|
@@ -10817,19 +10817,19 @@ ers. Use --embed-file or --preload-file in emcc on the main thread."
|
|
|
10817
10817
|
throw l;
|
|
10818
10818
|
}
|
|
10819
10819
|
return N[a >> 2] = Q.dev, N[a + 4 >> 2] = 0, N[a + 8 >> 2] = Q.ino, N[a + 12 >> 2] = Q.mode, N[a + 16 >> 2] = Q.nlink, N[a + 20 >>
|
|
10820
|
-
2] = Q.uid, N[a + 24 >> 2] = Q.gid, N[a + 28 >> 2] = Q.rdev, N[a + 32 >> 2] = 0,
|
|
10820
|
+
2] = Q.uid, N[a + 24 >> 2] = Q.gid, N[a + 28 >> 2] = Q.rdev, N[a + 32 >> 2] = 0, be = [
|
|
10821
10821
|
Q.size >>> 0,
|
|
10822
10822
|
(SA = Q.size, +Math.abs(SA) >= 1 ? SA > 0 ? (Math.min(+Math.floor(SA / 4294967296), 4294967295) | 0) >>> 0 : ~~+Math.ceil(
|
|
10823
10823
|
(SA - +(~~SA >>> 0)) / 4294967296
|
|
10824
10824
|
) >>> 0 : 0)
|
|
10825
|
-
], N[a + 40 >> 2] =
|
|
10825
|
+
], N[a + 40 >> 2] = be[0], N[a + 44 >> 2] = be[1], N[a + 48 >> 2] = 4096, N[a + 52 >> 2] = Q.blocks, N[a + 56 >> 2] = Q.atime.getTime() /
|
|
10826
10826
|
1e3 | 0, N[a + 60 >> 2] = 0, N[a + 64 >> 2] = Q.mtime.getTime() / 1e3 | 0, N[a + 68 >> 2] = 0, N[a + 72 >> 2] = Q.ctime.getTime() /
|
|
10827
|
-
1e3 | 0, N[a + 76 >> 2] = 0,
|
|
10827
|
+
1e3 | 0, N[a + 76 >> 2] = 0, be = [
|
|
10828
10828
|
Q.ino >>> 0,
|
|
10829
10829
|
(SA = Q.ino, +Math.abs(SA) >= 1 ? SA > 0 ? (Math.min(+Math.floor(SA / 4294967296), 4294967295) | 0) >>> 0 : ~~+Math.ceil(
|
|
10830
10830
|
(SA - +(~~SA >>> 0)) / 4294967296
|
|
10831
10831
|
) >>> 0 : 0)
|
|
10832
|
-
], N[a + 80 >> 2] =
|
|
10832
|
+
], N[a + 80 >> 2] = be[0], N[a + 84 >> 2] = be[1], 0;
|
|
10833
10833
|
}, "doStat"),
|
|
10834
10834
|
doMsync: /* @__PURE__ */ g(function(n, C, a, Q, l) {
|
|
10835
10835
|
var w = Y.slice(n, n + a);
|
|
@@ -11109,12 +11109,12 @@ ers. Use --embed-file or --preload-file in emcc on the main thread."
|
|
|
11109
11109
|
function Rh(n, C, a, Q, l) {
|
|
11110
11110
|
try {
|
|
11111
11111
|
var w = CA.getStreamFromFD(n), d = 4294967296, y = a * d + (C >>> 0), k = 9007199254740992;
|
|
11112
|
-
return y <= -k || y >= k ? -61 : (c.llseek(w, y, Q),
|
|
11112
|
+
return y <= -k || y >= k ? -61 : (c.llseek(w, y, Q), be = [
|
|
11113
11113
|
w.position >>> 0,
|
|
11114
11114
|
(SA = w.position, +Math.abs(SA) >= 1 ? SA > 0 ? (Math.min(+Math.floor(SA / 4294967296), 4294967295) | 0) >>> 0 : ~~+Math.ceil(
|
|
11115
11115
|
(SA - +(~~SA >>> 0)) / 4294967296
|
|
11116
11116
|
) >>> 0 : 0)
|
|
11117
|
-
], N[l >> 2] =
|
|
11117
|
+
], N[l >> 2] = be[0], N[l + 4 >> 2] = be[1], w.getdents && y === 0 && Q === 0 && (w.getdents = null), 0);
|
|
11118
11118
|
} catch (v) {
|
|
11119
11119
|
return (typeof c > "u" || !(v instanceof c.ErrnoError)) && dA(v), v.errno;
|
|
11120
11120
|
}
|
|
@@ -11567,77 +11567,75 @@ yg(Zy, {
|
|
|
11567
11567
|
temporaryFile: () => pa,
|
|
11568
11568
|
validateConfigurationFiles: () => Ur,
|
|
11569
11569
|
validateFrameworkName: () => Ty,
|
|
11570
|
-
versions: () =>
|
|
11570
|
+
versions: () => De
|
|
11571
11571
|
});
|
|
11572
11572
|
module.exports = te(Zy);
|
|
11573
11573
|
|
|
11574
11574
|
// src/common/versions.ts
|
|
11575
|
-
var
|
|
11576
|
-
"@storybook/addon-a11y": "9.0.0-alpha.
|
|
11577
|
-
"@storybook/addon-
|
|
11578
|
-
"@storybook/addon-
|
|
11579
|
-
"@storybook/addon-
|
|
11580
|
-
"@storybook/addon-
|
|
11581
|
-
"@storybook/addon-
|
|
11582
|
-
"@storybook/addon-
|
|
11583
|
-
"@storybook/addon-
|
|
11584
|
-
"@storybook/addon-
|
|
11585
|
-
"@storybook/addon-
|
|
11586
|
-
"@storybook/addon-
|
|
11587
|
-
"@storybook/addon-
|
|
11588
|
-
"@storybook/addon-
|
|
11589
|
-
"@storybook/addon-
|
|
11590
|
-
"@storybook/addon-
|
|
11591
|
-
"@storybook/addon-
|
|
11592
|
-
"@storybook/addon-
|
|
11593
|
-
"@storybook/addon-
|
|
11594
|
-
"@storybook/
|
|
11595
|
-
"@storybook/builder-
|
|
11596
|
-
|
|
11597
|
-
storybook: "9.0.0-alpha.
|
|
11598
|
-
"@storybook/
|
|
11599
|
-
"@storybook/
|
|
11600
|
-
"@storybook/
|
|
11601
|
-
"@storybook/html-
|
|
11602
|
-
"@storybook/
|
|
11603
|
-
"@storybook/
|
|
11604
|
-
"@storybook/preact-
|
|
11605
|
-
"@storybook/
|
|
11606
|
-
"@storybook/react-
|
|
11607
|
-
"@storybook/react-
|
|
11608
|
-
"@storybook/
|
|
11609
|
-
"@storybook/
|
|
11610
|
-
"@storybook/svelte-
|
|
11611
|
-
"@storybook/
|
|
11612
|
-
"@storybook/
|
|
11613
|
-
"@storybook/vue3-
|
|
11614
|
-
"@storybook/
|
|
11615
|
-
"@storybook/web-components-
|
|
11616
|
-
"@storybook/
|
|
11617
|
-
|
|
11618
|
-
|
|
11619
|
-
"@storybook/
|
|
11620
|
-
"@storybook/
|
|
11621
|
-
"
|
|
11622
|
-
"
|
|
11623
|
-
"@storybook/
|
|
11624
|
-
"@storybook/
|
|
11625
|
-
"@storybook/
|
|
11626
|
-
"@storybook/
|
|
11627
|
-
"@storybook/preset-
|
|
11628
|
-
"@storybook/preset-
|
|
11629
|
-
"@storybook/preset-
|
|
11630
|
-
"@storybook/preset-
|
|
11631
|
-
"@storybook/preset-
|
|
11632
|
-
"@storybook/
|
|
11633
|
-
"@storybook/
|
|
11634
|
-
"@storybook/
|
|
11635
|
-
"@storybook/
|
|
11636
|
-
"@storybook/
|
|
11637
|
-
"@storybook/
|
|
11638
|
-
"@storybook/
|
|
11639
|
-
"@storybook/vue3": "9.0.0-alpha.2",
|
|
11640
|
-
"@storybook/web-components": "9.0.0-alpha.2"
|
|
11575
|
+
var De = {
|
|
11576
|
+
"@storybook/addon-a11y": "9.0.0-alpha.4",
|
|
11577
|
+
"@storybook/addon-backgrounds": "9.0.0-alpha.4",
|
|
11578
|
+
"@storybook/addon-controls": "9.0.0-alpha.4",
|
|
11579
|
+
"@storybook/addon-docs": "9.0.0-alpha.4",
|
|
11580
|
+
"@storybook/addon-essentials": "9.0.0-alpha.4",
|
|
11581
|
+
"@storybook/addon-mdx-gfm": "9.0.0-alpha.4",
|
|
11582
|
+
"@storybook/addon-highlight": "9.0.0-alpha.4",
|
|
11583
|
+
"@storybook/addon-interactions": "9.0.0-alpha.4",
|
|
11584
|
+
"@storybook/addon-jest": "9.0.0-alpha.4",
|
|
11585
|
+
"@storybook/addon-links": "9.0.0-alpha.4",
|
|
11586
|
+
"@storybook/addon-measure": "9.0.0-alpha.4",
|
|
11587
|
+
"@storybook/addon-onboarding": "9.0.0-alpha.4",
|
|
11588
|
+
"@storybook/addon-outline": "9.0.0-alpha.4",
|
|
11589
|
+
"@storybook/addon-storysource": "9.0.0-alpha.4",
|
|
11590
|
+
"@storybook/addon-test": "9.0.0-alpha.4",
|
|
11591
|
+
"@storybook/addon-themes": "9.0.0-alpha.4",
|
|
11592
|
+
"@storybook/addon-toolbars": "9.0.0-alpha.4",
|
|
11593
|
+
"@storybook/addon-viewport": "9.0.0-alpha.4",
|
|
11594
|
+
"@storybook/builder-vite": "9.0.0-alpha.4",
|
|
11595
|
+
"@storybook/builder-webpack5": "9.0.0-alpha.4",
|
|
11596
|
+
storybook: "9.0.0-alpha.4",
|
|
11597
|
+
"@storybook/angular": "9.0.0-alpha.4",
|
|
11598
|
+
"@storybook/ember": "9.0.0-alpha.4",
|
|
11599
|
+
"@storybook/experimental-nextjs-vite": "9.0.0-alpha.4",
|
|
11600
|
+
"@storybook/html-vite": "9.0.0-alpha.4",
|
|
11601
|
+
"@storybook/html-webpack5": "9.0.0-alpha.4",
|
|
11602
|
+
"@storybook/nextjs": "9.0.0-alpha.4",
|
|
11603
|
+
"@storybook/preact-vite": "9.0.0-alpha.4",
|
|
11604
|
+
"@storybook/preact-webpack5": "9.0.0-alpha.4",
|
|
11605
|
+
"@storybook/react-native-web-vite": "9.0.0-alpha.4",
|
|
11606
|
+
"@storybook/react-vite": "9.0.0-alpha.4",
|
|
11607
|
+
"@storybook/react-webpack5": "9.0.0-alpha.4",
|
|
11608
|
+
"@storybook/server-webpack5": "9.0.0-alpha.4",
|
|
11609
|
+
"@storybook/svelte-vite": "9.0.0-alpha.4",
|
|
11610
|
+
"@storybook/svelte-webpack5": "9.0.0-alpha.4",
|
|
11611
|
+
"@storybook/sveltekit": "9.0.0-alpha.4",
|
|
11612
|
+
"@storybook/vue3-vite": "9.0.0-alpha.4",
|
|
11613
|
+
"@storybook/vue3-webpack5": "9.0.0-alpha.4",
|
|
11614
|
+
"@storybook/web-components-vite": "9.0.0-alpha.4",
|
|
11615
|
+
"@storybook/web-components-webpack5": "9.0.0-alpha.4",
|
|
11616
|
+
"@storybook/blocks": "9.0.0-alpha.4",
|
|
11617
|
+
sb: "9.0.0-alpha.4",
|
|
11618
|
+
"@storybook/cli": "9.0.0-alpha.4",
|
|
11619
|
+
"@storybook/codemod": "9.0.0-alpha.4",
|
|
11620
|
+
"@storybook/core-webpack": "9.0.0-alpha.4",
|
|
11621
|
+
"create-storybook": "9.0.0-alpha.4",
|
|
11622
|
+
"@storybook/csf-plugin": "9.0.0-alpha.4",
|
|
11623
|
+
"@storybook/react-dom-shim": "9.0.0-alpha.4",
|
|
11624
|
+
"@storybook/source-loader": "9.0.0-alpha.4",
|
|
11625
|
+
"@storybook/preset-create-react-app": "9.0.0-alpha.4",
|
|
11626
|
+
"@storybook/preset-html-webpack": "9.0.0-alpha.4",
|
|
11627
|
+
"@storybook/preset-preact-webpack": "9.0.0-alpha.4",
|
|
11628
|
+
"@storybook/preset-react-webpack": "9.0.0-alpha.4",
|
|
11629
|
+
"@storybook/preset-server-webpack": "9.0.0-alpha.4",
|
|
11630
|
+
"@storybook/preset-svelte-webpack": "9.0.0-alpha.4",
|
|
11631
|
+
"@storybook/preset-vue3-webpack": "9.0.0-alpha.4",
|
|
11632
|
+
"@storybook/html": "9.0.0-alpha.4",
|
|
11633
|
+
"@storybook/preact": "9.0.0-alpha.4",
|
|
11634
|
+
"@storybook/react": "9.0.0-alpha.4",
|
|
11635
|
+
"@storybook/server": "9.0.0-alpha.4",
|
|
11636
|
+
"@storybook/svelte": "9.0.0-alpha.4",
|
|
11637
|
+
"@storybook/vue3": "9.0.0-alpha.4",
|
|
11638
|
+
"@storybook/web-components": "9.0.0-alpha.4"
|
|
11641
11639
|
};
|
|
11642
11640
|
|
|
11643
11641
|
// src/common/presets.ts
|
|
@@ -13548,7 +13546,7 @@ ict"), this.#Q && this.#h?.push([i, t, "evict"])), this.#b(e), A && (this.#C[e]
|
|
|
13548
13546
|
};
|
|
13549
13547
|
|
|
13550
13548
|
// ../node_modules/path-scurry/dist/esm/index.js
|
|
13551
|
-
var vt = require("node:path"), QI = require("node:url"),
|
|
13549
|
+
var vt = require("node:path"), QI = require("node:url"), Fe = require("fs"), Zl = J(require("node:fs"), 1), Ze = require("node:fs/promises");
|
|
13552
13550
|
|
|
13553
13551
|
// ../node_modules/minipass/dist/esm/index.js
|
|
13554
13552
|
var Ni = require("node:events"), Jg = J(require("node:stream"), 1), II = require("node:string_decoder");
|
|
@@ -13562,7 +13560,7 @@ typeof r.write == "function" && typeof r.end == "function", "isWritable"), Ye =
|
|
|
13562
13560
|
ttedEnd"), mi = Symbol("emittingEnd"), yr = Symbol("emittedError"), yi = Symbol("closed"), sI = Symbol("read"), Di = Symbol("flush"), nI = Symbol(
|
|
13563
13561
|
"flushChunk"), Ee = Symbol("encoding"), Gt = Symbol("decoder"), KA = Symbol("flowing"), Dr = Symbol("paused"), Jt = Symbol("resume"), FA = Symbol(
|
|
13564
13562
|
"buffer"), PA = Symbol("pipes"), NA = Symbol("bufferLength"), Rg = Symbol("bufferPush"), Si = Symbol("bufferShift"), YA = Symbol("objectMode"),
|
|
13565
|
-
fA = Symbol("destroyed"), bg = Symbol("error"), Lg = Symbol("emitData"), CI = Symbol("emitEnd"), Yg = Symbol("emitEnd2"),
|
|
13563
|
+
fA = Symbol("destroyed"), bg = Symbol("error"), Lg = Symbol("emitData"), CI = Symbol("emitEnd"), Yg = Symbol("emitEnd2"), Se = Symbol("async"),
|
|
13566
13564
|
Ug = Symbol("abort"), Ki = Symbol("aborted"), Sr = Symbol("signal"), Bt = Symbol("dataListeners"), ZA = Symbol("discarded"), Kr = /* @__PURE__ */ g(
|
|
13567
13565
|
(r) => Promise.resolve().then(r), "defer"), jl = /* @__PURE__ */ g((r) => r(), "nodefer"), ql = /* @__PURE__ */ g((r) => r === "end" || r ===
|
|
13568
13566
|
"finish" || r === "prefinish", "isEndish"), zl = /* @__PURE__ */ g((r) => r instanceof ArrayBuffer || !!r && typeof r == "object" && r.constructor &&
|
|
@@ -13610,7 +13608,7 @@ isView(r), "isArrayBufferView"), Fi = class {
|
|
|
13610
13608
|
[FA] = [];
|
|
13611
13609
|
[YA];
|
|
13612
13610
|
[Ee];
|
|
13613
|
-
[
|
|
13611
|
+
[Se];
|
|
13614
13612
|
[Gt];
|
|
13615
13613
|
[Ye] = !1;
|
|
13616
13614
|
[Xe] = !1;
|
|
@@ -13641,7 +13639,7 @@ isView(r), "isArrayBufferView"), Fi = class {
|
|
|
13641
13639
|
let e = A[0] || {};
|
|
13642
13640
|
if (super(), e.objectMode && typeof e.encoding == "string")
|
|
13643
13641
|
throw new TypeError("Encoding and objectMode may not be used together");
|
|
13644
|
-
Xl(e) ? (this[YA] = !0, this[Ee] = null) : Vl(e) ? (this[Ee] = e.encoding, this[YA] = !1) : (this[YA] = !1, this[Ee] = null), this[
|
|
13642
|
+
Xl(e) ? (this[YA] = !0, this[Ee] = null) : Vl(e) ? (this[Ee] = e.encoding, this[YA] = !1) : (this[YA] = !1, this[Ee] = null), this[Se] =
|
|
13645
13643
|
!!e.async, this[Gt] = this[Ee] ? new II.StringDecoder(this[Ee]) : null, e && e.debugExposeBuffer === !0 && Object.defineProperty(this, "\
|
|
13646
13644
|
buffer", { get: /* @__PURE__ */ g(() => this[FA], "get") }), e && e.debugExposePipes === !0 && Object.defineProperty(this, "pipes", { get: /* @__PURE__ */ g(
|
|
13647
13645
|
() => this[PA], "get") });
|
|
@@ -13694,7 +13692,7 @@ buffer", { get: /* @__PURE__ */ g(() => this[FA], "get") }), e && e.debugExposeP
|
|
|
13694
13692
|
* true if this is an async stream
|
|
13695
13693
|
*/
|
|
13696
13694
|
get async() {
|
|
13697
|
-
return this[
|
|
13695
|
+
return this[Se];
|
|
13698
13696
|
}
|
|
13699
13697
|
/**
|
|
13700
13698
|
* Set to true to make this stream async.
|
|
@@ -13704,7 +13702,7 @@ buffer", { get: /* @__PURE__ */ g(() => this[FA], "get") }), e && e.debugExposeP
|
|
|
13704
13702
|
* cannot be safely made sync.
|
|
13705
13703
|
*/
|
|
13706
13704
|
set async(A) {
|
|
13707
|
-
this[
|
|
13705
|
+
this[Se] = this[Se] || !!A;
|
|
13708
13706
|
}
|
|
13709
13707
|
// drop everything and get out of the flow completely
|
|
13710
13708
|
[Ug]() {
|
|
@@ -13731,7 +13729,7 @@ buffer", { get: /* @__PURE__ */ g(() => this[FA], "get") }), e && e.debugExposeP
|
|
|
13731
13729
|
return this.emit("error", Object.assign(new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" })),
|
|
13732
13730
|
!0;
|
|
13733
13731
|
typeof e == "function" && (t = e, e = "utf8"), e || (e = "utf8");
|
|
13734
|
-
let i = this[
|
|
13732
|
+
let i = this[Se] ? Kr : jl;
|
|
13735
13733
|
if (!this[YA] && !Buffer.isBuffer(A)) {
|
|
13736
13734
|
if (Wl(A))
|
|
13737
13735
|
A = Buffer.from(A.buffer, A.byteOffset, A.byteLength);
|
|
@@ -13852,7 +13850,7 @@ buffer", { get: /* @__PURE__ */ g(() => this[FA], "get") }), e && e.debugExposeP
|
|
|
13852
13850
|
this[ZA] = !1;
|
|
13853
13851
|
let t = this[Xe];
|
|
13854
13852
|
return e = e || {}, A === gI.stdout || A === gI.stderr ? e.end = !1 : e.end = e.end !== !1, e.proxyErrors = !!e.proxyErrors, t ? e.end &&
|
|
13855
|
-
A.end() : (this[PA].push(e.proxyErrors ? new Gg(this, A, e) : new Fi(this, A, e)), this[
|
|
13853
|
+
A.end() : (this[PA].push(e.proxyErrors ? new Gg(this, A, e) : new Fi(this, A, e)), this[Se] ? Kr(() => this[Jt]()) : this[Jt]()), A;
|
|
13856
13854
|
}
|
|
13857
13855
|
/**
|
|
13858
13856
|
* Fully unhook a piped destination stream.
|
|
@@ -13900,7 +13898,7 @@ buffer", { get: /* @__PURE__ */ g(() => this[FA], "get") }), e && e.debugExposeP
|
|
|
13900
13898
|
super.emit(A), this.removeAllListeners(A);
|
|
13901
13899
|
else if (A === "error" && this[yr]) {
|
|
13902
13900
|
let i = e;
|
|
13903
|
-
this[
|
|
13901
|
+
this[Se] ? Kr(() => i.call(this, this[yr])) : i.call(this, this[yr]);
|
|
13904
13902
|
}
|
|
13905
13903
|
return t;
|
|
13906
13904
|
}
|
|
@@ -13973,7 +13971,7 @@ buffer", { get: /* @__PURE__ */ g(() => this[FA], "get") }), e && e.debugExposeP
|
|
|
13973
13971
|
if (A !== "error" && A !== "close" && A !== fA && this[fA])
|
|
13974
13972
|
return !1;
|
|
13975
13973
|
if (A === "data")
|
|
13976
|
-
return !this[YA] && !t ? !1 : this[
|
|
13974
|
+
return !this[YA] && !t ? !1 : this[Se] ? (Kr(() => this[Lg](t)), !0) : this[Lg](t);
|
|
13977
13975
|
if (A === "end")
|
|
13978
13976
|
return this[CI]();
|
|
13979
13977
|
if (A === "close") {
|
|
@@ -14002,7 +14000,7 @@ buffer", { get: /* @__PURE__ */ g(() => this[FA], "get") }), e && e.debugExposeP
|
|
|
14002
14000
|
return this[Ue](), e;
|
|
14003
14001
|
}
|
|
14004
14002
|
[CI]() {
|
|
14005
|
-
return this[Xe] ? !1 : (this[Xe] = !0, this.readable = !1, this[
|
|
14003
|
+
return this[Xe] ? !1 : (this[Xe] = !0, this.readable = !1, this[Se] ? (Kr(() => this[Yg]()), !0) : this[Yg]());
|
|
14006
14004
|
}
|
|
14007
14005
|
[Yg]() {
|
|
14008
14006
|
if (this[Gt]) {
|
|
@@ -14143,11 +14141,11 @@ buffer", { get: /* @__PURE__ */ g(() => this[FA], "get") }), e && e.debugExposeP
|
|
|
14143
14141
|
};
|
|
14144
14142
|
|
|
14145
14143
|
// ../node_modules/path-scurry/dist/esm/index.js
|
|
14146
|
-
var $l =
|
|
14147
|
-
lstatSync:
|
|
14148
|
-
readdir:
|
|
14149
|
-
readdirSync:
|
|
14150
|
-
readlinkSync:
|
|
14144
|
+
var $l = Fe.realpathSync.native, Nr = {
|
|
14145
|
+
lstatSync: Fe.lstatSync,
|
|
14146
|
+
readdir: Fe.readdir,
|
|
14147
|
+
readdirSync: Fe.readdirSync,
|
|
14148
|
+
readlinkSync: Fe.readlinkSync,
|
|
14151
14149
|
realpathSync: $l,
|
|
14152
14150
|
promises: {
|
|
14153
14151
|
lstat: Ze.lstat,
|
|
@@ -14163,8 +14161,8 @@ var $l = Ke.realpathSync.native, Nr = {
|
|
|
14163
14161
|
...r.promises || {}
|
|
14164
14162
|
}
|
|
14165
14163
|
}, "fsFromOption"), lI = /^\\\\\?\\([a-z]:)\\?$/i, Au = /* @__PURE__ */ g((r) => r.replace(/\//g, "\\").replace(lI, "$1\\"), "uncToDrive"), eu = /[\\\/]/,
|
|
14166
|
-
oe = 0, uI = 1, fI = 2,
|
|
14167
|
-
EI = kr | ce | Ri, tu = 1023, xg = /* @__PURE__ */ g((r) => r.isFile() ? dI : r.isDirectory() ?
|
|
14164
|
+
oe = 0, uI = 1, fI = 2, Ke = 4, wI = 6, dI = 8, Qt = 10, pI = 12, ie = 15, Fr = ~ie, vg = 16, aI = 32, kr = 64, ce = 128, ki = 256, Ri = 512,
|
|
14165
|
+
EI = kr | ce | Ri, tu = 1023, xg = /* @__PURE__ */ g((r) => r.isFile() ? dI : r.isDirectory() ? Ke : r.isSymbolicLink() ? Qt : r.isCharacterDevice() ?
|
|
14168
14166
|
fI : r.isBlockDevice() ? wI : r.isSocket() ? pI : r.isFIFO() ? uI : oe, "entToType"), cI = /* @__PURE__ */ new Map(), Mr = /* @__PURE__ */ g(
|
|
14169
14167
|
(r) => {
|
|
14170
14168
|
let A = cI.get(r);
|
|
@@ -14517,7 +14515,7 @@ fI : r.isBlockDevice() ? wI : r.isSocket() ? pI : r.isFIFO() ? uI : oe, "entToTy
|
|
|
14517
14515
|
* Is the Path a directory?
|
|
14518
14516
|
*/
|
|
14519
14517
|
isDirectory() {
|
|
14520
|
-
return (this.#i & ie) ===
|
|
14518
|
+
return (this.#i & ie) === Ke;
|
|
14521
14519
|
}
|
|
14522
14520
|
/**
|
|
14523
14521
|
* Is the path a character device?
|
|
@@ -14700,7 +14698,7 @@ fI : r.isBlockDevice() ? wI : r.isSocket() ? pI : r.isFIFO() ? uI : oe, "entToTy
|
|
|
14700
14698
|
if (this.#i & kr)
|
|
14701
14699
|
return;
|
|
14702
14700
|
let A = this.#i;
|
|
14703
|
-
(A & ie) ===
|
|
14701
|
+
(A & ie) === Ke && (A &= Fr), this.#i = A | kr, this.#K();
|
|
14704
14702
|
}
|
|
14705
14703
|
#G(A = "") {
|
|
14706
14704
|
A === "ENOTDIR" || A === "EPERM" ? this.#U() : A === "ENOENT" ? this.#Y() : this.children().provisional = 0;
|
|
@@ -14718,7 +14716,7 @@ fI : r.isBlockDevice() ? wI : r.isSocket() ? pI : r.isFIFO() ? uI : oe, "entToTy
|
|
|
14718
14716
|
}
|
|
14719
14717
|
#x(A, e) {
|
|
14720
14718
|
let t = xg(A), i = this.newChild(A.name, t, { parent: this }), o = i.#i & ie;
|
|
14721
|
-
return o !==
|
|
14719
|
+
return o !== Ke && o !== Qt && o !== oe && (i.#i |= kr), e.unshift(i), e.provisional++, i;
|
|
14722
14720
|
}
|
|
14723
14721
|
#M(A, e) {
|
|
14724
14722
|
for (let t = e.provisional; t < e.length; t++) {
|
|
@@ -14772,7 +14770,7 @@ fI : r.isBlockDevice() ? wI : r.isSocket() ? pI : r.isFIFO() ? uI : oe, "entToTy
|
|
|
14772
14770
|
this.#m = e, this.#l = t, this.#D = i, this.#c = o, this.#a = s, this.#o = I, this.#y = E, this.#B = B, this.#e = h, this.#E = u, this.#n =
|
|
14773
14771
|
f, this.#t = p, this.#h = m, this.#u = D, this.#r = U, this.#s = R, this.#C = T, this.#g = M;
|
|
14774
14772
|
let x = xg(A);
|
|
14775
|
-
this.#i = this.#i & Fr | x | aI, x !== oe && x !==
|
|
14773
|
+
this.#i = this.#i & Fr | x | aI, x !== oe && x !== Ke && x !== Qt && (this.#i |= kr);
|
|
14776
14774
|
}
|
|
14777
14775
|
#_ = [];
|
|
14778
14776
|
#T = !1;
|
|
@@ -14884,10 +14882,10 @@ fI : r.isBlockDevice() ? wI : r.isSocket() ? pI : r.isFIFO() ? uI : oe, "entToTy
|
|
|
14884
14882
|
if (this.#i & EI)
|
|
14885
14883
|
return !1;
|
|
14886
14884
|
let A = ie & this.#i;
|
|
14887
|
-
return A === oe || A ===
|
|
14885
|
+
return A === oe || A === Ke || A === Qt;
|
|
14888
14886
|
}
|
|
14889
14887
|
shouldWalk(A, e) {
|
|
14890
|
-
return (this.#i &
|
|
14888
|
+
return (this.#i & Ke) === Ke && !(this.#i & EI) && !A.has(this) && (!e || e(this));
|
|
14891
14889
|
}
|
|
14892
14890
|
/**
|
|
14893
14891
|
* Return the Path object corresponding to path as resolved
|
|
@@ -15428,7 +15426,7 @@ fI : r.isBlockDevice() ? wI : r.isSocket() ? pI : r.isFIFO() ? uI : oe, "entToTy
|
|
|
15428
15426
|
* @internal
|
|
15429
15427
|
*/
|
|
15430
15428
|
newRoot(A) {
|
|
15431
|
-
return new Li(this.rootPath,
|
|
15429
|
+
return new Li(this.rootPath, Ke, void 0, this.roots, this.nocase, this.childrenCache(), { fs: A });
|
|
15432
15430
|
}
|
|
15433
15431
|
/**
|
|
15434
15432
|
* Return true if the provided path string is an absolute path
|
|
@@ -15458,7 +15456,7 @@ fI : r.isBlockDevice() ? wI : r.isSocket() ? pI : r.isFIFO() ? uI : oe, "entToTy
|
|
|
15458
15456
|
* @internal
|
|
15459
15457
|
*/
|
|
15460
15458
|
newRoot(A) {
|
|
15461
|
-
return new Yi(this.rootPath,
|
|
15459
|
+
return new Yi(this.rootPath, Ke, void 0, this.roots, this.nocase, this.childrenCache(), { fs: A });
|
|
15462
15460
|
}
|
|
15463
15461
|
/**
|
|
15464
15462
|
* Return true if the provided path string is an absolute path
|
|
@@ -16908,7 +16906,7 @@ var Fu = Ti({
|
|
|
16908
16906
|
});
|
|
16909
16907
|
|
|
16910
16908
|
// src/common/utils/cli.ts
|
|
16911
|
-
var Vi = require("node:fs"),
|
|
16909
|
+
var Vi = require("node:fs"), Ne = require("node:fs/promises"), fa = J(require("node:os"), 1), Zi = require("node:path");
|
|
16912
16910
|
|
|
16913
16911
|
// ../node_modules/crypto-random-string/index.js
|
|
16914
16912
|
var Ia = require("util"), zi = J(require("crypto"), 1);
|
|
@@ -17076,7 +17074,7 @@ peerDependencies: e }, t) => [
|
|
|
17076
17074
|
}, "getStorybookInfo");
|
|
17077
17075
|
|
|
17078
17076
|
// src/common/utils/cli.ts
|
|
17079
|
-
var _u = /* @__PURE__ */ g(() => (0,
|
|
17077
|
+
var _u = /* @__PURE__ */ g(() => (0, Ne.realpath)(fa.default.tmpdir()), "tempDir"), wa = /* @__PURE__ */ g(async (r = "") => (0, Zi.join)(await _u(),
|
|
17080
17078
|
r + gs()), "getPath");
|
|
17081
17079
|
async function da({ prefix: r = "" } = {}) {
|
|
17082
17080
|
let A = await wa(r);
|
|
@@ -17102,7 +17100,7 @@ async function Hu(r) {
|
|
|
17102
17100
|
name: e,
|
|
17103
17101
|
version: await r.getPackageVersion(e)
|
|
17104
17102
|
}))
|
|
17105
|
-
)).filter(({ version: e }) => !!e)[0]?.version ||
|
|
17103
|
+
)).filter(({ version: e }) => !!e)[0]?.version || De.storybook;
|
|
17106
17104
|
}
|
|
17107
17105
|
g(Hu, "getCoercedStorybookVersion");
|
|
17108
17106
|
function ju(r, A) {
|
|
@@ -17116,12 +17114,12 @@ var he = /* @__PURE__ */ g(async (r = "storybook.log") => {
|
|
|
17116
17114
|
let A = (0, Zi.join)(process.cwd(), r), e = await pa({ name: r }), t = (0, Vi.createWriteStream)(e, { encoding: "utf8" });
|
|
17117
17115
|
return new Promise((i, o) => {
|
|
17118
17116
|
t.once("open", () => {
|
|
17119
|
-
i({ logStream: t, moveLogFile: /* @__PURE__ */ g(async () => (0,
|
|
17120
|
-
e, ""), "clearLogFile"), removeLogFile: /* @__PURE__ */ g(async () => (0,
|
|
17121
|
-
async () => (0,
|
|
17117
|
+
i({ logStream: t, moveLogFile: /* @__PURE__ */ g(async () => (0, Ne.rename)(e, A), "moveLogFile"), clearLogFile: /* @__PURE__ */ g(async () => (0, Ne.writeFile)(
|
|
17118
|
+
e, ""), "clearLogFile"), removeLogFile: /* @__PURE__ */ g(async () => (0, Ne.rm)(e, { recursive: !0, force: !0 }), "removeLogFile"), readLogFile: /* @__PURE__ */ g(
|
|
17119
|
+
async () => (0, Ne.readFile)(e, { encoding: "utf8" }), "readLogFile") });
|
|
17122
17120
|
}), t.once("error", o);
|
|
17123
17121
|
});
|
|
17124
|
-
}, "createLogStream"), Cs = /* @__PURE__ */ g((r) => Object.keys(
|
|
17122
|
+
}, "createLogStream"), Cs = /* @__PURE__ */ g((r) => Object.keys(De).includes(r), "isCorePackage");
|
|
17125
17123
|
|
|
17126
17124
|
// src/common/utils/check-addon-order.ts
|
|
17127
17125
|
var $i = require("storybook/internal/node-logger");
|
|
@@ -17229,10 +17227,10 @@ function Qf(r, A = {}) {
|
|
|
17229
17227
|
return E;
|
|
17230
17228
|
}
|
|
17231
17229
|
g(Qf, "findUpMultipleSync");
|
|
17232
|
-
async function
|
|
17230
|
+
async function ke(r, A = {}) {
|
|
17233
17231
|
return (await Bf(r, { ...A, limit: 1 }))[0];
|
|
17234
17232
|
}
|
|
17235
|
-
g(
|
|
17233
|
+
g(ke, "findUp");
|
|
17236
17234
|
function GA(r, A = {}) {
|
|
17237
17235
|
return Qf(r, { ...A, limit: 1 })[0];
|
|
17238
17236
|
}
|
|
@@ -17399,7 +17397,7 @@ g(Df, "extractProperRendererNameFromFramework");
|
|
|
17399
17397
|
var ws = require("node:fs/promises"), eo = require("node:path"), Ha = require("storybook/internal/node-logger");
|
|
17400
17398
|
var ja = J(Wg(), 1);
|
|
17401
17399
|
var qa = /* @__PURE__ */ g(async (r) => {
|
|
17402
|
-
let A = await
|
|
17400
|
+
let A = await ke("package.json", { cwd: r.configDir });
|
|
17403
17401
|
if (!A)
|
|
17404
17402
|
return {};
|
|
17405
17403
|
let e = (0, eo.dirname)(A), { dependencies: t = [], devDependencies: i = [] } = JSON.parse(await (0, ws.readFile)(A, { encoding: "utf8" })) ||
|
|
@@ -19036,7 +19034,6 @@ var ee = class {
|
|
|
19036
19034
|
* ```ts
|
|
19037
19035
|
* addDependencies(options, [
|
|
19038
19036
|
* `@storybook/react@${storybookVersion}`,
|
|
19039
|
-
* `@storybook/addon-actions@${actionsVersion}`,
|
|
19040
19037
|
* `@storybook/addon-links@${linksVersion}`,
|
|
19041
19038
|
* ]);
|
|
19042
19039
|
* ```
|
|
@@ -19075,7 +19072,7 @@ An error occurred while installing dependencies:`), Pe.log(i.message), new et(i)
|
|
|
19075
19072
|
* @example
|
|
19076
19073
|
*
|
|
19077
19074
|
* ```ts
|
|
19078
|
-
* removeDependencies(options, [`@storybook/react
|
|
19075
|
+
* removeDependencies(options, [`@storybook/react`]);
|
|
19079
19076
|
* ```
|
|
19080
19077
|
*
|
|
19081
19078
|
* @param {Object} options Contains `skipInstall`, `packageJson` and `installAsDevDependencies`
|
|
@@ -19110,7 +19107,10 @@ An error occurred while installing dependencies:`), Pe.log(i.message), new et(i)
|
|
|
19110
19107
|
getVersionedPackages(A) {
|
|
19111
19108
|
return Promise.all(
|
|
19112
19109
|
A.map(async (e) => {
|
|
19113
|
-
let [t, i] = fn(e)
|
|
19110
|
+
let [t, i] = fn(e);
|
|
19111
|
+
if (i && !(t in De))
|
|
19112
|
+
return e;
|
|
19113
|
+
let o = await this.latestVersion(t, i), I = De[t];
|
|
19114
19114
|
return I === o || !I ? `${t}@^${o}` : `${t}@${I}`;
|
|
19115
19115
|
})
|
|
19116
19116
|
);
|
|
@@ -19138,7 +19138,7 @@ An error occurred while installing dependencies:`), Pe.log(i.message), new et(i)
|
|
|
19138
19138
|
*/
|
|
19139
19139
|
async getVersion(A, e) {
|
|
19140
19140
|
let t;
|
|
19141
|
-
A in
|
|
19141
|
+
A in De && (t = De[A]);
|
|
19142
19142
|
let i;
|
|
19143
19143
|
try {
|
|
19144
19144
|
i = await this.latestVersion(A, e);
|
|
@@ -19298,7 +19298,7 @@ var Zd = /npm ERR! code (\w+)/, $d = {
|
|
|
19298
19298
|
return "bunx";
|
|
19299
19299
|
}
|
|
19300
19300
|
async getPackageJSON(e, t = this.cwd) {
|
|
19301
|
-
let i = await
|
|
19301
|
+
let i = await ke(
|
|
19302
19302
|
(s) => {
|
|
19303
19303
|
let I = (0, mB.join)(s, "node_modules", e, "package.json");
|
|
19304
19304
|
return (0, Ro.existsSync)(I) ? I : void 0;
|
|
@@ -19508,7 +19508,7 @@ var Ap = /npm (ERR!|error) (code|errno) (\w+)/i, ep = {
|
|
|
19508
19508
|
return "npx";
|
|
19509
19509
|
}
|
|
19510
19510
|
async getPackageJSON(e, t = this.cwd) {
|
|
19511
|
-
let i = await
|
|
19511
|
+
let i = await ke(
|
|
19512
19512
|
(s) => {
|
|
19513
19513
|
let I = (0, NB.join)(s, "node_modules", e, "package.json");
|
|
19514
19514
|
return (0, bo.existsSync)(I) ? I : void 0;
|
|
@@ -19892,7 +19892,7 @@ var rp = /^error\s(.*)$/gm, ti = class extends ee {
|
|
|
19892
19892
|
return this.executeCommand({ command: "yarn", args: [e, ...t], cwd: i });
|
|
19893
19893
|
}
|
|
19894
19894
|
async getPackageJSON(e, t = this.cwd) {
|
|
19895
|
-
let i = await
|
|
19895
|
+
let i = await ke(
|
|
19896
19896
|
(o) => {
|
|
19897
19897
|
let s = (0, UB.join)(o, "node_modules", e, "package.json");
|
|
19898
19898
|
return (0, Yo.existsSync)(s) ? s : void 0;
|
|
@@ -20126,7 +20126,7 @@ var GQ = {
|
|
|
20126
20126
|
} catch (I) {
|
|
20127
20127
|
return I.code !== "MODULE_NOT_FOUND" && console.error("Error while fetching package version in Yarn PnP mode:", I), null;
|
|
20128
20128
|
}
|
|
20129
|
-
let o = await
|
|
20129
|
+
let o = await ke(
|
|
20130
20130
|
(I) => {
|
|
20131
20131
|
let E = (0, CC.join)(I, "node_modules", e, "package.json");
|
|
20132
20132
|
return (0, ag.existsSync)(E) ? E : void 0;
|
|
@@ -20449,7 +20449,7 @@ async function qy(r, A) {
|
|
|
20449
20449
|
g(qy, "formatWithEditorConfig");
|
|
20450
20450
|
|
|
20451
20451
|
// src/common/utils/get-story-id.ts
|
|
20452
|
-
var VQ = require("node:path"), Qg = require("storybook/internal/common"), Er = require("storybook/internal/csf"), ZQ = require("storybook/
|
|
20452
|
+
var VQ = require("node:path"), Qg = require("storybook/internal/common"), Er = require("storybook/internal/csf"), ZQ = require("storybook/preview-api"),
|
|
20453
20453
|
$Q = J(HA(), 1);
|
|
20454
20454
|
|
|
20455
20455
|
// src/common/utils/posix.ts
|