@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/CHANGELOG.md CHANGED
@@ -7,6 +7,32 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.31.0] — 2026-08-30
11
+
12
+ ### Changed
13
+
14
+ - **The rating pair is off unless a host asks for it.** `data-message-actions`
15
+ now defaults to `copy,retry`; thumbs need
16
+ `data-message-actions="copy,retry,feedback"`.
17
+
18
+ Copy and retry work with nothing wired -- copy reads the DOM, retry drives this
19
+ element. The rating pair does not: it fires `ag-ui-feedback` and stores nothing
20
+ by design, because a rating belongs to whatever the host already uses for
21
+ product signal. With no listener the buttons still latch `aria-pressed`, which
22
+ is deliberate -- a rating is a standing statement about a message -- so a
23
+ reader is told their rating was taken, a screen reader announces it as pressed,
24
+ and nothing recorded anything.
25
+
26
+ This README has said since the row shipped that two buttons leading nowhere are
27
+ worse than none. Defaulting them on was that sentence being false. Neither
28
+ known consumer of this component listens for the event, so both were shipping
29
+ exactly the buttons the sentence warns about.
30
+
31
+ The row shipped two days ago in 0.29.0, so the population relying on the old
32
+ default is close to nobody, and a host that does listen restores them with one
33
+ attribute.
34
+
35
+
10
36
  ## [0.30.0] — 2026-08-30
11
37
 
12
38
  ### Added
@@ -2562,7 +2588,8 @@ hosts that both arrange the page the way it expects.
2562
2588
  ### Notes
2563
2589
  - First release — exercising the automated npm OIDC publish pipeline end-to-end.
2564
2590
 
2565
- [Unreleased]: https://github.com/Artui/ag-ui-web-component/compare/v0.30.0...HEAD
2591
+ [Unreleased]: https://github.com/Artui/ag-ui-web-component/compare/v0.31.0...HEAD
2592
+ [0.31.0]: https://github.com/Artui/ag-ui-web-component/compare/v0.30.0...v0.31.0
2566
2593
  [0.30.0]: https://github.com/Artui/ag-ui-web-component/compare/v0.29.0...v0.30.0
2567
2594
  [0.29.0]: https://github.com/Artui/ag-ui-web-component/compare/v0.28.0...v0.29.0
2568
2595
  [0.28.0]: https://github.com/Artui/ag-ui-web-component/compare/v0.27.0...v0.28.0
package/README.md CHANGED
@@ -1440,6 +1440,9 @@ message's own text.
1440
1440
  - **Copy** puts the message's text on the clipboard, and says so on the button.
1441
1441
  A refused clipboard permission is reported there too, rather than thrown.
1442
1442
  - **Thumbs up / down** fire `ag-ui-feedback` (wired below) and **store nothing**.
1443
+ **Off unless you ask for them** — `data-message-actions="copy,retry,feedback"`.
1444
+ Without a listener the buttons still latch, so a reader is told a rating was
1445
+ taken while nothing recorded it.
1443
1446
 
1444
1447
  Retry sits on the **last** answer only. Re-running an older turn is branching,
1445
1448
  and for a page-driving agent editing a past turn is not neutral — those turns
@@ -1466,6 +1469,9 @@ the actions to keep, or `="false"` for none at all:
1466
1469
  <ag-ui-chat endpoint="/agent/" data-message-actions="copy"></ag-ui-chat>
1467
1470
  ```
1468
1471
 
1472
+ The default is `copy,retry`. Those two work with nothing wired; the rating pair
1473
+ needs a listener, so it is asked for rather than assumed.
1474
+
1469
1475
  It is per-action rather than one switch because the three disappear for
1470
1476
  different reasons. Thumbs are only useful to a host listening for
1471
1477
  `ag-ui-feedback`, and two buttons that lead nowhere are worse than none. Retry