@mechane-ai/elements 0.49.0 → 0.49.1

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 (87) hide show
  1. package/README.md +40 -2
  2. package/dist/{article-yyNPg6VU.js → article-CRlhq9oA.js} +531 -463
  3. package/dist/article.js +1 -1
  4. package/dist/catalog.json +29 -1
  5. package/dist/{categorical-values-DCznViFp.js → categorical-values-BYP_R5gS.js} +13 -13
  6. package/dist/charts/cartesian.js +1 -1
  7. package/dist/charts/comparison.js +1 -1
  8. package/dist/charts/distribution.js +1 -1
  9. package/dist/charts/figure.js +12 -12
  10. package/dist/charts/graph.js +1 -1
  11. package/dist/charts/hierarchy.js +1 -1
  12. package/dist/charts/image.js +1 -1
  13. package/dist/charts/matrix.js +1 -1
  14. package/dist/charts/plot.js +4 -4
  15. package/dist/charts/relationship.js +1 -1
  16. package/dist/charts/text.js +1 -1
  17. package/dist/charts/timeline.js +1 -1
  18. package/dist/charts/trend.js +1 -1
  19. package/dist/charts.js +7 -7
  20. package/dist/{dumbbell-plot-CMv9llfd.js → dumbbell-plot-B-Tn7ewW.js} +45 -45
  21. package/dist/{embedding-map-DC-lgzCq.js → embedding-map-Bljn-A5q.js} +528 -528
  22. package/dist/figure-frame-CEijciL7.js +289 -0
  23. package/dist/{image-grid-DHqtj_zs.js → image-grid-mrG5u9oE.js} +47 -47
  24. package/dist/kits/evaluation.js +3 -3
  25. package/dist/kits/interpretability.js +6 -6
  26. package/dist/kits/operations.js +3 -3
  27. package/dist/kits/research.js +2 -2
  28. package/dist/kits/training.js +2 -2
  29. package/dist/lesson/spec.js +11 -11
  30. package/dist/lesson.js +4 -4
  31. package/dist/mdx.js +4 -4
  32. package/dist/packages/charts/src/figure/caption-scope.d.ts +12 -0
  33. package/dist/packages/charts/src/figure/figure-frame.d.ts +2 -1
  34. package/dist/packages/charts/src/index.d.ts +2 -0
  35. package/dist/packages/teaching/src/article/article-context.d.ts +2 -0
  36. package/dist/packages/teaching/src/article/article-layout.stylex.d.ts +13 -0
  37. package/dist/packages/teaching/src/article/article.d.ts +6 -1
  38. package/dist/packages/teaching/src/article/figure.d.ts +20 -3
  39. package/dist/packages/teaching/src/article/index.d.ts +1 -1
  40. package/dist/packages/teaching/src/article/view-essay.d.ts +2 -1
  41. package/dist/packages/teaching/src/lesson/define-lesson.d.ts +4 -0
  42. package/dist/packages/teaching/src/lesson/index.d.ts +2 -2
  43. package/dist/packages/teaching/src/lesson/lesson-player.d.ts +19 -3
  44. package/dist/packages/teaching/src/lesson/lesson-store.d.ts +2 -0
  45. package/dist/packages/teaching/src/lesson/playback.d.ts +9 -6
  46. package/dist/packages/teaching/src/lesson/use-lesson.d.ts +7 -2
  47. package/dist/packages/teaching/src/scene/plane/plane-labels.d.ts +4 -1
  48. package/dist/packages/teaching/src/scene/plane/scene-point.d.ts +5 -6
  49. package/dist/packages/teaching/src/scene/scene-geometry.d.ts +1 -1
  50. package/dist/packages/teaching/src/scene/scene-node.d.ts +4 -1
  51. package/dist/packages/teaching/src/scene/scene-validate.d.ts +6 -0
  52. package/dist/packages/teaching/src/scene/scene-wire.d.ts +6 -1
  53. package/dist/packages/teaching/src/scene/scene.d.ts +1 -1
  54. package/dist/packages/teaching/src/scene/shapes/cell-grid.d.ts +5 -1
  55. package/dist/packages/teaching/src/scene/shapes/scene-cells.d.ts +1 -1
  56. package/dist/packages/teaching/src/scene/shapes/scene-slot.d.ts +1 -1
  57. package/dist/packages/teaching/src/time/tween.d.ts +2 -0
  58. package/dist/{param-BE3VMSkH.js → param-BdqTpZER.js} +166 -99
  59. package/dist/{plot-layout-Bqe4-0qZ.js → plot-layout-B2xRt-_k.js} +144 -130
  60. package/dist/{plot-surface-DON6WUmk.js → plot-surface-0cKFwtws.js} +1 -1
  61. package/dist/{reference-lines-hjuD1rRZ.js → reference-lines-nSxcZVF5.js} +1 -1
  62. package/dist/{scene-BP0Ue0R5.js → scene-BwJKueD6.js} +1227 -1125
  63. package/dist/scene.js +1 -1
  64. package/dist/{slope-chart-C8eeSgL4.js → slope-chart-CGTYbFxi.js} +179 -179
  65. package/dist/styles2.css +69 -14
  66. package/dist/{time-series-BL933QyA.js → time-series-Dh8y5ba0.js} +952 -948
  67. package/dist/{token-heatmap-BB65awva.js → token-heatmap-BTrZ3-N4.js} +84 -84
  68. package/dist/{token-predictions-Pa8eUGan.js → token-predictions-CUe4junQ.js} +126 -126
  69. package/dist/{transport-DzyxVXbL.js → transport-4V9rfYHN.js} +278 -233
  70. package/dist/{tree-diagram-DJhKBiia.js → tree-diagram-Dpqmo-fh.js} +115 -115
  71. package/dist/{treemap-CxxgABUg.js → treemap-BUSaVD3m.js} +27 -27
  72. package/dist/use-tween-BsaEO862.js +10 -0
  73. package/dist/{violin-plot-CoAEF_7Z.js → violin-plot-BxaLwdRi.js} +123 -123
  74. package/dist/{waterfall-DdoEXEkT.js → waterfall-CcDMdKec.js} +39 -39
  75. package/package.json +1 -1
  76. package/recipes/counting-cards.tsx +3 -3
  77. package/skills/review-explainer/SKILL.md +2 -1
  78. package/skills/upgrade-elements/references/releases.md +61 -0
  79. package/skills/use-elements/SKILL.md +3 -1
  80. package/skills/use-elements/references/styling.md +23 -0
  81. package/skills/use-elements/references/teaching.md +13 -0
  82. package/skills/write-explainer/references/article.md +50 -2
  83. package/skills/write-explainer/references/lesson.md +18 -9
  84. package/skills/write-explainer/references/scene-parts.md +17 -12
  85. package/skills/write-explainer/references/scene.md +25 -3
  86. package/dist/figure-frame-BjFzbl3m.js +0 -270
  87. package/dist/use-tween-5HZ55_9d.js +0 -72
package/dist/styles2.css CHANGED
@@ -159,6 +159,10 @@
159
159
  --xmu2bot: 240px;
160
160
  }
161
161
 
162
+ :root, .x147zwqg {
163
+ --xz7cmyu: 0px;
164
+ }
165
+
162
166
  .x45l9hb.x45l9hb, .x45l9hb.x45l9hb:root {
163
167
  --x1mu3en6: #8ed3b3;
164
168
  --x197nfi7: #152b22;
@@ -229,6 +233,10 @@
229
233
  .x1xfk3to.x1xfk3to, .x1xfk3to.x1xfk3to:root {
230
234
  --xfou7vv: 0 4px 16px #0006;
231
235
  }
236
+
237
+ .x1n1i2jm {
238
+ --xz7cmyu: 0px;
239
+ }
232
240
  }
233
241
 
234
242
  @layer priority2 {
@@ -284,7 +292,7 @@
284
292
  padding: var(--xxhyxt);
285
293
  }
286
294
 
287
- .x1az1eml:empty {
295
+ .xcbmdgg.xcbmdgg:where(.x38b25u:has([data-figure-report]) *), .x1az1eml:empty {
288
296
  padding: 0;
289
297
  }
290
298
 
@@ -400,6 +408,10 @@
400
408
  flex: 1 1 0;
401
409
  }
402
410
 
411
+ .x845mor {
412
+ flex: 1;
413
+ }
414
+
403
415
  .x1slnebi {
404
416
  flex: 12ch;
405
417
  }
@@ -772,6 +784,10 @@
772
784
  padding-inline: 0;
773
785
  }
774
786
 
787
+ .x3rjliz:has([data-figure-report]) {
788
+ border-width: 0;
789
+ }
790
+
775
791
  .xjf78fh:active {
776
792
  border-color: var(--x169lqhw);
777
793
  }
@@ -1604,10 +1620,6 @@
1604
1620
  font-family: var(--xntcpct);
1605
1621
  }
1606
1622
 
1607
- .x1j6dyjg {
1608
- font-size: 11px;
1609
- }
1610
-
1611
1623
  .xfifm61 {
1612
1624
  font-size: 12px;
1613
1625
  }
@@ -1884,8 +1896,8 @@
1884
1896
  line-height: 1;
1885
1897
  }
1886
1898
 
1887
- .x1xxsxie {
1888
- line-height: 14px;
1899
+ .x1d3mw78 {
1900
+ line-height: 16px;
1889
1901
  }
1890
1902
 
1891
1903
  .x15bjb6t {
@@ -2649,6 +2661,12 @@
2649
2661
  z-index: var(--x-zIndex);
2650
2662
  }
2651
2663
 
2664
+ @container article (width <= 1119px) {
2665
+ .xglu9to.xglu9to {
2666
+ --xz7cmyu: calc(2 * var(--xxhyxt) + var(--x1eh4a5a) + 1px);
2667
+ }
2668
+ }
2669
+
2652
2670
  .x74v5n1.x74v5n1:where(.x-default-marker:focus-visible *) {
2653
2671
  outline-style: dashed;
2654
2672
  }
@@ -3163,6 +3181,10 @@
3163
3181
  bottom: 100%;
3164
3182
  }
3165
3183
 
3184
+ .x1nqzi6q {
3185
+ bottom: var(--x-bottom);
3186
+ }
3187
+
3166
3188
  .xwthv0x {
3167
3189
  bottom: var(--x1qq5i99);
3168
3190
  }
@@ -3659,6 +3681,10 @@
3659
3681
  min-width: min(12ch, 50%);
3660
3682
  }
3661
3683
 
3684
+ .x15jkjh2 {
3685
+ min-width: min(12rem, 100%);
3686
+ }
3687
+
3662
3688
  .x80t9vs {
3663
3689
  min-width: var(--anchor-width);
3664
3690
  }
@@ -3707,6 +3733,12 @@
3707
3733
  overscroll-behavior-y: contain;
3708
3734
  }
3709
3735
 
3736
+ @container article (width >= 880px) {
3737
+ .xgdeu5z.xgdeu5z {
3738
+ padding: var(--x1qq5i99);
3739
+ }
3740
+ }
3741
+
3710
3742
  .x18d9i69 {
3711
3743
  padding-bottom: 0;
3712
3744
  }
@@ -3783,18 +3815,14 @@
3783
3815
  scroll-margin-top: 3em;
3784
3816
  }
3785
3817
 
3786
- .xqalb56 {
3787
- scroll-margin-top: var(--x1iwxfi2);
3818
+ .xvfl8lj {
3819
+ scroll-margin-top: calc(var(--xz7cmyu) + var(--x1iwxfi2));
3788
3820
  }
3789
3821
 
3790
3822
  .x14ijc3v {
3791
3823
  scroll-margin-top: var(--x1qq5i99);
3792
3824
  }
3793
3825
 
3794
- .xcrr8yc {
3795
- top: -20px;
3796
- }
3797
-
3798
3826
  .x13vifvy {
3799
3827
  top: 0;
3800
3828
  }
@@ -3823,6 +3851,10 @@
3823
3851
  top: var(--x1xijsos);
3824
3852
  }
3825
3853
 
3854
+ .x8yoas0 {
3855
+ top: var(--xz7cmyu);
3856
+ }
3857
+
3826
3858
  .xnalus7 {
3827
3859
  width: 0;
3828
3860
  }
@@ -4007,10 +4039,14 @@
4007
4039
  width: var(--xyyn5jb);
4008
4040
  }
4009
4041
 
4010
- .x1y2jzqp[data-orientation="vertical"] {
4042
+ .x1y2jzqp[data-orientation="vertical"], .xvl0991.xvl0991:where(.x38b25u:has([data-figure-report]) *) {
4011
4043
  border-bottom-width: 0;
4012
4044
  }
4013
4045
 
4046
+ .x18orsgv.x18orsgv:where(.x38b25u:has([data-figure-report]) *) {
4047
+ border-top-width: 0;
4048
+ }
4049
+
4014
4050
  .xqmlo60[data-orientation="vertical"] {
4015
4051
  height: 100%;
4016
4052
  }
@@ -4039,6 +4075,12 @@
4039
4075
  min-height: 160px;
4040
4076
  }
4041
4077
 
4078
+ @container article (width >= 880px) {
4079
+ .x1n01ctf.x1n01ctf.x1n01ctf:where(.x38b25u:has([data-figure-report]) *) {
4080
+ padding: 0;
4081
+ }
4082
+ }
4083
+
4042
4084
  .xcqfl4l[data-orientation="vertical"] {
4043
4085
  padding-top: 0;
4044
4086
  }
@@ -4155,7 +4197,15 @@
4155
4197
  .xse4jxt.xse4jxt {
4156
4198
  padding-inline: calc((var(--x6uufy4) - 1px) / 2);
4157
4199
  }
4200
+ }
4201
+
4202
+ @container article (width >= 880px) {
4203
+ .x8i819h.x8i819h {
4204
+ padding-inline: var(--x1qq5i99);
4205
+ }
4206
+ }
4158
4207
 
4208
+ @media (pointer: coarse) {
4159
4209
  .xls05dq.xls05dq[aria-orientation="horizontal"] {
4160
4210
  margin-block: calc((1px - var(--x6uufy4)) / 2);
4161
4211
  }
@@ -4911,6 +4961,11 @@
4911
4961
  inherits: false
4912
4962
  }
4913
4963
 
4964
+ @property --x-bottom {
4965
+ syntax: "*";
4966
+ inherits: false
4967
+ }
4968
+
4914
4969
  @property --x-boxShadow {
4915
4970
  syntax: "*";
4916
4971
  inherits: false