@payos-inc/payos-react 1.0.42 → 1.2.0-staging.91

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 (411) hide show
  1. package/LICENSE +96 -0
  2. package/README.md +160 -0
  3. package/dist/THIRD_PARTY_NOTICES.txt +549 -0
  4. package/dist/payos-react.cjs +50 -0
  5. package/dist/payos-react.css +1 -1
  6. package/dist/payos-react.esm.js +17 -11
  7. package/dist/payos-react.min.js +2 -1
  8. package/dist/payos-react.mjs +50 -0
  9. package/dist/types/index.d.ts +1 -57
  10. package/dist/types/payos-passkey-js/src/api/ApiClient.d.ts +48 -0
  11. package/dist/types/payos-passkey-js/src/core/PayOSPasskey.d.ts +114 -0
  12. package/dist/types/payos-passkey-js/src/core/types.d.ts +100 -0
  13. package/dist/types/payos-passkey-js/src/index.d.ts +9 -0
  14. package/dist/types/payos-passkey-js/src/services/mastercard/MastercardSDKService.d.ts +61 -0
  15. package/dist/types/payos-passkey-js/src/services/visa/VisaSDKService.d.ts +90 -0
  16. package/dist/types/payos-passkey-js/src/utils/diagnostics.d.ts +30 -0
  17. package/dist/types/payos-passkey-js/src/utils/logger.d.ts +36 -0
  18. package/dist/{components → types/payos-react/src/components}/payos/ActiveCardWidget.d.ts +0 -1
  19. package/dist/{components → types/payos-react/src/components}/payos/AgentRegistrationFlow.d.ts +1 -3
  20. package/dist/{components → types/payos-react/src/components}/payos/ConnectStripeLinkButton.d.ts +0 -1
  21. package/dist/types/{components → payos-react/src/components}/payos/IdentityVerificationFlow.d.ts +0 -1
  22. package/dist/{components → types/payos-react/src/components}/payos/LinkPaymentFlow.d.ts +0 -1
  23. package/dist/{components → types/payos-react/src/components}/payos/LinkSessionContent.d.ts +0 -1
  24. package/dist/types/{components → payos-react/src/components}/payos/PayOSFooter.d.ts +0 -1
  25. package/dist/types/{components → payos-react/src/components}/payos/PayWithLinkButton.d.ts +0 -1
  26. package/dist/{components → types/payos-react/src/components}/payos/PaymentMethodRow.d.ts +0 -1
  27. package/dist/{components → types/payos-react/src/components}/payos/PaymentSheet.d.ts +3 -4
  28. package/dist/types/{components → payos-react/src/components}/payos/PaymentSheetContent.d.ts +6 -4
  29. package/dist/types/{components → payos-react/src/components}/payos/PaymentSheetPaymentFlow.d.ts +4 -2
  30. package/dist/{components → types/payos-react/src/components}/payos/PaymentSheetShell.d.ts +0 -1
  31. package/dist/types/{components → payos-react/src/components}/payos/PaymentSheetStatusViews.d.ts +3 -2
  32. package/dist/types/{components → payos-react/src/components}/payos/PriceTag.d.ts +0 -1
  33. package/dist/types/{components → payos-react/src/components}/payos/ReceiptPanel.d.ts +0 -1
  34. package/dist/types/{components → payos-react/src/components}/payos/ViewHeader.d.ts +2 -1
  35. package/dist/types/{components → payos-react/src/components}/payos/drawer.d.ts +5 -2
  36. package/dist/{components → types/payos-react/src/components}/payos/order-summary.d.ts +0 -1
  37. package/dist/{components → types/payos-react/src/components}/payos/otp-input.d.ts +0 -1
  38. package/dist/types/{components → payos-react/src/components}/payos/phone-input.d.ts +0 -1
  39. package/dist/{components → types/payos-react/src/components}/payos/themeMode.d.ts +0 -1
  40. package/dist/types/{components → payos-react/src/components}/payos/usePaymentSheetDisplayData.d.ts +0 -1
  41. package/dist/types/{components → payos-react/src/components}/payos/usePaymentSheetLifecycle.d.ts +0 -1
  42. package/dist/{components → types/payos-react/src/components}/payos/usePaymentSheetSkipToAuth.d.ts +0 -1
  43. package/dist/{components → types/payos-react/src/components}/payos/usePaymentSheetSkipToLink.d.ts +0 -1
  44. package/dist/{components → types/payos-react/src/components}/payos/views/AgentRegistrationView.d.ts +0 -1
  45. package/dist/types/{components → payos-react/src/components}/payos/views/CardAddView.d.ts +1 -2
  46. package/dist/types/{components → payos-react/src/components}/payos/views/CheckoutView.d.ts +0 -1
  47. package/dist/types/{components → payos-react/src/components}/payos/views/IdentityView.d.ts +0 -1
  48. package/dist/{components → types/payos-react/src/components}/payos/views/LinkBrand.d.ts +0 -1
  49. package/dist/{components → types/payos-react/src/components}/payos/views/LinkCheckoutView.d.ts +0 -1
  50. package/dist/types/{components → payos-react/src/components}/payos/views/LinkConnectView.d.ts +0 -1
  51. package/dist/types/{components → payos-react/src/components}/payos/views/LinkDeniedView.d.ts +0 -1
  52. package/dist/{components → types/payos-react/src/components}/payos/views/LinkLoadingView.d.ts +0 -1
  53. package/dist/types/{components → payos-react/src/components}/payos/views/LinkSuccessView.d.ts +0 -1
  54. package/dist/{components → types/payos-react/src/components}/payos/views/ManageThirdPartyView.d.ts +0 -1
  55. package/dist/{components → types/payos-react/src/components}/payos/views/MethodListView.d.ts +8 -1
  56. package/dist/types/{components → payos-react/src/components}/payos/views/OTPView.d.ts +0 -1
  57. package/dist/types/payos-react/src/components/payos/views/ShareCardsView.d.ts +28 -0
  58. package/dist/types/{components → payos-react/src/components}/payos/views/SuccessView.d.ts +0 -1
  59. package/dist/{components → types/payos-react/src/components}/payos/views/VisaIframeView.d.ts +0 -1
  60. package/dist/types/{components → payos-react/src/components}/payos/views/VisaMethodView.d.ts +0 -1
  61. package/dist/{components → types/payos-react/src/components}/payos/views/VisaOtpView.d.ts +0 -1
  62. package/dist/{components → types/payos-react/src/components}/payos/views/WelcomeBackView.d.ts +0 -1
  63. package/dist/types/payos-react/src/components/ui/CardArt.d.ts +22 -0
  64. package/dist/types/{components → payos-react/src/components}/ui/CardBrandIcon.d.ts +0 -1
  65. package/dist/types/{components → payos-react/src/components}/ui/ConfirmDialog.d.ts +0 -1
  66. package/dist/types/{components → payos-react/src/components}/ui/DigitalCard.d.ts +0 -1
  67. package/dist/types/payos-react/src/components/ui/HelpPopover.d.ts +17 -0
  68. package/dist/types/{components → payos-react/src/components}/ui/button.d.ts +1 -2
  69. package/dist/types/{components → payos-react/src/components}/ui/card.d.ts +1 -2
  70. package/dist/types/{components → payos-react/src/components}/ui/input.d.ts +0 -1
  71. package/dist/types/{components → payos-react/src/components}/ui/label.d.ts +1 -2
  72. package/dist/types/{components → payos-react/src/components}/ui/separator.d.ts +0 -1
  73. package/dist/{hooks → types/payos-react/src/hooks}/useBiometricType.d.ts +0 -1
  74. package/dist/types/{hooks → payos-react/src/hooks}/useBodyScrollLock.d.ts +0 -1
  75. package/dist/types/{hooks → payos-react/src/hooks}/useCardElement.d.ts +1 -2
  76. package/dist/types/{hooks → payos-react/src/hooks}/useLinkAuth.d.ts +0 -1
  77. package/dist/types/{hooks → payos-react/src/hooks}/useLinkDeviceAuthPoll.d.ts +0 -1
  78. package/dist/types/{hooks → payos-react/src/hooks}/useLinkMethods.d.ts +0 -1
  79. package/dist/{hooks → types/payos-react/src/hooks}/useLinkSession.d.ts +0 -1
  80. package/dist/{hooks → types/payos-react/src/hooks}/useLinkSpendStatusPoll.d.ts +0 -1
  81. package/dist/types/{hooks → payos-react/src/hooks}/usePasskeySDK.d.ts +2 -4
  82. package/dist/{hooks → types/payos-react/src/hooks}/useSession.d.ts +14 -1
  83. package/dist/types/{hooks → payos-react/src/hooks}/useVisualViewport.d.ts +0 -1
  84. package/dist/{index.d.ts → types/payos-react/src/index.d.ts} +3 -4
  85. package/dist/{lib → types/payos-react/src/lib}/utils.d.ts +0 -1
  86. package/dist/{services → types/payos-react/src/services}/apiService.d.ts +12 -2
  87. package/dist/{services → types/payos-react/src/services}/linkTokenService.d.ts +0 -1
  88. package/dist/types/{cardElement.d.ts → payos-react/src/types/cardElement.d.ts} +2 -3
  89. package/dist/types/{drawer.d.ts → payos-react/src/types/drawer.d.ts} +0 -1
  90. package/dist/types/{types → payos-react/src/types}/index.d.ts +0 -1
  91. package/dist/types/{order.d.ts → payos-react/src/types/order.d.ts} +0 -1
  92. package/dist/types/{types → payos-react/src/types}/payment.d.ts +1 -2
  93. package/dist/types/{session.d.ts → payos-react/src/types/session.d.ts} +17 -1
  94. package/dist/types/{utils → payos-react/src/utils}/credentialStatus.d.ts +0 -1
  95. package/dist/{utils → types/payos-react/src/utils}/deviceFingerprint.d.ts +0 -1
  96. package/dist/types/{utils → payos-react/src/utils}/environment.d.ts +0 -1
  97. package/dist/{utils → types/payos-react/src/utils}/formatting.d.ts +0 -1
  98. package/dist/types/{utils → payos-react/src/utils}/linkPopup.d.ts +0 -1
  99. package/dist/types/payos-react/src/utils/organizationName.d.ts +8 -0
  100. package/dist/types/{utils → payos-react/src/utils}/selectCard.d.ts +0 -1
  101. package/dist/types/{utils → payos-react/src/utils}/text.d.ts +0 -1
  102. package/dist/{utils → types/payos-react/src/utils}/validation.d.ts +0 -1
  103. package/package.json +38 -13
  104. package/dist/components/identity/IdentityBar.d.ts +0 -8
  105. package/dist/components/identity/IdentityBar.d.ts.map +0 -1
  106. package/dist/components/order/OrderSummaryAccordion.d.ts +0 -9
  107. package/dist/components/order/OrderSummaryAccordion.d.ts.map +0 -1
  108. package/dist/components/order/ShipmentCard.d.ts +0 -8
  109. package/dist/components/order/ShipmentCard.d.ts.map +0 -1
  110. package/dist/components/payos/ActiveCardWidget.d.ts.map +0 -1
  111. package/dist/components/payos/AgentRegistrationFlow.d.ts.map +0 -1
  112. package/dist/components/payos/ConnectStripeLinkButton.d.ts.map +0 -1
  113. package/dist/components/payos/IdentityVerificationFlow.d.ts +0 -26
  114. package/dist/components/payos/IdentityVerificationFlow.d.ts.map +0 -1
  115. package/dist/components/payos/LinkPaymentFlow.d.ts.map +0 -1
  116. package/dist/components/payos/LinkSessionContent.d.ts.map +0 -1
  117. package/dist/components/payos/PayOSFooter.d.ts +0 -25
  118. package/dist/components/payos/PayOSFooter.d.ts.map +0 -1
  119. package/dist/components/payos/PayWithLinkButton.d.ts +0 -74
  120. package/dist/components/payos/PayWithLinkButton.d.ts.map +0 -1
  121. package/dist/components/payos/PaymentMethodRow.d.ts.map +0 -1
  122. package/dist/components/payos/PaymentSheet.d.ts.map +0 -1
  123. package/dist/components/payos/PaymentSheetContent.d.ts +0 -80
  124. package/dist/components/payos/PaymentSheetContent.d.ts.map +0 -1
  125. package/dist/components/payos/PaymentSheetPaymentFlow.d.ts +0 -43
  126. package/dist/components/payos/PaymentSheetPaymentFlow.d.ts.map +0 -1
  127. package/dist/components/payos/PaymentSheetShell.d.ts.map +0 -1
  128. package/dist/components/payos/PaymentSheetStatusViews.d.ts +0 -28
  129. package/dist/components/payos/PaymentSheetStatusViews.d.ts.map +0 -1
  130. package/dist/components/payos/PriceTag.d.ts +0 -64
  131. package/dist/components/payos/PriceTag.d.ts.map +0 -1
  132. package/dist/components/payos/ReceiptPanel.d.ts +0 -67
  133. package/dist/components/payos/ReceiptPanel.d.ts.map +0 -1
  134. package/dist/components/payos/ViewHeader.d.ts +0 -9
  135. package/dist/components/payos/ViewHeader.d.ts.map +0 -1
  136. package/dist/components/payos/drawer.d.ts +0 -107
  137. package/dist/components/payos/drawer.d.ts.map +0 -1
  138. package/dist/components/payos/order-summary.d.ts.map +0 -1
  139. package/dist/components/payos/otp-input.d.ts.map +0 -1
  140. package/dist/components/payos/phone-input.d.ts +0 -30
  141. package/dist/components/payos/phone-input.d.ts.map +0 -1
  142. package/dist/components/payos/themeMode.d.ts.map +0 -1
  143. package/dist/components/payos/usePaymentSheetDebug.d.ts +0 -22
  144. package/dist/components/payos/usePaymentSheetDebug.d.ts.map +0 -1
  145. package/dist/components/payos/usePaymentSheetDisplayData.d.ts +0 -29
  146. package/dist/components/payos/usePaymentSheetDisplayData.d.ts.map +0 -1
  147. package/dist/components/payos/usePaymentSheetLifecycle.d.ts +0 -39
  148. package/dist/components/payos/usePaymentSheetLifecycle.d.ts.map +0 -1
  149. package/dist/components/payos/usePaymentSheetSkipToAuth.d.ts.map +0 -1
  150. package/dist/components/payos/usePaymentSheetSkipToLink.d.ts.map +0 -1
  151. package/dist/components/payos/views/AgentRegistrationView.d.ts.map +0 -1
  152. package/dist/components/payos/views/CardAddView.d.ts +0 -101
  153. package/dist/components/payos/views/CardAddView.d.ts.map +0 -1
  154. package/dist/components/payos/views/CheckoutView.d.ts +0 -95
  155. package/dist/components/payos/views/CheckoutView.d.ts.map +0 -1
  156. package/dist/components/payos/views/IdentityView.d.ts +0 -51
  157. package/dist/components/payos/views/IdentityView.d.ts.map +0 -1
  158. package/dist/components/payos/views/LinkBrand.d.ts.map +0 -1
  159. package/dist/components/payos/views/LinkCheckoutView.d.ts.map +0 -1
  160. package/dist/components/payos/views/LinkConnectView.d.ts +0 -18
  161. package/dist/components/payos/views/LinkConnectView.d.ts.map +0 -1
  162. package/dist/components/payos/views/LinkDeniedView.d.ts +0 -13
  163. package/dist/components/payos/views/LinkDeniedView.d.ts.map +0 -1
  164. package/dist/components/payos/views/LinkLoadingView.d.ts.map +0 -1
  165. package/dist/components/payos/views/LinkSuccessView.d.ts +0 -11
  166. package/dist/components/payos/views/LinkSuccessView.d.ts.map +0 -1
  167. package/dist/components/payos/views/ManageThirdPartyView.d.ts.map +0 -1
  168. package/dist/components/payos/views/MethodListView.d.ts.map +0 -1
  169. package/dist/components/payos/views/OTPView.d.ts +0 -69
  170. package/dist/components/payos/views/OTPView.d.ts.map +0 -1
  171. package/dist/components/payos/views/SuccessView.d.ts +0 -49
  172. package/dist/components/payos/views/SuccessView.d.ts.map +0 -1
  173. package/dist/components/payos/views/VisaIframeView.d.ts.map +0 -1
  174. package/dist/components/payos/views/VisaMethodView.d.ts +0 -23
  175. package/dist/components/payos/views/VisaMethodView.d.ts.map +0 -1
  176. package/dist/components/payos/views/VisaOtpView.d.ts.map +0 -1
  177. package/dist/components/payos/views/WelcomeBackView.d.ts.map +0 -1
  178. package/dist/components/ui/CardBrandIcon.d.ts +0 -10
  179. package/dist/components/ui/CardBrandIcon.d.ts.map +0 -1
  180. package/dist/components/ui/ConfirmDialog.d.ts +0 -25
  181. package/dist/components/ui/ConfirmDialog.d.ts.map +0 -1
  182. package/dist/components/ui/DigitalCard.d.ts +0 -13
  183. package/dist/components/ui/DigitalCard.d.ts.map +0 -1
  184. package/dist/components/ui/InfoTooltip.d.ts +0 -8
  185. package/dist/components/ui/InfoTooltip.d.ts.map +0 -1
  186. package/dist/components/ui/PinInput.d.ts +0 -12
  187. package/dist/components/ui/PinInput.d.ts.map +0 -1
  188. package/dist/components/ui/button.d.ts +0 -14
  189. package/dist/components/ui/button.d.ts.map +0 -1
  190. package/dist/components/ui/card.d.ts +0 -15
  191. package/dist/components/ui/card.d.ts.map +0 -1
  192. package/dist/components/ui/input.d.ts +0 -6
  193. package/dist/components/ui/input.d.ts.map +0 -1
  194. package/dist/components/ui/label.d.ts +0 -6
  195. package/dist/components/ui/label.d.ts.map +0 -1
  196. package/dist/components/ui/separator.d.ts +0 -5
  197. package/dist/components/ui/separator.d.ts.map +0 -1
  198. package/dist/hooks/index.d.ts +0 -8
  199. package/dist/hooks/index.d.ts.map +0 -1
  200. package/dist/hooks/useBiometricType.d.ts.map +0 -1
  201. package/dist/hooks/useBodyScrollLock.d.ts +0 -32
  202. package/dist/hooks/useBodyScrollLock.d.ts.map +0 -1
  203. package/dist/hooks/useCardElement.d.ts +0 -135
  204. package/dist/hooks/useCardElement.d.ts.map +0 -1
  205. package/dist/hooks/useCheckoutFlow.d.ts +0 -29
  206. package/dist/hooks/useCheckoutFlow.d.ts.map +0 -1
  207. package/dist/hooks/useDrawerState.d.ts +0 -4
  208. package/dist/hooks/useDrawerState.d.ts.map +0 -1
  209. package/dist/hooks/useLinkAuth.d.ts +0 -24
  210. package/dist/hooks/useLinkAuth.d.ts.map +0 -1
  211. package/dist/hooks/useLinkDeviceAuthPoll.d.ts +0 -29
  212. package/dist/hooks/useLinkDeviceAuthPoll.d.ts.map +0 -1
  213. package/dist/hooks/useLinkMethods.d.ts +0 -28
  214. package/dist/hooks/useLinkMethods.d.ts.map +0 -1
  215. package/dist/hooks/useLinkSession.d.ts.map +0 -1
  216. package/dist/hooks/useLinkSpendStatusPoll.d.ts.map +0 -1
  217. package/dist/hooks/usePasskeySDK.d.ts +0 -103
  218. package/dist/hooks/usePasskeySDK.d.ts.map +0 -1
  219. package/dist/hooks/useSession.d.ts.map +0 -1
  220. package/dist/hooks/useVisualViewport.d.ts +0 -15
  221. package/dist/hooks/useVisualViewport.d.ts.map +0 -1
  222. package/dist/index.d.ts.map +0 -1
  223. package/dist/lib/theme.d.ts +0 -53
  224. package/dist/lib/theme.d.ts.map +0 -1
  225. package/dist/lib/utils.d.ts.map +0 -1
  226. package/dist/mocks/index.d.ts +0 -3
  227. package/dist/mocks/index.d.ts.map +0 -1
  228. package/dist/mocks/mockCheckoutFlow.d.ts +0 -25
  229. package/dist/mocks/mockCheckoutFlow.d.ts.map +0 -1
  230. package/dist/mocks/mockData.d.ts +0 -6
  231. package/dist/mocks/mockData.d.ts.map +0 -1
  232. package/dist/mocks/mockSessionData.d.ts +0 -38
  233. package/dist/mocks/mockSessionData.d.ts.map +0 -1
  234. package/dist/services/apiService.d.ts.map +0 -1
  235. package/dist/services/linkTokenService.d.ts.map +0 -1
  236. package/dist/services/mockSessionService.d.ts +0 -65
  237. package/dist/services/mockSessionService.d.ts.map +0 -1
  238. package/dist/types/cardElement.d.ts.map +0 -1
  239. package/dist/types/components/identity/IdentityBar.d.ts +0 -8
  240. package/dist/types/components/identity/IdentityBar.d.ts.map +0 -1
  241. package/dist/types/components/order/OrderSummaryAccordion.d.ts +0 -9
  242. package/dist/types/components/order/OrderSummaryAccordion.d.ts.map +0 -1
  243. package/dist/types/components/order/ShipmentCard.d.ts +0 -8
  244. package/dist/types/components/order/ShipmentCard.d.ts.map +0 -1
  245. package/dist/types/components/payos/ActiveCardWidget.d.ts +0 -60
  246. package/dist/types/components/payos/ActiveCardWidget.d.ts.map +0 -1
  247. package/dist/types/components/payos/AgentRegistrationFlow.d.ts +0 -24
  248. package/dist/types/components/payos/AgentRegistrationFlow.d.ts.map +0 -1
  249. package/dist/types/components/payos/ConnectStripeLinkButton.d.ts +0 -41
  250. package/dist/types/components/payos/ConnectStripeLinkButton.d.ts.map +0 -1
  251. package/dist/types/components/payos/IdentityVerificationFlow.d.ts.map +0 -1
  252. package/dist/types/components/payos/LinkPaymentFlow.d.ts +0 -11
  253. package/dist/types/components/payos/LinkPaymentFlow.d.ts.map +0 -1
  254. package/dist/types/components/payos/LinkSessionContent.d.ts +0 -19
  255. package/dist/types/components/payos/LinkSessionContent.d.ts.map +0 -1
  256. package/dist/types/components/payos/PayOSFooter.d.ts.map +0 -1
  257. package/dist/types/components/payos/PayWithLinkButton.d.ts.map +0 -1
  258. package/dist/types/components/payos/PaymentMethodRow.d.ts +0 -53
  259. package/dist/types/components/payos/PaymentMethodRow.d.ts.map +0 -1
  260. package/dist/types/components/payos/PaymentSheet.d.ts +0 -121
  261. package/dist/types/components/payos/PaymentSheet.d.ts.map +0 -1
  262. package/dist/types/components/payos/PaymentSheetContent.d.ts.map +0 -1
  263. package/dist/types/components/payos/PaymentSheetPaymentFlow.d.ts.map +0 -1
  264. package/dist/types/components/payos/PaymentSheetShell.d.ts +0 -25
  265. package/dist/types/components/payos/PaymentSheetShell.d.ts.map +0 -1
  266. package/dist/types/components/payos/PaymentSheetStatusViews.d.ts.map +0 -1
  267. package/dist/types/components/payos/PriceTag.d.ts.map +0 -1
  268. package/dist/types/components/payos/ReceiptPanel.d.ts.map +0 -1
  269. package/dist/types/components/payos/ViewHeader.d.ts.map +0 -1
  270. package/dist/types/components/payos/drawer.d.ts.map +0 -1
  271. package/dist/types/components/payos/order-summary.d.ts +0 -44
  272. package/dist/types/components/payos/order-summary.d.ts.map +0 -1
  273. package/dist/types/components/payos/otp-input.d.ts +0 -45
  274. package/dist/types/components/payos/otp-input.d.ts.map +0 -1
  275. package/dist/types/components/payos/phone-input.d.ts.map +0 -1
  276. package/dist/types/components/payos/themeMode.d.ts +0 -6
  277. package/dist/types/components/payos/themeMode.d.ts.map +0 -1
  278. package/dist/types/components/payos/usePaymentSheetDebug.d.ts +0 -22
  279. package/dist/types/components/payos/usePaymentSheetDebug.d.ts.map +0 -1
  280. package/dist/types/components/payos/usePaymentSheetDisplayData.d.ts.map +0 -1
  281. package/dist/types/components/payos/usePaymentSheetLifecycle.d.ts.map +0 -1
  282. package/dist/types/components/payos/usePaymentSheetSkipToAuth.d.ts +0 -18
  283. package/dist/types/components/payos/usePaymentSheetSkipToAuth.d.ts.map +0 -1
  284. package/dist/types/components/payos/usePaymentSheetSkipToLink.d.ts +0 -14
  285. package/dist/types/components/payos/usePaymentSheetSkipToLink.d.ts.map +0 -1
  286. package/dist/types/components/payos/views/AgentRegistrationView.d.ts +0 -61
  287. package/dist/types/components/payos/views/AgentRegistrationView.d.ts.map +0 -1
  288. package/dist/types/components/payos/views/CardAddView.d.ts.map +0 -1
  289. package/dist/types/components/payos/views/CheckoutView.d.ts.map +0 -1
  290. package/dist/types/components/payos/views/IdentityView.d.ts.map +0 -1
  291. package/dist/types/components/payos/views/LinkBrand.d.ts +0 -13
  292. package/dist/types/components/payos/views/LinkBrand.d.ts.map +0 -1
  293. package/dist/types/components/payos/views/LinkCheckoutView.d.ts +0 -31
  294. package/dist/types/components/payos/views/LinkCheckoutView.d.ts.map +0 -1
  295. package/dist/types/components/payos/views/LinkConnectView.d.ts.map +0 -1
  296. package/dist/types/components/payos/views/LinkDeniedView.d.ts.map +0 -1
  297. package/dist/types/components/payos/views/LinkLoadingView.d.ts +0 -11
  298. package/dist/types/components/payos/views/LinkLoadingView.d.ts.map +0 -1
  299. package/dist/types/components/payos/views/LinkSuccessView.d.ts.map +0 -1
  300. package/dist/types/components/payos/views/ManageThirdPartyView.d.ts +0 -19
  301. package/dist/types/components/payos/views/ManageThirdPartyView.d.ts.map +0 -1
  302. package/dist/types/components/payos/views/MethodListView.d.ts +0 -116
  303. package/dist/types/components/payos/views/MethodListView.d.ts.map +0 -1
  304. package/dist/types/components/payos/views/OTPView.d.ts.map +0 -1
  305. package/dist/types/components/payos/views/SuccessView.d.ts.map +0 -1
  306. package/dist/types/components/payos/views/VisaIframeView.d.ts +0 -16
  307. package/dist/types/components/payos/views/VisaIframeView.d.ts.map +0 -1
  308. package/dist/types/components/payos/views/VisaMethodView.d.ts.map +0 -1
  309. package/dist/types/components/payos/views/VisaOtpView.d.ts +0 -45
  310. package/dist/types/components/payos/views/VisaOtpView.d.ts.map +0 -1
  311. package/dist/types/components/payos/views/WelcomeBackView.d.ts +0 -34
  312. package/dist/types/components/payos/views/WelcomeBackView.d.ts.map +0 -1
  313. package/dist/types/components/ui/CardBrandIcon.d.ts.map +0 -1
  314. package/dist/types/components/ui/ConfirmDialog.d.ts.map +0 -1
  315. package/dist/types/components/ui/DigitalCard.d.ts.map +0 -1
  316. package/dist/types/components/ui/InfoTooltip.d.ts +0 -8
  317. package/dist/types/components/ui/InfoTooltip.d.ts.map +0 -1
  318. package/dist/types/components/ui/PinInput.d.ts +0 -12
  319. package/dist/types/components/ui/PinInput.d.ts.map +0 -1
  320. package/dist/types/components/ui/button.d.ts.map +0 -1
  321. package/dist/types/components/ui/card.d.ts.map +0 -1
  322. package/dist/types/components/ui/input.d.ts.map +0 -1
  323. package/dist/types/components/ui/label.d.ts.map +0 -1
  324. package/dist/types/components/ui/separator.d.ts.map +0 -1
  325. package/dist/types/drawer.d.ts.map +0 -1
  326. package/dist/types/hooks/index.d.ts +0 -8
  327. package/dist/types/hooks/index.d.ts.map +0 -1
  328. package/dist/types/hooks/useBiometricType.d.ts +0 -21
  329. package/dist/types/hooks/useBiometricType.d.ts.map +0 -1
  330. package/dist/types/hooks/useBodyScrollLock.d.ts.map +0 -1
  331. package/dist/types/hooks/useCardElement.d.ts.map +0 -1
  332. package/dist/types/hooks/useCheckoutFlow.d.ts +0 -29
  333. package/dist/types/hooks/useCheckoutFlow.d.ts.map +0 -1
  334. package/dist/types/hooks/useDrawerState.d.ts +0 -4
  335. package/dist/types/hooks/useDrawerState.d.ts.map +0 -1
  336. package/dist/types/hooks/useLinkAuth.d.ts.map +0 -1
  337. package/dist/types/hooks/useLinkDeviceAuthPoll.d.ts.map +0 -1
  338. package/dist/types/hooks/useLinkMethods.d.ts.map +0 -1
  339. package/dist/types/hooks/useLinkSession.d.ts +0 -81
  340. package/dist/types/hooks/useLinkSession.d.ts.map +0 -1
  341. package/dist/types/hooks/useLinkSpendStatusPoll.d.ts +0 -28
  342. package/dist/types/hooks/useLinkSpendStatusPoll.d.ts.map +0 -1
  343. package/dist/types/hooks/usePasskeySDK.d.ts.map +0 -1
  344. package/dist/types/hooks/useSession.d.ts +0 -87
  345. package/dist/types/hooks/useSession.d.ts.map +0 -1
  346. package/dist/types/hooks/useVisualViewport.d.ts.map +0 -1
  347. package/dist/types/index.d.ts.map +0 -1
  348. package/dist/types/lib/theme.d.ts +0 -53
  349. package/dist/types/lib/theme.d.ts.map +0 -1
  350. package/dist/types/lib/utils.d.ts +0 -3
  351. package/dist/types/lib/utils.d.ts.map +0 -1
  352. package/dist/types/mocks/index.d.ts +0 -3
  353. package/dist/types/mocks/index.d.ts.map +0 -1
  354. package/dist/types/mocks/mockCheckoutFlow.d.ts +0 -25
  355. package/dist/types/mocks/mockCheckoutFlow.d.ts.map +0 -1
  356. package/dist/types/mocks/mockData.d.ts +0 -6
  357. package/dist/types/mocks/mockData.d.ts.map +0 -1
  358. package/dist/types/mocks/mockSessionData.d.ts +0 -38
  359. package/dist/types/mocks/mockSessionData.d.ts.map +0 -1
  360. package/dist/types/order.d.ts.map +0 -1
  361. package/dist/types/payment.d.ts +0 -55
  362. package/dist/types/payment.d.ts.map +0 -1
  363. package/dist/types/services/apiService.d.ts +0 -406
  364. package/dist/types/services/apiService.d.ts.map +0 -1
  365. package/dist/types/services/linkTokenService.d.ts +0 -7
  366. package/dist/types/services/linkTokenService.d.ts.map +0 -1
  367. package/dist/types/services/mockSessionService.d.ts +0 -65
  368. package/dist/types/services/mockSessionService.d.ts.map +0 -1
  369. package/dist/types/session.d.ts.map +0 -1
  370. package/dist/types/types/cardElement.d.ts +0 -157
  371. package/dist/types/types/cardElement.d.ts.map +0 -1
  372. package/dist/types/types/drawer.d.ts +0 -33
  373. package/dist/types/types/drawer.d.ts.map +0 -1
  374. package/dist/types/types/index.d.ts.map +0 -1
  375. package/dist/types/types/order.d.ts +0 -25
  376. package/dist/types/types/order.d.ts.map +0 -1
  377. package/dist/types/types/payment.d.ts.map +0 -1
  378. package/dist/types/types/session.d.ts +0 -165
  379. package/dist/types/types/session.d.ts.map +0 -1
  380. package/dist/types/utils/credentialStatus.d.ts.map +0 -1
  381. package/dist/types/utils/deviceFingerprint.d.ts +0 -27
  382. package/dist/types/utils/deviceFingerprint.d.ts.map +0 -1
  383. package/dist/types/utils/environment.d.ts.map +0 -1
  384. package/dist/types/utils/formatting.d.ts +0 -41
  385. package/dist/types/utils/formatting.d.ts.map +0 -1
  386. package/dist/types/utils/index.d.ts +0 -4
  387. package/dist/types/utils/index.d.ts.map +0 -1
  388. package/dist/types/utils/linkFormat.d.ts +0 -17
  389. package/dist/types/utils/linkFormat.d.ts.map +0 -1
  390. package/dist/types/utils/linkPopup.d.ts.map +0 -1
  391. package/dist/types/utils/selectCard.d.ts.map +0 -1
  392. package/dist/types/utils/text.d.ts.map +0 -1
  393. package/dist/types/utils/validation.d.ts +0 -90
  394. package/dist/types/utils/validation.d.ts.map +0 -1
  395. package/dist/utils/credentialStatus.d.ts +0 -8
  396. package/dist/utils/credentialStatus.d.ts.map +0 -1
  397. package/dist/utils/deviceFingerprint.d.ts.map +0 -1
  398. package/dist/utils/environment.d.ts +0 -22
  399. package/dist/utils/environment.d.ts.map +0 -1
  400. package/dist/utils/formatting.d.ts.map +0 -1
  401. package/dist/utils/index.d.ts +0 -4
  402. package/dist/utils/index.d.ts.map +0 -1
  403. package/dist/utils/linkFormat.d.ts +0 -17
  404. package/dist/utils/linkFormat.d.ts.map +0 -1
  405. package/dist/utils/linkPopup.d.ts +0 -19
  406. package/dist/utils/linkPopup.d.ts.map +0 -1
  407. package/dist/utils/selectCard.d.ts +0 -18
  408. package/dist/utils/selectCard.d.ts.map +0 -1
  409. package/dist/utils/text.d.ts +0 -12
  410. package/dist/utils/text.d.ts.map +0 -1
  411. package/dist/utils/validation.d.ts.map +0 -1
@@ -1,157 +0,0 @@
1
- /**
2
- * CardElement Types
3
- *
4
- * Types for the PayOS CardElement iframe integration.
5
- * These mirror the types from @payos-inc/payos-js for local use.
6
- */
7
- /**
8
- * Card element styling configuration
9
- */
10
- export interface CardElementStyles {
11
- layout?: {
12
- padding?: string;
13
- maxWidth?: string;
14
- backgroundColor?: string;
15
- gap?: string;
16
- direction?: 'row' | 'column';
17
- labelPlacement?: 'above' | 'inline' | 'floating';
18
- showLabels?: boolean;
19
- showErrorMessages?: boolean;
20
- showLoadingState?: boolean;
21
- preset?: 'single-row' | 'two-row' | 'compact' | 'stacked' | 'block';
22
- };
23
- container?: {
24
- borderRadius?: string;
25
- boxShadow?: string;
26
- border?: string;
27
- padding?: string;
28
- margin?: string;
29
- };
30
- base?: Record<string, unknown>;
31
- cardNumber?: Record<string, unknown>;
32
- expiry?: Record<string, unknown>;
33
- cvc?: Record<string, unknown>;
34
- theme?: 'default' | 'minimal' | 'dark' | 'material';
35
- }
36
- export interface CardElementBinWarningRule {
37
- /** BIN/IIN value to match against secure field BIN metadata. */
38
- bin: string;
39
- /** Optional message returned with the warning. A default message is used when omitted. */
40
- message?: string;
41
- }
42
- export interface CardElementBinWarningEvent {
43
- event: 'binWarning';
44
- /** The configured BIN/IIN value that matched. */
45
- bin: string;
46
- /** Message to show to the user or route through a custom UI. */
47
- message: string;
48
- }
49
- export interface CardElementOptions {
50
- token: string;
51
- environment?: 'sandbox' | 'production';
52
- styles?: CardElementStyles;
53
- height?: string;
54
- customBaseUrl?: string;
55
- customParams?: Record<string, string>;
56
- binsWarning?: CardElementBinWarningRule[];
57
- onReady?: () => void;
58
- onTokenized?: (event: CardElementTokenizedEvent) => void;
59
- onChange?: (event: CardElementChangeEvent) => void;
60
- onBinWarning?: (event: CardElementBinWarningEvent | null) => void;
61
- onCancel?: () => void;
62
- onError?: (error: Error) => void;
63
- }
64
- export interface CardElementTokenizedEvent {
65
- event: 'cardTokenized';
66
- card?: {
67
- id?: string;
68
- brand?: string;
69
- last4?: string;
70
- expMonth?: number;
71
- expYear?: number;
72
- cardholderName?: string;
73
- isDefault?: boolean;
74
- artwork?: string;
75
- bankName?: string;
76
- cardType?: string;
77
- [key: string]: unknown;
78
- };
79
- billingAddress?: {
80
- street?: string;
81
- street2?: string;
82
- city?: string;
83
- state?: string;
84
- postalCode?: string;
85
- country?: string;
86
- [key: string]: unknown;
87
- };
88
- cardholderName?: string;
89
- visaEnrollment?: Record<string, unknown> | null;
90
- mastercardEnrollment?: Record<string, unknown> | null;
91
- walletUserId?: string;
92
- organizationId?: string;
93
- [key: string]: unknown;
94
- }
95
- export interface CardElementChangeEvent {
96
- event: 'change';
97
- complete: boolean;
98
- empty: boolean;
99
- error?: string;
100
- binWarning?: CardElementBinWarningEvent | null;
101
- }
102
- export interface CardElementAddress {
103
- line1?: string;
104
- line2?: string;
105
- city?: string;
106
- state?: string;
107
- postalCode?: string;
108
- country?: string;
109
- }
110
- export interface CardElementConfiguration {
111
- walletUserId?: string;
112
- cardholderName?: string;
113
- billingAddress?: CardElementAddress;
114
- binsWarning?: CardElementBinWarningRule[];
115
- /** Shipping address - CardElement can use for "Same as shipping" feature */
116
- shippingAddress?: CardElementAddress;
117
- /** Whether to use shipping as billing (for "Same as shipping" toggle) */
118
- useShippingAsBilling?: boolean;
119
- }
120
- export interface CardElementInstance {
121
- mount: () => void;
122
- unmount: () => void;
123
- destroy: () => void;
124
- configure: (config: CardElementConfiguration) => void;
125
- submit: () => void;
126
- updateStyles?: (styles: CardElementStyles) => void;
127
- }
128
- /**
129
- * CardElementClient - Creates and manages a secure card capture iframe
130
- *
131
- * This is a local implementation that mirrors the @payos-inc/payos-js CardElementClient
132
- * to avoid build dependency issues in the monorepo.
133
- */
134
- export declare class CardElementClient {
135
- private container;
136
- private iframe;
137
- private options;
138
- private messageListener;
139
- private iframeOrigin;
140
- private pendingStyles;
141
- private pendingConfiguration;
142
- constructor(container: string | HTMLElement, options: CardElementOptions);
143
- mount(): void;
144
- unmount(): void;
145
- destroy(): void;
146
- configure(config: CardElementConfiguration): void;
147
- submit(): void;
148
- updateStyles(styles: CardElementStyles): void;
149
- private sendStyles;
150
- private handleMessage;
151
- private isAllowedOrigin;
152
- private buildIframeUrl;
153
- private getBaseUrl;
154
- private getAllowedOrigins;
155
- private validateOptions;
156
- }
157
- //# sourceMappingURL=cardElement.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cardElement.d.ts","sourceRoot":"","sources":["../../../src/types/cardElement.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,MAAM,CAAC,EAAE;QACP,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;QAC7B,cAAc,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,UAAU,CAAC;QACjD,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,iBAAiB,CAAC,EAAE,OAAO,CAAC;QAC5B,gBAAgB,CAAC,EAAE,OAAO,CAAC;QAC3B,MAAM,CAAC,EAAE,YAAY,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;KACrE,CAAC;IACF,SAAS,CAAC,EAAE;QACV,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,C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,MAAM,IAAI,IAAI;IAgBd,YAAY,CAAC,MAAM,EAAE,iBAAiB,GAAG,IAAI;IASpD,OAAO,CAAC,UAAU;IAgBlB,OAAO,CAAC,aAAa;IAuErB,OAAO,CAAC,eAAe;IAKvB,OAAO,CAAC,cAAc;IAmBtB,OAAO,CAAC,UAAU;IAQlB,OAAO,CAAC,iBAAiB;IAsBzB,OAAO,CAAC,eAAe;CASxB"}
@@ -1,33 +0,0 @@
1
- import type { OrderItem } from './order';
2
- import type { SavedCard } from './payment';
3
- export type PaymentMode = 'standard' | 'agent';
4
- export interface PayOSDrawerProps {
5
- open: boolean;
6
- onClose: () => void;
7
- mode?: PaymentMode;
8
- amount: number;
9
- orderItems?: OrderItem[];
10
- shipping?: number;
11
- tax?: number;
12
- agentFee?: number;
13
- savedCards?: SavedCard[];
14
- onSuccess?: (result: PaymentResult) => void;
15
- onError?: (error: PaymentError) => void;
16
- onDeleteCard?: (cardId: string) => void;
17
- merchantName?: string;
18
- accentColor?: string;
19
- locale?: string;
20
- }
21
- export interface PaymentResult {
22
- success: boolean;
23
- transactionId: string;
24
- amount: number;
25
- cardLast4?: string;
26
- timestamp: number;
27
- }
28
- export interface PaymentError {
29
- code: string;
30
- message: string;
31
- details?: Record<string, unknown>;
32
- }
33
- //# sourceMappingURL=drawer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../src/types/drawer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,OAAO,CAAC;AAE/C,MAAM,WAAW,gBAAgB;IAE/B,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IAGpB,IAAI,CAAC,EAAE,WAAW,CAAC;IAGnB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;IAGzB,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,CAAC;IAC5C,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;IACxC,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAGxC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC"}
@@ -1,25 +0,0 @@
1
- export interface OrderItem {
2
- id?: string;
3
- name: string;
4
- price: number;
5
- quantity: number;
6
- image?: string;
7
- description?: string;
8
- estimatedDelivery?: string;
9
- }
10
- export interface Shipment {
11
- id: string;
12
- seller: string;
13
- items: OrderItem[];
14
- estimatedDelivery?: string;
15
- }
16
- export interface OrderData {
17
- shipments?: Shipment[];
18
- items?: OrderItem[];
19
- subtotal: number;
20
- shipping: number;
21
- tax: number;
22
- agentFee?: number;
23
- total: number;
24
- }
25
- //# sourceMappingURL=order.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"order.d.ts","sourceRoot":"","sources":["../../../src/types/order.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACxB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,SAAS;IACxB,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACf"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"payment.d.ts","sourceRoot":"","sources":["../../../src/types/payment.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GACrB,aAAa,GACb,YAAY,GACZ,SAAS,GACT,sBAAsB,GACtB,oBAAoB,GACpB,YAAY,GACZ,SAAS,CAAC;AAEd;;;;;;;GAOG;AACH,MAAM,MAAM,WAAW,GACnB,UAAU,GACV,SAAS,GACT,KAAK,GACL,cAAc,GACd,cAAc,GACd,eAAe,GACf,a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,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,YAAY,GAAG,aAAa,CAAC;IACxC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
@@ -1,165 +0,0 @@
1
- export type PaymentCredentialType = 'network_token_short' | 'network_token_long' | 'virtual_card' | 'bank_account' | 'pci_vault_token';
2
- export type PaymentCredentialStatus = 'not_created' | 'pending' | 'active' | 'retrieved' | 'revoked' | 'expired' | 'failed_generation' | 'superseded';
3
- export type PaymentIntentStatus = 'created' | 'pending_credential' | 'awaiting_approval' | 'approved' | 'cards_assigned' | 'auth_required' | 'credentials_generating' | 'credentials_ready' | 'awaiting_payment' | 'rejected' | 'failed' | 'abandoned' | 'completed';
4
- export type PaymentIntentType = 'pay_on_behalf' | 'agent_to_agent' | 'agentic_multi' | 'online_checkout';
5
- export type IntentType = 'standard' | 'parent' | 'child';
6
- export interface Payment {
7
- id: string;
8
- merchantName: string;
9
- merchantUrl?: string;
10
- merchantCategory?: string;
11
- merchantCategoryCode?: string;
12
- amount: number;
13
- subtotal: number;
14
- tax?: number;
15
- shipping?: number;
16
- description?: string;
17
- quantity: number;
18
- expiresAt?: string;
19
- selectedCardId?: string;
20
- credentialId?: string;
21
- credentialStatus: PaymentCredentialStatus;
22
- mandateId?: string;
23
- assignedChildIntentId?: string;
24
- status: 'pending' | 'processing' | 'completed' | 'failed';
25
- createdAt: string;
26
- updatedAt: string;
27
- }
28
- export interface FacilitationFee {
29
- amount: number;
30
- currency: string;
31
- }
32
- export interface MultiPaymentIntent {
33
- id: string;
34
- type: PaymentIntentType;
35
- currency: string;
36
- walletUserId?: string;
37
- organizationId: string;
38
- status: PaymentIntentStatus;
39
- payments: Payment[];
40
- totalAmount: number;
41
- totalSubtotal: number;
42
- totalTax?: number;
43
- totalShipping?: number;
44
- consumerPrompt?: string;
45
- facilitationFee?: FacilitationFee;
46
- intentType: IntentType;
47
- parentIntentId?: string;
48
- selectedCardId?: string;
49
- networkProvider?: 'visa_vic' | 'mastercard_mvct';
50
- networkInstructionId?: string;
51
- requireHitl: boolean;
52
- hitlAttemptCount: number;
53
- hitlApproved: boolean;
54
- networkAuthRequired: boolean;
55
- networkAuthCompleted: boolean;
56
- authData?: Record<string, unknown>;
57
- authValid: boolean;
58
- authSubmittedAt?: string;
59
- authInvalidatedAt?: string;
60
- authInvalidReason?: string;
61
- credentialType: PaymentCredentialType;
62
- riskAssessment?: Record<string, unknown>;
63
- shippingAddress?: {
64
- line1?: string;
65
- line2?: string;
66
- city?: string;
67
- state?: string;
68
- postalCode?: string;
69
- country?: string;
70
- };
71
- createdAt: string;
72
- updatedAt: string;
73
- }
74
- export type SessionType = 'checkout' | 'agentic_checkout' | 'wallet_onboard' | 'wallet_onboard_agentic' | 'wallet_manage';
75
- export type SessionStatus = 'initialized' | 'otp_pending' | 'verified' | 'payment_pending' | 'completed' | 'expired' | 'abandoned';
76
- export interface WalletUser {
77
- id: string;
78
- email?: string;
79
- phone?: string;
80
- firstName?: string;
81
- lastName?: string;
82
- defaultCardId?: string;
83
- }
84
- export interface SavedCard {
85
- id: string;
86
- brand: CardBrand;
87
- last4: string;
88
- expiryMonth: string;
89
- expiryYear: string;
90
- cardholderName?: string;
91
- isDefault: boolean;
92
- network: CardNetwork;
93
- provider?: 'payos_card' | 'stripe_link';
94
- passkeyEnrolled?: boolean;
95
- cardArtUrl?: string;
96
- issuerName?: string;
97
- cardProductName?: string;
98
- passkeyExpected?: boolean;
99
- }
100
- export type CardBrand = 'visa' | 'mastercard' | 'amex' | 'discover' | 'unknown';
101
- export type CardNetwork = 'visa' | 'mastercard' | 'amex' | 'discover';
102
- export interface CheckoutSession {
103
- id: string;
104
- status: SessionStatus;
105
- sessionType?: SessionType;
106
- paymentIntent?: MultiPaymentIntent;
107
- walletUser?: WalletUser;
108
- organizationId: string;
109
- deviceVerified: boolean;
110
- verificationMethod?: 'email' | 'phone';
111
- verificationReference?: string;
112
- verificationPhone?: string;
113
- selectedCard?: SavedCard;
114
- savedCards: SavedCard[];
115
- linkToken: string;
116
- validCardBrandAcceptance?: string[];
117
- expiresAt: string;
118
- createdAt: string;
119
- updatedAt: string;
120
- }
121
- export interface SessionError {
122
- code: SessionErrorCode;
123
- message: string;
124
- details?: Record<string, unknown>;
125
- }
126
- export type SessionErrorCode = 'SESSION_NOT_FOUND' | 'SESSION_EXPIRED' | 'VERIFICATION_FAILED' | 'INVALID_OTP' | 'OTP_EXPIRED' | 'RATE_LIMITED' | 'CARD_DECLINED' | 'CARD_NOT_FOUND' | 'NO_CARD_SELECTED' | 'CARD_SELECT_FAILED' | 'ISSUER_LIMIT_EXCEEDED' | 'CARD_ADD_FAILED' | 'CARD_DELETE_FAILED' | 'PAYMENT_FAILED' | 'PAYMENT_INTENT_ALREADY_PROCESSED' | 'PASSKEY_FAILED' | 'PASSKEY_REQUIRED' | 'AUTH_INVALID' | 'AUTH_EXPIRED' | 'CREDENTIAL_GENERATION_FAILED' | 'NETWORK_ERROR';
127
- export interface VerificationInitResult {
128
- success: boolean;
129
- verificationId: string;
130
- error?: SessionError;
131
- }
132
- export interface VerificationResult {
133
- success: boolean;
134
- walletUserId?: string;
135
- savedCards?: SavedCard[];
136
- error?: SessionError;
137
- }
138
- export interface CompletionResult {
139
- success: boolean;
140
- transactionId?: string;
141
- credentialId?: string;
142
- error?: SessionError;
143
- walletUserId?: string;
144
- paymentIntentId?: string;
145
- credentialGenerated?: boolean;
146
- }
147
- export interface PaymentSheetResult {
148
- success: boolean;
149
- sessionId: string;
150
- transactionId?: string;
151
- credentialId?: string;
152
- paymentIntent?: MultiPaymentIntent;
153
- walletUserId?: string;
154
- paymentIntentId?: string;
155
- credentialGenerated?: boolean;
156
- card?: SavedCard;
157
- savedCards?: SavedCard[];
158
- defaultCardId?: string;
159
- }
160
- export interface PaymentSheetError {
161
- code: SessionErrorCode | 'LOAD_FAILED' | 'UPDATE_FAILED' | 'UNKNOWN';
162
- message: string;
163
- sessionId?: string;
164
- }
165
- //# sourceMappingURL=session.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../src/types/session.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,qBAAqB,GAC7B,qBAAqB,GACrB,oBAAoB,GACpB,cAAc,GACd,cAAc,GACd,iBAAiB,CAAC;AAGtB,MAAM,MAAM,uBAAuB,GAC/B,aAAa,GACb,SAAS,GACT,QAAQ,GACR,WAAW,GACX,SAAS,GACT,SAAS,GACT,mBAAmB,GACnB,YAAY,CAAC;AAGjB,MAAM,MAAM,mBAAmB,GAC3B,SAAS,GACT,oBAAoB,GACpB,mBAAmB,GACnB,UAAU,GACV,gBAAgB,GAChB,eAAe,GACf,wBAAwB,GACxB,mBAAmB,GACnB,kBAAkB,GAClB,UAAU,GACV,QAAQ,GACR,WAAW,GACX,WAAW,CAAC;AAGhB,MAAM,MAAM,iBAAiB,GACzB,eAAe,GACf,gBAAgB,GAChB,eAAe,GACf,iBAAiB,CAAC;AAGtB,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,QAAQ,GAAG,OAAO,CAAC;AAKzD,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IAGX,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAG9B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,cAAc,CAAC,EAAE,MAAM,CAAC;IAGxB,YAAY,C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CAAC;IAE9B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,gBAAgB,GAAG,aAAa,GAAG,eAAe,GAAG,SAAS,CAAC;IACrE,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"credentialStatus.d.ts","sourceRoot":"","sources":["../../../src/utils/credentialStatus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3D;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,aAAa,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAI5E"}
@@ -1,27 +0,0 @@
1
- /**
2
- * Device Fingerprint Utility
3
- *
4
- * Generates a stable device fingerprint for 90-day device verification.
5
- * The fingerprint is stored in localStorage for persistence.
6
- *
7
- * Note: This is not a security-grade fingerprint (like FingerprintJS Pro).
8
- * It's meant for convenience (skip OTP on known devices), not fraud prevention.
9
- */
10
- /**
11
- * Get or create a persistent device ID
12
- * Combines browser fingerprint with a random component for uniqueness
13
- */
14
- export declare function getDeviceId(): string;
15
- /**
16
- * Get the device creation timestamp
17
- */
18
- export declare function getDeviceCreatedAt(): string | null;
19
- /**
20
- * Clear device ID (for logout/reset scenarios)
21
- */
22
- export declare function clearDeviceId(): void;
23
- /**
24
- * Check if device ID exists
25
- */
26
- export declare function hasDeviceId(): boolean;
27
- //# sourceMappingURL=deviceFingerprint.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deviceFingerprint.d.ts","sourceRoot":"","sources":["../../../src/utils/deviceFingerprint.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AA8DH;;;GAGG;AACH,wBAAgB,WAAW,IAAI,MAAM,CAsBpC;AAED;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,GAAG,IAAI,CAMlD;AAED;;GAEG;AACH,wBAAgB,aAAa,IAAI,IAAI,CAOpC;AAED;;GAEG;AACH,wBAAgB,WAAW,IAAI,OAAO,CAMrC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"environment.d.ts","sourceRoot":"","sources":["../../../src/utils/environment.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,aAAa,CAC3B,WAAW,EAAE,SAAS,GAAG,YAAY,EACrC,iBAAiB,CAAC,EAAE,MAAM,GACzB,MAAM,CAUR"}
@@ -1,41 +0,0 @@
1
- /**
2
- * Format amount in cents to currency string
3
- * @param cents - Amount in cents
4
- * @param currency - Currency code (default: USD)
5
- * @returns Formatted currency string (e.g., "$165.00")
6
- */
7
- export declare function formatCurrency(cents: number, currency?: string): string;
8
- /**
9
- * Format phone number for display
10
- * Detects country from E.164 prefix and formats accordingly.
11
- * Uses placeholder patterns from country data for proper local formatting.
12
- * @param phone - Raw phone number (E.164 or local)
13
- * @returns Formatted phone number
14
- */
15
- export declare function formatPhoneNumber(phone: string): string;
16
- /**
17
- * Format phone number progressively as user types (for input display)
18
- * @param digits - Raw digits only (no formatting)
19
- * @param countryCode - Optional ISO country code
20
- * @returns Progressively formatted phone number
21
- */
22
- export declare function formatPhoneInput(digits: string, countryCode?: string): string;
23
- /**
24
- * Format card number with spaces (4-4-4-4)
25
- * @param cardNumber - Raw card number
26
- * @returns Formatted card number
27
- */
28
- export declare function formatCardNumber(cardNumber: string): string;
29
- /**
30
- * Mask card number for display
31
- * @param cardNumber - Full card number
32
- * @returns Masked number (e.g., "•••• •••• •••• 4242")
33
- */
34
- export declare function maskCardNumber(cardNumber: string): string;
35
- /**
36
- * Format expiry date as MM/YY
37
- * @param expiry - Raw expiry (MMYY or MM/YY)
38
- * @returns Formatted expiry (MM/YY)
39
- */
40
- export declare function formatExpiry(expiry: string): string;
41
- //# sourceMappingURL=formatting.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatting.d.ts","sourceRoot":"","sources":["../../../src/utils/formatting.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,SAAQ,GAAG,MAAM,CAMtE;AAwBD;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CA0BvD;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAiB7E;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAI3D;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAMzD;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAUnD"}
@@ -1,4 +0,0 @@
1
- export * from './formatting';
2
- export * from './validation';
3
- export * from './credentialStatus';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC"}
@@ -1,17 +0,0 @@
1
- /**
2
- * Display helpers for Stripe Link credentials and methods.
3
- */
4
- export type CardBrand = 'visa' | 'mastercard' | 'amex' | 'discover' | 'unknown';
5
- export declare function cardBrand(brand?: string): CardBrand;
6
- export declare function formatPan(pan?: string): string;
7
- /**
8
- * Format Stripe Link's `valid_until` field. Public SDK ships an ISO 8601
9
- * string; older builds shipped unix-epoch seconds. Accept both.
10
- *
11
- * Returns "9:14:32 AM (00:42 left)" — local time + countdown to expiry.
12
- * Returns "—" if undefined/empty/unparseable.
13
- */
14
- export declare function formatValidUntil(ts?: number | string | null): string;
15
- export declare function formatExpiry(month?: number, year?: number): string;
16
- export declare function formatCountdownMmSs(targetEpochMs: number): string;
17
- //# sourceMappingURL=linkFormat.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"linkFormat.d.ts","sourceRoot":"","sources":["../../../src/utils/linkFormat.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,YAAY,GAAG,MAAM,GAAG,UAAU,GAAG,SAAS,CAAC;AAEhF,wBAAgB,SAAS,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAOnD;AAED,wBAAgB,SAAS,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAK9C;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,MAAM,CASpE;AAED,wBAAgB,YAAY,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAKlE;AAED,wBAAgB,mBAAmB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAKjE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"linkPopup.d.ts","sourceRoot":"","sources":["../../../src/utils/linkPopup.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,KAAK,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;AAmBxC,wBAAgB,aAAa,CAAC,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAqBzE;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI,CAsBpD;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAGxD;AAED,wBAAgB,kBAAkB,IAAI,IAAI,CAGzC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"selectCard.d.ts","sourceRoot":"","sources":["../../../src/utils/selectCard.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,WAAW,gBAAgB;IAC/B,0EAA0E;IAC1E,YAAY,EAAE,SAAS,GAAG,SAAS,CAAC;IACpC,0EAA0E;IAC1E,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC;AAED;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CACxB,UAAU,EAAE,SAAS,EAAE,EACvB,UAAU,CAAC,EAAE,MAAM,EACnB,qBAAqB,CAAC,EAAE,MAAM,GAC7B,gBAAgB,CA4BlB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../src/utils/text.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAU3D"}
@@ -1,90 +0,0 @@
1
- import type { CardBrand } from '../types';
2
- /**
3
- * Supported countries for phone input.
4
- * Auto-generated from Twilio Pricing API via scripts/generate-twilio-countries.mjs
5
- * US is pinned to the top of the list for convenience.
6
- */
7
- export interface Country {
8
- code: string;
9
- name: string;
10
- dial: string;
11
- flag: string;
12
- placeholder: string;
13
- trunkPrefix: string;
14
- nationalDigitLengths: {
15
- min: number;
16
- max: number;
17
- } | null;
18
- }
19
- /** Common countries pinned to top of the dropdown */
20
- export declare const POPULAR_CODES: string[];
21
- export declare const COUNTRIES: Country[];
22
- export type CountryCode = string;
23
- /**
24
- * Accepted input digit lengths per country.
25
- * Derived from libphonenumber-js canonical metadata (nationalDigitLengths + trunkPrefix).
26
- * nationalDigitLengths = valid subscriber number lengths (digits AFTER country code, no trunk prefix).
27
- * Users may type WITH trunk prefix (e.g., "07400123456" for UK), so max includes trunk prefix length.
28
- * E.164 construction strips the trunk prefix before prepending dial code.
29
- */
30
- export declare const PHONE_DIGIT_LENGTHS: Record<string, {
31
- min: number;
32
- max: number;
33
- }>;
34
- /** Default digit length range for countries not in PHONE_DIGIT_LENGTHS */
35
- export declare const DEFAULT_DIGIT_LENGTHS: {
36
- min: number;
37
- max: number;
38
- };
39
- /**
40
- * Validate phone number
41
- * Uses per-country digit length rules when a country code is provided.
42
- * @param phone - Phone number to validate
43
- * @param countryCode - Optional ISO country code for stricter validation
44
- * @returns True if valid
45
- */
46
- export declare function isPhoneValid(phone: string, countryCode?: string): boolean;
47
- export declare function normalizeNationalDigits(raw: string, country: Country): string;
48
- /**
49
- * Validate email address
50
- * @param email - Email to validate
51
- * @returns True if valid
52
- */
53
- export declare function isEmailValid(email: string): boolean;
54
- /**
55
- * Luhn algorithm for card number validation
56
- * @param cardNumber - Card number to validate
57
- * @returns True if valid by Luhn check
58
- */
59
- export declare function isCardNumberValid(cardNumber: string): boolean;
60
- /**
61
- * Detect card brand from card number
62
- * @param cardNumber - Card number
63
- * @returns Card brand
64
- */
65
- export declare function detectCardBrand(cardNumber: string): CardBrand;
66
- /**
67
- * Validate expiry date
68
- * @param expiry - Expiry in MM/YY format
69
- * @returns True if valid and not expired
70
- */
71
- export declare function isExpiryValid(expiry: string): boolean;
72
- /**
73
- * Validate CVC
74
- * @param cvc - CVC code
75
- * @param brand - Card brand (Amex requires 4 digits, others 3)
76
- * @returns True if valid
77
- */
78
- export declare function isCvcValid(cvc: string, brand?: CardBrand): boolean;
79
- /**
80
- * Validate billing address
81
- * @param address - Billing address object
82
- * @returns True if all required fields are filled
83
- */
84
- export declare function isBillingAddressValid(address: {
85
- line1: string;
86
- city: string;
87
- state: string;
88
- zip: string;
89
- }): boolean;
90
- //# sourceMappingURL=validation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../src/utils/validation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAG1C;;;;GAI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,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,SAAS,GAAG,OAAO,CAQlE;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;CACb,GAAG,OAAO,CAOV"}
@@ -1,8 +0,0 @@
1
- import type { MultiPaymentIntent } from '../types/session';
2
- /**
3
- * True when the intent has at least one payment whose credential has been
4
- * generated (active) or already retrieved by the partner. Mirrors the server's
5
- * active|retrieved live-credential grouping.
6
- */
7
- export declare function credentialExists(paymentIntent?: MultiPaymentIntent): boolean;
8
- //# sourceMappingURL=credentialStatus.d.ts.map