@helpai/elements 0.42.0 → 0.42.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/elements-web-component.esm.js +3 -3
- package/elements-web-component.esm.js.map +2 -2
- package/elements.cjs.js +3 -3
- package/elements.cjs.js.map +2 -2
- package/elements.esm.js +3 -3
- package/elements.esm.js.map +2 -2
- package/elements.js +3 -3
- package/elements.js.map +2 -2
- package/index.mjs +2 -1
- package/package.json +1 -1
- package/web-component.mjs +2 -1
package/index.mjs
CHANGED
|
@@ -1864,7 +1864,7 @@ var AgentTransport = class {
|
|
|
1864
1864
|
return res;
|
|
1865
1865
|
}
|
|
1866
1866
|
conversationsKey(params) {
|
|
1867
|
-
return JSON.stringify(params, Object.keys(params).toSorted())
|
|
1867
|
+
return `${this.locale ?? ""}|${JSON.stringify(params, Object.keys(params).toSorted())}`;
|
|
1868
1868
|
}
|
|
1869
1869
|
/**
|
|
1870
1870
|
* Synchronous read of an ALREADY-RESOLVED, still-fresh cached list (the same
|
|
@@ -5268,6 +5268,7 @@ function MessageList({
|
|
|
5268
5268
|
if (!el) return;
|
|
5269
5269
|
const last = messages.value.at(-1);
|
|
5270
5270
|
if (!last) return;
|
|
5271
|
+
if (last.status !== "streaming" && !messages.value.some((m) => m.role === "user")) return;
|
|
5271
5272
|
const pinIfNear = () => {
|
|
5272
5273
|
if (detachedRef.current || inInteractionGrace()) return;
|
|
5273
5274
|
const distance = el.scrollHeight - el.scrollTop - el.clientHeight;
|
package/package.json
CHANGED
package/web-component.mjs
CHANGED
|
@@ -1823,7 +1823,7 @@ var AgentTransport = class {
|
|
|
1823
1823
|
return res;
|
|
1824
1824
|
}
|
|
1825
1825
|
conversationsKey(params) {
|
|
1826
|
-
return JSON.stringify(params, Object.keys(params).toSorted())
|
|
1826
|
+
return `${this.locale ?? ""}|${JSON.stringify(params, Object.keys(params).toSorted())}`;
|
|
1827
1827
|
}
|
|
1828
1828
|
/**
|
|
1829
1829
|
* Synchronous read of an ALREADY-RESOLVED, still-fresh cached list (the same
|
|
@@ -5227,6 +5227,7 @@ function MessageList({
|
|
|
5227
5227
|
if (!el) return;
|
|
5228
5228
|
const last = messages.value.at(-1);
|
|
5229
5229
|
if (!last) return;
|
|
5230
|
+
if (last.status !== "streaming" && !messages.value.some((m) => m.role === "user")) return;
|
|
5230
5231
|
const pinIfNear = () => {
|
|
5231
5232
|
if (detachedRef.current || inInteractionGrace()) return;
|
|
5232
5233
|
const distance = el.scrollHeight - el.scrollTop - el.clientHeight;
|