@agentforge-io/chat-sdk 2.5.4 → 2.5.6
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/dist/react.js +21 -13
- package/package.json +1 -1
package/dist/react.js
CHANGED
|
@@ -1306,22 +1306,31 @@ const WIDGET_CSS = `
|
|
|
1306
1306
|
.af-widget-root.af-variant-bare .af-msg-row {
|
|
1307
1307
|
display: flex;
|
|
1308
1308
|
align-items: flex-end;
|
|
1309
|
-
gap
|
|
1309
|
+
/* Tight 4px gap — the avatar sits next to the bubble, not
|
|
1310
|
+
* floating beside it. 8px reads as a separate column on small
|
|
1311
|
+
* viewports. */
|
|
1312
|
+
gap: 4px;
|
|
1310
1313
|
max-width: 92%;
|
|
1311
1314
|
}
|
|
1312
1315
|
/* When the row hosts a delegation avatar STACK, center the avatar
|
|
1313
|
-
* column against the bubble
|
|
1314
|
-
*
|
|
1315
|
-
*
|
|
1316
|
-
*
|
|
1317
|
-
*
|
|
1318
|
-
*
|
|
1319
|
-
* against the bubble's vertical midline so the cluster reads as
|
|
1320
|
-
* one composite glyph; the tighter gap (8 → 6) pulls the message
|
|
1321
|
-
* column closer to the cluster. */
|
|
1316
|
+
* column against the bubble. The flex-end default lines the single
|
|
1317
|
+
* 26px avatar with the bubble's last text line (iMessage feel) but
|
|
1318
|
+
* a stack with a smaller satellite trail reads disconnected when
|
|
1319
|
+
* anchored to the bottom. Centering tucks the entire group against
|
|
1320
|
+
* the bubble's vertical midline so the cluster reads as one
|
|
1321
|
+
* composite glyph. */
|
|
1322
1322
|
.af-widget-root.af-variant-bare .af-msg-row:has(.af-msg-avatar-stack) {
|
|
1323
1323
|
align-items: center;
|
|
1324
|
-
|
|
1324
|
+
}
|
|
1325
|
+
/* Typing-state rows: the bubble is short (a single row of dots) so
|
|
1326
|
+
* the regular flex-end alignment leaves the avatar sticking to the
|
|
1327
|
+
* dots' bottom edge while the dots themselves animate at the
|
|
1328
|
+
* bubble's vertical center — visually the avatar reads as
|
|
1329
|
+
* "trailing" the dots rather than being next to them. Centering
|
|
1330
|
+
* the row puts the avatar at the same y as the dots, AND tightens
|
|
1331
|
+
* the perceived distance because both elements share the midline. */
|
|
1332
|
+
.af-widget-root.af-variant-bare .af-msg-row:has(.af-msg-typing) {
|
|
1333
|
+
align-items: center;
|
|
1325
1334
|
}
|
|
1326
1335
|
.af-widget-root.af-variant-bare .af-msg-row-assistant {
|
|
1327
1336
|
align-self: flex-start;
|
|
@@ -1384,8 +1393,7 @@ const WIDGET_CSS = `
|
|
|
1384
1393
|
* reads as one composite glyph rather than three orphan circles.
|
|
1385
1394
|
* Active speaker sits at the regular bubble-avatar size; upstream
|
|
1386
1395
|
* delegators are 14px and overlap tightly behind it. align-items
|
|
1387
|
-
* stays on
|
|
1388
|
-
` so the small avatars share the active one's
|
|
1396
|
+
* stays on center so the small avatars share the active one's
|
|
1389
1397
|
* vertical midline — that alignment is what lets the typing dots
|
|
1390
1398
|
* land at the same baseline as the group on the next column. */
|
|
1391
1399
|
.af-widget-root.af-variant-bare .af-msg-avatar-stack {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentforge-io/chat-sdk",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.6",
|
|
4
4
|
"description": "Framework-free chat session SDK for AgentForge public chat tokens. Headless — no DOM. Drop into any frontend (React, Vue, Svelte, vanilla) and listen for events.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|