@bcc-code/vue-bcc-chat-ui 7.1.59 → 7.1.61
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 -1
- package/dist/style.css +1 -2
- package/dist/vue-bcc-chat-ui.js +31558 -2915
- 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';
|
|
@@ -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;
|
|
@@ -357,6 +372,17 @@ export declare interface ChatClient {
|
|
|
357
372
|
uid: string;
|
|
358
373
|
displayName: string;
|
|
359
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">;
|
|
360
386
|
}
|
|
361
387
|
|
|
362
388
|
export declare interface ChatComposerSelectionState extends ComposerSelectionState {
|
|
@@ -501,7 +527,7 @@ export declare interface ChatPollOptionItem {
|
|
|
501
527
|
id: string;
|
|
502
528
|
text: string;
|
|
503
529
|
voteCount: number;
|
|
504
|
-
voters:
|
|
530
|
+
voters: ChatUserProfile[];
|
|
505
531
|
}
|
|
506
532
|
|
|
507
533
|
export declare interface ChatReactionItem {
|