@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/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
@@ -80,5 +80,5 @@
80
80
  ],
81
81
  "type": "module",
82
82
  "types": "./index.d.ts",
83
- "version": "0.43.0"
83
+ "version": "0.43.1"
84
84
  }
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);