@webitel/ui-chats 0.1.42 → 0.1.44

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;
@@ -6,11 +6,11 @@ type __VLS_Props = {
6
6
  username?: string;
7
7
  agentName?: string;
8
8
  };
9
- declare var __VLS_1: {}, __VLS_62: {};
9
+ declare var __VLS_1: {}, __VLS_58: {};
10
10
  type __VLS_Slots = {} & {
11
11
  'before-message'?: (props: typeof __VLS_1) => any;
12
12
  } & {
13
- 'after-message'?: (props: typeof __VLS_62) => any;
13
+ 'after-message'?: (props: typeof __VLS_58) => any;
14
14
  };
15
15
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
16
16
  clickOnImage: () => any;