@agentforge-io/chat-sdk 2.5.1 → 2.5.2
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 -4
- package/package.json +1 -1
package/dist/react.js
CHANGED
|
@@ -1367,22 +1367,38 @@ const WIDGET_CSS = `
|
|
|
1367
1367
|
background-color: var(--af-primary, #8b5cf6);
|
|
1368
1368
|
}
|
|
1369
1369
|
/* Delegation-chain avatar stack. Override the default 26x26 size so
|
|
1370
|
-
* the row can host multiple overlapping items without clipping.
|
|
1370
|
+
* the row can host multiple overlapping items without clipping.
|
|
1371
|
+
* `, align;
|
|
1372
|
+
-items;
|
|
1373
|
+
center ` is critical: with `;
|
|
1374
|
+
flex - end ` the smaller
|
|
1375
|
+
* items glue to the bottom of the row and the column they sit in
|
|
1376
|
+
* looks unbalanced — circles read as ovals because the bounding box
|
|
1377
|
+
* isn't square anymore. Centering keeps every item axis-aligned and
|
|
1378
|
+
* the ring + size cap together force a 1:1 aspect ratio. */
|
|
1371
1379
|
.af-widget-root.af-variant-bare .af-msg-avatar-stack {
|
|
1372
1380
|
width: auto;
|
|
1373
1381
|
height: 26px;
|
|
1374
1382
|
border-radius: 0;
|
|
1375
1383
|
overflow: visible;
|
|
1384
|
+
background: transparent;
|
|
1376
1385
|
display: flex;
|
|
1377
1386
|
flex-direction: row;
|
|
1378
|
-
align-items:
|
|
1387
|
+
align-items: center;
|
|
1379
1388
|
/* Slight padding-right so the rightmost stacked item doesn't sit
|
|
1380
1389
|
* flush against the bubble bevel. */
|
|
1381
1390
|
padding-right: 4px;
|
|
1382
1391
|
}
|
|
1383
1392
|
.af-widget-root.af-variant-bare .af-msg-avatar-stack-item {
|
|
1393
|
+
/* Hard-pin the aspect ratio so the box never deforms into an
|
|
1394
|
+
* ellipse when the parent flexes — `;
|
|
1395
|
+
aspect - ratio;
|
|
1396
|
+
1 ` plus explicit
|
|
1397
|
+
* width AND min-width guarantees a square box on every flex child. */
|
|
1384
1398
|
width: 18px;
|
|
1399
|
+
min-width: 18px;
|
|
1385
1400
|
height: 18px;
|
|
1401
|
+
aspect-ratio: 1;
|
|
1386
1402
|
border-radius: 50%;
|
|
1387
1403
|
overflow: hidden;
|
|
1388
1404
|
display: flex;
|
|
@@ -1400,9 +1416,9 @@ const WIDGET_CSS = `
|
|
|
1400
1416
|
}
|
|
1401
1417
|
.af-widget-root.af-variant-bare .af-msg-avatar-stack-active {
|
|
1402
1418
|
/* The active speaker is rendered full-size so it visually anchors
|
|
1403
|
-
* the chain.
|
|
1404
|
-
* the smaller upstream delegators. */
|
|
1419
|
+
* the chain. */
|
|
1405
1420
|
width: 26px;
|
|
1421
|
+
min-width: 26px;
|
|
1406
1422
|
height: 26px;
|
|
1407
1423
|
}
|
|
1408
1424
|
.af-widget-root.af-variant-bare .af-msg-avatar-stack-img {
|
|
@@ -1416,6 +1432,7 @@ const WIDGET_CSS = `
|
|
|
1416
1432
|
font-size: 9.5px;
|
|
1417
1433
|
font-weight: 600;
|
|
1418
1434
|
background-color: var(--af-primary, #8b5cf6);
|
|
1435
|
+
line-height: 1;
|
|
1419
1436
|
}
|
|
1420
1437
|
.af-widget-root.af-variant-bare .af-msg-avatar-stack-active.af-msg-avatar-stack-fallback {
|
|
1421
1438
|
font-size: 11.5px;
|
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.2",
|
|
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",
|