@payos-inc/payos-react 1.0.42-staging.83 → 1.2.0-staging.89

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 (408) 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 +4 -3
  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/{components → types/payos-react/src/components}/payos/PaymentSheetStatusViews.d.ts +0 -1
  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 +0 -1
  35. package/dist/types/{components → payos-react/src/components}/payos/drawer.d.ts +0 -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 +24 -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/{components → payos-react/src/components}/ui/CardBrandIcon.d.ts +0 -1
  64. package/dist/types/{components → payos-react/src/components}/ui/ConfirmDialog.d.ts +0 -1
  65. package/dist/types/{components → payos-react/src/components}/ui/DigitalCard.d.ts +0 -1
  66. package/dist/types/{components → payos-react/src/components}/ui/button.d.ts +1 -2
  67. package/dist/types/{components → payos-react/src/components}/ui/card.d.ts +1 -2
  68. package/dist/types/{components → payos-react/src/components}/ui/input.d.ts +0 -1
  69. package/dist/types/{components → payos-react/src/components}/ui/label.d.ts +1 -2
  70. package/dist/types/{components → payos-react/src/components}/ui/separator.d.ts +0 -1
  71. package/dist/{hooks → types/payos-react/src/hooks}/useBiometricType.d.ts +0 -1
  72. package/dist/types/{hooks → payos-react/src/hooks}/useBodyScrollLock.d.ts +0 -1
  73. package/dist/types/{hooks → payos-react/src/hooks}/useCardElement.d.ts +1 -2
  74. package/dist/types/{hooks → payos-react/src/hooks}/useLinkAuth.d.ts +0 -1
  75. package/dist/types/{hooks → payos-react/src/hooks}/useLinkDeviceAuthPoll.d.ts +0 -1
  76. package/dist/types/{hooks → payos-react/src/hooks}/useLinkMethods.d.ts +0 -1
  77. package/dist/{hooks → types/payos-react/src/hooks}/useLinkSession.d.ts +0 -1
  78. package/dist/{hooks → types/payos-react/src/hooks}/useLinkSpendStatusPoll.d.ts +0 -1
  79. package/dist/types/{hooks → payos-react/src/hooks}/usePasskeySDK.d.ts +2 -4
  80. package/dist/{hooks → types/payos-react/src/hooks}/useSession.d.ts +8 -1
  81. package/dist/types/{hooks → payos-react/src/hooks}/useVisualViewport.d.ts +0 -1
  82. package/dist/{index.d.ts → types/payos-react/src/index.d.ts} +3 -4
  83. package/dist/{lib → types/payos-react/src/lib}/utils.d.ts +0 -1
  84. package/dist/{services → types/payos-react/src/services}/apiService.d.ts +10 -2
  85. package/dist/{services → types/payos-react/src/services}/linkTokenService.d.ts +0 -1
  86. package/dist/types/{cardElement.d.ts → payos-react/src/types/cardElement.d.ts} +2 -3
  87. package/dist/types/{drawer.d.ts → payos-react/src/types/drawer.d.ts} +0 -1
  88. package/dist/types/{types → payos-react/src/types}/index.d.ts +0 -1
  89. package/dist/types/{order.d.ts → payos-react/src/types/order.d.ts} +0 -1
  90. package/dist/types/{types → payos-react/src/types}/payment.d.ts +1 -2
  91. package/dist/types/{session.d.ts → payos-react/src/types/session.d.ts} +15 -1
  92. package/dist/types/{utils → payos-react/src/utils}/credentialStatus.d.ts +0 -1
  93. package/dist/{utils → types/payos-react/src/utils}/deviceFingerprint.d.ts +0 -1
  94. package/dist/types/{utils → payos-react/src/utils}/environment.d.ts +0 -1
  95. package/dist/{utils → types/payos-react/src/utils}/formatting.d.ts +0 -1
  96. package/dist/types/{utils → payos-react/src/utils}/linkPopup.d.ts +0 -1
  97. package/dist/types/{utils → payos-react/src/utils}/selectCard.d.ts +0 -1
  98. package/dist/types/{utils → payos-react/src/utils}/text.d.ts +0 -1
  99. package/dist/{utils → types/payos-react/src/utils}/validation.d.ts +0 -1
  100. package/package.json +38 -13
  101. package/dist/components/identity/IdentityBar.d.ts +0 -8
  102. package/dist/components/identity/IdentityBar.d.ts.map +0 -1
  103. package/dist/components/order/OrderSummaryAccordion.d.ts +0 -9
  104. package/dist/components/order/OrderSummaryAccordion.d.ts.map +0 -1
  105. package/dist/components/order/ShipmentCard.d.ts +0 -8
  106. package/dist/components/order/ShipmentCard.d.ts.map +0 -1
  107. package/dist/components/payos/ActiveCardWidget.d.ts.map +0 -1
  108. package/dist/components/payos/AgentRegistrationFlow.d.ts.map +0 -1
  109. package/dist/components/payos/ConnectStripeLinkButton.d.ts.map +0 -1
  110. package/dist/components/payos/IdentityVerificationFlow.d.ts +0 -26
  111. package/dist/components/payos/IdentityVerificationFlow.d.ts.map +0 -1
  112. package/dist/components/payos/LinkPaymentFlow.d.ts.map +0 -1
  113. package/dist/components/payos/LinkSessionContent.d.ts.map +0 -1
  114. package/dist/components/payos/PayOSFooter.d.ts +0 -25
  115. package/dist/components/payos/PayOSFooter.d.ts.map +0 -1
  116. package/dist/components/payos/PayWithLinkButton.d.ts +0 -74
  117. package/dist/components/payos/PayWithLinkButton.d.ts.map +0 -1
  118. package/dist/components/payos/PaymentMethodRow.d.ts.map +0 -1
  119. package/dist/components/payos/PaymentSheet.d.ts.map +0 -1
  120. package/dist/components/payos/PaymentSheetContent.d.ts +0 -80
  121. package/dist/components/payos/PaymentSheetContent.d.ts.map +0 -1
  122. package/dist/components/payos/PaymentSheetPaymentFlow.d.ts +0 -43
  123. package/dist/components/payos/PaymentSheetPaymentFlow.d.ts.map +0 -1
  124. package/dist/components/payos/PaymentSheetShell.d.ts.map +0 -1
  125. package/dist/components/payos/PaymentSheetStatusViews.d.ts.map +0 -1
  126. package/dist/components/payos/PriceTag.d.ts +0 -64
  127. package/dist/components/payos/PriceTag.d.ts.map +0 -1
  128. package/dist/components/payos/ReceiptPanel.d.ts +0 -67
  129. package/dist/components/payos/ReceiptPanel.d.ts.map +0 -1
  130. package/dist/components/payos/ViewHeader.d.ts +0 -9
  131. package/dist/components/payos/ViewHeader.d.ts.map +0 -1
  132. package/dist/components/payos/drawer.d.ts +0 -107
  133. package/dist/components/payos/drawer.d.ts.map +0 -1
  134. package/dist/components/payos/order-summary.d.ts.map +0 -1
  135. package/dist/components/payos/otp-input.d.ts.map +0 -1
  136. package/dist/components/payos/phone-input.d.ts +0 -30
  137. package/dist/components/payos/phone-input.d.ts.map +0 -1
  138. package/dist/components/payos/themeMode.d.ts.map +0 -1
  139. package/dist/components/payos/usePaymentSheetDebug.d.ts +0 -22
  140. package/dist/components/payos/usePaymentSheetDebug.d.ts.map +0 -1
  141. package/dist/components/payos/usePaymentSheetDisplayData.d.ts +0 -29
  142. package/dist/components/payos/usePaymentSheetDisplayData.d.ts.map +0 -1
  143. package/dist/components/payos/usePaymentSheetLifecycle.d.ts +0 -39
  144. package/dist/components/payos/usePaymentSheetLifecycle.d.ts.map +0 -1
  145. package/dist/components/payos/usePaymentSheetSkipToAuth.d.ts.map +0 -1
  146. package/dist/components/payos/usePaymentSheetSkipToLink.d.ts.map +0 -1
  147. package/dist/components/payos/views/AgentRegistrationView.d.ts.map +0 -1
  148. package/dist/components/payos/views/CardAddView.d.ts +0 -101
  149. package/dist/components/payos/views/CardAddView.d.ts.map +0 -1
  150. package/dist/components/payos/views/CheckoutView.d.ts +0 -95
  151. package/dist/components/payos/views/CheckoutView.d.ts.map +0 -1
  152. package/dist/components/payos/views/IdentityView.d.ts +0 -51
  153. package/dist/components/payos/views/IdentityView.d.ts.map +0 -1
  154. package/dist/components/payos/views/LinkBrand.d.ts.map +0 -1
  155. package/dist/components/payos/views/LinkCheckoutView.d.ts.map +0 -1
  156. package/dist/components/payos/views/LinkConnectView.d.ts +0 -18
  157. package/dist/components/payos/views/LinkConnectView.d.ts.map +0 -1
  158. package/dist/components/payos/views/LinkDeniedView.d.ts +0 -13
  159. package/dist/components/payos/views/LinkDeniedView.d.ts.map +0 -1
  160. package/dist/components/payos/views/LinkLoadingView.d.ts.map +0 -1
  161. package/dist/components/payos/views/LinkSuccessView.d.ts +0 -11
  162. package/dist/components/payos/views/LinkSuccessView.d.ts.map +0 -1
  163. package/dist/components/payos/views/ManageThirdPartyView.d.ts.map +0 -1
  164. package/dist/components/payos/views/MethodListView.d.ts.map +0 -1
  165. package/dist/components/payos/views/OTPView.d.ts +0 -69
  166. package/dist/components/payos/views/OTPView.d.ts.map +0 -1
  167. package/dist/components/payos/views/SuccessView.d.ts +0 -49
  168. package/dist/components/payos/views/SuccessView.d.ts.map +0 -1
  169. package/dist/components/payos/views/VisaIframeView.d.ts.map +0 -1
  170. package/dist/components/payos/views/VisaMethodView.d.ts +0 -23
  171. package/dist/components/payos/views/VisaMethodView.d.ts.map +0 -1
  172. package/dist/components/payos/views/VisaOtpView.d.ts.map +0 -1
  173. package/dist/components/payos/views/WelcomeBackView.d.ts.map +0 -1
  174. package/dist/components/ui/CardBrandIcon.d.ts +0 -10
  175. package/dist/components/ui/CardBrandIcon.d.ts.map +0 -1
  176. package/dist/components/ui/ConfirmDialog.d.ts +0 -25
  177. package/dist/components/ui/ConfirmDialog.d.ts.map +0 -1
  178. package/dist/components/ui/DigitalCard.d.ts +0 -13
  179. package/dist/components/ui/DigitalCard.d.ts.map +0 -1
  180. package/dist/components/ui/InfoTooltip.d.ts +0 -8
  181. package/dist/components/ui/InfoTooltip.d.ts.map +0 -1
  182. package/dist/components/ui/PinInput.d.ts +0 -12
  183. package/dist/components/ui/PinInput.d.ts.map +0 -1
  184. package/dist/components/ui/button.d.ts +0 -14
  185. package/dist/components/ui/button.d.ts.map +0 -1
  186. package/dist/components/ui/card.d.ts +0 -15
  187. package/dist/components/ui/card.d.ts.map +0 -1
  188. package/dist/components/ui/input.d.ts +0 -6
  189. package/dist/components/ui/input.d.ts.map +0 -1
  190. package/dist/components/ui/label.d.ts +0 -6
  191. package/dist/components/ui/label.d.ts.map +0 -1
  192. package/dist/components/ui/separator.d.ts +0 -5
  193. package/dist/components/ui/separator.d.ts.map +0 -1
  194. package/dist/hooks/index.d.ts +0 -8
  195. package/dist/hooks/index.d.ts.map +0 -1
  196. package/dist/hooks/useBiometricType.d.ts.map +0 -1
  197. package/dist/hooks/useBodyScrollLock.d.ts +0 -32
  198. package/dist/hooks/useBodyScrollLock.d.ts.map +0 -1
  199. package/dist/hooks/useCardElement.d.ts +0 -135
  200. package/dist/hooks/useCardElement.d.ts.map +0 -1
  201. package/dist/hooks/useCheckoutFlow.d.ts +0 -29
  202. package/dist/hooks/useCheckoutFlow.d.ts.map +0 -1
  203. package/dist/hooks/useDrawerState.d.ts +0 -4
  204. package/dist/hooks/useDrawerState.d.ts.map +0 -1
  205. package/dist/hooks/useLinkAuth.d.ts +0 -24
  206. package/dist/hooks/useLinkAuth.d.ts.map +0 -1
  207. package/dist/hooks/useLinkDeviceAuthPoll.d.ts +0 -29
  208. package/dist/hooks/useLinkDeviceAuthPoll.d.ts.map +0 -1
  209. package/dist/hooks/useLinkMethods.d.ts +0 -28
  210. package/dist/hooks/useLinkMethods.d.ts.map +0 -1
  211. package/dist/hooks/useLinkSession.d.ts.map +0 -1
  212. package/dist/hooks/useLinkSpendStatusPoll.d.ts.map +0 -1
  213. package/dist/hooks/usePasskeySDK.d.ts +0 -103
  214. package/dist/hooks/usePasskeySDK.d.ts.map +0 -1
  215. package/dist/hooks/useSession.d.ts.map +0 -1
  216. package/dist/hooks/useVisualViewport.d.ts +0 -15
  217. package/dist/hooks/useVisualViewport.d.ts.map +0 -1
  218. package/dist/index.d.ts.map +0 -1
  219. package/dist/lib/theme.d.ts +0 -53
  220. package/dist/lib/theme.d.ts.map +0 -1
  221. package/dist/lib/utils.d.ts.map +0 -1
  222. package/dist/mocks/index.d.ts +0 -3
  223. package/dist/mocks/index.d.ts.map +0 -1
  224. package/dist/mocks/mockCheckoutFlow.d.ts +0 -25
  225. package/dist/mocks/mockCheckoutFlow.d.ts.map +0 -1
  226. package/dist/mocks/mockData.d.ts +0 -6
  227. package/dist/mocks/mockData.d.ts.map +0 -1
  228. package/dist/mocks/mockSessionData.d.ts +0 -38
  229. package/dist/mocks/mockSessionData.d.ts.map +0 -1
  230. package/dist/services/apiService.d.ts.map +0 -1
  231. package/dist/services/linkTokenService.d.ts.map +0 -1
  232. package/dist/services/mockSessionService.d.ts +0 -65
  233. package/dist/services/mockSessionService.d.ts.map +0 -1
  234. package/dist/types/cardElement.d.ts.map +0 -1
  235. package/dist/types/components/identity/IdentityBar.d.ts +0 -8
  236. package/dist/types/components/identity/IdentityBar.d.ts.map +0 -1
  237. package/dist/types/components/order/OrderSummaryAccordion.d.ts +0 -9
  238. package/dist/types/components/order/OrderSummaryAccordion.d.ts.map +0 -1
  239. package/dist/types/components/order/ShipmentCard.d.ts +0 -8
  240. package/dist/types/components/order/ShipmentCard.d.ts.map +0 -1
  241. package/dist/types/components/payos/ActiveCardWidget.d.ts +0 -60
  242. package/dist/types/components/payos/ActiveCardWidget.d.ts.map +0 -1
  243. package/dist/types/components/payos/AgentRegistrationFlow.d.ts +0 -24
  244. package/dist/types/components/payos/AgentRegistrationFlow.d.ts.map +0 -1
  245. package/dist/types/components/payos/ConnectStripeLinkButton.d.ts +0 -41
  246. package/dist/types/components/payos/ConnectStripeLinkButton.d.ts.map +0 -1
  247. package/dist/types/components/payos/IdentityVerificationFlow.d.ts.map +0 -1
  248. package/dist/types/components/payos/LinkPaymentFlow.d.ts +0 -11
  249. package/dist/types/components/payos/LinkPaymentFlow.d.ts.map +0 -1
  250. package/dist/types/components/payos/LinkSessionContent.d.ts +0 -19
  251. package/dist/types/components/payos/LinkSessionContent.d.ts.map +0 -1
  252. package/dist/types/components/payos/PayOSFooter.d.ts.map +0 -1
  253. package/dist/types/components/payos/PayWithLinkButton.d.ts.map +0 -1
  254. package/dist/types/components/payos/PaymentMethodRow.d.ts +0 -53
  255. package/dist/types/components/payos/PaymentMethodRow.d.ts.map +0 -1
  256. package/dist/types/components/payos/PaymentSheet.d.ts +0 -121
  257. package/dist/types/components/payos/PaymentSheet.d.ts.map +0 -1
  258. package/dist/types/components/payos/PaymentSheetContent.d.ts.map +0 -1
  259. package/dist/types/components/payos/PaymentSheetPaymentFlow.d.ts.map +0 -1
  260. package/dist/types/components/payos/PaymentSheetShell.d.ts +0 -25
  261. package/dist/types/components/payos/PaymentSheetShell.d.ts.map +0 -1
  262. package/dist/types/components/payos/PaymentSheetStatusViews.d.ts +0 -28
  263. package/dist/types/components/payos/PaymentSheetStatusViews.d.ts.map +0 -1
  264. package/dist/types/components/payos/PriceTag.d.ts.map +0 -1
  265. package/dist/types/components/payos/ReceiptPanel.d.ts.map +0 -1
  266. package/dist/types/components/payos/ViewHeader.d.ts.map +0 -1
  267. package/dist/types/components/payos/drawer.d.ts.map +0 -1
  268. package/dist/types/components/payos/order-summary.d.ts +0 -44
  269. package/dist/types/components/payos/order-summary.d.ts.map +0 -1
  270. package/dist/types/components/payos/otp-input.d.ts +0 -45
  271. package/dist/types/components/payos/otp-input.d.ts.map +0 -1
  272. package/dist/types/components/payos/phone-input.d.ts.map +0 -1
  273. package/dist/types/components/payos/themeMode.d.ts +0 -6
  274. package/dist/types/components/payos/themeMode.d.ts.map +0 -1
  275. package/dist/types/components/payos/usePaymentSheetDebug.d.ts +0 -22
  276. package/dist/types/components/payos/usePaymentSheetDebug.d.ts.map +0 -1
  277. package/dist/types/components/payos/usePaymentSheetDisplayData.d.ts.map +0 -1
  278. package/dist/types/components/payos/usePaymentSheetLifecycle.d.ts.map +0 -1
  279. package/dist/types/components/payos/usePaymentSheetSkipToAuth.d.ts +0 -18
  280. package/dist/types/components/payos/usePaymentSheetSkipToAuth.d.ts.map +0 -1
  281. package/dist/types/components/payos/usePaymentSheetSkipToLink.d.ts +0 -14
  282. package/dist/types/components/payos/usePaymentSheetSkipToLink.d.ts.map +0 -1
  283. package/dist/types/components/payos/views/AgentRegistrationView.d.ts +0 -61
  284. package/dist/types/components/payos/views/AgentRegistrationView.d.ts.map +0 -1
  285. package/dist/types/components/payos/views/CardAddView.d.ts.map +0 -1
  286. package/dist/types/components/payos/views/CheckoutView.d.ts.map +0 -1
  287. package/dist/types/components/payos/views/IdentityView.d.ts.map +0 -1
  288. package/dist/types/components/payos/views/LinkBrand.d.ts +0 -13
  289. package/dist/types/components/payos/views/LinkBrand.d.ts.map +0 -1
  290. package/dist/types/components/payos/views/LinkCheckoutView.d.ts +0 -31
  291. package/dist/types/components/payos/views/LinkCheckoutView.d.ts.map +0 -1
  292. package/dist/types/components/payos/views/LinkConnectView.d.ts.map +0 -1
  293. package/dist/types/components/payos/views/LinkDeniedView.d.ts.map +0 -1
  294. package/dist/types/components/payos/views/LinkLoadingView.d.ts +0 -11
  295. package/dist/types/components/payos/views/LinkLoadingView.d.ts.map +0 -1
  296. package/dist/types/components/payos/views/LinkSuccessView.d.ts.map +0 -1
  297. package/dist/types/components/payos/views/ManageThirdPartyView.d.ts +0 -19
  298. package/dist/types/components/payos/views/ManageThirdPartyView.d.ts.map +0 -1
  299. package/dist/types/components/payos/views/MethodListView.d.ts +0 -116
  300. package/dist/types/components/payos/views/MethodListView.d.ts.map +0 -1
  301. package/dist/types/components/payos/views/OTPView.d.ts.map +0 -1
  302. package/dist/types/components/payos/views/SuccessView.d.ts.map +0 -1
  303. package/dist/types/components/payos/views/VisaIframeView.d.ts +0 -16
  304. package/dist/types/components/payos/views/VisaIframeView.d.ts.map +0 -1
  305. package/dist/types/components/payos/views/VisaMethodView.d.ts.map +0 -1
  306. package/dist/types/components/payos/views/VisaOtpView.d.ts +0 -45
  307. package/dist/types/components/payos/views/VisaOtpView.d.ts.map +0 -1
  308. package/dist/types/components/payos/views/WelcomeBackView.d.ts +0 -34
  309. package/dist/types/components/payos/views/WelcomeBackView.d.ts.map +0 -1
  310. package/dist/types/components/ui/CardBrandIcon.d.ts.map +0 -1
  311. package/dist/types/components/ui/ConfirmDialog.d.ts.map +0 -1
  312. package/dist/types/components/ui/DigitalCard.d.ts.map +0 -1
  313. package/dist/types/components/ui/InfoTooltip.d.ts +0 -8
  314. package/dist/types/components/ui/InfoTooltip.d.ts.map +0 -1
  315. package/dist/types/components/ui/PinInput.d.ts +0 -12
  316. package/dist/types/components/ui/PinInput.d.ts.map +0 -1
  317. package/dist/types/components/ui/button.d.ts.map +0 -1
  318. package/dist/types/components/ui/card.d.ts.map +0 -1
  319. package/dist/types/components/ui/input.d.ts.map +0 -1
  320. package/dist/types/components/ui/label.d.ts.map +0 -1
  321. package/dist/types/components/ui/separator.d.ts.map +0 -1
  322. package/dist/types/drawer.d.ts.map +0 -1
  323. package/dist/types/hooks/index.d.ts +0 -8
  324. package/dist/types/hooks/index.d.ts.map +0 -1
  325. package/dist/types/hooks/useBiometricType.d.ts +0 -21
  326. package/dist/types/hooks/useBiometricType.d.ts.map +0 -1
  327. package/dist/types/hooks/useBodyScrollLock.d.ts.map +0 -1
  328. package/dist/types/hooks/useCardElement.d.ts.map +0 -1
  329. package/dist/types/hooks/useCheckoutFlow.d.ts +0 -29
  330. package/dist/types/hooks/useCheckoutFlow.d.ts.map +0 -1
  331. package/dist/types/hooks/useDrawerState.d.ts +0 -4
  332. package/dist/types/hooks/useDrawerState.d.ts.map +0 -1
  333. package/dist/types/hooks/useLinkAuth.d.ts.map +0 -1
  334. package/dist/types/hooks/useLinkDeviceAuthPoll.d.ts.map +0 -1
  335. package/dist/types/hooks/useLinkMethods.d.ts.map +0 -1
  336. package/dist/types/hooks/useLinkSession.d.ts +0 -81
  337. package/dist/types/hooks/useLinkSession.d.ts.map +0 -1
  338. package/dist/types/hooks/useLinkSpendStatusPoll.d.ts +0 -28
  339. package/dist/types/hooks/useLinkSpendStatusPoll.d.ts.map +0 -1
  340. package/dist/types/hooks/usePasskeySDK.d.ts.map +0 -1
  341. package/dist/types/hooks/useSession.d.ts +0 -87
  342. package/dist/types/hooks/useSession.d.ts.map +0 -1
  343. package/dist/types/hooks/useVisualViewport.d.ts.map +0 -1
  344. package/dist/types/index.d.ts.map +0 -1
  345. package/dist/types/lib/theme.d.ts +0 -53
  346. package/dist/types/lib/theme.d.ts.map +0 -1
  347. package/dist/types/lib/utils.d.ts +0 -3
  348. package/dist/types/lib/utils.d.ts.map +0 -1
  349. package/dist/types/mocks/index.d.ts +0 -3
  350. package/dist/types/mocks/index.d.ts.map +0 -1
  351. package/dist/types/mocks/mockCheckoutFlow.d.ts +0 -25
  352. package/dist/types/mocks/mockCheckoutFlow.d.ts.map +0 -1
  353. package/dist/types/mocks/mockData.d.ts +0 -6
  354. package/dist/types/mocks/mockData.d.ts.map +0 -1
  355. package/dist/types/mocks/mockSessionData.d.ts +0 -38
  356. package/dist/types/mocks/mockSessionData.d.ts.map +0 -1
  357. package/dist/types/order.d.ts.map +0 -1
  358. package/dist/types/payment.d.ts +0 -55
  359. package/dist/types/payment.d.ts.map +0 -1
  360. package/dist/types/services/apiService.d.ts +0 -406
  361. package/dist/types/services/apiService.d.ts.map +0 -1
  362. package/dist/types/services/linkTokenService.d.ts +0 -7
  363. package/dist/types/services/linkTokenService.d.ts.map +0 -1
  364. package/dist/types/services/mockSessionService.d.ts +0 -65
  365. package/dist/types/services/mockSessionService.d.ts.map +0 -1
  366. package/dist/types/session.d.ts.map +0 -1
  367. package/dist/types/types/cardElement.d.ts +0 -157
  368. package/dist/types/types/cardElement.d.ts.map +0 -1
  369. package/dist/types/types/drawer.d.ts +0 -33
  370. package/dist/types/types/drawer.d.ts.map +0 -1
  371. package/dist/types/types/index.d.ts.map +0 -1
  372. package/dist/types/types/order.d.ts +0 -25
  373. package/dist/types/types/order.d.ts.map +0 -1
  374. package/dist/types/types/payment.d.ts.map +0 -1
  375. package/dist/types/types/session.d.ts +0 -165
  376. package/dist/types/types/session.d.ts.map +0 -1
  377. package/dist/types/utils/credentialStatus.d.ts.map +0 -1
  378. package/dist/types/utils/deviceFingerprint.d.ts +0 -27
  379. package/dist/types/utils/deviceFingerprint.d.ts.map +0 -1
  380. package/dist/types/utils/environment.d.ts.map +0 -1
  381. package/dist/types/utils/formatting.d.ts +0 -41
  382. package/dist/types/utils/formatting.d.ts.map +0 -1
  383. package/dist/types/utils/index.d.ts +0 -4
  384. package/dist/types/utils/index.d.ts.map +0 -1
  385. package/dist/types/utils/linkFormat.d.ts +0 -17
  386. package/dist/types/utils/linkFormat.d.ts.map +0 -1
  387. package/dist/types/utils/linkPopup.d.ts.map +0 -1
  388. package/dist/types/utils/selectCard.d.ts.map +0 -1
  389. package/dist/types/utils/text.d.ts.map +0 -1
  390. package/dist/types/utils/validation.d.ts +0 -90
  391. package/dist/types/utils/validation.d.ts.map +0 -1
  392. package/dist/utils/credentialStatus.d.ts +0 -8
  393. package/dist/utils/credentialStatus.d.ts.map +0 -1
  394. package/dist/utils/deviceFingerprint.d.ts.map +0 -1
  395. package/dist/utils/environment.d.ts +0 -22
  396. package/dist/utils/environment.d.ts.map +0 -1
  397. package/dist/utils/formatting.d.ts.map +0 -1
  398. package/dist/utils/index.d.ts +0 -4
  399. package/dist/utils/index.d.ts.map +0 -1
  400. package/dist/utils/linkFormat.d.ts +0 -17
  401. package/dist/utils/linkFormat.d.ts.map +0 -1
  402. package/dist/utils/linkPopup.d.ts +0 -19
  403. package/dist/utils/linkPopup.d.ts.map +0 -1
  404. package/dist/utils/selectCard.d.ts +0 -18
  405. package/dist/utils/selectCard.d.ts.map +0 -1
  406. package/dist/utils/text.d.ts +0 -12
  407. package/dist/utils/text.d.ts.map +0 -1
  408. package/dist/utils/validation.d.ts.map +0 -1
@@ -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,EA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;IAC1C,4EAA4E;IAC5E,eAAe,CAAC,EAAE,kBAAkB,CAAC;IACrC,yEAAyE;IACzE,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,CAAC,MAAM,EAAE,wBAAwB,KAAK,IAAI,CAAC;IACtD,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,IAAI,CAAC;CACpD;AAID;;;;;GAKG;AACH,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,SAAS,CAA4B;IAC7C,OAAO,CAAC,MAAM,CAAkC;IAChD,OAAO,CAAC,OAAO,CAAqB;IACpC,OAAO,CAAC,eAAe,CAAgD;IACvE,OAAO,CAAC,YAAY,CAAuB;IAC3C,OAAO,CAAC,aAAa,CAAkC;IACvD,OAAO,CAAC,oBAAoB,CAAyC;gBAEzD,SAAS,EAAE,MAAM,GAAG,WAAW,EAAE,OAAO,EAAE,kBAAkB;IAmBjE,KAAK,IAAI,IAAI;IA2Cb,OAAO,IAAI,IAAI;IAgBf,OAAO,IAAI,IAAI;IAMf,SAAS,CAAC,MAAM,EAAE,wBAAwB,GAAG,IAAI;IAqBjD,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,MA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AAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,YAAY,GAAG,MAAM,GAAG,UAAU,GAAG,SAAS,CAAC;AAEhF,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,SAAS,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,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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oot":"","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;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,oBAAoB,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;CAC3D;AAED,qDAAqD;AACrD,eAAO,MAAM,aAAa,UAA2H,CAAC;AAEtJ,eAAO,MAAM,SAAS,EAAE,OAAO,EAS3B,CAAC;AAEL,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC;AAEjC;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAYzE,CAAC;AAEL,0EAA0E;AAC1E,eAAO,MAAM,qBAAqB;;;CAAsB,CAAC;AAEzD;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAqBzE;AAED,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,MAAM,CAmD7E;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAGnD;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAyB7D;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,CA0B7D;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CA4BrD;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,GAAG,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
@@ -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 +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,22 +0,0 @@
1
- /**
2
- * Environment utilities for PayOS Elements
3
- */
4
- /**
5
- * Get the API base URL based on environment and optional development override.
6
- *
7
- * @param environment - 'sandbox' or 'production'
8
- * @param developmentApiUrl - Optional override for local development (e.g., 'http://localhost:3000')
9
- * @returns The API base URL to use for all SDK/API calls
10
- *
11
- * @example
12
- * // Local development
13
- * getApiBaseUrl('sandbox', 'http://localhost:3000') // => 'http://localhost:3000'
14
- *
15
- * // Production sandbox
16
- * getApiBaseUrl('sandbox') // => 'https://sandbox.api.payos.ai'
17
- *
18
- * // Production live
19
- * getApiBaseUrl('production') // => 'https://api.payos.ai'
20
- */
21
- export declare function getApiBaseUrl(environment: 'sandbox' | 'production', developmentApiUrl?: string): string;
22
- //# sourceMappingURL=environment.d.ts.map
@@ -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 +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,19 +0,0 @@
1
- /**
2
- * Popup helpers for Stripe Link flows.
3
- *
4
- * Two popup contexts during a Link session:
5
- * - 'connect' → device-auth verification page on app.link.com
6
- * - 'approval' → spend-request approval page (returned from Stripe SDK)
7
- *
8
- * Each context uses its own window name so a second open in the same flow
9
- * reuses the popup instead of stacking. Close calls are best-effort —
10
- * Safari blocks .close() on popups that navigated cross-origin, so we
11
- * fall back to blur+focus to make sure the parent window comes forward.
12
- */
13
- type PopupKind = 'connect' | 'approval';
14
- export declare function openLinkPopup(kind: PopupKind, url: string): Window | null;
15
- export declare function closeLinkPopup(kind: PopupKind): void;
16
- export declare function isLinkPopupOpen(kind: PopupKind): boolean;
17
- export declare function closeAllLinkPopups(): void;
18
- export {};
19
- //# sourceMappingURL=linkPopup.d.ts.map
@@ -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,18 +0,0 @@
1
- import type { SavedCard } from '../types/session';
2
- export interface SelectCardResult {
3
- /** The card that was selected (may be undefined if no cards available) */
4
- selectedCard: SavedCard | undefined;
5
- /** Card ID that needs syncing to backend (undefined if no sync needed) */
6
- cardToSync: string | undefined;
7
- }
8
- /**
9
- * Pure card-selection logic shared by all useSession code paths
10
- * (pre-verified wallet, device trust, OTP verification).
11
- *
12
- * Priority: propCardId > backendSelectedCardId > default card > first card.
13
- *
14
- * Returns the selected card and an optional cardToSync value indicating
15
- * whether the backend needs to be updated with the selection.
16
- */
17
- export declare function selectCard(savedCards: SavedCard[], propCardId?: string, backendSelectedCardId?: string): SelectCardResult;
18
- //# sourceMappingURL=selectCard.d.ts.map
@@ -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,12 +0,0 @@
1
- /**
2
- * Fix common UTF-8-as-Latin-1 mojibake patterns on the frontend.
3
- *
4
- * Happens when a backend double-decodes a UTF-8 byte sequence as Latin-1
5
- * and re-encodes it, e.g. `Test Issuer®` becomes `Test Issuer®`. Until
6
- * the backend is fixed, cleanse at the render layer.
7
- *
8
- * Only targets a narrow set of common symbols to avoid mangling legitimate
9
- * accented characters (résumé, piñata, etc.).
10
- */
11
- export declare function cleanMojibake(input?: string | null): string;
12
- //# sourceMappingURL=text.d.ts.map