@regulaforensics/document-reader 9.6.845-nightly → 9.6.846-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.
@@ -8,9 +8,9 @@
8
8
  "start": "expo start"
9
9
  },
10
10
  "dependencies": {
11
- "@regulaforensics/document-reader": "9.6.845-nightly",
12
- "@regulaforensics/document-reader-core-fullauthrfid": "9.5.2382",
13
- "@regulaforensics/document-reader-btdevice": "9.4.46",
11
+ "@regulaforensics/document-reader": "9.6.846-rc",
12
+ "@regulaforensics/document-reader-core-fullauthrfid": "9.6.2422-rc",
13
+ "@regulaforensics/document-reader-btdevice": "9.5.47-rc",
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
  }
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.6.845-nightly",
3
+ "version": "9.6.846-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",
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.6.845-nightly" xmlns="http://apache.org/cordova/ns/plugins/1.0">
2
+ <plugin id="@regulaforensics/document-reader" version="9.6.846-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/CocoaPods/Specs.git" />
29
+ <source url="https://github.com/regulaforensics/podspecs.git" />
30
30
  </config>
31
31
  <pods>
32
- <pod name="DocumentReaderNightly" spec="9.6.6496" />
32
+ <pod name="DocumentReaderStage" spec="9.6.6561" />
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,
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "..": {
15
15
  "name": "@regulaforensics/document-reader",
16
- "version": "1.0.0",
16
+ "version": "9.6.846-rc",
17
17
  "dev": true,
18
18
  "license": "commercial"
19
19
  },
@@ -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
+ };
@@ -659,6 +659,7 @@ export const FieldType = {
659
659
  JURISDICTION_SPECIFIC_DATA: 703,
660
660
  DATA_DATE_OF_EXPIRY: 704,
661
661
  CONSUL: 705,
662
+ CANTON_REFERENCE: 706,
662
663
  }
663
664
 
664
665
  FieldType.getTranslation = async function (value) {
@@ -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
- LAYER6_FILE_EOF2: -2147456256,
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
- LAYER6_FILE_EOF2: -2147456256,
12443
+ LAYER6_WRONG_PARAMS: -2147456256,
12428
12444
  LAYER6_INCORRECT_PARAMS: -2147456640,
12429
12445
  LAYER6_NO_REFERENCE_DATA: -2147456632,
12430
12446
  LAYER6_PWD_SUSPEND: -2147458143,
@@ -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
+ };
@@ -659,6 +659,7 @@ export const FieldType = {
659
659
  JURISDICTION_SPECIFIC_DATA: 703,
660
660
  DATA_DATE_OF_EXPIRY: 704,
661
661
  CONSUL: 705,
662
+ CANTON_REFERENCE: 706,
662
663
  }
663
664
 
664
665
  FieldType.getTranslation = async function (value) {
@@ -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
- LAYER6_FILE_EOF2: -2147456256,
49
+ LAYER6_WRONG_PARAMS: -2147456256,
50
50
  LAYER6_INCORRECT_PARAMS: -2147456640,
51
51
  LAYER6_NO_REFERENCE_DATA: -2147456632,
52
52
  LAYER6_PWD_SUSPEND: -2147458143,
@@ -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
- * Button tags for UI customization.
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
+ }
@@ -1316,6 +1316,7 @@ export declare enum FieldType {
1316
1316
  JURISDICTION_SPECIFIC_DATA = 703,
1317
1317
  DATA_DATE_OF_EXPIRY = 704,
1318
1318
  CONSUL = 705,
1319
+ CANTON_REFERENCE = 706,
1319
1320
  }
1320
1321
 
1321
1322
  export declare namespace FieldType {
@@ -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
- LAYER6_FILE_EOF2 = -2147456256,
47
+ LAYER6_WRONG_PARAMS = -2147456256,
48
48
  LAYER6_INCORRECT_PARAMS = -2147456640,
49
49
  LAYER6_NO_REFERENCE_DATA = -2147456632,
50
50
  LAYER6_PWD_SUSPEND = -2147458143,