@funkit/connect-rn 12.4.0 → 12.5.1
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 +66 -0
- package/LICENSE +4 -0
- package/dist/{chunk-LJHYIZUN.js → chunk-3GZVX2F5.js} +2 -2
- package/dist/{chunk-ACECDE3B.js → chunk-P7MUPGEE.js} +9 -26
- package/dist/chunk-P7MUPGEE.js.map +7 -0
- package/dist/{chunk-DDFBGRBX.js → chunk-P7NQCIGY.js} +189 -125
- package/dist/chunk-P7NQCIGY.js.map +7 -0
- package/dist/clients/lighter.js +1 -1
- package/dist/clients/nado.js +2 -2
- package/dist/index.js +10018 -8930
- package/dist/index.js.map +4 -4
- package/dist/preview.js +69 -16
- package/dist/preview.js.map +2 -2
- package/dist/src/fiat/common/FiatTermsNotice.d.ts +1 -1
- package/dist/src/fiat/common/FiatTermsNotice.d.ts.map +1 -1
- package/dist/src/fiat/contact/FiatContactScreen.d.ts +2 -2
- package/dist/src/fiat/contact/FiatContactScreen.d.ts.map +1 -1
- package/dist/src/fiat/contact/FiatPhoneField.d.ts +1 -1
- package/dist/src/fiat/contact/FiatPhoneField.d.ts.map +1 -1
- package/dist/src/fiat/contact/normalizedPhoneEdit.d.ts +7 -0
- package/dist/src/fiat/contact/normalizedPhoneEdit.d.ts.map +1 -0
- package/dist/src/fiat/country/FiatCountrySheet.d.ts +1 -1
- package/dist/src/fiat/country/FiatCountrySheet.d.ts.map +1 -1
- package/dist/src/fiat/country/countrySections.d.ts +1 -1
- package/dist/src/fiat/country/countrySections.d.ts.map +1 -1
- package/dist/src/fiat/entry/useEntryQuote.d.ts.map +1 -1
- package/dist/src/fiat/entry/useFiatDirectDelivery.d.ts +5 -0
- package/dist/src/fiat/entry/useFiatDirectDelivery.d.ts.map +1 -1
- package/dist/src/fiat/form/FiatFormScreen.d.ts +3 -1
- package/dist/src/fiat/form/FiatFormScreen.d.ts.map +1 -1
- package/dist/src/fiat/form/formLayout.d.ts +5 -1
- package/dist/src/fiat/form/formLayout.d.ts.map +1 -1
- package/dist/src/fiat/kyc/FiatKycFieldControl.d.ts.map +1 -1
- package/dist/src/fiat/kyc/FiatKycPhoneField.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycFieldValidators.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycFormState.d.ts +0 -8
- package/dist/src/fiat/kyc/kycFormState.d.ts.map +1 -1
- package/dist/src/fiat/payment/failoverKind.d.ts +2 -1
- package/dist/src/fiat/payment/failoverKind.d.ts.map +1 -1
- package/dist/src/fiat/payment/insufficientFundsAmount.d.ts +15 -5
- package/dist/src/fiat/payment/insufficientFundsAmount.d.ts.map +1 -1
- package/dist/src/fiat/payment/methodName.d.ts.map +1 -1
- package/dist/src/fiat/payment/paymentSurfaceFailure.d.ts +2 -0
- package/dist/src/fiat/payment/paymentSurfaceFailure.d.ts.map +1 -1
- package/dist/src/fiat/payment/useHandoffTerms.d.ts +12 -0
- package/dist/src/fiat/payment/useHandoffTerms.d.ts.map +1 -0
- package/dist/src/fiat/processing/DepositCardSheet.d.ts +25 -5
- package/dist/src/fiat/processing/DepositCardSheet.d.ts.map +1 -1
- package/dist/src/fiat/processing/FailoverPrompt.d.ts +9 -0
- package/dist/src/fiat/processing/FailoverPrompt.d.ts.map +1 -1
- package/dist/src/fiat/processing/cardSurface.d.ts +16 -1
- package/dist/src/fiat/processing/cardSurface.d.ts.map +1 -1
- package/dist/src/fiat/processing/useBankTransferCardSheet.d.ts +32 -0
- package/dist/src/fiat/processing/useBankTransferCardSheet.d.ts.map +1 -0
- package/dist/src/fiat/providerFlow.d.ts +55 -3
- package/dist/src/fiat/providerFlow.d.ts.map +1 -1
- package/dist/src/fiat/providers/adapter.d.ts +1 -0
- package/dist/src/fiat/providers/adapter.d.ts.map +1 -1
- package/dist/src/fiat/providers/alchemypay/useAlchemyPayCheckout.d.ts.map +1 -1
- package/dist/src/fiat/providers/bankTransfer/detailsLabels.d.ts +10 -0
- package/dist/src/fiat/providers/bankTransfer/detailsLabels.d.ts.map +1 -0
- package/dist/src/fiat/providers/checkout/slotOutlets.d.ts +11 -1
- package/dist/src/fiat/providers/checkout/slotOutlets.d.ts.map +1 -1
- package/dist/src/fiat/providers/checkout/useRoutingReadyResponse.d.ts +17 -0
- package/dist/src/fiat/providers/checkout/useRoutingReadyResponse.d.ts.map +1 -0
- package/dist/src/fiat/providers/coinbase/coinbaseOnrampEvents.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/next/Checkout.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/next/coinbaseClosedOrderWatch.d.ts +13 -0
- package/dist/src/fiat/providers/coinbase/next/coinbaseClosedOrderWatch.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/useCoinbaseCheckout.d.ts +8 -3
- 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/kycChallenge.d.ts +3 -1
- package/dist/src/fiat/providers/moonpay/fullCheckout/kycChallenge.d.ts.map +1 -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 -0
- package/dist/src/fiat/providers/moonpay/fullCheckout/useCheckoutModel.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/guestCheckout/useCheckoutCalls.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/guestCheckout/useGuestCheckoutModel.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/Checkout.d.ts +0 -2
- package/dist/src/fiat/providers/stripe/next/Checkout.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/useStripeCheckout.d.ts +1 -0
- package/dist/src/fiat/providers/stripe/next/useStripeCheckout.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/useStripeCheckoutCalls.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/useStripeKycForm.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/useStripeOrderSlot.d.ts +3 -1
- package/dist/src/fiat/providers/stripe/next/useStripeOrderSlot.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/useStripePayment.d.ts +1 -0
- package/dist/src/fiat/providers/stripe/next/useStripePayment.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripePayment.d.ts +3 -1
- package/dist/src/fiat/providers/stripe/stripePayment.d.ts.map +1 -1
- package/dist/src/fiat/providers/transak/next/useTransakCheckout.d.ts.map +1 -1
- package/dist/src/fiat/quote/quoteRouting.d.ts +6 -0
- package/dist/src/fiat/quote/quoteRouting.d.ts.map +1 -1
- package/dist/src/fiat/quote/useRefreshCheckoutRouting.d.ts +3 -0
- package/dist/src/fiat/quote/useRefreshCheckoutRouting.d.ts.map +1 -0
- package/dist/src/fiat/settlement/closedDepositWatch.d.ts +28 -0
- package/dist/src/fiat/settlement/closedDepositWatch.d.ts.map +1 -0
- package/dist/src/fiat/settlement/depositSettlement.d.ts.map +1 -1
- package/dist/src/fiat/settlement/useDepositSettlement.d.ts +9 -1
- package/dist/src/fiat/settlement/useDepositSettlement.d.ts.map +1 -1
- package/dist/src/fiat/useProviderCheckout.d.ts +11 -3
- package/dist/src/fiat/useProviderCheckout.d.ts.map +1 -1
- package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
- package/dist/src/flow/DepositReceivedToast.d.ts +17 -0
- package/dist/src/flow/DepositReceivedToast.d.ts.map +1 -0
- package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/FlowPage.d.ts +5 -3
- package/dist/src/flow/FlowPage.d.ts.map +1 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/TakeoverPages.d.ts +16 -5
- package/dist/src/flow/TakeoverPages.d.ts.map +1 -1
- package/dist/src/flow/depositFlowConfig.d.ts +7 -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 +14 -1
- package/dist/src/flow/depositRailCopy.d.ts.map +1 -1
- package/dist/src/flow/fiatSubmitRenderer.d.ts.map +1 -1
- package/dist/src/flow/pageMotion.d.ts +60 -7
- package/dist/src/flow/pageMotion.d.ts.map +1 -1
- package/dist/src/flow/pageTurn.d.ts +16 -15
- 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 +4 -2
- package/dist/src/flow/renderFiatFlowScreen.d.ts.map +1 -1
- package/dist/src/flow/swappedDrawerPage.d.ts +3 -1
- package/dist/src/flow/swappedDrawerPage.d.ts.map +1 -1
- package/dist/src/flow/swipeBack.d.ts +2 -1
- package/dist/src/flow/swipeBack.d.ts.map +1 -1
- package/dist/src/flow/useDepositNotice.d.ts +15 -0
- package/dist/src/flow/useDepositNotice.d.ts.map +1 -0
- package/dist/src/flow/useFeeDetails.d.ts +4 -1
- package/dist/src/flow/useFeeDetails.d.ts.map +1 -1
- package/dist/src/flow/useRegionAmount.d.ts +3 -1
- package/dist/src/flow/useRegionAmount.d.ts.map +1 -1
- package/dist/src/flow/walletMethods.d.ts +3 -0
- package/dist/src/flow/walletMethods.d.ts.map +1 -1
- package/dist/src/hooks/track/FlowAnalyticsLifetime.d.ts +7 -0
- package/dist/src/hooks/track/FlowAnalyticsLifetime.d.ts.map +1 -0
- package/dist/src/hooks/track/StepViewProvider.d.ts +3 -1
- package/dist/src/hooks/track/StepViewProvider.d.ts.map +1 -1
- package/dist/src/hooks/track/events.d.ts +27 -6
- package/dist/src/hooks/track/events.d.ts.map +1 -1
- package/dist/src/hooks/track/swappedErrorCode.d.ts +5 -0
- package/dist/src/hooks/track/swappedErrorCode.d.ts.map +1 -0
- package/dist/src/hooks/track/useModalCloseAnalytics.d.ts +11 -0
- package/dist/src/hooks/track/useModalCloseAnalytics.d.ts.map +1 -0
- package/dist/src/hooks/track/usePaymentButtonEvents.d.ts +1 -0
- package/dist/src/hooks/track/usePaymentButtonEvents.d.ts.map +1 -1
- package/dist/src/hooks/track/useSwappedDepositOutcomes.d.ts +10 -0
- package/dist/src/hooks/track/useSwappedDepositOutcomes.d.ts.map +1 -0
- package/dist/src/hooks/track/useTrackFiatPaymentEvents.d.ts +15 -0
- package/dist/src/hooks/track/useTrackFiatPaymentEvents.d.ts.map +1 -1
- package/dist/src/hooks/track/useTrackV2.d.ts +2 -0
- package/dist/src/hooks/track/useTrackV2.d.ts.map +1 -1
- package/dist/src/preview/fixtures/stripeCheckout.d.ts +1 -0
- package/dist/src/preview/fixtures/stripeCheckout.d.ts.map +1 -1
- package/dist/src/preview/flowPreview.d.ts +2 -0
- package/dist/src/preview/flowPreview.d.ts.map +1 -1
- package/dist/src/preview/scenarioCatalog.d.ts +19 -1
- package/dist/src/preview/scenarioCatalog.d.ts.map +1 -1
- package/dist/src/preview/scenarios.d.ts.map +1 -1
- package/dist/src/statsig/useFunWhnStatsigAnalytics.d.ts +2 -1
- package/dist/src/statsig/useFunWhnStatsigAnalytics.d.ts.map +1 -1
- package/dist/src/swapped/SwappedScreen.d.ts +3 -1
- package/dist/src/swapped/SwappedScreen.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useFops.d.ts.map +1 -1
- package/package.json +7 -6
- package/dist/chunk-ACECDE3B.js.map +0 -7
- package/dist/chunk-DDFBGRBX.js.map +0 -7
- package/dist/src/fiat/contact/phoneCountries.d.ts +0 -61
- package/dist/src/fiat/contact/phoneCountries.d.ts.map +0 -1
- package/dist/src/fiat/contact/phoneDraft.d.ts +0 -37
- package/dist/src/fiat/contact/phoneDraft.d.ts.map +0 -1
- package/dist/src/fiat/country/postalCodeCountries.d.ts +0 -16
- package/dist/src/fiat/country/postalCodeCountries.d.ts.map +0 -1
- package/dist/src/fiat/country/subdivisions.d.ts +0 -21
- package/dist/src/fiat/country/subdivisions.d.ts.map +0 -1
- /package/dist/{chunk-LJHYIZUN.js.map → chunk-3GZVX2F5.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-P7MUPGEE.js";
|
|
11
11
|
import {
|
|
12
12
|
logger
|
|
13
13
|
} from "./chunk-2HFFVYAZ.js";
|
|
@@ -416,7 +416,7 @@ var PREVIEW_SCENARIO_CATALOG = {
|
|
|
416
416
|
title: "KYC L1: address",
|
|
417
417
|
flow: "deposit",
|
|
418
418
|
requires: "fiatRail",
|
|
419
|
-
touches:
|
|
419
|
+
touches: FORM
|
|
420
420
|
},
|
|
421
421
|
"kyc.l1.ssn": {
|
|
422
422
|
title: "KYC L1: SSN",
|
|
@@ -468,6 +468,16 @@ var PREVIEW_SCENARIO_CATALOG = {
|
|
|
468
468
|
"fiat/providers/stripe/stripeKycIntro.ts"
|
|
469
469
|
]
|
|
470
470
|
},
|
|
471
|
+
"kyc.stripe.l1.rejected": {
|
|
472
|
+
title: "Stripe: retry identity verification after rejection",
|
|
473
|
+
flow: "deposit",
|
|
474
|
+
requires: "stripeRail",
|
|
475
|
+
touches: [
|
|
476
|
+
...FORM,
|
|
477
|
+
"fiat/providers/stripe/next/Checkout.tsx",
|
|
478
|
+
"fiat/providers/stripe/next/useStripeKycForm.ts"
|
|
479
|
+
]
|
|
480
|
+
},
|
|
471
481
|
"kyc.l2.moonpay-consent": {
|
|
472
482
|
title: "KYC L2: MoonPay sharing consent",
|
|
473
483
|
flow: "deposit",
|
|
@@ -864,6 +874,18 @@ var PREVIEW_SCENARIO_CATALOG = {
|
|
|
864
874
|
"fiat/processing/cardSurface.tsx"
|
|
865
875
|
]
|
|
866
876
|
},
|
|
877
|
+
"deposit.notice.onItsWay": {
|
|
878
|
+
title: "Closed deposit confirmation notice",
|
|
879
|
+
flow: "deposit",
|
|
880
|
+
requires: "fiatRail",
|
|
881
|
+
touches: ["flow/useDepositNotice.tsx", "flow/DepositReceivedToast.tsx"]
|
|
882
|
+
},
|
|
883
|
+
"deposit.notice.failed": {
|
|
884
|
+
title: "Closed deposit failure notice",
|
|
885
|
+
flow: "deposit",
|
|
886
|
+
requires: "fiatRail",
|
|
887
|
+
touches: ["flow/useDepositNotice.tsx", "fiat/common/FiatFailureBanner.tsx"]
|
|
888
|
+
},
|
|
867
889
|
"order.success": {
|
|
868
890
|
title: "Order settled (closes into the deposit toast)",
|
|
869
891
|
flow: "deposit",
|
|
@@ -1804,26 +1826,42 @@ function transakPreviewState(start, step) {
|
|
|
1804
1826
|
// src/preview/fixtures/stripeCheckout.ts
|
|
1805
1827
|
import { stripeCheckoutReducer } from "@funkit/connect-core";
|
|
1806
1828
|
function stripeAccountEmailPreviewState(start, error) {
|
|
1829
|
+
return stripePreviewState(start, {
|
|
1830
|
+
next: "accountEmail",
|
|
1831
|
+
field: {
|
|
1832
|
+
type: "TEXT",
|
|
1833
|
+
regex: "^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$",
|
|
1834
|
+
maxLength: 254,
|
|
1835
|
+
labelFallback: "Email address"
|
|
1836
|
+
},
|
|
1837
|
+
error
|
|
1838
|
+
});
|
|
1839
|
+
}
|
|
1840
|
+
function stripeKycRejectedPreviewState(start) {
|
|
1841
|
+
return stripePreviewState(start, {
|
|
1842
|
+
next: "kyc",
|
|
1843
|
+
round: "IDENTITY",
|
|
1844
|
+
tier: "l1",
|
|
1845
|
+
correctionRound: 1,
|
|
1846
|
+
fields: US_ROUND.fields,
|
|
1847
|
+
heldValues: {},
|
|
1848
|
+
verifiedEmail: null,
|
|
1849
|
+
linkAuthToken: null,
|
|
1850
|
+
paymentSheetFirst: false,
|
|
1851
|
+
reask: {
|
|
1852
|
+
requirements: US_ROUND.fields.map(({ id }) => id),
|
|
1853
|
+
reason: "REJECTED"
|
|
1854
|
+
}
|
|
1855
|
+
});
|
|
1856
|
+
}
|
|
1857
|
+
function stripePreviewState(start, response) {
|
|
1807
1858
|
const { call } = start;
|
|
1808
1859
|
if (call === void 0 || call.action === "order") {
|
|
1809
1860
|
throw new Error("preview: no step request to answer");
|
|
1810
1861
|
}
|
|
1811
1862
|
const events = [
|
|
1812
1863
|
{ type: "TAPPED" },
|
|
1813
|
-
{
|
|
1814
|
-
type: "STEP",
|
|
1815
|
-
call,
|
|
1816
|
-
response: {
|
|
1817
|
-
next: "accountEmail",
|
|
1818
|
-
field: {
|
|
1819
|
-
type: "TEXT",
|
|
1820
|
-
regex: "^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$",
|
|
1821
|
-
maxLength: 254,
|
|
1822
|
-
labelFallback: "Email address"
|
|
1823
|
-
},
|
|
1824
|
-
error
|
|
1825
|
-
}
|
|
1826
|
-
}
|
|
1864
|
+
{ type: "STEP", call, response }
|
|
1827
1865
|
];
|
|
1828
1866
|
return events.reduce(stripeCheckoutReducer, start);
|
|
1829
1867
|
}
|
|
@@ -2824,6 +2862,13 @@ var DEFINITIONS = {
|
|
|
2824
2862
|
"fiat.transak.unpaid": transak("unpaid"),
|
|
2825
2863
|
"fiat.stripe.accountEmail": stripeAccountEmail(false),
|
|
2826
2864
|
"fiat.stripe.accountEmailRefused": stripeAccountEmail(true),
|
|
2865
|
+
"kyc.stripe.l1.rejected": fiat(
|
|
2866
|
+
{
|
|
2867
|
+
handoffProviders: ["STRIPE"],
|
|
2868
|
+
stripeCheckout: stripeKycRejectedPreviewState
|
|
2869
|
+
},
|
|
2870
|
+
{ quote: STRIPE_HANDOFF }
|
|
2871
|
+
),
|
|
2827
2872
|
"kyc.moonpay-check.again": fiat(
|
|
2828
2873
|
{ moonPayChallenge: (start) => moonPayChallengeState(start, "again") },
|
|
2829
2874
|
{ quote: MOONPAY_HANDOFF }
|
|
@@ -3224,6 +3269,14 @@ var DEFINITIONS = {
|
|
|
3224
3269
|
}
|
|
3225
3270
|
}
|
|
3226
3271
|
),
|
|
3272
|
+
"deposit.notice.onItsWay": {
|
|
3273
|
+
seed: { deposit: { notice: "onItsWay" } },
|
|
3274
|
+
backend: {}
|
|
3275
|
+
},
|
|
3276
|
+
"deposit.notice.failed": {
|
|
3277
|
+
seed: { deposit: { notice: "failed" } },
|
|
3278
|
+
backend: {}
|
|
3279
|
+
},
|
|
3227
3280
|
"deposit.addMoney": {
|
|
3228
3281
|
seed: { deposit: { screen: "addMoney" } },
|
|
3229
3282
|
backend: {}
|