@webitel/ui-chats 0.1.41 → 0.1.43
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.
|
@@ -10,8 +10,14 @@ export interface UseChatScrollOptions {
|
|
|
10
10
|
onBeforeStart?: (options: {
|
|
11
11
|
scrollToBottom: (behavior?: ScrollBehavior) => void;
|
|
12
12
|
}) => void;
|
|
13
|
+
/**
|
|
14
|
+
* @author ye-pohranichna
|
|
15
|
+
* Fired when the viewer is at the bottom and has therefore seen the
|
|
16
|
+
* latest messages
|
|
17
|
+
*/
|
|
18
|
+
onSeen?: () => void;
|
|
13
19
|
}
|
|
14
|
-
export declare const useChatScroll: ({ chatContainer, chatContent, messages, chatId, isChatClosed, isLoading, onBeforeStart, }: UseChatScrollOptions) => {
|
|
20
|
+
export declare const useChatScroll: ({ chatContainer, chatContent, messages, chatId, isChatClosed, isLoading, onBeforeStart, onSeen, }: UseChatScrollOptions) => {
|
|
15
21
|
showScrollToBottomBtn: Ref<boolean, boolean>;
|
|
16
22
|
newUnseenMessagesCount: Ref<number, number>;
|
|
17
23
|
scrollToBottom: (behavior?: ScrollBehavior) => void;
|