@funkit/connect-rn 9.2.0 → 9.3.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 +107 -0
- package/README.md +23 -0
- package/dist/{chunk-OW6L3UM7.js → chunk-BSYYQSWJ.js} +2 -1
- package/dist/chunk-BSYYQSWJ.js.map +7 -0
- package/dist/{chunk-AI6F43VP.js → chunk-GPJAVLS6.js} +2 -2
- package/dist/chunk-GPJAVLS6.js.map +7 -0
- package/dist/{chunk-5DJHIA7X.js → chunk-ZIE5S6XC.js} +227 -91
- package/dist/chunk-ZIE5S6XC.js.map +7 -0
- 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 +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17781 -14730
- package/dist/index.js.map +4 -4
- package/dist/preview.js +133 -33
- package/dist/preview.js.map +2 -2
- package/dist/src/components/Grabber.d.ts +3 -1
- package/dist/src/components/Grabber.d.ts.map +1 -1
- package/dist/src/components/InfoTooltip.d.ts.map +1 -1
- package/dist/src/components/v2/FeeLine.d.ts +35 -0
- package/dist/src/components/v2/FeeLine.d.ts.map +1 -0
- package/dist/src/fiat/FiatContactScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatFormFieldRow.d.ts +1 -1
- package/dist/src/fiat/FiatFormFieldRow.d.ts.map +1 -1
- package/dist/src/fiat/FiatFormScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycPhoneField.d.ts.map +1 -1
- package/dist/src/fiat/FiatOtpScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatSsnField.d.ts.map +1 -1
- package/dist/src/fiat/FiatUnsupportedStep.d.ts.map +1 -1
- package/dist/src/fiat/SurfaceSlot.d.ts.map +1 -1
- package/dist/src/fiat/actionSlot.d.ts +51 -0
- package/dist/src/fiat/actionSlot.d.ts.map +1 -0
- package/dist/src/fiat/applePayAttempt.d.ts +25 -0
- package/dist/src/fiat/applePayAttempt.d.ts.map +1 -0
- package/dist/src/fiat/contactRound.d.ts +33 -0
- package/dist/src/fiat/contactRound.d.ts.map +1 -0
- package/dist/src/fiat/depositOutcome.d.ts +2 -3
- package/dist/src/fiat/depositOutcome.d.ts.map +1 -1
- package/dist/src/fiat/depositProcessing.d.ts +20 -0
- package/dist/src/fiat/depositProcessing.d.ts.map +1 -0
- package/dist/src/fiat/depositSettlement.d.ts +18 -0
- package/dist/src/fiat/depositSettlement.d.ts.map +1 -0
- package/dist/src/fiat/fieldLimits.d.ts +13 -0
- package/dist/src/fiat/fieldLimits.d.ts.map +1 -0
- package/dist/src/fiat/kyc/fieldLabel.d.ts.map +1 -0
- package/dist/src/fiat/{formScreenProps.d.ts → kyc/formScreenProps.d.ts} +1 -1
- package/dist/src/fiat/kyc/formScreenProps.d.ts.map +1 -0
- package/dist/src/fiat/{formValidationError.d.ts → kyc/formValidationError.d.ts} +1 -1
- package/dist/src/fiat/kyc/formValidationError.d.ts.map +1 -0
- package/dist/src/fiat/kyc/isAdditionalKycForm.d.ts.map +1 -0
- package/dist/src/fiat/kyc/kycCapture.d.ts +13 -0
- package/dist/src/fiat/kyc/kycCapture.d.ts.map +1 -0
- package/dist/src/fiat/kyc/kycCopy.d.ts +21 -0
- package/dist/src/fiat/kyc/kycCopy.d.ts.map +1 -0
- package/dist/src/fiat/{kycFailover.d.ts → kyc/kycFailover.d.ts} +1 -1
- package/dist/src/fiat/kyc/kycFailover.d.ts.map +1 -0
- package/dist/src/fiat/kyc/kycFieldValidators.d.ts.map +1 -0
- package/dist/src/fiat/kyc/kycForm.d.ts +39 -0
- package/dist/src/fiat/kyc/kycForm.d.ts.map +1 -0
- package/dist/src/fiat/{kycFormAttempt.d.ts → kyc/kycFormAttempt.d.ts} +1 -1
- package/dist/src/fiat/kyc/kycFormAttempt.d.ts.map +1 -0
- package/dist/src/fiat/kyc/kycFormState.d.ts.map +1 -0
- package/dist/src/fiat/{kycOptionRows.d.ts → kyc/kycOptionRows.d.ts} +1 -1
- package/dist/src/fiat/kyc/kycOptionRows.d.ts.map +1 -0
- package/dist/src/fiat/kyc/kycRoutes.d.ts +34 -0
- package/dist/src/fiat/kyc/kycRoutes.d.ts.map +1 -0
- package/dist/src/fiat/kyc/kycVerdict.d.ts +34 -0
- package/dist/src/fiat/kyc/kycVerdict.d.ts.map +1 -0
- package/dist/src/fiat/kyc/kycWait.d.ts.map +1 -0
- package/dist/src/fiat/{sectionDetail.d.ts → kyc/sectionDetail.d.ts} +1 -1
- package/dist/src/fiat/kyc/sectionDetail.d.ts.map +1 -0
- package/dist/src/fiat/kyc/useKycCaptureRound.d.ts.map +1 -0
- package/dist/src/fiat/{useKycCompletion.d.ts → kyc/useKycCompletion.d.ts} +1 -1
- package/dist/src/fiat/kyc/useKycCompletion.d.ts.map +1 -0
- package/dist/src/fiat/kyc/useKycFormFailure.d.ts +16 -0
- package/dist/src/fiat/kyc/useKycFormFailure.d.ts.map +1 -0
- package/dist/src/fiat/{useKycRoundReporting.d.ts → kyc/useKycRoundReporting.d.ts} +1 -1
- package/dist/src/fiat/kyc/useKycRoundReporting.d.ts.map +1 -0
- package/dist/src/fiat/kyc/useKycScreens.d.ts +48 -0
- package/dist/src/fiat/kyc/useKycScreens.d.ts.map +1 -0
- package/dist/src/fiat/kyc/useKycThreshold.d.ts +15 -0
- package/dist/src/fiat/kyc/useKycThreshold.d.ts.map +1 -0
- package/dist/src/fiat/paymentReroute.d.ts +28 -1
- package/dist/src/fiat/paymentReroute.d.ts.map +1 -1
- package/dist/src/fiat/paymentSurfaceFailure.d.ts +5 -4
- package/dist/src/fiat/paymentSurfaceFailure.d.ts.map +1 -1
- package/dist/src/fiat/processing/CompletionCheck.d.ts +12 -0
- package/dist/src/fiat/processing/CompletionCheck.d.ts.map +1 -0
- package/dist/src/fiat/processing/CompletionWave.d.ts +17 -0
- package/dist/src/fiat/processing/CompletionWave.d.ts.map +1 -0
- package/dist/src/fiat/processing/DepositCardSheet.d.ts +25 -0
- package/dist/src/fiat/processing/DepositCardSheet.d.ts.map +1 -0
- package/dist/src/fiat/processing/DepositProcessingCard.d.ts +22 -0
- package/dist/src/fiat/processing/DepositProcessingCard.d.ts.map +1 -0
- package/dist/src/fiat/processing/ProcessingAurora.d.ts +13 -0
- package/dist/src/fiat/processing/ProcessingAurora.d.ts.map +1 -0
- package/dist/src/fiat/processing/ProcessingFailure.d.ts +26 -0
- package/dist/src/fiat/processing/ProcessingFailure.d.ts.map +1 -0
- package/dist/src/fiat/processing/ProcessingOptionIcons.d.ts +21 -0
- package/dist/src/fiat/processing/ProcessingOptionIcons.d.ts.map +1 -0
- package/dist/src/fiat/processing/ProcessingProgress.d.ts +7 -0
- package/dist/src/fiat/processing/ProcessingProgress.d.ts.map +1 -0
- package/dist/src/fiat/processing/RevealText.d.ts +16 -0
- package/dist/src/fiat/processing/RevealText.d.ts.map +1 -0
- package/dist/src/fiat/processing/cardSurface.d.ts +65 -0
- package/dist/src/fiat/processing/cardSurface.d.ts.map +1 -0
- package/dist/src/fiat/processing/cornerRadius.d.ts +13 -0
- package/dist/src/fiat/processing/cornerRadius.d.ts.map +1 -0
- package/dist/src/fiat/processing/gradientPuff.d.ts +18 -0
- package/dist/src/fiat/processing/gradientPuff.d.ts.map +1 -0
- package/dist/src/fiat/processing/pressureWave.d.ts +23 -0
- package/dist/src/fiat/processing/pressureWave.d.ts.map +1 -0
- package/dist/src/fiat/processing/skiaPeer.d.ts +15 -0
- package/dist/src/fiat/processing/skiaPeer.d.ts.map +1 -0
- package/dist/src/fiat/providers/adapter.d.ts +2 -3
- package/dist/src/fiat/providers/adapter.d.ts.map +1 -1
- package/dist/src/fiat/providers/applePayPaintGate.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/CoinbaseWarmup.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/coinbasePreparedPayment.d.ts +7 -1
- package/dist/src/fiat/providers/coinbase/coinbasePreparedPayment.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/moonpay.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/moonpayCardRefusal.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeApplePayReady.d.ts +5 -1
- package/dist/src/fiat/providers/stripe/stripeApplePayReady.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeKyc.d.ts +9 -1
- package/dist/src/fiat/providers/stripe/stripeKyc.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeLinkWarmup.d.ts +12 -0
- package/dist/src/fiat/providers/stripe/stripeLinkWarmup.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripePayment.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeRoundPush.d.ts +9 -0
- package/dist/src/fiat/providers/stripe/stripeRoundPush.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/useCreateStripeAccountWithExistingUserData.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/useStripeKycFailover.d.ts +5 -0
- package/dist/src/fiat/providers/stripe/useStripeKycFailover.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/useStripeKycPush.d.ts +20 -0
- package/dist/src/fiat/providers/stripe/useStripeKycPush.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/useStripeSessionAuth.d.ts +18 -1
- package/dist/src/fiat/providers/stripe/useStripeSessionAuth.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/useStripeSheets.d.ts +9 -0
- package/dist/src/fiat/providers/stripe/useStripeSheets.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/useStripeState.d.ts +7 -0
- package/dist/src/fiat/providers/stripe/useStripeState.d.ts.map +1 -0
- package/dist/src/fiat/providers/transak/TransakApplePaySurface.d.ts.map +1 -1
- package/dist/src/fiat/quoteRouting.d.ts +54 -0
- package/dist/src/fiat/quoteRouting.d.ts.map +1 -0
- package/dist/src/fiat/sessionAuth.d.ts +8 -0
- package/dist/src/fiat/sessionAuth.d.ts.map +1 -0
- package/dist/src/fiat/shownFieldIssues.d.ts +1 -1
- package/dist/src/fiat/shownFieldIssues.d.ts.map +1 -1
- package/dist/src/fiat/stepSurface.d.ts +35 -0
- package/dist/src/fiat/stepSurface.d.ts.map +1 -0
- package/dist/src/fiat/{renderCaptureSurface.d.ts → surfaceRegistry.d.ts} +5 -5
- package/dist/src/fiat/surfaceRegistry.d.ts.map +1 -0
- package/dist/src/fiat/useAuthHandoff.d.ts +17 -0
- package/dist/src/fiat/useAuthHandoff.d.ts.map +1 -0
- package/dist/src/fiat/useCaptureHold.d.ts +22 -0
- package/dist/src/fiat/useCaptureHold.d.ts.map +1 -0
- package/dist/src/fiat/useContactAutoSubmit.d.ts.map +1 -1
- package/dist/src/fiat/useDatePickerDock.d.ts.map +1 -1
- package/dist/src/fiat/useDepositSettlement.d.ts +33 -0
- package/dist/src/fiat/useDepositSettlement.d.ts.map +1 -0
- package/dist/src/fiat/useEntryQuote.d.ts +25 -0
- package/dist/src/fiat/useEntryQuote.d.ts.map +1 -0
- package/dist/src/fiat/useEntrySubmit.d.ts +24 -0
- package/dist/src/fiat/useEntrySubmit.d.ts.map +1 -0
- package/dist/src/fiat/useFailureAnnouncements.d.ts +17 -0
- package/dist/src/fiat/useFailureAnnouncements.d.ts.map +1 -0
- package/dist/src/fiat/useIdentityAssertion.d.ts +2 -6
- package/dist/src/fiat/useIdentityAssertion.d.ts.map +1 -1
- package/dist/src/fiat/usePaymentFailureAnswer.d.ts +37 -22
- package/dist/src/fiat/usePaymentFailureAnswer.d.ts.map +1 -1
- package/dist/src/fiat/useProcessingPhase.d.ts +4 -0
- package/dist/src/fiat/useProcessingPhase.d.ts.map +1 -0
- package/dist/src/fiat/useReplayableFailure.d.ts.map +1 -1
- package/dist/src/fiat/useRerouteProbe.d.ts +24 -0
- package/dist/src/fiat/useRerouteProbe.d.ts.map +1 -0
- package/dist/src/fiat/useStaleQuoteRecovery.d.ts +16 -0
- package/dist/src/fiat/useStaleQuoteRecovery.d.ts.map +1 -1
- package/dist/src/fiat/useStandingRefusals.d.ts +1 -1
- package/dist/src/fiat/useStandingRefusals.d.ts.map +1 -1
- package/dist/src/fiat/useSurfaceAttempt.d.ts +24 -0
- package/dist/src/fiat/useSurfaceAttempt.d.ts.map +1 -0
- package/dist/src/flow/DepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/DepositFlowContent.d.ts +1 -4
- package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
- package/dist/src/flow/Drawer.d.ts +24 -2
- package/dist/src/flow/Drawer.d.ts.map +1 -1
- package/dist/src/flow/FiatDepositAmountStep.d.ts +1 -11
- package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/WithdrawalFlowContent.d.ts.map +1 -1
- package/dist/src/flow/entryBanners.d.ts +29 -0
- package/dist/src/flow/entryBanners.d.ts.map +1 -0
- package/dist/src/flow/fiatStepScreens.d.ts +30 -0
- package/dist/src/flow/fiatStepScreens.d.ts.map +1 -0
- package/dist/src/flow/fiatSubmitRenderer.d.ts +100 -0
- package/dist/src/flow/fiatSubmitRenderer.d.ts.map +1 -0
- package/dist/src/flow/renderFiatFlowScreen.d.ts +97 -0
- package/dist/src/flow/renderFiatFlowScreen.d.ts.map +1 -0
- package/dist/src/flow/screenBundles.d.ts +49 -0
- package/dist/src/flow/screenBundles.d.ts.map +1 -0
- package/dist/src/flow/sheetPressHold.d.ts.map +1 -1
- package/dist/src/flow/useFeeDetails.d.ts +19 -0
- package/dist/src/flow/useFeeDetails.d.ts.map +1 -0
- package/dist/src/hooks/useCheckoutsListenerByUserId.d.ts.map +1 -0
- package/dist/src/hooks/useEnclosingSheetOpen.d.ts +8 -0
- package/dist/src/hooks/useEnclosingSheetOpen.d.ts.map +1 -0
- package/dist/src/hooks/useRecentDeposits.d.ts.map +1 -0
- package/dist/src/hooks/useSettledOpacity.d.ts +10 -0
- package/dist/src/hooks/useSettledOpacity.d.ts.map +1 -0
- package/dist/src/icons/FunIcon.d.ts.map +1 -1
- package/dist/src/native/glassEffect.d.ts +4 -0
- package/dist/src/native/glassEffect.d.ts.map +1 -1
- package/dist/src/preview/fiatPreviewPress.d.ts +6 -0
- package/dist/src/preview/fiatPreviewPress.d.ts.map +1 -0
- package/dist/src/preview/flowPreview.d.ts +4 -1
- package/dist/src/preview/flowPreview.d.ts.map +1 -1
- package/dist/src/preview/previewFetch.d.ts.map +1 -1
- package/dist/src/preview/scenarioCatalog.d.ts +25 -7
- package/dist/src/preview/scenarioCatalog.d.ts.map +1 -1
- package/dist/src/preview/scenarios.d.ts +6 -0
- package/dist/src/preview/scenarios.d.ts.map +1 -1
- package/dist/src/providers/BrandingContext.d.ts.map +1 -0
- package/dist/src/providers/FunkitProvider.d.ts +2 -2
- package/dist/src/providers/FunkitProvider.d.ts.map +1 -1
- package/dist/src/{haptics → providers}/HapticsContext.d.ts +3 -1
- package/dist/src/providers/HapticsContext.d.ts.map +1 -0
- package/dist/src/providers/IdentityContext.d.ts.map +1 -0
- package/dist/src/{haptics → providers}/hapticTap.d.ts +3 -2
- package/dist/src/providers/hapticTap.d.ts.map +1 -0
- package/dist/src/providers/useFrozenIdentity.d.ts +1 -1
- package/dist/src/providers/useFrozenIdentity.d.ts.map +1 -1
- package/dist/src/screens/DepositAmountScreen.d.ts +20 -22
- package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
- package/dist/src/screens/TokenAndChainPickerScreen.d.ts.map +1 -1
- package/dist/src/screens/WithdrawAmountScreen.d.ts +3 -1
- package/dist/src/screens/WithdrawAmountScreen.d.ts.map +1 -1
- package/dist/src/screens/WithdrawCryptoSteps.d.ts.map +1 -1
- package/dist/src/screens/depositMetrics.d.ts +7 -0
- package/dist/src/screens/depositMetrics.d.ts.map +1 -1
- package/dist/src/theme/buildFunkitTheme.d.ts +2 -0
- package/dist/src/theme/buildFunkitTheme.d.ts.map +1 -1
- package/dist/src/theme/restyle.d.ts +66 -0
- package/dist/src/theme/restyle.d.ts.map +1 -1
- package/dist/src/theme/toRestyleTheme.d.ts +6 -0
- package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
- package/dist/src/theme/typeScale.d.ts +12 -0
- package/dist/src/theme/typeScale.d.ts.map +1 -1
- package/dist/src/theme/useFunkitTheme.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useLockedTokenAmount.d.ts.map +1 -1
- package/dist/src/withdrawal/useDepositAddressWithdrawalStatus.d.ts.map +1 -1
- package/dist/src/withdrawal/useWithdrawalSourceTokenBalance.d.ts.map +1 -1
- package/package.json +9 -4
- package/dist/chunk-5DJHIA7X.js.map +0 -7
- package/dist/chunk-AI6F43VP.js.map +0 -7
- package/dist/chunk-OW6L3UM7.js.map +0 -7
- package/dist/src/branding/BrandingContext.d.ts.map +0 -1
- package/dist/src/fiat/FiatPaymentFailedSheet.d.ts +0 -26
- package/dist/src/fiat/FiatPaymentFailedSheet.d.ts.map +0 -1
- package/dist/src/fiat/fieldLabel.d.ts.map +0 -1
- package/dist/src/fiat/formScreenProps.d.ts.map +0 -1
- package/dist/src/fiat/formValidationError.d.ts.map +0 -1
- package/dist/src/fiat/isAdditionalKycForm.d.ts.map +0 -1
- package/dist/src/fiat/kycFailover.d.ts.map +0 -1
- package/dist/src/fiat/kycFieldValidators.d.ts.map +0 -1
- package/dist/src/fiat/kycFormAttempt.d.ts.map +0 -1
- package/dist/src/fiat/kycFormState.d.ts.map +0 -1
- package/dist/src/fiat/kycOptionRows.d.ts.map +0 -1
- package/dist/src/fiat/kycWait.d.ts.map +0 -1
- package/dist/src/fiat/renderCaptureSurface.d.ts.map +0 -1
- package/dist/src/fiat/sectionDetail.d.ts.map +0 -1
- package/dist/src/fiat/useKycCaptureRound.d.ts.map +0 -1
- package/dist/src/fiat/useKycCompletion.d.ts.map +0 -1
- package/dist/src/fiat/useKycRoundReporting.d.ts.map +0 -1
- package/dist/src/flow/DepositReceivedToast.d.ts +0 -17
- package/dist/src/flow/DepositReceivedToast.d.ts.map +0 -1
- package/dist/src/flow/useDepositReceivedToast.d.ts +0 -31
- package/dist/src/flow/useDepositReceivedToast.d.ts.map +0 -1
- package/dist/src/haptics/HapticsContext.d.ts.map +0 -1
- package/dist/src/haptics/hapticTap.d.ts.map +0 -1
- package/dist/src/history/useCheckoutsListenerByUserId.d.ts.map +0 -1
- package/dist/src/history/useRecentDeposits.d.ts.map +0 -1
- package/dist/src/identity/IdentityContext.d.ts.map +0 -1
- /package/dist/src/fiat/{fieldLabel.d.ts → kyc/fieldLabel.d.ts} +0 -0
- /package/dist/src/fiat/{isAdditionalKycForm.d.ts → kyc/isAdditionalKycForm.d.ts} +0 -0
- /package/dist/src/fiat/{kycFieldValidators.d.ts → kyc/kycFieldValidators.d.ts} +0 -0
- /package/dist/src/fiat/{kycFormState.d.ts → kyc/kycFormState.d.ts} +0 -0
- /package/dist/src/fiat/{kycWait.d.ts → kyc/kycWait.d.ts} +0 -0
- /package/dist/src/fiat/{useKycCaptureRound.d.ts → kyc/useKycCaptureRound.d.ts} +0 -0
- /package/dist/src/{history → hooks}/useCheckoutsListenerByUserId.d.ts +0 -0
- /package/dist/src/{history → hooks}/useRecentDeposits.d.ts +0 -0
- /package/dist/src/{branding → providers}/BrandingContext.d.ts +0 -0
- /package/dist/src/{identity → providers}/IdentityContext.d.ts +0 -0
package/dist/preview.js
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
NET_WORTH,
|
|
6
6
|
PERSONA_PRIVACY_POLICY_URL,
|
|
7
7
|
TRANSACTIONS_PER_MONTH
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BSYYQSWJ.js";
|
|
9
9
|
import {
|
|
10
10
|
logger
|
|
11
11
|
} from "./chunk-KOJEF2II.js";
|
|
@@ -23,6 +23,16 @@ var FORM = [
|
|
|
23
23
|
];
|
|
24
24
|
var INTRO = ["fiat/FiatIdentityStep.tsx", "fiat/FiatKycIntroScreen.tsx"];
|
|
25
25
|
var STATUS = ["fiat/FiatStatusScreen.tsx", "fiat/depositOutcome.ts"];
|
|
26
|
+
var PROCESSING = [
|
|
27
|
+
"fiat/processing/DepositProcessingCard.tsx",
|
|
28
|
+
"fiat/processing/CompletionWave.tsx",
|
|
29
|
+
"fiat/processing/ProcessingAurora.tsx",
|
|
30
|
+
"fiat/processing/gradientPuff.ts",
|
|
31
|
+
"fiat/processing/pressureWave.ts",
|
|
32
|
+
"fiat/depositProcessing.ts",
|
|
33
|
+
"screens/DepositAmountScreen.tsx",
|
|
34
|
+
"flow/FiatDepositAmountStep.tsx"
|
|
35
|
+
];
|
|
26
36
|
var WITHDRAW = [
|
|
27
37
|
"flow/WithdrawalFlowContent.tsx",
|
|
28
38
|
"screens/WithdrawCryptoSteps.tsx"
|
|
@@ -321,38 +331,38 @@ var PREVIEW_SCENARIO_CATALOG = {
|
|
|
321
331
|
requires: "fiatRail",
|
|
322
332
|
touches: [
|
|
323
333
|
"fiat/providers/moonpay/moonpayHandoffCard.tsx",
|
|
324
|
-
"fiat/useKycCaptureRound.ts"
|
|
334
|
+
"fiat/kyc/useKycCaptureRound.ts"
|
|
325
335
|
]
|
|
326
336
|
},
|
|
327
337
|
"kyc.completion.review": {
|
|
328
338
|
title: "KYC completion: in review",
|
|
329
339
|
flow: "deposit",
|
|
330
340
|
requires: "fiatRail",
|
|
331
|
-
touches: ["fiat/FiatKycOutcomeScreen.tsx", "fiat/useKycCompletion.ts"]
|
|
341
|
+
touches: ["fiat/FiatKycOutcomeScreen.tsx", "fiat/kyc/useKycCompletion.ts"]
|
|
332
342
|
},
|
|
333
343
|
"kyc.review.extended": {
|
|
334
344
|
title: "KYC: an extended review opens the pending card",
|
|
335
345
|
flow: "deposit",
|
|
336
346
|
requires: "fiatRail",
|
|
337
|
-
touches: ["fiat/useKycCompletion.ts", "fiat/kycOptionRows.ts"]
|
|
347
|
+
touches: ["fiat/kyc/useKycCompletion.ts", "fiat/kyc/kycOptionRows.ts"]
|
|
338
348
|
},
|
|
339
349
|
"kyc.review.brief": {
|
|
340
350
|
title: "KYC: a brief review waited out, then priced",
|
|
341
351
|
flow: "deposit",
|
|
342
352
|
requires: "fiatRail",
|
|
343
|
-
touches: ["fiat/useKycCompletion.ts", "fiat/FiatKycOutcomeScreen.tsx"]
|
|
353
|
+
touches: ["fiat/kyc/useKycCompletion.ts", "fiat/FiatKycOutcomeScreen.tsx"]
|
|
344
354
|
},
|
|
345
355
|
"kyc.completion.hold": {
|
|
346
356
|
title: "KYC completion: on hold",
|
|
347
357
|
flow: "deposit",
|
|
348
358
|
requires: "fiatRail",
|
|
349
|
-
touches: ["fiat/FiatKycOutcomeScreen.tsx", "fiat/useKycCompletion.ts"]
|
|
359
|
+
touches: ["fiat/FiatKycOutcomeScreen.tsx", "fiat/kyc/useKycCompletion.ts"]
|
|
350
360
|
},
|
|
351
361
|
"kyc.completion.restricted": {
|
|
352
362
|
title: "KYC completion: rejected",
|
|
353
363
|
flow: "deposit",
|
|
354
364
|
requires: "fiatRail",
|
|
355
|
-
touches: ["fiat/FiatKycOutcomeScreen.tsx", "fiat/useKycCompletion.ts"]
|
|
365
|
+
touches: ["fiat/FiatKycOutcomeScreen.tsx", "fiat/kyc/useKycCompletion.ts"]
|
|
356
366
|
},
|
|
357
367
|
"kyc.required": {
|
|
358
368
|
title: "Amount entry, identity asked before a first deposit",
|
|
@@ -421,6 +431,29 @@ var PREVIEW_SCENARIO_CATALOG = {
|
|
|
421
431
|
requires: "fiatRail",
|
|
422
432
|
touches: STATUS
|
|
423
433
|
},
|
|
434
|
+
"order.processing": {
|
|
435
|
+
title: "Paid, the order still settling: the processing card",
|
|
436
|
+
flow: "deposit",
|
|
437
|
+
requires: "fiatRail",
|
|
438
|
+
touches: PROCESSING
|
|
439
|
+
},
|
|
440
|
+
"order.processing.lands": {
|
|
441
|
+
title: "Paid, then the order settles: the processing card lands",
|
|
442
|
+
flow: "deposit",
|
|
443
|
+
requires: "fiatRail",
|
|
444
|
+
touches: [...PROCESSING, "fiat/processing/CompletionCheck.tsx"]
|
|
445
|
+
},
|
|
446
|
+
"order.processing.fails": {
|
|
447
|
+
title: "Paid, then the order fails: the processing card gives way to the failed sheet",
|
|
448
|
+
flow: "deposit",
|
|
449
|
+
requires: "fiatRail",
|
|
450
|
+
touches: [
|
|
451
|
+
...PROCESSING,
|
|
452
|
+
"fiat/processing/DepositCardSheet.tsx",
|
|
453
|
+
"fiat/processing/ProcessingFailure.tsx",
|
|
454
|
+
"fiat/processing/cardSurface.tsx"
|
|
455
|
+
]
|
|
456
|
+
},
|
|
424
457
|
"order.success": {
|
|
425
458
|
title: "Order settled (closes into the deposit toast)",
|
|
426
459
|
flow: "deposit",
|
|
@@ -486,7 +519,9 @@ var PREVIEW_SCENARIO_CATALOG = {
|
|
|
486
519
|
flow: "deposit",
|
|
487
520
|
requires: "fiatRail",
|
|
488
521
|
touches: [
|
|
489
|
-
"fiat/
|
|
522
|
+
"fiat/processing/DepositProcessingCard.tsx",
|
|
523
|
+
"fiat/processing/DepositCardSheet.tsx",
|
|
524
|
+
"fiat/processing/ProcessingFailure.tsx",
|
|
490
525
|
"fiat/usePaymentFailureAnswer.ts"
|
|
491
526
|
]
|
|
492
527
|
},
|
|
@@ -1153,6 +1188,35 @@ var orderCreated = (state) => ({
|
|
|
1153
1188
|
provider: PROVIDER,
|
|
1154
1189
|
transitions: []
|
|
1155
1190
|
});
|
|
1191
|
+
var SETTLED_ORDER = orderCreated({
|
|
1192
|
+
status: "SETTLED",
|
|
1193
|
+
tx: { chainId: 1151111081099710, hash: TX_HASH }
|
|
1194
|
+
});
|
|
1195
|
+
var FAILED_ORDER = orderCreated({
|
|
1196
|
+
status: "FAILED",
|
|
1197
|
+
failureReason: {
|
|
1198
|
+
category: "PAYMENT_DECLINED",
|
|
1199
|
+
retryable: true,
|
|
1200
|
+
recovery: "RETRY_PAYMENT"
|
|
1201
|
+
}
|
|
1202
|
+
});
|
|
1203
|
+
var PROCESSING_ORDER = {
|
|
1204
|
+
...orderCreated({ status: "PROCESSING" }),
|
|
1205
|
+
transitions: [
|
|
1206
|
+
{
|
|
1207
|
+
id: "poll",
|
|
1208
|
+
mode: "AWAIT",
|
|
1209
|
+
poll: {
|
|
1210
|
+
endpoint: `GET /fiat/orders/${ORDER.orderId}`,
|
|
1211
|
+
intervalMs: 2e3,
|
|
1212
|
+
backoffFactor: 1,
|
|
1213
|
+
maxIntervalMs: 2e3,
|
|
1214
|
+
// Long enough to read every line of the wait before the poll gives up.
|
|
1215
|
+
giveUpAfterMs: 6e5
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
]
|
|
1219
|
+
};
|
|
1156
1220
|
var PENDING_ORDER = {
|
|
1157
1221
|
state: {
|
|
1158
1222
|
kind: "PENDING_ORDER",
|
|
@@ -1204,10 +1268,7 @@ var JOURNEY = {
|
|
|
1204
1268
|
"/fiat/session": otp("EMAIL_OTP"),
|
|
1205
1269
|
"/fiat/session/verify": kycForm(US_ROUND),
|
|
1206
1270
|
"/fiat/kyc/form": ORDER_REVIEW,
|
|
1207
|
-
"/fiat/orders":
|
|
1208
|
-
status: "SETTLED",
|
|
1209
|
-
tx: { chainId: 1151111081099710, hash: TX_HASH }
|
|
1210
|
-
})
|
|
1271
|
+
"/fiat/orders": SETTLED_ORDER
|
|
1211
1272
|
};
|
|
1212
1273
|
var fiat = (fiatSeed, backend = {}) => ({
|
|
1213
1274
|
seed: { deposit: { fiat: { amount: AMOUNT2, ...fiatSeed } } },
|
|
@@ -1419,22 +1480,32 @@ var DEFINITIONS = {
|
|
|
1419
1480
|
"order.bankInstructions": fiat({ step: BANK_INSTRUCTIONS }),
|
|
1420
1481
|
"order.pending": fiat({ step: PENDING_ORDER }),
|
|
1421
1482
|
"order.tracking": fiat({ step: orderCreated({ status: "PROCESSING" }) }),
|
|
1422
|
-
"order.success": fiat({
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
}
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
category: "PAYMENT_DECLINED",
|
|
1433
|
-
retryable: true,
|
|
1434
|
-
recovery: "RETRY_PAYMENT"
|
|
1483
|
+
"order.success": fiat({ step: SETTLED_ORDER }),
|
|
1484
|
+
"order.processing": fiat({ step: PROCESSING_ORDER, paymentCaptured: true }),
|
|
1485
|
+
// Lands after the first two lines of the wait have had their turn.
|
|
1486
|
+
"order.processing.lands": fiat(
|
|
1487
|
+
{ step: PROCESSING_ORDER, paymentCaptured: true },
|
|
1488
|
+
{
|
|
1489
|
+
settles: {
|
|
1490
|
+
endpoint: `/fiat/orders/${ORDER.orderId}`,
|
|
1491
|
+
afterMs: 11e3,
|
|
1492
|
+
step: SETTLED_ORDER
|
|
1435
1493
|
}
|
|
1436
|
-
}
|
|
1437
|
-
|
|
1494
|
+
}
|
|
1495
|
+
),
|
|
1496
|
+
// Fails at the same point the landing would: the card gives way to the
|
|
1497
|
+
// payment-failed sheet.
|
|
1498
|
+
"order.processing.fails": fiat(
|
|
1499
|
+
{ step: PROCESSING_ORDER, paymentCaptured: true },
|
|
1500
|
+
{
|
|
1501
|
+
settles: {
|
|
1502
|
+
endpoint: `/fiat/orders/${ORDER.orderId}`,
|
|
1503
|
+
afterMs: 11e3,
|
|
1504
|
+
step: FAILED_ORDER
|
|
1505
|
+
}
|
|
1506
|
+
}
|
|
1507
|
+
),
|
|
1508
|
+
"order.failed": fiat({ step: FAILED_ORDER }),
|
|
1438
1509
|
"order.cancelled": fiat({
|
|
1439
1510
|
step: orderCreated({ status: "CANCELLED" })
|
|
1440
1511
|
}),
|
|
@@ -1479,11 +1550,31 @@ var DEFINITIONS = {
|
|
|
1479
1550
|
detail: "The provider could not start this payment."
|
|
1480
1551
|
}
|
|
1481
1552
|
}),
|
|
1482
|
-
// The quote's own pay sheet failed: the
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1553
|
+
// The quote's own pay sheet failed: the processing card holds the ways on.
|
|
1554
|
+
// Transak, not MoonPay: MoonPay's entry starts its session ahead of the tap,
|
|
1555
|
+
// which would carry the page past the failure. Coinbase is left for the
|
|
1556
|
+
// reroute probe to find, so the card offers another provider.
|
|
1557
|
+
"fiat.paymentFailed": fiat(
|
|
1558
|
+
{ amount: AMOUNT2, surfaceFailure: { code: "provider_error" } },
|
|
1559
|
+
{
|
|
1560
|
+
providers: [
|
|
1561
|
+
{
|
|
1562
|
+
provider: "TRANSAK",
|
|
1563
|
+
min: "5",
|
|
1564
|
+
max: "2000",
|
|
1565
|
+
visibility: "AUTH_GATED",
|
|
1566
|
+
answer: pricedAt("TRANSAK", "2000")
|
|
1567
|
+
},
|
|
1568
|
+
{
|
|
1569
|
+
provider: "COINBASE",
|
|
1570
|
+
min: "5",
|
|
1571
|
+
max: "2000",
|
|
1572
|
+
visibility: "AUTH_GATED",
|
|
1573
|
+
answer: pricedAt("COINBASE", "2000")
|
|
1574
|
+
}
|
|
1575
|
+
]
|
|
1576
|
+
}
|
|
1577
|
+
),
|
|
1487
1578
|
"fiat.retryable": fiat(
|
|
1488
1579
|
{ step: ORDER_REVIEW, submitOnOpen: "confirm" },
|
|
1489
1580
|
{ responses: { "/fiat/orders": UNAVAILABLE } }
|
|
@@ -1767,8 +1858,10 @@ function createPreviewFetch(scenario, passThrough) {
|
|
|
1767
1858
|
noRoute: noRouteReason,
|
|
1768
1859
|
ranges,
|
|
1769
1860
|
providers,
|
|
1770
|
-
currentLimit
|
|
1861
|
+
currentLimit,
|
|
1862
|
+
settles
|
|
1771
1863
|
} = scenario.backend;
|
|
1864
|
+
let settlesFrom;
|
|
1772
1865
|
const answer = (path, method, amount, search, asked) => {
|
|
1773
1866
|
if (path.endsWith("/fiat/routing/table")) {
|
|
1774
1867
|
return json(
|
|
@@ -1799,6 +1892,13 @@ function createPreviewFetch(scenario, passThrough) {
|
|
|
1799
1892
|
current = quote;
|
|
1800
1893
|
return json(quote);
|
|
1801
1894
|
}
|
|
1895
|
+
if (settles !== void 0 && path.endsWith(settles.endpoint)) {
|
|
1896
|
+
settlesFrom ??= Date.now();
|
|
1897
|
+
if (Date.now() - settlesFrom >= settles.afterMs) {
|
|
1898
|
+
current = settles.step;
|
|
1899
|
+
return json(current);
|
|
1900
|
+
}
|
|
1901
|
+
}
|
|
1802
1902
|
const listed = Object.entries(scenario.backend.responses ?? {}).find(
|
|
1803
1903
|
([endpoint]) => path.endsWith(endpoint)
|
|
1804
1904
|
)?.[1];
|