@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 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
 
@@ -17,7 +17,7 @@ const axiosInstance = exports.axiosInstance = _axios.default.create({
17
17
  headers: {
18
18
  'Content-Type': 'application/json'
19
19
  },
20
- timeout: 1000
20
+ timeout: 15_000
21
21
  });
22
22
  function isInitCalled() {
23
23
  return !!axiosInstance.defaults.headers.common['project-id'];
@@ -5,5 +5,5 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.VERSION = void 0;
7
7
  // This file is auto-generated. Do not edit manually.
8
- const VERSION = exports.VERSION = '0.11.3';
8
+ const VERSION = exports.VERSION = '0.11.5';
9
9
  //# sourceMappingURL=version.js.map
@@ -7,7 +7,7 @@ const axiosInstance = axios.create({
7
7
  headers: {
8
8
  'Content-Type': 'application/json'
9
9
  },
10
- timeout: 1000
10
+ timeout: 15_000
11
11
  });
12
12
  export function isInitCalled() {
13
13
  return !!axiosInstance.defaults.headers.common['project-id'];
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
 
3
3
  // This file is auto-generated. Do not edit manually.
4
- export const VERSION = '0.11.3';
4
+ export const VERSION = '0.11.5';
5
5
  //# sourceMappingURL=version.js.map
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.11.3";
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",
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/module/src/index.d.ts",
12
+ "types": "./lib/typescript/src/index.d.ts",
13
13
  "default": "./lib/module/index.js"
14
14
  },
15
15
  "require": {
16
- "types": "./lib/typescript/commonjs/src/index.d.ts",
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
@@ -6,7 +6,7 @@ const axiosInstance = axios.create({
6
6
  headers: {
7
7
  'Content-Type': 'application/json',
8
8
  },
9
- timeout: 1000,
9
+ timeout: 15_000,
10
10
  });
11
11
 
12
12
  export function isInitCalled() {
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.3';
2
+ export const VERSION = '0.11.5';