@phonghq/go-chat 1.0.21 → 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.
@@ -147,8 +147,15 @@ const getResponsiveObserver = useDebounce(() => {
147
147
  initPage({ props: props, response: props.response });
148
148
  let __VLS_exposed;
149
149
  defineExpose({
150
- unreadCount,
151
- callStatus,
150
+ get unreadCount() {
151
+ return unreadCount.value;
152
+ },
153
+ get callStatus() {
154
+ return callStatus.value;
155
+ },
156
+ get callLabel() {
157
+ return callingRef.value?.label ?? '';
158
+ },
152
159
  getUserRemote: () => {
153
160
  return callingRef.value?.userRemoter ?? null;
154
161
  },
@@ -9,9 +9,10 @@ export type GoChatProps = {
9
9
  isLib?: boolean;
10
10
  };
11
11
  export interface GoChatInstance {
12
- unreadCount: ComputedRef<number>;
12
+ unreadCount: number;
13
13
  getUserRemote: () => (IResUser | null);
14
- callStatus: ComputedRef<PlivoCallStatusType | null>;
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.21",
3
+ "version": "1.0.23",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist"