@artooi/ag-ui-web-component 0.34.0 → 0.35.1
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 +517 -1
- package/README.md +243 -13
- package/dist/ag-ui-web-component.bundle.js +614 -96
- package/dist/ag-ui-web-component.bundle.js.map +4 -4
- package/dist/constants.d.ts +76 -3
- package/dist/constants.d.ts.map +1 -1
- package/dist/core/ag_ui_chat.d.ts +37 -2
- package/dist/core/ag_ui_chat.d.ts.map +1 -1
- package/dist/dom/animations.d.ts +14 -0
- package/dist/dom/animations.d.ts.map +1 -1
- package/dist/dom/highlight_overlay.d.ts +47 -0
- package/dist/dom/highlight_overlay.d.ts.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1886 -320
- package/dist/index.js.map +4 -4
- package/dist/tools/chat_surface_tools.d.ts +96 -0
- package/dist/tools/chat_surface_tools.d.ts.map +1 -0
- package/dist/tools/page_action_tools.d.ts +2 -0
- package/dist/tools/page_action_tools.d.ts.map +1 -1
- package/dist/ui/clamp_launcher.d.ts +10 -5
- package/dist/ui/clamp_launcher.d.ts.map +1 -1
- package/dist/ui/clamp_panel.d.ts +2 -2
- package/dist/ui/clamp_panel.d.ts.map +1 -1
- package/dist/ui/launcher_drag.d.ts +2 -2
- package/dist/ui/launcher_drag.d.ts.map +1 -1
- package/dist/ui/launcher_placement.d.ts +14 -1
- package/dist/ui/launcher_placement.d.ts.map +1 -1
- package/dist/ui/panel_drag.d.ts.map +1 -1
- package/dist/ui/place_widget.d.ts +9 -1
- package/dist/ui/place_widget.d.ts.map +1 -1
- package/dist/ui/run_notice.d.ts +14 -3
- package/dist/ui/run_notice.d.ts.map +1 -1
- package/dist/ui/styles.d.ts +1 -1
- package/dist/ui/styles.d.ts.map +1 -1
- package/dist/ui/thread_drawer.d.ts +21 -0
- package/dist/ui/thread_drawer.d.ts.map +1 -1
- package/dist/ui/ui_strings.d.ts +16 -0
- package/dist/ui/ui_strings.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/constants.ts +82 -3
- package/src/core/ag_ui_chat.ts +965 -55
- package/src/dom/animations.ts +30 -0
- package/src/dom/highlight_overlay.ts +256 -0
- package/src/index.ts +12 -0
- package/src/tools/chat_surface_tools.ts +207 -0
- package/src/tools/page_action_tools.ts +2 -0
- package/src/ui/clamp_launcher.ts +25 -7
- package/src/ui/clamp_panel.ts +10 -4
- package/src/ui/launcher_drag.ts +11 -2
- package/src/ui/launcher_placement.ts +34 -8
- package/src/ui/panel_drag.ts +4 -0
- package/src/ui/place_widget.ts +11 -3
- package/src/ui/run_notice.ts +32 -3
- package/src/ui/styles.ts +563 -45
- package/src/ui/thread_drawer.ts +138 -8
- package/src/ui/ui_strings.ts +24 -0
- package/src/version.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui_strings.d.ts","sourceRoot":"","sources":["../../src/ui/ui_strings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,MAAM,WAAW,SAAS;IAExB,+EAA+E;IAC/E,KAAK,EAAE,MAAM,CAAC;IACd,4CAA4C;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB,yCAAyC;IACzC,OAAO,EAAE,MAAM,CAAC;IAChB,uBAAuB;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,8DAA8D;IAC9D,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB,mDAAmD;IACnD,WAAW,EAAE,MAAM,CAAC;IAGpB,iDAAiD;IACjD,YAAY,EAAE,MAAM,CAAC;IACrB,mEAAmE;IACnE,YAAY,EAAE,MAAM,CAAC;IACrB,wEAAwE;IACxE,kBAAkB,EAAE,MAAM,CAAC;IAC3B,2EAA2E;IAC3E,mBAAmB,EAAE,MAAM,CAAC;IAC5B,kFAAkF;IAClF,wBAAwB,EAAE,MAAM,CAAC;IACjC,mEAAm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SAAS,EAAE,OAAO,CAAC,SAAS,CAAC,GAAG,SAAS,CASvE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@artooi/ag-ui-web-component",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.35.1",
|
|
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/constants.ts
CHANGED
|
@@ -337,6 +337,25 @@ export const ICON_ATTACH = `<svg class="glyph" viewBox="0 0 24 24" aria-hidden="
|
|
|
337
337
|
/** The voice-input glyph (a microphone on its stand). */
|
|
338
338
|
export const ICON_VOICE = `<svg class="glyph" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 4a3 3 0 0 1 3 3v5a3 3 0 0 1-6 0V7a3 3 0 0 1 3-3z"/><path d="M5 11v1a7 7 0 0 0 14 0v-1"/><path d="M12 19v3"/></svg>`;
|
|
339
339
|
|
|
340
|
+
/**
|
|
341
|
+
* The theme toggle's two marks, drawn rather than typed.
|
|
342
|
+
*
|
|
343
|
+
* They were the emoji `\u{1F319}` and `\u2600\uFE0F`, which is why this one
|
|
344
|
+
* control never sat right beside the others: an emoji is painted by the
|
|
345
|
+
* platform's own font, at its own weight and colour, and its ink routinely
|
|
346
|
+
* exceeds the text metrics it is laid out with -- so it drew outside the box
|
|
347
|
+
* measured for it and clipped, while every neighbour is a stroked path that
|
|
348
|
+
* fits its viewBox exactly.
|
|
349
|
+
*
|
|
350
|
+
* The moon is drawn as one closed crescent rather than a disc with a second
|
|
351
|
+
* disc cut out of it, because these are stroked (`fill: none`) and a cut-out
|
|
352
|
+
* needs a fill to hide anything.
|
|
353
|
+
*/
|
|
354
|
+
export const ICON_MOON = `<svg class="glyph" viewBox="0 0 24 24" aria-hidden="true"><path d="M20 14.5A8.5 8.5 0 0 1 9.5 4a8.5 8.5 0 1 0 10.5 10.5z"/></svg>`;
|
|
355
|
+
|
|
356
|
+
/** The other half of the pair; see {@link ICON_MOON}. */
|
|
357
|
+
export const ICON_SUN = `<svg class="glyph" viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="4"/><path d="M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"/></svg>`;
|
|
358
|
+
|
|
340
359
|
/** The default launcher mark (a speech bubble), shown when the host slots none. */
|
|
341
360
|
export const ICON_LAUNCHER = `<svg class="glyph" viewBox="0 0 24 24" aria-hidden="true"><path d="M4 5.5A2.5 2.5 0 0 1 6.5 3h11A2.5 2.5 0 0 1 20 5.5v8a2.5 2.5 0 0 1-2.5 2.5H9l-5 4z"/></svg>`;
|
|
342
361
|
|
|
@@ -381,10 +400,17 @@ export const ICON_FILE_TEXT = `<svg class="glyph" viewBox="0 0 24 24" aria-hidde
|
|
|
381
400
|
export const CHART_ACTIVITY_TYPE = "chart";
|
|
382
401
|
|
|
383
402
|
/**
|
|
384
|
-
* The gutter a floating panel
|
|
403
|
+
* The gutter a floating panel *rests* at, before anyone has touched it.
|
|
404
|
+
*
|
|
405
|
+
* It matches the default `--ag-ui-inset` and the stylesheet's
|
|
406
|
+
* `--ag-ui-edge-gutter`, so an undragged widget resolves to exactly the
|
|
407
|
+
* placement it already had, and it is what the size cap subtracts so a resting
|
|
408
|
+
* panel grown to its limit stops at the far edge rather than one gutter past
|
|
409
|
+
* it.
|
|
385
410
|
*
|
|
386
|
-
*
|
|
387
|
-
*
|
|
411
|
+
* Not a limit on where a *person* may put the widget -- that is
|
|
412
|
+
* {@link SCREEN_EDGE_MARGIN}, and the two being one number is what made a
|
|
413
|
+
* dragged panel feel stuck short of every edge on all four sides at once.
|
|
388
414
|
*/
|
|
389
415
|
export const EDGE_MARGIN = 24;
|
|
390
416
|
|
|
@@ -397,3 +423,56 @@ export const EDGE_MARGIN = 24;
|
|
|
397
423
|
* *change*, and setting the same string twice is not one.
|
|
398
424
|
*/
|
|
399
425
|
export const ANNOUNCE_CLEAR_MS = 150;
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* Stacking order for the host-page highlight overlay.
|
|
429
|
+
*
|
|
430
|
+
* One above the widget's own default, because the overlay's whole job is to
|
|
431
|
+
* point at something on the page the widget is sitting over -- a ring drawn
|
|
432
|
+
* underneath the panel would be hidden by the thing that asked for it. It takes
|
|
433
|
+
* no pointer events at any point, so being on top costs the page nothing.
|
|
434
|
+
*/
|
|
435
|
+
export const HIGHLIGHT_OVERLAY_Z_INDEX = 2147483001;
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* The panel width at which the conversation list stops covering the transcript
|
|
439
|
+
* and docks beside it.
|
|
440
|
+
*
|
|
441
|
+
* Wide enough that the list and a readable column both fit: the list asks for
|
|
442
|
+
* 300px and the reading column is capped at 820px. Below this a docked list
|
|
443
|
+
* would leave a strip of transcript narrower than the messages in it.
|
|
444
|
+
*/
|
|
445
|
+
export const THREADS_DOCK_MIN_WIDTH = 900;
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* How many characters a pasted string has to reach before it becomes an
|
|
449
|
+
* attachment rather than composer text.
|
|
450
|
+
*
|
|
451
|
+
* The composer is capped at 40vh, so anything near this is already taller than
|
|
452
|
+
* the box that holds it: the user cannot read what they pasted or edit around
|
|
453
|
+
* it. Roughly where the field stops being usable rather than a number with a
|
|
454
|
+
* meaning of its own -- `data-paste-attach` moves it.
|
|
455
|
+
*/
|
|
456
|
+
export const PASTE_ATTACH_CHARS = 5000;
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* How close the launcher may be pushed to the edge of the screen.
|
|
460
|
+
*
|
|
461
|
+
* Not the panel's 24px gutter, which was rejected here on purpose: a launcher
|
|
462
|
+
* held that far in refuses the corners people actually drag it to. But zero is
|
|
463
|
+
* wrong too. The bubble is a circle with a drop shadow, and one sitting flush
|
|
464
|
+
* against the edge has its shadow cut and its curve running into the boundary,
|
|
465
|
+
* which reads as clipped whether or not a single pixel is missing -- and on a
|
|
466
|
+
* screen with rounded corners, or under a scrollbar, it is genuinely clipped.
|
|
467
|
+
*
|
|
468
|
+
* Small enough that every corner is still reachable, large enough that the
|
|
469
|
+
* circle always closes.
|
|
470
|
+
*
|
|
471
|
+
* The panel obeys the same bound, for the same reason: it is a rounded box
|
|
472
|
+
* with the same drop shadow, and there is no account of why a bubble held off
|
|
473
|
+
* the boundary should sit beside a panel welded to it. Before this was shared
|
|
474
|
+
* there were four answers to one question -- a drag stopped at 0, a resize at
|
|
475
|
+
* 0, a restore at 24 and the launcher at 8 -- so a panel dragged flush leapt
|
|
476
|
+
* 24px inward the next time anything re-placed it.
|
|
477
|
+
*/
|
|
478
|
+
export const SCREEN_EDGE_MARGIN = 8;
|