@bcc-code/vue-bcc-chat-ui 7.1.58 → 7.1.60
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 +33 -6
- package/dist/style.css +1 -2
- package/dist/vue-bcc-chat-ui.js +31587 -2979
- package/dist/vue-bcc-chat-ui.js.map +1 -1
- package/package.json +12 -11
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
2
|
import { BaseMessage } from '@cometchat/chat-sdk-javascript';
|
|
3
|
+
import { Call } from '@cometchat/chat-sdk-javascript';
|
|
4
|
+
import { CometChat as CometChat_2 } from '@cometchat/chat-sdk-javascript';
|
|
3
5
|
import { ComponentOptionsMixin } from 'vue';
|
|
4
6
|
import { ComponentProvideOptions } from 'vue';
|
|
5
7
|
import { ComputedRef } from 'vue';
|
|
@@ -27,25 +29,25 @@ declare const __VLS_base: DefineComponent<__VLS_Props, {
|
|
|
27
29
|
}[]>;
|
|
28
30
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
29
31
|
chatNotAMember: (chatUid: string) => any;
|
|
32
|
+
composerSelectionChange: (selection: ChatComposerSelectionState | null) => any;
|
|
33
|
+
composerLinkRequest: (selection: ChatComposerSelectionState) => any;
|
|
30
34
|
chatMembersFetched: (members: ParticipantInfo[]) => any;
|
|
31
35
|
chatEmpty: () => any;
|
|
32
36
|
linkClicked: (event: MouseEvent, url: string) => any;
|
|
33
|
-
composerSelectionChange: (selection: ChatComposerSelectionState | null) => any;
|
|
34
|
-
composerLinkRequest: (selection: ChatComposerSelectionState) => any;
|
|
35
37
|
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
36
38
|
onChatNotAMember?: ((chatUid: string) => any) | undefined;
|
|
39
|
+
onComposerSelectionChange?: ((selection: ChatComposerSelectionState | null) => any) | undefined;
|
|
40
|
+
onComposerLinkRequest?: ((selection: ChatComposerSelectionState) => any) | undefined;
|
|
37
41
|
onChatMembersFetched?: ((members: ParticipantInfo[]) => any) | undefined;
|
|
38
42
|
onChatEmpty?: (() => any) | undefined;
|
|
39
43
|
onLinkClicked?: ((event: MouseEvent, url: string) => any) | undefined;
|
|
40
|
-
onComposerSelectionChange?: ((selection: ChatComposerSelectionState | null) => any) | undefined;
|
|
41
|
-
onComposerLinkRequest?: ((selection: ChatComposerSelectionState) => any) | undefined;
|
|
42
44
|
}>, {
|
|
43
45
|
chatUid: string;
|
|
46
|
+
hideGroupActions: boolean;
|
|
44
47
|
client: ChatClient | null;
|
|
45
48
|
isReadOnly: boolean;
|
|
46
49
|
initialScheduledMessagesOpen: boolean;
|
|
47
50
|
hideDeletedMessages: boolean;
|
|
48
|
-
hideGroupActions: boolean;
|
|
49
51
|
displayNoMessagesText: boolean;
|
|
50
52
|
showMessageHeader: boolean;
|
|
51
53
|
composerFormattingMode: ComposerFormattingMode;
|
|
@@ -277,6 +279,19 @@ declare const chat: {
|
|
|
277
279
|
}>;
|
|
278
280
|
themeMode: Ref<ThemeMode, ThemeMode>;
|
|
279
281
|
language: Ref<Language, Language>;
|
|
282
|
+
calls: {
|
|
283
|
+
state: ComputedRef<"idle" | "outgoing" | "incoming" | "connecting" | "in-call">;
|
|
284
|
+
activeType: ComputedRef<"video" | "audio">;
|
|
285
|
+
activeSessionId: ComputedRef<string | null>;
|
|
286
|
+
incomingCall: ComputedRef< Call | null>;
|
|
287
|
+
incomingCalls: ComputedRef<Map<string, Call>>;
|
|
288
|
+
outgoingCall: ComputedRef< Call | null>;
|
|
289
|
+
start: (receiverId: string, container: HTMLElement, callType?: "audio" | "video", receiverType?: "user" | "group") => Promise< Call>;
|
|
290
|
+
accept: (container: HTMLElement, sessionId?: string) => Promise<void>;
|
|
291
|
+
reject: (sessionId?: string) => Promise<void>;
|
|
292
|
+
end: () => Promise<void>;
|
|
293
|
+
joinActive: (container: HTMLElement) => Promise<void>;
|
|
294
|
+
};
|
|
280
295
|
};
|
|
281
296
|
export { chat }
|
|
282
297
|
export default chat;
|
|
@@ -306,6 +321,7 @@ export declare interface ChatClient {
|
|
|
306
321
|
syncingQueue: Ref<boolean>;
|
|
307
322
|
connected: Ref<boolean>;
|
|
308
323
|
offlineMode: Ref<boolean>;
|
|
324
|
+
hideGroupActions: Ref<boolean>;
|
|
309
325
|
loggedIn: Ref<boolean>;
|
|
310
326
|
error: Ref<string | null>;
|
|
311
327
|
currentUser: Ref<ChatUserProfile | null>;
|
|
@@ -356,6 +372,17 @@ export declare interface ChatClient {
|
|
|
356
372
|
uid: string;
|
|
357
373
|
displayName: string;
|
|
358
374
|
}>) => void;
|
|
375
|
+
initiateCall: (receiverId: string, container: HTMLElement, callType?: "video" | "audio", receiverType?: "user" | "group") => Promise<InstanceType<typeof CometChat_2.Call>>;
|
|
376
|
+
acceptIncomingCall: (container: HTMLElement, sessionId?: string) => Promise<void>;
|
|
377
|
+
rejectIncomingCall: (sessionId?: string) => Promise<void>;
|
|
378
|
+
endActiveCall: () => Promise<void>;
|
|
379
|
+
joinOutgoingCallSession: (container: HTMLElement) => Promise<void>;
|
|
380
|
+
incomingCall: Ref<InstanceType<typeof CometChat_2.Call> | null>;
|
|
381
|
+
incomingCalls: Ref<Map<string, InstanceType<typeof CometChat_2.Call>>>;
|
|
382
|
+
outgoingCall: Ref<InstanceType<typeof CometChat_2.Call> | null>;
|
|
383
|
+
activeCallSessionId: Ref<string | null>;
|
|
384
|
+
activeCallType: Ref<"audio" | "video">;
|
|
385
|
+
callState: Ref<"idle" | "outgoing" | "incoming" | "connecting" | "in-call">;
|
|
359
386
|
}
|
|
360
387
|
|
|
361
388
|
export declare interface ChatComposerSelectionState extends ComposerSelectionState {
|
|
@@ -500,7 +527,7 @@ export declare interface ChatPollOptionItem {
|
|
|
500
527
|
id: string;
|
|
501
528
|
text: string;
|
|
502
529
|
voteCount: number;
|
|
503
|
-
voters:
|
|
530
|
+
voters: ChatUserProfile[];
|
|
504
531
|
}
|
|
505
532
|
|
|
506
533
|
export declare interface ChatReactionItem {
|