@trustchex/react-native-sdk 1.374.0 → 1.381.0

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 (35) hide show
  1. package/android/src/main/java/com/trustchex/reactnativesdk/camera/TrustchexCameraView.kt +0 -9
  2. package/android/src/main/java/com/trustchex/reactnativesdk/opencv/OpenCVModule.kt +636 -301
  3. package/ios/Camera/TrustchexCameraView.swift +8 -8
  4. package/ios/OpenCV/OpenCVHelper.h +0 -7
  5. package/ios/OpenCV/OpenCVHelper.mm +0 -60
  6. package/ios/OpenCV/OpenCVModule.h +0 -4
  7. package/ios/OpenCV/OpenCVModule.mm +440 -358
  8. package/lib/module/Shared/Components/DebugOverlay.js +541 -0
  9. package/lib/module/Shared/Components/IdentityDocumentCamera.constants.js +44 -0
  10. package/lib/module/Shared/Components/IdentityDocumentCamera.flows.js +270 -0
  11. package/lib/module/Shared/Components/IdentityDocumentCamera.js +679 -1701
  12. package/lib/module/Shared/Components/IdentityDocumentCamera.types.js +3 -0
  13. package/lib/module/Shared/Components/IdentityDocumentCamera.utils.js +273 -0
  14. package/lib/module/version.js +1 -1
  15. package/lib/typescript/src/Shared/Components/DebugOverlay.d.ts +30 -0
  16. package/lib/typescript/src/Shared/Components/DebugOverlay.d.ts.map +1 -0
  17. package/lib/typescript/src/Shared/Components/IdentityDocumentCamera.constants.d.ts +35 -0
  18. package/lib/typescript/src/Shared/Components/IdentityDocumentCamera.constants.d.ts.map +1 -0
  19. package/lib/typescript/src/Shared/Components/IdentityDocumentCamera.d.ts +3 -56
  20. package/lib/typescript/src/Shared/Components/IdentityDocumentCamera.d.ts.map +1 -1
  21. package/lib/typescript/src/Shared/Components/IdentityDocumentCamera.flows.d.ts +88 -0
  22. package/lib/typescript/src/Shared/Components/IdentityDocumentCamera.flows.d.ts.map +1 -0
  23. package/lib/typescript/src/Shared/Components/IdentityDocumentCamera.types.d.ts +116 -0
  24. package/lib/typescript/src/Shared/Components/IdentityDocumentCamera.types.d.ts.map +1 -0
  25. package/lib/typescript/src/Shared/Components/IdentityDocumentCamera.utils.d.ts +93 -0
  26. package/lib/typescript/src/Shared/Components/IdentityDocumentCamera.utils.d.ts.map +1 -0
  27. package/lib/typescript/src/version.d.ts +1 -1
  28. package/package.json +1 -1
  29. package/src/Shared/Components/DebugOverlay.tsx +656 -0
  30. package/src/Shared/Components/IdentityDocumentCamera.constants.ts +44 -0
  31. package/src/Shared/Components/IdentityDocumentCamera.flows.ts +342 -0
  32. package/src/Shared/Components/IdentityDocumentCamera.tsx +1065 -2462
  33. package/src/Shared/Components/IdentityDocumentCamera.types.ts +136 -0
  34. package/src/Shared/Components/IdentityDocumentCamera.utils.ts +364 -0
  35. package/src/version.ts +1 -1
@@ -410,9 +410,6 @@ class TrustchexCameraView(context: ThemedReactContext) : FrameLayout(context) {
410
410
  } else null
411
411
 
412
412
  val textTask = if (textRecognitionEnabled) {
413
- if (!frameProcessingEnabled) {
414
- android.util.Log.w("TrustchexCamera", "Text recognition enabled but frame processing disabled!")
415
- }
416
413
  textRecognizer.process(textInputImage).also { tasks.add(it) }
417
414
  } else null
418
415
 
@@ -475,9 +472,6 @@ class TrustchexCameraView(context: ThemedReactContext) : FrameLayout(context) {
475
472
  if (textTask.isSuccessful) {
476
473
  val result = textTask.result
477
474
  frameData.putString("resultText", result.text)
478
- if (result.text.isNotEmpty()) {
479
- android.util.Log.d("TrustchexCamera", "✓ Text recognized: length=${result.text.length}")
480
- }
481
475
 
482
476
  val blocksArray = Arguments.createArray()
483
477
  for (block in result.textBlocks) {
@@ -498,14 +492,11 @@ class TrustchexCameraView(context: ThemedReactContext) : FrameLayout(context) {
498
492
  }
499
493
  frameData.putArray("textBlocks", blocksArray)
500
494
  } else {
501
- android.util.Log.d("TrustchexCamera", "⚠ Text recognition failed")
502
495
  frameData.putString("resultText", "")
503
496
  frameData.putArray("textBlocks", Arguments.createArray())
504
497
  }
505
498
  }
506
499
 
507
- // MRZ validation moved to JavaScript - native implementation removed
508
-
509
500
  // Barcode scanning results
510
501
  if (barcodeTask != null) {
511
502
  val barcodesArray = Arguments.createArray()