@bcc-code/vue-bcc-chat-ui 7.0.34 → 7.0.36
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/dist/index.d.ts +38 -493
- package/dist/style.css +3 -1
- package/dist/vue-bcc-chat-ui.js +9486 -10774
- package/dist/vue-bcc-chat-ui.js.map +1 -1
- package/package.json +19 -18
package/dist/index.d.ts
CHANGED
|
@@ -3,254 +3,34 @@ import { BaseMessage } from '@cometchat/chat-sdk-javascript';
|
|
|
3
3
|
import { ComponentOptionsMixin } from 'vue';
|
|
4
4
|
import { ComponentProvideOptions } from 'vue';
|
|
5
5
|
import { ComputedRef } from 'vue';
|
|
6
|
-
import { CreateComponentPublicInstanceWithMixins } from 'vue';
|
|
7
6
|
import { DefineComponent } from 'vue';
|
|
8
|
-
import { GlobalComponents } from 'vue';
|
|
9
|
-
import { GlobalDirectives } from 'vue';
|
|
10
7
|
import { Group } from '@cometchat/chat-sdk-javascript';
|
|
11
8
|
import { MessageReceipt } from '@cometchat/chat-sdk-javascript';
|
|
12
9
|
import { PublicProps } from 'vue';
|
|
13
10
|
import { Ref } from 'vue';
|
|
14
11
|
import { WritableComputedRef } from 'vue';
|
|
15
12
|
|
|
16
|
-
declare const
|
|
17
|
-
scrollToMessage: typeof scrollToMessage_2;
|
|
13
|
+
declare const __VLS_base: DefineComponent<__VLS_Props, {
|
|
14
|
+
scrollToMessage: typeof scrollToMessage_2;
|
|
18
15
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
19
|
-
chatMembersFetched: (members: ParticipantInfo[]) => any;
|
|
20
|
-
chatEmpty: () => any;
|
|
21
|
-
linkClicked: (event: MouseEvent, url: string) => any;
|
|
16
|
+
chatMembersFetched: (members: ParticipantInfo[]) => any;
|
|
17
|
+
chatEmpty: () => any;
|
|
18
|
+
linkClicked: (event: MouseEvent, url: string) => any;
|
|
22
19
|
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
23
|
-
onChatMembersFetched?: ((members: ParticipantInfo[]) => any) | undefined;
|
|
24
|
-
onChatEmpty?: (() => any) | undefined;
|
|
25
|
-
onLinkClicked?: ((event: MouseEvent, url: string) => any) | undefined;
|
|
20
|
+
onChatMembersFetched?: ((members: ParticipantInfo[]) => any) | undefined;
|
|
21
|
+
onChatEmpty?: (() => any) | undefined;
|
|
22
|
+
onLinkClicked?: ((event: MouseEvent, url: string) => any) | undefined;
|
|
26
23
|
}>, {
|
|
27
|
-
client: ChatClient | null;
|
|
28
|
-
initialScheduledMessagesOpen: boolean;
|
|
29
|
-
chatUid: string;
|
|
30
|
-
hideDeletedMessages: boolean;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}> & Readonly<{}>, {
|
|
38
|
-
focusEditor: () => Promise<void>;
|
|
39
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
40
|
-
composerRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
41
|
-
modelValue: string;
|
|
42
|
-
disabled: boolean;
|
|
43
|
-
resetSignal: number;
|
|
44
|
-
showScheduledButton?: boolean;
|
|
45
|
-
replyToMessage?: ChatMessageItem | null;
|
|
46
|
-
editingMessage?: ChatMessageItem | null;
|
|
47
|
-
contextLabel?: string;
|
|
48
|
-
offlineMode?: boolean;
|
|
49
|
-
pendingQueueCount?: number;
|
|
50
|
-
compact?: boolean;
|
|
51
|
-
}> & Readonly<{
|
|
52
|
-
onScheduleMessage?: ((input: ScheduleMessageInput) => any) | undefined;
|
|
53
|
-
onSendAttachment?: ((input: AttachmentUploadInput) => any) | undefined;
|
|
54
|
-
onSendPoll?: ((input: PollComposerInput) => any) | undefined;
|
|
55
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
56
|
-
onSendText?: (() => any) | undefined;
|
|
57
|
-
onOpenScheduled?: (() => any) | undefined;
|
|
58
|
-
onCancelReply?: (() => any) | undefined;
|
|
59
|
-
onCancelEdit?: (() => any) | undefined;
|
|
60
|
-
}>, {
|
|
61
|
-
focusEditor: () => Promise<void>;
|
|
62
|
-
hideComposerActions: () => void;
|
|
63
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
64
|
-
scheduleMessage: (input: ScheduleMessageInput) => any;
|
|
65
|
-
sendAttachment: (input: AttachmentUploadInput) => any;
|
|
66
|
-
sendPoll: (input: PollComposerInput) => any;
|
|
67
|
-
"update:modelValue": (value: string) => any;
|
|
68
|
-
sendText: () => any;
|
|
69
|
-
openScheduled: () => any;
|
|
70
|
-
cancelReply: () => any;
|
|
71
|
-
cancelEdit: () => any;
|
|
72
|
-
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
73
|
-
fileInputRef: HTMLInputElement;
|
|
74
|
-
composerShellRef: HTMLDivElement;
|
|
75
|
-
composerActionsRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
76
|
-
onPickFile?: ((kind: "image" | "video" | "audio" | "file") => any) | undefined;
|
|
77
|
-
onOpenPoll?: (() => any) | undefined;
|
|
78
|
-
}>, {
|
|
79
|
-
toggle: (_event?: Event) => void;
|
|
80
|
-
hide: () => void;
|
|
81
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
82
|
-
pickFile: (kind: "image" | "video" | "audio" | "file") => any;
|
|
83
|
-
openPoll: () => any;
|
|
84
|
-
}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
85
|
-
menuRef: HTMLDivElement;
|
|
86
|
-
}, HTMLDivElement, ComponentProvideOptions, {
|
|
87
|
-
P: {};
|
|
88
|
-
B: {};
|
|
89
|
-
D: {};
|
|
90
|
-
C: {};
|
|
91
|
-
M: {};
|
|
92
|
-
Defaults: {};
|
|
93
|
-
}, Readonly<{}> & Readonly<{
|
|
94
|
-
onPickFile?: ((kind: "image" | "video" | "audio" | "file") => any) | undefined;
|
|
95
|
-
onOpenPoll?: (() => any) | undefined;
|
|
96
|
-
}>, {
|
|
97
|
-
toggle: (_event?: Event) => void;
|
|
98
|
-
hide: () => void;
|
|
99
|
-
}, {}, {}, {}, {}> | null;
|
|
100
|
-
composerEditorRef: HTMLDivElement;
|
|
101
|
-
}, HTMLDivElement, ComponentProvideOptions, {
|
|
102
|
-
P: {};
|
|
103
|
-
B: {};
|
|
104
|
-
D: {};
|
|
105
|
-
C: {};
|
|
106
|
-
M: {};
|
|
107
|
-
Defaults: {};
|
|
108
|
-
}, Readonly<{
|
|
109
|
-
modelValue: string;
|
|
110
|
-
disabled: boolean;
|
|
111
|
-
resetSignal: number;
|
|
112
|
-
showScheduledButton?: boolean;
|
|
113
|
-
replyToMessage?: ChatMessageItem | null;
|
|
114
|
-
editingMessage?: ChatMessageItem | null;
|
|
115
|
-
contextLabel?: string;
|
|
116
|
-
offlineMode?: boolean;
|
|
117
|
-
pendingQueueCount?: number;
|
|
118
|
-
compact?: boolean;
|
|
119
|
-
}> & Readonly<{
|
|
120
|
-
onScheduleMessage?: ((input: ScheduleMessageInput) => any) | undefined;
|
|
121
|
-
onSendAttachment?: ((input: AttachmentUploadInput) => any) | undefined;
|
|
122
|
-
onSendPoll?: ((input: PollComposerInput) => any) | undefined;
|
|
123
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
124
|
-
onSendText?: (() => any) | undefined;
|
|
125
|
-
onOpenScheduled?: (() => any) | undefined;
|
|
126
|
-
onCancelReply?: (() => any) | undefined;
|
|
127
|
-
onCancelEdit?: (() => any) | undefined;
|
|
128
|
-
}>, {
|
|
129
|
-
focusEditor: () => Promise<void>;
|
|
130
|
-
hideComposerActions: () => void;
|
|
131
|
-
}, {}, {}, {}, {}> | null;
|
|
132
|
-
}, any, ComponentProvideOptions, {
|
|
133
|
-
P: {};
|
|
134
|
-
B: {};
|
|
135
|
-
D: {};
|
|
136
|
-
C: {};
|
|
137
|
-
M: {};
|
|
138
|
-
Defaults: {};
|
|
139
|
-
}, Readonly<{
|
|
140
|
-
target: ChatTarget;
|
|
141
|
-
}> & Readonly<{}>, {
|
|
142
|
-
focusEditor: () => Promise<void>;
|
|
143
|
-
}, {}, {}, {}, {}> | null;
|
|
144
|
-
threadComposerRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
145
|
-
target: ChatTarget;
|
|
146
|
-
}> & Readonly<{}>, {
|
|
147
|
-
focusEditor: () => Promise<void>;
|
|
148
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
149
|
-
composerRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
150
|
-
modelValue: string;
|
|
151
|
-
disabled: boolean;
|
|
152
|
-
resetSignal: number;
|
|
153
|
-
showScheduledButton?: boolean;
|
|
154
|
-
replyToMessage?: ChatMessageItem | null;
|
|
155
|
-
editingMessage?: ChatMessageItem | null;
|
|
156
|
-
contextLabel?: string;
|
|
157
|
-
offlineMode?: boolean;
|
|
158
|
-
pendingQueueCount?: number;
|
|
159
|
-
compact?: boolean;
|
|
160
|
-
}> & Readonly<{
|
|
161
|
-
onScheduleMessage?: ((input: ScheduleMessageInput) => any) | undefined;
|
|
162
|
-
onSendAttachment?: ((input: AttachmentUploadInput) => any) | undefined;
|
|
163
|
-
onSendPoll?: ((input: PollComposerInput) => any) | undefined;
|
|
164
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
165
|
-
onSendText?: (() => any) | undefined;
|
|
166
|
-
onOpenScheduled?: (() => any) | undefined;
|
|
167
|
-
onCancelReply?: (() => any) | undefined;
|
|
168
|
-
onCancelEdit?: (() => any) | undefined;
|
|
169
|
-
}>, {
|
|
170
|
-
focusEditor: () => Promise<void>;
|
|
171
|
-
hideComposerActions: () => void;
|
|
172
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
173
|
-
scheduleMessage: (input: ScheduleMessageInput) => any;
|
|
174
|
-
sendAttachment: (input: AttachmentUploadInput) => any;
|
|
175
|
-
sendPoll: (input: PollComposerInput) => any;
|
|
176
|
-
"update:modelValue": (value: string) => any;
|
|
177
|
-
sendText: () => any;
|
|
178
|
-
openScheduled: () => any;
|
|
179
|
-
cancelReply: () => any;
|
|
180
|
-
cancelEdit: () => any;
|
|
181
|
-
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
182
|
-
fileInputRef: HTMLInputElement;
|
|
183
|
-
composerShellRef: HTMLDivElement;
|
|
184
|
-
composerActionsRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
185
|
-
onPickFile?: ((kind: "image" | "video" | "audio" | "file") => any) | undefined;
|
|
186
|
-
onOpenPoll?: (() => any) | undefined;
|
|
187
|
-
}>, {
|
|
188
|
-
toggle: (_event?: Event) => void;
|
|
189
|
-
hide: () => void;
|
|
190
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
191
|
-
pickFile: (kind: "image" | "video" | "audio" | "file") => any;
|
|
192
|
-
openPoll: () => any;
|
|
193
|
-
}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
194
|
-
menuRef: HTMLDivElement;
|
|
195
|
-
}, HTMLDivElement, ComponentProvideOptions, {
|
|
196
|
-
P: {};
|
|
197
|
-
B: {};
|
|
198
|
-
D: {};
|
|
199
|
-
C: {};
|
|
200
|
-
M: {};
|
|
201
|
-
Defaults: {};
|
|
202
|
-
}, Readonly<{}> & Readonly<{
|
|
203
|
-
onPickFile?: ((kind: "image" | "video" | "audio" | "file") => any) | undefined;
|
|
204
|
-
onOpenPoll?: (() => any) | undefined;
|
|
205
|
-
}>, {
|
|
206
|
-
toggle: (_event?: Event) => void;
|
|
207
|
-
hide: () => void;
|
|
208
|
-
}, {}, {}, {}, {}> | null;
|
|
209
|
-
composerEditorRef: HTMLDivElement;
|
|
210
|
-
}, HTMLDivElement, ComponentProvideOptions, {
|
|
211
|
-
P: {};
|
|
212
|
-
B: {};
|
|
213
|
-
D: {};
|
|
214
|
-
C: {};
|
|
215
|
-
M: {};
|
|
216
|
-
Defaults: {};
|
|
217
|
-
}, Readonly<{
|
|
218
|
-
modelValue: string;
|
|
219
|
-
disabled: boolean;
|
|
220
|
-
resetSignal: number;
|
|
221
|
-
showScheduledButton?: boolean;
|
|
222
|
-
replyToMessage?: ChatMessageItem | null;
|
|
223
|
-
editingMessage?: ChatMessageItem | null;
|
|
224
|
-
contextLabel?: string;
|
|
225
|
-
offlineMode?: boolean;
|
|
226
|
-
pendingQueueCount?: number;
|
|
227
|
-
compact?: boolean;
|
|
228
|
-
}> & Readonly<{
|
|
229
|
-
onScheduleMessage?: ((input: ScheduleMessageInput) => any) | undefined;
|
|
230
|
-
onSendAttachment?: ((input: AttachmentUploadInput) => any) | undefined;
|
|
231
|
-
onSendPoll?: ((input: PollComposerInput) => any) | undefined;
|
|
232
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
233
|
-
onSendText?: (() => any) | undefined;
|
|
234
|
-
onOpenScheduled?: (() => any) | undefined;
|
|
235
|
-
onCancelReply?: (() => any) | undefined;
|
|
236
|
-
onCancelEdit?: (() => any) | undefined;
|
|
237
|
-
}>, {
|
|
238
|
-
focusEditor: () => Promise<void>;
|
|
239
|
-
hideComposerActions: () => void;
|
|
240
|
-
}, {}, {}, {}, {}> | null;
|
|
241
|
-
}, any, ComponentProvideOptions, {
|
|
242
|
-
P: {};
|
|
243
|
-
B: {};
|
|
244
|
-
D: {};
|
|
245
|
-
C: {};
|
|
246
|
-
M: {};
|
|
247
|
-
Defaults: {};
|
|
248
|
-
}, Readonly<{
|
|
249
|
-
target: ChatTarget;
|
|
250
|
-
}> & Readonly<{}>, {
|
|
251
|
-
focusEditor: () => Promise<void>;
|
|
252
|
-
}, {}, {}, {}, {}> | null;
|
|
253
|
-
}, HTMLDivElement>;
|
|
24
|
+
client: ChatClient | null;
|
|
25
|
+
initialScheduledMessagesOpen: boolean;
|
|
26
|
+
chatUid: string;
|
|
27
|
+
hideDeletedMessages: boolean;
|
|
28
|
+
hideGroupActions: boolean;
|
|
29
|
+
displayNoMessagesText: boolean;
|
|
30
|
+
showMessageHeader: boolean;
|
|
31
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
32
|
+
|
|
33
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
254
34
|
|
|
255
35
|
declare type __VLS_Props = {
|
|
256
36
|
client?: ChatClient | null;
|
|
@@ -266,6 +46,7 @@ declare type __VLS_Props = {
|
|
|
266
46
|
chatUid?: string;
|
|
267
47
|
senderDisplayName?: string;
|
|
268
48
|
hideDeletedMessages?: boolean;
|
|
49
|
+
hideGroupActions?: boolean;
|
|
269
50
|
chatMessageGetter?: ChatMessagesGetter;
|
|
270
51
|
displayNoMessagesText?: boolean;
|
|
271
52
|
language?: Language;
|
|
@@ -276,246 +57,13 @@ declare type __VLS_Props = {
|
|
|
276
57
|
actionMessageRowClass?: string;
|
|
277
58
|
};
|
|
278
59
|
|
|
279
|
-
declare
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
conversation: ChatConversationItem | null;
|
|
284
|
-
parentMessage: ChatMessageItem | null;
|
|
285
|
-
target: ChatTarget;
|
|
286
|
-
title: string;
|
|
287
|
-
subtitle: string;
|
|
288
|
-
memberCount: number;
|
|
289
|
-
}): any;
|
|
290
|
-
'no-messages'?(_: {}): any;
|
|
291
|
-
};
|
|
292
|
-
refs: {
|
|
293
|
-
chatRootRef: HTMLDivElement;
|
|
294
|
-
mainComposerRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
295
|
-
target: ChatTarget;
|
|
296
|
-
}> & Readonly<{}>, {
|
|
297
|
-
focusEditor: () => Promise<void>;
|
|
298
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
299
|
-
composerRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
300
|
-
modelValue: string;
|
|
301
|
-
disabled: boolean;
|
|
302
|
-
resetSignal: number;
|
|
303
|
-
showScheduledButton?: boolean;
|
|
304
|
-
replyToMessage?: ChatMessageItem | null;
|
|
305
|
-
editingMessage?: ChatMessageItem | null;
|
|
306
|
-
contextLabel?: string;
|
|
307
|
-
offlineMode?: boolean;
|
|
308
|
-
pendingQueueCount?: number;
|
|
309
|
-
compact?: boolean;
|
|
310
|
-
}> & Readonly<{
|
|
311
|
-
onScheduleMessage?: ((input: ScheduleMessageInput) => any) | undefined;
|
|
312
|
-
onSendAttachment?: ((input: AttachmentUploadInput) => any) | undefined;
|
|
313
|
-
onSendPoll?: ((input: PollComposerInput) => any) | undefined;
|
|
314
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
315
|
-
onSendText?: (() => any) | undefined;
|
|
316
|
-
onOpenScheduled?: (() => any) | undefined;
|
|
317
|
-
onCancelReply?: (() => any) | undefined;
|
|
318
|
-
onCancelEdit?: (() => any) | undefined;
|
|
319
|
-
}>, {
|
|
320
|
-
focusEditor: () => Promise<void>;
|
|
321
|
-
hideComposerActions: () => void;
|
|
322
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
323
|
-
scheduleMessage: (input: ScheduleMessageInput) => any;
|
|
324
|
-
sendAttachment: (input: AttachmentUploadInput) => any;
|
|
325
|
-
sendPoll: (input: PollComposerInput) => any;
|
|
326
|
-
"update:modelValue": (value: string) => any;
|
|
327
|
-
sendText: () => any;
|
|
328
|
-
openScheduled: () => any;
|
|
329
|
-
cancelReply: () => any;
|
|
330
|
-
cancelEdit: () => any;
|
|
331
|
-
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
332
|
-
fileInputRef: HTMLInputElement;
|
|
333
|
-
composerShellRef: HTMLDivElement;
|
|
334
|
-
composerActionsRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
335
|
-
onPickFile?: ((kind: "image" | "video" | "audio" | "file") => any) | undefined;
|
|
336
|
-
onOpenPoll?: (() => any) | undefined;
|
|
337
|
-
}>, {
|
|
338
|
-
toggle: (_event?: Event) => void;
|
|
339
|
-
hide: () => void;
|
|
340
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
341
|
-
pickFile: (kind: "image" | "video" | "audio" | "file") => any;
|
|
342
|
-
openPoll: () => any;
|
|
343
|
-
}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
344
|
-
menuRef: HTMLDivElement;
|
|
345
|
-
}, HTMLDivElement, ComponentProvideOptions, {
|
|
346
|
-
P: {};
|
|
347
|
-
B: {};
|
|
348
|
-
D: {};
|
|
349
|
-
C: {};
|
|
350
|
-
M: {};
|
|
351
|
-
Defaults: {};
|
|
352
|
-
}, Readonly<{}> & Readonly<{
|
|
353
|
-
onPickFile?: ((kind: "image" | "video" | "audio" | "file") => any) | undefined;
|
|
354
|
-
onOpenPoll?: (() => any) | undefined;
|
|
355
|
-
}>, {
|
|
356
|
-
toggle: (_event?: Event) => void;
|
|
357
|
-
hide: () => void;
|
|
358
|
-
}, {}, {}, {}, {}> | null;
|
|
359
|
-
composerEditorRef: HTMLDivElement;
|
|
360
|
-
}, HTMLDivElement, ComponentProvideOptions, {
|
|
361
|
-
P: {};
|
|
362
|
-
B: {};
|
|
363
|
-
D: {};
|
|
364
|
-
C: {};
|
|
365
|
-
M: {};
|
|
366
|
-
Defaults: {};
|
|
367
|
-
}, Readonly<{
|
|
368
|
-
modelValue: string;
|
|
369
|
-
disabled: boolean;
|
|
370
|
-
resetSignal: number;
|
|
371
|
-
showScheduledButton?: boolean;
|
|
372
|
-
replyToMessage?: ChatMessageItem | null;
|
|
373
|
-
editingMessage?: ChatMessageItem | null;
|
|
374
|
-
contextLabel?: string;
|
|
375
|
-
offlineMode?: boolean;
|
|
376
|
-
pendingQueueCount?: number;
|
|
377
|
-
compact?: boolean;
|
|
378
|
-
}> & Readonly<{
|
|
379
|
-
onScheduleMessage?: ((input: ScheduleMessageInput) => any) | undefined;
|
|
380
|
-
onSendAttachment?: ((input: AttachmentUploadInput) => any) | undefined;
|
|
381
|
-
onSendPoll?: ((input: PollComposerInput) => any) | undefined;
|
|
382
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
383
|
-
onSendText?: (() => any) | undefined;
|
|
384
|
-
onOpenScheduled?: (() => any) | undefined;
|
|
385
|
-
onCancelReply?: (() => any) | undefined;
|
|
386
|
-
onCancelEdit?: (() => any) | undefined;
|
|
387
|
-
}>, {
|
|
388
|
-
focusEditor: () => Promise<void>;
|
|
389
|
-
hideComposerActions: () => void;
|
|
390
|
-
}, {}, {}, {}, {}> | null;
|
|
391
|
-
}, any, ComponentProvideOptions, {
|
|
392
|
-
P: {};
|
|
393
|
-
B: {};
|
|
394
|
-
D: {};
|
|
395
|
-
C: {};
|
|
396
|
-
M: {};
|
|
397
|
-
Defaults: {};
|
|
398
|
-
}, Readonly<{
|
|
399
|
-
target: ChatTarget;
|
|
400
|
-
}> & Readonly<{}>, {
|
|
401
|
-
focusEditor: () => Promise<void>;
|
|
402
|
-
}, {}, {}, {}, {}> | null;
|
|
403
|
-
threadComposerRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
404
|
-
target: ChatTarget;
|
|
405
|
-
}> & Readonly<{}>, {
|
|
406
|
-
focusEditor: () => Promise<void>;
|
|
407
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
408
|
-
composerRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
409
|
-
modelValue: string;
|
|
410
|
-
disabled: boolean;
|
|
411
|
-
resetSignal: number;
|
|
412
|
-
showScheduledButton?: boolean;
|
|
413
|
-
replyToMessage?: ChatMessageItem | null;
|
|
414
|
-
editingMessage?: ChatMessageItem | null;
|
|
415
|
-
contextLabel?: string;
|
|
416
|
-
offlineMode?: boolean;
|
|
417
|
-
pendingQueueCount?: number;
|
|
418
|
-
compact?: boolean;
|
|
419
|
-
}> & Readonly<{
|
|
420
|
-
onScheduleMessage?: ((input: ScheduleMessageInput) => any) | undefined;
|
|
421
|
-
onSendAttachment?: ((input: AttachmentUploadInput) => any) | undefined;
|
|
422
|
-
onSendPoll?: ((input: PollComposerInput) => any) | undefined;
|
|
423
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
424
|
-
onSendText?: (() => any) | undefined;
|
|
425
|
-
onOpenScheduled?: (() => any) | undefined;
|
|
426
|
-
onCancelReply?: (() => any) | undefined;
|
|
427
|
-
onCancelEdit?: (() => any) | undefined;
|
|
428
|
-
}>, {
|
|
429
|
-
focusEditor: () => Promise<void>;
|
|
430
|
-
hideComposerActions: () => void;
|
|
431
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
432
|
-
scheduleMessage: (input: ScheduleMessageInput) => any;
|
|
433
|
-
sendAttachment: (input: AttachmentUploadInput) => any;
|
|
434
|
-
sendPoll: (input: PollComposerInput) => any;
|
|
435
|
-
"update:modelValue": (value: string) => any;
|
|
436
|
-
sendText: () => any;
|
|
437
|
-
openScheduled: () => any;
|
|
438
|
-
cancelReply: () => any;
|
|
439
|
-
cancelEdit: () => any;
|
|
440
|
-
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
441
|
-
fileInputRef: HTMLInputElement;
|
|
442
|
-
composerShellRef: HTMLDivElement;
|
|
443
|
-
composerActionsRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
444
|
-
onPickFile?: ((kind: "image" | "video" | "audio" | "file") => any) | undefined;
|
|
445
|
-
onOpenPoll?: (() => any) | undefined;
|
|
446
|
-
}>, {
|
|
447
|
-
toggle: (_event?: Event) => void;
|
|
448
|
-
hide: () => void;
|
|
449
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
450
|
-
pickFile: (kind: "image" | "video" | "audio" | "file") => any;
|
|
451
|
-
openPoll: () => any;
|
|
452
|
-
}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
453
|
-
menuRef: HTMLDivElement;
|
|
454
|
-
}, HTMLDivElement, ComponentProvideOptions, {
|
|
455
|
-
P: {};
|
|
456
|
-
B: {};
|
|
457
|
-
D: {};
|
|
458
|
-
C: {};
|
|
459
|
-
M: {};
|
|
460
|
-
Defaults: {};
|
|
461
|
-
}, Readonly<{}> & Readonly<{
|
|
462
|
-
onPickFile?: ((kind: "image" | "video" | "audio" | "file") => any) | undefined;
|
|
463
|
-
onOpenPoll?: (() => any) | undefined;
|
|
464
|
-
}>, {
|
|
465
|
-
toggle: (_event?: Event) => void;
|
|
466
|
-
hide: () => void;
|
|
467
|
-
}, {}, {}, {}, {}> | null;
|
|
468
|
-
composerEditorRef: HTMLDivElement;
|
|
469
|
-
}, HTMLDivElement, ComponentProvideOptions, {
|
|
470
|
-
P: {};
|
|
471
|
-
B: {};
|
|
472
|
-
D: {};
|
|
473
|
-
C: {};
|
|
474
|
-
M: {};
|
|
475
|
-
Defaults: {};
|
|
476
|
-
}, Readonly<{
|
|
477
|
-
modelValue: string;
|
|
478
|
-
disabled: boolean;
|
|
479
|
-
resetSignal: number;
|
|
480
|
-
showScheduledButton?: boolean;
|
|
481
|
-
replyToMessage?: ChatMessageItem | null;
|
|
482
|
-
editingMessage?: ChatMessageItem | null;
|
|
483
|
-
contextLabel?: string;
|
|
484
|
-
offlineMode?: boolean;
|
|
485
|
-
pendingQueueCount?: number;
|
|
486
|
-
compact?: boolean;
|
|
487
|
-
}> & Readonly<{
|
|
488
|
-
onScheduleMessage?: ((input: ScheduleMessageInput) => any) | undefined;
|
|
489
|
-
onSendAttachment?: ((input: AttachmentUploadInput) => any) | undefined;
|
|
490
|
-
onSendPoll?: ((input: PollComposerInput) => any) | undefined;
|
|
491
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
492
|
-
onSendText?: (() => any) | undefined;
|
|
493
|
-
onOpenScheduled?: (() => any) | undefined;
|
|
494
|
-
onCancelReply?: (() => any) | undefined;
|
|
495
|
-
onCancelEdit?: (() => any) | undefined;
|
|
496
|
-
}>, {
|
|
497
|
-
focusEditor: () => Promise<void>;
|
|
498
|
-
hideComposerActions: () => void;
|
|
499
|
-
}, {}, {}, {}, {}> | null;
|
|
500
|
-
}, any, ComponentProvideOptions, {
|
|
501
|
-
P: {};
|
|
502
|
-
B: {};
|
|
503
|
-
D: {};
|
|
504
|
-
C: {};
|
|
505
|
-
M: {};
|
|
506
|
-
Defaults: {};
|
|
507
|
-
}, Readonly<{
|
|
508
|
-
target: ChatTarget;
|
|
509
|
-
}> & Readonly<{}>, {
|
|
510
|
-
focusEditor: () => Promise<void>;
|
|
511
|
-
}, {}, {}, {}, {}> | null;
|
|
512
|
-
};
|
|
513
|
-
rootEl: HTMLDivElement;
|
|
60
|
+
declare type __VLS_Slots = {} & {
|
|
61
|
+
'message-header'?: (props: typeof __VLS_16) => any;
|
|
62
|
+
} & {
|
|
63
|
+
'no-messages'?: (props: typeof __VLS_70) => any;
|
|
514
64
|
};
|
|
515
65
|
|
|
516
|
-
declare type
|
|
517
|
-
|
|
518
|
-
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
66
|
+
declare type __VLS_WithSlots<T, S> = T & {
|
|
519
67
|
new (): {
|
|
520
68
|
$slots: S;
|
|
521
69
|
};
|
|
@@ -582,21 +130,21 @@ declare const chat: {
|
|
|
582
130
|
};
|
|
583
131
|
onlineMode: WritableComputedRef<OnlineStatus, OnlineStatus>;
|
|
584
132
|
onlineStatus: ComputedRef<OnlineStatus>;
|
|
585
|
-
theme: Ref<
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
133
|
+
theme: Ref<{
|
|
134
|
+
palette: {
|
|
135
|
+
mode: ThemeMode;
|
|
136
|
+
setMode: (mode: ThemeMode) => void;
|
|
137
|
+
};
|
|
590
138
|
}, {
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
139
|
+
palette: {
|
|
140
|
+
mode: ThemeMode;
|
|
141
|
+
setMode(mode: ThemeMode): void;
|
|
142
|
+
};
|
|
595
143
|
} | {
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
144
|
+
palette: {
|
|
145
|
+
mode: ThemeMode;
|
|
146
|
+
setMode: (mode: ThemeMode) => void;
|
|
147
|
+
};
|
|
600
148
|
}>;
|
|
601
149
|
themeMode: Ref<ThemeMode, ThemeMode>;
|
|
602
150
|
language: Ref<Language, Language>;
|
|
@@ -828,9 +376,6 @@ export declare interface ChatScheduledInfo {
|
|
|
828
376
|
messageId?: number;
|
|
829
377
|
}
|
|
830
378
|
|
|
831
|
-
/** Target identifier used to distinguish main-conversation from thread actions. */
|
|
832
|
-
declare type ChatTarget = "main" | "thread";
|
|
833
|
-
|
|
834
379
|
export declare interface ChatUserProfile {
|
|
835
380
|
uid: string;
|
|
836
381
|
name: string;
|
|
@@ -848,7 +393,7 @@ declare interface CreateChatClientOptions {
|
|
|
848
393
|
environment: Environment;
|
|
849
394
|
}
|
|
850
395
|
|
|
851
|
-
declare const _default:
|
|
396
|
+
declare const _default: typeof __VLS_export;
|
|
852
397
|
export { _default as BccChat }
|
|
853
398
|
export { _default as BccChatMessageList }
|
|
854
399
|
|