@regulaforensics/document-reader 9.5.832-rc → 9.5.879-rc
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/RNDocumentReader.podspec +2 -2
- package/android/build.gradle +1 -1
- package/android/cordova.gradle +1 -1
- package/app.plugin.js +42 -0
- package/examples/capacitor/ios/App/Podfile +2 -1
- package/examples/capacitor/package-lock.json +224 -218
- package/examples/capacitor/package.json +6 -3
- package/examples/capacitor/scripts/android.sh +1 -1
- package/examples/ionic/package-lock.json +1908 -2031
- package/examples/ionic/package.json +17 -14
- package/examples/ionic/scripts/android.sh +1 -1
- package/examples/react_native/app.config.ts +1 -0
- package/examples/react_native/package-lock.json +225 -180
- package/examples/react_native/package.json +5 -4
- package/examples/react_native/scripts/android.sh +1 -1
- package/ios/RGLWConfig.m +3 -0
- package/package.json +4 -1
- package/plugin.xml +3 -3
- package/test/json.tsx +1 -0
- package/test/package-lock.json +5 -2
- package/www/capacitor/index.js +2 -2
- package/www/capacitor/params/customization/Customization.js +13 -0
- package/www/capacitor/results/visual_results/FieldType.js +1 -0
- package/www/capacitor/rfid/RFIDErrorCodes.js +1 -1
- package/www/cordova.js +43 -12
- package/www/react-native/index.js +2 -2
- package/www/react-native/params/customization/Customization.js +13 -0
- package/www/react-native/results/visual_results/FieldType.js +1 -0
- package/www/react-native/rfid/RFIDErrorCodes.js +1 -1
- package/www/types/index.d.ts +2 -2
- package/www/types/params/customization/Customization.d.ts +19 -7
- package/www/types/results/visual_results/FieldType.d.ts +1 -0
- package/www/types/rfid/RFIDErrorCodes.d.ts +1 -1
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
"start": "expo start"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@regulaforensics/document-reader": "9.5.
|
|
12
|
-
"@regulaforensics/document-reader-core-fullauthrfid": "9.
|
|
13
|
-
"@regulaforensics/document-reader-btdevice": "9.
|
|
11
|
+
"@regulaforensics/document-reader": "9.5.879-rc",
|
|
12
|
+
"@regulaforensics/document-reader-core-fullauthrfid": "9.6.2444",
|
|
13
|
+
"@regulaforensics/document-reader-btdevice": "9.6.55",
|
|
14
14
|
"react-native": "^0.81.4",
|
|
15
15
|
"react-native-fs": "^2.20.0",
|
|
16
16
|
"react-native-image-picker": "^8.2.1",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"overrides": {
|
|
28
28
|
"postcss": "^8.5.10",
|
|
29
|
-
"uuid": "^14.0.0"
|
|
29
|
+
"uuid": "^14.0.0",
|
|
30
|
+
"js-yaml": "^4.1.1"
|
|
30
31
|
}
|
|
31
32
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
adb reverse tcp:8081 tcp:8081 >/dev/null || :
|
|
4
4
|
if [[ $npm_config_o || $npm_config_open ]]; then
|
|
5
|
-
|
|
5
|
+
open -a 'Android Studio' android
|
|
6
6
|
# check if metro is already running
|
|
7
7
|
if ! pgrep -f "expo start" >/dev/null; then
|
|
8
8
|
watchman shutdown-server # fix potential errors
|
package/ios/RGLWConfig.m
CHANGED
|
@@ -388,6 +388,8 @@
|
|
|
388
388
|
}
|
|
389
389
|
|
|
390
390
|
+(void)setCustomization:(NSDictionary*)options :(RGLCustomization*)customization {
|
|
391
|
+
if(options[@"theme"]) customization.theme = [options[@"theme"] integerValue];
|
|
392
|
+
|
|
391
393
|
// Boolean
|
|
392
394
|
if([options valueForKey:@"showStatusMessages"] != nil)
|
|
393
395
|
customization.showStatusMessages = [[options valueForKey:@"showStatusMessages"] boolValue];
|
|
@@ -533,6 +535,7 @@
|
|
|
533
535
|
|
|
534
536
|
+(NSDictionary*)getCustomization:(RGLCustomization*)customization {
|
|
535
537
|
NSMutableDictionary *result = [NSMutableDictionary new];
|
|
538
|
+
result[@"theme"] = [NSNumber numberWithInteger:customization.theme];
|
|
536
539
|
|
|
537
540
|
// Boolean
|
|
538
541
|
result[@"showStatusMessages"] = [NSNumber numberWithBool:customization.showStatusMessages];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/document-reader",
|
|
3
|
-
"version": "9.5.
|
|
3
|
+
"version": "9.5.879-rc",
|
|
4
4
|
"description": "This is an npm module for Regula Document Reader SDK. It allows you to read various kinds of identification documents using your phone's camera.",
|
|
5
5
|
"main": "www/react-native/index.js",
|
|
6
6
|
"module": "www/capacitor/index.js",
|
|
@@ -12,6 +12,9 @@
|
|
|
12
12
|
"android"
|
|
13
13
|
]
|
|
14
14
|
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@expo/config-plugins": "^10.0.0"
|
|
17
|
+
},
|
|
15
18
|
"keywords": [
|
|
16
19
|
"react",
|
|
17
20
|
"react-native",
|
package/plugin.xml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version='1.0' encoding='utf-8'?>
|
|
2
|
-
<plugin id="@regulaforensics/document-reader" version="9.5.
|
|
2
|
+
<plugin id="@regulaforensics/document-reader" version="9.5.879-rc" xmlns="http://apache.org/cordova/ns/plugins/1.0">
|
|
3
3
|
<name>DocumentReader</name>
|
|
4
4
|
<description>Cordova plugin for Regula Document Reader SDK</description>
|
|
5
5
|
<license>commercial</license>
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
<source-file src="ios/RGLWConfig.m" />
|
|
27
27
|
<podspec>
|
|
28
28
|
<config>
|
|
29
|
-
<source url="https://github.com/
|
|
29
|
+
<source url="https://github.com/regulaforensics/podspecs.git" />
|
|
30
30
|
</config>
|
|
31
31
|
<pods>
|
|
32
|
-
<pod name="DocumentReaderStage" spec="9.6.
|
|
32
|
+
<pod name="DocumentReaderStage" spec="9.6.6622" />
|
|
33
33
|
</pods>
|
|
34
34
|
</podspec>
|
|
35
35
|
</platform>
|
package/test/json.tsx
CHANGED
|
@@ -242,6 +242,7 @@ export var customizationMatrices = {
|
|
|
242
242
|
"nextPageIdCardBack": [2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9],
|
|
243
243
|
};
|
|
244
244
|
export var customization = {
|
|
245
|
+
"theme": 1,
|
|
245
246
|
"showStatusMessages": true,
|
|
246
247
|
"showResultStatusMessages": false,
|
|
247
248
|
"showHelpAnimation": true,
|
package/test/package-lock.json
CHANGED
|
@@ -13,9 +13,12 @@
|
|
|
13
13
|
},
|
|
14
14
|
"..": {
|
|
15
15
|
"name": "@regulaforensics/document-reader",
|
|
16
|
-
"version": "9.5.
|
|
16
|
+
"version": "9.5.879-rc",
|
|
17
17
|
"dev": true,
|
|
18
|
-
"license": "commercial"
|
|
18
|
+
"license": "commercial",
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"@expo/config-plugins": "^10.0.0"
|
|
21
|
+
}
|
|
19
22
|
},
|
|
20
23
|
"node_modules/@esbuild/aix-ppc64": {
|
|
21
24
|
"version": "0.25.9",
|
package/www/capacitor/index.js
CHANGED
|
@@ -119,8 +119,8 @@ import { CustomizationImages } from './params/customization/CustomizationImages'
|
|
|
119
119
|
import { CustomizationTimings } from './params/customization/CustomizationTimings';
|
|
120
120
|
import { CustomizationMatrices } from './params/customization/CustomizationMatrices';
|
|
121
121
|
import { CustomizationContentModes, ViewContentMode } from './params/customization/CustomizationContentModes';
|
|
122
|
-
import { Customization, Cap, FrameShapeType, CustomButtonTag } from './params/customization/Customization';
|
|
123
|
-
export { CustomizationFonts, CustomizationImages, CustomizationTimings, CustomizationMatrices, CustomizationContentModes, Font, FontStyle, Customization, Cap, FrameShapeType, ViewContentMode, CustomButtonTag, CustomizationColors };
|
|
122
|
+
import { Customization, Cap, FrameShapeType, CustomButtonTag, CustomizationTheme } from './params/customization/Customization';
|
|
123
|
+
export { CustomizationFonts, CustomizationImages, CustomizationTimings, CustomizationMatrices, CustomizationContentModes, Font, FontStyle, Customization, Cap, FrameShapeType, ViewContentMode, CustomButtonTag, CustomizationColors, CustomizationTheme };
|
|
124
124
|
|
|
125
125
|
import { EPassportDataGroups } from './params/rfid_scenario/EPassportDataGroups';
|
|
126
126
|
import { EIDDataGroups } from './params/rfid_scenario/EIDDataGroups';
|
|
@@ -8,6 +8,12 @@ import { CustomizationContentModes, ViewContentMode } from './CustomizationConte
|
|
|
8
8
|
import { CustomizationMatrices } from './CustomizationMatrices';
|
|
9
9
|
|
|
10
10
|
export class Customization {
|
|
11
|
+
get theme() { return this._theme; }
|
|
12
|
+
set theme(val) {
|
|
13
|
+
this._theme = val;
|
|
14
|
+
this._set({ "theme": val });
|
|
15
|
+
}
|
|
16
|
+
|
|
11
17
|
get showStatusMessages() { return this._showStatusMessages; }
|
|
12
18
|
set showStatusMessages(val) {
|
|
13
19
|
this._showStatusMessages = val;
|
|
@@ -463,6 +469,7 @@ export class Customization {
|
|
|
463
469
|
|
|
464
470
|
const result = new Customization();
|
|
465
471
|
|
|
472
|
+
result._theme = jsonObject["theme"];
|
|
466
473
|
result._showStatusMessages = jsonObject["showStatusMessages"];
|
|
467
474
|
result._showResultStatusMessages = jsonObject["showResultStatusMessages"];
|
|
468
475
|
result._showHelpAnimation = jsonObject["showHelpAnimation"];
|
|
@@ -545,6 +552,7 @@ export class Customization {
|
|
|
545
552
|
|
|
546
553
|
toJson() {
|
|
547
554
|
return {
|
|
555
|
+
"theme": this.theme,
|
|
548
556
|
"showStatusMessages": this.showStatusMessages,
|
|
549
557
|
"showResultStatusMessages": this.showResultStatusMessages,
|
|
550
558
|
"showHelpAnimation": this.showHelpAnimation,
|
|
@@ -649,3 +657,8 @@ export const CustomButtonTag = {
|
|
|
649
657
|
SKIP: 1005,
|
|
650
658
|
CAMERA_SWITCH: 1006
|
|
651
659
|
};
|
|
660
|
+
|
|
661
|
+
export const CustomizationTheme = {
|
|
662
|
+
CLEAR: 0,
|
|
663
|
+
LIQUID_GLASS: 1
|
|
664
|
+
};
|
|
@@ -46,7 +46,7 @@ export const RFIDErrorCodes = {
|
|
|
46
46
|
LAYER6_GENERAL_AUTH_FAILURE: -2046819319,
|
|
47
47
|
LAYER6_FILE_NOT_FOUND: -2147456638,
|
|
48
48
|
LAYER6_FILE_EOF1: -2147458142,
|
|
49
|
-
|
|
49
|
+
LAYER6_WRONG_PARAMS: -2147456256,
|
|
50
50
|
LAYER6_INCORRECT_PARAMS: -2147456640,
|
|
51
51
|
LAYER6_NO_REFERENCE_DATA: -2147456632,
|
|
52
52
|
LAYER6_PWD_SUSPEND: -2147458143,
|
package/www/cordova.js
CHANGED
|
@@ -523,6 +523,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
523
523
|
/* harmony export */ CustomizationFonts: () => (/* reexport safe */ _params_customization_CustomizationFonts__WEBPACK_IMPORTED_MODULE_90__.CustomizationFonts),
|
|
524
524
|
/* harmony export */ CustomizationImages: () => (/* reexport safe */ _params_customization_CustomizationImages__WEBPACK_IMPORTED_MODULE_91__.CustomizationImages),
|
|
525
525
|
/* harmony export */ CustomizationMatrices: () => (/* reexport safe */ _params_customization_CustomizationMatrices__WEBPACK_IMPORTED_MODULE_93__.CustomizationMatrices),
|
|
526
|
+
/* harmony export */ CustomizationTheme: () => (/* reexport safe */ _params_customization_Customization__WEBPACK_IMPORTED_MODULE_95__.CustomizationTheme),
|
|
526
527
|
/* harmony export */ CustomizationTimings: () => (/* reexport safe */ _params_customization_CustomizationTimings__WEBPACK_IMPORTED_MODULE_92__.CustomizationTimings),
|
|
527
528
|
/* harmony export */ DTCDataGroup: () => (/* reexport safe */ _params_rfid_scenario_DTCDataGroup__WEBPACK_IMPORTED_MODULE_98__.DTCDataGroup),
|
|
528
529
|
/* harmony export */ DataField: () => (/* reexport safe */ _results_rfid_DataField__WEBPACK_IMPORTED_MODULE_60__.DataField),
|
|
@@ -2806,6 +2807,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2806
2807
|
/* harmony export */ Cap: () => (/* binding */ Cap),
|
|
2807
2808
|
/* harmony export */ CustomButtonTag: () => (/* binding */ CustomButtonTag),
|
|
2808
2809
|
/* harmony export */ Customization: () => (/* binding */ Customization),
|
|
2810
|
+
/* harmony export */ CustomizationTheme: () => (/* binding */ CustomizationTheme),
|
|
2809
2811
|
/* harmony export */ FrameShapeType: () => (/* binding */ FrameShapeType)
|
|
2810
2812
|
/* harmony export */ });
|
|
2811
2813
|
/* harmony import */ var _internal_bridge__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../internal/bridge */ "./src/internal/bridge.js");
|
|
@@ -2826,6 +2828,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2826
2828
|
|
|
2827
2829
|
|
|
2828
2830
|
class Customization {
|
|
2831
|
+
get theme() { return this._theme; }
|
|
2832
|
+
set theme(val) {
|
|
2833
|
+
this._theme = val;
|
|
2834
|
+
this._set({ "theme": val });
|
|
2835
|
+
}
|
|
2836
|
+
|
|
2829
2837
|
get showStatusMessages() { return this._showStatusMessages; }
|
|
2830
2838
|
set showStatusMessages(val) {
|
|
2831
2839
|
this._showStatusMessages = val;
|
|
@@ -3281,6 +3289,7 @@ class Customization {
|
|
|
3281
3289
|
|
|
3282
3290
|
const result = new Customization();
|
|
3283
3291
|
|
|
3292
|
+
result._theme = jsonObject["theme"];
|
|
3284
3293
|
result._showStatusMessages = jsonObject["showStatusMessages"];
|
|
3285
3294
|
result._showResultStatusMessages = jsonObject["showResultStatusMessages"];
|
|
3286
3295
|
result._showHelpAnimation = jsonObject["showHelpAnimation"];
|
|
@@ -3363,6 +3372,7 @@ class Customization {
|
|
|
3363
3372
|
|
|
3364
3373
|
toJson() {
|
|
3365
3374
|
return {
|
|
3375
|
+
"theme": this.theme,
|
|
3366
3376
|
"showStatusMessages": this.showStatusMessages,
|
|
3367
3377
|
"showResultStatusMessages": this.showResultStatusMessages,
|
|
3368
3378
|
"showHelpAnimation": this.showHelpAnimation,
|
|
@@ -3468,6 +3478,11 @@ const CustomButtonTag = {
|
|
|
3468
3478
|
CAMERA_SWITCH: 1006
|
|
3469
3479
|
};
|
|
3470
3480
|
|
|
3481
|
+
const CustomizationTheme = {
|
|
3482
|
+
CLEAR: 0,
|
|
3483
|
+
LIQUID_GLASS: 1
|
|
3484
|
+
};
|
|
3485
|
+
|
|
3471
3486
|
|
|
3472
3487
|
/***/ },
|
|
3473
3488
|
|
|
@@ -11310,6 +11325,7 @@ const FieldType = {
|
|
|
11310
11325
|
JURISDICTION_SPECIFIC_DATA: 703,
|
|
11311
11326
|
DATA_DATE_OF_EXPIRY: 704,
|
|
11312
11327
|
CONSUL: 705,
|
|
11328
|
+
CANTON_REFERENCE: 706,
|
|
11313
11329
|
}
|
|
11314
11330
|
|
|
11315
11331
|
FieldType.getTranslation = async function (value) {
|
|
@@ -12424,7 +12440,7 @@ const RFIDErrorCodes = {
|
|
|
12424
12440
|
LAYER6_GENERAL_AUTH_FAILURE: -2046819319,
|
|
12425
12441
|
LAYER6_FILE_NOT_FOUND: -2147456638,
|
|
12426
12442
|
LAYER6_FILE_EOF1: -2147458142,
|
|
12427
|
-
|
|
12443
|
+
LAYER6_WRONG_PARAMS: -2147456256,
|
|
12428
12444
|
LAYER6_INCORRECT_PARAMS: -2147456640,
|
|
12429
12445
|
LAYER6_NO_REFERENCE_DATA: -2147456632,
|
|
12430
12446
|
LAYER6_PWD_SUSPEND: -2147458143,
|
|
@@ -12688,17 +12704,17 @@ class TccParams {
|
|
|
12688
12704
|
/******/ });
|
|
12689
12705
|
/************************************************************************/
|
|
12690
12706
|
/******/ // The module cache
|
|
12691
|
-
/******/
|
|
12707
|
+
/******/ const __webpack_module_cache__ = {};
|
|
12692
12708
|
/******/
|
|
12693
12709
|
/******/ // The require function
|
|
12694
12710
|
/******/ function __webpack_require__(moduleId) {
|
|
12695
12711
|
/******/ // Check if module is in cache
|
|
12696
|
-
/******/
|
|
12712
|
+
/******/ const cachedModule = __webpack_module_cache__[moduleId];
|
|
12697
12713
|
/******/ if (cachedModule !== undefined) {
|
|
12698
12714
|
/******/ return cachedModule.exports;
|
|
12699
12715
|
/******/ }
|
|
12700
12716
|
/******/ // Create a new module (and put it into the cache)
|
|
12701
|
-
/******/
|
|
12717
|
+
/******/ const module = __webpack_module_cache__[moduleId] = {
|
|
12702
12718
|
/******/ // no module.id needed
|
|
12703
12719
|
/******/ // no module.loaded needed
|
|
12704
12720
|
/******/ exports: {}
|
|
@@ -12707,7 +12723,7 @@ class TccParams {
|
|
|
12707
12723
|
/******/ // Execute the module function
|
|
12708
12724
|
/******/ if (!(moduleId in __webpack_modules__)) {
|
|
12709
12725
|
/******/ delete __webpack_module_cache__[moduleId];
|
|
12710
|
-
/******/
|
|
12726
|
+
/******/ const e = new Error("Cannot find module '" + moduleId + "'");
|
|
12711
12727
|
/******/ e.code = 'MODULE_NOT_FOUND';
|
|
12712
12728
|
/******/ throw e;
|
|
12713
12729
|
/******/ }
|
|
@@ -12720,11 +12736,26 @@ class TccParams {
|
|
|
12720
12736
|
/************************************************************************/
|
|
12721
12737
|
/******/ /* webpack/runtime/define property getters */
|
|
12722
12738
|
/******/ (() => {
|
|
12723
|
-
/******/ // define getter functions for harmony exports
|
|
12739
|
+
/******/ // define getter/value functions for harmony exports
|
|
12724
12740
|
/******/ __webpack_require__.d = (exports, definition) => {
|
|
12725
|
-
/******/
|
|
12726
|
-
/******/
|
|
12727
|
-
/******/
|
|
12741
|
+
/******/ if(Array.isArray(definition)) {
|
|
12742
|
+
/******/ var i = 0;
|
|
12743
|
+
/******/ while(i < definition.length) {
|
|
12744
|
+
/******/ var key = definition[i++];
|
|
12745
|
+
/******/ var binding = definition[i++];
|
|
12746
|
+
/******/ if(!__webpack_require__.o(exports, key)) {
|
|
12747
|
+
/******/ if(binding === 0) {
|
|
12748
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
|
|
12749
|
+
/******/ } else {
|
|
12750
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
|
|
12751
|
+
/******/ }
|
|
12752
|
+
/******/ } else if(binding === 0) { i++; }
|
|
12753
|
+
/******/ }
|
|
12754
|
+
/******/ } else {
|
|
12755
|
+
/******/ for(var key in definition) {
|
|
12756
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
12757
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
12758
|
+
/******/ }
|
|
12728
12759
|
/******/ }
|
|
12729
12760
|
/******/ }
|
|
12730
12761
|
/******/ };
|
|
@@ -12739,7 +12770,7 @@ class TccParams {
|
|
|
12739
12770
|
/******/ (() => {
|
|
12740
12771
|
/******/ // define __esModule on exports
|
|
12741
12772
|
/******/ __webpack_require__.r = (exports) => {
|
|
12742
|
-
/******/ if(
|
|
12773
|
+
/******/ if(Symbol.toStringTag) {
|
|
12743
12774
|
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
12744
12775
|
/******/ }
|
|
12745
12776
|
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -12751,8 +12782,8 @@ class TccParams {
|
|
|
12751
12782
|
/******/ // startup
|
|
12752
12783
|
/******/ // Load entry module and return exports
|
|
12753
12784
|
/******/ // This entry module is referenced by other modules so it can't be inlined
|
|
12754
|
-
/******/
|
|
12755
|
-
/******/
|
|
12785
|
+
/******/ let __webpack_exports__ = __webpack_require__("./src/index.js");
|
|
12786
|
+
/******/ const __webpack_export_target__ = exports;
|
|
12756
12787
|
/******/ for(var __webpack_i__ in __webpack_exports__) __webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
12757
12788
|
/******/ if(__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, "__esModule", { value: true });
|
|
12758
12789
|
/******/
|
|
@@ -119,8 +119,8 @@ import { CustomizationImages } from './params/customization/CustomizationImages'
|
|
|
119
119
|
import { CustomizationTimings } from './params/customization/CustomizationTimings';
|
|
120
120
|
import { CustomizationMatrices } from './params/customization/CustomizationMatrices';
|
|
121
121
|
import { CustomizationContentModes, ViewContentMode } from './params/customization/CustomizationContentModes';
|
|
122
|
-
import { Customization, Cap, FrameShapeType, CustomButtonTag } from './params/customization/Customization';
|
|
123
|
-
export { CustomizationFonts, CustomizationImages, CustomizationTimings, CustomizationMatrices, CustomizationContentModes, Font, FontStyle, Customization, Cap, FrameShapeType, ViewContentMode, CustomButtonTag, CustomizationColors };
|
|
122
|
+
import { Customization, Cap, FrameShapeType, CustomButtonTag, CustomizationTheme } from './params/customization/Customization';
|
|
123
|
+
export { CustomizationFonts, CustomizationImages, CustomizationTimings, CustomizationMatrices, CustomizationContentModes, Font, FontStyle, Customization, Cap, FrameShapeType, ViewContentMode, CustomButtonTag, CustomizationColors, CustomizationTheme };
|
|
124
124
|
|
|
125
125
|
import { EPassportDataGroups } from './params/rfid_scenario/EPassportDataGroups';
|
|
126
126
|
import { EIDDataGroups } from './params/rfid_scenario/EIDDataGroups';
|
|
@@ -8,6 +8,12 @@ import { CustomizationContentModes, ViewContentMode } from './CustomizationConte
|
|
|
8
8
|
import { CustomizationMatrices } from './CustomizationMatrices';
|
|
9
9
|
|
|
10
10
|
export class Customization {
|
|
11
|
+
get theme() { return this._theme; }
|
|
12
|
+
set theme(val) {
|
|
13
|
+
this._theme = val;
|
|
14
|
+
this._set({ "theme": val });
|
|
15
|
+
}
|
|
16
|
+
|
|
11
17
|
get showStatusMessages() { return this._showStatusMessages; }
|
|
12
18
|
set showStatusMessages(val) {
|
|
13
19
|
this._showStatusMessages = val;
|
|
@@ -463,6 +469,7 @@ export class Customization {
|
|
|
463
469
|
|
|
464
470
|
const result = new Customization();
|
|
465
471
|
|
|
472
|
+
result._theme = jsonObject["theme"];
|
|
466
473
|
result._showStatusMessages = jsonObject["showStatusMessages"];
|
|
467
474
|
result._showResultStatusMessages = jsonObject["showResultStatusMessages"];
|
|
468
475
|
result._showHelpAnimation = jsonObject["showHelpAnimation"];
|
|
@@ -545,6 +552,7 @@ export class Customization {
|
|
|
545
552
|
|
|
546
553
|
toJson() {
|
|
547
554
|
return {
|
|
555
|
+
"theme": this.theme,
|
|
548
556
|
"showStatusMessages": this.showStatusMessages,
|
|
549
557
|
"showResultStatusMessages": this.showResultStatusMessages,
|
|
550
558
|
"showHelpAnimation": this.showHelpAnimation,
|
|
@@ -649,3 +657,8 @@ export const CustomButtonTag = {
|
|
|
649
657
|
SKIP: 1005,
|
|
650
658
|
CAMERA_SWITCH: 1006
|
|
651
659
|
};
|
|
660
|
+
|
|
661
|
+
export const CustomizationTheme = {
|
|
662
|
+
CLEAR: 0,
|
|
663
|
+
LIQUID_GLASS: 1
|
|
664
|
+
};
|
|
@@ -46,7 +46,7 @@ export const RFIDErrorCodes = {
|
|
|
46
46
|
LAYER6_GENERAL_AUTH_FAILURE: -2046819319,
|
|
47
47
|
LAYER6_FILE_NOT_FOUND: -2147456638,
|
|
48
48
|
LAYER6_FILE_EOF1: -2147458142,
|
|
49
|
-
|
|
49
|
+
LAYER6_WRONG_PARAMS: -2147456256,
|
|
50
50
|
LAYER6_INCORRECT_PARAMS: -2147456640,
|
|
51
51
|
LAYER6_NO_REFERENCE_DATA: -2147456632,
|
|
52
52
|
LAYER6_PWD_SUSPEND: -2147458143,
|
package/www/types/index.d.ts
CHANGED
|
@@ -117,8 +117,8 @@ import { CustomizationImages } from './params/customization/CustomizationImages'
|
|
|
117
117
|
import { CustomizationTimings } from './params/customization/CustomizationTimings';
|
|
118
118
|
import { CustomizationMatrices } from './params/customization/CustomizationMatrices';
|
|
119
119
|
import { CustomizationContentModes, ViewContentMode } from './params/customization/CustomizationContentModes';
|
|
120
|
-
import { Customization, Cap, FrameShapeType, CustomButtonTag } from './params/customization/Customization';
|
|
121
|
-
export { CustomizationColors, CustomizationFonts, CustomizationImages, CustomizationTimings, CustomizationMatrices, CustomizationContentModes, Font, FontStyle, Customization, Cap, FrameShapeType, ViewContentMode, CustomButtonTag };
|
|
120
|
+
import { Customization, Cap, FrameShapeType, CustomButtonTag, CustomizationTheme } from './params/customization/Customization';
|
|
121
|
+
export { CustomizationColors, CustomizationFonts, CustomizationImages, CustomizationTimings, CustomizationMatrices, CustomizationContentModes, Font, FontStyle, Customization, Cap, FrameShapeType, ViewContentMode, CustomButtonTag, CustomizationTheme };
|
|
122
122
|
|
|
123
123
|
import { EPassportDataGroups } from './params/rfid_scenario/EPassportDataGroups';
|
|
124
124
|
import { EIDDataGroups } from './params/rfid_scenario/EIDDataGroups';
|
|
@@ -9,6 +9,15 @@ import { CustomizationMatrices } from "./CustomizationMatrices";
|
|
|
9
9
|
* Params that relate to the camera view controller customization and etc.
|
|
10
10
|
*/
|
|
11
11
|
export declare class Customization {
|
|
12
|
+
/**
|
|
13
|
+
* Allows you to set a visual theme for buttons controls.
|
|
14
|
+
*
|
|
15
|
+
* @default @default {@link CustomizationTheme.CLEAR}
|
|
16
|
+
*
|
|
17
|
+
* IOS only.
|
|
18
|
+
*/
|
|
19
|
+
theme?: CustomizationTheme;
|
|
20
|
+
|
|
12
21
|
/**
|
|
13
22
|
* If it's set to `true`, status messages during the document processing
|
|
14
23
|
* will be shown.
|
|
@@ -549,18 +558,14 @@ export declare enum Cap {
|
|
|
549
558
|
}
|
|
550
559
|
|
|
551
560
|
export declare enum FrameShapeType {
|
|
552
|
-
/**
|
|
553
|
-
* Camera frame is rectangle.
|
|
554
|
-
*/
|
|
561
|
+
/** Camera frame is rectangle. */
|
|
555
562
|
LINE = 0,
|
|
556
|
-
/**
|
|
557
|
-
* Camera frame only consists of corners of the rectangle.
|
|
558
|
-
*/
|
|
563
|
+
/** Camera frame only consists of corners of the rectangle. */
|
|
559
564
|
CORNER = 1,
|
|
560
565
|
}
|
|
561
566
|
|
|
562
567
|
/**
|
|
563
|
-
*
|
|
568
|
+
* Button tags for UI customization.
|
|
564
569
|
*/
|
|
565
570
|
export declare enum CustomButtonTag {
|
|
566
571
|
CLOSE = 1001,
|
|
@@ -570,3 +575,10 @@ export declare enum CustomButtonTag {
|
|
|
570
575
|
SKIP = 1005,
|
|
571
576
|
CAMERA_SWITCH = 1006,
|
|
572
577
|
}
|
|
578
|
+
|
|
579
|
+
export declare enum CustomizationTheme {
|
|
580
|
+
/** Increased opacity and more contrast. */
|
|
581
|
+
CLEAR = 0,
|
|
582
|
+
/** Transparent, revealing the content beneath. */
|
|
583
|
+
LIQUID_GLASS = 1,
|
|
584
|
+
}
|
|
@@ -44,7 +44,7 @@ export declare enum RFIDErrorCodes {
|
|
|
44
44
|
LAYER6_GENERAL_AUTH_FAILURE = -2046819319,
|
|
45
45
|
LAYER6_FILE_NOT_FOUND = -2147456638,
|
|
46
46
|
LAYER6_FILE_EOF1 = -2147458142,
|
|
47
|
-
|
|
47
|
+
LAYER6_WRONG_PARAMS = -2147456256,
|
|
48
48
|
LAYER6_INCORRECT_PARAMS = -2147456640,
|
|
49
49
|
LAYER6_NO_REFERENCE_DATA = -2147456632,
|
|
50
50
|
LAYER6_PWD_SUSPEND = -2147458143,
|