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

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 (414) 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 +18 -12
  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 +165 -0
  12. package/dist/types/payos-passkey-js/src/core/sessionFlow.d.ts +48 -0
  13. package/dist/types/payos-passkey-js/src/core/types.d.ts +183 -0
  14. package/dist/types/payos-passkey-js/src/index.d.ts +10 -0
  15. package/dist/types/payos-passkey-js/src/services/mastercard/MastercardSDKService.d.ts +61 -0
  16. package/dist/types/payos-passkey-js/src/services/visa/VisaSDKService.d.ts +90 -0
  17. package/dist/types/payos-passkey-js/src/utils/diagnostics.d.ts +30 -0
  18. package/dist/types/payos-passkey-js/src/utils/logger.d.ts +36 -0
  19. package/dist/types/payos-passkey-js/src/version.d.ts +5 -0
  20. package/dist/{components → types/payos-react/src/components}/payos/ActiveCardWidget.d.ts +0 -1
  21. package/dist/{components → types/payos-react/src/components}/payos/AgentRegistrationFlow.d.ts +1 -3
  22. package/dist/{components → types/payos-react/src/components}/payos/ConnectStripeLinkButton.d.ts +0 -1
  23. package/dist/types/{components → payos-react/src/components}/payos/IdentityVerificationFlow.d.ts +0 -1
  24. package/dist/{components → types/payos-react/src/components}/payos/LinkPaymentFlow.d.ts +0 -1
  25. package/dist/{components → types/payos-react/src/components}/payos/LinkSessionContent.d.ts +0 -1
  26. package/dist/types/{components → payos-react/src/components}/payos/PayOSFooter.d.ts +0 -1
  27. package/dist/types/{components → payos-react/src/components}/payos/PayWithLinkButton.d.ts +0 -1
  28. package/dist/{components → types/payos-react/src/components}/payos/PaymentMethodRow.d.ts +0 -1
  29. package/dist/{components → types/payos-react/src/components}/payos/PaymentSheet.d.ts +3 -4
  30. package/dist/types/{components → payos-react/src/components}/payos/PaymentSheetContent.d.ts +6 -4
  31. package/dist/types/{components → payos-react/src/components}/payos/PaymentSheetPaymentFlow.d.ts +4 -2
  32. package/dist/{components → types/payos-react/src/components}/payos/PaymentSheetShell.d.ts +0 -1
  33. package/dist/types/{components → payos-react/src/components}/payos/PaymentSheetStatusViews.d.ts +3 -2
  34. package/dist/types/{components → payos-react/src/components}/payos/PriceTag.d.ts +0 -1
  35. package/dist/types/{components → payos-react/src/components}/payos/ReceiptPanel.d.ts +0 -1
  36. package/dist/types/{components → payos-react/src/components}/payos/ViewHeader.d.ts +2 -1
  37. package/dist/types/{components → payos-react/src/components}/payos/drawer.d.ts +5 -2
  38. package/dist/{components → types/payos-react/src/components}/payos/order-summary.d.ts +0 -1
  39. package/dist/{components → types/payos-react/src/components}/payos/otp-input.d.ts +0 -1
  40. package/dist/types/{components → payos-react/src/components}/payos/phone-input.d.ts +0 -1
  41. package/dist/{components → types/payos-react/src/components}/payos/themeMode.d.ts +0 -1
  42. package/dist/types/{components → payos-react/src/components}/payos/usePaymentSheetDisplayData.d.ts +0 -1
  43. package/dist/types/{components → payos-react/src/components}/payos/usePaymentSheetLifecycle.d.ts +0 -1
  44. package/dist/{components → types/payos-react/src/components}/payos/usePaymentSheetSkipToAuth.d.ts +0 -1
  45. package/dist/{components → types/payos-react/src/components}/payos/usePaymentSheetSkipToLink.d.ts +0 -1
  46. package/dist/{components → types/payos-react/src/components}/payos/views/AgentRegistrationView.d.ts +0 -1
  47. package/dist/types/{components → payos-react/src/components}/payos/views/CardAddView.d.ts +1 -2
  48. package/dist/types/{components → payos-react/src/components}/payos/views/CheckoutView.d.ts +0 -1
  49. package/dist/types/{components → payos-react/src/components}/payos/views/IdentityView.d.ts +0 -1
  50. package/dist/{components → types/payos-react/src/components}/payos/views/LinkBrand.d.ts +0 -1
  51. package/dist/{components → types/payos-react/src/components}/payos/views/LinkCheckoutView.d.ts +0 -1
  52. package/dist/types/{components → payos-react/src/components}/payos/views/LinkConnectView.d.ts +0 -1
  53. package/dist/types/{components → payos-react/src/components}/payos/views/LinkDeniedView.d.ts +0 -1
  54. package/dist/{components → types/payos-react/src/components}/payos/views/LinkLoadingView.d.ts +0 -1
  55. package/dist/types/{components → payos-react/src/components}/payos/views/LinkSuccessView.d.ts +0 -1
  56. package/dist/{components → types/payos-react/src/components}/payos/views/ManageThirdPartyView.d.ts +0 -1
  57. package/dist/{components → types/payos-react/src/components}/payos/views/MethodListView.d.ts +8 -1
  58. package/dist/types/{components → payos-react/src/components}/payos/views/OTPView.d.ts +0 -1
  59. package/dist/types/payos-react/src/components/payos/views/ShareCardsView.d.ts +28 -0
  60. package/dist/types/{components → payos-react/src/components}/payos/views/SuccessView.d.ts +0 -1
  61. package/dist/{components → types/payos-react/src/components}/payos/views/VisaIframeView.d.ts +0 -1
  62. package/dist/types/{components → payos-react/src/components}/payos/views/VisaMethodView.d.ts +0 -1
  63. package/dist/{components → types/payos-react/src/components}/payos/views/VisaOtpView.d.ts +0 -1
  64. package/dist/{components → types/payos-react/src/components}/payos/views/WelcomeBackView.d.ts +0 -1
  65. package/dist/types/payos-react/src/components/ui/CardArt.d.ts +22 -0
  66. package/dist/types/{components → payos-react/src/components}/ui/CardBrandIcon.d.ts +0 -1
  67. package/dist/types/{components → payos-react/src/components}/ui/ConfirmDialog.d.ts +0 -1
  68. package/dist/types/{components → payos-react/src/components}/ui/DigitalCard.d.ts +0 -1
  69. package/dist/types/payos-react/src/components/ui/HelpPopover.d.ts +17 -0
  70. package/dist/types/{components → payos-react/src/components}/ui/button.d.ts +1 -2
  71. package/dist/types/{components → payos-react/src/components}/ui/card.d.ts +1 -2
  72. package/dist/types/{components → payos-react/src/components}/ui/input.d.ts +0 -1
  73. package/dist/types/{components → payos-react/src/components}/ui/label.d.ts +1 -2
  74. package/dist/types/{components → payos-react/src/components}/ui/separator.d.ts +0 -1
  75. package/dist/{hooks → types/payos-react/src/hooks}/useBiometricType.d.ts +0 -1
  76. package/dist/types/{hooks → payos-react/src/hooks}/useBodyScrollLock.d.ts +0 -1
  77. package/dist/types/{hooks → payos-react/src/hooks}/useCardElement.d.ts +1 -2
  78. package/dist/types/{hooks → payos-react/src/hooks}/useLinkAuth.d.ts +0 -1
  79. package/dist/types/{hooks → payos-react/src/hooks}/useLinkDeviceAuthPoll.d.ts +0 -1
  80. package/dist/types/{hooks → payos-react/src/hooks}/useLinkMethods.d.ts +0 -1
  81. package/dist/{hooks → types/payos-react/src/hooks}/useLinkSession.d.ts +0 -1
  82. package/dist/{hooks → types/payos-react/src/hooks}/useLinkSpendStatusPoll.d.ts +0 -1
  83. package/dist/types/{hooks → payos-react/src/hooks}/usePasskeySDK.d.ts +2 -4
  84. package/dist/{hooks → types/payos-react/src/hooks}/useSession.d.ts +14 -1
  85. package/dist/types/{hooks → payos-react/src/hooks}/useVisualViewport.d.ts +0 -1
  86. package/dist/{index.d.ts → types/payos-react/src/index.d.ts} +3 -4
  87. package/dist/{lib → types/payos-react/src/lib}/utils.d.ts +0 -1
  88. package/dist/{services → types/payos-react/src/services}/apiService.d.ts +14 -3
  89. package/dist/{services → types/payos-react/src/services}/linkTokenService.d.ts +0 -1
  90. package/dist/types/{cardElement.d.ts → payos-react/src/types/cardElement.d.ts} +2 -3
  91. package/dist/types/{drawer.d.ts → payos-react/src/types/drawer.d.ts} +0 -1
  92. package/dist/types/{types → payos-react/src/types}/index.d.ts +0 -1
  93. package/dist/types/{order.d.ts → payos-react/src/types/order.d.ts} +0 -1
  94. package/dist/types/{types → payos-react/src/types}/payment.d.ts +1 -2
  95. package/dist/types/{session.d.ts → payos-react/src/types/session.d.ts} +18 -2
  96. package/dist/types/{utils → payos-react/src/utils}/credentialStatus.d.ts +0 -1
  97. package/dist/{utils → types/payos-react/src/utils}/deviceFingerprint.d.ts +0 -1
  98. package/dist/types/payos-react/src/utils/ensureSelectedCardAttached.d.ts +10 -0
  99. package/dist/types/{utils → payos-react/src/utils}/environment.d.ts +0 -1
  100. package/dist/{utils → types/payos-react/src/utils}/formatting.d.ts +0 -1
  101. package/dist/types/{utils → payos-react/src/utils}/linkPopup.d.ts +0 -1
  102. package/dist/types/payos-react/src/utils/organizationName.d.ts +8 -0
  103. package/dist/types/{utils → payos-react/src/utils}/selectCard.d.ts +0 -1
  104. package/dist/types/{utils → payos-react/src/utils}/text.d.ts +0 -1
  105. package/dist/{utils → types/payos-react/src/utils}/validation.d.ts +0 -1
  106. package/package.json +38 -13
  107. package/dist/components/identity/IdentityBar.d.ts +0 -8
  108. package/dist/components/identity/IdentityBar.d.ts.map +0 -1
  109. package/dist/components/order/OrderSummaryAccordion.d.ts +0 -9
  110. package/dist/components/order/OrderSummaryAccordion.d.ts.map +0 -1
  111. package/dist/components/order/ShipmentCard.d.ts +0 -8
  112. package/dist/components/order/ShipmentCard.d.ts.map +0 -1
  113. package/dist/components/payos/ActiveCardWidget.d.ts.map +0 -1
  114. package/dist/components/payos/AgentRegistrationFlow.d.ts.map +0 -1
  115. package/dist/components/payos/ConnectStripeLinkButton.d.ts.map +0 -1
  116. package/dist/components/payos/IdentityVerificationFlow.d.ts +0 -26
  117. package/dist/components/payos/IdentityVerificationFlow.d.ts.map +0 -1
  118. package/dist/components/payos/LinkPaymentFlow.d.ts.map +0 -1
  119. package/dist/components/payos/LinkSessionContent.d.ts.map +0 -1
  120. package/dist/components/payos/PayOSFooter.d.ts +0 -25
  121. package/dist/components/payos/PayOSFooter.d.ts.map +0 -1
  122. package/dist/components/payos/PayWithLinkButton.d.ts +0 -74
  123. package/dist/components/payos/PayWithLinkButton.d.ts.map +0 -1
  124. package/dist/components/payos/PaymentMethodRow.d.ts.map +0 -1
  125. package/dist/components/payos/PaymentSheet.d.ts.map +0 -1
  126. package/dist/components/payos/PaymentSheetContent.d.ts +0 -80
  127. package/dist/components/payos/PaymentSheetContent.d.ts.map +0 -1
  128. package/dist/components/payos/PaymentSheetPaymentFlow.d.ts +0 -43
  129. package/dist/components/payos/PaymentSheetPaymentFlow.d.ts.map +0 -1
  130. package/dist/components/payos/PaymentSheetShell.d.ts.map +0 -1
  131. package/dist/components/payos/PaymentSheetStatusViews.d.ts +0 -28
  132. package/dist/components/payos/PaymentSheetStatusViews.d.ts.map +0 -1
  133. package/dist/components/payos/PriceTag.d.ts +0 -64
  134. package/dist/components/payos/PriceTag.d.ts.map +0 -1
  135. package/dist/components/payos/ReceiptPanel.d.ts +0 -67
  136. package/dist/components/payos/ReceiptPanel.d.ts.map +0 -1
  137. package/dist/components/payos/ViewHeader.d.ts +0 -9
  138. package/dist/components/payos/ViewHeader.d.ts.map +0 -1
  139. package/dist/components/payos/drawer.d.ts +0 -107
  140. package/dist/components/payos/drawer.d.ts.map +0 -1
  141. package/dist/components/payos/order-summary.d.ts.map +0 -1
  142. package/dist/components/payos/otp-input.d.ts.map +0 -1
  143. package/dist/components/payos/phone-input.d.ts +0 -30
  144. package/dist/components/payos/phone-input.d.ts.map +0 -1
  145. package/dist/components/payos/themeMode.d.ts.map +0 -1
  146. package/dist/components/payos/usePaymentSheetDebug.d.ts +0 -22
  147. package/dist/components/payos/usePaymentSheetDebug.d.ts.map +0 -1
  148. package/dist/components/payos/usePaymentSheetDisplayData.d.ts +0 -29
  149. package/dist/components/payos/usePaymentSheetDisplayData.d.ts.map +0 -1
  150. package/dist/components/payos/usePaymentSheetLifecycle.d.ts +0 -39
  151. package/dist/components/payos/usePaymentSheetLifecycle.d.ts.map +0 -1
  152. package/dist/components/payos/usePaymentSheetSkipToAuth.d.ts.map +0 -1
  153. package/dist/components/payos/usePaymentSheetSkipToLink.d.ts.map +0 -1
  154. package/dist/components/payos/views/AgentRegistrationView.d.ts.map +0 -1
  155. package/dist/components/payos/views/CardAddView.d.ts +0 -101
  156. package/dist/components/payos/views/CardAddView.d.ts.map +0 -1
  157. package/dist/components/payos/views/CheckoutView.d.ts +0 -95
  158. package/dist/components/payos/views/CheckoutView.d.ts.map +0 -1
  159. package/dist/components/payos/views/IdentityView.d.ts +0 -51
  160. package/dist/components/payos/views/IdentityView.d.ts.map +0 -1
  161. package/dist/components/payos/views/LinkBrand.d.ts.map +0 -1
  162. package/dist/components/payos/views/LinkCheckoutView.d.ts.map +0 -1
  163. package/dist/components/payos/views/LinkConnectView.d.ts +0 -18
  164. package/dist/components/payos/views/LinkConnectView.d.ts.map +0 -1
  165. package/dist/components/payos/views/LinkDeniedView.d.ts +0 -13
  166. package/dist/components/payos/views/LinkDeniedView.d.ts.map +0 -1
  167. package/dist/components/payos/views/LinkLoadingView.d.ts.map +0 -1
  168. package/dist/components/payos/views/LinkSuccessView.d.ts +0 -11
  169. package/dist/components/payos/views/LinkSuccessView.d.ts.map +0 -1
  170. package/dist/components/payos/views/ManageThirdPartyView.d.ts.map +0 -1
  171. package/dist/components/payos/views/MethodListView.d.ts.map +0 -1
  172. package/dist/components/payos/views/OTPView.d.ts +0 -69
  173. package/dist/components/payos/views/OTPView.d.ts.map +0 -1
  174. package/dist/components/payos/views/SuccessView.d.ts +0 -49
  175. package/dist/components/payos/views/SuccessView.d.ts.map +0 -1
  176. package/dist/components/payos/views/VisaIframeView.d.ts.map +0 -1
  177. package/dist/components/payos/views/VisaMethodView.d.ts +0 -23
  178. package/dist/components/payos/views/VisaMethodView.d.ts.map +0 -1
  179. package/dist/components/payos/views/VisaOtpView.d.ts.map +0 -1
  180. package/dist/components/payos/views/WelcomeBackView.d.ts.map +0 -1
  181. package/dist/components/ui/CardBrandIcon.d.ts +0 -10
  182. package/dist/components/ui/CardBrandIcon.d.ts.map +0 -1
  183. package/dist/components/ui/ConfirmDialog.d.ts +0 -25
  184. package/dist/components/ui/ConfirmDialog.d.ts.map +0 -1
  185. package/dist/components/ui/DigitalCard.d.ts +0 -13
  186. package/dist/components/ui/DigitalCard.d.ts.map +0 -1
  187. package/dist/components/ui/InfoTooltip.d.ts +0 -8
  188. package/dist/components/ui/InfoTooltip.d.ts.map +0 -1
  189. package/dist/components/ui/PinInput.d.ts +0 -12
  190. package/dist/components/ui/PinInput.d.ts.map +0 -1
  191. package/dist/components/ui/button.d.ts +0 -14
  192. package/dist/components/ui/button.d.ts.map +0 -1
  193. package/dist/components/ui/card.d.ts +0 -15
  194. package/dist/components/ui/card.d.ts.map +0 -1
  195. package/dist/components/ui/input.d.ts +0 -6
  196. package/dist/components/ui/input.d.ts.map +0 -1
  197. package/dist/components/ui/label.d.ts +0 -6
  198. package/dist/components/ui/label.d.ts.map +0 -1
  199. package/dist/components/ui/separator.d.ts +0 -5
  200. package/dist/components/ui/separator.d.ts.map +0 -1
  201. package/dist/hooks/index.d.ts +0 -8
  202. package/dist/hooks/index.d.ts.map +0 -1
  203. package/dist/hooks/useBiometricType.d.ts.map +0 -1
  204. package/dist/hooks/useBodyScrollLock.d.ts +0 -32
  205. package/dist/hooks/useBodyScrollLock.d.ts.map +0 -1
  206. package/dist/hooks/useCardElement.d.ts +0 -135
  207. package/dist/hooks/useCardElement.d.ts.map +0 -1
  208. package/dist/hooks/useCheckoutFlow.d.ts +0 -29
  209. package/dist/hooks/useCheckoutFlow.d.ts.map +0 -1
  210. package/dist/hooks/useDrawerState.d.ts +0 -4
  211. package/dist/hooks/useDrawerState.d.ts.map +0 -1
  212. package/dist/hooks/useLinkAuth.d.ts +0 -24
  213. package/dist/hooks/useLinkAuth.d.ts.map +0 -1
  214. package/dist/hooks/useLinkDeviceAuthPoll.d.ts +0 -29
  215. package/dist/hooks/useLinkDeviceAuthPoll.d.ts.map +0 -1
  216. package/dist/hooks/useLinkMethods.d.ts +0 -28
  217. package/dist/hooks/useLinkMethods.d.ts.map +0 -1
  218. package/dist/hooks/useLinkSession.d.ts.map +0 -1
  219. package/dist/hooks/useLinkSpendStatusPoll.d.ts.map +0 -1
  220. package/dist/hooks/usePasskeySDK.d.ts +0 -103
  221. package/dist/hooks/usePasskeySDK.d.ts.map +0 -1
  222. package/dist/hooks/useSession.d.ts.map +0 -1
  223. package/dist/hooks/useVisualViewport.d.ts +0 -15
  224. package/dist/hooks/useVisualViewport.d.ts.map +0 -1
  225. package/dist/index.d.ts.map +0 -1
  226. package/dist/lib/theme.d.ts +0 -53
  227. package/dist/lib/theme.d.ts.map +0 -1
  228. package/dist/lib/utils.d.ts.map +0 -1
  229. package/dist/mocks/index.d.ts +0 -3
  230. package/dist/mocks/index.d.ts.map +0 -1
  231. package/dist/mocks/mockCheckoutFlow.d.ts +0 -25
  232. package/dist/mocks/mockCheckoutFlow.d.ts.map +0 -1
  233. package/dist/mocks/mockData.d.ts +0 -6
  234. package/dist/mocks/mockData.d.ts.map +0 -1
  235. package/dist/mocks/mockSessionData.d.ts +0 -38
  236. package/dist/mocks/mockSessionData.d.ts.map +0 -1
  237. package/dist/services/apiService.d.ts.map +0 -1
  238. package/dist/services/linkTokenService.d.ts.map +0 -1
  239. package/dist/services/mockSessionService.d.ts +0 -65
  240. package/dist/services/mockSessionService.d.ts.map +0 -1
  241. package/dist/types/cardElement.d.ts.map +0 -1
  242. package/dist/types/components/identity/IdentityBar.d.ts +0 -8
  243. package/dist/types/components/identity/IdentityBar.d.ts.map +0 -1
  244. package/dist/types/components/order/OrderSummaryAccordion.d.ts +0 -9
  245. package/dist/types/components/order/OrderSummaryAccordion.d.ts.map +0 -1
  246. package/dist/types/components/order/ShipmentCard.d.ts +0 -8
  247. package/dist/types/components/order/ShipmentCard.d.ts.map +0 -1
  248. package/dist/types/components/payos/ActiveCardWidget.d.ts +0 -60
  249. package/dist/types/components/payos/ActiveCardWidget.d.ts.map +0 -1
  250. package/dist/types/components/payos/AgentRegistrationFlow.d.ts +0 -24
  251. package/dist/types/components/payos/AgentRegistrationFlow.d.ts.map +0 -1
  252. package/dist/types/components/payos/ConnectStripeLinkButton.d.ts +0 -41
  253. package/dist/types/components/payos/ConnectStripeLinkButton.d.ts.map +0 -1
  254. package/dist/types/components/payos/IdentityVerificationFlow.d.ts.map +0 -1
  255. package/dist/types/components/payos/LinkPaymentFlow.d.ts +0 -11
  256. package/dist/types/components/payos/LinkPaymentFlow.d.ts.map +0 -1
  257. package/dist/types/components/payos/LinkSessionContent.d.ts +0 -19
  258. package/dist/types/components/payos/LinkSessionContent.d.ts.map +0 -1
  259. package/dist/types/components/payos/PayOSFooter.d.ts.map +0 -1
  260. package/dist/types/components/payos/PayWithLinkButton.d.ts.map +0 -1
  261. package/dist/types/components/payos/PaymentMethodRow.d.ts +0 -53
  262. package/dist/types/components/payos/PaymentMethodRow.d.ts.map +0 -1
  263. package/dist/types/components/payos/PaymentSheet.d.ts +0 -121
  264. package/dist/types/components/payos/PaymentSheet.d.ts.map +0 -1
  265. package/dist/types/components/payos/PaymentSheetContent.d.ts.map +0 -1
  266. package/dist/types/components/payos/PaymentSheetPaymentFlow.d.ts.map +0 -1
  267. package/dist/types/components/payos/PaymentSheetShell.d.ts +0 -25
  268. package/dist/types/components/payos/PaymentSheetShell.d.ts.map +0 -1
  269. package/dist/types/components/payos/PaymentSheetStatusViews.d.ts.map +0 -1
  270. package/dist/types/components/payos/PriceTag.d.ts.map +0 -1
  271. package/dist/types/components/payos/ReceiptPanel.d.ts.map +0 -1
  272. package/dist/types/components/payos/ViewHeader.d.ts.map +0 -1
  273. package/dist/types/components/payos/drawer.d.ts.map +0 -1
  274. package/dist/types/components/payos/order-summary.d.ts +0 -44
  275. package/dist/types/components/payos/order-summary.d.ts.map +0 -1
  276. package/dist/types/components/payos/otp-input.d.ts +0 -45
  277. package/dist/types/components/payos/otp-input.d.ts.map +0 -1
  278. package/dist/types/components/payos/phone-input.d.ts.map +0 -1
  279. package/dist/types/components/payos/themeMode.d.ts +0 -6
  280. package/dist/types/components/payos/themeMode.d.ts.map +0 -1
  281. package/dist/types/components/payos/usePaymentSheetDebug.d.ts +0 -22
  282. package/dist/types/components/payos/usePaymentSheetDebug.d.ts.map +0 -1
  283. package/dist/types/components/payos/usePaymentSheetDisplayData.d.ts.map +0 -1
  284. package/dist/types/components/payos/usePaymentSheetLifecycle.d.ts.map +0 -1
  285. package/dist/types/components/payos/usePaymentSheetSkipToAuth.d.ts +0 -18
  286. package/dist/types/components/payos/usePaymentSheetSkipToAuth.d.ts.map +0 -1
  287. package/dist/types/components/payos/usePaymentSheetSkipToLink.d.ts +0 -14
  288. package/dist/types/components/payos/usePaymentSheetSkipToLink.d.ts.map +0 -1
  289. package/dist/types/components/payos/views/AgentRegistrationView.d.ts +0 -61
  290. package/dist/types/components/payos/views/AgentRegistrationView.d.ts.map +0 -1
  291. package/dist/types/components/payos/views/CardAddView.d.ts.map +0 -1
  292. package/dist/types/components/payos/views/CheckoutView.d.ts.map +0 -1
  293. package/dist/types/components/payos/views/IdentityView.d.ts.map +0 -1
  294. package/dist/types/components/payos/views/LinkBrand.d.ts +0 -13
  295. package/dist/types/components/payos/views/LinkBrand.d.ts.map +0 -1
  296. package/dist/types/components/payos/views/LinkCheckoutView.d.ts +0 -31
  297. package/dist/types/components/payos/views/LinkCheckoutView.d.ts.map +0 -1
  298. package/dist/types/components/payos/views/LinkConnectView.d.ts.map +0 -1
  299. package/dist/types/components/payos/views/LinkDeniedView.d.ts.map +0 -1
  300. package/dist/types/components/payos/views/LinkLoadingView.d.ts +0 -11
  301. package/dist/types/components/payos/views/LinkLoadingView.d.ts.map +0 -1
  302. package/dist/types/components/payos/views/LinkSuccessView.d.ts.map +0 -1
  303. package/dist/types/components/payos/views/ManageThirdPartyView.d.ts +0 -19
  304. package/dist/types/components/payos/views/ManageThirdPartyView.d.ts.map +0 -1
  305. package/dist/types/components/payos/views/MethodListView.d.ts +0 -116
  306. package/dist/types/components/payos/views/MethodListView.d.ts.map +0 -1
  307. package/dist/types/components/payos/views/OTPView.d.ts.map +0 -1
  308. package/dist/types/components/payos/views/SuccessView.d.ts.map +0 -1
  309. package/dist/types/components/payos/views/VisaIframeView.d.ts +0 -16
  310. package/dist/types/components/payos/views/VisaIframeView.d.ts.map +0 -1
  311. package/dist/types/components/payos/views/VisaMethodView.d.ts.map +0 -1
  312. package/dist/types/components/payos/views/VisaOtpView.d.ts +0 -45
  313. package/dist/types/components/payos/views/VisaOtpView.d.ts.map +0 -1
  314. package/dist/types/components/payos/views/WelcomeBackView.d.ts +0 -34
  315. package/dist/types/components/payos/views/WelcomeBackView.d.ts.map +0 -1
  316. package/dist/types/components/ui/CardBrandIcon.d.ts.map +0 -1
  317. package/dist/types/components/ui/ConfirmDialog.d.ts.map +0 -1
  318. package/dist/types/components/ui/DigitalCard.d.ts.map +0 -1
  319. package/dist/types/components/ui/InfoTooltip.d.ts +0 -8
  320. package/dist/types/components/ui/InfoTooltip.d.ts.map +0 -1
  321. package/dist/types/components/ui/PinInput.d.ts +0 -12
  322. package/dist/types/components/ui/PinInput.d.ts.map +0 -1
  323. package/dist/types/components/ui/button.d.ts.map +0 -1
  324. package/dist/types/components/ui/card.d.ts.map +0 -1
  325. package/dist/types/components/ui/input.d.ts.map +0 -1
  326. package/dist/types/components/ui/label.d.ts.map +0 -1
  327. package/dist/types/components/ui/separator.d.ts.map +0 -1
  328. package/dist/types/drawer.d.ts.map +0 -1
  329. package/dist/types/hooks/index.d.ts +0 -8
  330. package/dist/types/hooks/index.d.ts.map +0 -1
  331. package/dist/types/hooks/useBiometricType.d.ts +0 -21
  332. package/dist/types/hooks/useBiometricType.d.ts.map +0 -1
  333. package/dist/types/hooks/useBodyScrollLock.d.ts.map +0 -1
  334. package/dist/types/hooks/useCardElement.d.ts.map +0 -1
  335. package/dist/types/hooks/useCheckoutFlow.d.ts +0 -29
  336. package/dist/types/hooks/useCheckoutFlow.d.ts.map +0 -1
  337. package/dist/types/hooks/useDrawerState.d.ts +0 -4
  338. package/dist/types/hooks/useDrawerState.d.ts.map +0 -1
  339. package/dist/types/hooks/useLinkAuth.d.ts.map +0 -1
  340. package/dist/types/hooks/useLinkDeviceAuthPoll.d.ts.map +0 -1
  341. package/dist/types/hooks/useLinkMethods.d.ts.map +0 -1
  342. package/dist/types/hooks/useLinkSession.d.ts +0 -81
  343. package/dist/types/hooks/useLinkSession.d.ts.map +0 -1
  344. package/dist/types/hooks/useLinkSpendStatusPoll.d.ts +0 -28
  345. package/dist/types/hooks/useLinkSpendStatusPoll.d.ts.map +0 -1
  346. package/dist/types/hooks/usePasskeySDK.d.ts.map +0 -1
  347. package/dist/types/hooks/useSession.d.ts +0 -87
  348. package/dist/types/hooks/useSession.d.ts.map +0 -1
  349. package/dist/types/hooks/useVisualViewport.d.ts.map +0 -1
  350. package/dist/types/index.d.ts.map +0 -1
  351. package/dist/types/lib/theme.d.ts +0 -53
  352. package/dist/types/lib/theme.d.ts.map +0 -1
  353. package/dist/types/lib/utils.d.ts +0 -3
  354. package/dist/types/lib/utils.d.ts.map +0 -1
  355. package/dist/types/mocks/index.d.ts +0 -3
  356. package/dist/types/mocks/index.d.ts.map +0 -1
  357. package/dist/types/mocks/mockCheckoutFlow.d.ts +0 -25
  358. package/dist/types/mocks/mockCheckoutFlow.d.ts.map +0 -1
  359. package/dist/types/mocks/mockData.d.ts +0 -6
  360. package/dist/types/mocks/mockData.d.ts.map +0 -1
  361. package/dist/types/mocks/mockSessionData.d.ts +0 -38
  362. package/dist/types/mocks/mockSessionData.d.ts.map +0 -1
  363. package/dist/types/order.d.ts.map +0 -1
  364. package/dist/types/payment.d.ts +0 -55
  365. package/dist/types/payment.d.ts.map +0 -1
  366. package/dist/types/services/apiService.d.ts +0 -406
  367. package/dist/types/services/apiService.d.ts.map +0 -1
  368. package/dist/types/services/linkTokenService.d.ts +0 -7
  369. package/dist/types/services/linkTokenService.d.ts.map +0 -1
  370. package/dist/types/services/mockSessionService.d.ts +0 -65
  371. package/dist/types/services/mockSessionService.d.ts.map +0 -1
  372. package/dist/types/session.d.ts.map +0 -1
  373. package/dist/types/types/cardElement.d.ts +0 -157
  374. package/dist/types/types/cardElement.d.ts.map +0 -1
  375. package/dist/types/types/drawer.d.ts +0 -33
  376. package/dist/types/types/drawer.d.ts.map +0 -1
  377. package/dist/types/types/index.d.ts.map +0 -1
  378. package/dist/types/types/order.d.ts +0 -25
  379. package/dist/types/types/order.d.ts.map +0 -1
  380. package/dist/types/types/payment.d.ts.map +0 -1
  381. package/dist/types/types/session.d.ts +0 -165
  382. package/dist/types/types/session.d.ts.map +0 -1
  383. package/dist/types/utils/credentialStatus.d.ts.map +0 -1
  384. package/dist/types/utils/deviceFingerprint.d.ts +0 -27
  385. package/dist/types/utils/deviceFingerprint.d.ts.map +0 -1
  386. package/dist/types/utils/environment.d.ts.map +0 -1
  387. package/dist/types/utils/formatting.d.ts +0 -41
  388. package/dist/types/utils/formatting.d.ts.map +0 -1
  389. package/dist/types/utils/index.d.ts +0 -4
  390. package/dist/types/utils/index.d.ts.map +0 -1
  391. package/dist/types/utils/linkFormat.d.ts +0 -17
  392. package/dist/types/utils/linkFormat.d.ts.map +0 -1
  393. package/dist/types/utils/linkPopup.d.ts.map +0 -1
  394. package/dist/types/utils/selectCard.d.ts.map +0 -1
  395. package/dist/types/utils/text.d.ts.map +0 -1
  396. package/dist/types/utils/validation.d.ts +0 -90
  397. package/dist/types/utils/validation.d.ts.map +0 -1
  398. package/dist/utils/credentialStatus.d.ts +0 -8
  399. package/dist/utils/credentialStatus.d.ts.map +0 -1
  400. package/dist/utils/deviceFingerprint.d.ts.map +0 -1
  401. package/dist/utils/environment.d.ts +0 -22
  402. package/dist/utils/environment.d.ts.map +0 -1
  403. package/dist/utils/formatting.d.ts.map +0 -1
  404. package/dist/utils/index.d.ts +0 -4
  405. package/dist/utils/index.d.ts.map +0 -1
  406. package/dist/utils/linkFormat.d.ts +0 -17
  407. package/dist/utils/linkFormat.d.ts.map +0 -1
  408. package/dist/utils/linkPopup.d.ts +0 -19
  409. package/dist/utils/linkPopup.d.ts.map +0 -1
  410. package/dist/utils/selectCard.d.ts +0 -18
  411. package/dist/utils/selectCard.d.ts.map +0 -1
  412. package/dist/utils/text.d.ts +0 -12
  413. package/dist/utils/text.d.ts.map +0 -1
  414. package/dist/utils/validation.d.ts.map +0 -1
@@ -1,116 +0,0 @@
1
- import * as React from "react";
2
- import type { SavedCard } from "../../../types";
3
- /**
4
- * MethodListView - Full card list with radio-style selection
5
- *
6
- * **High-Density Design:**
7
- * - iOS-style navigation header with back button
8
- * - List of all saved cards using PaymentMethodRow
9
- * - One-tap selection: clicking immediately returns to CheckoutView
10
- * - "Add new card" merged INTO list as final row (not floating footer)
11
- * - Card Stack Architecture pattern
12
- * - Optional delete functionality with swipe-to-delete gesture
13
- *
14
- * Navigation Flow:
15
- * - Back button → returns to CheckoutView
16
- * - Selecting a card → immediately returns to CheckoutView
17
- * - "Add new card" → navigates to AddCardView
18
- */
19
- /** Lightweight representation of a Link-held payment method */
20
- export interface LinkWalletMethod {
21
- id: string;
22
- brand?: string;
23
- last4?: string;
24
- expMonth?: number;
25
- expYear?: number;
26
- label?: string;
27
- isDefault?: boolean;
28
- type?: 'card' | 'bank_account';
29
- bankName?: string;
30
- }
31
- /**
32
- * Optional Link payment-source row rendered alongside saved cards.
33
- * Set when the merchant org has Link enabled AND the wallet user has a LinkConnection.
34
- */
35
- export interface MethodListLinkOption {
36
- /** Whether the user currently has an active Link connection */
37
- connected: boolean;
38
- /** Short subtitle shown when connected without a methods list */
39
- subtitle?: string;
40
- /** Fired when the connect CTA (big button) is tapped */
41
- onSelect: () => void;
42
- /** Whether the connect CTA is currently selected */
43
- selected: boolean;
44
- /** Link-held methods. When present + connected, renders as inline rows with a link badge. */
45
- methods?: LinkWalletMethod[];
46
- /** ID of the currently-selected Link method (for row highlight) */
47
- selectedMethodId?: string | null;
48
- /** Fired when the user taps a specific Link-held method row */
49
- onSelectMethod?: (methodId: string) => void;
50
- /** Fired when the user taps "Sign out of Link" */
51
- onSignOut?: () => void;
52
- /**
53
- * Layout for Link when connected:
54
- * - "inline" (default): Link cards render as rows alongside saved cards with a badge
55
- * - "button": always render the big "Pay with Link" CTA regardless of connection state
56
- */
57
- displayMode?: 'inline' | 'button';
58
- /**
59
- * Fired when the user taps "Manage third-party methods" row (inline mode only).
60
- * Implementations should navigate to a dedicated management view with sign-out + reconnect.
61
- */
62
- onManageThirdParty?: () => void;
63
- }
64
- interface MethodListViewProps {
65
- /**
66
- * List of saved cards
67
- */
68
- cards: SavedCard[];
69
- /**
70
- * Currently selected card ID
71
- */
72
- selectedCardId: string | null;
73
- /**
74
- * Callback when user selects a card
75
- * Implementation should:
76
- * 1. Update selectedCardId
77
- * 2. Immediately navigate back to CheckoutView (one-tap selection)
78
- */
79
- onSelectCard: (cardId: string) => void;
80
- /**
81
- * Callback when user clicks "Add new card"
82
- * Should navigate to AddCardView
83
- */
84
- onAddNewCard: () => void;
85
- /**
86
- * Optional Link row. When present, renders between saved cards and "Add new card".
87
- * Omit entirely when the merchant or user hasn't enabled Link.
88
- */
89
- linkOption?: MethodListLinkOption;
90
- /**
91
- * Callback when back button is clicked
92
- * Optional — when omitted, the back button is hidden (e.g. setup mode primary view)
93
- */
94
- onBack?: () => void;
95
- /**
96
- * Optional callback when user deletes a card
97
- */
98
- onDeleteCard?: (cardId: string) => void;
99
- /**
100
- * Display mode: 'checkout' shows blue checkmark selection,
101
- * 'setup' shows "Default" text badge on default card
102
- */
103
- mode?: 'checkout' | 'setup';
104
- /**
105
- * Optional callback when user clicks "Done" (setup mode completion)
106
- * When provided, renders a "Done" button below the card list
107
- */
108
- onDone?: () => void;
109
- /**
110
- * Loading state for the Done button
111
- */
112
- isLoading?: boolean;
113
- }
114
- export declare const MethodListView: React.FC<MethodListViewProps>;
115
- export {};
116
- //# sourceMappingURL=MethodListView.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MethodListView.d.ts","sourceRoot":"","sources":["../../../../../src/components/payos/views/MethodListView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAShD;;;;;;;;;;;;;;;GAeG;AAEH,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,MAAM,IAAI,CAAC;IACzB;;;OAGG;IACH,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC;;;OAGG;IACH,IAAI,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC;IAC5B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAiBD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAiTxD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"OTPView.d.ts","sourceRoot":"","sources":["../../../../../src/components/payos/views/OTPView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B;;;;;;;;;;;;;;GAcG;AAEH,UAAU,YAAY;IACpB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC;;OAEG;IACH,QAAQ,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CA4H1C,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SuccessView.d.ts","sourceRoot":"","sources":["../../../../../src/components/payos/views/SuccessView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,kBAAkB,EAAqB,gBAAgB,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAiClH,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,aAAa,CAAC,EAAE,kBAAkB,CAAC;IACnC;;OAEG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,YAAY,CAAC;IAChC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC;IACpC;;;OAGG;IACH,IAAI,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC;IAC5B;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B;;OAEG;IACH,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAkHlD,CAAC"}
@@ -1,16 +0,0 @@
1
- import * as React from "react";
2
- /**
3
- * VisaIframeView - Visa Passkey SDK Iframe Container
4
- *
5
- * Features:
6
- * - Container div for Visa VTS SDK iframe
7
- * - Shown after OTP validation succeeds
8
- * - SDK injects iframe into the container via showIframe()
9
- *
10
- * Design Pattern: Dedicated view for Visa passkey registration UI
11
- */
12
- export interface VisaIframeViewProps {
13
- onCancel?: () => void;
14
- }
15
- export declare const VisaIframeView: React.FC<VisaIframeViewProps>;
16
- //# sourceMappingURL=VisaIframeView.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VisaIframeView.d.ts","sourceRoot":"","sources":["../../../../../src/components/payos/views/VisaIframeView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B;;;;;;;;;GASG;AAEH,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAkBxD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"VisaMethodView.d.ts","sourceRoot":"","sources":["../../../../../src/components/payos/views/VisaMethodView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B;;;;;;;;GAQG;AAGH,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,sBAAsB,EAAE,CAAC;IAClC,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAgIxD,CAAC"}
@@ -1,45 +0,0 @@
1
- import * as React from "react";
2
- export interface VisaOtpViewProps {
3
- /**
4
- * Selected method description (e.g., "(***) ***-1234")
5
- */
6
- methodDescription: string;
7
- /**
8
- * Current OTP value
9
- */
10
- otp: string;
11
- /**
12
- * OTP change handler
13
- */
14
- onOtpChange: (otp: string) => void;
15
- /**
16
- * Verify handler
17
- */
18
- onVerify: () => void;
19
- /**
20
- * Back handler (return to VisaMethodView)
21
- */
22
- onBack: () => void;
23
- /**
24
- * Resend handler
25
- */
26
- onResend?: () => void;
27
- /**
28
- * Handler for "verify another way" action (when locked out)
29
- */
30
- onVerifyAnotherWay?: () => void;
31
- /**
32
- * Loading state
33
- */
34
- isLoading?: boolean;
35
- /**
36
- * Error message
37
- */
38
- error?: string;
39
- /**
40
- * Whether user can retry OTP entry (false = locked out)
41
- */
42
- canRetry?: boolean;
43
- }
44
- export declare const VisaOtpView: React.FC<VisaOtpViewProps>;
45
- //# sourceMappingURL=VisaOtpView.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VisaOtpView.d.ts","sourceRoot":"","sources":["../../../../../src/components/payos/views/VisaOtpView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAmB/B,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC;;OAEG;IACH,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA+HlD,CAAC"}
@@ -1,34 +0,0 @@
1
- import * as React from "react";
2
- /**
3
- * WelcomeBackView - Profile Selection / Known User Identity Confirmation
4
- *
5
- * Features:
6
- * - "Welcome back!" headline for warm greeting
7
- * - Identity Tile: Compact card showing phone number with verified indicator
8
- * - User icon in rounded gray container (non-floaty design)
9
- * - Clean vertical flow: Headline → Tile → Button → Subtext
10
- * - "Not you?" link for account switching
11
- *
12
- * Design Pattern: "Sandwich" layout with subtext below button for better hierarchy
13
- */
14
- interface WelcomeBackViewProps {
15
- /**
16
- * Prefilled phone number (formatted)
17
- */
18
- phone: string;
19
- /**
20
- * Continue handler (sends SMS code)
21
- */
22
- onContinue: () => void;
23
- /**
24
- * Switch account handler (clears prefill, goes to IdentityView)
25
- */
26
- onSwitchAccount: () => void;
27
- /**
28
- * Whether continue action is loading
29
- */
30
- isLoading?: boolean;
31
- }
32
- export declare const WelcomeBackView: React.FC<WelcomeBackViewProps>;
33
- export {};
34
- //# sourceMappingURL=WelcomeBackView.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WelcomeBackView.d.ts","sourceRoot":"","sources":["../../../../../src/components/payos/views/WelcomeBackView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B;;;;;;;;;;;GAWG;AAEH,UAAU,oBAAoB;IAC5B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB;;OAEG;IACH,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAsE1D,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"CardBrandIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/CardBrandIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAErD,UAAU,kBAAkB;IAC1B,KAAK,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA6DtD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ConfirmDialog.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/ConfirmDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B;;;;;;;;;GASG;AAEH,UAAU,kBAAkB;IAC1B,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CAChC;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAyEtD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DigitalCard.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/DigitalCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,gBAAgB;IAC/B,0CAA0C;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mBAAmB;IACnB,OAAO,EAAE,MAAM,GAAG,YAAY,CAAC;IAC/B,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAeD,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAoElD,CAAC"}
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- interface InfoTooltipProps {
3
- content: string;
4
- className?: string;
5
- }
6
- export declare const InfoTooltip: React.FC<InfoTooltipProps>;
7
- export {};
8
- //# sourceMappingURL=InfoTooltip.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"InfoTooltip.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/InfoTooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,UAAU,gBAAgB;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA2BlD,CAAC"}
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- interface PinInputProps {
3
- length: number;
4
- value: string;
5
- onChange: (value: string) => void;
6
- onComplete?: () => void;
7
- error?: boolean;
8
- autoFocus?: boolean;
9
- }
10
- export declare const PinInput: React.FC<PinInputProps>;
11
- export {};
12
- //# sourceMappingURL=PinInput.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PinInput.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/PinInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAEjD,UAAU,aAAa;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAmF5C,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAKlE,QAAA,MAAM,cAAc;;;mFA4BnB,CAAC;AAEF,MAAM,WAAW,WACf,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EACnD,YAAY,CAAC,OAAO,cAAc,CAAC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,QAAA,MAAM,MAAM,uFAuBX,CAAC;AAGF,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,YAAY;;mFAcjB,CAAC;AAEF,MAAM,WAAW,SACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAC1C,YAAY,CAAC,OAAO,YAAY,CAAC;CAAG;AAExC,QAAA,MAAM,IAAI,kFAQT,CAAC;AAGF,QAAA,MAAM,UAAU,6GASd,CAAC;AAGH,QAAA,MAAM,SAAS,uHAYb,CAAC;AAGH,QAAA,MAAM,eAAe,yHASnB,CAAC;AAGH,QAAA,MAAM,WAAW,6GAKf,CAAC;AAGH,QAAA,MAAM,UAAU,6GASd,CAAC;AAGH,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,eAAe,EAAE,WAAW,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,UACf,SAAQ,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC;CAAG;AAExD,QAAA,MAAM,KAAK,qFAeV,CAAC;AAGF,OAAO,EAAE,KAAK,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAQlE,QAAA,MAAM,KAAK,iQAUT,CAAC;AAGH,OAAO,EAAE,KAAK,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"separator.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/separator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAIhE,QAAA,MAAM,SAAS,6JAoBd,CAAC;AAGF,OAAO,EAAE,SAAS,EAAE,CAAC"}
@@ -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,8 +0,0 @@
1
- export * from './useCheckoutFlow';
2
- export * from './useDrawerState';
3
- export * from './useVisualViewport';
4
- export * from './useBodyScrollLock';
5
- export * from './useCardElement';
6
- export * from './useSession';
7
- export * from './usePasskeySDK';
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC"}
@@ -1,21 +0,0 @@
1
- import { type LucideIcon } from 'lucide-react';
2
- export type BiometricType = 'faceId' | 'touchId' | 'windowsHello' | 'generic';
3
- export interface BiometricInfo {
4
- /** Button text for the biometric action */
5
- text: string;
6
- /** Lucide icon component to display */
7
- icon: LucideIcon;
8
- /** Detected biometric type */
9
- type: BiometricType;
10
- }
11
- /**
12
- * useBiometricType - Detects device biometric capabilities
13
- *
14
- * Returns appropriate button text and icon based on device:
15
- * - iPhone/iPad → "Enable Face ID" with Smile icon
16
- * - Mac → "Enable Touch ID" with Fingerprint icon
17
- * - Windows → "Enable Windows Hello" with User icon
18
- * - Default → "Enable Secure Access" with Lock icon
19
- */
20
- export declare function useBiometricType(): BiometricInfo;
21
- //# sourceMappingURL=useBiometricType.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useBiometricType.d.ts","sourceRoot":"","sources":["../../../src/hooks/useBiometricType.ts"],"names":[],"mappings":"AACA,OAAO,EAAkC,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/E,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,SAAS,GAAG,cAAc,GAAG,SAAS,CAAC;AAE9E,MAAM,WAAW,aAAa;IAC5B,2CAA2C;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,uCAAuC;IACvC,IAAI,EAAE,UAAU,CAAC;IACjB,8BAA8B;IAC9B,IAAI,EAAE,aAAa,CAAC;CACrB;AAED;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,IAAI,aAAa,CA2BhD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useBodyScrollLock.d.ts","sourceRoot":"","sources":["../../../src/hooks/useBodyScrollLock.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ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MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IAE9C;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAE1B;;OAEG;IACH,UAAU,EAAE,0BAA0B,GAAG,IAAI,CAAC;IAE9C;;OAEG;IACH,MAAM,EAAE,MAAM,IAAI,CAAC;IAEnB;;;OAGG;IACH,SAAS,EAAE,CAAC,MAAM,EAAE,wBAAwB,KAAK,IAAI,CAAC;IAEtD;;OAEG;IACH,YAAY,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,IAAI,CAAC;CACnD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,qBAAqB,GAAG,oBAAoB,CA+KnF;AAGD,YAAY,EACV,kBAAkB,EAClB,iBAAiB,EACjB,wBAAwB,EACxB,yBAAyB,EACzB,sBAAsB,EACtB,yBAAyB,EACzB,0BAA0B,GAC3B,CAAC"}
@@ -1,29 +0,0 @@
1
- import type { CheckoutState, CardData, BillingAddress, SavedCard, PaymentView } from '../types';
2
- interface UseCheckoutFlowProps {
3
- mode: 'standard' | 'agent';
4
- amount: number;
5
- savedCards?: SavedCard[];
6
- onSuccess?: (result: any) => void;
7
- onError?: (error: any) => void;
8
- }
9
- export declare function useCheckoutFlow({ mode, amount, savedCards, onSuccess, onError }: UseCheckoutFlowProps): {
10
- state: CheckoutState;
11
- selectedCardId: string | null;
12
- paymentView: PaymentView;
13
- cvc: string;
14
- setCvc: import("react").Dispatch<import("react").SetStateAction<string>>;
15
- submitPhone: (phone: string) => Promise<void>;
16
- verifyOTP: (otp: string) => Promise<void>;
17
- submitPayment: (email: string, cardData: CardData, billingAddress: BillingAddress | null) => Promise<void>;
18
- selectCard: (cardId: string) => void;
19
- addCard: (cardData: CardData) => Promise<void>;
20
- logout: () => void;
21
- setError: (error: string | null) => void;
22
- showMethodList: () => void;
23
- showAddCard: () => void;
24
- returnToCheckout: () => void;
25
- skipToPayment: () => void;
26
- completeAgentRegistration: () => void;
27
- };
28
- export {};
29
- //# sourceMappingURL=useCheckoutFlow.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useCheckoutFlow.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCheckoutFlow.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,cAAc,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGhG,UAAU,oBAAoB;IAC5B,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;IACzB,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,CAAC;IAClC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;CAChC;AAED,wBAAgB,eAAe,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,oBAAoB;;;;;;yBAkCtD,MAAM;qBAmBV,MAAM;2BAmCvC,MAAM,YACH,QAAQ,kBACF,cAAc,GAAG,IAAI;yBAuCC,MAAM;wBAOD,QAAQ;;sBA/GhB,MAAM,GAAG,IAAI;;;;;;EAuOnD"}
@@ -1,4 +0,0 @@
1
- export declare function useDrawerState(open: boolean, onClose: () => void): {
2
- isMobile: boolean;
3
- };
4
- //# sourceMappingURL=useDrawerState.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useDrawerState.d.ts","sourceRoot":"","sources":["../../../src/hooks/useDrawerState.ts"],"names":[],"mappings":"AAEA,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI;;EA6ChE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useLinkAuth.d.ts","sourceRoot":"","sources":["../../../src/hooks/useLinkAuth.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAkB,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExE,UAAU,eAAe;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,iEAAiE;IACjE,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,UAAU,iBAAiB;IACzB,MAAM,EAAE,cAAc,GAAG,IAAI,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9B;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,eAAe,GAAG,iBAAiB,CA8BpE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useLinkDeviceAuthPoll.d.ts","sourceRoot":"","sources":["../../../src/hooks/useLinkDeviceAuthPoll.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EAAgB,gBAAgB,EAAkB,MAAM,wBAAwB,CAAC;AAExF,UAAU,yBAAyB;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,+CAA+C;IAC/C,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,SAAS,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,4EAA4E;IAC5E,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;CAC3C;AAUD,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,yBAAyB,GAAG,IAAI,CAmD3E"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useLinkMethods.d.ts","sourceRoot":"","sources":["../../../src/hooks/useLinkMethods.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD,UAAU,kBAAkB;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,mDAAmD;IACnD,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,UAAU,oBAAoB;IAC5B,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,SAAS,EAAE,SAAS,EAAE,CAAC;IACvB,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9B;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,kBAAkB,GAAG,oBAAoB,CAkD7E"}
@@ -1,81 +0,0 @@
1
- /**
2
- * useLinkSession — orchestrates the Stripe Link flow for PaymentSheet.
3
- *
4
- * Owns Link-specific state (auth status, current spend request, device-auth
5
- * context, error reasons) and exposes actions the views can call without
6
- * touching apiService or popup management directly. Wraps the focused
7
- * Link workflow hooks (useLinkAuth, useLinkMethods, useLinkDeviceAuthPoll,
8
- * useLinkSpendStatusPoll).
9
- *
10
- * Lives outside useSession on purpose: useSession is already large and
11
- * Link is a self-contained alternative payment rail. PaymentSheet composes
12
- * the two.
13
- */
14
- import { LinkAuthStatus, LinkSpendCreateBody, LinkSpendResponse } from '../services/apiService';
15
- import type { SavedCard } from '../types/session';
16
- export type LinkPhase = 'idle' | 'connect' | 'loading' | 'checkout' | 'denied' | 'success' | 'manage';
17
- export interface DeviceAuthContext {
18
- passphrase: string;
19
- verificationUrl: string;
20
- verificationUrlComplete: string;
21
- expiresAt: number;
22
- }
23
- export interface UseLinkSessionArgs {
24
- baseUrl: string;
25
- token: string;
26
- walletUserId: string | null;
27
- organizationId?: string;
28
- /** Idle by default; PaymentSheet flips this when entering a Link phase. */
29
- enabled?: boolean;
30
- /** When true, spend requests run as test transactions (no money moves). */
31
- testMode?: boolean;
32
- /**
33
- * Merchant-supplied description shown to the user in Stripe's spend
34
- * approval popup. Stripe requires min 100 characters. If shorter or
35
- * omitted, backend generates a default.
36
- */
37
- spendContext?: string;
38
- /**
39
- * Called after Stripe Link approves the spend. Caller is expected to
40
- * trigger credential generation (e.g., session.complete()). Hook then
41
- * waits for spend status='consumed' before transitioning to 'success'.
42
- */
43
- onSpendApproved?: (spend: LinkSpendResponse | null) => Promise<void> | void;
44
- }
45
- export interface UseLinkSessionReturn {
46
- phase: LinkPhase;
47
- authStatus: LinkAuthStatus | null;
48
- authLoading: boolean;
49
- authError: Error | null;
50
- linkCards: SavedCard[];
51
- payosCards: SavedCard[];
52
- allCards: SavedCard[];
53
- linkSyncStatus: string | null;
54
- methodsLoading: boolean;
55
- methodsError: Error | null;
56
- selectedLinkMethodId: string | null;
57
- setSelectedLinkMethodId: (id: string | null) => void;
58
- /** Inline error from a failed spend/create call (rate limit, validation, etc.). */
59
- spendError: string | null;
60
- clearSpendError: () => void;
61
- currentSpend: LinkSpendResponse | null;
62
- deviceAuthContext: DeviceAuthContext | null;
63
- deniedReason: string | null;
64
- startLinkConnect: () => Promise<void>;
65
- cancelLinkConnect: () => void;
66
- approveLinkSpend: (body: LinkSpendCreateBody) => Promise<void>;
67
- reopenLinkSpendApproval: () => void;
68
- cancelLinkSpend: () => void;
69
- retryApprovedSpend: () => Promise<void>;
70
- retryDenied: () => Promise<void>;
71
- signOutLink: () => Promise<void>;
72
- goToManage: () => void;
73
- goToCheckout: () => void;
74
- exitManage: () => void;
75
- exitSuccess: () => void;
76
- reset: () => void;
77
- refreshAuth: () => Promise<void>;
78
- refreshMethods: () => Promise<void>;
79
- }
80
- export declare function useLinkSession(args: UseLinkSessionArgs): UseLinkSessionReturn;
81
- //# sourceMappingURL=useLinkSession.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useLinkSession.d.ts","sourceRoot":"","sources":["../../../src/hooks/useLinkSession.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAQH,OAAO,EAIL,cAAc,EAEd,mBAAmB,EACnB,iBAAiB,EAClB,MAAM,wBAAwB,CAAC;AAKhC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,MAAM,SAAS,GACjB,MAAM,GACN,SAAS,GACT,SAAS,GACT,UAAU,GACV,QAAQ,GACR,SAAS,GACT,QAAQ,CAAC;AAEb,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,uBAAuB,EAAE,MAAM,CAAC;IAChC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,2EAA2E;IAC3E,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH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AW,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACjC,WAAW,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACjC,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,KAAK,EAAE,MAAM,IAAI,CAAC;IAGlB,WAAW,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACjC,cAAc,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CACrC;AAQD,wBAAgB,cAAc,CAAC,IAAI,EAAE,kBAAkB,GAAG,oBAAoB,CA6U7E"}
@@ -1,28 +0,0 @@
1
- /**
2
- * useLinkSpendStatusPoll — poll /spend/:id/poll until approved or terminal.
3
- *
4
- * Drives the LinkCheckoutView's "approval popup is open" → "approved" UX.
5
- * Same shape as useLinkDeviceAuthPoll but the terminal-set is different
6
- * because Link spend state machines have one extra (`consumed`).
7
- */
8
- import { LinkSpendPollResponse } from '../services/apiService';
9
- interface UseLinkSpendStatusPollArgs {
10
- baseUrl: string;
11
- token: string;
12
- walletUserId: string | null;
13
- spendRowId: string | null;
14
- /** Start polling when true; stops on false (e.g. user closes the popup). */
15
- enabled: boolean;
16
- intervalMs?: number;
17
- onApproved?: () => void;
18
- onDenied?: (error?: string) => void;
19
- onExpired?: (error?: string) => void;
20
- onFailed?: (error?: string) => void;
21
- /** Approved → consumed when the credential is generated. Usually the
22
- * parent stops polling on `approved` and lets credential generation run. */
23
- onConsumed?: () => void;
24
- onTick?: (resp: LinkSpendPollResponse) => void;
25
- }
26
- export declare function useLinkSpendStatusPoll(args: UseLinkSpendStatusPollArgs): void;
27
- export {};
28
- //# sourceMappingURL=useLinkSpendStatusPoll.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useLinkSpendStatusPoll.d.ts","sourceRoot":"","sources":["../../../src/hooks/useLinkSpendStatusPoll.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAEL,qBAAqB,EAEtB,MAAM,wBAAwB,CAAC;AAEhC,UAAU,0BAA0B;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,4EAA4E;IAC5E,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,SAAS,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC;iFAC6E;IAC7E,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,qBAAqB,KAAK,IAAI,CAAC;CAChD;AAWD,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,0BAA0B,GAAG,IAAI,CA2E7E"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"usePasskeySDK.d.ts","sourceRoot":"","sources":["../../../src/hooks/usePasskeySDK.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EACL,YAAY,EACZ,cAAc,EACd,aAAa,EACb,eAAe,EAChB,MAAM,6BAA6B,CAAC;AAErC;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,2DAA2D;IAC3D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