@mechane-ai/elements 0.29.0 → 0.31.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 (45) hide show
  1. package/README.md +6 -0
  2. package/dist/ai.js +250 -172
  3. package/dist/{categorical-values-Dfe3nkBV.js → categorical-values-Cfn6nwHi.js} +2 -2
  4. package/dist/{chart-frame-rL7_RAIc.js → chart-frame-C8JU2tlM.js} +9 -9
  5. package/dist/{chart-input-JIyGPusK.js → chart-input-D0hBpH1r.js} +2 -2
  6. package/dist/charts/cartesian.js +6 -6
  7. package/dist/charts/distribution.js +2 -2
  8. package/dist/charts/graph.js +2 -2
  9. package/dist/charts/hierarchy.js +3 -3
  10. package/dist/charts/matrix.js +2 -2
  11. package/dist/charts/timeline.js +3 -3
  12. package/dist/charts.js +1 -1
  13. package/dist/{code-block-DPeyW4sm.js → code-block-DlzYynjv.js} +21 -20
  14. package/dist/collections.js +224 -211
  15. package/dist/content/code.js +1 -1
  16. package/dist/content/diff.js +4 -4
  17. package/dist/content/link.js +1 -1
  18. package/dist/content/markdown.js +3 -3
  19. package/dist/content/tree.js +3 -3
  20. package/dist/{content-link-5oRGjDHa.js → content-link-Dh1hon1m.js} +1 -1
  21. package/dist/content.js +1 -394
  22. package/dist/elements.css +41 -23
  23. package/dist/feedback.js +1 -1
  24. package/dist/forms/dates.js +1 -1
  25. package/dist/forms.js +1 -1
  26. package/dist/index.js +1 -1
  27. package/dist/layout.js +392 -318
  28. package/dist/navigation/commands.js +1 -1
  29. package/dist/packages/ai/src/command-activity.d.ts +7 -0
  30. package/dist/packages/ai/src/command-details.d.ts +10 -0
  31. package/dist/packages/ai/src/index.d.ts +4 -0
  32. package/dist/packages/content/src/code/code-block.d.ts +2 -1
  33. package/dist/packages/content/src/log-viewer.d.ts +2 -1
  34. package/dist/packages/content/src/viewer-styles.d.ts +8 -0
  35. package/dist/packages/foundations/src/control-styles.d.ts +3 -0
  36. package/dist/packages/foundations/src/header-styles.d.ts +47 -0
  37. package/dist/packages/layout/src/frame.stylex.d.ts +0 -2
  38. package/dist/{pierre-diff-C3U_qae6.js → pierre-diff-DOkqEUqx.js} +1 -1
  39. package/dist/{pierre-tree-D2kRr4h4.js → pierre-tree-tdFSl55t.js} +2 -2
  40. package/dist/{src-BfPaaDxg.js → src-Bb2fDOeE.js} +105 -105
  41. package/dist/src-CVleZrPa.js +395 -0
  42. package/dist/{src-eWcNz_oB.js → src-DvLYUTID.js} +14 -14
  43. package/dist/{src-E3Or8tkO.js → src-SE6QORrJ.js} +347 -290
  44. package/dist/{viewer-styles-CpHqp5Qv.js → viewer-styles-DsFYri4K.js} +10 -0
  45. package/package.json +1 -1
package/README.md CHANGED
@@ -139,6 +139,12 @@ sizing. The table owns its cell insets, so an enclosing page should not add anot
139
139
  `Timeline.Item` compose readable activity with supplied titles, icons, timestamps, metadata, and body content, without
140
140
  interpreting domain events.
141
141
 
142
+ `CommandActivity` from `/ai` presents a collapsed Bash command with supplied execution state. Its `CommandDetails` body
143
+ is also available for an existing trace disclosure. Supply command and output text separately, with explicit omission
144
+ notices when a preview is shortened. Commands use Bash highlighting; output stays plain unless the application supplies
145
+ a known `outputLanguage`. The embedded code and log variants share compact frames and separate copy controls. Keep
146
+ overall `ReplyIndicator` progress below command activity.
147
+
142
148
  `Message` reserves space for secondary actions and reveals them on hover and keyboard focus; touch devices keep them
143
149
  visible. `MessageAction` supplies a named icon button and tooltip. Keep errors, decisions, and current activity outside
144
150
  that action region. `MessageBoundary` groups expandable context between messages. `PromptInput` keeps its label