@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.
@@ -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
- callInstance: callingRef.value,
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
- callInstance: CallInstance | null;
13
+ getUserRemote: () => (IResUser | null);
14
+ startCall: any;
15
+ endCall: (() => void) | undefined;
14
16
  }
15
17
  export interface CallInstance {
16
18
  userRemoter: Ref<IResUser | null>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phonghq/go-chat",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist"