@mechane-ai/elements 0.64.0 → 0.65.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 (112) hide show
  1. package/README.md +18 -17
  2. package/dist/ai.js +7 -7
  3. package/dist/{article-BopqPz1K.js → article-BrUa4Wz1.js} +6 -6
  4. package/dist/article.js +1 -1
  5. package/dist/catalog.json +59 -15
  6. package/dist/{categorical-values-8LA9KXhi.js → categorical-values-AXJkMt-Y.js} +1 -1
  7. package/dist/charts/cartesian.js +1 -1
  8. package/dist/charts/comparison.js +1 -1
  9. package/dist/charts/distribution.js +1 -1
  10. package/dist/charts/figure.js +12 -12
  11. package/dist/charts/graph.js +1 -1
  12. package/dist/charts/hierarchy.js +1 -1
  13. package/dist/charts/image.js +1 -1
  14. package/dist/charts/matrix.js +1 -1
  15. package/dist/charts/plot.js +3 -3
  16. package/dist/charts/relationship.js +1 -1
  17. package/dist/charts/text.js +1 -1
  18. package/dist/charts/timeline.js +2 -2
  19. package/dist/charts/trend.js +1 -1
  20. package/dist/charts.js +2 -2
  21. package/dist/{code-block-BjQUIvvw.js → code-block-BDRmjlES.js} +1 -1
  22. package/dist/collections.js +1 -1
  23. package/dist/{commands-BI9rWGpb.js → commands-rzsDElrG.js} +2 -2
  24. package/dist/content/code.js +1 -1
  25. package/dist/content/diff.js +3 -3
  26. package/dist/content/link.js +1 -1
  27. package/dist/content/markdown.js +1 -1
  28. package/dist/content/tree.js +2 -2
  29. package/dist/{content-link-C3RAJ2kP.js → content-link-DRaNf1mD.js} +1 -1
  30. package/dist/content.js +1 -1
  31. package/dist/{dates-D1v_jiva.js → dates-wu-gKO2C.js} +2 -2
  32. package/dist/{dumbbell-plot-QGjFMk0X.js → dumbbell-plot-VFajQtEW.js} +3 -3
  33. package/dist/{embedding-map-D_RNxsCD.js → embedding-map-BqDEmy88.js} +6 -6
  34. package/dist/feedback.js +1 -1
  35. package/dist/{figure-frame-CF3298LZ.js → figure-frame-Dd-pOeZN.js} +3 -3
  36. package/dist/forms/dates.js +1 -1
  37. package/dist/{forms-DlKhXUlc.js → forms-Bjx7JQ30.js} +1 -1
  38. package/dist/forms.js +2 -2
  39. package/dist/{image-grid-BXsgVBnB.js → image-grid-Dpyqxgwy.js} +3 -3
  40. package/dist/index.js +1 -1
  41. package/dist/kits/evaluation.js +4 -4
  42. package/dist/kits/interpretability.js +11 -11
  43. package/dist/kits/operations.js +6 -6
  44. package/dist/kits/research.js +128 -149
  45. package/dist/kits/training.js +5 -5
  46. package/dist/layout.js +1 -1
  47. package/dist/lesson.js +3 -3
  48. package/dist/{markdown-B92daSMP.js → markdown--nfaDoR1.js} +2 -2
  49. package/dist/mdx.js +6 -6
  50. package/dist/navigation/commands.js +1 -1
  51. package/dist/{navigation-D3vnWiVv.js → navigation-Cp3p0gss.js} +1 -1
  52. package/dist/navigation.js +4 -4
  53. package/dist/packages/collections/src/table-query.d.ts +4 -3
  54. package/dist/packages/collections/src/use-collection-controls.d.ts +6 -0
  55. package/dist/packages/kits/src/research/collection-page.d.ts +3 -4
  56. package/dist/packages/layout/src/app-shell.d.ts +3 -1
  57. package/dist/packages/layout/src/index.d.ts +4 -4
  58. package/dist/packages/layout/src/page-inset.d.ts +5 -0
  59. package/dist/packages/layout/src/page-layout.d.ts +4 -9
  60. package/dist/packages/layout/src/page-toolbar.d.ts +1 -2
  61. package/dist/packages/layout/src/reading-column.d.ts +4 -0
  62. package/dist/packages/layout/src/record-page.d.ts +4 -6
  63. package/dist/packages/layout/src/sidebar.d.ts +3 -1
  64. package/dist/packages/layout/src/workbench.d.ts +2 -6
  65. package/dist/packages/navigation/src/current-page-click.d.ts +3 -0
  66. package/dist/packages/navigation/src/index.d.ts +1 -0
  67. package/dist/{param-DfOYi9wL.js → param-CwT1RvUS.js} +1 -1
  68. package/dist/{pierre-diff-DP_TXXIt.js → pierre-diff-DuvK3kLF.js} +1 -1
  69. package/dist/{plot-layout-BfXmAi71.js → plot-layout-CvkeUuG6.js} +2 -2
  70. package/dist/{plot-surface-UQgDiTVe.js → plot-surface-yy37R4vs.js} +1 -1
  71. package/dist/{reference-lines-BRHB78Wb.js → reference-lines-AMeDkYlo.js} +1 -1
  72. package/dist/{scene-DlVQupfw.js → scene-BRhI8XSy.js} +6 -6
  73. package/dist/scene.js +1 -1
  74. package/dist/{slope-chart-CjXcvoRJ.js → slope-chart-BMOCaa8R.js} +4 -4
  75. package/dist/{src-DojhQZKX.js → src-9n2M1V_y.js} +376 -399
  76. package/dist/{src-DPcnDU5H.js → src-BdyO4PgQ.js} +1 -1
  77. package/dist/{src-BYmv3_AL.js → src-BgmAkau8.js} +37 -31
  78. package/dist/{src-BdQGb362.js → src-Bns-5joF.js} +4 -4
  79. package/dist/{src-BYnmQkDq.js → src-C5SH3jjU.js} +2 -2
  80. package/dist/{src-BI1xQE7D.js → src-C_E29-DX.js} +46 -32
  81. package/dist/{src-P19zz_aO.js → src-Tu6d_Pm8.js} +535 -531
  82. package/dist/styles2.css +14 -40
  83. package/dist/{time-series-Dg3DZRGx.js → time-series-CTNVqoUQ.js} +8 -8
  84. package/dist/{timeline-C2IVroD3.js → timeline-DrsDtEIW.js} +4 -4
  85. package/dist/{token-heatmap-CZtIPU60.js → token-heatmap-DddArdH8.js} +3 -3
  86. package/dist/{token-predictions-BJ5L-Lrm.js → token-predictions-CBykmPID.js} +3 -3
  87. package/dist/{transport-D9e0H2we.js → transport-r1QgELf8.js} +4 -4
  88. package/dist/{tree-diagram-DRAJiqjW.js → tree-diagram-BIJFK4pl.js} +4 -4
  89. package/dist/{treemap-BdELCV7E.js → treemap-DgmEw_mr.js} +4 -4
  90. package/dist/{use-tween-COV8bEYL.js → use-tween-BWf44Jy4.js} +1 -1
  91. package/dist/{violin-plot-DuxqWnuD.js → violin-plot-BYJnv6sG.js} +3 -3
  92. package/dist/{waterfall-D4ewGb4u.js → waterfall-BNseqMas.js} +4 -4
  93. package/package.json +1 -1
  94. package/recipes/allocation-report.tsx +4 -4
  95. package/recipes/calendar-workspace.tsx +14 -10
  96. package/recipes/consequential-form.tsx +4 -4
  97. package/recipes/searchable-collection.tsx +69 -59
  98. package/recipes/sectioned-report.tsx +17 -18
  99. package/recipes/session-timeline.tsx +59 -0
  100. package/recipes/tabbed-workspace.tsx +7 -8
  101. package/recipes/workspace-files.tsx +94 -0
  102. package/recipes/workspace-report.tsx +130 -0
  103. package/skills/extend-elements/SKILL.md +20 -0
  104. package/skills/review-elements/SKILL.md +10 -7
  105. package/skills/upgrade-elements/references/releases.md +16 -0
  106. package/skills/use-elements/SKILL.md +6 -2
  107. package/skills/use-elements/references/collections.md +8 -2
  108. package/skills/use-elements/references/editorial-restraint.md +13 -18
  109. package/skills/use-elements/references/reports.md +4 -1
  110. package/skills/use-elements/references/workspace.md +18 -14
  111. package/dist/packages/layout/src/detail-page.d.ts +0 -9
  112. package/dist/packages/layout/src/page-content.d.ts +0 -5
@@ -1,57 +1,41 @@
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-P19zz_aO.js";
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-BYmv3_AL.js";
3
- import { m as y, p as b, s as x, t as S } from "../src-DPcnDU5H.js";
4
- import { u as C } from "../src-BYnmQkDq.js";
5
- import { D as w, _ as T, i as E, n as D } from "../src-DojhQZKX.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-Tu6d_Pm8.js";
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-BgmAkau8.js";
3
+ import { m as y, p as b, s as x, t as S } from "../src-BdyO4PgQ.js";
4
+ import { u as C } from "../src-C5SH3jjU.js";
5
+ import { D as w, _ as T, i as E, n as D } from "../src-9n2M1V_y.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-DRAJiqjW.js";
9
- import { f as M } from "../time-series-Dg3DZRGx.js";
10
- import { i as N } from "../src-BdQGb362.js";
8
+ import { a as A, t as j } from "../tree-diagram-BIJFK4pl.js";
9
+ import { f as M } from "../time-series-CTNVqoUQ.js";
10
+ import { i as N } from "../src-Bns-5joF.js";
11
11
  import "@stylexjs/stylex";
12
- import { useEffect as ee, useState as P } from "react";
12
+ import { useState as P } from "react";
13
13
  import { Fragment as F, jsx as I, jsxs as L } from "react/jsx-runtime";
14
14
  // packages/kits/src/research/collection-page.tsx
15
- var R = /* @__PURE__ */ new Set([
16
- "INPUT",
17
- "TEXTAREA",
18
- "SELECT"
19
- ]), te = 8;
20
- function ne(e) {
21
- return e instanceof HTMLElement ? e.isContentEditable || R.has(e.tagName) : !1;
22
- }
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), B = m === void 0 || m.length <= 1 ? null : /* @__PURE__ */ I(C.Root, {
15
+ var ee = 8;
16
+ function R({ 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 = ee }) {
17
+ let O = T === "loading", k = T === "failed", A = T === "ready", j = m?.[0]?.id ?? "", [M, N] = P(() => h ?? j), F = m === void 0 || m.length === 0 ? void 0 : m.find((e) => e.id === M) ?? m[0], R = F === void 0 ? a : a.filter(F.match), z = m === void 0 || m.length <= 1 ? null : /* @__PURE__ */ I(C.Root, {
25
18
  "aria-label": `${n} scope`,
26
- value: R?.id ?? M,
27
- onValueChange: (e) => F(e),
19
+ value: F?.id ?? j,
20
+ onValueChange: (e) => N(e),
28
21
  children: m.map((e) => /* @__PURE__ */ I(C.Item, {
29
22
  value: e.id,
30
- children: k ? e.label : `${e.label} (${a.filter(e.match).length})`
23
+ children: O ? e.label : `${e.label} (${a.filter(e.match).length})`
31
24
  }, e.id))
32
- }), V = r(z, {
25
+ }), B = r(R, {
33
26
  mode: "local",
34
27
  search: d,
35
28
  filters: f
36
- }), { actions: H, chips: U, onKeyDown: W, openSearch: G } = t({
29
+ }), { actions: V, chips: te, findRegion: H } = t({
37
30
  label: `${n} controls`,
38
- ...V.search !== void 0 && { search: V.search },
39
- filters: V.filters,
40
- isPlaceholder: k,
41
- isReady: j
42
- }), K = O && j && V.search !== void 0;
43
- ee(() => {
44
- if (!K) return;
45
- function e(e) {
46
- let t = e.key === "/" && !ne(e.target), n = e.key.toLowerCase() === "f" && (e.metaKey || e.ctrlKey);
47
- (t || n) && (e.preventDefault(), G());
48
- }
49
- return globalThis.addEventListener("keydown", e), () => globalThis.removeEventListener("keydown", e);
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,
31
+ ...B.search !== void 0 && { search: B.search },
32
+ filters: B.filters,
33
+ isPlaceholder: O,
34
+ isReady: A
35
+ }), U = p === void 0 ? B.rows : p(B.rows), W = i ?? n, G = typeof d == "function", K = !("reason" in f), q = {
36
+ caption: W,
53
37
  hideCaption: !0,
54
- rows: re,
38
+ rows: U,
55
39
  getRowId: o,
56
40
  query: { mode: "frame" },
57
41
  ...g !== void 0 && { rowAction: g },
@@ -59,21 +43,21 @@ function z({ title: n, caption: i, rows: a, getRowId: o, columns: c, sort: l, on
59
43
  ...v !== void 0 && { rowSizing: v },
60
44
  empty: b,
61
45
  ...x !== void 0 && { filteredEmpty: x }
62
- }, Z = u === void 0 ? /* @__PURE__ */ I(s, {
63
- ...X,
46
+ }, J = u === void 0 ? /* @__PURE__ */ I(s, {
47
+ ...q,
64
48
  columns: c
65
49
  }) : /* @__PURE__ */ I(s, {
66
- ...X,
50
+ ...q,
67
51
  columns: c,
68
52
  sort: l,
69
53
  onSortChange: u
70
- }), Q = /* @__PURE__ */ I(e, {
71
- caption: q,
54
+ }), Y = /* @__PURE__ */ I(e, {
55
+ caption: W,
72
56
  hideCaption: !0,
73
57
  columns: c,
74
58
  rows: D,
75
59
  ...v !== void 0 && { rowSizing: v }
76
- }), ie = E ?? /* @__PURE__ */ I(w, { children: /* @__PURE__ */ L(y, {
60
+ }), X = E ?? /* @__PURE__ */ I(w, { children: /* @__PURE__ */ L(y, {
77
61
  hasError: !0,
78
62
  children: [
79
63
  "Could not load ",
@@ -82,72 +66,67 @@ function z({ title: n, caption: i, rows: a, getRowId: o, columns: c, sort: l, on
82
66
  ]
83
67
  }) });
84
68
  return {
85
- scopeControl: B,
86
- controlActions: H,
87
- chips: U,
88
- onKeyDown: W,
89
- content: k ? /* @__PURE__ */ I(S, {
69
+ scopeControl: z,
70
+ controlActions: V,
71
+ chips: te,
72
+ findRegion: H,
73
+ content: O ? /* @__PURE__ */ I(S, {
90
74
  state: "pending",
91
75
  label: n,
92
- placeholder: Q
76
+ placeholder: Y
93
77
  }) : /* @__PURE__ */ I(S, {
94
- state: A ? "failed" : "ready",
78
+ state: k ? "failed" : "ready",
95
79
  label: n,
96
- placeholder: Q,
97
- children: A ? ie : Z
80
+ placeholder: Y,
81
+ children: k ? X : J
98
82
  }),
99
83
  frameProps: {
100
- search: J ? !0 : d,
101
- filters: Y ? !0 : f,
102
- isFiltered: V.isFiltered
84
+ search: G ? !0 : d,
85
+ filters: K ? !0 : f,
86
+ isFiltered: B.isFiltered
103
87
  }
104
88
  };
105
89
  }
106
- function B(e) {
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
- ...e,
109
- hasGlobalShortcuts: !0
110
- }), h = a != null, g = /* @__PURE__ */ L(F, { children: [
111
- l,
112
- n === void 0 && u,
90
+ function z(e) {
91
+ let { title: t, navigation: n, actions: r, notice: a, inspector: o } = e, { scopeControl: s, controlActions: l, chips: u, findRegion: d, content: f, frameProps: p } = R(e), m = a != null, h = /* @__PURE__ */ L(F, { children: [
92
+ s,
93
+ n === void 0 && l,
113
94
  r
114
- ] }), _ = /* @__PURE__ */ I(D, {
115
- header: /* @__PURE__ */ L(F, { children: [h && /* @__PURE__ */ I(w, { children: a }), d !== !1 && /* @__PURE__ */ I(c, {
95
+ ] }), g = /* @__PURE__ */ I(D, {
96
+ header: /* @__PURE__ */ L(F, { children: [m && /* @__PURE__ */ I(w, { children: a }), u !== !1 && /* @__PURE__ */ I(c, {
116
97
  label: "Applied filters",
117
- children: d
98
+ children: u
118
99
  })] }),
119
- children: p
100
+ children: f
120
101
  });
121
102
  return /* @__PURE__ */ I(i, {
122
- ...m,
103
+ ...p,
123
104
  children: /* @__PURE__ */ I("section", {
105
+ ...d,
124
106
  className: "x12lumcd xeuugli x2lwn1j x78zum5 xdt5ytf",
125
- onKeyDown: f,
126
107
  children: /* @__PURE__ */ I(T, {
127
108
  title: t,
128
- actions: g,
129
- navigation: n,
130
- children: o === void 0 ? _ : /* @__PURE__ */ I(E, {
131
- isResizable: !0,
132
- inspectorInitialPercent: s,
109
+ actions: h,
110
+ navigation: n === void 0 ? void 0 : {
111
+ ...n,
112
+ actions: /* @__PURE__ */ L(F, { children: [l, n.actions] })
113
+ },
114
+ children: /* @__PURE__ */ I(E, {
133
115
  inspector: o,
134
- children: _
116
+ children: g
135
117
  })
136
118
  })
137
119
  })
138
120
  });
139
121
  }
140
- function V(e) {
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
- ...e,
143
- hasGlobalShortcuts: !1
144
- }), h = o != null;
122
+ function B(e) {
123
+ let { id: t, title: n, meta: r, actions: a, notice: o } = e, { scopeControl: s, controlActions: l, chips: u, findRegion: d, content: p, frameProps: m } = R(e), h = o != null;
145
124
  return /* @__PURE__ */ I(i, {
146
125
  ...m,
147
126
  children: /* @__PURE__ */ L("section", {
127
+ ...d,
148
128
  "aria-label": n,
149
129
  className: "xeuugli x78zum5 xdt5ytf",
150
- onKeyDown: d,
151
130
  children: [
152
131
  /* @__PURE__ */ I(f, {
153
132
  ...t !== void 0 && { id: t },
@@ -170,7 +149,7 @@ function V(e) {
170
149
  });
171
150
  }
172
151
  // packages/kits/src/research/finding-card.tsx
173
- var H = {
152
+ var V = {
174
153
  limitation: "Limitation",
175
154
  details: "Full notes & evidence",
176
155
  sources: "Sources",
@@ -180,18 +159,18 @@ var H = {
180
159
  falsified: "Falsified",
181
160
  open: "Open"
182
161
  }
183
- }, U = {
162
+ }, te = {
184
163
  supported: "positive",
185
164
  mixed: "warning",
186
165
  falsified: "negative",
187
166
  open: "neutral"
188
167
  };
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 }) {
168
+ function H({ 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
169
  let S = {
191
- ...H,
170
+ ...V,
192
171
  ...x,
193
172
  statusLabels: {
194
- ...H.statusLabels,
173
+ ...V.statusLabels,
195
174
  ...x?.statusLabels
196
175
  }
197
176
  };
@@ -199,7 +178,7 @@ function W({ title: e, claim: t, locale: n, status: r, index: i, limitation: o,
199
178
  title: e,
200
179
  index: i,
201
180
  meta: /* @__PURE__ */ L(p, { children: [/* @__PURE__ */ I(_, {
202
- tone: U[r],
181
+ tone: te[r],
203
182
  children: S.statusLabels[r]
204
183
  }), b] }),
205
184
  footer: u !== void 0 || f !== void 0 || c.length > 0 ? /* @__PURE__ */ L(p, {
@@ -261,19 +240,19 @@ function W({ title: e, claim: t, locale: n, status: r, index: i, limitation: o,
261
240
  });
262
241
  }
263
242
  // packages/kits/src/research/lineage-graph.tsx
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 = {
243
+ var U = 152, W = 56, G = 32, K = 12, q = 16, J = 32, Y = 16, X = 16, Z = 12, ne = 640, Q = 240, re = 64, $ = "General", ie = {
265
244
  baseline: "series5",
266
245
  milestone: "positive",
267
246
  branch: "series1",
268
247
  merge: "series3",
269
248
  killed: "negative"
270
- }, ce = {
249
+ }, ae = {
271
250
  baseline: "neutral",
272
251
  milestone: "positive",
273
252
  branch: "neutral",
274
253
  merge: "warning",
275
254
  killed: "negative"
276
- }, le = {
255
+ }, oe = {
277
256
  frontier: "Frontier",
278
257
  all: "All",
279
258
  metric: "Score",
@@ -290,7 +269,7 @@ var G = 152, K = 56, re = 32, q = 12, J = 16, Y = 32, X = 16, Z = 16, Q = 12, ie
290
269
  killed: "Killed"
291
270
  }
292
271
  };
293
- function ue(e, t, n) {
272
+ function se(e, t, n) {
294
273
  let r = t.get(e.id) ?? 0;
295
274
  for (let i of e.parentIds) if (n.has(i)) {
296
275
  let e = (t.get(i) ?? 0) + 1;
@@ -298,13 +277,13 @@ function ue(e, t, n) {
298
277
  }
299
278
  return r;
300
279
  }
301
- function de(e) {
280
+ function ce(e) {
302
281
  let t = /* @__PURE__ */ new Map(), n = new Set(e.map((e) => e.id));
303
282
  for (let n of e) t.set(n.id, 0);
304
- for (let r = 0; r < oe; r += 1) {
283
+ for (let r = 0; r < re; r += 1) {
305
284
  let r = [];
306
285
  for (let i of e) {
307
- let e = ue(i, t, n);
286
+ let e = se(i, t, n);
308
287
  e !== t.get(i.id) && r.push([i.id, e]);
309
288
  }
310
289
  if (r.length === 0) break;
@@ -312,7 +291,7 @@ function de(e) {
312
291
  }
313
292
  return t;
314
293
  }
315
- function fe(e) {
294
+ function le(e) {
316
295
  let t = /* @__PURE__ */ new Set(), n = new Map(e.map((e) => [e.id, e]));
317
296
  function r(e) {
318
297
  if (t.has(e)) return;
@@ -323,7 +302,7 @@ function fe(e) {
323
302
  for (let t of e) t.kind !== "killed" && r(t.id);
324
303
  return e.filter((e) => t.has(e.id));
325
304
  }
326
- function pe({ node: e, locale: t, valueFormat: n, deltaFormat: r }) {
305
+ function ue({ node: e, locale: t, valueFormat: n, deltaFormat: r }) {
327
306
  let i = [];
328
307
  if (e.metric !== null && e.metric !== void 0 && i.push(n === void 0 ? String(e.metric) : O({
329
308
  value: e.metric,
@@ -339,34 +318,34 @@ function pe({ node: e, locale: t, valueFormat: n, deltaFormat: r }) {
339
318
  }
340
319
  return e.caption === void 0 ? i.length > 0 ? i.join(" · ") : e.summary : e.caption;
341
320
  }
342
- function me(e) {
343
- let t = de(e), n = /* @__PURE__ */ new Map();
321
+ function de(e) {
322
+ let t = ce(e), n = /* @__PURE__ */ new Map();
344
323
  for (let r of e) n.set(r.id, r.column ?? t.get(r.id) ?? 0);
345
324
  return n;
346
325
  }
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 = [];
326
+ function fe({ nodes: e, locale: t, valueFormat: n, deltaFormat: r }) {
327
+ let i = de(e), a = Math.max(0, ...Array.from(i.values())), o = e.some((e) => e.lane !== void 0), s = [];
349
328
  if (o) for (let t of e) {
350
329
  let e = t.lane ?? $;
351
330
  s.includes(e) || s.push(e);
352
331
  }
353
332
  else s.push($);
354
- let c = (a + 1) * G + a * re, l = [], u = [], d = J;
333
+ let c = (a + 1) * U + a * G, l = [], u = [], d = q;
355
334
  for (let a of s) {
356
335
  let s = o ? e.filter((e) => (e.lane ?? $) === a) : e, f = /* @__PURE__ */ new Map();
357
336
  for (let e of s) {
358
337
  let t = i.get(e.id) ?? 0, n = f.get(t) ?? [];
359
338
  n.push(e), f.set(t, n);
360
339
  }
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;
340
+ let p = Math.max(1, ...Array.from(f.values(), (e) => e.length)), m = p * W + (p - 1) * K, h = d, g = o ? h + J : h, _ = o ? J + m + Y : m;
362
341
  for (let [e, i] of f.entries()) {
363
- let a = J + (o ? Z : 0) + e * 184;
342
+ let a = q + (o ? X : 0) + e * 184;
364
343
  for (let [e, o] of i.entries()) {
365
344
  let i = g + e * 68;
366
345
  l.push({
367
346
  id: o.id,
368
347
  label: o.label,
369
- description: pe({
348
+ description: ue({
370
349
  node: o,
371
350
  locale: t,
372
351
  valueFormat: n,
@@ -374,21 +353,21 @@ function he({ nodes: e, locale: t, valueFormat: n, deltaFormat: r }) {
374
353
  }),
375
354
  x: a,
376
355
  y: i,
377
- width: G,
378
- height: K,
379
- tone: se[o.kind]
356
+ width: U,
357
+ height: W,
358
+ tone: ie[o.kind]
380
359
  });
381
360
  }
382
361
  }
383
362
  o && u.push({
384
363
  id: `lane:${a}`,
385
364
  label: a,
386
- x: J,
365
+ x: q,
387
366
  y: h,
388
367
  width: c + 32,
389
368
  height: _,
390
369
  nodeIds: s.map((e) => e.id)
391
- }), d = h + _ + (o ? Q : q);
370
+ }), d = h + _ + (o ? Z : K);
392
371
  }
393
372
  let f = new Set(e.map((e) => e.id)), p = [];
394
373
  for (let t of e) for (let e of t.parentIds) f.has(e) && p.push({
@@ -403,10 +382,10 @@ function he({ nodes: e, locale: t, valueFormat: n, deltaFormat: r }) {
403
382
  relationEdges: p,
404
383
  relationGroups: u,
405
384
  width: c + 32 + (o ? 32 : 0),
406
- height: Math.max(ae, d + J - (o ? Q : q))
385
+ height: Math.max(Q, d + q - (o ? Z : K))
407
386
  };
408
387
  }
409
- function ge({ node: e, labels: t, detailItems: n }) {
388
+ function pe({ node: e, labels: t, detailItems: n }) {
410
389
  return /* @__PURE__ */ L(d, {
411
390
  isCompact: !0,
412
391
  children: [
@@ -417,7 +396,7 @@ function ge({ node: e, labels: t, detailItems: n }) {
417
396
  tone: "neutral",
418
397
  children: e.timestamp
419
398
  })] }), /* @__PURE__ */ I(_, {
420
- tone: ce[e.kind],
399
+ tone: ae[e.kind],
421
400
  children: t.kinds[e.kind]
422
401
  })]
423
402
  }),
@@ -430,12 +409,12 @@ function ge({ node: e, labels: t, detailItems: n }) {
430
409
  ]
431
410
  });
432
411
  }
433
- function _e({ nodes: e, valueLabel: t, valueFormat: n, deltaFormat: r, defaultScope: i = "frontier", selected: a, onSelectedChange: o, labels: s, actions: c, ...l }) {
412
+ function me({ nodes: e, valueLabel: t, valueFormat: n, deltaFormat: r, defaultScope: i = "frontier", selected: a, onSelectedChange: o, labels: s, actions: c, ...l }) {
434
413
  let [u, f] = P(i), [p, m] = P(null), h = {
435
- ...le,
414
+ ...oe,
436
415
  ...s,
437
416
  kinds: {
438
- ...le.kinds,
417
+ ...oe.kinds,
439
418
  ...s?.kinds
440
419
  }
441
420
  };
@@ -443,8 +422,8 @@ function _e({ nodes: e, valueLabel: t, valueFormat: n, deltaFormat: r, defaultSc
443
422
  ...l,
444
423
  nodes: [],
445
424
  edges: [],
446
- width: ie,
447
- height: ae
425
+ width: ne,
426
+ height: Q
448
427
  });
449
428
  if (e.length === 0) return /* @__PURE__ */ I(b, {
450
429
  title: l.title,
@@ -454,11 +433,11 @@ function _e({ nodes: e, valueLabel: t, valueFormat: n, deltaFormat: r, defaultSc
454
433
  hasError: !0,
455
434
  children: "Lineage nodes must have unique identifiers."
456
435
  });
457
- let g = fe(e), _ = g.length < e.length, v = u === "frontier" && _ ? g : e, x = a === void 0 ? p : a;
436
+ let g = le(e), _ = g.length < e.length, v = u === "frontier" && _ ? g : e, x = a === void 0 ? p : a;
458
437
  function S(e, t) {
459
438
  a === void 0 && m(e), o?.(e, t);
460
439
  }
461
- let w = he({
440
+ let w = fe({
462
441
  nodes: v,
463
442
  locale: l.locale,
464
443
  valueFormat: n,
@@ -514,26 +493,26 @@ function _e({ nodes: e, valueLabel: t, valueFormat: n, deltaFormat: r, defaultSc
514
493
  height: w.height,
515
494
  selected: x,
516
495
  onSelectedChange: S
517
- }), T === void 0 ? null : /* @__PURE__ */ I(ge, {
496
+ }), T === void 0 ? null : /* @__PURE__ */ I(pe, {
518
497
  node: T,
519
498
  labels: h,
520
499
  detailItems: k
521
500
  })] });
522
501
  }
523
502
  // packages/kits/src/research/milestone-path.tsx
524
- var ve = {
503
+ var he = {
525
504
  baseline: "series5",
526
505
  result: "series1",
527
506
  breakthrough: "positive",
528
507
  counterexample: "negative",
529
508
  decision: "series3"
530
- }, ye = {
509
+ }, ge = {
531
510
  baseline: "neutral",
532
511
  result: "neutral",
533
512
  breakthrough: "positive",
534
513
  counterexample: "negative",
535
514
  decision: "warning"
536
- }, be = {
515
+ }, _e = {
537
516
  metric: "Score",
538
517
  delta: "Change",
539
518
  limitation: "Limitation",
@@ -547,12 +526,12 @@ var ve = {
547
526
  decision: "Decision"
548
527
  }
549
528
  };
550
- function xe({ milestones: e, valueLabel: t, valueFormat: n, deltaFormat: r, selected: i, onSelectedChange: a, labels: s, ...c }) {
529
+ function ve({ milestones: e, valueLabel: t, valueFormat: n, deltaFormat: r, selected: i, onSelectedChange: a, labels: s, ...c }) {
551
530
  let f = {
552
- ...be,
531
+ ..._e,
553
532
  ...s,
554
533
  kinds: {
555
- ...be.kinds,
534
+ ..._e.kinds,
556
535
  ...s?.kinds
557
536
  }
558
537
  };
@@ -582,11 +561,11 @@ function xe({ milestones: e, valueLabel: t, valueFormat: n, deltaFormat: r, sele
582
561
  label: e.label,
583
562
  detail: e.wave === void 0 ? f.kinds[e.kind] : `${e.wave} · ${f.kinds[e.kind]}`,
584
563
  value: e.metric ?? null,
585
- tone: ve[e.kind]
564
+ tone: he[e.kind]
586
565
  })), h = Array.from(new Set(e.map((e) => e.kind))).map((e) => ({
587
566
  id: e,
588
567
  label: f.kinds[e],
589
- tone: ve[e]
568
+ tone: he[e]
590
569
  })), g = e.find((e) => e.id === i) ?? null;
591
570
  return /* @__PURE__ */ L(d, { children: [/* @__PURE__ */ I(j, {
592
571
  ...c,
@@ -608,7 +587,7 @@ function xe({ milestones: e, valueLabel: t, valueFormat: n, deltaFormat: r, sele
608
587
  tone: "neutral",
609
588
  children: g.wave
610
589
  }), /* @__PURE__ */ I(l, { children: /* @__PURE__ */ I("strong", { children: g.label }) })] }), /* @__PURE__ */ I(_, {
611
- tone: ye[g.kind],
590
+ tone: ge[g.kind],
612
591
  children: f.kinds[g.kind]
613
592
  })]
614
593
  }),
@@ -646,7 +625,7 @@ function xe({ milestones: e, valueLabel: t, valueFormat: n, deltaFormat: r, sele
646
625
  })] });
647
626
  }
648
627
  // packages/kits/src/research/specimen-diff.tsx
649
- var Se = {
628
+ var ye = {
650
629
  breakdownTitle: "Paired outcome flips",
651
630
  all: "All",
652
631
  gained: "Gained",
@@ -659,23 +638,23 @@ var Se = {
659
638
  candidate: "Candidate",
660
639
  outcome: "Outcome",
661
640
  empty: "No paired specimens available for these two runs."
662
- }, Ce = {
641
+ }, be = {
663
642
  gained: "positive",
664
643
  regressed: "negative",
665
644
  both_pass: "neutral",
666
645
  both_fail: "neutral"
667
- }, we = /* @__PURE__ */ new Set([
646
+ }, xe = /* @__PURE__ */ new Set([
668
647
  "gained",
669
648
  "regressed",
670
649
  "both_pass",
671
650
  "both_fail"
672
651
  ]);
673
- function Te(e) {
674
- return e !== null && we.has(e);
652
+ function Se(e) {
653
+ return e !== null && xe.has(e);
675
654
  }
676
- function Ee({ rows: e, baselineLabel: t, candidateLabel: r, filter: i, onFilterChange: a, onSelectRow: o, labels: c, ...u }) {
655
+ function Ce({ rows: e, baselineLabel: t, candidateLabel: r, filter: i, onFilterChange: a, onSelectRow: o, labels: c, ...u }) {
677
656
  let f = {
678
- ...Se,
657
+ ...ye,
679
658
  ...c
680
659
  };
681
660
  if (e.length === 0) return /* @__PURE__ */ I(b, {
@@ -742,7 +721,7 @@ function Ee({ rows: e, baselineLabel: t, candidateLabel: r, filter: i, onFilterC
742
721
  label: f.outcome,
743
722
  role: "status",
744
723
  cell: (e) => /* @__PURE__ */ I(_, {
745
- tone: Ce[e.outcome],
724
+ tone: be[e.outcome],
746
725
  children: h[e.outcome]
747
726
  })
748
727
  }
@@ -786,7 +765,7 @@ function Ee({ rows: e, baselineLabel: t, candidateLabel: r, filter: i, onFilterC
786
765
  ],
787
766
  selected: i === "all" ? null : i,
788
767
  onSelectedChange: (e) => {
789
- Te(e) ? a(e === i ? "all" : e) : a("all");
768
+ Se(e) ? a(e === i ? "all" : e) : a("all");
790
769
  }
791
770
  }),
792
771
  /* @__PURE__ */ L(C.Root, {
@@ -869,7 +848,7 @@ function Ee({ rows: e, baselineLabel: t, candidateLabel: r, filter: i, onFilterC
869
848
  });
870
849
  }
871
850
  // packages/kits/src/research/work-heartbeat.tsx
872
- var De = {
851
+ var we = {
873
852
  title: "Active work reports",
874
853
  empty: "No active or recent work reports.",
875
854
  nextCheckpoint: "Next checkpoint",
@@ -880,22 +859,22 @@ var De = {
880
859
  overdue: "Update overdue",
881
860
  stopped: "Stopped"
882
861
  }
883
- }, Oe = {
862
+ }, Te = {
884
863
  running: "positive",
885
864
  completed: "neutral",
886
865
  blocked: "negative",
887
866
  overdue: "warning",
888
867
  stopped: "neutral"
889
868
  };
890
- function ke(e) {
869
+ function Ee(e) {
891
870
  return e === void 0 ? null : Number.isFinite(e.completed) && Number.isFinite(e.total) && e.total > 0 ? e : null;
892
871
  }
893
- function Ae({ reports: e, locale: t, labels: n }) {
872
+ function De({ reports: e, locale: t, labels: n }) {
894
873
  let r = {
895
- ...De,
874
+ ...we,
896
875
  ...n,
897
876
  states: {
898
- ...De.states,
877
+ ...we.states,
899
878
  ...n?.states
900
879
  }
901
880
  };
@@ -909,14 +888,14 @@ function Ae({ reports: e, locale: t, labels: n }) {
909
888
  }) : /* @__PURE__ */ I("ul", {
910
889
  className: "xe8uvvx x1ghz6dp x1717udv x178xt8z x13fuv20 xhjagg4",
911
890
  children: e.map((e) => {
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;
891
+ let n = Ee(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;
913
892
  return /* @__PURE__ */ L("li", {
914
893
  className: "x78zum5 xdt5ytf x1hnptsi x1qokhjc xso031l x1q0q8m5 x1qndepd",
915
894
  children: [
916
895
  /* @__PURE__ */ L(p, {
917
896
  shouldSpaceBetween: !0,
918
897
  children: [/* @__PURE__ */ I(l, { children: /* @__PURE__ */ I("strong", { children: e.title }) }), /* @__PURE__ */ L(p, { children: [/* @__PURE__ */ I(m, {
919
- tone: Oe[e.state],
898
+ tone: Te[e.state],
920
899
  children: r.states[e.state]
921
900
  }), /* @__PURE__ */ I(a, {
922
901
  dateTime: e.observedAt,
@@ -988,4 +967,4 @@ function Ae({ reports: e, locale: t, labels: n }) {
988
967
  })
989
968
  });
990
969
  }
991
- export { B as CollectionPage, V as CollectionSection, W as FindingCard, _e as LineageGraph, xe as MilestonePath, Ee as SpecimenDiff, Ae as WorkHeartbeat };
970
+ export { z as CollectionPage, B as CollectionSection, H as FindingCard, me as LineageGraph, ve as MilestonePath, Ce as SpecimenDiff, De as WorkHeartbeat };
@@ -1,12 +1,12 @@
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-CjXcvoRJ.js";
4
- import { m as a } from "../src-DPcnDU5H.js";
5
- import { T as o } from "../plot-layout-BfXmAi71.js";
3
+ import { r, s as i } from "../slope-chart-BMOCaa8R.js";
4
+ import { m as a } from "../src-BdyO4PgQ.js";
5
+ import { T as o } from "../plot-layout-CvkeUuG6.js";
6
6
  import { o as s, t as c } from "../cells-X8SVrZBc.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-P19zz_aO.js";
9
- import { c as p, o as m } from "../src-BYmv3_AL.js";
8
+ import { d as u, g as d, u as f } from "../src-Tu6d_Pm8.js";
9
+ import { c as p, o as m } from "../src-BgmAkau8.js";
10
10
  import "@stylexjs/stylex";
11
11
  import { useState as h } from "react";
12
12
  import { jsx as g, jsxs as _ } from "react/jsx-runtime";
package/dist/layout.js CHANGED
@@ -1 +1 @@
1
- export { d as AppShell, n as CollectionLayout, u as DetailPage, h as DevToolsBar, l as FigureGrid, c as FocusPage, b as Navigation, x as NavigationItem, S as NavigationLink, p as NavigationRail, f as NavigationRailMenu, m as NavigationRailPlaceholder, C as NavigationSection, D as PageContent, _ as PageLayout, v as PageSection, t as RecordPage, s as Resizable, w as SidebarBrand, T as SidebarFooter, E as SidebarLabel, y as ToolbarAction, r as ViewStack, i as Workbench, a as WorkbenchFooter, o as WorkbenchScroll, g as useDevToolsBar } from "./src-DojhQZKX.js";
1
+ export { d as AppShell, n as CollectionLayout, h as DevToolsBar, l as FigureGrid, c as FocusPage, b as Navigation, x as NavigationItem, S as NavigationLink, p as NavigationRail, f as NavigationRailMenu, m as NavigationRailPlaceholder, C as NavigationSection, D as PageInset, _ as PageLayout, v as PageSection, u as ReadingColumn, t as RecordPage, s as Resizable, w as SidebarBrand, T as SidebarFooter, E as SidebarLabel, y as ToolbarAction, r as ViewStack, i as Workbench, a as WorkbenchFooter, o as WorkbenchScroll, g as useDevToolsBar } from "./src-9n2M1V_y.js";
package/dist/lesson.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { n as e, t } from "./clock-DSm5lkNE.js";
2
- import { _ as n, g as r, h as i, i as a, l as o, n as s, t as c, u as l } from "./param-DfOYi9wL.js";
3
- import { t as u } from "./use-tween-COV8bEYL.js";
4
- import { a as d, c as f, d as p, i as m, l as h, n as g, o as _, r as v, s as y, t as b, u as x } from "./transport-D9e0H2we.js";
2
+ import { _ as n, g as r, h as i, i as a, l as o, n as s, t as c, u as l } from "./param-CwT1RvUS.js";
3
+ import { t as u } from "./use-tween-BWf44Jy4.js";
4
+ import { a as d, c as f, d as p, i as m, l as h, n as g, o as _, r as v, s as y, t as b, u as x } from "./transport-r1QgELf8.js";
5
5
  export { a as BoundValue, h as Lesson, i as LessonLocale, c as Param, m as ParamChoice, d as ParamSlider, _ as ParamToggle, g as Playback, b as Transport, s as Value, n as createTween, o as defineLesson, t as isMotionReduced, l as lessonGraph, e as onFrame, x as playbackPaces, p as playbackRuns, y as useLesson, f as useLessonContext, r as useLessonLocale, v as usePlayback, u as useTween };