@mechane-ai/elements 0.53.0 → 0.54.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 (53) hide show
  1. package/dist/ai.js +1 -1
  2. package/dist/{article-qU2scA0w.js → article-DPDk0Xgp.js} +1 -1
  3. package/dist/article.js +1 -1
  4. package/dist/catalog.json +1 -1
  5. package/dist/{categorical-values-DHl0r9od.js → categorical-values-CGavb4HZ.js} +1 -1
  6. package/dist/{cells-CNZE4us2.js → cells-BTTLURWI.js} +32 -26
  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 +3 -3
  17. package/dist/charts/relationship.js +1 -1
  18. package/dist/charts/text.js +1 -1
  19. package/dist/charts/timeline.js +1 -1
  20. package/dist/charts/trend.js +1 -1
  21. package/dist/charts.js +2 -2
  22. package/dist/collections.js +1 -1
  23. package/dist/{dumbbell-plot-CKNqa-L2.js → dumbbell-plot-DJOyXW7m.js} +3 -3
  24. package/dist/{embedding-map-DyCE2isi.js → embedding-map-BSlNwXs2.js} +3 -3
  25. package/dist/feedback.js +1 -1
  26. package/dist/{figure-frame-DVZlUsa7.js → figure-frame-C2hCrRX4.js} +2 -2
  27. package/dist/{image-grid-FByan2gk.js → image-grid-D0Xk_KNk.js} +2 -2
  28. package/dist/kits/evaluation.js +5 -5
  29. package/dist/kits/interpretability.js +9 -9
  30. package/dist/kits/operations.js +5 -5
  31. package/dist/kits/research.js +107 -102
  32. package/dist/kits/training.js +5 -5
  33. package/dist/mdx.js +2 -2
  34. package/dist/packages/charts/src/cells/heat-cell.d.ts +3 -1
  35. package/dist/packages/feedback/src/async-region.d.ts +1 -0
  36. package/dist/packages/kits/src/research/lineage-graph.d.ts +4 -0
  37. package/dist/{plot-layout-DjXbV9Lf.js → plot-layout-PBlcYu9p.js} +2 -2
  38. package/dist/{plot-surface-BJuVNKMs.js → plot-surface-CdqANDC1.js} +1 -1
  39. package/dist/{reference-lines-DLCFC7OO.js → reference-lines-Cdrs0B3S.js} +1 -1
  40. package/dist/{scene-C4Q0pFav.js → scene-CcJb3zcs.js} +4 -4
  41. package/dist/scene.js +1 -1
  42. package/dist/{slope-chart-DgpKO_1Y.js → slope-chart-CagCaJYG.js} +6 -6
  43. package/dist/{src-fvoTU3Bq.js → src-BdMdzP0t.js} +1 -1
  44. package/dist/{src-npqwq3Sa.js → src-Bg4eyJZO.js} +95 -94
  45. package/dist/styles2.css +4 -0
  46. package/dist/{time-series-BrM0g-aY.js → time-series-g4trCNxp.js} +6 -6
  47. package/dist/{token-heatmap-DKIPkRXQ.js → token-heatmap-D3v9r6jf.js} +2 -2
  48. package/dist/{token-predictions-CKcNk4ks.js → token-predictions-BMVVfAL3.js} +3 -3
  49. package/dist/{tree-diagram-ZLk2jDUv.js → tree-diagram-BHLewHQl.js} +4 -4
  50. package/dist/{treemap-D6uNK6Tw.js → treemap-n3Er3k6e.js} +4 -4
  51. package/dist/{violin-plot-DeHiuWU_.js → violin-plot-qCMn4e1I.js} +3 -3
  52. package/dist/{waterfall-CihTq6le.js → waterfall-ChExGsn8.js} +3 -3
  53. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
- import { d as e, f as t, g as n, h as r, m as i, n as a, o, u as s, y as c } from "../src-fvoTU3Bq.js";
1
+ import { d as e, f as t, g as n, h as r, m as i, n as a, o, u as s, y as c } from "../src-BdMdzP0t.js";
2
2
  import { c as l, f as u, h as d, l as f, m as p, o as m, p as h, r as g, t as _, v } from "../src-9EJskqB_.js";
3
- import { m as y, p as b, s as x, t as S } from "../src-npqwq3Sa.js";
3
+ import { m as y, p as b, s as x, t as S } from "../src-Bg4eyJZO.js";
4
4
  import { u as C } from "../src-Dxs3Buo_.js";
5
5
  import { T as w, h as T, i as E, n as D } from "../src-DhWMspwr.js";
6
6
  import { r as O } from "../figure-format-B8kRZMlo.js";
7
7
  import { n as k } from "../src-na2DdkKI.js";
8
- import { a as A, t as j } from "../tree-diagram-ZLk2jDUv.js";
9
- import { f as M } from "../time-series-BrM0g-aY.js";
8
+ import { a as A, t as j } from "../tree-diagram-BHLewHQl.js";
9
+ import { f as M } from "../time-series-g4trCNxp.js";
10
10
  import { t as N } from "../src-DFW49IAs.js";
11
11
  import "@stylexjs/stylex";
12
12
  import { useEffect as ee, useState as P } from "react";
@@ -21,7 +21,7 @@ function ne(e) {
21
21
  return e instanceof HTMLElement ? e.isContentEditable || R.has(e.tagName) : !1;
22
22
  }
23
23
  function z({ title: n, caption: i, rows: a, getRowId: o, columns: c, sort: l, onSortChange: u, search: d, filters: f, transformRows: p, scopes: m, defaultScopeId: h, rowAction: g, activeRowId: _, rowSizing: v, empty: b, filteredEmpty: x, status: T = "ready", failure: E, placeholderRows: D = te, hasGlobalShortcuts: O }) {
24
- let k = T === "loading", A = T === "failed", j = T === "ready", M = m?.[0]?.id ?? "", [N, F] = P(() => h ?? M), R = m === void 0 || m.length === 0 ? void 0 : m.find((e) => e.id === N) ?? m[0], z = R === void 0 ? a : a.filter(R.match), re = m === void 0 || m.length <= 1 ? null : /* @__PURE__ */ I(C.Root, {
24
+ let k = T === "loading", A = T === "failed", j = T === "ready", M = m?.[0]?.id ?? "", [N, F] = P(() => h ?? M), R = m === void 0 || m.length === 0 ? void 0 : m.find((e) => e.id === N) ?? m[0], z = R === void 0 ? a : a.filter(R.match), B = m === void 0 || m.length <= 1 ? null : /* @__PURE__ */ I(C.Root, {
25
25
  "aria-label": `${n} scope`,
26
26
  value: R?.id ?? M,
27
27
  onValueChange: (e) => F(e),
@@ -29,29 +29,29 @@ function z({ title: n, caption: i, rows: a, getRowId: o, columns: c, sort: l, on
29
29
  value: e.id,
30
30
  children: k ? e.label : `${e.label} (${a.filter(e.match).length})`
31
31
  }, e.id))
32
- }), B = r(z, {
32
+ }), V = r(z, {
33
33
  mode: "local",
34
34
  search: d,
35
35
  filters: f
36
- }), { actions: V, chips: H, onKeyDown: U, openSearch: W } = t({
36
+ }), { actions: H, chips: U, onKeyDown: W, openSearch: G } = t({
37
37
  label: `${n} controls`,
38
- ...B.search !== void 0 && { search: B.search },
39
- filters: B.filters,
38
+ ...V.search !== void 0 && { search: V.search },
39
+ filters: V.filters,
40
40
  isPlaceholder: k,
41
41
  isReady: j
42
- }), G = O && j && B.search !== void 0;
42
+ }), K = O && j && V.search !== void 0;
43
43
  ee(() => {
44
- if (!G) return;
44
+ if (!K) return;
45
45
  function e(e) {
46
46
  let t = e.key === "/" && !ne(e.target), n = e.key.toLowerCase() === "f" && (e.metaKey || e.ctrlKey);
47
- (t || n) && (e.preventDefault(), W());
47
+ (t || n) && (e.preventDefault(), G());
48
48
  }
49
49
  return globalThis.addEventListener("keydown", e), () => globalThis.removeEventListener("keydown", e);
50
- }, [G, W]);
51
- let ie = p === void 0 ? B.rows : p(B.rows), K = i ?? n, q = typeof d == "function", J = !("reason" in f), Y = {
52
- caption: K,
50
+ }, [K, G]);
51
+ let re = p === void 0 ? V.rows : p(V.rows), q = i ?? n, J = typeof d == "function", Y = !("reason" in f), X = {
52
+ caption: q,
53
53
  hideCaption: !0,
54
- rows: ie,
54
+ rows: re,
55
55
  getRowId: o,
56
56
  query: { mode: "frame" },
57
57
  ...g !== void 0 && { rowAction: g },
@@ -59,21 +59,21 @@ function z({ title: n, caption: i, rows: a, getRowId: o, columns: c, sort: l, on
59
59
  ...v !== void 0 && { rowSizing: v },
60
60
  empty: b,
61
61
  ...x !== void 0 && { filteredEmpty: x }
62
- }, X = u === void 0 ? /* @__PURE__ */ I(s, {
63
- ...Y,
62
+ }, Z = u === void 0 ? /* @__PURE__ */ I(s, {
63
+ ...X,
64
64
  columns: c
65
65
  }) : /* @__PURE__ */ I(s, {
66
- ...Y,
66
+ ...X,
67
67
  columns: c,
68
68
  sort: l,
69
69
  onSortChange: u
70
- }), Z = /* @__PURE__ */ I(e, {
71
- caption: K,
70
+ }), Q = /* @__PURE__ */ I(e, {
71
+ caption: q,
72
72
  hideCaption: !0,
73
73
  columns: c,
74
74
  rows: D,
75
75
  ...v !== void 0 && { rowSizing: v }
76
- }), Q = E ?? /* @__PURE__ */ I(w, { children: /* @__PURE__ */ L(y, {
76
+ }), ie = E ?? /* @__PURE__ */ I(w, { children: /* @__PURE__ */ L(y, {
77
77
  hasError: !0,
78
78
  children: [
79
79
  "Could not load ",
@@ -82,28 +82,28 @@ function z({ title: n, caption: i, rows: a, getRowId: o, columns: c, sort: l, on
82
82
  ]
83
83
  }) });
84
84
  return {
85
- scopeControl: re,
86
- controlActions: V,
87
- chips: H,
88
- onKeyDown: U,
85
+ scopeControl: B,
86
+ controlActions: H,
87
+ chips: U,
88
+ onKeyDown: W,
89
89
  content: k ? /* @__PURE__ */ I(S, {
90
90
  state: "pending",
91
91
  label: n,
92
- placeholder: Z
92
+ placeholder: Q
93
93
  }) : /* @__PURE__ */ I(S, {
94
94
  state: A ? "failed" : "ready",
95
95
  label: n,
96
- placeholder: Z,
97
- children: A ? Q : X
96
+ placeholder: Q,
97
+ children: A ? ie : Z
98
98
  }),
99
99
  frameProps: {
100
- search: q ? !0 : d,
101
- filters: J ? !0 : f,
102
- isFiltered: B.isFiltered
100
+ search: J ? !0 : d,
101
+ filters: Y ? !0 : f,
102
+ isFiltered: V.isFiltered
103
103
  }
104
104
  };
105
105
  }
106
- function re(e) {
106
+ function B(e) {
107
107
  let { title: t, navigation: n, actions: r, notice: a, inspector: o, inspectorInitialPercent: s = 40 } = e, { scopeControl: l, controlActions: u, chips: d, onKeyDown: f, content: p, frameProps: m } = z({
108
108
  ...e,
109
109
  hasGlobalShortcuts: !0
@@ -137,7 +137,7 @@ function re(e) {
137
137
  })
138
138
  });
139
139
  }
140
- function B(e) {
140
+ function V(e) {
141
141
  let { id: t, title: n, meta: r, actions: a, notice: o } = e, { scopeControl: s, controlActions: l, chips: u, onKeyDown: d, content: p, frameProps: m } = z({
142
142
  ...e,
143
143
  hasGlobalShortcuts: !1
@@ -170,7 +170,7 @@ function B(e) {
170
170
  });
171
171
  }
172
172
  // packages/kits/src/research/finding-card.tsx
173
- var V = {
173
+ var H = {
174
174
  limitation: "Limitation",
175
175
  details: "Full notes & evidence",
176
176
  sources: "Sources",
@@ -180,18 +180,18 @@ var V = {
180
180
  falsified: "Falsified",
181
181
  open: "Open"
182
182
  }
183
- }, H = {
183
+ }, U = {
184
184
  supported: "positive",
185
185
  mixed: "warning",
186
186
  falsified: "negative",
187
187
  open: "neutral"
188
188
  };
189
- function U({ title: e, claim: t, locale: n, status: r, index: i, limitation: o, metrics: s = [], sources: c = [], author: u, recordedAt: f, recordedLabel: m, details: y, actions: b, labels: x }) {
189
+ function W({ title: e, claim: t, locale: n, status: r, index: i, limitation: o, metrics: s = [], sources: c = [], author: u, recordedAt: f, recordedLabel: m, details: y, actions: b, labels: x }) {
190
190
  let S = {
191
- ...V,
191
+ ...H,
192
192
  ...x,
193
193
  statusLabels: {
194
- ...V.statusLabels,
194
+ ...H.statusLabels,
195
195
  ...x?.statusLabels
196
196
  }
197
197
  };
@@ -199,7 +199,7 @@ function U({ title: e, claim: t, locale: n, status: r, index: i, limitation: o,
199
199
  title: e,
200
200
  index: i,
201
201
  meta: /* @__PURE__ */ L(p, { children: [/* @__PURE__ */ I(_, {
202
- tone: H[r],
202
+ tone: U[r],
203
203
  children: S.statusLabels[r]
204
204
  }), b] }),
205
205
  footer: u !== void 0 || f !== void 0 || c.length > 0 ? /* @__PURE__ */ L(p, {
@@ -261,19 +261,19 @@ function U({ title: e, claim: t, locale: n, status: r, index: i, limitation: o,
261
261
  });
262
262
  }
263
263
  // packages/kits/src/research/lineage-graph.tsx
264
- var W = 176, G = 56, ie = 48, K = 14, q = 20, J = 24, Y = 14, X = 16, Z = 640, Q = 240, ae = 64, $ = "General", oe = {
264
+ var G = 152, K = 56, re = 32, q = 12, J = 16, Y = 32, X = 16, Z = 16, Q = 12, ie = 640, ae = 240, oe = 64, $ = "General", se = {
265
265
  baseline: "series5",
266
266
  milestone: "positive",
267
267
  branch: "series1",
268
268
  merge: "series3",
269
269
  killed: "negative"
270
- }, se = {
270
+ }, ce = {
271
271
  baseline: "neutral",
272
272
  milestone: "positive",
273
273
  branch: "neutral",
274
274
  merge: "warning",
275
275
  killed: "negative"
276
- }, ce = {
276
+ }, le = {
277
277
  frontier: "Frontier",
278
278
  all: "All",
279
279
  metric: "Score",
@@ -290,7 +290,7 @@ var W = 176, G = 56, ie = 48, K = 14, q = 20, J = 24, Y = 14, X = 16, Z = 640, Q
290
290
  killed: "Killed"
291
291
  }
292
292
  };
293
- function le(e, t, n) {
293
+ function ue(e, t, n) {
294
294
  let r = t.get(e.id) ?? 0;
295
295
  for (let i of e.parentIds) if (n.has(i)) {
296
296
  let e = (t.get(i) ?? 0) + 1;
@@ -298,13 +298,13 @@ function le(e, t, n) {
298
298
  }
299
299
  return r;
300
300
  }
301
- function ue(e) {
301
+ function de(e) {
302
302
  let t = /* @__PURE__ */ new Map(), n = new Set(e.map((e) => e.id));
303
303
  for (let n of e) t.set(n.id, 0);
304
- for (let r = 0; r < ae; r += 1) {
304
+ for (let r = 0; r < oe; r += 1) {
305
305
  let r = [];
306
306
  for (let i of e) {
307
- let e = le(i, t, n);
307
+ let e = ue(i, t, n);
308
308
  e !== t.get(i.id) && r.push([i.id, e]);
309
309
  }
310
310
  if (r.length === 0) break;
@@ -312,7 +312,7 @@ function ue(e) {
312
312
  }
313
313
  return t;
314
314
  }
315
- function de(e) {
315
+ function fe(e) {
316
316
  let t = /* @__PURE__ */ new Set(), n = new Map(e.map((e) => [e.id, e]));
317
317
  function r(e) {
318
318
  if (t.has(e)) return;
@@ -323,7 +323,7 @@ function de(e) {
323
323
  for (let t of e) t.kind !== "killed" && r(t.id);
324
324
  return e.filter((e) => t.has(e.id));
325
325
  }
326
- function fe({ node: e, locale: t, valueFormat: n, deltaFormat: r }) {
326
+ function pe({ node: e, locale: t, valueFormat: n, deltaFormat: r }) {
327
327
  let i = [];
328
328
  if (e.metric !== null && e.metric !== void 0 && i.push(n === void 0 ? String(e.metric) : O({
329
329
  value: e.metric,
@@ -337,31 +337,36 @@ function fe({ node: e, locale: t, valueFormat: n, deltaFormat: r }) {
337
337
  format: a
338
338
  }));
339
339
  }
340
- return i.length > 0 ? i.join(" · ") : e.summary;
340
+ return e.caption === void 0 ? i.length > 0 ? i.join(" · ") : e.summary : e.caption;
341
+ }
342
+ function me(e) {
343
+ let t = de(e), n = /* @__PURE__ */ new Map();
344
+ for (let r of e) n.set(r.id, r.column ?? t.get(r.id) ?? 0);
345
+ return n;
341
346
  }
342
- function pe({ nodes: e, locale: t, valueFormat: n, deltaFormat: r }) {
343
- let i = ue(e), a = Math.max(0, ...Array.from(i.values())), o = e.some((e) => e.lane !== void 0), s = [];
347
+ function he({ nodes: e, locale: t, valueFormat: n, deltaFormat: r }) {
348
+ let i = me(e), a = Math.max(0, ...Array.from(i.values())), o = e.some((e) => e.lane !== void 0), s = [];
344
349
  if (o) for (let t of e) {
345
350
  let e = t.lane ?? $;
346
351
  s.includes(e) || s.push(e);
347
352
  }
348
353
  else s.push($);
349
- let c = (a + 1) * W + a * ie, l = [], u = [], d = q;
354
+ let c = (a + 1) * G + a * re, l = [], u = [], d = J;
350
355
  for (let a of s) {
351
356
  let s = o ? e.filter((e) => (e.lane ?? $) === a) : e, f = /* @__PURE__ */ new Map();
352
357
  for (let e of s) {
353
358
  let t = i.get(e.id) ?? 0, n = f.get(t) ?? [];
354
359
  n.push(e), f.set(t, n);
355
360
  }
356
- let p = Math.max(1, ...Array.from(f.values(), (e) => e.length)), m = p * G + (p - 1) * K, h = d, g = o ? h + J + Y : h, _ = o ? 52 + m : m;
361
+ let p = Math.max(1, ...Array.from(f.values(), (e) => e.length)), m = p * K + (p - 1) * q, h = d, g = o ? h + Y : h, _ = o ? Y + m + X : m;
357
362
  for (let [e, i] of f.entries()) {
358
- let a = q + (o ? Y : 0) + e * 224;
363
+ let a = J + (o ? Z : 0) + e * 184;
359
364
  for (let [e, o] of i.entries()) {
360
- let i = g + e * 70;
365
+ let i = g + e * 68;
361
366
  l.push({
362
367
  id: o.id,
363
368
  label: o.label,
364
- description: fe({
369
+ description: pe({
365
370
  node: o,
366
371
  locale: t,
367
372
  valueFormat: n,
@@ -369,21 +374,21 @@ function pe({ nodes: e, locale: t, valueFormat: n, deltaFormat: r }) {
369
374
  }),
370
375
  x: a,
371
376
  y: i,
372
- width: W,
373
- height: G,
374
- tone: oe[o.kind]
377
+ width: G,
378
+ height: K,
379
+ tone: se[o.kind]
375
380
  });
376
381
  }
377
382
  }
378
383
  o && u.push({
379
384
  id: `lane:${a}`,
380
385
  label: a,
381
- x: q,
386
+ x: J,
382
387
  y: h,
383
- width: c + 28,
388
+ width: c + 32,
384
389
  height: _,
385
390
  nodeIds: s.map((e) => e.id)
386
- }), d = h + _ + (o ? X : K);
391
+ }), d = h + _ + (o ? Q : q);
387
392
  }
388
393
  let f = new Set(e.map((e) => e.id)), p = [];
389
394
  for (let t of e) for (let e of t.parentIds) f.has(e) && p.push({
@@ -397,11 +402,11 @@ function pe({ nodes: e, locale: t, valueFormat: n, deltaFormat: r }) {
397
402
  relationNodes: l,
398
403
  relationEdges: p,
399
404
  relationGroups: u,
400
- width: c + 40 + (o ? 28 : 0),
401
- height: Math.max(Q, d + q - (o ? X : K))
405
+ width: c + 32 + (o ? 32 : 0),
406
+ height: Math.max(ae, d + J - (o ? Q : q))
402
407
  };
403
408
  }
404
- function me({ node: e, labels: t, detailItems: n }) {
409
+ function ge({ node: e, labels: t, detailItems: n }) {
405
410
  return /* @__PURE__ */ L(d, {
406
411
  isCompact: !0,
407
412
  children: [
@@ -412,7 +417,7 @@ function me({ node: e, labels: t, detailItems: n }) {
412
417
  tone: "neutral",
413
418
  children: e.timestamp
414
419
  })] }), /* @__PURE__ */ I(_, {
415
- tone: se[e.kind],
420
+ tone: ce[e.kind],
416
421
  children: t.kinds[e.kind]
417
422
  })]
418
423
  }),
@@ -425,12 +430,12 @@ function me({ node: e, labels: t, detailItems: n }) {
425
430
  ]
426
431
  });
427
432
  }
428
- function he({ nodes: e, valueLabel: t, valueFormat: n, deltaFormat: r, defaultScope: i = "frontier", selected: a, onSelectedChange: o, labels: s, actions: c, ...l }) {
433
+ function _e({ nodes: e, valueLabel: t, valueFormat: n, deltaFormat: r, defaultScope: i = "frontier", selected: a, onSelectedChange: o, labels: s, actions: c, ...l }) {
429
434
  let [u, f] = P(i), [p, m] = P(null), h = {
430
- ...ce,
435
+ ...le,
431
436
  ...s,
432
437
  kinds: {
433
- ...ce.kinds,
438
+ ...le.kinds,
434
439
  ...s?.kinds
435
440
  }
436
441
  };
@@ -438,8 +443,8 @@ function he({ nodes: e, valueLabel: t, valueFormat: n, deltaFormat: r, defaultSc
438
443
  ...l,
439
444
  nodes: [],
440
445
  edges: [],
441
- width: Z,
442
- height: Q
446
+ width: ie,
447
+ height: ae
443
448
  });
444
449
  if (e.length === 0) return /* @__PURE__ */ I(b, {
445
450
  title: l.title,
@@ -449,11 +454,11 @@ function he({ nodes: e, valueLabel: t, valueFormat: n, deltaFormat: r, defaultSc
449
454
  hasError: !0,
450
455
  children: "Lineage nodes must have unique identifiers."
451
456
  });
452
- let g = de(e), _ = g.length < e.length, v = u === "frontier" && _ ? g : e, x = a === void 0 ? p : a;
457
+ let g = fe(e), _ = g.length < e.length, v = u === "frontier" && _ ? g : e, x = a === void 0 ? p : a;
453
458
  function S(e, t) {
454
459
  a === void 0 && m(e), o?.(e, t);
455
460
  }
456
- let w = pe({
461
+ let w = he({
457
462
  nodes: v,
458
463
  locale: l.locale,
459
464
  valueFormat: n,
@@ -509,26 +514,26 @@ function he({ nodes: e, valueLabel: t, valueFormat: n, deltaFormat: r, defaultSc
509
514
  height: w.height,
510
515
  selected: x,
511
516
  onSelectedChange: S
512
- }), T === void 0 ? null : /* @__PURE__ */ I(me, {
517
+ }), T === void 0 ? null : /* @__PURE__ */ I(ge, {
513
518
  node: T,
514
519
  labels: h,
515
520
  detailItems: k
516
521
  })] });
517
522
  }
518
523
  // packages/kits/src/research/milestone-path.tsx
519
- var ge = {
524
+ var ve = {
520
525
  baseline: "series5",
521
526
  result: "series1",
522
527
  breakthrough: "positive",
523
528
  counterexample: "negative",
524
529
  decision: "series3"
525
- }, _e = {
530
+ }, ye = {
526
531
  baseline: "neutral",
527
532
  result: "neutral",
528
533
  breakthrough: "positive",
529
534
  counterexample: "negative",
530
535
  decision: "warning"
531
- }, ve = {
536
+ }, be = {
532
537
  metric: "Score",
533
538
  delta: "Change",
534
539
  limitation: "Limitation",
@@ -542,12 +547,12 @@ var ge = {
542
547
  decision: "Decision"
543
548
  }
544
549
  };
545
- function ye({ milestones: e, valueLabel: t, valueFormat: n, deltaFormat: r, selected: i, onSelectedChange: a, labels: s, ...c }) {
550
+ function xe({ milestones: e, valueLabel: t, valueFormat: n, deltaFormat: r, selected: i, onSelectedChange: a, labels: s, ...c }) {
546
551
  let f = {
547
- ...ve,
552
+ ...be,
548
553
  ...s,
549
554
  kinds: {
550
- ...ve.kinds,
555
+ ...be.kinds,
551
556
  ...s?.kinds
552
557
  }
553
558
  };
@@ -577,11 +582,11 @@ function ye({ milestones: e, valueLabel: t, valueFormat: n, deltaFormat: r, sele
577
582
  label: e.label,
578
583
  detail: e.wave === void 0 ? f.kinds[e.kind] : `${e.wave} · ${f.kinds[e.kind]}`,
579
584
  value: e.metric ?? null,
580
- tone: ge[e.kind]
585
+ tone: ve[e.kind]
581
586
  })), h = Array.from(new Set(e.map((e) => e.kind))).map((e) => ({
582
587
  id: e,
583
588
  label: f.kinds[e],
584
- tone: ge[e]
589
+ tone: ve[e]
585
590
  })), g = e.find((e) => e.id === i) ?? null;
586
591
  return /* @__PURE__ */ L(d, { children: [/* @__PURE__ */ I(j, {
587
592
  ...c,
@@ -603,7 +608,7 @@ function ye({ milestones: e, valueLabel: t, valueFormat: n, deltaFormat: r, sele
603
608
  tone: "neutral",
604
609
  children: g.wave
605
610
  }), /* @__PURE__ */ I(l, { children: /* @__PURE__ */ I("strong", { children: g.label }) })] }), /* @__PURE__ */ I(_, {
606
- tone: _e[g.kind],
611
+ tone: ye[g.kind],
607
612
  children: f.kinds[g.kind]
608
613
  })]
609
614
  }),
@@ -641,7 +646,7 @@ function ye({ milestones: e, valueLabel: t, valueFormat: n, deltaFormat: r, sele
641
646
  })] });
642
647
  }
643
648
  // packages/kits/src/research/specimen-diff.tsx
644
- var be = {
649
+ var Se = {
645
650
  breakdownTitle: "Paired outcome flips",
646
651
  all: "All",
647
652
  gained: "Gained",
@@ -654,23 +659,23 @@ var be = {
654
659
  candidate: "Candidate",
655
660
  outcome: "Outcome",
656
661
  empty: "No paired specimens available for these two runs."
657
- }, xe = {
662
+ }, Ce = {
658
663
  gained: "positive",
659
664
  regressed: "negative",
660
665
  both_pass: "neutral",
661
666
  both_fail: "neutral"
662
- }, Se = /* @__PURE__ */ new Set([
667
+ }, we = /* @__PURE__ */ new Set([
663
668
  "gained",
664
669
  "regressed",
665
670
  "both_pass",
666
671
  "both_fail"
667
672
  ]);
668
- function Ce(e) {
669
- return e !== null && Se.has(e);
673
+ function Te(e) {
674
+ return e !== null && we.has(e);
670
675
  }
671
- function we({ rows: e, baselineLabel: t, candidateLabel: r, filter: i, onFilterChange: a, onSelectRow: o, labels: c, ...u }) {
676
+ function Ee({ rows: e, baselineLabel: t, candidateLabel: r, filter: i, onFilterChange: a, onSelectRow: o, labels: c, ...u }) {
672
677
  let f = {
673
- ...be,
678
+ ...Se,
674
679
  ...c
675
680
  };
676
681
  if (e.length === 0) return /* @__PURE__ */ I(b, {
@@ -737,7 +742,7 @@ function we({ rows: e, baselineLabel: t, candidateLabel: r, filter: i, onFilterC
737
742
  label: f.outcome,
738
743
  role: "status",
739
744
  cell: (e) => /* @__PURE__ */ I(_, {
740
- tone: xe[e.outcome],
745
+ tone: Ce[e.outcome],
741
746
  children: h[e.outcome]
742
747
  })
743
748
  }
@@ -781,7 +786,7 @@ function we({ rows: e, baselineLabel: t, candidateLabel: r, filter: i, onFilterC
781
786
  ],
782
787
  selected: i === "all" ? null : i,
783
788
  onSelectedChange: (e) => {
784
- Ce(e) ? a(e === i ? "all" : e) : a("all");
789
+ Te(e) ? a(e === i ? "all" : e) : a("all");
785
790
  }
786
791
  }),
787
792
  /* @__PURE__ */ L(C.Root, {
@@ -864,7 +869,7 @@ function we({ rows: e, baselineLabel: t, candidateLabel: r, filter: i, onFilterC
864
869
  });
865
870
  }
866
871
  // packages/kits/src/research/work-heartbeat.tsx
867
- var Te = {
872
+ var De = {
868
873
  title: "Active work reports",
869
874
  empty: "No active or recent work reports.",
870
875
  nextCheckpoint: "Next checkpoint",
@@ -875,22 +880,22 @@ var Te = {
875
880
  overdue: "Update overdue",
876
881
  stopped: "Stopped"
877
882
  }
878
- }, Ee = {
883
+ }, Oe = {
879
884
  running: "positive",
880
885
  completed: "neutral",
881
886
  blocked: "negative",
882
887
  overdue: "warning",
883
888
  stopped: "neutral"
884
889
  };
885
- function De(e) {
890
+ function ke(e) {
886
891
  return e === void 0 ? null : Number.isFinite(e.completed) && Number.isFinite(e.total) && e.total > 0 ? e : null;
887
892
  }
888
- function Oe({ reports: e, locale: t, labels: n }) {
893
+ function Ae({ reports: e, locale: t, labels: n }) {
889
894
  let r = {
890
- ...Te,
895
+ ...De,
891
896
  ...n,
892
897
  states: {
893
- ...Te.states,
898
+ ...De.states,
894
899
  ...n?.states
895
900
  }
896
901
  };
@@ -904,14 +909,14 @@ function Oe({ reports: e, locale: t, labels: n }) {
904
909
  }) : /* @__PURE__ */ I("ul", {
905
910
  className: "xe8uvvx x1ghz6dp x1717udv x178xt8z x13fuv20 xhjagg4",
906
911
  children: e.map((e) => {
907
- let n = De(e.progress), i = n === null ? null : Math.max(0, Math.min(100, n.completed / n.total * 100)), o = e.nextCheckpoint !== void 0 || e.executionRef !== void 0;
912
+ let n = ke(e.progress), i = n === null ? null : Math.max(0, Math.min(100, n.completed / n.total * 100)), o = e.nextCheckpoint !== void 0 || e.executionRef !== void 0;
908
913
  return /* @__PURE__ */ L("li", {
909
914
  className: "x78zum5 xdt5ytf x1hnptsi x1qokhjc xso031l x1q0q8m5 x1qndepd",
910
915
  children: [
911
916
  /* @__PURE__ */ L(p, {
912
917
  shouldSpaceBetween: !0,
913
918
  children: [/* @__PURE__ */ I(l, { children: /* @__PURE__ */ I("strong", { children: e.title }) }), /* @__PURE__ */ L(p, { children: [/* @__PURE__ */ I(m, {
914
- tone: Ee[e.state],
919
+ tone: Oe[e.state],
915
920
  children: r.states[e.state]
916
921
  }), /* @__PURE__ */ I(a, {
917
922
  dateTime: e.observedAt,
@@ -983,4 +988,4 @@ function Oe({ reports: e, locale: t, labels: n }) {
983
988
  })
984
989
  });
985
990
  }
986
- export { re as CollectionPage, B as CollectionSection, U as FindingCard, he as LineageGraph, ye as MilestonePath, we as SpecimenDiff, Oe as WorkHeartbeat };
991
+ export { B as CollectionPage, V as CollectionSection, W as FindingCard, _e as LineageGraph, xe as MilestonePath, Ee as SpecimenDiff, Ae as WorkHeartbeat };
@@ -1,11 +1,11 @@
1
1
  import { t as e } from "../src-DIS0YOj0.js";
2
2
  import { i as t, t as n } from "../tone-scope-DKiSw-JR.js";
3
- import { r, s as i } from "../slope-chart-DgpKO_1Y.js";
4
- import { m as a } from "../src-npqwq3Sa.js";
5
- import { T as o } from "../plot-layout-DjXbV9Lf.js";
6
- import { o as s, t as c } from "../cells-CNZE4us2.js";
3
+ import { r, s as i } from "../slope-chart-CagCaJYG.js";
4
+ import { m as a } from "../src-Bg4eyJZO.js";
5
+ import { T as o } from "../plot-layout-PBlcYu9p.js";
6
+ import { o as s, t as c } from "../cells-BTTLURWI.js";
7
7
  import { r as l } from "../figure-format-B8kRZMlo.js";
8
- import { d as u, g as d, u as f } from "../src-fvoTU3Bq.js";
8
+ import { d as u, g as d, u as f } from "../src-BdMdzP0t.js";
9
9
  import { c as p, o as m } from "../src-9EJskqB_.js";
10
10
  import "@stylexjs/stylex";
11
11
  import { useState as h } from "react";
package/dist/mdx.js CHANGED
@@ -1,7 +1,7 @@
1
- import { _ as e, b as t, d as n, f as r, g as i, i as ee, l as a, m as o, n as s, p as te, r as c, t as ne, u as re, v as ie, x as ae, y as oe } from "./article-qU2scA0w.js";
1
+ import { _ as e, b as t, d as n, f as r, g as i, i as ee, l as a, m as o, n as s, p as te, r as c, t as ne, u as re, v as ie, x as ae, y as oe } from "./article-DPDk0Xgp.js";
2
2
  import { n as se, t as ce } from "./param-BdqTpZER.js";
3
3
  import { a as l, i as u, n as d, o as f, t as p } from "./transport-4V9rfYHN.js";
4
- import { C as m, F as h, G as g, H as _, I as v, J as y, L as b, M as x, N as S, P as C, U as w, W as T, X as E, Y as D, b as O, g as k, i as A, l as j, q as M, r as N, t as P, tt as F, u as I, x as L } from "./scene-C4Q0pFav.js";
4
+ import { C as m, F as h, G as g, H as _, I as v, J as y, L as b, M as x, N as S, P as C, U as w, W as T, X as E, Y as D, b as O, g as k, i as A, l as j, q as M, r as N, t as P, tt as F, u as I, x as L } from "./scene-CcJb3zcs.js";
5
5
  import { t as R } from "./code-block-BZsY2sh3.js";
6
6
  import { t as z } from "./content-link-PnpcnTCx.js";
7
7
  import * as B from "@stylexjs/stylex";
@@ -9,6 +9,8 @@ export type HeatCellProps = CellProps & CellDomainProps & {
9
9
  * domain must hold a negative and a positive bound.
10
10
  */
11
11
  readonly palette: HeatmapScale['palette'];
12
+ /** Optional tighter range for color intensity so clustered high values keep clear contrast. */
13
+ readonly colorDomain?: CellDomainProps['domain'] | undefined;
12
14
  };
13
15
  /**
14
16
  * The value written as text on a background whose strength follows it, so color is never the only carrier, with
@@ -16,4 +18,4 @@ export type HeatCellProps = CellProps & CellDomainProps & {
16
18
  * score per task. Pass the column's `domain` and `palette` to every row so all rows share one ramp, lighter than the
17
19
  * `Matrix` heatmap so the ink text stays readable in both themes.
18
20
  */
19
- export declare function HeatCell({ value, domain, palette, locale, format, align, textWidth }: HeatCellProps): ReactNode;
21
+ export declare function HeatCell({ value, domain, colorDomain, palette, locale, format, align, textWidth, }: HeatCellProps): ReactNode;
@@ -14,6 +14,7 @@ export type ContentRevealProps = {
14
14
  export declare function ContentReveal({ shouldEnter, presentation, children }: ContentRevealProps): ReactNode;
15
15
  export type AsyncRegionState = 'pending' | 'ready' | 'failed';
16
16
  export type AsyncRegionProps = {
17
+ readonly placeholderDelayMs?: number;
17
18
  readonly label: string;
18
19
  readonly placeholder: ReactNode;
19
20
  readonly presentation?: 'content' | 'image';
@@ -7,8 +7,12 @@ export type LineageNode = {
7
7
  readonly label: string;
8
8
  readonly kind: LineageNodeKind;
9
9
  readonly lane?: string | undefined;
10
+ /** Optional explicit column index to align parallel swimlanes cleanly without empty gaps. */
11
+ readonly column?: number | undefined;
10
12
  readonly metric?: number | null | undefined;
11
13
  readonly delta?: number | null | undefined;
14
+ /** Optional short subtitle shown inside the node card. Falls back to metric or summary. */
15
+ readonly caption?: string | undefined;
12
16
  readonly summary?: string | undefined;
13
17
  readonly detail?: string | undefined;
14
18
  readonly source?: string | undefined;
@@ -1,5 +1,5 @@
1
1
  import { u as e } from "./src-9EJskqB_.js";
2
- import { d as t, m as n } from "./src-npqwq3Sa.js";
2
+ import { d as t, m as n } from "./src-Bg4eyJZO.js";
3
3
  import { n as r, t as i } from "./chart-tones-ei3BC2AL.js";
4
4
  import { a, i as o, n as s, r as c } from "./figure-format-B8kRZMlo.js";
5
5
  import { r as l, t as u } from "./scale-C2xgZyZN.js";
@@ -541,7 +541,7 @@ function Ee({ items: e, label: t = "Legend", isScrollable: n = !1 }) {
541
541
  function De({ children: e, id: t }) {
542
542
  return /* @__PURE__ */ E("p", {
543
543
  id: t,
544
- className: "x1ghz6dp xeuugli x1mqbd49 xbixft xy8obcc xas2l8k xss6m8b xj0a0fe",
544
+ className: "x1ghz6dp xeuugli xq63h3q x1mqbd49 xbixft xy8obcc xas2l8k xss6m8b xuxw1ft xb3r6kr xlyipyv",
545
545
  children: e
546
546
  });
547
547
  }
@@ -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-DjXbV9Lf.js";
2
+ import { O as n, c as r } from "./plot-layout-PBlcYu9p.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,4 +1,4 @@
1
- import { M as e } from "./plot-layout-DjXbV9Lf.js";
1
+ import { M as e } from "./plot-layout-PBlcYu9p.js";
2
2
  import { t } from "./label-spacing-BncjePGb.js";
3
3
  import { n, t as r } from "./label-place-Z0fryBZb.js";
4
4
  import { c as i, f as a } from "./plot-marks-FVsbFkUs.js";