@webitel/ui-chats 0.0.7 → 0.0.9

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 (25) hide show
  1. package/package.json +2 -2
  2. package/src/ui/chat-footer/components/chat-footer-wrapper.vue +1 -1
  3. package/src/ui/chat-footer/modules/user-input/components/actions/attach-files-action.vue +4 -3
  4. package/src/ui/chat-footer/modules/user-input/components/actions/emoji-picker-action.vue +3 -2
  5. package/src/ui/chat-footer/modules/user-input/components/actions/send-message-action.vue +2 -3
  6. package/src/ui/chat-footer/modules/user-input/components/chat-input-actions-bar.vue +4 -5
  7. package/src/ui/chat-footer/modules/user-input/components/chat-text-field.vue +5 -5
  8. package/src/ui/messaging/components/chat-date-divider.vue +1 -1
  9. package/src/ui/messaging/components/scroll-to-bottom-btn.vue +2 -2
  10. package/src/ui/messaging/components/the-chat-messages-container.vue +4 -1
  11. package/src/ui/messaging/composebles/useChatScroll.ts +1 -1
  12. package/src/ui/messaging/modules/message/components/chat-message.vue +13 -6
  13. package/src/ui/messaging/modules/message/components/details/chat-message-avatar.vue +3 -2
  14. package/src/ui/messaging/modules/message/components/details/chat-message-document.vue +2 -2
  15. package/src/ui/messaging/modules/message/components/details/chat-message-image.vue +2 -2
  16. package/src/ui/messaging/modules/message/components/details/chat-message-player.vue +2 -2
  17. package/src/ui/messaging/modules/message/components/details/chat-message-text.vue +1 -1
  18. package/src/ui/messaging/modules/message/components/details/chat-message-time.vue +1 -1
  19. package/src/ui/the-chat-container.vue +7 -3
  20. package/types/ui/chat-container.vue.d.ts +28 -8
  21. package/types/ui/messaging/components/chat-messages-container.vue.d.ts +6 -23
  22. package/types/ui/messaging/modules/message/components/chat-message.vue.d.ts +3 -3
  23. package/types/ui/messaging/modules/message/components/details/chat-message-avatar.vue.d.ts +1 -1
  24. package/types/ui/messaging/modules/message/components/details/chat-message-player.vue.d.ts +2 -2
  25. package/types/ui/the-chat-container.vue.d.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-chats",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "description": "Reusable Webitel Frontend Code for Chats UI",
5
5
  "workspaces": [
6
6
  "../../",
@@ -11,7 +11,7 @@
11
11
  "make-all": "npm version patch --git-tag-version false && (npm run lint:biome || true) && (npm run build:types || true) && npm run utils:publish",
12
12
  "build": "(npm run build:types || true)",
13
13
  "build:types": "vue-tsc -p ./tsconfig.build.json",
14
- "lint:biome": "biome check --write --unsafe",
14
+ "lint:biome": "biome check --write",
15
15
  "utils:publish": "npm publish --access public"
16
16
  },
17
17
  "dependencies": {
@@ -5,7 +5,7 @@
5
5
  </template>
6
6
 
7
7
  <script setup lang="ts">
8
- const _slots = defineSlots<{
8
+ const slots = defineSlots<{
9
9
  default: () => any;
10
10
  }>();
11
11
  </script>
@@ -17,18 +17,19 @@
17
17
  </template>
18
18
 
19
19
  <script setup lang="ts">
20
+ import { WtRoundedAction } from "@webitel/ui-sdk/components";
20
21
  import type { ComponentSize } from "@webitel/ui-sdk/enums";
21
22
  import { inject, useTemplateRef } from "vue";
22
23
  import { ChatAction } from "../../types/ChatAction.types";
23
24
 
24
- const _size = inject<ComponentSize>("size");
25
+ const size = inject<ComponentSize>("size");
25
26
 
26
27
  const emit =
27
28
  defineEmits<(e: typeof ChatAction.AttachFiles, files: File[]) => void>();
28
29
 
29
- const _attachFilesInputRef = useTemplateRef("attachFilesInput");
30
+ const attachFilesInputRef = useTemplateRef("attachFilesInput");
30
31
 
31
- const _handleAttachmentInputChange = (event: Event) => {
32
+ const handleAttachmentInputChange = (event: Event) => {
32
33
  const files = (event.target as HTMLInputElement).files;
33
34
  if (!files) return;
34
35
  emit(ChatAction.AttachFiles, Array.from(files) as File[]);
@@ -6,12 +6,13 @@
6
6
  </template>
7
7
 
8
8
  <script setup lang="ts">
9
+ import { WtChatEmoji } from "@webitel/ui-sdk/components";
9
10
  import type { ComponentSize } from "@webitel/ui-sdk/enums";
10
11
  import type { Emitter } from "mitt";
11
12
  import { inject } from "vue";
12
13
 
13
14
  import type { UiChatsEmitterEvents } from "../../../../../utils/emitter";
14
15
 
15
- const _size = inject<ComponentSize>("size");
16
- const _uiChatsEmitter = inject<Emitter<UiChatsEmitterEvents>>("uiChatsEmitter");
16
+ const size = inject<ComponentSize>("size");
17
+ const uiChatsEmitter = inject<Emitter<UiChatsEmitterEvents>>("uiChatsEmitter");
17
18
  </script>
@@ -12,10 +12,9 @@
12
12
  <script setup lang="ts">
13
13
  import type { ComponentSize } from "@webitel/ui-sdk/enums";
14
14
  import { inject } from "vue";
15
-
16
15
  import type { ChatAction } from "../../types/ChatAction.types";
17
16
 
18
- const _size = inject<ComponentSize>("size");
17
+ const size = inject<ComponentSize>("size");
19
18
 
20
- const _emit = defineEmits<(e: typeof ChatAction.SendMessage) => void>();
19
+ const emit = defineEmits<(e: typeof ChatAction.SendMessage) => void>();
21
20
  </script>
@@ -19,26 +19,25 @@
19
19
  <script setup lang="ts">
20
20
  import type { ComponentSize } from "@webitel/ui-sdk/enums";
21
21
  import { computed, inject } from "vue";
22
-
23
22
  import { ChatAction, type SharedActionSlots } from "../types/ChatAction.types";
24
23
  import AttachFilesAction from "./actions/attach-files-action.vue";
25
24
  import EmojiPickerAction from "./actions/emoji-picker-action.vue";
26
25
  import SendMessageAction from "./actions/send-message-action.vue";
27
26
 
28
- const _size = inject<ComponentSize>("size");
27
+ const size = inject<ComponentSize>("size");
29
28
 
30
29
  const props = defineProps<{
31
30
  actions: ChatAction[];
32
31
  }>();
33
32
 
34
- const _emit = defineEmits<{
33
+ const emit = defineEmits<{
35
34
  (e: typeof ChatAction.SendMessage): void;
36
35
  (e: typeof ChatAction.AttachFiles, files: File[]): void;
37
36
  }>();
38
37
 
39
- const _slots = defineSlots<SharedActionSlots>();
38
+ const slots = defineSlots<SharedActionSlots>();
40
39
 
41
- const _ShownActionComponentsList = computed(() => {
40
+ const ShownActionComponentsList = computed(() => {
42
41
  /**
43
42
  * note! actions order is declared here and cannot be changed from outside
44
43
  */
@@ -16,15 +16,15 @@ import { computed, inject, type MaybeRef, useTemplateRef } from "vue";
16
16
 
17
17
  import type { UiChatsEmitterEvents } from "../../../../utils/emitter";
18
18
 
19
- const _textModel = defineModel<MaybeRef<string>>("text", {
19
+ const textModel = defineModel<MaybeRef<string>>("text", {
20
20
  required: true,
21
21
  });
22
22
 
23
- const _size = inject<ComponentSize>("size");
23
+ const size = inject<ComponentSize>("size");
24
24
  const uiChatsEmitter = inject<Emitter<UiChatsEmitterEvents>>("uiChatsEmitter");
25
25
 
26
- uiChatsEmitter?.on("insertAtCursor", ({ text }) => insertAtCursor(text));
27
- uiChatsEmitter?.on("focusOnTextField", focus);
26
+ uiChatsEmitter!.on("insertAtCursor", ({ text }) => insertAtCursor(text));
27
+ uiChatsEmitter!.on("focusOnTextField", focus);
28
28
 
29
29
  const chatTextFieldInputRef =
30
30
  useTemplateRef<typeof WtTextarea>("chatTextFieldInput");
@@ -34,7 +34,7 @@ const textareaEl = computed(() =>
34
34
  );
35
35
 
36
36
  function focus() {
37
- textareaEl.value?.focus();
37
+ textareaEl.value!.focus();
38
38
  }
39
39
 
40
40
  function insertAtCursor(text: string) {
@@ -16,7 +16,7 @@ const props = defineProps<{
16
16
 
17
17
  const { t } = useI18n();
18
18
 
19
- const _formattedDate = computed<Date>(() => {
19
+ const formattedDate = computed<Date>(() => {
20
20
  const chatDate = formatDate(+props.date, FormatDateMode.DATE);
21
21
  const today = formatDate(Date.now(), FormatDateMode.DATE);
22
22
 
@@ -19,7 +19,7 @@
19
19
  <script setup lang="ts">
20
20
  import { defineEmits } from "vue";
21
21
 
22
- const _props = withDefaults(
22
+ const props = withDefaults(
23
23
  defineProps<{
24
24
  newMessageCount?: number;
25
25
  }>(),
@@ -28,7 +28,7 @@ const _props = withDefaults(
28
28
  },
29
29
  );
30
30
 
31
- const _emit = defineEmits<{
31
+ const emit = defineEmits<{
32
32
  scroll: [];
33
33
  }>();
34
34
  </script>
@@ -34,8 +34,11 @@ import { inject, useTemplateRef } from "vue";
34
34
 
35
35
  import type { UiChatsEmitterEvents } from "../../utils/emitter";
36
36
  import { useChatScroll } from "../composebles/useChatScroll";
37
+ import ChatMessage from "../modules/message/components/chat-message.vue";
37
38
  import { useChatMessages } from "../modules/message/composables/useChatMessage";
38
39
  import type { ChatMessageType } from "../types/ChatMessage.types";
40
+ import ChatDateDivider from "./chat-date-divider.vue";
41
+ import ScrollToBottomBtn from "./scroll-to-bottom-btn.vue";
39
42
 
40
43
  const uiChatsEmitter = inject<Emitter<UiChatsEmitterEvents>>("uiChatsEmitter");
41
44
 
@@ -61,7 +64,7 @@ const {
61
64
  handleChatResize,
62
65
  } = useChatScroll(messagesContainer, props.messages);
63
66
 
64
- function _focusOnInput() {
67
+ function focusOnInput() {
65
68
  uiChatsEmitter?.on("focusOnTextField", focus);
66
69
  }
67
70
  </script>
@@ -1,5 +1,5 @@
1
1
  import { useScroll } from "@vueuse/core";
2
- import { computed, type Ref, ref, watch } from "vue";
2
+ import { type ComputedRef, computed, type Ref, ref, watch } from "vue";
3
3
 
4
4
  import type { ChatMessageType } from "../types/ChatMessage.types";
5
5
 
@@ -55,6 +55,13 @@ import { computed, defineEmits, defineProps, inject } from "vue";
55
55
 
56
56
  import type { ChatMessageType } from "../../../types/ChatMessage.types";
57
57
  import { useChatMessageFile } from "../composables/useChatMessageFile";
58
+ import MessageAvatar from "./details/chat-message-avatar.vue";
59
+ import MessageBlockedError from "./details/chat-message-blocked-error.vue";
60
+ import MessageDocument from "./details/chat-message-document.vue";
61
+ import MessageImage from "./details/chat-message-image.vue";
62
+ import MessagePlayer from "./details/chat-message-player.vue";
63
+ import MessageText from "./details/chat-message-text.vue";
64
+ import MessageTime from "./details/chat-message-time.vue";
58
65
 
59
66
  const props = withDefaults(
60
67
  defineProps<{
@@ -75,27 +82,27 @@ const emit = defineEmits<{
75
82
  ];
76
83
  }>();
77
84
 
78
- const _size = inject<ComponentSize>("size");
85
+ const size = inject<ComponentSize>("size");
79
86
 
80
87
  const { image, media, document } = useChatMessageFile(props.message.file);
81
88
 
82
- const isSelfMessage = computed(
89
+ const isSelfMessage = computed<boolean>(
83
90
  () => props.message.member?.self || props.message.member?.type === "webitel",
84
91
  );
85
92
 
86
- const isBot = computed(
93
+ const isBot = computed<boolean>(
87
94
  () =>
88
95
  props.message.member?.type === "bot" ||
89
96
  (!props.message.member?.type && !props.message.channelId),
90
97
  );
91
98
 
92
- const isSelfSide = computed(() => isSelfMessage.value || isBot.value);
99
+ const isSelfSide = computed<boolean>(() => isSelfMessage.value || isBot.value);
93
100
 
94
- const _getClientUsername = computed(() => {
101
+ const getClientUsername = computed<string>(() => {
95
102
  return !isSelfSide.value ? props.username : ""; // need to show username avatar only for client
96
103
  });
97
104
 
98
- function _handlePlayerInitialize(player) {
105
+ function handlePlayerInitialize(player) {
99
106
  emit("initialized-player", {
100
107
  player,
101
108
  });
@@ -11,6 +11,7 @@
11
11
  </template>
12
12
 
13
13
  <script setup lang="ts">
14
+ import { WtAvatar } from "@webitel/ui-sdk/components";
14
15
  import { ComponentSize } from "@webitel/ui-sdk/enums";
15
16
  import { computed, defineProps, inject } from "vue";
16
17
 
@@ -29,11 +30,11 @@ const props = withDefaults(
29
30
 
30
31
  const injectedSize = inject<ComponentSize>("size");
31
32
 
32
- const _size = computed(() => {
33
+ const size = computed(() => {
33
34
  return ComponentSize.SM || injectedSize; // todo: should injected size be considered?
34
35
  });
35
36
 
36
- const _src = computed(() => props.bot && botIcon);
37
+ const src = computed(() => props.bot && botIcon);
37
38
  </script>
38
39
 
39
40
  <style lang="scss" scoped>
@@ -33,12 +33,12 @@ const props = withDefaults(
33
33
  selfSide: false,
34
34
  },
35
35
  );
36
- const _documentSize = computed(() => {
36
+ const documentSize = computed(() => {
37
37
  if (!props.file) return "";
38
38
  return prettifyFileSize(props.file.size);
39
39
  });
40
40
 
41
- function _downloadDocument() {
41
+ function downloadDocument() {
42
42
  if (!props.file) return;
43
43
  const a = document.createElement("a");
44
44
  a.href = props.file.url;
@@ -15,10 +15,10 @@ import { defineEmits, defineProps } from "vue";
15
15
 
16
16
  import type { ChatMessageFile } from "../../../../types/ChatMessage.types";
17
17
 
18
- const _props = defineProps<{
18
+ const props = defineProps<{
19
19
  file: ChatMessageFile;
20
20
  }>();
21
- const _emit = defineEmits<{
21
+ const emit = defineEmits<{
22
22
  open: [
23
23
  ChatMessageFile,
24
24
  ];
@@ -33,9 +33,9 @@ const emit = defineEmits<{
33
33
  ];
34
34
  }>();
35
35
 
36
- const _mediaUrl = computed(() => props.file.streamUrl || props.file.url);
36
+ const mediaUrl = computed(() => props.file.streamUrl || props.file.url);
37
37
 
38
- function _handlePlayerInitialize(player) {
38
+ function handlePlayerInitialize(player) {
39
39
  emit("initialized", player);
40
40
  }
41
41
  </script>
@@ -13,7 +13,7 @@ const props = defineProps<{
13
13
  text: string;
14
14
  }>();
15
15
 
16
- const _text = computed(() => {
16
+ const text = computed(() => {
17
17
  // ATTENTION: not all libs are suitable for this case, because we want to preserve "<" signs
18
18
  // https://my.webitel.com/browse/DEV-2848
19
19
  return Autolinker.link(props.text, {
@@ -20,7 +20,7 @@ const props = withDefaults(
20
20
  },
21
21
  );
22
22
 
23
- const _time = computed(() => prettifyTime(props.date));
23
+ const time = computed(() => prettifyTime(props.date));
24
24
  </script>
25
25
 
26
26
  <style lang="scss" scoped>
@@ -41,10 +41,14 @@
41
41
  import { ComponentSize } from "@webitel/ui-sdk/enums";
42
42
  import { computed, provide, ref } from "vue";
43
43
 
44
+ import ChatFooterWrapper from "./chat-footer/components/chat-footer-wrapper.vue";
45
+ import ChatInputActionsBar from "./chat-footer/modules/user-input/components/chat-input-actions-bar.vue";
46
+ import ChatTextField from "./chat-footer/modules/user-input/components/chat-text-field.vue";
44
47
  import {
45
48
  ChatAction,
46
49
  type SharedActionSlots,
47
50
  } from "./chat-footer/modules/user-input/types/ChatAction.types";
51
+ import ChatMessagesContainer from "./messaging/components/the-chat-messages-container.vue";
48
52
  import type { ChatMessageType } from "./messaging/types/ChatMessage.types";
49
53
  import { createUiChatsEmitter } from "./utils/emitter";
50
54
  import type { ResultCallbacks } from "./utils/ResultCallbacks.types";
@@ -92,19 +96,19 @@ provide("uiChatsEmitter", uiChatsEmitter);
92
96
 
93
97
  const draft = ref<string>("");
94
98
 
95
- const _slottedChatActions = computed(() => {
99
+ const slottedChatActions = computed(() => {
96
100
  return Object.keys(slots)
97
101
  .filter((key) => key.startsWith("action:"))
98
102
  .map((key) => key.replace("action:", ""));
99
103
  });
100
104
 
101
- function _sendMessage() {
105
+ function sendMessage() {
102
106
  emit(`action:${ChatAction.SendMessage}`, draft.value, {
103
107
  onSuccess: () => (draft.value = ""),
104
108
  });
105
109
  }
106
110
 
107
- function _sendFile(files: File[]) {
111
+ function sendFile(files: File[]) {
108
112
  emit(`action:${ChatAction.AttachFiles}`, files, {});
109
113
  }
110
114
  </script>
@@ -1,3 +1,4 @@
1
+ <<<<<<< HEAD
1
2
  import { ComponentSize } from "@webitel/ui-sdk/enums";
2
3
  import {
3
4
  ChatAction,
@@ -5,15 +6,22 @@ import {
5
6
  } from "./chat-footer/modules/user-input/types/ChatAction.types";
6
7
  import type { ChatMessageType } from "./messaging/types/ChatMessage.types";
7
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)
8
15
  type __VLS_Props = {
9
- messages: ChatMessageType[];
10
- chatActions?: ChatAction[];
11
- size?: ComponentSize;
16
+ messages: ChatMessageType[];
17
+ chatActions?: ChatAction[];
18
+ size?: ComponentSize;
12
19
  };
13
20
  type __VLS_Slots = {
14
- main: () => any;
15
- footer: () => any;
21
+ main: () => any;
22
+ footer: () => any;
16
23
  } & SharedActionSlots;
24
+ <<<<<<< HEAD
17
25
  declare const __VLS_base: import("vue").DefineComponent<
18
26
  __VLS_Props,
19
27
  {},
@@ -46,11 +54,23 @@ declare const __VLS_base: import("vue").DefineComponent<
46
54
  {},
47
55
  any
48
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)
49
69
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
50
70
  declare const _default: typeof __VLS_export;
51
71
  export default _default;
52
72
  type __VLS_WithSlots<T, S> = T & {
53
- new (): {
54
- $slots: S;
55
- };
73
+ new (): {
74
+ $slots: S;
75
+ };
56
76
  };
@@ -1,28 +1,11 @@
1
+ <<<<<<< HEAD
1
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)
2
6
  type __VLS_Props = {
3
- messages: ChatMessageType[];
7
+ messages: ChatMessageType[];
4
8
  };
5
- declare const __VLS_export: import("vue").DefineComponent<
6
- __VLS_Props,
7
- {},
8
- {},
9
- {},
10
- {},
11
- import("vue").ComponentOptionsMixin,
12
- import("vue").ComponentOptionsMixin,
13
- {},
14
- string,
15
- import("vue").PublicProps,
16
- Readonly<__VLS_Props> & Readonly<{}>,
17
- {},
18
- {},
19
- {},
20
- {},
21
- string,
22
- import("vue").ComponentProvideOptions,
23
- false,
24
- {},
25
- any
26
- >;
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>;
27
10
  declare const _default: typeof __VLS_export;
28
11
  export default _default;
@@ -4,11 +4,11 @@ type __VLS_Props = {
4
4
  showAvatar?: boolean;
5
5
  username?: string;
6
6
  };
7
- declare var __VLS_1: {}, __VLS_51: {};
7
+ declare var __VLS_1: {}, __VLS_44: {};
8
8
  type __VLS_Slots = {} & {
9
9
  'before-message'?: (props: typeof __VLS_1) => any;
10
10
  } & {
11
- 'after-message'?: (props: typeof __VLS_51) => any;
11
+ 'after-message'?: (props: typeof __VLS_44) => any;
12
12
  };
13
13
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
14
  "open-image": () => any;
@@ -17,8 +17,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
17
17
  "onOpen-image"?: () => any;
18
18
  "onInitialized-player"?: (args_0: object) => any;
19
19
  }>, {
20
- showAvatar: boolean;
21
20
  username: string;
21
+ showAvatar: boolean;
22
22
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
23
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
24
24
  declare const _default: typeof __VLS_export;
@@ -3,8 +3,8 @@ type __VLS_Props = {
3
3
  username?: string;
4
4
  };
5
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
- username: string;
7
6
  bot: boolean;
7
+ username: string;
8
8
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
9
9
  declare const _default: typeof __VLS_export;
10
10
  export default _default;
@@ -4,11 +4,11 @@ type __VLS_Props = {
4
4
  type: string;
5
5
  };
6
6
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
- initialized: (args_0: object) => any;
8
7
  open: (args_0: ChatMessageFile) => any;
8
+ initialized: (args_0: object) => any;
9
9
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
10
- onInitialized?: (args_0: object) => any;
11
10
  onOpen?: (args_0: ChatMessageFile) => any;
11
+ onInitialized?: (args_0: object) => any;
12
12
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
13
  declare const _default: typeof __VLS_export;
14
14
  export default _default;
@@ -19,9 +19,9 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
19
19
  "onAction:sendMessage"?: (text: string, options: ResultCallbacks) => any;
20
20
  "onAction:attachFiles"?: (files: File[], options: ResultCallbacks) => any;
21
21
  }>, {
22
- chatActions: ChatAction[];
23
22
  size: ComponentSize;
24
23
  hideAvatars: boolean;
24
+ chatActions: ChatAction[];
25
25
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
26
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
27
27
  declare const _default: typeof __VLS_export;