@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,60 +0,0 @@
1
- import * as React from "react";
2
- import type { SavedCard } from "../../types";
3
- /**
4
- * ActiveCardWidget - The "Hero" card component for CheckoutView
5
- *
6
- * Combines card display + CVC entry in a unified widget with two sections:
7
- * - Top Half: Card display (brand icon + last4 + expiry) with "Change" link
8
- * - Bottom Half: Security code (CVC) input with subtle background contrast
9
- *
10
- * **Design System (World-Class Polish):**
11
- * - Unified container with internal divider
12
- * - Top section: white background
13
- * - Bottom section: bg-gray-50/50 for subtle contrast
14
- * - CVC input:
15
- * - Placeholder: "123" (not "•••") for clarity
16
- * - Styling: bg-white, border-gray-300, shadow-sm (looks like input, not button)
17
- * - Centered, bold text, focus:border-black
18
- * - "Change" link: text-blue-600 for primary action
19
- *
20
- * This follows the "Apple" approach of combining related inputs into a single
21
- * card container rather than separating them.
22
- */
23
- interface ActiveCardWidgetProps {
24
- /**
25
- * The saved card to display
26
- */
27
- card: SavedCard;
28
- /**
29
- * Current CVC value
30
- */
31
- cvc: string;
32
- /**
33
- * CVC change handler
34
- */
35
- onCvcChange: (cvc: string) => void;
36
- /**
37
- * Handler when "Change" button is clicked (opens MethodListView).
38
- * When undefined, the "Change" button is hidden.
39
- */
40
- onChangeClick?: () => void;
41
- /**
42
- * Optional error message for CVC
43
- */
44
- error?: string;
45
- /**
46
- * Disable CVC input
47
- */
48
- disabled?: boolean;
49
- /**
50
- * Hide security code section (for agent mode where passkey replaces CVC)
51
- */
52
- hideSecurityCode?: boolean;
53
- /**
54
- * Additional CSS classes for the outer container
55
- */
56
- className?: string;
57
- }
58
- export declare const ActiveCardWidget: React.FC<ActiveCardWidgetProps>;
59
- export {};
60
- //# sourceMappingURL=ActiveCardWidget.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ActiveCardWidget.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/ActiveCardWidget.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,UAAU,qBAAqB;IAC7B;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAsL5D,CAAC"}
@@ -1,24 +0,0 @@
1
- import React from 'react';
2
- import type { UsePasskeySDKReturn } from '../../hooks/usePasskeySDK';
3
- import type { RegistrationSubPhase } from '../../hooks/useSession';
4
- import type { CheckoutSession } from '../../types/session';
5
- interface AgentRegistrationFlowProps {
6
- session: CheckoutSession;
7
- registrationSubPhase: RegistrationSubPhase;
8
- passkey: UsePasskeySDKReturn;
9
- debug: boolean;
10
- localError: string | null;
11
- visaOtp: string;
12
- setVisaOtp: React.Dispatch<React.SetStateAction<string>>;
13
- setLocalError: React.Dispatch<React.SetStateAction<string | null>>;
14
- setRegistrationSubPhase: (subPhase: RegistrationSubPhase) => void;
15
- onCreatePasskey: () => void;
16
- onSkipRegistration: () => void;
17
- onVisaMethodSelect: (methodId: string) => void;
18
- onVisaOtpVerify: () => void;
19
- onVisaIframeCancel: () => void;
20
- onBackToCheckout: () => void;
21
- }
22
- export declare function AgentRegistrationFlow({ session, registrationSubPhase, passkey, debug, localError, visaOtp, setVisaOtp, setLocalError, setRegistrationSubPhase, onCreatePasskey, onSkipRegistration, onVisaMethodSelect, onVisaOtpVerify, onVisaIframeCancel, onBackToCheckout, }: AgentRegistrationFlowProps): import("react/jsx-runtime").JSX.Element | null;
23
- export {};
24
- //# sourceMappingURL=AgentRegistrationFlow.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AgentRegistrationFlow.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/Ag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B"}
@@ -1,41 +0,0 @@
1
- /**
2
- * ConnectStripeLinkButton — onboarding-only Link account connection CTA.
3
- *
4
- * Unlike PayWithLinkButton, this component does not create a spend approval
5
- * and does not require a payment intent. It only connects the wallet user's
6
- * Stripe Link account, syncs Link cards into PayOS saved-card rows, and
7
- * returns those rows to the caller.
8
- */
9
- import type { SavedCard } from '../../types/session';
10
- import { type PayOSThemeMode } from './themeMode';
11
- export interface ConnectStripeLinkResult {
12
- cards: SavedCard[];
13
- linkCards: SavedCard[];
14
- payosCards: SavedCard[];
15
- linkSyncStatus: string | null;
16
- }
17
- export interface ConnectStripeLinkButtonProps {
18
- /** API base URL, same one used for CardElement / PaymentSheet. */
19
- apiBaseUrl: string;
20
- /** Merchant link token (Bearer). */
21
- sessionSecret: string;
22
- /** Wallet user identifier after wallet-user authentication. */
23
- walletUserId: string;
24
- /** Originating org for Link connection analytics (optional). */
25
- organizationId?: string;
26
- /** Called after Link auth is approved and wallet cards have synced. */
27
- onLinked?: (result: ConnectStripeLinkResult) => Promise<void> | void;
28
- /** Called when onLinked throws or rejects. Link connection still succeeded. */
29
- onError?: (error: Error) => void;
30
- /** Called when the user denies, expires, or cannot complete Link auth. */
31
- onDenied?: (reason: string) => void;
32
- /** Optional className for the trigger button. */
33
- className?: string;
34
- /** Optional label override. Default: "Connect with". */
35
- label?: string;
36
- /** Theme preset for the standalone modal. Defaults to host page theme. */
37
- theme?: PayOSThemeMode;
38
- }
39
- export declare function ConnectStripeLinkButton(props: ConnectStripeLinkButtonProps): import("react/jsx-runtime").JSX.Element;
40
- export default ConnectStripeLinkButton;
41
- //# sourceMappingURL=ConnectStripeLinkButton.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ConnectStripeLinkButton.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/ConnectStripeLinkButton.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAOrD,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,aAAa,CAAC;AAErB,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,SAAS,EAAE,SAAS,EAAE,CAAC;IACvB,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED,MAAM,WAAW,4BAA4B;IAC3C,kEAAkE;IAClE,UAAU,EAAE,MAAM,CAAC;IACnB,oCAAoC;IACpC,aAAa,EAAE,MAAM,CAAC;IACtB,+DAA+D;IAC/D,YAAY,EAAE,MAAM,CAAC;IACrB,gEAAgE;IAChE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,uEAAuE;IACvE,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,uBAAuB,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IACrE,+EAA+E;IAC/E,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wDAAwD;IACxD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0EAA0E;IAC1E,KAAK,CAAC,EAAE,cAAc,CAAC;CACxB;AAWD,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,4BAA4B,2CA+O1E;AAED,eAAe,uBAAuB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"IdentityVerificationFlow.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/IdentityVerificationFlow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,KAAK,WAAW,EAAa,MAAM,eAAe,CAAC;AAE5D,UAAU,6BAA6B;IACrC,IAAI,EAAE,UAAU,GAAG,KAAK,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IAC7D,eAAe,EAAE,WAAW,CAAC;IAC7B,kBAAkB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC,CAAC;IACtE,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACrD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,WAAW,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,wBAAgB,wBAAwB,CAAC,EACvC,IAAI,EACJ,WAAW,EACX,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,GAAG,EACH,MAAM,EACN,YAAY,EACZ,WAAW,EACX,OAAO,EACP,WAAW,EACX,cAAc,EACd,UAAU,EACV,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,WAAW,EACX,WAAW,EACX,WAAW,GACZ,EAAE,6BAA6B,2CAyC/B"}
@@ -1,11 +0,0 @@
1
- import type { UseLinkSessionReturn } from '../../hooks/useLinkSession';
2
- import type { CheckoutSession, Payment } from '../../types/session';
3
- interface LinkPaymentFlowProps {
4
- linkSession: UseLinkSessionReturn;
5
- session: CheckoutSession | null;
6
- linkCheckoutPayment: Payment | null;
7
- approvalDeadline: number | null;
8
- }
9
- export declare function LinkPaymentFlow({ linkSession, session, linkCheckoutPayment, approvalDeadline, }: LinkPaymentFlowProps): import("react/jsx-runtime").JSX.Element;
10
- export {};
11
- //# sourceMappingURL=LinkPaymentFlow.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LinkPaymentFlow.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/LinkPaymentFlow.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAEpE,UAAU,oBAAoB;IAC5B,WAAW,EAAE,oBAAoB,CAAC;IAClC,OAAO,EAAE,eAAe,GAAG,IAAI,CAAC;IAChC,mBAAmB,EAAE,OAAO,GAAG,IAAI,CAAC;IACpC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AAED,wBAAgB,eAAe,CAAC,EAC9B,WAAW,EACX,OAAO,EACP,mBAAmB,EACnB,gBAAgB,GACjB,EAAE,oBAAoB,2CA2BtB"}
@@ -1,19 +0,0 @@
1
- import { type LinkCheckoutSubState } from './views/LinkCheckoutView';
2
- import type { UseLinkSessionReturn } from '../../hooks/useLinkSession';
3
- import type { LinkSpendCreateBody } from '../../services/apiService';
4
- interface LinkSessionContentProps {
5
- linkSession: UseLinkSessionReturn;
6
- approvalDeadline: number | null;
7
- buildSpendBody: (cardId: string) => LinkSpendCreateBody | null;
8
- onCancelConnect?: () => void;
9
- onCancelSpend?: () => void;
10
- onDeniedDismiss?: () => void;
11
- onManageClose?: () => void;
12
- onDisconnect?: () => Promise<void> | void;
13
- approvedSubState?: LinkCheckoutSubState;
14
- approvedErrorSubState?: LinkCheckoutSubState;
15
- showSpendErrors?: boolean;
16
- }
17
- export declare function LinkSessionContent({ linkSession, approvalDeadline, buildSpendBody, onCancelConnect, onCancelSpend, onDeniedDismiss, onManageClose, onDisconnect, approvedSubState, approvedErrorSubState, showSpendErrors, }: LinkSessionContentProps): import("react/jsx-runtime").JSX.Element | null;
18
- export {};
19
- //# sourceMappingURL=LinkSessionContent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LinkSessionContent.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/LinkSessionContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAoB,KAAK,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAIvF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAErE,UAAU,uBAAuB;IAC/B,WAAW,EAAE,oBAAoB,CAAC;IAClC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,mBAAmB,GAAG,IAAI,CAAC;IAC/D,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC1C,gBAAgB,CAAC,EAAE,oBAAoB,CAAC;IACxC,qBAAqB,CAAC,EAAE,oBAAoB,CAAC;IAC7C,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AA8BD,wBAAgB,kBAAkB,CAAC,EACjC,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,aAAa,EACb,eAAe,EACf,aAAa,EACb,YAAY,EACZ,gBAA6B,EAC7B,qBAAkC,EAClC,eAAsB,GACvB,EAAE,uBAAuB,kDAwFzB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"PayOSFooter.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/PayOSFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,WAAW,yFA4BvB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"PayWithLinkButton.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/PayWithLinkButton.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAQH,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,aAAa,CAAC;AAErB,MAAM,WAAW,sBAAsB;IACrC,kEAAkE;IAClE,UAAU,EAAE,MAAM,CAAC;IACnB,oCAAoC;IACpC,aAAa,EAAE,MAAM,CAAC;IACtB,oDAAoD;IACpD,YAAY,EAAE,MAAM,CAAC;IACrB,gDAAgD;IAChD,aAAa,EAAE;QACb,EAAE,EAAE,MAAM,CAAC;QACX,yEAAyE;QACzE,SAAS,EAAE,MAAM,CAAC;QAClB,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,gDAAgD;IAChD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE;QACpB,UAAU,EAAE,MAAM,CAAC;QACnB,eAAe,EAAE,MAAM,CAAC;QACxB,SAAS,EAAE,MAAM,CAAC;KACnB,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC3B,6EAA6E;IAC7E,SAAS,EAAE,CAAC,MAAM,EAAE;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IACpD,sDAAsD;IACtD,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oDAAoD;IACpD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0EAA0E;IAC1E,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,2CAoQ9D;AAED,eAAe,iBAAiB,CAAC"}
@@ -1,53 +0,0 @@
1
- import * as React from "react";
2
- import type { CardBrand } from "../../types";
3
- /**
4
- * PaymentMethodRow - Reusable payment method row for list views
5
- *
6
- * Features:
7
- * - Brand icon + card details (last4, expiry)
8
- * - Hover and active states (tactile physics)
9
- * - Selected state with blue checkmark
10
- * - Designed for list-style payment method selection
11
- *
12
- * Design System:
13
- * - Apple-level tactile feedback (hover:bg-gray-50, active:bg-gray-100)
14
- * - Border dividers between rows (border-b border-gray-100)
15
- * - Clean typography hierarchy
16
- */
17
- interface PaymentMethodRowProps {
18
- /**
19
- * Card last 4 digits
20
- */
21
- last4: string;
22
- /**
23
- * Card brand (visa, mastercard, amex, etc.)
24
- */
25
- brand: CardBrand;
26
- /**
27
- * Expiry in MM/YY format
28
- */
29
- expiry: string;
30
- /**
31
- * URL to card artwork image (optional)
32
- */
33
- cardArtUrl?: string;
34
- /**
35
- * Issuer name (e.g., "Chase", "Wells Fargo")
36
- */
37
- issuerName?: string;
38
- /**
39
- * Whether this row is currently selected
40
- */
41
- selected?: boolean;
42
- /**
43
- * Click handler
44
- */
45
- onClick?: () => void;
46
- /**
47
- * Whether this is the last row (removes bottom border)
48
- */
49
- isLast?: boolean;
50
- }
51
- export declare const PaymentMethodRow: React.FC<PaymentMethodRowProps>;
52
- export {};
53
- //# sourceMappingURL=PaymentMethodRow.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PaymentMethodRow.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/PaymentMethodRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAG7C;;;;;;;;;;;;;GAaG;AAEH,UAAU,qBAAqB;IAC7B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA6D5D,CAAC"}
@@ -1,121 +0,0 @@
1
- import React from 'react';
2
- import { PaymentSheetResult, PaymentSheetError } from '../../types/session';
3
- import type { CardElementBinWarningEvent, CardElementBinWarningRule } from '../../types/cardElement';
4
- import { type PaymentSheetLayout } from './PaymentSheetShell';
5
- import '../../styles/base.css';
6
- export interface PaymentSheetProps {
7
- /**
8
- * Session secret (JWT) for authenticating SDK API calls.
9
- * Obtained from POST /api/sessions/checkout response.
10
- * Contains sessionId in JWT metadata.
11
- */
12
- sessionSecret: string;
13
- open: boolean;
14
- onClose: () => void;
15
- onSuccess: (result: PaymentSheetResult) => void;
16
- onError: (error: PaymentSheetError) => void;
17
- onCancel?: () => void;
18
- accentColor?: string;
19
- /** Organization name to display in the drawer header */
20
- title?: string;
21
- /**
22
- * Layout mode for the payment sheet.
23
- * - "drawer" (default): Side panel / bottom sheet overlay
24
- * - "inline": Renders content directly in the parent container, no overlay
25
- * - "modal": Centered modal overlay with backdrop
26
- */
27
- layout?: PaymentSheetLayout;
28
- /** Environment mode - determines API URL (sandbox.api.payos.ai or api.payos.ai) */
29
- environment?: 'sandbox' | 'production';
30
- /** Override API URL for local development - used for direct SDK calls like passkey, credential gen (e.g., 'http://localhost:3000') */
31
- developmentApiUrl?: string;
32
- /** Backend API URL for CardElement iframe - needed because iframe on Azure can't reach localhost (e.g., ngrok URL) */
33
- cardElementApiUrl?: string;
34
- /** PayOS Link UI URL for CardElement iframe (e.g., purple-grass Azure endpoint) */
35
- cardElementUrl?: string;
36
- /** Enable debug logging */
37
- debug?: boolean;
38
- /** Exit immediately after card is added (no card list). Only applies to setup/onboard sessions. */
39
- exitOnCardAdd?: boolean;
40
- /** Skip automatic credential generation after passkey auth. Merchant calls Generate/Retrieve later. */
41
- skipCredentialGeneration?: boolean;
42
- /** Show "Use shipping address as billing" toggle when payment intent has a shipping address. Defaults to false. */
43
- showShippingAsBilling?: boolean;
44
- /**
45
- * Optional payment-method rails to expose in PaymentSheet. Stripe Link is
46
- * opt-in; when omitted or false, users will not see the "Pay with Link" CTA,
47
- * separator, or third-party-method management entry.
48
- */
49
- paymentMethods?: PaymentSheetPaymentMethods;
50
- /**
51
- * Pre-select a specific card by ID, skipping the card selection screen.
52
- * The card must belong to the wallet user's saved cards or it will be ignored.
53
- */
54
- cardId?: string;
55
- /**
56
- * When true (and a card is selected), automatically trigger passkey/3DS
57
- * authentication without showing the Authorize screen.
58
- * Only applies to agent mode (pay_on_behalf, agent_to_agent, agentic_multi).
59
- * Non-agent checkout requires CVC entry and is not auto-submitted.
60
- * Best used with cardId to skip directly to authentication.
61
- */
62
- skipToAuth?: boolean;
63
- /**
64
- * Hide the embedded layout header (merchant title + amount).
65
- * Only applies to `layout="embedded"` — meant for in-app browser contexts
66
- * where the native app already displays merchant/amount chrome.
67
- */
68
- hideHeader?: boolean;
69
- /**
70
- * Theme preset applied to the CardElement iframe (card add view).
71
- * - `'dark'`: slate dark palette
72
- * - `'black'`: pure black palette
73
- * - `'light'`: default light palette
74
- * - `'auto'`: matches prefers-color-scheme
75
- * User-provided `cardElementStyles` overrides any preset defaults.
76
- */
77
- theme?: 'dark' | 'black' | 'light' | 'auto';
78
- /**
79
- * Custom styles passed through to the CardElement iframe. Merged on top
80
- * of any `theme` preset so partial overrides are possible. See
81
- * CardElementStyles in @payos-inc/payos-react for the full shape.
82
- */
83
- cardElementStyles?: Record<string, any>;
84
- /**
85
- * BIN/IIN values that should emit a non-blocking warning from the
86
- * CardElement when secure field BIN metadata is available.
87
- */
88
- binsWarning?: CardElementBinWarningRule[];
89
- /**
90
- * Fired when CardElement detects or clears a configured BIN/IIN warning.
91
- * A null event means the returned BIN metadata no longer matches a warning.
92
- */
93
- onBinWarning?: (event: CardElementBinWarningEvent | null) => void;
94
- }
95
- export interface StripeLinkPaymentMethodConfig {
96
- /** Enables Stripe Link in PaymentSheet. Defaults to true when an object is provided. */
97
- enabled?: boolean;
98
- /**
99
- * When true, Stripe Link spend requests run as test transactions — Stripe
100
- * processes the approval flow normally but no money moves. Use in dev/test
101
- * environments only. Defaults to false.
102
- */
103
- testMode?: boolean;
104
- /**
105
- * Description shown to the user in Stripe Link's spend-approval popup.
106
- * Stripe requires min 100 characters. If shorter or omitted, backend
107
- * generates a generic default describing the merchant + amount.
108
- */
109
- spendContext?: string;
110
- /**
111
- * Automatically enters the Stripe Link checkout flow once the wallet user
112
- * reaches PAYMENT. Requires a single-payment checkout intent.
113
- */
114
- skipToLink?: boolean;
115
- }
116
- export interface PaymentSheetPaymentMethods {
117
- stripeLink?: boolean | StripeLinkPaymentMethodConfig;
118
- }
119
- export declare const PaymentSheet: React.FC<PaymentSheetProps>;
120
- export default PaymentSheet;
121
- //# sourceMappingURL=PaymentSheet.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PaymentSheet.d.ts","sourceRoot":"","sources":["../../../../src/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CAAC;IAE5C;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;IAE5C;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAExC;;;OAGG;IACH,WAAW,CAAC,EAAE,yBAAyB,EAAE,CAAC;IAE1C;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,0BAA0B,GAAG,IAAI,KAAK,IAAI,CAAC;CAEnE;AAED,MAAM,WAAW,6BAA6B;IAC5C,wFAAwF;IACxF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,0BAA0B;IACzC,UAAU,CAAC,EAAE,OAAO,GAAG,6BAA6B,CAAC;CACtD;AA+BD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA2rBpD,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"PaymentSheetContent.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/PaymentSheetContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE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,EACN,WAAW,EACX,cAAc,EACd,UAAU,EACV,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,WAAW,EACX,WAAW,EACX,oBAAoB,EACpB,OAAO,EACP,KAAK,EACL,UAAU,EACV,OAAO,EACP,UAAU,EACV,aAAa,EACb,uBAAuB,EACvB,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,WAAW,EACX,GAAG,EACH,MAAM,EACN,aAAa,EACb,uBAAuB,EACvB,qBAAqB,EACrB,cAAc,EACd,iBAAiB,EACjB,WAAW,EACX,KAAK,EACL,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,cAAc,EACd,WAAW,EACX,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,GACf,EAAE,wBAAwB,kDA0K1B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"PaymentSheetPaymentFlow.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/PaymentSheetPaymentFlow.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,EACV,0BAA0B,EAC1B,yBAAyB,EAC1B,MAAM,yBAAyB,CAAC;AAEjC,UAAU,4BAA4B;IACpC,OAAO,EAAE,eAAe,CAAC;IACzB,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;IACrB,eAAe,EAAE,OAAO,CAAC;IACzB,aAAa,EAAE,OAAO,CAAC;IACvB,WAAW,EAAE,WAAW,CAAC;IACzB,OA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AmB,EAAE,MAAM,IAAI,CAAC;IAChC,cAAc,EAAE,MAAM,IAAI,CAAC;CAC5B;AAQD,wBAAgB,uBAAuB,CAAC,EACtC,OAAO,EACP,WAAW,EACX,WAAW,EACX,eAAe,EACf,aAAa,EACb,WAAW,EACX,OAAO,EACP,cAAc,EACd,UAAU,EACV,aAAa,EACb,GAAG,EACH,MAAM,EACN,YAAY,EACZ,WAAW,EACX,uBAAuB,EACvB,qBAAqB,EACrB,cAAc,EACd,iBAAiB,EACjB,WAAW,EACX,KAAK,EACL,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,UAAU,EACV,cAAc,EACd,WAAW,EACX,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,GACf,EAAE,4BAA4B,kDA+I9B"}
@@ -1,25 +0,0 @@
1
- import React from 'react';
2
- import type { OrderItem } from './ReceiptPanel';
3
- export type PaymentSheetLayout = 'drawer' | 'inline' | 'modal' | 'embedded';
4
- interface PaymentSheetShellProps {
5
- open: boolean;
6
- layout: PaymentSheetLayout;
7
- title: string;
8
- totalAmount?: string;
9
- orderItems?: OrderItem[];
10
- subtotal?: string;
11
- shipping?: string;
12
- tax?: string;
13
- agentFee?: string;
14
- isAgentMode: boolean;
15
- isSetupMode: boolean;
16
- secondsRemaining: number | null;
17
- paymentView: string;
18
- hideHeader: boolean;
19
- confirmDialog: React.ReactNode;
20
- onClose: () => void;
21
- children: React.ReactNode;
22
- }
23
- export declare function PaymentSheetShell({ open, layout, title, totalAmount, orderItems, subtotal, shipping, tax, agentFee, isAgentMode, isSetupMode, secondsRemaining, paymentView, hideHeader, confirmDialog, onClose, children, }: PaymentSheetShellProps): import("react/jsx-runtime").JSX.Element;
24
- export {};
25
- //# sourceMappingURL=PaymentSheetShell.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PaymentSheetShell.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/PaymentSheetShell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,UAAU,CAAC;AAE5E,UAAU,sBAAsB;IAC9B,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,kBAAkB,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;IACrB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,iBAAiB,CAAC,EAChC,IAAI,EACJ,MAAM,EACN,KAAK,EACL,WAAW,EACX,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,GAAG,EACH,QAAQ,EACR,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,UAAU,EACV,aAAa,EACb,OAAO,EACP,QAAQ,GACT,EAAE,sBAAsB,2CAmIxB"}
@@ -1,28 +0,0 @@
1
- import type { CheckoutSession, SavedCard } from '../../types/session';
2
- export declare function PaymentSheetLoadingView({ skipToAuth }: {
3
- skipToAuth: boolean;
4
- }): import("react/jsx-runtime").JSX.Element;
5
- export declare function PaymentSheetErrorView({ errorMessage, onClose, }: {
6
- errorMessage?: string;
7
- onClose: () => void;
8
- }): import("react/jsx-runtime").JSX.Element;
9
- export declare function PaymentSheetExpiredView({ onVerifyAgain, onClose, }: {
10
- onVerifyAgain: () => void;
11
- onClose: () => void;
12
- }): import("react/jsx-runtime").JSX.Element;
13
- export declare function SkipToAuthCheckoutStatusView({ selectedCard, passkeyClosed, }: {
14
- selectedCard: SavedCard;
15
- passkeyClosed: boolean;
16
- }): import("react/jsx-runtime").JSX.Element;
17
- export declare function PaymentSheetProcessingView({ skipToAuth, isSetupMode, isAgentMode, skipCredentialGeneration, }: {
18
- skipToAuth: boolean;
19
- isSetupMode: boolean;
20
- isAgentMode: boolean;
21
- skipCredentialGeneration: boolean;
22
- }): import("react/jsx-runtime").JSX.Element;
23
- export declare function PaymentSheetSuccessView({ session, isSetupMode, isAgentMode, }: {
24
- session: CheckoutSession;
25
- isSetupMode: boolean;
26
- isAgentMode: boolean;
27
- }): import("react/jsx-runtime").JSX.Element;
28
- //# sourceMappingURL=PaymentSheetStatusViews.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PaymentSheetStatusViews.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/PaymentSheetStatusViews.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAgBtE,wBAAgB,uBAAuB,CAAC,EAAE,UAAU,EAAE,EAAE;IAAE,UAAU,EAAE,OAAO,CAAA;CAAE,2CAW9E;AAED,wBAAgB,qBAAqB,CAAC,EACpC,YAAY,EACZ,OAAO,GACR,EAAE;IACD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,2CAcA;AAED,wBAAgB,uBAAuB,CAAC,EACtC,aAAa,EACb,OAAO,GACR,EAAE;IACD,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,2CAsBA;AAED,wBAAgB,4BAA4B,CAAC,EAC3C,YAAY,EACZ,aAAa,GACd,EAAE;IACD,YAAY,EAAE,SAAS,CAAC;IACxB,aAAa,EAAE,OAAO,CAAC;CACxB,2CAkBA;AAED,wBAAgB,0BAA0B,CAAC,EACzC,UAAU,EACV,WAAW,EACX,WAAW,EACX,wBAAwB,GACzB,EAAE;IACD,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;IACrB,wBAAwB,EAAE,OAAO,CAAC;CACnC,2CAkCA;AAED,wBAAgB,uBAAuB,CAAC,EACtC,OAAO,EACP,WAAW,EACX,WAAW,GACZ,EAAE;IACD,OAAO,EAAE,eAAe,CAAC;IACzB,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;CACtB,2CA0DA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"PriceTag.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/PriceTag.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,UAAU,aAAa;IACrB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAmE5C,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReceiptPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/ReceiptPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,UAAU,iBAAiB;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;IACpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA2GpD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ViewHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/ViewHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,UAAU,eAAe;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAwBhD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,EAAg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
2
- /**
3
- * OrderSummary - Collapsible order details accordion
4
- *
5
- * Features:
6
- * - Prominent total display
7
- * - Collapsible line items
8
- * - Agent mode badge integration
9
- * - Dark mode support
10
- */
11
- export interface OrderItem {
12
- label: string;
13
- value: string | number;
14
- description?: string;
15
- }
16
- interface OrderSummaryProps {
17
- /**
18
- * Total amount (e.g., "$85.24")
19
- */
20
- total: string;
21
- /**
22
- * Line items to show when expanded
23
- */
24
- items?: OrderItem[];
25
- /**
26
- * Whether to show agent badge
27
- */
28
- isAgentMode?: boolean;
29
- /**
30
- * Agent fee amount (e.g., "$2.00")
31
- */
32
- agentFee?: string;
33
- /**
34
- * Whether the accordion starts expanded
35
- */
36
- defaultExpanded?: boolean;
37
- /**
38
- * Additional CSS classes
39
- */
40
- className?: string;
41
- }
42
- export declare const OrderSummary: React.ForwardRefExoticComponent<OrderSummaryProps & React.RefAttributes<HTMLDivElement>>;
43
- export {};
44
- //# sourceMappingURL=order-summary.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"order-summary.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/order-summary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B;;;;;;;;GAQG;AAEH,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,UAAU,iBAAiB;IACzB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,YAAY,0FAoFxB,CAAC"}
@@ -1,45 +0,0 @@
1
- import * as React from "react";
2
- /**
3
- * OTPInput - 6-digit verification code input
4
- *
5
- * Features:
6
- * - 6 individual input boxes with auto-focus progression
7
- * - Large text, centered for easy reading
8
- * - Numeric only input
9
- * - Paste support (auto-fills all boxes)
10
- * - Dark mode support
11
- * - Auto-submit when complete
12
- */
13
- interface OTPInputProps {
14
- /**
15
- * Current OTP value (6 digits)
16
- */
17
- value?: string;
18
- /**
19
- * Callback when OTP changes
20
- */
21
- onChange?: (value: string) => void;
22
- /**
23
- * Callback when OTP is complete (all 6 digits entered)
24
- */
25
- onComplete?: (value: string) => void;
26
- /**
27
- * Number of digits (default: 6)
28
- */
29
- length?: number;
30
- /**
31
- * Visual variant: 'box' (default bordered boxes) or 'underline' (bottom border only)
32
- */
33
- variant?: 'box' | 'underline';
34
- /**
35
- * Accent color for focus state (CSS color value)
36
- */
37
- accentColor?: string;
38
- /**
39
- * Additional CSS classes
40
- */
41
- className?: string;
42
- }
43
- export declare const OTPInput: React.ForwardRefExoticComponent<OTPInputProps & React.RefAttributes<HTMLDivElement>>;
44
- export {};
45
- //# sourceMappingURL=otp-input.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"otp-input.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/otp-input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B;;;;;;;;;;GAUG;AAEH,UAAU,aAAa;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,GAAG,WAAW,CAAC;IAC9B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,QAAQ,sFAoKpB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"phone-input.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/phone-input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAE,SAAS,EAA0C,MAAM,wBAAwB,CAAC;AAC3F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,YAAY,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAU1D;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,GAAE,MAAa,GAAG,MAAM,CA8BvF;AAED;;;;;;;;;;GAUG;AAEH,UAAU,eAAgB,SAAQ,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,UAAU,CAAC;IAC7F,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;CAC/C;AAED,eAAO,MAAM,UAAU,0FA4KtB,CAAC;AAGF,OAAO,EAAE,SAAS,EAAE,CAAC"}
@@ -1,6 +0,0 @@
1
- export type PayOSThemeMode = 'dark' | 'black' | 'light' | 'auto';
2
- export type ResolvedPayOSThemeMode = Exclude<PayOSThemeMode, 'auto'>;
3
- export declare function resolvePayOSThemeMode(theme?: PayOSThemeMode): ResolvedPayOSThemeMode | null;
4
- export declare function payOSThemeClass(theme?: PayOSThemeMode): string;
5
- export declare function usePayOSThemeMode(theme: PayOSThemeMode | undefined, active: boolean): void;
6
- //# sourceMappingURL=themeMode.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"themeMode.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/themeMode.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;AACjE,MAAM,MAAM,sBAAsB,GAAG,OAAO,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;AAErE,wBAAgB,qBAAqB,CACnC,KAAK,CAAC,EAAE,cAAc,GACrB,sBAAsB,GAAG,IAAI,CAQ/B;AAED,wBAAgB,eAAe,CAAC,KAAK,CAAC,EAAE,cAAc,GAAG,MAAM,CAI9D;AAED,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,cAAc,GAAG,SAAS,EACjC,MAAM,EAAE,OAAO,QAsDhB"}
@@ -1,22 +0,0 @@
1
- import type { Dispatch, SetStateAction } from 'react';
2
- import type { RegistrationSubPhase, SessionPhase } from '../../hooks/useSession';
3
- import type { PaymentView } from '../../types/payment';
4
- import type { CheckoutSession } from '../../types/session';
5
- interface UsePaymentSheetDebugArgs {
6
- debug: boolean;
7
- phase: SessionPhase;
8
- paymentView: PaymentView;
9
- session: CheckoutSession | null;
10
- sessionSecret: string;
11
- setPhase: (phase: SessionPhase) => void;
12
- setPaymentView: (view: PaymentView) => void;
13
- setSession: Dispatch<SetStateAction<CheckoutSession | null>>;
14
- setRegistrationSubPhase: (subPhase: RegistrationSubPhase) => void;
15
- showAddCard: () => void;
16
- showMethodList: () => void;
17
- returnToCheckout: () => void;
18
- goBackToIdentity: () => void;
19
- }
20
- export declare function usePaymentSheetDebug({ debug, phase, paymentView, session, sessionSecret, setPhase, setPaymentView, setSession, setRegistrationSubPhase, showAddCard, showMethodList, returnToCheckout, goBackToIdentity, }: UsePaymentSheetDebugArgs): void;
21
- export {};
22
- //# sourceMappingURL=usePaymentSheetDebug.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"usePaymentSheetDebug.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/usePaymentSheetDebug.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACjF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,UAAU,wBAAwB;IAChC,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,YAAY,CAAC;IACpB,WAAW,EAAE,WAAW,CAAC;IACzB,OAAO,EAAE,eAAe,GAAG,IAAI,CAAC;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;IACxC,cAAc,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IAC5C,UAAU,EAAE,QAAQ,CAAC,cAAc,CAAC,eAAe,GAAG,IAAI,CAAC,CAAC,CAAC;IAC7D,uBAAuB,EAAE,CAAC,QAAQ,EAAE,oBAAoB,KAAK,IAAI,CAAC;IAClE,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,wBAAgB,oBAAoB,CAAC,EACnC,KAAK,EACL,KAAK,EACL,WAAW,EACX,OAAO,EACP,aAAa,EACb,QAAQ,EACR,cAAc,EACd,UAAU,EACV,uBAAuB,EACvB,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,gBAAgB,GACjB,EAAE,wBAAwB,QAsF1B"}