@bcc-code/vue-bcc-chat-ui 7.0.16 → 7.0.18
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 +31 -43
- package/dist/style.css +1 -1
- package/dist/vue-bcc-chat-ui.js +2544 -2835
- package/dist/vue-bcc-chat-ui.js.map +1 -1
- package/package.json +14 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { AllowedComponentProps } from 'vue';
|
|
2
1
|
import { App } from 'vue';
|
|
3
2
|
import { BaseMessage } from '@cometchat/chat-sdk-javascript';
|
|
4
|
-
import { ComponentCustomProps } from 'vue';
|
|
5
3
|
import { ComponentOptionsMixin } from 'vue';
|
|
6
4
|
import { ComponentProvideOptions } from 'vue';
|
|
7
5
|
import { ComputedRef } from 'vue';
|
|
@@ -11,12 +9,8 @@ import { GlobalComponents } from 'vue';
|
|
|
11
9
|
import { GlobalDirectives } from 'vue';
|
|
12
10
|
import { Group } from '@cometchat/chat-sdk-javascript';
|
|
13
11
|
import { MessageReceipt } from '@cometchat/chat-sdk-javascript';
|
|
14
|
-
import { PopoverMethods } from 'primevue';
|
|
15
|
-
import { PopoverProps } from 'primevue';
|
|
16
|
-
import { PopoverSlots } from 'primevue';
|
|
17
12
|
import { PublicProps } from 'vue';
|
|
18
13
|
import { Ref } from 'vue';
|
|
19
|
-
import { VNodeProps } from 'vue';
|
|
20
14
|
import { WritableComputedRef } from 'vue';
|
|
21
15
|
|
|
22
16
|
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
@@ -62,6 +56,7 @@ onCancelReply?: (() => any) | undefined;
|
|
|
62
56
|
onCancelEdit?: (() => any) | undefined;
|
|
63
57
|
}>, {
|
|
64
58
|
focusEditor: () => Promise<void>;
|
|
59
|
+
hideComposerActions: () => void;
|
|
65
60
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
66
61
|
scheduleMessage: (input: ScheduleMessageInput) => any;
|
|
67
62
|
sendAttachment: (input: AttachmentUploadInput) => any;
|
|
@@ -74,23 +69,18 @@ cancelEdit: () => any;
|
|
|
74
69
|
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
75
70
|
fileInputRef: HTMLInputElement;
|
|
76
71
|
composerShellRef: HTMLDivElement;
|
|
77
|
-
composerEditorRef: HTMLDivElement;
|
|
78
72
|
composerActionsRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
79
73
|
onPickFile?: ((kind: "image" | "video" | "audio" | "file") => any) | undefined;
|
|
80
74
|
onOpenPoll?: (() => any) | undefined;
|
|
81
75
|
}>, {
|
|
82
|
-
toggle: (
|
|
76
|
+
toggle: (_event?: Event) => void;
|
|
83
77
|
hide: () => void;
|
|
84
78
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
85
79
|
pickFile: (kind: "image" | "video" | "audio" | "file") => any;
|
|
86
80
|
openPoll: () => any;
|
|
87
81
|
}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
$slots: PopoverSlots;
|
|
91
|
-
$emit: ((e: "show") => void) & ((e: "hide") => void);
|
|
92
|
-
} & PopoverMethods) | null;
|
|
93
|
-
}, any, ComponentProvideOptions, {
|
|
82
|
+
menuRef: HTMLDivElement;
|
|
83
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
94
84
|
P: {};
|
|
95
85
|
B: {};
|
|
96
86
|
D: {};
|
|
@@ -101,9 +91,10 @@ Defaults: {};
|
|
|
101
91
|
onPickFile?: ((kind: "image" | "video" | "audio" | "file") => any) | undefined;
|
|
102
92
|
onOpenPoll?: (() => any) | undefined;
|
|
103
93
|
}>, {
|
|
104
|
-
toggle: (
|
|
94
|
+
toggle: (_event?: Event) => void;
|
|
105
95
|
hide: () => void;
|
|
106
96
|
}, {}, {}, {}, {}> | null;
|
|
97
|
+
composerEditorRef: HTMLDivElement;
|
|
107
98
|
}, HTMLDivElement, ComponentProvideOptions, {
|
|
108
99
|
P: {};
|
|
109
100
|
B: {};
|
|
@@ -133,6 +124,7 @@ onCancelReply?: (() => any) | undefined;
|
|
|
133
124
|
onCancelEdit?: (() => any) | undefined;
|
|
134
125
|
}>, {
|
|
135
126
|
focusEditor: () => Promise<void>;
|
|
127
|
+
hideComposerActions: () => void;
|
|
136
128
|
}, {}, {}, {}, {}> | null;
|
|
137
129
|
}, any, ComponentProvideOptions, {
|
|
138
130
|
P: {};
|
|
@@ -173,6 +165,7 @@ onCancelReply?: (() => any) | undefined;
|
|
|
173
165
|
onCancelEdit?: (() => any) | undefined;
|
|
174
166
|
}>, {
|
|
175
167
|
focusEditor: () => Promise<void>;
|
|
168
|
+
hideComposerActions: () => void;
|
|
176
169
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
177
170
|
scheduleMessage: (input: ScheduleMessageInput) => any;
|
|
178
171
|
sendAttachment: (input: AttachmentUploadInput) => any;
|
|
@@ -185,23 +178,18 @@ cancelEdit: () => any;
|
|
|
185
178
|
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
186
179
|
fileInputRef: HTMLInputElement;
|
|
187
180
|
composerShellRef: HTMLDivElement;
|
|
188
|
-
composerEditorRef: HTMLDivElement;
|
|
189
181
|
composerActionsRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
190
182
|
onPickFile?: ((kind: "image" | "video" | "audio" | "file") => any) | undefined;
|
|
191
183
|
onOpenPoll?: (() => any) | undefined;
|
|
192
184
|
}>, {
|
|
193
|
-
toggle: (
|
|
185
|
+
toggle: (_event?: Event) => void;
|
|
194
186
|
hide: () => void;
|
|
195
187
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
196
188
|
pickFile: (kind: "image" | "video" | "audio" | "file") => any;
|
|
197
189
|
openPoll: () => any;
|
|
198
190
|
}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
$slots: PopoverSlots;
|
|
202
|
-
$emit: ((e: "show") => void) & ((e: "hide") => void);
|
|
203
|
-
} & PopoverMethods) | null;
|
|
204
|
-
}, any, ComponentProvideOptions, {
|
|
191
|
+
menuRef: HTMLDivElement;
|
|
192
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
205
193
|
P: {};
|
|
206
194
|
B: {};
|
|
207
195
|
D: {};
|
|
@@ -212,9 +200,10 @@ Defaults: {};
|
|
|
212
200
|
onPickFile?: ((kind: "image" | "video" | "audio" | "file") => any) | undefined;
|
|
213
201
|
onOpenPoll?: (() => any) | undefined;
|
|
214
202
|
}>, {
|
|
215
|
-
toggle: (
|
|
203
|
+
toggle: (_event?: Event) => void;
|
|
216
204
|
hide: () => void;
|
|
217
205
|
}, {}, {}, {}, {}> | null;
|
|
206
|
+
composerEditorRef: HTMLDivElement;
|
|
218
207
|
}, HTMLDivElement, ComponentProvideOptions, {
|
|
219
208
|
P: {};
|
|
220
209
|
B: {};
|
|
@@ -244,6 +233,7 @@ onCancelReply?: (() => any) | undefined;
|
|
|
244
233
|
onCancelEdit?: (() => any) | undefined;
|
|
245
234
|
}>, {
|
|
246
235
|
focusEditor: () => Promise<void>;
|
|
236
|
+
hideComposerActions: () => void;
|
|
247
237
|
}, {}, {}, {}, {}> | null;
|
|
248
238
|
}, any, ComponentProvideOptions, {
|
|
249
239
|
P: {};
|
|
@@ -280,6 +270,8 @@ declare type __VLS_Props = {
|
|
|
280
270
|
showHeader?: boolean;
|
|
281
271
|
showMessageHeader?: boolean;
|
|
282
272
|
containerClass?: string;
|
|
273
|
+
actionMessageClass?: string;
|
|
274
|
+
actionMessageRowClass?: string;
|
|
283
275
|
};
|
|
284
276
|
|
|
285
277
|
declare function __VLS_template(): {
|
|
@@ -324,6 +316,7 @@ declare function __VLS_template(): {
|
|
|
324
316
|
onCancelEdit?: (() => any) | undefined;
|
|
325
317
|
}>, {
|
|
326
318
|
focusEditor: () => Promise<void>;
|
|
319
|
+
hideComposerActions: () => void;
|
|
327
320
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
328
321
|
scheduleMessage: (input: ScheduleMessageInput) => any;
|
|
329
322
|
sendAttachment: (input: AttachmentUploadInput) => any;
|
|
@@ -336,23 +329,18 @@ declare function __VLS_template(): {
|
|
|
336
329
|
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
337
330
|
fileInputRef: HTMLInputElement;
|
|
338
331
|
composerShellRef: HTMLDivElement;
|
|
339
|
-
composerEditorRef: HTMLDivElement;
|
|
340
332
|
composerActionsRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
341
333
|
onPickFile?: ((kind: "image" | "video" | "audio" | "file") => any) | undefined;
|
|
342
334
|
onOpenPoll?: (() => any) | undefined;
|
|
343
335
|
}>, {
|
|
344
|
-
toggle: (
|
|
336
|
+
toggle: (_event?: Event) => void;
|
|
345
337
|
hide: () => void;
|
|
346
338
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
347
339
|
pickFile: (kind: "image" | "video" | "audio" | "file") => any;
|
|
348
340
|
openPoll: () => any;
|
|
349
341
|
}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
$slots: PopoverSlots;
|
|
353
|
-
$emit: ((e: "show") => void) & ((e: "hide") => void);
|
|
354
|
-
} & PopoverMethods) | null;
|
|
355
|
-
}, any, ComponentProvideOptions, {
|
|
342
|
+
menuRef: HTMLDivElement;
|
|
343
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
356
344
|
P: {};
|
|
357
345
|
B: {};
|
|
358
346
|
D: {};
|
|
@@ -363,9 +351,10 @@ declare function __VLS_template(): {
|
|
|
363
351
|
onPickFile?: ((kind: "image" | "video" | "audio" | "file") => any) | undefined;
|
|
364
352
|
onOpenPoll?: (() => any) | undefined;
|
|
365
353
|
}>, {
|
|
366
|
-
toggle: (
|
|
354
|
+
toggle: (_event?: Event) => void;
|
|
367
355
|
hide: () => void;
|
|
368
356
|
}, {}, {}, {}, {}> | null;
|
|
357
|
+
composerEditorRef: HTMLDivElement;
|
|
369
358
|
}, HTMLDivElement, ComponentProvideOptions, {
|
|
370
359
|
P: {};
|
|
371
360
|
B: {};
|
|
@@ -395,6 +384,7 @@ declare function __VLS_template(): {
|
|
|
395
384
|
onCancelEdit?: (() => any) | undefined;
|
|
396
385
|
}>, {
|
|
397
386
|
focusEditor: () => Promise<void>;
|
|
387
|
+
hideComposerActions: () => void;
|
|
398
388
|
}, {}, {}, {}, {}> | null;
|
|
399
389
|
}, any, ComponentProvideOptions, {
|
|
400
390
|
P: {};
|
|
@@ -435,6 +425,7 @@ declare function __VLS_template(): {
|
|
|
435
425
|
onCancelEdit?: (() => any) | undefined;
|
|
436
426
|
}>, {
|
|
437
427
|
focusEditor: () => Promise<void>;
|
|
428
|
+
hideComposerActions: () => void;
|
|
438
429
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
439
430
|
scheduleMessage: (input: ScheduleMessageInput) => any;
|
|
440
431
|
sendAttachment: (input: AttachmentUploadInput) => any;
|
|
@@ -447,23 +438,18 @@ declare function __VLS_template(): {
|
|
|
447
438
|
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
448
439
|
fileInputRef: HTMLInputElement;
|
|
449
440
|
composerShellRef: HTMLDivElement;
|
|
450
|
-
composerEditorRef: HTMLDivElement;
|
|
451
441
|
composerActionsRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
452
442
|
onPickFile?: ((kind: "image" | "video" | "audio" | "file") => any) | undefined;
|
|
453
443
|
onOpenPoll?: (() => any) | undefined;
|
|
454
444
|
}>, {
|
|
455
|
-
toggle: (
|
|
445
|
+
toggle: (_event?: Event) => void;
|
|
456
446
|
hide: () => void;
|
|
457
447
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
458
448
|
pickFile: (kind: "image" | "video" | "audio" | "file") => any;
|
|
459
449
|
openPoll: () => any;
|
|
460
450
|
}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
$slots: PopoverSlots;
|
|
464
|
-
$emit: ((e: "show") => void) & ((e: "hide") => void);
|
|
465
|
-
} & PopoverMethods) | null;
|
|
466
|
-
}, any, ComponentProvideOptions, {
|
|
451
|
+
menuRef: HTMLDivElement;
|
|
452
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
467
453
|
P: {};
|
|
468
454
|
B: {};
|
|
469
455
|
D: {};
|
|
@@ -474,9 +460,10 @@ declare function __VLS_template(): {
|
|
|
474
460
|
onPickFile?: ((kind: "image" | "video" | "audio" | "file") => any) | undefined;
|
|
475
461
|
onOpenPoll?: (() => any) | undefined;
|
|
476
462
|
}>, {
|
|
477
|
-
toggle: (
|
|
463
|
+
toggle: (_event?: Event) => void;
|
|
478
464
|
hide: () => void;
|
|
479
465
|
}, {}, {}, {}, {}> | null;
|
|
466
|
+
composerEditorRef: HTMLDivElement;
|
|
480
467
|
}, HTMLDivElement, ComponentProvideOptions, {
|
|
481
468
|
P: {};
|
|
482
469
|
B: {};
|
|
@@ -506,6 +493,7 @@ declare function __VLS_template(): {
|
|
|
506
493
|
onCancelEdit?: (() => any) | undefined;
|
|
507
494
|
}>, {
|
|
508
495
|
focusEditor: () => Promise<void>;
|
|
496
|
+
hideComposerActions: () => void;
|
|
509
497
|
}, {}, {}, {}, {}> | null;
|
|
510
498
|
}, any, ComponentProvideOptions, {
|
|
511
499
|
P: {};
|
|
@@ -851,7 +839,7 @@ declare function clearChatCount(chatUid: string): Promise<void>;
|
|
|
851
839
|
|
|
852
840
|
declare function connect(connectionName?: string): Promise<void>;
|
|
853
841
|
|
|
854
|
-
export declare function createChatClient({ environment
|
|
842
|
+
export declare function createChatClient({ environment }: CreateChatClientOptions): ChatClient;
|
|
855
843
|
|
|
856
844
|
declare interface CreateChatClientOptions {
|
|
857
845
|
environment: Environment;
|