webtonative 1.0.75-beta.6 → 1.0.76
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/ATTConsent/index.js +1 -54
- package/AdMob/index.js +1 -102
- package/AppReview/index.js +1 -22
- package/AppsFlyer/index.js +4 -43
- package/BackgroundLocation/index.js +4 -65
- package/Beacon/index.js +1 -30
- package/Biometric/index.js +1 -125
- package/Bluetooth/index.js +1 -67
- package/BottomNavigation/index.js +4 -41
- package/Clipboard/index.js +4 -45
- package/Facebook/events.js +4 -44
- package/Facebook/index.js +1 -29
- package/Firebase/Analytics/index.js +4 -110
- package/Firebase/Messaging/index.js +4 -64
- package/Firebase/index.js +1 -31
- package/FirebaseAnalytics/index.js +1 -29
- package/Haptics/index.js +1 -21
- package/InAppPurchase/index.js +1 -81
- package/InAppUpdate/index.js +1 -39
- package/MediaPlayer/index.js +7 -56
- package/NativeContacts/index.js +6 -51
- package/NativeDatastore/index.js +1 -0
- package/Notification/index.js +5 -42
- package/OneSignal/index.js +1 -265
- package/Printing/index.js +1 -20
- package/README.md +2 -31
- package/Screen/index.js +4 -35
- package/Siri/index.js +1 -26
- package/SocialLogin/apple.js +1 -32
- package/SocialLogin/facebook.js +3 -55
- package/SocialLogin/google.js +4 -56
- package/SocialLogin/index.js +1 -23
- package/Stripe/index.js +1 -49
- package/VoiceSearch/index.js +1 -34
- package/barcode/barcode-scan.js +1 -40
- package/barcode/formats.js +1 -23
- package/barcode/index.js +1 -13
- package/barcode/types.js +1 -22
- package/index.js +2 -535
- package/package.json +3 -134
- package/utills.js +1 -111
- package/webtonative.min.js +1 -1
- package/ATTConsent/index.d.ts +0 -17
- package/ATTConsent/index.d.ts.map +0 -1
- package/ATTConsent/index.js.map +0 -1
- package/ATTConsent/types.d.ts +0 -15
- package/ATTConsent/types.d.ts.map +0 -1
- package/ATTConsent/types.js +0 -3
- package/ATTConsent/types.js.map +0 -1
- package/AdMob/index.d.ts +0 -31
- package/AdMob/index.d.ts.map +0 -1
- package/AdMob/index.js.map +0 -1
- package/AdMob/types.d.ts +0 -25
- package/AdMob/types.d.ts.map +0 -1
- package/AdMob/types.js +0 -4
- package/AdMob/types.js.map +0 -1
- package/AppReview/index.d.ts +0 -7
- package/AppReview/index.d.ts.map +0 -1
- package/AppReview/index.js.map +0 -1
- package/AppReview/types.d.ts +0 -8
- package/AppReview/types.d.ts.map +0 -1
- package/AppReview/types.js +0 -4
- package/AppReview/types.js.map +0 -1
- package/AppsFlyer/index.d.ts +0 -15
- package/AppsFlyer/index.d.ts.map +0 -1
- package/AppsFlyer/index.js.map +0 -1
- package/AppsFlyer/types.d.ts +0 -10
- package/AppsFlyer/types.d.ts.map +0 -1
- package/AppsFlyer/types.js +0 -3
- package/AppsFlyer/types.js.map +0 -1
- package/BackgroundLocation/index.d.ts +0 -12
- package/BackgroundLocation/index.d.ts.map +0 -1
- package/BackgroundLocation/index.js.map +0 -1
- package/BackgroundLocation/types.d.ts +0 -32
- package/BackgroundLocation/types.d.ts.map +0 -1
- package/BackgroundLocation/types.js +0 -3
- package/BackgroundLocation/types.js.map +0 -1
- package/Beacon/index.d.ts +0 -7
- package/Beacon/index.d.ts.map +0 -1
- package/Beacon/index.js.map +0 -1
- package/Beacon/types.d.ts +0 -19
- package/Beacon/types.d.ts.map +0 -1
- package/Beacon/types.js +0 -3
- package/Beacon/types.js.map +0 -1
- package/Biometric/index.d.ts +0 -27
- package/Biometric/index.d.ts.map +0 -1
- package/Biometric/index.js.map +0 -1
- package/Biometric/types.d.ts +0 -24
- package/Biometric/types.d.ts.map +0 -1
- package/Biometric/types.js +0 -3
- package/Biometric/types.js.map +0 -1
- package/Bluetooth/index.d.ts +0 -17
- package/Bluetooth/index.d.ts.map +0 -1
- package/Bluetooth/index.js.map +0 -1
- package/Bluetooth/types.d.ts +0 -34
- package/Bluetooth/types.d.ts.map +0 -1
- package/Bluetooth/types.js +0 -3
- package/Bluetooth/types.js.map +0 -1
- package/BottomNavigation/index.d.ts +0 -11
- package/BottomNavigation/index.d.ts.map +0 -1
- package/BottomNavigation/index.js.map +0 -1
- package/BottomNavigation/types.d.ts +0 -9
- package/BottomNavigation/types.d.ts.map +0 -1
- package/BottomNavigation/types.js +0 -3
- package/BottomNavigation/types.js.map +0 -1
- package/Clipboard/index.d.ts +0 -12
- package/Clipboard/index.d.ts.map +0 -1
- package/Clipboard/index.js.map +0 -1
- package/Clipboard/types.d.ts +0 -20
- package/Clipboard/types.d.ts.map +0 -1
- package/Clipboard/types.js +0 -4
- package/Clipboard/types.js.map +0 -1
- package/Facebook/events.d.ts +0 -13
- package/Facebook/events.d.ts.map +0 -1
- package/Facebook/events.js.map +0 -1
- package/Facebook/index.d.ts +0 -3
- package/Facebook/index.d.ts.map +0 -1
- package/Facebook/index.js.map +0 -1
- package/Facebook/types.d.ts +0 -22
- package/Facebook/types.d.ts.map +0 -1
- package/Facebook/types.js +0 -3
- package/Facebook/types.js.map +0 -1
- package/Firebase/Analytics/index.d.ts +0 -32
- package/Firebase/Analytics/index.d.ts.map +0 -1
- package/Firebase/Analytics/index.js.map +0 -1
- package/Firebase/Messaging/index.d.ts +0 -17
- package/Firebase/Messaging/index.d.ts.map +0 -1
- package/Firebase/Messaging/index.js.map +0 -1
- package/Firebase/index.d.ts +0 -4
- package/Firebase/index.d.ts.map +0 -1
- package/Firebase/index.js.map +0 -1
- package/Firebase/types.d.ts +0 -58
- package/Firebase/types.d.ts.map +0 -1
- package/Firebase/types.js +0 -4
- package/Firebase/types.js.map +0 -1
- package/FirebaseAnalytics/index.d.ts +0 -3
- package/FirebaseAnalytics/index.d.ts.map +0 -1
- package/FirebaseAnalytics/index.js.map +0 -1
- package/Haptics/index.d.ts +0 -7
- package/Haptics/index.d.ts.map +0 -1
- package/Haptics/index.js.map +0 -1
- package/Haptics/types.d.ts +0 -8
- package/Haptics/types.d.ts.map +0 -1
- package/Haptics/types.js +0 -3
- package/Haptics/types.js.map +0 -1
- package/InAppPurchase/index.d.ts +0 -23
- package/InAppPurchase/index.d.ts.map +0 -1
- package/InAppPurchase/index.js.map +0 -1
- package/InAppPurchase/types.d.ts +0 -34
- package/InAppPurchase/types.d.ts.map +0 -1
- package/InAppPurchase/types.js +0 -3
- package/InAppPurchase/types.js.map +0 -1
- package/InAppUpdate/index.d.ts +0 -12
- package/InAppUpdate/index.d.ts.map +0 -1
- package/InAppUpdate/index.js.map +0 -1
- package/InAppUpdate/types.d.ts +0 -15
- package/InAppUpdate/types.d.ts.map +0 -1
- package/InAppUpdate/types.js +0 -3
- package/InAppUpdate/types.js.map +0 -1
- package/MediaPlayer/index.d.ts +0 -17
- package/MediaPlayer/index.d.ts.map +0 -1
- package/MediaPlayer/index.js.map +0 -1
- package/MediaPlayer/types.d.ts +0 -14
- package/MediaPlayer/types.d.ts.map +0 -1
- package/MediaPlayer/types.js +0 -3
- package/MediaPlayer/types.js.map +0 -1
- package/NativeContacts/index.d.ts +0 -12
- package/NativeContacts/index.d.ts.map +0 -1
- package/NativeContacts/index.js.map +0 -1
- package/NativeContacts/types.d.ts +0 -14
- package/NativeContacts/types.d.ts.map +0 -1
- package/NativeContacts/types.js +0 -3
- package/NativeContacts/types.js.map +0 -1
- package/Notification/index.d.ts +0 -11
- package/Notification/index.d.ts.map +0 -1
- package/Notification/index.js.map +0 -1
- package/Notification/types.d.ts +0 -14
- package/Notification/types.d.ts.map +0 -1
- package/Notification/types.js +0 -3
- package/Notification/types.js.map +0 -1
- package/OneSignal/index.d.ts +0 -18
- package/OneSignal/index.d.ts.map +0 -1
- package/OneSignal/index.js.map +0 -1
- package/OneSignal/types.d.ts +0 -41
- package/OneSignal/types.d.ts.map +0 -1
- package/OneSignal/types.js +0 -4
- package/OneSignal/types.js.map +0 -1
- package/Printing/index.d.ts +0 -7
- package/Printing/index.d.ts.map +0 -1
- package/Printing/index.js.map +0 -1
- package/Printing/types.d.ts +0 -9
- package/Printing/types.d.ts.map +0 -1
- package/Printing/types.js +0 -3
- package/Printing/types.js.map +0 -1
- package/Screen/index.d.ts +0 -9
- package/Screen/index.d.ts.map +0 -1
- package/Screen/index.js.map +0 -1
- package/Screen/types.d.ts +0 -6
- package/Screen/types.d.ts.map +0 -1
- package/Screen/types.js +0 -4
- package/Screen/types.js.map +0 -1
- package/Siri/index.d.ts +0 -7
- package/Siri/index.d.ts.map +0 -1
- package/Siri/index.js.map +0 -1
- package/Siri/types.d.ts +0 -14
- package/Siri/types.d.ts.map +0 -1
- package/Siri/types.js +0 -3
- package/Siri/types.js.map +0 -1
- package/SocialLogin/apple.d.ts +0 -12
- package/SocialLogin/apple.d.ts.map +0 -1
- package/SocialLogin/apple.js.map +0 -1
- package/SocialLogin/facebook.d.ts +0 -22
- package/SocialLogin/facebook.d.ts.map +0 -1
- package/SocialLogin/facebook.js.map +0 -1
- package/SocialLogin/google.d.ts +0 -22
- package/SocialLogin/google.d.ts.map +0 -1
- package/SocialLogin/google.js.map +0 -1
- package/SocialLogin/index.d.ts +0 -17
- package/SocialLogin/index.d.ts.map +0 -1
- package/SocialLogin/index.js.map +0 -1
- package/SocialLogin/types.d.ts +0 -39
- package/SocialLogin/types.d.ts.map +0 -1
- package/SocialLogin/types.js +0 -3
- package/SocialLogin/types.js.map +0 -1
- package/Stripe/index.d.ts +0 -3
- package/Stripe/index.d.ts.map +0 -1
- package/Stripe/index.js.map +0 -1
- package/Stripe/types.d.ts +0 -32
- package/Stripe/types.d.ts.map +0 -1
- package/Stripe/types.js +0 -3
- package/Stripe/types.js.map +0 -1
- package/VoiceSearch/index.d.ts +0 -13
- package/VoiceSearch/index.d.ts.map +0 -1
- package/VoiceSearch/index.js.map +0 -1
- package/VoiceSearch/types.d.ts +0 -10
- package/VoiceSearch/types.d.ts.map +0 -1
- package/VoiceSearch/types.js +0 -3
- package/VoiceSearch/types.js.map +0 -1
- package/barcode/barcode-scan.d.ts +0 -16
- package/barcode/barcode-scan.d.ts.map +0 -1
- package/barcode/barcode-scan.js.map +0 -1
- package/barcode/barcode-types.d.ts +0 -18
- package/barcode/barcode-types.d.ts.map +0 -1
- package/barcode/barcode-types.js +0 -3
- package/barcode/barcode-types.js.map +0 -1
- package/barcode/formats.d.ts +0 -18
- package/barcode/formats.d.ts.map +0 -1
- package/barcode/formats.js.map +0 -1
- package/barcode/index.d.ts +0 -5
- package/barcode/index.d.ts.map +0 -1
- package/barcode/index.js.map +0 -1
- package/barcode/types.d.ts +0 -17
- package/barcode/types.d.ts.map +0 -1
- package/barcode/types.js.map +0 -1
- package/index.d.ts +0 -156
- package/index.d.ts.map +0 -1
- package/index.js.map +0 -1
- package/types/index.d.ts +0 -50
- package/types/index.d.ts.map +0 -1
- package/types/index.js +0 -4
- package/types/index.js.map +0 -1
- package/utills.d.ts +0 -12
- package/utills.d.ts.map +0 -1
- package/utills.js.map +0 -1
package/Stripe/index.js
CHANGED
|
@@ -1,49 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.makeTapToPay = void 0;
|
|
15
|
-
var utills_1 = require("../utills");
|
|
16
|
-
var makeTapToPay = function (options) {
|
|
17
|
-
if (["ANDROID_APP", "IOS_APP"].includes(utills_1.platform)) {
|
|
18
|
-
var callback_1 = options.callback, _a = options.apiUrl, apiUrl = _a === void 0 ? null : _a, amount = options.amount, currency = options.currency, _b = options.isSimulated, isSimulated = _b === void 0 ? false : _b, _c = options.captureMethod, captureMethod = _c === void 0 ? "automatic" : _c, connectionToken = options.connectionToken, stripeLocationId = options.stripeLocationId, _d = options.clientSecret, clientSecret = _d === void 0 ? null : _d;
|
|
19
|
-
(0, utills_1.registerCb)(function (response) {
|
|
20
|
-
var type = response.type;
|
|
21
|
-
if (type === "makeTapToPayStripePayment") {
|
|
22
|
-
callback_1 && callback_1(response);
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
var paymentData = {
|
|
26
|
-
secretToken: connectionToken,
|
|
27
|
-
amount: amount,
|
|
28
|
-
currency: currency,
|
|
29
|
-
isSimulated: isSimulated,
|
|
30
|
-
captureMethod: captureMethod,
|
|
31
|
-
locationId: stripeLocationId
|
|
32
|
-
};
|
|
33
|
-
if (apiUrl) {
|
|
34
|
-
paymentData.apiUrl = apiUrl;
|
|
35
|
-
}
|
|
36
|
-
if (clientSecret) {
|
|
37
|
-
paymentData.client_secret = clientSecret;
|
|
38
|
-
}
|
|
39
|
-
if (utills_1.platform === "ANDROID_APP") {
|
|
40
|
-
utills_1.webToNative.makeTapToPayStripePayment(JSON.stringify(paymentData));
|
|
41
|
-
}
|
|
42
|
-
if (utills_1.platform === "IOS_APP" && utills_1.webToNativeIos) {
|
|
43
|
-
var iosMessage = __assign({ "action": "makeTapToPayStripePayment" }, paymentData);
|
|
44
|
-
utills_1.webToNativeIos.postMessage(iosMessage);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
exports.makeTapToPay = makeTapToPay;
|
|
49
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
"use strict";var _utills=require("../utills");Object.defineProperty(exports,"__esModule",{value:!0}),exports.makeTapToPay=void 0;function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){_defineProperty(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}var makeTapToPay=function(a){if(["ANDROID_APP","IOS_APP"].includes(_utills.platform)){var b=a.callback,c=a.apiUrl,d=void 0===c?null:c,e=a.amount,f=a.currency,g=a.isSimulated,h=a.captureMethod,i=void 0===h?"automatic":h,j=a.connectionToken,k=a.stripeLocationId,l=a.clientSecret,m=void 0===l?null:l;(0,_utills.registerCb)(function(a){var c=a.type;"makeTapToPayStripePayment"===c&&b&&b(a)});var n={secretToken:j,amount:e,currency:f,isSimulated:void 0!==g&&g,captureMethod:i,locationId:k};d&&(n.apiUrl=d),m&&(n.client_secret=m),"ANDROID_APP"===_utills.platform&&_utills.webToNative.makeTapToPayStripePayment(JSON.stringify(n)),"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage(_objectSpread({action:"makeTapToPayStripePayment"},n))}};exports.makeTapToPay=makeTapToPay;
|
package/VoiceSearch/index.js
CHANGED
|
@@ -1,34 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var _this = this;
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
var utills_1 = require("../utills");
|
|
5
|
-
var voiceSearchCb = null;
|
|
6
|
-
/**
|
|
7
|
-
* This function opens native voice search
|
|
8
|
-
* @param options Configuration options for voice search
|
|
9
|
-
* @example wtn.openVoiceSearch({
|
|
10
|
-
* onVoiceSearch:(value)=>{
|
|
11
|
-
* console.log(value);
|
|
12
|
-
* }
|
|
13
|
-
* });
|
|
14
|
-
*/
|
|
15
|
-
var openVoiceSearch = function (options) {
|
|
16
|
-
if (options === void 0) { options = {}; }
|
|
17
|
-
var onVoiceSearch = options.onVoiceSearch;
|
|
18
|
-
(0, utills_1.registerCb)(function (response) {
|
|
19
|
-
var _a = response, type = _a.type, results = _a.results;
|
|
20
|
-
if (type === "VOICE_SEARCH_RESULT") {
|
|
21
|
-
voiceSearchCb && voiceSearchCb(results);
|
|
22
|
-
voiceSearchCb = null;
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
if (utills_1.isNativeApp) {
|
|
26
|
-
utills_1.webToNative.openVoiceSearch();
|
|
27
|
-
}
|
|
28
|
-
if (typeof onVoiceSearch === "function") {
|
|
29
|
-
voiceSearchCb = onVoiceSearch;
|
|
30
|
-
}
|
|
31
|
-
return _this;
|
|
32
|
-
};
|
|
33
|
-
exports.default = openVoiceSearch;
|
|
34
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=void 0;var _utills=require("../utills"),_this=void 0,voiceSearchCb=null,_default=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=a.onVoiceSearch;return(0,_utills.registerCb)(function(a){var b=a.type,c=a.results;"VOICE_SEARCH_RESULT"===b&&(voiceSearchCb&&voiceSearchCb(c),voiceSearchCb=null)}),_utills.isNativeApp&&_utills.webToNative.openVoiceSearch(),"function"==typeof b&&(voiceSearchCb=b),_this};exports["default"]=_default;
|
package/barcode/barcode-scan.js
CHANGED
|
@@ -1,40 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
var utills_1 = require("../utills");
|
|
7
|
-
var formats_1 = __importDefault(require("./formats"));
|
|
8
|
-
/**
|
|
9
|
-
* This function opens native barcode scanner from Android/Ios app.
|
|
10
|
-
* @param {object} options
|
|
11
|
-
* @example wtn.onScanner({
|
|
12
|
-
* onBarcodeSearch:(value)=>{
|
|
13
|
-
* console.log(value);
|
|
14
|
-
* }
|
|
15
|
-
* });
|
|
16
|
-
*/
|
|
17
|
-
var BarcodeScan = function (options) {
|
|
18
|
-
if (["ANDROID_APP", "IOS_APP"].includes(utills_1.platform)) {
|
|
19
|
-
var onBarcodeSearch_1 = options.onBarcodeSearch, format = options.format;
|
|
20
|
-
(0, utills_1.registerCb)(function (response) {
|
|
21
|
-
var type = response.type, value = response.value;
|
|
22
|
-
if (type === "BARCODE_SCAN") {
|
|
23
|
-
onBarcodeSearch_1 && onBarcodeSearch_1(value);
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
if (utills_1.platform === "ANDROID_APP" && utills_1.webToNative.startScanner) {
|
|
27
|
-
utills_1.webToNative.startScanner(JSON.stringify({
|
|
28
|
-
formats: format ? [format] : [],
|
|
29
|
-
}));
|
|
30
|
-
}
|
|
31
|
-
if (utills_1.platform === "IOS_APP" && utills_1.webToNativeIos) {
|
|
32
|
-
utills_1.webToNativeIos.postMessage({
|
|
33
|
-
action: "barcodeScan",
|
|
34
|
-
barcodeFormat: format ? String(format) : String(formats_1.default.ALL_FORMATS),
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
exports.default = BarcodeScan;
|
|
40
|
-
//# sourceMappingURL=barcode-scan.js.map
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=void 0;var _utills=require("../utills"),_formats=_interopRequireDefault(require("./formats"));function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}var successCb=null,_default=function(a){if(["ANDROID_APP","IOS_APP"].includes(_utills.platform)){var b=a.onBarcodeSearch,c=a.format;(0,_utills.registerCb)(function(a){var c=a.type,d=a.value;"BARCODE_SCAN"===c&&b&&b(d)}),"ANDROID_APP"===_utills.platform&&_utills.webToNative.startScanner(JSON.stringify({formats:c?[c]:[]})),"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"barcodeScan",barcodeFormat:c?c+"":_formats["default"].ALL_FORMATS+""})}};exports["default"]=_default;
|
package/barcode/formats.js
CHANGED
|
@@ -1,23 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BarcodeFormat = void 0;
|
|
4
|
-
// Barcode formats
|
|
5
|
-
var BarcodeFormat;
|
|
6
|
-
(function (BarcodeFormat) {
|
|
7
|
-
BarcodeFormat[BarcodeFormat["ALL_FORMATS"] = 0] = "ALL_FORMATS";
|
|
8
|
-
BarcodeFormat[BarcodeFormat["CODE_128"] = 1] = "CODE_128";
|
|
9
|
-
BarcodeFormat[BarcodeFormat["CODE_39"] = 2] = "CODE_39";
|
|
10
|
-
BarcodeFormat[BarcodeFormat["CODE_93"] = 4] = "CODE_93";
|
|
11
|
-
BarcodeFormat[BarcodeFormat["CODABAR"] = 8] = "CODABAR";
|
|
12
|
-
BarcodeFormat[BarcodeFormat["DATA_MATRIX"] = 16] = "DATA_MATRIX";
|
|
13
|
-
BarcodeFormat[BarcodeFormat["EAN_13"] = 32] = "EAN_13";
|
|
14
|
-
BarcodeFormat[BarcodeFormat["EAN_8"] = 64] = "EAN_8";
|
|
15
|
-
BarcodeFormat[BarcodeFormat["ITF"] = 128] = "ITF";
|
|
16
|
-
BarcodeFormat[BarcodeFormat["QR_CODE"] = 256] = "QR_CODE";
|
|
17
|
-
BarcodeFormat[BarcodeFormat["UPC_A"] = 512] = "UPC_A";
|
|
18
|
-
BarcodeFormat[BarcodeFormat["UPC_E"] = 1024] = "UPC_E";
|
|
19
|
-
BarcodeFormat[BarcodeFormat["PDF417"] = 2048] = "PDF417";
|
|
20
|
-
BarcodeFormat[BarcodeFormat["AZTEC"] = 4096] = "AZTEC";
|
|
21
|
-
})(BarcodeFormat = exports.BarcodeFormat || (exports.BarcodeFormat = {}));
|
|
22
|
-
exports.default = BarcodeFormat;
|
|
23
|
-
//# sourceMappingURL=formats.js.map
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=void 0;var _default={UNKNOWN:-1,ALL_FORMATS:0,CODE_128:1,CODE_39:2,CODE_93:4,CODABAR:8,DATA_MATRIX:16,EAN_13:32,EAN_8:64,ITF:128,QR_CODE:256,UPC_A:512,UPC_E:1024,PDF417:2048,AZTEC:4096};exports["default"]=_default;
|
package/barcode/index.js
CHANGED
|
@@ -1,13 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.BarcodeScan = exports.Types = exports.Format = void 0;
|
|
7
|
-
var formats_1 = __importDefault(require("./formats"));
|
|
8
|
-
exports.Format = formats_1.default;
|
|
9
|
-
var types_1 = __importDefault(require("./types"));
|
|
10
|
-
exports.Types = types_1.default;
|
|
11
|
-
var barcode_scan_1 = __importDefault(require("./barcode-scan"));
|
|
12
|
-
exports.BarcodeScan = barcode_scan_1.default;
|
|
13
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"BarcodeScan",{enumerable:!0,get:function get(){return _barcodeScan["default"]}}),Object.defineProperty(exports,"Format",{enumerable:!0,get:function get(){return _formats["default"]}}),Object.defineProperty(exports,"Types",{enumerable:!0,get:function get(){return _types["default"]}});var _formats=_interopRequireDefault(require("./formats")),_types=_interopRequireDefault(require("./types")),_barcodeScan=_interopRequireDefault(require("./barcode-scan"));function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}
|
package/barcode/types.js
CHANGED
|
@@ -1,22 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BarcodeType = void 0;
|
|
4
|
-
// Barcode types
|
|
5
|
-
var BarcodeType;
|
|
6
|
-
(function (BarcodeType) {
|
|
7
|
-
BarcodeType["QR_CODE"] = "QR_CODE";
|
|
8
|
-
BarcodeType["DATA_MATRIX"] = "DATA_MATRIX";
|
|
9
|
-
BarcodeType["UPC_E"] = "UPC_E";
|
|
10
|
-
BarcodeType["UPC_A"] = "UPC_A";
|
|
11
|
-
BarcodeType["EAN_8"] = "EAN_8";
|
|
12
|
-
BarcodeType["EAN_13"] = "EAN_13";
|
|
13
|
-
BarcodeType["CODE_128"] = "CODE_128";
|
|
14
|
-
BarcodeType["CODE_39"] = "CODE_39";
|
|
15
|
-
BarcodeType["CODE_93"] = "CODE_93";
|
|
16
|
-
BarcodeType["CODABAR"] = "CODABAR";
|
|
17
|
-
BarcodeType["ITF"] = "ITF";
|
|
18
|
-
BarcodeType["AZTEC"] = "AZTEC";
|
|
19
|
-
BarcodeType["PDF_417"] = "PDF_417";
|
|
20
|
-
})(BarcodeType = exports.BarcodeType || (exports.BarcodeType = {}));
|
|
21
|
-
exports.default = BarcodeType;
|
|
22
|
-
//# sourceMappingURL=types.js.map
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=void 0;var _default={UNKNOWN:0,CONTACT_INFO:1,EMAIL:2,ISBN:3,PHONE:4,PRODUCT:5,SMS:6,TEXT:7,URL:8,WIFI:9,GEO:10,CALENDAR_EVENT:11,DRIVER_LICENSE:12};exports["default"]=_default;
|