@helpai/elements 0.43.0 → 0.43.1
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 +4 -4
- package/elements-web-component.esm.js.map +2 -2
- package/elements.cjs.js +4 -4
- package/elements.cjs.js.map +2 -2
- package/elements.esm.js +4 -4
- package/elements.esm.js.map +2 -2
- package/elements.js +4 -4
- package/elements.js.map +2 -2
- package/index.mjs +1 -0
- package/package.json +1 -1
- package/web-component.mjs +1 -0
package/index.mjs
CHANGED
|
@@ -5259,6 +5259,7 @@ function MessageList({
|
|
|
5259
5259
|
pinBottom(el);
|
|
5260
5260
|
return;
|
|
5261
5261
|
}
|
|
5262
|
+
if (!list.some((m) => m.role === "user")) return;
|
|
5262
5263
|
if (detachedRef.current || inInteractionGrace()) return;
|
|
5263
5264
|
const distanceFromBottom = el.scrollHeight - el.scrollTop - el.clientHeight;
|
|
5264
5265
|
if (distanceFromBottom < STICK_THRESHOLD) pinBottom(el);
|
package/package.json
CHANGED
package/web-component.mjs
CHANGED
|
@@ -5218,6 +5218,7 @@ function MessageList({
|
|
|
5218
5218
|
pinBottom(el);
|
|
5219
5219
|
return;
|
|
5220
5220
|
}
|
|
5221
|
+
if (!list.some((m) => m.role === "user")) return;
|
|
5221
5222
|
if (detachedRef.current || inInteractionGrace()) return;
|
|
5222
5223
|
const distanceFromBottom = el.scrollHeight - el.scrollTop - el.clientHeight;
|
|
5223
5224
|
if (distanceFromBottom < STICK_THRESHOLD) pinBottom(el);
|