@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
@@ -1,5 +1,5 @@
1
1
  import { n as e, t } from "./chart-tones-ei3BC2AL.js";
2
- import { A as n, E as r, O as i, T as a, k as o } from "./plot-layout-BEuoOHbs.js";
2
+ import { A as n, E as r, O as i, T as a, k as o } from "./plot-layout-Bqe4-0qZ.js";
3
3
  import { t as s } from "./accessibility-P89UG9-r.js";
4
4
  import * as c from "@stylexjs/stylex";
5
5
  import { useId as l } from "react";
@@ -1,8 +1,8 @@
1
1
  import { r as e } from "./figure-format-B8kRZMlo.js";
2
- import { a as t, f as n, l as r, r as i, s as a } from "./plot-marks-A64v7aTw.js";
2
+ import { a as t, f as n, l as r, r as i, s as a } from "./plot-marks-FVsbFkUs.js";
3
3
  import { i as o, r as s } from "./scale-C2xgZyZN.js";
4
4
  import { a as c } from "./tone-scope-DKiSw-JR.js";
5
- import { t as l } from "./plot-width-DcqtSgzb.js";
5
+ import { t as l } from "./plot-width-D3hTycYX.js";
6
6
  import { n as u, t as d } from "./chart-tones-ei3BC2AL.js";
7
7
  import { r as f } from "./tokens.stylex-dF5CACEJ.js";
8
8
  import { n as p } from "./heatmap-scale-Zte6Ya-g.js";
@@ -1 +1 @@
1
- export { t as AreaChart, p as BarChart, m as BarChartPlaceholder, f as BreakdownBar, d as BridgeChart, n as LineChart, l as ScatterPlot, r as SmallMultiples, i as SmallMultiplesPlaceholder, s as Sparkline, a as TimeSeriesChartPlaceholder, u as scatterLimits, o as timeSeriesBandLimits, c as timeSeriesLimits } from "../time-series-IB3CB93O.js";
1
+ export { t as AreaChart, p as BarChart, m as BarChartPlaceholder, f as BreakdownBar, d as BridgeChart, n as LineChart, l as ScatterPlot, r as SmallMultiples, i as SmallMultiplesPlaceholder, s as Sparkline, a as TimeSeriesChartPlaceholder, u as scatterLimits, o as timeSeriesBandLimits, c as timeSeriesLimits } from "../time-series-BL933QyA.js";
@@ -1 +1 @@
1
- export { o as BarCell, a as ChangeCell, i as HeatCell, r as IntervalCell, t as SparkCell, n as sparkCellLimits } from "../cells--Bd1fQFR.js";
1
+ export { o as BarCell, a as ChangeCell, i as HeatCell, r as IntervalCell, t as SparkCell, n as sparkCellLimits } from "../cells-CNZE4us2.js";
@@ -1 +1 @@
1
- export { a as BulletBar, r as DotPlot, t as DumbbellPlot, o as bulletLimits, i as dotPlotLimits, n as dumbbellLimits } from "../dumbbell-plot-B2ZTgQaI.js";
1
+ export { a as BulletBar, r as DotPlot, t as DumbbellPlot, o as bulletLimits, i as dotPlotLimits, n as dumbbellLimits } from "../dumbbell-plot-CMv9llfd.js";
@@ -1 +1 @@
1
- export { s as BoxPlot, f as ECDF, d as Histogram, u as IntervalPlot, l as RankedBars, a as Ridgeline, r as StripPlot, t as ViolinPlot, c as boxLimits, p as distributionLimits, o as ridgelineLimits, i as stripLimits, n as violinLimits } from "../violin-plot-BhPHKXsN.js";
1
+ export { s as BoxPlot, f as ECDF, d as Histogram, u as IntervalPlot, l as RankedBars, a as Ridgeline, r as StripPlot, t as ViolinPlot, c as boxLimits, p as distributionLimits, o as ridgelineLimits, i as stripLimits, n as violinLimits } from "../violin-plot-CoAEF_7Z.js";
@@ -1,16 +1,16 @@
1
- import { d as e, f as t, l as n, n as r, p as i, r as a, s as o, t as s } from "../time-series-IB3CB93O.js";
2
- import { a as c, r as l, t as u } from "../dumbbell-plot-B2ZTgQaI.js";
3
- import { a as d, d as f, f as p, l as ee, r as te, s as ne, t as re, u as ie } from "../violin-plot-BhPHKXsN.js";
4
- import { a as ae, r as oe, s as se, t as ce } from "../tree-diagram-DsckNKaW.js";
5
- import { n as le, t as ue } from "../treemap-9_DpLCW9.js";
6
- import { a as de, r as fe, t as pe } from "../image-grid-CVA4SOy_.js";
7
- import { c as me, i as he, o as m, r as ge, t as _e, u as ve } from "../token-heatmap-C00DnoNO.js";
8
- import { a as ye, l as be, r as xe, s as Se, t as Ce } from "../embedding-map-CGM_k6lC.js";
9
- import { a as we, c as Te, r as h, t as Ee } from "../token-predictions-Cxx29iDr.js";
10
- import { n as De, t as Oe } from "../waterfall-CGksuTy5.js";
11
- import { a as ke, l as Ae, r as je, s as Me, t as Ne } from "../slope-chart-DT22h_ym.js";
1
+ import { d as e, f as t, l as n, n as r, p as i, r as a, s as o, t as s } from "../time-series-BL933QyA.js";
2
+ import { a as c, r as l, t as u } from "../dumbbell-plot-CMv9llfd.js";
3
+ import { a as d, d as f, f as p, l as ee, r as te, s as ne, t as re, u as ie } from "../violin-plot-CoAEF_7Z.js";
4
+ import { a as ae, r as oe, s as se, t as ce } from "../tree-diagram-DJhKBiia.js";
5
+ import { n as le, t as ue } from "../treemap-CxxgABUg.js";
6
+ import { a as de, r as fe, t as pe } from "../image-grid-DHqtj_zs.js";
7
+ import { c as me, i as he, o as m, r as ge, t as _e, u as ve } from "../token-heatmap-BB65awva.js";
8
+ import { a as ye, l as be, r as xe, s as Se, t as Ce } from "../embedding-map-DC-lgzCq.js";
9
+ import { a as we, c as Te, r as h, t as Ee } from "../token-predictions-Pa8eUGan.js";
10
+ import { n as De, t as Oe } from "../waterfall-DdoEXEkT.js";
11
+ import { a as ke, l as Ae, r as je, s as Me, t as Ne } from "../slope-chart-C8eeSgL4.js";
12
12
  import { m as g } from "../values-963L6n1m.js";
13
- import { a as _, r as v } from "../figure-frame-wRkIEAwe.js";
13
+ import { a as _, r as v } from "../figure-frame-BjFzbl3m.js";
14
14
  import { createElement as y } from "react";
15
15
  import { jsx as b } from "react/jsx-runtime";
16
16
  import { formatNumber as Pe } from "@ui-sdk/core/number";
@@ -1 +1 @@
1
- export { r as AttributionGraph, s as FlowDiagram, a as RelationGraph, t as TreeDiagram, i as attributionLimits, c as flowLimits, o as relationGraphLimits, n as treeLimits } from "../tree-diagram-DsckNKaW.js";
1
+ export { r as AttributionGraph, s as FlowDiagram, a as RelationGraph, t as TreeDiagram, i as attributionLimits, c as flowLimits, o as relationGraphLimits, n as treeLimits } from "../tree-diagram-DJhKBiia.js";
@@ -1 +1 @@
1
- export { n as Icicle, t as Treemap, r as icicleLimits } from "../treemap-9_DpLCW9.js";
1
+ export { n as Icicle, t as Treemap, r as icicleLimits } from "../treemap-CxxgABUg.js";
@@ -1 +1 @@
1
- export { a as AttributionOverlay, r as ImageAtlas, t as ImageGrid, o as attributionOverlayLimits, i as imageAtlasLimits, n as imageGridLimits } from "../image-grid-CVA4SOy_.js";
1
+ export { a as AttributionOverlay, r as ImageAtlas, t as ImageGrid, o as attributionOverlayLimits, i as imageAtlasLimits, n as imageGridLimits } from "../image-grid-DHqtj_zs.js";
@@ -1,3 +1,4 @@
1
- import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, p as c, r as l, s as u, t as d, u as f } from "../token-heatmap-C00DnoNO.js";
1
+ import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, p as c, r as l, s as u, t as d, u as f } from "../token-heatmap-BB65awva.js";
2
2
  import { t as p } from "../color-legend-CIo7DhXB.js";
3
- export { f as AttentionMatrix, t as CalendarHeatmap, p as ColorLegend, s as ConfusionMatrix, i as CorrelationMatrix, l as Matrix, d as TokenHeatmap, n as attentionMatrixLimits, a as calendarHeatmapLimits, u as confusionMatrixLimits, e as correlationMatrixLimits, c as matrixCellId, r as matrixLimits, o as tokenHeatmapLimits };
3
+ import { t as m } from "../heatmap-scale-Zte6Ya-g.js";
4
+ export { f as AttentionMatrix, t as CalendarHeatmap, p as ColorLegend, s as ConfusionMatrix, i as CorrelationMatrix, l as Matrix, d as TokenHeatmap, n as attentionMatrixLimits, a as calendarHeatmapLimits, u as confusionMatrixLimits, e as correlationMatrixLimits, m as heatmapColor, c as matrixCellId, r as matrixLimits, o as tokenHeatmapLimits };
@@ -1,15 +1,15 @@
1
- import { a as e, i as t, l as n, n as r, o as i, r as a, t as o } from "../figure-frame-wRkIEAwe.js";
1
+ import { a as e, i as t, l as n, n as r, o as i, r as a, t as o } from "../figure-frame-BjFzbl3m.js";
2
2
  import { t as s } from "../chart-cursor-1mFd48Jc.js";
3
- import { A as c, E as l, O as u, S as d, T as f, _ as p, a as m, d as h, f as g, g as _, h as v, i as y, k as b, l as x, m as S, n as C, o as w, p as T, r as E, s as D, t as O, u as k, v as A, w as j, y as M } from "../plot-layout-BEuoOHbs.js";
4
- import { n as N } from "../plot-width-DcqtSgzb.js";
3
+ import { A as c, E as l, O as u, S as d, T as f, _ as p, a as m, d as h, f as g, g as _, h as v, i as y, k as b, l as x, m as S, n as C, o as w, p as T, r as E, s as D, t as O, u as k, v as A, w as j, y as M } from "../plot-layout-Bqe4-0qZ.js";
4
+ import { n as N } from "../plot-width-D3hTycYX.js";
5
5
  import { a as P, n as F, r as I } from "../tone-scope-DKiSw-JR.js";
6
6
  import { a as L } from "../figure-format-B8kRZMlo.js";
7
7
  import { a as R, c as z, d as B, i as V, l as H, n as U, o as W, r as G, s as K, t as q, u as J } from "../point-layer-C-EYETAt.js";
8
8
  import { n as Y, t as X } from "../label-place-Z0fryBZb.js";
9
9
  import { t as Z } from "../locate-Bcg3QcP4.js";
10
10
  import { i as Q, n as $, r as ee, t as te } from "../path-BglsXpnO.js";
11
- import { t as ne } from "../plot-axes-DJkLW4wk.js";
12
- import { a as re, c as ie, d as ae, f as oe, i as se, l as ce, n as le, o as ue, p as de, r as fe, s as pe, t as me, u as he } from "../plot-marks-A64v7aTw.js";
13
- import { n as ge, r as _e, t as ve } from "../plot-surface-CJTIqtck.js";
11
+ import { t as ne } from "../plot-axes-D5S9BnBa.js";
12
+ import { a as re, c as ie, d as ae, f as oe, i as se, l as ce, n as le, o as ue, p as de, r as fe, s as pe, t as me, u as he } from "../plot-marks-FVsbFkUs.js";
13
+ import { n as ge, r as _e, t as ve } from "../plot-surface-DON6WUmk.js";
14
14
  import { a as ye, i as be, n as xe, o as Se, r as Ce, t as we } from "../scale-C2xgZyZN.js";
15
15
  export { me as AreaMark, le as BandMark, fe as BarMark, j as Chart, s as ChartCursor, n as ChartData, i as ChartInspection, f as ChartMark, l as ChartPlot, d as ChartReadout, se as ConnectorMark, z as DensityLayer, re as DotMark, o as FigureEmpty, r as FigureFrame, a as FigureInvalid, t as FigureLoading, ue as GuideMark, pe as IntervalMark, ie as LabelMark, ce as LineMark, he as LinkMark, ne as PlotAxes, ve as PlotClip, ge as PlotSurface, U as PlotViewportRoot, G as PlotViewportSurface, q as PointLayer, ae as RingMark, oe as RuleMark, de as SymbolMark, V as WHOLE_VIEW, te as areaPath, F as assignTones, I as automaticTone, O as axisTicks, C as axisTitle, we as bandScale, E as bandTicks, y as categoryPlot, N as chartStyles, xe as columnExtent, Ce as continuousScale, H as contourSegments, W as countInside, e as coverageText, m as fitDomain, X as freeLabelSpot, c as hasUniqueIds, K as hitIndex, u as inspectedLabel, be as isFiniteDomain, $ as isolatedPoints, Y as labelBox, ee as linePath, v as linearTicks, Q as linkPath, Z as locateNearest, _ as logTicks, w as numericPlot, ye as outsideDomain, D as plotBox, b as plotLabel, x as plotMargins, J as sampleGrid, Se as scaleDomainError, p as scaleTicks, B as segmentsPath, A as symlogTicks, k as tickTexts, h as ticksMinimum, g as timeAxisTicks, T as timePlot, M as timeTicks, _e as usePlotSize, P as useTones, S as valueGutter, R as visibleDomains, L as zoneOffset };
@@ -1 +1 @@
1
- export { l as ContourPlot, r as DensityMap, t as EmbeddingMap, s as ParallelCoordinates, a as ScatterMatrix, u as contourLimits, i as densityLimits, n as embeddingLimits, c as parallelLimits, o as scatterMatrixLimits } from "../embedding-map-CGM_k6lC.js";
1
+ export { l as ContourPlot, r as DensityMap, t as EmbeddingMap, s as ParallelCoordinates, a as ScatterMatrix, u as contourLimits, i as densityLimits, n as embeddingLimits, c as parallelLimits, o as scatterMatrixLimits } from "../embedding-map-DC-lgzCq.js";
@@ -1 +1 @@
1
- export { c as TokenExamples, a as TokenGrid, r as TokenLinks, t as TokenPredictions, u as TokenScaleLegend, d as TokenText, f as quoteToken, l as tokenExampleLimits, o as tokenGridCellId, s as tokenGridLimits, i as tokenLinkLimits, n as tokenPredictionLimits } from "../token-predictions-Cxx29iDr.js";
1
+ export { c as TokenExamples, a as TokenGrid, r as TokenLinks, t as TokenPredictions, u as TokenScaleLegend, d as TokenText, f as quoteToken, l as tokenExampleLimits, o as tokenGridCellId, s as tokenGridLimits, i as tokenLinkLimits, n as tokenPredictionLimits } from "../token-predictions-Pa8eUGan.js";
@@ -1 +1 @@
1
- export { n as EventStrip, t as Waterfall, r as eventStripGutter, i as eventStripLimits } from "../waterfall-CGksuTy5.js";
1
+ export { n as EventStrip, t as Waterfall, r as eventStripGutter, i as eventStripLimits } from "../waterfall-DdoEXEkT.js";
@@ -1 +1 @@
1
- export { l as BumpChart, s as CurveChart, a as HorizonChart, r as RunsChart, t as SlopeChart, u as bumpLimits, c as curveLimits, o as horizonLimits, i as runsLimits, n as slopeLimits } from "../slope-chart-DT22h_ym.js";
1
+ export { l as BumpChart, s as CurveChart, a as HorizonChart, r as RunsChart, t as SlopeChart, u as bumpLimits, c as curveLimits, o as horizonLimits, i as runsLimits, n as slopeLimits } from "../slope-chart-C8eeSgL4.js";
package/dist/charts.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { n as e, t } from "./chart-tones-ei3BC2AL.js";
2
- import { C as n, b as r, c as i, x as a } from "./plot-layout-BEuoOHbs.js";
3
- import { r as o } from "./categorical-values-DdfGIowV.js";
2
+ import { C as n, b as r, c as i, x as a } from "./plot-layout-Bqe4-0qZ.js";
3
+ import { r as o } from "./categorical-values-DCznViFp.js";
4
4
  import { i as s, n as c, t as l } from "./chart-link-AE_xuxiP.js";
5
5
  import { i as u, t as d } from "./tone-scope-DKiSw-JR.js";
6
6
  import { t as f } from "./src-DIS0YOj0.js";
@@ -0,0 +1,16 @@
1
+ // packages/teaching/src/time/clock.ts
2
+ function e() {
3
+ let e = /* @__PURE__ */ new Set(), t = { isRunning: !1 };
4
+ function n(r) {
5
+ for (let t of e) t(r);
6
+ e.size === 0 ? t.isRunning = !1 : requestAnimationFrame(n);
7
+ }
8
+ return (r) => (e.add(r), t.isRunning || (t.isRunning = !0, requestAnimationFrame(n)), () => {
9
+ e.delete(r);
10
+ });
11
+ }
12
+ var t = e();
13
+ function n() {
14
+ return typeof matchMedia == "function" && matchMedia("(prefers-reduced-motion: reduce)").matches;
15
+ }
16
+ export { t as n, n as t };
@@ -1,4 +1,4 @@
1
- import { y as e } from "./src-CpdJlDhO.js";
1
+ import { y as e } from "./src-9EJskqB_.js";
2
2
  import { d as t, f as n, i as r, r as i, u as a } from "./tokens.stylex-dF5CACEJ.js";
3
3
  import { t as o } from "./use-scroll-tab-index-Dxpdh4W7.js";
4
4
  import { t as s } from "./viewer-styles-DsFYri4K.js";
@@ -1 +1 @@
1
- export { c as CollectionEnd, p as CollectionFilters, v as CollectionPagination, l as CollectionScroll, y as CollectionToolbar, u as DataTable, d as DataTablePlaceholder, g as DataTableText, _ as DataTableTextPlaceholder, o as Details, b as DisplayOptions, x as FilterChips, s as Inspector, a as ListFooter, r as Metric, i as MetricGrid, m as TableQueryFrame, t as Timeline, n as Timestamp, f as useCollectionControls, h as useLocalTableQuery } from "./src-D5NXRJZe.js";
1
+ export { c as CollectionEnd, p as CollectionFilters, v as CollectionPagination, l as CollectionScroll, y as CollectionToolbar, u as DataTable, d as DataTablePlaceholder, g as DataTableText, _ as DataTableTextPlaceholder, o as Details, b as DisplayOptions, x as FilterChips, s as Inspector, a as ListFooter, r as Metric, i as MetricGrid, m as TableQueryFrame, t as Timeline, n as Timestamp, f as useCollectionControls, h as useLocalTableQuery } from "./src-B2rgpWap.js";
@@ -1 +1 @@
1
- export { t as CodeBlock } from "../code-block-DioAM2bZ.js";
1
+ export { t as CodeBlock } from "../code-block-BZsY2sh3.js";
@@ -1,5 +1,5 @@
1
- import { k as e, v as t, y as n } from "../src-CpdJlDhO.js";
2
- import { i as r, t as i } from "../code-block-DioAM2bZ.js";
1
+ import { k as e, v as t, y as n } from "../src-9EJskqB_.js";
2
+ import { i as r, t as i } from "../code-block-BZsY2sh3.js";
3
3
  import { t as a } from "../viewer-styles-DsFYri4K.js";
4
4
  import * as o from "@stylexjs/stylex";
5
5
  import { useEffect as s, useState as c } from "react";
@@ -44,7 +44,7 @@ function h(t) {
44
44
  let e = !0;
45
45
  async function t() {
46
46
  if (!j) try {
47
- let t = await import("../pierre-diff-DlvjyuJn.js"), n = t.prepareDiff(S);
47
+ let t = await import("../pierre-diff-aGyQK5xK.js"), n = t.prepareDiff(S);
48
48
  e && T({
49
49
  source: S,
50
50
  Component: t.PierreDiff,
@@ -1 +1 @@
1
- export { t as ContentLink } from "../content-link-NWuHp5rC.js";
1
+ export { t as ContentLink } from "../content-link-PnpcnTCx.js";
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "../use-scroll-tab-index-Dxpdh4W7.js";
2
2
  import { t } from "../visible-motion-1GcUaEi4.js";
3
- import { t as n } from "../code-block-DioAM2bZ.js";
4
- import { n as r, t as i } from "../content-link-NWuHp5rC.js";
3
+ import { t as n } from "../code-block-BZsY2sh3.js";
4
+ import { n as r, t as i } from "../content-link-PnpcnTCx.js";
5
5
  import { t as a } from "../viewer-styles-DsFYri4K.js";
6
6
  import * as o from "@stylexjs/stylex";
7
7
  import { Children as s, createContext as c, createElement as l, memo as u, useContext as d } from "react";
@@ -1,4 +1,4 @@
1
- import { c as e } from "../src-CpdJlDhO.js";
1
+ import { c as e } from "../src-9EJskqB_.js";
2
2
  import { n as t } from "../forms-CEbwzlRR.js";
3
3
  import { t as n } from "../constants.stylex-CqhVl0uU.js";
4
4
  import { u as r } from "../tokens.stylex-dF5CACEJ.js";
@@ -1,4 +1,4 @@
1
- import { A as e } from "./src-CpdJlDhO.js";
1
+ import { A as e } from "./src-9EJskqB_.js";
2
2
  import "@stylexjs/stylex";
3
3
  import { jsx as t } from "react/jsx-runtime";
4
4
  // packages/content/src/content-link.tsx
package/dist/content.js CHANGED
@@ -1 +1 @@
1
- export { o as JsonViewer, a as LogViewer, r as MediaViewer, i as MediaViewerPlaceholder, n as StackTrace, t as Trace } from "./src-CGc_hjxJ.js";
1
+ export { u as JsonViewer, l as LogViewer, s as MediaViewer, c as MediaViewerPlaceholder, o as StackTrace, t as TextMatch, a as Trace, n as fuzzyScore, r as matchRanges, i as matchSegments } from "./src-DFW49IAs.js";
@@ -1,6 +1,6 @@
1
1
  import { r as e } from "./control-styles-D3q_Qyxi.js";
2
2
  import { n as t, t as n } from "./forms-CEbwzlRR.js";
3
- import { D as r, T as i, k as a } from "./src-CpdJlDhO.js";
3
+ import { D as r, T as i, k as a } from "./src-9EJskqB_.js";
4
4
  import { r as o } from "./src-na2DdkKI.js";
5
5
  import * as s from "@stylexjs/stylex";
6
6
  import { useEffect as c, useId as l, useLayoutEffect as u, useRef as d, useState as f } from "react";
@@ -0,0 +1,175 @@
1
+ import { formatNumber as e } from "@ui-sdk/core/number";
2
+ // packages/teaching/src/spec/findings.ts
3
+ function t(e, t) {
4
+ return {
5
+ path: e,
6
+ message: t,
7
+ severity: "error"
8
+ };
9
+ }
10
+ function n(e, t) {
11
+ return {
12
+ path: e,
13
+ message: t,
14
+ severity: "advice"
15
+ };
16
+ }
17
+ function r(e) {
18
+ if (typeof e == "object" && e && !Array.isArray(e)) return new Map(Object.entries(e));
19
+ }
20
+ function i(e) {
21
+ return e === void 0 ? "nothing" : e === null ? "null" : Array.isArray(e) ? "an array" : typeof e == "object" ? "an object" : `a ${typeof e}`;
22
+ }
23
+ function a(e) {
24
+ switch (e.kind) {
25
+ case "number": return {
26
+ kind: "number",
27
+ min: e.min,
28
+ max: e.max
29
+ };
30
+ case "choice": return {
31
+ kind: "choice",
32
+ ids: e.options.map((e) => e.id)
33
+ };
34
+ case "toggle": return { kind: "toggle" };
35
+ }
36
+ }
37
+ function o(e, t, n) {
38
+ switch (t.kind) {
39
+ case "number": return typeof n == "number" && Number.isFinite(n) && n >= t.min && n <= t.max ? void 0 : `${e} takes a number from ${t.min} to ${t.max}, not ${String(n)}.`;
40
+ case "choice": return typeof n == "string" && t.ids.includes(n) ? void 0 : `${e} takes one of ${t.ids.join(", ")}, not ${String(n)}.`;
41
+ case "toggle": return typeof n == "boolean" ? void 0 : `${e} takes true or false, not ${String(n)}.`;
42
+ }
43
+ }
44
+ function s({ lesson: e, name: t, value: n }) {
45
+ let r = new Map(Object.entries(e.params)).get(t);
46
+ return r === void 0 ? Object.hasOwn(e.derived, t) ? `${t} is a derived value, so it follows the params and cannot be set.` : `"${t}" is not a param. The params: ${Object.keys(e.params).join(", ")}.` : o(t, a(r), n);
47
+ }
48
+ // packages/teaching/src/spec/describe-lesson.ts
49
+ var c = "Unavailable";
50
+ function l(e) {
51
+ return typeof e == "function" ? null : e;
52
+ }
53
+ function u(e, t) {
54
+ switch (t.kind) {
55
+ case "number": return {
56
+ name: e,
57
+ kind: "number",
58
+ label: t.label,
59
+ value: t.value,
60
+ min: t.min,
61
+ max: t.max,
62
+ step: t.step,
63
+ scale: t.scale ?? "linear",
64
+ format: l(t.format)
65
+ };
66
+ case "choice": return {
67
+ name: e,
68
+ kind: "choice",
69
+ label: t.label,
70
+ value: t.value,
71
+ options: t.options
72
+ };
73
+ case "toggle": return {
74
+ name: e,
75
+ kind: "toggle",
76
+ label: t.label,
77
+ value: t.value
78
+ };
79
+ }
80
+ }
81
+ function d(e, t) {
82
+ return {
83
+ id: t.id,
84
+ title: t.title,
85
+ goal: t.goal ?? null,
86
+ misconception: t.misconception ?? null,
87
+ hints: t.hints ?? [],
88
+ steps: t.steps ?? 0,
89
+ states: (t.states ?? []).map((t) => ({
90
+ id: t.id,
91
+ label: t.label,
92
+ values: t.values,
93
+ derived: e.compute({
94
+ ...e.defaults,
95
+ ...t.values
96
+ })
97
+ }))
98
+ };
99
+ }
100
+ function f(e) {
101
+ return {
102
+ id: e.id,
103
+ title: e.title,
104
+ params: Object.entries(e.params).map(([e, t]) => u(e, t)),
105
+ derived: Object.entries(e.derived).map(([t, n]) => ({
106
+ name: t,
107
+ label: n.label,
108
+ format: l(n.format),
109
+ reads: e.reads[t] ?? []
110
+ })),
111
+ initial: e.initial,
112
+ beats: e.beats.map((t) => d(e, t))
113
+ };
114
+ }
115
+ function p({ lesson: t, name: n, value: r, locale: i }) {
116
+ let a = new Map(Object.entries(t.params)).get(n), o = new Map(Object.entries(t.derived)).get(n);
117
+ if (typeof r == "boolean") return r ? "on" : "off";
118
+ if (typeof r == "string") return a?.kind === "choice" ? a.options.find((e) => e.id === r)?.label ?? r : r;
119
+ let s = a?.kind === "number" ? a.format : o?.format;
120
+ return Number.isFinite(r) ? e(r, i, s ?? {}) : c;
121
+ }
122
+ function m(e, t) {
123
+ return e.params[t]?.label ?? e.derived[t]?.label ?? t;
124
+ }
125
+ function h(e, t) {
126
+ switch (e.kind) {
127
+ case "number": return `from ${t(e.min)} to ${t(e.max)}${e.scale === "log" ? ", on a log scale" : ""}`;
128
+ case "choice": return `one of ${e.options.map((e) => e.label).join(", ")}`;
129
+ case "toggle": return "on or off";
130
+ }
131
+ }
132
+ function g(e, t) {
133
+ function n(n, r = " ") {
134
+ return Object.entries(n).map(([n, i]) => `${m(e, n)}${r}${p({
135
+ lesson: e,
136
+ name: n,
137
+ value: i,
138
+ locale: t
139
+ })}`).join("; ");
140
+ }
141
+ let r = Object.entries(e.params).map(([n, r]) => `- ${r.label} (${n}), ${h(r, (r) => p({
142
+ lesson: e,
143
+ name: n,
144
+ value: r,
145
+ locale: t
146
+ }))}. Opens at ${p({
147
+ lesson: e,
148
+ name: n,
149
+ value: r.value,
150
+ locale: t
151
+ })}.`), i = Object.entries(e.derived).map(([t, n]) => {
152
+ let r = e.reads[t] ?? [];
153
+ return `- ${n.label} (${t}) reads ${r.length > 0 ? r.join(", ") : "nothing"}.`;
154
+ }), a = e.beats.flatMap((t, r) => [
155
+ "",
156
+ `Beat ${r + 1} of ${e.beats.length}: ${t.title} (${t.id}). Reveal steps after its first view: ${t.steps ?? 0}.`,
157
+ ...t.goal === void 0 ? [] : [`Goal: ${t.goal}`],
158
+ ...t.misconception === void 0 ? [] : [`Misconception: ${t.misconception}`],
159
+ ...(t.hints ?? []).map((e) => `Hint: ${e}`),
160
+ ...(t.states ?? []).length === 0 ? ["No declared states; the beat shows the values the reader has."] : [],
161
+ ...(t.states ?? []).map((t) => `State "${t.label}" (${t.id}) sets ${n(t.values, " to ")}. Then ${n(e.compute({
162
+ ...e.defaults,
163
+ ...t.values
164
+ }))}.`)
165
+ ]);
166
+ return [
167
+ `Lesson "${e.title}" (${e.id}).`,
168
+ "Params:",
169
+ ...r,
170
+ ...i.length > 0 ? ["Derived values:", ...i] : [],
171
+ `Opening: ${n(e.initial)}.`,
172
+ ...a
173
+ ].join("\n");
174
+ }
175
+ export { t as a, o as c, n as i, s as l, g as n, r as o, p as r, i as s, f as t };
@@ -1,14 +1,14 @@
1
1
  import { r as e } from "./tokens.stylex-dF5CACEJ.js";
2
- import { A as t, O as n, S as r, a as i, c as a, i as o, k as s, n as c, w as l, x as u } from "./plot-layout-BEuoOHbs.js";
2
+ import { A as t, O as n, S as r, a as i, c as a, i as o, k as s, n as c, w as l, x as u } from "./plot-layout-Bqe4-0qZ.js";
3
3
  import { i as d, r as f } from "./chart-link-AE_xuxiP.js";
4
4
  import { a as p } from "./tone-scope-DKiSw-JR.js";
5
5
  import { r as m } from "./figure-format-B8kRZMlo.js";
6
6
  import { a as h, o as g } from "./scale-C2xgZyZN.js";
7
- import { i as _, l as v, n as y, r as b, t as x } from "./figure-frame-wRkIEAwe.js";
8
- import { n as S } from "./plot-width-DcqtSgzb.js";
9
- import { t as C } from "./plot-axes-DJkLW4wk.js";
10
- import { a as w, f as T, r as E, s as D } from "./plot-marks-A64v7aTw.js";
11
- import { n as O, r as k, t as A } from "./plot-surface-CJTIqtck.js";
7
+ import { i as _, l as v, n as y, r as b, t as x } from "./figure-frame-BjFzbl3m.js";
8
+ import { n as S } from "./plot-width-D3hTycYX.js";
9
+ import { t as C } from "./plot-axes-D5S9BnBa.js";
10
+ import { a as w, f as T, r as E, s as D } from "./plot-marks-FVsbFkUs.js";
11
+ import { n as O, r as k, t as A } from "./plot-surface-DON6WUmk.js";
12
12
  import { t as ee } from "./locate-Bcg3QcP4.js";
13
13
  import * as j from "@stylexjs/stylex";
14
14
  import { useId as M } from "react";
@@ -108,6 +108,7 @@ function z({ frame: e, isEmpty: t, emptyLabel: i, rows: f, value: p, valueDomain
108
108
  }),
109
109
  /* @__PURE__ */ P(A, {
110
110
  box: U,
111
+ pad: 6,
111
112
  children: L({
112
113
  plot: H,
113
114
  inspected: l,
@@ -383,7 +384,8 @@ function re(e) {
383
384
  radius: Y,
384
385
  emphasis: u,
385
386
  isInspected: t.id === n,
386
- isSelected: t.id === r
387
+ isSelected: t.id === r,
388
+ mark: S.length === 1 ? t.id : `${t.id}:${a.id}`
387
389
  })] }, a.id);
388
390
  }) }, t.id)];
389
391
  })
@@ -1,18 +1,18 @@
1
1
  import { r as e } from "./tokens.stylex-dF5CACEJ.js";
2
- import { k as t } from "./src-CpdJlDhO.js";
3
- import { h as n, p as r } from "./src-1EHkSFS-.js";
2
+ import { k as t } from "./src-9EJskqB_.js";
3
+ import { b as n, v as r } from "./src-Dxs3Buo_.js";
4
4
  import { t as i } from "./forms-CEbwzlRR.js";
5
5
  import { t as a } from "./chart-tones-ei3BC2AL.js";
6
- import { A as o, O as s, S as c, T as l, a as u, c as d, k as ee, l as f, n as te, o as p, s as m, t as h, w as ne, x as re } from "./plot-layout-BEuoOHbs.js";
6
+ import { A as o, O as s, S as c, T as l, a as u, c as d, k as ee, l as f, n as te, o as p, s as m, t as h, w as ne, x as re } from "./plot-layout-Bqe4-0qZ.js";
7
7
  import { i as g } from "./chart-link-AE_xuxiP.js";
8
8
  import { a as _ } from "./tone-scope-DKiSw-JR.js";
9
9
  import { r as v } from "./figure-format-B8kRZMlo.js";
10
10
  import { a as y, n as b, o as x, r as S } from "./scale-C2xgZyZN.js";
11
- import { i as ie, l as ae, n as oe, r as se, t as ce } from "./figure-frame-wRkIEAwe.js";
12
- import { n as C } from "./plot-width-DcqtSgzb.js";
13
- import { t as le } from "./plot-axes-DJkLW4wk.js";
14
- import { a as w, c as ue, l as T } from "./plot-marks-A64v7aTw.js";
15
- import { n as de, r as fe, t as pe } from "./plot-surface-CJTIqtck.js";
11
+ import { i as ie, l as ae, n as oe, r as se, t as ce } from "./figure-frame-BjFzbl3m.js";
12
+ import { n as C } from "./plot-width-D3hTycYX.js";
13
+ import { t as le } from "./plot-axes-D5S9BnBa.js";
14
+ import { a as w, c as ue, l as T } from "./plot-marks-FVsbFkUs.js";
15
+ import { n as de, r as fe, t as pe } from "./plot-surface-DON6WUmk.js";
16
16
  import { n as E, r as D } from "./path-BglsXpnO.js";
17
17
  import { t as O } from "./color-legend-CIo7DhXB.js";
18
18
  import { a as k, c as A, d as j, i as M, l as me, n as N, o as P, r as he, s as F, t as I, u as L } from "./point-layer-C-EYETAt.js";
package/dist/feedback.js CHANGED
@@ -1 +1 @@
1
- export { t as AsyncRegion, c as ButtonPlaceholder, n as ContentReveal, p as EmptyState, l as FieldPlaceholder, r as LoadingScope, o as Meter, m as Notice, s as Progress, u as Skeleton, d as SkeletonText, f as Spinner, i as Toaster, a as toast } from "./src-CExIrXPC.js";
1
+ export { t as AsyncRegion, c as ButtonPlaceholder, n as ContentReveal, p as EmptyState, l as FieldPlaceholder, r as LoadingScope, o as Meter, m as Notice, s as Progress, u as Skeleton, d as SkeletonText, f as Spinner, i as Toaster, a as toast } from "./src-npqwq3Sa.js";
@@ -1,8 +1,8 @@
1
1
  import { r as e } from "./tokens.stylex-dF5CACEJ.js";
2
2
  import { t } from "./accessibility-P89UG9-r.js";
3
- import { t as n } from "./src-CpdJlDhO.js";
4
- import { d as r, m as i, u as a } from "./src-CExIrXPC.js";
5
- import { C as o, b as s, c } from "./plot-layout-BEuoOHbs.js";
3
+ import { t as n } from "./src-9EJskqB_.js";
4
+ import { d as r, m as i, u as a } from "./src-npqwq3Sa.js";
5
+ import { C as o, b as s, c } from "./plot-layout-Bqe4-0qZ.js";
6
6
  import * as l from "@stylexjs/stylex";
7
7
  import { jsx as u, jsxs as d } from "react/jsx-runtime";
8
8
  import { formatNumber as f } from "@ui-sdk/core/number";
@@ -1 +1 @@
1
- export { o as Calendar, a as DatePicker, i as DateRangePicker, t as EventMonth, r as MonthPicker, n as MonthRangePicker, s as addCalendarDays, c as addCalendarMonths, l as parseCalendarDate, u as parseCalendarMonth, d as serializeCalendarDate, f as serializeCalendarMonth } from "../dates-Cww8UR_n.js";
1
+ export { o as Calendar, a as DatePicker, i as DateRangePicker, t as EventMonth, r as MonthPicker, n as MonthRangePicker, s as addCalendarDays, c as addCalendarMonths, l as parseCalendarDate, u as parseCalendarMonth, d as serializeCalendarDate, f as serializeCalendarMonth } from "../dates-ckJdYF7t.js";
package/dist/forms.js CHANGED
@@ -1,3 +1,3 @@
1
- import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g, v as _ } from "./src-1EHkSFS-.js";
2
- import { i as v, n as y, t as b } from "./forms-CEbwzlRR.js";
3
- export { e as AgentAvatarPicker, p as Checkbox, _ as Combobox, b as Field, f as Fieldset, i as FilePicker, r as FormActions, g as FormStatus, y as Input, l as InputGroup, o as NumberField, s as RadioGroup, t as SegmentedControl, c as Select, n as SelectControl, u as SettingsRow, h as SettingsSection, a as Slider, d as Switch, v as Textarea, m as ToggleGroup };
1
+ import { C as e, S as t, _ as n, a as r, b as i, c as a, d as o, f as s, g as c, h as l, i as u, l as d, m as f, n as p, o as m, p as h, r as g, s as _, t as v, u as y, v as b, x, y as S } from "./src-Dxs3Buo_.js";
2
+ import { i as C, n as w, t as T } from "./forms-CEbwzlRR.js";
3
+ export { t as AgentAvatarPicker, a as Checkbox, e as Combobox, T as Field, b as Fieldset, n as FilePicker, c as FormActions, l as FormStatus, w as Input, S as InputGroup, i as NumberField, d as RadioGroup, y as SegmentedControl, f as Select, h as SelectControl, _ as SettingsRow, m as SettingsSection, x as Slider, o as Switch, C as Textarea, s as ToggleGroup, v as TokenInput, p as defaultCodec, g as fromText, u as toLabel, r as toText };
@@ -1,11 +1,11 @@
1
1
  import { r as e } from "./tokens.stylex-dF5CACEJ.js";
2
- import { g as t } from "./src-1EHkSFS-.js";
2
+ import { x as t } from "./src-Dxs3Buo_.js";
3
3
  import { t as n } from "./chart-tones-ei3BC2AL.js";
4
- import { A as r, E as i, O as a, S as o, T as s, k as c, w as l } from "./plot-layout-BEuoOHbs.js";
4
+ import { A as r, E as i, O as a, S as o, T as s, k as c, w as l } from "./plot-layout-Bqe4-0qZ.js";
5
5
  import { r as u } from "./figure-format-B8kRZMlo.js";
6
6
  import { a as d, o as f } from "./scale-C2xgZyZN.js";
7
- import { i as p, l as m, n as h, r as g, t as _ } from "./figure-frame-wRkIEAwe.js";
8
- import { n as v, t as y } from "./plot-width-DcqtSgzb.js";
7
+ import { i as p, l as m, n as h, r as g, t as _ } from "./figure-frame-BjFzbl3m.js";
8
+ import { n as v, t as y } from "./plot-width-D3hTycYX.js";
9
9
  import * as b from "@stylexjs/stylex";
10
10
  import { useId as x, useState as S } from "react";
11
11
  import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export { _ as Accordion, b as AgentAvatar, w as Avatar, t as Badge, T as Button, v as Collapsible, d as Columns, E as ConfirmButton, y as CopyValue, f as Divider, n as Heading, D as IconButton, O as IconLink, r as Identifier, i as Muted, p as Panel, a as Prose, j as RouteLink, m as Row, l as SectionHeading, h as Stack, o as Status, s as Subheading, g as SurfaceLink, c as Text, k as TextButton, A as TextLink, x as agentAppearance, S as agentAvatarColors, C as agentAvatarShapes } from "./src-CpdJlDhO.js";
1
+ export { _ as Accordion, b as AgentAvatar, w as Avatar, t as Badge, T as Button, v as Collapsible, d as Columns, E as ConfirmButton, y as CopyValue, f as Divider, n as Heading, D as IconButton, O as IconLink, r as Identifier, i as Muted, p as Panel, a as Prose, j as RouteLink, m as Row, l as SectionHeading, h as Stack, o as Status, s as Subheading, g as SurfaceLink, c as Text, k as TextButton, A as TextLink, x as agentAppearance, S as agentAvatarColors, C as agentAvatarShapes } from "./src-9EJskqB_.js";
@@ -1,12 +1,12 @@
1
- import { C as e } from "../plot-layout-BEuoOHbs.js";
1
+ import { C as e } from "../plot-layout-Bqe4-0qZ.js";
2
2
  import { r as t } from "../figure-format-B8kRZMlo.js";
3
3
  import { i as n, t as r } from "../tone-scope-DKiSw-JR.js";
4
- import { n as i, r as a } from "../figure-frame-wRkIEAwe.js";
5
- import { d as o, g as s, u as c } from "../src-D5NXRJZe.js";
4
+ import { n as i, r as a } from "../figure-frame-BjFzbl3m.js";
5
+ import { d as o, g as s, u as c } from "../src-B2rgpWap.js";
6
6
  import { n as l, t as u } from "../chart-link-AE_xuxiP.js";
7
- import { a as d, i as f, o as p, r as m, t as h } from "../cells--Bd1fQFR.js";
7
+ import { a as d, i as f, o as p, r as m, t as h } from "../cells-CNZE4us2.js";
8
8
  import { t as g } from "../accessibility-P89UG9-r.js";
9
- import { r as _, t as v } from "../dumbbell-plot-B2ZTgQaI.js";
9
+ import { r as _, t as v } from "../dumbbell-plot-CMv9llfd.js";
10
10
  import * as y from "@stylexjs/stylex";
11
11
  import { jsx as b, jsxs as x } from "react/jsx-runtime";
12
12
  // packages/kits/src/evaluation/evaluation-data.ts