storybook 9.0.0-alpha.15 → 9.0.0-alpha.17
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 +1 -1
- package/dist/cli/bin/index.js +1 -1
- package/dist/common/index.cjs +45 -45
- package/dist/common/index.d.ts +1 -1
- package/dist/common/index.js +45 -45
- package/dist/core-server/index.cjs +2 -2
- package/dist/core-server/index.js +2 -2
- package/dist/core-server/presets/common-manager.js +277 -271
- package/dist/core-server/presets/common-preset.cjs +930 -913
- package/dist/core-server/presets/common-preset.js +1026 -1009
- package/dist/csf-tools/index.cjs +412 -395
- package/dist/csf-tools/index.js +410 -393
- package/dist/instrumenter/index.cjs +532 -539
- package/dist/instrumenter/index.js +1153 -1152
- package/dist/manager/globals-runtime.js +49703 -58809
- package/dist/manager/runtime.js +102 -100
- package/dist/manager-api/index.cjs +1 -1
- package/dist/manager-api/index.js +1 -1
- package/dist/preview/runtime.js +38989 -42535
- package/dist/test/index.cjs +1 -1
- package/dist/test/index.js +1 -1
- package/package.json +1 -1
package/dist/manager/runtime.js
CHANGED
|
@@ -1054,11 +1054,11 @@ var Jl = we((pt) => {
|
|
|
1054
1054
|
return m;
|
|
1055
1055
|
let g = e.length, b = "", f = -1, y = -1, S = -1, E = m, h, v = "", I = "", w = !1, O = !1, _ = !1, k = !1, T = !1, C = !1, P = !1, D = 0,
|
|
1056
1056
|
M = -1, N = -1, Z = -1;
|
|
1057
|
-
for (let
|
|
1058
|
-
if (D =
|
|
1059
|
-
if (P = y > f, P || (y =
|
|
1057
|
+
for (let V = 0; V < g + 1; V++) {
|
|
1058
|
+
if (D = V !== g ? e.charCodeAt(V) : p, D === p) {
|
|
1059
|
+
if (P = y > f, P || (y = V), S !== y - 1 && (I = wr(e, S + 1, M > -1 ? M : y, _, w), v = i(I), h !== void 0 && (E = (0, Sr.getDeepObject)(
|
|
1060
1060
|
E, h, v, d && T, d && C))), P || v !== "") {
|
|
1061
|
-
P && (b = e.slice(y + 1,
|
|
1061
|
+
P && (b = e.slice(y + 1, V), k && (b = b.replace(Xl, " ")), O && (b = (0, Ql.default)(b) || b));
|
|
1062
1062
|
let Q = o(b, v);
|
|
1063
1063
|
if (l) {
|
|
1064
1064
|
let B = E[v];
|
|
@@ -1066,14 +1066,14 @@ var Jl = we((pt) => {
|
|
|
1066
1066
|
} else
|
|
1067
1067
|
E[v] = Q;
|
|
1068
1068
|
}
|
|
1069
|
-
b = "", f =
|
|
1070
|
-
} else D === 93 ? (l && n === "bracket" && Z === 91 && (M = N), r && (u === "index" || d) && y <= f && (S !== N && (I = wr(e, S + 1,
|
|
1071
|
-
_, w), v = i(I), h !== void 0 && (E = (0, Sr.getDeepObject)(E, h, v, void 0, d)), h = v, _ = !1, w = !1), S =
|
|
1072
|
-
46 ? r && (u === "dot" || d) && y <= f && (S !== N && (I = wr(e, S + 1,
|
|
1073
|
-
E, h, v, d)), h = v, _ = !1, w = !1), T = !0, C = !1, S =
|
|
1074
|
-
S + 1,
|
|
1075
|
-
D === 61 ? y <= f ? y =
|
|
1076
|
-
N =
|
|
1069
|
+
b = "", f = V, y = V, w = !1, O = !1, _ = !1, k = !1, T = !1, C = !1, M = -1, S = V, E = m, h = void 0, v = "";
|
|
1070
|
+
} else D === 93 ? (l && n === "bracket" && Z === 91 && (M = N), r && (u === "index" || d) && y <= f && (S !== N && (I = wr(e, S + 1, V,
|
|
1071
|
+
_, w), v = i(I), h !== void 0 && (E = (0, Sr.getDeepObject)(E, h, v, void 0, d)), h = v, _ = !1, w = !1), S = V, C = !0, T = !1)) : D ===
|
|
1072
|
+
46 ? r && (u === "dot" || d) && y <= f && (S !== N && (I = wr(e, S + 1, V, _, w), v = i(I), h !== void 0 && (E = (0, Sr.getDeepObject)(
|
|
1073
|
+
E, h, v, d)), h = v, _ = !1, w = !1), T = !0, C = !1, S = V) : D === 91 ? r && (u === "index" || d) && y <= f && (S !== N && (I = wr(e,
|
|
1074
|
+
S + 1, V, _, w), v = i(I), d && h !== void 0 && (E = (0, Sr.getDeepObject)(E, h, v, d)), h = v, _ = !1, w = !1, T = !1, C = !0), S = V) :
|
|
1075
|
+
D === 61 ? y <= f ? y = V : O = !0 : D === 43 ? y > f ? k = !0 : _ = !0 : D === 37 && (y > f ? O = !0 : w = !0);
|
|
1076
|
+
N = V, Z = D;
|
|
1077
1077
|
}
|
|
1078
1078
|
return m;
|
|
1079
1079
|
}
|
|
@@ -1363,8 +1363,8 @@ var xd = we((Ro, Ns) => {
|
|
|
1363
1363
|
function d(f, y) {
|
|
1364
1364
|
var S = y.location, E = S === void 0 ? 0 : S, h = y.distance, v = h === void 0 ? 100 : h, I = y.threshold, w = I === void 0 ? 0.6 :
|
|
1365
1365
|
I, O = y.maxPatternLength, _ = O === void 0 ? 32 : O, k = y.caseSensitive, T = k !== void 0 && k, C = y.tokenSeparator, P = C === void 0 ?
|
|
1366
|
-
/ +/g : C, D = y.findAllMatches, M = D !== void 0 && D, N = y.minMatchCharLength, Z = N === void 0 ? 1 : N,
|
|
1367
|
-
null :
|
|
1366
|
+
/ +/g : C, D = y.findAllMatches, M = D !== void 0 && D, N = y.minMatchCharLength, Z = N === void 0 ? 1 : N, V = y.id, Q = V === void 0 ?
|
|
1367
|
+
null : V, B = y.keys, $ = B === void 0 ? [] : B, H = y.shouldSort, re = H === void 0 || H, F = y.getFn, R = F === void 0 ? u : F, L = y.
|
|
1368
1368
|
sortFn, K = L === void 0 ? function(fe, Se) {
|
|
1369
1369
|
return fe.score - Se.score;
|
|
1370
1370
|
} : L, J = y.tokenize, ie = J !== void 0 && J, te = y.matchAllTokens, de = te !== void 0 && te, ae = y.includeMatches, ce = ae !==
|
|
@@ -1424,15 +1424,15 @@ Search pattern: "`.concat(f, '"'));
|
|
|
1424
1424
|
}, "value") }, { key: "_analyze", value: /* @__PURE__ */ a(function(f, y) {
|
|
1425
1425
|
var S = this, E = f.key, h = f.arrayIndex, v = h === void 0 ? -1 : h, I = f.value, w = f.record, O = f.index, _ = y.tokenSearchers,
|
|
1426
1426
|
k = _ === void 0 ? [] : _, T = y.fullSearcher, C = y.resultMap, P = C === void 0 ? {} : C, D = y.results, M = D === void 0 ? [] : D;
|
|
1427
|
-
(/* @__PURE__ */ a(function N(Z,
|
|
1428
|
-
if (
|
|
1429
|
-
if (typeof
|
|
1427
|
+
(/* @__PURE__ */ a(function N(Z, V, Q, B) {
|
|
1428
|
+
if (V != null) {
|
|
1429
|
+
if (typeof V == "string") {
|
|
1430
1430
|
var $ = !1, H = -1, re = 0;
|
|
1431
1431
|
S._log(`
|
|
1432
1432
|
Key: `.concat(E === "" ? "--" : E));
|
|
1433
|
-
var F = T.search(
|
|
1434
|
-
if (S._log('Full text: "'.concat(
|
|
1435
|
-
for (var R =
|
|
1433
|
+
var F = T.search(V);
|
|
1434
|
+
if (S._log('Full text: "'.concat(V, '", score: ').concat(F.score)), S.options.tokenize) {
|
|
1435
|
+
for (var R = V.split(S.options.tokenSeparator), L = R.length, K = [], J = 0, ie = k.length; J < ie; J += 1) {
|
|
1436
1436
|
var te = k[J];
|
|
1437
1437
|
S._log(`
|
|
1438
1438
|
Pattern: "`.concat(te.pattern, '"'));
|
|
@@ -1452,12 +1452,12 @@ Pattern: "`.concat(te.pattern, '"'));
|
|
|
1452
1452
|
var Se = !S.options.tokenize || !S.options.matchAllTokens || re >= k.length;
|
|
1453
1453
|
if (S._log(`
|
|
1454
1454
|
Check Matches: `.concat(Se)), ($ || F.isMatch) && Se) {
|
|
1455
|
-
var _e = { key: E, arrayIndex: Z, value:
|
|
1455
|
+
var _e = { key: E, arrayIndex: Z, value: V, score: fe };
|
|
1456
1456
|
S.options.includeMatches && (_e.matchedIndices = F.matchedIndices);
|
|
1457
1457
|
var De = P[B];
|
|
1458
1458
|
De ? De.output.push(_e) : (P[B] = { item: Q, output: [_e] }, M.push(P[B]));
|
|
1459
1459
|
}
|
|
1460
|
-
} else if (c(
|
|
1460
|
+
} else if (c(V)) for (var z = 0, Pe = V.length; z < Pe; z += 1) N(z, V[z], Q, B);
|
|
1461
1461
|
}
|
|
1462
1462
|
}, "e"))(v, I, w, O);
|
|
1463
1463
|
}, "value") }, { key: "_computeScore", value: /* @__PURE__ */ a(function(f) {
|
|
@@ -1535,8 +1535,8 @@ Output:
|
|
|
1535
1535
|
h, I = b.maxPatternLength, w = I === void 0 ? 32 : I, O = b.isCaseSensitive, _ = O !== void 0 && O, k = b.tokenSeparator, T = k ===
|
|
1536
1536
|
void 0 ? / +/g : k, C = b.findAllMatches, P = C !== void 0 && C, D = b.minMatchCharLength, M = D === void 0 ? 1 : D, N = b.includeMatches,
|
|
1537
1537
|
Z = N !== void 0 && N;
|
|
1538
|
-
(function(
|
|
1539
|
-
if (!(
|
|
1538
|
+
(function(V, Q) {
|
|
1539
|
+
if (!(V instanceof Q)) throw new TypeError("Cannot call a class as a function");
|
|
1540
1540
|
})(this, c), this.options = { location: y, distance: E, threshold: v, maxPatternLength: w, isCaseSensitive: _, tokenSeparator: T, findAllMatches: P,
|
|
1541
1541
|
includeMatches: Z, minMatchCharLength: M }, this.pattern = _ ? g : g.toLowerCase(), this.pattern.length <= w && (this.patternAlphabet =
|
|
1542
1542
|
l(this.pattern));
|
|
@@ -1582,11 +1582,11 @@ Output:
|
|
|
1582
1582
|
}
|
|
1583
1583
|
}
|
|
1584
1584
|
k = -1;
|
|
1585
|
-
for (var N = [], Z = 1,
|
|
1586
|
-
for (var $ = 0, H =
|
|
1587
|
-
i(l, { errors: B, currentLocation: w + H, expectedLocation: w, distance: g }) <= _ ? $ = H :
|
|
1585
|
+
for (var N = [], Z = 1, V = T + O, Q = 1 << (T <= 31 ? T - 1 : 30), B = 0; B < T; B += 1) {
|
|
1586
|
+
for (var $ = 0, H = V; $ < H; )
|
|
1587
|
+
i(l, { errors: B, currentLocation: w + H, expectedLocation: w, distance: g }) <= _ ? $ = H : V = H, H = Math.floor((V - $) / 2 +
|
|
1588
1588
|
$);
|
|
1589
|
-
|
|
1589
|
+
V = H;
|
|
1590
1590
|
var re = Math.max(1, w - H + 1), F = S ? O : Math.min(w + H, O) + T, R = Array(F + 2);
|
|
1591
1591
|
R[F + 1] = (1 << B) - 1;
|
|
1592
1592
|
for (var L = F; L >= re; L -= 1) {
|
|
@@ -1879,7 +1879,7 @@ var Ad = we((un, cn) => {
|
|
|
1879
1879
|
// global-externals:react
|
|
1880
1880
|
var s = __REACT__, { Children: zS, Component: Ne, Fragment: Ee, Profiler: WS, PureComponent: VS, StrictMode: jS, Suspense: KS, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: $S,
|
|
1881
1881
|
cloneElement: Ys, createContext: Gt, createElement: US, createFactory: GS, createRef: YS, forwardRef: qs, isValidElement: qS, lazy: QS, memo: St,
|
|
1882
|
-
startTransition: XS, unstable_act: ZS, useCallback: A, useContext: Wo, useDebugValue: JS, useDeferredValue: Qs, useEffect:
|
|
1882
|
+
startTransition: XS, unstable_act: ZS, useCallback: A, useContext: Wo, useDebugValue: JS, useDeferredValue: Qs, useEffect: W, useId: ew, useImperativeHandle: tw,
|
|
1883
1883
|
useInsertionEffect: ow, useLayoutEffect: Yt, useMemo: U, useReducer: qt, useRef: G, useState: j, useSyncExternalStore: rw, useTransition: Xs,
|
|
1884
1884
|
version: nw } = __REACT__;
|
|
1885
1885
|
|
|
@@ -2266,13 +2266,13 @@ var Ca = /* @__PURE__ */ a((e) => /* @__PURE__ */ a((o) => {
|
|
|
2266
2266
|
let f = p.current, y = f.indexOf(d), S = y > -1 ? y : 0, h = S === 0 ? f.length - 1 : S - 1, v = p.current[h];
|
|
2267
2267
|
c({ [i]: v });
|
|
2268
2268
|
}, [p, d, c]);
|
|
2269
|
-
return
|
|
2269
|
+
return W(() => {
|
|
2270
2270
|
r && Ta(l, i, {
|
|
2271
2271
|
next: { ...r.next, action: g },
|
|
2272
2272
|
previous: { ...r.previous, action: b },
|
|
2273
2273
|
reset: { ...r.reset, action: m }
|
|
2274
2274
|
});
|
|
2275
|
-
}, [l, i, r, g, b, m]),
|
|
2275
|
+
}, [l, i, r, g, b, m]), W(() => {
|
|
2276
2276
|
p.current = Ea(n);
|
|
2277
2277
|
}, []), /* @__PURE__ */ s.createElement(e, { cycleValues: p.current, ...o });
|
|
2278
2278
|
}, "WithKeyboardCycle"), "withKeyboardCycle");
|
|
@@ -3042,7 +3042,7 @@ function cl(e) {
|
|
|
3042
3042
|
function n() {
|
|
3043
3043
|
i(t(e));
|
|
3044
3044
|
}
|
|
3045
|
-
return a(n, "handleChange"),
|
|
3045
|
+
return a(n, "handleChange"), W(() => {
|
|
3046
3046
|
let r = window.matchMedia(e);
|
|
3047
3047
|
return n(), r.addEventListener("change", n), () => {
|
|
3048
3048
|
r.removeEventListener("change", n);
|
|
@@ -3742,7 +3742,7 @@ ent"), qy = x(ee)(({ theme: e }) => ({
|
|
|
3742
3742
|
let p = A(() => {
|
|
3743
3743
|
u(r), i && i({ dismissed: !1, timeout: !0 });
|
|
3744
3744
|
}, [r, u, i]), d = G(null);
|
|
3745
|
-
|
|
3745
|
+
W(() => {
|
|
3746
3746
|
if (t)
|
|
3747
3747
|
return d.current = setTimeout(p, t), () => clearTimeout(d.current);
|
|
3748
3748
|
}, [t, p]);
|
|
@@ -4323,7 +4323,7 @@ function Nl({
|
|
|
4323
4323
|
isDesktop: o
|
|
4324
4324
|
}) {
|
|
4325
4325
|
let i = G(null), n = G(null);
|
|
4326
|
-
return
|
|
4326
|
+
return W(() => {
|
|
4327
4327
|
let r = i.current, l = n.current, u = document.querySelector("#storybook-preview-wrapper"), c = null, p = /* @__PURE__ */ a((g) => {
|
|
4328
4328
|
g.preventDefault(), e((b) => ({
|
|
4329
4329
|
...b,
|
|
@@ -4423,7 +4423,7 @@ t.rightPanelWidth && e.panelPosition === t.panelPosition, "layoutStateIsEqual"),
|
|
|
4423
4423
|
...e,
|
|
4424
4424
|
isDragging: !1
|
|
4425
4425
|
});
|
|
4426
|
-
|
|
4426
|
+
W(() => {
|
|
4427
4427
|
r.isDragging || // don't interrupt user's drag
|
|
4428
4428
|
Fl(e, n.current) || (n.current = e, l((f) => ({ ...f, ...e })));
|
|
4429
4429
|
}, [r.isDragging, e, l]), Yt(() => {
|
|
@@ -5291,7 +5291,7 @@ var Sv = /* @__PURE__ */ a(({ state: e, api: t }) => ({
|
|
|
5291
5291
|
wrappers: f,
|
|
5292
5292
|
tabId: y
|
|
5293
5293
|
} = t, S = b.find((I) => I.id === y)?.render, E = r === "story", { showToolbar: h } = n, v = G(l);
|
|
5294
|
-
return
|
|
5294
|
+
return W(() => {
|
|
5295
5295
|
if (u && r) {
|
|
5296
5296
|
if (l === v.current)
|
|
5297
5297
|
return;
|
|
@@ -5331,7 +5331,7 @@ var wv = /* @__PURE__ */ a(({ baseUrl: e, withLoader: t, wrappers: o }) => /* @_
|
|
|
5331
5331
|
previewInitialized: d
|
|
5332
5332
|
}) => {
|
|
5333
5333
|
let m = "canvas", [g, b] = j(void 0);
|
|
5334
|
-
|
|
5334
|
+
W(() => {
|
|
5335
5335
|
if (se.CONFIG_TYPE === "DEVELOPMENT")
|
|
5336
5336
|
try {
|
|
5337
5337
|
He.getChannel().on(sa, (v) => {
|
|
@@ -5470,7 +5470,7 @@ var Tv = [_u()], Cv = [Pu, mu, gu], _v = [iu, bu, fu, du], kv = [], Ov = (0, Oo.
|
|
|
5470
5470
|
// src/manager/hooks/useDebounce.ts
|
|
5471
5471
|
function Du(e, t) {
|
|
5472
5472
|
let [o, i] = j(e);
|
|
5473
|
-
return
|
|
5473
|
+
return W(() => {
|
|
5474
5474
|
let n = setTimeout(() => {
|
|
5475
5475
|
i(e);
|
|
5476
5476
|
}, t);
|
|
@@ -5931,7 +5931,7 @@ function Wv({
|
|
|
5931
5931
|
a(Wv, "calculateRange");
|
|
5932
5932
|
|
|
5933
5933
|
// ../node_modules/@tanstack/react-virtual/dist/esm/index.js
|
|
5934
|
-
var Vv = typeof document < "u" ? Yt :
|
|
5934
|
+
var Vv = typeof document < "u" ? Yt : W;
|
|
5935
5935
|
function jv(e) {
|
|
5936
5936
|
let t = qt(() => ({}), {})[1], o = {
|
|
5937
5937
|
...e,
|
|
@@ -5942,7 +5942,7 @@ function jv(e) {
|
|
|
5942
5942
|
}, [i] = j(
|
|
5943
5943
|
() => new _r(o)
|
|
5944
5944
|
);
|
|
5945
|
-
return i.setOptions(o),
|
|
5945
|
+
return i.setOptions(o), W(() => i._didMount(), []), Vv(() => i._willUpdate()), i;
|
|
5946
5946
|
}
|
|
5947
5947
|
a(jv, "useVirtualizerBase");
|
|
5948
5948
|
function Hu(e) {
|
|
@@ -5961,7 +5961,7 @@ var zu = /* @__PURE__ */ a(({
|
|
|
5961
5961
|
rowVirtualizer: t,
|
|
5962
5962
|
selectedItem: o
|
|
5963
5963
|
}) => {
|
|
5964
|
-
|
|
5964
|
+
W(() => {
|
|
5965
5965
|
let i = /* @__PURE__ */ a((n) => {
|
|
5966
5966
|
if (!e.current)
|
|
5967
5967
|
return;
|
|
@@ -6502,7 +6502,7 @@ var Yv = 418, qv = x(kt)(() => ({
|
|
|
6502
6502
|
container: p
|
|
6503
6503
|
}) => {
|
|
6504
6504
|
let [d, m] = Mu(), [g, b] = j(m.height), [, f] = Xs(), [y, S] = j(o);
|
|
6505
|
-
return
|
|
6505
|
+
return W(() => {
|
|
6506
6506
|
g < m.height && b(m.height);
|
|
6507
6507
|
}, [m.height, g]), /* @__PURE__ */ s.createElement(
|
|
6508
6508
|
qv,
|
|
@@ -6731,9 +6731,9 @@ var n0 = /* @__PURE__ */ a((e) => JSON.stringify(e, (t, o) => typeof o == "funct
|
|
|
6731
6731
|
},
|
|
6732
6732
|
[m?.selectStory, f, S, y]
|
|
6733
6733
|
);
|
|
6734
|
-
return
|
|
6734
|
+
return W(() => {
|
|
6735
6735
|
d(null);
|
|
6736
|
-
}, [u]),
|
|
6736
|
+
}, [u]), W(() => S(), [S]), /* @__PURE__ */ s.createElement(
|
|
6737
6737
|
sc,
|
|
6738
6738
|
{
|
|
6739
6739
|
error: p,
|
|
@@ -7603,7 +7603,7 @@ var { document: Wi } = se, R0 = /* @__PURE__ */ a(({
|
|
|
7603
7603
|
},
|
|
7604
7604
|
[e, f, o]
|
|
7605
7605
|
);
|
|
7606
|
-
|
|
7606
|
+
W(() => {
|
|
7607
7607
|
g({ ids: Po(i, c), value: !0 });
|
|
7608
7608
|
}, [i, c]);
|
|
7609
7609
|
let S = A(() => {
|
|
@@ -7612,9 +7612,9 @@ var { document: Wi } = se, R0 = /* @__PURE__ */ a(({
|
|
|
7612
7612
|
}, [i, r]), E = A(() => {
|
|
7613
7613
|
g({ ids: Object.keys(i), value: !0 });
|
|
7614
7614
|
}, [i]);
|
|
7615
|
-
return
|
|
7615
|
+
return W(() => d ? (d.on(lo, S), d.on(mn, E), () => {
|
|
7616
7616
|
d.off(lo, S), d.off(mn, E);
|
|
7617
|
-
}) : B0, [d, S, E]),
|
|
7617
|
+
}) : B0, [d, S, E]), W(() => {
|
|
7618
7618
|
let h = Wi.getElementById("storybook-explorer-menu"), v = zi((I) => {
|
|
7619
7619
|
let w = l.current?.refId === o && l.current?.itemId;
|
|
7620
7620
|
if (!t || !e.current || !w || I.repeat || !vt(!1, I))
|
|
@@ -8170,15 +8170,15 @@ var G0 = x.div(({ isMain: e }) => ({
|
|
|
8170
8170
|
allStatuses: E
|
|
8171
8171
|
} = t, h = U(() => n ? Object.keys(n).length : 0, [n]), v = G(null), I = r === at, O = u || (b === "auto-inject" && !S || b === "server-ch\
|
|
8172
8172
|
ecked") || b === "unknown", C = gc(O, !!g && h === 0, !!y, !O && h === 0), [P, D] = j(f);
|
|
8173
|
-
|
|
8173
|
+
W(() => {
|
|
8174
8174
|
n && p && n[p] && D(!0);
|
|
8175
8175
|
}, [D, n, p]);
|
|
8176
|
-
let M = A(() => D((
|
|
8177
|
-
(
|
|
8176
|
+
let M = A(() => D((V) => !V), [D]), N = A(
|
|
8177
|
+
(V) => m({ itemId: V, refId: r }),
|
|
8178
8178
|
[m]
|
|
8179
8179
|
), Z = A(
|
|
8180
8180
|
// @ts-expect-error (non strict)
|
|
8181
|
-
(
|
|
8181
|
+
(V) => i && i.selectStory(V, void 0, { ref: !I && r }),
|
|
8182
8182
|
[i, I, r]
|
|
8183
8183
|
);
|
|
8184
8184
|
return /* @__PURE__ */ s.createElement(s.Fragment, null, I || /* @__PURE__ */ s.createElement(
|
|
@@ -8232,13 +8232,13 @@ var { document: Fr, window: Jc } = se, ep = /* @__PURE__ */ a((e) => e ? { itemI
|
|
|
8232
8232
|
},
|
|
8233
8233
|
[p]
|
|
8234
8234
|
);
|
|
8235
|
-
return
|
|
8235
|
+
return W(() => {
|
|
8236
8236
|
let m = ep(i);
|
|
8237
8237
|
p(m), m && tp(`[data-item-id="${m.itemId}"][data-ref-id="${m.refId}"]`, {
|
|
8238
8238
|
containerRef: e,
|
|
8239
8239
|
center: !0
|
|
8240
8240
|
});
|
|
8241
|
-
}, [e, i, p]),
|
|
8241
|
+
}, [e, i, p]), W(() => {
|
|
8242
8242
|
let m = Fr.getElementById("storybook-explorer-menu"), g, b = /* @__PURE__ */ a((f) => {
|
|
8243
8243
|
if (t || !o || !e.current || !vt(!1, f))
|
|
8244
8244
|
return;
|
|
@@ -8507,7 +8507,7 @@ e - i : l > t && u < o || r < e && u > o ? l - t + n : 0, "o"), sx = /* @__PURE_
|
|
|
8507
8507
|
}, "l"), hp = /* @__PURE__ */ a((e, t) => {
|
|
8508
8508
|
var o, i, n, r;
|
|
8509
8509
|
if (typeof document > "u") return [];
|
|
8510
|
-
let { scrollMode: l, block: u, inline: c, boundary: p, skipOverflowHiddenElements: d } = t, m = typeof p == "function" ? p : (
|
|
8510
|
+
let { scrollMode: l, block: u, inline: c, boundary: p, skipOverflowHiddenElements: d } = t, m = typeof p == "function" ? p : (V) => V !== p;
|
|
8511
8511
|
if (!fp(e)) throw new TypeError("Invalid target");
|
|
8512
8512
|
let g = document.scrollingElement || document.documentElement, b = [], f = e;
|
|
8513
8513
|
for (; fp(f) && m(f); ) {
|
|
@@ -8519,14 +8519,14 @@ e - i : l > t && u < o || r < e && u > o ? l - t + n : 0, "o"), sx = /* @__PURE_
|
|
|
8519
8519
|
}
|
|
8520
8520
|
let y = (i = (o = window.visualViewport) == null ? void 0 : o.width) != null ? i : innerWidth, S = (r = (n = window.visualViewport) == null ?
|
|
8521
8521
|
void 0 : n.height) != null ? r : innerHeight, { scrollX: E, scrollY: h } = window, { height: v, width: I, top: w, right: O, bottom: _, left: k } = e.
|
|
8522
|
-
getBoundingClientRect(), { top: T, right: C, bottom: P, left: D } = ((
|
|
8523
|
-
let Q = window.getComputedStyle(
|
|
8522
|
+
getBoundingClientRect(), { top: T, right: C, bottom: P, left: D } = ((V) => {
|
|
8523
|
+
let Q = window.getComputedStyle(V);
|
|
8524
8524
|
return { top: parseFloat(Q.scrollMarginTop) || 0, right: parseFloat(Q.scrollMarginRight) || 0, bottom: parseFloat(Q.scrollMarginBottom) ||
|
|
8525
8525
|
0, left: parseFloat(Q.scrollMarginLeft) || 0 };
|
|
8526
8526
|
})(e), M = u === "start" || u === "nearest" ? w - T : u === "end" ? _ + P : w + v / 2 - T + P, N = c === "center" ? k + I / 2 - D + C : c ===
|
|
8527
8527
|
"end" ? O + C : k - D, Z = [];
|
|
8528
|
-
for (let
|
|
8529
|
-
let Q = b[
|
|
8528
|
+
for (let V = 0; V < b.length; V++) {
|
|
8529
|
+
let Q = b[V], { height: B, width: $, top: H, right: re, bottom: F, left: R } = Q.getBoundingClientRect();
|
|
8530
8530
|
if (l === "if-needed" && w >= 0 && k >= 0 && _ <= S && O <= y && w >= H && _ <= F && k >= R && O <= re) return Z;
|
|
8531
8531
|
let L = getComputedStyle(Q), K = parseInt(L.borderLeftWidth, 10), J = parseInt(L.borderTopWidth, 10), ie = parseInt(L.borderRightWidth, 10),
|
|
8532
8532
|
te = parseInt(L.borderBottomWidth, 10), de = 0, ae = 0, ce = "offsetWidth" in Q ? Q.offsetWidth - Q.clientWidth - K - ie : 0, ue = "offs\
|
|
@@ -9050,8 +9050,8 @@ hx = /* @__PURE__ */ Object.freeze({
|
|
|
9050
9050
|
return r.avoidScrolling = !1;
|
|
9051
9051
|
}, 250));
|
|
9052
9052
|
}),
|
|
9053
|
-
onMouseDown: le(O, function(
|
|
9054
|
-
|
|
9053
|
+
onMouseDown: le(O, function(V) {
|
|
9054
|
+
V.preventDefault();
|
|
9055
9055
|
})
|
|
9056
9056
|
}, v[D] = le(M, function() {
|
|
9057
9057
|
r.selectItemAtIndex(k, {
|
|
@@ -9298,7 +9298,7 @@ function Ex(e, t) {
|
|
|
9298
9298
|
a(Ex, "stateReducer");
|
|
9299
9299
|
var vp = sn(function(e, t) {
|
|
9300
9300
|
Cp(e, t);
|
|
9301
|
-
}, 200), Tx = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? Yt :
|
|
9301
|
+
}, 200), Tx = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? Yt : W, jp = "useId" in s ?
|
|
9302
9302
|
/* @__PURE__ */ a(function(t) {
|
|
9303
9303
|
var o = t.id, i = t.labelId, n = t.menuId, r = t.getItemId, l = t.toggleButtonId, u = t.inputId, c = "downshift-" + s.useId();
|
|
9304
9304
|
o || (o = c);
|
|
@@ -9361,7 +9361,7 @@ function Kp(e, t, o, i) {
|
|
|
9361
9361
|
props: d.current
|
|
9362
9362
|
}, b));
|
|
9363
9363
|
}, [d]), g = r.current;
|
|
9364
|
-
return
|
|
9364
|
+
return W(function() {
|
|
9365
9365
|
var b = Fo(n.current, g?.props), f = g && n.current && !i(b, c);
|
|
9366
9366
|
f && Sx(g, b, c), n.current = c;
|
|
9367
9367
|
}, [c, g, i]), [c, m];
|
|
@@ -9427,7 +9427,7 @@ function Gp(e, t, o) {
|
|
|
9427
9427
|
isTouchMove: !1,
|
|
9428
9428
|
isTouchEnd: !1
|
|
9429
9429
|
});
|
|
9430
|
-
return
|
|
9430
|
+
return W(function() {
|
|
9431
9431
|
if (!e)
|
|
9432
9432
|
return Re;
|
|
9433
9433
|
var n = t.map(function(d) {
|
|
@@ -9466,12 +9466,12 @@ var qi = /* @__PURE__ */ a(function() {
|
|
|
9466
9466
|
function Qi(e, t, o, i) {
|
|
9467
9467
|
i === void 0 && (i = {});
|
|
9468
9468
|
var n = i.document, r = ln();
|
|
9469
|
-
|
|
9469
|
+
W(function() {
|
|
9470
9470
|
if (!(!e || r || !n)) {
|
|
9471
9471
|
var l = e(t);
|
|
9472
9472
|
vp(l, n);
|
|
9473
9473
|
}
|
|
9474
|
-
}, o),
|
|
9474
|
+
}, o), W(function() {
|
|
9475
9475
|
return function() {
|
|
9476
9476
|
vp.cancel(), mx(n);
|
|
9477
9477
|
};
|
|
@@ -9768,7 +9768,7 @@ function sd(e) {
|
|
|
9768
9768
|
scrollIntoView: o,
|
|
9769
9769
|
getItemNodeFromIndex: h
|
|
9770
9770
|
});
|
|
9771
|
-
|
|
9771
|
+
W(function() {
|
|
9772
9772
|
return y.current = sn(function(B) {
|
|
9773
9773
|
B({
|
|
9774
9774
|
type: Ui,
|
|
@@ -9777,12 +9777,12 @@ function sd(e) {
|
|
|
9777
9777
|
}, 500), function() {
|
|
9778
9778
|
y.current.cancel();
|
|
9779
9779
|
};
|
|
9780
|
-
}, []),
|
|
9780
|
+
}, []), W(function() {
|
|
9781
9781
|
m && y.current(u);
|
|
9782
9782
|
}, [u, m]), Xi({
|
|
9783
9783
|
props: t,
|
|
9784
9784
|
state: l
|
|
9785
|
-
}),
|
|
9785
|
+
}), W(function() {
|
|
9786
9786
|
var B = jt(t, "isOpen");
|
|
9787
9787
|
B && g.current && g.current.focus();
|
|
9788
9788
|
}, []);
|
|
@@ -9791,7 +9791,7 @@ function sd(e) {
|
|
|
9791
9791
|
type: rn
|
|
9792
9792
|
});
|
|
9793
9793
|
}, "handleBlur"), [u, E])), w = qi("getMenuProps", "getToggleButtonProps");
|
|
9794
|
-
|
|
9794
|
+
W(function() {
|
|
9795
9795
|
c || (f.current = {});
|
|
9796
9796
|
}, [c]);
|
|
9797
9797
|
var O = U(function() {
|
|
@@ -9907,7 +9907,7 @@ function sd(e) {
|
|
|
9907
9907
|
b.current = ce;
|
|
9908
9908
|
}), H.id = S.menuId, H.role = "listbox", H["aria-labelledby"] = J && J["aria-label"] ? void 0 : "" + S.labelId, H.onMouseLeave = le(F, ae),
|
|
9909
9909
|
H), J);
|
|
9910
|
-
}, [u, w, S]),
|
|
9910
|
+
}, [u, w, S]), V = A(function(B, $) {
|
|
9911
9911
|
var H, re = B === void 0 ? {} : B, F = re.onBlur, R = re.onClick;
|
|
9912
9912
|
re.onPress;
|
|
9913
9913
|
var L = re.onKeyDown, K = re.refKey, J = K === void 0 ? "ref" : K, ie = re.ref, te = ke(re, Mx), de = $ === void 0 ? {} : $, ae = de.suppressRefError,
|
|
@@ -9958,7 +9958,7 @@ function sd(e) {
|
|
|
9958
9958
|
}, [E, S, I, v, u]);
|
|
9959
9959
|
return {
|
|
9960
9960
|
// prop getters.
|
|
9961
|
-
getToggleButtonProps:
|
|
9961
|
+
getToggleButtonProps: V,
|
|
9962
9962
|
getLabelProps: N,
|
|
9963
9963
|
getMenuProps: Z,
|
|
9964
9964
|
getItemProps: Q,
|
|
@@ -10024,7 +10024,7 @@ var jF = Y({}, Qp, {
|
|
|
10024
10024
|
});
|
|
10025
10025
|
function Fx(e, t, o, i) {
|
|
10026
10026
|
var n = G(), r = Kp(e, t, o, i), l = r[0], u = r[1], c = ln();
|
|
10027
|
-
return
|
|
10027
|
+
return W(function() {
|
|
10028
10028
|
if (Jr(t, "selectedItem")) {
|
|
10029
10029
|
if (!c) {
|
|
10030
10030
|
var p = t.itemToKey(t.selectedItem) !== t.itemToKey(n.current);
|
|
@@ -10167,10 +10167,10 @@ function yd(e) {
|
|
|
10167
10167
|
Xi({
|
|
10168
10168
|
props: t,
|
|
10169
10169
|
state: u
|
|
10170
|
-
}),
|
|
10170
|
+
}), W(function() {
|
|
10171
10171
|
var F = jt(t, "isOpen");
|
|
10172
10172
|
F && y.current && y.current.focus();
|
|
10173
|
-
}, []),
|
|
10173
|
+
}, []), W(function() {
|
|
10174
10174
|
E || (v.current = o.length);
|
|
10175
10175
|
});
|
|
10176
10176
|
var _ = Gp(n, [S, b, y], A(/* @__PURE__ */ a(function() {
|
|
@@ -10179,9 +10179,9 @@ function yd(e) {
|
|
|
10179
10179
|
selectItem: !1
|
|
10180
10180
|
});
|
|
10181
10181
|
}, "handleBlur"), [c, I])), k = qi("getInputProps", "getMenuProps");
|
|
10182
|
-
|
|
10182
|
+
W(function() {
|
|
10183
10183
|
p || (f.current = {});
|
|
10184
|
-
}, [p]),
|
|
10184
|
+
}, [p]), W(function() {
|
|
10185
10185
|
var F;
|
|
10186
10186
|
!p || !(n != null && n.document) || !(y != null && (F = y.current) != null && F.focus) || n.document.activeElement !== y.current && y.current.
|
|
10187
10187
|
focus();
|
|
@@ -10331,7 +10331,7 @@ function yd(e) {
|
|
|
10331
10331
|
c({
|
|
10332
10332
|
type: cd
|
|
10333
10333
|
});
|
|
10334
|
-
}, [c]),
|
|
10334
|
+
}, [c]), V = A(function() {
|
|
10335
10335
|
c({
|
|
10336
10336
|
type: dd
|
|
10337
10337
|
});
|
|
@@ -10369,7 +10369,7 @@ function yd(e) {
|
|
|
10369
10369
|
// actions.
|
|
10370
10370
|
toggleMenu: Z,
|
|
10371
10371
|
openMenu: Q,
|
|
10372
|
-
closeMenu:
|
|
10372
|
+
closeMenu: V,
|
|
10373
10373
|
setHighlightedIndex: B,
|
|
10374
10374
|
setInputValue: H,
|
|
10375
10375
|
selectItem: $,
|
|
@@ -10554,7 +10554,7 @@ function vd(e) {
|
|
|
10554
10554
|
state: u,
|
|
10555
10555
|
props: t
|
|
10556
10556
|
});
|
|
10557
|
-
Qi(o, u, [p, d], i),
|
|
10557
|
+
Qi(o, u, [p, d], i), W(function() {
|
|
10558
10558
|
m || (p === -1 && g.current ? g.current.focus() : b.current[p] && b.current[p].focus());
|
|
10559
10559
|
}, [p]), Xi({
|
|
10560
10560
|
props: t,
|
|
@@ -10591,7 +10591,7 @@ function vd(e) {
|
|
|
10591
10591
|
});
|
|
10592
10592
|
}, "Backspace"), T;
|
|
10593
10593
|
}, [c, r]), h = A(function(T) {
|
|
10594
|
-
var C, P = T === void 0 ? {} : T, D = P.refKey, M = D === void 0 ? "ref" : D, N = P.ref, Z = P.onClick,
|
|
10594
|
+
var C, P = T === void 0 ? {} : T, D = P.refKey, M = D === void 0 ? "ref" : D, N = P.ref, Z = P.onClick, V = P.onKeyDown, Q = P.selectedItem,
|
|
10595
10595
|
B = P.index, $ = ke(P, Qx), H = f.current.state, re = Gi(Q, B, H.selectedItems, "Pass either item or index to getSelectedItemProps!"), F = re[1],
|
|
10596
10596
|
R = F > -1 && F === H.activeIndex, L = /* @__PURE__ */ a(function() {
|
|
10597
10597
|
c({
|
|
@@ -10604,9 +10604,9 @@ function vd(e) {
|
|
|
10604
10604
|
}, "selectedItemHandleKeyDown");
|
|
10605
10605
|
return Y((C = {}, C[M] = Ze(N, function(J) {
|
|
10606
10606
|
J && b.current.push(J);
|
|
10607
|
-
}), C.tabIndex = R ? 0 : -1, C.onClick = le(Z, L), C.onKeyDown = le(
|
|
10607
|
+
}), C.tabIndex = R ? 0 : -1, C.onClick = le(Z, L), C.onKeyDown = le(V, K), C), $);
|
|
10608
10608
|
}, [c, f, S]), v = A(function(T, C) {
|
|
10609
|
-
var P, D = T === void 0 ? {} : T, M = D.refKey, N = M === void 0 ? "ref" : M, Z = D.ref,
|
|
10609
|
+
var P, D = T === void 0 ? {} : T, M = D.refKey, N = M === void 0 ? "ref" : M, Z = D.ref, V = D.onKeyDown, Q = D.onClick, B = D.preventKeyAction,
|
|
10610
10610
|
$ = B === void 0 ? !1 : B, H = ke(D, Xx), re = C === void 0 ? {} : C, F = re.suppressRefError, R = F === void 0 ? !1 : F;
|
|
10611
10611
|
y("getDropdownProps", R, N, g);
|
|
10612
10612
|
var L = /* @__PURE__ */ a(function(ie) {
|
|
@@ -10620,7 +10620,7 @@ function vd(e) {
|
|
|
10620
10620
|
return Y((P = {}, P[N] = Ze(Z, function(J) {
|
|
10621
10621
|
J && (g.current = J);
|
|
10622
10622
|
}), P), !$ && {
|
|
10623
|
-
onKeyDown: le(
|
|
10623
|
+
onKeyDown: le(V, L),
|
|
10624
10624
|
onClick: le(Q, K)
|
|
10625
10625
|
}, H);
|
|
10626
10626
|
}, [c, E, y]), I = A(function(T) {
|
|
@@ -10875,7 +10875,7 @@ var { document: Zx } = se, Rs = 50, Jx = {
|
|
|
10875
10875
|
getRootProps: N,
|
|
10876
10876
|
highlightedIndex: Z
|
|
10877
10877
|
}) => {
|
|
10878
|
-
let
|
|
10878
|
+
let V = k ? k.trim() : "", Q = V ? S(V) : [], B = !V && n();
|
|
10879
10879
|
B && B.length && (Q = B.reduce((F, { storyId: R, refId: L }) => {
|
|
10880
10880
|
let K = o.hash[L];
|
|
10881
10881
|
if (K && K.index && K.index[R]) {
|
|
@@ -10914,7 +10914,7 @@ var { document: Zx } = se, Rs = 50, Jx = {
|
|
|
10914
10914
|
/* @__PURE__ */ s.createElement(aI, null, w && /* @__PURE__ */ s.createElement(ee, { onClick: () => T() }, /* @__PURE__ */ s.createElement(
|
|
10915
10915
|
je, null)), u)
|
|
10916
10916
|
), l), /* @__PURE__ */ s.createElement(lI, { tabIndex: 0, id: "storybook-explorer-menu" }, t({
|
|
10917
|
-
query:
|
|
10917
|
+
query: V,
|
|
10918
10918
|
results: Q,
|
|
10919
10919
|
isBrowsing: !w && Zx.activeElement !== p.current,
|
|
10920
10920
|
closeMenu: _,
|
|
@@ -11043,7 +11043,7 @@ var { document: wd } = se, uI = x.ol({
|
|
|
11043
11043
|
},
|
|
11044
11044
|
[i]
|
|
11045
11045
|
), l = oe();
|
|
11046
|
-
|
|
11046
|
+
W(() => {
|
|
11047
11047
|
l && n.isHighlighted && t.type === "component" && l.emit(wt, { ids: [t.children[0]] }, { options: { target: t.refId } });
|
|
11048
11048
|
}, [n.isHighlighted, t]);
|
|
11049
11049
|
let u = o.find((d) => d.key === "name"), c = o.filter((d) => d.key === "path"), [p] = t.status ? Do[t.status] : [];
|
|
@@ -11068,7 +11068,7 @@ ponent" })), t.type === "story" && /* @__PURE__ */ s.createElement(bt, { viewBox
|
|
|
11068
11068
|
clearLastViewed: p
|
|
11069
11069
|
}) {
|
|
11070
11070
|
let d = oe();
|
|
11071
|
-
|
|
11071
|
+
W(() => {
|
|
11072
11072
|
let b = /* @__PURE__ */ a((f) => {
|
|
11073
11073
|
if (!(!c || u || f.repeat) && vt(!1, f) && $e("Escape", f)) {
|
|
11074
11074
|
if (f.target?.id === "storybook-explorer-searchfield")
|
|
@@ -11256,7 +11256,7 @@ ow, 0 1px 2px 0 rgba(0, 0, 0, 0.05), 0px -5px 20px 10px ${n.background.app})`,
|
|
|
11256
11256
|
setWarningsActive: d
|
|
11257
11257
|
}) => {
|
|
11258
11258
|
let m = G(null), g = G(null), [b, f] = j(Bs), [y, S] = j(!0), [E, h] = j(!1), [v, I] = j(!1), w = G();
|
|
11259
|
-
|
|
11259
|
+
W(() => {
|
|
11260
11260
|
let C = Qt.onSettingsChanged(() => {
|
|
11261
11261
|
I(!0), clearTimeout(w.current), w.current = setTimeout(() => {
|
|
11262
11262
|
I(!1);
|
|
@@ -11265,7 +11265,7 @@ ow, 0 1px 2px 0 rgba(0, 0, 0, 0.05), 0px -5px 20px 10px ${n.background.app})`,
|
|
|
11265
11265
|
return () => {
|
|
11266
11266
|
C(), clearTimeout(w.current);
|
|
11267
11267
|
};
|
|
11268
|
-
}, []),
|
|
11268
|
+
}, []), W(() => {
|
|
11269
11269
|
if (g.current) {
|
|
11270
11270
|
f(g.current?.getBoundingClientRect().height || Bs);
|
|
11271
11271
|
let C = new ResizeObserver(() => {
|
|
@@ -11279,8 +11279,8 @@ ow, 0 1px 2px 0 rgba(0, 0, 0, 0.05), 0px -5px 20px 10px ${n.background.app})`,
|
|
|
11279
11279
|
return C.observe(g.current), () => C.disconnect();
|
|
11280
11280
|
}
|
|
11281
11281
|
}, [y]);
|
|
11282
|
-
let O = A((C) => {
|
|
11283
|
-
C
|
|
11282
|
+
let O = A((C, P) => {
|
|
11283
|
+
C?.stopPropagation(), h(!0), S((D) => P ?? !D), m.current && clearTimeout(m.current), m.current = setTimeout(() => {
|
|
11284
11284
|
h(!1);
|
|
11285
11285
|
}, 250);
|
|
11286
11286
|
}, []), _ = Object.values(t).some(
|
|
@@ -11288,7 +11288,9 @@ ow, 0 1px 2px 0 rgba(0, 0, 0, 0.05), 0px -5px 20px 10px ${n.background.app})`,
|
|
|
11288
11288
|
), k = Object.values(t).some(
|
|
11289
11289
|
(C) => C === "test-provider-state:crashed"
|
|
11290
11290
|
), T = Object.values(e).length > 0;
|
|
11291
|
-
return
|
|
11291
|
+
return W(() => {
|
|
11292
|
+
k && y && O(void 0, !1);
|
|
11293
|
+
}, [k, y, O]), !T && (!r || !c) ? null : /* @__PURE__ */ s.createElement(
|
|
11292
11294
|
II,
|
|
11293
11295
|
{
|
|
11294
11296
|
id: "storybook-testing-module",
|
|
@@ -11313,8 +11315,8 @@ ow, 0 1px 2px 0 rgba(0, 0, 0, 0.05), 0px -5px 20px 10px ${n.background.app})`,
|
|
|
11313
11315
|
`No render function found for test provider with id '${D}', skipping...`
|
|
11314
11316
|
), null);
|
|
11315
11317
|
}))
|
|
11316
|
-
), /* @__PURE__ */ s.createElement(TI, { ...T ? { onClick: O } : {} }, /* @__PURE__ */ s.createElement(
|
|
11317
|
-
createElement(
|
|
11318
|
+
), /* @__PURE__ */ s.createElement(TI, { ...T ? { onClick: /* @__PURE__ */ a((C) => O(C), "onClick") } : {} }, /* @__PURE__ */ s.createElement(
|
|
11319
|
+
CI, null, T && /* @__PURE__ */ s.createElement(
|
|
11318
11320
|
ve,
|
|
11319
11321
|
{
|
|
11320
11322
|
hasChrome: !1,
|
|
@@ -11353,7 +11355,7 @@ ow, 0 1px 2px 0 rgba(0, 0, 0, 0.05), 0px -5px 20px 10px ${n.background.app})`,
|
|
|
11353
11355
|
size: "medium",
|
|
11354
11356
|
variant: "ghost",
|
|
11355
11357
|
padding: "small",
|
|
11356
|
-
onClick: O,
|
|
11358
|
+
onClick: (C) => O(C),
|
|
11357
11359
|
id: "testing-module-collapse-toggle",
|
|
11358
11360
|
"aria-label": y ? "Expand testing module" : "Collapse testing module"
|
|
11359
11361
|
},
|
|
@@ -11483,14 +11485,14 @@ e).some(({ value: t }) => t === "status-value:error"), "filterError"), FI = /* @
|
|
|
11483
11485
|
onRunAll: c
|
|
11484
11486
|
}) => {
|
|
11485
11487
|
let p = G(null), d = G(null), [m, g] = j(!1), [b, f] = j(!1);
|
|
11486
|
-
return
|
|
11488
|
+
return W(() => {
|
|
11487
11489
|
if (p.current && d.current) {
|
|
11488
11490
|
let y = new ResizeObserver(() => {
|
|
11489
11491
|
p.current && d.current && (p.current.style.height = `${d.current.scrollHeight}px`);
|
|
11490
11492
|
});
|
|
11491
11493
|
return y.observe(d.current), () => y.disconnect();
|
|
11492
11494
|
}
|
|
11493
|
-
}, []),
|
|
11495
|
+
}, []), W(() => {
|
|
11494
11496
|
let y = RI(i > 0 && m, o > 0 && b);
|
|
11495
11497
|
e.experimental_setFilter("sidebar-bottom-filter", y);
|
|
11496
11498
|
}, [e, i, o, m, b]), !i && !o && Object.values(u).length === 0 && t.length === 0 ? null : /* @__PURE__ */ s.createElement(Ee, null, /* @__PURE__ */ s.
|
|
@@ -11620,7 +11622,7 @@ var jI = "tags-filter", KI = /* @__PURE__ */ new Set([
|
|
|
11620
11622
|
isDevelopment: i
|
|
11621
11623
|
}) => {
|
|
11622
11624
|
let [n, r] = j(o), [l, u] = j(!1), c = n.length > 0;
|
|
11623
|
-
|
|
11625
|
+
W(() => {
|
|
11624
11626
|
e.experimental_setFilter(jI, (b) => n.length === 0 ? !0 : n.some((f) => b.tags?.includes(f)));
|
|
11625
11627
|
}, [e, n]);
|
|
11626
11628
|
let p = Object.values(t.entries).reduce((b, f) => (f.tags?.forEach((y) => {
|
|
@@ -11697,7 +11699,7 @@ var Dd = Hs((e) => pn.default.set("lastViewedStoryIds", e), 1e3), Md = /* @__PUR
|
|
|
11697
11699
|
},
|
|
11698
11700
|
[o]
|
|
11699
11701
|
);
|
|
11700
|
-
return
|
|
11702
|
+
return W(() => {
|
|
11701
11703
|
e && i(e);
|
|
11702
11704
|
}, [e]), {
|
|
11703
11705
|
getLastViewed: A(() => o.current, [o]),
|
|
@@ -12545,7 +12547,7 @@ null) : /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.crea
|
|
|
12545
12547
|
}
|
|
12546
12548
|
))), "PureWhatsNewScreen"), OS = 1e4, Ud = /* @__PURE__ */ a(() => {
|
|
12547
12549
|
let e = oe(), t = Fe(), { whatsNewData: o } = t, [i, n] = j(!1), [r, l] = j(!1);
|
|
12548
|
-
if (
|
|
12550
|
+
if (W(() => {
|
|
12549
12551
|
let c = setTimeout(() => !i && l(!0), OS);
|
|
12550
12552
|
return () => clearTimeout(c);
|
|
12551
12553
|
}, [i]), o?.status !== "SUCCESS")
|
|
@@ -10616,7 +10616,7 @@ k(cr, {
|
|
|
10616
10616
|
var ut = require("@storybook/global"), Q0 = B(Bt(), 1), F = B(require("semver"), 1);
|
|
10617
10617
|
|
|
10618
10618
|
// src/manager-api/version.ts
|
|
10619
|
-
var Y0 = "9.0.0-alpha.
|
|
10619
|
+
var Y0 = "9.0.0-alpha.17";
|
|
10620
10620
|
|
|
10621
10621
|
// src/manager-api/modules/versions.ts
|
|
10622
10622
|
var { VERSIONCHECK: Jn } = ut.global, J0 = (0, Q0.default)(1)(() => {
|