@agentforge-io/chat-sdk 2.5.1 → 2.5.3

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.
Files changed (2) hide show
  1. package/dist/react.js +16 -4
  2. package/package.json +1 -1
package/dist/react.js CHANGED
@@ -1367,22 +1367,33 @@ 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-items:center is critical: with flex-end the smaller items
1372
+ * glue to the bottom of the row and the column they sit in looks
1373
+ * unbalanced — circles read as ovals because the bounding box isn't
1374
+ * square anymore. Centering keeps every item axis-aligned and the
1375
+ * ring + size cap together force a 1:1 aspect ratio. */
1371
1376
  .af-widget-root.af-variant-bare .af-msg-avatar-stack {
1372
1377
  width: auto;
1373
1378
  height: 26px;
1374
1379
  border-radius: 0;
1375
1380
  overflow: visible;
1381
+ background: transparent;
1376
1382
  display: flex;
1377
1383
  flex-direction: row;
1378
- align-items: flex-end;
1384
+ align-items: center;
1379
1385
  /* Slight padding-right so the rightmost stacked item doesn't sit
1380
1386
  * flush against the bubble bevel. */
1381
1387
  padding-right: 4px;
1382
1388
  }
1383
1389
  .af-widget-root.af-variant-bare .af-msg-avatar-stack-item {
1390
+ /* Hard-pin the aspect ratio so the box never deforms into an
1391
+ * ellipse when the parent flexes — aspect-ratio:1 plus explicit
1392
+ * width AND min-width guarantees a square box on every flex child. */
1384
1393
  width: 18px;
1394
+ min-width: 18px;
1385
1395
  height: 18px;
1396
+ aspect-ratio: 1;
1386
1397
  border-radius: 50%;
1387
1398
  overflow: hidden;
1388
1399
  display: flex;
@@ -1400,9 +1411,9 @@ const WIDGET_CSS = `
1400
1411
  }
1401
1412
  .af-widget-root.af-variant-bare .af-msg-avatar-stack-active {
1402
1413
  /* The active speaker is rendered full-size so it visually anchors
1403
- * the chain. Slightly larger ring keeps it clearly separated from
1404
- * the smaller upstream delegators. */
1414
+ * the chain. */
1405
1415
  width: 26px;
1416
+ min-width: 26px;
1406
1417
  height: 26px;
1407
1418
  }
1408
1419
  .af-widget-root.af-variant-bare .af-msg-avatar-stack-img {
@@ -1416,6 +1427,7 @@ const WIDGET_CSS = `
1416
1427
  font-size: 9.5px;
1417
1428
  font-weight: 600;
1418
1429
  background-color: var(--af-primary, #8b5cf6);
1430
+ line-height: 1;
1419
1431
  }
1420
1432
  .af-widget-root.af-variant-bare .af-msg-avatar-stack-active.af-msg-avatar-stack-fallback {
1421
1433
  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.1",
3
+ "version": "2.5.3",
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",