@mechane-ai/elements 0.9.0 → 0.10.0
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/NOTICE +24 -0
- package/README.md +7 -1
- package/dist/ai.js +129 -125
- package/dist/{categorical-values-DYRiw5Qd.js → categorical-values-DLRE4EEW.js} +4 -4
- package/dist/{chart-frame-RL1hCWBC.js → chart-frame-et6f6Vhg.js} +22 -14
- package/dist/{chart-input-Bm3ot1yD.js → chart-input-CdLkFomi.js} +2 -2
- package/dist/charts/cartesian.js +529 -450
- package/dist/charts/distribution.js +302 -261
- package/dist/charts/graph.js +137 -103
- package/dist/charts/hierarchy.js +7 -7
- package/dist/charts/matrix.js +187 -174
- package/dist/charts/timeline.js +118 -92
- package/dist/charts.js +1 -1
- package/dist/code-block-D77maJBB.js +180 -0
- package/dist/collections.js +280 -236
- package/dist/content/code.js +1 -1
- package/dist/content/diff.js +81 -63
- package/dist/content/link.js +1 -1
- package/dist/content/markdown.js +115 -96
- package/dist/content/tree.js +43 -38
- package/dist/{content-link-BrPrpBof.js → content-link-BpSZeTNK.js} +6 -2
- package/dist/content.js +172 -153
- package/dist/{assets/stylex.css → elements.css} +471 -185
- package/dist/feedback.js +1 -1
- package/dist/forms/dates.js +25 -25
- package/dist/forms.js +1 -1
- package/dist/index.js +1 -1
- package/dist/layout.js +239 -192
- package/dist/navigation/commands.js +45 -42
- package/dist/{navigation-yxK3iQXo.js → navigation-D2_sGy3C.js} +2 -2
- package/dist/navigation.js +10 -10
- package/dist/overlays.js +1 -1
- package/dist/packages/charts/src/cartesian/bar-chart.d.ts +5 -0
- package/dist/packages/charts/src/cartesian/index.d.ts +2 -2
- package/dist/packages/charts/src/chart-frame.d.ts +3 -0
- package/dist/packages/charts/src/chart-theme.d.ts +2 -1
- package/dist/packages/charts/src/distribution/distribution-plot.d.ts +22 -2
- package/dist/packages/collections/src/collection-scroll.d.ts +2 -1
- package/dist/packages/content/src/diff/pierre-diff.d.ts +2 -1
- package/dist/packages/content/src/viewer-styles.d.ts +64 -0
- package/dist/packages/core/src/index.d.ts +1 -1
- package/dist/packages/core/src/surfaces.d.ts +5 -0
- package/dist/packages/feedback/src/index.d.ts +4 -1
- package/dist/packages/feedback/src/toast.d.ts +5 -27
- package/dist/packages/forms/src/field-styles.d.ts +9 -0
- package/dist/packages/forms/src/selection-styles.d.ts +18 -2
- package/dist/packages/foundations/src/overlay-styles.d.ts +3 -1
- package/dist/packages/foundations/src/popup-styles.d.ts +7 -0
- package/dist/packages/foundations/src/tokens.stylex.d.ts +9 -0
- package/dist/packages/layout/src/frame.stylex.d.ts +1 -0
- package/dist/packages/layout/src/sidebar.d.ts +3 -1
- package/dist/packages/overlays/src/alert-dialog.d.ts +5 -2
- package/dist/packages/overlays/src/dialog.d.ts +7 -3
- package/dist/pierre-diff--zsiHCCB.js +71 -0
- package/dist/pierre-theme-D9hnHv3Z.js +126 -0
- package/dist/{pierre-tree-CRk09rx7.js → pierre-tree-BFxEuxwb.js} +3 -3
- package/dist/{src-Cc0Sadzr.js → src-Be7NLG8c.js} +238 -186
- package/dist/src-CBspCKfO.js +969 -0
- package/dist/src-Cs0dRc4X.js +617 -0
- package/dist/{src-elMBQ2Dh.js → src-sU9b0oZW.js} +224 -143
- package/dist/tokens.js +9 -1
- package/dist/viewer-styles-CpHqp5Qv.js +70 -0
- package/package.json +2 -1
- package/packages/foundations/src/tokens.stylex.ts +7 -0
- package/styles.css +1 -1
- package/dist/code-block-B30xQKqg.js +0 -175
- package/dist/pierre-diff-CZdzgiYm.js +0 -66
- package/dist/pierre-theme-BpESNIsV.js +0 -96
- package/dist/popup-styles-CvtZDE2t.js +0 -135
- package/dist/src-CfDf8TY8.js +0 -466
- package/dist/src-DuuAmS-c.js +0 -360
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as e } from "./src-sU9b0oZW.js";
|
|
2
|
+
import "@stylexjs/stylex";
|
|
2
3
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
4
|
// packages/content/src/content-link.tsx
|
|
4
5
|
var n = "https://content.invalid", r = /* @__PURE__ */ new Set([
|
|
@@ -20,7 +21,10 @@ function a({ href: n, children: r, title: a }) {
|
|
|
20
21
|
href: o,
|
|
21
22
|
title: a,
|
|
22
23
|
rel: "noreferrer noopener",
|
|
23
|
-
children:
|
|
24
|
+
children: /* @__PURE__ */ t("span", {
|
|
25
|
+
className: "xujl8zx xda060z",
|
|
26
|
+
children: r
|
|
27
|
+
})
|
|
24
28
|
});
|
|
25
29
|
}
|
|
26
30
|
export { i as n, a as t };
|
package/dist/content.js
CHANGED
|
@@ -1,31 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
1
|
+
import { C as e, E as t, _ as n, g as r } from "./src-sU9b0oZW.js";
|
|
2
|
+
import { t as i } from "./viewer-styles-CpHqp5Qv.js";
|
|
3
|
+
import { t as a } from "./code-block-D77maJBB.js";
|
|
4
|
+
import { t as o } from "./content-link-BpSZeTNK.js";
|
|
5
|
+
import * as s from "@stylexjs/stylex";
|
|
6
|
+
import { useCallback as c, useEffect as l, useRef as u, useState as d } from "react";
|
|
7
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
8
|
+
import { Check as m, Circle as h, CircleDashed as g, CircleHelp as _, Clock as v, X as y } from "lucide-react";
|
|
9
|
+
import b from "strip-ansi";
|
|
8
10
|
// packages/content/src/json-viewer.tsx
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
var x = { body: {
|
|
12
|
+
kmVPX3: "x1mvvolr",
|
|
13
|
+
kVQacm: "xysyzu8",
|
|
14
|
+
kskxy: "x1phlbz0",
|
|
15
|
+
kMv6JI: "xiard35",
|
|
16
|
+
kGuDYH: "xy8obcc",
|
|
17
|
+
$$css: !0
|
|
18
|
+
} }, S = 500;
|
|
19
|
+
function C({ value: e, name: t, path: n, depth: r, maxDepth: i, maxEntries: a }) {
|
|
20
|
+
let [o, s] = d(r === 0);
|
|
12
21
|
if (typeof e != "object" || !e) {
|
|
13
|
-
let n = JSON.stringify(e), r = n.length >
|
|
14
|
-
return /* @__PURE__ */
|
|
22
|
+
let n = JSON.stringify(e), r = n.length > S;
|
|
23
|
+
return /* @__PURE__ */ p("div", {
|
|
15
24
|
className: "xeuugli x126k92a xj0a0fe",
|
|
16
25
|
children: [
|
|
17
|
-
/* @__PURE__ */
|
|
26
|
+
/* @__PURE__ */ p("span", {
|
|
18
27
|
className: "x153jb6y",
|
|
19
28
|
children: [t, ": "]
|
|
20
29
|
}),
|
|
21
|
-
/* @__PURE__ */
|
|
30
|
+
/* @__PURE__ */ f("span", {
|
|
22
31
|
...{
|
|
23
32
|
0: { className: "xbixft" },
|
|
24
33
|
1: { className: "x7ixh4y" }
|
|
25
34
|
}[typeof e == "string" | 0],
|
|
26
|
-
children: n.slice(0,
|
|
35
|
+
children: n.slice(0, S)
|
|
27
36
|
}),
|
|
28
|
-
r && /* @__PURE__ */
|
|
37
|
+
r && /* @__PURE__ */ f("span", {
|
|
29
38
|
className: "x153jb6y x1hz01jw",
|
|
30
39
|
children: "… (value truncated)"
|
|
31
40
|
})
|
|
@@ -33,38 +42,38 @@ function x({ value: e, name: t, path: n, depth: r, maxDepth: i, maxEntries: a })
|
|
|
33
42
|
});
|
|
34
43
|
}
|
|
35
44
|
let c = Object.entries(e), l = Array.isArray(e) ? `${c.length} items` : `${c.length} fields`;
|
|
36
|
-
return r >= i ? /* @__PURE__ */
|
|
45
|
+
return r >= i ? /* @__PURE__ */ p("div", {
|
|
37
46
|
className: "xeuugli x126k92a xj0a0fe",
|
|
38
|
-
children: [/* @__PURE__ */
|
|
47
|
+
children: [/* @__PURE__ */ p("span", {
|
|
39
48
|
className: "x153jb6y",
|
|
40
49
|
children: [t, ": "]
|
|
41
|
-
}), /* @__PURE__ */
|
|
50
|
+
}), /* @__PURE__ */ p("span", {
|
|
42
51
|
className: "x153jb6y x1hz01jw",
|
|
43
52
|
children: [l, " · depth limit"]
|
|
44
53
|
})]
|
|
45
|
-
}) : /* @__PURE__ */
|
|
54
|
+
}) : /* @__PURE__ */ p("details", {
|
|
46
55
|
open: o,
|
|
47
56
|
onToggle: (e) => s(e.currentTarget.open),
|
|
48
57
|
className: "xeuugli x126k92a xj0a0fe",
|
|
49
|
-
children: [/* @__PURE__ */
|
|
50
|
-
className: "x1ypdohk x19rmrnh x13qnu6 x9v5kkp
|
|
58
|
+
children: [/* @__PURE__ */ p("summary", {
|
|
59
|
+
className: "x9f619 x1ypdohk x16exltd xwu7q15 xt970qd x8tdk5q xjbqb8w xzro8vx x1s9zmfe x19rmrnh x13qnu6 x9v5kkp x1bqaal",
|
|
51
60
|
children: [
|
|
52
|
-
/* @__PURE__ */
|
|
61
|
+
/* @__PURE__ */ p("span", {
|
|
53
62
|
className: "x153jb6y",
|
|
54
63
|
children: [t, ": "]
|
|
55
64
|
}),
|
|
56
65
|
Array.isArray(e) ? "[]" : "{}",
|
|
57
66
|
" ",
|
|
58
|
-
/* @__PURE__ */
|
|
67
|
+
/* @__PURE__ */ f("span", {
|
|
59
68
|
className: "x153jb6y x1hz01jw",
|
|
60
69
|
children: l
|
|
61
70
|
})
|
|
62
71
|
]
|
|
63
|
-
}), o && /* @__PURE__ */
|
|
72
|
+
}), o && /* @__PURE__ */ p("div", {
|
|
64
73
|
className: "xo02m6d xpilrb4 x1t7ytsu x97x49r xa1dmyi",
|
|
65
74
|
children: [c.slice(0, a).map(([e, t]) => {
|
|
66
75
|
let o = `${n}/${e.replaceAll("~", "~0").replaceAll("/", "~1")}`;
|
|
67
|
-
return /* @__PURE__ */
|
|
76
|
+
return /* @__PURE__ */ f(C, {
|
|
68
77
|
name: JSON.stringify(e),
|
|
69
78
|
path: o,
|
|
70
79
|
value: t,
|
|
@@ -72,43 +81,46 @@ function x({ value: e, name: t, path: n, depth: r, maxDepth: i, maxEntries: a })
|
|
|
72
81
|
maxDepth: i,
|
|
73
82
|
maxEntries: a
|
|
74
83
|
}, o);
|
|
75
|
-
}), c.length > a && /* @__PURE__ */
|
|
84
|
+
}), c.length > a && /* @__PURE__ */ p("div", {
|
|
76
85
|
className: "x153jb6y x1hz01jw",
|
|
77
86
|
children: [c.length - a, " more entries · copy to inspect the complete value"]
|
|
78
87
|
})]
|
|
79
88
|
})]
|
|
80
89
|
});
|
|
81
90
|
}
|
|
82
|
-
function
|
|
83
|
-
let
|
|
84
|
-
return /* @__PURE__ */
|
|
91
|
+
function w({ value: e, label: t, maxDepth: r = 6, maxEntries: a = 50 }) {
|
|
92
|
+
let o = c(() => JSON.stringify(e, null, 2), [e]);
|
|
93
|
+
return /* @__PURE__ */ p("section", {
|
|
85
94
|
"aria-label": t,
|
|
86
|
-
|
|
87
|
-
children: [/* @__PURE__ */
|
|
88
|
-
|
|
89
|
-
children: [/* @__PURE__ */
|
|
95
|
+
...s.props(i.root),
|
|
96
|
+
children: [/* @__PURE__ */ p("div", {
|
|
97
|
+
...s.props(i.header),
|
|
98
|
+
children: [/* @__PURE__ */ f("span", {
|
|
99
|
+
...s.props(i.label),
|
|
100
|
+
children: t
|
|
101
|
+
}), /* @__PURE__ */ f(n, {
|
|
90
102
|
label: t,
|
|
91
|
-
value:
|
|
103
|
+
value: o,
|
|
92
104
|
children: "Copy JSON"
|
|
93
105
|
})]
|
|
94
|
-
}), /* @__PURE__ */
|
|
106
|
+
}), /* @__PURE__ */ f("div", {
|
|
95
107
|
role: "region",
|
|
96
108
|
"aria-label": `${t} fields`,
|
|
97
109
|
tabIndex: 0,
|
|
98
|
-
|
|
99
|
-
children: /* @__PURE__ */
|
|
110
|
+
...s.props(i.scrollRegion, x.body),
|
|
111
|
+
children: /* @__PURE__ */ f(C, {
|
|
100
112
|
name: "root",
|
|
101
113
|
path: "",
|
|
102
114
|
value: e,
|
|
103
115
|
depth: 0,
|
|
104
|
-
maxDepth: Math.max(1,
|
|
105
|
-
maxEntries: Math.max(1,
|
|
116
|
+
maxDepth: Math.max(1, r),
|
|
117
|
+
maxEntries: Math.max(1, a)
|
|
106
118
|
})
|
|
107
119
|
})]
|
|
108
120
|
});
|
|
109
121
|
}
|
|
110
122
|
// packages/content/src/log-viewer.tsx
|
|
111
|
-
var
|
|
123
|
+
var T = {
|
|
112
124
|
kVQacm: "xysyzu8",
|
|
113
125
|
kmVPX3: "x1mvvolr",
|
|
114
126
|
kogj98: "x1ghz6dp",
|
|
@@ -119,104 +131,111 @@ var C = {
|
|
|
119
131
|
kHjlTd: "xj0a0fe",
|
|
120
132
|
kKi2Bq: "xeq4nuv",
|
|
121
133
|
$$css: !0
|
|
122
|
-
},
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
134
|
+
}, E = {
|
|
135
|
+
output: (e) => [
|
|
136
|
+
T,
|
|
137
|
+
{
|
|
138
|
+
kskxy: e == null ? e : "x1jols5v",
|
|
139
|
+
$$css: !0
|
|
140
|
+
},
|
|
141
|
+
{ "--x-maxHeight": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(e) }
|
|
142
|
+
],
|
|
143
|
+
notice: {
|
|
144
|
+
kt9PQ7: "xso031l",
|
|
145
|
+
kfdmCh: "x1q0q8m5",
|
|
146
|
+
kL6WhQ: "x1qndepd",
|
|
126
147
|
$$css: !0
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
className: "xeuugli xmkeg23 x1y0btm7 x1ey3b81 xpvm0e4 xbixft x1hz01jw xtqrqnz x1778rvt",
|
|
148
|
+
}
|
|
149
|
+
}, D = 2e5;
|
|
150
|
+
function O({ output: t, label: r, maxLines: a = 500, maxHeight: o = 320, isRunning: c = !1 }) {
|
|
151
|
+
let m = u(null), [h, g] = d(!0), _ = b(t), v = _.slice(-2e5).split("\n"), y = v.slice(-Math.max(1, a)), x = v.length - y.length;
|
|
152
|
+
return l(() => {
|
|
153
|
+
h && m.current !== null && (m.current.scrollTop = m.current.scrollHeight);
|
|
154
|
+
}, [t, h]), /* @__PURE__ */ p("section", {
|
|
155
|
+
"aria-label": r,
|
|
156
|
+
...s.props(i.root),
|
|
137
157
|
children: [
|
|
138
|
-
/* @__PURE__ */
|
|
139
|
-
|
|
140
|
-
children: [/* @__PURE__ */
|
|
141
|
-
|
|
142
|
-
children: [
|
|
158
|
+
/* @__PURE__ */ p("div", {
|
|
159
|
+
...s.props(i.header),
|
|
160
|
+
children: [/* @__PURE__ */ p("span", {
|
|
161
|
+
...s.props(i.label),
|
|
162
|
+
children: [r, c && " · running"]
|
|
163
|
+
}), /* @__PURE__ */ p("div", {
|
|
164
|
+
...s.props(i.actions),
|
|
165
|
+
children: [/* @__PURE__ */ f(e, {
|
|
143
166
|
size: "sm",
|
|
144
167
|
variant: "ghost",
|
|
145
|
-
onClick: () =>
|
|
146
|
-
children:
|
|
147
|
-
}), /* @__PURE__ */
|
|
148
|
-
value:
|
|
149
|
-
label:
|
|
168
|
+
onClick: () => g(!h),
|
|
169
|
+
children: h ? "Pause following" : "Follow output"
|
|
170
|
+
}), /* @__PURE__ */ f(n, {
|
|
171
|
+
value: t,
|
|
172
|
+
label: r,
|
|
150
173
|
children: "Copy"
|
|
151
174
|
})]
|
|
152
175
|
})]
|
|
153
176
|
}),
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
children: [
|
|
177
|
+
x > 0 && /* @__PURE__ */ p("div", {
|
|
178
|
+
...s.props(i.note, E.notice),
|
|
179
|
+
children: [x, " earlier lines omitted from this view. Copy includes the supplied output."]
|
|
157
180
|
}),
|
|
158
|
-
|
|
159
|
-
|
|
181
|
+
_.length > D && /* @__PURE__ */ f("div", {
|
|
182
|
+
...s.props(i.note, E.notice),
|
|
160
183
|
children: "Preview limited to the last 200,000 characters. Copy includes the supplied output."
|
|
161
184
|
}),
|
|
162
|
-
/* @__PURE__ */
|
|
163
|
-
ref:
|
|
185
|
+
/* @__PURE__ */ f("pre", {
|
|
186
|
+
ref: m,
|
|
164
187
|
role: "region",
|
|
165
|
-
"aria-label": `${
|
|
188
|
+
"aria-label": `${r} output`,
|
|
166
189
|
tabIndex: 0,
|
|
167
190
|
onScroll: (e) => {
|
|
168
191
|
let t = e.currentTarget;
|
|
169
|
-
|
|
192
|
+
g(t.scrollHeight - t.scrollTop - t.clientHeight < 8);
|
|
170
193
|
},
|
|
171
|
-
...
|
|
172
|
-
children:
|
|
194
|
+
...s.props(i.scrollRegion, E.output(o)),
|
|
195
|
+
children: _.length === 0 ? "No output recorded." : y.join("\n")
|
|
173
196
|
})
|
|
174
197
|
]
|
|
175
198
|
});
|
|
176
199
|
}
|
|
177
200
|
// packages/content/src/stack-trace.tsx
|
|
178
|
-
function
|
|
179
|
-
return /* @__PURE__ */
|
|
201
|
+
function k({ message: e, frames: t }) {
|
|
202
|
+
return /* @__PURE__ */ p("section", {
|
|
180
203
|
"aria-label": "Stack trace",
|
|
181
|
-
|
|
182
|
-
children: [/* @__PURE__ */
|
|
183
|
-
className: "x1ghz6dp x1mvvolr xso031l x1q0q8m5 x1qndepd xr5kp14
|
|
184
|
-
children:
|
|
185
|
-
}),
|
|
204
|
+
...s.props(i.root),
|
|
205
|
+
children: [/* @__PURE__ */ f("p", {
|
|
206
|
+
className: "x1ghz6dp x1mvvolr xso031l x1q0q8m5 x1qndepd xr5kp14 xk4h15q xj0a0fe",
|
|
207
|
+
children: e
|
|
208
|
+
}), t.length === 0 ? /* @__PURE__ */ f("p", {
|
|
186
209
|
className: "x1ghz6dp x1mvvolr x153jb6y",
|
|
187
210
|
children: "No frames recorded."
|
|
188
|
-
}) : /* @__PURE__ */
|
|
211
|
+
}) : /* @__PURE__ */ f("ol", {
|
|
189
212
|
className: "x1ghz6dp x1717udv x3ct3a4",
|
|
190
|
-
children:
|
|
191
|
-
let
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
213
|
+
children: t.map((e) => {
|
|
214
|
+
let t = [
|
|
215
|
+
e.file,
|
|
216
|
+
e.line,
|
|
217
|
+
e.column
|
|
195
218
|
].filter((e) => e !== void 0).join(":");
|
|
196
|
-
return /* @__PURE__ */
|
|
197
|
-
className: "x1mvvolr xso031l x1q0q8m5 x1qndepd",
|
|
198
|
-
children: [
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
filename: t.file
|
|
211
|
-
})
|
|
212
|
-
]
|
|
213
|
-
}, t.id);
|
|
219
|
+
return /* @__PURE__ */ p("li", {
|
|
220
|
+
className: "x78zum5 xdt5ytf x1hnptsi xeuugli xj0a0fe x1mvvolr xso031l x1t1lzn6 x1q0q8m5 x1qndepd",
|
|
221
|
+
children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(o, {
|
|
222
|
+
href: e.href,
|
|
223
|
+
children: e.name
|
|
224
|
+
}), t.length > 0 && /* @__PURE__ */ f("span", {
|
|
225
|
+
className: "x1lliihq x153jb6y xiard35 xy8obcc xj0a0fe",
|
|
226
|
+
children: t
|
|
227
|
+
})] }), e.code !== void 0 && /* @__PURE__ */ f(a, {
|
|
228
|
+
code: e.code,
|
|
229
|
+
language: e.language,
|
|
230
|
+
filename: e.file
|
|
231
|
+
})]
|
|
232
|
+
}, e.id);
|
|
214
233
|
})
|
|
215
234
|
})]
|
|
216
235
|
});
|
|
217
236
|
}
|
|
218
237
|
// packages/content/src/trace.tsx
|
|
219
|
-
var
|
|
238
|
+
var A = {
|
|
220
239
|
pending: {
|
|
221
240
|
kMwMTN: "x153jb6y",
|
|
222
241
|
$$css: !0
|
|
@@ -241,78 +260,78 @@ var O = {
|
|
|
241
260
|
kMwMTN: "x153jb6y",
|
|
242
261
|
$$css: !0
|
|
243
262
|
}
|
|
244
|
-
},
|
|
245
|
-
pending:
|
|
246
|
-
running:
|
|
247
|
-
complete:
|
|
248
|
-
failed:
|
|
249
|
-
skipped:
|
|
250
|
-
unknown:
|
|
251
|
-
},
|
|
252
|
-
pending:
|
|
253
|
-
running:
|
|
254
|
-
complete:
|
|
255
|
-
failed:
|
|
256
|
-
skipped:
|
|
257
|
-
unknown:
|
|
263
|
+
}, j = {
|
|
264
|
+
pending: A.pending,
|
|
265
|
+
running: A.running,
|
|
266
|
+
complete: A.complete,
|
|
267
|
+
failed: A.failed,
|
|
268
|
+
skipped: A.skipped,
|
|
269
|
+
unknown: A.unknown
|
|
270
|
+
}, M = {
|
|
271
|
+
pending: v,
|
|
272
|
+
running: h,
|
|
273
|
+
complete: m,
|
|
274
|
+
failed: y,
|
|
275
|
+
skipped: g,
|
|
276
|
+
unknown: _
|
|
258
277
|
};
|
|
259
|
-
function
|
|
260
|
-
return /* @__PURE__ */
|
|
278
|
+
function N({ label: e, children: t }) {
|
|
279
|
+
return /* @__PURE__ */ f("ol", {
|
|
261
280
|
"aria-label": e,
|
|
262
|
-
className: "x1ghz6dp x1717udv x3ct3a4 xeuugli x1hz01jw xtqrqnz x1778rvt xbixft",
|
|
281
|
+
className: "x1ghz6dp x1717udv x3ct3a4 xeuugli x1hz01jw xtqrqnz x1778rvt xj57cvi xbixft",
|
|
263
282
|
children: t
|
|
264
283
|
});
|
|
265
284
|
}
|
|
266
|
-
function
|
|
267
|
-
return /* @__PURE__ */
|
|
285
|
+
function P({ label: e, children: t }) {
|
|
286
|
+
return /* @__PURE__ */ f("ol", {
|
|
268
287
|
"aria-label": e,
|
|
269
|
-
className: "x1ghz6dp x1717udv x3ct3a4 xeuugli x1hz01jw xtqrqnz x1778rvt xbixft
|
|
288
|
+
className: "x1ghz6dp x1717udv x3ct3a4 xeuugli x1hz01jw xtqrqnz x1778rvt xj57cvi xbixft x3bg4vu",
|
|
270
289
|
children: t
|
|
271
290
|
});
|
|
272
291
|
}
|
|
273
|
-
function
|
|
274
|
-
let m =
|
|
275
|
-
return /* @__PURE__ */
|
|
292
|
+
function F({ id: e, label: n, status: i, statusLabel: a, description: o, detail: c, selected: l, onSelect: u, children: d }) {
|
|
293
|
+
let m = M[i];
|
|
294
|
+
return /* @__PURE__ */ p("li", {
|
|
276
295
|
"data-item-id": e,
|
|
277
|
-
className: "x1n2onr6 xrvj5dj x1qpdrs7 x8zbtdt x1wv5www",
|
|
278
|
-
children: [/* @__PURE__ */
|
|
296
|
+
className: "x1n2onr6 xrvj5dj x1qpdrs7 x8zbtdt x1wv5www xup0pd7",
|
|
297
|
+
children: [/* @__PURE__ */ p("div", {
|
|
279
298
|
"aria-hidden": !0,
|
|
280
299
|
className: "x78zum5 xdt5ytf x6s0dn4 xunmzkg x1lk341d",
|
|
281
|
-
children: [/* @__PURE__ */
|
|
300
|
+
children: [/* @__PURE__ */ f(m, {
|
|
282
301
|
size: 14,
|
|
283
|
-
...
|
|
284
|
-
}), /* @__PURE__ */
|
|
285
|
-
}), /* @__PURE__ */
|
|
302
|
+
...s.props(j[i])
|
|
303
|
+
}), /* @__PURE__ */ f("span", { className: "x1i1rx1s x1f6qilh x98rzlu x1fa40ue" })]
|
|
304
|
+
}), /* @__PURE__ */ p("div", {
|
|
286
305
|
className: "x78zum5 xdt5ytf xunmzkg xeuugli",
|
|
287
306
|
children: [
|
|
288
|
-
/* @__PURE__ */
|
|
307
|
+
/* @__PURE__ */ f("div", {
|
|
289
308
|
...{
|
|
290
|
-
0: { className: "
|
|
291
|
-
1: { className: "
|
|
309
|
+
0: { className: "xk4h15q xj0a0fe" },
|
|
310
|
+
1: { className: "xk4h15q xj0a0fe xujl8zx xda060z" }
|
|
292
311
|
}[l === !0 | 0],
|
|
293
|
-
children: u === void 0 ?
|
|
312
|
+
children: u === void 0 ? n : /* @__PURE__ */ f(t, {
|
|
294
313
|
"aria-pressed": l,
|
|
295
314
|
onClick: () => u(e),
|
|
296
|
-
children:
|
|
315
|
+
children: n
|
|
297
316
|
})
|
|
298
317
|
}),
|
|
299
|
-
/* @__PURE__ */
|
|
300
|
-
className: "xy8obcc xas2l8k x153jb6y",
|
|
318
|
+
/* @__PURE__ */ f("span", {
|
|
319
|
+
className: "xy8obcc xas2l8k x153jb6y xj0a0fe",
|
|
301
320
|
children: a
|
|
302
321
|
}),
|
|
303
|
-
|
|
322
|
+
o !== void 0 && /* @__PURE__ */ f("p", {
|
|
304
323
|
className: "x1ghz6dp x153jb6y xj0a0fe",
|
|
305
|
-
children:
|
|
324
|
+
children: o
|
|
306
325
|
}),
|
|
307
|
-
c !== void 0 && /* @__PURE__ */
|
|
308
|
-
|
|
326
|
+
c !== void 0 && /* @__PURE__ */ p(r.Root, { children: [/* @__PURE__ */ f(r.Trigger, { children: "Details" }), /* @__PURE__ */ f(r.Panel, { children: c })] }),
|
|
327
|
+
d
|
|
309
328
|
]
|
|
310
329
|
})]
|
|
311
330
|
});
|
|
312
331
|
}
|
|
313
|
-
var
|
|
314
|
-
Root:
|
|
315
|
-
Item:
|
|
316
|
-
Group:
|
|
332
|
+
var I = {
|
|
333
|
+
Root: N,
|
|
334
|
+
Item: F,
|
|
335
|
+
Group: P
|
|
317
336
|
};
|
|
318
|
-
export {
|
|
337
|
+
export { w as JsonViewer, O as LogViewer, k as StackTrace, I as Trace };
|