@bcc-code/vue-bcc-chat-ui 7.0.16 → 7.0.17
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 +27 -47
- package/dist/style.css +1 -1
- package/dist/vue-bcc-chat-ui.js +2311 -2616
- 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,16 @@ 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
|
-
}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
88
|
-
popoverRef: ({
|
|
89
|
-
$props: PopoverProps & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
90
|
-
$slots: PopoverSlots;
|
|
91
|
-
$emit: ((e: "show") => void) & ((e: "hide") => void);
|
|
92
|
-
} & PopoverMethods) | null;
|
|
93
|
-
}, any, ComponentProvideOptions, {
|
|
81
|
+
}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
94
82
|
P: {};
|
|
95
83
|
B: {};
|
|
96
84
|
D: {};
|
|
@@ -101,9 +89,10 @@ Defaults: {};
|
|
|
101
89
|
onPickFile?: ((kind: "image" | "video" | "audio" | "file") => any) | undefined;
|
|
102
90
|
onOpenPoll?: (() => any) | undefined;
|
|
103
91
|
}>, {
|
|
104
|
-
toggle: (
|
|
92
|
+
toggle: (_event?: Event) => void;
|
|
105
93
|
hide: () => void;
|
|
106
94
|
}, {}, {}, {}, {}> | null;
|
|
95
|
+
composerEditorRef: HTMLDivElement;
|
|
107
96
|
}, HTMLDivElement, ComponentProvideOptions, {
|
|
108
97
|
P: {};
|
|
109
98
|
B: {};
|
|
@@ -133,6 +122,7 @@ onCancelReply?: (() => any) | undefined;
|
|
|
133
122
|
onCancelEdit?: (() => any) | undefined;
|
|
134
123
|
}>, {
|
|
135
124
|
focusEditor: () => Promise<void>;
|
|
125
|
+
hideComposerActions: () => void;
|
|
136
126
|
}, {}, {}, {}, {}> | null;
|
|
137
127
|
}, any, ComponentProvideOptions, {
|
|
138
128
|
P: {};
|
|
@@ -173,6 +163,7 @@ onCancelReply?: (() => any) | undefined;
|
|
|
173
163
|
onCancelEdit?: (() => any) | undefined;
|
|
174
164
|
}>, {
|
|
175
165
|
focusEditor: () => Promise<void>;
|
|
166
|
+
hideComposerActions: () => void;
|
|
176
167
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
177
168
|
scheduleMessage: (input: ScheduleMessageInput) => any;
|
|
178
169
|
sendAttachment: (input: AttachmentUploadInput) => any;
|
|
@@ -185,23 +176,16 @@ cancelEdit: () => any;
|
|
|
185
176
|
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
186
177
|
fileInputRef: HTMLInputElement;
|
|
187
178
|
composerShellRef: HTMLDivElement;
|
|
188
|
-
composerEditorRef: HTMLDivElement;
|
|
189
179
|
composerActionsRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
190
180
|
onPickFile?: ((kind: "image" | "video" | "audio" | "file") => any) | undefined;
|
|
191
181
|
onOpenPoll?: (() => any) | undefined;
|
|
192
182
|
}>, {
|
|
193
|
-
toggle: (
|
|
183
|
+
toggle: (_event?: Event) => void;
|
|
194
184
|
hide: () => void;
|
|
195
185
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
196
186
|
pickFile: (kind: "image" | "video" | "audio" | "file") => any;
|
|
197
187
|
openPoll: () => any;
|
|
198
|
-
}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
199
|
-
popoverRef: ({
|
|
200
|
-
$props: PopoverProps & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
201
|
-
$slots: PopoverSlots;
|
|
202
|
-
$emit: ((e: "show") => void) & ((e: "hide") => void);
|
|
203
|
-
} & PopoverMethods) | null;
|
|
204
|
-
}, any, ComponentProvideOptions, {
|
|
188
|
+
}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
205
189
|
P: {};
|
|
206
190
|
B: {};
|
|
207
191
|
D: {};
|
|
@@ -212,9 +196,10 @@ Defaults: {};
|
|
|
212
196
|
onPickFile?: ((kind: "image" | "video" | "audio" | "file") => any) | undefined;
|
|
213
197
|
onOpenPoll?: (() => any) | undefined;
|
|
214
198
|
}>, {
|
|
215
|
-
toggle: (
|
|
199
|
+
toggle: (_event?: Event) => void;
|
|
216
200
|
hide: () => void;
|
|
217
201
|
}, {}, {}, {}, {}> | null;
|
|
202
|
+
composerEditorRef: HTMLDivElement;
|
|
218
203
|
}, HTMLDivElement, ComponentProvideOptions, {
|
|
219
204
|
P: {};
|
|
220
205
|
B: {};
|
|
@@ -244,6 +229,7 @@ onCancelReply?: (() => any) | undefined;
|
|
|
244
229
|
onCancelEdit?: (() => any) | undefined;
|
|
245
230
|
}>, {
|
|
246
231
|
focusEditor: () => Promise<void>;
|
|
232
|
+
hideComposerActions: () => void;
|
|
247
233
|
}, {}, {}, {}, {}> | null;
|
|
248
234
|
}, any, ComponentProvideOptions, {
|
|
249
235
|
P: {};
|
|
@@ -280,6 +266,8 @@ declare type __VLS_Props = {
|
|
|
280
266
|
showHeader?: boolean;
|
|
281
267
|
showMessageHeader?: boolean;
|
|
282
268
|
containerClass?: string;
|
|
269
|
+
actionMessageClass?: string;
|
|
270
|
+
actionMessageRowClass?: string;
|
|
283
271
|
};
|
|
284
272
|
|
|
285
273
|
declare function __VLS_template(): {
|
|
@@ -324,6 +312,7 @@ declare function __VLS_template(): {
|
|
|
324
312
|
onCancelEdit?: (() => any) | undefined;
|
|
325
313
|
}>, {
|
|
326
314
|
focusEditor: () => Promise<void>;
|
|
315
|
+
hideComposerActions: () => void;
|
|
327
316
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
328
317
|
scheduleMessage: (input: ScheduleMessageInput) => any;
|
|
329
318
|
sendAttachment: (input: AttachmentUploadInput) => any;
|
|
@@ -336,23 +325,16 @@ declare function __VLS_template(): {
|
|
|
336
325
|
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
337
326
|
fileInputRef: HTMLInputElement;
|
|
338
327
|
composerShellRef: HTMLDivElement;
|
|
339
|
-
composerEditorRef: HTMLDivElement;
|
|
340
328
|
composerActionsRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
341
329
|
onPickFile?: ((kind: "image" | "video" | "audio" | "file") => any) | undefined;
|
|
342
330
|
onOpenPoll?: (() => any) | undefined;
|
|
343
331
|
}>, {
|
|
344
|
-
toggle: (
|
|
332
|
+
toggle: (_event?: Event) => void;
|
|
345
333
|
hide: () => void;
|
|
346
334
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
347
335
|
pickFile: (kind: "image" | "video" | "audio" | "file") => any;
|
|
348
336
|
openPoll: () => any;
|
|
349
|
-
}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
350
|
-
popoverRef: ({
|
|
351
|
-
$props: PopoverProps & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
352
|
-
$slots: PopoverSlots;
|
|
353
|
-
$emit: ((e: "show") => void) & ((e: "hide") => void);
|
|
354
|
-
} & PopoverMethods) | null;
|
|
355
|
-
}, any, ComponentProvideOptions, {
|
|
337
|
+
}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
356
338
|
P: {};
|
|
357
339
|
B: {};
|
|
358
340
|
D: {};
|
|
@@ -363,9 +345,10 @@ declare function __VLS_template(): {
|
|
|
363
345
|
onPickFile?: ((kind: "image" | "video" | "audio" | "file") => any) | undefined;
|
|
364
346
|
onOpenPoll?: (() => any) | undefined;
|
|
365
347
|
}>, {
|
|
366
|
-
toggle: (
|
|
348
|
+
toggle: (_event?: Event) => void;
|
|
367
349
|
hide: () => void;
|
|
368
350
|
}, {}, {}, {}, {}> | null;
|
|
351
|
+
composerEditorRef: HTMLDivElement;
|
|
369
352
|
}, HTMLDivElement, ComponentProvideOptions, {
|
|
370
353
|
P: {};
|
|
371
354
|
B: {};
|
|
@@ -395,6 +378,7 @@ declare function __VLS_template(): {
|
|
|
395
378
|
onCancelEdit?: (() => any) | undefined;
|
|
396
379
|
}>, {
|
|
397
380
|
focusEditor: () => Promise<void>;
|
|
381
|
+
hideComposerActions: () => void;
|
|
398
382
|
}, {}, {}, {}, {}> | null;
|
|
399
383
|
}, any, ComponentProvideOptions, {
|
|
400
384
|
P: {};
|
|
@@ -435,6 +419,7 @@ declare function __VLS_template(): {
|
|
|
435
419
|
onCancelEdit?: (() => any) | undefined;
|
|
436
420
|
}>, {
|
|
437
421
|
focusEditor: () => Promise<void>;
|
|
422
|
+
hideComposerActions: () => void;
|
|
438
423
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
439
424
|
scheduleMessage: (input: ScheduleMessageInput) => any;
|
|
440
425
|
sendAttachment: (input: AttachmentUploadInput) => any;
|
|
@@ -447,23 +432,16 @@ declare function __VLS_template(): {
|
|
|
447
432
|
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
448
433
|
fileInputRef: HTMLInputElement;
|
|
449
434
|
composerShellRef: HTMLDivElement;
|
|
450
|
-
composerEditorRef: HTMLDivElement;
|
|
451
435
|
composerActionsRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
452
436
|
onPickFile?: ((kind: "image" | "video" | "audio" | "file") => any) | undefined;
|
|
453
437
|
onOpenPoll?: (() => any) | undefined;
|
|
454
438
|
}>, {
|
|
455
|
-
toggle: (
|
|
439
|
+
toggle: (_event?: Event) => void;
|
|
456
440
|
hide: () => void;
|
|
457
441
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
458
442
|
pickFile: (kind: "image" | "video" | "audio" | "file") => any;
|
|
459
443
|
openPoll: () => any;
|
|
460
|
-
}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
461
|
-
popoverRef: ({
|
|
462
|
-
$props: PopoverProps & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
463
|
-
$slots: PopoverSlots;
|
|
464
|
-
$emit: ((e: "show") => void) & ((e: "hide") => void);
|
|
465
|
-
} & PopoverMethods) | null;
|
|
466
|
-
}, any, ComponentProvideOptions, {
|
|
444
|
+
}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
467
445
|
P: {};
|
|
468
446
|
B: {};
|
|
469
447
|
D: {};
|
|
@@ -474,9 +452,10 @@ declare function __VLS_template(): {
|
|
|
474
452
|
onPickFile?: ((kind: "image" | "video" | "audio" | "file") => any) | undefined;
|
|
475
453
|
onOpenPoll?: (() => any) | undefined;
|
|
476
454
|
}>, {
|
|
477
|
-
toggle: (
|
|
455
|
+
toggle: (_event?: Event) => void;
|
|
478
456
|
hide: () => void;
|
|
479
457
|
}, {}, {}, {}, {}> | null;
|
|
458
|
+
composerEditorRef: HTMLDivElement;
|
|
480
459
|
}, HTMLDivElement, ComponentProvideOptions, {
|
|
481
460
|
P: {};
|
|
482
461
|
B: {};
|
|
@@ -506,6 +485,7 @@ declare function __VLS_template(): {
|
|
|
506
485
|
onCancelEdit?: (() => any) | undefined;
|
|
507
486
|
}>, {
|
|
508
487
|
focusEditor: () => Promise<void>;
|
|
488
|
+
hideComposerActions: () => void;
|
|
509
489
|
}, {}, {}, {}, {}> | null;
|
|
510
490
|
}, any, ComponentProvideOptions, {
|
|
511
491
|
P: {};
|
|
@@ -851,7 +831,7 @@ declare function clearChatCount(chatUid: string): Promise<void>;
|
|
|
851
831
|
|
|
852
832
|
declare function connect(connectionName?: string): Promise<void>;
|
|
853
833
|
|
|
854
|
-
export declare function createChatClient({ environment
|
|
834
|
+
export declare function createChatClient({ environment }: CreateChatClientOptions): ChatClient;
|
|
855
835
|
|
|
856
836
|
declare interface CreateChatClientOptions {
|
|
857
837
|
environment: Environment;
|