@mechane-ai/elements 0.60.0 → 0.62.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/dist/ai.js +290 -222
- package/dist/{article-COShcQPh.js → article-DBRkXW1r.js} +6 -6
- package/dist/article.js +1 -1
- package/dist/catalog.json +21 -1
- package/dist/{categorical-values-DdZLdWhL.js → categorical-values-Bq5dMg0i.js} +1 -1
- package/dist/{cells-BTTLURWI.js → cells-X8SVrZBc.js} +1 -1
- 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 +4 -4
- package/dist/charts/relationship.js +1 -1
- package/dist/charts/text.js +1 -1
- package/dist/charts/timeline.js +2 -2
- package/dist/charts/trend.js +1 -1
- package/dist/charts.js +2 -2
- package/dist/{code-block-BZsY2sh3.js → code-block-C_Ze7QLO.js} +1 -1
- package/dist/collections.js +1 -1
- package/dist/{commands-D0bF2JxV.js → commands-BWwMKUdd.js} +2 -2
- package/dist/content/code.js +1 -1
- package/dist/content/diff.js +10 -10
- package/dist/content/link.js +1 -1
- package/dist/content/markdown.js +1 -1
- package/dist/content/tree.js +2 -2
- package/dist/{content-link-PnpcnTCx.js → content-link-BSR0a887.js} +1 -1
- package/dist/content.js +1 -1
- package/dist/{dates-Cq90-D2X.js → dates-DNb7_KSp.js} +31 -32
- package/dist/{dumbbell-plot-BeHhL-01.js → dumbbell-plot-DWybxZAH.js} +4 -4
- package/dist/{embedding-map-DbETVJXp.js → embedding-map-B5JjgyGR.js} +7 -7
- package/dist/feedback.js +1 -1
- package/dist/{figure-frame-ClYRIRAq.js → figure-frame-zyCmHlgX.js} +11 -11
- package/dist/forms/dates.js +1 -1
- package/dist/{forms-CEbwzlRR.js → forms-C5vXBA_C.js} +17 -17
- package/dist/forms.js +2 -2
- package/dist/{image-grid-DB5U7Jtx.js → image-grid-Cgkz2fsU.js} +3 -3
- package/dist/index.js +1 -1
- package/dist/kits/evaluation.js +5 -5
- package/dist/kits/interpretability.js +12 -12
- package/dist/kits/operations.js +6 -6
- package/dist/kits/research.js +8 -8
- package/dist/kits/training.js +6 -6
- package/dist/layout.js +1 -1
- package/dist/lesson.js +3 -3
- package/dist/{markdown-VpLw_P9T.js → markdown-BkFwgQzJ.js} +2 -2
- package/dist/mdx.js +6 -6
- package/dist/navigation/commands.js +1 -1
- package/dist/navigation-Bqouujdr.js +44 -0
- package/dist/navigation.js +3 -3
- package/dist/packages/ai/src/command-activity.d.ts +5 -1
- package/dist/packages/ai/src/index.d.ts +1 -1
- package/dist/packages/ai/src/message.d.ts +9 -1
- package/dist/packages/charts/src/plot/plot-marks.d.ts +2 -1
- package/dist/packages/charts/src/timeline/index.d.ts +1 -1
- package/dist/packages/charts/src/timeline/trace-timeline-layout.d.ts +28 -2
- package/dist/packages/charts/src/timeline/trace-timeline.d.ts +7 -3
- package/dist/packages/charts/src/timeline/waterfall.d.ts +3 -1
- package/dist/packages/core/src/filter-chips.d.ts +21 -0
- package/dist/packages/core/src/index.d.ts +2 -0
- package/dist/packages/navigation/src/navigation.d.ts +4 -0
- package/dist/{param-BdqTpZER.js → param-BLGHbZoi.js} +1 -1
- package/dist/{pierre-diff-aGyQK5xK.js → pierre-diff-TAaZTeg-.js} +1 -1
- package/dist/{plot-layout-B-b6tioh.js → plot-layout-JgEcW4fY.js} +2 -2
- package/dist/{plot-marks-FVsbFkUs.js → plot-marks-DgCtcd3L.js} +7 -6
- package/dist/{plot-surface-BlR44uTL.js → plot-surface-CAAzoXJh.js} +1 -1
- package/dist/{reference-lines-BDfsv8dy.js → reference-lines-BGE13uMG.js} +2 -2
- package/dist/{scene-CY05-A1k.js → scene-GBAHedGg.js} +7 -7
- package/dist/scene.js +1 -1
- package/dist/{slope-chart-DTyF1lNG.js → slope-chart-Bh7fntOb.js} +5 -5
- package/dist/{src-BAlO76fa.js → src-CoRsRnHQ.js} +40 -40
- package/dist/{src-Dxs3Buo_.js → src-D_BL6n5Q.js} +186 -187
- package/dist/{src-Cuwx-PLT.js → src-Ddx3fHei.js} +119 -120
- package/dist/{src-C-Wg9m9H.js → src-DxZdE_P5.js} +20 -21
- package/dist/{src-Ci8DeY8J.js → src-KTMBylbq.js} +1 -1
- package/dist/{src-4qgpiWvP.js → src-XMHLpSe9.js} +44 -44
- package/dist/{src-9EJskqB_.js → src-k0l1Y4Xl.js} +662 -428
- package/dist/styles2.css +61 -12
- package/dist/{time-series-BbUBF3IE.js → time-series-_wZflmIb.js} +34 -34
- package/dist/timeline-DsNPo_57.js +869 -0
- package/dist/{token-heatmap-o_9l6vaq.js → token-heatmap-Chnea1Iv.js} +3 -3
- package/dist/{token-predictions-DaAztlOS.js → token-predictions-DQEd5sj7.js} +4 -4
- package/dist/{transport-4V9rfYHN.js → transport-CagqVWwW.js} +4 -4
- package/dist/{tree-diagram-BDj4TGXb.js → tree-diagram-CL8RI9gT.js} +8 -8
- package/dist/{treemap-DUSFlCPK.js → treemap-C3zmI4of.js} +4 -4
- package/dist/{use-tween-BsaEO862.js → use-tween-C2VZtQjV.js} +1 -1
- package/dist/{violin-plot-ULdC_dcY.js → violin-plot-CgpyGuSe.js} +4 -4
- package/dist/waterfall-S8CLEUib.js +740 -0
- package/package.json +1 -1
- package/dist/control-styles-D3q_Qyxi.js +0 -179
- package/dist/navigation-CveMIuXI.js +0 -39
- package/dist/timeline-C1d9YJlJ.js +0 -620
- package/dist/waterfall-Dre6i02Z.js +0 -684
|
@@ -127,17 +127,18 @@ function _({ x: t, y: n, tone: s, radius: l = o, isHollow: u = !1, emphasis: f =
|
|
|
127
127
|
...i.props(r.outlined, r.emphasis, u && c.hollow, d[f], m && r.inspected, h && r.selected)
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
|
-
function v({ x: t, y: n, width: o, height: s,
|
|
131
|
-
let
|
|
130
|
+
function v({ x: t, y: n, width: o, height: s, rx: l, tone: u, isHollow: f = !1, emphasis: m = "normal", isInspected: h = !1, isSelected: g = !1, mark: _ }) {
|
|
131
|
+
let v = p(u, m);
|
|
132
132
|
return /* @__PURE__ */ a("rect", {
|
|
133
|
-
"data-chart-mark":
|
|
133
|
+
"data-chart-mark": _,
|
|
134
134
|
x: t,
|
|
135
135
|
y: n,
|
|
136
136
|
width: Math.max(0, o),
|
|
137
137
|
height: Math.max(0, s),
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
138
|
+
rx: l,
|
|
139
|
+
fill: v,
|
|
140
|
+
stroke: f ? v : e[u],
|
|
141
|
+
...i.props(r.outlined, r.emphasis, f && c.hollow, f && c.hollowBar, d[m], h && r.inspected, g && r.selected)
|
|
141
142
|
});
|
|
142
143
|
}
|
|
143
144
|
var y = 1.3;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as e, t } from "./plot-width-D3hTycYX.js";
|
|
2
|
-
import { O as n, c as r } from "./plot-layout-
|
|
2
|
+
import { O as n, c as r } from "./plot-layout-JgEcW4fY.js";
|
|
3
3
|
import * as i from "@stylexjs/stylex";
|
|
4
4
|
import { useId as a } from "react";
|
|
5
5
|
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { M as e } from "./plot-layout-
|
|
1
|
+
import { M as e } from "./plot-layout-JgEcW4fY.js";
|
|
2
2
|
import { t } from "./label-spacing-BncjePGb.js";
|
|
3
3
|
import { n, t as r } from "./label-place-Z0fryBZb.js";
|
|
4
|
-
import { c as i, f as a } from "./plot-marks-
|
|
4
|
+
import { c as i, f as a } from "./plot-marks-DgCtcd3L.js";
|
|
5
5
|
import { a as o } from "./scale-C2xgZyZN.js";
|
|
6
6
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
7
7
|
// packages/charts/src/cartesian/reference-lines.tsx
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { i as e } from "./chart-link-AE_xuxiP.js";
|
|
2
|
-
import { A as t, D as n, E as r, O as i, S as a, c as o, j as s, l as c, s as l, t as u, u as d } from "./plot-layout-
|
|
3
|
-
import { i as f, l as p, n as m, r as h, t as g } from "./figure-frame-
|
|
4
|
-
import { r as _, t as v } from "./plot-surface-
|
|
2
|
+
import { A as t, D as n, E as r, O as i, S as a, c as o, j as s, l as c, s as l, t as u, u as d } from "./plot-layout-JgEcW4fY.js";
|
|
3
|
+
import { i as f, l as p, n as m, r as h, t as g } from "./figure-frame-zyCmHlgX.js";
|
|
4
|
+
import { r as _, t as v } from "./plot-surface-CAAzoXJh.js";
|
|
5
5
|
import { a as y, i as b, r as x } from "./tone-scope-DKiSw-JR.js";
|
|
6
|
-
import { _ as S, a as C, g as w, o as T, t as E, u as D } from "./param-
|
|
6
|
+
import { _ as S, a as C, g as w, o as T, t as E, u as D } from "./param-BLGHbZoi.js";
|
|
7
7
|
import { n as O, t as k } from "./clock-DSm5lkNE.js";
|
|
8
8
|
import { o as A, r as j } from "./scale-C2xgZyZN.js";
|
|
9
|
-
import { t as M } from "./use-tween-
|
|
9
|
+
import { t as M } from "./use-tween-C2VZtQjV.js";
|
|
10
10
|
import { t as N } from "./chart-tones-ei3BC2AL.js";
|
|
11
11
|
import { r as P } from "./tokens.stylex-dF5CACEJ.js";
|
|
12
12
|
import { r as F } from "./figure-format-B8kRZMlo.js";
|
|
13
13
|
import { n as I } from "./plot-width-D3hTycYX.js";
|
|
14
14
|
import { n as L, t as R } from "./label-place-Z0fryBZb.js";
|
|
15
|
-
import { a as z, c as ee, f as te, n as B, t as V, u as ne } from "./plot-marks-
|
|
15
|
+
import { a as z, c as ee, f as te, n as B, t as V, u as ne } from "./plot-marks-DgCtcd3L.js";
|
|
16
16
|
import { i as re, r as ie, t as ae } from "./path-BglsXpnO.js";
|
|
17
17
|
import { t as oe } from "./plot-axes-D5S9BnBa.js";
|
|
18
18
|
import { t as se } from "./heatmap-scale-Zte6Ya-g.js";
|
|
19
|
-
import { d as ce, f as le } from "./token-predictions-
|
|
19
|
+
import { d as ce, f as le } from "./token-predictions-DQEd5sj7.js";
|
|
20
20
|
import * as H from "@stylexjs/stylex";
|
|
21
21
|
import { Children as ue, createContext as de, memo as fe, use as pe, useEffect as me, useId as he, useLayoutEffect as U, useMemo as ge, useRef as _e, useState as W, useSyncExternalStore as ve } from "react";
|
|
22
22
|
import { bindDrag as ye, dragThreshold as be } from "@ui-sdk/core";
|
package/dist/scene.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { r as LessonFlow, t as MorphScope, tt as Scene, H as SceneAxes, q as SceneBracket, G as SceneCallout, C as SceneCard, g as SceneCells, L as SceneCurve, U as SceneCustom, i as SceneFlow, J as SceneGroup, W as SceneHighlight, $ as SceneLayer, X as SceneNode, et as SceneOutside, I as ScenePoint, F as SceneProjection, P as SceneRegion, N as SceneRule, b as SceneSlot, x as SceneStack, u as SceneToken, l as SceneTokens, M as SceneVector, Y as SceneWire, w as cardRanks, T as cardSuits, v as cellGap, R as curveResolutions, nt as edgePoint, mt as fillLabel, a as flowNodeSize, s as flowPlan, c as flowPositions, n as morphLabels, rt as nodeBox, it as padRect, V as planeLabels, z as planeLimits, B as planeThicknesses, at as rectCenter, ot as rectsOverlap, E as sceneCardLabels, O as sceneCardSizes, y as sceneCellSizes, _ as sceneCellsLabels, st as sceneCircleSizes, Z as sceneContextColor, o as sceneFlowLabels, ht as sceneLabels, gt as sceneLimits, ct as sceneNodeSizes, Q as sceneOutlines, S as sceneStackLabels, _t as sceneStaggers, vt as sceneStore, d as sceneTokenLabels, lt as sidePoint, k as stackBounds, A as stackGaps, j as stackPlace, D as suitTones, p as tokenBox, m as tokenFlow, h as tokenGaps, f as tokenPercent, ut as unionRect, K as useObstacle, dt as useSceneContext, ft as useSceneFrames, pt as useSceneObject } from "./scene-
|
|
1
|
+
export { r as LessonFlow, t as MorphScope, tt as Scene, H as SceneAxes, q as SceneBracket, G as SceneCallout, C as SceneCard, g as SceneCells, L as SceneCurve, U as SceneCustom, i as SceneFlow, J as SceneGroup, W as SceneHighlight, $ as SceneLayer, X as SceneNode, et as SceneOutside, I as ScenePoint, F as SceneProjection, P as SceneRegion, N as SceneRule, b as SceneSlot, x as SceneStack, u as SceneToken, l as SceneTokens, M as SceneVector, Y as SceneWire, w as cardRanks, T as cardSuits, v as cellGap, R as curveResolutions, nt as edgePoint, mt as fillLabel, a as flowNodeSize, s as flowPlan, c as flowPositions, n as morphLabels, rt as nodeBox, it as padRect, V as planeLabels, z as planeLimits, B as planeThicknesses, at as rectCenter, ot as rectsOverlap, E as sceneCardLabels, O as sceneCardSizes, y as sceneCellSizes, _ as sceneCellsLabels, st as sceneCircleSizes, Z as sceneContextColor, o as sceneFlowLabels, ht as sceneLabels, gt as sceneLimits, ct as sceneNodeSizes, Q as sceneOutlines, S as sceneStackLabels, _t as sceneStaggers, vt as sceneStore, d as sceneTokenLabels, lt as sidePoint, k as stackBounds, A as stackGaps, j as stackPlace, D as suitTones, p as tokenBox, m as tokenFlow, h as tokenGaps, f as tokenPercent, ut as unionRect, K as useObstacle, dt as useSceneContext, ft as useSceneFrames, pt as useSceneObject } from "./scene-GBAHedGg.js";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { t as e } from "./accessibility-P89UG9-r.js";
|
|
2
|
-
import { A as t, E as n, M as r, S as i, a, j as o, l as s, n as c, o as l, s as u, t as d } from "./plot-layout-
|
|
2
|
+
import { A as t, E as n, M as r, S as i, a, j as o, l as s, n as c, o as l, s as u, t as d } from "./plot-layout-JgEcW4fY.js";
|
|
3
3
|
import { i as f, r as p } from "./chart-link-AE_xuxiP.js";
|
|
4
4
|
import { a as m } from "./tone-scope-DKiSw-JR.js";
|
|
5
5
|
import { r as h, t as g } from "./figure-format-B8kRZMlo.js";
|
|
6
6
|
import { a as _, o as v, r as y } from "./scale-C2xgZyZN.js";
|
|
7
7
|
import { t as b } from "./chart-cursor-1mFd48Jc.js";
|
|
8
|
-
import { c as x, i as ee, l as S, n as C, o as w, r as te, t as T } from "./figure-frame-
|
|
8
|
+
import { c as x, i as ee, l as S, n as C, o as w, r as te, t as T } from "./figure-frame-zyCmHlgX.js";
|
|
9
9
|
import { n as E } from "./plot-width-D3hTycYX.js";
|
|
10
10
|
import { t as D } from "./plot-axes-D5S9BnBa.js";
|
|
11
|
-
import { a as O, c as k, l as A, n as ne, o as re } from "./plot-marks-
|
|
12
|
-
import { n as ie, r as ae, t as oe } from "./plot-surface-
|
|
11
|
+
import { a as O, c as k, l as A, n as ne, o as re } from "./plot-marks-DgCtcd3L.js";
|
|
12
|
+
import { n as ie, r as ae, t as oe } from "./plot-surface-CAAzoXJh.js";
|
|
13
13
|
import { t as j } from "./label-spacing-BncjePGb.js";
|
|
14
14
|
import { n as se, t as ce } from "./label-place-Z0fryBZb.js";
|
|
15
|
-
import { t as le } from "./reference-lines-
|
|
15
|
+
import { t as le } from "./reference-lines-BGE13uMG.js";
|
|
16
16
|
import { n as ue, r as M, t as de } from "./path-BglsXpnO.js";
|
|
17
17
|
import { t as fe } from "./locate-Bcg3QcP4.js";
|
|
18
18
|
import { t as N } from "./heatmap-scale-Zte6Ya-g.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as e, E as t, O as n, b as r, c as i, v as a } from "./src-k0l1Y4Xl.js";
|
|
2
2
|
import { t as o } from "./use-scroll-tab-index-Dxpdh4W7.js";
|
|
3
3
|
import { t as s } from "./viewer-styles-DsFYri4K.js";
|
|
4
|
-
import { i as c, t as l } from "./code-block-
|
|
5
|
-
import { p as u } from "./src-
|
|
6
|
-
import { t as d } from "./content-link-
|
|
4
|
+
import { i as c, t as l } from "./code-block-C_Ze7QLO.js";
|
|
5
|
+
import { p as u } from "./src-D_BL6n5Q.js";
|
|
6
|
+
import { t as d } from "./content-link-BSR0a887.js";
|
|
7
7
|
import * as f from "@stylexjs/stylex";
|
|
8
8
|
import { usePart as p, usePrimitive as m } from "@ui-sdk/react/primitive";
|
|
9
9
|
import { useCallback as h, useLayoutEffect as g, useMemo as _, useRef as v, useState as y, useSyncExternalStore as b } from "react";
|
|
@@ -22,7 +22,7 @@ var ce = { body: {
|
|
|
22
22
|
kGuDYH: "xy8obcc",
|
|
23
23
|
$$css: !0
|
|
24
24
|
} }, U = 500;
|
|
25
|
-
function W({ value: e, name: t, path: n, depth: r, maxDepth:
|
|
25
|
+
function W({ value: e, name: t, path: n, depth: r, maxDepth: i, maxEntries: o }) {
|
|
26
26
|
if (typeof e != "object" || !e) {
|
|
27
27
|
let n = JSON.stringify(e), r = n.length > U;
|
|
28
28
|
return /* @__PURE__ */ D("div", {
|
|
@@ -47,7 +47,7 @@ function W({ value: e, name: t, path: n, depth: r, maxDepth: a, maxEntries: o })
|
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
let s = Object.entries(e), c = Array.isArray(e) ? `${s.length} items` : `${s.length} fields`;
|
|
50
|
-
return r >=
|
|
50
|
+
return r >= i ? /* @__PURE__ */ D("div", {
|
|
51
51
|
className: "xeuugli x126k92a xj0a0fe",
|
|
52
52
|
children: [/* @__PURE__ */ D("span", {
|
|
53
53
|
className: "x153jb6y",
|
|
@@ -56,10 +56,10 @@ function W({ value: e, name: t, path: n, depth: r, maxDepth: a, maxEntries: o })
|
|
|
56
56
|
className: "x153jb6y x1hz01jw",
|
|
57
57
|
children: [c, " · depth limit"]
|
|
58
58
|
})]
|
|
59
|
-
}) : /* @__PURE__ */ D(
|
|
59
|
+
}) : /* @__PURE__ */ D(a.Root, {
|
|
60
60
|
defaultOpen: r === 0,
|
|
61
61
|
className: "xeuugli x126k92a xj0a0fe",
|
|
62
|
-
children: [/* @__PURE__ */ E(
|
|
62
|
+
children: [/* @__PURE__ */ E(a.Trigger, {
|
|
63
63
|
variant: "inline",
|
|
64
64
|
children: /* @__PURE__ */ D("span", {
|
|
65
65
|
className: "xiard35 xy8obcc",
|
|
@@ -76,18 +76,18 @@ function W({ value: e, name: t, path: n, depth: r, maxDepth: a, maxEntries: o })
|
|
|
76
76
|
})
|
|
77
77
|
]
|
|
78
78
|
})
|
|
79
|
-
}), /* @__PURE__ */ E(
|
|
79
|
+
}), /* @__PURE__ */ E(a.Panel, { children: /* @__PURE__ */ D("div", {
|
|
80
80
|
className: "xo02m6d xpilrb4 x1t7ytsu x97x49r xa1dmyi xiard35 xy8obcc",
|
|
81
81
|
children: [s.slice(0, o).map(([e, t]) => {
|
|
82
|
-
let
|
|
82
|
+
let a = `${n}/${e.replaceAll("~", "~0").replaceAll("/", "~1")}`;
|
|
83
83
|
return /* @__PURE__ */ E(W, {
|
|
84
84
|
name: JSON.stringify(e),
|
|
85
|
-
path:
|
|
85
|
+
path: a,
|
|
86
86
|
value: t,
|
|
87
87
|
depth: r + 1,
|
|
88
|
-
maxDepth:
|
|
88
|
+
maxDepth: i,
|
|
89
89
|
maxEntries: o
|
|
90
|
-
},
|
|
90
|
+
}, a);
|
|
91
91
|
}), s.length > o && /* @__PURE__ */ D("div", {
|
|
92
92
|
className: "x153jb6y x1hz01jw",
|
|
93
93
|
children: [s.length - o, " more entries · copy to inspect the complete value"]
|
|
@@ -95,8 +95,8 @@ function W({ value: e, name: t, path: n, depth: r, maxDepth: a, maxEntries: o })
|
|
|
95
95
|
}) })]
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
|
-
function le({ value: e, label: t, maxDepth: n = 6, maxEntries:
|
|
99
|
-
let
|
|
98
|
+
function le({ value: e, label: t, maxDepth: n = 6, maxEntries: i = 50 }) {
|
|
99
|
+
let a = o(), l = h(() => JSON.stringify(e, null, 2), [e]);
|
|
100
100
|
return /* @__PURE__ */ D(c, {
|
|
101
101
|
kind: "json",
|
|
102
102
|
"aria-label": t,
|
|
@@ -106,16 +106,16 @@ function le({ value: e, label: t, maxDepth: n = 6, maxEntries: r = 50 }) {
|
|
|
106
106
|
children: [/* @__PURE__ */ E("span", {
|
|
107
107
|
...f.props(s.label),
|
|
108
108
|
children: t
|
|
109
|
-
}), /* @__PURE__ */ E(
|
|
109
|
+
}), /* @__PURE__ */ E(r, {
|
|
110
110
|
label: t,
|
|
111
111
|
value: l,
|
|
112
112
|
children: "Copy JSON"
|
|
113
113
|
})]
|
|
114
114
|
}), /* @__PURE__ */ E("div", {
|
|
115
|
-
ref:
|
|
115
|
+
ref: a.ref,
|
|
116
116
|
role: "region",
|
|
117
117
|
"aria-label": `${t} fields`,
|
|
118
|
-
tabIndex:
|
|
118
|
+
tabIndex: a.tabIndex,
|
|
119
119
|
...f.props(s.scrollRegion, ce.body),
|
|
120
120
|
children: /* @__PURE__ */ E(W, {
|
|
121
121
|
name: "root",
|
|
@@ -123,7 +123,7 @@ function le({ value: e, label: t, maxDepth: n = 6, maxEntries: r = 50 }) {
|
|
|
123
123
|
value: e,
|
|
124
124
|
depth: 0,
|
|
125
125
|
maxDepth: Math.max(1, n),
|
|
126
|
-
maxEntries: Math.max(1,
|
|
126
|
+
maxEntries: Math.max(1, i)
|
|
127
127
|
})
|
|
128
128
|
})]
|
|
129
129
|
});
|
|
@@ -156,7 +156,7 @@ var ue = {
|
|
|
156
156
|
$$css: !0
|
|
157
157
|
}
|
|
158
158
|
}, de = 2e5;
|
|
159
|
-
function fe({ output: e, label: n, variant:
|
|
159
|
+
function fe({ output: e, label: n, variant: i = "default", maxLines: a = 500, maxHeight: l = 320, isRunning: u = !1 }) {
|
|
160
160
|
let d = o(), p = d.viewport, m = v(!1), [h] = y(() => {
|
|
161
161
|
let e = S();
|
|
162
162
|
return {
|
|
@@ -164,7 +164,7 @@ function fe({ output: e, label: n, variant: r = "default", maxLines: i = 500, ma
|
|
|
164
164
|
subscribe: (t) => e.subscribe(t),
|
|
165
165
|
read: () => e.get()
|
|
166
166
|
};
|
|
167
|
-
}), { following: _ } = b(h.subscribe, h.read, h.read), x = te(e), C = x.slice(-2e5).split("\n"), w = C.slice(-Math.max(1,
|
|
167
|
+
}), { following: _ } = b(h.subscribe, h.read, h.read), x = te(e), C = x.slice(-2e5).split("\n"), w = C.slice(-Math.max(1, a)), T = C.length - w.length, O = i === "embedded", k = u && (!O || !_);
|
|
168
168
|
return g(() => {
|
|
169
169
|
let e = p.current;
|
|
170
170
|
return e === null ? void 0 : h.connect(e);
|
|
@@ -194,7 +194,7 @@ function fe({ output: e, label: n, variant: r = "default", maxLines: i = 500, ma
|
|
|
194
194
|
m.current = !1;
|
|
195
195
|
},
|
|
196
196
|
children: _ ? "Pause following" : "Follow output"
|
|
197
|
-
}), /* @__PURE__ */ E(
|
|
197
|
+
}), /* @__PURE__ */ E(r, {
|
|
198
198
|
value: e,
|
|
199
199
|
label: n,
|
|
200
200
|
display: O ? "icon" : "value",
|
|
@@ -325,7 +325,7 @@ function ve(e, t) {
|
|
|
325
325
|
label: `${e}x`
|
|
326
326
|
}));
|
|
327
327
|
}
|
|
328
|
-
function ye({ isPlaying:
|
|
328
|
+
function ye({ isPlaying: e, onPlayingChange: t, onStepBackward: r, onStepForward: a, speed: o, speeds: s = he, onSpeedChange: c, readout: l, actions: d, density: p = "standard", isDisabled: m = !1, playLabel: h = "Play", pauseLabel: g = "Pause", label: _ = ge, xstyle: v }) {
|
|
329
329
|
let y = c !== void 0, b = q(d), x = X(o) ? o : void 0, S = y ? ve(s, x) : [], C = x === void 0 ? null : String(x), w = _.trim(), T = w.length > 0 ? w : ge;
|
|
330
330
|
return /* @__PURE__ */ D("div", {
|
|
331
331
|
role: "group",
|
|
@@ -335,23 +335,23 @@ function ye({ isPlaying: t, onPlayingChange: r, onStepBackward: i, onStepForward
|
|
|
335
335
|
/* @__PURE__ */ D("div", {
|
|
336
336
|
className: "x78zum5 x6s0dn4 xunmzkg x2lah0s",
|
|
337
337
|
children: [
|
|
338
|
-
|
|
338
|
+
r !== void 0 && /* @__PURE__ */ E(n, {
|
|
339
339
|
variant: "ghost",
|
|
340
340
|
density: p,
|
|
341
341
|
"aria-label": "Step backward",
|
|
342
342
|
disabled: m,
|
|
343
|
-
onClick:
|
|
343
|
+
onClick: r,
|
|
344
344
|
children: /* @__PURE__ */ E(P, { size: J })
|
|
345
345
|
}),
|
|
346
|
-
/* @__PURE__ */ E(
|
|
346
|
+
/* @__PURE__ */ E(n, {
|
|
347
347
|
variant: "outline",
|
|
348
348
|
density: p,
|
|
349
|
-
"aria-label":
|
|
349
|
+
"aria-label": e ? g : h,
|
|
350
350
|
disabled: m,
|
|
351
|
-
onClick: () =>
|
|
352
|
-
children: E(
|
|
351
|
+
onClick: () => t(!e),
|
|
352
|
+
children: E(e ? M : N, { size: J })
|
|
353
353
|
}),
|
|
354
|
-
a !== void 0 && /* @__PURE__ */ E(
|
|
354
|
+
a !== void 0 && /* @__PURE__ */ E(n, {
|
|
355
355
|
variant: "ghost",
|
|
356
356
|
density: p,
|
|
357
357
|
"aria-label": "Step forward",
|
|
@@ -375,7 +375,7 @@ function ye({ isPlaying: t, onPlayingChange: r, onStepBackward: i, onStepForward
|
|
|
375
375
|
}),
|
|
376
376
|
l !== void 0 && /* @__PURE__ */ E("span", {
|
|
377
377
|
className: "x1lliihq x9f619 xeuugli x193iq5w xb3r6kr xlyipyv xss6m8b xuxw1ft x14w6jbu",
|
|
378
|
-
children: /* @__PURE__ */ E(
|
|
378
|
+
children: /* @__PURE__ */ E(i, {
|
|
379
379
|
variant: "mono",
|
|
380
380
|
tone: "muted",
|
|
381
381
|
children: l
|
|
@@ -980,17 +980,17 @@ function Ve({ label: e, children: t }) {
|
|
|
980
980
|
children: t
|
|
981
981
|
});
|
|
982
982
|
}
|
|
983
|
-
function He({ id:
|
|
984
|
-
let d = ze[
|
|
983
|
+
function He({ id: t, label: n, status: r, statusLabel: i, description: o, detail: s, isSelected: c, onSelect: l, children: u }) {
|
|
984
|
+
let d = ze[r];
|
|
985
985
|
return /* @__PURE__ */ D("li", {
|
|
986
|
-
"data-item-id":
|
|
986
|
+
"data-item-id": t,
|
|
987
987
|
className: "x1n2onr6 xrvj5dj x1qpdrs7 x8zbtdt x1wv5www xup0pd7",
|
|
988
988
|
children: [/* @__PURE__ */ D("div", {
|
|
989
989
|
"aria-hidden": !0,
|
|
990
990
|
className: "x78zum5 xdt5ytf x6s0dn4 xunmzkg x1lk341d",
|
|
991
991
|
children: [/* @__PURE__ */ E(d, {
|
|
992
992
|
size: 14,
|
|
993
|
-
...f.props(Re[
|
|
993
|
+
...f.props(Re[r])
|
|
994
994
|
}), /* @__PURE__ */ E("span", { className: "x1i1rx1s x1f6qilh x98rzlu x1fa40ue" })]
|
|
995
995
|
}), /* @__PURE__ */ D("div", {
|
|
996
996
|
className: "x78zum5 xdt5ytf xunmzkg xeuugli",
|
|
@@ -1000,21 +1000,21 @@ function He({ id: e, label: t, status: n, statusLabel: a, description: o, detail
|
|
|
1000
1000
|
0: { className: "xk4h15q xj0a0fe" },
|
|
1001
1001
|
1: { className: "xk4h15q xj0a0fe xujl8zx xda060z" }
|
|
1002
1002
|
}[c === !0 | 0],
|
|
1003
|
-
children: l === void 0 ?
|
|
1003
|
+
children: l === void 0 ? n : /* @__PURE__ */ E(e, {
|
|
1004
1004
|
"aria-pressed": c,
|
|
1005
|
-
onClick: () => l(
|
|
1006
|
-
children:
|
|
1005
|
+
onClick: () => l(t),
|
|
1006
|
+
children: n
|
|
1007
1007
|
})
|
|
1008
1008
|
}),
|
|
1009
1009
|
/* @__PURE__ */ E("span", {
|
|
1010
1010
|
className: "xy8obcc xas2l8k x153jb6y xj0a0fe",
|
|
1011
|
-
children:
|
|
1011
|
+
children: i
|
|
1012
1012
|
}),
|
|
1013
1013
|
o !== void 0 && /* @__PURE__ */ E("p", {
|
|
1014
1014
|
className: "x1ghz6dp x153jb6y xj0a0fe",
|
|
1015
1015
|
children: o
|
|
1016
1016
|
}),
|
|
1017
|
-
s !== void 0 && /* @__PURE__ */ D(
|
|
1017
|
+
s !== void 0 && /* @__PURE__ */ D(a.Root, { children: [/* @__PURE__ */ E(a.Trigger, { children: "Details" }), /* @__PURE__ */ E(a.Panel, { children: s })] }),
|
|
1018
1018
|
u
|
|
1019
1019
|
]
|
|
1020
1020
|
})]
|