@payos-inc/payos-react 1.0.42-staging.83 → 1.2.0-staging.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +18 -12
- 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 +165 -0
- package/dist/types/payos-passkey-js/src/core/sessionFlow.d.ts +48 -0
- package/dist/types/payos-passkey-js/src/core/types.d.ts +183 -0
- package/dist/types/payos-passkey-js/src/index.d.ts +10 -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/types/payos-passkey-js/src/version.d.ts +5 -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 +14 -3
- 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} +18 -2
- 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/payos-react/src/utils/ensureSelectedCardAttached.d.ts +10 -0
- 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,121 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PaymentSheetResult, PaymentSheetError } from '../../types/session';
|
|
3
|
-
import type { CardElementBinWarningEvent, CardElementBinWarningRule } from '../../types/cardElement';
|
|
4
|
-
import { type PaymentSheetLayout } from './PaymentSheetShell';
|
|
5
|
-
import '../../styles/base.css';
|
|
6
|
-
export interface PaymentSheetProps {
|
|
7
|
-
/**
|
|
8
|
-
* Session secret (JWT) for authenticating SDK API calls.
|
|
9
|
-
* Obtained from POST /api/sessions/checkout response.
|
|
10
|
-
* Contains sessionId in JWT metadata.
|
|
11
|
-
*/
|
|
12
|
-
sessionSecret: string;
|
|
13
|
-
open: boolean;
|
|
14
|
-
onClose: () => void;
|
|
15
|
-
onSuccess: (result: PaymentSheetResult) => void;
|
|
16
|
-
onError: (error: PaymentSheetError) => void;
|
|
17
|
-
onCancel?: () => void;
|
|
18
|
-
accentColor?: string;
|
|
19
|
-
/** Organization name to display in the drawer header */
|
|
20
|
-
title?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Layout mode for the payment sheet.
|
|
23
|
-
* - "drawer" (default): Side panel / bottom sheet overlay
|
|
24
|
-
* - "inline": Renders content directly in the parent container, no overlay
|
|
25
|
-
* - "modal": Centered modal overlay with backdrop
|
|
26
|
-
*/
|
|
27
|
-
layout?: PaymentSheetLayout;
|
|
28
|
-
/** Environment mode - determines API URL (sandbox.api.payos.ai or api.payos.ai) */
|
|
29
|
-
environment?: 'sandbox' | 'production';
|
|
30
|
-
/** Override API URL for local development - used for direct SDK calls like passkey, credential gen (e.g., 'http://localhost:3000') */
|
|
31
|
-
developmentApiUrl?: string;
|
|
32
|
-
/** Backend API URL for CardElement iframe - needed because iframe on Azure can't reach localhost (e.g., ngrok URL) */
|
|
33
|
-
cardElementApiUrl?: string;
|
|
34
|
-
/** PayOS Link UI URL for CardElement iframe (e.g., purple-grass Azure endpoint) */
|
|
35
|
-
cardElementUrl?: string;
|
|
36
|
-
/** Enable debug logging */
|
|
37
|
-
debug?: boolean;
|
|
38
|
-
/** Exit immediately after card is added (no card list). Only applies to setup/onboard sessions. */
|
|
39
|
-
exitOnCardAdd?: boolean;
|
|
40
|
-
/** Skip automatic credential generation after passkey auth. Merchant calls Generate/Retrieve later. */
|
|
41
|
-
skipCredentialGeneration?: boolean;
|
|
42
|
-
/** Show "Use shipping address as billing" toggle when payment intent has a shipping address. Defaults to false. */
|
|
43
|
-
showShippingAsBilling?: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Optional payment-method rails to expose in PaymentSheet. Stripe Link is
|
|
46
|
-
* opt-in; when omitted or false, users will not see the "Pay with Link" CTA,
|
|
47
|
-
* separator, or third-party-method management entry.
|
|
48
|
-
*/
|
|
49
|
-
paymentMethods?: PaymentSheetPaymentMethods;
|
|
50
|
-
/**
|
|
51
|
-
* Pre-select a specific card by ID, skipping the card selection screen.
|
|
52
|
-
* The card must belong to the wallet user's saved cards or it will be ignored.
|
|
53
|
-
*/
|
|
54
|
-
cardId?: string;
|
|
55
|
-
/**
|
|
56
|
-
* When true (and a card is selected), automatically trigger passkey/3DS
|
|
57
|
-
* authentication without showing the Authorize screen.
|
|
58
|
-
* Only applies to agent mode (pay_on_behalf, agent_to_agent, agentic_multi).
|
|
59
|
-
* Non-agent checkout requires CVC entry and is not auto-submitted.
|
|
60
|
-
* Best used with cardId to skip directly to authentication.
|
|
61
|
-
*/
|
|
62
|
-
skipToAuth?: boolean;
|
|
63
|
-
/**
|
|
64
|
-
* Hide the embedded layout header (merchant title + amount).
|
|
65
|
-
* Only applies to `layout="embedded"` — meant for in-app browser contexts
|
|
66
|
-
* where the native app already displays merchant/amount chrome.
|
|
67
|
-
*/
|
|
68
|
-
hideHeader?: boolean;
|
|
69
|
-
/**
|
|
70
|
-
* Theme preset applied to the CardElement iframe (card add view).
|
|
71
|
-
* - `'dark'`: slate dark palette
|
|
72
|
-
* - `'black'`: pure black palette
|
|
73
|
-
* - `'light'`: default light palette
|
|
74
|
-
* - `'auto'`: matches prefers-color-scheme
|
|
75
|
-
* User-provided `cardElementStyles` overrides any preset defaults.
|
|
76
|
-
*/
|
|
77
|
-
theme?: 'dark' | 'black' | 'light' | 'auto';
|
|
78
|
-
/**
|
|
79
|
-
* Custom styles passed through to the CardElement iframe. Merged on top
|
|
80
|
-
* of any `theme` preset so partial overrides are possible. See
|
|
81
|
-
* CardElementStyles in @payos-inc/payos-react for the full shape.
|
|
82
|
-
*/
|
|
83
|
-
cardElementStyles?: Record<string, any>;
|
|
84
|
-
/**
|
|
85
|
-
* BIN/IIN values that should emit a non-blocking warning from the
|
|
86
|
-
* CardElement when secure field BIN metadata is available.
|
|
87
|
-
*/
|
|
88
|
-
binsWarning?: CardElementBinWarningRule[];
|
|
89
|
-
/**
|
|
90
|
-
* Fired when CardElement detects or clears a configured BIN/IIN warning.
|
|
91
|
-
* A null event means the returned BIN metadata no longer matches a warning.
|
|
92
|
-
*/
|
|
93
|
-
onBinWarning?: (event: CardElementBinWarningEvent | null) => void;
|
|
94
|
-
}
|
|
95
|
-
export interface StripeLinkPaymentMethodConfig {
|
|
96
|
-
/** Enables Stripe Link in PaymentSheet. Defaults to true when an object is provided. */
|
|
97
|
-
enabled?: boolean;
|
|
98
|
-
/**
|
|
99
|
-
* When true, Stripe Link spend requests run as test transactions — Stripe
|
|
100
|
-
* processes the approval flow normally but no money moves. Use in dev/test
|
|
101
|
-
* environments only. Defaults to false.
|
|
102
|
-
*/
|
|
103
|
-
testMode?: boolean;
|
|
104
|
-
/**
|
|
105
|
-
* Description shown to the user in Stripe Link's spend-approval popup.
|
|
106
|
-
* Stripe requires min 100 characters. If shorter or omitted, backend
|
|
107
|
-
* generates a generic default describing the merchant + amount.
|
|
108
|
-
*/
|
|
109
|
-
spendContext?: string;
|
|
110
|
-
/**
|
|
111
|
-
* Automatically enters the Stripe Link checkout flow once the wallet user
|
|
112
|
-
* reaches PAYMENT. Requires a single-payment checkout intent.
|
|
113
|
-
*/
|
|
114
|
-
skipToLink?: boolean;
|
|
115
|
-
}
|
|
116
|
-
export interface PaymentSheetPaymentMethods {
|
|
117
|
-
stripeLink?: boolean | StripeLinkPaymentMethodConfig;
|
|
118
|
-
}
|
|
119
|
-
export declare const PaymentSheet: React.FC<PaymentSheetProps>;
|
|
120
|
-
export default PaymentSheet;
|
|
121
|
-
//# sourceMappingURL=PaymentSheet.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentSheet.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/PaymentSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAOjF,OAAO,EAEL,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EACV,0BAA0B,EAC1B,yBAAyB,EAC1B,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAqB,KAAK,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAOjF,OAAO,uBAAuB,CAAC;AAK/B,MAAM,WAAW,iBAAiB;IAChC;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAChD,OAAO,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC5C,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CA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-
export type PaymentSheetLayout = 'drawer' | 'inline' | 'modal' | 'embedded';
|
|
4
|
-
interface PaymentSheetShellProps {
|
|
5
|
-
open: boolean;
|
|
6
|
-
layout: PaymentSheetLayout;
|
|
7
|
-
title: string;
|
|
8
|
-
totalAmount?: string;
|
|
9
|
-
orderItems?: OrderItem[];
|
|
10
|
-
subtotal?: string;
|
|
11
|
-
shipping?: string;
|
|
12
|
-
tax?: string;
|
|
13
|
-
agentFee?: string;
|
|
14
|
-
isAgentMode: boolean;
|
|
15
|
-
isSetupMode: boolean;
|
|
16
|
-
secondsRemaining: number | null;
|
|
17
|
-
paymentView: string;
|
|
18
|
-
hideHeader: boolean;
|
|
19
|
-
confirmDialog: React.ReactNode;
|
|
20
|
-
onClose: () => void;
|
|
21
|
-
children: React.ReactNode;
|
|
22
|
-
}
|
|
23
|
-
export declare function PaymentSheetShell({ open, layout, title, totalAmount, orderItems, subtotal, shipping, tax, agentFee, isAgentMode, isSetupMode, secondsRemaining, paymentView, hideHeader, confirmDialog, onClose, children, }: PaymentSheetShellProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
export {};
|
|
25
|
-
//# sourceMappingURL=PaymentSheetShell.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentSheetShell.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/PaymentSheetShell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,UAAU,CAAC;AAE5E,UAAU,sBAAsB;IAC9B,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,kBAAkB,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;IACrB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,iBAAiB,CAAC,EAChC,IAAI,EACJ,MAAM,EACN,KAAK,EACL,WAAW,EACX,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,GAAG,EACH,QAAQ,EACR,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,UAAU,EACV,aAAa,EACb,OAAO,EACP,QAAQ,GACT,EAAE,sBAAsB,2CAmIxB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentSheetStatusViews.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/PaymentSheetStatusViews.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAgBtE,wBAAgB,uBAAuB,CAAC,EAAE,UAAU,EAAE,EAAE;IAAE,UAAU,EAAE,OAAO,CAAA;CAAE,2CAW9E;AAED,wBAAgB,qBAAqB,CAAC,EACpC,YAAY,EACZ,OAAO,GACR,EAAE;IACD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,2CAcA;AAED,wBAAgB,uBAAuB,CAAC,EACtC,aAAa,EACb,OAAO,GACR,EAAE;IACD,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,2CAsBA;AAED,wBAAgB,4BAA4B,CAAC,EAC3C,YAAY,EACZ,aAAa,GACd,EAAE;IACD,YAAY,EAAE,SAAS,CAAC;IACxB,aAAa,EAAE,OAAO,CAAC;CACxB,2CAkBA;AAED,wBAAgB,0BAA0B,CAAC,EACzC,UAAU,EACV,WAAW,EACX,WAAW,EACX,wBAAwB,GACzB,EAAE;IACD,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;IACrB,wBAAwB,EAAE,OAAO,CAAC;CACnC,2CAkCA;AAED,wBAAgB,uBAAuB,CAAC,EACtC,OAAO,EACP,WAAW,EACX,WAAW,GACZ,EAAE;IACD,OAAO,EAAE,eAAe,CAAC;IACzB,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;CACtB,2CA0DA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PriceTag.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/PriceTag.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,UAAU,aAAa;IACrB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAmE5C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReceiptPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/ReceiptPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,UAAU,iBAAiB;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;IACpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA2GpD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ViewHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/ViewHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,UAAU,eAAe;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAwBhD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.d.ts","source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ED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,WAAW,oFAuRvB,CAAC"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
/**
|
|
3
|
-
* OrderSummary - Collapsible order details accordion
|
|
4
|
-
*
|
|
5
|
-
* Features:
|
|
6
|
-
* - Prominent total display
|
|
7
|
-
* - Collapsible line items
|
|
8
|
-
* - Agent mode badge integration
|
|
9
|
-
* - Dark mode support
|
|
10
|
-
*/
|
|
11
|
-
export interface OrderItem {
|
|
12
|
-
label: string;
|
|
13
|
-
value: string | number;
|
|
14
|
-
description?: string;
|
|
15
|
-
}
|
|
16
|
-
interface OrderSummaryProps {
|
|
17
|
-
/**
|
|
18
|
-
* Total amount (e.g., "$85.24")
|
|
19
|
-
*/
|
|
20
|
-
total: string;
|
|
21
|
-
/**
|
|
22
|
-
* Line items to show when expanded
|
|
23
|
-
*/
|
|
24
|
-
items?: OrderItem[];
|
|
25
|
-
/**
|
|
26
|
-
* Whether to show agent badge
|
|
27
|
-
*/
|
|
28
|
-
isAgentMode?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Agent fee amount (e.g., "$2.00")
|
|
31
|
-
*/
|
|
32
|
-
agentFee?: string;
|
|
33
|
-
/**
|
|
34
|
-
* Whether the accordion starts expanded
|
|
35
|
-
*/
|
|
36
|
-
defaultExpanded?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Additional CSS classes
|
|
39
|
-
*/
|
|
40
|
-
className?: string;
|
|
41
|
-
}
|
|
42
|
-
export declare const OrderSummary: React.ForwardRefExoticComponent<OrderSummaryProps & React.RefAttributes<HTMLDivElement>>;
|
|
43
|
-
export {};
|
|
44
|
-
//# sourceMappingURL=order-summary.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"order-summary.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/order-summary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B;;;;;;;;GAQG;AAEH,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,UAAU,iBAAiB;IACzB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,YAAY,0FAoFxB,CAAC"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
/**
|
|
3
|
-
* OTPInput - 6-digit verification code input
|
|
4
|
-
*
|
|
5
|
-
* Features:
|
|
6
|
-
* - 6 individual input boxes with auto-focus progression
|
|
7
|
-
* - Large text, centered for easy reading
|
|
8
|
-
* - Numeric only input
|
|
9
|
-
* - Paste support (auto-fills all boxes)
|
|
10
|
-
* - Dark mode support
|
|
11
|
-
* - Auto-submit when complete
|
|
12
|
-
*/
|
|
13
|
-
interface OTPInputProps {
|
|
14
|
-
/**
|
|
15
|
-
* Current OTP value (6 digits)
|
|
16
|
-
*/
|
|
17
|
-
value?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Callback when OTP changes
|
|
20
|
-
*/
|
|
21
|
-
onChange?: (value: string) => void;
|
|
22
|
-
/**
|
|
23
|
-
* Callback when OTP is complete (all 6 digits entered)
|
|
24
|
-
*/
|
|
25
|
-
onComplete?: (value: string) => void;
|
|
26
|
-
/**
|
|
27
|
-
* Number of digits (default: 6)
|
|
28
|
-
*/
|
|
29
|
-
length?: number;
|
|
30
|
-
/**
|
|
31
|
-
* Visual variant: 'box' (default bordered boxes) or 'underline' (bottom border only)
|
|
32
|
-
*/
|
|
33
|
-
variant?: 'box' | 'underline';
|
|
34
|
-
/**
|
|
35
|
-
* Accent color for focus state (CSS color value)
|
|
36
|
-
*/
|
|
37
|
-
accentColor?: string;
|
|
38
|
-
/**
|
|
39
|
-
* Additional CSS classes
|
|
40
|
-
*/
|
|
41
|
-
className?: string;
|
|
42
|
-
}
|
|
43
|
-
export declare const OTPInput: React.ForwardRefExoticComponent<OTPInputProps & React.RefAttributes<HTMLDivElement>>;
|
|
44
|
-
export {};
|
|
45
|
-
//# sourceMappingURL=otp-input.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"otp-input.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/otp-input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B;;;;;;;;;;GAUG;AAEH,UAAU,aAAa;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,GAAG,WAAW,CAAC;IAC9B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,QAAQ,sFAoKpB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"phone-input.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/phone-input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAE,SAAS,EAA0C,MAAM,wBAAwB,CAAC;AAC3F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,YAAY,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAU1D;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,GAAE,MAAa,GAAG,MAAM,CA8BvF;AAED;;;;;;;;;;GAUG;AAEH,UAAU,eAAgB,SAAQ,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,UAAU,CAAC;IAC7F,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;CAC/C;AAED,eAAO,MAAM,UAAU,0FA4KtB,CAAC;AAGF,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export type PayOSThemeMode = 'dark' | 'black' | 'light' | 'auto';
|
|
2
|
-
export type ResolvedPayOSThemeMode = Exclude<PayOSThemeMode, 'auto'>;
|
|
3
|
-
export declare function resolvePayOSThemeMode(theme?: PayOSThemeMode): ResolvedPayOSThemeMode | null;
|
|
4
|
-
export declare function payOSThemeClass(theme?: PayOSThemeMode): string;
|
|
5
|
-
export declare function usePayOSThemeMode(theme: PayOSThemeMode | undefined, active: boolean): void;
|
|
6
|
-
//# sourceMappingURL=themeMode.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"themeMode.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/themeMode.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;AACjE,MAAM,MAAM,sBAAsB,GAAG,OAAO,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;AAErE,wBAAgB,qBAAqB,CACnC,KAAK,CAAC,EAAE,cAAc,GACrB,sBAAsB,GAAG,IAAI,CAQ/B;AAED,wBAAgB,eAAe,CAAC,KAAK,CAAC,EAAE,cAAc,GAAG,MAAM,CAI9D;AAED,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,cAAc,GAAG,SAAS,EACjC,MAAM,EAAE,OAAO,QAsDhB"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import type { RegistrationSubPhase, SessionPhase } from '../../hooks/useSession';
|
|
3
|
-
import type { PaymentView } from '../../types/payment';
|
|
4
|
-
import type { CheckoutSession } from '../../types/session';
|
|
5
|
-
interface UsePaymentSheetDebugArgs {
|
|
6
|
-
debug: boolean;
|
|
7
|
-
phase: SessionPhase;
|
|
8
|
-
paymentView: PaymentView;
|
|
9
|
-
session: CheckoutSession | null;
|
|
10
|
-
sessionSecret: string;
|
|
11
|
-
setPhase: (phase: SessionPhase) => void;
|
|
12
|
-
setPaymentView: (view: PaymentView) => void;
|
|
13
|
-
setSession: Dispatch<SetStateAction<CheckoutSession | null>>;
|
|
14
|
-
setRegistrationSubPhase: (subPhase: RegistrationSubPhase) => void;
|
|
15
|
-
showAddCard: () => void;
|
|
16
|
-
showMethodList: () => void;
|
|
17
|
-
returnToCheckout: () => void;
|
|
18
|
-
goBackToIdentity: () => void;
|
|
19
|
-
}
|
|
20
|
-
export declare function usePaymentSheetDebug({ debug, phase, paymentView, session, sessionSecret, setPhase, setPaymentView, setSession, setRegistrationSubPhase, showAddCard, showMethodList, returnToCheckout, goBackToIdentity, }: UsePaymentSheetDebugArgs): void;
|
|
21
|
-
export {};
|
|
22
|
-
//# sourceMappingURL=usePaymentSheetDebug.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usePaymentSheetDebug.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/usePaymentSheetDebug.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACjF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,UAAU,wBAAwB;IAChC,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,YAAY,CAAC;IACpB,WAAW,EAAE,WAAW,CAAC;IACzB,OAAO,EAAE,eAAe,GAAG,IAAI,CAAC;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;IACxC,cAAc,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IAC5C,UAAU,EAAE,QAAQ,CAAC,cAAc,CAAC,eAAe,GAAG,IAAI,CAAC,CAAC,CAAC;IAC7D,uBAAuB,EAAE,CAAC,QAAQ,EAAE,oBAAoB,KAAK,IAAI,CAAC;IAClE,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,wBAAgB,oBAAoB,CAAC,EACnC,KAAK,EACL,KAAK,EACL,WAAW,EACX,OAAO,EACP,aAAa,EACb,QAAQ,EACR,cAAc,EACd,UAAU,EACV,uBAAuB,EACvB,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,gBAAgB,GACjB,EAAE,wBAAwB,QAsF1B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usePaymentSheetDisplayData.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/usePaymentSheetDisplayData.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE9E,UAAU,8BAA8B;IACtC,OAAO,EAAE,eAAe,GAAG,IAAI,CAAC;IAChC,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,WAAW,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,KAAK,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAChC,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,wBAAgB,0BAA0B,CAAC,EACzC,OAAO,EACP,WAAW,EACX,WAAW,EACX,KAAK,EACL,UAAU,EACV,KAAK,EACL,iBAAyB,GAC1B,EAAE,8BAA8B;;;;;;;;;;;;;;;EA0DhC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usePaymentSheetLifecycle.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/usePaymentSheetLifecycle.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACjF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EACV,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,WAAW,EAAyB,MAAM,eAAe,CAAC;AAGxE,UAAU,4BAA4B;IACpC,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,G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,OAAO,EACP,gBAAgB,EAChB,SAAS,EACT,WAAW,EACX,WAAW,EACX,WAAW,EACX,cAAc,EACd,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,aAAa,EACb,MAAM,EACN,oBAAoB,EACpB,iBAAiB,EACjB,aAAa,EACb,UAAU,EACV,WAAW,EACX,QAAQ,GACT,EAAE,4BAA4B;;;EA8L9B"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { SessionPhase } from '../../hooks/useSession';
|
|
2
|
-
import type { PaymentView } from '../../types/payment';
|
|
3
|
-
interface UsePaymentSheetSkipToAuthArgs {
|
|
4
|
-
skipToAuth: boolean;
|
|
5
|
-
isAgentMode: boolean;
|
|
6
|
-
open: boolean;
|
|
7
|
-
phase: SessionPhase;
|
|
8
|
-
paymentView: PaymentView;
|
|
9
|
-
hasSelectedCard: boolean;
|
|
10
|
-
loading: boolean;
|
|
11
|
-
onTrigger: () => void | Promise<void>;
|
|
12
|
-
}
|
|
13
|
-
export declare function usePaymentSheetSkipToAuth({ skipToAuth, isAgentMode, open, phase, paymentView, hasSelectedCard, loading, onTrigger, }: UsePaymentSheetSkipToAuthArgs): {
|
|
14
|
-
passkeyClosed: boolean;
|
|
15
|
-
markPasskeyClosed: () => void;
|
|
16
|
-
};
|
|
17
|
-
export {};
|
|
18
|
-
//# sourceMappingURL=usePaymentSheetSkipToAuth.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usePaymentSheetSkipToAuth.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/usePaymentSheetSkipToAuth.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,UAAU,6BAA6B;IACrC,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,YAAY,CAAC;IACpB,WAAW,EAAE,WAAW,CAAC;IACzB,eAAe,EAAE,OAAO,CAAC;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACvC;AAED,wBAAgB,yBAAyB,CAAC,EACxC,UAAU,EACV,WAAW,EACX,IAAI,EACJ,KAAK,EACL,WAAW,EACX,eAAe,EACf,OAAO,EACP,SAAS,GACV,EAAE,6BAA6B;;;EAoF/B"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { SessionPhase } from '../../hooks/useSession';
|
|
2
|
-
import type { UseLinkSessionReturn } from '../../hooks/useLinkSession';
|
|
3
|
-
interface UsePaymentSheetSkipToLinkArgs {
|
|
4
|
-
skipToLink: boolean;
|
|
5
|
-
open: boolean;
|
|
6
|
-
phase: SessionPhase;
|
|
7
|
-
loading: boolean;
|
|
8
|
-
walletUserId: string | null;
|
|
9
|
-
isLinkCheckoutAvailable: boolean;
|
|
10
|
-
linkSession: Pick<UseLinkSessionReturn, 'phase' | 'authStatus' | 'authLoading' | 'startLinkConnect' | 'goToCheckout'>;
|
|
11
|
-
}
|
|
12
|
-
export declare function usePaymentSheetSkipToLink({ skipToLink, open, phase, loading, walletUserId, isLinkCheckoutAvailable, linkSession, }: UsePaymentSheetSkipToLinkArgs): void;
|
|
13
|
-
export {};
|
|
14
|
-
//# sourceMappingURL=usePaymentSheetSkipToLink.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usePaymentSheetSkipToLink.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/usePaymentSheetSkipToLink.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAEvE,UAAU,6BAA6B;IACrC,UAAU,EAAE,OAAO,CAAC;IACpB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,YAAY,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,uBAAuB,EAAE,OAAO,CAAC;IACjC,WAAW,EAAE,IAAI,CACf,oBAAoB,EAClB,OAAO,GACP,YAAY,GACZ,aAAa,GACb,kBAAkB,GAClB,cAAc,CACjB,CAAC;CACH;AAED,wBAAgB,yBAAyB,CAAC,EACxC,UAAU,EACV,IAAI,EACJ,KAAK,EACL,OAAO,EACP,YAAY,EACZ,uBAAuB,EACvB,WAAW,GACZ,EAAE,6BAA6B,QAwC/B"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import type { MultiPaymentIntent, SavedCard } from "../../../types/session";
|
|
3
|
-
/**
|
|
4
|
-
* AgentRegistrationView - Mandatory Biometric Authorization for Agent Mode
|
|
5
|
-
*
|
|
6
|
-
* Apple Human Interface Guidelines inspired design:
|
|
7
|
-
* - Single unified surface (merged context + action)
|
|
8
|
-
* - Hero visual: Digital Twin of the credit card
|
|
9
|
-
* - Dynamic biometric button based on device capabilities
|
|
10
|
-
* - Centered, clean typography
|
|
11
|
-
*
|
|
12
|
-
* Flow:
|
|
13
|
-
* - Mastercard: Clicking button → calls sdk.register()
|
|
14
|
-
* - Visa: Clicking button → triggers Visa step-up views
|
|
15
|
-
* - On Success: Returns to checkout with passkey enrolled
|
|
16
|
-
* - On Failure: Shows error with retry and optional skip
|
|
17
|
-
*/
|
|
18
|
-
export interface AgentRegistrationViewProps {
|
|
19
|
-
/**
|
|
20
|
-
* The selected card to display
|
|
21
|
-
*/
|
|
22
|
-
card: SavedCard;
|
|
23
|
-
/**
|
|
24
|
-
* Card network (determines passkey flow)
|
|
25
|
-
*/
|
|
26
|
-
cardNetwork: 'visa' | 'mastercard';
|
|
27
|
-
/**
|
|
28
|
-
* Handler for creating passkey (Mastercard SDK or Visa step-up trigger)
|
|
29
|
-
*/
|
|
30
|
-
onCreatePasskey: () => void;
|
|
31
|
-
/**
|
|
32
|
-
* Handler for skipping registration (only shown after failure)
|
|
33
|
-
*/
|
|
34
|
-
onSkip?: () => void;
|
|
35
|
-
/**
|
|
36
|
-
* Back handler (return to checkout view)
|
|
37
|
-
*/
|
|
38
|
-
onBack?: () => void;
|
|
39
|
-
/**
|
|
40
|
-
* Whether passkey creation is loading
|
|
41
|
-
*/
|
|
42
|
-
isLoading?: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Error message to display
|
|
45
|
-
*/
|
|
46
|
-
error?: string;
|
|
47
|
-
/**
|
|
48
|
-
* Whether to show the skip button (typically after failure)
|
|
49
|
-
*/
|
|
50
|
-
showSkip?: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* Payment intent for context (optional - for showing amount)
|
|
53
|
-
*/
|
|
54
|
-
paymentIntent?: MultiPaymentIntent;
|
|
55
|
-
/**
|
|
56
|
-
* Merchant name for context
|
|
57
|
-
*/
|
|
58
|
-
merchantName?: string;
|
|
59
|
-
}
|
|
60
|
-
export declare const AgentRegistrationView: React.FC<AgentRegistrationViewProps>;
|
|
61
|
-
//# sourceMappingURL=AgentRegistrationView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AgentRegistrationView.d.ts","sourceRoot":"","sources":["../../../../../src/components/payos/views/AgentRegistrationView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAE5E;;;;;;;;;;;;;;GAcG;AAEH,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;OAEG;IACH,WAAW,EAAE,MAAM,GAAG,YAAY,CAAC;IACnC;;OAEG;IACH,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B;;OAEG;IACH,MA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YAAY,EAAE,SAAS,CAAC;IACxB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;IACpB;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;IAC3D;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC;;;OAGG;IACH,aAAa,CAAC,EAAE,kBAAkB,CAAC;IACnC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;IACpB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA4HpD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IdentityView.d.ts","sourceRoot":"","sources":["../../../../../src/components/payos/views/IdentityView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAc,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG9D;;;;;;;GAOG;AAEH,UAAU,iBAAiB;IACzB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;;OAEG;IACH,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IAC9C;;OAEG;IACH,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA0FpD,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared Link wordmark + glyph SVG — used by LinkConnectView,
|
|
3
|
-
* LinkCheckoutView, etc. Extracted from playground IdentityViewDemo so
|
|
4
|
-
* each view doesn't carry the SVG inline.
|
|
5
|
-
*/
|
|
6
|
-
interface LinkBrandProps {
|
|
7
|
-
className?: string;
|
|
8
|
-
markTone?: 'green' | 'black';
|
|
9
|
-
wordmarkTone?: 'auto' | 'black' | 'white';
|
|
10
|
-
}
|
|
11
|
-
export declare function LinkBrand({ className, markTone, wordmarkTone, }: LinkBrandProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export default LinkBrand;
|
|
13
|
-
//# sourceMappingURL=LinkBrand.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LinkBrand.d.ts","sourceRoot":"","sources":["../../../../../src/components/payos/views/LinkBrand.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,UAAU,cAAc;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;CAC3C;AAED,wBAAgB,SAAS,CAAC,EACxB,SAAkB,EAClB,QAAkB,EAClB,YAAqB,GACtB,EAAE,cAAc,2CAgChB;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* LinkCheckoutView — Link payment-method picker + spend approval state.
|
|
3
|
-
*
|
|
4
|
-
* Layout mirrors playground/src/demos/IdentityViewDemo.tsx (Pay-with-Link):
|
|
5
|
-
* single vertically-centered cluster of title → picker/timer → button so the
|
|
6
|
-
* spacing matches the original mock. Logic for popup management + polling
|
|
7
|
-
* lives in useLinkSession; this view is presentational.
|
|
8
|
-
*/
|
|
9
|
-
import type { SavedCard } from '../../../types/session';
|
|
10
|
-
export type LinkCheckoutSubState = 'idle' | 'creating' | 'awaiting' | 'completing';
|
|
11
|
-
interface LinkCheckoutViewProps {
|
|
12
|
-
methods: SavedCard[];
|
|
13
|
-
selectedMethodId: string | null;
|
|
14
|
-
onSelectMethod: (id: string) => void;
|
|
15
|
-
onContinue: () => void;
|
|
16
|
-
onCancel: () => void;
|
|
17
|
-
continueLabel?: string;
|
|
18
|
-
/** Opens the Link wallet popup at app.link.com/wallet for adding/editing cards. */
|
|
19
|
-
onOpenLinkWallet?: () => void;
|
|
20
|
-
/** Reopens the current spend approval popup if the user missed or closed it. */
|
|
21
|
-
onReopenApproval?: () => void;
|
|
22
|
-
subState: LinkCheckoutSubState;
|
|
23
|
-
approvalExpiresAt?: number | null;
|
|
24
|
-
/** Inline error (e.g. spend/create rejected by Stripe). */
|
|
25
|
-
errorMessage?: string | null;
|
|
26
|
-
/** Called when the user clicks the X to dismiss the error banner. */
|
|
27
|
-
onDismissError?: () => void;
|
|
28
|
-
}
|
|
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
|
-
export default LinkCheckoutView;
|
|
31
|
-
//# sourceMappingURL=LinkCheckoutView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LinkCheckoutView.d.ts","sourceRoot":"","sources":["../../../../../src/components/payos/views/LinkCheckoutView.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH,OAAO,KAAK,EAAE,SAAS,EAAe,MAAM,wBAAwB,CAAC;AAErE,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,UAAU,GAAG,UAAU,GAAG,YAAY,CAAC;AAEnF,UAAU,qBAAqB;IAC7B,OAAO,EAAE,SAAS,EAAE,CAAC;IACrB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mFAAmF;IACnF,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,gFAAgF;IAChF,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,2DAA2D;IAC3D,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,qEAAqE;IACrE,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;CAC7B;AAoFD,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,gBAAgB,EAChB,cAAc,EACd,UAAU,EACV,QAAQ,EACR,aAA0B,EAC1B,gBAAgB,EAChB,gBAAgB,EAChB,QAAQ,EACR,iBAAiB,EACjB,YAAY,EACZ,cAAc,GACf,EAAE,qBAAqB,2CA6PvB;AAED,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LinkConnectView.d.ts","sourceRoot":"","sources":["../../../../../src/components/payos/views/LinkConnectView.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH,UAAU,oBAAoB;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wBAAgB,eAAe,CAAC,EAC9B,UAAU,EACV,YAAoB,EACpB,QAAQ,EACR,QAAQ,GACT,EAAE,oBAAoB,2CA4FtB;AAED,eAAe,eAAe,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LinkDeniedView.d.ts","sourceRoot":"","sources":["../../../../../src/components/payos/views/LinkDeniedView.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,SAAS,GAAG,WAAW,CAAC;AAElE,UAAU,mBAAmB;IAC3B,MAAM,CAAC,EAAE,gBAAgB,GAAG,MAAM,CAAC;IACnC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAwBD,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,OAAO,EACP,SAAS,GACV,EAAE,mBAAmB,2CAgDrB;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* LinkLoadingView — three-dot pulse shown briefly between device-auth
|
|
3
|
-
* approval and methods load (or any other Link transition that needs a
|
|
4
|
-
* placeholder).
|
|
5
|
-
*/
|
|
6
|
-
interface LinkLoadingViewProps {
|
|
7
|
-
message?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare function LinkLoadingView({ message, }: LinkLoadingViewProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export default LinkLoadingView;
|
|
11
|
-
//# sourceMappingURL=LinkLoadingView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LinkLoadingView.d.ts","sourceRoot":"","sources":["../../../../../src/components/payos/views/LinkLoadingView.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,UAAU,oBAAoB;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,eAAe,CAAC,EAC9B,OAAqC,GACtC,EAAE,oBAAoB,2CAWtB;AAED,eAAe,eAAe,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LinkSuccessView.d.ts","sourceRoot":"","sources":["../../../../../src/components/payos/views/LinkSuccessView.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,UAAU,oBAAoB;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,eAAe,CAAC,EAC9B,OAAiC,GAClC,EAAE,oBAAoB,2CAoEtB;AAED,eAAe,eAAe,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ManageThirdPartyView — list of payment networks the user has connected
|
|
3
|
-
* to PayOS. Layout ported from playground/src/demos/IdentityViewDemo.tsx
|
|
4
|
-
* `Manage third-party methods` view.
|
|
5
|
-
*/
|
|
6
|
-
interface ManageThirdPartyViewProps {
|
|
7
|
-
expiresAt: string | null;
|
|
8
|
-
/** Called when the user taps Disconnect on the Link row. */
|
|
9
|
-
onDisconnect: () => void;
|
|
10
|
-
/** Returns to the previous view (used as the back affordance). */
|
|
11
|
-
onClose: () => void;
|
|
12
|
-
/** Opens app.link.com/wallet for adding/editing Link cards. */
|
|
13
|
-
onManageLink?: () => void;
|
|
14
|
-
/** Whether the Link account is currently connected. */
|
|
15
|
-
linkConnected?: boolean;
|
|
16
|
-
}
|
|
17
|
-
export declare function ManageThirdPartyView({ onDisconnect, onClose, onManageLink, linkConnected, }: ManageThirdPartyViewProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
export default ManageThirdPartyView;
|
|
19
|
-
//# sourceMappingURL=ManageThirdPartyView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ManageThirdPartyView.d.ts","sourceRoot":"","sources":["../../../../../src/components/payos/views/ManageThirdPartyView.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,UAAU,yBAAyB;IACjC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,4DAA4D;IAC5D,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,kEAAkE;IAClE,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,+DAA+D;IAC/D,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,uDAAuD;IACvD,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,wBAAgB,oBAAoB,CAAC,EACnC,YAAY,EACZ,OAAO,EACP,YAAY,EACZ,aAAoB,GACrB,EAAE,yBAAyB,2CAyE3B;AAED,eAAe,oBAAoB,CAAC"}
|