@sawport/react-sdk 0.1.0-alpha.82 → 0.1.0-alpha.82.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/dist/index.js +5 -6
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -75748,7 +75748,6 @@ function ChatWidgetScreen({
|
|
|
75748
75748
|
const {
|
|
75749
75749
|
socket: socket2
|
|
75750
75750
|
} = useSocket();
|
|
75751
|
-
const bottomRef = reactExports.useRef();
|
|
75752
75751
|
const timeoutRef = reactExports.useRef();
|
|
75753
75752
|
const [{
|
|
75754
75753
|
typingEvent,
|
|
@@ -75793,9 +75792,12 @@ function ChatWidgetScreen({
|
|
|
75793
75792
|
}]
|
|
75794
75793
|
});
|
|
75795
75794
|
reactExports.useEffect(() => {
|
|
75796
|
-
|
|
75797
|
-
(_a2 = bottomRef.current) == null ? void 0 : _a2.scrollIntoView();
|
|
75795
|
+
scrollToBottom();
|
|
75798
75796
|
}, [messages2]);
|
|
75797
|
+
const scrollToBottom = reactExports.useCallback(() => {
|
|
75798
|
+
const el2 = document.getElementById("widget-chat-send");
|
|
75799
|
+
el2.scrollTop = el2.scrollHeight;
|
|
75800
|
+
}, []);
|
|
75799
75801
|
if (typingEvent && waitlistTransferredStatus)
|
|
75800
75802
|
setEvent((state) => {
|
|
75801
75803
|
state.waitlistTransferredStatus = false;
|
|
@@ -75931,9 +75933,6 @@ function ChatWidgetScreen({
|
|
|
75931
75933
|
companyColor: company == null ? void 0 : company.hex_code,
|
|
75932
75934
|
setPDFstate,
|
|
75933
75935
|
setViewstate
|
|
75934
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
75935
|
-
ref: bottomRef,
|
|
75936
|
-
className: "chat-bottom"
|
|
75937
75936
|
})]
|
|
75938
75937
|
}), /* @__PURE__ */ jsx(ChatInput, {
|
|
75939
75938
|
dataRef,
|