webtonative 1.0.74 → 1.0.75-beta.2
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/.editorconfig +10 -0
- package/.prettierrc.json +7 -0
- package/README.md +31 -2
- package/build/ATTConsent/index.d.ts +17 -0
- package/build/ATTConsent/index.d.ts.map +1 -0
- package/build/ATTConsent/index.js +54 -0
- package/build/ATTConsent/index.js.map +1 -0
- package/build/ATTConsent/types.d.ts +15 -0
- package/build/ATTConsent/types.d.ts.map +1 -0
- package/build/ATTConsent/types.js +3 -0
- package/build/ATTConsent/types.js.map +1 -0
- package/build/AdMob/index.d.ts +31 -0
- package/build/AdMob/index.d.ts.map +1 -0
- package/build/AdMob/index.js +102 -0
- package/build/AdMob/index.js.map +1 -0
- package/build/AdMob/types.d.ts +25 -0
- package/build/AdMob/types.d.ts.map +1 -0
- package/build/AdMob/types.js +4 -0
- package/build/AdMob/types.js.map +1 -0
- package/build/AppReview/index.d.ts +7 -0
- package/build/AppReview/index.d.ts.map +1 -0
- package/build/AppReview/index.js +22 -0
- package/build/AppReview/index.js.map +1 -0
- package/build/AppReview/types.d.ts +8 -0
- package/build/AppReview/types.d.ts.map +1 -0
- package/build/AppReview/types.js +4 -0
- package/build/AppReview/types.js.map +1 -0
- package/build/AppsFlyer/index.d.ts +15 -0
- package/build/AppsFlyer/index.d.ts.map +1 -0
- package/build/AppsFlyer/index.js +43 -0
- package/build/AppsFlyer/index.js.map +1 -0
- package/build/AppsFlyer/types.d.ts +10 -0
- package/build/AppsFlyer/types.d.ts.map +1 -0
- package/build/AppsFlyer/types.js +3 -0
- package/build/AppsFlyer/types.js.map +1 -0
- package/build/BackgroundLocation/index.d.ts +12 -0
- package/build/BackgroundLocation/index.d.ts.map +1 -0
- package/build/BackgroundLocation/index.js +65 -0
- package/build/BackgroundLocation/index.js.map +1 -0
- package/build/BackgroundLocation/types.d.ts +32 -0
- package/build/BackgroundLocation/types.d.ts.map +1 -0
- package/build/BackgroundLocation/types.js +3 -0
- package/build/BackgroundLocation/types.js.map +1 -0
- package/build/Beacon/index.d.ts +7 -0
- package/build/Beacon/index.d.ts.map +1 -0
- package/build/Beacon/index.js +30 -0
- package/build/Beacon/index.js.map +1 -0
- package/build/Beacon/types.d.ts +19 -0
- package/build/Beacon/types.d.ts.map +1 -0
- package/build/Beacon/types.js +3 -0
- package/build/Beacon/types.js.map +1 -0
- package/build/Biometric/index.d.ts +27 -0
- package/build/Biometric/index.d.ts.map +1 -0
- package/build/Biometric/index.js +125 -0
- package/build/Biometric/index.js.map +1 -0
- package/build/Biometric/types.d.ts +24 -0
- package/build/Biometric/types.d.ts.map +1 -0
- package/build/Biometric/types.js +3 -0
- package/build/Biometric/types.js.map +1 -0
- package/build/Bluetooth/index.d.ts +17 -0
- package/build/Bluetooth/index.d.ts.map +1 -0
- package/build/Bluetooth/index.js +67 -0
- package/build/Bluetooth/index.js.map +1 -0
- package/build/Bluetooth/types.d.ts +34 -0
- package/build/Bluetooth/types.d.ts.map +1 -0
- package/build/Bluetooth/types.js +3 -0
- package/build/Bluetooth/types.js.map +1 -0
- package/build/BottomNavigation/index.d.ts +11 -0
- package/build/BottomNavigation/index.d.ts.map +1 -0
- package/build/BottomNavigation/index.js +41 -0
- package/build/BottomNavigation/index.js.map +1 -0
- package/build/BottomNavigation/types.d.ts +9 -0
- package/build/BottomNavigation/types.d.ts.map +1 -0
- package/build/BottomNavigation/types.js +3 -0
- package/build/BottomNavigation/types.js.map +1 -0
- package/build/Clipboard/index.d.ts +12 -0
- package/build/Clipboard/index.d.ts.map +1 -0
- package/build/Clipboard/index.js +45 -0
- package/build/Clipboard/index.js.map +1 -0
- package/build/Clipboard/types.d.ts +20 -0
- package/build/Clipboard/types.d.ts.map +1 -0
- package/build/Clipboard/types.js +4 -0
- package/build/Clipboard/types.js.map +1 -0
- package/build/Facebook/events.d.ts +13 -0
- package/build/Facebook/events.d.ts.map +1 -0
- package/build/Facebook/events.js +44 -0
- package/build/Facebook/events.js.map +1 -0
- package/build/Facebook/index.d.ts +3 -0
- package/build/Facebook/index.d.ts.map +1 -0
- package/build/Facebook/index.js +29 -0
- package/build/Facebook/index.js.map +1 -0
- package/build/Facebook/types.d.ts +22 -0
- package/build/Facebook/types.d.ts.map +1 -0
- package/build/Facebook/types.js +3 -0
- package/build/Facebook/types.js.map +1 -0
- package/build/Firebase/Analytics/index.d.ts +32 -0
- package/build/Firebase/Analytics/index.d.ts.map +1 -0
- package/build/Firebase/Analytics/index.js +110 -0
- package/build/Firebase/Analytics/index.js.map +1 -0
- package/build/Firebase/Messaging/index.d.ts +17 -0
- package/build/Firebase/Messaging/index.d.ts.map +1 -0
- package/build/Firebase/Messaging/index.js +64 -0
- package/build/Firebase/Messaging/index.js.map +1 -0
- package/build/Firebase/index.d.ts +4 -0
- package/build/Firebase/index.d.ts.map +1 -0
- package/build/Firebase/index.js +31 -0
- package/build/Firebase/index.js.map +1 -0
- package/build/Firebase/types.d.ts +58 -0
- package/build/Firebase/types.d.ts.map +1 -0
- package/build/Firebase/types.js +4 -0
- package/build/Firebase/types.js.map +1 -0
- package/build/FirebaseAnalytics/index.d.ts +3 -0
- package/build/FirebaseAnalytics/index.d.ts.map +1 -0
- package/build/FirebaseAnalytics/index.js +29 -0
- package/build/FirebaseAnalytics/index.js.map +1 -0
- package/build/Haptics/index.d.ts +7 -0
- package/build/Haptics/index.d.ts.map +1 -0
- package/build/Haptics/index.js +21 -0
- package/build/Haptics/index.js.map +1 -0
- package/build/Haptics/types.d.ts +8 -0
- package/build/Haptics/types.d.ts.map +1 -0
- package/build/Haptics/types.js +3 -0
- package/build/Haptics/types.js.map +1 -0
- package/build/InAppPurchase/index.d.ts +23 -0
- package/build/InAppPurchase/index.d.ts.map +1 -0
- package/build/InAppPurchase/index.js +81 -0
- package/build/InAppPurchase/index.js.map +1 -0
- package/build/InAppPurchase/types.d.ts +30 -0
- package/build/InAppPurchase/types.d.ts.map +1 -0
- package/build/InAppPurchase/types.js +3 -0
- package/build/InAppPurchase/types.js.map +1 -0
- package/build/InAppUpdate/index.d.ts +12 -0
- package/build/InAppUpdate/index.d.ts.map +1 -0
- package/build/InAppUpdate/index.js +39 -0
- package/build/InAppUpdate/index.js.map +1 -0
- package/build/InAppUpdate/types.d.ts +15 -0
- package/build/InAppUpdate/types.d.ts.map +1 -0
- package/build/InAppUpdate/types.js +3 -0
- package/build/InAppUpdate/types.js.map +1 -0
- package/build/MediaPlayer/index.d.ts +17 -0
- package/build/MediaPlayer/index.d.ts.map +1 -0
- package/build/MediaPlayer/index.js +56 -0
- package/build/MediaPlayer/index.js.map +1 -0
- package/build/MediaPlayer/types.d.ts +14 -0
- package/build/MediaPlayer/types.d.ts.map +1 -0
- package/build/MediaPlayer/types.js +3 -0
- package/build/MediaPlayer/types.js.map +1 -0
- package/build/NativeContacts/index.d.ts +12 -0
- package/build/NativeContacts/index.d.ts.map +1 -0
- package/build/NativeContacts/index.js +51 -0
- package/build/NativeContacts/index.js.map +1 -0
- package/build/NativeContacts/types.d.ts +14 -0
- package/build/NativeContacts/types.d.ts.map +1 -0
- package/build/NativeContacts/types.js +3 -0
- package/build/NativeContacts/types.js.map +1 -0
- package/build/Notification/index.d.ts +11 -0
- package/build/Notification/index.d.ts.map +1 -0
- package/build/Notification/index.js +42 -0
- package/build/Notification/index.js.map +1 -0
- package/build/Notification/types.d.ts +14 -0
- package/build/Notification/types.d.ts.map +1 -0
- package/build/Notification/types.js +3 -0
- package/build/Notification/types.js.map +1 -0
- package/build/OneSignal/index.d.ts +4 -0
- package/build/OneSignal/index.d.ts.map +1 -0
- package/build/OneSignal/index.js +59 -0
- package/build/OneSignal/index.js.map +1 -0
- package/build/OneSignal/types.d.ts +11 -0
- package/build/OneSignal/types.d.ts.map +1 -0
- package/build/OneSignal/types.js +4 -0
- package/build/OneSignal/types.js.map +1 -0
- package/build/Printing/index.d.ts +7 -0
- package/build/Printing/index.d.ts.map +1 -0
- package/build/Printing/index.js +20 -0
- package/build/Printing/index.js.map +1 -0
- package/build/Printing/types.d.ts +9 -0
- package/build/Printing/types.d.ts.map +1 -0
- package/build/Printing/types.js +3 -0
- package/build/Printing/types.js.map +1 -0
- package/build/README.md +33 -0
- package/build/Screen/index.d.ts +9 -0
- package/build/Screen/index.d.ts.map +1 -0
- package/build/Screen/index.js +35 -0
- package/build/Screen/index.js.map +1 -0
- package/build/Screen/types.d.ts +6 -0
- package/build/Screen/types.d.ts.map +1 -0
- package/build/Screen/types.js +4 -0
- package/build/Screen/types.js.map +1 -0
- package/build/Siri/index.d.ts +7 -0
- package/build/Siri/index.d.ts.map +1 -0
- package/build/Siri/index.js +26 -0
- package/build/Siri/index.js.map +1 -0
- package/build/Siri/types.d.ts +14 -0
- package/build/Siri/types.d.ts.map +1 -0
- package/build/Siri/types.js +3 -0
- package/build/Siri/types.js.map +1 -0
- package/build/SocialLogin/apple.d.ts +12 -0
- package/build/SocialLogin/apple.d.ts.map +1 -0
- package/build/SocialLogin/apple.js +32 -0
- package/build/SocialLogin/apple.js.map +1 -0
- package/build/SocialLogin/facebook.d.ts +22 -0
- package/build/SocialLogin/facebook.d.ts.map +1 -0
- package/build/SocialLogin/facebook.js +61 -0
- package/build/SocialLogin/facebook.js.map +1 -0
- package/build/SocialLogin/google.d.ts +22 -0
- package/build/SocialLogin/google.d.ts.map +1 -0
- package/build/SocialLogin/google.js +61 -0
- package/build/SocialLogin/google.js.map +1 -0
- package/build/SocialLogin/index.d.ts +17 -0
- package/build/SocialLogin/index.d.ts.map +1 -0
- package/build/SocialLogin/index.js +23 -0
- package/build/SocialLogin/index.js.map +1 -0
- package/build/SocialLogin/types.d.ts +39 -0
- package/build/SocialLogin/types.d.ts.map +1 -0
- package/build/SocialLogin/types.js +3 -0
- package/build/SocialLogin/types.js.map +1 -0
- package/build/Stripe/index.d.ts +3 -0
- package/build/Stripe/index.d.ts.map +1 -0
- package/build/Stripe/index.js +49 -0
- package/build/Stripe/index.js.map +1 -0
- package/build/Stripe/types.d.ts +32 -0
- package/build/Stripe/types.d.ts.map +1 -0
- package/build/Stripe/types.js +3 -0
- package/build/Stripe/types.js.map +1 -0
- package/build/VoiceSearch/index.d.ts +13 -0
- package/build/VoiceSearch/index.d.ts.map +1 -0
- package/build/VoiceSearch/index.js +34 -0
- package/build/VoiceSearch/index.js.map +1 -0
- package/build/VoiceSearch/types.d.ts +10 -0
- package/build/VoiceSearch/types.d.ts.map +1 -0
- package/build/VoiceSearch/types.js +3 -0
- package/build/VoiceSearch/types.js.map +1 -0
- package/build/barcode/barcode-scan.d.ts +16 -0
- package/build/barcode/barcode-scan.d.ts.map +1 -0
- package/build/barcode/barcode-scan.js +40 -0
- package/build/barcode/barcode-scan.js.map +1 -0
- package/build/barcode/barcode-types.d.ts +18 -0
- package/build/barcode/barcode-types.d.ts.map +1 -0
- package/build/barcode/barcode-types.js +3 -0
- package/build/barcode/barcode-types.js.map +1 -0
- package/build/barcode/formats.d.ts +18 -0
- package/build/barcode/formats.d.ts.map +1 -0
- package/build/barcode/formats.js +23 -0
- package/build/barcode/formats.js.map +1 -0
- package/build/barcode/index.d.ts +5 -0
- package/build/barcode/index.d.ts.map +1 -0
- package/build/barcode/index.js +13 -0
- package/build/barcode/index.js.map +1 -0
- package/build/barcode/types.d.ts +17 -0
- package/build/barcode/types.d.ts.map +1 -0
- package/build/barcode/types.js +22 -0
- package/build/barcode/types.js.map +1 -0
- package/build/index.d.ts +15 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +110 -0
- package/build/index.js.map +1 -0
- package/build/package.json +155 -0
- package/build/types/index.d.ts +49 -0
- package/build/types/index.d.ts.map +1 -0
- package/build/types/index.js +4 -0
- package/build/types/index.js.map +1 -0
- package/build/utills.d.ts +12 -0
- package/build/utills.d.ts.map +1 -0
- package/build/utills.js +111 -0
- package/build/utills.js.map +1 -0
- package/build/webtonative.min.js +1 -0
- package/buildScript.ts +35 -0
- package/client.ts +106 -0
- package/index.d.ts +65 -0
- package/package.json +36 -31
- package/src/ATTConsent/index.ts +51 -0
- package/src/ATTConsent/types.ts +17 -0
- package/src/AdMob/index.ts +113 -0
- package/src/AdMob/types.ts +37 -0
- package/src/AppReview/index.ts +19 -0
- package/src/AppReview/types.ts +12 -0
- package/src/AppsFlyer/index.ts +46 -0
- package/src/AppsFlyer/types.ts +10 -0
- package/src/BackgroundLocation/index.ts +78 -0
- package/src/BackgroundLocation/types.ts +34 -0
- package/src/Beacon/index.ts +28 -0
- package/src/Beacon/types.ts +22 -0
- package/src/Biometric/index.ts +126 -0
- package/src/Biometric/types.ts +27 -0
- package/src/Bluetooth/index.ts +71 -0
- package/src/Bluetooth/types.ts +40 -0
- package/src/BottomNavigation/index.ts +39 -0
- package/src/BottomNavigation/types.ts +9 -0
- package/src/Clipboard/index.ts +48 -0
- package/src/Clipboard/types.ts +30 -0
- package/src/Facebook/events.ts +45 -0
- package/src/Facebook/index.ts +3 -0
- package/src/Facebook/types.ts +24 -0
- package/src/Firebase/Analytics/index.ts +127 -0
- package/src/Firebase/Messaging/index.ts +73 -0
- package/src/Firebase/index.ts +4 -0
- package/src/Firebase/types.ts +74 -0
- package/src/FirebaseAnalytics/index.ts +3 -0
- package/src/Haptics/index.ts +17 -0
- package/src/Haptics/types.ts +8 -0
- package/src/InAppPurchase/index.ts +92 -0
- package/src/InAppPurchase/types.ts +35 -0
- package/src/InAppUpdate/index.ts +40 -0
- package/src/InAppUpdate/types.ts +17 -0
- package/src/MediaPlayer/index.ts +56 -0
- package/src/MediaPlayer/types.ts +15 -0
- package/src/NativeContacts/index.ts +50 -0
- package/src/NativeContacts/types.ts +16 -0
- package/src/Notification/index.ts +41 -0
- package/src/Notification/types.ts +16 -0
- package/src/OneSignal/index.ts +54 -0
- package/src/OneSignal/types.ts +15 -0
- package/src/Printing/index.ts +17 -0
- package/src/Printing/types.ts +9 -0
- package/src/Screen/index.ts +34 -0
- package/src/Screen/types.ts +8 -0
- package/src/Siri/index.ts +23 -0
- package/src/Siri/types.ts +14 -0
- package/src/SocialLogin/apple.ts +31 -0
- package/src/SocialLogin/facebook.ts +64 -0
- package/src/SocialLogin/google.ts +64 -0
- package/src/SocialLogin/index.ts +20 -0
- package/src/SocialLogin/types.ts +52 -0
- package/src/Stripe/index.ts +54 -0
- package/src/Stripe/types.ts +37 -0
- package/src/VoiceSearch/index.ts +37 -0
- package/src/VoiceSearch/types.ts +12 -0
- package/src/barcode/barcode-scan.ts +59 -0
- package/src/barcode/barcode-types.ts +22 -0
- package/src/barcode/formats.ts +19 -0
- package/src/barcode/index.ts +5 -0
- package/src/barcode/types.ts +18 -0
- package/src/index.ts +105 -0
- package/src/types/index.ts +71 -0
- package/src/utills.ts +110 -0
- package/tsconfig.json +27 -0
- package/webpack.config.js +57 -0
- package/ATTConsent/index.js +0 -1
- package/AdMob/index.js +0 -1
- package/AppReview/index.js +0 -1
- package/AppsFlyer/index.js +0 -4
- package/BackgroundLocation/index.js +0 -4
- package/Beacon/index.js +0 -1
- package/Biometric/index.js +0 -1
- package/Bluetooth/index.js +0 -1
- package/BottomNavigation/index.js +0 -4
- package/Clipboard/index.js +0 -4
- package/Facebook/events.js +0 -4
- package/Facebook/index.js +0 -1
- package/Firebase/Analytics/index.js +0 -4
- package/Firebase/Messaging/index.js +0 -4
- package/Firebase/index.js +0 -1
- package/FirebaseAnalytics/index.js +0 -1
- package/Haptics/index.js +0 -1
- package/InAppPurchase/index.js +0 -1
- package/InAppUpdate/index.js +0 -1
- package/MediaPlayer/index.js +0 -7
- package/NativeContacts/index.js +0 -6
- package/Notification/index.js +0 -5
- package/OneSignal/index.js +0 -1
- package/Printing/index.js +0 -1
- package/Screen/index.js +0 -4
- package/Siri/index.js +0 -1
- package/SocialLogin/apple.js +0 -1
- package/SocialLogin/facebook.js +0 -9
- package/SocialLogin/google.js +0 -9
- package/SocialLogin/index.js +0 -1
- package/Stripe/index.js +0 -1
- package/VoiceSearch/index.js +0 -1
- package/barcode/barcode-scan.js +0 -1
- package/barcode/formats.js +0 -1
- package/barcode/index.js +0 -1
- package/barcode/types.js +0 -1
- package/index.js +0 -4
- package/utills.js +0 -1
- package/webtonative.min.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Beacon/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAoC,MAAM,SAAS,CAAC;AAE1E;;;GAGG;AACH,eAAO,MAAM,cAAc,aAAa,aAAa,KAAQ,IAoB5D,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.initBeaconData = void 0;
|
|
4
|
+
var utills_1 = require("../utills");
|
|
5
|
+
/**
|
|
6
|
+
* Initializes beacon data
|
|
7
|
+
* @param options - Options for initializing beacon data
|
|
8
|
+
*/
|
|
9
|
+
var initBeaconData = function (options) {
|
|
10
|
+
if (options === void 0) { options = {}; }
|
|
11
|
+
var callback = options.callback, beaconData = options.beaconData;
|
|
12
|
+
if (["ANDROID_APP", "IOS_APP"].includes(utills_1.platform)) {
|
|
13
|
+
(0, utills_1.registerCb)(function (response) {
|
|
14
|
+
var type = response.type;
|
|
15
|
+
if (type === "initBeaconData") {
|
|
16
|
+
callback && callback(response);
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
utills_1.platform === "ANDROID_APP" &&
|
|
20
|
+
utills_1.webToNative.initBeaconData(JSON.stringify(beaconData));
|
|
21
|
+
if (utills_1.platform === "IOS_APP" && utills_1.webToNativeIos) {
|
|
22
|
+
utills_1.webToNativeIos.postMessage({
|
|
23
|
+
action: "initBeaconData",
|
|
24
|
+
data: beaconData
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
exports.initBeaconData = initBeaconData;
|
|
30
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Beacon/index.ts"],"names":[],"mappings":";;;AAAA,oCAA8E;AAG9E;;;GAGG;AACI,IAAM,cAAc,GAAG,UAAC,OAA2B;IAA3B,wBAAA,EAAA,YAA2B;IACjD,IAAA,QAAQ,GAAiB,OAAO,SAAxB,EAAE,UAAU,GAAK,OAAO,WAAZ,CAAa;IACzC,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC,QAAQ,CAAC,iBAAQ,CAAC,EAAE;QAClD,IAAA,mBAAU,EAAC,UAAC,QAAwB;YAC3B,IAAA,IAAI,GAAK,QAAQ,KAAb,CAAc;YAC1B,IAAI,IAAI,KAAK,gBAAgB,EAAE;gBAC9B,QAAQ,IAAI,QAAQ,CAAC,QAAQ,CAAC,CAAC;aAC/B;QACF,CAAC,CAAC,CAAC;QAEH,iBAAQ,KAAK,aAAa;YACnB,oBAAW,CAAC,cAAc,CAAC,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC;QAE9D,IAAI,iBAAQ,KAAK,SAAS,IAAI,uBAAc,EAAE;YAC7C,uBAAc,CAAC,WAAW,CAAC;gBAC1B,MAAM,EAAE,gBAAgB;gBACxB,IAAI,EAAE,UAAU;aACI,CAAC,CAAC;SACvB;KACD;AACF,CAAC,CAAC;AApBW,QAAA,cAAc,kBAoBzB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface BeaconResponse {
|
|
2
|
+
type: string;
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
}
|
|
5
|
+
export interface BeaconCallback {
|
|
6
|
+
(response: BeaconResponse): void;
|
|
7
|
+
}
|
|
8
|
+
export interface BeaconData {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}
|
|
11
|
+
export interface BeaconOptions {
|
|
12
|
+
callback?: BeaconCallback;
|
|
13
|
+
beaconData?: BeaconData;
|
|
14
|
+
}
|
|
15
|
+
export interface BeaconIosMessage {
|
|
16
|
+
action: string;
|
|
17
|
+
data?: BeaconData;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/Beacon/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACnB;AAED,MAAM,WAAW,cAAc;IAC9B,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI,CAAC;CACjC;AAED,MAAM,WAAW,UAAU;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACnB;AAED,MAAM,WAAW,aAAa;IAC7B,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,UAAU,CAAC,EAAE,UAAU,CAAC;CACxB;AAED,MAAM,WAAW,gBAAgB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,UAAU,CAAC;CAClB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/Beacon/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { BiometricOptions } from "./types";
|
|
2
|
+
/**
|
|
3
|
+
* Checks the status of biometric authentication
|
|
4
|
+
* @param options - Options for checking biometric status
|
|
5
|
+
*/
|
|
6
|
+
export declare const checkStatus: (options?: BiometricOptions) => void;
|
|
7
|
+
/**
|
|
8
|
+
* Saves a secret using biometric authentication
|
|
9
|
+
* @param options - Options for saving biometric secret
|
|
10
|
+
*/
|
|
11
|
+
export declare const saveSecret: (options?: BiometricOptions) => void;
|
|
12
|
+
/**
|
|
13
|
+
* Deletes a saved biometric secret
|
|
14
|
+
* @param options - Options for deleting biometric secret
|
|
15
|
+
*/
|
|
16
|
+
export declare const deleteSecret: (options?: BiometricOptions) => void;
|
|
17
|
+
/**
|
|
18
|
+
* Shows biometric authentication prompt
|
|
19
|
+
* @param options - Options for showing biometric prompt
|
|
20
|
+
*/
|
|
21
|
+
export declare const show: (options?: BiometricOptions) => void;
|
|
22
|
+
/**
|
|
23
|
+
* Shows biometric authentication with dismiss on cancel (Android only)
|
|
24
|
+
* @param options - Options for biometric authentication with dismiss on cancel
|
|
25
|
+
*/
|
|
26
|
+
export declare const biometricAuthWithDismissOnCancel: (options?: BiometricOptions) => void;
|
|
27
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Biometric/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAgE,MAAM,SAAS,CAAC;AAEzG;;;GAGG;AACH,eAAO,MAAM,WAAW,aAAa,gBAAgB,KAAQ,IAmB5D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,aAAa,gBAAgB,KAAQ,IAoB3D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,aAAa,gBAAgB,KAAQ,IAmB7D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,IAAI,aAAa,gBAAgB,KAAQ,IAoBrD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gCAAgC,aAAa,gBAAgB,KAAQ,IAgBjF,CAAC"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.biometricAuthWithDismissOnCancel = exports.show = exports.deleteSecret = exports.saveSecret = exports.checkStatus = void 0;
|
|
4
|
+
var utills_1 = require("../utills");
|
|
5
|
+
/**
|
|
6
|
+
* Checks the status of biometric authentication
|
|
7
|
+
* @param options - Options for checking biometric status
|
|
8
|
+
*/
|
|
9
|
+
var checkStatus = function (options) {
|
|
10
|
+
if (options === void 0) { options = {}; }
|
|
11
|
+
var callback = options.callback;
|
|
12
|
+
if (["ANDROID_APP", "IOS_APP"].includes(utills_1.platform)) {
|
|
13
|
+
(0, utills_1.registerCb)(function (response) {
|
|
14
|
+
var type = response.type;
|
|
15
|
+
if (type === "checkBiometricStatus") {
|
|
16
|
+
callback && callback(response);
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
utills_1.platform === "ANDROID_APP" &&
|
|
20
|
+
utills_1.webToNative.checkBiometricStatus();
|
|
21
|
+
if (utills_1.platform === "IOS_APP" && utills_1.webToNativeIos) {
|
|
22
|
+
utills_1.webToNativeIos.postMessage({
|
|
23
|
+
action: "checkBiometricStatus",
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
exports.checkStatus = checkStatus;
|
|
29
|
+
/**
|
|
30
|
+
* Saves a secret using biometric authentication
|
|
31
|
+
* @param options - Options for saving biometric secret
|
|
32
|
+
*/
|
|
33
|
+
var saveSecret = function (options) {
|
|
34
|
+
if (options === void 0) { options = {}; }
|
|
35
|
+
var callback = options.callback, secret = options.secret;
|
|
36
|
+
if (["ANDROID_APP", "IOS_APP"].includes(utills_1.platform)) {
|
|
37
|
+
(0, utills_1.registerCb)(function (response) {
|
|
38
|
+
var type = response.type;
|
|
39
|
+
if (type === "saveBiometricSecret") {
|
|
40
|
+
callback && callback(response);
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
utills_1.platform === "ANDROID_APP" &&
|
|
44
|
+
utills_1.webToNative.saveSecret(secret);
|
|
45
|
+
if (utills_1.platform === "IOS_APP" && utills_1.webToNativeIos) {
|
|
46
|
+
utills_1.webToNativeIos.postMessage({
|
|
47
|
+
action: "saveBiometricSecret",
|
|
48
|
+
secret: secret
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
exports.saveSecret = saveSecret;
|
|
54
|
+
/**
|
|
55
|
+
* Deletes a saved biometric secret
|
|
56
|
+
* @param options - Options for deleting biometric secret
|
|
57
|
+
*/
|
|
58
|
+
var deleteSecret = function (options) {
|
|
59
|
+
if (options === void 0) { options = {}; }
|
|
60
|
+
var callback = options.callback;
|
|
61
|
+
if (["ANDROID_APP", "IOS_APP"].includes(utills_1.platform)) {
|
|
62
|
+
(0, utills_1.registerCb)(function (response) {
|
|
63
|
+
var type = response.type;
|
|
64
|
+
if (type === "deleteBiometricSecret") {
|
|
65
|
+
callback && callback(response);
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
utills_1.platform === "ANDROID_APP" &&
|
|
69
|
+
utills_1.webToNative.deleteSecret();
|
|
70
|
+
if (utills_1.platform === "IOS_APP" && utills_1.webToNativeIos) {
|
|
71
|
+
utills_1.webToNativeIos.postMessage({
|
|
72
|
+
action: "deleteBiometricSecret",
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
exports.deleteSecret = deleteSecret;
|
|
78
|
+
/**
|
|
79
|
+
* Shows biometric authentication prompt
|
|
80
|
+
* @param options - Options for showing biometric prompt
|
|
81
|
+
*/
|
|
82
|
+
var show = function (options) {
|
|
83
|
+
if (options === void 0) { options = {}; }
|
|
84
|
+
var callback = options.callback, prompt = options.prompt;
|
|
85
|
+
if (["ANDROID_APP", "IOS_APP"].includes(utills_1.platform)) {
|
|
86
|
+
(0, utills_1.registerCb)(function (response) {
|
|
87
|
+
var type = response.type;
|
|
88
|
+
if (type === "showBiometric") {
|
|
89
|
+
callback && callback(response);
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
utills_1.platform === "ANDROID_APP" &&
|
|
93
|
+
utills_1.webToNative.callBiometric(prompt || "Authenticate to continue!");
|
|
94
|
+
if (utills_1.platform === "IOS_APP" && utills_1.webToNativeIos) {
|
|
95
|
+
utills_1.webToNativeIos.postMessage({
|
|
96
|
+
action: "showBiometric",
|
|
97
|
+
prompt: prompt || '',
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
exports.show = show;
|
|
103
|
+
/**
|
|
104
|
+
* Shows biometric authentication with dismiss on cancel (Android only)
|
|
105
|
+
* @param options - Options for biometric authentication with dismiss on cancel
|
|
106
|
+
*/
|
|
107
|
+
var biometricAuthWithDismissOnCancel = function (options) {
|
|
108
|
+
if (options === void 0) { options = {}; }
|
|
109
|
+
var callback = options.callback, prompt = options.prompt, _a = options.isAuthenticationOptional, isAuthenticationOptional = _a === void 0 ? false : _a;
|
|
110
|
+
if (["ANDROID_APP"].includes(utills_1.platform)) {
|
|
111
|
+
(0, utills_1.registerCb)(function (response) {
|
|
112
|
+
var type = response.type;
|
|
113
|
+
if (type === "biometricAuthWithDismissOnCancel") {
|
|
114
|
+
callback && callback(response);
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
utills_1.platform === "ANDROID_APP" &&
|
|
118
|
+
utills_1.webToNative.biometricAuthWithDismissOnCancel(JSON.stringify({
|
|
119
|
+
prompt: prompt || "Authenticate to continue!",
|
|
120
|
+
isAuthenticationOptional: isAuthenticationOptional
|
|
121
|
+
}));
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
exports.biometricAuthWithDismissOnCancel = biometricAuthWithDismissOnCancel;
|
|
125
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Biometric/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface BiometricResponse {
|
|
2
|
+
type: string;
|
|
3
|
+
status?: string;
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
}
|
|
6
|
+
export interface BiometricCallback {
|
|
7
|
+
(response: BiometricResponse): void;
|
|
8
|
+
}
|
|
9
|
+
export interface BiometricOptions {
|
|
10
|
+
callback?: BiometricCallback;
|
|
11
|
+
secret?: string;
|
|
12
|
+
prompt?: string;
|
|
13
|
+
isAuthenticationOptional?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface BiometricIosMessage {
|
|
16
|
+
action: string;
|
|
17
|
+
secret?: string;
|
|
18
|
+
prompt?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface BiometricAuthOptions {
|
|
21
|
+
prompt?: string;
|
|
22
|
+
isAuthenticationOptional?: boolean;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/Biometric/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACnB;AAED,MAAM,WAAW,iBAAiB;IACjC,CAAC,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAC;CACpC;AAED,MAAM,WAAW,gBAAgB;IAChC,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACnC;AAED,MAAM,WAAW,mBAAmB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,oBAAoB;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACnC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/Biometric/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BluetoothScanOptions, BluetoothPairOptions, BluetoothUnpairOptions } from "./types";
|
|
2
|
+
/**
|
|
3
|
+
* Starts scanning for Bluetooth devices (Android only)
|
|
4
|
+
* @param options - Options for Bluetooth scanning
|
|
5
|
+
*/
|
|
6
|
+
export declare const startBluetoothScan: (options?: BluetoothScanOptions) => void;
|
|
7
|
+
/**
|
|
8
|
+
* Pairs with a Bluetooth device (Android only)
|
|
9
|
+
* @param options - Options for pairing with a Bluetooth device
|
|
10
|
+
*/
|
|
11
|
+
export declare const pairDevice: (options?: BluetoothPairOptions) => void;
|
|
12
|
+
/**
|
|
13
|
+
* Unpairs from a Bluetooth device (Android only)
|
|
14
|
+
* @param options - Options for unpairing from a Bluetooth device
|
|
15
|
+
*/
|
|
16
|
+
export declare const unpairDevice: (options?: BluetoothUnpairOptions) => void;
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Bluetooth/index.ts"],"names":[],"mappings":"AACA,OAAO,EACN,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,EAItB,MAAM,SAAS,CAAC;AAEjB;;;GAGG;AACH,eAAO,MAAM,kBAAkB,aAAa,oBAAoB,KAAQ,IAavE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,aAAa,oBAAoB,KAAQ,IAgB/D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,aAAa,sBAAsB,KAAQ,IAenE,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.unpairDevice = exports.pairDevice = exports.startBluetoothScan = void 0;
|
|
4
|
+
var utills_1 = require("../utills");
|
|
5
|
+
/**
|
|
6
|
+
* Starts scanning for Bluetooth devices (Android only)
|
|
7
|
+
* @param options - Options for Bluetooth scanning
|
|
8
|
+
*/
|
|
9
|
+
var startBluetoothScan = function (options) {
|
|
10
|
+
if (options === void 0) { options = {}; }
|
|
11
|
+
var callback = options.callback;
|
|
12
|
+
if (["ANDROID_APP"].includes(utills_1.platform)) {
|
|
13
|
+
(0, utills_1.registerCb)(function (response) {
|
|
14
|
+
var type = response.type;
|
|
15
|
+
if (type === "startBluetoothScan") {
|
|
16
|
+
callback && callback(response);
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
utills_1.platform === "ANDROID_APP" &&
|
|
20
|
+
utills_1.webToNative.startBluetoothScan();
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
exports.startBluetoothScan = startBluetoothScan;
|
|
24
|
+
/**
|
|
25
|
+
* Pairs with a Bluetooth device (Android only)
|
|
26
|
+
* @param options - Options for pairing with a Bluetooth device
|
|
27
|
+
*/
|
|
28
|
+
var pairDevice = function (options) {
|
|
29
|
+
if (options === void 0) { options = {}; }
|
|
30
|
+
var callback = options.callback, address = options.address, _a = options.timeout, timeout = _a === void 0 ? 10 : _a;
|
|
31
|
+
if (["ANDROID_APP"].includes(utills_1.platform)) {
|
|
32
|
+
(0, utills_1.registerCb)(function (response) {
|
|
33
|
+
var type = response.type;
|
|
34
|
+
if (type === "pairWithDevice") {
|
|
35
|
+
callback && callback(response);
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
utills_1.platform === "ANDROID_APP" &&
|
|
39
|
+
utills_1.webToNative.pairWithDevice(JSON.stringify({
|
|
40
|
+
address: address,
|
|
41
|
+
timeout: timeout
|
|
42
|
+
}));
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
exports.pairDevice = pairDevice;
|
|
46
|
+
/**
|
|
47
|
+
* Unpairs from a Bluetooth device (Android only)
|
|
48
|
+
* @param options - Options for unpairing from a Bluetooth device
|
|
49
|
+
*/
|
|
50
|
+
var unpairDevice = function (options) {
|
|
51
|
+
if (options === void 0) { options = {}; }
|
|
52
|
+
var callback = options.callback, address = options.address;
|
|
53
|
+
if (["ANDROID_APP"].includes(utills_1.platform)) {
|
|
54
|
+
(0, utills_1.registerCb)(function (response) {
|
|
55
|
+
var type = response.type;
|
|
56
|
+
if (type === "unpairDevice") {
|
|
57
|
+
callback && callback(response);
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
utills_1.platform === "ANDROID_APP" &&
|
|
61
|
+
utills_1.webToNative.unpairDevice(JSON.stringify({
|
|
62
|
+
address: address
|
|
63
|
+
}));
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
exports.unpairDevice = unpairDevice;
|
|
67
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Bluetooth/index.ts"],"names":[],"mappings":";;;AAAA,oCAA8E;AAU9E;;;GAGG;AACI,IAAM,kBAAkB,GAAG,UAAC,OAAkC;IAAlC,wBAAA,EAAA,YAAkC;IAC5D,IAAA,QAAQ,GAAK,OAAO,SAAZ,CAAa;IAC7B,IAAI,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,iBAAQ,CAAC,EAAE;QACvC,IAAA,mBAAU,EAAC,UAAC,QAA2B;YAC9B,IAAA,IAAI,GAAK,QAAQ,KAAb,CAAc;YAC1B,IAAI,IAAI,KAAK,oBAAoB,EAAE;gBAClC,QAAQ,IAAI,QAAQ,CAAC,QAAQ,CAAC,CAAC;aAC/B;QACF,CAAC,CAAC,CAAC;QAEH,iBAAQ,KAAK,aAAa;YACnB,oBAAW,CAAC,kBAAkB,EAAE,CAAC;KACxC;AACF,CAAC,CAAC;AAbW,QAAA,kBAAkB,sBAa7B;AAEF;;;GAGG;AACI,IAAM,UAAU,GAAG,UAAC,OAAkC;IAAlC,wBAAA,EAAA,YAAkC;IACpD,IAAA,QAAQ,GAA4B,OAAO,SAAnC,EAAE,OAAO,GAAmB,OAAO,QAA1B,EAAE,KAAiB,OAAO,QAAZ,EAAZ,OAAO,mBAAG,EAAE,KAAA,CAAa;IACpD,IAAI,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,iBAAQ,CAAC,EAAE;QACvC,IAAA,mBAAU,EAAC,UAAC,QAA2B;YAC9B,IAAA,IAAI,GAAK,QAAQ,KAAb,CAAc;YAC1B,IAAI,IAAI,KAAK,gBAAgB,EAAE;gBAC9B,QAAQ,IAAI,QAAQ,CAAC,QAAQ,CAAC,CAAC;aAC/B;QACF,CAAC,CAAC,CAAC;QAEH,iBAAQ,KAAK,aAAa;YACnB,oBAAW,CAAC,cAAc,CAAC,IAAI,CAAC,SAAS,CAAC;gBAC/C,OAAO,SAAA;gBACP,OAAO,SAAA;aACe,CAAC,CAAC,CAAC;KAC3B;AACF,CAAC,CAAC;AAhBW,QAAA,UAAU,cAgBrB;AAEF;;;GAGG;AACI,IAAM,YAAY,GAAG,UAAC,OAAoC;IAApC,wBAAA,EAAA,YAAoC;IACxD,IAAA,QAAQ,GAAc,OAAO,SAArB,EAAE,OAAO,GAAK,OAAO,QAAZ,CAAa;IACtC,IAAI,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,iBAAQ,CAAC,EAAE;QACvC,IAAA,mBAAU,EAAC,UAAC,QAA2B;YAC9B,IAAA,IAAI,GAAK,QAAQ,KAAb,CAAc;YAC1B,IAAI,IAAI,KAAK,cAAc,EAAE;gBAC5B,QAAQ,IAAI,QAAQ,CAAC,QAAQ,CAAC,CAAC;aAC/B;QACF,CAAC,CAAC,CAAC;QAEH,iBAAQ,KAAK,aAAa;YACnB,oBAAW,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC;gBAC7C,OAAO,SAAA;aACkB,CAAC,CAAC,CAAC;KAC9B;AACF,CAAC,CAAC;AAfW,QAAA,YAAY,gBAevB"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface BluetoothResponse {
|
|
2
|
+
type: string;
|
|
3
|
+
status?: string;
|
|
4
|
+
devices?: BluetoothDevice[];
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
}
|
|
7
|
+
export interface BluetoothDevice {
|
|
8
|
+
name?: string;
|
|
9
|
+
address?: string;
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}
|
|
12
|
+
export interface BluetoothCallback {
|
|
13
|
+
(response: BluetoothResponse): void;
|
|
14
|
+
}
|
|
15
|
+
export interface BluetoothScanOptions {
|
|
16
|
+
callback?: BluetoothCallback;
|
|
17
|
+
}
|
|
18
|
+
export interface BluetoothPairOptions {
|
|
19
|
+
callback?: BluetoothCallback;
|
|
20
|
+
address?: string;
|
|
21
|
+
timeout?: number;
|
|
22
|
+
}
|
|
23
|
+
export interface BluetoothUnpairOptions {
|
|
24
|
+
callback?: BluetoothCallback;
|
|
25
|
+
address?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface BluetoothPairParams {
|
|
28
|
+
address?: string;
|
|
29
|
+
timeout?: number;
|
|
30
|
+
}
|
|
31
|
+
export interface BluetoothUnpairParams {
|
|
32
|
+
address?: string;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/Bluetooth/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,eAAe,EAAE,CAAC;IAC5B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACnB;AAED,MAAM,WAAW,eAAe;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACnB;AAED,MAAM,WAAW,iBAAiB;IACjC,CAAC,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAC;CACpC;AAED,MAAM,WAAW,oBAAoB;IACpC,QAAQ,CAAC,EAAE,iBAAiB,CAAC;CAC7B;AAED,MAAM,WAAW,oBAAoB;IACpC,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,sBAAsB;IACtC,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,mBAAmB;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,qBAAqB;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/Bluetooth/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BottomNavigationShowOptions } from "./types";
|
|
2
|
+
/**
|
|
3
|
+
* Hides the bottom navigation
|
|
4
|
+
*/
|
|
5
|
+
export declare const hide: () => void;
|
|
6
|
+
/**
|
|
7
|
+
* Shows the bottom navigation
|
|
8
|
+
* @param options - Options for showing bottom navigation
|
|
9
|
+
*/
|
|
10
|
+
export declare const show: (options?: BottomNavigationShowOptions) => void;
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/BottomNavigation/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,2BAA2B,EAA8B,MAAM,SAAS,CAAC;AAElF;;GAEG;AACH,eAAO,MAAM,IAAI,QAAO,IAYvB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,IAAI,aAAa,2BAA2B,KAAQ,IAchE,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.show = exports.hide = void 0;
|
|
4
|
+
var utills_1 = require("../utills");
|
|
5
|
+
/**
|
|
6
|
+
* Hides the bottom navigation
|
|
7
|
+
*/
|
|
8
|
+
var hide = function () {
|
|
9
|
+
if (["ANDROID_APP", "IOS_APP"].includes(utills_1.platform)) {
|
|
10
|
+
utills_1.platform === "ANDROID_APP" &&
|
|
11
|
+
utills_1.webToNative.showHideStickyFooter(false);
|
|
12
|
+
if (utills_1.platform === "IOS_APP" && utills_1.webToNativeIos) {
|
|
13
|
+
utills_1.webToNativeIos.postMessage({
|
|
14
|
+
action: "showHideStickyFooter",
|
|
15
|
+
show: false,
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
exports.hide = hide;
|
|
21
|
+
/**
|
|
22
|
+
* Shows the bottom navigation
|
|
23
|
+
* @param options - Options for showing bottom navigation
|
|
24
|
+
*/
|
|
25
|
+
var show = function (options) {
|
|
26
|
+
if (options === void 0) { options = {}; }
|
|
27
|
+
var key = options.key;
|
|
28
|
+
if (["ANDROID_APP", "IOS_APP"].includes(utills_1.platform)) {
|
|
29
|
+
utills_1.platform === "ANDROID_APP" &&
|
|
30
|
+
utills_1.webToNative.showHideStickyFooter(true);
|
|
31
|
+
if (utills_1.platform === "IOS_APP" && utills_1.webToNativeIos) {
|
|
32
|
+
utills_1.webToNativeIos.postMessage({
|
|
33
|
+
action: "showHideStickyFooter",
|
|
34
|
+
show: true,
|
|
35
|
+
key: key,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
exports.show = show;
|
|
41
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/BottomNavigation/index.ts"],"names":[],"mappings":";;;AAAA,oCAAkE;AAGlE;;GAEG;AACI,IAAM,IAAI,GAAG;IACnB,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC,QAAQ,CAAC,iBAAQ,CAAC,EAAE;QAClD,iBAAQ,KAAK,aAAa;YACnB,oBAAW,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAC;QAE/C,IAAI,iBAAQ,KAAK,SAAS,IAAI,uBAAc,EAAE;YAC7C,uBAAc,CAAC,WAAW,CAAC;gBAC1B,MAAM,EAAE,sBAAsB;gBAC9B,IAAI,EAAE,KAAK;aACmB,CAAC,CAAC;SACjC;KACD;AACF,CAAC,CAAC;AAZW,QAAA,IAAI,QAYf;AAEF;;;GAGG;AACI,IAAM,IAAI,GAAG,UAAC,OAAyC;IAAzC,wBAAA,EAAA,YAAyC;IACrD,IAAA,GAAG,GAAK,OAAO,IAAZ,CAAa;IACxB,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC,QAAQ,CAAC,iBAAQ,CAAC,EAAE;QAClD,iBAAQ,KAAK,aAAa;YACnB,oBAAW,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;QAE9C,IAAI,iBAAQ,KAAK,SAAS,IAAI,uBAAc,EAAE;YAC7C,uBAAc,CAAC,WAAW,CAAC;gBAC1B,MAAM,EAAE,sBAAsB;gBAC9B,IAAI,EAAE,IAAI;gBACV,GAAG,KAAA;aAC2B,CAAC,CAAC;SACjC;KACD;AACF,CAAC,CAAC;AAdW,QAAA,IAAI,QAcf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/BottomNavigation/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,2BAA2B;IAC3C,GAAG,CAAC,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,0BAA0B;IAC1C,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;CACb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/BottomNavigation/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { GetClipboardOptions, SetClipboardOptions } from "./types";
|
|
2
|
+
/**
|
|
3
|
+
* Gets content from clipboard
|
|
4
|
+
* @param options - Options for getting clipboard content
|
|
5
|
+
*/
|
|
6
|
+
export declare const get: (options?: GetClipboardOptions) => void;
|
|
7
|
+
/**
|
|
8
|
+
* Sets content to clipboard
|
|
9
|
+
* @param options - Options for setting clipboard content
|
|
10
|
+
*/
|
|
11
|
+
export declare const set: (options?: SetClipboardOptions) => void;
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Clipboard/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,mBAAmB,EACnB,mBAAmB,EAEpB,MAAM,SAAS,CAAC;AAEjB;;;GAGG;AACH,eAAO,MAAM,GAAG,aAAa,mBAAmB,KAAQ,IAkBvD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,GAAG,aAAa,mBAAmB,KAAQ,IAWvD,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.set = exports.get = void 0;
|
|
4
|
+
var utills_1 = require("../utills");
|
|
5
|
+
/**
|
|
6
|
+
* Gets content from clipboard
|
|
7
|
+
* @param options - Options for getting clipboard content
|
|
8
|
+
*/
|
|
9
|
+
var get = function (options) {
|
|
10
|
+
if (options === void 0) { options = {}; }
|
|
11
|
+
var callback = options.callback;
|
|
12
|
+
if (["ANDROID_APP", "IOS_APP"].includes(utills_1.platform)) {
|
|
13
|
+
(0, utills_1.registerCb)(function (response) {
|
|
14
|
+
var type = response.type;
|
|
15
|
+
if (type === "CLIPBOARD_CONTENT") {
|
|
16
|
+
callback && callback(response);
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
if (utills_1.platform === "IOS_APP" && utills_1.webToNativeIos) {
|
|
20
|
+
utills_1.webToNativeIos.postMessage({
|
|
21
|
+
action: "getClipBoardData",
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
utills_1.platform === "ANDROID_APP" && utills_1.webToNative.getText();
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
exports.get = get;
|
|
28
|
+
/**
|
|
29
|
+
* Sets content to clipboard
|
|
30
|
+
* @param options - Options for setting clipboard content
|
|
31
|
+
*/
|
|
32
|
+
var set = function (options) {
|
|
33
|
+
if (options === void 0) { options = {}; }
|
|
34
|
+
if (["ANDROID_APP", "IOS_APP"].includes(utills_1.platform)) {
|
|
35
|
+
if (utills_1.platform === "IOS_APP" && utills_1.webToNativeIos) {
|
|
36
|
+
utills_1.webToNativeIos.postMessage({
|
|
37
|
+
action: "setClipBoardData",
|
|
38
|
+
text: options.data || "",
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
utills_1.platform === "ANDROID_APP" && utills_1.webToNative.setText(options.data || "");
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
exports.set = set;
|
|
45
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Clipboard/index.ts"],"names":[],"mappings":";;;AAAA,oCAA8E;AAQ9E;;;GAGG;AACI,IAAM,GAAG,GAAG,UAAC,OAAiC;IAAjC,wBAAA,EAAA,YAAiC;IAC5C,IAAA,QAAQ,GAAK,OAAO,SAAZ,CAAa;IAC7B,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC,QAAQ,CAAC,iBAAQ,CAAC,EAAE;QAClD,IAAA,mBAAU,EAAC,UAAC,QAA2B;YAC9B,IAAA,IAAI,GAAK,QAAQ,KAAb,CAAc;YAC1B,IAAI,IAAI,KAAK,mBAAmB,EAAE;gBACjC,QAAQ,IAAI,QAAQ,CAAC,QAAQ,CAAC,CAAC;aAC/B;QACF,CAAC,CAAC,CAAC;QAEH,IAAI,iBAAQ,KAAK,SAAS,IAAI,uBAAc,EAAE;YAC7C,uBAAc,CAAC,WAAW,CAAC;gBAC1B,MAAM,EAAE,kBAAkB;aACH,CAAC,CAAC;SAC1B;QAED,iBAAQ,KAAK,aAAa,IAAI,oBAAW,CAAC,OAAO,EAAE,CAAC;KACpD;AACF,CAAC,CAAC;AAlBW,QAAA,GAAG,OAkBd;AAEF;;;GAGG;AACI,IAAM,GAAG,GAAG,UAAC,OAAiC;IAAjC,wBAAA,EAAA,YAAiC;IACpD,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC,QAAQ,CAAC,iBAAQ,CAAC,EAAE;QAClD,IAAI,iBAAQ,KAAK,SAAS,IAAI,uBAAc,EAAE;YAC7C,uBAAc,CAAC,WAAW,CAAC;gBAC1B,MAAM,EAAE,kBAAkB;gBAC1B,IAAI,EAAE,OAAO,CAAC,IAAI,IAAI,EAAE;aACD,CAAC,CAAC;SAC1B;QAED,iBAAQ,KAAK,aAAa,IAAI,oBAAW,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC;KACtE;AACF,CAAC,CAAC;AAXW,QAAA,GAAG,OAWd"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface ClipboardResponse {
|
|
2
|
+
type: string;
|
|
3
|
+
content?: string;
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
}
|
|
6
|
+
export type ClipboardCallback = (response: ClipboardResponse) => void;
|
|
7
|
+
export interface GetClipboardOptions {
|
|
8
|
+
callback?: ClipboardCallback;
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}
|
|
11
|
+
export interface SetClipboardOptions {
|
|
12
|
+
data?: string;
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}
|
|
15
|
+
export interface ClipboardIosMessage {
|
|
16
|
+
action: string;
|
|
17
|
+
text?: string;
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/Clipboard/types.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAGD,MAAM,MAAM,iBAAiB,GAAG,CAAC,QAAQ,EAAE,iBAAiB,KAAK,IAAI,CAAC;AAGtE,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAGD,MAAM,WAAW,mBAAmB;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAGD,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/Clipboard/types.ts"],"names":[],"mappings":";AAAA,oCAAoC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FacebookEventOptions, FacebookPurchaseOptions } from "./types";
|
|
2
|
+
/**
|
|
3
|
+
* Sends a Facebook event
|
|
4
|
+
* @param options - Options for the Facebook event
|
|
5
|
+
*/
|
|
6
|
+
export declare const send: (options: FacebookEventOptions) => void;
|
|
7
|
+
/**
|
|
8
|
+
* Sends a Facebook purchase event
|
|
9
|
+
* @param options - Options for the Facebook purchase event
|
|
10
|
+
* @example wtn.facebook.events.sendPurchase({amount: 10.99, currency: "USD", parameters: {item_name: "Product"}});
|
|
11
|
+
*/
|
|
12
|
+
export declare const sendPurchase: (options: FacebookPurchaseOptions) => void;
|
|
13
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/Facebook/events.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,uBAAuB,EAA2B,MAAM,SAAS,CAAC;AAEjG;;;GAGG;AACH,eAAO,MAAM,IAAI,YAAa,oBAAoB,KAAG,IAepD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,YAAY,YAAa,uBAAuB,KAAG,IAe/D,CAAC"}
|