@phonghq/go-chat 1.0.20 → 1.0.22
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/main.d.ts +1 -0
- package/dist/composable/usePlivo.d.ts +1 -1
- package/dist/go-chat.es.js +7 -2
- package/dist/go-chat.umd.js +13 -13
- package/dist/test/chat/App.vue.js +6 -2
- package/dist/test/chat/main.js +1 -0
- package/dist/test/components/chat/call/Calling.vue.js +1 -1
- package/dist/test/composable/usePlivo.js +1 -1
- package/dist/test/types/{call.js → chat/call.js} +0 -1
- package/dist/types/chat/global.d.ts +3 -3
- package/package.json +1 -1
- /package/dist/types/{call.d.ts → chat/call.d.ts} +0 -0
|
@@ -147,8 +147,12 @@ const getResponsiveObserver = useDebounce(() => {
|
|
|
147
147
|
initPage({ props: props, response: props.response });
|
|
148
148
|
let __VLS_exposed;
|
|
149
149
|
defineExpose({
|
|
150
|
-
unreadCount
|
|
151
|
-
|
|
150
|
+
get unreadCount() {
|
|
151
|
+
return unreadCount.value;
|
|
152
|
+
},
|
|
153
|
+
get callStatus() {
|
|
154
|
+
return callStatus.value;
|
|
155
|
+
},
|
|
152
156
|
getUserRemote: () => {
|
|
153
157
|
return callingRef.value?.userRemoter ?? null;
|
|
154
158
|
},
|
package/dist/test/chat/main.js
CHANGED
|
@@ -12,7 +12,7 @@ import { formatPhone10number } from '../../../utils/chat/phone-string';
|
|
|
12
12
|
import IconSoundDownload from '../../../assets/icons/call/IconSoundDownload.vue';
|
|
13
13
|
import IconClose from '../../../assets/icons/call/IconClose.vue';
|
|
14
14
|
import { usePlivo } from '../../../composable/usePlivo';
|
|
15
|
-
import { PLIVO_CALL_STATUS } from '../../../types/call';
|
|
15
|
+
import { PLIVO_CALL_STATUS } from '../../../types/chat/call';
|
|
16
16
|
import IconMic from '../../../assets/icons/call/IconMic.vue';
|
|
17
17
|
const { call, end, handleMedia, startIncomingCall, handleCallAnswer, callAnswer, uuid, startPeerConnection } = useCallHelper();
|
|
18
18
|
const handlePlivoCallBack = (status, data) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ComputedRef, Ref } from 'vue';
|
|
2
2
|
import type { IResUser } from '../../types/message';
|
|
3
|
-
import type { PlivoCallStatusType } from '
|
|
3
|
+
import type { PlivoCallStatusType } from './call';
|
|
4
4
|
export type GoChatProps = {
|
|
5
5
|
token?: string;
|
|
6
6
|
id?: string;
|
|
@@ -9,9 +9,9 @@ export type GoChatProps = {
|
|
|
9
9
|
isLib?: boolean;
|
|
10
10
|
};
|
|
11
11
|
export interface GoChatInstance {
|
|
12
|
-
unreadCount:
|
|
12
|
+
unreadCount: number;
|
|
13
13
|
getUserRemote: () => (IResUser | null);
|
|
14
|
-
callStatus:
|
|
14
|
+
callStatus: PlivoCallStatusType | null;
|
|
15
15
|
startCall: (() => Promise<void>) | undefined;
|
|
16
16
|
endCall: (() => void) | undefined;
|
|
17
17
|
}
|
package/package.json
CHANGED
|
File without changes
|