storybook 9.2.0-alpha.0 → 9.2.0-alpha.2
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 +43 -43
- package/dist/bin/index.js +43 -43
- package/dist/cli/bin/index.cjs +1068 -1142
- package/dist/cli/bin/index.js +1031 -1105
- package/dist/cli/index.cjs +13411 -13484
- package/dist/cli/index.js +13434 -13507
- package/dist/common/index.cjs +2927 -2911
- package/dist/common/index.d.ts +11 -3
- package/dist/common/index.js +3129 -3114
- package/dist/core-server/index.cjs +20539 -14418
- package/dist/core-server/index.js +20882 -14724
- package/dist/core-server/presets/common-preset.cjs +9137 -9141
- package/dist/core-server/presets/common-preset.js +8358 -8362
- package/dist/manager/globals-runtime.js +1 -1
- package/dist/manager-api/index.cjs +76 -76
- package/dist/manager-api/index.js +133 -133
- package/dist/node-logger/index.cjs +1218 -1212
- package/dist/node-logger/index.js +1235 -1228
- package/dist/server-errors.cjs +45 -60
- package/dist/server-errors.d.ts +1 -11
- package/dist/server-errors.js +27 -42
- package/dist/telemetry/index.cjs +1713 -1786
- package/dist/telemetry/index.js +1768 -1839
- package/package.json +1 -1
|
@@ -69014,7 +69014,7 @@ Ct();
|
|
|
69014
69014
|
var Ome = N(Wa(), 1), Nn = N(Pme(), 1);
|
|
69015
69015
|
|
|
69016
69016
|
// src/manager-api/version.ts
|
|
69017
|
-
var Tme = "9.2.0-alpha.
|
|
69017
|
+
var Tme = "9.2.0-alpha.2";
|
|
69018
69018
|
|
|
69019
69019
|
// src/manager-api/modules/versions.ts
|
|
69020
69020
|
var { VERSIONCHECK: bst } = Z, Ame = (0, Ome.default)(1)(() => {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var is = Object.create;
|
|
3
|
-
var
|
|
3
|
+
var Ne = Object.defineProperty;
|
|
4
4
|
var cs = Object.getOwnPropertyDescriptor;
|
|
5
5
|
var us = Object.getOwnPropertyNames;
|
|
6
6
|
var ls = Object.getPrototypeOf, ps = Object.prototype.hasOwnProperty;
|
|
7
|
-
var n = (e, t) =>
|
|
7
|
+
var n = (e, t) => Ne(e, "name", { value: t, configurable: !0 });
|
|
8
8
|
var fe = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), U = (e, t) => {
|
|
9
9
|
for (var r in t)
|
|
10
|
-
|
|
10
|
+
Ne(e, r, { get: t[r], enumerable: !0 });
|
|
11
11
|
}, Yr = (e, t, r, o) => {
|
|
12
12
|
if (t && typeof t == "object" || typeof t == "function")
|
|
13
13
|
for (let s of us(t))
|
|
14
|
-
!ps.call(e, s) && s !== r &&
|
|
14
|
+
!ps.call(e, s) && s !== r && Ne(e, s, { get: () => t[s], enumerable: !(o = cs(t, s)) || o.enumerable });
|
|
15
15
|
return e;
|
|
16
16
|
};
|
|
17
17
|
var L = (e, t, r) => (r = e != null ? is(ls(e)) : {}, Yr(
|
|
@@ -19,9 +19,9 @@ var L = (e, t, r) => (r = e != null ? is(ls(e)) : {}, Yr(
|
|
|
19
19
|
// file that has been converted to a CommonJS file using a Babel-
|
|
20
20
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
21
21
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
22
|
-
t || !e || !e.__esModule ?
|
|
22
|
+
t || !e || !e.__esModule ? Ne(r, "default", { value: e, enumerable: !0 }) : r,
|
|
23
23
|
e
|
|
24
|
-
)), ds = (e) => Yr(
|
|
24
|
+
)), ds = (e) => Yr(Ne({}, "__esModule", { value: !0 }), e);
|
|
25
25
|
|
|
26
26
|
// ../node_modules/ts-dedent/dist/index.js
|
|
27
27
|
var ie = fe((Fe) => {
|
|
@@ -411,7 +411,7 @@ var Un = fe((Pd, Mn) => {
|
|
|
411
411
|
for (let s of fn(t))
|
|
412
412
|
!aa.call(e, s) && s !== r && Ut(e, s, { get: /* @__PURE__ */ n(() => t[s], "get"), enumerable: !(o = na(t, s)) || o.enumerable });
|
|
413
413
|
return e;
|
|
414
|
-
}, "__copyProps"),
|
|
414
|
+
}, "__copyProps"), Cr = /* @__PURE__ */ n((e, t, r) => (r = e != null ? oa(sa(e)) : {}, yn(
|
|
415
415
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
416
416
|
// file that has been converted to a CommonJS file using a Babel-
|
|
417
417
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
@@ -719,7 +719,7 @@ t Symbol]")
|
|
|
719
719
|
return E('"use strict"; return (' + z + ").constructor;")();
|
|
720
720
|
} catch {
|
|
721
721
|
}
|
|
722
|
-
}, "getEvalledConstructor"), T = jr(),
|
|
722
|
+
}, "getEvalledConstructor"), T = jr(), C = va(), v = /* @__PURE__ */ n(function() {
|
|
723
723
|
throw new l();
|
|
724
724
|
}, "throwTypeError"), w = T ? function() {
|
|
725
725
|
try {
|
|
@@ -805,7 +805,7 @@ t Symbol]")
|
|
|
805
805
|
"%WeakSet%": typeof WeakSet > "u" ? r : WeakSet,
|
|
806
806
|
"%Function.prototype.call%": Re,
|
|
807
807
|
"%Function.prototype.apply%": Kr,
|
|
808
|
-
"%Object.defineProperty%":
|
|
808
|
+
"%Object.defineProperty%": C,
|
|
809
809
|
"%Object.getPrototypeOf%": Te,
|
|
810
810
|
"%Math.abs%": d,
|
|
811
811
|
"%Math.floor%": f,
|
|
@@ -823,21 +823,21 @@ t Symbol]")
|
|
|
823
823
|
zr = I(I(z)), ne["%Error.prototype%"] = zr;
|
|
824
824
|
}
|
|
825
825
|
var zr, Zn = /* @__PURE__ */ n(function z(x) {
|
|
826
|
-
var
|
|
826
|
+
var N;
|
|
827
827
|
if (x === "%AsyncFunction%")
|
|
828
|
-
|
|
828
|
+
N = A("async function () {}");
|
|
829
829
|
else if (x === "%GeneratorFunction%")
|
|
830
|
-
|
|
830
|
+
N = A("function* () {}");
|
|
831
831
|
else if (x === "%AsyncGeneratorFunction%")
|
|
832
|
-
|
|
832
|
+
N = A("async function* () {}");
|
|
833
833
|
else if (x === "%AsyncGenerator%") {
|
|
834
834
|
var R = z("%AsyncGeneratorFunction%");
|
|
835
|
-
R && (
|
|
835
|
+
R && (N = R.prototype);
|
|
836
836
|
} else if (x === "%AsyncIteratorPrototype%") {
|
|
837
837
|
var j = z("%AsyncGenerator%");
|
|
838
|
-
j && I && (
|
|
838
|
+
j && I && (N = I(j.prototype));
|
|
839
839
|
}
|
|
840
|
-
return ne[x] =
|
|
840
|
+
return ne[x] = N, N;
|
|
841
841
|
}, "doEval2"), Hr = {
|
|
842
842
|
__proto__: null,
|
|
843
843
|
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
@@ -894,20 +894,20 @@ t Symbol]")
|
|
|
894
894
|
}, we = Lt(), qe = Pn(), es = we.call(Re, Array.prototype.concat), ts = we.call(Kr, Array.prototype.splice), qr = we.call(Re, String.prototype.
|
|
895
895
|
replace), Ye = we.call(Re, String.prototype.slice), rs = we.call(Re, RegExp.prototype.exec), os = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,
|
|
896
896
|
ns = /\\(\\)?/g, ss = /* @__PURE__ */ n(function(x) {
|
|
897
|
-
var
|
|
898
|
-
if (
|
|
897
|
+
var N = Ye(x, 0, 1), R = Ye(x, -1);
|
|
898
|
+
if (N === "%" && R !== "%")
|
|
899
899
|
throw new u("invalid intrinsic syntax, expected closing `%`");
|
|
900
|
-
if (R === "%" &&
|
|
900
|
+
if (R === "%" && N !== "%")
|
|
901
901
|
throw new u("invalid intrinsic syntax, expected opening `%`");
|
|
902
902
|
var j = [];
|
|
903
903
|
return qr(x, os, function(H, de, M, Je) {
|
|
904
904
|
j[j.length] = M ? qr(Je, ns, "$1") : de || H;
|
|
905
905
|
}), j;
|
|
906
|
-
}, "stringToPath3"), as = /* @__PURE__ */ n(function(x,
|
|
906
|
+
}, "stringToPath3"), as = /* @__PURE__ */ n(function(x, N) {
|
|
907
907
|
var R = x, j;
|
|
908
908
|
if (qe(Hr, R) && (j = Hr[R], R = "%" + j[0] + "%"), qe(ne, R)) {
|
|
909
909
|
var H = ne[R];
|
|
910
|
-
if (H === pe && (H = Zn(R)), typeof H > "u" && !
|
|
910
|
+
if (H === pe && (H = Zn(R)), typeof H > "u" && !N)
|
|
911
911
|
throw new l("intrinsic " + x + " exists, but is not available. Please file an issue!");
|
|
912
912
|
return {
|
|
913
913
|
alias: j,
|
|
@@ -917,14 +917,14 @@ t Symbol]")
|
|
|
917
917
|
}
|
|
918
918
|
throw new u("intrinsic " + x + " does not exist!");
|
|
919
919
|
}, "getBaseIntrinsic2");
|
|
920
|
-
t.exports = /* @__PURE__ */ n(function(x,
|
|
920
|
+
t.exports = /* @__PURE__ */ n(function(x, N) {
|
|
921
921
|
if (typeof x != "string" || x.length === 0)
|
|
922
922
|
throw new l("intrinsic name must be a non-empty string");
|
|
923
|
-
if (arguments.length > 1 && typeof
|
|
923
|
+
if (arguments.length > 1 && typeof N != "boolean")
|
|
924
924
|
throw new l('"allowMissing" argument must be a boolean');
|
|
925
925
|
if (rs(/^%?[^%]*%?$/, x) === null)
|
|
926
926
|
throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
927
|
-
var R = ss(x), j = R.length > 0 ? R[0] : "", H = as("%" + j + "%",
|
|
927
|
+
var R = ss(x), j = R.length > 0 ? R[0] : "", H = as("%" + j + "%", N), de = H.name, M = H.value, Je = !1, Bt = H.alias;
|
|
928
928
|
Bt && (j = Bt[0], ts(R, es([0, 1], Bt)));
|
|
929
929
|
for (var Xe = 1, Oe = !0; Xe < R.length; Xe += 1) {
|
|
930
930
|
var J = R[Xe], Qe = Ye(J, 0, 1), Ze = Ye(J, -1);
|
|
@@ -934,7 +934,7 @@ t Symbol]")
|
|
|
934
934
|
M = ne[de];
|
|
935
935
|
else if (M != null) {
|
|
936
936
|
if (!(J in M)) {
|
|
937
|
-
if (!
|
|
937
|
+
if (!N)
|
|
938
938
|
throw new l("base intrinsic for " + x + " exists, but the property is not available.");
|
|
939
939
|
return;
|
|
940
940
|
}
|
|
@@ -964,7 +964,7 @@ t Symbol]")
|
|
|
964
964
|
) : u;
|
|
965
965
|
}, "callBoundIntrinsic");
|
|
966
966
|
}
|
|
967
|
-
}),
|
|
967
|
+
}), Na = b({
|
|
968
968
|
"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e, t) {
|
|
969
969
|
"use strict";
|
|
970
970
|
var r = hn();
|
|
@@ -975,7 +975,7 @@ t Symbol]")
|
|
|
975
975
|
}), An = b({
|
|
976
976
|
"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e, t) {
|
|
977
977
|
"use strict";
|
|
978
|
-
var r = Mr(), o =
|
|
978
|
+
var r = Mr(), o = Na()(), s = Pn(), a = jr(), i;
|
|
979
979
|
o ? (c = r("RegExp.prototype.exec"), u = {}, l = /* @__PURE__ */ n(function() {
|
|
980
980
|
throw u;
|
|
981
981
|
}, "throwRegexMarker"), p = {
|
|
@@ -1010,7 +1010,7 @@ t Symbol]")
|
|
|
1010
1010
|
var c, u, l, p, d, f;
|
|
1011
1011
|
t.exports = i;
|
|
1012
1012
|
}
|
|
1013
|
-
}),
|
|
1013
|
+
}), Ca = b({
|
|
1014
1014
|
"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(e, t) {
|
|
1015
1015
|
t.exports = o;
|
|
1016
1016
|
var r = Object.prototype.toString;
|
|
@@ -1058,14 +1058,14 @@ t Symbol]")
|
|
|
1058
1058
|
}
|
|
1059
1059
|
}), vn = {};
|
|
1060
1060
|
ia(vn, {
|
|
1061
|
-
isJSON: /* @__PURE__ */ n(() =>
|
|
1061
|
+
isJSON: /* @__PURE__ */ n(() => Nn, "isJSON"),
|
|
1062
1062
|
parse: /* @__PURE__ */ n(() => au, "parse"),
|
|
1063
1063
|
replacer: /* @__PURE__ */ n(() => kn, "replacer"),
|
|
1064
1064
|
reviver: /* @__PURE__ */ n(() => jn, "reviver"),
|
|
1065
1065
|
stringify: /* @__PURE__ */ n(() => nu, "stringify")
|
|
1066
1066
|
});
|
|
1067
1067
|
Mn.exports = ca(vn);
|
|
1068
|
-
var Da =
|
|
1068
|
+
var Da = Cr(An()), Ma = Cr(Ca()), Ua = Cr(ja());
|
|
1069
1069
|
function La(e) {
|
|
1070
1070
|
return e != null && typeof e == "object" && Array.isArray(e) === !1;
|
|
1071
1071
|
}
|
|
@@ -1137,8 +1137,8 @@ t Symbol]")
|
|
|
1137
1137
|
return t == di || t == fi || t == pi || t == yi;
|
|
1138
1138
|
}
|
|
1139
1139
|
n(mi, "isFunction");
|
|
1140
|
-
var hi = mi, gi = Ur["__core-js_shared__"],
|
|
1141
|
-
var e = /[^.]+$/.exec(
|
|
1140
|
+
var hi = mi, gi = Ur["__core-js_shared__"], Nr = gi, pn = function() {
|
|
1141
|
+
var e = /[^.]+$/.exec(Nr && Nr.keys && Nr.keys.IE_PROTO || "");
|
|
1142
1142
|
return e ? "Symbol(src)_1." + e : "";
|
|
1143
1143
|
}();
|
|
1144
1144
|
function Si(e) {
|
|
@@ -1164,14 +1164,14 @@ t Symbol]")
|
|
|
1164
1164
|
wi = Ti.hasOwnProperty, Oi = RegExp(
|
|
1165
1165
|
"^" + Ri.call(wi).replace(vi, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1166
1166
|
);
|
|
1167
|
-
function
|
|
1167
|
+
function Ni(e) {
|
|
1168
1168
|
if (!Rn(e) || bi(e))
|
|
1169
1169
|
return !1;
|
|
1170
1170
|
var t = hi(e) ? Oi : Ii;
|
|
1171
1171
|
return t.test(Ai(e));
|
|
1172
1172
|
}
|
|
1173
|
-
n(
|
|
1174
|
-
var
|
|
1173
|
+
n(Ni, "baseIsNative");
|
|
1174
|
+
var Ci = Ni;
|
|
1175
1175
|
function ki(e, t) {
|
|
1176
1176
|
return e?.[t];
|
|
1177
1177
|
}
|
|
@@ -1179,7 +1179,7 @@ t Symbol]")
|
|
|
1179
1179
|
var ji = ki;
|
|
1180
1180
|
function Di(e, t) {
|
|
1181
1181
|
var r = ji(e, t);
|
|
1182
|
-
return
|
|
1182
|
+
return Ci(r) ? r : void 0;
|
|
1183
1183
|
}
|
|
1184
1184
|
n(Di, "getNative");
|
|
1185
1185
|
var wn = Di;
|
|
@@ -1333,13 +1333,13 @@ t Symbol]")
|
|
|
1333
1333
|
return Wt(this, e).has(e);
|
|
1334
1334
|
}
|
|
1335
1335
|
n(Oc, "mapCacheHas");
|
|
1336
|
-
var
|
|
1337
|
-
function
|
|
1336
|
+
var Nc = Oc;
|
|
1337
|
+
function Cc(e, t) {
|
|
1338
1338
|
var r = Wt(this, e), o = r.size;
|
|
1339
1339
|
return r.set(e, t), this.size += r.size == o ? 0 : 1, this;
|
|
1340
1340
|
}
|
|
1341
|
-
n(
|
|
1342
|
-
var kc =
|
|
1341
|
+
n(Cc, "mapCacheSet");
|
|
1342
|
+
var kc = Cc;
|
|
1343
1343
|
function Ie(e) {
|
|
1344
1344
|
var t = -1, r = e == null ? 0 : e.length;
|
|
1345
1345
|
for (this.clear(); ++t < r; ) {
|
|
@@ -1351,7 +1351,7 @@ t Symbol]")
|
|
|
1351
1351
|
Ie.prototype.clear = Pc;
|
|
1352
1352
|
Ie.prototype.delete = Tc;
|
|
1353
1353
|
Ie.prototype.get = wc;
|
|
1354
|
-
Ie.prototype.has =
|
|
1354
|
+
Ie.prototype.has = Nc;
|
|
1355
1355
|
Ie.prototype.set = kc;
|
|
1356
1356
|
var On = Ie, jc = "Expected a function";
|
|
1357
1357
|
function Wr(e, t) {
|
|
@@ -1439,9 +1439,9 @@ t Symbol]")
|
|
|
1439
1439
|
return t;
|
|
1440
1440
|
}
|
|
1441
1441
|
n(ru, "extractEventHiddenProperties");
|
|
1442
|
-
var Gr = La, ou = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,
|
|
1442
|
+
var Gr = La, ou = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/, Nn = /* @__PURE__ */ n((e) => e.match(/^[\[\{\"\}].*[\]\}\"]$/), "is\
|
|
1443
1443
|
JSON");
|
|
1444
|
-
function
|
|
1444
|
+
function Cn(e) {
|
|
1445
1445
|
if (!Gr(e))
|
|
1446
1446
|
return e;
|
|
1447
1447
|
let t = e, r = !1;
|
|
@@ -1454,7 +1454,7 @@ JSON");
|
|
|
1454
1454
|
return o;
|
|
1455
1455
|
}, {}), r ? t : e;
|
|
1456
1456
|
}
|
|
1457
|
-
n(
|
|
1457
|
+
n(Cn, "convertUnconventionalData");
|
|
1458
1458
|
var kn = /* @__PURE__ */ n(function(t) {
|
|
1459
1459
|
let r, o, s, a;
|
|
1460
1460
|
return /* @__PURE__ */ n(function(c, u) {
|
|
@@ -1527,7 +1527,7 @@ JSON");
|
|
|
1527
1527
|
}
|
|
1528
1528
|
let p = r.get(u);
|
|
1529
1529
|
if (!p) {
|
|
1530
|
-
let d = Array.isArray(u) ? u :
|
|
1530
|
+
let d = Array.isArray(u) ? u : Cn(u);
|
|
1531
1531
|
return a.push(c), s.unshift(d), r.set(u, JSON.stringify(a)), u !== d && o.set(u, d), d;
|
|
1532
1532
|
}
|
|
1533
1533
|
return `_duplicate_${p}`;
|
|
@@ -1539,7 +1539,7 @@ JSON");
|
|
|
1539
1539
|
let r = [], o;
|
|
1540
1540
|
return /* @__PURE__ */ n(function(a, i) {
|
|
1541
1541
|
if (a === "" && (o = i, r.forEach(({ target: c, container: u, replacement: l }) => {
|
|
1542
|
-
let p =
|
|
1542
|
+
let p = Nn(l) ? JSON.parse(l) : l.split(".");
|
|
1543
1543
|
p.length === 0 ? u[c] = o : u[c] = Zc(o, p);
|
|
1544
1544
|
})), a === "_constructor-name_")
|
|
1545
1545
|
return i;
|
|
@@ -1568,7 +1568,7 @@ JSON");
|
|
|
1568
1568
|
allowSymbol: !0
|
|
1569
1569
|
}, nu = /* @__PURE__ */ n((e, t = {}) => {
|
|
1570
1570
|
let r = { ...Dn, ...t };
|
|
1571
|
-
return JSON.stringify(
|
|
1571
|
+
return JSON.stringify(Cn(e), kn(r), t.space);
|
|
1572
1572
|
}, "stringify"), su = /* @__PURE__ */ n(() => {
|
|
1573
1573
|
let e = /* @__PURE__ */ new Map();
|
|
1574
1574
|
return /* @__PURE__ */ n(function t(r) {
|
|
@@ -1676,10 +1676,10 @@ function Qr(e) {
|
|
|
1676
1676
|
n(Qr, "isTypedArray");
|
|
1677
1677
|
|
|
1678
1678
|
// ../node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
|
|
1679
|
-
function
|
|
1679
|
+
function Ce(e) {
|
|
1680
1680
|
return Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
|
|
1681
1681
|
}
|
|
1682
|
-
n(
|
|
1682
|
+
n(Ce, "getSymbols");
|
|
1683
1683
|
|
|
1684
1684
|
// ../node_modules/es-toolkit/dist/compat/_internal/getTag.mjs
|
|
1685
1685
|
function ke(e) {
|
|
@@ -1767,7 +1767,7 @@ function se(e, t, r, o = /* @__PURE__ */ new Map(), s = void 0) {
|
|
|
1767
1767
|
}
|
|
1768
1768
|
n(se, "cloneDeepWithImpl");
|
|
1769
1769
|
function De(e, t, r = e, o, s) {
|
|
1770
|
-
let a = [...Object.keys(t), ...
|
|
1770
|
+
let a = [...Object.keys(t), ...Ce(t)];
|
|
1771
1771
|
for (let i = 0; i < a.length; i++) {
|
|
1772
1772
|
let c = a[i], u = Object.getOwnPropertyDescriptor(e, c);
|
|
1773
1773
|
(u == null || u.writable) && (e[c] = se(t[c], c, r, o, s));
|
|
@@ -1989,7 +1989,7 @@ function Le(e, t, r, o) {
|
|
|
1989
1989
|
case ye: {
|
|
1990
1990
|
if (!(Le(e.constructor, t.constructor, r, o) || me(e) && me(t)))
|
|
1991
1991
|
return !1;
|
|
1992
|
-
let l = [...Object.keys(e), ...
|
|
1992
|
+
let l = [...Object.keys(e), ...Ce(e)], p = [...Object.keys(t), ...Ce(t)];
|
|
1993
1993
|
if (l.length !== p.length)
|
|
1994
1994
|
return !1;
|
|
1995
1995
|
for (let d = 0; d < l.length; d++) {
|
|
@@ -2275,11 +2275,11 @@ var ko = require("storybook/internal/client-logger");
|
|
|
2275
2275
|
// src/manager-api/modules/refs.ts
|
|
2276
2276
|
var ur = {};
|
|
2277
2277
|
U(ur, {
|
|
2278
|
-
defaultStoryMapper: () =>
|
|
2278
|
+
defaultStoryMapper: () => Co,
|
|
2279
2279
|
getSourceType: () => cr,
|
|
2280
2280
|
init: () => Rs
|
|
2281
2281
|
});
|
|
2282
|
-
var ir = require("@storybook/global"),
|
|
2282
|
+
var ir = require("@storybook/global"), No = L(ie(), 1);
|
|
2283
2283
|
|
|
2284
2284
|
// src/manager-api/lib/stories.ts
|
|
2285
2285
|
var Ao = require("storybook/internal/csf");
|
|
@@ -2381,7 +2381,7 @@ var _s = /\s*\/\s*/, vo = /* @__PURE__ */ n(({
|
|
|
2381
2381
|
}), { sidebar: c = {} } = t.getConfig(), { showRoots: u, collapsedRoots: l = [], renderLabel: p } = c, d = typeof u < "u", f = i.reduce((h, g) => {
|
|
2382
2382
|
if (r.docsMode && g.type !== "docs")
|
|
2383
2383
|
return h;
|
|
2384
|
-
let { title: S } = g, E = S.trim().split(_s), A = (!d || u) && E.length > 1 ? [E.shift()] : [], T = [...A, ...E],
|
|
2384
|
+
let { title: S } = g, E = S.trim().split(_s), A = (!d || u) && E.length > 1 ? [E.shift()] : [], T = [...A, ...E], C = T.reduce((v, w, k) => {
|
|
2385
2385
|
let I = k > 0 && v[k - 1], Te = (0, Ao.sanitize)(I ? `${I}-${w}` : w);
|
|
2386
2386
|
if (w.trim() === "")
|
|
2387
2387
|
throw new Error(or.dedent`Invalid title ${S} ending in slash.`);
|
|
@@ -2395,8 +2395,8 @@ var _s = /\s*\/\s*/, vo = /* @__PURE__ */ n(({
|
|
|
2395
2395
|
);
|
|
2396
2396
|
return v.push(Te), v;
|
|
2397
2397
|
}, []);
|
|
2398
|
-
return
|
|
2399
|
-
let k =
|
|
2398
|
+
return C.forEach((v, w) => {
|
|
2399
|
+
let k = C[w + 1] || g.id;
|
|
2400
2400
|
A.length && w === 0 ? h[v] = K(h[v] || {}, {
|
|
2401
2401
|
type: "root",
|
|
2402
2402
|
id: v,
|
|
@@ -2407,12 +2407,12 @@ var _s = /\s*\/\s*/, vo = /* @__PURE__ */ n(({
|
|
|
2407
2407
|
startCollapsed: l.includes(v),
|
|
2408
2408
|
// Note that this will later get appended to the previous list of children (see below)
|
|
2409
2409
|
children: [k]
|
|
2410
|
-
}) : (!h[v] || h[v].type === "component") && w ===
|
|
2410
|
+
}) : (!h[v] || h[v].type === "component") && w === C.length - 1 ? h[v] = K(h[v] || {}, {
|
|
2411
2411
|
type: "component",
|
|
2412
2412
|
id: v,
|
|
2413
2413
|
name: T[w],
|
|
2414
2414
|
tags: [],
|
|
2415
|
-
parent:
|
|
2415
|
+
parent: C[w - 1],
|
|
2416
2416
|
depth: w,
|
|
2417
2417
|
renderLabel: p,
|
|
2418
2418
|
...k && {
|
|
@@ -2423,7 +2423,7 @@ var _s = /\s*\/\s*/, vo = /* @__PURE__ */ n(({
|
|
|
2423
2423
|
id: v,
|
|
2424
2424
|
name: T[w],
|
|
2425
2425
|
tags: [],
|
|
2426
|
-
parent:
|
|
2426
|
+
parent: C[w - 1],
|
|
2427
2427
|
depth: w,
|
|
2428
2428
|
renderLabel: p,
|
|
2429
2429
|
...k && {
|
|
@@ -2434,8 +2434,8 @@ var _s = /\s*\/\s*/, vo = /* @__PURE__ */ n(({
|
|
|
2434
2434
|
type: "story",
|
|
2435
2435
|
tags: [],
|
|
2436
2436
|
...g,
|
|
2437
|
-
depth:
|
|
2438
|
-
parent:
|
|
2437
|
+
depth: C.length,
|
|
2438
|
+
parent: C[C.length - 1],
|
|
2439
2439
|
renderLabel: p,
|
|
2440
2440
|
prepared: !!g.parameters
|
|
2441
2441
|
}, h;
|
|
@@ -2465,7 +2465,7 @@ var { location: Is, fetch: Ro } = ir.global, cr = /* @__PURE__ */ n((e, t) => {
|
|
|
2465
2465
|
let { origin: r, pathname: o } = Is, { origin: s, pathname: a } = new URL(e), i = `${r + o}`.replace("/iframe.html", "").replace(/\/$/, ""),
|
|
2466
2466
|
c = `${s + a}`.replace("/iframe.html", "").replace(/\/$/, "");
|
|
2467
2467
|
return i === c ? ["local", c] : t || e ? ["external", c] : [null, null];
|
|
2468
|
-
}, "getSourceType"),
|
|
2468
|
+
}, "getSourceType"), Co = /* @__PURE__ */ n((e, t) => ({ ...t, kind: t.kind.replace("|", "/") }), "defaultStoryMapper"), wo = /* @__PURE__ */ n(
|
|
2469
2469
|
(e, t) => Object.entries(e).reduce((r, [o, s]) => ({ ...r, [o]: { ...s, refId: t.id } }), {}), "addRefIds");
|
|
2470
2470
|
async function Oo(e) {
|
|
2471
2471
|
if (!e)
|
|
@@ -2547,7 +2547,7 @@ clude", S = xs(p), E = {
|
|
|
2547
2547
|
...!v.indexError && v
|
|
2548
2548
|
});
|
|
2549
2549
|
} else y || (m.indexError = {
|
|
2550
|
-
message:
|
|
2550
|
+
message: No.dedent`
|
|
2551
2551
|
Error: Loading of ref failed
|
|
2552
2552
|
at fetch (lib/api/src/modules/refs.ts)
|
|
2553
2553
|
|
|
@@ -2559,12 +2559,12 @@ clude", S = xs(p), E = {
|
|
|
2559
2559
|
Please check your dev-tools network tab.
|
|
2560
2560
|
`
|
|
2561
2561
|
});
|
|
2562
|
-
let
|
|
2562
|
+
let C = u.versions && Object.keys(u.versions).length ? u.versions : m.versions;
|
|
2563
2563
|
await a.setRef(l, {
|
|
2564
2564
|
id: l,
|
|
2565
2565
|
url: S.url,
|
|
2566
2566
|
...m,
|
|
2567
|
-
...
|
|
2567
|
+
...C ? { versions: C } : {},
|
|
2568
2568
|
type: m.storyIndex ? "lazy" : "auto-inject"
|
|
2569
2569
|
});
|
|
2570
2570
|
}, "checkRef"),
|
|
@@ -2575,7 +2575,7 @@ clude", S = xs(p), E = {
|
|
|
2575
2575
|
setRef: /* @__PURE__ */ n(async (u, { storyIndex: l, setStoriesData: p, ...d }, f = !1) => {
|
|
2576
2576
|
if (r)
|
|
2577
2577
|
return;
|
|
2578
|
-
let y, m, h, { filters: g } = e.getState(), { storyMapper: S =
|
|
2578
|
+
let y, m, h, { filters: g } = e.getState(), { storyMapper: S = Co } = t.getConfig(), E = a.getRefs()[u];
|
|
2579
2579
|
(l || p) && (y = p ? Io(
|
|
2580
2580
|
Ts(p, E, { storyMapper: S })
|
|
2581
2581
|
) : l, h = ge(l, {
|
|
@@ -2701,7 +2701,7 @@ U(xt, {
|
|
|
2701
2701
|
ActiveTabs: () => Fo,
|
|
2702
2702
|
defaultLayoutState: () => W,
|
|
2703
2703
|
focusableUIElements: () => We,
|
|
2704
|
-
init: () =>
|
|
2704
|
+
init: () => Ns
|
|
2705
2705
|
});
|
|
2706
2706
|
var Mo = require("storybook/internal/core-events"), Uo = require("@storybook/global");
|
|
2707
2707
|
var Lo = require("storybook/theming/create");
|
|
@@ -2744,7 +2744,7 @@ var { document: Os } = Uo.global, jo = /* @__PURE__ */ n((e) => typeof e == "fun
|
|
|
2744
2744
|
navSize: e.navSize > 0 ? e.navSize : e.recentVisibleSizes.navSize,
|
|
2745
2745
|
bottomPanelHeight: e.bottomPanelHeight > 0 ? e.bottomPanelHeight : e.recentVisibleSizes.bottomPanelHeight,
|
|
2746
2746
|
rightPanelWidth: e.rightPanelWidth > 0 ? e.rightPanelWidth : e.recentVisibleSizes.rightPanelWidth
|
|
2747
|
-
}), "getRecentVisibleSizes"),
|
|
2747
|
+
}), "getRecentVisibleSizes"), Ns = /* @__PURE__ */ n(({ store: e, provider: t, singleStory: r }) => {
|
|
2748
2748
|
let o = {
|
|
2749
2749
|
toggleFullscreen(a) {
|
|
2750
2750
|
return e.setState(
|
|
@@ -2949,9 +2949,9 @@ var { document: Os } = Uo.global, jo = /* @__PURE__ */ n((e) => typeof e == "fun
|
|
|
2949
2949
|
// src/manager-api/modules/notifications.ts
|
|
2950
2950
|
var yr = {};
|
|
2951
2951
|
U(yr, {
|
|
2952
|
-
init: () =>
|
|
2952
|
+
init: () => Cs
|
|
2953
2953
|
});
|
|
2954
|
-
var
|
|
2954
|
+
var Cs = /* @__PURE__ */ n(({ store: e }) => ({ api: {
|
|
2955
2955
|
addNotification: /* @__PURE__ */ n((o) => {
|
|
2956
2956
|
e.setState(({ notifications: s }) => {
|
|
2957
2957
|
let [a, i] = tt(s, (c) => c.id === o.id);
|
|
@@ -3333,7 +3333,7 @@ var Ot = class extends te {
|
|
|
3333
3333
|
|
|
3334
3334
|
// src/preview-errors.ts
|
|
3335
3335
|
var $s = L(ie(), 1);
|
|
3336
|
-
var
|
|
3336
|
+
var Nt = class extends te {
|
|
3337
3337
|
constructor(r) {
|
|
3338
3338
|
super({
|
|
3339
3339
|
category: "PREVIEW_API",
|
|
@@ -3353,7 +3353,7 @@ var Ct = class extends te {
|
|
|
3353
3353
|
|
|
3354
3354
|
// src/server-errors.ts
|
|
3355
3355
|
var Bs = L(ie(), 1);
|
|
3356
|
-
var
|
|
3356
|
+
var Ct = class extends te {
|
|
3357
3357
|
constructor(r) {
|
|
3358
3358
|
super({
|
|
3359
3359
|
category: "CORE-SERVER",
|
|
@@ -3434,7 +3434,7 @@ function qo({
|
|
|
3434
3434
|
if (l.typeId !== a)
|
|
3435
3435
|
switch (r) {
|
|
3436
3436
|
case "server":
|
|
3437
|
-
throw new
|
|
3437
|
+
throw new Ct({
|
|
3438
3438
|
status: l,
|
|
3439
3439
|
typeId: a
|
|
3440
3440
|
});
|
|
@@ -3445,7 +3445,7 @@ function qo({
|
|
|
3445
3445
|
});
|
|
3446
3446
|
case "preview":
|
|
3447
3447
|
default:
|
|
3448
|
-
throw new
|
|
3448
|
+
throw new Nt({
|
|
3449
3449
|
status: l,
|
|
3450
3450
|
typeId: a
|
|
3451
3451
|
});
|
|
@@ -4009,7 +4009,7 @@ var Ys = /* @__PURE__ */ n(({
|
|
|
4009
4009
|
else {
|
|
4010
4010
|
let A = g[(0, re.sanitize)(l)];
|
|
4011
4011
|
if (A?.type === "component") {
|
|
4012
|
-
let T = A.children.find((
|
|
4012
|
+
let T = A.children.find((C) => g[C].name === p);
|
|
4013
4013
|
T && c.selectStory(T, void 0, d);
|
|
4014
4014
|
}
|
|
4015
4015
|
}
|
|
@@ -4403,7 +4403,7 @@ U(wr, {
|
|
|
4403
4403
|
var kt = require("@storybook/global"), on = L(rr(), 1), $ = L(require("semver"), 1);
|
|
4404
4404
|
|
|
4405
4405
|
// src/manager-api/version.ts
|
|
4406
|
-
var tn = "9.2.0-alpha.
|
|
4406
|
+
var tn = "9.2.0-alpha.2";
|
|
4407
4407
|
|
|
4408
4408
|
// src/manager-api/modules/versions.ts
|
|
4409
4409
|
var { VERSIONCHECK: Qs } = kt.global, rn = (0, on.default)(1)(() => {
|