@webitel/ui-chats 0.1.39 → 0.1.41

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.
Files changed (50) hide show
  1. package/package.json +17 -1
  2. package/src/adapters/chat-web-sdk/toChatMessage.ts +111 -0
  3. package/src/adapters/index.ts +12 -0
  4. package/src/types/index.ts +15 -0
  5. package/src/ui/index.ts +2 -0
  6. package/src/ui/messaging/components/chat-date-divider.vue +1 -1
  7. package/src/ui/messaging/components/scroll-to-bottom-btn.vue +0 -2
  8. package/src/ui/messaging/components/the-messages-container.vue +58 -46
  9. package/src/ui/messaging/composables/useChatScroll.ts +161 -81
  10. package/src/ui/messaging/composables/useObserveHeightUntilStable.ts +49 -0
  11. package/src/ui/messaging/composables/useScrollToBottomBtn.ts +51 -0
  12. package/src/ui/messaging/modules/message/components/chat-message.vue +1 -2
  13. package/src/ui/messaging/modules/message/components/details/chat-message-document.vue +1 -2
  14. package/src/ui/messaging/modules/message/components/details/chat-message-image.vue +0 -2
  15. package/src/ui/messaging/modules/message/components/details/chat-message-player.vue +1 -2
  16. package/src/ui/messaging/modules/message/components/details/chat-message-size-exceeded-error.vue +1 -1
  17. package/src/ui/messaging/modules/message/components/details/chat-message-time.vue +1 -1
  18. package/src/ui/messaging/types/ChatMessage.types.ts +3 -2
  19. package/src/ui/the-chat-container.vue +10 -1
  20. package/src/ui/utils/ResultCallbacks.types.ts +1 -1
  21. package/src/ui/utils/emitter.ts +1 -1
  22. package/types/adapters/chat-web-sdk/toChatMessage.d.ts +23 -0
  23. package/types/adapters/index.d.ts +8 -0
  24. package/types/types/index.d.ts +8 -0
  25. package/types/ui/chat-footer/modules/user-input/enums/ChatAction.enum.d.ts +6 -5
  26. package/types/ui/index.d.ts +7 -3
  27. package/types/ui/messaging/components/the-messages-container.vue.d.ts +7 -1
  28. package/types/ui/messaging/composables/useChatScroll.d.ts +13 -3
  29. package/types/ui/messaging/composables/useObserveHeightUntilStable.d.ts +11 -0
  30. package/types/ui/messaging/composables/useScrollToBottomBtn.d.ts +9 -0
  31. package/types/ui/messaging/modules/message/composables/useChatMessageFile.d.ts +2 -0
  32. package/types/ui/messaging/types/ChatMessage.types.d.ts +33 -32
  33. package/types/ui/the-chat-container.vue.d.ts +39 -49
  34. package/types/ui/utils/ResultCallbacks.types.d.ts +1 -1
  35. package/types/ui/utils/emitter.d.ts +1 -1
  36. package/types/ui/chat-container.vue.d.ts +0 -76
  37. package/types/ui/chat-footer/modules/user-input/types/ChatAction.types.d.ts +0 -10
  38. package/types/ui/chat-input/components/actions/attach-files-action.vue.d.ts +0 -29
  39. package/types/ui/chat-input/components/actions/emoji-picker-action.vue.d.ts +0 -24
  40. package/types/ui/chat-input/components/actions/send-message-action.vue.d.ts +0 -29
  41. package/types/ui/chat-input/components/chat-input-actions-bar.vue.d.ts +0 -43
  42. package/types/ui/chat-input/components/chat-input-actions-wrapper.vue.d.ts +0 -34
  43. package/types/ui/chat-input/components/chat-input.vue.d.ts +0 -42
  44. package/types/ui/chat-input/components/chat-text-field.vue.d.ts +0 -32
  45. package/types/ui/chat-input/enums/ChatAction.enum.d.ts +0 -6
  46. package/types/ui/media-viewer/media-viewer.vue.d.ts +0 -11
  47. package/types/ui/messaging/components/chat-messages-container.vue.d.ts +0 -11
  48. package/types/ui/messaging/components/the-chat-messages-container.vue.d.ts +0 -40
  49. package/types/ui/messaging/composebles/useChatScroll.d.ts +0 -12
  50. package/types/ui/messaging/modules/message/components/details/chat-message-avatar.vue.d.ts +0 -10
@@ -0,0 +1,11 @@
1
+ import { type Ref } from 'vue';
2
+ /**
3
+ * @author PolinaSukhorukova-webitel
4
+ *
5
+ * Fires the callback on every resize and disconnects itself
6
+ * once clientHeight is unchanged twice in a row.
7
+ */
8
+ export declare const useObserveHeightUntilStable: (chatContainer: Ref<HTMLElement | null>, callback: () => void) => {
9
+ startObserve: () => void;
10
+ stopObserve: () => void;
11
+ };
@@ -0,0 +1,9 @@
1
+ import type { UseScrollReturn } from '@vueuse/core';
2
+ import { type Ref } from 'vue';
3
+ export declare const useScrollToBottomBtn: (chatContainer: Ref<HTMLElement | null>, arrivedState: UseScrollReturn["arrivedState"]) => {
4
+ showScrollToBottomBtn: Ref<boolean, boolean>;
5
+ handleChatScroll: () => void;
6
+ resetScrollToBottomBtn: () => void;
7
+ updateScrollToBottomBtnVisibility: (el: HTMLElement) => void;
8
+ updateThreshold: (clientHeight: number) => void;
9
+ };
@@ -9,6 +9,7 @@ export declare function useChatMessageFile(file: ChatMessageFile | Ref<ChatMessa
9
9
  mime?: string;
10
10
  url?: string;
11
11
  streamUrl?: string;
12
+ malware?: boolean;
12
13
  }>;
13
14
  document: import("vue").ComputedRef<ChatMessageFile | {
14
15
  id?: string;
@@ -17,5 +18,6 @@ export declare function useChatMessageFile(file: ChatMessageFile | Ref<ChatMessa
17
18
  mime?: string;
18
19
  url?: string;
19
20
  streamUrl?: string;
21
+ malware?: boolean;
20
22
  }>;
21
23
  };
@@ -1,44 +1,45 @@
1
1
  export interface ChatMessageType {
2
- id: number;
3
- date?: number;
4
- file?: ChatMessageFile;
5
- member: ChatMember;
6
- peer?: ChatMember;
7
- chat?: ChatMessageChatInfo;
8
- createdAt: number;
9
- channelId?: string;
10
- updatedAt?: number;
11
- contact?: null | ContactInfo;
12
- text?: string;
2
+ id: number | string;
3
+ date?: number;
4
+ file?: ChatMessageFile;
5
+ member: ChatMember;
6
+ peer?: ChatMember;
7
+ chat?: ChatMessageChatInfo;
8
+ createdAt: number;
9
+ channelId?: string;
10
+ updatedAt?: number;
11
+ contact?: null | ContactInfo;
12
+ text?: string;
13
13
  }
14
14
  export type ContactInfo = {
15
- id: string;
16
- name?: string;
15
+ id: string;
16
+ name?: string;
17
17
  };
18
18
  export type ChatMessageFile = {
19
- id?: string;
20
- name?: string;
21
- size?: string;
22
- mime?: string;
23
- url?: string;
24
- streamUrl?: string;
19
+ id?: string;
20
+ name?: string;
21
+ size?: string;
22
+ mime?: string;
23
+ url?: string;
24
+ streamUrl?: string;
25
+ malware?: boolean;
25
26
  };
26
27
  export type ChatMember = {
27
- id: number;
28
- name: string;
29
- type: string;
30
- userId?: number;
31
- externalId?: string;
32
- via?: ChatVia;
33
- self?: boolean;
28
+ id: number | string;
29
+ name: string;
30
+ type: string;
31
+ userId?: number;
32
+ externalId?: string;
33
+ via?: ChatVia;
34
+ self?: boolean;
34
35
  };
35
36
  export type ChatMessageChatInfo = {
36
- id: string;
37
- via: ChatVia;
37
+ id: string;
38
+ via: ChatVia;
38
39
  };
39
40
  export type ChatVia = {
40
- id: number;
41
- name: string;
42
- type: string;
43
- messenger?: string;
41
+ id: number;
42
+ name: string;
43
+ type: string;
44
+ messenger?: string;
44
45
  };
@@ -1,58 +1,48 @@
1
- import { ComponentSize } from "@webitel/ui-sdk/enums";
2
- import {
3
- ChatAction,
4
- type SharedActionSlots,
5
- } from "./chat-footer/modules/user-input/enums/ChatAction.enum";
6
- import type { ChatMessageType } from "./messaging/types/ChatMessage.types";
7
- import type { ResultCallbacks } from "./utils/ResultCallbacks.types";
1
+ import { WebitelContactsContact } from '@webitel/api-services/gen/models';
2
+ import { ComponentSize } from '@webitel/ui-sdk/enums';
3
+ import { ChatAction, type SharedActionSlots } from './chat-footer/modules/user-input/enums/ChatAction.enum';
4
+ import type { ChatMessageType } from './messaging/types/ChatMessage.types';
5
+ import type { ResultCallbacks } from './utils/ResultCallbacks.types';
8
6
  type __VLS_Props = {
9
- messages: ChatMessageType[];
10
- chatActions?: ChatAction[];
11
- size?: ComponentSize;
12
- withoutAvatars?: boolean;
7
+ messages: ChatMessageType[];
8
+ chatActions?: ChatAction[];
9
+ size?: ComponentSize;
10
+ canLoadNextMessages?: boolean;
11
+ isNextMessagesLoading?: boolean;
12
+ withoutAvatars?: boolean;
13
+ readonly?: boolean;
14
+ agentName?: string;
15
+ contact?: WebitelContactsContact;
16
+ chatId?: string;
17
+ isChatClosed?: boolean;
13
18
  };
14
19
  type __VLS_Slots = {
15
- main: () => any;
16
- footer: () => any;
20
+ main: () => unknown;
21
+ footer: () => unknown;
17
22
  } & SharedActionSlots;
18
- declare const __VLS_base: import("vue").DefineComponent<
19
- __VLS_Props,
20
- {},
21
- {},
22
- {},
23
- {},
24
- import("vue").ComponentOptionsMixin,
25
- import("vue").ComponentOptionsMixin,
26
- {} & {
27
- "action:sendMessage": (text: string, options: ResultCallbacks) => any;
28
- "action:attachFiles": (files: File[], options: ResultCallbacks) => any;
29
- },
30
- string,
31
- import("vue").PublicProps,
32
- Readonly<__VLS_Props> &
33
- Readonly<{
34
- "onAction:sendMessage"?: (text: string, options: ResultCallbacks) => any;
35
- "onAction:attachFiles"?: (files: File[], options: ResultCallbacks) => any;
36
- }>,
37
- {
38
- size: ComponentSize;
39
- withoutAvatars: boolean;
40
- chatActions: ChatAction[];
41
- },
42
- {},
43
- {},
44
- {},
45
- string,
46
- import("vue").ComponentProvideOptions,
47
- false,
48
- {},
49
- any
50
- >;
23
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
24
+ loadNextMessages: () => any;
25
+ "action:sendMessage": (text: string, options: ResultCallbacks) => any;
26
+ "action:attachFiles": (files: File[], options: ResultCallbacks) => any;
27
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
28
+ onLoadNextMessages?: () => any;
29
+ "onAction:sendMessage"?: (text: string, options: ResultCallbacks) => any;
30
+ "onAction:attachFiles"?: (files: File[], options: ResultCallbacks) => any;
31
+ }>, {
32
+ chatId: string;
33
+ isChatClosed: boolean;
34
+ size: ComponentSize;
35
+ withoutAvatars: boolean;
36
+ chatActions: ChatAction[];
37
+ canLoadNextMessages: boolean;
38
+ isNextMessagesLoading: boolean;
39
+ readonly: boolean;
40
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
51
41
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
52
42
  declare const _default: typeof __VLS_export;
53
43
  export default _default;
54
44
  type __VLS_WithSlots<T, S> = T & {
55
- new (): {
56
- $slots: S;
57
- };
45
+ new (): {
46
+ $slots: S;
47
+ };
58
48
  };
@@ -1 +1 @@
1
- export { ResultCallbacks } from "@webitel/ui-sdk/src/types";
1
+ export type { ResultCallbacks } from '@webitel/ui-sdk/src/types';
@@ -1,4 +1,4 @@
1
- import type { ChatMessageType } from '../../../types/ui';
1
+ import type { ChatMessageType } from '../messaging/types/ChatMessage.types';
2
2
  export type UiChatsEmitterEvents = {
3
3
  insertAtCursor: {
4
4
  text: string;
@@ -1,76 +0,0 @@
1
- <<<<<<< HEAD
2
- import { ComponentSize } from "@webitel/ui-sdk/enums";
3
- import {
4
- ChatAction,
5
- type SharedActionSlots,
6
- } from "./chat-footer/modules/user-input/types/ChatAction.types";
7
- import type { ChatMessageType } from "./messaging/types/ChatMessage.types";
8
- import type { ResultCallbacks } from "./utils/ResultCallbacks.types";
9
- =======
10
- import { ComponentSize } from '@webitel/ui-sdk/enums';
11
- import { ResultCallbacks } from './utils/ResultCallbacks.types';
12
- import { ChatMessageType } from './messaging/types/ChatMessage.types';
13
- import { ChatAction, SharedActionSlots } from './chat-footer/modules/user-input/types/ChatAction.types';
14
- >>>>>>> parent of 420ffe845 (refactor: oxlint/oxfmt replaced to biome, + reformatted all files)
15
- type __VLS_Props = {
16
- messages: ChatMessageType[];
17
- chatActions?: ChatAction[];
18
- size?: ComponentSize;
19
- };
20
- type __VLS_Slots = {
21
- main: () => any;
22
- footer: () => any;
23
- } & SharedActionSlots;
24
- <<<<<<< HEAD
25
- declare const __VLS_base: import("vue").DefineComponent<
26
- __VLS_Props,
27
- {},
28
- {},
29
- {},
30
- {},
31
- import("vue").ComponentOptionsMixin,
32
- import("vue").ComponentOptionsMixin,
33
- {} & {
34
- "action:sendMessage": (text: string, options: ResultCallbacks) => any;
35
- "action:attachFiles": (files: File[], options: ResultCallbacks) => any;
36
- },
37
- string,
38
- import("vue").PublicProps,
39
- Readonly<__VLS_Props> &
40
- Readonly<{
41
- "onAction:sendMessage"?: (text: string, options: ResultCallbacks) => any;
42
- "onAction:attachFiles"?: (files: File[], options: ResultCallbacks) => any;
43
- }>,
44
- {
45
- chatActions: ChatAction[];
46
- size: ComponentSize;
47
- },
48
- {},
49
- {},
50
- {},
51
- string,
52
- import("vue").ComponentProvideOptions,
53
- false,
54
- {},
55
- any
56
- >;
57
- =======
58
- declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
59
- "action:sendMessage": (text: string, options: ResultCallbacks) => any;
60
- "action:attachFiles": (files: File[], options: ResultCallbacks) => any;
61
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
62
- "onAction:sendMessage"?: (text: string, options: ResultCallbacks) => any;
63
- "onAction:attachFiles"?: (files: File[], options: ResultCallbacks) => any;
64
- }>, {
65
- size: ComponentSize;
66
- chatActions: ChatAction[];
67
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
68
- >>>>>>> parent of 420ffe845 (refactor: oxlint/oxfmt replaced to biome, + reformatted all files)
69
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
70
- declare const _default: typeof __VLS_export;
71
- export default _default;
72
- type __VLS_WithSlots<T, S> = T & {
73
- new (): {
74
- $slots: S;
75
- };
76
- };
@@ -1,10 +0,0 @@
1
- export declare const ChatAction: {
2
- readonly SendMessage: "sendMessage";
3
- readonly AttachFiles: "attachFiles";
4
- readonly EmojiPicker: "emojiPicker";
5
- readonly QuickReplies: "quickReplies";
6
- };
7
- export type ChatAction = (typeof ChatAction)[keyof typeof ChatAction];
8
- export type SharedActionSlots = {
9
- [key in `action:${ChatAction}`]?: () => any;
10
- };
@@ -1,29 +0,0 @@
1
- declare const __VLS_export: import("vue").DefineComponent<
2
- {},
3
- {},
4
- {},
5
- {},
6
- {},
7
- import("vue").ComponentOptionsMixin,
8
- import("vue").ComponentOptionsMixin,
9
- {
10
- attachFiles: (files: File[]) => any;
11
- },
12
- string,
13
- import("vue").PublicProps,
14
- Readonly<{}> &
15
- Readonly<{
16
- onAttachFiles?: (files: File[]) => any;
17
- }>,
18
- {},
19
- {},
20
- {},
21
- {},
22
- string,
23
- import("vue").ComponentProvideOptions,
24
- true,
25
- {},
26
- any
27
- >;
28
- declare const _default: typeof __VLS_export;
29
- export default _default;
@@ -1,24 +0,0 @@
1
- declare const __VLS_export: import("vue").DefineComponent<
2
- {},
3
- {},
4
- {},
5
- {},
6
- {},
7
- import("vue").ComponentOptionsMixin,
8
- import("vue").ComponentOptionsMixin,
9
- {},
10
- string,
11
- import("vue").PublicProps,
12
- Readonly<{}> & Readonly<{}>,
13
- {},
14
- {},
15
- {},
16
- {},
17
- string,
18
- import("vue").ComponentProvideOptions,
19
- true,
20
- {},
21
- any
22
- >;
23
- declare const _default: typeof __VLS_export;
24
- export default _default;
@@ -1,29 +0,0 @@
1
- declare const __VLS_export: import("vue").DefineComponent<
2
- {},
3
- {},
4
- {},
5
- {},
6
- {},
7
- import("vue").ComponentOptionsMixin,
8
- import("vue").ComponentOptionsMixin,
9
- {
10
- click: () => any;
11
- },
12
- string,
13
- import("vue").PublicProps,
14
- Readonly<{}> &
15
- Readonly<{
16
- onClick?: () => any;
17
- }>,
18
- {},
19
- {},
20
- {},
21
- {},
22
- string,
23
- import("vue").ComponentProvideOptions,
24
- true,
25
- {},
26
- any
27
- >;
28
- declare const _default: typeof __VLS_export;
29
- export default _default;
@@ -1,43 +0,0 @@
1
- import { ComponentSize } from "@webitel/ui-sdk/enums";
2
- import { ChatAction } from "../enums/ChatAction.enum";
3
- type __VLS_Props = {
4
- actions: ChatAction[];
5
- size: ComponentSize;
6
- };
7
- declare var __VLS_2: "sendMessage" | "attachFiles" | "emojiPicker",
8
- __VLS_3: {
9
- key: "sendMessage" | "attachFiles" | "emojiPicker";
10
- };
11
- type __VLS_Slots = {} & {
12
- [K in NonNullable<typeof __VLS_2>]?: (props: typeof __VLS_3) => any;
13
- };
14
- declare const __VLS_base: import("vue").DefineComponent<
15
- __VLS_Props,
16
- {},
17
- {},
18
- {},
19
- {},
20
- import("vue").ComponentOptionsMixin,
21
- import("vue").ComponentOptionsMixin,
22
- {},
23
- string,
24
- import("vue").PublicProps,
25
- Readonly<__VLS_Props> & Readonly<{}>,
26
- {},
27
- {},
28
- {},
29
- {},
30
- string,
31
- import("vue").ComponentProvideOptions,
32
- false,
33
- {},
34
- any
35
- >;
36
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
37
- declare const _default: typeof __VLS_export;
38
- export default _default;
39
- type __VLS_WithSlots<T, S> = T & {
40
- new (): {
41
- $slots: S;
42
- };
43
- };
@@ -1,34 +0,0 @@
1
- declare var __VLS_1: {};
2
- type __VLS_Slots = {} & {
3
- actions?: (props: typeof __VLS_1) => any;
4
- };
5
- declare const __VLS_base: import("vue").DefineComponent<
6
- {},
7
- {},
8
- {},
9
- {},
10
- {},
11
- import("vue").ComponentOptionsMixin,
12
- import("vue").ComponentOptionsMixin,
13
- {},
14
- string,
15
- import("vue").PublicProps,
16
- Readonly<{}> & Readonly<{}>,
17
- {},
18
- {},
19
- {},
20
- {},
21
- string,
22
- import("vue").ComponentProvideOptions,
23
- true,
24
- {},
25
- any
26
- >;
27
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
28
- declare const _default: typeof __VLS_export;
29
- export default _default;
30
- type __VLS_WithSlots<T, S> = T & {
31
- new (): {
32
- $slots: S;
33
- };
34
- };
@@ -1,42 +0,0 @@
1
- type __VLS_ModelProps = {
2
- draft: string;
3
- };
4
- declare var __VLS_10: {};
5
- type __VLS_Slots = {} & {
6
- actions?: (props: typeof __VLS_10) => any;
7
- };
8
- declare const __VLS_base: import("vue").DefineComponent<
9
- __VLS_ModelProps,
10
- {},
11
- {},
12
- {},
13
- {},
14
- import("vue").ComponentOptionsMixin,
15
- import("vue").ComponentOptionsMixin,
16
- {
17
- "update:draft": (value: string) => any;
18
- },
19
- string,
20
- import("vue").PublicProps,
21
- Readonly<__VLS_ModelProps> &
22
- Readonly<{
23
- "onUpdate:draft"?: (value: string) => any;
24
- }>,
25
- {},
26
- {},
27
- {},
28
- {},
29
- string,
30
- import("vue").ComponentProvideOptions,
31
- false,
32
- {},
33
- any
34
- >;
35
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
36
- declare const _default: typeof __VLS_export;
37
- export default _default;
38
- type __VLS_WithSlots<T, S> = T & {
39
- new (): {
40
- $slots: S;
41
- };
42
- };
@@ -1,32 +0,0 @@
1
- type __VLS_ModelProps = {
2
- text: string;
3
- };
4
- declare const __VLS_export: import("vue").DefineComponent<
5
- __VLS_ModelProps,
6
- {},
7
- {},
8
- {},
9
- {},
10
- import("vue").ComponentOptionsMixin,
11
- import("vue").ComponentOptionsMixin,
12
- {
13
- "update:text": (value: string) => any;
14
- },
15
- string,
16
- import("vue").PublicProps,
17
- Readonly<__VLS_ModelProps> &
18
- Readonly<{
19
- "onUpdate:text"?: (value: string) => any;
20
- }>,
21
- {},
22
- {},
23
- {},
24
- {},
25
- string,
26
- import("vue").ComponentProvideOptions,
27
- false,
28
- {},
29
- any
30
- >;
31
- declare const _default: typeof __VLS_export;
32
- export default _default;
@@ -1,6 +0,0 @@
1
- export declare const ChatAction: {
2
- readonly SendMessage: "sendMessage";
3
- readonly AttachFiles: "attachFiles";
4
- readonly EmojiPicker: "emojiPicker";
5
- };
6
- export type ChatAction = (typeof ChatAction)[keyof typeof ChatAction];
@@ -1,11 +0,0 @@
1
- import type { ChatMessageFile } from '../messaging/types/ChatMessage.types';
2
- type __VLS_Props = {
3
- media: ChatMessageFile | null;
4
- };
5
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
- close: () => any;
7
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
8
- onClose?: () => any;
9
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
- declare const _default: typeof __VLS_export;
11
- export default _default;
@@ -1,11 +0,0 @@
1
- <<<<<<< HEAD
2
- import type { ChatMessageType } from "../types/ChatMessage.types";
3
- =======
4
- import { ChatMessageType } from '../types/ChatMessage.types';
5
- >>>>>>> parent of 420ffe845 (refactor: oxlint/oxfmt replaced to biome, + reformatted all files)
6
- type __VLS_Props = {
7
- messages: ChatMessageType[];
8
- };
9
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
- declare const _default: typeof __VLS_export;
11
- export default _default;
@@ -1,40 +0,0 @@
1
- import type { ChatMessageType } from "../types/ChatMessage.types";
2
- type __VLS_Props = {
3
- messages: ChatMessageType[];
4
- next?: boolean;
5
- isLoading?: boolean;
6
- withoutAvatars?: boolean;
7
- };
8
- declare const __VLS_export: import("vue").DefineComponent<
9
- __VLS_Props,
10
- {},
11
- {},
12
- {},
13
- {},
14
- import("vue").ComponentOptionsMixin,
15
- import("vue").ComponentOptionsMixin,
16
- {} & {
17
- loadNextMessages: () => any;
18
- },
19
- string,
20
- import("vue").PublicProps,
21
- Readonly<__VLS_Props> &
22
- Readonly<{
23
- onLoadNextMessages?: () => any;
24
- }>,
25
- {
26
- withoutAvatars: boolean;
27
- next: boolean;
28
- isLoading: boolean;
29
- },
30
- {},
31
- {},
32
- {},
33
- string,
34
- import("vue").ComponentProvideOptions,
35
- false,
36
- {},
37
- any
38
- >;
39
- declare const _default: typeof __VLS_export;
40
- export default _default;
@@ -1,12 +0,0 @@
1
- import { type Ref } from "vue";
2
- import type { ChatMessageType } from "../types/ChatMessage.types";
3
- export declare const useChatScroll: (
4
- element?: Ref<HTMLElement | null>,
5
- chatMessages?: ChatMessageType[],
6
- ) => {
7
- showScrollToBottomBtn: Ref<boolean, boolean>;
8
- newUnseenMessages: Ref<number, number>;
9
- scrollToBottom: (behavior?: ScrollBehavior) => void;
10
- handleChatScroll: () => void;
11
- handleChatResize: () => void;
12
- };
@@ -1,10 +0,0 @@
1
- type __VLS_Props = {
2
- bot?: boolean;
3
- username?: string;
4
- };
5
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
6
- bot: boolean;
7
- username: string;
8
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
9
- declare const _default: typeof __VLS_export;
10
- export default _default;