@artooi/ag-ui-web-component 0.30.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artooi/ag-ui-web-component",
3
- "version": "0.30.0",
3
+ "version": "0.31.0",
4
4
  "description": "Framework-free <ag-ui-chat> Web Component over the AG-UI protocol. Drop-in chat sidebar with a pluggable client-side tool registry, DOM driver primitives, animations, and destructive-action confirmation modal.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1804,17 +1804,24 @@ export class AgUiChat extends HTMLElement {
1804
1804
  * Which message actions a finished bubble offers, from
1805
1805
  * `data-message-actions`.
1806
1806
  *
1807
- * Absent means all of them, so the attribute only ever subtracts: the row
1808
- * shipped without an off switch and a host that never sets this must keep
1809
- * exactly what it had. A value names the survivors, which makes
1810
- * `data-message-actions="false"` -- the spelling its sibling
1811
- * `data-quote-selection` uses -- an empty set by falling out of the same rule
1812
- * rather than by a case of its own.
1807
+ * **Absent means copy and retry, not all three.** Those two work with nothing
1808
+ * wired: copy reads the DOM, retry drives this element. The rating pair does
1809
+ * not -- it fires `ag-ui-feedback` and stores nothing by design, because a
1810
+ * rating belongs to whatever the host already uses for product signal. With no
1811
+ * listener the buttons still latch `aria-pressed`, so a reader is told their
1812
+ * rating was taken and a screen reader announces it, while nothing recorded
1813
+ * anything. This README has always said two buttons that lead nowhere are
1814
+ * worse than none; shipping them by default was that sentence being false.
1815
+ *
1816
+ * A host with a listener asks for them: `data-message-actions="copy,retry,feedback"`.
1817
+ * A value names the survivors, which makes `data-message-actions="false"` --
1818
+ * the spelling its sibling `data-quote-selection` uses -- an empty set by
1819
+ * falling out of the same rule rather than by a case of its own.
1813
1820
  */
1814
1821
  #messageActions(): ReadonlySet<string> {
1815
1822
  const attr = this.getAttribute("data-message-actions");
1816
1823
  if (attr === null) {
1817
- return new Set(Object.values(MESSAGE_ACTIONS));
1824
+ return new Set([MESSAGE_ACTIONS.COPY, MESSAGE_ACTIONS.RETRY]);
1818
1825
  }
1819
1826
  return new Set(
1820
1827
  attr
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION: string = "0.30.0";
1
+ export const VERSION: string = "0.31.0";