@funkit/connect-rn 9.2.0 → 9.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 +141 -0
- package/README.md +23 -0
- package/dist/{chunk-AI6F43VP.js → chunk-7EDY3KSV.js} +2 -2
- package/dist/chunk-7EDY3KSV.js.map +7 -0
- package/dist/{chunk-5DJHIA7X.js → chunk-EKU6Y6IC.js} +365 -92
- package/dist/chunk-EKU6Y6IC.js.map +7 -0
- package/dist/{chunk-OW6L3UM7.js → chunk-FAEJVOAC.js} +4 -1
- package/dist/chunk-FAEJVOAC.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 +19948 -15445
- package/dist/index.js.map +4 -4
- package/dist/preview.js +224 -34
- 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/components/v2/IconDisc.d.ts +14 -0
- package/dist/src/components/v2/IconDisc.d.ts.map +1 -0
- package/dist/src/components/v2/ListRow.d.ts +29 -0
- package/dist/src/components/v2/ListRow.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/KycGlassBackdrop.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/paymentAttempts.d.ts +79 -0
- package/dist/src/fiat/paymentAttempts.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 +10 -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/CoinbaseCheckoutSurface.d.ts +4 -1
- package/dist/src/fiat/providers/coinbase/CoinbaseCheckoutSurface.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/CoinbaseWarmup.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/coinbaseOnrampEvents.d.ts +6 -1
- package/dist/src/fiat/providers/coinbase/coinbaseOnrampEvents.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 +59 -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 +36 -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 +35 -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/usePaymentAttempts.d.ts +24 -0
- package/dist/src/fiat/usePaymentAttempts.d.ts.map +1 -0
- package/dist/src/fiat/usePaymentFailureAnswer.d.ts +40 -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/CryptoAddressPage.d.ts +29 -0
- package/dist/src/flow/CryptoAddressPage.d.ts.map +1 -0
- package/dist/src/flow/CryptoDepositStep.d.ts +33 -0
- package/dist/src/flow/CryptoDepositStep.d.ts.map +1 -0
- package/dist/src/flow/CryptoListPage.d.ts +17 -0
- package/dist/src/flow/CryptoListPage.d.ts.map +1 -0
- package/dist/src/flow/CryptoNetworkPage.d.ts +12 -0
- package/dist/src/flow/CryptoNetworkPage.d.ts.map +1 -0
- package/dist/src/flow/CryptoTokenPage.d.ts +15 -0
- package/dist/src/flow/CryptoTokenPage.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/DepositMatchSheet.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/FlowSheet.d.ts +12 -2
- package/dist/src/flow/FlowSheet.d.ts.map +1 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts +21 -2
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/SheetMaterial.d.ts +37 -1
- package/dist/src/flow/SheetMaterial.d.ts.map +1 -1
- package/dist/src/flow/WithdrawalFlowContent.d.ts.map +1 -1
- package/dist/src/flow/cryptoDepositFlow.d.ts +81 -0
- package/dist/src/flow/cryptoDepositFlow.d.ts.map +1 -0
- package/dist/src/flow/cryptoSheetSearch.d.ts +10 -0
- package/dist/src/flow/cryptoSheetSearch.d.ts.map +1 -0
- package/dist/src/flow/cryptoTokenList.d.ts +39 -0
- package/dist/src/flow/cryptoTokenList.d.ts.map +1 -0
- package/dist/src/flow/cryptoTokenPick.d.ts +16 -0
- package/dist/src/flow/cryptoTokenPick.d.ts.map +1 -0
- package/dist/src/flow/depositFlowConfig.d.ts +7 -0
- package/dist/src/flow/depositFlowConfig.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 +103 -0
- package/dist/src/flow/fiatSubmitRenderer.d.ts.map +1 -0
- package/dist/src/flow/renderFiatFlowScreen.d.ts +99 -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/selectedChainStorage.d.ts +9 -0
- package/dist/src/flow/selectedChainStorage.d.ts.map +1 -1
- package/dist/src/flow/sheetPressHold.d.ts.map +1 -1
- package/dist/src/flow/sheetSizing.d.ts +26 -0
- package/dist/src/flow/sheetSizing.d.ts.map +1 -1
- package/dist/src/flow/storedChain.d.ts +7 -2
- package/dist/src/flow/storedChain.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/track/events.d.ts +29 -0
- package/dist/src/hooks/track/events.d.ts.map +1 -0
- package/dist/src/hooks/track/useTrackV2.d.ts +8 -0
- package/dist/src/hooks/track/useTrackV2.d.ts.map +1 -0
- package/dist/src/hooks/useCheckoutsListenerByUserId.d.ts.map +1 -0
- package/dist/src/hooks/useEnclosingSheetOpen.d.ts +14 -0
- package/dist/src/hooks/useEnclosingSheetOpen.d.ts.map +1 -0
- package/dist/src/hooks/useGuardedAmountInput.d.ts +5 -0
- package/dist/src/hooks/useGuardedAmountInput.d.ts.map +1 -1
- 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/icons/assetLogos.d.ts.map +1 -1
- package/dist/src/native/glassEffect.d.ts +9 -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 +15 -3
- 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 +65 -9
- 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/providers/FunkitStatsigProvider.d.ts.map +1 -1
- package/dist/src/providers/FunkitStatsigWhnProvider.d.ts +10 -0
- package/dist/src/providers/FunkitStatsigWhnProvider.d.ts.map +1 -0
- 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/statsig/useFunWhnStatsigAnalytics.d.ts +4 -0
- package/dist/src/statsig/useFunWhnStatsigAnalytics.d.ts.map +1 -0
- package/dist/src/swapped/SwappedScreen.d.ts +4 -1
- package/dist/src/swapped/SwappedScreen.d.ts.map +1 -1
- package/dist/src/swapped/SwappedScreenShell.d.ts +4 -2
- package/dist/src/swapped/SwappedScreenShell.d.ts.map +1 -1
- package/dist/src/swapped/SwappedWebView.d.ts +4 -2
- package/dist/src/swapped/SwappedWebView.d.ts.map +1 -1
- package/dist/src/swapped/useSwappedBuyingCrypto.d.ts +23 -0
- package/dist/src/swapped/useSwappedBuyingCrypto.d.ts.map +1 -0
- 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/depositAssets.d.ts +4 -34
- package/dist/src/transfer/depositAssets.d.ts.map +1 -1
- package/dist/src/transfer/depositQrCodeUri.d.ts.map +1 -1
- package/dist/src/transfer/depositSelection.d.ts +1 -12
- package/dist/src/transfer/depositSelection.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useDepositAssets.d.ts +1 -1
- package/dist/src/transfer/hooks/useDepositAssets.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useLockedTokenAmount.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useSupportedTokens.d.ts +2 -0
- package/dist/src/transfer/hooks/useSupportedTokens.d.ts.map +1 -1
- package/dist/src/transfer/supportedTokens.d.ts +2 -16
- package/dist/src/transfer/supportedTokens.d.ts.map +1 -1
- package/dist/src/utils/tokenAndChainPicker.d.ts +2 -7
- package/dist/src/utils/tokenAndChainPicker.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/ios/FrostedGlassView.swift +28 -3
- package/ios/FunkitGlassEffectModule.swift +4 -0
- package/package.json +7 -2
- 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
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { type DepositAsset } from '../transfer/depositAssets';
|
|
2
|
+
/** The most tokens the currency page ranks above "More tokens" (Figma R6 4268-50356). */
|
|
3
|
+
export declare const TOP_TOKEN_LIMIT = 5;
|
|
4
|
+
/** How many of the remaining tickers the "More tokens" subtitle names. */
|
|
5
|
+
export declare const MORE_TOKENS_PREVIEW = 3;
|
|
6
|
+
export interface CryptoTokenSections {
|
|
7
|
+
/** The ranked tokens, shown first. */
|
|
8
|
+
top: DepositAsset[];
|
|
9
|
+
/** Everything else, under "More tokens", in the curated order. */
|
|
10
|
+
more: DepositAsset[];
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Splits the curated tokens into the ranked few and the rest.
|
|
14
|
+
* - Ranked by the customer's priority tokens, in their order, up to
|
|
15
|
+
* {@link TOP_TOKEN_LIMIT}.
|
|
16
|
+
* - With no priority token listed, the curated order's first few stand in, so
|
|
17
|
+
* the page never opens on a bare "More tokens".
|
|
18
|
+
*/
|
|
19
|
+
export declare function cryptoTokenSections(assets: DepositAsset[], prioritySymbols: string[]): CryptoTokenSections;
|
|
20
|
+
/** The token's name as the list shows it, e.g. "USD Coin"; its ticker when none is known. */
|
|
21
|
+
export declare function cryptoTokenName(asset: DepositAsset): string;
|
|
22
|
+
/**
|
|
23
|
+
* The long list's size as the "More tokens" subtitle states it (Figma R6
|
|
24
|
+
* 4076-41759, "1,000+ including…"): the leading digit kept and the rest
|
|
25
|
+
* zeroed, with a "+" when that drops any.
|
|
26
|
+
*/
|
|
27
|
+
export declare function roundedTokenCount(count: number): string;
|
|
28
|
+
/** The tickers the "More tokens" subtitle names, and whether more follow them. */
|
|
29
|
+
export declare function moreTokensPreview(more: DepositAsset[]): {
|
|
30
|
+
symbols: string[];
|
|
31
|
+
hasOthers: boolean;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* The tokens whose ticker or name matches `query`, ignoring case and outer
|
|
35
|
+
* spaces, best match first; ties keep the curated order. An empty query
|
|
36
|
+
* matches every token.
|
|
37
|
+
*/
|
|
38
|
+
export declare function searchCryptoTokens(assets: DepositAsset[], query: string): DepositAsset[];
|
|
39
|
+
//# sourceMappingURL=cryptoTokenList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cryptoTokenList.d.ts","sourceRoot":"","sources":["../../../src/flow/cryptoTokenList.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAW,MAAM,2BAA2B,CAAA;AAGtE,yFAAyF;AACzF,eAAO,MAAM,eAAe,IAAI,CAAA;AAEhC,0EAA0E;AAC1E,eAAO,MAAM,mBAAmB,IAAI,CAAA;AAEpC,MAAM,WAAW,mBAAmB;IAClC,sCAAsC;IACtC,GAAG,EAAE,YAAY,EAAE,CAAA;IACnB,kEAAkE;IAClE,IAAI,EAAE,YAAY,EAAE,CAAA;CACrB;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,YAAY,EAAE,EACtB,eAAe,EAAE,MAAM,EAAE,GACxB,mBAAmB,CAQrB;AAED,6FAA6F;AAC7F,wBAAgB,eAAe,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,CAG3D;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CASvD;AAED,kFAAkF;AAClF,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,YAAY,EAAE,GAAG;IACvD,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,SAAS,EAAE,OAAO,CAAA;CACnB,CAKA;AAsBD;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,YAAY,EAAE,EACtB,KAAK,EAAE,MAAM,GACZ,YAAY,EAAE,CAahB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { AvailableChain } from '../transfer/availableChains';
|
|
2
|
+
import type { DepositAsset } from '../transfer/depositAssets';
|
|
3
|
+
import type { FlowNav } from './FunkitFlowProvider';
|
|
4
|
+
import type { DepositSelection } from './useDepositSelection';
|
|
5
|
+
/**
|
|
6
|
+
* The currency page's tap: selects the token, then turns to its network, or
|
|
7
|
+
* straight to the address when one network carries it.
|
|
8
|
+
*/
|
|
9
|
+
export declare function cryptoTokenPick({ assets, chains, selection, checkoutId, nav, }: {
|
|
10
|
+
assets: DepositAsset[];
|
|
11
|
+
chains: AvailableChain[];
|
|
12
|
+
selection: Pick<DepositSelection, 'selectAsset'>;
|
|
13
|
+
checkoutId: string;
|
|
14
|
+
nav: Pick<FlowNav, 'navigate'>;
|
|
15
|
+
}): (symbol: string) => void;
|
|
16
|
+
//# sourceMappingURL=cryptoTokenPick.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cryptoTokenPick.d.ts","sourceRoot":"","sources":["../../../src/flow/cryptoTokenPick.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAG7D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAE7D;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAC9B,MAAM,EACN,MAAM,EACN,SAAS,EACT,UAAU,EACV,GAAG,GACJ,EAAE;IACD,MAAM,EAAE,YAAY,EAAE,CAAA;IACtB,MAAM,EAAE,cAAc,EAAE,CAAA;IACxB,SAAS,EAAE,IAAI,CAAC,gBAAgB,EAAE,aAAa,CAAC,CAAA;IAChD,UAAU,EAAE,MAAM,CAAA;IAClB,GAAG,EAAE,IAAI,CAAC,OAAO,EAAE,UAAU,CAAC,CAAA;CAC/B,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAkB3B"}
|
|
@@ -248,6 +248,13 @@ export interface DepositFlowConfig {
|
|
|
248
248
|
* The web `FunkitCheckoutConfig` satisfies this structurally.
|
|
249
249
|
*/
|
|
250
250
|
checkoutConfig?: DepositCheckoutConfig;
|
|
251
|
+
/**
|
|
252
|
+
* Whether the fiat on-ramp shows the destination token (ticker + icon) under
|
|
253
|
+
* the amount, e.g. "100 USD of DOGE". Defaults to `true`. The SDK picks the
|
|
254
|
+
* token from the selected {@link dynamicTargetAssetCandidates} entry; set
|
|
255
|
+
* `false` to hide the row, e.g. for a stablecoin deposit.
|
|
256
|
+
*/
|
|
257
|
+
showFiatDestinationToken?: boolean;
|
|
251
258
|
/**
|
|
252
259
|
* @deprecated Ignored — the user picks the source chain on the Select chain
|
|
253
260
|
* screen, which drives the generated address and QR type.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"depositFlowConfig.d.ts","sourceRoot":"","sources":["../../../src/flow/depositFlowConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AACrD,OAAO,KAAK,EACV,2BAA2B,EAC3B,2BAA2B,EAC3B,oBAAoB,EACpB,gBAAgB,EACjB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAEnC,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EACjB,MAAM,6BAA6B,CAAA;AACpC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAElD,YAAY,EA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C7E;;;;;;;OAOG;IACH,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,CAAA;IACjD;;;OAGG;IACH,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAA;CAC7C"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { FiatFlow } from '@funkit/connect-core';
|
|
2
|
+
import { type KycNoticeState } from '../fiat/kyc/kycCopy';
|
|
3
|
+
import { type ProviderFailover } from '../fiat/providerFailover';
|
|
4
|
+
/** Figma 2812:1135, measured on the 393 × 852 reference frame. */
|
|
5
|
+
export declare const FAILURE_BANNER_TOP = 56;
|
|
6
|
+
export declare function useThrottleBanner(bannerTop: number, contactRateLimited: boolean, throttleEvent: number): {
|
|
7
|
+
throttleBanner: import("react").JSX.Element | undefined;
|
|
8
|
+
};
|
|
9
|
+
export declare function useOutcomeBanner(identityNoticeState: KycNoticeState | undefined, kycSubmission: number): {
|
|
10
|
+
outcomeBanner: import("react").JSX.Element | undefined;
|
|
11
|
+
};
|
|
12
|
+
export declare function useHandoffBanner(flow: FiatFlow, isHandedOff: boolean, failovers: readonly ProviderFailover[], bannerTop: number): {
|
|
13
|
+
isOnEntry: boolean;
|
|
14
|
+
handoffBanner: import("react").JSX.Element | undefined;
|
|
15
|
+
};
|
|
16
|
+
export declare const styles: {
|
|
17
|
+
outcomeBanner: {
|
|
18
|
+
position: "absolute";
|
|
19
|
+
top: number;
|
|
20
|
+
left: number;
|
|
21
|
+
right: number;
|
|
22
|
+
};
|
|
23
|
+
failureBanner: {
|
|
24
|
+
position: "absolute";
|
|
25
|
+
left: number;
|
|
26
|
+
right: number;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=entryBanners.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entryBanners.d.ts","sourceRoot":"","sources":["../../../src/flow/entryBanners.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAQpD,OAAO,EAAE,KAAK,cAAc,EAAkB,MAAM,qBAAqB,CAAA;AACzE,OAAO,EACL,KAAK,gBAAgB,EAEtB,MAAM,0BAA0B,CAAA;AAGjC,kEAAkE;AAClE,eAAO,MAAM,kBAAkB,KAAK,CAAA;AAEpC,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE,MAAM,EACjB,kBAAkB,EAAE,OAAO,EAC3B,aAAa,EAAE,MAAM;;EAuBtB;AAED,wBAAgB,gBAAgB,CAC9B,mBAAmB,EAAE,cAAc,GAAG,SAAS,EAC/C,aAAa,EAAE,MAAM;;EA8BtB;AAED,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,QAAQ,EACd,WAAW,EAAE,OAAO,EACpB,SAAS,EAAE,SAAS,gBAAgB,EAAE,EACtC,SAAS,EAAE,MAAM;;;EA+BlB;AAED,eAAO,MAAM,MAAM;;;;;;;;;;;;CAMjB,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { FiatFlow, FiatProvider, Surface } from '@funkit/connect-core';
|
|
2
|
+
import { type ReactElement, type ReactNode } from 'react';
|
|
3
|
+
import { useApplePayStages } from '../fiat/applePayAttempt';
|
|
4
|
+
import { otpScreenProps } from '../fiat/otpScreenProps';
|
|
5
|
+
import { stripeSignInStep } from '../fiat/providers/stripe/stripeSignInStep';
|
|
6
|
+
import { useStripeAuthClosing } from '../fiat/providers/stripe/useStripeSessionAuth';
|
|
7
|
+
import { useOtpReceipt } from '../fiat/useOtpReceipt';
|
|
8
|
+
import type { FiatRailConfig } from './depositFlowConfig';
|
|
9
|
+
import { type CaptureSurfaces, type ScreenShell, type SurfaceFailure } from './screenBundles';
|
|
10
|
+
export declare function renderPaymentCapture(flow: FiatFlow, { entryScreen, unsupportedContext, close, onBackToEntry }: ScreenShell, { stepSurface, stepSurfacePresentation, stripeCaptureAdapters, surfaceAttempt, failSurface, reportSurface, markProviderSettled, }: CaptureSurfaces, stripeSheet: ReactNode | undefined): ReactElement;
|
|
11
|
+
export declare function renderSurfaceFailed(flow: FiatFlow, { t, close }: ScreenShell, surfaceFailure: SurfaceFailure, { provider, fiat, retrySurface, pressPaymentMethod, }: {
|
|
12
|
+
provider: FiatProvider | undefined;
|
|
13
|
+
fiat: FiatRailConfig;
|
|
14
|
+
retrySurface: () => void;
|
|
15
|
+
pressPaymentMethod: (() => void) | undefined;
|
|
16
|
+
}): ReactElement;
|
|
17
|
+
export declare function renderBackgroundCapture({ entryScreen, renderEntry, onBackToEntry }: ScreenShell, { stripeCaptureAdapters, surfaceAttempt, failSurface, reportSurface, markProviderSettled, }: CaptureSurfaces, backgroundCapture: Surface | undefined): ReactElement;
|
|
18
|
+
export declare function renderOtp(flow: FiatFlow, { t, renderEntry, unsupportedContext, onBackToEntry }: ScreenShell, { stripeSignIn, contacts, otpReceipt, }: {
|
|
19
|
+
stripeSignIn: ReturnType<typeof stripeSignInStep>;
|
|
20
|
+
contacts: Parameters<typeof otpScreenProps>[2];
|
|
21
|
+
otpReceipt: ReturnType<typeof useOtpReceipt>;
|
|
22
|
+
}): ReactElement;
|
|
23
|
+
export declare function renderAuthCapture(flow: FiatFlow, { entryScreen, unsupportedContext, onBackToEntry }: ScreenShell, { stepSurface, stepSurfacePresentation, stripeCaptureAdapters, surfaceAttempt, failSurface, authResultTransition, readinessTiming, setReadySurface, }: CaptureSurfaces, { isEmbeddedAuth, stripeSignIn, submitApplePayTransition, provider, closeStripeAuth, }: {
|
|
24
|
+
isEmbeddedAuth: boolean;
|
|
25
|
+
stripeSignIn: ReturnType<typeof stripeSignInStep>;
|
|
26
|
+
submitApplePayTransition: ReturnType<typeof useApplePayStages>['submitApplePayTransition'];
|
|
27
|
+
provider: FiatProvider | undefined;
|
|
28
|
+
closeStripeAuth: ReturnType<typeof useStripeAuthClosing>['closeStripeAuth'];
|
|
29
|
+
}): ReactElement;
|
|
30
|
+
//# sourceMappingURL=fiatStepScreens.d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E,YAAY,GAAG,SAAS,CAAA;IAClC,eAAe,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,iBAAiB,CAAC,CAAA;CAC5E,GACA,YAAY,CAwDd"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import type { EntryCta, FailureReason, FiatFlow, FiatQuoteNoRoute, FunkitUserIpInfo, SurfaceResult, SurfaceTransition, UseFiatQuoteResult } from '@funkit/connect-core';
|
|
2
|
+
import type { TFunction } from 'i18next';
|
|
3
|
+
import type { ComponentType, Dispatch, ReactNode, SetStateAction } from 'react';
|
|
4
|
+
import { type EmbeddedSlot, type useSlotReadiness } from '../fiat/actionSlot';
|
|
5
|
+
import type { useApplePayAttempt } from '../fiat/applePayAttempt';
|
|
6
|
+
import type { PaymentDisclosures } from '../fiat/disclosureFooterContent';
|
|
7
|
+
import { type ProviderFailover } from '../fiat/providerFailover';
|
|
8
|
+
import type { ReadySurface, SurfaceAdapter } from '../fiat/providers/adapter';
|
|
9
|
+
import type { StripeApplePayButtonProps } from '../fiat/providers/stripe/stripeOnramp';
|
|
10
|
+
import type { useBlockedState, useRegionCurrency } from '../fiat/quoteRouting';
|
|
11
|
+
import type { useCapturedPayment } from '../fiat/stepSurface';
|
|
12
|
+
import type { useDepositSettlement } from '../fiat/useDepositSettlement';
|
|
13
|
+
import type { useAuthHandoff } from '../fiat/useAuthHandoff';
|
|
14
|
+
import type { PaymentAttempts } from '../fiat/usePaymentAttempts';
|
|
15
|
+
import type { useCaptureHold } from '../fiat/useCaptureHold';
|
|
16
|
+
import type { useEntryQuote } from '../fiat/useEntryQuote';
|
|
17
|
+
import type { useSurfaceAttempt } from '../fiat/useSurfaceAttempt';
|
|
18
|
+
import type { FiatRailConfig } from './depositFlowConfig';
|
|
19
|
+
import type { DepositRailCopy } from './depositRailCopy';
|
|
20
|
+
import { type StepSurfaces, type SurfaceFailure } from './screenBundles';
|
|
21
|
+
export declare function createFiatSubmitRenderer({ amount, entryCta, isEntryReady, noRouteLabel, currencyLookupFailed, onRetryCurrencyLookup, flowRefused, paymentUnavailable, onRetryFlowRefusal, onRetryUnavailable, shownQuoteRef, quoteState, flow, reportSurface, t, canSubmitQuote, depositAddressUnavailable, onRetryDepositAddress, surfaceAttempt, onSurfaceFailed, onSurfaceReadyChange, readinessTiming, onSurfaceDeclared, onApplePayUncovered, onSettled, onPaymentFailed, onClose, paymentAttempts, }: {
|
|
22
|
+
amount: string;
|
|
23
|
+
entryCta: EntryCta;
|
|
24
|
+
isEntryReady: boolean;
|
|
25
|
+
/** Set when no provider will price these inputs however often it is asked. */
|
|
26
|
+
noRouteLabel: string | undefined;
|
|
27
|
+
/** No price was asked for, because the buyer's currency is unknown. */
|
|
28
|
+
currencyLookupFailed: boolean;
|
|
29
|
+
onRetryCurrencyLookup: () => void;
|
|
30
|
+
flowRefused: boolean;
|
|
31
|
+
paymentUnavailable: boolean;
|
|
32
|
+
onRetryFlowRefusal: () => void;
|
|
33
|
+
onRetryUnavailable: () => void;
|
|
34
|
+
/** The round the screen is drawing, so a remount rebuilds its surface. */
|
|
35
|
+
shownQuoteRef: string | undefined;
|
|
36
|
+
quoteState: UseFiatQuoteResult;
|
|
37
|
+
flow: FiatFlow;
|
|
38
|
+
/** The flow's own report, wrapped so the step learns of a completed capture. */
|
|
39
|
+
reportSurface: (result: SurfaceResult, transition?: SurfaceTransition) => Promise<void>;
|
|
40
|
+
t: TFunction;
|
|
41
|
+
/** Whether a tap on the app's own action would do anything. */
|
|
42
|
+
canSubmitQuote: boolean;
|
|
43
|
+
depositAddressUnavailable: boolean;
|
|
44
|
+
onRetryDepositAddress: () => void;
|
|
45
|
+
surfaceAttempt: number;
|
|
46
|
+
onSurfaceFailed: (code: string, detail?: string) => void;
|
|
47
|
+
onSurfaceReadyChange: (ready: boolean) => void;
|
|
48
|
+
readinessTiming?: {
|
|
49
|
+
attemptId: string;
|
|
50
|
+
selectedAt: number;
|
|
51
|
+
};
|
|
52
|
+
onSurfaceDeclared: (surface: ReadySurface) => void;
|
|
53
|
+
onApplePayUncovered?: () => void;
|
|
54
|
+
/** The rail says the crypto is sent. See {@link SurfaceContext.onSettled}. */
|
|
55
|
+
onSettled: () => void;
|
|
56
|
+
/** See {@link SurfaceContext.onPaymentFailed}. */
|
|
57
|
+
onPaymentFailed: (code: string) => void;
|
|
58
|
+
onClose: () => void;
|
|
59
|
+
paymentAttempts: PaymentAttempts;
|
|
60
|
+
}): (() => ReactNode) | undefined;
|
|
61
|
+
/** The amount screen's action slot. Each override below wins over the ones above it. */
|
|
62
|
+
export declare function useFiatSubmit({ amount, applePayAttempt: { onBackToEntry, readinessTiming, reportApplePayUncovered, submitApplePayTransition, }, authHandoff: { handOffAuth, isAuthHandoffHeld, isEmbeddedAuth, releaseAuthHandoff, }, blocked: { paymentUnavailable, resolvedStep }, canSubmitQuote, capture: { capturedPayment, failPaymentSurface, reportSurface }, captureHold: { isHeldAfterDismissal, isHeldForTap, releaseHeld }, close, depositAddressUnavailable, entryQuote: { entryCta, flowStep, isEntryReady, provider, recordProviderFeeQuote, shownQuote, }, failedPayment, failovers, fiat, flow, heldSlot, noRoute, pageIdentity, paymentAttempts, paymentDisclosures, quoteState, railCopy, refusal, regionCurrency: { isRegionCurrencyFailed, refetchRegionCurrency }, retryDepositAddress, setReadySurface, setSurfaceReady, settlement: { isAwaitingSettlement, markProviderPaymentFailed, markProviderSettled, }, slotReadiness: { authSlotKey, captureSlotKey, reportAuthReady, reportCaptureReady, }, stepSurfaces: { authResultTransition, isEmbeddedPayment, stepSurface }, StripeApplePayButton, stripeCaptureAdapters, surfaceAttempts: { failSurface, retrySurface, surfaceAttempt, surfaceFailure, }, t, userIpInfo, }: {
|
|
63
|
+
amount: string;
|
|
64
|
+
applePayAttempt: ReturnType<typeof useApplePayAttempt>;
|
|
65
|
+
authHandoff: ReturnType<typeof useAuthHandoff>;
|
|
66
|
+
blocked: ReturnType<typeof useBlockedState>;
|
|
67
|
+
canSubmitQuote: boolean;
|
|
68
|
+
capture: ReturnType<typeof useCapturedPayment>;
|
|
69
|
+
captureHold: ReturnType<typeof useCaptureHold>;
|
|
70
|
+
close: () => void;
|
|
71
|
+
depositAddressUnavailable: boolean;
|
|
72
|
+
entryQuote: ReturnType<typeof useEntryQuote>;
|
|
73
|
+
failedPayment: SurfaceFailure | undefined;
|
|
74
|
+
failovers: readonly ProviderFailover[];
|
|
75
|
+
fiat: FiatRailConfig;
|
|
76
|
+
flow: FiatFlow;
|
|
77
|
+
heldSlot: EmbeddedSlot | undefined;
|
|
78
|
+
noRoute: FiatQuoteNoRoute | undefined;
|
|
79
|
+
pageIdentity: string;
|
|
80
|
+
paymentAttempts: PaymentAttempts;
|
|
81
|
+
paymentDisclosures: {
|
|
82
|
+
disclosures: PaymentDisclosures | undefined;
|
|
83
|
+
record: (disclosures: PaymentDisclosures) => void;
|
|
84
|
+
};
|
|
85
|
+
quoteState: UseFiatQuoteResult;
|
|
86
|
+
railCopy: DepositRailCopy;
|
|
87
|
+
refusal: FailureReason | undefined;
|
|
88
|
+
regionCurrency: ReturnType<typeof useRegionCurrency>;
|
|
89
|
+
retryDepositAddress: () => void;
|
|
90
|
+
setReadySurface: Dispatch<SetStateAction<ReadySurface | undefined>>;
|
|
91
|
+
setSurfaceReady: Dispatch<SetStateAction<boolean>>;
|
|
92
|
+
settlement: ReturnType<typeof useDepositSettlement>;
|
|
93
|
+
slotReadiness: ReturnType<typeof useSlotReadiness>;
|
|
94
|
+
stepSurfaces: StepSurfaces;
|
|
95
|
+
StripeApplePayButton: ComponentType<StripeApplePayButtonProps> | undefined;
|
|
96
|
+
stripeCaptureAdapters: SurfaceAdapter[];
|
|
97
|
+
surfaceAttempts: ReturnType<typeof useSurfaceAttempt>;
|
|
98
|
+
t: TFunction<'translation', undefined>;
|
|
99
|
+
userIpInfo: FunkitUserIpInfo | undefined;
|
|
100
|
+
}): {
|
|
101
|
+
renderSubmit: (() => ReactNode) | undefined;
|
|
102
|
+
};
|
|
103
|
+
//# sourceMappingURL=fiatSubm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{ TFunction } from 'i18next';
|
|
3
|
+
import { type ReactNode } from 'react';
|
|
4
|
+
import { type DepositCardScreen } from '../fiat/processing/DepositCardSheet';
|
|
5
|
+
import type { ContactRound, useContact } from '../fiat/contactRound';
|
|
6
|
+
import type { FiatKycOptionRowProps } from '../fiat/FiatKycOptionRow';
|
|
7
|
+
import { KnownContacts } from '../fiat/knownContacts';
|
|
8
|
+
import type { useKycScreens } from '../fiat/kyc/useKycScreens';
|
|
9
|
+
import type { useFieldLimits } from '../fiat/fieldLimits';
|
|
10
|
+
import type { useKycVerdict } from '../fiat/kyc/kycVerdict';
|
|
11
|
+
import type { ReadySurface, SurfaceAdapter } from '../fiat/providers/adapter';
|
|
12
|
+
import type { StripeApplePayButtonProps, StripeOnrampClient } from '../fiat/providers/stripe/stripeOnramp';
|
|
13
|
+
import type { useStripeAuthClosing } from '../fiat/providers/stripe/useStripeSessionAuth';
|
|
14
|
+
import type { useStripeSheets } from '../fiat/providers/stripe/useStripeSheets';
|
|
15
|
+
import type { useBlockedState, useRegionCurrency, useRetryNotice } from '../fiat/quoteRouting';
|
|
16
|
+
import { type useCapturedPayment } from '../fiat/stepSurface';
|
|
17
|
+
import type { useApplePayAttempt } from '../fiat/applePayAttempt';
|
|
18
|
+
import type { useDepositSettlement } from '../fiat/useDepositSettlement';
|
|
19
|
+
import type { useSurfaceAttempt } from '../fiat/useSurfaceAttempt';
|
|
20
|
+
import type { useOtpReceipt } from '../fiat/useOtpReceipt';
|
|
21
|
+
import type { PaymentAttempts } from '../fiat/usePaymentAttempts';
|
|
22
|
+
import type { PaymentFailureAnswer } from '../fiat/usePaymentFailureAnswer';
|
|
23
|
+
import type { NestedSheet } from '../hooks/useNestedSheet';
|
|
24
|
+
import { type DepositCoverRefs } from '../screens/DepositAmountScreen';
|
|
25
|
+
import type { DepositAmountEntryConfig, FiatRailConfig } from './depositFlowConfig';
|
|
26
|
+
import type { DepositRailCopy } from './depositRailCopy';
|
|
27
|
+
import type { useFeeDetails } from './useFeeDetails';
|
|
28
|
+
import { type StepSurfaces, type SurfaceFailure } from './screenBundles';
|
|
29
|
+
/** The screen the fiat step draws, picked from the state `useFiatFlowScreen` holds. */
|
|
30
|
+
export declare function renderFiatFlowScreen({ accountIneligible, amount, applePayAttempt: { readinessTiming, submitApplePayTransition }, blocked: { blockedState, paymentUnavailable }, canSubmitQuote, capture: { capturedPayment, reportSurface, staleQuote }, cardSheet, changeAmount, close, config, contact: { contactFailure, contactRateLimited, contactRound, isContactStepOver, phoneReverify, setContactRound, }, contacts, coverRefs, failedPayment, feeDetails: { canOpenFeeDetails, feeDrawer, feeLine, matchLine, openFeeDetails, }, fiat, fieldLimits: { amountCurrency, fieldLimitUsd, minLimitUsd }, flow, footer, handoffBanner, hideAttribution, isAccepting, isActionPending, isDirect, isEmbeddedAuth, isHeldForTap, isPreparingCheckout, kycRoutes, kycScreens: { kycCapture, kycForm }, kycVerdict: { isExtendedReview, kycCardOutcome, kycCompletion }, locale, lockAmount, notice, onBackToEntry, onChangeAmount, onKycOptions, otpReceipt, outcomeBanner, PayButton, paymentAttempts, paymentFailure, pressEntry, pressPaymentMethod, provider, quoteState, railCopy, recoverableRejection, regionCurrency: { isRegionCurrencyLoading, quoteCurrency }, renderSubmit, retryNotice: { isReplayable, isRetrying, rateLimitMessage, setIsRetrying }, roundOutlivedItsQuote, setCollected, setOnKycOptions, setReadySurface, settlement: { cryptoSent, isAwaitingSettlement, landsOnCard, markProviderSettled, setLandingShown, }, stepSurfaces: { authResultTransition, backgroundCapture, stepSurface, stepSurfacePresentation, }, stripeAuthClosing: { closeStripeAuth, isClosingStripeAuth, stripeSessionAuth, }, stripeCaptureAdapters, stripeOnramp, stripeSheets: { opensStripeSheet, stripeAuthSheet, stripePaySheet }, submitEntry, submitLabel, surfaceAttempts: { failSurface, resend, retrySurface, surfaceAttempt, surfaceFailure, }, t, throttleBanner, unavailableBanner, userIpInfo, }: {
|
|
31
|
+
accountIneligible: boolean;
|
|
32
|
+
amount: string;
|
|
33
|
+
applePayAttempt: ReturnType<typeof useApplePayAttempt>;
|
|
34
|
+
blocked: ReturnType<typeof useBlockedState>;
|
|
35
|
+
canSubmitQuote: boolean;
|
|
36
|
+
capture: ReturnType<typeof useCapturedPayment>;
|
|
37
|
+
cardSheet: NestedSheet<DepositCardScreen>;
|
|
38
|
+
changeAmount: (next: string) => void;
|
|
39
|
+
close: () => void;
|
|
40
|
+
config: DepositAmountEntryConfig;
|
|
41
|
+
contact: ReturnType<typeof useContact>;
|
|
42
|
+
contacts: KnownContacts;
|
|
43
|
+
coverRefs: DepositCoverRefs;
|
|
44
|
+
failedPayment: SurfaceFailure | undefined;
|
|
45
|
+
feeDetails: ReturnType<typeof useFeeDetails>;
|
|
46
|
+
fiat: FiatRailConfig;
|
|
47
|
+
fieldLimits: ReturnType<typeof useFieldLimits>;
|
|
48
|
+
flow: FiatFlow;
|
|
49
|
+
footer: ReactNode;
|
|
50
|
+
handoffBanner: React.JSX.Element | undefined;
|
|
51
|
+
hideAttribution: boolean;
|
|
52
|
+
isAccepting: boolean;
|
|
53
|
+
isActionPending: boolean;
|
|
54
|
+
isDirect: boolean;
|
|
55
|
+
isEmbeddedAuth: boolean;
|
|
56
|
+
isHeldForTap: boolean;
|
|
57
|
+
isPreparingCheckout: boolean;
|
|
58
|
+
kycRoutes: FiatKycOptionRowProps[] | undefined;
|
|
59
|
+
kycScreens: ReturnType<typeof useKycScreens>;
|
|
60
|
+
kycVerdict: ReturnType<typeof useKycVerdict>;
|
|
61
|
+
locale: 'en' | 'zh' | 'ko' | 'ja' | 'tr' | 'es' | 'ru' | 'fr';
|
|
62
|
+
lockAmount: boolean | undefined;
|
|
63
|
+
notice: React.JSX.Element | undefined;
|
|
64
|
+
onBackToEntry: () => void;
|
|
65
|
+
onChangeAmount: (amount: string) => void;
|
|
66
|
+
onKycOptions: boolean;
|
|
67
|
+
otpReceipt: ReturnType<typeof useOtpReceipt>;
|
|
68
|
+
outcomeBanner: React.JSX.Element | undefined;
|
|
69
|
+
PayButton: React.ComponentType<StripeApplePayButtonProps> | undefined;
|
|
70
|
+
paymentAttempts: PaymentAttempts;
|
|
71
|
+
paymentFailure: PaymentFailureAnswer;
|
|
72
|
+
pressEntry: () => void;
|
|
73
|
+
pressPaymentMethod: (() => void) | undefined;
|
|
74
|
+
provider: FiatProvider | undefined;
|
|
75
|
+
quoteState: UseFiatQuoteResult;
|
|
76
|
+
railCopy: DepositRailCopy;
|
|
77
|
+
recoverableRejection: boolean;
|
|
78
|
+
regionCurrency: ReturnType<typeof useRegionCurrency>;
|
|
79
|
+
renderSubmit: (() => ReactNode) | undefined;
|
|
80
|
+
retryNotice: ReturnType<typeof useRetryNotice>;
|
|
81
|
+
roundOutlivedItsQuote: boolean;
|
|
82
|
+
setCollected: React.Dispatch<React.SetStateAction<KnownContacts>>;
|
|
83
|
+
setOnKycOptions: React.Dispatch<React.SetStateAction<boolean>>;
|
|
84
|
+
setReadySurface: React.Dispatch<React.SetStateAction<ReadySurface | undefined>>;
|
|
85
|
+
settlement: ReturnType<typeof useDepositSettlement>;
|
|
86
|
+
stepSurfaces: StepSurfaces;
|
|
87
|
+
stripeAuthClosing: ReturnType<typeof useStripeAuthClosing>;
|
|
88
|
+
stripeCaptureAdapters: SurfaceAdapter[];
|
|
89
|
+
stripeOnramp: StripeOnrampClient | undefined;
|
|
90
|
+
stripeSheets: ReturnType<typeof useStripeSheets>;
|
|
91
|
+
submitEntry: (round?: ContactRound) => void;
|
|
92
|
+
submitLabel: string;
|
|
93
|
+
surfaceAttempts: ReturnType<typeof useSurfaceAttempt>;
|
|
94
|
+
t: TFunction<'translation', undefined>;
|
|
95
|
+
throttleBanner: React.JSX.Element | undefined;
|
|
96
|
+
unavailableBanner: React.JSX.Element | undefined;
|
|
97
|
+
userIpInfo: FunkitUserIpInfo | undefined;
|
|
98
|
+
}): import("react").JSX.Element;
|
|
99
|
+
//# sourceMappingURL=renderFiatFlowScreen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+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ACnD,YAAY,EAAE,YAAY,CAAA;IAC1B,iBAAiB,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAA;IAC1D,qBAAqB,EAAE,cAAc,EAAE,CAAA;IACvC,YAAY,EAAE,kBAAkB,GAAG,SAAS,CAAA;IAC5C,YAAY,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAA;IAChD,WAAW,EAAE,CAAC,KAAK,CAAC,EAAE,YAAY,KAAK,IAAI,CAAA;IAC3C,WAAW,EAAE,MAAM,CAAA;IACnB,eAAe,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAA;IACrD,CAAC,EAAE,SAAS,CAAC,aAAa,EAAE,SAAS,CAAC,CAAA;IACtC,cAAc,EAAE,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,SAAS,CAAA;IAC7C,iBAAiB,EAAE,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,SAAS,CAAA;IAChD,UAAU,EAAE,gBAAgB,GAAG,SAAS,CAAA;CACzC,+BAwlBA"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { type FiatFlow, type FiatStepResponse, type Surface, type SurfaceResult, type SurfaceTransition } from '@funkit/connect-core';
|
|
2
|
+
import { type TFunction } from 'i18next';
|
|
3
|
+
import { type ReactElement, type ReactNode } from 'react';
|
|
4
|
+
import { type InputStep } from '../fiat/providerFailover';
|
|
5
|
+
import { type ApplePayReadinessTiming, type ReadySurface } from '../fiat/providers/adapter';
|
|
6
|
+
import { type useStripeState } from '../fiat/providers/stripe/useStripeState';
|
|
7
|
+
import { type surfacePresentation } from '../fiat/surfaceRegistry';
|
|
8
|
+
export declare const noop: () => undefined;
|
|
9
|
+
/** What a screen falls back on: the amount beneath it, and its ways out. */
|
|
10
|
+
export interface ScreenShell {
|
|
11
|
+
t: TFunction;
|
|
12
|
+
entryScreen: ReactElement;
|
|
13
|
+
renderEntry: (slot?: ReactNode, options?: {
|
|
14
|
+
pending?: boolean;
|
|
15
|
+
}) => ReactElement;
|
|
16
|
+
unsupportedContext: {
|
|
17
|
+
provider: FiatStepResponse['provider'] | undefined;
|
|
18
|
+
screen: FiatFlow['page']['screen'];
|
|
19
|
+
};
|
|
20
|
+
close: () => void;
|
|
21
|
+
onBackToEntry: () => void;
|
|
22
|
+
}
|
|
23
|
+
/** A provider that gave up, and the sentence it left the user with. */
|
|
24
|
+
export interface SurfaceFailure {
|
|
25
|
+
code: string;
|
|
26
|
+
detail?: string;
|
|
27
|
+
/** The provider's refusal at this input step: the flow fails over from it instead of answering it. */
|
|
28
|
+
failsOver?: InputStep;
|
|
29
|
+
}
|
|
30
|
+
/** The step's capture surface, with what every render of it is handed. */
|
|
31
|
+
export interface CaptureSurfaces {
|
|
32
|
+
stepSurface: Surface | undefined;
|
|
33
|
+
stepSurfacePresentation: ReturnType<typeof surfacePresentation> | undefined;
|
|
34
|
+
stripeCaptureAdapters: ReturnType<typeof useStripeState>['stripeCaptureAdapters'];
|
|
35
|
+
surfaceAttempt: number;
|
|
36
|
+
failSurface: (code: string, detail?: string) => void;
|
|
37
|
+
reportSurface: (result: SurfaceResult, transition?: SurfaceTransition) => Promise<void>;
|
|
38
|
+
markProviderSettled: (settlement?: 'PAID') => void;
|
|
39
|
+
surfaceFailure: SurfaceFailure | undefined;
|
|
40
|
+
authResultTransition: FiatFlow['ctas'][number] | undefined;
|
|
41
|
+
readinessTiming: ApplePayReadinessTiming | undefined;
|
|
42
|
+
setReadySurface: (surface: ReadySurface | undefined) => void;
|
|
43
|
+
}
|
|
44
|
+
/** The step's provider surface, as `stepSurfaceOf` reads it off the flow. */
|
|
45
|
+
export type StepSurfaces = Pick<CaptureSurfaces, 'stepSurface' | 'stepSurfacePresentation' | 'authResultTransition'> & {
|
|
46
|
+
isEmbeddedPayment: boolean;
|
|
47
|
+
backgroundCapture: Surface | undefined;
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=screenBundles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version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C,EAAE,SAAS,CAAA;CACtB;AAED,0EAA0E;AAC1E,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,OAAO,GAAG,SAAS,CAAA;IAChC,uBAAuB,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,GAAG,SAAS,CAAA;IAC3E,qBAAqB,EAAE,UAAU,CAC/B,OAAO,cAAc,CACtB,CAAC,uBAAuB,CAAC,CAAA;IAC1B,cAAc,EAAE,MAAM,CAAA;IACtB,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACpD,aAAa,EAAE,CACb,MAAM,EAAE,aAAa,EACrB,UAAU,CAAC,EAAE,iBAAiB,KAC3B,OAAO,CAAC,IAAI,CAAC,CAAA;IAClB,mBAAmB,EAAE,CAAC,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAClD,cAAc,EAAE,cAAc,GAAG,SAAS,CAAA;IAC1C,oBAAoB,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,GAAG,SAAS,CAAA;IAC1D,eAAe,EAAE,uBAAuB,GAAG,SAAS,CAAA;IACpD,eAAe,EAAE,CAAC,OAAO,EAAE,YAAY,GAAG,SAAS,KAAK,IAAI,CAAA;CAC7D;AAED,6EAA6E;AAC7E,MAAM,MAAM,YAAY,GAAG,IAAI,CAC7B,eAAe,EACf,aAAa,GAAG,yBAAyB,GAAG,sBAAsB,CACnE,GAAG;IACF,iBAAiB,EAAE,OAAO,CAAA;IAC1B,iBAAiB,EAAE,OAAO,GAAG,SAAS,CAAA;CACvC,CAAA"}
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
/** Null when nothing is stored, or the read failed — the caller just asks. */
|
|
2
2
|
export declare function readSelectedChainId(userId: string): Promise<string | null>;
|
|
3
3
|
export declare function writeSelectedChainId(userId: string, chainId: string): Promise<void>;
|
|
4
|
+
/** A token pick, by symbol, with the chain it was picked on. */
|
|
5
|
+
export interface StoredTokenPick {
|
|
6
|
+
chainId: string;
|
|
7
|
+
symbol: string;
|
|
8
|
+
}
|
|
9
|
+
/** The stored token pick; null when none is stored, or the read failed. */
|
|
10
|
+
export declare function readSelectedToken(userId: string): Promise<StoredTokenPick | null>;
|
|
11
|
+
/** Stores the token picked on `chainId`; `null` clears a pick the chain dropped. */
|
|
12
|
+
export declare function writeSelectedToken(userId: string, pick: StoredTokenPick | null): Promise<void>;
|
|
4
13
|
//# sourceMappingURL=selectedChainStorage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectedChainStorage.d.ts","sourceRoot":"","sources":["../../../src/flow/selectedChainStorage.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"selectedChainStorage.d.ts","sourceRoot":"","sources":["../../../src/flow/selectedChainStorage.ts"],"names":[],"mappings":"AAqBA,8EAA8E;AAC9E,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAE1E;AAED,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,IAAI,CAAC,CASf;AAED,gEAAgE;AAChE,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;CACf;AAMD,2EAA2E;AAC3E,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC,CAUjC;AAED,oFAAoF;AACpF,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,eAAe,GAAG,IAAI,GAC3B,OAAO,CAAC,IAAI,CAAC,CAgBf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sheetPressHold.d.ts","sourceRoot":"","sources":["../../../src/flow/sheetPressHold.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sheetPressHold.d.ts","sourceRoot":"","sources":["../../../src/flow/sheetPressHold.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAA;AAEzD;;;GAGG;AACH,eAAO,MAAM,qBAAqB,gCAAuB,IAAI,CAAkB,CAAA;AAE/E,wBAAgB,iBAAiB,UAFwB,IAAI,CAI5D;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,MAAM,EACN,OAAO,GACR,EAAE;IACD,MAAM,EAAE,OAAO,CAAA;IACf,OAAO,EAAE,OAAO,CAAA;CACjB;;;;2BAS2C,qBAAqB;EAMhE"}
|
|
@@ -13,6 +13,32 @@ export declare function sheetSizing({ detent }: {
|
|
|
13
13
|
enableDynamicSizing: boolean;
|
|
14
14
|
snapPoints: SheetDetent[];
|
|
15
15
|
};
|
|
16
|
+
/**
|
|
17
|
+
* Sizing props for a sheet resting at fixed heights, `gap` clear of the screen's
|
|
18
|
+
* bottom edge. gorhom is given no insets: with a top or bottom inset it rests a
|
|
19
|
+
* detached modal that much lower than its own detents, so the gap is paid here.
|
|
20
|
+
* The caller keeps `detents` stable, since gorhom re-lays the sheet out on a new
|
|
21
|
+
* snapPoints identity.
|
|
22
|
+
*/
|
|
23
|
+
export declare function insetSheetSizing(detents: number[], gap: number): {
|
|
24
|
+
enableDynamicSizing: boolean;
|
|
25
|
+
snapPoints: number[];
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* The height an inset sheet's card stands: what shows of the sheet less the gap
|
|
29
|
+
* below it, so the card and the foot of its page stay on screen at every detent.
|
|
30
|
+
* - Held between the lowest and highest detents, so the card slides rather than
|
|
31
|
+
* resizes while the sheet presents, dismisses, or is dragged past a detent.
|
|
32
|
+
* - Before gorhom measures its container, the highest detent stands in.
|
|
33
|
+
*/
|
|
34
|
+
export declare function insetCardHeight(bounds: {
|
|
35
|
+
lowest: number;
|
|
36
|
+
highest: number;
|
|
37
|
+
}, layout: {
|
|
38
|
+
containerHeight: number;
|
|
39
|
+
position: number;
|
|
40
|
+
gap: number;
|
|
41
|
+
}): number;
|
|
16
42
|
/**
|
|
17
43
|
* `focusHook` that keeps `BottomSheetView`'s measuring but drops its
|
|
18
44
|
* static-view registration, which over-drags the sheet on first touch. Calls
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sheetSizing.d.ts","sourceRoot":"","sources":["../../../src/flow/sheetSizing.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,GAAG,MAAM,GAAG,CAAA;AAK/C;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,CAAC,EAAE,WAAW,CAAA;CAAE;;;;;;EAU/D;AAID;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,MAAM,IAAI,QAE5D"}
|
|
1
|
+
{"version":3,"file":"sheetSizing.d.ts","sourceRoot":"","sources":["../../../src/flow/sheetSizing.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,GAAG,MAAM,GAAG,CAAA;AAK/C;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,CAAC,EAAE,WAAW,CAAA;CAAE;;;;;;EAU/D;AAKD;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM;;;EAO9D;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,EAC3C,MAAM,EAAE;IAAE,eAAe,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GACjE,MAAM,CAOR;AAID;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,MAAM,IAAI,QAE5D"}
|
|
@@ -2,8 +2,13 @@ export interface StoredChain {
|
|
|
2
2
|
userId: string | undefined;
|
|
3
3
|
/** `null` when nothing is stored; `undefined` while it's still being read. */
|
|
4
4
|
chainId: string | null | undefined;
|
|
5
|
-
/**
|
|
6
|
-
|
|
5
|
+
/** The token picked with the chain, by symbol; read alongside `chainId`. */
|
|
6
|
+
tokenSymbol: string | null | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Persist the pick for this identity and apply it immediately. A chain
|
|
9
|
+
* picked without a token clears the stored one.
|
|
10
|
+
*/
|
|
11
|
+
remember: (chainId: string, tokenSymbol?: string) => void;
|
|
7
12
|
}
|
|
8
13
|
/** Read once for the identity, so a flow opened later restores it on its first render. */
|
|
9
14
|
export declare const StoredChainProvider: import("react").Provider<StoredChain | undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storedChain.d.ts","sourceRoot":"","sources":["../../../src/flow/storedChain.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"storedChain.d.ts","sourceRoot":"","sources":["../../../src/flow/storedChain.tsx"],"names":[],"mappings":"AAsBA,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,8EAA8E;IAC9E,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IAClC,4EAA4E;IAC5E,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACtC;;;OAGG;IACH,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;CAC1D;AAID,0FAA0F;AAC1F,eAAO,MAAM,mBAAmB,mDAA8B,CAAA;AAE9D,mFAAmF;AACnF,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,WAAW,CAsD3E;AAED,gFAAgF;AAChF,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,CAK1D"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { useRegionCurrency } from '../fiat/quoteRouting';
|
|
2
|
+
import type { useEntryQuote } from '../fiat/useEntryQuote';
|
|
3
|
+
import type { DepositAmountEntryConfig } from './depositFlowConfig';
|
|
4
|
+
import type { DepositRailCopy } from './depositRailCopy';
|
|
5
|
+
/** The fee line under the amount, and the drawer it opens. */
|
|
6
|
+
export declare function useFeeDetails({ amount, config, entryQuote: { feeSubsidy, provider, shownFeeQuote }, railCopy, regionCurrency: { quoteCurrency }, }: {
|
|
7
|
+
amount: string;
|
|
8
|
+
config: DepositAmountEntryConfig;
|
|
9
|
+
entryQuote: ReturnType<typeof useEntryQuote>;
|
|
10
|
+
railCopy: DepositRailCopy;
|
|
11
|
+
regionCurrency: ReturnType<typeof useRegionCurrency>;
|
|
12
|
+
}): {
|
|
13
|
+
canOpenFeeDetails: boolean;
|
|
14
|
+
feeDrawer: import("react").JSX.Element;
|
|
15
|
+
feeLine: import("../fiat/stepDetails").FeeLine | undefined;
|
|
16
|
+
matchLine: import("../fiat/stepDetails").FeeLine | undefined;
|
|
17
|
+
openFeeDetails: () => void;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=useFeeDetails.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFeeDetails.d.ts","sourceRoot":"","sources":["../../../src/flow/useFeeDetails.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAW1D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAA;AACnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAKxD,8DAA8D;AAC9D,wBAAgB,aAAa,CAAC,EAC5B,MAAM,EACN,MAAM,EACN,UAAU,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,aAAa,EAAE,EACnD,QAAQ,EACR,cAAc,EAAE,EAAE,aAAa,EAAE,GAClC,EAAE;IACD,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,wBAAwB,CAAA;IAChC,UAAU,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,CAAA;IAC5C,QAAQ,EAAE,eAAe,CAAA;IACzB,cAAc,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAA;CACrD;;;;;;EAsFA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare enum AnalyticsEvent {
|
|
2
|
+
MODAL_OPENED = "fc_modal_opened"
|
|
3
|
+
}
|
|
4
|
+
export type AnalyticsFlow = 'deposit' | 'withdraw';
|
|
5
|
+
export type CommonProperties = {
|
|
6
|
+
api_key: string;
|
|
7
|
+
checkout_id: string;
|
|
8
|
+
flow: AnalyticsFlow;
|
|
9
|
+
sdk_type: 'react-native';
|
|
10
|
+
user_id: string | null;
|
|
11
|
+
};
|
|
12
|
+
/** React Native modal-opening payload. */
|
|
13
|
+
export type ModalOpenedProperties = {
|
|
14
|
+
/** Deposit: unset until the user picks a source chain (nullable, like web). Withdrawal: the token withdrawn from. */
|
|
15
|
+
source_asset: string | null;
|
|
16
|
+
source_asset_ticker: string | null;
|
|
17
|
+
source_chain: string | null;
|
|
18
|
+
/** Withdrawal: not yet known when the modal opens (web parity). */
|
|
19
|
+
target_asset: string | null;
|
|
20
|
+
target_asset_ticker: string | null;
|
|
21
|
+
target_chain: string | null;
|
|
22
|
+
/** 1 when the host supplied a usable wallet address, else 0 — RN has no multi-wallet. */
|
|
23
|
+
wallet_count: number;
|
|
24
|
+
};
|
|
25
|
+
export type AnalyticsEventProperties = {
|
|
26
|
+
[AnalyticsEvent.MODAL_OPENED]: ModalOpenedProperties;
|
|
27
|
+
};
|
|
28
|
+
export type AnalyticsEventPayload<T extends AnalyticsEvent> = CommonProperties & AnalyticsEventProperties[T];
|
|
29
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../src/hooks/track/events.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACxB,YAAY,oBAAoB;CACjC;AAED,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,UAAU,CAAA;AAElD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,aAAa,CAAA;IACnB,QAAQ,EAAE,cAAc,CAAA;IACxB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;CACvB,CAAA;AAED,0CAA0C;AAC1C,MAAM,MAAM,qBAAqB,GAAG;IAClC,qHAAqH;IACrH,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAA;IAClC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,mEAAmE;IACnE,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAA;IAClC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,yFAAyF;IACzF,YAAY,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG;IACrC,CAAC,cAAc,CAAC,YAAY,CAAC,EAAE,qBAAqB,CAAA;CACrD,CAAA;AAED,MAAM,MAAM,qBAAqB,CAAC,CAAC,SAAS,cAAc,IAAI,gBAAgB,GAC5E,wBAAwB,CAAC,CAAC,CAAC,CAAA"}
|