@webitel/ui-chats 0.0.2 → 0.0.4

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 (48) hide show
  1. package/package.json +61 -61
  2. package/src/locale/en/en.ts +8 -8
  3. package/src/ui/chat-container.vue +51 -42
  4. package/src/ui/chat-footer/components/chat-footer-wrapper.vue +2 -4
  5. package/src/ui/chat-footer/modules/user-input/components/actions/attach-files-action.vue +11 -13
  6. package/src/ui/chat-footer/modules/user-input/components/actions/emoji-picker-action.vue +6 -8
  7. package/src/ui/chat-footer/modules/user-input/components/actions/send-message-action.vue +5 -8
  8. package/src/ui/chat-footer/modules/user-input/components/chat-input-actions-bar.vue +34 -37
  9. package/src/ui/chat-footer/modules/user-input/components/chat-text-field.vue +22 -17
  10. package/src/ui/chat-footer/modules/user-input/types/ChatAction.types.ts +5 -5
  11. package/src/ui/index.ts +3 -2
  12. package/src/ui/messaging/components/chat-messages-container.vue +4 -4
  13. package/src/ui/messaging/composebles/useChatScroll.ts +102 -0
  14. package/src/ui/messaging/modules/message/components/chat-message.vue +51 -56
  15. package/src/ui/messaging/modules/message/components/details/chat-message-avatar.vue +21 -22
  16. package/src/ui/messaging/modules/message/components/details/chat-message-blocked-error.vue +1 -1
  17. package/src/ui/messaging/modules/message/components/details/chat-message-document.vue +22 -19
  18. package/src/ui/messaging/modules/message/components/details/chat-message-image.vue +8 -8
  19. package/src/ui/messaging/modules/message/components/details/chat-message-player.vue +14 -12
  20. package/src/ui/messaging/modules/message/components/details/chat-message-text.vue +12 -12
  21. package/src/ui/messaging/modules/message/components/details/chat-message-time.vue +11 -9
  22. package/src/ui/messaging/modules/message/composables/useChatMessageFile.ts +26 -26
  23. package/src/ui/messaging/types/ChatMessage.types.ts +45 -8
  24. package/src/ui/utils/ResultCallbacks.types.ts +1 -1
  25. package/src/ui/utils/emitter.ts +7 -5
  26. package/types/locale/en/en.d.ts +1 -1
  27. package/types/ui/chat-container.vue.d.ts +5 -5
  28. package/types/ui/chat-footer/modules/user-input/components/chat-input-actions-bar.vue.d.ts +1 -2
  29. package/types/ui/chat-footer/modules/user-input/components/chat-text-field.vue.d.ts +2 -2
  30. package/types/ui/chat-input/components/actions/attach-files-action.vue.d.ts +27 -5
  31. package/types/ui/chat-input/components/actions/emoji-picker-action.vue.d.ts +22 -1
  32. package/types/ui/chat-input/components/actions/send-message-action.vue.d.ts +27 -5
  33. package/types/ui/chat-input/components/chat-input-actions-bar.vue.d.ts +34 -12
  34. package/types/ui/chat-input/components/chat-input-actions-wrapper.vue.d.ts +26 -5
  35. package/types/ui/chat-input/components/chat-input.vue.d.ts +32 -10
  36. package/types/ui/chat-input/components/chat-text-field.vue.d.ts +28 -6
  37. package/types/ui/chat-input/enums/ChatAction.enum.d.ts +3 -3
  38. package/types/ui/index.d.ts +3 -2
  39. package/types/ui/messaging/components/chat-messages-container.vue.d.ts +1 -1
  40. package/types/ui/messaging/composebles/useChatScroll.d.ts +9 -0
  41. package/types/ui/messaging/modules/message/components/chat-message.vue.d.ts +5 -4
  42. package/types/ui/messaging/modules/message/components/details/chat-message-avatar.vue.d.ts +1 -1
  43. package/types/ui/messaging/modules/message/components/details/chat-message-document.vue.d.ts +1 -1
  44. package/types/ui/messaging/modules/message/components/details/chat-message-image.vue.d.ts +1 -1
  45. package/types/ui/messaging/modules/message/components/details/chat-message-player.vue.d.ts +3 -3
  46. package/types/ui/messaging/modules/message/composables/useChatMessageFile.d.ts +2 -2
  47. package/types/ui/messaging/types/ChatMessage.types.d.ts +34 -1
  48. package/types/ui/utils/ResultCallbacks.types.d.ts +1 -1
@@ -50,62 +50,57 @@
50
50
  </template>
51
51
 
52
52
  <script setup lang="ts">
53
-
54
- import { ComponentSize } from '@webitel/ui-sdk/enums';
55
- import {computed, defineEmits, defineProps, inject} from 'vue';
56
-
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';
65
-
66
- const props = withDefaults(defineProps<{
67
- message: object,
68
- showAvatar?: boolean,
69
- username?: string,
70
- }>(), {
71
- showAvatar: false,
72
- username: '',
73
- });
74
-
75
- const emit = defineEmits<{
76
- 'open-image': [],
77
- 'initialized-player': [object]
78
- }>();
79
-
80
- const size = inject<ComponentSize>('size');
81
-
82
- const {
83
- image,
84
- media,
85
- document,
86
- } = useChatMessageFile(props.message.file);
87
-
88
- const isSelfMessage = computed(() =>
89
- props.message.member?.self
90
- || props.message.member?.type === 'webitel'
91
- );
92
-
93
- const isBot = computed(() =>
94
- props.message.member?.type === 'bot'
95
- || (!props.message.member?.type && !props.message.channelId)
96
- );
97
-
98
- const isSelfSide = computed(() => isSelfMessage.value || isBot.value);
99
-
100
- const getClientUsername = computed(() => {
101
- return !isSelfSide.value ? props.username : ''; // need to show username avatar only for client
102
- });
103
-
104
- function handlePlayerInitialize(player) {
105
- emit('initialized-player', { player });
106
- };
107
-
108
- </script>
53
+ import type { ComponentSize } from "@webitel/ui-sdk/enums";
54
+ import { computed, defineEmits, defineProps, inject } from "vue";
55
+
56
+ import type { ChatMessageType } from "../../../types/ChatMessage.types";
57
+ import { useChatMessageFile } from "../composables/useChatMessageFile";
58
+
59
+ const props = withDefaults(
60
+ defineProps<{
61
+ message: ChatMessageType;
62
+ showAvatar?: boolean;
63
+ username?: string;
64
+ }>(),
65
+ {
66
+ showAvatar: false,
67
+ username: "",
68
+ },
69
+ );
70
+
71
+ const emit = defineEmits<{
72
+ "open-image": [];
73
+ "initialized-player": [
74
+ object,
75
+ ];
76
+ }>();
77
+
78
+ const _size = inject<ComponentSize>("size");
79
+
80
+ const { image, media, document } = useChatMessageFile(props.message.file);
81
+
82
+ const isSelfMessage = computed(
83
+ () => props.message.member?.self || props.message.member?.type === "webitel",
84
+ );
85
+
86
+ const isBot = computed(
87
+ () =>
88
+ props.message.member?.type === "bot" ||
89
+ (!props.message.member?.type && !props.message.channelId),
90
+ );
91
+
92
+ const isSelfSide = computed(() => isSelfMessage.value || isBot.value);
93
+
94
+ const _getClientUsername = computed(() => {
95
+ return !isSelfSide.value ? props.username : ""; // need to show username avatar only for client
96
+ });
97
+
98
+ function _handlePlayerInitialize(player) {
99
+ emit("initialized-player", {
100
+ player,
101
+ });
102
+ }
103
+ </script>
109
104
 
110
105
  <style scoped>
111
106
 
@@ -11,30 +11,29 @@
11
11
  </template>
12
12
 
13
13
  <script setup lang="ts">
14
- import { WtAvatar } from '@webitel/ui-sdk/components';
15
- import { ComponentSize } from '@webitel/ui-sdk/enums';
16
- import { computed, defineProps, inject } from 'vue';
17
-
18
- import botIcon from '../../../../../../assets/icons/bot.svg'
19
-
20
- const props = withDefaults(defineProps<{
21
- bot?: boolean,
22
- username?: string,
23
- }>(), {
24
- bot: false,
25
- username: '',
26
- });
27
-
28
- const injectedSize = inject<ComponentSize>('size');
29
-
30
- const size = computed(() => {
31
- return ComponentSize.SM || injectedSize; // todo: should injected size be considered?
14
+ import { ComponentSize } from "@webitel/ui-sdk/enums";
15
+ import { computed, defineProps, inject } from "vue";
16
+
17
+ import botIcon from "../../../../../../assets/icons/bot.svg";
18
+
19
+ const props = withDefaults(
20
+ defineProps<{
21
+ bot?: boolean;
22
+ username?: string;
23
+ }>(),
24
+ {
25
+ bot: false,
26
+ username: "",
27
+ },
28
+ );
29
+
30
+ const injectedSize = inject<ComponentSize>("size");
31
+
32
+ const _size = computed(() => {
33
+ return ComponentSize.SM || injectedSize; // todo: should injected size be considered?
32
34
  });
33
35
 
34
- const src = computed(() =>
35
- props.bot && botIcon
36
- )
37
-
36
+ const _src = computed(() => props.bot && botIcon);
38
37
  </script>
39
38
 
40
39
  <style lang="scss" scoped>
@@ -12,7 +12,7 @@
12
12
  </div>
13
13
  </template>
14
14
  <script setup>
15
- import { useI18n } from 'vue-i18n';
15
+ import { useI18n } from "vue-i18n";
16
16
 
17
17
  const { t } = useI18n();
18
18
  </script>
@@ -19,29 +19,32 @@
19
19
  </template>
20
20
 
21
21
  <script setup lang="ts">
22
- import { prettifyFileSize } from '@webitel/ui-sdk/scripts';
23
- import { computed, defineProps } from 'vue';
22
+ import { prettifyFileSize } from "@webitel/ui-sdk/scripts";
23
+ import { computed, defineProps } from "vue";
24
24
 
25
- import { ChatMessageFile } from '../../../../types/ChatMessage.types';
25
+ import type { ChatMessageFile } from "../../../../types/ChatMessage.types";
26
26
 
27
- const props = withDefaults(defineProps<{
28
- file: ChatMessageFile;
29
- selfSide?: boolean;
30
- }>(),{
31
- selfSide: false,
32
- });
33
- const documentSize = computed(() => {
34
- if (!props.file) return '';
35
- return prettifyFileSize(props.file.size);
27
+ const props = withDefaults(
28
+ defineProps<{
29
+ file: ChatMessageFile;
30
+ selfSide?: boolean;
31
+ }>(),
32
+ {
33
+ selfSide: false,
34
+ },
35
+ );
36
+ const _documentSize = computed(() => {
37
+ if (!props.file) return "";
38
+ return prettifyFileSize(props.file.size);
36
39
  });
37
40
 
38
- function downloadDocument() {
39
- if (!props.file) return;
40
- const a = document.createElement('a');
41
- a.href = props.file.url;
42
- a.target = '_blank';
43
- a.download = props.file.name;
44
- a.click();
41
+ function _downloadDocument() {
42
+ if (!props.file) return;
43
+ const a = document.createElement("a");
44
+ a.href = props.file.url;
45
+ a.target = "_blank";
46
+ a.download = props.file.name;
47
+ a.click();
45
48
  }
46
49
  </script>
47
50
 
@@ -11,18 +11,18 @@
11
11
 
12
12
 
13
13
  <script setup lang="ts">
14
+ import { defineEmits, defineProps } from "vue";
14
15
 
15
- import { defineEmits, defineProps } from 'vue';
16
+ import type { ChatMessageFile } from "../../../../types/ChatMessage.types";
16
17
 
17
- import { ChatMessageFile } from '../../../../types/ChatMessage.types';
18
-
19
- const props = defineProps<{
20
- file: ChatMessageFile,
18
+ const _props = defineProps<{
19
+ file: ChatMessageFile;
21
20
  }>();
22
- const emit = defineEmits<{
23
- open: [ChatMessageFile],
21
+ const _emit = defineEmits<{
22
+ open: [
23
+ ChatMessageFile,
24
+ ];
24
25
  }>();
25
-
26
26
  </script>
27
27
 
28
28
 
@@ -16,26 +16,28 @@
16
16
  </template>
17
17
 
18
18
  <script setup lang="ts">
19
+ import { computed, defineEmits, defineProps } from "vue";
19
20
 
20
- import { computed, defineEmits, defineProps } from 'vue';
21
-
22
- import { ChatMessageFile } from '../../../../types/ChatMessage.types';
21
+ import type { ChatMessageFile } from "../../../../types/ChatMessage.types";
23
22
 
24
23
  const props = defineProps<{
25
- file: ChatMessageFile,
26
- type: string,
24
+ file: ChatMessageFile;
25
+ type: string;
27
26
  }>();
28
27
  const emit = defineEmits<{
29
- open: [ChatMessageFile],
30
- initialized: [object],
28
+ open: [
29
+ ChatMessageFile,
30
+ ];
31
+ initialized: [
32
+ object,
33
+ ];
31
34
  }>();
32
35
 
33
- const mediaUrl = computed(() => props.file.streamUrl || props.file.url);
34
-
35
- function handlePlayerInitialize(player) {
36
- emit('initialized', player);
37
- };
36
+ const _mediaUrl = computed(() => props.file.streamUrl || props.file.url);
38
37
 
38
+ function _handlePlayerInitialize(player) {
39
+ emit("initialized", player);
40
+ }
39
41
  </script>
40
42
 
41
43
  <style lang="scss" scoped>
@@ -6,22 +6,22 @@
6
6
  </template>
7
7
 
8
8
  <script setup lang="ts">
9
- import Autolinker from 'autolinker';
10
- import {computed, defineProps} from 'vue';
9
+ import Autolinker from "autolinker";
10
+ import { computed, defineProps } from "vue";
11
11
 
12
12
  const props = defineProps<{
13
- text: string;
13
+ text: string;
14
14
  }>();
15
15
 
16
- const text = computed(() => {
17
- // ATTENTION: not all libs are suitable for this case, because we want to preserve "<" signs
18
- // https://my.webitel.com/browse/DEV-2848
19
- return Autolinker.link(props.text, {
20
- newWindow: true,
21
- sanitizeHtml: true, // DONT FORGET TO SANITIZE, OR USE DOM PURIFY
22
- className: 'chat-message-new-text__link',
23
- });
24
- })
16
+ const _text = computed(() => {
17
+ // ATTENTION: not all libs are suitable for this case, because we want to preserve "<" signs
18
+ // https://my.webitel.com/browse/DEV-2848
19
+ return Autolinker.link(props.text, {
20
+ newWindow: true,
21
+ sanitizeHtml: true, // DONT FORGET TO SANITIZE, OR USE DOM PURIFY
22
+ className: "chat-message-new-text__link",
23
+ });
24
+ });
25
25
  </script>
26
26
 
27
27
  <style lang="scss" scoped>
@@ -8,17 +8,19 @@
8
8
 
9
9
 
10
10
  <script setup lang="ts">
11
- import { prettifyTime } from '@webitel/ui-sdk/scripts';
12
- import { computed, defineProps } from 'vue';
11
+ import { prettifyTime } from "@webitel/ui-sdk/scripts";
12
+ import { computed, defineProps } from "vue";
13
13
 
14
+ const props = withDefaults(
15
+ defineProps<{
16
+ date?: string | number; // timestamp
17
+ }>(),
18
+ {
19
+ date: "",
20
+ },
21
+ );
14
22
 
15
- const props = withDefaults(defineProps<{
16
- date?: string | number // timestamp
17
- }>(), {
18
- date: '',
19
- });
20
-
21
- const time = computed(() => prettifyTime(props.date));
23
+ const _time = computed(() => prettifyTime(props.date));
22
24
  </script>
23
25
 
24
26
  <style lang="scss" scoped>
@@ -1,38 +1,38 @@
1
- import { computed, type Ref, toRef } from 'vue';
1
+ import { computed, type Ref, toRef } from "vue";
2
2
 
3
- import { ChatMessageFile } from '../../../types/ChatMessage.types';
3
+ import type { ChatMessageFile } from "../../../types/ChatMessage.types";
4
4
 
5
5
  export function useChatMessageFile(
6
- file: ChatMessageFile | Ref<ChatMessageFile>,
6
+ file: ChatMessageFile | Ref<ChatMessageFile>,
7
7
  ) {
8
- const fileRef = toRef(file);
8
+ const fileRef = toRef(file);
9
9
 
10
- const type = computed(() => {
11
- return fileRef.value?.mime;
12
- });
10
+ const type = computed(() => {
11
+ return fileRef.value?.mime;
12
+ });
13
13
 
14
- const image = computed(() => {
15
- const isImage = type.value?.includes('image');
16
- const isHEIC = type.value?.includes('heic');
14
+ const image = computed(() => {
15
+ const isImage = type.value?.includes("image");
16
+ const isHEIC = type.value?.includes("heic");
17
17
 
18
- if (isHEIC) return null;
18
+ if (isHEIC) return null;
19
19
 
20
- return isImage && fileRef.value; //https://webitel.atlassian.net/browse/WTEL-6268
21
- });
20
+ return isImage && fileRef.value; //https://webitel.atlassian.net/browse/WTEL-6268
21
+ });
22
22
 
23
- const media = computed(() => {
24
- const isMedia =
25
- type.value?.includes('audio') || type.value?.includes('video');
26
- return isMedia && fileRef.value;
27
- });
23
+ const media = computed(() => {
24
+ const isMedia =
25
+ type.value?.includes("audio") || type.value?.includes("video");
26
+ return isMedia && fileRef.value;
27
+ });
28
28
 
29
- const document = computed(() => {
30
- return !media.value && !image.value && fileRef.value;
31
- });
29
+ const document = computed(() => {
30
+ return !media.value && !image.value && fileRef.value;
31
+ });
32
32
 
33
- return {
34
- image,
35
- media,
36
- document,
37
- };
33
+ return {
34
+ image,
35
+ media,
36
+ document,
37
+ };
38
38
  }
@@ -1,12 +1,49 @@
1
- export type ChatMessageType = {
2
- id: string;
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;
13
+ }
14
+
15
+ export type ContactInfo = {
16
+ id: string;
17
+ name?: string;
3
18
  };
4
19
 
5
20
  export type ChatMessageFile = {
6
- id?: string;
7
- name?: string;
8
- size?: string;
9
- mime?: string;
10
- url?: string;
11
- streamUrl?: string;
21
+ id?: string;
22
+ name?: string;
23
+ size?: string;
24
+ mime?: string;
25
+ url?: string;
26
+ streamUrl?: string;
27
+ };
28
+
29
+ export type ChatMember = {
30
+ id: number;
31
+ name: string;
32
+ type: string;
33
+ userId?: number;
34
+ externalId?: string;
35
+ via?: ChatVia;
36
+ self?: boolean;
37
+ };
38
+
39
+ export type ChatMessageChatInfo = {
40
+ id: string;
41
+ via: ChatVia;
42
+ };
43
+
44
+ export type ChatVia = {
45
+ id: number;
46
+ name: string;
47
+ type: string;
48
+ messenger?: string;
12
49
  };
@@ -1 +1 @@
1
- export { ResultCallbacks } from '@webitel/ui-sdk/src/types';
1
+ export { ResultCallbacks } from "@webitel/ui-sdk/src/types";
@@ -1,12 +1,14 @@
1
1
  import mitt from "mitt";
2
2
 
3
3
  export type UiChatsEmitterEvents = {
4
- insertAtCursor: { text: string };
5
- focusOnTextField: undefined;
4
+ insertAtCursor: {
5
+ text: string;
6
+ };
7
+ focusOnTextField: undefined;
6
8
  };
7
9
 
8
10
  export const createUiChatsEmitter = () => {
9
- const uiChatsEmitter = mitt<UiChatsEmitterEvents>();
11
+ const uiChatsEmitter = mitt<UiChatsEmitterEvents>();
10
12
 
11
- return uiChatsEmitter;
12
- };
13
+ return uiChatsEmitter;
14
+ };
@@ -1,5 +1,5 @@
1
1
  declare const _default: {
2
- '@webitel/ui-chats': {
2
+ "@webitel/ui-chats": {
3
3
  ui: {
4
4
  messaging: {
5
5
  chatsFileBlocked: string;
@@ -1,7 +1,7 @@
1
- import { ComponentSize } from '@webitel/ui-sdk/enums';
2
- import { ResultCallbacks } from './utils/ResultCallbacks.types';
3
- import { ChatMessageType } from './messaging/types/ChatMessage.types';
4
- import { ChatAction, SharedActionSlots } from './chat-footer/modules/user-input/types/ChatAction.types';
1
+ import { ComponentSize } from "@webitel/ui-sdk/enums";
2
+ import { ChatAction, type SharedActionSlots } from "./chat-footer/modules/user-input/types/ChatAction.types";
3
+ import type { ChatMessageType } from "./messaging/types/ChatMessage.types";
4
+ import type { ResultCallbacks } from "./utils/ResultCallbacks.types";
5
5
  type __VLS_Props = {
6
6
  messages: ChatMessageType[];
7
7
  chatActions?: ChatAction[];
@@ -18,8 +18,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
18
18
  "onAction:sendMessage"?: (text: string, options: ResultCallbacks) => any;
19
19
  "onAction:attachFiles"?: (files: File[], options: ResultCallbacks) => any;
20
20
  }>, {
21
- size: ComponentSize;
22
21
  chatActions: ChatAction[];
22
+ size: ComponentSize;
23
23
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
24
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
25
25
  declare const _default: typeof __VLS_export;
@@ -1,5 +1,4 @@
1
- import { ChatAction } from '../types/ChatAction.types';
2
- import { SharedActionSlots } from '../types/ChatAction.types';
1
+ import { ChatAction, type SharedActionSlots } from "../types/ChatAction.types";
3
2
  type __VLS_Props = {
4
3
  actions: ChatAction[];
5
4
  };
@@ -1,6 +1,6 @@
1
- import { MaybeRef } from 'vue';
1
+ import { type MaybeRef } from "vue";
2
2
  type __VLS_ModelProps = {
3
- 'text': MaybeRef<string>;
3
+ "text": MaybeRef<string>;
4
4
  };
5
5
  declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
6
  "update:text": (value: MaybeRef<string>) => any;
@@ -1,7 +1,29 @@
1
- declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
2
- attachFiles: (files: File[]) => any;
3
- }, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
4
- onAttachFiles?: (files: File[]) => any;
5
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
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
+ >;
6
28
  declare const _default: typeof __VLS_export;
7
29
  export default _default;
@@ -1,3 +1,24 @@
1
- declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
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
+ >;
2
23
  declare const _default: typeof __VLS_export;
3
24
  export default _default;
@@ -1,7 +1,29 @@
1
- declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
2
- click: () => any;
3
- }, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
4
- onClick?: () => any;
5
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
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
+ >;
6
28
  declare const _default: typeof __VLS_export;
7
29
  export default _default;