zixflow-reactnative 1.1.3 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +41 -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 +15 -2
  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 +91 -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
@@ -1,5 +1,5 @@
1
1
  import { type TurboModule } from 'react-native';
2
- import type { UnsafeObject } from 'react-native/Libraries/Types/CodegenTypes';
2
+ import type { EventEmitter, UnsafeObject } from 'react-native/Libraries/Types/CodegenTypes';
3
3
  /**
4
4
  * Native module specification for Zixflow React Native SDK
5
5
  *
@@ -31,6 +31,11 @@ type NativeBridgeObject = UnsafeObject;
31
31
  */
32
32
  export interface Spec extends TurboModule {
33
33
  initialize(config: NativeBridgeObject, args: NativeBridgeObject): Promise<void>;
34
+ setDeepLinkRoutingReady(): void;
35
+ readonly onDeepLinkReceived: EventEmitter<UnsafeObject>;
36
+ registerDeepLinkHandler(): void;
37
+ unregisterDeepLinkHandler(): void;
38
+ acknowledgeDeepLink(id: string, handled: boolean): void;
34
39
  identify(params?: NativeBridgeObject): void;
35
40
  clearIdentify(): void;
36
41
  track(name: string, properties?: NativeBridgeObject): void;
@@ -1 +1 @@
1
- {"version":3,"file":"NativeZixflow.d.ts","sourceRoot":"","sources":["../../../../../src/specs/modules/NativeZixflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AACrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAE9E;;;;;;;;;;;;;GAaG;AAEH;;;;;;;;;GASG;AACH,KAAK,kBAAkB,GAAG,YAAY,CAAC;AAMvC;;;GAGG;AACH,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,UAAU,CACR,MAAM,EAAE,kBAAkB,EAC1B,IAAI,EAAE,kBAAkB,GACvB,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB,QAAQ,CAAC,MAAM,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAC5C,aAAa,IAAI,IAAI,CAAC;IACtB,KAAK,CAAC,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,GAAG,IAAI,CAAC;IAC5C,aAAa,IAAI,IAAI,CAAC;IACtB,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAC3D,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAC7D,oBAAoB,CAAC,UAAU,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAC3D,mBAAmB,CAAC,UAAU,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAC1D,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC,WAAW,CAAC,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1E,iBAAiB,IAAI,IAAI,CAAC;CAC3B;;AAED,wBAAuE"}
@@ -0,0 +1,13 @@
1
+ import { type TurboModule } from 'react-native';
2
+ /**
3
+ * Native module specification for Zixflow Geofence React Native SDK
4
+ *
5
+ * @see NativeZixflow.ts for detailed documentation on TurboModule patterns,
6
+ * Codegen compatibility, and type safety approach.
7
+ */
8
+ export interface Spec extends TurboModule {
9
+ refreshFromCurrentLocation(): void;
10
+ }
11
+ declare const _default: Spec | null;
12
+ export default _default;
13
+ //# sourceMappingURL=NativeZixflowGeofence.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeZixflowGeofence.d.ts","sourceRoot":"","sources":["../../../../../src/specs/modules/NativeZixflowGeofence.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAErE;;;;;GAKG;AAEH,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,0BAA0B,IAAI,IAAI,CAAC;CACpC;;AAED,wBAAsE"}
@@ -0,0 +1,31 @@
1
+ import { type TurboModule } from 'react-native';
2
+ import type { UnsafeObject } from 'react-native/Libraries/Types/CodegenTypes';
3
+ /**
4
+ * Native module specification for Zixflow Live Activities React Native SDK
5
+ *
6
+ * Live Activities (iOS) / Live Notifications (Android) let you show a live,
7
+ * updating notification driven by a built-in template (Segments, Countdown Timer)
8
+ * or by a custom type you render yourself.
9
+ *
10
+ * @see NativeZixflow.ts for detailed documentation on TurboModule patterns,
11
+ * Codegen compatibility, and type safety approach.
12
+ */
13
+ type NativeBridgeObject = UnsafeObject;
14
+ export interface Spec extends TurboModule {
15
+ /** Report a Live Activity open and return the destination URL to route. */
16
+ handleWidgetUrl(url: string): Promise<string | null>;
17
+ /** Start an activity. Resolves with the SDK-minted activity id. */
18
+ start(payload: NativeBridgeObject): Promise<string>;
19
+ /** Replace the whole content-state of a running activity. Pass the full desired state. */
20
+ update(activityId: string, payload: NativeBridgeObject): Promise<void>;
21
+ /**
22
+ * End a running activity, optionally rendering a final content-state.
23
+ *
24
+ * `payload` is iOS-only: ActivityKit keeps the last content-state on screen unless a final one
25
+ * is supplied. Android renders its own terminal state, so it ignores the payload.
26
+ */
27
+ end(activityId: string, payload?: NativeBridgeObject): Promise<void>;
28
+ }
29
+ declare const _default: Spec;
30
+ export default _default;
31
+ //# sourceMappingURL=NativeZixflowLiveActivities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeZixflowLiveActivities.d.ts","sourceRoot":"","sources":["../../../../../src/specs/modules/NativeZixflowLiveActivities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AACrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAE9E;;;;;;;;;GASG;AAEH,KAAK,kBAAkB,GAAG,YAAY,CAAC;AAEvC,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,2EAA2E;IAC3E,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACrD,mEAAmE;IACnE,KAAK,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACpD,0FAA0F;IAC1F,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACvE;;;;;OAKG;IACH,GAAG,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACtE;;AAMD,wBAEE"}
@@ -9,7 +9,11 @@ import type { EventEmitter, UnsafeObject } from 'react-native/Libraries/Types/Co
9
9
  /** TurboModule interface for Zixflow In-App Messaging native operations */
10
10
  export interface Spec extends TurboModule {
11
11
  dismissMessage(): void;
12
+ setColorScheme(colorScheme: string): void;
12
13
  readonly onInAppEventReceived: EventEmitter<UnsafeObject>;
14
+ registerInboxEventListener(): void;
15
+ unregisterInboxEventListener(): void;
16
+ readonly onInboxEventReceived: EventEmitter<UnsafeObject>;
13
17
  setupInboxListener(): void;
14
18
  readonly subscribeToMessagesChanged: EventEmitter<UnsafeObject>;
15
19
  getMessages(topic?: string): Promise<UnsafeObject[]>;
@@ -18,6 +22,6 @@ export interface Spec extends TurboModule {
18
22
  markMessageDeleted(message: UnsafeObject): void;
19
23
  trackMessageClicked(message: UnsafeObject, actionName?: string): void;
20
24
  }
21
- declare const _default: Spec | null;
25
+ declare const _default: Spec;
22
26
  export default _default;
23
27
  //# sourceMappingURL=NativeZixflowMessagingInApp.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NativeZixflowMessagingInApp.d.ts","sourceRoot":"","sources":["../../../../../src/specs/modules/NativeZixflowMessagingInApp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AACrE,OAAO,KAAK,EACV,YAAY,EACZ,YAAY,EACb,MAAM,2CAA2C,CAAC;AAEnD;;;;;GAKG;AAEH,2EAA2E;AAC3E,MAAM,WAAW,IAAK,SAAQ,W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C,CAAC;IAChE,WAAW,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC;IACrD,iBAAiB,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI,CAAC;IAC/C,mBAAmB,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI,CAAC;IACjD,kBAAkB,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI,CAAC;IAChD,mBAAmB,CAAC,OAAO,EAAE,YAAY,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvE;;AAID,wBAEE"}
@@ -15,6 +15,6 @@ export interface Spec extends TurboModule {
15
15
  showPromptForPushNotifications(options: NativeBridgeObject): Promise<string>;
16
16
  getPushPermissionStatus(): Promise<string>;
17
17
  }
18
- declare const _default: Spec | null;
18
+ declare const _default: Spec;
19
19
  export default _default;
20
20
  //# sourceMappingURL=NativeZixflowMessagingPush.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NativeZixflowMessagingPush.d.ts","sourceRoot":"","sources":["../../../../../src/specs/modules/NativeZixflowMessagingPush.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AACrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAE9E;;;;;GAKG;AAEH,KAAK,kBAAkB,GAAG,YAAY,CAAC;AAEvC,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,iBAAiB,CACf,OAAO,EAAE,kBAAkB,EAC3B,yBAAyB,EAAE,OAAO,GACjC,OAAO,CAAC,OAAO,CAAC,CAAC;IACpB,iCAAiC,CAAC,OAAO,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACrE,yBAAyB,CAAC,OAAO,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAC7D,wBAAwB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAC5C,8BAA8B,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC7E,uBAAuB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;CAC5C;;AAED,wBAEE"}
1
+ {"version":3,"file":"NativeZixflowMessagingPush.d.ts","sourceRoot":"","sources":["../../../../../src/specs/modules/NativeZixflowMessagingPush.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AACrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAE9E;;;;;GAKG;AAEH,KAAK,kBAAkB,GAAG,YAAY,CAAC;AAEvC,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,iBAAiB,CACf,OAAO,EAAE,kBAAkB,EAC3B,yBAAyB,EAAE,OAAO,GACjC,OAAO,CAAC,OAAO,CAAC,CAAC;IACpB,iCAAiC,CAAC,OAAO,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACrE,yBAAyB,CAAC,OAAO,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAC7D,wBAAwB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAC5C,8BAA8B,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC7E,uBAAuB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;CAC5C;;AAID,wBAEE"}
@@ -1,3 +1,6 @@
1
+ import type { ZixflowColorScheme } from './in-app';
2
+ import type { NotificationInboxAccessibilityLabels } from './inbox';
3
+ import type { LiveActivitiesConfig } from './live-activities';
1
4
  import type { PushClickBehaviorAndroid } from './push';
2
5
  /**
3
6
  * Key-value pairs for custom user attributes and event properties.
@@ -57,7 +60,21 @@ export type ZixflowConfig = {
57
60
  screenViewUse?: ScreenView;
58
61
  trackApplicationLifecycleEvents?: boolean;
59
62
  autoTrackDeviceAttributes?: boolean;
60
- inApp?: {};
63
+ inApp?: {
64
+ /**
65
+ * Color scheme used to render in-app messages. Defaults to `ZixflowColorScheme.Auto`, which
66
+ * follows the device appearance. Set it when the app has its own appearance setting that
67
+ * can disagree with the operating system.
68
+ *
69
+ * Can be changed after initialization with `Zixflow.inAppMessaging.setColorScheme`.
70
+ */
71
+ colorScheme?: ZixflowColorScheme;
72
+ /**
73
+ * Accessibility labels for the Visual Notification Inbox. Optional; an omitted label leaves
74
+ * that element unlabeled rather than falling back to English.
75
+ */
76
+ notificationInboxAccessibilityLabels?: NotificationInboxAccessibilityLabels;
77
+ };
61
78
  push?: {
62
79
  android?: {
63
80
  pushClickBehavior?: PushClickBehaviorAndroid;
@@ -66,6 +83,30 @@ export type ZixflowConfig = {
66
83
  location?: {
67
84
  trackingMode?: ZixflowLocationTrackingMode;
68
85
  };
86
+ /**
87
+ * Geofence configuration. Providing this opts the app into geofence monitoring,
88
+ * which runs automatically once enabled. Enabling geofence also enables the
89
+ * Location module, which geofence depends on.
90
+ */
91
+ geofence?: {
92
+ /**
93
+ * How the SDK acquires location fixes for geofence monitoring. Defaults to
94
+ * `AUTOMATIC` (the SDK acquires location itself on identify and app launch). Use
95
+ * `MANUAL` to drive refreshes yourself via
96
+ * `Zixflow.geofence.refreshFromCurrentLocation()`.
97
+ */
98
+ locationMode?: ZixflowGeofenceLocationMode;
99
+ };
100
+ /** iOS-only SDK configuration. Has no effect on Android. */
101
+ ios?: {
102
+ /**
103
+ * Whether geofence transitions are delivered in real time on a background cold-wake.
104
+ * When unset, defaults to on if the geofence module is enabled, off otherwise.
105
+ */
106
+ allowBackgroundDelivery?: boolean;
107
+ };
108
+ /** Live Activities (iOS) / Live Notifications (Android) configuration. */
109
+ liveNotifications?: LiveActivitiesConfig;
69
110
  };
70
111
  /**
71
112
  * Log levels for Zixflow SDK debugging and monitoring.
@@ -111,6 +152,17 @@ export declare enum ZixflowLocationTrackingMode {
111
152
  /** SDK auto-captures location once per app launch when the app becomes active. */
112
153
  OnAppStart = "ON_APP_START"
113
154
  }
155
+ /**
156
+ * How the Geofence module acquires location fixes.
157
+ *
158
+ * @public
159
+ */
160
+ export declare enum ZixflowGeofenceLocationMode {
161
+ /** SDK acquires location itself (on identify and app launch). Default. */
162
+ Automatic = "AUTOMATIC",
163
+ /** Host drives refreshes via `Zixflow.geofence.refreshFromCurrentLocation()`. */
164
+ Manual = "MANUAL"
165
+ }
114
166
  /**
115
167
  * Enum to specify the type of metric for tracking
116
168
  *
@@ -1 +1 @@
1
- {"version":3,"file":"data-pipelines.d.ts","sourceRoot":"","sources":["../../../../src/types/data-pipelines.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,QAAQ,CAAC;AAEvD;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAEnD;;;;;;;GAOG;AACH,MAAM,WAAW,cAAc;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,gBAAgB,CAAC;CAC3B;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,UAAU,CAAC;IAC3B,+BAA+B,CAAC,EAAE,OAAO,CAAC;IAC1C,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,KAAK,CAAC,EAAE,EAAE,CAAC;IACX,IAAI,CAAC,EAAE;QACL,OAAO,CAAC,EAAE;YACR,iBAAiB,CAAC,EAAE,wBAAwB,CAAC;SAC9C,CAAC;KACH,CAAC;IACF,QAAQ,CAAC,EAAE;QACT,YAAY,CAAC,EAAE,2BAA2B,CAAC;KAC5C,CAAC;CACH,CAAC;AAEF;;;;;;GAMG;AACH,oBAAY,eAAe;IACzB,wBAAwB;IACxB,IAAI,SAAS;IACb,0BAA0B;IAC1B,KAAK,UAAU;IACf,uCAAuC;IACvC,IAAI,SAAS;IACb,+CAA+C;IAC/C,KAAK,UAAU;CAChB;AAED;;;;;;;GAOG;AACH,oBAAY,UAAU;IACpB,qEAAqE;IACrE,GAAG,QAAQ;IACX,+DAA+D;IAC/D,KAAK,UAAU;CAChB;AAED;;;;GAIG;AACH,oBAAY,2BAA2B;IACrC,oEAAoE;IACpE,GAAG,QAAQ;IACX,8FAA8F;IAC9F,MAAM,WAAW;IACjB,kFAAkF;IAClF,UAAU,iBAAiB;CAC5B;AAED;;;;GAIG;AACH,oBAAY,WAAW;IACrB,oDAAoD;IACpD,SAAS,cAAc;IACvB,+CAA+C;IAC/C,MAAM,WAAW;IACjB,iDAAiD;IACjD,SAAS,cAAc;CACxB"}
1
+ {"version":3,"file":"data-pipelines.d.ts","sourceRoot":"","sources":["../../../../src/types/data-pipelines.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,SAAS,CAAC;AACpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,QAAQ,CAAC;AAEvD;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAEnD;;;;;;;GAOG;AACH,MAAM,WAAW,cAAc;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,gBAAgB,CAAC;CAC3B;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,eAAe,CAA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C9F,MAAM,WAAW;IACjB,kFAAkF;IAClF,UAAU,iBAAiB;CAC5B;AAED;;;;GAIG;AACH,oBAAY,2BAA2B;IACrC,0EAA0E;IAC1E,SAAS,cAAc;IACvB,iFAAiF;IACjF,MAAM,WAAW;CAClB;AAED;;;;GAIG;AACH,oBAAY,WAAW;IACrB,oDAAoD;IACpD,SAAS,cAAc;IACvB,+CAA+C;IAC/C,MAAM,WAAW;IACjB,iDAAiD;IACjD,SAAS,cAAc;CACxB"}
@@ -25,6 +25,28 @@ export declare enum InAppMessageEventType {
25
25
  messageDismissed = "messageDismissed",
26
26
  messageShown = "messageShown"
27
27
  }
28
+ /**
29
+ * Color scheme used to render in-app messages.
30
+ *
31
+ * Selects which of the light/dark variants authored in the Zixflow editor is
32
+ * rendered. Use it when the app has its own appearance setting that can disagree with
33
+ * the operating system: `Auto` follows the device, while `Light` and `Dark` pin the
34
+ * variant regardless of it.
35
+ *
36
+ * The string values are the wire contract shared with both native SDKs, which match
37
+ * them lowercase and resolve anything unrecognized to `auto` — so they must stay
38
+ * exactly as written here even if the members are renamed.
39
+ *
40
+ * @public
41
+ */
42
+ export declare enum ZixflowColorScheme {
43
+ /** Follow the device's current appearance. The default when unset. */
44
+ Auto = "auto",
45
+ /** Always render the light variant, whatever the device is set to. */
46
+ Light = "light",
47
+ /** Always render the dark variant, whatever the device is set to. */
48
+ Dark = "dark"
49
+ }
28
50
  /**
29
51
  * Represents an inbox message for a user.
30
52
  *
@@ -1 +1 @@
1
- {"version":3,"file":"in-app.d.ts","sourceRoot":"","sources":["../../../../src/types/in-app.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,WAAW,YAAY;IAC3B,iDAAiD;IACjD,SAAS,EAAE,MAAM,CAAC;IAClB,2DAA2D;IAC3D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,0EAA0E;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,oBAAY,qBAAqB;IAC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sE;IACtE,KAAK,UAAU;IACf,qEAAqE;IACrE,IAAI,SAAS;CACd;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,YAAY;IAC3B,8CAA8C;IAC9C,OAAO,EAAE,MAAM,CAAC;IAChB,kDAAkD;IAClD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,+EAA+E;IAC/E,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sEAAsE;IACtE,MAAM,EAAE,MAAM,CAAC;IACf,6DAA6D;IAC7D,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,8BAA8B;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,oDAAoD;IACpD,MAAM,EAAE,OAAO,CAAC;IAChB,0GAA0G;IAC1G,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+DAA+D;IAC/D,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACjC;AAED;;;;;;;GAOG;AACH,MAAM,MAAM,+BAA+B,GAAG;IAC5C,iBAAiB,EAAE,CAAC,QAAQ,EAAE,YAAY,EAAE,KAAK,IAAI,CAAC;CACvD,CAAC"}
@@ -0,0 +1,97 @@
1
+ import type { InboxMessage } from './in-app';
2
+ /**
3
+ * Enum representing the type of event triggered by an inbox event callback.
4
+ *
5
+ * Mirrors the native `InboxEventListener` contract on iOS and Android.
6
+ *
7
+ * @public
8
+ */
9
+ export declare enum InboxEventType {
10
+ /** A non-dismiss action (e.g. a button/link) was taken on an inbox message. */
11
+ messageActionTaken = "messageActionTaken",
12
+ /** An inbox message was first shown/rendered in the visible inbox view. */
13
+ messageShown = "messageShown",
14
+ /** An inbox message was marked opened (e.g. when the panel opens). */
15
+ messageOpened = "messageOpened",
16
+ /** An inbox message was dismissed/removed from the inbox. */
17
+ messageDismissed = "messageDismissed"
18
+ }
19
+ /**
20
+ * Event delivered to a registered inbox event listener.
21
+ *
22
+ * `messageActionTaken` carries `actionName`/`actionValue`; the observational
23
+ * events (`messageShown`, `messageOpened`, `messageDismissed`) carry only the
24
+ * message.
25
+ *
26
+ * @public
27
+ */
28
+ export declare class InboxMessageEvent {
29
+ /** The type of inbox event. */
30
+ eventType: InboxEventType;
31
+ /** The inbox message the event relates to. */
32
+ message: InboxMessage;
33
+ /** The Jist action name (only present for `messageActionTaken`). */
34
+ actionName?: string;
35
+ /** The resolved action value, typically a url (only present for `messageActionTaken`). */
36
+ actionValue?: string;
37
+ constructor(eventType: InboxEventType, message: InboxMessage, actionName?: string, actionValue?: string);
38
+ }
39
+ /**
40
+ * Host-provided accessibility labels for the Visual Notification Inbox UI.
41
+ *
42
+ * The SDK ships no text of its own in the visual inbox — the empty state is an icon and the
43
+ * loading state is a spinner — so accessibility labels are the one place a string is still
44
+ * needed. Because the SDK cannot know your app's language, every label is optional and unset by
45
+ * default, and an omitted label leaves that element unlabeled rather than falling back to
46
+ * English. Pass strings already localized for the user's language.
47
+ *
48
+ * @example
49
+ * ```ts
50
+ * Zixflow.initialize({
51
+ * apiKey: '...',
52
+ * inApp: {
53
+ * siteId: '...',
54
+ * notificationInboxAccessibilityLabels: {
55
+ * bell: t('inbox.bell'),
56
+ * bellWithUnreadCount: t('inbox.unread'), // e.g. "{count} unread notifications"
57
+ * loadingIndicator: t('inbox.loading'),
58
+ * emptyState: t('inbox.empty'),
59
+ * },
60
+ * },
61
+ * });
62
+ * ```
63
+ *
64
+ * @public
65
+ */
66
+ export type NotificationInboxAccessibilityLabels = {
67
+ /**
68
+ * Label for the inbox bell button. Also used when the bell shows an unread badge but
69
+ * `bellWithUnreadCount` is not provided. Unset → the bell is announced as an unnamed button
70
+ * (it stays focusable and tappable; hiding it would leave screen reader users no way in).
71
+ */
72
+ bell?: string;
73
+ /**
74
+ * Label for the bell while it shows an unread badge. Include `{count}` where the number of
75
+ * unread messages should appear; it is substituted at render time. Unset → falls back to `bell`.
76
+ *
77
+ * The badge itself is always hidden from assistive technologies, so the count is announced
78
+ * only through this label, never as bare digits appended to the button.
79
+ *
80
+ * This is a template rather than a function because configuration crosses the native bridge,
81
+ * which carries data but not callbacks. One template cannot express languages whose plural
82
+ * rules need a distinct form per count.
83
+ */
84
+ bellWithUnreadCount?: string;
85
+ /**
86
+ * Label announced for the loading spinner.
87
+ *
88
+ * Unset behaves differently per platform: on Android the spinner keeps its indeterminate
89
+ * progress role, which TalkBack describes in the device's own language, while on iOS it is not
90
+ * an accessibility element at all, so VoiceOver skips it rather than focusing an unnamed
91
+ * control. Set a label if you want the loading state announced on both.
92
+ */
93
+ loadingIndicator?: string;
94
+ /** Label announced for the empty-state icon. Unset → the icon is treated as decorative. */
95
+ emptyState?: string;
96
+ };
97
+ //# sourceMappingURL=inbox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inbox.d.ts","sourceRoot":"","sources":["../../../../src/types/inbox.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C;;;;;;GAMG;AACH,oBAAY,cAAc;IACxB,+EAA+E;IAC/E,kBAAkB,uBAAuB;IACzC,2EAA2E;IAC3E,YAAY,iBAAiB;IAC7B,sEAAsE;IACtE,aAAa,kBAAkB;IAC/B,6DAA6D;IAC7D,gBAAgB,qBAAqB;CACtC;AAED;;;;;;;;GAQG;AACH,qBAAa,iBAAiB;IAC5B,+BAA+B;IAC/B,SAAS,EAAE,cAAc,CAAC;IAC1B,8CAA8C;IAC9C,OAAO,EAAE,YAAY,CAAC;IACtB,oEAAoE;IACpE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,0FAA0F;IAC1F,WAAW,CAAC,EAAE,MAAM,CAAC;gBAGnB,SAAS,EAAE,cAAc,EACzB,OAAO,EAAE,YAAY,EACrB,UAAU,CAAC,EAAE,MAAM,EACnB,WAAW,CAAC,EAAE,MAAM;CAOvB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,MAAM,oCAAoC,GAAG;IACjD;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;;;;;;OAUG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;;;;OAOG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,2FAA2F;IAC3F,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"}
@@ -1,4 +1,6 @@
1
1
  export * from './data-pipelines';
2
2
  export * from './in-app';
3
+ export * from './inbox';
4
+ export * from './live-activities';
3
5
  export * from './push';
4
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,161 @@
1
+ /**
2
+ * Public types for the Live Activities module.
3
+ *
4
+ * Live Activities (iOS) / Live Notifications (Android) render live, updating
5
+ * notifications from built-in templates. Two templates ship today: Segments and
6
+ * Countdown Timer. Field names and identifiers are identical across platforms.
7
+ */
8
+ /**
9
+ * Built-in activity type identifiers usable from the wrapper.
10
+ *
11
+ * The values are the reverse-DNS identifiers Zixflow uses everywhere — the
12
+ * `notificationType` on the wire, Android's `LiveNotificationType`, and iOS's
13
+ * `CIOSegmentsAttributes.identifier` — so JS, both native SDKs, and the backend
14
+ * share one vocabulary.
15
+ *
16
+ * Use these enum members (not raw strings) for `LiveActivitiesConfig.types` and a
17
+ * payload's `type` to avoid typos.
18
+ *
19
+ * @public
20
+ */
21
+ export declare enum LiveActivityTemplate {
22
+ Segments = "com.zixflow.livenotifications.segments",
23
+ CountdownTimer = "com.zixflow.livenotifications.countdowntimer",
24
+ /**
25
+ * Your own activity type, rendered by SwiftUI you write.
26
+ *
27
+ * Unlike the members above, this value is a marker rather than an identifier — your activity is
28
+ * named by {@link LiveActivitiesConfig.customType}, and the SDK reports it under that name. It
29
+ * belongs in a payload's `type`, never in {@link LiveActivitiesConfig.types}.
30
+ */
31
+ Custom = "custom"
32
+ }
33
+ /**
34
+ * Segments template — a progress activity split into N segments.
35
+ * `header` is a static attribute (fixed at start); the rest are content-state.
36
+ *
37
+ * @public
38
+ */
39
+ export interface LiveActivitySegmentsPayload {
40
+ type: LiveActivityTemplate.Segments;
41
+ /** Static header line (set at start, never changes). */
42
+ header: string;
43
+ /** Primary status line. */
44
+ status: string;
45
+ /** Optional secondary status line. */
46
+ substatus?: string;
47
+ /** Total number of segments. */
48
+ segmentsTotal: number;
49
+ /** Number of completed segments (clamped to 0..segmentsTotal). */
50
+ segmentsComplete: number;
51
+ /** Optional trailing text (e.g. an ETA). */
52
+ trailingText?: string;
53
+ }
54
+ /**
55
+ * Custom template — your own activity type, rendered by SwiftUI you write.
56
+ *
57
+ * Unlike the built-in templates there is no schema: `data` is an untyped map, because a bridge
58
+ * payload carries nothing for the SDK to validate against. Every value is a string, so your widget
59
+ * parses whichever ones it needs.
60
+ *
61
+ * Requires {@link LiveActivitiesConfig.customType} to be set. On iOS you must also render
62
+ * `CIOCustomAttributes` in your Widget Extension; on Android your `createLiveNotification`
63
+ * callback receives the same map.
64
+ *
65
+ * @public
66
+ */
67
+ export interface LiveActivityCustomPayload {
68
+ type: LiveActivityTemplate.Custom;
69
+ /**
70
+ * The full content-state, re-sent in its entirety on every update. Neither platform keeps a
71
+ * static/dynamic split for custom types, so include anything your widget needs each time.
72
+ *
73
+ * Values must be strings. Numbers and booleans are coerced, but nested objects and arrays are
74
+ * not supported and the platforms disagree on them — iOS drops them, Android stringifies them —
75
+ * so flatten anything structured before sending it.
76
+ */
77
+ data: Record<string, string>;
78
+ }
79
+ /**
80
+ * Countdown Timer template — a live countdown to a target time.
81
+ * `header` is a static attribute (fixed at start); the rest are content-state.
82
+ *
83
+ * @public
84
+ */
85
+ export interface LiveActivityCountdownTimerPayload {
86
+ type: LiveActivityTemplate.CountdownTimer;
87
+ /** Static header line (set at start, never changes). */
88
+ header: string;
89
+ /** Primary title line. */
90
+ title: string;
91
+ /** Optional status message. */
92
+ statusMessage?: string;
93
+ /** Target time as epoch **seconds**. Omit to render the finished state. */
94
+ endTime?: number;
95
+ }
96
+ /**
97
+ * Payload for {@link ZixflowLiveActivities.start} and
98
+ * {@link ZixflowLiveActivities.update}.
99
+ *
100
+ * Because ActivityKit replaces content-state wholesale on update, `update` takes the
101
+ * same full payload as `start` — pass the complete desired state each time.
102
+ *
103
+ * @public
104
+ */
105
+ export type LiveActivityPayload = LiveActivitySegmentsPayload | LiveActivityCountdownTimerPayload | LiveActivityCustomPayload;
106
+ /**
107
+ * Live Activities branding (Android only). On iOS, branding is compiled into the
108
+ * widget extension's SwiftUI, so these values are ignored there.
109
+ *
110
+ * @public
111
+ */
112
+ export interface LiveActivitiesBranding {
113
+ /** Reserved for future use. */
114
+ companyName?: string;
115
+ /** Accent color as "#RRGGBB". */
116
+ accentColorHex?: string;
117
+ /**
118
+ * Bundled Android drawable resource name for the logo, resolved natively.
119
+ * Preferred over {@link LiveActivitiesBranding.logoUrl} when both are set — it
120
+ * needs no network.
121
+ */
122
+ logoResource?: string;
123
+ /** Remote logo URL (downloaded and cached natively). */
124
+ logoUrl?: string;
125
+ /** Android drawable resource name, resolved natively. */
126
+ smallIconResource?: string;
127
+ }
128
+ /**
129
+ * Live Activities configuration, passed under the `liveNotifications` key of the SDK config.
130
+ *
131
+ * @public
132
+ */
133
+ export interface LiveActivitiesConfig {
134
+ /**
135
+ * Built-in activity types to enable. Enables the matching native type on each
136
+ * platform and registers push-to-start for it. Unrecognized identifiers are
137
+ * ignored, so a newer native template can't break an older wrapper build.
138
+ *
139
+ * `Custom` is excluded on purpose — it is enabled by {@link LiveActivitiesConfig.customType},
140
+ * and both platforms would silently drop it from this list.
141
+ */
142
+ types?: Exclude<LiveActivityTemplate, LiveActivityTemplate.Custom>[];
143
+ /**
144
+ * Your own reverse-DNS identifier for the custom activity type, e.g.
145
+ * `'com.myapp.rideshare'`. Setting it enables the custom template on both platforms.
146
+ *
147
+ * Start one with `{ type: LiveActivityTemplate.Custom, data: { … } }`; the SDK reports it
148
+ * under this identifier, and your campaigns target it by the same name.
149
+ *
150
+ * Singular by design: iOS resolves an activity's type from its Swift attributes type, and
151
+ * every custom activity shares one. A second identifier could not be told apart, so one
152
+ * identifier is the limit rather than a silent mis-attribution.
153
+ *
154
+ * You must also render it yourself — `CIOCustomAttributes` in an iOS Widget Extension, and
155
+ * the `createLiveNotification` callback on Android.
156
+ */
157
+ customType?: string;
158
+ /** Android Live Notification branding (ignored on iOS). */
159
+ branding?: LiveActivitiesBranding;
160
+ }
161
+ //# sourceMappingURL=live-activities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"live-activities.d.ts","sourceRoot":"","sources":["../../../../src/types/live-activities.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;;;;;;;GAYG;AACH,oBAAY,oBAAoB;IAC9B,QAAQ,2CAA2C;IACnD,cAAc,iDAAiD;IAC/D;;;;;;OAMG;IACH,MAAM,WAAW;CAClB;AAED;;;;;GAKG;AACH,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,oBAAoB,CAAC,QAAQ,CAAC;IACpC,wDAAwD;IACxD,MAAM,EAAE,MAAM,CAAC;IACf,2BAA2B;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,sCAAsC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gCAAgC;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,kEAAkE;IAClE,gBAAgB,EAAE,MAAM,CAAC;IACzB,4CAA4C;IAC5C,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,oBAAoB,CAAC,MAAM,CAAC;IAClC;;;;;;;OAOG;IACH,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC9B;AAED;;;;;GAKG;AACH,MAAM,WAAW,iCAAiC;IAChD,IAAI,EAAE,oBAAoB,CAAC,cAAc,CAAC;IAC1C,wDAAwD;IACxD,MAAM,EAAE,MAAM,CAAC;IACf,0BAA0B;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,+BAA+B;IAC/B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2EAA2E;IAC3E,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,mBAAmB,GAC3B,2BAA2B,GAC3B,iCAAiC,GACjC,yBAAyB,CAAC;AAE9B;;;;;GAKG;AACH,MAAM,WAAW,sBAAsB;IACrC,+BAA+B;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iCAAiC;IACjC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wDAAwD;IACxD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,yDAAyD;IACzD,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC,oBAAoB,EAAE,oBAAoB,CAAC,MAAM,CAAC,EAAE,CAAC;IACrE;;;;;;;;;;;;;OAaG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,sBAAsB,CAAC;CACnC"}
@@ -30,12 +30,19 @@ declare function validateAttributes(value: unknown, fieldName: string, options?:
30
30
  expectedType?: string;
31
31
  optional?: boolean;
32
32
  }): CustomAttributes | undefined;
33
+ /**
34
+ * Validates the argument to `setColorScheme`. Unlike the config field, an absent value is
35
+ * itself the mistake: the caller asked for a scheme change and named none, and there is no
36
+ * default to fall back to, so null and undefined are reported rather than skipped.
37
+ */
38
+ declare function validateColorSchemeArgument(value: unknown): void;
33
39
  type ConfigValidator = (value: unknown) => asserts value is ZixflowConfig;
34
40
  export declare const assert: {
35
41
  string: typeof validateString;
36
42
  record: typeof validateRecord;
37
43
  attributes: typeof validateAttributes;
38
44
  config: ConfigValidator;
45
+ colorScheme: typeof validateColorSchemeArgument;
39
46
  };
40
47
  export declare const validate: {
41
48
  isUndefined: typeof isUndefined;
@@ -1 +1 @@
1
- {"version":3,"file":"param-validation.d.ts","sourceRoot":"","sources":["../../../../src/utils/param-validation.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAchE;;GAEG;AACH,iBAAS,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAE5C;AA0BD;;;GAGG;AACH,iBAAS,cAAc,CACrB,KAAK,EAAE,OAAO,EACd,SAAS,EAAE,MAAM,EACjB,OAAO,GAAE;IACP,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;CACG,QAqBzB;AAED;;GAEG;AACH,iBAAS,cAAc,CACrB,KAAK,EAAE,OAAO,EACd,SAAS,EAAE,MAAM,EACjB,OAAO,GAAE;IACP,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACf,QAeP;AAED;;;;GAIG;AACH,iBAAS,kBAAkB,CACzB,KAAK,EAAE,OAAO,EACd,SAAS,EAAE,MAAM,EACjB,OAAO,GAAE;IACP,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACf,GACL,gBAAgB,GAAG,SAAS,CAe9B;AAwBD,KAAK,eAAe,GAAG,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC,KAAK,IAAI,aAAa,CAAC;AAE1E,eAAO,MAAM,MAAM,EAAE;IACnB,MAAM,EAAE,OAAO,cAAc,CAAC;IAC9B,MAAM,EAAE,OAAO,cAAc,CAAC;IAC9B,UAAU,EAAE,OAAO,kBAAkB,CAAC;IACtC,MAAM,EAAE,eAAe,CAAC;CAMzB,CAAC;AAEF,eAAO,MAAM,QAAQ;;CAEpB,CAAC"}
1
+ {"version":3,"file":"param-validation.d.ts","sourceRoot":"","sources":["../../../../src/utils/param-validation.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAchE;;GAEG;AACH,iBAAS,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAE5C;AAoCD;;;GAGG;AACH,iBAAS,cAAc,CACrB,KAAK,EAAE,OAAO,EACd,SAAS,EAAE,MAAM,EACjB,OAAO,GAAE;IACP,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;CACG,QAqBzB;AAED;;GAEG;AACH,iBAAS,cAAc,CACrB,KAAK,EAAE,OAAO,EACd,SAAS,EAAE,MAAM,EACjB,OAAO,GAAE;IACP,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACf,QAeP;AAED;;;;GAIG;AACH,iBAAS,kBAAkB,CACzB,KAAK,EAAE,OAAO,EACd,SAAS,EAAE,MAAM,EACjB,OAAO,GAAE;IACP,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACf,GACL,gBAAgB,GAAG,SAAS,CAe9B;AA2ED;;;;GAIG;AACH,iBAAS,2BAA2B,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAMzD;AA4BD,KAAK,eAAe,GAAG,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC,KAAK,IAAI,aAAa,CAAC;AAE1E,eAAO,MAAM,MAAM,EAAE;IACnB,MAAM,EAAE,OAAO,cAAc,CAAC;IAC9B,MAAM,EAAE,OAAO,cAAc,CAAC;IAC9B,UAAU,EAAE,OAAO,kBAAkB,CAAC;IACtC,MAAM,EAAE,eAAe,CAAC;IACxB,WAAW,EAAE,OAAO,2BAA2B,CAAC;CAOjD,CAAC;AAEF,eAAO,MAAM,QAAQ;;CAEpB,CAAC"}
@@ -1,11 +1,47 @@
1
+ import { ZixflowGeofence } from './zixflow-geofence';
1
2
  import { ZixflowInAppMessaging } from './zixflow-inapp';
3
+ import { ZixflowLiveActivities } from './zixflow-liveactivities';
2
4
  import { ZixflowLocation } from './zixflow-location';
3
5
  import { ZixflowPushMessaging } from './zixflow-push';
4
6
  import { MetricEvent, type ZixflowConfig, type IdentifyParams } from './types';
7
+ /**
8
+ * Handles a Zixflow deep-link destination delivered from iOS.
9
+ * @public
10
+ */
11
+ export type DeepLinkHandler = (url: string) => boolean | Promise<boolean>;
12
+ /**
13
+ * Removes a Zixflow deep-link handler.
14
+ * @public
15
+ */
16
+ export interface DeepLinkHandlerSubscription {
17
+ /** Stop routing Zixflow deep links through this handler. */
18
+ remove(): void;
19
+ }
5
20
  /** @public */
6
21
  export declare class Zixflow {
7
22
  /** Initialize the Zixflow SDK with given configuration. */
8
23
  static readonly initialize: (config: ZixflowConfig) => Promise<void>;
24
+ /**
25
+ * Signal that the app's React Native Linking listener is ready to receive Zixflow URLs.
26
+ *
27
+ * This is only needed by UIScene hosts that initialize Zixflow natively, such as Expo
28
+ * config-plugin auto-initialization. Call it after registering the Linking listener.
29
+ */
30
+ static readonly setDeepLinkRoutingReady: () => void;
31
+ /**
32
+ * Register an acknowledged deep-link handler for an iOS UIScene host.
33
+ *
34
+ * This API only handles Zixflow destinations delivered through an iOS UIScene lifecycle.
35
+ * In a native React Native scene host, pair this with
36
+ * `NativeZixflow.configureAcknowledgedSceneDeepLinkRouting()` in the SceneDelegate. Register
37
+ * this before `initialize` when possible. Return `true` after routing a URL. Returning `false`,
38
+ * throwing, or rejecting lets the native SDK try the host AppDelegate, then React Native Linking
39
+ * for a host-owned custom scheme or the system for other URLs. Cold URLs are buffered until this
40
+ * handler is registered, subject to the native timeout. After delivery, the handler has ten
41
+ * seconds to settle. Once that timeout runs the native fallback, a late handler cannot cancel it
42
+ * and may cause a second navigation if it also routes the URL.
43
+ */
44
+ static readonly setDeepLinkHandler: (handler: DeepLinkHandler) => DeepLinkHandlerSubscription;
9
45
  /** Identify a user to start tracking their activity. Requires userId, traits, or both. */
10
46
  static readonly identify: ({ userId, traits, }?: IdentifyParams) => Promise<any>;
11
47
  /** Clear current user identification and stop tracking. */
@@ -33,7 +69,9 @@ export declare class Zixflow {
33
69
  * @deprecated This method will be removed in a future version. If you need this functionality, please contact us.
34
70
  */
35
71
  static readonly isInitialized: () => boolean;
72
+ static readonly geofence: ZixflowGeofence;
36
73
  static readonly inAppMessaging: ZixflowInAppMessaging;
74
+ static readonly liveActivities: ZixflowLiveActivities;
37
75
  static readonly location: ZixflowLocation;
38
76
  static readonly pushMessaging: ZixflowPushMessaging;
39
77
  }
@@ -1 +1 @@
1
- {"version":3,"file":"zixflow-cdp.d.ts","sourceRoot":"","sources":["../../../src/zixflow-cdp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAMtD,OAAO,EAEL,WAAW,EACX,KAAK,aAAa,EAElB,KAAK,cAAc,EACpB,MAAM,SA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