storybook 9.0.0-alpha.10 → 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 +66 -71
- package/dist/bin/index.js +59 -64
- package/dist/channels/index.cjs +17 -17
- package/dist/channels/index.js +3 -3
- package/dist/cli/bin/index.cjs +80 -80
- package/dist/cli/bin/index.js +83 -83
- 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 +59 -68
- package/dist/common/index.d.ts +1 -6
- package/dist/common/index.js +91 -100
- package/dist/component-testing/index.cjs +23 -0
- package/dist/component-testing/index.d.ts +3 -0
- package/dist/component-testing/index.js +5 -0
- package/dist/component-testing/manager.css +170 -0
- package/dist/component-testing/manager.js +3126 -0
- package/dist/component-testing/preview.cjs +40 -0
- package/dist/component-testing/preview.d.ts +5 -0
- package/dist/component-testing/preview.js +25 -0
- package/dist/components/index.cjs +5515 -5781
- package/dist/components/index.d.ts +3 -254
- package/dist/components/index.js +7296 -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 +1754 -1730
- package/dist/core-server/presets/common-preset.js +1852 -1828
- 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/instrumenter/index.cjs +475 -468
- package/dist/instrumenter/index.js +949 -950
- package/dist/manager/globals-module-info.cjs +15 -17
- package/dist/manager/globals-module-info.js +4 -6
- package/dist/manager/globals-runtime.js +56352 -50867
- package/dist/manager/runtime.js +4958 -4440
- package/dist/manager-api/index.cjs +1153 -1136
- package/dist/manager-api/index.d.ts +106 -97
- package/dist/manager-api/index.js +810 -795
- package/dist/preview/runtime.js +38453 -37289
- package/dist/preview-api/index.cjs +1098 -1211
- package/dist/preview-api/index.d.ts +10 -23
- package/dist/preview-api/index.js +1457 -1571
- 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 +25 -4
package/dist/actions/manager.js
CHANGED
|
@@ -2,25 +2,25 @@ var He = Object.defineProperty;
|
|
|
2
2
|
var l = (e, t) => He(e, "name", { value: t, configurable: !0 });
|
|
3
3
|
|
|
4
4
|
// src/actions/manager.tsx
|
|
5
|
-
import
|
|
6
|
-
import { Badge as Kt
|
|
7
|
-
import { STORY_CHANGED as
|
|
8
|
-
import { addons as Me, types as
|
|
5
|
+
import G from "react";
|
|
6
|
+
import { Badge as Kt } from "storybook/internal/components";
|
|
7
|
+
import { STORY_CHANGED as qt } from "storybook/internal/core-events";
|
|
8
|
+
import { addons as Me, types as Qt, useAddonState as er, useChannel as tr, useStorybookApi as rr } from "storybook/manager-api";
|
|
9
9
|
|
|
10
10
|
// src/actions/constants.ts
|
|
11
|
-
var
|
|
11
|
+
var ce = "actions", b = "storybook/actions", J = `${b}/panel`, D = `${b}/action-event`, U = `${b}/action-clear`;
|
|
12
12
|
|
|
13
13
|
// src/actions/containers/ActionLogger/index.tsx
|
|
14
14
|
import $t, { Component as Zt } from "react";
|
|
15
15
|
import { STORY_CHANGED as xe } from "storybook/internal/core-events";
|
|
16
16
|
|
|
17
17
|
// ../node_modules/dequal/dist/index.mjs
|
|
18
|
-
var
|
|
19
|
-
function
|
|
18
|
+
var pe = Object.prototype.hasOwnProperty;
|
|
19
|
+
function Ee(e, t, r) {
|
|
20
20
|
for (r of e.keys())
|
|
21
21
|
if (L(r, t)) return r;
|
|
22
22
|
}
|
|
23
|
-
l(
|
|
23
|
+
l(Ee, "find");
|
|
24
24
|
function L(e, t) {
|
|
25
25
|
var r, n, o;
|
|
26
26
|
if (e === t) return !0;
|
|
@@ -36,14 +36,14 @@ function L(e, t) {
|
|
|
36
36
|
if (e.size !== t.size)
|
|
37
37
|
return !1;
|
|
38
38
|
for (n of e)
|
|
39
|
-
if (o = n, o && typeof o == "object" && (o =
|
|
39
|
+
if (o = n, o && typeof o == "object" && (o = Ee(t, o), !o) || !t.has(o)) return !1;
|
|
40
40
|
return !0;
|
|
41
41
|
}
|
|
42
42
|
if (r === Map) {
|
|
43
43
|
if (e.size !== t.size)
|
|
44
44
|
return !1;
|
|
45
45
|
for (n of e)
|
|
46
|
-
if (o = n[0], o && typeof o == "object" && (o =
|
|
46
|
+
if (o = n[0], o && typeof o == "object" && (o = Ee(t, o), !o) || !L(n[1], t.get(o)))
|
|
47
47
|
return !1;
|
|
48
48
|
return !0;
|
|
49
49
|
}
|
|
@@ -62,7 +62,7 @@ function L(e, t) {
|
|
|
62
62
|
if (!r || typeof e == "object") {
|
|
63
63
|
n = 0;
|
|
64
64
|
for (r in e)
|
|
65
|
-
if (
|
|
65
|
+
if (pe.call(e, r) && ++n && !pe.call(t, r) || !(r in t) || !L(e[r], t[r])) return !1;
|
|
66
66
|
return Object.keys(t).length === n;
|
|
67
67
|
}
|
|
68
68
|
}
|
|
@@ -71,47 +71,47 @@ function L(e, t) {
|
|
|
71
71
|
l(L, "dequal");
|
|
72
72
|
|
|
73
73
|
// src/actions/components/ActionLogger/index.tsx
|
|
74
|
-
import
|
|
74
|
+
import C, { Fragment as Ht, forwardRef as Vt, useEffect as jt, useRef as kt } from "react";
|
|
75
75
|
import { ActionBar as Ft, ScrollArea as Gt } from "storybook/internal/components";
|
|
76
76
|
|
|
77
77
|
// ../node_modules/react-inspector/dist/index.mjs
|
|
78
|
-
import
|
|
78
|
+
import X from "react";
|
|
79
79
|
import M, { useContext as Ke, useCallback as qe, useLayoutEffect as Qe, useState as et, memo as ge } from "react";
|
|
80
80
|
import { createContext as tt } from "react";
|
|
81
81
|
import R, { Children as rt, memo as nt } from "react";
|
|
82
82
|
import ue, { createContext as ot, useContext as lt, useMemo as at } from "react";
|
|
83
83
|
import B from "react";
|
|
84
|
-
import
|
|
84
|
+
import Et from "react";
|
|
85
85
|
import m from "react";
|
|
86
86
|
import _ from "react";
|
|
87
87
|
import x from "react";
|
|
88
|
-
import
|
|
89
|
-
import
|
|
88
|
+
import H, { useCallback as de, useState as At } from "react";
|
|
89
|
+
import y from "react";
|
|
90
90
|
import h from "react";
|
|
91
|
-
import I, { useCallback as me, useState as
|
|
91
|
+
import I, { useCallback as me, useState as yt } from "react";
|
|
92
92
|
import It from "react";
|
|
93
93
|
import u from "react";
|
|
94
|
-
import
|
|
95
|
-
var Ve = Object.create,
|
|
96
|
-
Fe = Object.prototype.hasOwnProperty,
|
|
94
|
+
import Y from "react";
|
|
95
|
+
var Ve = Object.create, K = Object.defineProperty, je = Object.getOwnPropertyDescriptor, Ae = Object.getOwnPropertyNames, ke = Object.getPrototypeOf,
|
|
96
|
+
Fe = Object.prototype.hasOwnProperty, q = /* @__PURE__ */ l((e, t) => /* @__PURE__ */ l(function() {
|
|
97
97
|
return t || (0, e[Ae(e)[0]])((t = { exports: {} }).exports, t), t.exports;
|
|
98
98
|
}, "__require"), "__commonJS"), Ge = /* @__PURE__ */ l((e, t) => {
|
|
99
99
|
for (var r in t)
|
|
100
|
-
|
|
100
|
+
K(e, r, { get: t[r], enumerable: !0 });
|
|
101
101
|
}, "__export"), Je = /* @__PURE__ */ l((e, t, r, n) => {
|
|
102
102
|
if (t && typeof t == "object" || typeof t == "function")
|
|
103
103
|
for (let o of Ae(t))
|
|
104
|
-
!Fe.call(e, o) && o !== r &&
|
|
104
|
+
!Fe.call(e, o) && o !== r && K(e, o, { get: /* @__PURE__ */ l(() => t[o], "get"), enumerable: !(n = je(t, o)) || n.enumerable });
|
|
105
105
|
return e;
|
|
106
|
-
}, "__copyProps"), We = /* @__PURE__ */ l((e, t, r) => (r = e != null ? Ve(ke(e)) : {}, Je(t || !e || !e.__esModule ?
|
|
107
|
-
enumerable: !0 }) : r, e)), "__toESM"), Ye =
|
|
106
|
+
}, "__copyProps"), We = /* @__PURE__ */ l((e, t, r) => (r = e != null ? Ve(ke(e)) : {}, Je(t || !e || !e.__esModule ? K(r, "default", { value: e,
|
|
107
|
+
enumerable: !0 }) : r, e)), "__toESM"), Ye = q({
|
|
108
108
|
"node_modules/is-object/index.js"(e, t) {
|
|
109
109
|
"use strict";
|
|
110
110
|
t.exports = /* @__PURE__ */ l(function(n) {
|
|
111
111
|
return typeof n == "object" && n !== null;
|
|
112
112
|
}, "isObject");
|
|
113
113
|
}
|
|
114
|
-
}), Xe =
|
|
114
|
+
}), Xe = q({
|
|
115
115
|
"node_modules/is-window/index.js"(e, t) {
|
|
116
116
|
"use strict";
|
|
117
117
|
t.exports = function(r) {
|
|
@@ -121,7 +121,7 @@ enumerable: !0 }) : r, e)), "__toESM"), Ye = K({
|
|
|
121
121
|
return n === n.window;
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
|
-
}), $e =
|
|
124
|
+
}), $e = q({
|
|
125
125
|
"node_modules/is-dom/index.js"(e, t) {
|
|
126
126
|
var r = Ye(), n = Xe();
|
|
127
127
|
function o(a) {
|
|
@@ -129,8 +129,8 @@ enumerable: !0 }) : r, e)), "__toESM"), Ye = K({
|
|
|
129
129
|
}
|
|
130
130
|
l(o, "isNode"), t.exports = o;
|
|
131
131
|
}
|
|
132
|
-
}),
|
|
133
|
-
Ge(
|
|
132
|
+
}), k = {};
|
|
133
|
+
Ge(k, {
|
|
134
134
|
chromeDark: /* @__PURE__ */ l(() => Ze, "chromeDark"),
|
|
135
135
|
chromeLight: /* @__PURE__ */ l(() => ze, "chromeLight")
|
|
136
136
|
});
|
|
@@ -212,7 +212,7 @@ var Ze = {
|
|
|
212
212
|
TABLE_DATA_BACKGROUND_IMAGE: "linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",
|
|
213
213
|
TABLE_DATA_BACKGROUND_SIZE: "128px 32px"
|
|
214
214
|
}, Ne = tt([{}, () => {
|
|
215
|
-
}]),
|
|
215
|
+
}]), W = {
|
|
216
216
|
WebkitTouchCallout: "none",
|
|
217
217
|
WebkitUserSelect: "none",
|
|
218
218
|
KhtmlUserSelect: "none",
|
|
@@ -220,7 +220,7 @@ var Ze = {
|
|
|
220
220
|
msUserSelect: "none",
|
|
221
221
|
OUserSelect: "none",
|
|
222
222
|
userSelect: "none"
|
|
223
|
-
},
|
|
223
|
+
}, V = /* @__PURE__ */ l((e) => ({
|
|
224
224
|
DOMNodePreview: {
|
|
225
225
|
htmlOpenTag: {
|
|
226
226
|
base: {
|
|
@@ -327,7 +327,7 @@ var Ze = {
|
|
|
327
327
|
whiteSpace: "pre",
|
|
328
328
|
fontSize: e.ARROW_FONT_SIZE,
|
|
329
329
|
marginRight: e.ARROW_MARGIN_RIGHT,
|
|
330
|
-
...
|
|
330
|
+
...W
|
|
331
331
|
},
|
|
332
332
|
treeNodeArrow: {
|
|
333
333
|
base: {
|
|
@@ -338,7 +338,7 @@ var Ze = {
|
|
|
338
338
|
...parseFloat(e.ARROW_ANIMATION_DURATION) > 0 ? {
|
|
339
339
|
transition: `transform ${e.ARROW_ANIMATION_DURATION} ease 0s`
|
|
340
340
|
} : {},
|
|
341
|
-
...
|
|
341
|
+
...W
|
|
342
342
|
},
|
|
343
343
|
expanded: {
|
|
344
344
|
WebkitTransform: "rotateZ(90deg)",
|
|
@@ -471,21 +471,21 @@ var Ze = {
|
|
|
471
471
|
marginTop: -7,
|
|
472
472
|
color: e.TABLE_SORT_ICON_COLOR,
|
|
473
473
|
fontSize: 12,
|
|
474
|
-
...
|
|
474
|
+
...W
|
|
475
475
|
}
|
|
476
|
-
}), "createTheme"),
|
|
477
|
-
({ theme: r =
|
|
476
|
+
}), "createTheme"), $ = "chromeLight", ye = ot(V(k[$])), g = /* @__PURE__ */ l((e) => lt(ye)[e], "useStyles"), Q = /* @__PURE__ */ l((e) => /* @__PURE__ */ l(
|
|
477
|
+
({ theme: r = $, ...n }) => {
|
|
478
478
|
let o = at(() => {
|
|
479
479
|
switch (Object.prototype.toString.call(r)) {
|
|
480
480
|
case "[object String]":
|
|
481
|
-
return
|
|
481
|
+
return V(k[r]);
|
|
482
482
|
case "[object Object]":
|
|
483
|
-
return
|
|
483
|
+
return V(r);
|
|
484
484
|
default:
|
|
485
|
-
return
|
|
485
|
+
return V(k[$]);
|
|
486
486
|
}
|
|
487
487
|
}, [r]);
|
|
488
|
-
return /* @__PURE__ */ ue.createElement(
|
|
488
|
+
return /* @__PURE__ */ ue.createElement(ye.Provider, {
|
|
489
489
|
value: o
|
|
490
490
|
}, /* @__PURE__ */ ue.createElement(e, {
|
|
491
491
|
...n
|
|
@@ -498,7 +498,7 @@ var Ze = {
|
|
|
498
498
|
}, "\u25B6"), "Arrow"), it = nt((e) => {
|
|
499
499
|
e = {
|
|
500
500
|
expanded: !0,
|
|
501
|
-
nodeRenderer: /* @__PURE__ */ l(({ name:
|
|
501
|
+
nodeRenderer: /* @__PURE__ */ l(({ name: E }) => /* @__PURE__ */ R.createElement("span", null, E), "nodeRenderer"),
|
|
502
502
|
onClick: /* @__PURE__ */ l(() => {
|
|
503
503
|
}, "onClick"),
|
|
504
504
|
shouldShowArrow: !1,
|
|
@@ -506,7 +506,7 @@ var Ze = {
|
|
|
506
506
|
...e
|
|
507
507
|
};
|
|
508
508
|
let { expanded: t, onClick: r, children: n, nodeRenderer: o, title: a, shouldShowArrow: c, shouldShowPlaceholder: s } = e, i = g("TreeNode"),
|
|
509
|
-
|
|
509
|
+
p = o;
|
|
510
510
|
return /* @__PURE__ */ R.createElement("li", {
|
|
511
511
|
"aria-expanded": t,
|
|
512
512
|
role: "treeitem",
|
|
@@ -520,52 +520,52 @@ var Ze = {
|
|
|
520
520
|
styles: i.treeNodeArrow
|
|
521
521
|
}) : s && /* @__PURE__ */ R.createElement("span", {
|
|
522
522
|
style: i.treeNodePlaceholder
|
|
523
|
-
}, "\xA0"), /* @__PURE__ */ R.createElement(
|
|
523
|
+
}, "\xA0"), /* @__PURE__ */ R.createElement(p, {
|
|
524
524
|
...e
|
|
525
525
|
})), /* @__PURE__ */ R.createElement("ol", {
|
|
526
526
|
role: "group",
|
|
527
527
|
style: i.treeNodeChildNodesContainer
|
|
528
528
|
}, t ? n : void 0));
|
|
529
|
-
}),
|
|
530
|
-
function
|
|
529
|
+
}), F = "$", Oe = "*";
|
|
530
|
+
function j(e, t) {
|
|
531
531
|
return !t(e).next().done;
|
|
532
532
|
}
|
|
533
|
-
l(
|
|
534
|
-
var ct = /* @__PURE__ */ l((e) => Array.from({ length: e }, (t, r) => [
|
|
535
|
-
PathsFromLevel"),
|
|
533
|
+
l(j, "hasChildNodes");
|
|
534
|
+
var ct = /* @__PURE__ */ l((e) => Array.from({ length: e }, (t, r) => [F].concat(Array.from({ length: r }, () => "*")).join(".")), "wildcard\
|
|
535
|
+
PathsFromLevel"), pt = /* @__PURE__ */ l((e, t, r, n, o) => {
|
|
536
536
|
let a = [].concat(ct(n)).concat(r).filter((s) => typeof s == "string"), c = [];
|
|
537
537
|
return a.forEach((s) => {
|
|
538
|
-
let i = s.split("."),
|
|
538
|
+
let i = s.split("."), p = /* @__PURE__ */ l((E, f, A) => {
|
|
539
539
|
if (A === i.length) {
|
|
540
540
|
c.push(f);
|
|
541
541
|
return;
|
|
542
542
|
}
|
|
543
543
|
let N = i[A];
|
|
544
544
|
if (A === 0)
|
|
545
|
-
|
|
545
|
+
j(E, t) && (N === F || N === Oe) && p(E, F, A + 1);
|
|
546
546
|
else if (N === Oe)
|
|
547
|
-
for (let { name: O, data: d } of t(
|
|
548
|
-
|
|
547
|
+
for (let { name: O, data: d } of t(E))
|
|
548
|
+
j(d, t) && p(d, `${f}.${O}`, A + 1);
|
|
549
549
|
else {
|
|
550
|
-
let O =
|
|
551
|
-
|
|
550
|
+
let O = E[N];
|
|
551
|
+
j(O, t) && p(O, `${f}.${N}`, A + 1);
|
|
552
552
|
}
|
|
553
553
|
}, "populatePaths");
|
|
554
|
-
|
|
554
|
+
p(e, "", 0);
|
|
555
555
|
}), c.reduce((s, i) => (s[i] = !0, s), { ...o });
|
|
556
|
-
}, "getExpandedPaths"),
|
|
557
|
-
let { data: t, dataIterator: r, path: n, depth: o, nodeRenderer: a } = e, [c, s] = Ke(Ne), i =
|
|
556
|
+
}, "getExpandedPaths"), Ce = ge((e) => {
|
|
557
|
+
let { data: t, dataIterator: r, path: n, depth: o, nodeRenderer: a } = e, [c, s] = Ke(Ne), i = j(t, r), p = !!c[n], E = qe(() => i && s((f) => ({
|
|
558
558
|
...f,
|
|
559
|
-
[n]: !
|
|
560
|
-
})), [i, s, n,
|
|
559
|
+
[n]: !p
|
|
560
|
+
})), [i, s, n, p]);
|
|
561
561
|
return /* @__PURE__ */ M.createElement(it, {
|
|
562
|
-
expanded:
|
|
563
|
-
onClick:
|
|
562
|
+
expanded: p,
|
|
563
|
+
onClick: E,
|
|
564
564
|
shouldShowArrow: i,
|
|
565
565
|
shouldShowPlaceholder: o > 0,
|
|
566
566
|
nodeRenderer: a,
|
|
567
567
|
...e
|
|
568
|
-
},
|
|
568
|
+
}, p ? [...r(t)].map(({ name: f, data: A, ...N }) => /* @__PURE__ */ M.createElement(Ce, {
|
|
569
569
|
name: f,
|
|
570
570
|
data: A,
|
|
571
571
|
depth: o + 1,
|
|
@@ -577,26 +577,26 @@ PathsFromLevel"), Et = /* @__PURE__ */ l((e, t, r, n, o) => {
|
|
|
577
577
|
})) : null);
|
|
578
578
|
}), Re = ge(({ name: e, data: t, dataIterator: r, nodeRenderer: n, expandPaths: o, expandLevel: a }) => {
|
|
579
579
|
let c = g("TreeView"), s = et({}), [, i] = s;
|
|
580
|
-
return Qe(() => i((
|
|
580
|
+
return Qe(() => i((p) => pt(t, r, o, a, p)), [t, r, o, a]), /* @__PURE__ */ M.createElement(Ne.Provider, {
|
|
581
581
|
value: s
|
|
582
582
|
}, /* @__PURE__ */ M.createElement("ol", {
|
|
583
583
|
role: "tree",
|
|
584
584
|
style: c.treeViewOutline
|
|
585
|
-
}, /* @__PURE__ */ M.createElement(
|
|
585
|
+
}, /* @__PURE__ */ M.createElement(Ce, {
|
|
586
586
|
name: e,
|
|
587
587
|
data: t,
|
|
588
588
|
dataIterator: r,
|
|
589
589
|
depth: 0,
|
|
590
|
-
path:
|
|
590
|
+
path: F,
|
|
591
591
|
nodeRenderer: n
|
|
592
592
|
})));
|
|
593
|
-
}),
|
|
593
|
+
}), ee = /* @__PURE__ */ l(({ name: e, dimmed: t = !1, styles: r = {} }) => {
|
|
594
594
|
let n = g("ObjectName"), o = {
|
|
595
595
|
...n.base,
|
|
596
596
|
...t ? n.dimmed : {},
|
|
597
597
|
...r
|
|
598
598
|
};
|
|
599
|
-
return /* @__PURE__ */
|
|
599
|
+
return /* @__PURE__ */ Et.createElement("span", {
|
|
600
600
|
style: o
|
|
601
601
|
}, e);
|
|
602
602
|
}, "ObjectName"), w = /* @__PURE__ */ l(({ object: e, styles: t }) => {
|
|
@@ -645,7 +645,7 @@ PathsFromLevel"), Et = /* @__PURE__ */ l((e, t, r, n, o) => {
|
|
|
645
645
|
return /* @__PURE__ */ _.createElement("span", null);
|
|
646
646
|
}
|
|
647
647
|
}, "ObjectValue"), be = Object.prototype.hasOwnProperty, ut = Object.prototype.propertyIsEnumerable;
|
|
648
|
-
function
|
|
648
|
+
function Z(e, t) {
|
|
649
649
|
let r = Object.getOwnPropertyDescriptor(e, t);
|
|
650
650
|
if (r.get)
|
|
651
651
|
try {
|
|
@@ -655,12 +655,12 @@ function $(e, t) {
|
|
|
655
655
|
}
|
|
656
656
|
return e[t];
|
|
657
657
|
}
|
|
658
|
-
l(
|
|
658
|
+
l(Z, "getPropertyValue");
|
|
659
659
|
function _e(e, t) {
|
|
660
660
|
return e.length === 0 ? [] : e.slice(1).reduce((r, n) => r.concat([t, n]), [e[0]]);
|
|
661
661
|
}
|
|
662
662
|
l(_e, "intersperse");
|
|
663
|
-
var
|
|
663
|
+
var z = /* @__PURE__ */ l(({ data: e }) => {
|
|
664
664
|
let t = g("ObjectPreview"), r = e;
|
|
665
665
|
if (typeof r != "object" || r === null || r instanceof Date || r instanceof RegExp)
|
|
666
666
|
return /* @__PURE__ */ m.createElement(w, {
|
|
@@ -688,10 +688,10 @@ var Z = /* @__PURE__ */ l(({ data: e }) => {
|
|
|
688
688
|
o.length === n - 1 && Object.keys(r).length > n && (s = /* @__PURE__ */ m.createElement("span", {
|
|
689
689
|
key: "ellipsis"
|
|
690
690
|
}, "\u2026"));
|
|
691
|
-
let i =
|
|
691
|
+
let i = Z(r, c);
|
|
692
692
|
if (o.push(/* @__PURE__ */ m.createElement("span", {
|
|
693
693
|
key: c
|
|
694
|
-
}, /* @__PURE__ */ m.createElement(
|
|
694
|
+
}, /* @__PURE__ */ m.createElement(ee, {
|
|
695
695
|
name: c || '""'
|
|
696
696
|
}), ":\xA0", /* @__PURE__ */ m.createElement(w, {
|
|
697
697
|
object: i
|
|
@@ -706,18 +706,18 @@ var Z = /* @__PURE__ */ l(({ data: e }) => {
|
|
|
706
706
|
}, "{", _e(o, ", "), "}"));
|
|
707
707
|
}
|
|
708
708
|
}, "ObjectPreview"), Ot = /* @__PURE__ */ l(({ name: e, data: t }) => typeof e == "string" ? /* @__PURE__ */ B.createElement("span", null, /* @__PURE__ */ B.
|
|
709
|
-
createElement(
|
|
709
|
+
createElement(ee, {
|
|
710
710
|
name: e
|
|
711
|
-
}), /* @__PURE__ */ B.createElement("span", null, ": "), /* @__PURE__ */ B.createElement(
|
|
711
|
+
}), /* @__PURE__ */ B.createElement("span", null, ": "), /* @__PURE__ */ B.createElement(z, {
|
|
712
712
|
data: t
|
|
713
|
-
})) : /* @__PURE__ */ B.createElement(
|
|
713
|
+
})) : /* @__PURE__ */ B.createElement(z, {
|
|
714
714
|
data: t
|
|
715
715
|
}), "ObjectRootLabel"), _t = /* @__PURE__ */ l(({ name: e, data: t, isNonenumerable: r = !1 }) => {
|
|
716
716
|
let n = t;
|
|
717
|
-
return /* @__PURE__ */ x.createElement("span", null, typeof e == "string" ? /* @__PURE__ */ x.createElement(
|
|
717
|
+
return /* @__PURE__ */ x.createElement("span", null, typeof e == "string" ? /* @__PURE__ */ x.createElement(ee, {
|
|
718
718
|
name: e,
|
|
719
719
|
dimmed: r
|
|
720
|
-
}) : /* @__PURE__ */ x.createElement(
|
|
720
|
+
}) : /* @__PURE__ */ x.createElement(z, {
|
|
721
721
|
data: e
|
|
722
722
|
}), /* @__PURE__ */ x.createElement("span", null, ": "), /* @__PURE__ */ x.createElement(w, {
|
|
723
723
|
object: n
|
|
@@ -730,10 +730,10 @@ createElement(Q, {
|
|
|
730
730
|
let c = 0;
|
|
731
731
|
for (let s of n) {
|
|
732
732
|
if (Array.isArray(s) && s.length === 2) {
|
|
733
|
-
let [i,
|
|
733
|
+
let [i, p] = s;
|
|
734
734
|
yield {
|
|
735
735
|
name: i,
|
|
736
|
-
data:
|
|
736
|
+
data: p
|
|
737
737
|
};
|
|
738
738
|
} else
|
|
739
739
|
yield {
|
|
@@ -747,7 +747,7 @@ createElement(Q, {
|
|
|
747
747
|
t === !0 && !a ? c.sort() : typeof t == "function" && c.sort(t);
|
|
748
748
|
for (let s of c)
|
|
749
749
|
if (ut.call(n, s)) {
|
|
750
|
-
let i =
|
|
750
|
+
let i = Z(n, s);
|
|
751
751
|
yield {
|
|
752
752
|
name: s || '""',
|
|
753
753
|
data: i
|
|
@@ -755,7 +755,7 @@ createElement(Q, {
|
|
|
755
755
|
} else if (e) {
|
|
756
756
|
let i;
|
|
757
757
|
try {
|
|
758
|
-
i =
|
|
758
|
+
i = Z(n, s);
|
|
759
759
|
} catch {
|
|
760
760
|
}
|
|
761
761
|
i !== void 0 && (yield {
|
|
@@ -770,22 +770,22 @@ createElement(Q, {
|
|
|
770
770
|
isNonenumerable: !0
|
|
771
771
|
});
|
|
772
772
|
}
|
|
773
|
-
}, "objectIterator"), "createIterator"), mt = /* @__PURE__ */ l(({ depth: e, name: t, data: r, isNonenumerable: n }) => e === 0 ? /* @__PURE__ */
|
|
773
|
+
}, "objectIterator"), "createIterator"), mt = /* @__PURE__ */ l(({ depth: e, name: t, data: r, isNonenumerable: n }) => e === 0 ? /* @__PURE__ */ X.
|
|
774
774
|
createElement(Ot, {
|
|
775
775
|
name: t,
|
|
776
776
|
data: r
|
|
777
|
-
}) : /* @__PURE__ */
|
|
777
|
+
}) : /* @__PURE__ */ X.createElement(_t, {
|
|
778
778
|
name: t,
|
|
779
779
|
data: r,
|
|
780
780
|
isNonenumerable: n
|
|
781
781
|
}), "defaultNodeRenderer"), Tt = /* @__PURE__ */ l(({ showNonenumerable: e = !1, sortObjectKeys: t, nodeRenderer: r, ...n }) => {
|
|
782
782
|
let o = dt(e, t), a = r || mt;
|
|
783
|
-
return /* @__PURE__ */
|
|
783
|
+
return /* @__PURE__ */ X.createElement(Re, {
|
|
784
784
|
nodeRenderer: a,
|
|
785
785
|
dataIterator: o,
|
|
786
786
|
...n
|
|
787
787
|
});
|
|
788
|
-
}, "ObjectInspector"), ft =
|
|
788
|
+
}, "ObjectInspector"), ft = Q(Tt);
|
|
789
789
|
function gt(e) {
|
|
790
790
|
if (typeof e == "object") {
|
|
791
791
|
let t = [];
|
|
@@ -806,29 +806,29 @@ function gt(e) {
|
|
|
806
806
|
l(gt, "getHeaders");
|
|
807
807
|
var Nt = /* @__PURE__ */ l(({ rows: e, columns: t, rowsData: r }) => {
|
|
808
808
|
let n = g("TableInspectorDataContainer"), o = g("TableInspectorLeftBorder");
|
|
809
|
-
return /* @__PURE__ */
|
|
809
|
+
return /* @__PURE__ */ y.createElement("div", {
|
|
810
810
|
style: n.div
|
|
811
|
-
}, /* @__PURE__ */
|
|
811
|
+
}, /* @__PURE__ */ y.createElement("table", {
|
|
812
812
|
style: n.table
|
|
813
|
-
}, /* @__PURE__ */
|
|
813
|
+
}, /* @__PURE__ */ y.createElement("colgroup", null), /* @__PURE__ */ y.createElement("tbody", null, e.map((a, c) => /* @__PURE__ */ y.createElement(
|
|
814
814
|
"tr", {
|
|
815
815
|
key: a,
|
|
816
816
|
style: n.tr
|
|
817
|
-
}, /* @__PURE__ */
|
|
817
|
+
}, /* @__PURE__ */ y.createElement("td", {
|
|
818
818
|
style: { ...n.td, ...o.none }
|
|
819
819
|
}, a), t.map((s) => {
|
|
820
820
|
let i = r[c];
|
|
821
|
-
return typeof i == "object" && i !== null && be.call(i, s) ? /* @__PURE__ */
|
|
821
|
+
return typeof i == "object" && i !== null && be.call(i, s) ? /* @__PURE__ */ y.createElement("td", {
|
|
822
822
|
key: s,
|
|
823
823
|
style: { ...n.td, ...o.solid }
|
|
824
|
-
}, /* @__PURE__ */
|
|
824
|
+
}, /* @__PURE__ */ y.createElement(w, {
|
|
825
825
|
object: i[s]
|
|
826
|
-
})) : /* @__PURE__ */
|
|
826
|
+
})) : /* @__PURE__ */ y.createElement("td", {
|
|
827
827
|
key: s,
|
|
828
828
|
style: { ...n.td, ...o.solid }
|
|
829
829
|
});
|
|
830
830
|
}))))));
|
|
831
|
-
}, "DataContainer"),
|
|
831
|
+
}, "DataContainer"), Ct = /* @__PURE__ */ l((e) => /* @__PURE__ */ I.createElement("div", {
|
|
832
832
|
style: {
|
|
833
833
|
position: "absolute",
|
|
834
834
|
top: 1,
|
|
@@ -850,7 +850,7 @@ var Nt = /* @__PURE__ */ l(({ rows: e, columns: t, rowsData: r }) => {
|
|
|
850
850
|
children: o,
|
|
851
851
|
...a
|
|
852
852
|
}) => {
|
|
853
|
-
let c = g("TableInspectorTH"), [s, i] =
|
|
853
|
+
let c = g("TableInspectorTH"), [s, i] = yt(!1), p = me(() => i(!0), []), E = me(() => i(!1), []);
|
|
854
854
|
return /* @__PURE__ */ I.createElement("th", {
|
|
855
855
|
...a,
|
|
856
856
|
style: {
|
|
@@ -858,12 +858,12 @@ var Nt = /* @__PURE__ */ l(({ rows: e, columns: t, rowsData: r }) => {
|
|
|
858
858
|
...n,
|
|
859
859
|
...s ? c.base[":hover"] : {}
|
|
860
860
|
},
|
|
861
|
-
onMouseEnter:
|
|
862
|
-
onMouseLeave:
|
|
861
|
+
onMouseEnter: p,
|
|
862
|
+
onMouseLeave: E,
|
|
863
863
|
onClick: r
|
|
864
864
|
}, /* @__PURE__ */ I.createElement("div", {
|
|
865
865
|
style: c.div
|
|
866
|
-
}, o), t && /* @__PURE__ */ I.createElement(
|
|
866
|
+
}, o), t && /* @__PURE__ */ I.createElement(Ct, null, /* @__PURE__ */ I.createElement(Rt, {
|
|
867
867
|
sortAscending: e
|
|
868
868
|
})));
|
|
869
869
|
}, "TH"), bt = /* @__PURE__ */ l(({
|
|
@@ -876,23 +876,23 @@ var Nt = /* @__PURE__ */ l(({ rows: e, columns: t, rowsData: r }) => {
|
|
|
876
876
|
onTHClick: c,
|
|
877
877
|
onIndexTHClick: s
|
|
878
878
|
}) => {
|
|
879
|
-
let i = g("TableInspectorHeaderContainer"),
|
|
879
|
+
let i = g("TableInspectorHeaderContainer"), p = g("TableInspectorLeftBorder");
|
|
880
880
|
return /* @__PURE__ */ h.createElement("div", {
|
|
881
881
|
style: i.base
|
|
882
882
|
}, /* @__PURE__ */ h.createElement("table", {
|
|
883
883
|
style: i.table
|
|
884
884
|
}, /* @__PURE__ */ h.createElement("tbody", null, /* @__PURE__ */ h.createElement("tr", null, /* @__PURE__ */ h.createElement(Te, {
|
|
885
|
-
borderStyle:
|
|
885
|
+
borderStyle: p.none,
|
|
886
886
|
sorted: r && n,
|
|
887
887
|
sortAscending: a,
|
|
888
888
|
onClick: s
|
|
889
|
-
}, e), t.map((
|
|
890
|
-
borderStyle:
|
|
891
|
-
key:
|
|
892
|
-
sorted: r && o ===
|
|
889
|
+
}, e), t.map((E) => /* @__PURE__ */ h.createElement(Te, {
|
|
890
|
+
borderStyle: p.solid,
|
|
891
|
+
key: E,
|
|
892
|
+
sorted: r && o === E,
|
|
893
893
|
sortAscending: a,
|
|
894
|
-
onClick: c.bind(null,
|
|
895
|
-
},
|
|
894
|
+
onClick: c.bind(null, E)
|
|
895
|
+
}, E))))));
|
|
896
896
|
}, "HeaderContainer"), Lt = /* @__PURE__ */ l(({
|
|
897
897
|
data: e,
|
|
898
898
|
columns: t
|
|
@@ -909,7 +909,7 @@ var Nt = /* @__PURE__ */ l(({ rows: e, columns: t, rowsData: r }) => {
|
|
|
909
909
|
sortColumn: void 0,
|
|
910
910
|
sortAscending: O ? !d : !0
|
|
911
911
|
}));
|
|
912
|
-
}, []),
|
|
912
|
+
}, []), p = de((O) => {
|
|
913
913
|
s(({ sortColumn: d, sortAscending: T }) => ({
|
|
914
914
|
sorted: !0,
|
|
915
915
|
sortIndexColumn: !1,
|
|
@@ -918,16 +918,16 @@ var Nt = /* @__PURE__ */ l(({ rows: e, columns: t, rowsData: r }) => {
|
|
|
918
918
|
}));
|
|
919
919
|
}, []);
|
|
920
920
|
if (typeof e != "object" || e === null)
|
|
921
|
-
return /* @__PURE__ */
|
|
922
|
-
let { rowHeaders:
|
|
921
|
+
return /* @__PURE__ */ H.createElement("div", null);
|
|
922
|
+
let { rowHeaders: E, colHeaders: f } = gt(e);
|
|
923
923
|
t !== void 0 && (f = t);
|
|
924
|
-
let A =
|
|
925
|
-
if (a !== void 0 ? N = A.map((O, d) => typeof O == "object" && O !== null ? [O[a], d] : [void 0, d]) : o && (N =
|
|
924
|
+
let A = E.map((O) => e[O]), N;
|
|
925
|
+
if (a !== void 0 ? N = A.map((O, d) => typeof O == "object" && O !== null ? [O[a], d] : [void 0, d]) : o && (N = E.map((O, d) => [E[d], d])),
|
|
926
926
|
N !== void 0) {
|
|
927
927
|
let O = /* @__PURE__ */ l((T, we) => (Pe, Ue) => {
|
|
928
|
-
let
|
|
929
|
-
if (
|
|
930
|
-
S =
|
|
928
|
+
let ne = T(Pe), oe = T(Ue), le = typeof ne, ae = typeof oe, se = /* @__PURE__ */ l((v, ie) => v < ie ? -1 : v > ie ? 1 : 0, "lt"), S;
|
|
929
|
+
if (le === ae)
|
|
930
|
+
S = se(ne, oe);
|
|
931
931
|
else {
|
|
932
932
|
let v = {
|
|
933
933
|
string: 0,
|
|
@@ -938,28 +938,28 @@ var Nt = /* @__PURE__ */ l(({ rows: e, columns: t, rowsData: r }) => {
|
|
|
938
938
|
undefined: 5,
|
|
939
939
|
function: 6
|
|
940
940
|
};
|
|
941
|
-
S =
|
|
941
|
+
S = se(v[le], v[ae]);
|
|
942
942
|
}
|
|
943
943
|
return we || (S = -S), S;
|
|
944
944
|
}, "comparator"), d = N.sort(O((T) => T[0], c)).map((T) => T[1]);
|
|
945
|
-
|
|
945
|
+
E = d.map((T) => E[T]), A = d.map((T) => A[T]);
|
|
946
946
|
}
|
|
947
|
-
return /* @__PURE__ */
|
|
947
|
+
return /* @__PURE__ */ H.createElement("div", {
|
|
948
948
|
style: r.base
|
|
949
|
-
}, /* @__PURE__ */
|
|
949
|
+
}, /* @__PURE__ */ H.createElement(bt, {
|
|
950
950
|
columns: f,
|
|
951
951
|
sorted: n,
|
|
952
952
|
sortIndexColumn: o,
|
|
953
953
|
sortColumn: a,
|
|
954
954
|
sortAscending: c,
|
|
955
|
-
onTHClick:
|
|
955
|
+
onTHClick: p,
|
|
956
956
|
onIndexTHClick: i
|
|
957
|
-
}), /* @__PURE__ */
|
|
958
|
-
rows:
|
|
957
|
+
}), /* @__PURE__ */ H.createElement(Nt, {
|
|
958
|
+
rows: E,
|
|
959
959
|
columns: f,
|
|
960
960
|
rowsData: A
|
|
961
961
|
}));
|
|
962
|
-
}, "TableInspector"), ht =
|
|
962
|
+
}, "TableInspector"), ht = Q(Lt), St = 80, Le = /* @__PURE__ */ l((e) => e.childNodes.length === 0 || e.childNodes.length === 1 && e.childNodes[0].
|
|
963
963
|
nodeType === Node.TEXT_NODE && e.textContent.length < St, "shouldInline"), vt = /* @__PURE__ */ l(({ tagName: e, attributes: t, styles: r }) => /* @__PURE__ */ u.
|
|
964
964
|
createElement("span", {
|
|
965
965
|
style: r.base
|
|
@@ -1055,14 +1055,14 @@ createElement("span", {
|
|
|
1055
1055
|
nodeRenderer: Bt,
|
|
1056
1056
|
dataIterator: xt,
|
|
1057
1057
|
...e
|
|
1058
|
-
}), "DOMInspector"), wt =
|
|
1058
|
+
}), "DOMInspector"), wt = Q(Mt), Pt = We($e()), he = /* @__PURE__ */ l(({ table: e = !1, data: t, ...r }) => e ? /* @__PURE__ */ Y.createElement(
|
|
1059
1059
|
ht, {
|
|
1060
1060
|
data: t,
|
|
1061
1061
|
...r
|
|
1062
|
-
}) : (0, Pt.default)(t) ? /* @__PURE__ */
|
|
1062
|
+
}) : (0, Pt.default)(t) ? /* @__PURE__ */ Y.createElement(wt, {
|
|
1063
1063
|
data: t,
|
|
1064
1064
|
...r
|
|
1065
|
-
}) : /* @__PURE__ */
|
|
1065
|
+
}) : /* @__PURE__ */ Y.createElement(ft, {
|
|
1066
1066
|
data: t,
|
|
1067
1067
|
...r
|
|
1068
1068
|
}), "Inspector");
|
|
@@ -1072,8 +1072,8 @@ import { styled as Jt, withTheme as Wt } from "storybook/theming";
|
|
|
1072
1072
|
|
|
1073
1073
|
// src/actions/components/ActionLogger/style.tsx
|
|
1074
1074
|
import { opacify as Ut } from "polished";
|
|
1075
|
-
import { styled as
|
|
1076
|
-
var Ie =
|
|
1075
|
+
import { styled as te } from "storybook/theming";
|
|
1076
|
+
var Ie = te.div({
|
|
1077
1077
|
display: "flex",
|
|
1078
1078
|
padding: 0,
|
|
1079
1079
|
borderLeft: "5px solid transparent",
|
|
@@ -1081,7 +1081,7 @@ var Ie = ee.div({
|
|
|
1081
1081
|
transition: "all 0.1s",
|
|
1082
1082
|
alignItems: "flex-start",
|
|
1083
1083
|
whiteSpace: "pre"
|
|
1084
|
-
}), Se =
|
|
1084
|
+
}), Se = te.div(({ theme: e }) => ({
|
|
1085
1085
|
backgroundColor: Ut(0.5, e.appBorderColor),
|
|
1086
1086
|
color: e.color.inverseText,
|
|
1087
1087
|
fontSize: e.typography.size.s1,
|
|
@@ -1090,27 +1090,27 @@ var Ie = ee.div({
|
|
|
1090
1090
|
padding: "1px 5px",
|
|
1091
1091
|
borderRadius: 20,
|
|
1092
1092
|
margin: "2px 0px"
|
|
1093
|
-
})), ve =
|
|
1093
|
+
})), ve = te.div({
|
|
1094
1094
|
flex: 1,
|
|
1095
1095
|
padding: "0 0 0 5px"
|
|
1096
1096
|
});
|
|
1097
1097
|
|
|
1098
1098
|
// src/actions/components/ActionLogger/index.tsx
|
|
1099
1099
|
var De = Vt(
|
|
1100
|
-
({ children: e, className: t }, r) => /* @__PURE__ */
|
|
1100
|
+
({ children: e, className: t }, r) => /* @__PURE__ */ C.createElement(Gt, { ref: r, horizontal: !0, vertical: !0, className: t }, e)
|
|
1101
1101
|
);
|
|
1102
1102
|
De.displayName = "UnstyledWrapped";
|
|
1103
1103
|
var Yt = Jt(De)({
|
|
1104
1104
|
margin: 0,
|
|
1105
1105
|
padding: "10px 5px 20px"
|
|
1106
|
-
}), Xt = Wt(({ theme: e, ...t }) => /* @__PURE__ */
|
|
1106
|
+
}), Xt = Wt(({ theme: e, ...t }) => /* @__PURE__ */ C.createElement(he, { theme: e.addonActionsTheme || "chromeLight", table: !1, ...t })), Be = /* @__PURE__ */ l(
|
|
1107
1107
|
({ actions: e, onClear: t }) => {
|
|
1108
1108
|
let r = kt(null), n = r.current, o = n && n.scrollHeight - n.scrollTop === n.clientHeight;
|
|
1109
1109
|
return jt(() => {
|
|
1110
1110
|
o && (r.current.scrollTop = r.current.scrollHeight);
|
|
1111
|
-
}, [o, e.length]), /* @__PURE__ */
|
|
1112
|
-
createElement(Ie, { key: a.id }, a.count > 1 && /* @__PURE__ */
|
|
1113
|
-
/* @__PURE__ */
|
|
1111
|
+
}, [o, e.length]), /* @__PURE__ */ C.createElement(Ht, null, /* @__PURE__ */ C.createElement(Yt, { ref: r }, e.map((a) => /* @__PURE__ */ C.
|
|
1112
|
+
createElement(Ie, { key: a.id }, a.count > 1 && /* @__PURE__ */ C.createElement(Se, null, a.count), /* @__PURE__ */ C.createElement(ve, null,
|
|
1113
|
+
/* @__PURE__ */ C.createElement(
|
|
1114
1114
|
Xt,
|
|
1115
1115
|
{
|
|
1116
1116
|
sortObjectKeys: !0,
|
|
@@ -1118,7 +1118,7 @@ var Yt = Jt(De)({
|
|
|
1118
1118
|
name: a.data.name,
|
|
1119
1119
|
data: a.data.args ?? a.data
|
|
1120
1120
|
}
|
|
1121
|
-
))))), /* @__PURE__ */
|
|
1121
|
+
))))), /* @__PURE__ */ C.createElement(Ft, { actionItems: [{ title: "Clear", onClick: t }] }));
|
|
1122
1122
|
}, "ActionLogger");
|
|
1123
1123
|
|
|
1124
1124
|
// src/actions/containers/ActionLogger/index.tsx
|
|
@@ -1128,7 +1128,7 @@ var zt = /* @__PURE__ */ l((e, t) => {
|
|
|
1128
1128
|
} catch {
|
|
1129
1129
|
return !1;
|
|
1130
1130
|
}
|
|
1131
|
-
}, "safeDeepEqual"),
|
|
1131
|
+
}, "safeDeepEqual"), re = class re extends Zt {
|
|
1132
1132
|
constructor(r) {
|
|
1133
1133
|
super(r);
|
|
1134
1134
|
this.handleStoryChange = /* @__PURE__ */ l(() => {
|
|
@@ -1143,7 +1143,7 @@ var zt = /* @__PURE__ */ l((e, t) => {
|
|
|
1143
1143
|
}, "addAction");
|
|
1144
1144
|
this.clearActions = /* @__PURE__ */ l(() => {
|
|
1145
1145
|
let { api: r } = this.props;
|
|
1146
|
-
r.emit(
|
|
1146
|
+
r.emit(U), this.setState({ actions: [] });
|
|
1147
1147
|
}, "clearActions");
|
|
1148
1148
|
this.mounted = !1, this.state = { actions: [] };
|
|
1149
1149
|
}
|
|
@@ -1165,32 +1165,31 @@ var zt = /* @__PURE__ */ l((e, t) => {
|
|
|
1165
1165
|
return n ? /* @__PURE__ */ $t.createElement(Be, { ...o }) : null;
|
|
1166
1166
|
}
|
|
1167
1167
|
};
|
|
1168
|
-
l(
|
|
1169
|
-
var P =
|
|
1168
|
+
l(re, "ActionLogger");
|
|
1169
|
+
var P = re;
|
|
1170
1170
|
|
|
1171
1171
|
// src/actions/manager.tsx
|
|
1172
1172
|
function nr() {
|
|
1173
|
-
let [{ count:
|
|
1174
|
-
return
|
|
1173
|
+
let t = rr().getSelectedPanel(), [{ count: r }, n] = er(b, { count: 0 });
|
|
1174
|
+
return tr({
|
|
1175
1175
|
[D]: () => {
|
|
1176
|
-
|
|
1176
|
+
n((a) => ({ ...a, count: a.count + 1 }));
|
|
1177
1177
|
},
|
|
1178
|
-
[
|
|
1179
|
-
|
|
1178
|
+
[qt]: () => {
|
|
1179
|
+
n((a) => ({ ...a, count: 0 }));
|
|
1180
1180
|
},
|
|
1181
|
-
[
|
|
1182
|
-
|
|
1181
|
+
[U]: () => {
|
|
1182
|
+
n((a) => ({ ...a, count: 0 }));
|
|
1183
1183
|
}
|
|
1184
|
-
}), /* @__PURE__ */
|
|
1185
|
-
|
|
1186
|
-
eutral" }, e)));
|
|
1184
|
+
}), /* @__PURE__ */ G.createElement("div", { style: { display: "flex", alignItems: "center", gap: 6 } }, /* @__PURE__ */ G.createElement("\
|
|
1185
|
+
span", null, "Actions"), r === 0 ? null : /* @__PURE__ */ G.createElement(Kt, { compact: !0, status: t === J ? "active" : "neutral" }, r));
|
|
1187
1186
|
}
|
|
1188
1187
|
l(nr, "Title");
|
|
1189
1188
|
Me.register(b, (e) => {
|
|
1190
|
-
Me.add(
|
|
1189
|
+
Me.add(J, {
|
|
1191
1190
|
title: nr,
|
|
1192
|
-
type:
|
|
1193
|
-
render: /* @__PURE__ */ l(({ active: t }) => /* @__PURE__ */
|
|
1194
|
-
paramKey:
|
|
1191
|
+
type: Qt.PANEL,
|
|
1192
|
+
render: /* @__PURE__ */ l(({ active: t }) => /* @__PURE__ */ G.createElement(P, { api: e, active: !!t }), "render"),
|
|
1193
|
+
paramKey: ce
|
|
1195
1194
|
});
|
|
1196
1195
|
});
|