@developer_tribe/react-native-comnyx 0.11.3 → 0.11.5
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/ios/Comnyx.swift +5 -0
- package/lib/commonjs/api/api.js +1 -1
- package/lib/commonjs/version.js +1 -1
- package/lib/module/api/api.js +1 -1
- package/lib/module/version.js +1 -1
- package/lib/typescript/src/version.d.ts +1 -1
- package/package.json +3 -3
- package/src/api/api.ts +1 -1
- package/src/version.ts +1 -1
package/ios/Comnyx.swift
CHANGED
|
@@ -15,6 +15,7 @@ class Comnyx: RCTEventEmitter {
|
|
|
15
15
|
|
|
16
16
|
override init() {
|
|
17
17
|
super.init()
|
|
18
|
+
resetBadge()
|
|
18
19
|
self.comnyxMessaging = ComnyxMessaging(onNotificationReceived: { notification in
|
|
19
20
|
let notificationData: [String: Any] = [
|
|
20
21
|
"title": notification.request.content.title,
|
|
@@ -181,6 +182,10 @@ class Comnyx: RCTEventEmitter {
|
|
|
181
182
|
resolve(true)
|
|
182
183
|
}
|
|
183
184
|
|
|
185
|
+
private func resetBadge() {
|
|
186
|
+
UIApplication.shared.applicationIconBadgeNumber = 0
|
|
187
|
+
}
|
|
188
|
+
|
|
184
189
|
|
|
185
190
|
}
|
|
186
191
|
|
package/lib/commonjs/api/api.js
CHANGED
|
@@ -17,7 +17,7 @@ const axiosInstance = exports.axiosInstance = _axios.default.create({
|
|
|
17
17
|
headers: {
|
|
18
18
|
'Content-Type': 'application/json'
|
|
19
19
|
},
|
|
20
|
-
timeout:
|
|
20
|
+
timeout: 15_000
|
|
21
21
|
});
|
|
22
22
|
function isInitCalled() {
|
|
23
23
|
return !!axiosInstance.defaults.headers.common['project-id'];
|
package/lib/commonjs/version.js
CHANGED
package/lib/module/api/api.js
CHANGED
package/lib/module/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.11.
|
|
1
|
+
export declare const VERSION = "0.11.5";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@developer_tribe/react-native-comnyx",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.5",
|
|
4
4
|
"description": "React Native chat component with integrated support panel, enabling real-time customer communication and efficient agent workflow management.",
|
|
5
5
|
"source": "./src/index.ts",
|
|
6
6
|
"main": "./lib/commonjs/index.js",
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
11
|
"import": {
|
|
12
|
-
"types": "./lib/typescript/
|
|
12
|
+
"types": "./lib/typescript/src/index.d.ts",
|
|
13
13
|
"default": "./lib/module/index.js"
|
|
14
14
|
},
|
|
15
15
|
"require": {
|
|
16
|
-
"types": "./lib/typescript/
|
|
16
|
+
"types": "./lib/typescript/src/index.d.ts",
|
|
17
17
|
"default": "./lib/commonjs/index.js"
|
|
18
18
|
}
|
|
19
19
|
}
|
package/src/api/api.ts
CHANGED
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// This file is auto-generated. Do not edit manually.
|
|
2
|
-
export const VERSION = '0.11.
|
|
2
|
+
export const VERSION = '0.11.5';
|