@networkinternational/ni-card-management-sdk 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (416) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +651 -0
  3. package/android/build.gradle +95 -0
  4. package/android/gradle.properties +5 -0
  5. package/android/src/main/AndroidManifest.xml +3 -0
  6. package/android/src/main/AndroidManifestNew.xml +2 -0
  7. package/android/src/main/java/com/nicardmanagement/JsonDeserialization.kt +24 -0
  8. package/android/src/main/java/com/nicardmanagement/NiCardManagementModule.kt +163 -0
  9. package/android/src/main/java/com/nicardmanagement/NiCardManagementPackage.kt +17 -0
  10. package/ios/NiCardManagement-Bridging-Header.h +2 -0
  11. package/ios/NiCardManagement.mm +29 -0
  12. package/ios/NiCardManagement.swift +142 -0
  13. package/lib/commonjs/NICardManagementComponents/CardDetailsComponent.js +71 -0
  14. package/lib/commonjs/NICardManagementComponents/CardDetailsComponent.js.map +1 -0
  15. package/lib/commonjs/NICardManagementComponents/ChangePinView.js +44 -0
  16. package/lib/commonjs/NICardManagementComponents/ChangePinView.js.map +1 -0
  17. package/lib/commonjs/NICardManagementComponents/NiInputInterfaces.js +17 -0
  18. package/lib/commonjs/NICardManagementComponents/NiInputInterfaces.js.map +1 -0
  19. package/lib/commonjs/NICardManagementComponents/SetPinView.js +44 -0
  20. package/lib/commonjs/NICardManagementComponents/SetPinView.js.map +1 -0
  21. package/lib/commonjs/NICardManagementComponents/VerifyPinView.js +44 -0
  22. package/lib/commonjs/NICardManagementComponents/VerifyPinView.js.map +1 -0
  23. package/lib/commonjs/NICardManagementComponents/ViewPinComponent.js +52 -0
  24. package/lib/commonjs/NICardManagementComponents/ViewPinComponent.js.map +1 -0
  25. package/lib/commonjs/assets/icons/content-copy.png +0 -0
  26. package/lib/commonjs/assets/icons/eye-off-outline.png +0 -0
  27. package/lib/commonjs/assets/icons/eye-outline.png +0 -0
  28. package/lib/commonjs/assets/icons/icons8-arrow-100.png +0 -0
  29. package/lib/commonjs/assets/icons/icons8-arrow-100_1.png +0 -0
  30. package/lib/commonjs/assets/icons/red-eye-off-outline.png +0 -0
  31. package/lib/commonjs/assets/icons/red-eye-outline.png +0 -0
  32. package/lib/commonjs/assets/images/grayCard.png +0 -0
  33. package/lib/commonjs/components/CardDetails/CardDetails.js +27 -0
  34. package/lib/commonjs/components/CardDetails/CardDetails.js.map +1 -0
  35. package/lib/commonjs/components/CardDetails/CardDetailsBackgroundImage.js +29 -0
  36. package/lib/commonjs/components/CardDetails/CardDetailsBackgroundImage.js.map +1 -0
  37. package/lib/commonjs/components/CardDetails/CardDetailsGroups.js +94 -0
  38. package/lib/commonjs/components/CardDetails/CardDetailsGroups.js.map +1 -0
  39. package/lib/commonjs/components/CardDetails/CardHolderNameGroups.js +67 -0
  40. package/lib/commonjs/components/CardDetails/CardHolderNameGroups.js.map +1 -0
  41. package/lib/commonjs/components/CardDetails/CardNumberGroup.js +69 -0
  42. package/lib/commonjs/components/CardDetails/CardNumberGroup.js.map +1 -0
  43. package/lib/commonjs/components/CardDetails/DateCVVGroupOneRow.js +104 -0
  44. package/lib/commonjs/components/CardDetails/DateCVVGroupOneRow.js.map +1 -0
  45. package/lib/commonjs/components/CardDetails/styles.js +98 -0
  46. package/lib/commonjs/components/CardDetails/styles.js.map +1 -0
  47. package/lib/commonjs/components/ChangePin/CaptureCurrentPin.js +50 -0
  48. package/lib/commonjs/components/ChangePin/CaptureCurrentPin.js.map +1 -0
  49. package/lib/commonjs/components/ChangePin/CaptureNewPin.js +50 -0
  50. package/lib/commonjs/components/ChangePin/CaptureNewPin.js.map +1 -0
  51. package/lib/commonjs/components/ChangePin/ChangePin.js +135 -0
  52. package/lib/commonjs/components/ChangePin/ChangePin.js.map +1 -0
  53. package/lib/commonjs/components/ChangePin/ConfirmPin.js +39 -0
  54. package/lib/commonjs/components/ChangePin/ConfirmPin.js.map +1 -0
  55. package/lib/commonjs/components/ChangePin/ReenterNewPin.js +53 -0
  56. package/lib/commonjs/components/ChangePin/ReenterNewPin.js.map +1 -0
  57. package/lib/commonjs/components/ChangePin/styles.js +29 -0
  58. package/lib/commonjs/components/ChangePin/styles.js.map +1 -0
  59. package/lib/commonjs/components/NIButton/NIButton.js +46 -0
  60. package/lib/commonjs/components/NIButton/NIButton.js.map +1 -0
  61. package/lib/commonjs/components/NIButton/styles.js +15 -0
  62. package/lib/commonjs/components/NIButton/styles.js.map +1 -0
  63. package/lib/commonjs/components/Pin/CapturePin.js +152 -0
  64. package/lib/commonjs/components/Pin/CapturePin.js.map +1 -0
  65. package/lib/commonjs/components/Pin/NextButton.js +40 -0
  66. package/lib/commonjs/components/Pin/NextButton.js.map +1 -0
  67. package/lib/commonjs/components/Pin/ShowHideButton.js +48 -0
  68. package/lib/commonjs/components/Pin/ShowHideButton.js.map +1 -0
  69. package/lib/commonjs/components/Pin/styles.js +61 -0
  70. package/lib/commonjs/components/Pin/styles.js.map +1 -0
  71. package/lib/commonjs/components/PinState/LoadingState.js +29 -0
  72. package/lib/commonjs/components/PinState/LoadingState.js.map +1 -0
  73. package/lib/commonjs/components/PinState/PinState.js +29 -0
  74. package/lib/commonjs/components/PinState/PinState.js.map +1 -0
  75. package/lib/commonjs/components/SetPin/ConfirmPin.js +39 -0
  76. package/lib/commonjs/components/SetPin/ConfirmPin.js.map +1 -0
  77. package/lib/commonjs/components/SetPin/ReenterCardPin.js +53 -0
  78. package/lib/commonjs/components/SetPin/ReenterCardPin.js.map +1 -0
  79. package/lib/commonjs/components/SetPin/SetPin.js +118 -0
  80. package/lib/commonjs/components/SetPin/SetPin.js.map +1 -0
  81. package/lib/commonjs/components/SetPin/SetUpNewCardPin.js +50 -0
  82. package/lib/commonjs/components/SetPin/SetUpNewCardPin.js.map +1 -0
  83. package/lib/commonjs/components/SetPin/styles.js +29 -0
  84. package/lib/commonjs/components/SetPin/styles.js.map +1 -0
  85. package/lib/commonjs/components/VerifyPin/CaptureVerifyPin.js +50 -0
  86. package/lib/commonjs/components/VerifyPin/CaptureVerifyPin.js.map +1 -0
  87. package/lib/commonjs/components/VerifyPin/ConfirmPin.js +40 -0
  88. package/lib/commonjs/components/VerifyPin/ConfirmPin.js.map +1 -0
  89. package/lib/commonjs/components/VerifyPin/VerifyPin.js +92 -0
  90. package/lib/commonjs/components/VerifyPin/VerifyPin.js.map +1 -0
  91. package/lib/commonjs/components/VerifyPin/styles.js +26 -0
  92. package/lib/commonjs/components/VerifyPin/styles.js.map +1 -0
  93. package/lib/commonjs/components/ViewPin/ViewPin.js +76 -0
  94. package/lib/commonjs/components/ViewPin/ViewPin.js.map +1 -0
  95. package/lib/commonjs/components/ViewPin/styles.js +19 -0
  96. package/lib/commonjs/components/ViewPin/styles.js.map +1 -0
  97. package/lib/commonjs/components/icons/PredeterminedIcon.js +43 -0
  98. package/lib/commonjs/components/icons/PredeterminedIcon.js.map +1 -0
  99. package/lib/commonjs/config/configCard.js +9 -0
  100. package/lib/commonjs/config/configCard.js.map +1 -0
  101. package/lib/commonjs/config/localization.js +47 -0
  102. package/lib/commonjs/config/localization.js.map +1 -0
  103. package/lib/commonjs/config/themeColors.js +34 -0
  104. package/lib/commonjs/config/themeColors.js.map +1 -0
  105. package/lib/commonjs/hooks/useChangePin.js +37 -0
  106. package/lib/commonjs/hooks/useChangePin.js.map +1 -0
  107. package/lib/commonjs/hooks/useGetCardDetails.js +37 -0
  108. package/lib/commonjs/hooks/useGetCardDetails.js.map +1 -0
  109. package/lib/commonjs/hooks/useSetPin.js +37 -0
  110. package/lib/commonjs/hooks/useSetPin.js.map +1 -0
  111. package/lib/commonjs/hooks/useVerifyPin.js +37 -0
  112. package/lib/commonjs/hooks/useVerifyPin.js.map +1 -0
  113. package/lib/commonjs/hooks/useViewPin.js +37 -0
  114. package/lib/commonjs/hooks/useViewPin.js.map +1 -0
  115. package/lib/commonjs/index.js +72 -0
  116. package/lib/commonjs/index.js.map +1 -0
  117. package/lib/commonjs/interfaces/NiCardManagementInterfaces.js +2 -0
  118. package/lib/commonjs/interfaces/NiCardManagementInterfaces.js.map +1 -0
  119. package/lib/commonjs/interfaces/NiInputInterfaces.js +39 -0
  120. package/lib/commonjs/interfaces/NiInputInterfaces.js.map +1 -0
  121. package/lib/commonjs/interfaces/NiInterfaces.js +14 -0
  122. package/lib/commonjs/interfaces/NiInterfaces.js.map +1 -0
  123. package/lib/commonjs/nativeComponents/NICardManagementSDKModule.js +9 -0
  124. package/lib/commonjs/nativeComponents/NICardManagementSDKModule.js.map +1 -0
  125. package/lib/commonjs/utils/formatInput.js +10 -0
  126. package/lib/commonjs/utils/formatInput.js.map +1 -0
  127. package/lib/commonjs/utils/localization.js +13 -0
  128. package/lib/commonjs/utils/localization.js.map +1 -0
  129. package/lib/module/NICardManagementComponents/CardDetailsComponent.js +57 -0
  130. package/lib/module/NICardManagementComponents/CardDetailsComponent.js.map +1 -0
  131. package/lib/module/NICardManagementComponents/ChangePinView.js +32 -0
  132. package/lib/module/NICardManagementComponents/ChangePinView.js.map +1 -0
  133. package/lib/module/NICardManagementComponents/NiInputInterfaces.js +3 -0
  134. package/lib/module/NICardManagementComponents/NiInputInterfaces.js.map +1 -0
  135. package/lib/module/NICardManagementComponents/SetPinView.js +32 -0
  136. package/lib/module/NICardManagementComponents/SetPinView.js.map +1 -0
  137. package/lib/module/NICardManagementComponents/VerifyPinView.js +32 -0
  138. package/lib/module/NICardManagementComponents/VerifyPinView.js.map +1 -0
  139. package/lib/module/NICardManagementComponents/ViewPinComponent.js +38 -0
  140. package/lib/module/NICardManagementComponents/ViewPinComponent.js.map +1 -0
  141. package/lib/module/assets/icons/content-copy.png +0 -0
  142. package/lib/module/assets/icons/eye-off-outline.png +0 -0
  143. package/lib/module/assets/icons/eye-outline.png +0 -0
  144. package/lib/module/assets/icons/icons8-arrow-100.png +0 -0
  145. package/lib/module/assets/icons/icons8-arrow-100_1.png +0 -0
  146. package/lib/module/assets/icons/red-eye-off-outline.png +0 -0
  147. package/lib/module/assets/icons/red-eye-outline.png +0 -0
  148. package/lib/module/assets/images/grayCard.png +0 -0
  149. package/lib/module/components/CardDetails/CardDetails.js +20 -0
  150. package/lib/module/components/CardDetails/CardDetails.js.map +1 -0
  151. package/lib/module/components/CardDetails/CardDetailsBackgroundImage.js +22 -0
  152. package/lib/module/components/CardDetails/CardDetailsBackgroundImage.js.map +1 -0
  153. package/lib/module/components/CardDetails/CardDetailsGroups.js +85 -0
  154. package/lib/module/components/CardDetails/CardDetailsGroups.js.map +1 -0
  155. package/lib/module/components/CardDetails/CardHolderNameGroups.js +60 -0
  156. package/lib/module/components/CardDetails/CardHolderNameGroups.js.map +1 -0
  157. package/lib/module/components/CardDetails/CardNumberGroup.js +62 -0
  158. package/lib/module/components/CardDetails/CardNumberGroup.js.map +1 -0
  159. package/lib/module/components/CardDetails/DateCVVGroupOneRow.js +97 -0
  160. package/lib/module/components/CardDetails/DateCVVGroupOneRow.js.map +1 -0
  161. package/lib/module/components/CardDetails/styles.js +92 -0
  162. package/lib/module/components/CardDetails/styles.js.map +1 -0
  163. package/lib/module/components/ChangePin/CaptureCurrentPin.js +43 -0
  164. package/lib/module/components/ChangePin/CaptureCurrentPin.js.map +1 -0
  165. package/lib/module/components/ChangePin/CaptureNewPin.js +43 -0
  166. package/lib/module/components/ChangePin/CaptureNewPin.js.map +1 -0
  167. package/lib/module/components/ChangePin/ChangePin.js +126 -0
  168. package/lib/module/components/ChangePin/ChangePin.js.map +1 -0
  169. package/lib/module/components/ChangePin/ConfirmPin.js +32 -0
  170. package/lib/module/components/ChangePin/ConfirmPin.js.map +1 -0
  171. package/lib/module/components/ChangePin/ReenterNewPin.js +46 -0
  172. package/lib/module/components/ChangePin/ReenterNewPin.js.map +1 -0
  173. package/lib/module/components/ChangePin/styles.js +23 -0
  174. package/lib/module/components/ChangePin/styles.js.map +1 -0
  175. package/lib/module/components/NIButton/NIButton.js +38 -0
  176. package/lib/module/components/NIButton/NIButton.js.map +1 -0
  177. package/lib/module/components/NIButton/styles.js +9 -0
  178. package/lib/module/components/NIButton/styles.js.map +1 -0
  179. package/lib/module/components/Pin/CapturePin.js +143 -0
  180. package/lib/module/components/Pin/CapturePin.js.map +1 -0
  181. package/lib/module/components/Pin/NextButton.js +33 -0
  182. package/lib/module/components/Pin/NextButton.js.map +1 -0
  183. package/lib/module/components/Pin/ShowHideButton.js +41 -0
  184. package/lib/module/components/Pin/ShowHideButton.js.map +1 -0
  185. package/lib/module/components/Pin/styles.js +55 -0
  186. package/lib/module/components/Pin/styles.js.map +1 -0
  187. package/lib/module/components/PinState/LoadingState.js +22 -0
  188. package/lib/module/components/PinState/LoadingState.js.map +1 -0
  189. package/lib/module/components/PinState/PinState.js +22 -0
  190. package/lib/module/components/PinState/PinState.js.map +1 -0
  191. package/lib/module/components/SetPin/ConfirmPin.js +32 -0
  192. package/lib/module/components/SetPin/ConfirmPin.js.map +1 -0
  193. package/lib/module/components/SetPin/ReenterCardPin.js +46 -0
  194. package/lib/module/components/SetPin/ReenterCardPin.js.map +1 -0
  195. package/lib/module/components/SetPin/SetPin.js +109 -0
  196. package/lib/module/components/SetPin/SetPin.js.map +1 -0
  197. package/lib/module/components/SetPin/SetUpNewCardPin.js +43 -0
  198. package/lib/module/components/SetPin/SetUpNewCardPin.js.map +1 -0
  199. package/lib/module/components/SetPin/styles.js +23 -0
  200. package/lib/module/components/SetPin/styles.js.map +1 -0
  201. package/lib/module/components/VerifyPin/CaptureVerifyPin.js +43 -0
  202. package/lib/module/components/VerifyPin/CaptureVerifyPin.js.map +1 -0
  203. package/lib/module/components/VerifyPin/ConfirmPin.js +33 -0
  204. package/lib/module/components/VerifyPin/ConfirmPin.js.map +1 -0
  205. package/lib/module/components/VerifyPin/VerifyPin.js +83 -0
  206. package/lib/module/components/VerifyPin/VerifyPin.js.map +1 -0
  207. package/lib/module/components/VerifyPin/styles.js +20 -0
  208. package/lib/module/components/VerifyPin/styles.js.map +1 -0
  209. package/lib/module/components/ViewPin/ViewPin.js +67 -0
  210. package/lib/module/components/ViewPin/ViewPin.js.map +1 -0
  211. package/lib/module/components/ViewPin/styles.js +13 -0
  212. package/lib/module/components/ViewPin/styles.js.map +1 -0
  213. package/lib/module/components/icons/PredeterminedIcon.js +35 -0
  214. package/lib/module/components/icons/PredeterminedIcon.js.map +1 -0
  215. package/lib/module/config/configCard.js +3 -0
  216. package/lib/module/config/configCard.js.map +1 -0
  217. package/lib/module/config/localization.js +41 -0
  218. package/lib/module/config/localization.js.map +1 -0
  219. package/lib/module/config/themeColors.js +29 -0
  220. package/lib/module/config/themeColors.js.map +1 -0
  221. package/lib/module/hooks/useChangePin.js +29 -0
  222. package/lib/module/hooks/useChangePin.js.map +1 -0
  223. package/lib/module/hooks/useGetCardDetails.js +29 -0
  224. package/lib/module/hooks/useGetCardDetails.js.map +1 -0
  225. package/lib/module/hooks/useSetPin.js +29 -0
  226. package/lib/module/hooks/useSetPin.js.map +1 -0
  227. package/lib/module/hooks/useVerifyPin.js +29 -0
  228. package/lib/module/hooks/useVerifyPin.js.map +1 -0
  229. package/lib/module/hooks/useViewPin.js +29 -0
  230. package/lib/module/hooks/useViewPin.js.map +1 -0
  231. package/lib/module/index.js +7 -0
  232. package/lib/module/index.js.map +1 -0
  233. package/lib/module/interfaces/NiCardManagementInterfaces.js +2 -0
  234. package/lib/module/interfaces/NiCardManagementInterfaces.js.map +1 -0
  235. package/lib/module/interfaces/NiInputInterfaces.js +33 -0
  236. package/lib/module/interfaces/NiInputInterfaces.js.map +1 -0
  237. package/lib/module/interfaces/NiInterfaces.js +8 -0
  238. package/lib/module/interfaces/NiInterfaces.js.map +1 -0
  239. package/lib/module/nativeComponents/NICardManagementSDKModule.js +3 -0
  240. package/lib/module/nativeComponents/NICardManagementSDKModule.js.map +1 -0
  241. package/lib/module/utils/formatInput.js +4 -0
  242. package/lib/module/utils/formatInput.js.map +1 -0
  243. package/lib/module/utils/localization.js +7 -0
  244. package/lib/module/utils/localization.js.map +1 -0
  245. package/lib/typescript/src/NICardManagementComponents/CardDetailsComponent.d.ts +7 -0
  246. package/lib/typescript/src/NICardManagementComponents/CardDetailsComponent.d.ts.map +1 -0
  247. package/lib/typescript/src/NICardManagementComponents/ChangePinView.d.ts +6 -0
  248. package/lib/typescript/src/NICardManagementComponents/ChangePinView.d.ts.map +1 -0
  249. package/lib/typescript/src/NICardManagementComponents/NiInputInterfaces.d.ts +4 -0
  250. package/lib/typescript/src/NICardManagementComponents/NiInputInterfaces.d.ts.map +1 -0
  251. package/lib/typescript/src/NICardManagementComponents/SetPinView.d.ts +6 -0
  252. package/lib/typescript/src/NICardManagementComponents/SetPinView.d.ts.map +1 -0
  253. package/lib/typescript/src/NICardManagementComponents/VerifyPinView.d.ts +6 -0
  254. package/lib/typescript/src/NICardManagementComponents/VerifyPinView.d.ts.map +1 -0
  255. package/lib/typescript/src/NICardManagementComponents/ViewPinComponent.d.ts +6 -0
  256. package/lib/typescript/src/NICardManagementComponents/ViewPinComponent.d.ts.map +1 -0
  257. package/lib/typescript/src/components/CardDetails/CardDetails.d.ts +4 -0
  258. package/lib/typescript/src/components/CardDetails/CardDetails.d.ts.map +1 -0
  259. package/lib/typescript/src/components/CardDetails/CardDetailsBackgroundImage.d.ts +4 -0
  260. package/lib/typescript/src/components/CardDetails/CardDetailsBackgroundImage.d.ts.map +1 -0
  261. package/lib/typescript/src/components/CardDetails/CardDetailsGroups.d.ts +4 -0
  262. package/lib/typescript/src/components/CardDetails/CardDetailsGroups.d.ts.map +1 -0
  263. package/lib/typescript/src/components/CardDetails/CardHolderNameGroups.d.ts +4 -0
  264. package/lib/typescript/src/components/CardDetails/CardHolderNameGroups.d.ts.map +1 -0
  265. package/lib/typescript/src/components/CardDetails/CardNumberGroup.d.ts +4 -0
  266. package/lib/typescript/src/components/CardDetails/CardNumberGroup.d.ts.map +1 -0
  267. package/lib/typescript/src/components/CardDetails/DateCVVGroupOneRow.d.ts +4 -0
  268. package/lib/typescript/src/components/CardDetails/DateCVVGroupOneRow.d.ts.map +1 -0
  269. package/lib/typescript/src/components/CardDetails/styles.d.ts +90 -0
  270. package/lib/typescript/src/components/CardDetails/styles.d.ts.map +1 -0
  271. package/lib/typescript/src/components/ChangePin/CaptureCurrentPin.d.ts +4 -0
  272. package/lib/typescript/src/components/ChangePin/CaptureCurrentPin.d.ts.map +1 -0
  273. package/lib/typescript/src/components/ChangePin/CaptureNewPin.d.ts +4 -0
  274. package/lib/typescript/src/components/ChangePin/CaptureNewPin.d.ts.map +1 -0
  275. package/lib/typescript/src/components/ChangePin/ChangePin.d.ts +5 -0
  276. package/lib/typescript/src/components/ChangePin/ChangePin.d.ts.map +1 -0
  277. package/lib/typescript/src/components/ChangePin/ConfirmPin.d.ts +4 -0
  278. package/lib/typescript/src/components/ChangePin/ConfirmPin.d.ts.map +1 -0
  279. package/lib/typescript/src/components/ChangePin/ReenterNewPin.d.ts +4 -0
  280. package/lib/typescript/src/components/ChangePin/ReenterNewPin.d.ts.map +1 -0
  281. package/lib/typescript/src/components/ChangePin/styles.d.ts +22 -0
  282. package/lib/typescript/src/components/ChangePin/styles.d.ts.map +1 -0
  283. package/lib/typescript/src/components/NIButton/NIButton.d.ts +13 -0
  284. package/lib/typescript/src/components/NIButton/NIButton.d.ts.map +1 -0
  285. package/lib/typescript/src/components/NIButton/styles.d.ts +8 -0
  286. package/lib/typescript/src/components/NIButton/styles.d.ts.map +1 -0
  287. package/lib/typescript/src/components/Pin/CapturePin.d.ts +4 -0
  288. package/lib/typescript/src/components/Pin/CapturePin.d.ts.map +1 -0
  289. package/lib/typescript/src/components/Pin/NextButton.d.ts +4 -0
  290. package/lib/typescript/src/components/Pin/NextButton.d.ts.map +1 -0
  291. package/lib/typescript/src/components/Pin/ShowHideButton.d.ts +4 -0
  292. package/lib/typescript/src/components/Pin/ShowHideButton.d.ts.map +1 -0
  293. package/lib/typescript/src/components/Pin/styles.d.ts +54 -0
  294. package/lib/typescript/src/components/Pin/styles.d.ts.map +1 -0
  295. package/lib/typescript/src/components/PinState/LoadingState.d.ts +7 -0
  296. package/lib/typescript/src/components/PinState/LoadingState.d.ts.map +1 -0
  297. package/lib/typescript/src/components/PinState/PinState.d.ts +8 -0
  298. package/lib/typescript/src/components/PinState/PinState.d.ts.map +1 -0
  299. package/lib/typescript/src/components/SetPin/ConfirmPin.d.ts +4 -0
  300. package/lib/typescript/src/components/SetPin/ConfirmPin.d.ts.map +1 -0
  301. package/lib/typescript/src/components/SetPin/ReenterCardPin.d.ts +4 -0
  302. package/lib/typescript/src/components/SetPin/ReenterCardPin.d.ts.map +1 -0
  303. package/lib/typescript/src/components/SetPin/SetPin.d.ts +5 -0
  304. package/lib/typescript/src/components/SetPin/SetPin.d.ts.map +1 -0
  305. package/lib/typescript/src/components/SetPin/SetUpNewCardPin.d.ts +4 -0
  306. package/lib/typescript/src/components/SetPin/SetUpNewCardPin.d.ts.map +1 -0
  307. package/lib/typescript/src/components/SetPin/styles.d.ts +22 -0
  308. package/lib/typescript/src/components/SetPin/styles.d.ts.map +1 -0
  309. package/lib/typescript/src/components/VerifyPin/CaptureVerifyPin.d.ts +4 -0
  310. package/lib/typescript/src/components/VerifyPin/CaptureVerifyPin.d.ts.map +1 -0
  311. package/lib/typescript/src/components/VerifyPin/ConfirmPin.d.ts +5 -0
  312. package/lib/typescript/src/components/VerifyPin/ConfirmPin.d.ts.map +1 -0
  313. package/lib/typescript/src/components/VerifyPin/VerifyPin.d.ts +5 -0
  314. package/lib/typescript/src/components/VerifyPin/VerifyPin.d.ts.map +1 -0
  315. package/lib/typescript/src/components/VerifyPin/styles.d.ts +19 -0
  316. package/lib/typescript/src/components/VerifyPin/styles.d.ts.map +1 -0
  317. package/lib/typescript/src/components/ViewPin/ViewPin.d.ts +5 -0
  318. package/lib/typescript/src/components/ViewPin/ViewPin.d.ts.map +1 -0
  319. package/lib/typescript/src/components/ViewPin/styles.d.ts +12 -0
  320. package/lib/typescript/src/components/ViewPin/styles.d.ts.map +1 -0
  321. package/lib/typescript/src/components/icons/PredeterminedIcon.d.ts +7 -0
  322. package/lib/typescript/src/components/icons/PredeterminedIcon.d.ts.map +1 -0
  323. package/lib/typescript/src/config/configCard.d.ts +3 -0
  324. package/lib/typescript/src/config/configCard.d.ts.map +1 -0
  325. package/lib/typescript/src/config/localization.d.ts +39 -0
  326. package/lib/typescript/src/config/localization.d.ts.map +1 -0
  327. package/lib/typescript/src/config/themeColors.d.ts +29 -0
  328. package/lib/typescript/src/config/themeColors.d.ts.map +1 -0
  329. package/lib/typescript/src/hooks/useChangePin.d.ts +9 -0
  330. package/lib/typescript/src/hooks/useChangePin.d.ts.map +1 -0
  331. package/lib/typescript/src/hooks/useGetCardDetails.d.ts +9 -0
  332. package/lib/typescript/src/hooks/useGetCardDetails.d.ts.map +1 -0
  333. package/lib/typescript/src/hooks/useSetPin.d.ts +9 -0
  334. package/lib/typescript/src/hooks/useSetPin.d.ts.map +1 -0
  335. package/lib/typescript/src/hooks/useVerifyPin.d.ts +9 -0
  336. package/lib/typescript/src/hooks/useVerifyPin.d.ts.map +1 -0
  337. package/lib/typescript/src/hooks/useViewPin.d.ts +9 -0
  338. package/lib/typescript/src/hooks/useViewPin.d.ts.map +1 -0
  339. package/lib/typescript/src/index.d.ts +7 -0
  340. package/lib/typescript/src/index.d.ts.map +1 -0
  341. package/lib/typescript/src/interfaces/NiCardManagementInterfaces.d.ts +37 -0
  342. package/lib/typescript/src/interfaces/NiCardManagementInterfaces.d.ts.map +1 -0
  343. package/lib/typescript/src/interfaces/NiInputInterfaces.d.ts +62 -0
  344. package/lib/typescript/src/interfaces/NiInputInterfaces.d.ts.map +1 -0
  345. package/lib/typescript/src/interfaces/NiInterfaces.d.ts +232 -0
  346. package/lib/typescript/src/interfaces/NiInterfaces.d.ts.map +1 -0
  347. package/lib/typescript/src/nativeComponents/NICardManagementSDKModule.d.ts +4 -0
  348. package/lib/typescript/src/nativeComponents/NICardManagementSDKModule.d.ts.map +1 -0
  349. package/lib/typescript/src/utils/formatInput.d.ts +4 -0
  350. package/lib/typescript/src/utils/formatInput.d.ts.map +1 -0
  351. package/lib/typescript/src/utils/localization.d.ts +20 -0
  352. package/lib/typescript/src/utils/localization.d.ts.map +1 -0
  353. package/package.json +167 -0
  354. package/react-native-ni-card-management.podspec +43 -0
  355. package/src/NICardManagementComponents/CardDetailsComponent.tsx +77 -0
  356. package/src/NICardManagementComponents/ChangePinView.tsx +41 -0
  357. package/src/NICardManagementComponents/NiInputInterfaces.ts +14 -0
  358. package/src/NICardManagementComponents/SetPinView.tsx +38 -0
  359. package/src/NICardManagementComponents/VerifyPinView.tsx +42 -0
  360. package/src/NICardManagementComponents/ViewPinComponent.tsx +48 -0
  361. package/src/assets/icons/content-copy.png +0 -0
  362. package/src/assets/icons/eye-off-outline.png +0 -0
  363. package/src/assets/icons/eye-outline.png +0 -0
  364. package/src/assets/icons/icons8-arrow-100.png +0 -0
  365. package/src/assets/icons/icons8-arrow-100_1.png +0 -0
  366. package/src/assets/icons/red-eye-off-outline.png +0 -0
  367. package/src/assets/icons/red-eye-outline.png +0 -0
  368. package/src/assets/images/grayCard.png +0 -0
  369. package/src/components/CardDetails/CardDetails.tsx +24 -0
  370. package/src/components/CardDetails/CardDetailsBackgroundImage.tsx +33 -0
  371. package/src/components/CardDetails/CardDetailsGroups.tsx +119 -0
  372. package/src/components/CardDetails/CardHolderNameGroups.tsx +101 -0
  373. package/src/components/CardDetails/CardNumberGroup.tsx +101 -0
  374. package/src/components/CardDetails/DateCVVGroupOneRow.tsx +146 -0
  375. package/src/components/CardDetails/styles.ts +105 -0
  376. package/src/components/ChangePin/CaptureCurrentPin.tsx +39 -0
  377. package/src/components/ChangePin/CaptureNewPin.tsx +39 -0
  378. package/src/components/ChangePin/ChangePin.tsx +153 -0
  379. package/src/components/ChangePin/ConfirmPin.tsx +47 -0
  380. package/src/components/ChangePin/ReenterNewPin.tsx +45 -0
  381. package/src/components/ChangePin/styles.ts +24 -0
  382. package/src/components/NIButton/NIButton.tsx +57 -0
  383. package/src/components/NIButton/styles.ts +10 -0
  384. package/src/components/Pin/CapturePin.tsx +227 -0
  385. package/src/components/Pin/NextButton.tsx +50 -0
  386. package/src/components/Pin/ShowHideButton.tsx +53 -0
  387. package/src/components/Pin/styles.ts +56 -0
  388. package/src/components/PinState/LoadingState.tsx +30 -0
  389. package/src/components/PinState/PinState.tsx +33 -0
  390. package/src/components/SetPin/ConfirmPin.tsx +47 -0
  391. package/src/components/SetPin/ReenterCardPin.tsx +45 -0
  392. package/src/components/SetPin/SetPin.tsx +140 -0
  393. package/src/components/SetPin/SetUpNewCardPin.tsx +39 -0
  394. package/src/components/SetPin/styles.ts +24 -0
  395. package/src/components/VerifyPin/CaptureVerifyPin.tsx +39 -0
  396. package/src/components/VerifyPin/ConfirmPin.tsx +49 -0
  397. package/src/components/VerifyPin/VerifyPin.tsx +105 -0
  398. package/src/components/VerifyPin/styles.ts +21 -0
  399. package/src/components/ViewPin/ViewPin.tsx +99 -0
  400. package/src/components/ViewPin/styles.ts +14 -0
  401. package/src/components/icons/PredeterminedIcon.tsx +41 -0
  402. package/src/config/configCard.ts +2 -0
  403. package/src/config/localization.ts +44 -0
  404. package/src/config/themeColors.ts +37 -0
  405. package/src/hooks/useChangePin.ts +39 -0
  406. package/src/hooks/useGetCardDetails.ts +38 -0
  407. package/src/hooks/useSetPin.ts +37 -0
  408. package/src/hooks/useVerifyPin.ts +37 -0
  409. package/src/hooks/useViewPin.ts +35 -0
  410. package/src/index.tsx +6 -0
  411. package/src/interfaces/NiCardManagementInterfaces.ts +61 -0
  412. package/src/interfaces/NiInputInterfaces.ts +78 -0
  413. package/src/interfaces/NiInterfaces.ts +259 -0
  414. package/src/nativeComponents/NICardManagementSDKModule.ts +5 -0
  415. package/src/utils/formatInput.ts +8 -0
  416. package/src/utils/localization.ts +10 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useChangePin.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useChangePin.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAExE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAEhF,eAAO,MAAM,YAAY;;;;0BAMb,MAAM,UACN,MAAM,SACP,gBAAgB,oBACL,eAAe,GAAG,IAAI,UAAU,MAAM,GAAG,IAAI,KAAK,IAAI,KACvE,IAAI;CAqBR,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { NiInputInterface } from '../interfaces/NiInputInterfaces';
2
+ import type { NIErrorResponse, NIGetCardSuccessResponse } from '../interfaces/NiCardManagementInterfaces';
3
+ export declare const useGetCardDetails: () => {
4
+ result: NIGetCardSuccessResponse | undefined;
5
+ error: NIErrorResponse | null | undefined;
6
+ isLoading: boolean;
7
+ onGetCardDetails: (input: NiInputInterface, callback: (error: NIErrorResponse | null, result: string | null) => void) => void;
8
+ };
9
+ //# sourceMappingURL=useGetCardDetails.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useGetCardDetails.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useGetCardDetails.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAExE,OAAO,KAAK,EACV,eAAe,EACf,wBAAwB,EACzB,MAAM,0CAA0C,CAAC;AAElD,eAAO,MAAM,iBAAiB;;;;8BAMnB,gBAAgB,oBACL,eAAe,GAAG,IAAI,UAAU,MAAM,GAAG,IAAI,KAAK,IAAI,KACvE,IAAI;CAmBR,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { NiInputInterface } from '../interfaces/NiInputInterfaces';
2
+ import type { NIErrorResponse } from '../interfaces/NiCardManagementInterfaces';
3
+ export declare const useSetPin: () => {
4
+ result: string | null | undefined;
5
+ error: NIErrorResponse | null | undefined;
6
+ isLoading: boolean;
7
+ onSetPin: (pin: string, input: NiInputInterface, callback: (error: NIErrorResponse | null, result: string | null) => void) => void;
8
+ };
9
+ //# sourceMappingURL=useSetPin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSetPin.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useSetPin.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAExE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAEhF,eAAO,MAAM,SAAS;;;;oBAMb,MAAM,SACJ,gBAAgB,oBACL,eAAe,GAAG,IAAI,UAAU,MAAM,GAAG,IAAI,KAAK,IAAI,KACvE,IAAI;CAoBR,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { NiInputInterface } from '../interfaces/NiInputInterfaces';
2
+ import type { NIErrorResponse } from '../interfaces/NiCardManagementInterfaces';
3
+ export declare const useVerifyPin: () => {
4
+ result: string | null | undefined;
5
+ error: NIErrorResponse | null | undefined;
6
+ isLoading: boolean;
7
+ onVerifyPin: (pin: string, input: NiInputInterface, callback: (error: NIErrorResponse | null, result: string | null) => void) => void;
8
+ };
9
+ //# sourceMappingURL=useVerifyPin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useVerifyPin.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useVerifyPin.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAExE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAEhF,eAAO,MAAM,YAAY;;;;uBAMhB,MAAM,SACJ,gBAAgB,oBACL,eAAe,GAAG,IAAI,UAAU,MAAM,GAAG,IAAI,KAAK,IAAI,KACvE,IAAI;CAoBR,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { NiInputInterface } from '../interfaces/NiInputInterfaces';
2
+ import type { NIErrorResponse } from '../interfaces/NiCardManagementInterfaces';
3
+ export declare const useViewPin: () => {
4
+ result: string | null | undefined;
5
+ error: NIErrorResponse | null | undefined;
6
+ isLoading: boolean;
7
+ onViewPin: (input: NiInputInterface, callback?: ((error: NIErrorResponse | null, result: string | null) => void) | undefined) => void;
8
+ };
9
+ //# sourceMappingURL=useViewPin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useViewPin.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useViewPin.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAExE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAEhF,eAAO,MAAM,UAAU;;;;uBAMZ,gBAAgB,sBACJ,eAAe,GAAG,IAAI,UAAU,MAAM,GAAG,IAAI,KAAK,IAAI;CAoB5E,CAAC"}
@@ -0,0 +1,7 @@
1
+ export * from './NICardManagementComponents/CardDetailsComponent';
2
+ export * from './NICardManagementComponents/SetPinView';
3
+ export * from './NICardManagementComponents/VerifyPinView';
4
+ export * from './NICardManagementComponents/ChangePinView';
5
+ export * from './NICardManagementComponents/ViewPinComponent';
6
+ export * from './NICardManagementComponents/NiInputInterfaces';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,mDAAmD,CAAC;AAClE,cAAc,yCAAyC,CAAC;AACxD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,gDAAgD,CAAC"}
@@ -0,0 +1,37 @@
1
+ export interface NIConnectionProperties {
2
+ rootUrl: string;
3
+ token: string;
4
+ }
5
+ export interface NIInputInterface {
6
+ bankCode: string;
7
+ cardIdentifierId: string;
8
+ cardIdentifierType: string;
9
+ connectionProperties: NIConnectionProperties;
10
+ }
11
+ export interface NIErrorResponse {
12
+ domain: string;
13
+ code: string;
14
+ message: string;
15
+ }
16
+ export interface NIGetCardSuccessResponse {
17
+ clearPan: string;
18
+ maskedPan: string;
19
+ expiry: string;
20
+ clearCVV2: string;
21
+ cardholderName: string;
22
+ }
23
+ interface NICardDetailsCallback {
24
+ (error: NIErrorResponse | null, res: NIGetCardSuccessResponse | null): void;
25
+ }
26
+ interface NIGenericCallback {
27
+ (error: NIErrorResponse | null, res: string): void;
28
+ }
29
+ export interface NICardManagementInterface {
30
+ getCardDetails(input: NIInputInterface | string, callback: NICardDetailsCallback): void;
31
+ setPin(pin: string, input: NIInputInterface | string, callback: NIGenericCallback): void;
32
+ verifyPin(pin: string, input: NIInputInterface | string, callback: NIGenericCallback): void;
33
+ changePin(oldPin: string, newPin: string, input: NIInputInterface | string, callback: NIGenericCallback): void;
34
+ getPin(input: NIInputInterface | string, callback: NIGenericCallback): void;
35
+ }
36
+ export {};
37
+ //# sourceMappingURL=NiCardManagementInterfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NiCardManagementInterfaces.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/NiCardManagementInterfaces.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,EAAE,MAAM,CAAC;IACzB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,oBAAoB,EAAE,sBAAsB,CAAC;CAC9C;AAED,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,UAAU,qBAAqB;IAC7B,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI,EAAE,GAAG,EAAE,wBAAwB,GAAG,IAAI,GAAG,IAAI,CAAC;CAC7E;AAED,UAAU,iBAAiB;IACzB,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CACpD;AAED,MAAM,WAAW,yBAAyB;IACxC,cAAc,CACZ,KAAK,EAAE,gBAAgB,GAAG,MAAM,EAChC,QAAQ,EAAE,qBAAqB,GAC9B,IAAI,CAAC;IAER,MAAM,CACJ,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,gBAAgB,GAAG,MAAM,EAChC,QAAQ,EAAE,iBAAiB,GAC1B,IAAI,CAAC;IAER,SAAS,CACP,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,gBAAgB,GAAG,MAAM,EAChC,QAAQ,EAAE,iBAAiB,GAC1B,IAAI,CAAC;IAER,SAAS,CACP,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,gBAAgB,GAAG,MAAM,EAChC,QAAQ,EAAE,iBAAiB,GAC1B,IAAI,CAAC;IAER,MAAM,CAAC,KAAK,EAAE,gBAAgB,GAAG,MAAM,EAAE,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAC;CAC7E"}
@@ -0,0 +1,62 @@
1
+ import type { ImageURISource } from 'react-native';
2
+ import type { NIInputInterface } from './NiCardManagementInterfaces';
3
+ export interface NICardDetailsTextPositioning {
4
+ leftAlignment?: number;
5
+ cardNumberGroupTopAlignment?: number;
6
+ dateCvvGroupTopAlignment?: number;
7
+ cardHolderNameGroupTopAlignment?: number;
8
+ }
9
+ export interface UIFont {
10
+ name: string;
11
+ size: number;
12
+ }
13
+ export interface NIFontLabelPair {
14
+ font: UIFont;
15
+ label: NILabels;
16
+ }
17
+ export declare enum NILabels {
18
+ cardNumberLabel = 0,
19
+ cardNumberValueLabel = 1,
20
+ expiryDateLabel = 2,
21
+ expiryDateValueLabel = 3,
22
+ cvvLabel = 4,
23
+ cvvValueLabel = 5,
24
+ cardholderNameLabel = 6,
25
+ setPinDescriptionLabel = 7,
26
+ changePinDescriptionLabel = 8,
27
+ viewPinDescriptionLabel = 9,
28
+ viewPinCountDownDescription = 110,
29
+ pinDigitLabel = 11
30
+ }
31
+ export interface NICardAttributes {
32
+ shouldHide: boolean;
33
+ backgroundImage?: ImageURISource;
34
+ textPositioning?: NICardDetailsTextPositioning;
35
+ }
36
+ export declare enum NIThemeEnum {
37
+ light = "light",
38
+ dark = "dark"
39
+ }
40
+ export declare enum NILanguageEnum {
41
+ english = "english",
42
+ arabic = "arabic"
43
+ }
44
+ export declare enum NIPinTypeEnum {
45
+ fourDigits = 4,
46
+ fiveDigits = 5,
47
+ sixDigits = 6,
48
+ dynamicFourToSix = 0
49
+ }
50
+ export type themeType = 'dark' | 'light';
51
+ export type languageType = 'english' | 'arabic';
52
+ export interface NIDisplayAttributes {
53
+ theme?: themeType;
54
+ language?: languageType;
55
+ fonts?: Array<NIFontLabelPair>;
56
+ cardAttributes?: NICardAttributes;
57
+ }
58
+ export interface NiInputInterface extends NIInputInterface {
59
+ timer?: number;
60
+ displayAttributes?: NIDisplayAttributes;
61
+ }
62
+ //# sourceMappingURL=NiInputInterfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NiInputInterfaces.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/NiInputInterfaces.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAErE,MAAM,WAAW,4BAA4B;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,+BAA+B,CAAC,EAAE,MAAM,CAAC;CAC1C;AAED,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AACD,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,QAAQ,CAAC;CACjB;AAED,oBAAY,QAAQ;IAElB,eAAe,IAAI;IACnB,oBAAoB,IAAI;IACxB,eAAe,IAAI;IACnB,oBAAoB,IAAI;IACxB,QAAQ,IAAI;IACZ,aAAa,IAAI;IACjB,mBAAmB,IAAI;IAGvB,sBAAsB,IAAI;IAG1B,yBAAyB,IAAI;IAG7B,uBAAuB,IAAI;IAC3B,2BAA2B,MAAM;IACjC,aAAa,KAAK;CACnB;AAED,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,OAAO,CAAC;IACpB,eAAe,CAAC,EAAE,cAAc,CAAC;IACjC,eAAe,CAAC,EAAE,4BAA4B,CAAC;CAChD;AAED,oBAAY,WAAW;IACrB,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,oBAAY,cAAc;IACxB,OAAO,YAAY;IACnB,MAAM,WAAW;CAClB;AAED,oBAAY,aAAa;IACvB,UAAU,IAAI;IACd,UAAU,IAAI;IACd,SAAS,IAAI;IACb,gBAAgB,IAAI;CACrB;AAED,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;AACzC,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,QAAQ,CAAC;AAChD,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,KAAK,CAAC,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;IAC/B,cAAc,CAAC,EAAE,gBAAgB,CAAC;CACnC;AAED,MAAM,WAAW,gBAAiB,SAAQ,gBAAgB;IACxD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,mBAAmB,CAAC;CACzC"}
@@ -0,0 +1,232 @@
1
+ import type { NiInputInterface, NIPinTypeEnum, NIDisplayAttributes, NILabels } from './NiInputInterfaces';
2
+ import type { NIErrorResponse, NIGetCardSuccessResponse } from './NiCardManagementInterfaces';
3
+ export declare enum NIStepEnum {
4
+ currentPinStep = 0,
5
+ setupPinStep = 1,
6
+ reEnterPinStep = 2,
7
+ verifyStep = 3
8
+ }
9
+ export interface NICardDetailsComponent {
10
+ input: NiInputInterface | null;
11
+ callback: (error: NIErrorResponse | null, result: string | null) => void;
12
+ }
13
+ export interface NISetPinView {
14
+ input: NiInputInterface | null;
15
+ type?: NIPinTypeEnum;
16
+ callback: (error: NIErrorResponse | null, result: string | null) => void;
17
+ }
18
+ export interface NIVerifyPinView {
19
+ input: NiInputInterface | null;
20
+ type?: NIPinTypeEnum;
21
+ callback: (error: NIErrorResponse | null, result: string | null) => void;
22
+ }
23
+ export interface NIViewPinComponent {
24
+ input: NiInputInterface | null;
25
+ type?: NIPinTypeEnum;
26
+ callback: (error: NIErrorResponse | null, result: string | null) => void;
27
+ }
28
+ export interface NIChangePinView {
29
+ input: NiInputInterface | null;
30
+ type: NIPinTypeEnum;
31
+ callback: (error: NIErrorResponse | null, result: string | null) => void;
32
+ }
33
+ export interface NICardDetails {
34
+ displayAttributes: NIDisplayAttributes | undefined;
35
+ getCardDetailsResult: NIGetCardSuccessResponse | undefined;
36
+ isError: boolean;
37
+ }
38
+ export interface NICardDetailsImage {
39
+ displayAttributes: NIDisplayAttributes | undefined;
40
+ getCardDetailsResult: NIGetCardSuccessResponse | undefined;
41
+ isError: boolean;
42
+ }
43
+ export interface NICardDetailsGroups {
44
+ displayAttributes: NIDisplayAttributes | undefined;
45
+ getCardDetailsResult: NIGetCardSuccessResponse | undefined;
46
+ isError: boolean;
47
+ }
48
+ export interface NICardDetailsCardNumberGroup {
49
+ clearPan: string;
50
+ maskedPan: string;
51
+ pinContentIndex: NILabels;
52
+ cardDetailsVisible: boolean;
53
+ setIsVisibleCopiedButton: (isVisibleCopiedButton: boolean) => void;
54
+ setTimeOut: () => void;
55
+ displayAttributes: NIDisplayAttributes | undefined;
56
+ }
57
+ export interface NICardDetailsDateCVVGroupOneRow {
58
+ expiry: string;
59
+ clearCVV2: string;
60
+ pinLabelIndex: NILabels;
61
+ pinContentIndex: NILabels;
62
+ pinLabel1Index: NILabels;
63
+ pinContent1Index: NILabels;
64
+ cardDetailsVisible: {
65
+ cardDetailsVisible: boolean;
66
+ setCardDetailsVisible: (visibleCardDetail: boolean) => void;
67
+ };
68
+ shouldHide: boolean;
69
+ displayAttributes: NIDisplayAttributes | undefined;
70
+ isError: boolean;
71
+ }
72
+ export interface NICardDetailsCardHolderNameGroups {
73
+ cardholderName: string;
74
+ pinContentIndex: NILabels;
75
+ cardDetailsVisible: boolean;
76
+ setIsVisibleCopiedButton: (isVisibleCopiedButton: boolean) => void;
77
+ displayAttributes?: NIDisplayAttributes | undefined;
78
+ setTimeOut: () => void;
79
+ }
80
+ export interface NIVerifyPin {
81
+ pinType: NIPinTypeEnum;
82
+ input: NiInputInterface | null;
83
+ result: string | null | undefined;
84
+ isLoading: boolean;
85
+ onVerifyPin: NIOnVerifyPin;
86
+ callback: (error: NIErrorResponse | null, result: string | null) => void;
87
+ }
88
+ export interface NISetupPin {
89
+ pinType: NIPinTypeEnum;
90
+ input: NiInputInterface | null;
91
+ result: string | null | undefined;
92
+ isLoading: boolean;
93
+ onSetPin: NIOnSetPin;
94
+ callback: (error: NIErrorResponse | null, result: string | null) => void;
95
+ }
96
+ export interface NIChangePin {
97
+ pinType: NIPinTypeEnum;
98
+ input: NiInputInterface | null;
99
+ result: string | null | undefined;
100
+ isLoading: boolean;
101
+ onChangePin: NIOnChangePin;
102
+ callback: (error: NIErrorResponse | null, result: string | null) => void;
103
+ }
104
+ export interface NIConfirmPin {
105
+ language: string;
106
+ theme: string;
107
+ disabled: boolean;
108
+ onConfirmPin: () => void;
109
+ }
110
+ interface NIOnVerifyPin {
111
+ (pin: string, input: NiInputInterface, callback: (error: NIErrorResponse | null, result: string | null) => void): void;
112
+ }
113
+ interface NIOnSetPin {
114
+ (pin: string, input: NiInputInterface, callback: (error: NIErrorResponse | null, result: string | null) => void): void;
115
+ }
116
+ interface NIOnChangePin {
117
+ (currentPin: string, pin: string, input: NiInputInterface, callback: (error: NIErrorResponse | null, result: string | null) => void): void;
118
+ }
119
+ export interface NICapturePin {
120
+ setPin: {
121
+ pin: string;
122
+ setPin: (pin: string) => void;
123
+ initialPin?: string;
124
+ pinEditable: boolean;
125
+ };
126
+ setNextStep: {
127
+ step: NIStepEnum;
128
+ setNextStep?: (step: NIStepEnum) => void;
129
+ onConfirmPin?: () => void;
130
+ };
131
+ pinType: NIPinTypeEnum;
132
+ title: string;
133
+ pinLabel: string;
134
+ wrongPinLabel?: string;
135
+ pinLabelIndex: NILabels;
136
+ showHideLabels: {
137
+ show: string;
138
+ hide: string;
139
+ };
140
+ theme: string;
141
+ input: NiInputInterface | null;
142
+ showPin?: boolean | null;
143
+ }
144
+ export interface NINextButton {
145
+ setNextStep: {
146
+ step: NIStepEnum;
147
+ setNextStep?: (step: NIStepEnum) => void;
148
+ };
149
+ disabled: boolean;
150
+ theme: string;
151
+ }
152
+ export interface NIShowHideButton {
153
+ setShowHide: {
154
+ isShowHide: boolean;
155
+ setIsShowHide: (isShowHide: boolean) => void;
156
+ };
157
+ showHideLabels: {
158
+ show: string;
159
+ hide: string;
160
+ };
161
+ theme: string;
162
+ }
163
+ export interface NICaptureVerifyPin {
164
+ setPin: {
165
+ pin: string;
166
+ setPin: (pin: string) => void;
167
+ pinEditable: boolean;
168
+ };
169
+ setNextStep: {
170
+ step: NIStepEnum;
171
+ setNextStep: (step: NIStepEnum) => void;
172
+ onConfirmPin: () => void;
173
+ };
174
+ pinType: NIPinTypeEnum;
175
+ language: string;
176
+ theme: string;
177
+ input: NiInputInterface | null;
178
+ }
179
+ export interface NIViewPin {
180
+ pinType: NIPinTypeEnum;
181
+ input: NiInputInterface | null;
182
+ result: string;
183
+ countdownTime: number;
184
+ }
185
+ export interface NISetUpNewCardPin {
186
+ setPin: {
187
+ pin: string;
188
+ setPin: (pin: string) => void;
189
+ pinEditable: boolean;
190
+ };
191
+ setNextStep: {
192
+ step: NIStepEnum;
193
+ setNextStep: (step: NIStepEnum) => void;
194
+ };
195
+ pinType: NIPinTypeEnum;
196
+ language: string;
197
+ theme: string;
198
+ input: NiInputInterface | null;
199
+ }
200
+ export interface NICurrentCardPin {
201
+ setPin: {
202
+ currentPin: string;
203
+ setCurrentPin: (currentPin: string) => void;
204
+ pinEditable: boolean;
205
+ };
206
+ setNextStep: {
207
+ step: NIStepEnum;
208
+ setNextStep: (step: NIStepEnum) => void;
209
+ };
210
+ pinType: NIPinTypeEnum;
211
+ language: string;
212
+ theme: string;
213
+ input: NiInputInterface | null;
214
+ }
215
+ export interface NIReenterCardPin {
216
+ setPin: {
217
+ confirmationPin: string;
218
+ setConfirmationPin: (confirmationPin: string) => void;
219
+ pin: string;
220
+ pinEditable: boolean;
221
+ };
222
+ setNextStep: {
223
+ step: NIStepEnum;
224
+ onConfirmPin: () => void;
225
+ };
226
+ pinType: NIPinTypeEnum;
227
+ language: string;
228
+ theme: string;
229
+ input: NiInputInterface | null;
230
+ }
231
+ export {};
232
+ //# sourceMappingURL=NiInterfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NiInterfaces.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/NiInterfaces.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,aAAa,EACb,mBAAmB,EACnB,QAAQ,EACT,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,eAAe,EACf,wBAAwB,EACzB,MAAM,8BAA8B,CAAC;AAEtC,oBAAY,UAAU;IACpB,cAAc,IAAI;IAClB,YAAY,IAAI;IAChB,cAAc,IAAI;IAClB,UAAU,IAAI;CACf;AAED,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC/B,QAAQ,EAAE,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI,EAAE,MAAM,EAAE,MAAM,G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,0 +1,4 @@
1
+ import type { NICardManagementInterface } from '../interfaces/NiCardManagementInterfaces';
2
+ declare const _default: NICardManagementInterface;
3
+ export default _default;
4
+ //# sourceMappingURL=NICardManagementSDKModule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NICardManagementSDKModule.d.ts","sourceRoot":"","sources":["../../../../src/nativeComponents/NICardManagementSDKModule.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;;AAE1F,wBAA2E"}
@@ -0,0 +1,4 @@
1
+ import type { NiInputInterface } from '../interfaces/NiInputInterfaces';
2
+ declare const formatInput: (input: NiInputInterface) => string | NiInputInterface;
3
+ export default formatInput;
4
+ //# sourceMappingURL=formatInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatInput.d.ts","sourceRoot":"","sources":["../../../../src/utils/formatInput.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAExE,QAAA,MAAM,WAAW,UAAW,gBAAgB,8BACW,CAAC;AAExD,eAAe,WAAW,CAAC"}
@@ -0,0 +1,20 @@
1
+ declare function localLabels(language: string): {
2
+ cardNumber: string;
3
+ expiry: string;
4
+ CVV: string;
5
+ cardHolderName: string;
6
+ enterNewCardPin: string;
7
+ confirmCardPIN: string;
8
+ wrongCardPin: string;
9
+ enterCurrentCardPin: string;
10
+ enterVerifyCardPin: string;
11
+ verifyPinButtonLabel: string;
12
+ setPinButtonLabel: string;
13
+ changePinButtonLabel: string;
14
+ copiedToClipboard: string;
15
+ viewPinCountdownLabel: (count: number) => string;
16
+ show: string;
17
+ hide: string;
18
+ };
19
+ export default localLabels;
20
+ //# sourceMappingURL=localization.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"localization.d.ts","sourceRoot":"","sources":["../../../../src/utils/localization.ts"],"names":[],"mappings":"AAGA,iBAAS,WAAW,CAAC,QAAQ,EAAE,MAAM;;;;;;;;;;;;;;;;;EAIpC;AAED,eAAe,WAAW,CAAC"}
package/package.json ADDED
@@ -0,0 +1,167 @@
1
+ {
2
+ "name": "@networkinternational/ni-card-management-sdk",
3
+ "version": "1.0.2",
4
+ "description": "SDKs to help card issuers to consume our APIs from iOS applications.",
5
+ "main": "lib/commonjs/index",
6
+ "module": "lib/module/index",
7
+ "types": "lib/typescript/src/index.d.ts",
8
+ "react-native": "src/index",
9
+ "source": "src/index",
10
+ "files": [
11
+ "src",
12
+ "lib",
13
+ "android",
14
+ "ios",
15
+ "cpp",
16
+ "*.podspec",
17
+ "!ios/build",
18
+ "!android/build",
19
+ "!android/gradle",
20
+ "!android/gradlew",
21
+ "!android/gradlew.bat",
22
+ "!android/local.properties",
23
+ "!**/__tests__",
24
+ "!**/__fixtures__",
25
+ "!**/__mocks__",
26
+ "!**/.*"
27
+ ],
28
+ "scripts": {
29
+ "example": "yarn workspace react-native-ni-card-management-example",
30
+ "test": "jest",
31
+ "typecheck": "tsc --noEmit",
32
+ "lint": "eslint \"**/*.{js,ts,tsx}\"",
33
+ "clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
34
+ "prepare": "bob build",
35
+ "release": "release-it"
36
+ },
37
+ "keywords": [
38
+ "react-native",
39
+ "ios",
40
+ "android"
41
+ ],
42
+ "repository": "https://github.com/network-international/card-management-sdk-react-native",
43
+ "author": "Network International",
44
+ "license": "MIT",
45
+ "homepage": "https://github.com/network-international/card-management-sdk-react-native",
46
+ "`publish`Config": {
47
+ "registry": "https://registry.npmjs.org/"
48
+ },
49
+ "devDependencies": {
50
+ "@commitlint/config-conventional": "^17.0.2",
51
+ "@evilmartians/lefthook": "^1.5.0",
52
+ "@react-native-community/clipboard": "*",
53
+ "@react-native/eslint-config": "^0.72.2",
54
+ "@release-it/conventional-changelog": "^5.0.0",
55
+ "@types/jest": "^28.1.2",
56
+ "@types/react": "~17.0.21",
57
+ "@types/react-native": "0.70.0",
58
+ "commitlint": "^17.0.2",
59
+ "del-cli": "^5.0.0",
60
+ "dev": "^0.1.3",
61
+ "eslint": "^8.4.1",
62
+ "eslint-config-prettier": "^8.5.0",
63
+ "eslint-plugin-prettier": "^4.0.0",
64
+ "jest": "^28.1.1",
65
+ "pod-install": "^0.1.0",
66
+ "prettier": "^2.0.5",
67
+ "react": "18.2.0",
68
+ "react-native": "0.72.7",
69
+ "react-native-builder-bob": "^0.23.2",
70
+ "react-native-linear-gradient": "*",
71
+ "react-native-paper": "*",
72
+ "react-native-safe-area-context": "*",
73
+ "release-it": "^15.0.0",
74
+ "turbo": "^1.10.7",
75
+ "typescript": "^5.0.2"
76
+ },
77
+ "resolutions": {
78
+ "@types/react": "17.0.21"
79
+ },
80
+ "peerDependencies": {
81
+ "@react-native-community/clipboard": "*",
82
+ "react": "*",
83
+ "react-native": "*",
84
+ "react-native-linear-gradient": "*",
85
+ "react-native-paper": "*"
86
+ },
87
+ "workspaces": [
88
+ "example"
89
+ ],
90
+ "packageManager": "yarn@3.6.1",
91
+ "engines": {
92
+ "node": ">= 18.0.0"
93
+ },
94
+ "jest": {
95
+ "preset": "react-native",
96
+ "modulePathIgnorePatterns": [
97
+ "<rootDir>/example/node_modules",
98
+ "<rootDir>/lib/"
99
+ ]
100
+ },
101
+ "commitlint": {
102
+ "extends": [
103
+ "@commitlint/config-conventional"
104
+ ]
105
+ },
106
+ "release-it": {
107
+ "git": {
108
+ "commitMessage": "chore: release ${version}",
109
+ "tagName": "v${version}"
110
+ },
111
+ "npm": {
112
+ "publish": true
113
+ },
114
+ "github": {
115
+ "release": true
116
+ },
117
+ "plugins": {
118
+ "@release-it/conventional-changelog": {
119
+ "preset": "angular"
120
+ }
121
+ }
122
+ },
123
+ "eslintConfig": {
124
+ "root": true,
125
+ "extends": [
126
+ "@react-native",
127
+ "prettier"
128
+ ],
129
+ "rules": {
130
+ "prettier/prettier": [
131
+ "error",
132
+ {
133
+ "quoteProps": "consistent",
134
+ "singleQuote": true,
135
+ "tabWidth": 2,
136
+ "trailingComma": "es5",
137
+ "useTabs": false
138
+ }
139
+ ]
140
+ }
141
+ },
142
+ "eslintIgnore": [
143
+ "node_modules/",
144
+ "lib/"
145
+ ],
146
+ "prettier": {
147
+ "quoteProps": "consistent",
148
+ "singleQuote": true,
149
+ "tabWidth": 2,
150
+ "trailingComma": "es5",
151
+ "useTabs": false
152
+ },
153
+ "react-native-builder-bob": {
154
+ "source": "src",
155
+ "output": "lib",
156
+ "targets": [
157
+ "commonjs",
158
+ "module",
159
+ [
160
+ "typescript",
161
+ {
162
+ "project": "tsconfig.build.json"
163
+ }
164
+ ]
165
+ ]
166
+ }
167
+ }