@phonghq/go-chat 1.0.22 → 1.0.23

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.
@@ -153,6 +153,9 @@ defineExpose({
153
153
  get callStatus() {
154
154
  return callStatus.value;
155
155
  },
156
+ get callLabel() {
157
+ return callingRef.value?.label ?? '';
158
+ },
156
159
  getUserRemote: () => {
157
160
  return callingRef.value?.userRemoter ?? null;
158
161
  },
@@ -12,6 +12,7 @@ export interface GoChatInstance {
12
12
  unreadCount: number;
13
13
  getUserRemote: () => (IResUser | null);
14
14
  callStatus: PlivoCallStatusType | null;
15
+ callLabel: string;
15
16
  startCall: (() => Promise<void>) | undefined;
16
17
  endCall: (() => void) | undefined;
17
18
  }
@@ -21,6 +22,6 @@ export interface CallInstance {
21
22
  startCall: ((data: IResUser) => Promise<void>);
22
23
  endCall: (() => void);
23
24
  answer: (() => Promise<void>);
24
- label: ComputedRef<any>;
25
+ label: ComputedRef<string>;
25
26
  }
26
27
  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.22",
3
+ "version": "1.0.23",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist"