@phonghq/go-chat 1.0.16 → 1.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/chat/App.vue.d.ts +1 -1
- package/dist/components/chat/call/Calling.vue.d.ts +2 -33
- package/dist/go-chat.es.js +1722 -1727
- package/dist/go-chat.umd.js +6 -6
- package/dist/test/chat/App.vue.js +1 -5
- package/dist/test/components/chat/call/Calling.vue.js +2 -2
- package/dist/types/chat/global.d.ts +10 -6
- package/package.json +1 -1
|
@@ -148,11 +148,7 @@ initPage({ props: props, response: props.response });
|
|
|
148
148
|
let __VLS_exposed;
|
|
149
149
|
defineExpose({
|
|
150
150
|
unreadCount,
|
|
151
|
-
|
|
152
|
-
callStatus: callingRef.value?.callStatus ?? null,
|
|
153
|
-
callLabel: callingRef.value?.label ?? '',
|
|
154
|
-
startCall: callingRef.value?.answer,
|
|
155
|
-
endCall: callingRef.value?.endCall,
|
|
151
|
+
callInstance: callingRef.value,
|
|
156
152
|
});
|
|
157
153
|
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
158
154
|
const __VLS_defaults = {
|
|
@@ -209,8 +209,8 @@ const handleAfterClose = () => {
|
|
|
209
209
|
record_link.value = '';
|
|
210
210
|
uuidEnd = '';
|
|
211
211
|
};
|
|
212
|
-
|
|
213
|
-
defineExpose(
|
|
212
|
+
let __VLS_exposed;
|
|
213
|
+
defineExpose({ startCall, endCall, userRemoter, callStatus, answer, label });
|
|
214
214
|
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
215
215
|
const __VLS_defaults = {};
|
|
216
216
|
const __VLS_ctx = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ComputedRef } from 'vue';
|
|
1
|
+
import type { ComputedRef, Ref } from 'vue';
|
|
2
2
|
import type { IResUser } from '../../types/message';
|
|
3
3
|
import type { PLIVO_CALL_STATUS } from '../../types/call';
|
|
4
4
|
export type GoChatProps = {
|
|
@@ -10,10 +10,14 @@ export type GoChatProps = {
|
|
|
10
10
|
};
|
|
11
11
|
export interface GoChatInstance {
|
|
12
12
|
unreadCount: ComputedRef<number>;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
callInstance: CallInstance | null;
|
|
14
|
+
}
|
|
15
|
+
export interface CallInstance {
|
|
16
|
+
userRemoter: Ref<IResUser | null>;
|
|
17
|
+
callStatus: Ref<PLIVO_CALL_STATUS | null>;
|
|
18
|
+
startCall: ((data: IResUser) => Promise<void>);
|
|
19
|
+
endCall: (() => void);
|
|
20
|
+
answer: (() => Promise<void>);
|
|
21
|
+
label: ComputedRef<any>;
|
|
18
22
|
}
|
|
19
23
|
export type PAGE_RESPONSE = 'mobile' | 'tablet';
|