@funkit/connect-rn 12.0.1 → 12.1.2
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 +68 -0
- package/README.md +6 -0
- package/dist/{chunk-QNUFRAJH.js → chunk-AICRSY7K.js} +15 -1
- package/dist/chunk-AICRSY7K.js.map +7 -0
- package/dist/{chunk-G6PSBLQT.js → chunk-GOFKXSDM.js} +120 -72
- package/dist/chunk-GOFKXSDM.js.map +7 -0
- package/dist/{chunk-IEQWKP4M.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 +7838 -5282
- package/dist/index.js.map +4 -4
- package/dist/preview.js +71 -13
- package/dist/preview.js.map +2 -2
- package/dist/src/components/SkeletonBar.d.ts +6 -1
- package/dist/src/components/SkeletonBar.d.ts.map +1 -1
- package/dist/src/components/v2/AmountDisplay.d.ts +3 -0
- package/dist/src/components/v2/AmountDisplay.d.ts.map +1 -1
- 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/kycForm.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/processing/ProcessingFailure.d.ts +1 -1
- package/dist/src/fiat/processing/ProcessingFailure.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/next/useCoinbaseCheckout.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/fullCheckout/useCheckoutCalls.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/useStripeCheckoutCalls.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/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/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 +31 -12
- 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/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/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/MoonPayHostedAmountStep.d.ts +18 -0
- package/dist/src/flow/MoonPayHostedAmountStep.d.ts.map +1 -0
- package/dist/src/flow/PaymentMethodPickerSheet.d.ts +23 -5
- package/dist/src/flow/PaymentMethodPickerSheet.d.ts.map +1 -1
- package/dist/src/flow/PaymentMethodRows.d.ts +2 -0
- package/dist/src/flow/PaymentMethodRows.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/WalletDepositStep.d.ts.map +1 -1
- 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/renderFiatFlowScreen.d.ts +3 -1
- 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 +7 -3
- 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 +27 -0
- package/dist/src/flow/swappedSignedFop.d.ts.map +1 -0
- package/dist/src/flow/useMoonPayHostedMethods.d.ts +28 -0
- package/dist/src/flow/useMoonPayHostedMethods.d.ts.map +1 -0
- package/dist/src/flow/useRegionAmount.d.ts +17 -0
- package/dist/src/flow/useRegionAmount.d.ts.map +1 -0
- package/dist/src/flow/useWalletDeposit.d.ts +2 -1
- package/dist/src/flow/useWalletDeposit.d.ts.map +1 -1
- 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 +10 -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 +36 -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 +10 -1
- package/dist/src/swapped/SwappedScreen.d.ts.map +1 -1
- package/dist/src/swapped/SwappedScreenShell.d.ts +11 -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/swappedV2Scripts.d.ts +66 -0
- package/dist/src/swapped/swappedV2Scripts.d.ts.map +1 -0
- package/dist/src/swapped/swappedV2Theme.d.ts +19 -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 +4 -2
- 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/hooks/useFops.d.ts +7 -3
- 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/package.json +4 -4
- package/dist/chunk-G6PSBLQT.js.map +0 -7
- package/dist/chunk-QNUFRAJH.js.map +0 -7
- /package/dist/{chunk-IEQWKP4M.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/MoonPayHostedAmountStep.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/MoonPayHostedAmountStep.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/MoonPayHostedAmountStep.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/MoonPayHostedAmountStep.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/MoonPayHostedAmountStep.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",
|
|
@@ -139,6 +185,18 @@ var PREVIEW_SCENARIO_CATALOG = {
|
|
|
139
185
|
"swapped/SwappedScreenShell.tsx"
|
|
140
186
|
]
|
|
141
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
|
+
},
|
|
142
200
|
"fiat.amount.paymentMethodPicker.swappedPending": {
|
|
143
201
|
title: "Payment options, Swapped's long tail still being fetched",
|
|
144
202
|
flow: "deposit",
|
|
@@ -244,12 +302,6 @@ var PREVIEW_SCENARIO_CATALOG = {
|
|
|
244
302
|
requires: "fiatRail",
|
|
245
303
|
touches: AMOUNT
|
|
246
304
|
},
|
|
247
|
-
"fiat.amount.currencyLookupFailed": {
|
|
248
|
-
title: "Amount entry, the buyer's currency lookup failed",
|
|
249
|
-
flow: "deposit",
|
|
250
|
-
requires: "fiatRail",
|
|
251
|
-
touches: AMOUNT
|
|
252
|
-
},
|
|
253
305
|
"fiat.contact.email": {
|
|
254
306
|
title: "Contact: email",
|
|
255
307
|
flow: "deposit",
|
|
@@ -2032,6 +2084,13 @@ var DEMO_RECIPIENT = "0x2A8Bd916E85d98d8175258De99fc0ddbcC102eF6";
|
|
|
2032
2084
|
var DEFINITIONS = {
|
|
2033
2085
|
// Transak's entry isn't sent ahead of the tap, so the priced entry stays up until pressed.
|
|
2034
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" }),
|
|
2035
2094
|
"fiat.amount.depositMatch": fiat(
|
|
2036
2095
|
{ depositMatch: PREVIEW_MATCH },
|
|
2037
2096
|
{
|
|
@@ -2090,6 +2149,10 @@ var DEFINITIONS = {
|
|
|
2090
2149
|
},
|
|
2091
2150
|
{ quote: { ...PRICED, provider: "TRANSAK" } }
|
|
2092
2151
|
),
|
|
2152
|
+
"fiat.amount.swappedChosen": fiat(
|
|
2153
|
+
{ paymentMethodSwapped: true, paymentMethodSwappedChosen: true },
|
|
2154
|
+
{ quote: { ...PRICED, provider: "TRANSAK" } }
|
|
2155
|
+
),
|
|
2093
2156
|
"fiat.amount.paymentMethodPicker.swappedPending": fiat(
|
|
2094
2157
|
{ paymentMethodPicker: true, paymentMethodSwappedPending: true },
|
|
2095
2158
|
{ quote: { ...PRICED, provider: "TRANSAK" } }
|
|
@@ -2173,7 +2236,6 @@ var DEFINITIONS = {
|
|
|
2173
2236
|
]
|
|
2174
2237
|
}
|
|
2175
2238
|
),
|
|
2176
|
-
"fiat.amount.currencyLookupFailed": fiat({}, { currencyLookupFails: true }),
|
|
2177
2239
|
"fiat.contact.email": fiat(
|
|
2178
2240
|
{ pressEntry: true },
|
|
2179
2241
|
{ quote: pricedQuote({ email: { type: "TEXT" } }) }
|
|
@@ -2950,7 +3012,7 @@ var PREVIEW_SCENARIOS = Object.fromEntries(
|
|
|
2950
3012
|
var DEFAULT_PREVIEW_QUOTE = PRICED;
|
|
2951
3013
|
|
|
2952
3014
|
// src/preview/previewFetch.ts
|
|
2953
|
-
import {
|
|
3015
|
+
import { getApiBaseUrl } from "@funkit/api-base";
|
|
2954
3016
|
var json = (body, status = 200) => new Response(JSON.stringify(body), {
|
|
2955
3017
|
status,
|
|
2956
3018
|
headers: { "Content-Type": "application/json" }
|
|
@@ -3191,12 +3253,8 @@ function createPreviewFetch(scenario, passThrough, { quoteDelayMs = 0 } = {}) {
|
|
|
3191
3253
|
return json(current);
|
|
3192
3254
|
};
|
|
3193
3255
|
const fiatApi = `${getApiBaseUrl()}/fiat/`;
|
|
3194
|
-
const currencyLookup = `${FROG_API_BASE_URL}/api/swapped/supportedCountries`;
|
|
3195
3256
|
return async (input, init) => {
|
|
3196
3257
|
const url = input instanceof Request ? input.url : String(input);
|
|
3197
|
-
if (scenario.backend.currencyLookupFails && url.startsWith(currencyLookup)) {
|
|
3198
|
-
return json({ errorMsg: "preview: unavailable" }, 503);
|
|
3199
|
-
}
|
|
3200
3258
|
if (!url.startsWith(fiatApi)) {
|
|
3201
3259
|
return passThrough(input, init);
|
|
3202
3260
|
}
|