@funkit/connect-rn 9.3.0 → 9.5.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 +88 -0
- package/dist/{chunk-GPJAVLS6.js → chunk-BIIYR5K5.js} +2 -2
- package/dist/{chunk-BSYYQSWJ.js → chunk-FAEJVOAC.js} +3 -1
- package/dist/chunk-FAEJVOAC.js.map +7 -0
- package/dist/{chunk-ZIE5S6XC.js → chunk-JDGIKSWZ.js} +196 -2
- package/dist/chunk-JDGIKSWZ.js.map +7 -0
- package/dist/clients/lighter/lighterFastWithdrawal.d.ts.map +1 -1
- package/dist/clients/lighter/useLighterSecureWithdrawal.d.ts.map +1 -1
- package/dist/clients/lighter/useLighterUnstakedFee.d.ts.map +1 -1
- package/dist/clients/lighter/useLighterWithdrawalMethods.d.ts.map +1 -1
- package/dist/clients/lighter.js +25 -13
- package/dist/clients/lighter.js.map +3 -3
- package/dist/clients/nado.js +2 -2
- package/dist/index.js +7520 -3799
- package/dist/index.js.map +4 -4
- package/dist/preview.js +99 -2
- package/dist/preview.js.map +2 -2
- package/dist/src/components/AttributionWatermark.d.ts +4 -1
- package/dist/src/components/AttributionWatermark.d.ts.map +1 -1
- package/dist/src/components/TopBar.d.ts +6 -1
- package/dist/src/components/TopBar.d.ts.map +1 -1
- package/dist/src/components/v2/IconDisc.d.ts +17 -0
- package/dist/src/components/v2/IconDisc.d.ts.map +1 -0
- package/dist/src/components/v2/ListRow.d.ts +29 -0
- package/dist/src/components/v2/ListRow.d.ts.map +1 -0
- package/dist/src/components/v2/QuickAmountsRow.d.ts +1 -1
- package/dist/src/components/v2/QuickAmountsRow.d.ts.map +1 -1
- package/dist/src/fiat/FiatContactScreen.d.ts +2 -1
- package/dist/src/fiat/FiatContactScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatDocumentCaptureStep.d.ts +2 -1
- package/dist/src/fiat/FiatDocumentCaptureStep.d.ts.map +1 -1
- package/dist/src/fiat/FiatIdentityStep.d.ts +2 -1
- package/dist/src/fiat/FiatIdentityStep.d.ts.map +1 -1
- package/dist/src/fiat/KycGlassBackdrop.d.ts.map +1 -1
- package/dist/src/fiat/SurfaceSlot.d.ts +15 -2
- package/dist/src/fiat/SurfaceSlot.d.ts.map +1 -1
- package/dist/src/fiat/contactRound.d.ts +9 -3
- package/dist/src/fiat/contactRound.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycCapture.d.ts +4 -1
- package/dist/src/fiat/kyc/kycCapture.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycForm.d.ts +3 -1
- package/dist/src/fiat/kyc/kycForm.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycRoutes.d.ts +2 -1
- package/dist/src/fiat/kyc/kycRoutes.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycVerdict.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/paymentAttempts.d.ts +79 -0
- package/dist/src/fiat/paymentAttempts.d.ts.map +1 -0
- package/dist/src/fiat/providers/adapter.d.ts +8 -0
- package/dist/src/fiat/providers/adapter.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/CoinbaseCheckoutSurface.d.ts +4 -1
- package/dist/src/fiat/providers/coinbase/CoinbaseCheckoutSurface.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/coinbaseOnrampEvents.d.ts +6 -1
- package/dist/src/fiat/providers/coinbase/coinbaseOnrampEvents.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/moonpaySharingConsent.d.ts +2 -1
- package/dist/src/fiat/providers/moonpay/moonpaySharingConsent.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeApplePayReady.d.ts +7 -2
- package/dist/src/fiat/providers/stripe/stripeApplePayReady.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripePayment.d.ts.map +1 -1
- package/dist/src/fiat/providers/sumsub/SumsubKycSurface.d.ts +3 -1
- package/dist/src/fiat/providers/sumsub/SumsubKycSurface.d.ts.map +1 -1
- package/dist/src/fiat/providers/sumsub/SumsubNativeKycSurface.d.ts +2 -1
- package/dist/src/fiat/providers/sumsub/SumsubNativeKycSurface.d.ts.map +1 -1
- package/dist/src/fiat/providers/sumsub/sumsubKyc.d.ts +1 -1
- package/dist/src/fiat/providers/sumsub/sumsubKyc.d.ts.map +1 -1
- package/dist/src/fiat/providers/sumsub/sumsubNativeLaunch.d.ts +1 -0
- package/dist/src/fiat/providers/sumsub/sumsubNativeLaunch.d.ts.map +1 -1
- package/dist/src/fiat/quoteRouting.d.ts +9 -3
- package/dist/src/fiat/quoteRouting.d.ts.map +1 -1
- package/dist/src/fiat/stepSurface.d.ts +4 -3
- package/dist/src/fiat/stepSurface.d.ts.map +1 -1
- package/dist/src/fiat/surfaceRegistry.d.ts.map +1 -1
- package/dist/src/fiat/useCaptureHold.d.ts +2 -1
- package/dist/src/fiat/useCaptureHold.d.ts.map +1 -1
- package/dist/src/fiat/useDepositSettlement.d.ts +5 -1
- package/dist/src/fiat/useDepositSettlement.d.ts.map +1 -1
- package/dist/src/fiat/useEntryQuote.d.ts +4 -0
- package/dist/src/fiat/useEntryQuote.d.ts.map +1 -1
- package/dist/src/fiat/useEntrySubmit.d.ts +13 -3
- package/dist/src/fiat/useEntrySubmit.d.ts.map +1 -1
- package/dist/src/fiat/usePaymentAttempts.d.ts +24 -0
- package/dist/src/fiat/usePaymentAttempts.d.ts.map +1 -0
- package/dist/src/fiat/usePaymentFailureAnswer.d.ts +4 -1
- package/dist/src/fiat/usePaymentFailureAnswer.d.ts.map +1 -1
- package/dist/src/fiat/useStaleQuoteRecovery.d.ts +3 -1
- package/dist/src/fiat/useStaleQuoteRecovery.d.ts.map +1 -1
- package/dist/src/flow/CryptoAddressPage.d.ts +29 -0
- package/dist/src/flow/CryptoAddressPage.d.ts.map +1 -0
- package/dist/src/flow/CryptoDepositStep.d.ts +39 -0
- package/dist/src/flow/CryptoDepositStep.d.ts.map +1 -0
- package/dist/src/flow/CryptoLearnMorePage.d.ts +21 -0
- package/dist/src/flow/CryptoLearnMorePage.d.ts.map +1 -0
- package/dist/src/flow/CryptoListPage.d.ts +17 -0
- package/dist/src/flow/CryptoListPage.d.ts.map +1 -0
- package/dist/src/flow/CryptoNetworkPage.d.ts +12 -0
- package/dist/src/flow/CryptoNetworkPage.d.ts.map +1 -0
- package/dist/src/flow/CryptoTokenPage.d.ts +15 -0
- package/dist/src/flow/CryptoTokenPage.d.ts.map +1 -0
- package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
- package/dist/src/flow/DepositMatchSheet.d.ts.map +1 -1
- package/dist/src/flow/FiatDepositAmountStep.d.ts +2 -1
- package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/FlowSheet.d.ts +12 -2
- package/dist/src/flow/FlowSheet.d.ts.map +1 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts +21 -2
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/SheetMaterial.d.ts +37 -1
- package/dist/src/flow/SheetMaterial.d.ts.map +1 -1
- package/dist/src/flow/WithdrawalFlowContent.d.ts.map +1 -1
- package/dist/src/flow/cryptoDepositFlow.d.ts +80 -0
- package/dist/src/flow/cryptoDepositFlow.d.ts.map +1 -0
- package/dist/src/flow/cryptoSheetSearch.d.ts +10 -0
- package/dist/src/flow/cryptoSheetSearch.d.ts.map +1 -0
- package/dist/src/flow/cryptoTokenList.d.ts +39 -0
- package/dist/src/flow/cryptoTokenList.d.ts.map +1 -0
- package/dist/src/flow/cryptoTokenPick.d.ts +16 -0
- package/dist/src/flow/cryptoTokenPick.d.ts.map +1 -0
- package/dist/src/flow/depositFlowConfig.d.ts +7 -0
- package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
- package/dist/src/flow/depositMethods.d.ts +10 -1
- package/dist/src/flow/depositMethods.d.ts.map +1 -1
- package/dist/src/flow/entryBanners.d.ts +2 -0
- package/dist/src/flow/entryBanners.d.ts.map +1 -1
- package/dist/src/flow/fiatStepScreens.d.ts +4 -1
- package/dist/src/flow/fiatStepScreens.d.ts.map +1 -1
- package/dist/src/flow/fiatSubmitRenderer.d.ts +17 -5
- package/dist/src/flow/fiatSubmitRenderer.d.ts.map +1 -1
- package/dist/src/flow/renderFiatFlowScreen.d.ts +29 -5
- package/dist/src/flow/renderFiatFlowScreen.d.ts.map +1 -1
- package/dist/src/flow/selectedChainStorage.d.ts +9 -0
- package/dist/src/flow/selectedChainStorage.d.ts.map +1 -1
- package/dist/src/flow/sheetSizing.d.ts +26 -0
- package/dist/src/flow/sheetSizing.d.ts.map +1 -1
- package/dist/src/flow/storedChain.d.ts +7 -2
- package/dist/src/flow/storedChain.d.ts.map +1 -1
- package/dist/src/hooks/track/QuoteDisclosureObserver.d.ts +8 -0
- package/dist/src/hooks/track/QuoteDisclosureObserver.d.ts.map +1 -0
- package/dist/src/hooks/track/events.d.ts +293 -0
- package/dist/src/hooks/track/events.d.ts.map +1 -0
- package/dist/src/hooks/track/quoteTtlMs.d.ts +2 -0
- package/dist/src/hooks/track/quoteTtlMs.d.ts.map +1 -0
- package/dist/src/hooks/track/useDepositFlowEvents.d.ts +24 -0
- package/dist/src/hooks/track/useDepositFlowEvents.d.ts.map +1 -0
- package/dist/src/hooks/track/useDepositOutcomeEvents.d.ts +12 -0
- package/dist/src/hooks/track/useDepositOutcomeEvents.d.ts.map +1 -0
- package/dist/src/hooks/track/usePaymentButtonEvents.d.ts +31 -0
- package/dist/src/hooks/track/usePaymentButtonEvents.d.ts.map +1 -0
- package/dist/src/hooks/track/useTrackFiatDepositQuoteEvents.d.ts +41 -0
- package/dist/src/hooks/track/useTrackFiatDepositQuoteEvents.d.ts.map +1 -0
- package/dist/src/hooks/track/useTrackFiatPaymentEvents.d.ts +56 -0
- package/dist/src/hooks/track/useTrackFiatPaymentEvents.d.ts.map +1 -0
- package/dist/src/hooks/track/useTrackKycEvents.d.ts +14 -0
- package/dist/src/hooks/track/useTrackKycEvents.d.ts.map +1 -0
- package/dist/src/hooks/track/useTrackSessionAuthEvents.d.ts +13 -0
- package/dist/src/hooks/track/useTrackSessionAuthEvents.d.ts.map +1 -0
- package/dist/src/hooks/track/useTrackV2.d.ts +8 -0
- package/dist/src/hooks/track/useTrackV2.d.ts.map +1 -0
- package/dist/src/hooks/track/useWithdrawalFlowEvents.d.ts +7 -0
- package/dist/src/hooks/track/useWithdrawalFlowEvents.d.ts.map +1 -0
- package/dist/src/hooks/useGuardedAmountInput.d.ts +8 -2
- package/dist/src/hooks/useGuardedAmountInput.d.ts.map +1 -1
- package/dist/src/icons/CryptoTransferQRIcon.d.ts +3 -1
- package/dist/src/icons/CryptoTransferQRIcon.d.ts.map +1 -1
- package/dist/src/icons/assetLogos.d.ts.map +1 -1
- package/dist/src/native/glassEffect.d.ts +5 -0
- package/dist/src/native/glassEffect.d.ts.map +1 -1
- package/dist/src/preview/flowPreview.d.ts +11 -2
- package/dist/src/preview/flowPreview.d.ts.map +1 -1
- package/dist/src/preview/scenarioCatalog.d.ts +40 -2
- package/dist/src/preview/scenarioCatalog.d.ts.map +1 -1
- package/dist/src/preview/scenarios.d.ts.map +1 -1
- package/dist/src/providers/FunkitStatsigProvider.d.ts.map +1 -1
- package/dist/src/providers/FunkitStatsigWhnProvider.d.ts +10 -0
- package/dist/src/providers/FunkitStatsigWhnProvider.d.ts.map +1 -0
- package/dist/src/screens/DepositAmountScreen.d.ts +3 -1
- package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
- package/dist/src/statsig/useFunWhnStatsigAnalytics.d.ts +5 -0
- package/dist/src/statsig/useFunWhnStatsigAnalytics.d.ts.map +1 -0
- package/dist/src/swapped/SwappedScreen.d.ts +4 -1
- package/dist/src/swapped/SwappedScreen.d.ts.map +1 -1
- package/dist/src/swapped/SwappedScreenShell.d.ts +4 -2
- package/dist/src/swapped/SwappedScreenShell.d.ts.map +1 -1
- package/dist/src/swapped/SwappedWebView.d.ts +4 -2
- package/dist/src/swapped/SwappedWebView.d.ts.map +1 -1
- package/dist/src/swapped/useSwappedBuyingCrypto.d.ts +23 -0
- package/dist/src/swapped/useSwappedBuyingCrypto.d.ts.map +1 -0
- package/dist/src/theme/buildFunkitTheme.d.ts +2 -0
- package/dist/src/theme/buildFunkitTheme.d.ts.map +1 -1
- package/dist/src/theme/restyle.d.ts +66 -0
- package/dist/src/theme/restyle.d.ts.map +1 -1
- package/dist/src/theme/toRestyleTheme.d.ts +6 -0
- package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
- package/dist/src/theme/typeScale.d.ts +12 -0
- package/dist/src/theme/typeScale.d.ts.map +1 -1
- package/dist/src/transfer/depositAssets.d.ts +4 -34
- package/dist/src/transfer/depositAssets.d.ts.map +1 -1
- package/dist/src/transfer/depositQrCodeUri.d.ts.map +1 -1
- package/dist/src/transfer/depositSelection.d.ts +1 -12
- package/dist/src/transfer/depositSelection.d.ts.map +1 -1
- package/dist/src/transfer/fops.d.ts +8 -1
- package/dist/src/transfer/fops.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useDepositAssets.d.ts +1 -1
- package/dist/src/transfer/hooks/useDepositAssets.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useLighterDepositRecipientOverride.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useSupportedTokens.d.ts +2 -0
- package/dist/src/transfer/hooks/useSupportedTokens.d.ts.map +1 -1
- package/dist/src/transfer/supportedTokens.d.ts +2 -16
- package/dist/src/transfer/supportedTokens.d.ts.map +1 -1
- package/dist/src/utils/tokenAndChainPicker.d.ts +2 -7
- package/dist/src/utils/tokenAndChainPicker.d.ts.map +1 -1
- package/ios/FrostedGlassView.swift +28 -3
- package/ios/FunkitGlassEffectModule.swift +4 -0
- package/package.json +6 -6
- package/dist/chunk-BSYYQSWJ.js.map +0 -7
- package/dist/chunk-ZIE5S6XC.js.map +0 -7
- /package/dist/{chunk-GPJAVLS6.js.map → chunk-BIIYR5K5.js.map} +0 -0
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { PaymentSurfaceEvents } from '../hooks/track/usePaymentButtonEvents';
|
|
2
|
+
import type { useTrackSessionAuthEvents } from '../hooks/track/useTrackSessionAuthEvents';
|
|
3
|
+
import type { useTrackKycEvents } from '../hooks/track/useTrackKycEvents';
|
|
4
|
+
import type { QuoteConfirmation, QuoteDisclosure } from '../hooks/track/useTrackFiatDepositQuoteEvents';
|
|
5
|
+
import { type DepositAmountSelection, type DepositQuoteRefreshReason } from '../hooks/track/events';
|
|
6
|
+
import type { useEntryQuote } from '../fiat/useEntryQuote';
|
|
7
|
+
import type { Quote, FiatFlow, FiatProvider, FunkitUserIpInfo, UseFiatQuoteResult } from '@funkit/connect-core';
|
|
2
8
|
import type { TFunction } from 'i18next';
|
|
3
|
-
import { type ReactNode } from 'react';
|
|
9
|
+
import { type ReactNode, type RefObject } from 'react';
|
|
4
10
|
import { type DepositCardScreen } from '../fiat/processing/DepositCardSheet';
|
|
5
11
|
import type { ContactRound, useContact } from '../fiat/contactRound';
|
|
6
12
|
import type { FiatKycOptionRowProps } from '../fiat/FiatKycOptionRow';
|
|
@@ -18,6 +24,7 @@ import type { useApplePayAttempt } from '../fiat/applePayAttempt';
|
|
|
18
24
|
import type { useDepositSettlement } from '../fiat/useDepositSettlement';
|
|
19
25
|
import type { useSurfaceAttempt } from '../fiat/useSurfaceAttempt';
|
|
20
26
|
import type { useOtpReceipt } from '../fiat/useOtpReceipt';
|
|
27
|
+
import type { PaymentAttempts } from '../fiat/usePaymentAttempts';
|
|
21
28
|
import type { PaymentFailureAnswer } from '../fiat/usePaymentFailureAnswer';
|
|
22
29
|
import type { NestedSheet } from '../hooks/useNestedSheet';
|
|
23
30
|
import { type DepositCoverRefs } from '../screens/DepositAmountScreen';
|
|
@@ -26,7 +33,23 @@ import type { DepositRailCopy } from './depositRailCopy';
|
|
|
26
33
|
import type { useFeeDetails } from './useFeeDetails';
|
|
27
34
|
import { type StepSurfaces, type SurfaceFailure } from './screenBundles';
|
|
28
35
|
/** The screen the fiat step draws, picked from the state `useFiatFlowScreen` holds. */
|
|
29
|
-
export declare function renderFiatFlowScreen({ accountIneligible, amount, applePayAttempt: { readinessTiming, submitApplePayTransition }, blocked: { blockedState, paymentUnavailable }, canSubmitQuote, capture: { capturedPayment, reportSurface, staleQuote }, cardSheet, changeAmount, close, config, contact: { contactFailure, contactRateLimited, contactRound, isContactStepOver, phoneReverify, setContactRound, }, contacts, coverRefs, failedPayment, feeDetails: { canOpenFeeDetails, feeDrawer, feeLine, matchLine, openFeeDetails, }, fiat, fieldLimits: { amountCurrency, fieldLimitUsd, minLimitUsd }, flow, footer, handoffBanner, hideAttribution, isAccepting, isActionPending, isDirect, isEmbeddedAuth, isHeldForTap, isPreparingCheckout, kycRoutes, kycScreens: { kycCapture, kycForm }, kycVerdict: { isExtendedReview, kycCardOutcome, kycCompletion }, locale, lockAmount, notice, onBackToEntry, onChangeAmount, onKycOptions, otpReceipt, outcomeBanner, PayButton, 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, }: {
|
|
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, }: {
|
|
37
|
+
clearAuthorization: () => void;
|
|
38
|
+
stripePaymentEvents: PaymentSurfaceEvents;
|
|
39
|
+
acceptedPaymentQuote: RefObject<Quote | undefined>;
|
|
40
|
+
entryQuote: ReturnType<typeof useEntryQuote>;
|
|
41
|
+
depositAddress: string | undefined;
|
|
42
|
+
isDirectDelivery: boolean;
|
|
43
|
+
onQuoteDisplayed: (disclosure: QuoteDisclosure) => void;
|
|
44
|
+
onQuoteConfirmed: (confirmation: QuoteConfirmation, destinationAddress: string | undefined) => void;
|
|
45
|
+
confirmPaymentQuote: (quoteRef: string | undefined) => void;
|
|
46
|
+
clearConfirmation: () => void;
|
|
47
|
+
onQuoteRefreshReason: (reason: DepositQuoteRefreshReason) => void;
|
|
48
|
+
trackKycStarted: ReturnType<typeof useTrackKycEvents>['trackKycStarted'];
|
|
49
|
+
trackContactSubmitted: ReturnType<typeof useTrackSessionAuthEvents>['trackContactSubmitted'];
|
|
50
|
+
authEvents: ReturnType<typeof useTrackSessionAuthEvents>;
|
|
51
|
+
trackKycFormSubmitted: ReturnType<typeof useTrackKycEvents>['trackKycFormSubmitted'];
|
|
52
|
+
trackKycSurfaceSubmitted: ReturnType<typeof useTrackKycEvents>['trackKycSurfaceSubmitted'];
|
|
30
53
|
accountIneligible: boolean;
|
|
31
54
|
amount: string;
|
|
32
55
|
applePayAttempt: ReturnType<typeof useApplePayAttempt>;
|
|
@@ -34,7 +57,7 @@ export declare function renderFiatFlowScreen({ accountIneligible, amount, appleP
|
|
|
34
57
|
canSubmitQuote: boolean;
|
|
35
58
|
capture: ReturnType<typeof useCapturedPayment>;
|
|
36
59
|
cardSheet: NestedSheet<DepositCardScreen>;
|
|
37
|
-
changeAmount: (next: string) => void;
|
|
60
|
+
changeAmount: (next: string, selection: DepositAmountSelection) => void;
|
|
38
61
|
close: () => void;
|
|
39
62
|
config: DepositAmountEntryConfig;
|
|
40
63
|
contact: ReturnType<typeof useContact>;
|
|
@@ -61,11 +84,12 @@ export declare function renderFiatFlowScreen({ accountIneligible, amount, appleP
|
|
|
61
84
|
lockAmount: boolean | undefined;
|
|
62
85
|
notice: React.JSX.Element | undefined;
|
|
63
86
|
onBackToEntry: () => void;
|
|
64
|
-
onChangeAmount: (amount: string) => void;
|
|
87
|
+
onChangeAmount: (amount: string, selection: DepositAmountSelection) => void;
|
|
65
88
|
onKycOptions: boolean;
|
|
66
89
|
otpReceipt: ReturnType<typeof useOtpReceipt>;
|
|
67
90
|
outcomeBanner: React.JSX.Element | undefined;
|
|
68
91
|
PayButton: React.ComponentType<StripeApplePayButtonProps> | undefined;
|
|
92
|
+
paymentAttempts: PaymentAttempts;
|
|
69
93
|
paymentFailure: PaymentFailureAnswer;
|
|
70
94
|
pressEntry: () => void;
|
|
71
95
|
pressPaymentMethod: (() => void) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderFiatFlowScreen.d.ts","sourceRoot":"","sources":["../../../src/flow/renderFiatFlowScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AACxC,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"renderFiatFlowScreen.d.ts","sourceRoot":"","sources":["../../../src/flow/renderFiatFlowScreen.tsx"],"names":[],"mappings":"AAAA,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,CAAA;AACtD,OAAO,EACL,KAA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AAE,KAAK,CAAC,QAAQ,CAC7B,KAAK,CAAC,cAAc,CAAC,YAAY,GAAG,SAAS,CAAC,CAC/C,CAAA;IACD,UAAU,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAA;IACnD,YAAY,EAAE,YAAY,CAAA;IAC1B,iBAAiB,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAA;IAC1D,qBAAqB,EAAE,cAAc,EAAE,CAAA;IACvC,YAAY,EAAE,kBAAkB,GAAG,SAAS,CAAA;IAC5C,YAAY,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAA;IAChD,WAAW,EAAE,CAAC,KAAK,CAAC,EAAE,YAAY,KAAK,IAAI,CAAA;IAC3C,WAAW,EAAE,MAAM,CAAA;IACnB,eAAe,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAA;IACrD,CAAC,EAAE,SAAS,CAAC,aAAa,EAAE,SAAS,CAAC,CAAA;IACtC,cAAc,EAAE,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,SAAS,CAAA;IAC7C,iBAAiB,EAAE,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,SAAS,CAAA;IAChD,UAAU,EAAE,gBAAgB,GAAG,SAAS,CAAA;CACzC,+BAypBA"}
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
/** Null when nothing is stored, or the read failed — the caller just asks. */
|
|
2
2
|
export declare function readSelectedChainId(userId: string): Promise<string | null>;
|
|
3
3
|
export declare function writeSelectedChainId(userId: string, chainId: string): Promise<void>;
|
|
4
|
+
/** A token pick, by symbol, with the chain it was picked on. */
|
|
5
|
+
export interface StoredTokenPick {
|
|
6
|
+
chainId: string;
|
|
7
|
+
symbol: string;
|
|
8
|
+
}
|
|
9
|
+
/** The stored token pick; null when none is stored, or the read failed. */
|
|
10
|
+
export declare function readSelectedToken(userId: string): Promise<StoredTokenPick | null>;
|
|
11
|
+
/** Stores the token picked on `chainId`; `null` clears a pick the chain dropped. */
|
|
12
|
+
export declare function writeSelectedToken(userId: string, pick: StoredTokenPick | null): Promise<void>;
|
|
4
13
|
//# sourceMappingURL=selectedChainStorage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectedChainStorage.d.ts","sourceRoot":"","sources":["../../../src/flow/selectedChainStorage.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"selectedChainStorage.d.ts","sourceRoot":"","sources":["../../../src/flow/selectedChainStorage.ts"],"names":[],"mappings":"AAqBA,8EAA8E;AAC9E,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAE1E;AAED,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,IAAI,CAAC,CASf;AAED,gEAAgE;AAChE,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;CACf;AAMD,2EAA2E;AAC3E,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC,CAUjC;AAED,oFAAoF;AACpF,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,eAAe,GAAG,IAAI,GAC3B,OAAO,CAAC,IAAI,CAAC,CAgBf"}
|
|
@@ -13,6 +13,32 @@ export declare function sheetSizing({ detent }: {
|
|
|
13
13
|
enableDynamicSizing: boolean;
|
|
14
14
|
snapPoints: SheetDetent[];
|
|
15
15
|
};
|
|
16
|
+
/**
|
|
17
|
+
* Sizing props for a sheet resting at fixed heights, `gap` clear of the screen's
|
|
18
|
+
* bottom edge. gorhom is given no insets: with a top or bottom inset it rests a
|
|
19
|
+
* detached modal that much lower than its own detents, so the gap is paid here.
|
|
20
|
+
* The caller keeps `detents` stable, since gorhom re-lays the sheet out on a new
|
|
21
|
+
* snapPoints identity.
|
|
22
|
+
*/
|
|
23
|
+
export declare function insetSheetSizing(detents: number[], gap: number): {
|
|
24
|
+
enableDynamicSizing: boolean;
|
|
25
|
+
snapPoints: number[];
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* The height an inset sheet's card stands: what shows of the sheet less the gap
|
|
29
|
+
* below it, so the card and the foot of its page stay on screen at every detent.
|
|
30
|
+
* - Held between the lowest and highest detents, so the card slides rather than
|
|
31
|
+
* resizes while the sheet presents, dismisses, or is dragged past a detent.
|
|
32
|
+
* - Before gorhom measures its container, the highest detent stands in.
|
|
33
|
+
*/
|
|
34
|
+
export declare function insetCardHeight(bounds: {
|
|
35
|
+
lowest: number;
|
|
36
|
+
highest: number;
|
|
37
|
+
}, layout: {
|
|
38
|
+
containerHeight: number;
|
|
39
|
+
position: number;
|
|
40
|
+
gap: number;
|
|
41
|
+
}): number;
|
|
16
42
|
/**
|
|
17
43
|
* `focusHook` that keeps `BottomSheetView`'s measuring but drops its
|
|
18
44
|
* static-view registration, which over-drags the sheet on first touch. Calls
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sheetSizing.d.ts","sourceRoot":"","sources":["../../../src/flow/sheetSizing.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,GAAG,MAAM,GAAG,CAAA;AAK/C;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,CAAC,EAAE,WAAW,CAAA;CAAE;;;;;;EAU/D;AAID;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,MAAM,IAAI,QAE5D"}
|
|
1
|
+
{"version":3,"file":"sheetSizing.d.ts","sourceRoot":"","sources":["../../../src/flow/sheetSizing.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,GAAG,MAAM,GAAG,CAAA;AAK/C;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,CAAC,EAAE,WAAW,CAAA;CAAE;;;;;;EAU/D;AAKD;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM;;;EAO9D;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,EAC3C,MAAM,EAAE;IAAE,eAAe,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GACjE,MAAM,CAOR;AAID;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,MAAM,IAAI,QAE5D"}
|
|
@@ -2,8 +2,13 @@ export interface StoredChain {
|
|
|
2
2
|
userId: string | undefined;
|
|
3
3
|
/** `null` when nothing is stored; `undefined` while it's still being read. */
|
|
4
4
|
chainId: string | null | undefined;
|
|
5
|
-
/**
|
|
6
|
-
|
|
5
|
+
/** The token picked with the chain, by symbol; read alongside `chainId`. */
|
|
6
|
+
tokenSymbol: string | null | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Persist the pick for this identity and apply it immediately. A chain
|
|
9
|
+
* picked without a token clears the stored one.
|
|
10
|
+
*/
|
|
11
|
+
remember: (chainId: string, tokenSymbol?: string) => void;
|
|
7
12
|
}
|
|
8
13
|
/** Read once for the identity, so a flow opened later restores it on its first render. */
|
|
9
14
|
export declare const StoredChainProvider: import("react").Provider<StoredChain | undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storedChain.d.ts","sourceRoot":"","sources":["../../../src/flow/storedChain.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"storedChain.d.ts","sourceRoot":"","sources":["../../../src/flow/storedChain.tsx"],"names":[],"mappings":"AAsBA,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,8EAA8E;IAC9E,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IAClC,4EAA4E;IAC5E,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACtC;;;OAGG;IACH,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;CAC1D;AAID,0FAA0F;AAC1F,eAAO,MAAM,mBAAmB,mDAA8B,CAAA;AAE9D,mFAAmF;AACnF,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,WAAW,CAsD3E;AAED,gFAAgF;AAChF,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,CAK1D"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { QuoteDisclosure } from './useTrackFiatDepositQuoteEvents';
|
|
2
|
+
/**
|
|
3
|
+
* Observes the quote only once its price is visible.
|
|
4
|
+
*/
|
|
5
|
+
export declare function QuoteDisclosureObserver({ quote, displayedFeeQuote, destinationAddress, isDirect, provider, onVisible, }: QuoteDisclosure & {
|
|
6
|
+
onVisible: (disclosure: QuoteDisclosure) => void;
|
|
7
|
+
}): null;
|
|
8
|
+
//# sourceMappingURL=QuoteDisclosureObserver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuoteDisclosureObserver.d.ts","sourceRoot":"","sources":["../../../../src/hooks/track/QuoteDisclosureObserver.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AAEvE;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,KAAK,EACL,iBAAiB,EACjB,kBAAkB,EAClB,QAAQ,EACR,QAAQ,EACR,SAAS,GACV,EAAE,eAAe,GAAG;IAAE,SAAS,EAAE,CAAC,UAAU,EAAE,eAAe,KAAK,IAAI,CAAA;CAAE,QAyBxE"}
|
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
import type { FiatProvider, FiatStepResponse, KYCProvider } from '@funkit/connect-core';
|
|
2
|
+
import type { SurfaceReadySource } from '../../fiat/SurfaceSlot';
|
|
3
|
+
export declare enum AnalyticsEvent {
|
|
4
|
+
DEPOSIT_FAILED = "fc_deposit_failed",
|
|
5
|
+
DEPOSIT_METHOD_SELECTED = "fc_deposit_method_selected",
|
|
6
|
+
DEPOSIT_PAYMENT_AUTHORIZED = "fc_deposit_payment_authorized",
|
|
7
|
+
DEPOSIT_PAYMENT_BUTTON_CLICKED = "fc_deposit_payment_button_clicked",
|
|
8
|
+
DEPOSIT_PAYMENT_BUTTON_READY = "fc_deposit_payment_button_ready",
|
|
9
|
+
DEPOSIT_PAYMENT_FAILED = "fc_deposit_payment_failed",
|
|
10
|
+
DEPOSIT_QUOTE_CONFIRMED = "fc_deposit_quote_confirmed",
|
|
11
|
+
DEPOSIT_QUOTE_DISPLAYED = "fc_deposit_quote_displayed",
|
|
12
|
+
DEPOSIT_STALLED = "fc_deposit_stalled",
|
|
13
|
+
DEPOSIT_SUCCEEDED = "fc_deposit_succeeded",
|
|
14
|
+
DEPOSIT_TRANSACTION_SUBMITTED = "fc_deposit_transaction_submitted",
|
|
15
|
+
CONTACT_SUBMITTED = "fc_contact_submitted",
|
|
16
|
+
OTP_VERIFIED = "fc_otp_verified",
|
|
17
|
+
KYC_COMPLETED = "fc_kyc_completed",
|
|
18
|
+
KYC_FAILED = "fc_kyc_failed",
|
|
19
|
+
KYC_FORM_SUBMITTED = "fc_kyc_form_submitted",
|
|
20
|
+
KYC_STARTED = "fc_kyc_started",
|
|
21
|
+
MODAL_CLOSED = "fc_modal_closed",
|
|
22
|
+
MODAL_OPENED = "fc_modal_opened"
|
|
23
|
+
}
|
|
24
|
+
export type AnalyticsFlow = 'deposit' | 'withdraw';
|
|
25
|
+
export type AnalyticsFiatProvider = Lowercase<FiatProvider>;
|
|
26
|
+
export type KycPath = 'fun_form' | 'stripe' | 'moonpay' | Lowercase<KYCProvider>;
|
|
27
|
+
export declare function kycProviderPath(provider: KYCProvider): Lowercase<KYCProvider>;
|
|
28
|
+
export declare function analyticsFiatProvider(provider: FiatProvider | null | undefined): AnalyticsFiatProvider | null;
|
|
29
|
+
export type CommonProperties = {
|
|
30
|
+
api_key: string;
|
|
31
|
+
checkout_id: string;
|
|
32
|
+
flow: AnalyticsFlow;
|
|
33
|
+
sdk_type: 'react-native';
|
|
34
|
+
user_id: string | null;
|
|
35
|
+
};
|
|
36
|
+
/** React Native modal-opening payload. */
|
|
37
|
+
export type ModalOpenedProperties = {
|
|
38
|
+
dynamic_routing_id: string | null;
|
|
39
|
+
/** Deposit: unset until the user picks a source chain (nullable, like web). Withdrawal: the token withdrawn from. */
|
|
40
|
+
source_asset: string | null;
|
|
41
|
+
source_asset_ticker: string | null;
|
|
42
|
+
source_chain: string | null;
|
|
43
|
+
/** Withdrawal: not yet known when the modal opens (web parity). */
|
|
44
|
+
target_asset: string | null;
|
|
45
|
+
target_asset_ticker: string | null;
|
|
46
|
+
target_chain: string | null;
|
|
47
|
+
/** 1 when the host supplied a usable wallet address, else 0 — RN has no multi-wallet. */
|
|
48
|
+
wallet_count: number;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* `default` means configured entry from the SDK's perspective, including a method
|
|
52
|
+
* the user chose in the host's menu. `manual` means a choice inside the SDK.
|
|
53
|
+
* Each opening has its own checkout ID; these values do not identify a browsing session.
|
|
54
|
+
*/
|
|
55
|
+
export type MethodSelectionType = 'default' | 'manual';
|
|
56
|
+
/** React Native deposit-method selection payload. */
|
|
57
|
+
export type DepositMethodSelectedProperties = {
|
|
58
|
+
payment_method: string;
|
|
59
|
+
payment_rail: 'swapped' | null;
|
|
60
|
+
select_type: MethodSelectionType;
|
|
61
|
+
connection_status: 'new' | 'existing' | null;
|
|
62
|
+
/** Saved cash methods offered when selected. 0 when no cash list was shown (default entry, cash hidden or off); null if the list is unresolved. */
|
|
63
|
+
saved_payment_method_count: number | null;
|
|
64
|
+
source_asset: string | null;
|
|
65
|
+
source_asset_ticker: string | null;
|
|
66
|
+
source_chain: string | null;
|
|
67
|
+
target_asset: string | null;
|
|
68
|
+
target_asset_ticker: string | null;
|
|
69
|
+
target_chain: string | null;
|
|
70
|
+
};
|
|
71
|
+
export type DepositQuoteRefreshReason = 'amount_changed' | 'expired' | 'kyc_requote' | 'provider_failover' | 'retry';
|
|
72
|
+
export type DepositQuoteSelectionType = 'default' | 'restored' | 'manual' | 'min' | 'max' | 'preset';
|
|
73
|
+
/**
|
|
74
|
+
* `default` is an untouched starting amount; `restored` comes from a pending
|
|
75
|
+
* order. `preset` means a tapped quick-amount chip, with its label in `presetAmount`.
|
|
76
|
+
*/
|
|
77
|
+
export type DepositAmountSelection = {
|
|
78
|
+
selectType: Exclude<DepositQuoteSelectionType, 'preset'>;
|
|
79
|
+
presetAmount: null;
|
|
80
|
+
} | {
|
|
81
|
+
selectType: 'preset';
|
|
82
|
+
presetAmount: string;
|
|
83
|
+
};
|
|
84
|
+
export declare const MANUAL_AMOUNT_SELECTION: DepositAmountSelection;
|
|
85
|
+
/**
|
|
86
|
+
* `FeeLine.id` is intentionally open in fiat-contract so the backend can add
|
|
87
|
+
* localized fee rows without a client release. Keep those server-owned ids
|
|
88
|
+
* namespaced rather than treating the currently known ids as a closed enum.
|
|
89
|
+
*/
|
|
90
|
+
type FlattenedFeeBreakdownProperties = {
|
|
91
|
+
[key: `fee_breakdown.${string}`]: string | undefined;
|
|
92
|
+
};
|
|
93
|
+
/** Quote fields displayed on the mobile fiat amount screen. */
|
|
94
|
+
export type DepositQuoteDisplayedProperties = FlattenedFeeBreakdownProperties & {
|
|
95
|
+
destination_address: string | null;
|
|
96
|
+
dynamic_routing_id: string | null;
|
|
97
|
+
fiat_amount: string;
|
|
98
|
+
fiat_currency: string;
|
|
99
|
+
num_quote_refreshes: number;
|
|
100
|
+
payment_method: string;
|
|
101
|
+
preset_amount: string | null;
|
|
102
|
+
provider: AnalyticsFiatProvider | null;
|
|
103
|
+
quote_ref: string;
|
|
104
|
+
quote_ttl_ms: number | null;
|
|
105
|
+
refresh_reason: DepositQuoteRefreshReason;
|
|
106
|
+
select_type: DepositQuoteSelectionType;
|
|
107
|
+
source_amount: string;
|
|
108
|
+
target_amount: string | null;
|
|
109
|
+
target_asset: string | null;
|
|
110
|
+
target_asset_ticker: string | null;
|
|
111
|
+
target_chain: string | null;
|
|
112
|
+
total_fee: string;
|
|
113
|
+
trade_type: 'EXACT_IN' | 'EXACT_OUT';
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* Confirmation requires the matching quote to have reached visible UI, not
|
|
117
|
+
* successful delivery of its display event to Statsig.
|
|
118
|
+
*/
|
|
119
|
+
export type DepositQuoteConfirmedProperties = DepositQuoteDisplayedProperties;
|
|
120
|
+
export type PaymentSurfacePlacement = 'inline' | 'screen';
|
|
121
|
+
/**
|
|
122
|
+
* The quote a payment sheet's outcome belongs to. A narrow slice of
|
|
123
|
+
* {@link DepositQuoteDisplayedProperties} rather than the full breakdown —
|
|
124
|
+
* the sheet's own callback carries no more than this, and refetching the
|
|
125
|
+
* rest would attribute figures to a quote that may have since refreshed.
|
|
126
|
+
*/
|
|
127
|
+
export type DepositPaymentQuoteContext = {
|
|
128
|
+
fiat_amount: string | null;
|
|
129
|
+
fiat_currency: string | null;
|
|
130
|
+
payment_method: string;
|
|
131
|
+
provider: AnalyticsFiatProvider | null;
|
|
132
|
+
quote_ref: string | null;
|
|
133
|
+
total_fee: string | null;
|
|
134
|
+
};
|
|
135
|
+
export type DepositPaymentButtonReadyProperties = DepositPaymentQuoteContext & {
|
|
136
|
+
attempt: number;
|
|
137
|
+
load_ms: number;
|
|
138
|
+
placement: PaymentSurfacePlacement;
|
|
139
|
+
ready_source: SurfaceReadySource;
|
|
140
|
+
};
|
|
141
|
+
export type DepositPaymentButtonClickedProperties = DepositPaymentQuoteContext & {
|
|
142
|
+
attempt: number;
|
|
143
|
+
ms_since_ready: number;
|
|
144
|
+
placement: PaymentSurfacePlacement;
|
|
145
|
+
ready_source: SurfaceReadySource;
|
|
146
|
+
tap_index: number;
|
|
147
|
+
};
|
|
148
|
+
/** Confirmed provider payment authorization; handoff returns alone do not prove it. */
|
|
149
|
+
export type DepositPaymentAuthorizedProperties = DepositPaymentQuoteContext & {
|
|
150
|
+
attempt: number;
|
|
151
|
+
request_id: string | null;
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
* Provider callbacks use the same cancellation and card-refusal classification
|
|
155
|
+
* as the flow. Coinbase and MoonPay dismissals that keep their button reusable
|
|
156
|
+
* stay local to their adapters and do not end the surface attempt.
|
|
157
|
+
*/
|
|
158
|
+
export type PaymentFailureReason = 'cancelled' | 'declined' | 'provider_error';
|
|
159
|
+
export type DepositPaymentFailedProperties = DepositPaymentQuoteContext & {
|
|
160
|
+
attempt: number;
|
|
161
|
+
error_code: string;
|
|
162
|
+
reason: PaymentFailureReason;
|
|
163
|
+
};
|
|
164
|
+
export type DepositPaymentOrderContext = DepositPaymentQuoteContext & {
|
|
165
|
+
order_id: string;
|
|
166
|
+
quote_ref: string | null;
|
|
167
|
+
request_id: string | null;
|
|
168
|
+
};
|
|
169
|
+
export type DepositTransactionSubmittedProperties = DepositPaymentOrderContext & {
|
|
170
|
+
time_to_submit_ms: number | null;
|
|
171
|
+
};
|
|
172
|
+
export type DepositFailureCode = 'failed' | 'expired' | 'cancelled' | 'refunded' | 'blocked';
|
|
173
|
+
export type DepositStalledReason = 'poll_gave_up';
|
|
174
|
+
/**
|
|
175
|
+
* Derived through connect-core rather than imported from `fiat-contract`:
|
|
176
|
+
* connect-rn does not depend on the contract package directly, and this keeps
|
|
177
|
+
* the union in step with whatever version core resolves.
|
|
178
|
+
*/
|
|
179
|
+
export type DepositBlockedReason = Extract<FiatStepResponse['state'], {
|
|
180
|
+
kind: 'BLOCKED';
|
|
181
|
+
}>['reason'];
|
|
182
|
+
export type DepositFailedProperties = {
|
|
183
|
+
error_code: DepositFailureCode;
|
|
184
|
+
/**
|
|
185
|
+
* Only `ALL_PROVIDERS_DECLINED` is a deposit that failed — the other reasons
|
|
186
|
+
* are pre-payment routing refusals. Carried so the two populations stay
|
|
187
|
+
* separable downstream instead of both inflating the failure rate.
|
|
188
|
+
*/
|
|
189
|
+
blocked_reason: DepositBlockedReason | null;
|
|
190
|
+
order_id: string | null;
|
|
191
|
+
payment_method: string;
|
|
192
|
+
provider: AnalyticsFiatProvider | null;
|
|
193
|
+
quote_ref: string | null;
|
|
194
|
+
request_id: string | null;
|
|
195
|
+
};
|
|
196
|
+
export type DepositStalledProperties = {
|
|
197
|
+
payment_method: string;
|
|
198
|
+
provider: AnalyticsFiatProvider | null;
|
|
199
|
+
error_code: DepositStalledReason;
|
|
200
|
+
order_id: string | null;
|
|
201
|
+
quote_ref: string | null;
|
|
202
|
+
request_id: string | null;
|
|
203
|
+
stage: 'kyc_review' | 'order';
|
|
204
|
+
};
|
|
205
|
+
export type DepositSucceededProperties = DepositPaymentOrderContext & {
|
|
206
|
+
fulfillment_time_ms: number | null;
|
|
207
|
+
tx_hash: string | null;
|
|
208
|
+
};
|
|
209
|
+
export type KycStartedProperties = {
|
|
210
|
+
payment_method: string;
|
|
211
|
+
/** Lowercase fiat provider, or null when the response unexpectedly omits it. */
|
|
212
|
+
provider: AnalyticsFiatProvider | null;
|
|
213
|
+
quote_ref: string | null;
|
|
214
|
+
start_path: KycPath;
|
|
215
|
+
};
|
|
216
|
+
/** Close context will be added once RN has an authoritative step model. */
|
|
217
|
+
export type ModalClosedProperties = Record<never, never>;
|
|
218
|
+
/**
|
|
219
|
+
* A completion is conservative rather than a pure provider-success signal:
|
|
220
|
+
* - it waits for a payment/order state, so quote-review dwell is included;
|
|
221
|
+
* - abandoning before that state emits neither a completed nor failed outcome.
|
|
222
|
+
*/
|
|
223
|
+
export type KycCompletedProperties = {
|
|
224
|
+
quote_ref: string | null;
|
|
225
|
+
completion_path: KycPath;
|
|
226
|
+
payment_method: string;
|
|
227
|
+
/** Lowercase fiat provider from the terminal outcome response. */
|
|
228
|
+
provider: AnalyticsFiatProvider | null;
|
|
229
|
+
/** Number of backend forms that advanced to another state. */
|
|
230
|
+
rounds_completed: number;
|
|
231
|
+
/** Wall-clock time from accepting the first KYC faceplate to the outcome. */
|
|
232
|
+
time_in_kyc_ms: number;
|
|
233
|
+
};
|
|
234
|
+
export type KycFailedProperties = KycCompletedProperties & {
|
|
235
|
+
reason: 'rejected' | 'retryable_rejection' | 'on_hold';
|
|
236
|
+
};
|
|
237
|
+
export type ContactSubmittedProperties = {
|
|
238
|
+
quote_ref: string | null;
|
|
239
|
+
/** One for the first valid submission from this contact screen. */
|
|
240
|
+
attempts: number;
|
|
241
|
+
/** Whether the rendered contact screen collected each delivery channel. */
|
|
242
|
+
has_email: boolean;
|
|
243
|
+
has_phone: boolean;
|
|
244
|
+
payment_method: string;
|
|
245
|
+
/** Lowercase fiat provider, or null when the response unexpectedly omits it. */
|
|
246
|
+
provider: AnalyticsFiatProvider | null;
|
|
247
|
+
};
|
|
248
|
+
export type OtpVerifiedProperties = {
|
|
249
|
+
quote_ref: string | null;
|
|
250
|
+
/**
|
|
251
|
+
* Verify submissions on the completed OTP screen. A transport retry is not
|
|
252
|
+
* one: it replays the same code through `flow.retry()`, never the screen.
|
|
253
|
+
*/
|
|
254
|
+
attempts: number;
|
|
255
|
+
channel: 'email' | 'sms';
|
|
256
|
+
payment_method: string;
|
|
257
|
+
/** Lowercase fiat provider from the challenge that was answered. */
|
|
258
|
+
provider: AnalyticsFiatProvider | null;
|
|
259
|
+
};
|
|
260
|
+
export type KycFormSubmittedProperties = {
|
|
261
|
+
quote_ref: string | null;
|
|
262
|
+
/** One-based count of consecutive submissions for this KYC form or surface. */
|
|
263
|
+
attempts: number;
|
|
264
|
+
/** Opaque backend form identifier; provider surfaces may not expose one. */
|
|
265
|
+
form_id: string | null;
|
|
266
|
+
payment_method: string;
|
|
267
|
+
provider: AnalyticsFiatProvider | null;
|
|
268
|
+
submission_path: KycPath;
|
|
269
|
+
};
|
|
270
|
+
export type AnalyticsEventProperties = {
|
|
271
|
+
[AnalyticsEvent.MODAL_CLOSED]: ModalClosedProperties;
|
|
272
|
+
[AnalyticsEvent.DEPOSIT_FAILED]: DepositFailedProperties;
|
|
273
|
+
[AnalyticsEvent.MODAL_OPENED]: ModalOpenedProperties;
|
|
274
|
+
[AnalyticsEvent.DEPOSIT_METHOD_SELECTED]: DepositMethodSelectedProperties;
|
|
275
|
+
[AnalyticsEvent.DEPOSIT_PAYMENT_AUTHORIZED]: DepositPaymentAuthorizedProperties;
|
|
276
|
+
[AnalyticsEvent.DEPOSIT_PAYMENT_BUTTON_CLICKED]: DepositPaymentButtonClickedProperties;
|
|
277
|
+
[AnalyticsEvent.DEPOSIT_PAYMENT_BUTTON_READY]: DepositPaymentButtonReadyProperties;
|
|
278
|
+
[AnalyticsEvent.DEPOSIT_PAYMENT_FAILED]: DepositPaymentFailedProperties;
|
|
279
|
+
[AnalyticsEvent.DEPOSIT_QUOTE_CONFIRMED]: DepositQuoteConfirmedProperties;
|
|
280
|
+
[AnalyticsEvent.DEPOSIT_QUOTE_DISPLAYED]: DepositQuoteDisplayedProperties;
|
|
281
|
+
[AnalyticsEvent.DEPOSIT_STALLED]: DepositStalledProperties;
|
|
282
|
+
[AnalyticsEvent.DEPOSIT_SUCCEEDED]: DepositSucceededProperties;
|
|
283
|
+
[AnalyticsEvent.DEPOSIT_TRANSACTION_SUBMITTED]: DepositTransactionSubmittedProperties;
|
|
284
|
+
[AnalyticsEvent.CONTACT_SUBMITTED]: ContactSubmittedProperties;
|
|
285
|
+
[AnalyticsEvent.OTP_VERIFIED]: OtpVerifiedProperties;
|
|
286
|
+
[AnalyticsEvent.KYC_COMPLETED]: KycCompletedProperties;
|
|
287
|
+
[AnalyticsEvent.KYC_FAILED]: KycFailedProperties;
|
|
288
|
+
[AnalyticsEvent.KYC_FORM_SUBMITTED]: KycFormSubmittedProperties;
|
|
289
|
+
[AnalyticsEvent.KYC_STARTED]: KycStartedProperties;
|
|
290
|
+
};
|
|
291
|
+
export type AnalyticsEventPayload<T extends AnalyticsEvent> = CommonProperties & AnalyticsEventProperties[T];
|
|
292
|
+
export {};
|
|
293
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../src/hooks/track/events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACZ,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAEhE,oBAAY,cAAc;IACxB,cAAc,sBAAsB;IACpC,uBAAuB,+BAA+B;IACtD,0BAA0B,kCAAkC;IAC5D,8BAA8B,sCAAsC;IACpE,4BAA4B,oCAAoC;IAChE,sBAAsB,8BAA8B;IACpD,uBAAuB,+BAA+B;IACtD,uBAAuB,+BAA+B;IACtD,eAAe,uBAAuB;IACtC,iBAAiB,yBAAyB;IAC1C,6BAA6B,qCAAqC;IAClE,iBAAiB,yBAAyB;IAC1C,YAAY,oBAAoB;IAChC,aAAa,qBAAqB;IAClC,UAAU,kBAAkB;IAC5B,kBAAkB,0BAA0B;IAC5C,WAAW,mBAAmB;IAC9B,YAAY,oBAAoB;IAChC,YAAY,oBAAoB;CACjC;AAED,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,UAAU,CAAA;AAElD,MAAM,MAAM,qBAAqB,GAAG,SAAS,CAAC,YAAY,CAAC,CAAA;AAE3D,MAAM,MAAM,OAAO,GAAG,UAAU,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC,WAAW,CAAC,CAAA;AAEhF,wBAAgB,eAAe,CAAC,QAAQ,EAAE,WAAW,GAAG,SAAS,CAAC,WAAW,CAAC,CAE7E;AAED,wBAAgB,qBAAqB,CAC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CAAA;IACvE,CAAC,cAAc,CAAC,uBAAuB,CAAC,EAAE,+BAA+B,CAAA;IACzE,CAAC,cAAc,CAAC,uBAAuB,CAAC,EAAE,+BAA+B,CAAA;IACzE,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,wBAAwB,CAAA;IAC1D,CAAC,cAAc,CAAC,iBAAiB,CAAC,EAAE,0BAA0B,CAAA;IAC9D,CAAC,cAAc,CAAC,6BAA6B,CAAC,EAAE,qCAAqC,CAAA;IACrF,CAAC,cAAc,CAAC,iBAAiB,CAAC,EAAE,0BAA0B,CAAA;IAC9D,CAAC,cAAc,CAAC,YAAY,CAAC,EAAE,qBAAqB,CAAA;IACpD,CAAC,cAAc,CAAC,aAAa,CAAC,EAAE,sBAAsB,CAAA;IACtD,CAAC,cAAc,CAAC,UAAU,CAAC,EAAE,mBAAmB,CAAA;IAChD,CAAC,cAAc,CAAC,kBAAkB,CAAC,EAAE,0BAA0B,CAAA;IAC/D,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,oBAAoB,CAAA;CACnD,CAAA;AAED,MAAM,MAAM,qBAAqB,CAAC,CAAC,SAAS,cAAc,IAAI,gBAAgB,GAC5E,wBAAwB,CAAC,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quoteTtlMs.d.ts","sourceRoot":"","sources":["../../../../src/hooks/track/quoteTtlMs.ts"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,CACxB,SAAS,EAAE,MAAM,EACjB,KAAK,SAAa,GACjB,MAAM,GAAG,IAAI,CAMf"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { DepositCheckoutConfig, FiatRailConfig } from '../../flow/depositFlowConfig';
|
|
2
|
+
interface DepositFlowEventTarget {
|
|
3
|
+
activeCheckoutConfig: DepositCheckoutConfig | undefined;
|
|
4
|
+
activeDynamicRoutingId: string | undefined;
|
|
5
|
+
ticker: string | undefined;
|
|
6
|
+
}
|
|
7
|
+
export declare function getDepositMethodAssetContext(targetAsset: Omit<DepositFlowEventTarget, 'activeDynamicRoutingId'>): {
|
|
8
|
+
source_asset: null;
|
|
9
|
+
source_asset_ticker: null;
|
|
10
|
+
source_chain: null;
|
|
11
|
+
target_asset: `0x${string}` | `1${string}` | `2${string}` | `m${string}` | `p${string}` | `g${string}` | `a${string}` | `b${string}` | `i${string}` | `q${string}` | `s${string}` | `u${string}` | `3${string}` | `4${string}` | `5${string}` | `6${string}` | `7${string}` | `8${string}` | `9${string}` | `A${string}` | `B${string}` | `C${string}` | `D${string}` | `E${string}` | `F${string}` | `G${string}` | `H${string}` | `J${string}` | `K${string}` | `L${string}` | `M${string}` | `N${string}` | `P${string}` | `Q${string}` | `R${string}` | `S${string}` | `T${string}` | `U${string}` | `V${string}` | `W${string}` | `X${string}` | `Y${string}` | `Z${string}` | `c${string}` | `d${string}` | `e${string}` | `f${string}` | `h${string}` | `j${string}` | `k${string}` | `n${string}` | `o${string}` | `r${string}` | `t${string}` | `v${string}` | `w${string}` | `x${string}` | `y${string}` | `z${string}` | null;
|
|
12
|
+
target_asset_ticker: string | null;
|
|
13
|
+
target_chain: string | null;
|
|
14
|
+
};
|
|
15
|
+
export declare function useDepositFlowEvents({ checkoutId, selectedChainId, targetAsset, walletAddress, defaultFiatMethod, defaultCryptoMethod, }: {
|
|
16
|
+
checkoutId: string;
|
|
17
|
+
selectedChainId: string | undefined;
|
|
18
|
+
targetAsset: DepositFlowEventTarget;
|
|
19
|
+
walletAddress: string;
|
|
20
|
+
defaultFiatMethod: FiatRailConfig | undefined;
|
|
21
|
+
defaultCryptoMethod?: boolean;
|
|
22
|
+
}): void;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=useDepositFlowEvents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDepositFlowEvents.d.ts","sourceRoot":"","sources":["../../../../src/hooks/track/useDepositFlowEvents.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,qBAAqB,EACrB,cAAc,EACf,MAAM,8BAA8B,CAAA;AAGrC,UAAU,sBAAsB;IAC9B,oBAAoB,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACvD,sBAAsB,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1C,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;CAC3B;AAID,wBAAgB,4BAA4B,CAC1C,WAAW,EAAE,IAAI,CAAC,sBAAsB,EAAE,wBAAwB,CAAC;;;;;;;EAWpE;AAED,wBAAgB,oBAAoB,CAAC,EACnC,UAAU,EACV,eAAe,EACf,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,mBAA2B,GAC5B,EAAE;IACD,UAAU,EAAE,MAAM,CAAA;IAClB,eAAe,EAAE,MAAM,GAAG,SAAS,CAAA;IACnC,WAAW,EAAE,sBAAsB,CAAA;IACnC,aAAa,EAAE,MAAM,CAAA;IACrB,iBAAiB,EAAE,cAAc,GAAG,SAAS,CAAA;IAC7C,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAC9B,QA6CA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { FiatFlow, Quote } from '@funkit/connect-core';
|
|
2
|
+
import { type RefObject } from 'react';
|
|
3
|
+
import type { useBlockedState } from '../../fiat/quoteRouting';
|
|
4
|
+
import type { SurfaceFailure } from '../../flow/screenBundles';
|
|
5
|
+
import type { PaymentAnalytics } from './usePaymentButtonEvents';
|
|
6
|
+
export declare function useDepositFailureEvents(flow: FiatFlow, quotedRound: ReturnType<typeof useBlockedState>['quotedRound'], quoteRefusalAttempt: RefObject<number>, providerPaymentFailure: SurfaceFailure | undefined, paymentAnalytics: PaymentAnalytics): void;
|
|
7
|
+
export declare function useDepositOrderEvents(flow: FiatFlow, isDirect: boolean, acceptedPaymentQuote: RefObject<Quote | undefined>, paymentAnalytics: PaymentAnalytics): {
|
|
8
|
+
providerSettled: "PAID" | "SENT" | undefined;
|
|
9
|
+
setProviderSettled: import("react").Dispatch<import("react").SetStateAction<"PAID" | "SENT" | undefined>>;
|
|
10
|
+
};
|
|
11
|
+
export declare function trackDepositPollGaveUp(flow: FiatFlow, paymentAnalytics: PaymentAnalytics): void;
|
|
12
|
+
//# sourceMappingURL=useDepositOutcomeEvents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDepositOutcomeEvents.d.ts","sourceRoot":"","sources":["../../../../src/hooks/track/useDepositOutcomeEvents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,EAAE,KAAK,SAAS,EAAuB,MAAM,OAAO,CAAA;AAE3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAEhE,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,QAAQ,EACd,WAAW,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,aAAa,CAAC,EAC9D,mBAAmB,EAAE,SAAS,CAAC,MAAM,CAAC,EACtC,sBAAsB,EAAE,cAAc,GAAG,SAAS,EAClD,gBAAgB,EAAE,gBAAgB,QAqCnC;AAED,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,QAAQ,EACd,QAAQ,EAAE,OAAO,EACjB,oBAAoB,EAAE,SAAS,CAAC,KAAK,GAAG,SAAS,CAAC,EAClD,gBAAgB,EAAE,gBAAgB;;;EAkBnC;AAED,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,QAAQ,EACd,gBAAgB,EAAE,gBAAgB,QAanC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { FiatProvider, Quote, Surface, SurfaceResult } from '@funkit/connect-core';
|
|
2
|
+
import { type ComponentProps } from 'react';
|
|
3
|
+
import { SurfaceSlot } from '../../fiat/SurfaceSlot';
|
|
4
|
+
import type { PaymentSurfacePlacement } from './events';
|
|
5
|
+
import type { useTrackFiatPaymentEvents } from './useTrackFiatPaymentEvents';
|
|
6
|
+
export type PaymentAnalytics = ReturnType<typeof useTrackFiatPaymentEvents>;
|
|
7
|
+
interface PaymentButtonContext {
|
|
8
|
+
attempt: number;
|
|
9
|
+
placement: PaymentSurfacePlacement;
|
|
10
|
+
/** Native buttons and KYC SDKs use the quoted provider. */
|
|
11
|
+
surface?: Surface;
|
|
12
|
+
quoteProvider: FiatProvider | undefined;
|
|
13
|
+
quote: Quote | undefined;
|
|
14
|
+
surfaceKey: string;
|
|
15
|
+
}
|
|
16
|
+
export interface PaymentSurfaceEvents {
|
|
17
|
+
/** Spread onto the payment `SurfaceSlot`. */
|
|
18
|
+
slot: Pick<ComponentProps<typeof SurfaceSlot>, 'onSurfaceReady' | 'onSurfaceTap'>;
|
|
19
|
+
trackAuthorized: (result: SurfaceResult) => void;
|
|
20
|
+
trackFailed: (errorCode: string) => void;
|
|
21
|
+
}
|
|
22
|
+
export type PaymentButtonEvents = (context: PaymentButtonContext) => PaymentSurfaceEvents;
|
|
23
|
+
/**
|
|
24
|
+
* Events for a payment `SurfaceSlot`: when its button is ready, every tap on it,
|
|
25
|
+
* and how the attempt ended. Not a wrapper component, so the slot keeps one
|
|
26
|
+
* element type across the quote, the held page and the capture and is never
|
|
27
|
+
* remounted by tracking.
|
|
28
|
+
*/
|
|
29
|
+
export declare function usePaymentButtonEvents(paymentAnalytics: PaymentAnalytics): PaymentButtonEvents;
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=usePaymentButtonEvents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePaymentButtonEvents.d.ts","sourceRoot":"","sources":["../../../../src/hooks/track/usePaymentButtonEvents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,KAAK,EACL,OAAO,EACP,aAAa,EACd,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,KAAK,cAAc,EAAU,MAAM,OAAO,CAAA;AACnD,OAAO,EACL,WAAW,EAGZ,MAAM,wBAAwB,CAAA;AAC/B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAA;AACvD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAE5E,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAE3E,UAAU,oBAAoB;IAC5B,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,uBAAuB,CAAA;IAClC,2DAA2D;IAC3D,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,aAAa,EAAE,YAAY,GAAG,SAAS,CAAA;IACvC,KAAK,EAAE,KAAK,GAAG,SAAS,CAAA;IACxB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,oBAAoB;IACnC,6CAA6C;IAC7C,IAAI,EAAE,IAAI,CACR,cAAc,CAAC,OAAO,WAAW,CAAC,EAClC,gBAAgB,GAAG,cAAc,CAClC,CAAA;IACD,eAAe,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,CAAA;IAChD,WAAW,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAA;CACzC;AAED,MAAM,MAAM,mBAAmB,GAAG,CAChC,OAAO,EAAE,oBAAoB,KAC1B,oBAAoB,CAAA;AAEzB;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,gBAAgB,EAAE,gBAAgB,GACjC,mBAAmB,CAoErB"}
|