@sanctum-key/react-native-sdk 1.0.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.
- package/README.md +278 -0
- package/android/build/.transforms/f62cb96b2d1f78ca96ab35932dd530dc/results.bin +1 -0
- package/android/build/.transforms/f62cb96b2d1f78ca96ab35932dd530dc/transformed/classes/classes_dex/classes.dex +0 -0
- package/android/build/generated/source/buildConfig/debug/kyc/transfergratis/com/BuildConfig.java +10 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +69 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +18 -0
- package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +6 -0
- package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +1 -0
- package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
- package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +1 -0
- package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/xml_file_paths.xml.flat +0 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +2 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
- package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +2 -0
- package/android/build/intermediates/java_res/debug/processDebugJavaRes/out/META-INF/transfergratis-react-native-sdk_debug.kotlin_module +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/kyc/transfergratis/com/BuildConfig.class +0 -0
- package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +3 -0
- package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +110 -0
- package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +69 -0
- package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +1 -0
- package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +1 -0
- package/android/build/intermediates/packaged_res/debug/packageDebugResources/xml/file_paths.xml +15 -0
- package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +2 -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.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +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/inputs/source-to-output.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +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.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +2 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
- package/android/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
- package/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +101 -0
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/android/build/tmp/kotlin-classes/debug/META-INF/transfergratis-react-native-sdk_debug.kotlin_module +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$1$5$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$1$5$2.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$2.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$3.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$4.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$5.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$6.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$2.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$3.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$4.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$View$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$lambda$4$$inlined$Prop$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$lambda$4$$inlined$Prop$2.class +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/android/build.gradle +43 -0
- package/android/src/main/AndroidManifest.xml +49 -0
- package/android/src/main/java/kyc/transfergratis/com/TransfergratisSdkModule.kt +131 -0
- package/android/src/main/java/kyc/transfergratis/com/TransfergratisSdkView.kt +161 -0
- package/android/src/main/res/xml/file_paths.xml +15 -0
- package/build/App.d.ts +3 -0
- package/build/App.d.ts.map +1 -0
- package/build/App.js +9 -0
- package/build/App.js.map +1 -0
- package/build/TransfergratisSdk.types.d.ts +32 -0
- package/build/TransfergratisSdk.types.d.ts.map +1 -0
- package/build/TransfergratisSdk.types.js +2 -0
- package/build/TransfergratisSdk.types.js.map +1 -0
- package/build/TransfergratisSdkModule.d.ts +21 -0
- package/build/TransfergratisSdkModule.d.ts.map +1 -0
- package/build/TransfergratisSdkModule.js +4 -0
- package/build/TransfergratisSdkModule.js.map +1 -0
- package/build/TransfergratisSdkModule.web.d.ts +20 -0
- package/build/TransfergratisSdkModule.web.d.ts.map +1 -0
- package/build/TransfergratisSdkModule.web.js +25 -0
- package/build/TransfergratisSdkModule.web.js.map +1 -0
- package/build/TransfergratisSdkView.d.ts +4 -0
- package/build/TransfergratisSdkView.d.ts.map +1 -0
- package/build/TransfergratisSdkView.js +7 -0
- package/build/TransfergratisSdkView.js.map +1 -0
- package/build/TransfergratisSdkView.web.d.ts +4 -0
- package/build/TransfergratisSdkView.web.d.ts.map +1 -0
- package/build/TransfergratisSdkView.web.js +11 -0
- package/build/TransfergratisSdkView.web.js.map +1 -0
- package/build/api/axios.d.ts +30 -0
- package/build/api/axios.d.ts.map +1 -0
- package/build/api/axios.js +92 -0
- package/build/api/axios.js.map +1 -0
- package/build/components/Camera/index.d.ts +2 -0
- package/build/components/Camera/index.d.ts.map +1 -0
- package/build/components/Camera/index.js +2 -0
- package/build/components/Camera/index.js.map +1 -0
- package/build/components/Camera/index.web.d.ts +2 -0
- package/build/components/Camera/index.web.d.ts.map +1 -0
- package/build/components/Camera/index.web.js +2 -0
- package/build/components/Camera/index.web.js.map +1 -0
- package/build/components/Camera/types.d.ts +2 -0
- package/build/components/Camera/types.d.ts.map +1 -0
- package/build/components/Camera/types.js +2 -0
- package/build/components/Camera/types.js.map +1 -0
- package/build/components/ConfigurableKYCFlow.d.ts +11 -0
- package/build/components/ConfigurableKYCFlow.d.ts.map +1 -0
- package/build/components/ConfigurableKYCFlow.js +257 -0
- package/build/components/ConfigurableKYCFlow.js.map +1 -0
- package/build/components/CustomCameraExample.d.ts +10 -0
- package/build/components/CustomCameraExample.d.ts.map +1 -0
- package/build/components/CustomCameraExample.js +232 -0
- package/build/components/CustomCameraExample.js.map +1 -0
- package/build/components/EnhancedCameraView.d.ts +4 -0
- package/build/components/EnhancedCameraView.d.ts.map +1 -0
- package/build/components/EnhancedCameraView.js +393 -0
- package/build/components/EnhancedCameraView.js.map +1 -0
- package/build/components/EnhancedCameraView.web.d.ts +4 -0
- package/build/components/EnhancedCameraView.web.d.ts.map +1 -0
- package/build/components/EnhancedCameraView.web.js +499 -0
- package/build/components/EnhancedCameraView.web.js.map +1 -0
- package/build/components/FileUpload.d.ts +13 -0
- package/build/components/FileUpload.d.ts.map +1 -0
- package/build/components/FileUpload.js +216 -0
- package/build/components/FileUpload.js.map +1 -0
- package/build/components/KYCElementRenderer.d.ts +14 -0
- package/build/components/KYCElementRenderer.d.ts.map +1 -0
- package/build/components/KYCElementRenderer.js +31 -0
- package/build/components/KYCElementRenderer.js.map +1 -0
- package/build/components/KYCElements/AdditionalDocumentsTemplate.d.ts +12 -0
- package/build/components/KYCElements/AdditionalDocumentsTemplate.d.ts.map +1 -0
- package/build/components/KYCElements/AdditionalDocumentsTemplate.js +283 -0
- package/build/components/KYCElements/AdditionalDocumentsTemplate.js.map +1 -0
- package/build/components/KYCElements/CameraCapture.d.ts +11 -0
- package/build/components/KYCElements/CameraCapture.d.ts.map +1 -0
- package/build/components/KYCElements/CameraCapture.js +219 -0
- package/build/components/KYCElements/CameraCapture.js.map +1 -0
- package/build/components/KYCElements/CompletionStep.d.ts +10 -0
- package/build/components/KYCElements/CompletionStep.d.ts.map +1 -0
- package/build/components/KYCElements/CompletionStep.js +147 -0
- package/build/components/KYCElements/CompletionStep.js.map +1 -0
- package/build/components/KYCElements/CountrySelection.d.ts +11 -0
- package/build/components/KYCElements/CountrySelection.d.ts.map +1 -0
- package/build/components/KYCElements/CountrySelection.js +147 -0
- package/build/components/KYCElements/CountrySelection.js.map +1 -0
- package/build/components/KYCElements/CountrySelectionTemplate.d.ts +15 -0
- package/build/components/KYCElements/CountrySelectionTemplate.d.ts.map +1 -0
- package/build/components/KYCElements/CountrySelectionTemplate.js +438 -0
- package/build/components/KYCElements/CountrySelectionTemplate.js.map +1 -0
- package/build/components/KYCElements/DocumentTypeSelection.d.ts +11 -0
- package/build/components/KYCElements/DocumentTypeSelection.d.ts.map +1 -0
- package/build/components/KYCElements/DocumentTypeSelection.js +143 -0
- package/build/components/KYCElements/DocumentTypeSelection.js.map +1 -0
- package/build/components/KYCElements/EmailVerificationTemplate.d.ts +12 -0
- package/build/components/KYCElements/EmailVerificationTemplate.d.ts.map +1 -0
- package/build/components/KYCElements/EmailVerificationTemplate.js +212 -0
- package/build/components/KYCElements/EmailVerificationTemplate.js.map +1 -0
- package/build/components/KYCElements/FileUpload.d.ts +11 -0
- package/build/components/KYCElements/FileUpload.d.ts.map +1 -0
- package/build/components/KYCElements/FileUpload.js +268 -0
- package/build/components/KYCElements/FileUpload.js.map +1 -0
- package/build/components/KYCElements/FileUploadTemplate.d.ts +12 -0
- package/build/components/KYCElements/FileUploadTemplate.d.ts.map +1 -0
- package/build/components/KYCElements/FileUploadTemplate.js +331 -0
- package/build/components/KYCElements/FileUploadTemplate.js.map +1 -0
- package/build/components/KYCElements/IDCardCapture.d.ts +19 -0
- package/build/components/KYCElements/IDCardCapture.d.ts.map +1 -0
- package/build/components/KYCElements/IDCardCapture.js +877 -0
- package/build/components/KYCElements/IDCardCapture.js.map +1 -0
- package/build/components/KYCElements/InitializationStep.d.ts +5 -0
- package/build/components/KYCElements/InitializationStep.d.ts.map +1 -0
- package/build/components/KYCElements/InitializationStep.js +41 -0
- package/build/components/KYCElements/InitializationStep.js.map +1 -0
- package/build/components/KYCElements/LocationCaptureTemplate.d.ts +20 -0
- package/build/components/KYCElements/LocationCaptureTemplate.d.ts.map +1 -0
- package/build/components/KYCElements/LocationCaptureTemplate.js +318 -0
- package/build/components/KYCElements/LocationCaptureTemplate.js.map +1 -0
- package/build/components/KYCElements/OrientationVideoCapture.d.ts +14 -0
- package/build/components/KYCElements/OrientationVideoCapture.d.ts.map +1 -0
- package/build/components/KYCElements/OrientationVideoCapture.js +534 -0
- package/build/components/KYCElements/OrientationVideoCapture.js.map +1 -0
- package/build/components/KYCElements/OrientationVideoCaptureEnhanced.d.ts +14 -0
- package/build/components/KYCElements/OrientationVideoCaptureEnhanced.d.ts.map +1 -0
- package/build/components/KYCElements/OrientationVideoCaptureEnhanced.js +504 -0
- package/build/components/KYCElements/OrientationVideoCaptureEnhanced.js.map +1 -0
- package/build/components/KYCElements/OrientationVideoCaptureFinal.d.ts +14 -0
- package/build/components/KYCElements/OrientationVideoCaptureFinal.d.ts.map +1 -0
- package/build/components/KYCElements/OrientationVideoCaptureFinal.js +430 -0
- package/build/components/KYCElements/OrientationVideoCaptureFinal.js.map +1 -0
- package/build/components/KYCElements/PersonalInformationTemplate.d.ts +12 -0
- package/build/components/KYCElements/PersonalInformationTemplate.d.ts.map +1 -0
- package/build/components/KYCElements/PersonalInformationTemplate.js +120 -0
- package/build/components/KYCElements/PersonalInformationTemplate.js.map +1 -0
- package/build/components/KYCElements/PhoneVerificationTemplate.d.ts +12 -0
- package/build/components/KYCElements/PhoneVerificationTemplate.d.ts.map +1 -0
- package/build/components/KYCElements/PhoneVerificationTemplate.js +185 -0
- package/build/components/KYCElements/PhoneVerificationTemplate.js.map +1 -0
- package/build/components/KYCElements/ReviewSubmitTemplate.d.ts +12 -0
- package/build/components/KYCElements/ReviewSubmitTemplate.d.ts.map +1 -0
- package/build/components/KYCElements/ReviewSubmitTemplate.js +171 -0
- package/build/components/KYCElements/ReviewSubmitTemplate.js.map +1 -0
- package/build/components/KYCElements/SelfieCapture.d.ts +11 -0
- package/build/components/KYCElements/SelfieCapture.d.ts.map +1 -0
- package/build/components/KYCElements/SelfieCapture.js +236 -0
- package/build/components/KYCElements/SelfieCapture.js.map +1 -0
- package/build/components/KYCElements/SelfieCaptureTemplate.d.ts +16 -0
- package/build/components/KYCElements/SelfieCaptureTemplate.d.ts.map +1 -0
- package/build/components/KYCElements/SelfieCaptureTemplate.js +568 -0
- package/build/components/KYCElements/SelfieCaptureTemplate.js.map +1 -0
- package/build/components/KYCElements/VerificationProgressTemplate.d.ts +12 -0
- package/build/components/KYCElements/VerificationProgressTemplate.d.ts.map +1 -0
- package/build/components/KYCElements/VerificationProgressTemplate.js +195 -0
- package/build/components/KYCElements/VerificationProgressTemplate.js.map +1 -0
- package/build/components/KYCElements/VerificationStep.d.ts +10 -0
- package/build/components/KYCElements/VerificationStep.d.ts.map +1 -0
- package/build/components/KYCElements/VerificationStep.js +199 -0
- package/build/components/KYCElements/VerificationStep.js.map +1 -0
- package/build/components/KYCElements/WelcomeTemplate.d.ts +12 -0
- package/build/components/KYCElements/WelcomeTemplate.d.ts.map +1 -0
- package/build/components/KYCElements/WelcomeTemplate.js +244 -0
- package/build/components/KYCElements/WelcomeTemplate.js.map +1 -0
- package/build/components/KYCExample.d.ts +3 -0
- package/build/components/KYCExample.d.ts.map +1 -0
- package/build/components/KYCExample.js +247 -0
- package/build/components/KYCExample.js.map +1 -0
- package/build/components/KYCFlow.d.ts +3 -0
- package/build/components/KYCFlow.d.ts.map +1 -0
- package/build/components/KYCFlow.js +308 -0
- package/build/components/KYCFlow.js.map +1 -0
- package/build/components/NativeCameraView.d.ts +11 -0
- package/build/components/NativeCameraView.d.ts.map +1 -0
- package/build/components/NativeCameraView.js +27 -0
- package/build/components/NativeCameraView.js.map +1 -0
- package/build/components/OverLay/IdCard.d.ts +4 -0
- package/build/components/OverLay/IdCard.d.ts.map +1 -0
- package/build/components/OverLay/IdCard.js +185 -0
- package/build/components/OverLay/IdCard.js.map +1 -0
- package/build/components/OverLay/SelfieOverlay.d.ts +4 -0
- package/build/components/OverLay/SelfieOverlay.d.ts.map +1 -0
- package/build/components/OverLay/SelfieOverlay.js +169 -0
- package/build/components/OverLay/SelfieOverlay.js.map +1 -0
- package/build/components/OverLay/StepOverlay.d.ts +9 -0
- package/build/components/OverLay/StepOverlay.d.ts.map +1 -0
- package/build/components/OverLay/StepOverlay.js +53 -0
- package/build/components/OverLay/StepOverlay.js.map +1 -0
- package/build/components/OverLay/type.d.ts +98 -0
- package/build/components/OverLay/type.d.ts.map +1 -0
- package/build/components/OverLay/type.js +2 -0
- package/build/components/OverLay/type.js.map +1 -0
- package/build/components/ProgressIndicator.d.ts +8 -0
- package/build/components/ProgressIndicator.d.ts.map +1 -0
- package/build/components/ProgressIndicator.js +48 -0
- package/build/components/ProgressIndicator.js.map +1 -0
- package/build/components/SelfieCapture.d.ts +3 -0
- package/build/components/SelfieCapture.d.ts.map +1 -0
- package/build/components/SelfieCapture.js +197 -0
- package/build/components/SelfieCapture.js.map +1 -0
- package/build/components/SimpleExample.d.ts +3 -0
- package/build/components/SimpleExample.d.ts.map +1 -0
- package/build/components/SimpleExample.js +89 -0
- package/build/components/SimpleExample.js.map +1 -0
- package/build/components/Svgs/GpsIcon.d.ts +3 -0
- package/build/components/Svgs/GpsIcon.d.ts.map +1 -0
- package/build/components/Svgs/GpsIcon.js +9 -0
- package/build/components/Svgs/GpsIcon.js.map +1 -0
- package/build/components/Svgs/Schield.d.ts +3 -0
- package/build/components/Svgs/Schield.d.ts.map +1 -0
- package/build/components/Svgs/Schield.js +22 -0
- package/build/components/Svgs/Schield.js.map +1 -0
- package/build/components/Svgs/directionArrow.gif +0 -0
- package/build/components/Svgs/frontSelfieIcon.d.ts +3 -0
- package/build/components/Svgs/frontSelfieIcon.d.ts.map +1 -0
- package/build/components/Svgs/frontSelfieIcon.js +11 -0
- package/build/components/Svgs/frontSelfieIcon.js.map +1 -0
- package/build/components/Svgs/scanningLine.d.ts +9 -0
- package/build/components/Svgs/scanningLine.d.ts.map +1 -0
- package/build/components/Svgs/scanningLine.js +61 -0
- package/build/components/Svgs/scanningLine.js.map +1 -0
- package/build/components/Svgs/sideSelfieIcon.d.ts +3 -0
- package/build/components/Svgs/sideSelfieIcon.d.ts.map +1 -0
- package/build/components/Svgs/sideSelfieIcon.js +9 -0
- package/build/components/Svgs/sideSelfieIcon.js.map +1 -0
- package/build/components/TemplateKYCExample.d.ts +22 -0
- package/build/components/TemplateKYCExample.d.ts.map +1 -0
- package/build/components/TemplateKYCExample.js +155 -0
- package/build/components/TemplateKYCExample.js.map +1 -0
- package/build/components/TemplateKYCFlowRefactored.d.ts +26 -0
- package/build/components/TemplateKYCFlowRefactored.d.ts.map +1 -0
- package/build/components/TemplateKYCFlowRefactored.js +359 -0
- package/build/components/TemplateKYCFlowRefactored.js.map +1 -0
- package/build/components/VisionCameraView.d.ts +22 -0
- package/build/components/VisionCameraView.d.ts.map +1 -0
- package/build/components/VisionCameraView.js +142 -0
- package/build/components/VisionCameraView.js.map +1 -0
- package/build/components/example/CameraCaptureEx.d.ts +4 -0
- package/build/components/example/CameraCaptureEx.d.ts.map +1 -0
- package/build/components/example/CameraCaptureEx.js +219 -0
- package/build/components/example/CameraCaptureEx.js.map +1 -0
- package/build/components/example/CameraCaptureExAdvanced.d.ts +3 -0
- package/build/components/example/CameraCaptureExAdvanced.d.ts.map +1 -0
- package/build/components/example/CameraCaptureExAdvanced.js +229 -0
- package/build/components/example/CameraCaptureExAdvanced.js.map +1 -0
- package/build/components/example/CameraCaptureExScan.d.ts +3 -0
- package/build/components/example/CameraCaptureExScan.d.ts.map +1 -0
- package/build/components/example/CameraCaptureExScan.js +213 -0
- package/build/components/example/CameraCaptureExScan.js.map +1 -0
- package/build/components/example/CameraCaptureExSimple.d.ts +3 -0
- package/build/components/example/CameraCaptureExSimple.d.ts.map +1 -0
- package/build/components/example/CameraCaptureExSimple.js +138 -0
- package/build/components/example/CameraCaptureExSimple.js.map +1 -0
- package/build/components/example/DynamicTemplateExample.d.ts +10 -0
- package/build/components/example/DynamicTemplateExample.d.ts.map +1 -0
- package/build/components/example/DynamicTemplateExample.js +241 -0
- package/build/components/example/DynamicTemplateExample.js.map +1 -0
- package/build/components/example/OrientationVideoExample.d.ts +4 -0
- package/build/components/example/OrientationVideoExample.d.ts.map +1 -0
- package/build/components/example/OrientationVideoExample.js +325 -0
- package/build/components/example/OrientationVideoExample.js.map +1 -0
- package/build/components/example/SelfieCaptureEx.d.ts +4 -0
- package/build/components/example/SelfieCaptureEx.d.ts.map +1 -0
- package/build/components/example/SelfieCaptureEx.js +238 -0
- package/build/components/example/SelfieCaptureEx.js.map +1 -0
- package/build/components/ui/Button.d.ts +37 -0
- package/build/components/ui/Button.d.ts.map +1 -0
- package/build/components/ui/Button.js +194 -0
- package/build/components/ui/Button.js.map +1 -0
- package/build/components/ui/ButtonExample.d.ts +4 -0
- package/build/components/ui/ButtonExample.d.ts.map +1 -0
- package/build/components/ui/ButtonExample.js +209 -0
- package/build/components/ui/ButtonExample.js.map +1 -0
- package/build/components/ui/ButtonStyles.d.ts +521 -0
- package/build/components/ui/ButtonStyles.d.ts.map +1 -0
- package/build/components/ui/ButtonStyles.js +429 -0
- package/build/components/ui/ButtonStyles.js.map +1 -0
- package/build/config/KYCConfig.d.ts +14 -0
- package/build/config/KYCConfig.d.ts.map +1 -0
- package/build/config/KYCConfig.js +26 -0
- package/build/config/KYCConfig.js.map +1 -0
- package/build/config/KYCConfigs.d.ts +7 -0
- package/build/config/KYCConfigs.d.ts.map +1 -0
- package/build/config/KYCConfigs.js +516 -0
- package/build/config/KYCConfigs.js.map +1 -0
- package/build/config/allowedDomains.d.ts +30 -0
- package/build/config/allowedDomains.d.ts.map +1 -0
- package/build/config/allowedDomains.js +112 -0
- package/build/config/allowedDomains.js.map +1 -0
- package/build/config/countriesData.d.ts +3 -0
- package/build/config/countriesData.d.ts.map +1 -0
- package/build/config/countriesData.js +80 -0
- package/build/config/countriesData.js.map +1 -0
- package/build/config/region_mapping.d.ts +3 -0
- package/build/config/region_mapping.d.ts.map +1 -0
- package/build/config/region_mapping.js +736 -0
- package/build/config/region_mapping.js.map +1 -0
- package/build/hooks/useI18n.d.ts +11 -0
- package/build/hooks/useI18n.d.ts.map +1 -0
- package/build/hooks/useI18n.js +37 -0
- package/build/hooks/useI18n.js.map +1 -0
- package/build/hooks/useKYC.d.ts +15 -0
- package/build/hooks/useKYC.d.ts.map +1 -0
- package/build/hooks/useKYC.js +103 -0
- package/build/hooks/useKYC.js.map +1 -0
- package/build/hooks/useKYCFlow.d.ts +3 -0
- package/build/hooks/useKYCFlow.d.ts.map +1 -0
- package/build/hooks/useKYCFlow.js +221 -0
- package/build/hooks/useKYCFlow.js.map +1 -0
- package/build/hooks/useLocation.d.ts +32 -0
- package/build/hooks/useLocation.d.ts.map +1 -0
- package/build/hooks/useLocation.js +165 -0
- package/build/hooks/useLocation.js.map +1 -0
- package/build/hooks/useOrientationVideo.d.ts +10 -0
- package/build/hooks/useOrientationVideo.d.ts.map +1 -0
- package/build/hooks/useOrientationVideo.js +118 -0
- package/build/hooks/useOrientationVideo.js.map +1 -0
- package/build/hooks/useRealtimeVerifier.d.ts +28 -0
- package/build/hooks/useRealtimeVerifier.d.ts.map +1 -0
- package/build/hooks/useRealtimeVerifier.js +91 -0
- package/build/hooks/useRealtimeVerifier.js.map +1 -0
- package/build/hooks/useTemplateKYCFlow.d.ts +48 -0
- package/build/hooks/useTemplateKYCFlow.d.ts.map +1 -0
- package/build/hooks/useTemplateKYCFlow.js +910 -0
- package/build/hooks/useTemplateKYCFlow.js.map +1 -0
- package/build/hooks/useTemplateLoader.d.ts +14 -0
- package/build/hooks/useTemplateLoader.d.ts.map +1 -0
- package/build/hooks/useTemplateLoader.js +85 -0
- package/build/hooks/useTemplateLoader.js.map +1 -0
- package/build/i18n/en/index.d.ts +233 -0
- package/build/i18n/en/index.d.ts.map +1 -0
- package/build/i18n/en/index.js +261 -0
- package/build/i18n/en/index.js.map +1 -0
- package/build/i18n/fr/index.d.ts +219 -0
- package/build/i18n/fr/index.d.ts.map +1 -0
- package/build/i18n/fr/index.js +246 -0
- package/build/i18n/fr/index.js.map +1 -0
- package/build/i18n/index.d.ts +10 -0
- package/build/i18n/index.d.ts.map +1 -0
- package/build/i18n/index.js +56 -0
- package/build/i18n/index.js.map +1 -0
- package/build/i18n/types.d.ts +162 -0
- package/build/i18n/types.d.ts.map +1 -0
- package/build/i18n/types.js +3 -0
- package/build/i18n/types.js.map +1 -0
- package/build/i18n/usage-example.d.ts +4 -0
- package/build/i18n/usage-example.d.ts.map +1 -0
- package/build/i18n/usage-example.js +189 -0
- package/build/i18n/usage-example.js.map +1 -0
- package/build/index.d.ts +11 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +17 -0
- package/build/index.js.map +1 -0
- package/build/modules/api/CardAuthentification.d.ts +72 -0
- package/build/modules/api/CardAuthentification.d.ts.map +1 -0
- package/build/modules/api/CardAuthentification.js +487 -0
- package/build/modules/api/CardAuthentification.js.map +1 -0
- package/build/modules/api/KYCService.d.ts +116 -0
- package/build/modules/api/KYCService.d.ts.map +1 -0
- package/build/modules/api/KYCService.js +526 -0
- package/build/modules/api/KYCService.js.map +1 -0
- package/build/modules/api/SelfieVerification.d.ts +5 -0
- package/build/modules/api/SelfieVerification.d.ts.map +1 -0
- package/build/modules/api/SelfieVerification.js +25 -0
- package/build/modules/api/SelfieVerification.js.map +1 -0
- package/build/modules/api/TemplateService.d.ts +44 -0
- package/build/modules/api/TemplateService.d.ts.map +1 -0
- package/build/modules/api/TemplateService.js +146 -0
- package/build/modules/api/TemplateService.js.map +1 -0
- package/build/modules/api/backendApi.d.ts +2 -0
- package/build/modules/api/backendApi.d.ts.map +1 -0
- package/build/modules/api/backendApi.js +6 -0
- package/build/modules/api/backendApi.js.map +1 -0
- package/build/modules/api/types.d.ts +53 -0
- package/build/modules/api/types.d.ts.map +1 -0
- package/build/modules/api/types.js +2 -0
- package/build/modules/api/types.js.map +1 -0
- package/build/modules/camera/NativeCameraModule.d.ts +52 -0
- package/build/modules/camera/NativeCameraModule.d.ts.map +1 -0
- package/build/modules/camera/NativeCameraModule.js +149 -0
- package/build/modules/camera/NativeCameraModule.js.map +1 -0
- package/build/modules/camera/UnifiedCameraModule.d.ts +70 -0
- package/build/modules/camera/UnifiedCameraModule.d.ts.map +1 -0
- package/build/modules/camera/UnifiedCameraModule.js +125 -0
- package/build/modules/camera/UnifiedCameraModule.js.map +1 -0
- package/build/modules/camera/VisionCameraModule.d.ts +62 -0
- package/build/modules/camera/VisionCameraModule.d.ts.map +1 -0
- package/build/modules/camera/VisionCameraModule.js +313 -0
- package/build/modules/camera/VisionCameraModule.js.map +1 -0
- package/build/modules/camera/VisionCameraModule.web.d.ts +145 -0
- package/build/modules/camera/VisionCameraModule.web.d.ts.map +1 -0
- package/build/modules/camera/VisionCameraModule.web.js +589 -0
- package/build/modules/camera/VisionCameraModule.web.js.map +1 -0
- package/build/modules/camera/index.d.ts +5 -0
- package/build/modules/camera/index.d.ts.map +1 -0
- package/build/modules/camera/index.js +4 -0
- package/build/modules/camera/index.js.map +1 -0
- package/build/stores/kycStore.d.ts +55 -0
- package/build/stores/kycStore.d.ts.map +1 -0
- package/build/stores/kycStore.js +98 -0
- package/build/stores/kycStore.js.map +1 -0
- package/build/types/KYC.types.d.ts +643 -0
- package/build/types/KYC.types.d.ts.map +1 -0
- package/build/types/KYC.types.js +25 -0
- package/build/types/KYC.types.js.map +1 -0
- package/build/types/env.types.d.ts +13 -0
- package/build/types/env.types.d.ts.map +1 -0
- package/build/types/env.types.js +2 -0
- package/build/types/env.types.js.map +1 -0
- package/build/utils/cropByObb.d.ts +37 -0
- package/build/utils/cropByObb.d.ts.map +1 -0
- package/build/utils/cropByObb.js +215 -0
- package/build/utils/cropByObb.js.map +1 -0
- package/build/utils/deviceDetection.d.ts +6 -0
- package/build/utils/deviceDetection.d.ts.map +1 -0
- package/build/utils/deviceDetection.js +12 -0
- package/build/utils/deviceDetection.js.map +1 -0
- package/build/utils/get-document-type-info.d.ts +13 -0
- package/build/utils/get-document-type-info.d.ts.map +1 -0
- package/build/utils/get-document-type-info.js +59 -0
- package/build/utils/get-document-type-info.js.map +1 -0
- package/build/utils/logger.d.ts +12 -0
- package/build/utils/logger.d.ts.map +1 -0
- package/build/utils/logger.js +45 -0
- package/build/utils/logger.js.map +1 -0
- package/build/utils/pathToBase64.d.ts +3 -0
- package/build/utils/pathToBase64.d.ts.map +1 -0
- package/build/utils/pathToBase64.js +65 -0
- package/build/utils/pathToBase64.js.map +1 -0
- package/build/utils/platformAlert.d.ts +20 -0
- package/build/utils/platformAlert.d.ts.map +1 -0
- package/build/utils/platformAlert.js +67 -0
- package/build/utils/platformAlert.js.map +1 -0
- package/build/utils/remove-duplicate.d.ts +2 -0
- package/build/utils/remove-duplicate.d.ts.map +1 -0
- package/build/utils/remove-duplicate.js +4 -0
- package/build/utils/remove-duplicate.js.map +1 -0
- package/build/utils/template-transformer.d.ts +10 -0
- package/build/utils/template-transformer.d.ts.map +1 -0
- package/build/utils/template-transformer.js +365 -0
- package/build/utils/template-transformer.js.map +1 -0
- package/build/web/WebKYCEntry.d.ts +9 -0
- package/build/web/WebKYCEntry.d.ts.map +1 -0
- package/build/web/WebKYCEntry.js +288 -0
- package/build/web/WebKYCEntry.js.map +1 -0
- package/build/web/index.d.ts +2 -0
- package/build/web/index.d.ts.map +1 -0
- package/build/web/index.js +2 -0
- package/build/web/index.js.map +1 -0
- package/expo-module.config.json +9 -0
- package/ios/TransfergratisSdk.podspec +31 -0
- package/ios/TransfergratisSdkModule.swift +409 -0
- package/package.json +71 -0
- package/plugin/build/index.d.ts +5 -0
- package/plugin/build/index.js +12 -0
- package/plugin/build/withLocation.d.ts +9 -0
- package/plugin/build/withLocation.js +77 -0
- package/plugin/build/withRemovePermissions.d.ts +3 -0
- package/plugin/build/withRemovePermissions.js +67 -0
- package/plugin/build/withVisionCamera.d.ts +8 -0
- package/plugin/build/withVisionCamera.js +68 -0
- package/plugin/src/index.ts +5 -0
- package/plugin/src/withLocation.ts +109 -0
- package/plugin/src/withRemovePermissions.js +85 -0
- package/plugin/src/withRemovePermissions.ts +83 -0
- package/plugin/src/withVisionCamera.js +88 -0
- package/plugin/src/withVisionCamera.ts +97 -0
- package/plugin/tsconfig.json +17 -0
- package/plugin/tsconfig.tsbuildinfo +1 -0
- package/plugin.js +19 -0
- package/src/App.tsx +9 -0
- package/src/TransfergratisSdk.types.ts +30 -0
- package/src/TransfergratisSdkModule.ts +16 -0
- package/src/TransfergratisSdkModule.web.ts +31 -0
- package/src/TransfergratisSdkView.tsx +11 -0
- package/src/TransfergratisSdkView.web.tsx +15 -0
- package/src/api/axios.ts +144 -0
- package/src/components/Camera/index.tsx +0 -0
- package/src/components/Camera/index.web.tsx +0 -0
- package/src/components/Camera/types.ts +0 -0
- package/src/components/ConfigurableKYCFlow.tsx +334 -0
- package/src/components/CustomCameraExample.tsx +274 -0
- package/src/components/EnhancedCameraView.tsx +482 -0
- package/src/components/EnhancedCameraView.web.tsx +597 -0
- package/src/components/FileUpload.tsx +249 -0
- package/src/components/KYCElementRenderer.tsx +106 -0
- package/src/components/KYCElements/AdditionalDocumentsTemplate.tsx +346 -0
- package/src/components/KYCElements/CameraCapture.tsx +268 -0
- package/src/components/KYCElements/CompletionStep.tsx +161 -0
- package/src/components/KYCElements/CountrySelection.tsx +177 -0
- package/src/components/KYCElements/CountrySelectionTemplate.tsx +526 -0
- package/src/components/KYCElements/DocumentTypeSelection.tsx +173 -0
- package/src/components/KYCElements/EmailVerificationTemplate.tsx +278 -0
- package/src/components/KYCElements/FileUpload.tsx +318 -0
- package/src/components/KYCElements/FileUploadTemplate.tsx +395 -0
- package/src/components/KYCElements/IDCardCapture.tsx +1053 -0
- package/src/components/KYCElements/InitializationStep.tsx +53 -0
- package/src/components/KYCElements/LocationCaptureTemplate.tsx +378 -0
- package/src/components/KYCElements/OrientationVideoCapture.tsx +649 -0
- package/src/components/KYCElements/OrientationVideoCaptureEnhanced.tsx +616 -0
- package/src/components/KYCElements/OrientationVideoCaptureFinal.tsx +534 -0
- package/src/components/KYCElements/PersonalInformationTemplate.tsx +158 -0
- package/src/components/KYCElements/PhoneVerificationTemplate.tsx +253 -0
- package/src/components/KYCElements/ReviewSubmitTemplate.tsx +201 -0
- package/src/components/KYCElements/SelfieCapture.tsx +284 -0
- package/src/components/KYCElements/SelfieCaptureTemplate.tsx +662 -0
- package/src/components/KYCElements/VerificationProgressTemplate.tsx +247 -0
- package/src/components/KYCElements/VerificationStep.tsx +234 -0
- package/src/components/KYCElements/WelcomeTemplate.tsx +290 -0
- package/src/components/KYCExample.tsx +297 -0
- package/src/components/KYCFlow.tsx +377 -0
- package/src/components/NativeCameraView.tsx +47 -0
- package/src/components/OverLay/IdCard.tsx +277 -0
- package/src/components/OverLay/SelfieOverlay.tsx +211 -0
- package/src/components/OverLay/StepOverlay.tsx +64 -0
- package/src/components/OverLay/type.ts +91 -0
- package/src/components/ProgressIndicator.tsx +62 -0
- package/src/components/SelfieCapture.tsx +244 -0
- package/src/components/SimpleExample.tsx +92 -0
- package/src/components/Svgs/GpsIcon.tsx +12 -0
- package/src/components/Svgs/Schield.tsx +26 -0
- package/src/components/Svgs/directionArrow.gif +0 -0
- package/src/components/Svgs/frontSelfieIcon.tsx +13 -0
- package/src/components/Svgs/scanningLine.tsx +88 -0
- package/src/components/Svgs/sideSelfieIcon.tsx +10 -0
- package/src/components/TemplateKYCExample.tsx +194 -0
- package/src/components/TemplateKYCFlowRefactored.tsx +473 -0
- package/src/components/VisionCameraView.tsx +197 -0
- package/src/components/example/CameraCaptureEx.tsx +335 -0
- package/src/components/example/CameraCaptureExAdvanced.tsx +357 -0
- package/src/components/example/CameraCaptureExScan.tsx +336 -0
- package/src/components/example/CameraCaptureExSimple.tsx +215 -0
- package/src/components/example/DynamicTemplateExample.tsx +289 -0
- package/src/components/example/OrientationVideoExample.tsx +380 -0
- package/src/components/example/SelfieCaptureEx.tsx +358 -0
- package/src/components/ui/Button.tsx +328 -0
- package/src/components/ui/ButtonExample.tsx +318 -0
- package/src/components/ui/ButtonStyles.ts +465 -0
- package/src/config/KYCConfig.ts +34 -0
- package/src/config/KYCConfigs.ts +528 -0
- package/src/config/allowedDomains.ts +133 -0
- package/src/config/countriesData.ts +85 -0
- package/src/config/region_mapping.json +735 -0
- package/src/config/region_mapping.ts +737 -0
- package/src/hooks/useI18n.ts +53 -0
- package/src/hooks/useKYC.ts +131 -0
- package/src/hooks/useKYCFlow.ts +248 -0
- package/src/hooks/useLocation.ts +221 -0
- package/src/hooks/useOrientationVideo.ts +149 -0
- package/src/hooks/useRealtimeVerifier.ts +128 -0
- package/src/hooks/useTemplateKYCFlow.tsx +1051 -0
- package/src/hooks/useTemplateLoader.ts +102 -0
- package/src/i18n/README.md +288 -0
- package/src/i18n/en/index.ts +275 -0
- package/src/i18n/fr/index.ts +260 -0
- package/src/i18n/index.ts +65 -0
- package/src/i18n/types.ts +182 -0
- package/src/i18n/usage-example.tsx +202 -0
- package/src/index.ts +25 -0
- package/src/modules/api/CardAuthentification.ts +589 -0
- package/src/modules/api/KYCService.ts +666 -0
- package/src/modules/api/SelfieVerification.ts +33 -0
- package/src/modules/api/TemplateService.ts +168 -0
- package/src/modules/api/backendApi.ts +8 -0
- package/src/modules/api/types.ts +59 -0
- package/src/modules/camera/NativeCameraModule.ts +170 -0
- package/src/modules/camera/UnifiedCameraModule.ts +160 -0
- package/src/modules/camera/VisionCameraModule.ts +334 -0
- package/src/modules/camera/VisionCameraModule.web.ts +679 -0
- package/src/modules/camera/index.ts +6 -0
- package/src/stores/kycStore.ts +161 -0
- package/src/types/KYC.types.ts +837 -0
- package/src/types/env.types.ts +13 -0
- package/src/utils/cropByObb.ts +254 -0
- package/src/utils/deviceDetection.ts +11 -0
- package/src/utils/get-document-type-info.ts +62 -0
- package/src/utils/logger.ts +48 -0
- package/src/utils/pathToBase64.ts +63 -0
- package/src/utils/platformAlert.ts +86 -0
- package/src/utils/remove-duplicate.ts +3 -0
- package/src/utils/template-transformer.ts +445 -0
- package/src/web/WebKYCEntry.tsx +375 -0
- package/src/web/index.ts +1 -0
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import React, { useState, useEffect } from 'react';
|
|
2
|
+
import { View, Text, TouchableOpacity, Image, Alert, StyleSheet } from 'react-native';
|
|
3
|
+
import { useKYCStore } from '../stores/kycStore';
|
|
4
|
+
import VisionCameraModule from '../modules/camera/VisionCameraModule';
|
|
5
|
+
import { EnhancedCameraView } from './EnhancedCameraView';
|
|
6
|
+
export const SelfieCapture = () => {
|
|
7
|
+
const [capturedSelfie, setCapturedSelfie] = useState(null);
|
|
8
|
+
const [isCapturing, setIsCapturing] = useState(false);
|
|
9
|
+
const [showCamera, setShowCamera] = useState(false);
|
|
10
|
+
const { setSelfie, setProcessing } = useKYCStore();
|
|
11
|
+
const instructions = "Placez votre visage dans le cadre et souriez naturellement. Assurez-vous que votre visage est bien éclairé et centré.";
|
|
12
|
+
useEffect(() => {
|
|
13
|
+
// Check camera availability on component mount
|
|
14
|
+
const checkCameraAvailability = async () => {
|
|
15
|
+
const isAvailable = await VisionCameraModule.isCameraAvailable();
|
|
16
|
+
if (!isAvailable) {
|
|
17
|
+
Alert.alert('Erreur', 'Caméra non disponible sur cette plateforme');
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
checkCameraAvailability();
|
|
21
|
+
}, []);
|
|
22
|
+
const handleCapture = async () => {
|
|
23
|
+
try {
|
|
24
|
+
setIsCapturing(true);
|
|
25
|
+
setProcessing(true);
|
|
26
|
+
const hasPermissions = await VisionCameraModule.requestAllPermissions();
|
|
27
|
+
if (!hasPermissions) {
|
|
28
|
+
Alert.alert('Permission refusée', 'Nous avons besoin de l\'accès à la caméra et au microphone');
|
|
29
|
+
setIsCapturing(false);
|
|
30
|
+
setProcessing(false);
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
setShowCamera(true);
|
|
34
|
+
}
|
|
35
|
+
catch (error) {
|
|
36
|
+
Alert.alert('Erreur', 'Impossible d\'ouvrir la caméra');
|
|
37
|
+
setIsCapturing(false);
|
|
38
|
+
setProcessing(false);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
const handleCaptureSuccess = (imagePath) => {
|
|
42
|
+
setCapturedSelfie(imagePath);
|
|
43
|
+
setSelfie(imagePath);
|
|
44
|
+
setShowCamera(false);
|
|
45
|
+
setIsCapturing(false);
|
|
46
|
+
setProcessing(false);
|
|
47
|
+
};
|
|
48
|
+
const handleRetake = () => {
|
|
49
|
+
setCapturedSelfie(null);
|
|
50
|
+
setShowCamera(false);
|
|
51
|
+
};
|
|
52
|
+
const handleCameraCapture = (result) => {
|
|
53
|
+
if (result.success && result.path) {
|
|
54
|
+
handleCaptureSuccess(result.path);
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
Alert.alert('Erreur', result.error || 'Échec de la capture');
|
|
58
|
+
setIsCapturing(false);
|
|
59
|
+
setProcessing(false);
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
const handleCameraError = (event) => {
|
|
63
|
+
Alert.alert('Erreur', event.message || 'Une erreur est survenue');
|
|
64
|
+
setShowCamera(false);
|
|
65
|
+
setIsCapturing(false);
|
|
66
|
+
setProcessing(false);
|
|
67
|
+
};
|
|
68
|
+
const handleCloseCamera = () => {
|
|
69
|
+
setShowCamera(false);
|
|
70
|
+
setIsCapturing(false);
|
|
71
|
+
setProcessing(false);
|
|
72
|
+
};
|
|
73
|
+
if (showCamera) {
|
|
74
|
+
return (<View style={styles.container}>
|
|
75
|
+
<EnhancedCameraView instructions={instructions} showCamera={true} cameraType="front" onCapture={handleCameraCapture} onError={handleCameraError} onClose={handleCloseCamera} quality="high" showCaptureButton={true} showSwitchCamera={false} overlayComponent={<View style={styles.selfieOverlay}>
|
|
76
|
+
<View style={styles.faceFrame}/>
|
|
77
|
+
</View>}/>
|
|
78
|
+
</View>);
|
|
79
|
+
}
|
|
80
|
+
return (<View style={styles.container}>
|
|
81
|
+
{capturedSelfie ? (<View style={styles.previewContainer}>
|
|
82
|
+
<View style={styles.imageContainer}>
|
|
83
|
+
<Image source={{ uri: `file://${capturedSelfie}` }} style={styles.previewImage} resizeMode="cover"/>
|
|
84
|
+
</View>
|
|
85
|
+
|
|
86
|
+
<View style={styles.buttonContainer}>
|
|
87
|
+
<TouchableOpacity style={[styles.button, styles.retakeButton]} onPress={handleRetake}>
|
|
88
|
+
<Text style={styles.buttonText}>Reprendre</Text>
|
|
89
|
+
</TouchableOpacity>
|
|
90
|
+
|
|
91
|
+
<TouchableOpacity style={[styles.button, styles.validateButton]} onPress={() => { }}>
|
|
92
|
+
<Text style={styles.buttonText}>Valider</Text>
|
|
93
|
+
</TouchableOpacity>
|
|
94
|
+
</View>
|
|
95
|
+
</View>) : (<View style={styles.captureContainer}>
|
|
96
|
+
<Text style={styles.title}>Capture de selfie</Text>
|
|
97
|
+
<Text style={styles.instructions}>
|
|
98
|
+
{instructions}
|
|
99
|
+
</Text>
|
|
100
|
+
|
|
101
|
+
<TouchableOpacity style={[styles.button, styles.captureButton]} onPress={handleCapture} disabled={isCapturing}>
|
|
102
|
+
<Text style={styles.buttonText}>
|
|
103
|
+
{isCapturing ? 'Ouverture...' : '📸 Prendre une photo'}
|
|
104
|
+
</Text>
|
|
105
|
+
</TouchableOpacity>
|
|
106
|
+
</View>)}
|
|
107
|
+
</View>);
|
|
108
|
+
};
|
|
109
|
+
const styles = StyleSheet.create({
|
|
110
|
+
container: {
|
|
111
|
+
flex: 1,
|
|
112
|
+
backgroundColor: '#f5f5f5',
|
|
113
|
+
},
|
|
114
|
+
captureContainer: {
|
|
115
|
+
flex: 1,
|
|
116
|
+
justifyContent: 'center',
|
|
117
|
+
alignItems: 'center',
|
|
118
|
+
padding: 20,
|
|
119
|
+
},
|
|
120
|
+
title: {
|
|
121
|
+
fontSize: 24,
|
|
122
|
+
fontWeight: 'bold',
|
|
123
|
+
color: '#333',
|
|
124
|
+
marginBottom: 20,
|
|
125
|
+
textAlign: 'center',
|
|
126
|
+
},
|
|
127
|
+
instructions: {
|
|
128
|
+
fontSize: 16,
|
|
129
|
+
color: '#666',
|
|
130
|
+
textAlign: 'center',
|
|
131
|
+
marginBottom: 40,
|
|
132
|
+
lineHeight: 24,
|
|
133
|
+
},
|
|
134
|
+
previewContainer: {
|
|
135
|
+
flex: 1,
|
|
136
|
+
padding: 20,
|
|
137
|
+
},
|
|
138
|
+
imageContainer: {
|
|
139
|
+
flex: 1,
|
|
140
|
+
justifyContent: 'center',
|
|
141
|
+
alignItems: 'center',
|
|
142
|
+
marginBottom: 20,
|
|
143
|
+
},
|
|
144
|
+
previewImage: {
|
|
145
|
+
width: 250,
|
|
146
|
+
height: 250,
|
|
147
|
+
borderRadius: 125,
|
|
148
|
+
borderWidth: 3,
|
|
149
|
+
borderColor: '#4CAF50',
|
|
150
|
+
},
|
|
151
|
+
buttonContainer: {
|
|
152
|
+
flexDirection: 'row',
|
|
153
|
+
justifyContent: 'space-between',
|
|
154
|
+
gap: 15,
|
|
155
|
+
},
|
|
156
|
+
button: {
|
|
157
|
+
flex: 1,
|
|
158
|
+
paddingVertical: 15,
|
|
159
|
+
paddingHorizontal: 20,
|
|
160
|
+
borderRadius: 10,
|
|
161
|
+
alignItems: 'center',
|
|
162
|
+
justifyContent: 'center',
|
|
163
|
+
},
|
|
164
|
+
captureButton: {
|
|
165
|
+
backgroundColor: '#4CAF50',
|
|
166
|
+
},
|
|
167
|
+
retakeButton: {
|
|
168
|
+
backgroundColor: '#FF9800',
|
|
169
|
+
},
|
|
170
|
+
validateButton: {
|
|
171
|
+
backgroundColor: '#2196F3',
|
|
172
|
+
},
|
|
173
|
+
buttonText: {
|
|
174
|
+
color: 'white',
|
|
175
|
+
fontSize: 16,
|
|
176
|
+
fontWeight: '600',
|
|
177
|
+
},
|
|
178
|
+
selfieOverlay: {
|
|
179
|
+
position: 'absolute',
|
|
180
|
+
top: 0,
|
|
181
|
+
left: 0,
|
|
182
|
+
right: 0,
|
|
183
|
+
bottom: 0,
|
|
184
|
+
justifyContent: 'center',
|
|
185
|
+
alignItems: 'center',
|
|
186
|
+
pointerEvents: 'none',
|
|
187
|
+
},
|
|
188
|
+
faceFrame: {
|
|
189
|
+
width: 250,
|
|
190
|
+
height: 300,
|
|
191
|
+
borderWidth: 3,
|
|
192
|
+
borderColor: '#4CAF50',
|
|
193
|
+
borderRadius: 125,
|
|
194
|
+
backgroundColor: 'transparent',
|
|
195
|
+
},
|
|
196
|
+
});
|
|
197
|
+
//# sourceMappingURL=SelfieCapture.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelfieCapture.js","sourceRoot":"","sources":["../../src/components/SelfieCapture.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACtF,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,kBAAkB,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,CAAC,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E;QACN,IAAI,EAAE,CAAC;QACP,eAAe,EAAE,EAAE;QACnB,iBAAiB,EAAE,EAAE;QACrB,YAAY,EAAE,EAAE;QAChB,UAAU,EAAE,QAAQ;QACpB,cAAc,EAAE,QAAQ;KACzB;IACD,aAAa,EAAE;QACb,eAAe,EAAE,SAAS;KAC3B;IACD,YAAY,EAAE;QACZ,eAAe,EAAE,SAAS;KAC3B;IACD,cAAc,EAAE;QACd,eAAe,EAAE,SAAS;KAC3B;IACD,UAAU,EAAE;QACV,KAAK,EAAE,OAAO;QACd,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,KAAK;KAClB;IACD,aAAa,EAAE;QACb,QAAQ,EAAE,UAAU;QACpB,GAAG,EAAE,CAAC;QACN,IAAI,EAAE,CAAC;QACP,KAAK,EAAE,CAAC;QACR,MAAM,EAAE,CAAC;QACT,cAAc,EAAE,QAAQ;QACxB,UAAU,EAAE,QAAQ;QACpB,aAAa,EAAE,MAAM;KACtB;IACD,SAAS,EAAE;QACT,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,GAAG;QACX,WAAW,EAAE,CAAC;QACd,WAAW,EAAE,SAAS;QACtB,YAAY,EAAE,GAAG;QACjB,eAAe,EAAE,aAAa;KAC/B;CACF,CAAC,CAAC","sourcesContent":["import React, { useState, useEffect } from 'react';\nimport { View, Text, TouchableOpacity, Image, Alert, StyleSheet } from 'react-native';\nimport { useKYCStore } from '../stores/kycStore';\nimport VisionCameraModule from '../modules/camera/VisionCameraModule';\nimport { EnhancedCameraView } from './EnhancedCameraView';\n\nexport const SelfieCapture: React.FC = () => {\n const [capturedSelfie, setCapturedSelfie] = useState<string | null>(null);\n const [isCapturing, setIsCapturing] = useState(false);\n const [showCamera, setShowCamera] = useState(false);\n const { setSelfie, setProcessing } = useKYCStore();\n\n const instructions = \"Placez votre visage dans le cadre et souriez naturellement. Assurez-vous que votre visage est bien éclairé et centré.\";\n\n useEffect(() => {\n // Check camera availability on component mount\n const checkCameraAvailability = async () => {\n const isAvailable = await VisionCameraModule.isCameraAvailable();\n if (!isAvailable) {\n Alert.alert('Erreur', 'Caméra non disponible sur cette plateforme');\n }\n };\n \n checkCameraAvailability();\n }, []);\n\n const handleCapture = async () => {\n try {\n setIsCapturing(true);\n setProcessing(true);\n\n const hasPermissions = await VisionCameraModule.requestAllPermissions();\n if (!hasPermissions) {\n Alert.alert('Permission refusée', 'Nous avons besoin de l\\'accès à la caméra et au microphone');\n setIsCapturing(false);\n setProcessing(false);\n return;\n }\n\n setShowCamera(true);\n } catch (error) {\n Alert.alert('Erreur', 'Impossible d\\'ouvrir la caméra');\n setIsCapturing(false);\n setProcessing(false);\n }\n };\n\n const handleCaptureSuccess = (imagePath: string) => {\n setCapturedSelfie(imagePath);\n setSelfie(imagePath);\n setShowCamera(false);\n setIsCapturing(false);\n setProcessing(false);\n };\n\n const handleRetake = () => {\n setCapturedSelfie(null);\n setShowCamera(false);\n };\n\n const handleCameraCapture = (result: { success: boolean; path?: string; error?: string }) => {\n if (result.success && result.path) {\n handleCaptureSuccess(result.path);\n } else {\n Alert.alert('Erreur', result.error || 'Échec de la capture');\n setIsCapturing(false);\n setProcessing(false);\n }\n };\n\n const handleCameraError = (event: { message: string }) => {\n Alert.alert('Erreur', event.message || 'Une erreur est survenue');\n setShowCamera(false);\n setIsCapturing(false);\n setProcessing(false);\n };\n\n const handleCloseCamera = () => {\n setShowCamera(false);\n setIsCapturing(false);\n setProcessing(false);\n };\n\n if (showCamera) {\n return (\n <View style={styles.container}>\n <EnhancedCameraView\n instructions={instructions}\n showCamera={true}\n cameraType=\"front\"\n onCapture={handleCameraCapture}\n onError={handleCameraError}\n onClose={handleCloseCamera}\n quality=\"high\"\n showCaptureButton={true}\n showSwitchCamera={false}\n overlayComponent={\n <View style={styles.selfieOverlay}>\n <View style={styles.faceFrame} />\n </View>\n }\n />\n </View>\n );\n }\n\n return (\n <View style={styles.container}>\n {capturedSelfie ? (\n <View style={styles.previewContainer}>\n <View style={styles.imageContainer}>\n <Image\n source={{ uri: `file://${capturedSelfie}` }}\n style={styles.previewImage}\n resizeMode=\"cover\"\n />\n </View>\n\n <View style={styles.buttonContainer}>\n <TouchableOpacity\n style={[styles.button, styles.retakeButton]}\n onPress={handleRetake}\n >\n <Text style={styles.buttonText}>Reprendre</Text>\n </TouchableOpacity>\n\n <TouchableOpacity\n style={[styles.button, styles.validateButton]}\n onPress={() => {/* Navigation vers l'étape suivante */}}\n >\n <Text style={styles.buttonText}>Valider</Text>\n </TouchableOpacity>\n </View>\n </View>\n ) : (\n <View style={styles.captureContainer}>\n <Text style={styles.title}>Capture de selfie</Text>\n <Text style={styles.instructions}>\n {instructions}\n </Text>\n \n <TouchableOpacity\n style={[styles.button, styles.captureButton]}\n onPress={handleCapture}\n disabled={isCapturing}\n >\n <Text style={styles.buttonText}>\n {isCapturing ? 'Ouverture...' : '📸 Prendre une photo'}\n </Text>\n </TouchableOpacity>\n </View>\n )}\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n backgroundColor: '#f5f5f5',\n },\n captureContainer: {\n flex: 1,\n justifyContent: 'center',\n alignItems: 'center',\n padding: 20,\n },\n title: {\n fontSize: 24,\n fontWeight: 'bold',\n color: '#333',\n marginBottom: 20,\n textAlign: 'center',\n },\n instructions: {\n fontSize: 16,\n color: '#666',\n textAlign: 'center',\n marginBottom: 40,\n lineHeight: 24,\n },\n previewContainer: {\n flex: 1,\n padding: 20,\n },\n imageContainer: {\n flex: 1,\n justifyContent: 'center',\n alignItems: 'center',\n marginBottom: 20,\n },\n previewImage: {\n width: 250,\n height: 250,\n borderRadius: 125,\n borderWidth: 3,\n borderColor: '#4CAF50',\n },\n buttonContainer: {\n flexDirection: 'row',\n justifyContent: 'space-between',\n gap: 15,\n },\n button: {\n flex: 1,\n paddingVertical: 15,\n paddingHorizontal: 20,\n borderRadius: 10,\n alignItems: 'center',\n justifyContent: 'center',\n },\n captureButton: {\n backgroundColor: '#4CAF50',\n },\n retakeButton: {\n backgroundColor: '#FF9800',\n },\n validateButton: {\n backgroundColor: '#2196F3',\n },\n buttonText: {\n color: 'white',\n fontSize: 16,\n fontWeight: '600',\n },\n selfieOverlay: {\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n justifyContent: 'center',\n alignItems: 'center',\n pointerEvents: 'none',\n },\n faceFrame: {\n width: 250,\n height: 300,\n borderWidth: 3,\n borderColor: '#4CAF50',\n borderRadius: 125,\n backgroundColor: 'transparent',\n },\n}); "]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SimpleExample.d.ts","sourceRoot":"","sources":["../../src/components/SimpleExample.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAkCjC,CAAC"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View, Text, TouchableOpacity, StyleSheet } from 'react-native';
|
|
3
|
+
export const SimpleExample = () => {
|
|
4
|
+
return (<View style={styles.container}>
|
|
5
|
+
<View style={styles.card}>
|
|
6
|
+
<Text style={styles.title}>
|
|
7
|
+
Test React Native StyleSheet
|
|
8
|
+
</Text>
|
|
9
|
+
|
|
10
|
+
<Text style={styles.subtitle}>
|
|
11
|
+
Ce composant utilise StyleSheet de React Native
|
|
12
|
+
</Text>
|
|
13
|
+
|
|
14
|
+
<View style={styles.buttonContainer}>
|
|
15
|
+
<TouchableOpacity style={[styles.button, styles.primaryButton]}>
|
|
16
|
+
<Text style={styles.buttonText}>
|
|
17
|
+
Bouton Principal
|
|
18
|
+
</Text>
|
|
19
|
+
</TouchableOpacity>
|
|
20
|
+
|
|
21
|
+
<TouchableOpacity style={[styles.button, styles.successButton]}>
|
|
22
|
+
<Text style={styles.buttonText}>
|
|
23
|
+
Bouton Succès
|
|
24
|
+
</Text>
|
|
25
|
+
</TouchableOpacity>
|
|
26
|
+
|
|
27
|
+
<TouchableOpacity style={[styles.button, styles.errorButton]}>
|
|
28
|
+
<Text style={styles.buttonText}>
|
|
29
|
+
Bouton Erreur
|
|
30
|
+
</Text>
|
|
31
|
+
</TouchableOpacity>
|
|
32
|
+
</View>
|
|
33
|
+
</View>
|
|
34
|
+
</View>);
|
|
35
|
+
};
|
|
36
|
+
const styles = StyleSheet.create({
|
|
37
|
+
container: {
|
|
38
|
+
flex: 1,
|
|
39
|
+
backgroundColor: '#f5f5f5',
|
|
40
|
+
padding: 16,
|
|
41
|
+
},
|
|
42
|
+
card: {
|
|
43
|
+
backgroundColor: 'white',
|
|
44
|
+
borderRadius: 12,
|
|
45
|
+
padding: 24,
|
|
46
|
+
shadowColor: '#000',
|
|
47
|
+
shadowOffset: {
|
|
48
|
+
width: 0,
|
|
49
|
+
height: 2,
|
|
50
|
+
},
|
|
51
|
+
shadowOpacity: 0.1,
|
|
52
|
+
shadowRadius: 3.84,
|
|
53
|
+
elevation: 5,
|
|
54
|
+
},
|
|
55
|
+
title: {
|
|
56
|
+
fontSize: 24,
|
|
57
|
+
fontWeight: 'bold',
|
|
58
|
+
color: '#333',
|
|
59
|
+
marginBottom: 16,
|
|
60
|
+
},
|
|
61
|
+
subtitle: {
|
|
62
|
+
fontSize: 16,
|
|
63
|
+
color: '#666',
|
|
64
|
+
marginBottom: 24,
|
|
65
|
+
},
|
|
66
|
+
buttonContainer: {
|
|
67
|
+
gap: 16,
|
|
68
|
+
},
|
|
69
|
+
button: {
|
|
70
|
+
paddingHorizontal: 16,
|
|
71
|
+
paddingVertical: 12,
|
|
72
|
+
borderRadius: 8,
|
|
73
|
+
},
|
|
74
|
+
primaryButton: {
|
|
75
|
+
backgroundColor: '#4CAF50',
|
|
76
|
+
},
|
|
77
|
+
successButton: {
|
|
78
|
+
backgroundColor: '#2196F3',
|
|
79
|
+
},
|
|
80
|
+
errorButton: {
|
|
81
|
+
backgroundColor: '#F44336',
|
|
82
|
+
},
|
|
83
|
+
buttonText: {
|
|
84
|
+
color: 'white',
|
|
85
|
+
fontWeight: '500',
|
|
86
|
+
textAlign: 'center',
|
|
87
|
+
},
|
|
88
|
+
});
|
|
89
|
+
//# sourceMappingURL=SimpleExample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SimpleExample.js","sourceRoot":"","sources":["../../src/components/SimpleExample.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAExE,MAAM,CAAC,MAAM,aAAa,GAAa,GAAG,EAAE;IAC1C,OAAO,CACL,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAC5B;MAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CACvB;QAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CACxB;;QACF,EAAE,IAAI,CAEN;;QAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAC3B;;QACF,EAAE,IAAI,CAEN;;QAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,eAAe,CAAC,CAClC;UAAA,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,aAAa,CAAC,CAAC,CAC7D;YAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAC7B;;YACF,EAAE,IAAI,CACR;UAAA,EAAE,gBAAgB,CAElB;;UAAA,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,aAAa,CAAC,CAAC,CAC7D;YAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,UAAU,C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SAAS;KAC3B;IACD,WAAW,EAAE;QACX,eAAe,EAAE,SAAS;KAC3B;IACD,UAAU,EAAE;QACV,KAAK,EAAE,OAAO;QACd,UAAU,EAAE,KAAK;QACjB,SAAS,EAAE,QAAQ;KACpB;CACF,CAAC,CAAC","sourcesContent":["import React from 'react';\nimport { View, Text, TouchableOpacity, StyleSheet } from 'react-native';\n\nexport const SimpleExample: React.FC = () => {\n return (\n <View style={styles.container}>\n <View style={styles.card}>\n <Text style={styles.title}>\n Test React Native StyleSheet\n </Text>\n \n <Text style={styles.subtitle}>\n Ce composant utilise StyleSheet de React Native\n </Text>\n \n <View style={styles.buttonContainer}>\n <TouchableOpacity style={[styles.button, styles.primaryButton]}>\n <Text style={styles.buttonText}>\n Bouton Principal\n </Text>\n </TouchableOpacity>\n \n <TouchableOpacity style={[styles.button, styles.successButton]}>\n <Text style={styles.buttonText}>\n Bouton Succès\n </Text>\n </TouchableOpacity>\n \n <TouchableOpacity style={[styles.button, styles.errorButton]}>\n <Text style={styles.buttonText}>\n Bouton Erreur\n </Text>\n </TouchableOpacity>\n </View>\n </View>\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n backgroundColor: '#f5f5f5',\n padding: 16,\n },\n card: {\n backgroundColor: 'white',\n borderRadius: 12,\n padding: 24,\n shadowColor: '#000',\n shadowOffset: {\n width: 0,\n height: 2,\n },\n shadowOpacity: 0.1,\n shadowRadius: 3.84,\n elevation: 5,\n },\n title: {\n fontSize: 24,\n fontWeight: 'bold',\n color: '#333',\n marginBottom: 16,\n },\n subtitle: {\n fontSize: 16,\n color: '#666',\n marginBottom: 24,\n },\n buttonContainer: {\n gap: 16,\n },\n button: {\n paddingHorizontal: 16,\n paddingVertical: 12,\n borderRadius: 8,\n },\n primaryButton: {\n backgroundColor: '#4CAF50',\n },\n successButton: {\n backgroundColor: '#2196F3',\n },\n errorButton: {\n backgroundColor: '#F44336',\n },\n buttonText: {\n color: 'white',\n fontWeight: '500',\n textAlign: 'center',\n },\n}); "]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GpsIcon.d.ts","sourceRoot":"","sources":["../../../src/components/Svgs/GpsIcon.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,OAAO,mCAOZ,CAAA;AAED,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Svg, Path } from "react-native-svg";
|
|
2
|
+
const GpsIcon = () => {
|
|
3
|
+
return (<Svg width="19" height="19" viewBox="0 0 19 19" fill="none">
|
|
4
|
+
<Path d="M16.25 8.25C16.25 13.5 9.5 18 9.5 18C9.5 18 2.75 13.5 2.75 8.25C2.75 6.45979 3.46116 4.7429 4.72703 3.47703C5.9929 2.21116 7.70979 1.5 9.5 1.5C11.2902 1.5 13.0071 2.21116 14.273 3.47703C15.5388 4.7429 16.25 6.45979 16.25 8.25Z" stroke="#22C55E" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round"/>
|
|
5
|
+
<Path d="M9.5 10.5C10.7426 10.5 11.75 9.49264 11.75 8.25C11.75 7.00736 10.7426 6 9.5 6C8.25736 6 7.25 7.00736 7.25 8.25C7.25 9.49264 8.25736 10.5 9.5 10.5Z" stroke="#22C55E" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round"/>
|
|
6
|
+
</Svg>);
|
|
7
|
+
};
|
|
8
|
+
export default GpsIcon;
|
|
9
|
+
//# sourceMappingURL=GpsIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GpsIcon.js","sourceRoot":"","sources":["../../../src/components/Svgs/GpsIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAE7C,MAAM,OAAO,GAAG,GAAG,EAAE;IACjB,OAAO,CACH,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CACvD;YAAA,CAAC,IAAI,CAAC,CAAC,CAAC,oOAAoO,CAAC,MAAM,CAAC,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,aAAa,CAAC,OAAO,CAAC,cAAc,CAAC,OAAO,EAC5T;YAAA,CAAC,IAAI,CAAC,CAAC,CAAC,oJAAoJ,CAAC,MAAM,CAAC,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,aAAa,CAAC,OAAO,CAAC,cAAc,CAAC,OAAO,EAChP;QAAA,EAAE,GAAG,CAAC,CACT,CAAA;AACL,CAAC,CAAA;AAED,eAAe,OAAO,CAAC","sourcesContent":["import { Svg, Path } from \"react-native-svg\";\n\nconst GpsIcon = () => {\n return (\n <Svg width=\"19\" height=\"19\" viewBox=\"0 0 19 19\" fill=\"none\">\n <Path d=\"M16.25 8.25C16.25 13.5 9.5 18 9.5 18C9.5 18 2.75 13.5 2.75 8.25C2.75 6.45979 3.46116 4.7429 4.72703 3.47703C5.9929 2.21116 7.70979 1.5 9.5 1.5C11.2902 1.5 13.0071 2.21116 14.273 3.47703C15.5388 4.7429 16.25 6.45979 16.25 8.25Z\" stroke=\"#22C55E\" strokeWidth=\"1.5\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n <Path d=\"M9.5 10.5C10.7426 10.5 11.75 9.49264 11.75 8.25C11.75 7.00736 10.7426 6 9.5 6C8.25736 6 7.25 7.00736 7.25 8.25C7.25 9.49264 8.25736 10.5 9.5 10.5Z\" stroke=\"#22C55E\" strokeWidth=\"1.5\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n </Svg>\n )\n}\n\nexport default GpsIcon;"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Schield.d.ts","sourceRoot":"","sources":["../../../src/components/Svgs/Schield.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,UAAU,mCAqBf,CAAA;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Svg, Path, G, Filter, Defs, FeColorMatrix, FeOffset, FeGaussianBlur, FeComposite, FeBlend } from "react-native-svg";
|
|
2
|
+
const ShieldIcon = () => {
|
|
3
|
+
return (<Svg width="36" height="36" viewBox="0 0 29 36" fill="none">
|
|
4
|
+
<G filter="url(#filter0_d_4964_44)">
|
|
5
|
+
<Path d="M24.0375 2.86663C23.8923 2.74133 23.7226 2.65233 23.5409 2.60618C23.3592 2.56003 23.1701 2.55791 22.9875 2.59996C21.6518 2.89856 20.2729 2.90236 18.9358 2.61114C17.5987 2.31992 16.3316 1.73985 15.2125 0.906631C15.0033 0.751794 14.7547 0.668823 14.5 0.668823C14.2453 0.668823 13.9968 0.751794 13.7875 0.906631C12.6685 1.73985 11.4014 2.31992 10.0642 2.61114C8.72708 2.90236 7.34821 2.89856 6.01251 2.59996C5.82993 2.55791 5.64084 2.56003 5.45913 2.60618C5.27743 2.65233 5.10773 2.74133 4.96251 2.86663C4.81748 2.99212 4.70066 3.15068 4.62062 3.33065C4.54059 3.51062 4.49937 3.70744 4.50001 3.90663V13.84C4.4989 15.7516 4.92597 17.6359 5.74568 19.3359C6.56538 21.0359 7.75398 22.5024 9.21251 23.6133L13.775 27.08C13.9867 27.2407 14.2401 27.3271 14.5 27.3271C14.7599 27.3271 15.0133 27.2407 15.225 27.08L19.7875 23.6133C21.246 22.5024 22.4346 21.0359 23.2543 19.3359C24.074 17.6359 24.5011 15.7516 24.5 13.84V3.90663C24.5006 3.70744 24.4594 3.51062 24.3794 3.33065C24.2994 3.15068 24.1825 2.99212 24.0375 2.86663ZM22 13.84C22.001 15.3263 21.6691 16.7914 21.0321 18.1133C20.395 19.4352 19.4712 20.5758 18.3375 21.44L14.5 24.36L10.6625 21.44C9.5288 20.5758 8.60499 19.4352 7.96794 18.1133C7.3309 16.7914 6.99905 15.3263 7.00001 13.84V5.43996C9.62054 5.67921 12.2451 5.03066 14.5 3.58663C16.755 5.03066 19.3795 5.67921 22 5.43996V13.84Z" fill="white"/>
|
|
6
|
+
</G>
|
|
7
|
+
<Defs>
|
|
8
|
+
<Filter id="filter0_d_4964_44" x="0.5" y="0.668823" width="28" height="34.6583" filterUnits="userSpaceOnUse">
|
|
9
|
+
{/* <FeFlood flood-opacity="0" result="BackgroundImageFix" /> */}
|
|
10
|
+
<FeColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
|
|
11
|
+
<FeOffset dy="4"/>
|
|
12
|
+
<FeGaussianBlur stdDeviation="2"/>
|
|
13
|
+
<FeComposite in2="hardAlpha" operator="out"/>
|
|
14
|
+
<FeColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.12 0"/>
|
|
15
|
+
<FeBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_4964_44"/>
|
|
16
|
+
<FeBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_4964_44" result="shape"/>
|
|
17
|
+
</Filter>
|
|
18
|
+
</Defs>
|
|
19
|
+
</Svg>);
|
|
20
|
+
};
|
|
21
|
+
export default ShieldIcon;
|
|
22
|
+
//# sourceMappingURL=Schield.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Schield.js","sourceRoot":"","sources":["../../../src/components/Svgs/Schield.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,cAAc,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE7H,MAAM,UAAU,GAAG,GAAG,EAAE;IACpB,OAAO,CACH,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CACvD;YAAA,CAAC,CAAC,CAAC,MAAM,CAAC,yBAAyB,CAC/B;gBAAA,CAAC,IAAI,CAAC,CAAC,CAAC,ozCAAozC,CAAC,IAAI,CAAC,OAAO,EAC70C;YAAA,EAAE,CAAC,CACH;YAAA,CAAC,IAAI,CACD;gBAAA,CAAC,MAAM,CAAC,EAAE,CAAC,mBAAmB,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,WAAW,CAAC,gBAAgB,CACxG;oBAAA,CAAC,+DAA+D,CAChE;oBAAA,CAAC,aAAa,CAAC,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,2CAA2C,CAAC,MAAM,CAAC,WAAW,EACnH;oBAAA,CAAC,QAAQ,CAAC,EAAE,CAAC,GAAG,EAChB;oBAAA,CAAC,cAAc,CAAC,YAAY,CAAC,GAAG,EAChC;oBAAA,CAAC,WAAW,CAAC,GAAG,CAAC,WAAW,CAAC,QAAQ,CAAC,KAAK,EAC3C;oBAAA,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,4CAA4C,EAChF;oBAAA,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,oBAAoB,CAAC,MAAM,CAAC,4BAA4B,EACnF;oBAAA,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,eAAe,CAAC,GAAG,CAAC,4BAA4B,CAAC,MAAM,CAAC,OAAO,EAC7F;gBAAA,EAAE,MAAM,CACZ;YAAA,EAAE,IAAI,CACV;QAAA,EAAE,GAAG,CAAC,CAET,CAAA;AACL,CAAC,CAAA;AAED,eAAe,UAAU,CAAC","sourcesContent":["import { Svg, Path, G, Filter, Defs, FeColorMatrix, FeOffset, FeGaussianBlur, FeComposite, FeBlend } from \"react-native-svg\";\n\nconst ShieldIcon = () => {\n return (\n <Svg width=\"36\" height=\"36\" viewBox=\"0 0 29 36\" fill=\"none\">\n <G filter=\"url(#filter0_d_4964_44)\">\n <Path d=\"M24.0375 2.86663C23.8923 2.74133 23.7226 2.65233 23.5409 2.60618C23.3592 2.56003 23.1701 2.55791 22.9875 2.59996C21.6518 2.89856 20.2729 2.90236 18.9358 2.61114C17.5987 2.31992 16.3316 1.73985 15.2125 0.906631C15.0033 0.751794 14.7547 0.668823 14.5 0.668823C14.2453 0.668823 13.9968 0.751794 13.7875 0.906631C12.6685 1.73985 11.4014 2.31992 10.0642 2.61114C8.72708 2.90236 7.34821 2.89856 6.01251 2.59996C5.82993 2.55791 5.64084 2.56003 5.45913 2.60618C5.27743 2.65233 5.10773 2.74133 4.96251 2.86663C4.81748 2.99212 4.70066 3.15068 4.62062 3.33065C4.54059 3.51062 4.49937 3.70744 4.50001 3.90663V13.84C4.4989 15.7516 4.92597 17.6359 5.74568 19.3359C6.56538 21.0359 7.75398 22.5024 9.21251 23.6133L13.775 27.08C13.9867 27.2407 14.2401 27.3271 14.5 27.3271C14.7599 27.3271 15.0133 27.2407 15.225 27.08L19.7875 23.6133C21.246 22.5024 22.4346 21.0359 23.2543 19.3359C24.074 17.6359 24.5011 15.7516 24.5 13.84V3.90663C24.5006 3.70744 24.4594 3.51062 24.3794 3.33065C24.2994 3.15068 24.1825 2.99212 24.0375 2.86663ZM22 13.84C22.001 15.3263 21.6691 16.7914 21.0321 18.1133C20.395 19.4352 19.4712 20.5758 18.3375 21.44L14.5 24.36L10.6625 21.44C9.5288 20.5758 8.60499 19.4352 7.96794 18.1133C7.3309 16.7914 6.99905 15.3263 7.00001 13.84V5.43996C9.62054 5.67921 12.2451 5.03066 14.5 3.58663C16.755 5.03066 19.3795 5.67921 22 5.43996V13.84Z\" fill=\"white\" />\n </G>\n <Defs>\n <Filter id=\"filter0_d_4964_44\" x=\"0.5\" y=\"0.668823\" width=\"28\" height=\"34.6583\" filterUnits=\"userSpaceOnUse\">\n {/* <FeFlood flood-opacity=\"0\" result=\"BackgroundImageFix\" /> */}\n <FeColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\" />\n <FeOffset dy=\"4\" />\n <FeGaussianBlur stdDeviation=\"2\" />\n <FeComposite in2=\"hardAlpha\" operator=\"out\" />\n <FeColorMatrix type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.12 0\" />\n <FeBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_4964_44\" />\n <FeBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_4964_44\" result=\"shape\" />\n </Filter>\n </Defs>\n </Svg>\n\n )\n}\n\nexport default ShieldIcon;"]}
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frontSelfieIcon.d.ts","sourceRoot":"","sources":["../../../src/components/Svgs/frontSelfieIcon.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,eAAe,mCAQpB,CAAA;AAED,eAAe,eAAe,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import Svg, { Path } from "react-native-svg";
|
|
2
|
+
const FrontSelfieIcon = () => {
|
|
3
|
+
return <Svg width="240" height="285" viewBox="0 0 240 285" fill="none">
|
|
4
|
+
<Path fill-rule="evenodd" clip-rule="evenodd" d="M35.4198 48.9242C38.2153 41.9014 42.5851 35.6693 48.3859 30.8232C61.3601 19.9842 88.1543 1.5 120 1.5C151.846 1.5 178.64 19.9842 191.614 30.8232C197.415 35.6693 201.785 41.9014 204.58 48.9242C210.484 63.7564 220 93.0114 220 127.5C220 168.082 204.19 212.617 198.234 227.954C196.792 231.667 194.971 235.196 192.628 238.417C183.46 251.021 156.313 283.5 120 283.5C83.6867 283.5 56.5401 251.021 47.3723 238.417C45.0294 235.196 43.2081 231.667 41.7663 227.954C35.8102 212.617 20 168.082 20 127.5C20 93.0114 29.5157 63.7564 35.4198 48.9242Z" stroke="#2DBE60" strokeWidth="2"/>
|
|
5
|
+
<Path fill-rule="evenodd" clip-rule="evenodd" d="M230.689 128.956C235.531 138.98 234.491 163.862 226.181 178.777C223.182 184.16 218.047 188.814 210.775 192.738L210.514 192.743C216.838 170.205 220 148.457 220 127.5L219.995 125.802V125.802L220 125.795L220.249 125.664V125.664L220.518 125.535C220.612 125.493 220.708 125.451 220.808 125.41L221.116 125.291C221.169 125.272 221.223 125.253 221.277 125.234L221.61 125.127C224.335 124.301 228.483 124.388 230.689 128.956Z" stroke="#2DBE60" strokeWidth="2"/>
|
|
6
|
+
<Path fill-rule="evenodd" clip-rule="evenodd" d="M9.3184 128.956C4.47645 138.98 5.51723 163.862 13.8267 178.777C16.8259 184.16 21.9613 188.814 29.2329 192.738L29.4941 192.743C23.1697 170.205 20.0075 148.457 20.0075 127.5L20.0133 125.802V125.802L20.0075 125.795L19.7591 125.664V125.664L19.4893 125.535C19.396 125.493 19.2994 125.451 19.1997 125.41L18.8916 125.291C18.8387 125.272 18.7852 125.253 18.731 125.234L18.398 125.127C15.6723 124.301 11.5253 124.388 9.3184 128.956Z" stroke="#2DBE60" strokeWidth="2"/>
|
|
7
|
+
<Path d="M120 33.5V251.5" stroke="#F6F7F8" strokeWidth="2" stroke-dasharray="3 2"/>
|
|
8
|
+
</Svg>;
|
|
9
|
+
};
|
|
10
|
+
export default FrontSelfieIcon;
|
|
11
|
+
//# sourceMappingURL=frontSelfieIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frontSelfieIcon.js","sourceRoot":"","sources":["../../../src/components/Svgs/frontSelfieIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,GAAG,EAAE,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAE5C,MAAM,eAAe,GAAG,GAAG,EAAE;IACzB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAClE;QAAA,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,shBAAshB,CAAC,MAAM,CAAC,SAAS,CAAC,WAAW,CAAC,GAAG,EACvmB;QAAA,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,iaAAia,CAAC,MAAM,CAAC,SAAS,CAAC,WAAW,CAAC,GAAG,EAClf;QAAA,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,yaAAya,CAAC,MAAM,CAAC,SAAS,CAAC,WAAW,CAAC,GAAG,EAC1f;QAAA,CAAC,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC,MAAM,CAAC,SAAS,CAAC,WAAW,CAAC,GAAG,CAAC,gBAAgB,CAAC,KAAK,EACrF;IAAA,EAAE,GAAG,CAAC,CAAA;AAEV,CAAC,CAAA;AAED,eAAe,eAAe,CAAA","sourcesContent":["import Svg, { Path } from \"react-native-svg\"\n\nconst FrontSelfieIcon = () => {\n return <Svg width=\"240\" height=\"285\" viewBox=\"0 0 240 285\" fill=\"none\">\n <Path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M35.4198 48.9242C38.2153 41.9014 42.5851 35.6693 48.3859 30.8232C61.3601 19.9842 88.1543 1.5 120 1.5C151.846 1.5 178.64 19.9842 191.614 30.8232C197.415 35.6693 201.785 41.9014 204.58 48.9242C210.484 63.7564 220 93.0114 220 127.5C220 168.082 204.19 212.617 198.234 227.954C196.792 231.667 194.971 235.196 192.628 238.417C183.46 251.021 156.313 283.5 120 283.5C83.6867 283.5 56.5401 251.021 47.3723 238.417C45.0294 235.196 43.2081 231.667 41.7663 227.954C35.8102 212.617 20 168.082 20 127.5C20 93.0114 29.5157 63.7564 35.4198 48.9242Z\" stroke=\"#2DBE60\" strokeWidth=\"2\" />\n <Path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M230.689 128.956C235.531 138.98 234.491 163.862 226.181 178.777C223.182 184.16 218.047 188.814 210.775 192.738L210.514 192.743C216.838 170.205 220 148.457 220 127.5L219.995 125.802V125.802L220 125.795L220.249 125.664V125.664L220.518 125.535C220.612 125.493 220.708 125.451 220.808 125.41L221.116 125.291C221.169 125.272 221.223 125.253 221.277 125.234L221.61 125.127C224.335 124.301 228.483 124.388 230.689 128.956Z\" stroke=\"#2DBE60\" strokeWidth=\"2\" />\n <Path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M9.3184 128.956C4.47645 138.98 5.51723 163.862 13.8267 178.777C16.8259 184.16 21.9613 188.814 29.2329 192.738L29.4941 192.743C23.1697 170.205 20.0075 148.457 20.0075 127.5L20.0133 125.802V125.802L20.0075 125.795L19.7591 125.664V125.664L19.4893 125.535C19.396 125.493 19.2994 125.451 19.1997 125.41L18.8916 125.291C18.8387 125.272 18.7852 125.253 18.731 125.234L18.398 125.127C15.6723 124.301 11.5253 124.388 9.3184 128.956Z\" stroke=\"#2DBE60\" strokeWidth=\"2\" />\n <Path d=\"M120 33.5V251.5\" stroke=\"#F6F7F8\" strokeWidth=\"2\" stroke-dasharray=\"3 2\" />\n </Svg>\n\n}\n\nexport default FrontSelfieIcon"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface ScanningLineProps {
|
|
2
|
+
yMin: number;
|
|
3
|
+
yMax: number;
|
|
4
|
+
screenWidth: number;
|
|
5
|
+
height: number;
|
|
6
|
+
}
|
|
7
|
+
declare const ScanningLine: ({ yMin, screenWidth, height, yMax }: ScanningLineProps) => import("react").JSX.Element;
|
|
8
|
+
export default ScanningLine;
|
|
9
|
+
//# sourceMappingURL=scanningLine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scanningLine.d.ts","sourceRoot":"","sources":["../../../src/components/Svgs/scanningLine.tsx"],"names":[],"mappings":"AAIA,UAAU,iBAAiB;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAA;CACjB;AACD,QAAA,MAAM,YAAY,GAAI,qCAAqC,iBAAiB,gCAiE3E,CAAA;AAYD,eAAe,YAAY,CAAA"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { useEffect, useState } from "react";
|
|
2
|
+
import { StyleSheet } from "react-native";
|
|
3
|
+
import Svg, { Defs, LinearGradient, Rect, Stop } from "react-native-svg";
|
|
4
|
+
const ScanningLine = ({ yMin, screenWidth, height, yMax }) => {
|
|
5
|
+
const [scanLineX, setScanLineX] = useState({
|
|
6
|
+
val: yMin - (40 + 280),
|
|
7
|
+
direction: 'down'
|
|
8
|
+
});
|
|
9
|
+
useEffect(() => {
|
|
10
|
+
const interval = setInterval(() => {
|
|
11
|
+
setScanLineX(prev => {
|
|
12
|
+
const newX = prev.val + (prev.direction === 'up' ? -1 : 1) * Math.round(Math.random() * 2); // Vitesse de déplacement horizontal
|
|
13
|
+
if (prev.direction === "down") {
|
|
14
|
+
if (newX > yMax - (280 - 40)) {
|
|
15
|
+
return { val: yMax + (40), direction: 'up' };
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
return { val: newX, direction: 'down' };
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
if (newX < yMin - (40)) {
|
|
23
|
+
return { val: yMin - (40 + 280), direction: 'down' };
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
return { val: newX, direction: 'up' };
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
}, 2);
|
|
31
|
+
return () => clearInterval(interval);
|
|
32
|
+
}, []);
|
|
33
|
+
return <Svg width={screenWidth} height={height} style={styles.svg}>
|
|
34
|
+
<Defs>
|
|
35
|
+
<LinearGradient id="grad-rect" x1="0%" y1={scanLineX.direction === 'up' ? "100%" : "0%"} x2="0%" y2={scanLineX.direction === 'up' ? "0%" : "100%"}>
|
|
36
|
+
<Stop offset="30%" stopColor="#2DBD60" stopOpacity="0"/>
|
|
37
|
+
<Stop offset="40%" stopColor="#2DBD60" stopOpacity="0"/>
|
|
38
|
+
<Stop offset="50%" stopColor="#2DBD60" stopOpacity="0"/>
|
|
39
|
+
<Stop offset="60%" stopColor="#2DBD60" stopOpacity="0"/>
|
|
40
|
+
<Stop offset="70%" stopColor="#2DBD60" stopOpacity="0.02"/>
|
|
41
|
+
<Stop offset="88%" stopColor="#2DBD60" stopOpacity="0.09"/>
|
|
42
|
+
<Stop offset="90%" stopColor="#2DBD60" stopOpacity="0.42"/>
|
|
43
|
+
<Stop offset="100%" stopColor="#2DBD60" stopOpacity="1"/>
|
|
44
|
+
</LinearGradient>
|
|
45
|
+
</Defs>
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
<Rect x="0" y={scanLineX.val} width={screenWidth} height="280" rx="0" ry="0" fill="url(#grad-rect)"/>
|
|
49
|
+
</Svg>;
|
|
50
|
+
};
|
|
51
|
+
const styles = StyleSheet.create({
|
|
52
|
+
svg: {
|
|
53
|
+
position: 'absolute',
|
|
54
|
+
top: 0,
|
|
55
|
+
left: 0,
|
|
56
|
+
width: '100%',
|
|
57
|
+
height: '100%',
|
|
58
|
+
},
|
|
59
|
+
});
|
|
60
|
+
export default ScanningLine;
|
|
61
|
+
//# sourceMappingURL=scanningLine.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scanningLine.js","sourceRoot":"","sources":["../../../src/components/Svgs/scanningLine.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,GAAG,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,kBAA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M,CAAC,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC,WAAW,CAAC,MAAM,EACzD;gBAAA,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC,WAAW,CAAC,MAAM,EACzD;gBAAA,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,WAAW,CAAC,GAAG,EAC3D;YAAA,EAAE,cAAc,CACpB;QAAA,EAAE,IAAI,CAGN;;;QAAA,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CACP,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CACjB,KAAK,CAAC,CAAC,WAAW,CAAC,CACnB,MAAM,CAAC,KAAK,CACZ,EAAE,CAAC,GAAG,CACN,EAAE,CAAC,GAAG,CACN,IAAI,CAAC,iBAAiB,EAG9B;IAAA,EAAE,GAAG,CAAC,CAAA;AAEV,CAAC,CAAA;AAED,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC7B,GAAG,EAAE;QACD,QAAQ,EAAE,UAAU;QACpB,GAAG,EAAE,CAAC;QACN,IAAI,EAAE,CAAC;QACP,KAAK,EAAE,MAAM;QACb,MAAM,EAAE,MAAM;KACjB;CACJ,CAAC,CAAA;AAEF,eAAe,YAAY,CAAA","sourcesContent":["import { useEffect, useState } from \"react\";\nimport { StyleSheet } from \"react-native\";\nimport Svg, { Defs, LinearGradient, Rect, Stop } from \"react-native-svg\"\n\ninterface ScanningLineProps {\n yMin: number,\n yMax: number\n screenWidth: number,\n height: number\n}\nconst ScanningLine = ({ yMin, screenWidth, height, yMax }: ScanningLineProps) => {\n\n const [scanLineX, setScanLineX] = useState<{\n val: number,\n direction: 'up' | 'down'\n }>({\n val: yMin - (40 + 280),\n direction: 'down'\n });\n\n useEffect(() => {\n const interval = setInterval(() => {\n setScanLineX(prev => {\n\n const newX = prev.val + (prev.direction === 'up' ? -1 : 1) * Math.round(Math.random() * 2); // Vitesse de déplacement horizontal \n if (prev.direction === \"down\") {\n if (newX > yMax - (280 - 40)) {\n return { val: yMax + (40), direction: 'up' }\n } else {\n return { val: newX, direction: 'down' }\n }\n } else {\n if (newX < yMin - (40)) {\n return { val: yMin - (40 + 280), direction: 'down' }\n } else {\n return { val: newX, direction: 'up' }\n }\n }\n\n });\n }, 2);\n\n return () => clearInterval(interval);\n }, []);\n\n \n\n return <Svg width={screenWidth} height={height} style={styles.svg}>\n <Defs>\n <LinearGradient id=\"grad-rect\" x1=\"0%\"\n y1={scanLineX.direction === 'up' ? \"100%\" : \"0%\"} x2=\"0%\"\n y2={scanLineX.direction === 'up' ? \"0%\" : \"100%\"}>\n <Stop offset=\"30%\" stopColor=\"#2DBD60\" stopOpacity=\"0\" />\n <Stop offset=\"40%\" stopColor=\"#2DBD60\" stopOpacity=\"0\" />\n <Stop offset=\"50%\" stopColor=\"#2DBD60\" stopOpacity=\"0\" />\n <Stop offset=\"60%\" stopColor=\"#2DBD60\" stopOpacity=\"0\" />\n <Stop offset=\"70%\" stopColor=\"#2DBD60\" stopOpacity=\"0.02\" />\n <Stop offset=\"88%\" stopColor=\"#2DBD60\" stopOpacity=\"0.09\" />\n <Stop offset=\"90%\" stopColor=\"#2DBD60\" stopOpacity=\"0.42\" />\n <Stop offset=\"100%\" stopColor=\"#2DBD60\" stopOpacity=\"1\" />\n </LinearGradient>\n </Defs>\n\n\n <Rect x=\"0\"\n y={scanLineX.val}\n width={screenWidth}\n height=\"280\"\n rx=\"0\"\n ry=\"0\"\n fill=\"url(#grad-rect)\"\n\n />\n </Svg>\n\n}\n\nconst styles = StyleSheet.create({\n svg: {\n position: 'absolute',\n top: 0,\n left: 0,\n width: '100%',\n height: '100%',\n },\n})\n\nexport default ScanningLine"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sideSelfieIcon.d.ts","sourceRoot":"","sources":["../../../src/components/Svgs/sideSelfieIcon.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,cAAc,mCAKnB,CAAA;AAED,eAAe,cAAc,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import Svg, { Path } from "react-native-svg";
|
|
2
|
+
const SideSelfieIcon = () => {
|
|
3
|
+
return <Svg width="240" height="285" viewBox="0 0 240 285" fill="none">
|
|
4
|
+
<Path fill-rule="evenodd" clip-rule="evenodd" d="M35.4198 48.9242C38.2153 41.9014 42.5851 35.6693 48.3859 30.8232C61.3601 19.9842 88.1543 1.5 120 1.5C151.846 1.5 178.64 19.9842 191.614 30.8232C197.415 35.6693 201.785 41.9014 204.58 48.9242C210.484 63.7564 220 93.0114 220 127.5C220 168.082 204.19 212.617 198.234 227.954C196.792 231.667 194.971 235.196 192.628 238.417C183.46 251.021 156.313 283.5 120 283.5C83.6867 283.5 56.5401 251.021 47.3723 238.417C45.0294 235.196 43.2081 231.667 41.7663 227.954C35.8102 212.617 20 168.082 20 127.5C20 93.0114 29.5157 63.7564 35.4198 48.9242Z" stroke="#4CAF50" strokeWidth="4"/>
|
|
5
|
+
<Path d="M120 33.5V251.5" stroke="#4CAF50" strokeWidth="4" stroke-dasharray="3 2"/>
|
|
6
|
+
</Svg>;
|
|
7
|
+
};
|
|
8
|
+
export default SideSelfieIcon;
|
|
9
|
+
//# sourceMappingURL=sideSelfieIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sideSelfieIcon.js","sourceRoot":"","sources":["../../../src/components/Svgs/sideSelfieIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,GAAG,EAAE,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAE5C,MAAM,cAAc,GAAG,GAAG,EAAE;IACxB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAClE;QAAA,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,shBAAshB,CAAC,MAAM,CAAC,SAAS,CAAC,WAAW,CAAC,GAAG,EACvmB;QAAA,CAAC,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC,MAAM,CAAC,SAAS,CAAC,WAAW,CAAC,GAAG,CAAC,gBAAgB,CAAC,KAAK,EACrF;IAAA,EAAE,GAAG,CAAC,CAAA;AACV,CAAC,CAAA;AAED,eAAe,cAAc,CAAA","sourcesContent":["import Svg, { Path } from \"react-native-svg\"\n\nconst SideSelfieIcon = () => {\n return <Svg width=\"240\" height=\"285\" viewBox=\"0 0 240 285\" fill=\"none\">\n <Path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M35.4198 48.9242C38.2153 41.9014 42.5851 35.6693 48.3859 30.8232C61.3601 19.9842 88.1543 1.5 120 1.5C151.846 1.5 178.64 19.9842 191.614 30.8232C197.415 35.6693 201.785 41.9014 204.58 48.9242C210.484 63.7564 220 93.0114 220 127.5C220 168.082 204.19 212.617 198.234 227.954C196.792 231.667 194.971 235.196 192.628 238.417C183.46 251.021 156.313 283.5 120 283.5C83.6867 283.5 56.5401 251.021 47.3723 238.417C45.0294 235.196 43.2081 231.667 41.7663 227.954C35.8102 212.617 20 168.082 20 127.5C20 93.0114 29.5157 63.7564 35.4198 48.9242Z\" stroke=\"#4CAF50\" strokeWidth=\"4\" />\n <Path d=\"M120 33.5V251.5\" stroke=\"#4CAF50\" strokeWidth=\"4\" stroke-dasharray=\"3 2\" />\n </Svg>\n}\n\nexport default SideSelfieIcon"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { KYCTemplate, VerificationState } from '../types/KYC.types';
|
|
3
|
+
import { KycEnvironment, BackendEnvironment } from '../types/env.types';
|
|
4
|
+
export declare const TemplateKYCExample: React.FC<{
|
|
5
|
+
onComplete: (data: VerificationState) => void;
|
|
6
|
+
onCancel: () => void;
|
|
7
|
+
onError: (error: string) => void;
|
|
8
|
+
language: string;
|
|
9
|
+
API_KEY?: string;
|
|
10
|
+
templateId?: string;
|
|
11
|
+
template?: KYCTemplate;
|
|
12
|
+
env?: KycEnvironment;
|
|
13
|
+
serverEnv?: BackendEnvironment;
|
|
14
|
+
existingSessionId?: string;
|
|
15
|
+
initialComponentIndex?: number;
|
|
16
|
+
initialCountryResume?: {
|
|
17
|
+
code: string;
|
|
18
|
+
documentType: string;
|
|
19
|
+
region?: string;
|
|
20
|
+
};
|
|
21
|
+
}>;
|
|
22
|
+
//# sourceMappingURL=TemplateKYCExample.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TemplateKYCExample.d.ts","sourceRoot":"","sources":["../../src/components/TemplateKYCExample.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAsIxE,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC;IACxC,UAAU,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC9C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB,GAAG,CAAC,EAAE,cAAc,CAAC;IACrB,SAAS,CAAC,EAAE,kBAAkB,CAAC;IAC/B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,oBAAoB,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAChF,CAyCA,CAAC"}
|