@regulaforensics/document-reader 9.7.952-rc → 9.7.953-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.
Files changed (65) hide show
  1. package/RNDocumentReader.podspec +2 -2
  2. package/android/src/main/{java → kotlin}/com/regula/plugin/documentreader/Config.kt +30 -10
  3. package/android/src/main/{java → kotlin}/com/regula/plugin/documentreader/JSONConstructor.kt +12 -1
  4. package/android/src/main/{java → kotlin}/com/regula/plugin/documentreader/Utils.kt +1 -1
  5. package/examples/capacitor/README.md +1 -1
  6. package/examples/capacitor/package-lock.json +14 -14
  7. package/examples/capacitor/package.json +3 -3
  8. package/examples/capacitor/scripts/android.sh +3 -1
  9. package/examples/capacitor/scripts/ios.sh +3 -1
  10. package/examples/capacitor/scripts/setup.sh +2 -0
  11. package/examples/ionic/README.md +1 -1
  12. package/examples/ionic/config.xml +0 -2
  13. package/examples/ionic/images/icon.png +0 -0
  14. package/examples/ionic/index.tsx +1 -1
  15. package/examples/ionic/package-lock.json +2396 -2023
  16. package/examples/ionic/package.json +25 -26
  17. package/examples/ionic/patches/cordova-plugin-ionic-webview+5.0.1.patch +23 -0
  18. package/examples/ionic/scripts/android.sh +4 -1
  19. package/examples/ionic/scripts/ios.sh +5 -2
  20. package/examples/ionic/scripts/setup.sh +2 -0
  21. package/examples/ionic/tsconfig.json +1 -1
  22. package/examples/react_native/README.md +1 -1
  23. package/examples/react_native/package-lock.json +539 -638
  24. package/examples/react_native/package.json +3 -3
  25. package/examples/react_native/scripts/android.sh +5 -5
  26. package/examples/react_native/scripts/ios.sh +5 -5
  27. package/examples/react_native/scripts/setup.sh +2 -0
  28. package/ios/RGLWConfig.h +2 -0
  29. package/ios/RGLWConfig.m +25 -5
  30. package/ios/RGLWJSONConstructor.h +2 -0
  31. package/ios/RGLWJSONConstructor.m +12 -0
  32. package/package.json +1 -1
  33. package/plugin.xml +8 -8
  34. package/test/json.tsx +6 -0
  35. package/test/package-lock.json +1 -1
  36. package/test/test.tsx +206 -2
  37. package/www/capacitor/index.js +207 -17
  38. package/www/capacitor/params/process_params/AuthenticityParams.js +15 -0
  39. package/www/capacitor/params/process_params/AuthenticityPropertiesParams.js +31 -0
  40. package/www/capacitor/params/process_params/FaceApiParams.js +5 -1
  41. package/www/capacitor/results/authenticity/Authenticity.js +2 -1
  42. package/www/capacitor/results/authenticity/CheckDiagnose.js +4 -1
  43. package/www/capacitor/results/authenticity/SecurityFeatureType.js +1 -0
  44. package/www/capacitor/results/visual_results/FieldType.js +3 -1
  45. package/www/cordova.js +199 -123
  46. package/www/react-native/index.js +207 -17
  47. package/www/react-native/params/process_params/AuthenticityParams.js +15 -0
  48. package/www/react-native/params/process_params/AuthenticityPropertiesParams.js +31 -0
  49. package/www/react-native/params/process_params/FaceApiParams.js +5 -1
  50. package/www/react-native/results/authenticity/Authenticity.js +2 -1
  51. package/www/react-native/results/authenticity/CheckDiagnose.js +4 -1
  52. package/www/react-native/results/authenticity/SecurityFeatureType.js +1 -0
  53. package/www/react-native/results/visual_results/FieldType.js +3 -1
  54. package/www/types/index.d.ts +206 -19
  55. package/www/types/params/process_params/AuthenticityParams.d.ts +5 -4
  56. package/www/types/params/process_params/AuthenticityPropertiesParams.d.ts +10 -0
  57. package/www/types/params/process_params/FaceApiParams.d.ts +4 -0
  58. package/www/types/params/process_params/ProcessParams.d.ts +3 -2
  59. package/www/types/results/authenticity/Authenticity.d.ts +1 -0
  60. package/www/types/results/authenticity/CheckDiagnose.d.ts +3 -0
  61. package/www/types/results/authenticity/SecurityFeatureType.d.ts +1 -0
  62. package/www/types/results/visual_results/FieldType.d.ts +3 -1
  63. /package/android/src/main/{java → kotlin}/com/regula/plugin/documentreader/BluetoothUtil.kt +0 -0
  64. /package/android/src/main/{java → kotlin}/com/regula/plugin/documentreader/Main.kt +0 -0
  65. /package/android/src/main/{java → kotlin}/com/regula/plugin/documentreader/RNDocumentReaderModule.kt +0 -0
@@ -3,43 +3,42 @@
3
3
  "scripts": {
4
4
  "setup": "scripts/setup.sh",
5
5
  "ios": "scripts/ios.sh",
6
- "android": "scripts/android.sh"
6
+ "android": "scripts/android.sh",
7
+ "postinstall": "patch-package"
7
8
  },
8
9
  "dependencies": {
9
- "@angular-devkit/build-angular": "^21.2.16",
10
- "@angular/cli": "^21.2.16",
11
- "@angular/common": "^21.2.17",
12
- "@angular/compiler-cli": "^21.2.17",
13
- "@angular/core": "^21.2.17",
14
- "@angular/forms": "^21.2.17",
15
- "@angular/platform-browser-dynamic": "^21.2.17",
16
- "@angular/router": "^21.2.17",
17
- "@ionic/angular": "^8.8.11",
10
+ "@angular-devkit/build-angular": "^22.0.5",
11
+ "@angular/cli": "^22.0.5",
12
+ "@angular/common": "^22.0.5",
13
+ "@angular/compiler-cli": "^22.0.5",
14
+ "@angular/core": "^22.0.5",
15
+ "@angular/forms": "^22.0.5",
16
+ "@angular/platform-browser-dynamic": "^22.0.5",
17
+ "@angular/router": "^22.0.5",
18
+ "@ionic/angular": "^8.8.13",
18
19
  "@ionic/cordova-builders": "^12.3.0",
19
- "@awesome-cordova-plugins/camera": "^8.1.0",
20
- "@awesome-cordova-plugins/file": "^8.1.0",
21
- "@regulaforensics/document-reader": "9.7.952-rc",
22
- "@regulaforensics/document-reader-core-fullauthrfid": "9.6.2444",
23
- "@regulaforensics/document-reader-btdevice": "9.6.55",
24
- "cordova-android": "^14.0.1",
25
- "cordova-ios": "^7.1.1",
20
+ "@awesome-cordova-plugins/camera": "^9.2.0",
21
+ "@awesome-cordova-plugins/file": "^9.2.0",
22
+ "@regulaforensics/document-reader": "9.7.953-rc",
23
+ "@regulaforensics/document-reader-core-fullauthrfid": "9.7.2665-rc",
24
+ "@regulaforensics/document-reader-btdevice": "9.7.60-rc",
25
+ "cordova-android": "^15.0.0",
26
+ "cordova-ios": "^8.1.1",
26
27
  "cordova-plugin-camera": "^8.0.0",
27
28
  "cordova-plugin-file": "^8.1.3",
28
- "cordova-plugin-ionic-webview": "^5.0.1"
29
+ "cordova-plugin-ionic-webview": "^5.0.1",
30
+ "patch-package": "^8.0.1"
29
31
  },
30
32
  "overrides": {
33
+ "@babel/core": "^7.29.0",
31
34
  "ajv": "^8.18.0",
32
- "serialize-javascript": "^7.0.4",
33
- "undici": "^7.24.0",
35
+ "esbuild": "^0.28.1",
36
+ "http-proxy-middleware": "^3.0.7",
34
37
  "picomatch": "^4.0.4",
35
- "postcss": "^8.5.10",
38
+ "serialize-javascript": "^7.0.4",
36
39
  "uuid": "^14.0.0",
37
- "vite": "^7.3.2",
38
40
  "webpack-dev-server": "^5.2.4",
39
- "@babel/core": "^7.29.0",
40
- "esbuild": "^0.28.1",
41
- "http-proxy-middleware": "^3.0.7",
42
- "piscina": "^5.2.0"
41
+ "@hono/node-server": "^2.0.5"
43
42
  },
44
43
  "cordova": {
45
44
  "plugins": {
@@ -0,0 +1,23 @@
1
+ diff --git a/node_modules/cordova-plugin-ionic-webview/src/ios/CDVWKWebViewEngine.m b/node_modules/cordova-plugin-ionic-webview/src/ios/CDVWKWebViewEngine.m
2
+ index 2acb99b..900a04c 100644
3
+ --- a/node_modules/cordova-plugin-ionic-webview/src/ios/CDVWKWebViewEngine.m
4
+ +++ b/node_modules/cordova-plugin-ionic-webview/src/ios/CDVWKWebViewEngine.m
5
+ @@ -731,6 +731,18 @@ - (BOOL)defaultResourcePolicyForURL:(NSURL*)url
6
+ return YES;
7
+ }
8
+
9
+ + // Allow internal local-server navigation even when no plugin overrides the request.
10
+ + NSURL *localServerUrl = [NSURL URLWithString:self.CDV_LOCAL_SERVER];
11
+ + if (localServerUrl != nil && url != nil) {
12
+ + NSString *localScheme = localServerUrl.scheme.lowercaseString;
13
+ + NSString *localHost = localServerUrl.host.lowercaseString;
14
+ + NSString *urlScheme = url.scheme.lowercaseString;
15
+ + NSString *urlHost = url.host.lowercaseString;
16
+ + if ([localScheme isEqualToString:urlScheme] && [localHost isEqualToString:urlHost]) {
17
+ + return YES;
18
+ + }
19
+ + }
20
+ +
21
+ return NO;
22
+ }
23
+
@@ -1,8 +1,11 @@
1
1
  #!/usr/bin/env bash
2
+ set -e
2
3
 
3
- if [[ $npm_config_o || $npm_config_open ]]; then
4
+ if [[ " $* " == *" --open "* ]] || [[ " $* " == *" -o "* ]]; then
4
5
  ionic cordova build android
5
6
  open -a 'Android Studio' platforms/android
6
7
  else
7
8
  ionic cordova run android
8
9
  fi
10
+
11
+ exit 0
@@ -1,8 +1,11 @@
1
1
  #!/usr/bin/env bash
2
+ set -e
2
3
 
3
- if [[ $npm_config_o || $npm_config_open ]]; then
4
+ if [[ " $* " == *" --open "* ]] || [[ " $* " == *" -o "* ]]; then
4
5
  ionic cordova prepare ios
5
- open platforms/ios/Document.xcworkspace
6
+ open platforms/ios/App.xcworkspace
6
7
  else
7
8
  ionic cordova run ios
8
9
  fi
10
+
11
+ exit 0
@@ -6,3 +6,5 @@ ionic cordova prepare || {
6
6
  pod repo update
7
7
  ionic cordova prepare
8
8
  }
9
+
10
+ exit 0
@@ -5,7 +5,7 @@
5
5
  "compilerOptions": {
6
6
  "types": [],
7
7
  "module": "esnext",
8
- "moduleResolution": "node",
8
+ "moduleResolution": "bundler",
9
9
  "experimentalDecorators": true,
10
10
  "target": "es2022",
11
11
  "jsx": "react-jsx",
@@ -9,7 +9,7 @@
9
9
  * IOS: `npm run ios`.
10
10
  * Android: `npm run android`.
11
11
 
12
- **Note**: this is just one way of running the app. You can also pass `-o` or `--open` argument to the command, and this will open Xcode/Android Studio, then run the app directly from the IDE. Overall, this is a more consistent way, so if you're having troubles running the app from terminal, try running it from the IDE. Just don't forget to make sure that Metro Bundler is running(`npm start`).
12
+ **Note**: this is just one way of running the app. You can also pass `-- -o` or `-- --open` argument to the command, and this will open Xcode/Android Studio, then run the app directly from the IDE. Overall, this is a more consistent way, so if you're having troubles running the app from terminal, try running it from the IDE. Just don't forget to make sure that Metro Bundler is running(`npm start`).
13
13
 
14
14
  ## Additional examples
15
15