@developer_tribe/react-native-comnyx 0.12.6 → 0.12.7

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.
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useListenNativeTokenForDebug = useListenNativeTokenForDebug;
6
+ exports.useComnyxListenNativeTokenForDebug = useComnyxListenNativeTokenForDebug;
7
7
  var _store = require("../store/store.js");
8
8
  //NOTE: It's temporary fo
9
- function useListenNativeTokenForDebug() {
10
- return _store.useAppStore.subscribe(state => state.token);
9
+ function useComnyxListenNativeTokenForDebug() {
10
+ return (0, _store.useAppStore)(state => state.token);
11
11
  }
12
12
  //# sourceMappingURL=useListenNativeTokenForDebug.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_store","require","useListenNativeTokenForDebug","useAppStore","subscribe","state","token"],"sourceRoot":"../../../src","sources":["hooks/useListenNativeTokenForDebug.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA;AACO,SAASC,4BAA4BA,CAAA,EAAG;EAC7C,OAAOC,kBAAW,CAACC,SAAS,CAAEC,KAAK,IAAKA,KAAK,CAACC,KAAK,CAAC;AACtD","ignoreList":[]}
1
+ {"version":3,"names":["_store","require","useComnyxListenNativeTokenForDebug","useAppStore","state","token"],"sourceRoot":"../../../src","sources":["hooks/useListenNativeTokenForDebug.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA;AACO,SAASC,kCAAkCA,CAAA,EAAG;EACnD,OAAO,IAAAC,kBAAW,EAAEC,KAAK,IAAKA,KAAK,CAACC,KAAK,CAAC;AAC5C","ignoreList":[]}
@@ -33,16 +33,16 @@ Object.defineProperty(exports, "registerOneSignalForComnyx", {
33
33
  return _collectData.registerOneSignalForComnyx;
34
34
  }
35
35
  });
36
- Object.defineProperty(exports, "useIsComnyxRegistered", {
36
+ Object.defineProperty(exports, "useComnyxListenNativeTokenForDebug", {
37
37
  enumerable: true,
38
38
  get: function () {
39
- return _useIsComnyxRegistered.useIsComnyxRegistered;
39
+ return _useListenNativeTokenForDebug.useComnyxListenNativeTokenForDebug;
40
40
  }
41
41
  });
42
- Object.defineProperty(exports, "useListenNativeTokenForDebug", {
42
+ Object.defineProperty(exports, "useIsComnyxRegistered", {
43
43
  enumerable: true,
44
44
  get: function () {
45
- return _useListenNativeTokenForDebug.useListenNativeTokenForDebug;
45
+ return _useIsComnyxRegistered.useIsComnyxRegistered;
46
46
  }
47
47
  });
48
48
  var _useListenNativeTokenForDebug = require("./hooks/useListenNativeTokenForDebug.js");
@@ -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.12.6';
8
+ const VERSION = exports.VERSION = '0.12.7';
9
9
  //# sourceMappingURL=version.js.map
@@ -3,7 +3,7 @@
3
3
  import { useAppStore } from "../store/store.js";
4
4
 
5
5
  //NOTE: It's temporary fo
6
- export function useListenNativeTokenForDebug() {
7
- return useAppStore.subscribe(state => state.token);
6
+ export function useComnyxListenNativeTokenForDebug() {
7
+ return useAppStore(state => state.token);
8
8
  }
9
9
  //# sourceMappingURL=useListenNativeTokenForDebug.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["useAppStore","useListenNativeTokenForDebug","subscribe","state","token"],"sourceRoot":"../../../src","sources":["hooks/useListenNativeTokenForDebug.ts"],"mappings":";;AAAA,SAASA,WAAW,QAAQ,mBAAgB;;AAE5C;AACA,OAAO,SAASC,4BAA4BA,CAAA,EAAG;EAC7C,OAAOD,WAAW,CAACE,SAAS,CAAEC,KAAK,IAAKA,KAAK,CAACC,KAAK,CAAC;AACtD","ignoreList":[]}
1
+ {"version":3,"names":["useAppStore","useComnyxListenNativeTokenForDebug","state","token"],"sourceRoot":"../../../src","sources":["hooks/useListenNativeTokenForDebug.ts"],"mappings":";;AAAA,SAASA,WAAW,QAAQ,mBAAgB;;AAE5C;AACA,OAAO,SAASC,kCAAkCA,CAAA,EAAG;EACnD,OAAOD,WAAW,CAAEE,KAAK,IAAKA,KAAK,CAACC,KAAK,CAAC;AAC5C","ignoreList":[]}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- export { useListenNativeTokenForDebug } from "./hooks/useListenNativeTokenForDebug.js";
3
+ export { useComnyxListenNativeTokenForDebug } from "./hooks/useListenNativeTokenForDebug.js";
4
4
  export { Comnyx } from "./register/index.js";
5
5
  export { ComnyxSupport } from "./support/index.js";
6
6
  export { ComnyxNotifications } from "./notifications/index.js";
@@ -1 +1 @@
1
- {"version":3,"names":["useListenNativeTokenForDebug","Comnyx","ComnyxSupport","ComnyxNotifications","NotificationPermissionStatus","registerOneSignalForComnyx","useIsComnyxRegistered"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA,SAASA,4BAA4B,QAAQ,yCAAsC;AAEnF,SAASC,MAAM,QAAQ,qBAAY;AACnC,SAASC,aAAa,QAAQ,oBAAW;AACzC,SAASC,mBAAmB,QAAQ,0BAAiB;AACrD;AACA,SAASC,4BAA4B,QAAQ,mBAAgB;;AAE7D;AACA,SAASC,0BAA0B,QAAQ,2BAAwB;AACnE,SAASC,qBAAqB,QAAQ,kCAA+B","ignoreList":[]}
1
+ {"version":3,"names":["useComnyxListenNativeTokenForDebug","Comnyx","ComnyxSupport","ComnyxNotifications","NotificationPermissionStatus","registerOneSignalForComnyx","useIsComnyxRegistered"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA,SAASA,kCAAkC,QAAQ,yCAAsC;AAEzF,SAASC,MAAM,QAAQ,qBAAY;AACnC,SAASC,aAAa,QAAQ,oBAAW;AACzC,SAASC,mBAAmB,QAAQ,0BAAiB;AACrD;AACA,SAASC,4BAA4B,QAAQ,mBAAgB;;AAE7D;AACA,SAASC,0BAA0B,QAAQ,2BAAwB;AACnE,SAASC,qBAAqB,QAAQ,kCAA+B","ignoreList":[]}
@@ -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.12.6';
4
+ export const VERSION = '0.12.7';
5
5
  //# sourceMappingURL=version.js.map
@@ -1,2 +1,2 @@
1
- export declare function useListenNativeTokenForDebug(): () => void;
1
+ export declare function useComnyxListenNativeTokenForDebug(): string | null;
2
2
  //# sourceMappingURL=useListenNativeTokenForDebug.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useListenNativeTokenForDebug.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useListenNativeTokenForDebug.ts"],"names":[],"mappings":"AAGA,wBAAgB,4BAA4B,eAE3C"}
1
+ {"version":3,"file":"useListenNativeTokenForDebug.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useListenNativeTokenForDebug.ts"],"names":[],"mappings":"AAGA,wBAAgB,kCAAkC,kBAEjD"}
@@ -1,4 +1,4 @@
1
- export { useListenNativeTokenForDebug } from './hooks/useListenNativeTokenForDebug';
1
+ export { useComnyxListenNativeTokenForDebug } from './hooks/useListenNativeTokenForDebug';
2
2
  export type { NotificationClickedEvent } from './notifications';
3
3
  export { Comnyx } from './register';
4
4
  export { ComnyxSupport } from './support';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AACpF,YAAY,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAC;AAG9D,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAC1F,YAAY,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAC;AAG9D,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.12.6";
1
+ export declare const VERSION = "0.12.7";
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.12.6",
3
+ "version": "0.12.7",
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",
@@ -1,6 +1,6 @@
1
1
  import { useAppStore } from '../store/store';
2
2
 
3
3
  //NOTE: It's temporary fo
4
- export function useListenNativeTokenForDebug() {
5
- return useAppStore.subscribe((state) => state.token);
4
+ export function useComnyxListenNativeTokenForDebug() {
5
+ return useAppStore((state) => state.token);
6
6
  }
package/src/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { useListenNativeTokenForDebug } from './hooks/useListenNativeTokenForDebug';
1
+ export { useComnyxListenNativeTokenForDebug } from './hooks/useListenNativeTokenForDebug';
2
2
  export type { NotificationClickedEvent } from './notifications';
3
3
  export { Comnyx } from './register';
4
4
  export { ComnyxSupport } from './support';
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.12.6';
2
+ export const VERSION = '0.12.7';