@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.
@@ -148,11 +148,7 @@ initPage({ props: props, response: props.response });
148
148
  let __VLS_exposed;
149
149
  defineExpose({
150
150
  unreadCount,
151
- userRemoter: callingRef.value?.userRemoter ?? null,
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
- const __VLS_exposed = { startCall, endCall, userRemoter, callStatus, answer, label };
213
- defineExpose(__VLS_exposed);
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
- userRemoter: IResUser | null;
14
- callStatus: PLIVO_CALL_STATUS | null;
15
- startCall: (() => Promise<void>) | undefined;
16
- endCall: (() => void) | undefined;
17
- callLabel: string;
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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phonghq/go-chat",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist"