@payos-inc/payos-react 1.0.42 → 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
@@ -37,7 +37,9 @@ interface PaymentSheetPaymentFlowProps {
37
37
  handleCardSelect: (cardId: string) => void;
38
38
  handlePaymentSubmit: () => void;
39
39
  showMethodList: () => void;
40
+ shareCards: (cardIds: string[], consentText: string) => Promise<boolean>;
41
+ skipShareCards: (nextView?: PaymentView) => void;
42
+ reopenShareCards: () => void;
40
43
  }
41
- export declare function PaymentSheetPaymentFlow({ session, isSetupMode, isAgentMode, hasSelectedCard, hasSavedCards, paymentView, loading, passkeyLoading, skipToAuth, passkeyClosed, cvc, setCvc, displayError, linkSession, isLinkCheckoutAvailable, showShippingAsBilling, cardElementUrl, cardElementApiUrl, environment, theme, cardElementStyles, binsWarning, onBinWarning, clearError, setDefaultCard, showAddCard, deletePaymentCard, completeSetup, setPaymentView, handleCardAdd, handleCardSelect, handlePaymentSubmit, showMethodList, }: PaymentSheetPaymentFlowProps): import("react/jsx-runtime").JSX.Element | null;
44
+ export declare function PaymentSheetPaymentFlow({ session, isSetupMode, isAgentMode, hasSelectedCard, hasSavedCards, paymentView, loading, passkeyLoading, skipToAuth, passkeyClosed, cvc, setCvc, displayError, linkSession, isLinkCheckoutAvailable, showShippingAsBilling, cardElementUrl, cardElementApiUrl, environment, theme, cardElementStyles, binsWarning, onBinWarning, clearError, setDefaultCard, showAddCard, deletePaymentCard, completeSetup, setPaymentView, handleCardAdd, handleCardSelect, handlePaymentSubmit, showMethodList, shareCards, skipShareCards, reopenShareCards, }: PaymentSheetPaymentFlowProps): import("react/jsx-runtime").JSX.Element | null;
42
45
  export {};
43
- //# sourceMappingURL=PaymentSheetPaymentFlow.d.ts.map
@@ -22,4 +22,3 @@ interface PaymentSheetShellProps {
22
22
  }
23
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
24
  export {};
25
- //# sourceMappingURL=PaymentSheetShell.d.ts.map
@@ -25,4 +25,3 @@ export declare function PaymentSheetSuccessView({ session, isSetupMode, isAgentM
25
25
  isSetupMode: boolean;
26
26
  isAgentMode: boolean;
27
27
  }): import("react/jsx-runtime").JSX.Element;
28
- //# sourceMappingURL=PaymentSheetStatusViews.d.ts.map
@@ -61,4 +61,3 @@ interface PriceTagProps {
61
61
  }
62
62
  export declare const PriceTag: React.FC<PriceTagProps>;
63
63
  export {};
64
- //# sourceMappingURL=PriceTag.d.ts.map
@@ -64,4 +64,3 @@ interface ReceiptPanelProps {
64
64
  }
65
65
  export declare const ReceiptPanel: React.FC<ReceiptPanelProps>;
66
66
  export {};
67
- //# sourceMappingURL=ReceiptPanel.d.ts.map
@@ -6,4 +6,3 @@ interface ViewHeaderProps {
6
6
  }
7
7
  export declare const ViewHeader: React.FC<ViewHeaderProps>;
8
8
  export {};
9
- //# sourceMappingURL=ViewHeader.d.ts.map
@@ -87,7 +87,6 @@ export interface DrawerProps {
87
87
  * - Gray canvas background (bg-gray-50 dark:bg-slate-900 black:bg-black) per Card Stack Architecture
88
88
  * - Merchant-first header with close button
89
89
  * - Drag handle for visual affordance (mobile only)
90
- * - Smooth animations (slide-up on mobile, slide-in-right on desktop)
91
90
  * - Dark mode support
92
91
  * - Overlay backdrop
93
92
  *
@@ -104,4 +103,3 @@ export interface DrawerProps {
104
103
  * ```
105
104
  */
106
105
  export declare const PayOSDrawer: React.ForwardRefExoticComponent<DrawerProps & React.RefAttributes<HTMLDivElement>>;
107
- //# sourceMappingURL=drawer.d.ts.map
@@ -41,4 +41,3 @@ interface OrderSummaryProps {
41
41
  }
42
42
  export declare const OrderSummary: React.ForwardRefExoticComponent<OrderSummaryProps & React.RefAttributes<HTMLDivElement>>;
43
43
  export {};
44
- //# sourceMappingURL=order-summary.d.ts.map
@@ -42,4 +42,3 @@ interface OTPInputProps {
42
42
  }
43
43
  export declare const OTPInput: React.ForwardRefExoticComponent<OTPInputProps & React.RefAttributes<HTMLDivElement>>;
44
44
  export {};
45
- //# sourceMappingURL=otp-input.d.ts.map
@@ -27,4 +27,3 @@ interface PhoneInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElemen
27
27
  }
28
28
  export declare const PhoneInput: React.ForwardRefExoticComponent<PhoneInputProps & React.RefAttributes<HTMLInputElement>>;
29
29
  export { COUNTRIES };
30
- //# sourceMappingURL=phone-input.d.ts.map
@@ -3,4 +3,3 @@ export type ResolvedPayOSThemeMode = Exclude<PayOSThemeMode, 'auto'>;
3
3
  export declare function resolvePayOSThemeMode(theme?: PayOSThemeMode): ResolvedPayOSThemeMode | null;
4
4
  export declare function payOSThemeClass(theme?: PayOSThemeMode): string;
5
5
  export declare function usePayOSThemeMode(theme: PayOSThemeMode | undefined, active: boolean): void;
6
- //# sourceMappingURL=themeMode.d.ts.map
@@ -26,4 +26,3 @@ export declare function usePaymentSheetDisplayData({ session, isSetupMode, payme
26
26
  isLinkCheckoutAvailable: boolean;
27
27
  };
28
28
  export {};
29
- //# sourceMappingURL=usePaymentSheetDisplayData.d.ts.map
@@ -36,4 +36,3 @@ export declare function usePaymentSheetLifecycle({ theme, open, linkSession, err
36
36
  secondsRemaining: number | null;
37
37
  };
38
38
  export {};
39
- //# sourceMappingURL=usePaymentSheetLifecycle.d.ts.map
@@ -15,4 +15,3 @@ export declare function usePaymentSheetSkipToAuth({ skipToAuth, isAgentMode, ope
15
15
  markPasskeyClosed: () => void;
16
16
  };
17
17
  export {};
18
- //# sourceMappingURL=usePaymentSheetSkipToAuth.d.ts.map
@@ -11,4 +11,3 @@ interface UsePaymentSheetSkipToLinkArgs {
11
11
  }
12
12
  export declare function usePaymentSheetSkipToLink({ skipToLink, open, phase, loading, walletUserId, isLinkCheckoutAvailable, linkSession, }: UsePaymentSheetSkipToLinkArgs): void;
13
13
  export {};
14
- //# sourceMappingURL=usePaymentSheetSkipToLink.d.ts.map
@@ -58,4 +58,3 @@ export interface AgentRegistrationViewProps {
58
58
  merchantName?: string;
59
59
  }
60
60
  export declare const AgentRegistrationView: React.FC<AgentRegistrationViewProps>;
61
- //# sourceMappingURL=AgentRegistrationView.d.ts.map
@@ -64,7 +64,7 @@ interface CardAddViewProps {
64
64
  */
65
65
  customBaseUrl?: string;
66
66
  /**
67
- * Backend API URL for CardElement iframe (for local dev - iframe on Azure can't reach localhost)
67
+ * API endpoint override supplied to the hosted CardElement for development.
68
68
  * This is passed to the iframe via customParams so it knows where to make API calls
69
69
  */
70
70
  devApiUrl?: string;
@@ -98,4 +98,3 @@ interface CardAddViewProps {
98
98
  }
99
99
  export declare const CardAddView: React.FC<CardAddViewProps>;
100
100
  export {};
101
- //# sourceMappingURL=CardAddView.d.ts.map
@@ -92,4 +92,3 @@ export interface CheckoutViewProps {
92
92
  error?: string;
93
93
  }
94
94
  export declare const CheckoutView: React.FC<CheckoutViewProps>;
95
- //# sourceMappingURL=CheckoutView.d.ts.map
@@ -48,4 +48,3 @@ interface IdentityViewProps {
48
48
  }
49
49
  export declare const IdentityView: React.FC<IdentityViewProps>;
50
50
  export {};
51
- //# sourceMappingURL=IdentityView.d.ts.map
@@ -10,4 +10,3 @@ interface LinkBrandProps {
10
10
  }
11
11
  export declare function LinkBrand({ className, markTone, wordmarkTone, }: LinkBrandProps): import("react/jsx-runtime").JSX.Element;
12
12
  export default LinkBrand;
13
- //# sourceMappingURL=LinkBrand.d.ts.map
@@ -28,4 +28,3 @@ interface LinkCheckoutViewProps {
28
28
  }
29
29
  export declare function LinkCheckoutView({ methods, selectedMethodId, onSelectMethod, onContinue, onCancel, continueLabel, onOpenLinkWallet, onReopenApproval, subState, approvalExpiresAt, errorMessage, onDismissError, }: LinkCheckoutViewProps): import("react/jsx-runtime").JSX.Element;
30
30
  export default LinkCheckoutView;
31
- //# sourceMappingURL=LinkCheckoutView.d.ts.map
@@ -15,4 +15,3 @@ interface LinkConnectViewProps {
15
15
  }
16
16
  export declare function LinkConnectView({ passphrase, popupBlocked, onReopen, onCancel, }: LinkConnectViewProps): import("react/jsx-runtime").JSX.Element;
17
17
  export default LinkConnectView;
18
- //# sourceMappingURL=LinkConnectView.d.ts.map
@@ -10,4 +10,3 @@ interface LinkDeniedViewProps {
10
10
  }
11
11
  export declare function LinkDeniedView({ reason, onRetry, onDismiss, }: LinkDeniedViewProps): import("react/jsx-runtime").JSX.Element;
12
12
  export default LinkDeniedView;
13
- //# sourceMappingURL=LinkDeniedView.d.ts.map
@@ -8,4 +8,3 @@ interface LinkLoadingViewProps {
8
8
  }
9
9
  export declare function LinkLoadingView({ message, }: LinkLoadingViewProps): import("react/jsx-runtime").JSX.Element;
10
10
  export default LinkLoadingView;
11
- //# sourceMappingURL=LinkLoadingView.d.ts.map
@@ -8,4 +8,3 @@ interface LinkSuccessViewProps {
8
8
  }
9
9
  export declare function LinkSuccessView({ message, }: LinkSuccessViewProps): import("react/jsx-runtime").JSX.Element;
10
10
  export default LinkSuccessView;
11
- //# sourceMappingURL=LinkSuccessView.d.ts.map
@@ -16,4 +16,3 @@ interface ManageThirdPartyViewProps {
16
16
  }
17
17
  export declare function ManageThirdPartyView({ onDisconnect, onClose, onManageLink, linkConnected, }: ManageThirdPartyViewProps): import("react/jsx-runtime").JSX.Element;
18
18
  export default ManageThirdPartyView;
19
- //# sourceMappingURL=ManageThirdPartyView.d.ts.map
@@ -82,6 +82,14 @@ interface MethodListViewProps {
82
82
  * Should navigate to AddCardView
83
83
  */
84
84
  onAddNewCard: () => void;
85
+ /**
86
+ * Optional row to reopen the "Use your saved cards" step while the person
87
+ * still has PayOS wallet cards not shared with this merchant.
88
+ */
89
+ walletCardsOption?: {
90
+ count: number;
91
+ onOpen: () => void;
92
+ };
85
93
  /**
86
94
  * Optional Link row. When present, renders between saved cards and "Add new card".
87
95
  * Omit entirely when the merchant or user hasn't enabled Link.
@@ -113,4 +121,3 @@ interface MethodListViewProps {
113
121
  }
114
122
  export declare const MethodListView: React.FC<MethodListViewProps>;
115
123
  export {};
116
- //# sourceMappingURL=MethodListView.d.ts.map
@@ -66,4 +66,3 @@ interface OTPViewProps {
66
66
  }
67
67
  export declare const OTPView: React.FC<OTPViewProps>;
68
68
  export {};
69
- //# sourceMappingURL=OTPView.d.ts.map
@@ -0,0 +1,24 @@
1
+ import * as React from "react";
2
+ import type { WalletCard } from "../../../types/session";
3
+ /**
4
+ * ShareCardsView - consent step
5
+ *
6
+ * A person with an existing PayOS wallet chooses which of their saved cards
7
+ * this merchant may use. Nothing is pre-selected; the merchant only sees the
8
+ * cards the person picks.
9
+ */
10
+ interface ShareCardsViewProps {
11
+ /** The person's saved cards not yet shared with this merchant */
12
+ cards: WalletCard[];
13
+ /** Shown in the prompt; falls back to "this merchant" */
14
+ merchantName?: string;
15
+ isLoading?: boolean;
16
+ error?: string;
17
+ /** Share the picked cards; consentText is the wording the person saw */
18
+ onShare: (cardIds: string[], consentText: string) => void;
19
+ /** Continue without sharing */
20
+ onSkip: () => void;
21
+ onAddNewCard: () => void;
22
+ }
23
+ export declare const ShareCardsView: React.FC<ShareCardsViewProps>;
24
+ export {};
@@ -46,4 +46,3 @@ export interface SuccessViewProps {
46
46
  passkeyEnrolled?: boolean;
47
47
  }
48
48
  export declare const SuccessView: React.FC<SuccessViewProps>;
49
- //# sourceMappingURL=SuccessView.d.ts.map
@@ -13,4 +13,3 @@ export interface VisaIframeViewProps {
13
13
  onCancel?: () => void;
14
14
  }
15
15
  export declare const VisaIframeView: React.FC<VisaIframeViewProps>;
16
- //# sourceMappingURL=VisaIframeView.d.ts.map
@@ -20,4 +20,3 @@ export interface VisaMethodViewProps {
20
20
  isLoading?: boolean;
21
21
  }
22
22
  export declare const VisaMethodView: React.FC<VisaMethodViewProps>;
23
- //# sourceMappingURL=VisaMethodView.d.ts.map
@@ -42,4 +42,3 @@ export interface VisaOtpViewProps {
42
42
  canRetry?: boolean;
43
43
  }
44
44
  export declare const VisaOtpView: React.FC<VisaOtpViewProps>;
45
- //# sourceMappingURL=VisaOtpView.d.ts.map
@@ -31,4 +31,3 @@ interface WelcomeBackViewProps {
31
31
  }
32
32
  export declare const WelcomeBackView: React.FC<WelcomeBackViewProps>;
33
33
  export {};
34
- //# sourceMappingURL=WelcomeBackView.d.ts.map
@@ -7,4 +7,3 @@ interface CardBrandIconProps {
7
7
  }
8
8
  export declare const CardBrandIcon: React.FC<CardBrandIconProps>;
9
9
  export {};
10
- //# sourceMappingURL=CardBrandIcon.d.ts.map
@@ -22,4 +22,3 @@ interface ConfirmDialogProps {
22
22
  }
23
23
  export declare const ConfirmDialog: React.FC<ConfirmDialogProps>;
24
24
  export {};
25
- //# sourceMappingURL=ConfirmDialog.d.ts.map
@@ -10,4 +10,3 @@ export interface DigitalCardProps {
10
10
  className?: string;
11
11
  }
12
12
  export declare const DigitalCard: React.FC<DigitalCardProps>;
13
- //# sourceMappingURL=DigitalCard.d.ts.map
@@ -3,7 +3,7 @@ import { type VariantProps } from "class-variance-authority";
3
3
  declare const buttonVariants: (props?: ({
4
4
  variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
5
5
  size?: "default" | "sm" | "lg" | "icon" | null | undefined;
6
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
6
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
7
  export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
8
8
  asChild?: boolean;
9
9
  isLoading?: boolean;
@@ -11,4 +11,3 @@ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElemen
11
11
  }
12
12
  declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
13
13
  export { Button, buttonVariants };
14
- //# sourceMappingURL=button.d.ts.map
@@ -2,7 +2,7 @@ import * as React from "react";
2
2
  import { type VariantProps } from "class-variance-authority";
3
3
  declare const cardVariants: (props?: ({
4
4
  variant?: "default" | "flat" | "transparent" | null | undefined;
5
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
6
  export interface CardProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardVariants> {
7
7
  }
8
8
  declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
@@ -12,4 +12,3 @@ declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttribu
12
12
  declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
13
13
  declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
14
14
  export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };
15
- //# sourceMappingURL=card.d.ts.map
@@ -3,4 +3,3 @@ export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement>
3
3
  }
4
4
  declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
5
5
  export { Input };
6
- //# sourceMappingURL=input.d.ts.map
@@ -1,6 +1,5 @@
1
1
  import * as React from "react";
2
2
  import * as LabelPrimitive from "@radix-ui/react-label";
3
3
  import { type VariantProps } from "class-variance-authority";
4
- declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string> & React.RefAttributes<HTMLLabelElement>>;
4
+ declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & React.RefAttributes<HTMLLabelElement>>;
5
5
  export { Label };
6
- //# sourceMappingURL=label.d.ts.map
@@ -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,14 @@ 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;
65
73
  complete: (options?: {
66
74
  passkeyAuthenticated?: boolean;
67
75
  }) => Promise<CompletionResult>;
@@ -84,4 +92,3 @@ export interface UseSessionOptions {
84
92
  preferMethodList?: boolean;
85
93
  }
86
94
  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,6 +26,8 @@ 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 {
@@ -86,6 +88,13 @@ export declare function resendOTP(baseUrl: string, token: string, previousRefere
86
88
  * @returns Wallet user details including walletUserId and saved cards
87
89
  */
88
90
  export declare function processVerifiedWalletUser(baseUrl: string, token: string, phone: string, verificationId: string, countryCode?: string): Promise<WalletUserResult>;
91
+ /**
92
+ * Share more of the person's saved cards with this merchant.
93
+ * Appends to the cards already shared, so the merchant's default is kept.
94
+ * Requires a session the person verified by one-time code.
95
+ * @returns The card ids the merchant may now use
96
+ */
97
+ export declare function shareCardsWithOrganization(baseUrl: string, token: string, walletUserId: string, cardIds: string[], consentText: string): Promise<string[]>;
89
98
  /**
90
99
  * Get saved cards for a wallet user
91
100
  * @param baseUrl API base URL
@@ -403,4 +412,3 @@ export declare function checkDeviceTrust(baseUrl: string, token: string, deviceI
403
412
  export declare function registerTrustedDevice(baseUrl: string, token: string, deviceId: string, walletUserId: string): Promise<{
404
413
  success: boolean;
405
414
  }>;
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