@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 +28 -1
- package/README.md +6 -0
- package/dist/ag-ui-web-component.bundle.js +22 -22
- package/dist/ag-ui-web-component.bundle.js.map +2 -2
- package/dist/core/ag_ui_chat.d.ts.map +1 -1
- package/dist/index.js +15 -8
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
- package/src/core/ag_ui_chat.ts +14 -7
- package/src/version.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@artooi/ag-ui-web-component",
|
|
3
|
-
"version": "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",
|
package/src/core/ag_ui_chat.ts
CHANGED
|
@@ -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
|
|
1808
|
-
*
|
|
1809
|
-
*
|
|
1810
|
-
*
|
|
1811
|
-
*
|
|
1812
|
-
*
|
|
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(
|
|
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.
|
|
1
|
+
export const VERSION: string = "0.31.0";
|