react-native-unit-components 1.9.1 → 1.11.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 (828) hide show
  1. package/android/build.gradle +36 -88
  2. package/android/gradle.properties +2 -2
  3. package/android/src/main/AndroidManifestNew.xml +14 -0
  4. package/android/src/main/java/com/unitreactnativecomponents/UnitAddToWalletButtonViewManager.kt +2 -2
  5. package/android/src/main/java/com/unitreactnativecomponents/UnitReactNativeComponentsEvent.kt +3 -3
  6. package/android/src/main/java/com/unitreactnativecomponents/UnitReactNativeComponentsPackage.kt +9 -12
  7. package/android/src/main/java/com/unitreactnativecomponents/appInfo/UNAppInfoModule.kt +59 -0
  8. package/android/src/main/java/com/unitreactnativecomponents/extensions/ContextExtensions.kt +35 -0
  9. package/android/src/main/java/com/unitreactnativecomponents/visapresentation/UNGooglePayView.kt +147 -152
  10. package/ios/Extensions/Bundle+Extensions.swift +23 -0
  11. package/ios/UNAppInfo/IOSAppInfo.swift +47 -0
  12. package/ios/UNAppInfo/UNAppInfoExportModule.m +5 -2
  13. package/ios/UnitReactNativeComponents.xcodeproj/project.pbxproj +34 -0
  14. package/lib/commonjs/assets/images/index.js.map +1 -1
  15. package/lib/commonjs/components/UNACHCreditComponent/UNACHCreditComponent.js +15 -6
  16. package/lib/commonjs/components/UNACHCreditComponent/UNACHCreditComponent.js.map +1 -1
  17. package/lib/commonjs/components/UNACHCreditComponent/UNACHCreditComponent.utils.js +13 -2
  18. package/lib/commonjs/components/UNACHCreditComponent/UNACHCreditComponent.utils.js.map +1 -1
  19. package/lib/commonjs/components/UNACHCreditComponent/index.js +2 -2
  20. package/lib/commonjs/components/UNACHCreditComponent/index.js.map +1 -1
  21. package/lib/commonjs/components/UNACHDebitComponent/UNACHDebitComponent.js +15 -6
  22. package/lib/commonjs/components/UNACHDebitComponent/UNACHDebitComponent.js.map +1 -1
  23. package/lib/commonjs/components/UNACHDebitComponent/UNACHDebitComponent.utils.js +12 -2
  24. package/lib/commonjs/components/UNACHDebitComponent/UNACHDebitComponent.utils.js.map +1 -1
  25. package/lib/commonjs/components/UNACHDebitComponent/index.js +2 -2
  26. package/lib/commonjs/components/UNACHDebitComponent/index.js.map +1 -1
  27. package/lib/commonjs/components/UNAccountComponent/UNAccountComponent.js +41 -21
  28. package/lib/commonjs/components/UNAccountComponent/UNAccountComponent.js.map +1 -1
  29. package/lib/commonjs/components/UNAccountComponent/UNAccountComponent.utils.js +9 -8
  30. package/lib/commonjs/components/UNAccountComponent/UNAccountComponent.utils.js.map +1 -1
  31. package/lib/commonjs/components/UNAccountComponent/index.js +2 -2
  32. package/lib/commonjs/components/UNAccountComponent/index.js.map +1 -1
  33. package/lib/commonjs/components/UNActivityComponent/UNActivityComponent.js +28 -15
  34. package/lib/commonjs/components/UNActivityComponent/UNActivityComponent.js.map +1 -1
  35. package/lib/commonjs/components/UNActivityComponent/UNActivityComponent.utils.js +8 -2
  36. package/lib/commonjs/components/UNActivityComponent/UNActivityComponent.utils.js.map +1 -1
  37. package/lib/commonjs/components/UNActivityComponent/index.js +8 -2
  38. package/lib/commonjs/components/UNActivityComponent/index.js.map +1 -1
  39. package/lib/commonjs/components/UNBookPaymentComponent/UNBookPaymentComponent.js +13 -4
  40. package/lib/commonjs/components/UNBookPaymentComponent/UNBookPaymentComponent.js.map +1 -1
  41. package/lib/commonjs/components/UNBookPaymentComponent/UNBookPaymentComponent.utils.js +11 -4
  42. package/lib/commonjs/components/UNBookPaymentComponent/UNBookPaymentComponent.utils.js.map +1 -1
  43. package/lib/commonjs/components/UNBookPaymentComponent/index.js +2 -2
  44. package/lib/commonjs/components/UNBookPaymentComponent/index.js.map +1 -1
  45. package/lib/commonjs/components/UNBottomSheetComponent/UNBottomSheetComponent.constants.js +13 -3
  46. package/lib/commonjs/components/UNBottomSheetComponent/UNBottomSheetComponent.constants.js.map +1 -1
  47. package/lib/commonjs/components/UNBottomSheetComponent/UNBottomSheetComponent.js +156 -246
  48. package/lib/commonjs/components/UNBottomSheetComponent/UNBottomSheetComponent.js.map +1 -1
  49. package/lib/commonjs/components/UNBottomSheetComponent/UNBottomSheetComponent.styles.js.map +1 -1
  50. package/lib/commonjs/components/UNBottomSheetComponent/UNBottomSheetComponent.utils.js +13 -16
  51. package/lib/commonjs/components/UNBottomSheetComponent/UNBottomSheetComponent.utils.js.map +1 -1
  52. package/lib/commonjs/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/UNBottomSheetNativeComponent.js +50 -0
  53. package/lib/commonjs/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/UNBottomSheetNativeComponent.js.map +1 -0
  54. package/lib/commonjs/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/index.js +17 -0
  55. package/lib/commonjs/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/index.js.map +1 -0
  56. package/lib/commonjs/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/UNBottomSheetSlotComponent.js +166 -0
  57. package/lib/commonjs/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/UNBottomSheetSlotComponent.js.map +1 -0
  58. package/lib/commonjs/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/index.js +17 -0
  59. package/lib/commonjs/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/index.js.map +1 -0
  60. package/lib/commonjs/components/UNBottomSheetComponent/components/index.js +15 -4
  61. package/lib/commonjs/components/UNBottomSheetComponent/components/index.js.map +1 -1
  62. package/lib/commonjs/components/UNBottomSheetComponent/index.js.map +1 -1
  63. package/lib/commonjs/components/UNCardComponent/UNCardComponent.js +14 -12
  64. package/lib/commonjs/components/UNCardComponent/UNCardComponent.js.map +1 -1
  65. package/lib/commonjs/components/UNCardComponent/UNCardComponent.utils.js +7 -5
  66. package/lib/commonjs/components/UNCardComponent/UNCardComponent.utils.js.map +1 -1
  67. package/lib/commonjs/components/UNCardComponent/index.js +2 -2
  68. package/lib/commonjs/components/UNCardComponent/index.js.map +1 -1
  69. package/lib/commonjs/components/UNCheckDepositComponent/UNCheckDepositComponent.js +14 -4
  70. package/lib/commonjs/components/UNCheckDepositComponent/UNCheckDepositComponent.js.map +1 -1
  71. package/lib/commonjs/components/UNCheckDepositComponent/UNCheckDepositComponent.utils.js +7 -1
  72. package/lib/commonjs/components/UNCheckDepositComponent/UNCheckDepositComponent.utils.js.map +1 -1
  73. package/lib/commonjs/components/UNCheckDepositComponent/index.js +2 -2
  74. package/lib/commonjs/components/UNCheckDepositComponent/index.js.map +1 -1
  75. package/lib/commonjs/components/UNMultipleCardsComponent/UNMultipleCardsComponent.js +85 -0
  76. package/lib/commonjs/components/UNMultipleCardsComponent/UNMultipleCardsComponent.js.map +1 -0
  77. package/lib/commonjs/components/UNMultipleCardsComponent/UNMultipleCardsComponent.utils.js +42 -0
  78. package/lib/commonjs/components/UNMultipleCardsComponent/UNMultipleCardsComponent.utils.js.map +1 -0
  79. package/lib/commonjs/components/UNMultipleCardsComponent/index.js +21 -0
  80. package/lib/commonjs/components/UNMultipleCardsComponent/index.js.map +1 -0
  81. package/lib/commonjs/components/UNNextRepaymentComponent/UNNextRepaymentComponent.js +61 -0
  82. package/lib/commonjs/components/UNNextRepaymentComponent/UNNextRepaymentComponent.js.map +1 -0
  83. package/lib/commonjs/components/UNNextRepaymentComponent/UNNextRepaymentComponent.utils.js +15 -0
  84. package/lib/commonjs/components/UNNextRepaymentComponent/UNNextRepaymentComponent.utils.js.map +1 -0
  85. package/lib/commonjs/components/UNNextRepaymentComponent/index.js +21 -0
  86. package/lib/commonjs/components/UNNextRepaymentComponent/index.js.map +1 -0
  87. package/lib/commonjs/components/UNProgramDetailsComponent/UNProgramDetailsComponent.js +61 -0
  88. package/lib/commonjs/components/UNProgramDetailsComponent/UNProgramDetailsComponent.js.map +1 -0
  89. package/lib/commonjs/components/UNProgramDetailsComponent/UNProgramDetailsComponent.utils.js +15 -0
  90. package/lib/commonjs/components/UNProgramDetailsComponent/UNProgramDetailsComponent.utils.js.map +1 -0
  91. package/lib/commonjs/components/UNProgramDetailsComponent/index.js +21 -0
  92. package/lib/commonjs/components/UNProgramDetailsComponent/index.js.map +1 -0
  93. package/lib/commonjs/components/index.js +33 -0
  94. package/lib/commonjs/components/index.js.map +1 -1
  95. package/lib/commonjs/custom.d.js.map +1 -1
  96. package/lib/commonjs/flows/UNFlows.js +1 -1
  97. package/lib/commonjs/flows/UNFlows.js.map +1 -1
  98. package/lib/commonjs/flows/card/UNCardFlows.js +27 -23
  99. package/lib/commonjs/flows/card/UNCardFlows.js.map +1 -1
  100. package/lib/commonjs/helpers/BottomSheet/BottomSheet.js +26 -29
  101. package/lib/commonjs/helpers/BottomSheet/BottomSheet.js.map +1 -1
  102. package/lib/commonjs/helpers/BottomSheet/BottomSheet.styles.js +0 -2
  103. package/lib/commonjs/helpers/BottomSheet/BottomSheet.styles.js.map +1 -1
  104. package/lib/commonjs/helpers/pushProvisioningService/helpers.js +34 -0
  105. package/lib/commonjs/helpers/pushProvisioningService/helpers.js.map +1 -0
  106. package/lib/commonjs/helpers/pushProvisioningService/hooks/useCardWallet.js +31 -2
  107. package/lib/commonjs/helpers/pushProvisioningService/hooks/useCardWallet.js.map +1 -1
  108. package/lib/commonjs/helpers/pushProvisioningService/hooks/useLaunchInitialize.js.map +1 -1
  109. package/lib/commonjs/helpers/pushProvisioningService/startProvisioning.js +3 -3
  110. package/lib/commonjs/helpers/pushProvisioningService/startProvisioning.js.map +1 -1
  111. package/lib/commonjs/helpers/pushProvisioningService/types.js +40 -0
  112. package/lib/commonjs/helpers/pushProvisioningService/types.js.map +1 -0
  113. package/lib/commonjs/helpers/store/helpers.js.map +1 -1
  114. package/lib/commonjs/hooks/useAppStateListener.js.map +1 -1
  115. package/lib/commonjs/hooks/useListenerToEvent.js +26 -0
  116. package/lib/commonjs/hooks/useListenerToEvent.js.map +1 -0
  117. package/lib/commonjs/index.js.map +1 -1
  118. package/lib/commonjs/messages/nativeMessages/bottomSheetMessage.js +7 -9
  119. package/lib/commonjs/messages/nativeMessages/bottomSheetMessage.js.map +1 -1
  120. package/lib/commonjs/messages/nativeMessages/cardMessage.js +3 -4
  121. package/lib/commonjs/messages/nativeMessages/cardMessage.js.map +1 -1
  122. package/lib/commonjs/messages/nativeMessages/index.js.map +1 -1
  123. package/lib/commonjs/messages/nativeMessages/sdkMessage.js +3 -4
  124. package/lib/commonjs/messages/nativeMessages/sdkMessage.js.map +1 -1
  125. package/lib/commonjs/messages/webMessages/accountMessage.js +3 -4
  126. package/lib/commonjs/messages/webMessages/accountMessage.js.map +1 -1
  127. package/lib/commonjs/messages/webMessages/achCreditMessage.js.map +1 -1
  128. package/lib/commonjs/messages/webMessages/activityMessage.js +3 -4
  129. package/lib/commonjs/messages/webMessages/activityMessage.js.map +1 -1
  130. package/lib/commonjs/messages/webMessages/bookPaymentMessage.js.map +1 -1
  131. package/lib/commonjs/messages/webMessages/cardMessage.js +3 -4
  132. package/lib/commonjs/messages/webMessages/cardMessage.js.map +1 -1
  133. package/lib/commonjs/messages/webMessages/checkMessage.js +3 -4
  134. package/lib/commonjs/messages/webMessages/checkMessage.js.map +1 -1
  135. package/lib/commonjs/messages/webMessages/index.js.map +1 -1
  136. package/lib/commonjs/messages/webMessages/multipleCardsMessage.js +11 -0
  137. package/lib/commonjs/messages/webMessages/multipleCardsMessage.js.map +1 -0
  138. package/lib/commonjs/messages/webMessages/onLoadMessage.js +6 -5
  139. package/lib/commonjs/messages/webMessages/onLoadMessage.js.map +1 -1
  140. package/lib/commonjs/messages/webMessages/pageMessage.js +3 -4
  141. package/lib/commonjs/messages/webMessages/pageMessage.js.map +1 -1
  142. package/lib/commonjs/messages/webMessages/paymentsMessage.js +5 -4
  143. package/lib/commonjs/messages/webMessages/paymentsMessage.js.map +1 -1
  144. package/lib/commonjs/messages/webMessages/unitMessages.js +9 -6
  145. package/lib/commonjs/messages/webMessages/unitMessages.js.map +1 -1
  146. package/lib/commonjs/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletBottomSheetItem.styles.js.map +1 -0
  147. package/lib/commonjs/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.js +79 -0
  148. package/lib/commonjs/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.js.map +1 -0
  149. package/lib/commonjs/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.utils.js +20 -0
  150. package/lib/commonjs/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.utils.js.map +1 -0
  151. package/lib/commonjs/nativeComponents/UNAddToWallet/UNAddToWalletComponent/index.js +14 -0
  152. package/lib/commonjs/nativeComponents/UNAddToWallet/UNAddToWalletComponent/index.js.map +1 -0
  153. package/lib/commonjs/{nativeComponent → nativeComponents/UNAddToWallet}/UnitAddToWalletButton.js +1 -2
  154. package/lib/commonjs/nativeComponents/UNAddToWallet/UnitAddToWalletButton.js.map +1 -0
  155. package/lib/commonjs/networking/common/UNNetworkConstants.js +2 -4
  156. package/lib/commonjs/networking/common/UNNetworkConstants.js.map +1 -1
  157. package/lib/commonjs/networking/requests/UNWalletPayloadRequest.js +27 -3
  158. package/lib/commonjs/networking/requests/UNWalletPayloadRequest.js.map +1 -1
  159. package/lib/commonjs/scripts/html/bodyHtml.js +1 -2
  160. package/lib/commonjs/scripts/html/bodyHtml.js.map +1 -1
  161. package/lib/commonjs/scripts/html/bodyScript.js +46 -32
  162. package/lib/commonjs/scripts/html/bodyScript.js.map +1 -1
  163. package/lib/commonjs/scripts/html/fontFaces.js +2 -3
  164. package/lib/commonjs/scripts/html/fontFaces.js.map +1 -1
  165. package/lib/commonjs/slices/BottomSheetSlice.js +74 -0
  166. package/lib/commonjs/slices/BottomSheetSlice.js.map +1 -0
  167. package/lib/commonjs/slices/ConfigurationSlice.js +35 -0
  168. package/lib/commonjs/slices/ConfigurationSlice.js.map +1 -0
  169. package/lib/commonjs/slices/SharedEventsSlice.js +29 -0
  170. package/lib/commonjs/slices/SharedEventsSlice.js.map +1 -0
  171. package/lib/commonjs/slices/pushProvisioningSlice.js +1 -2
  172. package/lib/commonjs/slices/pushProvisioningSlice.js.map +1 -1
  173. package/lib/commonjs/store/index.js.map +1 -1
  174. package/lib/commonjs/store/store.js +8 -3
  175. package/lib/commonjs/store/store.js.map +1 -1
  176. package/lib/commonjs/styles/fonts.js.map +1 -1
  177. package/lib/commonjs/styles/variables.js +5 -3
  178. package/lib/commonjs/styles/variables.js.map +1 -1
  179. package/lib/commonjs/types/internal/bottomSheet.types.js +22 -7
  180. package/lib/commonjs/types/internal/bottomSheet.types.js.map +1 -1
  181. package/lib/commonjs/types/internal/errorHelpers.js +20 -0
  182. package/lib/commonjs/types/internal/errorHelpers.js.map +1 -0
  183. package/lib/commonjs/types/internal/webComponent.types.js +9 -8
  184. package/lib/commonjs/types/internal/webComponent.types.js.map +1 -1
  185. package/lib/commonjs/types/shared/account.types.js +19 -16
  186. package/lib/commonjs/types/shared/account.types.js.map +1 -1
  187. package/lib/commonjs/types/shared/achCredit.types.js.map +1 -1
  188. package/lib/commonjs/types/shared/activity.types.js +6 -0
  189. package/lib/commonjs/types/shared/activity.types.js.map +1 -1
  190. package/lib/commonjs/types/shared/authorization.types.js.map +1 -1
  191. package/lib/commonjs/types/shared/bookPayment.types.js.map +1 -1
  192. package/lib/commonjs/types/shared/card.types.js +13 -5
  193. package/lib/commonjs/types/shared/card.types.js.map +1 -1
  194. package/lib/commonjs/types/shared/checkDeposit.types.js +3 -4
  195. package/lib/commonjs/types/shared/checkDeposit.types.js.map +1 -1
  196. package/lib/commonjs/types/shared/error.types.js +28 -0
  197. package/lib/commonjs/types/shared/error.types.js.map +1 -0
  198. package/lib/commonjs/types/shared/fonts.types.js +3 -4
  199. package/lib/commonjs/types/shared/fonts.types.js.map +1 -1
  200. package/lib/commonjs/types/shared/index.js +22 -0
  201. package/lib/commonjs/types/shared/index.js.map +1 -1
  202. package/lib/commonjs/types/shared/multipleCards.types.js +12 -0
  203. package/lib/commonjs/types/shared/multipleCards.types.js.map +1 -0
  204. package/lib/commonjs/types/shared/onLoadResponse.types.js +4 -0
  205. package/lib/commonjs/types/shared/onLoadResponse.types.js.map +1 -1
  206. package/lib/commonjs/types/shared/payments.types.js +9 -5
  207. package/lib/commonjs/types/shared/payments.types.js.map +1 -1
  208. package/lib/commonjs/types/shared/repayment.types.js +2 -0
  209. package/lib/commonjs/types/shared/repayment.types.js.map +1 -0
  210. package/lib/commonjs/types/shared/transactions.types.js +6 -8
  211. package/lib/commonjs/types/shared/transactions.types.js.map +1 -1
  212. package/lib/commonjs/types/shared/types.js.map +1 -1
  213. package/lib/commonjs/types/shared/versioning.types.js +4 -4
  214. package/lib/commonjs/types/shared/versioning.types.js.map +1 -1
  215. package/lib/commonjs/types/shared/wallet.types.js +9 -12
  216. package/lib/commonjs/types/shared/wallet.types.js.map +1 -1
  217. package/lib/commonjs/unitSdkManager/UnitSdk.api.js +6 -13
  218. package/lib/commonjs/unitSdkManager/UnitSdk.api.js.map +1 -1
  219. package/lib/commonjs/unitSdkManager/UnitSdk.constants.js +2 -3
  220. package/lib/commonjs/unitSdkManager/UnitSdk.constants.js.map +1 -1
  221. package/lib/commonjs/unitSdkManager/UnitSdkManager.js +56 -75
  222. package/lib/commonjs/unitSdkManager/UnitSdkManager.js.map +1 -1
  223. package/lib/commonjs/unitSdkManager/UnitSdkManager.utils.internal.js.map +1 -1
  224. package/lib/commonjs/unitSdkManager/unitUiManager/unitUiManager.js +4 -7
  225. package/lib/commonjs/unitSdkManager/unitUiManager/unitUiManager.js.map +1 -1
  226. package/lib/commonjs/utils/AppInfo.js +49 -0
  227. package/lib/commonjs/utils/AppInfo.js.map +1 -0
  228. package/lib/commonjs/utils/SDKInfo.js +13 -0
  229. package/lib/commonjs/utils/SDKInfo.js.map +1 -0
  230. package/lib/commonjs/utils/webVersioningStrategy.utils.js +7 -0
  231. package/lib/commonjs/utils/webVersioningStrategy.utils.js.map +1 -1
  232. package/lib/commonjs/webComponent/WebComponent.js +40 -36
  233. package/lib/commonjs/webComponent/WebComponent.js.map +1 -1
  234. package/lib/commonjs/webComponent/WebComponent.utils.js +19 -1
  235. package/lib/commonjs/webComponent/WebComponent.utils.js.map +1 -1
  236. package/lib/commonjs/webComponent/html.js +2 -4
  237. package/lib/commonjs/webComponent/html.js.map +1 -1
  238. package/lib/module/assets/images/index.js.map +1 -1
  239. package/lib/module/components/UNACHCreditComponent/UNACHCreditComponent.js +12 -2
  240. package/lib/module/components/UNACHCreditComponent/UNACHCreditComponent.js.map +1 -1
  241. package/lib/module/components/UNACHCreditComponent/UNACHCreditComponent.utils.js +13 -2
  242. package/lib/module/components/UNACHCreditComponent/UNACHCreditComponent.utils.js.map +1 -1
  243. package/lib/module/components/UNACHCreditComponent/index.js.map +1 -1
  244. package/lib/module/components/UNACHDebitComponent/UNACHDebitComponent.js +12 -2
  245. package/lib/module/components/UNACHDebitComponent/UNACHDebitComponent.js.map +1 -1
  246. package/lib/module/components/UNACHDebitComponent/UNACHDebitComponent.utils.js +12 -2
  247. package/lib/module/components/UNACHDebitComponent/UNACHDebitComponent.utils.js.map +1 -1
  248. package/lib/module/components/UNACHDebitComponent/index.js.map +1 -1
  249. package/lib/module/components/UNAccountComponent/UNAccountComponent.js +40 -17
  250. package/lib/module/components/UNAccountComponent/UNAccountComponent.js.map +1 -1
  251. package/lib/module/components/UNAccountComponent/UNAccountComponent.utils.js +10 -8
  252. package/lib/module/components/UNAccountComponent/UNAccountComponent.utils.js.map +1 -1
  253. package/lib/module/components/UNAccountComponent/index.js.map +1 -1
  254. package/lib/module/components/UNActivityComponent/UNActivityComponent.js +29 -14
  255. package/lib/module/components/UNActivityComponent/UNActivityComponent.js.map +1 -1
  256. package/lib/module/components/UNActivityComponent/UNActivityComponent.utils.js +8 -2
  257. package/lib/module/components/UNActivityComponent/UNActivityComponent.utils.js.map +1 -1
  258. package/lib/module/components/UNActivityComponent/index.js +1 -1
  259. package/lib/module/components/UNActivityComponent/index.js.map +1 -1
  260. package/lib/module/components/UNBookPaymentComponent/UNBookPaymentComponent.js +10 -0
  261. package/lib/module/components/UNBookPaymentComponent/UNBookPaymentComponent.js.map +1 -1
  262. package/lib/module/components/UNBookPaymentComponent/UNBookPaymentComponent.utils.js +11 -4
  263. package/lib/module/components/UNBookPaymentComponent/UNBookPaymentComponent.utils.js.map +1 -1
  264. package/lib/module/components/UNBookPaymentComponent/index.js.map +1 -1
  265. package/lib/module/components/UNBottomSheetComponent/UNBottomSheetComponent.constants.js +12 -1
  266. package/lib/module/components/UNBottomSheetComponent/UNBottomSheetComponent.constants.js.map +1 -1
  267. package/lib/module/components/UNBottomSheetComponent/UNBottomSheetComponent.js +151 -240
  268. package/lib/module/components/UNBottomSheetComponent/UNBottomSheetComponent.js.map +1 -1
  269. package/lib/module/components/UNBottomSheetComponent/UNBottomSheetComponent.styles.js.map +1 -1
  270. package/lib/module/components/UNBottomSheetComponent/UNBottomSheetComponent.utils.js +11 -14
  271. package/lib/module/components/UNBottomSheetComponent/UNBottomSheetComponent.utils.js.map +1 -1
  272. package/lib/module/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/UNBottomSheetNativeComponent.js +42 -0
  273. package/lib/module/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/UNBottomSheetNativeComponent.js.map +1 -0
  274. package/lib/module/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/index.js +2 -0
  275. package/lib/module/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/index.js.map +1 -0
  276. package/lib/module/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/UNBottomSheetSlotComponent.js +158 -0
  277. package/lib/module/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/UNBottomSheetSlotComponent.js.map +1 -0
  278. package/lib/module/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/index.js +2 -0
  279. package/lib/module/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/index.js.map +1 -0
  280. package/lib/module/components/UNBottomSheetComponent/components/index.js +2 -1
  281. package/lib/module/components/UNBottomSheetComponent/components/index.js.map +1 -1
  282. package/lib/module/components/UNBottomSheetComponent/index.js.map +1 -1
  283. package/lib/module/components/UNCardComponent/UNCardComponent.js +12 -8
  284. package/lib/module/components/UNCardComponent/UNCardComponent.js.map +1 -1
  285. package/lib/module/components/UNCardComponent/UNCardComponent.utils.js +7 -5
  286. package/lib/module/components/UNCardComponent/UNCardComponent.utils.js.map +1 -1
  287. package/lib/module/components/UNCardComponent/index.js.map +1 -1
  288. package/lib/module/components/UNCheckDepositComponent/UNCheckDepositComponent.js +11 -0
  289. package/lib/module/components/UNCheckDepositComponent/UNCheckDepositComponent.js.map +1 -1
  290. package/lib/module/components/UNCheckDepositComponent/UNCheckDepositComponent.utils.js +7 -1
  291. package/lib/module/components/UNCheckDepositComponent/UNCheckDepositComponent.utils.js.map +1 -1
  292. package/lib/module/components/UNCheckDepositComponent/index.js.map +1 -1
  293. package/lib/module/components/UNMultipleCardsComponent/UNMultipleCardsComponent.js +77 -0
  294. package/lib/module/components/UNMultipleCardsComponent/UNMultipleCardsComponent.js.map +1 -0
  295. package/lib/module/components/UNMultipleCardsComponent/UNMultipleCardsComponent.utils.js +34 -0
  296. package/lib/module/components/UNMultipleCardsComponent/UNMultipleCardsComponent.utils.js.map +1 -0
  297. package/lib/module/components/UNMultipleCardsComponent/index.js +2 -0
  298. package/lib/module/components/UNMultipleCardsComponent/index.js.map +1 -0
  299. package/lib/module/components/UNNextRepaymentComponent/UNNextRepaymentComponent.js +53 -0
  300. package/lib/module/components/UNNextRepaymentComponent/UNNextRepaymentComponent.js.map +1 -0
  301. package/lib/module/components/UNNextRepaymentComponent/UNNextRepaymentComponent.utils.js +8 -0
  302. package/lib/module/components/UNNextRepaymentComponent/UNNextRepaymentComponent.utils.js.map +1 -0
  303. package/lib/module/components/UNNextRepaymentComponent/index.js +2 -0
  304. package/lib/module/components/UNNextRepaymentComponent/index.js.map +1 -0
  305. package/lib/module/components/UNProgramDetailsComponent/UNProgramDetailsComponent.js +53 -0
  306. package/lib/module/components/UNProgramDetailsComponent/UNProgramDetailsComponent.js.map +1 -0
  307. package/lib/module/components/UNProgramDetailsComponent/UNProgramDetailsComponent.utils.js +8 -0
  308. package/lib/module/components/UNProgramDetailsComponent/UNProgramDetailsComponent.utils.js.map +1 -0
  309. package/lib/module/components/UNProgramDetailsComponent/index.js +2 -0
  310. package/lib/module/components/UNProgramDetailsComponent/index.js.map +1 -0
  311. package/lib/module/components/index.js +3 -0
  312. package/lib/module/components/index.js.map +1 -1
  313. package/lib/module/custom.d.js.map +1 -1
  314. package/lib/module/flows/UNFlows.js +1 -1
  315. package/lib/module/flows/UNFlows.js.map +1 -1
  316. package/lib/module/flows/card/UNCardFlows.js +28 -23
  317. package/lib/module/flows/card/UNCardFlows.js.map +1 -1
  318. package/lib/module/helpers/BottomSheet/BottomSheet.js +25 -27
  319. package/lib/module/helpers/BottomSheet/BottomSheet.js.map +1 -1
  320. package/lib/module/helpers/BottomSheet/BottomSheet.styles.js +1 -3
  321. package/lib/module/helpers/BottomSheet/BottomSheet.styles.js.map +1 -1
  322. package/lib/module/helpers/pushProvisioningService/helpers.js +24 -0
  323. package/lib/module/helpers/pushProvisioningService/helpers.js.map +1 -0
  324. package/lib/module/helpers/pushProvisioningService/hooks/useCardWallet.js +34 -5
  325. package/lib/module/helpers/pushProvisioningService/hooks/useCardWallet.js.map +1 -1
  326. package/lib/module/helpers/pushProvisioningService/hooks/useLaunchInitialize.js.map +1 -1
  327. package/lib/module/helpers/pushProvisioningService/startProvisioning.js +3 -3
  328. package/lib/module/helpers/pushProvisioningService/startProvisioning.js.map +1 -1
  329. package/lib/module/helpers/pushProvisioningService/types.js +34 -0
  330. package/lib/module/helpers/pushProvisioningService/types.js.map +1 -0
  331. package/lib/module/helpers/store/helpers.js.map +1 -1
  332. package/lib/module/hooks/useAppStateListener.js.map +1 -1
  333. package/lib/module/hooks/useListenerToEvent.js +19 -0
  334. package/lib/module/hooks/useListenerToEvent.js.map +1 -0
  335. package/lib/module/index.js.map +1 -1
  336. package/lib/module/messages/nativeMessages/bottomSheetMessage.js +7 -7
  337. package/lib/module/messages/nativeMessages/bottomSheetMessage.js.map +1 -1
  338. package/lib/module/messages/nativeMessages/cardMessage.js +3 -3
  339. package/lib/module/messages/nativeMessages/cardMessage.js.map +1 -1
  340. package/lib/module/messages/nativeMessages/index.js.map +1 -1
  341. package/lib/module/messages/nativeMessages/sdkMessage.js +3 -3
  342. package/lib/module/messages/nativeMessages/sdkMessage.js.map +1 -1
  343. package/lib/module/messages/webMessages/accountMessage.js +3 -3
  344. package/lib/module/messages/webMessages/accountMessage.js.map +1 -1
  345. package/lib/module/messages/webMessages/achCreditMessage.js.map +1 -1
  346. package/lib/module/messages/webMessages/activityMessage.js +3 -3
  347. package/lib/module/messages/webMessages/activityMessage.js.map +1 -1
  348. package/lib/module/messages/webMessages/bookPaymentMessage.js.map +1 -1
  349. package/lib/module/messages/webMessages/cardMessage.js +3 -3
  350. package/lib/module/messages/webMessages/cardMessage.js.map +1 -1
  351. package/lib/module/messages/webMessages/checkMessage.js +3 -3
  352. package/lib/module/messages/webMessages/checkMessage.js.map +1 -1
  353. package/lib/module/messages/webMessages/index.js.map +1 -1
  354. package/lib/module/messages/webMessages/multipleCardsMessage.js +5 -0
  355. package/lib/module/messages/webMessages/multipleCardsMessage.js.map +1 -0
  356. package/lib/module/messages/webMessages/onLoadMessage.js +6 -4
  357. package/lib/module/messages/webMessages/onLoadMessage.js.map +1 -1
  358. package/lib/module/messages/webMessages/pageMessage.js +3 -3
  359. package/lib/module/messages/webMessages/pageMessage.js.map +1 -1
  360. package/lib/module/messages/webMessages/paymentsMessage.js +5 -3
  361. package/lib/module/messages/webMessages/paymentsMessage.js.map +1 -1
  362. package/lib/module/messages/webMessages/unitMessages.js +8 -4
  363. package/lib/module/messages/webMessages/unitMessages.js.map +1 -1
  364. package/lib/module/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletBottomSheetItem.styles.js.map +1 -0
  365. package/lib/module/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.js +70 -0
  366. package/lib/module/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.js.map +1 -0
  367. package/lib/module/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.utils.js +12 -0
  368. package/lib/module/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.utils.js.map +1 -0
  369. package/lib/module/nativeComponents/UNAddToWallet/UNAddToWalletComponent/index.js +2 -0
  370. package/lib/module/nativeComponents/UNAddToWallet/UNAddToWalletComponent/index.js.map +1 -0
  371. package/lib/module/nativeComponents/UNAddToWallet/UnitAddToWalletButton.js.map +1 -0
  372. package/lib/module/networking/common/UNNetworkConstants.js.map +1 -1
  373. package/lib/module/networking/requests/UNWalletPayloadRequest.js +27 -3
  374. package/lib/module/networking/requests/UNWalletPayloadRequest.js.map +1 -1
  375. package/lib/module/scripts/html/bodyHtml.js.map +1 -1
  376. package/lib/module/scripts/html/bodyScript.js +34 -8
  377. package/lib/module/scripts/html/bodyScript.js.map +1 -1
  378. package/lib/module/scripts/html/fontFaces.js +2 -3
  379. package/lib/module/scripts/html/fontFaces.js.map +1 -1
  380. package/lib/module/slices/BottomSheetSlice.js +59 -0
  381. package/lib/module/slices/BottomSheetSlice.js.map +1 -0
  382. package/lib/module/slices/ConfigurationSlice.js +25 -0
  383. package/lib/module/slices/ConfigurationSlice.js.map +1 -0
  384. package/lib/module/slices/SharedEventsSlice.js +22 -0
  385. package/lib/module/slices/SharedEventsSlice.js.map +1 -0
  386. package/lib/module/slices/pushProvisioningSlice.js.map +1 -1
  387. package/lib/module/store/index.js.map +1 -1
  388. package/lib/module/store/store.js +7 -1
  389. package/lib/module/store/store.js.map +1 -1
  390. package/lib/module/styles/fonts.js.map +1 -1
  391. package/lib/module/styles/variables.js +4 -1
  392. package/lib/module/styles/variables.js.map +1 -1
  393. package/lib/module/types/internal/bottomSheet.types.js +21 -5
  394. package/lib/module/types/internal/bottomSheet.types.js.map +1 -1
  395. package/lib/module/types/internal/errorHelpers.js +12 -0
  396. package/lib/module/types/internal/errorHelpers.js.map +1 -0
  397. package/lib/module/types/internal/webComponent.types.js +9 -6
  398. package/lib/module/types/internal/webComponent.types.js.map +1 -1
  399. package/lib/module/types/shared/account.types.js +18 -12
  400. package/lib/module/types/shared/account.types.js.map +1 -1
  401. package/lib/module/types/shared/achCredit.types.js.map +1 -1
  402. package/lib/module/types/shared/activity.types.js +5 -1
  403. package/lib/module/types/shared/activity.types.js.map +1 -1
  404. package/lib/module/types/shared/authorization.types.js.map +1 -1
  405. package/lib/module/types/shared/bookPayment.types.js.map +1 -1
  406. package/lib/module/types/shared/card.types.js +12 -3
  407. package/lib/module/types/shared/card.types.js.map +1 -1
  408. package/lib/module/types/shared/checkDeposit.types.js +3 -3
  409. package/lib/module/types/shared/checkDeposit.types.js.map +1 -1
  410. package/lib/module/types/shared/error.types.js +22 -0
  411. package/lib/module/types/shared/error.types.js.map +1 -0
  412. package/lib/module/types/shared/fonts.types.js +3 -3
  413. package/lib/module/types/shared/fonts.types.js.map +1 -1
  414. package/lib/module/types/shared/index.js +2 -0
  415. package/lib/module/types/shared/index.js.map +1 -1
  416. package/lib/module/types/shared/multipleCards.types.js +6 -0
  417. package/lib/module/types/shared/multipleCards.types.js.map +1 -0
  418. package/lib/module/types/shared/onLoadResponse.types.js +1 -1
  419. package/lib/module/types/shared/onLoadResponse.types.js.map +1 -1
  420. package/lib/module/types/shared/payments.types.js +8 -3
  421. package/lib/module/types/shared/payments.types.js.map +1 -1
  422. package/lib/module/types/shared/repayment.types.js +2 -0
  423. package/lib/module/types/shared/repayment.types.js.map +1 -0
  424. package/lib/module/types/shared/transactions.types.js +6 -6
  425. package/lib/module/types/shared/transactions.types.js.map +1 -1
  426. package/lib/module/types/shared/types.js.map +1 -1
  427. package/lib/module/types/shared/versioning.types.js +4 -3
  428. package/lib/module/types/shared/versioning.types.js.map +1 -1
  429. package/lib/module/types/shared/wallet.types.js +9 -9
  430. package/lib/module/types/shared/wallet.types.js.map +1 -1
  431. package/lib/module/unitSdkManager/UnitSdk.api.js +5 -10
  432. package/lib/module/unitSdkManager/UnitSdk.api.js.map +1 -1
  433. package/lib/module/unitSdkManager/UnitSdk.constants.js +1 -1
  434. package/lib/module/unitSdkManager/UnitSdk.constants.js.map +1 -1
  435. package/lib/module/unitSdkManager/UnitSdkManager.js +56 -73
  436. package/lib/module/unitSdkManager/UnitSdkManager.js.map +1 -1
  437. package/lib/module/unitSdkManager/UnitSdkManager.utils.internal.js.map +1 -1
  438. package/lib/module/unitSdkManager/unitUiManager/unitUiManager.js +4 -7
  439. package/lib/module/unitSdkManager/unitUiManager/unitUiManager.js.map +1 -1
  440. package/lib/module/utils/AppInfo.js +39 -0
  441. package/lib/module/utils/AppInfo.js.map +1 -0
  442. package/lib/module/utils/SDKInfo.js +5 -0
  443. package/lib/module/utils/SDKInfo.js.map +1 -0
  444. package/lib/module/utils/webVersioningStrategy.utils.js +7 -0
  445. package/lib/module/utils/webVersioningStrategy.utils.js.map +1 -1
  446. package/lib/module/webComponent/WebComponent.js +40 -34
  447. package/lib/module/webComponent/WebComponent.js.map +1 -1
  448. package/lib/module/webComponent/WebComponent.utils.js +15 -0
  449. package/lib/module/webComponent/WebComponent.utils.js.map +1 -1
  450. package/lib/module/webComponent/html.js.map +1 -1
  451. package/lib/typescript/{assets → src/assets}/images/index.d.ts +1 -0
  452. package/lib/typescript/src/assets/images/index.d.ts.map +1 -0
  453. package/lib/typescript/{components → src/components}/UNACHCreditComponent/UNACHCreditComponent.d.ts +10 -1
  454. package/lib/typescript/src/components/UNACHCreditComponent/UNACHCreditComponent.d.ts.map +1 -0
  455. package/lib/typescript/{components → src/components}/UNACHCreditComponent/UNACHCreditComponent.utils.d.ts +1 -0
  456. package/lib/typescript/src/components/UNACHCreditComponent/UNACHCreditComponent.utils.d.ts.map +1 -0
  457. package/lib/typescript/{components → src/components}/UNACHCreditComponent/index.d.ts +1 -0
  458. package/lib/typescript/src/components/UNACHCreditComponent/index.d.ts.map +1 -0
  459. package/lib/typescript/{components → src/components}/UNACHDebitComponent/UNACHDebitComponent.d.ts +10 -1
  460. package/lib/typescript/src/components/UNACHDebitComponent/UNACHDebitComponent.d.ts.map +1 -0
  461. package/lib/typescript/{components → src/components}/UNACHDebitComponent/UNACHDebitComponent.utils.d.ts +1 -0
  462. package/lib/typescript/src/components/UNACHDebitComponent/UNACHDebitComponent.utils.d.ts.map +1 -0
  463. package/lib/typescript/{components → src/components}/UNACHDebitComponent/index.d.ts +1 -0
  464. package/lib/typescript/src/components/UNACHDebitComponent/index.d.ts.map +1 -0
  465. package/lib/typescript/{components → src/components}/UNAccountComponent/UNAccountComponent.d.ts +6 -0
  466. package/lib/typescript/src/components/UNAccountComponent/UNAccountComponent.d.ts.map +1 -0
  467. package/lib/typescript/{components → src/components}/UNAccountComponent/UNAccountComponent.utils.d.ts +2 -1
  468. package/lib/typescript/src/components/UNAccountComponent/UNAccountComponent.utils.d.ts.map +1 -0
  469. package/lib/typescript/{components → src/components}/UNAccountComponent/index.d.ts +1 -0
  470. package/lib/typescript/src/components/UNAccountComponent/index.d.ts.map +1 -0
  471. package/lib/typescript/src/components/UNActivityComponent/UNActivityComponent.d.ts +23 -0
  472. package/lib/typescript/src/components/UNActivityComponent/UNActivityComponent.d.ts.map +1 -0
  473. package/lib/typescript/{components → src/components}/UNActivityComponent/UNActivityComponent.utils.d.ts +1 -0
  474. package/lib/typescript/src/components/UNActivityComponent/UNActivityComponent.utils.d.ts.map +1 -0
  475. package/lib/typescript/src/components/UNActivityComponent/index.d.ts +2 -0
  476. package/lib/typescript/src/components/UNActivityComponent/index.d.ts.map +1 -0
  477. package/lib/typescript/{components → src/components}/UNBookPaymentComponent/UNBookPaymentComponent.d.ts +10 -4
  478. package/lib/typescript/src/components/UNBookPaymentComponent/UNBookPaymentComponent.d.ts.map +1 -0
  479. package/lib/typescript/{components → src/components}/UNBookPaymentComponent/UNBookPaymentComponent.utils.d.ts +1 -0
  480. package/lib/typescript/src/components/UNBookPaymentComponent/UNBookPaymentComponent.utils.d.ts.map +1 -0
  481. package/lib/typescript/{components → src/components}/UNBookPaymentComponent/index.d.ts +1 -0
  482. package/lib/typescript/src/components/UNBookPaymentComponent/index.d.ts.map +1 -0
  483. package/lib/typescript/src/components/UNBottomSheetComponent/UNBottomSheetComponent.constants.d.ts +8 -0
  484. package/lib/typescript/src/components/UNBottomSheetComponent/UNBottomSheetComponent.constants.d.ts.map +1 -0
  485. package/lib/typescript/src/components/UNBottomSheetComponent/UNBottomSheetComponent.d.ts +4 -0
  486. package/lib/typescript/src/components/UNBottomSheetComponent/UNBottomSheetComponent.d.ts.map +1 -0
  487. package/lib/typescript/{components → src/components}/UNBottomSheetComponent/UNBottomSheetComponent.styles.d.ts +1 -0
  488. package/lib/typescript/src/components/UNBottomSheetComponent/UNBottomSheetComponent.styles.d.ts.map +1 -0
  489. package/lib/typescript/{components → src/components}/UNBottomSheetComponent/UNBottomSheetComponent.utils.d.ts +2 -1
  490. package/lib/typescript/src/components/UNBottomSheetComponent/UNBottomSheetComponent.utils.d.ts.map +1 -0
  491. package/lib/typescript/src/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/UNBottomSheetNativeComponent.d.ts +8 -0
  492. package/lib/typescript/src/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/UNBottomSheetNativeComponent.d.ts.map +1 -0
  493. package/lib/typescript/src/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/index.d.ts +2 -0
  494. package/lib/typescript/src/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/index.d.ts.map +1 -0
  495. package/lib/typescript/src/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/UNBottomSheetSlotComponent.d.ts +11 -0
  496. package/lib/typescript/src/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/UNBottomSheetSlotComponent.d.ts.map +1 -0
  497. package/lib/typescript/src/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/index.d.ts +2 -0
  498. package/lib/typescript/src/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/index.d.ts.map +1 -0
  499. package/lib/typescript/src/components/UNBottomSheetComponent/components/index.d.ts +3 -0
  500. package/lib/typescript/src/components/UNBottomSheetComponent/components/index.d.ts.map +1 -0
  501. package/lib/typescript/{components → src/components}/UNBottomSheetComponent/index.d.ts +1 -0
  502. package/lib/typescript/src/components/UNBottomSheetComponent/index.d.ts.map +1 -0
  503. package/lib/typescript/{components → src/components}/UNCardComponent/UNCardComponent.d.ts +3 -0
  504. package/lib/typescript/src/components/UNCardComponent/UNCardComponent.d.ts.map +1 -0
  505. package/lib/typescript/{components → src/components}/UNCardComponent/UNCardComponent.utils.d.ts +1 -0
  506. package/lib/typescript/src/components/UNCardComponent/UNCardComponent.utils.d.ts.map +1 -0
  507. package/lib/typescript/{components → src/components}/UNCardComponent/index.d.ts +1 -0
  508. package/lib/typescript/src/components/UNCardComponent/index.d.ts.map +1 -0
  509. package/lib/typescript/{components → src/components}/UNCheckDepositComponent/UNCheckDepositComponent.d.ts +7 -1
  510. package/lib/typescript/src/components/UNCheckDepositComponent/UNCheckDepositComponent.d.ts.map +1 -0
  511. package/lib/typescript/{components → src/components}/UNCheckDepositComponent/UNCheckDepositComponent.utils.d.ts +1 -0
  512. package/lib/typescript/src/components/UNCheckDepositComponent/UNCheckDepositComponent.utils.d.ts.map +1 -0
  513. package/lib/typescript/{components → src/components}/UNCheckDepositComponent/index.d.ts +1 -0
  514. package/lib/typescript/src/components/UNCheckDepositComponent/index.d.ts.map +1 -0
  515. package/lib/typescript/src/components/UNMultipleCardsComponent/UNMultipleCardsComponent.d.ts +18 -0
  516. package/lib/typescript/src/components/UNMultipleCardsComponent/UNMultipleCardsComponent.d.ts.map +1 -0
  517. package/lib/typescript/src/components/UNMultipleCardsComponent/UNMultipleCardsComponent.utils.d.ts +4 -0
  518. package/lib/typescript/src/components/UNMultipleCardsComponent/UNMultipleCardsComponent.utils.d.ts.map +1 -0
  519. package/lib/typescript/src/components/UNMultipleCardsComponent/index.d.ts +2 -0
  520. package/lib/typescript/src/components/UNMultipleCardsComponent/index.d.ts.map +1 -0
  521. package/lib/typescript/src/components/UNNextRepaymentComponent/UNNextRepaymentComponent.d.ts +14 -0
  522. package/lib/typescript/src/components/UNNextRepaymentComponent/UNNextRepaymentComponent.d.ts.map +1 -0
  523. package/lib/typescript/src/components/UNNextRepaymentComponent/UNNextRepaymentComponent.utils.d.ts +3 -0
  524. package/lib/typescript/src/components/UNNextRepaymentComponent/UNNextRepaymentComponent.utils.d.ts.map +1 -0
  525. package/lib/typescript/src/components/UNNextRepaymentComponent/index.d.ts +2 -0
  526. package/lib/typescript/src/components/UNNextRepaymentComponent/index.d.ts.map +1 -0
  527. package/lib/typescript/src/components/UNProgramDetailsComponent/UNProgramDetailsComponent.d.ts +13 -0
  528. package/lib/typescript/src/components/UNProgramDetailsComponent/UNProgramDetailsComponent.d.ts.map +1 -0
  529. package/lib/typescript/src/components/UNProgramDetailsComponent/UNProgramDetailsComponent.utils.d.ts +3 -0
  530. package/lib/typescript/src/components/UNProgramDetailsComponent/UNProgramDetailsComponent.utils.d.ts.map +1 -0
  531. package/lib/typescript/src/components/UNProgramDetailsComponent/index.d.ts +2 -0
  532. package/lib/typescript/src/components/UNProgramDetailsComponent/index.d.ts.map +1 -0
  533. package/lib/typescript/{components → src/components}/index.d.ts +4 -0
  534. package/lib/typescript/src/components/index.d.ts.map +1 -0
  535. package/lib/typescript/{flows → src/flows}/UNFlows.d.ts +1 -0
  536. package/lib/typescript/src/flows/UNFlows.d.ts.map +1 -0
  537. package/lib/typescript/{flows → src/flows}/card/UNCardFlows.d.ts +1 -0
  538. package/lib/typescript/src/flows/card/UNCardFlows.d.ts.map +1 -0
  539. package/lib/typescript/{helpers → src/helpers}/BottomSheet/BottomSheet.d.ts +5 -3
  540. package/lib/typescript/src/helpers/BottomSheet/BottomSheet.d.ts.map +1 -0
  541. package/lib/typescript/{helpers → src/helpers}/BottomSheet/BottomSheet.styles.d.ts +1 -1
  542. package/lib/typescript/src/helpers/BottomSheet/BottomSheet.styles.d.ts.map +1 -0
  543. package/lib/typescript/src/helpers/pushProvisioningService/helpers.d.ts +5 -0
  544. package/lib/typescript/src/helpers/pushProvisioningService/helpers.d.ts.map +1 -0
  545. package/lib/typescript/{helpers → src/helpers}/pushProvisioningService/hooks/useCardWallet.d.ts +2 -1
  546. package/lib/typescript/src/helpers/pushProvisioningService/hooks/useCardWallet.d.ts.map +1 -0
  547. package/lib/typescript/{helpers → src/helpers}/pushProvisioningService/hooks/useLaunchInitialize.d.ts +1 -0
  548. package/lib/typescript/src/helpers/pushProvisioningService/hooks/useLaunchInitialize.d.ts.map +1 -0
  549. package/lib/typescript/{helpers → src/helpers}/pushProvisioningService/startProvisioning.d.ts +1 -0
  550. package/lib/typescript/src/helpers/pushProvisioningService/startProvisioning.d.ts.map +1 -0
  551. package/lib/typescript/src/helpers/pushProvisioningService/types.d.ts +50 -0
  552. package/lib/typescript/src/helpers/pushProvisioningService/types.d.ts.map +1 -0
  553. package/lib/typescript/{helpers → src/helpers}/store/helpers.d.ts +1 -0
  554. package/lib/typescript/src/helpers/store/helpers.d.ts.map +1 -0
  555. package/lib/typescript/{hooks → src/hooks}/useAppStateListener.d.ts +1 -0
  556. package/lib/typescript/src/hooks/useAppStateListener.d.ts.map +1 -0
  557. package/lib/typescript/src/hooks/useListenerToEvent.d.ts +10 -0
  558. package/lib/typescript/src/hooks/useListenerToEvent.d.ts.map +1 -0
  559. package/lib/typescript/{index.d.ts → src/index.d.ts} +1 -0
  560. package/lib/typescript/src/index.d.ts.map +1 -0
  561. package/lib/typescript/src/messages/nativeMessages/bottomSheetMessage.d.ts +10 -0
  562. package/lib/typescript/src/messages/nativeMessages/bottomSheetMessage.d.ts.map +1 -0
  563. package/lib/typescript/{messages → src/messages}/nativeMessages/cardMessage.d.ts +1 -0
  564. package/lib/typescript/src/messages/nativeMessages/cardMessage.d.ts.map +1 -0
  565. package/lib/typescript/{messages → src/messages}/nativeMessages/index.d.ts +1 -0
  566. package/lib/typescript/src/messages/nativeMessages/index.d.ts.map +1 -0
  567. package/lib/typescript/{messages → src/messages}/nativeMessages/sdkMessage.d.ts +1 -0
  568. package/lib/typescript/src/messages/nativeMessages/sdkMessage.d.ts.map +1 -0
  569. package/lib/typescript/{messages → src/messages}/webMessages/accountMessage.d.ts +1 -0
  570. package/lib/typescript/src/messages/webMessages/accountMessage.d.ts.map +1 -0
  571. package/lib/typescript/{messages → src/messages}/webMessages/achCreditMessage.d.ts +1 -0
  572. package/lib/typescript/src/messages/webMessages/achCreditMessage.d.ts.map +1 -0
  573. package/lib/typescript/{messages → src/messages}/webMessages/activityMessage.d.ts +1 -0
  574. package/lib/typescript/src/messages/webMessages/activityMessage.d.ts.map +1 -0
  575. package/lib/typescript/{messages → src/messages}/webMessages/bookPaymentMessage.d.ts +1 -0
  576. package/lib/typescript/src/messages/webMessages/bookPaymentMessage.d.ts.map +1 -0
  577. package/lib/typescript/{messages → src/messages}/webMessages/cardMessage.d.ts +1 -0
  578. package/lib/typescript/src/messages/webMessages/cardMessage.d.ts.map +1 -0
  579. package/lib/typescript/{messages → src/messages}/webMessages/checkMessage.d.ts +1 -0
  580. package/lib/typescript/src/messages/webMessages/checkMessage.d.ts.map +1 -0
  581. package/lib/typescript/{messages → src/messages}/webMessages/index.d.ts +4 -2
  582. package/lib/typescript/src/messages/webMessages/index.d.ts.map +1 -0
  583. package/lib/typescript/src/messages/webMessages/multipleCardsMessage.d.ts +7 -0
  584. package/lib/typescript/src/messages/webMessages/multipleCardsMessage.d.ts.map +1 -0
  585. package/lib/typescript/{messages → src/messages}/webMessages/onLoadMessage.d.ts +10 -4
  586. package/lib/typescript/src/messages/webMessages/onLoadMessage.d.ts.map +1 -0
  587. package/lib/typescript/{messages → src/messages}/webMessages/pageMessage.d.ts +1 -0
  588. package/lib/typescript/src/messages/webMessages/pageMessage.d.ts.map +1 -0
  589. package/lib/typescript/src/messages/webMessages/paymentsMessage.d.ts +6 -0
  590. package/lib/typescript/src/messages/webMessages/paymentsMessage.d.ts.map +1 -0
  591. package/lib/typescript/{messages → src/messages}/webMessages/unitMessages.d.ts +11 -5
  592. package/lib/typescript/src/messages/webMessages/unitMessages.d.ts.map +1 -0
  593. package/lib/typescript/{components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem → src/nativeComponents/UNAddToWallet/UNAddToWalletComponent}/UNAddToWalletBottomSheetItem.styles.d.ts +1 -0
  594. package/lib/typescript/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletBottomSheetItem.styles.d.ts.map +1 -0
  595. package/lib/typescript/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.d.ts +8 -0
  596. package/lib/typescript/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.d.ts.map +1 -0
  597. package/lib/typescript/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.utils.d.ts +5 -0
  598. package/lib/typescript/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.utils.d.ts.map +1 -0
  599. package/lib/typescript/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/index.d.ts +2 -0
  600. package/lib/typescript/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/index.d.ts.map +1 -0
  601. package/lib/typescript/{nativeComponent → src/nativeComponents/UNAddToWallet}/UnitAddToWalletButton.d.ts +1 -0
  602. package/lib/typescript/src/nativeComponents/UNAddToWallet/UnitAddToWalletButton.d.ts.map +1 -0
  603. package/lib/typescript/{networking → src/networking}/common/UNNetworkConstants.d.ts +1 -0
  604. package/lib/typescript/src/networking/common/UNNetworkConstants.d.ts.map +1 -0
  605. package/lib/typescript/{networking → src/networking}/requests/UNWalletPayloadRequest.d.ts +2 -1
  606. package/lib/typescript/src/networking/requests/UNWalletPayloadRequest.d.ts.map +1 -0
  607. package/lib/typescript/{scripts → src/scripts}/html/bodyHtml.d.ts +1 -0
  608. package/lib/typescript/src/scripts/html/bodyHtml.d.ts.map +1 -0
  609. package/lib/typescript/{scripts → src/scripts}/html/bodyScript.d.ts +5 -1
  610. package/lib/typescript/src/scripts/html/bodyScript.d.ts.map +1 -0
  611. package/lib/typescript/{scripts → src/scripts}/html/fontFaces.d.ts +1 -0
  612. package/lib/typescript/src/scripts/html/fontFaces.d.ts.map +1 -0
  613. package/lib/typescript/src/slices/BottomSheetSlice.d.ts +16 -0
  614. package/lib/typescript/src/slices/BottomSheetSlice.d.ts.map +1 -0
  615. package/lib/typescript/src/slices/ConfigurationSlice.d.ts +11 -0
  616. package/lib/typescript/src/slices/ConfigurationSlice.d.ts.map +1 -0
  617. package/lib/typescript/src/slices/SharedEventsSlice.d.ts +53 -0
  618. package/lib/typescript/src/slices/SharedEventsSlice.d.ts.map +1 -0
  619. package/lib/typescript/{slices → src/slices}/pushProvisioningSlice.d.ts +1 -0
  620. package/lib/typescript/src/slices/pushProvisioningSlice.d.ts.map +1 -0
  621. package/lib/typescript/src/store/index.d.ts +2 -0
  622. package/lib/typescript/src/store/index.d.ts.map +1 -0
  623. package/lib/typescript/src/store/store.d.ts +73 -0
  624. package/lib/typescript/src/store/store.d.ts.map +1 -0
  625. package/lib/typescript/{styles → src/styles}/fonts.d.ts +1 -0
  626. package/lib/typescript/src/styles/fonts.d.ts.map +1 -0
  627. package/lib/typescript/{styles → src/styles}/variables.d.ts +4 -0
  628. package/lib/typescript/src/styles/variables.d.ts.map +1 -0
  629. package/lib/typescript/src/types/internal/bottomSheet.types.d.ts +57 -0
  630. package/lib/typescript/src/types/internal/bottomSheet.types.d.ts.map +1 -0
  631. package/lib/typescript/src/types/internal/errorHelpers.d.ts +5 -0
  632. package/lib/typescript/src/types/internal/errorHelpers.d.ts.map +1 -0
  633. package/lib/typescript/{types → src/types}/internal/webComponent.types.d.ts +5 -1
  634. package/lib/typescript/src/types/internal/webComponent.types.d.ts.map +1 -0
  635. package/lib/typescript/{types → src/types}/shared/account.types.d.ts +6 -0
  636. package/lib/typescript/src/types/shared/account.types.d.ts.map +1 -0
  637. package/lib/typescript/{types → src/types}/shared/achCredit.types.d.ts +1 -0
  638. package/lib/typescript/src/types/shared/achCredit.types.d.ts.map +1 -0
  639. package/lib/typescript/src/types/shared/activity.types.d.ts +12 -0
  640. package/lib/typescript/src/types/shared/activity.types.d.ts.map +1 -0
  641. package/lib/typescript/{types → src/types}/shared/authorization.types.d.ts +1 -0
  642. package/lib/typescript/src/types/shared/authorization.types.d.ts.map +1 -0
  643. package/lib/typescript/{types → src/types}/shared/bookPayment.types.d.ts +1 -0
  644. package/lib/typescript/src/types/shared/bookPayment.types.d.ts.map +1 -0
  645. package/lib/typescript/{types → src/types}/shared/card.types.d.ts +9 -0
  646. package/lib/typescript/src/types/shared/card.types.d.ts.map +1 -0
  647. package/lib/typescript/{types → src/types}/shared/checkDeposit.types.d.ts +1 -0
  648. package/lib/typescript/src/types/shared/checkDeposit.types.d.ts.map +1 -0
  649. package/lib/typescript/src/types/shared/error.types.d.ts +37 -0
  650. package/lib/typescript/src/types/shared/error.types.d.ts.map +1 -0
  651. package/lib/typescript/{types → src/types}/shared/fonts.types.d.ts +1 -0
  652. package/lib/typescript/src/types/shared/fonts.types.d.ts.map +1 -0
  653. package/lib/typescript/{types → src/types}/shared/index.d.ts +3 -0
  654. package/lib/typescript/src/types/shared/index.d.ts.map +1 -0
  655. package/lib/typescript/src/types/shared/multipleCards.types.d.ts +7 -0
  656. package/lib/typescript/src/types/shared/multipleCards.types.d.ts.map +1 -0
  657. package/lib/typescript/src/types/shared/onLoadResponse.types.d.ts +6 -0
  658. package/lib/typescript/src/types/shared/onLoadResponse.types.d.ts.map +1 -0
  659. package/lib/typescript/{types → src/types}/shared/payments.types.d.ts +5 -0
  660. package/lib/typescript/src/types/shared/payments.types.d.ts.map +1 -0
  661. package/lib/typescript/src/types/shared/repayment.types.d.ts +12 -0
  662. package/lib/typescript/src/types/shared/repayment.types.d.ts.map +1 -0
  663. package/lib/typescript/{types → src/types}/shared/transactions.types.d.ts +1 -0
  664. package/lib/typescript/src/types/shared/transactions.types.d.ts.map +1 -0
  665. package/lib/typescript/{types → src/types}/shared/types.d.ts +1 -0
  666. package/lib/typescript/src/types/shared/types.d.ts.map +1 -0
  667. package/lib/typescript/{types → src/types}/shared/versioning.types.d.ts +6 -1
  668. package/lib/typescript/src/types/shared/versioning.types.d.ts.map +1 -0
  669. package/lib/typescript/{types → src/types}/shared/wallet.types.d.ts +1 -0
  670. package/lib/typescript/src/types/shared/wallet.types.d.ts.map +1 -0
  671. package/lib/typescript/src/unitSdkManager/UnitSdk.api.d.ts +2 -0
  672. package/lib/typescript/src/unitSdkManager/UnitSdk.api.d.ts.map +1 -0
  673. package/lib/typescript/{unitSdkManager → src/unitSdkManager}/UnitSdk.constants.d.ts +1 -0
  674. package/lib/typescript/src/unitSdkManager/UnitSdk.constants.d.ts.map +1 -0
  675. package/lib/typescript/{unitSdkManager → src/unitSdkManager}/UnitSdkManager.d.ts +5 -8
  676. package/lib/typescript/src/unitSdkManager/UnitSdkManager.d.ts.map +1 -0
  677. package/lib/typescript/{unitSdkManager → src/unitSdkManager}/UnitSdkManager.utils.internal.d.ts +1 -0
  678. package/lib/typescript/src/unitSdkManager/UnitSdkManager.utils.internal.d.ts.map +1 -0
  679. package/lib/typescript/{unitSdkManager → src/unitSdkManager}/unitUiManager/unitUiManager.d.ts +1 -0
  680. package/lib/typescript/src/unitSdkManager/unitUiManager/unitUiManager.d.ts.map +1 -0
  681. package/lib/typescript/src/utils/AppInfo.d.ts +5 -0
  682. package/lib/typescript/src/utils/AppInfo.d.ts.map +1 -0
  683. package/lib/typescript/src/utils/SDKInfo.d.ts +2 -0
  684. package/lib/typescript/src/utils/SDKInfo.d.ts.map +1 -0
  685. package/lib/typescript/{utils → src/utils}/webVersioningStrategy.utils.d.ts +1 -0
  686. package/lib/typescript/src/utils/webVersioningStrategy.utils.d.ts.map +1 -0
  687. package/lib/typescript/{webComponent → src/webComponent}/WebComponent.d.ts +1 -0
  688. package/lib/typescript/src/webComponent/WebComponent.d.ts.map +1 -0
  689. package/lib/typescript/{webComponent → src/webComponent}/WebComponent.utils.d.ts +4 -0
  690. package/lib/typescript/src/webComponent/WebComponent.utils.d.ts.map +1 -0
  691. package/lib/typescript/{webComponent → src/webComponent}/html.d.ts +1 -0
  692. package/lib/typescript/src/webComponent/html.d.ts.map +1 -0
  693. package/package.json +26 -38
  694. package/react-native-unit-components.podspec +9 -2
  695. package/src/components/UNACHCreditComponent/UNACHCreditComponent.tsx +28 -6
  696. package/src/components/UNACHCreditComponent/UNACHCreditComponent.utils.ts +13 -2
  697. package/src/components/UNACHDebitComponent/UNACHDebitComponent.tsx +28 -6
  698. package/src/components/UNACHDebitComponent/UNACHDebitComponent.utils.ts +12 -2
  699. package/src/components/UNAccountComponent/UNAccountComponent.tsx +62 -23
  700. package/src/components/UNAccountComponent/UNAccountComponent.utils.ts +9 -6
  701. package/src/components/UNActivityComponent/UNActivityComponent.tsx +60 -22
  702. package/src/components/UNActivityComponent/UNActivityComponent.utils.ts +6 -1
  703. package/src/components/UNActivityComponent/index.ts +1 -1
  704. package/src/components/UNBookPaymentComponent/UNBookPaymentComponent.tsx +23 -5
  705. package/src/components/UNBookPaymentComponent/UNBookPaymentComponent.utils.ts +11 -4
  706. package/src/components/UNBottomSheetComponent/UNBottomSheetComponent.constants.ts +20 -1
  707. package/src/components/UNBottomSheetComponent/UNBottomSheetComponent.tsx +184 -265
  708. package/src/components/UNBottomSheetComponent/UNBottomSheetComponent.utils.ts +5 -6
  709. package/src/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/UNBottomSheetNativeComponent.tsx +60 -0
  710. package/src/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/index.ts +1 -0
  711. package/src/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/UNBottomSheetSlotComponent.tsx +181 -0
  712. package/src/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/index.ts +1 -0
  713. package/src/components/UNBottomSheetComponent/components/index.ts +2 -1
  714. package/src/components/UNCardComponent/UNCardComponent.tsx +14 -11
  715. package/src/components/UNCardComponent/UNCardComponent.utils.ts +2 -0
  716. package/src/components/UNCheckDepositComponent/UNCheckDepositComponent.tsx +16 -3
  717. package/src/components/UNCheckDepositComponent/UNCheckDepositComponent.utils.ts +8 -2
  718. package/src/components/UNMultipleCardsComponent/UNMultipleCardsComponent.tsx +120 -0
  719. package/src/components/UNMultipleCardsComponent/UNMultipleCardsComponent.utils.ts +37 -0
  720. package/src/components/UNMultipleCardsComponent/index.ts +3 -0
  721. package/src/components/UNNextRepaymentComponent/UNNextRepaymentComponent.tsx +80 -0
  722. package/src/components/UNNextRepaymentComponent/UNNextRepaymentComponent.utils.ts +10 -0
  723. package/src/components/UNNextRepaymentComponent/index.ts +3 -0
  724. package/src/components/UNProgramDetailsComponent/UNProgramDetailsComponent.tsx +77 -0
  725. package/src/components/UNProgramDetailsComponent/UNProgramDetailsComponent.utils.ts +9 -0
  726. package/src/components/UNProgramDetailsComponent/index.ts +3 -0
  727. package/src/components/index.ts +3 -0
  728. package/src/flows/UNFlows.ts +1 -1
  729. package/src/flows/card/UNCardFlows.ts +19 -14
  730. package/src/helpers/BottomSheet/BottomSheet.styles.ts +7 -8
  731. package/src/helpers/BottomSheet/BottomSheet.tsx +44 -39
  732. package/src/helpers/pushProvisioningService/helpers.ts +31 -0
  733. package/src/helpers/pushProvisioningService/hooks/useCardWallet.ts +38 -8
  734. package/src/helpers/pushProvisioningService/startProvisioning.ts +3 -5
  735. package/src/helpers/pushProvisioningService/types.ts +52 -0
  736. package/src/helpers/store/helpers.tsx +1 -1
  737. package/src/hooks/useListenerToEvent.ts +32 -0
  738. package/src/messages/nativeMessages/bottomSheetMessage.ts +7 -7
  739. package/src/messages/webMessages/index.ts +3 -0
  740. package/src/messages/webMessages/multipleCardsMessage.ts +9 -0
  741. package/src/messages/webMessages/onLoadMessage.ts +16 -4
  742. package/src/messages/webMessages/paymentsMessage.ts +3 -1
  743. package/src/messages/webMessages/unitMessages.ts +19 -13
  744. package/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.tsx +93 -0
  745. package/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.utils.ts +15 -0
  746. package/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/index.ts +1 -0
  747. package/src/networking/requests/UNWalletPayloadRequest.ts +25 -4
  748. package/src/scripts/html/bodyScript.ts +36 -8
  749. package/src/slices/BottomSheetSlice.ts +72 -0
  750. package/src/slices/ConfigurationSlice.ts +31 -0
  751. package/src/slices/SharedEventsSlice.ts +88 -0
  752. package/src/store/store.ts +8 -2
  753. package/src/styles/variables.ts +5 -2
  754. package/src/types/internal/bottomSheet.types.ts +51 -7
  755. package/src/types/internal/errorHelpers.ts +22 -0
  756. package/src/types/internal/webComponent.types.ts +3 -1
  757. package/src/types/shared/account.types.ts +6 -0
  758. package/src/types/shared/activity.types.ts +7 -2
  759. package/src/types/shared/card.types.ts +10 -1
  760. package/src/types/shared/error.types.ts +38 -0
  761. package/src/types/shared/index.ts +2 -0
  762. package/src/types/shared/multipleCards.types.ts +8 -0
  763. package/src/types/shared/onLoadResponse.types.ts +2 -12
  764. package/src/types/shared/payments.types.ts +10 -5
  765. package/src/types/shared/repayment.types.ts +12 -0
  766. package/src/types/shared/versioning.types.ts +7 -1
  767. package/src/unitSdkManager/UnitSdk.api.ts +5 -8
  768. package/src/unitSdkManager/UnitSdk.constants.ts +1 -1
  769. package/src/unitSdkManager/UnitSdkManager.ts +8 -20
  770. package/src/utils/AppInfo.ts +40 -0
  771. package/src/utils/SDKInfo.ts +5 -0
  772. package/src/utils/webVersioningStrategy.utils.ts +7 -0
  773. package/src/webComponent/WebComponent.tsx +52 -37
  774. package/src/webComponent/WebComponent.utils.ts +17 -0
  775. package/android/src/main/java/com/unitreactnativecomponents/getapplicationid/UNAppInfoModule.kt +0 -35
  776. package/ios/UNAppInfo/UNAppInfo.swift +0 -23
  777. package/lib/commonjs/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/UNAddToWalletBottomSheetItem.js +0 -86
  778. package/lib/commonjs/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/UNAddToWalletBottomSheetItem.js.map +0 -1
  779. package/lib/commonjs/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/UNAddToWalletBottomSheetItem.styles.js.map +0 -1
  780. package/lib/commonjs/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/index.js +0 -17
  781. package/lib/commonjs/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/index.js.map +0 -1
  782. package/lib/commonjs/components/utils/nativeModulesInfo.js +0 -20
  783. package/lib/commonjs/components/utils/nativeModulesInfo.js.map +0 -1
  784. package/lib/commonjs/helpers/EventBus.js +0 -58
  785. package/lib/commonjs/helpers/EventBus.js.map +0 -1
  786. package/lib/commonjs/hooks/listenerToBus.js +0 -34
  787. package/lib/commonjs/hooks/listenerToBus.js.map +0 -1
  788. package/lib/commonjs/nativeComponent/UnitAddToWalletButton.js.map +0 -1
  789. package/lib/module/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/UNAddToWalletBottomSheetItem.js +0 -76
  790. package/lib/module/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/UNAddToWalletBottomSheetItem.js.map +0 -1
  791. package/lib/module/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/UNAddToWalletBottomSheetItem.styles.js.map +0 -1
  792. package/lib/module/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/index.js +0 -2
  793. package/lib/module/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/index.js.map +0 -1
  794. package/lib/module/components/utils/nativeModulesInfo.js +0 -13
  795. package/lib/module/components/utils/nativeModulesInfo.js.map +0 -1
  796. package/lib/module/helpers/EventBus.js +0 -51
  797. package/lib/module/helpers/EventBus.js.map +0 -1
  798. package/lib/module/hooks/listenerToBus.js +0 -25
  799. package/lib/module/hooks/listenerToBus.js.map +0 -1
  800. package/lib/module/nativeComponent/UnitAddToWalletButton.js.map +0 -1
  801. package/lib/typescript/components/UNActivityComponent/UNActivityComponent.d.ts +0 -13
  802. package/lib/typescript/components/UNActivityComponent/index.d.ts +0 -1
  803. package/lib/typescript/components/UNBottomSheetComponent/UNBottomSheetComponent.constants.d.ts +0 -1
  804. package/lib/typescript/components/UNBottomSheetComponent/UNBottomSheetComponent.d.ts +0 -8
  805. package/lib/typescript/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/UNAddToWalletBottomSheetItem.d.ts +0 -10
  806. package/lib/typescript/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/index.d.ts +0 -1
  807. package/lib/typescript/components/UNBottomSheetComponent/components/index.d.ts +0 -1
  808. package/lib/typescript/components/utils/nativeModulesInfo.d.ts +0 -1
  809. package/lib/typescript/helpers/EventBus.d.ts +0 -13
  810. package/lib/typescript/hooks/listenerToBus.d.ts +0 -7
  811. package/lib/typescript/messages/nativeMessages/bottomSheetMessage.d.ts +0 -9
  812. package/lib/typescript/messages/webMessages/paymentsMessage.d.ts +0 -3
  813. package/lib/typescript/store/index.d.ts +0 -1
  814. package/lib/typescript/store/store.d.ts +0 -6
  815. package/lib/typescript/types/internal/bottomSheet.types.d.ts +0 -35
  816. package/lib/typescript/types/shared/activity.types.d.ts +0 -7
  817. package/lib/typescript/types/shared/onLoadResponse.types.d.ts +0 -14
  818. package/lib/typescript/unitSdkManager/UnitSdk.api.d.ts +0 -3
  819. package/src/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/UNAddToWalletBottomSheetItem.tsx +0 -104
  820. package/src/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/index.ts +0 -1
  821. package/src/components/utils/nativeModulesInfo.ts +0 -11
  822. package/src/helpers/EventBus.ts +0 -58
  823. package/src/hooks/listenerToBus.ts +0 -31
  824. /package/lib/commonjs/{components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem → nativeComponents/UNAddToWallet/UNAddToWalletComponent}/UNAddToWalletBottomSheetItem.styles.js +0 -0
  825. /package/lib/module/{components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem → nativeComponents/UNAddToWallet/UNAddToWalletComponent}/UNAddToWalletBottomSheetItem.styles.js +0 -0
  826. /package/lib/module/{nativeComponent → nativeComponents/UNAddToWallet}/UnitAddToWalletButton.js +0 -0
  827. /package/src/{components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem → nativeComponents/UNAddToWallet/UNAddToWalletComponent}/UNAddToWalletBottomSheetItem.styles.ts +0 -0
  828. /package/src/{nativeComponent → nativeComponents/UNAddToWallet}/UnitAddToWalletButton.tsx +0 -0
@@ -0,0 +1,77 @@
1
+ import React, { useState } from 'react';
2
+ import { View } from 'react-native';
3
+ import { WebComponent } from '../../webComponent/WebComponent';
4
+ import { UNAccountData, UNError, UNOnLoadResponse, UNOnLoadResponseData } from '../../types/shared';
5
+ import { PresentationMode, WebComponentType } from '../../types/internal/webComponent.types';
6
+ import { WebViewMessage } from '../../messages/webMessages';
7
+ import { getProgramDetailsParams } from './UNProgramDetailsComponent.utils';
8
+ import { withReduxStore } from '../../helpers/store/helpers';
9
+ import { RESPONSE_KEYS, UnitOnLoadResponseEvent } from '../../messages/webMessages/onLoadMessage';
10
+ import { UnitMessage } from '../../messages/webMessages/unitMessages';
11
+ import { HeightEvent, PageMessage } from '../../messages/webMessages/pageMessage';
12
+
13
+ export interface UNProgramDetailsComponentProps {
14
+ // inputs
15
+ customerToken: string;
16
+ accountId: string;
17
+
18
+ // ui
19
+ theme?: string;
20
+ language?: string;
21
+ hideTitle?: boolean;
22
+
23
+ // events
24
+ onLoad?: (response: UNOnLoadResponse<[UNAccountData]>) => void;
25
+ }
26
+
27
+ const UNProgramDetailsComponent = (props: UNProgramDetailsComponentProps) => {
28
+ const [height, setHeight] = useState(0);
29
+
30
+ const handleUnitOnLoad = (response: UnitOnLoadResponseEvent) => {
31
+ console.log('handleUnitOnLoad', response);
32
+
33
+ if (!props.onLoad) {
34
+ return;
35
+ }
36
+
37
+ if (RESPONSE_KEYS.errors in response) {
38
+ props.onLoad(response as UNError);
39
+ return;
40
+ }
41
+
42
+ if (RESPONSE_KEYS.account in response) {
43
+ props.onLoad(response[RESPONSE_KEYS.account] as UNOnLoadResponseData<[UNAccountData]>);
44
+ return;
45
+ }
46
+
47
+ console.error('On Load Error: unexpected response type.');
48
+ return;
49
+ };
50
+
51
+ const handleMessage = (message: WebViewMessage) => {
52
+ switch (message.type) {
53
+ case UnitMessage.UNIT_ON_LOAD:
54
+ handleUnitOnLoad(message.details as UnitOnLoadResponseEvent);
55
+ break;
56
+
57
+ case PageMessage.PAGE_HEIGHT:
58
+ setHeight((message.details as HeightEvent).height);
59
+ break;
60
+ }
61
+ };
62
+
63
+ return (
64
+ <View style={{ height, width: '100%' }}>
65
+ <WebComponent
66
+ type={WebComponentType.programDetails}
67
+ presentationMode={PresentationMode.Default}
68
+ params={getProgramDetailsParams(props)}
69
+ theme={props.theme}
70
+ language={props.language}
71
+ onMessage={handleMessage}
72
+ />
73
+ </View>
74
+ );
75
+ };
76
+
77
+ export default withReduxStore<UNProgramDetailsComponentProps>(UNProgramDetailsComponent);
@@ -0,0 +1,9 @@
1
+ import { UNProgramDetailsComponentProps } from './UNProgramDetailsComponent';
2
+
3
+ export const getProgramDetailsParams = (props: UNProgramDetailsComponentProps) => {
4
+ return `
5
+ customer-token="${props.customerToken}"
6
+ account-id="${props.accountId}"
7
+ hide-title="${props.hideTitle || false}"
8
+ `;
9
+ };
@@ -0,0 +1,3 @@
1
+ export {
2
+ default as UNProgramDetailsComponent, UNProgramDetailsComponentProps,
3
+ } from './UNProgramDetailsComponent';
@@ -1,4 +1,5 @@
1
1
  export * from './UNCardComponent';
2
+ export * from './UNMultipleCardsComponent';
2
3
  export * from './UNBottomSheetComponent';
3
4
  export * from './UNBookPaymentComponent';
4
5
  export * from './UNActivityComponent';
@@ -6,3 +7,5 @@ export * from './UNAccountComponent';
6
7
  export * from './UNCheckDepositComponent';
7
8
  export * from './UNACHDebitComponent';
8
9
  export * from './UNACHCreditComponent';
10
+ export * from './UNProgramDetailsComponent';
11
+ export * from './UNNextRepaymentComponent';
@@ -8,6 +8,6 @@ export class UNFlows {
8
8
 
9
9
  public async startPushProvisioning(cardId: string, customerToken: string) {
10
10
  UnitSDK.setCustomerToken(customerToken);
11
- UNCardFlows.startPushProvisioning(cardId, customerToken);
11
+ await UNCardFlows.startPushProvisioning(cardId, customerToken);
12
12
  }
13
13
  }
@@ -1,23 +1,28 @@
1
- import EventBus from '../../helpers/EventBus';
2
- import { PresentationMode, WebComponentType } from '../../types/internal/webComponent.types';
3
- import { BottomSheetRenderingType, type WebComponentData, type WebComponentRendering } from '../../types/internal/bottomSheet.types';
1
+ import {
2
+ BottomSheetNativeComponentType, BottomSheetNativePlaceType,
3
+ BottomSheetRenderingType, NativeComponentRendering,
4
+ } from '../../types/internal/bottomSheet.types';
4
5
  import { BottomSheetNativeMessage } from '../../messages/nativeMessages/bottomSheetMessage';
6
+ import { setEvent } from '../../slices/SharedEventsSlice';
7
+ import { store } from '../../store/store';
8
+ import {
9
+ UNAddToWalletComponentProps,
10
+ } from '../../nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent';
5
11
 
6
12
  export class UNCardFlows {
7
13
  public static startPushProvisioning = async (cardId: string, customerToken: string) => {
8
14
  try {
9
- const addToWalletComponentData: WebComponentData = {
10
- type: WebComponentType.cardAction,
11
- presentationMode: PresentationMode.CoverInjectedHeight,
12
- params: `card-id=${cardId} customer-token=${customerToken} action=AddToWallet`,
15
+ const data: NativeComponentRendering = {
16
+ type: BottomSheetRenderingType.NativeComponent,
17
+ data: {
18
+ nativePlace: BottomSheetNativePlaceType.overFullScreen,
19
+ component: {
20
+ type: BottomSheetNativeComponentType.AddToWalletComponent,
21
+ props: { cardId: cardId, customerToken: customerToken } as UNAddToWalletComponentProps,
22
+ },
23
+ },
13
24
  };
14
-
15
- const event: WebComponentRendering = {
16
- type: BottomSheetRenderingType.WebComponent,
17
- data: addToWalletComponentData,
18
- };
19
-
20
- EventBus.Instance.event(BottomSheetNativeMessage.START_FLOW, event);
25
+ store.dispatch(setEvent({ key: BottomSheetNativeMessage.REQUEST_RENDERING, data }));
21
26
  } catch (error) {
22
27
  console.error(error);
23
28
  }
@@ -1,5 +1,5 @@
1
- import { Dimensions, StyleSheet } from 'react-native';
2
- import { BOTTOM_SHEET_MAX_PERCENTAGE_SIZE } from '../../components/UNBottomSheetComponent/UNBottomSheetComponent.constants';
1
+ import { StyleSheet } from 'react-native';
2
+
3
3
  import { VARIABLES } from '../../styles/variables';
4
4
 
5
5
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -10,7 +10,7 @@ export const getStylesObject = (fadeAnim: any) => {
10
10
  top: 0,
11
11
  bottom: 0,
12
12
  right: 0,
13
- left: 0
13
+ left: 0,
14
14
  },
15
15
  animation: {
16
16
  backgroundColor: 'black',
@@ -20,7 +20,6 @@ export const getStylesObject = (fadeAnim: any) => {
20
20
  container: {
21
21
  position: 'relative',
22
22
  flex: 1,
23
- marginTop: Dimensions.get('window').height * (1 - BOTTOM_SHEET_MAX_PERCENTAGE_SIZE),
24
23
  shadowColor: VARIABLES.COLORS.BLACK,
25
24
  shadowOffset: {
26
25
  width: 0,
@@ -32,12 +31,12 @@ export const getStylesObject = (fadeAnim: any) => {
32
31
  borderTopLeftRadius: 15,
33
32
  borderTopRightRadius: 15,
34
33
  backgroundColor: VARIABLES.COLORS.WHITE,
35
- overflow: 'hidden'
34
+ overflow: 'hidden',
36
35
  },
37
36
  lineContainer: {
38
37
  borderTopLeftRadius: 30,
39
38
  borderTopRightRadius: 30,
40
- alignItems: 'center'
39
+ alignItems: 'center',
41
40
  },
42
41
  line: {
43
42
  width: 35,
@@ -64,7 +63,7 @@ export const getStylesObject = (fadeAnim: any) => {
64
63
  padding: 7,
65
64
  top: 12,
66
65
  right: 12,
67
- zIndex: 100
68
- }
66
+ zIndex: 100,
67
+ },
69
68
  });
70
69
  };
@@ -2,35 +2,42 @@ import React, { ReactNode, useEffect, useRef, useState } from 'react';
2
2
  import {
3
3
  Animated,
4
4
  BackHandler,
5
- Dimensions,
6
5
  Easing,
7
6
  Image,
8
- KeyboardAvoidingView,
9
7
  LayoutChangeEvent,
10
8
  PanResponder,
9
+ Platform,
11
10
  TouchableOpacity,
12
11
  View,
13
12
  } from 'react-native';
14
13
  import PropTypes from 'prop-types';
15
14
  import { CloseIcon } from '../../assets/images';
16
- import { BOTTOM_SHEET_MAX_PERCENTAGE_SIZE } from '../../components/UNBottomSheetComponent/UNBottomSheetComponent.constants';
15
+ import {
16
+ androidStatusBarHeight,
17
+ fullScreenHeight, isAndroid10AndAbove,
18
+ statusBarHeight,
19
+ } from '../../components/UNBottomSheetComponent/UNBottomSheetComponent.constants';
17
20
  import { getStylesObject } from './BottomSheet.styles';
18
21
  import { useAppStateListener } from '../../hooks/useAppStateListener';
22
+ import { BottomSheetNativePlaceType } from '../../types/internal/bottomSheet.types';
19
23
 
20
24
  export interface BottomSheetProps {
21
- isOpen: boolean
22
- children: ReactNode
23
- sliderMaxHeight: number
24
- onOpen: () => void
25
- onClose: () => void
25
+ isOpen: boolean,
26
+ children: ReactNode,
27
+ onOpen: () => void,
28
+ onClose: () => void,
26
29
  height: number,
27
30
  animationDuration: number,
28
- expandToMaxHeightEnabled: boolean
29
- handleWebViewScroll: () => void
30
- shouldEnableBottomSheetScroll: boolean
31
+ expandToMaxHeightEnabled: boolean,
32
+ handleWebViewScroll: () => void,
33
+ shouldEnableBottomSheetScroll: boolean,
34
+ nativePlace?: BottomSheetNativePlaceType,
35
+ isComponentLoading?: boolean,
36
+ sliderMaxHeight: number
31
37
  }
32
38
 
33
39
  const BottomSheet = (props: BottomSheetProps) => {
40
+ const isStatic = props.nativePlace === BottomSheetNativePlaceType.modal;
34
41
  const panelHeightValue = useRef(new Animated.Value(props.sliderMaxHeight)).current;
35
42
  const fadeAnim = useRef(new Animated.Value(0)).current;
36
43
  const styles = getStylesObject(fadeAnim);
@@ -45,6 +52,7 @@ const BottomSheet = (props: BottomSheetProps) => {
45
52
 
46
53
  const _parentPanResponder = PanResponder.create({
47
54
  onMoveShouldSetPanResponderCapture: (_, gestureState) => {
55
+ if (isStatic) return false;
48
56
  return props.shouldEnableBottomSheetScroll && Math.abs(gestureState.dy) > 10;
49
57
  },
50
58
  onPanResponderMove(_, gestureState) {
@@ -52,7 +60,7 @@ const BottomSheet = (props: BottomSheetProps) => {
52
60
  props.handleWebViewScroll();
53
61
  }
54
62
  if (currentHeight + gestureState.dy < 0) return;
55
- if (!props.expandToMaxHeightEnabled && contentHeight && currentHeight + gestureState.dy < sliderMaxHeight - contentHeight) return;
63
+ if (!props.expandToMaxHeightEnabled && contentHeight && currentHeight + gestureState.dy < props.sliderMaxHeight - contentHeight) return;
56
64
  panelHeightValue.setValue(currentHeight + gestureState.dy);
57
65
  setDy(gestureState.dy);
58
66
  },
@@ -64,13 +72,13 @@ const BottomSheet = (props: BottomSheetProps) => {
64
72
  } else {
65
73
  expand();
66
74
  }
67
- }
75
+ },
68
76
  });
69
77
 
70
78
  useEffect(() => {
71
79
  // on App Active State change reset the bottom-sheet
72
80
  setContentHeight(0);
73
- _dismiss(false);
81
+ _dismiss();
74
82
  }, [isAppActive]);
75
83
 
76
84
  useEffect(() => {
@@ -97,31 +105,28 @@ const BottomSheet = (props: BottomSheetProps) => {
97
105
  Animated.timing(fadeAnim, {
98
106
  toValue: 0.3,
99
107
  duration: 500,
100
- useNativeDriver: false
108
+ useNativeDriver: false,
101
109
  }).start();
102
110
  };
103
111
 
104
- const fadeOut = (withTimeout = true) => {
112
+ const fadeOut = () => {
105
113
  /*
106
114
  withTimeout - most of the time we declare 'Close' after the animation is end.
107
115
  In a case that the app is not active we do it without timeout. (Otherwise a race condition may occur.)
108
116
  */
109
117
  setIsPanelOpened(false);
110
- !withTimeout && props.onClose();
111
118
  Animated.timing(fadeAnim, {
112
119
  toValue: 0,
113
120
  duration: 500,
114
- useNativeDriver: false
115
- }).start(() => {
116
- withTimeout && props.onClose();
117
- });
121
+ useNativeDriver: false,
122
+ }).start();
118
123
  };
119
124
 
120
125
  const setToContentHeight = (contentHeight: number) => {
121
126
  Animated.timing(panelHeightValue, {
122
127
  duration: props.animationDuration,
123
128
  easing: Easing.quad,
124
- toValue: sliderMaxHeight - contentHeight,
129
+ toValue: props.sliderMaxHeight - contentHeight,
125
130
  useNativeDriver: false,
126
131
  }).start();
127
132
  };
@@ -129,7 +134,7 @@ const BottomSheet = (props: BottomSheetProps) => {
129
134
  const expand = () => {
130
135
  const { animationDuration } = props;
131
136
  props.onOpen();
132
- if (contentHeight && currentHeight > (sliderMaxHeight - contentHeight)) {
137
+ if (contentHeight && currentHeight > (props.sliderMaxHeight - contentHeight)) {
133
138
  setToContentHeight(contentHeight);
134
139
  return;
135
140
  }
@@ -143,7 +148,7 @@ const BottomSheet = (props: BottomSheetProps) => {
143
148
  };
144
149
 
145
150
  const collapse = () => {
146
- if (contentHeight && currentHeight > (sliderMaxHeight - contentHeight)) {
151
+ if (contentHeight && currentHeight > (props.sliderMaxHeight - contentHeight)) {
147
152
  _dismiss();
148
153
  return;
149
154
  }
@@ -157,29 +162,28 @@ const BottomSheet = (props: BottomSheetProps) => {
157
162
 
158
163
  const _setSize = (e: LayoutChangeEvent) => {
159
164
  const newContentHeight = e.nativeEvent.layout.height;
160
-
161
165
  setContentHeight(newContentHeight);
162
166
  setToContentHeight(newContentHeight);
163
167
  };
164
168
 
165
- const _dismiss = (withTimeout = true) => {
169
+ const _dismiss = () => {
166
170
  const { animationDuration } = props;
167
171
  Animated.timing(panelHeightValue, {
168
172
  duration: animationDuration,
169
173
  easing: Easing.quad,
170
- toValue: sliderMaxHeight,
174
+ toValue: props.sliderMaxHeight,
171
175
  useNativeDriver: false,
172
176
  }).start(() => {
173
- null;
177
+ props.onClose();
174
178
  });
175
- fadeOut(withTimeout);
179
+ fadeOut();
176
180
  };
177
181
 
178
182
  const {
179
- sliderMaxHeight,
180
183
  children,
181
184
  } = props;
182
185
 
186
+ const isModal = props.nativePlace === BottomSheetNativePlaceType.modal;
183
187
  return (
184
188
  <>
185
189
  <TouchableOpacity
@@ -195,10 +199,14 @@ const BottomSheet = (props: BottomSheetProps) => {
195
199
  {..._parentPanResponder.panHandlers}
196
200
  style={{
197
201
  ...styles.container,
198
- height: sliderMaxHeight,
202
+ borderTopLeftRadius: isModal ? 0 : styles.container.borderTopLeftRadius,
203
+ borderTopRightRadius: isModal ? 0 : styles.container.borderTopRightRadius,
204
+ height: props.sliderMaxHeight,
205
+ marginTop: fullScreenHeight - props.sliderMaxHeight - ((!isModal && isAndroid10AndAbove) ? androidStatusBarHeight : 0),
199
206
  transform: [
200
207
  { translateY: panelHeightValue },
201
208
  ],
209
+ paddingTop: Platform.OS === 'ios' && isModal ? statusBarHeight : 0,
202
210
  }}
203
211
  >
204
212
  <View
@@ -215,13 +223,12 @@ const BottomSheet = (props: BottomSheetProps) => {
215
223
  <View
216
224
  onLayout={_setSize}
217
225
  >
218
- <KeyboardAvoidingView
219
- behavior="padding"
226
+ <View
220
227
  style={{ height: props.height }}
221
- keyboardVerticalOffset={props.height * (1 - BOTTOM_SHEET_MAX_PERCENTAGE_SIZE)}
222
228
  >
223
229
  {children}
224
- </KeyboardAvoidingView>
230
+ </View>
231
+
225
232
  </View>
226
233
  </View>
227
234
  </Animated.View>
@@ -232,22 +239,20 @@ const BottomSheet = (props: BottomSheetProps) => {
232
239
  BottomSheet.propTypes = {
233
240
  children: PropTypes.oneOfType([PropTypes.node]),
234
241
  isOpen: PropTypes.bool,
235
- sliderMaxHeight: PropTypes.number,
236
242
  animation: PropTypes.func,
237
243
  animationDuration: PropTypes.number,
238
244
  onOpen: PropTypes.func,
239
245
  onClose: PropTypes.func,
240
- expandToMaxHeightEnabled: PropTypes.bool
246
+ expandToMaxHeightEnabled: PropTypes.bool,
241
247
  };
242
248
 
243
249
  BottomSheet.defaultProps = {
244
250
  children: <View />,
245
251
  isOpen: true,
246
- sliderMaxHeight: Dimensions.get('window').height * BOTTOM_SHEET_MAX_PERCENTAGE_SIZE,
247
252
  animationDuration: 200,
248
253
  onOpen: () => null,
249
254
  onClose: () => null,
250
- expandToMaxHeightEnabled: false
255
+ expandToMaxHeightEnabled: false,
251
256
  };
252
257
 
253
258
  export default BottomSheet;
@@ -0,0 +1,31 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
2
+ import { UNNativePromiseReject, UNVPError, UNVPErrorType } from './types';
3
+
4
+ export const isUNVPError = (error: any): error is UNVPError => {
5
+ return 'code' in error &&
6
+ 'description' in error &&
7
+ 'type' in error &&
8
+ isUNVPErrorType(error.type) &&
9
+ 'correlationId' in error;
10
+ };
11
+
12
+ const isUNVPErrorType = (type: any): type is UNVPErrorType => {
13
+ return Object.values(UNVPErrorType).includes(type);
14
+ };
15
+
16
+ export const isUNNativePromiseReject = (error: any): error is UNNativePromiseReject => {
17
+ return 'code' in error && 'message' in error;
18
+ };
19
+
20
+ export const promiseRejectToUNVPErrorType = (error: any): UNVPErrorType | null => {
21
+ // validate the shape of a promise reject we get from iOS/Android native
22
+ if (!isUNNativePromiseReject(error)) {
23
+ return null;
24
+ }
25
+ const parsedError = JSON.parse(error.message);
26
+ // validate the shape of an error we get from VDE SDK
27
+ if (!isUNVPError(parsedError)) {
28
+ return null;
29
+ }
30
+ return parsedError.type;
31
+ };
@@ -1,10 +1,15 @@
1
- import { useEffect, useState } from 'react';
2
- import { UNWalletCode, type UNWallet, UNWalletName } from '../../../types/shared/wallet.types';
1
+ import { useEffect, useState, useRef } from 'react';
2
+ import { UNWalletCode, UNWalletName } from '../../../types/shared/wallet.types';
3
+ import type { UNWallet } from '../../../types/shared/wallet.types';
3
4
  import { UnitSDK } from '../../../unitSdkManager/UnitSdkManager';
4
5
  import { getMobileWalletPayload } from '../../../networking/requests/UNWalletPayloadRequest';
5
- import { useSelector } from 'react-redux';
6
- import { selectWallet } from '../../../slices/pushProvisioningSlice';
6
+ import { useSelector, useDispatch } from 'react-redux';
7
+ import { selectWallet, setSignedNonce } from '../../../slices/pushProvisioningSlice';
7
8
  import { useLaunchInitialize } from './useLaunchInitialize';
9
+ import { UNVPErrorType } from '../types';
10
+ import { promiseRejectToUNVPErrorType } from '../helpers';
11
+ import { UNErrorCodes, UNErrorData } from '../../../types/shared/error.types';
12
+ import { isUNError } from '../../../types/internal/errorHelpers';
8
13
 
9
14
  export type CardToEncryptedPayload = {
10
15
  [cardId: string]: string;
@@ -14,13 +19,19 @@ export const useCardWallet = (cardId: string) => {
14
19
  const [currentUNWallet, setCurrentUNWallet] = useState<UNWallet>();
15
20
  const { signedNonce } = useSelector(selectWallet);
16
21
  const { initializePushProvisioning } = useLaunchInitialize();
22
+ const dispatch = useDispatch();
23
+ const isRecoveringSignedNonceRef = useRef<boolean>(false);
24
+
25
+ const shouldRecoverVPSDKForError = (errorType: UNVPErrorType) => {
26
+ const recoveringTypes = [UNVPErrorType.PayloadDecryptionFailed, UNVPErrorType.SessionExpired, UNVPErrorType.InvalidNonce];
27
+ return recoveringTypes.includes(errorType);
28
+ };
17
29
 
18
30
  useEffect(() => {
19
31
  const getEncryptedPayload = async () => {
20
32
  const env = UnitSDK.getEnv();
21
33
  const customerToken = UnitSDK.getCustomerToken();
22
34
  if (!env || !customerToken) return;
23
-
24
35
  // In case we use flow
25
36
  if (!signedNonce) {
26
37
  await initializePushProvisioning();
@@ -37,13 +48,32 @@ export const useCardWallet = (cardId: string) => {
37
48
  const encryptedPayload = await getEncryptedPayload();
38
49
  if (!encryptedPayload) return;
39
50
  const walletsResponse = await currentProvisioningModule.launchGetWallets(JSON.stringify({ encPayload: encryptedPayload }));
40
-
41
51
  const unWallet: UNWallet | null = parseWalletsResponse(walletsResponse);
42
52
  if (!unWallet) return;
43
53
  setCurrentUNWallet(unWallet);
44
54
  return;
45
55
  } catch (error) {
46
- return Promise.reject(error);
56
+ console.error('Coudln\'t get card wallet data:', error);
57
+ if (isRecoveringSignedNonceRef.current) return;
58
+ isRecoveringSignedNonceRef.current = true;
59
+
60
+ // handle unit network api errors
61
+ if (isUNError(error)) {
62
+ const errors: UNErrorData[] = error.errors;
63
+ // errors will return in an array but hold only a single error element
64
+ if (errors[0]?.code === UNErrorCodes.INVALID_NONCE) {
65
+ dispatch(setSignedNonce(null));
66
+ }
67
+ return;
68
+ }
69
+
70
+ // handle VDE SDK errors
71
+ const errorType = promiseRejectToUNVPErrorType(error);
72
+ if (!errorType) return;
73
+ if (shouldRecoverVPSDKForError(errorType)) {
74
+ dispatch(setSignedNonce(null));
75
+ return;
76
+ }
47
77
  }
48
78
  };
49
79
 
@@ -51,7 +81,7 @@ export const useCardWallet = (cardId: string) => {
51
81
  }, [signedNonce, cardId]);
52
82
 
53
83
  return {
54
- currentUNWallet
84
+ currentUNWallet,
55
85
  };
56
86
 
57
87
  };
@@ -9,12 +9,10 @@ export const launchStartCardProvisioning = async (wallet: UNWallet | null) => {
9
9
  const response = await pushProvisioningModule.launchStartCardProvisioning(
10
10
  JSON.stringify({
11
11
  walletCode: wallet?.code,
12
- walletName: wallet?.name
12
+ walletName: wallet?.name,
13
13
  }));
14
14
  return response;
15
- }
16
-
17
- catch (error) {
18
- return Promise.reject(error);
15
+ } catch (error) {
16
+ console.log('ERROR -pushProvisioningModule.launchStartCardProvisioning: ', error);
19
17
  }
20
18
  };
@@ -0,0 +1,52 @@
1
+ export enum UNVPErrorType {
2
+ EmptyAppId = 'EmptyAppId',
3
+ DeviceAuthenticationFailed = 'DeviceAuthenticationFailed',
4
+ DeviceRootDetection = 'DeviceRootDetection',
5
+ HookDetection = 'HookDetection',
6
+ PlayIntegrityCheckFailed = 'PlayIntegrityCheckFailed',
7
+ EmptyEncryptedPayload = 'EmptyEncryptedPayload',
8
+ NoWallets = 'NoWallets',
9
+ InvalidCardId = 'InvalidCardId',
10
+ ProvisioningNotAllowed = 'ProvisioningNotAllowed',
11
+ CancelledByUser = 'CancelledByUser',
12
+ GoogleWalletCreationFailed = 'GoogleWalletCreationFailed',
13
+ UnknownErrorOccurred = 'UnknownErrorOccurred',
14
+ WalletProvisioningInconclusive = 'WalletProvisioningInconclusive',
15
+ WalletProvisioningError = 'WalletProvisioningError',
16
+ NetworkFailure = 'NetworkFailure',
17
+ SessionExpired = 'SessionExpired',
18
+ InvalidInfo = 'InvalidInfo',
19
+ PayloadDecryptionFailed = 'PayloadDecryptionFailed',
20
+ ApiError = 'ApiError',
21
+ InvalidNonce = 'InvalidNonce',
22
+ SDKLockout = 'SDKLockout',
23
+ NoBrowserFound = 'NoBrowserFound',
24
+ TLCMFeatureNotSupported = 'TLCMFeatureNotSupported',
25
+ TLCMUnsupportedWallet = 'TLCMUnsupportedWallet',
26
+ TLCMDetailsNotFoundInPaySdk = 'TLCMDetailsNotFoundInPaySdk',
27
+ TLCMTokenStatusExists = 'TLCMTokenStatusExists',
28
+ TLCMInvalidOperationInput = 'TLCMInvalidOperationInput',
29
+ TLCMInvalidRequest = 'TLCMInvalidRequest',
30
+ TLCMUpdateStatusNotAllowed = 'TLCMUpdateStatusNotAllowed',
31
+ TLCMTokenNotFound = 'TLCMTokenNotFound',
32
+ }
33
+
34
+ export interface UNVPError {
35
+ code: string;
36
+ description: string;
37
+ type: UNVPErrorType;
38
+ correlationId: string;
39
+ }
40
+
41
+ export type UNNativePromiseReject = {
42
+ code: string;
43
+ message: string;
44
+ }
45
+
46
+ export interface UNMobileWalletPayload {
47
+ data: {
48
+ attributes: {
49
+ payload: string;
50
+ };
51
+ };
52
+ }
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { Provider } from 'react-redux';
3
3
  import { store } from '../../store';
4
4
 
5
- export const withReduxStore = <Props, >(Component: React.ComponentType<any>) => {
5
+ export const withReduxStore = <Props,>(Component: React.ComponentType<any>) => {
6
6
  const Wrapper = (props: Props) => {
7
7
  return (
8
8
  <Provider store={store} >
@@ -0,0 +1,32 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
2
+
3
+ import { useEffect, useRef } from 'react';
4
+ import { useSelector } from 'react-redux';
5
+ import type { RootState } from '../store';
6
+ import type { NativeMessageType } from '../messages/nativeMessages';
7
+ import type { WebViewMessageType } from '../messages/webMessages';
8
+
9
+ export type BusEventKey = NativeMessageType | WebViewMessageType
10
+
11
+ type EventListener = {
12
+ busEventKey: BusEventKey,
13
+ action: (data: any) => void
14
+ }
15
+
16
+ export const useListenerToEvent = (listener: EventListener) => {
17
+ const isFirstRun = useRef(true);
18
+ const event = useSelector((state: RootState) => state.sharedEvents.event);
19
+ useEffect(() => {
20
+ if (isFirstRun.current) {
21
+ isFirstRun.current = false;
22
+ return;
23
+ }
24
+
25
+ if (event == null || event == undefined || event?.key != listener.busEventKey) {
26
+ return;
27
+ }
28
+
29
+ listener.action(event.data);
30
+
31
+ }, [event]);
32
+ };