@mechane-ai/elements 0.49.0 → 0.50.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 (102) 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 +37 -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/collections.js +1 -1
  21. package/dist/{dumbbell-plot-CMv9llfd.js → dumbbell-plot-BC8d_IJy.js} +45 -45
  22. package/dist/{embedding-map-DC-lgzCq.js → embedding-map-Bj8krO-d.js} +528 -528
  23. package/dist/figure-frame-koVKcXph.js +323 -0
  24. package/dist/{image-grid-DHqtj_zs.js → image-grid-CLhol2jy.js} +47 -47
  25. package/dist/kits/evaluation.js +50 -48
  26. package/dist/kits/interpretability.js +7 -7
  27. package/dist/kits/operations.js +4 -4
  28. package/dist/kits/research.js +346 -264
  29. package/dist/kits/training.js +3 -3
  30. package/dist/layout.js +1 -1075
  31. package/dist/lesson/spec.js +11 -11
  32. package/dist/lesson.js +4 -4
  33. package/dist/mdx.js +4 -4
  34. package/dist/packages/charts/src/chart-inspection.d.ts +4 -1
  35. package/dist/packages/charts/src/figure/caption-scope.d.ts +12 -0
  36. package/dist/packages/charts/src/figure/figure-frame.d.ts +2 -1
  37. package/dist/packages/charts/src/index.d.ts +2 -0
  38. package/dist/packages/collections/src/data-table-trigger.d.ts +2 -0
  39. package/dist/packages/kits/src/evaluation/leaderboard.d.ts +2 -0
  40. package/dist/packages/kits/src/research/collection-page.d.ts +46 -0
  41. package/dist/packages/kits/src/research/index.d.ts +2 -0
  42. package/dist/packages/kits/src/research/milestone-path.d.ts +1 -2
  43. package/dist/packages/kits/src/research/work-heartbeat.d.ts +4 -3
  44. package/dist/packages/layout/src/detail-page.d.ts +3 -1
  45. package/dist/packages/teaching/src/article/article-context.d.ts +2 -0
  46. package/dist/packages/teaching/src/article/article-layout.stylex.d.ts +13 -0
  47. package/dist/packages/teaching/src/article/article.d.ts +6 -1
  48. package/dist/packages/teaching/src/article/figure.d.ts +20 -3
  49. package/dist/packages/teaching/src/article/index.d.ts +1 -1
  50. package/dist/packages/teaching/src/article/view-essay.d.ts +2 -1
  51. package/dist/packages/teaching/src/lesson/define-lesson.d.ts +4 -0
  52. package/dist/packages/teaching/src/lesson/index.d.ts +2 -2
  53. package/dist/packages/teaching/src/lesson/lesson-player.d.ts +19 -3
  54. package/dist/packages/teaching/src/lesson/lesson-store.d.ts +2 -0
  55. package/dist/packages/teaching/src/lesson/playback.d.ts +9 -6
  56. package/dist/packages/teaching/src/lesson/use-lesson.d.ts +7 -2
  57. package/dist/packages/teaching/src/scene/plane/plane-labels.d.ts +4 -1
  58. package/dist/packages/teaching/src/scene/plane/scene-point.d.ts +5 -6
  59. package/dist/packages/teaching/src/scene/scene-geometry.d.ts +1 -1
  60. package/dist/packages/teaching/src/scene/scene-node.d.ts +4 -1
  61. package/dist/packages/teaching/src/scene/scene-validate.d.ts +6 -0
  62. package/dist/packages/teaching/src/scene/scene-wire.d.ts +6 -1
  63. package/dist/packages/teaching/src/scene/scene.d.ts +1 -1
  64. package/dist/packages/teaching/src/scene/shapes/cell-grid.d.ts +5 -1
  65. package/dist/packages/teaching/src/scene/shapes/scene-cells.d.ts +1 -1
  66. package/dist/packages/teaching/src/scene/shapes/scene-slot.d.ts +1 -1
  67. package/dist/packages/teaching/src/time/tween.d.ts +2 -0
  68. package/dist/{param-BE3VMSkH.js → param-BdqTpZER.js} +166 -99
  69. package/dist/{plot-layout-Bqe4-0qZ.js → plot-layout-B2xRt-_k.js} +144 -130
  70. package/dist/{plot-surface-DON6WUmk.js → plot-surface-0cKFwtws.js} +1 -1
  71. package/dist/{reference-lines-hjuD1rRZ.js → reference-lines-nSxcZVF5.js} +1 -1
  72. package/dist/{scene-BP0Ue0R5.js → scene-4ePpWdmE.js} +1227 -1125
  73. package/dist/scene.js +1 -1
  74. package/dist/{slope-chart-C8eeSgL4.js → slope-chart-DWZIYDty.js} +179 -179
  75. package/dist/{src-B2rgpWap.js → src-DNclWY4V.js} +1 -1
  76. package/dist/src-DhWMspwr.js +1085 -0
  77. package/dist/styles2.css +77 -14
  78. package/dist/{time-series-BL933QyA.js → time-series-CsngFxr1.js} +952 -948
  79. package/dist/{token-heatmap-BB65awva.js → token-heatmap-BQLIxPky.js} +84 -84
  80. package/dist/{token-predictions-Pa8eUGan.js → token-predictions-C3B5L-eO.js} +126 -126
  81. package/dist/{transport-DzyxVXbL.js → transport-4V9rfYHN.js} +278 -233
  82. package/dist/{tree-diagram-DJhKBiia.js → tree-diagram-Dau9jeXS.js} +115 -115
  83. package/dist/{treemap-CxxgABUg.js → treemap-DWrMQndu.js} +27 -27
  84. package/dist/use-tween-BsaEO862.js +10 -0
  85. package/dist/{violin-plot-CoAEF_7Z.js → violin-plot-D05ODcyc.js} +123 -123
  86. package/dist/{waterfall-DdoEXEkT.js → waterfall-BkLLv2Lm.js} +39 -39
  87. package/package.json +1 -1
  88. package/recipes/counting-cards.tsx +3 -3
  89. package/skills/review-elements/SKILL.md +14 -0
  90. package/skills/review-explainer/SKILL.md +2 -1
  91. package/skills/upgrade-elements/references/releases.md +61 -0
  92. package/skills/use-elements/SKILL.md +21 -17
  93. package/skills/use-elements/references/editorial-restraint.md +40 -0
  94. package/skills/use-elements/references/styling.md +23 -0
  95. package/skills/use-elements/references/teaching.md +13 -0
  96. package/skills/use-elements/references/workspace.md +14 -8
  97. package/skills/write-explainer/references/article.md +50 -2
  98. package/skills/write-explainer/references/lesson.md +18 -9
  99. package/skills/write-explainer/references/scene-parts.md +17 -12
  100. package/skills/write-explainer/references/scene.md +25 -3
  101. package/dist/figure-frame-BjFzbl3m.js +0 -270
  102. 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,16 @@
3707
3733
  overscroll-behavior-y: contain;
3708
3734
  }
3709
3735
 
3736
+ .x6i9wio {
3737
+ overscroll-behavior-y: none;
3738
+ }
3739
+
3740
+ @container article (width >= 880px) {
3741
+ .xgdeu5z.xgdeu5z {
3742
+ padding: var(--x1qq5i99);
3743
+ }
3744
+ }
3745
+
3710
3746
  .x18d9i69 {
3711
3747
  padding-bottom: 0;
3712
3748
  }
@@ -3739,6 +3775,10 @@
3739
3775
  padding-bottom: var(--xjighox);
3740
3776
  }
3741
3777
 
3778
+ .x1l52sgj {
3779
+ padding-bottom: var(--xnv5ly4);
3780
+ }
3781
+
3742
3782
  .xmmm7uk {
3743
3783
  padding-bottom: var(--xxhyxt);
3744
3784
  }
@@ -3783,18 +3823,14 @@
3783
3823
  scroll-margin-top: 3em;
3784
3824
  }
3785
3825
 
3786
- .xqalb56 {
3787
- scroll-margin-top: var(--x1iwxfi2);
3826
+ .xvfl8lj {
3827
+ scroll-margin-top: calc(var(--xz7cmyu) + var(--x1iwxfi2));
3788
3828
  }
3789
3829
 
3790
3830
  .x14ijc3v {
3791
3831
  scroll-margin-top: var(--x1qq5i99);
3792
3832
  }
3793
3833
 
3794
- .xcrr8yc {
3795
- top: -20px;
3796
- }
3797
-
3798
3834
  .x13vifvy {
3799
3835
  top: 0;
3800
3836
  }
@@ -3823,6 +3859,10 @@
3823
3859
  top: var(--x1xijsos);
3824
3860
  }
3825
3861
 
3862
+ .x8yoas0 {
3863
+ top: var(--xz7cmyu);
3864
+ }
3865
+
3826
3866
  .xnalus7 {
3827
3867
  width: 0;
3828
3868
  }
@@ -4007,10 +4047,14 @@
4007
4047
  width: var(--xyyn5jb);
4008
4048
  }
4009
4049
 
4010
- .x1y2jzqp[data-orientation="vertical"] {
4050
+ .x1y2jzqp[data-orientation="vertical"], .xvl0991.xvl0991:where(.x38b25u:has([data-figure-report]) *) {
4011
4051
  border-bottom-width: 0;
4012
4052
  }
4013
4053
 
4054
+ .x18orsgv.x18orsgv:where(.x38b25u:has([data-figure-report]) *) {
4055
+ border-top-width: 0;
4056
+ }
4057
+
4014
4058
  .xqmlo60[data-orientation="vertical"] {
4015
4059
  height: 100%;
4016
4060
  }
@@ -4039,6 +4083,12 @@
4039
4083
  min-height: 160px;
4040
4084
  }
4041
4085
 
4086
+ @container article (width >= 880px) {
4087
+ .x1n01ctf.x1n01ctf.x1n01ctf:where(.x38b25u:has([data-figure-report]) *) {
4088
+ padding: 0;
4089
+ }
4090
+ }
4091
+
4042
4092
  .xcqfl4l[data-orientation="vertical"] {
4043
4093
  padding-top: 0;
4044
4094
  }
@@ -4155,7 +4205,15 @@
4155
4205
  .xse4jxt.xse4jxt {
4156
4206
  padding-inline: calc((var(--x6uufy4) - 1px) / 2);
4157
4207
  }
4208
+ }
4209
+
4210
+ @container article (width >= 880px) {
4211
+ .x8i819h.x8i819h {
4212
+ padding-inline: var(--x1qq5i99);
4213
+ }
4214
+ }
4158
4215
 
4216
+ @media (pointer: coarse) {
4159
4217
  .xls05dq.xls05dq[aria-orientation="horizontal"] {
4160
4218
  margin-block: calc((1px - var(--x6uufy4)) / 2);
4161
4219
  }
@@ -4911,6 +4969,11 @@
4911
4969
  inherits: false
4912
4970
  }
4913
4971
 
4972
+ @property --x-bottom {
4973
+ syntax: "*";
4974
+ inherits: false
4975
+ }
4976
+
4914
4977
  @property --x-boxShadow {
4915
4978
  syntax: "*";
4916
4979
  inherits: false