@mechane-ai/elements 0.20.0 → 0.21.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/README.md +11 -5
- package/dist/{categorical-values-Cf-zlA1u.js → categorical-values-DG0kzYxN.js} +2 -2
- package/dist/{chart-frame-Cf6LBA8M.js → chart-frame-DxAZ0h_q.js} +49 -50
- package/dist/{chart-input-BTDzeBQU.js → chart-input-Dru0GScv.js} +1 -1
- package/dist/charts/cartesian.js +276 -226
- package/dist/charts/distribution.js +2 -2
- package/dist/charts/graph.js +82 -80
- package/dist/charts/hierarchy.js +3 -3
- package/dist/charts/matrix.js +136 -134
- package/dist/charts/timeline.js +1 -1
- package/dist/charts.js +1 -1
- package/dist/code-block-DlUwVaPP.js +182 -0
- package/dist/collections.js +227 -117
- package/dist/content/code.js +1 -1
- package/dist/content/diff.js +2 -2
- package/dist/content/markdown.js +108 -102
- package/dist/content/tree.js +41 -39
- package/dist/content.js +138 -136
- package/dist/elements.css +42 -0
- package/dist/layout.js +212 -203
- package/dist/navigation.js +0 -1
- package/dist/packages/charts/src/chart-cursor.d.ts +7 -0
- package/dist/packages/charts/src/chart-theme.d.ts +1 -7
- package/dist/packages/collections/src/index.d.ts +1 -0
- package/dist/packages/collections/src/metrics.d.ts +64 -5
- package/dist/packages/foundations/src/use-scroll-tab-index.d.ts +6 -0
- package/dist/packages/layout/src/index.d.ts +2 -0
- package/dist/packages/layout/src/report-section.d.ts +6 -0
- package/dist/pierre-diff-CHQsoQSZ.js +72 -0
- package/dist/use-scroll-tab-index-Dxpdh4W7.js +45 -0
- package/package.json +1 -1
- package/dist/code-block-D1_kzPrs.js +0 -180
- package/dist/pierre-diff-hAwARDse.js +0 -71
package/dist/content.js
CHANGED
|
@@ -1,40 +1,41 @@
|
|
|
1
1
|
import { C as e, E as t, _ as n, g as r } from "./src-qU5Z5LRH.js";
|
|
2
|
-
import { t as i } from "./
|
|
3
|
-
import { t as a } from "./
|
|
4
|
-
import { t as o } from "./
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import x from "
|
|
2
|
+
import { t as i } from "./use-scroll-tab-index-Dxpdh4W7.js";
|
|
3
|
+
import { t as a } from "./viewer-styles-CpHqp5Qv.js";
|
|
4
|
+
import { t as o } from "./code-block-DlUwVaPP.js";
|
|
5
|
+
import { t as s } from "./content-link-BIMrgXbz.js";
|
|
6
|
+
import * as c from "@stylexjs/stylex";
|
|
7
|
+
import { useCallback as l, useEffect as u, useLayoutEffect as d, useRef as f, useState as p } from "react";
|
|
8
|
+
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
9
|
+
import { Check as g, Circle as _, CircleDashed as v, CircleHelp as y, Clock as b, X as x } from "lucide-react";
|
|
10
|
+
import S from "strip-ansi";
|
|
10
11
|
// packages/content/src/json-viewer.tsx
|
|
11
|
-
var
|
|
12
|
+
var C = { body: {
|
|
12
13
|
kmVPX3: "x1mvvolr",
|
|
13
14
|
kVQacm: "xysyzu8",
|
|
14
15
|
kskxy: "x1phlbz0",
|
|
15
16
|
kMv6JI: "xiard35",
|
|
16
17
|
kGuDYH: "xy8obcc",
|
|
17
18
|
$$css: !0
|
|
18
|
-
} },
|
|
19
|
-
function
|
|
20
|
-
let [o, s] =
|
|
19
|
+
} }, w = 500;
|
|
20
|
+
function T({ value: e, name: t, path: n, depth: r, maxDepth: i, maxEntries: a }) {
|
|
21
|
+
let [o, s] = p(r === 0);
|
|
21
22
|
if (typeof e != "object" || !e) {
|
|
22
|
-
let n = JSON.stringify(e), r = n.length >
|
|
23
|
-
return /* @__PURE__ */
|
|
23
|
+
let n = JSON.stringify(e), r = n.length > w;
|
|
24
|
+
return /* @__PURE__ */ h("div", {
|
|
24
25
|
className: "xeuugli x126k92a xj0a0fe",
|
|
25
26
|
children: [
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
+
/* @__PURE__ */ h("span", {
|
|
27
28
|
className: "x153jb6y",
|
|
28
29
|
children: [t, ": "]
|
|
29
30
|
}),
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
+
/* @__PURE__ */ m("span", {
|
|
31
32
|
...{
|
|
32
33
|
0: { className: "xbixft" },
|
|
33
34
|
1: { className: "x7ixh4y" }
|
|
34
35
|
}[typeof e == "string" | 0],
|
|
35
|
-
children: n.slice(0,
|
|
36
|
+
children: n.slice(0, w)
|
|
36
37
|
}),
|
|
37
|
-
r && /* @__PURE__ */
|
|
38
|
+
r && /* @__PURE__ */ m("span", {
|
|
38
39
|
className: "x153jb6y x1hz01jw",
|
|
39
40
|
children: "… (value truncated)"
|
|
40
41
|
})
|
|
@@ -42,38 +43,38 @@ function w({ value: e, name: t, path: n, depth: r, maxDepth: i, maxEntries: a })
|
|
|
42
43
|
});
|
|
43
44
|
}
|
|
44
45
|
let c = Object.entries(e), l = Array.isArray(e) ? `${c.length} items` : `${c.length} fields`;
|
|
45
|
-
return r >= i ? /* @__PURE__ */
|
|
46
|
+
return r >= i ? /* @__PURE__ */ h("div", {
|
|
46
47
|
className: "xeuugli x126k92a xj0a0fe",
|
|
47
|
-
children: [/* @__PURE__ */
|
|
48
|
+
children: [/* @__PURE__ */ h("span", {
|
|
48
49
|
className: "x153jb6y",
|
|
49
50
|
children: [t, ": "]
|
|
50
|
-
}), /* @__PURE__ */
|
|
51
|
+
}), /* @__PURE__ */ h("span", {
|
|
51
52
|
className: "x153jb6y x1hz01jw",
|
|
52
53
|
children: [l, " · depth limit"]
|
|
53
54
|
})]
|
|
54
|
-
}) : /* @__PURE__ */
|
|
55
|
+
}) : /* @__PURE__ */ h("details", {
|
|
55
56
|
open: o,
|
|
56
57
|
onToggle: (e) => s(e.currentTarget.open),
|
|
57
58
|
className: "xeuugli x126k92a xj0a0fe",
|
|
58
|
-
children: [/* @__PURE__ */
|
|
59
|
+
children: [/* @__PURE__ */ h("summary", {
|
|
59
60
|
className: "x9f619 x1ypdohk x16exltd x17oiadl xt970qd x1r6zayv xjbqb8w xif5pkx x1s9zmfe x19rmrnh x13qnu6 x9v5kkp x1bqaal",
|
|
60
61
|
children: [
|
|
61
|
-
/* @__PURE__ */
|
|
62
|
+
/* @__PURE__ */ h("span", {
|
|
62
63
|
className: "x153jb6y",
|
|
63
64
|
children: [t, ": "]
|
|
64
65
|
}),
|
|
65
66
|
Array.isArray(e) ? "[]" : "{}",
|
|
66
67
|
" ",
|
|
67
|
-
/* @__PURE__ */
|
|
68
|
+
/* @__PURE__ */ m("span", {
|
|
68
69
|
className: "x153jb6y x1hz01jw",
|
|
69
70
|
children: l
|
|
70
71
|
})
|
|
71
72
|
]
|
|
72
|
-
}), o && /* @__PURE__ */
|
|
73
|
+
}), o && /* @__PURE__ */ h("div", {
|
|
73
74
|
className: "xo02m6d xpilrb4 x1t7ytsu x97x49r xa1dmyi",
|
|
74
75
|
children: [c.slice(0, a).map(([e, t]) => {
|
|
75
76
|
let o = `${n}/${e.replaceAll("~", "~0").replaceAll("/", "~1")}`;
|
|
76
|
-
return /* @__PURE__ */
|
|
77
|
+
return /* @__PURE__ */ m(T, {
|
|
77
78
|
name: JSON.stringify(e),
|
|
78
79
|
path: o,
|
|
79
80
|
value: t,
|
|
@@ -81,46 +82,47 @@ function w({ value: e, name: t, path: n, depth: r, maxDepth: i, maxEntries: a })
|
|
|
81
82
|
maxDepth: i,
|
|
82
83
|
maxEntries: a
|
|
83
84
|
}, o);
|
|
84
|
-
}), c.length > a && /* @__PURE__ */
|
|
85
|
+
}), c.length > a && /* @__PURE__ */ h("div", {
|
|
85
86
|
className: "x153jb6y x1hz01jw",
|
|
86
87
|
children: [c.length - a, " more entries · copy to inspect the complete value"]
|
|
87
88
|
})]
|
|
88
89
|
})]
|
|
89
90
|
});
|
|
90
91
|
}
|
|
91
|
-
function
|
|
92
|
-
let
|
|
93
|
-
return /* @__PURE__ */
|
|
92
|
+
function E({ value: e, label: t, maxDepth: r = 6, maxEntries: o = 50 }) {
|
|
93
|
+
let s = i(), u = l(() => JSON.stringify(e, null, 2), [e]);
|
|
94
|
+
return /* @__PURE__ */ h("section", {
|
|
94
95
|
"aria-label": t,
|
|
95
|
-
...
|
|
96
|
-
children: [/* @__PURE__ */
|
|
97
|
-
...
|
|
98
|
-
children: [/* @__PURE__ */
|
|
99
|
-
...
|
|
96
|
+
...c.props(a.root),
|
|
97
|
+
children: [/* @__PURE__ */ h("div", {
|
|
98
|
+
...c.props(a.header),
|
|
99
|
+
children: [/* @__PURE__ */ m("span", {
|
|
100
|
+
...c.props(a.label),
|
|
100
101
|
children: t
|
|
101
|
-
}), /* @__PURE__ */
|
|
102
|
+
}), /* @__PURE__ */ m(n, {
|
|
102
103
|
label: t,
|
|
103
|
-
value:
|
|
104
|
+
value: u,
|
|
104
105
|
children: "Copy JSON"
|
|
105
106
|
})]
|
|
106
|
-
}), /* @__PURE__ */
|
|
107
|
+
}), /* @__PURE__ */ m("div", {
|
|
108
|
+
ref: s.ref,
|
|
107
109
|
role: "region",
|
|
108
110
|
"aria-label": `${t} fields`,
|
|
109
|
-
tabIndex:
|
|
110
|
-
...
|
|
111
|
-
children: /* @__PURE__ */
|
|
111
|
+
tabIndex: s.tabIndex,
|
|
112
|
+
...c.props(a.scrollRegion, C.body),
|
|
113
|
+
children: /* @__PURE__ */ m(T, {
|
|
112
114
|
name: "root",
|
|
113
115
|
path: "",
|
|
114
116
|
value: e,
|
|
115
117
|
depth: 0,
|
|
116
118
|
maxDepth: Math.max(1, r),
|
|
117
|
-
maxEntries: Math.max(1,
|
|
119
|
+
maxEntries: Math.max(1, o)
|
|
118
120
|
})
|
|
119
121
|
})]
|
|
120
122
|
});
|
|
121
123
|
}
|
|
122
124
|
// packages/content/src/log-viewer.tsx
|
|
123
|
-
var
|
|
125
|
+
var D = {
|
|
124
126
|
kVQacm: "xysyzu8",
|
|
125
127
|
kmVPX3: "x1mvvolr",
|
|
126
128
|
kogj98: "x1ghz6dp",
|
|
@@ -131,9 +133,9 @@ var E = {
|
|
|
131
133
|
kHjlTd: "xj0a0fe",
|
|
132
134
|
kKi2Bq: "xeq4nuv",
|
|
133
135
|
$$css: !0
|
|
134
|
-
},
|
|
136
|
+
}, O = {
|
|
135
137
|
output: (e) => [
|
|
136
|
-
|
|
138
|
+
D,
|
|
137
139
|
{
|
|
138
140
|
kskxy: e == null ? e : "x1jols5v",
|
|
139
141
|
$$css: !0
|
|
@@ -146,66 +148,66 @@ var E = {
|
|
|
146
148
|
kL6WhQ: "x1qndepd",
|
|
147
149
|
$$css: !0
|
|
148
150
|
}
|
|
149
|
-
},
|
|
150
|
-
function
|
|
151
|
-
let
|
|
152
|
-
return
|
|
153
|
-
|
|
154
|
-
}, [t,
|
|
155
|
-
!
|
|
156
|
-
}, [
|
|
151
|
+
}, k = 2e5;
|
|
152
|
+
function A({ output: t, label: r, maxLines: o = 500, maxHeight: s = 320, isRunning: l = !1 }) {
|
|
153
|
+
let g = i(), _ = g.viewport, v = f(!1), [y, b] = p(!0), x = S(t), C = x.slice(-2e5).split("\n"), w = C.slice(-Math.max(1, o)), T = C.length - w.length;
|
|
154
|
+
return u(() => {
|
|
155
|
+
y && _.current !== null && (_.current.scrollTop = _.current.scrollHeight);
|
|
156
|
+
}, [t, y]), d(() => {
|
|
157
|
+
!l && v.current && (v.current = !1, _.current?.focus({ preventScroll: !0 }));
|
|
158
|
+
}, [l]), /* @__PURE__ */ h("section", {
|
|
157
159
|
"aria-label": r,
|
|
158
|
-
...
|
|
160
|
+
...c.props(a.root),
|
|
159
161
|
children: [
|
|
160
|
-
/* @__PURE__ */
|
|
161
|
-
...
|
|
162
|
-
children: [/* @__PURE__ */
|
|
163
|
-
...
|
|
164
|
-
children: [r,
|
|
165
|
-
}), /* @__PURE__ */
|
|
166
|
-
...
|
|
167
|
-
children: [
|
|
162
|
+
/* @__PURE__ */ h("div", {
|
|
163
|
+
...c.props(a.header),
|
|
164
|
+
children: [/* @__PURE__ */ h("span", {
|
|
165
|
+
...c.props(a.label),
|
|
166
|
+
children: [r, l && " · running"]
|
|
167
|
+
}), /* @__PURE__ */ h("div", {
|
|
168
|
+
...c.props(a.actions),
|
|
169
|
+
children: [l && /* @__PURE__ */ m(e, {
|
|
168
170
|
variant: "ghost",
|
|
169
|
-
onClick: () =>
|
|
171
|
+
onClick: () => b(!y),
|
|
170
172
|
onFocus: () => {
|
|
171
|
-
|
|
173
|
+
v.current = !0;
|
|
172
174
|
},
|
|
173
175
|
onBlur: () => {
|
|
174
|
-
|
|
176
|
+
v.current = !1;
|
|
175
177
|
},
|
|
176
|
-
children:
|
|
177
|
-
}), /* @__PURE__ */
|
|
178
|
+
children: y ? "Pause following" : "Follow output"
|
|
179
|
+
}), /* @__PURE__ */ m(n, {
|
|
178
180
|
value: t,
|
|
179
181
|
label: r,
|
|
180
182
|
children: "Copy"
|
|
181
183
|
})]
|
|
182
184
|
})]
|
|
183
185
|
}),
|
|
184
|
-
|
|
185
|
-
...
|
|
186
|
-
children: [
|
|
186
|
+
T > 0 && /* @__PURE__ */ h("div", {
|
|
187
|
+
...c.props(a.note, O.notice),
|
|
188
|
+
children: [T, " earlier lines omitted from this view. Copy includes the supplied output."]
|
|
187
189
|
}),
|
|
188
|
-
|
|
189
|
-
...
|
|
190
|
+
x.length > k && /* @__PURE__ */ m("div", {
|
|
191
|
+
...c.props(a.note, O.notice),
|
|
190
192
|
children: "Preview limited to the last 200,000 characters. Copy includes the supplied output."
|
|
191
193
|
}),
|
|
192
|
-
/* @__PURE__ */
|
|
193
|
-
ref:
|
|
194
|
+
/* @__PURE__ */ m("pre", {
|
|
195
|
+
ref: g.ref,
|
|
194
196
|
role: "region",
|
|
195
197
|
"aria-label": `${r} output`,
|
|
196
|
-
tabIndex:
|
|
198
|
+
tabIndex: g.tabIndex,
|
|
197
199
|
onScroll: (e) => {
|
|
198
200
|
let t = e.currentTarget;
|
|
199
|
-
|
|
201
|
+
b(t.scrollHeight - t.scrollTop - t.clientHeight < 8);
|
|
200
202
|
},
|
|
201
|
-
...
|
|
202
|
-
children:
|
|
203
|
+
...c.props(a.scrollRegion, O.output(s)),
|
|
204
|
+
children: x.length === 0 ? "No output recorded." : w.join("\n")
|
|
203
205
|
})
|
|
204
206
|
]
|
|
205
207
|
});
|
|
206
208
|
}
|
|
207
209
|
// packages/content/src/media-viewer.tsx
|
|
208
|
-
var
|
|
210
|
+
var j = {
|
|
209
211
|
viewport: {
|
|
210
212
|
k1xSpc: "xrvj5dj",
|
|
211
213
|
kgQiWS: "x1ku5rj1",
|
|
@@ -222,27 +224,27 @@ var A = {
|
|
|
222
224
|
$$css: !0
|
|
223
225
|
}
|
|
224
226
|
};
|
|
225
|
-
function
|
|
226
|
-
return /* @__PURE__ */
|
|
227
|
+
function M() {
|
|
228
|
+
return /* @__PURE__ */ m("div", {
|
|
227
229
|
"aria-hidden": !0,
|
|
228
|
-
...
|
|
230
|
+
...c.props(a.root, j.viewport, j.placeholder)
|
|
229
231
|
});
|
|
230
232
|
}
|
|
231
|
-
function
|
|
232
|
-
return /* @__PURE__ */
|
|
233
|
-
...
|
|
234
|
-
children: e === "image" ? /* @__PURE__ */
|
|
233
|
+
function N({ kind: e, src: t, label: n, widthPixels: r, heightPixels: i, onError: o }) {
|
|
234
|
+
return /* @__PURE__ */ m("div", {
|
|
235
|
+
...c.props(a.root, j.viewport),
|
|
236
|
+
children: e === "image" ? /* @__PURE__ */ m("img", {
|
|
235
237
|
src: t,
|
|
236
238
|
alt: n,
|
|
237
239
|
width: r,
|
|
238
|
-
height:
|
|
240
|
+
height: i,
|
|
239
241
|
onError: o,
|
|
240
242
|
className: "x1lliihq xh8yej3 x5yr21d x2lwn1j x19kjcj4"
|
|
241
|
-
}) : /* @__PURE__ */
|
|
243
|
+
}) : /* @__PURE__ */ m("video", {
|
|
242
244
|
src: t,
|
|
243
245
|
"aria-label": n,
|
|
244
246
|
width: r,
|
|
245
|
-
height:
|
|
247
|
+
height: i,
|
|
246
248
|
controls: !0,
|
|
247
249
|
muted: !0,
|
|
248
250
|
playsInline: !0,
|
|
@@ -253,17 +255,17 @@ function M({ kind: e, src: t, label: n, widthPixels: r, heightPixels: a, onError
|
|
|
253
255
|
});
|
|
254
256
|
}
|
|
255
257
|
// packages/content/src/stack-trace.tsx
|
|
256
|
-
function
|
|
257
|
-
return /* @__PURE__ */
|
|
258
|
+
function P({ message: e, frames: t }) {
|
|
259
|
+
return /* @__PURE__ */ h("section", {
|
|
258
260
|
"aria-label": "Stack trace",
|
|
259
|
-
...
|
|
260
|
-
children: [/* @__PURE__ */
|
|
261
|
+
...c.props(a.root),
|
|
262
|
+
children: [/* @__PURE__ */ m("p", {
|
|
261
263
|
className: "x1ghz6dp x1mvvolr xso031l x1q0q8m5 x1qndepd xr5kp14 xk4h15q xj0a0fe",
|
|
262
264
|
children: e
|
|
263
|
-
}), t.length === 0 ? /* @__PURE__ */
|
|
265
|
+
}), t.length === 0 ? /* @__PURE__ */ m("p", {
|
|
264
266
|
className: "x1ghz6dp x1mvvolr x153jb6y",
|
|
265
267
|
children: "No frames recorded."
|
|
266
|
-
}) : /* @__PURE__ */
|
|
268
|
+
}) : /* @__PURE__ */ m("ol", {
|
|
267
269
|
className: "x1ghz6dp x1717udv x3ct3a4",
|
|
268
270
|
children: t.map((e) => {
|
|
269
271
|
let t = [
|
|
@@ -271,15 +273,15 @@ function N({ message: e, frames: t }) {
|
|
|
271
273
|
e.line,
|
|
272
274
|
e.column
|
|
273
275
|
].filter((e) => e !== void 0).join(":");
|
|
274
|
-
return /* @__PURE__ */
|
|
276
|
+
return /* @__PURE__ */ h("li", {
|
|
275
277
|
className: "x78zum5 xdt5ytf x1hnptsi xeuugli xj0a0fe x1mvvolr xso031l x1t1lzn6 x1q0q8m5 x1qndepd",
|
|
276
|
-
children: [/* @__PURE__ */
|
|
278
|
+
children: [/* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m(s, {
|
|
277
279
|
href: e.href,
|
|
278
280
|
children: e.name
|
|
279
|
-
}), t.length > 0 && /* @__PURE__ */
|
|
281
|
+
}), t.length > 0 && /* @__PURE__ */ m("span", {
|
|
280
282
|
className: "x1lliihq x153jb6y xiard35 xy8obcc xj0a0fe",
|
|
281
283
|
children: t
|
|
282
|
-
})] }), e.code !== void 0 && /* @__PURE__ */
|
|
284
|
+
})] }), e.code !== void 0 && /* @__PURE__ */ m(o, {
|
|
283
285
|
code: e.code,
|
|
284
286
|
language: e.language,
|
|
285
287
|
filename: e.file
|
|
@@ -290,7 +292,7 @@ function N({ message: e, frames: t }) {
|
|
|
290
292
|
});
|
|
291
293
|
}
|
|
292
294
|
// packages/content/src/trace.tsx
|
|
293
|
-
var
|
|
295
|
+
var F = {
|
|
294
296
|
pending: {
|
|
295
297
|
kMwMTN: "x153jb6y",
|
|
296
298
|
$$css: !0
|
|
@@ -315,78 +317,78 @@ var P = {
|
|
|
315
317
|
kMwMTN: "x153jb6y",
|
|
316
318
|
$$css: !0
|
|
317
319
|
}
|
|
318
|
-
}, F = {
|
|
319
|
-
pending: P.pending,
|
|
320
|
-
running: P.running,
|
|
321
|
-
complete: P.complete,
|
|
322
|
-
failed: P.failed,
|
|
323
|
-
skipped: P.skipped,
|
|
324
|
-
unknown: P.unknown
|
|
325
320
|
}, I = {
|
|
326
|
-
pending:
|
|
327
|
-
running:
|
|
328
|
-
complete:
|
|
329
|
-
failed:
|
|
330
|
-
skipped:
|
|
331
|
-
unknown:
|
|
321
|
+
pending: F.pending,
|
|
322
|
+
running: F.running,
|
|
323
|
+
complete: F.complete,
|
|
324
|
+
failed: F.failed,
|
|
325
|
+
skipped: F.skipped,
|
|
326
|
+
unknown: F.unknown
|
|
327
|
+
}, L = {
|
|
328
|
+
pending: b,
|
|
329
|
+
running: _,
|
|
330
|
+
complete: g,
|
|
331
|
+
failed: x,
|
|
332
|
+
skipped: v,
|
|
333
|
+
unknown: y
|
|
332
334
|
};
|
|
333
|
-
function
|
|
334
|
-
return /* @__PURE__ */
|
|
335
|
+
function R({ label: e, children: t }) {
|
|
336
|
+
return /* @__PURE__ */ m("ol", {
|
|
335
337
|
"aria-label": e,
|
|
336
338
|
className: "x1ghz6dp x1717udv x3ct3a4 xeuugli x1hz01jw xtqrqnz x1778rvt xj57cvi xbixft",
|
|
337
339
|
children: t
|
|
338
340
|
});
|
|
339
341
|
}
|
|
340
|
-
function
|
|
341
|
-
return /* @__PURE__ */
|
|
342
|
+
function z({ label: e, children: t }) {
|
|
343
|
+
return /* @__PURE__ */ m("ol", {
|
|
342
344
|
"aria-label": e,
|
|
343
345
|
className: "x1ghz6dp x1717udv x3ct3a4 xeuugli x1hz01jw xtqrqnz x1778rvt xj57cvi xbixft x3bg4vu",
|
|
344
346
|
children: t
|
|
345
347
|
});
|
|
346
348
|
}
|
|
347
|
-
function
|
|
348
|
-
let f =
|
|
349
|
-
return /* @__PURE__ */
|
|
349
|
+
function B({ id: e, label: n, status: i, statusLabel: a, description: o, detail: s, isSelected: l, onSelect: u, children: d }) {
|
|
350
|
+
let f = L[i];
|
|
351
|
+
return /* @__PURE__ */ h("li", {
|
|
350
352
|
"data-item-id": e,
|
|
351
353
|
className: "x1n2onr6 xrvj5dj x1qpdrs7 x8zbtdt x1wv5www xup0pd7",
|
|
352
|
-
children: [/* @__PURE__ */
|
|
354
|
+
children: [/* @__PURE__ */ h("div", {
|
|
353
355
|
"aria-hidden": !0,
|
|
354
356
|
className: "x78zum5 xdt5ytf x6s0dn4 xunmzkg x1lk341d",
|
|
355
|
-
children: [/* @__PURE__ */
|
|
357
|
+
children: [/* @__PURE__ */ m(f, {
|
|
356
358
|
size: 14,
|
|
357
|
-
...
|
|
358
|
-
}), /* @__PURE__ */
|
|
359
|
-
}), /* @__PURE__ */
|
|
359
|
+
...c.props(I[i])
|
|
360
|
+
}), /* @__PURE__ */ m("span", { className: "x1i1rx1s x1f6qilh x98rzlu x1fa40ue" })]
|
|
361
|
+
}), /* @__PURE__ */ h("div", {
|
|
360
362
|
className: "x78zum5 xdt5ytf xunmzkg xeuugli",
|
|
361
363
|
children: [
|
|
362
|
-
/* @__PURE__ */
|
|
364
|
+
/* @__PURE__ */ m("div", {
|
|
363
365
|
...{
|
|
364
366
|
0: { className: "xk4h15q xj0a0fe" },
|
|
365
367
|
1: { className: "xk4h15q xj0a0fe xujl8zx xda060z" }
|
|
366
368
|
}[l === !0 | 0],
|
|
367
|
-
children: u === void 0 ? n : /* @__PURE__ */
|
|
369
|
+
children: u === void 0 ? n : /* @__PURE__ */ m(t, {
|
|
368
370
|
"aria-pressed": l,
|
|
369
371
|
onClick: () => u(e),
|
|
370
372
|
children: n
|
|
371
373
|
})
|
|
372
374
|
}),
|
|
373
|
-
/* @__PURE__ */
|
|
375
|
+
/* @__PURE__ */ m("span", {
|
|
374
376
|
className: "xy8obcc xas2l8k x153jb6y xj0a0fe",
|
|
375
377
|
children: a
|
|
376
378
|
}),
|
|
377
|
-
o !== void 0 && /* @__PURE__ */
|
|
379
|
+
o !== void 0 && /* @__PURE__ */ m("p", {
|
|
378
380
|
className: "x1ghz6dp x153jb6y xj0a0fe",
|
|
379
381
|
children: o
|
|
380
382
|
}),
|
|
381
|
-
|
|
383
|
+
s !== void 0 && /* @__PURE__ */ h(r.Root, { children: [/* @__PURE__ */ m(r.Trigger, { children: "Details" }), /* @__PURE__ */ m(r.Panel, { children: s })] }),
|
|
382
384
|
d
|
|
383
385
|
]
|
|
384
386
|
})]
|
|
385
387
|
});
|
|
386
388
|
}
|
|
387
|
-
var
|
|
388
|
-
Root:
|
|
389
|
-
Item:
|
|
390
|
-
Group:
|
|
389
|
+
var V = {
|
|
390
|
+
Root: R,
|
|
391
|
+
Item: B,
|
|
392
|
+
Group: z
|
|
391
393
|
};
|
|
392
|
-
export {
|
|
394
|
+
export { E as JsonViewer, A as LogViewer, N as MediaViewer, M as MediaViewerPlaceholder, P as StackTrace, V as Trace };
|
package/dist/elements.css
CHANGED
|
@@ -672,6 +672,10 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
|
|
|
672
672
|
align-items: stretch;
|
|
673
673
|
}
|
|
674
674
|
|
|
675
|
+
.xkh2ocl {
|
|
676
|
+
align-self: stretch;
|
|
677
|
+
}
|
|
678
|
+
|
|
675
679
|
.xegkacw {
|
|
676
680
|
animation-duration: .9s;
|
|
677
681
|
}
|
|
@@ -1022,6 +1026,10 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
|
|
|
1022
1026
|
column-gap: var(--x1qq5i99);
|
|
1023
1027
|
}
|
|
1024
1028
|
|
|
1029
|
+
.xa2sdi0 {
|
|
1030
|
+
column-gap: var(--xxhyxt);
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1025
1033
|
.x9vvk8s {
|
|
1026
1034
|
container-name: inspector;
|
|
1027
1035
|
}
|
|
@@ -1126,6 +1134,10 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
|
|
|
1126
1134
|
fill-opacity: .08;
|
|
1127
1135
|
}
|
|
1128
1136
|
|
|
1137
|
+
.x1l7klhg {
|
|
1138
|
+
flex-basis: 100%;
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1129
1141
|
.x1irul0l {
|
|
1130
1142
|
flex-basis: var(--xmu2bot);
|
|
1131
1143
|
}
|
|
@@ -1190,6 +1202,10 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
|
|
|
1190
1202
|
font-size: var(--x1af0fv0);
|
|
1191
1203
|
}
|
|
1192
1204
|
|
|
1205
|
+
.x71lla1 {
|
|
1206
|
+
font-size: var(--x3ivco5);
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1193
1209
|
.x1i2cqwi {
|
|
1194
1210
|
font-size: var(--xehpjyu);
|
|
1195
1211
|
}
|
|
@@ -1222,6 +1238,10 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
|
|
|
1222
1238
|
font-weight: var(--x1nq3oar);
|
|
1223
1239
|
}
|
|
1224
1240
|
|
|
1241
|
+
.xtjd4bd {
|
|
1242
|
+
font-weight: var(--xeequbj);
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1225
1245
|
.xt9c220 {
|
|
1226
1246
|
grid-auto-columns: auto;
|
|
1227
1247
|
}
|
|
@@ -1338,6 +1358,10 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
|
|
|
1338
1358
|
line-height: var(--x1o42vor);
|
|
1339
1359
|
}
|
|
1340
1360
|
|
|
1361
|
+
.xgkpprq {
|
|
1362
|
+
line-height: var(--x1q14agh);
|
|
1363
|
+
}
|
|
1364
|
+
|
|
1341
1365
|
.x1ytb0s6 {
|
|
1342
1366
|
line-height: var(--x1sf6ltt);
|
|
1343
1367
|
}
|
|
@@ -1382,6 +1406,10 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
|
|
|
1382
1406
|
opacity: calc(1 - var(--drawer-swipe-progress, 0));
|
|
1383
1407
|
}
|
|
1384
1408
|
|
|
1409
|
+
.x1g77sc7 {
|
|
1410
|
+
order: 0;
|
|
1411
|
+
}
|
|
1412
|
+
|
|
1385
1413
|
.x9ek82g {
|
|
1386
1414
|
order: 1;
|
|
1387
1415
|
}
|
|
@@ -1566,6 +1594,10 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
|
|
|
1566
1594
|
stroke-width: 2px;
|
|
1567
1595
|
}
|
|
1568
1596
|
|
|
1597
|
+
.xzly4p3 {
|
|
1598
|
+
stroke-width: var(--xxx3t85);
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1569
1601
|
.xeq4nuv {
|
|
1570
1602
|
tab-size: 2;
|
|
1571
1603
|
}
|
|
@@ -1774,6 +1806,10 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
|
|
|
1774
1806
|
}
|
|
1775
1807
|
}
|
|
1776
1808
|
|
|
1809
|
+
.xgs60n.xgs60n:where(.x-default-marker:focus-visible *) {
|
|
1810
|
+
visibility: visible;
|
|
1811
|
+
}
|
|
1812
|
+
|
|
1777
1813
|
.x7bu0ch[data-orientation="vertical"] {
|
|
1778
1814
|
align-items: flex-start;
|
|
1779
1815
|
}
|
|
@@ -2062,6 +2098,12 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
|
|
|
2062
2098
|
text-decoration-line: underline;
|
|
2063
2099
|
}
|
|
2064
2100
|
|
|
2101
|
+
@media (forced-colors: active) {
|
|
2102
|
+
.xbabvq0.xbabvq0 {
|
|
2103
|
+
stroke: highlight;
|
|
2104
|
+
}
|
|
2105
|
+
}
|
|
2106
|
+
|
|
2065
2107
|
@media (prefers-reduced-motion: reduce) {
|
|
2066
2108
|
.x12w9bfk.x12w9bfk {
|
|
2067
2109
|
transition-duration: 0s;
|