@mechane-ai/elements 0.65.0 → 0.68.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 (129) hide show
  1. package/README.md +21 -10
  2. package/dist/ai.js +288 -205
  3. package/dist/{article-BrUa4Wz1.js → article-Ni152e-v.js} +107 -92
  4. package/dist/article.js +1 -1
  5. package/dist/catalog.json +151 -34
  6. package/dist/{categorical-values-AXJkMt-Y.js → categorical-values-6Iz03F1i.js} +1 -1
  7. package/dist/{cells-X8SVrZBc.js → cells-BRI8LpMU.js} +1 -1
  8. package/dist/charts/cartesian.js +1 -1
  9. package/dist/charts/cells.js +1 -1
  10. package/dist/charts/comparison.js +1 -1
  11. package/dist/charts/distribution.js +1 -1
  12. package/dist/charts/figure.js +12 -12
  13. package/dist/charts/graph.js +1 -1
  14. package/dist/charts/hierarchy.js +1 -1
  15. package/dist/charts/image.js +1 -1
  16. package/dist/charts/matrix.js +2 -2
  17. package/dist/charts/plot.js +16 -15
  18. package/dist/charts/relationship.js +1 -1
  19. package/dist/charts/text.js +1 -1
  20. package/dist/charts/timeline.js +2 -2
  21. package/dist/charts/trend.js +1 -1
  22. package/dist/charts.js +3 -3
  23. package/dist/{code-block-BDRmjlES.js → code-block-DbW_t9U4.js} +1 -1
  24. package/dist/collections.js +1 -1
  25. package/dist/{color-legend-CIo7DhXB.js → color-legend-4As8881l.js} +1 -1
  26. package/dist/{commands-rzsDElrG.js → commands-C7Zrp-tG.js} +2 -2
  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 +1 -1
  31. package/dist/content/tree.js +2 -2
  32. package/dist/{content-link-DRaNf1mD.js → content-link-BN4NPp0u.js} +1 -1
  33. package/dist/content.js +1 -1
  34. package/dist/{dates-wu-gKO2C.js → dates-OTq-xU33.js} +2 -2
  35. package/dist/{dumbbell-plot-VFajQtEW.js → dumbbell-plot-jaQvOctJ.js} +4 -4
  36. package/dist/{embedding-map-BqDEmy88.js → embedding-map-DnZL1kvY.js} +8 -8
  37. package/dist/feedback.js +1 -1
  38. package/dist/figure-format-BVb7yFCA.js +46 -0
  39. package/dist/{figure-frame-Dd-pOeZN.js → figure-frame-96zFqsWz.js} +22 -21
  40. package/dist/forms/dates.js +1 -1
  41. package/dist/{forms-Bjx7JQ30.js → forms-iAOjGRTO.js} +1 -1
  42. package/dist/forms.js +2 -2
  43. package/dist/{image-grid-Dpyqxgwy.js → image-grid-B6fdmE9c.js} +4 -4
  44. package/dist/index.js +1 -1
  45. package/dist/kits/evaluation.js +15 -15
  46. package/dist/kits/interpretability.js +49 -45
  47. package/dist/kits/operations.js +81 -80
  48. package/dist/kits/research.js +776 -499
  49. package/dist/kits/training.js +108 -107
  50. package/dist/layout.js +1 -1
  51. package/dist/lesson.js +3 -3
  52. package/dist/markdown-JeuBeMDZ.js +293 -0
  53. package/dist/mdx.js +6 -6
  54. package/dist/navigation/commands.js +1 -1
  55. package/dist/{navigation-Cp3p0gss.js → navigation-CTnYtVD8.js} +1 -1
  56. package/dist/navigation.js +3 -3
  57. package/dist/packages/ai/src/index.d.ts +2 -0
  58. package/dist/packages/ai/src/message-reactions.d.ts +51 -0
  59. package/dist/packages/ai/src/message.d.ts +3 -1
  60. package/dist/packages/charts/src/plot/index.d.ts +2 -0
  61. package/dist/packages/charts/src/plot/plot-layout.d.ts +2 -2
  62. package/dist/packages/charts/src/plot/spatial-layer.d.ts +32 -0
  63. package/dist/packages/charts/src/plot/ticks.d.ts +2 -2
  64. package/dist/packages/collections/src/card-columns-model.d.ts +50 -0
  65. package/dist/packages/collections/src/card-columns.d.ts +30 -0
  66. package/dist/packages/collections/src/collection-page.d.ts +43 -0
  67. package/dist/packages/collections/src/column-card.d.ts +15 -0
  68. package/dist/packages/collections/src/data-table-layout.d.ts +2 -0
  69. package/dist/packages/collections/src/data-table-rows.d.ts +4 -3
  70. package/dist/packages/collections/src/data-table.d.ts +2 -2
  71. package/dist/packages/collections/src/index.d.ts +5 -0
  72. package/dist/packages/collections/src/table-query.d.ts +9 -1
  73. package/dist/packages/feedback/src/feedback.d.ts +0 -4
  74. package/dist/packages/feedback/src/index.d.ts +1 -1
  75. package/dist/packages/foundations/src/visible-motion.d.ts +1 -1
  76. package/dist/packages/kits/src/research/index.d.ts +7 -2
  77. package/dist/packages/kits/src/research/motion-clip.d.ts +41 -0
  78. package/dist/packages/kits/src/research/motion-error.d.ts +8 -0
  79. package/dist/packages/kits/src/research/motion-figure.d.ts +9 -0
  80. package/dist/packages/kits/src/research/motion-frame.d.ts +22 -0
  81. package/dist/packages/kits/src/research/motion-scene.d.ts +22 -0
  82. package/dist/packages/teaching/src/article/uncover.d.ts +2 -0
  83. package/dist/{param-CwT1RvUS.js → param-Dk92C-K1.js} +2 -2
  84. package/dist/{pierre-diff-DuvK3kLF.js → pierre-diff-DXVIwW7o.js} +1 -1
  85. package/dist/plot-CpTwLIYN.js +101 -0
  86. package/dist/{plot-layout-CvkeUuG6.js → plot-layout-1MG72ZWn.js} +175 -124
  87. package/dist/{plot-surface-yy37R4vs.js → plot-surface-8-FZI94y.js} +1 -1
  88. package/dist/{reference-lines-AMeDkYlo.js → reference-lines-C18o1yEY.js} +1 -1
  89. package/dist/{scene-BRhI8XSy.js → scene-B8dppj5V.js} +7 -7
  90. package/dist/scene.js +1 -1
  91. package/dist/{slope-chart-BMOCaa8R.js → slope-chart-CELflRJd.js} +5 -5
  92. package/dist/{src-9n2M1V_y.js → src-BCAelv4f.js} +3 -3
  93. package/dist/{src-BgmAkau8.js → src-Bkov5TTa.js} +171 -164
  94. package/dist/{src-Bns-5joF.js → src-BsqbWDxS.js} +4 -4
  95. package/dist/{src-BdyO4PgQ.js → src-CIyuaSCi.js} +101 -107
  96. package/dist/{src-Tu6d_Pm8.js → src-Dc1t1ugL.js} +958 -585
  97. package/dist/{src-C5SH3jjU.js → src-DceyVyL0.js} +2 -2
  98. package/dist/{src-C_E29-DX.js → src-Dlh99sPD.js} +1 -1
  99. package/dist/styles2.css +33 -1
  100. package/dist/{time-series-CTNVqoUQ.js → time-series-DtAtGoT_.js} +9 -9
  101. package/dist/{timeline-DrsDtEIW.js → timeline-CzianQir.js} +5 -5
  102. package/dist/{token-heatmap-DddArdH8.js → token-heatmap-m6oaMwkK.js} +274 -289
  103. package/dist/{token-predictions-CBykmPID.js → token-predictions-CpGVjOIs.js} +4 -4
  104. package/dist/{transport-r1QgELf8.js → transport-DQ1yzsQl.js} +5 -5
  105. package/dist/{tree-diagram-BIJFK4pl.js → tree-diagram-D9ekymCQ.js} +5 -5
  106. package/dist/{treemap-DgmEw_mr.js → treemap-DT8q65LQ.js} +5 -5
  107. package/dist/{use-tween-BWf44Jy4.js → use-tween-DbXVZBR8.js} +1 -1
  108. package/dist/{violin-plot-BYJnv6sG.js → violin-plot-83HSjnQM.js} +4 -4
  109. package/dist/visible-motion-D6NwjGNz.js +24 -0
  110. package/dist/{waterfall-BNseqMas.js → waterfall-DmApvdrY.js} +5 -5
  111. package/package.json +1 -1
  112. package/recipes/recorded-motion.tsx +14 -0
  113. package/recipes/searchable-collection.tsx +74 -76
  114. package/skills/extend-elements/SKILL.md +2 -1
  115. package/skills/review-elements/SKILL.md +15 -7
  116. package/skills/review-explainer/SKILL.md +4 -0
  117. package/skills/upgrade-elements/SKILL.md +3 -1
  118. package/skills/upgrade-elements/references/releases.md +20 -0
  119. package/skills/use-elements/SKILL.md +10 -6
  120. package/skills/use-elements/references/collections.md +59 -12
  121. package/skills/use-elements/references/conversations.md +32 -0
  122. package/skills/use-elements/references/editorial-restraint.md +17 -29
  123. package/skills/use-elements/references/figures.md +6 -2
  124. package/skills/use-elements/references/kits.md +23 -0
  125. package/skills/use-elements/references/workspace.md +5 -5
  126. package/skills/write-explainer/SKILL.md +5 -0
  127. package/dist/figure-format-B8kRZMlo.js +0 -36
  128. package/dist/markdown--nfaDoR1.js +0 -313
  129. package/dist/packages/kits/src/research/collection-page.d.ts +0 -71
@@ -1,6 +1,6 @@
1
- import { C as e, F as t, I as n, L as r, N as i, O as a, P as o, i as s, o as c, s as l, w as u, x as d } from "./src-BgmAkau8.js";
1
+ import { C as e, F as t, I as n, L as r, N as i, O as a, P as o, i as s, o as c, s as l, w as u, x as d } from "./src-Bkov5TTa.js";
2
2
  import { n as f } from "./accessibility-P89UG9-r.js";
3
- import { r as p } from "./forms-Bjx7JQ30.js";
3
+ import { r as p } from "./forms-iAOjGRTO.js";
4
4
  import * as m from "@stylexjs/stylex";
5
5
  import { createParts as ee, mergeProps as h } from "@ui-sdk/react/primitive";
6
6
  import { createContext as g, useContext as _, useId as v, useState as te } from "react";
@@ -1,4 +1,4 @@
1
- import { M as e, u as t } from "./src-BgmAkau8.js";
1
+ import { M as e, u as t } from "./src-Bkov5TTa.js";
2
2
  import * as n from "@stylexjs/stylex";
3
3
  import { mergeProps as r } from "@ui-sdk/react/primitive";
4
4
  import { Children as i, useState as a } from "react";
package/dist/styles2.css CHANGED
@@ -416,6 +416,10 @@
416
416
  border-width: 2px;
417
417
  }
418
418
 
419
+ .xwgdodg {
420
+ flex: 1 0 min(100%, 256px);
421
+ }
422
+
419
423
  .x1cqoux5 {
420
424
  flex: 1 1 0;
421
425
  }
@@ -776,7 +780,7 @@
776
780
  border-color: var(--x5peq9z);
777
781
  }
778
782
 
779
- .x1gd1hh4:focus-within, .x9tegbm[data-selected], .xcx2lv2[data-dragging] {
783
+ .x1gd1hh4:focus-within, .x726p7d[data-pressed], .x9tegbm[data-selected], .xcx2lv2[data-dragging] {
780
784
  border-color: var(--xzqn2nu);
781
785
  }
782
786
 
@@ -1900,6 +1904,10 @@
1900
1904
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
1901
1905
  }
1902
1906
 
1907
+ .x1yqo59v {
1908
+ grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
1909
+ }
1910
+
1903
1911
  .xhuszhj {
1904
1912
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
1905
1913
  }
@@ -2843,6 +2851,10 @@
2843
2851
  align-items: stretch;
2844
2852
  }
2845
2853
 
2854
+ .x1h1mp10[data-pressed] {
2855
+ background-color: color-mix(in srgb,var(--xzqn2nu) 14%,var(--x13kja51));
2856
+ }
2857
+
2846
2858
  .x1a2jpx9[aria-selected="true"], .x1sxamyl[data-selected] {
2847
2859
  background-color: var(--x197nfi7);
2848
2860
  }
@@ -2927,6 +2939,10 @@
2927
2939
  flex-shrink: 0;
2928
2940
  }
2929
2941
 
2942
+ .xqmg3gf[data-pressed] {
2943
+ font-weight: var(--x1nq3oar);
2944
+ }
2945
+
2930
2946
  .x1w0yyvy[data-orientation="vertical"] {
2931
2947
  justify-content: center;
2932
2948
  }
@@ -3655,6 +3671,10 @@
3655
3671
  max-height: 560px;
3656
3672
  }
3657
3673
 
3674
+ .x1jkf3pl {
3675
+ max-height: 60svh;
3676
+ }
3677
+
3658
3678
  .x159tps6 {
3659
3679
  max-height: 640px;
3660
3680
  }
@@ -3679,6 +3699,10 @@
3679
3699
  max-height: min(320px,var(--available-height));
3680
3700
  }
3681
3701
 
3702
+ .x1mpjnf3 {
3703
+ max-height: min(70vh, 640px);
3704
+ }
3705
+
3682
3706
  .x1374xjt {
3683
3707
  max-height: var(--available-height);
3684
3708
  }
@@ -3915,6 +3939,10 @@
3915
3939
  min-width: min(12rem, 100%);
3916
3940
  }
3917
3941
 
3942
+ .x16wq478 {
3943
+ min-width: min(6ch, 25%);
3944
+ }
3945
+
3918
3946
  .x80t9vs {
3919
3947
  min-width: var(--anchor-width);
3920
3948
  }
@@ -4388,6 +4416,10 @@
4388
4416
  }
4389
4417
 
4390
4418
  @container scrolly (width >= 640px) {
4419
+ .x1xm96vb.x1xm96vb {
4420
+ max-height: calc(100svh - var(--xz7cmyu));
4421
+ }
4422
+
4391
4423
  .xyvmra8.xyvmra8 {
4392
4424
  min-height: 50vh;
4393
4425
  }
@@ -1,21 +1,21 @@
1
- import { A as e } from "./src-BgmAkau8.js";
1
+ import { A as e } from "./src-Bkov5TTa.js";
2
2
  import { t } from "./accessibility-P89UG9-r.js";
3
- import { x as n } from "./src-C5SH3jjU.js";
4
- import { d as r, u as i } from "./src-BdyO4PgQ.js";
3
+ import { x as n } from "./src-DceyVyL0.js";
4
+ import { d as r, u as i } from "./src-CIyuaSCi.js";
5
5
  import { n as a, t as o } from "./chart-tones-ei3BC2AL.js";
6
- import { A as s, D as c, E as l, M as u, S as d, a as f, b as p, c as m, i as h, j as ee, m as g, n as _, o as v, p as y, w as b } from "./plot-layout-CvkeUuG6.js";
7
- import { i as te, n as x, r as S, t as C } from "./categorical-values-AXJkMt-Y.js";
6
+ import { A as s, D as c, E as l, M as u, S as d, a as f, b as p, c as m, i as h, j as ee, m as g, n as _, o as v, p as y, w as b } from "./plot-layout-1MG72ZWn.js";
7
+ import { i as te, n as x, r as S, t as C } from "./categorical-values-6Iz03F1i.js";
8
8
  import { i as w } from "./chart-link-AE_xuxiP.js";
9
9
  import { a as T } from "./tone-scope-DKiSw-JR.js";
10
- import { n as ne, r as re, t as E } from "./figure-format-B8kRZMlo.js";
10
+ import { n as ne, r as re, t as E } from "./figure-format-BVb7yFCA.js";
11
11
  import { a as D, i as O, o as k, r as A, t as ie } from "./scale-C2xgZyZN.js";
12
12
  import { t as ae } from "./chart-cursor-1mFd48Jc.js";
13
- import { c as oe, i as j, l as se, n as ce, o as M, r as le, s as N, t as ue } from "./figure-frame-Dd-pOeZN.js";
13
+ import { c as oe, i as j, l as se, n as ce, o as M, r as le, s as N, t as ue } from "./figure-frame-96zFqsWz.js";
14
14
  import { n as P, t as F } from "./plot-width-D3hTycYX.js";
15
15
  import { t as de } from "./plot-axes-D5S9BnBa.js";
16
16
  import { a as I, c as L, d as R, f as z, i as fe, l as pe, n as B, o as me, r as V, s as he, t as ge } from "./plot-marks-DgCtcd3L.js";
17
- import { n as _e, r as ve, t as ye } from "./plot-surface-yy37R4vs.js";
18
- import { n as be, t as xe } from "./reference-lines-AMeDkYlo.js";
17
+ import { n as _e, r as ve, t as ye } from "./plot-surface-8-FZI94y.js";
18
+ import { n as be, t as xe } from "./reference-lines-C18o1yEY.js";
19
19
  import { n as Se, r as H, t as Ce } from "./path-BglsXpnO.js";
20
20
  import { t as we } from "./chart-range-Du1gDxCY.js";
21
21
  import { t as U } from "./locate-Bcg3QcP4.js";
@@ -1,16 +1,16 @@
1
- import { A as e, E as t, M as n, S as r, h as i, j as a, l as o, s } from "./plot-layout-CvkeUuG6.js";
2
- import { E as c, c as l, m as u, t as d, y as f } from "./src-BgmAkau8.js";
1
+ import { A as e, E as t, M as n, S as r, h as i, j as a, l as o, s } from "./plot-layout-1MG72ZWn.js";
2
+ import { E as c, c as l, m as u, t as d, y as f } from "./src-Bkov5TTa.js";
3
3
  import { t as p } from "./chart-tones-ei3BC2AL.js";
4
4
  import { t as m } from "./chart-cursor-1mFd48Jc.js";
5
- import { i as h, l as g, n as _, r as ee, t as te } from "./figure-frame-Dd-pOeZN.js";
5
+ import { i as h, l as g, n as _, r as ee, t as te } from "./figure-frame-96zFqsWz.js";
6
6
  import { i as v } from "./chart-link-AE_xuxiP.js";
7
7
  import { t as y } from "./chart-range-Du1gDxCY.js";
8
8
  import { n as ne } from "./plot-width-D3hTycYX.js";
9
- import { r as re } from "./figure-format-B8kRZMlo.js";
9
+ import { r as re } from "./figure-format-BVb7yFCA.js";
10
10
  import { a as ie } from "./tone-scope-DKiSw-JR.js";
11
11
  import { t as ae } from "./plot-axes-D5S9BnBa.js";
12
12
  import { r as oe } from "./plot-marks-DgCtcd3L.js";
13
- import { n as se, r as ce, t as le } from "./plot-surface-yy37R4vs.js";
13
+ import { n as se, r as ce, t as le } from "./plot-surface-8-FZI94y.js";
14
14
  import { r as ue } from "./scale-C2xgZyZN.js";
15
15
  import * as b from "@stylexjs/stylex";
16
16
  import { useId as de, useRef as fe, useState as pe } from "react";