@ethora/chat-component 25.5.24 → 25.5.28
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/main.js +18 -1
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -12759,7 +12759,24 @@ const M3 = T.div`
|
|
|
12759
12759
|
M && M.id !== x.current && Q && (x.current = M.id, te());
|
|
12760
12760
|
}
|
|
12761
12761
|
}, [o, v]), fe(() => {
|
|
12762
|
-
|
|
12762
|
+
const M = t?.botMessageAutoScroll, Q = y.current;
|
|
12763
|
+
!M || !Q || (Q.scrollHeight - Q.clientHeight - Q.scrollTop < 100, console.log(g.length), console.log({
|
|
12764
|
+
scrollHeight: Q.scrollHeight,
|
|
12765
|
+
clientHeight: Q.clientHeight,
|
|
12766
|
+
scrollTOp: Q.scrollTop
|
|
12767
|
+
}), O().then(() => {
|
|
12768
|
+
setTimeout(() => {
|
|
12769
|
+
console.log("Before scroll:", {
|
|
12770
|
+
scrollTop: Q.scrollTop,
|
|
12771
|
+
scrollHeight: Q.scrollHeight,
|
|
12772
|
+
clientHeight: Q.clientHeight
|
|
12773
|
+
}), te(), l(!1), console.log("After scroll:", {
|
|
12774
|
+
scrollTop: Q.scrollTop,
|
|
12775
|
+
scrollHeight: Q.scrollHeight,
|
|
12776
|
+
clientHeight: Q.clientHeight
|
|
12777
|
+
});
|
|
12778
|
+
}, 50);
|
|
12779
|
+
}));
|
|
12763
12780
|
}, [g.length, t?.botMessageAutoScroll]);
|
|
12764
12781
|
let P = null;
|
|
12765
12782
|
return /* @__PURE__ */ S(w3, { ref: I, children: [
|