@mechane-ai/elements 0.48.0 → 0.49.1
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 +40 -2
- package/dist/ai.js +5 -5
- package/dist/{article-BXZr10QQ.js → article-CRlhq9oA.js} +532 -464
- package/dist/article.js +1 -1
- package/dist/catalog.json +243 -1
- package/dist/{categorical-values-BpVq8cFj.js → categorical-values-BYP_R5gS.js} +13 -13
- package/dist/{cells-xVmnQ9oQ.js → cells-CNZE4us2.js} +2 -2
- package/dist/charts/cartesian.js +1 -1
- package/dist/charts/cells.js +1 -1
- package/dist/charts/comparison.js +1 -1
- package/dist/charts/distribution.js +1 -1
- package/dist/charts/figure.js +12 -12
- package/dist/charts/graph.js +1 -1
- package/dist/charts/hierarchy.js +1 -1
- package/dist/charts/image.js +1 -1
- package/dist/charts/matrix.js +1 -1
- package/dist/charts/plot.js +7 -7
- package/dist/charts/relationship.js +1 -1
- package/dist/charts/text.js +1 -1
- package/dist/charts/timeline.js +1 -1
- package/dist/charts/trend.js +1 -1
- package/dist/charts.js +7 -7
- package/dist/{code-block-DioAM2bZ.js → code-block-BZsY2sh3.js} +1 -1
- package/dist/collections.js +1 -1
- package/dist/content/code.js +1 -1
- package/dist/content/diff.js +3 -3
- package/dist/content/link.js +1 -1
- package/dist/content/markdown.js +2 -2
- package/dist/content/tree.js +1 -1
- package/dist/{content-link-NWuHp5rC.js → content-link-PnpcnTCx.js} +1 -1
- package/dist/content.js +1 -1
- package/dist/{dates-Cww8UR_n.js → dates-ckJdYF7t.js} +1 -1
- package/dist/{dumbbell-plot-DQdTxDeO.js → dumbbell-plot-B-Tn7ewW.js} +49 -48
- package/dist/{embedding-map-CF-J-8JW.js → embedding-map-Bljn-A5q.js} +533 -533
- package/dist/feedback.js +1 -1
- package/dist/figure-frame-CEijciL7.js +289 -0
- package/dist/forms/dates.js +1 -1
- package/dist/forms.js +3 -3
- package/dist/{image-grid-Dl2sjIMB.js → image-grid-mrG5u9oE.js} +49 -49
- package/dist/index.js +1 -1
- package/dist/kits/evaluation.js +5 -5
- package/dist/kits/interpretability.js +320 -302
- package/dist/kits/operations.js +6 -6
- package/dist/kits/research.js +558 -0
- package/dist/kits/training.js +6 -6
- package/dist/layout.js +205 -110
- package/dist/lesson/spec.js +11 -11
- package/dist/lesson.js +4 -4
- package/dist/mdx.js +6 -6
- package/dist/navigation.js +2 -2
- package/dist/packages/charts/src/cartesian/index.d.ts +1 -1
- package/dist/packages/charts/src/cartesian/scatter-plot.d.ts +18 -0
- package/dist/packages/charts/src/chart-theme.d.ts +1 -1
- package/dist/packages/charts/src/figure/caption-scope.d.ts +12 -0
- package/dist/packages/charts/src/figure/figure-frame.d.ts +2 -1
- package/dist/packages/charts/src/index.d.ts +2 -0
- package/dist/packages/charts/src/plot/plot-surface.d.ts +3 -1
- package/dist/packages/collections/src/index.d.ts +1 -1
- package/dist/packages/collections/src/metrics.d.ts +9 -1
- package/dist/packages/content/src/index.d.ts +2 -0
- package/dist/packages/content/src/text-match.d.ts +22 -0
- package/dist/packages/core/src/index.d.ts +1 -0
- package/dist/packages/core/src/surfaces.d.ts +12 -2
- package/dist/packages/forms/src/index.d.ts +2 -0
- package/dist/packages/forms/src/token-input.d.ts +24 -0
- package/dist/packages/kits/src/interpretability/index.d.ts +1 -1
- package/dist/packages/kits/src/interpretability/logit-lens.d.ts +10 -1
- package/dist/packages/kits/src/research/finding-card.d.ts +43 -0
- package/dist/packages/kits/src/research/index.d.ts +8 -0
- package/dist/packages/kits/src/research/milestone-path.d.ts +36 -0
- package/dist/packages/kits/src/research/specimen-diff.d.ts +41 -0
- package/dist/packages/kits/src/research/work-heartbeat.d.ts +34 -0
- package/dist/packages/layout/src/figure-grid.d.ts +8 -0
- package/dist/packages/layout/src/index.d.ts +4 -1
- package/dist/packages/layout/src/sidebar.d.ts +7 -0
- package/dist/packages/layout/src/workbench.d.ts +4 -1
- package/dist/packages/teaching/src/article/article-context.d.ts +2 -0
- package/dist/packages/teaching/src/article/article-layout.stylex.d.ts +13 -0
- package/dist/packages/teaching/src/article/article.d.ts +6 -1
- package/dist/packages/teaching/src/article/figure.d.ts +20 -3
- package/dist/packages/teaching/src/article/index.d.ts +1 -1
- package/dist/packages/teaching/src/article/view-essay.d.ts +2 -1
- package/dist/packages/teaching/src/lesson/define-lesson.d.ts +4 -0
- package/dist/packages/teaching/src/lesson/index.d.ts +2 -2
- package/dist/packages/teaching/src/lesson/lesson-player.d.ts +19 -3
- package/dist/packages/teaching/src/lesson/lesson-store.d.ts +2 -0
- package/dist/packages/teaching/src/lesson/playback.d.ts +9 -6
- package/dist/packages/teaching/src/lesson/use-lesson.d.ts +7 -2
- package/dist/packages/teaching/src/scene/plane/plane-labels.d.ts +4 -1
- package/dist/packages/teaching/src/scene/plane/scene-point.d.ts +5 -6
- package/dist/packages/teaching/src/scene/scene-geometry.d.ts +1 -1
- package/dist/packages/teaching/src/scene/scene-node.d.ts +4 -1
- package/dist/packages/teaching/src/scene/scene-validate.d.ts +6 -0
- package/dist/packages/teaching/src/scene/scene-wire.d.ts +6 -1
- package/dist/packages/teaching/src/scene/scene.d.ts +1 -1
- package/dist/packages/teaching/src/scene/shapes/cell-grid.d.ts +5 -1
- package/dist/packages/teaching/src/scene/shapes/scene-cells.d.ts +1 -1
- package/dist/packages/teaching/src/scene/shapes/scene-slot.d.ts +1 -1
- package/dist/packages/teaching/src/time/tween.d.ts +2 -0
- package/dist/{param-CqKUTHaO.js → param-BdqTpZER.js} +175 -108
- package/dist/{pierre-diff-DlvjyuJn.js → pierre-diff-aGyQK5xK.js} +1 -1
- package/dist/{plot-axes-DJkLW4wk.js → plot-axes-D5S9BnBa.js} +1 -1
- package/dist/{plot-layout-CZVSJ-le.js → plot-layout-B2xRt-_k.js} +146 -132
- package/dist/{plot-marks-uozcbOIX.js → plot-marks-FVsbFkUs.js} +3 -3
- package/dist/{plot-surface-CbVBvgqZ.js → plot-surface-0cKFwtws.js} +11 -11
- package/dist/{plot-width-DcqtSgzb.js → plot-width-D3hTycYX.js} +1 -1
- package/dist/{reference-lines-BDcttOp0.js → reference-lines-nSxcZVF5.js} +2 -2
- package/dist/{scene-0z2gbaDE.js → scene-BwJKueD6.js} +1228 -1126
- package/dist/scene.js +1 -1
- package/dist/{slope-chart-BKVEAVCs.js → slope-chart-CGTYbFxi.js} +182 -182
- package/dist/{src-CpdJlDhO.js → src-9EJskqB_.js} +73 -31
- package/dist/{src-Dcfq8vE4.js → src-B2rgpWap.js} +48 -14
- package/dist/{src-BPTDJqt0.js → src-Ci8DeY8J.js} +1 -1
- package/dist/{src-CGc_hjxJ.js → src-DFW49IAs.js} +143 -111
- package/dist/{src-BD6xlvDt.js → src-Dxs3Buo_.js} +203 -137
- package/dist/{src-CExIrXPC.js → src-npqwq3Sa.js} +1 -1
- package/dist/styles2.css +136 -17
- package/dist/{time-series-BgzGNOk0.js → time-series-Dh8y5ba0.js} +1018 -944
- package/dist/{token-heatmap-BrW1OsKD.js → token-heatmap-BTrZ3-N4.js} +86 -86
- package/dist/{token-predictions-yerq_Oet.js → token-predictions-CUe4junQ.js} +129 -129
- package/dist/{transport-BJweqDPj.js → transport-4V9rfYHN.js} +291 -246
- package/dist/{tree-diagram-D09BRqE-.js → tree-diagram-Dpqmo-fh.js} +118 -118
- package/dist/{treemap-CW4WsJNL.js → treemap-BUSaVD3m.js} +28 -28
- package/dist/use-tween-BsaEO862.js +10 -0
- package/dist/{violin-plot-DrtPZ1-T.js → violin-plot-BxaLwdRi.js} +126 -126
- package/dist/{waterfall-DYLSnGjm.js → waterfall-CcDMdKec.js} +43 -43
- package/package.json +5 -1
- package/recipes/counting-cards.tsx +3 -3
- package/skills/review-explainer/SKILL.md +2 -1
- package/skills/upgrade-elements/references/releases.md +61 -0
- package/skills/use-elements/SKILL.md +3 -1
- package/skills/use-elements/references/kits.md +7 -6
- package/skills/use-elements/references/styling.md +23 -0
- package/skills/use-elements/references/teaching.md +13 -0
- package/skills/write-explainer/references/article.md +50 -2
- package/skills/write-explainer/references/lesson.md +18 -9
- package/skills/write-explainer/references/scene-parts.md +17 -12
- package/skills/write-explainer/references/scene.md +25 -3
- package/dist/figure-frame-BJ3REgTA.js +0 -270
- package/dist/use-tween-5HZ55_9d.js +0 -72
|
@@ -1,41 +1,42 @@
|
|
|
1
|
-
import { T as e, k as t, v as n, y as r } from "./src-
|
|
1
|
+
import { T as e, k as t, v as n, y as r } from "./src-9EJskqB_.js";
|
|
2
2
|
import { t as i } from "./use-scroll-tab-index-Dxpdh4W7.js";
|
|
3
3
|
import { t as a } from "./viewer-styles-DsFYri4K.js";
|
|
4
|
-
import { i as o, t as s } from "./code-block-
|
|
5
|
-
import { t as c } from "./content-link-
|
|
4
|
+
import { i as o, t as s } from "./code-block-BZsY2sh3.js";
|
|
5
|
+
import { t as c } from "./content-link-PnpcnTCx.js";
|
|
6
6
|
import * as l from "@stylexjs/stylex";
|
|
7
7
|
import { useCallback as u, useLayoutEffect as d, useRef as f, useState as p, useSyncExternalStore as m } from "react";
|
|
8
8
|
import { createStickToBottom as h } from "@ui-sdk/core";
|
|
9
|
-
import {
|
|
10
|
-
import { Check as
|
|
11
|
-
import
|
|
9
|
+
import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
10
|
+
import { Check as y, Circle as b, CircleDashed as x, CircleHelp as S, Clock as C, X as w } from "lucide-react";
|
|
11
|
+
import T from "strip-ansi";
|
|
12
|
+
import { fuzzyScore as E, matchRanges as D, matchRanges as O, matchSegments as k, matchSegments as A } from "@ui-sdk/react/text-match";
|
|
12
13
|
// packages/content/src/json-viewer.tsx
|
|
13
|
-
var
|
|
14
|
+
var j = { body: {
|
|
14
15
|
kmVPX3: "x1mvvolr",
|
|
15
16
|
kVQacm: "xysyzu8",
|
|
16
17
|
kskxy: "x1phlbz0",
|
|
17
18
|
kMv6JI: "xiard35",
|
|
18
19
|
kGuDYH: "xy8obcc",
|
|
19
20
|
$$css: !0
|
|
20
|
-
} },
|
|
21
|
-
function
|
|
21
|
+
} }, M = 500;
|
|
22
|
+
function N({ value: e, name: t, path: r, depth: i, maxDepth: a, maxEntries: o }) {
|
|
22
23
|
if (typeof e != "object" || !e) {
|
|
23
|
-
let n = JSON.stringify(e), r = n.length >
|
|
24
|
-
return /* @__PURE__ */
|
|
24
|
+
let n = JSON.stringify(e), r = n.length > M;
|
|
25
|
+
return /* @__PURE__ */ v("div", {
|
|
25
26
|
className: "xeuugli x126k92a xj0a0fe",
|
|
26
27
|
children: [
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
+
/* @__PURE__ */ v("span", {
|
|
28
29
|
className: "x153jb6y",
|
|
29
30
|
children: [t, ": "]
|
|
30
31
|
}),
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
+
/* @__PURE__ */ _("span", {
|
|
32
33
|
...{
|
|
33
34
|
0: { className: "xbixft" },
|
|
34
35
|
1: { className: "x7ixh4y" }
|
|
35
36
|
}[typeof e == "string" | 0],
|
|
36
|
-
children: n.slice(0,
|
|
37
|
+
children: n.slice(0, M)
|
|
37
38
|
}),
|
|
38
|
-
r && /* @__PURE__ */
|
|
39
|
+
r && /* @__PURE__ */ _("span", {
|
|
39
40
|
className: "x153jb6y x1hz01jw",
|
|
40
41
|
children: "… (value truncated)"
|
|
41
42
|
})
|
|
@@ -43,40 +44,40 @@ function D({ value: e, name: t, path: r, depth: i, maxDepth: a, maxEntries: o })
|
|
|
43
44
|
});
|
|
44
45
|
}
|
|
45
46
|
let s = Object.entries(e), c = Array.isArray(e) ? `${s.length} items` : `${s.length} fields`;
|
|
46
|
-
return i >= a ? /* @__PURE__ */
|
|
47
|
+
return i >= a ? /* @__PURE__ */ v("div", {
|
|
47
48
|
className: "xeuugli x126k92a xj0a0fe",
|
|
48
|
-
children: [/* @__PURE__ */
|
|
49
|
+
children: [/* @__PURE__ */ v("span", {
|
|
49
50
|
className: "x153jb6y",
|
|
50
51
|
children: [t, ": "]
|
|
51
|
-
}), /* @__PURE__ */
|
|
52
|
+
}), /* @__PURE__ */ v("span", {
|
|
52
53
|
className: "x153jb6y x1hz01jw",
|
|
53
54
|
children: [c, " · depth limit"]
|
|
54
55
|
})]
|
|
55
|
-
}) : /* @__PURE__ */
|
|
56
|
+
}) : /* @__PURE__ */ v(n.Root, {
|
|
56
57
|
defaultOpen: i === 0,
|
|
57
58
|
className: "xeuugli x126k92a xj0a0fe",
|
|
58
|
-
children: [/* @__PURE__ */
|
|
59
|
+
children: [/* @__PURE__ */ _(n.Trigger, {
|
|
59
60
|
variant: "inline",
|
|
60
|
-
children: /* @__PURE__ */
|
|
61
|
+
children: /* @__PURE__ */ v("span", {
|
|
61
62
|
className: "xiard35 xy8obcc",
|
|
62
63
|
children: [
|
|
63
|
-
/* @__PURE__ */
|
|
64
|
+
/* @__PURE__ */ v("span", {
|
|
64
65
|
className: "x153jb6y",
|
|
65
66
|
children: [t, ": "]
|
|
66
67
|
}),
|
|
67
68
|
Array.isArray(e) ? "[]" : "{}",
|
|
68
69
|
" ",
|
|
69
|
-
/* @__PURE__ */
|
|
70
|
+
/* @__PURE__ */ _("span", {
|
|
70
71
|
className: "x153jb6y x1hz01jw",
|
|
71
72
|
children: c
|
|
72
73
|
})
|
|
73
74
|
]
|
|
74
75
|
})
|
|
75
|
-
}), /* @__PURE__ */
|
|
76
|
+
}), /* @__PURE__ */ _(n.Panel, { children: /* @__PURE__ */ v("div", {
|
|
76
77
|
className: "xo02m6d xpilrb4 x1t7ytsu x97x49r xa1dmyi xiard35 xy8obcc",
|
|
77
78
|
children: [s.slice(0, o).map(([e, t]) => {
|
|
78
79
|
let n = `${r}/${e.replaceAll("~", "~0").replaceAll("/", "~1")}`;
|
|
79
|
-
return /* @__PURE__ */
|
|
80
|
+
return /* @__PURE__ */ _(N, {
|
|
80
81
|
name: JSON.stringify(e),
|
|
81
82
|
path: n,
|
|
82
83
|
value: t,
|
|
@@ -84,36 +85,36 @@ function D({ value: e, name: t, path: r, depth: i, maxDepth: a, maxEntries: o })
|
|
|
84
85
|
maxDepth: a,
|
|
85
86
|
maxEntries: o
|
|
86
87
|
}, n);
|
|
87
|
-
}), s.length > o && /* @__PURE__ */
|
|
88
|
+
}), s.length > o && /* @__PURE__ */ v("div", {
|
|
88
89
|
className: "x153jb6y x1hz01jw",
|
|
89
90
|
children: [s.length - o, " more entries · copy to inspect the complete value"]
|
|
90
91
|
})]
|
|
91
92
|
}) })]
|
|
92
93
|
});
|
|
93
94
|
}
|
|
94
|
-
function
|
|
95
|
+
function P({ value: e, label: t, maxDepth: n = 6, maxEntries: s = 50 }) {
|
|
95
96
|
let c = i(), d = u(() => JSON.stringify(e, null, 2), [e]);
|
|
96
|
-
return /* @__PURE__ */
|
|
97
|
+
return /* @__PURE__ */ v(o, {
|
|
97
98
|
kind: "json",
|
|
98
99
|
"aria-label": t,
|
|
99
100
|
...l.props(a.root),
|
|
100
|
-
children: [/* @__PURE__ */
|
|
101
|
+
children: [/* @__PURE__ */ v("div", {
|
|
101
102
|
...l.props(a.header),
|
|
102
|
-
children: [/* @__PURE__ */
|
|
103
|
+
children: [/* @__PURE__ */ _("span", {
|
|
103
104
|
...l.props(a.label),
|
|
104
105
|
children: t
|
|
105
|
-
}), /* @__PURE__ */
|
|
106
|
+
}), /* @__PURE__ */ _(r, {
|
|
106
107
|
label: t,
|
|
107
108
|
value: d,
|
|
108
109
|
children: "Copy JSON"
|
|
109
110
|
})]
|
|
110
|
-
}), /* @__PURE__ */
|
|
111
|
+
}), /* @__PURE__ */ _("div", {
|
|
111
112
|
ref: c.ref,
|
|
112
113
|
role: "region",
|
|
113
114
|
"aria-label": `${t} fields`,
|
|
114
115
|
tabIndex: c.tabIndex,
|
|
115
|
-
...l.props(a.scrollRegion,
|
|
116
|
-
children: /* @__PURE__ */
|
|
116
|
+
...l.props(a.scrollRegion, j.body),
|
|
117
|
+
children: /* @__PURE__ */ _(N, {
|
|
117
118
|
name: "root",
|
|
118
119
|
path: "",
|
|
119
120
|
value: e,
|
|
@@ -125,7 +126,7 @@ function O({ value: e, label: t, maxDepth: n = 6, maxEntries: s = 50 }) {
|
|
|
125
126
|
});
|
|
126
127
|
}
|
|
127
128
|
// packages/content/src/log-viewer.tsx
|
|
128
|
-
var
|
|
129
|
+
var F = {
|
|
129
130
|
kVQacm: "xysyzu8",
|
|
130
131
|
kmVPX3: "x1mvvolr",
|
|
131
132
|
kogj98: "x1ghz6dp",
|
|
@@ -136,9 +137,9 @@ var k = {
|
|
|
136
137
|
kHjlTd: "xj0a0fe",
|
|
137
138
|
kKi2Bq: "xeq4nuv",
|
|
138
139
|
$$css: !0
|
|
139
|
-
},
|
|
140
|
+
}, I = {
|
|
140
141
|
output: (e) => [
|
|
141
|
-
|
|
142
|
+
F,
|
|
142
143
|
{
|
|
143
144
|
kskxy: e == null ? e : "x1jols5v",
|
|
144
145
|
$$css: !0
|
|
@@ -151,8 +152,8 @@ var k = {
|
|
|
151
152
|
kL6WhQ: "x1qndepd",
|
|
152
153
|
$$css: !0
|
|
153
154
|
}
|
|
154
|
-
},
|
|
155
|
-
function
|
|
155
|
+
}, L = 2e5;
|
|
156
|
+
function R({ output: t, label: n, variant: s = "default", maxLines: c = 500, maxHeight: u = 320, isRunning: g = !1 }) {
|
|
156
157
|
let y = i(), b = y.viewport, x = f(!1), [S] = p(() => {
|
|
157
158
|
let e = h();
|
|
158
159
|
return {
|
|
@@ -160,25 +161,25 @@ function M({ output: t, label: n, variant: s = "default", maxLines: c = 500, max
|
|
|
160
161
|
subscribe: (t) => e.subscribe(t),
|
|
161
162
|
read: () => e.get()
|
|
162
163
|
};
|
|
163
|
-
}), { following: C } = m(S.subscribe, S.read, S.read),
|
|
164
|
+
}), { following: C } = m(S.subscribe, S.read, S.read), w = T(t), E = w.slice(-2e5).split("\n"), D = E.slice(-Math.max(1, c)), O = E.length - D.length, k = s === "embedded", A = g && (!k || !C);
|
|
164
165
|
return d(() => {
|
|
165
166
|
let e = b.current;
|
|
166
167
|
return e === null ? void 0 : S.connect(e);
|
|
167
168
|
}, [S, b]), d(() => {
|
|
168
|
-
!
|
|
169
|
-
}, [
|
|
169
|
+
!g && x.current && (x.current = !1, b.current?.focus({ preventScroll: !0 }));
|
|
170
|
+
}, [g]), /* @__PURE__ */ v(o, {
|
|
170
171
|
kind: "log",
|
|
171
172
|
"aria-label": n,
|
|
172
173
|
...l.props(a.root, k && a.embedded),
|
|
173
174
|
children: [
|
|
174
|
-
/* @__PURE__ */
|
|
175
|
+
/* @__PURE__ */ v("div", {
|
|
175
176
|
...l.props(a.header, k && a.embeddedHeader),
|
|
176
|
-
children: [/* @__PURE__ */
|
|
177
|
+
children: [/* @__PURE__ */ v("span", {
|
|
177
178
|
...l.props(a.label),
|
|
178
|
-
children: [n,
|
|
179
|
-
}), /* @__PURE__ */
|
|
179
|
+
children: [n, g && !k && " · running"]
|
|
180
|
+
}), /* @__PURE__ */ v("div", {
|
|
180
181
|
...l.props(a.actions),
|
|
181
|
-
children: [
|
|
182
|
+
children: [A && /* @__PURE__ */ _(e, {
|
|
182
183
|
variant: "ghost",
|
|
183
184
|
onClick: () => {
|
|
184
185
|
C ? S.release() : S.scrollToBottom();
|
|
@@ -190,7 +191,7 @@ function M({ output: t, label: n, variant: s = "default", maxLines: c = 500, max
|
|
|
190
191
|
x.current = !1;
|
|
191
192
|
},
|
|
192
193
|
children: C ? "Pause following" : "Follow output"
|
|
193
|
-
}), /* @__PURE__ */
|
|
194
|
+
}), /* @__PURE__ */ _(r, {
|
|
194
195
|
value: t,
|
|
195
196
|
label: n,
|
|
196
197
|
display: k ? "icon" : "value",
|
|
@@ -198,30 +199,30 @@ function M({ output: t, label: n, variant: s = "default", maxLines: c = 500, max
|
|
|
198
199
|
})]
|
|
199
200
|
})]
|
|
200
201
|
}),
|
|
201
|
-
O > 0 && /* @__PURE__ */
|
|
202
|
-
...l.props(a.note,
|
|
202
|
+
O > 0 && /* @__PURE__ */ v("div", {
|
|
203
|
+
...l.props(a.note, I.notice),
|
|
203
204
|
children: [O, " earlier lines omitted from this view. Copy includes the supplied output."]
|
|
204
205
|
}),
|
|
205
|
-
|
|
206
|
-
...l.props(a.note,
|
|
206
|
+
w.length > L && /* @__PURE__ */ _("div", {
|
|
207
|
+
...l.props(a.note, I.notice),
|
|
207
208
|
children: "Preview limited to the last 200,000 characters. Copy includes the supplied output."
|
|
208
209
|
}),
|
|
209
|
-
/* @__PURE__ */
|
|
210
|
+
/* @__PURE__ */ _("pre", {
|
|
210
211
|
ref: y.ref,
|
|
211
212
|
role: "region",
|
|
212
213
|
"aria-label": `${n} output`,
|
|
213
214
|
tabIndex: y.tabIndex,
|
|
214
|
-
...l.props(a.scrollRegion,
|
|
215
|
-
children: /* @__PURE__ */
|
|
215
|
+
...l.props(a.scrollRegion, I.output(u)),
|
|
216
|
+
children: /* @__PURE__ */ _("span", {
|
|
216
217
|
className: "x1lliihq",
|
|
217
|
-
children:
|
|
218
|
+
children: w.length === 0 ? "No output recorded." : D.join("\n")
|
|
218
219
|
})
|
|
219
220
|
})
|
|
220
221
|
]
|
|
221
222
|
});
|
|
222
223
|
}
|
|
223
224
|
// packages/content/src/media-viewer.tsx
|
|
224
|
-
var
|
|
225
|
+
var z = {
|
|
225
226
|
viewport: {
|
|
226
227
|
k1xSpc: "xrvj5dj",
|
|
227
228
|
kgQiWS: "x1ku5rj1",
|
|
@@ -238,23 +239,23 @@ var N = {
|
|
|
238
239
|
$$css: !0
|
|
239
240
|
}
|
|
240
241
|
};
|
|
241
|
-
function
|
|
242
|
-
return /* @__PURE__ */
|
|
242
|
+
function B() {
|
|
243
|
+
return /* @__PURE__ */ _("div", {
|
|
243
244
|
"aria-hidden": !0,
|
|
244
|
-
...l.props(a.root,
|
|
245
|
+
...l.props(a.root, z.viewport, z.placeholder)
|
|
245
246
|
});
|
|
246
247
|
}
|
|
247
|
-
function
|
|
248
|
-
return /* @__PURE__ */
|
|
249
|
-
...l.props(a.root,
|
|
250
|
-
children: e === "image" ? /* @__PURE__ */
|
|
248
|
+
function V({ kind: e, src: t, label: n, widthPixels: r, heightPixels: i, onError: o }) {
|
|
249
|
+
return /* @__PURE__ */ _("div", {
|
|
250
|
+
...l.props(a.root, z.viewport),
|
|
251
|
+
children: e === "image" ? /* @__PURE__ */ _("img", {
|
|
251
252
|
src: t,
|
|
252
253
|
alt: n,
|
|
253
254
|
width: r,
|
|
254
255
|
height: i,
|
|
255
256
|
onError: o,
|
|
256
257
|
className: "x1lliihq xh8yej3 x5yr21d x2lwn1j x19kjcj4"
|
|
257
|
-
}) : /* @__PURE__ */
|
|
258
|
+
}) : /* @__PURE__ */ _("video", {
|
|
258
259
|
src: t,
|
|
259
260
|
"aria-label": n,
|
|
260
261
|
width: r,
|
|
@@ -269,18 +270,18 @@ function F({ kind: e, src: t, label: n, widthPixels: r, heightPixels: i, onError
|
|
|
269
270
|
});
|
|
270
271
|
}
|
|
271
272
|
// packages/content/src/stack-trace.tsx
|
|
272
|
-
function
|
|
273
|
-
return /* @__PURE__ */
|
|
273
|
+
function H({ message: e, frames: t }) {
|
|
274
|
+
return /* @__PURE__ */ v(o, {
|
|
274
275
|
kind: "stack-trace",
|
|
275
276
|
"aria-label": "Stack trace",
|
|
276
277
|
...l.props(a.root),
|
|
277
|
-
children: [/* @__PURE__ */
|
|
278
|
+
children: [/* @__PURE__ */ _("p", {
|
|
278
279
|
className: "x1ghz6dp x1mvvolr xso031l x1q0q8m5 x1qndepd xr5kp14 xk4h15q xj0a0fe",
|
|
279
280
|
children: e
|
|
280
|
-
}), t.length === 0 ? /* @__PURE__ */
|
|
281
|
+
}), t.length === 0 ? /* @__PURE__ */ _("p", {
|
|
281
282
|
className: "x1ghz6dp x1mvvolr x153jb6y",
|
|
282
283
|
children: "No frames recorded."
|
|
283
|
-
}) : /* @__PURE__ */
|
|
284
|
+
}) : /* @__PURE__ */ _("ol", {
|
|
284
285
|
className: "x1ghz6dp x1717udv x3ct3a4",
|
|
285
286
|
children: t.map((e) => {
|
|
286
287
|
let t = [
|
|
@@ -288,15 +289,15 @@ function I({ message: e, frames: t }) {
|
|
|
288
289
|
e.line,
|
|
289
290
|
e.column
|
|
290
291
|
].filter((e) => e !== void 0).join(":");
|
|
291
|
-
return /* @__PURE__ */
|
|
292
|
+
return /* @__PURE__ */ v("li", {
|
|
292
293
|
className: "x78zum5 xdt5ytf x1hnptsi xeuugli xj0a0fe x1mvvolr xso031l x1t1lzn6 x1q0q8m5 x1qndepd",
|
|
293
|
-
children: [/* @__PURE__ */
|
|
294
|
+
children: [/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _(c, {
|
|
294
295
|
href: e.href,
|
|
295
296
|
children: e.name
|
|
296
|
-
}), t.length > 0 && /* @__PURE__ */
|
|
297
|
+
}), t.length > 0 && /* @__PURE__ */ _("span", {
|
|
297
298
|
className: "x1lliihq x153jb6y xiard35 xy8obcc xj0a0fe",
|
|
298
299
|
children: t
|
|
299
|
-
})] }), e.code !== void 0 && /* @__PURE__ */
|
|
300
|
+
})] }), e.code !== void 0 && /* @__PURE__ */ _(s, {
|
|
300
301
|
code: e.code,
|
|
301
302
|
language: e.language,
|
|
302
303
|
filename: e.file
|
|
@@ -307,7 +308,7 @@ function I({ message: e, frames: t }) {
|
|
|
307
308
|
});
|
|
308
309
|
}
|
|
309
310
|
// packages/content/src/trace.tsx
|
|
310
|
-
var
|
|
311
|
+
var U = {
|
|
311
312
|
pending: {
|
|
312
313
|
kMwMTN: "x153jb6y",
|
|
313
314
|
$$css: !0
|
|
@@ -332,78 +333,109 @@ var L = {
|
|
|
332
333
|
kMwMTN: "x153jb6y",
|
|
333
334
|
$$css: !0
|
|
334
335
|
}
|
|
335
|
-
},
|
|
336
|
-
pending:
|
|
337
|
-
running:
|
|
338
|
-
complete:
|
|
339
|
-
failed:
|
|
340
|
-
skipped:
|
|
341
|
-
unknown:
|
|
342
|
-
},
|
|
343
|
-
pending:
|
|
344
|
-
running:
|
|
345
|
-
complete:
|
|
346
|
-
failed:
|
|
347
|
-
skipped:
|
|
348
|
-
unknown:
|
|
336
|
+
}, W = {
|
|
337
|
+
pending: U.pending,
|
|
338
|
+
running: U.running,
|
|
339
|
+
complete: U.complete,
|
|
340
|
+
failed: U.failed,
|
|
341
|
+
skipped: U.skipped,
|
|
342
|
+
unknown: U.unknown
|
|
343
|
+
}, G = {
|
|
344
|
+
pending: C,
|
|
345
|
+
running: b,
|
|
346
|
+
complete: y,
|
|
347
|
+
failed: w,
|
|
348
|
+
skipped: x,
|
|
349
|
+
unknown: S
|
|
349
350
|
};
|
|
350
|
-
function
|
|
351
|
-
return /* @__PURE__ */
|
|
351
|
+
function K({ label: e, children: t }) {
|
|
352
|
+
return /* @__PURE__ */ _("ol", {
|
|
352
353
|
"aria-label": e,
|
|
353
354
|
className: "x1ghz6dp x1717udv x3ct3a4 xeuugli x1hz01jw xtqrqnz x1778rvt xj57cvi xbixft",
|
|
354
355
|
children: t
|
|
355
356
|
});
|
|
356
357
|
}
|
|
357
|
-
function
|
|
358
|
-
return /* @__PURE__ */
|
|
358
|
+
function q({ label: e, children: t }) {
|
|
359
|
+
return /* @__PURE__ */ _("ol", {
|
|
359
360
|
"aria-label": e,
|
|
360
361
|
className: "x1ghz6dp x1717udv x3ct3a4 xeuugli x1hz01jw xtqrqnz x1778rvt xj57cvi xbixft x3bg4vu",
|
|
361
362
|
children: t
|
|
362
363
|
});
|
|
363
364
|
}
|
|
364
|
-
function
|
|
365
|
-
let f =
|
|
366
|
-
return /* @__PURE__ */
|
|
365
|
+
function J({ id: e, label: r, status: i, statusLabel: a, description: o, detail: s, isSelected: c, onSelect: u, children: d }) {
|
|
366
|
+
let f = G[i];
|
|
367
|
+
return /* @__PURE__ */ v("li", {
|
|
367
368
|
"data-item-id": e,
|
|
368
369
|
className: "x1n2onr6 xrvj5dj x1qpdrs7 x8zbtdt x1wv5www xup0pd7",
|
|
369
|
-
children: [/* @__PURE__ */
|
|
370
|
+
children: [/* @__PURE__ */ v("div", {
|
|
370
371
|
"aria-hidden": !0,
|
|
371
372
|
className: "x78zum5 xdt5ytf x6s0dn4 xunmzkg x1lk341d",
|
|
372
|
-
children: [/* @__PURE__ */
|
|
373
|
+
children: [/* @__PURE__ */ _(f, {
|
|
373
374
|
size: 14,
|
|
374
|
-
...l.props(
|
|
375
|
-
}), /* @__PURE__ */
|
|
376
|
-
}), /* @__PURE__ */
|
|
375
|
+
...l.props(W[i])
|
|
376
|
+
}), /* @__PURE__ */ _("span", { className: "x1i1rx1s x1f6qilh x98rzlu x1fa40ue" })]
|
|
377
|
+
}), /* @__PURE__ */ v("div", {
|
|
377
378
|
className: "x78zum5 xdt5ytf xunmzkg xeuugli",
|
|
378
379
|
children: [
|
|
379
|
-
/* @__PURE__ */
|
|
380
|
+
/* @__PURE__ */ _("div", {
|
|
380
381
|
...{
|
|
381
382
|
0: { className: "xk4h15q xj0a0fe" },
|
|
382
383
|
1: { className: "xk4h15q xj0a0fe xujl8zx xda060z" }
|
|
383
384
|
}[c === !0 | 0],
|
|
384
|
-
children: u === void 0 ? r : /* @__PURE__ */
|
|
385
|
+
children: u === void 0 ? r : /* @__PURE__ */ _(t, {
|
|
385
386
|
"aria-pressed": c,
|
|
386
387
|
onClick: () => u(e),
|
|
387
388
|
children: r
|
|
388
389
|
})
|
|
389
390
|
}),
|
|
390
|
-
/* @__PURE__ */
|
|
391
|
+
/* @__PURE__ */ _("span", {
|
|
391
392
|
className: "xy8obcc xas2l8k x153jb6y xj0a0fe",
|
|
392
393
|
children: a
|
|
393
394
|
}),
|
|
394
|
-
o !== void 0 && /* @__PURE__ */
|
|
395
|
+
o !== void 0 && /* @__PURE__ */ _("p", {
|
|
395
396
|
className: "x1ghz6dp x153jb6y xj0a0fe",
|
|
396
397
|
children: o
|
|
397
398
|
}),
|
|
398
|
-
s !== void 0 && /* @__PURE__ */
|
|
399
|
+
s !== void 0 && /* @__PURE__ */ v(n.Root, { children: [/* @__PURE__ */ _(n.Trigger, { children: "Details" }), /* @__PURE__ */ _(n.Panel, { children: s })] }),
|
|
399
400
|
d
|
|
400
401
|
]
|
|
401
402
|
})]
|
|
402
403
|
});
|
|
403
404
|
}
|
|
404
|
-
var
|
|
405
|
-
Root:
|
|
406
|
-
Item:
|
|
407
|
-
Group:
|
|
405
|
+
var Y = {
|
|
406
|
+
Root: K,
|
|
407
|
+
Item: J,
|
|
408
|
+
Group: q
|
|
409
|
+
}, X = {
|
|
410
|
+
mark: {
|
|
411
|
+
kWkggS: "x1dqe72f",
|
|
412
|
+
kMwMTN: "xbixft",
|
|
413
|
+
kaIpWk: "x1ok0vyi",
|
|
414
|
+
kg3NbH: "x1r97e56",
|
|
415
|
+
$$css: !0
|
|
416
|
+
},
|
|
417
|
+
accent: {
|
|
418
|
+
kWkggS: "x1r8u7ye",
|
|
419
|
+
kMwMTN: "x7ixh4y",
|
|
420
|
+
$$css: !0
|
|
421
|
+
},
|
|
422
|
+
danger: {
|
|
423
|
+
kWkggS: "xcqwzn",
|
|
424
|
+
kMwMTN: "xr5kp14",
|
|
425
|
+
$$css: !0
|
|
426
|
+
}
|
|
408
427
|
};
|
|
409
|
-
|
|
428
|
+
function Z({ text: e, query: t, ranges: n, tone: r = "warning", mode: i = "contains" }) {
|
|
429
|
+
let a = n === void 0 ? t.trim() === "" ? [] : D(e, t, i) : [...n], o = a.length === 0 ? [{
|
|
430
|
+
text: e,
|
|
431
|
+
match: !1
|
|
432
|
+
}] : k(e, a), s = r === "accent" ? X.accent : r === "danger" ? X.danger : void 0, c = 0;
|
|
433
|
+
return /* @__PURE__ */ _(g, { children: o.map((e) => {
|
|
434
|
+
let t = `${c}-${e.match ? "m" : "t"}`;
|
|
435
|
+
return c += e.text.length, e.match ? /* @__PURE__ */ _("mark", {
|
|
436
|
+
...l.props(X.mark, s),
|
|
437
|
+
children: e.text
|
|
438
|
+
}, t) : /* @__PURE__ */ _("span", { children: e.text }, t);
|
|
439
|
+
}) });
|
|
440
|
+
}
|
|
441
|
+
export { Y as a, B as c, A as i, R as l, E as n, H as o, O as r, V as s, Z as t, P as u };
|