@payos-inc/payos-react 1.0.42 → 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
@@ -2,4 +2,3 @@ import * as React from "react";
2
2
  import * as SeparatorPrimitive from "@radix-ui/react-separator";
3
3
  declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
4
  export { Separator };
5
- //# sourceMappingURL=separator.d.ts.map
@@ -18,4 +18,3 @@ export interface BiometricInfo {
18
18
  * - Default → "Enable Secure Access" with Lock icon
19
19
  */
20
20
  export declare function useBiometricType(): BiometricInfo;
21
- //# sourceMappingURL=useBiometricType.d.ts.map
@@ -29,4 +29,3 @@
29
29
  export declare function useBodyScrollLock(isLocked: boolean, options?: {
30
30
  preventTouch?: boolean;
31
31
  }): void;
32
- //# sourceMappingURL=useBodyScrollLock.d.ts.map
@@ -109,7 +109,7 @@ export interface UseCardElementReturn {
109
109
  * const { containerRef, isReady, isComplete, submit } = useCardElement({
110
110
  * token: session.linkToken,
111
111
  * onTokenized: (event) => {
112
- * console.log('Card tokenized:', event.card);
112
+ * if (event.card?.id) onCardAdded(event.card.id);
113
113
  * addPaymentCard({
114
114
  * cardId: event.card?.id || '',
115
115
  * last4: event.card?.last4 || '',
@@ -132,4 +132,3 @@ export interface UseCardElementReturn {
132
132
  */
133
133
  export declare function useCardElement(options: UseCardElementOptions): UseCardElementReturn;
134
134
  export type { CardElementOptions, CardElementStyles, CardElementConfiguration, CardElementTokenizedEvent, CardElementChangeEvent, CardElementBinWarningRule, CardElementBinWarningEvent, };
135
- //# sourceMappingURL=useCardElement.d.ts.map
@@ -21,4 +21,3 @@ interface UseLinkAuthResult {
21
21
  }
22
22
  export declare function useLinkAuth(args: UseLinkAuthArgs): UseLinkAuthResult;
23
23
  export {};
24
- //# sourceMappingURL=useLinkAuth.d.ts.map
@@ -26,4 +26,3 @@ interface UseLinkDeviceAuthPollArgs {
26
26
  }
27
27
  export declare function useLinkDeviceAuthPoll(args: UseLinkDeviceAuthPollArgs): void;
28
28
  export {};
29
- //# sourceMappingURL=useLinkDeviceAuthPoll.d.ts.map
@@ -25,4 +25,3 @@ interface UseLinkMethodsResult {
25
25
  }
26
26
  export declare function useLinkMethods(args: UseLinkMethodsArgs): UseLinkMethodsResult;
27
27
  export {};
28
- //# sourceMappingURL=useLinkMethods.d.ts.map
@@ -78,4 +78,3 @@ export interface UseLinkSessionReturn {
78
78
  refreshMethods: () => Promise<void>;
79
79
  }
80
80
  export declare function useLinkSession(args: UseLinkSessionArgs): UseLinkSessionReturn;
81
- //# sourceMappingURL=useLinkSession.d.ts.map
@@ -25,4 +25,3 @@ interface UseLinkSpendStatusPollArgs {
25
25
  }
26
26
  export declare function useLinkSpendStatusPoll(args: UseLinkSpendStatusPollArgs): void;
27
27
  export {};
28
- //# sourceMappingURL=useLinkSpendStatusPoll.d.ts.map
@@ -4,7 +4,7 @@
4
4
  * Manages the PayOS Passkey SDK lifecycle and exposes passkey operations
5
5
  * for registration and authentication flows.
6
6
  */
7
- import { PayOSPasskey, RegisterResult, PasskeyResult, OTPSubmitResult } from '@payos-inc/payos-passkey-js';
7
+ import { PayOSPasskey, RegisterResult, PasskeyResult, OTPSubmitResult } from '../../../payos-passkey-js/src';
8
8
  /**
9
9
  * Step-up verification method (for Visa OTP flow)
10
10
  */
@@ -21,7 +21,7 @@ export interface UsePasskeySDKOptions {
21
21
  sessionSecret: string;
22
22
  /** Use sandbox environment */
23
23
  sandbox?: boolean;
24
- /** Enable debug logging */
24
+ /** @deprecated Diagnostic logging is disabled to protect session data. */
25
25
  debug?: boolean;
26
26
  /** Container ID for Visa iframe placement */
27
27
  visaContainerId?: string;
@@ -86,7 +86,6 @@ export interface UsePasskeySDKReturn {
86
86
  * const passkey = usePasskeySDK({
87
87
  * sessionSecret: session.secret,
88
88
  * sandbox: true,
89
- * debug: true,
90
89
  * });
91
90
  *
92
91
  * // Registration
@@ -100,4 +99,3 @@ export interface UsePasskeySDKReturn {
100
99
  * ```
101
100
  */
102
101
  export declare function usePasskeySDK(options: UsePasskeySDKOptions): UsePasskeySDKReturn;
103
- //# sourceMappingURL=usePasskeySDK.d.ts.map
@@ -62,6 +62,16 @@ export interface UseSessionReturn {
62
62
  setPaymentView: (view: PaymentView) => void;
63
63
  setDefaultCard: (cardId: string) => Promise<boolean>;
64
64
  completeSetup: () => Promise<CompletionResult>;
65
+ /** True while the person still has unshared wallet cards to decide on */
66
+ hasWalletCardsToShare: boolean;
67
+ /** Share the picked cards; consentText is the wording the person saw */
68
+ shareCards: (cardIds: string[], consentText: string) => Promise<boolean>;
69
+ /** Continue without sharing, optionally to a specific view (e.g. 'add') */
70
+ skipShareCards: (nextView?: PaymentView) => void;
71
+ /** Show the share step again (e.g. back from adding a card) */
72
+ reopenShareCards: () => void;
73
+ /** Cards added and shared during this session (drives the setup success copy) */
74
+ cardActivity: SessionCardActivity;
65
75
  complete: (options?: {
66
76
  passkeyAuthenticated?: boolean;
67
77
  }) => Promise<CompletionResult>;
@@ -69,6 +79,10 @@ export interface UseSessionReturn {
69
79
  clearError: () => void;
70
80
  refresh: () => Promise<void>;
71
81
  }
82
+ export interface SessionCardActivity {
83
+ added: number;
84
+ shared: number;
85
+ }
72
86
  export interface UseSessionOptions {
73
87
  /** API base URL for credential generation and other API calls */
74
88
  apiBaseUrl: string;
@@ -84,4 +98,3 @@ export interface UseSessionOptions {
84
98
  preferMethodList?: boolean;
85
99
  }
86
100
  export declare function useSession(sessionSecret: string, options: UseSessionOptions): UseSessionReturn;
87
- //# sourceMappingURL=useSession.d.ts.map
@@ -12,4 +12,3 @@ export declare function useVisualViewport(): number;
12
12
  * ```
13
13
  */
14
14
  export declare function useVisualViewportStyle(): React.CSSProperties;
15
- //# sourceMappingURL=useVisualViewport.d.ts.map
@@ -19,6 +19,7 @@ export { WelcomeBackView } from './components/payos/views/WelcomeBackView';
19
19
  export { OTPView } from './components/payos/views/OTPView';
20
20
  export { CheckoutView } from './components/payos/views/CheckoutView';
21
21
  export { MethodListView } from './components/payos/views/MethodListView';
22
+ export { ShareCardsView } from './components/payos/views/ShareCardsView';
22
23
  export { CardAddView } from './components/payos/views/CardAddView';
23
24
  export { SuccessView } from './components/payos/views/SuccessView';
24
25
  export type { SuccessViewProps } from './components/payos/views/SuccessView';
@@ -44,14 +45,12 @@ export { useLinkSession } from './hooks/useLinkSession';
44
45
  export type { LinkPhase, UseLinkSessionReturn } from './hooks/useLinkSession';
45
46
  export { useLinkAuth } from './hooks/useLinkAuth';
46
47
  export { useLinkMethods } from './hooks/useLinkMethods';
47
- export { useCheckoutFlow } from './hooks/useCheckoutFlow';
48
48
  export { useSession } from './hooks/useSession';
49
49
  export type { UseSessionReturn, SessionPhase, PaymentView as SessionPaymentView } from './hooks/useSession';
50
50
  export { useCardElement } from './hooks/useCardElement';
51
- export type { CardElementBinWarningEvent, CardElementBinWarningRule, UseCardElementOptions, UseCardElementReturn, } from './hooks/useCardElement';
51
+ export type { CardElementBinWarningEvent, CardElementBinWarningRule, CardElementStyles, UseCardElementOptions, UseCardElementReturn, } from './hooks/useCardElement';
52
52
  export { useBodyScrollLock } from './hooks/useBodyScrollLock';
53
53
  export { useVisualViewport, useVisualViewportStyle } from './hooks/useVisualViewport';
54
54
  export type { PaymentView, CheckoutPhase, SavedCard, CardData, CardBrand } from './types';
55
- export type { SessionType, SessionStatus, PaymentIntentType, MultiPaymentIntent, PaymentIntentStatus, WalletUser, SavedCard as SessionSavedCard, CardNetwork, CheckoutSession, SessionError, SessionErrorCode, VerificationInitResult, VerificationResult, CompletionResult, PaymentSheetResult, PaymentSheetError, } from './types/session';
55
+ export type { SessionType, SessionStatus, PaymentIntentType, MultiPaymentIntent, PaymentIntentStatus, WalletUser, SavedCard as SessionSavedCard, WalletCard, CardNetwork, CheckoutSession, SessionError, SessionErrorCode, VerificationInitResult, VerificationResult, CompletionResult, PaymentSheetResult, PaymentSheetError, } from './types/session';
56
56
  export { cn } from './lib/utils';
57
- //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import { type ClassValue } from "clsx";
2
2
  export declare function cn(...inputs: ClassValue[]): string;
3
- //# sourceMappingURL=utils.d.ts.map
@@ -5,7 +5,7 @@
5
5
  * All requests are authenticated via link token (Bearer token).
6
6
  * Adapted from apps/payos-link/src/api/index.ts
7
7
  */
8
- import { SavedCard } from '../types/session';
8
+ import { SavedCard, WalletCard } from '../types/session';
9
9
  export interface ApiResponse<T> {
10
10
  error: boolean;
11
11
  message?: string;
@@ -26,12 +26,15 @@ export interface WalletUserResult {
26
26
  isNewRelationship: boolean;
27
27
  hasExistingCards: boolean;
28
28
  savedCards: SavedCard[];
29
+ /** Saved cards not yet shared with this merchant; only after OTP */
30
+ walletCards?: WalletCard[];
29
31
  linkedCardIds?: string[];
30
32
  }
31
33
  export declare class ApiError extends Error {
32
34
  status: number;
33
35
  details?: string;
34
- constructor(message: string, status: number, details?: string);
36
+ code?: string;
37
+ constructor(message: string, status: number, details?: string, code?: string);
35
38
  }
36
39
  /**
37
40
  * Send OTP verification code to a phone number
@@ -86,6 +89,13 @@ export declare function resendOTP(baseUrl: string, token: string, previousRefere
86
89
  * @returns Wallet user details including walletUserId and saved cards
87
90
  */
88
91
  export declare function processVerifiedWalletUser(baseUrl: string, token: string, phone: string, verificationId: string, countryCode?: string): Promise<WalletUserResult>;
92
+ /**
93
+ * Share more of the person's saved cards with this merchant.
94
+ * Appends to the cards already shared, so the merchant's default is kept.
95
+ * Requires a session the person verified by one-time code.
96
+ * @returns The card ids the merchant may now use
97
+ */
98
+ export declare function shareCardsWithOrganization(baseUrl: string, token: string, walletUserId: string, cardIds: string[], consentText: string): Promise<string[]>;
89
99
  /**
90
100
  * Get saved cards for a wallet user
91
101
  * @param baseUrl API base URL
@@ -293,6 +303,8 @@ export interface GetCurrentSessionResponse {
293
303
  paymentIntent: PaymentIntentResponse | null;
294
304
  sessionType?: string;
295
305
  validCardBrandAcceptance?: string[] | null;
306
+ /** Display name of the organization that created the session */
307
+ organizationName?: string | null;
296
308
  /** True when the wallet user's identity was pre-verified via token (skip OTP) */
297
309
  identityPreVerified?: boolean;
298
310
  /** Wallet user ID embedded in token metadata (pre-verified wallet consumer flow) */
@@ -403,4 +415,3 @@ export declare function checkDeviceTrust(baseUrl: string, token: string, deviceI
403
415
  export declare function registerTrustedDevice(baseUrl: string, token: string, deviceId: string, walletUserId: string): Promise<{
404
416
  success: boolean;
405
417
  }>;
406
- //# sourceMappingURL=apiService.d.ts.map
@@ -4,4 +4,3 @@
4
4
  * Can be overridden via the `cardElementUrl` prop on PaymentSheet.
5
5
  */
6
6
  export declare const DEFAULT_CARD_ELEMENT_URL = "https://wallet-onboard.payos.ai";
7
- //# sourceMappingURL=linkTokenService.d.ts.map
@@ -139,6 +139,8 @@ export declare class CardElementClient {
139
139
  private iframeOrigin;
140
140
  private pendingStyles;
141
141
  private pendingConfiguration;
142
+ private currentConfiguration;
143
+ private ready;
142
144
  constructor(container: string | HTMLElement, options: CardElementOptions);
143
145
  mount(): void;
144
146
  unmount(): void;
@@ -148,10 +150,7 @@ export declare class CardElementClient {
148
150
  updateStyles(styles: CardElementStyles): void;
149
151
  private sendStyles;
150
152
  private handleMessage;
151
- private isAllowedOrigin;
152
153
  private buildIframeUrl;
153
154
  private getBaseUrl;
154
- private getAllowedOrigins;
155
155
  private validateOptions;
156
156
  }
157
- //# sourceMappingURL=cardElement.d.ts.map
@@ -30,4 +30,3 @@ export interface PaymentError {
30
30
  message: string;
31
31
  details?: Record<string, unknown>;
32
32
  }
33
- //# sourceMappingURL=drawer.d.ts.map
@@ -1,4 +1,3 @@
1
1
  export * from './drawer';
2
2
  export * from './order';
3
3
  export * from './payment';
4
- //# sourceMappingURL=index.d.ts.map
@@ -22,4 +22,3 @@ export interface OrderData {
22
22
  agentFee?: number;
23
23
  total: number;
24
24
  }
25
- //# sourceMappingURL=order.d.ts.map
@@ -7,7 +7,7 @@ export type CheckoutPhase = 'PHONE_INPUT' | 'OTP_VERIFY' | 'PAYMENT' | 'PAYMENT_
7
7
  *
8
8
  * Flow: checkout (root) <-> methods (list) <-> add (form) -> checkout
9
9
  */
10
- export type PaymentView = 'checkout' | 'methods' | 'add' | 'link-connect' | 'link-loading' | 'link-checkout' | 'link-denied' | 'link-success' | 'manage-third-party';
10
+ export type PaymentView = 'share-cards' | 'checkout' | 'methods' | 'add' | 'link-connect' | 'link-loading' | 'link-checkout' | 'link-denied' | 'link-success' | 'manage-third-party';
11
11
  export interface CheckoutState {
12
12
  phase: CheckoutPhase;
13
13
  phoneNumber: string;
@@ -52,4 +52,3 @@ export interface SavedCard {
52
52
  cardArtUrl?: string;
53
53
  issuerName?: string;
54
54
  }
55
- //# sourceMappingURL=payment.d.ts.map
@@ -81,6 +81,19 @@ export interface WalletUser {
81
81
  lastName?: string;
82
82
  defaultCardId?: string;
83
83
  }
84
+ /**
85
+ * A card in the person's PayOS wallet that is not yet shared with this
86
+ * merchant. Display fields only; returned only after the person
87
+ * verified by one-time code in this session.
88
+ */
89
+ export interface WalletCard {
90
+ id: string;
91
+ brand: string;
92
+ last4: string;
93
+ cardArtUrl?: string | null;
94
+ issuerName?: string | null;
95
+ cardProductName?: string | null;
96
+ }
84
97
  export interface SavedCard {
85
98
  id: string;
86
99
  brand: CardBrand;
@@ -106,12 +119,16 @@ export interface CheckoutSession {
106
119
  paymentIntent?: MultiPaymentIntent;
107
120
  walletUser?: WalletUser;
108
121
  organizationId: string;
122
+ /** Display name of the organization the person is paying or saving cards with */
123
+ organizationName?: string;
109
124
  deviceVerified: boolean;
110
125
  verificationMethod?: 'email' | 'phone';
111
126
  verificationReference?: string;
112
127
  verificationPhone?: string;
113
128
  selectedCard?: SavedCard;
114
129
  savedCards: SavedCard[];
130
+ /** Saved cards the person may choose to share with this merchant (after OTP) */
131
+ walletCards?: WalletCard[];
115
132
  linkToken: string;
116
133
  validCardBrandAcceptance?: string[];
117
134
  expiresAt: string;
@@ -123,7 +140,7 @@ export interface SessionError {
123
140
  message: string;
124
141
  details?: Record<string, unknown>;
125
142
  }
126
- export type SessionErrorCode = 'SESSION_NOT_FOUND' | 'SESSION_EXPIRED' | 'VERIFICATION_FAILED' | 'INVALID_OTP' | 'OTP_EXPIRED' | 'RATE_LIMITED' | 'CARD_DECLINED' | 'CARD_NOT_FOUND' | 'NO_CARD_SELECTED' | 'CARD_SELECT_FAILED' | 'ISSUER_LIMIT_EXCEEDED' | 'CARD_ADD_FAILED' | 'CARD_DELETE_FAILED' | 'PAYMENT_FAILED' | 'PAYMENT_INTENT_ALREADY_PROCESSED' | 'PASSKEY_FAILED' | 'PASSKEY_REQUIRED' | 'AUTH_INVALID' | 'AUTH_EXPIRED' | 'CREDENTIAL_GENERATION_FAILED' | 'NETWORK_ERROR';
143
+ export type SessionErrorCode = 'SESSION_NOT_FOUND' | 'SESSION_EXPIRED' | 'SESSION_IDENTITY_MISMATCH' | 'VERIFICATION_FAILED' | 'INVALID_OTP' | 'OTP_EXPIRED' | 'RATE_LIMITED' | 'CARD_DECLINED' | 'CARD_NOT_FOUND' | 'NO_CARD_SELECTED' | 'CARD_SELECT_FAILED' | 'ISSUER_LIMIT_EXCEEDED' | 'CARD_ADD_FAILED' | 'CARD_DELETE_FAILED' | 'PAYMENT_FAILED' | 'PAYMENT_INTENT_ALREADY_PROCESSED' | 'PASSKEY_FAILED' | 'PASSKEY_REQUIRED' | 'AUTH_INVALID' | 'AUTH_EXPIRED' | 'CREDENTIAL_GENERATION_FAILED' | 'NETWORK_ERROR';
127
144
  export interface VerificationInitResult {
128
145
  success: boolean;
129
146
  verificationId: string;
@@ -162,4 +179,3 @@ export interface PaymentSheetError {
162
179
  message: string;
163
180
  sessionId?: string;
164
181
  }
165
- //# sourceMappingURL=session.d.ts.map
@@ -5,4 +5,3 @@ import type { MultiPaymentIntent } from '../types/session';
5
5
  * active|retrieved live-credential grouping.
6
6
  */
7
7
  export declare function credentialExists(paymentIntent?: MultiPaymentIntent): boolean;
8
- //# sourceMappingURL=credentialStatus.d.ts.map
@@ -24,4 +24,3 @@ export declare function clearDeviceId(): void;
24
24
  * Check if device ID exists
25
25
  */
26
26
  export declare function hasDeviceId(): boolean;
27
- //# sourceMappingURL=deviceFingerprint.d.ts.map
@@ -0,0 +1,10 @@
1
+ import type { CheckoutSession } from '../types/session';
2
+ /**
3
+ * Make sure the payment intent has a card before agent-mode authentication.
4
+ *
5
+ * The default card is auto-selected for display only (see selectCard.ts), so
6
+ * a returning person who taps Authorize without picking a card leaves the
7
+ * intent with no selectedCardId, and passkey authentication rejects it.
8
+ * Attach the displayed card in that case. Returns false when attaching failed.
9
+ */
10
+ export declare function ensureSelectedCardAttached(session: Pick<CheckoutSession, 'selectedCard' | 'paymentIntent'>, attachCard: (cardId: string) => Promise<boolean>): Promise<boolean>;
@@ -19,4 +19,3 @@
19
19
  * getApiBaseUrl('production') // => 'https://api.payos.ai'
20
20
  */
21
21
  export declare function getApiBaseUrl(environment: 'sandbox' | 'production', developmentApiUrl?: string): string;
22
- //# sourceMappingURL=environment.d.ts.map
@@ -38,4 +38,3 @@ export declare function maskCardNumber(cardNumber: string): string;
38
38
  * @returns Formatted expiry (MM/YY)
39
39
  */
40
40
  export declare function formatExpiry(expiry: string): string;
41
- //# sourceMappingURL=formatting.d.ts.map
@@ -16,4 +16,3 @@ export declare function closeLinkPopup(kind: PopupKind): void;
16
16
  export declare function isLinkPopupOpen(kind: PopupKind): boolean;
17
17
  export declare function closeAllLinkPopups(): void;
18
18
  export {};
19
- //# sourceMappingURL=linkPopup.d.ts.map
@@ -0,0 +1,8 @@
1
+ import type { CheckoutSession } from '../types/session';
2
+ /**
3
+ * The name shown to the person for the organization they are dealing with.
4
+ * Prefers the organization's own display name, then the payment's merchant
5
+ * name. Never uses the sheet title: hosts pass step titles there, and this
6
+ * name is recorded in consent text.
7
+ */
8
+ export declare function organizationDisplayName(session?: CheckoutSession | null): string | undefined;
@@ -15,4 +15,3 @@ export interface SelectCardResult {
15
15
  * whether the backend needs to be updated with the selection.
16
16
  */
17
17
  export declare function selectCard(savedCards: SavedCard[], propCardId?: string, backendSelectedCardId?: string): SelectCardResult;
18
- //# sourceMappingURL=selectCard.d.ts.map
@@ -9,4 +9,3 @@
9
9
  * accented characters (résumé, piñata, etc.).
10
10
  */
11
11
  export declare function cleanMojibake(input?: string | null): string;
12
- //# sourceMappingURL=text.d.ts.map
@@ -87,4 +87,3 @@ export declare function isBillingAddressValid(address: {
87
87
  state: string;
88
88
  zip: string;
89
89
  }): boolean;
90
- //# sourceMappingURL=validation.d.ts.map
package/package.json CHANGED
@@ -1,25 +1,35 @@
1
1
  {
2
2
  "name": "@payos-inc/payos-react",
3
- "version": "1.0.42",
3
+ "version": "1.2.0-staging.100",
4
4
  "description": "PayOS React SDK - Drawer checkout component for React",
5
- "main": "dist/payos-react.esm.js",
6
- "module": "dist/payos-react.esm.js",
7
- "browser": "dist/payos-react.min.js",
5
+ "main": "dist/payos-react.cjs",
6
+ "module": "dist/payos-react.mjs",
8
7
  "types": "dist/types/index.d.ts",
9
8
  "style": "dist/payos-react.css",
10
9
  "files": [
11
- "dist"
10
+ "dist/payos-react.mjs",
11
+ "dist/payos-react.cjs",
12
+ "dist/payos-react.esm.js",
13
+ "dist/payos-react.min.js",
14
+ "dist/payos-react.css",
15
+ "dist/THIRD_PARTY_NOTICES.txt",
16
+ "dist/types/**/*.d.ts",
17
+ "README.md",
18
+ "LICENSE"
12
19
  ],
13
20
  "scripts": {
14
21
  "dev": "webpack serve --mode development --config webpack.config.js --host",
15
22
  "build": "npm run clean && npm run build:webpack && npm run build:esm && npm run build:types && npm run build:css",
16
23
  "clean": "rm -rf dist",
17
24
  "build:webpack": "webpack --mode production",
18
- "build:esm": "NODE_ENV=production tsup src/index.ts --format esm --no-dts --minify --out-dir dist && mv dist/index.mjs dist/payos-react.esm.js",
19
- "build:types": "tsc --declaration --emitDeclarationOnly --outDir dist/types",
20
- "build:css": "npx tailwindcss -i ./src/styles/base.css -o ./dist/payos-react.css --minify",
25
+ "build:esm": "NODE_ENV=production tsup",
26
+ "build:types": "tsc -p tsconfig.build.json && node scripts/finalize-types.cjs",
27
+ "build:css": "tailwindcss -i ./src/styles/base.css -o ./dist/payos-react.css --minify",
21
28
  "lint": "eslint src --ext .ts,.tsx",
22
- "type-check": "tsc --noEmit"
29
+ "type-check": "tsc --noEmit",
30
+ "test:passkey": "NODE_PATH=./node_modules node --test ../payos-passkey-js/test/security.test.cjs ../payos-passkey-js/test/session-flow.test.cjs",
31
+ "prepack": "npm run build",
32
+ "verify:package": "node scripts/verify-package.cjs"
23
33
  },
24
34
  "keywords": [
25
35
  "payos",
@@ -41,7 +51,6 @@
41
51
  "react-dom": "^18.2.0"
42
52
  },
43
53
  "dependencies": {
44
- "@payos-inc/payos-passkey-js": "^1.4.2",
45
54
  "@radix-ui/react-label": "^2.0.2",
46
55
  "@radix-ui/react-separator": "^1.0.3",
47
56
  "@radix-ui/react-slot": "^1.0.2",
@@ -75,16 +84,17 @@
75
84
  "ts-loader": "^9.4.2",
76
85
  "tsup": "^8.3.5",
77
86
  "typescript": "^5.2.2",
78
- "vitest": "^4.1.4",
87
+ "vitest": "^4.1.11",
79
88
  "webpack": "^5.104.1",
80
89
  "webpack-cli": "^5.0.2",
81
90
  "webpack-dev-server": "^5.2.3"
82
91
  },
83
92
  "overrides": {
84
93
  "minimatch": "^9.0.5",
85
- "qs": ">=6.15.2",
94
+ "qs": ">=6.16.0 <7",
86
95
  "fast-uri": ">=3.1.2",
87
- "ws@8": ">=8.20.1"
96
+ "ws@8": ">=8.20.1",
97
+ "esbuild": ">=0.28.1"
88
98
  },
89
99
  "publishConfig": {
90
100
  "access": "public",
@@ -92,5 +102,20 @@
92
102
  },
93
103
  "engines": {
94
104
  "node": ">=14.0.0"
105
+ },
106
+ "unpkg": "dist/payos-react.min.js",
107
+ "jsdelivr": "dist/payos-react.min.js",
108
+ "exports": {
109
+ ".": {
110
+ "types": "./dist/types/index.d.ts",
111
+ "import": "./dist/payos-react.mjs",
112
+ "require": "./dist/payos-react.cjs",
113
+ "default": "./dist/payos-react.mjs"
114
+ },
115
+ "./dist/payos-react.css": "./dist/payos-react.css",
116
+ "./styles.css": "./dist/payos-react.css",
117
+ "./dist/payos-react.min.js": "./dist/payos-react.min.js",
118
+ "./dist/payos-react.esm.js": "./dist/payos-react.mjs",
119
+ "./package.json": "./package.json"
95
120
  }
96
121
  }
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- interface IdentityBarProps {
3
- phoneNumber: string;
4
- onLogout: () => void;
5
- }
6
- export declare const IdentityBar: React.FC<IdentityBarProps>;
7
- export {};
8
- //# sourceMappingURL=IdentityBar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IdentityBar.d.ts","sourceRoot":"","sources":["../../../src/components/identity/IdentityBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,gBAAgB;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAkBlD,CAAC"}
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import type { OrderData } from '../../types';
3
- interface OrderSummaryAccordionProps {
4
- orderData: OrderData;
5
- mode?: 'standard' | 'agent';
6
- }
7
- export declare const OrderSummaryAccordion: React.FC<OrderSummaryAccordionProps>;
8
- export {};
9
- //# sourceMappingURL=OrderSummaryAccordion.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OrderSummaryAccordion.d.ts","sourceRoot":"","sources":["../../../src/components/order/OrderSummaryAccordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAI7C,UAAU,0BAA0B;IAClC,SAAS,EAAE,SAAS,CAAC;IACrB,IAAI,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC;CAC7B;AAED,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CA6FtE,CAAC"}
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import type { OrderItem } from '../../types';
3
- interface ShipmentCardProps {
4
- item: OrderItem;
5
- }
6
- export declare const ShipmentCard: React.FC<ShipmentCardProps>;
7
- export {};
8
- //# sourceMappingURL=ShipmentCard.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ShipmentCard.d.ts","sourceRoot":"","sources":["../../../src/components/order/ShipmentCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,UAAU,iBAAiB;IACzB,IAAI,EAAE,SAAS,CAAC;CACjB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAqBpD,CAAC"}
@@ -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 +0,0 @@
1
- {"version":3,"file":"AgentRegistrationFlow.d.ts","sourceRoot":"","sources":["../../../src/components/payos/AgentRegistrationFlow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,UAAU,0BAA0B;IAClC,OAAO,EAAE,eAAe,CAAC;IACzB,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,OAAO,EAAE,mBAAmB,CAAC;IAC7B,KAAK,EAAE,OAAO,CAAC;IACf,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACzD,aAAa,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC;IACnE,uBAAuB,EAAE,CAAC,QAAQ,EAAE,oBAAoB,KAAK,IAAI,CAAC;IAClE,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,kBAAkB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/C,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,wBAAgB,qBAAqB,CAAC,EACpC,OAAO,EACP,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,GACjB,EAAE,0BAA0B,kDAqF5B"}
@@ -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,26 +0,0 @@
1
- import React from 'react';
2
- import { type CountryCode } from './phone-input';
3
- interface IdentityVerificationFlowProps {
4
- mode: 'identity' | 'otp';
5
- phoneNumber: string;
6
- setPhoneNumber: React.Dispatch<React.SetStateAction<string>>;
7
- selectedCountry: CountryCode;
8
- setSelectedCountry: React.Dispatch<React.SetStateAction<CountryCode>>;
9
- otp: string;
10
- setOTP: React.Dispatch<React.SetStateAction<string>>;
11
- displayError?: string;
12
- isSetupMode: boolean;
13
- loading: boolean;
14
- isResending: boolean;
15
- resendCooldown: number;
16
- retryCount: number;
17
- clearLocalError: () => void;
18
- clearSessionError: () => void;
19
- onPhoneSubmit: () => void;
20
- onOTPSubmit: (code?: string) => void;
21
- onEditPhone: () => void;
22
- onOTPResend: () => void;
23
- }
24
- export declare function IdentityVerificationFlow({ mode, phoneNumber, setPhoneNumber, selectedCountry, setSelectedCountry, otp, setOTP, displayError, isSetupMode, loading, isResending, resendCooldown, retryCount, clearLocalError, clearSessionError, onPhoneSubmit, onOTPSubmit, onEditPhone, onOTPResend, }: IdentityVerificationFlowProps): import("react/jsx-runtime").JSX.Element;
25
- export {};
26
- //# sourceMappingURL=IdentityVerificationFlow.d.ts.map
@@ -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 +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 +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,25 +0,0 @@
1
- import * as React from "react";
2
- export interface PayOSFooterProps {
3
- /**
4
- * Additional CSS classes
5
- */
6
- className?: string;
7
- }
8
- /**
9
- *"Powered by PayOS" footer component
10
- *
11
- * Features:
12
- * - Consistent branding footer across all views
13
- * - ShieldCheck icon for trust signal
14
- * - PayOS logo with text fallback
15
- * - Dark mode support
16
- * - Flexible positioning via className prop
17
- *
18
- * @example
19
- * ```tsx
20
- * <PayOSFooter />
21
- * <PayOSFooter className="mt-8" />
22
- * ```
23
- */
24
- export declare const PayOSFooter: React.ForwardRefExoticComponent<PayOSFooterProps & React.RefAttributes<HTMLDivElement>>;
25
- //# sourceMappingURL=PayOSFooter.d.ts.map