@agentforge-io/chat-sdk 2.5.6 → 2.5.7
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 +16 -1
- package/package.json +1 -1
package/dist/react.js
CHANGED
|
@@ -1271,7 +1271,22 @@ const WIDGET_CSS = `
|
|
|
1271
1271
|
* greeting reads as the assistant *responding* to the page loading,
|
|
1272
1272
|
* not part of the static UI. */
|
|
1273
1273
|
.af-widget-root.af-variant-bare .af-greeting-slot {
|
|
1274
|
-
|
|
1274
|
+
/* Glue the greeting to the BOTTOM of the panel's flex column.
|
|
1275
|
+
* Without this, the greeting drifted to the middle of an empty
|
|
1276
|
+
* panel: .af-messages is flex:1 and absorbs the leftover space,
|
|
1277
|
+
* but the greeting-slot sits AFTER it as a sibling. margin-top:
|
|
1278
|
+
* auto collapses any free space above the slot so it parks just
|
|
1279
|
+
* above the composer cluster. */
|
|
1280
|
+
margin-top: auto;
|
|
1281
|
+
padding: 4px 0 10px;
|
|
1282
|
+
}
|
|
1283
|
+
/* When the greeting is shown the messages container is empty —
|
|
1284
|
+
* collapse it so its 6px-padding strip doesn't create a visible gap
|
|
1285
|
+
* above the greeting block. Once any real message lands, the
|
|
1286
|
+
* greeting unmounts and .af-messages goes back to flex:1 normally. */
|
|
1287
|
+
.af-widget-root.af-variant-bare .af-panel:has(.af-greeting-slot) .af-messages {
|
|
1288
|
+
flex: 0 0 auto;
|
|
1289
|
+
padding: 0;
|
|
1275
1290
|
}
|
|
1276
1291
|
.af-widget-root.af-variant-bare .af-msg-row-greeting {
|
|
1277
1292
|
opacity: 0;
|
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.7",
|
|
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",
|