zixflow-reactnative 1.1.2 → 1.1.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.
Files changed (249) hide show
  1. package/README.md +2224 -322
  2. package/android/build.gradle +18 -1
  3. package/android/consumer-rules.pro +3 -2
  4. package/android/gradle.properties +1 -1
  5. package/android/src/main/java/com/zixflow/reactnative/sdk/NativeZixflowModule.kt +69 -24
  6. package/android/src/main/java/com/zixflow/reactnative/sdk/ZixflowReactNativePackage.kt +25 -1
  7. package/android/src/main/java/com/zixflow/reactnative/sdk/constant/Keys.kt +19 -3
  8. package/android/src/main/java/com/zixflow/reactnative/sdk/geofence/NativeGeofenceModule.kt +65 -0
  9. package/android/src/main/java/com/zixflow/reactnative/sdk/liveactivities/NativeLiveActivitiesModule.kt +310 -0
  10. package/android/src/main/java/com/zixflow/reactnative/sdk/logging/NativeZixflowLoggingModule.kt +2 -2
  11. package/android/src/main/java/com/zixflow/reactnative/sdk/messaginginapp/NativeMessagingInAppModule.kt +149 -10
  12. package/android/src/main/java/com/zixflow/reactnative/sdk/messaginginapp/ReactInboxEventListener.kt +99 -0
  13. package/android/src/main/java/com/zixflow/reactnative/sdk/messaginginbox/NotificationInboxBellViewManager.kt +38 -0
  14. package/android/src/main/java/com/zixflow/reactnative/sdk/messaginginbox/NotificationInboxViewManager.kt +30 -0
  15. package/android/src/main/java/com/zixflow/reactnative/sdk/messaginginbox/ReactComposeHostView.kt +96 -0
  16. package/android/src/main/java/com/zixflow/reactnative/sdk/messaginginbox/ReactNotificationInboxBellView.kt +48 -0
  17. package/android/src/main/java/com/zixflow/reactnative/sdk/messaginginbox/ReactNotificationInboxView.kt +17 -0
  18. package/android/src/main/java/com/zixflow/reactnative/sdk/messagingpush/NativeMessagingPushModule.kt +11 -1
  19. package/android/src/main/res/values/zixflow_config.xml +1 -1
  20. package/android/zixflow-core.gradle +17 -7
  21. package/docs/cocoapods-deployment-target-normalization.md +139 -0
  22. package/ios/cocoapods_deployment_target.rb +432 -0
  23. package/ios/wrappers/NativeZixflow.mm +37 -0
  24. package/ios/wrappers/NativeZixflow.swift +135 -1
  25. package/ios/wrappers/ZixflowReactNativeDeepLinkRequestStore.swift +123 -0
  26. package/ios/wrappers/ZixflowReactNativeDeepLinkRouter.swift +312 -0
  27. package/ios/wrappers/geofence/NativeGeofence.mm +46 -0
  28. package/ios/wrappers/geofence/NativeGeofence.swift +27 -0
  29. package/ios/wrappers/inapp/NativeMessagingInApp.mm +22 -0
  30. package/ios/wrappers/inapp/NativeMessagingInApp.swift +90 -0
  31. package/ios/wrappers/inbox/InboxHostContainment.swift +40 -0
  32. package/ios/wrappers/inbox/RCTNotificationInboxBellNative.h +12 -0
  33. package/ios/wrappers/inbox/RCTNotificationInboxBellNative.mm +98 -0
  34. package/ios/wrappers/inbox/RCTNotificationInboxViewNative.h +12 -0
  35. package/ios/wrappers/inbox/RCTNotificationInboxViewNative.mm +78 -0
  36. package/ios/wrappers/inbox/ReactInboxEventListener.swift +76 -0
  37. package/ios/wrappers/inbox/ReactNotificationInboxBellView.h +22 -0
  38. package/ios/wrappers/inbox/ReactNotificationInboxBellView.swift +109 -0
  39. package/ios/wrappers/inbox/ReactNotificationInboxView.h +22 -0
  40. package/ios/wrappers/inbox/ReactNotificationInboxView.swift +69 -0
  41. package/ios/wrappers/liveactivities/NativeLiveActivities.mm +83 -0
  42. package/ios/wrappers/liveactivities/NativeLiveActivities.swift +390 -0
  43. package/ios/wrappers/location/NativeLocation.swift +7 -5
  44. package/ios/wrappers/utils/ZixflowConfigUtils.swift +5 -9
  45. package/ios/wrappers/utils/ZixflowConstants.swift +4 -0
  46. package/ios/wrappers/zixflow_reactnative.h +6 -0
  47. package/lib/commonjs/components/NotificationInboxBellView.js +49 -0
  48. package/lib/commonjs/components/NotificationInboxBellView.js.map +1 -0
  49. package/lib/commonjs/components/NotificationInboxView.js +36 -0
  50. package/lib/commonjs/components/NotificationInboxView.js.map +1 -0
  51. package/lib/commonjs/components/index.js +14 -0
  52. package/lib/commonjs/components/index.js.map +1 -1
  53. package/lib/commonjs/index.js +81 -4
  54. package/lib/commonjs/index.js.map +1 -1
  55. package/lib/commonjs/notification-inbox.js +1 -0
  56. package/lib/commonjs/notification-inbox.js.map +1 -1
  57. package/lib/commonjs/specs/components/NotificationInboxBellNativeComponent.ts +24 -0
  58. package/lib/commonjs/specs/components/NotificationInboxViewNativeComponent.ts +22 -0
  59. package/lib/commonjs/specs/modules/NativeZixflow.js.map +1 -1
  60. package/lib/commonjs/specs/modules/NativeZixflowGeofence.js +15 -0
  61. package/lib/commonjs/specs/modules/NativeZixflowGeofence.js.map +1 -0
  62. package/lib/commonjs/specs/modules/NativeZixflowLiveActivities.js +23 -0
  63. package/lib/commonjs/specs/modules/NativeZixflowLiveActivities.js.map +1 -0
  64. package/lib/commonjs/specs/modules/NativeZixflowMessagingInApp.js +3 -1
  65. package/lib/commonjs/specs/modules/NativeZixflowMessagingInApp.js.map +1 -1
  66. package/lib/commonjs/specs/modules/NativeZixflowMessagingPush.js +3 -1
  67. package/lib/commonjs/specs/modules/NativeZixflowMessagingPush.js.map +1 -1
  68. package/lib/commonjs/types/data-pipelines.js +15 -15
  69. package/lib/commonjs/types/data-pipelines.js.map +1 -1
  70. package/lib/commonjs/types/in-app.js +24 -1
  71. package/lib/commonjs/types/in-app.js.map +1 -1
  72. package/lib/commonjs/types/inbox.js +79 -0
  73. package/lib/commonjs/types/inbox.js.map +1 -0
  74. package/lib/commonjs/types/index.js +22 -0
  75. package/lib/commonjs/types/index.js.map +1 -1
  76. package/lib/commonjs/types/live-activities.js +85 -0
  77. package/lib/commonjs/types/live-activities.js.map +1 -0
  78. package/lib/commonjs/utils/param-validation.js +77 -2
  79. package/lib/commonjs/utils/param-validation.js.map +1 -1
  80. package/lib/commonjs/zixflow-cdp.js +101 -11
  81. package/lib/commonjs/zixflow-cdp.js.map +1 -1
  82. package/lib/commonjs/zixflow-geofence.js +55 -0
  83. package/lib/commonjs/zixflow-geofence.js.map +1 -0
  84. package/lib/commonjs/zixflow-inapp.js +120 -0
  85. package/lib/commonjs/zixflow-inapp.js.map +1 -1
  86. package/lib/commonjs/zixflow-liveactivities.js +85 -0
  87. package/lib/commonjs/zixflow-liveactivities.js.map +1 -0
  88. package/lib/commonjs/zixflow.js.map +1 -1
  89. package/lib/module/components/NotificationInboxBellView.js +44 -0
  90. package/lib/module/components/NotificationInboxBellView.js.map +1 -0
  91. package/lib/module/components/NotificationInboxView.js +31 -0
  92. package/lib/module/components/NotificationInboxView.js.map +1 -0
  93. package/lib/module/components/index.js +5 -0
  94. package/lib/module/components/index.js.map +1 -1
  95. package/lib/module/index.js +8 -3
  96. package/lib/module/index.js.map +1 -1
  97. package/lib/module/notification-inbox.js +1 -1
  98. package/lib/module/notification-inbox.js.map +1 -1
  99. package/lib/module/specs/components/NotificationInboxBellNativeComponent.ts +24 -0
  100. package/lib/module/specs/components/NotificationInboxViewNativeComponent.ts +22 -0
  101. package/lib/module/specs/modules/NativeZixflow.js.map +1 -1
  102. package/lib/module/specs/modules/NativeZixflowGeofence.js +13 -0
  103. package/lib/module/specs/modules/NativeZixflowGeofence.js.map +1 -0
  104. package/lib/module/specs/modules/NativeZixflowLiveActivities.js +21 -0
  105. package/lib/module/specs/modules/NativeZixflowLiveActivities.js.map +1 -0
  106. package/lib/module/specs/modules/NativeZixflowMessagingInApp.js +3 -1
  107. package/lib/module/specs/modules/NativeZixflowMessagingInApp.js.map +1 -1
  108. package/lib/module/specs/modules/NativeZixflowMessagingPush.js +3 -1
  109. package/lib/module/specs/modules/NativeZixflowMessagingPush.js.map +1 -1
  110. package/lib/module/types/data-pipelines.js +15 -15
  111. package/lib/module/types/data-pipelines.js.map +1 -1
  112. package/lib/module/types/in-app.js +24 -0
  113. package/lib/module/types/in-app.js.map +1 -1
  114. package/lib/module/types/inbox.js +75 -0
  115. package/lib/module/types/inbox.js.map +1 -0
  116. package/lib/module/types/index.js +2 -0
  117. package/lib/module/types/index.js.map +1 -1
  118. package/lib/module/types/live-activities.js +88 -0
  119. package/lib/module/types/live-activities.js.map +1 -0
  120. package/lib/module/utils/param-validation.js +77 -2
  121. package/lib/module/utils/param-validation.js.map +1 -1
  122. package/lib/module/zixflow-cdp.js +101 -11
  123. package/lib/module/zixflow-cdp.js.map +1 -1
  124. package/lib/module/zixflow-geofence.js +50 -0
  125. package/lib/module/zixflow-geofence.js.map +1 -0
  126. package/lib/module/zixflow-inapp.js +99 -1
  127. package/lib/module/zixflow-inapp.js.map +1 -1
  128. package/lib/module/zixflow-liveactivities.js +80 -0
  129. package/lib/module/zixflow-liveactivities.js.map +1 -0
  130. package/lib/module/zixflow.js +0 -6
  131. package/lib/module/zixflow.js.map +1 -1
  132. package/lib/typescript/commonjs/components/NotificationInboxBellView.d.ts +39 -0
  133. package/lib/typescript/commonjs/components/NotificationInboxBellView.d.ts.map +1 -0
  134. package/lib/typescript/commonjs/components/NotificationInboxView.d.ts +25 -0
  135. package/lib/typescript/commonjs/components/NotificationInboxView.d.ts.map +1 -0
  136. package/lib/typescript/commonjs/components/index.d.ts +4 -0
  137. package/lib/typescript/commonjs/components/index.d.ts.map +1 -1
  138. package/lib/typescript/commonjs/index.d.ts +8 -1
  139. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  140. package/lib/typescript/commonjs/notification-inbox.d.ts +5 -0
  141. package/lib/typescript/commonjs/notification-inbox.d.ts.map +1 -1
  142. package/lib/typescript/commonjs/specs/components/NotificationInboxBellNativeComponent.d.ts +13 -0
  143. package/lib/typescript/commonjs/specs/components/NotificationInboxBellNativeComponent.d.ts.map +1 -0
  144. package/lib/typescript/commonjs/specs/components/NotificationInboxViewNativeComponent.d.ts +12 -0
  145. package/lib/typescript/commonjs/specs/components/NotificationInboxViewNativeComponent.d.ts.map +1 -0
  146. package/lib/typescript/commonjs/specs/modules/NativeZixflow.d.ts +6 -1
  147. package/lib/typescript/commonjs/specs/modules/NativeZixflow.d.ts.map +1 -1
  148. package/lib/typescript/commonjs/specs/modules/NativeZixflowGeofence.d.ts +13 -0
  149. package/lib/typescript/commonjs/specs/modules/NativeZixflowGeofence.d.ts.map +1 -0
  150. package/lib/typescript/commonjs/specs/modules/NativeZixflowLiveActivities.d.ts +31 -0
  151. package/lib/typescript/commonjs/specs/modules/NativeZixflowLiveActivities.d.ts.map +1 -0
  152. package/lib/typescript/commonjs/specs/modules/NativeZixflowMessagingInApp.d.ts +5 -1
  153. package/lib/typescript/commonjs/specs/modules/NativeZixflowMessagingInApp.d.ts.map +1 -1
  154. package/lib/typescript/commonjs/specs/modules/NativeZixflowMessagingPush.d.ts +1 -1
  155. package/lib/typescript/commonjs/specs/modules/NativeZixflowMessagingPush.d.ts.map +1 -1
  156. package/lib/typescript/commonjs/types/data-pipelines.d.ts +54 -18
  157. package/lib/typescript/commonjs/types/data-pipelines.d.ts.map +1 -1
  158. package/lib/typescript/commonjs/types/in-app.d.ts +22 -0
  159. package/lib/typescript/commonjs/types/in-app.d.ts.map +1 -1
  160. package/lib/typescript/commonjs/types/inbox.d.ts +97 -0
  161. package/lib/typescript/commonjs/types/inbox.d.ts.map +1 -0
  162. package/lib/typescript/commonjs/types/index.d.ts +2 -0
  163. package/lib/typescript/commonjs/types/index.d.ts.map +1 -1
  164. package/lib/typescript/commonjs/types/live-activities.d.ts +161 -0
  165. package/lib/typescript/commonjs/types/live-activities.d.ts.map +1 -0
  166. package/lib/typescript/commonjs/utils/param-validation.d.ts +7 -0
  167. package/lib/typescript/commonjs/utils/param-validation.d.ts.map +1 -1
  168. package/lib/typescript/commonjs/zixflow-cdp.d.ts +38 -0
  169. package/lib/typescript/commonjs/zixflow-cdp.d.ts.map +1 -1
  170. package/lib/typescript/commonjs/zixflow-geofence.d.ts +36 -0
  171. package/lib/typescript/commonjs/zixflow-geofence.d.ts.map +1 -0
  172. package/lib/typescript/commonjs/zixflow-inapp.d.ts +36 -2
  173. package/lib/typescript/commonjs/zixflow-inapp.d.ts.map +1 -1
  174. package/lib/typescript/commonjs/zixflow-liveactivities.d.ts +66 -0
  175. package/lib/typescript/commonjs/zixflow-liveactivities.d.ts.map +1 -0
  176. package/lib/typescript/commonjs/zixflow.d.ts +0 -5
  177. package/lib/typescript/commonjs/zixflow.d.ts.map +1 -1
  178. package/lib/typescript/module/components/NotificationInboxBellView.d.ts +39 -0
  179. package/lib/typescript/module/components/NotificationInboxBellView.d.ts.map +1 -0
  180. package/lib/typescript/module/components/NotificationInboxView.d.ts +25 -0
  181. package/lib/typescript/module/components/NotificationInboxView.d.ts.map +1 -0
  182. package/lib/typescript/module/components/index.d.ts +4 -0
  183. package/lib/typescript/module/components/index.d.ts.map +1 -1
  184. package/lib/typescript/module/index.d.ts +8 -1
  185. package/lib/typescript/module/index.d.ts.map +1 -1
  186. package/lib/typescript/module/notification-inbox.d.ts +5 -0
  187. package/lib/typescript/module/notification-inbox.d.ts.map +1 -1
  188. package/lib/typescript/module/specs/components/NotificationInboxBellNativeComponent.d.ts +13 -0
  189. package/lib/typescript/module/specs/components/NotificationInboxBellNativeComponent.d.ts.map +1 -0
  190. package/lib/typescript/module/specs/components/NotificationInboxViewNativeComponent.d.ts +12 -0
  191. package/lib/typescript/module/specs/components/NotificationInboxViewNativeComponent.d.ts.map +1 -0
  192. package/lib/typescript/module/specs/modules/NativeZixflow.d.ts +6 -1
  193. package/lib/typescript/module/specs/modules/NativeZixflow.d.ts.map +1 -1
  194. package/lib/typescript/module/specs/modules/NativeZixflowGeofence.d.ts +13 -0
  195. package/lib/typescript/module/specs/modules/NativeZixflowGeofence.d.ts.map +1 -0
  196. package/lib/typescript/module/specs/modules/NativeZixflowLiveActivities.d.ts +31 -0
  197. package/lib/typescript/module/specs/modules/NativeZixflowLiveActivities.d.ts.map +1 -0
  198. package/lib/typescript/module/specs/modules/NativeZixflowMessagingInApp.d.ts +5 -1
  199. package/lib/typescript/module/specs/modules/NativeZixflowMessagingInApp.d.ts.map +1 -1
  200. package/lib/typescript/module/specs/modules/NativeZixflowMessagingPush.d.ts +1 -1
  201. package/lib/typescript/module/specs/modules/NativeZixflowMessagingPush.d.ts.map +1 -1
  202. package/lib/typescript/module/types/data-pipelines.d.ts +54 -18
  203. package/lib/typescript/module/types/data-pipelines.d.ts.map +1 -1
  204. package/lib/typescript/module/types/in-app.d.ts +22 -0
  205. package/lib/typescript/module/types/in-app.d.ts.map +1 -1
  206. package/lib/typescript/module/types/inbox.d.ts +97 -0
  207. package/lib/typescript/module/types/inbox.d.ts.map +1 -0
  208. package/lib/typescript/module/types/index.d.ts +2 -0
  209. package/lib/typescript/module/types/index.d.ts.map +1 -1
  210. package/lib/typescript/module/types/live-activities.d.ts +161 -0
  211. package/lib/typescript/module/types/live-activities.d.ts.map +1 -0
  212. package/lib/typescript/module/utils/param-validation.d.ts +7 -0
  213. package/lib/typescript/module/utils/param-validation.d.ts.map +1 -1
  214. package/lib/typescript/module/zixflow-cdp.d.ts +38 -0
  215. package/lib/typescript/module/zixflow-cdp.d.ts.map +1 -1
  216. package/lib/typescript/module/zixflow-geofence.d.ts +36 -0
  217. package/lib/typescript/module/zixflow-geofence.d.ts.map +1 -0
  218. package/lib/typescript/module/zixflow-inapp.d.ts +36 -2
  219. package/lib/typescript/module/zixflow-inapp.d.ts.map +1 -1
  220. package/lib/typescript/module/zixflow-liveactivities.d.ts +66 -0
  221. package/lib/typescript/module/zixflow-liveactivities.d.ts.map +1 -0
  222. package/lib/typescript/module/zixflow.d.ts +0 -5
  223. package/lib/typescript/module/zixflow.d.ts.map +1 -1
  224. package/package.json +14 -5
  225. package/src/components/NotificationInboxBellView.tsx +55 -0
  226. package/src/components/NotificationInboxView.tsx +30 -0
  227. package/src/components/index.ts +6 -0
  228. package/src/index.ts +8 -3
  229. package/src/notification-inbox.ts +1 -1
  230. package/src/specs/components/NotificationInboxBellNativeComponent.ts +24 -0
  231. package/src/specs/components/NotificationInboxViewNativeComponent.ts +22 -0
  232. package/src/specs/modules/NativeZixflow.ts +9 -1
  233. package/src/specs/modules/NativeZixflowGeofence.ts +14 -0
  234. package/src/specs/modules/NativeZixflowLiveActivities.ts +39 -0
  235. package/src/specs/modules/NativeZixflowMessagingInApp.ts +12 -1
  236. package/src/specs/modules/NativeZixflowMessagingPush.ts +3 -1
  237. package/src/types/data-pipelines.ts +55 -19
  238. package/src/types/in-app.ts +23 -0
  239. package/src/types/inbox.ts +110 -0
  240. package/src/types/index.ts +2 -0
  241. package/src/types/live-activities.ts +170 -0
  242. package/src/utils/param-validation.ts +104 -1
  243. package/src/zixflow-cdp.ts +119 -13
  244. package/src/zixflow-geofence.ts +56 -0
  245. package/src/zixflow-inapp.ts +125 -2
  246. package/src/zixflow-liveactivities.ts +86 -0
  247. package/src/zixflow.ts +0 -6
  248. package/zixflow-reactnative-richpush.podspec +6 -3
  249. package/zixflow-reactnative.podspec +28 -2
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ZixflowLiveActivities = void 0;
7
+ var _NativeZixflowLiveActivities = _interopRequireDefault(require("./specs/modules/NativeZixflowLiveActivities.js"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
+ /**
10
+ * Ensures all methods defined in codegen spec are implemented by the public module
11
+ *
12
+ * @internal
13
+ */
14
+
15
+ /**
16
+ * Live Activities (iOS) / Live Notifications (Android).
17
+ *
18
+ * Start, update, and end live, updating notifications from built-in templates
19
+ * (Segments, Countdown Timer). Enable the activity types via the `liveNotifications`
20
+ * key of the SDK config passed to {@link Zixflow.initialize}.
21
+ *
22
+ * @public
23
+ */
24
+ class ZixflowLiveActivities {
25
+ /**
26
+ * Report an opened Live Activity and return the URL the app should route.
27
+ *
28
+ * Zixflow tracking URLs are unwrapped to their destination after attribution is recorded.
29
+ * A tracking URL without a destination returns `null`; any other URL is returned unchanged.
30
+ * This method never rejects, so it can safely compose with Expo Router's
31
+ * `redirectSystemPath` hook. On Android it is a pass-through.
32
+ *
33
+ * Use this in exactly one URL-routing layer. Calling it more than once for the same Zixflow
34
+ * tracking URL reports more than one opened event.
35
+ *
36
+ * @param url - The incoming URL from the host's linking lifecycle.
37
+ * @returns The URL to route, or `null` when the Zixflow URL has no destination.
38
+ */
39
+ async handleWidgetUrl(url) {
40
+ try {
41
+ return await _NativeZixflowLiveActivities.default.handleWidgetUrl(url);
42
+ } catch {
43
+ return url;
44
+ }
45
+ }
46
+
47
+ /**
48
+ * Start a built-in-template activity.
49
+ *
50
+ * @param payload - Template payload; `payload.type` selects the template.
51
+ * @returns The SDK-minted activity id, used for later `update`/`end`.
52
+ */
53
+ start(payload) {
54
+ return _NativeZixflowLiveActivities.default.start(payload);
55
+ }
56
+
57
+ /**
58
+ * Replace the whole content-state of a running activity.
59
+ *
60
+ * ActivityKit (iOS) replaces content-state wholesale, so pass the **full** desired
61
+ * state — not just the changed fields. Static attributes (e.g. `header`) cannot
62
+ * change after start and are ignored on iOS.
63
+ *
64
+ * @param activityId - Id returned by {@link ZixflowLiveActivities.start}.
65
+ * @param payload - The complete desired state.
66
+ */
67
+ update(activityId, payload) {
68
+ return _NativeZixflowLiveActivities.default.update(activityId, payload);
69
+ }
70
+
71
+ /**
72
+ * End a running activity, optionally rendering a final content-state.
73
+ *
74
+ * @param activityId - Id returned by {@link ZixflowLiveActivities.start}.
75
+ * @param payload - **iOS only.** The final content-state to render as the activity ends.
76
+ * ActivityKit keeps the last content-state on screen when none is given, so pass one to show
77
+ * a terminal state (e.g. all segments complete). Android renders its own terminal state and
78
+ * ignores this.
79
+ */
80
+ end(activityId, payload) {
81
+ return _NativeZixflowLiveActivities.default.end(activityId, payload);
82
+ }
83
+ }
84
+ exports.ZixflowLiveActivities = ZixflowLiveActivities;
85
+ //# sourceMappingURL=zixflow-liveactivities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_NativeZixflowLiveActivities","_interopRequireDefault","require","e","__esModule","default","ZixflowLiveActivities","handleWidgetUrl","url","NativeModule","start","payload","update","activityId","end","exports"],"sourceRoot":"../../src","sources":["zixflow-liveactivities.ts"],"mappings":";;;;;;AACA,IAAAA,4BAAA,GAAAC,sBAAA,CAAAC,OAAA;AAGqD,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAGrD;AACA;AACA;AACA;AACA;;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMG,qBAAqB,CAAqC;EACrE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAMC,eAAeA,CAACC,GAAW,EAA0B;IACzD,IAAI;MACF,OAAO,MAAMC,oCAAY,CAACF,eAAe,CAACC,GAAG,CAAC;IAChD,CAAC,CAAC,MAAM;MACN,OAAOA,GAAG;IACZ;EACF;;EAEA;AACF;AACA;AACA;AACA;AACA;EACEE,KAAKA,CAACC,OAA4B,EAAmB;IACnD,OAAOF,oCAAY,CAACC,KAAK,CAACC,OAAO,CAAC;EACpC;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACEC,MAAMA,CAACC,UAAkB,EAAEF,OAA4B,EAAiB;IACtE,OAAOF,oCAAY,CAACG,MAAM,CAACC,UAAU,EAAEF,OAAO,CAAC;EACjD;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACEG,GAAGA,CAACD,UAAkB,EAAEF,OAA6B,EAAiB;IACpE,OAAOF,oCAAY,CAACK,GAAG,CAACD,UAAU,EAAEF,OAAO,CAAC;EAC9C;AACF;AAACI,OAAA,CAAAT,qBAAA,GAAAA,qBAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_zixflowCdp","require","_zixflowInapp","_zixflowLocation","_zixflowPush","_index","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_notificationInbox"],"sourceRoot":"../../src","sources":["zixflow.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,gBAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAGA,IAAAI,MAAA,GAAAJ,OAAA;AAAAK,MAAA,CAAAC,IAAA,CAAAF,MAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,MAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAZ,MAAA,CAAAI,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,kBAAA,GAAAjB,OAAA;AAAAK,MAAA,CAAAC,IAAA,CAAAW,kBAAA,EAAAV,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAS,kBAAA,CAAAT,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,kBAAA,CAAAT,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
1
+ {"version":3,"names":["_zixflowCdp","require","_zixflowInapp","_zixflowLocation","_zixflowPush","_index","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_notificationInbox"],"sourceRoot":"../../src","sources":["zixflow.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,gBAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAGA,IAAAI,MAAA,GAAAJ,OAAA;AAAAK,MAAA,CAAAC,IAAA,CAAAF,MAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,MAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAZ,MAAA,CAAAI,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,kBAAA,GAAAjB,OAAA;AAAAK,MAAA,CAAAC,IAAA,CAAAW,kBAAA,EAAAV,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAS,kBAAA,CAAAT,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,kBAAA,CAAAT,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import NotificationInboxBellNativeComponent from '../specs/components/NotificationInboxBellNativeComponent';
5
+
6
+ /**
7
+ * Props for the {@link NotificationInboxBellView} component.
8
+ */
9
+ /** @public */
10
+ import { jsx as _jsx } from "react/jsx-runtime";
11
+ /**
12
+ * The Visual Notification Inbox bell (with unread badge). Tapping it opens the
13
+ * SDK's own inbox panel — the host presents nothing.
14
+ *
15
+ * Place it wherever the app's layout calls for it. Remote branding still styles
16
+ * the bell itself (colors, icon), but branding's *position* is not applied: the
17
+ * host owns placement via `style`. The bell renders nothing when the inbox has
18
+ * nothing to show, so give it a fixed size for predictable layout — at least 88
19
+ * points/dp square, since the native composition insets the 56pt bell by 16 on
20
+ * each side and a smaller box squeezes the circle onto the glyph.
21
+ *
22
+ * @example
23
+ * ```tsx
24
+ * <NotificationInboxBellView
25
+ * style={{ width: 88, height: 88 }}
26
+ * onTap={() => analytics.track('inbox_bell_tapped')}
27
+ * />
28
+ * ```
29
+ */
30
+ /** @public */
31
+ const NotificationInboxBellView = ({
32
+ onTap,
33
+ ...props
34
+ }) => {
35
+ const handleTap = () => {
36
+ onTap?.();
37
+ };
38
+ return /*#__PURE__*/_jsx(NotificationInboxBellNativeComponent, {
39
+ ...props,
40
+ onTap: handleTap
41
+ });
42
+ };
43
+ export default NotificationInboxBellView;
44
+ //# sourceMappingURL=NotificationInboxBellView.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","NotificationInboxBellNativeComponent","jsx","_jsx","NotificationInboxBellView","onTap","props","handleTap"],"sourceRoot":"../../../src","sources":["components/NotificationInboxBellView.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,oCAAoC,MAEpC,0DAA0D;;AAEjE;AACA;AACA;AACA;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAeA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,yBAAmE,GAAGA,CAAC;EAC3EC,KAAK;EACL,GAAGC;AACL,CAAC,KAAK;EACJ,MAAMC,SAAS,GAAGA,CAAA,KAAM;IACtBF,KAAK,GAAG,CAAC;EACX,CAAC;EAED,oBAAOF,IAAA,CAACF,oCAAoC;IAAA,GAAKK,KAAK;IAAED,KAAK,EAAEE;EAAU,CAAE,CAAC;AAC9E,CAAC;AAED,eAAeH,yBAAyB","ignoreList":[]}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import NotificationInboxViewNativeComponent from '../specs/components/NotificationInboxViewNativeComponent';
5
+
6
+ /**
7
+ * Props for the {@link NotificationInboxView} component.
8
+ */
9
+ /** @public */
10
+ import { jsx as _jsx } from "react/jsx-runtime";
11
+ /**
12
+ * The Visual Notification Inbox message list — the Jist-rendered messages —
13
+ * embeddable directly in your own screen. It fills the area you give it via
14
+ * `style` and brings no surrounding chrome (no bell, no scrim).
15
+ *
16
+ * Message actions are handled by the existing global InboxEventListener, so this
17
+ * component takes no per-message action callback.
18
+ *
19
+ * @example
20
+ * ```tsx
21
+ * <NotificationInboxView style={{ flex: 1 }} />
22
+ * ```
23
+ */
24
+ /** @public */
25
+ const NotificationInboxView = props => {
26
+ return /*#__PURE__*/_jsx(NotificationInboxViewNativeComponent, {
27
+ ...props
28
+ });
29
+ };
30
+ export default NotificationInboxView;
31
+ //# sourceMappingURL=NotificationInboxView.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","NotificationInboxViewNativeComponent","jsx","_jsx","NotificationInboxView","props"],"sourceRoot":"../../../src","sources":["components/NotificationInboxView.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,oCAAoC,MAEpC,0DAA0D;;AAEjE;AACA;AACA;AACA;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,qBAA2D,GAAIC,KAAK,IAAK;EAC7E,oBAAOF,IAAA,CAACF,oCAAoC;IAAA,GAAKI;EAAK,CAAG,CAAC;AAC5D,CAAC;AAED,eAAeD,qBAAqB","ignoreList":[]}
@@ -3,4 +3,9 @@
3
3
  // Export all components and types from the components directory for simplified imports
4
4
 
5
5
  export { default as InlineInAppMessageView } from "./InlineInAppMessageView.js";
6
+
7
+ // Visual Notification Inbox UI components
8
+
9
+ export { default as NotificationInboxBellView } from "./NotificationInboxBellView.js";
10
+ export { default as NotificationInboxView } from "./NotificationInboxView.js";
6
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["default","InlineInAppMessageView"],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":";;AAAA;;AAEA,SAASA,OAAO,IAAIC,sBAAsB,QAAQ,6BAA0B","ignoreList":[]}
1
+ {"version":3,"names":["default","InlineInAppMessageView","NotificationInboxBellView","NotificationInboxView"],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":";;AAAA;;AAEA,SAASA,OAAO,IAAIC,sBAAsB,QAAQ,6BAA0B;;AAE5E;;AAEA,SAASD,OAAO,IAAIE,yBAAyB,QAAQ,gCAA6B;AAElF,SAASF,OAAO,IAAIG,qBAAqB,QAAQ,4BAAyB","ignoreList":[]}
@@ -6,7 +6,12 @@
6
6
  * Zixflow React Native SDK - A powerful SDK for building
7
7
  * customer engagement features in React Native applications.
8
8
  */
9
-
10
- // Export the Zixflow API
11
- export * from "./zixflow.js";
9
+ export * from "./zixflow-cdp.js";
10
+ export * from "./zixflow-geofence.js";
11
+ export * from "./zixflow-inapp.js";
12
+ export * from "./zixflow-liveactivities.js";
13
+ export * from "./zixflow-location.js";
14
+ export * from "./zixflow-push.js";
15
+ export * from "./components/index.js";
16
+ export * from "./types/index.js";
12
17
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,cAAc,cAAW","ignoreList":[]}
1
+ {"version":3,"names":[],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,kBAAe;AAC7B,cAAc,uBAAoB;AAClC,cAAc,oBAAiB;AAC/B,cAAc,6BAA0B;AACxC,cAAc,uBAAoB;AAClC,cAAc,mBAAgB;AAC9B,cAAc,uBAAc;AAC5B,cAAc,kBAAS","ignoreList":[]}
@@ -30,7 +30,7 @@ const withNativeModule = fn => {
30
30
  * Helper function to parse raw inbox message from native layer
31
31
  * @internal
32
32
  */
33
- function parseInboxMessage(raw) {
33
+ export function parseInboxMessage(raw) {
34
34
  return {
35
35
  queueId: raw.queueId,
36
36
  deliveryId: raw.deliveryId ?? undefined,
@@ -1 +1 @@
1
- {"version":3,"names":["NativeLoggerListener","NativeZixflowMessagingInApp","callNativeModule","ensureNativeModule","nativeModule","withNativeModule","fn","parseInboxMessage","raw","queueId","deliveryId","undefined","expiry","sentAt","topics","type","opened","priority","properties","NotificationInbox","getMessages","topic","native","rawMessages","map","subscribeToMessages","listener","emitter","data","messages","topicLower","toLowerCase","filter","msg","some","t","onMessagesChanged","setupInboxListener","subscribeToMessagesChanged","error","warn","remove","eventType","key","subscriber","markMessageOpened","message","markMessageUnopened","markMessageDeleted","trackMessageClicked","actionName"],"sourceRoot":"../../src","sources":["notification-inbox.ts"],"mappings":"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","ignoreList":[]}
1
+ {"version":3,"names":["NativeLoggerListener","NativeZixflowMessagingInApp","callNativeModule","ensureNativeModule","nativeModule","withNativeModule","fn","parseInboxMessage","raw","queueId","deliveryId","undefined","expiry","sentAt","topics","type","opened","priority","properties","NotificationInbox","getMessages","topic","native","rawMessages","map","subscribeToMessages","listener","emitter","data","messages","topicLower","toLowerCase","filter","msg","some","t","onMessagesChanged","setupInboxListener","subscribeToMessagesChanged","error","warn","remove","eventType","key","subscriber","markMessageOpened","message","markMessageUnopened","markMessageDeleted","trackMessageClicked","actionName"],"sourceRoot":"../../src","sources":["notification-inbox.ts"],"mappings":"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","ignoreList":[]}
@@ -0,0 +1,24 @@
1
+ // React Native docs now recommend Codegen types should be imported from the react-native package
2
+ // But it breaks on Expo and older React Native versions, so we import from react-native/Libraries/Types/CodegenTypes
3
+ // for compatibility with all versions until we can fully migrate to the new import style without breaking older versions
4
+ // https://reactnative.dev/docs/strict-typescript-api#codegen-types-should-now-be-imported-from-the-react-native-package
5
+
6
+ import type { HostComponent, ViewProps } from 'react-native';
7
+ /* eslint-disable @react-native/no-deep-imports */
8
+ import type { DirectEventHandler } from 'react-native/Libraries/Types/CodegenTypes';
9
+ import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
10
+
11
+ /** Event data for inbox bell taps. Carries no payload; presence indicates a tap. */
12
+ export interface BellTapEvent {}
13
+
14
+ /** Props for the native NotificationInboxBell component. */
15
+ export interface NativeProps extends ViewProps {
16
+ /** Fired when the user taps the bell. Host should present its own inbox UI. */
17
+ onTap?: DirectEventHandler<BellTapEvent>;
18
+ }
19
+
20
+ // React Native Codegen automatically generates the native component bridge based on the NativeProps interface.
21
+ // Public view is NotificationInboxBellView in the components directory.
22
+ export default codegenNativeComponent<NativeProps>(
23
+ 'NotificationInboxBellNative'
24
+ ) as HostComponent<NativeProps>;
@@ -0,0 +1,22 @@
1
+ // React Native docs now recommend Codegen types should be imported from the react-native package
2
+ // But it breaks on Expo and older React Native versions, so we import from react-native/Libraries/Types/CodegenTypes
3
+ // for compatibility with all versions until we can fully migrate to the new import style without breaking older versions
4
+ // https://reactnative.dev/docs/strict-typescript-api#codegen-types-should-now-be-imported-from-the-react-native-package
5
+
6
+ import type { HostComponent, ViewProps } from 'react-native';
7
+ /* eslint-disable @react-native/no-deep-imports */
8
+ import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
9
+
10
+ /**
11
+ * Props for the native NotificationInboxView component (the Jist-rendered message list).
12
+ * No required props; the host controls sizing via standard ViewProps style.
13
+ * Message actions are handled by the existing global InboxEventListener, so this
14
+ * component needs no per-component action callback.
15
+ */
16
+ export interface NativeProps extends ViewProps {}
17
+
18
+ // React Native Codegen automatically generates the native component bridge based on the NativeProps interface.
19
+ // Public view is NotificationInboxView in the components directory.
20
+ export default codegenNativeComponent<NativeProps>(
21
+ 'NotificationInboxViewNative'
22
+ ) as HostComponent<NativeProps>;
@@ -1 +1 @@
1
- {"version":3,"names":["TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../../../src","sources":["specs/modules/NativeZixflow.ts"],"mappings":";;AAAA,SAASA,mBAAmB,QAA0B,cAAc;;AAGpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAiBA,eAAeA,mBAAmB,CAACC,YAAY,CAAO,eAAe,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../../../src","sources":["specs/modules/NativeZixflow.ts"],"mappings":";;AAAA,SAASA,mBAAmB,QAA0B,cAAc;;AAMpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAsBA,eAAeA,mBAAmB,CAACC,YAAY,CAAO,eAAe,CAAC","ignoreList":[]}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ import { TurboModuleRegistry } from 'react-native';
4
+
5
+ /**
6
+ * Native module specification for Zixflow Geofence React Native SDK
7
+ *
8
+ * @see NativeZixflow.ts for detailed documentation on TurboModule patterns,
9
+ * Codegen compatibility, and type safety approach.
10
+ */
11
+
12
+ export default TurboModuleRegistry.get('NativeZixflowGeofence');
13
+ //# sourceMappingURL=NativeZixflowGeofence.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["TurboModuleRegistry","get"],"sourceRoot":"../../../../src","sources":["specs/modules/NativeZixflowGeofence.ts"],"mappings":";;AAAA,SAASA,mBAAmB,QAA0B,cAAc;;AAEpE;AACA;AACA;AACA;AACA;AACA;;AAMA,eAAeA,mBAAmB,CAACC,GAAG,CAAO,uBAAuB,CAAC","ignoreList":[]}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+ import { TurboModuleRegistry } from 'react-native';
4
+
5
+ /**
6
+ * Native module specification for Zixflow Live Activities React Native SDK
7
+ *
8
+ * Live Activities (iOS) / Live Notifications (Android) let you show a live,
9
+ * updating notification driven by a built-in template (Segments, Countdown Timer)
10
+ * or by a custom type you render yourself.
11
+ *
12
+ * @see NativeZixflow.ts for detailed documentation on TurboModule patterns,
13
+ * Codegen compatibility, and type safety approach.
14
+ */
15
+
16
+ // Registered unconditionally on both platforms — Android in ZixflowReactNativePackage, iOS via
17
+ // an ObjC bridge that is always compiled. When the Live Activities pods are absent the module is
18
+ // still present and its methods reject with `live_activity_module_unavailable`, so `getEnforcing`
19
+ // is accurate here (unlike Location, which really can be absent and uses `get`).
20
+ export default TurboModuleRegistry.getEnforcing('NativeZixflowLiveActivities');
21
+ //# sourceMappingURL=NativeZixflowLiveActivities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../../../src","sources":["specs/modules/NativeZixflowLiveActivities.ts"],"mappings":";;AAAA,SAASA,mBAAmB,QAA0B,cAAc;;AAGpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAoBA;AACA;AACA;AACA;AACA,eAAeA,mBAAmB,CAACC,YAAY,CAC7C,6BACF,CAAC","ignoreList":[]}
@@ -11,5 +11,7 @@ import { TurboModuleRegistry } from 'react-native';
11
11
 
12
12
  /** TurboModule interface for Zixflow In-App Messaging native operations */
13
13
 
14
- export default TurboModuleRegistry.get('NativeZixflowMessagingInApp');
14
+ // Registered unconditionally on both platforms, like MessagingPush and DataPipelines — not
15
+ // gated by an optional subspec/module flag the way Location and Geofence are.
16
+ export default TurboModuleRegistry.getEnforcing('NativeZixflowMessagingInApp');
15
17
  //# sourceMappingURL=NativeZixflowMessagingInApp.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["TurboModuleRegistry","get"],"sourceRoot":"../../../../src","sources":["specs/modules/NativeZixflowMessagingInApp.ts"],"mappings":";;AAAA,SAASA,mBAAmB,QAA0B,cAAc;;AAMpE;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAcA,eAAeA,mBAAmB,CAACC,GAAG,CACpC,6BACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../../../src","sources":["specs/modules/NativeZixflowMessagingInApp.ts"],"mappings":";;AAAA,SAASA,mBAAmB,QAA0B,cAAc;;AAMpE;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAuBA;AACA;AACA,eAAeA,mBAAmB,CAACC,YAAY,CAC7C,6BACF,CAAC","ignoreList":[]}
@@ -9,5 +9,7 @@ import { TurboModuleRegistry } from 'react-native';
9
9
  * Codegen compatibility, and type safety approach.
10
10
  */
11
11
 
12
- export default TurboModuleRegistry.get('NativeZixflowMessagingPush');
12
+ // Registered unconditionally on both platforms, like MessagingInApp and DataPipelines — not
13
+ // gated by an optional subspec/module flag the way Location and Geofence are.
14
+ export default TurboModuleRegistry.getEnforcing('NativeZixflowMessagingPush');
13
15
  //# sourceMappingURL=NativeZixflowMessagingPush.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["TurboModuleRegistry","get"],"sourceRoot":"../../../../src","sources":["specs/modules/NativeZixflowMessagingPush.ts"],"mappings":";;AAAA,SAASA,mBAAmB,QAA0B,cAAc;;AAGpE;AACA;AACA;AACA;AACA;AACA;;AAgBA,eAAeA,mBAAmB,CAACC,GAAG,CACpC,4BACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../../../src","sources":["specs/modules/NativeZixflowMessagingPush.ts"],"mappings":";;AAAA,SAASA,mBAAmB,QAA0B,cAAc;;AAGpE;AACA;AACA;AACA;AACA;AACA;;AAgBA;AACA;AACA,eAAeA,mBAAmB,CAACC,YAAY,CAC7C,4BACF,CAAC","ignoreList":[]}
@@ -31,11 +31,9 @@
31
31
  /**
32
32
  * Configuration options for initializing the Zixflow SDK.
33
33
  *
34
- * @param cdpApiKey - Customer Data Platform API key from Zixflow dashboard
35
- * @param migrationSiteId - Legacy site ID for migrating from tracking API
36
- * @param region - Data center region (US or EU)
34
+ * @param apiKey - API key from Zixflow dashboard
37
35
  * @param logLevel - SDK logging verbosity level
38
- * @param apiHost - Override the CDP API host. Use to route SDK traffic through a first-party proxy.
36
+ * @param apiHost - Override the API host. Use to route SDK traffic through a first-party proxy.
39
37
  * @param cdnHost - Override the CDN host. Use to route SDK traffic through a first-party proxy.
40
38
  * @param flushAt - Number of events to batch before sending
41
39
  * @param flushInterval - Time interval (seconds) to flush events
@@ -67,17 +65,6 @@ export let ZixflowLogLevel = /*#__PURE__*/function (ZixflowLogLevel) {
67
65
  return ZixflowLogLevel;
68
66
  }({});
69
67
 
70
- /**
71
- * Data center regions for Zixflow API endpoints.
72
- *
73
- * @public
74
- */
75
- export let ZixflowRegion = /*#__PURE__*/function (ZixflowRegion) {
76
- ZixflowRegion["US"] = "US";
77
- ZixflowRegion["EU"] = "EU";
78
- return ZixflowRegion;
79
- }({});
80
-
81
68
  /**
82
69
  * Screen view tracking behavior configuration.
83
70
  *
@@ -109,6 +96,19 @@ export let ZixflowLocationTrackingMode = /*#__PURE__*/function (ZixflowLocationT
109
96
  return ZixflowLocationTrackingMode;
110
97
  }({});
111
98
 
99
+ /**
100
+ * How the Geofence module acquires location fixes.
101
+ *
102
+ * @public
103
+ */
104
+ export let ZixflowGeofenceLocationMode = /*#__PURE__*/function (ZixflowGeofenceLocationMode) {
105
+ /** SDK acquires location itself (on identify and app launch). Default. */
106
+ ZixflowGeofenceLocationMode["Automatic"] = "AUTOMATIC";
107
+ /** Host drives refreshes via `Zixflow.geofence.refreshFromCurrentLocation()`. */
108
+ ZixflowGeofenceLocationMode["Manual"] = "MANUAL";
109
+ return ZixflowGeofenceLocationMode;
110
+ }({});
111
+
112
112
  /**
113
113
  * Enum to specify the type of metric for tracking
114
114
  *
@@ -1 +1 @@
1
- {"version":3,"names":["ZixflowLogLevel","ZixflowRegion","ScreenView","ZixflowLocationTrackingMode","MetricEvent"],"sourceRoot":"../../../src","sources":["types/data-pipelines.ts"],"mappings":";;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA2BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAYA,eAAe,0BAAfA,eAAe;EACzB;EADUA,eAAe;EAGzB;EAHUA,eAAe;EAKzB;EALUA,eAAe;EAOzB;EAPUA,eAAe;EAAA,OAAfA,eAAe;AAAA;;AAW3B;AACA;AACA;AACA;AACA;AACA,WAAYC,aAAa,0BAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA;;AAKzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAYC,UAAU,0BAAVA,UAAU;EACpB;EADUA,UAAU;EAGpB;EAHUA,UAAU;EAAA,OAAVA,UAAU;AAAA;;AAOtB;AACA;AACA;AACA;AACA;AACA,WAAYC,2BAA2B,0BAA3BA,2BAA2B;EACrC;EADUA,2BAA2B;EAGrC;EAHUA,2BAA2B;EAKrC;EALUA,2BAA2B;EAAA,OAA3BA,2BAA2B;AAAA;;AASvC;AACA;AACA;AACA;AACA;AACA,WAAYC,WAAW,0BAAXA,WAAW;EACrB;EADUA,WAAW;EAGrB;EAHUA,WAAW;EAKrB;EALUA,WAAW;EAAA,OAAXA,WAAW;AAAA","ignoreList":[]}
1
+ {"version":3,"names":["ZixflowLogLevel","ScreenView","ZixflowLocationTrackingMode","ZixflowGeofenceLocationMode","MetricEvent"],"sourceRoot":"../../../src","sources":["types/data-pipelines.ts"],"mappings":";;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA4DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAYA,eAAe,0BAAfA,eAAe;EACzB;EADUA,eAAe;EAGzB;EAHUA,eAAe;EAKzB;EALUA,eAAe;EAOzB;EAPUA,eAAe;EAAA,OAAfA,eAAe;AAAA;;AAW3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAYC,UAAU,0BAAVA,UAAU;EACpB;EADUA,UAAU;EAGpB;EAHUA,UAAU;EAAA,OAAVA,UAAU;AAAA;;AAOtB;AACA;AACA;AACA;AACA;AACA,WAAYC,2BAA2B,0BAA3BA,2BAA2B;EACrC;EADUA,2BAA2B;EAGrC;EAHUA,2BAA2B;EAKrC;EALUA,2BAA2B;EAAA,OAA3BA,2BAA2B;AAAA;;AASvC;AACA;AACA;AACA;AACA;AACA,WAAYC,2BAA2B,0BAA3BA,2BAA2B;EACrC;EADUA,2BAA2B;EAGrC;EAHUA,2BAA2B;EAAA,OAA3BA,2BAA2B;AAAA;;AAOvC;AACA;AACA;AACA;AACA;AACA,WAAYC,WAAW,0BAAXA,WAAW;EACrB;EADUA,WAAW;EAGrB;EAHUA,WAAW;EAKrB;EALUA,WAAW;EAAA,OAAXA,WAAW;AAAA","ignoreList":[]}
@@ -22,6 +22,30 @@ export let InAppMessageEventType = /*#__PURE__*/function (InAppMessageEventType)
22
22
  return InAppMessageEventType;
23
23
  }({});
24
24
 
25
+ /**
26
+ * Color scheme used to render in-app messages.
27
+ *
28
+ * Selects which of the light/dark variants authored in the Zixflow editor is
29
+ * rendered. Use it when the app has its own appearance setting that can disagree with
30
+ * the operating system: `Auto` follows the device, while `Light` and `Dark` pin the
31
+ * variant regardless of it.
32
+ *
33
+ * The string values are the wire contract shared with both native SDKs, which match
34
+ * them lowercase and resolve anything unrecognized to `auto` — so they must stay
35
+ * exactly as written here even if the members are renamed.
36
+ *
37
+ * @public
38
+ */
39
+ export let ZixflowColorScheme = /*#__PURE__*/function (ZixflowColorScheme) {
40
+ /** Follow the device's current appearance. The default when unset. */
41
+ ZixflowColorScheme["Auto"] = "auto";
42
+ /** Always render the light variant, whatever the device is set to. */
43
+ ZixflowColorScheme["Light"] = "light";
44
+ /** Always render the dark variant, whatever the device is set to. */
45
+ ZixflowColorScheme["Dark"] = "dark";
46
+ return ZixflowColorScheme;
47
+ }({});
48
+
25
49
  /**
26
50
  * Represents an inbox message for a user.
27
51
  *
@@ -1 +1 @@
1
- {"version":3,"names":["InAppMessageEventType"],"sourceRoot":"../../../src","sources":["types/in-app.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAUA;AACA;AACA;AACA;AACA;AACA,WAAYA,qBAAqB,0BAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAAA,OAArBA,qBAAqB;AAAA;;AAOjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAsBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"names":["InAppMessageEventType","ZixflowColorScheme"],"sourceRoot":"../../../src","sources":["types/in-app.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAUA;AACA;AACA;AACA;AACA;AACA,WAAYA,qBAAqB,0BAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAAA,OAArBA,qBAAqB;AAAA;;AAOjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAYC,kBAAkB,0BAAlBA,kBAAkB;EAC5B;EADUA,kBAAkB;EAG5B;EAHUA,kBAAkB;EAK5B;EALUA,kBAAkB;EAAA,OAAlBA,kBAAkB;AAAA;;AAS9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAsBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * Enum representing the type of event triggered by an inbox event callback.
5
+ *
6
+ * Mirrors the native `InboxEventListener` contract on iOS and Android.
7
+ *
8
+ * @public
9
+ */
10
+ export let InboxEventType = /*#__PURE__*/function (InboxEventType) {
11
+ /** A non-dismiss action (e.g. a button/link) was taken on an inbox message. */
12
+ InboxEventType["messageActionTaken"] = "messageActionTaken";
13
+ /** An inbox message was first shown/rendered in the visible inbox view. */
14
+ InboxEventType["messageShown"] = "messageShown";
15
+ /** An inbox message was marked opened (e.g. when the panel opens). */
16
+ InboxEventType["messageOpened"] = "messageOpened";
17
+ /** An inbox message was dismissed/removed from the inbox. */
18
+ InboxEventType["messageDismissed"] = "messageDismissed";
19
+ return InboxEventType;
20
+ }({});
21
+
22
+ /**
23
+ * Event delivered to a registered inbox event listener.
24
+ *
25
+ * `messageActionTaken` carries `actionName`/`actionValue`; the observational
26
+ * events (`messageShown`, `messageOpened`, `messageDismissed`) carry only the
27
+ * message.
28
+ *
29
+ * @public
30
+ */
31
+ export class InboxMessageEvent {
32
+ /** The type of inbox event. */
33
+
34
+ /** The inbox message the event relates to. */
35
+
36
+ /** The Jist action name (only present for `messageActionTaken`). */
37
+
38
+ /** The resolved action value, typically a url (only present for `messageActionTaken`). */
39
+
40
+ constructor(eventType, message, actionName, actionValue) {
41
+ this.eventType = eventType;
42
+ this.message = message;
43
+ this.actionName = actionName;
44
+ this.actionValue = actionValue;
45
+ }
46
+ }
47
+
48
+ /**
49
+ * Host-provided accessibility labels for the Visual Notification Inbox UI.
50
+ *
51
+ * The SDK ships no text of its own in the visual inbox — the empty state is an icon and the
52
+ * loading state is a spinner — so accessibility labels are the one place a string is still
53
+ * needed. Because the SDK cannot know your app's language, every label is optional and unset by
54
+ * default, and an omitted label leaves that element unlabeled rather than falling back to
55
+ * English. Pass strings already localized for the user's language.
56
+ *
57
+ * @example
58
+ * ```ts
59
+ * Zixflow.initialize({
60
+ * apiKey: '...',
61
+ * inApp: {
62
+ * siteId: '...',
63
+ * notificationInboxAccessibilityLabels: {
64
+ * bell: t('inbox.bell'),
65
+ * bellWithUnreadCount: t('inbox.unread'), // e.g. "{count} unread notifications"
66
+ * loadingIndicator: t('inbox.loading'),
67
+ * emptyState: t('inbox.empty'),
68
+ * },
69
+ * },
70
+ * });
71
+ * ```
72
+ *
73
+ * @public
74
+ */
75
+ //# sourceMappingURL=inbox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["InboxEventType","InboxMessageEvent","constructor","eventType","message","actionName","actionValue"],"sourceRoot":"../../../src","sources":["types/inbox.ts"],"mappings":";;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAYA,cAAc,0BAAdA,cAAc;EACxB;EADUA,cAAc;EAGxB;EAHUA,cAAc;EAKxB;EALUA,cAAc;EAOxB;EAPUA,cAAc;EAAA,OAAdA,cAAc;AAAA;;AAW1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,iBAAiB,CAAC;EAC7B;;EAEA;;EAEA;;EAEA;;EAGAC,WAAWA,CACTC,SAAyB,EACzBC,OAAqB,EACrBC,UAAmB,EACnBC,WAAoB,EACpB;IACA,IAAI,CAACH,SAAS,GAAGA,SAAS;IAC1B,IAAI,CAACC,OAAO,GAAGA,OAAO;IACtB,IAAI,CAACC,UAAU,GAAGA,UAAU;IAC5B,IAAI,CAACC,WAAW,GAAGA,WAAW;EAChC;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
@@ -2,5 +2,7 @@
2
2
 
3
3
  export * from "./data-pipelines.js";
4
4
  export * from "./in-app.js";
5
+ export * from "./inbox.js";
6
+ export * from "./live-activities.js";
5
7
  export * from "./push.js";
6
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/index.ts"],"mappings":";;AAAA,cAAc,qBAAkB;AAChC,cAAc,aAAU;AACxB,cAAc,WAAQ","ignoreList":[]}
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/index.ts"],"mappings":";;AAAA,cAAc,qBAAkB;AAChC,cAAc,aAAU;AACxB,cAAc,YAAS;AACvB,cAAc,sBAAmB;AACjC,cAAc,WAAQ","ignoreList":[]}