@sanctum-key/react-native-sdk 1.0.1 → 1.0.2
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/README.md +2 -2
- package/android/build/.transforms/532c0e65d82f446633d0a7dab2772198/results.bin +1 -0
- package/android/build/.transforms/532c0e65d82f446633d0a7dab2772198/transformed/classes/classes_dex/classes.dex +0 -0
- package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +2 -2
- package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
- package/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkView.class +0 -0
- package/build/package.json +71 -0
- package/build/src/App.d.ts +3 -0
- package/build/src/App.d.ts.map +1 -0
- package/build/{App.js → src/App.js} +2 -2
- package/build/src/App.js.map +1 -0
- package/build/src/TransfergratisSdk.types.d.ts.map +1 -0
- package/build/src/TransfergratisSdk.types.js.map +1 -0
- package/build/src/TransfergratisSdkModule.d.ts.map +1 -0
- package/build/src/TransfergratisSdkModule.js.map +1 -0
- package/build/src/TransfergratisSdkModule.web.d.ts.map +1 -0
- package/build/src/TransfergratisSdkModule.web.js.map +1 -0
- package/build/src/TransfergratisSdkView.d.ts.map +1 -0
- package/build/src/TransfergratisSdkView.js.map +1 -0
- package/build/src/TransfergratisSdkView.web.d.ts.map +1 -0
- package/build/src/TransfergratisSdkView.web.js.map +1 -0
- package/build/src/api/axios.d.ts.map +1 -0
- package/build/src/api/axios.js.map +1 -0
- package/build/src/components/Camera/index.d.ts.map +1 -0
- package/build/src/components/Camera/index.js.map +1 -0
- package/build/src/components/Camera/index.web.d.ts.map +1 -0
- package/build/src/components/Camera/index.web.js.map +1 -0
- package/build/src/components/Camera/types.d.ts.map +1 -0
- package/build/src/components/Camera/types.js.map +1 -0
- package/build/src/components/ConfigurableKYCFlow.d.ts.map +1 -0
- package/build/src/components/ConfigurableKYCFlow.js.map +1 -0
- package/build/src/components/CustomCameraExample.d.ts.map +1 -0
- package/build/src/components/CustomCameraExample.js.map +1 -0
- package/build/src/components/EnhancedCameraView.d.ts.map +1 -0
- package/build/src/components/EnhancedCameraView.js.map +1 -0
- package/build/src/components/EnhancedCameraView.web.d.ts.map +1 -0
- package/build/src/components/EnhancedCameraView.web.js.map +1 -0
- package/build/src/components/FileUpload.d.ts.map +1 -0
- package/build/src/components/FileUpload.js.map +1 -0
- package/build/src/components/KYCElementRenderer.d.ts.map +1 -0
- package/build/src/components/KYCElementRenderer.js.map +1 -0
- package/build/src/components/KYCElements/AdditionalDocumentsTemplate.d.ts.map +1 -0
- package/build/src/components/KYCElements/AdditionalDocumentsTemplate.js.map +1 -0
- package/build/src/components/KYCElements/CameraCapture.d.ts.map +1 -0
- package/build/src/components/KYCElements/CameraCapture.js.map +1 -0
- package/build/src/components/KYCElements/CompletionStep.d.ts.map +1 -0
- package/build/src/components/KYCElements/CompletionStep.js.map +1 -0
- package/build/src/components/KYCElements/CountrySelection.d.ts.map +1 -0
- package/build/src/components/KYCElements/CountrySelection.js.map +1 -0
- package/build/src/components/KYCElements/CountrySelectionTemplate.d.ts.map +1 -0
- package/build/src/components/KYCElements/CountrySelectionTemplate.js.map +1 -0
- package/build/src/components/KYCElements/DocumentTypeSelection.d.ts.map +1 -0
- package/build/src/components/KYCElements/DocumentTypeSelection.js.map +1 -0
- package/build/src/components/KYCElements/EmailVerificationTemplate.d.ts.map +1 -0
- package/build/src/components/KYCElements/EmailVerificationTemplate.js.map +1 -0
- package/build/src/components/KYCElements/FileUpload.d.ts.map +1 -0
- package/build/src/components/KYCElements/FileUpload.js.map +1 -0
- package/build/src/components/KYCElements/FileUploadTemplate.d.ts.map +1 -0
- package/build/src/components/KYCElements/FileUploadTemplate.js.map +1 -0
- package/build/src/components/KYCElements/IDCardCapture.d.ts.map +1 -0
- package/build/{components → src/components}/KYCElements/IDCardCapture.js +30 -8
- package/build/src/components/KYCElements/IDCardCapture.js.map +1 -0
- package/build/src/components/KYCElements/InitializationStep.d.ts.map +1 -0
- package/build/src/components/KYCElements/InitializationStep.js.map +1 -0
- package/build/src/components/KYCElements/LocationCaptureTemplate.d.ts.map +1 -0
- package/build/src/components/KYCElements/LocationCaptureTemplate.js.map +1 -0
- package/build/src/components/KYCElements/OrientationVideoCapture.d.ts.map +1 -0
- package/build/src/components/KYCElements/OrientationVideoCapture.js.map +1 -0
- package/build/src/components/KYCElements/OrientationVideoCaptureEnhanced.d.ts.map +1 -0
- package/build/src/components/KYCElements/OrientationVideoCaptureEnhanced.js.map +1 -0
- package/build/src/components/KYCElements/OrientationVideoCaptureFinal.d.ts.map +1 -0
- package/build/src/components/KYCElements/OrientationVideoCaptureFinal.js.map +1 -0
- package/build/src/components/KYCElements/PersonalInformationTemplate.d.ts.map +1 -0
- package/build/src/components/KYCElements/PersonalInformationTemplate.js.map +1 -0
- package/build/src/components/KYCElements/PhoneVerificationTemplate.d.ts.map +1 -0
- package/build/src/components/KYCElements/PhoneVerificationTemplate.js.map +1 -0
- package/build/src/components/KYCElements/ReviewSubmitTemplate.d.ts.map +1 -0
- package/build/src/components/KYCElements/ReviewSubmitTemplate.js.map +1 -0
- package/build/src/components/KYCElements/SelfieCapture.d.ts.map +1 -0
- package/build/src/components/KYCElements/SelfieCapture.js.map +1 -0
- package/build/src/components/KYCElements/SelfieCaptureTemplate.d.ts.map +1 -0
- package/build/src/components/KYCElements/SelfieCaptureTemplate.js.map +1 -0
- package/build/src/components/KYCElements/VerificationProgressTemplate.d.ts.map +1 -0
- package/build/{components → src/components}/KYCElements/VerificationProgressTemplate.js +7 -3
- package/build/src/components/KYCElements/VerificationProgressTemplate.js.map +1 -0
- package/build/src/components/KYCElements/VerificationStep.d.ts.map +1 -0
- package/build/src/components/KYCElements/VerificationStep.js.map +1 -0
- package/build/src/components/KYCElements/WelcomeTemplate.d.ts.map +1 -0
- package/build/{components → src/components}/KYCElements/WelcomeTemplate.js +9 -0
- package/build/src/components/KYCElements/WelcomeTemplate.js.map +1 -0
- package/build/src/components/KYCExample.d.ts.map +1 -0
- package/build/src/components/KYCExample.js.map +1 -0
- package/build/src/components/KYCFlow.d.ts.map +1 -0
- package/build/src/components/KYCFlow.js.map +1 -0
- package/build/src/components/NativeCameraView.d.ts.map +1 -0
- package/build/src/components/NativeCameraView.js.map +1 -0
- package/build/src/components/OverLay/IdCard.d.ts.map +1 -0
- package/build/src/components/OverLay/IdCard.js.map +1 -0
- package/build/src/components/OverLay/SelfieOverlay.d.ts.map +1 -0
- package/build/src/components/OverLay/SelfieOverlay.js.map +1 -0
- package/build/src/components/OverLay/StepOverlay.d.ts.map +1 -0
- package/build/src/components/OverLay/StepOverlay.js.map +1 -0
- package/build/src/components/OverLay/type.d.ts.map +1 -0
- package/build/src/components/OverLay/type.js.map +1 -0
- package/build/src/components/ProgressIndicator.d.ts.map +1 -0
- package/build/src/components/ProgressIndicator.js.map +1 -0
- package/build/src/components/SelfieCapture.d.ts.map +1 -0
- package/build/src/components/SelfieCapture.js.map +1 -0
- package/build/src/components/SimpleExample.d.ts.map +1 -0
- package/build/src/components/SimpleExample.js.map +1 -0
- package/build/src/components/Svgs/GpsIcon.d.ts.map +1 -0
- package/build/src/components/Svgs/GpsIcon.js.map +1 -0
- package/build/src/components/Svgs/Schield.d.ts.map +1 -0
- package/build/src/components/Svgs/Schield.js.map +1 -0
- package/build/src/components/Svgs/frontSelfieIcon.d.ts.map +1 -0
- package/build/src/components/Svgs/frontSelfieIcon.js.map +1 -0
- package/build/src/components/Svgs/scanningLine.d.ts.map +1 -0
- package/build/src/components/Svgs/scanningLine.js.map +1 -0
- package/build/src/components/Svgs/sideSelfieIcon.d.ts.map +1 -0
- package/build/src/components/Svgs/sideSelfieIcon.js.map +1 -0
- package/build/{components → src/components}/TemplateKYCExample.d.ts +2 -0
- package/build/src/components/TemplateKYCExample.d.ts.map +1 -0
- package/build/{components → src/components}/TemplateKYCExample.js +2 -2
- package/build/src/components/TemplateKYCExample.js.map +1 -0
- package/build/{components → src/components}/TemplateKYCFlowRefactored.d.ts +2 -0
- package/build/src/components/TemplateKYCFlowRefactored.d.ts.map +1 -0
- package/build/{components → src/components}/TemplateKYCFlowRefactored.js +2 -2
- package/build/src/components/TemplateKYCFlowRefactored.js.map +1 -0
- package/build/src/components/VisionCameraView.d.ts.map +1 -0
- package/build/src/components/VisionCameraView.js.map +1 -0
- package/build/src/components/example/CameraCaptureEx.d.ts.map +1 -0
- package/build/src/components/example/CameraCaptureEx.js.map +1 -0
- package/build/src/components/example/CameraCaptureExAdvanced.d.ts.map +1 -0
- package/build/src/components/example/CameraCaptureExAdvanced.js.map +1 -0
- package/build/src/components/example/CameraCaptureExScan.d.ts.map +1 -0
- package/build/src/components/example/CameraCaptureExScan.js.map +1 -0
- package/build/src/components/example/CameraCaptureExSimple.d.ts.map +1 -0
- package/build/src/components/example/CameraCaptureExSimple.js.map +1 -0
- package/build/src/components/example/DynamicTemplateExample.d.ts.map +1 -0
- package/build/src/components/example/DynamicTemplateExample.js.map +1 -0
- package/build/src/components/example/OrientationVideoExample.d.ts.map +1 -0
- package/build/src/components/example/OrientationVideoExample.js.map +1 -0
- package/build/src/components/example/SelfieCaptureEx.d.ts.map +1 -0
- package/build/src/components/example/SelfieCaptureEx.js.map +1 -0
- package/build/src/components/ui/Button.d.ts.map +1 -0
- package/build/src/components/ui/Button.js.map +1 -0
- package/build/src/components/ui/ButtonExample.d.ts.map +1 -0
- package/build/src/components/ui/ButtonExample.js.map +1 -0
- package/build/src/components/ui/ButtonStyles.d.ts.map +1 -0
- package/build/src/components/ui/ButtonStyles.js.map +1 -0
- package/build/src/config/KYCConfig.d.ts.map +1 -0
- package/build/src/config/KYCConfig.js.map +1 -0
- package/build/src/config/KYCConfigs.d.ts.map +1 -0
- package/build/src/config/KYCConfigs.js.map +1 -0
- package/build/src/config/allowedDomains.d.ts.map +1 -0
- package/build/src/config/allowedDomains.js.map +1 -0
- package/build/src/config/countriesData.d.ts.map +1 -0
- package/build/src/config/countriesData.js.map +1 -0
- package/build/src/config/region_mapping.d.ts.map +1 -0
- package/build/{config → src/config}/region_mapping.js +10 -18
- package/build/src/config/region_mapping.js.map +1 -0
- package/build/src/hooks/useI18n.d.ts.map +1 -0
- package/build/src/hooks/useI18n.js.map +1 -0
- package/build/src/hooks/useKYC.d.ts.map +1 -0
- package/build/src/hooks/useKYC.js.map +1 -0
- package/build/src/hooks/useKYCFlow.d.ts.map +1 -0
- package/build/src/hooks/useKYCFlow.js.map +1 -0
- package/build/src/hooks/useLocation.d.ts.map +1 -0
- package/build/src/hooks/useLocation.js.map +1 -0
- package/build/src/hooks/useOrientationVideo.d.ts.map +1 -0
- package/build/src/hooks/useOrientationVideo.js.map +1 -0
- package/build/src/hooks/useRealtimeVerifier.d.ts.map +1 -0
- package/build/src/hooks/useRealtimeVerifier.js.map +1 -0
- package/build/{hooks → src/hooks}/useTemplateKYCFlow.d.ts +3 -1
- package/build/src/hooks/useTemplateKYCFlow.d.ts.map +1 -0
- package/build/{hooks → src/hooks}/useTemplateKYCFlow.js +36 -8
- package/build/src/hooks/useTemplateKYCFlow.js.map +1 -0
- package/build/src/hooks/useTemplateLoader.d.ts.map +1 -0
- package/build/src/hooks/useTemplateLoader.js.map +1 -0
- package/build/{i18n → src/i18n}/en/index.d.ts.map +1 -1
- package/build/src/i18n/en/index.js.map +1 -0
- package/build/{i18n → src/i18n}/fr/index.d.ts.map +1 -1
- package/build/src/i18n/fr/index.js.map +1 -0
- package/build/src/i18n/index.d.ts.map +1 -0
- package/build/src/i18n/index.js.map +1 -0
- package/build/src/i18n/types.d.ts.map +1 -0
- package/build/src/i18n/types.js.map +1 -0
- package/build/src/i18n/usage-example.d.ts.map +1 -0
- package/build/src/i18n/usage-example.js.map +1 -0
- package/build/{index.d.ts → src/index.d.ts} +3 -0
- package/build/src/index.d.ts.map +1 -0
- package/build/{index.js → src/index.js} +4 -0
- package/build/src/index.js.map +1 -0
- package/build/{modules → src/modules}/api/CardAuthentification.d.ts +13 -0
- package/build/src/modules/api/CardAuthentification.d.ts.map +1 -0
- package/build/{modules → src/modules}/api/CardAuthentification.js +7 -108
- package/build/src/modules/api/CardAuthentification.js.map +1 -0
- package/build/src/modules/api/KYCService.d.ts.map +1 -0
- package/build/{modules → src/modules}/api/KYCService.js +2 -2
- package/build/src/modules/api/KYCService.js.map +1 -0
- package/build/src/modules/api/SelfieVerification.d.ts.map +1 -0
- package/build/src/modules/api/SelfieVerification.js.map +1 -0
- package/build/src/modules/api/TemplateService.d.ts.map +1 -0
- package/build/src/modules/api/TemplateService.js.map +1 -0
- package/build/src/modules/api/backendApi.d.ts.map +1 -0
- package/build/src/modules/api/backendApi.js.map +1 -0
- package/build/src/modules/api/types.d.ts.map +1 -0
- package/build/src/modules/api/types.js.map +1 -0
- package/build/src/modules/camera/NativeCameraModule.d.ts.map +1 -0
- package/build/src/modules/camera/NativeCameraModule.js.map +1 -0
- package/build/src/modules/camera/UnifiedCameraModule.d.ts.map +1 -0
- package/build/src/modules/camera/UnifiedCameraModule.js.map +1 -0
- package/build/src/modules/camera/VisionCameraModule.d.ts.map +1 -0
- package/build/src/modules/camera/VisionCameraModule.js.map +1 -0
- package/build/src/modules/camera/VisionCameraModule.web.d.ts.map +1 -0
- package/build/src/modules/camera/VisionCameraModule.web.js.map +1 -0
- package/build/src/modules/camera/index.d.ts.map +1 -0
- package/build/src/modules/camera/index.js.map +1 -0
- package/build/src/stores/kycStore.d.ts.map +1 -0
- package/build/src/stores/kycStore.js.map +1 -0
- package/build/src/types/KYC.types.d.ts.map +1 -0
- package/build/src/types/KYC.types.js.map +1 -0
- package/build/src/types/env.types.d.ts.map +1 -0
- package/build/src/types/env.types.js.map +1 -0
- package/build/src/utils/cropByObb.d.ts.map +1 -0
- package/build/src/utils/cropByObb.js.map +1 -0
- package/build/src/utils/deviceDetection.d.ts.map +1 -0
- package/build/src/utils/deviceDetection.js.map +1 -0
- package/build/src/utils/get-document-type-info.d.ts.map +1 -0
- package/build/src/utils/get-document-type-info.js.map +1 -0
- package/build/src/utils/logger.d.ts.map +1 -0
- package/build/src/utils/logger.js.map +1 -0
- package/build/src/utils/pathToBase64.d.ts.map +1 -0
- package/build/src/utils/pathToBase64.js.map +1 -0
- package/build/src/utils/platformAlert.d.ts.map +1 -0
- package/build/src/utils/platformAlert.js.map +1 -0
- package/build/src/utils/remove-duplicate.d.ts.map +1 -0
- package/build/src/utils/remove-duplicate.js.map +1 -0
- package/build/src/utils/template-transformer.d.ts.map +1 -0
- package/build/src/utils/template-transformer.js.map +1 -0
- package/build/{web → src/web}/WebKYCEntry.d.ts +1 -0
- package/build/src/web/WebKYCEntry.d.ts.map +1 -0
- package/build/{web → src/web}/WebKYCEntry.js +96 -28
- package/build/src/web/WebKYCEntry.js.map +1 -0
- package/build/src/web/index.d.ts.map +1 -0
- package/build/src/web/index.js.map +1 -0
- package/package.json +1 -1
- package/src/App.tsx +2 -2
- package/src/components/KYCElements/IDCardCapture.tsx +34 -8
- package/src/components/KYCElements/VerificationProgressTemplate.tsx +12 -4
- package/src/components/KYCElements/WelcomeTemplate.tsx +9 -0
- package/src/components/TemplateKYCExample.tsx +5 -1
- package/src/components/TemplateKYCFlowRefactored.tsx +6 -0
- package/src/config/region_mapping.json +10 -18
- package/src/config/region_mapping.ts +10 -18
- package/src/hooks/useTemplateKYCFlow.tsx +41 -6
- package/src/index.ts +4 -0
- package/src/modules/api/CardAuthentification.ts +22 -125
- package/src/modules/api/KYCService.ts +2 -2
- package/src/web/WebKYCEntry.tsx +107 -32
- package/build/App.d.ts +0 -3
- package/build/App.d.ts.map +0 -1
- package/build/App.js.map +0 -1
- package/build/TransfergratisSdk.types.d.ts.map +0 -1
- package/build/TransfergratisSdk.types.js.map +0 -1
- package/build/TransfergratisSdkModule.d.ts.map +0 -1
- package/build/TransfergratisSdkModule.js.map +0 -1
- package/build/TransfergratisSdkModule.web.d.ts.map +0 -1
- package/build/TransfergratisSdkModule.web.js.map +0 -1
- package/build/TransfergratisSdkView.d.ts.map +0 -1
- package/build/TransfergratisSdkView.js.map +0 -1
- package/build/TransfergratisSdkView.web.d.ts.map +0 -1
- package/build/TransfergratisSdkView.web.js.map +0 -1
- package/build/api/axios.d.ts.map +0 -1
- package/build/api/axios.js.map +0 -1
- package/build/components/Camera/index.d.ts.map +0 -1
- package/build/components/Camera/index.js.map +0 -1
- package/build/components/Camera/index.web.d.ts.map +0 -1
- package/build/components/Camera/index.web.js.map +0 -1
- package/build/components/Camera/types.d.ts.map +0 -1
- package/build/components/Camera/types.js.map +0 -1
- package/build/components/ConfigurableKYCFlow.d.ts.map +0 -1
- package/build/components/ConfigurableKYCFlow.js.map +0 -1
- package/build/components/CustomCameraExample.d.ts.map +0 -1
- package/build/components/CustomCameraExample.js.map +0 -1
- package/build/components/EnhancedCameraView.d.ts.map +0 -1
- package/build/components/EnhancedCameraView.js.map +0 -1
- package/build/components/EnhancedCameraView.web.d.ts.map +0 -1
- package/build/components/EnhancedCameraView.web.js.map +0 -1
- package/build/components/FileUpload.d.ts.map +0 -1
- package/build/components/FileUpload.js.map +0 -1
- package/build/components/KYCElementRenderer.d.ts.map +0 -1
- package/build/components/KYCElementRenderer.js.map +0 -1
- package/build/components/KYCElements/AdditionalDocumentsTemplate.d.ts.map +0 -1
- package/build/components/KYCElements/AdditionalDocumentsTemplate.js.map +0 -1
- package/build/components/KYCElements/CameraCapture.d.ts.map +0 -1
- package/build/components/KYCElements/CameraCapture.js.map +0 -1
- package/build/components/KYCElements/CompletionStep.d.ts.map +0 -1
- package/build/components/KYCElements/CompletionStep.js.map +0 -1
- package/build/components/KYCElements/CountrySelection.d.ts.map +0 -1
- package/build/components/KYCElements/CountrySelection.js.map +0 -1
- package/build/components/KYCElements/CountrySelectionTemplate.d.ts.map +0 -1
- package/build/components/KYCElements/CountrySelectionTemplate.js.map +0 -1
- package/build/components/KYCElements/DocumentTypeSelection.d.ts.map +0 -1
- package/build/components/KYCElements/DocumentTypeSelection.js.map +0 -1
- package/build/components/KYCElements/EmailVerificationTemplate.d.ts.map +0 -1
- package/build/components/KYCElements/EmailVerificationTemplate.js.map +0 -1
- package/build/components/KYCElements/FileUpload.d.ts.map +0 -1
- package/build/components/KYCElements/FileUpload.js.map +0 -1
- package/build/components/KYCElements/FileUploadTemplate.d.ts.map +0 -1
- package/build/components/KYCElements/FileUploadTemplate.js.map +0 -1
- package/build/components/KYCElements/IDCardCapture.d.ts.map +0 -1
- package/build/components/KYCElements/IDCardCapture.js.map +0 -1
- package/build/components/KYCElements/InitializationStep.d.ts.map +0 -1
- package/build/components/KYCElements/InitializationStep.js.map +0 -1
- package/build/components/KYCElements/LocationCaptureTemplate.d.ts.map +0 -1
- package/build/components/KYCElements/LocationCaptureTemplate.js.map +0 -1
- package/build/components/KYCElements/OrientationVideoCapture.d.ts.map +0 -1
- package/build/components/KYCElements/OrientationVideoCapture.js.map +0 -1
- package/build/components/KYCElements/OrientationVideoCaptureEnhanced.d.ts.map +0 -1
- package/build/components/KYCElements/OrientationVideoCaptureEnhanced.js.map +0 -1
- package/build/components/KYCElements/OrientationVideoCaptureFinal.d.ts.map +0 -1
- package/build/components/KYCElements/OrientationVideoCaptureFinal.js.map +0 -1
- package/build/components/KYCElements/PersonalInformationTemplate.d.ts.map +0 -1
- package/build/components/KYCElements/PersonalInformationTemplate.js.map +0 -1
- package/build/components/KYCElements/PhoneVerificationTemplate.d.ts.map +0 -1
- package/build/components/KYCElements/PhoneVerificationTemplate.js.map +0 -1
- package/build/components/KYCElements/ReviewSubmitTemplate.d.ts.map +0 -1
- package/build/components/KYCElements/ReviewSubmitTemplate.js.map +0 -1
- package/build/components/KYCElements/SelfieCapture.d.ts.map +0 -1
- package/build/components/KYCElements/SelfieCapture.js.map +0 -1
- package/build/components/KYCElements/SelfieCaptureTemplate.d.ts.map +0 -1
- package/build/components/KYCElements/SelfieCaptureTemplate.js.map +0 -1
- package/build/components/KYCElements/VerificationProgressTemplate.d.ts.map +0 -1
- package/build/components/KYCElements/VerificationProgressTemplate.js.map +0 -1
- package/build/components/KYCElements/VerificationStep.d.ts.map +0 -1
- package/build/components/KYCElements/VerificationStep.js.map +0 -1
- package/build/components/KYCElements/WelcomeTemplate.d.ts.map +0 -1
- package/build/components/KYCElements/WelcomeTemplate.js.map +0 -1
- package/build/components/KYCExample.d.ts.map +0 -1
- package/build/components/KYCExample.js.map +0 -1
- package/build/components/KYCFlow.d.ts.map +0 -1
- package/build/components/KYCFlow.js.map +0 -1
- package/build/components/NativeCameraView.d.ts.map +0 -1
- package/build/components/NativeCameraView.js.map +0 -1
- package/build/components/OverLay/IdCard.d.ts.map +0 -1
- package/build/components/OverLay/IdCard.js.map +0 -1
- package/build/components/OverLay/SelfieOverlay.d.ts.map +0 -1
- package/build/components/OverLay/SelfieOverlay.js.map +0 -1
- package/build/components/OverLay/StepOverlay.d.ts.map +0 -1
- package/build/components/OverLay/StepOverlay.js.map +0 -1
- package/build/components/OverLay/type.d.ts.map +0 -1
- package/build/components/OverLay/type.js.map +0 -1
- package/build/components/ProgressIndicator.d.ts.map +0 -1
- package/build/components/ProgressIndicator.js.map +0 -1
- package/build/components/SelfieCapture.d.ts.map +0 -1
- package/build/components/SelfieCapture.js.map +0 -1
- package/build/components/SimpleExample.d.ts.map +0 -1
- package/build/components/SimpleExample.js.map +0 -1
- package/build/components/Svgs/GpsIcon.d.ts.map +0 -1
- package/build/components/Svgs/GpsIcon.js.map +0 -1
- package/build/components/Svgs/Schield.d.ts.map +0 -1
- package/build/components/Svgs/Schield.js.map +0 -1
- package/build/components/Svgs/frontSelfieIcon.d.ts.map +0 -1
- package/build/components/Svgs/frontSelfieIcon.js.map +0 -1
- package/build/components/Svgs/scanningLine.d.ts.map +0 -1
- package/build/components/Svgs/scanningLine.js.map +0 -1
- package/build/components/Svgs/sideSelfieIcon.d.ts.map +0 -1
- package/build/components/Svgs/sideSelfieIcon.js.map +0 -1
- package/build/components/TemplateKYCExample.d.ts.map +0 -1
- package/build/components/TemplateKYCExample.js.map +0 -1
- package/build/components/TemplateKYCFlowRefactored.d.ts.map +0 -1
- package/build/components/TemplateKYCFlowRefactored.js.map +0 -1
- package/build/components/VisionCameraView.d.ts.map +0 -1
- package/build/components/VisionCameraView.js.map +0 -1
- package/build/components/example/CameraCaptureEx.d.ts.map +0 -1
- package/build/components/example/CameraCaptureEx.js.map +0 -1
- package/build/components/example/CameraCaptureExAdvanced.d.ts.map +0 -1
- package/build/components/example/CameraCaptureExAdvanced.js.map +0 -1
- package/build/components/example/CameraCaptureExScan.d.ts.map +0 -1
- package/build/components/example/CameraCaptureExScan.js.map +0 -1
- package/build/components/example/CameraCaptureExSimple.d.ts.map +0 -1
- package/build/components/example/CameraCaptureExSimple.js.map +0 -1
- package/build/components/example/DynamicTemplateExample.d.ts.map +0 -1
- package/build/components/example/DynamicTemplateExample.js.map +0 -1
- package/build/components/example/OrientationVideoExample.d.ts.map +0 -1
- package/build/components/example/OrientationVideoExample.js.map +0 -1
- package/build/components/example/SelfieCaptureEx.d.ts.map +0 -1
- package/build/components/example/SelfieCaptureEx.js.map +0 -1
- package/build/components/ui/Button.d.ts.map +0 -1
- package/build/components/ui/Button.js.map +0 -1
- package/build/components/ui/ButtonExample.d.ts.map +0 -1
- package/build/components/ui/ButtonExample.js.map +0 -1
- package/build/components/ui/ButtonStyles.d.ts.map +0 -1
- package/build/components/ui/ButtonStyles.js.map +0 -1
- package/build/config/KYCConfig.d.ts.map +0 -1
- package/build/config/KYCConfig.js.map +0 -1
- package/build/config/KYCConfigs.d.ts.map +0 -1
- package/build/config/KYCConfigs.js.map +0 -1
- package/build/config/allowedDomains.d.ts.map +0 -1
- package/build/config/allowedDomains.js.map +0 -1
- package/build/config/countriesData.d.ts.map +0 -1
- package/build/config/countriesData.js.map +0 -1
- package/build/config/region_mapping.d.ts.map +0 -1
- package/build/config/region_mapping.js.map +0 -1
- package/build/hooks/useI18n.d.ts.map +0 -1
- package/build/hooks/useI18n.js.map +0 -1
- package/build/hooks/useKYC.d.ts.map +0 -1
- package/build/hooks/useKYC.js.map +0 -1
- package/build/hooks/useKYCFlow.d.ts.map +0 -1
- package/build/hooks/useKYCFlow.js.map +0 -1
- package/build/hooks/useLocation.d.ts.map +0 -1
- package/build/hooks/useLocation.js.map +0 -1
- package/build/hooks/useOrientationVideo.d.ts.map +0 -1
- package/build/hooks/useOrientationVideo.js.map +0 -1
- package/build/hooks/useRealtimeVerifier.d.ts.map +0 -1
- package/build/hooks/useRealtimeVerifier.js.map +0 -1
- package/build/hooks/useTemplateKYCFlow.d.ts.map +0 -1
- package/build/hooks/useTemplateKYCFlow.js.map +0 -1
- package/build/hooks/useTemplateLoader.d.ts.map +0 -1
- package/build/hooks/useTemplateLoader.js.map +0 -1
- package/build/i18n/en/index.js.map +0 -1
- package/build/i18n/fr/index.js.map +0 -1
- package/build/i18n/index.d.ts.map +0 -1
- package/build/i18n/index.js.map +0 -1
- package/build/i18n/types.d.ts.map +0 -1
- package/build/i18n/types.js.map +0 -1
- package/build/i18n/usage-example.d.ts.map +0 -1
- package/build/i18n/usage-example.js.map +0 -1
- package/build/index.d.ts.map +0 -1
- package/build/index.js.map +0 -1
- package/build/modules/api/CardAuthentification.d.ts.map +0 -1
- package/build/modules/api/CardAuthentification.js.map +0 -1
- package/build/modules/api/KYCService.d.ts.map +0 -1
- package/build/modules/api/KYCService.js.map +0 -1
- package/build/modules/api/SelfieVerification.d.ts.map +0 -1
- package/build/modules/api/SelfieVerification.js.map +0 -1
- package/build/modules/api/TemplateService.d.ts.map +0 -1
- package/build/modules/api/TemplateService.js.map +0 -1
- package/build/modules/api/backendApi.d.ts.map +0 -1
- package/build/modules/api/backendApi.js.map +0 -1
- package/build/modules/api/types.d.ts.map +0 -1
- package/build/modules/api/types.js.map +0 -1
- package/build/modules/camera/NativeCameraModule.d.ts.map +0 -1
- package/build/modules/camera/NativeCameraModule.js.map +0 -1
- package/build/modules/camera/UnifiedCameraModule.d.ts.map +0 -1
- package/build/modules/camera/UnifiedCameraModule.js.map +0 -1
- package/build/modules/camera/VisionCameraModule.d.ts.map +0 -1
- package/build/modules/camera/VisionCameraModule.js.map +0 -1
- package/build/modules/camera/VisionCameraModule.web.d.ts.map +0 -1
- package/build/modules/camera/VisionCameraModule.web.js.map +0 -1
- package/build/modules/camera/index.d.ts.map +0 -1
- package/build/modules/camera/index.js.map +0 -1
- package/build/stores/kycStore.d.ts.map +0 -1
- package/build/stores/kycStore.js.map +0 -1
- package/build/types/KYC.types.d.ts.map +0 -1
- package/build/types/KYC.types.js.map +0 -1
- package/build/types/env.types.d.ts.map +0 -1
- package/build/types/env.types.js.map +0 -1
- package/build/utils/cropByObb.d.ts.map +0 -1
- package/build/utils/cropByObb.js.map +0 -1
- package/build/utils/deviceDetection.d.ts.map +0 -1
- package/build/utils/deviceDetection.js.map +0 -1
- package/build/utils/get-document-type-info.d.ts.map +0 -1
- package/build/utils/get-document-type-info.js.map +0 -1
- package/build/utils/logger.d.ts.map +0 -1
- package/build/utils/logger.js.map +0 -1
- package/build/utils/pathToBase64.d.ts.map +0 -1
- package/build/utils/pathToBase64.js.map +0 -1
- package/build/utils/platformAlert.d.ts.map +0 -1
- package/build/utils/platformAlert.js.map +0 -1
- package/build/utils/remove-duplicate.d.ts.map +0 -1
- package/build/utils/remove-duplicate.js.map +0 -1
- package/build/utils/template-transformer.d.ts.map +0 -1
- package/build/utils/template-transformer.js.map +0 -1
- package/build/web/WebKYCEntry.d.ts.map +0 -1
- package/build/web/WebKYCEntry.js.map +0 -1
- package/build/web/index.d.ts.map +0 -1
- package/build/web/index.js.map +0 -1
- /package/android/build/intermediates/java_res/debug/processDebugJavaRes/out/META-INF/{transfergratis-react-native-sdk_debug.kotlin_module → sanctum-key-react-native-sdk_debug.kotlin_module} +0 -0
- /package/android/build/tmp/kotlin-classes/debug/META-INF/{transfergratis-react-native-sdk_debug.kotlin_module → sanctum-key-react-native-sdk_debug.kotlin_module} +0 -0
- /package/build/{TransfergratisSdk.types.d.ts → src/TransfergratisSdk.types.d.ts} +0 -0
- /package/build/{TransfergratisSdk.types.js → src/TransfergratisSdk.types.js} +0 -0
- /package/build/{TransfergratisSdkModule.d.ts → src/TransfergratisSdkModule.d.ts} +0 -0
- /package/build/{TransfergratisSdkModule.js → src/TransfergratisSdkModule.js} +0 -0
- /package/build/{TransfergratisSdkModule.web.d.ts → src/TransfergratisSdkModule.web.d.ts} +0 -0
- /package/build/{TransfergratisSdkModule.web.js → src/TransfergratisSdkModule.web.js} +0 -0
- /package/build/{TransfergratisSdkView.d.ts → src/TransfergratisSdkView.d.ts} +0 -0
- /package/build/{TransfergratisSdkView.js → src/TransfergratisSdkView.js} +0 -0
- /package/build/{TransfergratisSdkView.web.d.ts → src/TransfergratisSdkView.web.d.ts} +0 -0
- /package/build/{TransfergratisSdkView.web.js → src/TransfergratisSdkView.web.js} +0 -0
- /package/build/{api → src/api}/axios.d.ts +0 -0
- /package/build/{api → src/api}/axios.js +0 -0
- /package/build/{components → src/components}/Camera/index.d.ts +0 -0
- /package/build/{components → src/components}/Camera/index.js +0 -0
- /package/build/{components → src/components}/Camera/index.web.d.ts +0 -0
- /package/build/{components → src/components}/Camera/index.web.js +0 -0
- /package/build/{components → src/components}/Camera/types.d.ts +0 -0
- /package/build/{components → src/components}/Camera/types.js +0 -0
- /package/build/{components → src/components}/ConfigurableKYCFlow.d.ts +0 -0
- /package/build/{components → src/components}/ConfigurableKYCFlow.js +0 -0
- /package/build/{components → src/components}/CustomCameraExample.d.ts +0 -0
- /package/build/{components → src/components}/CustomCameraExample.js +0 -0
- /package/build/{components → src/components}/EnhancedCameraView.d.ts +0 -0
- /package/build/{components → src/components}/EnhancedCameraView.js +0 -0
- /package/build/{components → src/components}/EnhancedCameraView.web.d.ts +0 -0
- /package/build/{components → src/components}/EnhancedCameraView.web.js +0 -0
- /package/build/{components → src/components}/FileUpload.d.ts +0 -0
- /package/build/{components → src/components}/FileUpload.js +0 -0
- /package/build/{components → src/components}/KYCElementRenderer.d.ts +0 -0
- /package/build/{components → src/components}/KYCElementRenderer.js +0 -0
- /package/build/{components → src/components}/KYCElements/AdditionalDocumentsTemplate.d.ts +0 -0
- /package/build/{components → src/components}/KYCElements/AdditionalDocumentsTemplate.js +0 -0
- /package/build/{components → src/components}/KYCElements/CameraCapture.d.ts +0 -0
- /package/build/{components → src/components}/KYCElements/CameraCapture.js +0 -0
- /package/build/{components → src/components}/KYCElements/CompletionStep.d.ts +0 -0
- /package/build/{components → src/components}/KYCElements/CompletionStep.js +0 -0
- /package/build/{components → src/components}/KYCElements/CountrySelection.d.ts +0 -0
- /package/build/{components → src/components}/KYCElements/CountrySelection.js +0 -0
- /package/build/{components → src/components}/KYCElements/CountrySelectionTemplate.d.ts +0 -0
- /package/build/{components → src/components}/KYCElements/CountrySelectionTemplate.js +0 -0
- /package/build/{components → src/components}/KYCElements/DocumentTypeSelection.d.ts +0 -0
- /package/build/{components → src/components}/KYCElements/DocumentTypeSelection.js +0 -0
- /package/build/{components → src/components}/KYCElements/EmailVerificationTemplate.d.ts +0 -0
- /package/build/{components → src/components}/KYCElements/EmailVerificationTemplate.js +0 -0
- /package/build/{components → src/components}/KYCElements/FileUpload.d.ts +0 -0
- /package/build/{components → src/components}/KYCElements/FileUpload.js +0 -0
- /package/build/{components → src/components}/KYCElements/FileUploadTemplate.d.ts +0 -0
- /package/build/{components → src/components}/KYCElements/FileUploadTemplate.js +0 -0
- /package/build/{components → src/components}/KYCElements/IDCardCapture.d.ts +0 -0
- /package/build/{components → src/components}/KYCElements/InitializationStep.d.ts +0 -0
- /package/build/{components → src/components}/KYCElements/InitializationStep.js +0 -0
- /package/build/{components → src/components}/KYCElements/LocationCaptureTemplate.d.ts +0 -0
- /package/build/{components → src/components}/KYCElements/LocationCaptureTemplate.js +0 -0
- /package/build/{components → src/components}/KYCElements/OrientationVideoCapture.d.ts +0 -0
- /package/build/{components → src/components}/KYCElements/OrientationVideoCapture.js +0 -0
- /package/build/{components → src/components}/KYCElements/OrientationVideoCaptureEnhanced.d.ts +0 -0
- /package/build/{components → src/components}/KYCElements/OrientationVideoCaptureEnhanced.js +0 -0
- /package/build/{components → src/components}/KYCElements/OrientationVideoCaptureFinal.d.ts +0 -0
- /package/build/{components → src/components}/KYCElements/OrientationVideoCaptureFinal.js +0 -0
- /package/build/{components → src/components}/KYCElements/PersonalInformationTemplate.d.ts +0 -0
- /package/build/{components → src/components}/KYCElements/PersonalInformationTemplate.js +0 -0
- /package/build/{components → src/components}/KYCElements/PhoneVerificationTemplate.d.ts +0 -0
- /package/build/{components → src/components}/KYCElements/PhoneVerificationTemplate.js +0 -0
- /package/build/{components → src/components}/KYCElements/ReviewSubmitTemplate.d.ts +0 -0
- /package/build/{components → src/components}/KYCElements/ReviewSubmitTemplate.js +0 -0
- /package/build/{components → src/components}/KYCElements/SelfieCapture.d.ts +0 -0
- /package/build/{components → src/components}/KYCElements/SelfieCapture.js +0 -0
- /package/build/{components → src/components}/KYCElements/SelfieCaptureTemplate.d.ts +0 -0
- /package/build/{components → src/components}/KYCElements/SelfieCaptureTemplate.js +0 -0
- /package/build/{components → src/components}/KYCElements/VerificationProgressTemplate.d.ts +0 -0
- /package/build/{components → src/components}/KYCElements/VerificationStep.d.ts +0 -0
- /package/build/{components → src/components}/KYCElements/VerificationStep.js +0 -0
- /package/build/{components → src/components}/KYCElements/WelcomeTemplate.d.ts +0 -0
- /package/build/{components → src/components}/KYCExample.d.ts +0 -0
- /package/build/{components → src/components}/KYCExample.js +0 -0
- /package/build/{components → src/components}/KYCFlow.d.ts +0 -0
- /package/build/{components → src/components}/KYCFlow.js +0 -0
- /package/build/{components → src/components}/NativeCameraView.d.ts +0 -0
- /package/build/{components → src/components}/NativeCameraView.js +0 -0
- /package/build/{components → src/components}/OverLay/IdCard.d.ts +0 -0
- /package/build/{components → src/components}/OverLay/IdCard.js +0 -0
- /package/build/{components → src/components}/OverLay/SelfieOverlay.d.ts +0 -0
- /package/build/{components → src/components}/OverLay/SelfieOverlay.js +0 -0
- /package/build/{components → src/components}/OverLay/StepOverlay.d.ts +0 -0
- /package/build/{components → src/components}/OverLay/StepOverlay.js +0 -0
- /package/build/{components → src/components}/OverLay/type.d.ts +0 -0
- /package/build/{components → src/components}/OverLay/type.js +0 -0
- /package/build/{components → src/components}/ProgressIndicator.d.ts +0 -0
- /package/build/{components → src/components}/ProgressIndicator.js +0 -0
- /package/build/{components → src/components}/SelfieCapture.d.ts +0 -0
- /package/build/{components → src/components}/SelfieCapture.js +0 -0
- /package/build/{components → src/components}/SimpleExample.d.ts +0 -0
- /package/build/{components → src/components}/SimpleExample.js +0 -0
- /package/build/{components → src/components}/Svgs/GpsIcon.d.ts +0 -0
- /package/build/{components → src/components}/Svgs/GpsIcon.js +0 -0
- /package/build/{components → src/components}/Svgs/Schield.d.ts +0 -0
- /package/build/{components → src/components}/Svgs/Schield.js +0 -0
- /package/build/{components → src/components}/Svgs/frontSelfieIcon.d.ts +0 -0
- /package/build/{components → src/components}/Svgs/frontSelfieIcon.js +0 -0
- /package/build/{components → src/components}/Svgs/scanningLine.d.ts +0 -0
- /package/build/{components → src/components}/Svgs/scanningLine.js +0 -0
- /package/build/{components → src/components}/Svgs/sideSelfieIcon.d.ts +0 -0
- /package/build/{components → src/components}/Svgs/sideSelfieIcon.js +0 -0
- /package/build/{components → src/components}/VisionCameraView.d.ts +0 -0
- /package/build/{components → src/components}/VisionCameraView.js +0 -0
- /package/build/{components → src/components}/example/CameraCaptureEx.d.ts +0 -0
- /package/build/{components → src/components}/example/CameraCaptureEx.js +0 -0
- /package/build/{components → src/components}/example/CameraCaptureExAdvanced.d.ts +0 -0
- /package/build/{components → src/components}/example/CameraCaptureExAdvanced.js +0 -0
- /package/build/{components → src/components}/example/CameraCaptureExScan.d.ts +0 -0
- /package/build/{components → src/components}/example/CameraCaptureExScan.js +0 -0
- /package/build/{components → src/components}/example/CameraCaptureExSimple.d.ts +0 -0
- /package/build/{components → src/components}/example/CameraCaptureExSimple.js +0 -0
- /package/build/{components → src/components}/example/DynamicTemplateExample.d.ts +0 -0
- /package/build/{components → src/components}/example/DynamicTemplateExample.js +0 -0
- /package/build/{components → src/components}/example/OrientationVideoExample.d.ts +0 -0
- /package/build/{components → src/components}/example/OrientationVideoExample.js +0 -0
- /package/build/{components → src/components}/example/SelfieCaptureEx.d.ts +0 -0
- /package/build/{components → src/components}/example/SelfieCaptureEx.js +0 -0
- /package/build/{components → src/components}/ui/Button.d.ts +0 -0
- /package/build/{components → src/components}/ui/Button.js +0 -0
- /package/build/{components → src/components}/ui/ButtonExample.d.ts +0 -0
- /package/build/{components → src/components}/ui/ButtonExample.js +0 -0
- /package/build/{components → src/components}/ui/ButtonStyles.d.ts +0 -0
- /package/build/{components → src/components}/ui/ButtonStyles.js +0 -0
- /package/build/{config → src/config}/KYCConfig.d.ts +0 -0
- /package/build/{config → src/config}/KYCConfig.js +0 -0
- /package/build/{config → src/config}/KYCConfigs.d.ts +0 -0
- /package/build/{config → src/config}/KYCConfigs.js +0 -0
- /package/build/{config → src/config}/allowedDomains.d.ts +0 -0
- /package/build/{config → src/config}/allowedDomains.js +0 -0
- /package/build/{config → src/config}/countriesData.d.ts +0 -0
- /package/build/{config → src/config}/countriesData.js +0 -0
- /package/build/{config → src/config}/region_mapping.d.ts +0 -0
- /package/build/{hooks → src/hooks}/useI18n.d.ts +0 -0
- /package/build/{hooks → src/hooks}/useI18n.js +0 -0
- /package/build/{hooks → src/hooks}/useKYC.d.ts +0 -0
- /package/build/{hooks → src/hooks}/useKYC.js +0 -0
- /package/build/{hooks → src/hooks}/useKYCFlow.d.ts +0 -0
- /package/build/{hooks → src/hooks}/useKYCFlow.js +0 -0
- /package/build/{hooks → src/hooks}/useLocation.d.ts +0 -0
- /package/build/{hooks → src/hooks}/useLocation.js +0 -0
- /package/build/{hooks → src/hooks}/useOrientationVideo.d.ts +0 -0
- /package/build/{hooks → src/hooks}/useOrientationVideo.js +0 -0
- /package/build/{hooks → src/hooks}/useRealtimeVerifier.d.ts +0 -0
- /package/build/{hooks → src/hooks}/useRealtimeVerifier.js +0 -0
- /package/build/{hooks → src/hooks}/useTemplateLoader.d.ts +0 -0
- /package/build/{hooks → src/hooks}/useTemplateLoader.js +0 -0
- /package/build/{i18n → src/i18n}/en/index.d.ts +0 -0
- /package/build/{i18n → src/i18n}/en/index.js +0 -0
- /package/build/{i18n → src/i18n}/fr/index.d.ts +0 -0
- /package/build/{i18n → src/i18n}/fr/index.js +0 -0
- /package/build/{i18n → src/i18n}/index.d.ts +0 -0
- /package/build/{i18n → src/i18n}/index.js +0 -0
- /package/build/{i18n → src/i18n}/types.d.ts +0 -0
- /package/build/{i18n → src/i18n}/types.js +0 -0
- /package/build/{i18n → src/i18n}/usage-example.d.ts +0 -0
- /package/build/{i18n → src/i18n}/usage-example.js +0 -0
- /package/build/{modules → src/modules}/api/KYCService.d.ts +0 -0
- /package/build/{modules → src/modules}/api/SelfieVerification.d.ts +0 -0
- /package/build/{modules → src/modules}/api/SelfieVerification.js +0 -0
- /package/build/{modules → src/modules}/api/TemplateService.d.ts +0 -0
- /package/build/{modules → src/modules}/api/TemplateService.js +0 -0
- /package/build/{modules → src/modules}/api/backendApi.d.ts +0 -0
- /package/build/{modules → src/modules}/api/backendApi.js +0 -0
- /package/build/{modules → src/modules}/api/types.d.ts +0 -0
- /package/build/{modules → src/modules}/api/types.js +0 -0
- /package/build/{modules → src/modules}/camera/NativeCameraModule.d.ts +0 -0
- /package/build/{modules → src/modules}/camera/NativeCameraModule.js +0 -0
- /package/build/{modules → src/modules}/camera/UnifiedCameraModule.d.ts +0 -0
- /package/build/{modules → src/modules}/camera/UnifiedCameraModule.js +0 -0
- /package/build/{modules → src/modules}/camera/VisionCameraModule.d.ts +0 -0
- /package/build/{modules → src/modules}/camera/VisionCameraModule.js +0 -0
- /package/build/{modules → src/modules}/camera/VisionCameraModule.web.d.ts +0 -0
- /package/build/{modules → src/modules}/camera/VisionCameraModule.web.js +0 -0
- /package/build/{modules → src/modules}/camera/index.d.ts +0 -0
- /package/build/{modules → src/modules}/camera/index.js +0 -0
- /package/build/{stores → src/stores}/kycStore.d.ts +0 -0
- /package/build/{stores → src/stores}/kycStore.js +0 -0
- /package/build/{types → src/types}/KYC.types.d.ts +0 -0
- /package/build/{types → src/types}/KYC.types.js +0 -0
- /package/build/{types → src/types}/env.types.d.ts +0 -0
- /package/build/{types → src/types}/env.types.js +0 -0
- /package/build/{utils → src/utils}/cropByObb.d.ts +0 -0
- /package/build/{utils → src/utils}/cropByObb.js +0 -0
- /package/build/{utils → src/utils}/deviceDetection.d.ts +0 -0
- /package/build/{utils → src/utils}/deviceDetection.js +0 -0
- /package/build/{utils → src/utils}/get-document-type-info.d.ts +0 -0
- /package/build/{utils → src/utils}/get-document-type-info.js +0 -0
- /package/build/{utils → src/utils}/logger.d.ts +0 -0
- /package/build/{utils → src/utils}/logger.js +0 -0
- /package/build/{utils → src/utils}/pathToBase64.d.ts +0 -0
- /package/build/{utils → src/utils}/pathToBase64.js +0 -0
- /package/build/{utils → src/utils}/platformAlert.d.ts +0 -0
- /package/build/{utils → src/utils}/platformAlert.js +0 -0
- /package/build/{utils → src/utils}/remove-duplicate.d.ts +0 -0
- /package/build/{utils → src/utils}/remove-duplicate.js +0 -0
- /package/build/{utils → src/utils}/template-transformer.d.ts +0 -0
- /package/build/{utils → src/utils}/template-transformer.js +0 -0
- /package/build/{web → src/web}/index.d.ts +0 -0
- /package/build/{web → src/web}/index.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useState, useCallback, useMemo, createContext, useContext, ReactNode, useEffect } from 'react';
|
|
1
|
+
import React, { useState, useCallback, useMemo, createContext, useContext, ReactNode, useEffect, useRef } from 'react';
|
|
2
2
|
import { KYCTemplate, TemplateState, TemplateActions, UseTemplateReturn, TemplateComponent, GovernmentDocumentType, VerificationState } from '../types/KYC.types';
|
|
3
3
|
import { KycEnvironment } from '../types/env.types';
|
|
4
4
|
import kycService, { authentification, truncateFields } from '../modules/api/KYCService';
|
|
@@ -39,6 +39,8 @@ interface TemplateKYCFlowProviderProps {
|
|
|
39
39
|
initialComponentIndex?: number;
|
|
40
40
|
/** Pays / type de document depuis l'URL de reprise — évite de dépendre du backend pour afficher les pays. */
|
|
41
41
|
initialCountryResume?: { code: string; documentType: string; region?: string };
|
|
42
|
+
referenceId?: string;
|
|
43
|
+
onSessionSave?: (sessionId: string) => void;
|
|
42
44
|
}
|
|
43
45
|
|
|
44
46
|
export const TemplateKYCFlowProvider: React.FC<TemplateKYCFlowProviderProps> = ({
|
|
@@ -53,8 +55,10 @@ export const TemplateKYCFlowProvider: React.FC<TemplateKYCFlowProviderProps> = (
|
|
|
53
55
|
existingSessionId,
|
|
54
56
|
initialComponentIndex,
|
|
55
57
|
initialCountryResume,
|
|
58
|
+
referenceId,
|
|
59
|
+
onSessionSave,
|
|
56
60
|
}) => {
|
|
57
|
-
const hookResult = useTemplateKYCFlow(template, onComplete, onError, onCancel, initialLanguage, apiKey, env, existingSessionId, initialComponentIndex, initialCountryResume);
|
|
61
|
+
const hookResult = useTemplateKYCFlow(template, onComplete, onError, onCancel, initialLanguage, apiKey, env, existingSessionId, initialComponentIndex, initialCountryResume, referenceId, onSessionSave);
|
|
58
62
|
|
|
59
63
|
return (
|
|
60
64
|
<TemplateKYCFlowContext.Provider value={hookResult}>
|
|
@@ -83,6 +87,8 @@ export const useTemplateKYCFlow = (
|
|
|
83
87
|
existingSessionId?: string,
|
|
84
88
|
initialComponentIndex?: number,
|
|
85
89
|
initialCountryResume?: { code: string; documentType: string; region?: string },
|
|
90
|
+
referenceId?: string,
|
|
91
|
+
onSessionSave?: (sessionId: string) => void,
|
|
86
92
|
): UseTemplateReturn => {
|
|
87
93
|
|
|
88
94
|
const { setLocale } = useI18n();
|
|
@@ -253,6 +259,7 @@ export const useTemplateKYCFlow = (
|
|
|
253
259
|
|
|
254
260
|
// État du flux
|
|
255
261
|
const [state, setState] = useState<TemplateState>(() => buildInitialState());
|
|
262
|
+
const hasSavedSessionRef = useRef(false);
|
|
256
263
|
|
|
257
264
|
// Fonction utilitaire pour convertir base64 en data URI pour l'affichage
|
|
258
265
|
const base64ToDataUri = useCallback((base64: string, mimeType: string = 'image/jpeg'): string => {
|
|
@@ -541,7 +548,13 @@ export const useTemplateKYCFlow = (
|
|
|
541
548
|
const buildPayloadForComponent = useCallback((action: string | null, component: TemplateComponent, rawData: any, templateId: string, step: number) => {
|
|
542
549
|
console.log('apiKey in buildPayloadForComponent', apiKey);
|
|
543
550
|
|
|
544
|
-
const base = {
|
|
551
|
+
const base = {
|
|
552
|
+
template_id: templateId || null,
|
|
553
|
+
templateId: templateId || null,
|
|
554
|
+
step: component.order,
|
|
555
|
+
permissionGranted: true,
|
|
556
|
+
...(referenceId ? { reference_id: referenceId } : {}),
|
|
557
|
+
} as any;
|
|
545
558
|
if (!action) {
|
|
546
559
|
return base;
|
|
547
560
|
}
|
|
@@ -593,7 +606,7 @@ export const useTemplateKYCFlow = (
|
|
|
593
606
|
|
|
594
607
|
// Default: wrap as metadata
|
|
595
608
|
return { ...base, metadata: { ...(rawData || {}) } };
|
|
596
|
-
}, [state.componentData, apiKey]);
|
|
609
|
+
}, [state.componentData, apiKey, referenceId]);
|
|
597
610
|
// Ensure the template contains a final review step
|
|
598
611
|
|
|
599
612
|
// console.log('apiKey in useTemplateKYCFlow', apiKey);
|
|
@@ -672,13 +685,26 @@ export const useTemplateKYCFlow = (
|
|
|
672
685
|
session = await kycService.newSession({ token, apiKey });
|
|
673
686
|
}
|
|
674
687
|
|
|
688
|
+
// Notify session creation/resume as soon as we have an ID.
|
|
689
|
+
// This makes save_session webhook calls more reliable on all runtimes.
|
|
690
|
+
if (onSessionSave && !hasSavedSessionRef.current && session?.session_id) {
|
|
691
|
+
hasSavedSessionRef.current = true;
|
|
692
|
+
onSessionSave(session.session_id);
|
|
693
|
+
}
|
|
694
|
+
|
|
675
695
|
// Align backend flow from step 0 with initialize_session
|
|
676
696
|
try {
|
|
677
697
|
const templateId = chooseTemplateId(templateWithReviewAndVerification);
|
|
678
698
|
await kycService.verificationSession({
|
|
679
699
|
session_id: session.session_id,
|
|
680
700
|
step: 0,
|
|
681
|
-
data: {
|
|
701
|
+
data: {
|
|
702
|
+
template_id: templateId,
|
|
703
|
+
metadata: {
|
|
704
|
+
language: initialLanguage,
|
|
705
|
+
...(referenceId ? { reference_id: referenceId } : {}),
|
|
706
|
+
},
|
|
707
|
+
},
|
|
682
708
|
templateId: templateId,
|
|
683
709
|
token: token,
|
|
684
710
|
action: 'initialize_session',
|
|
@@ -713,7 +739,7 @@ export const useTemplateKYCFlow = (
|
|
|
713
739
|
},
|
|
714
740
|
}));
|
|
715
741
|
}
|
|
716
|
-
}, [apiKey]);
|
|
742
|
+
}, [apiKey, referenceId, chooseTemplateId, templateWithReviewAndVerification, initialLanguage, state.session.session_id, onSessionSave]);
|
|
717
743
|
|
|
718
744
|
// When user switches device: resume with existingSessionId + initialStep — ensure session is initialized so loadSessionData runs
|
|
719
745
|
useEffect(() => {
|
|
@@ -723,6 +749,15 @@ export const useTemplateKYCFlow = (
|
|
|
723
749
|
initializeSession();
|
|
724
750
|
}, [existingSessionId, state.session.session_id, state.session.isInitialized, initializeSession]);
|
|
725
751
|
|
|
752
|
+
// Emit session id once when session becomes available.
|
|
753
|
+
useEffect(() => {
|
|
754
|
+
if (!onSessionSave || hasSavedSessionRef.current) return;
|
|
755
|
+
if (!state.session.isInitialized || !state.session.session_id) return;
|
|
756
|
+
|
|
757
|
+
hasSavedSessionRef.current = true;
|
|
758
|
+
onSessionSave(state.session.session_id);
|
|
759
|
+
}, [onSessionSave, state.session.isInitialized, state.session.session_id]);
|
|
760
|
+
|
|
726
761
|
// Validation d'un composant (dataOverride permet de valider sans attendre la mise à jour du state)
|
|
727
762
|
const validateComponent = useCallback((componentId: number, dataOverride?: any): boolean => {
|
|
728
763
|
const component = state.template.components.find(c => c.id === componentId);
|
package/src/index.ts
CHANGED
|
@@ -8,6 +8,8 @@ export * from './types/KYC.types';
|
|
|
8
8
|
export * from './types/env.types';
|
|
9
9
|
|
|
10
10
|
|
|
11
|
+
export { TemplateKYCExample as LaunchTransferGratisKYC } from './components/TemplateKYCExample';
|
|
12
|
+
// Backward compatibility for existing integrations using the typo.
|
|
11
13
|
export { TemplateKYCExample as LauchTransferGratisKYC } from './components/TemplateKYCExample';
|
|
12
14
|
|
|
13
15
|
// Export Template Flow Components
|
|
@@ -20,6 +22,8 @@ export { useTemplateLoader } from './hooks/useTemplateLoader';
|
|
|
20
22
|
|
|
21
23
|
// Export Template Components
|
|
22
24
|
export { WelcomeTemplate } from './components/KYCElements/WelcomeTemplate';
|
|
25
|
+
export { EnhancedCameraView } from './components/EnhancedCameraView';
|
|
26
|
+
export { UnifiedCameraModule } from './modules/camera';
|
|
23
27
|
|
|
24
28
|
// Export Web KYC Components
|
|
25
29
|
export { WebKYCEntry } from './web';
|
|
@@ -15,8 +15,11 @@ interface CardObbData {
|
|
|
15
15
|
|
|
16
16
|
interface ApiVerificationResponse {
|
|
17
17
|
result?: boolean;
|
|
18
|
+
success?: boolean;
|
|
18
19
|
detail?: any[];
|
|
19
20
|
card_obb?: CardObbData[] | any;
|
|
21
|
+
template_path?: string;
|
|
22
|
+
Error?: any;
|
|
20
23
|
[key: string]: any;
|
|
21
24
|
}
|
|
22
25
|
|
|
@@ -128,8 +131,12 @@ export async function frontVerification(
|
|
|
128
131
|
bbox = crop.bbox;
|
|
129
132
|
} catch { }
|
|
130
133
|
|
|
131
|
-
// MRZ Extraction
|
|
132
|
-
|
|
134
|
+
// MRZ Extraction: only run when a concrete mrzType is available
|
|
135
|
+
const shouldRunMrzExtraction =
|
|
136
|
+
result.regionMapping?.authMethod?.length > 0 &&
|
|
137
|
+
result.regionMapping.authMethod.includes('MRZ') &&
|
|
138
|
+
!!result?.mrzType;
|
|
139
|
+
if (shouldRunMrzExtraction) {
|
|
133
140
|
const mrzResponse = await kycService.extractMrzText(
|
|
134
141
|
{
|
|
135
142
|
fileUri: result.path || '',
|
|
@@ -160,128 +167,18 @@ export async function frontVerification(
|
|
|
160
167
|
}
|
|
161
168
|
}
|
|
162
169
|
|
|
163
|
-
// export async function frontVerification(
|
|
164
|
-
// result: { path?: string, regionMapping: { authMethod: string[], mrzTypes: string[] }, selectedDocumentType: string, code: string, currentSide: string, templatePath?: string, mrzType?: string },
|
|
165
|
-
// env: KycEnvironment = 'PRODUCTION'
|
|
166
|
-
// ) {
|
|
167
|
-
// try {
|
|
168
|
-
// console.log("Front verification START", JSON.stringify({ result }, null, 2));
|
|
169
|
-
// logger.log("Front verification", JSON.stringify({ result }, null, 2));
|
|
170
|
-
|
|
171
|
-
// // SANDBOX mode
|
|
172
|
-
// if (env === 'SANDBOX') {
|
|
173
|
-
// console.log("SANDBOX mode: Skipping AI verification for front document");
|
|
174
|
-
// logger.log("SANDBOX mode: Returning mock front verification response");
|
|
175
|
-
// const mockBbox: IBbox = { minX: 400, minY: 800, width: 2200, height: 1400 };
|
|
176
|
-
|
|
177
|
-
// // ==========================================
|
|
178
|
-
// // 🧪 TEST OVERRIDE (SANDBOX) 🧪
|
|
179
|
-
// // Immediately throw the error to test the UI
|
|
180
|
-
// // ==========================================
|
|
181
|
-
// throw new Error('CARD_NOT_FULLY_IN_FRAME');
|
|
182
|
-
|
|
183
|
-
// const mockResponse = {
|
|
184
|
-
// result: true,
|
|
185
|
-
// detail: [{ confidence: 0.95 }],
|
|
186
|
-
// card_obb: [{
|
|
187
|
-
// obb: [[400,800], [2600,800], [2600,2200], [400,2200]],
|
|
188
|
-
// confidence: 0.95,
|
|
189
|
-
// card_in_frame: false, // Hardcoded to false
|
|
190
|
-
// cropped_sides: ['left', 'top'] // Hardcoded cropped sides
|
|
191
|
-
// }],
|
|
192
|
-
// bbox: mockBbox,
|
|
193
|
-
// ...(result.regionMapping?.authMethod?.includes('MRZ') ? {
|
|
194
|
-
// mrz: {
|
|
195
|
-
// success: true,
|
|
196
|
-
// parsed_data: {
|
|
197
|
-
// status: 'success',
|
|
198
|
-
// document_type: result.selectedDocumentType,
|
|
199
|
-
// mrz_type: result.mrzType || 'TD1'
|
|
200
|
-
// }
|
|
201
|
-
// }
|
|
202
|
-
// } : {})
|
|
203
|
-
// };
|
|
204
|
-
// return mockResponse;
|
|
205
|
-
// }
|
|
206
|
-
|
|
207
|
-
// const token = await authentification();
|
|
208
|
-
|
|
209
|
-
// // Cast the response so TypeScript knows about card_obb
|
|
210
|
-
// const detected = await kycService.detectFaceOnId(result?.path || '', token, result?.selectedDocumentType || '', env) as ApiVerificationResponse;
|
|
211
|
-
|
|
212
|
-
// // ==========================================
|
|
213
|
-
// // 🧪 TEST OVERRIDE (PRODUCTION) 🧪
|
|
214
|
-
// // Hijack the real API response and force it to look cropped
|
|
215
|
-
// // ==========================================
|
|
216
|
-
// if (detected.card_obb && Array.isArray(detected.card_obb) && detected.card_obb.length > 0) {
|
|
217
|
-
// detected.card_obb[0].card_in_frame = false;
|
|
218
|
-
// detected.card_obb[0].cropped_sides = ['left', 'top'];
|
|
219
|
-
// console.warn("⚠️ FORCING CROPPED ERROR FOR UI TESTING ⚠️");
|
|
220
|
-
// }
|
|
221
|
-
// // ==========================================
|
|
222
|
-
|
|
223
|
-
// if (!detected.result) {
|
|
224
|
-
// throw new Error('Aucun visage détecté sur la carte. Veuillez reprendre.');
|
|
225
|
-
// }
|
|
226
|
-
|
|
227
|
-
// const cardData = detected.card_obb && Array.isArray(detected.card_obb) && detected.card_obb.length > 0
|
|
228
|
-
// ? detected.card_obb[0]
|
|
229
|
-
// : null;
|
|
230
|
-
|
|
231
|
-
// // --- STRICT FRAMING CHECK ---
|
|
232
|
-
// if (cardData && typeof cardData.card_in_frame !== 'undefined') {
|
|
233
|
-
// const isCardInFrame = cardData.card_in_frame === true;
|
|
234
|
-
// const hasCroppedSides = Array.isArray(cardData.cropped_sides) && cardData.cropped_sides.length > 0;
|
|
235
|
-
|
|
236
|
-
// // If it is NOT in the frame, OR if any side is cropped, block progression
|
|
237
|
-
// if (!isCardInFrame || hasCroppedSides) {
|
|
238
|
-
// logger.log(`Framing failed. Cropped sides: ${hasCroppedSides ? cardData.cropped_sides?.join(', ') : 'none'}`);
|
|
239
|
-
// throw new Error('CARD_NOT_FULLY_IN_FRAME');
|
|
240
|
-
// }
|
|
241
|
-
// }
|
|
242
|
-
|
|
243
|
-
// // Check Confidence Threshold
|
|
244
|
-
// const obbConfidence = getObbConfidence(detected.card_obb);
|
|
245
|
-
// if (obbConfidence !== null && obbConfidence < OBB_CONFIDENCE_THRESHOLD) {
|
|
246
|
-
// throw new Error('Carte non entièrement visible. Positionnez toute la carte dans le cadre.');
|
|
247
|
-
// }
|
|
248
|
-
|
|
249
|
-
// // Optional: crop image using card_obb for better MRZ/barcode extraction
|
|
250
|
-
// let croppedBase64: string | undefined;
|
|
251
|
-
// let bbox: IBbox | undefined;
|
|
252
|
-
// let mrz: any | undefined;
|
|
253
|
-
// try {
|
|
254
|
-
// const crop = await cropByObb(result?.path || '', detected.card_obb);
|
|
255
|
-
// croppedBase64 = crop.base64;
|
|
256
|
-
// bbox = crop.bbox;
|
|
257
|
-
// } catch { }
|
|
258
|
-
|
|
259
|
-
// // MRZ Extraction
|
|
260
|
-
// if (result.regionMapping?.authMethod?.length > 0 && result.regionMapping.authMethod.includes('MRZ')) {
|
|
261
|
-
// mrz = await kycService.extractMrzText(
|
|
262
|
-
// {
|
|
263
|
-
// fileUri: result.path || '',
|
|
264
|
-
// docType: result?.selectedDocumentType || '',
|
|
265
|
-
// docRegion: result?.code || "",
|
|
266
|
-
// postfix: result?.currentSide,
|
|
267
|
-
// token: token,
|
|
268
|
-
// template_path: result?.templatePath || '',
|
|
269
|
-
// mrz_type: result?.mrzType || ''
|
|
270
|
-
// },
|
|
271
|
-
// env
|
|
272
|
-
// );
|
|
273
|
-
// }
|
|
274
|
-
|
|
275
|
-
// return { ...detected, croppedBase64, bbox, ...(mrz ? { mrz } : {}) };
|
|
276
|
-
// } catch (e: any) {
|
|
277
|
-
// logger.error('Error front verification:', JSON.stringify(errorMessage(e), null, 2));
|
|
278
|
-
// throw new Error(e?.message || 'Erreur de détection du visage');
|
|
279
|
-
// }
|
|
280
|
-
// }
|
|
281
|
-
|
|
282
170
|
|
|
283
171
|
export async function backVerification(
|
|
284
|
-
result: {
|
|
172
|
+
result: {
|
|
173
|
+
path?: string,
|
|
174
|
+
regionMapping: { authMethod: string[], mrzTypes: string[] },
|
|
175
|
+
selectedDocumentType: string,
|
|
176
|
+
code: string,
|
|
177
|
+
currentSide: string,
|
|
178
|
+
templatePath?: string,
|
|
179
|
+
mrzType?: string,
|
|
180
|
+
templateResponse?: ApiVerificationResponse
|
|
181
|
+
},
|
|
285
182
|
env: KycEnvironment = 'PRODUCTION'
|
|
286
183
|
) {
|
|
287
184
|
try {
|
|
@@ -328,13 +225,13 @@ export async function backVerification(
|
|
|
328
225
|
|
|
329
226
|
logger.log("1. Checking template and framing for back document...");
|
|
330
227
|
|
|
331
|
-
const templateResponse = await kycService.checkTemplateType({
|
|
228
|
+
const templateResponse: ApiVerificationResponse = result.templateResponse || await kycService.checkTemplateType({
|
|
332
229
|
fileUri: result.path,
|
|
333
230
|
docType: result.selectedDocumentType as any,
|
|
334
231
|
docRegion: result.code,
|
|
335
232
|
postfix: 'back',
|
|
336
233
|
token: token
|
|
337
|
-
}, env)
|
|
234
|
+
}, env);
|
|
338
235
|
|
|
339
236
|
if (templateResponse.success === false || templateResponse.Error) {
|
|
340
237
|
logger.log("Backend returned an error:", templateResponse.Error);
|
|
@@ -419,7 +316,7 @@ export async function backVerification(
|
|
|
419
316
|
|
|
420
317
|
logger.log("Framing and Country Template verified successfully. Proceeding to Data Extraction.");
|
|
421
318
|
|
|
422
|
-
const hasMrz = result.regionMapping?.authMethod?.includes('MRZ')
|
|
319
|
+
const hasMrz = result.regionMapping?.authMethod?.includes('MRZ') && result?.mrzType;
|
|
423
320
|
const hasBarcode = result.regionMapping?.authMethod?.includes('2D_barcode');
|
|
424
321
|
|
|
425
322
|
let extractionResult: any = {};
|
|
@@ -622,10 +622,10 @@ export function truncateFields(obj: any, maxLength = 420): any {
|
|
|
622
622
|
|
|
623
623
|
export const authentification = async () => {
|
|
624
624
|
try {
|
|
625
|
-
logger.log('authentification params', 'kyc_frontend', '
|
|
625
|
+
logger.log('authentification params', 'kyc_frontend', 'QhgAmvKgmwODzsEp98dnA4PeUEMMaFHd');
|
|
626
626
|
const params = new URLSearchParams();
|
|
627
627
|
params.append('client_id', 'kyc_frontend');
|
|
628
|
-
params.append('client_secret', '
|
|
628
|
+
params.append('client_secret', 'QhgAmvKgmwODzsEp98dnA4PeUEMMaFHd');
|
|
629
629
|
params.append('grant_type', 'client_credentials');
|
|
630
630
|
const res = await axios.post(`https://keycloak.transfergratis.net/realms/kyc/protocol/openid-connect/token`,
|
|
631
631
|
params,
|
package/src/web/WebKYCEntry.tsx
CHANGED
|
@@ -12,12 +12,15 @@ interface WebKYCEntryProps {
|
|
|
12
12
|
onComplete?: (data: any) => void;
|
|
13
13
|
onError?: (error: string) => void;
|
|
14
14
|
onCancel?: () => void;
|
|
15
|
+
onSessionSave?: (sessionId: string) => void;
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
interface URLParams {
|
|
18
19
|
token?: string;
|
|
19
20
|
return_url?: string;
|
|
20
21
|
push_url?: string;
|
|
22
|
+
save_session_url?: string;
|
|
23
|
+
reference_id?: string;
|
|
21
24
|
lang?: string;
|
|
22
25
|
theme?: string;
|
|
23
26
|
kyc_id?: string;
|
|
@@ -38,10 +41,75 @@ interface VerificationSteps {
|
|
|
38
41
|
liveness_checked?: boolean;
|
|
39
42
|
}
|
|
40
43
|
|
|
44
|
+
const postWebhook = async (url: string, payload: unknown, timeoutMs: number = 5000) => {
|
|
45
|
+
const body = JSON.stringify(payload);
|
|
46
|
+
|
|
47
|
+
const postWithTimeout = async (init: RequestInit) => {
|
|
48
|
+
const controller = new AbortController();
|
|
49
|
+
const timeoutId = setTimeout(() => controller.abort(), timeoutMs);
|
|
50
|
+
try {
|
|
51
|
+
return await fetch(url, {
|
|
52
|
+
method: 'POST',
|
|
53
|
+
...init,
|
|
54
|
+
signal: controller.signal,
|
|
55
|
+
});
|
|
56
|
+
} finally {
|
|
57
|
+
clearTimeout(timeoutId);
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
// In browser, first try a regular JSON POST so servers validating Content-Type
|
|
62
|
+
// behave the same as Postman/cURL.
|
|
63
|
+
if (typeof window !== 'undefined') {
|
|
64
|
+
try {
|
|
65
|
+
const response = await postWithTimeout({
|
|
66
|
+
headers: {
|
|
67
|
+
'Content-Type': 'application/json',
|
|
68
|
+
},
|
|
69
|
+
body,
|
|
70
|
+
keepalive: true,
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
if (!response.ok) {
|
|
74
|
+
throw new Error(`Webhook failed with status ${response.status}`);
|
|
75
|
+
}
|
|
76
|
+
return;
|
|
77
|
+
} catch (error) {
|
|
78
|
+
// If the request is blocked by browser CORS policy or a network error occurs,
|
|
79
|
+
// fallback to no-cors + text/plain for best-effort delivery.
|
|
80
|
+
if (error instanceof Error && error.name === 'AbortError') {
|
|
81
|
+
throw error;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
await postWithTimeout({
|
|
85
|
+
mode: 'no-cors',
|
|
86
|
+
headers: {
|
|
87
|
+
'Content-Type': 'text/plain;charset=UTF-8',
|
|
88
|
+
},
|
|
89
|
+
body,
|
|
90
|
+
keepalive: true,
|
|
91
|
+
});
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
const response = await postWithTimeout({
|
|
97
|
+
headers: {
|
|
98
|
+
'Content-Type': 'application/json',
|
|
99
|
+
},
|
|
100
|
+
body,
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
if (!response.ok) {
|
|
104
|
+
throw new Error(`Webhook failed with status ${response.status}`);
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
|
|
41
108
|
const WebKYCEntry: React.FC<WebKYCEntryProps> = ({
|
|
42
109
|
onComplete,
|
|
43
110
|
onError,
|
|
44
111
|
onCancel,
|
|
112
|
+
onSessionSave,
|
|
45
113
|
}) => {
|
|
46
114
|
const { setLocale } = useI18n();
|
|
47
115
|
const [urlParams, setUrlParams] = useState<URLParams>({});
|
|
@@ -66,6 +134,11 @@ const WebKYCEntry: React.FC<WebKYCEntryProps> = ({
|
|
|
66
134
|
token: urlParams.get('token') || undefined,
|
|
67
135
|
return_url: urlParams.get('return_url') || undefined,
|
|
68
136
|
push_url: urlParams.get('push_url') || undefined,
|
|
137
|
+
save_session_url:
|
|
138
|
+
urlParams.get('save_session_url') ||
|
|
139
|
+
urlParams.get('saveSessionUrl') ||
|
|
140
|
+
undefined,
|
|
141
|
+
reference_id: urlParams.get('reference_id') || undefined,
|
|
69
142
|
lang: urlParams.get('lang') || 'en',
|
|
70
143
|
theme: urlParams.get('theme') || 'light',
|
|
71
144
|
kyc_id: urlParams.get('kyc_id') || undefined,
|
|
@@ -144,22 +217,9 @@ const WebKYCEntry: React.FC<WebKYCEntryProps> = ({
|
|
|
144
217
|
const verificationState = {
|
|
145
218
|
status: 'success', // verification completed successfully
|
|
146
219
|
result: data, // pass complete data object as result
|
|
220
|
+
reference_id: urlParams.reference_id,
|
|
147
221
|
};
|
|
148
|
-
|
|
149
|
-
// Send data to provided push_url with a timeout
|
|
150
|
-
const controller = new AbortController();
|
|
151
|
-
const timeoutId = setTimeout(() => controller.abort(), 5000); // 5s timeout
|
|
152
|
-
|
|
153
|
-
await fetch(urlParams.push_url, {
|
|
154
|
-
method: 'POST',
|
|
155
|
-
headers: {
|
|
156
|
-
'Content-Type': 'application/json',
|
|
157
|
-
},
|
|
158
|
-
body: JSON.stringify(verificationState),
|
|
159
|
-
signal: controller.signal,
|
|
160
|
-
});
|
|
161
|
-
|
|
162
|
-
clearTimeout(timeoutId);
|
|
222
|
+
await postWebhook(urlParams.push_url, verificationState, 5000);
|
|
163
223
|
console.log('Successfully pushed KYC data to webhook');
|
|
164
224
|
} catch (err) {
|
|
165
225
|
// Fail open - redirect anyway even if webhook fails
|
|
@@ -195,7 +255,7 @@ const WebKYCEntry: React.FC<WebKYCEntryProps> = ({
|
|
|
195
255
|
}, [redirectToReturnUrl, urlParams.kyc_id, onError]);
|
|
196
256
|
|
|
197
257
|
// Handle KYC cancellation
|
|
198
|
-
const handleCancel = useCallback(() => {
|
|
258
|
+
const handleCancel = useCallback(async () => {
|
|
199
259
|
console.log('KYC cancelled', urlParams.push_url, urlParams);
|
|
200
260
|
setIsAnalyzing(false);
|
|
201
261
|
if (urlParams.push_url) {
|
|
@@ -203,22 +263,9 @@ const WebKYCEntry: React.FC<WebKYCEntryProps> = ({
|
|
|
203
263
|
const verificationState = {
|
|
204
264
|
status: 'cancelled', // verification cancelled
|
|
205
265
|
result: null, // pass null as result
|
|
266
|
+
reference_id: urlParams.reference_id,
|
|
206
267
|
};
|
|
207
|
-
|
|
208
|
-
// Send data to provided push_url with a timeout
|
|
209
|
-
const controller = new AbortController();
|
|
210
|
-
const timeoutId = setTimeout(() => controller.abort(), 5000); // 5s timeout
|
|
211
|
-
|
|
212
|
-
fetch(urlParams.push_url, {
|
|
213
|
-
method: 'POST',
|
|
214
|
-
headers: {
|
|
215
|
-
'Content-Type': 'application/json',
|
|
216
|
-
},
|
|
217
|
-
body: JSON.stringify(verificationState),
|
|
218
|
-
signal: controller.signal,
|
|
219
|
-
});
|
|
220
|
-
|
|
221
|
-
clearTimeout(timeoutId);
|
|
268
|
+
await postWebhook(urlParams.push_url, verificationState, 5000);
|
|
222
269
|
console.log('Successfully pushed KYC cancellation data to webhook');
|
|
223
270
|
} catch (err) {
|
|
224
271
|
// Fail open - redirect anyway even if webhook fails
|
|
@@ -232,7 +279,33 @@ const WebKYCEntry: React.FC<WebKYCEntryProps> = ({
|
|
|
232
279
|
processing_state: 'pending',
|
|
233
280
|
});
|
|
234
281
|
onCancel?.();
|
|
235
|
-
}, [redirectToReturnUrl, urlParams.kyc_id, onCancel]);
|
|
282
|
+
}, [redirectToReturnUrl, urlParams.kyc_id, urlParams.push_url, urlParams.reference_id, onCancel]);
|
|
283
|
+
|
|
284
|
+
const handleSessionSave = useCallback(async (sessionId: string) => {
|
|
285
|
+
console.log('KYC session created:', sessionId);
|
|
286
|
+
|
|
287
|
+
if (urlParams.save_session_url) {
|
|
288
|
+
try {
|
|
289
|
+
const payload = {
|
|
290
|
+
status: 'session_created',
|
|
291
|
+
reference_id: urlParams.reference_id,
|
|
292
|
+
result: {
|
|
293
|
+
session_id: sessionId,
|
|
294
|
+
kyc_id: sessionId,
|
|
295
|
+
},
|
|
296
|
+
};
|
|
297
|
+
await postWebhook(urlParams.save_session_url, payload, 5000);
|
|
298
|
+
console.log('Successfully pushed session data to save_session_url');
|
|
299
|
+
} catch (err) {
|
|
300
|
+
// Fail open - do not block the KYC flow if save_session webhook fails
|
|
301
|
+
console.warn('Failed to push session data to save_session_url:', err);
|
|
302
|
+
}
|
|
303
|
+
} else {
|
|
304
|
+
console.warn('save_session_url is missing in URL params, webhook not called');
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
onSessionSave?.(sessionId);
|
|
308
|
+
}, [urlParams.save_session_url, urlParams.reference_id, onSessionSave]);
|
|
236
309
|
|
|
237
310
|
// Initialize component
|
|
238
311
|
useEffect(() => {
|
|
@@ -311,6 +384,8 @@ const WebKYCEntry: React.FC<WebKYCEntryProps> = ({
|
|
|
311
384
|
return Number.isNaN(index) ? undefined : index;
|
|
312
385
|
})()}
|
|
313
386
|
initialCountryResume={urlParams.country && urlParams.document_type ? { code: urlParams.country, documentType: urlParams.document_type, region: urlParams.region || undefined } : undefined}
|
|
387
|
+
referenceId={urlParams.reference_id}
|
|
388
|
+
onSessionSave={handleSessionSave}
|
|
314
389
|
/>
|
|
315
390
|
</SafeAreaView>
|
|
316
391
|
);
|
package/build/App.d.ts
DELETED
package/build/App.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":"AAIA,QAAA,MAAM,sBAAsB,mCAE3B,CAAA;AAED,eAAe,sBAAsB,CAAC"}
|
package/build/App.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"App.js","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,sCAAsC,CAAC;AACnE,sEAAsE;AACtE,wDAAwD;AACxD,iDAAiD;AACjD,MAAM,sBAAsB,GAAG,GAAG,EAAE;IAChC,OAAO,CAAC,eAAe,CAAA,EAAE,CAAA;AAC7B,CAAC,CAAA;AAED,eAAe,sBAAsB,CAAC","sourcesContent":["import CameraCaptureEx from \"./components/example/CameraCaptureEx\";\n// import SelfieCaptureEx from \"./components/example/SelfieCaptureEx\";\n// import { KYCExample } from \"./components/KYCExample\";\n// import { KYCFlow } from \"./components/KYCFlow\"\nconst LauchTransferGratisKYC = () =>{\n return <CameraCaptureEx/>\n}\n\nexport default LauchTransferGratisKYC;"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TransfergratisSdk.types.d.ts","sourceRoot":"","sources":["../src/TransfergratisSdk.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,MAAM,MAAM,yBAAyB,GAAG;IACtC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,QAAQ,GAAG,UAAU,CAAC;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,eAAe,EAAE,CAAC,MAAM,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAC7D,cAAc,EAAE,CAAC,MAAM,EAAE,wBAAwB,KAAK,IAAI,CAAC;IAC3D,OAAO,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,IAAI,CAAC;CAC9C,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,WAAW,EAAE;YAAE,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAA;SAAE,CAAA;KAAE,KAAK,IAAI,CAAC;IAC/E,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,WAAW,EAAE,iBAAiB,CAAA;KAAE,KAAK,IAAI,CAAC;IAC9D,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TransfergratisSdk.types.js","sourceRoot":"","sources":["../src/TransfergratisSdk.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { StyleProp, ViewStyle } from 'react-native';\n\nexport type CameraCaptureEventPayload = {\n instructions?: string;\n status: 'opened' | 'captured';\n path?: string;\n};\n\nexport type FileSelectedEventPayload = {\n uri: string;\n path: string;\n};\n\nexport type ErrorEventPayload = {\n message: string;\n};\n\nexport type TransfergratisSdkModuleEvents = {\n onCameraCapture: (params: CameraCaptureEventPayload) => void;\n onFileSelected: (params: FileSelectedEventPayload) => void;\n onError: (params: ErrorEventPayload) => void;\n};\n\nexport type TransfergratisSdkViewProps = {\n instructions: string;\n showCamera: boolean;\n onCapture?: (event: { nativeEvent: { action: 'capture' | 'retake' } }) => void;\n onError?: (event: { nativeEvent: ErrorEventPayload }) => void;\n style?: StyleProp<ViewStyle>;\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TransfergratisSdkModule.d.ts","sourceRoot":"","sources":["../src/TransfergratisSdkModule.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEpC,OAAO,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAE1E,OAAO,OAAO,uBAAwB,SAAQ,YAAY,CAAC,6BAA6B,CAAC;IACvF,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,IAAI,OAAO,CAAC,MAAM,CAAC;IAC7B,uBAAuB,IAAI,OAAO,CAAC,OAAO,CAAC;IAC3C,0BAA0B,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9G,cAAc,CAAC,YAAY,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACnH;;AAGD,wBAAiF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TransfergratisSdkModule.js","sourceRoot":"","sources":["../src/TransfergratisSdkModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAcxD,yDAAyD;AACzD,eAAe,mBAAmB,CAA0B,mBAAmB,CAAC,CAAC","sourcesContent":["import { requireNativeModule } from 'expo-modules-core';\n\nimport { NativeModule } from 'expo';\n\nimport { TransfergratisSdkModuleEvents } from './TransfergratisSdk.types';\n\ndeclare class TransfergratisSdkModule extends NativeModule<TransfergratisSdkModuleEvents> {\n PI: number;\n testModule(): Promise<string>;\n requestCameraPermission(): Promise<boolean>;\n openCameraWithInstructions(instructions: string): Promise<{ success: boolean; path?: string; error?: string }>;\n openFilePicker(allowedTypes: string[]): Promise<{ success: boolean; uri?: string; path?: string; error?: string }>;\n}\n\n// This call loads the native module object from the JSI.\nexport default requireNativeModule<TransfergratisSdkModule>('TransfergratisSdk');\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TransfergratisSdkModule.web.d.ts","sourceRoot":"","sources":["../src/TransfergratisSdkModule.web.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEpC,OAAO,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAE1E,cAAM,uBAAwB,SAAQ,YAAY,CAAC,6BAA6B,CAAC;IAC/E,EAAE,SAAW;IAEP,uBAAuB,IAAI,OAAO,CAAC,OAAO,CAAC;IAK3C,0BAA0B,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAQ9G,cAAc,CAAC,YAAY,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAOzH;;AAED,wBAAqF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TransfergratisSdkModule.web.js","sourceRoot":"","sources":["../src/TransfergratisSdkModule.web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAIpC,MAAM,uBAAwB,SAAQ,YAA2C;IAC/E,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC;IAEb,KAAK,CAAC,uBAAuB;QAC3B,OAAO,CAAC,IAAI,CAAC,wCAAwC,CAAC,CAAC;QACvD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,KAAK,CAAC,0BAA0B,CAAC,YAAoB;QACnD,OAAO,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC;QAC5C,OAAO;YACL,OAAO,EAAE,KAAK;YACd,KAAK,EAAE,sCAAsC;SAC9C,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,cAAc,CAAC,YAAsB;QACzC,OAAO,CAAC,IAAI,CAAC,kCAAkC,CAAC,CAAC;QACjD,OAAO;YACL,OAAO,EAAE,KAAK;YACd,KAAK,EAAE,2CAA2C;SACnD,CAAC;IACJ,CAAC;CACF;AAED,eAAe,iBAAiB,CAAC,uBAAuB,EAAE,yBAAyB,CAAC,CAAC","sourcesContent":["import { registerWebModule } from 'expo-modules-core';\nimport { NativeModule } from 'expo';\n\nimport { TransfergratisSdkModuleEvents } from './TransfergratisSdk.types';\n\nclass TransfergratisSdkModule extends NativeModule<TransfergratisSdkModuleEvents> {\n PI = Math.PI;\n \n async requestCameraPermission(): Promise<boolean> {\n console.warn('Camera permission not available on web');\n return false;\n }\n \n async openCameraWithInstructions(instructions: string): Promise<{ success: boolean; path?: string; error?: string }> {\n console.warn('Camera not available on web');\n return {\n success: false,\n error: 'Camera not available on web platform'\n };\n }\n \n async openFilePicker(allowedTypes: string[]): Promise<{ success: boolean; uri?: string; path?: string; error?: string }> {\n console.warn('File picker not available on web');\n return {\n success: false,\n error: 'File picker not available on web platform'\n };\n }\n}\n\nexport default registerWebModule(TransfergratisSdkModule, 'TransfergratisSdkModule');\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TransfergratisSdkView.d.ts","sourceRoot":"","sources":["../src/TransfergratisSdkView.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAKvE,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,qBAE9E"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TransfergratisSdkView.js","sourceRoot":"","sources":["../src/TransfergratisSdkView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,MAAM,CAAC;AACzC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,UAAU,GACd,iBAAiB,CAAC,mBAAmB,CAAC,CAAC;AAEzC,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,KAAiC;IAC7E,OAAO,CAAC,UAAU,CAAC,IAAI,KAAK,CAAC,EAAG,CAAC;AACnC,CAAC","sourcesContent":["import { requireNativeView } from 'expo';\nimport * as React from 'react';\n\nimport { TransfergratisSdkViewProps } from './TransfergratisSdk.types';\n\nconst NativeView: React.ComponentType<TransfergratisSdkViewProps> =\n requireNativeView('TransfergratisSdk');\n\nexport default function TransfergratisSdkView(props: TransfergratisSdkViewProps) {\n return <NativeView {...props} />;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TransfergratisSdkView.web.d.ts","sourceRoot":"","sources":["../src/TransfergratisSdkView.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAEvE,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,qBAU9E"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TransfergratisSdkView.web.js","sourceRoot":"","sources":["../src/TransfergratisSdkView.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,KAAiC;IAC7E,OAAO,CACL,CAAC,GAAG,CACF;MAAA,CAAC;;;;aAII,CACP;IAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC","sourcesContent":["import * as React from 'react';\n\nimport { TransfergratisSdkViewProps } from './TransfergratisSdk.types';\n\nexport default function TransfergratisSdkView(props: TransfergratisSdkViewProps) {\n return (\n <div>\n {/* <iframe\n style={{ flex: 1 }}\n src={props.url}\n onLoad={() => props.onLoad({ nativeEvent: { url: props.url } })}\n /> */}\n </div>\n );\n}\n"]}
|
package/build/api/axios.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"axios.d.ts","sourceRoot":"","sources":["../../src/api/axios.ts"],"names":[],"mappings":"AAAA,OAAc,EAEV,kBAAkB,EAGrB,MAAM,OAAO,CAAC;AAEf,MAAM,MAAM,gBAAgB,GAAG;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,qBAAa,UAAU;IACnB,OAAO,CAAC,QAAQ,CAAgB;IAChC,OAAO,CAAC,MAAM,CAAC,CAAS;IACxB,OAAO,CAAC,SAAS,CAAC,CAAS;gBAEf,aAAa,EAAE,gBAAgB;IAsD3C,YAAY,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI;IAIlC,SAAS,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI;IAI7B,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAIvB,GAAG,CAAC,CAAC,GAAG,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,CAAC,CAAC;IAK7E,IAAI,CAAC,CAAC,GAAG,OAAO,EAAE,CAAC,GAAG,OAAO,EAC/B,GAAG,EAAE,MAAM,EACX,IAAI,CAAC,EAAE,CAAC,EACR,aAAa,CAAC,EAAE,kBAAkB,GACnC,OAAO,CAAC,CAAC,CAAC;IAKP,GAAG,CAAC,CAAC,GAAG,OAAO,EAAE,CAAC,GAAG,OAAO,EAC9B,GAAG,EAAE,MAAM,EACX,IAAI,CAAC,EAAE,CAAC,EACR,aAAa,CAAC,EAAE,kBAAkB,GACnC,OAAO,CAAC,CAAC,CAAC;IAKP,KAAK,CAAC,CAAC,GAAG,OAAO,EAAE,CAAC,GAAG,OAAO,EAChC,GAAG,EAAE,MAAM,EACX,IAAI,CAAC,EAAE,CAAC,EACR,aAAa,CAAC,EAAE,kBAAkB,GACnC,OAAO,CAAC,CAAC,CAAC;IAKP,MAAM,CAAC,CAAC,GAAG,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,CAAC,CAAC;CAIzF;AAED,eAAe,UAAU,CAAC;AAI1B,eAAO,MAAM,SAAS,YAGpB,CAAC;AAEH,eAAO,MAAM,cAAc,YAGzB,CAAC"}
|
package/build/api/axios.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"axios.js","sourceRoot":"","sources":["../../src/api/axios.ts"],"names":[],"mappings":"AAAA,OAAO,KAKN,MAAM,OAAO,CAAC;AAef,MAAM,OAAO,UAAU;IACX,QAAQ,CAAgB;IACxB,MAAM,CAAU;IAChB,SAAS,CAAU;IAE3B,YAAY,aAA+B;QACvC,IAAI,CAAC,MAAM,GAAG,aAAa,CAAC,MAAM,CAAC;QACnC,IAAI,CAAC,SAAS,GAAG,aAAa,CAAC,SAAS,CAAC;QACzC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAC;YACzB,OAAO,EAAE,aAAa,CAAC,OAAO;YAC9B,OAAO,EAAE,aAAa,CAAC,SAAS,IAAI,KAAK;YACzC,OAAO,EAAE;gBACL,MAAM,EAAE,kBAAkB;gBAC1B,cAAc,EAAE,kBAAkB;aACrC;SACJ,CAAC,CAAC;QAEH,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,CAClC,CAAC,OAAmC,EAAE,EAAE;YACpC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,EAAE,CAAC;YACtC,IAAI,IAAI,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE,CAAC;gBACvC,OAAO,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;YACvC,CAAC;YACD,IAAI,IAAI,CAAC,SAAS,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,CAAC;gBAC3C,OAAO,CAAC,aAAa,GAAG,UAAU,IAAI,CAAC,SAAS,EAAE,CAAC;YACvD,CAAC;YACD,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC;YAC1B,OAAO,OAAO,CAAC;QACnB,CAAC,EACD,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CACnC,CAAC;QAEF,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,QAAQ,CAAC,GAAG,CACnC,CAAC,QAAuB,EAAE,EAAE,CAAC,QAAQ,EACrC,CAAC,KAAK,EAAE,EAAE;YACN,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;gBAClB,OAAO,OAAO,CAAC,MAAM,CAAC;oBAClB,OAAO,EAAE,8CAA8C;oBACvD,IAAI,EAAE,eAAe;oBACrB,OAAO,EAAE,KAAK,EAAE,OAAO;iBACV,CAAC,CAAC;YACvB,CAAC;YACD,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC,QAAuC,CAAC;YACvE,IAAI,MAAM,KAAK,GAAG,EAAE,CAAC;gBACjB,OAAO,OAAO,CAAC,MAAM,CAAC;oBAClB,OAAO,EAAE,IAAI,EAAE,OAAO,IAAI,cAAc;oBACxC,IAAI,EAAE,GAAG;oBACT,OAAO,EAAE,IAAI;iBACA,CAAC,CAAC;YACvB,CAAC;YACD,OAAO,OAAO,CAAC,MAAM,CAAC;gBAClB,OAAO,EAAE,IAAI,EAAE,OAAO,IAAI,gBAAgB;gBAC1C,IAAI,EAAE,MAAM;gBACZ,OAAO,EAAE,IAAI;aACA,CAAC,CAAC;QACvB,CAAC,CACJ,CAAC;IACN,CAAC;IAED,YAAY,CAAC,KAAc;QACvB,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;IAC3B,CAAC;IAED,SAAS,CAAC,GAAY;QAClB,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC;IACtB,CAAC;IAED,UAAU,CAAC,GAAW;QAClB,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,OAAO,GAAG,GAAG,CAAC;IACzC,CAAC;IAED,KAAK,CAAC,GAAG,CAAc,GAAW,EAAE,aAAkC;QAClE,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAI,GAAG,EAAE,aAAa,CAAC,CAAC;QAC3D,OAAO,GAAG,CAAC,IAAS,CAAC;IACzB,CAAC;IAED,KAAK,CAAC,IAAI,CACN,GAAW,EACX,IAAQ,EACR,aAAkC;QAElC,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAI,GAAG,EAAE,IAAI,EAAE,aAAa,CAAC,CAAC;QAClE,OAAO,GAAG,CAAC,IAAS,CAAC;IACzB,CAAC;IAED,KAAK,CAAC,GAAG,CACL,GAAW,EACX,IAAQ,EACR,aAAkC;QAElC,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAI,GAAG,EAAE,IAAI,EAAE,aAAa,CAAC,CAAC;QACjE,OAAO,GAAG,CAAC,IAAS,CAAC;IACzB,CAAC;IAED,KAAK,CAAC,KAAK,CACP,GAAW,EACX,IAAQ,EACR,aAAkC;QAElC,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAI,GAAG,EAAE,IAAI,EAAE,aAAa,CAAC,CAAC;QACnE,OAAO,GAAG,CAAC,IAAS,CAAC;IACzB,CAAC;IAED,KAAK,CAAC,MAAM,CAAc,GAAW,EAAE,aAAkC;QACrE,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAI,GAAG,EAAE,aAAa,CAAC,CAAC;QAC9D,OAAO,GAAG,CAAC,IAAS,CAAC;IACzB,CAAC;CACJ;AAED,eAAe,UAAU,CAAC;AAG1B,iBAAiB;AACjB,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,UAAU,CAAC;IACpC,OAAO,EAAE,mCAAmC;IAC5C,MAAM,EAAE,cAAc;CACzB,CAAC,CAAC;AACH,sBAAsB;AACtB,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,UAAU,CAAC;IACzC,OAAO,EAAE,wCAAwC;IACjD,MAAM,EAAE,cAAc;CACzB,CAAC,CAAC","sourcesContent":["import axios, {\n AxiosInstance,\n AxiosRequestConfig,\n InternalAxiosRequestConfig,\n AxiosResponse,\n} from 'axios';\n\nexport type ApiConfiguration = {\n baseURL: string;\n apiKey?: string;\n authToken?: string;\n timeoutMs?: number;\n};\n\nexport type ApiErrorData = {\n message?: string;\n code?: string | number;\n details?: unknown;\n};\n\nexport class HttpClient {\n private instance: AxiosInstance;\n private apiKey?: string;\n private authToken?: string;\n\n constructor(configuration: ApiConfiguration) {\n this.apiKey = configuration.apiKey;\n this.authToken = configuration.authToken;\n this.instance = axios.create({\n baseURL: configuration.baseURL,\n timeout: configuration.timeoutMs ?? 15000,\n headers: {\n Accept: 'application/json',\n 'Content-Type': 'application/json',\n },\n });\n\n this.instance.interceptors.request.use(\n (request: InternalAxiosRequestConfig) => {\n const headers = request.headers ?? {};\n if (this.apiKey && !headers['x-api-key']) {\n headers['x-api-key'] = this.apiKey;\n }\n if (this.authToken && !headers.Authorization) {\n headers.Authorization = `Bearer ${this.authToken}`;\n }\n request.headers = headers;\n return request;\n },\n (error) => Promise.reject(error)\n );\n\n this.instance.interceptors.response.use(\n (response: AxiosResponse) => response,\n (error) => {\n if (!error.response) {\n return Promise.reject({\n message: 'Network error. Please check your connection.',\n code: 'network_error',\n details: error?.message,\n } as ApiErrorData);\n }\n const { status, data } = error.response as AxiosResponse<ApiErrorData>;\n if (status === 401) {\n return Promise.reject({\n message: data?.message || 'Unauthorized',\n code: 401,\n details: data,\n } as ApiErrorData);\n }\n return Promise.reject({\n message: data?.message || 'Request failed',\n code: status,\n details: data,\n } as ApiErrorData);\n }\n );\n }\n\n setAuthToken(token?: string): void {\n this.authToken = token;\n }\n\n setApiKey(key?: string): void {\n this.apiKey = key;\n }\n\n setBaseURL(url: string): void {\n this.instance.defaults.baseURL = url;\n }\n\n async get<T = unknown>(url: string, requestConfig?: AxiosRequestConfig): Promise<T> {\n const res = await this.instance.get<T>(url, requestConfig);\n return res.data as T;\n }\n\n async post<T = unknown, B = unknown>(\n url: string,\n body?: B,\n requestConfig?: AxiosRequestConfig\n ): Promise<T> {\n const res = await this.instance.post<T>(url, body, requestConfig);\n return res.data as T;\n }\n\n async put<T = unknown, B = unknown>(\n url: string,\n body?: B,\n requestConfig?: AxiosRequestConfig\n ): Promise<T> {\n const res = await this.instance.put<T>(url, body, requestConfig);\n return res.data as T;\n }\n\n async patch<T = unknown, B = unknown>(\n url: string,\n body?: B,\n requestConfig?: AxiosRequestConfig\n ): Promise<T> {\n const res = await this.instance.patch<T>(url, body, requestConfig);\n return res.data as T;\n }\n\n async delete<T = unknown>(url: string, requestConfig?: AxiosRequestConfig): Promise<T> {\n const res = await this.instance.delete<T>(url, requestConfig);\n return res.data as T;\n }\n}\n\nexport default HttpClient;\n\n\n// ml service api\nexport const mlService = new HttpClient({\n baseURL: 'https://api.ml.transfergratis.com',\n apiKey: 'your-api-key',\n});\n// backedn service api\nexport const backendService = new HttpClient({\n baseURL: 'https://api.backend.transfergratis.com',\n apiKey: 'your-api-key',\n});\n\n\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Camera/index.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Camera/index.tsx"],"names":[],"mappings":"","sourcesContent":[""]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../src/components/Camera/index.web.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.web.js","sourceRoot":"","sources":["../../../src/components/Camera/index.web.tsx"],"names":[],"mappings":"","sourcesContent":[""]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Camera/types.ts"],"names":[],"mappings":""}
|