@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,15 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export declare function useVisualViewport(): number;
|
|
3
|
-
/**
|
|
4
|
-
* useVisualViewportStyle - Returns inline style object with bottom offset
|
|
5
|
-
*
|
|
6
|
-
* Convenience hook that returns a style object to spread directly onto elements.
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```tsx
|
|
10
|
-
* const style = useVisualViewportStyle();
|
|
11
|
-
* return <div className="fixed bottom-0" style={style}>Content</div>
|
|
12
|
-
* ```
|
|
13
|
-
*/
|
|
14
|
-
export declare function useVisualViewportStyle(): React.CSSProperties;
|
|
15
|
-
//# sourceMappingURL=useVisualViewport.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useVisualViewport.d.ts","sourceRoot":"","sources":["../../src/hooks/useVisualViewport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA+B/B,wBAAgB,iBAAiB,IAAI,MAAM,CAoD1C;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,IAAI,KAAK,CAAC,aAAa,CAS5D"}
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,IAAI,EA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AO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAE,WAAW,IAAI,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC5G,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,YAAY,EACV,0BAA0B,EAC1B,yBAAyB,EACzB,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAGtF,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAG1F,YAAY,EACV,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,UAAU,EACV,SAAS,IAAI,gBAAgB,EAC7B,WAAW,EACX,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,sBAAsB,EACtB,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/lib/theme.d.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PayOS Elements Theming System
|
|
3
|
-
*
|
|
4
|
-
* Provides CSS variable-based theming with support for:
|
|
5
|
-
* - Primary color customization
|
|
6
|
-
* - Font family
|
|
7
|
-
* - Border radius
|
|
8
|
-
* - Dark mode
|
|
9
|
-
*/
|
|
10
|
-
export interface PayOSTheme {
|
|
11
|
-
/**
|
|
12
|
-
* Primary brand color (hex format)
|
|
13
|
-
* @default "#0f172a" (slate-900)
|
|
14
|
-
*/
|
|
15
|
-
colorPrimary?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Font family stack
|
|
18
|
-
* @default "system-ui, -apple-system, sans-serif"
|
|
19
|
-
*/
|
|
20
|
-
fontFamily?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Border radius for components
|
|
23
|
-
* @default "0.75rem" (12px)
|
|
24
|
-
*/
|
|
25
|
-
borderRadius?: string;
|
|
26
|
-
}
|
|
27
|
-
declare const DEFAULT_THEME: Required<PayOSTheme>;
|
|
28
|
-
/**
|
|
29
|
-
* Applies theme CSS variables to a target element
|
|
30
|
-
*/
|
|
31
|
-
export declare function applyTheme(element: HTMLElement, theme?: PayOSTheme): void;
|
|
32
|
-
/**
|
|
33
|
-
* Removes theme CSS variables from a target element
|
|
34
|
-
*/
|
|
35
|
-
export declare function clearTheme(element: HTMLElement): void;
|
|
36
|
-
/**
|
|
37
|
-
* Hook to apply theme to a ref element
|
|
38
|
-
* @example
|
|
39
|
-
* ```tsx
|
|
40
|
-
* const ref = useTheme({ colorPrimary: '#4f46e5' });
|
|
41
|
-
* return <div ref={ref}>...</div>
|
|
42
|
-
* ```
|
|
43
|
-
*/
|
|
44
|
-
export declare function useTheme(theme?: PayOSTheme): React.RefObject<HTMLDivElement>;
|
|
45
|
-
export { DEFAULT_THEME };
|
|
46
|
-
export declare function isValidHexColor(color: string): boolean;
|
|
47
|
-
export declare function hexToRgb(hex: string): {
|
|
48
|
-
r: number;
|
|
49
|
-
g: number;
|
|
50
|
-
b: number;
|
|
51
|
-
} | null;
|
|
52
|
-
import * as React from 'react';
|
|
53
|
-
//# sourceMappingURL=theme.d.ts.map
|
package/dist/lib/theme.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/lib/theme.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,QAAA,MAAM,aAAa,EAAE,QAAQ,CAAC,UAAU,CAIvC,CAAC;AAEF;;GAEG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,WAAW,EAAE,KAAK,GAAE,UAAe,GAAG,IAAI,CAM7E;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,CAIrD;AAED;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,KAAK,GAAE,UAAe,mCAgB9C;AAGD,OAAO,EAAE,aAAa,EAAE,CAAC;AAGzB,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEtD;AAGD,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAOhF;AAGD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC"}
|
package/dist/lib/utils.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAC;AAG7C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC"}
|
package/dist/mocks/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mocks/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { CardData, PaymentResult } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* Mock: Send OTP to phone number
|
|
4
|
-
*/
|
|
5
|
-
export declare const mockSendOTP: (phone: string) => Promise<void>;
|
|
6
|
-
/**
|
|
7
|
-
* Mock: Verify OTP code
|
|
8
|
-
* Test OTP: "123456" or any 6-digit code
|
|
9
|
-
*/
|
|
10
|
-
export declare const mockVerifyOTP: (otp: string) => Promise<boolean>;
|
|
11
|
-
/**
|
|
12
|
-
* Mock: Process payment
|
|
13
|
-
*/
|
|
14
|
-
export declare const mockProcessPayment: (data: {
|
|
15
|
-
phoneNumber: string;
|
|
16
|
-
email: string;
|
|
17
|
-
cardData: CardData;
|
|
18
|
-
amount: number;
|
|
19
|
-
mode: "standard" | "agent";
|
|
20
|
-
}) => Promise<PaymentResult>;
|
|
21
|
-
/**
|
|
22
|
-
* Mock: Resend OTP
|
|
23
|
-
*/
|
|
24
|
-
export declare const mockResendOTP: (phone: string) => Promise<void>;
|
|
25
|
-
//# sourceMappingURL=mockCheckoutFlow.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mockCheckoutFlow.d.ts","sourceRoot":"","sources":["../../src/mocks/mockCheckoutFlow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAIxD;;GAEG;AACH,eAAO,MAAM,WAAW,GAAU,OAAO,MAAM,KAAG,OAAO,CAAC,IAAI,CAI7D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,GAAU,KAAK,MAAM,KAAG,OAAO,CAAC,OAAO,CAShE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAAU,MAAM;IAC7C,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,QAAQ,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC;CAC5B,KAAG,OAAO,CAAC,aAAa,CAiBxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,GAAU,OAAO,MAAM,KAAG,OAAO,CAAC,IAAI,CAI/D,CAAC"}
|
package/dist/mocks/mockData.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { OrderItem, OrderData } from '../types';
|
|
2
|
-
export declare const SAMPLE_PRODUCT: OrderItem;
|
|
3
|
-
export declare const SAMPLE_ORDER: OrderData;
|
|
4
|
-
export declare const SAMPLE_ORDER_WITH_SHIPMENTS: OrderData;
|
|
5
|
-
export declare const GRADIENT_OPTIONS: string[];
|
|
6
|
-
//# sourceMappingURL=mockData.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mockData.d.ts","sourceRoot":"","sources":["../../src/mocks/mockData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErD,eAAO,MAAM,cAAc,EAAE,SAO5B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,SAO1B,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,SAczC,CAAC;AAGF,eAAO,MAAM,gBAAgB,UAO5B,CAAC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { CheckoutSession, MultiPaymentIntent, WalletUser, SavedCard, SessionStatus, PaymentIntentType } from '../types/session';
|
|
2
|
-
export declare const MOCK_CARDS: SavedCard[];
|
|
3
|
-
export declare const MOCK_WALLET_USER: WalletUser;
|
|
4
|
-
export declare const MOCK_ONLINE_PAYMENT_INTENT: MultiPaymentIntent;
|
|
5
|
-
export declare const MOCK_AGENT_PAYMENT_INTENT: MultiPaymentIntent;
|
|
6
|
-
export declare const MOCK_MULTI_PAYMENT_INTENT: MultiPaymentIntent;
|
|
7
|
-
export declare const MOCK_SMALL_PAYMENT_INTENT: MultiPaymentIntent;
|
|
8
|
-
export declare const MOCK_SESSION_NEW_USER: CheckoutSession;
|
|
9
|
-
export declare const MOCK_SESSION_RETURNING_USER: CheckoutSession;
|
|
10
|
-
export declare const MOCK_SESSION_AGENT_MODE: CheckoutSession;
|
|
11
|
-
export declare const MOCK_SESSION_AGENT_RETURNING: CheckoutSession;
|
|
12
|
-
export declare const MOCK_SESSION_MULTI_PAYMENT: CheckoutSession;
|
|
13
|
-
export declare const MOCK_SESSION_MULTI_RETURNING: CheckoutSession;
|
|
14
|
-
export declare const MOCK_SESSION_OTP_PENDING: CheckoutSession;
|
|
15
|
-
export declare const MOCK_SESSION_PAYMENT_PENDING: CheckoutSession;
|
|
16
|
-
export interface CreateMockSessionOptions {
|
|
17
|
-
type?: PaymentIntentType;
|
|
18
|
-
status?: SessionStatus;
|
|
19
|
-
hasWalletUser?: boolean;
|
|
20
|
-
hasSavedCards?: boolean;
|
|
21
|
-
deviceVerified?: boolean;
|
|
22
|
-
amount?: number;
|
|
23
|
-
subtotal?: number;
|
|
24
|
-
tax?: number;
|
|
25
|
-
shipping?: number;
|
|
26
|
-
merchantName?: string;
|
|
27
|
-
payments?: Array<{
|
|
28
|
-
merchantName: string;
|
|
29
|
-
amount: number;
|
|
30
|
-
subtotal: number;
|
|
31
|
-
tax?: number;
|
|
32
|
-
shipping?: number;
|
|
33
|
-
description?: string;
|
|
34
|
-
}>;
|
|
35
|
-
}
|
|
36
|
-
export declare function createMockSession(options?: CreateMockSessionOptions): CheckoutSession;
|
|
37
|
-
export declare const PRESET_SESSIONS: Record<string, CheckoutSession>;
|
|
38
|
-
//# sourceMappingURL=mockSessionData.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mockSessionData.d.ts","sourceRoot":"","sources":["../../src/mocks/mockSessionData.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,kBAAkB,EAElB,UAAU,EACV,SAAS,EACT,aAAa,EACb,iBAAiB,EAClB,MAAM,kBAAkB,CAAC;AAK1B,eAAO,MAAM,UAAU,EAAE,SAAS,EAqCjC,CAAC;AAKF,eAAO,MAAM,gBAAgB,EAAE,UAO9B,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C,iBAAiB,CAAC,CAsB5B;AAED;;;;;;;GAOG;AACH,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CAgB/B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"linkTokenService.d.ts","sourceRoot":"","sources":["../../src/services/linkTokenService.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,oCAAoC,CAAC"}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { CheckoutSession, MultiPaymentIntent, VerificationInitResult, VerificationResult, CompletionResult, SavedCard } from '../types/session';
|
|
2
|
-
import { CreateMockSessionOptions } from '../mocks/mockSessionData';
|
|
3
|
-
export declare function loadSession(sessionId: string): Promise<CheckoutSession>;
|
|
4
|
-
export declare function updateSession(sessionId: string, updates: Partial<CheckoutSession>): Promise<CheckoutSession>;
|
|
5
|
-
export declare function initiateVerification(sessionId: string, contact: {
|
|
6
|
-
email?: string;
|
|
7
|
-
phone?: string;
|
|
8
|
-
}): Promise<VerificationInitResult>;
|
|
9
|
-
export declare function confirmVerification(sessionId: string, code: string): Promise<VerificationResult>;
|
|
10
|
-
export declare function resendOTP(sessionId: string): Promise<VerificationInitResult>;
|
|
11
|
-
/**
|
|
12
|
-
* Mock API: Update payment intent with selected card
|
|
13
|
-
* Simulates: PATCH /payment-intents/{paymentIntentId}
|
|
14
|
-
* Body: { selectedCardId: string }
|
|
15
|
-
*/
|
|
16
|
-
export declare function updatePaymentIntentCard(paymentIntentId: string, cardId: string): Promise<{
|
|
17
|
-
success: boolean;
|
|
18
|
-
paymentIntent: MultiPaymentIntent;
|
|
19
|
-
}>;
|
|
20
|
-
export declare function selectCard(sessionId: string, cardId: string): Promise<CheckoutSession>;
|
|
21
|
-
export declare function addCard(sessionId: string, tokenizedCard: {
|
|
22
|
-
cardId: string;
|
|
23
|
-
last4: string;
|
|
24
|
-
brand: string;
|
|
25
|
-
network: string;
|
|
26
|
-
expiryMonth?: string;
|
|
27
|
-
expiryYear?: string;
|
|
28
|
-
cardholderName?: string;
|
|
29
|
-
cardArtUrl?: string;
|
|
30
|
-
}): Promise<{
|
|
31
|
-
session: CheckoutSession;
|
|
32
|
-
card: SavedCard;
|
|
33
|
-
}>;
|
|
34
|
-
export declare function clearSelectedCard(sessionId: string): Promise<CheckoutSession>;
|
|
35
|
-
export declare function completeSession(sessionId: string, options?: {
|
|
36
|
-
passkeyAuthenticated?: boolean;
|
|
37
|
-
}): Promise<CompletionResult>;
|
|
38
|
-
export declare function abandonSession(sessionId: string): Promise<CheckoutSession>;
|
|
39
|
-
export declare function createTestSession(options?: CreateMockSessionOptions): string;
|
|
40
|
-
export declare function resetSession(sessionId: string): void;
|
|
41
|
-
export declare function resetAllSessions(): void;
|
|
42
|
-
export declare function getSessionState(sessionId: string): CheckoutSession | undefined;
|
|
43
|
-
export declare function listAllSessions(): string[];
|
|
44
|
-
export interface WalletUserCardsResponse {
|
|
45
|
-
walletUserId: string;
|
|
46
|
-
cards: SavedCard[];
|
|
47
|
-
defaultCardId?: string;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Mock implementation of GET /wallet-users/{wallet_user_id}/cards
|
|
51
|
-
* Returns all saved cards for a wallet user with card art URLs
|
|
52
|
-
*/
|
|
53
|
-
export declare function getWalletUserCards(walletUserId: string): Promise<WalletUserCardsResponse>;
|
|
54
|
-
/**
|
|
55
|
-
* @deprecated This function has been removed.
|
|
56
|
-
*
|
|
57
|
-
* To create a checkout session with a real payment intent:
|
|
58
|
-
* 1. Your backend calls POST /api/auth/payos-link/tokens/link to get a clientSecret
|
|
59
|
-
* 2. Your backend creates a payment intent via the PayOS API
|
|
60
|
-
* 3. Pass the clientSecret to <PaymentSheet clientSecret={...} />
|
|
61
|
-
*
|
|
62
|
-
* The SDK should never create payment intents directly - that's the backend's job.
|
|
63
|
-
*/
|
|
64
|
-
export declare function createTestSessionWithRealIntent(): Promise<string>;
|
|
65
|
-
//# sourceMappingURL=mockSessionService.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mockSessionService.d.ts","sourceRoot":"","sources":["../../src/services/mockSessionService.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,sBAAsB,EACtB,kBAAkB,EAClB,gBAAgB,EAChB,SAAS,EAEV,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAKL,wBAAwB,EACzB,MAAM,0BAA0B,CAAC;AAsClC,wBAAsB,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAiB7E;AAED,wBAAsB,aAAa,CACjC,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC,GAChC,OAAO,CAAC,eAAe,CAAC,CAiB1B;AAMD,wBAAsB,oBAAoB,CACxC,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,GAC1C,OAAO,CAAC,sBAAsB,CAAC,CA0CjC;AAED,wBAAsB,mBAAmB,CACvC,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,kBAAkB,CAAC,CAgF7B;AAED,wBAAsB,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC,CA2DlF;AAMD;;;;GAIG;AACH,wBAAsB,uBAAuB,CAC3C,eAAe,EAAE,MAAM,EACvB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,aAAa,EAAE,kBAAkB,CAAA;CAAE,CAAC,CA6BlE;AAED,wBAAsB,UAAU,CAC9B,SAAS,EAA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I;IAgBf,OAAO,IAAI,IAAI;IAMf,SAAS,CAAC,MAAM,EAAE,wBAAwB,GAAG,IAAI;IAqBjD,MAAM,IAAI,IAAI;IAgBd,YAAY,CAAC,MAAM,EAAE,iBAAiB,GAAG,IAAI;IASpD,OAAO,CAAC,UAAU;IAgBlB,OAAO,CAAC,aAAa;IAuErB,OAAO,CAAC,eAAe;IAKvB,OAAO,CAAC,cAAc;IAmBtB,OAAO,CAAC,UAAU;IAQlB,OAAO,CAAC,iBAAiB;IAsBzB,OAAO,CAAC,eAAe;CASxB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IdentityBar.d.ts","sourceRoot":"","sources":["../../../../src/components/identity/IdentityBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,gBAAgB;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAkBlD,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { OrderData } from '../../types';
|
|
3
|
-
interface OrderSummaryAccordionProps {
|
|
4
|
-
orderData: OrderData;
|
|
5
|
-
mode?: 'standard' | 'agent';
|
|
6
|
-
}
|
|
7
|
-
export declare const OrderSummaryAccordion: React.FC<OrderSummaryAccordionProps>;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=OrderSummaryAccordion.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OrderSummaryAccordion.d.ts","sourceRoot":"","sources":["../../../../src/components/order/OrderSummaryAccordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAI7C,UAAU,0BAA0B;IAClC,SAAS,EAAE,SAAS,CAAC;IACrB,IAAI,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC;CAC7B;AAED,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CA6FtE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ShipmentCard.d.ts","sourceRoot":"","sources":["../../../../src/components/order/ShipmentCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,UAAU,iBAAiB;IACzB,IAAI,EAAE,SAAS,CAAC;CACjB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAqBpD,CAAC"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import type { SavedCard } from "../../types";
|
|
3
|
-
/**
|
|
4
|
-
* ActiveCardWidget - The "Hero" card component for CheckoutView
|
|
5
|
-
*
|
|
6
|
-
* Combines card display + CVC entry in a unified widget with two sections:
|
|
7
|
-
* - Top Half: Card display (brand icon + last4 + expiry) with "Change" link
|
|
8
|
-
* - Bottom Half: Security code (CVC) input with subtle background contrast
|
|
9
|
-
*
|
|
10
|
-
* **Design System (World-Class Polish):**
|
|
11
|
-
* - Unified container with internal divider
|
|
12
|
-
* - Top section: white background
|
|
13
|
-
* - Bottom section: bg-gray-50/50 for subtle contrast
|
|
14
|
-
* - CVC input:
|
|
15
|
-
* - Placeholder: "123" (not "•••") for clarity
|
|
16
|
-
* - Styling: bg-white, border-gray-300, shadow-sm (looks like input, not button)
|
|
17
|
-
* - Centered, bold text, focus:border-black
|
|
18
|
-
* - "Change" link: text-blue-600 for primary action
|
|
19
|
-
*
|
|
20
|
-
* This follows the "Apple" approach of combining related inputs into a single
|
|
21
|
-
* card container rather than separating them.
|
|
22
|
-
*/
|
|
23
|
-
interface ActiveCardWidgetProps {
|
|
24
|
-
/**
|
|
25
|
-
* The saved card to display
|
|
26
|
-
*/
|
|
27
|
-
card: SavedCard;
|
|
28
|
-
/**
|
|
29
|
-
* Current CVC value
|
|
30
|
-
*/
|
|
31
|
-
cvc: string;
|
|
32
|
-
/**
|
|
33
|
-
* CVC change handler
|
|
34
|
-
*/
|
|
35
|
-
onCvcChange: (cvc: string) => void;
|
|
36
|
-
/**
|
|
37
|
-
* Handler when "Change" button is clicked (opens MethodListView).
|
|
38
|
-
* When undefined, the "Change" button is hidden.
|
|
39
|
-
*/
|
|
40
|
-
onChangeClick?: () => void;
|
|
41
|
-
/**
|
|
42
|
-
* Optional error message for CVC
|
|
43
|
-
*/
|
|
44
|
-
error?: string;
|
|
45
|
-
/**
|
|
46
|
-
* Disable CVC input
|
|
47
|
-
*/
|
|
48
|
-
disabled?: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* Hide security code section (for agent mode where passkey replaces CVC)
|
|
51
|
-
*/
|
|
52
|
-
hideSecurityCode?: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* Additional CSS classes for the outer container
|
|
55
|
-
*/
|
|
56
|
-
className?: string;
|
|
57
|
-
}
|
|
58
|
-
export declare const ActiveCardWidget: React.FC<ActiveCardWidgetProps>;
|
|
59
|
-
export {};
|
|
60
|
-
//# sourceMappingURL=ActiveCardWidget.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ActiveCardWidget.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/ActiveCardWidget.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,UAAU,qBAAqB;IAC7B;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAsL5D,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { UsePasskeySDKReturn } from '../../hooks/usePasskeySDK';
|
|
3
|
-
import type { RegistrationSubPhase } from '../../hooks/useSession';
|
|
4
|
-
import type { CheckoutSession } from '../../types/session';
|
|
5
|
-
interface AgentRegistrationFlowProps {
|
|
6
|
-
session: CheckoutSession;
|
|
7
|
-
registrationSubPhase: RegistrationSubPhase;
|
|
8
|
-
passkey: UsePasskeySDKReturn;
|
|
9
|
-
debug: boolean;
|
|
10
|
-
localError: string | null;
|
|
11
|
-
visaOtp: string;
|
|
12
|
-
setVisaOtp: React.Dispatch<React.SetStateAction<string>>;
|
|
13
|
-
setLocalError: React.Dispatch<React.SetStateAction<string | null>>;
|
|
14
|
-
setRegistrationSubPhase: (subPhase: RegistrationSubPhase) => void;
|
|
15
|
-
onCreatePasskey: () => void;
|
|
16
|
-
onSkipRegistration: () => void;
|
|
17
|
-
onVisaMethodSelect: (methodId: string) => void;
|
|
18
|
-
onVisaOtpVerify: () => void;
|
|
19
|
-
onVisaIframeCancel: () => void;
|
|
20
|
-
onBackToCheckout: () => void;
|
|
21
|
-
}
|
|
22
|
-
export declare function AgentRegistrationFlow({ session, registrationSubPhase, passkey, debug, localError, visaOtp, setVisaOtp, setLocalError, setRegistrationSubPhase, onCreatePasskey, onSkipRegistration, onVisaMethodSelect, onVisaOtpVerify, onVisaIframeCancel, onBackToCheckout, }: AgentRegistrationFlowProps): import("react/jsx-runtime").JSX.Element | null;
|
|
23
|
-
export {};
|
|
24
|
-
//# sourceMappingURL=AgentRegistrationFlow.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AgentRegistrationFlow.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/AgentRegistrationFlow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,UAAU,0BAA0B;IAClC,OAAO,EAAE,eAAe,CAAC;IACzB,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,OAAO,EAAE,mBAAmB,CAAC;IAC7B,KAAK,EAAE,OAAO,CAAC;IACf,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACzD,aAAa,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC;IACnE,uBAAuB,EAAE,CAAC,QAAQ,EAAE,oBAAoB,KAAK,IAAI,CAAC;IAClE,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,kBAAkB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/C,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,wBAAgB,qBAAqB,CAAC,EACpC,OAAO,EACP,oBAAoB,EACpB,OAAO,EACP,KAAK,EACL,UAAU,EACV,OAAO,EACP,UAAU,EACV,aAAa,EACb,uBAAuB,EACvB,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,kBAAkB,EAClB,gBAAgB,GACjB,EAAE,0BAA0B,kDAqF5B"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ConnectStripeLinkButton — onboarding-only Link account connection CTA.
|
|
3
|
-
*
|
|
4
|
-
* Unlike PayWithLinkButton, this component does not create a spend approval
|
|
5
|
-
* and does not require a payment intent. It only connects the wallet user's
|
|
6
|
-
* Stripe Link account, syncs Link cards into PayOS saved-card rows, and
|
|
7
|
-
* returns those rows to the caller.
|
|
8
|
-
*/
|
|
9
|
-
import type { SavedCard } from '../../types/session';
|
|
10
|
-
import { type PayOSThemeMode } from './themeMode';
|
|
11
|
-
export interface ConnectStripeLinkResult {
|
|
12
|
-
cards: SavedCard[];
|
|
13
|
-
linkCards: SavedCard[];
|
|
14
|
-
payosCards: SavedCard[];
|
|
15
|
-
linkSyncStatus: string | null;
|
|
16
|
-
}
|
|
17
|
-
export interface ConnectStripeLinkButtonProps {
|
|
18
|
-
/** API base URL, same one used for CardElement / PaymentSheet. */
|
|
19
|
-
apiBaseUrl: string;
|
|
20
|
-
/** Merchant link token (Bearer). */
|
|
21
|
-
sessionSecret: string;
|
|
22
|
-
/** Wallet user identifier after wallet-user authentication. */
|
|
23
|
-
walletUserId: string;
|
|
24
|
-
/** Originating org for Link connection analytics (optional). */
|
|
25
|
-
organizationId?: string;
|
|
26
|
-
/** Called after Link auth is approved and wallet cards have synced. */
|
|
27
|
-
onLinked?: (result: ConnectStripeLinkResult) => Promise<void> | void;
|
|
28
|
-
/** Called when onLinked throws or rejects. Link connection still succeeded. */
|
|
29
|
-
onError?: (error: Error) => void;
|
|
30
|
-
/** Called when the user denies, expires, or cannot complete Link auth. */
|
|
31
|
-
onDenied?: (reason: string) => void;
|
|
32
|
-
/** Optional className for the trigger button. */
|
|
33
|
-
className?: string;
|
|
34
|
-
/** Optional label override. Default: "Connect with". */
|
|
35
|
-
label?: string;
|
|
36
|
-
/** Theme preset for the standalone modal. Defaults to host page theme. */
|
|
37
|
-
theme?: PayOSThemeMode;
|
|
38
|
-
}
|
|
39
|
-
export declare function ConnectStripeLinkButton(props: ConnectStripeLinkButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
40
|
-
export default ConnectStripeLinkButton;
|
|
41
|
-
//# sourceMappingURL=ConnectStripeLinkButton.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectStripeLinkButton.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/ConnectStripeLinkButton.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAOrD,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,aAAa,CAAC;AAErB,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,SAAS,EAAE,SAAS,EAAE,CAAC;IACvB,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED,MAAM,WAAW,4BAA4B;IAC3C,kEAAkE;IAClE,UAAU,EAAE,MAAM,CAAC;IACnB,oCAAoC;IACpC,aAAa,EAAE,MAAM,CAAC;IACtB,+DAA+D;IAC/D,YAAY,EAAE,MAAM,CAAC;IACrB,gEAAgE;IAChE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,uEAAuE;IACvE,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,uBAAuB,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IACrE,+EAA+E;IAC/E,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wDAAwD;IACxD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0EAA0E;IAC1E,KAAK,CAAC,EAAE,cAAc,CAAC;CACxB;AAWD,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,4BAA4B,2CA+O1E;AAED,eAAe,uBAAuB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IdentityVerificationFlow.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/IdentityVerificationFlow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,KAAK,WAAW,EAAa,MAAM,eAAe,CAAC;AAE5D,UAAU,6BAA6B;IACrC,IAAI,EAAE,UAAU,GAAG,KAAK,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IAC7D,eAAe,EAAE,WAAW,CAAC;IAC7B,kBAAkB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC,CAAC;IACtE,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACrD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,WAAW,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,wBAAgB,wBAAwB,CAAC,EACvC,IAAI,EACJ,WAAW,EACX,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,GAAG,EACH,MAAM,EACN,YAAY,EACZ,WAAW,EACX,OAAO,EACP,WAAW,EACX,cAAc,EACd,UAAU,EACV,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,WAAW,EACX,WAAW,EACX,WAAW,GACZ,EAAE,6BAA6B,2CAyC/B"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { UseLinkSessionReturn } from '../../hooks/useLinkSession';
|
|
2
|
-
import type { CheckoutSession, Payment } from '../../types/session';
|
|
3
|
-
interface LinkPaymentFlowProps {
|
|
4
|
-
linkSession: UseLinkSessionReturn;
|
|
5
|
-
session: CheckoutSession | null;
|
|
6
|
-
linkCheckoutPayment: Payment | null;
|
|
7
|
-
approvalDeadline: number | null;
|
|
8
|
-
}
|
|
9
|
-
export declare function LinkPaymentFlow({ linkSession, session, linkCheckoutPayment, approvalDeadline, }: LinkPaymentFlowProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export {};
|
|
11
|
-
//# sourceMappingURL=LinkPaymentFlow.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LinkPaymentFlow.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/LinkPaymentFlow.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAEpE,UAAU,oBAAoB;IAC5B,WAAW,EAAE,oBAAoB,CAAC;IAClC,OAAO,EAAE,eAAe,GAAG,IAAI,CAAC;IAChC,mBAAmB,EAAE,OAAO,GAAG,IAAI,CAAC;IACpC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AAED,wBAAgB,eAAe,CAAC,EAC9B,WAAW,EACX,OAAO,EACP,mBAAmB,EACnB,gBAAgB,GACjB,EAAE,oBAAoB,2CA2BtB"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { type LinkCheckoutSubState } from './views/LinkCheckoutView';
|
|
2
|
-
import type { UseLinkSessionReturn } from '../../hooks/useLinkSession';
|
|
3
|
-
import type { LinkSpendCreateBody } from '../../services/apiService';
|
|
4
|
-
interface LinkSessionContentProps {
|
|
5
|
-
linkSession: UseLinkSessionReturn;
|
|
6
|
-
approvalDeadline: number | null;
|
|
7
|
-
buildSpendBody: (cardId: string) => LinkSpendCreateBody | null;
|
|
8
|
-
onCancelConnect?: () => void;
|
|
9
|
-
onCancelSpend?: () => void;
|
|
10
|
-
onDeniedDismiss?: () => void;
|
|
11
|
-
onManageClose?: () => void;
|
|
12
|
-
onDisconnect?: () => Promise<void> | void;
|
|
13
|
-
approvedSubState?: LinkCheckoutSubState;
|
|
14
|
-
approvedErrorSubState?: LinkCheckoutSubState;
|
|
15
|
-
showSpendErrors?: boolean;
|
|
16
|
-
}
|
|
17
|
-
export declare function LinkSessionContent({ linkSession, approvalDeadline, buildSpendBody, onCancelConnect, onCancelSpend, onDeniedDismiss, onManageClose, onDisconnect, approvedSubState, approvedErrorSubState, showSpendErrors, }: LinkSessionContentProps): import("react/jsx-runtime").JSX.Element | null;
|
|
18
|
-
export {};
|
|
19
|
-
//# sourceMappingURL=LinkSessionContent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LinkSessionContent.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/LinkSessionContent.tsx"],"names":[],"mappings":"AA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C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PayWithLinkButton.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/PayWithLinkButton.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAQH,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,aAAa,CAAC;AAErB,MAAM,WAAW,sBAAsB;IACrC,kEAAkE;IAClE,UAAU,EAAE,MAAM,CAAC;IACnB,oCAAoC;IACpC,aAAa,EAAE,MAAM,CAAC;IACtB,oDAAoD;IACpD,YAAY,EAAE,MAAM,CAAC;IACrB,gDAAgD;IAChD,aAAa,EAAE;QACb,EAAE,EAAE,MAAM,CAAC;QACX,yEAAyE;QACzE,SAAS,EAAE,MAAM,CAAC;QAClB,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,gDAAgD;IAChD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE;QACpB,UAAU,EAAE,MAAM,CAAC;QACnB,eAAe,EAAE,MAAM,CAAC;QACxB,SAAS,EAAE,MAAM,CAAC;KACnB,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC3B,6EAA6E;IAC7E,SAAS,EAAE,CAAC,MAAM,EAAE;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IACpD,sDAAsD;IACtD,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oDAAoD;IACpD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0EAA0E;IAC1E,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,2CAoQ9D;AAED,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import type { CardBrand } from "../../types";
|
|
3
|
-
/**
|
|
4
|
-
* PaymentMethodRow - Reusable payment method row for list views
|
|
5
|
-
*
|
|
6
|
-
* Features:
|
|
7
|
-
* - Brand icon + card details (last4, expiry)
|
|
8
|
-
* - Hover and active states (tactile physics)
|
|
9
|
-
* - Selected state with blue checkmark
|
|
10
|
-
* - Designed for list-style payment method selection
|
|
11
|
-
*
|
|
12
|
-
* Design System:
|
|
13
|
-
* - Apple-level tactile feedback (hover:bg-gray-50, active:bg-gray-100)
|
|
14
|
-
* - Border dividers between rows (border-b border-gray-100)
|
|
15
|
-
* - Clean typography hierarchy
|
|
16
|
-
*/
|
|
17
|
-
interface PaymentMethodRowProps {
|
|
18
|
-
/**
|
|
19
|
-
* Card last 4 digits
|
|
20
|
-
*/
|
|
21
|
-
last4: string;
|
|
22
|
-
/**
|
|
23
|
-
* Card brand (visa, mastercard, amex, etc.)
|
|
24
|
-
*/
|
|
25
|
-
brand: CardBrand;
|
|
26
|
-
/**
|
|
27
|
-
* Expiry in MM/YY format
|
|
28
|
-
*/
|
|
29
|
-
expiry: string;
|
|
30
|
-
/**
|
|
31
|
-
* URL to card artwork image (optional)
|
|
32
|
-
*/
|
|
33
|
-
cardArtUrl?: string;
|
|
34
|
-
/**
|
|
35
|
-
* Issuer name (e.g., "Chase", "Wells Fargo")
|
|
36
|
-
*/
|
|
37
|
-
issuerName?: string;
|
|
38
|
-
/**
|
|
39
|
-
* Whether this row is currently selected
|
|
40
|
-
*/
|
|
41
|
-
selected?: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Click handler
|
|
44
|
-
*/
|
|
45
|
-
onClick?: () => void;
|
|
46
|
-
/**
|
|
47
|
-
* Whether this is the last row (removes bottom border)
|
|
48
|
-
*/
|
|
49
|
-
isLast?: boolean;
|
|
50
|
-
}
|
|
51
|
-
export declare const PaymentMethodRow: React.FC<PaymentMethodRowProps>;
|
|
52
|
-
export {};
|
|
53
|
-
//# sourceMappingURL=PaymentMethodRow.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentMethodRow.d.ts","sourceRoot":"","sources":["../../../../src/components/payos/PaymentMethodRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAG7C;;;;;;;;;;;;;GAaG;AAEH,UAAU,qBAAqB;IAC7B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA6D5D,CAAC"}
|