@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,421 @@
1
+ import React, { useEffect, useState } from 'react';
2
+ import { View, Text, TouchableOpacity, StyleSheet, Image, Alert, ScrollView } from 'react-native';
3
+ import { EnhancedCameraView } from '../EnhancedCameraView';
4
+ import IdCardOverlay from '../OverLay/IdCard';
5
+ import { useTemplateKYCFlowContext } from '../../hooks/useTemplateKYCFlow';
6
+ import { Button } from '../ui/Button';
7
+ export const IDCardCapture = ({ component, value = {}, onValueChange, error, language = 'en', currentSide = 'front', }) => {
8
+ const [showCamera, setShowCamera] = useState(false);
9
+ const [capturedImages, setCapturedImages] = useState(value);
10
+ const [selectedDocumentType, setSelectedDocumentType] = useState(null);
11
+ const [showDocumentSelection, setShowDocumentSelection] = useState(true);
12
+ const { actions, state, } = useTemplateKYCFlowContext();
13
+ const config = component.config;
14
+ const getLocalizedText = (text) => {
15
+ return text[language] || text.en || '';
16
+ };
17
+ const getDocumentTypeInfo = (docType) => {
18
+ switch (docType) {
19
+ case 'id_card':
20
+ return {
21
+ name: { en: 'ID Card', fr: 'Carte d\'identité' },
22
+ icon: '🆔',
23
+ instructions: { en: 'Position your ID card within the frame', fr: 'Positionnez votre carte d\'identité dans le cadre' }
24
+ };
25
+ case 'passport':
26
+ return {
27
+ name: { en: 'Passport', fr: 'Passeport' },
28
+ icon: '📘',
29
+ instructions: { en: 'Position your passport within the frame', fr: 'Positionnez votre passeport dans le cadre' }
30
+ };
31
+ case 'drivers_license':
32
+ return {
33
+ name: { en: 'Driver\'s License', fr: 'Permis de conduire' },
34
+ icon: '🚗',
35
+ instructions: { en: 'Position your driver\'s license within the frame', fr: 'Positionnez votre permis de conduire dans le cadre' }
36
+ };
37
+ case 'residence_permit':
38
+ return {
39
+ name: { en: 'Residence Permit', fr: 'Permis de séjour' },
40
+ icon: '🏠',
41
+ instructions: { en: 'Position your residence permit within the frame', fr: 'Positionnez votre permis de séjour dans le cadre' }
42
+ };
43
+ case 'national_id':
44
+ return {
45
+ name: { en: 'National ID', fr: 'Carte nationale d\'identité' },
46
+ icon: '🏛️',
47
+ instructions: { en: 'Position your national ID within the frame', fr: 'Positionnez votre carte nationale d\'identité dans le cadre' }
48
+ };
49
+ case 'voter_id':
50
+ return {
51
+ name: { en: 'Voter ID', fr: 'Carte d\'électeur' },
52
+ icon: '🗳️',
53
+ instructions: { en: 'Position your voter ID within the frame', fr: 'Positionnez votre carte d\'électeur dans le cadre' }
54
+ };
55
+ case 'military_id':
56
+ return {
57
+ name: { en: 'Military ID', fr: 'Carte militaire' },
58
+ icon: '🎖️',
59
+ instructions: { en: 'Position your military ID within the frame', fr: 'Positionnez votre carte militaire dans le cadre' }
60
+ };
61
+ case 'student_id':
62
+ return {
63
+ name: { en: 'Student ID', fr: 'Carte d\'étudiant' },
64
+ icon: '🎓',
65
+ instructions: { en: 'Position your student ID within the frame', fr: 'Positionnez votre carte d\'étudiant dans le cadre' }
66
+ };
67
+ case 'work_permit':
68
+ return {
69
+ name: { en: 'Work Permit', fr: 'Permis de travail' },
70
+ icon: '💼',
71
+ instructions: { en: 'Position your work permit within the frame', fr: 'Positionnez votre permis de travail dans le cadre' }
72
+ };
73
+ case 'other':
74
+ default:
75
+ return {
76
+ name: { en: 'Government Document', fr: 'Document gouvernemental' },
77
+ icon: '📄',
78
+ instructions: { en: 'Position your document within the frame', fr: 'Positionnez votre document dans le cadre' }
79
+ };
80
+ }
81
+ };
82
+ const cameraConfig = {
83
+ aspectRatio: 4 / 3,
84
+ quality: 0.8,
85
+ flashMode: 'auto',
86
+ cameraType: 'back',
87
+ allowRetake: true,
88
+ maxRetakes: 3,
89
+ overlay: {
90
+ showGuide: true,
91
+ guideText: selectedDocumentType ? getDocumentTypeInfo(selectedDocumentType).instructions.en : getLocalizedText(component.instructions),
92
+ bbox: selectedDocumentType && config.bbox_configs[selectedDocumentType] ? config.bbox_configs[selectedDocumentType] : {
93
+ xMin: 20,
94
+ yMin: 140,
95
+ xMax: 370,
96
+ yMax: 340,
97
+ borderColor: '#2DBD60',
98
+ borderWidth: 3,
99
+ cornerRadius: 8
100
+ }
101
+ }
102
+ };
103
+ const retakePicture = (currentSide) => {
104
+ setShowCamera(true);
105
+ actions.showCustomStepper(false);
106
+ setCapturedImages({ ...capturedImages, [currentSide]: '' });
107
+ onValueChange({ ...value, [currentSide]: '' });
108
+ };
109
+ const handleCapture = (result) => {
110
+ if (result.success && result.path) {
111
+ const newImages = { ...capturedImages, [currentSide]: result.path };
112
+ setCapturedImages(newImages);
113
+ onValueChange(newImages);
114
+ setShowCamera(false);
115
+ actions.showCustomStepper(true);
116
+ }
117
+ else {
118
+ Alert.alert('Erreur', result.error || 'Impossible de prendre la photo');
119
+ }
120
+ };
121
+ const handleError = (event) => {
122
+ Alert.alert('Erreur', event.message);
123
+ setShowCamera(false);
124
+ };
125
+ useEffect(() => {
126
+ actions.showCustomStepper(!showCamera);
127
+ }, [showCamera]);
128
+ const handleDocumentTypeSelection = (docType) => {
129
+ setSelectedDocumentType(docType);
130
+ };
131
+ // Interface de sélection du type de document
132
+ if (showDocumentSelection) {
133
+ return (<View style={styles.root}>
134
+ <View style={styles.container}>
135
+
136
+ <Text style={styles.title}>{getLocalizedText(component.labels)}</Text>
137
+ <Text style={styles.description}>{getLocalizedText(component.instructions)}</Text>
138
+
139
+ <ScrollView style={styles.documentTypesContainer} showsVerticalScrollIndicator={false}>
140
+ {config.document_types.map((docType) => {
141
+ const docInfo = getDocumentTypeInfo(docType);
142
+ return (<TouchableOpacity key={docType} style={[styles.documentTypeButton, { backgroundColor: selectedDocumentType === docType ? '#2DBD6030' : '#F8F9FA', borderColor: selectedDocumentType === docType ? '#2DBD60' : '#E9ECEF', borderWidth: 2 }]} onPress={() => handleDocumentTypeSelection(docType)}>
143
+ <View style={[styles.documentTypeIconContainer, { backgroundColor: 'gray', }]}>
144
+ <Text style={styles.documentTypeIcon}>{docInfo.icon}</Text>
145
+ </View>
146
+ <Text style={styles.documentTypeName}>
147
+ {docInfo.name[language] || docInfo.name.en}
148
+ </Text>
149
+ <Text style={styles.documentTypeArrow}>→</Text>
150
+ </TouchableOpacity>);
151
+ })}
152
+ </ScrollView>
153
+ <Button title={getLocalizedText(component.ui.buttonText)} onPress={() => {
154
+ if (!selectedDocumentType) {
155
+ Alert.alert('Erreur', 'Veuillez sélectionner un type de document');
156
+ return;
157
+ }
158
+ setShowDocumentSelection(false);
159
+ setShowCamera(true);
160
+ actions.showCustomStepper(false);
161
+ }} variant={selectedDocumentType ? 'primary' : "neutral"} size="large" fullWidth/>
162
+
163
+
164
+ {error && (<Text style={styles.errorText}>{error}</Text>)}
165
+ </View>
166
+ </View>);
167
+ }
168
+ if (showCamera) {
169
+ return (<View style={styles.cameraContainer}>
170
+ <EnhancedCameraView showCamera={true} cameraType={cameraConfig.cameraType} style={styles.camera} onCapture={handleCapture} onError={handleError} onClose={() => setShowCamera(false)} quality="high" showCaptureButton={true} showSwitchCamera={true} enableFlash={cameraConfig.flashMode === 'auto' || cameraConfig.flashMode === 'on'} overlayComponent={<IdCardOverlay xMin={cameraConfig.overlay.bbox.xMin} yMin={cameraConfig.overlay.bbox.yMin} xMax={cameraConfig.overlay.bbox.xMax} yMax={cameraConfig.overlay.bbox.yMax} instructions={cameraConfig.overlay.guideText} cornerOpacity={cameraConfig.overlay.bbox.cornerRadius || 0} stepperProps={{
171
+ back: () => {
172
+ setShowDocumentSelection(true);
173
+ actions.showCustomStepper(false);
174
+ },
175
+ selectedDocumentType: getDocumentTypeInfo(selectedDocumentType || 'id_card').name.en || '',
176
+ step: state.currentComponentIndex + 1,
177
+ totalSteps: state.template.components.length,
178
+ }}/>}/>
179
+ </View>);
180
+ }
181
+ return (<View style={styles.root}>
182
+ <View style={styles.previewContainer}>
183
+ <ScrollView style={styles.previewItemContainer} showsVerticalScrollIndicator={false}>
184
+ <View key={currentSide} style={styles.sideContainer}>
185
+ <Text style={styles.sideTitle}>
186
+ {currentSide === 'front' ? 'Recto' : 'Verso'} de la carte d'identité
187
+ </Text>
188
+ <Text style={{ fontSize: 14, color: '#666', textAlign: 'center', marginBottom: 16, lineHeight: 22 }}>
189
+ {getLocalizedText(component.instructions)}
190
+ </Text>
191
+
192
+
193
+ <View style={{ alignItems: 'center', justifyContent: 'center', flexDirection: "column", gap: 16 }}>
194
+ <View style={{
195
+ width: '100%',
196
+ height: 200,
197
+ borderRadius: 12,
198
+ padding: 1,
199
+ overflow: 'hidden',
200
+ // Shadow for iOS
201
+ shadowColor: '#000',
202
+ shadowOffset: { width: 0, height: 4 },
203
+ shadowOpacity: 0.18,
204
+ shadowRadius: 8,
205
+ // Shadow for Android
206
+ elevation: 8,
207
+ backgroundColor: '#fff', // Needed for shadow to show on iOS
208
+ }}>
209
+ <Image source={{ uri: capturedImages[currentSide] }} style={{
210
+ width: '100%',
211
+ height: 200,
212
+ borderRadius: 12,
213
+ resizeMode: 'cover',
214
+ }}/>
215
+ </View>
216
+ {/* retake button */}
217
+ <Button title="Reprendre" onPress={() => {
218
+ retakePicture(currentSide);
219
+ }} variant="outline" size="medium" fullWidth/>
220
+ <Button title="Suivant" onPress={() => {
221
+ setShowCamera(true);
222
+ actions.nextComponent();
223
+ }} variant="primary" size="large" fullWidth/>
224
+ </View>
225
+ </View>
226
+ </ScrollView>
227
+
228
+
229
+
230
+ {error && (<Text style={styles.errorText}>{error}</Text>)}
231
+ </View>
232
+ </View>);
233
+ };
234
+ const styles = StyleSheet.create({
235
+ root: {
236
+ flex: 1,
237
+ maxWidth: 760,
238
+ width: '100%',
239
+ },
240
+ container: {
241
+ backgroundColor: 'white',
242
+ margin: 10,
243
+ borderRadius: 10,
244
+ paddingVertical: 16,
245
+ paddingHorizontal: 16,
246
+ // shadow
247
+ shadowColor: '#000',
248
+ shadowOffset: { width: 0, height: 2 },
249
+ shadowOpacity: 0.35,
250
+ shadowRadius: 4.84,
251
+ elevation: 10,
252
+ // padding: 16,
253
+ },
254
+ cameraContainer: {
255
+ flex: 1,
256
+ width: '100%',
257
+ height: '100%',
258
+ },
259
+ previewContainer: {
260
+ width: '100%',
261
+ backgroundColor: 'white',
262
+ margin: 10,
263
+ borderRadius: 10,
264
+ paddingVertical: 16,
265
+ paddingHorizontal: 16,
266
+ },
267
+ previewItemContainer: {
268
+ // marginBottom: 24,
269
+ },
270
+ title: {
271
+ fontSize: 24,
272
+ fontWeight: 'bold',
273
+ color: '#333',
274
+ marginBottom: 8,
275
+ textAlign: 'center',
276
+ },
277
+ subtitle: {
278
+ fontSize: 18,
279
+ color: '#666',
280
+ textAlign: 'center',
281
+ marginBottom: 16,
282
+ },
283
+ sideInfo: {
284
+ fontSize: 14,
285
+ color: '#888',
286
+ textAlign: 'center',
287
+ marginBottom: 16,
288
+ fontStyle: 'italic',
289
+ },
290
+ description: {
291
+ fontSize: 16,
292
+ color: '#666',
293
+ textAlign: 'center',
294
+ marginBottom: 24,
295
+ lineHeight: 22,
296
+ },
297
+ sidesContainer: {
298
+ flex: 1,
299
+ },
300
+ sideContainer: {
301
+ marginBottom: 24,
302
+ },
303
+ sideTitle: {
304
+ fontSize: 25,
305
+ fontWeight: 'bold',
306
+ color: '#000',
307
+ marginBottom: 12,
308
+ textAlign: 'center',
309
+ },
310
+ captureButton: {
311
+ borderWidth: 2,
312
+ borderColor: '#2DBD60',
313
+ borderStyle: 'dashed',
314
+ borderRadius: 12,
315
+ padding: 32,
316
+ alignItems: 'center',
317
+ backgroundColor: '#f0f9f0',
318
+ },
319
+ captureIcon: {
320
+ fontSize: 48,
321
+ marginBottom: 16,
322
+ },
323
+ captureText: {
324
+ fontSize: 16,
325
+ color: '#2DBD60',
326
+ fontWeight: '600',
327
+ },
328
+ capturedImageContainer: {
329
+ position: 'relative',
330
+ },
331
+ capturedImage: {
332
+ width: '100%',
333
+ height: 200,
334
+ borderRadius: 12,
335
+ resizeMode: 'contain',
336
+ backgroundColor: '#f0f0f0',
337
+ },
338
+ retakeButton: {
339
+ position: 'absolute',
340
+ top: 8,
341
+ right: 8,
342
+ backgroundColor: 'rgba(0, 0, 0, 0.7)',
343
+ paddingHorizontal: 12,
344
+ paddingVertical: 6,
345
+ borderRadius: 6,
346
+ },
347
+ retakeButtonText: {
348
+ color: 'white',
349
+ fontSize: 12,
350
+ fontWeight: '600',
351
+ },
352
+ camera: {
353
+ flex: 1,
354
+ },
355
+ completionContainer: {
356
+ marginTop: 24,
357
+ alignItems: 'center',
358
+ },
359
+ completionText: {
360
+ fontSize: 16,
361
+ color: '#2DBD60',
362
+ fontWeight: '600',
363
+ marginBottom: 16,
364
+ },
365
+ primaryButton: {
366
+ paddingHorizontal: 32,
367
+ paddingVertical: 16,
368
+ borderRadius: 8,
369
+ // minWidth: 120,
370
+ alignItems: 'center',
371
+ backgroundColor: '#2DBD60',
372
+ },
373
+ primaryButtonText: {
374
+ color: 'white',
375
+ fontWeight: '600',
376
+ fontSize: 16,
377
+ },
378
+ errorText: {
379
+ color: '#dc2626',
380
+ fontSize: 14,
381
+ marginTop: 8,
382
+ textAlign: 'center',
383
+ },
384
+ documentTypesContainer: {
385
+ // flex: 1,
386
+ marginBottom: 16,
387
+ // paddingHorizontal: 16,
388
+ },
389
+ documentTypeButton: {
390
+ flexDirection: 'row',
391
+ alignItems: 'center',
392
+ backgroundColor: '#F8F9FA',
393
+ padding: 16,
394
+ marginBottom: 12,
395
+ borderRadius: 12,
396
+ borderWidth: 1,
397
+ borderColor: '#E9ECEF',
398
+ },
399
+ documentTypeIconContainer: {
400
+ width: 40, height: 40,
401
+ borderRadius: 10,
402
+ alignItems: 'center',
403
+ justifyContent: 'center',
404
+ marginRight: 16,
405
+ },
406
+ documentTypeIcon: {
407
+ fontSize: 24,
408
+ },
409
+ documentTypeName: {
410
+ flex: 1,
411
+ fontSize: 16,
412
+ fontWeight: '600',
413
+ color: '#333',
414
+ },
415
+ documentTypeArrow: {
416
+ fontSize: 18,
417
+ color: '#666',
418
+ fontWeight: 'bold',
419
+ },
420
+ });
421
+ //# sourceMappingURL=IDCardCapture.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDCardCapture.js","sourceRoot":"","sources":["../../../src/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BAAiB;QACjB,UAAU,EAAE,QAAQ;QACpB,eAAe,EAAE,SAAS;KAC3B;IACD,iBAAiB,EAAE;QACjB,KAAK,EAAE,OAAO;QACd,UAAU,EAAE,KAAK;QACjB,QAAQ,EAAE,EAAE;KACb;IACD,SAAS,EAAE;QACT,KAAK,EAAE,SAAS;QAChB,QAAQ,EAAE,EAAE;QACZ,SAAS,EAAE,CAAC;QACZ,SAAS,EAAE,QAAQ;KACpB;IACD,sBAAsB,EAAE;QACtB,WAAW;QACX,YAAY,EAAE,EAAE;QAChB,yBAAyB;KAC1B;IACD,kBAAkB,EAAE;QAClB,aAAa,EAAE,KAAK;QACpB,UAAU,EAAE,QAAQ;QACpB,eAAe,EAAE,SAAS;QAC1B,OAAO,EAAE,EAAE;QACX,YAAY,EAAE,EAAE;QAChB,YAAY,EAAE,EAAE;QAChB,WAAW,EAAE,CAAC;QACd,WAAW,EAAE,SAAS;KACvB;IACD,yBAAyB,EAAE;QAEzB,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE;QACrB,YAAY,EAAE,EAAE;QAChB,UAAU,EAAE,QAAQ;QACpB,cAAc,EAAE,QAAQ;QACxB,WAAW,EAAE,EAAE;KAChB;IACD,gBAAgB,EAAE;QAChB,QAAQ,EAAE,EAAE;KAEb;IACD,gBAAgB,EAAE;QAChB,IAAI,EAAE,CAAC;QACP,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,KAAK;QACjB,KAAK,EAAE,MAAM;KACd;IACD,iBAAiB,EAAE;QACjB,QAAQ,EAAE,EAAE;QACZ,KAAK,EAAE,MAAM;QACb,UAAU,EAAE,MAAM;KACnB;CACF,CAAC,CAAC","sourcesContent":["import React, { useEffect, useState } from 'react';\nimport { View, Text, TouchableOpacity, StyleSheet, Image, Alert, ScrollView } from 'react-native';\nimport { EnhancedCameraView } from '../EnhancedCameraView';\nimport { TemplateComponent, IDCardConfig, LocalizedText, GovernmentDocumentType } from '../../types/KYC.types';\nimport IdCardOverlay from '../OverLay/IdCard';\nimport { useTemplateKYCFlowContext } from '../../hooks/useTemplateKYCFlow';\nimport { Button } from '../ui/Button';\n\ninterface IDCardCaptureProps {\n component: TemplateComponent;\n value?: Record<string, string>;\n onValueChange: (value: Record<string, string>) => void;\n error?: string;\n language?: string;\n currentSide?: string; // Nouveau prop pour spécifier le côté actuel\n}\n\nexport const IDCardCapture: React.FC<IDCardCaptureProps> = ({\n component,\n value = {},\n onValueChange,\n error,\n language = 'en',\n currentSide = 'front',\n}) => {\n const [showCamera, setShowCamera] = useState(false);\n const [capturedImages, setCapturedImages] = useState<Record<string, string>>(value);\n const [selectedDocumentType, setSelectedDocumentType] = useState<GovernmentDocumentType | null>(null);\n const [showDocumentSelection, setShowDocumentSelection] = useState(true);\n\n const { actions, state, } = useTemplateKYCFlowContext();\n const config = component.config as IDCardConfig;\n\n const getLocalizedText = (text: LocalizedText): string => {\n return text[language] || text.en || '';\n };\n\n const getDocumentTypeInfo = (docType: GovernmentDocumentType) => {\n switch (docType) {\n case 'id_card':\n return {\n name: { en: 'ID Card', fr: 'Carte d\\'identité' },\n icon: '🆔',\n instructions: { en: 'Position your ID card within the frame', fr: 'Positionnez votre carte d\\'identité dans le cadre' }\n };\n case 'passport':\n return {\n name: { en: 'Passport', fr: 'Passeport' },\n icon: '📘',\n instructions: { en: 'Position your passport within the frame', fr: 'Positionnez votre passeport dans le cadre' }\n };\n case 'drivers_license':\n return {\n name: { en: 'Driver\\'s License', fr: 'Permis de conduire' },\n icon: '🚗',\n instructions: { en: 'Position your driver\\'s license within the frame', fr: 'Positionnez votre permis de conduire dans le cadre' }\n };\n case 'residence_permit':\n return {\n name: { en: 'Residence Permit', fr: 'Permis de séjour' },\n icon: '🏠',\n instructions: { en: 'Position your residence permit within the frame', fr: 'Positionnez votre permis de séjour dans le cadre' }\n };\n case 'national_id':\n return {\n name: { en: 'National ID', fr: 'Carte nationale d\\'identité' },\n icon: '🏛️',\n instructions: { en: 'Position your national ID within the frame', fr: 'Positionnez votre carte nationale d\\'identité dans le cadre' }\n };\n case 'voter_id':\n return {\n name: { en: 'Voter ID', fr: 'Carte d\\'électeur' },\n icon: '🗳️',\n instructions: { en: 'Position your voter ID within the frame', fr: 'Positionnez votre carte d\\'électeur dans le cadre' }\n };\n case 'military_id':\n return {\n name: { en: 'Military ID', fr: 'Carte militaire' },\n icon: '🎖️',\n instructions: { en: 'Position your military ID within the frame', fr: 'Positionnez votre carte militaire dans le cadre' }\n };\n case 'student_id':\n return {\n name: { en: 'Student ID', fr: 'Carte d\\'étudiant' },\n icon: '🎓',\n instructions: { en: 'Position your student ID within the frame', fr: 'Positionnez votre carte d\\'étudiant dans le cadre' }\n };\n case 'work_permit':\n return {\n name: { en: 'Work Permit', fr: 'Permis de travail' },\n icon: '💼',\n instructions: { en: 'Position your work permit within the frame', fr: 'Positionnez votre permis de travail dans le cadre' }\n };\n case 'other':\n default:\n return {\n name: { en: 'Government Document', fr: 'Document gouvernemental' },\n icon: '📄',\n instructions: { en: 'Position your document within the frame', fr: 'Positionnez votre document dans le cadre' }\n };\n }\n };\n\n\n const cameraConfig = {\n aspectRatio: 4 / 3,\n quality: 0.8,\n flashMode: 'auto' as const,\n cameraType: 'back' as const,\n allowRetake: true,\n maxRetakes: 3,\n overlay: {\n showGuide: true,\n guideText: selectedDocumentType ? getDocumentTypeInfo(selectedDocumentType).instructions.en : getLocalizedText(component.instructions),\n bbox: selectedDocumentType && config.bbox_configs[selectedDocumentType] ? config.bbox_configs[selectedDocumentType] : {\n xMin: 20,\n yMin: 140,\n xMax: 370,\n yMax: 340,\n borderColor: '#2DBD60',\n borderWidth: 3,\n cornerRadius: 8\n }\n\n }\n };\n\n const retakePicture = (currentSide: string) => {\n setShowCamera(true);\n actions.showCustomStepper(false);\n setCapturedImages({ ...capturedImages, [currentSide]: '' });\n onValueChange({ ...value, [currentSide]: '' });\n };\n\n const handleCapture = (result: { success: boolean; path?: string; error?: string }) => {\n if (result.success && result.path) {\n const newImages = { ...capturedImages, [currentSide]: result.path };\n setCapturedImages(newImages);\n onValueChange(newImages);\n setShowCamera(false);\n actions.showCustomStepper(true);\n } else {\n Alert.alert('Erreur', result.error || 'Impossible de prendre la photo');\n }\n };\n\n const handleError = (event: { message: string }) => {\n Alert.alert('Erreur', event.message);\n setShowCamera(false);\n };\n\n\n useEffect(() => {\n\n actions.showCustomStepper(!showCamera);\n\n }, [showCamera]);\n\n\n const handleDocumentTypeSelection = (docType: GovernmentDocumentType) => {\n setSelectedDocumentType(docType);\n };\n\n // Interface de sélection du type de document\n if (showDocumentSelection) {\n return (\n <View style={styles.root}>\n <View style={styles.container}>\n\n <Text style={styles.title}>{getLocalizedText(component.labels)}</Text>\n <Text style={styles.description}>{getLocalizedText(component.instructions)}</Text>\n\n <ScrollView style={styles.documentTypesContainer} showsVerticalScrollIndicator={false}>\n {config.document_types.map((docType) => {\n const docInfo = getDocumentTypeInfo(docType);\n return (\n <TouchableOpacity\n key={docType}\n style={[styles.documentTypeButton, { backgroundColor: selectedDocumentType === docType ? '#2DBD6030' : '#F8F9FA', borderColor: selectedDocumentType === docType ? '#2DBD60' : '#E9ECEF', borderWidth: 2 }]}\n onPress={() => handleDocumentTypeSelection(docType)}\n >\n <View style={[styles.documentTypeIconContainer, { backgroundColor: 'gray', }]}>\n <Text style={styles.documentTypeIcon}>{docInfo.icon}</Text>\n </View>\n <Text style={styles.documentTypeName}>\n {docInfo.name[language as keyof typeof docInfo.name] || docInfo.name.en}\n </Text>\n <Text style={styles.documentTypeArrow}>→</Text>\n </TouchableOpacity>\n );\n })}\n </ScrollView>\n <Button title={getLocalizedText(component.ui.buttonText)} onPress={() => {\n if (!selectedDocumentType) {\n Alert.alert('Erreur', 'Veuillez sélectionner un type de document');\n return;\n }\n setShowDocumentSelection(false);\n setShowCamera(true);\n actions.showCustomStepper(false);\n }}\n variant={selectedDocumentType ? 'primary' : \"neutral\"}\n size=\"large\"\n fullWidth\n // rounded\n />\n\n\n {error && (\n <Text style={styles.errorText}>{error}</Text>\n )}\n </View>\n </View>\n );\n }\n\n\n\n if (showCamera) {\n\n return (\n <View style={styles.cameraContainer}>\n <EnhancedCameraView\n showCamera={true}\n cameraType={cameraConfig.cameraType}\n style={styles.camera}\n onCapture={handleCapture}\n onError={handleError}\n onClose={() => setShowCamera(false)}\n quality=\"high\"\n showCaptureButton={true}\n showSwitchCamera={true}\n enableFlash={cameraConfig.flashMode === 'auto' || cameraConfig.flashMode === 'on'}\n overlayComponent={<IdCardOverlay\n xMin={cameraConfig.overlay.bbox.xMin}\n yMin={cameraConfig.overlay.bbox.yMin}\n xMax={cameraConfig.overlay.bbox.xMax}\n yMax={cameraConfig.overlay.bbox.yMax}\n instructions={cameraConfig.overlay.guideText}\n cornerOpacity={cameraConfig.overlay.bbox.cornerRadius || 0 as number}\n stepperProps={{\n back: () => {\n setShowDocumentSelection(true);\n actions.showCustomStepper(false);\n },\n selectedDocumentType: getDocumentTypeInfo(selectedDocumentType || 'id_card').name.en || '',\n step: state.currentComponentIndex + 1,\n totalSteps: state.template.components.length,\n }}\n />\n }\n />\n </View>\n );\n }\n\n return (\n <View style={styles.root}>\n <View style={styles.previewContainer}>\n <ScrollView style={styles.previewItemContainer} showsVerticalScrollIndicator={false}>\n <View key={currentSide} style={styles.sideContainer}>\n <Text style={styles.sideTitle}>\n {currentSide === 'front' ? 'Recto' : 'Verso'} de la carte d'identité\n </Text>\n <Text style={{ fontSize: 14, color: '#666', textAlign: 'center', marginBottom: 16, lineHeight: 22 }}>\n {getLocalizedText(component.instructions)}\n </Text>\n\n\n <View style={{ alignItems: 'center', justifyContent: 'center', flexDirection: \"column\", gap: 16 }}>\n <View\n style={{\n width: '100%',\n height: 200,\n borderRadius: 12,\n padding: 1,\n overflow: 'hidden',\n // Shadow for iOS\n shadowColor: '#000',\n shadowOffset: { width: 0, height: 4 },\n shadowOpacity: 0.18,\n shadowRadius: 8,\n // Shadow for Android\n elevation: 8,\n backgroundColor: '#fff', // Needed for shadow to show on iOS\n }}\n >\n <Image\n source={{ uri: capturedImages[currentSide] }}\n style={{\n width: '100%',\n height: 200,\n borderRadius: 12,\n resizeMode: 'cover',\n }}\n />\n </View>\n {/* retake button */}\n <Button title=\"Reprendre\" onPress={() => {\n retakePicture(currentSide);\n }}\n variant=\"outline\"\n size=\"medium\"\n fullWidth\n \n />\n <Button title=\"Suivant\" onPress={() => {\n setShowCamera(true);\n\n actions.nextComponent();\n }}\n variant=\"primary\"\n size=\"large\"\n fullWidth\n />\n </View>\n </View>\n </ScrollView>\n\n\n\n {error && (\n <Text style={styles.errorText}>{error}</Text>\n )}\n </View>\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n root: {\n flex: 1,\n maxWidth: 760,\n width: '100%',\n },\n container: {\n backgroundColor: 'white',\n margin: 10,\n borderRadius: 10,\n paddingVertical: 16,\n paddingHorizontal: 16,\n // shadow\n shadowColor: '#000',\n shadowOffset: { width: 0, height: 2 },\n shadowOpacity: 0.35,\n shadowRadius: 4.84,\n elevation: 10,\n // padding: 16,\n },\n cameraContainer: {\n flex: 1,\n width: '100%',\n height: '100%',\n },\n previewContainer: {\n width: '100%',\n backgroundColor: 'white',\n margin: 10,\n borderRadius: 10,\n paddingVertical: 16,\n paddingHorizontal: 16,\n },\n previewItemContainer: {\n\n // marginBottom: 24,\n },\n title: {\n fontSize: 24,\n fontWeight: 'bold',\n color: '#333',\n marginBottom: 8,\n textAlign: 'center',\n },\n subtitle: {\n fontSize: 18,\n color: '#666',\n textAlign: 'center',\n marginBottom: 16,\n },\n sideInfo: {\n fontSize: 14,\n color: '#888',\n textAlign: 'center',\n marginBottom: 16,\n fontStyle: 'italic',\n },\n description: {\n fontSize: 16,\n color: '#666',\n textAlign: 'center',\n marginBottom: 24,\n lineHeight: 22,\n },\n sidesContainer: {\n flex: 1,\n },\n sideContainer: {\n marginBottom: 24,\n },\n sideTitle: {\n fontSize: 25,\n fontWeight: 'bold',\n color: '#000',\n marginBottom: 12,\n textAlign: 'center',\n },\n captureButton: {\n borderWidth: 2,\n borderColor: '#2DBD60',\n borderStyle: 'dashed',\n borderRadius: 12,\n padding: 32,\n alignItems: 'center',\n backgroundColor: '#f0f9f0',\n },\n captureIcon: {\n fontSize: 48,\n marginBottom: 16,\n },\n captureText: {\n fontSize: 16,\n color: '#2DBD60',\n fontWeight: '600',\n },\n capturedImageContainer: {\n position: 'relative',\n },\n capturedImage: {\n width: '100%',\n height: 200,\n borderRadius: 12,\n resizeMode: 'contain',\n backgroundColor: '#f0f0f0',\n },\n retakeButton: {\n position: 'absolute',\n top: 8,\n right: 8,\n backgroundColor: 'rgba(0, 0, 0, 0.7)',\n paddingHorizontal: 12,\n paddingVertical: 6,\n borderRadius: 6,\n },\n retakeButtonText: {\n color: 'white',\n fontSize: 12,\n fontWeight: '600',\n },\n camera: {\n flex: 1,\n },\n completionContainer: {\n marginTop: 24,\n alignItems: 'center',\n },\n completionText: {\n fontSize: 16,\n color: '#2DBD60',\n fontWeight: '600',\n marginBottom: 16,\n },\n primaryButton: {\n paddingHorizontal: 32,\n paddingVertical: 16,\n borderRadius: 8,\n // minWidth: 120,\n alignItems: 'center',\n backgroundColor: '#2DBD60',\n },\n primaryButtonText: {\n color: 'white',\n fontWeight: '600',\n fontSize: 16,\n },\n errorText: {\n color: '#dc2626',\n fontSize: 14,\n marginTop: 8,\n textAlign: 'center',\n },\n documentTypesContainer: {\n // flex: 1,\n marginBottom: 16,\n // paddingHorizontal: 16,\n },\n documentTypeButton: {\n flexDirection: 'row',\n alignItems: 'center',\n backgroundColor: '#F8F9FA',\n padding: 16,\n marginBottom: 12,\n borderRadius: 12,\n borderWidth: 1,\n borderColor: '#E9ECEF',\n },\n documentTypeIconContainer: {\n\n width: 40, height: 40,\n borderRadius: 10,\n alignItems: 'center',\n justifyContent: 'center',\n marginRight: 16,\n },\n documentTypeIcon: {\n fontSize: 24,\n\n },\n documentTypeName: {\n flex: 1,\n fontSize: 16,\n fontWeight: '600',\n color: '#333',\n },\n documentTypeArrow: {\n fontSize: 18,\n color: '#666',\n fontWeight: 'bold',\n },\n}); "]}
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import { TemplateComponent } from '../../types/KYC.types';
3
+ interface LocationCaptureTemplateProps {
4
+ component: TemplateComponent;
5
+ value?: {
6
+ latitude: number;
7
+ longitude: number;
8
+ accuracy: number;
9
+ } | null;
10
+ onValueChange: (value: {
11
+ latitude: number;
12
+ longitude: number;
13
+ accuracy: number;
14
+ } | null) => void;
15
+ error?: string;
16
+ language?: string;
17
+ }
18
+ export declare const LocationCaptureTemplate: React.FC<LocationCaptureTemplateProps>;
19
+ export {};
20
+ //# sourceMappingURL=LocationCaptureTemplate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LocationCaptureTemplate.d.ts","sourceRoot":"","sources":["../../../src/components/KYCElements/LocationCaptureTemplate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAkB,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAO1E,UAAU,4BAA4B;IACpC,SAAS,EAAE,iBAAiB,CAAC;IAC7B,KAAK,CAAC,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IACzE,aAAa,EAAE,CAAC,KAAK,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,KAAK,IAAI,CAAC;IACjG,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CAyJ1E,CAAC"}