@mechane-ai/elements 0.46.0 → 0.48.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.
- package/README.md +590 -34
- package/bin/mechane-elements-catalog.mjs +104 -12
- package/dist/ai.js +4 -4
- package/dist/article-BXZr10QQ.js +1904 -0
- package/dist/article.js +1 -0
- package/dist/catalog.json +3696 -33
- package/dist/categorical-values-BpVq8cFj.js +107 -0
- package/dist/cells-xVmnQ9oQ.js +384 -0
- package/dist/chart-link-AE_xuxiP.js +35 -0
- package/dist/chart-tones-ei3BC2AL.js +27 -0
- package/dist/charts/cartesian.js +1 -2958
- package/dist/charts/cells.js +1 -0
- package/dist/charts/comparison.js +1 -0
- package/dist/charts/distribution.js +1 -781
- package/dist/charts/figure.js +3404 -0
- package/dist/charts/graph.js +1 -655
- package/dist/charts/hierarchy.js +1 -121
- package/dist/charts/image.js +1 -0
- package/dist/charts/matrix.js +4 -644
- package/dist/charts/plot.js +15 -0
- package/dist/charts/relationship.js +1 -0
- package/dist/charts/text.js +1 -0
- package/dist/charts/timeline.js +1 -266
- package/dist/charts/transforms.js +677 -0
- package/dist/charts/trend.js +1 -0
- package/dist/charts.js +8 -3
- package/dist/clock-DSm5lkNE.js +16 -0
- package/dist/collections.js +1 -2195
- package/dist/color-legend-CIo7DhXB.js +62 -0
- package/dist/dates-Cww8UR_n.js +810 -0
- package/dist/describe-lesson-BmREzDpt.js +175 -0
- package/dist/dumbbell-plot-DQdTxDeO.js +509 -0
- package/dist/embedding-map-CF-J-8JW.js +1929 -0
- package/dist/feedback.js +1 -1
- package/dist/figure-format-B8kRZMlo.js +36 -0
- package/dist/figure-frame-BJ3REgTA.js +270 -0
- package/dist/forms/dates.js +1 -810
- package/dist/forms.js +1 -1
- package/dist/heatmap-scale-Zte6Ya-g.js +20 -0
- package/dist/image-grid-Dl2sjIMB.js +598 -0
- package/dist/kits/evaluation.js +431 -0
- package/dist/kits/interpretability.js +1033 -0
- package/dist/kits/operations.js +239 -0
- package/dist/kits/training.js +335 -0
- package/dist/label-place-Z0fryBZb.js +42 -0
- package/dist/lesson/agent.js +811 -0
- package/dist/lesson/spec.js +661 -0
- package/dist/lesson.js +5 -0
- package/dist/locate-Bcg3QcP4.js +11 -0
- package/dist/mdx.js +227 -0
- package/dist/packages/charts/src/cartesian/bar-chart.d.ts +40 -21
- package/dist/packages/charts/src/cartesian/bar-data.d.ts +15 -4
- package/dist/packages/charts/src/cartesian/bar-overlays.d.ts +7 -3
- package/dist/packages/charts/src/cartesian/breakdown-bar.d.ts +10 -8
- package/dist/packages/charts/src/cartesian/bridge-chart.d.ts +20 -16
- package/dist/packages/charts/src/cartesian/bridge-data.d.ts +5 -4
- package/dist/packages/charts/src/cartesian/composition-bars.d.ts +8 -4
- package/dist/packages/charts/src/cartesian/index.d.ts +5 -5
- package/dist/packages/charts/src/cartesian/reference-lines.d.ts +25 -18
- package/dist/packages/charts/src/cartesian/scatter-plot.d.ts +30 -25
- package/dist/packages/charts/src/cartesian/sparkline.d.ts +14 -2
- package/dist/packages/charts/src/cartesian/time-series-bands.d.ts +3 -2
- package/dist/packages/charts/src/cartesian/time-series-data.d.ts +12 -2
- package/dist/packages/charts/src/cartesian/time-series-line.d.ts +2 -2
- package/dist/packages/charts/src/cartesian/time-series-overlays.d.ts +6 -4
- package/dist/packages/charts/src/cartesian/time-series.d.ts +60 -36
- package/dist/packages/charts/src/cartesian/value-labels.d.ts +22 -0
- package/dist/packages/charts/src/categorical-values.d.ts +1 -1
- package/dist/packages/charts/src/cells/bar-cell.d.ts +13 -0
- package/dist/packages/charts/src/cells/cell-layout.d.ts +81 -0
- package/dist/packages/charts/src/cells/change-cell.d.ts +17 -0
- package/dist/packages/charts/src/cells/heat-cell.d.ts +19 -0
- package/dist/packages/charts/src/cells/index.d.ts +11 -0
- package/dist/packages/charts/src/cells/interval-cell.d.ts +16 -0
- package/dist/packages/charts/src/cells/spark-cell.d.ts +22 -0
- package/dist/packages/charts/src/chart-frame.d.ts +14 -7
- package/dist/packages/charts/src/chart-grid.d.ts +19 -0
- package/dist/packages/charts/src/chart-input.d.ts +1 -9
- package/dist/packages/charts/src/chart-link.d.ts +56 -0
- package/dist/packages/charts/src/chart.d.ts +0 -8
- package/dist/packages/charts/src/comparison/bullet-bar.d.ts +34 -0
- package/dist/packages/charts/src/comparison/comparison-plot.d.ts +54 -0
- package/dist/packages/charts/src/comparison/dot-plot.d.ts +41 -0
- package/dist/packages/charts/src/comparison/dumbbell-plot.d.ts +33 -0
- package/dist/packages/charts/src/comparison/index.d.ts +6 -0
- package/dist/packages/charts/src/distribution/box-plot.d.ts +40 -0
- package/dist/packages/charts/src/distribution/distribution-input.d.ts +5 -3
- package/dist/packages/charts/src/distribution/distribution-plot.d.ts +28 -161
- package/dist/packages/charts/src/distribution/ecdf.d.ts +16 -15
- package/dist/packages/charts/src/distribution/group-plot-input.d.ts +35 -0
- package/dist/packages/charts/src/distribution/group-plot-layout.d.ts +79 -0
- package/dist/packages/charts/src/distribution/group-plot.d.ts +73 -0
- package/dist/packages/charts/src/distribution/histogram.d.ts +16 -16
- package/dist/packages/charts/src/distribution/index.d.ts +11 -0
- package/dist/packages/charts/src/distribution/interval-plot.d.ts +16 -13
- package/dist/packages/charts/src/distribution/ranked-bars.d.ts +17 -14
- package/dist/packages/charts/src/distribution/ridgeline.d.ts +34 -0
- package/dist/packages/charts/src/distribution/strip-plot.d.ts +37 -0
- package/dist/packages/charts/src/distribution/violin-plot.d.ts +34 -0
- package/dist/packages/charts/src/figure/figure-format.d.ts +34 -0
- package/dist/packages/charts/src/figure/figure-frame.d.ts +47 -0
- package/dist/packages/charts/src/figure/figure-props.d.ts +54 -0
- package/dist/packages/charts/src/figure/tone-scope.d.ts +32 -0
- package/dist/packages/charts/src/graph/attribution-graph.d.ts +62 -0
- package/dist/packages/charts/src/graph/attribution-layout.d.ts +88 -0
- package/dist/packages/charts/src/graph/flow-diagram.d.ts +14 -15
- package/dist/packages/charts/src/graph/flow-layout.d.ts +4 -2
- package/dist/packages/charts/src/graph/graph-canvas.d.ts +33 -0
- package/dist/packages/charts/src/graph/index.d.ts +6 -2
- package/dist/packages/charts/src/graph/relation-graph.d.ts +24 -13
- package/dist/packages/charts/src/graph/tree-diagram.d.ts +41 -0
- package/dist/packages/charts/src/graph/tree-layout.d.ts +71 -0
- package/dist/packages/charts/src/hierarchy/area-mark.d.ts +17 -0
- package/dist/packages/charts/src/hierarchy/icicle.d.ts +35 -0
- package/dist/packages/charts/src/hierarchy/index.d.ts +2 -0
- package/dist/packages/charts/src/hierarchy/partition-layout.d.ts +25 -0
- package/dist/packages/charts/src/hierarchy/treemap-layout.d.ts +26 -0
- package/dist/packages/charts/src/hierarchy/treemap.d.ts +11 -9
- package/dist/packages/charts/src/image/attribution-legend.d.ts +13 -0
- package/dist/packages/charts/src/image/attribution-overlay.d.ts +50 -0
- package/dist/packages/charts/src/image/attribution-ramp.d.ts +16 -0
- package/dist/packages/charts/src/image/image-atlas.d.ts +37 -0
- package/dist/packages/charts/src/image/image-fill.d.ts +9 -0
- package/dist/packages/charts/src/image/image-grid.d.ts +26 -0
- package/dist/packages/charts/src/image/image-input.d.ts +27 -0
- package/dist/packages/charts/src/image/image-tile.d.ts +27 -0
- package/dist/packages/charts/src/image/index.d.ts +7 -0
- package/dist/packages/charts/src/index.d.ts +15 -1
- package/dist/packages/charts/src/matrix/attention-matrix.d.ts +41 -0
- package/dist/packages/charts/src/matrix/calendar-heatmap.d.ts +37 -0
- package/dist/packages/charts/src/matrix/color-legend.d.ts +9 -2
- package/dist/packages/charts/src/matrix/confusion-matrix.d.ts +36 -0
- package/dist/packages/charts/src/matrix/correlation-matrix.d.ts +34 -0
- package/dist/packages/charts/src/matrix/heatmap-scale.d.ts +8 -2
- package/dist/packages/charts/src/matrix/index.d.ts +15 -3
- package/dist/packages/charts/src/matrix/matrix-cells.d.ts +27 -3
- package/dist/packages/charts/src/matrix/matrix-figure.d.ts +50 -0
- package/dist/packages/charts/src/matrix/matrix-mark.d.ts +34 -0
- package/dist/packages/charts/src/matrix/matrix-presets.d.ts +20 -0
- package/dist/packages/charts/src/matrix/matrix-range.d.ts +45 -0
- package/dist/packages/charts/src/matrix/matrix-strip.d.ts +13 -14
- package/dist/packages/charts/src/matrix/matrix-types.d.ts +40 -0
- package/dist/packages/charts/src/matrix/matrix.d.ts +13 -11
- package/dist/packages/charts/src/matrix/token-heatmap.d.ts +16 -10
- package/dist/packages/charts/src/plot/contours.d.ts +45 -0
- package/dist/packages/charts/src/plot/index.d.ts +49 -0
- package/dist/packages/charts/src/plot/label-place.d.ts +35 -0
- package/dist/packages/charts/src/plot/locate.d.ts +18 -0
- package/dist/packages/charts/src/plot/path.d.ts +39 -0
- package/dist/packages/charts/src/plot/plot-axes.d.ts +20 -0
- package/dist/packages/charts/src/plot/plot-layout.d.ts +221 -0
- package/dist/packages/charts/src/plot/plot-marks.d.ts +128 -0
- package/dist/packages/charts/src/plot/plot-surface.d.ts +32 -0
- package/dist/packages/charts/src/plot/render/density-layer.d.ts +17 -0
- package/dist/packages/charts/src/plot/render/hit-index.d.ts +37 -0
- package/dist/packages/charts/src/plot/render/plot-viewport.d.ts +39 -0
- package/dist/packages/charts/src/plot/render/point-layer.d.ts +41 -0
- package/dist/packages/charts/src/plot/render/theme-colors.d.ts +15 -0
- package/dist/packages/charts/src/plot/scale.d.ts +48 -0
- package/dist/packages/charts/src/plot/ticks.d.ts +34 -0
- package/dist/packages/charts/src/plot-width.d.ts +3 -2
- package/dist/packages/charts/src/relationship/contour-plot.d.ts +61 -0
- package/dist/packages/charts/src/relationship/density-map.d.ts +45 -0
- package/dist/packages/charts/src/relationship/embedding-map.d.ts +75 -0
- package/dist/packages/charts/src/relationship/index.d.ts +11 -0
- package/dist/packages/charts/src/relationship/level-legend.d.ts +11 -0
- package/dist/packages/charts/src/relationship/measures.d.ts +85 -0
- package/dist/packages/charts/src/relationship/parallel-coordinates.d.ts +30 -0
- package/dist/packages/charts/src/relationship/range-controls.d.ts +20 -0
- package/dist/packages/charts/src/relationship/scatter-matrix.d.ts +20 -0
- package/dist/packages/charts/src/spec/chart-guide.d.ts +21 -0
- package/dist/packages/charts/src/spec/figure-registry.d.ts +44 -0
- package/dist/packages/charts/src/spec/figure-spec.d.ts +147 -0
- package/dist/packages/charts/src/spec/figure-text.d.ts +8 -0
- package/dist/packages/charts/src/spec/figure.d.ts +12 -0
- package/dist/packages/charts/src/spec/guide-data.d.ts +85 -0
- package/dist/packages/charts/src/spec/index.d.ts +10 -0
- package/dist/packages/charts/src/spec/validate-figure.d.ts +15 -0
- package/dist/packages/charts/src/text/index.d.ts +11 -0
- package/dist/packages/charts/src/text/token-examples.d.ts +42 -0
- package/dist/packages/charts/src/text/token-grid.d.ts +47 -0
- package/dist/packages/charts/src/text/token-links.d.ts +49 -0
- package/dist/packages/charts/src/text/token-predictions.d.ts +38 -0
- package/dist/packages/charts/src/text/token-scale.d.ts +20 -0
- package/dist/packages/charts/src/text/token-text.d.ts +39 -0
- package/dist/packages/charts/src/timeline/event-strip.d.ts +70 -0
- package/dist/packages/charts/src/timeline/index.d.ts +3 -1
- package/dist/packages/charts/src/timeline/waterfall.d.ts +24 -13
- package/dist/packages/charts/src/transforms/bins.d.ts +91 -0
- package/dist/packages/charts/src/transforms/density.d.ts +53 -0
- package/dist/packages/charts/src/transforms/fits.d.ts +50 -0
- package/dist/packages/charts/src/transforms/index.d.ts +19 -0
- package/dist/packages/charts/src/transforms/matrices.d.ts +49 -0
- package/dist/packages/charts/src/transforms/quantiles.d.ts +96 -0
- package/dist/packages/charts/src/transforms/ranks.d.ts +44 -0
- package/dist/packages/charts/src/transforms/runs.d.ts +47 -0
- package/dist/packages/charts/src/transforms/sampling.d.ts +75 -0
- package/dist/packages/charts/src/transforms/smoothing.d.ts +41 -0
- package/dist/packages/charts/src/transforms/values.d.ts +70 -0
- package/dist/packages/charts/src/trend/bump-chart.d.ts +33 -0
- package/dist/packages/charts/src/trend/column-figure.d.ts +38 -0
- package/dist/packages/charts/src/trend/column-positions.d.ts +21 -0
- package/dist/packages/charts/src/trend/curve-chart.d.ts +69 -0
- package/dist/packages/charts/src/trend/end-labels.d.ts +40 -0
- package/dist/packages/charts/src/trend/horizon-chart.d.ts +37 -0
- package/dist/packages/charts/src/trend/index.d.ts +10 -0
- package/dist/packages/charts/src/trend/line-locate.d.ts +21 -0
- package/dist/packages/charts/src/trend/runs-chart.d.ts +50 -0
- package/dist/packages/charts/src/trend/slope-chart.d.ts +35 -0
- package/dist/packages/kits/src/evaluation/evaluation-data.d.ts +31 -0
- package/dist/packages/kits/src/evaluation/index.d.ts +8 -0
- package/dist/packages/kits/src/evaluation/leaderboard-cells.d.ts +62 -0
- package/dist/packages/kits/src/evaluation/leaderboard.d.ts +59 -0
- package/dist/packages/kits/src/evaluation/model-comparison.d.ts +59 -0
- package/dist/packages/kits/src/evaluation/score-breakdown.d.ts +33 -0
- package/dist/packages/kits/src/interpretability/attention-head-grid.d.ts +56 -0
- package/dist/packages/kits/src/interpretability/attribution-workbench.d.ts +29 -0
- package/dist/packages/kits/src/interpretability/embedding-atlas.d.ts +41 -0
- package/dist/packages/kits/src/interpretability/feature-card.d.ts +33 -0
- package/dist/packages/kits/src/interpretability/feature-list.d.ts +51 -0
- package/dist/packages/kits/src/interpretability/feature-logits.d.ts +23 -0
- package/dist/packages/kits/src/interpretability/features.d.ts +70 -0
- package/dist/packages/kits/src/interpretability/index.d.ts +16 -0
- package/dist/packages/kits/src/interpretability/kit-styles.d.ts +118 -0
- package/dist/packages/kits/src/interpretability/logit-lens.d.ts +50 -0
- package/dist/packages/kits/src/interpretability/node-panel.d.ts +32 -0
- package/dist/packages/kits/src/interpretability/shared-link.d.ts +8 -0
- package/dist/packages/kits/src/interpretability/steering-panel.d.ts +52 -0
- package/dist/packages/kits/src/operations/budget-board.d.ts +49 -0
- package/dist/packages/kits/src/operations/incident-timeline.d.ts +30 -0
- package/dist/packages/kits/src/operations/index.d.ts +6 -0
- package/dist/packages/kits/src/operations/service-health.d.ts +66 -0
- package/dist/packages/kits/src/training/index.d.ts +8 -0
- package/dist/packages/kits/src/training/run-dashboard.d.ts +49 -0
- package/dist/packages/kits/src/training/run-legend.d.ts +21 -0
- package/dist/packages/kits/src/training/run-marker.d.ts +5 -0
- package/dist/packages/kits/src/training/run-state.d.ts +7 -0
- package/dist/packages/kits/src/training/run-table.d.ts +63 -0
- package/dist/packages/kits/src/training/runs-overview.d.ts +20 -0
- package/dist/packages/kits/src/training/runs.d.ts +34 -0
- package/dist/packages/teaching/src/agent/index.d.ts +11 -0
- package/dist/packages/teaching/src/agent/learner-trace.d.ts +84 -0
- package/dist/packages/teaching/src/agent/lesson-bridge.d.ts +59 -0
- package/dist/packages/teaching/src/agent/lesson-tour.d.ts +63 -0
- package/dist/packages/teaching/src/agent/tutor-tools.d.ts +86 -0
- package/dist/packages/teaching/src/article/article-checks.d.ts +9 -0
- package/dist/packages/teaching/src/article/article-context.d.ts +49 -0
- package/dist/packages/teaching/src/article/article-error.d.ts +12 -0
- package/dist/packages/teaching/src/article/article-labels.d.ts +54 -0
- package/dist/packages/teaching/src/article/article-layout.stylex.d.ts +14 -0
- package/dist/packages/teaching/src/article/article-outline.d.ts +9 -0
- package/dist/packages/teaching/src/article/article.d.ts +42 -0
- package/dist/packages/teaching/src/article/beat-steps.d.ts +18 -0
- package/dist/packages/teaching/src/article/beat.d.ts +16 -0
- package/dist/packages/teaching/src/article/challenge.d.ts +29 -0
- package/dist/packages/teaching/src/article/exercise-styles.d.ts +76 -0
- package/dist/packages/teaching/src/article/figure.d.ts +51 -0
- package/dist/packages/teaching/src/article/index.d.ts +31 -0
- package/dist/packages/teaching/src/article/lesson-values.d.ts +5 -0
- package/dist/packages/teaching/src/article/linked-target.d.ts +22 -0
- package/dist/packages/teaching/src/article/notes.d.ts +36 -0
- package/dist/packages/teaching/src/article/outline-types.d.ts +73 -0
- package/dist/packages/teaching/src/article/predict.d.ts +58 -0
- package/dist/packages/teaching/src/article/progress-store.d.ts +64 -0
- package/dist/packages/teaching/src/article/scrolly.d.ts +26 -0
- package/dist/packages/teaching/src/article/term.d.ts +35 -0
- package/dist/packages/teaching/src/article/tex.d.ts +12 -0
- package/dist/packages/teaching/src/article/view-essay.d.ts +13 -0
- package/dist/packages/teaching/src/article/view-present.d.ts +8 -0
- package/dist/packages/teaching/src/article/view-sheet.d.ts +7 -0
- package/dist/packages/teaching/src/article/view-static.d.ts +7 -0
- package/dist/packages/teaching/src/article/walk.d.ts +34 -0
- package/dist/packages/teaching/src/lesson/bound-value.d.ts +29 -0
- package/dist/packages/teaching/src/lesson/define-lesson.d.ts +136 -0
- package/dist/packages/teaching/src/lesson/index.d.ts +24 -0
- package/dist/packages/teaching/src/lesson/inline-choice.d.ts +12 -0
- package/dist/packages/teaching/src/lesson/lesson-context.d.ts +18 -0
- package/dist/packages/teaching/src/lesson/lesson-error.d.ts +12 -0
- package/dist/packages/teaching/src/lesson/lesson-locale.d.ts +4 -0
- package/dist/packages/teaching/src/lesson/lesson-persistence.d.ts +17 -0
- package/dist/packages/teaching/src/lesson/lesson-player.d.ts +51 -0
- package/dist/packages/teaching/src/lesson/lesson-store.d.ts +84 -0
- package/dist/packages/teaching/src/lesson/lesson.d.ts +39 -0
- package/dist/packages/teaching/src/lesson/param-controls.d.ts +14 -0
- package/dist/packages/teaching/src/lesson/param.d.ts +34 -0
- package/dist/packages/teaching/src/lesson/playback.d.ts +42 -0
- package/dist/packages/teaching/src/lesson/transport.d.ts +19 -0
- package/dist/packages/teaching/src/lesson/use-lesson.d.ts +36 -0
- package/dist/packages/teaching/src/mdx/essay-components.d.ts +79 -0
- package/dist/packages/teaching/src/mdx/essay-markdown.d.ts +41 -0
- package/dist/packages/teaching/src/mdx/essay.d.ts +32 -0
- package/dist/packages/teaching/src/mdx/index.d.ts +9 -0
- package/dist/packages/teaching/src/mdx/requested-view.d.ts +6 -0
- package/dist/packages/teaching/src/scene/flow/flow-layout.d.ts +38 -0
- package/dist/packages/teaching/src/scene/flow/flow-pulse.d.ts +16 -0
- package/dist/packages/teaching/src/scene/flow/scene-flow.d.ts +81 -0
- package/dist/packages/teaching/src/scene/index.d.ts +77 -0
- package/dist/packages/teaching/src/scene/morph/morph-scope.d.ts +28 -0
- package/dist/packages/teaching/src/scene/plane/plane-hit.d.ts +22 -0
- package/dist/packages/teaching/src/scene/plane/plane-label.d.ts +23 -0
- package/dist/packages/teaching/src/scene/plane/plane-labels.d.ts +42 -0
- package/dist/packages/teaching/src/scene/plane/plane-math.d.ts +45 -0
- package/dist/packages/teaching/src/scene/plane/scene-axes.d.ts +30 -0
- package/dist/packages/teaching/src/scene/plane/scene-curve.d.ts +42 -0
- package/dist/packages/teaching/src/scene/plane/scene-point.d.ts +59 -0
- package/dist/packages/teaching/src/scene/plane/scene-projection.d.ts +27 -0
- package/dist/packages/teaching/src/scene/plane/scene-region.d.ts +38 -0
- package/dist/packages/teaching/src/scene/plane/scene-rule.d.ts +35 -0
- package/dist/packages/teaching/src/scene/plane/scene-vector.d.ts +39 -0
- package/dist/packages/teaching/src/scene/scene-bracket.d.ts +24 -0
- package/dist/packages/teaching/src/scene/scene-callout.d.ts +26 -0
- package/dist/packages/teaching/src/scene/scene-context.d.ts +179 -0
- package/dist/packages/teaching/src/scene/scene-custom.d.ts +31 -0
- package/dist/packages/teaching/src/scene/scene-geometry.d.ts +181 -0
- package/dist/packages/teaching/src/scene/scene-group.d.ts +28 -0
- package/dist/packages/teaching/src/scene/scene-highlight.d.ts +19 -0
- package/dist/packages/teaching/src/scene/scene-layer.d.ts +16 -0
- package/dist/packages/teaching/src/scene/scene-node.d.ts +67 -0
- package/dist/packages/teaching/src/scene/scene-obstacles.d.ts +27 -0
- package/dist/packages/teaching/src/scene/scene-registry.d.ts +79 -0
- package/dist/packages/teaching/src/scene/scene-stagger.d.ts +43 -0
- package/dist/packages/teaching/src/scene/scene-style.d.ts +14 -0
- package/dist/packages/teaching/src/scene/scene-validate.d.ts +65 -0
- package/dist/packages/teaching/src/scene/scene-wire.d.ts +45 -0
- package/dist/packages/teaching/src/scene/scene.d.ts +36 -0
- package/dist/packages/teaching/src/scene/shapes/cell-color.d.ts +11 -0
- package/dist/packages/teaching/src/scene/shapes/cell-grid.d.ts +69 -0
- package/dist/packages/teaching/src/scene/shapes/scene-card.d.ts +114 -0
- package/dist/packages/teaching/src/scene/shapes/scene-cells.d.ts +84 -0
- package/dist/packages/teaching/src/scene/shapes/scene-slot.d.ts +37 -0
- package/dist/packages/teaching/src/scene/shapes/scene-stack.d.ts +46 -0
- package/dist/packages/teaching/src/scene/shapes/scene-token.d.ts +63 -0
- package/dist/packages/teaching/src/scene/shapes/scene-tokens.d.ts +40 -0
- package/dist/packages/teaching/src/scene/shapes/stack-book.d.ts +35 -0
- package/dist/packages/teaching/src/scene/shapes/stack-layout.d.ts +63 -0
- package/dist/packages/teaching/src/scene/shapes/token-layout.d.ts +39 -0
- package/dist/packages/teaching/src/spec/advice.d.ts +23 -0
- package/dist/packages/teaching/src/spec/chart-names.d.ts +2 -0
- package/dist/packages/teaching/src/spec/describe-lesson.d.ts +85 -0
- package/dist/packages/teaching/src/spec/explainer-guide.d.ts +21 -0
- package/dist/packages/teaching/src/spec/findings.d.ts +39 -0
- package/dist/packages/teaching/src/spec/index.d.ts +14 -0
- package/dist/packages/teaching/src/spec/lesson-plan.d.ts +43 -0
- package/dist/packages/teaching/src/spec/validate-plan.d.ts +11 -0
- package/dist/packages/teaching/src/time/clock.d.ts +7 -0
- package/dist/packages/teaching/src/time/tween.d.ts +19 -0
- package/dist/packages/teaching/src/time/use-tween.d.ts +6 -0
- package/dist/param-CqKUTHaO.js +450 -0
- package/dist/path-BglsXpnO.js +59 -0
- package/dist/plot-axes-DJkLW4wk.js +100 -0
- package/dist/plot-layout-CZVSJ-le.js +912 -0
- package/dist/plot-marks-uozcbOIX.js +229 -0
- package/dist/plot-surface-CbVBvgqZ.js +51 -0
- package/dist/plot-width-DcqtSgzb.js +124 -0
- package/dist/point-layer-C-EYETAt.js +655 -0
- package/dist/reference-lines-BDcttOp0.js +82 -0
- package/dist/scale-C2xgZyZN.js +63 -0
- package/dist/scene-0z2gbaDE.js +4938 -0
- package/dist/scene.js +1 -0
- package/dist/slope-chart-BKVEAVCs.js +1279 -0
- package/dist/{src-1EHkSFS-.js → src-BD6xlvDt.js} +2 -2
- package/dist/{src-DVHlknB6.js → src-CExIrXPC.js} +169 -193
- package/dist/src-DIS0YOj0.js +44 -0
- package/dist/src-Dcfq8vE4.js +2195 -0
- package/dist/styles2.css +907 -59
- package/dist/time-series-BgzGNOk0.js +2670 -0
- package/dist/token-heatmap-BrW1OsKD.js +1354 -0
- package/dist/token-predictions-yerq_Oet.js +1093 -0
- package/dist/tone-scope-DKiSw-JR.js +32 -0
- package/dist/transport-BJweqDPj.js +715 -0
- package/dist/tree-diagram-D09BRqE-.js +1629 -0
- package/dist/treemap-CW4WsJNL.js +472 -0
- package/dist/use-tween-5HZ55_9d.js +72 -0
- package/dist/values-963L6n1m.js +65 -0
- package/dist/violin-plot-DrtPZ1-T.js +1292 -0
- package/dist/waterfall-DYLSnGjm.js +576 -0
- package/package.json +78 -4
- package/recipes/allocation-report.tsx +15 -7
- package/recipes/counting-cards.tsx +656 -0
- package/recipes/explorable-essay.tsx +172 -0
- package/skills/extend-elements/SKILL.md +81 -0
- package/skills/plan-lesson/SKILL.md +86 -0
- package/skills/plan-lesson/references/plan-format.md +114 -0
- package/skills/plan-lesson/references/worked-plan.md +171 -0
- package/skills/review-elements/SKILL.md +47 -3
- package/skills/review-explainer/SKILL.md +97 -0
- package/skills/upgrade-elements/SKILL.md +3 -1
- package/skills/upgrade-elements/references/releases.md +249 -0
- package/skills/use-elements/SKILL.md +22 -14
- package/skills/use-elements/references/charts.md +362 -41
- package/skills/use-elements/references/figures.md +173 -0
- package/skills/use-elements/references/kits.md +180 -0
- package/skills/use-elements/references/teaching.md +36 -0
- package/skills/write-explainer/SKILL.md +112 -0
- package/skills/write-explainer/references/article.md +164 -0
- package/skills/write-explainer/references/lesson.md +148 -0
- package/skills/write-explainer/references/mdx.md +78 -0
- package/skills/write-explainer/references/scene-parts.md +273 -0
- package/skills/write-explainer/references/scene.md +168 -0
- package/skills/write-explainer/references/tutor.md +104 -0
- package/skills/write-explainer/references/worked-essay.md +459 -0
- package/templates/essay/AGENTS.md +14 -0
- package/templates/essay/README.md +59 -0
- package/templates/essay/index.html +17 -0
- package/templates/essay/package.template.json +21 -0
- package/templates/essay/plan.json +96 -0
- package/templates/essay/src/essay.mdx +97 -0
- package/templates/essay/src/figures.tsx +92 -0
- package/templates/essay/src/lesson.ts +83 -0
- package/templates/essay/src/main.tsx +53 -0
- package/templates/essay/src/mdx.d.ts +7 -0
- package/templates/essay/tsconfig.template.json +15 -0
- package/templates/essay/vite.config.template.txt +8 -0
- package/dist/categorical-values-BXi-rJuv.js +0 -74
- package/dist/chart-data-CIJVWCYt.js +0 -21
- package/dist/chart-frame-BaxKn_MB.js +0 -236
- package/dist/chart-input-Bm82_9Rd.js +0 -22
- package/dist/chart-theme-4zprJ3rW.js +0 -404
- package/dist/plot-width-v2c_rA20.js +0 -63
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agents beside a reader. Tutor tools read and move a lesson through the UI SDK agent bridge. A learner trace records
|
|
3
|
+
* what the reader did, and a tour plays a guided walk that pauses when the reader acts.
|
|
4
|
+
*/
|
|
5
|
+
export type { LearnerEvent, LearnerEventKind, LearnerRecord, LearnerTrace } from './learner-trace.ts';
|
|
6
|
+
export { LEARNER_TRACE_LIMIT, createLearnerTrace, summarizeTrace } from './learner-trace.ts';
|
|
7
|
+
export type { AnswerSources, LessonAgent, TutorChange } from './lesson-bridge.ts';
|
|
8
|
+
export type { LessonTour, LessonTourStep, TourHold, TourPlayer, TourStatus } from './lesson-tour.ts';
|
|
9
|
+
export { playTour, tourFromTrace, tourHolds, validateTour } from './lesson-tour.ts';
|
|
10
|
+
export type { ReaderPlace, TutorNotes, TutorResult, TutorSchema, TutorSchemaProperty, TutorTool, } from './tutor-tools.ts';
|
|
11
|
+
export { tutorTools } from './tutor-tools.ts';
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import type { AnyLesson, LessonValue } from '../lesson/define-lesson.ts';
|
|
2
|
+
import type { AnswerSources, LessonAgent } from './lesson-bridge.ts';
|
|
3
|
+
/**
|
|
4
|
+
* What the reader did: moved a param, changed beat or step, started a player, committed a prediction, asked for a hint
|
|
5
|
+
* or reached a challenge.
|
|
6
|
+
*/
|
|
7
|
+
export type LearnerEventKind = 'param' | 'beat' | 'step' | 'play' | 'prediction' | 'hint' | 'challenge';
|
|
8
|
+
/** One thing the reader did, as plain JSON. Repeated moves of one control close together are one event. */
|
|
9
|
+
export type LearnerEvent = {
|
|
10
|
+
/** Milliseconds since the trace began. */
|
|
11
|
+
readonly at: number;
|
|
12
|
+
readonly kind: LearnerEventKind;
|
|
13
|
+
/** The param, `beat`, `step`, or the `Predict` or `Challenge` id. */
|
|
14
|
+
readonly name: string;
|
|
15
|
+
/** Before the change. A hint's count, a player's value at its start. */
|
|
16
|
+
readonly from: LessonValue | null;
|
|
17
|
+
/** After the change. A prediction's guess, a hint's count, a player's value where it stopped. */
|
|
18
|
+
readonly to: LessonValue | null;
|
|
19
|
+
/** A committed prediction's answer. Only a prediction the reader committed has one. */
|
|
20
|
+
readonly answer?: number | string | undefined;
|
|
21
|
+
/** Whether a committed prediction was right, within its tolerance. */
|
|
22
|
+
readonly isCorrect?: boolean | undefined;
|
|
23
|
+
/** The beat the reader was on. */
|
|
24
|
+
readonly beat: string | null;
|
|
25
|
+
/** How the reader made the change: `mouse`, `keyboard`, `touch`, `pen`, `virtual`, or `programmatic` for a play. */
|
|
26
|
+
readonly source: string;
|
|
27
|
+
readonly reason: string;
|
|
28
|
+
/** How many changes this event stands for. */
|
|
29
|
+
readonly count: number;
|
|
30
|
+
};
|
|
31
|
+
/** A learner trace as plain JSON, for a tutor prompt, a log or `tourFromTrace`. */
|
|
32
|
+
export type LearnerRecord = {
|
|
33
|
+
readonly lesson: string;
|
|
34
|
+
/** The beat the reader was on when the trace began. */
|
|
35
|
+
readonly startBeat: string | null;
|
|
36
|
+
/** Milliseconds since the trace began. */
|
|
37
|
+
readonly elapsed: number;
|
|
38
|
+
/** The most events the trace keeps; older ones are dropped first. */
|
|
39
|
+
readonly limit: number;
|
|
40
|
+
/** How many older events were dropped. */
|
|
41
|
+
readonly dropped: number;
|
|
42
|
+
readonly events: ReadonlyArray<LearnerEvent>;
|
|
43
|
+
/** Every move to a beat, by the reader or anyone else, so time on each beat is known. */
|
|
44
|
+
readonly visits: ReadonlyArray<{
|
|
45
|
+
readonly at: number;
|
|
46
|
+
readonly beat: string | null;
|
|
47
|
+
}>;
|
|
48
|
+
};
|
|
49
|
+
/** A running record of what the reader did. */
|
|
50
|
+
export type LearnerTrace = {
|
|
51
|
+
readonly read: () => LearnerRecord;
|
|
52
|
+
readonly subscribe: (listener: () => void) => () => void;
|
|
53
|
+
/** Forgets every event and starts the clock again. */
|
|
54
|
+
readonly clear: () => void;
|
|
55
|
+
/** Stops listening. The record stays readable. */
|
|
56
|
+
readonly stop: () => void;
|
|
57
|
+
};
|
|
58
|
+
/** How many events a learner trace keeps unless told otherwise. */
|
|
59
|
+
export declare const LEARNER_TRACE_LIMIT = 400;
|
|
60
|
+
/**
|
|
61
|
+
* Records what the reader does in a lesson, in order, through the agent bridge: param, beat and step moves, players
|
|
62
|
+
* started, and the article's predictions, hints and challenges. Changes an agent makes are left out, and so are a
|
|
63
|
+
* player's own steps. It keeps the last `limit` events.
|
|
64
|
+
*/
|
|
65
|
+
export declare function createLearnerTrace({ agent, lesson, article, limit, now, }: {
|
|
66
|
+
readonly agent: LessonAgent;
|
|
67
|
+
readonly lesson: AnyLesson;
|
|
68
|
+
/** The title of the article whose progress to read. Defaults to the lesson's title, or the page's only article. */
|
|
69
|
+
readonly article?: string | undefined;
|
|
70
|
+
readonly limit?: number | undefined;
|
|
71
|
+
/** The clock, in milliseconds. Defaults to `performance.now`. */
|
|
72
|
+
readonly now?: (() => number) | undefined;
|
|
73
|
+
}): LearnerTrace;
|
|
74
|
+
/**
|
|
75
|
+
* A few sentences of plain facts about what the reader did, for a tutor prompt: time on each beat, how each param
|
|
76
|
+
* moved, plays, predictions, hints and challenges. It interprets nothing.
|
|
77
|
+
*/
|
|
78
|
+
export declare function summarizeTrace({ record, lesson, locale, answers, }: {
|
|
79
|
+
readonly record: LearnerRecord;
|
|
80
|
+
readonly lesson: AnyLesson;
|
|
81
|
+
readonly locale: string;
|
|
82
|
+
/** Where each prediction's answer comes from, so guesses and answers are written in its format. */
|
|
83
|
+
readonly answers?: AnswerSources | undefined;
|
|
84
|
+
}): string;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { AgentComponent, createAgent, ObservedChange } from '../../../foundations/src/agent/index.ts';
|
|
2
|
+
import type { LessonProgress } from '../article/progress-store.ts';
|
|
3
|
+
import type { AnyLesson, LessonValue } from '../lesson/define-lesson.ts';
|
|
4
|
+
/** The UI SDK agent bridge a tutor reads and acts through, as `createAgent()` returns it. */
|
|
5
|
+
export type LessonAgent = ReturnType<typeof createAgent>;
|
|
6
|
+
/** One value that changed: a param, a derived value, the beat or the reveal step. */
|
|
7
|
+
export type TutorChange = {
|
|
8
|
+
readonly name: string;
|
|
9
|
+
readonly from: LessonValue | null;
|
|
10
|
+
readonly to: LessonValue | null;
|
|
11
|
+
};
|
|
12
|
+
/** The lesson as the bridge reports it now: where the reader is and every value. */
|
|
13
|
+
export type LessonReading = {
|
|
14
|
+
/** The lesson's ref in the bridge, for `act` steps. */
|
|
15
|
+
readonly ref: string;
|
|
16
|
+
readonly beat: string | null;
|
|
17
|
+
readonly step: number;
|
|
18
|
+
/** The param whose player is running, or null. */
|
|
19
|
+
readonly playing: string | null;
|
|
20
|
+
/** Every param and derived value. */
|
|
21
|
+
readonly values: Readonly<Record<string, LessonValue>>;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* The lesson value each `Predict` takes its answer from, by the `Predict` id, as its `answerFrom` prop names it. Tutor
|
|
25
|
+
* tools withhold that value until the reader commits the prediction.
|
|
26
|
+
*/
|
|
27
|
+
export type AnswerSources = Readonly<Record<string, string>>;
|
|
28
|
+
/** The sources of changes a person makes with a pointer, a key or assistive technology. */
|
|
29
|
+
export declare const readerSources: ReadonlySet<string>;
|
|
30
|
+
/** A bridge value as a lesson value, or null when it is not one. */
|
|
31
|
+
export declare function lessonValueOf(value: unknown): LessonValue | null;
|
|
32
|
+
/** Whether a value is a plain object, the shape JSON writes with braces. */
|
|
33
|
+
export declare function isPlainObject(value: unknown): boolean;
|
|
34
|
+
/** The fields of a plain object, or an empty map for anything else. */
|
|
35
|
+
export declare function fieldMap(value: unknown): ReadonlyMap<string, unknown>;
|
|
36
|
+
/** The reader's progress a `lesson-progress` value holds, with anything it does not hold left empty. */
|
|
37
|
+
export declare function progressOf(value: unknown): LessonProgress;
|
|
38
|
+
/** Whether a snapshot entry or a change belongs to this lesson: the `lesson` primitive named by its title. */
|
|
39
|
+
export declare function isLessonEntry(entry: {
|
|
40
|
+
readonly component: string;
|
|
41
|
+
readonly label?: string;
|
|
42
|
+
}, lesson: AnyLesson): boolean;
|
|
43
|
+
/** The lesson's entry in the bridge snapshot, or undefined while it is not on the page or is read-only. */
|
|
44
|
+
export declare function lessonEntry(agent: LessonAgent, lesson: AnyLesson): AgentComponent | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* The `lesson-progress` entry of the article titled `title` in the bridge snapshot. When no entry has that title and
|
|
47
|
+
* the page has only one, it is that one.
|
|
48
|
+
*/
|
|
49
|
+
export declare function progressEntry(agent: LessonAgent, title: string): AgentComponent | undefined;
|
|
50
|
+
/** The param values a bridge value holds, over the lesson's defaults for any it lacks. */
|
|
51
|
+
export declare function paramsOf(lesson: AnyLesson, value: unknown): Readonly<Record<string, LessonValue>>;
|
|
52
|
+
/** Reads the lesson through the bridge snapshot, or undefined while the bridge cannot see it. */
|
|
53
|
+
export declare function readLesson(agent: LessonAgent, lesson: AnyLesson): LessonReading | undefined;
|
|
54
|
+
/** Every value that differs between two readings, the beat, step and player first. */
|
|
55
|
+
export declare function changesBetween(before: LessonReading, after: LessonReading): ReadonlyArray<TutorChange>;
|
|
56
|
+
/** The params that differ between the values before and after a reported lesson change. */
|
|
57
|
+
export declare function paramChanges(lesson: AnyLesson, change: ObservedChange): ReadonlyArray<TutorChange>;
|
|
58
|
+
/** Resolves after the next shared frame, once the page has drawn what an action changed. */
|
|
59
|
+
export declare function nextFrame(): Promise<void>;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { AnyLesson, LessonValue } from '../lesson/define-lesson.ts';
|
|
2
|
+
import type { LessonFinding } from '../spec/findings.ts';
|
|
3
|
+
import type { LearnerRecord } from './learner-trace.ts';
|
|
4
|
+
import type { LessonAgent } from './lesson-bridge.ts';
|
|
5
|
+
/** How long a tour stays on a step, in seconds, by name. Tours name a pace and never hold raw durations. */
|
|
6
|
+
export declare const tourHolds: {
|
|
7
|
+
readonly short: 1.5;
|
|
8
|
+
readonly regular: 3;
|
|
9
|
+
readonly long: 6;
|
|
10
|
+
};
|
|
11
|
+
/** A named time a tour stays on one step. */
|
|
12
|
+
export type TourHold = keyof typeof tourHolds;
|
|
13
|
+
/** One step of a tour: where to go, what to show, what to say and how long to stay. Every field is optional. */
|
|
14
|
+
export type LessonTourStep = {
|
|
15
|
+
readonly beat?: string | undefined;
|
|
16
|
+
/** The reveal step inside the beat, from 0. */
|
|
17
|
+
readonly step?: number | undefined;
|
|
18
|
+
/** A state the beat declares, shown in one change. */
|
|
19
|
+
readonly state?: string | undefined;
|
|
20
|
+
readonly values?: Readonly<Record<string, LessonValue>> | undefined;
|
|
21
|
+
/** What the tutor says at this step, handed to `onSay`. */
|
|
22
|
+
readonly say?: string | undefined;
|
|
23
|
+
/** Defaults to `regular`. */
|
|
24
|
+
readonly hold?: TourHold | undefined;
|
|
25
|
+
};
|
|
26
|
+
/** A guided walk through a lesson as plain JSON, written by an author or recorded with `tourFromTrace`. */
|
|
27
|
+
export type LessonTour = ReadonlyArray<LessonTourStep>;
|
|
28
|
+
/** Where a playing tour is: running, paused because the reader acted, finished, stopped or failed on a step. */
|
|
29
|
+
export type TourStatus = 'playing' | 'paused' | 'done' | 'stopped' | 'failed';
|
|
30
|
+
/** A tour that is playing. */
|
|
31
|
+
export type TourPlayer = {
|
|
32
|
+
readonly status: () => TourStatus;
|
|
33
|
+
/** The step shown now, from 0, or -1 before the first. */
|
|
34
|
+
readonly index: () => number;
|
|
35
|
+
/** Why the tour failed, or null. */
|
|
36
|
+
readonly error: () => string | null;
|
|
37
|
+
readonly pause: () => void;
|
|
38
|
+
/** Goes on from the step it paused on, with that step's hold started again. */
|
|
39
|
+
readonly resume: () => void;
|
|
40
|
+
readonly stop: () => void;
|
|
41
|
+
readonly subscribe: (listener: () => void) => () => void;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Plays a tour through the agent bridge on the shared clock: each step moves the lesson, says its line and holds. The
|
|
45
|
+
* tour pauses when the reader changes the lesson, and `resume` goes on.
|
|
46
|
+
*/
|
|
47
|
+
export declare function playTour({ agent, lesson, tour, onSay, }: {
|
|
48
|
+
readonly agent: LessonAgent;
|
|
49
|
+
readonly lesson: AnyLesson;
|
|
50
|
+
readonly tour: LessonTour;
|
|
51
|
+
/** Hears each step's line, with the step's index. */
|
|
52
|
+
readonly onSay?: ((say: string, index: number) => void) | undefined;
|
|
53
|
+
}): TourPlayer;
|
|
54
|
+
/**
|
|
55
|
+
* Checks a tour against its lesson before it plays: known beats, reveal steps in range, declared states, values the
|
|
56
|
+
* params take and named holds. Every finding has a path and a sentence.
|
|
57
|
+
*/
|
|
58
|
+
export declare function validateTour(tour: unknown, lesson: AnyLesson): ReadonlyArray<LessonFinding>;
|
|
59
|
+
/**
|
|
60
|
+
* Turns a recorded demonstration into a tour an author can edit: each beat move becomes a step, and the param moves
|
|
61
|
+
* after it become that step's values. Add `say` lines and change holds by hand.
|
|
62
|
+
*/
|
|
63
|
+
export declare function tourFromTrace(record: LearnerRecord): LessonTour;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import type { LessonProgress } from '../article/progress-store.ts';
|
|
2
|
+
import type { AnyLesson, LessonValue } from '../lesson/define-lesson.ts';
|
|
3
|
+
import type { LessonOutline } from '../spec/describe-lesson.ts';
|
|
4
|
+
import type { AnswerSources, LessonAgent, TutorChange } from './lesson-bridge.ts';
|
|
5
|
+
/** A tool input property as JSON Schema. */
|
|
6
|
+
export type TutorSchemaProperty = {
|
|
7
|
+
readonly type: string | ReadonlyArray<string>;
|
|
8
|
+
readonly description: string;
|
|
9
|
+
readonly enum?: ReadonlyArray<string> | undefined;
|
|
10
|
+
};
|
|
11
|
+
/** A tool's input as JSON Schema: an object with named properties. */
|
|
12
|
+
export type TutorSchema = {
|
|
13
|
+
readonly type: 'object';
|
|
14
|
+
readonly properties: Readonly<Record<string, TutorSchemaProperty>>;
|
|
15
|
+
readonly required: ReadonlyArray<string>;
|
|
16
|
+
};
|
|
17
|
+
/** The current beat's tutor notes. They are for the tutor and are never shown to the reader. */
|
|
18
|
+
export type TutorNotes = {
|
|
19
|
+
readonly goal: string | null;
|
|
20
|
+
readonly misconception: string | null;
|
|
21
|
+
readonly hints: ReadonlyArray<string>;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Where the reader is: the beat and reveal step, every value as a number and as the reader reads it. A value a
|
|
25
|
+
* prediction the reader has not committed takes its answer from is left out.
|
|
26
|
+
*/
|
|
27
|
+
export type ReaderPlace = {
|
|
28
|
+
readonly beat: {
|
|
29
|
+
readonly id: string;
|
|
30
|
+
readonly title: string;
|
|
31
|
+
readonly number: number;
|
|
32
|
+
readonly of: number;
|
|
33
|
+
} | null;
|
|
34
|
+
readonly step: number;
|
|
35
|
+
/** The last reveal step of the beat. */
|
|
36
|
+
readonly steps: number;
|
|
37
|
+
/** The param whose player is running, or null. */
|
|
38
|
+
readonly playing: string | null;
|
|
39
|
+
readonly values: Readonly<Record<string, LessonValue>>;
|
|
40
|
+
/** Each value written in its declared format, as the page shows it. */
|
|
41
|
+
readonly written: Readonly<Record<string, string>>;
|
|
42
|
+
readonly notes: TutorNotes;
|
|
43
|
+
/**
|
|
44
|
+
* What the reader has done, from the article's `lesson-progress`: committed predictions with their answers, reached
|
|
45
|
+
* challenges, hints used and beats visited. Null where the page has no article.
|
|
46
|
+
*/
|
|
47
|
+
readonly progress: LessonProgress | null;
|
|
48
|
+
/** The values left out until the reader commits the prediction that takes its answer from each. */
|
|
49
|
+
readonly withheld: ReadonlyArray<string>;
|
|
50
|
+
};
|
|
51
|
+
/** What a tutor tool returns: plain JSON that says what changed, or why nothing could. */
|
|
52
|
+
export type TutorResult = {
|
|
53
|
+
readonly kind: 'ok';
|
|
54
|
+
readonly changed?: ReadonlyArray<TutorChange> | undefined;
|
|
55
|
+
readonly at?: {
|
|
56
|
+
readonly beat: string | null;
|
|
57
|
+
readonly step: number;
|
|
58
|
+
} | undefined;
|
|
59
|
+
readonly place?: ReaderPlace | undefined;
|
|
60
|
+
readonly outline?: LessonOutline | undefined;
|
|
61
|
+
readonly note?: string | undefined;
|
|
62
|
+
} | {
|
|
63
|
+
readonly kind: 'error';
|
|
64
|
+
readonly message: string;
|
|
65
|
+
};
|
|
66
|
+
/** A tool a model can call: its name, what it does, its input as JSON Schema, and the function that runs it. */
|
|
67
|
+
export type TutorTool = {
|
|
68
|
+
readonly name: string;
|
|
69
|
+
readonly description: string;
|
|
70
|
+
readonly inputSchema: TutorSchema;
|
|
71
|
+
readonly run: (input?: unknown) => Promise<TutorResult>;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* Tools a tutor model can call beside a reader. They read the outline and where the reader is, set params, show states,
|
|
75
|
+
* move between beats, play, pause and inspect figures. Every tool acts through the UI SDK agent bridge, and none
|
|
76
|
+
* reveals a prediction's answer before the reader commits it.
|
|
77
|
+
*/
|
|
78
|
+
export declare function tutorTools({ agent, lesson, locale, article, answers, }: {
|
|
79
|
+
readonly agent: LessonAgent;
|
|
80
|
+
readonly lesson: AnyLesson;
|
|
81
|
+
readonly locale: string;
|
|
82
|
+
/** The title of the article whose progress to read. Defaults to the lesson's title, or the page's only article. */
|
|
83
|
+
readonly article?: string | undefined;
|
|
84
|
+
/** The lesson value each `Predict` takes its answer from, by its id. Tools withhold it until the reader commits. */
|
|
85
|
+
readonly answers?: AnswerSources | undefined;
|
|
86
|
+
}): ReadonlyArray<TutorTool>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AnyLesson } from '../lesson/define-lesson.ts';
|
|
2
|
+
import type { ArticleOutline } from './outline-types.ts';
|
|
3
|
+
/** One problem a beat sheet finds in an article: the beat it concerns, when there is one, and a sentence. */
|
|
4
|
+
export type ArticleFinding = {
|
|
5
|
+
readonly beat: string | null;
|
|
6
|
+
readonly message: string;
|
|
7
|
+
};
|
|
8
|
+
/** The problems a beat sheet lists: missing beats, figures or descriptions, players without controls, idle params. */
|
|
9
|
+
export declare function articleChecks(lesson: AnyLesson, outline: ArticleOutline): ReadonlyArray<ArticleFinding>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { AnyLesson, LessonValue } from '../lesson/define-lesson.ts';
|
|
3
|
+
import type { ArticleLabels } from './article-labels.ts';
|
|
4
|
+
import type { ArticleOutline } from './outline-types.ts';
|
|
5
|
+
import type { LessonProgress, ProgressApi } from './progress-store.ts';
|
|
6
|
+
/** How an article arranges its children: a scrolling essay, one beat at a time, a page for print, or a beat sheet. */
|
|
7
|
+
export type ArticleView = 'article' | 'present' | 'static' | 'sheet';
|
|
8
|
+
/** Typesets TeX into React nodes. The application supplies it, such as one built on KaTeX's MathML output. */
|
|
9
|
+
export type ArticleMath = (tex: string, options: {
|
|
10
|
+
readonly isDisplay: boolean;
|
|
11
|
+
}) => ReactNode;
|
|
12
|
+
/** The challenges of an article, kept so a reader's change can be checked against each of them. */
|
|
13
|
+
export type ChallengeRegistry = {
|
|
14
|
+
readonly add: (id: string, isReached: (values: Readonly<Record<string, LessonValue>>) => boolean) => () => void;
|
|
15
|
+
readonly entries: () => ReadonlyArray<readonly [string, (values: Readonly<Record<string, LessonValue>>) => boolean]>;
|
|
16
|
+
/** The lesson's values as the reader last saw them, so a change is judged against where it started. */
|
|
17
|
+
readonly seen: () => Readonly<Record<string, LessonValue>>;
|
|
18
|
+
readonly remember: (values: Readonly<Record<string, LessonValue>>) => void;
|
|
19
|
+
};
|
|
20
|
+
/** What an `Article` shares with its parts. */
|
|
21
|
+
export type ArticleScope = {
|
|
22
|
+
readonly view: ArticleView;
|
|
23
|
+
readonly title: string;
|
|
24
|
+
readonly lesson: AnyLesson;
|
|
25
|
+
readonly locale: string;
|
|
26
|
+
readonly labels: ArticleLabels;
|
|
27
|
+
readonly math: ArticleMath | undefined;
|
|
28
|
+
readonly outline: ArticleOutline;
|
|
29
|
+
readonly progress: LessonProgress;
|
|
30
|
+
readonly progressApi: ProgressApi;
|
|
31
|
+
readonly challenges: ChallengeRegistry;
|
|
32
|
+
};
|
|
33
|
+
export declare const ArticleContext: import("react").Context<ArticleScope | null>;
|
|
34
|
+
/** The nearest article, or null outside every `Article`. */
|
|
35
|
+
export declare function useArticle(): ArticleScope | null;
|
|
36
|
+
/** The beat a part sits in, and whether the reader is on it now. */
|
|
37
|
+
export type BeatScope = {
|
|
38
|
+
readonly id: string;
|
|
39
|
+
readonly isCurrent: boolean;
|
|
40
|
+
/** The reveal step shown, from 0. */
|
|
41
|
+
readonly step: number;
|
|
42
|
+
/** The scrolly step the present view shows, across the beat's scrollies, or null where scrolling walks them. */
|
|
43
|
+
readonly scrolly: number | null;
|
|
44
|
+
};
|
|
45
|
+
export declare const BeatContext: import("react").Context<BeatScope | null>;
|
|
46
|
+
/** The beat around a part, or null outside every `Beat`. */
|
|
47
|
+
export declare function useBeat(): BeatScope | null;
|
|
48
|
+
/** Creates the list of challenges an article checks on each reader's change. */
|
|
49
|
+
export declare function createChallengeRegistry(initial: Readonly<Record<string, LessonValue>>): ChallengeRegistry;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
/** The lesson's inline error on a line of its own, for a part that stands between paragraphs, such as a figure. */
|
|
3
|
+
export declare function BlockError({ children }: {
|
|
4
|
+
readonly children: string;
|
|
5
|
+
}): ReactNode;
|
|
6
|
+
/**
|
|
7
|
+
* The error a part shows when it rendered but the article's outline lacks it, because the author wrapped it in a
|
|
8
|
+
* component of their own. The outline reads only the markup the author writes, so it must sit in the children.
|
|
9
|
+
*/
|
|
10
|
+
export declare function unlistedText(part: string, id: string): string;
|
|
11
|
+
/** The error a part shows outside every `Article`. */
|
|
12
|
+
export declare function outsideText(part: string): string;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The words an article writes around the author's content. The present view's position reads "Beat 2 of 5, step 1":
|
|
3
|
+
* `beat`, the number, `of`, the count, then `step` and its number.
|
|
4
|
+
*/
|
|
5
|
+
export type ArticleLabels = {
|
|
6
|
+
readonly contents: string;
|
|
7
|
+
readonly figure: string;
|
|
8
|
+
readonly notes: string;
|
|
9
|
+
readonly note: string;
|
|
10
|
+
readonly references: string;
|
|
11
|
+
readonly backToText: string;
|
|
12
|
+
readonly by: string;
|
|
13
|
+
readonly previous: string;
|
|
14
|
+
readonly next: string;
|
|
15
|
+
readonly beat: string;
|
|
16
|
+
readonly of: string;
|
|
17
|
+
readonly step: string;
|
|
18
|
+
readonly figureDescription: string;
|
|
19
|
+
readonly showAnswer: string;
|
|
20
|
+
readonly sheet: string;
|
|
21
|
+
readonly checks: string;
|
|
22
|
+
readonly noProblems: string;
|
|
23
|
+
readonly opening: string;
|
|
24
|
+
readonly goal: string;
|
|
25
|
+
readonly misconception: string;
|
|
26
|
+
readonly tutorHints: string;
|
|
27
|
+
readonly steps: string;
|
|
28
|
+
readonly progress: string;
|
|
29
|
+
};
|
|
30
|
+
export declare const defaultArticleLabels: {
|
|
31
|
+
readonly contents: 'Contents';
|
|
32
|
+
readonly figure: 'Figure';
|
|
33
|
+
readonly notes: 'Notes';
|
|
34
|
+
readonly note: 'Note';
|
|
35
|
+
readonly references: 'References';
|
|
36
|
+
readonly backToText: 'Back to the text';
|
|
37
|
+
readonly by: 'By';
|
|
38
|
+
readonly previous: 'Previous';
|
|
39
|
+
readonly next: 'Next';
|
|
40
|
+
readonly beat: 'Beat';
|
|
41
|
+
readonly of: 'of';
|
|
42
|
+
readonly step: 'step';
|
|
43
|
+
readonly figureDescription: 'What the figure shows';
|
|
44
|
+
readonly showAnswer: 'Show the answer';
|
|
45
|
+
readonly sheet: 'Beat sheet';
|
|
46
|
+
readonly checks: 'Checks';
|
|
47
|
+
readonly noProblems: 'No problems found.';
|
|
48
|
+
readonly opening: 'Opening';
|
|
49
|
+
readonly goal: 'Goal';
|
|
50
|
+
readonly misconception: 'Misconception';
|
|
51
|
+
readonly tutorHints: 'Tutor hints';
|
|
52
|
+
readonly steps: 'Reveal steps';
|
|
53
|
+
readonly progress: 'Reading progress';
|
|
54
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The geometry every article view shares. Essay text keeps a measure of about 68 characters. From `withMargin` the text
|
|
3
|
+
* gains a margin column for asides and wide figures, and from `withContents` the contents list sits beside it.
|
|
4
|
+
*/
|
|
5
|
+
export declare const articleLayout: {
|
|
6
|
+
measure: string;
|
|
7
|
+
marginWidth: string;
|
|
8
|
+
marginGap: string;
|
|
9
|
+
marginSpan: string;
|
|
10
|
+
contentsWidth: string;
|
|
11
|
+
withMargin: string;
|
|
12
|
+
withContents: string;
|
|
13
|
+
narrow: string;
|
|
14
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { ArticleOutline } from './outline-types.ts';
|
|
3
|
+
/** Reads an article's markup: its beats, figures, notes, references, players and the names each part takes. */
|
|
4
|
+
export declare function articleOutline(children: ReactNode): ArticleOutline;
|
|
5
|
+
/**
|
|
6
|
+
* The lesson value each prediction's answer comes from, by the `Predict` id. Tutor tools take it as their `answers`
|
|
7
|
+
* option, so a value a pending prediction asks about stays out of their results until the reader commits.
|
|
8
|
+
*/
|
|
9
|
+
export declare function answerSources(outline: ArticleOutline): Readonly<Record<string, string>>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { ChartTone } from '../../../charts/src/index.ts';
|
|
3
|
+
import type { LessonDefinition, LessonParams } from '../lesson/define-lesson.ts';
|
|
4
|
+
import type { LessonProps } from '../lesson/lesson.tsx';
|
|
5
|
+
import type { ArticleMath, ArticleView } from './article-context.ts';
|
|
6
|
+
import type { ArticleLabels } from './article-labels.ts';
|
|
7
|
+
import type { LessonProgress, ProgressChangeDetails } from './progress-store.ts';
|
|
8
|
+
export type ArticleProps<Params extends LessonParams, Derived extends string, Beat extends string> = {
|
|
9
|
+
readonly lesson: LessonDefinition<Params, Derived, Beat>;
|
|
10
|
+
/** The locale every value, date and figure of the article is written in. */
|
|
11
|
+
readonly locale: string;
|
|
12
|
+
readonly title: string;
|
|
13
|
+
readonly authors?: ReadonlyArray<string> | undefined;
|
|
14
|
+
/** The publication date as an ISO date, such as `2026-11-23`. */
|
|
15
|
+
readonly date?: string | undefined;
|
|
16
|
+
/** A sentence or two under the title that says what the reader will learn. */
|
|
17
|
+
readonly summary?: ReactNode;
|
|
18
|
+
/** The lesson's color meaning, declared once: the tone of each id every figure and term of the article shares. */
|
|
19
|
+
readonly tones?: Readonly<Record<string, ChartTone>> | undefined;
|
|
20
|
+
/** How the same children are arranged. Defaults to `article`, the scrolling essay. */
|
|
21
|
+
readonly view?: ArticleView | undefined;
|
|
22
|
+
/** Typesets the source of each `TeX`. Without it, math shows its TeX source. */
|
|
23
|
+
readonly math?: ArticleMath | undefined;
|
|
24
|
+
/** Keeps the lesson's values and the reader's progress in local storage under this key. */
|
|
25
|
+
readonly storageKey?: string | undefined;
|
|
26
|
+
/** The reader's progress, when the application holds it. */
|
|
27
|
+
readonly progress?: LessonProgress | undefined;
|
|
28
|
+
readonly defaultProgress?: LessonProgress | undefined;
|
|
29
|
+
/** Hears each change of the reader's progress. A change an agent makes is refused before it gets here. */
|
|
30
|
+
readonly onProgressChange?: ((progress: LessonProgress, details: ProgressChangeDetails) => void) | undefined;
|
|
31
|
+
readonly labels?: Partial<ArticleLabels> | undefined;
|
|
32
|
+
/** Passed to the `Lesson` the article renders: controlled values, beat and step, or address bar sync. */
|
|
33
|
+
readonly lessonProps?: Omit<LessonProps<Params, Derived, Beat>, 'lesson' | 'locale' | 'storageKey' | 'children'> | undefined;
|
|
34
|
+
/** The essay: `Beat`s, and around them `References` and anything else. */
|
|
35
|
+
readonly children: ReactNode;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* An explorable essay on one lesson: a title block, beats of prose and figures, and the exercises, notes and references
|
|
39
|
+
* around them. It renders the `Lesson`, the tone scope and one link scope, and arranges the same children in four
|
|
40
|
+
* views. The reader's progress is the UI SDK primitive `lesson-progress`, which counts only what the reader did.
|
|
41
|
+
*/
|
|
42
|
+
export declare function Article<Params extends LessonParams, Derived extends string, Beat extends string>({ lesson, locale, title, authors, date, summary, tones, view, math, storageKey, progress, defaultProgress, onProgressChange, labels, lessonProps, children, }: ArticleProps<Params, Derived, Beat>): ReactNode;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ArticleView } from './article-context.ts';
|
|
2
|
+
import type { ArticleOutline, OutlineBeat } from './outline-types.ts';
|
|
3
|
+
/** Where a beat stands at a lesson step: the scrolly step it shows, if any, and its reveal step. */
|
|
4
|
+
export type BeatPlace = {
|
|
5
|
+
readonly scrolly: number | null;
|
|
6
|
+
readonly reveal: number;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Splits a lesson step into a scrolly step and a reveal step. In the present view a beat walks its scrolly steps first,
|
|
10
|
+
* then its declared reveal steps; the other views count reveal steps alone, since scrolling walks a scrolly.
|
|
11
|
+
*/
|
|
12
|
+
export declare function beatPlace({ beat, step, view, }: {
|
|
13
|
+
readonly beat: OutlineBeat | undefined;
|
|
14
|
+
readonly step: number;
|
|
15
|
+
readonly view: ArticleView;
|
|
16
|
+
}): BeatPlace;
|
|
17
|
+
/** The steps each beat's scrollies add to the lesson: one fewer than they have, as step 0 shows one. */
|
|
18
|
+
export declare function scrollyAddedSteps(outline: ArticleOutline): Readonly<Record<string, number>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { AnyLesson, LessonBeat } from '../lesson/define-lesson.ts';
|
|
3
|
+
export type BeatProps = {
|
|
4
|
+
/** The id of a beat the lesson declares. Its title, tutor notes, reveal steps and states come from there. */
|
|
5
|
+
readonly id: string;
|
|
6
|
+
/** The beat's prose, figures and exercises. */
|
|
7
|
+
readonly children: ReactNode;
|
|
8
|
+
};
|
|
9
|
+
/** The beat a lesson declares under `id`, or undefined. */
|
|
10
|
+
export declare function lessonBeat(lesson: AnyLesson, id: string): LessonBeat | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* One beat of an essay: a titled section whose title, tutor notes, reveal steps and states the lesson declares. The
|
|
13
|
+
* article view scrolls through every beat, the present view shows the current one, and the static view opens each at
|
|
14
|
+
* its first state. Tutor notes are never shown to the reader.
|
|
15
|
+
*/
|
|
16
|
+
export declare function Beat({ id, children }: BeatProps): ReactNode;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { LessonValue } from '../lesson/define-lesson.ts';
|
|
3
|
+
/** The words of a challenge. The hint button reads "Show a hint (1 of 3)": `hint`, then `of`. */
|
|
4
|
+
export type ChallengeLabels = {
|
|
5
|
+
readonly kicker: string;
|
|
6
|
+
readonly reached: string;
|
|
7
|
+
readonly notYet: string;
|
|
8
|
+
readonly hint: string;
|
|
9
|
+
readonly of: string;
|
|
10
|
+
readonly showOutcome: string;
|
|
11
|
+
};
|
|
12
|
+
export type ChallengeProps = {
|
|
13
|
+
/** The challenge's id, unique in the article. The reader's progress records it under this id. */
|
|
14
|
+
readonly id: string;
|
|
15
|
+
/** The task, such as "Make the top token at least 90% likely". */
|
|
16
|
+
readonly prompt: ReactNode;
|
|
17
|
+
/** Whether the lesson's values meet the task. It reads params and derived values by name. */
|
|
18
|
+
readonly isReached: (values: Readonly<Record<string, LessonValue>>) => boolean;
|
|
19
|
+
/** Hints the reader can ask for, one at a time. */
|
|
20
|
+
readonly hints?: ReadonlyArray<string> | undefined;
|
|
21
|
+
/** What the reader finds, shown once the challenge is reached. */
|
|
22
|
+
readonly children: ReactNode;
|
|
23
|
+
readonly labels?: Partial<ChallengeLabels> | undefined;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* A task the reader meets by changing the lesson's values: once a change of their own makes `isReached` true, the
|
|
27
|
+
* challenge counts as reached and shows its outcome. A change an agent makes never reaches it.
|
|
28
|
+
*/
|
|
29
|
+
export declare function Challenge({ id, prompt, isReached, hints, children, labels }: ChallengeProps): ReactNode;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import * as stylex from '@stylexjs/stylex';
|
|
2
|
+
/** The look `Predict` and `Challenge` share: a quiet panel in the text column, with a kicker above the question. */
|
|
3
|
+
export declare const exerciseStyles: Readonly<{
|
|
4
|
+
readonly box: Readonly<{
|
|
5
|
+
readonly display: stylex.StyleXClassNameFor<"display", "grid">;
|
|
6
|
+
readonly gap: stylex.StyleXClassNameFor<"gap", string>;
|
|
7
|
+
readonly marginBlock: stylex.StyleXClassNameFor<"marginBlock", string>;
|
|
8
|
+
readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", string>;
|
|
9
|
+
readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", string>;
|
|
10
|
+
readonly borderWidth: stylex.StyleXClassNameFor<"borderWidth", 1>;
|
|
11
|
+
readonly borderStyle: stylex.StyleXClassNameFor<"borderStyle", "solid">;
|
|
12
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", string>;
|
|
13
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
14
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
15
|
+
readonly breakInside: stylex.StyleXClassNameFor<"breakInside", "avoid">;
|
|
16
|
+
}>;
|
|
17
|
+
readonly kicker: Readonly<{
|
|
18
|
+
readonly margin: stylex.StyleXClassNameFor<"margin", 0>;
|
|
19
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
20
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
21
|
+
readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", string>;
|
|
22
|
+
readonly fontWeight: stylex.StyleXClassNameFor<"fontWeight", string>;
|
|
23
|
+
readonly letterSpacing: stylex.StyleXClassNameFor<"letterSpacing", "0.06em">;
|
|
24
|
+
readonly textTransform: stylex.StyleXClassNameFor<"textTransform", "uppercase">;
|
|
25
|
+
}>;
|
|
26
|
+
readonly prompt: Readonly<{
|
|
27
|
+
readonly fontWeight: stylex.StyleXClassNameFor<"fontWeight", string>;
|
|
28
|
+
}>;
|
|
29
|
+
readonly meta: Readonly<{
|
|
30
|
+
readonly margin: stylex.StyleXClassNameFor<"margin", 0>;
|
|
31
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
32
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
33
|
+
}>;
|
|
34
|
+
readonly controls: Readonly<{
|
|
35
|
+
readonly display: stylex.StyleXClassNameFor<"display", "grid">;
|
|
36
|
+
readonly gap: stylex.StyleXClassNameFor<"gap", string>;
|
|
37
|
+
readonly maxWidth: stylex.StyleXClassNameFor<"maxWidth", "28rem">;
|
|
38
|
+
}>;
|
|
39
|
+
readonly result: Readonly<{
|
|
40
|
+
readonly display: stylex.StyleXClassNameFor<"display", "grid">;
|
|
41
|
+
readonly gap: stylex.StyleXClassNameFor<"gap", string>;
|
|
42
|
+
}>;
|
|
43
|
+
readonly verdict: Readonly<{
|
|
44
|
+
readonly margin: stylex.StyleXClassNameFor<"margin", 0>;
|
|
45
|
+
}>;
|
|
46
|
+
readonly right: Readonly<{
|
|
47
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
48
|
+
readonly fontWeight: stylex.StyleXClassNameFor<"fontWeight", string>;
|
|
49
|
+
}>;
|
|
50
|
+
readonly wrong: Readonly<{
|
|
51
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
52
|
+
readonly fontWeight: stylex.StyleXClassNameFor<"fontWeight", string>;
|
|
53
|
+
}>;
|
|
54
|
+
readonly details: Readonly<{
|
|
55
|
+
readonly display: stylex.StyleXClassNameFor<"display", "grid">;
|
|
56
|
+
readonly gap: stylex.StyleXClassNameFor<"gap", string>;
|
|
57
|
+
}>;
|
|
58
|
+
readonly summary: Readonly<{
|
|
59
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
60
|
+
readonly cursor: stylex.StyleXClassNameFor<"cursor", "pointer">;
|
|
61
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
|
|
62
|
+
}>;
|
|
63
|
+
readonly hints: Readonly<{
|
|
64
|
+
readonly display: stylex.StyleXClassNameFor<"display", "grid">;
|
|
65
|
+
readonly gap: stylex.StyleXClassNameFor<"gap", string>;
|
|
66
|
+
readonly margin: stylex.StyleXClassNameFor<"margin", 0>;
|
|
67
|
+
readonly paddingInlineStart: stylex.StyleXClassNameFor<"paddingInlineStart", string>;
|
|
68
|
+
readonly color: stylex.StyleXClassNameFor<"color", string>;
|
|
69
|
+
}>;
|
|
70
|
+
readonly actions: Readonly<{
|
|
71
|
+
readonly display: stylex.StyleXClassNameFor<"display", "flex">;
|
|
72
|
+
readonly flexWrap: stylex.StyleXClassNameFor<"flexWrap", "wrap">;
|
|
73
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
74
|
+
readonly gap: stylex.StyleXClassNameFor<"gap", string>;
|
|
75
|
+
}>;
|
|
76
|
+
}>;
|