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 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_NotificationInboxViewNativeComponent","_jsxRuntime","e","__esModule","default","NotificationInboxView","props","jsx","_default","exports"],"sourceRoot":"../../../src","sources":["components/NotificationInboxView.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,qCAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEkE,IAAAE,WAAA,GAAAF,OAAA;AAAA,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAElE;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMG,qBAA2D,GAAIC,KAAK,IAAK;EAC7E,oBAAO,IAAAL,WAAA,CAAAM,GAAA,EAACP,qCAAA,CAAAI,OAAoC;IAAA,GAAKE;EAAK,CAAG,CAAC;AAC5D,CAAC;AAAC,IAAAE,QAAA,GAAAC,OAAA,CAAAL,OAAA,GAEaC,qBAAqB","ignoreList":[]}
@@ -9,6 +9,20 @@ Object.defineProperty(exports, "InlineInAppMessageView", {
9
9
  return _InlineInAppMessageView.default;
10
10
  }
11
11
  });
12
+ Object.defineProperty(exports, "NotificationInboxBellView", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _NotificationInboxBellView.default;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "NotificationInboxView", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _NotificationInboxView.default;
22
+ }
23
+ });
12
24
  var _InlineInAppMessageView = _interopRequireDefault(require("./InlineInAppMessageView.js"));
25
+ var _NotificationInboxBellView = _interopRequireDefault(require("./NotificationInboxBellView.js"));
26
+ var _NotificationInboxView = _interopRequireDefault(require("./NotificationInboxView.js"));
13
27
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
28
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_InlineInAppMessageView","_interopRequireDefault","require","e","__esModule","default"],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":";;;;;;;;;;;AAEA,IAAAA,uBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA6E,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","ignoreList":[]}
1
+ {"version":3,"names":["_InlineInAppMessageView","_interopRequireDefault","require","_NotificationInboxBellView","_NotificationInboxView","e","__esModule","default"],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAAA,uBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAIA,IAAAC,0BAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA,IAAAE,sBAAA,GAAAH,sBAAA,CAAAC,OAAA;AAA2E,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","ignoreList":[]}
@@ -3,14 +3,91 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- var _zixflow = require("./zixflow.js");
7
- Object.keys(_zixflow).forEach(function (key) {
6
+ var _zixflowCdp = require("./zixflow-cdp.js");
7
+ Object.keys(_zixflowCdp).forEach(function (key) {
8
8
  if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _zixflow[key]) return;
9
+ if (key in exports && exports[key] === _zixflowCdp[key]) return;
10
10
  Object.defineProperty(exports, key, {
11
11
  enumerable: true,
12
12
  get: function () {
13
- return _zixflow[key];
13
+ return _zixflowCdp[key];
14
+ }
15
+ });
16
+ });
17
+ var _zixflowGeofence = require("./zixflow-geofence.js");
18
+ Object.keys(_zixflowGeofence).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _zixflowGeofence[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function () {
24
+ return _zixflowGeofence[key];
25
+ }
26
+ });
27
+ });
28
+ var _zixflowInapp = require("./zixflow-inapp.js");
29
+ Object.keys(_zixflowInapp).forEach(function (key) {
30
+ if (key === "default" || key === "__esModule") return;
31
+ if (key in exports && exports[key] === _zixflowInapp[key]) return;
32
+ Object.defineProperty(exports, key, {
33
+ enumerable: true,
34
+ get: function () {
35
+ return _zixflowInapp[key];
36
+ }
37
+ });
38
+ });
39
+ var _zixflowLiveactivities = require("./zixflow-liveactivities.js");
40
+ Object.keys(_zixflowLiveactivities).forEach(function (key) {
41
+ if (key === "default" || key === "__esModule") return;
42
+ if (key in exports && exports[key] === _zixflowLiveactivities[key]) return;
43
+ Object.defineProperty(exports, key, {
44
+ enumerable: true,
45
+ get: function () {
46
+ return _zixflowLiveactivities[key];
47
+ }
48
+ });
49
+ });
50
+ var _zixflowLocation = require("./zixflow-location.js");
51
+ Object.keys(_zixflowLocation).forEach(function (key) {
52
+ if (key === "default" || key === "__esModule") return;
53
+ if (key in exports && exports[key] === _zixflowLocation[key]) return;
54
+ Object.defineProperty(exports, key, {
55
+ enumerable: true,
56
+ get: function () {
57
+ return _zixflowLocation[key];
58
+ }
59
+ });
60
+ });
61
+ var _zixflowPush = require("./zixflow-push.js");
62
+ Object.keys(_zixflowPush).forEach(function (key) {
63
+ if (key === "default" || key === "__esModule") return;
64
+ if (key in exports && exports[key] === _zixflowPush[key]) return;
65
+ Object.defineProperty(exports, key, {
66
+ enumerable: true,
67
+ get: function () {
68
+ return _zixflowPush[key];
69
+ }
70
+ });
71
+ });
72
+ var _index = require("./components/index.js");
73
+ Object.keys(_index).forEach(function (key) {
74
+ if (key === "default" || key === "__esModule") return;
75
+ if (key in exports && exports[key] === _index[key]) return;
76
+ Object.defineProperty(exports, key, {
77
+ enumerable: true,
78
+ get: function () {
79
+ return _index[key];
80
+ }
81
+ });
82
+ });
83
+ var _index2 = require("./types/index.js");
84
+ Object.keys(_index2).forEach(function (key) {
85
+ if (key === "default" || key === "__esModule") return;
86
+ if (key in exports && exports[key] === _index2[key]) return;
87
+ Object.defineProperty(exports, key, {
88
+ enumerable: true,
89
+ get: function () {
90
+ return _index2[key];
14
91
  }
15
92
  });
16
93
  });
@@ -1 +1 @@
1
- {"version":3,"names":["_zixflow","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;AAQA,IAAAA,QAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,QAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,QAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,QAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
1
+ {"version":3,"names":["_zixflowCdp","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_zixflowGeofence","_zixflowInapp","_zixflowLiveactivities","_zixflowLocation","_zixflowPush","_index","_index2"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;AAMA,IAAAA,WAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,WAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,WAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD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A,CAAAD,GAAA,MAAAW,OAAA,CAAAX,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAO,OAAA,CAAAX,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.NotificationInbox = void 0;
7
+ exports.parseInboxMessage = parseInboxMessage;
7
8
  var _nativeLoggerListener = require("./native-logger-listener.js");
8
9
  var _NativeZixflowMessagingInApp = _interopRequireDefault(require("./specs/modules/NativeZixflowMessagingInApp.js"));
9
10
  var _nativeBridge = require("./utils/native-bridge.js");
@@ -1 +1 @@
1
- {"version":3,"names":["_nativeLoggerListener","require","_NativeZixflowMessagingInApp","_interopRequireDefault","_nativeBridge","e","__esModule","default","nativeModule","ensureNativeModule","NativeZixflowMessagingInApp","withNativeModule","fn","callNativeModule","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","NativeLoggerListener","warn","remove","eventType","key","subscriber","markMessageOpened","message","markMessageUnopened","markMessageDeleted","trackMessageClicked","actionName","exports"],"sourceRoot":"../../src","sources":["notification-inbox.ts"],"mappings":";;;;;;AACA,IAAAA,qBAAA,GAAAC,OAAA;AAEA,IAAAC,4BAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,aAAA,GAAAH,OAAA;AAA6E,SAAAE,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE7E;AACA,MAAMG,YAAY,GAAG,IAAAC,gCAAkB,EAACC,oCAA2B,CAAC;;AAEpE;AACA,M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tBA,MAAM,CAAC4B,mBAAmB,CAACH,OAAO,EAAEI,UAAU,CAChD,CAAC;EACH;AACF;AAACC,OAAA,CAAAjC,iBAAA,GAAAA,iBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_nativeLoggerListener","require","_NativeZixflowMessagingInApp","_interopRequireDefault","_nativeBridge","e","__esModule","default","nativeModule","ensureNativeModule","NativeZixflowMessagingInApp","withNativeModule","fn","callNativeModule","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","NativeLoggerListener","warn","remove","eventType","key","subscriber","markMessageOpened","message","markMessageUnopened","markMessageDeleted","trackMessageClicked","actionName","exports"],"sourceRoot":"../../src","sources":["notification-inbox.ts"],"mappings":";;;;;;;AACA,IAAAA,qBAAA,GAAAC,OAAA;AAEA,IAAAC,4BAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,aAAA,GAAAH,OAAA;AAA6E,SAAAE,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE7E;AACA,MAAMG,YAAY,GAAG,IAAAC,gCAAkB,EAACC,oCAA2B,CAAC;;AAEpE;AACA,MAAMC,gBAAgB,GAAOC,EAA8B,IAAQ;EACjE,OAAO,IAAAC,8BAAgB,EAACL,YAAY,EAAEI,EAAE,CAAC;AAC3C,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;;AAaA;AACA;AACA;AACA;AACA;AACA;;AAMA;AACA;AACA;AACA;AACO,SAASE,iBAAiBA,CAACC,GAAQ,EAAgB;EACxD,OAAO;IACLC,OAAO,EAAED,GAAG,CAACC,OAAO;IACpBC,UAAU,EAAEF,GAAG,CAACE,UAAU,IAAIC,SAAS;IACvCC,MAAM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ACAA,MAAM,CAACe,kBAAkB,CAAC,CAAC;;QAE3B;QACA,OAAOf,MAAM,CAACgB,0BAA0B,CAACX,OAAO,CAAC;MACnD,CAAC,CAAC,OAAOY,KAAK,EAAE;QACdC,0CAAoB,CAACC,IAAI,CACvB,yCAAyC,EACzCF,KACF,CAAC;QACD;QACA,OAAO;UACLG,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;IACvC3C,gBAAgB,CAAEkB,MAAM,IAAKA,MAAM,CAACwB,iBAAiB,CAACC,OAAO,CAAC,CAAC;EACjE;;EAEA;AACF;AACA;EACEC,mBAAmBA,CAACD,OAAqB,EAAE;IACzC3C,gBAAgB,CAAEkB,MAAM,IAAKA,MAAM,CAAC0B,mBAAmB,CAACD,OAAO,CAAC,CAAC;EACnE;;EAEA;AACF;AACA;EACEE,kBAAkBA,CAACF,OAAqB,EAAE;IACxC3C,gBAAgB,CAAEkB,MAAM,IAAKA,MAAM,CAAC2B,kBAAkB,CAACF,OAAO,CAAC,CAAC;EAClE;;EAEA;AACF;AACA;EACEG,mBAAmBA,CAACH,OAAqB,EAAEI,UAAmB,EAAE;IAC9D/C,gBAAgB,CAAEkB,MAAM,IACtBA,MAAM,CAAC4B,mBAAmB,CAACH,OAAO,EAAEI,UAAU,CAChD,CAAC;EACH;AACF;AAACC,OAAA,CAAAjC,iBAAA,GAAAA,iBAAA","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":["_reactNative","require","_default","exports","default","TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../../../src","sources":["specs/modules/NativeZixflow.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAGA;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;AAHA,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAoBeC,gCAAmB,CAACC,YAAY,CAAO,eAAe,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../../../src","sources":["specs/modules/NativeZixflow.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAMA;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;AAHA,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAyBeC,gCAAmB,CAACC,YAAY,CAAO,eAAe,CAAC","ignoreList":[]}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _reactNative = require("react-native");
8
+ /**
9
+ * Native module specification for Zixflow Geofence React Native SDK
10
+ *
11
+ * @see NativeZixflow.ts for detailed documentation on TurboModule patterns,
12
+ * Codegen compatibility, and type safety approach.
13
+ */
14
+ var _default = exports.default = _reactNative.TurboModuleRegistry.get('NativeZixflowGeofence');
15
+ //# sourceMappingURL=NativeZixflowGeofence.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","get"],"sourceRoot":"../../../../src","sources":["specs/modules/NativeZixflowGeofence.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AALA,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAWeC,gCAAmB,CAACC,GAAG,CAAO,uBAAuB,CAAC","ignoreList":[]}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _reactNative = require("react-native");
8
+ /**
9
+ * Native module specification for Zixflow Live Activities React Native SDK
10
+ *
11
+ * Live Activities (iOS) / Live Notifications (Android) let you show a live,
12
+ * updating notification driven by a built-in template (Segments, Countdown Timer)
13
+ * or by a custom type you render yourself.
14
+ *
15
+ * @see NativeZixflow.ts for detailed documentation on TurboModule patterns,
16
+ * Codegen compatibility, and type safety approach.
17
+ */
18
+ // Registered unconditionally on both platforms — Android in ZixflowReactNativePackage, iOS via
19
+ // an ObjC bridge that is always compiled. When the Live Activities pods are absent the module is
20
+ // still present and its methods reject with `live_activity_module_unavailable`, so `getEnforcing`
21
+ // is accurate here (unlike Location, which really can be absent and uses `get`).
22
+ var _default = exports.default = _reactNative.TurboModuleRegistry.getEnforcing('NativeZixflowLiveActivities');
23
+ //# sourceMappingURL=NativeZixflowLiveActivities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../../../src","sources":["specs/modules/NativeZixflowLiveActivities.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAoBA;AACA;AACA;AACA;AAAA,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GACeC,gCAAmB,CAACC,YAAY,CAC7C,6BACF,CAAC","ignoreList":[]}
@@ -12,5 +12,7 @@ var _reactNative = require("react-native");
12
12
  * Codegen compatibility, and type safety approach.
13
13
  */
14
14
  /** TurboModule interface for Zixflow In-App Messaging native operations */
15
- var _default = exports.default = _reactNative.TurboModuleRegistry.get('NativeZixflowMessagingInApp');
15
+ // Registered unconditionally on both platforms, like MessagingPush and DataPipelines — not
16
+ // gated by an optional subspec/module flag the way Location and Geofence are.
17
+ var _default = exports.default = _reactNative.TurboModuleRegistry.getEnforcing('NativeZixflowMessagingInApp');
16
18
  //# sourceMappingURL=NativeZixflowMessagingInApp.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","get"],"sourceRoot":"../../../../src","sources":["specs/modules/NativeZixflowMessagingInApp.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAMA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAceC,gCAAmB,CAACC,GAAG,CACpC,6BACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../../../src","sources":["specs/modules/NativeZixflowMessagingInApp.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAMA;AACA;AACA;AACA;AACA;AACA;AAEA;AAuBA;AACA;AAAA,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GACeC,gCAAmB,CAACC,YAAY,CAC7C,6BACF,CAAC","ignoreList":[]}
@@ -11,5 +11,7 @@ var _reactNative = require("react-native");
11
11
  * @see NativeZixflow.ts for detailed documentation on TurboModule patterns,
12
12
  * Codegen compatibility, and type safety approach.
13
13
  */
14
- var _default = exports.default = _reactNative.TurboModuleRegistry.get('NativeZixflowMessagingPush');
14
+ // Registered unconditionally on both platforms, like MessagingInApp and DataPipelines — not
15
+ // gated by an optional subspec/module flag the way Location and Geofence are.
16
+ var _default = exports.default = _reactNative.TurboModuleRegistry.getEnforcing('NativeZixflowMessagingPush');
15
17
  //# sourceMappingURL=NativeZixflowMessagingPush.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","get"],"sourceRoot":"../../../../src","sources":["specs/modules/NativeZixflowMessagingPush.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AALA,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAqBeC,gCAAmB,CAACC,GAAG,CACpC,4BACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../../../src","sources":["specs/modules/NativeZixflowMessagingPush.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AAgBA;AACA;AAAA,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GACeC,gCAAmB,CAACC,YAAY,CAC7C,4BACF,CAAC","ignoreList":[]}
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.ZixflowLogLevel = exports.ZixflowLocationTrackingMode = exports.ScreenView = exports.MetricEvent = void 0;
6
+ exports.ZixflowLogLevel = exports.ZixflowLocationTrackingMode = exports.ZixflowGeofenceLocationMode = exports.ScreenView = exports.MetricEvent = void 0;
7
7
  /**
8
8
  * Key-value pairs for custom user attributes and event properties.
9
9
  *
@@ -94,6 +94,18 @@ let ZixflowLocationTrackingMode = exports.ZixflowLocationTrackingMode = /*#__PUR
94
94
  ZixflowLocationTrackingMode["OnAppStart"] = "ON_APP_START";
95
95
  return ZixflowLocationTrackingMode;
96
96
  }({});
97
+ /**
98
+ * How the Geofence module acquires location fixes.
99
+ *
100
+ * @public
101
+ */
102
+ let ZixflowGeofenceLocationMode = exports.ZixflowGeofenceLocationMode = /*#__PURE__*/function (ZixflowGeofenceLocationMode) {
103
+ /** SDK acquires location itself (on identify and app launch). Default. */
104
+ ZixflowGeofenceLocationMode["Automatic"] = "AUTOMATIC";
105
+ /** Host drives refreshes via `Zixflow.geofence.refreshFromCurrentLocation()`. */
106
+ ZixflowGeofenceLocationMode["Manual"] = "MANUAL";
107
+ return ZixflowGeofenceLocationMode;
108
+ }({});
97
109
  /**
98
110
  * Enum to specify the type of metric for tracking
99
111
  *
@@ -1 +1 @@
1
- {"version":3,"names":["ZixflowLogLevel","exports","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;AANA,IAOYA,eAAe,GAAAC,OAAA,CAAAD,eAAA,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;AAPA,IAQYE,UAAU,GAAAD,OAAA,CAAAC,UAAA,0BAAVA,UAAU;EACpB;EADUA,UAAU;EAGpB;EAHUA,UAAU;EAAA,OAAVA,UAAU;AAAA;AAOtB;AACA;AACA;AACA;AACA;AAJA,IAKYC,2BAA2B,GAAAF,OAAA,CAAAE,2BAAA,0BAA3BA,2BAA2B;EACrC;EADUA,2BAA2B;EAGrC;EAHUA,2BAA2B;EAKrC;EALUA,2BAA2B;EAAA,OAA3BA,2BAA2B;AAAA;AASvC;AACA;AACA;AACA;AACA;AAJA,IAKYC,WAAW,GAAAH,OAAA,CAAAG,WAAA,0BAAXA,WAAW;EACrB;EADUA,WAAW;EAGrB;EAHUA,WAAW;EAKrB;EALUA,WAAW;EAAA,OAAXA,WAAW;AAAA","ignoreList":[]}
1
+ {"version":3,"names":["ZixflowLogLevel","exports","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;AANA,IAOYA,eAAe,GAAAC,OAAA,CAAAD,eAAA,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;AAPA,IAQYE,UAAU,GAAAD,OAAA,CAAAC,UAAA,0BAAVA,UAAU;EACpB;EADUA,UAAU;EAGpB;EAHUA,UAAU;EAAA,OAAVA,UAAU;AAAA;AAOtB;AACA;AACA;AACA;AACA;AAJA,IAKYC,2BAA2B,GAAAF,OAAA,CAAAE,2BAAA,0BAA3BA,2BAA2B;EACrC;EADUA,2BAA2B;EAGrC;EAHUA,2BAA2B;EAKrC;EALUA,2BAA2B;EAAA,OAA3BA,2BAA2B;AAAA;AASvC;AACA;AACA;AACA;AACA;AAJA,IAKYC,2BAA2B,GAAAH,OAAA,CAAAG,2BAAA,0BAA3BA,2BAA2B;EACrC;EADUA,2BAA2B;EAGrC;EAHUA,2BAA2B;EAAA,OAA3BA,2BAA2B;AAAA;AAOvC;AACA;AACA;AACA;AACA;AAJA,IAKYC,WAAW,GAAAJ,OAAA,CAAAI,WAAA,0BAAXA,WAAW;EACrB;EADUA,WAAW;EAGrB;EAHUA,WAAW;EAKrB;EALUA,WAAW;EAAA,OAAXA,WAAW;AAAA","ignoreList":[]}
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.InAppMessageEventType = void 0;
6
+ exports.ZixflowColorScheme = exports.InAppMessageEventType = void 0;
7
7
  /**
8
8
  * In-app message data structure for event callbacks.
9
9
  *
@@ -24,6 +24,29 @@ let InAppMessageEventType = exports.InAppMessageEventType = /*#__PURE__*/functio
24
24
  InAppMessageEventType["messageShown"] = "messageShown";
25
25
  return InAppMessageEventType;
26
26
  }({});
27
+ /**
28
+ * Color scheme used to render in-app messages.
29
+ *
30
+ * Selects which of the light/dark variants authored in the Zixflow editor is
31
+ * rendered. Use it when the app has its own appearance setting that can disagree with
32
+ * the operating system: `Auto` follows the device, while `Light` and `Dark` pin the
33
+ * variant regardless of it.
34
+ *
35
+ * The string values are the wire contract shared with both native SDKs, which match
36
+ * them lowercase and resolve anything unrecognized to `auto` — so they must stay
37
+ * exactly as written here even if the members are renamed.
38
+ *
39
+ * @public
40
+ */
41
+ let ZixflowColorScheme = exports.ZixflowColorScheme = /*#__PURE__*/function (ZixflowColorScheme) {
42
+ /** Follow the device's current appearance. The default when unset. */
43
+ ZixflowColorScheme["Auto"] = "auto";
44
+ /** Always render the light variant, whatever the device is set to. */
45
+ ZixflowColorScheme["Light"] = "light";
46
+ /** Always render the dark variant, whatever the device is set to. */
47
+ ZixflowColorScheme["Dark"] = "dark";
48
+ return ZixflowColorScheme;
49
+ }({});
27
50
  /**
28
51
  * Represents an inbox message for a user.
29
52
  *
@@ -1 +1 @@
1
- {"version":3,"names":["InAppMessageEventType","exports"],"sourceRoot":"../../../src","sources":["types/in-app.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAUA;AACA;AACA;AACA;AACA;AAJA,IAKYA,qBAAqB,GAAAC,OAAA,CAAAD,qBAAA,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","exports","ZixflowColorScheme"],"sourceRoot":"../../../src","sources":["types/in-app.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAUA;AACA;AACA;AACA;AACA;AAJA,IAKYA,qBAAqB,GAAAC,OAAA,CAAAD,qBAAA,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;AAbA,IAcYE,kBAAkB,GAAAD,OAAA,CAAAC,kBAAA,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,79 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.InboxMessageEvent = exports.InboxEventType = void 0;
7
+ /**
8
+ * Enum representing the type of event triggered by an inbox event callback.
9
+ *
10
+ * Mirrors the native `InboxEventListener` contract on iOS and Android.
11
+ *
12
+ * @public
13
+ */
14
+ let InboxEventType = exports.InboxEventType = /*#__PURE__*/function (InboxEventType) {
15
+ /** A non-dismiss action (e.g. a button/link) was taken on an inbox message. */
16
+ InboxEventType["messageActionTaken"] = "messageActionTaken";
17
+ /** An inbox message was first shown/rendered in the visible inbox view. */
18
+ InboxEventType["messageShown"] = "messageShown";
19
+ /** An inbox message was marked opened (e.g. when the panel opens). */
20
+ InboxEventType["messageOpened"] = "messageOpened";
21
+ /** An inbox message was dismissed/removed from the inbox. */
22
+ InboxEventType["messageDismissed"] = "messageDismissed";
23
+ return InboxEventType;
24
+ }({});
25
+ /**
26
+ * Event delivered to a registered inbox event listener.
27
+ *
28
+ * `messageActionTaken` carries `actionName`/`actionValue`; the observational
29
+ * events (`messageShown`, `messageOpened`, `messageDismissed`) carry only the
30
+ * message.
31
+ *
32
+ * @public
33
+ */
34
+ class InboxMessageEvent {
35
+ /** The type of inbox event. */
36
+
37
+ /** The inbox message the event relates to. */
38
+
39
+ /** The Jist action name (only present for `messageActionTaken`). */
40
+
41
+ /** The resolved action value, typically a url (only present for `messageActionTaken`). */
42
+
43
+ constructor(eventType, message, actionName, actionValue) {
44
+ this.eventType = eventType;
45
+ this.message = message;
46
+ this.actionName = actionName;
47
+ this.actionValue = actionValue;
48
+ }
49
+ }
50
+
51
+ /**
52
+ * Host-provided accessibility labels for the Visual Notification Inbox UI.
53
+ *
54
+ * The SDK ships no text of its own in the visual inbox — the empty state is an icon and the
55
+ * loading state is a spinner — so accessibility labels are the one place a string is still
56
+ * needed. Because the SDK cannot know your app's language, every label is optional and unset by
57
+ * default, and an omitted label leaves that element unlabeled rather than falling back to
58
+ * English. Pass strings already localized for the user's language.
59
+ *
60
+ * @example
61
+ * ```ts
62
+ * Zixflow.initialize({
63
+ * apiKey: '...',
64
+ * inApp: {
65
+ * siteId: '...',
66
+ * notificationInboxAccessibilityLabels: {
67
+ * bell: t('inbox.bell'),
68
+ * bellWithUnreadCount: t('inbox.unread'), // e.g. "{count} unread notifications"
69
+ * loadingIndicator: t('inbox.loading'),
70
+ * emptyState: t('inbox.empty'),
71
+ * },
72
+ * },
73
+ * });
74
+ * ```
75
+ *
76
+ * @public
77
+ */
78
+ exports.InboxMessageEvent = InboxMessageEvent;
79
+ //# sourceMappingURL=inbox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["InboxEventType","exports","InboxMessageEvent","constructor","eventType","message","actionName","actionValue"],"sourceRoot":"../../../src","sources":["types/inbox.ts"],"mappings":";;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AANA,IAOYA,cAAc,GAAAC,OAAA,CAAAD,cAAA,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;AACO,MAAME,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;AA1BAN,OAAA,CAAAC,iBAAA,GAAAA,iBAAA","ignoreList":[]}
@@ -25,6 +25,28 @@ Object.keys(_inApp).forEach(function (key) {
25
25
  }
26
26
  });
27
27
  });
28
+ var _inbox = require("./inbox.js");
29
+ Object.keys(_inbox).forEach(function (key) {
30
+ if (key === "default" || key === "__esModule") return;
31
+ if (key in exports && exports[key] === _inbox[key]) return;
32
+ Object.defineProperty(exports, key, {
33
+ enumerable: true,
34
+ get: function () {
35
+ return _inbox[key];
36
+ }
37
+ });
38
+ });
39
+ var _liveActivities = require("./live-activities.js");
40
+ Object.keys(_liveActivities).forEach(function (key) {
41
+ if (key === "default" || key === "__esModule") return;
42
+ if (key in exports && exports[key] === _liveActivities[key]) return;
43
+ Object.defineProperty(exports, key, {
44
+ enumerable: true,
45
+ get: function () {
46
+ return _liveActivities[key];
47
+ }
48
+ });
49
+ });
28
50
  var _push = require("./push.js");
29
51
  Object.keys(_push).forEach(function (key) {
30
52
  if (key === "default" || key === "__esModule") return;
@@ -1 +1 @@
1
- {"version":3,"names":["_dataPipelines","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_inApp","_push"],"sourceRoot":"../../../src","sources":["types/index.ts"],"mappings":";;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,cAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,cAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,cAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,MAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,MAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,MAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,MAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,KAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,KAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,KAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAE,KAAA,CAAAN,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
1
+ {"version":3,"names":["_dataPipelines","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_inApp","_inbox","_liveActivities","_push"],"sourceRoot":"../../../src","sources":["types/index.ts"],"mappings":";;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,cAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,cAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,cAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,MAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,MAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,MAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,MAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,MAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,MAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,MAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAE,MAAA,CAAAN,GAAA;IAAA;EAAA;AAAA;AACA,IAAAO,eAAA,GAAAX,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAS,eAAA,EAAAR,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAO,eAAA,CAAAP,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAG,eAAA,CAAAP,GAAA;IAAA;EAAA;AAAA;AACA,IAAAQ,KAAA,GAAAZ,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAU,KAAA,EAAAT,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAQ,KAAA,CAAAR,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAI,KAAA,CAAAR,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.LiveActivityTemplate = void 0;
7
+ /**
8
+ * Public types for the Live Activities module.
9
+ *
10
+ * Live Activities (iOS) / Live Notifications (Android) render live, updating
11
+ * notifications from built-in templates. Two templates ship today: Segments and
12
+ * Countdown Timer. Field names and identifiers are identical across platforms.
13
+ */
14
+ /**
15
+ * Built-in activity type identifiers usable from the wrapper.
16
+ *
17
+ * The values are the reverse-DNS identifiers Zixflow uses everywhere — the
18
+ * `notificationType` on the wire, Android's `LiveNotificationType`, and iOS's
19
+ * `CIOSegmentsAttributes.identifier` — so JS, both native SDKs, and the backend
20
+ * share one vocabulary.
21
+ *
22
+ * Use these enum members (not raw strings) for `LiveActivitiesConfig.types` and a
23
+ * payload's `type` to avoid typos.
24
+ *
25
+ * @public
26
+ */
27
+ let LiveActivityTemplate = exports.LiveActivityTemplate = /*#__PURE__*/function (LiveActivityTemplate) {
28
+ LiveActivityTemplate["Segments"] = "com.zixflow.livenotifications.segments";
29
+ LiveActivityTemplate["CountdownTimer"] = "com.zixflow.livenotifications.countdowntimer";
30
+ /**
31
+ * Your own activity type, rendered by SwiftUI you write.
32
+ *
33
+ * Unlike the members above, this value is a marker rather than an identifier — your activity is
34
+ * named by {@link LiveActivitiesConfig.customType}, and the SDK reports it under that name. It
35
+ * belongs in a payload's `type`, never in {@link LiveActivitiesConfig.types}.
36
+ */
37
+ LiveActivityTemplate["Custom"] = "custom";
38
+ return LiveActivityTemplate;
39
+ }({});
40
+ /**
41
+ * Segments template — a progress activity split into N segments.
42
+ * `header` is a static attribute (fixed at start); the rest are content-state.
43
+ *
44
+ * @public
45
+ */
46
+ /**
47
+ * Custom template — your own activity type, rendered by SwiftUI you write.
48
+ *
49
+ * Unlike the built-in templates there is no schema: `data` is an untyped map, because a bridge
50
+ * payload carries nothing for the SDK to validate against. Every value is a string, so your widget
51
+ * parses whichever ones it needs.
52
+ *
53
+ * Requires {@link LiveActivitiesConfig.customType} to be set. On iOS you must also render
54
+ * `CIOCustomAttributes` in your Widget Extension; on Android your `createLiveNotification`
55
+ * callback receives the same map.
56
+ *
57
+ * @public
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
+ * Payload for {@link ZixflowLiveActivities.start} and
67
+ * {@link ZixflowLiveActivities.update}.
68
+ *
69
+ * Because ActivityKit replaces content-state wholesale on update, `update` takes the
70
+ * same full payload as `start` — pass the complete desired state each time.
71
+ *
72
+ * @public
73
+ */
74
+ /**
75
+ * Live Activities branding (Android only). On iOS, branding is compiled into the
76
+ * widget extension's SwiftUI, so these values are ignored there.
77
+ *
78
+ * @public
79
+ */
80
+ /**
81
+ * Live Activities configuration, passed under the `liveNotifications` key of the SDK config.
82
+ *
83
+ * @public
84
+ */
85
+ //# sourceMappingURL=live-activities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["LiveActivityTemplate","exports"],"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;AAZA,IAaYA,oBAAoB,GAAAC,OAAA,CAAAD,oBAAA,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":[]}