@agentforge-io/chat-sdk 2.5.5 → 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 +20 -11
- 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;
|
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",
|