@funkit/connect-rn 11.0.0 → 11.2.0
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/CHANGELOG.md +194 -0
- package/README.md +46 -0
- package/dist/{chunk-4YEMLHEX.js → chunk-7SP2UUHA.js} +22 -2
- package/dist/chunk-7SP2UUHA.js.map +7 -0
- package/dist/{chunk-HD4PRG6A.js → chunk-AXAQRGDI.js} +2 -2
- package/dist/{chunk-W2JG7SK2.js → chunk-KRQW5S2X.js} +261 -44
- package/dist/chunk-KRQW5S2X.js.map +7 -0
- package/dist/clients/lighter.js +1 -1
- package/dist/clients/nado.js +2 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +25066 -16962
- package/dist/index.js.map +4 -4
- package/dist/preview.js +404 -15
- package/dist/preview.js.map +4 -4
- package/dist/src/components/BlurBand.d.ts.map +1 -1
- package/dist/src/components/ConnectedBadge.d.ts +2 -0
- package/dist/src/components/ConnectedBadge.d.ts.map +1 -0
- package/dist/src/components/GlassSurface.d.ts +5 -1
- package/dist/src/components/GlassSurface.d.ts.map +1 -1
- package/dist/src/components/Grabber.d.ts +3 -1
- package/dist/src/components/Grabber.d.ts.map +1 -1
- package/dist/src/components/PillButton.d.ts +2 -0
- package/dist/src/components/PillButton.d.ts.map +1 -1
- package/dist/src/components/SelectableAssetRow.d.ts +9 -1
- package/dist/src/components/SelectableAssetRow.d.ts.map +1 -1
- package/dist/src/components/TopBar.d.ts +5 -1
- package/dist/src/components/TopBar.d.ts.map +1 -1
- package/dist/src/components/v2/IconDisc.d.ts +15 -1
- package/dist/src/components/v2/IconDisc.d.ts.map +1 -1
- package/dist/src/components/v2/ListRow.d.ts +3 -1
- package/dist/src/components/v2/ListRow.d.ts.map +1 -1
- package/dist/src/components/v2/PaymentMethodPicker.d.ts +7 -1
- package/dist/src/components/v2/PaymentMethodPicker.d.ts.map +1 -1
- package/dist/src/fiat/common/FiatTermsNotice.d.ts +3 -1
- package/dist/src/fiat/common/FiatTermsNotice.d.ts.map +1 -1
- package/dist/src/fiat/common/FiatUnsupportedStep.d.ts.map +1 -1
- package/dist/src/fiat/common/stepDetails.d.ts +4 -0
- package/dist/src/fiat/common/stepDetails.d.ts.map +1 -1
- package/dist/src/fiat/contact/FiatContactScreen.d.ts.map +1 -1
- package/dist/src/fiat/contact/phoneRegionRedirect.d.ts +17 -0
- package/dist/src/fiat/contact/phoneRegionRedirect.d.ts.map +1 -0
- package/dist/src/fiat/contact/useRedirectHold.d.ts +31 -0
- package/dist/src/fiat/contact/useRedirectHold.d.ts.map +1 -0
- package/dist/src/fiat/entry/heldRound.d.ts +17 -0
- package/dist/src/fiat/entry/heldRound.d.ts.map +1 -0
- package/dist/src/fiat/entry/useCaptureHold.d.ts +8 -5
- package/dist/src/fiat/entry/useCaptureHold.d.ts.map +1 -1
- package/dist/src/fiat/entry/useClientRecipient.d.ts +16 -0
- package/dist/src/fiat/entry/useClientRecipient.d.ts.map +1 -0
- package/dist/src/fiat/entry/useEntryPress.d.ts +1 -0
- package/dist/src/fiat/entry/useEntryPress.d.ts.map +1 -1
- package/dist/src/fiat/entry/useEntryQuote.d.ts +3 -3
- package/dist/src/fiat/entry/useEntryQuote.d.ts.map +1 -1
- package/dist/src/fiat/entry/useFiatDirectDelivery.d.ts +6 -2
- package/dist/src/fiat/entry/useFiatDirectDelivery.d.ts.map +1 -1
- package/dist/src/fiat/form/FiatFormScreen.d.ts +7 -1
- package/dist/src/fiat/form/FiatFormScreen.d.ts.map +1 -1
- package/dist/src/fiat/form/useStandingRefusals.d.ts +4 -0
- package/dist/src/fiat/form/useStandingRefusals.d.ts.map +1 -1
- package/dist/src/fiat/kyc/FiatDocumentCaptureStep.d.ts +3 -1
- package/dist/src/fiat/kyc/FiatDocumentCaptureStep.d.ts.map +1 -1
- package/dist/src/fiat/kyc/FiatKycIntroLayout.d.ts +3 -3
- package/dist/src/fiat/kyc/FiatKycIntroLayout.d.ts.map +1 -1
- package/dist/src/fiat/kyc/FiatKycIntroScreen.d.ts +7 -2
- package/dist/src/fiat/kyc/FiatKycIntroScreen.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycCapture.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycRoutes.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycVerdict.d.ts +1 -0
- package/dist/src/fiat/kyc/kycVerdict.d.ts.map +1 -1
- package/dist/src/fiat/kyc/useKycLimitSheet.d.ts +15 -0
- package/dist/src/fiat/kyc/useKycLimitSheet.d.ts.map +1 -0
- package/dist/src/fiat/otp/useFunSession.d.ts +24 -6
- package/dist/src/fiat/otp/useFunSession.d.ts.map +1 -1
- package/dist/src/fiat/payment/applePayAttempt.d.ts.map +1 -1
- package/dist/src/fiat/payment/failoverKind.d.ts +24 -7
- package/dist/src/fiat/payment/failoverKind.d.ts.map +1 -1
- package/dist/src/fiat/payment/failoverPrompt.d.ts +4 -3
- package/dist/src/fiat/payment/failoverPrompt.d.ts.map +1 -1
- package/dist/src/fiat/payment/paymentReroute.d.ts +6 -2
- package/dist/src/fiat/payment/paymentReroute.d.ts.map +1 -1
- package/dist/src/fiat/payment/providerFailover.d.ts +36 -10
- package/dist/src/fiat/payment/providerFailover.d.ts.map +1 -1
- package/dist/src/fiat/payment/usePaymentAttempts.d.ts +1 -1
- package/dist/src/fiat/payment/usePaymentAttempts.d.ts.map +1 -1
- package/dist/src/fiat/payment/usePaymentFailureAnswer.d.ts +27 -34
- package/dist/src/fiat/payment/usePaymentFailureAnswer.d.ts.map +1 -1
- package/dist/src/fiat/payment/useRerouteProbe.d.ts.map +1 -1
- package/dist/src/fiat/processing/DepositCardSheet.d.ts +11 -1
- package/dist/src/fiat/processing/DepositCardSheet.d.ts.map +1 -1
- package/dist/src/fiat/processing/FailoverPrompt.d.ts +16 -3
- package/dist/src/fiat/processing/FailoverPrompt.d.ts.map +1 -1
- package/dist/src/fiat/providerFlow.d.ts +149 -0
- package/dist/src/fiat/providerFlow.d.ts.map +1 -0
- package/dist/src/fiat/providerFlows.d.ts +13 -0
- package/dist/src/fiat/providerFlows.d.ts.map +1 -0
- package/dist/src/fiat/providerHandoff.d.ts +18 -0
- package/dist/src/fiat/providerHandoff.d.ts.map +1 -0
- package/dist/src/fiat/providers/checkout/continueButton.d.ts +8 -0
- package/dist/src/fiat/providers/checkout/continueButton.d.ts.map +1 -0
- package/dist/src/fiat/providers/checkout/slotOutlets.d.ts +14 -0
- package/dist/src/fiat/providers/checkout/slotOutlets.d.ts.map +1 -0
- package/dist/src/fiat/providers/checkout/statusScreens.d.ts +39 -0
- package/dist/src/fiat/providers/checkout/statusScreens.d.ts.map +1 -0
- package/dist/src/fiat/providers/checkout/useFiatNextApi.d.ts +8 -0
- package/dist/src/fiat/providers/checkout/useFiatNextApi.d.ts.map +1 -0
- package/dist/src/fiat/providers/coinbase/next/Checkout.d.ts +10 -0
- package/dist/src/fiat/providers/coinbase/next/Checkout.d.ts.map +1 -0
- package/dist/src/fiat/providers/coinbase/next/index.d.ts +4 -0
- package/dist/src/fiat/providers/coinbase/next/index.d.ts.map +1 -0
- package/dist/src/fiat/providers/coinbase/next/useCoinbaseCheckout.d.ts +75 -0
- package/dist/src/fiat/providers/coinbase/next/useCoinbaseCheckout.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/Capture.d.ts +15 -0
- package/dist/src/fiat/providers/moonpay/Capture.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/Checkout.d.ts +4 -0
- package/dist/src/fiat/providers/moonpay/Checkout.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/KycForm.d.ts +30 -0
- package/dist/src/fiat/providers/moonpay/KycForm.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/checkoutScreens.d.ts +7 -0
- package/dist/src/fiat/providers/moonpay/checkoutScreens.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/documents.d.ts +12 -0
- package/dist/src/fiat/providers/moonpay/documents.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/errors.d.ts +45 -0
- package/dist/src/fiat/providers/moonpay/errors.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/events.d.ts +35 -0
- package/dist/src/fiat/providers/moonpay/events.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/index.d.ts +3 -0
- package/dist/src/fiat/providers/moonpay/index.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/moonpaySharingConsent.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/reask.d.ts +5 -0
- package/dist/src/fiat/providers/moonpay/reask.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/screens.d.ts +8 -0
- package/dist/src/fiat/providers/moonpay/screens.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/sdk/ApplePayButton.d.ts +29 -0
- package/dist/src/fiat/providers/moonpay/sdk/ApplePayButton.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/sdk/Challenge.d.ts +23 -0
- package/dist/src/fiat/providers/moonpay/sdk/Challenge.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/sdk/Host.d.ts +9 -0
- package/dist/src/fiat/providers/moonpay/sdk/Host.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/sdk/connection.d.ts +35 -0
- package/dist/src/fiat/providers/moonpay/sdk/connection.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/sdk/deviceQuote.d.ts +14 -0
- package/dist/src/fiat/providers/moonpay/sdk/deviceQuote.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/sdk/transaction.d.ts +44 -0
- package/dist/src/fiat/providers/moonpay/sdk/transaction.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/useCheckoutCalls.d.ts +15 -0
- package/dist/src/fiat/providers/moonpay/useCheckoutCalls.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/useCheckoutModel.d.ts +93 -0
- package/dist/src/fiat/providers/moonpay/useCheckoutModel.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/useReadiness.d.ts +20 -0
- package/dist/src/fiat/providers/moonpay/useReadiness.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/next/Checkout.d.ts +11 -0
- package/dist/src/fiat/providers/stripe/next/Checkout.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/next/index.d.ts +4 -0
- package/dist/src/fiat/providers/stripe/next/index.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/next/useStripeCheckout.d.ts +55 -0
- package/dist/src/fiat/providers/stripe/next/useStripeCheckout.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/next/useStripeCheckoutCalls.d.ts +10 -0
- package/dist/src/fiat/providers/stripe/next/useStripeCheckoutCalls.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/next/useStripeExit.d.ts +15 -0
- package/dist/src/fiat/providers/stripe/next/useStripeExit.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/next/useStripeFunnel.d.ts +4 -0
- package/dist/src/fiat/providers/stripe/next/useStripeFunnel.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/next/useStripeIdentity.d.ts +23 -0
- package/dist/src/fiat/providers/stripe/next/useStripeIdentity.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/next/useStripeKycForm.d.ts +17 -0
- package/dist/src/fiat/providers/stripe/next/useStripeKycForm.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/next/useStripeOrderSlot.d.ts +17 -0
- package/dist/src/fiat/providers/stripe/next/useStripeOrderSlot.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/next/useStripePayment.d.ts +24 -0
- package/dist/src/fiat/providers/stripe/next/useStripePayment.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/next/useStripeReview.d.ts +7 -0
- package/dist/src/fiat/providers/stripe/next/useStripeReview.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/next/useStripeSignIn.d.ts +21 -0
- package/dist/src/fiat/providers/stripe/next/useStripeSignIn.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/stripeRoundPush.d.ts +2 -0
- package/dist/src/fiat/providers/stripe/stripeRoundPush.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/useStripeKycPush.d.ts.map +1 -1
- package/dist/src/fiat/providers/sumsub/SumsubNativeKycSurface.d.ts.map +1 -1
- package/dist/src/fiat/quote/providerSelection.d.ts +10 -4
- package/dist/src/fiat/quote/providerSelection.d.ts.map +1 -1
- package/dist/src/fiat/quote/quoteRefusal.d.ts +2 -0
- package/dist/src/fiat/quote/quoteRefusal.d.ts.map +1 -1
- package/dist/src/fiat/quote/quoteRouting.d.ts +18 -2
- package/dist/src/fiat/quote/quoteRouting.d.ts.map +1 -1
- package/dist/src/fiat/quote/useStaleQuoteRecovery.d.ts +2 -4
- package/dist/src/fiat/quote/useStaleQuoteRecovery.d.ts.map +1 -1
- package/dist/src/fiat/settlement/depositSettlement.d.ts +8 -1
- package/dist/src/fiat/settlement/depositSettlement.d.ts.map +1 -1
- package/dist/src/fiat/settlement/useDepositSettlement.d.ts +3 -1
- package/dist/src/fiat/settlement/useDepositSettlement.d.ts.map +1 -1
- package/dist/src/fiat/surface/ScreenSurfaceCover.d.ts +6 -1
- package/dist/src/fiat/surface/ScreenSurfaceCover.d.ts.map +1 -1
- package/dist/src/fiat/surface/SurfaceSlot.d.ts +3 -1
- package/dist/src/fiat/surface/SurfaceSlot.d.ts.map +1 -1
- package/dist/src/fiat/surface/stepSurface.d.ts +1 -0
- package/dist/src/fiat/surface/stepSurface.d.ts.map +1 -1
- package/dist/src/fiat/surface/useFailureAnnouncements.d.ts.map +1 -1
- package/dist/src/fiat/useProviderCheckout.d.ts +60 -0
- package/dist/src/fiat/useProviderCheckout.d.ts.map +1 -0
- package/dist/src/flow/AddressCopiedToast.d.ts.map +1 -1
- package/dist/src/flow/CryptoAddressPage.d.ts.map +1 -1
- package/dist/src/flow/CryptoDepositStep.d.ts +4 -0
- package/dist/src/flow/CryptoDepositStep.d.ts.map +1 -1
- package/dist/src/flow/CryptoLearnMorePage.d.ts.map +1 -1
- package/dist/src/flow/CryptoListPage.d.ts +15 -3
- package/dist/src/flow/CryptoListPage.d.ts.map +1 -1
- package/dist/src/flow/CryptoNetworkPage.d.ts.map +1 -1
- package/dist/src/flow/CryptoTokenPage.d.ts.map +1 -1
- package/dist/src/flow/DepositAmountStep.d.ts +9 -1
- package/dist/src/flow/DepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/DepositFlowContent.d.ts +12 -2
- package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
- package/dist/src/flow/Drawer.d.ts +9 -1
- package/dist/src/flow/Drawer.d.ts.map +1 -1
- package/dist/src/flow/FiatDepositAmountStep.d.ts +4 -6
- package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/FlowSheet.d.ts +22 -2
- package/dist/src/flow/FlowSheet.d.ts.map +1 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts +7 -3
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/PaymentMethodPickerSheet.d.ts +10 -4
- package/dist/src/flow/PaymentMethodPickerSheet.d.ts.map +1 -1
- package/dist/src/flow/PaymentMethodRows.d.ts +13 -2
- package/dist/src/flow/PaymentMethodRows.d.ts.map +1 -1
- package/dist/src/flow/WalletConnectingAction.d.ts +9 -0
- package/dist/src/flow/WalletConnectingAction.d.ts.map +1 -0
- package/dist/src/flow/WalletDepositStep.d.ts +9 -1
- package/dist/src/flow/WalletDepositStep.d.ts.map +1 -1
- package/dist/src/flow/cryptoDepositFlow.d.ts +5 -3
- package/dist/src/flow/cryptoDepositFlow.d.ts.map +1 -1
- package/dist/src/flow/cryptoNetworkHeight.d.ts +3 -0
- package/dist/src/flow/cryptoNetworkHeight.d.ts.map +1 -0
- package/dist/src/flow/cryptoSheetSearch.d.ts +2 -0
- package/dist/src/flow/cryptoSheetSearch.d.ts.map +1 -1
- package/dist/src/flow/cryptoTokenList.d.ts +17 -11
- package/dist/src/flow/cryptoTokenList.d.ts.map +1 -1
- package/dist/src/flow/depositFlowConfig.d.ts +14 -1
- package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
- package/dist/src/flow/entryBanners.d.ts +8 -1
- package/dist/src/flow/entryBanners.d.ts.map +1 -1
- package/dist/src/flow/fiatStepScreens.d.ts.map +1 -1
- package/dist/src/flow/fiatSubmitRenderer.d.ts +16 -0
- package/dist/src/flow/fiatSubmitRenderer.d.ts.map +1 -1
- package/dist/src/flow/renderFiatFlowScreen.d.ts +15 -2
- package/dist/src/flow/renderFiatFlowScreen.d.ts.map +1 -1
- package/dist/src/flow/screenBundles.d.ts +0 -1
- package/dist/src/flow/screenBundles.d.ts.map +1 -1
- package/dist/src/flow/sheetSizing.d.ts.map +1 -1
- package/dist/src/flow/swappedLongtail.d.ts +55 -0
- package/dist/src/flow/swappedLongtail.d.ts.map +1 -0
- package/dist/src/flow/swappedMethodRows.d.ts +45 -0
- package/dist/src/flow/swappedMethodRows.d.ts.map +1 -0
- package/dist/src/flow/useCopiedToast.d.ts +1 -1
- package/dist/src/flow/useV2DepositEnabled.d.ts.map +1 -1
- package/dist/src/flow/useWalletDeposit.d.ts +24 -2
- package/dist/src/flow/useWalletDeposit.d.ts.map +1 -1
- package/dist/src/flow/v1DepositCustomers.d.ts +2 -0
- package/dist/src/flow/v1DepositCustomers.d.ts.map +1 -0
- package/dist/src/flow/withdrawalFlowConfig.d.ts +71 -6
- package/dist/src/flow/withdrawalFlowConfig.d.ts.map +1 -1
- package/dist/src/flow/withdrawalMethods.d.ts +2 -2
- package/dist/src/flow/withdrawalMethods.d.ts.map +1 -1
- package/dist/src/hooks/track/events.d.ts +2 -2
- package/dist/src/hooks/track/events.d.ts.map +1 -1
- package/dist/src/hooks/track/useDepositOutcomeEvents.d.ts.map +1 -1
- package/dist/src/hooks/track/useProviderCheckoutEvents.d.ts +37 -0
- package/dist/src/hooks/track/useProviderCheckoutEvents.d.ts.map +1 -0
- package/dist/src/hooks/useAnchoredMenu.d.ts +43 -0
- package/dist/src/hooks/useAnchoredMenu.d.ts.map +1 -0
- package/dist/src/hooks/useNestedSheet.d.ts +8 -1
- package/dist/src/hooks/useNestedSheet.d.ts.map +1 -1
- package/dist/src/icons/ChainAvatar.d.ts +1 -3
- package/dist/src/icons/ChainAvatar.d.ts.map +1 -1
- package/dist/src/icons/FunIcon.d.ts +6 -2
- package/dist/src/icons/FunIcon.d.ts.map +1 -1
- package/dist/src/icons/assetLogos.d.ts.map +1 -1
- package/dist/src/icons/cryptoBrandSvgs.d.ts +2 -0
- package/dist/src/icons/cryptoBrandSvgs.d.ts.map +1 -0
- package/dist/src/icons/iconSvg.d.ts.map +1 -1
- package/dist/src/native/glassEffect.d.ts +3 -0
- package/dist/src/native/glassEffect.d.ts.map +1 -1
- package/dist/src/preview/PreviewPaymentMethodPicker.d.ts +3 -0
- package/dist/src/preview/PreviewPaymentMethodPicker.d.ts.map +1 -1
- package/dist/src/preview/fixtures/moonPayChallenge.d.ts +10 -0
- package/dist/src/preview/fixtures/moonPayChallenge.d.ts.map +1 -0
- package/dist/src/preview/flowPreview.d.ts +48 -1
- package/dist/src/preview/flowPreview.d.ts.map +1 -1
- package/dist/src/preview/previewFetch.d.ts.map +1 -1
- package/dist/src/preview/replay/replayFetch.d.ts.map +1 -1
- package/dist/src/preview/scenarioCatalog.d.ts +93 -2
- package/dist/src/preview/scenarioCatalog.d.ts.map +1 -1
- package/dist/src/preview/scenarios.d.ts +7 -2
- package/dist/src/preview/scenarios.d.ts.map +1 -1
- package/dist/src/providers/IdentityContext.d.ts +2 -0
- package/dist/src/providers/IdentityContext.d.ts.map +1 -1
- package/dist/src/providers/useFunkitCheckout.d.ts +1 -1
- package/dist/src/screens/DepositAmountScreen.d.ts +9 -1
- package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
- package/dist/src/screens/PaymentConfirmScreen.d.ts.map +1 -1
- package/dist/src/screens/depositMetrics.d.ts +6 -3
- package/dist/src/screens/depositMetrics.d.ts.map +1 -1
- package/dist/src/swapped/SwappedIframe.d.ts +9 -0
- package/dist/src/swapped/SwappedIframe.d.ts.map +1 -0
- package/dist/src/swapped/SwappedScreen.d.ts +9 -1
- package/dist/src/swapped/SwappedScreen.d.ts.map +1 -1
- package/dist/src/swapped/SwappedScreenShell.d.ts +9 -1
- package/dist/src/swapped/SwappedScreenShell.d.ts.map +1 -1
- package/dist/src/swapped/SwappedWebView.d.ts +19 -6
- package/dist/src/swapped/SwappedWebView.d.ts.map +1 -1
- package/dist/src/swapped/buildSwappedTheme.d.ts.map +1 -1
- package/dist/src/swapped/iframeSwappedTransport.d.ts +22 -0
- package/dist/src/swapped/iframeSwappedTransport.d.ts.map +1 -0
- package/dist/src/swapped/paymentNavigation.d.ts +3 -0
- package/dist/src/swapped/paymentNavigation.d.ts.map +1 -1
- package/dist/src/swapped/swappedV2Env.d.ts +24 -0
- package/dist/src/swapped/swappedV2Env.d.ts.map +1 -0
- package/dist/src/swapped/swappedV2Theme.d.ts +9 -0
- package/dist/src/swapped/swappedV2Theme.d.ts.map +1 -0
- package/dist/src/swapped/useSwappedEmbed.d.ts +37 -0
- package/dist/src/swapped/useSwappedEmbed.d.ts.map +1 -0
- package/dist/src/theme/buildFunkitTheme.d.ts +16 -0
- package/dist/src/theme/buildFunkitTheme.d.ts.map +1 -1
- package/dist/src/theme/restyle.d.ts +528 -0
- package/dist/src/theme/restyle.d.ts.map +1 -1
- package/dist/src/theme/toRestyleTheme.d.ts +48 -0
- package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
- package/dist/src/theme/typeScale.d.ts +84 -0
- package/dist/src/theme/typeScale.d.ts.map +1 -1
- package/dist/src/transfer/DepositQrCode.d.ts +3 -1
- package/dist/src/transfer/DepositQrCode.d.ts.map +1 -1
- package/dist/src/transfer/DepositQrGlyph.d.ts +3 -1
- package/dist/src/transfer/DepositQrGlyph.d.ts.map +1 -1
- package/dist/src/transfer/fops.d.ts +7 -1
- package/dist/src/transfer/fops.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useWithdrawalFops.d.ts.map +1 -1
- package/dist/src/utils/withAlpha.d.ts +19 -0
- package/dist/src/utils/withAlpha.d.ts.map +1 -1
- package/dist/src/withdrawal/decimalCompare.d.ts +9 -0
- package/dist/src/withdrawal/decimalCompare.d.ts.map +1 -0
- package/dist/src/withdrawal/useWithdrawalExecution.d.ts +3 -2
- package/dist/src/withdrawal/useWithdrawalExecution.d.ts.map +1 -1
- package/dist/src/withdrawal/venueBalance.d.ts +18 -0
- package/dist/src/withdrawal/venueBalance.d.ts.map +1 -0
- package/dist/src/withdrawal/walletlessWithdrawal.d.ts +11 -2
- package/dist/src/withdrawal/walletlessWithdrawal.d.ts.map +1 -1
- package/dist/src/withdrawal/withdrawalPayer.d.ts +22 -0
- package/dist/src/withdrawal/withdrawalPayer.d.ts.map +1 -0
- package/ios/FunkitGlassEffectModule.swift +10 -0
- package/ios/GlassView.swift +28 -0
- package/package.json +8 -8
- package/dist/chunk-4YEMLHEX.js.map +0 -7
- package/dist/chunk-W2JG7SK2.js.map +0 -7
- package/dist/src/flow/MethodPickerStep.d.ts +0 -10
- package/dist/src/flow/MethodPickerStep.d.ts.map +0 -1
- package/dist/src/flow/useWalletSceneTransition.d.ts +0 -58
- package/dist/src/flow/useWalletSceneTransition.d.ts.map +0 -1
- package/dist/src/flow/v2DepositCustomers.d.ts +0 -2
- package/dist/src/flow/v2DepositCustomers.d.ts.map +0 -1
- package/dist/src/icons/phantomIcon.d.ts +0 -2
- package/dist/src/icons/phantomIcon.d.ts.map +0 -1
- /package/dist/{chunk-HD4PRG6A.js.map → chunk-AXAQRGDI.js.map} +0 -0
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/** Where the sheet's way on sits; the card draws a hosted action there. */
|
|
2
|
+
export declare const FAILOVER_ACTION_INSET: {
|
|
3
|
+
readonly horizontal: 20;
|
|
4
|
+
readonly bottom: 56;
|
|
5
|
+
};
|
|
1
6
|
/** Which picture heads the sheet (Figma 5813-5533). */
|
|
2
7
|
export type FailoverArt = 'cardQuestion' | 'cardDeclined' | 'cardWarning' | 'verified';
|
|
3
8
|
export interface FailoverPromptProps {
|
|
@@ -12,9 +17,11 @@ export interface FailoverPromptProps {
|
|
|
12
17
|
/** The line under the headline; the verified sheet has none. */
|
|
13
18
|
detail?: string;
|
|
14
19
|
/**
|
|
15
|
-
* The sheet's one way on
|
|
16
|
-
*
|
|
17
|
-
*
|
|
20
|
+
* The sheet's one way on: a Continue of its own, or room for the amount
|
|
21
|
+
* screen's own action (`slot`), which the card draws over it. Paying again
|
|
22
|
+
* is the provider's own button, never a stand-in: Apple's guidelines want
|
|
23
|
+
* that button to open Apple Pay itself, and Coinbase's page opens it only
|
|
24
|
+
* off a tap on its own.
|
|
18
25
|
*/
|
|
19
26
|
action: {
|
|
20
27
|
kind: 'continue';
|
|
@@ -22,8 +29,14 @@ export interface FailoverPromptProps {
|
|
|
22
29
|
onPress: () => void;
|
|
23
30
|
/** Continue waits on the provider it switches to. */
|
|
24
31
|
loading?: boolean;
|
|
32
|
+
} | {
|
|
33
|
+
kind: 'slot';
|
|
34
|
+
/** The room the card's hosted action takes, its disclosure included. */
|
|
35
|
+
height?: number;
|
|
25
36
|
};
|
|
26
37
|
onClose: () => void;
|
|
38
|
+
/** The card starts to close, however it was closed. */
|
|
39
|
+
onClosing?: () => void;
|
|
27
40
|
}
|
|
28
41
|
/**
|
|
29
42
|
* The fail-state sheet's content: a picture, a headline, a line on why, and a
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FailoverPrompt.d.ts","sourceRoot":"","sources":["../../../../src/fiat/processing/FailoverPrompt.tsx"],"names":[],"mappings":"AAiBA,uDAAuD;AACvD,MAAM,MAAM,WAAW,GACnB,cAAc,GACd,cAAc,GACd,aAAa,GACb,UAAU,CAAA;AAEd,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,WAAW,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,gEAAgE;IAChE,MAAM,CAAC,EAAE,MAAM,CAAA;IACf
|
|
1
|
+
{"version":3,"file":"FailoverPrompt.d.ts","sourceRoot":"","sources":["../../../../src/fiat/processing/FailoverPrompt.tsx"],"names":[],"mappings":"AAiBA,2EAA2E;AAC3E,eAAO,MAAM,qBAAqB;aAAK,UAAU,EAAE,EAAE;aAAE,MAAM,EAAE,EAAE;CAAW,CAAA;AAE5E,uDAAuD;AACvD,MAAM,MAAM,WAAW,GACnB,cAAc,GACd,cAAc,GACd,aAAa,GACb,UAAU,CAAA;AAEd,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,WAAW,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,gEAAgE;IAChE,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;;;;;OAMG;IACH,MAAM,EACF;QACE,IAAI,EAAE,UAAU,CAAA;QAChB,KAAK,EAAE,MAAM,CAAA;QACb,OAAO,EAAE,MAAM,IAAI,CAAA;QACnB,qDAAqD;QACrD,OAAO,CAAC,EAAE,OAAO,CAAA;KAClB,GACD;QACE,IAAI,EAAE,MAAM,CAAA;QACZ,wEAAwE;QACxE,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,CAAA;IACL,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,uDAAuD;IACvD,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACvB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,EAC7B,GAAG,EACH,KAAK,EACL,UAAgB,EAChB,MAAM,EACN,MAAM,EACN,OAAO,GACR,EAAE,mBAAmB,+BA8CrB"}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import type { FiatDestinationAsset, FiatStepResponse } from '@funkit/connect-core';
|
|
2
|
+
import type { ComponentType, ReactNode } from 'react';
|
|
3
|
+
import type { ProviderCheckoutEvents } from '../hooks/track/useProviderCheckoutEvents';
|
|
4
|
+
import type { FeeQuote, PricedFeeSubsidy } from './common/stepDetails';
|
|
5
|
+
/**
|
|
6
|
+
* A provider that runs its own checkout once `/fiat/quote` hands off to it or the routing table
|
|
7
|
+
* names it first.
|
|
8
|
+
* - The amount screen mounts `Checkout` once per checkout, out of sight, and keeps it mounted while
|
|
9
|
+
* the buyer changes the amount: a new amount arrives as a new `quote`.
|
|
10
|
+
* - `Checkout` draws only through `slot`. What it renders itself stays invisible, for SDK views
|
|
11
|
+
* that must be laid out to run.
|
|
12
|
+
*/
|
|
13
|
+
export interface ProviderFlow {
|
|
14
|
+
Checkout: ComponentType<ProviderCheckoutProps>;
|
|
15
|
+
/** Mounted once above the fiat screens, for a provider SDK that must outlive one checkout. */
|
|
16
|
+
Host?: ComponentType<{
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
}>;
|
|
19
|
+
}
|
|
20
|
+
/** What the buyer chose, handed off by `/fiat/quote` or by the routing table. */
|
|
21
|
+
export interface HandoffQuote {
|
|
22
|
+
amount: {
|
|
23
|
+
currency: string;
|
|
24
|
+
amount: string;
|
|
25
|
+
};
|
|
26
|
+
destination: {
|
|
27
|
+
asset: string;
|
|
28
|
+
network: string;
|
|
29
|
+
};
|
|
30
|
+
paymentMethod: string;
|
|
31
|
+
/**
|
|
32
|
+
* The asset the buyer receives, as the quote that handed off carried it: the provider's own
|
|
33
|
+
* requests carry it too, and the backend decides whether the order converts into it. Absent
|
|
34
|
+
* where the quote carried none, and the provider's own asset is what arrives.
|
|
35
|
+
*/
|
|
36
|
+
destinationAsset?: FiatDestinationAsset;
|
|
37
|
+
/** The response that carried `handoff`; absent when the routing table handed off. */
|
|
38
|
+
response?: FiatStepResponse;
|
|
39
|
+
}
|
|
40
|
+
export interface ProviderCheckoutProps {
|
|
41
|
+
quote: HandoffQuote;
|
|
42
|
+
/** The same object sent to `/fiat/quote`, and as the top-level `geo` of every `POST /fiat/next`. */
|
|
43
|
+
geo: {
|
|
44
|
+
alpha2: string;
|
|
45
|
+
region?: string;
|
|
46
|
+
ip?: string;
|
|
47
|
+
};
|
|
48
|
+
slot: ProviderSlot;
|
|
49
|
+
/**
|
|
50
|
+
* Called only once the provider has charged the buyer: the amount screen then treats the payment
|
|
51
|
+
* as captured, so no later failure reprices it. `checkoutAttemptId` is the checkout's telemetry
|
|
52
|
+
* attempt, logged with the order it produced.
|
|
53
|
+
*/
|
|
54
|
+
onOrder: (order: FiatStepResponse, checkoutAttemptId?: string) => void;
|
|
55
|
+
onExit: (exit: ProviderExit) => void;
|
|
56
|
+
/** Closes the whole flow, as legacy's close on its failed order screen does. */
|
|
57
|
+
onCloseFlow: () => void;
|
|
58
|
+
/** The buyer acted on the provider's payment control: opens a payment attempt, as legacy's surfaces do. */
|
|
59
|
+
onPaymentStarted: () => void;
|
|
60
|
+
/** The buyer closed the provider's payment sheet: ends that attempt as cancelled, as legacy's surfaces do. */
|
|
61
|
+
onPaymentCancelled: () => void;
|
|
62
|
+
/**
|
|
63
|
+
* The provider's own price for `quote`, shown on the fee line in place of the backend's. `subsidy`: the backend's
|
|
64
|
+
* decision on that price, when it carries one; without it, the backend's quote decides the subsidy.
|
|
65
|
+
*/
|
|
66
|
+
onFeeQuote?: (fee: FeeQuote, subsidy?: PricedFeeSubsidy) => void;
|
|
67
|
+
/** Main's funnel and payment-button events, which legacy fires from its step responses. */
|
|
68
|
+
analytics: ProviderCheckoutEvents;
|
|
69
|
+
/**
|
|
70
|
+
* Fun login only: the recipient, sent as `depositAddress` on every `POST /fiat/next`. A change
|
|
71
|
+
* reprices the checkout; a payment underway keeps the one its order was priced for.
|
|
72
|
+
*/
|
|
73
|
+
depositAddress?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Fun login only: the asset that recipient wants, sent as `destinationAsset` beside it so the
|
|
76
|
+
* backend converts the payout. Priced like the recipient.
|
|
77
|
+
*/
|
|
78
|
+
destinationAsset?: FiatDestinationAsset;
|
|
79
|
+
/**
|
|
80
|
+
* Mounted under the failover sheet, which hosts this checkout's action after a failed payment: a
|
|
81
|
+
* checkout that orders on mount places nothing until the buyer taps, as legacy's pay button.
|
|
82
|
+
*/
|
|
83
|
+
awaitsTap: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Main's payment-failed sheet is answering this checkout's `paymentFailed`. It turns false with the
|
|
86
|
+
* checkout still mounted once the buyer closes it and stays on this provider.
|
|
87
|
+
*/
|
|
88
|
+
paymentFailureShown: boolean;
|
|
89
|
+
}
|
|
90
|
+
export interface ProviderSlot {
|
|
91
|
+
/** The amount screen's action slot. Drawn while the screen offers an action for the current quote, or while held. */
|
|
92
|
+
action: (node: ReactNode) => void;
|
|
93
|
+
/** The consent footer under the keypad; `undefined` clears it. */
|
|
94
|
+
disclosure: (node: ReactNode) => void;
|
|
95
|
+
/** Full screen: provider auth UI, KYC form. While one is up, requotes cannot replace this checkout. */
|
|
96
|
+
takeover: (screen: ReactNode) => void;
|
|
97
|
+
/** Back to the inline slot. */
|
|
98
|
+
release: () => void;
|
|
99
|
+
/**
|
|
100
|
+
* While held, the sheet cannot be dismissed, the amount is locked, and no requote replaces this
|
|
101
|
+
* checkout: a charge is in flight and its result must not be lost. Release it, and any takeover,
|
|
102
|
+
* before unmounting.
|
|
103
|
+
*/
|
|
104
|
+
hold: (held: boolean) => void;
|
|
105
|
+
/**
|
|
106
|
+
* While held, the sheet can be closed anyway; the amount stays locked. For an order whose reads
|
|
107
|
+
* gave up, as legacy's processing wait leaves the flow closable once its poll passes its deadline.
|
|
108
|
+
*/
|
|
109
|
+
closable: (closable: boolean) => void;
|
|
110
|
+
/** Whether the action can be pressed. Until it can, the fee and the footer wait, as beside main's button. */
|
|
111
|
+
ready: (ready: boolean) => void;
|
|
112
|
+
/**
|
|
113
|
+
* The buyer has paid and the checkout is reading its order until it ends: the amount screen
|
|
114
|
+
* shows main's processing card meanwhile, as after a legacy Apple Pay payment. `orderId`: the
|
|
115
|
+
* paid order, which the processing log names.
|
|
116
|
+
*/
|
|
117
|
+
paid: (paid: boolean, orderId?: string) => void;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* - `REQUOTE` quotes again without this provider for the rest of the amount screen session.
|
|
121
|
+
* - `paymentFailed`: the provider's payment page failed before any charge, with its code. The
|
|
122
|
+
* amount screen answers it with main's payment-failed sheet, as a failed sheet the quote drew:
|
|
123
|
+
* another card on the same provider, another provider, or another method.
|
|
124
|
+
* - `verdict: 'KYC_REJECTED'`: the provider refused the buyer's identity. With `NONE` the amount
|
|
125
|
+
* screen shows the hard verdict at once; with `REQUOTE` it fails over as after any KYC rejection.
|
|
126
|
+
* - `maxAmount`: the amount is over the provider's cap. The amount field names it with "Deposit Max",
|
|
127
|
+
* as a legacy over-limit refusal does, and the provider is kept for an amount under it.
|
|
128
|
+
*/
|
|
129
|
+
export type ProviderExit = {
|
|
130
|
+
recovery: 'REQUOTE';
|
|
131
|
+
message?: string;
|
|
132
|
+
verdict?: 'KYC_REJECTED';
|
|
133
|
+
maxAmount?: {
|
|
134
|
+
amount: string;
|
|
135
|
+
currency: string;
|
|
136
|
+
};
|
|
137
|
+
} | {
|
|
138
|
+
recovery: 'RETRY';
|
|
139
|
+
message?: string;
|
|
140
|
+
} | {
|
|
141
|
+
recovery: 'NONE';
|
|
142
|
+
message?: string;
|
|
143
|
+
verdict?: 'KYC_REJECTED';
|
|
144
|
+
} | {
|
|
145
|
+
cancelled: true;
|
|
146
|
+
} | {
|
|
147
|
+
paymentFailed: string;
|
|
148
|
+
};
|
|
149
|
+
//# sourceMappingURL=providerFlow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providerFlow.d.ts","sourceRoot":"","sources":["../../../src/fiat/providerFlow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,gBAAgB,EACjB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAErD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAA;AACtF,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAEtE;;;;;;;GAOG;AACH,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,aAAa,CAAC,qBAAqB,CAAC,CAAA;IAC9C,8FAA8F;IAC9F,IAAI,CAAC,EAAE,aAAa,CAAC;QAAE,QAAQ,EAAE,SAAS,CAAA;KAAE,CAAC,CAAA;CAC9C;AAED,iFAAiF;AACjF,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAA;IAC5C,WAAW,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAA;IAC/C,aAAa,EAAE,MAAM,CAAA;IACrB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,oBAAoB,CAAA;IACvC,qFAAqF;IACrF,QAAQ,CAAC,EAAE,gBAAgB,CAAA;CAC5B;AAED,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,YAAY,CAAA;IACnB,oGAAoG;IACpG,GAAG,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,EAAE,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;IACrD,IAAI,EAAE,YAAY,CAAA;IAClB;;;;OAIG;IACH,OAAO,EAAE,CAAC,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACtE,MAAM,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAA;IACpC,gFAAgF;IAChF,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,2GAA2G;IAC3G,gBAAgB,EAAE,MAAM,IAAI,CAAA;IAC5B,8GAA8G;IAC9G,kBAAkB,EAAE,MAAM,IAAI,CAAA;IAC9B;;;OAGG;IACH,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,QAAQ,EAAE,OAAO,CAAC,EAAE,gBAAgB,KAAK,IAAI,CAAA;IAChE,2FAA2F;IAC3F,SAAS,EAAE,sBAAsB,CAAA;IACjC;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,oBAAoB,CAAA;IACvC;;;OAGG;IACH,SAAS,EAAE,OAAO,CAAA;IAClB;;;OAGG;IACH,mBAAmB,EAAE,OAAO,CAAA;CAC7B;AAED,MAAM,WAAW,YAAY;IAC3B,qHAAqH;IACrH,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAA;IACjC,kEAAkE;IAClE,UAAU,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAA;IACrC,uGAAuG;IACvG,QAAQ,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,IAAI,CAAA;IACrC,+BAA+B;IAC/B,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB;;;;OAIG;IACH,IAAI,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IAC7B;;;OAGG;IACH,QAAQ,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAA;IACrC,6GAA6G;IAC7G,KAAK,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;IAC/B;;;;OAIG;IACH,IAAI,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;CAChD;AAED;;;;;;;;;GASG;AACH,MAAM,MAAM,YAAY,GACpB;IACE,QAAQ,EAAE,SAAS,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,cAAc,CAAA;IACxB,SAAS,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAA;CACjD,GACD;IAAE,QAAQ,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,GACvC;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,cAAc,CAAA;CAAE,GAChE;IAAE,SAAS,EAAE,IAAI,CAAA;CAAE,GACnB;IAAE,aAAa,EAAE,MAAM,CAAA;CAAE,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { FiatProvider, useFeatureGate } from '@funkit/connect-core';
|
|
2
|
+
import type { ProviderFlow } from './providerFlow';
|
|
3
|
+
/**
|
|
4
|
+
* The only file that lists providers running their own checkout. Registering
|
|
5
|
+
* one is what opts it into `handoffs` on `/fiat/quote`.
|
|
6
|
+
*/
|
|
7
|
+
export declare const PROVIDER_FLOWS: Partial<Record<FiatProvider, ProviderFlow>>;
|
|
8
|
+
/**
|
|
9
|
+
* The Statsig gate each flow needs on to be sent in `handoffs`, so a provider can be
|
|
10
|
+
* pulled without a release. A flow with no gate here is never sent.
|
|
11
|
+
*/
|
|
12
|
+
export declare const PROVIDER_FLOW_GATES: Partial<Record<FiatProvider, Parameters<typeof useFeatureGate>[0]>>;
|
|
13
|
+
//# sourceMappingURL=providerFlows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providerFlows.d.ts","sourceRoot":"","sources":["../../../src/fiat/providerFlows.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAExE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAKlD;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,YAAY,CAAC,CAItE,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,OAAO,CACvC,MAAM,CAAC,YAAY,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAK3D,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type FiatProvider, type FiatQuoteHandoff } from '@funkit/connect-core';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
import type { HandoffQuote, ProviderFlow } from './providerFlow';
|
|
4
|
+
/**
|
|
5
|
+
* Whether a QA session may force flows past their gates: only in a dev build or against the testing
|
|
6
|
+
* backend, so each flow's gate stays its kill switch in every production build.
|
|
7
|
+
*/
|
|
8
|
+
export declare function forcedHandoffsAllowed(apiBaseUrl?: string): boolean;
|
|
9
|
+
/** The `handoffs` sent on `/fiat/quote`: every registered flow whose gate is on, or those a QA session names. */
|
|
10
|
+
export declare function useHandoffProviders(): readonly FiatProvider[];
|
|
11
|
+
export declare function providerFlowFor(provider: FiatProvider): ProviderFlow | undefined;
|
|
12
|
+
/** Each registered flow's `Host`, mounted once around the fiat screens. */
|
|
13
|
+
export declare function ProviderFlowHosts({ children }: {
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
}): ReactNode;
|
|
16
|
+
/** What the buyer chose: the table's terms, or read off the quote that carried `handoff`. */
|
|
17
|
+
export declare function handoffQuoteOf(quoteHandoff: FiatQuoteHandoff): HandoffQuote | undefined;
|
|
18
|
+
//# sourceMappingURL=providerHandoff.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providerHandoff.d.ts","sourceRoot":"","sources":["../../../src/fiat/providerHandoff.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,gBAAgB,EAGtB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAKhE;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,UAAU,GAAE,MAAqB,WAKtE;AAED,iHAAiH;AACjH,wBAAgB,mBAAmB,IAAI,SAAS,YAAY,EAAE,CA4B7D;AAED,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,YAAY,GACrB,YAAY,GAAG,SAAS,CAE1B;AAED,2EAA2E;AAC3E,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,aAMtE;AAED,6FAA6F;AAC7F,wBAAgB,cAAc,CAC5B,YAAY,EAAE,gBAAgB,GAC7B,YAAY,GAAG,SAAS,CAsB1B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { TFunction } from 'i18next';
|
|
2
|
+
/** Continue on a consent; while its tap is on its way, legacy's wait: the spinner alone, no label. */
|
|
3
|
+
export declare function continueButton({ t, accepting, onPress, }: {
|
|
4
|
+
t: TFunction;
|
|
5
|
+
accepting: boolean;
|
|
6
|
+
onPress: () => void;
|
|
7
|
+
}): import("react").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=continueButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"continueButton.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/checkout/continueButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAIxC,sGAAsG;AACtG,wBAAgB,cAAc,CAAC,EAC7B,CAAC,EACD,SAAS,EACT,OAAO,GACR,EAAE;IACD,CAAC,EAAE,SAAS,CAAA;IACZ,SAAS,EAAE,OAAO,CAAA;IAClB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,+BAMA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { ProviderSlot } from '../../providerFlow';
|
|
3
|
+
/** A screen for one of the slot's places; a new `key` is a new screen, not a redraw of this one. */
|
|
4
|
+
export interface SlotScreen {
|
|
5
|
+
key: string;
|
|
6
|
+
node: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
/** What the checkout draws on the amount screen: its action, the footer, and any full screen. */
|
|
9
|
+
export declare function useSlotScreens(slot: ProviderSlot, screens: {
|
|
10
|
+
action: SlotScreen | undefined;
|
|
11
|
+
disclosure: SlotScreen | undefined;
|
|
12
|
+
takeover: SlotScreen | undefined;
|
|
13
|
+
}): void;
|
|
14
|
+
//# sourceMappingURL=slotOutlets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slotOutlets.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/checkout/slotOutlets.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,SAAS,EAMf,MAAM,OAAO,CAAA;AAEd,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AA8BtD,oGAAoG;AACpG,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,SAAS,CAAA;CAChB;AA6BD,iGAAiG;AACjG,wBAAgB,cAAc,CAC5B,IAAI,EAAE,YAAY,EAClB,OAAO,EAAE;IACP,MAAM,EAAE,UAAU,GAAG,SAAS,CAAA;IAC9B,UAAU,EAAE,UAAU,GAAG,SAAS,CAAA;IAClC,QAAQ,EAAE,UAAU,GAAG,SAAS,CAAA;CACjC,QASF"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { FiatProvider } from '@funkit/connect-core';
|
|
2
|
+
import type { TFunction } from 'i18next';
|
|
3
|
+
/**
|
|
4
|
+
* A request that failed with `RETRY`; the tap sends the same request again. Sumsub being down
|
|
5
|
+
* reads as legacy's verification-unavailable screen, and a spent code budget as legacy's
|
|
6
|
+
* `fiat.otpRateLimited`. Try Again waits out a 429's `retryAfterSeconds`.
|
|
7
|
+
*/
|
|
8
|
+
export declare function RetryScreen({ t, reason, codeRequest, retryAfterSeconds, onRetry, onClose, }: {
|
|
9
|
+
t: TFunction;
|
|
10
|
+
/** The fault's reason, as the provider's contract names it. */
|
|
11
|
+
reason: string | undefined;
|
|
12
|
+
/** The failed request sends or checks a code, so a rate limit reads as legacy's code throttle. */
|
|
13
|
+
codeRequest?: boolean;
|
|
14
|
+
retryAfterSeconds?: number;
|
|
15
|
+
onRetry: () => void;
|
|
16
|
+
onClose: () => void;
|
|
17
|
+
}): import("react").JSX.Element;
|
|
18
|
+
/** A request the backend refused as malformed: a client bug, so nothing to retry. */
|
|
19
|
+
export declare function ErrorScreen({ t, provider, onClose, }: {
|
|
20
|
+
t: TFunction;
|
|
21
|
+
provider: FiatProvider;
|
|
22
|
+
onClose: () => void;
|
|
23
|
+
}): import("react").JSX.Element;
|
|
24
|
+
/**
|
|
25
|
+
* Legacy's screen for a charge whose `order` failed before the backend recorded it. Only the same
|
|
26
|
+
* `order` may go again; close leaves the flow, as legacy's does.
|
|
27
|
+
*/
|
|
28
|
+
export declare function ConfirmingScreen({ t, onRetry, onClose, }: {
|
|
29
|
+
t: TFunction;
|
|
30
|
+
/** Sends the same `order` again. */
|
|
31
|
+
onRetry: () => void;
|
|
32
|
+
onClose: () => void;
|
|
33
|
+
}): import("react").JSX.Element;
|
|
34
|
+
/** The charge cannot be recorded here. Never a requote: that would start a second payment. */
|
|
35
|
+
export declare function SupportScreen({ t, onClose, }: {
|
|
36
|
+
t: TFunction;
|
|
37
|
+
onClose: () => void;
|
|
38
|
+
}): import("react").JSX.Element;
|
|
39
|
+
//# sourceMappingURL=statusScreens.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"statusScreens.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/checkout/statusScreens.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAOxC;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAC1B,CAAC,EACD,MAAM,EACN,WAAmB,EACnB,iBAAiB,EACjB,OAAO,EACP,OAAO,GACR,EAAE;IACD,CAAC,EAAE,SAAS,CAAA;IACZ,+DAA+D;IAC/D,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,kGAAkG;IAClG,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,+BAoCA;AAED,qFAAqF;AACrF,wBAAgB,WAAW,CAAC,EAC1B,CAAC,EACD,QAAQ,EACR,OAAO,GACR,EAAE;IACD,CAAC,EAAE,SAAS,CAAA;IACZ,QAAQ,EAAE,YAAY,CAAA;IACtB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,+BAUA;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,CAAC,EACD,OAAO,EACP,OAAO,GACR,EAAE;IACD,CAAC,EAAE,SAAS,CAAA;IACZ,oCAAoC;IACpC,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,+BAUA;AAED,8FAA8F;AAC9F,wBAAgB,aAAa,CAAC,EAC5B,CAAC,EACD,OAAO,GACR,EAAE;IACD,CAAC,EAAE,SAAS,CAAA;IACZ,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,+BAUA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type FiatRouteContext } from '@funkit/connect-core';
|
|
2
|
+
/**
|
|
3
|
+
* What `POST /fiat/next` sends with: this user's API key and Bearer. A host with a minter sends
|
|
4
|
+
* its identity assertion; a Fun-login host sends the Fun session, as its other `/fiat/*` calls do,
|
|
5
|
+
* so the backend can resolve a mode-2 identity rather than an anonymous caller.
|
|
6
|
+
*/
|
|
7
|
+
export declare function useFiatNextApi(): FiatRouteContext;
|
|
8
|
+
//# sourceMappingURL=useFiatNextApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFiatNextApi.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/checkout/useFiatNextApi.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,gBAAgB,EAKtB,MAAM,sBAAsB,CAAA;AAO7B;;;;GAIG;AACH,wBAAgB,cAAc,IAAI,gBAAgB,CAyBjD"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ProviderCheckoutProps } from '../../../providerFlow';
|
|
2
|
+
import { type SlotScreen } from '../../checkout/slotOutlets';
|
|
3
|
+
import { type CoinbaseCheckoutModel } from './useCoinbaseCheckout';
|
|
4
|
+
/** Coinbase's checkout on `/fiat/next`, drawn through the provider slot. */
|
|
5
|
+
export declare function CoinbaseCheckout(props: ProviderCheckoutProps): null;
|
|
6
|
+
/** The amount screen's action: Continue on the terms, Coinbase's button on `pay`, else a wait. */
|
|
7
|
+
export declare function coinbaseAction(model: CoinbaseCheckoutModel, setPayReady: (key: string | undefined) => void): SlotScreen | undefined;
|
|
8
|
+
/** A full screen over the amount screen: the phone, the code, the limit upgrade, or a failure. */
|
|
9
|
+
export declare function coinbaseTakeover(model: CoinbaseCheckoutModel): SlotScreen | undefined;
|
|
10
|
+
//# sourceMappingURL=Checkout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkout.d.ts","sourceRoot":"","sources":["../../../../../../src/fiat/providers/coinbase/next/Checkout.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAA;AAGlE,OAAO,EAAE,KAAK,UAAU,EAAkB,MAAM,4BAA4B,CAAA;AAe5E,OAAO,EACL,KAAK,qBAAqB,EAG3B,MAAM,uBAAuB,CAAA;AAQ9B,4EAA4E;AAC5E,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,QA8B5D;AAED,kGAAkG;AAClG,wBAAgB,cAAc,CAC5B,KAAK,EAAE,qBAAqB,EAC5B,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,GAC7C,UAAU,GAAG,SAAS,CA8IxB;AAkCD,kGAAkG;AAClG,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,qBAAqB,GAC3B,UAAU,GAAG,SAAS,CAqJxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/fiat/providers/coinbase/next/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAGzD,8DAA8D;AAC9D,eAAO,MAAM,YAAY,EAAE,YAE1B,CAAA"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { type CoinbaseCheckoutExit, type CoinbaseCheckoutState, type CoinbasePrice, type CoinbaseStage, type FormValues } from '@funkit/connect-core';
|
|
2
|
+
import type { TFunction } from 'i18next';
|
|
3
|
+
import { type Dispatch, type SetStateAction } from 'react';
|
|
4
|
+
import type { ProviderCheckoutProps, ProviderExit } from '../../../providerFlow';
|
|
5
|
+
import type { FeeQuote } from '../../../common/stepDetails';
|
|
6
|
+
/** The one telemetry event per Coinbase checkout that ends. */
|
|
7
|
+
export declare const COINBASE_CHECKOUT_EXIT_EVENT = "fiat:coinbase_next_exit";
|
|
8
|
+
/**
|
|
9
|
+
* The fee line the amount screen shows: Coinbase's own total, never the backend's estimate. `undefined`
|
|
10
|
+
* for a fee that is not a finite, non-negative amount, so the line keeps the estimate.
|
|
11
|
+
*/
|
|
12
|
+
export declare function feeQuoteOf(price: CoinbasePrice): FeeQuote | undefined;
|
|
13
|
+
/** How the amount screen is told the checkout ended. */
|
|
14
|
+
export declare function coinbaseProviderExit(exit: CoinbaseCheckoutExit, t: TFunction): ProviderExit;
|
|
15
|
+
/** How long a limit-upgrade review is polled before it reads as on hold, as MoonPay's. */
|
|
16
|
+
export declare const REVIEW_POLL_CAP_MS = 90000;
|
|
17
|
+
/** Coinbase's checkout, from the handed-off quote to the order. It runs the reducer and its calls. */
|
|
18
|
+
export declare function useCoinbaseCheckout({ quote, geo, slot, onOrder, onExit, onFeeQuote, analytics, onPaymentStarted, awaitsTap, depositAddress, destinationAsset: recipientAsset, }: ProviderCheckoutProps): {
|
|
19
|
+
acceptTerms: () => void;
|
|
20
|
+
/** The buyer's Continue on a held step: its screen takes over from here on. */
|
|
21
|
+
releaseIdentity: () => void;
|
|
22
|
+
submitPhone: () => void;
|
|
23
|
+
submitCode: () => void;
|
|
24
|
+
resendCode: () => void;
|
|
25
|
+
submitKyc: () => void;
|
|
26
|
+
/** The payment page reached an end; the order it paid is read from here on. */
|
|
27
|
+
paymentReported: () => void;
|
|
28
|
+
/** The payment page failed or left the screen: its single-use link cannot load again. */
|
|
29
|
+
linkSpent: (orderId: string) => void;
|
|
30
|
+
/** A spent link's page is drawn again: it needs a new order. */
|
|
31
|
+
linkRedrawn: (orderId: string) => void;
|
|
32
|
+
/** The buyer's tap to pay again after a failed page: a new order. */
|
|
33
|
+
payAgain: (orderId: string) => void;
|
|
34
|
+
/** Mounted under the failover sheet: no order until the buyer's tap. */
|
|
35
|
+
tapAwaited: boolean;
|
|
36
|
+
/** That tap: the first order goes, for the terms on screen now. */
|
|
37
|
+
tap: () => void;
|
|
38
|
+
retry: () => void;
|
|
39
|
+
exit: () => void;
|
|
40
|
+
paymentFailed: (orderId: string, code: string) => void;
|
|
41
|
+
analytics: import("../../../../hooks/track/useProviderCheckoutEvents").ProviderCheckoutEvents;
|
|
42
|
+
readinessTiming: {
|
|
43
|
+
attemptId: string;
|
|
44
|
+
selectedAt: number;
|
|
45
|
+
};
|
|
46
|
+
/** The buyer tapped Coinbase's pay button: the amount screen opens a payment attempt. */
|
|
47
|
+
paymentStarted: () => void;
|
|
48
|
+
geo: {
|
|
49
|
+
alpha2: string;
|
|
50
|
+
region?: string;
|
|
51
|
+
ip?: string;
|
|
52
|
+
};
|
|
53
|
+
identityHeld: boolean;
|
|
54
|
+
kycValues: FormValues;
|
|
55
|
+
otpCode: string;
|
|
56
|
+
phoneNumber: string;
|
|
57
|
+
reviewGaveUp: boolean;
|
|
58
|
+
setKycValues: Dispatch<SetStateAction<FormValues>>;
|
|
59
|
+
setOtpCode: Dispatch<SetStateAction<string>>;
|
|
60
|
+
setPhoneNumber: Dispatch<SetStateAction<string>>;
|
|
61
|
+
setSupportClosed: Dispatch<SetStateAction<boolean>>;
|
|
62
|
+
slot: import("../../../providerFlow").ProviderSlot;
|
|
63
|
+
stage: CoinbaseStage;
|
|
64
|
+
state: CoinbaseCheckoutState;
|
|
65
|
+
supportClosed: boolean;
|
|
66
|
+
t: TFunction<"translation", undefined>;
|
|
67
|
+
};
|
|
68
|
+
export type CoinbaseCheckoutModel = ReturnType<typeof useCoinbaseCheckout>;
|
|
69
|
+
/** The shared form's id for a Coinbase KYC round, named by its fields. */
|
|
70
|
+
export declare function coinbaseKycFormId(response: {
|
|
71
|
+
fields: {
|
|
72
|
+
id: string;
|
|
73
|
+
}[];
|
|
74
|
+
}): string;
|
|
75
|
+
//# sourceMappingURL=useCoinbaseCheckout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCoinbaseCheckout.d.ts","sourceRoot":"","sources":["../../../../../../src/fiat/providers/coinbase/next/useCoinbaseCheckout.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,aAAa,EAClB,KAAK,aAAa,EAElB,KAAK,UAAU,EAShB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AACxC,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,cAAc,EAOpB,MAAM,OAAO,CAAA;AAKd,OAAO,KAAK,EAEV,qBAAqB,EACrB,YAAY,EACb,MAAM,uBAAuB,CAAA;AAC9B,OAAO,KAAK,EAAE,QAAQ,EAAc,MAAM,6BAA6B,CAAA;AAGvE,+DAA+D;AAC/D,eAAO,MAAM,4BAA4B,4BAA4B,CAAA;AAWrE;;;GAGG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,aAAa,GAAG,QAAQ,GAAG,SAAS,CAWrE;AAED,wDAAwD;AACxD,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,oBAAoB,EAC1B,CAAC,EAAE,SAAS,GACX,YAAY,CAkBd;AAuFD,0FAA0F;AAC1F,eAAO,MAAM,kBAAkB,QAAS,CAAA;AAExC,sGAAsG;AACtG,wBAAgB,mBAAmB,CAAC,EAClC,KAAK,EACL,GAAG,EACH,IAAI,EACJ,OAAO,EACP,MAAM,EACN,UAAU,EACV,SAAS,EACT,gBAAgB,EAChB,SAAS,EACT,cAAc,EACd,gBAAgB,EAAE,cAAc,GACjC,EAAE,qBAAqB;;IA+QpB,+EAA+E;;;;;;IAmC/E,+EAA+E;;IAE/E,yFAAyF;yBACpE,MAAM;IAE3B,gEAAgE;;IAEhE,qEAAqE;wBACjD,MAAM;IAC1B,wEAAwE;;IAExE,mEAAmE;;;;6BApOrC,MAAM,QAAQ,MAAM;;;;;;IA8OlD,yFAAyF;;;;;;;;;;;;;;;;;;;;;EAkB5F;AAqBD,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAE1E,0EAA0E;AAC1E,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE;IAAE,MAAM,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAAE,UAEvE"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type KycSdkResultReport, type MoonPayCaptureNextAction } from '@funkit/connect-core';
|
|
2
|
+
import { type RenewToken } from '../sumsub/sumsubKyc';
|
|
3
|
+
export interface MoonPayCaptureProps {
|
|
4
|
+
response: MoonPayCaptureNextAction;
|
|
5
|
+
submitting: boolean;
|
|
6
|
+
/** Once per SDK close: the `capture` report. */
|
|
7
|
+
onClosed: (result: KycSdkResultReport) => void;
|
|
8
|
+
/** Sumsub saw the buyer submit their documents. */
|
|
9
|
+
onSubmitted: () => void;
|
|
10
|
+
onExit: () => void;
|
|
11
|
+
renewToken: RenewToken;
|
|
12
|
+
}
|
|
13
|
+
/** A `capture` prompt on legacy's capture screens. Each new token starts at its own intro. */
|
|
14
|
+
export declare function MoonPayCapture(props: MoonPayCaptureProps): import("react").JSX.Element;
|
|
15
|
+
//# sourceMappingURL=Capture.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Capture.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/moonpay/Capture.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAK9B,MAAM,sBAAsB,CAAA;AAS7B,OAAO,EACL,KAAK,UAAU,EAGhB,MAAM,qBAAqB,CAAA;AAI5B,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,wBAAwB,CAAA;IAClC,UAAU,EAAE,OAAO,CAAA;IACnB,gDAAgD;IAChD,QAAQ,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI,CAAA;IAC9C,mDAAmD;IACnD,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,UAAU,EAAE,UAAU,CAAA;CACvB;AAED,8FAA8F;AAC9F,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,+BAExD"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ProviderCheckoutProps } from '../../providerFlow';
|
|
2
|
+
/** Runs the controller and publishes the existing screens through the provider slot. */
|
|
3
|
+
export declare function MoonPayCheckout(props: ProviderCheckoutProps): import("react").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=Checkout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkout.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/moonpay/Checkout.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAQ/D,wFAAwF;AACxF,wBAAgB,eAAe,CAAC,KAAK,EAAE,qBAAqB,+BAkF3D"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type FormValues, type KycFieldId, type MoonPayKycNextAction } from '@funkit/connect-core';
|
|
2
|
+
import type { KycIntro } from '../kycIntro';
|
|
3
|
+
type KycRound = MoonPayKycNextAction;
|
|
4
|
+
/** The `kyc` request takes one string per field. */
|
|
5
|
+
export declare function kycValues(values: FormValues): Partial<Record<KycFieldId, string>>;
|
|
6
|
+
/** A round is its fields: the same fields again, with errors, is the same form corrected. */
|
|
7
|
+
/** The shared form's id for a MoonPay KYC round, named by its fields. */
|
|
8
|
+
export declare function moonPayKycFormId(response: {
|
|
9
|
+
fields: {
|
|
10
|
+
id: string;
|
|
11
|
+
}[];
|
|
12
|
+
}): string;
|
|
13
|
+
/**
|
|
14
|
+
* A `kyc` prompt on the shared identity step.
|
|
15
|
+
* - Saved backend consent does not skip the identity intro. A consent accepted in this checkout
|
|
16
|
+
* already introduced it; additional-information rounds keep their own faceplate.
|
|
17
|
+
* - Values live here for one round and survive its corrections. `carriedValues` are what earlier
|
|
18
|
+
* rounds of this checkout sent, so a later round neither re-asks nor blanks them.
|
|
19
|
+
*/
|
|
20
|
+
export declare function MoonPayKycForm({ intro, response, submitting, defaultCountry, carriedValues, onSubmit, onClose, }: {
|
|
21
|
+
intro?: KycIntro;
|
|
22
|
+
response: KycRound;
|
|
23
|
+
submitting: boolean;
|
|
24
|
+
defaultCountry: string;
|
|
25
|
+
carriedValues: FormValues;
|
|
26
|
+
onSubmit: (values: Partial<Record<KycFieldId, string>>) => void;
|
|
27
|
+
onClose: () => void;
|
|
28
|
+
}): import("react").JSX.Element;
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=KycForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KycForm.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/moonpay/KycForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,oBAAoB,EAE1B,MAAM,sBAAsB,CAAA;AAM7B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAI3C,KAAK,QAAQ,GAAG,oBAAoB,CAAA;AAEpC,oDAAoD;AACpD,wBAAgB,SAAS,CACvB,MAAM,EAAE,UAAU,GACjB,OAAO,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CASrC;AAED,6FAA6F;AAC7F,yEAAyE;AACzE,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE;IAAE,MAAM,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAAE,UAEtE;AASD;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,EAC7B,KAAiB,EACjB,QAAQ,EACR,UAAU,EACV,cAAc,EACd,aAAa,EACb,QAAQ,EACR,OAAO,GACR,EAAE;IACD,KAAK,CAAC,EAAE,QAAQ,CAAA;IAChB,QAAQ,EAAE,QAAQ,CAAA;IAClB,UAAU,EAAE,OAAO,CAAA;IACnB,cAAc,EAAE,MAAM,CAAA;IACtB,aAAa,EAAE,UAAU,CAAA;IACzB,QAAQ,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,KAAK,IAAI,CAAA;IAC/D,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,+BAsDA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type SlotScreen } from '../checkout/slotOutlets';
|
|
3
|
+
import { type MoonPayCheckoutModel } from './useCheckoutModel';
|
|
4
|
+
export declare function renderMoonPayTakeover(model: MoonPayCheckoutModel): SlotScreen | undefined;
|
|
5
|
+
export declare function renderMoonPayIdentity(model: MoonPayCheckoutModel): ReactNode;
|
|
6
|
+
export declare function renderMoonPayAction(model: MoonPayCheckoutModel): SlotScreen;
|
|
7
|
+
//# sourceMappingURL=checkoutScreens.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkoutScreens.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/moonpay/checkoutScreens.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAa,MAAM,OAAO,CAAA;AAgBjD,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAWzD,OAAO,EAAE,KAAK,oBAAoB,EAAoB,MAAM,oBAAoB,CAAA;AAChF,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,oBAAoB,GAC1B,UAAU,GAAG,SAAS,CAyKxB;AACD,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,oBAAoB,GAAG,SAAS,CAqH5E;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,oBAAoB,GAAG,UAAU,CAmL3E"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { TermsDocument } from '@funkit/connect-core';
|
|
2
|
+
/**
|
|
3
|
+
* The documents' links, placed in main's MoonPay sentence. A link the sentence has no place
|
|
4
|
+
* for (Persona's privacy policy) is not shown, as on main; a missing one keeps main's URL.
|
|
5
|
+
*/
|
|
6
|
+
export declare function moonPayNoticeUrls(documents: readonly TermsDocument[]): {
|
|
7
|
+
terms: {
|
|
8
|
+
documentUrl: string;
|
|
9
|
+
};
|
|
10
|
+
privacyUrl?: string;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=documents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"documents.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/moonpay/documents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAQzD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,SAAS,aAAa,EAAE,GAAG;IACtE,KAAK,EAAE;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE,CAAA;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CASA"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { MoonPayCheckoutExit } from '@funkit/connect-core';
|
|
2
|
+
import type { TFunction } from 'i18next';
|
|
3
|
+
import type { ProviderExit } from '../../providerFlow';
|
|
4
|
+
export declare const MOONPAY_NAME = "MoonPay";
|
|
5
|
+
/** Codes this folder raises for what MoonPay's SDK reported. */
|
|
6
|
+
export declare const SDK_FAILURE: {
|
|
7
|
+
readonly notExecutable: 'quote_not_executable';
|
|
8
|
+
readonly disclosures: 'payment_disclosures_required';
|
|
9
|
+
readonly noFeeQuote: 'fee_quote_unavailable';
|
|
10
|
+
readonly quoteFailed: 'quote_failed';
|
|
11
|
+
readonly unsupported: 'apple_pay_unsupported';
|
|
12
|
+
readonly transactionFailed: 'transaction_failed';
|
|
13
|
+
readonly readyTimeout: 'surface_ready_timeout';
|
|
14
|
+
readonly declined: 'authorizationDeclined';
|
|
15
|
+
readonly cancelled: 'sheet_cancelled';
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* How the checkout answers a MoonPay SDK code, as legacy's button does.
|
|
19
|
+
*
|
|
20
|
+
* - `requote`: a closed sheet takes a fresh quote in place, with no sheet of ours.
|
|
21
|
+
* - `session_lost`: MoonPay no longer honours the session; one new session, quietly.
|
|
22
|
+
* - `failed`: main's payment-failed sheet, as legacy's `onFailed`. A declined card is one: since
|
|
23
|
+
* #7726 legacy fails over on `authorizationDeclined`, because a closed sheet arrives as `cancelled`.
|
|
24
|
+
*/
|
|
25
|
+
export type MoonPaySdkOutcome = {
|
|
26
|
+
kind: 'requote';
|
|
27
|
+
} | {
|
|
28
|
+
kind: 'session_lost';
|
|
29
|
+
} | {
|
|
30
|
+
kind: 'failed';
|
|
31
|
+
};
|
|
32
|
+
export declare function sdkOutcome(code: string): MoonPaySdkOutcome;
|
|
33
|
+
/**
|
|
34
|
+
* The code legacy's button fails a device quote with: `quote_<code>` for MoonPay's own refusal,
|
|
35
|
+
* and this folder's codes as they are, so failure breakdowns read the same on both paths.
|
|
36
|
+
*/
|
|
37
|
+
export declare function quoteFailureCode(code: string): string;
|
|
38
|
+
/** The auth failure screen. Fixed copy: MoonPay's reason is logged, never shown. */
|
|
39
|
+
export declare function authFailureCopy(t: TFunction): {
|
|
40
|
+
title: string;
|
|
41
|
+
detail: string;
|
|
42
|
+
};
|
|
43
|
+
/** How the amount screen is told the checkout ended; a refusal names itself in fixed copy. */
|
|
44
|
+
export declare function providerExit(exit: MoonPayCheckoutExit, t: TFunction): ProviderExit;
|
|
45
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/moonpay/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EAEpB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEtD,eAAO,MAAM,YAAY,YAAY,CAAA;AAErC,gEAAgE;AAChE,eAAO,MAAM,WAAW;aACtB,aAAa,EAAE,sBAAsB;aACrC,WAAW,EAAE,8BAA8B;aAC3C,UAAU,EAAE,uBAAuB;aACnC,WAAW,EAAE,cAAc;aAC3B,WAAW,EAAE,uBAAuB;aACpC,iBAAiB,EAAE,oBAAoB;aACvC,YAAY,EAAE,uBAAuB;aACrC,QAAQ,EAAE,uBAAuB;aACjC,SAAS,EAAE,iBAAiB;CACpB,CAAA;AAEV;;;;;;;GAOG;AACH,MAAM,MAAM,iBAAiB,GACzB;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,GACnB;IAAE,IAAI,EAAE,cAAc,CAAA;CAAE,GACxB;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAA;AAEtB,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,iBAAiB,CAU1D;AASD;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAErD;AAED,oFAAoF;AACpF,wBAAgB,eAAe,CAAC,CAAC,EAAE,SAAS,GAAG;IAC7C,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;CACf,CAKA;AAED,8FAA8F;AAC9F,wBAAgB,YAAY,CAC1B,IAAI,EAAE,mBAAmB,EACzB,CAAC,EAAE,SAAS,GACX,YAAY,CAed"}
|