storybook 9.0.0-alpha.11 → 9.0.0-alpha.12
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/bin/index.cjs +2 -2
- package/dist/actions/manager.js +150 -151
- package/dist/actions/preview.d.ts +0 -1
- package/dist/bin/index.cjs +70 -74
- package/dist/bin/index.js +59 -63
- package/dist/channels/index.cjs +17 -17
- package/dist/channels/index.js +3 -3
- package/dist/cli/bin/index.cjs +1 -1
- package/dist/cli/bin/index.js +1 -1
- package/dist/cli/index.cjs +1904 -1907
- package/dist/cli/index.d.ts +3 -7
- package/dist/cli/index.js +734 -737
- package/dist/common/index.cjs +57 -65
- package/dist/common/index.d.ts +1 -5
- package/dist/common/index.js +57 -65
- package/dist/component-testing/manager.js +564 -537
- package/dist/components/index.cjs +5514 -5781
- package/dist/components/index.d.ts +3 -254
- package/dist/components/index.js +7295 -13770
- package/dist/controls/manager.js +989 -941
- package/dist/controls/preview.d.ts +0 -1
- package/dist/core-events/index.cjs +42 -45
- package/dist/core-events/index.d.ts +1 -4
- package/dist/core-events/index.js +38 -41
- package/dist/core-server/index.cjs +2730 -2721
- package/dist/core-server/index.d.ts +32 -23
- package/dist/core-server/index.js +822 -813
- package/dist/core-server/presets/common-preset.cjs +1122 -1098
- package/dist/core-server/presets/common-preset.js +1228 -1204
- package/dist/csf/index.d.ts +0 -2
- package/dist/csf-tools/index.cjs +0 -8
- package/dist/csf-tools/index.d.ts +0 -4
- package/dist/csf-tools/index.js +0 -8
- package/dist/manager/globals-module-info.cjs +15 -17
- package/dist/manager/globals-module-info.js +4 -6
- package/dist/manager/globals-runtime.js +22565 -22933
- package/dist/manager/runtime.js +4958 -4440
- package/dist/manager-api/index.cjs +1169 -1152
- package/dist/manager-api/index.d.ts +105 -96
- package/dist/manager-api/index.js +810 -795
- package/dist/preview/runtime.js +11617 -11745
- package/dist/preview-api/index.cjs +1101 -1217
- package/dist/preview-api/index.d.ts +8 -21
- package/dist/preview-api/index.js +1459 -1576
- package/dist/telemetry/index.d.ts +1 -1
- package/dist/types/index.cjs +14 -15
- package/dist/types/index.d.ts +306 -65
- package/dist/types/index.js +1 -2
- package/dist/viewport/preview.d.ts +0 -1
- package/package.json +4 -4
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
var D1 = Object.create;
|
|
2
|
-
var
|
|
2
|
+
var Ze = Object.defineProperty;
|
|
3
3
|
var P1 = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var q1 = Object.getOwnPropertyNames;
|
|
5
5
|
var N1 = Object.getPrototypeOf, j1 = Object.prototype.hasOwnProperty;
|
|
6
|
-
var l = (e, t) =>
|
|
6
|
+
var l = (e, t) => Ze(e, "name", { value: t, configurable: !0 });
|
|
7
7
|
var L = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
|
|
8
8
|
var F1 = (e, t, r, a) => {
|
|
9
9
|
if (t && typeof t == "object" || typeof t == "function")
|
|
10
10
|
for (let n of q1(t))
|
|
11
|
-
!j1.call(e, n) && n !== r &&
|
|
11
|
+
!j1.call(e, n) && n !== r && Ze(e, n, { get: () => t[n], enumerable: !(a = P1(t, n)) || a.enumerable });
|
|
12
12
|
return e;
|
|
13
13
|
};
|
|
14
14
|
var G = (e, t, r) => (r = e != null ? D1(N1(e)) : {}, F1(
|
|
@@ -16,13 +16,13 @@ var G = (e, t, r) => (r = e != null ? D1(N1(e)) : {}, F1(
|
|
|
16
16
|
// file that has been converted to a CommonJS file using a Babel-
|
|
17
17
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
18
18
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
19
|
-
t || !e || !e.__esModule ?
|
|
19
|
+
t || !e || !e.__esModule ? Ze(r, "default", { value: e, enumerable: !0 }) : r,
|
|
20
20
|
e
|
|
21
21
|
));
|
|
22
22
|
|
|
23
23
|
// ../node_modules/ansi-to-html/node_modules/entities/lib/maps/entities.json
|
|
24
|
-
var
|
|
25
|
-
|
|
24
|
+
var e0 = L((Qa, W1) => {
|
|
25
|
+
W1.exports = { Aacute: "\xC1", aacute: "\xE1", Abreve: "\u0102", abreve: "\u0103", ac: "\u223E", acd: "\u223F", acE: "\u223E\u0333", Acirc: "\
|
|
26
26
|
\xC2", acirc: "\xE2", acute: "\xB4", Acy: "\u0410", acy: "\u0430", AElig: "\xC6", aelig: "\xE6", af: "\u2061", Afr: "\u{1D504}", afr: "\u{1D51E}",
|
|
27
27
|
Agrave: "\xC0", agrave: "\xE0", alefsym: "\u2135", aleph: "\u2135", Alpha: "\u0391", alpha: "\u03B1", Amacr: "\u0100", amacr: "\u0101", amalg: "\
|
|
28
28
|
\u2A3F", amp: "&", AMP: "&", andand: "\u2A55", And: "\u2A53", and: "\u2227", andd: "\u2A5C", andslope: "\u2A58", andv: "\u2A5A", ang: "\u2220",
|
|
@@ -303,8 +303,8 @@ var Qe = L((Za, G1) => {
|
|
|
303
303
|
});
|
|
304
304
|
|
|
305
305
|
// ../node_modules/ansi-to-html/node_modules/entities/lib/maps/legacy.json
|
|
306
|
-
var N0 = L((
|
|
307
|
-
|
|
306
|
+
var N0 = L((el, X1) => {
|
|
307
|
+
X1.exports = { Aacute: "\xC1", aacute: "\xE1", Acirc: "\xC2", acirc: "\xE2", acute: "\xB4", AElig: "\xC6", aelig: "\xE6", Agrave: "\xC0", agrave: "\
|
|
308
308
|
\xE0", amp: "&", AMP: "&", Aring: "\xC5", aring: "\xE5", Atilde: "\xC3", atilde: "\xE3", Auml: "\xC4", auml: "\xE4", brvbar: "\xA6", Ccedil: "\
|
|
309
309
|
\xC7", ccedil: "\xE7", cedil: "\xB8", cent: "\xA2", copy: "\xA9", COPY: "\xA9", curren: "\xA4", deg: "\xB0", divide: "\xF7", Eacute: "\xC9",
|
|
310
310
|
eacute: "\xE9", Ecirc: "\xCA", ecirc: "\xEA", Egrave: "\xC8", egrave: "\xE8", ETH: "\xD0", eth: "\xF0", Euml: "\xCB", euml: "\xEB", frac12: "\
|
|
@@ -318,25 +318,25 @@ var N0 = L((Ja, W1) => {
|
|
|
318
318
|
});
|
|
319
319
|
|
|
320
320
|
// ../node_modules/ansi-to-html/node_modules/entities/lib/maps/xml.json
|
|
321
|
-
var
|
|
322
|
-
|
|
321
|
+
var t0 = L((tl, Y1) => {
|
|
322
|
+
Y1.exports = { amp: "&", apos: "'", gt: ">", lt: "<", quot: '"' };
|
|
323
323
|
});
|
|
324
324
|
|
|
325
325
|
// ../node_modules/ansi-to-html/node_modules/entities/lib/maps/decode.json
|
|
326
|
-
var j0 = L((
|
|
327
|
-
|
|
326
|
+
var j0 = L((rl, K1) => {
|
|
327
|
+
K1.exports = { "0": 65533, "128": 8364, "130": 8218, "131": 402, "132": 8222, "133": 8230, "134": 8224, "135": 8225, "136": 710, "137": 8240,
|
|
328
328
|
"138": 352, "139": 8249, "140": 338, "142": 381, "145": 8216, "146": 8217, "147": 8220, "148": 8221, "149": 8226, "150": 8211, "151": 8212,
|
|
329
329
|
"152": 732, "153": 8482, "154": 353, "155": 8250, "156": 339, "158": 382, "159": 376 };
|
|
330
330
|
});
|
|
331
331
|
|
|
332
332
|
// ../node_modules/ansi-to-html/node_modules/entities/lib/decode_codepoint.js
|
|
333
|
-
var U0 = L((
|
|
333
|
+
var U0 = L((be) => {
|
|
334
334
|
"use strict";
|
|
335
|
-
var
|
|
335
|
+
var Z1 = be && be.__importDefault || function(e) {
|
|
336
336
|
return e && e.__esModule ? e : { default: e };
|
|
337
337
|
};
|
|
338
|
-
Object.defineProperty(
|
|
339
|
-
var F0 =
|
|
338
|
+
Object.defineProperty(be, "__esModule", { value: !0 });
|
|
339
|
+
var F0 = Z1(j0()), J1 = (
|
|
340
340
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
341
341
|
String.fromCodePoint || function(e) {
|
|
342
342
|
var t = "";
|
|
@@ -344,28 +344,28 @@ var U0 = L((Ee) => {
|
|
|
344
344
|
t;
|
|
345
345
|
}
|
|
346
346
|
);
|
|
347
|
-
function
|
|
348
|
-
return e >= 55296 && e <= 57343 || e > 1114111 ? "\uFFFD" : (e in F0.default && (e = F0.default[e]),
|
|
347
|
+
function Q1(e) {
|
|
348
|
+
return e >= 55296 && e <= 57343 || e > 1114111 ? "\uFFFD" : (e in F0.default && (e = F0.default[e]), J1(e));
|
|
349
349
|
}
|
|
350
|
-
l(
|
|
351
|
-
|
|
350
|
+
l(Q1, "decodeCodePoint");
|
|
351
|
+
be.default = Q1;
|
|
352
352
|
});
|
|
353
353
|
|
|
354
354
|
// ../node_modules/ansi-to-html/node_modules/entities/lib/decode.js
|
|
355
|
-
var
|
|
355
|
+
var a0 = L((X) => {
|
|
356
356
|
"use strict";
|
|
357
357
|
var He = X && X.__importDefault || function(e) {
|
|
358
358
|
return e && e.__esModule ? e : { default: e };
|
|
359
359
|
};
|
|
360
360
|
Object.defineProperty(X, "__esModule", { value: !0 });
|
|
361
361
|
X.decodeHTML = X.decodeHTMLStrict = X.decodeXML = void 0;
|
|
362
|
-
var
|
|
363
|
-
X.decodeXML = W0(
|
|
364
|
-
X.decodeHTMLStrict = W0(
|
|
362
|
+
var r0 = He(e0()), e5 = He(N0()), t5 = He(t0()), $0 = He(U0()), r5 = /&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;
|
|
363
|
+
X.decodeXML = W0(t5.default);
|
|
364
|
+
X.decodeHTMLStrict = W0(r0.default);
|
|
365
365
|
function W0(e) {
|
|
366
366
|
var t = X0(e);
|
|
367
367
|
return function(r) {
|
|
368
|
-
return String(r).replace(
|
|
368
|
+
return String(r).replace(r5, t);
|
|
369
369
|
};
|
|
370
370
|
}
|
|
371
371
|
l(W0, "getStrictDecoder");
|
|
@@ -373,9 +373,9 @@ var r0 = L((X) => {
|
|
|
373
373
|
return e < t ? 1 : -1;
|
|
374
374
|
}, "sorter");
|
|
375
375
|
X.decodeHTML = function() {
|
|
376
|
-
for (var e = Object.keys(
|
|
376
|
+
for (var e = Object.keys(e5.default).sort(G0), t = Object.keys(r0.default).sort(G0), r = 0, a = 0; r < t.length; r++)
|
|
377
377
|
e[a] === t[r] ? (t[r] += ";?", a++) : t[r] += ";";
|
|
378
|
-
var n = new RegExp("&(?:" + t.join("|") + "|#[xX][\\da-fA-F]+;?|#\\d+;?)", "g"), o = X0(
|
|
378
|
+
var n = new RegExp("&(?:" + t.join("|") + "|#[xX][\\da-fA-F]+;?|#\\d+;?)", "g"), o = X0(r0.default);
|
|
379
379
|
function c(i) {
|
|
380
380
|
return i.substr(-1) !== ";" && (i += ";"), o(i);
|
|
381
381
|
}
|
|
@@ -396,18 +396,18 @@ var r0 = L((X) => {
|
|
|
396
396
|
});
|
|
397
397
|
|
|
398
398
|
// ../node_modules/ansi-to-html/node_modules/entities/lib/encode.js
|
|
399
|
-
var
|
|
399
|
+
var n0 = L((j) => {
|
|
400
400
|
"use strict";
|
|
401
401
|
var Y0 = j && j.__importDefault || function(e) {
|
|
402
402
|
return e && e.__esModule ? e : { default: e };
|
|
403
403
|
};
|
|
404
404
|
Object.defineProperty(j, "__esModule", { value: !0 });
|
|
405
405
|
j.escapeUTF8 = j.escape = j.encodeNonAsciiHTML = j.encodeHTML = j.encodeXML = void 0;
|
|
406
|
-
var
|
|
406
|
+
var a5 = Y0(t0()), K0 = J0(a5.default), Z0 = Q0(K0);
|
|
407
407
|
j.encodeXML = rt(K0);
|
|
408
|
-
var
|
|
409
|
-
j.encodeHTML =
|
|
410
|
-
j.encodeNonAsciiHTML = rt(
|
|
408
|
+
var l5 = Y0(e0()), l0 = J0(l5.default), n5 = Q0(l0);
|
|
409
|
+
j.encodeHTML = c5(l0, n5);
|
|
410
|
+
j.encodeNonAsciiHTML = rt(l0);
|
|
411
411
|
function J0(e) {
|
|
412
412
|
return Object.keys(e).sort().reduce(function(t, r) {
|
|
413
413
|
return t[e[r]] = "&" + r + ";", t;
|
|
@@ -430,7 +430,7 @@ var l0 = L((j) => {
|
|
|
430
430
|
}
|
|
431
431
|
l(Q0, "getInverseReplacer");
|
|
432
432
|
var et = /(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,
|
|
433
|
-
|
|
433
|
+
o5 = (
|
|
434
434
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
435
435
|
String.prototype.codePointAt != null ? (
|
|
436
436
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
@@ -445,28 +445,28 @@ var l0 = L((j) => {
|
|
|
445
445
|
)
|
|
446
446
|
);
|
|
447
447
|
function Se(e) {
|
|
448
|
-
return "&#x" + (e.length > 1 ?
|
|
448
|
+
return "&#x" + (e.length > 1 ? o5(e) : e.charCodeAt(0)).toString(16).toUpperCase() + ";";
|
|
449
449
|
}
|
|
450
450
|
l(Se, "singleCharReplacer");
|
|
451
|
-
function
|
|
451
|
+
function c5(e, t) {
|
|
452
452
|
return function(r) {
|
|
453
453
|
return r.replace(t, function(a) {
|
|
454
454
|
return e[a];
|
|
455
455
|
}).replace(et, Se);
|
|
456
456
|
};
|
|
457
457
|
}
|
|
458
|
-
l(
|
|
458
|
+
l(c5, "getInverse");
|
|
459
459
|
var tt = new RegExp(Z0.source + "|" + et.source, "g");
|
|
460
|
-
function
|
|
460
|
+
function i5(e) {
|
|
461
461
|
return e.replace(tt, Se);
|
|
462
462
|
}
|
|
463
|
-
l(
|
|
464
|
-
j.escape =
|
|
465
|
-
function
|
|
463
|
+
l(i5, "escape");
|
|
464
|
+
j.escape = i5;
|
|
465
|
+
function s5(e) {
|
|
466
466
|
return e.replace(Z0, Se);
|
|
467
467
|
}
|
|
468
|
-
l(
|
|
469
|
-
j.escapeUTF8 =
|
|
468
|
+
l(s5, "escapeUTF8");
|
|
469
|
+
j.escapeUTF8 = s5;
|
|
470
470
|
function rt(e) {
|
|
471
471
|
return function(t) {
|
|
472
472
|
return t.replace(tt, function(r) {
|
|
@@ -484,23 +484,23 @@ var lt = L((g) => {
|
|
|
484
484
|
g.decodeXMLStrict = g.decodeHTML5Strict = g.decodeHTML4Strict = g.decodeHTML5 = g.decodeHTML4 = g.decodeHTMLStrict = g.decodeHTML = g.decodeXML =
|
|
485
485
|
g.encodeHTML5 = g.encodeHTML4 = g.escapeUTF8 = g.escape = g.encodeNonAsciiHTML = g.encodeHTML = g.encodeXML = g.encode = g.decodeStrict = g.
|
|
486
486
|
decode = void 0;
|
|
487
|
-
var Be =
|
|
488
|
-
function
|
|
487
|
+
var Be = a0(), at = n0();
|
|
488
|
+
function d5(e, t) {
|
|
489
489
|
return (!t || t <= 0 ? Be.decodeXML : Be.decodeHTML)(e);
|
|
490
490
|
}
|
|
491
|
-
l(
|
|
492
|
-
g.decode =
|
|
493
|
-
function
|
|
491
|
+
l(d5, "decode");
|
|
492
|
+
g.decode = d5;
|
|
493
|
+
function f5(e, t) {
|
|
494
494
|
return (!t || t <= 0 ? Be.decodeXML : Be.decodeHTMLStrict)(e);
|
|
495
495
|
}
|
|
496
|
-
l(
|
|
497
|
-
g.decodeStrict =
|
|
498
|
-
function
|
|
496
|
+
l(f5, "decodeStrict");
|
|
497
|
+
g.decodeStrict = f5;
|
|
498
|
+
function h5(e, t) {
|
|
499
499
|
return (!t || t <= 0 ? at.encodeXML : at.encodeHTML)(e);
|
|
500
500
|
}
|
|
501
|
-
l(
|
|
502
|
-
g.encode =
|
|
503
|
-
var fe =
|
|
501
|
+
l(h5, "encode");
|
|
502
|
+
g.encode = h5;
|
|
503
|
+
var fe = n0();
|
|
504
504
|
Object.defineProperty(g, "encodeXML", { enumerable: !0, get: /* @__PURE__ */ l(function() {
|
|
505
505
|
return fe.encodeXML;
|
|
506
506
|
}, "get") });
|
|
@@ -522,7 +522,7 @@ var lt = L((g) => {
|
|
|
522
522
|
Object.defineProperty(g, "encodeHTML5", { enumerable: !0, get: /* @__PURE__ */ l(function() {
|
|
523
523
|
return fe.encodeHTML;
|
|
524
524
|
}, "get") });
|
|
525
|
-
var re =
|
|
525
|
+
var re = a0();
|
|
526
526
|
Object.defineProperty(g, "decodeXML", { enumerable: !0, get: /* @__PURE__ */ l(function() {
|
|
527
527
|
return re.decodeXML;
|
|
528
528
|
}, "get") });
|
|
@@ -550,13 +550,13 @@ var lt = L((g) => {
|
|
|
550
550
|
});
|
|
551
551
|
|
|
552
552
|
// ../node_modules/ansi-to-html/lib/ansi_to_html.js
|
|
553
|
-
var vt = L((
|
|
553
|
+
var vt = L((fl, pt) => {
|
|
554
554
|
"use strict";
|
|
555
|
-
function
|
|
555
|
+
function u5(e, t) {
|
|
556
556
|
if (!(e instanceof t))
|
|
557
557
|
throw new TypeError("Cannot call a class as a function");
|
|
558
558
|
}
|
|
559
|
-
l(
|
|
559
|
+
l(u5, "_classCallCheck");
|
|
560
560
|
function nt(e, t) {
|
|
561
561
|
for (var r = 0; r < t.length; r++) {
|
|
562
562
|
var a = t[r];
|
|
@@ -564,14 +564,14 @@ var vt = L((sl, pt) => {
|
|
|
564
564
|
}
|
|
565
565
|
}
|
|
566
566
|
l(nt, "_defineProperties");
|
|
567
|
-
function
|
|
567
|
+
function p5(e, t, r) {
|
|
568
568
|
return t && nt(e.prototype, t), r && nt(e, r), e;
|
|
569
569
|
}
|
|
570
|
-
l(
|
|
570
|
+
l(p5, "_createClass");
|
|
571
571
|
function ft(e, t) {
|
|
572
572
|
var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
573
573
|
if (!r) {
|
|
574
|
-
if (Array.isArray(e) || (r =
|
|
574
|
+
if (Array.isArray(e) || (r = v5(e)) || t && e && typeof e.length == "number") {
|
|
575
575
|
r && (e = r);
|
|
576
576
|
var a = 0, n = /* @__PURE__ */ l(function() {
|
|
577
577
|
}, "F");
|
|
@@ -601,7 +601,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
601
601
|
}, "f") };
|
|
602
602
|
}
|
|
603
603
|
l(ft, "_createForOfIteratorHelper");
|
|
604
|
-
function
|
|
604
|
+
function v5(e, t) {
|
|
605
605
|
if (e) {
|
|
606
606
|
if (typeof e == "string") return ot(e, t);
|
|
607
607
|
var r = Object.prototype.toString.call(e).slice(8, -1);
|
|
@@ -609,7 +609,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
609
609
|
if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return ot(e, t);
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
|
-
l(
|
|
612
|
+
l(v5, "_unsupportedIterableToArray");
|
|
613
613
|
function ot(e, t) {
|
|
614
614
|
(t == null || t > e.length) && (t = e.length);
|
|
615
615
|
for (var r = 0, a = new Array(t); r < t; r++)
|
|
@@ -617,15 +617,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
617
617
|
return a;
|
|
618
618
|
}
|
|
619
619
|
l(ot, "_arrayLikeToArray");
|
|
620
|
-
var
|
|
620
|
+
var m5 = lt(), ct = {
|
|
621
621
|
fg: "#FFF",
|
|
622
622
|
bg: "#000",
|
|
623
623
|
newline: !1,
|
|
624
624
|
escapeXML: !1,
|
|
625
625
|
stream: !1,
|
|
626
|
-
colors:
|
|
626
|
+
colors: w5()
|
|
627
627
|
};
|
|
628
|
-
function
|
|
628
|
+
function w5() {
|
|
629
629
|
var e = {
|
|
630
630
|
0: "#000",
|
|
631
631
|
1: "#A00",
|
|
@@ -647,7 +647,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
647
647
|
return Te(0, 5).forEach(function(t) {
|
|
648
648
|
Te(0, 5).forEach(function(r) {
|
|
649
649
|
Te(0, 5).forEach(function(a) {
|
|
650
|
-
return
|
|
650
|
+
return g5(t, r, a, e);
|
|
651
651
|
});
|
|
652
652
|
});
|
|
653
653
|
}), Te(0, 23).forEach(function(t) {
|
|
@@ -655,19 +655,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
655
655
|
e[r] = "#" + a + a + a;
|
|
656
656
|
}), e;
|
|
657
657
|
}
|
|
658
|
-
l(
|
|
659
|
-
function
|
|
658
|
+
l(w5, "getDefaultColors");
|
|
659
|
+
function g5(e, t, r, a) {
|
|
660
660
|
var n = 16 + e * 36 + t * 6 + r, o = e > 0 ? e * 40 + 55 : 0, c = t > 0 ? t * 40 + 55 : 0, i = r > 0 ? r * 40 + 55 : 0;
|
|
661
|
-
a[n] =
|
|
661
|
+
a[n] = R5([o, c, i]);
|
|
662
662
|
}
|
|
663
|
-
l(
|
|
663
|
+
l(g5, "setStyleColor");
|
|
664
664
|
function ht(e) {
|
|
665
665
|
for (var t = e.toString(16); t.length < 2; )
|
|
666
666
|
t = "0" + t;
|
|
667
667
|
return t;
|
|
668
668
|
}
|
|
669
669
|
l(ht, "toHexString");
|
|
670
|
-
function
|
|
670
|
+
function R5(e) {
|
|
671
671
|
var t = [], r = ft(e), a;
|
|
672
672
|
try {
|
|
673
673
|
for (r.s(); !(a = r.n()).done; ) {
|
|
@@ -681,22 +681,22 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
681
681
|
}
|
|
682
682
|
return "#" + t.join("");
|
|
683
683
|
}
|
|
684
|
-
l(
|
|
684
|
+
l(R5, "toColorHexString");
|
|
685
685
|
function it(e, t, r, a) {
|
|
686
686
|
var n;
|
|
687
|
-
return t === "text" ? n =
|
|
688
|
-
erm256Background" ? n =
|
|
687
|
+
return t === "text" ? n = C5(r, a) : t === "display" ? n = b5(e, r, a) : t === "xterm256Foreground" ? n = ke(e, a.colors[r]) : t === "xt\
|
|
688
|
+
erm256Background" ? n = Ve(e, a.colors[r]) : t === "rgb" && (n = E5(e, r)), n;
|
|
689
689
|
}
|
|
690
690
|
l(it, "generateOutput");
|
|
691
|
-
function
|
|
691
|
+
function E5(e, t) {
|
|
692
692
|
t = t.substring(2).slice(0, -1);
|
|
693
693
|
var r = +t.substr(0, 2), a = t.substring(5).split(";"), n = a.map(function(o) {
|
|
694
694
|
return ("0" + Number(o).toString(16)).substr(-2);
|
|
695
695
|
}).join("");
|
|
696
|
-
return
|
|
696
|
+
return _e(e, (r === 38 ? "color:#" : "background-color:#") + n);
|
|
697
697
|
}
|
|
698
|
-
l(
|
|
699
|
-
function
|
|
698
|
+
l(E5, "handleRgb");
|
|
699
|
+
function b5(e, t, r) {
|
|
700
700
|
t = parseInt(t, 10);
|
|
701
701
|
var a = {
|
|
702
702
|
"-1": /* @__PURE__ */ l(function() {
|
|
@@ -715,13 +715,13 @@ erm256Background" ? n = _e(e, a.colors[r]) : t === "rgb" && (n = R5(e, r)), n;
|
|
|
715
715
|
return ae(e, "u");
|
|
716
716
|
}, "_"),
|
|
717
717
|
8: /* @__PURE__ */ l(function() {
|
|
718
|
-
return
|
|
718
|
+
return _e(e, "display:none");
|
|
719
719
|
}, "_"),
|
|
720
720
|
9: /* @__PURE__ */ l(function() {
|
|
721
721
|
return ae(e, "strike");
|
|
722
722
|
}, "_"),
|
|
723
723
|
22: /* @__PURE__ */ l(function() {
|
|
724
|
-
return
|
|
724
|
+
return _e(e, "font-weight:normal;text-decoration:none;font-style:normal");
|
|
725
725
|
}, "_"),
|
|
726
726
|
23: /* @__PURE__ */ l(function() {
|
|
727
727
|
return dt(e, "i");
|
|
@@ -730,20 +730,20 @@ erm256Background" ? n = _e(e, a.colors[r]) : t === "rgb" && (n = R5(e, r)), n;
|
|
|
730
730
|
return dt(e, "u");
|
|
731
731
|
}, "_"),
|
|
732
732
|
39: /* @__PURE__ */ l(function() {
|
|
733
|
-
return
|
|
733
|
+
return ke(e, r.fg);
|
|
734
734
|
}, "_"),
|
|
735
735
|
49: /* @__PURE__ */ l(function() {
|
|
736
|
-
return
|
|
736
|
+
return Ve(e, r.bg);
|
|
737
737
|
}, "_"),
|
|
738
738
|
53: /* @__PURE__ */ l(function() {
|
|
739
|
-
return
|
|
739
|
+
return _e(e, "text-decoration:overline");
|
|
740
740
|
}, "_")
|
|
741
741
|
}, n;
|
|
742
|
-
return a[t] ? n = a[t]() : 4 < t && t < 7 ? n = ae(e, "blink") : 29 < t && t < 38 ? n =
|
|
743
|
-
|
|
742
|
+
return a[t] ? n = a[t]() : 4 < t && t < 7 ? n = ae(e, "blink") : 29 < t && t < 38 ? n = ke(e, r.colors[t - 30]) : 39 < t && t < 48 ? n =
|
|
743
|
+
Ve(e, r.colors[t - 40]) : 89 < t && t < 98 ? n = ke(e, r.colors[8 + (t - 90)]) : 99 < t && t < 108 && (n = Ve(e, r.colors[8 + (t - 100)])),
|
|
744
744
|
n;
|
|
745
745
|
}
|
|
746
|
-
l(
|
|
746
|
+
l(b5, "handleDisplay");
|
|
747
747
|
function ut(e) {
|
|
748
748
|
var t = e.slice(0);
|
|
749
749
|
return e.length = 0, t.reverse().map(function(r) {
|
|
@@ -757,12 +757,12 @@ erm256Background" ? n = _e(e, a.colors[r]) : t === "rgb" && (n = R5(e, r)), n;
|
|
|
757
757
|
return r;
|
|
758
758
|
}
|
|
759
759
|
l(Te, "range");
|
|
760
|
-
function
|
|
760
|
+
function x5(e) {
|
|
761
761
|
return function(t) {
|
|
762
762
|
return (e === null || t.category !== e) && e !== "all";
|
|
763
763
|
};
|
|
764
764
|
}
|
|
765
|
-
l(
|
|
765
|
+
l(x5, "notCategory");
|
|
766
766
|
function st(e) {
|
|
767
767
|
e = parseInt(e, 10);
|
|
768
768
|
var t = null;
|
|
@@ -771,33 +771,33 @@ e" : e === 9 ? t = "strike" : 29 < e && e < 38 || e === 39 || 89 < e && e < 98 ?
|
|
|
771
771
|
e && e < 108) && (t = "background-color"), t;
|
|
772
772
|
}
|
|
773
773
|
l(st, "categoryForCode");
|
|
774
|
-
function
|
|
775
|
-
return t.escapeXML ?
|
|
774
|
+
function C5(e, t) {
|
|
775
|
+
return t.escapeXML ? m5.encodeXML(e) : e;
|
|
776
776
|
}
|
|
777
|
-
l(
|
|
777
|
+
l(C5, "pushText");
|
|
778
778
|
function ae(e, t, r) {
|
|
779
779
|
return r || (r = ""), e.push(t), "<".concat(t).concat(r ? ' style="'.concat(r, '"') : "", ">");
|
|
780
780
|
}
|
|
781
781
|
l(ae, "pushTag");
|
|
782
|
-
function
|
|
782
|
+
function _e(e, t) {
|
|
783
783
|
return ae(e, "span", t);
|
|
784
784
|
}
|
|
785
|
-
l(
|
|
786
|
-
function
|
|
785
|
+
l(_e, "pushStyle");
|
|
786
|
+
function ke(e, t) {
|
|
787
787
|
return ae(e, "span", "color:" + t);
|
|
788
788
|
}
|
|
789
|
-
l(
|
|
790
|
-
function
|
|
789
|
+
l(ke, "pushForegroundColor");
|
|
790
|
+
function Ve(e, t) {
|
|
791
791
|
return ae(e, "span", "background-color:" + t);
|
|
792
792
|
}
|
|
793
|
-
l(
|
|
793
|
+
l(Ve, "pushBackgroundColor");
|
|
794
794
|
function dt(e, t) {
|
|
795
795
|
var r;
|
|
796
796
|
if (e.slice(-1)[0] === t && (r = e.pop()), r)
|
|
797
797
|
return "</" + t + ">";
|
|
798
798
|
}
|
|
799
799
|
l(dt, "closeTag");
|
|
800
|
-
function
|
|
800
|
+
function M5(e, t, r) {
|
|
801
801
|
var a = !1, n = 3;
|
|
802
802
|
function o() {
|
|
803
803
|
return "";
|
|
@@ -817,16 +817,16 @@ e" : e === 9 ? t = "strike" : 29 < e && e < 38 || e === 39 || 89 < e && e < 98 ?
|
|
|
817
817
|
l(s, "newline");
|
|
818
818
|
function h(O, H) {
|
|
819
819
|
a = !0, H.trim().length === 0 && (H = "0"), H = H.trimRight(";").split(";");
|
|
820
|
-
var
|
|
820
|
+
var k = ft(H), ie;
|
|
821
821
|
try {
|
|
822
|
-
for (
|
|
822
|
+
for (k.s(); !(ie = k.n()).done; ) {
|
|
823
823
|
var ge = ie.value;
|
|
824
824
|
r("display", ge);
|
|
825
825
|
}
|
|
826
826
|
} catch (Re) {
|
|
827
|
-
|
|
827
|
+
k.e(Re);
|
|
828
828
|
} finally {
|
|
829
|
-
|
|
829
|
+
k.f();
|
|
830
830
|
}
|
|
831
831
|
return "";
|
|
832
832
|
}
|
|
@@ -903,36 +903,36 @@ e" : e === 9 ? t = "strike" : 29 < e && e < 38 || e === 39 || 89 < e && e < 98 ?
|
|
|
903
903
|
H > n && a || (a = !1, e = e.replace(O.pattern, O.sub));
|
|
904
904
|
}
|
|
905
905
|
l(M, "process");
|
|
906
|
-
var T = [], B = e,
|
|
907
|
-
e: for (;
|
|
908
|
-
for (var
|
|
909
|
-
var ee = u[
|
|
910
|
-
if (M(ee,
|
|
911
|
-
|
|
906
|
+
var T = [], B = e, z = B.length;
|
|
907
|
+
e: for (; z > 0; ) {
|
|
908
|
+
for (var _ = 0, K = 0, Q = u.length; K < Q; _ = ++K) {
|
|
909
|
+
var ee = u[_];
|
|
910
|
+
if (M(ee, _), e.length !== z) {
|
|
911
|
+
z = e.length;
|
|
912
912
|
continue e;
|
|
913
913
|
}
|
|
914
914
|
}
|
|
915
|
-
if (e.length ===
|
|
915
|
+
if (e.length === z)
|
|
916
916
|
break;
|
|
917
|
-
T.push(0),
|
|
917
|
+
T.push(0), z = e.length;
|
|
918
918
|
}
|
|
919
919
|
return T;
|
|
920
920
|
}
|
|
921
|
-
l(
|
|
922
|
-
function
|
|
923
|
-
return t !== "text" && (e = e.filter(
|
|
921
|
+
l(M5, "tokenize");
|
|
922
|
+
function y5(e, t, r) {
|
|
923
|
+
return t !== "text" && (e = e.filter(x5(st(r))), e.push({
|
|
924
924
|
token: t,
|
|
925
925
|
data: r,
|
|
926
926
|
category: st(r)
|
|
927
927
|
})), e;
|
|
928
928
|
}
|
|
929
|
-
l(
|
|
930
|
-
var
|
|
929
|
+
l(y5, "updateStickyStack");
|
|
930
|
+
var I5 = /* @__PURE__ */ function() {
|
|
931
931
|
function e(t) {
|
|
932
|
-
|
|
932
|
+
u5(this, e), t = t || {}, t.colors && (t.colors = Object.assign({}, ct.colors, t.colors)), this.options = Object.assign({}, ct, t), this.
|
|
933
933
|
stack = [], this.stickyStack = [];
|
|
934
934
|
}
|
|
935
|
-
return l(e, "Filter"),
|
|
935
|
+
return l(e, "Filter"), p5(e, [{
|
|
936
936
|
key: "toHtml",
|
|
937
937
|
value: /* @__PURE__ */ l(function(r) {
|
|
938
938
|
var a = this;
|
|
@@ -941,34 +941,34 @@ e" : e === 9 ? t = "strike" : 29 < e && e < 38 || e === 39 || 89 < e && e < 98 ?
|
|
|
941
941
|
return this.stickyStack.forEach(function(i) {
|
|
942
942
|
var s = it(n, i.token, i.data, o);
|
|
943
943
|
s && c.push(s);
|
|
944
|
-
}),
|
|
944
|
+
}), M5(r.join(""), o, function(i, s) {
|
|
945
945
|
var h = it(n, i, s, o);
|
|
946
|
-
h && c.push(h), o.stream && (a.stickyStack =
|
|
946
|
+
h && c.push(h), o.stream && (a.stickyStack = y5(a.stickyStack, i, s));
|
|
947
947
|
}), n.length && c.push(ut(n)), c.join("");
|
|
948
948
|
}, "toHtml")
|
|
949
949
|
}]), e;
|
|
950
950
|
}();
|
|
951
|
-
pt.exports =
|
|
951
|
+
pt.exports = I5;
|
|
952
952
|
});
|
|
953
953
|
|
|
954
954
|
// ../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/extends.js
|
|
955
|
-
var Oe = L((
|
|
956
|
-
function
|
|
957
|
-
return
|
|
955
|
+
var Oe = L((Bl, f0) => {
|
|
956
|
+
function d0() {
|
|
957
|
+
return f0.exports = d0 = Object.assign || function(e) {
|
|
958
958
|
for (var t = 1; t < arguments.length; t++) {
|
|
959
959
|
var r = arguments[t];
|
|
960
960
|
for (var a in r)
|
|
961
961
|
Object.prototype.hasOwnProperty.call(r, a) && (e[a] = r[a]);
|
|
962
962
|
}
|
|
963
963
|
return e;
|
|
964
|
-
},
|
|
964
|
+
}, d0.apply(this, arguments);
|
|
965
965
|
}
|
|
966
|
-
l(
|
|
967
|
-
|
|
966
|
+
l(d0, "_extends");
|
|
967
|
+
f0.exports = d0;
|
|
968
968
|
});
|
|
969
969
|
|
|
970
970
|
// ../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js
|
|
971
|
-
var Bt = L((
|
|
971
|
+
var Bt = L((_l, St) => {
|
|
972
972
|
function V5(e, t) {
|
|
973
973
|
if (e == null) return {};
|
|
974
974
|
var r = {}, a = Object.keys(e), n, o;
|
|
@@ -981,11 +981,11 @@ var Bt = L((Bl, St) => {
|
|
|
981
981
|
});
|
|
982
982
|
|
|
983
983
|
// ../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/objectWithoutProperties.js
|
|
984
|
-
var De = L((
|
|
985
|
-
var
|
|
986
|
-
function
|
|
984
|
+
var De = L((Vl, Tt) => {
|
|
985
|
+
var O5 = Bt();
|
|
986
|
+
function D5(e, t) {
|
|
987
987
|
if (e == null) return {};
|
|
988
|
-
var r =
|
|
988
|
+
var r = O5(e, t), a, n;
|
|
989
989
|
if (Object.getOwnPropertySymbols) {
|
|
990
990
|
var o = Object.getOwnPropertySymbols(e);
|
|
991
991
|
for (n = 0; n < o.length; n++)
|
|
@@ -993,13 +993,13 @@ var De = L((kl, Tt) => {
|
|
|
993
993
|
}
|
|
994
994
|
return r;
|
|
995
995
|
}
|
|
996
|
-
l(
|
|
997
|
-
Tt.exports =
|
|
996
|
+
l(D5, "_objectWithoutProperties");
|
|
997
|
+
Tt.exports = D5;
|
|
998
998
|
});
|
|
999
999
|
|
|
1000
1000
|
// ../node_modules/@devtools-ds/themes/node_modules/@babel/runtime/helpers/defineProperty.js
|
|
1001
|
-
var
|
|
1002
|
-
function
|
|
1001
|
+
var Vt = L((jl, kt) => {
|
|
1002
|
+
function q5(e, t, r) {
|
|
1003
1003
|
return t in e ? Object.defineProperty(e, t, {
|
|
1004
1004
|
value: r,
|
|
1005
1005
|
enumerable: !0,
|
|
@@ -1007,13 +1007,13 @@ var _t = L((ql, Vt) => {
|
|
|
1007
1007
|
writable: !0
|
|
1008
1008
|
}) : e[t] = r, e;
|
|
1009
1009
|
}
|
|
1010
|
-
l(
|
|
1011
|
-
|
|
1010
|
+
l(q5, "_defineProperty");
|
|
1011
|
+
kt.exports = q5;
|
|
1012
1012
|
});
|
|
1013
1013
|
|
|
1014
1014
|
// ../node_modules/@devtools-ds/themes/node_modules/@babel/runtime/helpers/objectSpread2.js
|
|
1015
|
-
var Pt = L((
|
|
1016
|
-
var
|
|
1015
|
+
var Pt = L((Ul, Dt) => {
|
|
1016
|
+
var N5 = Vt();
|
|
1017
1017
|
function Ot(e, t) {
|
|
1018
1018
|
var r = Object.keys(e);
|
|
1019
1019
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -1025,40 +1025,40 @@ var Pt = L((jl, Dt) => {
|
|
|
1025
1025
|
return r;
|
|
1026
1026
|
}
|
|
1027
1027
|
l(Ot, "ownKeys");
|
|
1028
|
-
function
|
|
1028
|
+
function j5(e) {
|
|
1029
1029
|
for (var t = 1; t < arguments.length; t++) {
|
|
1030
1030
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
1031
1031
|
t % 2 ? Ot(r, !0).forEach(function(a) {
|
|
1032
|
-
|
|
1032
|
+
N5(e, a, r[a]);
|
|
1033
1033
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Ot(r).forEach(function(a) {
|
|
1034
1034
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(r, a));
|
|
1035
1035
|
});
|
|
1036
1036
|
}
|
|
1037
1037
|
return e;
|
|
1038
1038
|
}
|
|
1039
|
-
l(
|
|
1040
|
-
Dt.exports =
|
|
1039
|
+
l(j5, "_objectSpread2");
|
|
1040
|
+
Dt.exports = j5;
|
|
1041
1041
|
});
|
|
1042
1042
|
|
|
1043
1043
|
// ../node_modules/@devtools-ds/themes/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js
|
|
1044
|
-
var Nt = L((
|
|
1045
|
-
function
|
|
1044
|
+
var Nt = L((Gl, qt) => {
|
|
1045
|
+
function F5(e, t) {
|
|
1046
1046
|
if (e == null) return {};
|
|
1047
1047
|
var r = {}, a = Object.keys(e), n, o;
|
|
1048
1048
|
for (o = 0; o < a.length; o++)
|
|
1049
1049
|
n = a[o], !(t.indexOf(n) >= 0) && (r[n] = e[n]);
|
|
1050
1050
|
return r;
|
|
1051
1051
|
}
|
|
1052
|
-
l(
|
|
1053
|
-
qt.exports =
|
|
1052
|
+
l(F5, "_objectWithoutPropertiesLoose");
|
|
1053
|
+
qt.exports = F5;
|
|
1054
1054
|
});
|
|
1055
1055
|
|
|
1056
1056
|
// ../node_modules/@devtools-ds/themes/node_modules/@babel/runtime/helpers/objectWithoutProperties.js
|
|
1057
|
-
var Ft = L((
|
|
1058
|
-
var
|
|
1059
|
-
function
|
|
1057
|
+
var Ft = L((Xl, jt) => {
|
|
1058
|
+
var U5 = Nt();
|
|
1059
|
+
function $5(e, t) {
|
|
1060
1060
|
if (e == null) return {};
|
|
1061
|
-
var r =
|
|
1061
|
+
var r = U5(e, t), a, n;
|
|
1062
1062
|
if (Object.getOwnPropertySymbols) {
|
|
1063
1063
|
var o = Object.getOwnPropertySymbols(e);
|
|
1064
1064
|
for (n = 0; n < o.length; n++)
|
|
@@ -1066,13 +1066,13 @@ var Ft = L((Gl, jt) => {
|
|
|
1066
1066
|
}
|
|
1067
1067
|
return r;
|
|
1068
1068
|
}
|
|
1069
|
-
l(
|
|
1070
|
-
jt.exports =
|
|
1069
|
+
l($5, "_objectWithoutProperties");
|
|
1070
|
+
jt.exports = $5;
|
|
1071
1071
|
});
|
|
1072
1072
|
|
|
1073
1073
|
// ../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/defineProperty.js
|
|
1074
|
-
var Wt = L((
|
|
1075
|
-
function
|
|
1074
|
+
var Wt = L((en, Gt) => {
|
|
1075
|
+
function W5(e, t, r) {
|
|
1076
1076
|
return t in e ? Object.defineProperty(e, t, {
|
|
1077
1077
|
value: r,
|
|
1078
1078
|
enumerable: !0,
|
|
@@ -1080,13 +1080,13 @@ var Wt = L((Jl, Gt) => {
|
|
|
1080
1080
|
writable: !0
|
|
1081
1081
|
}) : e[t] = r, e;
|
|
1082
1082
|
}
|
|
1083
|
-
l(
|
|
1084
|
-
Gt.exports =
|
|
1083
|
+
l(W5, "_defineProperty");
|
|
1084
|
+
Gt.exports = W5;
|
|
1085
1085
|
});
|
|
1086
1086
|
|
|
1087
1087
|
// ../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/objectSpread2.js
|
|
1088
|
-
var Kt = L((
|
|
1089
|
-
var
|
|
1088
|
+
var Kt = L((rn, Yt) => {
|
|
1089
|
+
var X5 = Wt();
|
|
1090
1090
|
function Xt(e, t) {
|
|
1091
1091
|
var r = Object.keys(e);
|
|
1092
1092
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -1098,56 +1098,56 @@ var Kt = L((en, Yt) => {
|
|
|
1098
1098
|
return r;
|
|
1099
1099
|
}
|
|
1100
1100
|
l(Xt, "ownKeys");
|
|
1101
|
-
function
|
|
1101
|
+
function Y5(e) {
|
|
1102
1102
|
for (var t = 1; t < arguments.length; t++) {
|
|
1103
1103
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
1104
1104
|
t % 2 ? Xt(r, !0).forEach(function(a) {
|
|
1105
|
-
|
|
1105
|
+
X5(e, a, r[a]);
|
|
1106
1106
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Xt(r).forEach(function(a) {
|
|
1107
1107
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(r, a));
|
|
1108
1108
|
});
|
|
1109
1109
|
}
|
|
1110
1110
|
return e;
|
|
1111
1111
|
}
|
|
1112
|
-
l(
|
|
1113
|
-
Yt.exports =
|
|
1112
|
+
l(Y5, "_objectSpread2");
|
|
1113
|
+
Yt.exports = Y5;
|
|
1114
1114
|
});
|
|
1115
1115
|
|
|
1116
1116
|
// ../node_modules/@devtools-ds/tree/node_modules/@babel/runtime/helpers/extends.js
|
|
1117
|
-
var Zt = L((
|
|
1118
|
-
function
|
|
1119
|
-
return
|
|
1117
|
+
var Zt = L((ln, R0) => {
|
|
1118
|
+
function g0() {
|
|
1119
|
+
return R0.exports = g0 = Object.assign || function(e) {
|
|
1120
1120
|
for (var t = 1; t < arguments.length; t++) {
|
|
1121
1121
|
var r = arguments[t];
|
|
1122
1122
|
for (var a in r)
|
|
1123
1123
|
Object.prototype.hasOwnProperty.call(r, a) && (e[a] = r[a]);
|
|
1124
1124
|
}
|
|
1125
1125
|
return e;
|
|
1126
|
-
},
|
|
1126
|
+
}, g0.apply(this, arguments);
|
|
1127
1127
|
}
|
|
1128
|
-
l(
|
|
1129
|
-
|
|
1128
|
+
l(g0, "_extends");
|
|
1129
|
+
R0.exports = g0;
|
|
1130
1130
|
});
|
|
1131
1131
|
|
|
1132
1132
|
// ../node_modules/@devtools-ds/tree/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js
|
|
1133
|
-
var Qt = L((
|
|
1134
|
-
function
|
|
1133
|
+
var Qt = L((on, Jt) => {
|
|
1134
|
+
function K5(e, t) {
|
|
1135
1135
|
if (e == null) return {};
|
|
1136
1136
|
var r = {}, a = Object.keys(e), n, o;
|
|
1137
1137
|
for (o = 0; o < a.length; o++)
|
|
1138
1138
|
n = a[o], !(t.indexOf(n) >= 0) && (r[n] = e[n]);
|
|
1139
1139
|
return r;
|
|
1140
1140
|
}
|
|
1141
|
-
l(
|
|
1142
|
-
Jt.exports =
|
|
1141
|
+
l(K5, "_objectWithoutPropertiesLoose");
|
|
1142
|
+
Jt.exports = K5;
|
|
1143
1143
|
});
|
|
1144
1144
|
|
|
1145
1145
|
// ../node_modules/@devtools-ds/tree/node_modules/@babel/runtime/helpers/objectWithoutProperties.js
|
|
1146
|
-
var t1 = L((
|
|
1147
|
-
var
|
|
1148
|
-
function
|
|
1146
|
+
var t1 = L((sn, e1) => {
|
|
1147
|
+
var Z5 = Qt();
|
|
1148
|
+
function J5(e, t) {
|
|
1149
1149
|
if (e == null) return {};
|
|
1150
|
-
var r =
|
|
1150
|
+
var r = Z5(e, t), a, n;
|
|
1151
1151
|
if (Object.getOwnPropertySymbols) {
|
|
1152
1152
|
var o = Object.getOwnPropertySymbols(e);
|
|
1153
1153
|
for (n = 0; n < o.length; n++)
|
|
@@ -1155,54 +1155,81 @@ var t1 = L((on, e1) => {
|
|
|
1155
1155
|
}
|
|
1156
1156
|
return r;
|
|
1157
1157
|
}
|
|
1158
|
-
l(
|
|
1159
|
-
e1.exports =
|
|
1158
|
+
l(J5, "_objectWithoutProperties");
|
|
1159
|
+
e1.exports = J5;
|
|
1160
1160
|
});
|
|
1161
1161
|
|
|
1162
1162
|
// src/component-testing/manager.tsx
|
|
1163
|
-
import
|
|
1164
|
-
import { AddonPanel as
|
|
1165
|
-
import { Consumer as
|
|
1163
|
+
import Xe from "react";
|
|
1164
|
+
import { AddonPanel as ja } from "storybook/internal/components";
|
|
1165
|
+
import { Consumer as Fa, addons as O1, types as Ua } from "storybook/manager-api";
|
|
1166
1166
|
|
|
1167
1167
|
// src/component-testing/components/Panel.tsx
|
|
1168
|
-
import
|
|
1168
|
+
import H0, { Fragment as S1, memo as La, useEffect as S0, useMemo as B1, useRef as B0, useState as T0 } from "react";
|
|
1169
1169
|
import {
|
|
1170
|
-
FORCE_REMOUNT as
|
|
1171
|
-
PLAY_FUNCTION_THREW_EXCEPTION as
|
|
1172
|
-
STORY_RENDER_PHASE_CHANGED as
|
|
1173
|
-
STORY_THREW_EXCEPTION as
|
|
1174
|
-
UNHANDLED_ERRORS_WHILE_PLAYING as
|
|
1170
|
+
FORCE_REMOUNT as Ha,
|
|
1171
|
+
PLAY_FUNCTION_THREW_EXCEPTION as Sa,
|
|
1172
|
+
STORY_RENDER_PHASE_CHANGED as Ba,
|
|
1173
|
+
STORY_THREW_EXCEPTION as Ta,
|
|
1174
|
+
UNHANDLED_ERRORS_WHILE_PLAYING as _a
|
|
1175
1175
|
} from "storybook/internal/core-events";
|
|
1176
1176
|
import { CallStates as U, EVENTS as pe } from "storybook/internal/instrumenter";
|
|
1177
|
-
import { global as
|
|
1177
|
+
import { global as _0 } from "@storybook/global";
|
|
1178
1178
|
import {
|
|
1179
1179
|
experimental_useStatusStore as ka,
|
|
1180
1180
|
useAddonState as Va,
|
|
1181
|
-
useChannel as
|
|
1182
|
-
useParameter as
|
|
1181
|
+
useChannel as Oa,
|
|
1182
|
+
useParameter as Da
|
|
1183
1183
|
} from "storybook/manager-api";
|
|
1184
1184
|
|
|
1185
1185
|
// ../addons/test/src/constants.ts
|
|
1186
|
-
var
|
|
1187
|
-
|
|
1188
|
-
var $1 = {
|
|
1189
|
-
|
|
1186
|
+
var Je = "storybook/test", Ga = `${Je}/test-provider`, Wa = `${Je}/panel`, D0 = "STORYBOOK_ADDON_TEST_CHANNEL", U1 = "storybook/a11y", Xa = `${U1}\
|
|
1187
|
+
/panel`;
|
|
1188
|
+
var $1 = "writing-tests/test-addon", Ya = `${$1}#what-happens-if-vitest-itself-has-an-error`;
|
|
1189
|
+
var G1 = {
|
|
1190
|
+
id: Je,
|
|
1190
1191
|
initialState: {
|
|
1191
1192
|
config: {
|
|
1192
1193
|
coverage: !1,
|
|
1193
1194
|
a11y: !1
|
|
1194
1195
|
},
|
|
1195
|
-
watching: !1
|
|
1196
|
+
watching: !1,
|
|
1197
|
+
cancelling: !1,
|
|
1198
|
+
fatalError: void 0,
|
|
1199
|
+
indexUrl: void 0,
|
|
1200
|
+
currentRun: {
|
|
1201
|
+
triggeredBy: void 0,
|
|
1202
|
+
config: {
|
|
1203
|
+
coverage: !1,
|
|
1204
|
+
a11y: !1
|
|
1205
|
+
},
|
|
1206
|
+
componentTestCount: {
|
|
1207
|
+
success: 0,
|
|
1208
|
+
error: 0
|
|
1209
|
+
},
|
|
1210
|
+
a11yCount: {
|
|
1211
|
+
success: 0,
|
|
1212
|
+
warning: 0,
|
|
1213
|
+
error: 0
|
|
1214
|
+
},
|
|
1215
|
+
storyIds: void 0,
|
|
1216
|
+
totalTestCount: void 0,
|
|
1217
|
+
startedAt: void 0,
|
|
1218
|
+
finishedAt: void 0,
|
|
1219
|
+
unhandledErrors: [],
|
|
1220
|
+
coverageSummary: void 0
|
|
1221
|
+
}
|
|
1196
1222
|
}
|
|
1197
|
-
},
|
|
1223
|
+
}, Ka = `UNIVERSAL_STORE:${G1.id}`;
|
|
1224
|
+
var P0 = "storybook/component-test";
|
|
1198
1225
|
|
|
1199
1226
|
// src/component-testing/constants.ts
|
|
1200
|
-
var de = "storybook/component-tests",
|
|
1227
|
+
var de = "storybook/component-tests", Ee = `${de}/panel`, Qe = "writing-tests/test-addon", q0 = `${Qe}#what-happens-when-there-are-different\
|
|
1201
1228
|
-test-results-in-multiple-environments`;
|
|
1202
1229
|
|
|
1203
1230
|
// src/component-testing/components/InteractionsPanel.tsx
|
|
1204
1231
|
import * as S from "react";
|
|
1205
|
-
import { transparentize as
|
|
1232
|
+
import { transparentize as Ia } from "polished";
|
|
1206
1233
|
import { styled as we } from "storybook/theming";
|
|
1207
1234
|
|
|
1208
1235
|
// src/component-testing/utils.ts
|
|
@@ -1210,54 +1237,54 @@ var mt = G(vt(), 1);
|
|
|
1210
1237
|
import { useTheme as z5 } from "storybook/theming";
|
|
1211
1238
|
|
|
1212
1239
|
// ../node_modules/ansi-regex/index.js
|
|
1213
|
-
function
|
|
1240
|
+
function o0({ onlyFirst: e = !1 } = {}) {
|
|
1214
1241
|
let t = [
|
|
1215
1242
|
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
|
|
1216
1243
|
"(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
|
|
1217
1244
|
].join("|");
|
|
1218
1245
|
return new RegExp(t, e ? void 0 : "g");
|
|
1219
1246
|
}
|
|
1220
|
-
l(
|
|
1247
|
+
l(o0, "ansiRegex");
|
|
1221
1248
|
|
|
1222
1249
|
// ../node_modules/strip-ansi/index.js
|
|
1223
|
-
var
|
|
1224
|
-
function
|
|
1250
|
+
var A5 = o0();
|
|
1251
|
+
function c0(e) {
|
|
1225
1252
|
if (typeof e != "string")
|
|
1226
1253
|
throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);
|
|
1227
|
-
return e.replace(
|
|
1254
|
+
return e.replace(A5, "");
|
|
1228
1255
|
}
|
|
1229
|
-
l(
|
|
1256
|
+
l(c0, "stripAnsi");
|
|
1230
1257
|
|
|
1231
1258
|
// src/component-testing/utils.ts
|
|
1232
1259
|
function wt(e) {
|
|
1233
|
-
return
|
|
1260
|
+
return i0(e) || s0(e);
|
|
1234
1261
|
}
|
|
1235
1262
|
l(wt, "isTestAssertionError");
|
|
1236
|
-
function
|
|
1263
|
+
function i0(e) {
|
|
1237
1264
|
return e && typeof e == "object" && "name" in e && typeof e.name == "string" && e.name === "AssertionError";
|
|
1238
1265
|
}
|
|
1239
|
-
l(
|
|
1240
|
-
function
|
|
1241
|
-
return e && typeof e == "object" && "message" in e && typeof e.message == "string" &&
|
|
1266
|
+
l(i0, "isChaiError");
|
|
1267
|
+
function s0(e) {
|
|
1268
|
+
return e && typeof e == "object" && "message" in e && typeof e.message == "string" && c0(e.message).startsWith("expect(");
|
|
1242
1269
|
}
|
|
1243
|
-
l(
|
|
1244
|
-
function
|
|
1270
|
+
l(s0, "isJestError");
|
|
1271
|
+
function L5(e) {
|
|
1245
1272
|
return new mt.default({
|
|
1246
1273
|
escapeXML: !0,
|
|
1247
1274
|
fg: e.color.defaultText,
|
|
1248
1275
|
bg: e.background.content
|
|
1249
1276
|
});
|
|
1250
1277
|
}
|
|
1251
|
-
l(
|
|
1278
|
+
l(L5, "createAnsiToHtmlFilter");
|
|
1252
1279
|
function ve() {
|
|
1253
1280
|
let e = z5();
|
|
1254
|
-
return
|
|
1281
|
+
return L5(e);
|
|
1255
1282
|
}
|
|
1256
1283
|
l(ve, "useAnsiToHtmlFilter");
|
|
1257
1284
|
|
|
1258
1285
|
// src/component-testing/components/EmptyState.tsx
|
|
1259
|
-
import me, { useEffect as
|
|
1260
|
-
import { EmptyTabContent as
|
|
1286
|
+
import me, { useEffect as H5, useState as S5 } from "react";
|
|
1287
|
+
import { EmptyTabContent as B5, Link as T5 } from "storybook/internal/components";
|
|
1261
1288
|
|
|
1262
1289
|
// ../node_modules/@storybook/icons/dist/index.mjs
|
|
1263
1290
|
import * as E from "react";
|
|
@@ -1443,7 +1470,7 @@ var It = /* @__PURE__ */ E.forwardRef(({ color: e = "currentColor", size: t = 14
|
|
|
1443
1470
|
}
|
|
1444
1471
|
)
|
|
1445
1472
|
));
|
|
1446
|
-
var
|
|
1473
|
+
var At = /* @__PURE__ */ E.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, a) => /* @__PURE__ */ E.createElement(
|
|
1447
1474
|
"svg",
|
|
1448
1475
|
{
|
|
1449
1476
|
width: t,
|
|
@@ -1456,7 +1483,7 @@ var zt = /* @__PURE__ */ E.forwardRef(({ color: e = "currentColor", size: t = 14
|
|
|
1456
1483
|
},
|
|
1457
1484
|
/* @__PURE__ */ E.createElement("path", { d: "M14 7A7 7 0 110 7a7 7 0 0114 0z", fill: e })
|
|
1458
1485
|
));
|
|
1459
|
-
var
|
|
1486
|
+
var zt = /* @__PURE__ */ E.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, a) => /* @__PURE__ */ E.createElement(
|
|
1460
1487
|
"svg",
|
|
1461
1488
|
{
|
|
1462
1489
|
width: t,
|
|
@@ -1479,84 +1506,84 @@ var At = /* @__PURE__ */ E.forwardRef(({ color: e = "currentColor", size: t = 14
|
|
|
1479
1506
|
));
|
|
1480
1507
|
|
|
1481
1508
|
// src/component-testing/components/EmptyState.tsx
|
|
1482
|
-
import { useStorybookApi as
|
|
1509
|
+
import { useStorybookApi as _5 } from "storybook/manager-api";
|
|
1483
1510
|
import { styled as Lt } from "storybook/theming";
|
|
1484
1511
|
var k5 = Lt.div(({ theme: e }) => ({
|
|
1485
1512
|
display: "flex",
|
|
1486
1513
|
fontSize: e.typography.size.s2 - 1,
|
|
1487
1514
|
gap: 25
|
|
1488
|
-
})),
|
|
1515
|
+
})), Ll = Lt.div(({ theme: e }) => ({
|
|
1489
1516
|
width: 1,
|
|
1490
1517
|
height: 16,
|
|
1491
1518
|
backgroundColor: e.appBorderColor
|
|
1492
1519
|
})), Ht = /* @__PURE__ */ l(() => {
|
|
1493
|
-
let [e, t] =
|
|
1494
|
-
subpath:
|
|
1520
|
+
let [e, t] = S5(!0), a = _5().getDocsUrl({
|
|
1521
|
+
subpath: Qe,
|
|
1495
1522
|
versioned: !0,
|
|
1496
1523
|
renderer: !0
|
|
1497
1524
|
});
|
|
1498
|
-
return
|
|
1525
|
+
return H5(() => {
|
|
1499
1526
|
let n = setTimeout(() => {
|
|
1500
1527
|
t(!1);
|
|
1501
1528
|
}, 100);
|
|
1502
1529
|
return () => clearTimeout(n);
|
|
1503
1530
|
}, []), e ? null : /* @__PURE__ */ me.createElement(
|
|
1504
|
-
|
|
1531
|
+
B5,
|
|
1505
1532
|
{
|
|
1506
1533
|
title: "Component testing",
|
|
1507
1534
|
description: /* @__PURE__ */ me.createElement(me.Fragment, null, "Component tests allow you to verify the functional aspects of UIs. W\
|
|
1508
1535
|
rite a play function for your story and you'll see it run here."),
|
|
1509
|
-
footer: /* @__PURE__ */ me.createElement(k5, null, /* @__PURE__ */ me.createElement(
|
|
1536
|
+
footer: /* @__PURE__ */ me.createElement(k5, null, /* @__PURE__ */ me.createElement(T5, { href: a, target: "_blank", withArrow: !0 }, /* @__PURE__ */ me.
|
|
1510
1537
|
createElement(Mt, null), " Read docs"))
|
|
1511
1538
|
}
|
|
1512
1539
|
);
|
|
1513
1540
|
}, "Empty");
|
|
1514
1541
|
|
|
1515
1542
|
// src/component-testing/components/Interaction.tsx
|
|
1516
|
-
import * as
|
|
1517
|
-
import { IconButton as
|
|
1543
|
+
import * as A from "react";
|
|
1544
|
+
import { IconButton as $r, TooltipNote as Gr, WithTooltip as Wr } from "storybook/internal/components";
|
|
1518
1545
|
import { CallStates as ue } from "storybook/internal/instrumenter";
|
|
1519
|
-
import { transparentize as
|
|
1546
|
+
import { transparentize as Xr } from "polished";
|
|
1520
1547
|
import { styled as oe, typography as Ge } from "storybook/theming";
|
|
1521
1548
|
|
|
1522
1549
|
// src/component-testing/components/MatcherResult.tsx
|
|
1523
1550
|
import y from "react";
|
|
1524
|
-
import { styled as w1, typography as
|
|
1551
|
+
import { styled as w1, typography as Dr } from "storybook/theming";
|
|
1525
1552
|
|
|
1526
1553
|
// src/component-testing/components/MethodCall.tsx
|
|
1527
|
-
import d, { Fragment as
|
|
1554
|
+
import d, { Fragment as wr } from "react";
|
|
1528
1555
|
|
|
1529
1556
|
// ../node_modules/@devtools-ds/object-inspector/dist/esm/ObjectInspector.js
|
|
1530
1557
|
var f1 = G(Oe()), h1 = G(De());
|
|
1531
|
-
import
|
|
1558
|
+
import x0, { useEffect as vr, useState as mr } from "react";
|
|
1532
1559
|
|
|
1533
1560
|
// ../node_modules/clsx/dist/clsx.m.js
|
|
1534
|
-
function
|
|
1561
|
+
function h0(e) {
|
|
1535
1562
|
var t, r, a = "";
|
|
1536
1563
|
if (e)
|
|
1537
1564
|
if (typeof e == "object")
|
|
1538
1565
|
if (Array.isArray(e))
|
|
1539
1566
|
for (t = 0; t < e.length; t++)
|
|
1540
|
-
e[t] && (r =
|
|
1567
|
+
e[t] && (r = h0(e[t])) && (a && (a += " "), a += r);
|
|
1541
1568
|
else
|
|
1542
1569
|
for (t in e)
|
|
1543
|
-
e[t] && (r =
|
|
1570
|
+
e[t] && (r = h0(t)) && (a && (a += " "), a += r);
|
|
1544
1571
|
else typeof e != "boolean" && !e.call && (a && (a += " "), a += e);
|
|
1545
1572
|
return a;
|
|
1546
1573
|
}
|
|
1547
|
-
l(
|
|
1574
|
+
l(h0, "toVal");
|
|
1548
1575
|
function P() {
|
|
1549
1576
|
for (var e = 0, t, r = ""; e < arguments.length; )
|
|
1550
|
-
(t =
|
|
1577
|
+
(t = h0(arguments[e++])) && (r && (r += " "), r += t);
|
|
1551
1578
|
return r;
|
|
1552
1579
|
}
|
|
1553
1580
|
l(P, "default");
|
|
1554
1581
|
|
|
1555
1582
|
// ../node_modules/@devtools-ds/object-parser/dist/esm/index.js
|
|
1556
|
-
var
|
|
1557
|
-
ArrayBuffer.isView(e) && !(e instanceof DataView), "isArray"),
|
|
1558
|
-
!(e instanceof Date) && !(e instanceof RegExp) && !(e instanceof Error) && !(e instanceof WeakMap) && !(e instanceof WeakSet), "isObject"),
|
|
1559
|
-
(e) =>
|
|
1583
|
+
var u0 = /* @__PURE__ */ l((e) => Array.isArray(e) || // Detect https://developer.mozilla.org/en-US/docs/Web/JavaScript/Typed_arrays
|
|
1584
|
+
ArrayBuffer.isView(e) && !(e instanceof DataView), "isArray"), p0 = /* @__PURE__ */ l((e) => e !== null && typeof e == "object" && !u0(e) &&
|
|
1585
|
+
!(e instanceof Date) && !(e instanceof RegExp) && !(e instanceof Error) && !(e instanceof WeakMap) && !(e instanceof WeakSet), "isObject"), P5 = /* @__PURE__ */ l(
|
|
1586
|
+
(e) => p0(e) || u0(e) || typeof e == "function" || e instanceof Promise, "isKnownObject"), v0 = /* @__PURE__ */ l((e) => {
|
|
1560
1587
|
let t = /unique/;
|
|
1561
1588
|
return Promise.race([e, t]).then((r) => r === t ? ["pending"] : ["fulfilled", r], (r) => ["rejected", r]);
|
|
1562
1589
|
}, "getPromiseState"), Y = /* @__PURE__ */ l(async (e, t, r, a, n, o) => {
|
|
@@ -1567,9 +1594,9 @@ ArrayBuffer.isView(e) && !(e instanceof DataView), "isArray"), u0 = /* @__PURE__
|
|
|
1567
1594
|
type: "value",
|
|
1568
1595
|
parent: void 0
|
|
1569
1596
|
};
|
|
1570
|
-
if (t &&
|
|
1597
|
+
if (t && P5(t) && r < 100) {
|
|
1571
1598
|
let i = [], s = "object";
|
|
1572
|
-
if (
|
|
1599
|
+
if (u0(t)) {
|
|
1573
1600
|
for (let h = 0; h < t.length; h++)
|
|
1574
1601
|
i.push(async () => {
|
|
1575
1602
|
let f = await Y(h.toString(), t[h], r + 1, a);
|
|
@@ -1591,7 +1618,7 @@ ArrayBuffer.isView(e) && !(e instanceof DataView), "isArray"), u0 = /* @__PURE__
|
|
|
1591
1618
|
});
|
|
1592
1619
|
}
|
|
1593
1620
|
if (typeof t == "function" && (s = "function"), t instanceof Promise) {
|
|
1594
|
-
let [f, w] = await
|
|
1621
|
+
let [f, w] = await v0(t);
|
|
1595
1622
|
i.push(async () => {
|
|
1596
1623
|
let u = await Y("<state>", f, r + 1, a);
|
|
1597
1624
|
return u.parent = c, u;
|
|
@@ -1633,25 +1660,25 @@ ArrayBuffer.isView(e) && !(e instanceof DataView), "isArray"), u0 = /* @__PURE__
|
|
|
1633
1660
|
}), c.type = s, c.children = i, c.isPrototype = n;
|
|
1634
1661
|
}
|
|
1635
1662
|
return c;
|
|
1636
|
-
}, "buildAST"),
|
|
1663
|
+
}, "buildAST"), _t = /* @__PURE__ */ l((e, t, r) => Y("root", e, 0, t === !1 ? t : !0, void 0, r === !1 ? r : !0), "parse");
|
|
1637
1664
|
|
|
1638
1665
|
// ../node_modules/@devtools-ds/themes/dist/esm/utils.js
|
|
1639
|
-
var
|
|
1666
|
+
var m0 = G(Pt()), Ut = G(Ft());
|
|
1640
1667
|
import Pe from "react";
|
|
1641
|
-
var
|
|
1642
|
-
var
|
|
1668
|
+
var G5 = ["children"];
|
|
1669
|
+
var w0 = /* @__PURE__ */ Pe.createContext({
|
|
1643
1670
|
theme: "chrome",
|
|
1644
1671
|
colorScheme: "light"
|
|
1645
1672
|
});
|
|
1646
1673
|
var $t = /* @__PURE__ */ l((e) => {
|
|
1647
1674
|
let {
|
|
1648
1675
|
children: t
|
|
1649
|
-
} = e, r = (0, Ut.default)(e,
|
|
1650
|
-
return /* @__PURE__ */ Pe.createElement(
|
|
1651
|
-
value: (0,
|
|
1676
|
+
} = e, r = (0, Ut.default)(e, G5), a = Pe.useContext(w0);
|
|
1677
|
+
return /* @__PURE__ */ Pe.createElement(w0.Provider, {
|
|
1678
|
+
value: (0, m0.default)((0, m0.default)({}, a), r)
|
|
1652
1679
|
}, t);
|
|
1653
1680
|
}, "ThemeProvider"), le = /* @__PURE__ */ l((e, t = {}) => {
|
|
1654
|
-
let r = Pe.useContext(
|
|
1681
|
+
let r = Pe.useContext(w0), a = e.theme || r.theme || "chrome", n = e.colorScheme || r.colorScheme || "light", o = P(t[a], t[n]);
|
|
1655
1682
|
return {
|
|
1656
1683
|
currentColorScheme: n,
|
|
1657
1684
|
currentTheme: a,
|
|
@@ -1660,20 +1687,20 @@ var $t = /* @__PURE__ */ l((e) => {
|
|
|
1660
1687
|
}, "useTheme");
|
|
1661
1688
|
|
|
1662
1689
|
// ../node_modules/@devtools-ds/object-inspector/dist/esm/ObjectInspectorItem.js
|
|
1663
|
-
var
|
|
1664
|
-
import
|
|
1690
|
+
var E0 = G(Kt());
|
|
1691
|
+
import Me, { useEffect as ur, useState as s1 } from "react";
|
|
1665
1692
|
|
|
1666
1693
|
// ../node_modules/@devtools-ds/tree/dist/esm/index.js
|
|
1667
1694
|
var Ne = G(Zt()), r1 = G(t1());
|
|
1668
|
-
import q, { useState as
|
|
1695
|
+
import q, { useState as rr, useEffect as ar } from "react";
|
|
1669
1696
|
|
|
1670
1697
|
// ../node_modules/@devtools-ds/tree/dist/esm/TreeContext.js
|
|
1671
|
-
import
|
|
1672
|
-
var
|
|
1698
|
+
import Q5 from "react";
|
|
1699
|
+
var er = /* @__PURE__ */ Q5.createContext({
|
|
1673
1700
|
isChild: !1,
|
|
1674
1701
|
depth: 0,
|
|
1675
1702
|
hasHover: !0
|
|
1676
|
-
}), qe =
|
|
1703
|
+
}), qe = er;
|
|
1677
1704
|
|
|
1678
1705
|
// ../node_modules/@devtools-ds/tree/dist/esm/Tree.css.js
|
|
1679
1706
|
var N = { tree: "Tree-tree-fbbbe38", item: "Tree-item-353d6f3", group: "Tree-group-d3c3d8a", label: "Tree-label-d819155", focusWhite: "Tree-\
|
|
@@ -1681,7 +1708,7 @@ focusWhite-f1e00c2", arrow: "Tree-arrow-03ab2e7", hover: "Tree-hover-3cc4e5d", o
|
|
|
1681
1708
|
Tree-chrome-bcbcac6", light: "Tree-light-09174ee" };
|
|
1682
1709
|
|
|
1683
1710
|
// ../node_modules/@devtools-ds/tree/dist/esm/index.js
|
|
1684
|
-
var
|
|
1711
|
+
var tr = ["theme", "hover", "colorScheme", "children", "label", "className", "onUpdate", "onSelect", "open"], xe = /* @__PURE__ */ l((e) => {
|
|
1685
1712
|
let {
|
|
1686
1713
|
theme: t,
|
|
1687
1714
|
hover: r,
|
|
@@ -1692,19 +1719,19 @@ var er = ["theme", "hover", "colorScheme", "children", "label", "className", "on
|
|
|
1692
1719
|
onUpdate: i,
|
|
1693
1720
|
onSelect: s,
|
|
1694
1721
|
open: h
|
|
1695
|
-
} = e, f = (0, r1.default)(e,
|
|
1722
|
+
} = e, f = (0, r1.default)(e, tr), {
|
|
1696
1723
|
themeClass: w,
|
|
1697
1724
|
currentTheme: u
|
|
1698
1725
|
} = le({
|
|
1699
1726
|
theme: t,
|
|
1700
1727
|
colorScheme: a
|
|
1701
|
-
}, N), [M, T] =
|
|
1702
|
-
|
|
1728
|
+
}, N), [M, T] = rr(h);
|
|
1729
|
+
ar(() => {
|
|
1703
1730
|
T(h);
|
|
1704
1731
|
}, [h]);
|
|
1705
1732
|
let B = /* @__PURE__ */ l((p) => {
|
|
1706
1733
|
T(p), i && i(p);
|
|
1707
|
-
}, "updateState"),
|
|
1734
|
+
}, "updateState"), z = q.Children.count(n) > 0, _ = /* @__PURE__ */ l((p, R) => {
|
|
1708
1735
|
if (p.isSameNode(R || null)) return;
|
|
1709
1736
|
let v = p.querySelector('[tabindex="-1"]');
|
|
1710
1737
|
v?.focus(), p.setAttribute("aria-selected", "true"), R?.removeAttribute("aria-selected");
|
|
@@ -1723,38 +1750,38 @@ var er = ["theme", "hover", "colorScheme", "children", "label", "className", "on
|
|
|
1723
1750
|
let R = K(p, "group"), v = R?.previousElementSibling;
|
|
1724
1751
|
if (v && v.getAttribute("tabindex") === "-1") {
|
|
1725
1752
|
let D = v.parentElement, te = p.parentElement;
|
|
1726
|
-
|
|
1753
|
+
_(D, te);
|
|
1727
1754
|
}
|
|
1728
1755
|
}, "moveBack"), O = /* @__PURE__ */ l((p, R) => {
|
|
1729
1756
|
let v = Q(p);
|
|
1730
1757
|
v.forEach((D) => {
|
|
1731
1758
|
D.removeAttribute("aria-selected");
|
|
1732
|
-
}), R === "start" && v[0] &&
|
|
1759
|
+
}), R === "start" && v[0] && _(v[0]), R === "end" && v[v.length - 1] && _(v[v.length - 1]);
|
|
1733
1760
|
}, "moveHome"), H = /* @__PURE__ */ l((p, R) => {
|
|
1734
1761
|
let v = Q(p) || [];
|
|
1735
1762
|
for (let D = 0; D < v.length; D++) {
|
|
1736
1763
|
let te = v[D];
|
|
1737
1764
|
if (te.getAttribute("aria-selected") === "true") {
|
|
1738
|
-
R === "up" && v[D - 1] ?
|
|
1765
|
+
R === "up" && v[D - 1] ? _(v[D - 1], te) : R === "down" && v[D + 1] && _(v[D + 1], te);
|
|
1739
1766
|
return;
|
|
1740
1767
|
}
|
|
1741
1768
|
}
|
|
1742
|
-
|
|
1743
|
-
}, "moveFocusAdjacent"),
|
|
1769
|
+
_(v[0]);
|
|
1770
|
+
}, "moveFocusAdjacent"), k = /* @__PURE__ */ l((p, R) => {
|
|
1744
1771
|
let v = p.target;
|
|
1745
1772
|
(p.key === "Enter" || p.key === " ") && B(!M), p.key === "ArrowRight" && M && !R ? H(v, "down") : p.key === "ArrowRight" && B(!0), p.key ===
|
|
1746
1773
|
"ArrowLeft" && (!M || R) ? ee(v) : p.key === "ArrowLeft" && B(!1), p.key === "ArrowDown" && H(v, "down"), p.key === "ArrowUp" && H(v, "u\
|
|
1747
1774
|
p"), p.key === "Home" && O(v, "start"), p.key === "End" && O(v, "end");
|
|
1748
1775
|
}, "handleKeypress"), ie = /* @__PURE__ */ l((p, R) => {
|
|
1749
1776
|
let v = p.target, D = K(v, "treeitem"), te = Q(v) || [], V0 = !1;
|
|
1750
|
-
for (let
|
|
1751
|
-
let
|
|
1752
|
-
if (
|
|
1753
|
-
D && (V0 = !0,
|
|
1777
|
+
for (let Ke = 0; Ke < te.length; Ke++) {
|
|
1778
|
+
let O0 = te[Ke];
|
|
1779
|
+
if (O0.getAttribute("aria-selected") === "true") {
|
|
1780
|
+
D && (V0 = !0, _(D, O0));
|
|
1754
1781
|
break;
|
|
1755
1782
|
}
|
|
1756
1783
|
}
|
|
1757
|
-
!V0 && D &&
|
|
1784
|
+
!V0 && D && _(D), R || B(!M);
|
|
1758
1785
|
}, "handleClick"), ge = /* @__PURE__ */ l((p) => {
|
|
1759
1786
|
let R = p.currentTarget;
|
|
1760
1787
|
!R.contains(document.activeElement) && R.getAttribute("role") === "tree" && R.setAttribute("tabindex", "0");
|
|
@@ -1762,7 +1789,7 @@ p"), p.key === "Home" && O(v, "start"), p.key === "End" && O(v, "end");
|
|
|
1762
1789
|
let R = p.target;
|
|
1763
1790
|
if (R.getAttribute("role") === "tree") {
|
|
1764
1791
|
let v = R.querySelector('[aria-selected="true"]');
|
|
1765
|
-
v ?
|
|
1792
|
+
v ? _(v) : H(R, "down"), R.setAttribute("tabindex", "-1");
|
|
1766
1793
|
}
|
|
1767
1794
|
}, "handleFocus"), Le = /* @__PURE__ */ l(() => {
|
|
1768
1795
|
s?.();
|
|
@@ -1790,8 +1817,8 @@ p"), p.key === "Home" && O(v, "start"), p.key === "End" && O(v, "end");
|
|
|
1790
1817
|
depth: 0,
|
|
1791
1818
|
hasHover: $
|
|
1792
1819
|
}
|
|
1793
|
-
}, /* @__PURE__ */ q.createElement(
|
|
1794
|
-
if (!
|
|
1820
|
+
}, /* @__PURE__ */ q.createElement(xe, e)));
|
|
1821
|
+
if (!z)
|
|
1795
1822
|
return /* @__PURE__ */ q.createElement("li", (0, Ne.default)({
|
|
1796
1823
|
role: "treeitem",
|
|
1797
1824
|
className: N.item
|
|
@@ -1804,12 +1831,12 @@ p"), p.key === "Home" && O(v, "start"), p.key === "End" && O(v, "end");
|
|
|
1804
1831
|
tabIndex: -1,
|
|
1805
1832
|
style: se(b),
|
|
1806
1833
|
onKeyDown: /* @__PURE__ */ l((p) => {
|
|
1807
|
-
|
|
1834
|
+
k(p, Z);
|
|
1808
1835
|
}, "onKeyDown"),
|
|
1809
1836
|
onClick: /* @__PURE__ */ l((p) => ie(p, !0), "onClick"),
|
|
1810
1837
|
onFocus: Le
|
|
1811
1838
|
}, /* @__PURE__ */ q.createElement("span", null, o)));
|
|
1812
|
-
let
|
|
1839
|
+
let Ye = P(N.arrow, {
|
|
1813
1840
|
[N.open]: M
|
|
1814
1841
|
});
|
|
1815
1842
|
return /* @__PURE__ */ q.createElement("li", {
|
|
@@ -1825,11 +1852,11 @@ p"), p.key === "Home" && O(v, "start"), p.key === "End" && O(v, "end");
|
|
|
1825
1852
|
}),
|
|
1826
1853
|
style: se(b),
|
|
1827
1854
|
onClick: /* @__PURE__ */ l((p) => ie(p), "onClick"),
|
|
1828
|
-
onKeyDown: /* @__PURE__ */ l((p) =>
|
|
1855
|
+
onKeyDown: /* @__PURE__ */ l((p) => k(p), "onKeyDown"),
|
|
1829
1856
|
onFocus: Le
|
|
1830
1857
|
}, /* @__PURE__ */ q.createElement("span", null, /* @__PURE__ */ q.createElement("span", {
|
|
1831
1858
|
"aria-hidden": !0,
|
|
1832
|
-
className:
|
|
1859
|
+
className: Ye
|
|
1833
1860
|
}), /* @__PURE__ */ q.createElement("span", null, o))), /* @__PURE__ */ q.createElement("ul", (0, Ne.default)({
|
|
1834
1861
|
role: "group",
|
|
1835
1862
|
className: P(c, N.group)
|
|
@@ -1841,14 +1868,14 @@ p"), p.key === "Home" && O(v, "start"), p.key === "End" && O(v, "end");
|
|
|
1841
1868
|
}
|
|
1842
1869
|
}, p))));
|
|
1843
1870
|
}, "Tree");
|
|
1844
|
-
|
|
1871
|
+
xe.defaultProps = {
|
|
1845
1872
|
open: !1,
|
|
1846
1873
|
hover: !0
|
|
1847
1874
|
};
|
|
1848
1875
|
|
|
1849
1876
|
// ../node_modules/@devtools-ds/object-inspector/dist/esm/ObjectValue.js
|
|
1850
1877
|
var a1 = G(Oe()), l1 = G(De());
|
|
1851
|
-
import J, { useState as
|
|
1878
|
+
import J, { useState as nr, useEffect as or } from "react";
|
|
1852
1879
|
|
|
1853
1880
|
// ../node_modules/@devtools-ds/object-inspector/dist/esm/ObjectInspector.css.js
|
|
1854
1881
|
var x = { "object-inspector": "ObjectInspector-object-inspector-0c33e82", objectInspector: "ObjectInspector-object-inspector-0c33e82", "obje\
|
|
@@ -1861,7 +1888,7 @@ ObjectInspector-prototype-f2449ee", dark: "ObjectInspector-dark-0c96c97", chrome
|
|
|
1861
1888
|
light-78bef54" };
|
|
1862
1889
|
|
|
1863
1890
|
// ../node_modules/@devtools-ds/object-inspector/dist/esm/ObjectValue.js
|
|
1864
|
-
var
|
|
1891
|
+
var lr = ["ast", "theme", "showKey", "colorScheme", "className"], F = /* @__PURE__ */ l((e, t, r, a, n) => {
|
|
1865
1892
|
let o = e.includes("-") ? `"${e}"` : e, c = n <= 0;
|
|
1866
1893
|
return /* @__PURE__ */ J.createElement("span", {
|
|
1867
1894
|
className: x.text
|
|
@@ -1877,15 +1904,15 @@ var ar = ["ast", "theme", "showKey", "colorScheme", "className"], F = /* @__PURE
|
|
|
1877
1904
|
showKey: a,
|
|
1878
1905
|
colorScheme: n,
|
|
1879
1906
|
className: o
|
|
1880
|
-
} = e, c = (0, l1.default)(e,
|
|
1907
|
+
} = e, c = (0, l1.default)(e, lr), {
|
|
1881
1908
|
themeClass: i
|
|
1882
1909
|
} = le({
|
|
1883
1910
|
theme: r,
|
|
1884
1911
|
colorScheme: n
|
|
1885
|
-
}, x), [s, h] =
|
|
1886
|
-
return
|
|
1912
|
+
}, x), [s, h] = nr(/* @__PURE__ */ J.createElement("span", null)), f = /* @__PURE__ */ J.createElement("span", null);
|
|
1913
|
+
return or(() => {
|
|
1887
1914
|
t.value instanceof Promise && (/* @__PURE__ */ l(async (u) => {
|
|
1888
|
-
h(F(t.key, `Promise { "${await
|
|
1915
|
+
h(F(t.key, `Promise { "${await v0(u)}" }`, x.key, a, t.depth));
|
|
1889
1916
|
}, "waitForPromiseResult"))(t.value);
|
|
1890
1917
|
}, [t, a]), typeof t.value == "number" || typeof t.value == "bigint" ? f = F(t.key, String(t.value), x.number, a, t.depth) : typeof t.value ==
|
|
1891
1918
|
"boolean" ? f = F(t.key, String(t.value), x.boolean, a, t.depth) : typeof t.value == "string" ? f = F(t.key, `"${t.value}"`, x.string, a, t.
|
|
@@ -1893,7 +1920,7 @@ var ar = ["ast", "theme", "showKey", "colorScheme", "className"], F = /* @__PURE
|
|
|
1893
1920
|
x.string, a, t.depth) : typeof t.value == "function" ? f = F(t.key, `${t.value.name}()`, x.key, a, t.depth) : typeof t.value == "object" &&
|
|
1894
1921
|
(t.value === null ? f = F(t.key, "null", x.null, a, t.depth) : Array.isArray(t.value) ? f = F(t.key, `Array(${t.value.length})`, x.key, a,
|
|
1895
1922
|
t.depth) : t.value instanceof Date ? f = F(t.key, `Date ${t.value.toString()}`, x.value, a, t.depth) : t.value instanceof RegExp ? f = F(t.
|
|
1896
|
-
key, t.value.toString(), x.regex, a, t.depth) : t.value instanceof Error ? f = F(t.key, t.value.toString(), x.error, a, t.depth) :
|
|
1923
|
+
key, t.value.toString(), x.regex, a, t.depth) : t.value instanceof Error ? f = F(t.key, t.value.toString(), x.error, a, t.depth) : p0(t.value) ?
|
|
1897
1924
|
f = F(t.key, "{\u2026}", x.key, a, t.depth) : f = F(t.key, t.value.constructor.name, x.key, a, t.depth)), /* @__PURE__ */ J.createElement(
|
|
1898
1925
|
"span", (0, a1.default)({
|
|
1899
1926
|
className: P(i, o)
|
|
@@ -1907,7 +1934,7 @@ var je = n1;
|
|
|
1907
1934
|
// ../node_modules/@devtools-ds/object-inspector/dist/esm/ObjectLabel.js
|
|
1908
1935
|
var he = G(Oe()), o1 = G(De());
|
|
1909
1936
|
import m from "react";
|
|
1910
|
-
var
|
|
1937
|
+
var cr = ["ast", "theme", "previewMax", "open", "colorScheme", "className"], Ce = /* @__PURE__ */ l((e, t, r) => {
|
|
1911
1938
|
let a = [];
|
|
1912
1939
|
for (let n = 0; n < e.length; n++) {
|
|
1913
1940
|
let o = e[n];
|
|
@@ -1922,29 +1949,29 @@ var or = ["ast", "theme", "previewMax", "open", "colorScheme", "className"], xe
|
|
|
1922
1949
|
}
|
|
1923
1950
|
}
|
|
1924
1951
|
return a;
|
|
1925
|
-
}, "buildPreview"),
|
|
1952
|
+
}, "buildPreview"), ir = /* @__PURE__ */ l((e, t, r, a) => {
|
|
1926
1953
|
let n = e.value.length;
|
|
1927
1954
|
return t ? /* @__PURE__ */ m.createElement("span", null, "Array(", n, ")") : /* @__PURE__ */ m.createElement(m.Fragment, null, /* @__PURE__ */ m.
|
|
1928
|
-
createElement("span", null, `${a === "firefox" ? "Array" : ""}(${n}) [ `),
|
|
1955
|
+
createElement("span", null, `${a === "firefox" ? "Array" : ""}(${n}) [ `), Ce(e.children, r, !1), /* @__PURE__ */ m.createElement("span", null,
|
|
1929
1956
|
"]"));
|
|
1930
|
-
}, "getArrayLabel"),
|
|
1957
|
+
}, "getArrayLabel"), sr = /* @__PURE__ */ l((e, t, r, a) => e.isPrototype ? /* @__PURE__ */ m.createElement("span", null, `Object ${a === "f\
|
|
1931
1958
|
irefox" ? "{ \u2026 }" : ""}`) : t ? /* @__PURE__ */ m.createElement("span", null, "{\u2026}") : /* @__PURE__ */ m.createElement(m.Fragment,
|
|
1932
|
-
null, /* @__PURE__ */ m.createElement("span", null, `${a === "firefox" ? "Object " : ""}{ `),
|
|
1933
|
-
"span", null, "}")), "getObjectLabel"),
|
|
1934
|
-
e.children[0].value)}" }`) : /* @__PURE__ */ m.createElement(m.Fragment, null, /* @__PURE__ */ m.createElement("span", null, "Promise { "),
|
|
1935
|
-
e.children, r, !0), /* @__PURE__ */ m.createElement("span", null, "}")), "getPromiseLabel"),
|
|
1959
|
+
null, /* @__PURE__ */ m.createElement("span", null, `${a === "firefox" ? "Object " : ""}{ `), Ce(e.children, r, !0), /* @__PURE__ */ m.createElement(
|
|
1960
|
+
"span", null, "}")), "getObjectLabel"), dr = /* @__PURE__ */ l((e, t, r) => t ? /* @__PURE__ */ m.createElement("span", null, `Promise { "${String(
|
|
1961
|
+
e.children[0].value)}" }`) : /* @__PURE__ */ m.createElement(m.Fragment, null, /* @__PURE__ */ m.createElement("span", null, "Promise { "), Ce(
|
|
1962
|
+
e.children, r, !0), /* @__PURE__ */ m.createElement("span", null, "}")), "getPromiseLabel"), fr = /* @__PURE__ */ l((e, t, r, a) => {
|
|
1936
1963
|
let {
|
|
1937
1964
|
size: n
|
|
1938
1965
|
} = e.value;
|
|
1939
1966
|
return t ? /* @__PURE__ */ m.createElement("span", null, `Map(${n})`) : /* @__PURE__ */ m.createElement(m.Fragment, null, /* @__PURE__ */ m.
|
|
1940
|
-
createElement("span", null, `Map${a === "chrome" ? `(${n})` : ""} { `),
|
|
1967
|
+
createElement("span", null, `Map${a === "chrome" ? `(${n})` : ""} { `), Ce(e.children, r, !0), /* @__PURE__ */ m.createElement("span", null,
|
|
1941
1968
|
"}"));
|
|
1942
|
-
}, "getMapLabel"),
|
|
1969
|
+
}, "getMapLabel"), hr = /* @__PURE__ */ l((e, t, r) => {
|
|
1943
1970
|
let {
|
|
1944
1971
|
size: a
|
|
1945
1972
|
} = e.value;
|
|
1946
1973
|
return t ? /* @__PURE__ */ m.createElement("span", null, "Set(", a, ")") : /* @__PURE__ */ m.createElement(m.Fragment, null, /* @__PURE__ */ m.
|
|
1947
|
-
createElement("span", null, `Set(${e.value.size}) {`),
|
|
1974
|
+
createElement("span", null, `Set(${e.value.size}) {`), Ce(e.children, r, !0), /* @__PURE__ */ m.createElement("span", null, "}"));
|
|
1948
1975
|
}, "getSetLabel"), c1 = /* @__PURE__ */ l((e) => {
|
|
1949
1976
|
let {
|
|
1950
1977
|
ast: t,
|
|
@@ -1953,7 +1980,7 @@ e.children, r, !0), /* @__PURE__ */ m.createElement("span", null, "}")), "getPro
|
|
|
1953
1980
|
open: n,
|
|
1954
1981
|
colorScheme: o,
|
|
1955
1982
|
className: c
|
|
1956
|
-
} = e, i = (0, o1.default)(e,
|
|
1983
|
+
} = e, i = (0, o1.default)(e, cr), {
|
|
1957
1984
|
themeClass: s,
|
|
1958
1985
|
currentTheme: h
|
|
1959
1986
|
} = le({
|
|
@@ -1966,7 +1993,7 @@ e.children, r, !0), /* @__PURE__ */ m.createElement("span", null, "}")), "getPro
|
|
|
1966
1993
|
}, u ? "" : `${t.key}: `), "Key");
|
|
1967
1994
|
return t.type === "array" ? /* @__PURE__ */ m.createElement("span", (0, he.default)({
|
|
1968
1995
|
className: w
|
|
1969
|
-
}, i), /* @__PURE__ */ m.createElement(M, null),
|
|
1996
|
+
}, i), /* @__PURE__ */ m.createElement(M, null), ir(t, n, a, h)) : t.type === "function" ? /* @__PURE__ */ m.createElement("span", (0, he.default)(
|
|
1970
1997
|
{
|
|
1971
1998
|
className: w
|
|
1972
1999
|
}, i), /* @__PURE__ */ m.createElement(M, null), h === "chrome" && /* @__PURE__ */ m.createElement("span", {
|
|
@@ -1977,15 +2004,15 @@ e.children, r, !0), /* @__PURE__ */ m.createElement("span", null, "}")), "getPro
|
|
|
1977
2004
|
})
|
|
1978
2005
|
}, `${t.value.name}()`)) : t.type === "promise" ? /* @__PURE__ */ m.createElement("span", (0, he.default)({
|
|
1979
2006
|
className: w
|
|
1980
|
-
}, i), /* @__PURE__ */ m.createElement(M, null),
|
|
2007
|
+
}, i), /* @__PURE__ */ m.createElement(M, null), dr(t, n, a)) : t.type === "map" ? /* @__PURE__ */ m.createElement("span", (0, he.default)(
|
|
1981
2008
|
{
|
|
1982
2009
|
className: w
|
|
1983
|
-
}, i), /* @__PURE__ */ m.createElement(M, null),
|
|
2010
|
+
}, i), /* @__PURE__ */ m.createElement(M, null), fr(t, n, a, h)) : t.type === "set" ? /* @__PURE__ */ m.createElement("span", (0, he.default)(
|
|
1984
2011
|
{
|
|
1985
2012
|
className: w
|
|
1986
|
-
}, i), /* @__PURE__ */ m.createElement(M, null),
|
|
2013
|
+
}, i), /* @__PURE__ */ m.createElement(M, null), hr(t, n, a)) : /* @__PURE__ */ m.createElement("span", (0, he.default)({
|
|
1987
2014
|
className: w
|
|
1988
|
-
}, i), /* @__PURE__ */ m.createElement(M, null),
|
|
2015
|
+
}, i), /* @__PURE__ */ m.createElement(M, null), sr(t, n, a, h));
|
|
1989
2016
|
}, "ObjectLabel");
|
|
1990
2017
|
c1.defaultProps = {
|
|
1991
2018
|
previewMax: 8,
|
|
@@ -1994,25 +2021,25 @@ c1.defaultProps = {
|
|
|
1994
2021
|
var i1 = c1;
|
|
1995
2022
|
|
|
1996
2023
|
// ../node_modules/@devtools-ds/object-inspector/dist/esm/ObjectInspectorItem.js
|
|
1997
|
-
var
|
|
2024
|
+
var b0 = /* @__PURE__ */ l((e) => {
|
|
1998
2025
|
let {
|
|
1999
2026
|
ast: t,
|
|
2000
2027
|
expandLevel: r,
|
|
2001
2028
|
depth: a
|
|
2002
2029
|
} = e, [n, o] = s1(), [c, i] = s1(a < r);
|
|
2003
|
-
return
|
|
2030
|
+
return ur(() => {
|
|
2004
2031
|
(/* @__PURE__ */ l(async () => {
|
|
2005
2032
|
if (t.type !== "value") {
|
|
2006
|
-
let h = t.children.map((u) => u()), f = await Promise.all(h), w = (0,
|
|
2033
|
+
let h = t.children.map((u) => u()), f = await Promise.all(h), w = (0, E0.default)((0, E0.default)({}, t), {}, {
|
|
2007
2034
|
children: f
|
|
2008
2035
|
});
|
|
2009
2036
|
o(w);
|
|
2010
2037
|
}
|
|
2011
2038
|
}, "resolve"))();
|
|
2012
|
-
}, [t]), n ? /* @__PURE__ */
|
|
2039
|
+
}, [t]), n ? /* @__PURE__ */ Me.createElement(xe, {
|
|
2013
2040
|
hover: !1,
|
|
2014
2041
|
open: c,
|
|
2015
|
-
label: /* @__PURE__ */
|
|
2042
|
+
label: /* @__PURE__ */ Me.createElement(i1, {
|
|
2016
2043
|
open: c,
|
|
2017
2044
|
ast: n
|
|
2018
2045
|
}),
|
|
@@ -2023,15 +2050,15 @@ var E0 = /* @__PURE__ */ l((e) => {
|
|
|
2023
2050
|
onUpdate: /* @__PURE__ */ l((s) => {
|
|
2024
2051
|
i(s);
|
|
2025
2052
|
}, "onUpdate")
|
|
2026
|
-
}, n.children.map((s) => /* @__PURE__ */
|
|
2053
|
+
}, n.children.map((s) => /* @__PURE__ */ Me.createElement(b0, {
|
|
2027
2054
|
key: s.key,
|
|
2028
2055
|
ast: s,
|
|
2029
2056
|
depth: a + 1,
|
|
2030
2057
|
expandLevel: r,
|
|
2031
2058
|
onSelect: e.onSelect
|
|
2032
|
-
}))) : /* @__PURE__ */
|
|
2059
|
+
}))) : /* @__PURE__ */ Me.createElement(xe, {
|
|
2033
2060
|
hover: !1,
|
|
2034
|
-
label: /* @__PURE__ */
|
|
2061
|
+
label: /* @__PURE__ */ Me.createElement(je, {
|
|
2035
2062
|
ast: t
|
|
2036
2063
|
}),
|
|
2037
2064
|
onSelect: /* @__PURE__ */ l(() => {
|
|
@@ -2040,14 +2067,14 @@ var E0 = /* @__PURE__ */ l((e) => {
|
|
|
2040
2067
|
}, "onSelect")
|
|
2041
2068
|
});
|
|
2042
2069
|
}, "ObjectInspectorItem");
|
|
2043
|
-
|
|
2070
|
+
b0.defaultProps = {
|
|
2044
2071
|
expandLevel: 0,
|
|
2045
2072
|
depth: 0
|
|
2046
2073
|
};
|
|
2047
|
-
var d1 =
|
|
2074
|
+
var d1 = b0;
|
|
2048
2075
|
|
|
2049
2076
|
// ../node_modules/@devtools-ds/object-inspector/dist/esm/ObjectInspector.js
|
|
2050
|
-
var
|
|
2077
|
+
var pr = ["data", "expandLevel", "sortKeys", "includePrototypes", "className", "theme", "colorScheme", "onSelect"], Fe = /* @__PURE__ */ l((e) => {
|
|
2051
2078
|
let {
|
|
2052
2079
|
data: t,
|
|
2053
2080
|
expandLevel: r,
|
|
@@ -2057,7 +2084,7 @@ var ur = ["data", "expandLevel", "sortKeys", "includePrototypes", "className", "
|
|
|
2057
2084
|
theme: c,
|
|
2058
2085
|
colorScheme: i,
|
|
2059
2086
|
onSelect: s
|
|
2060
|
-
} = e, h = (0, h1.default)(e,
|
|
2087
|
+
} = e, h = (0, h1.default)(e, pr), [f, w] = mr(void 0), {
|
|
2061
2088
|
themeClass: u,
|
|
2062
2089
|
currentTheme: M,
|
|
2063
2090
|
currentColorScheme: T
|
|
@@ -2065,16 +2092,16 @@ var ur = ["data", "expandLevel", "sortKeys", "includePrototypes", "className", "
|
|
|
2065
2092
|
theme: c,
|
|
2066
2093
|
colorScheme: i
|
|
2067
2094
|
}, x);
|
|
2068
|
-
return
|
|
2095
|
+
return vr(() => {
|
|
2069
2096
|
(/* @__PURE__ */ l(async () => {
|
|
2070
|
-
w(await
|
|
2097
|
+
w(await _t(t, a, n));
|
|
2071
2098
|
}, "runParser"))();
|
|
2072
|
-
}, [t, a, n]), /* @__PURE__ */
|
|
2099
|
+
}, [t, a, n]), /* @__PURE__ */ x0.createElement("div", (0, f1.default)({
|
|
2073
2100
|
className: P(x.objectInspector, o, u)
|
|
2074
|
-
}, h), f && /* @__PURE__ */
|
|
2101
|
+
}, h), f && /* @__PURE__ */ x0.createElement($t, {
|
|
2075
2102
|
theme: M,
|
|
2076
2103
|
colorScheme: T
|
|
2077
|
-
}, /* @__PURE__ */
|
|
2104
|
+
}, /* @__PURE__ */ x0.createElement(d1, {
|
|
2078
2105
|
ast: f,
|
|
2079
2106
|
expandLevel: r,
|
|
2080
2107
|
onSelect: s
|
|
@@ -2087,8 +2114,8 @@ Fe.defaultProps = {
|
|
|
2087
2114
|
};
|
|
2088
2115
|
|
|
2089
2116
|
// src/component-testing/components/MethodCall.tsx
|
|
2090
|
-
import { useTheme as
|
|
2091
|
-
var
|
|
2117
|
+
import { useTheme as C0 } from "storybook/theming";
|
|
2118
|
+
var gr = {
|
|
2092
2119
|
base: "#444",
|
|
2093
2120
|
nullish: "#7D99AA",
|
|
2094
2121
|
string: "#16B242",
|
|
@@ -2113,7 +2140,7 @@ var wr = {
|
|
|
2113
2140
|
},
|
|
2114
2141
|
meta: "#EA7509",
|
|
2115
2142
|
method: "#0271B6"
|
|
2116
|
-
},
|
|
2143
|
+
}, Rr = {
|
|
2117
2144
|
base: "#eee",
|
|
2118
2145
|
nullish: "#aaa",
|
|
2119
2146
|
string: "#5FE584",
|
|
@@ -2138,17 +2165,17 @@ var wr = {
|
|
|
2138
2165
|
},
|
|
2139
2166
|
meta: "#FAD483",
|
|
2140
2167
|
method: "#5EC1FF"
|
|
2141
|
-
},
|
|
2142
|
-
let { base: e } =
|
|
2143
|
-
return e === "dark" ?
|
|
2144
|
-
}, "useThemeColors"),
|
|
2168
|
+
}, V = /* @__PURE__ */ l(() => {
|
|
2169
|
+
let { base: e } = C0();
|
|
2170
|
+
return e === "dark" ? Rr : gr;
|
|
2171
|
+
}, "useThemeColors"), Er = /[^A-Z0-9]/i, u1 = /[\s.,…]+$/gm, p1 = /* @__PURE__ */ l((e, t) => {
|
|
2145
2172
|
if (e.length <= t)
|
|
2146
2173
|
return e;
|
|
2147
2174
|
for (let r = t - 1; r >= 0; r -= 1)
|
|
2148
|
-
if (
|
|
2175
|
+
if (Er.test(e[r]) && r > 10)
|
|
2149
2176
|
return `${e.slice(0, r).replace(u1, "")}\u2026`;
|
|
2150
2177
|
return `${e.slice(0, t).replace(u1, "")}\u2026`;
|
|
2151
|
-
}, "ellipsize"),
|
|
2178
|
+
}, "ellipsize"), br = /* @__PURE__ */ l((e) => {
|
|
2152
2179
|
try {
|
|
2153
2180
|
return JSON.stringify(e, null, 1);
|
|
2154
2181
|
} catch {
|
|
@@ -2165,32 +2192,32 @@ var wr = {
|
|
|
2165
2192
|
}) => {
|
|
2166
2193
|
switch (!0) {
|
|
2167
2194
|
case e === null:
|
|
2168
|
-
return /* @__PURE__ */ d.createElement(br, { ...n });
|
|
2169
|
-
case e === void 0:
|
|
2170
2195
|
return /* @__PURE__ */ d.createElement(xr, { ...n });
|
|
2196
|
+
case e === void 0:
|
|
2197
|
+
return /* @__PURE__ */ d.createElement(Cr, { ...n });
|
|
2171
2198
|
case Array.isArray(e):
|
|
2172
|
-
return /* @__PURE__ */ d.createElement(
|
|
2199
|
+
return /* @__PURE__ */ d.createElement(Ar, { ...n, value: e, callsById: a });
|
|
2173
2200
|
case typeof e == "string":
|
|
2174
|
-
return /* @__PURE__ */ d.createElement(Cr, { ...n, value: e });
|
|
2175
|
-
case typeof e == "number":
|
|
2176
2201
|
return /* @__PURE__ */ d.createElement(Mr, { ...n, value: e });
|
|
2177
|
-
case typeof e == "
|
|
2202
|
+
case typeof e == "number":
|
|
2178
2203
|
return /* @__PURE__ */ d.createElement(yr, { ...n, value: e });
|
|
2204
|
+
case typeof e == "boolean":
|
|
2205
|
+
return /* @__PURE__ */ d.createElement(Ir, { ...n, value: e });
|
|
2179
2206
|
/* eslint-disable no-underscore-dangle */
|
|
2180
2207
|
case Object.prototype.hasOwnProperty.call(e, "__date__"):
|
|
2181
|
-
return /* @__PURE__ */ d.createElement(
|
|
2208
|
+
return /* @__PURE__ */ d.createElement(Br, { ...n, ...e.__date__ });
|
|
2182
2209
|
case Object.prototype.hasOwnProperty.call(e, "__error__"):
|
|
2183
|
-
return /* @__PURE__ */ d.createElement(
|
|
2210
|
+
return /* @__PURE__ */ d.createElement(Tr, { ...n, ...e.__error__ });
|
|
2184
2211
|
case Object.prototype.hasOwnProperty.call(e, "__regexp__"):
|
|
2185
|
-
return /* @__PURE__ */ d.createElement(
|
|
2212
|
+
return /* @__PURE__ */ d.createElement(_r, { ...n, ...e.__regexp__ });
|
|
2186
2213
|
case Object.prototype.hasOwnProperty.call(e, "__function__"):
|
|
2187
|
-
return /* @__PURE__ */ d.createElement(
|
|
2214
|
+
return /* @__PURE__ */ d.createElement(Hr, { ...n, ...e.__function__ });
|
|
2188
2215
|
case Object.prototype.hasOwnProperty.call(e, "__symbol__"):
|
|
2189
2216
|
return /* @__PURE__ */ d.createElement(kr, { ...n, ...e.__symbol__ });
|
|
2190
2217
|
case Object.prototype.hasOwnProperty.call(e, "__element__"):
|
|
2191
|
-
return /* @__PURE__ */ d.createElement(
|
|
2218
|
+
return /* @__PURE__ */ d.createElement(Sr, { ...n, ...e.__element__ });
|
|
2192
2219
|
case Object.prototype.hasOwnProperty.call(e, "__class__"):
|
|
2193
|
-
return /* @__PURE__ */ d.createElement(
|
|
2220
|
+
return /* @__PURE__ */ d.createElement(Lr, { ...n, ...e.__class__ });
|
|
2194
2221
|
case Object.prototype.hasOwnProperty.call(e, "__callId__"):
|
|
2195
2222
|
return /* @__PURE__ */ d.createElement(Ue, { call: a?.get(e.__callId__), callsById: a });
|
|
2196
2223
|
/* eslint-enable no-underscore-dangle */
|
|
@@ -2207,27 +2234,27 @@ var wr = {
|
|
|
2207
2234
|
default:
|
|
2208
2235
|
return /* @__PURE__ */ d.createElement(Vr, { value: e, ...n });
|
|
2209
2236
|
}
|
|
2210
|
-
}, "Node"),
|
|
2211
|
-
let t =
|
|
2237
|
+
}, "Node"), xr = /* @__PURE__ */ l((e) => {
|
|
2238
|
+
let t = V();
|
|
2212
2239
|
return /* @__PURE__ */ d.createElement("span", { style: { color: t.nullish }, ...e }, "null");
|
|
2213
|
-
}, "NullNode"),
|
|
2214
|
-
let t =
|
|
2240
|
+
}, "NullNode"), Cr = /* @__PURE__ */ l((e) => {
|
|
2241
|
+
let t = V();
|
|
2215
2242
|
return /* @__PURE__ */ d.createElement("span", { style: { color: t.nullish }, ...e }, "undefined");
|
|
2216
|
-
}, "UndefinedNode"),
|
|
2217
|
-
let r =
|
|
2243
|
+
}, "UndefinedNode"), Mr = /* @__PURE__ */ l(({ value: e, ...t }) => {
|
|
2244
|
+
let r = V();
|
|
2218
2245
|
return /* @__PURE__ */ d.createElement("span", { style: { color: r.string }, ...t }, JSON.stringify(p1(e, 50)));
|
|
2219
|
-
}, "StringNode"),
|
|
2220
|
-
let r =
|
|
2246
|
+
}, "StringNode"), yr = /* @__PURE__ */ l(({ value: e, ...t }) => {
|
|
2247
|
+
let r = V();
|
|
2221
2248
|
return /* @__PURE__ */ d.createElement("span", { style: { color: r.number }, ...t }, e);
|
|
2222
|
-
}, "NumberNode"),
|
|
2223
|
-
let r =
|
|
2249
|
+
}, "NumberNode"), Ir = /* @__PURE__ */ l(({ value: e, ...t }) => {
|
|
2250
|
+
let r = V();
|
|
2224
2251
|
return /* @__PURE__ */ d.createElement("span", { style: { color: r.boolean }, ...t }, String(e));
|
|
2225
|
-
}, "BooleanNode"),
|
|
2252
|
+
}, "BooleanNode"), Ar = /* @__PURE__ */ l(({
|
|
2226
2253
|
value: e,
|
|
2227
2254
|
nested: t = !1,
|
|
2228
2255
|
callsById: r
|
|
2229
2256
|
}) => {
|
|
2230
|
-
let a =
|
|
2257
|
+
let a = V();
|
|
2231
2258
|
if (t)
|
|
2232
2259
|
return /* @__PURE__ */ d.createElement("span", { style: { color: a.base } }, "[\u2026]");
|
|
2233
2260
|
let n = e.slice(0, 3).map((c, i) => /* @__PURE__ */ d.createElement(ne, { key: `${i}--${JSON.stringify(c)}`, value: c, nested: !0, callsById: r })),
|
|
@@ -2240,7 +2267,7 @@ var wr = {
|
|
|
2240
2267
|
callsById: r,
|
|
2241
2268
|
nested: a = !1
|
|
2242
2269
|
}) => {
|
|
2243
|
-
let n =
|
|
2270
|
+
let n = C0().base === "dark", o = V();
|
|
2244
2271
|
if (e)
|
|
2245
2272
|
return /* @__PURE__ */ d.createElement(d.Fragment, null, /* @__PURE__ */ d.createElement(
|
|
2246
2273
|
Fe,
|
|
@@ -2254,27 +2281,27 @@ var wr = {
|
|
|
2254
2281
|
if (a)
|
|
2255
2282
|
return /* @__PURE__ */ d.createElement("span", { style: { color: o.base } }, "{\u2026}");
|
|
2256
2283
|
let c = v1(
|
|
2257
|
-
Object.entries(t).slice(0, 2).map(([i, s]) => /* @__PURE__ */ d.createElement(
|
|
2284
|
+
Object.entries(t).slice(0, 2).map(([i, s]) => /* @__PURE__ */ d.createElement(wr, { key: i }, /* @__PURE__ */ d.createElement("span", { style: {
|
|
2258
2285
|
color: o.objectkey } }, i, ": "), /* @__PURE__ */ d.createElement(ne, { value: s, callsById: r, nested: !0 }))),
|
|
2259
2286
|
/* @__PURE__ */ d.createElement("span", null, ", ")
|
|
2260
2287
|
);
|
|
2261
2288
|
return Object.keys(t).length <= 2 ? /* @__PURE__ */ d.createElement("span", { style: { color: o.base } }, "{ ", c, " }") : /* @__PURE__ */ d.
|
|
2262
2289
|
createElement("span", { style: { color: o.base } }, "(", Object.keys(t).length, ") ", "{ ", c, ", \u2026 }");
|
|
2263
|
-
}, "ObjectNode"),
|
|
2264
|
-
let t =
|
|
2290
|
+
}, "ObjectNode"), Lr = /* @__PURE__ */ l(({ name: e }) => {
|
|
2291
|
+
let t = V();
|
|
2265
2292
|
return /* @__PURE__ */ d.createElement("span", { style: { color: t.instance } }, e);
|
|
2266
|
-
}, "ClassNode"),
|
|
2267
|
-
let t =
|
|
2293
|
+
}, "ClassNode"), Hr = /* @__PURE__ */ l(({ name: e }) => {
|
|
2294
|
+
let t = V();
|
|
2268
2295
|
return e ? /* @__PURE__ */ d.createElement("span", { style: { color: t.function } }, e) : /* @__PURE__ */ d.createElement("span", { style: {
|
|
2269
2296
|
color: t.nullish, fontStyle: "italic" } }, "anonymous");
|
|
2270
|
-
}, "FunctionNode"),
|
|
2297
|
+
}, "FunctionNode"), Sr = /* @__PURE__ */ l(({
|
|
2271
2298
|
prefix: e,
|
|
2272
2299
|
localName: t,
|
|
2273
2300
|
id: r,
|
|
2274
2301
|
classNames: a = [],
|
|
2275
2302
|
innerText: n
|
|
2276
2303
|
}) => {
|
|
2277
|
-
let o = e ? `${e}:${t}` : t, c =
|
|
2304
|
+
let o = e ? `${e}:${t}` : t, c = V();
|
|
2278
2305
|
return /* @__PURE__ */ d.createElement("span", { style: { wordBreak: "keep-all" } }, /* @__PURE__ */ d.createElement("span", { key: `${o}_\
|
|
2279
2306
|
lt`, style: { color: c.muted } }, "<"), /* @__PURE__ */ d.createElement("span", { key: `${o}_tag`, style: { color: c.tag.name } }, o), /* @__PURE__ */ d.
|
|
2280
2307
|
createElement("span", { key: `${o}_suffix`, style: { color: c.tag.suffix } }, r ? `#${r}` : a.reduce((i, s) => `${i}.${s}`, "")), /* @__PURE__ */ d.
|
|
@@ -2282,29 +2309,29 @@ lt`, style: { color: c.muted } }, "<"), /* @__PURE__ */ d.createElement("span",
|
|
|
2282
2309
|
Fragment, null, /* @__PURE__ */ d.createElement("span", { key: `${o}_text` }, n), /* @__PURE__ */ d.createElement("span", { key: `${o}_clo\
|
|
2283
2310
|
se_lt`, style: { color: c.muted } }, "<"), /* @__PURE__ */ d.createElement("span", { key: `${o}_close_tag`, style: { color: c.tag.name } }, "\
|
|
2284
2311
|
/", o), /* @__PURE__ */ d.createElement("span", { key: `${o}_close_gt`, style: { color: c.muted } }, ">")));
|
|
2285
|
-
}, "ElementNode"),
|
|
2286
|
-
let t = e instanceof Date ? e.toISOString() : e, [r, a, n] = t.split(/[T.Z]/), o =
|
|
2312
|
+
}, "ElementNode"), Br = /* @__PURE__ */ l(({ value: e }) => {
|
|
2313
|
+
let t = e instanceof Date ? e.toISOString() : e, [r, a, n] = t.split(/[T.Z]/), o = V();
|
|
2287
2314
|
return /* @__PURE__ */ d.createElement("span", { style: { whiteSpace: "nowrap", color: o.date } }, r, /* @__PURE__ */ d.createElement("spa\
|
|
2288
2315
|
n", { style: { opacity: 0.7 } }, "T"), a === "00:00:00" ? /* @__PURE__ */ d.createElement("span", { style: { opacity: 0.7 } }, a) : a, n ===
|
|
2289
2316
|
"000" ? /* @__PURE__ */ d.createElement("span", { style: { opacity: 0.7 } }, ".", n) : `.${n}`, /* @__PURE__ */ d.createElement("span", { style: {
|
|
2290
2317
|
opacity: 0.7 } }, "Z"));
|
|
2291
|
-
}, "DateNode"),
|
|
2292
|
-
let r =
|
|
2318
|
+
}, "DateNode"), Tr = /* @__PURE__ */ l(({ name: e, message: t }) => {
|
|
2319
|
+
let r = V();
|
|
2293
2320
|
return /* @__PURE__ */ d.createElement("span", { style: { color: r.error.name } }, e, t && ": ", t && /* @__PURE__ */ d.createElement("spa\
|
|
2294
2321
|
n", { style: { color: r.error.message }, title: t.length > 50 ? t : "" }, p1(t, 50)));
|
|
2295
|
-
}, "ErrorNode"),
|
|
2296
|
-
let r =
|
|
2322
|
+
}, "ErrorNode"), _r = /* @__PURE__ */ l(({ flags: e, source: t }) => {
|
|
2323
|
+
let r = V();
|
|
2297
2324
|
return /* @__PURE__ */ d.createElement("span", { style: { whiteSpace: "nowrap", color: r.regex.flags } }, "/", /* @__PURE__ */ d.createElement(
|
|
2298
2325
|
"span", { style: { color: r.regex.source } }, t), "/", e);
|
|
2299
2326
|
}, "RegExpNode"), kr = /* @__PURE__ */ l(({ description: e }) => {
|
|
2300
|
-
let t =
|
|
2327
|
+
let t = V();
|
|
2301
2328
|
return /* @__PURE__ */ d.createElement("span", { style: { whiteSpace: "nowrap", color: t.instance } }, "Symbol(", e && /* @__PURE__ */ d.createElement(
|
|
2302
2329
|
"span", { style: { color: t.meta } }, '"', e, '"'), ")");
|
|
2303
2330
|
}, "SymbolNode"), Vr = /* @__PURE__ */ l(({ value: e }) => {
|
|
2304
|
-
let t =
|
|
2305
|
-
return /* @__PURE__ */ d.createElement("span", { style: { color: t.meta } },
|
|
2306
|
-
}, "OtherNode"),
|
|
2307
|
-
let t =
|
|
2331
|
+
let t = V();
|
|
2332
|
+
return /* @__PURE__ */ d.createElement("span", { style: { color: t.meta } }, br(e));
|
|
2333
|
+
}, "OtherNode"), Or = /* @__PURE__ */ l(({ label: e }) => {
|
|
2334
|
+
let t = V(), { typography: r } = C0();
|
|
2308
2335
|
return /* @__PURE__ */ d.createElement(
|
|
2309
2336
|
"span",
|
|
2310
2337
|
{
|
|
@@ -2323,7 +2350,7 @@ n", { style: { color: r.error.message }, title: t.length > 50 ? t : "" }, p1(t,
|
|
|
2323
2350
|
if (!e)
|
|
2324
2351
|
return null;
|
|
2325
2352
|
if (e.method === "step" && e.path?.length === 0)
|
|
2326
|
-
return /* @__PURE__ */ d.createElement(
|
|
2353
|
+
return /* @__PURE__ */ d.createElement(Or, { label: e.args[0] });
|
|
2327
2354
|
let r = e.path?.flatMap((o, c) => {
|
|
2328
2355
|
let i = o.__callId__;
|
|
2329
2356
|
return [
|
|
@@ -2336,7 +2363,7 @@ n", { style: { color: r.error.message }, title: t.length > 50 ? t : "" }, p1(t,
|
|
|
2336
2363
|
let s = /* @__PURE__ */ d.createElement(ne, { key: `node${c}`, value: o, callsById: t });
|
|
2337
2364
|
return c < i.length - 1 ? [s, /* @__PURE__ */ d.createElement("span", { key: `comma${c}` }, ",\xA0"), /* @__PURE__ */ d.createElement("w\
|
|
2338
2365
|
br", { key: `wbr${c}` })] : [s];
|
|
2339
|
-
}), n =
|
|
2366
|
+
}), n = V();
|
|
2340
2367
|
return /* @__PURE__ */ d.createElement(d.Fragment, null, /* @__PURE__ */ d.createElement("span", { style: { color: n.base } }, r), /* @__PURE__ */ d.
|
|
2341
2368
|
createElement("span", { style: { color: n.method } }, e.method), /* @__PURE__ */ d.createElement("span", { style: { color: n.base } }, "(",
|
|
2342
2369
|
/* @__PURE__ */ d.createElement("wbr", null), a, /* @__PURE__ */ d.createElement("wbr", null), ")"));
|
|
@@ -2348,20 +2375,20 @@ var m1 = /* @__PURE__ */ l((e, t = 0) => {
|
|
|
2348
2375
|
if (e[r] === "(" ? a += 1 : e[r] === ")" && (a -= 1), a === 0)
|
|
2349
2376
|
return e.slice(t, r);
|
|
2350
2377
|
return "";
|
|
2351
|
-
}, "getParams"),
|
|
2378
|
+
}, "getParams"), M0 = /* @__PURE__ */ l((e) => {
|
|
2352
2379
|
try {
|
|
2353
2380
|
return e === "undefined" ? void 0 : JSON.parse(e);
|
|
2354
2381
|
} catch {
|
|
2355
2382
|
return e;
|
|
2356
2383
|
}
|
|
2357
|
-
}, "parseValue"),
|
|
2384
|
+
}, "parseValue"), Pr = w1.span(({ theme: e }) => ({
|
|
2358
2385
|
color: e.base === "light" ? e.color.positiveText : e.color.positive
|
|
2359
|
-
})),
|
|
2386
|
+
})), qr = w1.span(({ theme: e }) => ({
|
|
2360
2387
|
color: e.base === "light" ? e.color.negativeText : e.color.negative
|
|
2361
|
-
})),
|
|
2362
|
-
color: "#D43900" } }) : /* @__PURE__ */ y.createElement(
|
|
2388
|
+
})), y0 = /* @__PURE__ */ l(({ value: e, parsed: t }) => t ? /* @__PURE__ */ y.createElement(ne, { showObjectInspector: !0, value: e, style: {
|
|
2389
|
+
color: "#D43900" } }) : /* @__PURE__ */ y.createElement(qr, null, e), "Received"), I0 = /* @__PURE__ */ l(({ value: e, parsed: t }) => t ? typeof e ==
|
|
2363
2390
|
"string" && e.startsWith("called with") ? /* @__PURE__ */ y.createElement(y.Fragment, null, e) : /* @__PURE__ */ y.createElement(ne, { showObjectInspector: !0,
|
|
2364
|
-
value: e, style: { color: "#16B242" } }) : /* @__PURE__ */ y.createElement(
|
|
2391
|
+
value: e, style: { color: "#16B242" } }) : /* @__PURE__ */ y.createElement(Pr, null, e), "Expected"), A0 = /* @__PURE__ */ l(({
|
|
2365
2392
|
message: e,
|
|
2366
2393
|
style: t = {}
|
|
2367
2394
|
}) => {
|
|
@@ -2373,7 +2400,7 @@ value: e, style: { color: "#16B242" } }) : /* @__PURE__ */ y.createElement(Dr, n
|
|
|
2373
2400
|
style: {
|
|
2374
2401
|
margin: 0,
|
|
2375
2402
|
padding: "8px 10px 8px 36px",
|
|
2376
|
-
fontSize:
|
|
2403
|
+
fontSize: Dr.size.s1,
|
|
2377
2404
|
...t
|
|
2378
2405
|
}
|
|
2379
2406
|
},
|
|
@@ -2385,27 +2412,27 @@ value: e, style: { color: "#16B242" } }) : /* @__PURE__ */ y.createElement(Dr, n
|
|
|
2385
2412
|
if (B)
|
|
2386
2413
|
return [
|
|
2387
2414
|
"expect(",
|
|
2388
|
-
/* @__PURE__ */ y.createElement(
|
|
2415
|
+
/* @__PURE__ */ y.createElement(y0, { key: `received_${w}`, value: w }),
|
|
2389
2416
|
n.slice(u, T),
|
|
2390
|
-
/* @__PURE__ */ y.createElement(
|
|
2417
|
+
/* @__PURE__ */ y.createElement(I0, { key: `expected_${B}`, value: B }),
|
|
2391
2418
|
n.slice(T + B.length),
|
|
2392
2419
|
/* @__PURE__ */ y.createElement("br", { key: `br${o}` })
|
|
2393
2420
|
];
|
|
2394
2421
|
}
|
|
2395
2422
|
}
|
|
2396
2423
|
if (n.match(/^\s*- /))
|
|
2397
|
-
return [/* @__PURE__ */ y.createElement(
|
|
2424
|
+
return [/* @__PURE__ */ y.createElement(I0, { key: n + o, value: n }), /* @__PURE__ */ y.createElement("br", { key: `br${o}` })];
|
|
2398
2425
|
if (n.match(/^\s*\+ /) || n.match(/^Received: $/))
|
|
2399
|
-
return [/* @__PURE__ */ y.createElement(
|
|
2426
|
+
return [/* @__PURE__ */ y.createElement(y0, { key: n + o, value: n }), /* @__PURE__ */ y.createElement("br", { key: `br${o}` })];
|
|
2400
2427
|
let [, c, i] = n.match(/^(Expected|Received): (.*)$/) || [];
|
|
2401
2428
|
if (c && i)
|
|
2402
2429
|
return c === "Expected" ? [
|
|
2403
2430
|
"Expected: ",
|
|
2404
|
-
/* @__PURE__ */ y.createElement(
|
|
2431
|
+
/* @__PURE__ */ y.createElement(I0, { key: n + o, value: M0(i), parsed: !0 }),
|
|
2405
2432
|
/* @__PURE__ */ y.createElement("br", { key: `br${o}` })
|
|
2406
2433
|
] : [
|
|
2407
2434
|
"Received: ",
|
|
2408
|
-
/* @__PURE__ */ y.createElement(
|
|
2435
|
+
/* @__PURE__ */ y.createElement(y0, { key: n + o, value: M0(i), parsed: !0 }),
|
|
2409
2436
|
/* @__PURE__ */ y.createElement("br", { key: `br${o}` })
|
|
2410
2437
|
];
|
|
2411
2438
|
let [, s, h] = n.match(/(Expected number|Received number|Number) of calls: (\d+)$/i) || [];
|
|
@@ -2418,7 +2445,7 @@ value: e, style: { color: "#16B242" } }) : /* @__PURE__ */ y.createElement(Dr, n
|
|
|
2418
2445
|
let [, f] = n.match(/^Received has value: (.+)$/) || [];
|
|
2419
2446
|
return f ? [
|
|
2420
2447
|
"Received has value: ",
|
|
2421
|
-
/* @__PURE__ */ y.createElement(ne, { key: n + o, value:
|
|
2448
|
+
/* @__PURE__ */ y.createElement(ne, { key: n + o, value: M0(f) }),
|
|
2422
2449
|
/* @__PURE__ */ y.createElement("br", { key: `br${o}` })
|
|
2423
2450
|
] : [
|
|
2424
2451
|
/* @__PURE__ */ y.createElement(
|
|
@@ -2435,27 +2462,27 @@ value: e, style: { color: "#16B242" } }) : /* @__PURE__ */ y.createElement(Dr, n
|
|
|
2435
2462
|
}, "MatcherResult");
|
|
2436
2463
|
|
|
2437
2464
|
// src/component-testing/components/StatusIcon.tsx
|
|
2438
|
-
import
|
|
2465
|
+
import ye from "react";
|
|
2439
2466
|
import { CallStates as $e } from "storybook/internal/instrumenter";
|
|
2440
|
-
import { transparentize as
|
|
2441
|
-
import { styled as
|
|
2442
|
-
var
|
|
2467
|
+
import { transparentize as Nr } from "polished";
|
|
2468
|
+
import { styled as jr, useTheme as Fr } from "storybook/theming";
|
|
2469
|
+
var Ur = jr.div({
|
|
2443
2470
|
width: 14,
|
|
2444
2471
|
height: 14,
|
|
2445
2472
|
display: "flex",
|
|
2446
2473
|
alignItems: "center",
|
|
2447
2474
|
justifyContent: "center"
|
|
2448
2475
|
}), g1 = /* @__PURE__ */ l(({ status: e }) => {
|
|
2449
|
-
let t =
|
|
2476
|
+
let t = Fr();
|
|
2450
2477
|
switch (e) {
|
|
2451
2478
|
case $e.DONE:
|
|
2452
|
-
return /* @__PURE__ */
|
|
2479
|
+
return /* @__PURE__ */ ye.createElement(It, { color: t.color.positive, "data-testid": "icon-done" });
|
|
2453
2480
|
case $e.ERROR:
|
|
2454
|
-
return /* @__PURE__ */
|
|
2481
|
+
return /* @__PURE__ */ ye.createElement(Ct, { color: t.color.negative, "data-testid": "icon-error" });
|
|
2455
2482
|
case $e.ACTIVE:
|
|
2456
|
-
return /* @__PURE__ */
|
|
2483
|
+
return /* @__PURE__ */ ye.createElement(gt, { color: t.color.secondary, "data-testid": "icon-active" });
|
|
2457
2484
|
case $e.WAITING:
|
|
2458
|
-
return /* @__PURE__ */
|
|
2485
|
+
return /* @__PURE__ */ ye.createElement(Ur, { "data-testid": "icon-waiting" }, /* @__PURE__ */ ye.createElement(At, { color: Nr(0.5, "\
|
|
2459
2486
|
#CCCCCC"), size: 6 }));
|
|
2460
2487
|
default:
|
|
2461
2488
|
return null;
|
|
@@ -2463,12 +2490,12 @@ var Fr = Nr.div({
|
|
|
2463
2490
|
}, "StatusIcon");
|
|
2464
2491
|
|
|
2465
2492
|
// src/component-testing/components/Interaction.tsx
|
|
2466
|
-
var
|
|
2493
|
+
var Yr = oe.div({
|
|
2467
2494
|
fontFamily: Ge.fonts.mono,
|
|
2468
2495
|
fontSize: Ge.size.s1,
|
|
2469
2496
|
overflowWrap: "break-word",
|
|
2470
2497
|
inlineSize: "calc( 100% - 40px )"
|
|
2471
|
-
}),
|
|
2498
|
+
}), Kr = oe("div", {
|
|
2472
2499
|
shouldForwardProp: /* @__PURE__ */ l((e) => !["call", "pausedAt"].includes(e.toString()), "shouldForwardProp")
|
|
2473
2500
|
})(
|
|
2474
2501
|
({ theme: e, call: t }) => ({
|
|
@@ -2479,7 +2506,7 @@ var Xr = oe.div({
|
|
|
2479
2506
|
fontFamily: Ge.fonts.base,
|
|
2480
2507
|
fontSize: 13,
|
|
2481
2508
|
...t.status === ue.ERROR && {
|
|
2482
|
-
backgroundColor: e.base === "dark" ?
|
|
2509
|
+
backgroundColor: e.base === "dark" ? Xr(0.93, e.color.negative) : e.background.warning
|
|
2483
2510
|
},
|
|
2484
2511
|
paddingLeft: (t.ancestors?.length ?? 0) * 20
|
|
2485
2512
|
}),
|
|
@@ -2502,10 +2529,10 @@ var Xr = oe.div({
|
|
|
2502
2529
|
borderTop: `1.5px solid ${e.color.warning}`
|
|
2503
2530
|
}
|
|
2504
2531
|
}
|
|
2505
|
-
),
|
|
2532
|
+
), Zr = oe.div(({ theme: e, isInteractive: t }) => ({
|
|
2506
2533
|
display: "flex",
|
|
2507
2534
|
"&:hover": t ? {} : { background: e.background.hoverable }
|
|
2508
|
-
})),
|
|
2535
|
+
})), Jr = oe("button", {
|
|
2509
2536
|
shouldForwardProp: /* @__PURE__ */ l((e) => !["call"].includes(e.toString()), "shouldForwardProp")
|
|
2510
2537
|
})(({ theme: e, disabled: t, call: r }) => ({
|
|
2511
2538
|
flex: 1,
|
|
@@ -2527,12 +2554,12 @@ var Xr = oe.div({
|
|
|
2527
2554
|
"& > div": {
|
|
2528
2555
|
opacity: r.status === ue.WAITING ? 0.5 : 1
|
|
2529
2556
|
}
|
|
2530
|
-
})),
|
|
2557
|
+
})), Qr = oe.div({
|
|
2531
2558
|
padding: 6
|
|
2532
|
-
}),
|
|
2559
|
+
}), ea = oe($r)(({ theme: e }) => ({
|
|
2533
2560
|
color: e.textMutedColor,
|
|
2534
2561
|
margin: "0 3px"
|
|
2535
|
-
})),
|
|
2562
|
+
})), ta = oe(Gr)(({ theme: e }) => ({
|
|
2536
2563
|
fontFamily: e.typography.fonts.base
|
|
2537
2564
|
})), R1 = oe("div")(({ theme: e }) => ({
|
|
2538
2565
|
padding: "8px 10px 8px 36px",
|
|
@@ -2542,27 +2569,27 @@ var Xr = oe.div({
|
|
|
2542
2569
|
margin: 0,
|
|
2543
2570
|
padding: 0
|
|
2544
2571
|
}
|
|
2545
|
-
})),
|
|
2572
|
+
})), ra = /* @__PURE__ */ l(({ exception: e }) => {
|
|
2546
2573
|
let t = ve();
|
|
2547
2574
|
if (!e)
|
|
2548
2575
|
return null;
|
|
2576
|
+
if (s0(e))
|
|
2577
|
+
return /* @__PURE__ */ A.createElement(A0, { ...e });
|
|
2549
2578
|
if (i0(e))
|
|
2550
|
-
return /* @__PURE__ */
|
|
2551
|
-
|
|
2552
|
-
return /* @__PURE__ */ z.createElement(R1, null, /* @__PURE__ */ z.createElement(
|
|
2553
|
-
I0,
|
|
2579
|
+
return /* @__PURE__ */ A.createElement(R1, null, /* @__PURE__ */ A.createElement(
|
|
2580
|
+
A0,
|
|
2554
2581
|
{
|
|
2555
2582
|
message: `${e.message}${e.diff ? `
|
|
2556
2583
|
|
|
2557
2584
|
${e.diff}` : ""}`,
|
|
2558
2585
|
style: { padding: 0 }
|
|
2559
2586
|
}
|
|
2560
|
-
), /* @__PURE__ */
|
|
2587
|
+
), /* @__PURE__ */ A.createElement("p", null, "See the full stack trace in the browser console."));
|
|
2561
2588
|
let r = e.message.split(`
|
|
2562
2589
|
|
|
2563
2590
|
`), a = r.length > 1;
|
|
2564
|
-
return /* @__PURE__ */
|
|
2565
|
-
a && /* @__PURE__ */
|
|
2591
|
+
return /* @__PURE__ */ A.createElement(R1, null, /* @__PURE__ */ A.createElement("pre", { dangerouslySetInnerHTML: { __html: t.toHtml(r[0]) } }),
|
|
2592
|
+
a && /* @__PURE__ */ A.createElement("p", null, "See the full stack trace in the browser console."));
|
|
2566
2593
|
}, "Exception"), E1 = /* @__PURE__ */ l(({
|
|
2567
2594
|
call: e,
|
|
2568
2595
|
callsById: t,
|
|
@@ -2574,9 +2601,9 @@ ${e.diff}` : ""}`,
|
|
|
2574
2601
|
toggleCollapsed: i,
|
|
2575
2602
|
pausedAt: s
|
|
2576
2603
|
}) => {
|
|
2577
|
-
let [h, f] =
|
|
2578
|
-
return o ? null : /* @__PURE__ */
|
|
2579
|
-
|
|
2604
|
+
let [h, f] = A.useState(!1), w = !a.goto || !e.interceptable || !!e.ancestors?.length;
|
|
2605
|
+
return o ? null : /* @__PURE__ */ A.createElement(Kr, { call: e, pausedAt: s }, /* @__PURE__ */ A.createElement(Zr, { isInteractive: w }, /* @__PURE__ */ A.createElement(
|
|
2606
|
+
Jr,
|
|
2580
2607
|
{
|
|
2581
2608
|
"aria-label": "Interaction step",
|
|
2582
2609
|
call: e,
|
|
@@ -2585,37 +2612,37 @@ ${e.diff}` : ""}`,
|
|
|
2585
2612
|
onMouseEnter: () => a.goto && f(!0),
|
|
2586
2613
|
onMouseLeave: () => a.goto && f(!1)
|
|
2587
2614
|
},
|
|
2588
|
-
/* @__PURE__ */
|
|
2589
|
-
/* @__PURE__ */
|
|
2590
|
-
), /* @__PURE__ */
|
|
2591
|
-
|
|
2615
|
+
/* @__PURE__ */ A.createElement(g1, { status: h ? ue.ACTIVE : e.status }),
|
|
2616
|
+
/* @__PURE__ */ A.createElement(Yr, { style: { marginLeft: 6, marginBottom: 1 } }, /* @__PURE__ */ A.createElement(Ue, { call: e, callsById: t }))
|
|
2617
|
+
), /* @__PURE__ */ A.createElement(Qr, null, (n?.length ?? 0) > 0 && /* @__PURE__ */ A.createElement(
|
|
2618
|
+
Wr,
|
|
2592
2619
|
{
|
|
2593
2620
|
hasChrome: !1,
|
|
2594
|
-
tooltip: /* @__PURE__ */
|
|
2621
|
+
tooltip: /* @__PURE__ */ A.createElement(ta, { note: `${c ? "Show" : "Hide"} interactions` })
|
|
2595
2622
|
},
|
|
2596
|
-
/* @__PURE__ */
|
|
2597
|
-
))), e.status === ue.ERROR && e.exception?.callId === e.id && /* @__PURE__ */
|
|
2623
|
+
/* @__PURE__ */ A.createElement(ea, { onClick: i }, /* @__PURE__ */ A.createElement(yt, null))
|
|
2624
|
+
))), e.status === ue.ERROR && e.exception?.callId === e.id && /* @__PURE__ */ A.createElement(ra, { exception: e.exception }));
|
|
2598
2625
|
}, "Interaction");
|
|
2599
2626
|
|
|
2600
2627
|
// src/component-testing/components/Subnav.tsx
|
|
2601
2628
|
import C from "react";
|
|
2602
2629
|
import {
|
|
2603
|
-
Bar as
|
|
2604
|
-
Button as
|
|
2605
|
-
IconButton as
|
|
2606
|
-
P as
|
|
2607
|
-
Separator as
|
|
2608
|
-
TooltipNote as
|
|
2609
|
-
WithTooltip as
|
|
2630
|
+
Bar as oa,
|
|
2631
|
+
Button as ca,
|
|
2632
|
+
IconButton as ia,
|
|
2633
|
+
P as sa,
|
|
2634
|
+
Separator as da,
|
|
2635
|
+
TooltipNote as fa,
|
|
2636
|
+
WithTooltip as Ie
|
|
2610
2637
|
} from "storybook/internal/components";
|
|
2611
|
-
import { CallStates as
|
|
2638
|
+
import { CallStates as ha } from "storybook/internal/instrumenter";
|
|
2612
2639
|
import { styled as W } from "storybook/theming";
|
|
2613
2640
|
|
|
2614
2641
|
// src/component-testing/components/StatusBadge.tsx
|
|
2615
|
-
import
|
|
2642
|
+
import aa from "react";
|
|
2616
2643
|
import { CallStates as ce } from "storybook/internal/instrumenter";
|
|
2617
|
-
import { styled as
|
|
2618
|
-
var
|
|
2644
|
+
import { styled as la, typography as z0 } from "storybook/theming";
|
|
2645
|
+
var na = la.div(({ theme: e, status: t }) => ({
|
|
2619
2646
|
padding: "4px 6px 4px 8px;",
|
|
2620
2647
|
borderRadius: "4px",
|
|
2621
2648
|
backgroundColor: {
|
|
@@ -2639,23 +2666,23 @@ var la = aa.div(({ theme: e, status: t }) => ({
|
|
|
2639
2666
|
[ce.ACTIVE]: "Runs",
|
|
2640
2667
|
[ce.WAITING]: "Runs"
|
|
2641
2668
|
}[e];
|
|
2642
|
-
return /* @__PURE__ */
|
|
2669
|
+
return /* @__PURE__ */ aa.createElement(na, { "aria-label": "Status of the test run", status: e }, t);
|
|
2643
2670
|
}, "StatusBadge");
|
|
2644
2671
|
|
|
2645
2672
|
// src/component-testing/components/Subnav.tsx
|
|
2646
|
-
var
|
|
2673
|
+
var ua = W.div(({ theme: e }) => ({
|
|
2674
|
+
boxShadow: `${e.appBorderColor} 0 -1px 0 0 inset`,
|
|
2647
2675
|
background: e.background.app,
|
|
2648
|
-
borderBottom: `1px solid ${e.appBorderColor}`,
|
|
2649
2676
|
position: "sticky",
|
|
2650
2677
|
top: 0,
|
|
2651
2678
|
zIndex: 1
|
|
2652
|
-
})),
|
|
2679
|
+
})), pa = W.nav(({ theme: e }) => ({
|
|
2653
2680
|
height: 40,
|
|
2654
2681
|
display: "flex",
|
|
2655
2682
|
alignItems: "center",
|
|
2656
2683
|
justifyContent: "space-between",
|
|
2657
2684
|
paddingLeft: 15
|
|
2658
|
-
})),
|
|
2685
|
+
})), va = W(ca)(({ theme: e }) => ({
|
|
2659
2686
|
borderRadius: 4,
|
|
2660
2687
|
padding: 6,
|
|
2661
2688
|
color: e.textMutedColor,
|
|
@@ -2664,14 +2691,14 @@ var ha = W.div(({ theme: e }) => ({
|
|
|
2664
2691
|
color: e.color.secondary
|
|
2665
2692
|
}
|
|
2666
2693
|
}
|
|
2667
|
-
})),
|
|
2694
|
+
})), Ae = W(fa)(({ theme: e }) => ({
|
|
2668
2695
|
fontFamily: e.typography.fonts.base
|
|
2669
|
-
})), ze = W(
|
|
2696
|
+
})), ze = W(ia)(({ theme: e }) => ({
|
|
2670
2697
|
color: e.textMutedColor,
|
|
2671
2698
|
margin: "0 3px"
|
|
2672
|
-
})),
|
|
2699
|
+
})), ma = W(da)({
|
|
2673
2700
|
marginTop: 0
|
|
2674
|
-
}),
|
|
2701
|
+
}), wa = W(sa)(({ theme: e }) => ({
|
|
2675
2702
|
color: e.textMutedColor,
|
|
2676
2703
|
justifyContent: "flex-end",
|
|
2677
2704
|
textAlign: "right",
|
|
@@ -2683,14 +2710,14 @@ var ha = W.div(({ theme: e }) => ({
|
|
|
2683
2710
|
})), x1 = W.div({
|
|
2684
2711
|
display: "flex",
|
|
2685
2712
|
alignItems: "center"
|
|
2686
|
-
}),
|
|
2713
|
+
}), ga = W(ze)({
|
|
2687
2714
|
marginLeft: 9
|
|
2688
|
-
}),
|
|
2715
|
+
}), Ra = W(va)({
|
|
2689
2716
|
marginLeft: 9,
|
|
2690
2717
|
marginRight: 9,
|
|
2691
2718
|
marginBottom: 1,
|
|
2692
2719
|
lineHeight: "12px"
|
|
2693
|
-
}),
|
|
2720
|
+
}), Ea = W(ze)(({ theme: e, animating: t, disabled: r }) => ({
|
|
2694
2721
|
opacity: r ? 0.5 : 1,
|
|
2695
2722
|
svg: {
|
|
2696
2723
|
animation: t ? `${e.animation.rotate360} 200ms ease-out` : void 0
|
|
@@ -2702,19 +2729,19 @@ var ha = W.div(({ theme: e }) => ({
|
|
|
2702
2729
|
storyFileName: a,
|
|
2703
2730
|
onScrollToEnd: n
|
|
2704
2731
|
}) => {
|
|
2705
|
-
let o = r ===
|
|
2706
|
-
return /* @__PURE__ */ C.createElement(
|
|
2707
|
-
createElement(x1, null, /* @__PURE__ */ C.createElement(b1, { status: r }), /* @__PURE__ */ C.createElement(
|
|
2708
|
-
o), /* @__PURE__ */ C.createElement(
|
|
2709
|
-
createElement(
|
|
2710
|
-
|
|
2732
|
+
let o = r === ha.ERROR ? "Scroll to error" : "Scroll to end";
|
|
2733
|
+
return /* @__PURE__ */ C.createElement(ua, null, /* @__PURE__ */ C.createElement(oa, null, /* @__PURE__ */ C.createElement(pa, null, /* @__PURE__ */ C.
|
|
2734
|
+
createElement(x1, null, /* @__PURE__ */ C.createElement(b1, { status: r }), /* @__PURE__ */ C.createElement(Ra, { onClick: n, disabled: !n },
|
|
2735
|
+
o), /* @__PURE__ */ C.createElement(ma, null), /* @__PURE__ */ C.createElement(Ie, { trigger: "hover", hasChrome: !1, tooltip: /* @__PURE__ */ C.
|
|
2736
|
+
createElement(Ae, { note: "Go to start" }) }, /* @__PURE__ */ C.createElement(
|
|
2737
|
+
ga,
|
|
2711
2738
|
{
|
|
2712
2739
|
"aria-label": "Go to start",
|
|
2713
2740
|
onClick: e.start,
|
|
2714
2741
|
disabled: !t.start
|
|
2715
2742
|
},
|
|
2716
2743
|
/* @__PURE__ */ C.createElement(bt, null)
|
|
2717
|
-
)), /* @__PURE__ */ C.createElement(
|
|
2744
|
+
)), /* @__PURE__ */ C.createElement(Ie, { trigger: "hover", hasChrome: !1, tooltip: /* @__PURE__ */ C.createElement(Ae, { note: "Go back" }) },
|
|
2718
2745
|
/* @__PURE__ */ C.createElement(
|
|
2719
2746
|
ze,
|
|
2720
2747
|
{
|
|
@@ -2723,7 +2750,7 @@ var ha = W.div(({ theme: e }) => ({
|
|
|
2723
2750
|
disabled: !t.back
|
|
2724
2751
|
},
|
|
2725
2752
|
/* @__PURE__ */ C.createElement(Rt, null)
|
|
2726
|
-
)), /* @__PURE__ */ C.createElement(
|
|
2753
|
+
)), /* @__PURE__ */ C.createElement(Ie, { trigger: "hover", hasChrome: !1, tooltip: /* @__PURE__ */ C.createElement(Ae, { note: "Go forwar\
|
|
2727
2754
|
d" }) }, /* @__PURE__ */ C.createElement(
|
|
2728
2755
|
ze,
|
|
2729
2756
|
{
|
|
@@ -2732,7 +2759,7 @@ d" }) }, /* @__PURE__ */ C.createElement(
|
|
|
2732
2759
|
disabled: !t.next
|
|
2733
2760
|
},
|
|
2734
2761
|
/* @__PURE__ */ C.createElement(Et, null)
|
|
2735
|
-
)), /* @__PURE__ */ C.createElement(
|
|
2762
|
+
)), /* @__PURE__ */ C.createElement(Ie, { trigger: "hover", hasChrome: !1, tooltip: /* @__PURE__ */ C.createElement(Ae, { note: "Go to end" }) },
|
|
2736
2763
|
/* @__PURE__ */ C.createElement(
|
|
2737
2764
|
ze,
|
|
2738
2765
|
{
|
|
@@ -2741,18 +2768,18 @@ d" }) }, /* @__PURE__ */ C.createElement(
|
|
|
2741
2768
|
disabled: !t.end
|
|
2742
2769
|
},
|
|
2743
2770
|
/* @__PURE__ */ C.createElement(xt, null)
|
|
2744
|
-
)), /* @__PURE__ */ C.createElement(
|
|
2745
|
-
/* @__PURE__ */ C.createElement(
|
|
2746
|
-
createElement(x1, null, /* @__PURE__ */ C.createElement(
|
|
2771
|
+
)), /* @__PURE__ */ C.createElement(Ie, { trigger: "hover", hasChrome: !1, tooltip: /* @__PURE__ */ C.createElement(Ae, { note: "Rerun" }) },
|
|
2772
|
+
/* @__PURE__ */ C.createElement(Ea, { "aria-label": "Rerun", onClick: e.rerun }, /* @__PURE__ */ C.createElement(zt, null)))), a && /* @__PURE__ */ C.
|
|
2773
|
+
createElement(x1, null, /* @__PURE__ */ C.createElement(wa, null, a)))));
|
|
2747
2774
|
}, "Subnav");
|
|
2748
2775
|
|
|
2749
2776
|
// src/component-testing/components/TestDiscrepancyMessage.tsx
|
|
2750
2777
|
import M1 from "react";
|
|
2751
|
-
import { Link as
|
|
2752
|
-
import { CallStates as
|
|
2753
|
-
import { useStorybookApi as
|
|
2754
|
-
import { styled as
|
|
2755
|
-
var
|
|
2778
|
+
import { Link as ba } from "storybook/internal/components";
|
|
2779
|
+
import { CallStates as xa } from "storybook/internal/instrumenter";
|
|
2780
|
+
import { useStorybookApi as Ca } from "storybook/manager-api";
|
|
2781
|
+
import { styled as Ma } from "storybook/theming";
|
|
2782
|
+
var ya = Ma.div(({ theme: { color: e, typography: t, background: r } }) => ({
|
|
2756
2783
|
textAlign: "start",
|
|
2757
2784
|
padding: "11px 15px",
|
|
2758
2785
|
fontSize: `${t.size.s2}px`,
|
|
@@ -2773,26 +2800,26 @@ var Ma = Ca.div(({ theme: { color: e, typography: t, background: r } }) => ({
|
|
|
2773
2800
|
boxShadow: "0 0 0 1px rgba(0, 0, 0, 0.1)"
|
|
2774
2801
|
}
|
|
2775
2802
|
})), y1 = /* @__PURE__ */ l(({ browserTestStatus: e }) => {
|
|
2776
|
-
let r =
|
|
2803
|
+
let r = Ca().getDocsUrl({
|
|
2777
2804
|
subpath: q0,
|
|
2778
2805
|
versioned: !0,
|
|
2779
2806
|
renderer: !0
|
|
2780
|
-
}), [a, n] = e ===
|
|
2781
|
-
return /* @__PURE__ */ M1.createElement(
|
|
2782
|
-
createElement(
|
|
2807
|
+
}), [a, n] = e === xa.ERROR ? ["the CLI", "this browser"] : ["this browser", "the CLI"];
|
|
2808
|
+
return /* @__PURE__ */ M1.createElement(ya, null, "This component test passed in ", a, ", but the tests failed in ", n, ".", " ", /* @__PURE__ */ M1.
|
|
2809
|
+
createElement(ba, { href: r, target: "_blank", withArrow: !0 }, "Learn what could cause this"));
|
|
2783
2810
|
}, "TestDiscrepancyMessage");
|
|
2784
2811
|
|
|
2785
2812
|
// src/component-testing/components/InteractionsPanel.tsx
|
|
2786
|
-
var
|
|
2813
|
+
var Aa = we.div(({ theme: e }) => ({
|
|
2787
2814
|
height: "100%",
|
|
2788
2815
|
background: e.background.content
|
|
2789
2816
|
})), I1 = we.div(({ theme: e }) => ({
|
|
2790
2817
|
borderBottom: `1px solid ${e.appBorderColor}`,
|
|
2791
|
-
backgroundColor: e.base === "dark" ?
|
|
2818
|
+
backgroundColor: e.base === "dark" ? Ia(0.93, e.color.negative) : e.background.warning,
|
|
2792
2819
|
padding: 15,
|
|
2793
2820
|
fontSize: e.typography.size.s2 - 1,
|
|
2794
2821
|
lineHeight: "19px"
|
|
2795
|
-
})),
|
|
2822
|
+
})), L0 = we.code(({ theme: e }) => ({
|
|
2796
2823
|
margin: "0 1px",
|
|
2797
2824
|
padding: 3,
|
|
2798
2825
|
fontSize: e.typography.size.s1 - 1,
|
|
@@ -2801,13 +2828,13 @@ var Ia = we.div(({ theme: e }) => ({
|
|
|
2801
2828
|
background: "rgba(0, 0, 0, 0.05)",
|
|
2802
2829
|
border: `1px solid ${e.appBorderColor}`,
|
|
2803
2830
|
borderRadius: 3
|
|
2804
|
-
})),
|
|
2831
|
+
})), A1 = we.div({
|
|
2805
2832
|
paddingBottom: 4,
|
|
2806
2833
|
fontWeight: "bold"
|
|
2807
2834
|
}), za = we.p({
|
|
2808
2835
|
margin: 0,
|
|
2809
2836
|
padding: "0 0 20px"
|
|
2810
|
-
}),
|
|
2837
|
+
}), z1 = we.pre(({ theme: e }) => ({
|
|
2811
2838
|
margin: 0,
|
|
2812
2839
|
padding: 0,
|
|
2813
2840
|
"&:not(:last-child)": {
|
|
@@ -2832,7 +2859,7 @@ var Ia = we.div(({ theme: e }) => ({
|
|
|
2832
2859
|
browserTestStatus: T
|
|
2833
2860
|
}) {
|
|
2834
2861
|
let B = ve();
|
|
2835
|
-
return /* @__PURE__ */ S.createElement(
|
|
2862
|
+
return /* @__PURE__ */ S.createElement(Aa, null, M && /* @__PURE__ */ S.createElement(y1, { browserTestStatus: T }), (n.length > 0 || c) &&
|
|
2836
2863
|
/* @__PURE__ */ S.createElement(
|
|
2837
2864
|
C1,
|
|
2838
2865
|
{
|
|
@@ -2842,34 +2869,34 @@ var Ia = we.div(({ theme: e }) => ({
|
|
|
2842
2869
|
storyFileName: o,
|
|
2843
2870
|
onScrollToEnd: w
|
|
2844
2871
|
}
|
|
2845
|
-
), /* @__PURE__ */ S.createElement("div", { "aria-label": "Interactions list" }, n.map((
|
|
2872
|
+
), /* @__PURE__ */ S.createElement("div", { "aria-label": "Interactions list" }, n.map((z) => /* @__PURE__ */ S.createElement(
|
|
2846
2873
|
E1,
|
|
2847
2874
|
{
|
|
2848
|
-
key:
|
|
2849
|
-
call:
|
|
2875
|
+
key: z.id,
|
|
2876
|
+
call: z,
|
|
2850
2877
|
callsById: t,
|
|
2851
2878
|
controls: r,
|
|
2852
2879
|
controlStates: a,
|
|
2853
|
-
childCallIds:
|
|
2854
|
-
isHidden:
|
|
2855
|
-
isCollapsed:
|
|
2856
|
-
toggleCollapsed:
|
|
2880
|
+
childCallIds: z.childCallIds,
|
|
2881
|
+
isHidden: z.isHidden,
|
|
2882
|
+
isCollapsed: z.isCollapsed,
|
|
2883
|
+
toggleCollapsed: z.toggleCollapsed,
|
|
2857
2884
|
pausedAt: f
|
|
2858
2885
|
}
|
|
2859
|
-
))), i && !wt(i) && /* @__PURE__ */ S.createElement(I1, null, /* @__PURE__ */ S.createElement(
|
|
2860
|
-
|
|
2861
|
-
|
|
2886
|
+
))), i && !wt(i) && /* @__PURE__ */ S.createElement(I1, null, /* @__PURE__ */ S.createElement(A1, null, "Caught exception in ", /* @__PURE__ */ S.createElement(
|
|
2887
|
+
L0, null, "play"), " function"), /* @__PURE__ */ S.createElement(
|
|
2888
|
+
z1,
|
|
2862
2889
|
{
|
|
2863
2890
|
"data-chromatic": "ignore",
|
|
2864
2891
|
dangerouslySetInnerHTML: {
|
|
2865
2892
|
__html: B.toHtml(L1(i))
|
|
2866
2893
|
}
|
|
2867
2894
|
}
|
|
2868
|
-
)), s && /* @__PURE__ */ S.createElement(I1, null, /* @__PURE__ */ S.createElement(
|
|
2895
|
+
)), s && /* @__PURE__ */ S.createElement(I1, null, /* @__PURE__ */ S.createElement(A1, null, "Unhandled Errors"), /* @__PURE__ */ S.createElement(
|
|
2869
2896
|
za, null, "Found ", s.length, " unhandled error", s.length > 1 ? "s" : "", " ", "while running the play function. This might cause false\
|
|
2870
|
-
positive assertions. Resolve unhandled errors or ignore unhandled errors with setting the", /* @__PURE__ */ S.createElement(
|
|
2871
|
-
.dangerouslyIgnoreUnhandledErrors"), " ", "parameter to ", /* @__PURE__ */ S.createElement(
|
|
2872
|
-
|
|
2897
|
+
positive assertions. Resolve unhandled errors or ignore unhandled errors with setting the", /* @__PURE__ */ S.createElement(L0, null, "test\
|
|
2898
|
+
.dangerouslyIgnoreUnhandledErrors"), " ", "parameter to ", /* @__PURE__ */ S.createElement(L0, null, "true"), "."), s.map((z, _) => /* @__PURE__ */ S.createElement(
|
|
2899
|
+
z1, { key: _, "data-chromatic": "ignore" }, L1(z)))), /* @__PURE__ */ S.createElement("div", { ref: u }), !h && !i && n.length === 0 && /* @__PURE__ */ S.createElement(
|
|
2873
2900
|
Ht, null));
|
|
2874
2901
|
}, "InteractionsPanel")
|
|
2875
2902
|
);
|
|
@@ -2885,7 +2912,7 @@ var k0 = {
|
|
|
2885
2912
|
goto: !1,
|
|
2886
2913
|
next: !1,
|
|
2887
2914
|
end: !1
|
|
2888
|
-
},
|
|
2915
|
+
}, Pa = {
|
|
2889
2916
|
[U.DONE]: "status-value:success",
|
|
2890
2917
|
[U.ERROR]: "status-value:error",
|
|
2891
2918
|
[U.ACTIVE]: "status-value:pending",
|
|
@@ -2912,9 +2939,9 @@ var k0 = {
|
|
|
2912
2939
|
toggleCollapsed: /* @__PURE__ */ l(() => a((s) => (s.has(c.id) ? s.delete(c.id) : s.add(c.id), new Set(s))), "toggleCollapsed")
|
|
2913
2940
|
};
|
|
2914
2941
|
});
|
|
2915
|
-
}, "getInteractions"),
|
|
2942
|
+
}, "getInteractions"), _1 = La(/* @__PURE__ */ l(function({ storyId: t }) {
|
|
2916
2943
|
let { statusValue: r, testRunId: a } = ka((b) => {
|
|
2917
|
-
let I = b[t]?.[
|
|
2944
|
+
let I = b[t]?.[P0];
|
|
2918
2945
|
return {
|
|
2919
2946
|
statusValue: I?.value,
|
|
2920
2947
|
testRunId: I?.data?.testRunId
|
|
@@ -2929,24 +2956,24 @@ var k0 = {
|
|
|
2929
2956
|
caughtException: void 0,
|
|
2930
2957
|
interactionsCount: 0,
|
|
2931
2958
|
unhandledErrors: void 0
|
|
2932
|
-
}), [c, i] =
|
|
2959
|
+
}), [c, i] = T0(void 0), [s, h] = T0(/* @__PURE__ */ new Set()), [f, w] = T0(!1), {
|
|
2933
2960
|
controlStates: u = k0,
|
|
2934
2961
|
isErrored: M = !1,
|
|
2935
2962
|
pausedAt: T = void 0,
|
|
2936
2963
|
interactions: B = [],
|
|
2937
|
-
isPlaying:
|
|
2938
|
-
caughtException:
|
|
2964
|
+
isPlaying: z = !1,
|
|
2965
|
+
caughtException: _ = void 0,
|
|
2939
2966
|
unhandledErrors: K = void 0
|
|
2940
|
-
} = n, Q =
|
|
2941
|
-
H =
|
|
2942
|
-
|
|
2967
|
+
} = n, Q = B0([]), ee = B0(/* @__PURE__ */ new Map()), O = /* @__PURE__ */ l(({ status: b, ...I }) => ee.current.set(I.id, I), "setCall"),
|
|
2968
|
+
H = B0();
|
|
2969
|
+
S0(() => {
|
|
2943
2970
|
let b;
|
|
2944
|
-
return
|
|
2971
|
+
return _0.IntersectionObserver && (b = new _0.IntersectionObserver(
|
|
2945
2972
|
([I]) => i(I.isIntersecting ? void 0 : I.target),
|
|
2946
|
-
{ root:
|
|
2973
|
+
{ root: _0.document.querySelector("#panel-tab-content") }
|
|
2947
2974
|
), H.current && b.observe(H.current)), () => b?.disconnect();
|
|
2948
2975
|
}, []);
|
|
2949
|
-
let
|
|
2976
|
+
let k = Oa(
|
|
2950
2977
|
{
|
|
2951
2978
|
[pe.CALL]: O,
|
|
2952
2979
|
[pe.SYNC]: (b) => {
|
|
@@ -2962,11 +2989,11 @@ var k0 = {
|
|
|
2962
2989
|
controlStates: b.controlStates,
|
|
2963
2990
|
pausedAt: b.pausedAt,
|
|
2964
2991
|
interactions: $,
|
|
2965
|
-
interactionsCount: $.filter(({ method:
|
|
2992
|
+
interactionsCount: $.filter(({ method: Ye }) => Ye !== "step").length
|
|
2966
2993
|
};
|
|
2967
2994
|
}), Q.current = b.logItems;
|
|
2968
2995
|
},
|
|
2969
|
-
[
|
|
2996
|
+
[Ba]: (b) => {
|
|
2970
2997
|
if (b.newPhase === "preparing") {
|
|
2971
2998
|
o({
|
|
2972
2999
|
controlStates: k0,
|
|
@@ -2991,19 +3018,19 @@ var k0 = {
|
|
|
2991
3018
|
} : {}
|
|
2992
3019
|
}));
|
|
2993
3020
|
},
|
|
2994
|
-
[
|
|
3021
|
+
[Ta]: () => {
|
|
2995
3022
|
o((b) => ({ ...b, isErrored: !0, hasException: !0 }));
|
|
2996
3023
|
},
|
|
2997
|
-
[
|
|
3024
|
+
[Sa]: (b) => {
|
|
2998
3025
|
o((I) => ({ ...I, caughtException: b, hasException: !0 }));
|
|
2999
3026
|
},
|
|
3000
|
-
[
|
|
3027
|
+
[_a]: (b) => {
|
|
3001
3028
|
o((I) => ({ ...I, unhandledErrors: b, hasException: !0 }));
|
|
3002
3029
|
}
|
|
3003
3030
|
},
|
|
3004
3031
|
[s]
|
|
3005
3032
|
);
|
|
3006
|
-
|
|
3033
|
+
S0(() => {
|
|
3007
3034
|
o((b) => {
|
|
3008
3035
|
let I = T1({
|
|
3009
3036
|
log: Q.current,
|
|
@@ -3020,23 +3047,23 @@ var k0 = {
|
|
|
3020
3047
|
}, [o, s]);
|
|
3021
3048
|
let ie = B1(
|
|
3022
3049
|
() => ({
|
|
3023
|
-
start: /* @__PURE__ */ l(() =>
|
|
3024
|
-
back: /* @__PURE__ */ l(() =>
|
|
3025
|
-
goto: /* @__PURE__ */ l((b) =>
|
|
3026
|
-
next: /* @__PURE__ */ l(() =>
|
|
3027
|
-
end: /* @__PURE__ */ l(() =>
|
|
3050
|
+
start: /* @__PURE__ */ l(() => k(pe.START, { storyId: t }), "start"),
|
|
3051
|
+
back: /* @__PURE__ */ l(() => k(pe.BACK, { storyId: t }), "back"),
|
|
3052
|
+
goto: /* @__PURE__ */ l((b) => k(pe.GOTO, { storyId: t, callId: b }), "goto"),
|
|
3053
|
+
next: /* @__PURE__ */ l(() => k(pe.NEXT, { storyId: t }), "next"),
|
|
3054
|
+
end: /* @__PURE__ */ l(() => k(pe.END, { storyId: t }), "end"),
|
|
3028
3055
|
rerun: /* @__PURE__ */ l(() => {
|
|
3029
|
-
|
|
3056
|
+
k(Ha, { storyId: t });
|
|
3030
3057
|
}, "rerun")
|
|
3031
3058
|
}),
|
|
3032
|
-
[
|
|
3033
|
-
), ge =
|
|
3034
|
-
block: "end" }), "scrollToTarget"), se = !!
|
|
3035
|
-
B.some((b) => b.status === U.ERROR), Z = B1(() => !
|
|
3036
|
-
return
|
|
3037
|
-
if (Z && r && r !== "status-value:pending" && r !==
|
|
3059
|
+
[k, t]
|
|
3060
|
+
), ge = Da("fileName", ""), [Re] = ge.toString().split("/").slice(-1), Le = /* @__PURE__ */ l(() => c?.scrollIntoView({ behavior: "smooth",
|
|
3061
|
+
block: "end" }), "scrollToTarget"), se = !!_ || !!K || // @ts-expect-error TODO
|
|
3062
|
+
B.some((b) => b.status === U.ERROR), Z = B1(() => !z && (B.length > 0 || se) ? se ? U.ERROR : U.DONE : z ? U.ACTIVE : void 0, [z, B, se]);
|
|
3063
|
+
return S0(() => {
|
|
3064
|
+
if (Z && r && r !== "status-value:pending" && r !== Pa[Z]) {
|
|
3038
3065
|
let I = setTimeout(
|
|
3039
|
-
() => w(($) => ($ ||
|
|
3066
|
+
() => w(($) => ($ || k(D0, {
|
|
3040
3067
|
type: "test-discrepancy",
|
|
3041
3068
|
payload: {
|
|
3042
3069
|
browserStatus: Z === U.DONE ? "PASS" : "FAIL",
|
|
@@ -3050,8 +3077,8 @@ var k0 = {
|
|
|
3050
3077
|
return () => clearTimeout(I);
|
|
3051
3078
|
} else
|
|
3052
3079
|
w(!1);
|
|
3053
|
-
}, [
|
|
3054
|
-
omponent-tests" }, /* @__PURE__ */
|
|
3080
|
+
}, [k, Z, r, t, a]), M ? /* @__PURE__ */ H0.createElement(S1, { key: "component-tests" }) : /* @__PURE__ */ H0.createElement(S1, { key: "c\
|
|
3081
|
+
omponent-tests" }, /* @__PURE__ */ H0.createElement(
|
|
3055
3082
|
H1,
|
|
3056
3083
|
{
|
|
3057
3084
|
hasResultMismatch: f,
|
|
@@ -3062,9 +3089,9 @@ omponent-tests" }, /* @__PURE__ */ L0.createElement(
|
|
|
3062
3089
|
interactions: B,
|
|
3063
3090
|
fileName: Re,
|
|
3064
3091
|
hasException: se,
|
|
3065
|
-
caughtException:
|
|
3092
|
+
caughtException: _,
|
|
3066
3093
|
unhandledErrors: K,
|
|
3067
|
-
isPlaying:
|
|
3094
|
+
isPlaying: z,
|
|
3068
3095
|
pausedAt: T,
|
|
3069
3096
|
endRef: H,
|
|
3070
3097
|
onScrollToEnd: c && Le
|
|
@@ -3073,27 +3100,27 @@ omponent-tests" }, /* @__PURE__ */ L0.createElement(
|
|
|
3073
3100
|
}, "PanelMemoized"));
|
|
3074
3101
|
|
|
3075
3102
|
// src/component-testing/components/PanelTitle.tsx
|
|
3076
|
-
import
|
|
3077
|
-
import { Badge as
|
|
3078
|
-
import { useAddonState as qa } from "storybook/manager-api";
|
|
3079
|
-
function
|
|
3080
|
-
let [
|
|
3081
|
-
return /* @__PURE__ */
|
|
3082
|
-
|
|
3083
|
-
|
|
3103
|
+
import We from "react";
|
|
3104
|
+
import { Badge as k1 } from "storybook/internal/components";
|
|
3105
|
+
import { useAddonState as qa, useStorybookApi as Na } from "storybook/manager-api";
|
|
3106
|
+
function V1() {
|
|
3107
|
+
let t = Na().getSelectedPanel(), [r = {}] = qa(de), { hasException: a, interactionsCount: n } = r;
|
|
3108
|
+
return /* @__PURE__ */ We.createElement("div", { style: { display: "flex", alignItems: "center", gap: 6 } }, /* @__PURE__ */ We.createElement(
|
|
3109
|
+
"span", null, "Component tests"), n && !a ? /* @__PURE__ */ We.createElement(k1, { compact: !0, status: t === Ee ? "active" : "neutral" },
|
|
3110
|
+
n) : null, a ? /* @__PURE__ */ We.createElement(k1, { compact: !0, status: t === Ee ? "active" : "negative" }, n) : null);
|
|
3084
3111
|
}
|
|
3085
|
-
l(
|
|
3112
|
+
l(V1, "PanelTitle");
|
|
3086
3113
|
|
|
3087
3114
|
// src/component-testing/manager.tsx
|
|
3088
3115
|
O1.register(de, () => {
|
|
3089
3116
|
let e = /* @__PURE__ */ l(({ state: t }) => ({
|
|
3090
3117
|
storyId: t.storyId
|
|
3091
3118
|
}), "filter");
|
|
3092
|
-
O1.add(
|
|
3093
|
-
type:
|
|
3094
|
-
title: /* @__PURE__ */ l(() => /* @__PURE__ */
|
|
3119
|
+
O1.add(Ee, {
|
|
3120
|
+
type: Ua.PANEL,
|
|
3121
|
+
title: /* @__PURE__ */ l(() => /* @__PURE__ */ Xe.createElement(V1, null), "title"),
|
|
3095
3122
|
match: /* @__PURE__ */ l(({ viewMode: t }) => t === "story", "match"),
|
|
3096
|
-
render: /* @__PURE__ */ l(({ active: t }) => /* @__PURE__ */
|
|
3097
|
-
filter: e }, ({ storyId: r }) => /* @__PURE__ */
|
|
3123
|
+
render: /* @__PURE__ */ l(({ active: t }) => /* @__PURE__ */ Xe.createElement(ja, { active: !!t }, /* @__PURE__ */ Xe.createElement(Fa, {
|
|
3124
|
+
filter: e }, ({ storyId: r }) => /* @__PURE__ */ Xe.createElement(_1, { storyId: r }))), "render")
|
|
3098
3125
|
});
|
|
3099
3126
|
});
|