@phonghq/go-chat 1.0.17 → 1.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/go-chat.es.js +2134 -2123
- package/dist/go-chat.umd.js +6 -6
- package/dist/test/chat/App.vue.js +12 -1
- package/dist/types/chat/global.d.ts +3 -1
- package/package.json +1 -1
|
@@ -144,11 +144,22 @@ const getResponsiveObserver = useDebounce(() => {
|
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
}, 50);
|
|
147
|
+
const getUserRemote = () => {
|
|
148
|
+
return callingRef.value?.userRemoter ?? null;
|
|
149
|
+
};
|
|
150
|
+
const startCall = () => {
|
|
151
|
+
return callingRef.value?.answer ?? undefined;
|
|
152
|
+
};
|
|
153
|
+
const endCall = () => {
|
|
154
|
+
return callingRef.value?.endCall;
|
|
155
|
+
};
|
|
147
156
|
initPage({ props: props, response: props.response });
|
|
148
157
|
let __VLS_exposed;
|
|
149
158
|
defineExpose({
|
|
150
159
|
unreadCount,
|
|
151
|
-
|
|
160
|
+
getUserRemote,
|
|
161
|
+
startCall,
|
|
162
|
+
endCall,
|
|
152
163
|
});
|
|
153
164
|
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
154
165
|
const __VLS_defaults = {
|
|
@@ -10,7 +10,9 @@ export type GoChatProps = {
|
|
|
10
10
|
};
|
|
11
11
|
export interface GoChatInstance {
|
|
12
12
|
unreadCount: ComputedRef<number>;
|
|
13
|
-
|
|
13
|
+
getUserRemote: () => (IResUser | null);
|
|
14
|
+
startCall: any;
|
|
15
|
+
endCall: (() => void) | undefined;
|
|
14
16
|
}
|
|
15
17
|
export interface CallInstance {
|
|
16
18
|
userRemoter: Ref<IResUser | null>;
|