@funkit/connect-rn 12.0.0 → 12.1.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 +101 -0
- package/README.md +6 -0
- package/dist/{chunk-UDEGXDMU.js → chunk-AICRSY7K.js} +86 -68
- package/dist/chunk-AICRSY7K.js.map +7 -0
- package/dist/{chunk-BC6N7CI3.js → chunk-GOFKXSDM.js} +249 -153
- package/dist/chunk-GOFKXSDM.js.map +7 -0
- package/dist/{chunk-UR3BDCRK.js → chunk-Q74I4SOP.js} +2 -2
- package/dist/clients/lighter.js +1 -1
- package/dist/clients/nado.js +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +44665 -41344
- package/dist/index.js.map +4 -4
- package/dist/preview.js +187 -13
- package/dist/preview.js.map +2 -2
- package/dist/src/fiat/common/FiatStepFailedScreen.d.ts +3 -1
- package/dist/src/fiat/common/FiatStepFailedScreen.d.ts.map +1 -1
- package/dist/src/fiat/common/stepDetails.d.ts +2 -0
- package/dist/src/fiat/common/stepDetails.d.ts.map +1 -1
- package/dist/src/fiat/contact/FiatContactScreen.d.ts +4 -1
- package/dist/src/fiat/contact/FiatContactScreen.d.ts.map +1 -1
- package/dist/src/fiat/form/FiatFormScreen.d.ts +4 -1
- package/dist/src/fiat/form/FiatFormScreen.d.ts.map +1 -1
- package/dist/src/fiat/kyc/analyticsKycSection.d.ts +21 -0
- package/dist/src/fiat/kyc/analyticsKycSection.d.ts.map +1 -0
- package/dist/src/fiat/kyc/formScreenProps.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycFieldValidators.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycForm.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycFormState.d.ts +8 -0
- package/dist/src/fiat/kyc/kycFormState.d.ts.map +1 -1
- package/dist/src/fiat/kyc/useKycFormFailure.d.ts.map +1 -1
- package/dist/src/fiat/kyc/useKycScreens.d.ts +4 -1
- package/dist/src/fiat/kyc/useKycScreens.d.ts.map +1 -1
- package/dist/src/fiat/otp/FiatOtpScreen.d.ts +4 -1
- package/dist/src/fiat/otp/FiatOtpScreen.d.ts.map +1 -1
- package/dist/src/fiat/otp/otpScreenProps.d.ts.map +1 -1
- package/dist/src/fiat/payment/failoverKind.d.ts +19 -1
- package/dist/src/fiat/payment/failoverKind.d.ts.map +1 -1
- package/dist/src/fiat/payment/failoverPrompt.d.ts +13 -3
- package/dist/src/fiat/payment/failoverPrompt.d.ts.map +1 -1
- package/dist/src/fiat/payment/nextSwitchProvider.d.ts +21 -0
- package/dist/src/fiat/payment/nextSwitchProvider.d.ts.map +1 -0
- package/dist/src/fiat/payment/paymentSurfaceFailure.d.ts +5 -0
- package/dist/src/fiat/payment/paymentSurfaceFailure.d.ts.map +1 -1
- package/dist/src/fiat/payment/prefetchSwitch.d.ts +30 -0
- package/dist/src/fiat/payment/prefetchSwitch.d.ts.map +1 -0
- package/dist/src/fiat/payment/useFailoverLanding.d.ts +41 -0
- package/dist/src/fiat/payment/useFailoverLanding.d.ts.map +1 -0
- package/dist/src/fiat/payment/usePaymentFailureAnswer.d.ts +38 -3
- package/dist/src/fiat/payment/usePaymentFailureAnswer.d.ts.map +1 -1
- package/dist/src/fiat/payment/useStepShown.d.ts +8 -0
- package/dist/src/fiat/payment/useStepShown.d.ts.map +1 -0
- package/dist/src/fiat/processing/FailoverPrompt.d.ts +10 -0
- package/dist/src/fiat/processing/FailoverPrompt.d.ts.map +1 -1
- package/dist/src/fiat/processing/ProcessingFailure.d.ts +5 -0
- package/dist/src/fiat/processing/ProcessingFailure.d.ts.map +1 -1
- package/dist/src/fiat/providerFlow.d.ts +45 -3
- package/dist/src/fiat/providerFlow.d.ts.map +1 -1
- package/dist/src/fiat/providerHandoff.d.ts +4 -0
- package/dist/src/fiat/providerHandoff.d.ts.map +1 -1
- package/dist/src/fiat/providers/checkout/observePrefetch.d.ts +27 -0
- package/dist/src/fiat/providers/checkout/observePrefetch.d.ts.map +1 -0
- package/dist/src/fiat/providers/checkout/slotOutlets.d.ts +2 -0
- package/dist/src/fiat/providers/checkout/slotOutlets.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/coinbaseCardRefusal.d.ts +6 -0
- package/dist/src/fiat/providers/coinbase/coinbaseCardRefusal.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/next/coinbaseCheckoutTerms.d.ts +5 -0
- package/dist/src/fiat/providers/coinbase/next/coinbaseCheckoutTerms.d.ts.map +1 -0
- package/dist/src/fiat/providers/coinbase/next/index.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/next/prefetch.d.ts +28 -0
- package/dist/src/fiat/providers/coinbase/next/prefetch.d.ts.map +1 -0
- package/dist/src/fiat/providers/coinbase/next/useCoinbaseCheckout.d.ts +1 -1
- package/dist/src/fiat/providers/coinbase/next/useCoinbaseCheckout.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.map +1 -1
- package/dist/src/fiat/providers/moonpay/fullCheckout/moonPayCheckoutTerms.d.ts +6 -0
- package/dist/src/fiat/providers/moonpay/fullCheckout/moonPayCheckoutTerms.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/fullCheckout/prefetch.d.ts +28 -0
- package/dist/src/fiat/providers/moonpay/fullCheckout/prefetch.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/fullCheckout/useCheckoutCalls.d.ts +3 -1
- package/dist/src/fiat/providers/moonpay/fullCheckout/useCheckoutCalls.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/fullCheckout/useCheckoutModel.d.ts +2 -1
- package/dist/src/fiat/providers/moonpay/fullCheckout/useCheckoutModel.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/guestCheckout/Checkout.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/guestCheckout/checkoutScreens.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/guestCheckout/useGuestCheckoutModel.d.ts +3 -1
- package/dist/src/fiat/providers/moonpay/guestCheckout/useGuestCheckoutModel.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/index.d.ts +1 -1
- package/dist/src/fiat/providers/moonpay/index.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/sdk/Host.d.ts +7 -1
- package/dist/src/fiat/providers/moonpay/sdk/Host.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/Checkout.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/index.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/prefetch.d.ts +28 -0
- package/dist/src/fiat/providers/stripe/next/prefetch.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/next/stripeCheckoutTerms.d.ts +5 -0
- package/dist/src/fiat/providers/stripe/next/stripeCheckoutTerms.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/next/useStripeCheckout.d.ts +2 -1
- package/dist/src/fiat/providers/stripe/next/useStripeCheckout.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/useStripeCheckoutCalls.d.ts +3 -1
- package/dist/src/fiat/providers/stripe/next/useStripeCheckoutCalls.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/useStripeIdentity.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/useStripeKycForm.d.ts +26 -2
- package/dist/src/fiat/providers/stripe/next/useStripeKycForm.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/useStripePayment.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeApplePaySelection.d.ts +8 -3
- package/dist/src/fiat/providers/stripe/stripeApplePaySelection.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeCheckout.d.ts +5 -1
- package/dist/src/fiat/providers/stripe/stripeCheckout.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeEuCountries.d.ts +0 -1
- package/dist/src/fiat/providers/stripe/stripeEuCountries.d.ts.map +1 -1
- 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 +5 -1
- package/dist/src/fiat/providers/stripe/useStripeKycPush.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/useStripePayButton.d.ts +8 -4
- package/dist/src/fiat/providers/stripe/useStripePayButton.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/useStripeState.d.ts +2 -1
- package/dist/src/fiat/providers/stripe/useStripeState.d.ts.map +1 -1
- package/dist/src/fiat/providers/useHostedPageLoad.d.ts +3 -1
- package/dist/src/fiat/providers/useHostedPageLoad.d.ts.map +1 -1
- package/dist/src/fiat/quote/depositCurrency.d.ts +17 -0
- package/dist/src/fiat/quote/depositCurrency.d.ts.map +1 -0
- package/dist/src/fiat/quote/quoteRouting.d.ts +30 -11
- package/dist/src/fiat/quote/quoteRouting.d.ts.map +1 -1
- package/dist/src/fiat/settlement/depositSettlement.d.ts +10 -2
- 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/useFailureAnnouncements.d.ts.map +1 -1
- package/dist/src/fiat/useProviderCheckout.d.ts +11 -1
- package/dist/src/fiat/useProviderCheckout.d.ts.map +1 -1
- package/dist/src/flow/DepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/DepositFlowContent.d.ts +9 -4
- package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
- package/dist/src/flow/Drawer.d.ts +7 -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/FlowSheet.d.ts.map +1 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/MoonPayAmountStep.d.ts +18 -0
- package/dist/src/flow/MoonPayAmountStep.d.ts.map +1 -0
- package/dist/src/flow/PaymentMethodPickerSheet.d.ts +28 -4
- package/dist/src/flow/PaymentMethodPickerSheet.d.ts.map +1 -1
- package/dist/src/flow/SwappedAmountStep.d.ts +34 -0
- package/dist/src/flow/SwappedAmountStep.d.ts.map +1 -0
- package/dist/src/flow/amountDebounce.d.ts +8 -0
- package/dist/src/flow/amountDebounce.d.ts.map +1 -0
- package/dist/src/flow/depositFlowConfig.d.ts +21 -1
- package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
- package/dist/src/flow/fiatStepScreens.d.ts.map +1 -1
- package/dist/src/flow/fiatSubmitRenderer.d.ts +15 -14
- package/dist/src/flow/fiatSubmitRenderer.d.ts.map +1 -1
- package/dist/src/flow/moonPayHostedMethodRows.d.ts +30 -0
- package/dist/src/flow/moonPayHostedMethodRows.d.ts.map +1 -0
- package/dist/src/flow/paymentPickerFoot.d.ts +7 -0
- package/dist/src/flow/paymentPickerFoot.d.ts.map +1 -0
- package/dist/src/flow/quickAmounts.d.ts.map +1 -1
- package/dist/src/flow/renderFiatFlowScreen.d.ts +14 -3
- package/dist/src/flow/renderFiatFlowScreen.d.ts.map +1 -1
- package/dist/src/flow/swappedDrawerPage.d.ts +52 -0
- package/dist/src/flow/swappedDrawerPage.d.ts.map +1 -0
- package/dist/src/flow/swappedLongtail.d.ts +11 -1
- package/dist/src/flow/swappedLongtail.d.ts.map +1 -1
- package/dist/src/flow/swappedMethodRows.d.ts +6 -2
- package/dist/src/flow/swappedMethodRows.d.ts.map +1 -1
- package/dist/src/flow/swappedPickExits.d.ts +42 -0
- package/dist/src/flow/swappedPickExits.d.ts.map +1 -0
- package/dist/src/flow/swappedPreload.d.ts +36 -0
- package/dist/src/flow/swappedPreload.d.ts.map +1 -0
- package/dist/src/flow/swappedSignedFop.d.ts +23 -0
- package/dist/src/flow/swappedSignedFop.d.ts.map +1 -0
- package/dist/src/flow/useMoonPayHostedMethods.d.ts +24 -0
- package/dist/src/flow/useMoonPayHostedMethods.d.ts.map +1 -0
- package/dist/src/flow/validateInitialAmount.d.ts.map +1 -1
- package/dist/src/hooks/track/ErrorShown.d.ts +5 -0
- package/dist/src/hooks/track/ErrorShown.d.ts.map +1 -0
- package/dist/src/hooks/track/events.d.ts +26 -2
- package/dist/src/hooks/track/events.d.ts.map +1 -1
- package/dist/src/hooks/track/quoteErrorShown.d.ts +5 -0
- package/dist/src/hooks/track/quoteErrorShown.d.ts.map +1 -0
- package/dist/src/hooks/track/useTrackErrorShown.d.ts +10 -0
- package/dist/src/hooks/track/useTrackErrorShown.d.ts.map +1 -0
- package/dist/src/hooks/useNestedSheet.d.ts +16 -1
- package/dist/src/hooks/useNestedSheet.d.ts.map +1 -1
- package/dist/src/icons/PaymentBrandIcons.d.ts +3 -0
- package/dist/src/icons/PaymentBrandIcons.d.ts.map +1 -1
- package/dist/src/moonpayHosted/MoonPayHostedCheckout.d.ts +15 -0
- package/dist/src/moonpayHosted/MoonPayHostedCheckout.d.ts.map +1 -0
- package/dist/src/moonpayHosted/checkout.d.ts +44 -0
- package/dist/src/moonpayHosted/checkout.d.ts.map +1 -0
- package/dist/src/preview/PreviewPaymentMethodPicker.d.ts +3 -1
- package/dist/src/preview/PreviewPaymentMethodPicker.d.ts.map +1 -1
- package/dist/src/preview/flowPreview.d.ts +28 -0
- package/dist/src/preview/flowPreview.d.ts.map +1 -1
- package/dist/src/preview/previewFetch.d.ts.map +1 -1
- package/dist/src/preview/scenarioCatalog.d.ts +66 -6
- package/dist/src/preview/scenarioCatalog.d.ts.map +1 -1
- package/dist/src/preview/scenarios.d.ts +0 -2
- package/dist/src/preview/scenarios.d.ts.map +1 -1
- package/dist/src/providers/FunkitProvider.d.ts.map +1 -1
- package/dist/src/providers/IdentityContext.d.ts +5 -0
- package/dist/src/providers/IdentityContext.d.ts.map +1 -1
- package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
- package/dist/src/screens/depositMetrics.d.ts +1 -0
- package/dist/src/screens/depositMetrics.d.ts.map +1 -1
- package/dist/src/statsig/useFunWhnStatsigAnalytics.d.ts.map +1 -1
- package/dist/src/swapped/SwappedIframe.d.ts +1 -1
- package/dist/src/swapped/SwappedIframe.d.ts.map +1 -1
- package/dist/src/swapped/SwappedScreen.d.ts +15 -1
- package/dist/src/swapped/SwappedScreen.d.ts.map +1 -1
- package/dist/src/swapped/SwappedScreenShell.d.ts +23 -2
- package/dist/src/swapped/SwappedScreenShell.d.ts.map +1 -1
- package/dist/src/swapped/SwappedWebView.d.ts +14 -1
- package/dist/src/swapped/SwappedWebView.d.ts.map +1 -1
- package/dist/src/swapped/paymentNavigation.d.ts +0 -3
- package/dist/src/swapped/paymentNavigation.d.ts.map +1 -1
- package/dist/src/swapped/swappedV2Scripts.d.ts +66 -0
- package/dist/src/swapped/swappedV2Scripts.d.ts.map +1 -0
- package/dist/src/swapped/swappedV2Theme.d.ts +26 -0
- package/dist/src/swapped/swappedV2Theme.d.ts.map +1 -1
- package/dist/src/swapped/useInjectOnChange.d.ts +9 -0
- package/dist/src/swapped/useInjectOnChange.d.ts.map +1 -0
- package/dist/src/swapped/useSwappedEmbed.d.ts +7 -9
- package/dist/src/swapped/useSwappedEmbed.d.ts.map +1 -1
- package/dist/src/swapped/useSwappedPillAmounts.d.ts +11 -0
- package/dist/src/swapped/useSwappedPillAmounts.d.ts.map +1 -0
- package/dist/src/transfer/fops.d.ts +4 -2
- package/dist/src/transfer/fops.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useFops.d.ts +4 -2
- package/dist/src/transfer/hooks/useFops.d.ts.map +1 -1
- package/dist/src/utils/isoCurrencyCode.d.ts +2 -0
- package/dist/src/utils/isoCurrencyCode.d.ts.map +1 -0
- package/dist/src/utils/withAlpha.d.ts +5 -0
- package/dist/src/utils/withAlpha.d.ts.map +1 -1
- package/package.json +5 -5
- package/dist/chunk-BC6N7CI3.js.map +0 -7
- package/dist/chunk-UDEGXDMU.js.map +0 -7
- package/dist/src/swapped/swappedV2Env.d.ts +0 -24
- package/dist/src/swapped/swappedV2Env.d.ts.map +0 -1
- /package/dist/{chunk-UR3BDCRK.js.map → chunk-Q74I4SOP.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-AICRSY7K.js";
|
|
11
11
|
import {
|
|
12
12
|
logger
|
|
13
13
|
} from "./chunk-2HFFVYAZ.js";
|
|
@@ -64,6 +64,52 @@ var PREVIEW_SCENARIO_CATALOG = {
|
|
|
64
64
|
requires: "fiatRail",
|
|
65
65
|
touches: AMOUNT
|
|
66
66
|
},
|
|
67
|
+
"fiat.amount.hostedMethod": {
|
|
68
|
+
title: "Amount entry with a MoonPay method held",
|
|
69
|
+
flow: "deposit",
|
|
70
|
+
requires: "fiatRail",
|
|
71
|
+
touches: [...AMOUNT, "flow/MoonPayAmountStep.tsx"]
|
|
72
|
+
},
|
|
73
|
+
"fiat.amount.moonPayHandoff": {
|
|
74
|
+
title: "MoonPay hand-off while its checkout loads",
|
|
75
|
+
flow: "deposit",
|
|
76
|
+
requires: "fiatRail",
|
|
77
|
+
touches: [
|
|
78
|
+
...AMOUNT,
|
|
79
|
+
"flow/MoonPayAmountStep.tsx",
|
|
80
|
+
"moonpayHosted/MoonPayHostedCheckout.tsx"
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
"fiat.amount.moonPayConnecting": {
|
|
84
|
+
title: "MoonPay hand-off tapped before its checkout loads",
|
|
85
|
+
flow: "deposit",
|
|
86
|
+
requires: "fiatRail",
|
|
87
|
+
touches: [
|
|
88
|
+
...AMOUNT,
|
|
89
|
+
"flow/MoonPayAmountStep.tsx",
|
|
90
|
+
"moonpayHosted/MoonPayHostedCheckout.tsx"
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"fiat.amount.moonPayCheckout": {
|
|
94
|
+
title: "MoonPay checkout revealed while its page loads",
|
|
95
|
+
flow: "deposit",
|
|
96
|
+
requires: "fiatRail",
|
|
97
|
+
touches: [
|
|
98
|
+
...AMOUNT,
|
|
99
|
+
"flow/MoonPayAmountStep.tsx",
|
|
100
|
+
"moonpayHosted/MoonPayHostedCheckout.tsx"
|
|
101
|
+
]
|
|
102
|
+
},
|
|
103
|
+
"fiat.amount.moonPayFailed": {
|
|
104
|
+
title: "MoonPay checkout that failed to load",
|
|
105
|
+
flow: "deposit",
|
|
106
|
+
requires: "fiatRail",
|
|
107
|
+
touches: [
|
|
108
|
+
...AMOUNT,
|
|
109
|
+
"flow/MoonPayAmountStep.tsx",
|
|
110
|
+
"moonpayHosted/MoonPayHostedCheckout.tsx"
|
|
111
|
+
]
|
|
112
|
+
},
|
|
67
113
|
"fiat.amount.depositMatch": {
|
|
68
114
|
title: "Amount entry, deposit match with a fee subsidy (internal flag)",
|
|
69
115
|
flow: "deposit",
|
|
@@ -128,6 +174,29 @@ var PREVIEW_SCENARIO_CATALOG = {
|
|
|
128
174
|
"preview/PreviewPaymentMethodPicker.tsx"
|
|
129
175
|
]
|
|
130
176
|
},
|
|
177
|
+
"fiat.amount.paymentMethodPicker.swappedPage": {
|
|
178
|
+
title: "Payment options, a picked Swapped method open inside the picker",
|
|
179
|
+
flow: "deposit",
|
|
180
|
+
requires: "fiatRail",
|
|
181
|
+
touches: [
|
|
182
|
+
...AMOUNT,
|
|
183
|
+
"flow/DepositFlowContent.tsx",
|
|
184
|
+
"flow/PaymentMethodPickerSheet.tsx",
|
|
185
|
+
"swapped/SwappedScreenShell.tsx"
|
|
186
|
+
]
|
|
187
|
+
},
|
|
188
|
+
"fiat.amount.swappedChosen": {
|
|
189
|
+
title: "Amount, a picked Swapped v2 method waiting for Continue",
|
|
190
|
+
flow: "deposit",
|
|
191
|
+
requires: "fiatRail",
|
|
192
|
+
touches: [
|
|
193
|
+
...AMOUNT,
|
|
194
|
+
"flow/DepositFlowContent.tsx",
|
|
195
|
+
"flow/FunkitFlowProvider.tsx",
|
|
196
|
+
"flow/SwappedAmountStep.tsx",
|
|
197
|
+
"flow/swappedLongtail.ts"
|
|
198
|
+
]
|
|
199
|
+
},
|
|
131
200
|
"fiat.amount.paymentMethodPicker.swappedPending": {
|
|
132
201
|
title: "Payment options, Swapped's long tail still being fetched",
|
|
133
202
|
flow: "deposit",
|
|
@@ -233,12 +302,6 @@ var PREVIEW_SCENARIO_CATALOG = {
|
|
|
233
302
|
requires: "fiatRail",
|
|
234
303
|
touches: AMOUNT
|
|
235
304
|
},
|
|
236
|
-
"fiat.amount.currencyLookupFailed": {
|
|
237
|
-
title: "Amount entry, the buyer's currency lookup failed",
|
|
238
|
-
flow: "deposit",
|
|
239
|
-
requires: "fiatRail",
|
|
240
|
-
touches: AMOUNT
|
|
241
|
-
},
|
|
242
305
|
"fiat.contact.email": {
|
|
243
306
|
title: "Contact: email",
|
|
244
307
|
flow: "deposit",
|
|
@@ -803,6 +866,46 @@ var PREVIEW_SCENARIO_CATALOG = {
|
|
|
803
866
|
"fiat/processing/FailoverPrompt.tsx"
|
|
804
867
|
]
|
|
805
868
|
},
|
|
869
|
+
"fiat.failoverLanded": {
|
|
870
|
+
title: "Verified after a failover, hosting the pay button",
|
|
871
|
+
flow: "deposit",
|
|
872
|
+
requires: "fiatRail",
|
|
873
|
+
touches: [
|
|
874
|
+
"fiat/payment/useFailoverLanding.ts",
|
|
875
|
+
"fiat/payment/failoverPrompt.ts",
|
|
876
|
+
"fiat/processing/FailoverPrompt.tsx"
|
|
877
|
+
]
|
|
878
|
+
},
|
|
879
|
+
"fiat.failoverFallback": {
|
|
880
|
+
title: "A /fiat/next payment failure no other sheet covers",
|
|
881
|
+
flow: "deposit",
|
|
882
|
+
requires: "fiatRail",
|
|
883
|
+
touches: [
|
|
884
|
+
"fiat/payment/failoverPrompt.ts",
|
|
885
|
+
"fiat/payment/usePaymentFailureAnswer.ts",
|
|
886
|
+
"fiat/processing/FailoverPrompt.tsx"
|
|
887
|
+
]
|
|
888
|
+
},
|
|
889
|
+
"fiat.cardDeclinedSwitch": {
|
|
890
|
+
title: "Card declined at MoonPay, another partner offered",
|
|
891
|
+
flow: "deposit",
|
|
892
|
+
requires: "fiatRail",
|
|
893
|
+
touches: [
|
|
894
|
+
"fiat/payment/failoverKind.ts",
|
|
895
|
+
"fiat/payment/failoverPrompt.ts",
|
|
896
|
+
"fiat/processing/FailoverPrompt.tsx"
|
|
897
|
+
]
|
|
898
|
+
},
|
|
899
|
+
"fiat.failoverKept": {
|
|
900
|
+
title: "Failover's prompt held while the next provider starts",
|
|
901
|
+
flow: "deposit",
|
|
902
|
+
requires: "fiatRail",
|
|
903
|
+
touches: [
|
|
904
|
+
"fiat/payment/failoverPrompt.ts",
|
|
905
|
+
"fiat/payment/useFailoverLanding.ts",
|
|
906
|
+
"fiat/processing/FailoverPrompt.tsx"
|
|
907
|
+
]
|
|
908
|
+
},
|
|
806
909
|
"fiat.prepaidDeclined": {
|
|
807
910
|
title: "Prepaid card declined at Coinbase",
|
|
808
911
|
flow: "deposit",
|
|
@@ -1981,6 +2084,13 @@ var DEMO_RECIPIENT = "0x2A8Bd916E85d98d8175258De99fc0ddbcC102eF6";
|
|
|
1981
2084
|
var DEFINITIONS = {
|
|
1982
2085
|
// Transak's entry isn't sent ahead of the tap, so the priced entry stays up until pressed.
|
|
1983
2086
|
"fiat.amount": fiat({}, { quote: { ...PRICED, provider: "TRANSAK" } }),
|
|
2087
|
+
"fiat.amount.hostedMethod": fiat({ hostedPayment: "amount" }),
|
|
2088
|
+
"fiat.amount.moonPayHandoff": fiat({ hostedPayment: "moonPayHandoff" }),
|
|
2089
|
+
"fiat.amount.moonPayConnecting": fiat({
|
|
2090
|
+
hostedPayment: "moonPayConnecting"
|
|
2091
|
+
}),
|
|
2092
|
+
"fiat.amount.moonPayCheckout": fiat({ hostedPayment: "moonPayCheckout" }),
|
|
2093
|
+
"fiat.amount.moonPayFailed": fiat({ hostedPayment: "moonPayFailed" }),
|
|
1984
2094
|
"fiat.amount.depositMatch": fiat(
|
|
1985
2095
|
{ depositMatch: PREVIEW_MATCH },
|
|
1986
2096
|
{
|
|
@@ -2031,6 +2141,18 @@ var DEFINITIONS = {
|
|
|
2031
2141
|
{ paymentMethodPicker: true, paymentMethodSwapped: true },
|
|
2032
2142
|
{ quote: { ...PRICED, provider: "TRANSAK" } }
|
|
2033
2143
|
),
|
|
2144
|
+
"fiat.amount.paymentMethodPicker.swappedPage": fiat(
|
|
2145
|
+
{
|
|
2146
|
+
paymentMethodPicker: true,
|
|
2147
|
+
paymentMethodSwapped: true,
|
|
2148
|
+
paymentMethodSwappedPage: true
|
|
2149
|
+
},
|
|
2150
|
+
{ quote: { ...PRICED, provider: "TRANSAK" } }
|
|
2151
|
+
),
|
|
2152
|
+
"fiat.amount.swappedChosen": fiat(
|
|
2153
|
+
{ paymentMethodSwapped: true, paymentMethodSwappedChosen: true },
|
|
2154
|
+
{ quote: { ...PRICED, provider: "TRANSAK" } }
|
|
2155
|
+
),
|
|
2034
2156
|
"fiat.amount.paymentMethodPicker.swappedPending": fiat(
|
|
2035
2157
|
{ paymentMethodPicker: true, paymentMethodSwappedPending: true },
|
|
2036
2158
|
{ quote: { ...PRICED, provider: "TRANSAK" } }
|
|
@@ -2114,7 +2236,6 @@ var DEFINITIONS = {
|
|
|
2114
2236
|
]
|
|
2115
2237
|
}
|
|
2116
2238
|
),
|
|
2117
|
-
"fiat.amount.currencyLookupFailed": fiat({}, { currencyLookupFails: true }),
|
|
2118
2239
|
"fiat.contact.email": fiat(
|
|
2119
2240
|
{ pressEntry: true },
|
|
2120
2241
|
{ quote: pricedQuote({ email: { type: "TEXT" } }) }
|
|
@@ -2473,6 +2594,63 @@ var DEFINITIONS = {
|
|
|
2473
2594
|
step: TRANSAK_CAPTURE,
|
|
2474
2595
|
failoverVerified: true
|
|
2475
2596
|
}),
|
|
2597
|
+
// A failover's Continue led to a provider ready to pay: the verified sheet hosts its button.
|
|
2598
|
+
"fiat.failoverLanded": fiat(
|
|
2599
|
+
{ amount: AMOUNT2, failoverLanded: true },
|
|
2600
|
+
{ quote: { ...PRICED, provider: "TRANSAK" } }
|
|
2601
|
+
),
|
|
2602
|
+
// A failover's Continue kept its prompt up over MoonPay's own checkout, which the preview's
|
|
2603
|
+
// backend never answers: the prompt hosts its spinner.
|
|
2604
|
+
"fiat.failoverFallback": fiat(
|
|
2605
|
+
{
|
|
2606
|
+
amount: AMOUNT2,
|
|
2607
|
+
handoffPaymentFailure: {
|
|
2608
|
+
provider: "MOONPAY",
|
|
2609
|
+
code: "transaction_unknown"
|
|
2610
|
+
},
|
|
2611
|
+
// The seeded failure stands in for MoonPay's own checkout, which the preview backend can't serve.
|
|
2612
|
+
handoffProviders: []
|
|
2613
|
+
},
|
|
2614
|
+
{ quote: MOONPAY_HANDOFF }
|
|
2615
|
+
),
|
|
2616
|
+
// Coinbase's own checkout runs here too, so the sheet offers it as the next partner. The failure is
|
|
2617
|
+
// seeded before the routing table loads, so open it with `fiatProviders=MOONPAY,COINBASE` for the
|
|
2618
|
+
// host's order; the preview backend can't answer Coinbase's checkout past Continue.
|
|
2619
|
+
"fiat.cardDeclinedSwitch": fiat(
|
|
2620
|
+
{
|
|
2621
|
+
amount: AMOUNT2,
|
|
2622
|
+
// MoonPay's own checkout is left out: the preview backend can't answer it, and the seeded
|
|
2623
|
+
// failure stands in for it.
|
|
2624
|
+
handoffProviders: ["COINBASE"],
|
|
2625
|
+
handoffPaymentFailure: {
|
|
2626
|
+
provider: "MOONPAY",
|
|
2627
|
+
code: "transaction_authorizationDeclined"
|
|
2628
|
+
}
|
|
2629
|
+
},
|
|
2630
|
+
{
|
|
2631
|
+
quote: MOONPAY_HANDOFF,
|
|
2632
|
+
providers: [
|
|
2633
|
+
{
|
|
2634
|
+
provider: "MOONPAY",
|
|
2635
|
+
min: "20",
|
|
2636
|
+
max: "5000",
|
|
2637
|
+
visibility: "AUTH_GATED",
|
|
2638
|
+
answer: () => MOONPAY_HANDOFF
|
|
2639
|
+
},
|
|
2640
|
+
{
|
|
2641
|
+
provider: "COINBASE",
|
|
2642
|
+
min: "5",
|
|
2643
|
+
max: "500",
|
|
2644
|
+
visibility: "AUTH_GATED",
|
|
2645
|
+
answer: (amount) => pricedAt("COINBASE", "500")(amount)
|
|
2646
|
+
}
|
|
2647
|
+
]
|
|
2648
|
+
}
|
|
2649
|
+
),
|
|
2650
|
+
"fiat.failoverKept": fiat(
|
|
2651
|
+
{ amount: AMOUNT2, failoverKept: "cardNotFound" },
|
|
2652
|
+
{ quote: MOONPAY_HANDOFF }
|
|
2653
|
+
),
|
|
2476
2654
|
"fiat.prepaidDeclined": fiat(
|
|
2477
2655
|
{
|
|
2478
2656
|
amount: AMOUNT2,
|
|
@@ -2834,7 +3012,7 @@ var PREVIEW_SCENARIOS = Object.fromEntries(
|
|
|
2834
3012
|
var DEFAULT_PREVIEW_QUOTE = PRICED;
|
|
2835
3013
|
|
|
2836
3014
|
// src/preview/previewFetch.ts
|
|
2837
|
-
import {
|
|
3015
|
+
import { getApiBaseUrl } from "@funkit/api-base";
|
|
2838
3016
|
var json = (body, status = 200) => new Response(JSON.stringify(body), {
|
|
2839
3017
|
status,
|
|
2840
3018
|
headers: { "Content-Type": "application/json" }
|
|
@@ -3075,12 +3253,8 @@ function createPreviewFetch(scenario, passThrough, { quoteDelayMs = 0 } = {}) {
|
|
|
3075
3253
|
return json(current);
|
|
3076
3254
|
};
|
|
3077
3255
|
const fiatApi = `${getApiBaseUrl()}/fiat/`;
|
|
3078
|
-
const currencyLookup = `${FROG_API_BASE_URL}/api/swapped/supportedCountries`;
|
|
3079
3256
|
return async (input, init) => {
|
|
3080
3257
|
const url = input instanceof Request ? input.url : String(input);
|
|
3081
|
-
if (scenario.backend.currencyLookupFails && url.startsWith(currencyLookup)) {
|
|
3082
|
-
return json({ errorMsg: "preview: unavailable" }, 503);
|
|
3083
|
-
}
|
|
3084
3258
|
if (!url.startsWith(fiatApi)) {
|
|
3085
3259
|
return passThrough(input, init);
|
|
3086
3260
|
}
|