react-native-unit-components 1.12.0 → 1.14.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 (348) hide show
  1. package/android/src/main/java/com/unitreactnativecomponents/UnitAddToWalletButtonViewManager.kt +1 -0
  2. package/android/src/main/java/com/unitreactnativecomponents/UnitReactNativeComponentsPackage.kt +9 -1
  3. package/android/src/main/java/com/unitreactnativecomponents/extensions/ContextExtensions.kt +2 -0
  4. package/android/src/main/java/com/unitreactnativecomponents/secureView/UNSecureViewManager.kt +19 -0
  5. package/android/src/main/java/com/unitreactnativecomponents/security/UNSecurityHelper.kt +37 -0
  6. package/android/src/main/java/com/unitreactnativecomponents/unSnapshotProtectionManager/UNSnapshotProtectionManager.kt +42 -0
  7. package/ios/UNSecurity/UNSecurityHelper.swift +90 -0
  8. package/ios/UNSecurity/UNSecurityHelperExportModule.m +7 -0
  9. package/ios/UNSharedServicesProvider/UNAppStateService.swift +38 -0
  10. package/ios/UNSharedServicesProvider/UNGlobalSnapshotProtectionService.swift +93 -0
  11. package/ios/UNSharedServicesProvider/UNPresentationService.swift +37 -0
  12. package/ios/UNSharedServicesProvider/UNSharedServicesProviderManager.swift +45 -0
  13. package/ios/UNSnapshotProtectionManager/UNSnapshotProtectionManager.swift +20 -0
  14. package/ios/UNSnapshotProtectionManager/UNSnapshotProtectionManagerExportModule.m +5 -0
  15. package/ios/UnitReactNativeComponents.xcodeproj/project.pbxproj +16 -0
  16. package/lib/commonjs/components/UNACHCreditComponent/UNACHCreditComponent.js +22 -21
  17. package/lib/commonjs/components/UNACHCreditComponent/UNACHCreditComponent.js.map +1 -1
  18. package/lib/commonjs/components/UNACHDebitComponent/UNACHDebitComponent.js +22 -21
  19. package/lib/commonjs/components/UNACHDebitComponent/UNACHDebitComponent.js.map +1 -1
  20. package/lib/commonjs/components/UNAccountComponent/UNAccountComponent.js +8 -4
  21. package/lib/commonjs/components/UNAccountComponent/UNAccountComponent.js.map +1 -1
  22. package/lib/commonjs/components/UNActivityComponent/UNActivityComponent.js +19 -20
  23. package/lib/commonjs/components/UNActivityComponent/UNActivityComponent.js.map +1 -1
  24. package/lib/commonjs/components/UNBookPaymentComponent/UNBookPaymentComponent.js +24 -21
  25. package/lib/commonjs/components/UNBookPaymentComponent/UNBookPaymentComponent.js.map +1 -1
  26. package/lib/commonjs/components/UNBottomSheetComponent/UNBottomSheetComponent.js.map +1 -1
  27. package/lib/commonjs/components/UNCardComponent/UNCardComponent.js +4 -3
  28. package/lib/commonjs/components/UNCardComponent/UNCardComponent.js.map +1 -1
  29. package/lib/commonjs/components/UNCheckDepositComponent/UNCheckDepositComponent.js +18 -19
  30. package/lib/commonjs/components/UNCheckDepositComponent/UNCheckDepositComponent.js.map +1 -1
  31. package/lib/commonjs/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.js +88 -0
  32. package/lib/commonjs/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.js.map +1 -0
  33. package/lib/commonjs/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.utils.js +30 -0
  34. package/lib/commonjs/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.utils.js.map +1 -0
  35. package/lib/commonjs/components/UNFundAccountPaymentComponent/index.js +21 -0
  36. package/lib/commonjs/components/UNFundAccountPaymentComponent/index.js.map +1 -0
  37. package/lib/commonjs/components/UNMultipleCardsComponent/UNMultipleCardsComponent.js +19 -20
  38. package/lib/commonjs/components/UNMultipleCardsComponent/UNMultipleCardsComponent.js.map +1 -1
  39. package/lib/commonjs/components/UNNextRepaymentComponent/UNNextRepaymentComponent.js +4 -3
  40. package/lib/commonjs/components/UNNextRepaymentComponent/UNNextRepaymentComponent.js.map +1 -1
  41. package/lib/commonjs/components/UNPayeeManagementComponent/UNPayeeManagementComponent.js +7 -2
  42. package/lib/commonjs/components/UNPayeeManagementComponent/UNPayeeManagementComponent.js.map +1 -1
  43. package/lib/commonjs/components/UNProgramDetailsComponent/UNProgramDetailsComponent.js +4 -3
  44. package/lib/commonjs/components/UNProgramDetailsComponent/UNProgramDetailsComponent.js.map +1 -1
  45. package/lib/commonjs/components/UNWhiteLabelAppComponent/UNWhiteLabelAppComponent.js +8 -3
  46. package/lib/commonjs/components/UNWhiteLabelAppComponent/UNWhiteLabelAppComponent.js.map +1 -1
  47. package/lib/commonjs/components/UNWirePaymentComponent/UNWirePaymentComponent.js +91 -0
  48. package/lib/commonjs/components/UNWirePaymentComponent/UNWirePaymentComponent.js.map +1 -0
  49. package/lib/commonjs/components/UNWirePaymentComponent/UNWirePaymentComponent.utils.js +29 -0
  50. package/lib/commonjs/components/UNWirePaymentComponent/UNWirePaymentComponent.utils.js.map +1 -0
  51. package/lib/commonjs/components/UNWirePaymentComponent/index.js +21 -0
  52. package/lib/commonjs/components/UNWirePaymentComponent/index.js.map +1 -0
  53. package/lib/commonjs/components/index.js +22 -0
  54. package/lib/commonjs/components/index.js.map +1 -1
  55. package/lib/commonjs/helpers/BottomSheet/BottomSheet.js +2 -1
  56. package/lib/commonjs/helpers/BottomSheet/BottomSheet.js.map +1 -1
  57. package/lib/commonjs/hooks/useIsJailbrokeDevice.js +22 -0
  58. package/lib/commonjs/hooks/useIsJailbrokeDevice.js.map +1 -0
  59. package/lib/commonjs/hooks/useSnapshotProtection.js +31 -0
  60. package/lib/commonjs/hooks/useSnapshotProtection.js.map +1 -0
  61. package/lib/commonjs/messages/webMessages/fundAccountPaymentMessage.js +6 -0
  62. package/lib/commonjs/messages/webMessages/fundAccountPaymentMessage.js.map +1 -0
  63. package/lib/commonjs/messages/webMessages/onLoadMessage.js +2 -0
  64. package/lib/commonjs/messages/webMessages/onLoadMessage.js.map +1 -1
  65. package/lib/commonjs/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.js +6 -1
  66. package/lib/commonjs/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.js.map +1 -1
  67. package/lib/commonjs/nativeComponents/UNBaseView/UNBaseView.js +39 -0
  68. package/lib/commonjs/nativeComponents/UNBaseView/UNBaseView.js.map +1 -0
  69. package/lib/commonjs/nativeComponents/UNBaseView/index.js +14 -0
  70. package/lib/commonjs/nativeComponents/UNBaseView/index.js.map +1 -0
  71. package/lib/commonjs/nativeModulesHelpers/UNSanpshotProtectionHelper/UNSnapshotProtectionHelper.js +26 -0
  72. package/lib/commonjs/nativeModulesHelpers/UNSanpshotProtectionHelper/UNSnapshotProtectionHelper.js.map +1 -0
  73. package/lib/commonjs/nativeModulesHelpers/UNSecurityHelper.js +39 -0
  74. package/lib/commonjs/nativeModulesHelpers/UNSecurityHelper.js.map +1 -0
  75. package/lib/commonjs/networking/common/UNNetworkConstants.js +2 -1
  76. package/lib/commonjs/networking/common/UNNetworkConstants.js.map +1 -1
  77. package/lib/commonjs/types/internal/webComponent.types.js +2 -0
  78. package/lib/commonjs/types/internal/webComponent.types.js.map +1 -1
  79. package/lib/commonjs/types/shared/checkDeposit.types.js.map +1 -1
  80. package/lib/commonjs/types/shared/env.types.js +1 -0
  81. package/lib/commonjs/types/shared/env.types.js.map +1 -1
  82. package/lib/commonjs/types/shared/fundAccountPayment.types.js +6 -0
  83. package/lib/commonjs/types/shared/fundAccountPayment.types.js.map +1 -0
  84. package/lib/commonjs/types/shared/index.js +22 -0
  85. package/lib/commonjs/types/shared/index.js.map +1 -1
  86. package/lib/commonjs/types/shared/payments.types.js +18 -1
  87. package/lib/commonjs/types/shared/payments.types.js.map +1 -1
  88. package/lib/commonjs/types/shared/securitySettings.js +12 -0
  89. package/lib/commonjs/types/shared/securitySettings.js.map +1 -0
  90. package/lib/commonjs/types/shared/types.js +10 -0
  91. package/lib/commonjs/types/shared/types.js.map +1 -1
  92. package/lib/commonjs/types/shared/wirePayment.types.js +6 -0
  93. package/lib/commonjs/types/shared/wirePayment.types.js.map +1 -0
  94. package/lib/commonjs/unitSdkManager/UnitSdk.constants.js +6 -1
  95. package/lib/commonjs/unitSdkManager/UnitSdk.constants.js.map +1 -1
  96. package/lib/commonjs/unitSdkManager/UnitSdkManager.js +25 -4
  97. package/lib/commonjs/unitSdkManager/UnitSdkManager.js.map +1 -1
  98. package/lib/commonjs/unitSdkManager/UnitSdkManager.utils.internal.js +2 -0
  99. package/lib/commonjs/unitSdkManager/UnitSdkManager.utils.internal.js.map +1 -1
  100. package/lib/commonjs/unitSdkManager/unitHelpersManager/UnitHelpersManager.js +18 -0
  101. package/lib/commonjs/unitSdkManager/unitHelpersManager/UnitHelpersManager.js.map +1 -1
  102. package/lib/commonjs/utils/onLoadMessages.utils.js +10 -0
  103. package/lib/commonjs/utils/onLoadMessages.utils.js.map +1 -0
  104. package/lib/commonjs/webComponent/WebComponent.js +4 -3
  105. package/lib/commonjs/webComponent/WebComponent.js.map +1 -1
  106. package/lib/commonjs/webComponent/WebComponent.utils.js +2 -2
  107. package/lib/commonjs/webComponent/WebComponent.utils.js.map +1 -1
  108. package/lib/commonjs/webComponent/html.js +1 -0
  109. package/lib/commonjs/webComponent/html.js.map +1 -1
  110. package/lib/module/components/UNACHCreditComponent/UNACHCreditComponent.js +23 -22
  111. package/lib/module/components/UNACHCreditComponent/UNACHCreditComponent.js.map +1 -1
  112. package/lib/module/components/UNACHDebitComponent/UNACHDebitComponent.js +23 -22
  113. package/lib/module/components/UNACHDebitComponent/UNACHDebitComponent.js.map +1 -1
  114. package/lib/module/components/UNAccountComponent/UNAccountComponent.js +9 -5
  115. package/lib/module/components/UNAccountComponent/UNAccountComponent.js.map +1 -1
  116. package/lib/module/components/UNActivityComponent/UNActivityComponent.js +20 -21
  117. package/lib/module/components/UNActivityComponent/UNActivityComponent.js.map +1 -1
  118. package/lib/module/components/UNBookPaymentComponent/UNBookPaymentComponent.js +24 -21
  119. package/lib/module/components/UNBookPaymentComponent/UNBookPaymentComponent.js.map +1 -1
  120. package/lib/module/components/UNBottomSheetComponent/UNBottomSheetComponent.js.map +1 -1
  121. package/lib/module/components/UNCardComponent/UNCardComponent.js +4 -3
  122. package/lib/module/components/UNCardComponent/UNCardComponent.js.map +1 -1
  123. package/lib/module/components/UNCheckDepositComponent/UNCheckDepositComponent.js +19 -20
  124. package/lib/module/components/UNCheckDepositComponent/UNCheckDepositComponent.js.map +1 -1
  125. package/lib/module/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.js +79 -0
  126. package/lib/module/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.js.map +1 -0
  127. package/lib/module/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.utils.js +22 -0
  128. package/lib/module/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.utils.js.map +1 -0
  129. package/lib/module/components/UNFundAccountPaymentComponent/index.js +2 -0
  130. package/lib/module/components/UNFundAccountPaymentComponent/index.js.map +1 -0
  131. package/lib/module/components/UNMultipleCardsComponent/UNMultipleCardsComponent.js +20 -21
  132. package/lib/module/components/UNMultipleCardsComponent/UNMultipleCardsComponent.js.map +1 -1
  133. package/lib/module/components/UNNextRepaymentComponent/UNNextRepaymentComponent.js +4 -3
  134. package/lib/module/components/UNNextRepaymentComponent/UNNextRepaymentComponent.js.map +1 -1
  135. package/lib/module/components/UNPayeeManagementComponent/UNPayeeManagementComponent.js +7 -2
  136. package/lib/module/components/UNPayeeManagementComponent/UNPayeeManagementComponent.js.map +1 -1
  137. package/lib/module/components/UNProgramDetailsComponent/UNProgramDetailsComponent.js +4 -3
  138. package/lib/module/components/UNProgramDetailsComponent/UNProgramDetailsComponent.js.map +1 -1
  139. package/lib/module/components/UNWhiteLabelAppComponent/UNWhiteLabelAppComponent.js +8 -3
  140. package/lib/module/components/UNWhiteLabelAppComponent/UNWhiteLabelAppComponent.js.map +1 -1
  141. package/lib/module/components/UNWirePaymentComponent/UNWirePaymentComponent.js +83 -0
  142. package/lib/module/components/UNWirePaymentComponent/UNWirePaymentComponent.js.map +1 -0
  143. package/lib/module/components/UNWirePaymentComponent/UNWirePaymentComponent.utils.js +21 -0
  144. package/lib/module/components/UNWirePaymentComponent/UNWirePaymentComponent.utils.js.map +1 -0
  145. package/lib/module/components/UNWirePaymentComponent/index.js +2 -0
  146. package/lib/module/components/UNWirePaymentComponent/index.js.map +1 -0
  147. package/lib/module/components/index.js +2 -0
  148. package/lib/module/components/index.js.map +1 -1
  149. package/lib/module/helpers/BottomSheet/BottomSheet.js +2 -1
  150. package/lib/module/helpers/BottomSheet/BottomSheet.js.map +1 -1
  151. package/lib/module/hooks/useIsJailbrokeDevice.js +14 -0
  152. package/lib/module/hooks/useIsJailbrokeDevice.js.map +1 -0
  153. package/lib/module/hooks/useSnapshotProtection.js +23 -0
  154. package/lib/module/hooks/useSnapshotProtection.js.map +1 -0
  155. package/lib/module/messages/webMessages/fundAccountPaymentMessage.js +2 -0
  156. package/lib/module/messages/webMessages/fundAccountPaymentMessage.js.map +1 -0
  157. package/lib/module/messages/webMessages/onLoadMessage.js +2 -0
  158. package/lib/module/messages/webMessages/onLoadMessage.js.map +1 -1
  159. package/lib/module/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.js +6 -1
  160. package/lib/module/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.js.map +1 -1
  161. package/lib/module/nativeComponents/UNBaseView/UNBaseView.js +31 -0
  162. package/lib/module/nativeComponents/UNBaseView/UNBaseView.js.map +1 -0
  163. package/lib/module/nativeComponents/UNBaseView/index.js +2 -0
  164. package/lib/module/nativeComponents/UNBaseView/index.js.map +1 -0
  165. package/lib/module/nativeModulesHelpers/UNSanpshotProtectionHelper/UNSnapshotProtectionHelper.js +20 -0
  166. package/lib/module/nativeModulesHelpers/UNSanpshotProtectionHelper/UNSnapshotProtectionHelper.js.map +1 -0
  167. package/lib/module/nativeModulesHelpers/UNSecurityHelper.js +33 -0
  168. package/lib/module/nativeModulesHelpers/UNSecurityHelper.js.map +1 -0
  169. package/lib/module/networking/common/UNNetworkConstants.js +2 -1
  170. package/lib/module/networking/common/UNNetworkConstants.js.map +1 -1
  171. package/lib/module/types/internal/webComponent.types.js +2 -0
  172. package/lib/module/types/internal/webComponent.types.js.map +1 -1
  173. package/lib/module/types/shared/checkDeposit.types.js.map +1 -1
  174. package/lib/module/types/shared/env.types.js +1 -0
  175. package/lib/module/types/shared/env.types.js.map +1 -1
  176. package/lib/module/types/shared/fundAccountPayment.types.js +2 -0
  177. package/lib/module/types/shared/fundAccountPayment.types.js.map +1 -0
  178. package/lib/module/types/shared/index.js +2 -0
  179. package/lib/module/types/shared/index.js.map +1 -1
  180. package/lib/module/types/shared/payments.types.js +17 -0
  181. package/lib/module/types/shared/payments.types.js.map +1 -1
  182. package/lib/module/types/shared/securitySettings.js +6 -0
  183. package/lib/module/types/shared/securitySettings.js.map +1 -0
  184. package/lib/module/types/shared/types.js +6 -0
  185. package/lib/module/types/shared/types.js.map +1 -1
  186. package/lib/module/types/shared/wirePayment.types.js +2 -0
  187. package/lib/module/types/shared/wirePayment.types.js.map +1 -0
  188. package/lib/module/unitSdkManager/UnitSdk.constants.js +6 -1
  189. package/lib/module/unitSdkManager/UnitSdk.constants.js.map +1 -1
  190. package/lib/module/unitSdkManager/UnitSdkManager.js +25 -4
  191. package/lib/module/unitSdkManager/UnitSdkManager.js.map +1 -1
  192. package/lib/module/unitSdkManager/UnitSdkManager.utils.internal.js +2 -0
  193. package/lib/module/unitSdkManager/UnitSdkManager.utils.internal.js.map +1 -1
  194. package/lib/module/unitSdkManager/unitHelpersManager/UnitHelpersManager.js +18 -0
  195. package/lib/module/unitSdkManager/unitHelpersManager/UnitHelpersManager.js.map +1 -1
  196. package/lib/module/utils/onLoadMessages.utils.js +4 -0
  197. package/lib/module/utils/onLoadMessages.utils.js.map +1 -0
  198. package/lib/module/webComponent/WebComponent.js +4 -3
  199. package/lib/module/webComponent/WebComponent.js.map +1 -1
  200. package/lib/module/webComponent/WebComponent.utils.js +2 -2
  201. package/lib/module/webComponent/WebComponent.utils.js.map +1 -1
  202. package/lib/module/webComponent/html.js +1 -0
  203. package/lib/module/webComponent/html.js.map +1 -1
  204. package/lib/typescript/src/components/UNACHCreditComponent/UNACHCreditComponent.d.ts.map +1 -1
  205. package/lib/typescript/src/components/UNACHDebitComponent/UNACHDebitComponent.d.ts.map +1 -1
  206. package/lib/typescript/src/components/UNAccountComponent/UNAccountComponent.d.ts.map +1 -1
  207. package/lib/typescript/src/components/UNActivityComponent/UNActivityComponent.d.ts.map +1 -1
  208. package/lib/typescript/src/components/UNBookPaymentComponent/UNBookPaymentComponent.d.ts +1 -1
  209. package/lib/typescript/src/components/UNBookPaymentComponent/UNBookPaymentComponent.d.ts.map +1 -1
  210. package/lib/typescript/src/components/UNBottomSheetComponent/UNBottomSheetComponent.d.ts.map +1 -1
  211. package/lib/typescript/src/components/UNCardComponent/UNCardComponent.d.ts.map +1 -1
  212. package/lib/typescript/src/components/UNCheckDepositComponent/UNCheckDepositComponent.d.ts.map +1 -1
  213. package/lib/typescript/src/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.d.ts +19 -0
  214. package/lib/typescript/src/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.d.ts.map +1 -0
  215. package/lib/typescript/src/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.utils.d.ts +4 -0
  216. package/lib/typescript/src/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.utils.d.ts.map +1 -0
  217. package/lib/typescript/src/components/UNFundAccountPaymentComponent/index.d.ts +2 -0
  218. package/lib/typescript/src/components/UNFundAccountPaymentComponent/index.d.ts.map +1 -0
  219. package/lib/typescript/src/components/UNMultipleCardsComponent/UNMultipleCardsComponent.d.ts.map +1 -1
  220. package/lib/typescript/src/components/UNNextRepaymentComponent/UNNextRepaymentComponent.d.ts.map +1 -1
  221. package/lib/typescript/src/components/UNPayeeManagementComponent/UNPayeeManagementComponent.d.ts.map +1 -1
  222. package/lib/typescript/src/components/UNProgramDetailsComponent/UNProgramDetailsComponent.d.ts.map +1 -1
  223. package/lib/typescript/src/components/UNWhiteLabelAppComponent/UNWhiteLabelAppComponent.d.ts.map +1 -1
  224. package/lib/typescript/src/components/UNWirePaymentComponent/UNWirePaymentComponent.d.ts +20 -0
  225. package/lib/typescript/src/components/UNWirePaymentComponent/UNWirePaymentComponent.d.ts.map +1 -0
  226. package/lib/typescript/src/components/UNWirePaymentComponent/UNWirePaymentComponent.utils.d.ts +4 -0
  227. package/lib/typescript/src/components/UNWirePaymentComponent/UNWirePaymentComponent.utils.d.ts.map +1 -0
  228. package/lib/typescript/src/components/UNWirePaymentComponent/index.d.ts +2 -0
  229. package/lib/typescript/src/components/UNWirePaymentComponent/index.d.ts.map +1 -0
  230. package/lib/typescript/src/components/index.d.ts +2 -0
  231. package/lib/typescript/src/components/index.d.ts.map +1 -1
  232. package/lib/typescript/src/helpers/BottomSheet/BottomSheet.d.ts.map +1 -1
  233. package/lib/typescript/src/hooks/useIsJailbrokeDevice.d.ts +2 -0
  234. package/lib/typescript/src/hooks/useIsJailbrokeDevice.d.ts.map +1 -0
  235. package/lib/typescript/src/hooks/useSnapshotProtection.d.ts +2 -0
  236. package/lib/typescript/src/hooks/useSnapshotProtection.d.ts.map +1 -0
  237. package/lib/typescript/src/messages/webMessages/fundAccountPaymentMessage.d.ts +6 -0
  238. package/lib/typescript/src/messages/webMessages/fundAccountPaymentMessage.d.ts.map +1 -0
  239. package/lib/typescript/src/messages/webMessages/index.d.ts +2 -1
  240. package/lib/typescript/src/messages/webMessages/index.d.ts.map +1 -1
  241. package/lib/typescript/src/messages/webMessages/onLoadMessage.d.ts +10 -3
  242. package/lib/typescript/src/messages/webMessages/onLoadMessage.d.ts.map +1 -1
  243. package/lib/typescript/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.d.ts.map +1 -1
  244. package/lib/typescript/src/nativeComponents/UNBaseView/UNBaseView.d.ts +11 -0
  245. package/lib/typescript/src/nativeComponents/UNBaseView/UNBaseView.d.ts.map +1 -0
  246. package/lib/typescript/src/nativeComponents/UNBaseView/index.d.ts +2 -0
  247. package/lib/typescript/src/nativeComponents/UNBaseView/index.d.ts.map +1 -0
  248. package/lib/typescript/src/nativeModulesHelpers/UNSanpshotProtectionHelper/UNSnapshotProtectionHelper.d.ts +6 -0
  249. package/lib/typescript/src/nativeModulesHelpers/UNSanpshotProtectionHelper/UNSnapshotProtectionHelper.d.ts.map +1 -0
  250. package/lib/typescript/src/nativeModulesHelpers/UNSecurityHelper.d.ts +12 -0
  251. package/lib/typescript/src/nativeModulesHelpers/UNSecurityHelper.d.ts.map +1 -0
  252. package/lib/typescript/src/networking/common/UNNetworkConstants.d.ts +1 -0
  253. package/lib/typescript/src/networking/common/UNNetworkConstants.d.ts.map +1 -1
  254. package/lib/typescript/src/types/internal/webComponent.types.d.ts +2 -0
  255. package/lib/typescript/src/types/internal/webComponent.types.d.ts.map +1 -1
  256. package/lib/typescript/src/types/shared/achCredit.types.d.ts +3 -3
  257. package/lib/typescript/src/types/shared/achCredit.types.d.ts.map +1 -1
  258. package/lib/typescript/src/types/shared/bookPayment.types.d.ts +2 -2
  259. package/lib/typescript/src/types/shared/bookPayment.types.d.ts.map +1 -1
  260. package/lib/typescript/src/types/shared/checkDeposit.types.d.ts +1 -1
  261. package/lib/typescript/src/types/shared/checkDeposit.types.d.ts.map +1 -1
  262. package/lib/typescript/src/types/shared/env.types.d.ts +2 -1
  263. package/lib/typescript/src/types/shared/env.types.d.ts.map +1 -1
  264. package/lib/typescript/src/types/shared/fundAccountPayment.types.d.ts +38 -0
  265. package/lib/typescript/src/types/shared/fundAccountPayment.types.d.ts.map +1 -0
  266. package/lib/typescript/src/types/shared/index.d.ts +2 -0
  267. package/lib/typescript/src/types/shared/index.d.ts.map +1 -1
  268. package/lib/typescript/src/types/shared/payments.types.d.ts +29 -1
  269. package/lib/typescript/src/types/shared/payments.types.d.ts.map +1 -1
  270. package/lib/typescript/src/types/shared/securitySettings.d.ts +8 -0
  271. package/lib/typescript/src/types/shared/securitySettings.d.ts.map +1 -0
  272. package/lib/typescript/src/types/shared/types.d.ts +7 -4
  273. package/lib/typescript/src/types/shared/types.d.ts.map +1 -1
  274. package/lib/typescript/src/types/shared/wirePayment.types.d.ts +42 -0
  275. package/lib/typescript/src/types/shared/wirePayment.types.d.ts.map +1 -0
  276. package/lib/typescript/src/unitSdkManager/UnitSdk.constants.d.ts +2 -0
  277. package/lib/typescript/src/unitSdkManager/UnitSdk.constants.d.ts.map +1 -1
  278. package/lib/typescript/src/unitSdkManager/UnitSdkManager.d.ts +7 -1
  279. package/lib/typescript/src/unitSdkManager/UnitSdkManager.d.ts.map +1 -1
  280. package/lib/typescript/src/unitSdkManager/UnitSdkManager.utils.internal.d.ts.map +1 -1
  281. package/lib/typescript/src/unitSdkManager/unitHelpersManager/UnitHelpersManager.d.ts +2 -0
  282. package/lib/typescript/src/unitSdkManager/unitHelpersManager/UnitHelpersManager.d.ts.map +1 -1
  283. package/lib/typescript/src/utils/onLoadMessages.utils.d.ts +2 -0
  284. package/lib/typescript/src/utils/onLoadMessages.utils.d.ts.map +1 -0
  285. package/lib/typescript/src/webComponent/WebComponent.d.ts.map +1 -1
  286. package/lib/typescript/src/webComponent/WebComponent.utils.d.ts.map +1 -1
  287. package/lib/typescript/src/webComponent/html.d.ts.map +1 -1
  288. package/package.json +1 -1
  289. package/react-native-unit-components.podspec +1 -1
  290. package/src/components/UNACHCreditComponent/UNACHCreditComponent.tsx +11 -16
  291. package/src/components/UNACHDebitComponent/UNACHDebitComponent.tsx +11 -17
  292. package/src/components/UNAccountComponent/UNAccountComponent.tsx +9 -5
  293. package/src/components/UNActivityComponent/UNActivityComponent.tsx +7 -14
  294. package/src/components/UNBookPaymentComponent/UNBookPaymentComponent.tsx +14 -17
  295. package/src/components/UNBottomSheetComponent/UNBottomSheetComponent.tsx +0 -1
  296. package/src/components/UNCardComponent/UNCardComponent.tsx +3 -3
  297. package/src/components/UNCheckDepositComponent/UNCheckDepositComponent.tsx +7 -14
  298. package/src/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.tsx +111 -0
  299. package/src/components/UNFundAccountPaymentComponent/UNFundAccountPaymentComponent.utils.ts +24 -0
  300. package/src/components/UNFundAccountPaymentComponent/index.ts +1 -0
  301. package/src/components/UNMultipleCardsComponent/UNMultipleCardsComponent.tsx +6 -14
  302. package/src/components/UNNextRepaymentComponent/UNNextRepaymentComponent.tsx +3 -3
  303. package/src/components/UNPayeeManagementComponent/UNPayeeManagementComponent.tsx +14 -11
  304. package/src/components/UNProgramDetailsComponent/UNProgramDetailsComponent.tsx +3 -3
  305. package/src/components/UNWhiteLabelAppComponent/UNWhiteLabelAppComponent.tsx +15 -12
  306. package/src/components/UNWirePaymentComponent/UNWirePaymentComponent.tsx +109 -0
  307. package/src/components/UNWirePaymentComponent/UNWirePaymentComponent.utils.ts +23 -0
  308. package/src/components/UNWirePaymentComponent/index.ts +1 -0
  309. package/src/components/index.ts +2 -0
  310. package/src/helpers/BottomSheet/BottomSheet.tsx +3 -4
  311. package/src/hooks/useIsJailbrokeDevice.ts +17 -0
  312. package/src/hooks/useSnapshotProtection.ts +25 -0
  313. package/src/messages/webMessages/fundAccountPaymentMessage.ts +8 -0
  314. package/src/messages/webMessages/index.ts +2 -0
  315. package/src/messages/webMessages/onLoadMessage.ts +13 -2
  316. package/src/messages/webMessages/unitMessages.ts +1 -1
  317. package/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.tsx +12 -11
  318. package/src/nativeComponents/UNBaseView/UNBaseView.tsx +50 -0
  319. package/src/nativeComponents/UNBaseView/index.ts +1 -0
  320. package/src/nativeModulesHelpers/UNSanpshotProtectionHelper/UNSnapshotProtectionHelper.ts +21 -0
  321. package/src/nativeModulesHelpers/UNSecurityHelper.ts +35 -0
  322. package/src/networking/common/UNNetworkConstants.ts +2 -1
  323. package/src/types/internal/webComponent.types.ts +2 -0
  324. package/src/types/shared/achCredit.types.ts +3 -3
  325. package/src/types/shared/bookPayment.types.ts +2 -2
  326. package/src/types/shared/checkDeposit.types.ts +1 -2
  327. package/src/types/shared/env.types.ts +2 -1
  328. package/src/types/shared/fundAccountPayment.types.ts +38 -0
  329. package/src/types/shared/index.ts +2 -0
  330. package/src/types/shared/payments.types.ts +33 -1
  331. package/src/types/shared/securitySettings.ts +8 -0
  332. package/src/types/shared/types.ts +9 -4
  333. package/src/types/shared/wirePayment.types.ts +43 -0
  334. package/src/unitSdkManager/UnitSdk.constants.ts +6 -0
  335. package/src/unitSdkManager/UnitSdkManager.ts +37 -4
  336. package/src/unitSdkManager/UnitSdkManager.utils.internal.ts +3 -0
  337. package/src/unitSdkManager/unitHelpersManager/UnitHelpersManager.ts +20 -0
  338. package/src/utils/onLoadMessages.utils.ts +3 -0
  339. package/src/webComponent/WebComponent.tsx +4 -3
  340. package/src/webComponent/WebComponent.utils.ts +2 -2
  341. package/src/webComponent/html.ts +1 -0
  342. package/lib/commonjs/utils/SDKInfo.js +0 -13
  343. package/lib/commonjs/utils/SDKInfo.js.map +0 -1
  344. package/lib/module/utils/SDKInfo.js +0 -5
  345. package/lib/module/utils/SDKInfo.js.map +0 -1
  346. package/lib/typescript/src/utils/SDKInfo.d.ts +0 -2
  347. package/lib/typescript/src/utils/SDKInfo.d.ts.map +0 -1
  348. package/src/utils/SDKInfo.ts +0 -5
@@ -14,17 +14,17 @@ export type UNLimits = {
14
14
  monthlyPurchase?: string | number,
15
15
  }
16
16
 
17
- type UNData = {
17
+ export type UNRelationshipData = {
18
18
  type: string,
19
- id: string
19
+ id: number | string
20
20
  }
21
21
 
22
22
  export type UNRelationship = {
23
23
  data:
24
24
  | null
25
25
  | []
26
- | UNData
27
- | UNData[]
26
+ | UNRelationshipData
27
+ | UNRelationshipData[]
28
28
  }
29
29
 
30
30
  export type UNFullName = {
@@ -32,4 +32,9 @@ export type UNFullName = {
32
32
  last: string
33
33
  }
34
34
 
35
+ export enum UNDirection {
36
+ Debit = 'Debit',
37
+ Credit = 'Credit',
38
+ }
39
+
35
40
  export type UNTags = Record<string, string> // TODO: specify Tag type
@@ -0,0 +1,43 @@
1
+ import { UNPaymentStatus, UNPaymentType } from './payments.types';
2
+ import { UNRelationship, UNTags } from './types';
3
+
4
+ export interface WirePaymentCreatedEvent {
5
+ data: UNWirePaymentData
6
+ }
7
+
8
+ export type UNWirePaymentData = {
9
+ type: UNPaymentType.WirePayment
10
+ id: string
11
+ attributes: {
12
+ createdAt: string | Date
13
+ amount: number
14
+ direction: 'Debit' | 'Credit'
15
+ description: string
16
+ status: UNPaymentStatus
17
+ reason?: string
18
+ tags?: UNTags
19
+ counterparty: UNWireCounterparty
20
+ }
21
+ relationships: {
22
+ account: UNRelationship
23
+ customer?: UNRelationship
24
+ customers?: UNRelationship
25
+ transaction?: UNRelationship
26
+ counterpartyAccount?: UNRelationship
27
+ org?: UNRelationship
28
+ }
29
+ }
30
+
31
+ type UNWireCounterparty = {
32
+ name: string
33
+ routingNumber: string
34
+ accountNumber: string
35
+ address: {
36
+ street: string
37
+ street2?: string
38
+ city: string
39
+ state?: string
40
+ postalCode: string
41
+ country?: string
42
+ }
43
+ }
@@ -1,4 +1,5 @@
1
1
  import { UNVersioningStrategyType, UNWebVersioningStrategy } from '../types/shared';
2
+ import { UNSecuritySettings, UNSnapshotProtectionStrategy } from '../types/shared/securitySettings';
2
3
 
3
4
  const WEB_SDK_RECOMMENDED_STRATEGY: UNWebVersioningStrategy = {
4
5
  type: UNVersioningStrategyType.upToNextMinor,
@@ -6,6 +7,11 @@ const WEB_SDK_RECOMMENDED_STRATEGY: UNWebVersioningStrategy = {
6
7
  minor: 8,
7
8
  };
8
9
 
10
+ const DEFAULT_SECURITY_SETTINGS: UNSecuritySettings = {
11
+ snapshotProtectionStrategy: UNSnapshotProtectionStrategy.FullProtection
12
+ };
13
+
9
14
  export const UNSDKConstants = {
10
15
  webSDKRecommendedStrategy: WEB_SDK_RECOMMENDED_STRATEGY,
16
+ securitySettings: DEFAULT_SECURITY_SETTINGS
11
17
  };
@@ -11,33 +11,58 @@ import { UNEnvironment } from '../types/shared/env.types';
11
11
  import { UserDataKeys } from '../types/internal/unitStore.types';
12
12
  import UNStoreManagerHelper from '../nativeModulesHelpers/UNStoreManagerHelper/UNStoreManagerHelper';
13
13
  import { UnitHelpersManager } from './unitHelpersManager/UnitHelpersManager';
14
+ import UNSecurityManagerHelper from '../nativeModulesHelpers/UNSecurityHelper';
15
+ import { UNSecuritySettings, UNSnapshotProtectionStrategy } from '../types/shared/securitySettings';
16
+ import UNSnapshotProtectionHelper from '../nativeModulesHelpers/UNSanpshotProtectionHelper/UNSnapshotProtectionHelper';
14
17
 
15
18
  export class UnitSDK {
16
19
  public static ui: UnitUiManager;
17
20
  public static helpers: UnitHelpersManager;
21
+
18
22
  protected static env?: UNEnvironment;
19
23
  protected static webVersioningStrategy: UNWebVersioningStrategy;
24
+ protected static securitySettings: UNSecuritySettings = UNSDKConstants.securitySettings;
20
25
  protected static customerToken?: string;
21
26
  protected static fonts?: UNFonts;
22
27
  protected static signedNonce?: string;
23
28
  protected static pushProvisionModule?: typeof NativeModules;
29
+ protected static sdkVersion = '1.14.0';
24
30
 
25
- public static init = async (env: UNEnvironment, theme?: string, language?: string, fonts?: UNFonts, webVersioningStrategy: UNWebVersioningStrategy = UNSDKConstants.webSDKRecommendedStrategy) => {
31
+ public static init = async (
32
+ env: UNEnvironment,
33
+ theme?: string,
34
+ language?: string,
35
+ fonts?: UNFonts,
36
+ webVersioningStrategy: UNWebVersioningStrategy = UNSDKConstants.webSDKRecommendedStrategy,
37
+ securitySettings: UNSecuritySettings = UNSDKConstants.securitySettings
38
+ ) => {
26
39
  try {
27
- this.env = env;
28
40
  this.webVersioningStrategy = webVersioningStrategy;
41
+ this.ui = new UnitUiManager();
42
+ this.helpers = new UnitHelpersManager();
43
+
44
+ const isJailbroke = await UNSecurityManagerHelper.isDeviceJailbroke();
45
+ if (isJailbroke) {
46
+ throw Error('Device is jailbroke');
47
+ }
48
+ this.env = env;
49
+ this.securitySettings = securitySettings;
29
50
  this.fonts = fonts;
30
51
  store.dispatch(setTheme(theme));
31
52
  store.dispatch(setLanguage(language));
32
- this.ui = new UnitUiManager();
33
- this.helpers = new UnitHelpersManager();
34
53
  warnClientIfNeeded(this.webVersioningStrategy);
54
+ const shouldProtectFromSnapshot = securitySettings.snapshotProtectionStrategy != UNSnapshotProtectionStrategy.None;
55
+ UNSnapshotProtectionHelper.setIosSecurity(shouldProtectFromSnapshot, 'light');
35
56
  await fetchUnitScript();
36
57
  } catch (e) {
37
58
  console.log(e);
38
59
  }
39
60
  };
40
61
 
62
+ public static isInitialized = () => {
63
+ return this.env != undefined;
64
+ };
65
+
41
66
  public static setPushProvisioningModule = (pushProvisionModule: typeof NativeModules) => {
42
67
  this.pushProvisionModule = pushProvisionModule;
43
68
  };
@@ -46,6 +71,10 @@ export class UnitSDK {
46
71
  return this.pushProvisionModule;
47
72
  };
48
73
 
74
+ public static getSecuritySettings = () => {
75
+ return this.securitySettings;
76
+ };
77
+
49
78
  /**
50
79
  * @deprecated - Unit SDK is managing the signedNonce, no need to provide it
51
80
  */
@@ -80,6 +109,10 @@ export class UnitSDK {
80
109
  return this.customerToken;
81
110
  };
82
111
 
112
+ public static getSdkVersion = () => {
113
+ return this.sdkVersion;
114
+ };
115
+
83
116
  public static cleanUserData = () => {
84
117
  UNStoreManagerHelper.cleanValue(UserDataKeys.unitCustomerToken);
85
118
  UNStoreManagerHelper.cleanValue(UserDataKeys.unitVerifiedToken);
@@ -11,5 +11,8 @@ export const getUnitScriptUrl = (env: UNEnvironment, webVersioningStrategy: UNWe
11
11
 
12
12
  case UNEnvironment.production:
13
13
  return `https://ui.unit.co/release/${webSdkVersionString}/components.js`;
14
+
15
+ case UNEnvironment.mock:
16
+ return 'https://unit-white-label-ui.netlify.app/assets/components-mock.js';
14
17
  }
15
18
  };
@@ -1,5 +1,6 @@
1
1
  export class UnitHelpersManager {
2
2
  redirectUri?: string;
3
+ unitSessionId?: string;
3
4
 
4
5
  constructor() {
5
6
  this.init();
@@ -7,5 +8,24 @@ export class UnitHelpersManager {
7
8
 
8
9
  private init = () => {
9
10
  this.redirectUri = undefined;
11
+ this.unitSessionId = this.generateUUID();
12
+ };
13
+
14
+ private generateUUID = () => {
15
+ let d = new Date().getTime(); //Timestamp
16
+ let d2 = (typeof performance !== 'undefined' && performance.now && performance.now() * 1000) || 0; //Time in microseconds since page-load or 0 if unsupported
17
+ return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
18
+ let r = Math.random() * 16; //random number between 0 and 16
19
+ if (d > 0) {
20
+ //Use timestamp until depleted
21
+ r = (d + r) % 16 | 0;
22
+ d = Math.floor(d / 16);
23
+ } else {
24
+ //Use microseconds since page-load if supported
25
+ r = (d2 + r) % 16 | 0;
26
+ d2 = Math.floor(d2 / 16);
27
+ }
28
+ return (c === 'x' ? r : (r & 0x3) | 0x8).toString(16);
29
+ });
10
30
  };
11
31
  }
@@ -0,0 +1,3 @@
1
+ export function ensureArray<T>(item: T | [T]): [T] {
2
+ return Array.isArray(item) ? item : [item];
3
+ }
@@ -95,13 +95,14 @@ export const WebComponent = React.forwardRef<WebView, WebComponentProps>(functio
95
95
 
96
96
  const fontFaces = getFontFacesString(UnitSDK.getFonts());
97
97
 
98
- const windowInfoParams = `window.UnitMobileSDKConfig['info'] = ${JSON.stringify(infoParams)}`;
98
+ const windowInfoParams = `window.UnitMobileSDKConfig['info'] = ${JSON.stringify(infoParams)};`;
99
99
  const plaidRedirectUriParam = (Platform.OS == 'ios' && UnitSDK.helpers.redirectUri) ? `window.UnitMobileSDKConfig['plaidRedirectUri'] = '${UnitSDK.helpers.redirectUri}/plaid';` : '';
100
+ const unitSessionIdParam = `window.UnitSessionStore.unitSessionId = '${UnitSDK.helpers.unitSessionId}';`;
100
101
 
101
102
  const unitVerifiedCustomerToken = await UNStoreManagerHelper.getValue(UserDataKeys.unitVerifiedToken);
102
- const windowVerifiedCustomerToken = unitVerifiedCustomerToken ? `window.UnitStore['unitVerifiedCustomerToken'] = '${unitVerifiedCustomerToken}'` : '';
103
+ const windowVerifiedCustomerToken = unitVerifiedCustomerToken ? `window.UnitStore['unitVerifiedCustomerToken'] = '${unitVerifiedCustomerToken}';` : '';
103
104
 
104
- const windowParams = `${windowInfoParams}; ${plaidRedirectUriParam} ${windowVerifiedCustomerToken}; ${props.windowParams || ''}`;
105
+ const windowParams = `${windowInfoParams} ${unitSessionIdParam} ${plaidRedirectUriParam} ${windowVerifiedCustomerToken} ${props.windowParams || ''}`;
105
106
 
106
107
  let newHtml = html.replace(HTML_PLACEHOLDER.BODY, getHtmlBody(props.type.valueOf(), componentParams, props.presentationMode));
107
108
  newHtml = newHtml.replace(HTML_PLACEHOLDER.FONT_FACES, fontFaces);
@@ -1,8 +1,8 @@
1
1
  import axios from 'axios';
2
2
  import { Share, NativeModules, Platform } from 'react-native';
3
- import * as SDKInfo from '../utils/SDKInfo';
4
3
  import * as AppInfo from '../utils/AppInfo';
5
4
  import type { RequestDownloadEvent } from '../messages/webMessages/unitMessages';
5
+ import { UnitSDK } from '../unitSdkManager/UnitSdkManager';
6
6
  const { RNShareFile } = NativeModules;
7
7
 
8
8
  export const getInfoParams = async () => {
@@ -11,7 +11,7 @@ export const getInfoParams = async () => {
11
11
  const appIdentifier = await AppInfo.getAppIdentifier();
12
12
 
13
13
  const infoParams: { [key: string]: string } = {};
14
- infoParams['sdkVersion'] = SDKInfo.getSDKVersion();
14
+ infoParams['sdkVersion'] = UnitSDK.getSdkVersion();
15
15
  infoParams['sdkPlatform'] = 'React Native';
16
16
  infoParams['os'] = Platform.OS == 'android' ? 'Android' : 'iOS';
17
17
  infoParams['hostedAppVersion'] = appVersion;
@@ -30,6 +30,7 @@ const htmlText = `
30
30
  <script>
31
31
  window.UnitMobileSDK = true
32
32
  window.UnitStore = {}
33
+ window.UnitSessionStore = {}
33
34
  window.UnitMobileSDKConfig = {
34
35
  os: "${Platform.OS}",
35
36
  walletName: "${Platform.OS === 'ios' ? 'Apple' : 'Google'}",
@@ -1,13 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.getSDKVersion = void 0;
7
- var _package = _interopRequireDefault(require("../../package.json"));
8
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
- const getSDKVersion = () => {
10
- return _package.default.version;
11
- };
12
- exports.getSDKVersion = getSDKVersion;
13
- //# sourceMappingURL=SDKInfo.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_package","_interopRequireDefault","require","obj","__esModule","default","getSDKVersion","Package","version","exports"],"sourceRoot":"../../../src","sources":["utils/SDKInfo.ts"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAyC,SAAAD,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAElC,MAAMG,aAAa,GAAGA,CAAA,KAAM;EACjC,OAAOC,gBAAO,CAACC,OAAO;AACxB,CAAC;AAACC,OAAA,CAAAH,aAAA,GAAAA,aAAA"}
@@ -1,5 +0,0 @@
1
- import Package from '../../package.json';
2
- export const getSDKVersion = () => {
3
- return Package.version;
4
- };
5
- //# sourceMappingURL=SDKInfo.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["Package","getSDKVersion","version"],"sourceRoot":"../../../src","sources":["utils/SDKInfo.ts"],"mappings":"AAAA,OAAOA,OAAO,MAAM,oBAAoB;AAExC,OAAO,MAAMC,aAAa,GAAGA,CAAA,KAAM;EACjC,OAAOD,OAAO,CAACE,OAAO;AACxB,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const getSDKVersion: () => string;
2
- //# sourceMappingURL=SDKInfo.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SDKInfo.d.ts","sourceRoot":"","sources":["../../../../src/utils/SDKInfo.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,cAEzB,CAAC"}
@@ -1,5 +0,0 @@
1
- import Package from '../../package.json';
2
-
3
- export const getSDKVersion = () => {
4
- return Package.version;
5
- };