storybook 9.0.0-alpha.2 → 9.0.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/bin/index.cjs +64 -65
- package/dist/bin/index.js +64 -65
- package/dist/channels/index.cjs +3 -5
- package/dist/channels/index.js +3 -5
- package/dist/cli/bin/index.cjs +12 -12
- package/dist/cli/bin/index.js +14 -14
- package/dist/cli/index.cjs +1 -1
- package/dist/cli/index.d.ts +2 -2
- package/dist/cli/index.js +1 -1
- package/dist/common/index.cjs +147 -145
- package/dist/common/index.d.ts +0 -1
- package/dist/common/index.js +170 -168
- package/dist/core-server/index.cjs +4 -6
- package/dist/core-server/index.d.ts +1 -1
- package/dist/core-server/index.js +4 -6
- package/dist/manager/globals-runtime.js +4 -6
- package/dist/manager-api/index.cjs +4 -6
- package/dist/manager-api/index.d.ts +1 -1
- package/dist/manager-api/index.js +4 -6
- package/dist/preview/runtime.js +4 -6
- package/dist/preview-api/index.cjs +3 -5
- package/dist/preview-api/index.d.ts +1 -1
- package/dist/preview-api/index.js +3 -5
- package/dist/preview-errors.cjs +1 -1
- package/dist/preview-errors.js +1 -1
- package/dist/test/index.cjs +34915 -0
- package/dist/test/index.d.ts +186 -0
- package/dist/test/index.js +32798 -0
- package/package.json +23 -2
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,76 @@ 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-actions": "9.0.0-alpha.
|
|
11578
|
-
"@storybook/addon-backgrounds": "9.0.0-alpha.
|
|
11579
|
-
"@storybook/addon-controls": "9.0.0-alpha.
|
|
11580
|
-
"@storybook/addon-docs": "9.0.0-alpha.
|
|
11581
|
-
"@storybook/addon-essentials": "9.0.0-alpha.
|
|
11582
|
-
"@storybook/addon-mdx-gfm": "9.0.0-alpha.
|
|
11583
|
-
"@storybook/addon-highlight": "9.0.0-alpha.
|
|
11584
|
-
"@storybook/addon-interactions": "9.0.0-alpha.
|
|
11585
|
-
"@storybook/addon-jest": "9.0.0-alpha.
|
|
11586
|
-
"@storybook/addon-links": "9.0.0-alpha.
|
|
11587
|
-
"@storybook/addon-measure": "9.0.0-alpha.
|
|
11588
|
-
"@storybook/addon-onboarding": "9.0.0-alpha.
|
|
11589
|
-
"@storybook/addon-outline": "9.0.0-alpha.
|
|
11590
|
-
"@storybook/addon-storysource": "9.0.0-alpha.
|
|
11591
|
-
"@storybook/addon-test": "9.0.0-alpha.
|
|
11592
|
-
"@storybook/addon-themes": "9.0.0-alpha.
|
|
11593
|
-
"@storybook/addon-toolbars": "9.0.0-alpha.
|
|
11594
|
-
"@storybook/addon-viewport": "9.0.0-alpha.
|
|
11595
|
-
"@storybook/builder-vite": "9.0.0-alpha.
|
|
11596
|
-
"@storybook/builder-webpack5": "9.0.0-alpha.
|
|
11597
|
-
storybook: "9.0.0-alpha.
|
|
11598
|
-
"@storybook/angular": "9.0.0-alpha.
|
|
11599
|
-
"@storybook/ember": "9.0.0-alpha.
|
|
11600
|
-
"@storybook/experimental-nextjs-vite": "9.0.0-alpha.
|
|
11601
|
-
"@storybook/html-vite": "9.0.0-alpha.
|
|
11602
|
-
"@storybook/html-webpack5": "9.0.0-alpha.
|
|
11603
|
-
"@storybook/nextjs": "9.0.0-alpha.
|
|
11604
|
-
"@storybook/preact-vite": "9.0.0-alpha.
|
|
11605
|
-
"@storybook/preact-webpack5": "9.0.0-alpha.
|
|
11606
|
-
"@storybook/react-native-web-vite": "9.0.0-alpha.
|
|
11607
|
-
"@storybook/react-vite": "9.0.0-alpha.
|
|
11608
|
-
"@storybook/react-webpack5": "9.0.0-alpha.
|
|
11609
|
-
"@storybook/server-webpack5": "9.0.0-alpha.
|
|
11610
|
-
"@storybook/svelte-vite": "9.0.0-alpha.
|
|
11611
|
-
"@storybook/svelte-webpack5": "9.0.0-alpha.
|
|
11612
|
-
"@storybook/sveltekit": "9.0.0-alpha.
|
|
11613
|
-
"@storybook/vue3-vite": "9.0.0-alpha.
|
|
11614
|
-
"@storybook/vue3-webpack5": "9.0.0-alpha.
|
|
11615
|
-
"@storybook/web-components-vite": "9.0.0-alpha.
|
|
11616
|
-
"@storybook/web-components-webpack5": "9.0.0-alpha.
|
|
11617
|
-
"@storybook/blocks": "9.0.0-alpha.
|
|
11618
|
-
sb: "9.0.0-alpha.
|
|
11619
|
-
"@storybook/cli": "9.0.0-alpha.
|
|
11620
|
-
"@storybook/codemod": "9.0.0-alpha.
|
|
11621
|
-
"@storybook/core-webpack": "9.0.0-alpha.
|
|
11622
|
-
"create-storybook": "9.0.0-alpha.
|
|
11623
|
-
"@storybook/csf-plugin": "9.0.0-alpha.
|
|
11624
|
-
"@storybook/react-dom-shim": "9.0.0-alpha.
|
|
11625
|
-
"@storybook/source-loader": "9.0.0-alpha.
|
|
11626
|
-
"@storybook/
|
|
11627
|
-
"@storybook/preset-
|
|
11628
|
-
"@storybook/preset-
|
|
11629
|
-
"@storybook/preset-
|
|
11630
|
-
"@storybook/preset-
|
|
11631
|
-
"@storybook/preset-
|
|
11632
|
-
"@storybook/preset-
|
|
11633
|
-
"@storybook/
|
|
11634
|
-
"@storybook/
|
|
11635
|
-
"@storybook/
|
|
11636
|
-
"@storybook/
|
|
11637
|
-
"@storybook/
|
|
11638
|
-
"@storybook/
|
|
11639
|
-
"@storybook/
|
|
11640
|
-
"@storybook/web-components": "9.0.0-alpha.2"
|
|
11575
|
+
var De = {
|
|
11576
|
+
"@storybook/addon-a11y": "9.0.0-alpha.3",
|
|
11577
|
+
"@storybook/addon-actions": "9.0.0-alpha.3",
|
|
11578
|
+
"@storybook/addon-backgrounds": "9.0.0-alpha.3",
|
|
11579
|
+
"@storybook/addon-controls": "9.0.0-alpha.3",
|
|
11580
|
+
"@storybook/addon-docs": "9.0.0-alpha.3",
|
|
11581
|
+
"@storybook/addon-essentials": "9.0.0-alpha.3",
|
|
11582
|
+
"@storybook/addon-mdx-gfm": "9.0.0-alpha.3",
|
|
11583
|
+
"@storybook/addon-highlight": "9.0.0-alpha.3",
|
|
11584
|
+
"@storybook/addon-interactions": "9.0.0-alpha.3",
|
|
11585
|
+
"@storybook/addon-jest": "9.0.0-alpha.3",
|
|
11586
|
+
"@storybook/addon-links": "9.0.0-alpha.3",
|
|
11587
|
+
"@storybook/addon-measure": "9.0.0-alpha.3",
|
|
11588
|
+
"@storybook/addon-onboarding": "9.0.0-alpha.3",
|
|
11589
|
+
"@storybook/addon-outline": "9.0.0-alpha.3",
|
|
11590
|
+
"@storybook/addon-storysource": "9.0.0-alpha.3",
|
|
11591
|
+
"@storybook/addon-test": "9.0.0-alpha.3",
|
|
11592
|
+
"@storybook/addon-themes": "9.0.0-alpha.3",
|
|
11593
|
+
"@storybook/addon-toolbars": "9.0.0-alpha.3",
|
|
11594
|
+
"@storybook/addon-viewport": "9.0.0-alpha.3",
|
|
11595
|
+
"@storybook/builder-vite": "9.0.0-alpha.3",
|
|
11596
|
+
"@storybook/builder-webpack5": "9.0.0-alpha.3",
|
|
11597
|
+
storybook: "9.0.0-alpha.3",
|
|
11598
|
+
"@storybook/angular": "9.0.0-alpha.3",
|
|
11599
|
+
"@storybook/ember": "9.0.0-alpha.3",
|
|
11600
|
+
"@storybook/experimental-nextjs-vite": "9.0.0-alpha.3",
|
|
11601
|
+
"@storybook/html-vite": "9.0.0-alpha.3",
|
|
11602
|
+
"@storybook/html-webpack5": "9.0.0-alpha.3",
|
|
11603
|
+
"@storybook/nextjs": "9.0.0-alpha.3",
|
|
11604
|
+
"@storybook/preact-vite": "9.0.0-alpha.3",
|
|
11605
|
+
"@storybook/preact-webpack5": "9.0.0-alpha.3",
|
|
11606
|
+
"@storybook/react-native-web-vite": "9.0.0-alpha.3",
|
|
11607
|
+
"@storybook/react-vite": "9.0.0-alpha.3",
|
|
11608
|
+
"@storybook/react-webpack5": "9.0.0-alpha.3",
|
|
11609
|
+
"@storybook/server-webpack5": "9.0.0-alpha.3",
|
|
11610
|
+
"@storybook/svelte-vite": "9.0.0-alpha.3",
|
|
11611
|
+
"@storybook/svelte-webpack5": "9.0.0-alpha.3",
|
|
11612
|
+
"@storybook/sveltekit": "9.0.0-alpha.3",
|
|
11613
|
+
"@storybook/vue3-vite": "9.0.0-alpha.3",
|
|
11614
|
+
"@storybook/vue3-webpack5": "9.0.0-alpha.3",
|
|
11615
|
+
"@storybook/web-components-vite": "9.0.0-alpha.3",
|
|
11616
|
+
"@storybook/web-components-webpack5": "9.0.0-alpha.3",
|
|
11617
|
+
"@storybook/blocks": "9.0.0-alpha.3",
|
|
11618
|
+
sb: "9.0.0-alpha.3",
|
|
11619
|
+
"@storybook/cli": "9.0.0-alpha.3",
|
|
11620
|
+
"@storybook/codemod": "9.0.0-alpha.3",
|
|
11621
|
+
"@storybook/core-webpack": "9.0.0-alpha.3",
|
|
11622
|
+
"create-storybook": "9.0.0-alpha.3",
|
|
11623
|
+
"@storybook/csf-plugin": "9.0.0-alpha.3",
|
|
11624
|
+
"@storybook/react-dom-shim": "9.0.0-alpha.3",
|
|
11625
|
+
"@storybook/source-loader": "9.0.0-alpha.3",
|
|
11626
|
+
"@storybook/preset-create-react-app": "9.0.0-alpha.3",
|
|
11627
|
+
"@storybook/preset-html-webpack": "9.0.0-alpha.3",
|
|
11628
|
+
"@storybook/preset-preact-webpack": "9.0.0-alpha.3",
|
|
11629
|
+
"@storybook/preset-react-webpack": "9.0.0-alpha.3",
|
|
11630
|
+
"@storybook/preset-server-webpack": "9.0.0-alpha.3",
|
|
11631
|
+
"@storybook/preset-svelte-webpack": "9.0.0-alpha.3",
|
|
11632
|
+
"@storybook/preset-vue3-webpack": "9.0.0-alpha.3",
|
|
11633
|
+
"@storybook/html": "9.0.0-alpha.3",
|
|
11634
|
+
"@storybook/preact": "9.0.0-alpha.3",
|
|
11635
|
+
"@storybook/react": "9.0.0-alpha.3",
|
|
11636
|
+
"@storybook/server": "9.0.0-alpha.3",
|
|
11637
|
+
"@storybook/svelte": "9.0.0-alpha.3",
|
|
11638
|
+
"@storybook/vue3": "9.0.0-alpha.3",
|
|
11639
|
+
"@storybook/web-components": "9.0.0-alpha.3"
|
|
11641
11640
|
};
|
|
11642
11641
|
|
|
11643
11642
|
// src/common/presets.ts
|
|
@@ -13548,7 +13547,7 @@ ict"), this.#Q && this.#h?.push([i, t, "evict"])), this.#b(e), A && (this.#C[e]
|
|
|
13548
13547
|
};
|
|
13549
13548
|
|
|
13550
13549
|
// ../node_modules/path-scurry/dist/esm/index.js
|
|
13551
|
-
var vt = require("node:path"), QI = require("node:url"),
|
|
13550
|
+
var vt = require("node:path"), QI = require("node:url"), Fe = require("fs"), Zl = J(require("node:fs"), 1), Ze = require("node:fs/promises");
|
|
13552
13551
|
|
|
13553
13552
|
// ../node_modules/minipass/dist/esm/index.js
|
|
13554
13553
|
var Ni = require("node:events"), Jg = J(require("node:stream"), 1), II = require("node:string_decoder");
|
|
@@ -13562,7 +13561,7 @@ typeof r.write == "function" && typeof r.end == "function", "isWritable"), Ye =
|
|
|
13562
13561
|
ttedEnd"), mi = Symbol("emittingEnd"), yr = Symbol("emittedError"), yi = Symbol("closed"), sI = Symbol("read"), Di = Symbol("flush"), nI = Symbol(
|
|
13563
13562
|
"flushChunk"), Ee = Symbol("encoding"), Gt = Symbol("decoder"), KA = Symbol("flowing"), Dr = Symbol("paused"), Jt = Symbol("resume"), FA = Symbol(
|
|
13564
13563
|
"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"),
|
|
13564
|
+
fA = Symbol("destroyed"), bg = Symbol("error"), Lg = Symbol("emitData"), CI = Symbol("emitEnd"), Yg = Symbol("emitEnd2"), Se = Symbol("async"),
|
|
13566
13565
|
Ug = Symbol("abort"), Ki = Symbol("aborted"), Sr = Symbol("signal"), Bt = Symbol("dataListeners"), ZA = Symbol("discarded"), Kr = /* @__PURE__ */ g(
|
|
13567
13566
|
(r) => Promise.resolve().then(r), "defer"), jl = /* @__PURE__ */ g((r) => r(), "nodefer"), ql = /* @__PURE__ */ g((r) => r === "end" || r ===
|
|
13568
13567
|
"finish" || r === "prefinish", "isEndish"), zl = /* @__PURE__ */ g((r) => r instanceof ArrayBuffer || !!r && typeof r == "object" && r.constructor &&
|
|
@@ -13610,7 +13609,7 @@ isView(r), "isArrayBufferView"), Fi = class {
|
|
|
13610
13609
|
[FA] = [];
|
|
13611
13610
|
[YA];
|
|
13612
13611
|
[Ee];
|
|
13613
|
-
[
|
|
13612
|
+
[Se];
|
|
13614
13613
|
[Gt];
|
|
13615
13614
|
[Ye] = !1;
|
|
13616
13615
|
[Xe] = !1;
|
|
@@ -13641,7 +13640,7 @@ isView(r), "isArrayBufferView"), Fi = class {
|
|
|
13641
13640
|
let e = A[0] || {};
|
|
13642
13641
|
if (super(), e.objectMode && typeof e.encoding == "string")
|
|
13643
13642
|
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[
|
|
13643
|
+
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
13644
|
!!e.async, this[Gt] = this[Ee] ? new II.StringDecoder(this[Ee]) : null, e && e.debugExposeBuffer === !0 && Object.defineProperty(this, "\
|
|
13646
13645
|
buffer", { get: /* @__PURE__ */ g(() => this[FA], "get") }), e && e.debugExposePipes === !0 && Object.defineProperty(this, "pipes", { get: /* @__PURE__ */ g(
|
|
13647
13646
|
() => this[PA], "get") });
|
|
@@ -13694,7 +13693,7 @@ buffer", { get: /* @__PURE__ */ g(() => this[FA], "get") }), e && e.debugExposeP
|
|
|
13694
13693
|
* true if this is an async stream
|
|
13695
13694
|
*/
|
|
13696
13695
|
get async() {
|
|
13697
|
-
return this[
|
|
13696
|
+
return this[Se];
|
|
13698
13697
|
}
|
|
13699
13698
|
/**
|
|
13700
13699
|
* Set to true to make this stream async.
|
|
@@ -13704,7 +13703,7 @@ buffer", { get: /* @__PURE__ */ g(() => this[FA], "get") }), e && e.debugExposeP
|
|
|
13704
13703
|
* cannot be safely made sync.
|
|
13705
13704
|
*/
|
|
13706
13705
|
set async(A) {
|
|
13707
|
-
this[
|
|
13706
|
+
this[Se] = this[Se] || !!A;
|
|
13708
13707
|
}
|
|
13709
13708
|
// drop everything and get out of the flow completely
|
|
13710
13709
|
[Ug]() {
|
|
@@ -13731,7 +13730,7 @@ buffer", { get: /* @__PURE__ */ g(() => this[FA], "get") }), e && e.debugExposeP
|
|
|
13731
13730
|
return this.emit("error", Object.assign(new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" })),
|
|
13732
13731
|
!0;
|
|
13733
13732
|
typeof e == "function" && (t = e, e = "utf8"), e || (e = "utf8");
|
|
13734
|
-
let i = this[
|
|
13733
|
+
let i = this[Se] ? Kr : jl;
|
|
13735
13734
|
if (!this[YA] && !Buffer.isBuffer(A)) {
|
|
13736
13735
|
if (Wl(A))
|
|
13737
13736
|
A = Buffer.from(A.buffer, A.byteOffset, A.byteLength);
|
|
@@ -13852,7 +13851,7 @@ buffer", { get: /* @__PURE__ */ g(() => this[FA], "get") }), e && e.debugExposeP
|
|
|
13852
13851
|
this[ZA] = !1;
|
|
13853
13852
|
let t = this[Xe];
|
|
13854
13853
|
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[
|
|
13854
|
+
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
13855
|
}
|
|
13857
13856
|
/**
|
|
13858
13857
|
* Fully unhook a piped destination stream.
|
|
@@ -13900,7 +13899,7 @@ buffer", { get: /* @__PURE__ */ g(() => this[FA], "get") }), e && e.debugExposeP
|
|
|
13900
13899
|
super.emit(A), this.removeAllListeners(A);
|
|
13901
13900
|
else if (A === "error" && this[yr]) {
|
|
13902
13901
|
let i = e;
|
|
13903
|
-
this[
|
|
13902
|
+
this[Se] ? Kr(() => i.call(this, this[yr])) : i.call(this, this[yr]);
|
|
13904
13903
|
}
|
|
13905
13904
|
return t;
|
|
13906
13905
|
}
|
|
@@ -13973,7 +13972,7 @@ buffer", { get: /* @__PURE__ */ g(() => this[FA], "get") }), e && e.debugExposeP
|
|
|
13973
13972
|
if (A !== "error" && A !== "close" && A !== fA && this[fA])
|
|
13974
13973
|
return !1;
|
|
13975
13974
|
if (A === "data")
|
|
13976
|
-
return !this[YA] && !t ? !1 : this[
|
|
13975
|
+
return !this[YA] && !t ? !1 : this[Se] ? (Kr(() => this[Lg](t)), !0) : this[Lg](t);
|
|
13977
13976
|
if (A === "end")
|
|
13978
13977
|
return this[CI]();
|
|
13979
13978
|
if (A === "close") {
|
|
@@ -14002,7 +14001,7 @@ buffer", { get: /* @__PURE__ */ g(() => this[FA], "get") }), e && e.debugExposeP
|
|
|
14002
14001
|
return this[Ue](), e;
|
|
14003
14002
|
}
|
|
14004
14003
|
[CI]() {
|
|
14005
|
-
return this[Xe] ? !1 : (this[Xe] = !0, this.readable = !1, this[
|
|
14004
|
+
return this[Xe] ? !1 : (this[Xe] = !0, this.readable = !1, this[Se] ? (Kr(() => this[Yg]()), !0) : this[Yg]());
|
|
14006
14005
|
}
|
|
14007
14006
|
[Yg]() {
|
|
14008
14007
|
if (this[Gt]) {
|
|
@@ -14143,11 +14142,11 @@ buffer", { get: /* @__PURE__ */ g(() => this[FA], "get") }), e && e.debugExposeP
|
|
|
14143
14142
|
};
|
|
14144
14143
|
|
|
14145
14144
|
// ../node_modules/path-scurry/dist/esm/index.js
|
|
14146
|
-
var $l =
|
|
14147
|
-
lstatSync:
|
|
14148
|
-
readdir:
|
|
14149
|
-
readdirSync:
|
|
14150
|
-
readlinkSync:
|
|
14145
|
+
var $l = Fe.realpathSync.native, Nr = {
|
|
14146
|
+
lstatSync: Fe.lstatSync,
|
|
14147
|
+
readdir: Fe.readdir,
|
|
14148
|
+
readdirSync: Fe.readdirSync,
|
|
14149
|
+
readlinkSync: Fe.readlinkSync,
|
|
14151
14150
|
realpathSync: $l,
|
|
14152
14151
|
promises: {
|
|
14153
14152
|
lstat: Ze.lstat,
|
|
@@ -14163,8 +14162,8 @@ var $l = Ke.realpathSync.native, Nr = {
|
|
|
14163
14162
|
...r.promises || {}
|
|
14164
14163
|
}
|
|
14165
14164
|
}, "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() ?
|
|
14165
|
+
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,
|
|
14166
|
+
EI = kr | ce | Ri, tu = 1023, xg = /* @__PURE__ */ g((r) => r.isFile() ? dI : r.isDirectory() ? Ke : r.isSymbolicLink() ? Qt : r.isCharacterDevice() ?
|
|
14168
14167
|
fI : r.isBlockDevice() ? wI : r.isSocket() ? pI : r.isFIFO() ? uI : oe, "entToType"), cI = /* @__PURE__ */ new Map(), Mr = /* @__PURE__ */ g(
|
|
14169
14168
|
(r) => {
|
|
14170
14169
|
let A = cI.get(r);
|
|
@@ -14517,7 +14516,7 @@ fI : r.isBlockDevice() ? wI : r.isSocket() ? pI : r.isFIFO() ? uI : oe, "entToTy
|
|
|
14517
14516
|
* Is the Path a directory?
|
|
14518
14517
|
*/
|
|
14519
14518
|
isDirectory() {
|
|
14520
|
-
return (this.#i & ie) ===
|
|
14519
|
+
return (this.#i & ie) === Ke;
|
|
14521
14520
|
}
|
|
14522
14521
|
/**
|
|
14523
14522
|
* Is the path a character device?
|
|
@@ -14700,7 +14699,7 @@ fI : r.isBlockDevice() ? wI : r.isSocket() ? pI : r.isFIFO() ? uI : oe, "entToTy
|
|
|
14700
14699
|
if (this.#i & kr)
|
|
14701
14700
|
return;
|
|
14702
14701
|
let A = this.#i;
|
|
14703
|
-
(A & ie) ===
|
|
14702
|
+
(A & ie) === Ke && (A &= Fr), this.#i = A | kr, this.#K();
|
|
14704
14703
|
}
|
|
14705
14704
|
#G(A = "") {
|
|
14706
14705
|
A === "ENOTDIR" || A === "EPERM" ? this.#U() : A === "ENOENT" ? this.#Y() : this.children().provisional = 0;
|
|
@@ -14718,7 +14717,7 @@ fI : r.isBlockDevice() ? wI : r.isSocket() ? pI : r.isFIFO() ? uI : oe, "entToTy
|
|
|
14718
14717
|
}
|
|
14719
14718
|
#x(A, e) {
|
|
14720
14719
|
let t = xg(A), i = this.newChild(A.name, t, { parent: this }), o = i.#i & ie;
|
|
14721
|
-
return o !==
|
|
14720
|
+
return o !== Ke && o !== Qt && o !== oe && (i.#i |= kr), e.unshift(i), e.provisional++, i;
|
|
14722
14721
|
}
|
|
14723
14722
|
#M(A, e) {
|
|
14724
14723
|
for (let t = e.provisional; t < e.length; t++) {
|
|
@@ -14772,7 +14771,7 @@ fI : r.isBlockDevice() ? wI : r.isSocket() ? pI : r.isFIFO() ? uI : oe, "entToTy
|
|
|
14772
14771
|
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
14772
|
f, this.#t = p, this.#h = m, this.#u = D, this.#r = U, this.#s = R, this.#C = T, this.#g = M;
|
|
14774
14773
|
let x = xg(A);
|
|
14775
|
-
this.#i = this.#i & Fr | x | aI, x !== oe && x !==
|
|
14774
|
+
this.#i = this.#i & Fr | x | aI, x !== oe && x !== Ke && x !== Qt && (this.#i |= kr);
|
|
14776
14775
|
}
|
|
14777
14776
|
#_ = [];
|
|
14778
14777
|
#T = !1;
|
|
@@ -14884,10 +14883,10 @@ fI : r.isBlockDevice() ? wI : r.isSocket() ? pI : r.isFIFO() ? uI : oe, "entToTy
|
|
|
14884
14883
|
if (this.#i & EI)
|
|
14885
14884
|
return !1;
|
|
14886
14885
|
let A = ie & this.#i;
|
|
14887
|
-
return A === oe || A ===
|
|
14886
|
+
return A === oe || A === Ke || A === Qt;
|
|
14888
14887
|
}
|
|
14889
14888
|
shouldWalk(A, e) {
|
|
14890
|
-
return (this.#i &
|
|
14889
|
+
return (this.#i & Ke) === Ke && !(this.#i & EI) && !A.has(this) && (!e || e(this));
|
|
14891
14890
|
}
|
|
14892
14891
|
/**
|
|
14893
14892
|
* Return the Path object corresponding to path as resolved
|
|
@@ -15428,7 +15427,7 @@ fI : r.isBlockDevice() ? wI : r.isSocket() ? pI : r.isFIFO() ? uI : oe, "entToTy
|
|
|
15428
15427
|
* @internal
|
|
15429
15428
|
*/
|
|
15430
15429
|
newRoot(A) {
|
|
15431
|
-
return new Li(this.rootPath,
|
|
15430
|
+
return new Li(this.rootPath, Ke, void 0, this.roots, this.nocase, this.childrenCache(), { fs: A });
|
|
15432
15431
|
}
|
|
15433
15432
|
/**
|
|
15434
15433
|
* Return true if the provided path string is an absolute path
|
|
@@ -15458,7 +15457,7 @@ fI : r.isBlockDevice() ? wI : r.isSocket() ? pI : r.isFIFO() ? uI : oe, "entToTy
|
|
|
15458
15457
|
* @internal
|
|
15459
15458
|
*/
|
|
15460
15459
|
newRoot(A) {
|
|
15461
|
-
return new Yi(this.rootPath,
|
|
15460
|
+
return new Yi(this.rootPath, Ke, void 0, this.roots, this.nocase, this.childrenCache(), { fs: A });
|
|
15462
15461
|
}
|
|
15463
15462
|
/**
|
|
15464
15463
|
* Return true if the provided path string is an absolute path
|
|
@@ -16908,7 +16907,7 @@ var Fu = Ti({
|
|
|
16908
16907
|
});
|
|
16909
16908
|
|
|
16910
16909
|
// src/common/utils/cli.ts
|
|
16911
|
-
var Vi = require("node:fs"),
|
|
16910
|
+
var Vi = require("node:fs"), Ne = require("node:fs/promises"), fa = J(require("node:os"), 1), Zi = require("node:path");
|
|
16912
16911
|
|
|
16913
16912
|
// ../node_modules/crypto-random-string/index.js
|
|
16914
16913
|
var Ia = require("util"), zi = J(require("crypto"), 1);
|
|
@@ -17076,7 +17075,7 @@ peerDependencies: e }, t) => [
|
|
|
17076
17075
|
}, "getStorybookInfo");
|
|
17077
17076
|
|
|
17078
17077
|
// src/common/utils/cli.ts
|
|
17079
|
-
var _u = /* @__PURE__ */ g(() => (0,
|
|
17078
|
+
var _u = /* @__PURE__ */ g(() => (0, Ne.realpath)(fa.default.tmpdir()), "tempDir"), wa = /* @__PURE__ */ g(async (r = "") => (0, Zi.join)(await _u(),
|
|
17080
17079
|
r + gs()), "getPath");
|
|
17081
17080
|
async function da({ prefix: r = "" } = {}) {
|
|
17082
17081
|
let A = await wa(r);
|
|
@@ -17102,7 +17101,7 @@ async function Hu(r) {
|
|
|
17102
17101
|
name: e,
|
|
17103
17102
|
version: await r.getPackageVersion(e)
|
|
17104
17103
|
}))
|
|
17105
|
-
)).filter(({ version: e }) => !!e)[0]?.version ||
|
|
17104
|
+
)).filter(({ version: e }) => !!e)[0]?.version || De.storybook;
|
|
17106
17105
|
}
|
|
17107
17106
|
g(Hu, "getCoercedStorybookVersion");
|
|
17108
17107
|
function ju(r, A) {
|
|
@@ -17116,12 +17115,12 @@ var he = /* @__PURE__ */ g(async (r = "storybook.log") => {
|
|
|
17116
17115
|
let A = (0, Zi.join)(process.cwd(), r), e = await pa({ name: r }), t = (0, Vi.createWriteStream)(e, { encoding: "utf8" });
|
|
17117
17116
|
return new Promise((i, o) => {
|
|
17118
17117
|
t.once("open", () => {
|
|
17119
|
-
i({ logStream: t, moveLogFile: /* @__PURE__ */ g(async () => (0,
|
|
17120
|
-
e, ""), "clearLogFile"), removeLogFile: /* @__PURE__ */ g(async () => (0,
|
|
17121
|
-
async () => (0,
|
|
17118
|
+
i({ logStream: t, moveLogFile: /* @__PURE__ */ g(async () => (0, Ne.rename)(e, A), "moveLogFile"), clearLogFile: /* @__PURE__ */ g(async () => (0, Ne.writeFile)(
|
|
17119
|
+
e, ""), "clearLogFile"), removeLogFile: /* @__PURE__ */ g(async () => (0, Ne.rm)(e, { recursive: !0, force: !0 }), "removeLogFile"), readLogFile: /* @__PURE__ */ g(
|
|
17120
|
+
async () => (0, Ne.readFile)(e, { encoding: "utf8" }), "readLogFile") });
|
|
17122
17121
|
}), t.once("error", o);
|
|
17123
17122
|
});
|
|
17124
|
-
}, "createLogStream"), Cs = /* @__PURE__ */ g((r) => Object.keys(
|
|
17123
|
+
}, "createLogStream"), Cs = /* @__PURE__ */ g((r) => Object.keys(De).includes(r), "isCorePackage");
|
|
17125
17124
|
|
|
17126
17125
|
// src/common/utils/check-addon-order.ts
|
|
17127
17126
|
var $i = require("storybook/internal/node-logger");
|
|
@@ -17229,10 +17228,10 @@ function Qf(r, A = {}) {
|
|
|
17229
17228
|
return E;
|
|
17230
17229
|
}
|
|
17231
17230
|
g(Qf, "findUpMultipleSync");
|
|
17232
|
-
async function
|
|
17231
|
+
async function ke(r, A = {}) {
|
|
17233
17232
|
return (await Bf(r, { ...A, limit: 1 }))[0];
|
|
17234
17233
|
}
|
|
17235
|
-
g(
|
|
17234
|
+
g(ke, "findUp");
|
|
17236
17235
|
function GA(r, A = {}) {
|
|
17237
17236
|
return Qf(r, { ...A, limit: 1 })[0];
|
|
17238
17237
|
}
|
|
@@ -17399,7 +17398,7 @@ g(Df, "extractProperRendererNameFromFramework");
|
|
|
17399
17398
|
var ws = require("node:fs/promises"), eo = require("node:path"), Ha = require("storybook/internal/node-logger");
|
|
17400
17399
|
var ja = J(Wg(), 1);
|
|
17401
17400
|
var qa = /* @__PURE__ */ g(async (r) => {
|
|
17402
|
-
let A = await
|
|
17401
|
+
let A = await ke("package.json", { cwd: r.configDir });
|
|
17403
17402
|
if (!A)
|
|
17404
17403
|
return {};
|
|
17405
17404
|
let e = (0, eo.dirname)(A), { dependencies: t = [], devDependencies: i = [] } = JSON.parse(await (0, ws.readFile)(A, { encoding: "utf8" })) ||
|
|
@@ -19110,7 +19109,10 @@ An error occurred while installing dependencies:`), Pe.log(i.message), new et(i)
|
|
|
19110
19109
|
getVersionedPackages(A) {
|
|
19111
19110
|
return Promise.all(
|
|
19112
19111
|
A.map(async (e) => {
|
|
19113
|
-
let [t, i] = fn(e)
|
|
19112
|
+
let [t, i] = fn(e);
|
|
19113
|
+
if (i && !(t in De))
|
|
19114
|
+
return e;
|
|
19115
|
+
let o = await this.latestVersion(t, i), I = De[t];
|
|
19114
19116
|
return I === o || !I ? `${t}@^${o}` : `${t}@${I}`;
|
|
19115
19117
|
})
|
|
19116
19118
|
);
|
|
@@ -19138,7 +19140,7 @@ An error occurred while installing dependencies:`), Pe.log(i.message), new et(i)
|
|
|
19138
19140
|
*/
|
|
19139
19141
|
async getVersion(A, e) {
|
|
19140
19142
|
let t;
|
|
19141
|
-
A in
|
|
19143
|
+
A in De && (t = De[A]);
|
|
19142
19144
|
let i;
|
|
19143
19145
|
try {
|
|
19144
19146
|
i = await this.latestVersion(A, e);
|
|
@@ -19298,7 +19300,7 @@ var Zd = /npm ERR! code (\w+)/, $d = {
|
|
|
19298
19300
|
return "bunx";
|
|
19299
19301
|
}
|
|
19300
19302
|
async getPackageJSON(e, t = this.cwd) {
|
|
19301
|
-
let i = await
|
|
19303
|
+
let i = await ke(
|
|
19302
19304
|
(s) => {
|
|
19303
19305
|
let I = (0, mB.join)(s, "node_modules", e, "package.json");
|
|
19304
19306
|
return (0, Ro.existsSync)(I) ? I : void 0;
|
|
@@ -19508,7 +19510,7 @@ var Ap = /npm (ERR!|error) (code|errno) (\w+)/i, ep = {
|
|
|
19508
19510
|
return "npx";
|
|
19509
19511
|
}
|
|
19510
19512
|
async getPackageJSON(e, t = this.cwd) {
|
|
19511
|
-
let i = await
|
|
19513
|
+
let i = await ke(
|
|
19512
19514
|
(s) => {
|
|
19513
19515
|
let I = (0, NB.join)(s, "node_modules", e, "package.json");
|
|
19514
19516
|
return (0, bo.existsSync)(I) ? I : void 0;
|
|
@@ -19892,7 +19894,7 @@ var rp = /^error\s(.*)$/gm, ti = class extends ee {
|
|
|
19892
19894
|
return this.executeCommand({ command: "yarn", args: [e, ...t], cwd: i });
|
|
19893
19895
|
}
|
|
19894
19896
|
async getPackageJSON(e, t = this.cwd) {
|
|
19895
|
-
let i = await
|
|
19897
|
+
let i = await ke(
|
|
19896
19898
|
(o) => {
|
|
19897
19899
|
let s = (0, UB.join)(o, "node_modules", e, "package.json");
|
|
19898
19900
|
return (0, Yo.existsSync)(s) ? s : void 0;
|
|
@@ -20126,7 +20128,7 @@ var GQ = {
|
|
|
20126
20128
|
} catch (I) {
|
|
20127
20129
|
return I.code !== "MODULE_NOT_FOUND" && console.error("Error while fetching package version in Yarn PnP mode:", I), null;
|
|
20128
20130
|
}
|
|
20129
|
-
let o = await
|
|
20131
|
+
let o = await ke(
|
|
20130
20132
|
(I) => {
|
|
20131
20133
|
let E = (0, CC.join)(I, "node_modules", e, "package.json");
|
|
20132
20134
|
return (0, ag.existsSync)(E) ? E : void 0;
|