@agentforge-io/chat-sdk 2.5.3 → 2.5.4
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 +36 -21
- package/package.json +1 -1
package/dist/react.js
CHANGED
|
@@ -1309,6 +1309,20 @@ const WIDGET_CSS = `
|
|
|
1309
1309
|
gap: 8px;
|
|
1310
1310
|
max-width: 92%;
|
|
1311
1311
|
}
|
|
1312
|
+
/* When the row hosts a delegation avatar STACK, center the avatar
|
|
1313
|
+
* column against the bubble AND shrink the gap. The flex-end
|
|
1314
|
+
* default lines the single 26px avatar with the bubble's last text
|
|
1315
|
+
* line (iMessage feel) but a stack with a smaller satellite trail
|
|
1316
|
+
* reads disconnected when anchored to the bottom — the satellites
|
|
1317
|
+
* float in space because the active avatar's edge is the only
|
|
1318
|
+
* thing meeting the bubble. Centering tucks the entire group
|
|
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. */
|
|
1322
|
+
.af-widget-root.af-variant-bare .af-msg-row:has(.af-msg-avatar-stack) {
|
|
1323
|
+
align-items: center;
|
|
1324
|
+
gap: 6px;
|
|
1325
|
+
}
|
|
1312
1326
|
.af-widget-root.af-variant-bare .af-msg-row-assistant {
|
|
1313
1327
|
align-self: flex-start;
|
|
1314
1328
|
}
|
|
@@ -1366,13 +1380,14 @@ const WIDGET_CSS = `
|
|
|
1366
1380
|
* inline color and made every agent avatar look the same. */
|
|
1367
1381
|
background-color: var(--af-primary, #8b5cf6);
|
|
1368
1382
|
}
|
|
1369
|
-
/* Delegation-chain avatar stack.
|
|
1370
|
-
*
|
|
1371
|
-
*
|
|
1372
|
-
*
|
|
1373
|
-
*
|
|
1374
|
-
|
|
1375
|
-
*
|
|
1383
|
+
/* Delegation-chain avatar stack. Borderless overlap so the group
|
|
1384
|
+
* reads as one composite glyph rather than three orphan circles.
|
|
1385
|
+
* Active speaker sits at the regular bubble-avatar size; upstream
|
|
1386
|
+
* delegators are 14px and overlap tightly behind it. align-items
|
|
1387
|
+
* stays on `, center;
|
|
1388
|
+
` so the small avatars share the active one's
|
|
1389
|
+
* vertical midline — that alignment is what lets the typing dots
|
|
1390
|
+
* land at the same baseline as the group on the next column. */
|
|
1376
1391
|
.af-widget-root.af-variant-bare .af-msg-avatar-stack {
|
|
1377
1392
|
width: auto;
|
|
1378
1393
|
height: 26px;
|
|
@@ -1382,17 +1397,17 @@ const WIDGET_CSS = `
|
|
|
1382
1397
|
display: flex;
|
|
1383
1398
|
flex-direction: row;
|
|
1384
1399
|
align-items: center;
|
|
1385
|
-
/*
|
|
1386
|
-
*
|
|
1387
|
-
padding-right:
|
|
1400
|
+
/* Tight padding-right keeps the row hugging the message column —
|
|
1401
|
+
* no float of trailing whitespace between the group and the bubble. */
|
|
1402
|
+
padding-right: 2px;
|
|
1388
1403
|
}
|
|
1389
1404
|
.af-widget-root.af-variant-bare .af-msg-avatar-stack-item {
|
|
1390
1405
|
/* Hard-pin the aspect ratio so the box never deforms into an
|
|
1391
1406
|
* ellipse when the parent flexes — aspect-ratio:1 plus explicit
|
|
1392
1407
|
* width AND min-width guarantees a square box on every flex child. */
|
|
1393
|
-
width:
|
|
1394
|
-
min-width:
|
|
1395
|
-
height:
|
|
1408
|
+
width: 14px;
|
|
1409
|
+
min-width: 14px;
|
|
1410
|
+
height: 14px;
|
|
1396
1411
|
aspect-ratio: 1;
|
|
1397
1412
|
border-radius: 50%;
|
|
1398
1413
|
overflow: hidden;
|
|
@@ -1400,18 +1415,18 @@ const WIDGET_CSS = `
|
|
|
1400
1415
|
align-items: center;
|
|
1401
1416
|
justify-content: center;
|
|
1402
1417
|
flex-shrink: 0;
|
|
1403
|
-
/*
|
|
1404
|
-
*
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
margin-left: -6px;
|
|
1418
|
+
/* No ring — the operator asked for a borderless, integrated look.
|
|
1419
|
+
* Avatars overlap by half-radius so the group reads as a cluster,
|
|
1420
|
+
* not a stack of separate buttons. */
|
|
1421
|
+
margin-left: -7px;
|
|
1408
1422
|
}
|
|
1409
1423
|
.af-widget-root.af-variant-bare .af-msg-avatar-stack-item:first-child {
|
|
1410
1424
|
margin-left: 0;
|
|
1411
1425
|
}
|
|
1412
1426
|
.af-widget-root.af-variant-bare .af-msg-avatar-stack-active {
|
|
1413
|
-
/* The active speaker
|
|
1414
|
-
* the
|
|
1427
|
+
/* The active speaker matches the regular avatar size so the chain
|
|
1428
|
+
* row sits at the same height as a single-speaker row — the
|
|
1429
|
+
* conversation column stays visually aligned across all bubbles. */
|
|
1415
1430
|
width: 26px;
|
|
1416
1431
|
min-width: 26px;
|
|
1417
1432
|
height: 26px;
|
|
@@ -1424,7 +1439,7 @@ const WIDGET_CSS = `
|
|
|
1424
1439
|
}
|
|
1425
1440
|
.af-widget-root.af-variant-bare .af-msg-avatar-stack-fallback {
|
|
1426
1441
|
color: #fff;
|
|
1427
|
-
font-size:
|
|
1442
|
+
font-size: 8px;
|
|
1428
1443
|
font-weight: 600;
|
|
1429
1444
|
background-color: var(--af-primary, #8b5cf6);
|
|
1430
1445
|
line-height: 1;
|
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.4",
|
|
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",
|