zixflow-reactnative 1.1.2 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2224 -322
- package/android/build.gradle +18 -1
- package/android/consumer-rules.pro +3 -2
- package/android/gradle.properties +1 -1
- package/android/src/main/java/com/zixflow/reactnative/sdk/NativeZixflowModule.kt +69 -24
- package/android/src/main/java/com/zixflow/reactnative/sdk/ZixflowReactNativePackage.kt +25 -1
- package/android/src/main/java/com/zixflow/reactnative/sdk/constant/Keys.kt +19 -3
- package/android/src/main/java/com/zixflow/reactnative/sdk/geofence/NativeGeofenceModule.kt +65 -0
- package/android/src/main/java/com/zixflow/reactnative/sdk/liveactivities/NativeLiveActivitiesModule.kt +310 -0
- package/android/src/main/java/com/zixflow/reactnative/sdk/logging/NativeZixflowLoggingModule.kt +2 -2
- package/android/src/main/java/com/zixflow/reactnative/sdk/messaginginapp/NativeMessagingInAppModule.kt +149 -10
- package/android/src/main/java/com/zixflow/reactnative/sdk/messaginginapp/ReactInboxEventListener.kt +99 -0
- package/android/src/main/java/com/zixflow/reactnative/sdk/messaginginbox/NotificationInboxBellViewManager.kt +38 -0
- package/android/src/main/java/com/zixflow/reactnative/sdk/messaginginbox/NotificationInboxViewManager.kt +30 -0
- package/android/src/main/java/com/zixflow/reactnative/sdk/messaginginbox/ReactComposeHostView.kt +96 -0
- package/android/src/main/java/com/zixflow/reactnative/sdk/messaginginbox/ReactNotificationInboxBellView.kt +48 -0
- package/android/src/main/java/com/zixflow/reactnative/sdk/messaginginbox/ReactNotificationInboxView.kt +17 -0
- package/android/src/main/java/com/zixflow/reactnative/sdk/messagingpush/NativeMessagingPushModule.kt +11 -1
- package/android/src/main/res/values/zixflow_config.xml +1 -1
- package/android/zixflow-core.gradle +17 -7
- package/docs/cocoapods-deployment-target-normalization.md +139 -0
- package/ios/cocoapods_deployment_target.rb +432 -0
- package/ios/wrappers/NativeZixflow.mm +37 -0
- package/ios/wrappers/NativeZixflow.swift +135 -1
- package/ios/wrappers/ZixflowReactNativeDeepLinkRequestStore.swift +123 -0
- package/ios/wrappers/ZixflowReactNativeDeepLinkRouter.swift +312 -0
- package/ios/wrappers/geofence/NativeGeofence.mm +46 -0
- package/ios/wrappers/geofence/NativeGeofence.swift +27 -0
- package/ios/wrappers/inapp/NativeMessagingInApp.mm +22 -0
- package/ios/wrappers/inapp/NativeMessagingInApp.swift +90 -0
- package/ios/wrappers/inbox/InboxHostContainment.swift +40 -0
- package/ios/wrappers/inbox/RCTNotificationInboxBellNative.h +12 -0
- package/ios/wrappers/inbox/RCTNotificationInboxBellNative.mm +98 -0
- package/ios/wrappers/inbox/RCTNotificationInboxViewNative.h +12 -0
- package/ios/wrappers/inbox/RCTNotificationInboxViewNative.mm +78 -0
- package/ios/wrappers/inbox/ReactInboxEventListener.swift +76 -0
- package/ios/wrappers/inbox/ReactNotificationInboxBellView.h +22 -0
- package/ios/wrappers/inbox/ReactNotificationInboxBellView.swift +109 -0
- package/ios/wrappers/inbox/ReactNotificationInboxView.h +22 -0
- package/ios/wrappers/inbox/ReactNotificationInboxView.swift +69 -0
- package/ios/wrappers/liveactivities/NativeLiveActivities.mm +83 -0
- package/ios/wrappers/liveactivities/NativeLiveActivities.swift +390 -0
- package/ios/wrappers/location/NativeLocation.swift +7 -5
- package/ios/wrappers/utils/ZixflowConfigUtils.swift +5 -9
- package/ios/wrappers/utils/ZixflowConstants.swift +4 -0
- package/ios/wrappers/zixflow_reactnative.h +6 -0
- package/lib/commonjs/components/NotificationInboxBellView.js +49 -0
- package/lib/commonjs/components/NotificationInboxBellView.js.map +1 -0
- package/lib/commonjs/components/NotificationInboxView.js +36 -0
- package/lib/commonjs/components/NotificationInboxView.js.map +1 -0
- package/lib/commonjs/components/index.js +14 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/index.js +81 -4
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/notification-inbox.js +1 -0
- package/lib/commonjs/notification-inbox.js.map +1 -1
- package/lib/commonjs/specs/components/NotificationInboxBellNativeComponent.ts +24 -0
- package/lib/commonjs/specs/components/NotificationInboxViewNativeComponent.ts +22 -0
- package/lib/commonjs/specs/modules/NativeZixflow.js.map +1 -1
- package/lib/commonjs/specs/modules/NativeZixflowGeofence.js +15 -0
- package/lib/commonjs/specs/modules/NativeZixflowGeofence.js.map +1 -0
- package/lib/commonjs/specs/modules/NativeZixflowLiveActivities.js +23 -0
- package/lib/commonjs/specs/modules/NativeZixflowLiveActivities.js.map +1 -0
- package/lib/commonjs/specs/modules/NativeZixflowMessagingInApp.js +3 -1
- package/lib/commonjs/specs/modules/NativeZixflowMessagingInApp.js.map +1 -1
- package/lib/commonjs/specs/modules/NativeZixflowMessagingPush.js +3 -1
- package/lib/commonjs/specs/modules/NativeZixflowMessagingPush.js.map +1 -1
- package/lib/commonjs/types/data-pipelines.js +15 -15
- package/lib/commonjs/types/data-pipelines.js.map +1 -1
- package/lib/commonjs/types/in-app.js +24 -1
- package/lib/commonjs/types/in-app.js.map +1 -1
- package/lib/commonjs/types/inbox.js +79 -0
- package/lib/commonjs/types/inbox.js.map +1 -0
- package/lib/commonjs/types/index.js +22 -0
- package/lib/commonjs/types/index.js.map +1 -1
- package/lib/commonjs/types/live-activities.js +85 -0
- package/lib/commonjs/types/live-activities.js.map +1 -0
- package/lib/commonjs/utils/param-validation.js +77 -2
- package/lib/commonjs/utils/param-validation.js.map +1 -1
- package/lib/commonjs/zixflow-cdp.js +101 -11
- package/lib/commonjs/zixflow-cdp.js.map +1 -1
- package/lib/commonjs/zixflow-geofence.js +55 -0
- package/lib/commonjs/zixflow-geofence.js.map +1 -0
- package/lib/commonjs/zixflow-inapp.js +120 -0
- package/lib/commonjs/zixflow-inapp.js.map +1 -1
- package/lib/commonjs/zixflow-liveactivities.js +85 -0
- package/lib/commonjs/zixflow-liveactivities.js.map +1 -0
- package/lib/commonjs/zixflow.js.map +1 -1
- package/lib/module/components/NotificationInboxBellView.js +44 -0
- package/lib/module/components/NotificationInboxBellView.js.map +1 -0
- package/lib/module/components/NotificationInboxView.js +31 -0
- package/lib/module/components/NotificationInboxView.js.map +1 -0
- package/lib/module/components/index.js +5 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/index.js +8 -3
- package/lib/module/index.js.map +1 -1
- package/lib/module/notification-inbox.js +1 -1
- package/lib/module/notification-inbox.js.map +1 -1
- package/lib/module/specs/components/NotificationInboxBellNativeComponent.ts +24 -0
- package/lib/module/specs/components/NotificationInboxViewNativeComponent.ts +22 -0
- package/lib/module/specs/modules/NativeZixflow.js.map +1 -1
- package/lib/module/specs/modules/NativeZixflowGeofence.js +13 -0
- package/lib/module/specs/modules/NativeZixflowGeofence.js.map +1 -0
- package/lib/module/specs/modules/NativeZixflowLiveActivities.js +21 -0
- package/lib/module/specs/modules/NativeZixflowLiveActivities.js.map +1 -0
- package/lib/module/specs/modules/NativeZixflowMessagingInApp.js +3 -1
- package/lib/module/specs/modules/NativeZixflowMessagingInApp.js.map +1 -1
- package/lib/module/specs/modules/NativeZixflowMessagingPush.js +3 -1
- package/lib/module/specs/modules/NativeZixflowMessagingPush.js.map +1 -1
- package/lib/module/types/data-pipelines.js +15 -15
- package/lib/module/types/data-pipelines.js.map +1 -1
- package/lib/module/types/in-app.js +24 -0
- package/lib/module/types/in-app.js.map +1 -1
- package/lib/module/types/inbox.js +75 -0
- package/lib/module/types/inbox.js.map +1 -0
- package/lib/module/types/index.js +2 -0
- package/lib/module/types/index.js.map +1 -1
- package/lib/module/types/live-activities.js +88 -0
- package/lib/module/types/live-activities.js.map +1 -0
- package/lib/module/utils/param-validation.js +77 -2
- package/lib/module/utils/param-validation.js.map +1 -1
- package/lib/module/zixflow-cdp.js +101 -11
- package/lib/module/zixflow-cdp.js.map +1 -1
- package/lib/module/zixflow-geofence.js +50 -0
- package/lib/module/zixflow-geofence.js.map +1 -0
- package/lib/module/zixflow-inapp.js +99 -1
- package/lib/module/zixflow-inapp.js.map +1 -1
- package/lib/module/zixflow-liveactivities.js +80 -0
- package/lib/module/zixflow-liveactivities.js.map +1 -0
- package/lib/module/zixflow.js +0 -6
- package/lib/module/zixflow.js.map +1 -1
- package/lib/typescript/commonjs/components/NotificationInboxBellView.d.ts +39 -0
- package/lib/typescript/commonjs/components/NotificationInboxBellView.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/NotificationInboxView.d.ts +25 -0
- package/lib/typescript/commonjs/components/NotificationInboxView.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/index.d.ts +4 -0
- package/lib/typescript/commonjs/components/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +8 -1
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/notification-inbox.d.ts +5 -0
- package/lib/typescript/commonjs/notification-inbox.d.ts.map +1 -1
- package/lib/typescript/commonjs/specs/components/NotificationInboxBellNativeComponent.d.ts +13 -0
- package/lib/typescript/commonjs/specs/components/NotificationInboxBellNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/specs/components/NotificationInboxViewNativeComponent.d.ts +12 -0
- package/lib/typescript/commonjs/specs/components/NotificationInboxViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/specs/modules/NativeZixflow.d.ts +6 -1
- package/lib/typescript/commonjs/specs/modules/NativeZixflow.d.ts.map +1 -1
- package/lib/typescript/commonjs/specs/modules/NativeZixflowGeofence.d.ts +13 -0
- package/lib/typescript/commonjs/specs/modules/NativeZixflowGeofence.d.ts.map +1 -0
- package/lib/typescript/commonjs/specs/modules/NativeZixflowLiveActivities.d.ts +31 -0
- package/lib/typescript/commonjs/specs/modules/NativeZixflowLiveActivities.d.ts.map +1 -0
- package/lib/typescript/commonjs/specs/modules/NativeZixflowMessagingInApp.d.ts +5 -1
- package/lib/typescript/commonjs/specs/modules/NativeZixflowMessagingInApp.d.ts.map +1 -1
- package/lib/typescript/commonjs/specs/modules/NativeZixflowMessagingPush.d.ts +1 -1
- package/lib/typescript/commonjs/specs/modules/NativeZixflowMessagingPush.d.ts.map +1 -1
- package/lib/typescript/commonjs/types/data-pipelines.d.ts +54 -18
- package/lib/typescript/commonjs/types/data-pipelines.d.ts.map +1 -1
- package/lib/typescript/commonjs/types/in-app.d.ts +22 -0
- package/lib/typescript/commonjs/types/in-app.d.ts.map +1 -1
- package/lib/typescript/commonjs/types/inbox.d.ts +97 -0
- package/lib/typescript/commonjs/types/inbox.d.ts.map +1 -0
- package/lib/typescript/commonjs/types/index.d.ts +2 -0
- package/lib/typescript/commonjs/types/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/types/live-activities.d.ts +161 -0
- package/lib/typescript/commonjs/types/live-activities.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/param-validation.d.ts +7 -0
- package/lib/typescript/commonjs/utils/param-validation.d.ts.map +1 -1
- package/lib/typescript/commonjs/zixflow-cdp.d.ts +38 -0
- package/lib/typescript/commonjs/zixflow-cdp.d.ts.map +1 -1
- package/lib/typescript/commonjs/zixflow-geofence.d.ts +36 -0
- package/lib/typescript/commonjs/zixflow-geofence.d.ts.map +1 -0
- package/lib/typescript/commonjs/zixflow-inapp.d.ts +36 -2
- package/lib/typescript/commonjs/zixflow-inapp.d.ts.map +1 -1
- package/lib/typescript/commonjs/zixflow-liveactivities.d.ts +66 -0
- package/lib/typescript/commonjs/zixflow-liveactivities.d.ts.map +1 -0
- package/lib/typescript/commonjs/zixflow.d.ts +0 -5
- package/lib/typescript/commonjs/zixflow.d.ts.map +1 -1
- package/lib/typescript/module/components/NotificationInboxBellView.d.ts +39 -0
- package/lib/typescript/module/components/NotificationInboxBellView.d.ts.map +1 -0
- package/lib/typescript/module/components/NotificationInboxView.d.ts +25 -0
- package/lib/typescript/module/components/NotificationInboxView.d.ts.map +1 -0
- package/lib/typescript/module/components/index.d.ts +4 -0
- package/lib/typescript/module/components/index.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +8 -1
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/notification-inbox.d.ts +5 -0
- package/lib/typescript/module/notification-inbox.d.ts.map +1 -1
- package/lib/typescript/module/specs/components/NotificationInboxBellNativeComponent.d.ts +13 -0
- package/lib/typescript/module/specs/components/NotificationInboxBellNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/specs/components/NotificationInboxViewNativeComponent.d.ts +12 -0
- package/lib/typescript/module/specs/components/NotificationInboxViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/specs/modules/NativeZixflow.d.ts +6 -1
- package/lib/typescript/module/specs/modules/NativeZixflow.d.ts.map +1 -1
- package/lib/typescript/module/specs/modules/NativeZixflowGeofence.d.ts +13 -0
- package/lib/typescript/module/specs/modules/NativeZixflowGeofence.d.ts.map +1 -0
- package/lib/typescript/module/specs/modules/NativeZixflowLiveActivities.d.ts +31 -0
- package/lib/typescript/module/specs/modules/NativeZixflowLiveActivities.d.ts.map +1 -0
- package/lib/typescript/module/specs/modules/NativeZixflowMessagingInApp.d.ts +5 -1
- package/lib/typescript/module/specs/modules/NativeZixflowMessagingInApp.d.ts.map +1 -1
- package/lib/typescript/module/specs/modules/NativeZixflowMessagingPush.d.ts +1 -1
- package/lib/typescript/module/specs/modules/NativeZixflowMessagingPush.d.ts.map +1 -1
- package/lib/typescript/module/types/data-pipelines.d.ts +54 -18
- package/lib/typescript/module/types/data-pipelines.d.ts.map +1 -1
- package/lib/typescript/module/types/in-app.d.ts +22 -0
- package/lib/typescript/module/types/in-app.d.ts.map +1 -1
- package/lib/typescript/module/types/inbox.d.ts +97 -0
- package/lib/typescript/module/types/inbox.d.ts.map +1 -0
- package/lib/typescript/module/types/index.d.ts +2 -0
- package/lib/typescript/module/types/index.d.ts.map +1 -1
- package/lib/typescript/module/types/live-activities.d.ts +161 -0
- package/lib/typescript/module/types/live-activities.d.ts.map +1 -0
- package/lib/typescript/module/utils/param-validation.d.ts +7 -0
- package/lib/typescript/module/utils/param-validation.d.ts.map +1 -1
- package/lib/typescript/module/zixflow-cdp.d.ts +38 -0
- package/lib/typescript/module/zixflow-cdp.d.ts.map +1 -1
- package/lib/typescript/module/zixflow-geofence.d.ts +36 -0
- package/lib/typescript/module/zixflow-geofence.d.ts.map +1 -0
- package/lib/typescript/module/zixflow-inapp.d.ts +36 -2
- package/lib/typescript/module/zixflow-inapp.d.ts.map +1 -1
- package/lib/typescript/module/zixflow-liveactivities.d.ts +66 -0
- package/lib/typescript/module/zixflow-liveactivities.d.ts.map +1 -0
- package/lib/typescript/module/zixflow.d.ts +0 -5
- package/lib/typescript/module/zixflow.d.ts.map +1 -1
- package/package.json +14 -5
- package/src/components/NotificationInboxBellView.tsx +55 -0
- package/src/components/NotificationInboxView.tsx +30 -0
- package/src/components/index.ts +6 -0
- package/src/index.ts +8 -3
- package/src/notification-inbox.ts +1 -1
- package/src/specs/components/NotificationInboxBellNativeComponent.ts +24 -0
- package/src/specs/components/NotificationInboxViewNativeComponent.ts +22 -0
- package/src/specs/modules/NativeZixflow.ts +9 -1
- package/src/specs/modules/NativeZixflowGeofence.ts +14 -0
- package/src/specs/modules/NativeZixflowLiveActivities.ts +39 -0
- package/src/specs/modules/NativeZixflowMessagingInApp.ts +12 -1
- package/src/specs/modules/NativeZixflowMessagingPush.ts +3 -1
- package/src/types/data-pipelines.ts +55 -19
- package/src/types/in-app.ts +23 -0
- package/src/types/inbox.ts +110 -0
- package/src/types/index.ts +2 -0
- package/src/types/live-activities.ts +170 -0
- package/src/utils/param-validation.ts +104 -1
- package/src/zixflow-cdp.ts +119 -13
- package/src/zixflow-geofence.ts +56 -0
- package/src/zixflow-inapp.ts +125 -2
- package/src/zixflow-liveactivities.ts +86 -0
- package/src/zixflow.ts +0 -6
- package/zixflow-reactnative-richpush.podspec +6 -3
- package/zixflow-reactnative.podspec +28 -2
package/lib/commonjs/index.js
CHANGED
|
@@ -3,14 +3,91 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var
|
|
7
|
-
Object.keys(
|
|
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] ===
|
|
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
|
|
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":["
|
|
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":"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","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":"
|
|
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":"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","ignoreList":[]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// React Native docs now recommend Codegen types should be imported from the react-native package
|
|
2
|
+
// But it breaks on Expo and older React Native versions, so we import from react-native/Libraries/Types/CodegenTypes
|
|
3
|
+
// for compatibility with all versions until we can fully migrate to the new import style without breaking older versions
|
|
4
|
+
// https://reactnative.dev/docs/strict-typescript-api#codegen-types-should-now-be-imported-from-the-react-native-package
|
|
5
|
+
|
|
6
|
+
import type { HostComponent, ViewProps } from 'react-native';
|
|
7
|
+
/* eslint-disable @react-native/no-deep-imports */
|
|
8
|
+
import type { DirectEventHandler } from 'react-native/Libraries/Types/CodegenTypes';
|
|
9
|
+
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
10
|
+
|
|
11
|
+
/** Event data for inbox bell taps. Carries no payload; presence indicates a tap. */
|
|
12
|
+
export interface BellTapEvent {}
|
|
13
|
+
|
|
14
|
+
/** Props for the native NotificationInboxBell component. */
|
|
15
|
+
export interface NativeProps extends ViewProps {
|
|
16
|
+
/** Fired when the user taps the bell. Host should present its own inbox UI. */
|
|
17
|
+
onTap?: DirectEventHandler<BellTapEvent>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// React Native Codegen automatically generates the native component bridge based on the NativeProps interface.
|
|
21
|
+
// Public view is NotificationInboxBellView in the components directory.
|
|
22
|
+
export default codegenNativeComponent<NativeProps>(
|
|
23
|
+
'NotificationInboxBellNative'
|
|
24
|
+
) as HostComponent<NativeProps>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// React Native docs now recommend Codegen types should be imported from the react-native package
|
|
2
|
+
// But it breaks on Expo and older React Native versions, so we import from react-native/Libraries/Types/CodegenTypes
|
|
3
|
+
// for compatibility with all versions until we can fully migrate to the new import style without breaking older versions
|
|
4
|
+
// https://reactnative.dev/docs/strict-typescript-api#codegen-types-should-now-be-imported-from-the-react-native-package
|
|
5
|
+
|
|
6
|
+
import type { HostComponent, ViewProps } from 'react-native';
|
|
7
|
+
/* eslint-disable @react-native/no-deep-imports */
|
|
8
|
+
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Props for the native NotificationInboxView component (the Jist-rendered message list).
|
|
12
|
+
* No required props; the host controls sizing via standard ViewProps style.
|
|
13
|
+
* Message actions are handled by the existing global InboxEventListener, so this
|
|
14
|
+
* component needs no per-component action callback.
|
|
15
|
+
*/
|
|
16
|
+
export interface NativeProps extends ViewProps {}
|
|
17
|
+
|
|
18
|
+
// React Native Codegen automatically generates the native component bridge based on the NativeProps interface.
|
|
19
|
+
// Public view is NotificationInboxView in the components directory.
|
|
20
|
+
export default codegenNativeComponent<NativeProps>(
|
|
21
|
+
'NotificationInboxViewNative'
|
|
22
|
+
) as HostComponent<NativeProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../../../src","sources":["specs/modules/NativeZixflow.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;
|
|
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
|
-
|
|
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","
|
|
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
|
-
|
|
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","
|
|
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.
|
|
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
|
*
|
|
@@ -33,11 +33,9 @@ exports.ZixflowRegion = exports.ZixflowLogLevel = exports.ZixflowLocationTrackin
|
|
|
33
33
|
/**
|
|
34
34
|
* Configuration options for initializing the Zixflow SDK.
|
|
35
35
|
*
|
|
36
|
-
* @param
|
|
37
|
-
* @param migrationSiteId - Legacy site ID for migrating from tracking API
|
|
38
|
-
* @param region - Data center region (US or EU)
|
|
36
|
+
* @param apiKey - API key from Zixflow dashboard
|
|
39
37
|
* @param logLevel - SDK logging verbosity level
|
|
40
|
-
* @param apiHost - Override the
|
|
38
|
+
* @param apiHost - Override the API host. Use to route SDK traffic through a first-party proxy.
|
|
41
39
|
* @param cdnHost - Override the CDN host. Use to route SDK traffic through a first-party proxy.
|
|
42
40
|
* @param flushAt - Number of events to batch before sending
|
|
43
41
|
* @param flushInterval - Time interval (seconds) to flush events
|
|
@@ -67,16 +65,6 @@ let ZixflowLogLevel = exports.ZixflowLogLevel = /*#__PURE__*/function (ZixflowLo
|
|
|
67
65
|
ZixflowLogLevel["Debug"] = "debug";
|
|
68
66
|
return ZixflowLogLevel;
|
|
69
67
|
}({});
|
|
70
|
-
/**
|
|
71
|
-
* Data center regions for Zixflow API endpoints.
|
|
72
|
-
*
|
|
73
|
-
* @public
|
|
74
|
-
*/
|
|
75
|
-
let ZixflowRegion = exports.ZixflowRegion = /*#__PURE__*/function (ZixflowRegion) {
|
|
76
|
-
ZixflowRegion["US"] = "US";
|
|
77
|
-
ZixflowRegion["EU"] = "EU";
|
|
78
|
-
return ZixflowRegion;
|
|
79
|
-
}({});
|
|
80
68
|
/**
|
|
81
69
|
* Screen view tracking behavior configuration.
|
|
82
70
|
*
|
|
@@ -106,6 +94,18 @@ let ZixflowLocationTrackingMode = exports.ZixflowLocationTrackingMode = /*#__PUR
|
|
|
106
94
|
ZixflowLocationTrackingMode["OnAppStart"] = "ON_APP_START";
|
|
107
95
|
return ZixflowLocationTrackingMode;
|
|
108
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
|
+
}({});
|
|
109
109
|
/**
|
|
110
110
|
* Enum to specify the type of metric for tracking
|
|
111
111
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ZixflowLogLevel","exports","
|
|
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,
|
|
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":[]}
|