@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCaptureHold.d.ts","sourceRoot":"","sources":["../../../src/fiat/useCaptureHold.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,YAAY,EACZ,KAAK,EACL,kBAAkB,EACnB,MAAM,sBAAsB,CAAA;AAM7B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAatD,wBAAgB,cAAc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M,IAAI,CAAA;CACrB,
|
|
1
|
+
{"version":3,"file":"useContactAutoSubmit.d.ts","sourceRoot":"","sources":["../../../src/fiat/useContactAutoSubmit.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAE3D;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,MAAM,EACN,aAAa,EACb,OAAO,EACP,UAAU,EACV,QAAQ,EACR,YAAY,EACZ,QAAQ,GACT,EAAE;IACD,MAAM,EAAE,SAAS,mBAAmB,EAAE,CAAA;IACtC,8EAA8E;IAC9E,aAAa,EAAE,MAAM,CAAA;IACrB,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,OAAO,CAAA;IACnB,QAAQ,EAAE,OAAO,CAAA;IACjB,YAAY,EAAE,OAAO,CAAA;IACrB,QAAQ,EAAE,MAAM,IAAI,CAAA;CACrB,QAaA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDatePickerDock.d.ts","sourceRoot":"","sources":["../../../src/fiat/useDatePickerDock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAErD,OAAO,EAAE,QAAQ,EAAU,MAAM,cAAc,CAAA;AAE/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAGlD,OAAO,EAEL,KAAK,gBAAgB,EAEtB,MAAM,oBAAoB,CAAA;AAE3B,MAAM,WAAW,cAAc;IAC7B,8DAA8D;IAC9D,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,wEAAwE;IACxE,MAAM,CAAC,EAAE,gBAAgB,CAAA;IACzB,+DAA+D;IAC/D,SAAS,EAAE,OAAO,CAAA;IAClB,MAAM,EAAE,OAAO,CAAA;IACf,uEAAuE;IACvE,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,iEAAiE;IACjE,MAAM,EAAE,MAAM,CAAA;IACd,qDAAqD;IACrD,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAA;CACtB;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB;AAC/B,yEAAyE;AACzE,IAAI,EAAE,cAAc,GAAG,SAAS,EAChC,IAAI,EAAE,MAAM,GACX,cAAc,
|
|
1
|
+
{"version":3,"file":"useDatePickerDock.d.ts","sourceRoot":"","sources":["../../../src/fiat/useDatePickerDock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAErD,OAAO,EAAE,QAAQ,EAAU,MAAM,cAAc,CAAA;AAE/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAGlD,OAAO,EAEL,KAAK,gBAAgB,EAEtB,MAAM,oBAAoB,CAAA;AAE3B,MAAM,WAAW,cAAc;IAC7B,8DAA8D;IAC9D,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,wEAAwE;IACxE,MAAM,CAAC,EAAE,gBAAgB,CAAA;IACzB,+DAA+D;IAC/D,SAAS,EAAE,OAAO,CAAA;IAClB,MAAM,EAAE,OAAO,CAAA;IACf,uEAAuE;IACvE,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,iEAAiE;IACjE,MAAM,EAAE,MAAM,CAAA;IACd,qDAAqD;IACrD,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAA;CACtB;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB;AAC/B,yEAAyE;AACzE,IAAI,EAAE,cAAc,GAAG,SAAS,EAChC,IAAI,EAAE,MAAM,GACX,cAAc,CA+ChB"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { FiatFlow } from '@funkit/connect-core';
|
|
2
|
+
import { type Dispatch, type SetStateAction } from 'react';
|
|
3
|
+
import type { DepositCardScreen } from './processing/DepositCardSheet';
|
|
4
|
+
import type { FiatRailConfig } from '../flow/depositFlowConfig';
|
|
5
|
+
import type { StepSurfaces, SurfaceFailure } from '../flow/screenBundles';
|
|
6
|
+
import type { NestedSheet } from '../hooks/useNestedSheet';
|
|
7
|
+
import type { DepositOutcomeReporter } from './depositOutcome';
|
|
8
|
+
import type { useCapturedPayment } from './stepSurface';
|
|
9
|
+
import type { useEntryQuote } from './useEntryQuote';
|
|
10
|
+
/** The deposit's end: the provider's word, the poll's, and the processing card. */
|
|
11
|
+
export declare function useDepositSettlement({ amount, capture: { capturedPayment, failPaymentSurface, orderAnswered }, cardSheet, checkoutId, close, entryQuote: { provider, selectedQuoteRef, shownQuote }, failedPayment, fiat, flow, isDirect, outcome, setProviderPaymentFailure, stepSurfaces: { backgroundCapture }, }: {
|
|
12
|
+
amount: string;
|
|
13
|
+
capture: ReturnType<typeof useCapturedPayment>;
|
|
14
|
+
cardSheet: NestedSheet<DepositCardScreen>;
|
|
15
|
+
checkoutId: string;
|
|
16
|
+
close: () => void;
|
|
17
|
+
entryQuote: ReturnType<typeof useEntryQuote>;
|
|
18
|
+
failedPayment: SurfaceFailure | undefined;
|
|
19
|
+
fiat: FiatRailConfig;
|
|
20
|
+
flow: FiatFlow;
|
|
21
|
+
isDirect: boolean;
|
|
22
|
+
outcome: DepositOutcomeReporter;
|
|
23
|
+
setProviderPaymentFailure: Dispatch<SetStateAction<SurfaceFailure | undefined>>;
|
|
24
|
+
stepSurfaces: StepSurfaces;
|
|
25
|
+
}): {
|
|
26
|
+
cryptoSent: boolean;
|
|
27
|
+
isAwaitingSettlement: boolean;
|
|
28
|
+
landsOnCard: boolean;
|
|
29
|
+
markProviderPaymentFailed: (code: string) => void;
|
|
30
|
+
markProviderSettled: (settlement?: "PAID") => void;
|
|
31
|
+
setLandingShown: Dispatch<SetStateAction<boolean>>;
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=useDepositSettlement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"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cAAc,GAAG,SAAS,CAAA;IACzC,IAAI,EAAE,cAAc,CAAA;IACpB,IAAI,EAAE,QAAQ,CAAA;IACd,QAAQ,EAAE,OAAO,CAAA;IACjB,OAAO,EAAE,sBAAsB,CAAA;IAC/B,yBAAyB,EAAE,QAAQ,CACjC,cAAc,CAAC,cAAc,GAAG,SAAS,CAAC,CAC3C,CAAA;IACD,YAAY,EAAE,YAAY,CAAA;CAC3B;;;;sCAsB0C,MAAM;uCAbL,MAAM;;EAqMjD"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { FiatFlow, FiatStepResponse, Quote, UseFiatQuoteResult } from '@funkit/connect-core';
|
|
2
|
+
import { type FeeQuote } from './stepDetails';
|
|
3
|
+
import type { DepositAmountEntryConfig } from '../flow/depositFlowConfig';
|
|
4
|
+
export declare function useEntryQuote({ amount, config, flow, paymentUnavailable, quoteState, quotedRound, }: {
|
|
5
|
+
amount: string;
|
|
6
|
+
config: DepositAmountEntryConfig;
|
|
7
|
+
flow: FiatFlow;
|
|
8
|
+
paymentUnavailable: boolean;
|
|
9
|
+
quoteState: UseFiatQuoteResult;
|
|
10
|
+
quotedRound: FiatStepResponse | undefined;
|
|
11
|
+
}): {
|
|
12
|
+
entryCta: import("@funkit/connect-core").EntryCta;
|
|
13
|
+
feeSubsidy: import("./stepDetails").FeeSubsidy;
|
|
14
|
+
flowCta: import("@funkit/connect-core").EntryCta | undefined;
|
|
15
|
+
flowStep: FiatStepResponse | undefined;
|
|
16
|
+
isEntryReady: boolean;
|
|
17
|
+
provider: import("@funkit/connect-core").FiatProvider | undefined;
|
|
18
|
+
recordProviderFeeQuote: (quote: FeeQuote) => void;
|
|
19
|
+
selectedQuoteRef: string | undefined;
|
|
20
|
+
setVerifiedQuote: import("react").Dispatch<import("react").SetStateAction<Quote | undefined>>;
|
|
21
|
+
shownFeeQuote: FeeQuote | undefined;
|
|
22
|
+
shownQuote: Quote | undefined;
|
|
23
|
+
terms: import("@funkit/connect-core").TermsToAccept | undefined;
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=useEntryQuote.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useEntryQuote.d.ts","sourceRoot":"","sources":["../../../src/fiat/useEntryQuote.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,gBAAgB,EAChB,KAAK,EACL,kBAAkB,EACnB,MAAM,sBAAsB,CAAA;AAQ7B,OAAO,EAAE,KAAK,QAAQ,EAAmB,MAAM,eAAe,CAAA;AAC9D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAA;AAEzE,wBAAgB,aAAa,CAAC,EAC5B,MAAM,EACN,MAAM,EACN,IAAI,EACJ,kBAAkB,EAClB,UAAU,EACV,WAAW,GACZ,EAAE;IACD,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,wBAAwB,CAAA;IAChC,IAAI,EAAE,QAAQ,CAAA;IACd,kBAAkB,EAAE,OAAO,CAAA;IAC3B,UAAU,EAAE,kBAAkB,CAAA;IAC9B,WAAW,EAAE,gBAAgB,GAAG,SAAS,CAAA;CAC1C;;;;;;;oCA+DwC,QAAQ;;;;;;EAuBhD"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { FiatFlow, SubmitTransition, UseFiatQuoteResult } from '@funkit/connect-core';
|
|
2
|
+
import type { FiatRailConfig } from '../flow/depositFlowConfig';
|
|
3
|
+
import { ContactRound } from './contactRound';
|
|
4
|
+
import type { useEntryQuote } from './useEntryQuote';
|
|
5
|
+
import type { useFiatDirectDelivery } from './useFiatDirectDelivery';
|
|
6
|
+
import type { FiatIdentityAssertion } from './useIdentityAssertion';
|
|
7
|
+
export declare function useEntrySubmit({ delivery: { depositAddress, depositAddressError }, entryQuote: { entryCta, flowCta, flowStep, isEntryReady, provider, terms }, fiat, flow, identityAssertion, quoteState, submitApplePayTransition, }: {
|
|
8
|
+
delivery: ReturnType<typeof useFiatDirectDelivery>;
|
|
9
|
+
entryQuote: ReturnType<typeof useEntryQuote>;
|
|
10
|
+
fiat: FiatRailConfig;
|
|
11
|
+
flow: FiatFlow;
|
|
12
|
+
identityAssertion: FiatIdentityAssertion | undefined;
|
|
13
|
+
quoteState: UseFiatQuoteResult;
|
|
14
|
+
submitApplePayTransition: (transition: SubmitTransition, additionalInputs?: Parameters<FiatFlow['submit']>[1], send?: () => Promise<boolean | undefined>) => Promise<boolean>;
|
|
15
|
+
}): {
|
|
16
|
+
canSubmitQuote: boolean;
|
|
17
|
+
depositAddressUnavailable: boolean;
|
|
18
|
+
disclosedTerms: {
|
|
19
|
+
documentUrl: string;
|
|
20
|
+
} | undefined;
|
|
21
|
+
isAccepting: boolean;
|
|
22
|
+
submitEntry: (round?: ContactRound) => void;
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=useEntrySubmit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useEntrySubmit.d.ts","sourceRoot":"","sources":["../../../src/fiat/useEntrySubmit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EAER,gBAAgB,EAEhB,kBAAkB,EACnB,MAAM,sBAAsB,CAAA;AAS7B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE/D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAM7C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AACpD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AACpE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAA;AAQnE,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EAAE,EAAE,cAAc,EAAE,mBAAmB,EAAE,EACjD,UAAU,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,KAAK,EAAE,EAC1E,IAAI,EACJ,IAAI,EACJ,iBAAiB,EACjB,UAAU,EACV,wBAAwB,GACzB,EAAE;IACD,QAAQ,EAAE,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAA;IAClD,UAAU,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,CAAA;IAC5C,IAAI,EAAE,cAAc,CAAA;IACpB,IAAI,EAAE,QAAQ,CAAA;IACd,iBAAiB,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACpD,UAAU,EAAE,kBAAkB,CAAA;IAC9B,wBAAwB,EAAE,CACxB,UAAU,EAAE,gBAAgB,EAC5B,gBAAgB,CAAC,EAAE,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,EACpD,IAAI,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC,KACtC,OAAO,CAAC,OAAO,CAAC,CAAA;CACtB;;;;qBAzBiE,MAAM;;;0BA+DzC,YAAY;EA2E1C"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { FiatFlow, FiatProvider } from '@funkit/connect-core';
|
|
2
|
+
import type { SurfaceFailure } from '../flow/screenBundles';
|
|
3
|
+
import type { InputStep } from './providerFailover';
|
|
4
|
+
import type { PaymentFailureAnswer, PaymentFailureSource } from './usePaymentFailureAnswer';
|
|
5
|
+
export declare function useFailureAnnouncements({ excluded, failOverInput, failedPayment, failedPaymentSource, flow, isRerouteSettled, onInputFailover, paymentFailure, retrySurface, surfaceFailure, }: {
|
|
6
|
+
excluded: readonly FiatProvider[];
|
|
7
|
+
failOverInput: (step: InputStep, code: string | undefined) => void;
|
|
8
|
+
failedPayment: SurfaceFailure | undefined;
|
|
9
|
+
failedPaymentSource: PaymentFailureSource;
|
|
10
|
+
flow: FiatFlow;
|
|
11
|
+
isRerouteSettled: boolean;
|
|
12
|
+
onInputFailover: (provider: FiatProvider, cause: 'kyc' | 'auth') => void;
|
|
13
|
+
paymentFailure: PaymentFailureAnswer;
|
|
14
|
+
retrySurface: () => void;
|
|
15
|
+
surfaceFailure: SurfaceFailure | undefined;
|
|
16
|
+
}): void;
|
|
17
|
+
//# sourceMappingURL=useFailureAnnouncements.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFailureAnnouncements.d.ts","sourceRoot":"","sources":["../../../src/fiat/useFailureAnnouncements.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAIlE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAM3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAMnD,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,2BAA2B,CAAA;AAGlC,wBAAgB,uBAAuB,CAAC,EACtC,QAAQ,EACR,aAAa,EACb,aAAa,EACb,mBAAmB,EACnB,IAAI,EACJ,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,YAAY,EACZ,cAAc,GACf,EAAE;IACD,QAAQ,EAAE,SAAS,YAAY,EAAE,CAAA;IACjC,aAAa,EAAE,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAA;IAClE,aAAa,EAAE,cAAc,GAAG,SAAS,CAAA;IACzC,mBAAmB,EAAE,oBAAoB,CAAA;IACzC,IAAI,EAAE,QAAQ,CAAA;IACd,gBAAgB,EAAE,OAAO,CAAA;IACzB,eAAe,EAAE,CAAC,QAAQ,EAAE,YAAY,EAAE,KAAK,EAAE,KAAK,GAAG,MAAM,KAAK,IAAI,CAAA;IACxE,cAAc,EAAE,oBAAoB,CAAA;IACpC,YAAY,EAAE,MAAM,IAAI,CAAA;IACxB,cAAc,EAAE,cAAc,GAAG,SAAS,CAAA;CAC3C,QAyDA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { GetIdentityAssertion } from '../identity/IdentityContext';
|
|
1
|
+
import { type GetIdentityAssertion } from '../providers/IdentityContext';
|
|
3
2
|
import type { DepositOutcomeReporter } from './depositOutcome';
|
|
4
3
|
/** What the fiat flow needs from the host's minter, wrapped for one user. */
|
|
5
4
|
export interface FiatIdentityAssertion {
|
|
@@ -18,12 +17,9 @@ export interface FiatIdentityAssertion {
|
|
|
18
17
|
* - `TRANSIENT`, or no code, reports `identity_assertion_failed`; the
|
|
19
18
|
* existing retry UI is the recovery.
|
|
20
19
|
*/
|
|
21
|
-
export declare function useIdentityAssertion({
|
|
22
|
-
getIdentityAssertion: GetIdentityAssertion | undefined;
|
|
23
|
-
userId: string;
|
|
20
|
+
export declare function useIdentityAssertion({ outcome, onCloseFlow, }: {
|
|
24
21
|
outcome: DepositOutcomeReporter;
|
|
25
22
|
onCloseFlow: () => void;
|
|
26
|
-
t: TFunction;
|
|
27
23
|
}): {
|
|
28
24
|
/** `undefined` while the host declares no identity. */
|
|
29
25
|
identityAssertion: FiatIdentityAssertion | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIdentityAssertion.d.ts","sourceRoot":"","sources":["../../../src/fiat/useIdentityAssertion.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useIdentityAssertion.d.ts","sourceRoot":"","sources":["../../../src/fiat/useIdentityAssertion.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,oBAAoB,EAE1B,MAAM,8BAA8B,CAAA;AAErC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAA;AAG9D,6EAA6E;AAC7E,MAAM,WAAW,qBAAqB;IACpC,YAAY,EAAE,oBAAoB,CAAA;IAClC,0EAA0E;IAC1E,OAAO,EAAE,MAAM,CAAA;CAChB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,OAAO,EACP,WAAW,GACZ,EAAE;IACD,OAAO,EAAE,sBAAsB,CAAA;IAC/B,WAAW,EAAE,MAAM,IAAI,CAAA;CACxB,GAAG;IACF,uDAAuD;IACvD,iBAAiB,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACpD,qEAAqE;IACrE,aAAa,EAAE,MAAM,GAAG,SAAS,CAAA;IACjC,wEAAwE;IACxE,iBAAiB,EAAE,OAAO,CAAA;CAC3B,CAmEA"}
|
|
@@ -1,28 +1,36 @@
|
|
|
1
|
-
import { type FiatProvider } from '@funkit/connect-core';
|
|
2
|
-
import {
|
|
1
|
+
import { type FiatProvider, type FiatQuoteMinimum } from '@funkit/connect-core';
|
|
2
|
+
import type { DepositCardScreen } from './processing/DepositCardSheet';
|
|
3
|
+
import type { NestedSheet } from '../hooks/useNestedSheet';
|
|
4
|
+
import type { PaymentReroute } from './paymentReroute';
|
|
3
5
|
export interface PaymentFailureAnswerOptions {
|
|
6
|
+
/**
|
|
7
|
+
* The card the failure is answered on: the processing card's own, so a
|
|
8
|
+
* payment that fails while it waits changes the card rather than raising
|
|
9
|
+
* another over it.
|
|
10
|
+
*/
|
|
11
|
+
sheet: NestedSheet<DepositCardScreen>;
|
|
4
12
|
/** The provider whose pay sheet gave up: the round's, or the quote's. */
|
|
5
13
|
provider: FiatProvider | undefined;
|
|
6
14
|
/**
|
|
7
|
-
* The reroute probe, once it has settled:
|
|
8
|
-
*
|
|
15
|
+
* The reroute probe, once it has settled: what it found to take the deposit
|
|
16
|
+
* on with, and the providers it asked. `undefined` while no probe ran.
|
|
9
17
|
*/
|
|
10
18
|
reroute: {
|
|
11
|
-
|
|
19
|
+
found: PaymentReroute | undefined;
|
|
12
20
|
providers: readonly FiatProvider[];
|
|
13
21
|
} | undefined;
|
|
14
22
|
/** The providers earlier failures already moved past. */
|
|
15
23
|
skipped: readonly FiatProvider[];
|
|
16
24
|
/** The buyer closed the pay sheet without paying: nothing to answer. */
|
|
17
25
|
onCancelled: (from: PaymentFailureSource) => void;
|
|
18
|
-
/** "
|
|
26
|
+
/** "Try a different card", or the sheet dismissed: the same provider, paid again. */
|
|
19
27
|
onRetry: (from: PaymentFailureSource) => void;
|
|
20
|
-
/** "
|
|
28
|
+
/** "Try with a different provider": a new quote without the provider that failed. */
|
|
21
29
|
onReroute: (failedProvider: FiatProvider) => void;
|
|
22
30
|
/** A fresh quote on the same terms: no provider known to leave out. */
|
|
23
31
|
onRequote: () => void;
|
|
24
32
|
/**
|
|
25
|
-
* "
|
|
33
|
+
* "Try a different payment method": the host's picker, offered in place
|
|
26
34
|
* of a requote when no other provider would take this card. Absent when the
|
|
27
35
|
* host gave the amount screen no picker.
|
|
28
36
|
*/
|
|
@@ -36,36 +44,43 @@ export interface PaymentFailureAnswerOptions {
|
|
|
36
44
|
* spent, so paying again starts over on a fresh quote.
|
|
37
45
|
*/
|
|
38
46
|
export type PaymentFailureSource = 'quote' | 'capture' | 'order';
|
|
39
|
-
/**
|
|
40
|
-
|
|
47
|
+
/**
|
|
48
|
+
* The second way on the sheet offers beside paying again. `minimum` is a
|
|
49
|
+
* reroute that only prices a higher amount: the buyer is offered that amount,
|
|
50
|
+
* not another payment method.
|
|
51
|
+
*/
|
|
52
|
+
export type PaymentFailureAlternative = 'provider' | 'minimum' | 'method' | 'none';
|
|
41
53
|
export interface PaymentFailureAnswer {
|
|
42
|
-
sheet: NestedSheet<
|
|
54
|
+
sheet: NestedSheet<DepositCardScreen>;
|
|
43
55
|
/**
|
|
44
|
-
* What the open
|
|
45
|
-
* provider the reroute probe found
|
|
46
|
-
* none, or nothing when the host has no
|
|
47
|
-
* provider left would strand the buyer on
|
|
56
|
+
* What the open sheet can offer beside another card: a new quote from a
|
|
57
|
+
* provider the reroute probe found (or at the least it would price), the
|
|
58
|
+
* host's method picker when it found none, or nothing when the host has no
|
|
59
|
+
* picker either. A requote with no provider left would strand the buyer on
|
|
60
|
+
* "not available".
|
|
48
61
|
*/
|
|
49
62
|
alternative: PaymentFailureAlternative;
|
|
50
|
-
/**
|
|
63
|
+
/** The amount a `minimum` alternative raises the deposit to. */
|
|
64
|
+
minimum: FiatQuoteMinimum | undefined;
|
|
65
|
+
/** Opens the sheet for a failure, or recovers a cancel without one. */
|
|
51
66
|
announce: (failure: {
|
|
52
67
|
code: string;
|
|
53
68
|
}, from: PaymentFailureSource) => void;
|
|
54
|
-
/** Closes the
|
|
69
|
+
/** Closes the sheet onto the same quote, paid again. */
|
|
55
70
|
retry: () => void;
|
|
56
|
-
/** Closes the
|
|
71
|
+
/** Closes the sheet onto a new quote. */
|
|
57
72
|
requote: () => void;
|
|
58
|
-
/** Closes the
|
|
73
|
+
/** Closes the sheet onto the amount, then opens the host's method picker. */
|
|
59
74
|
changeMethod: () => void;
|
|
60
75
|
}
|
|
61
76
|
/**
|
|
62
77
|
* How a failed payment is answered: every failure but a cancel opens the
|
|
63
|
-
* payment-failed
|
|
78
|
+
* payment-failed sheet, and the buyer picks the way on.
|
|
64
79
|
*
|
|
65
|
-
* What the
|
|
80
|
+
* What the sheet answers is held until it is down, however it was closed: a
|
|
66
81
|
* requote remounts the step, which would cut the drawer off mid-spring. The
|
|
67
82
|
* reroute probe is keyed on the failure, and the failure is cleared by the
|
|
68
83
|
* recovery the buyer picks.
|
|
69
84
|
*/
|
|
70
|
-
export declare function usePaymentFailureAnswer({ provider, reroute, skipped, onCancelled, onRetry, onReroute, onRequote, onChangeMethod, }: PaymentFailureAnswerOptions): PaymentFailureAnswer;
|
|
85
|
+
export declare function usePaymentFailureAnswer({ sheet, provider, reroute, skipped, onCancelled, onRetry, onReroute, onRequote, onChangeMethod, }: PaymentFailureAnswerOptions): PaymentFailureAnswer;
|
|
71
86
|
//# sourceMappingURL=usePaymentFailureAnswer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePaymentFailureAnswer.d.ts","sourceRoot":"","sources":["../../../src/fiat/usePaymentFailureAnswer.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"usePaymentFailureAnswer.d.ts","sourceRoot":"","sources":["../../../src/fiat/us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B,CAAC,CAAA;IACrC;;;;;;OAMG;IACH,WAAW,EAAE,yBAAyB,CAAA;IACtC,gEAAgE;IAChE,OAAO,EAAE,gBAAgB,GAAG,SAAS,CAAA;IACrC,uEAAuE;IACvE,QAAQ,EAAE,CAAC,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,IAAI,EAAE,oBAAoB,KAAK,IAAI,CAAA;IACzE,wDAAwD;IACxD,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,yCAAyC;IACzC,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,6EAA6E;IAC7E,YAAY,EAAE,MAAM,IAAI,CAAA;CACzB;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,KAAK,EACL,QAAQ,EACR,OAAO,EACP,OAAO,EACP,WAAW,EACX,OAAO,EACP,SAAS,EACT,SAAS,EACT,cAAc,GACf,EAAE,2BAA2B,GAAG,oBAAoB,CA2HpD"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type ProcessingPhase } from './depositProcessing';
|
|
2
|
+
/** The wait's phase, timed from the first render of the card that shows it. */
|
|
3
|
+
export declare function useProcessingPhase(delivered: boolean): ProcessingPhase;
|
|
4
|
+
//# sourceMappingURL=useProcessingPhase.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useProcessingPhase.d.ts","sourceRoot":"","sources":["../../../src/fiat/useProcessingPhase.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,eAAe,EAGrB,MAAM,qBAAqB,CAAA;AAE5B,+EAA+E;AAC/E,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,OAAO,GAAG,eAAe,CAatE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useReplayableFailure.d.ts","sourceRoot":"","sources":["../../../src/fiat/useReplayableFailure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAGpD,KAAK,cAAc,GAAG,IAAI,CAAC,QAAQ,EAAE,OAAO,GAAG,WAAW,CAAC,CAAA;AAE3D;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,
|
|
1
|
+
{"version":3,"file":"useReplayableFailure.d.ts","sourceRoot":"","sources":["../../../src/fiat/useReplayableFailure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAGpD,KAAK,cAAc,GAAG,IAAI,CAAC,QAAQ,EAAE,OAAO,GAAG,WAAW,CAAC,CAAA;AAE3D;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAgBlE"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { FiatFlow, FiatProvider } from '@funkit/connect-core';
|
|
2
|
+
import type { useRegionCurrency } from './quoteRouting';
|
|
3
|
+
import type { FiatRailConfig } from '../flow/depositFlowConfig';
|
|
4
|
+
import type { SurfaceFailure } from '../flow/screenBundles';
|
|
5
|
+
/** A quote on the next provider, for the payment-failure screen to offer. */
|
|
6
|
+
export declare function useRerouteProbe({ amount, apiKey, checkoutId, excluded, failedPayment, failedPaymentProvider, fiat, flow, lockAmount, regionCurrency: { buyerGeo, quoteCurrency }, undrawable, userId, }: {
|
|
7
|
+
amount: string;
|
|
8
|
+
apiKey: string;
|
|
9
|
+
checkoutId: string;
|
|
10
|
+
excluded: readonly FiatProvider[];
|
|
11
|
+
failedPayment: SurfaceFailure | undefined;
|
|
12
|
+
failedPaymentProvider: FiatProvider | undefined;
|
|
13
|
+
fiat: FiatRailConfig;
|
|
14
|
+
flow: FiatFlow;
|
|
15
|
+
lockAmount: boolean | undefined;
|
|
16
|
+
regionCurrency: ReturnType<typeof useRegionCurrency>;
|
|
17
|
+
undrawable: readonly FiatProvider[];
|
|
18
|
+
userId: string;
|
|
19
|
+
}): {
|
|
20
|
+
isRerouteSettled: boolean;
|
|
21
|
+
rerouteFound: import("./paymentReroute").PaymentReroute | undefined;
|
|
22
|
+
rerouteOverrides: import("@funkit/connect-core").FiatRoutingOverrides | undefined;
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=useRerouteProbe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRerouteProbe.d.ts","sourceRoot":"","sources":["../../../src/fiat/useRerouteProbe.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAIlE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAEvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAE3D,6EAA6E;AAC7E,wBAAgB,eAAe,CAAC,EAC9B,MAAM,EACN,MAAM,EACN,UAAU,EACV,QAAQ,EACR,aAAa,EACb,qBAAqB,EACrB,IAAI,EACJ,IAAI,EACJ,UAAU,EACV,cAAc,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE,EAC3C,UAAU,EACV,MAAM,GACP,EAAE;IACD,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,SAAS,YAAY,EAAE,CAAA;IACjC,aAAa,EAAE,cAAc,GAAG,SAAS,CAAA;IACzC,qBAAqB,EAAE,YAAY,GAAG,SAAS,CAAA;IAC/C,IAAI,EAAE,cAAc,CAAA;IACpB,IAAI,EAAE,QAAQ,CAAA;IACd,UAAU,EAAE,OAAO,GAAG,SAAS,CAAA;IAC/B,cAAc,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAA;IACpD,UAAU,EAAE,SAAS,YAAY,EAAE,CAAA;IACnC,MAAM,EAAE,MAAM,CAAA;CACf;;;;EAuCA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { FiatFlow, UseFiatQuoteResult } from '@funkit/connect-core';
|
|
2
|
+
import type { quoteRefusal } from './quoteRefusal';
|
|
2
3
|
type RecoverableFlow = Pick<FiatFlow, 'phase' | 'submitError' | 'stepResponse'>;
|
|
3
4
|
type RecoverableQuote = Pick<UseFiatQuoteResult, 'quote' | 'isQuoteFresh' | 'quoteError' | 'retryQuote' | 'submitQuote'>;
|
|
4
5
|
export interface StaleQuoteRecovery {
|
|
@@ -27,5 +28,20 @@ export declare function useStaleQuoteRecovery(flow: RecoverableFlow, quote: Reco
|
|
|
27
28
|
*/
|
|
28
29
|
hold?: boolean;
|
|
29
30
|
}): StaleQuoteRecovery;
|
|
31
|
+
/**
|
|
32
|
+
* Gives up a round whose quote died, for a new price. Two ways it dies: the
|
|
33
|
+
* server refuses the round's quote as expired, or a submit on it fails on a
|
|
34
|
+
* dead ref.
|
|
35
|
+
*/
|
|
36
|
+
export declare function useDeadRoundRequote({ capturedPayment, flow, onBackToEntry, refusal, startOver, }: {
|
|
37
|
+
capturedPayment: boolean;
|
|
38
|
+
flow: FiatFlow;
|
|
39
|
+
onBackToEntry: () => void;
|
|
40
|
+
refusal: ReturnType<typeof quoteRefusal>;
|
|
41
|
+
startOver: () => void;
|
|
42
|
+
}): {
|
|
43
|
+
flowQuoteExpired: boolean;
|
|
44
|
+
roundOutlivedItsQuote: boolean;
|
|
45
|
+
};
|
|
30
46
|
export {};
|
|
31
47
|
//# sourceMappingURL=useStaleQuoteRecovery.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStaleQuoteRecovery.d.ts","sourceRoot":"","sources":["../../../src/fiat/useStaleQuoteRecovery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAMxE,KAAK,eAAe,GAAG,IAAI,CAAC,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,EAAE,OAAO,CAAA;CACV,GACL,kBAAkB,CA8EpB;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,eAAe,EACf,IAAI,EACJ,aAAa,EACb,OAAO,EACP,SAAS,GACV,EAAE;IACD,eAAe,EAAE,OAAO,CAAA;IACxB,IAAI,EAAE,QAAQ,CAAA;IACd,aAAa,EAAE,MAAM,IAAI,CAAA;IACzB,OAAO,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAA;IACxC,SAAS,EAAE,MAAM,IAAI,CAAA;CACtB;;;EA2CA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FailureReason, FormField } from '@funkit/connect-core';
|
|
2
|
-
import type { KycFormValues } from './kycFormState';
|
|
2
|
+
import type { KycFormValues } from './kyc/kycFormState';
|
|
3
3
|
/** The fields the server refused that the user has not changed since. */
|
|
4
4
|
export declare function useStandingRefusals(refusal: FailureReason | undefined, fields: readonly FormField[], values: KycFormValues): ReadonlySet<string>;
|
|
5
5
|
//# sourceMappingURL=useStandingRefusals.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStandingRefusals.d.ts","sourceRoot":"","sources":["../../../src/fiat/useStandingRefusals.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAGpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"useStandingRefusals.d.ts","sourceRoot":"","sources":["../../../src/fiat/useStandingRefusals.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAGpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAYvD,yEAAyE;AACzE,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,aAAa,GAAG,SAAS,EAClC,MAAM,EAAE,SAAS,SAAS,EAAE,EAC5B,MAAM,EAAE,aAAa,GACpB,WAAW,CAAC,MAAM,CAAC,CAWrB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { FiatFlow, FiatProvider, SubmitTransition } from '@funkit/connect-core';
|
|
2
|
+
import type { SurfaceFailure } from '../flow/screenBundles';
|
|
3
|
+
import { type InputStep } from './providerFailover';
|
|
4
|
+
export declare function useSurfaceAttempt({ countRefusal, flow, logSurfaceFailure, reportApplePayTerminal, submitApplePayTransition, }: {
|
|
5
|
+
countRefusal: (provider: FiatProvider, step: InputStep, part?: string) => boolean;
|
|
6
|
+
flow: FiatFlow;
|
|
7
|
+
logSurfaceFailure: (code: string) => void;
|
|
8
|
+
reportApplePayTerminal: (outcome: 'interactive' | 'provider_failed' | 'dismissed' | 'superseded') => void;
|
|
9
|
+
submitApplePayTransition: (transition: SubmitTransition, additionalInputs?: Parameters<FiatFlow['submit']>[1], send?: () => Promise<boolean | undefined>) => Promise<boolean>;
|
|
10
|
+
}): {
|
|
11
|
+
failSurface: (code: string, detail?: string) => void;
|
|
12
|
+
resend: {
|
|
13
|
+
id: string;
|
|
14
|
+
mode: "SUBMIT";
|
|
15
|
+
endpoint: import("@fun-xyz/fiat-contract/types").FiatEndpoint;
|
|
16
|
+
params?: import("@fun-xyz/fiat-contract/types").TransitionParams;
|
|
17
|
+
inputs?: import("@fun-xyz/fiat-contract/types").TransitionInputs;
|
|
18
|
+
labelFallback?: string;
|
|
19
|
+
} | undefined;
|
|
20
|
+
retrySurface: () => void;
|
|
21
|
+
surfaceAttempt: number;
|
|
22
|
+
surfaceFailure: SurfaceFailure | undefined;
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=useSurfaceAttempt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSurfaceAttempt.d.ts","sourceRoot":"","sources":["../../../src/fiat/useSurfaceAttempt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,YAAY,EA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4EAA4E;IAC5E,MAAM,CAAC,EAAE,aAAa,CAAA;IACtB,SAAS,EAAE,oBAAoB,CAAA;IAC/B,iCAAiC;IACjC,aAAa,CAAC,EAAE,oBAAoB,CAAA;IACpC;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,+
|
|
1
|
+
{"version":3,"file":"DepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositAmountStep.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EACpB,aAAa,EACd,MAAM,qBAAqB,CAAA;AAY5B;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,MAAM,EACN,MAAM,EACN,SAAS,EACT,aAAa,EACb,UAAU,GACX,EAAE;IACD,MAAM,EAAE,wBAAwB,CAAA;IAChC,4EAA4E;IAC5E,MAAM,CAAC,EAAE,aAAa,CAAA;IACtB,SAAS,EAAE,oBAAoB,CAAA;IAC/B,iCAAiC;IACjC,aAAa,CAAC,EAAE,oBAAoB,CAAA;IACpC;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,+BAuIA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import type { DepositClientMetadata, DepositFlowCallbacks, DepositFlowConfig } from './depositFlowConfig';
|
|
3
|
-
import type { ShowDepositToast } from './useDepositReceivedToast';
|
|
4
3
|
import type { FlowNav, FlowScreen } from './FunkitFlowProvider';
|
|
5
4
|
/**
|
|
6
5
|
* The live flow body. Drives the deposit-address + QR generation
|
|
@@ -8,15 +7,13 @@ import type { FlowNav, FlowScreen } from './FunkitFlowProvider';
|
|
|
8
7
|
* with the resolved data. Kept separate from the provider so its
|
|
9
8
|
* hooks run only while the modal is open (it isn't mounted when closed).
|
|
10
9
|
*/
|
|
11
|
-
export declare function FlowContent({ checkoutId, clientMetadata, config, current, nav, onCopySuccess,
|
|
10
|
+
export declare function FlowContent({ checkoutId, clientMetadata, config, current, nav, onCopySuccess, callbacks, }: {
|
|
12
11
|
checkoutId: string;
|
|
13
12
|
clientMetadata: DepositClientMetadata | undefined;
|
|
14
13
|
config: DepositFlowConfig;
|
|
15
14
|
current: FlowScreen | undefined;
|
|
16
15
|
nav: FlowNav;
|
|
17
16
|
onCopySuccess: (label?: string) => void;
|
|
18
|
-
/** Raises the SDK's deposit confirmation, which outlives this content. */
|
|
19
|
-
showDepositToast: ShowDepositToast;
|
|
20
17
|
callbacks: DepositFlowCallbacks;
|
|
21
18
|
}): ReactNode;
|
|
22
19
|
//# sourceMappingURL=DepositFlowContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DepositFlowContent.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositFlowContent.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,SAAS,EAMf,MAAM,OAAO,CAAA;AAqEd,OAAO,KAAK,EAEV,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EAElB,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"DepositFlowContent.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositFlowContent.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,SAAS,EAMf,MAAM,OAAO,CAAA;AAqEd,OAAO,KAAK,EAEV,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EAElB,MAAM,qBAAqB,CAAA;AAU5B,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAqG/D;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAC1B,UAAU,EACV,cAAc,EACd,MAAM,EACN,OAAO,EACP,GAAG,EACH,aAAa,EACb,SAAS,GACV,EAAE;IACD,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD,MAAM,EAAE,iBAAiB,CAAA;IACzB,OAAO,EAAE,UAAU,GAAG,SAAS,CAAA;IAC/B,GAAG,EAAE,OAAO,CAAA;IACZ,aAAa,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,SAAS,EAAE,oBAAoB,CAAA;CAChC,GAAG,SAAS,CAshBZ"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type BottomSheetBackgroundProps } from '@gorhom/bottom-sheet';
|
|
2
|
+
import { type FC, type ReactNode } from 'react';
|
|
2
3
|
import type { NestedSheet } from '../hooks/useNestedSheet';
|
|
3
4
|
export interface DrawerProps<TScreen extends string> {
|
|
4
5
|
sheet: NestedSheet<TScreen>;
|
|
@@ -28,6 +29,27 @@ export interface DrawerProps<TScreen extends string> {
|
|
|
28
29
|
* `header`, which stands in for the grabber either way.
|
|
29
30
|
*/
|
|
30
31
|
grabber?: boolean;
|
|
32
|
+
/** The grabber's colour, for a surface the default bar would vanish into. */
|
|
33
|
+
grabberColor?: string;
|
|
34
|
+
/** A surface of the caller's own, in place of the glass or the `solid` panel. */
|
|
35
|
+
background?: FC<BottomSheetBackgroundProps>;
|
|
36
|
+
/**
|
|
37
|
+
* Float the drawer this far off the screen's sides and foot, as a card
|
|
38
|
+
* rather than a sheet run to the edges.
|
|
39
|
+
*/
|
|
40
|
+
inset?: number;
|
|
41
|
+
/**
|
|
42
|
+
* Darken what the drawer covers by this opacity of black; none by default.
|
|
43
|
+
* A change eases in rather than cutting.
|
|
44
|
+
*/
|
|
45
|
+
dim?: number;
|
|
46
|
+
/**
|
|
47
|
+
* `false` holds the drawer up: no pull, grabber or backdrop tap closes it,
|
|
48
|
+
* and the caller closes it when it is done. Safe to flip while open.
|
|
49
|
+
*/
|
|
50
|
+
dismissable?: boolean;
|
|
51
|
+
/** Each time the drawer comes to rest open. */
|
|
52
|
+
onSettle?: () => void;
|
|
31
53
|
children: ReactNode;
|
|
32
54
|
}
|
|
33
55
|
/**
|
|
@@ -44,5 +66,5 @@ export interface DrawerProps<TScreen extends string> {
|
|
|
44
66
|
* fee breakdown does); the gesture, the grabber and the backdrop are the
|
|
45
67
|
* drawer's.
|
|
46
68
|
*/
|
|
47
|
-
export declare function Drawer<TScreen extends string>({ sheet, fullHeight, solid, header, grabber, children, }: DrawerProps<TScreen>): import("react").JSX.Element;
|
|
69
|
+
export declare function Drawer<TScreen extends string>({ sheet, fullHeight, solid, header, grabber, grabberColor, background, inset, dim, dismissable, onSettle, children, }: DrawerProps<TScreen>): import("react").JSX.Element;
|
|
48
70
|
//# sourceMappingURL=Drawer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/flow/Drawer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/flow/Drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,0BAA0B,EAGhC,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAEL,KAAK,EAAE,EACP,KAAK,SAAS,EAIf,MAAM,OAAO,CAAA;AAWd,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAmB1D,MAAM,WAAW,WAAW,CAAC,OAAO,SAAS,MAAM;IACjD,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAC3B;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IACf;;;;OAIG;IACH,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,6EAA6E;IAC7E,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,iFAAiF;IACjF,UAAU,CAAC,EAAE,EAAE,CAAC,0BAA0B,CAAC,CAAA;IAC3C;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,MAAM,CAAC,OAAO,SAAS,MAAM,EAAE,EAC7C,KAAK,EACL,UAAkB,EAClB,KAAa,EACb,MAAM,EACN,OAAc,EACd,YAAY,EACZ,UAAU,EACV,KAAK,EACL,GAAG,EACH,WAAkB,EAClB,QAAQ,EACR,QAAQ,GACT,EAAE,WAAW,CAAC,OAAO,CAAC,+BAsItB"}
|
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
import type { FiatFlow } from '@funkit/connect-core';
|
|
2
|
-
import type { StripeOnrampClient } from '../fiat/providers/stripe/stripeOnramp';
|
|
3
1
|
import type { DepositAmountEntryConfig, DepositCheckoutConfig, DepositClientMetadata, DepositFlowCallbacks, DepositInitialAmount, FiatRailConfig } from './depositFlowConfig';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Logs the OTP page's decisions once per round and once per rejected code.
|
|
7
|
-
* - From render, every keystroke in the code boxes re-sent them.
|
|
8
|
-
*/
|
|
9
|
-
export declare function useSessionAuthLogs(flow: FiatFlow, stripeOnramp: StripeOnrampClient | undefined): void;
|
|
10
|
-
export declare function FiatDepositAmountStep({ config, fiat, checkoutConfig, dynamicRoutingId, depositAddressOverride, checkoutId, clientMetadata, initialAmount, lockAmount, callbacks, showDepositToast, onCloseFlow, }: {
|
|
2
|
+
export declare function FiatDepositAmountStep({ config, fiat, checkoutConfig, dynamicRoutingId, depositAddressOverride, checkoutId, clientMetadata, initialAmount, lockAmount, callbacks, onCloseFlow, }: {
|
|
11
3
|
config: DepositAmountEntryConfig;
|
|
12
4
|
fiat: FiatRailConfig;
|
|
13
5
|
checkoutConfig: DepositCheckoutConfig | undefined;
|
|
@@ -23,8 +15,6 @@ export declare function FiatDepositAmountStep({ config, fiat, checkoutConfig, dy
|
|
|
23
15
|
/** Locks the prefilled amount against numpad and quick-amount edits. */
|
|
24
16
|
lockAmount?: boolean;
|
|
25
17
|
callbacks: Pick<DepositFlowCallbacks, 'onDepositSubmitted' | 'onDepositError' | 'onPaymentMethodPress'>;
|
|
26
|
-
/** Raises the SDK's deposit confirmation, which outlives this screen. */
|
|
27
|
-
showDepositToast: ShowDepositToast;
|
|
28
18
|
onCloseFlow: () => void;
|
|
29
19
|
}): import("react").JSX.Element;
|
|
30
20
|
//# sourceMappingURL=FiatDepositAmountStep.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiatDepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/FiatDepositAmountStep.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FiatDepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/FiatDepositAmountStep.tsx"],"names":[],"mappings":"AAiFA,OAAO,KAAK,EACV,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACpB,cAAc,EACf,MAAM,qBAAqB,CAAA;AAiE5B,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,IAAI,EACJ,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,UAAU,EACV,cAAc,EACd,aAAa,EACb,UAAU,EACV,SAAS,EACT,WAAW,GACZ,EAAE;IACD,MAAM,EAAE,wBAAwB,CAAA;IAChC,IAAI,EAAE,cAAc,CAAA;IACpB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAA;IACpC,mEAAmE;IACnE,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD;;OAEG;IACH,aAAa,CAAC,EAAE,oBAAoB,CAAA;IACpC,wEAAwE;IACxE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,EAAE,IAAI,CACb,oBAAoB,EACpB,oBAAoB,GAAG,gBAAgB,GAAG,sBAAsB,CACjE,CAAA;IACD,WAAW,EAAE,MAAM,IAAI,CAAA;CACxB,+BAwHA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FunkitFlowProvider.d.ts","sourceRoot":"","sources":["../../../src/flow/FunkitFlowProvider.tsx"],"names":[],"mappings":"AAMA,OAAO,EAEL,KAAK,SAAS,EAUf,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"FunkitFlowProvider.d.ts","sourceRoot":"","sources":["../../../src/flow/FunkitFlowProvider.tsx"],"names":[],"mappings":"AAMA,OAAO,EAEL,KAAK,SAAS,EAUf,MAAM,OAAO,CAAA;AAKd,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,eAAe,EAIrB,MAAM,uBAAuB,CAAA;AAW9B,OAAO,KAAK,EAEV,oBAAoB,EACpB,iBAAiB,EAClB,MAAM,qBAAqB,CAAA;AAU5B,OAAO,EAAE,KAAK,oBAAoB,EAAa,MAAM,aAAa,CAAA;AAUlE,OAAO,EAEL,KAAK,eAAe,EAErB,MAAM,sBAAsB,CAAA;AAI7B,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,wBAAwB,CAAA;AAG/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAA;AAExF,MAAM,MAAM,UAAU,GAClB,eAAe,GACf,UAAU,GACV,UAAU,GACV,SAAS,GACT,gBAAgB,GAChB,gBAAgB,GAChB,iBAAiB,GACjB,sBAAsB,GACtB,kBAAkB,CAAA;AA8GtB,UAAU,sBAAsB;IAC9B;;;;;OAKG;IACH,YAAY,EAAE,CACZ,MAAM,EAAE,iBAAiB,EACzB,SAAS,CAAC,EAAE,oBAAoB,KAC7B,OAAO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Content.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAyB,MAAM,OAAO,CAAA;AAwB7D,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,wBAAwB,CAAA;AAoB/B;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,UAAU,EACV,MAAM,EACN,SAAS,EACT,OAAO,EACP,GAAG,GACJ,EAAE;IACD,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,oBAAoB,CAAA;IAC5B,SAAS,EAAE,uBAAuB,CAAA;IAClC,OAAO,EAAE,UAAU,GAAG,SAAS,CAAA;IAC/B,GAAG,EAAE,OAAO,CAAA;CACb,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"WithdrawalFlowContent.d.ts","sourceRoot":"","sources":["../../../src/flow/WithdrawalFlowContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAyB,MAAM,OAAO,CAAA;AAwB7D,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,wBAAwB,CAAA;AAoB/B;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,UAAU,EACV,MAAM,EACN,SAAS,EACT,OAAO,EACP,GAAG,GACJ,EAAE;IACD,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,oBAAoB,CAAA;IAC5B,SAAS,EAAE,uBAAuB,CAAA;IAClC,OAAO,EAAE,UAAU,GAAG,SAAS,CAAA;IAC/B,GAAG,EAAE,OAAO,CAAA;CACb,GAAG,SAAS,CAmQZ"}
|
|
@@ -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"}
|