@mechane-ai/elements 0.65.0 → 0.67.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 +21 -10
- package/dist/ai.js +285 -203
- package/dist/{article-BrUa4Wz1.js → article-anMy8fA5.js} +6 -6
- package/dist/article.js +1 -1
- package/dist/catalog.json +81 -34
- package/dist/{categorical-values-AXJkMt-Y.js → categorical-values-Bh7ZkEQn.js} +1 -1
- package/dist/charts/cartesian.js +1 -1
- package/dist/charts/comparison.js +1 -1
- package/dist/charts/distribution.js +1 -1
- package/dist/charts/figure.js +12 -12
- package/dist/charts/graph.js +1 -1
- package/dist/charts/hierarchy.js +1 -1
- package/dist/charts/image.js +1 -1
- package/dist/charts/matrix.js +1 -1
- package/dist/charts/plot.js +3 -3
- package/dist/charts/relationship.js +1 -1
- package/dist/charts/text.js +1 -1
- package/dist/charts/timeline.js +2 -2
- package/dist/charts/trend.js +1 -1
- package/dist/charts.js +2 -2
- package/dist/{code-block-BDRmjlES.js → code-block-DbW_t9U4.js} +1 -1
- package/dist/collections.js +1 -1
- package/dist/{commands-rzsDElrG.js → commands-C7Zrp-tG.js} +2 -2
- package/dist/content/code.js +1 -1
- package/dist/content/diff.js +3 -3
- package/dist/content/link.js +1 -1
- package/dist/content/markdown.js +1 -1
- package/dist/content/tree.js +2 -2
- package/dist/{content-link-DRaNf1mD.js → content-link-BN4NPp0u.js} +1 -1
- package/dist/content.js +1 -1
- package/dist/{dates-wu-gKO2C.js → dates-OTq-xU33.js} +2 -2
- package/dist/{dumbbell-plot-VFajQtEW.js → dumbbell-plot-BQDGe0sQ.js} +3 -3
- package/dist/{embedding-map-BqDEmy88.js → embedding-map-DmmknG7A.js} +6 -6
- package/dist/feedback.js +1 -1
- package/dist/{figure-frame-Dd-pOeZN.js → figure-frame-DlyNTDzh.js} +22 -21
- package/dist/forms/dates.js +1 -1
- package/dist/{forms-Bjx7JQ30.js → forms-iAOjGRTO.js} +1 -1
- package/dist/forms.js +2 -2
- package/dist/{image-grid-Dpyqxgwy.js → image-grid-CxEAQvTf.js} +3 -3
- package/dist/index.js +1 -1
- package/dist/kits/evaluation.js +13 -13
- package/dist/kits/interpretability.js +47 -43
- package/dist/kits/operations.js +80 -79
- package/dist/kits/research.js +364 -499
- package/dist/kits/training.js +108 -107
- package/dist/layout.js +1 -1
- package/dist/lesson.js +3 -3
- package/dist/{markdown--nfaDoR1.js → markdown-Diffqqm7.js} +2 -2
- package/dist/mdx.js +6 -6
- package/dist/navigation/commands.js +1 -1
- package/dist/{navigation-Cp3p0gss.js → navigation-CTnYtVD8.js} +1 -1
- package/dist/navigation.js +3 -3
- package/dist/packages/ai/src/index.d.ts +2 -0
- package/dist/packages/ai/src/message-reactions.d.ts +51 -0
- package/dist/packages/ai/src/message.d.ts +3 -1
- package/dist/packages/collections/src/card-columns-model.d.ts +50 -0
- package/dist/packages/collections/src/card-columns.d.ts +30 -0
- package/dist/packages/collections/src/collection-page.d.ts +43 -0
- package/dist/packages/collections/src/column-card.d.ts +15 -0
- package/dist/packages/collections/src/data-table-layout.d.ts +2 -0
- package/dist/packages/collections/src/data-table-rows.d.ts +4 -3
- package/dist/packages/collections/src/data-table.d.ts +2 -2
- package/dist/packages/collections/src/index.d.ts +5 -0
- package/dist/packages/collections/src/table-query.d.ts +9 -1
- package/dist/packages/feedback/src/feedback.d.ts +0 -4
- package/dist/packages/feedback/src/index.d.ts +1 -1
- package/dist/packages/kits/src/research/index.d.ts +0 -2
- package/dist/{param-CwT1RvUS.js → param-CKr8EYxF.js} +1 -1
- package/dist/{pierre-diff-DuvK3kLF.js → pierre-diff-DXVIwW7o.js} +1 -1
- package/dist/{plot-layout-CvkeUuG6.js → plot-layout-CVzSbcU7.js} +24 -23
- package/dist/{plot-surface-yy37R4vs.js → plot-surface-CBhI1alw.js} +1 -1
- package/dist/{reference-lines-AMeDkYlo.js → reference-lines-C970JwWZ.js} +1 -1
- package/dist/{scene-BRhI8XSy.js → scene-C3dCxckI.js} +6 -6
- package/dist/scene.js +1 -1
- package/dist/{slope-chart-BMOCaa8R.js → slope-chart-DekEJxsy.js} +4 -4
- package/dist/{src-9n2M1V_y.js → src-BCAelv4f.js} +3 -3
- package/dist/{src-BgmAkau8.js → src-Bkov5TTa.js} +171 -164
- package/dist/{src-Bns-5joF.js → src-BsqbWDxS.js} +4 -4
- package/dist/{src-BdyO4PgQ.js → src-CIyuaSCi.js} +101 -107
- package/dist/{src-Tu6d_Pm8.js → src-Dc1t1ugL.js} +958 -585
- package/dist/{src-C5SH3jjU.js → src-DceyVyL0.js} +2 -2
- package/dist/{src-C_E29-DX.js → src-Dlh99sPD.js} +1 -1
- package/dist/styles2.css +21 -1
- package/dist/{time-series-CTNVqoUQ.js → time-series-BSNnijxf.js} +8 -8
- package/dist/{timeline-DrsDtEIW.js → timeline-CnxfYSIg.js} +4 -4
- package/dist/{token-heatmap-DddArdH8.js → token-heatmap-CJaXo56P.js} +3 -3
- package/dist/{token-predictions-CBykmPID.js → token-predictions-Bi7aKPnh.js} +3 -3
- package/dist/{transport-r1QgELf8.js → transport-CXj0DV6o.js} +4 -4
- package/dist/{tree-diagram-BIJFK4pl.js → tree-diagram-BxOZsjr1.js} +4 -4
- package/dist/{treemap-DgmEw_mr.js → treemap-B2yOAetT.js} +4 -4
- package/dist/{use-tween-BWf44Jy4.js → use-tween-C1TWJwce.js} +1 -1
- package/dist/{violin-plot-BYJnv6sG.js → violin-plot-W2L_2JRo.js} +3 -3
- package/dist/{waterfall-BNseqMas.js → waterfall-Bt73N2Ng.js} +4 -4
- package/package.json +1 -1
- package/recipes/searchable-collection.tsx +74 -76
- package/skills/extend-elements/SKILL.md +2 -1
- package/skills/review-elements/SKILL.md +11 -7
- package/skills/upgrade-elements/SKILL.md +3 -1
- package/skills/upgrade-elements/references/releases.md +20 -0
- package/skills/use-elements/SKILL.md +8 -6
- package/skills/use-elements/references/collections.md +59 -12
- package/skills/use-elements/references/conversations.md +32 -0
- package/skills/use-elements/references/editorial-restraint.md +17 -29
- package/skills/use-elements/references/figures.md +6 -2
- package/skills/use-elements/references/workspace.md +5 -5
- 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-
|
|
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-
|
|
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";
|
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
|
|
|
@@ -2843,6 +2847,10 @@
|
|
|
2843
2847
|
align-items: stretch;
|
|
2844
2848
|
}
|
|
2845
2849
|
|
|
2850
|
+
.x1h1mp10[data-pressed] {
|
|
2851
|
+
background-color: color-mix(in srgb,var(--xzqn2nu) 14%,var(--x13kja51));
|
|
2852
|
+
}
|
|
2853
|
+
|
|
2846
2854
|
.x1a2jpx9[aria-selected="true"], .x1sxamyl[data-selected] {
|
|
2847
2855
|
background-color: var(--x197nfi7);
|
|
2848
2856
|
}
|
|
@@ -2927,6 +2935,10 @@
|
|
|
2927
2935
|
flex-shrink: 0;
|
|
2928
2936
|
}
|
|
2929
2937
|
|
|
2938
|
+
.xqmg3gf[data-pressed] {
|
|
2939
|
+
font-weight: var(--x1nq3oar);
|
|
2940
|
+
}
|
|
2941
|
+
|
|
2930
2942
|
.x1w0yyvy[data-orientation="vertical"] {
|
|
2931
2943
|
justify-content: center;
|
|
2932
2944
|
}
|
|
@@ -3679,6 +3691,10 @@
|
|
|
3679
3691
|
max-height: min(320px,var(--available-height));
|
|
3680
3692
|
}
|
|
3681
3693
|
|
|
3694
|
+
.x1mpjnf3 {
|
|
3695
|
+
max-height: min(70vh, 640px);
|
|
3696
|
+
}
|
|
3697
|
+
|
|
3682
3698
|
.x1374xjt {
|
|
3683
3699
|
max-height: var(--available-height);
|
|
3684
3700
|
}
|
|
@@ -3915,6 +3931,10 @@
|
|
|
3915
3931
|
min-width: min(12rem, 100%);
|
|
3916
3932
|
}
|
|
3917
3933
|
|
|
3934
|
+
.x16wq478 {
|
|
3935
|
+
min-width: min(6ch, 25%);
|
|
3936
|
+
}
|
|
3937
|
+
|
|
3918
3938
|
.x80t9vs {
|
|
3919
3939
|
min-width: var(--anchor-width);
|
|
3920
3940
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { A as e } from "./src-
|
|
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-
|
|
4
|
-
import { d as r, u as i } from "./src-
|
|
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-
|
|
7
|
-
import { i as te, n as x, r as S, t as C } from "./categorical-values-
|
|
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-CVzSbcU7.js";
|
|
7
|
+
import { i as te, n as x, r as S, t as C } from "./categorical-values-Bh7ZkEQn.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
10
|
import { n as ne, r as re, t as E } from "./figure-format-B8kRZMlo.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-
|
|
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-DlyNTDzh.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-
|
|
18
|
-
import { n as be, t as xe } from "./reference-lines-
|
|
17
|
+
import { n as _e, r as ve, t as ye } from "./plot-surface-CBhI1alw.js";
|
|
18
|
+
import { n as be, t as xe } from "./reference-lines-C970JwWZ.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,8 +1,8 @@
|
|
|
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-
|
|
2
|
-
import { E as c, c as l, m as u, t as d, y as f } from "./src-
|
|
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-CVzSbcU7.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-
|
|
5
|
+
import { i as h, l as g, n as _, r as ee, t as te } from "./figure-frame-DlyNTDzh.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";
|
|
@@ -10,7 +10,7 @@ import { r as re } from "./figure-format-B8kRZMlo.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-
|
|
13
|
+
import { n as se, r as ce, t as le } from "./plot-surface-CBhI1alw.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";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as e } from "./tokens.stylex-dF5CACEJ.js";
|
|
2
|
-
import { d as t, l as n, s as r } from "./dates-
|
|
3
|
-
import { A as i, D as a, E as o, M as s, O as c, S as l, a as u, j as d, k as f } from "./plot-layout-
|
|
2
|
+
import { d as t, l as n, s as r } from "./dates-OTq-xU33.js";
|
|
3
|
+
import { A as i, D as a, E as o, M as s, O as c, S as l, a as u, j as d, k as f } from "./plot-layout-CVzSbcU7.js";
|
|
4
4
|
import { i as p } from "./chart-link-AE_xuxiP.js";
|
|
5
5
|
import { n as m, r as h } from "./figure-format-B8kRZMlo.js";
|
|
6
|
-
import { i as g, l as _, n as ee, r as te, t as ne } from "./figure-frame-
|
|
6
|
+
import { i as g, l as _, n as ee, r as te, t as ne } from "./figure-frame-DlyNTDzh.js";
|
|
7
7
|
import { n as v, t as re } from "./plot-width-D3hTycYX.js";
|
|
8
8
|
import { n as y, r as b, t as ie } from "./heatmap-scale-Zte6Ya-g.js";
|
|
9
9
|
import { t as ae } from "./color-legend-CIo7DhXB.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { r as e } from "./tokens.stylex-dF5CACEJ.js";
|
|
2
2
|
import { t } from "./chart-tones-ei3BC2AL.js";
|
|
3
|
-
import { A as n, D as r, E as i, M as a, O as o, S as s, a as c, i as l, j as u, n as d, s as f, x as p } from "./plot-layout-
|
|
3
|
+
import { A as n, D as r, E as i, M as a, O as o, S as s, a as c, i as l, j as u, n as d, s as f, x as p } from "./plot-layout-CVzSbcU7.js";
|
|
4
4
|
import { i as ee } from "./chart-link-AE_xuxiP.js";
|
|
5
5
|
import { r as m } from "./figure-format-B8kRZMlo.js";
|
|
6
6
|
import { a as h, i as g, o as _ } from "./scale-C2xgZyZN.js";
|
|
7
|
-
import { i as te, l as ne, n as re, r as v, t as ie } from "./figure-frame-
|
|
7
|
+
import { i as te, l as ne, n as re, r as v, t as ie } from "./figure-frame-DlyNTDzh.js";
|
|
8
8
|
import { n as ae } from "./plot-width-D3hTycYX.js";
|
|
9
9
|
import { t as y } from "./plot-axes-D5S9BnBa.js";
|
|
10
10
|
import { c as b, f as x, r as S, u as C } from "./plot-marks-DgCtcd3L.js";
|
|
11
|
-
import { n as w, r as T, t as E } from "./plot-surface-
|
|
11
|
+
import { n as w, r as T, t as E } from "./plot-surface-CBhI1alw.js";
|
|
12
12
|
import { r as D } from "./path-BglsXpnO.js";
|
|
13
13
|
import { t as O } from "./locate-Bcg3QcP4.js";
|
|
14
14
|
import * as k from "@stylexjs/stylex";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { O as e, m as t } from "./src-
|
|
2
|
-
import { d as n, u as r, x as i } from "./src-
|
|
3
|
-
import { t as a } from "./forms-
|
|
1
|
+
import { O as e, m as t } from "./src-Bkov5TTa.js";
|
|
2
|
+
import { d as n, u as r, x as i } from "./src-DceyVyL0.js";
|
|
3
|
+
import { t as a } from "./forms-iAOjGRTO.js";
|
|
4
4
|
import { r as o } from "./figure-format-B8kRZMlo.js";
|
|
5
5
|
import { n as s, t as c } from "./clock-DSm5lkNE.js";
|
|
6
|
-
import { a as l, c as u, d, f, h as p, m, o as h, p as g, r as _, s as v, v as y } from "./param-
|
|
6
|
+
import { a as l, c as u, d, f, h as p, m, o as h, p as g, r as _, s as v, v as y } from "./param-CKr8EYxF.js";
|
|
7
7
|
import "@stylexjs/stylex";
|
|
8
8
|
import { usePart as ee, usePrimitive as te } from "@ui-sdk/react/primitive";
|
|
9
9
|
import { use as b, useEffect as x, useId as S, useRef as ne, useState as re, useSyncExternalStore as C } from "react";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { A as e, E as t } from "./src-
|
|
1
|
+
import { A as e, E as t } from "./src-Bkov5TTa.js";
|
|
2
2
|
import { t as n } from "./accessibility-P89UG9-r.js";
|
|
3
3
|
import { n as r, t as i } from "./chart-tones-ei3BC2AL.js";
|
|
4
|
-
import { A as a, D as o, E as s, M as c, O as l, S as u, T as d, c as f, j as p, x as m } from "./plot-layout-
|
|
4
|
+
import { A as a, D as o, E as s, M as c, O as l, S as u, T as d, c as f, j as p, x as m } from "./plot-layout-CVzSbcU7.js";
|
|
5
5
|
import { i as h } from "./chart-link-AE_xuxiP.js";
|
|
6
6
|
import { a as g } from "./tone-scope-DKiSw-JR.js";
|
|
7
7
|
import { r as _ } from "./figure-format-B8kRZMlo.js";
|
|
8
|
-
import { i as v, l as y, n as b, r as x, t as S } from "./figure-frame-
|
|
8
|
+
import { i as v, l as y, n as b, r as x, t as S } from "./figure-frame-DlyNTDzh.js";
|
|
9
9
|
import { n as C, t as w } from "./plot-width-D3hTycYX.js";
|
|
10
10
|
import { a as T, c as E, p as D, u as O } from "./plot-marks-DgCtcd3L.js";
|
|
11
|
-
import { r as k } from "./plot-surface-
|
|
11
|
+
import { r as k } from "./plot-surface-CBhI1alw.js";
|
|
12
12
|
import { t as A } from "./label-spacing-BncjePGb.js";
|
|
13
13
|
import { i as ee } from "./path-BglsXpnO.js";
|
|
14
14
|
import { m as j } from "./values-963L6n1m.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as e } from "./chart-tones-ei3BC2AL.js";
|
|
2
|
-
import { A as t, E as n, M as r, S as i, j as a, s as o } from "./plot-layout-
|
|
3
|
-
import { i as s, n as c, t as l } from "./categorical-values-
|
|
2
|
+
import { A as t, E as n, M as r, S as i, j as a, s as o } from "./plot-layout-CVzSbcU7.js";
|
|
3
|
+
import { i as s, n as c, t as l } from "./categorical-values-Bh7ZkEQn.js";
|
|
4
4
|
import { i as u } from "./chart-link-AE_xuxiP.js";
|
|
5
5
|
import { a as d } from "./tone-scope-DKiSw-JR.js";
|
|
6
6
|
import { r as f } from "./figure-format-B8kRZMlo.js";
|
|
7
|
-
import { i as p, l as m, n as h, r as g, t as _ } from "./figure-frame-
|
|
7
|
+
import { i as p, l as m, n as h, r as g, t as _ } from "./figure-frame-DlyNTDzh.js";
|
|
8
8
|
import { n as v } from "./plot-width-D3hTycYX.js";
|
|
9
|
-
import { n as y, r as b } from "./plot-surface-
|
|
9
|
+
import { n as y, r as b } from "./plot-surface-CBhI1alw.js";
|
|
10
10
|
import * as x from "@stylexjs/stylex";
|
|
11
11
|
import { useId as S } from "react";
|
|
12
12
|
import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { n as e, t } from "./chart-tones-ei3BC2AL.js";
|
|
2
|
-
import { A as n, E as r, M as i, S as a, a as o, c as s, i as c, j as l, n as u, o as d } from "./plot-layout-
|
|
2
|
+
import { A as n, E as r, M as i, S as a, a as o, c as s, i as c, j as l, n as u, o as d } from "./plot-layout-CVzSbcU7.js";
|
|
3
3
|
import { i as f } from "./chart-link-AE_xuxiP.js";
|
|
4
4
|
import { a as p } from "./tone-scope-DKiSw-JR.js";
|
|
5
5
|
import { r as m } from "./figure-format-B8kRZMlo.js";
|
|
6
6
|
import { a as h, o as g } from "./scale-C2xgZyZN.js";
|
|
7
7
|
import { t as _ } from "./chart-cursor-1mFd48Jc.js";
|
|
8
|
-
import { i as v, l as y, n as b, r as x, t as S } from "./figure-frame-
|
|
8
|
+
import { i as v, l as y, n as b, r as x, t as S } from "./figure-frame-DlyNTDzh.js";
|
|
9
9
|
import { n as C, t as w } from "./plot-width-D3hTycYX.js";
|
|
10
10
|
import { t as T } from "./plot-axes-D5S9BnBa.js";
|
|
11
11
|
import { a as E, f as D, l as O, r as k, s as A } from "./plot-marks-DgCtcd3L.js";
|
|
12
|
-
import { n as ee, r as j, t as te } from "./plot-surface-
|
|
12
|
+
import { n as ee, r as j, t as te } from "./plot-surface-CBhI1alw.js";
|
|
13
13
|
import { r as ne } from "./path-BglsXpnO.js";
|
|
14
14
|
import { t as M } from "./locate-Bcg3QcP4.js";
|
|
15
15
|
import * as N from "@stylexjs/stylex";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { E as e, c as t, m as n } from "./src-
|
|
1
|
+
import { E as e, c as t, m as n } from "./src-Bkov5TTa.js";
|
|
2
2
|
import { n as r, t as i } from "./chart-tones-ei3BC2AL.js";
|
|
3
|
-
import { A as a, E as o, M as s, S as c, f as l, j as u, l as d, s as f } from "./plot-layout-
|
|
3
|
+
import { A as a, E as o, M as s, S as c, f as l, j as u, l as d, s as f } from "./plot-layout-CVzSbcU7.js";
|
|
4
4
|
import { i as ee } from "./chart-link-AE_xuxiP.js";
|
|
5
5
|
import { a as te } from "./tone-scope-DKiSw-JR.js";
|
|
6
6
|
import { n as p, r as m } from "./figure-format-B8kRZMlo.js";
|
|
7
7
|
import { a as h, o as ne, r as re } from "./scale-C2xgZyZN.js";
|
|
8
8
|
import { t as ie } from "./chart-cursor-1mFd48Jc.js";
|
|
9
|
-
import { i as ae, l as g, n as oe, r as se, t as _ } from "./figure-frame-
|
|
9
|
+
import { i as ae, l as g, n as oe, r as se, t as _ } from "./figure-frame-DlyNTDzh.js";
|
|
10
10
|
import { n as ce } from "./plot-width-D3hTycYX.js";
|
|
11
11
|
import { t as le } from "./plot-axes-D5S9BnBa.js";
|
|
12
12
|
import { a as v, c as ue, f as de, r as y } from "./plot-marks-DgCtcd3L.js";
|
|
13
|
-
import { n as b, r as fe, t as pe } from "./plot-surface-
|
|
13
|
+
import { n as b, r as fe, t as pe } from "./plot-surface-CBhI1alw.js";
|
|
14
14
|
import * as x from "@stylexjs/stylex";
|
|
15
15
|
import { useId as me, useState as he } from "react";
|
|
16
16
|
import { stackSpans as ge } from "@ui-sdk/core";
|
package/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Button } from '@mechane-ai/elements';
|
|
2
|
-
import {
|
|
3
|
-
import type { DataTableColumn, DataTableSort } from '@mechane-ai/elements/collections';
|
|
4
|
-
import {
|
|
5
|
-
import { PageLayout } from '@mechane-ai/elements/layout';
|
|
2
|
+
import { CollectionPage } from '@mechane-ai/elements/collections';
|
|
3
|
+
import type { CollectionRead, DataTableColumn, DataTableSort } from '@mechane-ai/elements/collections';
|
|
4
|
+
import { EmptyState } from '@mechane-ai/elements/feedback';
|
|
6
5
|
|
|
7
6
|
export type Worker = { readonly id: string; readonly name: string; readonly status: string };
|
|
8
7
|
|
|
@@ -33,84 +32,83 @@ const columns = [
|
|
|
33
32
|
{ id: 'status', label: 'Status', role: 'status', cell: (worker) => worker.status },
|
|
34
33
|
] satisfies ReadonlyArray<DataTableColumn<Worker>>;
|
|
35
34
|
|
|
35
|
+
function workerRead(result: WorkerRead, onRetry: () => void): CollectionRead<Worker> {
|
|
36
|
+
const retained = result.page === undefined ? {} : { rows: result.page.rows };
|
|
37
|
+
|
|
38
|
+
switch (result.status) {
|
|
39
|
+
case 'ready':
|
|
40
|
+
return { state: 'ready', rows: result.page.rows };
|
|
41
|
+
case 'pending':
|
|
42
|
+
return { state: 'pending', ...retained };
|
|
43
|
+
case 'failed':
|
|
44
|
+
return {
|
|
45
|
+
state: 'failed',
|
|
46
|
+
...retained,
|
|
47
|
+
failure: (
|
|
48
|
+
<EmptyState role="alert" title="Could not load workers" action={<Button onClick={onRetry}>Retry</Button>} />
|
|
49
|
+
),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
36
54
|
/**
|
|
37
|
-
* Build a
|
|
38
|
-
*
|
|
55
|
+
* Build a board feed, list, or server-paged collection with search and filters in its title and links to records. The
|
|
56
|
+
* route owns query state. The server authorizes, filters and sorts before paging.
|
|
39
57
|
*/
|
|
40
58
|
export function SearchableCollection({ query, result, onQueryChange, onRetry, workerHref, onOpen }: CollectionProps) {
|
|
41
59
|
const page = result.page;
|
|
42
|
-
const isPending = result.status === 'pending';
|
|
43
60
|
const isReady = result.status === 'ready';
|
|
44
61
|
|
|
45
|
-
const placeholder = <DataTablePlaceholder caption="Workers" columns={columns} />;
|
|
46
|
-
|
|
47
|
-
const failure = result.status === 'failed' && (
|
|
48
|
-
<Notice hasError>
|
|
49
|
-
Could not load workers. <Button onClick={onRetry}>Retry</Button>
|
|
50
|
-
</Notice>
|
|
51
|
-
);
|
|
52
|
-
|
|
53
62
|
return (
|
|
54
|
-
<
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
disabled: !isReady || !page.hasNext,
|
|
105
|
-
onClick: () => onQueryChange({ ...query, page: query.page + 1 }),
|
|
106
|
-
},
|
|
107
|
-
}}
|
|
108
|
-
empty="No workers yet."
|
|
109
|
-
filteredEmpty="No workers match your search or filters."
|
|
110
|
-
/>
|
|
111
|
-
)}
|
|
112
|
-
</AsyncRegion>
|
|
113
|
-
)}
|
|
114
|
-
</PageLayout>
|
|
63
|
+
<CollectionPage
|
|
64
|
+
title="Workers"
|
|
65
|
+
read={workerRead(result, onRetry)}
|
|
66
|
+
columns={columns}
|
|
67
|
+
getRowId={(worker) => worker.id}
|
|
68
|
+
query={{
|
|
69
|
+
mode: 'controlled',
|
|
70
|
+
search: {
|
|
71
|
+
label: 'Find workers',
|
|
72
|
+
value: query.text,
|
|
73
|
+
onChange: (text) => onQueryChange({ ...query, text, page: 1 }),
|
|
74
|
+
},
|
|
75
|
+
filters: [
|
|
76
|
+
{
|
|
77
|
+
id: 'status',
|
|
78
|
+
label: 'Status',
|
|
79
|
+
defaultValue: '',
|
|
80
|
+
value: query.status,
|
|
81
|
+
options: [
|
|
82
|
+
{ value: '', label: 'All statuses' },
|
|
83
|
+
{ value: 'Available', label: 'Available' },
|
|
84
|
+
{ value: 'Busy', label: 'Busy' },
|
|
85
|
+
],
|
|
86
|
+
onChange: (status) => onQueryChange({ ...query, status, page: 1 }),
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
}}
|
|
90
|
+
sort={query.sort}
|
|
91
|
+
onSortChange={(sort) => onQueryChange({ ...query, sort, page: 1 })}
|
|
92
|
+
rowAction={{
|
|
93
|
+
label: (worker) => `Open ${worker.name}`,
|
|
94
|
+
href: workerHref,
|
|
95
|
+
...(onOpen !== undefined && { onActivate: onOpen }),
|
|
96
|
+
}}
|
|
97
|
+
{...(page !== undefined && {
|
|
98
|
+
pagination: {
|
|
99
|
+
description: `Page ${page.number}`,
|
|
100
|
+
previous: {
|
|
101
|
+
disabled: !isReady || query.page <= 1,
|
|
102
|
+
onClick: () => onQueryChange({ ...query, page: query.page - 1 }),
|
|
103
|
+
},
|
|
104
|
+
next: {
|
|
105
|
+
disabled: !isReady || !page.hasNext,
|
|
106
|
+
onClick: () => onQueryChange({ ...query, page: query.page + 1 }),
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
})}
|
|
110
|
+
empty="No workers yet."
|
|
111
|
+
filteredEmpty="No workers match your search or filters."
|
|
112
|
+
/>
|
|
115
113
|
);
|
|
116
114
|
}
|
|
@@ -34,7 +34,8 @@ in the type. A family of styling booleans or a warning in the README leaves the
|
|
|
34
34
|
For a geometry regression, compare the bounds of the simplest shared composition with the consumer at desktop and phone
|
|
35
35
|
widths. For a navigation regression, hold the destination read and observe the first frame after activation. Identify
|
|
36
36
|
the boundary where the behavior first diverges. Exercise that boundary in the existing story or consumer check. Update
|
|
37
|
-
the contract and whichever recipe, application skill or review instruction taught the old pattern.
|
|
37
|
+
the contract and whichever recipe, application skill or review instruction taught the old pattern. Query the packaged
|
|
38
|
+
catalog with the original task and try its recommended call through the consumer's normal import boundary.
|
|
38
39
|
|
|
39
40
|
## A UI SDK component first
|
|
40
41
|
|
|
@@ -27,11 +27,13 @@ Put the pointer away and complete the page's main task.
|
|
|
27
27
|
|
|
28
28
|
Hold a slow read, fail one, and return an empty result.
|
|
29
29
|
|
|
30
|
-
-
|
|
31
|
-
|
|
30
|
+
- Try an immediate result, then hold a slow first read and release it while the placeholder fades in. Only the slow read
|
|
31
|
+
needs a visible placeholder. Check for one delayed loading announcement, stable focus and a smooth reveal. The heading
|
|
32
|
+
and dividers retain their positions. Repeat a background reconnect with a row under the pointer.
|
|
32
33
|
- A refresh keeps the last result, its focus and any draft on screen, with progress or the failure beside it.
|
|
33
|
-
- A failed first read shows
|
|
34
|
-
-
|
|
34
|
+
- A failed first read shows an `EmptyState` with Retry in place. A successful empty result shows an `EmptyState`.
|
|
35
|
+
- A failed refresh keeps usable content in place. For a collection, open the header's failure control and reach the
|
|
36
|
+
recovery action. Check that the same failure is reported once.
|
|
35
37
|
- Hold a destination read or route module open. Activate its link, then try Back and Forward. On the first rendered
|
|
36
38
|
frame the old heading, rows and record actions have left the changing region, and the shell stays usable. Release
|
|
37
39
|
responses out of order and confirm only the current destination can appear. Repeat for a record selected by URL.
|
|
@@ -42,7 +44,8 @@ Hold a slow read, fail one, and return an empty result.
|
|
|
42
44
|
Check 360 pixels wide, a tablet width and a wide desktop.
|
|
43
45
|
|
|
44
46
|
- The page never scrolls sideways. A wide table or plot scrolls inside its own region.
|
|
45
|
-
-
|
|
47
|
+
- Check the collection title and its collapsed search and filter controls together at each width. Long titles can wrap
|
|
48
|
+
while controls remain reachable. Explicitly opening a filter may reveal additional content.
|
|
46
49
|
- With a coarse pointer, standalone controls give 44px targets and text fields use 16px text.
|
|
47
50
|
- Compare the left and right bounds of a section heading, its table and the containing pane. All three span the same
|
|
48
51
|
width, including at phone width. Compare text positions inside cells separately.
|
|
@@ -128,8 +131,9 @@ and its readout.
|
|
|
128
131
|
must use inline readouts that never obscure curves or clip at container edges.
|
|
129
132
|
- **Zero card bloat.** Metrics use flat `MetricGrid`, lists use full-width `CollectionPage` / `DataTable`, and
|
|
130
133
|
documentation renders flat—not inside stacked bordered `Panel` cards.
|
|
131
|
-
- **
|
|
132
|
-
|
|
134
|
+
- **Read the first screen.** Remove explanatory rows that repeat labels or narrate ordinary interaction. Check whether a
|
|
135
|
+
user can open a record, copy its address and return to their place. Identify the action that requires seeing two panes
|
|
136
|
+
at once before keeping a permanent inspector.
|
|
133
137
|
- **Pinned shell & area-forking rail.** Scrolling `<main>` keeps the rail and sidebar fixed; rail icons fork top-level
|
|
134
138
|
areas rather than duplicating sidebar links; theme/environment controls live behind `railFooter` Settings while
|
|
135
139
|
explicit refresh actions belong to the data they update.
|
|
@@ -30,7 +30,9 @@ is large.
|
|
|
30
30
|
assumptions in tests, and CSS that targets Elements internals. After 0.47, also search for `MAX_` limit constants,
|
|
31
31
|
`selection={` and `ChartSelection`, `@visx` imports your app relied on Elements to install, chart `height` numbers,
|
|
32
32
|
and `format` function props or missing `locale` props passed through spread objects.
|
|
33
|
-
6.
|
|
33
|
+
6. Query the installed catalog using the task that prompted the upgrade. Exercise its recommended composition through
|
|
34
|
+
the app's regular import boundary. Remove local wrappers that duplicate a behavior the new package owns. Review the
|
|
35
|
+
rendered page using the version-matched `review-elements` skill.
|
|
34
36
|
|
|
35
37
|
Do not pin an old behavior back with a wrapper or a patch. Move the call site to the new API, and report anything the
|
|
36
38
|
new version cannot do.
|
|
@@ -2,6 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
Newest first. Each section lists what an application must change, then what it may adopt.
|
|
4
4
|
|
|
5
|
+
## 0.67.0
|
|
6
|
+
|
|
7
|
+
- Import `CollectionPage` and `CollectionSection` from `@mechane-ai/elements/collections`. Give the collection its read
|
|
8
|
+
state and choose a local query for complete authorized rows or a controlled query for paged records. Its title owns
|
|
9
|
+
the search and filter controls even when the page has navigation.
|
|
10
|
+
- Move record detail to a link. For simultaneous inspection, compose a dedicated `Workbench`. Move scope selection into
|
|
11
|
+
the application's route and actions. Replace a collection notice with the specific failure or mutation feedback the
|
|
12
|
+
user needs.
|
|
13
|
+
|
|
14
|
+
## 0.66.0
|
|
15
|
+
|
|
16
|
+
No change is required. Two parts are new.
|
|
17
|
+
|
|
18
|
+
- **`CardColumns` from `/collections`** shows records as cards in named columns, such as tasks by state. It takes
|
|
19
|
+
`columns`, `getCardId`, `getCard` and a `locale`. Pass `onMoveCard` for a move menu on each card, and a card's
|
|
20
|
+
`moveTargets` to limit its destinations. It has no drag and drop. `status` marks a pending or failed read.
|
|
21
|
+
- **`MessageReactions` from `/ai`** and a new `Message` `reactions` slot. The row shows reaction chips with counts and
|
|
22
|
+
an add control over the emoji your app supplies as `choices`. It reports every change through `onReactionToggle`.
|
|
23
|
+
Existing `Message` uses are unchanged.
|
|
24
|
+
|
|
5
25
|
## 0.65.0
|
|
6
26
|
|
|
7
27
|
- Remove `showNavigation` from page toolbars. In a workspace, the shell supplies navigation alongside a leading back
|
|
@@ -55,19 +55,21 @@ persistence and every asynchronous operation.
|
|
|
55
55
|
| The page needs | Use | Read |
|
|
56
56
|
| ------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------- |
|
|
57
57
|
| An app frame, a page, sections, a record page | `AppShell`, `PageLayout`, `PageSection`, `RecordPage` | [workspace](references/workspace.md) |
|
|
58
|
-
| A
|
|
58
|
+
| A full-width collection page or titled section | `CollectionPage` or `CollectionSection` from `/collections` | [workspace](references/workspace.md) |
|
|
59
59
|
| Records compared across columns, search, filters | `DataTable` with a `query` | [collections](references/collections.md) |
|
|
60
|
-
|
|
|
60
|
+
| Compare a detail while operating on its list | `Inspector`, `Details` | [collections](references/collections.md) |
|
|
61
|
+
| Records as cards in columns by state (a kanban board) | `CardColumns` with `onMoveCard` | [collections](references/collections.md) |
|
|
61
62
|
| Fields, choices, dates, files, a save | `Field`, the `/forms` controls, `FormActions`, `ConfirmButton` | [forms](references/forms.md) |
|
|
62
63
|
| A trend, comparison, distribution or relationship | One chart from a `/charts/*` entry | [charts](references/charts.md) |
|
|
63
64
|
| A figure an agent or a server writes as JSON | `Figure`, `validateFigureSpec`, `describeFigure` and `chartGuide` from `/charts/figure` | [figures](references/figures.md) |
|
|
64
65
|
| A run, evaluation, research, service or feature | A kit from `/kits/training`, `/kits/evaluation`, `/kits/research`, `/kits/operations`, `/kits/interpretability` | [kits](references/kits.md) |
|
|
65
66
|
| Page focus, zero-card layout, anti-slop copy | Flat `MetricGrid`, hairline sections, `CollectionPage`, concise titles | [editorial restraint](references/editorial-restraint.md) |
|
|
66
67
|
| An explorable essay, a lesson, a moving diagram | `/lesson`, `/scene`, `/article` and `/mdx`, planned with `/lesson/spec` | [teaching](references/teaching.md) |
|
|
67
|
-
| A first read, a refresh, an empty or failed read | `AsyncRegion`, `LoadingScope`, `EmptyState`, `
|
|
68
|
+
| A first read, a refresh, an empty or failed read | `AsyncRegion`, `LoadingScope`, `EmptyState`, `Toaster` / `toast` | [reports](references/reports.md) |
|
|
68
69
|
| A command menu, a decision, an anchored panel | `Menu`, `AlertDialog`, `Dialog`, `Drawer`, `Popover`, `Tooltip` | the catalog |
|
|
69
70
|
| Route destinations or panels inside one view | `PageNavigation` for links, `Tabs` or `ContentTabs` for panels | [workspace](references/workspace.md) |
|
|
70
71
|
| A transcript, a prompt, tool activity, approvals | `Conversation`, `Message`, `PromptInput`, `Approval` | [conversations](references/conversations.md) |
|
|
72
|
+
| Emoji reactions on a message | `MessageReactions` in `Message`'s `reactions` slot | [conversations](references/conversations.md) |
|
|
71
73
|
| Markdown, source, a diff, a file tree, a log, playback | `/content/markdown`, `/content/code`, `/content/diff`, `/content/tree`, `/content` | the catalog |
|
|
72
74
|
| A model or browser agent that reads and acts | `createAgent` and `registerTools` from `/agent` | [agent access](references/agent.md) |
|
|
73
75
|
|
|
@@ -76,9 +78,9 @@ persistence and every asynchronous operation.
|
|
|
76
78
|
- **Workspace dashboard.** Look up `workspace-report` for linked charts, metrics and a drill-down table inside a
|
|
77
79
|
persistent shell. Look up `workspace-files` for loading, empty and detail views, or `session-timeline` for agent
|
|
78
80
|
activity. Each recipe's catalog entry names a runnable Storybook example.
|
|
79
|
-
- **Searchable collection.**
|
|
80
|
-
|
|
81
|
-
|
|
81
|
+
- **Searchable collection.** Start with the `searchable-collection` recipe. The collection owns its heading, query
|
|
82
|
+
controls and read boundary. Supply all authorized rows for local search, or a controlled query for paged data. Link
|
|
83
|
+
each record to its detail route and restore the query and position on Back.
|
|
82
84
|
- **Sectioned report.** Mount the shell around the router outlet. Put each heading and its body in a sibling
|
|
83
85
|
`PageSection`. Headers and tables span the pane by default. Use `PageInset` around local prose or forms and
|
|
84
86
|
`AppShell.sidebarControls` for a workspace picker.
|