@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.
- package/package.json +61 -61
- package/src/locale/en/en.ts +8 -8
- package/src/ui/chat-container.vue +51 -42
- package/src/ui/chat-footer/components/chat-footer-wrapper.vue +2 -4
- package/src/ui/chat-footer/modules/user-input/components/actions/attach-files-action.vue +11 -13
- package/src/ui/chat-footer/modules/user-input/components/actions/emoji-picker-action.vue +6 -8
- package/src/ui/chat-footer/modules/user-input/components/actions/send-message-action.vue +5 -8
- package/src/ui/chat-footer/modules/user-input/components/chat-input-actions-bar.vue +34 -37
- package/src/ui/chat-footer/modules/user-input/components/chat-text-field.vue +22 -17
- package/src/ui/chat-footer/modules/user-input/types/ChatAction.types.ts +5 -5
- package/src/ui/index.ts +3 -2
- package/src/ui/messaging/components/chat-messages-container.vue +4 -4
- package/src/ui/messaging/composebles/useChatScroll.ts +102 -0
- package/src/ui/messaging/modules/message/components/chat-message.vue +51 -56
- package/src/ui/messaging/modules/message/components/details/chat-message-avatar.vue +21 -22
- package/src/ui/messaging/modules/message/components/details/chat-message-blocked-error.vue +1 -1
- package/src/ui/messaging/modules/message/components/details/chat-message-document.vue +22 -19
- package/src/ui/messaging/modules/message/components/details/chat-message-image.vue +8 -8
- package/src/ui/messaging/modules/message/components/details/chat-message-player.vue +14 -12
- package/src/ui/messaging/modules/message/components/details/chat-message-text.vue +12 -12
- package/src/ui/messaging/modules/message/components/details/chat-message-time.vue +11 -9
- package/src/ui/messaging/modules/message/composables/useChatMessageFile.ts +26 -26
- package/src/ui/messaging/types/ChatMessage.types.ts +45 -8
- package/src/ui/utils/ResultCallbacks.types.ts +1 -1
- package/src/ui/utils/emitter.ts +7 -5
- package/types/locale/en/en.d.ts +1 -1
- package/types/ui/chat-container.vue.d.ts +5 -5
- package/types/ui/chat-footer/modules/user-input/components/chat-input-actions-bar.vue.d.ts +1 -2
- package/types/ui/chat-footer/modules/user-input/components/chat-text-field.vue.d.ts +2 -2
- package/types/ui/chat-input/components/actions/attach-files-action.vue.d.ts +27 -5
- package/types/ui/chat-input/components/actions/emoji-picker-action.vue.d.ts +22 -1
- package/types/ui/chat-input/components/actions/send-message-action.vue.d.ts +27 -5
- package/types/ui/chat-input/components/chat-input-actions-bar.vue.d.ts +34 -12
- package/types/ui/chat-input/components/chat-input-actions-wrapper.vue.d.ts +26 -5
- package/types/ui/chat-input/components/chat-input.vue.d.ts +32 -10
- package/types/ui/chat-input/components/chat-text-field.vue.d.ts +28 -6
- package/types/ui/chat-input/enums/ChatAction.enum.d.ts +3 -3
- package/types/ui/index.d.ts +3 -2
- package/types/ui/messaging/components/chat-messages-container.vue.d.ts +1 -1
- package/types/ui/messaging/composebles/useChatScroll.d.ts +9 -0
- package/types/ui/messaging/modules/message/components/chat-message.vue.d.ts +5 -4
- package/types/ui/messaging/modules/message/components/details/chat-message-avatar.vue.d.ts +1 -1
- package/types/ui/messaging/modules/message/components/details/chat-message-document.vue.d.ts +1 -1
- package/types/ui/messaging/modules/message/components/details/chat-message-image.vue.d.ts +1 -1
- package/types/ui/messaging/modules/message/components/details/chat-message-player.vue.d.ts +3 -3
- package/types/ui/messaging/modules/message/composables/useChatMessageFile.d.ts +2 -2
- package/types/ui/messaging/types/ChatMessage.types.d.ts +34 -1
- 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
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
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 {
|
|
15
|
-
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}>(),
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
const
|
|
31
|
-
|
|
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
|
|
35
|
-
props.bot && botIcon
|
|
36
|
-
)
|
|
37
|
-
|
|
36
|
+
const _src = computed(() => props.bot && botIcon);
|
|
38
37
|
</script>
|
|
39
38
|
|
|
40
39
|
<style lang="scss" scoped>
|
|
@@ -19,29 +19,32 @@
|
|
|
19
19
|
</template>
|
|
20
20
|
|
|
21
21
|
<script setup lang="ts">
|
|
22
|
-
import { prettifyFileSize } from
|
|
23
|
-
import { computed, defineProps } from
|
|
22
|
+
import { prettifyFileSize } from "@webitel/ui-sdk/scripts";
|
|
23
|
+
import { computed, defineProps } from "vue";
|
|
24
24
|
|
|
25
|
-
import { ChatMessageFile } from
|
|
25
|
+
import type { ChatMessageFile } from "../../../../types/ChatMessage.types";
|
|
26
26
|
|
|
27
|
-
const props = withDefaults(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
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 {
|
|
16
|
+
import type { ChatMessageFile } from "../../../../types/ChatMessage.types";
|
|
16
17
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const props = defineProps<{
|
|
20
|
-
file: ChatMessageFile,
|
|
18
|
+
const _props = defineProps<{
|
|
19
|
+
file: ChatMessageFile;
|
|
21
20
|
}>();
|
|
22
|
-
const
|
|
23
|
-
|
|
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 {
|
|
21
|
-
|
|
22
|
-
import { ChatMessageFile } from '../../../../types/ChatMessage.types';
|
|
21
|
+
import type { ChatMessageFile } from "../../../../types/ChatMessage.types";
|
|
23
22
|
|
|
24
23
|
const props = defineProps<{
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
file: ChatMessageFile;
|
|
25
|
+
type: string;
|
|
27
26
|
}>();
|
|
28
27
|
const emit = defineEmits<{
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
open: [
|
|
29
|
+
ChatMessageFile,
|
|
30
|
+
];
|
|
31
|
+
initialized: [
|
|
32
|
+
object,
|
|
33
|
+
];
|
|
31
34
|
}>();
|
|
32
35
|
|
|
33
|
-
const
|
|
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
|
|
10
|
-
import {computed, defineProps} from
|
|
9
|
+
import Autolinker from "autolinker";
|
|
10
|
+
import { computed, defineProps } from "vue";
|
|
11
11
|
|
|
12
12
|
const props = defineProps<{
|
|
13
|
-
|
|
13
|
+
text: string;
|
|
14
14
|
}>();
|
|
15
15
|
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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
|
|
12
|
-
import { computed, defineProps } from
|
|
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
|
|
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
|
|
1
|
+
import { computed, type Ref, toRef } from "vue";
|
|
2
2
|
|
|
3
|
-
import { ChatMessageFile } from
|
|
3
|
+
import type { ChatMessageFile } from "../../../types/ChatMessage.types";
|
|
4
4
|
|
|
5
5
|
export function useChatMessageFile(
|
|
6
|
-
|
|
6
|
+
file: ChatMessageFile | Ref<ChatMessageFile>,
|
|
7
7
|
) {
|
|
8
|
-
|
|
8
|
+
const fileRef = toRef(file);
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
const type = computed(() => {
|
|
11
|
+
return fileRef.value?.mime;
|
|
12
|
+
});
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
const image = computed(() => {
|
|
15
|
+
const isImage = type.value?.includes("image");
|
|
16
|
+
const isHEIC = type.value?.includes("heic");
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
if (isHEIC) return null;
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
return isImage && fileRef.value; //https://webitel.atlassian.net/browse/WTEL-6268
|
|
21
|
+
});
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
const document = computed(() => {
|
|
30
|
+
return !media.value && !image.value && fileRef.value;
|
|
31
|
+
});
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
return {
|
|
34
|
+
image,
|
|
35
|
+
media,
|
|
36
|
+
document,
|
|
37
|
+
};
|
|
38
38
|
}
|
|
@@ -1,12 +1,49 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
|
1
|
+
export { ResultCallbacks } from "@webitel/ui-sdk/src/types";
|
package/src/ui/utils/emitter.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import mitt from "mitt";
|
|
2
2
|
|
|
3
3
|
export type UiChatsEmitterEvents = {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
insertAtCursor: {
|
|
5
|
+
text: string;
|
|
6
|
+
};
|
|
7
|
+
focusOnTextField: undefined;
|
|
6
8
|
};
|
|
7
9
|
|
|
8
10
|
export const createUiChatsEmitter = () => {
|
|
9
|
-
|
|
11
|
+
const uiChatsEmitter = mitt<UiChatsEmitterEvents>();
|
|
10
12
|
|
|
11
|
-
|
|
12
|
-
};
|
|
13
|
+
return uiChatsEmitter;
|
|
14
|
+
};
|
package/types/locale/en/en.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ComponentSize } from
|
|
2
|
-
import {
|
|
3
|
-
import { ChatMessageType } from
|
|
4
|
-
import {
|
|
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,6 +1,6 @@
|
|
|
1
|
-
import { MaybeRef } from
|
|
1
|
+
import { type MaybeRef } from "vue";
|
|
2
2
|
type __VLS_ModelProps = {
|
|
3
|
-
|
|
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<
|
|
2
|
-
|
|
3
|
-
},
|
|
4
|
-
|
|
5
|
-
|
|
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<
|
|
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<
|
|
2
|
-
|
|
3
|
-
},
|
|
4
|
-
|
|
5
|
-
|
|
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;
|