@payos-inc/payos-react 1.0.42 → 1.2.0-staging.91
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.
- package/LICENSE +96 -0
- package/README.md +160 -0
- package/dist/THIRD_PARTY_NOTICES.txt +549 -0
- package/dist/payos-react.cjs +50 -0
- package/dist/payos-react.css +1 -1
- package/dist/payos-react.esm.js +17 -11
- package/dist/payos-react.min.js +2 -1
- package/dist/payos-react.mjs +50 -0
- package/dist/types/index.d.ts +1 -57
- package/dist/types/payos-passkey-js/src/api/ApiClient.d.ts +48 -0
- package/dist/types/payos-passkey-js/src/core/PayOSPasskey.d.ts +114 -0
- package/dist/types/payos-passkey-js/src/core/types.d.ts +100 -0
- package/dist/types/payos-passkey-js/src/index.d.ts +9 -0
- package/dist/types/payos-passkey-js/src/services/mastercard/MastercardSDKService.d.ts +61 -0
- package/dist/types/payos-passkey-js/src/services/visa/VisaSDKService.d.ts +90 -0
- package/dist/types/payos-passkey-js/src/utils/diagnostics.d.ts +30 -0
- package/dist/types/payos-passkey-js/src/utils/logger.d.ts +36 -0
- package/dist/{components → types/payos-react/src/components}/payos/ActiveCardWidget.d.ts +0 -1
- package/dist/{components → types/payos-react/src/components}/payos/AgentRegistrationFlow.d.ts +1 -3
- package/dist/{components → types/payos-react/src/components}/payos/ConnectStripeLinkButton.d.ts +0 -1
- package/dist/types/{components → payos-react/src/components}/payos/IdentityVerificationFlow.d.ts +0 -1
- package/dist/{components → types/payos-react/src/components}/payos/LinkPaymentFlow.d.ts +0 -1
- package/dist/{components → types/payos-react/src/components}/payos/LinkSessionContent.d.ts +0 -1
- package/dist/types/{components → payos-react/src/components}/payos/PayOSFooter.d.ts +0 -1
- package/dist/types/{components → payos-react/src/components}/payos/PayWithLinkButton.d.ts +0 -1
- package/dist/{components → types/payos-react/src/components}/payos/PaymentMethodRow.d.ts +0 -1
- package/dist/{components → types/payos-react/src/components}/payos/PaymentSheet.d.ts +3 -4
- package/dist/types/{components → payos-react/src/components}/payos/PaymentSheetContent.d.ts +6 -4
- package/dist/types/{components → payos-react/src/components}/payos/PaymentSheetPaymentFlow.d.ts +4 -2
- package/dist/{components → types/payos-react/src/components}/payos/PaymentSheetShell.d.ts +0 -1
- package/dist/types/{components → payos-react/src/components}/payos/PaymentSheetStatusViews.d.ts +3 -2
- package/dist/types/{components → payos-react/src/components}/payos/PriceTag.d.ts +0 -1
- package/dist/types/{components → payos-react/src/components}/payos/ReceiptPanel.d.ts +0 -1
- package/dist/types/{components → payos-react/src/components}/payos/ViewHeader.d.ts +2 -1
- package/dist/types/{components → payos-react/src/components}/payos/drawer.d.ts +5 -2
- package/dist/{components → types/payos-react/src/components}/payos/order-summary.d.ts +0 -1
- package/dist/{components → types/payos-react/src/components}/payos/otp-input.d.ts +0 -1
- package/dist/types/{components → payos-react/src/components}/payos/phone-input.d.ts +0 -1
- package/dist/{components → types/payos-react/src/components}/payos/themeMode.d.ts +0 -1
- package/dist/types/{components → payos-react/src/components}/payos/usePaymentSheetDisplayData.d.ts +0 -1
- package/dist/types/{components → payos-react/src/components}/payos/usePaymentSheetLifecycle.d.ts +0 -1
- package/dist/{components → types/payos-react/src/components}/payos/usePaymentSheetSkipToAuth.d.ts +0 -1
- package/dist/{components → types/payos-react/src/components}/payos/usePaymentSheetSkipToLink.d.ts +0 -1
- package/dist/{components → types/payos-react/src/components}/payos/views/AgentRegistrationView.d.ts +0 -1
- package/dist/types/{components → payos-react/src/components}/payos/views/CardAddView.d.ts +1 -2
- package/dist/types/{components → payos-react/src/components}/payos/views/CheckoutView.d.ts +0 -1
- package/dist/types/{components → payos-react/src/components}/payos/views/IdentityView.d.ts +0 -1
- package/dist/{components → types/payos-react/src/components}/payos/views/LinkBrand.d.ts +0 -1
- package/dist/{components → types/payos-react/src/components}/payos/views/LinkCheckoutView.d.ts +0 -1
- package/dist/types/{components → payos-react/src/components}/payos/views/LinkConnectView.d.ts +0 -1
- package/dist/types/{components → payos-react/src/components}/payos/views/LinkDeniedView.d.ts +0 -1
- package/dist/{components → types/payos-react/src/components}/payos/views/LinkLoadingView.d.ts +0 -1
- package/dist/types/{components → payos-react/src/components}/payos/views/LinkSuccessView.d.ts +0 -1
- package/dist/{components → types/payos-react/src/components}/payos/views/ManageThirdPartyView.d.ts +0 -1
- package/dist/{components → types/payos-react/src/components}/payos/views/MethodListView.d.ts +8 -1
- package/dist/types/{components → payos-react/src/components}/payos/views/OTPView.d.ts +0 -1
- package/dist/types/payos-react/src/components/payos/views/ShareCardsView.d.ts +28 -0
- package/dist/types/{components → payos-react/src/components}/payos/views/SuccessView.d.ts +0 -1
- package/dist/{components → types/payos-react/src/components}/payos/views/VisaIframeView.d.ts +0 -1
- package/dist/types/{components → payos-react/src/components}/payos/views/VisaMethodView.d.ts +0 -1
- package/dist/{components → types/payos-react/src/components}/payos/views/VisaOtpView.d.ts +0 -1
- package/dist/{components → types/payos-react/src/components}/payos/views/WelcomeBackView.d.ts +0 -1
- package/dist/types/payos-react/src/components/ui/CardArt.d.ts +22 -0
- package/dist/types/{components → payos-react/src/components}/ui/CardBrandIcon.d.ts +0 -1
- package/dist/types/{components → payos-react/src/components}/ui/ConfirmDialog.d.ts +0 -1
- package/dist/types/{components → payos-react/src/components}/ui/DigitalCard.d.ts +0 -1
- package/dist/types/payos-react/src/components/ui/HelpPopover.d.ts +17 -0
- package/dist/types/{components → payos-react/src/components}/ui/button.d.ts +1 -2
- package/dist/types/{components → payos-react/src/components}/ui/card.d.ts +1 -2
- package/dist/types/{components → payos-react/src/components}/ui/input.d.ts +0 -1
- package/dist/types/{components → payos-react/src/components}/ui/label.d.ts +1 -2
- package/dist/types/{components → payos-react/src/components}/ui/separator.d.ts +0 -1
- package/dist/{hooks → types/payos-react/src/hooks}/useBiometricType.d.ts +0 -1
- package/dist/types/{hooks → payos-react/src/hooks}/useBodyScrollLock.d.ts +0 -1
- package/dist/types/{hooks → payos-react/src/hooks}/useCardElement.d.ts +1 -2
- package/dist/types/{hooks → payos-react/src/hooks}/useLinkAuth.d.ts +0 -1
- package/dist/types/{hooks → payos-react/src/hooks}/useLinkDeviceAuthPoll.d.ts +0 -1
- package/dist/types/{hooks → payos-react/src/hooks}/useLinkMethods.d.ts +0 -1
- package/dist/{hooks → types/payos-react/src/hooks}/useLinkSession.d.ts +0 -1
- package/dist/{hooks → types/payos-react/src/hooks}/useLinkSpendStatusPoll.d.ts +0 -1
- package/dist/types/{hooks → payos-react/src/hooks}/usePasskeySDK.d.ts +2 -4
- package/dist/{hooks → types/payos-react/src/hooks}/useSession.d.ts +14 -1
- package/dist/types/{hooks → payos-react/src/hooks}/useVisualViewport.d.ts +0 -1
- package/dist/{index.d.ts → types/payos-react/src/index.d.ts} +3 -4
- package/dist/{lib → types/payos-react/src/lib}/utils.d.ts +0 -1
- package/dist/{services → types/payos-react/src/services}/apiService.d.ts +12 -2
- package/dist/{services → types/payos-react/src/services}/linkTokenService.d.ts +0 -1
- package/dist/types/{cardElement.d.ts → payos-react/src/types/cardElement.d.ts} +2 -3
- package/dist/types/{drawer.d.ts → payos-react/src/types/drawer.d.ts} +0 -1
- package/dist/types/{types → payos-react/src/types}/index.d.ts +0 -1
- package/dist/types/{order.d.ts → payos-react/src/types/order.d.ts} +0 -1
- package/dist/types/{types → payos-react/src/types}/payment.d.ts +1 -2
- package/dist/types/{session.d.ts → payos-react/src/types/session.d.ts} +17 -1
- package/dist/types/{utils → payos-react/src/utils}/credentialStatus.d.ts +0 -1
- package/dist/{utils → types/payos-react/src/utils}/deviceFingerprint.d.ts +0 -1
- package/dist/types/{utils → payos-react/src/utils}/environment.d.ts +0 -1
- package/dist/{utils → types/payos-react/src/utils}/formatting.d.ts +0 -1
- package/dist/types/{utils → payos-react/src/utils}/linkPopup.d.ts +0 -1
- package/dist/types/payos-react/src/utils/organizationName.d.ts +8 -0
- package/dist/types/{utils → payos-react/src/utils}/selectCard.d.ts +0 -1
- package/dist/types/{utils → payos-react/src/utils}/text.d.ts +0 -1
- package/dist/{utils → types/payos-react/src/utils}/validation.d.ts +0 -1
- package/package.json +38 -13
- package/dist/components/identity/IdentityBar.d.ts +0 -8
- package/dist/components/identity/IdentityBar.d.ts.map +0 -1
- package/dist/components/order/OrderSummaryAccordion.d.ts +0 -9
- package/dist/components/order/OrderSummaryAccordion.d.ts.map +0 -1
- package/dist/components/order/ShipmentCard.d.ts +0 -8
- package/dist/components/order/ShipmentCard.d.ts.map +0 -1
- package/dist/components/payos/ActiveCardWidget.d.ts.map +0 -1
- package/dist/components/payos/AgentRegistrationFlow.d.ts.map +0 -1
- package/dist/components/payos/ConnectStripeLinkButton.d.ts.map +0 -1
- package/dist/components/payos/IdentityVerificationFlow.d.ts +0 -26
- package/dist/components/payos/IdentityVerificationFlow.d.ts.map +0 -1
- package/dist/components/payos/LinkPaymentFlow.d.ts.map +0 -1
- package/dist/components/payos/LinkSessionContent.d.ts.map +0 -1
- package/dist/components/payos/PayOSFooter.d.ts +0 -25
- package/dist/components/payos/PayOSFooter.d.ts.map +0 -1
- package/dist/components/payos/PayWithLinkButton.d.ts +0 -74
- package/dist/components/payos/PayWithLinkButton.d.ts.map +0 -1
- package/dist/components/payos/PaymentMethodRow.d.ts.map +0 -1
- package/dist/components/payos/PaymentSheet.d.ts.map +0 -1
- package/dist/components/payos/PaymentSheetContent.d.ts +0 -80
- package/dist/components/payos/PaymentSheetContent.d.ts.map +0 -1
- package/dist/components/payos/PaymentSheetPaymentFlow.d.ts +0 -43
- package/dist/components/payos/PaymentSheetPaymentFlow.d.ts.map +0 -1
- package/dist/components/payos/PaymentSheetShell.d.ts.map +0 -1
- package/dist/components/payos/PaymentSheetStatusViews.d.ts +0 -28
- package/dist/components/payos/PaymentSheetStatusViews.d.ts.map +0 -1
- package/dist/components/payos/PriceTag.d.ts +0 -64
- package/dist/components/payos/PriceTag.d.ts.map +0 -1
- package/dist/components/payos/ReceiptPanel.d.ts +0 -67
- package/dist/components/payos/ReceiptPanel.d.ts.map +0 -1
- package/dist/components/payos/ViewHeader.d.ts +0 -9
- package/dist/components/payos/ViewHeader.d.ts.map +0 -1
- package/dist/components/payos/drawer.d.ts +0 -107
- package/dist/components/payos/drawer.d.ts.map +0 -1
- package/dist/components/payos/order-summary.d.ts.map +0 -1
- package/dist/components/payos/otp-input.d.ts.map +0 -1
- package/dist/components/payos/phone-input.d.ts +0 -30
- package/dist/components/payos/phone-input.d.ts.map +0 -1
- package/dist/components/payos/themeMode.d.ts.map +0 -1
- package/dist/components/payos/usePaymentSheetDebug.d.ts +0 -22
- package/dist/components/payos/usePaymentSheetDebug.d.ts.map +0 -1
- package/dist/components/payos/usePaymentSheetDisplayData.d.ts +0 -29
- package/dist/components/payos/usePaymentSheetDisplayData.d.ts.map +0 -1
- package/dist/components/payos/usePaymentSheetLifecycle.d.ts +0 -39
- package/dist/components/payos/usePaymentSheetLifecycle.d.ts.map +0 -1
- package/dist/components/payos/usePaymentSheetSkipToAuth.d.ts.map +0 -1
- package/dist/components/payos/usePaymentSheetSkipToLink.d.ts.map +0 -1
- package/dist/components/payos/views/AgentRegistrationView.d.ts.map +0 -1
- package/dist/components/payos/views/CardAddView.d.ts +0 -101
- package/dist/components/payos/views/CardAddView.d.ts.map +0 -1
- package/dist/components/payos/views/CheckoutView.d.ts +0 -95
- package/dist/components/payos/views/CheckoutView.d.ts.map +0 -1
- package/dist/components/payos/views/IdentityView.d.ts +0 -51
- package/dist/components/payos/views/IdentityView.d.ts.map +0 -1
- package/dist/components/payos/views/LinkBrand.d.ts.map +0 -1
- package/dist/components/payos/views/LinkCheckoutView.d.ts.map +0 -1
- package/dist/components/payos/views/LinkConnectView.d.ts +0 -18
- package/dist/components/payos/views/LinkConnectView.d.ts.map +0 -1
- package/dist/components/payos/views/LinkDeniedView.d.ts +0 -13
- package/dist/components/payos/views/LinkDeniedView.d.ts.map +0 -1
- package/dist/components/payos/views/LinkLoadingView.d.ts.map +0 -1
- package/dist/components/payos/views/LinkSuccessView.d.ts +0 -11
- package/dist/components/payos/views/LinkSuccessView.d.ts.map +0 -1
- package/dist/components/payos/views/ManageThirdPartyView.d.ts.map +0 -1
- package/dist/components/payos/views/MethodListView.d.ts.map +0 -1
- package/dist/components/payos/views/OTPView.d.ts +0 -69
- package/dist/components/payos/views/OTPView.d.ts.map +0 -1
- package/dist/components/payos/views/SuccessView.d.ts +0 -49
- package/dist/components/payos/views/SuccessView.d.ts.map +0 -1
- package/dist/components/payos/views/VisaIframeView.d.ts.map +0 -1
- package/dist/components/payos/views/VisaMethodView.d.ts +0 -23
- package/dist/components/payos/views/VisaMethodView.d.ts.map +0 -1
- package/dist/components/payos/views/VisaOtpView.d.ts.map +0 -1
- package/dist/components/payos/views/WelcomeBackView.d.ts.map +0 -1
- package/dist/components/ui/CardBrandIcon.d.ts +0 -10
- package/dist/components/ui/CardBrandIcon.d.ts.map +0 -1
- package/dist/components/ui/ConfirmDialog.d.ts +0 -25
- package/dist/components/ui/ConfirmDialog.d.ts.map +0 -1
- package/dist/components/ui/DigitalCard.d.ts +0 -13
- package/dist/components/ui/DigitalCard.d.ts.map +0 -1
- package/dist/components/ui/InfoTooltip.d.ts +0 -8
- package/dist/components/ui/InfoTooltip.d.ts.map +0 -1
- package/dist/components/ui/PinInput.d.ts +0 -12
- package/dist/components/ui/PinInput.d.ts.map +0 -1
- package/dist/components/ui/button.d.ts +0 -14
- package/dist/components/ui/button.d.ts.map +0 -1
- package/dist/components/ui/card.d.ts +0 -15
- package/dist/components/ui/card.d.ts.map +0 -1
- package/dist/components/ui/input.d.ts +0 -6
- package/dist/components/ui/input.d.ts.map +0 -1
- package/dist/components/ui/label.d.ts +0 -6
- package/dist/components/ui/label.d.ts.map +0 -1
- package/dist/components/ui/separator.d.ts +0 -5
- package/dist/components/ui/separator.d.ts.map +0 -1
- package/dist/hooks/index.d.ts +0 -8
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/useBiometricType.d.ts.map +0 -1
- package/dist/hooks/useBodyScrollLock.d.ts +0 -32
- package/dist/hooks/useBodyScrollLock.d.ts.map +0 -1
- package/dist/hooks/useCardElement.d.ts +0 -135
- package/dist/hooks/useCardElement.d.ts.map +0 -1
- package/dist/hooks/useCheckoutFlow.d.ts +0 -29
- package/dist/hooks/useCheckoutFlow.d.ts.map +0 -1
- package/dist/hooks/useDrawerState.d.ts +0 -4
- package/dist/hooks/useDrawerState.d.ts.map +0 -1
- package/dist/hooks/useLinkAuth.d.ts +0 -24
- package/dist/hooks/useLinkAuth.d.ts.map +0 -1
- package/dist/hooks/useLinkDeviceAuthPoll.d.ts +0 -29
- package/dist/hooks/useLinkDeviceAuthPoll.d.ts.map +0 -1
- package/dist/hooks/useLinkMethods.d.ts +0 -28
- package/dist/hooks/useLinkMethods.d.ts.map +0 -1
- package/dist/hooks/useLinkSession.d.ts.map +0 -1
- package/dist/hooks/useLinkSpendStatusPoll.d.ts.map +0 -1
- package/dist/hooks/usePasskeySDK.d.ts +0 -103
- package/dist/hooks/usePasskeySDK.d.ts.map +0 -1
- package/dist/hooks/useSession.d.ts.map +0 -1
- package/dist/hooks/useVisualViewport.d.ts +0 -15
- package/dist/hooks/useVisualViewport.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/lib/theme.d.ts +0 -53
- package/dist/lib/theme.d.ts.map +0 -1
- package/dist/lib/utils.d.ts.map +0 -1
- package/dist/mocks/index.d.ts +0 -3
- package/dist/mocks/index.d.ts.map +0 -1
- package/dist/mocks/mockCheckoutFlow.d.ts +0 -25
- package/dist/mocks/mockCheckoutFlow.d.ts.map +0 -1
- package/dist/mocks/mockData.d.ts +0 -6
- package/dist/mocks/mockData.d.ts.map +0 -1
- package/dist/mocks/mockSessionData.d.ts +0 -38
- package/dist/mocks/mockSessionData.d.ts.map +0 -1
- package/dist/services/apiService.d.ts.map +0 -1
- package/dist/services/linkTokenService.d.ts.map +0 -1
- package/dist/services/mockSessionService.d.ts +0 -65
- package/dist/services/mockSessionService.d.ts.map +0 -1
- package/dist/types/cardElement.d.ts.map +0 -1
- package/dist/types/components/identity/IdentityBar.d.ts +0 -8
- package/dist/types/components/identity/IdentityBar.d.ts.map +0 -1
- package/dist/types/components/order/OrderSummaryAccordion.d.ts +0 -9
- package/dist/types/components/order/OrderSummaryAccordion.d.ts.map +0 -1
- package/dist/types/components/order/ShipmentCard.d.ts +0 -8
- package/dist/types/components/order/ShipmentCard.d.ts.map +0 -1
- package/dist/types/components/payos/ActiveCardWidget.d.ts +0 -60
- package/dist/types/components/payos/ActiveCardWidget.d.ts.map +0 -1
- package/dist/types/components/payos/AgentRegistrationFlow.d.ts +0 -24
- package/dist/types/components/payos/AgentRegistrationFlow.d.ts.map +0 -1
- package/dist/types/components/payos/ConnectStripeLinkButton.d.ts +0 -41
- package/dist/types/components/payos/ConnectStripeLinkButton.d.ts.map +0 -1
- package/dist/types/components/payos/IdentityVerificationFlow.d.ts.map +0 -1
- package/dist/types/components/payos/LinkPaymentFlow.d.ts +0 -11
- package/dist/types/components/payos/LinkPaymentFlow.d.ts.map +0 -1
- package/dist/types/components/payos/LinkSessionContent.d.ts +0 -19
- package/dist/types/components/payos/LinkSessionContent.d.ts.map +0 -1
- package/dist/types/components/payos/PayOSFooter.d.ts.map +0 -1
- package/dist/types/components/payos/PayWithLinkButton.d.ts.map +0 -1
- package/dist/types/components/payos/PaymentMethodRow.d.ts +0 -53
- package/dist/types/components/payos/PaymentMethodRow.d.ts.map +0 -1
- package/dist/types/components/payos/PaymentSheet.d.ts +0 -121
- package/dist/types/components/payos/PaymentSheet.d.ts.map +0 -1
- package/dist/types/components/payos/PaymentSheetContent.d.ts.map +0 -1
- package/dist/types/components/payos/PaymentSheetPaymentFlow.d.ts.map +0 -1
- package/dist/types/components/payos/PaymentSheetShell.d.ts +0 -25
- package/dist/types/components/payos/PaymentSheetShell.d.ts.map +0 -1
- package/dist/types/components/payos/PaymentSheetStatusViews.d.ts.map +0 -1
- package/dist/types/components/payos/PriceTag.d.ts.map +0 -1
- package/dist/types/components/payos/ReceiptPanel.d.ts.map +0 -1
- package/dist/types/components/payos/ViewHeader.d.ts.map +0 -1
- package/dist/types/components/payos/drawer.d.ts.map +0 -1
- package/dist/types/components/payos/order-summary.d.ts +0 -44
- package/dist/types/components/payos/order-summary.d.ts.map +0 -1
- package/dist/types/components/payos/otp-input.d.ts +0 -45
- package/dist/types/components/payos/otp-input.d.ts.map +0 -1
- package/dist/types/components/payos/phone-input.d.ts.map +0 -1
- package/dist/types/components/payos/themeMode.d.ts +0 -6
- package/dist/types/components/payos/themeMode.d.ts.map +0 -1
- package/dist/types/components/payos/usePaymentSheetDebug.d.ts +0 -22
- package/dist/types/components/payos/usePaymentSheetDebug.d.ts.map +0 -1
- package/dist/types/components/payos/usePaymentSheetDisplayData.d.ts.map +0 -1
- package/dist/types/components/payos/usePaymentSheetLifecycle.d.ts.map +0 -1
- package/dist/types/components/payos/usePaymentSheetSkipToAuth.d.ts +0 -18
- package/dist/types/components/payos/usePaymentSheetSkipToAuth.d.ts.map +0 -1
- package/dist/types/components/payos/usePaymentSheetSkipToLink.d.ts +0 -14
- package/dist/types/components/payos/usePaymentSheetSkipToLink.d.ts.map +0 -1
- package/dist/types/components/payos/views/AgentRegistrationView.d.ts +0 -61
- package/dist/types/components/payos/views/AgentRegistrationView.d.ts.map +0 -1
- package/dist/types/components/payos/views/CardAddView.d.ts.map +0 -1
- package/dist/types/components/payos/views/CheckoutView.d.ts.map +0 -1
- package/dist/types/components/payos/views/IdentityView.d.ts.map +0 -1
- package/dist/types/components/payos/views/LinkBrand.d.ts +0 -13
- package/dist/types/components/payos/views/LinkBrand.d.ts.map +0 -1
- package/dist/types/components/payos/views/LinkCheckoutView.d.ts +0 -31
- package/dist/types/components/payos/views/LinkCheckoutView.d.ts.map +0 -1
- package/dist/types/components/payos/views/LinkConnectView.d.ts.map +0 -1
- package/dist/types/components/payos/views/LinkDeniedView.d.ts.map +0 -1
- package/dist/types/components/payos/views/LinkLoadingView.d.ts +0 -11
- package/dist/types/components/payos/views/LinkLoadingView.d.ts.map +0 -1
- package/dist/types/components/payos/views/LinkSuccessView.d.ts.map +0 -1
- package/dist/types/components/payos/views/ManageThirdPartyView.d.ts +0 -19
- package/dist/types/components/payos/views/ManageThirdPartyView.d.ts.map +0 -1
- package/dist/types/components/payos/views/MethodListView.d.ts +0 -116
- package/dist/types/components/payos/views/MethodListView.d.ts.map +0 -1
- package/dist/types/components/payos/views/OTPView.d.ts.map +0 -1
- package/dist/types/components/payos/views/SuccessView.d.ts.map +0 -1
- package/dist/types/components/payos/views/VisaIframeView.d.ts +0 -16
- package/dist/types/components/payos/views/VisaIframeView.d.ts.map +0 -1
- package/dist/types/components/payos/views/VisaMethodView.d.ts.map +0 -1
- package/dist/types/components/payos/views/VisaOtpView.d.ts +0 -45
- package/dist/types/components/payos/views/VisaOtpView.d.ts.map +0 -1
- package/dist/types/components/payos/views/WelcomeBackView.d.ts +0 -34
- package/dist/types/components/payos/views/WelcomeBackView.d.ts.map +0 -1
- package/dist/types/components/ui/CardBrandIcon.d.ts.map +0 -1
- package/dist/types/components/ui/ConfirmDialog.d.ts.map +0 -1
- package/dist/types/components/ui/DigitalCard.d.ts.map +0 -1
- package/dist/types/components/ui/InfoTooltip.d.ts +0 -8
- package/dist/types/components/ui/InfoTooltip.d.ts.map +0 -1
- package/dist/types/components/ui/PinInput.d.ts +0 -12
- package/dist/types/components/ui/PinInput.d.ts.map +0 -1
- package/dist/types/components/ui/button.d.ts.map +0 -1
- package/dist/types/components/ui/card.d.ts.map +0 -1
- package/dist/types/components/ui/input.d.ts.map +0 -1
- package/dist/types/components/ui/label.d.ts.map +0 -1
- package/dist/types/components/ui/separator.d.ts.map +0 -1
- package/dist/types/drawer.d.ts.map +0 -1
- package/dist/types/hooks/index.d.ts +0 -8
- package/dist/types/hooks/index.d.ts.map +0 -1
- package/dist/types/hooks/useBiometricType.d.ts +0 -21
- package/dist/types/hooks/useBiometricType.d.ts.map +0 -1
- package/dist/types/hooks/useBodyScrollLock.d.ts.map +0 -1
- package/dist/types/hooks/useCardElement.d.ts.map +0 -1
- package/dist/types/hooks/useCheckoutFlow.d.ts +0 -29
- package/dist/types/hooks/useCheckoutFlow.d.ts.map +0 -1
- package/dist/types/hooks/useDrawerState.d.ts +0 -4
- package/dist/types/hooks/useDrawerState.d.ts.map +0 -1
- package/dist/types/hooks/useLinkAuth.d.ts.map +0 -1
- package/dist/types/hooks/useLinkDeviceAuthPoll.d.ts.map +0 -1
- package/dist/types/hooks/useLinkMethods.d.ts.map +0 -1
- package/dist/types/hooks/useLinkSession.d.ts +0 -81
- package/dist/types/hooks/useLinkSession.d.ts.map +0 -1
- package/dist/types/hooks/useLinkSpendStatusPoll.d.ts +0 -28
- package/dist/types/hooks/useLinkSpendStatusPoll.d.ts.map +0 -1
- package/dist/types/hooks/usePasskeySDK.d.ts.map +0 -1
- package/dist/types/hooks/useSession.d.ts +0 -87
- package/dist/types/hooks/useSession.d.ts.map +0 -1
- package/dist/types/hooks/useVisualViewport.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/lib/theme.d.ts +0 -53
- package/dist/types/lib/theme.d.ts.map +0 -1
- package/dist/types/lib/utils.d.ts +0 -3
- package/dist/types/lib/utils.d.ts.map +0 -1
- package/dist/types/mocks/index.d.ts +0 -3
- package/dist/types/mocks/index.d.ts.map +0 -1
- package/dist/types/mocks/mockCheckoutFlow.d.ts +0 -25
- package/dist/types/mocks/mockCheckoutFlow.d.ts.map +0 -1
- package/dist/types/mocks/mockData.d.ts +0 -6
- package/dist/types/mocks/mockData.d.ts.map +0 -1
- package/dist/types/mocks/mockSessionData.d.ts +0 -38
- package/dist/types/mocks/mockSessionData.d.ts.map +0 -1
- package/dist/types/order.d.ts.map +0 -1
- package/dist/types/payment.d.ts +0 -55
- package/dist/types/payment.d.ts.map +0 -1
- package/dist/types/services/apiService.d.ts +0 -406
- package/dist/types/services/apiService.d.ts.map +0 -1
- package/dist/types/services/linkTokenService.d.ts +0 -7
- package/dist/types/services/linkTokenService.d.ts.map +0 -1
- package/dist/types/services/mockSessionService.d.ts +0 -65
- package/dist/types/services/mockSessionService.d.ts.map +0 -1
- package/dist/types/session.d.ts.map +0 -1
- package/dist/types/types/cardElement.d.ts +0 -157
- package/dist/types/types/cardElement.d.ts.map +0 -1
- package/dist/types/types/drawer.d.ts +0 -33
- package/dist/types/types/drawer.d.ts.map +0 -1
- package/dist/types/types/index.d.ts.map +0 -1
- package/dist/types/types/order.d.ts +0 -25
- package/dist/types/types/order.d.ts.map +0 -1
- package/dist/types/types/payment.d.ts.map +0 -1
- package/dist/types/types/session.d.ts +0 -165
- package/dist/types/types/session.d.ts.map +0 -1
- package/dist/types/utils/credentialStatus.d.ts.map +0 -1
- package/dist/types/utils/deviceFingerprint.d.ts +0 -27
- package/dist/types/utils/deviceFingerprint.d.ts.map +0 -1
- package/dist/types/utils/environment.d.ts.map +0 -1
- package/dist/types/utils/formatting.d.ts +0 -41
- package/dist/types/utils/formatting.d.ts.map +0 -1
- package/dist/types/utils/index.d.ts +0 -4
- package/dist/types/utils/index.d.ts.map +0 -1
- package/dist/types/utils/linkFormat.d.ts +0 -17
- package/dist/types/utils/linkFormat.d.ts.map +0 -1
- package/dist/types/utils/linkPopup.d.ts.map +0 -1
- package/dist/types/utils/selectCard.d.ts.map +0 -1
- package/dist/types/utils/text.d.ts.map +0 -1
- package/dist/types/utils/validation.d.ts +0 -90
- package/dist/types/utils/validation.d.ts.map +0 -1
- package/dist/utils/credentialStatus.d.ts +0 -8
- package/dist/utils/credentialStatus.d.ts.map +0 -1
- package/dist/utils/deviceFingerprint.d.ts.map +0 -1
- package/dist/utils/environment.d.ts +0 -22
- package/dist/utils/environment.d.ts.map +0 -1
- package/dist/utils/formatting.d.ts.map +0 -1
- package/dist/utils/index.d.ts +0 -4
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/linkFormat.d.ts +0 -17
- package/dist/utils/linkFormat.d.ts.map +0 -1
- package/dist/utils/linkPopup.d.ts +0 -19
- package/dist/utils/linkPopup.d.ts.map +0 -1
- package/dist/utils/selectCard.d.ts +0 -18
- package/dist/utils/selectCard.d.ts.map +0 -1
- package/dist/utils/text.d.ts +0 -12
- package/dist/utils/text.d.ts.map +0 -1
- package/dist/utils/validation.d.ts.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { UseLinkSessionReturn } from '../../hooks/useLinkSession';
|
|
3
3
|
import type { UsePasskeySDKReturn } from '../../hooks/usePasskeySDK';
|
|
4
|
-
import type { RegistrationSubPhase, SessionPhase } from '../../hooks/useSession';
|
|
4
|
+
import type { RegistrationSubPhase, SessionCardActivity, SessionPhase } from '../../hooks/useSession';
|
|
5
5
|
import type { PaymentView } from '../../types/payment';
|
|
6
6
|
import type { BillingAddress, CardData } from '../../types';
|
|
7
7
|
import type { CheckoutSession, Payment } from '../../types/session';
|
|
@@ -10,6 +10,7 @@ import type { CountryCode } from './phone-input';
|
|
|
10
10
|
interface PaymentSheetContentProps {
|
|
11
11
|
phase: SessionPhase;
|
|
12
12
|
session: CheckoutSession | null;
|
|
13
|
+
cardActivity?: SessionCardActivity;
|
|
13
14
|
linkSession: UseLinkSessionReturn;
|
|
14
15
|
linkCheckoutPayment: Payment | null;
|
|
15
16
|
approvalDeadline: number | null;
|
|
@@ -38,7 +39,6 @@ interface PaymentSheetContentProps {
|
|
|
38
39
|
onOTPResend: () => void;
|
|
39
40
|
registrationSubPhase: RegistrationSubPhase;
|
|
40
41
|
passkey: UsePasskeySDKReturn;
|
|
41
|
-
debug: boolean;
|
|
42
42
|
localError: string | null;
|
|
43
43
|
visaOtp: string;
|
|
44
44
|
setVisaOtp: React.Dispatch<React.SetStateAction<string>>;
|
|
@@ -74,7 +74,9 @@ interface PaymentSheetContentProps {
|
|
|
74
74
|
handleCardSelect: (cardId: string) => void;
|
|
75
75
|
handlePaymentSubmit: () => void;
|
|
76
76
|
showMethodList: () => void;
|
|
77
|
+
shareCards: (cardIds: string[], consentText: string) => Promise<boolean>;
|
|
78
|
+
skipShareCards: (nextView?: PaymentView) => void;
|
|
79
|
+
reopenShareCards: () => void;
|
|
77
80
|
}
|
|
78
|
-
export declare function PaymentSheetContent({ phase, session, linkSession, linkCheckoutPayment, approvalDeadline, errorMessage, displayError, onClose, onVerifyAgain, skipToAuth, isSetupMode, isAgentMode, skipCredentialGeneration, loading, phoneNumber, setPhoneNumber, selectedCountry, setSelectedCountry, otp, setOTP, isResending, resendCooldown, retryCount, clearLocalError, clearSessionError, onPhoneSubmit, onOTPSubmit, onOTPResend, registrationSubPhase, passkey,
|
|
81
|
+
export declare function PaymentSheetContent({ phase, session, cardActivity, linkSession, linkCheckoutPayment, approvalDeadline, errorMessage, displayError, onClose, onVerifyAgain, skipToAuth, isSetupMode, isAgentMode, skipCredentialGeneration, loading, phoneNumber, setPhoneNumber, selectedCountry, setSelectedCountry, otp, setOTP, isResending, resendCooldown, retryCount, clearLocalError, clearSessionError, onPhoneSubmit, onOTPSubmit, onOTPResend, registrationSubPhase, passkey, localError, visaOtp, setVisaOtp, setLocalError, setRegistrationSubPhase, onCreatePasskey, onSkipRegistration, onVisaMethodSelect, onVisaOtpVerify, onVisaIframeCancel, onBackToCheckout, hasSelectedCard, hasSavedCards, paymentView, cvc, setCvc, passkeyClosed, isLinkCheckoutAvailable, showShippingAsBilling, cardElementUrl, cardElementApiUrl, environment, theme, cardElementStyles, binsWarning, onBinWarning, setDefaultCard, showAddCard, deletePaymentCard, completeSetup, setPaymentView, handleCardAdd, handleCardSelect, handlePaymentSubmit, showMethodList, shareCards, skipShareCards, reopenShareCards, }: PaymentSheetContentProps): import("react/jsx-runtime").JSX.Element | null;
|
|
79
82
|
export {};
|
|
80
|
-
//# sourceMappingURL=PaymentSheetContent.d.ts.map
|
package/dist/types/{components → payos-react/src/components}/payos/PaymentSheetPaymentFlow.d.ts
RENAMED
|
@@ -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,
|
|
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, 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
|
package/dist/types/{components → payos-react/src/components}/payos/PaymentSheetStatusViews.d.ts
RENAMED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { CheckoutSession, SavedCard } from '../../types/session';
|
|
2
|
+
import type { SessionCardActivity } from '../../hooks/useSession';
|
|
2
3
|
export declare function PaymentSheetLoadingView({ skipToAuth }: {
|
|
3
4
|
skipToAuth: boolean;
|
|
4
5
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -20,9 +21,9 @@ export declare function PaymentSheetProcessingView({ skipToAuth, isSetupMode, is
|
|
|
20
21
|
isAgentMode: boolean;
|
|
21
22
|
skipCredentialGeneration: boolean;
|
|
22
23
|
}): import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
export declare function PaymentSheetSuccessView({ session, isSetupMode, isAgentMode, }: {
|
|
24
|
+
export declare function PaymentSheetSuccessView({ session, isSetupMode, isAgentMode, cardActivity, }: {
|
|
24
25
|
session: CheckoutSession;
|
|
25
26
|
isSetupMode: boolean;
|
|
26
27
|
isAgentMode: boolean;
|
|
28
|
+
cardActivity?: SessionCardActivity;
|
|
27
29
|
}): import("react/jsx-runtime").JSX.Element;
|
|
28
|
-
//# sourceMappingURL=PaymentSheetStatusViews.d.ts.map
|
|
@@ -3,7 +3,8 @@ interface ViewHeaderProps {
|
|
|
3
3
|
title: string;
|
|
4
4
|
onBack?: () => void;
|
|
5
5
|
action?: React.ReactNode;
|
|
6
|
+
/** Extra classes for the header row (e.g. to match a centered content column) */
|
|
7
|
+
className?: string;
|
|
6
8
|
}
|
|
7
9
|
export declare const ViewHeader: React.FC<ViewHeaderProps>;
|
|
8
10
|
export {};
|
|
9
|
-
//# sourceMappingURL=ViewHeader.d.ts.map
|
|
@@ -74,6 +74,11 @@ export interface DrawerProps {
|
|
|
74
74
|
* Disable the bottom content mask/fade (e.g. when inner view has its own footer)
|
|
75
75
|
*/
|
|
76
76
|
disableContentMask?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Lay the content area out as a flex column so a view can size itself to
|
|
79
|
+
* the drawer and keep its own footer visible while a list scrolls.
|
|
80
|
+
*/
|
|
81
|
+
fillContent?: boolean;
|
|
77
82
|
/**
|
|
78
83
|
* Custom children (for non-smart flows) - backward compatible
|
|
79
84
|
*/
|
|
@@ -87,7 +92,6 @@ export interface DrawerProps {
|
|
|
87
92
|
* - Gray canvas background (bg-gray-50 dark:bg-slate-900 black:bg-black) per Card Stack Architecture
|
|
88
93
|
* - Merchant-first header with close button
|
|
89
94
|
* - Drag handle for visual affordance (mobile only)
|
|
90
|
-
* - Smooth animations (slide-up on mobile, slide-in-right on desktop)
|
|
91
95
|
* - Dark mode support
|
|
92
96
|
* - Overlay backdrop
|
|
93
97
|
*
|
|
@@ -104,4 +108,3 @@ export interface DrawerProps {
|
|
|
104
108
|
* ```
|
|
105
109
|
*/
|
|
106
110
|
export declare const PayOSDrawer: React.ForwardRefExoticComponent<DrawerProps & React.RefAttributes<HTMLDivElement>>;
|
|
107
|
-
//# sourceMappingURL=drawer.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
|
package/dist/{components → types/payos-react/src/components}/payos/usePaymentSheetSkipToLink.d.ts
RENAMED
|
@@ -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
|
|
@@ -64,7 +64,7 @@ interface CardAddViewProps {
|
|
|
64
64
|
*/
|
|
65
65
|
customBaseUrl?: string;
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
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
|
package/dist/{components → types/payos-react/src/components}/payos/views/LinkCheckoutView.d.ts
RENAMED
|
@@ -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
|
package/dist/types/{components → payos-react/src/components}/payos/views/LinkConnectView.d.ts
RENAMED
|
@@ -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
|
package/dist/{components → types/payos-react/src/components}/payos/views/ManageThirdPartyView.d.ts
RENAMED
|
@@ -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
|
package/dist/{components → types/payos-react/src/components}/payos/views/MethodListView.d.ts
RENAMED
|
@@ -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
|
|
@@ -0,0 +1,28 @@
|
|
|
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 organization may use. Nothing is pre-selected; the organization only
|
|
8
|
+
* sees the cards the person picks. The card list scrolls on its own so the
|
|
9
|
+
* Share / Not now actions stay visible.
|
|
10
|
+
*/
|
|
11
|
+
interface ShareCardsViewProps {
|
|
12
|
+
/** The person's saved cards not yet shared with this organization */
|
|
13
|
+
cards: WalletCard[];
|
|
14
|
+
/** Display name of the organization; falls back to "this business" */
|
|
15
|
+
organizationName?: string;
|
|
16
|
+
/** @deprecated Use organizationName */
|
|
17
|
+
merchantName?: string;
|
|
18
|
+
isLoading?: boolean;
|
|
19
|
+
error?: string;
|
|
20
|
+
/** Share the picked cards; consentText is the wording the person saw */
|
|
21
|
+
onShare: (cardIds: string[], consentText: string) => void;
|
|
22
|
+
/** Continue without sharing */
|
|
23
|
+
onSkip: () => void;
|
|
24
|
+
onAddNewCard: () => void;
|
|
25
|
+
}
|
|
26
|
+
export declare function walletCardLabel(card: Pick<WalletCard, "brand" | "last4">): string;
|
|
27
|
+
export declare const ShareCardsView: React.FC<ShareCardsViewProps>;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { CardBrand } from "../../types/payment";
|
|
3
|
+
/** ISO/IEC 7810 ID-1 card ratio (85.60mm x 53.98mm) */
|
|
4
|
+
export declare const CARD_ASPECT_RATIO = 1.586;
|
|
5
|
+
export declare function toCardBrand(brand?: string | null): CardBrand;
|
|
6
|
+
export declare function artFitForSize(naturalWidth: number, naturalHeight: number): "cover" | "contain";
|
|
7
|
+
interface CardArtProps {
|
|
8
|
+
/** Card brand; picks the network logo shown when there is no usable art */
|
|
9
|
+
brand?: string | null;
|
|
10
|
+
cardArtUrl?: string | null;
|
|
11
|
+
/** Width utility for the box; height follows the card ratio */
|
|
12
|
+
className?: string;
|
|
13
|
+
/** True when a text label (e.g. "Visa •••• 4242") sits next to the art */
|
|
14
|
+
decorative?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Card artwork in a fixed card-ratio box. Card-shaped art fills the box;
|
|
18
|
+
* portrait or odd-ratio art is shown whole on a white background. Falls back
|
|
19
|
+
* to the network logo when there is no art or it fails to load.
|
|
20
|
+
*/
|
|
21
|
+
export declare const CardArt: React.FC<CardArtProps>;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
interface HelpPopoverProps {
|
|
3
|
+
/** Accessible name for the trigger button */
|
|
4
|
+
label: string;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Small "?" button that toggles an explanation panel. Opens on click, tap,
|
|
10
|
+
* Enter or Space; closes on Escape (focus returns to the button), a press
|
|
11
|
+
* outside, or tabbing away. The panel stays in the DOM (hidden) so
|
|
12
|
+
* aria-controls always resolves. Renders inline (button + span), so it can
|
|
13
|
+
* sit at the end of a heading's text; the panel spans the nearest positioned
|
|
14
|
+
* ancestor, so wrap the heading in a `relative` element.
|
|
15
|
+
*/
|
|
16
|
+
export declare const HelpPopover: React.FC<HelpPopoverProps>;
|
|
17
|
+
export {};
|
|
@@ -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/
|
|
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/
|
|
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
|
|
@@ -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/
|
|
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
|
|
@@ -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
|
-
*
|
|
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
|
|
@@ -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 '
|
|
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
|
-
/**
|
|
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
|
|
@@ -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
|