@mechane-ai/elements 0.61.0 → 0.63.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.
Files changed (92) hide show
  1. package/dist/ai.js +211 -212
  2. package/dist/{article-COShcQPh.js → article-lhByzGCW.js} +6 -6
  3. package/dist/article.js +1 -1
  4. package/dist/catalog.json +13 -1
  5. package/dist/{categorical-values-DdZLdWhL.js → categorical-values-3g2m87_m.js} +1 -1
  6. package/dist/{cells-BTTLURWI.js → cells-X8SVrZBc.js} +1 -1
  7. package/dist/charts/cartesian.js +1 -1
  8. package/dist/charts/cells.js +1 -1
  9. package/dist/charts/comparison.js +1 -1
  10. package/dist/charts/distribution.js +1 -1
  11. package/dist/charts/figure.js +12 -12
  12. package/dist/charts/graph.js +1 -1
  13. package/dist/charts/hierarchy.js +1 -1
  14. package/dist/charts/image.js +1 -1
  15. package/dist/charts/matrix.js +1 -1
  16. package/dist/charts/plot.js +4 -4
  17. package/dist/charts/relationship.js +1 -1
  18. package/dist/charts/text.js +1 -1
  19. package/dist/charts/timeline.js +2 -2
  20. package/dist/charts/trend.js +1 -1
  21. package/dist/charts.js +2 -2
  22. package/dist/{code-block-BZsY2sh3.js → code-block-CJkiWSrX.js} +1 -1
  23. package/dist/collections.js +1 -1
  24. package/dist/{commands-D0bF2JxV.js → commands-DlitIiMJ.js} +2 -2
  25. package/dist/content/code.js +1 -1
  26. package/dist/content/diff.js +10 -10
  27. package/dist/content/link.js +1 -1
  28. package/dist/content/markdown.js +1 -1
  29. package/dist/content/tree.js +2 -2
  30. package/dist/{content-link-PnpcnTCx.js → content-link-DQ3tt_SK.js} +1 -1
  31. package/dist/content.js +1 -1
  32. package/dist/{dates-Cq90-D2X.js → dates-Cvrsj4l9.js} +31 -32
  33. package/dist/{dumbbell-plot-BeHhL-01.js → dumbbell-plot-CEShrjuI.js} +4 -4
  34. package/dist/{embedding-map-DbETVJXp.js → embedding-map-CQZn0DCg.js} +7 -7
  35. package/dist/feedback.js +1 -1
  36. package/dist/{figure-frame-ClYRIRAq.js → figure-frame-BljHBC77.js} +11 -11
  37. package/dist/forms/dates.js +1 -1
  38. package/dist/{forms-CEbwzlRR.js → forms-BYk8t91h.js} +17 -17
  39. package/dist/forms.js +2 -2
  40. package/dist/{image-grid-DB5U7Jtx.js → image-grid-ClMUSwqO.js} +3 -3
  41. package/dist/index.js +1 -1
  42. package/dist/kits/evaluation.js +5 -5
  43. package/dist/kits/interpretability.js +12 -12
  44. package/dist/kits/operations.js +6 -6
  45. package/dist/kits/research.js +8 -8
  46. package/dist/kits/training.js +6 -6
  47. package/dist/layout.js +1 -1
  48. package/dist/lesson.js +3 -3
  49. package/dist/{markdown-VpLw_P9T.js → markdown-_4ZFsDyM.js} +2 -2
  50. package/dist/mdx.js +6 -6
  51. package/dist/navigation/commands.js +1 -1
  52. package/dist/navigation-CwXM887i.js +44 -0
  53. package/dist/navigation.js +3 -3
  54. package/dist/packages/charts/src/plot/plot-marks.d.ts +2 -1
  55. package/dist/packages/charts/src/timeline/trace-timeline-layout.d.ts +7 -2
  56. package/dist/packages/charts/src/timeline/trace-timeline.d.ts +5 -3
  57. package/dist/packages/charts/src/timeline/waterfall.d.ts +3 -1
  58. package/dist/packages/core/src/filter-chips.d.ts +21 -0
  59. package/dist/packages/core/src/index.d.ts +2 -0
  60. package/dist/packages/navigation/src/navigation.d.ts +4 -0
  61. package/dist/{param-BdqTpZER.js → param-BxLsoDip.js} +1 -1
  62. package/dist/{pierre-diff-aGyQK5xK.js → pierre-diff-DwmKtFYy.js} +1 -1
  63. package/dist/{plot-layout-B-b6tioh.js → plot-layout-oXzW4fgJ.js} +2 -2
  64. package/dist/{plot-marks-FVsbFkUs.js → plot-marks-DgCtcd3L.js} +7 -6
  65. package/dist/{plot-surface-BlR44uTL.js → plot-surface-BuXeoeBq.js} +1 -1
  66. package/dist/{reference-lines-BDfsv8dy.js → reference-lines-Kmxs_hXa.js} +2 -2
  67. package/dist/{scene-CY05-A1k.js → scene-AWpudPHv.js} +7 -7
  68. package/dist/scene.js +1 -1
  69. package/dist/{slope-chart-DTyF1lNG.js → slope-chart-DzbDOBUo.js} +5 -5
  70. package/dist/{src-Ci8DeY8J.js → src-CJ-0r20F.js} +1 -1
  71. package/dist/{src-BAlO76fa.js → src-CZyleIH0.js} +40 -40
  72. package/dist/{src-Dxs3Buo_.js → src-CuTIcRwk.js} +186 -187
  73. package/dist/{src-4qgpiWvP.js → src-DFkzV7H0.js} +44 -44
  74. package/dist/{src-9EJskqB_.js → src-DH2Xqu32.js} +659 -428
  75. package/dist/{src-C-Wg9m9H.js → src-DpVApV62.js} +20 -21
  76. package/dist/{src-Cuwx-PLT.js → src-yrBVxkaf.js} +119 -120
  77. package/dist/styles2.css +55 -12
  78. package/dist/{time-series-BbUBF3IE.js → time-series-D7TCUK56.js} +34 -34
  79. package/dist/timeline-CR5VPm_f.js +914 -0
  80. package/dist/{token-heatmap-o_9l6vaq.js → token-heatmap-DEpcsiRR.js} +3 -3
  81. package/dist/{token-predictions-DaAztlOS.js → token-predictions-DMYbc2-N.js} +4 -4
  82. package/dist/{transport-4V9rfYHN.js → transport-VwKG58nR.js} +4 -4
  83. package/dist/{tree-diagram-BDj4TGXb.js → tree-diagram-BqL3fTdB.js} +8 -8
  84. package/dist/{treemap-DUSFlCPK.js → treemap-C0CeP3PD.js} +4 -4
  85. package/dist/{use-tween-BsaEO862.js → use-tween-D-wmSMa8.js} +1 -1
  86. package/dist/{violin-plot-ULdC_dcY.js → violin-plot-6829_9q5.js} +4 -4
  87. package/dist/waterfall-C5HRWlEe.js +736 -0
  88. package/package.json +1 -1
  89. package/dist/control-styles-D3q_Qyxi.js +0 -179
  90. package/dist/navigation-CveMIuXI.js +0 -39
  91. package/dist/timeline-kDb6bY7M.js +0 -712
  92. package/dist/waterfall-Dre6i02Z.js +0 -684
@@ -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-B-b6tioh.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-oXzW4fgJ.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-ClYRIRAq.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-BljHBC77.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-FVsbFkUs.js";
12
- import { n as ie, r as ae, t as oe } from "./plot-surface-BlR44uTL.js";
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-BuXeoeBq.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-BDfsv8dy.js";
15
+ import { t as le } from "./reference-lines-Kmxs_hXa.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,4 +1,4 @@
1
- import { j as e, u as t } from "./src-9EJskqB_.js";
1
+ import { M as e, u as t } from "./src-DH2Xqu32.js";
2
2
  import * as n from "@stylexjs/stylex";
3
3
  import { mergeProps as r } from "@ui-sdk/react/primitive";
4
4
  import { Children as i, useState as a } from "react";
@@ -1,9 +1,9 @@
1
- import { D as e, T as t, c as n, k as r, v as i, y as a } from "./src-9EJskqB_.js";
1
+ import { A as e, E as t, O as n, b as r, c as i, v as a } from "./src-DH2Xqu32.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-BZsY2sh3.js";
5
- import { p as u } from "./src-Dxs3Buo_.js";
6
- import { t as d } from "./content-link-PnpcnTCx.js";
4
+ import { i as c, t as l } from "./code-block-CJkiWSrX.js";
5
+ import { p as u } from "./src-CuTIcRwk.js";
6
+ import { t as d } from "./content-link-DQ3tt_SK.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: a, maxEntries: o }) {
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 >= a ? /* @__PURE__ */ D("div", {
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(i.Root, {
59
+ }) : /* @__PURE__ */ D(a.Root, {
60
60
  defaultOpen: r === 0,
61
61
  className: "xeuugli x126k92a xj0a0fe",
62
- children: [/* @__PURE__ */ E(i.Trigger, {
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(i.Panel, { children: /* @__PURE__ */ D("div", {
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 i = `${n}/${e.replaceAll("~", "~0").replaceAll("/", "~1")}`;
82
+ let a = `${n}/${e.replaceAll("~", "~0").replaceAll("/", "~1")}`;
83
83
  return /* @__PURE__ */ E(W, {
84
84
  name: JSON.stringify(e),
85
- path: i,
85
+ path: a,
86
86
  value: t,
87
87
  depth: r + 1,
88
- maxDepth: a,
88
+ maxDepth: i,
89
89
  maxEntries: o
90
- }, i);
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: r = 50 }) {
99
- let i = o(), l = h(() => JSON.stringify(e, null, 2), [e]);
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(a, {
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: i.ref,
115
+ ref: a.ref,
116
116
  role: "region",
117
117
  "aria-label": `${t} fields`,
118
- tabIndex: i.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, r)
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: r = "default", maxLines: i = 500, maxHeight: l = 320, isRunning: u = !1 }) {
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, i)), T = C.length - w.length, O = r === "embedded", k = u && (!O || !_);
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(a, {
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: t, onPlayingChange: r, onStepBackward: i, 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 }) {
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
- i !== void 0 && /* @__PURE__ */ E(e, {
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: i,
343
+ onClick: r,
344
344
  children: /* @__PURE__ */ E(P, { size: J })
345
345
  }),
346
- /* @__PURE__ */ E(e, {
346
+ /* @__PURE__ */ E(n, {
347
347
  variant: "outline",
348
348
  density: p,
349
- "aria-label": t ? g : h,
349
+ "aria-label": e ? g : h,
350
350
  disabled: m,
351
- onClick: () => r(!t),
352
- children: E(t ? M : N, { size: J })
351
+ onClick: () => t(!e),
352
+ children: E(e ? M : N, { size: J })
353
353
  }),
354
- a !== void 0 && /* @__PURE__ */ E(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(n, {
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: e, label: t, status: n, statusLabel: a, description: o, detail: s, isSelected: c, onSelect: l, children: u }) {
984
- let d = ze[n];
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": e,
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[n])
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 ? t : /* @__PURE__ */ E(r, {
1003
+ children: l === void 0 ? n : /* @__PURE__ */ E(e, {
1004
1004
  "aria-pressed": c,
1005
- onClick: () => l(e),
1006
- children: t
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: a
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(i.Root, { children: [/* @__PURE__ */ E(i.Trigger, { children: "Details" }), /* @__PURE__ */ E(i.Panel, { children: s })] }),
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
  })]