react-native-plaid-link-sdk 12.5.2 → 12.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (292) hide show
  1. package/README.md +2 -0
  2. package/android/.gradle/8.1.1/checksums/checksums.lock +0 -0
  3. package/android/.gradle/8.1.1/fileHashes/fileHashes.lock +0 -0
  4. package/android/.gradle/config.properties +2 -0
  5. package/android/.idea/AndroidProjectSystem.xml +6 -0
  6. package/android/.idea/caches/deviceStreaming.xml +835 -0
  7. package/android/.idea/gradle.xml +13 -0
  8. package/android/.idea/migrations.xml +10 -0
  9. package/android/.idea/misc.xml +10 -0
  10. package/android/.idea/runConfigurations.xml +17 -0
  11. package/android/.idea/vcs.xml +6 -0
  12. package/android/build.gradle +1 -1
  13. package/android/local.properties +8 -0
  14. package/android/src/main/AndroidManifest.xml +1 -1
  15. package/dist/Types.d.ts +1 -0
  16. package/dist/Types.js +8 -4
  17. package/dist/fabric/EmbeddedLinkViewNativeComponent.d.ts +2 -0
  18. package/ios/RNLinksdk.mm +1 -1
  19. package/package.json +1 -1
  20. package/react-native-plaid-link-sdk.podspec +1 -1
  21. package/android/.gradle/8.1.1/checksums/md5-checksums.bin +0 -0
  22. package/android/.gradle/8.1.1/checksums/sha1-checksums.bin +0 -0
  23. package/android/.gradle/8.1.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  24. package/android/.gradle/8.1.1/dependencies-accessors/gc.properties +0 -0
  25. package/android/.gradle/8.1.1/executionHistory/executionHistory.bin +0 -0
  26. package/android/.gradle/8.1.1/executionHistory/executionHistory.lock +0 -0
  27. package/android/.gradle/8.1.1/fileHashes/fileHashes.bin +0 -0
  28. package/android/.gradle/8.1.1/fileHashes/resourceHashesCache.bin +0 -0
  29. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  30. package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
  31. package/android/.gradle/file-system.probe +0 -0
  32. package/android/build/.transforms/102278d013f9769e7703ddf5e4f97b8e/results.bin +0 -1
  33. package/android/build/.transforms/102278d013f9769e7703ddf5e4f97b8e/transformed/classes/classes_dex/classes.dex +0 -0
  34. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/results.bin +0 -1
  35. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/facebook/react/viewmanagers/PLKEmbeddedViewManagerDelegate.dex +0 -0
  36. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/facebook/react/viewmanagers/PLKEmbeddedViewManagerInterface.dex +0 -0
  37. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/ActivityResultHandler.dex +0 -0
  38. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/ActivityResultManager.dex +0 -0
  39. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/BuildConfig.dex +0 -0
  40. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/GlobalFunctionsKt.dex +0 -0
  41. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/NativePlaidLinkModuleAndroidSpec.dex +0 -0
  42. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/NativePlaidLinkModuleiOSSpec.dex +0 -0
  43. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/PLKEmbeddedView.dex +0 -0
  44. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/PLKEmbeddedViewManager$Companion.dex +0 -0
  45. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/PLKEmbeddedViewManager.dex +0 -0
  46. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/PlaidModule$Companion.dex +0 -0
  47. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/PlaidModule.dex +0 -0
  48. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/PlaidPackage$1.dex +0 -0
  49. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/PlaidPackage$2.dex +0 -0
  50. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/PlaidPackage.dex +0 -0
  51. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/gson/PlaidJsonConverter.dex +0 -0
  52. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/gson/RNAccountAdapter.dex +0 -0
  53. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/gson/RNEventMetadataAdapter.dex +0 -0
  54. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/gson/RNLinkInstitutionAdapter.dex +0 -0
  55. package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
  56. package/android/build/generated/source/buildConfig/debug/com/plaid/BuildConfig.java +0 -12
  57. package/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/PLKEmbeddedViewManagerDelegate.java +0 -35
  58. package/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/PLKEmbeddedViewManagerInterface.java +0 -19
  59. package/android/build/generated/source/codegen/java/com/plaid/NativePlaidLinkModuleAndroidSpec.java +0 -64
  60. package/android/build/generated/source/codegen/java/com/plaid/NativePlaidLinkModuleiOSSpec.java +0 -63
  61. package/android/build/generated/source/codegen/jni/CMakeLists.txt +0 -28
  62. package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/ComponentDescriptors.cpp +0 -22
  63. package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/ComponentDescriptors.h +0 -24
  64. package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/EventEmitters.cpp +0 -28
  65. package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/EventEmitters.h +0 -29
  66. package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/Props.cpp +0 -52
  67. package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/Props.h +0 -34
  68. package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/ShadowNodes.cpp +0 -17
  69. package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/ShadowNodes.h +0 -32
  70. package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/States.cpp +0 -16
  71. package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/States.h +0 -20
  72. package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/rnplaidlinkJSI-generated.cpp +0 -149
  73. package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/rnplaidlinkJSI.h +0 -233
  74. package/android/build/generated/source/codegen/jni/rnplaidlink-generated.cpp +0 -116
  75. package/android/build/generated/source/codegen/jni/rnplaidlink.h +0 -39
  76. package/android/build/generated/source/codegen/schema.json +0 -1
  77. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +0 -13
  78. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +0 -18
  79. package/android/build/intermediates/aar_main_jar/debug/syncDebugLibJars/classes.jar +0 -0
  80. package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +0 -6
  81. package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +0 -1
  82. package/android/build/intermediates/annotations_typedef_file/debug/extractDebugAnnotations/typedefs.txt +0 -0
  83. package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
  84. package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
  85. package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +0 -2
  86. package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/layout_plk_embedded_view.xml.flat +0 -0
  87. package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +0 -2
  88. package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +0 -2
  89. package/android/build/intermediates/incremental/debug-mergeJavaRes/merge-state +0 -0
  90. package/android/build/intermediates/incremental/mergeDebugAssets/merger.xml +0 -2
  91. package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +0 -2
  92. package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +0 -2
  93. package/android/build/intermediates/java_res/debug/processDebugJavaRes/out/META-INF/react-native-plaid-link-sdk_debug.kotlin_module +0 -0
  94. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/PLKEmbeddedViewManagerDelegate.class +0 -0
  95. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/PLKEmbeddedViewManagerInterface.class +0 -0
  96. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/plaid/ActivityResultHandler.class +0 -0
  97. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/plaid/ActivityResultManager.class +0 -0
  98. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/plaid/BuildConfig.class +0 -0
  99. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/plaid/NativePlaidLinkModuleAndroidSpec.class +0 -0
  100. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/plaid/NativePlaidLinkModuleiOSSpec.class +0 -0
  101. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/plaid/PlaidPackage$1.class +0 -0
  102. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/plaid/PlaidPackage$2.class +0 -0
  103. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/plaid/PlaidPackage.class +0 -0
  104. package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +0 -4
  105. package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +0 -17
  106. package/android/build/intermediates/merged_java_res/debug/mergeDebugJavaResource/feature-react-native-plaid-link-sdk.jar +0 -0
  107. package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +0 -13
  108. package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +0 -1
  109. package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +0 -1
  110. package/android/build/intermediates/packaged_res/debug/packageDebugResources/layout/plk_embedded_view.xml +0 -5
  111. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/META-INF/react-native-plaid-link-sdk_debug.kotlin_module +0 -0
  112. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/PLKEmbeddedViewManagerDelegate.class +0 -0
  113. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/PLKEmbeddedViewManagerInterface.class +0 -0
  114. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/ActivityResultHandler.class +0 -0
  115. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/ActivityResultManager.class +0 -0
  116. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/BuildConfig.class +0 -0
  117. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/GlobalFunctionsKt.class +0 -0
  118. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/NativePlaidLinkModuleAndroidSpec.class +0 -0
  119. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/NativePlaidLinkModuleiOSSpec.class +0 -0
  120. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/PLKEmbeddedView.class +0 -0
  121. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/PLKEmbeddedViewManager$Companion.class +0 -0
  122. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/PLKEmbeddedViewManager.class +0 -0
  123. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/PlaidModule$Companion.class +0 -0
  124. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/PlaidModule.class +0 -0
  125. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/PlaidPackage$1.class +0 -0
  126. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/PlaidPackage$2.class +0 -0
  127. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/PlaidPackage.class +0 -0
  128. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/gson/PlaidJsonConverter.class +0 -0
  129. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/gson/RNAccountAdapter.class +0 -0
  130. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/gson/RNEventMetadataAdapter.class +0 -0
  131. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/gson/RNLinkInstitutionAdapter.class +0 -0
  132. package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
  133. package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +0 -3
  134. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
  135. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
  136. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
  137. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
  138. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
  139. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
  140. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
  141. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
  142. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
  143. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
  144. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
  145. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
  146. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
  147. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
  148. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
  149. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
  150. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
  151. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
  152. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
  153. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
  154. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
  155. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab +0 -0
  156. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream +0 -0
  157. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream.len +0 -0
  158. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.len +0 -0
  159. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.values.at +0 -0
  160. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i +0 -0
  161. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i.len +0 -0
  162. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
  163. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
  164. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
  165. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
  166. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
  167. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
  168. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
  169. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab +0 -0
  170. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.keystream +0 -0
  171. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.keystream.len +0 -0
  172. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.len +0 -0
  173. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.values.at +0 -0
  174. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab_i +0 -0
  175. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab_i.len +0 -0
  176. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
  177. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
  178. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
  179. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
  180. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
  181. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
  182. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
  183. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
  184. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
  185. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
  186. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
  187. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
  188. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
  189. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
  190. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
  191. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
  192. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
  193. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
  194. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
  195. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
  196. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
  197. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
  198. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
  199. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
  200. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
  201. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
  202. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
  203. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
  204. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +0 -2
  205. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
  206. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
  207. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
  208. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
  209. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
  210. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
  211. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
  212. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
  213. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
  214. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
  215. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
  216. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
  217. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
  218. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
  219. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
  220. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
  221. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
  222. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
  223. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
  224. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
  225. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
  226. package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
  227. package/android/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
  228. package/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
  229. package/android/build/outputs/aar/react-native-plaid-link-sdk-debug.aar +0 -0
  230. package/android/build/outputs/logs/manifest-merger-debug-report.txt +0 -25
  231. package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  232. package/android/build/tmp/kotlin-classes/debug/META-INF/react-native-plaid-link-sdk_debug.kotlin_module +0 -0
  233. package/android/build/tmp/kotlin-classes/debug/com/plaid/GlobalFunctionsKt.class +0 -0
  234. package/android/build/tmp/kotlin-classes/debug/com/plaid/PLKEmbeddedView.class +0 -0
  235. package/android/build/tmp/kotlin-classes/debug/com/plaid/PLKEmbeddedViewManager$Companion.class +0 -0
  236. package/android/build/tmp/kotlin-classes/debug/com/plaid/PLKEmbeddedViewManager.class +0 -0
  237. package/android/build/tmp/kotlin-classes/debug/com/plaid/PlaidModule$Companion.class +0 -0
  238. package/android/build/tmp/kotlin-classes/debug/com/plaid/PlaidModule.class +0 -0
  239. package/android/build/tmp/kotlin-classes/debug/com/plaid/gson/PlaidJsonConverter.class +0 -0
  240. package/android/build/tmp/kotlin-classes/debug/com/plaid/gson/RNAccountAdapter.class +0 -0
  241. package/android/build/tmp/kotlin-classes/debug/com/plaid/gson/RNEventMetadataAdapter.class +0 -0
  242. package/android/build/tmp/kotlin-classes/debug/com/plaid/gson/RNLinkInstitutionAdapter.class +0 -0
  243. package/dist/exampleRN76/App.d.ts +0 -3
  244. package/dist/exampleRN76/App.js +0 -129
  245. package/dist/exampleRN76/Styles.d.ts +0 -63
  246. package/dist/exampleRN76/Styles.js +0 -47
  247. package/dist/exampleRN76/__tests__/App.test.d.ts +0 -4
  248. package/dist/exampleRN76/__tests__/App.test.js +0 -13
  249. package/dist/exampleRN76/babel.config.d.ts +0 -1
  250. package/dist/exampleRN76/babel.config.js +0 -4
  251. package/dist/exampleRN76/index.d.ts +0 -1
  252. package/dist/exampleRN76/index.js +0 -7
  253. package/dist/exampleRN76/jest.config.d.ts +0 -1
  254. package/dist/exampleRN76/jest.config.js +0 -4
  255. package/dist/exampleRN76/metro.config.d.ts +0 -2
  256. package/dist/exampleRN76/metro.config.js +0 -10
  257. package/dist/exampleReactNative76/App.d.ts +0 -2
  258. package/dist/exampleReactNative76/App.js +0 -134
  259. package/dist/exampleReactNative76/Styles.d.ts +0 -69
  260. package/dist/exampleReactNative76/Styles.js +0 -51
  261. package/dist/exampleReactNative76/__tests__/App.test.d.ts +0 -4
  262. package/dist/exampleReactNative76/__tests__/App.test.js +0 -13
  263. package/dist/exampleReactNative76/babel.config.d.ts +0 -1
  264. package/dist/exampleReactNative76/babel.config.js +0 -4
  265. package/dist/exampleReactNative76/index.d.ts +0 -1
  266. package/dist/exampleReactNative76/index.js +0 -7
  267. package/dist/exampleReactNative76/jest.config.d.ts +0 -1
  268. package/dist/exampleReactNative76/jest.config.js +0 -4
  269. package/dist/exampleReactNative76/metro.config.d.ts +0 -2
  270. package/dist/exampleReactNative76/metro.config.js +0 -10
  271. package/dist/src/EmbeddedLink/EmbeddedLinkView.d.ts +0 -13
  272. package/dist/src/EmbeddedLink/EmbeddedLinkView.js +0 -55
  273. package/dist/src/EmbeddedLink/EmbeddedLinkView.web.d.ts +0 -1
  274. package/dist/src/EmbeddedLink/EmbeddedLinkView.web.js +0 -1
  275. package/dist/src/EmbeddedLink/NativeEmbeddedLinkView.d.ts +0 -2
  276. package/dist/src/EmbeddedLink/NativeEmbeddedLinkView.js +0 -2
  277. package/dist/src/PlaidLink.d.ts +0 -27
  278. package/dist/src/PlaidLink.js +0 -124
  279. package/dist/src/Types.d.ts +0 -539
  280. package/dist/src/Types.js +0 -454
  281. package/dist/src/__tests__/Types.tests.d.ts +0 -1
  282. package/dist/src/__tests__/Types.tests.js +0 -14
  283. package/dist/src/fabric/EmbeddedLinkViewNativeComponent.d.ts +0 -17
  284. package/dist/src/fabric/EmbeddedLinkViewNativeComponent.js +0 -2
  285. package/dist/src/fabric/NativePlaidLinkModuleAndroid.d.ts +0 -14
  286. package/dist/src/fabric/NativePlaidLinkModuleAndroid.js +0 -4
  287. package/dist/src/fabric/NativePlaidLinkModuleiOS.d.ts +0 -15
  288. package/dist/src/fabric/NativePlaidLinkModuleiOS.js +0 -4
  289. package/dist/src/fabric/fabricUtils.d.ts +0 -1
  290. package/dist/src/fabric/fabricUtils.js +0 -1
  291. package/dist/src/index.d.ts +0 -4
  292. package/dist/src/index.js +0 -6
@@ -1,69 +0,0 @@
1
- export namespace styles {
2
- namespace button {
3
- let elevation: number;
4
- let backgroundColor: string;
5
- let width: "90%";
6
- let margin: number;
7
- let paddingVertical: number;
8
- let fontSize: number;
9
- let textAlign: "center";
10
- let color: string;
11
- let borderRadius: number;
12
- let alignSelf: "center";
13
- let textTransform: "uppercase";
14
- let overflow: "hidden";
15
- }
16
- namespace disabledButton {
17
- let elevation_1: number;
18
- export { elevation_1 as elevation };
19
- let backgroundColor_1: string;
20
- export { backgroundColor_1 as backgroundColor };
21
- let width_1: "90%";
22
- export { width_1 as width };
23
- let margin_1: number;
24
- export { margin_1 as margin };
25
- let paddingVertical_1: number;
26
- export { paddingVertical_1 as paddingVertical };
27
- let fontSize_1: number;
28
- export { fontSize_1 as fontSize };
29
- let textAlign_1: "center";
30
- export { textAlign_1 as textAlign };
31
- let color_1: string;
32
- export { color_1 as color };
33
- let borderRadius_1: number;
34
- export { borderRadius_1 as borderRadius };
35
- let alignSelf_1: "center";
36
- export { alignSelf_1 as alignSelf };
37
- let textTransform_1: "uppercase";
38
- export { textTransform_1 as textTransform };
39
- let overflow_1: "hidden";
40
- export { overflow_1 as overflow };
41
- export let opacity: number;
42
- }
43
- namespace input {
44
- export let height: number;
45
- let margin_2: number;
46
- export { margin_2 as margin };
47
- let width_2: "90%";
48
- export { width_2 as width };
49
- let alignSelf_2: "center";
50
- export { alignSelf_2 as alignSelf };
51
- export let borderWidth: number;
52
- export let padding: number;
53
- export let borderColor: any;
54
- }
55
- namespace embedded {
56
- let width_3: "95%";
57
- export { width_3 as width };
58
- let alignSelf_3: "center";
59
- export { alignSelf_3 as alignSelf };
60
- let height_1: number;
61
- export { height_1 as height };
62
- }
63
- namespace emptyView {
64
- let height_2: number;
65
- export { height_2 as height };
66
- let backgroundColor_2: string;
67
- export { backgroundColor_2 as backgroundColor };
68
- }
69
- }
@@ -1,51 +0,0 @@
1
- import { StyleSheet } from 'react-native';
2
- import { Colors } from 'react-native/Libraries/NewAppScreen';
3
- export const styles = StyleSheet.create({
4
- button: {
5
- elevation: 8,
6
- backgroundColor: '#2196F3',
7
- width: '90%',
8
- margin: 4,
9
- paddingVertical: 4,
10
- fontSize: 16,
11
- textAlign: 'center',
12
- color: 'white',
13
- borderRadius: 4,
14
- alignSelf: 'center',
15
- textTransform: 'uppercase',
16
- overflow: 'hidden',
17
- },
18
- disabledButton: {
19
- elevation: 8,
20
- backgroundColor: '#2196F3',
21
- width: '90%',
22
- margin: 4,
23
- paddingVertical: 4,
24
- fontSize: 16,
25
- textAlign: 'center',
26
- color: 'white',
27
- borderRadius: 4,
28
- alignSelf: 'center',
29
- textTransform: 'uppercase',
30
- overflow: 'hidden',
31
- opacity: 0.5,
32
- },
33
- input: {
34
- height: 40,
35
- margin: 12,
36
- width: '90%',
37
- alignSelf: 'center',
38
- borderWidth: 1,
39
- padding: 10,
40
- borderColor: Colors.black,
41
- },
42
- embedded: {
43
- width: '95%',
44
- alignSelf: 'center',
45
- height: 360,
46
- },
47
- emptyView: {
48
- height: 80,
49
- backgroundColor: 'transparent', // Transparent background to keep it empty
50
- },
51
- });
@@ -1,4 +0,0 @@
1
- /**
2
- * @format
3
- */
4
- import 'react-native';
@@ -1,13 +0,0 @@
1
- /**
2
- * @format
3
- */
4
- import 'react-native';
5
- import React from 'react';
6
- import App from '../App';
7
- // Note: import explicitly to use the types shipped with jest.
8
- import { it } from '@jest/globals';
9
- // Note: test renderer must be required after react-native.
10
- import renderer from 'react-test-renderer';
11
- it('renders correctly', () => {
12
- renderer.create(<App />);
13
- });
@@ -1 +0,0 @@
1
- export let presets: string[];
@@ -1,4 +0,0 @@
1
- "use strict";
2
- module.exports = {
3
- presets: ['module:@react-native/babel-preset'],
4
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,7 +0,0 @@
1
- /**
2
- * @format
3
- */
4
- import { AppRegistry } from 'react-native';
5
- import App from './App';
6
- import { name as appName } from './app.json';
7
- AppRegistry.registerComponent(appName, () => App);
@@ -1 +0,0 @@
1
- export let preset: string;
@@ -1,4 +0,0 @@
1
- "use strict";
2
- module.exports = {
3
- preset: 'react-native',
4
- };
@@ -1,2 +0,0 @@
1
- declare const _exports: any;
2
- export = _exports;
@@ -1,10 +0,0 @@
1
- "use strict";
2
- const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');
3
- /**
4
- * Metro configuration
5
- * https://reactnative.dev/docs/metro
6
- *
7
- * @type {import('metro-config').MetroConfig}
8
- */
9
- const config = {};
10
- module.exports = mergeConfig(getDefaultConfig(__dirname), config);
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import { StyleProp, ViewStyle } from 'react-native';
3
- import { LinkSuccessListener, LinkExitListener, LinkIOSPresentationStyle, LinkOnEventListener } from '../Types';
4
- type EmbeddedLinkProps = {
5
- token: string;
6
- iOSPresentationStyle: LinkIOSPresentationStyle;
7
- onEvent: LinkOnEventListener | undefined;
8
- onSuccess: LinkSuccessListener;
9
- onExit: LinkExitListener | undefined;
10
- style: StyleProp<ViewStyle> | undefined;
11
- };
12
- export declare const EmbeddedLinkView: React.FC<EmbeddedLinkProps>;
13
- export {};
@@ -1,55 +0,0 @@
1
- import React from 'react';
2
- import NativeEmbeddedLinkView from './NativeEmbeddedLinkView';
3
- class EmbeddedEvent {
4
- constructor(event) {
5
- this.eventName = event.eventName;
6
- this.metadata = event.metadata;
7
- }
8
- }
9
- class EmbeddedExit {
10
- constructor(event) {
11
- this.error = event.error;
12
- this.metadata = event.metadata;
13
- }
14
- }
15
- class EmbeddedSuccess {
16
- constructor(event) {
17
- this.publicToken = event.publicToken;
18
- this.metadata = event.metadata;
19
- }
20
- }
21
- export const EmbeddedLinkView = (props) => {
22
- const { token, iOSPresentationStyle, onEvent, onSuccess, onExit, style } = props;
23
- const onEmbeddedEvent = (event) => {
24
- switch (event.nativeEvent.embeddedEventName) {
25
- case 'onSuccess': {
26
- if (!onSuccess) {
27
- return;
28
- }
29
- const embeddedSuccess = new EmbeddedSuccess(event.nativeEvent);
30
- onSuccess(embeddedSuccess);
31
- break;
32
- }
33
- case 'onExit': {
34
- if (!onExit) {
35
- return;
36
- }
37
- const embeddedExit = new EmbeddedExit(event.nativeEvent);
38
- onExit(embeddedExit);
39
- break;
40
- }
41
- case 'onEvent': {
42
- if (!onEvent) {
43
- return;
44
- }
45
- const embeddedEvent = new EmbeddedEvent(event.nativeEvent);
46
- onEvent(embeddedEvent);
47
- break;
48
- }
49
- default: {
50
- return;
51
- }
52
- }
53
- };
54
- return <NativeEmbeddedLinkView token={token} iOSPresentationStyle={iOSPresentationStyle.toString()} onEmbeddedEvent={onEmbeddedEvent} style={style}/>;
55
- };
@@ -1 +0,0 @@
1
- export declare const EmbeddedLinkView: () => null;
@@ -1 +0,0 @@
1
- export const EmbeddedLinkView = () => null;
@@ -1,2 +0,0 @@
1
- import NativeEmbeddedLinkView from '../fabric/EmbeddedLinkViewNativeComponent';
2
- export default NativeEmbeddedLinkView;
@@ -1,2 +0,0 @@
1
- import NativeEmbeddedLinkView from '../fabric/EmbeddedLinkViewNativeComponent';
2
- export default NativeEmbeddedLinkView;
@@ -1,27 +0,0 @@
1
- import { LinkEventListener, LinkOpenProps, LinkTokenConfiguration, FinanceKitError, SubmissionData } from './Types';
2
- /**
3
- * A hook that registers a listener on the Plaid emitter for the 'onEvent' type.
4
- * The listener is cleaned up when this view is unmounted
5
- *
6
- * @param LinkEventListener the listener to call
7
- */
8
- export declare const usePlaidEmitter: (linkEventListener: LinkEventListener) => void;
9
- export declare const create: (props: LinkTokenConfiguration) => void;
10
- export declare const open: (props: LinkOpenProps) => Promise<void>;
11
- export declare const dismissLink: () => void;
12
- export declare const submit: (data: SubmissionData) => void;
13
- /**
14
- * Function to sync the user's transactions from their Apple card.
15
- *
16
- * @param {string} token - The `LinkToken` your server retrieved from the /link/token/create endpoint from the Plaid API.
17
- * This token must be associated with an accessToken.
18
- * @param {boolean} requestAuthorizationIfNeeded - Indicates if the user should be prompted to authorize the sync if
19
- * they have not already done so.
20
- * @param {function} completion - A callback function that is called when the sync has completed.
21
- *
22
- * @warning This method only works on iOS >= 17.4.
23
- * @warning This method is not supported on Android or MacCatalyst.
24
- * @warning This method can only be used once the user has granted access to their Apple card via a standard Link Session.
25
- * @warning This method requires that your app has been granted FinanceKit access from Apple.
26
- */
27
- export declare const syncFinanceKit: (token: string, requestAuthorizationIfNeeded: boolean, completion: (error?: FinanceKitError) => void) => void;
@@ -1,124 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- var _a;
11
- import { useEffect } from 'react';
12
- import { NativeEventEmitter, Platform } from 'react-native';
13
- import { LinkIOSPresentationStyle, LinkLogLevel, FinanceKitErrorType, } from './Types';
14
- import RNLinksdkAndroid from './fabric/NativePlaidLinkModuleAndroid';
15
- import RNLinksdkiOS from './fabric/NativePlaidLinkModuleiOS';
16
- const RNLinksdk = (_a = (Platform.OS === 'android' ? RNLinksdkAndroid : RNLinksdkiOS)) !== null && _a !== void 0 ? _a : undefined;
17
- /**
18
- * A hook that registers a listener on the Plaid emitter for the 'onEvent' type.
19
- * The listener is cleaned up when this view is unmounted
20
- *
21
- * @param LinkEventListener the listener to call
22
- */
23
- export const usePlaidEmitter = (linkEventListener) => {
24
- useEffect(() => {
25
- const emitter = new NativeEventEmitter(RNLinksdk);
26
- const listener = emitter.addListener('onEvent', linkEventListener);
27
- // Clean up after this effect:
28
- return function cleanup() {
29
- listener.remove();
30
- };
31
- }, []);
32
- };
33
- export const create = (props) => {
34
- var _a, _b;
35
- let token = props.token;
36
- let noLoadingState = (_a = props.noLoadingState) !== null && _a !== void 0 ? _a : false;
37
- if (Platform.OS === 'android') {
38
- RNLinksdkAndroid === null || RNLinksdkAndroid === void 0 ? void 0 : RNLinksdkAndroid.create(token, noLoadingState, (_b = props.logLevel) !== null && _b !== void 0 ? _b : LinkLogLevel.ERROR);
39
- }
40
- else {
41
- RNLinksdkiOS === null || RNLinksdkiOS === void 0 ? void 0 : RNLinksdkiOS.create(token, noLoadingState);
42
- }
43
- };
44
- export const open = (props) => __awaiter(void 0, void 0, void 0, function* () {
45
- if (Platform.OS === 'android') {
46
- RNLinksdkAndroid === null || RNLinksdkAndroid === void 0 ? void 0 : RNLinksdkAndroid.open((result) => {
47
- if (props.onSuccess != null) {
48
- props.onSuccess(result);
49
- }
50
- }, (result) => {
51
- if (props.onExit != null) {
52
- if (result.error != null && result.error.displayMessage != null) {
53
- //TODO(RNSDK-118): Remove errorDisplayMessage field in next major update.
54
- result.error.errorDisplayMessage = result.error.displayMessage;
55
- }
56
- props.onExit(result);
57
- }
58
- });
59
- }
60
- else {
61
- let presentFullScreen = props.iOSPresentationStyle == LinkIOSPresentationStyle.FULL_SCREEN;
62
- RNLinksdkiOS === null || RNLinksdkiOS === void 0 ? void 0 : RNLinksdkiOS.open(presentFullScreen, (result) => {
63
- if (props.onSuccess != null) {
64
- props.onSuccess(result);
65
- }
66
- }, (error, result) => {
67
- if (props.onExit != null) {
68
- if (error) {
69
- var data = result || {};
70
- data.error = error;
71
- props.onExit(data);
72
- }
73
- else {
74
- props.onExit(result);
75
- }
76
- }
77
- });
78
- }
79
- });
80
- export const dismissLink = () => {
81
- if (Platform.OS === 'ios') {
82
- RNLinksdkiOS === null || RNLinksdkiOS === void 0 ? void 0 : RNLinksdkiOS.dismiss();
83
- }
84
- };
85
- export const submit = (data) => {
86
- if (Platform.OS === 'android') {
87
- RNLinksdkAndroid === null || RNLinksdkAndroid === void 0 ? void 0 : RNLinksdkAndroid.submit(data.phoneNumber);
88
- }
89
- else {
90
- RNLinksdkiOS === null || RNLinksdkiOS === void 0 ? void 0 : RNLinksdkiOS.submit(data.phoneNumber);
91
- }
92
- };
93
- /**
94
- * Function to sync the user's transactions from their Apple card.
95
- *
96
- * @param {string} token - The `LinkToken` your server retrieved from the /link/token/create endpoint from the Plaid API.
97
- * This token must be associated with an accessToken.
98
- * @param {boolean} requestAuthorizationIfNeeded - Indicates if the user should be prompted to authorize the sync if
99
- * they have not already done so.
100
- * @param {function} completion - A callback function that is called when the sync has completed.
101
- *
102
- * @warning This method only works on iOS >= 17.4.
103
- * @warning This method is not supported on Android or MacCatalyst.
104
- * @warning This method can only be used once the user has granted access to their Apple card via a standard Link Session.
105
- * @warning This method requires that your app has been granted FinanceKit access from Apple.
106
- */
107
- export const syncFinanceKit = (token, requestAuthorizationIfNeeded, completion) => {
108
- if (Platform.OS === 'android') {
109
- completion({
110
- type: FinanceKitErrorType.Unknown,
111
- message: "FinanceKit is unavailable on Android!",
112
- });
113
- }
114
- else {
115
- RNLinksdkiOS === null || RNLinksdkiOS === void 0 ? void 0 : RNLinksdkiOS.syncFinanceKit(token, requestAuthorizationIfNeeded, () => {
116
- completion();
117
- }, (error) => {
118
- completion({
119
- type: error.type,
120
- message: error.message,
121
- });
122
- });
123
- }
124
- };