@transfergratis/react-native-sdk 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (566) hide show
  1. package/README.md +539 -0
  2. package/android/.gradle/8.9/checksums/checksums.lock +0 -0
  3. package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
  4. package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
  5. package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
  6. package/android/.gradle/8.9/gc.properties +0 -0
  7. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  8. package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
  9. package/android/.gradle/config.properties +2 -0
  10. package/android/.gradle/vcs-1/gc.properties +0 -0
  11. package/android/.idea/gradle.xml +14 -0
  12. package/android/.idea/migrations.xml +10 -0
  13. package/android/.idea/misc.xml +9 -0
  14. package/android/.idea/runConfigurations.xml +17 -0
  15. package/android/.idea/vcs.xml +6 -0
  16. package/android/build/.transforms/7ec900c0f64f5f1a7c88998dd44001b8/results.bin +1 -0
  17. package/android/build/.transforms/7ec900c0f64f5f1a7c88998dd44001b8/transformed/classes/classes_dex/classes.dex +0 -0
  18. package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/results.bin +1 -0
  19. package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/BuildConfig.dex +0 -0
  20. package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$1$5$1.dex +0 -0
  21. package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$1$5$2.dex +0 -0
  22. package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$1.dex +0 -0
  23. package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$2.dex +0 -0
  24. package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$3.dex +0 -0
  25. package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$4.dex +0 -0
  26. package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$5.dex +0 -0
  27. package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$6.dex +0 -0
  28. package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$1.dex +0 -0
  29. package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$2.dex +0 -0
  30. package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$3.dex +0 -0
  31. package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$4.dex +0 -0
  32. package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$View$1.dex +0 -0
  33. package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$lambda$4$$inlined$Prop$1.dex +0 -0
  34. package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$lambda$4$$inlined$Prop$2.dex +0 -0
  35. package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule.dex +0 -0
  36. package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkView.dex +0 -0
  37. package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
  38. package/android/build/generated/source/buildConfig/debug/kyc/transfergratis/com/BuildConfig.java +10 -0
  39. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +35 -0
  40. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +18 -0
  41. package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +6 -0
  42. package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +1 -0
  43. package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
  44. package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
  45. package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +1 -0
  46. package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/xml_file_paths.xml.flat +0 -0
  47. package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +2 -0
  48. package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
  49. package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
  50. package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
  51. package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +2 -0
  52. package/android/build/intermediates/java_res/debug/processDebugJavaRes/out/META-INF/transfergratis-sdk_debug.kotlin_module +0 -0
  53. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/kyc/transfergratis/com/BuildConfig.class +0 -0
  54. package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +3 -0
  55. package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +58 -0
  56. package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +35 -0
  57. package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +1 -0
  58. package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +1 -0
  59. package/android/build/intermediates/packaged_res/debug/packageDebugResources/xml/file_paths.xml +15 -0
  60. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/META-INF/transfergratis-sdk_debug.kotlin_module +0 -0
  61. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/BuildConfig.class +0 -0
  62. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$1$5$1.class +0 -0
  63. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$1$5$2.class +0 -0
  64. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$1.class +0 -0
  65. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$2.class +0 -0
  66. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$3.class +0 -0
  67. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$4.class +0 -0
  68. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$5.class +0 -0
  69. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$6.class +0 -0
  70. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$1.class +0 -0
  71. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$2.class +0 -0
  72. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$3.class +0 -0
  73. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$4.class +0 -0
  74. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$View$1.class +0 -0
  75. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$lambda$4$$inlined$Prop$1.class +0 -0
  76. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$lambda$4$$inlined$Prop$2.class +0 -0
  77. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule.class +0 -0
  78. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkView.class +0 -0
  79. package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
  80. package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +2 -0
  81. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
  82. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
  83. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
  84. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
  85. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
  86. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
  87. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
  88. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
  89. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
  90. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
  91. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
  92. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
  93. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
  94. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
  95. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
  96. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
  97. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
  98. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
  99. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
  100. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
  101. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
  102. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
  103. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
  104. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
  105. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
  106. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
  107. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
  108. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
  109. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
  110. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
  111. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
  112. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
  113. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
  114. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
  115. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
  116. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
  117. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
  118. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
  119. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
  120. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
  121. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
  122. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
  123. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
  124. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
  125. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
  126. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
  127. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
  128. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
  129. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
  130. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
  131. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
  132. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
  133. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
  134. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
  135. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
  136. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
  137. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +2 -0
  138. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
  139. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
  140. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
  141. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
  142. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
  143. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
  144. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
  145. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
  146. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
  147. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
  148. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
  149. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
  150. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
  151. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
  152. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
  153. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
  154. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
  155. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
  156. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
  157. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
  158. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
  159. package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
  160. package/android/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
  161. package/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
  162. package/android/build/outputs/logs/manifest-merger-debug-report.txt +63 -0
  163. package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  164. package/android/build/tmp/kotlin-classes/debug/META-INF/transfergratis-sdk_debug.kotlin_module +0 -0
  165. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$1$5$1.class +0 -0
  166. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$1$5$2.class +0 -0
  167. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$1.class +0 -0
  168. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$2.class +0 -0
  169. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$3.class +0 -0
  170. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$4.class +0 -0
  171. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$5.class +0 -0
  172. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$6.class +0 -0
  173. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$1.class +0 -0
  174. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$2.class +0 -0
  175. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$3.class +0 -0
  176. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$4.class +0 -0
  177. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$View$1.class +0 -0
  178. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$lambda$4$$inlined$Prop$1.class +0 -0
  179. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$lambda$4$$inlined$Prop$2.class +0 -0
  180. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule.class +0 -0
  181. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkView.class +0 -0
  182. package/android/build.gradle +47 -0
  183. package/android/local.properties +8 -0
  184. package/android/src/main/AndroidManifest.xml +28 -0
  185. package/android/src/main/java/kyc/transfergratis/com/TransfergratisSdkModule.kt +131 -0
  186. package/android/src/main/java/kyc/transfergratis/com/TransfergratisSdkView.kt +161 -0
  187. package/android/src/main/res/xml/file_paths.xml +15 -0
  188. package/build/App.d.ts +3 -0
  189. package/build/App.d.ts.map +1 -0
  190. package/build/App.js +9 -0
  191. package/build/App.js.map +1 -0
  192. package/build/TransfergratisSdk.types.d.ts +32 -0
  193. package/build/TransfergratisSdk.types.d.ts.map +1 -0
  194. package/build/TransfergratisSdk.types.js +2 -0
  195. package/build/TransfergratisSdk.types.js.map +1 -0
  196. package/build/TransfergratisSdkModule.d.ts +21 -0
  197. package/build/TransfergratisSdkModule.d.ts.map +1 -0
  198. package/build/TransfergratisSdkModule.js +4 -0
  199. package/build/TransfergratisSdkModule.js.map +1 -0
  200. package/build/TransfergratisSdkModule.web.d.ts +20 -0
  201. package/build/TransfergratisSdkModule.web.d.ts.map +1 -0
  202. package/build/TransfergratisSdkModule.web.js +25 -0
  203. package/build/TransfergratisSdkModule.web.js.map +1 -0
  204. package/build/TransfergratisSdkView.d.ts +4 -0
  205. package/build/TransfergratisSdkView.d.ts.map +1 -0
  206. package/build/TransfergratisSdkView.js +7 -0
  207. package/build/TransfergratisSdkView.js.map +1 -0
  208. package/build/TransfergratisSdkView.web.d.ts +4 -0
  209. package/build/TransfergratisSdkView.web.d.ts.map +1 -0
  210. package/build/TransfergratisSdkView.web.js +11 -0
  211. package/build/TransfergratisSdkView.web.js.map +1 -0
  212. package/build/components/Camera/index.d.ts +2 -0
  213. package/build/components/Camera/index.d.ts.map +1 -0
  214. package/build/components/Camera/index.js +2 -0
  215. package/build/components/Camera/index.js.map +1 -0
  216. package/build/components/Camera/index.web.d.ts +2 -0
  217. package/build/components/Camera/index.web.d.ts.map +1 -0
  218. package/build/components/Camera/index.web.js +2 -0
  219. package/build/components/Camera/index.web.js.map +1 -0
  220. package/build/components/Camera/types.d.ts +2 -0
  221. package/build/components/Camera/types.d.ts.map +1 -0
  222. package/build/components/Camera/types.js +2 -0
  223. package/build/components/Camera/types.js.map +1 -0
  224. package/build/components/ConfigurableKYCFlow.d.ts +11 -0
  225. package/build/components/ConfigurableKYCFlow.d.ts.map +1 -0
  226. package/build/components/ConfigurableKYCFlow.js +257 -0
  227. package/build/components/ConfigurableKYCFlow.js.map +1 -0
  228. package/build/components/CustomCameraExample.d.ts +10 -0
  229. package/build/components/CustomCameraExample.d.ts.map +1 -0
  230. package/build/components/CustomCameraExample.js +232 -0
  231. package/build/components/CustomCameraExample.js.map +1 -0
  232. package/build/components/EnhancedCameraView.d.ts +44 -0
  233. package/build/components/EnhancedCameraView.d.ts.map +1 -0
  234. package/build/components/EnhancedCameraView.js +316 -0
  235. package/build/components/EnhancedCameraView.js.map +1 -0
  236. package/build/components/EnhancedCameraView.web.d.ts +44 -0
  237. package/build/components/EnhancedCameraView.web.d.ts.map +1 -0
  238. package/build/components/EnhancedCameraView.web.js +399 -0
  239. package/build/components/EnhancedCameraView.web.js.map +1 -0
  240. package/build/components/FileUpload.d.ts +13 -0
  241. package/build/components/FileUpload.d.ts.map +1 -0
  242. package/build/components/FileUpload.js +216 -0
  243. package/build/components/FileUpload.js.map +1 -0
  244. package/build/components/KYCElementRenderer.d.ts +14 -0
  245. package/build/components/KYCElementRenderer.d.ts.map +1 -0
  246. package/build/components/KYCElementRenderer.js +31 -0
  247. package/build/components/KYCElementRenderer.js.map +1 -0
  248. package/build/components/KYCElements/CameraCapture.d.ts +11 -0
  249. package/build/components/KYCElements/CameraCapture.d.ts.map +1 -0
  250. package/build/components/KYCElements/CameraCapture.js +218 -0
  251. package/build/components/KYCElements/CameraCapture.js.map +1 -0
  252. package/build/components/KYCElements/CompletionStep.d.ts +10 -0
  253. package/build/components/KYCElements/CompletionStep.d.ts.map +1 -0
  254. package/build/components/KYCElements/CompletionStep.js +147 -0
  255. package/build/components/KYCElements/CompletionStep.js.map +1 -0
  256. package/build/components/KYCElements/CountrySelection.d.ts +11 -0
  257. package/build/components/KYCElements/CountrySelection.d.ts.map +1 -0
  258. package/build/components/KYCElements/CountrySelection.js +147 -0
  259. package/build/components/KYCElements/CountrySelection.js.map +1 -0
  260. package/build/components/KYCElements/CountrySelectionTemplate.d.ts +12 -0
  261. package/build/components/KYCElements/CountrySelectionTemplate.d.ts.map +1 -0
  262. package/build/components/KYCElements/CountrySelectionTemplate.js +245 -0
  263. package/build/components/KYCElements/CountrySelectionTemplate.js.map +1 -0
  264. package/build/components/KYCElements/DocumentTypeSelection.d.ts +11 -0
  265. package/build/components/KYCElements/DocumentTypeSelection.d.ts.map +1 -0
  266. package/build/components/KYCElements/DocumentTypeSelection.js +143 -0
  267. package/build/components/KYCElements/DocumentTypeSelection.js.map +1 -0
  268. package/build/components/KYCElements/FileUpload.d.ts +11 -0
  269. package/build/components/KYCElements/FileUpload.d.ts.map +1 -0
  270. package/build/components/KYCElements/FileUpload.js +267 -0
  271. package/build/components/KYCElements/FileUpload.js.map +1 -0
  272. package/build/components/KYCElements/FileUploadTemplate.d.ts +12 -0
  273. package/build/components/KYCElements/FileUploadTemplate.d.ts.map +1 -0
  274. package/build/components/KYCElements/FileUploadTemplate.js +326 -0
  275. package/build/components/KYCElements/FileUploadTemplate.js.map +1 -0
  276. package/build/components/KYCElements/IDCardCapture.d.ts +13 -0
  277. package/build/components/KYCElements/IDCardCapture.d.ts.map +1 -0
  278. package/build/components/KYCElements/IDCardCapture.js +421 -0
  279. package/build/components/KYCElements/IDCardCapture.js.map +1 -0
  280. package/build/components/KYCElements/LocationCaptureTemplate.d.ts +20 -0
  281. package/build/components/KYCElements/LocationCaptureTemplate.d.ts.map +1 -0
  282. package/build/components/KYCElements/LocationCaptureTemplate.js +275 -0
  283. package/build/components/KYCElements/LocationCaptureTemplate.js.map +1 -0
  284. package/build/components/KYCElements/OrientationVideoCapture.d.ts +12 -0
  285. package/build/components/KYCElements/OrientationVideoCapture.d.ts.map +1 -0
  286. package/build/components/KYCElements/OrientationVideoCapture.js +533 -0
  287. package/build/components/KYCElements/OrientationVideoCapture.js.map +1 -0
  288. package/build/components/KYCElements/OrientationVideoCaptureEnhanced.d.ts +12 -0
  289. package/build/components/KYCElements/OrientationVideoCaptureEnhanced.d.ts.map +1 -0
  290. package/build/components/KYCElements/OrientationVideoCaptureEnhanced.js +503 -0
  291. package/build/components/KYCElements/OrientationVideoCaptureEnhanced.js.map +1 -0
  292. package/build/components/KYCElements/OrientationVideoCaptureFinal.d.ts +12 -0
  293. package/build/components/KYCElements/OrientationVideoCaptureFinal.d.ts.map +1 -0
  294. package/build/components/KYCElements/OrientationVideoCaptureFinal.js +429 -0
  295. package/build/components/KYCElements/OrientationVideoCaptureFinal.js.map +1 -0
  296. package/build/components/KYCElements/SelfieCapture.d.ts +11 -0
  297. package/build/components/KYCElements/SelfieCapture.d.ts.map +1 -0
  298. package/build/components/KYCElements/SelfieCapture.js +235 -0
  299. package/build/components/KYCElements/SelfieCapture.js.map +1 -0
  300. package/build/components/KYCElements/SelfieCaptureTemplate.d.ts +12 -0
  301. package/build/components/KYCElements/SelfieCaptureTemplate.d.ts.map +1 -0
  302. package/build/components/KYCElements/SelfieCaptureTemplate.js +321 -0
  303. package/build/components/KYCElements/SelfieCaptureTemplate.js.map +1 -0
  304. package/build/components/KYCElements/VerificationStep.d.ts +10 -0
  305. package/build/components/KYCElements/VerificationStep.d.ts.map +1 -0
  306. package/build/components/KYCElements/VerificationStep.js +199 -0
  307. package/build/components/KYCElements/VerificationStep.js.map +1 -0
  308. package/build/components/KYCExample.d.ts +3 -0
  309. package/build/components/KYCExample.d.ts.map +1 -0
  310. package/build/components/KYCExample.js +247 -0
  311. package/build/components/KYCExample.js.map +1 -0
  312. package/build/components/KYCFlow.d.ts +3 -0
  313. package/build/components/KYCFlow.d.ts.map +1 -0
  314. package/build/components/KYCFlow.js +308 -0
  315. package/build/components/KYCFlow.js.map +1 -0
  316. package/build/components/NativeCameraView.d.ts +11 -0
  317. package/build/components/NativeCameraView.d.ts.map +1 -0
  318. package/build/components/NativeCameraView.js +27 -0
  319. package/build/components/NativeCameraView.js.map +1 -0
  320. package/build/components/OverLay/IdCard.d.ts +4 -0
  321. package/build/components/OverLay/IdCard.d.ts.map +1 -0
  322. package/build/components/OverLay/IdCard.js +181 -0
  323. package/build/components/OverLay/IdCard.js.map +1 -0
  324. package/build/components/OverLay/SelfieOverlay.d.ts +4 -0
  325. package/build/components/OverLay/SelfieOverlay.d.ts.map +1 -0
  326. package/build/components/OverLay/SelfieOverlay.js +168 -0
  327. package/build/components/OverLay/SelfieOverlay.js.map +1 -0
  328. package/build/components/OverLay/StepOverlay.d.ts +9 -0
  329. package/build/components/OverLay/StepOverlay.d.ts.map +1 -0
  330. package/build/components/OverLay/StepOverlay.js +51 -0
  331. package/build/components/OverLay/StepOverlay.js.map +1 -0
  332. package/build/components/OverLay/type.d.ts +21 -0
  333. package/build/components/OverLay/type.d.ts.map +1 -0
  334. package/build/components/OverLay/type.js +2 -0
  335. package/build/components/OverLay/type.js.map +1 -0
  336. package/build/components/ProgressIndicator.d.ts +8 -0
  337. package/build/components/ProgressIndicator.d.ts.map +1 -0
  338. package/build/components/ProgressIndicator.js +48 -0
  339. package/build/components/ProgressIndicator.js.map +1 -0
  340. package/build/components/SelfieCapture.d.ts +3 -0
  341. package/build/components/SelfieCapture.d.ts.map +1 -0
  342. package/build/components/SelfieCapture.js +197 -0
  343. package/build/components/SelfieCapture.js.map +1 -0
  344. package/build/components/SimpleExample.d.ts +3 -0
  345. package/build/components/SimpleExample.d.ts.map +1 -0
  346. package/build/components/SimpleExample.js +89 -0
  347. package/build/components/SimpleExample.js.map +1 -0
  348. package/build/components/Svgs/GpsIcon.d.ts +3 -0
  349. package/build/components/Svgs/GpsIcon.d.ts.map +1 -0
  350. package/build/components/Svgs/GpsIcon.js +9 -0
  351. package/build/components/Svgs/GpsIcon.js.map +1 -0
  352. package/build/components/Svgs/Schield.d.ts +3 -0
  353. package/build/components/Svgs/Schield.d.ts.map +1 -0
  354. package/build/components/Svgs/Schield.js +22 -0
  355. package/build/components/Svgs/Schield.js.map +1 -0
  356. package/build/components/Svgs/frontSelfieIcon.d.ts +3 -0
  357. package/build/components/Svgs/frontSelfieIcon.d.ts.map +1 -0
  358. package/build/components/Svgs/frontSelfieIcon.js +11 -0
  359. package/build/components/Svgs/frontSelfieIcon.js.map +1 -0
  360. package/build/components/Svgs/scanningLine.d.ts +9 -0
  361. package/build/components/Svgs/scanningLine.d.ts.map +1 -0
  362. package/build/components/Svgs/scanningLine.js +61 -0
  363. package/build/components/Svgs/scanningLine.js.map +1 -0
  364. package/build/components/Svgs/sideSelfieIcon.d.ts +3 -0
  365. package/build/components/Svgs/sideSelfieIcon.d.ts.map +1 -0
  366. package/build/components/Svgs/sideSelfieIcon.js +9 -0
  367. package/build/components/Svgs/sideSelfieIcon.js.map +1 -0
  368. package/build/components/TemplateKYCExample.d.ts +7 -0
  369. package/build/components/TemplateKYCExample.d.ts.map +1 -0
  370. package/build/components/TemplateKYCExample.js +433 -0
  371. package/build/components/TemplateKYCExample.js.map +1 -0
  372. package/build/components/TemplateKYCFlowRefactored.d.ts +12 -0
  373. package/build/components/TemplateKYCFlowRefactored.d.ts.map +1 -0
  374. package/build/components/TemplateKYCFlowRefactored.js +210 -0
  375. package/build/components/TemplateKYCFlowRefactored.js.map +1 -0
  376. package/build/components/VisionCameraView.d.ts +22 -0
  377. package/build/components/VisionCameraView.d.ts.map +1 -0
  378. package/build/components/VisionCameraView.js +142 -0
  379. package/build/components/VisionCameraView.js.map +1 -0
  380. package/build/components/example/CameraCaptureEx.d.ts +4 -0
  381. package/build/components/example/CameraCaptureEx.d.ts.map +1 -0
  382. package/build/components/example/CameraCaptureEx.js +219 -0
  383. package/build/components/example/CameraCaptureEx.js.map +1 -0
  384. package/build/components/example/CameraCaptureExAdvanced.d.ts +3 -0
  385. package/build/components/example/CameraCaptureExAdvanced.d.ts.map +1 -0
  386. package/build/components/example/CameraCaptureExAdvanced.js +229 -0
  387. package/build/components/example/CameraCaptureExAdvanced.js.map +1 -0
  388. package/build/components/example/CameraCaptureExScan.d.ts +3 -0
  389. package/build/components/example/CameraCaptureExScan.d.ts.map +1 -0
  390. package/build/components/example/CameraCaptureExScan.js +213 -0
  391. package/build/components/example/CameraCaptureExScan.js.map +1 -0
  392. package/build/components/example/CameraCaptureExSimple.d.ts +3 -0
  393. package/build/components/example/CameraCaptureExSimple.d.ts.map +1 -0
  394. package/build/components/example/CameraCaptureExSimple.js +138 -0
  395. package/build/components/example/CameraCaptureExSimple.js.map +1 -0
  396. package/build/components/example/OrientationVideoExample.d.ts +4 -0
  397. package/build/components/example/OrientationVideoExample.d.ts.map +1 -0
  398. package/build/components/example/OrientationVideoExample.js +329 -0
  399. package/build/components/example/OrientationVideoExample.js.map +1 -0
  400. package/build/components/example/SelfieCaptureEx.d.ts +4 -0
  401. package/build/components/example/SelfieCaptureEx.d.ts.map +1 -0
  402. package/build/components/example/SelfieCaptureEx.js +238 -0
  403. package/build/components/example/SelfieCaptureEx.js.map +1 -0
  404. package/build/components/ui/Button.d.ts +37 -0
  405. package/build/components/ui/Button.d.ts.map +1 -0
  406. package/build/components/ui/Button.js +194 -0
  407. package/build/components/ui/Button.js.map +1 -0
  408. package/build/components/ui/ButtonExample.d.ts +4 -0
  409. package/build/components/ui/ButtonExample.d.ts.map +1 -0
  410. package/build/components/ui/ButtonExample.js +209 -0
  411. package/build/components/ui/ButtonExample.js.map +1 -0
  412. package/build/components/ui/ButtonStyles.d.ts +521 -0
  413. package/build/components/ui/ButtonStyles.d.ts.map +1 -0
  414. package/build/components/ui/ButtonStyles.js +429 -0
  415. package/build/components/ui/ButtonStyles.js.map +1 -0
  416. package/build/config/KYCConfigs.d.ts +7 -0
  417. package/build/config/KYCConfigs.d.ts.map +1 -0
  418. package/build/config/KYCConfigs.js +516 -0
  419. package/build/config/KYCConfigs.js.map +1 -0
  420. package/build/hooks/useKYC.d.ts +15 -0
  421. package/build/hooks/useKYC.d.ts.map +1 -0
  422. package/build/hooks/useKYC.js +103 -0
  423. package/build/hooks/useKYC.js.map +1 -0
  424. package/build/hooks/useKYCFlow.d.ts +3 -0
  425. package/build/hooks/useKYCFlow.d.ts.map +1 -0
  426. package/build/hooks/useKYCFlow.js +221 -0
  427. package/build/hooks/useKYCFlow.js.map +1 -0
  428. package/build/hooks/useLocation.d.ts +32 -0
  429. package/build/hooks/useLocation.d.ts.map +1 -0
  430. package/build/hooks/useLocation.js +165 -0
  431. package/build/hooks/useLocation.js.map +1 -0
  432. package/build/hooks/useOrientationVideo.d.ts +10 -0
  433. package/build/hooks/useOrientationVideo.d.ts.map +1 -0
  434. package/build/hooks/useOrientationVideo.js +117 -0
  435. package/build/hooks/useOrientationVideo.js.map +1 -0
  436. package/build/hooks/useTemplateKYCFlow.d.ts +28 -0
  437. package/build/hooks/useTemplateKYCFlow.d.ts.map +1 -0
  438. package/build/hooks/useTemplateKYCFlow.js +221 -0
  439. package/build/hooks/useTemplateKYCFlow.js.map +1 -0
  440. package/build/index.d.ts +34 -0
  441. package/build/index.d.ts.map +1 -0
  442. package/build/index.js +45 -0
  443. package/build/index.js.map +1 -0
  444. package/build/modules/api/KYCService.d.ts +35 -0
  445. package/build/modules/api/KYCService.d.ts.map +1 -0
  446. package/build/modules/api/KYCService.js +119 -0
  447. package/build/modules/api/KYCService.js.map +1 -0
  448. package/build/modules/camera/NativeCameraModule.d.ts +52 -0
  449. package/build/modules/camera/NativeCameraModule.d.ts.map +1 -0
  450. package/build/modules/camera/NativeCameraModule.js +149 -0
  451. package/build/modules/camera/NativeCameraModule.js.map +1 -0
  452. package/build/modules/camera/UnifiedCameraModule.d.ts +70 -0
  453. package/build/modules/camera/UnifiedCameraModule.d.ts.map +1 -0
  454. package/build/modules/camera/UnifiedCameraModule.js +125 -0
  455. package/build/modules/camera/UnifiedCameraModule.js.map +1 -0
  456. package/build/modules/camera/VisionCameraModule.d.ts +62 -0
  457. package/build/modules/camera/VisionCameraModule.d.ts.map +1 -0
  458. package/build/modules/camera/VisionCameraModule.js +198 -0
  459. package/build/modules/camera/VisionCameraModule.js.map +1 -0
  460. package/build/modules/camera/VisionCameraModule.web.d.ts +145 -0
  461. package/build/modules/camera/VisionCameraModule.web.d.ts.map +1 -0
  462. package/build/modules/camera/VisionCameraModule.web.js +570 -0
  463. package/build/modules/camera/VisionCameraModule.web.js.map +1 -0
  464. package/build/modules/camera/index.d.ts +5 -0
  465. package/build/modules/camera/index.d.ts.map +1 -0
  466. package/build/modules/camera/index.js +4 -0
  467. package/build/modules/camera/index.js.map +1 -0
  468. package/build/stores/kycStore.d.ts +55 -0
  469. package/build/stores/kycStore.d.ts.map +1 -0
  470. package/build/stores/kycStore.js +98 -0
  471. package/build/stores/kycStore.js.map +1 -0
  472. package/build/types/KYC.types.d.ts +326 -0
  473. package/build/types/KYC.types.d.ts.map +1 -0
  474. package/build/types/KYC.types.js +2 -0
  475. package/build/types/KYC.types.js.map +1 -0
  476. package/expo-module.config.json +9 -0
  477. package/ios/TransfergratisSdk.podspec +31 -0
  478. package/ios/TransfergratisSdkModule.swift +409 -0
  479. package/package.json +67 -0
  480. package/plugin/build/index.d.ts +4 -0
  481. package/plugin/build/index.js +10 -0
  482. package/plugin/build/withLocation.d.ts +9 -0
  483. package/plugin/build/withLocation.js +77 -0
  484. package/plugin/build/withVisionCamera.d.ts +8 -0
  485. package/plugin/build/withVisionCamera.js +69 -0
  486. package/plugin/src/index.ts +4 -0
  487. package/plugin/src/withLocation.ts +109 -0
  488. package/plugin/src/withVisionCamera.js +89 -0
  489. package/plugin/src/withVisionCamera.ts +98 -0
  490. package/plugin/tsconfig.json +17 -0
  491. package/plugin/tsconfig.tsbuildinfo +1 -0
  492. package/plugin.js +14 -0
  493. package/src/App.tsx +9 -0
  494. package/src/TransfergratisSdk.types.ts +30 -0
  495. package/src/TransfergratisSdkModule.ts +16 -0
  496. package/src/TransfergratisSdkModule.web.ts +31 -0
  497. package/src/TransfergratisSdkView.tsx +11 -0
  498. package/src/TransfergratisSdkView.web.tsx +15 -0
  499. package/src/components/Camera/index.tsx +0 -0
  500. package/src/components/Camera/index.web.tsx +0 -0
  501. package/src/components/Camera/types.ts +0 -0
  502. package/src/components/ConfigurableKYCFlow.tsx +334 -0
  503. package/src/components/CustomCameraExample.tsx +274 -0
  504. package/src/components/EnhancedCameraView.tsx +421 -0
  505. package/src/components/EnhancedCameraView.web.tsx +517 -0
  506. package/src/components/FileUpload.tsx +249 -0
  507. package/src/components/KYCElementRenderer.tsx +106 -0
  508. package/src/components/KYCElements/CameraCapture.tsx +267 -0
  509. package/src/components/KYCElements/CompletionStep.tsx +161 -0
  510. package/src/components/KYCElements/CountrySelection.tsx +177 -0
  511. package/src/components/KYCElements/CountrySelectionTemplate.tsx +282 -0
  512. package/src/components/KYCElements/DocumentTypeSelection.tsx +173 -0
  513. package/src/components/KYCElements/FileUpload.tsx +317 -0
  514. package/src/components/KYCElements/FileUploadTemplate.tsx +388 -0
  515. package/src/components/KYCElements/IDCardCapture.tsx +519 -0
  516. package/src/components/KYCElements/LocationCaptureTemplate.tsx +325 -0
  517. package/src/components/KYCElements/OrientationVideoCapture.tsx +646 -0
  518. package/src/components/KYCElements/OrientationVideoCaptureEnhanced.tsx +613 -0
  519. package/src/components/KYCElements/OrientationVideoCaptureFinal.tsx +531 -0
  520. package/src/components/KYCElements/SelfieCapture.tsx +283 -0
  521. package/src/components/KYCElements/SelfieCaptureTemplate.tsx +388 -0
  522. package/src/components/KYCElements/VerificationStep.tsx +234 -0
  523. package/src/components/KYCExample.tsx +297 -0
  524. package/src/components/KYCFlow.tsx +377 -0
  525. package/src/components/NativeCameraView.tsx +47 -0
  526. package/src/components/OverLay/IdCard.tsx +269 -0
  527. package/src/components/OverLay/SelfieOverlay.tsx +210 -0
  528. package/src/components/OverLay/StepOverlay.tsx +62 -0
  529. package/src/components/OverLay/type.ts +21 -0
  530. package/src/components/ProgressIndicator.tsx +62 -0
  531. package/src/components/SelfieCapture.tsx +244 -0
  532. package/src/components/SimpleExample.tsx +92 -0
  533. package/src/components/Svgs/GpsIcon.tsx +12 -0
  534. package/src/components/Svgs/Schield.tsx +26 -0
  535. package/src/components/Svgs/directionArrow.gif +0 -0
  536. package/src/components/Svgs/frontSelfieIcon.tsx +13 -0
  537. package/src/components/Svgs/scanningLine.tsx +88 -0
  538. package/src/components/Svgs/sideSelfieIcon.tsx +10 -0
  539. package/src/components/TemplateKYCExample.tsx +447 -0
  540. package/src/components/TemplateKYCFlowRefactored.tsx +263 -0
  541. package/src/components/VisionCameraView.tsx +197 -0
  542. package/src/components/example/CameraCaptureEx.tsx +335 -0
  543. package/src/components/example/CameraCaptureExAdvanced.tsx +357 -0
  544. package/src/components/example/CameraCaptureExScan.tsx +336 -0
  545. package/src/components/example/CameraCaptureExSimple.tsx +215 -0
  546. package/src/components/example/OrientationVideoExample.tsx +384 -0
  547. package/src/components/example/SelfieCaptureEx.tsx +358 -0
  548. package/src/components/ui/Button.tsx +328 -0
  549. package/src/components/ui/ButtonExample.tsx +318 -0
  550. package/src/components/ui/ButtonStyles.ts +465 -0
  551. package/src/config/KYCConfigs.ts +528 -0
  552. package/src/hooks/useKYC.ts +131 -0
  553. package/src/hooks/useKYCFlow.ts +248 -0
  554. package/src/hooks/useLocation.ts +221 -0
  555. package/src/hooks/useOrientationVideo.ts +148 -0
  556. package/src/hooks/useTemplateKYCFlow.tsx +292 -0
  557. package/src/index.ts +72 -0
  558. package/src/modules/api/KYCService.ts +171 -0
  559. package/src/modules/camera/NativeCameraModule.ts +170 -0
  560. package/src/modules/camera/UnifiedCameraModule.ts +160 -0
  561. package/src/modules/camera/VisionCameraModule.ts +217 -0
  562. package/src/modules/camera/VisionCameraModule.web.ts +661 -0
  563. package/src/modules/camera/index.ts +6 -0
  564. package/src/stores/kycStore.ts +161 -0
  565. package/src/types/KYC.types.ts +434 -0
  566. package/src/types/nativewind.d.ts +2 -0
@@ -0,0 +1,308 @@
1
+ import React from 'react';
2
+ import { View, Text, TouchableOpacity, ScrollView, StyleSheet, PermissionsAndroid, Platform, Alert } from 'react-native';
3
+ import { useKYCStore } from '../stores/kycStore';
4
+ import { SelfieCapture } from './SelfieCapture';
5
+ import { FileUpload } from './FileUpload';
6
+ export const KYCFlow = () => {
7
+ const { currentStep, setCurrentStep, isProcessing, error, currentSession, initializeSession } = useKYCStore();
8
+ const [hasLocationPermission, setHasLocationPermission] = React.useState(null);
9
+ const requestLocationPermission = React.useCallback(async () => {
10
+ if (Platform.OS === 'ios') {
11
+ // iOS prompts automatically via system when needed; assume granted for this demo
12
+ setHasLocationPermission(true);
13
+ return true;
14
+ }
15
+ try {
16
+ const granted = await PermissionsAndroid.request(PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION, {
17
+ title: "Permission de localisation",
18
+ message: "Nous avons besoin de votre localisation pour démarrer la vérification.",
19
+ buttonNeutral: "Plus tard",
20
+ buttonNegative: "Annuler",
21
+ buttonPositive: "OK",
22
+ });
23
+ const isGranted = granted === PermissionsAndroid.RESULTS.GRANTED;
24
+ setHasLocationPermission(isGranted);
25
+ if (!isGranted) {
26
+ Alert.alert('Permission refusée', "La localisation est requise pour continuer.");
27
+ }
28
+ return isGranted;
29
+ }
30
+ catch (e) {
31
+ setHasLocationPermission(false);
32
+ Alert.alert('Erreur', "Impossible de demander la permission de localisation");
33
+ return false;
34
+ }
35
+ }, []);
36
+ React.useEffect(() => {
37
+ // Initialiser la session si elle n'existe pas
38
+ if (!currentSession) {
39
+ initializeSession('user-123'); // ID utilisateur temporaire
40
+ }
41
+ }, []);
42
+ const steps = [
43
+ { id: 0, title: 'Activer la localisation', description: 'Autorisez l\'accès à votre localisation' },
44
+ { id: 1, title: 'Bienvenues', description: 'Commençons la vérification' },
45
+ { id: 2, title: 'Document d\'identité', description: 'Sélectionnez vos documents' },
46
+ { id: 3, title: 'Selfie', description: 'Prenez une photo de votre visage' },
47
+ { id: 4, title: 'Vérification', description: 'Validation en cours...' },
48
+ { id: 5, title: 'Terminé', description: 'Vérification complétée' }
49
+ ];
50
+ // const appStep = [
51
+ // { id: 0, title: 'Which country issued your ID?', description: 'This helps us verify your documents quickly and securely',type:"country", options:["France","Belgique","Luxembourg","Allemagne","Italie","Espagne","Portugal","Autriche","Suisse","Pays-Bas","Autre"] },
52
+ // { id: 1, title: 'What is your ID type?', description: 'This helps us verify your documents quickly and securely',type:"idType", options:["Passport","National ID","Driver's License","Other"] },
53
+ // // camera front id
54
+ // { id: 2, title: 'Take a photo of your From ID', description: 'This helps us verify your documents quickly and securely',type:"cameraFrontId", options:[] },
55
+ // // camera back id
56
+ // { id: 3, title: 'Take a photo of your Back ID', description: 'This helps us verify your documents quickly and securely',type:"cameraBackId", options:[] },
57
+ // // camera selfie
58
+ // { id: 4, title: 'Take a photo of your Front side Selfie', description: 'This helps us verify your documents quickly and securely',type:"cameraSelfie", options:[] },
59
+ // // camera selfie
60
+ // { id: 5, title: 'Take a photo of your Left left side of your ID', description: 'This helps us verify your documents quickly and securely',type:"cameraSelfie", options:[] },
61
+ // // camera selfie
62
+ // { id: 6, title: 'Take a photo of your Right right side of your ID', description: 'This helps us verify your documents quickly and securely',type:"cameraSelfie", options:[] },
63
+ // ]
64
+ const handleFilesSelected = (files) => {
65
+ console.log('Files selected:', files);
66
+ // Ici vous pourriez traiter les fichiers sélectionnés
67
+ // Par exemple, les ajouter au store KYC
68
+ };
69
+ const renderStep = () => {
70
+ switch (currentStep) {
71
+ case 0:
72
+ return (<View style={styles.stepContainer}>
73
+ <Text style={styles.stepTitle}>Autoriser la localisation</Text>
74
+ <Text style={styles.stepDescription}>
75
+ Nous avons besoin de votre localisation (GPS) pour des raisons de conformité.
76
+ </Text>
77
+ {hasLocationPermission ? (<Text style={{ color: '#4CAF50', marginBottom: 16 }}>Permission accordée ✓</Text>) : null}
78
+ <TouchableOpacity style={styles.primaryButton} onPress={requestLocationPermission}>
79
+ <Text style={styles.primaryButtonText}>Activer la localisation</Text>
80
+ </TouchableOpacity>
81
+ <TouchableOpacity style={[styles.secondaryButton, { marginTop: 12, opacity: hasLocationPermission ? 1 : 0.6 }]} onPress={() => hasLocationPermission && setCurrentStep(1)} disabled={!hasLocationPermission}>
82
+ <Text style={styles.secondaryButtonText}>Continuer</Text>
83
+ </TouchableOpacity>
84
+ </View>);
85
+ case 1:
86
+ return (
87
+ // Écran d'accueil après permission
88
+ <View style={styles.stepContainer}>
89
+ <Text style={styles.stepTitle}>
90
+ Vérification d'identité
91
+ </Text>
92
+ <Text style={styles.stepDescription}>
93
+ Nous allons vous guider à travers le processus de vérification d'identité
94
+ </Text>
95
+ <TouchableOpacity style={styles.primaryButton} onPress={() => setCurrentStep(2)}>
96
+ <Text style={styles.primaryButtonText}>
97
+ Commencer
98
+ </Text>
99
+ </TouchableOpacity>
100
+ </View>);
101
+ case 2:
102
+ return (<FileUpload allowedTypes={['image/*', 'application/pdf']} maxFiles={3} onFilesSelected={handleFilesSelected}/>);
103
+ case 3:
104
+ return <SelfieCapture />;
105
+ case 4:
106
+ return (<View style={styles.stepContainer}>
107
+ <Text style={styles.stepTitle2}>
108
+ Vérification en cours
109
+ </Text>
110
+ <Text style={styles.stepDescription}>
111
+ Veuillez patienter pendant que nous vérifions vos informations
112
+ </Text>
113
+ <View style={styles.loadingIndicator}/>
114
+ </View>);
115
+ case 5:
116
+ return (<View style={styles.stepContainer}>
117
+ <Text style={styles.successTitle}>
118
+ ✅ Terminé !
119
+ </Text>
120
+ <Text style={styles.stepDescription}>
121
+ Votre vérification d'identité a été complétée avec succès
122
+ </Text>
123
+ <TouchableOpacity style={styles.primaryButton} onPress={() => setCurrentStep(0)}>
124
+ <Text style={styles.primaryButtonText}>
125
+ Recommencer
126
+ </Text>
127
+ </TouchableOpacity>
128
+ </View>);
129
+ default:
130
+ return null;
131
+ }
132
+ };
133
+ return (<View style={styles.container}>
134
+ {/* Header avec progression */}
135
+ <View style={styles.header}>
136
+ <View style={styles.progressContainer}>
137
+ <View style={[styles.progressBar, { width: `${(currentStep / (steps.length - 1)) * 100}%` }]}/>
138
+ </View>
139
+ <Text style={styles.headerTitle}>
140
+ {steps[currentStep]?.title}
141
+ </Text>
142
+ <Text style={styles.headerDescription}>
143
+ {steps[currentStep]?.description}
144
+ </Text>
145
+ </View>
146
+
147
+ {/* Contenu principal */}
148
+ <ScrollView style={styles.scrollView}>
149
+ {error && (<View style={styles.errorContainer}>
150
+ <Text style={styles.errorText}>
151
+ Erreur: {error}
152
+ </Text>
153
+ </View>)}
154
+
155
+ {renderStep()}
156
+ </ScrollView>
157
+
158
+ {/* Footer avec navigation */}
159
+ {currentStep > 0 && currentStep < 3 && (<View style={styles.footer}>
160
+ <TouchableOpacity style={styles.secondaryButton} onPress={() => setCurrentStep(currentStep - 1)} disabled={isProcessing}>
161
+ <Text style={styles.secondaryButtonText}>
162
+ Précédent
163
+ </Text>
164
+ </TouchableOpacity>
165
+
166
+ <TouchableOpacity style={styles.footerPrimaryButton} onPress={() => setCurrentStep(currentStep + 1)} disabled={isProcessing}>
167
+ <Text style={styles.primaryButtonText}>
168
+ Suivant
169
+ </Text>
170
+ </TouchableOpacity>
171
+ </View>)}
172
+ </View>);
173
+ };
174
+ const styles = StyleSheet.create({
175
+ container: {
176
+ flex: 1,
177
+ backgroundColor: '#f8f9fa',
178
+ },
179
+ header: {
180
+ backgroundColor: 'white',
181
+ padding: 16,
182
+ borderBottomWidth: 1,
183
+ borderBottomColor: '#e5e5e5',
184
+ shadowColor: '#000',
185
+ shadowOffset: {
186
+ width: 0,
187
+ height: 2,
188
+ },
189
+ shadowOpacity: 0.1,
190
+ shadowRadius: 3.84,
191
+ elevation: 5,
192
+ },
193
+ progressContainer: {
194
+ width: '100%',
195
+ height: 8,
196
+ backgroundColor: '#e5e5e5',
197
+ borderRadius: 4,
198
+ overflow: 'hidden',
199
+ marginBottom: 8,
200
+ },
201
+ progressBar: {
202
+ height: '100%',
203
+ backgroundColor: '#4CAF50',
204
+ borderRadius: 4,
205
+ },
206
+ headerTitle: {
207
+ fontSize: 18,
208
+ fontWeight: '600',
209
+ color: '#333',
210
+ marginTop: 8,
211
+ },
212
+ headerDescription: {
213
+ fontSize: 14,
214
+ color: '#666',
215
+ },
216
+ scrollView: {
217
+ flex: 1,
218
+ },
219
+ errorContainer: {
220
+ backgroundColor: '#fef2f2',
221
+ borderWidth: 1,
222
+ borderColor: '#fecaca',
223
+ margin: 16,
224
+ padding: 16,
225
+ borderRadius: 8,
226
+ },
227
+ errorText: {
228
+ color: '#dc2626',
229
+ fontWeight: '500',
230
+ },
231
+ stepContainer: {
232
+ flex: 1,
233
+ justifyContent: 'center',
234
+ alignItems: 'center',
235
+ padding: 24,
236
+ },
237
+ stepTitle: {
238
+ fontSize: 30,
239
+ fontWeight: 'bold',
240
+ color: '#333',
241
+ marginBottom: 16,
242
+ textAlign: 'center',
243
+ },
244
+ stepTitle2: {
245
+ fontSize: 24,
246
+ fontWeight: 'bold',
247
+ color: '#333',
248
+ marginBottom: 16,
249
+ textAlign: 'center',
250
+ },
251
+ successTitle: {
252
+ fontSize: 30,
253
+ fontWeight: 'bold',
254
+ color: '#4CAF50',
255
+ marginBottom: 16,
256
+ textAlign: 'center',
257
+ },
258
+ stepDescription: {
259
+ fontSize: 18,
260
+ color: '#666',
261
+ textAlign: 'center',
262
+ marginBottom: 32,
263
+ lineHeight: 24,
264
+ },
265
+ primaryButton: {
266
+ backgroundColor: '#4CAF50',
267
+ paddingHorizontal: 32,
268
+ paddingVertical: 16,
269
+ borderRadius: 8,
270
+ },
271
+ primaryButtonText: {
272
+ color: 'white',
273
+ fontWeight: '600',
274
+ fontSize: 18,
275
+ },
276
+ loadingIndicator: {
277
+ width: 64,
278
+ height: 64,
279
+ backgroundColor: '#4CAF50',
280
+ borderRadius: 32,
281
+ opacity: 0.7,
282
+ },
283
+ footer: {
284
+ backgroundColor: 'white',
285
+ borderTopWidth: 1,
286
+ borderTopColor: '#e5e5e5',
287
+ padding: 16,
288
+ flexDirection: 'row',
289
+ justifyContent: 'space-between',
290
+ },
291
+ secondaryButton: {
292
+ backgroundColor: '#e5e5e5',
293
+ paddingHorizontal: 24,
294
+ paddingVertical: 12,
295
+ borderRadius: 8,
296
+ },
297
+ secondaryButtonText: {
298
+ color: '#333',
299
+ fontWeight: '500',
300
+ },
301
+ footerPrimaryButton: {
302
+ backgroundColor: '#4CAF50',
303
+ paddingHorizontal: 24,
304
+ paddingVertical: 12,
305
+ borderRadius: 8,
306
+ },
307
+ });
308
+ //# sourceMappingURL=KYCFlow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KYCFlow.js","sourceRoot":"","sources":["../../src/components/KYCFlow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,gBAAgB,EAAE,UAAU,EAAE,UAAU,EAAE,kBAAkB,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACzH,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,CAAC,MAAM,OAAO,GAAa,GAAG,EAAE;IACpC,MAAM,EACJ,WAAW,EACX,cAAc,EACd,YAAY,EACZ,KAAK,EACL,cAAc,EACd,iBAAiB,EAClB,GAAG,WAAW,EAAE,CAAC;IAElB,MAAM,CAAC,qBAAqB,EAAE,wBAAwB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAiB,IAAI,CAAC,CAAC;IAE/F,MAAM,yBAAyB,GAAG,KAAK,CAAC,WAAW,CAAC,KAAK,IAAsB,EAAE;QAC/E,IAAI,QAAQ,CAAC,EAAE,KAAK,KAAK,EAAE,CAAC;YAC1B,iFAAiF;YACjF,wBAAwB,CAAC,IAAI,CAAC,CAAC;YAC/B,OAAO,IAAI,CAAC;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,EAAE;QACrB,eAAe,EAAE,EAAE;QACnB,YAAY,EAAE,CAAC;KAChB;CACF,CAAC,CAAC","sourcesContent":["import React from 'react';\nimport { View, Text, TouchableOpacity, ScrollView, StyleSheet, PermissionsAndroid, Platform, Alert } from 'react-native';\nimport { useKYCStore } from '../stores/kycStore';\nimport { SelfieCapture } from './SelfieCapture';\nimport { FileUpload } from './FileUpload';\n\nexport const KYCFlow: React.FC = () => {\n const { \n currentStep, \n setCurrentStep, \n isProcessing, \n error,\n currentSession,\n initializeSession \n } = useKYCStore();\n\n const [hasLocationPermission, setHasLocationPermission] = React.useState<boolean | null>(null);\n\n const requestLocationPermission = React.useCallback(async (): Promise<boolean> => {\n if (Platform.OS === 'ios') {\n // iOS prompts automatically via system when needed; assume granted for this demo\n setHasLocationPermission(true);\n return true;\n }\n\n try {\n const granted = await PermissionsAndroid.request(\n PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION,\n {\n title: \"Permission de localisation\",\n message: \"Nous avons besoin de votre localisation pour démarrer la vérification.\",\n buttonNeutral: \"Plus tard\",\n buttonNegative: \"Annuler\",\n buttonPositive: \"OK\",\n }\n );\n const isGranted = granted === PermissionsAndroid.RESULTS.GRANTED;\n setHasLocationPermission(isGranted);\n if (!isGranted) {\n Alert.alert('Permission refusée', \"La localisation est requise pour continuer.\");\n }\n return isGranted;\n } catch (e) {\n setHasLocationPermission(false);\n Alert.alert('Erreur', \"Impossible de demander la permission de localisation\");\n return false;\n }\n }, []);\n\n React.useEffect(() => {\n // Initialiser la session si elle n'existe pas\n if (!currentSession) {\n initializeSession('user-123'); // ID utilisateur temporaire\n }\n }, []);\n\n const steps = [\n { id: 0, title: 'Activer la localisation', description: 'Autorisez l\\'accès à votre localisation' },\n { id: 1, title: 'Bienvenues', description: 'Commençons la vérification' },\n { id: 2, title: 'Document d\\'identité', description: 'Sélectionnez vos documents' },\n { id: 3, title: 'Selfie', description: 'Prenez une photo de votre visage' },\n { id: 4, title: 'Vérification', description: 'Validation en cours...' },\n { id: 5, title: 'Terminé', description: 'Vérification complétée' }\n ];\n\n // const appStep = [\n // { id: 0, title: 'Which country issued your ID?', description: 'This helps us verify your documents quickly and securely',type:\"country\", options:[\"France\",\"Belgique\",\"Luxembourg\",\"Allemagne\",\"Italie\",\"Espagne\",\"Portugal\",\"Autriche\",\"Suisse\",\"Pays-Bas\",\"Autre\"] },\n // { id: 1, title: 'What is your ID type?', description: 'This helps us verify your documents quickly and securely',type:\"idType\", options:[\"Passport\",\"National ID\",\"Driver's License\",\"Other\"] },\n // // camera front id\n // { id: 2, title: 'Take a photo of your From ID', description: 'This helps us verify your documents quickly and securely',type:\"cameraFrontId\", options:[] },\n // // camera back id\n // { id: 3, title: 'Take a photo of your Back ID', description: 'This helps us verify your documents quickly and securely',type:\"cameraBackId\", options:[] },\n // // camera selfie\n // { id: 4, title: 'Take a photo of your Front side Selfie', description: 'This helps us verify your documents quickly and securely',type:\"cameraSelfie\", options:[] },\n // // camera selfie\n // { id: 5, title: 'Take a photo of your Left left side of your ID', description: 'This helps us verify your documents quickly and securely',type:\"cameraSelfie\", options:[] },\n // // camera selfie\n // { id: 6, title: 'Take a photo of your Right right side of your ID', description: 'This helps us verify your documents quickly and securely',type:\"cameraSelfie\", options:[] },\n \n // ]\n const handleFilesSelected = (files: Array<{ uri: string; path: string; name: string }>) => {\n console.log('Files selected:', files);\n // Ici vous pourriez traiter les fichiers sélectionnés\n // Par exemple, les ajouter au store KYC\n };\n\n const renderStep = () => {\n switch (currentStep) {\n case 0:\n return (\n <View style={styles.stepContainer}>\n <Text style={styles.stepTitle}>Autoriser la localisation</Text>\n <Text style={styles.stepDescription}>\n Nous avons besoin de votre localisation (GPS) pour des raisons de conformité.\n </Text>\n {hasLocationPermission ? (\n <Text style={{ color: '#4CAF50', marginBottom: 16 }}>Permission accordée ✓</Text>\n ) : null}\n <TouchableOpacity\n style={styles.primaryButton}\n onPress={requestLocationPermission}\n >\n <Text style={styles.primaryButtonText}>Activer la localisation</Text>\n </TouchableOpacity>\n <TouchableOpacity\n style={[styles.secondaryButton, { marginTop: 12, opacity: hasLocationPermission ? 1 : 0.6 }]}\n onPress={() => hasLocationPermission && setCurrentStep(1)}\n disabled={!hasLocationPermission}\n >\n <Text style={styles.secondaryButtonText}>Continuer</Text>\n </TouchableOpacity>\n </View>\n );\n\n case 1:\n return (\n // Écran d'accueil après permission\n <View style={styles.stepContainer}>\n <Text style={styles.stepTitle}>\n Vérification d'identité\n </Text>\n <Text style={styles.stepDescription}>\n Nous allons vous guider à travers le processus de vérification d'identité\n </Text>\n <TouchableOpacity \n style={styles.primaryButton}\n onPress={() => setCurrentStep(2)}\n >\n <Text style={styles.primaryButtonText}>\n Commencer\n </Text>\n </TouchableOpacity>\n </View>\n );\n\n case 2:\n return (\n <FileUpload\n allowedTypes={['image/*', 'application/pdf']}\n maxFiles={3}\n onFilesSelected={handleFilesSelected}\n />\n );\n\n case 3:\n return <SelfieCapture />;\n\n case 4:\n return (\n <View style={styles.stepContainer}>\n <Text style={styles.stepTitle2}>\n Vérification en cours\n </Text>\n <Text style={styles.stepDescription}>\n Veuillez patienter pendant que nous vérifions vos informations\n </Text>\n <View style={styles.loadingIndicator} />\n </View>\n );\n\n case 5:\n return (\n <View style={styles.stepContainer}>\n <Text style={styles.successTitle}>\n ✅ Terminé !\n </Text>\n <Text style={styles.stepDescription}>\n Votre vérification d'identité a été complétée avec succès\n </Text>\n <TouchableOpacity \n style={styles.primaryButton}\n onPress={() => setCurrentStep(0)}\n >\n <Text style={styles.primaryButtonText}>\n Recommencer\n </Text>\n </TouchableOpacity>\n </View>\n );\n\n default:\n return null;\n }\n };\n\n return (\n <View style={styles.container}>\n {/* Header avec progression */}\n <View style={styles.header}>\n <View style={styles.progressContainer}>\n <View \n style={[styles.progressBar, { width: `${(currentStep / (steps.length - 1)) * 100}%` }]}\n />\n </View>\n <Text style={styles.headerTitle}>\n {steps[currentStep]?.title}\n </Text>\n <Text style={styles.headerDescription}>\n {steps[currentStep]?.description}\n </Text>\n </View>\n\n {/* Contenu principal */}\n <ScrollView style={styles.scrollView}>\n {error && (\n <View style={styles.errorContainer}>\n <Text style={styles.errorText}>\n Erreur: {error}\n </Text>\n </View>\n )}\n\n {renderStep()}\n </ScrollView>\n\n {/* Footer avec navigation */}\n {currentStep > 0 && currentStep < 3 && (\n <View style={styles.footer}>\n <TouchableOpacity \n style={styles.secondaryButton}\n onPress={() => setCurrentStep(currentStep - 1)}\n disabled={isProcessing}\n >\n <Text style={styles.secondaryButtonText}>\n Précédent\n </Text>\n </TouchableOpacity>\n\n <TouchableOpacity \n style={styles.footerPrimaryButton}\n onPress={() => setCurrentStep(currentStep + 1)}\n disabled={isProcessing}\n >\n <Text style={styles.primaryButtonText}>\n Suivant\n </Text>\n </TouchableOpacity>\n </View>\n )}\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n backgroundColor: '#f8f9fa',\n },\n header: {\n backgroundColor: 'white',\n padding: 16,\n borderBottomWidth: 1,\n borderBottomColor: '#e5e5e5',\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 progressContainer: {\n width: '100%',\n height: 8,\n backgroundColor: '#e5e5e5',\n borderRadius: 4,\n overflow: 'hidden',\n marginBottom: 8,\n },\n progressBar: {\n height: '100%',\n backgroundColor: '#4CAF50',\n borderRadius: 4,\n },\n headerTitle: {\n fontSize: 18,\n fontWeight: '600',\n color: '#333',\n marginTop: 8,\n },\n headerDescription: {\n fontSize: 14,\n color: '#666',\n },\n scrollView: {\n flex: 1,\n },\n errorContainer: {\n backgroundColor: '#fef2f2',\n borderWidth: 1,\n borderColor: '#fecaca',\n margin: 16,\n padding: 16,\n borderRadius: 8,\n },\n errorText: {\n color: '#dc2626',\n fontWeight: '500',\n },\n stepContainer: {\n flex: 1,\n justifyContent: 'center',\n alignItems: 'center',\n padding: 24,\n },\n stepTitle: {\n fontSize: 30,\n fontWeight: 'bold',\n color: '#333',\n marginBottom: 16,\n textAlign: 'center',\n },\n stepTitle2: {\n fontSize: 24,\n fontWeight: 'bold',\n color: '#333',\n marginBottom: 16,\n textAlign: 'center',\n },\n successTitle: {\n fontSize: 30,\n fontWeight: 'bold',\n color: '#4CAF50',\n marginBottom: 16,\n textAlign: 'center',\n },\n stepDescription: {\n fontSize: 18,\n color: '#666',\n textAlign: 'center',\n marginBottom: 32,\n lineHeight: 24,\n },\n primaryButton: {\n backgroundColor: '#4CAF50',\n paddingHorizontal: 32,\n paddingVertical: 16,\n borderRadius: 8,\n },\n primaryButtonText: {\n color: 'white',\n fontWeight: '600',\n fontSize: 18,\n },\n loadingIndicator: {\n width: 64,\n height: 64,\n backgroundColor: '#4CAF50',\n borderRadius: 32,\n opacity: 0.7,\n },\n footer: {\n backgroundColor: 'white',\n borderTopWidth: 1,\n borderTopColor: '#e5e5e5',\n padding: 16,\n flexDirection: 'row',\n justifyContent: 'space-between',\n },\n secondaryButton: {\n backgroundColor: '#e5e5e5',\n paddingHorizontal: 24,\n paddingVertical: 12,\n borderRadius: 8,\n },\n secondaryButtonText: {\n color: '#333',\n fontWeight: '500',\n },\n footerPrimaryButton: {\n backgroundColor: '#4CAF50',\n paddingHorizontal: 24,\n paddingVertical: 12,\n borderRadius: 8,\n },\n}); "]}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { ViewStyle } from 'react-native';
3
+ export interface NativeCameraViewProps {
4
+ instructions: string;
5
+ showCamera: boolean;
6
+ style?: ViewStyle;
7
+ onCapture?: (event: any) => void;
8
+ onError?: (event: any) => void;
9
+ }
10
+ export declare const NativeCameraView: React.FC<NativeCameraViewProps>;
11
+ //# sourceMappingURL=NativeCameraView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeCameraView.d.ts","sourceRoot":"","sources":["../../src/components/NativeCameraView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,MAAM,WAAW,qBAAqB;IACpC,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IACjC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;CAChC;AAID,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAgC5D,CAAC"}
@@ -0,0 +1,27 @@
1
+ import React, { useEffect } from 'react';
2
+ import { requireNativeViewManager } from 'expo-modules-core';
3
+ const NativeCameraViewComponent = requireNativeViewManager('TransfergratisSdk_TransfergratisSdkView');
4
+ export const NativeCameraView = (props) => {
5
+ useEffect(() => {
6
+ console.log('🟨 [NativeCameraView] Props reçues:', {
7
+ instructions: props.instructions,
8
+ showCamera: props.showCamera,
9
+ hasOnCapture: !!props.onCapture,
10
+ hasOnError: !!props.onError
11
+ });
12
+ }, [props.instructions, props.showCamera, props.onCapture, props.onError]);
13
+ const handleCapture = (event) => {
14
+ console.log('🟨 [NativeCameraView] Événement onCapture reçu:', event);
15
+ if (props.onCapture) {
16
+ props.onCapture(event);
17
+ }
18
+ };
19
+ const handleError = (event) => {
20
+ console.log('🟨 [NativeCameraView] Événement onError reçu:', event);
21
+ if (props.onError) {
22
+ props.onError(event);
23
+ }
24
+ };
25
+ return (<NativeCameraViewComponent {...props} onCapture={handleCapture} onError={handleError}/>);
26
+ };
27
+ //# sourceMappingURL=NativeCameraView.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeCameraView.js","sourceRoot":"","sources":["../../src/components/NativeCameraView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAU7D,MAAM,yBAAyB,GAAG,wBAAwB,CAAC,yCAAyC,CAAC,CAAC;AAEtG,MAAM,CAAC,MAAM,gBAAgB,GAAoC,CAAC,KAAK,EAAE,EAAE;IAEzE,SAAS,CAAC,GAAG,EAAE;QACb,OAAO,CAAC,GAAG,CAAC,qCAAqC,EAAE;YACjD,YAAY,EAAE,KAAK,CAAC,YAAY;YAChC,UAAU,EAAE,KAAK,CAAC,UAAU;YAC5B,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,SAAS;YAC/B,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO;SAC5B,CAAC,CAAC;IACL,CAAC,EAAE,CAAC,KAAK,CAAC,YAAY,EAAE,KAAK,CAAC,UAAU,EAAE,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;IAE3E,MAAM,aAAa,GAAG,CAAC,KAAU,EAAE,EAAE;QACnC,OAAO,CAAC,GAAG,CAAC,iDAAiD,EAAE,KAAK,CAAC,CAAC;QACtE,IAAI,KAAK,CAAC,SAAS,EAAE,CAAC;YACpB,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACzB,CAAC;IACH,CAAC,CAAC;IAEF,MAAM,WAAW,GAAG,CAAC,KAAU,EAAE,EAAE;QACjC,OAAO,CAAC,GAAG,CAAC,+CAA+C,EAAE,KAAK,CAAC,CAAC;QACpE,IAAI,KAAK,CAAC,OAAO,EAAE,CAAC;YAClB,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACvB,CAAC;IACH,CAAC,CAAC;IAEF,OAAO,CACL,CAAC,yBAAyB,CACxB,IAAI,KAAK,CAAC,CACV,SAAS,CAAC,CAAC,aAAa,CAAC,CACzB,OAAO,CAAC,CAAC,WAAW,CAAC,EACrB,CACH,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import React, { useEffect } from 'react';\nimport { ViewStyle } from 'react-native';\nimport { requireNativeViewManager } from 'expo-modules-core';\n\nexport interface NativeCameraViewProps {\n instructions: string;\n showCamera: boolean;\n style?: ViewStyle;\n onCapture?: (event: any) => void;\n onError?: (event: any) => void;\n}\n\nconst NativeCameraViewComponent = requireNativeViewManager('TransfergratisSdk_TransfergratisSdkView');\n\nexport const NativeCameraView: React.FC<NativeCameraViewProps> = (props) => {\n \n useEffect(() => {\n console.log('🟨 [NativeCameraView] Props reçues:', {\n instructions: props.instructions,\n showCamera: props.showCamera,\n hasOnCapture: !!props.onCapture,\n hasOnError: !!props.onError\n });\n }, [props.instructions, props.showCamera, props.onCapture, props.onError]);\n\n const handleCapture = (event: any) => {\n console.log('🟨 [NativeCameraView] Événement onCapture reçu:', event);\n if (props.onCapture) {\n props.onCapture(event);\n }\n };\n\n const handleError = (event: any) => {\n console.log('🟨 [NativeCameraView] Événement onError reçu:', event);\n if (props.onError) {\n props.onError(event);\n }\n };\n\n return (\n <NativeCameraViewComponent \n {...props} \n onCapture={handleCapture}\n onError={handleError}\n />\n );\n}; "]}
@@ -0,0 +1,4 @@
1
+ import { IdCardOverlayProps } from "./type";
2
+ declare const IdCardOverlay: ({ xMin: xMinProps, yMin: yMinProps, xMax: xMaxProps, yMax: yMaxProps, cornerOpacity, instructions, cornerColor, stepperProps }: IdCardOverlayProps) => import("react").JSX.Element;
3
+ export default IdCardOverlay;
4
+ //# sourceMappingURL=IdCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IdCard.d.ts","sourceRoot":"","sources":["../../../src/components/OverLay/IdCard.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAM5C,QAAA,MAAM,aAAa,GAAI,gIAA4I,kBAAkB,gCA2IpL,CAAA;AAED,eAAe,aAAa,CAAC"}
@@ -0,0 +1,181 @@
1
+ import { Animated, Dimensions, StyleSheet, Text, View } from "react-native";
2
+ import Svg, { Defs, Mask, Rect, Path } from "react-native-svg";
3
+ import ScanningLine from "../Svgs/scanningLine";
4
+ import StepOverlay from "./StepOverlay";
5
+ const IdCardOverlay = ({ xMin: xMinProps, yMin: yMinProps, xMax: xMaxProps, yMax: yMaxProps, cornerOpacity, instructions, cornerColor = "#4CAF50", stepperProps }) => {
6
+ const screenWidth = Dimensions.get('window').width;
7
+ const screenHeight = Dimensions.get('window').height;
8
+ const boxWidth = xMaxProps - xMinProps;
9
+ const boxHeight = yMaxProps - yMinProps;
10
+ // Calculer les coordonnées pour centrer le cadre
11
+ const xMin = (screenWidth - boxWidth) / 2;
12
+ const yMin = (screenHeight - boxHeight) / 3;
13
+ const xMax = xMin + boxWidth;
14
+ const yMax = yMin + boxHeight;
15
+ return (<View style={StyleSheet.absoluteFill}>
16
+ {stepperProps ? (<StepOverlay {...stepperProps}/>) : null}
17
+
18
+ <Animated.View style={[styles.topIntruction]}>
19
+ <Text style={styles.topIntructionText}>
20
+ đź’ˇ {instructions}
21
+ </Text>
22
+ </Animated.View>
23
+
24
+ <Svg height={screenHeight} width={screenWidth} style={styles.svg}>
25
+ <Defs>
26
+ <Mask id="cameraMask">
27
+ {/* Fond blanc - zone visible */}
28
+ <Rect x="0" y="0" width={screenWidth} height={screenHeight} fill="white"/>
29
+ {/* Zone noire - zone masquée (transparente) */}
30
+ <Rect x={xMin} y={yMin} width={boxWidth} height={boxHeight} fill="black"/>
31
+ </Mask>
32
+ </Defs>
33
+
34
+ {/* Overlay semi-transparent avec masque */}
35
+ <Rect x="0" y="0" width={screenWidth} height={screenHeight} fill="rgba(0, 0, 0, 0.5)" mask="url(#cameraMask)"/>
36
+
37
+ {/* Coins de la zone de capture - arrondis avec animation */}
38
+ {/* Coin supérieur gauche */}
39
+ <Path d={`M ${xMin + 15} ${yMin} Q ${xMin} ${yMin} ${xMin} ${yMin + 15} L ${xMin} ${yMin + 20}`} stroke={cornerColor} strokeWidth="8" fill="none" opacity={cornerOpacity}/>
40
+ <Path d={`M ${xMin + 20} ${yMin} L ${xMin + 15} ${yMin}`} stroke={cornerColor} strokeWidth="8" opacity={cornerOpacity}/>
41
+
42
+ {/* Coin supérieur droit */}
43
+ <Path d={`M ${xMax - 15} ${yMin} Q ${xMax} ${yMin} ${xMax} ${yMin + 15} L ${xMax} ${yMin + 20}`} stroke={cornerColor} strokeWidth="8" fill="none" opacity={cornerOpacity}/>
44
+ <Path d={`M ${xMax - 20} ${yMin} L ${xMax - 15} ${yMin}`} stroke={cornerColor} strokeWidth="8" opacity={cornerOpacity}/>
45
+
46
+ {/* Coin inférieur gauche */}
47
+ <Path d={`M ${xMin + 15} ${yMax} Q ${xMin} ${yMax} ${xMin} ${yMax - 15} L ${xMin} ${yMax - 20}`} stroke={cornerColor} strokeWidth="8" fill="none" opacity={cornerOpacity}/>
48
+ <Path d={`M ${xMin + 20} ${yMax} L ${xMin + 15} ${yMax}`} stroke={cornerColor} strokeWidth="8" opacity={cornerOpacity}/>
49
+
50
+ {/* Coin inférieur droit */}
51
+ <Path d={`M ${xMax - 15} ${yMax} Q ${xMax} ${yMax} ${xMax} ${yMax - 15} L ${xMax} ${yMax - 20}`} stroke={cornerColor} strokeWidth="8" fill="none" opacity={cornerOpacity}/>
52
+ <Path d={`M ${xMax - 20} ${yMax} L ${xMax - 15} ${yMax}`} stroke={cornerColor} strokeWidth="8" opacity={cornerOpacity}/>
53
+ </Svg>
54
+
55
+ <ScanningLine yMin={yMin} screenWidth={screenWidth} height={screenHeight} yMax={yMax}/>
56
+
57
+ <View style={styles.bottomIntruction}>
58
+ <Text style={styles.bottomTitle}>
59
+ Mesurez 100cm de hauteur.
60
+ </Text>
61
+ <Text style={styles.bottomSubtitle}>
62
+ Ne pas déplacer la caméra pendant la capture. • Ne pas déplacer la caméra pendant la capture.
63
+ </Text>
64
+ </View>
65
+ </View>);
66
+ };
67
+ export default IdCardOverlay;
68
+ const styles = StyleSheet.create({
69
+ overlay: {
70
+ position: 'absolute',
71
+ top: 0,
72
+ left: 0,
73
+ width: '100%',
74
+ height: '50%',
75
+ backgroundColor: 'rgba(0, 0, 0, 0.5)',
76
+ },
77
+ svg: {
78
+ position: 'absolute',
79
+ top: 0,
80
+ left: 0,
81
+ width: '100%',
82
+ height: '100%',
83
+ },
84
+ topIntruction: {
85
+ zIndex: 1000,
86
+ flexDirection: 'row',
87
+ alignItems: 'center',
88
+ justifyContent: 'center',
89
+ paddingVertical: 20,
90
+ paddingHorizontal: 10,
91
+ marginHorizontal: 20,
92
+ marginTop: 10,
93
+ backgroundColor: "#FDE04730",
94
+ borderColor: "#FDE047",
95
+ borderWidth: 1,
96
+ borderRadius: 10,
97
+ gap: 10,
98
+ },
99
+ topIntructionText: {
100
+ color: '#FDE047',
101
+ fontSize: 14,
102
+ fontWeight: 'bold',
103
+ textAlign: 'center',
104
+ },
105
+ bottomIntruction: {
106
+ position: 'absolute',
107
+ bottom: 0,
108
+ left: 0,
109
+ width: '100%',
110
+ height: '35%',
111
+ paddingHorizontal: 20,
112
+ },
113
+ bottomIntructionTextBold: {
114
+ color: 'white',
115
+ fontSize: 16,
116
+ fontWeight: 'bold',
117
+ textAlign: 'center',
118
+ },
119
+ bottomIntructionText: {
120
+ color: 'white',
121
+ fontSize: 14,
122
+ fontWeight: 'bold',
123
+ textAlign: 'center',
124
+ },
125
+ bottomTitle: {
126
+ color: 'white',
127
+ fontSize: 25,
128
+ fontWeight: 'bold',
129
+ textAlign: 'center',
130
+ },
131
+ bottomSubtitle: {
132
+ color: 'white',
133
+ marginTop: 15,
134
+ fontSize: 14,
135
+ fontWeight: '500',
136
+ textAlign: 'center',
137
+ },
138
+ image: {
139
+ position: 'absolute',
140
+ borderRadius: 10,
141
+ },
142
+ stepperContainer: {
143
+ flexDirection: 'row',
144
+ alignItems: 'center',
145
+ justifyContent: 'space-between',
146
+ paddingHorizontal: 20,
147
+ paddingVertical: 15,
148
+ // backgroundColor: 'rgba(0, 0, 0, 0.5)',
149
+ zIndex: 1000,
150
+ },
151
+ stepperItem: {
152
+ flex: 1,
153
+ alignItems: 'center',
154
+ justifyContent: 'center',
155
+ },
156
+ stepperDetails: {
157
+ alignItems: 'center',
158
+ justifyContent: 'center',
159
+ },
160
+ stepperItemText: {
161
+ color: 'white',
162
+ fontSize: 20,
163
+ fontWeight: 'bold',
164
+ },
165
+ stepperDetailsText: {
166
+ color: 'white',
167
+ fontSize: 12,
168
+ fontWeight: '500',
169
+ },
170
+ back: {
171
+ // flex: 1,
172
+ alignItems: 'center',
173
+ justifyContent: 'center',
174
+ },
175
+ next: {
176
+ flex: 1,
177
+ alignItems: 'center',
178
+ justifyContent: 'center',
179
+ },
180
+ });
181
+ //# sourceMappingURL=IdCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IdCard.js","sourceRoot":"","sources":["../../../src/components/OverLay/IdCard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC5E,OAAO,GAAG,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,YAAY,MAAM,sBAAsB,CAAC;AAEhD,OAAO,WAAW,MAAM,eAAe,CAAC;AAKxC,MAAM,aAAa,GAAG,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,aAAa,EAAE,YAAY,EAAE,WAAW,GAAG,SAAS,EAAE,YAAY,EAAsB,EAAE,EAAE;IACrL,MAAM,WAAW,GAAG,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC;IACnD,MAAM,YAAY,GAAG,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC;IAErD,MAAM,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;IACvC,MAAM,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;IAOxC,iDAAiD;IACjD,MAAM,IAAI,GAAG,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AAE;QACrB,eAAe,EAAE,EAAE;QACnB,yCAAyC;QACzC,MAAM,EAAE,IAAI;KACf;IACD,WAAW,EAAE;QACT,IAAI,EAAE,CAAC;QACP,UAAU,EAAE,QAAQ;QACpB,cAAc,EAAE,QAAQ;KAC3B;IACD,cAAc,EAAE;QAEZ,UAAU,EAAE,QAAQ;QACpB,cAAc,EAAE,QAAQ;KAC3B;IACD,eAAe,EAAE;QACb,KAAK,EAAE,OAAO;QACd,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,MAAM;KACrB;IACD,kBAAkB,EAAE;QAChB,KAAK,EAAE,OAAO;QACd,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,KAAK;KACpB;IACD,IAAI,EAAE;QACF,WAAW;QACX,UAAU,EAAE,QAAQ;QACpB,cAAc,EAAE,QAAQ;KAC3B;IACD,IAAI,EAAE;QACF,IAAI,EAAE,CAAC;QACP,UAAU,EAAE,QAAQ;QACpB,cAAc,EAAE,QAAQ;KAC3B;CAEJ,CAAC,CAAA","sourcesContent":["import { Animated, Dimensions, StyleSheet, Text, View } from \"react-native\";\nimport Svg, { Defs, Mask, Rect, Path } from \"react-native-svg\";\nimport ScanningLine from \"../Svgs/scanningLine\";\nimport { IdCardOverlayProps } from \"./type\";\nimport StepOverlay from \"./StepOverlay\";\n\n\n\n\nconst IdCardOverlay = ({ xMin: xMinProps, yMin: yMinProps, xMax: xMaxProps, yMax: yMaxProps, cornerOpacity, instructions, cornerColor = \"#4CAF50\", stepperProps }: IdCardOverlayProps) => {\n const screenWidth = Dimensions.get('window').width;\n const screenHeight = Dimensions.get('window').height;\n\n const boxWidth = xMaxProps - xMinProps;\n const boxHeight = yMaxProps - yMinProps;\n\n\n \n\n \n \n // Calculer les coordonnées pour centrer le cadre\n const xMin = (screenWidth - boxWidth) / 2;\n const yMin = (screenHeight - boxHeight) / 3;\n const xMax = xMin + boxWidth;\n const yMax = yMin + boxHeight;\n\n return (\n <View style={StyleSheet.absoluteFill}>\n {stepperProps ? (\n <StepOverlay {...stepperProps} />\n ) : null}\n \n <Animated.View style={[styles.topIntruction]}>\n <Text style={styles.topIntructionText}>\n 💡 {instructions}\n </Text>\n </Animated.View>\n\n <Svg\n height={screenHeight}\n width={screenWidth}\n style={styles.svg}\n >\n <Defs>\n <Mask id=\"cameraMask\">\n {/* Fond blanc - zone visible */}\n <Rect\n x=\"0\"\n y=\"0\"\n width={screenWidth}\n height={screenHeight}\n fill=\"white\"\n />\n {/* Zone noire - zone masquée (transparente) */}\n <Rect\n x={xMin}\n y={yMin}\n width={boxWidth}\n height={boxHeight}\n fill=\"black\"\n />\n </Mask>\n </Defs>\n\n {/* Overlay semi-transparent avec masque */}\n <Rect\n x=\"0\"\n y=\"0\"\n width={screenWidth}\n height={screenHeight}\n fill=\"rgba(0, 0, 0, 0.5)\"\n mask=\"url(#cameraMask)\"\n />\n\n {/* Coins de la zone de capture - arrondis avec animation */}\n {/* Coin supérieur gauche */}\n <Path\n d={`M ${xMin + 15} ${yMin} Q ${xMin} ${yMin} ${xMin} ${yMin + 15} L ${xMin} ${yMin + 20}`}\n stroke={cornerColor}\n strokeWidth=\"8\"\n fill=\"none\"\n opacity={cornerOpacity}\n />\n <Path\n d={`M ${xMin + 20} ${yMin} L ${xMin + 15} ${yMin}`}\n stroke={cornerColor}\n strokeWidth=\"8\"\n opacity={cornerOpacity}\n />\n\n {/* Coin supérieur droit */}\n <Path\n d={`M ${xMax - 15} ${yMin} Q ${xMax} ${yMin} ${xMax} ${yMin + 15} L ${xMax} ${yMin + 20}`}\n stroke={cornerColor}\n strokeWidth=\"8\"\n fill=\"none\"\n opacity={cornerOpacity}\n />\n <Path\n d={`M ${xMax - 20} ${yMin} L ${xMax - 15} ${yMin}`}\n stroke={cornerColor}\n strokeWidth=\"8\"\n opacity={cornerOpacity}\n />\n\n {/* Coin inférieur gauche */}\n <Path\n d={`M ${xMin + 15} ${yMax} Q ${xMin} ${yMax} ${xMin} ${yMax - 15} L ${xMin} ${yMax - 20}`}\n stroke={cornerColor}\n strokeWidth=\"8\"\n fill=\"none\"\n opacity={cornerOpacity}\n />\n <Path\n d={`M ${xMin + 20} ${yMax} L ${xMin + 15} ${yMax}`}\n stroke={cornerColor}\n strokeWidth=\"8\"\n opacity={cornerOpacity}\n />\n\n {/* Coin inférieur droit */}\n <Path\n d={`M ${xMax - 15} ${yMax} Q ${xMax} ${yMax} ${xMax} ${yMax - 15} L ${xMax} ${yMax - 20}`}\n stroke={cornerColor}\n strokeWidth=\"8\"\n fill=\"none\"\n opacity={cornerOpacity}\n />\n <Path\n d={`M ${xMax - 20} ${yMax} L ${xMax - 15} ${yMax}`}\n stroke={cornerColor}\n strokeWidth=\"8\"\n opacity={cornerOpacity}\n />\n </Svg>\n \n <ScanningLine yMin={yMin} screenWidth={screenWidth} height={screenHeight} yMax={yMax} />\n\n <View style={styles.bottomIntruction}>\n <Text style={styles.bottomTitle}>\n Mesurez 100cm de hauteur.\n </Text>\n <Text style={styles.bottomSubtitle}>\n Ne pas déplacer la caméra pendant la capture. • Ne pas déplacer la caméra pendant la capture.\n </Text>\n </View>\n </View>)\n}\n\nexport default IdCardOverlay;\n\nconst styles = StyleSheet.create({\n overlay: {\n position: 'absolute',\n top: 0,\n left: 0,\n width: '100%',\n height: '50%',\n backgroundColor: 'rgba(0, 0, 0, 0.5)',\n },\n svg: {\n position: 'absolute',\n top: 0,\n left: 0,\n width: '100%',\n height: '100%',\n },\n topIntruction: {\n zIndex: 1000,\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'center',\n paddingVertical: 20,\n paddingHorizontal: 10,\n marginHorizontal: 20,\n marginTop: 10,\n backgroundColor: \"#FDE04730\",\n borderColor: \"#FDE047\",\n borderWidth: 1,\n borderRadius: 10,\n gap: 10,\n },\n topIntructionText: {\n color: '#FDE047',\n fontSize: 14,\n fontWeight: 'bold',\n textAlign: 'center',\n },\n bottomIntruction: {\n position: 'absolute',\n bottom: 0,\n left: 0,\n width: '100%',\n height: '35%',\n paddingHorizontal: 20,\n },\n bottomIntructionTextBold: {\n color: 'white',\n fontSize: 16,\n fontWeight: 'bold',\n textAlign: 'center',\n },\n bottomIntructionText: {\n color: 'white',\n fontSize: 14,\n fontWeight: 'bold',\n textAlign: 'center',\n },\n bottomTitle: {\n color: 'white',\n fontSize: 25,\n fontWeight: 'bold',\n textAlign: 'center',\n },\n bottomSubtitle: {\n color: 'white',\n marginTop: 15,\n fontSize: 14,\n fontWeight: '500',\n textAlign: 'center',\n },\n\n\n image: {\n position: 'absolute',\n borderRadius: 10,\n },\n stepperContainer: {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'space-between',\n paddingHorizontal: 20,\n paddingVertical: 15,\n // backgroundColor: 'rgba(0, 0, 0, 0.5)',\n zIndex: 1000,\n },\n stepperItem: {\n flex: 1,\n alignItems: 'center',\n justifyContent: 'center',\n },\n stepperDetails: {\n\n alignItems: 'center',\n justifyContent: 'center',\n },\n stepperItemText: {\n color: 'white',\n fontSize: 20,\n fontWeight: 'bold',\n },\n stepperDetailsText: {\n color: 'white',\n fontSize: 12,\n fontWeight: '500',\n },\n back: {\n // flex: 1,\n alignItems: 'center',\n justifyContent: 'center',\n },\n next: {\n flex: 1,\n alignItems: 'center',\n justifyContent: 'center',\n },\n\n})"]}
@@ -0,0 +1,4 @@
1
+ import { IdCardOverlayProps } from "./type";
2
+ declare const SelfieOverlay: ({ xMin, yMin, xMax, yMax, cornerOpacity, instructions, cornerColor, stepperProps, instructionsTile, instructionsSubtitle, orientation }: IdCardOverlayProps) => import("react").JSX.Element;
3
+ export default SelfieOverlay;
4
+ //# sourceMappingURL=SelfieOverlay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelfieOverlay.d.ts","sourceRoot":"","sources":["../../../src/components/OverLay/SelfieOverlay.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAO5C,QAAA,MAAM,aAAa,GAAI,yIAAqJ,kBAAkB,gCAuG7L,CAAA;AAED,eAAe,aAAa,CAAC"}