@funkit/connect-rn 9.7.0 → 10.0.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 +39 -0
- package/dist/{chunk-4P4VMXII.js → chunk-264ZLQVH.js} +2 -2
- package/dist/{chunk-B7O3LJWY.js → chunk-K2VB5PT5.js} +81 -17
- package/dist/chunk-K2VB5PT5.js.map +7 -0
- package/dist/{chunk-M53J24WI.js → chunk-R3RNNOBY.js} +6 -6
- package/dist/chunk-R3RNNOBY.js.map +7 -0
- package/dist/clients/lighter.js +1 -1
- package/dist/clients/nado.js +2 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2093 -1317
- package/dist/index.js.map +4 -4
- package/dist/preview.js +105 -50
- package/dist/preview.js.map +2 -2
- package/dist/src/components/v2/FeeLine.d.ts +2 -2
- package/dist/src/components/v2/FeeLine.d.ts.map +1 -1
- package/dist/src/fiat/common/FiatActionButton.d.ts +3 -0
- package/dist/src/fiat/common/FiatActionButton.d.ts.map +1 -0
- package/dist/src/fiat/common/FiatBackButton.d.ts.map +1 -0
- package/dist/src/fiat/common/FiatErrorNotice.d.ts.map +1 -0
- package/dist/src/fiat/common/FiatErrorScreen.d.ts.map +1 -0
- package/dist/src/fiat/{FiatFailureBanner.d.ts → common/FiatFailureBanner.d.ts} +1 -1
- package/dist/src/fiat/common/FiatFailureBanner.d.ts.map +1 -0
- package/dist/src/fiat/{FiatOptionsScreen.d.ts → common/FiatOptionsScreen.d.ts} +1 -1
- package/dist/src/fiat/common/FiatOptionsScreen.d.ts.map +1 -0
- package/dist/src/fiat/common/FiatProviderTerms.d.ts.map +1 -0
- package/dist/src/fiat/common/FiatRegionUnsupportedScreen.d.ts.map +1 -0
- package/dist/src/fiat/common/FiatStatusScreen.d.ts.map +1 -0
- package/dist/src/fiat/common/FiatStepFailedScreen.d.ts.map +1 -0
- package/dist/src/fiat/common/FiatSubmissionIndicator.d.ts.map +1 -0
- package/dist/src/fiat/common/FiatTermsNotice.d.ts.map +1 -0
- package/dist/src/fiat/common/FiatUnavailableScreen.d.ts.map +1 -0
- package/dist/src/fiat/common/FiatUnsupportedStep.d.ts.map +1 -0
- package/dist/src/fiat/common/ctaLabel.d.ts.map +1 -0
- package/dist/src/fiat/{stepDetails.d.ts → common/stepDetails.d.ts} +15 -3
- package/dist/src/fiat/common/stepDetails.d.ts.map +1 -0
- package/dist/src/fiat/contact/FiatContactScreen.d.ts.map +1 -0
- package/dist/src/fiat/contact/FiatPhoneField.d.ts.map +1 -0
- package/dist/src/fiat/{contactRound.d.ts → contact/contactRound.d.ts} +1 -1
- package/dist/src/fiat/contact/contactRound.d.ts.map +1 -0
- package/dist/src/fiat/contact/knownContacts.d.ts.map +1 -0
- package/dist/src/fiat/contact/phoneCountries.d.ts.map +1 -0
- package/dist/src/fiat/contact/phoneDraft.d.ts.map +1 -0
- package/dist/src/fiat/contact/sessionContact.d.ts.map +1 -0
- package/dist/src/fiat/contact/useContactAutoSubmit.d.ts.map +1 -0
- package/dist/src/fiat/contact/useContactEligibility.d.ts.map +1 -0
- package/dist/src/fiat/{useFlowContact.d.ts → contact/useFlowContact.d.ts} +1 -1
- package/dist/src/fiat/contact/useFlowContact.d.ts.map +1 -0
- package/dist/src/fiat/country/FiatCountryIndexRail.d.ts.map +1 -0
- package/dist/src/fiat/{FiatCountrySheet.d.ts → country/FiatCountrySheet.d.ts} +5 -3
- package/dist/src/fiat/country/FiatCountrySheet.d.ts.map +1 -0
- package/dist/src/fiat/country/countryListEntries.d.ts.map +1 -0
- package/dist/src/fiat/{countrySections.d.ts → country/countrySections.d.ts} +1 -1
- package/dist/src/fiat/country/countrySections.d.ts.map +1 -0
- package/dist/src/fiat/country/postalCodeCountries.d.ts.map +1 -0
- package/dist/src/fiat/country/subdivisions.d.ts.map +1 -0
- package/dist/src/fiat/{useCountrySheet.d.ts → country/useCountrySheet.d.ts} +1 -1
- package/dist/src/fiat/country/useCountrySheet.d.ts.map +1 -0
- package/dist/src/fiat/{PaymentDisclosureNotice.d.ts → entry/PaymentDisclosureNotice.d.ts} +1 -1
- package/dist/src/fiat/entry/PaymentDisclosureNotice.d.ts.map +1 -0
- package/dist/src/fiat/{depositMatch.d.ts → entry/depositMatch.d.ts} +3 -3
- package/dist/src/fiat/entry/depositMatch.d.ts.map +1 -0
- package/dist/src/fiat/entry/disclosureFooter.d.ts.map +1 -0
- package/dist/src/fiat/{disclosureFooterContent.d.ts → entry/disclosureFooterContent.d.ts} +2 -2
- package/dist/src/fiat/entry/disclosureFooterContent.d.ts.map +1 -0
- package/dist/src/fiat/{useCaptureHold.d.ts → entry/useCaptureHold.d.ts} +3 -3
- package/dist/src/fiat/entry/useCaptureHold.d.ts.map +1 -0
- package/dist/src/fiat/{useEntryQuote.d.ts → entry/useEntryQuote.d.ts} +4 -3
- package/dist/src/fiat/entry/useEntryQuote.d.ts.map +1 -0
- package/dist/src/fiat/{useEntrySubmit.d.ts → entry/useEntrySubmit.d.ts} +6 -6
- package/dist/src/fiat/entry/useEntrySubmit.d.ts.map +1 -0
- package/dist/src/fiat/entry/useFiatCheckoutPreparation.d.ts.map +1 -0
- package/dist/src/fiat/{useFiatDirectDelivery.d.ts → entry/useFiatDirectDelivery.d.ts} +7 -1
- package/dist/src/fiat/entry/useFiatDirectDelivery.d.ts.map +1 -0
- package/dist/src/fiat/form/FiatBirthDateField.d.ts.map +1 -0
- package/dist/src/fiat/form/FiatChoiceField.d.ts.map +1 -0
- package/dist/src/fiat/form/FiatChoiceList.d.ts.map +1 -0
- package/dist/src/fiat/form/FiatDatePickerDock.d.ts.map +1 -0
- package/dist/src/fiat/form/FiatFormAdvance.d.ts.map +1 -0
- package/dist/src/fiat/{FiatFormFieldRow.d.ts → form/FiatFormFieldRow.d.ts} +2 -2
- package/dist/src/fiat/form/FiatFormFieldRow.d.ts.map +1 -0
- package/dist/src/fiat/form/FiatFormHeading.d.ts.map +1 -0
- package/dist/src/fiat/form/FiatFormScreen.d.ts.map +1 -0
- package/dist/src/fiat/form/FiatSsnField.d.ts.map +1 -0
- package/dist/src/fiat/form/calendarDate.d.ts.map +1 -0
- package/dist/src/fiat/form/fieldAutofill.d.ts.map +1 -0
- package/dist/src/fiat/{fieldLimits.d.ts → form/fieldLimits.d.ts} +1 -1
- package/dist/src/fiat/form/fieldLimits.d.ts.map +1 -0
- package/dist/src/fiat/form/formLayout.d.ts.map +1 -0
- package/dist/src/fiat/form/keyboardReturnKey.d.ts.map +1 -0
- package/dist/src/fiat/form/nativeDatePicker.d.ts.map +1 -0
- package/dist/src/fiat/form/refusedFields.d.ts.map +1 -0
- package/dist/src/fiat/{shownFieldIssues.d.ts → form/shownFieldIssues.d.ts} +1 -1
- package/dist/src/fiat/form/shownFieldIssues.d.ts.map +1 -0
- package/dist/src/fiat/form/ssnLength.d.ts.map +1 -0
- package/dist/src/fiat/form/useDatePickerDock.d.ts.map +1 -0
- package/dist/src/fiat/{useStandingRefusals.d.ts → form/useStandingRefusals.d.ts} +1 -1
- package/dist/src/fiat/form/useStandingRefusals.d.ts.map +1 -0
- package/dist/src/fiat/kyc/FiatDocumentCaptureStep.d.ts.map +1 -0
- package/dist/src/fiat/{FiatIdentityStep.d.ts → kyc/FiatIdentityStep.d.ts} +2 -2
- package/dist/src/fiat/kyc/FiatIdentityStep.d.ts.map +1 -0
- package/dist/src/fiat/{FiatKycFieldControl.d.ts → kyc/FiatKycFieldControl.d.ts} +2 -2
- package/dist/src/fiat/kyc/FiatKycFieldControl.d.ts.map +1 -0
- package/dist/src/fiat/kyc/FiatKycIntroLayout.d.ts.map +1 -0
- package/dist/src/fiat/kyc/FiatKycIntroScreen.d.ts.map +1 -0
- package/dist/src/fiat/{FiatKycNotice.d.ts → kyc/FiatKycNotice.d.ts} +1 -1
- package/dist/src/fiat/kyc/FiatKycNotice.d.ts.map +1 -0
- package/dist/src/fiat/kyc/FiatKycOptionRow.d.ts.map +1 -0
- package/dist/src/fiat/{FiatKycOptionsScreen.d.ts → kyc/FiatKycOptionsScreen.d.ts} +2 -2
- package/dist/src/fiat/kyc/FiatKycOptionsScreen.d.ts.map +1 -0
- package/dist/src/fiat/kyc/FiatKycOutcomeScreen.d.ts.map +1 -0
- package/dist/src/fiat/{FiatKycPhoneField.d.ts → kyc/FiatKycPhoneField.d.ts} +1 -1
- package/dist/src/fiat/kyc/FiatKycPhoneField.d.ts.map +1 -0
- package/dist/src/fiat/kyc/FiatSharingConsentNotice.d.ts.map +1 -0
- package/dist/src/fiat/kyc/KycGlassBackdrop.d.ts.map +1 -0
- package/dist/src/fiat/kyc/formScreenProps.d.ts +1 -1
- package/dist/src/fiat/kyc/formScreenProps.d.ts.map +1 -1
- package/dist/src/fiat/kyc/formValidationError.d.ts +1 -1
- package/dist/src/fiat/kyc/formValidationError.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycFailover.d.ts +1 -1
- package/dist/src/fiat/kyc/kycFailover.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycFormAttempt.d.ts +1 -1
- package/dist/src/fiat/kyc/kycFormAttempt.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycFormTheme.d.ts.map +1 -0
- package/dist/src/fiat/kyc/kycOptionRows.d.ts +1 -1
- package/dist/src/fiat/kyc/kycOptionRows.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycRoutes.d.ts +1 -1
- package/dist/src/fiat/kyc/kycRoutes.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycSupport.d.ts.map +1 -0
- package/dist/src/fiat/kyc/kycUnavailableAlert.d.ts.map +1 -0
- package/dist/src/fiat/kyc/kycVerdict.d.ts +3 -3
- package/dist/src/fiat/kyc/kycVerdict.d.ts.map +1 -1
- package/dist/src/fiat/kyc/legalLinks.d.ts.map +1 -0
- package/dist/src/fiat/kyc/sectionDetail.d.ts +1 -1
- package/dist/src/fiat/kyc/sectionDetail.d.ts.map +1 -1
- package/dist/src/fiat/{useIdentityAssertion.d.ts → kyc/useIdentityAssertion.d.ts} +2 -2
- package/dist/src/fiat/kyc/useIdentityAssertion.d.ts.map +1 -0
- package/dist/src/fiat/kyc/useKycCompletion.d.ts +1 -1
- package/dist/src/fiat/kyc/useKycCompletion.d.ts.map +1 -1
- package/dist/src/fiat/kyc/useKycFormFailure.d.ts +1 -1
- package/dist/src/fiat/kyc/useKycFormFailure.d.ts.map +1 -1
- package/dist/src/fiat/kyc/useKycScreens.d.ts +1 -1
- package/dist/src/fiat/kyc/useKycScreens.d.ts.map +1 -1
- package/dist/src/fiat/kyc/useSharingConsent.d.ts.map +1 -0
- package/dist/src/fiat/otp/FiatOtpScreen.d.ts.map +1 -0
- package/dist/src/fiat/{otpScreenProps.d.ts → otp/otpScreenProps.d.ts} +1 -1
- package/dist/src/fiat/otp/otpScreenProps.d.ts.map +1 -0
- package/dist/src/fiat/{sessionAuth.d.ts → otp/sessionAuth.d.ts} +1 -1
- package/dist/src/fiat/otp/sessionAuth.d.ts.map +1 -0
- package/dist/src/fiat/{useAuthHandoff.d.ts → otp/useAuthHandoff.d.ts} +1 -1
- package/dist/src/fiat/otp/useAuthHandoff.d.ts.map +1 -0
- package/dist/src/fiat/otp/useOtpAutoSubmit.d.ts.map +1 -0
- package/dist/src/fiat/otp/useOtpReceipt.d.ts.map +1 -0
- package/dist/src/fiat/otp/useResendCooldown.d.ts.map +1 -0
- package/dist/src/fiat/{applePayAttempt.d.ts → payment/applePayAttempt.d.ts} +2 -2
- package/dist/src/fiat/payment/applePayAttempt.d.ts.map +1 -0
- package/dist/src/fiat/payment/methodName.d.ts.map +1 -0
- package/dist/src/fiat/payment/paymentAttempts.d.ts.map +1 -0
- package/dist/src/fiat/{paymentReroute.d.ts → payment/paymentReroute.d.ts} +14 -14
- package/dist/src/fiat/payment/paymentReroute.d.ts.map +1 -0
- package/dist/src/fiat/payment/paymentSurfaceFailure.d.ts.map +1 -0
- package/dist/src/fiat/payment/providerFailover.d.ts.map +1 -0
- package/dist/src/fiat/{usePaymentAttempts.d.ts → payment/usePaymentAttempts.d.ts} +1 -1
- package/dist/src/fiat/payment/usePaymentAttempts.d.ts.map +1 -0
- package/dist/src/fiat/{usePaymentFailureAnswer.d.ts → payment/usePaymentFailureAnswer.d.ts} +2 -2
- package/dist/src/fiat/payment/usePaymentFailureAnswer.d.ts.map +1 -0
- package/dist/src/fiat/{useRerouteProbe.d.ts → payment/useRerouteProbe.d.ts} +6 -7
- package/dist/src/fiat/payment/useRerouteProbe.d.ts.map +1 -0
- package/dist/src/fiat/processing/ProcessingFailure.d.ts +1 -1
- package/dist/src/fiat/processing/ProcessingFailure.d.ts.map +1 -1
- package/dist/src/fiat/processing/depositProcessing.d.ts.map +1 -0
- package/dist/src/fiat/processing/useProcessingPhase.d.ts.map +1 -0
- package/dist/src/fiat/providers/adapter.d.ts +1 -1
- package/dist/src/fiat/providers/adapter.d.ts.map +1 -1
- package/dist/src/fiat/providers/kycIntro.d.ts +1 -1
- package/dist/src/fiat/providers/kycIntro.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/moonpayFeeQuote.d.ts +1 -1
- package/dist/src/fiat/providers/moonpay/moonpayFeeQuote.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeApplePayReady.d.ts +1 -1
- package/dist/src/fiat/providers/stripe/stripeApplePayReady.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeContactHeading.d.ts +1 -1
- package/dist/src/fiat/providers/stripe/stripeContactHeading.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/useStripePayButton.d.ts +27 -0
- package/dist/src/fiat/providers/stripe/useStripePayButton.d.ts.map +1 -0
- package/dist/src/fiat/quote/providerSelection.d.ts +14 -0
- package/dist/src/fiat/quote/providerSelection.d.ts.map +1 -0
- package/dist/src/fiat/quote/purchaseEstimate.d.ts +42 -0
- package/dist/src/fiat/quote/purchaseEstimate.d.ts.map +1 -0
- package/dist/src/fiat/quote/quoteNoRoute.d.ts.map +1 -0
- package/dist/src/fiat/quote/quoteRefusal.d.ts.map +1 -0
- package/dist/src/fiat/{quoteRouting.d.ts → quote/quoteRouting.d.ts} +5 -5
- package/dist/src/fiat/quote/quoteRouting.d.ts.map +1 -0
- package/dist/src/fiat/quote/useReplayableFailure.d.ts.map +1 -0
- package/dist/src/fiat/{useStaleQuoteRecovery.d.ts → quote/useStaleQuoteRecovery.d.ts} +1 -1
- package/dist/src/fiat/quote/useStaleQuoteRecovery.d.ts.map +1 -0
- package/dist/src/fiat/settlement/FiatPendingOrderScreen.d.ts.map +1 -0
- package/dist/src/fiat/settlement/FiatReceipt.d.ts.map +1 -0
- package/dist/src/fiat/{depositOutcome.d.ts → settlement/depositOutcome.d.ts} +2 -2
- package/dist/src/fiat/settlement/depositOutcome.d.ts.map +1 -0
- package/dist/src/fiat/{depositSettlement.d.ts → settlement/depositSettlement.d.ts} +1 -1
- package/dist/src/fiat/settlement/depositSettlement.d.ts.map +1 -0
- package/dist/src/fiat/{useDepositSettlement.d.ts → settlement/useDepositSettlement.d.ts} +10 -8
- package/dist/src/fiat/settlement/useDepositSettlement.d.ts.map +1 -0
- package/dist/src/fiat/settlement/useReceiptTitles.d.ts.map +1 -0
- package/dist/src/fiat/surface/ScreenSurfaceCover.d.ts.map +1 -0
- package/dist/src/fiat/{SurfaceSlot.d.ts → surface/SurfaceSlot.d.ts} +1 -1
- package/dist/src/fiat/surface/SurfaceSlot.d.ts.map +1 -0
- package/dist/src/fiat/{actionSlot.d.ts → surface/actionSlot.d.ts} +1 -1
- package/dist/src/fiat/surface/actionSlot.d.ts.map +1 -0
- package/dist/src/fiat/{closeFailure.d.ts → surface/closeFailure.d.ts} +1 -1
- package/dist/src/fiat/surface/closeFailure.d.ts.map +1 -0
- package/dist/src/fiat/{stepSurface.d.ts → surface/stepSurface.d.ts} +6 -6
- package/dist/src/fiat/surface/stepSurface.d.ts.map +1 -0
- package/dist/src/fiat/{surfaceRegistry.d.ts → surface/surfaceRegistry.d.ts} +1 -1
- package/dist/src/fiat/surface/surfaceRegistry.d.ts.map +1 -0
- package/dist/src/fiat/{useFailureAnnouncements.d.ts → surface/useFailureAnnouncements.d.ts} +3 -3
- package/dist/src/fiat/surface/useFailureAnnouncements.d.ts.map +1 -0
- package/dist/src/fiat/{useSurfaceAttempt.d.ts → surface/useSurfaceAttempt.d.ts} +2 -2
- package/dist/src/fiat/surface/useSurfaceAttempt.d.ts.map +1 -0
- package/dist/src/flow/DepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
- package/dist/src/flow/Drawer.d.ts +9 -0
- package/dist/src/flow/Drawer.d.ts.map +1 -1
- package/dist/src/flow/FiatDepositAmountStep.d.ts +2 -2
- package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/MethodPickerStep.d.ts.map +1 -1
- package/dist/src/flow/PaymentMethodPickerSheet.d.ts +3 -5
- package/dist/src/flow/PaymentMethodPickerSheet.d.ts.map +1 -1
- package/dist/src/flow/PaymentMethodRows.d.ts +1 -0
- package/dist/src/flow/PaymentMethodRows.d.ts.map +1 -1
- package/dist/src/flow/depositFlowConfig.d.ts +61 -42
- package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
- package/dist/src/flow/entryBanners.d.ts +32 -2
- package/dist/src/flow/entryBanners.d.ts.map +1 -1
- package/dist/src/flow/fiatStepScreens.d.ts +3 -3
- package/dist/src/flow/fiatStepScreens.d.ts.map +1 -1
- package/dist/src/flow/fiatSubmitRenderer.d.ts +13 -13
- package/dist/src/flow/fiatSubmitRenderer.d.ts.map +1 -1
- package/dist/src/flow/flowError.d.ts +12 -0
- package/dist/src/flow/flowError.d.ts.map +1 -1
- package/dist/src/flow/paymentMethodPress.d.ts +12 -0
- package/dist/src/flow/paymentMethodPress.d.ts.map +1 -0
- package/dist/src/flow/purchaseSheetCustomers.d.ts +2 -0
- package/dist/src/flow/purchaseSheetCustomers.d.ts.map +1 -0
- package/dist/src/flow/renderFiatFlowScreen.d.ts +14 -14
- package/dist/src/flow/renderFiatFlowScreen.d.ts.map +1 -1
- package/dist/src/flow/screenBundles.d.ts +2 -2
- package/dist/src/flow/screenBundles.d.ts.map +1 -1
- package/dist/src/flow/useFeeDetails.d.ts +5 -5
- package/dist/src/flow/useFeeDetails.d.ts.map +1 -1
- package/dist/src/flow/useFunkitPurchaseSheetEnabled.d.ts +19 -0
- package/dist/src/flow/useFunkitPurchaseSheetEnabled.d.ts.map +1 -0
- package/dist/src/flow/useV2DepositEnabled.d.ts +3 -0
- package/dist/src/flow/useV2DepositEnabled.d.ts.map +1 -0
- package/dist/src/flow/validateInitialAmount.d.ts +2 -1
- package/dist/src/flow/validateInitialAmount.d.ts.map +1 -1
- package/dist/src/hooks/track/events.d.ts +1 -1
- package/dist/src/hooks/track/events.d.ts.map +1 -1
- package/dist/src/hooks/track/paymentQuoteConfirmer.d.ts +12 -0
- package/dist/src/hooks/track/paymentQuoteConfirmer.d.ts.map +1 -0
- package/dist/src/hooks/track/useDepositFlowEvents.d.ts +1 -1
- package/dist/src/hooks/track/useDepositOutcomeEvents.d.ts +1 -1
- package/dist/src/hooks/track/useDepositOutcomeEvents.d.ts.map +1 -1
- package/dist/src/hooks/track/usePaymentButtonEvents.d.ts +1 -1
- package/dist/src/hooks/track/usePaymentButtonEvents.d.ts.map +1 -1
- package/dist/src/hooks/track/useStepResponseObservers.d.ts +6 -0
- package/dist/src/hooks/track/useStepResponseObservers.d.ts.map +1 -0
- package/dist/src/hooks/track/useTrackFiatDepositQuoteEvents.d.ts +1 -1
- package/dist/src/hooks/track/useTrackFiatDepositQuoteEvents.d.ts.map +1 -1
- package/dist/src/hooks/track/useTrackFiatPaymentEvents.d.ts +1 -1
- package/dist/src/hooks/track/useTrackFiatPaymentEvents.d.ts.map +1 -1
- package/dist/src/native/applePayWallet.d.ts +24 -0
- package/dist/src/native/applePayWallet.d.ts.map +1 -0
- package/dist/src/preview/flowPreview.d.ts +1 -1
- package/dist/src/preview/flowPreview.d.ts.map +1 -1
- package/dist/src/preview/scenarioCatalog.d.ts +43 -37
- package/dist/src/preview/scenarioCatalog.d.ts.map +1 -1
- package/dist/src/preview/scenarios.d.ts.map +1 -1
- package/dist/src/providers/FunkitProvider.d.ts.map +1 -1
- package/dist/src/providers/FunkitStatsigProvider.d.ts +5 -0
- package/dist/src/providers/FunkitStatsigProvider.d.ts.map +1 -1
- package/dist/src/providers/useFunkitCheckout.d.ts +3 -2
- package/dist/src/providers/useFunkitCheckout.d.ts.map +1 -1
- package/dist/src/screens/DepositAmountScreen.d.ts +4 -1
- package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
- package/dist/src/utils/formatAmount.d.ts +22 -0
- package/dist/src/utils/formatAmount.d.ts.map +1 -1
- package/expo-module.config.json +1 -1
- package/ios/FunkitApplePayWalletModule.swift +29 -0
- package/package.json +3 -3
- package/dist/chunk-B7O3LJWY.js.map +0 -7
- package/dist/chunk-M53J24WI.js.map +0 -7
- package/dist/src/fiat/FiatActionButton.d.ts +0 -3
- package/dist/src/fiat/FiatActionButton.d.ts.map +0 -1
- package/dist/src/fiat/FiatBackButton.d.ts.map +0 -1
- package/dist/src/fiat/FiatBirthDateField.d.ts.map +0 -1
- package/dist/src/fiat/FiatChoiceField.d.ts.map +0 -1
- package/dist/src/fiat/FiatChoiceList.d.ts.map +0 -1
- package/dist/src/fiat/FiatContactScreen.d.ts.map +0 -1
- package/dist/src/fiat/FiatCountryIndexRail.d.ts.map +0 -1
- package/dist/src/fiat/FiatCountrySheet.d.ts.map +0 -1
- package/dist/src/fiat/FiatDatePickerDock.d.ts.map +0 -1
- package/dist/src/fiat/FiatDocumentCaptureStep.d.ts.map +0 -1
- package/dist/src/fiat/FiatErrorNotice.d.ts.map +0 -1
- package/dist/src/fiat/FiatErrorScreen.d.ts.map +0 -1
- package/dist/src/fiat/FiatFailureBanner.d.ts.map +0 -1
- package/dist/src/fiat/FiatFormAdvance.d.ts.map +0 -1
- package/dist/src/fiat/FiatFormFieldRow.d.ts.map +0 -1
- package/dist/src/fiat/FiatFormHeading.d.ts.map +0 -1
- package/dist/src/fiat/FiatFormScreen.d.ts.map +0 -1
- package/dist/src/fiat/FiatIdentityStep.d.ts.map +0 -1
- package/dist/src/fiat/FiatKycFieldControl.d.ts.map +0 -1
- package/dist/src/fiat/FiatKycIntroLayout.d.ts.map +0 -1
- package/dist/src/fiat/FiatKycIntroScreen.d.ts.map +0 -1
- package/dist/src/fiat/FiatKycNotice.d.ts.map +0 -1
- package/dist/src/fiat/FiatKycOptionRow.d.ts.map +0 -1
- package/dist/src/fiat/FiatKycOptionsScreen.d.ts.map +0 -1
- package/dist/src/fiat/FiatKycOutcomeScreen.d.ts.map +0 -1
- package/dist/src/fiat/FiatKycPhoneField.d.ts.map +0 -1
- package/dist/src/fiat/FiatOptionsScreen.d.ts.map +0 -1
- package/dist/src/fiat/FiatOtpScreen.d.ts.map +0 -1
- package/dist/src/fiat/FiatPendingOrderScreen.d.ts.map +0 -1
- package/dist/src/fiat/FiatPhoneField.d.ts.map +0 -1
- package/dist/src/fiat/FiatProviderTerms.d.ts.map +0 -1
- package/dist/src/fiat/FiatReceipt.d.ts.map +0 -1
- package/dist/src/fiat/FiatRegionUnsupportedScreen.d.ts.map +0 -1
- package/dist/src/fiat/FiatSharingConsentNotice.d.ts.map +0 -1
- package/dist/src/fiat/FiatSsnField.d.ts.map +0 -1
- package/dist/src/fiat/FiatStatusScreen.d.ts.map +0 -1
- package/dist/src/fiat/FiatStepFailedScreen.d.ts.map +0 -1
- package/dist/src/fiat/FiatSubmissionIndicator.d.ts.map +0 -1
- package/dist/src/fiat/FiatTermsNotice.d.ts.map +0 -1
- package/dist/src/fiat/FiatUnavailableScreen.d.ts.map +0 -1
- package/dist/src/fiat/FiatUnsupportedStep.d.ts.map +0 -1
- package/dist/src/fiat/KycGlassBackdrop.d.ts.map +0 -1
- package/dist/src/fiat/PaymentDisclosureNotice.d.ts.map +0 -1
- package/dist/src/fiat/ScreenSurfaceCover.d.ts.map +0 -1
- package/dist/src/fiat/SurfaceSlot.d.ts.map +0 -1
- package/dist/src/fiat/actionSlot.d.ts.map +0 -1
- package/dist/src/fiat/applePayAttempt.d.ts.map +0 -1
- package/dist/src/fiat/calendarDate.d.ts.map +0 -1
- package/dist/src/fiat/closeFailure.d.ts.map +0 -1
- package/dist/src/fiat/contactRound.d.ts.map +0 -1
- package/dist/src/fiat/countryListEntries.d.ts.map +0 -1
- package/dist/src/fiat/countrySections.d.ts.map +0 -1
- package/dist/src/fiat/ctaLabel.d.ts.map +0 -1
- package/dist/src/fiat/depositMatch.d.ts.map +0 -1
- package/dist/src/fiat/depositOutcome.d.ts.map +0 -1
- package/dist/src/fiat/depositProcessing.d.ts.map +0 -1
- package/dist/src/fiat/depositSettlement.d.ts.map +0 -1
- package/dist/src/fiat/disclosureFooter.d.ts.map +0 -1
- package/dist/src/fiat/disclosureFooterContent.d.ts.map +0 -1
- package/dist/src/fiat/fieldAutofill.d.ts.map +0 -1
- package/dist/src/fiat/fieldLimits.d.ts.map +0 -1
- package/dist/src/fiat/formLayout.d.ts.map +0 -1
- package/dist/src/fiat/keyboardReturnKey.d.ts.map +0 -1
- package/dist/src/fiat/knownContacts.d.ts.map +0 -1
- package/dist/src/fiat/kycFormTheme.d.ts.map +0 -1
- package/dist/src/fiat/kycSupport.d.ts.map +0 -1
- package/dist/src/fiat/kycUnavailableAlert.d.ts.map +0 -1
- package/dist/src/fiat/legalLinks.d.ts.map +0 -1
- package/dist/src/fiat/methodName.d.ts.map +0 -1
- package/dist/src/fiat/nativeDatePicker.d.ts.map +0 -1
- package/dist/src/fiat/otpScreenProps.d.ts.map +0 -1
- package/dist/src/fiat/paymentAttempts.d.ts.map +0 -1
- package/dist/src/fiat/paymentReroute.d.ts.map +0 -1
- package/dist/src/fiat/paymentSurfaceFailure.d.ts.map +0 -1
- package/dist/src/fiat/phoneCountries.d.ts.map +0 -1
- package/dist/src/fiat/phoneDraft.d.ts.map +0 -1
- package/dist/src/fiat/postalCodeCountries.d.ts.map +0 -1
- package/dist/src/fiat/providerFailover.d.ts.map +0 -1
- package/dist/src/fiat/quoteNoRoute.d.ts.map +0 -1
- package/dist/src/fiat/quoteRefusal.d.ts.map +0 -1
- package/dist/src/fiat/quoteRouting.d.ts.map +0 -1
- package/dist/src/fiat/refusedFields.d.ts.map +0 -1
- package/dist/src/fiat/sessionAuth.d.ts.map +0 -1
- package/dist/src/fiat/sessionContact.d.ts.map +0 -1
- package/dist/src/fiat/shownFieldIssues.d.ts.map +0 -1
- package/dist/src/fiat/ssnLength.d.ts.map +0 -1
- package/dist/src/fiat/stepDetails.d.ts.map +0 -1
- package/dist/src/fiat/stepSurface.d.ts.map +0 -1
- package/dist/src/fiat/subdivisions.d.ts.map +0 -1
- package/dist/src/fiat/surfaceRegistry.d.ts.map +0 -1
- package/dist/src/fiat/useAuthHandoff.d.ts.map +0 -1
- package/dist/src/fiat/useCaptureHold.d.ts.map +0 -1
- package/dist/src/fiat/useContactAutoSubmit.d.ts.map +0 -1
- package/dist/src/fiat/useContactEligibility.d.ts.map +0 -1
- package/dist/src/fiat/useCountrySheet.d.ts.map +0 -1
- package/dist/src/fiat/useDatePickerDock.d.ts.map +0 -1
- package/dist/src/fiat/useDepositSettlement.d.ts.map +0 -1
- package/dist/src/fiat/useEntryQuote.d.ts.map +0 -1
- package/dist/src/fiat/useEntrySubmit.d.ts.map +0 -1
- package/dist/src/fiat/useFailureAnnouncements.d.ts.map +0 -1
- package/dist/src/fiat/useFiatCheckoutPreparation.d.ts.map +0 -1
- package/dist/src/fiat/useFiatDirectDelivery.d.ts.map +0 -1
- package/dist/src/fiat/useFlowContact.d.ts.map +0 -1
- package/dist/src/fiat/useIdentityAssertion.d.ts.map +0 -1
- package/dist/src/fiat/useOtpAutoSubmit.d.ts.map +0 -1
- package/dist/src/fiat/useOtpReceipt.d.ts.map +0 -1
- package/dist/src/fiat/usePaymentAttempts.d.ts.map +0 -1
- package/dist/src/fiat/usePaymentFailureAnswer.d.ts.map +0 -1
- package/dist/src/fiat/useProcessingPhase.d.ts.map +0 -1
- package/dist/src/fiat/useReceiptTitles.d.ts.map +0 -1
- package/dist/src/fiat/useReplayableFailure.d.ts.map +0 -1
- package/dist/src/fiat/useRerouteProbe.d.ts.map +0 -1
- package/dist/src/fiat/useResendCooldown.d.ts.map +0 -1
- package/dist/src/fiat/useSharingConsent.d.ts.map +0 -1
- package/dist/src/fiat/useStaleQuoteRecovery.d.ts.map +0 -1
- package/dist/src/fiat/useStandingRefusals.d.ts.map +0 -1
- package/dist/src/fiat/useSurfaceAttempt.d.ts.map +0 -1
- /package/dist/{chunk-4P4VMXII.js.map → chunk-264ZLQVH.js.map} +0 -0
- /package/dist/src/fiat/{FiatBackButton.d.ts → common/FiatBackButton.d.ts} +0 -0
- /package/dist/src/fiat/{FiatErrorNotice.d.ts → common/FiatErrorNotice.d.ts} +0 -0
- /package/dist/src/fiat/{FiatErrorScreen.d.ts → common/FiatErrorScreen.d.ts} +0 -0
- /package/dist/src/fiat/{FiatProviderTerms.d.ts → common/FiatProviderTerms.d.ts} +0 -0
- /package/dist/src/fiat/{FiatRegionUnsupportedScreen.d.ts → common/FiatRegionUnsupportedScreen.d.ts} +0 -0
- /package/dist/src/fiat/{FiatStatusScreen.d.ts → common/FiatStatusScreen.d.ts} +0 -0
- /package/dist/src/fiat/{FiatStepFailedScreen.d.ts → common/FiatStepFailedScreen.d.ts} +0 -0
- /package/dist/src/fiat/{FiatSubmissionIndicator.d.ts → common/FiatSubmissionIndicator.d.ts} +0 -0
- /package/dist/src/fiat/{FiatTermsNotice.d.ts → common/FiatTermsNotice.d.ts} +0 -0
- /package/dist/src/fiat/{FiatUnavailableScreen.d.ts → common/FiatUnavailableScreen.d.ts} +0 -0
- /package/dist/src/fiat/{FiatUnsupportedStep.d.ts → common/FiatUnsupportedStep.d.ts} +0 -0
- /package/dist/src/fiat/{ctaLabel.d.ts → common/ctaLabel.d.ts} +0 -0
- /package/dist/src/fiat/{FiatContactScreen.d.ts → contact/FiatContactScreen.d.ts} +0 -0
- /package/dist/src/fiat/{FiatPhoneField.d.ts → contact/FiatPhoneField.d.ts} +0 -0
- /package/dist/src/fiat/{knownContacts.d.ts → contact/knownContacts.d.ts} +0 -0
- /package/dist/src/fiat/{phoneCountries.d.ts → contact/phoneCountries.d.ts} +0 -0
- /package/dist/src/fiat/{phoneDraft.d.ts → contact/phoneDraft.d.ts} +0 -0
- /package/dist/src/fiat/{sessionContact.d.ts → contact/sessionContact.d.ts} +0 -0
- /package/dist/src/fiat/{useContactAutoSubmit.d.ts → contact/useContactAutoSubmit.d.ts} +0 -0
- /package/dist/src/fiat/{useContactEligibility.d.ts → contact/useContactEligibility.d.ts} +0 -0
- /package/dist/src/fiat/{FiatCountryIndexRail.d.ts → country/FiatCountryIndexRail.d.ts} +0 -0
- /package/dist/src/fiat/{countryListEntries.d.ts → country/countryListEntries.d.ts} +0 -0
- /package/dist/src/fiat/{postalCodeCountries.d.ts → country/postalCodeCountries.d.ts} +0 -0
- /package/dist/src/fiat/{subdivisions.d.ts → country/subdivisions.d.ts} +0 -0
- /package/dist/src/fiat/{disclosureFooter.d.ts → entry/disclosureFooter.d.ts} +0 -0
- /package/dist/src/fiat/{useFiatCheckoutPreparation.d.ts → entry/useFiatCheckoutPreparation.d.ts} +0 -0
- /package/dist/src/fiat/{FiatBirthDateField.d.ts → form/FiatBirthDateField.d.ts} +0 -0
- /package/dist/src/fiat/{FiatChoiceField.d.ts → form/FiatChoiceField.d.ts} +0 -0
- /package/dist/src/fiat/{FiatChoiceList.d.ts → form/FiatChoiceList.d.ts} +0 -0
- /package/dist/src/fiat/{FiatDatePickerDock.d.ts → form/FiatDatePickerDock.d.ts} +0 -0
- /package/dist/src/fiat/{FiatFormAdvance.d.ts → form/FiatFormAdvance.d.ts} +0 -0
- /package/dist/src/fiat/{FiatFormHeading.d.ts → form/FiatFormHeading.d.ts} +0 -0
- /package/dist/src/fiat/{FiatFormScreen.d.ts → form/FiatFormScreen.d.ts} +0 -0
- /package/dist/src/fiat/{FiatSsnField.d.ts → form/FiatSsnField.d.ts} +0 -0
- /package/dist/src/fiat/{calendarDate.d.ts → form/calendarDate.d.ts} +0 -0
- /package/dist/src/fiat/{fieldAutofill.d.ts → form/fieldAutofill.d.ts} +0 -0
- /package/dist/src/fiat/{formLayout.d.ts → form/formLayout.d.ts} +0 -0
- /package/dist/src/fiat/{keyboardReturnKey.d.ts → form/keyboardReturnKey.d.ts} +0 -0
- /package/dist/src/fiat/{nativeDatePicker.d.ts → form/nativeDatePicker.d.ts} +0 -0
- /package/dist/src/fiat/{refusedFields.d.ts → form/refusedFields.d.ts} +0 -0
- /package/dist/src/fiat/{ssnLength.d.ts → form/ssnLength.d.ts} +0 -0
- /package/dist/src/fiat/{useDatePickerDock.d.ts → form/useDatePickerDock.d.ts} +0 -0
- /package/dist/src/fiat/{FiatDocumentCaptureStep.d.ts → kyc/FiatDocumentCaptureStep.d.ts} +0 -0
- /package/dist/src/fiat/{FiatKycIntroLayout.d.ts → kyc/FiatKycIntroLayout.d.ts} +0 -0
- /package/dist/src/fiat/{FiatKycIntroScreen.d.ts → kyc/FiatKycIntroScreen.d.ts} +0 -0
- /package/dist/src/fiat/{FiatKycOptionRow.d.ts → kyc/FiatKycOptionRow.d.ts} +0 -0
- /package/dist/src/fiat/{FiatKycOutcomeScreen.d.ts → kyc/FiatKycOutcomeScreen.d.ts} +0 -0
- /package/dist/src/fiat/{FiatSharingConsentNotice.d.ts → kyc/FiatSharingConsentNotice.d.ts} +0 -0
- /package/dist/src/fiat/{KycGlassBackdrop.d.ts → kyc/KycGlassBackdrop.d.ts} +0 -0
- /package/dist/src/fiat/{kycFormTheme.d.ts → kyc/kycFormTheme.d.ts} +0 -0
- /package/dist/src/fiat/{kycSupport.d.ts → kyc/kycSupport.d.ts} +0 -0
- /package/dist/src/fiat/{kycUnavailableAlert.d.ts → kyc/kycUnavailableAlert.d.ts} +0 -0
- /package/dist/src/fiat/{legalLinks.d.ts → kyc/legalLinks.d.ts} +0 -0
- /package/dist/src/fiat/{useSharingConsent.d.ts → kyc/useSharingConsent.d.ts} +0 -0
- /package/dist/src/fiat/{FiatOtpScreen.d.ts → otp/FiatOtpScreen.d.ts} +0 -0
- /package/dist/src/fiat/{useOtpAutoSubmit.d.ts → otp/useOtpAutoSubmit.d.ts} +0 -0
- /package/dist/src/fiat/{useOtpReceipt.d.ts → otp/useOtpReceipt.d.ts} +0 -0
- /package/dist/src/fiat/{useResendCooldown.d.ts → otp/useResendCooldown.d.ts} +0 -0
- /package/dist/src/fiat/{methodName.d.ts → payment/methodName.d.ts} +0 -0
- /package/dist/src/fiat/{paymentAttempts.d.ts → payment/paymentAttempts.d.ts} +0 -0
- /package/dist/src/fiat/{paymentSurfaceFailure.d.ts → payment/paymentSurfaceFailure.d.ts} +0 -0
- /package/dist/src/fiat/{providerFailover.d.ts → payment/providerFailover.d.ts} +0 -0
- /package/dist/src/fiat/{depositProcessing.d.ts → processing/depositProcessing.d.ts} +0 -0
- /package/dist/src/fiat/{useProcessingPhase.d.ts → processing/useProcessingPhase.d.ts} +0 -0
- /package/dist/src/fiat/{quoteNoRoute.d.ts → quote/quoteNoRoute.d.ts} +0 -0
- /package/dist/src/fiat/{quoteRefusal.d.ts → quote/quoteRefusal.d.ts} +0 -0
- /package/dist/src/fiat/{useReplayableFailure.d.ts → quote/useReplayableFailure.d.ts} +0 -0
- /package/dist/src/fiat/{FiatPendingOrderScreen.d.ts → settlement/FiatPendingOrderScreen.d.ts} +0 -0
- /package/dist/src/fiat/{FiatReceipt.d.ts → settlement/FiatReceipt.d.ts} +0 -0
- /package/dist/src/fiat/{useReceiptTitles.d.ts → settlement/useReceiptTitles.d.ts} +0 -0
- /package/dist/src/fiat/{ScreenSurfaceCover.d.ts → surface/ScreenSurfaceCover.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentMethodPickerSheet.d.ts","sourceRoot":"","sources":["../../../src/flow/PaymentMethodPickerSheet.tsx"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,SAAS,EAMf,MAAM,OAAO,CAAA;AAcd,OAAO,KAAK,EACV,oBAAoB,
|
|
1
|
+
{"version":3,"file":"PaymentMethodPickerSheet.d.ts","sourceRoot":"","sources":["../../../src/flow/PaymentMethodPickerSheet.tsx"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,SAAS,EAMf,MAAM,OAAO,CAAA;AAcd,OAAO,KAAK,EACV,oBAAoB,EAIrB,MAAM,qBAAqB,CAAA;AAI5B,KAAK,kBAAkB,GAAG,WAAW,CACnC,oBAAoB,CAAC,sBAAsB,CAAC,CAC7C,CAAA;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,EAC1C,YAAY,EACZ,oBAAoB,EACpB,WAAW,EACX,UAAU,GACX,EAAE;IACD,YAAY,EAAE,oBAAoB,CAAC,qBAAqB,CAAC,CAAA;IACzD,oBAAoB,EAAE,oBAAoB,CAAC,sBAAsB,CAAC,CAAA;IAClE;;;OAGG;IACH,WAAW,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAA;IACnC,UAAU,EAAE,MAAM,CAAA;CACnB,GAAG;IAAE,OAAO,EAAE,kBAAkB,GAAG,SAAS,CAAC;IAAC,KAAK,EAAE,SAAS,CAAA;CAAE,CA+KhE"}
|
|
@@ -3,6 +3,7 @@ import type { PaymentMethodRow } from './depositFlowConfig';
|
|
|
3
3
|
* The host's payment methods as the flow draws them: grouped cards, ruled
|
|
4
4
|
* between rows, under a heading for each run of rows sharing a section. The
|
|
5
5
|
* geometry is the country list's (2184:14277), so the two drawers read alike.
|
|
6
|
+
* A row the host draws itself (`render`) sits outside the cards, unstyled.
|
|
6
7
|
*/
|
|
7
8
|
export declare function PaymentMethodRows({ options, onSelect, }: {
|
|
8
9
|
options: readonly PaymentMethodRow[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentMethodRows.d.ts","sourceRoot":"","sources":["../../../src/flow/PaymentMethodRows.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAE3D
|
|
1
|
+
{"version":3,"file":"PaymentMethodRows.d.ts","sourceRoot":"","sources":["../../../src/flow/PaymentMethodRows.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAE3D;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,OAAO,EACP,QAAQ,GACT,EAAE;IACD,OAAO,EAAE,SAAS,gBAAgB,EAAE,CAAA;IACpC,QAAQ,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,IAAI,CAAA;CAC7C,+BAiEA"}
|
|
@@ -29,6 +29,8 @@ export interface DepositClientMetadata {
|
|
|
29
29
|
* the flow provider and `useFops` share exactly one shape.
|
|
30
30
|
*/
|
|
31
31
|
export type DepositCheckoutConfig = DepositTargetConfig & Pick<MinDepositTarget, 'getMinDepositUSD'>;
|
|
32
|
+
/** A deposit's target token address: an EVM contract address, or on Solana the SPL mint address. */
|
|
33
|
+
export type DepositTargetAsset = Address | SolanaAddress;
|
|
32
34
|
/**
|
|
33
35
|
* The connect-core transfer config with `targetAsset` also taking a Solana
|
|
34
36
|
* mint: the fiat rail buys it directly, so hosts targeting Solana USDC pass the
|
|
@@ -36,7 +38,7 @@ export type DepositCheckoutConfig = DepositTargetConfig & Pick<MinDepositTarget,
|
|
|
36
38
|
* EVM-only typing is untouched; RN hooks narrow back at the core boundary.
|
|
37
39
|
*/
|
|
38
40
|
export type DepositTargetConfig = Omit<CheckoutTokenTransferConfig, 'targetAsset'> & {
|
|
39
|
-
targetAsset:
|
|
41
|
+
targetAsset: DepositTargetAsset;
|
|
40
42
|
};
|
|
41
43
|
/**
|
|
42
44
|
* Resolve the active target-asset candidate from a list + routing id (RN-only).
|
|
@@ -127,12 +129,48 @@ export interface DepositAmountEntryConfig {
|
|
|
127
129
|
methodBadge?: ReactNode;
|
|
128
130
|
/** Host account context in the header (label + balance + avatar). */
|
|
129
131
|
accountContext?: DepositAccountContext;
|
|
132
|
+
/**
|
|
133
|
+
* Display data for the purchased token; must describe `checkoutConfig.targetAsset`.
|
|
134
|
+
* Display only: unrelated to `dynamicTargetAssetCandidates` (routing) and
|
|
135
|
+
* `showFiatDestinationToken`. Fun never fetches metadata for a fresh token.
|
|
136
|
+
* - The market fields are your market data, shown as given. "Receive ~X" never
|
|
137
|
+
* derives from `price`; it comes from the selected method's quote.
|
|
138
|
+
* - Read when the sheet opens; the header does not update while it is up.
|
|
139
|
+
*/
|
|
140
|
+
purchaseTarget?: DepositPurchaseTarget;
|
|
130
141
|
/**
|
|
131
142
|
* @deprecated Name the rail in {@link DepositFlowConfig.methods}; it delivers
|
|
132
143
|
* to `checkoutConfig`, so the destination is not repeated here.
|
|
133
144
|
*/
|
|
134
145
|
fiat?: FiatRailConfig;
|
|
135
146
|
}
|
|
147
|
+
/** The token a purchase sheet buys, as its header and "Receive ~X" line show it. */
|
|
148
|
+
export interface DepositPurchaseTarget {
|
|
149
|
+
symbol: string;
|
|
150
|
+
/** Token units render with these decimals, trimmed for display. */
|
|
151
|
+
decimals: number;
|
|
152
|
+
/**
|
|
153
|
+
* Shown beside the symbol in the plain heading. With any market field set,
|
|
154
|
+
* the header follows the trade screen and shows the symbol alone.
|
|
155
|
+
*/
|
|
156
|
+
name?: string;
|
|
157
|
+
iconUri?: string;
|
|
158
|
+
/** The token's chain mark, beside its symbol, so buyers see which chain it lives on. */
|
|
159
|
+
chainIconUri?: string;
|
|
160
|
+
/** From your market data, so buyers see the token's size; shown as "$6.9M MC". */
|
|
161
|
+
marketCap?: DepositMarketAmount;
|
|
162
|
+
/** From your market data, so buyers see what one token costs now. */
|
|
163
|
+
price?: DepositMarketAmount;
|
|
164
|
+
/** From your market data, so buyers see the 24h trend; `7.77` reads "▲ 7.77%". */
|
|
165
|
+
priceChangePercent24h?: number;
|
|
166
|
+
}
|
|
167
|
+
/** A figure from the host's market data. The SDK formats it and never fetches it. */
|
|
168
|
+
export interface DepositMarketAmount {
|
|
169
|
+
/** A plain decimal, e.g. `'6900000'`. */
|
|
170
|
+
value: string;
|
|
171
|
+
/** ISO 4217, e.g. `'USD'`. */
|
|
172
|
+
currency: string;
|
|
173
|
+
}
|
|
136
174
|
/**
|
|
137
175
|
* The host's balance beside the title. The SDK formats it like every other
|
|
138
176
|
* amount on the screen, so give it the number, not the words.
|
|
@@ -297,22 +335,6 @@ export interface DepositFlowConfig {
|
|
|
297
335
|
*/
|
|
298
336
|
lockAmount?: boolean;
|
|
299
337
|
}
|
|
300
|
-
/** What {@link DepositFlowCallbacks.renderPaymentMethodPicker} draws with. */
|
|
301
|
-
export interface PaymentMethodPicker {
|
|
302
|
-
/** As {@link DepositFlowCallbacks.onPaymentMethodPress} receives it. */
|
|
303
|
-
amount: DepositInitialAmount | undefined;
|
|
304
|
-
/** Closes the drawer, back to the amount screen as the user left it. */
|
|
305
|
-
stay: () => void;
|
|
306
|
-
/**
|
|
307
|
-
* Ends the deposit so the host can take the user to a payment method the
|
|
308
|
-
* flow does not offer. The sheet animates away and `onClose` fires; then
|
|
309
|
-
* `then` runs, which is where the host navigates. Resolves `true` after
|
|
310
|
-
* `then`, or `false` without running it when the flow refused to close or
|
|
311
|
-
* `onClose` opened another flow before returning, which `then` would
|
|
312
|
-
* navigate under.
|
|
313
|
-
*/
|
|
314
|
-
leave: (then?: () => void) => Promise<boolean>;
|
|
315
|
-
}
|
|
316
338
|
/**
|
|
317
339
|
* What choosing a {@link PaymentMethodRow} does. `'stay'` closes the drawer,
|
|
318
340
|
* back to the amount screen as the user left it. `{ afterClose }` ends the
|
|
@@ -328,11 +350,26 @@ export type PaymentMethodSelection = 'stay' | {
|
|
|
328
350
|
export interface PaymentMethodRow {
|
|
329
351
|
/** Unique within the list; the row's key and its `testID` suffix. */
|
|
330
352
|
id: string;
|
|
353
|
+
/**
|
|
354
|
+
* Drawn as the row's text, and always its accessibility label: a drawn row
|
|
355
|
+
* is read as this alone, so carry everything a screen reader needs.
|
|
356
|
+
*/
|
|
331
357
|
label: string;
|
|
332
358
|
/** Drawn before the label at its own size; the row is 52pt high. */
|
|
333
359
|
icon?: ReactNode;
|
|
334
360
|
/** Drawn at the row's end: a tag, a check, a chevron. */
|
|
335
361
|
trailing?: ReactNode;
|
|
362
|
+
/**
|
|
363
|
+
* Draws the whole row instead of `icon`, `label` and `trailing`, with none
|
|
364
|
+
* of the flow's row styling. The flow still owns the press.
|
|
365
|
+
* - Draw nothing pressable inside it: `onSelect` is the row's only answer.
|
|
366
|
+
* - Drawn rows stack flush; spacing between them is the host's to draw.
|
|
367
|
+
* - Read at press time, where `FunkitProvider` is mounted: pass state in as
|
|
368
|
+
* props, or return a component that subscribes to it to stay live.
|
|
369
|
+
*/
|
|
370
|
+
render?: (state: {
|
|
371
|
+
pressed: boolean;
|
|
372
|
+
}) => ReactNode;
|
|
336
373
|
/** A heading drawn above each run of consecutive rows that share it. */
|
|
337
374
|
section?: string;
|
|
338
375
|
/**
|
|
@@ -372,9 +409,9 @@ export interface DepositFlowCallbacks {
|
|
|
372
409
|
* draws the method as a pressable row; the flow stays open, so the host can
|
|
373
410
|
* present its own method choice over it. `amount` is what the user has
|
|
374
411
|
* typed (including an empty draft), in the currency it will be quoted in;
|
|
375
|
-
* it is absent while that currency is still unknown. Set
|
|
376
|
-
*
|
|
377
|
-
* `
|
|
412
|
+
* it is absent while that currency is still unknown. Set this or
|
|
413
|
+
* {@link paymentMethodPicker}, not both: `beginDeposit` throws
|
|
414
|
+
* `misconfigured` otherwise.
|
|
378
415
|
* @deprecated Use {@link paymentMethodPicker}, which presents the host's
|
|
379
416
|
* methods inside the flow's sheet and keeps the session and amount.
|
|
380
417
|
*/
|
|
@@ -385,35 +422,17 @@ export interface DepositFlowCallbacks {
|
|
|
385
422
|
* draws the method as a pressable row. Swiping the drawer away stays. A row
|
|
386
423
|
* leaves the flow only through `onSelect`'s `afterClose`, which runs once the
|
|
387
424
|
* sheet is off screen and `onClose` has fired, so nothing the host navigates
|
|
388
|
-
* to can land under the sheet.
|
|
389
|
-
* {@link renderPaymentMethodPicker}.
|
|
425
|
+
* to can land under the sheet.
|
|
390
426
|
*/
|
|
391
427
|
paymentMethodPicker?: PaymentMethodPickerConfig;
|
|
392
|
-
/**
|
|
393
|
-
* The host's payment-method choice, which the flow presents in a drawer over
|
|
394
|
-
* the amount screen when the user presses the payment method. Supplying this
|
|
395
|
-
* draws the method as a pressable row. The drawer supplies the title, scroll
|
|
396
|
-
* and safe-area padding; render rows only. Swiping it away is `stay()`.
|
|
397
|
-
* - Never navigate from inside the picker: a route pushed while the sheet is
|
|
398
|
-
* up presents over a modal that is still presented. Leave with
|
|
399
|
-
* `leave(then)` and navigate in `then`.
|
|
400
|
-
* - It renders where `FunkitProvider` is mounted, not where `beginDeposit`
|
|
401
|
-
* was called. Context from providers inside a screen or route beside it is
|
|
402
|
-
* absent there; pass that state in as props.
|
|
403
|
-
* - It is read when `beginDeposit` runs and kept for the session. Read state
|
|
404
|
-
* that changes while the flow is open with hooks inside the component you
|
|
405
|
-
* return, not from this function's closure.
|
|
406
|
-
* - A throw inside it, or returning `undefined`, is logged and closes the
|
|
407
|
-
* drawer. Return `null` to draw nothing.
|
|
408
|
-
* {@link paymentMethodPicker} closes the first three by construction.
|
|
409
|
-
*/
|
|
410
|
-
renderPaymentMethodPicker?: (picker: PaymentMethodPicker) => ReactNode;
|
|
411
428
|
/**
|
|
412
429
|
* The deposit is on its way and the SDK is finished with it: the flow has
|
|
413
430
|
* closed and its confirmation is up. `orderId` is the provider's; `method`
|
|
414
431
|
* is the rail's {@link DepositMethod} type. Fires only where the rail pays
|
|
415
432
|
* the recipient directly — an order the backend still has to sweep has not
|
|
416
|
-
* arrived, so nothing is claimed for it.
|
|
433
|
+
* arrived, so nothing is claimed for it. Where the backend picks the address,
|
|
434
|
+
* fires once the backend says the order is done: for an order it converts
|
|
435
|
+
* into another asset, once that asset reached the recipient.
|
|
417
436
|
*/
|
|
418
437
|
onDepositSubmitted?: (orderId: string, method: DepositMethod['type']) => void;
|
|
419
438
|
/**
|
|
@@ -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,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAA;AAEvE;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC,kCAAkC;IAClC,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,mEAAmE;IACnE,mBAAmB,CAAC,EAAE,GAAG,MAAM,EAAE,CAAA;IACjC;;;;OAIG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAA;CAClC;AAED;;;;;GAKG;AACH,MAAM,MAAM,qBAAqB,GAAG,mBAAmB,GACrD,IAAI,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAAA;AAE5C;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,2BAA2B,EAC3B,aAAa,CACd,GAAG;IACF,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"depositFlowConfig.d.ts","sourceRoot":"","sources":["../../../src/flow/depositFlowConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAA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';
|
|
2
2
|
import { type KycNoticeState } from '../fiat/kyc/kycCopy';
|
|
3
|
-
import { type ProviderFailover } from '../fiat/providerFailover';
|
|
3
|
+
import { type ProviderFailover } from '../fiat/payment/providerFailover';
|
|
4
|
+
import type { useKycVerdict } from '../fiat/kyc/kycVerdict';
|
|
4
5
|
import { useFunkitTranslation } from '../providers/FunkitI18nProvider';
|
|
5
6
|
/** Figma 2812:1135, measured on the 393 × 852 reference frame. */
|
|
6
7
|
export declare const FAILURE_BANNER_TOP = 56;
|
|
@@ -15,6 +16,35 @@ export declare function useHandoffBanner(flow: FiatFlow, isHandedOff: boolean, f
|
|
|
15
16
|
handoffBanner: import("react").JSX.Element | undefined;
|
|
16
17
|
};
|
|
17
18
|
export declare function useUnavailableBanner(methodUnavailableName: string | undefined, paymentMethod: string, bannerTop: number, t: ReturnType<typeof useFunkitTranslation>['t']): import("react").JSX.Element | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* 2812:1135 puts the failure banner at the reference frame's own top inset,
|
|
21
|
+
* so the device's inset carries it rather than a fixed offset.
|
|
22
|
+
*/
|
|
23
|
+
export declare function useBannerTop(): number;
|
|
24
|
+
/** The toasts the amount entry can wear over its header. */
|
|
25
|
+
export declare function useEntryBanners({ bannerTop, contactRateLimited, excluded, failovers, flow, handoff, hasPaymentMethodPicker, identityNoticeState, kycSubmission, methodName, noRoute, paymentMethod, provider, shownKycOutcome, t, throttleEvent, }: {
|
|
26
|
+
bannerTop: number;
|
|
27
|
+
contactRateLimited: boolean;
|
|
28
|
+
excluded: readonly FiatProvider[];
|
|
29
|
+
failovers: readonly ProviderFailover[];
|
|
30
|
+
flow: FiatFlow;
|
|
31
|
+
handoff: ProviderFailover | undefined;
|
|
32
|
+
hasPaymentMethodPicker: boolean;
|
|
33
|
+
identityNoticeState: KycNoticeState | undefined;
|
|
34
|
+
kycSubmission: number;
|
|
35
|
+
methodName: string | undefined;
|
|
36
|
+
noRoute: FiatQuoteNoRoute | undefined;
|
|
37
|
+
paymentMethod: string;
|
|
38
|
+
provider: FiatProvider | undefined;
|
|
39
|
+
shownKycOutcome: ReturnType<typeof useKycVerdict>['shownKycOutcome'];
|
|
40
|
+
t: ReturnType<typeof useFunkitTranslation>['t'];
|
|
41
|
+
throttleEvent: number;
|
|
42
|
+
}): {
|
|
43
|
+
handoffBanner: import("react").JSX.Element | undefined;
|
|
44
|
+
throttleBanner: import("react").JSX.Element | undefined;
|
|
45
|
+
unavailableBanner: import("react").JSX.Element | undefined;
|
|
46
|
+
outcomeBanner: import("react").JSX.Element | undefined;
|
|
47
|
+
};
|
|
18
48
|
export declare const styles: {
|
|
19
49
|
outcomeBanner: {
|
|
20
50
|
position: "absolute";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entryBanners.d.ts","sourceRoot":"","sources":["../../../src/flow/entryBanners.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"entryBanners.d.ts","sourceRoot":"","sources":["../../../src/flow/entryBanners.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,YAAY,EACZ,gBAAgB,EACjB,MAAM,sBAAsB,CAAA;AAS7B,OAAO,EAAE,KAAK,cAAc,EAAkB,MAAM,qBAAqB,CAAA;AACzE,OAAO,EACL,KAAK,gBAAgB,EAEtB,MAAM,kCAAkC,CAAA;AACzC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAE3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAA;AAGtE,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,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CAAC,GAAG,CAAC,CAAA;IAC/C,aAAa,EAAE,MAAM,CAAA;CACtB;;;;;EAyCA;AAED,eAAO,MAAM,MAAM;;;;;;;;;;;;CAMjB,CAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { useTrackSessionAuthEvents } from '../hooks/track/useTrackSessionAuthEvents';
|
|
2
2
|
import type { FiatFlow, FiatProvider, Surface } from '@funkit/connect-core';
|
|
3
3
|
import { type ReactElement, type ReactNode } from 'react';
|
|
4
|
-
import { useApplePayStages } from '../fiat/applePayAttempt';
|
|
5
|
-
import { otpScreenProps } from '../fiat/otpScreenProps';
|
|
4
|
+
import { useApplePayStages } from '../fiat/payment/applePayAttempt';
|
|
5
|
+
import { otpScreenProps } from '../fiat/otp/otpScreenProps';
|
|
6
6
|
import { stripeSignInStep } from '../fiat/providers/stripe/stripeSignInStep';
|
|
7
7
|
import { useStripeAuthClosing } from '../fiat/providers/stripe/useStripeSessionAuth';
|
|
8
|
-
import { useOtpReceipt } from '../fiat/useOtpReceipt';
|
|
8
|
+
import { useOtpReceipt } from '../fiat/otp/useOtpReceipt';
|
|
9
9
|
import type { FiatRailConfig } from './depositFlowConfig';
|
|
10
10
|
import { type CaptureSurfaces, type ScreenShell, type SurfaceFailure } from './screenBundles';
|
|
11
11
|
export declare function renderPaymentCapture(flow: FiatFlow, { entryScreen, unsupportedContext, close, onBackToEntry }: ScreenShell, { stepSurface, stepSurfacePresentation, stripeCaptureAdapters, surfaceAttempt, failSurface, reportSurface, markProviderSettled, }: CaptureSurfaces, stripeSheet: ReactNode | undefined): ReactElement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fiatStepScreens.d.ts","sourceRoot":"","sources":["../../../src/flow/fiatStepScreens.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAA;AACzF,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,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AAe,EAClB,EACE,cAAc,EACd,YAAY,EACZ,wBAAwB,EACxB,QAAQ,EACR,eAAe,GAChB,EAAE;IACD,cAAc,EAAE,OAAO,CAAA;IACvB,YAAY,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAA;IACjD,wBAAwB,EAAE,UAAU,CAClC,OAAO,iBAAiB,CACzB,CAAC,0BAA0B,CAAC,CAAA;IAC7B,QAAQ,EAAE,YAAY,GAAG,SAAS,CAAA;IAClC,eAAe,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,iBAAiB,CAAC,CAAA;CAC5E,GACA,YAAY,CAwDd"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import type { PaymentButtonEvents } from '../hooks/track/usePaymentButtonEvents';
|
|
2
|
-
import type {
|
|
2
|
+
import type { EntryCta, FailureReason, FiatFlow, FiatProvider, FiatQuoteNoRoute, FunkitUserIpInfo, Quote, SurfaceResult, SurfaceTransition, UseFiatQuoteResult } from '@funkit/connect-core';
|
|
3
3
|
import type { TFunction } from 'i18next';
|
|
4
4
|
import type { ComponentType, Dispatch, ReactNode, RefObject, SetStateAction } from 'react';
|
|
5
|
-
import { type EmbeddedSlot, type useSlotReadiness } from '../fiat/actionSlot';
|
|
6
|
-
import type { useApplePayAttempt } from '../fiat/applePayAttempt';
|
|
7
|
-
import type { PaymentDisclosures } from '../fiat/disclosureFooterContent';
|
|
8
|
-
import { type ProviderFailover } from '../fiat/providerFailover';
|
|
5
|
+
import { type EmbeddedSlot, type useSlotReadiness } from '../fiat/surface/actionSlot';
|
|
6
|
+
import type { useApplePayAttempt } from '../fiat/payment/applePayAttempt';
|
|
7
|
+
import type { PaymentDisclosures } from '../fiat/entry/disclosureFooterContent';
|
|
8
|
+
import { type ProviderFailover } from '../fiat/payment/providerFailover';
|
|
9
9
|
import type { ReadySurface, SurfaceAdapter } from '../fiat/providers/adapter';
|
|
10
10
|
import type { StripeApplePayButtonProps } from '../fiat/providers/stripe/stripeOnramp';
|
|
11
|
-
import type { useBlockedState, useRegionCurrency } from '../fiat/quoteRouting';
|
|
12
|
-
import type { useCapturedPayment } from '../fiat/stepSurface';
|
|
13
|
-
import type { useDepositSettlement } from '../fiat/useDepositSettlement';
|
|
14
|
-
import type { useAuthHandoff } from '../fiat/useAuthHandoff';
|
|
15
|
-
import type { PaymentAttempts } from '../fiat/usePaymentAttempts';
|
|
16
|
-
import type { useCaptureHold } from '../fiat/useCaptureHold';
|
|
17
|
-
import type { useEntryQuote } from '../fiat/useEntryQuote';
|
|
18
|
-
import type { useSurfaceAttempt } from '../fiat/useSurfaceAttempt';
|
|
11
|
+
import type { useBlockedState, useRegionCurrency } from '../fiat/quote/quoteRouting';
|
|
12
|
+
import type { useCapturedPayment } from '../fiat/surface/stepSurface';
|
|
13
|
+
import type { useDepositSettlement } from '../fiat/settlement/useDepositSettlement';
|
|
14
|
+
import type { useAuthHandoff } from '../fiat/otp/useAuthHandoff';
|
|
15
|
+
import type { PaymentAttempts } from '../fiat/payment/usePaymentAttempts';
|
|
16
|
+
import type { useCaptureHold } from '../fiat/entry/useCaptureHold';
|
|
17
|
+
import type { useEntryQuote } from '../fiat/entry/useEntryQuote';
|
|
18
|
+
import type { useSurfaceAttempt } from '../fiat/surface/useSurfaceAttempt';
|
|
19
19
|
import type { FiatRailConfig } from './depositFlowConfig';
|
|
20
20
|
import type { DepositRailCopy } from './depositRailCopy';
|
|
21
21
|
import { type StepSurfaces, type SurfaceFailure } from './screenBundles';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fiatSubmitRenderer.d.ts","sourceRoot":"","sources":["../../../src/flow/fiatSubmitRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAA;AAChF,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"fiatSubmitRenderer.d.ts","sourceRoot":"","sources":["../../../src/flow/fiatSubmitRenderer.tsx"],"names":[],"mappings":"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,gBAAgB,CAAC,CAAA;IAClD,YAAY,EAAE,YAAY,CAAA;IAC1B,oBAAoB,EAAE,aAAa,CAAC,yBAAyB,CAAC,GAAG,SAAS,CAAA;IAC1E,qBAAqB,EAAE,cAAc,EAAE,CAAA;IACvC,eAAe,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAA;IACrD,CAAC,EAAE,SAAS,CAAC,aAAa,EAAE,SAAS,CAAC,CAAA;IACtC,UAAU,EAAE,gBAAgB,GAAG,SAAS,CAAA;CACzC;yBAnSU,SAAS;EAoiBnB"}
|
|
@@ -16,6 +16,8 @@ export type FunkitFlowErrorCode =
|
|
|
16
16
|
| 'signer_rejected'
|
|
17
17
|
/** The config cannot open a flow; fix the integration. */
|
|
18
18
|
| 'misconfigured'
|
|
19
|
+
/** The config names a feature not yet enabled for this host; branch before opening. */
|
|
20
|
+
| 'feature_disabled'
|
|
19
21
|
/** Every provider, or the payment instrument, declined. */
|
|
20
22
|
| 'payment_declined'
|
|
21
23
|
/** A provider refused this attempt; a fresh one may reach another provider. */
|
|
@@ -38,6 +40,16 @@ export declare class FunkitMisconfiguredError extends Error implements FunkitFlo
|
|
|
38
40
|
readonly isFatal = true;
|
|
39
41
|
constructor(message: string);
|
|
40
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* Thrown by `beginDeposit` when the config names a feature that is off for this
|
|
45
|
+
* host. Not a misconfiguration: the same config opens once the feature is on.
|
|
46
|
+
*/
|
|
47
|
+
export declare class FunkitFeatureDisabledError extends Error implements FunkitFlowError {
|
|
48
|
+
readonly code = "feature_disabled";
|
|
49
|
+
readonly isRetryable = false;
|
|
50
|
+
readonly isFatal = true;
|
|
51
|
+
constructor(message: string);
|
|
52
|
+
}
|
|
41
53
|
/**
|
|
42
54
|
* The codes a host's identity minter rejects with, per the identity
|
|
43
55
|
* assertion contract: 401 → `SESSION_EXPIRED`, 403 → `ACCOUNT_INELIGIBLE`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flowError.d.ts","sourceRoot":"","sources":["../../../src/flow/flowError.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,mBAAmB;AAC7B,iEAAiE;AAC/D,WAAW;AACb,6DAA6D;GAC3D,SAAS;AACX,sEAAsE;GACpE,2BAA2B;AAC7B,8EAA8E;GAC5E,iBAAiB;AACnB,kCAAkC;GAChC,iBAAiB;AACnB,0DAA0D;GACxD,eAAe;AACjB,2DAA2D;GACzD,kBAAkB;AACpB,+EAA+E;GAC7E,sBAAsB,GACtB,SAAS,CAAA;AAEb,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,mBAAmB,CAAA;IACzB,6CAA6C;IAC7C,WAAW,EAAE,OAAO,CAAA;IACpB,sDAAsD;IACtD,OAAO,EAAE,OAAO,CAAA;IAChB,4BAA4B;IAC5B,OAAO,EAAE,MAAM,CAAA;CAChB;
|
|
1
|
+
{"version":3,"file":"flowError.d.ts","sourceRoot":"","sources":["../../../src/flow/flowError.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,mBAAmB;AAC7B,iEAAiE;AAC/D,WAAW;AACb,6DAA6D;GAC3D,SAAS;AACX,sEAAsE;GACpE,2BAA2B;AAC7B,8EAA8E;GAC5E,iBAAiB;AACnB,kCAAkC;GAChC,iBAAiB;AACnB,0DAA0D;GACxD,eAAe;AACjB,uFAAuF;GACrF,kBAAkB;AACpB,2DAA2D;GACzD,kBAAkB;AACpB,+EAA+E;GAC7E,sBAAsB,GACtB,SAAS,CAAA;AAEb,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,mBAAmB,CAAA;IACzB,6CAA6C;IAC7C,WAAW,EAAE,OAAO,CAAA;IACpB,sDAAsD;IACtD,OAAO,EAAE,OAAO,CAAA;IAChB,4BAA4B;IAC5B,OAAO,EAAE,MAAM,CAAA;CAChB;AAkBD,8FAA8F;AAC9F,wBAAgB,SAAS,CACvB,IAAI,EAAE,mBAAmB,EACzB,OAAO,EAAE,MAAM,EACf,KAAK,GAAE,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,aAAa,GAAG,SAAS,CAAC,CAAM,GACpE,eAAe,CAEjB;AAED,mEAAmE;AACnE,qBAAa,wBAAyB,SAAQ,KAAM,YAAW,eAAe;IAC5E,QAAQ,CAAC,IAAI,mBAAkB;IAC/B,QAAQ,CAAC,WAAW,SAAQ;IAC5B,QAAQ,CAAC,OAAO,QAAO;gBAEX,OAAO,EAAE,MAAM;CAI5B;AAED;;;GAGG;AACH,qBAAa,0BACX,SAAQ,KACR,YAAW,eAAe;IAE1B,QAAQ,CAAC,IAAI,sBAAqB;IAClC,QAAQ,CAAC,WAAW,SAAQ;IAC5B,QAAQ,CAAC,OAAO,QAAO;gBAEX,OAAO,EAAE,MAAM;CAI5B;AAED;;;;GAIG;AACH,MAAM,MAAM,0BAA0B,GAClC,iBAAiB,GACjB,oBAAoB,GACpB,WAAW,CAAA;AAQf,qFAAqF;AACrF,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,OAAO,GACb,0BAA0B,GAAG,SAAS,CAQxC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { DepositFlowCallbacks } from './depositFlowConfig';
|
|
2
|
+
/**
|
|
3
|
+
* The host's picker, with the amount typed so far; `undefined` when the host
|
|
4
|
+
* gave the screen none.
|
|
5
|
+
*/
|
|
6
|
+
export declare function paymentMethodPress({ amount, onPaymentMethodPress, paymentMethod, quoteCurrency, }: {
|
|
7
|
+
amount: string;
|
|
8
|
+
onPaymentMethodPress: DepositFlowCallbacks['onPaymentMethodPress'];
|
|
9
|
+
paymentMethod: string;
|
|
10
|
+
quoteCurrency: string | undefined;
|
|
11
|
+
}): (() => void) | undefined;
|
|
12
|
+
//# sourceMappingURL=paymentMethodPress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paymentMethodPress.d.ts","sourceRoot":"","sources":["../../../src/flow/paymentMethodPress.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAE/D;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,oBAAoB,EACpB,aAAa,EACb,aAAa,GACd,EAAE;IACD,MAAM,EAAE,MAAM,CAAA;IACd,oBAAoB,EAAE,oBAAoB,CAAC,sBAAsB,CAAC,CAAA;IAClE,aAAa,EAAE,MAAM,CAAA;IACrB,aAAa,EAAE,MAAM,GAAG,SAAS,CAAA;CAClC,GAAG,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAgB3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"purchaseSheetCustomers.d.ts","sourceRoot":"","sources":["../../../src/flow/purchaseSheetCustomers.ts"],"names":[],"mappings":"AASA,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAE/D"}
|
|
@@ -3,29 +3,29 @@ import type { useTrackSessionAuthEvents } from '../hooks/track/useTrackSessionAu
|
|
|
3
3
|
import type { useTrackKycEvents } from '../hooks/track/useTrackKycEvents';
|
|
4
4
|
import type { QuoteConfirmation, QuoteDisclosure } from '../hooks/track/useTrackFiatDepositQuoteEvents';
|
|
5
5
|
import { type DepositAmountSelection, type DepositQuoteRefreshReason } from '../hooks/track/events';
|
|
6
|
-
import type { useEntryQuote } from '../fiat/useEntryQuote';
|
|
6
|
+
import type { useEntryQuote } from '../fiat/entry/useEntryQuote';
|
|
7
7
|
import type { Quote, FiatFlow, FiatProvider, FunkitUserIpInfo, UseFiatQuoteResult } from '@funkit/connect-core';
|
|
8
8
|
import type { TFunction } from 'i18next';
|
|
9
9
|
import { type ReactNode, type RefObject } from 'react';
|
|
10
10
|
import { type DepositCardScreen } from '../fiat/processing/DepositCardSheet';
|
|
11
|
-
import type { ContactRound, useContact } from '../fiat/contactRound';
|
|
12
|
-
import type { FiatKycOptionRowProps } from '../fiat/FiatKycOptionRow';
|
|
13
|
-
import { KnownContacts, type TypedEmail } from '../fiat/knownContacts';
|
|
11
|
+
import type { ContactRound, useContact } from '../fiat/contact/contactRound';
|
|
12
|
+
import type { FiatKycOptionRowProps } from '../fiat/kyc/FiatKycOptionRow';
|
|
13
|
+
import { KnownContacts, type TypedEmail } from '../fiat/contact/knownContacts';
|
|
14
14
|
import type { useKycScreens } from '../fiat/kyc/useKycScreens';
|
|
15
|
-
import type { useFieldLimits } from '../fiat/fieldLimits';
|
|
15
|
+
import type { useFieldLimits } from '../fiat/form/fieldLimits';
|
|
16
16
|
import type { useKycVerdict } from '../fiat/kyc/kycVerdict';
|
|
17
17
|
import type { ReadySurface, SurfaceAdapter } from '../fiat/providers/adapter';
|
|
18
18
|
import type { StripeApplePayButtonProps, StripeOnrampClient } from '../fiat/providers/stripe/stripeOnramp';
|
|
19
19
|
import type { useStripeAuthClosing } from '../fiat/providers/stripe/useStripeSessionAuth';
|
|
20
20
|
import type { useStripeSheets } from '../fiat/providers/stripe/useStripeSheets';
|
|
21
|
-
import type { useBlockedState, useRegionCurrency, useRetryNotice } from '../fiat/quoteRouting';
|
|
22
|
-
import { type useCapturedPayment } from '../fiat/stepSurface';
|
|
23
|
-
import type { useApplePayAttempt } from '../fiat/applePayAttempt';
|
|
24
|
-
import type { useDepositSettlement } from '../fiat/useDepositSettlement';
|
|
25
|
-
import type { useSurfaceAttempt } from '../fiat/useSurfaceAttempt';
|
|
26
|
-
import type { useOtpReceipt } from '../fiat/useOtpReceipt';
|
|
27
|
-
import type { PaymentAttempts } from '../fiat/usePaymentAttempts';
|
|
28
|
-
import type { PaymentFailureAnswer } from '../fiat/usePaymentFailureAnswer';
|
|
21
|
+
import type { useBlockedState, useRegionCurrency, useRetryNotice } from '../fiat/quote/quoteRouting';
|
|
22
|
+
import { type useCapturedPayment } from '../fiat/surface/stepSurface';
|
|
23
|
+
import type { useApplePayAttempt } from '../fiat/payment/applePayAttempt';
|
|
24
|
+
import type { useDepositSettlement } from '../fiat/settlement/useDepositSettlement';
|
|
25
|
+
import type { useSurfaceAttempt } from '../fiat/surface/useSurfaceAttempt';
|
|
26
|
+
import type { useOtpReceipt } from '../fiat/otp/useOtpReceipt';
|
|
27
|
+
import type { PaymentAttempts } from '../fiat/payment/usePaymentAttempts';
|
|
28
|
+
import type { PaymentFailureAnswer } from '../fiat/payment/usePaymentFailureAnswer';
|
|
29
29
|
import type { NestedSheet } from '../hooks/useNestedSheet';
|
|
30
30
|
import { type DepositCoverRefs } from '../screens/DepositAmountScreen';
|
|
31
31
|
import type { DepositAmountEntryConfig, FiatRailConfig } from './depositFlowConfig';
|
|
@@ -33,7 +33,7 @@ import type { DepositRailCopy } from './depositRailCopy';
|
|
|
33
33
|
import type { useFeeDetails } from './useFeeDetails';
|
|
34
34
|
import { type StepSurfaces, type SurfaceFailure } from './screenBundles';
|
|
35
35
|
/** The screen the fiat step draws, picked from the state `useFiatFlowScreen` holds. */
|
|
36
|
-
export declare function renderFiatFlowScreen({ clearAuthorization, stripePaymentEvents, acceptedPaymentQuote, onQuoteConfirmed, confirmPaymentQuote, clearConfirmation, entryQuote: { shownFeeQuote, quoteForAnalytics, analyticsQuoteProvider, paymentQuoteRef, }, depositAddress, isDirectDelivery, onQuoteDisplayed, onQuoteRefreshReason, trackKycSurfaceSubmitted, trackKycFormSubmitted, authEvents, trackContactSubmitted, trackKycStarted, 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, typedEmail, }: {
|
|
36
|
+
export declare function renderFiatFlowScreen({ clearAuthorization, stripePaymentEvents, acceptedPaymentQuote, onQuoteConfirmed, confirmPaymentQuote, clearConfirmation, entryQuote: { shownFeeQuote, quoteForAnalytics, analyticsQuoteProvider, paymentQuoteRef, tableFree, selectedQuoteRef, verifiedQuote, }, depositAddress, isDirectDelivery, onQuoteDisplayed, onQuoteRefreshReason, trackKycSurfaceSubmitted, trackKycFormSubmitted, authEvents, trackContactSubmitted, trackKycStarted, 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, typedEmail, }: {
|
|
37
37
|
clearAuthorization: () => void;
|
|
38
38
|
stripePaymentEvents: PaymentSurfaceEvents;
|
|
39
39
|
acceptedPaymentQuote: RefObject<Quote | undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderFiatFlowScreen.d.ts","sourceRoot":"","sources":["../../../src/flow/renderFiatFlowScreen.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAA;AAEjF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAA;AACzF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAA;AACzE,OAAO,KAAK,EACV,iBAAiB,EACjB,eAAe,EAChB,MAAM,+CAA+C,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iB,EAAE,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,SAAS,CAAA;IAChD,UAAU,EAAE,gBAAgB,GAAG,SAAS,CAAA;IACxC,UAAU,EAAE,UAAU,CAAA;CACvB,+BAsoBA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { type FiatFlow, type FiatStepResponse, type Surface, type SurfaceResult, type SurfaceTransition } from '@funkit/connect-core';
|
|
2
2
|
import { type TFunction } from 'i18next';
|
|
3
3
|
import { type ReactElement, type ReactNode } from 'react';
|
|
4
|
-
import { type InputStep } from '../fiat/providerFailover';
|
|
4
|
+
import { type InputStep } from '../fiat/payment/providerFailover';
|
|
5
5
|
import { type ApplePayReadinessTiming, type ReadySurface } from '../fiat/providers/adapter';
|
|
6
6
|
import { type useStripeState } from '../fiat/providers/stripe/useStripeState';
|
|
7
|
-
import { type surfacePresentation } from '../fiat/surfaceRegistry';
|
|
7
|
+
import { type surfacePresentation } from '../fiat/surface/surfaceRegistry';
|
|
8
8
|
export declare const noop: () => undefined;
|
|
9
9
|
/** What a screen falls back on: the amount beneath it, and its ways out. */
|
|
10
10
|
export interface ScreenShell {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"screenBundles.d.ts","sourceRoot":"","sources":["../../../src/flow/screenBundles.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACrB,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACvB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,SAAS,CAAA;AACxC,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AACzD,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"screenBundles.d.ts","sourceRoot":"","sources":["../../../src/flow/screenBundles.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,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G,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,9 +1,9 @@
|
|
|
1
|
-
import type { useRegionCurrency } from '../fiat/quoteRouting';
|
|
2
|
-
import type { useEntryQuote } from '../fiat/useEntryQuote';
|
|
1
|
+
import type { useRegionCurrency } from '../fiat/quote/quoteRouting';
|
|
2
|
+
import type { useEntryQuote } from '../fiat/entry/useEntryQuote';
|
|
3
3
|
import type { DepositAmountEntryConfig } from './depositFlowConfig';
|
|
4
4
|
import type { DepositRailCopy } from './depositRailCopy';
|
|
5
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 }, }: {
|
|
6
|
+
export declare function useFeeDetails({ amount, config, entryQuote: { feeSubsidy, provider, shownFeeQuote, tableFree }, railCopy, regionCurrency: { quoteCurrency }, }: {
|
|
7
7
|
amount: string;
|
|
8
8
|
config: DepositAmountEntryConfig;
|
|
9
9
|
entryQuote: ReturnType<typeof useEntryQuote>;
|
|
@@ -12,8 +12,8 @@ export declare function useFeeDetails({ amount, config, entryQuote: { feeSubsidy
|
|
|
12
12
|
}): {
|
|
13
13
|
canOpenFeeDetails: boolean;
|
|
14
14
|
feeDrawer: import("react").JSX.Element;
|
|
15
|
-
feeLine: import("../fiat/stepDetails").FeeLine | undefined;
|
|
16
|
-
matchLine: import("../fiat/stepDetails").FeeLine | undefined;
|
|
15
|
+
feeLine: import("../fiat/common/stepDetails").FeeLine | undefined;
|
|
16
|
+
matchLine: import("../fiat/common/stepDetails").FeeLine | undefined;
|
|
17
17
|
openFeeDetails: () => void;
|
|
18
18
|
};
|
|
19
19
|
//# sourceMappingURL=useFeeDetails.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFeeDetails.d.ts","sourceRoot":"","sources":["../../../src/flow/useFeeDetails.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useFeeDetails.d.ts","sourceRoot":"","sources":["../../../src/flow/useFeeDetails.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AACnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAA;AAahE,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,SAAS,EAAE,EAC9D,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;;;;;;EA8FA"}
|