@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.
Files changed (106) hide show
  1. package/README.md +21 -10
  2. package/dist/ai.js +285 -203
  3. package/dist/{article-BrUa4Wz1.js → article-anMy8fA5.js} +6 -6
  4. package/dist/article.js +1 -1
  5. package/dist/catalog.json +81 -34
  6. package/dist/{categorical-values-AXJkMt-Y.js → categorical-values-Bh7ZkEQn.js} +1 -1
  7. package/dist/charts/cartesian.js +1 -1
  8. package/dist/charts/comparison.js +1 -1
  9. package/dist/charts/distribution.js +1 -1
  10. package/dist/charts/figure.js +12 -12
  11. package/dist/charts/graph.js +1 -1
  12. package/dist/charts/hierarchy.js +1 -1
  13. package/dist/charts/image.js +1 -1
  14. package/dist/charts/matrix.js +1 -1
  15. package/dist/charts/plot.js +3 -3
  16. package/dist/charts/relationship.js +1 -1
  17. package/dist/charts/text.js +1 -1
  18. package/dist/charts/timeline.js +2 -2
  19. package/dist/charts/trend.js +1 -1
  20. package/dist/charts.js +2 -2
  21. package/dist/{code-block-BDRmjlES.js → code-block-DbW_t9U4.js} +1 -1
  22. package/dist/collections.js +1 -1
  23. package/dist/{commands-rzsDElrG.js → commands-C7Zrp-tG.js} +2 -2
  24. package/dist/content/code.js +1 -1
  25. package/dist/content/diff.js +3 -3
  26. package/dist/content/link.js +1 -1
  27. package/dist/content/markdown.js +1 -1
  28. package/dist/content/tree.js +2 -2
  29. package/dist/{content-link-DRaNf1mD.js → content-link-BN4NPp0u.js} +1 -1
  30. package/dist/content.js +1 -1
  31. package/dist/{dates-wu-gKO2C.js → dates-OTq-xU33.js} +2 -2
  32. package/dist/{dumbbell-plot-VFajQtEW.js → dumbbell-plot-BQDGe0sQ.js} +3 -3
  33. package/dist/{embedding-map-BqDEmy88.js → embedding-map-DmmknG7A.js} +6 -6
  34. package/dist/feedback.js +1 -1
  35. package/dist/{figure-frame-Dd-pOeZN.js → figure-frame-DlyNTDzh.js} +22 -21
  36. package/dist/forms/dates.js +1 -1
  37. package/dist/{forms-Bjx7JQ30.js → forms-iAOjGRTO.js} +1 -1
  38. package/dist/forms.js +2 -2
  39. package/dist/{image-grid-Dpyqxgwy.js → image-grid-CxEAQvTf.js} +3 -3
  40. package/dist/index.js +1 -1
  41. package/dist/kits/evaluation.js +13 -13
  42. package/dist/kits/interpretability.js +47 -43
  43. package/dist/kits/operations.js +80 -79
  44. package/dist/kits/research.js +364 -499
  45. package/dist/kits/training.js +108 -107
  46. package/dist/layout.js +1 -1
  47. package/dist/lesson.js +3 -3
  48. package/dist/{markdown--nfaDoR1.js → markdown-Diffqqm7.js} +2 -2
  49. package/dist/mdx.js +6 -6
  50. package/dist/navigation/commands.js +1 -1
  51. package/dist/{navigation-Cp3p0gss.js → navigation-CTnYtVD8.js} +1 -1
  52. package/dist/navigation.js +3 -3
  53. package/dist/packages/ai/src/index.d.ts +2 -0
  54. package/dist/packages/ai/src/message-reactions.d.ts +51 -0
  55. package/dist/packages/ai/src/message.d.ts +3 -1
  56. package/dist/packages/collections/src/card-columns-model.d.ts +50 -0
  57. package/dist/packages/collections/src/card-columns.d.ts +30 -0
  58. package/dist/packages/collections/src/collection-page.d.ts +43 -0
  59. package/dist/packages/collections/src/column-card.d.ts +15 -0
  60. package/dist/packages/collections/src/data-table-layout.d.ts +2 -0
  61. package/dist/packages/collections/src/data-table-rows.d.ts +4 -3
  62. package/dist/packages/collections/src/data-table.d.ts +2 -2
  63. package/dist/packages/collections/src/index.d.ts +5 -0
  64. package/dist/packages/collections/src/table-query.d.ts +9 -1
  65. package/dist/packages/feedback/src/feedback.d.ts +0 -4
  66. package/dist/packages/feedback/src/index.d.ts +1 -1
  67. package/dist/packages/kits/src/research/index.d.ts +0 -2
  68. package/dist/{param-CwT1RvUS.js → param-CKr8EYxF.js} +1 -1
  69. package/dist/{pierre-diff-DuvK3kLF.js → pierre-diff-DXVIwW7o.js} +1 -1
  70. package/dist/{plot-layout-CvkeUuG6.js → plot-layout-CVzSbcU7.js} +24 -23
  71. package/dist/{plot-surface-yy37R4vs.js → plot-surface-CBhI1alw.js} +1 -1
  72. package/dist/{reference-lines-AMeDkYlo.js → reference-lines-C970JwWZ.js} +1 -1
  73. package/dist/{scene-BRhI8XSy.js → scene-C3dCxckI.js} +6 -6
  74. package/dist/scene.js +1 -1
  75. package/dist/{slope-chart-BMOCaa8R.js → slope-chart-DekEJxsy.js} +4 -4
  76. package/dist/{src-9n2M1V_y.js → src-BCAelv4f.js} +3 -3
  77. package/dist/{src-BgmAkau8.js → src-Bkov5TTa.js} +171 -164
  78. package/dist/{src-Bns-5joF.js → src-BsqbWDxS.js} +4 -4
  79. package/dist/{src-BdyO4PgQ.js → src-CIyuaSCi.js} +101 -107
  80. package/dist/{src-Tu6d_Pm8.js → src-Dc1t1ugL.js} +958 -585
  81. package/dist/{src-C5SH3jjU.js → src-DceyVyL0.js} +2 -2
  82. package/dist/{src-C_E29-DX.js → src-Dlh99sPD.js} +1 -1
  83. package/dist/styles2.css +21 -1
  84. package/dist/{time-series-CTNVqoUQ.js → time-series-BSNnijxf.js} +8 -8
  85. package/dist/{timeline-DrsDtEIW.js → timeline-CnxfYSIg.js} +4 -4
  86. package/dist/{token-heatmap-DddArdH8.js → token-heatmap-CJaXo56P.js} +3 -3
  87. package/dist/{token-predictions-CBykmPID.js → token-predictions-Bi7aKPnh.js} +3 -3
  88. package/dist/{transport-r1QgELf8.js → transport-CXj0DV6o.js} +4 -4
  89. package/dist/{tree-diagram-BIJFK4pl.js → tree-diagram-BxOZsjr1.js} +4 -4
  90. package/dist/{treemap-DgmEw_mr.js → treemap-B2yOAetT.js} +4 -4
  91. package/dist/{use-tween-BWf44Jy4.js → use-tween-C1TWJwce.js} +1 -1
  92. package/dist/{violin-plot-BYJnv6sG.js → violin-plot-W2L_2JRo.js} +3 -3
  93. package/dist/{waterfall-BNseqMas.js → waterfall-Bt73N2Ng.js} +4 -4
  94. package/package.json +1 -1
  95. package/recipes/searchable-collection.tsx +74 -76
  96. package/skills/extend-elements/SKILL.md +2 -1
  97. package/skills/review-elements/SKILL.md +11 -7
  98. package/skills/upgrade-elements/SKILL.md +3 -1
  99. package/skills/upgrade-elements/references/releases.md +20 -0
  100. package/skills/use-elements/SKILL.md +8 -6
  101. package/skills/use-elements/references/collections.md +59 -12
  102. package/skills/use-elements/references/conversations.md +32 -0
  103. package/skills/use-elements/references/editorial-restraint.md +17 -29
  104. package/skills/use-elements/references/figures.md +6 -2
  105. package/skills/use-elements/references/workspace.md +5 -5
  106. package/dist/packages/kits/src/research/collection-page.d.ts +0 -71
package/README.md CHANGED
@@ -128,14 +128,14 @@ Every path below belongs to `@mechane-ai/elements`. There is one package, versio
128
128
  | `/navigation` | Tabs, page navigation, breadcrumbs, skip links, and shortcut labels. |
129
129
  | `/navigation/commands` | Command palette and scoped application-owned shortcuts. |
130
130
  | `/layout` | Application shell, sidebar, toolbars, compound record pages, and resizable panes. |
131
- | `/collections` | Tables, inspectors, collection controls, timelines, metrics, and timestamps. |
131
+ | `/collections` | Tables, inspectors, collection controls, timelines, card columns, metrics, and timestamps. |
132
132
  | `/content` | Trace, JSON, recorded logs, stack traces, media, and playback controls. |
133
133
  | `/content/link` | Safe content links without a renderer dependency. |
134
134
  | `/content/markdown` | Completed and streaming Markdown, embedded headings, and inert previews. |
135
135
  | `/content/code` | Source-preserving code highlighting. |
136
136
  | `/content/diff` | File changes and patches. |
137
137
  | `/content/tree` | File paths, statuses, and controlled selection. |
138
- | `/ai` | Conversations, messages, prompts, approvals, sources, and citations. |
138
+ | `/ai` | Conversations, messages, message reactions, prompts, approvals, sources, and citations. |
139
139
  | `/charts` | Figure props, formats, tone scope, linked inspection, frames, legends, and grids. |
140
140
  | `/charts/cartesian` | Lines, ranges, areas, sparklines, small multiples, bars, bridges, and scatter plots. |
141
141
  | `/charts/distribution` | Histograms, cumulative distributions, intervals, ranked values, box, violin, strip, and ridgeline plots. |
@@ -236,8 +236,9 @@ filter's `onChange`, `FilterChips` `onRemove`, a chart's `onSelectedChange` and
236
236
  supplies the accessible name with the panel content and owns opening, closing, and focus restoration. The inspector
237
237
  replaces the main column at compact widths while keeping that column mounted.
238
238
 
239
- Every `DataTable` requires a `query`. For a finite list, supply the complete authorized rows and declare how users can
240
- search and filter them.
239
+ Use `CollectionPage` for a list and `CollectionSection` beneath an existing page title, both from `/collections`. Give
240
+ the collection a read state and a query. It places search and filter controls beside the title and renders the matching
241
+ placeholder and full-width rows. For a finite list, supply all authorized records and declare its searchable fields.
241
242
 
242
243
  ```tsx
243
244
  query={{
@@ -248,8 +249,8 @@ query={{
248
249
  ```
249
250
 
250
251
  For paged records use `mode: 'controlled'` with query values and callbacks. Apply search and filters before server
251
- pagination. When an enclosing collection already supplies the controls, declare its capabilities with `TableQueryFrame`
252
- and use `mode: 'frame'` on its table. A static table, or an individual capability that does not apply, requires a
252
+ pagination. Use the lower-level `TableQueryFrame` with a frame-owned `DataTable` only when building a custom report
253
+ whose controls govern several representations of the same result. A static table or unavailable capability requires a
253
254
  reason.
254
255
 
255
256
  Each `DataTable` column declares a role: `primary`, `text`, `status`, `number`, `timestamp`, or `actions`. Roles own
@@ -269,6 +270,14 @@ arrow keys move between them. `CollectionEnd` renders nothing when complete unle
269
270
  body content, without interpreting domain events. The events share one Tab stop on the UI SDK timeline, and arrow keys
270
271
  move between them.
271
272
 
273
+ `CardColumns` shows records as cards in named columns, such as tasks by state. Supply `columns` with each column's
274
+ records in display order, `getCard` to map a record onto a `CardSummary` (title, owner mark, status, metadata and
275
+ actions), a stable `getCardId` and a `locale` for the counts. With `onMoveCard`, each card has a move menu that reports
276
+ the card, its column and the destination; a card's `moveTargets` limits the destinations. There is no drag and drop.
277
+ Columns scroll sideways when they do not fit, and each scrolls its cards inside a bounded height. Pass `status` while a
278
+ read is pending or failed so an unloaded column never looks empty. Each card's move button is its own Tab stop. The
279
+ application owns the records, who may move a card and the result of a move.
280
+
272
281
  `CommandActivity` from `/ai` presents a collapsed Bash command with supplied execution state. Its `CommandDetails` body
273
282
  is also available for an existing trace disclosure. Supply command and output text separately, with explicit omission
274
283
  notices when a preview is shortened. Commands use Bash highlighting; output stays plain unless the application supplies
@@ -276,10 +285,12 @@ a known `outputLanguage`. The embedded code and log variants share compact frame
276
285
  overall `ReplyIndicator` progress below command activity.
277
286
 
278
287
  `Message` reserves space for secondary actions and reveals them on hover and keyboard focus; touch devices keep them
279
- visible. `MessageAction` supplies a named icon button and tooltip. Keep errors, decisions, and current activity outside
280
- that action region. `MessageBoundary` groups expandable context between messages. `PromptInput` keeps its label
281
- accessible while integrating the submit control into the input frame. The application owns submission identity,
282
- acknowledgement, and draft retention.
288
+ visible. `MessageAction` supplies a named icon button and tooltip. `MessageReactions`, passed to the `reactions` slot,
289
+ shows reaction chips with counts that stay visible, and an add control that opens a menu of the emoji the application
290
+ supplies. Both report one `onReactionToggle` request and change nothing until the application supplies new reactions.
291
+ Keep errors, decisions, and current activity outside that action region. `MessageBoundary` groups expandable context
292
+ between messages. `PromptInput` keeps its label accessible while integrating the submit control into the input frame.
293
+ The application owns submission identity, acknowledgement, and draft retention.
283
294
 
284
295
  `AgentAvatar` derives a repeatable shape and palette from a supplied seed, or renders an explicit appearance.
285
296
  `AgentAvatarPicker` accepts that appearance and reports changes; applications own storage. Keep the same seed for a