react-native-unit-components 2.0.1 → 2.1.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 (244) hide show
  1. package/android/build.gradle +0 -4
  2. package/lib/commonjs/components/UNACHCreditComponent/UNACHCreditComponent.js.map +1 -1
  3. package/lib/commonjs/components/UNACHCreditComponent/UNACHCreditComponent.utils.js +1 -0
  4. package/lib/commonjs/components/UNACHCreditComponent/UNACHCreditComponent.utils.js.map +1 -1
  5. package/lib/commonjs/components/UNACHDebitComponent/UNACHDebitComponent.js.map +1 -1
  6. package/lib/commonjs/components/UNACHDebitComponent/UNACHDebitComponent.utils.js +1 -0
  7. package/lib/commonjs/components/UNACHDebitComponent/UNACHDebitComponent.utils.js.map +1 -1
  8. package/lib/commonjs/components/UNAccountComponent/UNAccountComponent.js.map +1 -1
  9. package/lib/commonjs/components/UNAccountComponent/UNAccountComponent.utils.js +2 -0
  10. package/lib/commonjs/components/UNAccountComponent/UNAccountComponent.utils.js.map +1 -1
  11. package/lib/commonjs/components/UNActivityComponent/UNActivityComponent.js +1 -1
  12. package/lib/commonjs/components/UNActivityComponent/UNActivityComponent.js.map +1 -1
  13. package/lib/commonjs/components/UNActivityComponent/UNActivityComponent.utils.js +3 -3
  14. package/lib/commonjs/components/UNActivityComponent/UNActivityComponent.utils.js.map +1 -1
  15. package/lib/commonjs/components/UNBottomSheetComponent/UNBottomSheetComponent.utils.js +54 -3
  16. package/lib/commonjs/components/UNBottomSheetComponent/UNBottomSheetComponent.utils.js.map +1 -1
  17. package/lib/commonjs/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/UNBottomSheetNativeComponent.js +3 -0
  18. package/lib/commonjs/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/UNBottomSheetNativeComponent.js.map +1 -1
  19. package/lib/commonjs/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/UNBottomSheetSlotComponent.js +7 -0
  20. package/lib/commonjs/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/UNBottomSheetSlotComponent.js.map +1 -1
  21. package/lib/commonjs/components/UNCardComponent/UNCardComponent.js.map +1 -1
  22. package/lib/commonjs/components/UNCardComponent/UNCardComponent.utils.js +2 -0
  23. package/lib/commonjs/components/UNCardComponent/UNCardComponent.utils.js.map +1 -1
  24. package/lib/commonjs/components/UNCreateCardComponent/UNCreateCardComponent.js +84 -0
  25. package/lib/commonjs/components/UNCreateCardComponent/UNCreateCardComponent.js.map +1 -0
  26. package/lib/commonjs/components/UNCreateCardComponent/UNCreateCardComponent.utils.js +19 -0
  27. package/lib/commonjs/components/UNCreateCardComponent/UNCreateCardComponent.utils.js.map +1 -0
  28. package/lib/commonjs/components/UNCreateCardComponent/index.js +21 -0
  29. package/lib/commonjs/components/UNCreateCardComponent/index.js.map +1 -0
  30. package/lib/commonjs/components/UNMultipleCardsComponent/UNMultipleCardsComponent.js +39 -8
  31. package/lib/commonjs/components/UNMultipleCardsComponent/UNMultipleCardsComponent.js.map +1 -1
  32. package/lib/commonjs/components/UNMultipleCardsComponent/UNMultipleCardsComponent.utils.js +18 -3
  33. package/lib/commonjs/components/UNMultipleCardsComponent/UNMultipleCardsComponent.utils.js.map +1 -1
  34. package/lib/commonjs/components/index.js +11 -0
  35. package/lib/commonjs/components/index.js.map +1 -1
  36. package/lib/commonjs/helpers/BottomSheet/BottomSheet.js +2 -2
  37. package/lib/commonjs/helpers/BottomSheet/BottomSheet.js.map +1 -1
  38. package/lib/commonjs/messages/webMessages/cardMessage.js +1 -0
  39. package/lib/commonjs/messages/webMessages/cardMessage.js.map +1 -1
  40. package/lib/commonjs/messages/webMessages/multipleCardsMessage.js +1 -0
  41. package/lib/commonjs/messages/webMessages/multipleCardsMessage.js.map +1 -1
  42. package/lib/commonjs/messages/webMessages/onLoadMessage.js +1 -0
  43. package/lib/commonjs/messages/webMessages/onLoadMessage.js.map +1 -1
  44. package/lib/commonjs/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.js +2 -0
  45. package/lib/commonjs/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.js.map +1 -1
  46. package/lib/commonjs/nativeComponents/UNBaseView/UNBaseView.js +3 -3
  47. package/lib/commonjs/nativeComponents/UNBaseView/UNBaseView.js.map +1 -1
  48. package/lib/commonjs/nativeComponents/UNSecureView/{UNSecureViewNativeComponent.js → UNSecureViewNativeComponent.android.js} +1 -1
  49. package/lib/commonjs/nativeComponents/UNSecureView/{UNSecureViewNativeComponent.js.map → UNSecureViewNativeComponent.android.js.map} +1 -1
  50. package/lib/commonjs/scripts/html/bodyScript.js +76 -48
  51. package/lib/commonjs/scripts/html/bodyScript.js.map +1 -1
  52. package/lib/commonjs/slices/SharedEventsSlice.js.map +1 -1
  53. package/lib/commonjs/types/internal/bottomSheet.types.js +1 -0
  54. package/lib/commonjs/types/internal/bottomSheet.types.js.map +1 -1
  55. package/lib/commonjs/types/internal/webComponent.types.js +1 -0
  56. package/lib/commonjs/types/internal/webComponent.types.js.map +1 -1
  57. package/lib/commonjs/types/shared/account.types.js +6 -1
  58. package/lib/commonjs/types/shared/account.types.js.map +1 -1
  59. package/lib/commonjs/types/shared/createCard.types.js +21 -0
  60. package/lib/commonjs/types/shared/createCard.types.js.map +1 -0
  61. package/lib/commonjs/types/shared/customer.types.js +5 -5
  62. package/lib/commonjs/types/shared/customer.types.js.map +1 -1
  63. package/lib/commonjs/types/shared/index.js +11 -0
  64. package/lib/commonjs/types/shared/index.js.map +1 -1
  65. package/lib/commonjs/unitComponentsSdkManager/UnitComponentsSdk.constants.js +1 -1
  66. package/lib/commonjs/unitComponentsSdkManager/UnitComponentsSdkManager.js +1 -1
  67. package/lib/commonjs/webComponent/html.js +8 -0
  68. package/lib/commonjs/webComponent/html.js.map +1 -1
  69. package/lib/module/components/UNACHCreditComponent/UNACHCreditComponent.js.map +1 -1
  70. package/lib/module/components/UNACHCreditComponent/UNACHCreditComponent.utils.js +1 -0
  71. package/lib/module/components/UNACHCreditComponent/UNACHCreditComponent.utils.js.map +1 -1
  72. package/lib/module/components/UNACHDebitComponent/UNACHDebitComponent.js.map +1 -1
  73. package/lib/module/components/UNACHDebitComponent/UNACHDebitComponent.utils.js +1 -0
  74. package/lib/module/components/UNACHDebitComponent/UNACHDebitComponent.utils.js.map +1 -1
  75. package/lib/module/components/UNAccountComponent/UNAccountComponent.js.map +1 -1
  76. package/lib/module/components/UNAccountComponent/UNAccountComponent.utils.js +2 -0
  77. package/lib/module/components/UNAccountComponent/UNAccountComponent.utils.js.map +1 -1
  78. package/lib/module/components/UNActivityComponent/UNActivityComponent.js +2 -2
  79. package/lib/module/components/UNActivityComponent/UNActivityComponent.js.map +1 -1
  80. package/lib/module/components/UNActivityComponent/UNActivityComponent.utils.js +1 -1
  81. package/lib/module/components/UNActivityComponent/UNActivityComponent.utils.js.map +1 -1
  82. package/lib/module/components/UNBottomSheetComponent/UNBottomSheetComponent.utils.js +55 -4
  83. package/lib/module/components/UNBottomSheetComponent/UNBottomSheetComponent.utils.js.map +1 -1
  84. package/lib/module/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/UNBottomSheetNativeComponent.js +3 -0
  85. package/lib/module/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/UNBottomSheetNativeComponent.js.map +1 -1
  86. package/lib/module/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/UNBottomSheetSlotComponent.js +7 -0
  87. package/lib/module/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/UNBottomSheetSlotComponent.js.map +1 -1
  88. package/lib/module/components/UNCardComponent/UNCardComponent.js.map +1 -1
  89. package/lib/module/components/UNCardComponent/UNCardComponent.utils.js +2 -0
  90. package/lib/module/components/UNCardComponent/UNCardComponent.utils.js.map +1 -1
  91. package/lib/module/components/UNCreateCardComponent/UNCreateCardComponent.js +76 -0
  92. package/lib/module/components/UNCreateCardComponent/UNCreateCardComponent.js.map +1 -0
  93. package/lib/module/components/UNCreateCardComponent/UNCreateCardComponent.utils.js +12 -0
  94. package/lib/module/components/UNCreateCardComponent/UNCreateCardComponent.utils.js.map +1 -0
  95. package/lib/module/components/UNCreateCardComponent/index.js +2 -0
  96. package/lib/module/components/UNCreateCardComponent/index.js.map +1 -0
  97. package/lib/module/components/UNMultipleCardsComponent/UNMultipleCardsComponent.js +40 -9
  98. package/lib/module/components/UNMultipleCardsComponent/UNMultipleCardsComponent.js.map +1 -1
  99. package/lib/module/components/UNMultipleCardsComponent/UNMultipleCardsComponent.utils.js +14 -2
  100. package/lib/module/components/UNMultipleCardsComponent/UNMultipleCardsComponent.utils.js.map +1 -1
  101. package/lib/module/components/index.js +1 -0
  102. package/lib/module/components/index.js.map +1 -1
  103. package/lib/module/helpers/BottomSheet/BottomSheet.js +2 -2
  104. package/lib/module/helpers/BottomSheet/BottomSheet.js.map +1 -1
  105. package/lib/module/messages/webMessages/cardMessage.js +1 -0
  106. package/lib/module/messages/webMessages/cardMessage.js.map +1 -1
  107. package/lib/module/messages/webMessages/multipleCardsMessage.js +1 -0
  108. package/lib/module/messages/webMessages/multipleCardsMessage.js.map +1 -1
  109. package/lib/module/messages/webMessages/onLoadMessage.js +1 -0
  110. package/lib/module/messages/webMessages/onLoadMessage.js.map +1 -1
  111. package/lib/module/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.js +2 -0
  112. package/lib/module/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.js.map +1 -1
  113. package/lib/module/nativeComponents/UNBaseView/UNBaseView.js +2 -1
  114. package/lib/module/nativeComponents/UNBaseView/UNBaseView.js.map +1 -1
  115. package/lib/module/nativeComponents/UNSecureView/{UNSecureViewNativeComponent.js → UNSecureViewNativeComponent.android.js} +1 -1
  116. package/lib/module/nativeComponents/UNSecureView/UNSecureViewNativeComponent.android.js.map +1 -0
  117. package/lib/module/scripts/html/bodyScript.js +75 -47
  118. package/lib/module/scripts/html/bodyScript.js.map +1 -1
  119. package/lib/module/slices/SharedEventsSlice.js.map +1 -1
  120. package/lib/module/types/internal/bottomSheet.types.js +1 -0
  121. package/lib/module/types/internal/bottomSheet.types.js.map +1 -1
  122. package/lib/module/types/internal/webComponent.types.js +1 -0
  123. package/lib/module/types/internal/webComponent.types.js.map +1 -1
  124. package/lib/module/types/shared/account.types.js +5 -0
  125. package/lib/module/types/shared/account.types.js.map +1 -1
  126. package/lib/module/types/shared/createCard.types.js +14 -0
  127. package/lib/module/types/shared/createCard.types.js.map +1 -0
  128. package/lib/module/types/shared/customer.types.js +4 -4
  129. package/lib/module/types/shared/customer.types.js.map +1 -1
  130. package/lib/module/types/shared/index.js +1 -0
  131. package/lib/module/types/shared/index.js.map +1 -1
  132. package/lib/module/unitComponentsSdkManager/UnitComponentsSdk.constants.js +1 -1
  133. package/lib/module/unitComponentsSdkManager/UnitComponentsSdkManager.js +1 -1
  134. package/lib/module/webComponent/html.js +9 -1
  135. package/lib/module/webComponent/html.js.map +1 -1
  136. package/lib/typescript/src/components/UNACHCreditComponent/UNACHCreditComponent.d.ts +2 -1
  137. package/lib/typescript/src/components/UNACHCreditComponent/UNACHCreditComponent.d.ts.map +1 -1
  138. package/lib/typescript/src/components/UNACHCreditComponent/UNACHCreditComponent.utils.d.ts.map +1 -1
  139. package/lib/typescript/src/components/UNACHDebitComponent/UNACHDebitComponent.d.ts +2 -1
  140. package/lib/typescript/src/components/UNACHDebitComponent/UNACHDebitComponent.d.ts.map +1 -1
  141. package/lib/typescript/src/components/UNACHDebitComponent/UNACHDebitComponent.utils.d.ts.map +1 -1
  142. package/lib/typescript/src/components/UNAccountComponent/UNAccountComponent.d.ts +2 -1
  143. package/lib/typescript/src/components/UNAccountComponent/UNAccountComponent.d.ts.map +1 -1
  144. package/lib/typescript/src/components/UNAccountComponent/UNAccountComponent.utils.d.ts +1 -1
  145. package/lib/typescript/src/components/UNAccountComponent/UNAccountComponent.utils.d.ts.map +1 -1
  146. package/lib/typescript/src/components/UNActivityComponent/UNActivityComponent.utils.d.ts +1 -1
  147. package/lib/typescript/src/components/UNActivityComponent/UNActivityComponent.utils.d.ts.map +1 -1
  148. package/lib/typescript/src/components/UNBottomSheetComponent/UNBottomSheetComponent.utils.d.ts +2 -2
  149. package/lib/typescript/src/components/UNBottomSheetComponent/UNBottomSheetComponent.utils.d.ts.map +1 -1
  150. package/lib/typescript/src/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/UNBottomSheetNativeComponent.d.ts.map +1 -1
  151. package/lib/typescript/src/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/UNBottomSheetSlotComponent.d.ts.map +1 -1
  152. package/lib/typescript/src/components/UNCardComponent/UNCardComponent.d.ts +2 -0
  153. package/lib/typescript/src/components/UNCardComponent/UNCardComponent.d.ts.map +1 -1
  154. package/lib/typescript/src/components/UNCardComponent/UNCardComponent.utils.d.ts.map +1 -1
  155. package/lib/typescript/src/components/UNCreateCardComponent/UNCreateCardComponent.d.ts +16 -0
  156. package/lib/typescript/src/components/UNCreateCardComponent/UNCreateCardComponent.d.ts.map +1 -0
  157. package/lib/typescript/src/components/UNCreateCardComponent/UNCreateCardComponent.utils.d.ts +3 -0
  158. package/lib/typescript/src/components/UNCreateCardComponent/UNCreateCardComponent.utils.d.ts.map +1 -0
  159. package/lib/typescript/src/components/UNCreateCardComponent/index.d.ts +2 -0
  160. package/lib/typescript/src/components/UNCreateCardComponent/index.d.ts.map +1 -0
  161. package/lib/typescript/src/components/UNMultipleCardsComponent/UNMultipleCardsComponent.d.ts +1 -0
  162. package/lib/typescript/src/components/UNMultipleCardsComponent/UNMultipleCardsComponent.d.ts.map +1 -1
  163. package/lib/typescript/src/components/UNMultipleCardsComponent/UNMultipleCardsComponent.utils.d.ts +5 -0
  164. package/lib/typescript/src/components/UNMultipleCardsComponent/UNMultipleCardsComponent.utils.d.ts.map +1 -1
  165. package/lib/typescript/src/components/index.d.ts +1 -0
  166. package/lib/typescript/src/components/index.d.ts.map +1 -1
  167. package/lib/typescript/src/messages/webMessages/cardMessage.d.ts +4 -2
  168. package/lib/typescript/src/messages/webMessages/cardMessage.d.ts.map +1 -1
  169. package/lib/typescript/src/messages/webMessages/multipleCardsMessage.d.ts +4 -2
  170. package/lib/typescript/src/messages/webMessages/multipleCardsMessage.d.ts.map +1 -1
  171. package/lib/typescript/src/messages/webMessages/onLoadMessage.d.ts +7 -3
  172. package/lib/typescript/src/messages/webMessages/onLoadMessage.d.ts.map +1 -1
  173. package/lib/typescript/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.d.ts +2 -0
  174. package/lib/typescript/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.d.ts.map +1 -1
  175. package/lib/typescript/src/nativeComponents/UNBaseView/UNBaseView.d.ts.map +1 -1
  176. package/lib/typescript/src/nativeComponents/UNSecureView/{UNSecureViewNativeComponent.d.ts → UNSecureViewNativeComponent.android.d.ts} +1 -1
  177. package/lib/typescript/src/nativeComponents/UNSecureView/UNSecureViewNativeComponent.android.d.ts.map +1 -0
  178. package/lib/typescript/src/scripts/html/bodyScript.d.ts +6 -2
  179. package/lib/typescript/src/scripts/html/bodyScript.d.ts.map +1 -1
  180. package/lib/typescript/src/slices/SharedEventsSlice.d.ts +11 -3
  181. package/lib/typescript/src/slices/SharedEventsSlice.d.ts.map +1 -1
  182. package/lib/typescript/src/store/store.d.ts +14 -2
  183. package/lib/typescript/src/store/store.d.ts.map +1 -1
  184. package/lib/typescript/src/types/internal/bottomSheet.types.d.ts +8 -2
  185. package/lib/typescript/src/types/internal/bottomSheet.types.d.ts.map +1 -1
  186. package/lib/typescript/src/types/internal/webComponent.types.d.ts +1 -0
  187. package/lib/typescript/src/types/internal/webComponent.types.d.ts.map +1 -1
  188. package/lib/typescript/src/types/shared/account.types.d.ts +4 -0
  189. package/lib/typescript/src/types/shared/account.types.d.ts.map +1 -1
  190. package/lib/typescript/src/types/shared/createCard.types.d.ts +166 -0
  191. package/lib/typescript/src/types/shared/createCard.types.d.ts.map +1 -0
  192. package/lib/typescript/src/types/shared/customer.types.d.ts +3 -3
  193. package/lib/typescript/src/types/shared/customer.types.d.ts.map +1 -1
  194. package/lib/typescript/src/types/shared/index.d.ts +1 -0
  195. package/lib/typescript/src/types/shared/index.d.ts.map +1 -1
  196. package/lib/typescript/src/webComponent/html.d.ts.map +1 -1
  197. package/lib/typescript/tests/e2e/app-tests.d.ts +2 -0
  198. package/lib/typescript/tests/e2e/app-tests.d.ts.map +1 -0
  199. package/lib/typescript/tests/e2e/component-tests.d.ts +2 -0
  200. package/lib/typescript/tests/e2e/component-tests.d.ts.map +1 -0
  201. package/lib/typescript/tests/e2e/main.test.d.ts +2 -0
  202. package/lib/typescript/tests/e2e/main.test.d.ts.map +1 -0
  203. package/lib/typescript/tests/utils.d.ts +3 -0
  204. package/lib/typescript/tests/utils.d.ts.map +1 -0
  205. package/package.json +9 -4
  206. package/src/components/UNACHCreditComponent/UNACHCreditComponent.tsx +2 -1
  207. package/src/components/UNACHCreditComponent/UNACHCreditComponent.utils.ts +1 -0
  208. package/src/components/UNACHDebitComponent/UNACHDebitComponent.tsx +2 -1
  209. package/src/components/UNACHDebitComponent/UNACHDebitComponent.utils.ts +1 -0
  210. package/src/components/UNAccountComponent/UNAccountComponent.tsx +3 -2
  211. package/src/components/UNAccountComponent/UNAccountComponent.utils.ts +2 -1
  212. package/src/components/UNActivityComponent/UNActivityComponent.tsx +2 -2
  213. package/src/components/UNActivityComponent/UNActivityComponent.utils.ts +1 -1
  214. package/src/components/UNBottomSheetComponent/UNBottomSheetComponent.utils.ts +56 -1
  215. package/src/components/UNBottomSheetComponent/components/UNBottomSheetNativeComponent/UNBottomSheetNativeComponent.tsx +7 -0
  216. package/src/components/UNBottomSheetComponent/components/UNBottomSheetSlotComponent/UNBottomSheetSlotComponent.tsx +7 -0
  217. package/src/components/UNCardComponent/UNCardComponent.tsx +2 -0
  218. package/src/components/UNCardComponent/UNCardComponent.utils.ts +4 -1
  219. package/src/components/UNCreateCardComponent/UNCreateCardComponent.tsx +94 -0
  220. package/src/components/UNCreateCardComponent/UNCreateCardComponent.utils.ts +14 -0
  221. package/src/components/UNCreateCardComponent/index.ts +1 -0
  222. package/src/components/UNMultipleCardsComponent/UNMultipleCardsComponent.tsx +44 -9
  223. package/src/components/UNMultipleCardsComponent/UNMultipleCardsComponent.utils.ts +17 -2
  224. package/src/components/index.ts +1 -0
  225. package/src/helpers/BottomSheet/BottomSheet.tsx +2 -2
  226. package/src/messages/webMessages/cardMessage.ts +6 -1
  227. package/src/messages/webMessages/multipleCardsMessage.ts +3 -1
  228. package/src/messages/webMessages/onLoadMessage.ts +9 -2
  229. package/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.tsx +6 -0
  230. package/src/nativeComponents/UNBaseView/UNBaseView.tsx +2 -1
  231. package/src/scripts/html/bodyScript.ts +77 -48
  232. package/src/slices/SharedEventsSlice.ts +15 -3
  233. package/src/types/internal/bottomSheet.types.ts +9 -1
  234. package/src/types/internal/webComponent.types.ts +1 -0
  235. package/src/types/shared/account.types.ts +5 -0
  236. package/src/types/shared/createCard.types.ts +187 -0
  237. package/src/types/shared/customer.types.ts +3 -3
  238. package/src/types/shared/index.ts +1 -0
  239. package/src/unitComponentsSdkManager/UnitComponentsSdk.constants.ts +1 -1
  240. package/src/unitComponentsSdkManager/UnitComponentsSdkManager.ts +1 -1
  241. package/src/webComponent/html.ts +11 -1
  242. package/lib/module/nativeComponents/UNSecureView/UNSecureViewNativeComponent.js.map +0 -1
  243. package/lib/typescript/src/nativeComponents/UNSecureView/UNSecureViewNativeComponent.d.ts.map +0 -1
  244. /package/src/nativeComponents/UNSecureView/{UNSecureViewNativeComponent.ts → UNSecureViewNativeComponent.android.ts} +0 -0
@@ -0,0 +1,166 @@
1
+ import { UNAccountType } from './account.types';
2
+ import { UNCustomerType } from './customer.types';
3
+ import { UNAddress, UNBusinessContact, UNFullName, UNPhone } from './types';
4
+ export declare enum UNCreateCardType {
5
+ Virtual = "virtual",
6
+ Physical = "physical"
7
+ }
8
+ export type UNCreateCardComponentResources = {
9
+ type: 'createCardComponentResources';
10
+ attributes: {
11
+ accounts: UNCreateCardComponentAccount[];
12
+ customer: UNCreateCardCustomer;
13
+ possibleCardholders: UNCardholder[];
14
+ resourceDiscovery: UNResourceDiscovery;
15
+ bin?: UNBin[];
16
+ };
17
+ };
18
+ export type UNCreateCardCustomer = UNCreateCardComponentIndividualCustomer | UNCreateCardComponentBusinessCustomer;
19
+ export type UNCreateCardComponentIndividualCustomer = {
20
+ type: UNCustomerType.IndividualCustomer;
21
+ attributes: {
22
+ fullName: UNFullName;
23
+ address: UNAddress;
24
+ dateOfBirth: Date;
25
+ email: string;
26
+ phone: UNPhone;
27
+ };
28
+ };
29
+ export type UNCreateCardComponentBusinessCustomer = {
30
+ type: UNCustomerType.BusinessCustomer;
31
+ attributes: {
32
+ name: UNFullName;
33
+ address: UNAddress;
34
+ phone: UNPhone;
35
+ contact: UNBusinessContact;
36
+ };
37
+ };
38
+ export type UNCreateCardComponentAccount = UNCreateCardComponentDepositAccount | UNCreateCardComponentCreditAccount;
39
+ export type UNCreateCardComponentDepositAccount = {
40
+ type: UNAccountType.DepositAccount;
41
+ id: string;
42
+ attributes: {
43
+ name: string;
44
+ tags: {
45
+ [key: string]: string;
46
+ };
47
+ routingNumber: string;
48
+ accountNumber: string;
49
+ };
50
+ };
51
+ export type UNCreateCardComponentCreditAccount = {
52
+ type: UNAccountType.CreditAccount;
53
+ id: string;
54
+ attributes: {
55
+ name: string;
56
+ tags: {
57
+ [key: string]: string;
58
+ };
59
+ };
60
+ };
61
+ export type UNCardholderAttributes = {
62
+ fullName: UNFullName;
63
+ address?: UNAddress;
64
+ dateOfBirth?: Date;
65
+ email?: string;
66
+ phone?: UNPhone;
67
+ };
68
+ export type UNCardholder = {
69
+ type: 'possibleCardholder';
70
+ attributes: UNCardholderAttributes;
71
+ };
72
+ export interface UNResourceDiscovery {
73
+ type: 'resourceDiscovery';
74
+ attributes: {
75
+ featureSettings?: UNFeatureSettings;
76
+ accountManifest?: UNAccountManifest[];
77
+ legalLinks?: UNLegalLinks;
78
+ brandName?: string;
79
+ supportComponent?: UNSupportComponent;
80
+ };
81
+ relationships: {
82
+ customer: {
83
+ data: {
84
+ type: 'customer';
85
+ id: string;
86
+ };
87
+ };
88
+ accounts: {
89
+ data: UNRelationship[];
90
+ };
91
+ cards: {
92
+ data: UNRelationship[];
93
+ };
94
+ };
95
+ }
96
+ export interface UNFeatureSettings {
97
+ wirePayment?: {
98
+ enabled: boolean;
99
+ };
100
+ achDebitPayment?: {
101
+ enabled: boolean;
102
+ };
103
+ quickbooks?: {
104
+ enabled: boolean;
105
+ };
106
+ sameDayAch?: {
107
+ enabled: boolean;
108
+ };
109
+ appUsers?: {
110
+ enabled: boolean;
111
+ };
112
+ }
113
+ export interface UNAccountManifest {
114
+ type: 'depositAccountManifest';
115
+ attributes: {
116
+ accountId: string;
117
+ bankName: string;
118
+ maxNumberOfPhysicalCards?: number;
119
+ maxNumberOfVirtualCards?: number;
120
+ dailyCardWithdrawalLimit: number;
121
+ dailyCardDepositLimit: number;
122
+ dailyCardPurchaseLimit: number;
123
+ outgoingWireFee: number;
124
+ outgoingAchFee: number;
125
+ sameDayAchFee: number;
126
+ };
127
+ }
128
+ export interface UNLegalLinks {
129
+ privacyPolicyUrl?: string;
130
+ electronicDisclosuresUrl?: string;
131
+ depositTermsUrl?: string;
132
+ clientTermsUrl?: string;
133
+ cardholderTermsUrl?: string;
134
+ cashAdvancedTermsUrl?: string;
135
+ debitCardDisclosureUrl?: string;
136
+ additionalDisclosures?: UNAdditionalDisclosure[];
137
+ }
138
+ export type UNAdditionalDisclosure = {
139
+ title: string;
140
+ url: string;
141
+ };
142
+ export type UNSupportComponent = {
143
+ attributes: {
144
+ provider?: UNSupportType;
145
+ widgetId?: string;
146
+ widgetToken?: string;
147
+ };
148
+ };
149
+ export declare enum UNSupportType {
150
+ Zendesk = "zendesk"
151
+ }
152
+ type UNRelationship = {
153
+ type: string;
154
+ id: string;
155
+ };
156
+ export type UNBin = {
157
+ attributes: {
158
+ bin: string;
159
+ institutionId: string;
160
+ product: string;
161
+ };
162
+ type: 'whiteLabelBinDto';
163
+ };
164
+ export declare function parseUNCreateCardTypes(input?: string | null): UNCreateCardType[];
165
+ export {};
166
+ //# sourceMappingURL=createCard.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createCard.types.d.ts","sourceRoot":"","sources":["../../../../../src/types/shared/createCard.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAE5E,oBAAY,gBAAgB;IAC1B,OAAO,YAAY;IACnB,QAAQ,aAAa;CACtB;AAED,MAAM,MAAM,8BAA8B,GAAG;IAC3C,IAAI,EAAE,8BAA8B,CAAA;IACpC,UAAU,EAAE;QACV,QAAQ,EAAE,4BAA4B,EAAE,CAAA;QACxC,QAAQ,EAAE,oBAAoB,CAAA;QAC9B,mBAAmB,EAAE,YAAY,EAAE,CAAA;QACnC,iBAAiB,EAAE,mBAAmB,CAAA;QACtC,GAAG,CAAC,EAAE,KAAK,EAAE,CAAA;KACd,CAAA;CACF,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG,uCAAuC,GAAG,qCAAqC,CAAA;AAElH,MAAM,MAAM,uCAAuC,GAAG;IACpD,IAAI,EAAE,cAAc,CAAC,kBAAkB,CAAA;IACvC,UAAU,EAAE;QACV,QAAQ,EAAE,UAAU,CAAA;QACpB,OAAO,EAAE,SAAS,CAAA;QAClB,WAAW,EAAE,IAAI,CAAA;QACjB,KAAK,EAAE,MAAM,CAAA;QACb,KAAK,EAAE,OAAO,CAAA;KACf,CAAA;CACF,CAAA;AAED,MAAM,MAAM,qCAAqC,GAAG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AE,MAAM,CAAA;KACtB,CAAA;CACF;AAED,MAAM,WAAW,YAAY;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,wBAAwB,CAAC,EAAE,MAAM,CAAA;IACjC,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B,qBAAqB,CAAC,EAAE,sBAAsB,EAAE,CAAA;CACjD;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,UAAU,EAAE;QACV,QAAQ,CAAC,EAAE,aAAa,CAAA;QACxB,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,WAAW,CAAC,EAAE,MAAM,CAAA;KACrB,CAAA;CACF,CAAA;AAED,oBAAY,aAAa;IACvB,OAAO,YAAY;CACpB;AAED,KAAK,cAAc,GAAG;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,MAAM,CAAA;CACX,CAAA;AAED,MAAM,MAAM,KAAK,GAAG;IAClB,UAAU,EAAE;QACV,GAAG,EAAE,MAAM,CAAA;QACX,aAAa,EAAE,MAAM,CAAA;QACrB,OAAO,EAAE,MAAM,CAAA;KAChB,CAAA;IACD,IAAI,EAAE,kBAAkB,CAAA;CACzB,CAAA;AAED,wBAAgB,sBAAsB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,gBAAgB,EAAE,CAOhF"}
@@ -1,7 +1,7 @@
1
1
  import { Permissible, UNAddress, UNBusinessContact, UNFullName, UNPhone } from './types';
2
2
  export type UNCustomer = UNIndividualCustomer | UNBusinessCustomer;
3
3
  export type UNBusinessCustomer = {
4
- type: CustomerType.BusinessCustomer;
4
+ type: UNCustomerType.BusinessCustomer;
5
5
  id: string;
6
6
  attributes: {
7
7
  createdAt: Date;
@@ -40,7 +40,7 @@ export type UNBusinessCustomer = {
40
40
  };
41
41
  };
42
42
  export type UNIndividualCustomer = {
43
- type: CustomerType.IndividualCustomer;
43
+ type: UNCustomerType.IndividualCustomer;
44
44
  id: string;
45
45
  attributes: {
46
46
  createdAt: Date;
@@ -84,7 +84,7 @@ export type UNIndividualCustomer = {
84
84
  };
85
85
  };
86
86
  };
87
- export declare enum CustomerType {
87
+ export declare enum UNCustomerType {
88
88
  IndividualCustomer = "individualCustomer",
89
89
  BusinessCustomer = "businessCustomer"
90
90
  }
@@ -1 +1 @@
1
- {"version":3,"file":"customer.types.d.ts","sourceRoot":"","sources":["../../../../../src/types/shared/customer.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,iBAAiB,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEzF,MAAM,MAAM,UAAU,GAAG,oBAAoB,GAAG,kBAAkB,CAAA;AAElE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,YAAY,CAAC,gBAAgB,CAAA;IACnC,EAAE,EAAE,MAAM,CAAA;IACV,UAAU,EAAE;QACV,SAAS,EAAE,IAAI,CAAA;QACf,IAAI,EAAE,UAAU,CAAA;QAChB,GAAG,CAAC,EAAE,MAAM,CAAA;QACZ,OAAO,EAAE,SAAS,CAAA;QAClB,KAAK,EAAE,OAAO,CAAA;QACd,mBAAmB,EAAE,IAAI,CAAA;QACzB,oBAAoB,EAAE,MAAM,CAAA;QAC5B,KAAK,EAAE,MAAM,CAAA;QACb,GAAG,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;QACxB,UAAU,EAAE,aAAa,GAAG,KAAK,CAAA;QACjC,OAAO,EAAE,iBAAiB,CAAA;QAC1B,OAAO,EAAE,MAAM,CAAA;QACf,IAAI,EAAE;YAAE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,CAAA;SAAE,CAAA;QAC/B,QAAQ,EAAE,UAAU,CAAA;QACpB,SAAS,CAAC,EAAE,MAAM,CAAA;QAClB,cAAc,CAAC,EAAE,MAAM,CAAA;QACvB,uBAAuB,CAAC,EAAE,MAAM,CAAA;QAChC,eAAe,EAAE,gBAAgB,EAAE,CAAA;QACnC,MAAM,EAAE,gBAAgB,CAAA;QACxB,aAAa,CAAC,EAAE,eAAe,CAAA;KAChC,CAAA;IACD,aAAa,EAAE;QACb,GAAG,EAAE;YACH,IAAI,EAAE;gBACJ,IAAI,EAAE,KAAK,CAAA;gBACX,EAAE,EAAE,MAAM,CAAA;aACX,CAAA;SACF,CAAA;QACD,WAAW,CAAC,EAAE;YACZ,IAAI,EAAE;gBACJ,IAAI,EAAE,MAAM,CAAA;gBACZ,EAAE,EAAE,MAAM,CAAA;aACX,CAAA;SACF,CAAA;KACF,CAAA;CACF,CAAA;AAED,oBAAY,YAAY;IACtB,kBAAkB,uBAAuB;IACzC,gBAAgB,qBAAqB;CACtC;AAED,oBAAY,gBAAgB;IAC1B,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB;AAED,oBAAY,eAAe;IACzB,QAAQ,aAAa;IACrB,gBAAgB,qBAAqB;IACrC,iBAAiB,sBAAsB;IACvC,kBAAkB,uBAAuB;IACzC,uBAAuB,4BAA4B;IACnD,oBAAoB,yBAAyB;IAC7C,qBAAqB,0BAA0B;IAC/C,+BAA+B,oCAAoC;CACpE;AAED,oBAAY,UAAU;IACpB,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,IAAI,SAAS;CACd;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,UAAU,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,OAAO,CAAA;CACf,CAAA"}
1
+ {"version":3,"file":"customer.types.d.ts","sourceRoot":"","sources":["../../../../../src/types/shared/customer.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAA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AA;AAED,oBAAY,cAAc;IACxB,kBAAkB,uBAAuB;IACzC,gBAAgB,qBAAqB;CACtC;AAED,oBAAY,gBAAgB;IAC1B,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB;AAED,oBAAY,eAAe;IACzB,QAAQ,aAAa;IACrB,gBAAgB,qBAAqB;IACrC,iBAAiB,sBAAsB;IACvC,kBAAkB,uBAAuB;IACzC,uBAAuB,4BAA4B;IACnD,oBAAoB,yBAAyB;IAC7C,qBAAqB,0BAA0B;IAC/C,+BAA+B,oCAAoC;CACpE;AAED,oBAAY,UAAU;IACpB,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,IAAI,SAAS;CACd;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,UAAU,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,OAAO,CAAA;CACf,CAAA"}
@@ -18,4 +18,5 @@ export * from './repayment.types';
18
18
  export * from './multiFactorAuthentication.types';
19
19
  export * from './env.types';
20
20
  export * from './securitySettings';
21
+ export * from './createCard.types';
21
22
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/types/shared/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mCAAmC,CAAC;AAClD,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/types/shared/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mCAAmC,CAAC;AAClD,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../../../../src/webComponent/html.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,gBAAgB;;;;;;CAM5B,CAAC;AAEF,QAAA,MAAM,QAAQ,QAyFb,CAAC;AAEF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../../../../src/webComponent/html.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,gBAAgB;;;;;;CAM5B,CAAC;AAEF,QAAA,MAAM,QAAQ,QAiGb,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=app-tests.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-tests.d.ts","sourceRoot":"","sources":["../../../../tests/e2e/app-tests.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=component-tests.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component-tests.d.ts","sourceRoot":"","sources":["../../../../tests/e2e/component-tests.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=main.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.test.d.ts","sourceRoot":"","sources":["../../../../tests/e2e/main.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export declare const test: (testName: string, func: () => Promise<void>) => void;
2
+ export declare const testElementHeight: (elementId: string, threshold: number, elementName: string) => Promise<void>;
3
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../tests/utils.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI,aAAc,MAAM,QAAQ,MAAM,QAAQ,IAAI,CAAC,KAAG,IAQlE,CAAC;AAmBF,eAAO,MAAM,iBAAiB,cACjB,MAAM,aACN,MAAM,eACJ,MAAM,KAClB,QAAQ,IAAI,CA2Bd,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-unit-components",
3
- "version": "2.0.1",
3
+ "version": "2.1.0",
4
4
  "description": "Unit React Native components",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -31,7 +31,9 @@
31
31
  "cleanNodeModules": "rm -rf node_modules",
32
32
  "bootstrap": "yarn cleanNodeModules && yarn example cleanNodeModules && yarn example && yarn && yarn example pods",
33
33
  "cleanAll": "rm -rf node_modules example/node_modules android/build example/android/build example/ios/pods",
34
- "installAll": "yarn install && cd example && yarn install && cd ios && pod install"
34
+ "installAll": "yarn installOldArch && yarn installNewArch",
35
+ "installOldArch": "yarn install && cd example && yarn install && cd ios && pod install",
36
+ "installNewArch": "yarn install && cd exampleNewArch && yarn install && cd ios && pod install"
35
37
  },
36
38
  "keywords": [
37
39
  "react-native",
@@ -48,24 +50,26 @@
48
50
  "@babel/eslint-parser": "^7.18.2",
49
51
  "@react-native-community/eslint-config": "^3.0.2",
50
52
  "@react-native/codegen": "^0.78.0",
51
- "@types/jest": "^26.0.14",
53
+ "@types/jest": "^29.5",
52
54
  "@types/react": "18.2.0",
53
55
  "@types/react-native": "^0.69.9",
54
56
  "@typescript-eslint/eslint-plugin": "^5.45.0",
55
57
  "@typescript-eslint/parser": "^5.45.0",
58
+ "detox": "20.39.0",
56
59
  "eslint": "^8.54.0",
57
60
  "eslint-config-airbnb": "^19.0.4",
58
61
  "eslint-config-prettier": "^9.0.0",
59
62
  "eslint-plugin-prettier": "^5.0.1",
60
63
  "eslint-plugin-react": "^7.33.2",
61
64
  "eslint-plugin-react-hooks": "^4.6.0",
62
- "jest": "^29.7.0",
65
+ "jest": "~29.7",
63
66
  "prettier": "^2.0.5",
64
67
  "react": "18.2.0",
65
68
  "react-native": "0.69.9",
66
69
  "react-native-builder-bob": "^0.23.2",
67
70
  "react-native-tscodegen": "^0.72.0",
68
71
  "react-native-webview": "^13.6.3",
72
+ "ts-jest": "29.3.4",
69
73
  "typescript": "^4.5.2"
70
74
  },
71
75
  "resolutions": {
@@ -88,6 +92,7 @@
88
92
  "preset": "react-native",
89
93
  "modulePathIgnorePatterns": [
90
94
  "<rootDir>/example/node_modules",
95
+ "<rootDir>/exampleNewArch/node_modules",
91
96
  "<rootDir>/lib/"
92
97
  ]
93
98
  },
@@ -37,11 +37,12 @@ export interface UNACHCreditComponentProps {
37
37
  isAutoFocus?: boolean;
38
38
  fee?: number;
39
39
  withPlaid?: boolean;
40
+ sameDay?: boolean;
41
+ showSameDaySelection?: boolean;
40
42
  onPaymentCreated?: (data: UNACHPayment) => void;
41
43
  onInitialStageBackButtonClicked?: () => void;
42
44
  onFinalStageDoneButtonClicked?: () => void;
43
45
  onLoad?: (response: UNComponentsOnLoadResponse<UNACHOnLoadData>) => void;
44
- sameDay?: boolean;
45
46
  plaidAccountFilters?: UNPlaidAccountFilter[];
46
47
  plaidLinkCustomizationName?: string;
47
48
  initialStageBackButton?: boolean;
@@ -14,6 +14,7 @@ export const getACHCreditParams = (props: UNACHCreditComponentProps) => {
14
14
  ${props.fee ? `fee="${props.fee}"` : ''}
15
15
  style="height: 100%"
16
16
  same-day="${props.sameDay ?? false}"
17
+ show-same-day-selection="${props.showSameDaySelection ?? false}"
17
18
  ${plaidAccountFiltersParam}
18
19
  ${plaidLinkCustomizationNameParam}
19
20
  initial-stage-back-button="${props.initialStageBackButton ?? false}"
@@ -36,11 +36,12 @@ export interface UNACHDebitComponentProps {
36
36
  language?: string;
37
37
  isAutoFocus?: boolean;
38
38
  fee?: number;
39
+ sameDay?: boolean;
40
+ showSameDaySelection?: boolean;
39
41
  onPaymentCreated?: (data: UNACHPayment) => void;
40
42
  onLoad?: (response: UNComponentsOnLoadResponse<UNACHOnLoadData>) => void;
41
43
  onInitialStageBackButtonClicked?: () => void;
42
44
  onFinalStageDoneButtonClicked?: () => void;
43
- sameDay?: boolean;
44
45
  plaidAccountFilters?: UNPlaidAccountFilter[];
45
46
  plaidLinkCustomizationName?: string;
46
47
  initialStageBackButton?: boolean;
@@ -14,6 +14,7 @@ export const getACHDebitParams = (props: UNACHDebitComponentProps) => {
14
14
  ${props.fee ? `fee="${props.fee}"` : ''}
15
15
  style="height: 100%"
16
16
  same-day="${props.sameDay ?? false}"
17
+ show-same-day-selection="${props.showSameDaySelection ?? false}"
17
18
  ${plaidAccountFiltersParam}
18
19
  ${plaidLinkCustomizationNameParam}
19
20
  initial-stage-back-button="${props.initialStageBackButton ?? false}"
@@ -23,7 +23,8 @@ import type {
23
23
  UNCreditAccount,
24
24
  UNComponentsError,
25
25
  UNComponentsOnLoadResponse,
26
- UNComponentsOnLoadResponseData
26
+ UNComponentsOnLoadResponseData,
27
+ UNAccountStatusPosition
27
28
  } from '../../types/shared';
28
29
  import { AccountMessage } from '../../messages/webMessages/accountMessage';
29
30
  import { RESPONSE_KEYS, UnitOnLoadResponseEvent } from '../../messages/webMessages/onLoadMessage';
@@ -51,6 +52,7 @@ export interface UNAccountComponentProps {
51
52
  hideActionsMenuButton?: boolean;
52
53
  hideSelectionMenuButton?: boolean;
53
54
  hideAccountStatus?: boolean;
55
+ accountStatusPosition?: UNAccountStatusPosition;
54
56
  hideAccountDetails?: boolean;
55
57
  hideAccountButtons?: boolean;
56
58
  hideAccountCtaBanner?: boolean;
@@ -160,7 +162,6 @@ const UNAccountComponent = React.forwardRef<UNAccountRef, UNAccountComponentProp
160
162
  type: BottomSheetRenderingType.Slot,
161
163
  data: slotData,
162
164
  } as SlotRendering;
163
-
164
165
  dispatch(setEvent({ key: BottomSheetNativeMessage.REQUEST_RENDERING, data }));
165
166
 
166
167
  break;
@@ -1,7 +1,7 @@
1
1
  import { UNAccountAction, UNAccountComponentProps } from './UNAccountComponent';
2
2
  import { RequestRefreshEvent, RequestRenderingEvent } from '../../messages/webMessages/unitComponentsMessages';
3
3
  import type WebView from 'react-native-webview';
4
- import type { UNAccountMenuAction } from '../../types/shared';
4
+ import { UNAccountStatusPosition, type UNAccountMenuAction } from '../../types/shared';
5
5
  import { WebComponentType } from '../../types/internal/webComponent.types';
6
6
  import { LISTENERS } from '../../scripts/html/bodyScript';
7
7
  import { DISPATCH_REQUEST_REFRESH } from '../../scripts/html/bodyScript';
@@ -14,6 +14,7 @@ export const getAccountParams = (props: UNAccountComponentProps) => {
14
14
  hide-actions-menu-button="${props.hideActionsMenuButton || false}"
15
15
  hide-selection-menu-button="${props.hideSelectionMenuButton || false}"
16
16
  hide-account-status="${props.hideAccountStatus || false}"
17
+ account-status-position="${props.accountStatusPosition || UNAccountStatusPosition.End}"
17
18
  hide-account-details="${props.hideAccountDetails || false}"
18
19
  hide-account-buttons="${props.hideAccountButtons || false}"
19
20
  hide-account-cta-banner="${props.hideAccountCtaBanner || false}"
@@ -19,7 +19,7 @@ import { WebComponent } from '../../webComponent/WebComponent';
19
19
  import {
20
20
  getActivityParams,
21
21
  getActivityScript,
22
- injectFiltersChanged,
22
+ injectActivityFiltersChanged,
23
23
  injectRefreshEventIfNeeded,
24
24
  } from './UNActivityComponent.utils';
25
25
  import type WebView from 'react-native-webview';
@@ -81,7 +81,7 @@ const UNActivityComponent = React.forwardRef<UNActivityRef, UNActivityComponentP
81
81
  }));
82
82
 
83
83
  const dispatchActivityFiltersChanged = (query: string) => {
84
- injectFiltersChanged(webRef.current, query);
84
+ injectActivityFiltersChanged(webRef.current, query);
85
85
  };
86
86
 
87
87
  useListenerToEvent({ busEventKey: UnitComponentsMessage.UNIT_REQUEST_REFRESH, action: requestRefresh });
@@ -31,6 +31,6 @@ export const injectRefreshEventIfNeeded = (currentWeb: WebView | null, requestRe
31
31
  }
32
32
  };
33
33
 
34
- export const injectFiltersChanged = (currentWeb: WebView | null, query: string) => {
34
+ export const injectActivityFiltersChanged = (currentWeb: WebView | null, query: string) => {
35
35
  currentWeb?.injectJavaScript(`dispatchActivityFilterChangedEvent('${query}')`);
36
36
  };
@@ -9,12 +9,13 @@ import {
9
9
  BottomSheetNativeBookPaymentComponentType,
10
10
  BottomSheetNativeCheckDepositComponentType,
11
11
  BottomSheetNativeComponentType,
12
+ BottomSheetNativeCreateCardComponentType,
12
13
  BottomSheetNativePlaceType,
13
14
  BottomSheetNativeWirePaymentComponentType,
14
15
  BottomSheetSlotData,
15
16
  } from '../../types/internal/bottomSheet.types';
16
17
  import { WebComponentType } from '../../types/internal/webComponent.types';
17
- import { parseUNAccountFilters } from '../../types/shared';
18
+ import { parseUNAccountFilters, parseUNCreateCardTypes } from '../../types/shared';
18
19
 
19
20
  export const getBottomSheetScript = () => {
20
21
  return LISTENERS.requestRefresh;
@@ -67,6 +68,8 @@ const extractValueFromRequestRenderingEvent = (event: RequestRenderingEvent, key
67
68
 
68
69
  const getAddToWalletComponentDataFromEvent = (event: BottomSheetSlotData, customerToken: string): BottomSheetNativeAddToWalletComponentType | null => {
69
70
  const cardId = event.componentResourceId ?? extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'card-id');
71
+ const theme = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'theme');
72
+ const language = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'language');
70
73
  if (!cardId) {
71
74
  console.error('componentResourceId is missing in getAddToWalletComponentDataFromEvent and no cardId in requestRenderingEvent');
72
75
  return null;
@@ -76,12 +79,16 @@ const getAddToWalletComponentDataFromEvent = (event: BottomSheetSlotData, custom
76
79
  props: {
77
80
  cardId: cardId,
78
81
  customerToken: customerToken,
82
+ theme: theme,
83
+ language: language
79
84
  },
80
85
  };
81
86
  };
82
87
 
83
88
  const getACHCreditComponentDataFromEvent = (event: BottomSheetSlotData): BottomSheetNativeACHCreditComponentType | null => {
84
89
  const accountId = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'account-id');
90
+ const theme = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'theme');
91
+ const language = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'language');
85
92
  const fee = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'fee');
86
93
  const initialStageBackButton = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'initial-stage-back-button');
87
94
  const finalStageDoneButton = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'final-stage-done-button');
@@ -89,6 +96,7 @@ const getACHCreditComponentDataFromEvent = (event: BottomSheetSlotData): BottomS
89
96
  const plaidLinkCustomizationName = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'plaid-link-customization-name');
90
97
  const isAutoFocus = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'is-auto-focus');
91
98
  const sameDay = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'same-day');
99
+ const showSameDaySelection = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'show-same-day-selection');
92
100
  const plaidAccountFiltersAsString = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'plaid-account-filters');
93
101
  const plaidAccountFiltersArray = parseUNAccountFilters(plaidAccountFiltersAsString);
94
102
 
@@ -96,6 +104,8 @@ const getACHCreditComponentDataFromEvent = (event: BottomSheetSlotData): BottomS
96
104
  type: BottomSheetNativeComponentType.ACHCreditComponent,
97
105
  props: {
98
106
  accountId: accountId,
107
+ theme: theme,
108
+ language: language,
99
109
  fee: fee ? parseInt(fee) : undefined,
100
110
  initialStageBackButton: initialStageBackButton ? initialStageBackButton === 'true' : undefined,
101
111
  finalStageDoneButton: finalStageDoneButton ? finalStageDoneButton === 'true' : undefined,
@@ -104,18 +114,22 @@ const getACHCreditComponentDataFromEvent = (event: BottomSheetSlotData): BottomS
104
114
  plaidLinkCustomizationName: plaidLinkCustomizationName,
105
115
  isAutoFocus: isAutoFocus ? isAutoFocus === 'true' : undefined,
106
116
  sameDay: sameDay ? sameDay === 'true' : undefined,
117
+ showSameDaySelection: showSameDaySelection ? showSameDaySelection === 'true' : undefined
107
118
  },
108
119
  };
109
120
  };
110
121
 
111
122
  const getACHDebitComponentDataFromEvent = (event: BottomSheetSlotData): BottomSheetNativeACHDebitComponentType | null => {
112
123
  const accountId = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'account-id');
124
+ const theme = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'theme');
125
+ const language = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'language');
113
126
  const fee = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'fee');
114
127
  const initialStageBackButton = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'initial-stage-back-button');
115
128
  const finalStageDoneButton = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'final-stage-done-button');
116
129
  const plaidLinkCustomizationName = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'plaid-link-customization-name');
117
130
  const isAutoFocus = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'is-auto-focus');
118
131
  const sameDay = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'same-day');
132
+ const showSameDaySelection = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'show-same-day-selection');
119
133
  const plaidAccountFiltersAsString = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'plaid-account-filters');
120
134
  const plaidAccountFiltersArray = parseUNAccountFilters(plaidAccountFiltersAsString);
121
135
 
@@ -123,6 +137,8 @@ const getACHDebitComponentDataFromEvent = (event: BottomSheetSlotData): BottomSh
123
137
  type: BottomSheetNativeComponentType.ACHDebitComponent,
124
138
  props: {
125
139
  accountId: accountId,
140
+ theme: theme,
141
+ language: language,
126
142
  fee: fee ? parseInt(fee) : undefined,
127
143
  initialStageBackButton: initialStageBackButton ? initialStageBackButton === 'true' : undefined,
128
144
  finalStageDoneButton: finalStageDoneButton ? finalStageDoneButton === 'true' : undefined,
@@ -130,12 +146,15 @@ const getACHDebitComponentDataFromEvent = (event: BottomSheetSlotData): BottomSh
130
146
  plaidLinkCustomizationName: plaidLinkCustomizationName,
131
147
  isAutoFocus: isAutoFocus ? isAutoFocus === 'true' : undefined,
132
148
  sameDay: sameDay ? sameDay === 'true' : undefined,
149
+ showSameDaySelection: showSameDaySelection ? showSameDaySelection === 'true' : undefined
133
150
  },
134
151
  };
135
152
  };
136
153
 
137
154
  const getCheckDepositComponentDataFromEvent = (event: BottomSheetSlotData): BottomSheetNativeCheckDepositComponentType | null => {
138
155
  const accountId = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'account-id');
156
+ const theme = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'theme');
157
+ const language = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'language');
139
158
  const fee = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'fee');
140
159
  const initialStageBackButton = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'initial-stage-back-button');
141
160
  const finalStageDoneButton = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'final-stage-done-button');
@@ -147,6 +166,8 @@ const getCheckDepositComponentDataFromEvent = (event: BottomSheetSlotData): Bott
147
166
  type: BottomSheetNativeComponentType.CheckDepositComponent,
148
167
  props: {
149
168
  accountId: accountId,
169
+ theme: theme,
170
+ language: language,
150
171
  fee: fee ? parseInt(fee) : undefined,
151
172
  initialStageBackButton: initialStageBackButton ? initialStageBackButton === 'true' : undefined,
152
173
  finalStageDoneButton: finalStageDoneButton ? finalStageDoneButton === 'true' : undefined,
@@ -158,6 +179,8 @@ const getBookPaymentComponentDataFromEvent = (event: BottomSheetSlotData): Botto
158
179
  const accountId = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'account-id');
159
180
  const counterPartyAccountId = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'counterparty-account-id');
160
181
  const counterPartyName = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'counterparty-name');
182
+ const theme = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'theme');
183
+ const language = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'language');
161
184
  const isSameCustomer = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'is-same-customer');
162
185
  const isAutoFocus = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'is-auto-focus');
163
186
  const initialStageBackButton = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'initial-stage-back-button');
@@ -167,6 +190,8 @@ const getBookPaymentComponentDataFromEvent = (event: BottomSheetSlotData): Botto
167
190
  type: BottomSheetNativeComponentType.BookPaymentComponent,
168
191
  props: {
169
192
  accountId: accountId,
193
+ theme: theme,
194
+ language: language,
170
195
  counterPartyAccountId: counterPartyAccountId,
171
196
  counterPartyName: counterPartyName,
172
197
  isSameCustomer: isSameCustomer ? isSameCustomer === 'true' : undefined,
@@ -179,6 +204,8 @@ const getBookPaymentComponentDataFromEvent = (event: BottomSheetSlotData): Botto
179
204
 
180
205
  const getWirePaymentComponentDataFromEvent = (event: BottomSheetSlotData): BottomSheetNativeWirePaymentComponentType | null => {
181
206
  const accountId = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'account-id');
207
+ const theme = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'theme');
208
+ const language = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'language');
182
209
  const fee = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'fee');
183
210
  const isAutoFocus = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'is-auto-focus');
184
211
  const initialStageBackButton = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'initial-stage-back-button');
@@ -192,6 +219,8 @@ const getWirePaymentComponentDataFromEvent = (event: BottomSheetSlotData): Botto
192
219
  type: BottomSheetNativeComponentType.WirePaymentComponent,
193
220
  props: {
194
221
  accountId: accountId,
222
+ theme: theme,
223
+ language: language,
195
224
  fee: fee ? parseInt(fee) : undefined,
196
225
  isAutoFocus: isAutoFocus ? isAutoFocus === 'true' : undefined,
197
226
  initialStageBackButton: initialStageBackButton ? initialStageBackButton === 'true' : undefined,
@@ -200,6 +229,28 @@ const getWirePaymentComponentDataFromEvent = (event: BottomSheetSlotData): Botto
200
229
  };
201
230
  };
202
231
 
232
+ const getCreateCardComponentDataFromEvent = (event: BottomSheetSlotData): BottomSheetNativeCreateCardComponentType | null => {
233
+ const accountId = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'account-id');
234
+ const theme = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'theme');
235
+ const language = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'language');
236
+ const virtualCardFee = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'virtual-card-fee');
237
+ const physicalCardFee = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'physical-card-fee');
238
+ const cardTypesAsString = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'card-types');
239
+ const cardTypes = parseUNCreateCardTypes(cardTypesAsString);
240
+
241
+ return {
242
+ type: BottomSheetNativeComponentType.CreateCardComponent,
243
+ props: {
244
+ accountId: accountId,
245
+ theme: theme,
246
+ language: language,
247
+ cardTypes: cardTypes,
248
+ physicalCardFee: physicalCardFee ? parseInt(physicalCardFee) : undefined,
249
+ virtualCardFee: virtualCardFee ? parseInt(virtualCardFee) : undefined,
250
+ },
251
+ };
252
+ };
253
+
203
254
  export const getNativeComponentDataFromEvent = (event: BottomSheetSlotData) => {
204
255
  let componentData = null;
205
256
  let nativePlace = BottomSheetNativePlaceType.modal;
@@ -238,6 +289,10 @@ export const getNativeComponentDataFromEvent = (event: BottomSheetSlotData) => {
238
289
  componentData = getWirePaymentComponentDataFromEvent(event);
239
290
  break;
240
291
 
292
+ case WebComponentType.createCard:
293
+ componentData = getCreateCardComponentDataFromEvent(event);
294
+ break;
295
+
241
296
  default:
242
297
  break;
243
298
  }