@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,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,GAAG,OAAO,GAAG,MAAM,CAAC;IAC5C,IAAI,EAAE,OAAO,CAAC;IACd,WAAW,EAAE,oBAAoB,CAAC;IAClC,KAAK,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAChC,OAAO,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC5C,KAAK,EAAE,YAAY,CAAC;IACpB,OAAO,EAAE,eAAe,GAAG,IAAI,CAAC;IAChC,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC3C,SAAS,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAChD,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;IACrB,wBAAwB,EAAE,OAAO,CAAC;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACjD,eAAe,EAAE,WAAW,CAAC;IAC7B,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACpD,aAAa,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IAChD,MAAM,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACzC,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,aAAa,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC;IACvD,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,WAAW,EAAE,WAAW,CAAC;IACzB,QAAQ,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;CACzC;AAED,wBAAgB,wBAAwB,CAAC,EACvC,KAAK,EACL,IAAI,EACJ,WAAW,EACX,KAAK,EACL,OAAO,EACP,KAAK,EACL,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,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,aAAa,CAAC,EAAE,kBAAkB,CAAC;IACnC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAiGtE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CardAddView.d.ts","sourceRoot":"","sources":["../../../../../src/components/payos/views/CardAddView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAEV,yBAAyB,EACzB,0BAA0B,EAC3B,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAErE;;;;;;;;;;;;;;;;;;GAkBG;AAEH,UAAU,gBAAgB;IACxB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,QAAQ,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,cAAc,EAAE,cAAc,KAAK,IAAI,CAAC;IAEvE;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IAEpB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,GAAG,YAAY,CAAC;IAEvC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAE3B;;;OAGG;IACH,eAAe,CAAC,EAAE,kBAAkB,CAAC;IAErC;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAE3B;;;OAGG;IACH,WAAW,CAAC,EAAE,yBAAyB,EAAE,CAAC;IAC1C,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,0BAA0B,GAAG,IAAI,KAAK,IAAI,CAAC;IAElE,8EAA8E;IAC9E,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;IAE5C,sDAAsD;IACtD,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACzC;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA2QlD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CheckoutView.d.ts","sourceRoot":"","sources":["../../../../../src/components/payos/views/CheckoutView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,kBAAkB,EAAqB,MAAM,wBAAwB,CAAC;AAEpF;;;;;;;;;;;;;;;;;;GAkBG;AAEH,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAeD,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,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"}
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import type { SavedCard } from "../../../types";
|
|
3
|
-
/**
|
|
4
|
-
* MethodListView - Full card list with radio-style selection
|
|
5
|
-
*
|
|
6
|
-
* **High-Density Design:**
|
|
7
|
-
* - iOS-style navigation header with back button
|
|
8
|
-
* - List of all saved cards using PaymentMethodRow
|
|
9
|
-
* - One-tap selection: clicking immediately returns to CheckoutView
|
|
10
|
-
* - "Add new card" merged INTO list as final row (not floating footer)
|
|
11
|
-
* - Card Stack Architecture pattern
|
|
12
|
-
* - Optional delete functionality with swipe-to-delete gesture
|
|
13
|
-
*
|
|
14
|
-
* Navigation Flow:
|
|
15
|
-
* - Back button → returns to CheckoutView
|
|
16
|
-
* - Selecting a card → immediately returns to CheckoutView
|
|
17
|
-
* - "Add new card" → navigates to AddCardView
|
|
18
|
-
*/
|
|
19
|
-
/** Lightweight representation of a Link-held payment method */
|
|
20
|
-
export interface LinkWalletMethod {
|
|
21
|
-
id: string;
|
|
22
|
-
brand?: string;
|
|
23
|
-
last4?: string;
|
|
24
|
-
expMonth?: number;
|
|
25
|
-
expYear?: number;
|
|
26
|
-
label?: string;
|
|
27
|
-
isDefault?: boolean;
|
|
28
|
-
type?: 'card' | 'bank_account';
|
|
29
|
-
bankName?: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Optional Link payment-source row rendered alongside saved cards.
|
|
33
|
-
* Set when the merchant org has Link enabled AND the wallet user has a LinkConnection.
|
|
34
|
-
*/
|
|
35
|
-
export interface MethodListLinkOption {
|
|
36
|
-
/** Whether the user currently has an active Link connection */
|
|
37
|
-
connected: boolean;
|
|
38
|
-
/** Short subtitle shown when connected without a methods list */
|
|
39
|
-
subtitle?: string;
|
|
40
|
-
/** Fired when the connect CTA (big button) is tapped */
|
|
41
|
-
onSelect: () => void;
|
|
42
|
-
/** Whether the connect CTA is currently selected */
|
|
43
|
-
selected: boolean;
|
|
44
|
-
/** Link-held methods. When present + connected, renders as inline rows with a link badge. */
|
|
45
|
-
methods?: LinkWalletMethod[];
|
|
46
|
-
/** ID of the currently-selected Link method (for row highlight) */
|
|
47
|
-
selectedMethodId?: string | null;
|
|
48
|
-
/** Fired when the user taps a specific Link-held method row */
|
|
49
|
-
onSelectMethod?: (methodId: string) => void;
|
|
50
|
-
/** Fired when the user taps "Sign out of Link" */
|
|
51
|
-
onSignOut?: () => void;
|
|
52
|
-
/**
|
|
53
|
-
* Layout for Link when connected:
|
|
54
|
-
* - "inline" (default): Link cards render as rows alongside saved cards with a badge
|
|
55
|
-
* - "button": always render the big "Pay with Link" CTA regardless of connection state
|
|
56
|
-
*/
|
|
57
|
-
displayMode?: 'inline' | 'button';
|
|
58
|
-
/**
|
|
59
|
-
* Fired when the user taps "Manage third-party methods" row (inline mode only).
|
|
60
|
-
* Implementations should navigate to a dedicated management view with sign-out + reconnect.
|
|
61
|
-
*/
|
|
62
|
-
onManageThirdParty?: () => void;
|
|
63
|
-
}
|
|
64
|
-
interface MethodListViewProps {
|
|
65
|
-
/**
|
|
66
|
-
* List of saved cards
|
|
67
|
-
*/
|
|
68
|
-
cards: SavedCard[];
|
|
69
|
-
/**
|
|
70
|
-
* Currently selected card ID
|
|
71
|
-
*/
|
|
72
|
-
selectedCardId: string | null;
|
|
73
|
-
/**
|
|
74
|
-
* Callback when user selects a card
|
|
75
|
-
* Implementation should:
|
|
76
|
-
* 1. Update selectedCardId
|
|
77
|
-
* 2. Immediately navigate back to CheckoutView (one-tap selection)
|
|
78
|
-
*/
|
|
79
|
-
onSelectCard: (cardId: string) => void;
|
|
80
|
-
/**
|
|
81
|
-
* Callback when user clicks "Add new card"
|
|
82
|
-
* Should navigate to AddCardView
|
|
83
|
-
*/
|
|
84
|
-
onAddNewCard: () => void;
|
|
85
|
-
/**
|
|
86
|
-
* Optional Link row. When present, renders between saved cards and "Add new card".
|
|
87
|
-
* Omit entirely when the merchant or user hasn't enabled Link.
|
|
88
|
-
*/
|
|
89
|
-
linkOption?: MethodListLinkOption;
|
|
90
|
-
/**
|
|
91
|
-
* Callback when back button is clicked
|
|
92
|
-
* Optional — when omitted, the back button is hidden (e.g. setup mode primary view)
|
|
93
|
-
*/
|
|
94
|
-
onBack?: () => void;
|
|
95
|
-
/**
|
|
96
|
-
* Optional callback when user deletes a card
|
|
97
|
-
*/
|
|
98
|
-
onDeleteCard?: (cardId: string) => void;
|
|
99
|
-
/**
|
|
100
|
-
* Display mode: 'checkout' shows blue checkmark selection,
|
|
101
|
-
* 'setup' shows "Default" text badge on default card
|
|
102
|
-
*/
|
|
103
|
-
mode?: 'checkout' | 'setup';
|
|
104
|
-
/**
|
|
105
|
-
* Optional callback when user clicks "Done" (setup mode completion)
|
|
106
|
-
* When provided, renders a "Done" button below the card list
|
|
107
|
-
*/
|
|
108
|
-
onDone?: () => void;
|
|
109
|
-
/**
|
|
110
|
-
* Loading state for the Done button
|
|
111
|
-
*/
|
|
112
|
-
isLoading?: boolean;
|
|
113
|
-
}
|
|
114
|
-
export declare const MethodListView: React.FC<MethodListViewProps>;
|
|
115
|
-
export {};
|
|
116
|
-
//# sourceMappingURL=MethodListView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MethodListView.d.ts","sourceRoot":"","sources":["../../../../../src/components/payos/views/MethodListView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAShD;;;;;;;;;;;;;;;GAeG;AAEH,+DAA+D;AAC/D,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,GAAG,cAAc,CAAC;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,+DAA+D;IAC/D,SAAS,EAAE,OAAO,CAAC;IACnB,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,wDAAwD;IACxD,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,oDAAoD;IACpD,QAAQ,EAAE,OAAO,CAAC;IAClB,6FAA6F;IAC7F,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC7B,mEAAmE;IACnE,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,+DAA+D;IAC/D,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB;;;;OAIG;IACH,WAAW,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAClC;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;CACjC;AAED,UAAU,mBAAmB;IAC3B;;OAEG;IACH,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB;;OAEG;IACH,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B;;;;;OAKG;IACH,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC;;;OAGG;IACH,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB;;;OAGG;IACH,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC;;;OAGG;IACH,IAAI,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC;IAC5B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAiBD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAiTxD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OTPView.d.ts","sourceRoot":"","sources":["../../../../../src/components/payos/views/OTPView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B;;;;;;;;;;;;;;GAcG;AAEH,UAAU,YAAY;IACpB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC;;OAEG;IACH,QAAQ,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CA4H1C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SuccessView.d.ts","sourceRoot":"","sources":["../../../../../src/components/payos/views/SuccessView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,kBAAkB,EAAqB,gBAAgB,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAiClH,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,aAAa,CAAC,EAAE,kBAAkB,CAAC;IACnC;;OAEG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,YAAY,CAAC;IAChC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC;IACpC;;;OAGG;IACH,IAAI,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC;IAC5B;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B;;OAEG;IACH,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAkHlD,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
/**
|
|
3
|
-
* VisaIframeView - Visa Passkey SDK Iframe Container
|
|
4
|
-
*
|
|
5
|
-
* Features:
|
|
6
|
-
* - Container div for Visa VTS SDK iframe
|
|
7
|
-
* - Shown after OTP validation succeeds
|
|
8
|
-
* - SDK injects iframe into the container via showIframe()
|
|
9
|
-
*
|
|
10
|
-
* Design Pattern: Dedicated view for Visa passkey registration UI
|
|
11
|
-
*/
|
|
12
|
-
export interface VisaIframeViewProps {
|
|
13
|
-
onCancel?: () => void;
|
|
14
|
-
}
|
|
15
|
-
export declare const VisaIframeView: React.FC<VisaIframeViewProps>;
|
|
16
|
-
//# sourceMappingURL=VisaIframeView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VisaIframeView.d.ts","sourceRoot":"","sources":["../../../../../src/components/payos/views/VisaIframeView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B;;;;;;;;;GASG;AAEH,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAkBxD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VisaMethodView.d.ts","sourceRoot":"","sources":["../../../../../src/components/payos/views/VisaMethodView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B;;;;;;;;GAQG;AAGH,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,sBAAsB,EAAE,CAAC;IAClC,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAgIxD,CAAC"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
export interface VisaOtpViewProps {
|
|
3
|
-
/**
|
|
4
|
-
* Selected method description (e.g., "(***) ***-1234")
|
|
5
|
-
*/
|
|
6
|
-
methodDescription: string;
|
|
7
|
-
/**
|
|
8
|
-
* Current OTP value
|
|
9
|
-
*/
|
|
10
|
-
otp: string;
|
|
11
|
-
/**
|
|
12
|
-
* OTP change handler
|
|
13
|
-
*/
|
|
14
|
-
onOtpChange: (otp: string) => void;
|
|
15
|
-
/**
|
|
16
|
-
* Verify handler
|
|
17
|
-
*/
|
|
18
|
-
onVerify: () => void;
|
|
19
|
-
/**
|
|
20
|
-
* Back handler (return to VisaMethodView)
|
|
21
|
-
*/
|
|
22
|
-
onBack: () => void;
|
|
23
|
-
/**
|
|
24
|
-
* Resend handler
|
|
25
|
-
*/
|
|
26
|
-
onResend?: () => void;
|
|
27
|
-
/**
|
|
28
|
-
* Handler for "verify another way" action (when locked out)
|
|
29
|
-
*/
|
|
30
|
-
onVerifyAnotherWay?: () => void;
|
|
31
|
-
/**
|
|
32
|
-
* Loading state
|
|
33
|
-
*/
|
|
34
|
-
isLoading?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Error message
|
|
37
|
-
*/
|
|
38
|
-
error?: string;
|
|
39
|
-
/**
|
|
40
|
-
* Whether user can retry OTP entry (false = locked out)
|
|
41
|
-
*/
|
|
42
|
-
canRetry?: boolean;
|
|
43
|
-
}
|
|
44
|
-
export declare const VisaOtpView: React.FC<VisaOtpViewProps>;
|
|
45
|
-
//# sourceMappingURL=VisaOtpView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VisaOtpView.d.ts","sourceRoot":"","sources":["../../../../../src/components/payos/views/VisaOtpView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAmB/B,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC;;OAEG;IACH,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA+HlD,CAAC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
/**
|
|
3
|
-
* WelcomeBackView - Profile Selection / Known User Identity Confirmation
|
|
4
|
-
*
|
|
5
|
-
* Features:
|
|
6
|
-
* - "Welcome back!" headline for warm greeting
|
|
7
|
-
* - Identity Tile: Compact card showing phone number with verified indicator
|
|
8
|
-
* - User icon in rounded gray container (non-floaty design)
|
|
9
|
-
* - Clean vertical flow: Headline → Tile → Button → Subtext
|
|
10
|
-
* - "Not you?" link for account switching
|
|
11
|
-
*
|
|
12
|
-
* Design Pattern: "Sandwich" layout with subtext below button for better hierarchy
|
|
13
|
-
*/
|
|
14
|
-
interface WelcomeBackViewProps {
|
|
15
|
-
/**
|
|
16
|
-
* Prefilled phone number (formatted)
|
|
17
|
-
*/
|
|
18
|
-
phone: string;
|
|
19
|
-
/**
|
|
20
|
-
* Continue handler (sends SMS code)
|
|
21
|
-
*/
|
|
22
|
-
onContinue: () => void;
|
|
23
|
-
/**
|
|
24
|
-
* Switch account handler (clears prefill, goes to IdentityView)
|
|
25
|
-
*/
|
|
26
|
-
onSwitchAccount: () => void;
|
|
27
|
-
/**
|
|
28
|
-
* Whether continue action is loading
|
|
29
|
-
*/
|
|
30
|
-
isLoading?: boolean;
|
|
31
|
-
}
|
|
32
|
-
export declare const WelcomeBackView: React.FC<WelcomeBackViewProps>;
|
|
33
|
-
export {};
|
|
34
|
-
//# sourceMappingURL=WelcomeBackView.d.ts.map
|