@funkit/connect-rn 12.2.0 → 12.4.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 +137 -0
- package/README.md +6 -1
- package/dist/{chunk-QCVNSXNO.js → chunk-ACECDE3B.js} +5 -7
- package/dist/chunk-ACECDE3B.js.map +7 -0
- package/dist/{chunk-NXDFUNCP.js → chunk-DDFBGRBX.js} +74 -10
- package/dist/chunk-DDFBGRBX.js.map +7 -0
- package/dist/{chunk-7RKYLSYP.js → chunk-LJHYIZUN.js} +2 -2
- package/dist/clients/lighter/lighterWithdrawalConfig.d.ts +1 -1
- package/dist/clients/lighter.js +1 -1
- package/dist/clients/lighter.js.map +1 -1
- package/dist/clients/nado.js +2 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11447 -7278
- package/dist/index.js.map +4 -4
- package/dist/preview.js +279 -5
- package/dist/preview.js.map +4 -4
- package/dist/src/components/DepositActionMotion.d.ts +3 -3
- package/dist/src/components/Grabber.d.ts +1 -1
- package/dist/src/components/Grabber.d.ts.map +1 -1
- package/dist/src/components/PillButton.d.ts +1 -1
- package/dist/src/components/PillButton.d.ts.map +1 -1
- package/dist/src/components/v2/FeeLine.d.ts +1 -1
- package/dist/src/components/v2/ListRow.d.ts +1 -1
- package/dist/src/components/v2/QuickAmountsRow.d.ts +1 -1
- package/dist/src/components/v2/QuickAmountsRow.d.ts.map +1 -1
- package/dist/src/fiat/common/FiatBackButton.d.ts +1 -1
- package/dist/src/fiat/common/FiatBackButton.d.ts.map +1 -1
- package/dist/src/fiat/common/FiatStepFailedScreen.d.ts +3 -2
- package/dist/src/fiat/common/FiatStepFailedScreen.d.ts.map +1 -1
- package/dist/src/fiat/common/FiatSubmissionIndicator.d.ts +1 -7
- package/dist/src/fiat/common/FiatSubmissionIndicator.d.ts.map +1 -1
- package/dist/src/fiat/common/ctaLabel.d.ts +1 -1
- package/dist/src/fiat/common/stepDetails.d.ts +1 -1
- 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/contactRound.d.ts +1 -0
- package/dist/src/fiat/contact/contactRound.d.ts.map +1 -1
- package/dist/src/fiat/contact/knownContacts.d.ts +1 -1
- package/dist/src/fiat/contact/phoneRegionRedirect.d.ts +2 -0
- package/dist/src/fiat/contact/phoneRegionRedirect.d.ts.map +1 -1
- package/dist/src/fiat/country/FiatCountrySheet.d.ts +1 -1
- package/dist/src/fiat/country/countryListEntries.d.ts +1 -1
- package/dist/src/fiat/country/countrySections.d.ts +1 -1
- package/dist/src/fiat/entry/useCaptureHold.d.ts +3 -3
- package/dist/src/fiat/entry/useCaptureHold.d.ts.map +1 -1
- package/dist/src/fiat/entry/useEntryQuote.d.ts +18 -4
- package/dist/src/fiat/entry/useEntryQuote.d.ts.map +1 -1
- package/dist/src/fiat/entry/useEntrySubmit.d.ts +2 -2
- package/dist/src/fiat/entry/useEntrySubmit.d.ts.map +1 -1
- package/dist/src/fiat/form/FiatBirthDateField.d.ts +1 -1
- package/dist/src/fiat/form/FiatBirthDateField.d.ts.map +1 -1
- package/dist/src/fiat/form/FiatFormAdvance.d.ts.map +1 -1
- package/dist/src/fiat/form/FiatFormFieldRow.d.ts +1 -1
- package/dist/src/fiat/form/FiatFormScreen.d.ts.map +1 -1
- package/dist/src/fiat/form/FiatSsnField.d.ts.map +1 -1
- package/dist/src/fiat/form/fieldAutofill.d.ts +1 -1
- package/dist/src/fiat/form/formLayout.d.ts +3 -1
- package/dist/src/fiat/form/formLayout.d.ts.map +1 -1
- package/dist/src/fiat/kyc/FiatDocumentCaptureStep.d.ts +1 -1
- package/dist/src/fiat/kyc/FiatDocumentCaptureStep.d.ts.map +1 -1
- package/dist/src/fiat/kyc/FiatIdentityStep.d.ts.map +1 -1
- package/dist/src/fiat/kyc/FiatKycFieldControl.d.ts +1 -1
- package/dist/src/fiat/kyc/FiatKycOutcomeScreen.d.ts +6 -2
- package/dist/src/fiat/kyc/FiatKycOutcomeScreen.d.ts.map +1 -1
- package/dist/src/fiat/kyc/SumsubCaptureStep.d.ts +25 -0
- package/dist/src/fiat/kyc/SumsubCaptureStep.d.ts.map +1 -0
- package/dist/src/fiat/kyc/analyticsKycSection.d.ts.map +1 -1
- package/dist/src/fiat/kyc/formValidationError.d.ts +1 -1
- package/dist/src/fiat/kyc/kycCapture.d.ts +3 -4
- package/dist/src/fiat/kyc/kycCapture.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycFieldValidators.d.ts +3 -1
- package/dist/src/fiat/kyc/kycFieldValidators.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycForm.d.ts +4 -5
- package/dist/src/fiat/kyc/kycForm.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycFormState.d.ts +7 -1
- package/dist/src/fiat/kyc/kycFormState.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycFormTheme.d.ts +1 -1
- package/dist/src/fiat/kyc/kycFormTheme.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycReaskCopy.d.ts +6 -0
- package/dist/src/fiat/kyc/kycReaskCopy.d.ts.map +1 -0
- package/dist/src/fiat/kyc/kycRoutes.d.ts +2 -2
- package/dist/src/fiat/kyc/kycRoutes.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycUnavailableAlert.d.ts +1 -1
- package/dist/src/fiat/kyc/kycValues.d.ts +4 -0
- package/dist/src/fiat/kyc/kycValues.d.ts.map +1 -0
- package/dist/src/fiat/kyc/kycVerdict.d.ts +1 -1
- package/dist/src/fiat/kyc/kycVerdict.d.ts.map +1 -1
- package/dist/src/fiat/kyc/useKycCompletion.d.ts +4 -4
- package/dist/src/fiat/kyc/useKycScreens.d.ts +1 -1
- package/dist/src/fiat/otp/FunReauthStep.d.ts +7 -2
- package/dist/src/fiat/otp/FunReauthStep.d.ts.map +1 -1
- package/dist/src/fiat/payment/failoverKind.d.ts +8 -1
- package/dist/src/fiat/payment/failoverKind.d.ts.map +1 -1
- package/dist/src/fiat/payment/failoverPrompt.d.ts +4 -1
- package/dist/src/fiat/payment/failoverPrompt.d.ts.map +1 -1
- package/dist/src/fiat/payment/methodName.d.ts.map +1 -1
- package/dist/src/fiat/payment/paymentAttempts.d.ts +1 -1
- package/dist/src/fiat/payment/paymentReroute.d.ts.map +1 -1
- package/dist/src/fiat/payment/paymentSurfaceFailure.d.ts.map +1 -1
- package/dist/src/fiat/payment/platformPayAttempt.d.ts +31 -0
- package/dist/src/fiat/payment/platformPayAttempt.d.ts.map +1 -0
- package/dist/src/fiat/payment/usePaymentAttempts.d.ts +3 -0
- package/dist/src/fiat/payment/usePaymentAttempts.d.ts.map +1 -1
- package/dist/src/fiat/payment/usePaymentFailureAnswer.d.ts +10 -7
- package/dist/src/fiat/payment/usePaymentFailureAnswer.d.ts.map +1 -1
- package/dist/src/fiat/processing/DepositCardSheet.d.ts +3 -0
- package/dist/src/fiat/processing/DepositCardSheet.d.ts.map +1 -1
- package/dist/src/fiat/processing/ProcessingAurora.d.ts +1 -1
- package/dist/src/fiat/processing/ProcessingAurora.d.ts.map +1 -1
- package/dist/src/fiat/providerFlow.d.ts +11 -2
- package/dist/src/fiat/providerFlow.d.ts.map +1 -1
- package/dist/src/fiat/providerFlows.d.ts.map +1 -1
- package/dist/src/fiat/providers/adapter.d.ts +3 -3
- package/dist/src/fiat/providers/adapter.d.ts.map +1 -1
- package/dist/src/fiat/providers/alchemypay/AlchemyPayButtonSurface.d.ts +8 -5
- package/dist/src/fiat/providers/alchemypay/AlchemyPayButtonSurface.d.ts.map +1 -1
- package/dist/src/fiat/providers/alchemypay/AlchemyPayChallengeSheet.d.ts +14 -0
- package/dist/src/fiat/providers/alchemypay/AlchemyPayChallengeSheet.d.ts.map +1 -0
- package/dist/src/fiat/providers/alchemypay/Checkout.d.ts +1 -1
- package/dist/src/fiat/providers/alchemypay/Checkout.d.ts.map +1 -1
- package/dist/src/fiat/providers/alchemypay/alchemyPayButtonEvents.d.ts +20 -5
- package/dist/src/fiat/providers/alchemypay/alchemyPayButtonEvents.d.ts.map +1 -1
- package/dist/src/fiat/providers/alchemypay/alchemyPayPage.d.ts +10 -3
- package/dist/src/fiat/providers/alchemypay/alchemyPayPage.d.ts.map +1 -1
- package/dist/src/fiat/providers/alchemypay/checkoutRules.d.ts.map +1 -1
- package/dist/src/fiat/providers/alchemypay/googlePayBuyLabel.d.ts +7 -0
- package/dist/src/fiat/providers/alchemypay/googlePayBuyLabel.d.ts.map +1 -0
- package/dist/src/fiat/providers/alchemypay/index.d.ts.map +1 -1
- package/dist/src/fiat/providers/alchemypay/useAlchemyPayCheckout.d.ts +2 -0
- package/dist/src/fiat/providers/alchemypay/useAlchemyPayCheckout.d.ts.map +1 -1
- package/dist/src/fiat/providers/banxa/BanxaCheckoutSurface.d.ts +2 -2
- package/dist/src/fiat/providers/banxa/BanxaCheckoutSurface.d.ts.map +1 -1
- package/dist/src/fiat/providers/checkout/retryProviderRequest.d.ts +16 -0
- package/dist/src/fiat/providers/checkout/retryProviderRequest.d.ts.map +1 -0
- package/dist/src/fiat/providers/checkout/slotOutlets.d.ts +8 -0
- package/dist/src/fiat/providers/checkout/slotOutlets.d.ts.map +1 -1
- package/dist/src/fiat/providers/checkout/useFiatNextApi.d.ts +10 -2
- package/dist/src/fiat/providers/checkout/useFiatNextApi.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/CoinbaseCheckoutSurface.d.ts +1 -1
- package/dist/src/fiat/providers/coinbase/CoinbaseCheckoutSurface.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/coinbaseApplePay.d.ts +2 -2
- package/dist/src/fiat/providers/coinbase/coinbaseApplePay.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/coinbaseCardRefusal.d.ts +5 -0
- package/dist/src/fiat/providers/coinbase/coinbaseCardRefusal.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/coinbasePlatformPayStyle.d.ts +22 -0
- package/dist/src/fiat/providers/coinbase/coinbasePlatformPayStyle.d.ts.map +1 -0
- package/dist/src/fiat/providers/coinbase/coinbasePreparedPayment.d.ts +2 -2
- package/dist/src/fiat/providers/coinbase/coinbasePreparedPayment.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/coinbaseWallet.d.ts +15 -0
- package/dist/src/fiat/providers/coinbase/coinbaseWallet.d.ts.map +1 -0
- package/dist/src/fiat/providers/coinbase/next/Checkout.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/next/coinbaseCheckoutTerms.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/next/useCoinbaseCheckout.d.ts +6 -1
- package/dist/src/fiat/providers/coinbase/next/useCoinbaseCheckout.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/Capture.d.ts +1 -1
- package/dist/src/fiat/providers/moonpay/Capture.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/KycForm.d.ts +0 -2
- package/dist/src/fiat/providers/moonpay/KycForm.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/errors.d.ts +1 -1
- package/dist/src/fiat/providers/moonpay/errors.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/events.d.ts +2 -0
- package/dist/src/fiat/providers/moonpay/events.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/fullCheckout/Checkout.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/fullCheckout/checkoutScreens.d.ts +0 -2
- package/dist/src/fiat/providers/moonpay/fullCheckout/checkoutScreens.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/fullCheckout/kycChallenge.d.ts +14 -0
- package/dist/src/fiat/providers/moonpay/fullCheckout/kycChallenge.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/fullCheckout/moonPayCheckoutTerms.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/fullCheckout/useCheckoutModel.d.ts +11 -5
- package/dist/src/fiat/providers/moonpay/fullCheckout/useCheckoutModel.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/guestCheckout/checkoutScreens.d.ts +0 -2
- package/dist/src/fiat/providers/moonpay/guestCheckout/checkoutScreens.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/guestCheckout/useGuestCheck.d.ts +2 -2
- package/dist/src/fiat/providers/moonpay/guestCheckout/useGuestCheck.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/guestCheckout/useGuestCheckoutModel.d.ts +5 -4
- package/dist/src/fiat/providers/moonpay/guestCheckout/useGuestCheckoutModel.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/index.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/moonpay.d.ts +2 -2
- package/dist/src/fiat/providers/moonpay/moonpay.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/moonpayAuthStyle.d.ts +7 -7
- package/dist/src/fiat/providers/moonpay/moonpayAuthStyle.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/{moonpayApplePayPainted.d.ts → moonpayPlatformPayPainted.d.ts} +3 -3
- package/dist/src/fiat/providers/moonpay/moonpayPlatformPayPainted.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/moonpayPlatformPayStyle.d.ts +13 -0
- package/dist/src/fiat/providers/moonpay/moonpayPlatformPayStyle.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/sdk/{ApplePayButton.d.ts → PlatformPayButton.d.ts} +14 -8
- package/dist/src/fiat/providers/moonpay/sdk/PlatformPayButton.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/sdk/{ApplePaySlot.d.ts → PlatformPaySlot.d.ts} +4 -4
- package/dist/src/fiat/providers/moonpay/sdk/PlatformPaySlot.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/useReadiness.d.ts +4 -4
- package/dist/src/fiat/providers/moonpay/useReadiness.d.ts.map +1 -1
- package/dist/src/fiat/providers/{applePayButtonMetrics.d.ts → platformPayButtonMetrics.d.ts} +6 -6
- package/dist/src/fiat/providers/platformPayButtonMetrics.d.ts.map +1 -0
- package/dist/src/fiat/providers/{applePayPaintGate.d.ts → platformPayPaintGate.d.ts} +8 -8
- package/dist/src/fiat/providers/platformPayPaintGate.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/next/Checkout.d.ts +2 -2
- package/dist/src/fiat/providers/stripe/next/Checkout.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/stripeCheckoutTerms.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/useStripeCheckout.d.ts +5 -2
- package/dist/src/fiat/providers/stripe/next/useStripeCheckout.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/useStripeExit.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/useStripeFunnel.d.ts +2 -2
- package/dist/src/fiat/providers/stripe/next/useStripeFunnel.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/useStripePayment.d.ts +1 -1
- package/dist/src/fiat/providers/stripe/stripeApplePaySelection.d.ts +9 -2
- package/dist/src/fiat/providers/stripe/stripeApplePaySelection.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeCheckout.d.ts +1 -1
- package/dist/src/fiat/providers/stripe/stripeKycInfo.d.ts +1 -1
- package/dist/src/fiat/providers/stripe/stripeOnramp.d.ts +15 -4
- package/dist/src/fiat/providers/stripe/stripeOnramp.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripePayment.d.ts +2 -0
- package/dist/src/fiat/providers/stripe/stripePayment.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/{stripeApplePayButton.d.ts → stripePlatformPayButton.d.ts} +4 -4
- package/dist/src/fiat/providers/stripe/stripePlatformPayButton.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/stripePlatformPayReady.d.ts +18 -0
- package/dist/src/fiat/providers/stripe/stripePlatformPayReady.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/stripeSeamlessSignIn.d.ts +1 -1
- package/dist/src/fiat/providers/stripe/useCreateStripeAccountWithExistingUserData.d.ts +5 -4
- package/dist/src/fiat/providers/stripe/useCreateStripeAccountWithExistingUserData.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/useStripeKycFailover.d.ts +1 -1
- package/dist/src/fiat/providers/stripe/useStripeKycFailover.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/useStripeOnrampClient.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/useStripePayButton.d.ts +5 -5
- package/dist/src/fiat/providers/stripe/useStripePayButton.d.ts.map +1 -1
- package/dist/src/fiat/providers/sumsub/SumsubNativeKycSurface.d.ts.map +1 -1
- package/dist/src/fiat/providers/sumsub/sumsubNativeLaunch.d.ts.map +1 -1
- package/dist/src/fiat/providers/sumsub/sumsubSdkLogs.d.ts +11 -0
- package/dist/src/fiat/providers/sumsub/sumsubSdkLogs.d.ts.map +1 -0
- package/dist/src/fiat/providers/transak/TransakApplePayFrame.d.ts +17 -0
- package/dist/src/fiat/providers/transak/TransakApplePayFrame.d.ts.map +1 -0
- package/dist/src/fiat/providers/transak/TransakApplePaySurface.d.ts +6 -0
- package/dist/src/fiat/providers/transak/TransakApplePaySurface.d.ts.map +1 -1
- package/dist/src/fiat/providers/transak/next/Capture.d.ts +15 -0
- package/dist/src/fiat/providers/transak/next/Capture.d.ts.map +1 -0
- package/dist/src/fiat/providers/transak/next/Checkout.d.ts +25 -0
- package/dist/src/fiat/providers/transak/next/Checkout.d.ts.map +1 -0
- package/dist/src/fiat/providers/transak/next/KycForm.d.ts +22 -0
- package/dist/src/fiat/providers/transak/next/KycForm.d.ts.map +1 -0
- package/dist/src/fiat/providers/transak/next/checkoutRules.d.ts +32 -0
- package/dist/src/fiat/providers/transak/next/checkoutRules.d.ts.map +1 -0
- package/dist/src/fiat/providers/transak/next/index.d.ts +4 -0
- package/dist/src/fiat/providers/transak/next/index.d.ts.map +1 -0
- package/dist/src/fiat/providers/transak/next/prefetch.d.ts +25 -0
- package/dist/src/fiat/providers/transak/next/prefetch.d.ts.map +1 -0
- package/dist/src/fiat/providers/transak/next/useTransakCheckout.d.ts +49 -0
- package/dist/src/fiat/providers/transak/next/useTransakCheckout.d.ts.map +1 -0
- package/dist/src/fiat/settlement/depositSettlement.d.ts.map +1 -1
- package/dist/src/fiat/surface/SurfaceSlot.d.ts +1 -1
- package/dist/src/fiat/surface/SurfaceSlot.d.ts.map +1 -1
- package/dist/src/fiat/surface/actionSlot.d.ts +2 -2
- package/dist/src/fiat/surface/actionSlot.d.ts.map +1 -1
- package/dist/src/fiat/surface/stepSurface.d.ts +4 -1
- package/dist/src/fiat/surface/stepSurface.d.ts.map +1 -1
- package/dist/src/fiat/surface/useFailureAnnouncements.d.ts +3 -2
- package/dist/src/fiat/surface/useFailureAnnouncements.d.ts.map +1 -1
- package/dist/src/fiat/surface/useSurfaceAttempt.d.ts +5 -3
- package/dist/src/fiat/surface/useSurfaceAttempt.d.ts.map +1 -1
- package/dist/src/fiat/useProviderCheckout.d.ts +20 -3
- package/dist/src/fiat/useProviderCheckout.d.ts.map +1 -1
- package/dist/src/flow/CryptoDepositStep.d.ts +3 -1
- package/dist/src/flow/CryptoDepositStep.d.ts.map +1 -1
- package/dist/src/flow/DepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/DepositAssetPicker.d.ts.map +1 -1
- package/dist/src/flow/DepositFlowContent.d.ts +11 -8
- package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
- package/dist/src/flow/DimLayer.d.ts +1 -1
- package/dist/src/flow/DimLayer.d.ts.map +1 -1
- package/dist/src/flow/Drawer.d.ts +1 -1
- package/dist/src/flow/Drawer.d.ts.map +1 -1
- package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/FiatRegionBlockedStep.d.ts +2 -1
- package/dist/src/flow/FiatRegionBlockedStep.d.ts.map +1 -1
- package/dist/src/flow/FiatRegionPendingStep.d.ts +3 -1
- package/dist/src/flow/FiatRegionPendingStep.d.ts.map +1 -1
- package/dist/src/flow/FlowPage.d.ts +7 -2
- package/dist/src/flow/FlowPage.d.ts.map +1 -1
- package/dist/src/flow/FlowSheet.d.ts +3 -1
- package/dist/src/flow/FlowSheet.d.ts.map +1 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts +1 -0
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/PaymentMethodPickerSheet.d.ts +4 -1
- package/dist/src/flow/PaymentMethodPickerSheet.d.ts.map +1 -1
- package/dist/src/flow/PaymentMethodRows.d.ts +2 -1
- package/dist/src/flow/PaymentMethodRows.d.ts.map +1 -1
- package/dist/src/flow/SheetMaterial.d.ts.map +1 -1
- package/dist/src/flow/TakeoverPages.d.ts +7 -1
- package/dist/src/flow/TakeoverPages.d.ts.map +1 -1
- package/dist/src/flow/WalletDepositStep.d.ts.map +1 -1
- package/dist/src/flow/WithdrawalFlowContent.d.ts.map +1 -1
- package/dist/src/flow/cryptoTokenPick.d.ts +1 -1
- package/dist/src/flow/cryptoTokenPick.d.ts.map +1 -1
- package/dist/src/flow/depositFlowConfig.d.ts +12 -0
- package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
- package/dist/src/flow/depositMethods.d.ts.map +1 -1
- package/dist/src/flow/depositRailCopy.d.ts.map +1 -1
- package/dist/src/flow/fiatStepScreens.d.ts +10 -9
- package/dist/src/flow/fiatStepScreens.d.ts.map +1 -1
- package/dist/src/flow/fiatSubmitRenderer.d.ts +9 -7
- package/dist/src/flow/fiatSubmitRenderer.d.ts.map +1 -1
- package/dist/src/flow/flowBack.d.ts +29 -0
- package/dist/src/flow/flowBack.d.ts.map +1 -0
- package/dist/src/flow/moonPayHostedMethodRows.d.ts +3 -1
- package/dist/src/flow/moonPayHostedMethodRows.d.ts.map +1 -1
- package/dist/src/flow/pageKey.d.ts +4 -0
- package/dist/src/flow/pageKey.d.ts.map +1 -0
- package/dist/src/flow/pageTurn.d.ts +13 -0
- package/dist/src/flow/pageTurn.d.ts.map +1 -1
- package/dist/src/flow/quickAmounts.d.ts.map +1 -1
- package/dist/src/flow/renderFiatFlowScreen.d.ts +11 -7
- package/dist/src/flow/renderFiatFlowScreen.d.ts.map +1 -1
- package/dist/src/flow/screenBundles.d.ts +17 -5
- package/dist/src/flow/screenBundles.d.ts.map +1 -1
- package/dist/src/flow/swappedLongtail.d.ts +3 -1
- package/dist/src/flow/swappedLongtail.d.ts.map +1 -1
- package/dist/src/flow/swappedMethodRows.d.ts +4 -3
- package/dist/src/flow/swappedMethodRows.d.ts.map +1 -1
- package/dist/src/flow/useFunkitDepositWallet.d.ts +8 -0
- package/dist/src/flow/useFunkitDepositWallet.d.ts.map +1 -0
- package/dist/src/flow/useMoonPayHostedMethods.d.ts.map +1 -1
- package/dist/src/flow/walletMethods.d.ts +32 -0
- package/dist/src/flow/walletMethods.d.ts.map +1 -0
- package/dist/src/flow/withdrawalFlowConfig.d.ts +6 -1
- package/dist/src/flow/withdrawalFlowConfig.d.ts.map +1 -1
- package/dist/src/flow/withdrawalStepView.d.ts +14 -0
- package/dist/src/flow/withdrawalStepView.d.ts.map +1 -0
- package/dist/src/hooks/track/StepViewContext.d.ts +37 -0
- package/dist/src/hooks/track/StepViewContext.d.ts.map +1 -0
- package/dist/src/hooks/track/StepViewProvider.d.ts +8 -0
- package/dist/src/hooks/track/StepViewProvider.d.ts.map +1 -0
- package/dist/src/hooks/track/events.d.ts +130 -12
- package/dist/src/hooks/track/events.d.ts.map +1 -1
- package/dist/src/hooks/track/paymentQuoteConfirmer.d.ts +1 -1
- package/dist/src/hooks/track/paymentQuoteConfirmer.d.ts.map +1 -1
- package/dist/src/hooks/track/paymentRecovery.d.ts +15 -0
- package/dist/src/hooks/track/paymentRecovery.d.ts.map +1 -0
- package/dist/src/hooks/track/providerQuoteForAnalytics.d.ts +11 -0
- package/dist/src/hooks/track/providerQuoteForAnalytics.d.ts.map +1 -0
- package/dist/src/hooks/track/stepViewHistory.d.ts +32 -0
- package/dist/src/hooks/track/stepViewHistory.d.ts.map +1 -0
- package/dist/src/hooks/track/useCryptoDepositTransferEvents.d.ts +23 -0
- package/dist/src/hooks/track/useCryptoDepositTransferEvents.d.ts.map +1 -0
- package/dist/src/hooks/track/useDelegatedStepView.d.ts +3 -0
- package/dist/src/hooks/track/useDelegatedStepView.d.ts.map +1 -0
- package/dist/src/hooks/track/useDepositFlowEvents.d.ts +6 -2
- package/dist/src/hooks/track/useDepositFlowEvents.d.ts.map +1 -1
- package/dist/src/hooks/track/usePaymentRecoveryEvents.d.ts +15 -0
- package/dist/src/hooks/track/usePaymentRecoveryEvents.d.ts.map +1 -0
- package/dist/src/hooks/track/useProviderCheckoutEvents.d.ts +7 -4
- package/dist/src/hooks/track/useProviderCheckoutEvents.d.ts.map +1 -1
- package/dist/src/hooks/track/useTrackFiatDepositQuoteEvents.d.ts +5 -4
- package/dist/src/hooks/track/useTrackFiatDepositQuoteEvents.d.ts.map +1 -1
- package/dist/src/hooks/track/useTrackFiatPaymentEvents.d.ts +10 -2
- package/dist/src/hooks/track/useTrackFiatPaymentEvents.d.ts.map +1 -1
- package/dist/src/hooks/track/useTrackSessionAuthEvents.d.ts +4 -3
- package/dist/src/hooks/track/useTrackSessionAuthEvents.d.ts.map +1 -1
- package/dist/src/hooks/track/useTrackedNav.d.ts +4 -0
- package/dist/src/hooks/track/useTrackedNav.d.ts.map +1 -0
- package/dist/src/hooks/useDelayedSpinner.d.ts +4 -1
- package/dist/src/hooks/useDelayedSpinner.d.ts.map +1 -1
- package/dist/src/hooks/useNestedSheet.d.ts +14 -1
- package/dist/src/hooks/useNestedSheet.d.ts.map +1 -1
- package/dist/src/icons/EyeIcon.d.ts +7 -0
- package/dist/src/icons/EyeIcon.d.ts.map +1 -0
- package/dist/src/icons/KycIdentityIcon.d.ts +1 -1
- package/dist/src/icons/PaymentBrandIcons.d.ts +4 -0
- package/dist/src/icons/PaymentBrandIcons.d.ts.map +1 -1
- package/dist/src/icons/TokenChainIcon.d.ts +1 -1
- package/dist/src/icons/kycArtwork.d.ts +3 -3
- package/dist/src/icons/kycArtwork.d.ts.map +1 -1
- package/dist/src/preview/fixtures/alchemyPayCheckout.d.ts +3 -1
- package/dist/src/preview/fixtures/alchemyPayCheckout.d.ts.map +1 -1
- package/dist/src/preview/fixtures/moonPayChallenge.d.ts +7 -2
- package/dist/src/preview/fixtures/moonPayChallenge.d.ts.map +1 -1
- package/dist/src/preview/fixtures/transakCheckout.d.ts +17 -0
- package/dist/src/preview/fixtures/transakCheckout.d.ts.map +1 -0
- package/dist/src/preview/flowPreview.d.ts +11 -2
- package/dist/src/preview/flowPreview.d.ts.map +1 -1
- package/dist/src/preview/replay/ReplayMoonPay.d.ts +1 -1
- package/dist/src/preview/replay/ReplayMoonPay.d.ts.map +1 -1
- package/dist/src/preview/scenarioCatalog.d.ts +60 -0
- package/dist/src/preview/scenarioCatalog.d.ts.map +1 -1
- package/dist/src/preview/scenarios.d.ts.map +1 -1
- package/dist/src/providers/useFrozenIdentity.d.ts +1 -1
- package/dist/src/screens/FeeDetailsScreen.d.ts +1 -1
- package/dist/src/screens/LockedTransferCryptoScreen.d.ts.map +1 -1
- package/dist/src/screens/QrCodeScreen.d.ts.map +1 -1
- package/dist/src/screens/SelectAvailableChainScreen.d.ts.map +1 -1
- package/dist/src/screens/SelectChainScreen.d.ts +1 -0
- package/dist/src/screens/SelectChainScreen.d.ts.map +1 -1
- package/dist/src/screens/SelectMethodScreen.d.ts +1 -0
- package/dist/src/screens/SelectMethodScreen.d.ts.map +1 -1
- package/dist/src/screens/SelectReceiveTokenAndChainScreen.d.ts.map +1 -1
- package/dist/src/screens/SelectReceiveTokenScreen.d.ts +2 -1
- package/dist/src/screens/SelectReceiveTokenScreen.d.ts.map +1 -1
- package/dist/src/screens/TokenAndChainPickerScreen.d.ts +3 -1
- package/dist/src/screens/TokenAndChainPickerScreen.d.ts.map +1 -1
- package/dist/src/screens/TransferCryptoScreen.d.ts.map +1 -1
- package/dist/src/screens/WithdrawCryptoSteps.d.ts.map +1 -1
- package/dist/src/statsig/useStatsigReady.d.ts +1 -1
- package/dist/src/swapped/SwappedScreen.d.ts +1 -1
- package/dist/src/swapped/SwappedScreen.d.ts.map +1 -1
- package/dist/src/swapped/useSwappedBuyingCrypto.d.ts +1 -1
- package/dist/src/theme/inputTextStyle.d.ts +1 -1
- package/dist/src/theme/legibleBrandColor.d.ts +2 -2
- package/dist/src/transfer/fops.d.ts +5 -1
- package/dist/src/transfer/fops.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useFops.d.ts.map +1 -1
- package/dist/src/utils/assetGrid.d.ts +1 -1
- package/dist/src/utils/colorMotion.d.ts +5 -5
- package/dist/src/utils/customers.d.ts +1 -0
- package/dist/src/utils/customers.d.ts.map +1 -1
- package/dist/src/utils/motion.d.ts +1 -1
- package/package.json +4 -4
- package/dist/chunk-NXDFUNCP.js.map +0 -7
- package/dist/chunk-QCVNSXNO.js.map +0 -7
- package/dist/src/fiat/payment/applePayAttempt.d.ts +0 -31
- package/dist/src/fiat/payment/applePayAttempt.d.ts.map +0 -1
- package/dist/src/fiat/providers/applePayButtonMetrics.d.ts.map +0 -1
- package/dist/src/fiat/providers/applePayPaintGate.d.ts.map +0 -1
- package/dist/src/fiat/providers/moonpay/moonpayApplePayPainted.d.ts.map +0 -1
- package/dist/src/fiat/providers/moonpay/moonpayApplePayStyle.d.ts +0 -7
- package/dist/src/fiat/providers/moonpay/moonpayApplePayStyle.d.ts.map +0 -1
- package/dist/src/fiat/providers/moonpay/reask.d.ts +0 -5
- package/dist/src/fiat/providers/moonpay/reask.d.ts.map +0 -1
- package/dist/src/fiat/providers/moonpay/sdk/ApplePayButton.d.ts.map +0 -1
- package/dist/src/fiat/providers/moonpay/sdk/ApplePaySlot.d.ts.map +0 -1
- package/dist/src/fiat/providers/stripe/stripeApplePayButton.d.ts.map +0 -1
- package/dist/src/fiat/providers/stripe/stripeApplePayReady.d.ts +0 -18
- package/dist/src/fiat/providers/stripe/stripeApplePayReady.d.ts.map +0 -1
- /package/dist/{chunk-7RKYLSYP.js.map → chunk-LJHYIZUN.js.map} +0 -0
package/dist/preview.js
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
PERSONA_PRIVACY_POLICY_URL,
|
|
8
8
|
TRANSACTIONS_PER_MONTH,
|
|
9
9
|
openingStep
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ACECDE3B.js";
|
|
11
11
|
import {
|
|
12
12
|
logger
|
|
13
13
|
} from "./chunk-2HFFVYAZ.js";
|
|
@@ -584,6 +584,26 @@ var PREVIEW_SCENARIO_CATALOG = {
|
|
|
584
584
|
"fiat/kyc/FiatKycIntroScreen.tsx"
|
|
585
585
|
]
|
|
586
586
|
},
|
|
587
|
+
"kyc.moonpay-check.hosted": {
|
|
588
|
+
title: "KYC: MoonPay's hosted check, its intro",
|
|
589
|
+
flow: "deposit",
|
|
590
|
+
requires: "fiatRail",
|
|
591
|
+
touches: [
|
|
592
|
+
"fiat/providers/moonpay/fullCheckout/checkoutScreens.tsx",
|
|
593
|
+
"fiat/providers/moonpay/fullCheckout/kycChallenge.ts",
|
|
594
|
+
"fiat/kyc/FiatKycIntroScreen.tsx"
|
|
595
|
+
]
|
|
596
|
+
},
|
|
597
|
+
"kyc.moonpay-check.hostedFrame": {
|
|
598
|
+
title: "KYC: MoonPay's hosted check, its frame open",
|
|
599
|
+
flow: "deposit",
|
|
600
|
+
requires: "fiatRail",
|
|
601
|
+
touches: [
|
|
602
|
+
"fiat/providers/moonpay/fullCheckout/Checkout.tsx",
|
|
603
|
+
"fiat/providers/moonpay/fullCheckout/kycChallenge.ts",
|
|
604
|
+
"fiat/providers/moonpay/sdk/Challenge.tsx"
|
|
605
|
+
]
|
|
606
|
+
},
|
|
587
607
|
"fiat.alchemypay.estimate": {
|
|
588
608
|
title: "AlchemyPay: the estimate, with Continue to place the order",
|
|
589
609
|
flow: "deposit",
|
|
@@ -602,6 +622,15 @@ var PREVIEW_SCENARIO_CATALOG = {
|
|
|
602
622
|
"fiat/providers/alchemypay/Checkout.tsx"
|
|
603
623
|
]
|
|
604
624
|
},
|
|
625
|
+
"fiat.alchemypay.confirming": {
|
|
626
|
+
title: 'AlchemyPay: Apple Pay authorized, the order is read under "Confirming your payment"',
|
|
627
|
+
flow: "deposit",
|
|
628
|
+
requires: "fiatRail",
|
|
629
|
+
touches: [
|
|
630
|
+
"fiat/providers/alchemypay/useAlchemyPayCheckout.ts",
|
|
631
|
+
"fiat/providers/alchemypay/Checkout.tsx"
|
|
632
|
+
]
|
|
633
|
+
},
|
|
605
634
|
"fiat.alchemypay.unpaid": {
|
|
606
635
|
title: "AlchemyPay: Apple's sheet closed unpaid, payment-failed sheet",
|
|
607
636
|
flow: "deposit",
|
|
@@ -611,6 +640,61 @@ var PREVIEW_SCENARIO_CATALOG = {
|
|
|
611
640
|
"fiat/providers/alchemypay/Checkout.tsx"
|
|
612
641
|
]
|
|
613
642
|
},
|
|
643
|
+
"fiat.transak.kycConsent": {
|
|
644
|
+
title: "Transak: Fun's KYC consent before Transak's form",
|
|
645
|
+
flow: "deposit",
|
|
646
|
+
requires: "fiatRail",
|
|
647
|
+
touches: [
|
|
648
|
+
"fiat/providers/transak/next/Checkout.tsx",
|
|
649
|
+
"fiat/providers/transak/next/useTransakCheckout.ts"
|
|
650
|
+
]
|
|
651
|
+
},
|
|
652
|
+
"fiat.transak.kyc": {
|
|
653
|
+
title: "Transak: the KYC form, with the purpose of usage",
|
|
654
|
+
flow: "deposit",
|
|
655
|
+
requires: "fiatRail",
|
|
656
|
+
touches: [
|
|
657
|
+
"fiat/providers/transak/next/Checkout.tsx",
|
|
658
|
+
"fiat/providers/transak/next/useTransakCheckout.ts",
|
|
659
|
+
"fiat/providers/transak/next/KycForm.tsx"
|
|
660
|
+
]
|
|
661
|
+
},
|
|
662
|
+
"fiat.transak.review": {
|
|
663
|
+
title: "Transak: Transak's KYC review, read as on hold once its poll ends",
|
|
664
|
+
flow: "deposit",
|
|
665
|
+
requires: "fiatRail",
|
|
666
|
+
touches: [
|
|
667
|
+
"fiat/providers/transak/next/Checkout.tsx",
|
|
668
|
+
"fiat/providers/transak/next/useTransakCheckout.ts"
|
|
669
|
+
]
|
|
670
|
+
},
|
|
671
|
+
"fiat.transak.priced": {
|
|
672
|
+
title: "Transak: Transak's price, with Continue to pay",
|
|
673
|
+
flow: "deposit",
|
|
674
|
+
requires: "fiatRail",
|
|
675
|
+
touches: [
|
|
676
|
+
"fiat/providers/transak/next/Checkout.tsx",
|
|
677
|
+
"fiat/providers/transak/next/useTransakCheckout.ts"
|
|
678
|
+
]
|
|
679
|
+
},
|
|
680
|
+
"fiat.transak.pay": {
|
|
681
|
+
title: "Transak: its Apple Pay button in the amount screen's action slot",
|
|
682
|
+
flow: "deposit",
|
|
683
|
+
requires: "fiatRail",
|
|
684
|
+
touches: [
|
|
685
|
+
"fiat/providers/transak/TransakApplePaySurface.tsx",
|
|
686
|
+
"fiat/providers/transak/next/Checkout.tsx"
|
|
687
|
+
]
|
|
688
|
+
},
|
|
689
|
+
"fiat.transak.unpaid": {
|
|
690
|
+
title: "Transak: the payment failed before Apple Pay, payment-failed sheet",
|
|
691
|
+
flow: "deposit",
|
|
692
|
+
requires: "fiatRail",
|
|
693
|
+
touches: [
|
|
694
|
+
"fiat/providers/transak/next/useTransakCheckout.ts",
|
|
695
|
+
"fiat/providers/transak/next/Checkout.tsx"
|
|
696
|
+
]
|
|
697
|
+
},
|
|
614
698
|
"fiat.stripe.accountEmail": {
|
|
615
699
|
title: "Stripe: asks for the Link account email of an Apple relay login",
|
|
616
700
|
flow: "deposit",
|
|
@@ -942,6 +1026,16 @@ var PREVIEW_SCENARIO_CATALOG = {
|
|
|
942
1026
|
"fiat/processing/FailoverPrompt.tsx"
|
|
943
1027
|
]
|
|
944
1028
|
},
|
|
1029
|
+
"fiat.googlePayNotSetUp": {
|
|
1030
|
+
title: "Google Pay isn't set up: Coinbase refused it on Android",
|
|
1031
|
+
flow: "deposit",
|
|
1032
|
+
requires: "fiatRail",
|
|
1033
|
+
touches: [
|
|
1034
|
+
"fiat/payment/failoverKind.ts",
|
|
1035
|
+
"fiat/payment/failoverPrompt.ts",
|
|
1036
|
+
"fiat/providers/coinbase/coinbaseCardRefusal.ts"
|
|
1037
|
+
]
|
|
1038
|
+
},
|
|
945
1039
|
"fiat.cardDeclinedSwitch": {
|
|
946
1040
|
title: "Card declined at MoonPay, another partner offered",
|
|
947
1041
|
flow: "deposit",
|
|
@@ -1571,6 +1665,24 @@ function alchemyPayPreviewState(start, step) {
|
|
|
1571
1665
|
environment: "sandbox"
|
|
1572
1666
|
})
|
|
1573
1667
|
];
|
|
1668
|
+
const toConfirming = [
|
|
1669
|
+
...toButton,
|
|
1670
|
+
() => ({ type: "PAGE_OPENED", orderId: ORDER_ID }),
|
|
1671
|
+
() => ({
|
|
1672
|
+
type: "PAGE_AUTHORIZED",
|
|
1673
|
+
orderId: ORDER_ID,
|
|
1674
|
+
at: Date.now()
|
|
1675
|
+
}),
|
|
1676
|
+
answer({
|
|
1677
|
+
next: "orderPending",
|
|
1678
|
+
orderId: ORDER_ID,
|
|
1679
|
+
retryAfterMs: 10 * 6e4,
|
|
1680
|
+
order: {
|
|
1681
|
+
state: { kind: "ORDER", phase: "CREATED", status: "AWAITING_PAYMENT" },
|
|
1682
|
+
transitions: []
|
|
1683
|
+
}
|
|
1684
|
+
})
|
|
1685
|
+
];
|
|
1574
1686
|
const toUnpaid = [
|
|
1575
1687
|
...toButton,
|
|
1576
1688
|
() => ({ type: "PAGE_OPENED", orderId: ORDER_ID }),
|
|
@@ -1586,13 +1698,109 @@ function alchemyPayPreviewState(start, step) {
|
|
|
1586
1698
|
}),
|
|
1587
1699
|
unpaidRead
|
|
1588
1700
|
];
|
|
1589
|
-
const steps = {
|
|
1701
|
+
const steps = {
|
|
1702
|
+
estimate: toEstimate,
|
|
1703
|
+
button: toButton,
|
|
1704
|
+
confirming: toConfirming,
|
|
1705
|
+
unpaid: toUnpaid
|
|
1706
|
+
}[step];
|
|
1590
1707
|
return steps.reduce(
|
|
1591
1708
|
(state, event) => alchemyPayCheckoutReducer(state, event(state)),
|
|
1592
1709
|
start
|
|
1593
1710
|
);
|
|
1594
1711
|
}
|
|
1595
1712
|
|
|
1713
|
+
// src/preview/fixtures/transakCheckout.ts
|
|
1714
|
+
import {
|
|
1715
|
+
transakCheckoutReducer
|
|
1716
|
+
} from "@funkit/connect-core";
|
|
1717
|
+
var ORDER_ID2 = "tko_preview";
|
|
1718
|
+
function transakPreviewState(start, step) {
|
|
1719
|
+
const price = {
|
|
1720
|
+
total: start.checkout.amount,
|
|
1721
|
+
fees: [
|
|
1722
|
+
{ id: "provider_fee", labelFallback: "Transak fee", amount: "2.99" }
|
|
1723
|
+
],
|
|
1724
|
+
cryptoAmount: (Number(start.checkout.amount.amount) - 2.99).toFixed(2)
|
|
1725
|
+
};
|
|
1726
|
+
const responses = {
|
|
1727
|
+
kycConsent: {
|
|
1728
|
+
next: "consent",
|
|
1729
|
+
documents: [
|
|
1730
|
+
{
|
|
1731
|
+
id: "FUN_KYC_CONSENT",
|
|
1732
|
+
kind: "FUN_KYC_COLLECTION",
|
|
1733
|
+
stage: "KYC",
|
|
1734
|
+
version: "fun-kyc-consent-2026-09-11",
|
|
1735
|
+
contentDigest: "da31f2467deb996476b131116508ea2a00220765e658a79abc6d2bd44337504a",
|
|
1736
|
+
links: [
|
|
1737
|
+
{ label: "Fun.xyz Privacy Policy", url: "https://fun.xyz/privacy" }
|
|
1738
|
+
]
|
|
1739
|
+
}
|
|
1740
|
+
]
|
|
1741
|
+
},
|
|
1742
|
+
kyc: {
|
|
1743
|
+
next: "kyc",
|
|
1744
|
+
fields: [
|
|
1745
|
+
{
|
|
1746
|
+
id: "PHONE_NUMBER",
|
|
1747
|
+
type: "TEXT",
|
|
1748
|
+
labelFallback: "Phone number",
|
|
1749
|
+
required: true
|
|
1750
|
+
},
|
|
1751
|
+
{
|
|
1752
|
+
id: "QUESTIONNAIRE_RESPONSE:transak:purpose_of_usage",
|
|
1753
|
+
type: "SELECT",
|
|
1754
|
+
labelFallback: "What will you use crypto for?",
|
|
1755
|
+
required: true,
|
|
1756
|
+
options: [
|
|
1757
|
+
{ id: "BUYING_NFTS", labelFallback: "Buying NFTs" },
|
|
1758
|
+
{ id: "INVESTING", labelFallback: "Investing" }
|
|
1759
|
+
]
|
|
1760
|
+
}
|
|
1761
|
+
]
|
|
1762
|
+
},
|
|
1763
|
+
review: { next: "wait", retryAfterMs: 36e5 },
|
|
1764
|
+
priced: {
|
|
1765
|
+
next: "paymentSession",
|
|
1766
|
+
orderId: ORDER_ID2,
|
|
1767
|
+
price
|
|
1768
|
+
}
|
|
1769
|
+
};
|
|
1770
|
+
const answer = (response) => (state) => {
|
|
1771
|
+
const { call } = state;
|
|
1772
|
+
if (call === void 0) {
|
|
1773
|
+
throw new Error("preview: no request to answer");
|
|
1774
|
+
}
|
|
1775
|
+
return { type: "STEP", call, response };
|
|
1776
|
+
};
|
|
1777
|
+
const toPay = [
|
|
1778
|
+
answer(responses.priced),
|
|
1779
|
+
answer({
|
|
1780
|
+
next: "pay",
|
|
1781
|
+
orderId: ORDER_ID2,
|
|
1782
|
+
price,
|
|
1783
|
+
session: { sessionId: "sess_preview", environment: "STAGING" },
|
|
1784
|
+
expiresAt: "2099-01-01T00:00:00.000Z"
|
|
1785
|
+
})
|
|
1786
|
+
];
|
|
1787
|
+
const steps = {
|
|
1788
|
+
kycConsent: [answer(responses.kycConsent)],
|
|
1789
|
+
kyc: [answer(responses.kyc)],
|
|
1790
|
+
review: [answer(responses.review)],
|
|
1791
|
+
priced: [answer(responses.priced)],
|
|
1792
|
+
pay: toPay,
|
|
1793
|
+
unpaid: [
|
|
1794
|
+
...toPay,
|
|
1795
|
+
() => ({ type: "PAY_FAILED", orderId: ORDER_ID2, code: "PREVIEW" })
|
|
1796
|
+
]
|
|
1797
|
+
};
|
|
1798
|
+
return steps[step].reduce(
|
|
1799
|
+
(state, event) => transakCheckoutReducer(state, event(state)),
|
|
1800
|
+
step === "priced" ? { ...start, continued: false } : start
|
|
1801
|
+
);
|
|
1802
|
+
}
|
|
1803
|
+
|
|
1596
1804
|
// src/preview/fixtures/stripeCheckout.ts
|
|
1597
1805
|
import { stripeCheckoutReducer } from "@funkit/connect-core";
|
|
1598
1806
|
function stripeAccountEmailPreviewState(start, error) {
|
|
@@ -1624,6 +1832,7 @@ function stripeAccountEmailPreviewState(start, error) {
|
|
|
1624
1832
|
import {
|
|
1625
1833
|
moonPayCheckoutReducer
|
|
1626
1834
|
} from "@funkit/connect-core";
|
|
1835
|
+
var PREVIEW_KYC_CHALLENGE_URL = "https://buy-sandbox.moonpay.com/challenge?challengeToken=preview";
|
|
1627
1836
|
var SESSION_TOKEN = "preview_session";
|
|
1628
1837
|
function moonPayChallengeState(start, card) {
|
|
1629
1838
|
const quoteInput = {
|
|
@@ -1642,7 +1851,7 @@ function moonPayChallengeState(start, card) {
|
|
|
1642
1851
|
challengeUrl: "https://buy-sandbox.moonpay.com/challenge"
|
|
1643
1852
|
}
|
|
1644
1853
|
};
|
|
1645
|
-
const
|
|
1854
|
+
const connected = [
|
|
1646
1855
|
(state) => ({
|
|
1647
1856
|
type: "STEP",
|
|
1648
1857
|
call: stepCall(state),
|
|
@@ -1652,7 +1861,21 @@ function moonPayChallengeState(start, card) {
|
|
|
1652
1861
|
type: "CONNECTED",
|
|
1653
1862
|
sessionToken: SESSION_TOKEN,
|
|
1654
1863
|
credentials: { customerId: "preview", accessToken: "preview" }
|
|
1655
|
-
})
|
|
1864
|
+
})
|
|
1865
|
+
];
|
|
1866
|
+
const events = card === "hosted" ? [
|
|
1867
|
+
...connected,
|
|
1868
|
+
(state) => ({
|
|
1869
|
+
type: "STEP",
|
|
1870
|
+
call: stepCall(state),
|
|
1871
|
+
response: {
|
|
1872
|
+
next: "challenge",
|
|
1873
|
+
url: PREVIEW_KYC_CHALLENGE_URL,
|
|
1874
|
+
expiresAt: null
|
|
1875
|
+
}
|
|
1876
|
+
})
|
|
1877
|
+
] : [
|
|
1878
|
+
...connected,
|
|
1656
1879
|
(state) => ({
|
|
1657
1880
|
type: "STEP",
|
|
1658
1881
|
call: stepCall(state),
|
|
@@ -1660,7 +1883,9 @@ function moonPayChallengeState(start, card) {
|
|
|
1660
1883
|
}),
|
|
1661
1884
|
() => challenged,
|
|
1662
1885
|
...card === "again" ? [
|
|
1663
|
-
() => ({
|
|
1886
|
+
() => ({
|
|
1887
|
+
type: "QUOTE_CHALLENGE_PASSED"
|
|
1888
|
+
}),
|
|
1664
1889
|
() => challenged
|
|
1665
1890
|
] : []
|
|
1666
1891
|
];
|
|
@@ -2049,6 +2274,16 @@ var ALCHEMYPAY_HANDOFF = {
|
|
|
2049
2274
|
transitions: [],
|
|
2050
2275
|
handoff: { provider: "ALCHEMYPAY" }
|
|
2051
2276
|
};
|
|
2277
|
+
var TRANSAK_HANDOFF = {
|
|
2278
|
+
...pricedAt("TRANSAK", "5000")(AMOUNT2),
|
|
2279
|
+
transitions: [],
|
|
2280
|
+
handoff: { provider: "TRANSAK" }
|
|
2281
|
+
};
|
|
2282
|
+
var COINBASE_HANDOFF = {
|
|
2283
|
+
...pricedAt("COINBASE", "5000")(AMOUNT2),
|
|
2284
|
+
transitions: [],
|
|
2285
|
+
handoff: { provider: "COINBASE" }
|
|
2286
|
+
};
|
|
2052
2287
|
var STRIPE_HANDOFF = {
|
|
2053
2288
|
...pricedAt("STRIPE", "5000")(AMOUNT2),
|
|
2054
2289
|
transitions: [],
|
|
@@ -2072,6 +2307,13 @@ var alchemyPay = (step) => fiat(
|
|
|
2072
2307
|
},
|
|
2073
2308
|
{ quote: ALCHEMYPAY_HANDOFF }
|
|
2074
2309
|
);
|
|
2310
|
+
var transak = (step) => fiat(
|
|
2311
|
+
{
|
|
2312
|
+
handoffProviders: ["TRANSAK"],
|
|
2313
|
+
transakCheckout: (start) => transakPreviewState(start, step)
|
|
2314
|
+
},
|
|
2315
|
+
{ quote: TRANSAK_HANDOFF }
|
|
2316
|
+
);
|
|
2075
2317
|
var MOONPAY_HOSTED_CHECK = {
|
|
2076
2318
|
state: {
|
|
2077
2319
|
kind: "KYC",
|
|
@@ -2558,9 +2800,28 @@ var DEFINITIONS = {
|
|
|
2558
2800
|
{ moonPayChallenge: (start) => moonPayChallengeState(start, "intro") },
|
|
2559
2801
|
{ quote: MOONPAY_HANDOFF }
|
|
2560
2802
|
),
|
|
2803
|
+
// The backend's hosted KYC challenge (`/fiat/next` `challenge`): its intro, then its frame open.
|
|
2804
|
+
"kyc.moonpay-check.hosted": fiat(
|
|
2805
|
+
{ moonPayChallenge: (start) => moonPayChallengeState(start, "hosted") },
|
|
2806
|
+
{ quote: MOONPAY_HANDOFF }
|
|
2807
|
+
),
|
|
2808
|
+
"kyc.moonpay-check.hostedFrame": fiat(
|
|
2809
|
+
{
|
|
2810
|
+
moonPayChallenge: (start) => moonPayChallengeState(start, "hosted"),
|
|
2811
|
+
moonPayKycChallengeUrl: PREVIEW_KYC_CHALLENGE_URL
|
|
2812
|
+
},
|
|
2813
|
+
{ quote: MOONPAY_HANDOFF }
|
|
2814
|
+
),
|
|
2561
2815
|
"fiat.alchemypay.estimate": alchemyPay("estimate"),
|
|
2562
2816
|
"fiat.alchemypay.button": alchemyPay("button"),
|
|
2817
|
+
"fiat.alchemypay.confirming": alchemyPay("confirming"),
|
|
2563
2818
|
"fiat.alchemypay.unpaid": alchemyPay("unpaid"),
|
|
2819
|
+
"fiat.transak.kycConsent": transak("kycConsent"),
|
|
2820
|
+
"fiat.transak.kyc": transak("kyc"),
|
|
2821
|
+
"fiat.transak.review": transak("review"),
|
|
2822
|
+
"fiat.transak.priced": transak("priced"),
|
|
2823
|
+
"fiat.transak.pay": transak("pay"),
|
|
2824
|
+
"fiat.transak.unpaid": transak("unpaid"),
|
|
2564
2825
|
"fiat.stripe.accountEmail": stripeAccountEmail(false),
|
|
2565
2826
|
"fiat.stripe.accountEmailRefused": stripeAccountEmail(true),
|
|
2566
2827
|
"kyc.moonpay-check.again": fiat(
|
|
@@ -2844,6 +3105,19 @@ var DEFINITIONS = {
|
|
|
2844
3105
|
},
|
|
2845
3106
|
{ quote: MOONPAY_HANDOFF }
|
|
2846
3107
|
),
|
|
3108
|
+
// Coinbase's Google Pay page refusing at once: Google Wallet holds no verified card, or the phone's
|
|
3109
|
+
// WebView can't run Google Pay. The seeded failure stands in for Coinbase's own checkout.
|
|
3110
|
+
"fiat.googlePayNotSetUp": fiat(
|
|
3111
|
+
{
|
|
3112
|
+
amount: AMOUNT2,
|
|
3113
|
+
handoffPaymentFailure: {
|
|
3114
|
+
provider: "COINBASE",
|
|
3115
|
+
code: "ERROR_CODE_GUEST_GOOGLE_PAY_NOT_SUPPORTED"
|
|
3116
|
+
},
|
|
3117
|
+
handoffProviders: []
|
|
3118
|
+
},
|
|
3119
|
+
{ quote: COINBASE_HANDOFF }
|
|
3120
|
+
),
|
|
2847
3121
|
// Coinbase's own checkout runs here too, so the sheet offers it as the next partner. The failure is
|
|
2848
3122
|
// seeded before the routing table loads, so open it with `fiatProviders=MOONPAY,COINBASE` for the
|
|
2849
3123
|
// host's order; the preview backend can't answer Coinbase's checkout past Continue.
|