zixflow-reactnative 1.1.3 → 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 (239) hide show
  1. package/README.md +631 -261
  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 +40 -5
  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 -0
  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/messaginginapp/NativeMessagingInAppModule.kt +150 -0
  11. package/android/src/main/java/com/zixflow/reactnative/sdk/messaginginapp/ReactInboxEventListener.kt +99 -0
  12. package/android/src/main/java/com/zixflow/reactnative/sdk/messaginginbox/NotificationInboxBellViewManager.kt +38 -0
  13. package/android/src/main/java/com/zixflow/reactnative/sdk/messaginginbox/NotificationInboxViewManager.kt +30 -0
  14. package/android/src/main/java/com/zixflow/reactnative/sdk/messaginginbox/ReactComposeHostView.kt +96 -0
  15. package/android/src/main/java/com/zixflow/reactnative/sdk/messaginginbox/ReactNotificationInboxBellView.kt +48 -0
  16. package/android/src/main/java/com/zixflow/reactnative/sdk/messaginginbox/ReactNotificationInboxView.kt +17 -0
  17. package/android/src/main/java/com/zixflow/reactnative/sdk/messagingpush/NativeMessagingPushModule.kt +11 -1
  18. package/android/src/main/res/values/zixflow_config.xml +1 -1
  19. package/android/zixflow-core.gradle +17 -7
  20. package/docs/cocoapods-deployment-target-normalization.md +139 -0
  21. package/ios/cocoapods_deployment_target.rb +432 -0
  22. package/ios/wrappers/NativeZixflow.mm +37 -0
  23. package/ios/wrappers/NativeZixflow.swift +135 -1
  24. package/ios/wrappers/ZixflowReactNativeDeepLinkRequestStore.swift +123 -0
  25. package/ios/wrappers/ZixflowReactNativeDeepLinkRouter.swift +312 -0
  26. package/ios/wrappers/geofence/NativeGeofence.mm +46 -0
  27. package/ios/wrappers/geofence/NativeGeofence.swift +27 -0
  28. package/ios/wrappers/inapp/NativeMessagingInApp.mm +22 -0
  29. package/ios/wrappers/inapp/NativeMessagingInApp.swift +90 -0
  30. package/ios/wrappers/inbox/InboxHostContainment.swift +40 -0
  31. package/ios/wrappers/inbox/RCTNotificationInboxBellNative.h +12 -0
  32. package/ios/wrappers/inbox/RCTNotificationInboxBellNative.mm +98 -0
  33. package/ios/wrappers/inbox/RCTNotificationInboxViewNative.h +12 -0
  34. package/ios/wrappers/inbox/RCTNotificationInboxViewNative.mm +78 -0
  35. package/ios/wrappers/inbox/ReactInboxEventListener.swift +76 -0
  36. package/ios/wrappers/inbox/ReactNotificationInboxBellView.h +22 -0
  37. package/ios/wrappers/inbox/ReactNotificationInboxBellView.swift +109 -0
  38. package/ios/wrappers/inbox/ReactNotificationInboxView.h +22 -0
  39. package/ios/wrappers/inbox/ReactNotificationInboxView.swift +69 -0
  40. package/ios/wrappers/liveactivities/NativeLiveActivities.mm +83 -0
  41. package/ios/wrappers/liveactivities/NativeLiveActivities.swift +390 -0
  42. package/ios/wrappers/location/NativeLocation.swift +7 -5
  43. package/ios/wrappers/utils/ZixflowConstants.swift +4 -0
  44. package/ios/wrappers/zixflow_reactnative.h +6 -0
  45. package/lib/commonjs/components/NotificationInboxBellView.js +49 -0
  46. package/lib/commonjs/components/NotificationInboxBellView.js.map +1 -0
  47. package/lib/commonjs/components/NotificationInboxView.js +36 -0
  48. package/lib/commonjs/components/NotificationInboxView.js.map +1 -0
  49. package/lib/commonjs/components/index.js +14 -0
  50. package/lib/commonjs/components/index.js.map +1 -1
  51. package/lib/commonjs/index.js +81 -4
  52. package/lib/commonjs/index.js.map +1 -1
  53. package/lib/commonjs/notification-inbox.js +1 -0
  54. package/lib/commonjs/notification-inbox.js.map +1 -1
  55. package/lib/commonjs/specs/components/NotificationInboxBellNativeComponent.ts +24 -0
  56. package/lib/commonjs/specs/components/NotificationInboxViewNativeComponent.ts +22 -0
  57. package/lib/commonjs/specs/modules/NativeZixflow.js.map +1 -1
  58. package/lib/commonjs/specs/modules/NativeZixflowGeofence.js +15 -0
  59. package/lib/commonjs/specs/modules/NativeZixflowGeofence.js.map +1 -0
  60. package/lib/commonjs/specs/modules/NativeZixflowLiveActivities.js +23 -0
  61. package/lib/commonjs/specs/modules/NativeZixflowLiveActivities.js.map +1 -0
  62. package/lib/commonjs/specs/modules/NativeZixflowMessagingInApp.js +3 -1
  63. package/lib/commonjs/specs/modules/NativeZixflowMessagingInApp.js.map +1 -1
  64. package/lib/commonjs/specs/modules/NativeZixflowMessagingPush.js +3 -1
  65. package/lib/commonjs/specs/modules/NativeZixflowMessagingPush.js.map +1 -1
  66. package/lib/commonjs/types/data-pipelines.js +13 -1
  67. package/lib/commonjs/types/data-pipelines.js.map +1 -1
  68. package/lib/commonjs/types/in-app.js +24 -1
  69. package/lib/commonjs/types/in-app.js.map +1 -1
  70. package/lib/commonjs/types/inbox.js +79 -0
  71. package/lib/commonjs/types/inbox.js.map +1 -0
  72. package/lib/commonjs/types/index.js +22 -0
  73. package/lib/commonjs/types/index.js.map +1 -1
  74. package/lib/commonjs/types/live-activities.js +85 -0
  75. package/lib/commonjs/types/live-activities.js.map +1 -0
  76. package/lib/commonjs/utils/param-validation.js +76 -1
  77. package/lib/commonjs/utils/param-validation.js.map +1 -1
  78. package/lib/commonjs/zixflow-cdp.js +99 -1
  79. package/lib/commonjs/zixflow-cdp.js.map +1 -1
  80. package/lib/commonjs/zixflow-geofence.js +55 -0
  81. package/lib/commonjs/zixflow-geofence.js.map +1 -0
  82. package/lib/commonjs/zixflow-inapp.js +120 -0
  83. package/lib/commonjs/zixflow-inapp.js.map +1 -1
  84. package/lib/commonjs/zixflow-liveactivities.js +85 -0
  85. package/lib/commonjs/zixflow-liveactivities.js.map +1 -0
  86. package/lib/module/components/NotificationInboxBellView.js +44 -0
  87. package/lib/module/components/NotificationInboxBellView.js.map +1 -0
  88. package/lib/module/components/NotificationInboxView.js +31 -0
  89. package/lib/module/components/NotificationInboxView.js.map +1 -0
  90. package/lib/module/components/index.js +5 -0
  91. package/lib/module/components/index.js.map +1 -1
  92. package/lib/module/index.js +8 -3
  93. package/lib/module/index.js.map +1 -1
  94. package/lib/module/notification-inbox.js +1 -1
  95. package/lib/module/notification-inbox.js.map +1 -1
  96. package/lib/module/specs/components/NotificationInboxBellNativeComponent.ts +24 -0
  97. package/lib/module/specs/components/NotificationInboxViewNativeComponent.ts +22 -0
  98. package/lib/module/specs/modules/NativeZixflow.js.map +1 -1
  99. package/lib/module/specs/modules/NativeZixflowGeofence.js +13 -0
  100. package/lib/module/specs/modules/NativeZixflowGeofence.js.map +1 -0
  101. package/lib/module/specs/modules/NativeZixflowLiveActivities.js +21 -0
  102. package/lib/module/specs/modules/NativeZixflowLiveActivities.js.map +1 -0
  103. package/lib/module/specs/modules/NativeZixflowMessagingInApp.js +3 -1
  104. package/lib/module/specs/modules/NativeZixflowMessagingInApp.js.map +1 -1
  105. package/lib/module/specs/modules/NativeZixflowMessagingPush.js +3 -1
  106. package/lib/module/specs/modules/NativeZixflowMessagingPush.js.map +1 -1
  107. package/lib/module/types/data-pipelines.js +13 -0
  108. package/lib/module/types/data-pipelines.js.map +1 -1
  109. package/lib/module/types/in-app.js +24 -0
  110. package/lib/module/types/in-app.js.map +1 -1
  111. package/lib/module/types/inbox.js +75 -0
  112. package/lib/module/types/inbox.js.map +1 -0
  113. package/lib/module/types/index.js +2 -0
  114. package/lib/module/types/index.js.map +1 -1
  115. package/lib/module/types/live-activities.js +88 -0
  116. package/lib/module/types/live-activities.js.map +1 -0
  117. package/lib/module/utils/param-validation.js +76 -1
  118. package/lib/module/utils/param-validation.js.map +1 -1
  119. package/lib/module/zixflow-cdp.js +99 -1
  120. package/lib/module/zixflow-cdp.js.map +1 -1
  121. package/lib/module/zixflow-geofence.js +50 -0
  122. package/lib/module/zixflow-geofence.js.map +1 -0
  123. package/lib/module/zixflow-inapp.js +99 -1
  124. package/lib/module/zixflow-inapp.js.map +1 -1
  125. package/lib/module/zixflow-liveactivities.js +80 -0
  126. package/lib/module/zixflow-liveactivities.js.map +1 -0
  127. package/lib/typescript/commonjs/components/NotificationInboxBellView.d.ts +39 -0
  128. package/lib/typescript/commonjs/components/NotificationInboxBellView.d.ts.map +1 -0
  129. package/lib/typescript/commonjs/components/NotificationInboxView.d.ts +25 -0
  130. package/lib/typescript/commonjs/components/NotificationInboxView.d.ts.map +1 -0
  131. package/lib/typescript/commonjs/components/index.d.ts +4 -0
  132. package/lib/typescript/commonjs/components/index.d.ts.map +1 -1
  133. package/lib/typescript/commonjs/index.d.ts +8 -1
  134. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  135. package/lib/typescript/commonjs/notification-inbox.d.ts +5 -0
  136. package/lib/typescript/commonjs/notification-inbox.d.ts.map +1 -1
  137. package/lib/typescript/commonjs/specs/components/NotificationInboxBellNativeComponent.d.ts +13 -0
  138. package/lib/typescript/commonjs/specs/components/NotificationInboxBellNativeComponent.d.ts.map +1 -0
  139. package/lib/typescript/commonjs/specs/components/NotificationInboxViewNativeComponent.d.ts +12 -0
  140. package/lib/typescript/commonjs/specs/components/NotificationInboxViewNativeComponent.d.ts.map +1 -0
  141. package/lib/typescript/commonjs/specs/modules/NativeZixflow.d.ts +6 -1
  142. package/lib/typescript/commonjs/specs/modules/NativeZixflow.d.ts.map +1 -1
  143. package/lib/typescript/commonjs/specs/modules/NativeZixflowGeofence.d.ts +13 -0
  144. package/lib/typescript/commonjs/specs/modules/NativeZixflowGeofence.d.ts.map +1 -0
  145. package/lib/typescript/commonjs/specs/modules/NativeZixflowLiveActivities.d.ts +31 -0
  146. package/lib/typescript/commonjs/specs/modules/NativeZixflowLiveActivities.d.ts.map +1 -0
  147. package/lib/typescript/commonjs/specs/modules/NativeZixflowMessagingInApp.d.ts +5 -1
  148. package/lib/typescript/commonjs/specs/modules/NativeZixflowMessagingInApp.d.ts.map +1 -1
  149. package/lib/typescript/commonjs/specs/modules/NativeZixflowMessagingPush.d.ts +1 -1
  150. package/lib/typescript/commonjs/specs/modules/NativeZixflowMessagingPush.d.ts.map +1 -1
  151. package/lib/typescript/commonjs/types/data-pipelines.d.ts +53 -1
  152. package/lib/typescript/commonjs/types/data-pipelines.d.ts.map +1 -1
  153. package/lib/typescript/commonjs/types/in-app.d.ts +22 -0
  154. package/lib/typescript/commonjs/types/in-app.d.ts.map +1 -1
  155. package/lib/typescript/commonjs/types/inbox.d.ts +97 -0
  156. package/lib/typescript/commonjs/types/inbox.d.ts.map +1 -0
  157. package/lib/typescript/commonjs/types/index.d.ts +2 -0
  158. package/lib/typescript/commonjs/types/index.d.ts.map +1 -1
  159. package/lib/typescript/commonjs/types/live-activities.d.ts +161 -0
  160. package/lib/typescript/commonjs/types/live-activities.d.ts.map +1 -0
  161. package/lib/typescript/commonjs/utils/param-validation.d.ts +7 -0
  162. package/lib/typescript/commonjs/utils/param-validation.d.ts.map +1 -1
  163. package/lib/typescript/commonjs/zixflow-cdp.d.ts +38 -0
  164. package/lib/typescript/commonjs/zixflow-cdp.d.ts.map +1 -1
  165. package/lib/typescript/commonjs/zixflow-geofence.d.ts +36 -0
  166. package/lib/typescript/commonjs/zixflow-geofence.d.ts.map +1 -0
  167. package/lib/typescript/commonjs/zixflow-inapp.d.ts +36 -2
  168. package/lib/typescript/commonjs/zixflow-inapp.d.ts.map +1 -1
  169. package/lib/typescript/commonjs/zixflow-liveactivities.d.ts +66 -0
  170. package/lib/typescript/commonjs/zixflow-liveactivities.d.ts.map +1 -0
  171. package/lib/typescript/module/components/NotificationInboxBellView.d.ts +39 -0
  172. package/lib/typescript/module/components/NotificationInboxBellView.d.ts.map +1 -0
  173. package/lib/typescript/module/components/NotificationInboxView.d.ts +25 -0
  174. package/lib/typescript/module/components/NotificationInboxView.d.ts.map +1 -0
  175. package/lib/typescript/module/components/index.d.ts +4 -0
  176. package/lib/typescript/module/components/index.d.ts.map +1 -1
  177. package/lib/typescript/module/index.d.ts +8 -1
  178. package/lib/typescript/module/index.d.ts.map +1 -1
  179. package/lib/typescript/module/notification-inbox.d.ts +5 -0
  180. package/lib/typescript/module/notification-inbox.d.ts.map +1 -1
  181. package/lib/typescript/module/specs/components/NotificationInboxBellNativeComponent.d.ts +13 -0
  182. package/lib/typescript/module/specs/components/NotificationInboxBellNativeComponent.d.ts.map +1 -0
  183. package/lib/typescript/module/specs/components/NotificationInboxViewNativeComponent.d.ts +12 -0
  184. package/lib/typescript/module/specs/components/NotificationInboxViewNativeComponent.d.ts.map +1 -0
  185. package/lib/typescript/module/specs/modules/NativeZixflow.d.ts +6 -1
  186. package/lib/typescript/module/specs/modules/NativeZixflow.d.ts.map +1 -1
  187. package/lib/typescript/module/specs/modules/NativeZixflowGeofence.d.ts +13 -0
  188. package/lib/typescript/module/specs/modules/NativeZixflowGeofence.d.ts.map +1 -0
  189. package/lib/typescript/module/specs/modules/NativeZixflowLiveActivities.d.ts +31 -0
  190. package/lib/typescript/module/specs/modules/NativeZixflowLiveActivities.d.ts.map +1 -0
  191. package/lib/typescript/module/specs/modules/NativeZixflowMessagingInApp.d.ts +5 -1
  192. package/lib/typescript/module/specs/modules/NativeZixflowMessagingInApp.d.ts.map +1 -1
  193. package/lib/typescript/module/specs/modules/NativeZixflowMessagingPush.d.ts +1 -1
  194. package/lib/typescript/module/specs/modules/NativeZixflowMessagingPush.d.ts.map +1 -1
  195. package/lib/typescript/module/types/data-pipelines.d.ts +53 -1
  196. package/lib/typescript/module/types/data-pipelines.d.ts.map +1 -1
  197. package/lib/typescript/module/types/in-app.d.ts +22 -0
  198. package/lib/typescript/module/types/in-app.d.ts.map +1 -1
  199. package/lib/typescript/module/types/inbox.d.ts +97 -0
  200. package/lib/typescript/module/types/inbox.d.ts.map +1 -0
  201. package/lib/typescript/module/types/index.d.ts +2 -0
  202. package/lib/typescript/module/types/index.d.ts.map +1 -1
  203. package/lib/typescript/module/types/live-activities.d.ts +161 -0
  204. package/lib/typescript/module/types/live-activities.d.ts.map +1 -0
  205. package/lib/typescript/module/utils/param-validation.d.ts +7 -0
  206. package/lib/typescript/module/utils/param-validation.d.ts.map +1 -1
  207. package/lib/typescript/module/zixflow-cdp.d.ts +38 -0
  208. package/lib/typescript/module/zixflow-cdp.d.ts.map +1 -1
  209. package/lib/typescript/module/zixflow-geofence.d.ts +36 -0
  210. package/lib/typescript/module/zixflow-geofence.d.ts.map +1 -0
  211. package/lib/typescript/module/zixflow-inapp.d.ts +36 -2
  212. package/lib/typescript/module/zixflow-inapp.d.ts.map +1 -1
  213. package/lib/typescript/module/zixflow-liveactivities.d.ts +66 -0
  214. package/lib/typescript/module/zixflow-liveactivities.d.ts.map +1 -0
  215. package/package.json +11 -2
  216. package/src/components/NotificationInboxBellView.tsx +55 -0
  217. package/src/components/NotificationInboxView.tsx +30 -0
  218. package/src/components/index.ts +6 -0
  219. package/src/index.ts +8 -3
  220. package/src/notification-inbox.ts +1 -1
  221. package/src/specs/components/NotificationInboxBellNativeComponent.ts +24 -0
  222. package/src/specs/components/NotificationInboxViewNativeComponent.ts +22 -0
  223. package/src/specs/modules/NativeZixflow.ts +9 -1
  224. package/src/specs/modules/NativeZixflowGeofence.ts +14 -0
  225. package/src/specs/modules/NativeZixflowLiveActivities.ts +39 -0
  226. package/src/specs/modules/NativeZixflowMessagingInApp.ts +12 -1
  227. package/src/specs/modules/NativeZixflowMessagingPush.ts +3 -1
  228. package/src/types/data-pipelines.ts +54 -1
  229. package/src/types/in-app.ts +23 -0
  230. package/src/types/inbox.ts +110 -0
  231. package/src/types/index.ts +2 -0
  232. package/src/types/live-activities.ts +170 -0
  233. package/src/utils/param-validation.ts +103 -0
  234. package/src/zixflow-cdp.ts +117 -1
  235. package/src/zixflow-geofence.ts +56 -0
  236. package/src/zixflow-inapp.ts +125 -2
  237. package/src/zixflow-liveactivities.ts +86 -0
  238. package/zixflow-reactnative-richpush.podspec +4 -1
  239. package/zixflow-reactnative.podspec +26 -0
@@ -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":";;AACA,SAASA,oBAAoB,QAAQ,6BAA0B;AAE/D,OAAOC,2BAA2B,MAAM,gDAA6C;AAErF,SAASC,gBAAgB,EAAEC,kBAAkB,QAAQ,0BAAuB;;AAE5E;AACA,MAAMC,YAAY,GAAGD,kBAAkB,CAACF,2BAA2B,CAAC;;AAEpE;A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AAM,IACtBA,MAAM,CAAC2B,mBAAmB,CAACH,OAAO,EAAEI,UAAU,CAChD,CAAC;EACH;AACF","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":";;AACA,SAASA,oBAAoB,QAAQ,6BAA0B;AAE/D,OAAOC,2BAA2B,MAAM,gDAA6C;AAErF,SAASC,gBAAgB,EAAEC,kBAAkB,QAAQ,0BAAuB;;AAE5E;AACA,MAAMC,YAAY,GAAGD,kBAAkB,CAACF,2BAA2B,CAAC;;AAEpE;AACA,MAAMI,gBAAgB,GAAOC,EAA8B,IAAQ;EACjE,OAAOJ,gBAAgB,CAACE,YAAY,EAAEE,EAAE,CAAC;AAC3C,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;;AAaA;AACA;AACA;AACA;AACA;AACA;;AAMA;AACA;AACA;AACA;AACA,OAAO,SAASC,iBAAiBA,CAACC,GAAQ,EAAgB;EACxD,OAAO;IACLC,OAAO,EAAED,GAAG,CAACC,OAAO;IACpBC,UAAU,EAAEF,GAAG,CAACE,UAAU,IAAIC,SAAS;IACvCC,MAAM,EAAEJ,GAAG,CAACI,MAAM,IAAID,SAAS;IAC/BE,MAAM,EAAEL,GAAG,CAACK,MAAM;IAClBC,MAAM,EAAEN,GAAG,CAACM,MAAM,IAAI,EAAE;IACxBC,IAAI,EAAEP,GAAG,CAACO,IAAI;IACdC,MAAM,EAAER,GAAG,CAACQ,MAAM;IAClBC,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AAO;UACLE,MAAM,EAAEA,CAAA,KAAM,CAAC,CAAC;UAChBC,SAAS,EAAE,EAAE;UACbC,GAAG,EAAE,CAAC;UACNC,UAAU,EAAE;QACd,CAAC;MACH;IACF,CAAC,CAAC;EACJ;;EAEA;AACF;AACA;EACEC,iBAAiBA,CAACC,OAAqB,EAAE;IACvCzC,gBAAgB,CAAEiB,MAAM,IAAKA,MAAM,CAACuB,iBAAiB,CAACC,OAAO,CAAC,CAAC;EACjE;;EAEA;AACF;AACA;EACEC,mBAAmBA,CAACD,OAAqB,EAAE;IACzCzC,gBAAgB,CAAEiB,MAAM,IAAKA,MAAM,CAACyB,mBAAmB,CAACD,OAAO,CAAC,CAAC;EACnE;;EAEA;AACF;AACA;EACEE,kBAAkBA,CAACF,OAAqB,EAAE;IACxCzC,gBAAgB,CAAEiB,MAAM,IAAKA,MAAM,CAAC0B,kBAAkB,CAACF,OAAO,CAAC,CAAC;EAClE;;EAEA;AACF;AACA;EACEG,mBAAmBA,CAACH,OAAqB,EAAEI,UAAmB,EAAE;IAC9D7C,gBAAgB,CAAEiB,MAAM,IACtBA,MAAM,CAAC2B,mBAAmB,CAACH,OAAO,EAAEI,UAAU,CAChD,CAAC;EACH;AACF","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":[]}
@@ -96,6 +96,19 @@ export let ZixflowLocationTrackingMode = /*#__PURE__*/function (ZixflowLocationT
96
96
  return ZixflowLocationTrackingMode;
97
97
  }({});
98
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
+
99
112
  /**
100
113
  * Enum to specify the type of metric for tracking
101
114
  *
@@ -1 +1 @@
1
- {"version":3,"names":["ZixflowLogLevel","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;;AAsBA;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,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":[]}
@@ -0,0 +1,88 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * Public types for the Live Activities module.
5
+ *
6
+ * Live Activities (iOS) / Live Notifications (Android) render live, updating
7
+ * notifications from built-in templates. Two templates ship today: Segments and
8
+ * Countdown Timer. Field names and identifiers are identical across platforms.
9
+ */
10
+
11
+ /**
12
+ * Built-in activity type identifiers usable from the wrapper.
13
+ *
14
+ * The values are the reverse-DNS identifiers Zixflow uses everywhere — the
15
+ * `notificationType` on the wire, Android's `LiveNotificationType`, and iOS's
16
+ * `CIOSegmentsAttributes.identifier` — so JS, both native SDKs, and the backend
17
+ * share one vocabulary.
18
+ *
19
+ * Use these enum members (not raw strings) for `LiveActivitiesConfig.types` and a
20
+ * payload's `type` to avoid typos.
21
+ *
22
+ * @public
23
+ */
24
+ export let LiveActivityTemplate = /*#__PURE__*/function (LiveActivityTemplate) {
25
+ LiveActivityTemplate["Segments"] = "com.zixflow.livenotifications.segments";
26
+ LiveActivityTemplate["CountdownTimer"] = "com.zixflow.livenotifications.countdowntimer";
27
+ /**
28
+ * Your own activity type, rendered by SwiftUI you write.
29
+ *
30
+ * Unlike the members above, this value is a marker rather than an identifier — your activity is
31
+ * named by {@link LiveActivitiesConfig.customType}, and the SDK reports it under that name. It
32
+ * belongs in a payload's `type`, never in {@link LiveActivitiesConfig.types}.
33
+ */
34
+ LiveActivityTemplate["Custom"] = "custom";
35
+ return LiveActivityTemplate;
36
+ }({});
37
+
38
+ /**
39
+ * Segments template — a progress activity split into N segments.
40
+ * `header` is a static attribute (fixed at start); the rest are content-state.
41
+ *
42
+ * @public
43
+ */
44
+
45
+ /**
46
+ * Custom template — your own activity type, rendered by SwiftUI you write.
47
+ *
48
+ * Unlike the built-in templates there is no schema: `data` is an untyped map, because a bridge
49
+ * payload carries nothing for the SDK to validate against. Every value is a string, so your widget
50
+ * parses whichever ones it needs.
51
+ *
52
+ * Requires {@link LiveActivitiesConfig.customType} to be set. On iOS you must also render
53
+ * `CIOCustomAttributes` in your Widget Extension; on Android your `createLiveNotification`
54
+ * callback receives the same map.
55
+ *
56
+ * @public
57
+ */
58
+
59
+ /**
60
+ * Countdown Timer template — a live countdown to a target time.
61
+ * `header` is a static attribute (fixed at start); the rest are content-state.
62
+ *
63
+ * @public
64
+ */
65
+
66
+ /**
67
+ * Payload for {@link ZixflowLiveActivities.start} and
68
+ * {@link ZixflowLiveActivities.update}.
69
+ *
70
+ * Because ActivityKit replaces content-state wholesale on update, `update` takes the
71
+ * same full payload as `start` — pass the complete desired state each time.
72
+ *
73
+ * @public
74
+ */
75
+
76
+ /**
77
+ * Live Activities branding (Android only). On iOS, branding is compiled into the
78
+ * widget extension's SwiftUI, so these values are ignored there.
79
+ *
80
+ * @public
81
+ */
82
+
83
+ /**
84
+ * Live Activities configuration, passed under the `liveNotifications` key of the SDK config.
85
+ *
86
+ * @public
87
+ */
88
+ //# sourceMappingURL=live-activities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["LiveActivityTemplate"],"sourceRoot":"../../../src","sources":["types/live-activities.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAYA,oBAAoB,0BAApBA,oBAAoB;EAApBA,oBAAoB;EAApBA,oBAAoB;EAG9B;AACF;AACA;AACA;AACA;AACA;AACA;EATYA,oBAAoB;EAAA,OAApBA,oBAAoB;AAAA;;AAahC;AACA;AACA;AACA;AACA;AACA;;AAiBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAcA;AACA;AACA;AACA;AACA;AACA;;AAaA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA;AACA;AACA;AACA;AACA;AACA;;AAkBA;AACA;AACA;AACA;AACA","ignoreList":[]}