webtonative 1.0.78-beta.3 → 1.0.78-beta.4
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/OrufyConnect/index.d.ts +3 -1
- package/OrufyConnect/index.js +2 -1
- package/package.json +1 -1
package/OrufyConnect/index.d.ts
CHANGED
|
@@ -4,7 +4,9 @@ type ICb = {
|
|
|
4
4
|
} & Record<string, any>) => void;
|
|
5
5
|
};
|
|
6
6
|
export declare const onUnreadChatCountsChange: (options?: ICb) => void;
|
|
7
|
-
export declare const openConnectWidget: (options?: ICb
|
|
7
|
+
export declare const openConnectWidget: (options?: ICb & {
|
|
8
|
+
chatId?: string;
|
|
9
|
+
}) => void;
|
|
8
10
|
export declare const widgetLogin: (data?: Record<string, any>) => void;
|
|
9
11
|
export declare const setUserDetails: (data?: Record<string, any>) => void;
|
|
10
12
|
export declare const widgetLogout: () => void;
|
package/OrufyConnect/index.js
CHANGED
|
@@ -30,11 +30,12 @@ var openConnectWidget = function (options) {
|
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
32
|
if (index_1.isAndroidApp) {
|
|
33
|
-
utills_1.webToNative.openConnectWidget();
|
|
33
|
+
utills_1.webToNative.openConnectWidget(JSON.stringify(options));
|
|
34
34
|
}
|
|
35
35
|
else if (index_1.isIosApp && utills_1.webToNativeIos) {
|
|
36
36
|
utills_1.webToNativeIos.postMessage({
|
|
37
37
|
action: "openConnectWidget",
|
|
38
|
+
data: options,
|
|
38
39
|
});
|
|
39
40
|
}
|
|
40
41
|
};
|