@mechane-ai/elements 0.47.0 → 0.49.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 (250) hide show
  1. package/README.md +288 -5
  2. package/bin/mechane-elements-catalog.mjs +104 -12
  3. package/dist/ai.js +5 -5
  4. package/dist/article-yyNPg6VU.js +1904 -0
  5. package/dist/article.js +1 -0
  6. package/dist/catalog.json +1691 -163
  7. package/dist/{categorical-values-DdfGIowV.js → categorical-values-DCznViFp.js} +1 -1
  8. package/dist/{cells--Bd1fQFR.js → cells-CNZE4us2.js} +2 -2
  9. package/dist/charts/cartesian.js +1 -1
  10. package/dist/charts/cells.js +1 -1
  11. package/dist/charts/comparison.js +1 -1
  12. package/dist/charts/distribution.js +1 -1
  13. package/dist/charts/figure.js +12 -12
  14. package/dist/charts/graph.js +1 -1
  15. package/dist/charts/hierarchy.js +1 -1
  16. package/dist/charts/image.js +1 -1
  17. package/dist/charts/matrix.js +3 -2
  18. package/dist/charts/plot.js +6 -6
  19. package/dist/charts/relationship.js +1 -1
  20. package/dist/charts/text.js +1 -1
  21. package/dist/charts/timeline.js +1 -1
  22. package/dist/charts/trend.js +1 -1
  23. package/dist/charts.js +2 -2
  24. package/dist/clock-DSm5lkNE.js +16 -0
  25. package/dist/{code-block-DioAM2bZ.js → code-block-BZsY2sh3.js} +1 -1
  26. package/dist/collections.js +1 -1
  27. package/dist/content/code.js +1 -1
  28. package/dist/content/diff.js +3 -3
  29. package/dist/content/link.js +1 -1
  30. package/dist/content/markdown.js +2 -2
  31. package/dist/content/tree.js +1 -1
  32. package/dist/{content-link-NWuHp5rC.js → content-link-PnpcnTCx.js} +1 -1
  33. package/dist/content.js +1 -1
  34. package/dist/{dates-Cww8UR_n.js → dates-ckJdYF7t.js} +1 -1
  35. package/dist/describe-lesson-BmREzDpt.js +175 -0
  36. package/dist/{dumbbell-plot-B2ZTgQaI.js → dumbbell-plot-CMv9llfd.js} +9 -7
  37. package/dist/{embedding-map-CGM_k6lC.js → embedding-map-DC-lgzCq.js} +8 -8
  38. package/dist/feedback.js +1 -1
  39. package/dist/{figure-frame-wRkIEAwe.js → figure-frame-BjFzbl3m.js} +3 -3
  40. package/dist/forms/dates.js +1 -1
  41. package/dist/forms.js +3 -3
  42. package/dist/{image-grid-CVA4SOy_.js → image-grid-DHqtj_zs.js} +4 -4
  43. package/dist/index.js +1 -1
  44. package/dist/kits/evaluation.js +5 -5
  45. package/dist/kits/interpretability.js +320 -302
  46. package/dist/kits/operations.js +6 -6
  47. package/dist/kits/research.js +558 -0
  48. package/dist/kits/training.js +6 -6
  49. package/dist/layout.js +205 -110
  50. package/dist/lesson/agent.js +811 -0
  51. package/dist/lesson/spec.js +661 -0
  52. package/dist/lesson.js +5 -0
  53. package/dist/mdx.js +227 -0
  54. package/dist/navigation.js +2 -2
  55. package/dist/packages/charts/src/cartesian/index.d.ts +1 -1
  56. package/dist/packages/charts/src/cartesian/scatter-plot.d.ts +18 -0
  57. package/dist/packages/charts/src/chart-theme.d.ts +1 -1
  58. package/dist/packages/charts/src/matrix/index.d.ts +1 -0
  59. package/dist/packages/charts/src/plot/plot-marks.d.ts +7 -3
  60. package/dist/packages/charts/src/plot/plot-surface.d.ts +3 -1
  61. package/dist/packages/collections/src/index.d.ts +1 -1
  62. package/dist/packages/collections/src/metrics.d.ts +9 -1
  63. package/dist/packages/content/src/index.d.ts +2 -0
  64. package/dist/packages/content/src/text-match.d.ts +22 -0
  65. package/dist/packages/core/src/index.d.ts +1 -0
  66. package/dist/packages/core/src/surfaces.d.ts +12 -2
  67. package/dist/packages/forms/src/index.d.ts +2 -0
  68. package/dist/packages/forms/src/token-input.d.ts +24 -0
  69. package/dist/packages/kits/src/interpretability/index.d.ts +1 -1
  70. package/dist/packages/kits/src/interpretability/logit-lens.d.ts +10 -1
  71. package/dist/packages/kits/src/research/finding-card.d.ts +43 -0
  72. package/dist/packages/kits/src/research/index.d.ts +8 -0
  73. package/dist/packages/kits/src/research/milestone-path.d.ts +36 -0
  74. package/dist/packages/kits/src/research/specimen-diff.d.ts +41 -0
  75. package/dist/packages/kits/src/research/work-heartbeat.d.ts +34 -0
  76. package/dist/packages/layout/src/figure-grid.d.ts +8 -0
  77. package/dist/packages/layout/src/index.d.ts +4 -1
  78. package/dist/packages/layout/src/sidebar.d.ts +7 -0
  79. package/dist/packages/layout/src/workbench.d.ts +4 -1
  80. package/dist/packages/teaching/src/agent/index.d.ts +11 -0
  81. package/dist/packages/teaching/src/agent/learner-trace.d.ts +84 -0
  82. package/dist/packages/teaching/src/agent/lesson-bridge.d.ts +59 -0
  83. package/dist/packages/teaching/src/agent/lesson-tour.d.ts +63 -0
  84. package/dist/packages/teaching/src/agent/tutor-tools.d.ts +86 -0
  85. package/dist/packages/teaching/src/article/article-checks.d.ts +9 -0
  86. package/dist/packages/teaching/src/article/article-context.d.ts +49 -0
  87. package/dist/packages/teaching/src/article/article-error.d.ts +12 -0
  88. package/dist/packages/teaching/src/article/article-labels.d.ts +54 -0
  89. package/dist/packages/teaching/src/article/article-layout.stylex.d.ts +14 -0
  90. package/dist/packages/teaching/src/article/article-outline.d.ts +9 -0
  91. package/dist/packages/teaching/src/article/article.d.ts +42 -0
  92. package/dist/packages/teaching/src/article/beat-steps.d.ts +18 -0
  93. package/dist/packages/teaching/src/article/beat.d.ts +16 -0
  94. package/dist/packages/teaching/src/article/challenge.d.ts +29 -0
  95. package/dist/packages/teaching/src/article/exercise-styles.d.ts +76 -0
  96. package/dist/packages/teaching/src/article/figure.d.ts +51 -0
  97. package/dist/packages/teaching/src/article/index.d.ts +31 -0
  98. package/dist/packages/teaching/src/article/lesson-values.d.ts +5 -0
  99. package/dist/packages/teaching/src/article/notes.d.ts +36 -0
  100. package/dist/packages/teaching/src/article/outline-types.d.ts +73 -0
  101. package/dist/packages/teaching/src/article/predict.d.ts +58 -0
  102. package/dist/packages/teaching/src/article/progress-store.d.ts +64 -0
  103. package/dist/packages/teaching/src/article/scrolly.d.ts +26 -0
  104. package/dist/packages/{kits/src/explainers → teaching/src/article}/term.d.ts +8 -2
  105. package/dist/packages/teaching/src/article/tex.d.ts +12 -0
  106. package/dist/packages/teaching/src/article/view-essay.d.ts +13 -0
  107. package/dist/packages/teaching/src/article/view-present.d.ts +8 -0
  108. package/dist/packages/teaching/src/article/view-sheet.d.ts +7 -0
  109. package/dist/packages/teaching/src/article/view-static.d.ts +7 -0
  110. package/dist/packages/teaching/src/article/walk.d.ts +34 -0
  111. package/dist/packages/teaching/src/lesson/define-lesson.d.ts +136 -0
  112. package/dist/packages/teaching/src/lesson/index.d.ts +24 -0
  113. package/dist/packages/teaching/src/lesson/inline-choice.d.ts +12 -0
  114. package/dist/packages/teaching/src/lesson/lesson-context.d.ts +18 -0
  115. package/dist/packages/teaching/src/lesson/lesson-error.d.ts +12 -0
  116. package/dist/packages/teaching/src/lesson/lesson-locale.d.ts +4 -0
  117. package/dist/packages/teaching/src/lesson/lesson-persistence.d.ts +17 -0
  118. package/dist/packages/teaching/src/lesson/lesson-player.d.ts +51 -0
  119. package/dist/packages/teaching/src/lesson/lesson-store.d.ts +84 -0
  120. package/dist/packages/teaching/src/lesson/lesson.d.ts +39 -0
  121. package/dist/packages/teaching/src/lesson/param-controls.d.ts +14 -0
  122. package/dist/packages/teaching/src/lesson/param.d.ts +34 -0
  123. package/dist/packages/teaching/src/lesson/playback.d.ts +42 -0
  124. package/dist/packages/teaching/src/lesson/transport.d.ts +19 -0
  125. package/dist/packages/teaching/src/lesson/use-lesson.d.ts +36 -0
  126. package/dist/packages/teaching/src/mdx/essay-components.d.ts +79 -0
  127. package/dist/packages/teaching/src/mdx/essay-markdown.d.ts +41 -0
  128. package/dist/packages/teaching/src/mdx/essay.d.ts +32 -0
  129. package/dist/packages/teaching/src/mdx/index.d.ts +9 -0
  130. package/dist/packages/teaching/src/mdx/requested-view.d.ts +6 -0
  131. package/dist/packages/teaching/src/scene/flow/flow-layout.d.ts +38 -0
  132. package/dist/packages/teaching/src/scene/flow/flow-pulse.d.ts +16 -0
  133. package/dist/packages/teaching/src/scene/flow/scene-flow.d.ts +81 -0
  134. package/dist/packages/teaching/src/scene/index.d.ts +77 -0
  135. package/dist/packages/teaching/src/scene/morph/morph-scope.d.ts +28 -0
  136. package/dist/packages/teaching/src/scene/plane/plane-hit.d.ts +22 -0
  137. package/dist/packages/teaching/src/scene/plane/plane-label.d.ts +23 -0
  138. package/dist/packages/teaching/src/scene/plane/plane-labels.d.ts +42 -0
  139. package/dist/packages/teaching/src/scene/plane/plane-math.d.ts +45 -0
  140. package/dist/packages/teaching/src/scene/plane/scene-axes.d.ts +30 -0
  141. package/dist/packages/teaching/src/scene/plane/scene-curve.d.ts +42 -0
  142. package/dist/packages/teaching/src/scene/plane/scene-point.d.ts +59 -0
  143. package/dist/packages/teaching/src/scene/plane/scene-projection.d.ts +27 -0
  144. package/dist/packages/teaching/src/scene/plane/scene-region.d.ts +38 -0
  145. package/dist/packages/teaching/src/scene/plane/scene-rule.d.ts +35 -0
  146. package/dist/packages/teaching/src/scene/plane/scene-vector.d.ts +39 -0
  147. package/dist/packages/teaching/src/scene/scene-bracket.d.ts +24 -0
  148. package/dist/packages/teaching/src/scene/scene-callout.d.ts +26 -0
  149. package/dist/packages/teaching/src/scene/scene-context.d.ts +179 -0
  150. package/dist/packages/teaching/src/scene/scene-custom.d.ts +31 -0
  151. package/dist/packages/teaching/src/scene/scene-geometry.d.ts +181 -0
  152. package/dist/packages/teaching/src/scene/scene-group.d.ts +28 -0
  153. package/dist/packages/teaching/src/scene/scene-highlight.d.ts +19 -0
  154. package/dist/packages/teaching/src/scene/scene-layer.d.ts +16 -0
  155. package/dist/packages/teaching/src/scene/scene-node.d.ts +67 -0
  156. package/dist/packages/teaching/src/scene/scene-obstacles.d.ts +27 -0
  157. package/dist/packages/teaching/src/scene/scene-registry.d.ts +79 -0
  158. package/dist/packages/teaching/src/scene/scene-stagger.d.ts +43 -0
  159. package/dist/packages/teaching/src/scene/scene-style.d.ts +14 -0
  160. package/dist/packages/teaching/src/scene/scene-validate.d.ts +65 -0
  161. package/dist/packages/teaching/src/scene/scene-wire.d.ts +45 -0
  162. package/dist/packages/teaching/src/scene/scene.d.ts +36 -0
  163. package/dist/packages/teaching/src/scene/shapes/cell-color.d.ts +11 -0
  164. package/dist/packages/teaching/src/scene/shapes/cell-grid.d.ts +69 -0
  165. package/dist/packages/teaching/src/scene/shapes/scene-card.d.ts +114 -0
  166. package/dist/packages/teaching/src/scene/shapes/scene-cells.d.ts +84 -0
  167. package/dist/packages/teaching/src/scene/shapes/scene-slot.d.ts +37 -0
  168. package/dist/packages/teaching/src/scene/shapes/scene-stack.d.ts +46 -0
  169. package/dist/packages/teaching/src/scene/shapes/scene-token.d.ts +63 -0
  170. package/dist/packages/teaching/src/scene/shapes/scene-tokens.d.ts +40 -0
  171. package/dist/packages/teaching/src/scene/shapes/stack-book.d.ts +35 -0
  172. package/dist/packages/teaching/src/scene/shapes/stack-layout.d.ts +63 -0
  173. package/dist/packages/teaching/src/scene/shapes/token-layout.d.ts +39 -0
  174. package/dist/packages/teaching/src/spec/advice.d.ts +23 -0
  175. package/dist/packages/teaching/src/spec/chart-names.d.ts +2 -0
  176. package/dist/packages/teaching/src/spec/describe-lesson.d.ts +85 -0
  177. package/dist/packages/teaching/src/spec/explainer-guide.d.ts +21 -0
  178. package/dist/packages/teaching/src/spec/findings.d.ts +39 -0
  179. package/dist/packages/teaching/src/spec/index.d.ts +14 -0
  180. package/dist/packages/teaching/src/spec/lesson-plan.d.ts +43 -0
  181. package/dist/packages/teaching/src/spec/validate-plan.d.ts +11 -0
  182. package/dist/packages/teaching/src/time/clock.d.ts +7 -0
  183. package/dist/packages/teaching/src/time/tween.d.ts +19 -0
  184. package/dist/packages/teaching/src/time/use-tween.d.ts +6 -0
  185. package/dist/param-BE3VMSkH.js +450 -0
  186. package/dist/{pierre-diff-DlvjyuJn.js → pierre-diff-aGyQK5xK.js} +1 -1
  187. package/dist/{plot-axes-DJkLW4wk.js → plot-axes-D5S9BnBa.js} +1 -1
  188. package/dist/{plot-layout-BEuoOHbs.js → plot-layout-Bqe4-0qZ.js} +4 -3
  189. package/dist/{plot-marks-A64v7aTw.js → plot-marks-FVsbFkUs.js} +18 -15
  190. package/dist/{plot-surface-CJTIqtck.js → plot-surface-DON6WUmk.js} +11 -11
  191. package/dist/{plot-width-DcqtSgzb.js → plot-width-D3hTycYX.js} +1 -1
  192. package/dist/{reference-lines-CWA8VeUR.js → reference-lines-hjuD1rRZ.js} +2 -2
  193. package/dist/scene-BP0Ue0R5.js +4938 -0
  194. package/dist/scene.js +1 -0
  195. package/dist/{slope-chart-DT22h_ym.js → slope-chart-C8eeSgL4.js} +7 -7
  196. package/dist/{src-CpdJlDhO.js → src-9EJskqB_.js} +73 -31
  197. package/dist/{src-D5NXRJZe.js → src-B2rgpWap.js} +48 -14
  198. package/dist/{src-BPTDJqt0.js → src-Ci8DeY8J.js} +1 -1
  199. package/dist/{src-CGc_hjxJ.js → src-DFW49IAs.js} +143 -111
  200. package/dist/{src-1EHkSFS-.js → src-Dxs3Buo_.js} +205 -139
  201. package/dist/{src-CExIrXPC.js → src-npqwq3Sa.js} +1 -1
  202. package/dist/styles2.css +542 -21
  203. package/dist/{time-series-IB3CB93O.js → time-series-BL933QyA.js} +787 -715
  204. package/dist/{token-heatmap-C00DnoNO.js → token-heatmap-BB65awva.js} +4 -4
  205. package/dist/{token-predictions-Cxx29iDr.js → token-predictions-Pa8eUGan.js} +6 -6
  206. package/dist/transport-DzyxVXbL.js +715 -0
  207. package/dist/{tree-diagram-DsckNKaW.js → tree-diagram-DJhKBiia.js} +6 -6
  208. package/dist/{treemap-9_DpLCW9.js → treemap-CxxgABUg.js} +5 -5
  209. package/dist/use-tween-5HZ55_9d.js +72 -0
  210. package/dist/{violin-plot-BhPHKXsN.js → violin-plot-CoAEF_7Z.js} +7 -6
  211. package/dist/{waterfall-CGksuTy5.js → waterfall-DdoEXEkT.js} +7 -7
  212. package/package.json +30 -5
  213. package/recipes/counting-cards.tsx +656 -0
  214. package/recipes/explorable-essay.tsx +172 -0
  215. package/skills/extend-elements/SKILL.md +21 -0
  216. package/skills/plan-lesson/SKILL.md +86 -0
  217. package/skills/plan-lesson/references/plan-format.md +114 -0
  218. package/skills/plan-lesson/references/worked-plan.md +171 -0
  219. package/skills/review-elements/SKILL.md +4 -2
  220. package/skills/review-explainer/SKILL.md +97 -0
  221. package/skills/upgrade-elements/references/releases.md +65 -0
  222. package/skills/use-elements/SKILL.md +18 -16
  223. package/skills/use-elements/references/kits.md +9 -26
  224. package/skills/use-elements/references/teaching.md +36 -0
  225. package/skills/write-explainer/SKILL.md +112 -0
  226. package/skills/write-explainer/references/article.md +164 -0
  227. package/skills/write-explainer/references/lesson.md +148 -0
  228. package/skills/write-explainer/references/mdx.md +78 -0
  229. package/skills/write-explainer/references/scene-parts.md +273 -0
  230. package/skills/write-explainer/references/scene.md +168 -0
  231. package/skills/write-explainer/references/tutor.md +104 -0
  232. package/skills/write-explainer/references/worked-essay.md +459 -0
  233. package/templates/essay/AGENTS.md +14 -0
  234. package/templates/essay/README.md +59 -0
  235. package/templates/essay/index.html +17 -0
  236. package/templates/essay/package.template.json +21 -0
  237. package/templates/essay/plan.json +96 -0
  238. package/templates/essay/src/essay.mdx +97 -0
  239. package/templates/essay/src/figures.tsx +92 -0
  240. package/templates/essay/src/lesson.ts +83 -0
  241. package/templates/essay/src/main.tsx +53 -0
  242. package/templates/essay/src/mdx.d.ts +7 -0
  243. package/templates/essay/tsconfig.template.json +15 -0
  244. package/templates/essay/vite.config.template.txt +8 -0
  245. package/dist/kits/explainers.js +0 -452
  246. package/dist/packages/kits/src/explainers/figures.d.ts +0 -31
  247. package/dist/packages/kits/src/explainers/index.d.ts +0 -8
  248. package/dist/packages/kits/src/explainers/story-steps.d.ts +0 -46
  249. /package/dist/packages/{kits/src/explainers → teaching/src/article}/linked-target.d.ts +0 -0
  250. /package/dist/packages/{kits/src/explainers → teaching/src/lesson}/bound-value.d.ts +0 -0
package/dist/lesson.js ADDED
@@ -0,0 +1,5 @@
1
+ import { n as e, t } from "./clock-DSm5lkNE.js";
2
+ import { n, t as r } from "./use-tween-5HZ55_9d.js";
3
+ import { c as i, h as a, i as o, l as s, m as c, n as l, t as u } from "./param-BE3VMSkH.js";
4
+ import { a as d, c as f, i as p, l as m, n as h, o as g, r as _, s as v, t as y, u as b } from "./transport-DzyxVXbL.js";
5
+ export { o as BoundValue, m as Lesson, c as LessonLocale, u as Param, p as ParamChoice, d as ParamSlider, g as ParamToggle, h as Playback, y as Transport, l as Value, n as createTween, i as defineLesson, t as isMotionReduced, s as lessonGraph, e as onFrame, b as playbackPaces, v as useLesson, f as useLessonContext, a as useLessonLocale, _ as usePlayback, r as useTween };
package/dist/mdx.js ADDED
@@ -0,0 +1,227 @@
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-yyNPg6VU.js";
2
+ import { n as se, t as ce } from "./param-BE3VMSkH.js";
3
+ import { a as l, i as u, n as d, o as f, t as p } from "./transport-DzyxVXbL.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-BP0Ue0R5.js";
5
+ import { t as R } from "./code-block-BZsY2sh3.js";
6
+ import { t as z } from "./content-link-PnpcnTCx.js";
7
+ import * as B from "@stylexjs/stylex";
8
+ import { mergeProps as V } from "@ui-sdk/react/primitive";
9
+ import { Children as H, isValidElement as U, useSyncExternalStore as W } from "react";
10
+ import { jsx as G } from "react/jsx-runtime";
11
+ // packages/teaching/src/mdx/essay-markdown.tsx
12
+ var K = {
13
+ headCell: {
14
+ k8WAf4: "xn9t2bk",
15
+ kg3NbH: "x1doqdfy",
16
+ kt9PQ7: "xso031l",
17
+ kfdmCh: "x1q0q8m5",
18
+ kL6WhQ: "xdjqune",
19
+ kMwMTN: "x153jb6y",
20
+ k63SB2: "x1b5ytql",
21
+ k9WMMc: "x1yc453h",
22
+ $$css: !0
23
+ },
24
+ cell: {
25
+ k8WAf4: "xn9t2bk",
26
+ kg3NbH: "x1doqdfy",
27
+ kt9PQ7: "xso031l",
28
+ kfdmCh: "x1q0q8m5",
29
+ kL6WhQ: "x1qndepd",
30
+ $$css: !0
31
+ },
32
+ aligned: (e) => [{
33
+ k9WMMc: e == null ? e : "x142shqn",
34
+ $$css: !0
35
+ }, { "--x-textAlign": e ?? void 0 }]
36
+ }, le = "math-inline", q = "math-display", ue = "language-";
37
+ function de(e) {
38
+ return /* @__PURE__ */ G("p", { ...V({ className: "xhff0hu" }, e) });
39
+ }
40
+ function J({ children: e, ...t }) {
41
+ return /* @__PURE__ */ G("h3", {
42
+ ...V({ className: "x1tku9c6 x14yccmi x1i2cqwi x1ytb0s6 x1b5ytql x1wjjqco x1w2vvpw x37gifx" }, t),
43
+ children: e
44
+ });
45
+ }
46
+ function Y({ children: e, ...t }) {
47
+ return /* @__PURE__ */ G("h4", {
48
+ ...V({ className: "x433zq8 x1jfksii x1i2cqwi x1ytb0s6 xk4h15q x37gifx" }, t),
49
+ children: e
50
+ });
51
+ }
52
+ function fe(e) {
53
+ return /* @__PURE__ */ G("ul", { ...V({ className: "xhff0hu x1sbza1b" }, e) });
54
+ }
55
+ function pe(e) {
56
+ return /* @__PURE__ */ G("ol", { ...V({ className: "xhff0hu x1sbza1b" }, e) });
57
+ }
58
+ function me(e) {
59
+ return /* @__PURE__ */ G("li", { ...V({ className: "x1v8es8e x1vblts3" }, e) });
60
+ }
61
+ function he(e) {
62
+ return /* @__PURE__ */ G("blockquote", { ...V({ className: "xhff0hu xrxpjvj xo02m6d xyumdvf x1t7ytsu x97x49r x153jb6y" }, e) });
63
+ }
64
+ function ge(e) {
65
+ return /* @__PURE__ */ G("em", { ...V({ className: "x1k4tb9n" }, e) });
66
+ }
67
+ function _e(e) {
68
+ return /* @__PURE__ */ G("strong", { ...V({ className: "x1b5ytql" }, e) });
69
+ }
70
+ function ve(e) {
71
+ return /* @__PURE__ */ G("hr", { ...V({ className: "x4ire xc342km x178xt8z x13fuv20 xhjagg4" }, e) });
72
+ }
73
+ function ye({ alt: e, ...t }) {
74
+ return /* @__PURE__ */ G("img", {
75
+ alt: e,
76
+ ...V({ className: "x1lliihq x193iq5w xt7dq6l xhff0hu x1ok0vyi" }, t)
77
+ });
78
+ }
79
+ function be({ href: e, title: t, children: n }) {
80
+ return /* @__PURE__ */ G(z, {
81
+ href: e,
82
+ title: t,
83
+ children: n
84
+ });
85
+ }
86
+ function xe(e) {
87
+ return /* @__PURE__ */ G("div", {
88
+ className: "xhff0hu xw2csxc",
89
+ children: /* @__PURE__ */ G("table", { ...V({ className: "xh8yej3 x1mwwwfo xtqrqnz x1778rvt xss6m8b" }, e) })
90
+ });
91
+ }
92
+ function Se(e) {
93
+ return /* @__PURE__ */ G("th", { ...V(B.props(K.headCell, e.align !== void 0 && K.aligned(e.align)), e) });
94
+ }
95
+ function Ce(e) {
96
+ return /* @__PURE__ */ G("td", { ...V(B.props(K.cell, e.align !== void 0 && K.aligned(e.align)), e) });
97
+ }
98
+ function X(e) {
99
+ return H.toArray(e).map((e) => typeof e == "string" ? e : "").join("");
100
+ }
101
+ function Z(e, t) {
102
+ return (e ?? "").split(" ").includes(t);
103
+ }
104
+ function we({ className: e, children: t, ...n }) {
105
+ return Z(e, le) ? /* @__PURE__ */ G(c, { children: X(t) }) : Z(e, q) ? /* @__PURE__ */ G(c, {
106
+ isDisplay: !0,
107
+ children: X(t)
108
+ }) : /* @__PURE__ */ G("code", {
109
+ ...V({ className: "x10dazmo x14w6jbu x1ok0vyi x1r7kqkb xiard35 xtqrqnz" }, {
110
+ ...n,
111
+ className: e
112
+ }),
113
+ children: t
114
+ });
115
+ }
116
+ function Q({ children: e }) {
117
+ let t = H.toArray(e)[0];
118
+ if (!U(t)) return e;
119
+ let { className: n, children: r } = t.props;
120
+ if (Z(n, q)) return t;
121
+ let i = (n ?? "").split(" ").find((e) => e.startsWith(ue));
122
+ return /* @__PURE__ */ G("div", {
123
+ className: "xhff0hu xeuugli",
124
+ children: /* @__PURE__ */ G(R, {
125
+ code: X(r).replace(/\n$/, ""),
126
+ language: i?.slice(9)
127
+ })
128
+ });
129
+ }
130
+ // packages/teaching/src/mdx/essay-components.ts
131
+ var $ = {
132
+ h1: J,
133
+ h2: J,
134
+ h3: Y,
135
+ h4: Y,
136
+ p: de,
137
+ a: be,
138
+ ul: fe,
139
+ ol: pe,
140
+ li: me,
141
+ blockquote: he,
142
+ code: we,
143
+ pre: Q,
144
+ table: xe,
145
+ th: Se,
146
+ td: Ce,
147
+ hr: ve,
148
+ img: ye,
149
+ em: ge,
150
+ strong: _e,
151
+ Beat: e,
152
+ Figure: r,
153
+ FigureReference: te,
154
+ Reveal: o,
155
+ Aside: ie,
156
+ Footnote: t,
157
+ Cite: oe,
158
+ TeX: c,
159
+ Term: s,
160
+ DiagramPart: ne,
161
+ Scrolly: a,
162
+ ScrollyStep: re,
163
+ Predict: n,
164
+ Challenge: i,
165
+ References: ae,
166
+ Param: ce,
167
+ Value: se,
168
+ ParamSlider: l,
169
+ ParamChoice: u,
170
+ ParamToggle: f,
171
+ Playback: d,
172
+ Transport: p,
173
+ Scene: F,
174
+ SceneNode: E,
175
+ SceneWire: D,
176
+ SceneGroup: y,
177
+ SceneBracket: M,
178
+ SceneCallout: g,
179
+ SceneHighlight: T,
180
+ SceneCustom: w,
181
+ SceneAxes: _,
182
+ SceneCurve: b,
183
+ ScenePoint: v,
184
+ SceneVector: x,
185
+ SceneRegion: C,
186
+ SceneRule: S,
187
+ SceneProjection: h,
188
+ SceneCard: m,
189
+ SceneStack: L,
190
+ SceneSlot: O,
191
+ SceneCells: k,
192
+ SceneToken: I,
193
+ SceneTokens: j,
194
+ SceneFlow: A,
195
+ LessonFlow: N,
196
+ MorphScope: P
197
+ }, Te = /* @__PURE__ */ new Map([
198
+ ["article", "article"],
199
+ ["present", "present"],
200
+ ["static", "static"],
201
+ ["sheet", "sheet"]
202
+ ]);
203
+ function Ee() {
204
+ return Te.get(new URLSearchParams(globalThis.location.search).get("view") ?? "") ?? "article";
205
+ }
206
+ function De() {
207
+ return "article";
208
+ }
209
+ function Oe(e) {
210
+ return globalThis.addEventListener("popstate", e), () => globalThis.removeEventListener("popstate", e);
211
+ }
212
+ function ke() {
213
+ return W(Oe, Ee, De);
214
+ }
215
+ // packages/teaching/src/mdx/essay.tsx
216
+ function Ae({ content: e, components: t, view: n, ...r }) {
217
+ let i = ke();
218
+ return /* @__PURE__ */ G(ee, {
219
+ ...r,
220
+ view: n ?? i,
221
+ children: e({ components: {
222
+ ...$,
223
+ ...t
224
+ } })
225
+ });
226
+ }
227
+ export { Ae as Essay, $ as essayComponents };
@@ -1,4 +1,4 @@
1
- import { j as e } from "./src-CpdJlDhO.js";
1
+ import { j as e } from "./src-9EJskqB_.js";
2
2
  import { n as t, t as n } from "./navigation-CveMIuXI.js";
3
- import { a as r, i, n as a, r as o, t as s } from "./src-BPTDJqt0.js";
3
+ import { a as r, i, n as a, r as o, t as s } from "./src-Ci8DeY8J.js";
4
4
  export { n as Breadcrumb, s as ContentTabs, t as Kbd, i as PageNavigation, r as PageNavigationPlaceholder, e as RouteLink, o as SkipLink, a as Tabs };
@@ -5,7 +5,7 @@ export { BreakdownBar } from './breakdown-bar.tsx';
5
5
  export type { BridgeChartProps, BridgeStep } from './bridge-chart.tsx';
6
6
  export { BridgeChart } from './bridge-chart.tsx';
7
7
  export type { ChartReferenceLine } from './reference-lines.tsx';
8
- export type { ScatterPoint, ScatterRange, ScatterRangeDetails, ScatterPlotProps } from './scatter-plot.tsx';
8
+ export type { ScatterDiagonal, ScatterPoint, ScatterRange, ScatterRangeDetails, ScatterPlotProps, } from './scatter-plot.tsx';
9
9
  export { ScatterPlot, scatterLimits } from './scatter-plot.tsx';
10
10
  export type { SparklineLayout, SparklineProps, SparklinePoint } from './sparkline.tsx';
11
11
  export { Sparkline } from './sparkline.tsx';
@@ -5,6 +5,7 @@ import type { ChartTone } from '../../../foundations/src/chart-tones.ts';
5
5
  import type { FigureProps, FigureSelectionProps } from '../figure/figure-props.ts';
6
6
  import type { PlotAxis, PlotHeight } from '../plot/plot-layout.ts';
7
7
  import type { NumericDomain } from '../plot/scale.ts';
8
+ import type { ChartReferenceLine } from './reference-lines.tsx';
8
9
  /** One supplied coordinate pair with a stable id, so selection survives reordering. */
9
10
  export type ScatterPoint = {
10
11
  readonly id: string;
@@ -21,10 +22,27 @@ export type ScatterRange = {
21
22
  type SliderDetails = Parameters<NonNullable<ComponentProps<typeof Slider.Root<[number, number]>>['onValueChange']>>[1];
22
23
  /** Why the range changed: a drag on the plot, one of the bound sliders, or the clear button. */
23
24
  export type ScatterRangeDetails = ChangeDetails<'drag' | 'clear-press'> | SliderDetails;
25
+ /** A dashed `y = x` identity reference line drawn across the overlapping x and y domains. */
26
+ export type ScatterDiagonal = {
27
+ /** Caption drawn beside the diagonal line (such as `"y = x"`). */
28
+ readonly label?: string | undefined;
29
+ /** Quiet region caption in the upper-left (`y > x`) half of the plot. */
30
+ readonly aboveLabel?: string | undefined;
31
+ /** Quiet region caption in the lower-right (`y < x`) half of the plot. */
32
+ readonly belowLabel?: string | undefined;
33
+ };
24
34
  export type ScatterPlotProps = FigureProps & FigureSelectionProps & {
25
35
  readonly points: ReadonlyArray<ScatterPoint>;
26
36
  readonly x: PlotAxis;
27
37
  readonly y: PlotAxis;
38
+ /** Optional `y = x` reference diagonal (true or labelled regions) for paired/generalization plots. */
39
+ readonly referenceDiagonal?: boolean | ScatterDiagonal | undefined;
40
+ /** Optional dashed horizontal reference lines on the y axis (such as a baseline or ceiling). */
41
+ readonly referenceLines?: ReadonlyArray<ChartReferenceLine> | undefined;
42
+ /** Ordered point ids connected by a dashed Pareto/frontier line. Computed by the application. */
43
+ readonly frontier?: ReadonlyArray<string> | undefined;
44
+ /** Point ids that carry a direct haloed label beside their mark. */
45
+ readonly labeledIds?: ReadonlyArray<string> | undefined;
28
46
  /** The coordinate range the application holds, or null for none. */
29
47
  readonly range?: ScatterRange | null | undefined;
30
48
  /** Asks the application to set or clear the range. With it, the plot offers a drag and two range sliders. */
@@ -94,6 +94,6 @@ export declare const chartStyles: Readonly<{
94
94
  readonly transitionTimingFunction: stylex.StyleXClassNameFor<"transitionTimingFunction", string>;
95
95
  }>;
96
96
  readonly receded: Readonly<{
97
- readonly opacity: stylex.StyleXClassNameFor<"opacity", 0.32>;
97
+ readonly opacity: stylex.StyleXClassNameFor<"opacity", 0.45>;
98
98
  }>;
99
99
  }>;
@@ -9,6 +9,7 @@ export { ConfusionMatrix, confusionMatrixLimits } from './confusion-matrix.tsx';
9
9
  export type { CorrelationMatrixProps, CorrelationVariable } from './correlation-matrix.tsx';
10
10
  export { CorrelationMatrix, correlationMatrixLimits } from './correlation-matrix.tsx';
11
11
  export type { HeatmapPalette, HeatmapScale } from './heatmap-scale.ts';
12
+ export { heatmapColor } from './heatmap-scale.ts';
12
13
  export { matrixLimits } from './matrix-figure.tsx';
13
14
  export type { MatrixAxisItem, MatrixCell, MatrixCellRange, MatrixCellRangeDetails, MatrixCellValuesProps, MatrixCoordinate, } from './matrix-types.ts';
14
15
  export { matrixCellId } from './matrix-types.ts';
@@ -34,9 +34,11 @@ export type DotMarkProps = MarkState & {
34
34
  /** True for a value that is missing, masked or excluded: an outline with no fill. */
35
35
  readonly isHollow?: boolean | undefined;
36
36
  readonly emphasis?: MarkEmphasis | undefined;
37
+ /** The record's id, written as `data-chart-mark` so a figure outside the chart can find this mark. */
38
+ readonly mark?: string | undefined;
37
39
  };
38
40
  /** One observation at a position. */
39
- export declare function DotMark({ x, y, tone, radius, isHollow, emphasis, isInspected, isSelected, }: DotMarkProps): ReactNode;
41
+ export declare function DotMark({ x, y, tone, radius, isHollow, emphasis, isInspected, isSelected, mark, }: DotMarkProps): ReactNode;
40
42
  export type BarMarkProps = MarkState & {
41
43
  readonly x: number;
42
44
  readonly y: number;
@@ -45,9 +47,11 @@ export type BarMarkProps = MarkState & {
45
47
  readonly tone: ChartTone;
46
48
  readonly isHollow?: boolean | undefined;
47
49
  readonly emphasis?: MarkEmphasis | undefined;
50
+ /** The record's id, written as `data-chart-mark` so a figure outside the chart can find this mark. */
51
+ readonly mark?: string | undefined;
48
52
  };
49
53
  /** A rectangle whose length carries an amount from a zero baseline, or whose area fills a cell. */
50
- export declare function BarMark({ x, y, width, height, tone, isHollow, emphasis, isInspected, isSelected, }: BarMarkProps): ReactNode;
54
+ export declare function BarMark({ x, y, width, height, tone, isHollow, emphasis, isInspected, isSelected, mark, }: BarMarkProps): ReactNode;
51
55
  /** The outline of a symbol: a shape names a kind of record, so it never relies on hue alone. */
52
56
  export type SymbolShape = 'circle' | 'square' | 'diamond';
53
57
  export type SymbolMarkProps = DotMarkProps & {
@@ -57,7 +61,7 @@ export type SymbolMarkProps = DotMarkProps & {
57
61
  * One record drawn as a circle, a square or a diamond, such as a node whose kind the shape names. A hollow symbol is
58
62
  * missing, masked or unexplained. Use `DotMark` when every record has the same kind.
59
63
  */
60
- export declare function SymbolMark({ shape, x, y, tone, radius, isHollow, emphasis, isInspected, isSelected, }: SymbolMarkProps): ReactNode;
64
+ export declare function SymbolMark({ shape, x, y, tone, radius, isHollow, emphasis, isInspected, isSelected, mark, }: SymbolMarkProps): ReactNode;
61
65
  export type LinkMarkProps = {
62
66
  /** The path from `linkPath`. */
63
67
  readonly d: string;
@@ -26,7 +26,9 @@ export type PlotSurfaceProps = {
26
26
  */
27
27
  export declare function PlotSurface({ plotRef, box, label, readoutId, children, overlay, onPointerDown, }: PlotSurfaceProps): ReactNode;
28
28
  /** Keeps marks inside the axes. Wrap the marks, never the axes or the labels beside them. */
29
- export declare function PlotClip({ box, children }: {
29
+ export declare function PlotClip({ box, pad, children, }: {
30
30
  readonly box: PlotBox;
31
+ /** Optional pixel margin around the plot inner area so boundary dot marks are not half-clipped. */
32
+ readonly pad?: number | undefined;
31
33
  readonly children: ReactNode;
32
34
  }): ReactNode;
@@ -13,7 +13,7 @@ export type { InspectorProps } from './inspector.tsx';
13
13
  export { Inspector, Details } from './inspector.tsx';
14
14
  export { ListFooter } from './list-footer.tsx';
15
15
  export { MetricGrid, Metric } from './metrics.tsx';
16
- export type { MetricGridProps, MetricProps } from './metrics.tsx';
16
+ export type { MetricChange, MetricGridProps, MetricProps } from './metrics.tsx';
17
17
  export type { TimestampProps } from './timestamp.tsx';
18
18
  export { Timestamp } from './timestamp.tsx';
19
19
  export { Timeline } from './timeline.tsx';
@@ -1,5 +1,9 @@
1
1
  import * as stylex from '@stylexjs/stylex';
2
2
  import type { ComponentProps, ReactElement, ReactNode } from 'react';
3
+ export type MetricChange = {
4
+ readonly value: string;
5
+ readonly tone?: 'positive' | 'negative' | 'neutral';
6
+ };
3
7
  type MetricLayout = 'inline' | 'columns';
4
8
  declare const variants: {
5
9
  inline: {
@@ -55,6 +59,10 @@ export type MetricProps = Omit<ComponentProps<'div'>, 'children' | 'dangerouslyS
55
59
  readonly label: string;
56
60
  readonly variant?: MetricVariant;
57
61
  readonly trend?: ReactElement;
62
+ /** Optional signed delta badge drawn beside the value (such as `+20.9% vs starter`). */
63
+ readonly change?: MetricChange | undefined;
64
+ /** Optional target or ceiling reference shown quietly below the detail line. */
65
+ readonly target?: string | undefined;
58
66
  } & ({
59
67
  readonly isLoading?: false;
60
68
  readonly value: string;
@@ -67,5 +75,5 @@ export type MetricProps = Omit<ComponentProps<'div'>, 'children' | 'dangerouslyS
67
75
  readonly hasDetail?: boolean;
68
76
  });
69
77
  export declare function MetricGrid({ layout, ...props }: MetricGridProps): ReactNode;
70
- export declare function Metric({ label, value, detail, isLoading, hasDetail, variant, trend, ...props }: MetricProps): ReactNode;
78
+ export declare function Metric({ label, value, detail, change, target, isLoading, hasDetail, variant, trend, ...props }: MetricProps): ReactNode;
71
79
  export {};
@@ -8,3 +8,5 @@ export type { StackFrame, StackTraceProps } from './stack-trace.tsx';
8
8
  export { StackTrace } from './stack-trace.tsx';
9
9
  export type { TraceStatus, TraceRootProps, TraceGroupProps, TraceItemProps } from './trace.tsx';
10
10
  export { Trace } from './trace.tsx';
11
+ export type { MatchRange, MatchSegment, TextMatchMode, TextMatchProps, TextMatchTone } from './text-match.tsx';
12
+ export { fuzzyScore, matchRanges, matchSegments, TextMatch } from './text-match.tsx';
@@ -0,0 +1,22 @@
1
+ import type { MatchRange } from '@ui-sdk/react/text-match';
2
+ import type { ReactNode } from 'react';
3
+ export type TextMatchTone = 'warning' | 'accent' | 'danger';
4
+ export type TextMatchMode = 'contains' | 'startsWith' | 'fuzzy';
5
+ export type TextMatchProps = {
6
+ /** The full string to display. */
7
+ readonly text: string;
8
+ /** Highlight tone for matched ranges. Defaults to `'warning'`. */
9
+ readonly tone?: TextMatchTone;
10
+ /** Matching strategy when `query` is supplied. Defaults to `'contains'`. */
11
+ readonly mode?: TextMatchMode;
12
+ } & ({
13
+ readonly query: string;
14
+ readonly ranges?: never;
15
+ } | {
16
+ readonly ranges: ReadonlyArray<MatchRange>;
17
+ readonly query?: never;
18
+ });
19
+ /** Highlights matching spans of text using `@ui-sdk/react/text-match`, for search hits or token callouts. */
20
+ export declare function TextMatch({ text, query, ranges, tone, mode }: TextMatchProps): ReactNode;
21
+ export { fuzzyScore, matchRanges, matchSegments } from '@ui-sdk/react/text-match';
22
+ export type { MatchRange, MatchSegment } from '@ui-sdk/react/text-match';
@@ -9,6 +9,7 @@ export { AgentAvatar, agentAppearance, agentAvatarColors } from './agent-avatar.
9
9
  export { CopyValue } from './copy-value.tsx';
10
10
  export { RouteLink } from './route-link.tsx';
11
11
  export { Accordion, Collapsible } from './disclosure.tsx';
12
+ export type { PanelProps } from './surfaces.tsx';
12
13
  export { Panel, SurfaceLink, Row, Stack, Columns, Divider } from './surfaces.tsx';
13
14
  export { SectionHeading } from './section-heading.tsx';
14
15
  export type { SectionHeadingProps } from './section-heading.tsx';
@@ -1,7 +1,17 @@
1
1
  import type { ComponentProps, ReactNode } from 'react';
2
2
  import type { PlacementStyle } from '../../foundations/src/style-composition.ts';
3
- type PanelProps = ComponentProps<'section'> & {
3
+ export type PanelProps = Omit<ComponentProps<'section'>, 'title'> & {
4
4
  readonly isPadded?: boolean;
5
+ /** Integrated technical-sheet title bar; when set, `Panel` renders a framed header strip. */
6
+ readonly title?: string | undefined;
7
+ /** Optional short index label (such as `"A"`, `"B"`, `"01"`) shown beside `title`. */
8
+ readonly index?: string | undefined;
9
+ /** Right-aligned scope, unit, or compact actions inside the header strip. */
10
+ readonly meta?: ReactNode;
11
+ /** Provenance or footnote bar anchored at the bottom of the panel. */
12
+ readonly footer?: ReactNode;
13
+ /** Removes inner body padding so tables or full-bleed visuals share the panel's outer border. */
14
+ readonly isFlush?: boolean;
5
15
  };
6
16
  type SurfaceLinkProps = ComponentProps<'a'> & {
7
17
  readonly xstyle?: PlacementStyle;
@@ -14,7 +24,7 @@ type StackProps = ComponentProps<'div'> & {
14
24
  };
15
25
  type ColumnsProps = ComponentProps<'div'>;
16
26
  type DividerProps = ComponentProps<'hr'>;
17
- export declare function Panel({ isPadded, ...props }: PanelProps): ReactNode;
27
+ export declare function Panel({ isPadded, title, index, meta, footer, isFlush, children, ...props }: PanelProps): ReactNode;
18
28
  export declare function SurfaceLink({ xstyle, ...props }: SurfaceLinkProps): ReactNode;
19
29
  export declare function Row({ shouldSpaceBetween, ...props }: RowProps): ReactNode;
20
30
  export declare function Stack({ isCompact, ...props }: StackProps): ReactNode;
@@ -17,3 +17,5 @@ export type { SettingsRowProps } from './settings-row.tsx';
17
17
  export { SettingsRow } from './settings-row.tsx';
18
18
  export type { SettingsSectionProps } from './settings-section.tsx';
19
19
  export { SettingsSection } from './settings-section.tsx';
20
+ export type { Token, TokenInputEditorProps, TokenInputRootProps, TokenInputTokenProps, TokenInputTokenRemoveProps, TokenInputValue, TokenInputValueChangeDetails, } from './token-input.tsx';
21
+ export { defaultCodec, fromText, toLabel, TokenInput, toText } from './token-input.tsx';
@@ -0,0 +1,24 @@
1
+ import { TokenInputEditor as SdkTokenInputEditor, TokenInputToken as SdkTokenInputToken, TokenInputTokenRemove as SdkTokenInputTokenRemove } from '@ui-sdk/react/token-input';
2
+ import type { TokenInputEditorProps as SdkEditorProps, TokenInputProps as SdkTokenInputProps } from '@ui-sdk/react/token-input';
3
+ import type { ComponentProps, ReactNode } from 'react';
4
+ import type { ControlDensity } from '../../foundations/src/control-density.ts';
5
+ import type { PlacementStyle } from '../../foundations/src/style-composition.ts';
6
+ export type TokenInputRootProps = SdkTokenInputProps;
7
+ export type TokenInputEditorProps = Omit<ComponentProps<typeof SdkTokenInputEditor>, 'children'> & SdkEditorProps & {
8
+ readonly density?: ControlDensity;
9
+ readonly xstyle?: PlacementStyle;
10
+ };
11
+ export type TokenInputTokenProps = ComponentProps<typeof SdkTokenInputToken>;
12
+ export type TokenInputTokenRemoveProps = ComponentProps<typeof SdkTokenInputTokenRemove>;
13
+ declare function TokenInputRoot(props: TokenInputRootProps): ReactNode;
14
+ declare function TokenInputEditor({ className, style, density, xstyle, placeholder, ...props }: TokenInputEditorProps): ReactNode;
15
+ declare function TokenInputToken({ className, style, ...props }: TokenInputTokenProps): ReactNode;
16
+ declare function TokenInputTokenRemove({ className, style, children, ...props }: TokenInputTokenRemoveProps): ReactNode;
17
+ export declare const TokenInput: {
18
+ Root: typeof TokenInputRoot;
19
+ Editor: typeof TokenInputEditor;
20
+ Token: typeof TokenInputToken;
21
+ TokenRemove: typeof TokenInputTokenRemove;
22
+ };
23
+ export { defaultCodec, fromText, toLabel, toText } from '@ui-sdk/react/token-input';
24
+ export type { Token, TokenInputValue, TokenInputValueChangeDetails } from '@ui-sdk/react/token-input';
@@ -10,7 +10,7 @@ export type { FeatureListLabels, FeatureListProps, FeatureListRow } from './feat
10
10
  export { FeatureList } from './feature-list.tsx';
11
11
  export type { FeatureCardData, FeatureDensity, FeatureExamples, FeatureLogit, FeatureLogits, FeatureSummary, InterpretabilityChangeDetails, } from './features.ts';
12
12
  export { featureLimits } from './features.ts';
13
- export type { LensLayer, LensTrack, LogitLensLabels, LogitLensProps } from './logit-lens.tsx';
13
+ export type { LensLayer, LensLayerGroup, LensTrack, LogitLensLabels, LogitLensProps } from './logit-lens.tsx';
14
14
  export { LogitLens } from './logit-lens.tsx';
15
15
  export type { SteeringCompletions, SteeringFeature, SteeringPanelLabels, SteeringPanelProps, } from './steering-panel.tsx';
16
16
  export { SteeringPanel } from './steering-panel.tsx';
@@ -9,6 +9,13 @@ export type LensLayer = {
9
9
  /** The layer's number, the horizontal position of its point in the curve. */
10
10
  readonly depth: number;
11
11
  };
12
+ /** A contiguous depth band (such as a loop pass or prelude/coda stage) marked along the lens curve. */
13
+ export type LensLayerGroup = {
14
+ readonly id: string;
15
+ readonly label: string;
16
+ readonly fromDepth: number;
17
+ readonly toDepth: number;
18
+ };
12
19
  /** The probability of one chosen token at one position, read at each layer in `layers` order. */
13
20
  export type LensTrack = {
14
21
  readonly id: string;
@@ -34,6 +41,8 @@ export type LogitLensProps = Pick<FigureProps, 'title' | 'description' | 'locale
34
41
  readonly cells: ReadonlyArray<TokenGridCell>;
35
42
  /** The tokens to follow through the layers, for any positions the application chose. */
36
43
  readonly tracks?: ReadonlyArray<LensTrack> | undefined;
44
+ /** Optional contiguous depth bands (such as loop passes) marked on the trajectory curve. */
45
+ readonly layerGroups?: ReadonlyArray<LensLayerGroup> | undefined;
37
46
  /** How probabilities are written. Absent writes a percent. */
38
47
  readonly valueFormat?: ValueFormat | undefined;
39
48
  /** The cell in focus, as `tokenGridCellId(layerId, columnId)`. Its position's tracks are drawn as curves. */
@@ -47,4 +56,4 @@ export type LogitLensProps = Pick<FigureProps, 'title' | 'description' | 'locale
47
56
  * that position, how the chosen tokens' probabilities change from layer to layer, while the application decodes every
48
57
  * layer and supplies the cells and tracks.
49
58
  */
50
- export declare function LogitLens({ columns, layers, cells, tracks, valueFormat, selected, onSelectedChange, labels: given, ...figure }: LogitLensProps): ReactNode;
59
+ export declare function LogitLens({ columns, layers, cells, tracks, layerGroups, valueFormat, selected, onSelectedChange, labels: given, ...figure }: LogitLensProps): ReactNode;
@@ -0,0 +1,43 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { ValueFormat } from '../../../charts/src/index.ts';
3
+ export type FindingStatus = 'supported' | 'mixed' | 'falsified' | 'open';
4
+ export type FindingMetric = {
5
+ readonly label: string;
6
+ readonly value: number | null;
7
+ readonly format: ValueFormat;
8
+ readonly tone?: 'neutral' | 'positive' | 'warning' | 'negative' | undefined;
9
+ };
10
+ export type FindingSource = {
11
+ readonly id: string;
12
+ readonly label: string;
13
+ readonly href?: string | undefined;
14
+ readonly summary?: string | undefined;
15
+ };
16
+ export type FindingCardLabels = {
17
+ readonly limitation: string;
18
+ readonly details: string;
19
+ readonly sources: string;
20
+ readonly statusLabels: Readonly<Record<FindingStatus, string>>;
21
+ };
22
+ export type FindingCardProps = {
23
+ readonly title: string;
24
+ readonly claim: string;
25
+ readonly locale: string;
26
+ readonly status: FindingStatus;
27
+ readonly index?: string | undefined;
28
+ readonly limitation?: string | undefined;
29
+ readonly metrics?: ReadonlyArray<FindingMetric> | undefined;
30
+ readonly sources?: ReadonlyArray<FindingSource> | undefined;
31
+ readonly author?: string | undefined;
32
+ readonly recordedAt?: string | undefined;
33
+ readonly recordedLabel?: string | undefined;
34
+ /** Optional full methodology, notes, or raw markdown disclosed on demand. */
35
+ readonly details?: ReactNode;
36
+ readonly actions?: ReactNode;
37
+ readonly labels?: Partial<FindingCardLabels> | undefined;
38
+ };
39
+ /**
40
+ * A framed scientific evidence card: headline claim, explicit limitation, declared metric chips, hover-previewable
41
+ * citations, and optional methodology disclosed on demand. Composes Elements families with zero custom SVG.
42
+ */
43
+ export declare function FindingCard({ title, claim, locale, status, index, limitation, metrics, sources, author, recordedAt, recordedLabel, details, actions, labels: given, }: FindingCardProps): ReactNode;
@@ -0,0 +1,8 @@
1
+ export type { FindingCardLabels, FindingCardProps, FindingMetric, FindingSource, FindingStatus, } from './finding-card.tsx';
2
+ export { FindingCard } from './finding-card.tsx';
3
+ export type { MilestoneKind, MilestonePathLabels, MilestonePathProps, ResearchMilestone } from './milestone-path.tsx';
4
+ export { MilestonePath } from './milestone-path.tsx';
5
+ export type { SpecimenDiffLabels, SpecimenDiffProps, SpecimenDiffRow, SpecimenFilter, SpecimenOutcome, } from './specimen-diff.tsx';
6
+ export { SpecimenDiff } from './specimen-diff.tsx';
7
+ export type { WorkHeartbeatLabels, WorkHeartbeatProps, WorkHeartbeatState, WorkProgress, WorkReportItem, } from './work-heartbeat.tsx';
8
+ export { WorkHeartbeat } from './work-heartbeat.tsx';
@@ -0,0 +1,36 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { FigureProps, FigureSelectionProps, ValueFormat } from '../../../charts/src/index.ts';
3
+ export type MilestoneKind = 'baseline' | 'result' | 'breakthrough' | 'counterexample' | 'decision';
4
+ export type ResearchMilestone = {
5
+ readonly id: string;
6
+ readonly parentId: string | null;
7
+ readonly label: string;
8
+ readonly kind: MilestoneKind;
9
+ readonly claim: string;
10
+ readonly limitation?: string | undefined;
11
+ readonly metric?: number | null | undefined;
12
+ readonly delta?: number | null | undefined;
13
+ readonly source?: string | undefined;
14
+ readonly wave?: string | undefined;
15
+ };
16
+ export type MilestonePathLabels = {
17
+ readonly metric: string;
18
+ readonly delta: string;
19
+ readonly limitation: string;
20
+ readonly source: string;
21
+ readonly selectHint: string;
22
+ readonly empty: string;
23
+ readonly kinds: Readonly<Record<MilestoneKind, string>>;
24
+ };
25
+ export type MilestonePathProps = Pick<FigureProps, 'title' | 'description' | 'locale' | 'status' | 'source' | 'transforms'> & FigureSelectionProps & {
26
+ readonly milestones: ReadonlyArray<ResearchMilestone>;
27
+ readonly valueLabel: string;
28
+ readonly valueFormat: ValueFormat;
29
+ readonly deltaFormat?: ValueFormat | undefined;
30
+ readonly labels?: Partial<MilestonePathLabels> | undefined;
31
+ };
32
+ /**
33
+ * A branching progression of research milestones: baselines, breakthroughs, falsified counterexamples, and decisions
34
+ * composed from `TreeDiagram` with a linked evidence inspection panel. Draws no SVG of its own.
35
+ */
36
+ export declare function MilestonePath({ milestones, valueLabel, valueFormat, deltaFormat, selected, onSelectedChange, labels: given, ...figure }: MilestonePathProps): ReactNode;