@funkit/connect-rn 10.0.0 → 11.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 +89 -0
- package/dist/{chunk-R3RNNOBY.js → chunk-4YEMLHEX.js} +86 -12
- package/dist/chunk-4YEMLHEX.js.map +7 -0
- package/dist/{chunk-264ZLQVH.js → chunk-HD4PRG6A.js} +3 -3
- package/dist/{chunk-264ZLQVH.js.map → chunk-HD4PRG6A.js.map} +2 -2
- package/dist/{chunk-K2VB5PT5.js → chunk-W2JG7SK2.js} +322 -9
- package/dist/chunk-W2JG7SK2.js.map +7 -0
- package/dist/clients/lighter.js +1 -1
- package/dist/clients/nado/withdrawalSubmit.d.ts.map +1 -1
- package/dist/clients/nado.js +2 -2
- package/dist/clients/solana.js +3 -3
- package/dist/clients/solana.js.map +2 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +19938 -16160
- package/dist/index.js.map +4 -4
- package/dist/preview.d.ts +3 -0
- package/dist/preview.d.ts.map +1 -1
- package/dist/preview.js +680 -12
- package/dist/preview.js.map +4 -4
- package/dist/src/components/LoadingSpinner.d.ts +1 -6
- package/dist/src/components/LoadingSpinner.d.ts.map +1 -1
- package/dist/src/components/TopBar.d.ts +2 -1
- package/dist/src/components/TopBar.d.ts.map +1 -1
- package/dist/src/components/v2/FeeLine.d.ts +2 -2
- package/dist/src/components/v2/FeeLine.d.ts.map +1 -1
- package/dist/src/components/v2/ListRow.d.ts.map +1 -1
- package/dist/src/components/v2/PaymentMethodPicker.d.ts +3 -1
- package/dist/src/components/v2/PaymentMethodPicker.d.ts.map +1 -1
- package/dist/src/fiat/common/ctaLabel.d.ts.map +1 -1
- package/dist/src/fiat/common/stepDetails.d.ts +4 -2
- package/dist/src/fiat/common/stepDetails.d.ts.map +1 -1
- package/dist/src/fiat/contact/contactRound.d.ts +1 -0
- package/dist/src/fiat/contact/contactRound.d.ts.map +1 -1
- package/dist/src/fiat/contact/useFlowContact.d.ts +1 -0
- package/dist/src/fiat/contact/useFlowContact.d.ts.map +1 -1
- package/dist/src/fiat/entry/depositMatch.d.ts +10 -4
- package/dist/src/fiat/entry/depositMatch.d.ts.map +1 -1
- package/dist/src/fiat/entry/useCaptureHold.d.ts +12 -2
- package/dist/src/fiat/entry/useCaptureHold.d.ts.map +1 -1
- package/dist/src/fiat/entry/useEntryPress.d.ts +25 -0
- package/dist/src/fiat/entry/useEntryPress.d.ts.map +1 -0
- package/dist/src/fiat/entry/useEntryQuote.d.ts.map +1 -1
- package/dist/src/fiat/entry/usePayOnArrival.d.ts +22 -0
- package/dist/src/fiat/entry/usePayOnArrival.d.ts.map +1 -0
- package/dist/src/fiat/kyc/FiatDocumentCaptureStep.d.ts +1 -1
- package/dist/src/fiat/kyc/kycFieldValidators.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycForm.d.ts +9 -2
- package/dist/src/fiat/kyc/kycForm.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycFormState.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycFormTheme.d.ts.map +1 -1
- package/dist/src/fiat/kyc/useKycRoundReporting.d.ts.map +1 -1
- package/dist/src/fiat/kyc/useKycScreens.d.ts +4 -0
- package/dist/src/fiat/kyc/useKycScreens.d.ts.map +1 -1
- package/dist/src/fiat/otp/FiatOtpScreen.d.ts +12 -1
- package/dist/src/fiat/otp/FiatOtpScreen.d.ts.map +1 -1
- package/dist/src/fiat/otp/FunReauthStep.d.ts +15 -0
- package/dist/src/fiat/otp/FunReauthStep.d.ts.map +1 -0
- package/dist/src/fiat/otp/otpScreenProps.d.ts +5 -2
- package/dist/src/fiat/otp/otpScreenProps.d.ts.map +1 -1
- package/dist/src/fiat/otp/useFunSession.d.ts +31 -0
- package/dist/src/fiat/otp/useFunSession.d.ts.map +1 -0
- package/dist/src/fiat/otp/useOtpReceipt.d.ts +2 -0
- package/dist/src/fiat/otp/useOtpReceipt.d.ts.map +1 -1
- package/dist/src/fiat/otp/useResendCooldown.d.ts +8 -3
- package/dist/src/fiat/otp/useResendCooldown.d.ts.map +1 -1
- package/dist/src/fiat/payment/applePayAttempt.d.ts +2 -2
- package/dist/src/fiat/payment/failoverKind.d.ts +20 -0
- package/dist/src/fiat/payment/failoverKind.d.ts.map +1 -0
- package/dist/src/fiat/payment/failoverPrompt.d.ts +19 -0
- package/dist/src/fiat/payment/failoverPrompt.d.ts.map +1 -0
- package/dist/src/fiat/payment/insufficientFundsAmount.d.ts +25 -0
- package/dist/src/fiat/payment/insufficientFundsAmount.d.ts.map +1 -0
- package/dist/src/fiat/payment/paymentReport.d.ts +11 -0
- package/dist/src/fiat/payment/paymentReport.d.ts.map +1 -0
- package/dist/src/fiat/payment/paymentReroute.d.ts +4 -2
- package/dist/src/fiat/payment/paymentReroute.d.ts.map +1 -1
- package/dist/src/fiat/payment/paymentSurfaceFailure.d.ts +2 -0
- package/dist/src/fiat/payment/paymentSurfaceFailure.d.ts.map +1 -1
- package/dist/src/fiat/payment/usePaymentFailureAnswer.d.ts +50 -3
- package/dist/src/fiat/payment/usePaymentFailureAnswer.d.ts.map +1 -1
- package/dist/src/fiat/payment/useRerouteProbe.d.ts.map +1 -1
- package/dist/src/fiat/processing/DepositCardSheet.d.ts +11 -3
- package/dist/src/fiat/processing/DepositCardSheet.d.ts.map +1 -1
- package/dist/src/fiat/processing/FailoverPrompt.d.ts +35 -0
- package/dist/src/fiat/processing/FailoverPrompt.d.ts.map +1 -0
- package/dist/src/fiat/processing/depositProcessing.d.ts +1 -1
- package/dist/src/fiat/processing/depositProcessing.d.ts.map +1 -1
- package/dist/src/fiat/processing/failoverArtwork.d.ts +19 -0
- package/dist/src/fiat/processing/failoverArtwork.d.ts.map +1 -0
- package/dist/src/fiat/providers/applePayButtonMetrics.d.ts.map +1 -1
- package/dist/src/fiat/providers/banxa/BanxaCheckoutSurface.d.ts +17 -0
- package/dist/src/fiat/providers/banxa/BanxaCheckoutSurface.d.ts.map +1 -0
- package/dist/src/fiat/providers/banxa/banxaApplePayButton.d.ts +8 -0
- package/dist/src/fiat/providers/banxa/banxaApplePayButton.d.ts.map +1 -0
- package/dist/src/fiat/providers/banxa/banxaBridgeEvents.d.ts +34 -0
- package/dist/src/fiat/providers/banxa/banxaBridgeEvents.d.ts.map +1 -0
- package/dist/src/fiat/providers/coinbase/CoinbaseCheckoutSurface.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/coinbaseApplePay.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/coinbaseOnrampEvents.d.ts +6 -0
- package/dist/src/fiat/providers/coinbase/coinbaseOnrampEvents.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeAccountCreation.d.ts +15 -5
- package/dist/src/fiat/providers/stripe/stripeAccountCreation.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeApplePaySelection.d.ts +87 -0
- package/dist/src/fiat/providers/stripe/stripeApplePaySelection.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/stripeCardRefusal.d.ts +1 -0
- package/dist/src/fiat/providers/stripe/stripeCardRefusal.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeKyc.d.ts +1 -1
- package/dist/src/fiat/providers/stripe/stripeKyc.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeKycInfo.d.ts +7 -1
- package/dist/src/fiat/providers/stripe/stripeKycInfo.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeOnramp.d.ts +16 -0
- package/dist/src/fiat/providers/stripe/stripeOnramp.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripePayment.d.ts +12 -2
- package/dist/src/fiat/providers/stripe/stripePayment.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeSessionAuth.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/useApplePayFirst.d.ts +22 -0
- package/dist/src/fiat/providers/stripe/useApplePayFirst.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/useCreateStripeAccountWithExistingUserData.d.ts +3 -1
- package/dist/src/fiat/providers/stripe/useCreateStripeAccountWithExistingUserData.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/useStripeOnrampClient.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/useStripeSessionAuth.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/useStripeState.d.ts.map +1 -1
- package/dist/src/fiat/providers/sumsub/sumsubKyc.d.ts.map +1 -1
- package/dist/src/fiat/providers/useHostedPageLoad.d.ts +21 -0
- package/dist/src/fiat/providers/useHostedPageLoad.d.ts.map +1 -0
- package/dist/src/fiat/quote/quoteRefusal.d.ts +7 -1
- package/dist/src/fiat/quote/quoteRefusal.d.ts.map +1 -1
- package/dist/src/fiat/quote/quoteRouting.d.ts +2 -2
- package/dist/src/fiat/quote/quoteRouting.d.ts.map +1 -1
- package/dist/src/fiat/settlement/depositSettlement.d.ts +10 -1
- package/dist/src/fiat/settlement/depositSettlement.d.ts.map +1 -1
- package/dist/src/fiat/settlement/useDepositSettlement.d.ts +1 -1
- package/dist/src/fiat/settlement/useDepositSettlement.d.ts.map +1 -1
- package/dist/src/fiat/surface/actionSlot.d.ts +3 -1
- package/dist/src/fiat/surface/actionSlot.d.ts.map +1 -1
- package/dist/src/fiat/surface/stepSurface.d.ts +2 -1
- package/dist/src/fiat/surface/stepSurface.d.ts.map +1 -1
- package/dist/src/fiat/surface/surfaceRegistry.d.ts.map +1 -1
- package/dist/src/fiat/surface/useFailureAnnouncements.d.ts.map +1 -1
- package/dist/src/fiat/surface/useSurfaceAttempt.d.ts +3 -2
- package/dist/src/fiat/surface/useSurfaceAttempt.d.ts.map +1 -1
- package/dist/src/flow/CryptoAddressPage.d.ts +6 -2
- package/dist/src/flow/CryptoAddressPage.d.ts.map +1 -1
- package/dist/src/flow/CryptoDepositStep.d.ts +8 -6
- package/dist/src/flow/CryptoDepositStep.d.ts.map +1 -1
- package/dist/src/flow/CryptoLearnMorePage.d.ts +2 -1
- package/dist/src/flow/CryptoLearnMorePage.d.ts.map +1 -1
- package/dist/src/flow/CryptoListPage.d.ts +2 -1
- package/dist/src/flow/CryptoListPage.d.ts.map +1 -1
- package/dist/src/flow/CryptoNetworkPage.d.ts +2 -1
- package/dist/src/flow/CryptoNetworkPage.d.ts.map +1 -1
- package/dist/src/flow/CryptoTokenPage.d.ts +2 -1
- package/dist/src/flow/CryptoTokenPage.d.ts.map +1 -1
- package/dist/src/flow/DepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/DepositFlowContent.d.ts +3 -1
- package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
- package/dist/src/flow/DepositMatchSheet.d.ts.map +1 -1
- package/dist/src/flow/Drawer.d.ts +5 -1
- package/dist/src/flow/Drawer.d.ts.map +1 -1
- package/dist/src/flow/FeeDetailsSheet.d.ts +5 -0
- package/dist/src/flow/FeeDetailsSheet.d.ts.map +1 -1
- package/dist/src/flow/FiatDepositAmountStep.d.ts +3 -1
- package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/FlowDismissLock.d.ts +7 -2
- package/dist/src/flow/FlowDismissLock.d.ts.map +1 -1
- package/dist/src/flow/FlowSheet.d.ts +12 -0
- package/dist/src/flow/FlowSheet.d.ts.map +1 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts +16 -3
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/PaymentMethodPickerSheet.d.ts +6 -1
- package/dist/src/flow/PaymentMethodPickerSheet.d.ts.map +1 -1
- package/dist/src/flow/PaymentMethodRows.d.ts +1 -3
- package/dist/src/flow/PaymentMethodRows.d.ts.map +1 -1
- package/dist/src/flow/SheetMaterial.d.ts.map +1 -1
- package/dist/src/flow/WalletDepositStep.d.ts +22 -0
- package/dist/src/flow/WalletDepositStep.d.ts.map +1 -0
- package/dist/src/flow/cryptoDepositFlow.d.ts +3 -3
- package/dist/src/flow/cryptoDepositFlow.d.ts.map +1 -1
- package/dist/src/flow/depositFlowConfig.d.ts +67 -5
- package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
- package/dist/src/flow/depositMethods.d.ts +7 -0
- package/dist/src/flow/depositMethods.d.ts.map +1 -1
- package/dist/src/flow/fiatSubmitRenderer.d.ts.map +1 -1
- package/dist/src/flow/flowError.d.ts +5 -0
- package/dist/src/flow/flowError.d.ts.map +1 -1
- package/dist/src/flow/renderFiatFlowScreen.d.ts +14 -2
- package/dist/src/flow/renderFiatFlowScreen.d.ts.map +1 -1
- package/dist/src/flow/selectedChainStorage.d.ts.map +1 -1
- package/dist/src/flow/sheetSizing.d.ts +2 -2
- package/dist/src/flow/useFeeDetails.d.ts +5 -1
- package/dist/src/flow/useFeeDetails.d.ts.map +1 -1
- package/dist/src/flow/useWalletDeposit.d.ts +38 -0
- package/dist/src/flow/useWalletDeposit.d.ts.map +1 -0
- package/dist/src/flow/useWalletSceneTransition.d.ts +58 -0
- package/dist/src/flow/useWalletSceneTransition.d.ts.map +1 -0
- package/dist/src/hooks/track/events.d.ts +29 -3
- package/dist/src/hooks/track/events.d.ts.map +1 -1
- package/dist/src/hooks/track/feeDetailsProperties.d.ts +13 -0
- package/dist/src/hooks/track/feeDetailsProperties.d.ts.map +1 -0
- package/dist/src/hooks/track/flattenFeeBreakdown.d.ts +3 -0
- package/dist/src/hooks/track/flattenFeeBreakdown.d.ts.map +1 -0
- package/dist/src/hooks/track/useDepositFlowEvents.d.ts.map +1 -1
- package/dist/src/hooks/track/usePaymentButtonEvents.d.ts.map +1 -1
- package/dist/src/hooks/track/useTrackFiatDepositQuoteEvents.d.ts.map +1 -1
- package/dist/src/hooks/track/useTrackFiatPaymentEvents.d.ts +4 -1
- package/dist/src/hooks/track/useTrackFiatPaymentEvents.d.ts.map +1 -1
- package/dist/src/hooks/track/useTrackSessionAuthEvents.d.ts.map +1 -1
- package/dist/src/hooks/useAppActive.d.ts +7 -0
- package/dist/src/hooks/useAppActive.d.ts.map +1 -0
- package/dist/src/hooks/useGuardedAmountInput.d.ts +1 -1
- package/dist/src/hooks/useNestedSheetHeight.d.ts +2 -2
- package/dist/src/hooks/useNestedSheetHeight.d.ts.map +1 -1
- package/dist/src/hooks/useSettledOpacity.d.ts +3 -1
- package/dist/src/hooks/useSettledOpacity.d.ts.map +1 -1
- package/dist/src/icons/funIconUri.d.ts.map +1 -1
- package/dist/src/icons/kycArtwork.d.ts.map +1 -1
- package/dist/src/icons/phantomIcon.d.ts +2 -0
- package/dist/src/icons/phantomIcon.d.ts.map +1 -0
- package/dist/src/locales/i18n.d.ts +8 -8
- package/dist/src/locales/i18n.d.ts.map +1 -1
- package/dist/src/logging/datadogHttpLogTransport.d.ts.map +1 -1
- package/dist/src/preview/PreviewPaymentMethodPicker.d.ts +1 -0
- package/dist/src/preview/PreviewPaymentMethodPicker.d.ts.map +1 -1
- package/dist/src/preview/fixtures/kycForms.d.ts.map +1 -1
- package/dist/src/preview/flowPreview.d.ts +57 -4
- package/dist/src/preview/flowPreview.d.ts.map +1 -1
- package/dist/src/preview/previewFetch.d.ts +31 -2
- package/dist/src/preview/previewFetch.d.ts.map +1 -1
- package/dist/src/preview/replay/FunkitSessionReplay.d.ts +31 -0
- package/dist/src/preview/replay/FunkitSessionReplay.d.ts.map +1 -0
- package/dist/src/preview/replay/ReplaySurfaceStandIn.d.ts +22 -0
- package/dist/src/preview/replay/ReplaySurfaceStandIn.d.ts.map +1 -0
- package/dist/src/preview/replay/recordedStripeOnramp.d.ts +10 -0
- package/dist/src/preview/replay/recordedStripeOnramp.d.ts.map +1 -0
- package/dist/src/preview/replay/replayFetch.d.ts +27 -0
- package/dist/src/preview/replay/replayFetch.d.ts.map +1 -0
- package/dist/src/preview/scenarioCatalog.d.ts +422 -282
- package/dist/src/preview/scenarioCatalog.d.ts.map +1 -1
- package/dist/src/preview/scenarios.d.ts +9 -5
- package/dist/src/preview/scenarios.d.ts.map +1 -1
- package/dist/src/providers/FunkitProvider.d.ts +10 -1
- package/dist/src/providers/FunkitProvider.d.ts.map +1 -1
- package/dist/src/providers/FunkitStatsigProvider.d.ts +3 -3
- package/dist/src/providers/FunkitStatsigProvider.d.ts.map +1 -1
- package/dist/src/providers/FunkitStatsigWhnProvider.d.ts +1 -1
- package/dist/src/providers/NativeCapabilitiesContext.d.ts +13 -1
- package/dist/src/providers/NativeCapabilitiesContext.d.ts.map +1 -1
- package/dist/src/providers/useFunkitCheckout.d.ts +4 -1
- package/dist/src/providers/useFunkitCheckout.d.ts.map +1 -1
- package/dist/src/screens/DepositAmountScreen.d.ts +5 -2
- package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
- package/dist/src/screens/FeeDetailsScreen.d.ts +3 -1
- package/dist/src/screens/FeeDetailsScreen.d.ts.map +1 -1
- package/dist/src/screens/PaymentConfirmScreen.d.ts +16 -2
- package/dist/src/screens/PaymentConfirmScreen.d.ts.map +1 -1
- package/dist/src/screens/depositMetrics.d.ts +2 -0
- package/dist/src/screens/depositMetrics.d.ts.map +1 -1
- package/dist/src/statsig/StatsigClientRN.d.ts.map +1 -1
- package/dist/src/statsig/hostAppVersion.d.ts +2 -0
- package/dist/src/statsig/hostAppVersion.d.ts.map +1 -0
- package/dist/src/statsig/useDynamicConfig.d.ts.map +1 -1
- package/dist/src/statsig/useFunWhnStatsigAnalytics.d.ts.map +1 -1
- package/dist/src/theme/buildFunkitTheme.d.ts +49 -44
- package/dist/src/theme/buildFunkitTheme.d.ts.map +1 -1
- package/dist/src/theme/restyle.d.ts +1659 -1494
- package/dist/src/theme/restyle.d.ts.map +1 -1
- package/dist/src/theme/toRestyleTheme.d.ts +147 -132
- package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
- package/dist/src/theme/tokens.d.ts +2 -2
- package/dist/src/theme/tokens.d.ts.map +1 -1
- package/dist/src/theme/typeScale.d.ts +50 -20
- package/dist/src/theme/typeScale.d.ts.map +1 -1
- package/dist/src/utils/motion.d.ts.map +1 -1
- package/dist/src/withdrawal/useCryptoWithdrawalExecution.d.ts.map +1 -1
- package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts +9 -9
- package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts.map +1 -1
- package/dist/src/withdrawal/useCryptoWithdrawalQuote.d.ts.map +1 -1
- package/dist/src/withdrawal/useCryptoWithdrawalSubmit.d.ts.map +1 -1
- package/dist/src/withdrawal/useSourceTokenUsdPrice.d.ts.map +1 -1
- package/package.json +13 -12
- package/dist/chunk-K2VB5PT5.js.map +0 -7
- package/dist/chunk-R3RNNOBY.js.map +0 -7
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import type { FiatClientCapability } from '@funkit/api-base';
|
|
2
|
+
import { type FiatFlow, type FormValues, type JsonValue } from '@funkit/connect-core';
|
|
3
|
+
import type { StripeOnrampClient } from './stripeOnramp';
|
|
4
|
+
/**
|
|
5
|
+
* Where a Stripe form round stands on Apple Pay first:
|
|
6
|
+
* - `OFF`: not this round, or the sheet already opened for this purchase and the buyer dismissed it.
|
|
7
|
+
* - `ASK`: open the sheet before the form.
|
|
8
|
+
* - `COLLECTED`: the buyer approved it; `contact` fills the round under what we hold.
|
|
9
|
+
*/
|
|
10
|
+
export type ApplePayFirst = {
|
|
11
|
+
kind: 'OFF';
|
|
12
|
+
} | {
|
|
13
|
+
kind: 'ASK';
|
|
14
|
+
stripe: StripeOnrampClient;
|
|
15
|
+
subject: string;
|
|
16
|
+
quote: NonNullable<FiatFlow['quote']>;
|
|
17
|
+
} | {
|
|
18
|
+
kind: 'COLLECTED';
|
|
19
|
+
contact: FormValues;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* What a flow tells the server it can do. Only a host with a Stripe client can open the sheet, and
|
|
23
|
+
* the server enrolls no one else in the Apple Pay first experiment. Stable per client, as the flow needs.
|
|
24
|
+
*/
|
|
25
|
+
export declare function stripeClientCapabilities(stripe: StripeOnrampClient | undefined): readonly FiatClientCapability[];
|
|
26
|
+
/**
|
|
27
|
+
* Apple Pay opens before a round whose submit carries `paymentSheetFirst`: the backend's call, made
|
|
28
|
+
* for a first ask at Stripe's `l0` in its experiment's Test group. Never on a correction, since that
|
|
29
|
+
* form exists to fix values Stripe refused.
|
|
30
|
+
*/
|
|
31
|
+
export declare function applePayFirst({ stripe, subject, quote, stepResponse, params, selection, askedFor, }: {
|
|
32
|
+
stripe: StripeOnrampClient | undefined;
|
|
33
|
+
subject: string | undefined;
|
|
34
|
+
quote: FiatFlow['quote'];
|
|
35
|
+
stepResponse: FiatFlow['stepResponse'];
|
|
36
|
+
params: Record<string, JsonValue> | undefined;
|
|
37
|
+
/** This buyer's selection for this purchase, from `applePaySelectionFor`. */
|
|
38
|
+
selection: ApplePaySelection | undefined;
|
|
39
|
+
/** The purchase the sheet last opened for: without a selection, the buyer dismissed it. */
|
|
40
|
+
askedFor: string | undefined;
|
|
41
|
+
}): ApplePayFirst;
|
|
42
|
+
/** Apple Pay approved on the device before a form round, waiting for checkout to spend it. Never sent to the backend. */
|
|
43
|
+
export interface ApplePaySelection {
|
|
44
|
+
/** Whose selection it is: the contact is that buyer's name and address. */
|
|
45
|
+
subject: string;
|
|
46
|
+
/** The purchase it was made for, so an abandoned checkout's never fills the next one's form. */
|
|
47
|
+
quoteRef: string;
|
|
48
|
+
/** `undefined` for an amount `toCents` cannot read, which no pay sheet then matches. */
|
|
49
|
+
amountCents: number | undefined;
|
|
50
|
+
contact: FormValues;
|
|
51
|
+
}
|
|
52
|
+
export declare function applePaySelectionFor(stripe: StripeOnrampClient, subject: string, quoteRef: string): ApplePaySelection | undefined;
|
|
53
|
+
/** Checkout's take on the held selection; a dropped one names why it could not pay this sheet. */
|
|
54
|
+
export type ApplePaySelectionSpend = {
|
|
55
|
+
kind: 'SPENT';
|
|
56
|
+
selection: ApplePaySelection;
|
|
57
|
+
} | {
|
|
58
|
+
kind: 'NONE';
|
|
59
|
+
} | {
|
|
60
|
+
kind: 'DROPPED';
|
|
61
|
+
reason: 'quote_mismatch' | 'amount_mismatch';
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Spends the selection for a pay sheet of `amount` on purchase `quoteRef`. A selection from an abandoned checkout never pays another purchase, even
|
|
65
|
+
* one of the same amount: the buyer confirms each purchase on its own sheet. Single use: Stripe
|
|
66
|
+
* spends the selection on the token, so a second sheet must collect again.
|
|
67
|
+
*/
|
|
68
|
+
export declare function spendApplePaySelection(stripe: StripeOnrampClient, amount: string, quoteRef: string | undefined): ApplePaySelectionSpend;
|
|
69
|
+
export type ApplePaySelectionOutcome = {
|
|
70
|
+
kind: 'COLLECTED';
|
|
71
|
+
contact: FormValues;
|
|
72
|
+
} | {
|
|
73
|
+
kind: 'CANCELLED';
|
|
74
|
+
} | {
|
|
75
|
+
kind: 'FAILED';
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* Opens Apple Pay for the quote before a form round and holds the selection for checkout. Never
|
|
79
|
+
* throws: every outcome but a selection leaves the buyer on the form, as if nothing was offered.
|
|
80
|
+
*/
|
|
81
|
+
export declare function collectApplePaySelection(stripe: StripeOnrampClient, { subject, quoteRef, amount, currencyCode, }: {
|
|
82
|
+
subject: string;
|
|
83
|
+
quoteRef: string;
|
|
84
|
+
amount: string;
|
|
85
|
+
currencyCode: string;
|
|
86
|
+
}): Promise<ApplePaySelectionOutcome>;
|
|
87
|
+
//# sourceMappingURL=stripeApplePaySelection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stripeApplePaySelection.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/stripe/stripeApplePaySelection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AAC5D,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,KAAK,SAAS,EAGf,MAAM,sBAAsB,CAAA;AAO7B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAExD;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GACrB;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QAAQ,EAAE,MAAM,GACf,iBAAiB,GAAG,SAAS,CAK/B;AAED,kGAAkG;AAClG,MAAM,MAAM,sBAAsB,GAC9B;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,SAAS,EAAE,iBAAiB,CAAA;CAAE,GAC/C;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAChB;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,MAAM,EAAE,gBAAgB,GAAG,iBAAiB,CAAA;CAAE,CAAA;AAErE;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,kBAAkB,EAC1B,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,GAAG,SAAS,GAC3B,sBAAsB,CAcxB;AAED,MAAM,MAAM,wBAAwB,GAChC;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,OAAO,EAAE,UAAU,CAAA;CAAE,GAC1C;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,GACrB;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAA;AAEtB;;;GAGG;AACH,wBAAsB,wBAAwB,CAC5C,MAAM,EAAE,kBAAkB,EAC1B,EACE,OAAO,EACP,QAAQ,EACR,MAAM,EACN,YAAY,GACb,EAAE;IACD,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,MAAM,CAAA;CACrB,GACA,OAAO,CAAC,wBAAwB,CAAC,CA6DnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stripeCardRefusal.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/stripe/stripeCardRefusal.ts"],"names":[],"mappings":"AAoCA,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,
|
|
1
|
+
{"version":3,"file":"stripeCardRefusal.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/stripe/stripeCardRefusal.ts"],"names":[],"mappings":"AAoCA,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEzD;AAsBD,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEhE"}
|
|
@@ -7,7 +7,7 @@ import type { StripeOnrampClient } from './stripeOnramp';
|
|
|
7
7
|
* surface is Stripe's, and a second set of names for the same three SDK methods
|
|
8
8
|
* is a mapping to keep in sync for no gain.
|
|
9
9
|
*/
|
|
10
|
-
declare const STRIPE_KYC_CALLS: readonly [
|
|
10
|
+
declare const STRIPE_KYC_CALLS: readonly ['attachKycInfo', 'presentKycInfoVerification', 'verifyIdentity'];
|
|
11
11
|
type StripeKycCall = (typeof STRIPE_KYC_CALLS)[number];
|
|
12
12
|
export interface StripeKycReconciliation {
|
|
13
13
|
allowedCalls: readonly StripeKycCall[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stripeKyc.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/stripe/stripeKyc.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAM7D,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,YAAY,CAAA;AAKhE,OAAO,KAAK,EAAE,kBAAkB,EAAqB,MAAM,gBAAgB,CAAA;AAG3E;;;;;GAKG;AACH,QAAA,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"stripeKyc.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/stripe/stripeKyc.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAM7D,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,YAAY,CAAA;AAKhE,OAAO,KAAK,EAAE,kBAAkB,EAAqB,MAAM,gBAAgB,CAAA;AAG3E;;;;;GAKG;AACH,QAAA,MAAM,gBAAgB,YACpB,eAAe,EACf,4BAA4B,EAC5B,gBAAgB,CACR,CAAA;AACV,KAAK,aAAa,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAA;AAEtD,MAAM,WAAW,uBAAuB;IACtC,YAAY,EAAE,SAAS,aAAa,EAAE,CAAA;CACvC;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,OAAO,GACf,uBAAuB,GAAG,SAAS,CAkBrC;AAED,+EAA+E;AAC/E,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAM/D;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,kBAAkB,EAC1B,QAAQ,EAAE,MAAM,GAAG,SAAS,GAC3B,cAAc,CAsBhB;AAUD;;;;;GAKG;AACH;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,yBAAyB,CAAA;AAE1D;;;;;;;;;GASG;AACH,eAAO,MAAM,yBAAyB,8BAA8B,CAAA;AA2LpE;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,cAAc,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,EAC5C,IAAI,EAAE,QAAQ,GACb,OAAO,CAQT"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FormValues } from '@funkit/connect-core';
|
|
2
|
-
import type { StripeKycInfo } from './stripeOnramp';
|
|
2
|
+
import type { StripeKycInfo, StripeWalletContact } from './stripeOnramp';
|
|
3
3
|
/**
|
|
4
4
|
* A field round's answers as `attachKycInfo`'s argument, or `undefined` when the
|
|
5
5
|
* round carried none of them.
|
|
@@ -8,4 +8,10 @@ import type { StripeKycInfo } from './stripeOnramp';
|
|
|
8
8
|
* is the whole of what its field sheet would otherwise have asked for.
|
|
9
9
|
*/
|
|
10
10
|
export declare function stripeKycInfoFrom(values: FormValues): StripeKycInfo | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Apple Pay's contact as our form's field ids: `stripeKycInfoFrom` read backwards, plus the phone,
|
|
13
|
+
* which Stripe takes in `registerLinkUser` rather than `attachKycInfo`. Only the E.164 phone, since
|
|
14
|
+
* that call takes it as is; a phone the SDK could not normalise is left out, as are blanks.
|
|
15
|
+
*/
|
|
16
|
+
export declare function walletContactFormValues(contact: StripeWalletContact | undefined): FormValues;
|
|
11
17
|
//# sourceMappingURL=stripeKycInfo.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stripeKycInfo.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/stripe/stripeKycInfo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAa,MAAM,sBAAsB,CAAA;AAGjE,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"stripeKycInfo.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/stripe/stripeKycInfo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAa,MAAM,sBAAsB,CAAA;AAGjE,OAAO,KAAK,EAEV,aAAa,EACb,mBAAmB,EACpB,MAAM,gBAAgB,CAAA;AAsBvB;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,UAAU,GACjB,aAAa,GAAG,SAAS,CAe3B;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,mBAAmB,GAAG,SAAS,GACvC,UAAU,CAgBZ"}
|
|
@@ -83,13 +83,29 @@ export interface StripePlatformPayParams {
|
|
|
83
83
|
amount: string;
|
|
84
84
|
}>;
|
|
85
85
|
requiredBillingContactFields?: string[];
|
|
86
|
+
/** Apple Pay hands back the email and phone only from the shipping contact. */
|
|
87
|
+
requiredShippingAddressFields?: string[];
|
|
86
88
|
};
|
|
87
89
|
}
|
|
90
|
+
/**
|
|
91
|
+
* The wallet's contact, which SDK 0.82+ returns from a Platform Pay collection that asked for it
|
|
92
|
+
* (`kycInfo`). `phone` is E.164 when the SDK could normalise it; `rawPhone` is what the wallet held.
|
|
93
|
+
*/
|
|
94
|
+
export interface StripeWalletContact {
|
|
95
|
+
firstName?: string;
|
|
96
|
+
lastName?: string;
|
|
97
|
+
email?: string;
|
|
98
|
+
phone?: string;
|
|
99
|
+
rawPhone?: string;
|
|
100
|
+
address?: StripeKycAddress;
|
|
101
|
+
}
|
|
88
102
|
export type StripeVoidResult = {
|
|
89
103
|
error?: StripeOnrampError;
|
|
90
104
|
};
|
|
91
105
|
export type StripeCollectPaymentMethodResult = {
|
|
92
106
|
displayData?: unknown;
|
|
107
|
+
/** Absent on an SDK older than 0.82, and when the collection asked for no contact. */
|
|
108
|
+
kycInfo?: StripeWalletContact;
|
|
93
109
|
error?: StripeOnrampError;
|
|
94
110
|
};
|
|
95
111
|
export type StripeCreateCryptoPaymentTokenResult = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stripeOnramp.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/stripe/stripeOnramp.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAE1C;;;;;;GAMG;AACH,MAAM,WAAW,kBAAkB;IACjC,6EAA6E;IAC7E,cAAc,CAAC,EAAE,aAAa,CAAC,yBAAyB,CAAC,CAAA;IACzD,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,0BAA0B,CAAC,CAAA;IACtE,gBAAgB,EAAE,CAChB,IAAI,EAAE,sBAAsB,KACzB,OAAO,CAAC,4BAA4B,CAAC,CAAA;IAC1C,SAAS,EAAE,CAAC,gBAAgB,EAAE,MAAM,KAAK,OAAO,CAAC,qBAAqB,CAAC,CAAA;IACvE,yBAAyB,EAAE,CACzB,yBAAyB,EAAE,MAAM,KAC9B,OAAO,CAAC,gBAAgB,CAAC,CAAA;IAC9B,aAAa,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,OAAO,CAAC,gBAAgB,CAAC,CAAA;IACjE;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AAC,KAAK,EAAE,iBAAiB,CAAA;CAAE,CAAA;AAE5D,MAAM,MAAM,4BAA4B,GACpC;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,SAAS,CAAA;CAAE,GACzC;IAAE,UAAU,CAAC,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,iBAAiB,CAAA;CAAE,CAAA;AAExD,MAAM,MAAM,qBAAqB,GAC7B;IAAE,MAAM,EAAE,WAAW,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,SAAS,CAAA;CAAE,GAC9D;IAAE,MAAM,EAAE,QAAQ,CAAC;IAAC,UAAU,CAAC,EAAE,SAAS,CAAC;IAAC,KAAK,CAAC,EAAE,SAAS,CAAA;CAAE,GAC/D;IAAE,MAAM,CAAC,EAAE,SAAS,CAAC;IAAC,UAAU,CAAC,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,iBAAiB,CAAA;CAAE,CAAA"}
|
|
@@ -10,6 +10,16 @@ interface StripePayParams {
|
|
|
10
10
|
amount: string;
|
|
11
11
|
label?: string;
|
|
12
12
|
}
|
|
13
|
+
/** What the device brings to a tap beside the backend's sheet. */
|
|
14
|
+
export interface StripeApplePayTap {
|
|
15
|
+
/**
|
|
16
|
+
* The flow's quote this sheet pays for. The backend's sheet names none, and an Apple Pay
|
|
17
|
+
* selection pays only the purchase it was made for (`spendApplePaySelection`).
|
|
18
|
+
*/
|
|
19
|
+
quoteRef?: string;
|
|
20
|
+
seamlessClientSecret?: string;
|
|
21
|
+
seamlessExpiresAtMs?: number;
|
|
22
|
+
}
|
|
13
23
|
export declare function matchStripePayParams(surface: Surface): StripePayParams | undefined;
|
|
14
24
|
/**
|
|
15
25
|
* The buyer dismissed the provider's sheet.
|
|
@@ -22,11 +32,11 @@ export declare function matchStripePayParams(surface: Surface): StripePayParams
|
|
|
22
32
|
*/
|
|
23
33
|
export declare const STRIPE_PAYMENT_CANCELLED = "collect_apple_pay:cancelled";
|
|
24
34
|
/** Stripe's real native sheet, deliberately restricted to Apple Pay. */
|
|
25
|
-
export declare function stripePaymentAdapter(stripe: StripeOnrampClient, response?: object): SurfaceAdapter;
|
|
35
|
+
export declare function stripePaymentAdapter(stripe: StripeOnrampClient, response?: object, quoteRef?: string): SurfaceAdapter;
|
|
26
36
|
export declare function stripePaymentReport(token: string): {
|
|
27
37
|
cryptoPaymentToken: string;
|
|
28
38
|
};
|
|
29
39
|
export declare function stripePaymentErrorCode(error: unknown): string;
|
|
30
|
-
export declare function collectApplePay(stripe: StripeOnrampClient, params: StripePayParams, seamlessClientSecret
|
|
40
|
+
export declare function collectApplePay(stripe: StripeOnrampClient, params: StripePayParams, { quoteRef, seamlessClientSecret, seamlessExpiresAtMs, }?: StripeApplePayTap): Promise<string>;
|
|
31
41
|
export {};
|
|
32
42
|
//# sourceMappingURL=stripePayment.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stripePayment.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/stripe/stripePayment.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAMnD,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,YAAY,CAAA;AAChE,OAAO,KAAK,EACV,kBAAkB,EAEnB,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"stripePayment.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/stripe/stripePayment.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAMnD,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,YAAY,CAAA;AAChE,OAAO,KAAK,EACV,kBAAkB,EAEnB,MAAM,gBAAgB,CAAA;AAcvB,UAAU,eAAe;IACvB,MAAM,EAAE,6BAA6B,CAAA;IACrC,aAAa,EAAE,MAAM,CAAA;IACrB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,mBAAmB,EAAE,MAAM,CAAA;IAC3B,YAAY,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,kEAAkE;AAClE,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAA;CAC7B;AAED,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,OAAO,GACf,eAAe,GAAG,SAAS,CA4B7B;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,wBAAwB,gCAAgC,CAAA;AAErE,wEAAwE;AACxE,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,kBAAkB,EAC1B,QAAQ,CAAC,EAAE,MAAM,EACjB,QAAQ,CAAC,EAAE,MAAM,GAChB,cAAc,CAgChB;AA0ED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM;IACtC,kBAAkB;EAC5B;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAoC7D;AA6BD,wBAAsB,eAAe,CACnC,MAAM,EAAE,kBAAkB,EAC1B,MAAM,EAAE,eAAe,EACvB,EACE,QAAQ,EACR,oBAAoB,EACpB,mBAAmB,GACpB,GAAE,iBAAsB,GACxB,OAAO,CAAC,MAAM,CAAC,CAyKjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stripeSessionAuth.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/stripe/stripeSessionAuth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,gBAAgB,EAChB,OAAO,EACP,aAAa,EACd,MAAM,sBAAsB,CAAA;AAE7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAG9E,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,gBAAgB,CAAA;IAC5B,aAAa,EAAE,MAAM,CAAA;CACtB;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,gBAAgB,GAAG,SAAS,EAClC,IAAI,EAAE,SAAS,gBAAgB,EAAE,GAChC,sBAAsB,GAAG,SAAS,CA0BpC;AAED,MAAM,MAAM,iBAAiB,GACzB;IAAE,MAAM,EAAE,WAAW,CAAC;IAAC,gBAAgB,EAAE,MAAM,CAAA;CAAE,GACjD;IACE,MAAM,EAAE,yBAAyB,CAAA;IACjC,yBAAyB,EAAE,MAAM,CAAA;CAClC,CAAA;AAEL,qFAAqF;AACrF,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,OAAO,GACf,iBAAiB,GAAG,SAAS,CAqB/B;AAED;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,
|
|
1
|
+
{"version":3,"file":"stripeSessionAuth.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/stripe/stripeSessionAuth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,gBAAgB,EAChB,OAAO,EACP,aAAa,EACd,MAAM,sBAAsB,CAAA;AAE7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAG9E,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,gBAAgB,CAAA;IAC5B,aAAa,EAAE,MAAM,CAAA;CACtB;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,gBAAgB,GAAG,SAAS,EAClC,IAAI,EAAE,SAAS,gBAAgB,EAAE,GAChC,sBAAsB,GAAG,SAAS,CA0BpC;AAED,MAAM,MAAM,iBAAiB,GACzB;IAAE,MAAM,EAAE,WAAW,CAAC;IAAC,gBAAgB,EAAE,MAAM,CAAA;CAAE,GACjD;IACE,MAAM,EAAE,yBAAyB,CAAA;IACjC,yBAAyB,EAAE,MAAM,CAAA;CAClC,CAAA;AAEL,qFAAqF;AACrF,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,OAAO,GACf,iBAAiB,GAAG,SAAS,CAqB/B;AAED;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,kBACpB,OAAO,KACrB,aAED,CAAA;AAEF;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,qBAAqB,GAC5B,aAAa,GAAG,SAAS,CAa3B;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAEvE"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type FiatFlow } from '@funkit/connect-core';
|
|
2
|
+
import { type ApplePayFirst } from './stripeApplePaySelection';
|
|
3
|
+
import type { StripeOnrampClient } from './stripeOnramp';
|
|
4
|
+
/**
|
|
5
|
+
* Where the flow's Stripe round stands on Apple Pay first. The selection is read on every render
|
|
6
|
+
* rather than held in state: it lives with the SDK client, so a later round of the same purchase
|
|
7
|
+
* fills from it without opening the sheet again. `markAsked` records that the sheet opened for a
|
|
8
|
+
* purchase, so a buyer who dismissed it is asked once per purchase, not once per response.
|
|
9
|
+
*/
|
|
10
|
+
export declare function useApplePayFirst(flow: FiatFlow, stripe: StripeOnrampClient | undefined, subject: string | undefined): {
|
|
11
|
+
state: ApplePayFirst;
|
|
12
|
+
markAsked: (quoteRef: string) => void;
|
|
13
|
+
};
|
|
14
|
+
/** Opens Apple Pay once from where the busy screen mounts it, then hands the round on. */
|
|
15
|
+
export declare function CollectApplePaySelection({ ask: { stripe, subject, quote }, onDone, }: {
|
|
16
|
+
ask: Extract<ApplePayFirst, {
|
|
17
|
+
kind: 'ASK';
|
|
18
|
+
}>;
|
|
19
|
+
/** Called once the sheet closes, with or without a selection. */
|
|
20
|
+
onDone: () => void;
|
|
21
|
+
}): null;
|
|
22
|
+
//# sourceMappingURL=useApplePayFirst.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useApplePayFirst.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/stripe/useApplePayFirst.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAkB,MAAM,sBAAsB,CAAA;AAIpE,OAAO,EACL,KAAK,aAAa,EAInB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAExD;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,QAAQ,EACd,MAAM,EAAE,kBAAkB,GAAG,SAAS,EACtC,OAAO,EAAE,MAAM,GAAG,SAAS,GAC1B;IAAE,KAAK,EAAE,aAAa,CAAC;IAAC,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;CAAE,CAiBjE;AAED,0FAA0F;AAC1F,wBAAgB,wBAAwB,CAAC,EACvC,GAAG,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EAC/B,MAAM,GACP,EAAE;IACD,GAAG,EAAE,OAAO,CAAC,aAAa,EAAE;QAAE,IAAI,EAAE,KAAK,CAAA;KAAE,CAAC,CAAA;IAC5C,iEAAiE;IACjE,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB,QAqBA"}
|
|
@@ -5,6 +5,8 @@ import { type ReactElement, type ReactNode } from 'react';
|
|
|
5
5
|
* joined in, so the form asks only for the rest; `registerWith` is set when together they answer
|
|
6
6
|
* every field, so no form is needed at all. What the buyer typed this session outranks what is
|
|
7
7
|
* already known, in both: a correction made on an earlier round must reach Stripe, not the stored value.
|
|
8
|
+
* `deviceValues` (an Apple Pay contact) rank last, under what the backend holds; they alone can
|
|
9
|
+
* complete a round, so a buyer we hold nothing for still registers without the form.
|
|
8
10
|
*
|
|
9
11
|
* Bound to the subject the response arrived under. A host can switch users while that response is
|
|
10
12
|
* still on screen, and the carry-over once put one buyer's details in front of the next that way, so
|
|
@@ -13,7 +15,7 @@ import { type ReactElement, type ReactNode } from 'react';
|
|
|
13
15
|
* `screen` draws the round: see `CreateStripeAccountScreen`. Its attempt is held here, above the
|
|
14
16
|
* screen, because the screen it draws while registering is the amount screen and not a page of its own.
|
|
15
17
|
*/
|
|
16
|
-
export declare function useCreateStripeAccountWithExistingUserData(stepResponse: FiatFlow['stepResponse'], params: Record<string, JsonValue> | undefined, subject: string | undefined, carried: FormValues): {
|
|
18
|
+
export declare function useCreateStripeAccountWithExistingUserData(stepResponse: FiatFlow['stepResponse'], params: Record<string, JsonValue> | undefined, subject: string | undefined, carried: FormValues, deviceValues?: FormValues): {
|
|
17
19
|
carried: FormValues;
|
|
18
20
|
registerWith?: FormValues;
|
|
19
21
|
screen: (props: CreateStripeAccountScreen) => ReactElement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCreateStripeAccountWithExistingUserData.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/stripe/useCreateStripeAccountWithExistingUserData.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,KAAK,SAAS,EAGf,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,SAAS,EAIf,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"useCreateStripeAccountWithExistingUserData.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/stripe/useCreateStripeAccountWithExistingUserData.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,KAAK,SAAS,EAGf,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,SAAS,EAIf,MAAM,OAAO,CAAA;AAed;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,0CAA0C,CACxD,YAAY,EAAE,QAAQ,CAAC,cAAc,CAAC,EACtC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,SAAS,EAC7C,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,OAAO,EAAE,UAAU,EACnB,YAAY,CAAC,EAAE,UAAU,GACxB;IACD,OAAO,EAAE,UAAU,CAAA;IACnB,YAAY,CAAC,EAAE,UAAU,CAAA;IACzB,MAAM,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,YAAY,CAAA;CAC3D,CA0EA;AAED;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC,4FAA4F;IAC5F,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,MAAM,EAAE,UAAU,CAAA;IAClB,8EAA8E;IAC9E,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAA;IACxC,0DAA0D;IAC1D,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,MAAM,EAAE,OAAO,CAAA;IACf;;;OAGG;IACH,gBAAgB,EAAE,CAAC,SAAS,EAAE,SAAS,KAAK,YAAY,CAAA;IACxD,IAAI,EAAE,YAAY,CAAA;CACnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStripeOnrampClient.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/stripe/useStripeOnrampClient.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAE5C;;;;;;GAMG;AACH,MAAM,WAAW,kBAAkB;IACjC,sEAAsE;IACtE,cAAc,EAAE,MAAM,CAAA;IACtB,wEAAwE;IACxE,mBAAmB,EAAE,MAAM,CAAA;IAC3B;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,sEAAsE;IACtE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAcD,wBAAgB,qBAAqB,CACnC,EACE,UAAU,EACV,sBAAsB,EACtB,SAAS,EACT,WAAW,EACX,iBAAiB,GAClB,EAAE,SAAS,EACZ,MAAM,EAAE,kBAAkB,GACzB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"useStripeOnrampClient.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/stripe/useStripeOnrampClient.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAE5C;;;;;;GAMG;AACH,MAAM,WAAW,kBAAkB;IACjC,sEAAsE;IACtE,cAAc,EAAE,MAAM,CAAA;IACtB,wEAAwE;IACxE,mBAAmB,EAAE,MAAM,CAAA;IAC3B;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,sEAAsE;IACtE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAcD,wBAAgB,qBAAqB,CACnC,EACE,UAAU,EACV,sBAAsB,EACtB,SAAS,EACT,WAAW,EACX,iBAAiB,GAClB,EAAE,SAAS,EACZ,MAAM,EAAE,kBAAkB,GACzB,kBAAkB,CAiLpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStripeSessionAuth.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/stripe/useStripeSessionAuth.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EAEtB,MAAM,sBAAsB,CAAA;AAO7B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAExD,0DAA0D;AAC1D,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,kBAAkB,CAAA;IAC1B,aAAa,EAAE,MAAM,CAAA;IACrB,UAAU,EAAE,gBAAgB,CAAA;IAC5B,QAAQ,EAAE,CAAC,UAAU,EAAE,gBAAgB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CAC1D;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB;;;
|
|
1
|
+
{"version":3,"file":"useStripeSessionAuth.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/stripe/useStripeSessionAuth.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EAEtB,MAAM,sBAAsB,CAAA;AAO7B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAExD,0DAA0D;AAC1D,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,kBAAkB,CAAA;IAC1B,aAAa,EAAE,MAAM,CAAA;IACrB,UAAU,EAAE,gBAAgB,CAAA;IAC5B,QAAQ,EAAE,CAAC,UAAU,EAAE,gBAAgB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CAC1D;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB;;;IAyHhC;;;OAGG;uBACgB,sBAAsB;mBAjBjC,sBAAsB;0BAqBR,sBAAsB;EAE/C;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,QAM5E;AAED,8EAA8E;AAC9E,wBAAgB,oBAAoB,CAClC,aAAa,EAAE,MAAM,IAAI,EACzB,IAAI,EAAE,QAAQ,EACd,QAAQ,EAAE,gBAAgB,GAAG,SAAS,EACtC,QAAQ,EAAE,YAAY,GAAG,SAAS;;;;QA7BhC;;;WAGG;2BACgB,sBAAsB;uBAjBjC,sBAAsB;8BAqBR,sBAAsB;;;8BA6Bb,OAAO,CAAC,OAAO,CAAC;;EAsBlD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStripeState.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/stripe/useStripeState.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,QAAQ,EAEd,MAAM,sBAAsB,CAAA;AAQ7B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAGxD,gFAAgF;AAChF,wBAAgB,cAAc,CAC5B,IAAI,EAAE,QAAQ,EACd,YAAY,EAAE,kBAAkB,GAAG,SAAS;;
|
|
1
|
+
{"version":3,"file":"useStripeState.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/stripe/useStripeState.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,QAAQ,EAEd,MAAM,sBAAsB,CAAA;AAQ7B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAGxD,gFAAgF;AAChF,wBAAgB,cAAc,CAC5B,IAAI,EAAE,QAAQ,EACd,YAAY,EAAE,kBAAkB,GAAG,SAAS;;EAwD7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sumsubKyc.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/sumsub/sumsubKyc.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAenD,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"sumsubKyc.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/sumsub/sumsubKyc.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAenD,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,YAAY,CAAA;AAahE,yEAAyE;AACzE,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;AAe1D;;;;;;GAMG;AACH;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,UAAU,EACtB,oBAAoB,CAAC,EAAE,MAAM,IAAI,GAChC,cAAc,CAWhB;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAO/D;AAED,4DAA4D;AAC5D,eAAO,MAAM,SAAS,EAAE,cAEvB,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The load of a hosted button page: times out a page that never reports itself
|
|
3
|
+
* ready, and fails it once however many ways it dies.
|
|
4
|
+
*
|
|
5
|
+
* - a dead page can report a load error, a killed process and a timeout; each
|
|
6
|
+
* would otherwise fail the surface again
|
|
7
|
+
* - the timer covers the load only: once the button is up, the wait is the user's
|
|
8
|
+
*/
|
|
9
|
+
export declare function useHostedPageLoad({ timeoutEvent, environment, onFailed, }: {
|
|
10
|
+
/** Log key for the timeout, kept per provider for its dashboards. */
|
|
11
|
+
timeoutEvent: string;
|
|
12
|
+
environment: string;
|
|
13
|
+
onFailed: (code: string) => void;
|
|
14
|
+
}): {
|
|
15
|
+
failLoad: (code: string) => void;
|
|
16
|
+
/** The page reported itself ready: stop timing the load. */
|
|
17
|
+
markLoaded: () => void;
|
|
18
|
+
/** A new page load: its failure is reported again. */
|
|
19
|
+
restartLoad: () => void;
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=useHostedPageLoad.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useHostedPageLoad.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/useHostedPageLoad.ts"],"names":[],"mappings":"AAQA;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,YAAY,EACZ,WAAW,EACX,QAAQ,GACT,EAAE;IACD,qEAAqE;IACrE,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;CACjC,GAAG;IACF,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IAChC,4DAA4D;IAC5D,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,sDAAsD;IACtD,WAAW,EAAE,MAAM,IAAI,CAAA;CACxB,CA4BA"}
|
|
@@ -18,6 +18,12 @@ export declare function showPaymentUnavailableAlert(t: TFunction, applePay: bool
|
|
|
18
18
|
export declare function showQuoteRefusalAlert(error: FailureReason, t: TFunction, scheme?: 'light' | 'dark'): void;
|
|
19
19
|
/** The error a step response carries back onto the quote, if it does. */
|
|
20
20
|
export declare function quoteRefusal(stepResponse: FiatStepResponse | undefined): FailureReason | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* The error a step response carries back onto the entry: the quote's, or a
|
|
23
|
+
* Fun login re-asking for the email (`FUN_AUTH` IDENTIFIER, e.g.
|
|
24
|
+
* INVALID_EMAIL), which the contact round wears like a refused contact.
|
|
25
|
+
*/
|
|
26
|
+
export declare function entryRefusal(stepResponse: FiatStepResponse | undefined): FailureReason | undefined;
|
|
21
27
|
/**
|
|
22
28
|
* A refusal for asking to spend more than this buyer may.
|
|
23
29
|
*
|
|
@@ -47,5 +53,5 @@ export declare function hasOverLimitCeiling(stepResponse: FiatStepResponse | und
|
|
|
47
53
|
} | undefined, amount: string): boolean;
|
|
48
54
|
export declare function quoteRefusalAlert(error: FailureReason, t: TFunction): QuoteRefusalAlert;
|
|
49
55
|
/** Select the contact-screen recovery, if the refusal belongs on that screen. */
|
|
50
|
-
export declare function contactRefusal(error: FailureReason | undefined): 'reverify' | 'change' | 'rate-limited' | undefined;
|
|
56
|
+
export declare function contactRefusal(error: FailureReason | undefined): 'reverify' | 'change' | 'rate-limited' | 'expired' | undefined;
|
|
51
57
|
//# sourceMappingURL=quoteRefusal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quoteRefusal.d.ts","sourceRoot":"","sources":["../../../../src/fiat/quote/quoteRefusal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CA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AAKxC;;;;;;;;;GASG;AACH,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,wBAAgB,2BAA2B,CACzC,CAAC,EAAE,SAAS,EACZ,QAAQ,EAAE,OAAO,EACjB,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,QAa1B;AAED,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,aAAa,EACpB,CAAC,EAAE,SAAS,EACZ,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,QAe1B;AAED,yEAAyE;AACzE,wBAAgB,YAAY,CAC1B,YAAY,EAAE,gBAAgB,GAAG,SAAS,GACzC,aAAa,GAAG,SAAS,CAG3B;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAC1B,YAAY,EAAE,gBAAgB,GAAG,SAAS,GACzC,aAAa,GAAG,SAAS,CAM3B;AAED;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO,CAKzD;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,CACjC,YAAY,EAAE,gBAAgB,GAAG,SAAS,EAC1C,cAAc,EAAE;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,EAC9C,MAAM,EAAE,MAAM,GACb,OAAO,CAgBT;AAED,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,aAAa,EACpB,CAAC,EAAE,SAAS,GACX,iBAAiB,CA2BnB;AAED,iFAAiF;AACjF,wBAAgB,cAAc,CAC5B,KAAK,EAAE,aAAa,GAAG,SAAS,GAC/B,UAAU,GAAG,QAAQ,GAAG,cAAc,GAAG,SAAS,GAAG,SAAS,CAehE"}
|
|
@@ -35,7 +35,7 @@ export declare function useBlockedState(flow: FiatFlow, fiat: FiatRailConfig, qu
|
|
|
35
35
|
quotedRound: import("@funkit/connect-core").FiatStepResponse | undefined;
|
|
36
36
|
resolvedStep: import("@funkit/connect-core").FiatStepResponse | undefined;
|
|
37
37
|
blockedState: {
|
|
38
|
-
kind:
|
|
38
|
+
kind: 'BLOCKED';
|
|
39
39
|
reason: import("@fun-xyz/fiat-contract/types").BlockedReason;
|
|
40
40
|
retryAfter?: string | null;
|
|
41
41
|
error?: FailureReason;
|
|
@@ -43,7 +43,7 @@ export declare function useBlockedState(flow: FiatFlow, fiat: FiatRailConfig, qu
|
|
|
43
43
|
paymentUnavailable: boolean;
|
|
44
44
|
};
|
|
45
45
|
/** A refusal the quote comes back with, and whether it is announced. */
|
|
46
|
-
export declare function useQuoteRefusal({ alertScheme, amount, contact: { contactFailure, phoneReverify }, flow, flowQuoteExpired, quoteState, refusal, }: {
|
|
46
|
+
export declare function useQuoteRefusal({ alertScheme, amount, contact: { contactFailure, contactExpired, phoneReverify }, flow, flowQuoteExpired, quoteState, refusal, }: {
|
|
47
47
|
alertScheme: 'light' | 'dark';
|
|
48
48
|
amount: string;
|
|
49
49
|
contact: ReturnType<typeof useContact>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quoteRouting.d.ts","sourceRoot":"","sources":["../../../../src/fiat/quote/quoteRouting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAA;AAEzE,OAAO,KAAK,EACV,aAAa,EACb,QAAQ,EACR,YAAY,EACZ,kBAAkB,EACnB,MAAM,sBAAsB,CAAA;AAe7B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAYlE,OAAO,EACL,KAAK,gBAAgB,EAEtB,MAAM,6BAA6B,CAAA;AAGpC,OAAO,EAIL,YAAY,EAGb,MAAM,gBAAgB,CAAA;AAEvB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAEzD,wBAAgB,iBAAiB;;;;;;;;;EAqDhC;AAID,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,cAAc,EACpB,SAAS,EAAE,SAAS,gBAAgB,E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kB;;EAgB/B"}
|
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
import type { FiatFlow, Quote } from '@funkit/connect-core';
|
|
1
|
+
import type { FiatFlow, FiatStepResponse, Quote } from '@funkit/connect-core';
|
|
2
2
|
import type { DepositMethod } from '../../flow/depositFlowConfig';
|
|
3
|
+
/**
|
|
4
|
+
* Whether the buyer may already have been charged, or has an order already
|
|
5
|
+
* open: a pay sheet reported its capture, or the flow is on a payment, a
|
|
6
|
+
* placed or pending order, or its delivery.
|
|
7
|
+
* - A review still awaiting confirmation has taken nothing yet.
|
|
8
|
+
* - A pending order is one the buyer already placed: a fresh entry would offer
|
|
9
|
+
* a second deposit over it.
|
|
10
|
+
*/
|
|
11
|
+
export declare function isPaymentUnderway(stepResponse: FiatStepResponse | undefined, capturedPayment: boolean): boolean;
|
|
3
12
|
/**
|
|
4
13
|
* The order's id, wherever the response put it: the contract leaves the
|
|
5
14
|
* placement open between the envelope and the order the state carries.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"depositSettlement.d.ts","sourceRoot":"","sources":["../../../../src/fiat/settlement/depositSettlement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"depositSettlement.d.ts","sourceRoot":"","sources":["../../../../src/fiat/settlement/depositSettlement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAE7E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;AAEjE;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAC/B,YAAY,EAAE,gBAAgB,GAAG,SAAS,EAC1C,eAAe,EAAE,OAAO,GACvB,OAAO,CAgBT;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,CAY5D;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CACtB,IAAI,EAAE,QAAQ,EACd,KAAK,EAAE,KAAK,GAAG,SAAS,EACxB,OAAO,EAAE,MAAM,GACd,KAAK,CAAC,MAAM,CAAC,CAQf;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,aAAa,EAAE,MAAM,GACpB,aAAa,CAAC,MAAM,CAAC,GAAG,SAAS,CAInC"}
|
|
@@ -33,7 +33,7 @@ export declare function useDepositSettlement({ providerSettled, setProviderSettl
|
|
|
33
33
|
isAwaitingSettlement: boolean;
|
|
34
34
|
landsOnCard: boolean;
|
|
35
35
|
markProviderPaymentFailed: (code: string) => void;
|
|
36
|
-
markProviderSettled: (settlement?:
|
|
36
|
+
markProviderSettled: (settlement?: 'PAID') => void;
|
|
37
37
|
setLandingShown: Dispatch<SetStateAction<boolean>>;
|
|
38
38
|
};
|
|
39
39
|
//# sourceMappingURL=useDepositSettlement.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDepositSettlement.d.ts","sourceRoot":"","sources":["../../../../src/fiat/settlement/useDepositSettlement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAGpD,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,cAAc,EAIpB,MAAM,OAAO,CAAA;AACd,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAClE,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"useDepositSettlement.d.ts","sourceRoot":"","sources":["../../../../src/fiat/settlement/useDepositSettlement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAGpD,OAAO,EACL,KAAK,QAAQ,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,CAAA;IACzC,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,UAAU,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,CAAA;IAC5C,aAAa,EAAE,cAAc,GAAG,SAAS,CAAA;IACzC,IAAI,EAAE,cAAc,CAAA;IACpB,IAAI,EAAE,QAAQ,CAAA;IACd,QAAQ,EAAE,OAAO,CAAA;IACjB,OAAO,EAAE,sBAAsB,CAAA;IAC/B,eAAe,EAAE,eAAe,CAAA;IAChC,yBAAyB,EAAE,QAAQ,CACjC,cAAc,CAAC,cAAc,GAAG,SAAS,CAAC,CAC3C,CAAA;IACD,YAAY,EAAE,YAAY,CAAA;CAC3B;;;;sCAqB0C,MAAM;uCAbL,MAAM;;EAuOjD"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { FiatFlow, FiatProvider, Surface, SurfaceTransition } from '@funkit/connect-core';
|
|
2
2
|
import type { ApplePayReadinessTiming, ReadySurface, SurfaceReadiness } from '../providers/adapter';
|
|
3
3
|
export declare function captureReadiness(onReady: () => void, timing: ApplePayReadinessTiming | undefined, declare: (surface: ReadySurface) => void): (info?: SurfaceReadiness) => void;
|
|
4
|
-
export declare const SURFACE_MATCHED_SIZE:
|
|
4
|
+
export declare const SURFACE_MATCHED_SIZE: 'buttonLg';
|
|
5
5
|
/** For provider surfaces that stay covered while they sign in or price. */
|
|
6
6
|
export declare const PROVIDER_READY_CEILING_MS = 30000;
|
|
7
7
|
export declare const COINBASE_READY_CEILING_MS = 65000;
|
|
8
|
+
/** How long an inline payment button may stay covered; `undefined` keeps the slot's default. */
|
|
9
|
+
export declare function inlineReadyCeilingMs(provider: Surface['provider']): number | undefined;
|
|
8
10
|
export declare function useHeldSlot(liveSlot: EmbeddedSlot | undefined): {
|
|
9
11
|
heldSlot: EmbeddedSlot | undefined;
|
|
10
12
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actionSlot.d.ts","sourceRoot":"","sources":["../../../../src/fiat/surface/actionSlot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,YAAY,EACZ,OAAO,EACP,iBAAiB,EAClB,MAAM,sBAAsB,CAAA;AAI7B,OAAO,KAAK,EACV,uBAAuB,EACvB,YAAY,EACZ,gBAAgB,EACjB,MAAM,sBAAsB,CAAA;AAG7B,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,MAAM,IAAI,EACnB,MAAM,EAAE,uBAAuB,GAAG,SAAS,EAC3C,OAAO,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,IAAI,GACvC,CAAC,IAAI,CAAC,EAAE,gBAAgB,KAAK,IAAI,CAQnC;AAED,eAAO,MAAM,oBAAoB,EAAG,UAAmB,CAAA;AAEvD,2EAA2E;AAC3E,eAAO,MAAM,yBAAyB,QAAS,CAAA;AAE/C,eAAO,MAAM,yBAAyB,QAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"actionSlot.d.ts","sourceRoot":"","sources":["../../../../src/fiat/surface/actionSlot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,YAAY,EACZ,OAAO,EACP,iBAAiB,EAClB,MAAM,sBAAsB,CAAA;AAI7B,OAAO,KAAK,EACV,uBAAuB,EACvB,YAAY,EACZ,gBAAgB,EACjB,MAAM,sBAAsB,CAAA;AAG7B,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,MAAM,IAAI,EACnB,MAAM,EAAE,uBAAuB,GAAG,SAAS,EAC3C,OAAO,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,IAAI,GACvC,CAAC,IAAI,CAAC,EAAE,gBAAgB,KAAK,IAAI,CAQnC;AAED,eAAO,MAAM,oBAAoB,EAAG,UAAmB,CAAA;AAEvD,2EAA2E;AAC3E,eAAO,MAAM,yBAAyB,QAAS,CAAA;AAE/C,eAAO,MAAM,yBAAyB,QAAS,CAAA;AAa/C,gGAAgG;AAChG,wBAAgB,oBA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AG,SAAS,CAAA;IACjC,cAAc,EAAE,MAAM,CAAA;CACvB,GAAG,YAAY,GAAG,SAAS,CAgB3B"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { FiatFlow, FiatProvider, SurfaceResult, SurfaceTransition, UseFiatQuoteResult } from '@funkit/connect-core';
|
|
2
2
|
import { type StepSurfaces, type SurfaceFailure } from '../../flow/screenBundles';
|
|
3
|
+
import type { PaymentAnalytics } from '../../hooks/track/usePaymentButtonEvents';
|
|
3
4
|
import type { DepositOutcomeReporter } from '../settlement/depositOutcome';
|
|
4
5
|
import { useStripeState } from '../providers/stripe/useStripeState';
|
|
5
6
|
import { type PaymentFailureSource } from '../payment/usePaymentFailureAnswer';
|
|
6
7
|
import type { PaymentAttempts } from '../payment/usePaymentAttempts';
|
|
7
8
|
import type { StaleQuoteRecovery } from '../quote/useStaleQuoteRecovery';
|
|
8
|
-
export declare function useCapturedPayment(flow: FiatFlow, quoteState: UseFiatQuoteResult, failSurface: (code: string, detail?: string) => void, shownQuoteRef: string | undefined, attempts: PaymentAttempts): {
|
|
9
|
+
export declare function useCapturedPayment(flow: FiatFlow, quoteState: UseFiatQuoteResult, failSurface: (code: string, detail?: string) => void, shownQuoteRef: string | undefined, attempts: PaymentAttempts, paymentAnalytics: PaymentAnalytics): {
|
|
9
10
|
capturedPayment: boolean;
|
|
10
11
|
orderAnswered: boolean;
|
|
11
12
|
reportSurface: (result: SurfaceResult, transition?: SurfaceTransition) => Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stepSurface.d.ts","sourceRoot":"","sources":["../../../../src/fiat/surface/stepSurface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,YAAY,EAEZ,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,sBAAsB,CAAA;AAO7B,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,cAAc,EACpB,MAAM,0BAA0B,CAAA;
|
|
1
|
+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P,QAAQ,EACR,sBAAsB,EACtB,UAAU,EACV,cAAc,GACf,EAAE;IACD,IAAI,EAAE,QAAQ,CAAA;IACd,OAAO,EAAE,sBAAsB,CAAA;IAC/B,QAAQ,EAAE,YAAY,GAAG,SAAS,CAAA;IAClC,sBAAsB,EAAE,cAAc,GAAG,SAAS,CAAA;IAClD,UAAU,EAAE,kBAAkB,CAAA;IAC9B,cAAc,EAAE,cAAc,GAAG,SAAS,CAAA;CAC3C;;;;EAkEA;AAED,wBAAgB,iBAAiB,CAAC,EAChC,IAAI,EACJ,UAAU,EACV,aAAa,GACd,EAAE;IACD,IAAI,EAAE,QAAQ,CAAA;IACd,UAAU,EAAE,kBAAkB,CAAA;IAC9B,aAAa,EAAE,MAAM,IAAI,CAAA;CAC1B,GAAG,MAAM,IAAI,CAOb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"surfaceRegistry.d.ts","sourceRoot":"","sources":["../../../../src/fiat/surface/surfaceRegistry.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"surfaceRegistry.d.ts","sourceRoot":"","sources":["../../../../src/fiat/surface/surfaceRegistry.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAQtC,OAAO,KAAK,EACV,cAAc,EACd,cAAc,EACd,cAAc,EAEd,mBAAmB,EACpB,MAAM,sBAAsB,CAAA;AAwB7B,gFAAgF;AAChF,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAWjE;AAmBD;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,OAAO,EAChB,QAAQ,GAAE,SAAS,cAAc,EAAO,GACvC,mBAAmB,GAAG,SAAS,CAEjC;AAED,kDAAkD;AAClD,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,OAAO,EAChB,QAAQ,GAAE,SAAS,cAAc,EAAO,GACvC,IAAI,CAAC,cAAc,EAAE,iBAAiB,CAAC,CAIzC;AAED,sDAAsD;AACtD,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,OAAO,EAChB,QAAQ,GAAE,SAAS,cAAc,EAAO,GACvC,OAAO,CAET;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,OAAO,EACP,QAAQ,EACR,GAAG,OAAO,EACX,EAAE,cAAc,GAAG;IAClB,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,SAAS,cAAc,EAAE,CAAA;CACrC,GAAG,SAAS,CAiBZ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFailureAnnouncements.d.ts","sourceRoot":"","sources":["../../../../src/fiat/surface/useFailureAnnouncements.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAIlE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAM9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;
|
|
1
|
+
{"version":3,"file":"useFailureAnnouncements.d.ts","sourceRoot":"","sources":["../../../../src/fiat/surface/useFailureAnnouncements.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAIlE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAM9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;AAO5D,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,oCAAoC,CAAA;AAG3C,wBAAgB,uBAAuB,CAAC,EACtC,QAAQ,EACR,aAAa,EACb,aAAa,EACb,mBAAmB,EACnB,IAAI,EACJ,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,YAAY,EACZ,cAAc,GACf,EAAE;IACD,QAAQ,EAAE,SAAS,YAAY,EAAE,CAAA;IACjC,aAAa,EAAE,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAA;IAClE,aAAa,EAAE,cAAc,GAAG,SAAS,CAAA;IACzC,mBAAmB,EAAE,oBAAoB,CAAA;IACzC,IAAI,EAAE,QAAQ,CAAA;IACd,gBAAgB,EAAE,OAAO,CAAA;IACzB,eAAe,EAAE,CAAC,QAAQ,EAAE,YAAY,EAAE,KAAK,EAAE,KAAK,GAAG,MAAM,KAAK,IAAI,CAAA;IACxE,cAAc,EAAE,oBAAoB,CAAA;IACpC,YAAY,EAAE,MAAM,IAAI,CAAA;IACxB,cAAc,EAAE,cAAc,GAAG,SAAS,CAAA;CAC3C,QA0DA"}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import type { FiatFlow, FiatProvider, SubmitTransition } from '@funkit/connect-core';
|
|
2
2
|
import type { SurfaceFailure } from '../../flow/screenBundles';
|
|
3
3
|
import { type InputStep } from '../payment/providerFailover';
|
|
4
|
-
export declare function useSurfaceAttempt({ countRefusal, flow, logSurfaceFailure, reportApplePayTerminal, submitApplePayTransition, }: {
|
|
4
|
+
export declare function useSurfaceAttempt({ countRefusal, flow, logSurfaceFailure, quotedProvider, reportApplePayTerminal, submitApplePayTransition, }: {
|
|
5
5
|
countRefusal: (provider: FiatProvider, step: InputStep, part?: string) => boolean;
|
|
6
6
|
flow: FiatFlow;
|
|
7
7
|
logSurfaceFailure: (code: string) => void;
|
|
8
|
+
quotedProvider: FiatProvider | undefined;
|
|
8
9
|
reportApplePayTerminal: (outcome: 'interactive' | 'provider_failed' | 'dismissed' | 'superseded') => void;
|
|
9
10
|
submitApplePayTransition: (transition: SubmitTransition, additionalInputs?: Parameters<FiatFlow['submit']>[1], send?: () => Promise<boolean | undefined>) => Promise<boolean>;
|
|
10
11
|
}): {
|
|
11
12
|
failSurface: (code: string, detail?: string) => void;
|
|
12
13
|
resend: {
|
|
13
14
|
id: string;
|
|
14
|
-
mode:
|
|
15
|
+
mode: 'SUBMIT';
|
|
15
16
|
endpoint: import("@fun-xyz/fiat-contract/types").FiatEndpoint;
|
|
16
17
|
params?: import("@fun-xyz/fiat-contract/types").TransitionParams;
|
|
17
18
|
inputs?: import("@fun-xyz/fiat-contract/types").TransitionInputs;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSurfaceAttempt.d.ts","sourceRoot":"","sources":["../../../../src/fiat/surface/useSurfaceAttempt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,YAAY,EAEZ,gBAAgB,EACjB,MAAM,sBAAsB,CAAA;AAI7B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAG9D,OAAO,EAAE,KAAK,SAAS,EAAqB,MAAM,6BAA6B,CAAA;
|
|
1
|
+
{"version":3,"file":"useSurfaceAttempt.d.ts","sourceRoot":"","sources":["../../../../src/fiat/surface/useSurfaceAttempt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,YAAY,EAEZ,gBAAgB,EACjB,MAAM,sBAAsB,CAAA;AAI7B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAG9D,OAAO,EAAE,KAAK,SAAS,EAAqB,MAAM,6BAA6B,CAAA;AAI/E,wBAAgB,iBAAiB,CAAC,EAChC,YAAY,EACZ,IAAI,EACJ,iBAAiB,EACjB,cAAc,EACd,sBAAsB,EACtB,wBAAwB,GACzB,EAAE;IACD,YAAY,EAAE,CACZ,QAAQ,EAAE,YAAY,EACtB,IAAI,EAAE,SAAS,EACf,IAAI,CAAC,EAAE,MAAM,KACV,OAAO,CAAA;IACZ,IAAI,EAAE,QAAQ,CAAA;IACd,iBAAiB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACzC,cAAc,EAAE,YAAY,GAAG,SAAS,CAAA;IACxC,sBAAsB,EAAE,CACtB,OAAO,EAAE,aAAa,GAAG,iBAAiB,GAAG,WAAW,GAAG,YAAY,KACpE,IAAI,CAAA;IACT,wBAAwB,EAAE,CACxB,UAAU,EAAE,gBAAgB,EAC5B,gBAAgB,CAAC,EAAE,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,EACpD,IAAI,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC,KACtC,OAAO,CAAC,OAAO,CAAC,CAAA;CACtB;wBAuD4B,MAAM,WAAW,MAAM;;;;;;;;;;;;EA8DnD"}
|
|
@@ -7,9 +7,12 @@ export interface CryptoAddressPageProps {
|
|
|
7
7
|
/** Minting the address failed; the page offers a retry. */
|
|
8
8
|
failed: boolean;
|
|
9
9
|
onRetry: () => void;
|
|
10
|
+
/**
|
|
11
|
+
* Drawn by symbol alone, as the currency page draws it. The asset API's
|
|
12
|
+
* `logo` comes from another provider and would swap the icon mid-flow.
|
|
13
|
+
*/
|
|
10
14
|
token: {
|
|
11
15
|
symbol: string;
|
|
12
|
-
logo?: string;
|
|
13
16
|
} | undefined;
|
|
14
17
|
chain: AvailableChain | undefined;
|
|
15
18
|
/** How many curated chains the address also receives on, for EVM. */
|
|
@@ -18,6 +21,7 @@ export interface CryptoAddressPageProps {
|
|
|
18
21
|
onCopy: (address: string) => Promise<boolean>;
|
|
19
22
|
onLearnMore: () => void;
|
|
20
23
|
onBack: () => void;
|
|
24
|
+
showHeader?: boolean;
|
|
21
25
|
}
|
|
22
26
|
/**
|
|
23
27
|
* The V2 crypto deposit's address page (Figma R6 4268-50591, laid out as
|
|
@@ -26,5 +30,5 @@ export interface CryptoAddressPageProps {
|
|
|
26
30
|
* the watermark used to stand. Tapping the address copies it and expands it in
|
|
27
31
|
* place (4235-48120); either copy toasts and taps a success haptic.
|
|
28
32
|
*/
|
|
29
|
-
export declare function CryptoAddressPage({ address, qrValue, failed, onRetry, token, chain, sharedChainCount, onCopy, onLearnMore, onBack, }: CryptoAddressPageProps): import("react").JSX.Element;
|
|
33
|
+
export declare function CryptoAddressPage({ address, qrValue, failed, onRetry, token, chain, sharedChainCount, onCopy, onLearnMore, onBack, showHeader, }: CryptoAddressPageProps): import("react").JSX.Element;
|
|
30
34
|
//# sourceMappingURL=CryptoAddressPage.d.ts.map
|