@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
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Turn progress whose rate swings once per revolution, so the ring reads as
|
|
3
|
-
* alive rather than mechanical. Even across the loop seam and monotonic while
|
|
4
|
-
* the amplitude stays under 1, so the ring neither jumps nor runs backwards.
|
|
5
|
-
*/
|
|
6
|
-
export declare function modulatedTurn(t: number): number;
|
|
1
|
+
export declare function modulatedCycle(t: number): number;
|
|
7
2
|
/**
|
|
8
3
|
* The ring the whole SDK waits behind. Presentational only — the caller owns
|
|
9
4
|
* the accessibility role, since a spinner means different things in a button
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoadingSpinner.d.ts","sourceRoot":"","sources":["../../../src/components/LoadingSpinner.tsx"],"names":[],"mappings":"AAuBA
|
|
1
|
+
{"version":3,"file":"LoadingSpinner.d.ts","sourceRoot":"","sources":["../../../src/components/LoadingSpinner.tsx"],"names":[],"mappings":"AAuBA,wBAAgB,cAAc,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAEhD;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,EAC7B,IAAI,EACJ,KAAK,EACL,UAAU,EACV,KAAS,GACV,EAAE;IACD,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,+CAA+C;IAC/C,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,iFAAiF;IACjF,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,sCAiDA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopBar.d.ts","sourceRoot":"","sources":["../../../src/components/TopBar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TopBar.d.ts","sourceRoot":"","sources":["../../../src/components/TopBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAUtC,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,SAAS,CAAA;IAChB,mDAAmD;IACnD,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,gEAAgE;IAChE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED;;GAEG;AACH,wBAAgB,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,KAAa,EAAE,EAAE,WAAW,+BA8C5E"}
|
|
@@ -24,8 +24,8 @@ export interface FeeLineProps {
|
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* The computed fee beside the payment badge, and the disclosure drawer's
|
|
27
|
-
* trigger. While `pending` the whole line
|
|
28
|
-
* target disabled and itself out of the accessibility tree; the
|
|
27
|
+
* trigger. While `pending` or swapping text the whole line fades to zero, with
|
|
28
|
+
* its tap target disabled and itself out of the accessibility tree; the new value
|
|
29
29
|
* fades back in. The fade is the only motion fee disclosure gets — the value
|
|
30
30
|
* swaps while hidden, with no animation of its own.
|
|
31
31
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeeLine.d.ts","sourceRoot":"","sources":["../../../../src/components/v2/FeeLine.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FeeLine.d.ts","sourceRoot":"","sources":["../../../../src/components/v2/FeeLine.tsx"],"names":[],"mappings":"AAYA,MAAM,WAAW,YAAY;IAC3B,mEAAmE;IACnE,GAAG,EAAE,MAAM,CAAA;IACX;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,wEAAwE;IACxE,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,qDAAqD;IACrD,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,EACtB,GAAG,EACH,SAAS,EACT,MAAM,EACN,KAAK,EACL,OAAe,EACf,OAAO,EACP,kBAAkB,GACnB,EAAE,YAAY,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,+BA2ElC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListRow.d.ts","sourceRoot":"","sources":["../../../../src/components/v2/ListRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAStC,gEAAgE;AAChE,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"ListRow.d.ts","sourceRoot":"","sources":["../../../../src/components/v2/ListRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAStC,gEAAgE;AAChE,eAAO,MAAM,QAAQ;aACnB,MAAM,EAAE,EAAE;aACV,MAAM,EAAE,EAAE;IACV,mFAAmF;aACnF,YAAY,EAAE,EAAE;aAChB,cAAc,EAAE,CAAC;aACjB,QAAQ,EAAE,EAAE;IACZ,oCAAoC;aACpC,GAAG,EAAE,CAAC;CACE,CAAA;AAEV,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,qDAAqD;IACrD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,2DAA2D;IAC3D,IAAI,EAAE,SAAS,CAAA;IACf,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B;AAED;;;GAGG;AACH,wBAAgB,OAAO,CAAC,EACtB,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,OAAO,EACP,kBAAkB,GACnB,EAAE,YAAY,+BAoCd;AAMD,2DAA2D;AAC3D,wBAAgB,eAAe,gCAyB9B"}
|
|
@@ -5,6 +5,8 @@ export interface PaymentMethodPickerProps {
|
|
|
5
5
|
label: string;
|
|
6
6
|
/** Available funding balance and network beneath the method's name. */
|
|
7
7
|
detail?: string;
|
|
8
|
+
/** A pill leading the second line, before `detail` (Figma 5916:4899). */
|
|
9
|
+
detailBadge?: string;
|
|
8
10
|
/** The selected method's brand glyph. */
|
|
9
11
|
icon?: ReactNode;
|
|
10
12
|
onPress: () => void;
|
|
@@ -22,7 +24,7 @@ export interface PaymentMethodPickerProps {
|
|
|
22
24
|
* quiet secondary fill rather than the action's. `merge` cross-fades the two
|
|
23
25
|
* (see {@link MethodMergeMotion}).
|
|
24
26
|
*/
|
|
25
|
-
export declare function PaymentMethodPicker({ label, detail, icon, onPress, accessibilityHint, disabled, unselected, merge, }: PaymentMethodPickerProps & {
|
|
27
|
+
export declare function PaymentMethodPicker({ label, detail, detailBadge, icon, onPress, accessibilityHint, disabled, unselected, merge, }: PaymentMethodPickerProps & {
|
|
26
28
|
unselected?: boolean;
|
|
27
29
|
merge?: MethodMergeMotion;
|
|
28
30
|
}): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentMethodPicker.d.ts","sourceRoot":"","sources":["../../../../src/components/v2/PaymentMethodPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"PaymentMethodPicker.d.ts","sourceRoot":"","sources":["../../../../src/components/v2/PaymentMethodPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAYtC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAItD,MAAM,WAAW,wBAAwB;IACvC,oDAAoD;IACpD,KAAK,EAAE,MAAM,CAAA;IACb,uEAAuE;IACvE,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,yEAAyE;IACzE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,yCAAyC;IACzC,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,0DAA0D;IAC1D,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,KAAK,EACL,MAAM,EACN,WAAW,EACX,IAAI,EACJ,OAAO,EACP,iBAAiB,EACjB,QAAgB,EAChB,UAAkB,EAClB,KAAK,GACN,EAAE,wBAAwB,GAAG;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,KAAK,CAAC,EAAE,iBAAiB,CAAA;CAC1B,+BA0HA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ctaLabel.d.ts","sourceRoot":"","sources":["../../../../src/fiat/common/ctaLabel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAEtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,gBAAgB,EAAE,CAAC,EAAE,SAAS,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"ctaLabel.d.ts","sourceRoot":"","sources":["../../../../src/fiat/common/ctaLabel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAEtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,gBAAgB,EAAE,CAAC,EAAE,SAAS,GAAG,MAAM,CAapE;AAKD;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,QAAQ,GAAG,OAAO,CAOzD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,QAAQ,EACf,CAAC,EAAE,SAAS,EACZ,QAAQ,EAAE,MAAM,GACf,MAAM,CAWR;AAED,mEAAmE;AACnE,wBAAgB,UAAU,CAAC,KAAK,EAAE,QAAQ,GAAG,OAAO,CAKnD"}
|
|
@@ -25,7 +25,7 @@ export interface FeeLine {
|
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* The live quote's fee, worded exactly as the static step words its computed
|
|
28
|
-
* one. A subsidized fee reads struck through, then FREE. The screen fades the whole line while a re-quote is due, so there is
|
|
28
|
+
* one. A subsidized fee reads struck through, then FREE with debit cards. The screen fades the whole line while a re-quote is due, so there is
|
|
29
29
|
* nothing here to hold still — no splitting the number out of the sentence.
|
|
30
30
|
* No fee renders until a quote priced this amount; the empty state keeps the
|
|
31
31
|
* quick amounts up instead.
|
|
@@ -34,7 +34,7 @@ export declare function quoteFee(quote: FeeQuote | undefined, amount: string, t:
|
|
|
34
34
|
/** Whether a backend quote carries a price; an unpriced placeholder delivers nothing yet. */
|
|
35
35
|
export declare function isPricedQuote(quote: Pick<Quote, 'crypto'> | undefined): boolean;
|
|
36
36
|
/**
|
|
37
|
-
* The routing table's predicted waiver, before a price: "No fees". FREE beside
|
|
37
|
+
* The routing table's predicted waiver, before a price: "No fees with debit cards". FREE beside
|
|
38
38
|
* no number read as the whole deposit being free.
|
|
39
39
|
*/
|
|
40
40
|
export declare function tableNoFees(t: TFunction): FeeLine;
|
|
@@ -67,6 +67,8 @@ export declare function quoteFeeRows(quote: FeeQuote | undefined, t: TFunction,
|
|
|
67
67
|
* - Any provider once the rate, as the drawer would round it, reaches 7%.
|
|
68
68
|
*/
|
|
69
69
|
export declare function feeInDollars(quote: FeeQuote, provider: FiatProvider | undefined): boolean;
|
|
70
|
+
/** What the deposit lands as (`You'll receive USDC on Solana`); none for a chain we can't name. */
|
|
71
|
+
export declare function receiveFootnote(ticker: string | undefined, targetChain: string | undefined, t: TFunction): string | undefined;
|
|
70
72
|
/** Whether the quote charges nothing — the one case the drawer carries the mark. */
|
|
71
73
|
export declare function quoteFeesFree(quote: FeeQuote | undefined): boolean;
|
|
72
74
|
/** The rail disclosure, priced from the quote rather than host configuration. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stepDetails.d.ts","sourceRoot":"","sources":["../../../../src/fiat/common/stepDetails.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,QAAQ,EACR,YAAY,EACZ,KAAK,EACN,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAA;
|
|
1
|
+
{"version":3,"file":"stepDetails.d.ts","sourceRoot":"","sources":["../../../../src/fiat/common/stepDetails.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,QAAQ,EACR,YAAY,EACZ,KAAK,EACN,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAA;AAUnE,oGAAoG;AACpG,MAAM,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,EAAE,UAAU,CAAC,GAAG;IAC/C,IAAI,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAA;CAC3C,CAAA;AAED,wFAAwF;AACxF,MAAM,MAAM,UAAU,GAAG;I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
|
|
@@ -29,6 +29,7 @@ export declare function useContact({ contactProvider, contactQuoteRef, paymentMe
|
|
|
29
29
|
setContactRound: import("react").Dispatch<import("react").SetStateAction<ContactRound | undefined>>;
|
|
30
30
|
isContactStepOver: boolean;
|
|
31
31
|
contactFailure: boolean;
|
|
32
|
+
contactExpired: boolean;
|
|
32
33
|
phoneReverify: boolean;
|
|
33
34
|
};
|
|
34
35
|
export declare function useKnownContacts(assertedEmail: string | undefined): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contactRound.d.ts","sourceRoot":"","sources":["../../../../src/fiat/contact/contactRound.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACd,MAAM,sBAAsB,CAAA;AAK7B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAGpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAC3D,OAAO,EACL,KAAK,mBAAmB,EAGzB,MAAM,kBAAkB,CAAA;AAEzB,kFAAkF;AAClF,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,MAAM,EAAE,SAAS,mBAAmB,EAAE,CAAA;IACtC,QAAQ,EAAE,YAAY,GAAG,SAAS,CAAA;IAClC,aAAa,EAAE,MAAM,CAAA;IACrB,UAAU,EAAE,gBAAgB,CAAA;IAC5B,KAAK,EAAE,aAAa,GAAG,SAAS,CAAA;IAChC,yEAAyE;IACzE,QAAQ,EAAE,gBAAgB,GAAG,SAAS,CAAA;CACvC;AAED,gFAAgF;AAChF,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,SAAS,mBAAmB,EAAE,EACtC,KAAK,EAAE,QAAQ,EACf,KAAK,EAAE,aAAa,GAAG,SAAS,EAChC,QAAQ,EAAE,gBAAgB,GAAG,SAAS,EACtC,QAAQ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AA;CACvC;AAED,gFAAgF;AAChF,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,SAAS,mBAAmB,EAAE,EACtC,KAAK,EAAE,QAAQ,EACf,KAAK,EAAE,aAAa,GAAG,SAAS,EAChC,QAAQ,EAAE,gBAAgB,GAAG,SAAS,EACtC,QAAQ,EAAE,YAAY,GAAG,SAAS,EAClC,aAAa,EAAE,MAAM,EACrB,QAAQ,GAAE,MAAM,GAAG,IAAW,GAC7B,YAAY,GAAG,SAAS,CAiB1B;AAED,wBAAgB,UAAU,CAAC,EACzB,eAAe,EACf,eAAe,EACf,aAAa,EACb,QAAQ,EACR,UAAU,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,EAC/B,IAAI,GACL,EAAE;IACD,eAAe,EAAE,YAAY,GAAG,SAAS,CAAA;IACzC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,aAAa,CAAA;IACvB,UAAU,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,CAAA;IAC5C,IAAI,EAAE,QAAQ,CAAA;CACf;;;8BA2CkC,YAAY;;;;;;EAgE9C;AAeD,wBAAgB,gBAAgB,CAAC,aAAa,EAAE,MAAM,GAAG,SAAS;;;EA4BjE;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,YAAY,QAaxD"}
|
|
@@ -19,6 +19,7 @@ export declare function useFlowContact({ contacts, entryQuote, flow, quoteState,
|
|
|
19
19
|
setContactRound: Dispatch<SetStateAction<ContactRound | undefined>>;
|
|
20
20
|
isContactStepOver: boolean;
|
|
21
21
|
contactFailure: boolean;
|
|
22
|
+
contactExpired: boolean;
|
|
22
23
|
phoneReverify: boolean;
|
|
23
24
|
};
|
|
24
25
|
contactProvider: import("@funkit/connect-core").FiatProvider | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFlowContact.d.ts","sourceRoot":"","sources":["../../../../src/fiat/contact/useFlowContact.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAClE,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAa,MAAM,OAAO,CAAA;AACrE,OAAO,EAAE,KAAK,YAAY,EAAc,MAAM,gBAAgB,CAAA;AAC9D,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,UAAU,EAEhB,MAAM,iBAAiB,CAAA;AACxB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AA4B3D,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,UAAU,EACV,IAAI,EACJ,UAAU,EACV,aAAa,EACb,UAAU,EACV,YAAY,GACb,EAAE;IACD,QAAQ,EAAE,aAAa,CAAA;IACvB,UAAU,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,CAAA;IAC5C,IAAI,EAAE,QAAQ,CAAA;IACd,UAAU,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAA;IAC3C,aAAa,EAAE,MAAM,CAAA;IACrB,UAAU,EAAE,UAAU,CAAA;IACtB,YAAY,EAAE,QAAQ,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC,CAAA;CACtD
|
|
1
|
+
{"version":3,"file":"useFlowContact.d.ts","sourceRoot":"","sources":["../../../../src/fiat/contact/useFlowContact.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAClE,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAa,MAAM,OAAO,CAAA;AACrE,OAAO,EAAE,KAAK,YAAY,EAAc,MAAM,gBAAgB,CAAA;AAC9D,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,UAAU,EAEhB,MAAM,iBAAiB,CAAA;AACxB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AA4B3D,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,UAAU,EACV,IAAI,EACJ,UAAU,EACV,aAAa,EACb,UAAU,EACV,YAAY,GACb,EAAE;IACD,QAAQ,EAAE,aAAa,CAAA;IACvB,UAAU,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,CAAA;IAC5C,IAAI,EAAE,QAAQ,CAAA;IACd,UAAU,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAA;IAC3C,aAAa,EAAE,MAAM,CAAA;IACrB,UAAU,EAAE,UAAU,CAAA;IACtB,YAAY,EAAE,QAAQ,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC,CAAA;CACtD;;;;;;;;;;;;;EAsBA"}
|
|
@@ -4,11 +4,17 @@ import type { DepositMatchTerms } from '../../flow/depositFlowConfig';
|
|
|
4
4
|
import type { DepositMatchScreenProps } from '../../screens/DepositMatchScreen';
|
|
5
5
|
import { type FeeLine, type FeeQuote, type FeeSubsidy } from '../common/stepDetails';
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* is entered and its currency is known.
|
|
7
|
+
* Whether a matched deposit's fee is charged, and where a waived one is said:
|
|
8
|
+
* on the fee line, or on the payment method row's "No Fees" pill.
|
|
10
9
|
*/
|
|
11
|
-
export
|
|
10
|
+
export type MatchFees = 'charged' | 'waived' | 'waivedOnMethodRow';
|
|
11
|
+
/**
|
|
12
|
+
* The fee line for a matched deposit: the bonus after "No fees" when the fee
|
|
13
|
+
* is waived, after the quoted fee otherwise, and alone when the method row
|
|
14
|
+
* already says the fee is waived (Figma 5916:4827). Before an amount, it
|
|
15
|
+
* offers the cap. Nothing renders until the currency is known.
|
|
16
|
+
*/
|
|
17
|
+
export declare function depositMatchLine(amount: string, currency: string | undefined, terms: DepositMatchTerms, quote: FeeQuote | undefined, fees: MatchFees, t: TFunction): FeeLine | undefined;
|
|
12
18
|
/**
|
|
13
19
|
* The match drawer's figures. A subsidized fee reads FREE beside the amount
|
|
14
20
|
* reimbursed; otherwise the row carries the quoted fee and the total nets it.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"depositMatch.d.ts","sourceRoot":"","sources":["../../../../src/fiat/entry/depositMatch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AACrE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAA;AAM/E,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,KAAK,UAAU,EAGhB,MAAM,uBAAuB,CAAA;AAc9B
|
|
1
|
+
{"version":3,"file":"depositMatch.d.ts","sourceRoot":"","sources":["../../../../src/fiat/entry/depositMatch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AACrE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAA;AAM/E,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,KAAK,UAAU,EAGhB,MAAM,uBAAuB,CAAA;AAc9B;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,mBAAmB,CAAA;AAElE;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,KAAK,EAAE,iBAAiB,EACxB,KAAK,EAAE,QAAQ,GAAG,SAAS,EAC3B,IAAI,EAAE,SAAS,EACf,CAAC,EAAE,SAAS,GACX,OAAO,GAAG,SAAS,CAqBrB;AAiBD;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,iBAAiB,EACxB,KAAK,EAAE,QAAQ,GAAG,SAAS,EAC3B,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,YAAY,GAAG,SAAS,GACjC,IAAI,CAAC,uBAAuB,EAAE,UAAU,CAAC,CAgB3C"}
|
|
@@ -2,12 +2,17 @@ import type { FiatFlow, FiatProvider, Quote, UseFiatQuoteResult } from '@funkit/
|
|
|
2
2
|
import type { SurfaceAdapter } from '../providers/adapter';
|
|
3
3
|
import type { StepSurfaces } from '../../flow/screenBundles';
|
|
4
4
|
import type { useAuthHandoff } from '../otp/useAuthHandoff';
|
|
5
|
-
|
|
5
|
+
import type { ProviderFailover } from '../payment/providerFailover';
|
|
6
|
+
export declare function useCaptureHold({ onQuoteConfirmed, authHandoff: { isEmbeddedAuth, isUnprompted, markUnprompted }, capturedPayment, flow, handoff, onBackToEntry, onRequoteToPay, provider, quoteState, retrySurface, shownQuote, stepSurfaces: { stepSurface, stepSurfacePresentation }, stripeCaptureAdapters, }: {
|
|
6
7
|
authHandoff: Pick<ReturnType<typeof useAuthHandoff>, 'isEmbeddedAuth' | 'isUnprompted' | 'markUnprompted'>;
|
|
7
8
|
onQuoteConfirmed: () => void;
|
|
8
9
|
capturedPayment: boolean;
|
|
9
10
|
flow: FiatFlow;
|
|
11
|
+
/** The failover this run began from, if a provider failed the buyer before. */
|
|
12
|
+
handoff: ProviderFailover | undefined;
|
|
10
13
|
onBackToEntry: () => void;
|
|
14
|
+
/** Back to the amount, pressing pay once the new quote can be paid. */
|
|
15
|
+
onRequoteToPay: (provider: FiatProvider, pinned?: boolean) => void;
|
|
11
16
|
provider: FiatProvider | undefined;
|
|
12
17
|
quoteState: UseFiatQuoteResult;
|
|
13
18
|
retrySurface: () => void;
|
|
@@ -16,8 +21,13 @@ export declare function useCaptureHold({ onQuoteConfirmed, authHandoff: { isEmbe
|
|
|
16
21
|
stripeCaptureAdapters: SurfaceAdapter[];
|
|
17
22
|
}): {
|
|
18
23
|
isHeldAfterDismissal: boolean;
|
|
24
|
+
isHeldAfterSignIn: boolean;
|
|
19
25
|
isHeldForTap: boolean;
|
|
20
|
-
recoverPaymentSurface: (cause: "cancelled" | "failed") => void;
|
|
26
|
+
recoverPaymentSurface: (cause: "cancelled" | "failed", reopen?: unknown, requoteAt?: FiatProvider | undefined) => void;
|
|
21
27
|
releaseHeld: () => void;
|
|
28
|
+
/** The verified sheet's pay button, while a failover's sign-in holds the payment. */
|
|
29
|
+
verifiedHold: {
|
|
30
|
+
onPay: () => void;
|
|
31
|
+
} | undefined;
|
|
22
32
|
};
|
|
23
33
|
//# sourceMappingURL=useCaptureHold.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCaptureHold.d.ts","sourceRoot":"","sources":["../../../../src/fiat/entry/useCaptureHold.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,YAAY,EACZ,KAAK,EACL,kBAAkB,EACnB,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"useCaptureHold.d.ts","sourceRoot":"","sources":["../../../../src/fiat/entry/useCaptureHold.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,YAAY,EACZ,KAAK,EACL,kBAAkB,EACnB,MAAM,sBAAsB,CAAA;AAU7B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAanE,wBAAgB,cAAc,CAAC,EAC7B,gBAAgB,EAChB,WAAW,EAAE,EAAE,cAAc,EAAE,YAAY,EAAE,cAAc,EAAE,EAC7D,eAAe,EACf,IAAI,EACJ,OAAO,EACP,aAAa,EACb,cAAc,EACd,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,UAAU,EACV,YAAY,EAAE,EAAE,WAAW,EAAE,uBAAuB,EAAE,EACtD,qBAAqB,GACtB,EAAE;IACD,WAAW,EAAE,IAAI,CACf,UAAU,CAAC,OAAO,cAAc,CAAC,EACjC,gBAAgB,GAAG,cAAc,GAAG,gBAAgB,CACrD,CAAA;IACD,gBAAgB,EAAE,MAAM,IAAI,CAAA;IAC5B,eAAe,EAAE,OAAO,CAAA;IACxB,IAAI,EAAE,QAAQ,CAAA;IACd,+EAA+E;IAC/E,OAAO,EAAE,gBAAgB,GAAG,SAAS,CAAA;IACrC,aAAa,EAAE,MAAM,IAAI,CAAA;IACzB,uEAAuE;IACvE,cAAc,EAAE,CAAC,QAAQ,EAAE,YAAY,EAAE,MAAM,CAAC,EAAE,OAAO,KAAK,IAAI,CAAA;IAClE,QAAQ,EAAE,YAAY,GAAG,SAAS,CAAA;IAClC,UAAU,EAAE,kBAAkB,CAAA;IAC9B,YAAY,EAAE,MAAM,IAAI,CAAA;IACxB,UAAU,EAAE,KAAK,GAAG,SAAS,CAAA;IAC7B,YAAY,EAAE,YAAY,CAAA;IAC1B,qBAAqB,EAAE,cAAc,EAAE,CAAA;CACxC;;;;;;IAwIG,qFAAqF;;;;EAGxF"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { FiatProvider } from '@funkit/connect-core';
|
|
2
|
+
import type { kycRoutesOf } from '../kyc/kycRoutes';
|
|
3
|
+
import type { useKycVerdict } from '../kyc/kycVerdict';
|
|
4
|
+
/**
|
|
5
|
+
* The amount screen's pay press, and the presses that stand in for the
|
|
6
|
+
* buyer's: a preview's, and a failover sheet's pay tap carried over its
|
|
7
|
+
* requote.
|
|
8
|
+
*/
|
|
9
|
+
export declare function useEntryPress({ canSubmitQuote, isActionPending, kycRoutes, kycVerdict: { kycResolution, resolvedKyc, setKycSubmission }, openEntryRound, payOnArrival, provider, setOnKycOptions, }: {
|
|
10
|
+
canSubmitQuote: boolean;
|
|
11
|
+
/** The action slot is still loading: the quote, its checkout, the button's warm-up. */
|
|
12
|
+
isActionPending: boolean;
|
|
13
|
+
kycRoutes: ReturnType<typeof kycRoutesOf>;
|
|
14
|
+
kycVerdict: Pick<ReturnType<typeof useKycVerdict>, 'kycResolution' | 'resolvedKyc' | 'setKycSubmission'>;
|
|
15
|
+
openEntryRound: () => void;
|
|
16
|
+
payOnArrival: FiatProvider | undefined;
|
|
17
|
+
provider: FiatProvider | undefined;
|
|
18
|
+
setOnKycOptions: (open: boolean) => void;
|
|
19
|
+
}): {
|
|
20
|
+
pressEntry: () => void;
|
|
21
|
+
payWhenPriced: {
|
|
22
|
+
disarm: () => void;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=useEntryPress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useEntryPress.d.ts","sourceRoot":"","sources":["../../../../src/fiat/entry/useEntryPress.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAIxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAGtD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,EAC5B,cAAc,EACd,eAAe,EACf,SAAS,EACT,UAAU,EAAE,EAAE,aAAa,EAAE,WAAW,EAAE,gBAAgB,EAAE,EAC5D,cAAc,EACd,YAAY,EACZ,QAAQ,EACR,eAAe,GAChB,EAAE;IACD,cAAc,EAAE,OAAO,CAAA;IACvB,uFAAuF;IACvF,eAAe,EAAE,OAAO,CAAA;IACxB,SAAS,EAAE,UAAU,CAAC,OAAO,WAAW,CAAC,CAAA;IACzC,UAAU,EAAE,IAAI,CACd,UAAU,CAAC,OAAO,aAAa,CAAC,EAChC,eAAe,GAAG,aAAa,GAAG,kBAAkB,CACrD,CAAA;IACD,cAAc,EAAE,MAAM,IAAI,CAAA;IAC1B,YAAY,EAAE,YAAY,GAAG,SAAS,CAAA;IACtC,QAAQ,EAAE,YAAY,GAAG,SAAS,CAAA;IAClC,eAAe,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;CACzC;;;;;EAiCA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEntryQuote.d.ts","sourceRoot":"","sources":["../../../../src/fiat/entry/useEntryQuote.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,gBAAgB,EAChB,KAAK,EACL,kBAAkB,EACnB,MAAM,sBAAsB,CAAA;AAQ7B,OAAO,EACL,KAAK,QAAQ,EAGd,MAAM,uBAAuB,CAAA;AAC9B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAA;AAE5E,wBAAgB,aAAa,CAAC,EAC5B,MAAM,EACN,MAAM,EACN,IAAI,EACJ,kBAAkB,EAClB,UAAU,EACV,WAAW,GACZ,EAAE;IACD,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,wBAAwB,CAAA;IAChC,IAAI,EAAE,QAAQ,CAAA;IACd,kBAAkB,EAAE,OAAO,CAAA;IAC3B,UAAU,EAAE,kBAAkB,CAAA;IAC9B,WAAW,EAAE,gBAAgB,GAAG,SAAS,CAAA;CAC1C;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"useEntryQuote.d.ts","sourceRoot":"","sources":["../../../../src/fiat/entry/useEntryQuote.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,gBAAgB,EAChB,KAAK,EACL,kBAAkB,EACnB,MAAM,sBAAsB,CAAA;AAQ7B,OAAO,EACL,KAAK,QAAQ,EAGd,MAAM,uBAAuB,CAAA;AAC9B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAA;AAE5E,wBAAgB,aAAa,CAAC,EAC5B,MAAM,EACN,MAAM,EACN,IAAI,EACJ,kBAAkB,EAClB,UAAU,EACV,WAAW,GACZ,EAAE;IACD,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,wBAAwB,CAAA;IAChC,IAAI,EAAE,QAAQ,CAAA;IACd,kBAAkB,EAAE,OAAO,CAAA;IAC3B,UAAU,EAAE,kBAAkB,CAAA;IAC9B,WAAW,EAAE,gBAAgB,GAAG,SAAS,CAAA;CAC1C;;;;;;;;;;;oCA4EwC,QAAQ;;;;;;;EAoChD"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type FiatProvider } from '@funkit/connect-core';
|
|
2
|
+
/** The beat between a new quote landing and the press it arms. */
|
|
3
|
+
export declare const PAY_ON_ARRIVAL_DELAY_MS = 1000;
|
|
4
|
+
/**
|
|
5
|
+
* Presses pay once for a run the buyer's own tap requoted to pay again: a
|
|
6
|
+
* failover sheet's pay-again tap over a session the decline spent.
|
|
7
|
+
* - Only at the provider the tap paid. Another provider's quote that stays a
|
|
8
|
+
* beat disarms it, so a later refresh back to that provider pays nothing.
|
|
9
|
+
* - An amount edit disarms it, as the buyer has moved on from that tap
|
|
10
|
+
* - It waits `PAY_ON_ARRIVAL_DELAY_MS` first, so the new quote is seen before
|
|
11
|
+
* its sheet opens
|
|
12
|
+
*/
|
|
13
|
+
export declare function usePayOnArrival({ armed: armedAtMount, canPay, provider, press, }: {
|
|
14
|
+
/** The provider to pay again; `undefined` when no tap began this run. */
|
|
15
|
+
armed: FiatProvider | undefined;
|
|
16
|
+
canPay: boolean;
|
|
17
|
+
provider: FiatProvider | undefined;
|
|
18
|
+
press: () => void;
|
|
19
|
+
}): {
|
|
20
|
+
disarm: () => void;
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=usePayOnArrival.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePayOnArrival.d.ts","sourceRoot":"","sources":["../../../../src/fiat/entry/usePayOnArrival.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAkB,MAAM,sBAAsB,CAAA;AAKxE,kEAAkE;AAClE,eAAO,MAAM,uBAAuB,OAAO,CAAA;AAE3C;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EAAE,YAAY,EACnB,MAAM,EACN,QAAQ,EACR,KAAK,GACN,EAAE;IACD,yEAAyE;IACzE,KAAK,EAAE,YAAY,GAAG,SAAS,CAAA;IAC/B,MAAM,EAAE,OAAO,CAAA;IACf,QAAQ,EAAE,YAAY,GAAG,SAAS,CAAA;IAClC,KAAK,EAAE,MAAM,IAAI,CAAA;CAClB,GAAG;IAAE,MAAM,EAAE,MAAM,IAAI,CAAA;CAAE,CAkCzB"}
|
|
@@ -13,5 +13,5 @@ export declare function FiatDocumentCaptureStep({ children, kycProvider, correct
|
|
|
13
13
|
variant?: Exclude<FiatKycIntroVariant, 'consent'>;
|
|
14
14
|
onBack: () => void;
|
|
15
15
|
onKycStarted: () => void;
|
|
16
|
-
}): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean |
|
|
16
|
+
}): string | number | bigint | boolean | import("react").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | null | undefined;
|
|
17
17
|
//# sourceMappingURL=FiatDocumentCaptureStep.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kycFieldValidators.d.ts","sourceRoot":"","sources":["../../../../src/fiat/kyc/kycFieldValidators.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,KAAK,aAAa,EAA8B,MAAM,gBAAgB,CAAA;AAE/E,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,SAAS,EAChB,SAAS,CAAC,EAAE,CAAC,GAAG,CAAC;AACjB,6DAA6D;AAC7D,OAAO,CAAC,EAAE,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,EAAE;qBAEb;QACpB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;KAC1B,KAAK,aAAa,GAAG,SAAS
|
|
1
|
+
{"version":3,"file":"kycFieldValidators.d.ts","sourceRoot":"","sources":["../../../../src/fiat/kyc/kycFieldValidators.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,KAAK,aAAa,EAA8B,MAAM,gBAAgB,CAAA;AAE/E,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,SAAS,EAChB,SAAS,CAAC,EAAE,CAAC,GAAG,CAAC;AACjB,6DAA6D;AAC7D,OAAO,CAAC,EAAE,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,EAAE;qBAEb;QACpB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;KAC1B,KAAK,aAAa,GAAG,SAAS;;;;cAmBhC"}
|
|
@@ -5,13 +5,19 @@ import { useUserIpInfo } from '../../geo/useUserIpInfo';
|
|
|
5
5
|
import { useKycIntro } from '../providers/kycIntro';
|
|
6
6
|
import { useCreateStripeAccountWithExistingUserData } from '../providers/stripe/useCreateStripeAccountWithExistingUserData';
|
|
7
7
|
import { useStripeKycPush } from '../providers/stripe/useStripeKycPush';
|
|
8
|
+
import type { StripeOnrampClient } from '../providers/stripe/stripeOnramp';
|
|
9
|
+
import { useApplePayFirst } from '../providers/stripe/useApplePayFirst';
|
|
8
10
|
import { useKycRoundReporting } from './useKycRoundReporting';
|
|
9
|
-
export declare function useCarriedKyc(flow: FiatFlow): {
|
|
11
|
+
export declare function useCarriedKyc(flow: FiatFlow, stripeOnramp: StripeOnrampClient | undefined): {
|
|
10
12
|
stripeExistingUserData: {
|
|
11
13
|
carried: FormValues;
|
|
12
14
|
registerWith?: FormValues;
|
|
13
15
|
screen: (props: import("../providers/stripe/useCreateStripeAccountWithExistingUserData").CreateStripeAccountScreen) => ReactElement;
|
|
14
16
|
};
|
|
17
|
+
applePayFirst: {
|
|
18
|
+
state: import("../providers/stripe/stripeApplePaySelection").ApplePayFirst;
|
|
19
|
+
markAsked: (quoteRef: string) => void;
|
|
20
|
+
};
|
|
15
21
|
kycIntro: {
|
|
16
22
|
intro: import("../providers/kycIntro").KycIntro;
|
|
17
23
|
onRoundSent: () => void;
|
|
@@ -22,9 +28,10 @@ export declare function useKycFormError(flow: FiatFlow): {
|
|
|
22
28
|
formError: FailureReason | undefined;
|
|
23
29
|
roundError: FailureReason | undefined;
|
|
24
30
|
};
|
|
25
|
-
export declare function renderKycForm(flow: FiatFlow, { t, renderEntry, unsupportedContext, onBackToEntry }: ScreenShell, { userIpInfo, stripeExistingUserData, stripeKycPush, carryKycValues, isFormRetry, rateLimitMessage, kycProviderFailure, roundError, kycIntro, recordKycConsent, onKycStarted, onKycFormSubmitted, formError, isReplayable, }: {
|
|
31
|
+
export declare function renderKycForm(flow: FiatFlow, { t, renderEntry, unsupportedContext, onBackToEntry }: ScreenShell, { userIpInfo, stripeExistingUserData, applePayFirst, stripeKycPush, carryKycValues, isFormRetry, rateLimitMessage, kycProviderFailure, roundError, kycIntro, recordKycConsent, onKycStarted, onKycFormSubmitted, formError, isReplayable, }: {
|
|
26
32
|
userIpInfo: ReturnType<typeof useUserIpInfo>['userIpInfo'];
|
|
27
33
|
stripeExistingUserData: ReturnType<typeof useCreateStripeAccountWithExistingUserData>;
|
|
34
|
+
applePayFirst: ReturnType<typeof useApplePayFirst>;
|
|
28
35
|
stripeKycPush: ReturnType<typeof useStripeKycPush>;
|
|
29
36
|
carryKycValues: (values: FormValues) => void;
|
|
30
37
|
isFormRetry: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kycForm.d.ts","sourceRoot":"","sources":["../../../../src/fiat/kyc/kycForm.tsx"],"names":[],"mapp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/kyc/kycFormState.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,cAAc,EACd,SAAS,EACT,cAAc,EACd,UAAU,EACV,SAAS,EACV,MAAM,sBAAsB,CAAA;AAE7B,2EAA2E;AAC3E,MAAM,MAAM,aAAa,GAAG,cAAc,GAAG,eAAe,GAAG,SAAS,CAAA;AAexE;;;;;;GAMG;AACH,wBAAgB,UAAU,CACxB,MAAM,EAAE,SAAS,OAAO,EAAE,GAAG,SAAS,GACrC,aAAa,GAAG,SAAS,CAE3B;AAED,iFAAiF;AACjF,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"kycFormState.d.ts","sourceRoot":"","sources":["../../../../src/fiat/kyc/kycFormState.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,cAAc,EACd,SAAS,EACT,cAAc,EACd,UAAU,EACV,SAAS,EACV,MAAM,sBAAsB,CAAA;AAE7B,2EAA2E;AAC3E,MAAM,MAAM,aAAa,GAAG,cAAc,GAAG,eAAe,GAAG,SAAS,CAAA;AAexE;;;;;;GAMG;AACH,wBAAgB,UAAU,CACxB,MAAM,EAAE,SAAS,OAAO,EAAE,GAAG,SAAS,GACrC,aAAa,GAAG,SAAS,CAE3B;AAED,iFAAiF;AACjF,eAAO,MAAM,WAAW,UAAW,SAAS,GAAG,SAAS,KAAG,MACnB,CAAA;AAExC;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;AAElD,+EAA+E;AAC/E,wBAAgB,WAAW,CAAC,MAAM,EAAE,UAAU,GAAG,aAAa,CAO7D;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,SAAS,SAAS,EAAE,EAC5B,MAAM,EAAE,UAAU,GACjB,SAAS,EAAE,CAIb;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,SAAS,SAAS,EAAE,EAC5B,MAAM,EAAE,UAAU,EAClB,OAAO,EAAE,UAAU,GAClB,SAAS,EAAE,CAUb;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,SAAS,SAAS,EAAE,EAC5B,OAAO,EAAE,UAAU,GAAG,SAAS,EAC/B,YAAY,EAAE,MAAM,GAAG,SAAS,GAC/B,SAAS,EAAE,CAYb;AAED,uEAAuE;AACvE,eAAO,MAAM,iBAAiB,KAAK,CAAA;AAInC;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,MAAM,EACb,KAAK,GAAE,IAAiB,GACvB,eAAe,GAAG,SAAS,CAuB7B;AAWD,gEAAgE;AAChE,wBAAgB,eAAe,CAC7B,IAAI,EAAE,cAAc,EACpB,MAAM,EAAE,UAAU,GACjB,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAY/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kycFormTheme.d.ts","sourceRoot":"","sources":["../../../../src/fiat/kyc/kycFormTheme.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,eAAO,MAAM,gBAAgB;IAC3B,oDAAoD
|
|
1
|
+
{"version":3,"file":"kycFormTheme.d.ts","sourceRoot":"","sources":["../../../../src/fiat/kyc/kycFormTheme.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,eAAO,MAAM,gBAAgB;IAC3B,oDAAoD;aACpD,WAAW,EAAE,EAAE;aACf,WAAW,EAAE,EAAE;IACf,wEAAwE;aACxE,UAAU,EAAE,EAAE;aACd,sBAAsB,EAAE,EAAE;IAC1B,kEAAkE;aAClE,qBAAqB,EAAE,CAAC;IACxB,uCAAuC;aACvC,MAAM,EAAE,CAAC;aAKT,YAAY,EAAE,EAAE;aAChB,YAAY,EAAE,EAAE;IAChB,6CAA6C;aAC7C,SAAS,EAAE,EAAE;aAMb,gBAAgB,EAAE,EAAE;aACpB,eAAe,EAAE,EAAE;aACnB,0BAA0B,EAAE,EAAE;IAC9B,8EAA8E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undReporting.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,QAAQ,EAId,MAAM,sBAAsB,CAAA;AAO7B;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,QAAQ;;sCAqBnC,MAAM;mCAcL,IAAI,iBAAiB,MAAM;
|
|
1
|
+
{"version":3,"file":"useKycRoundReporting.d.ts","sourceRoot":"","sources":["../../../../src/fiat/kyc/useKycRoundReporting.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,QAAQ,EAId,MAAM,sBAAsB,CAAA;AAO7B;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,QAAQ;;sCAqBnC,MAAM;mCAcL,IAAI,iBAAiB,MAAM;EAqB3C"}
|
|
@@ -16,6 +16,10 @@ export declare function useKycScreens({ countRefusal, failOverInput, flow, retry
|
|
|
16
16
|
registerWith?: import("@funkit/connect-core").FormValues;
|
|
17
17
|
screen: (props: import("../providers/stripe/useCreateStripeAccountWithExistingUserData").CreateStripeAccountScreen) => import("react").ReactElement;
|
|
18
18
|
};
|
|
19
|
+
applePayFirst: {
|
|
20
|
+
state: import("../providers/stripe/stripeApplePaySelection").ApplePayFirst;
|
|
21
|
+
markAsked: (quoteRef: string) => void;
|
|
22
|
+
};
|
|
19
23
|
stripeKycPush: {
|
|
20
24
|
submit: (values: import("@funkit/connect-core").FormValues, deliver: () => void) => void;
|
|
21
25
|
attemptKey: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useKycScreens.d.ts","sourceRoot":"","sources":["../../../../src/fiat/kyc/useKycScreens.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,YAAY,EAGlB,MAAM,sBAAsB,CAAA;AAG7B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAA;AAO1E,8EAA8E;AAC9E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CAAA;CAC7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmEA;AAED,kEAAkE;AAClE,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,CAGpE"}
|
|
@@ -19,6 +19,17 @@ export interface FiatOtpScreenProps {
|
|
|
19
19
|
* is disabled rather than a press that does nothing.
|
|
20
20
|
*/
|
|
21
21
|
onResend?: () => Promise<void> | void;
|
|
22
|
+
/** When the round's resend opens, as the server says; absent, a fixed cooldown follows each resend. */
|
|
23
|
+
resendAvailableAtMs?: number;
|
|
24
|
+
/** The server times every resend: with no `resendAvailableAtMs`, it is open now. */
|
|
25
|
+
resendServerTimed?: boolean;
|
|
26
|
+
/** Wrong codes the round still accepts, when the server counts them. */
|
|
27
|
+
attemptsRemaining?: number;
|
|
28
|
+
/**
|
|
29
|
+
* False when the round has dropped its challenge (too many attempts, an
|
|
30
|
+
* expired code) and offers only a resend: the boxes stay, locked.
|
|
31
|
+
*/
|
|
32
|
+
acceptsCode?: boolean;
|
|
22
33
|
isSubmitting: boolean;
|
|
23
34
|
onChangeCode: (code: string) => void;
|
|
24
35
|
onSubmit: () => void;
|
|
@@ -34,6 +45,6 @@ export declare function FiatOtpScreen(props: FiatOtpScreenProps): import("react"
|
|
|
34
45
|
interface FiatOtpContentProps extends FiatOtpScreenProps {
|
|
35
46
|
code: string;
|
|
36
47
|
}
|
|
37
|
-
export declare function FiatOtpContent({ verified, length, destination, isSms, errorMessage, onResend, isSubmitting, onChangeCode, onSubmit, onClose, code, }: FiatOtpContentProps): import("react").JSX.Element;
|
|
48
|
+
export declare function FiatOtpContent({ verified, length, destination, isSms, errorMessage, onResend, resendAvailableAtMs, resendServerTimed, attemptsRemaining, acceptsCode, isSubmitting, onChangeCode, onSubmit, onClose, code, }: FiatOtpContentProps): import("react").JSX.Element;
|
|
38
49
|
export {};
|
|
39
50
|
//# sourceMappingURL=FiatOtpScreen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiatOtpScreen.d.ts","sourceRoot":"","sources":["../../../../src/fiat/otp/FiatOtpScreen.tsx"],"names":[],"mappings":"AAgCA,8EAA8E;AAC9E,eAAO,MAAM,eAAe,IAAI,CAAA;AAEhC,MAAM,WAAW,kBAAkB;IACjC,gEAAgE;IAChE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,wDAAwD;IACxD,KAAK,EAAE,OAAO,CAAA;IACd,mEAAmE;IACnE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;IACrC,YAAY,EAAE,OAAO,CAAA;IACrB,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,+BA0BtD;AAED,UAAU,mBAAoB,SAAQ,kBAAkB;IACtD,IAAI,EAAE,MAAM,CAAA;CACb;AAED,wBAAgB,cAAc,CAAC,EAC7B,QAAgB,EAChB,MAAwB,EACxB,WAAW,EACX,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,OAAO,EACP,IAAI,GACL,EAAE,mBAAmB,+
|
|
1
|
+
{"version":3,"file":"FiatOtpScreen.d.ts","sourceRoot":"","sources":["../../../../src/fiat/otp/FiatOtpScreen.tsx"],"names":[],"mappings":"AAgCA,8EAA8E;AAC9E,eAAO,MAAM,eAAe,IAAI,CAAA;AAEhC,MAAM,WAAW,kBAAkB;IACjC,gEAAgE;IAChE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,wDAAwD;IACxD,KAAK,EAAE,OAAO,CAAA;IACd,mEAAmE;IACnE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;IACrC,uGAAuG;IACvG,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,oFAAoF;IACpF,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,wEAAwE;IACxE,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,YAAY,EAAE,OAAO,CAAA;IACrB,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,+BA0BtD;AAED,UAAU,mBAAoB,SAAQ,kBAAkB;IACtD,IAAI,EAAE,MAAM,CAAA;CACb;AAED,wBAAgB,cAAc,CAAC,EAC7B,QAAgB,EAChB,MAAwB,EACxB,WAAW,EACX,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,WAAkB,EAClB,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,OAAO,EACP,IAAI,GACL,EAAE,mBAAmB,+BAyOrB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type FunSessionStore } from '@funkit/connect-core';
|
|
2
|
+
import { type ReactElement } from 'react';
|
|
3
|
+
import type { KnownContacts } from '../contact/knownContacts';
|
|
4
|
+
/**
|
|
5
|
+
* Signs the buyer back in to Fun's login over an order already under way.
|
|
6
|
+
*
|
|
7
|
+
* - A flow of its own: the order's flow keeps its page and its paused poll.
|
|
8
|
+
* - The VERIFIED it ends on stores the session, which resumes that poll.
|
|
9
|
+
*/
|
|
10
|
+
export declare function FunReauthStep({ funSession, contacts, onClose, }: {
|
|
11
|
+
funSession: FunSessionStore;
|
|
12
|
+
contacts: KnownContacts;
|
|
13
|
+
onClose: () => void;
|
|
14
|
+
}): ReactElement;
|
|
15
|
+
//# sourceMappingURL=FunReauthStep.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FunReauthStep.d.ts","sourceRoot":"","sources":["../../../../src/fiat/otp/FunReauthStep.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,eAAe,EAIrB,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EAAE,KAAK,YAAY,EAAuB,MAAM,OAAO,CAAA;AAM9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AA0B7D;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,EAC5B,UAAU,EACV,QAAQ,EACR,OAAO,GACR,EAAE;IACD,UAAU,EAAE,eAAe,CAAA;IAC3B,QAAQ,EAAE,aAAa,CAAA;IACvB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,GAAG,YAAY,CAwCf"}
|
|
@@ -2,8 +2,10 @@ import type { FiatFlow } from '@funkit/connect-core';
|
|
|
2
2
|
import type { TFunction } from 'i18next';
|
|
3
3
|
import type { FiatOtpScreenProps } from './FiatOtpScreen';
|
|
4
4
|
import type { KnownContacts } from '../contact/knownContacts';
|
|
5
|
+
type OtpProps = Omit<FiatOtpScreenProps, 'onClose'>;
|
|
5
6
|
/**
|
|
6
|
-
* Binds a `SESSION_AUTH
|
|
7
|
+
* Binds a code round — a provider's `SESSION_AUTH`, or Fun's own `FUN_AUTH`
|
|
8
|
+
* in phase CODE or VERIFIED — to the code screen.
|
|
7
9
|
*
|
|
8
10
|
* The input's name and length are read off the transition, not assumed: the
|
|
9
11
|
* contract declares them per step, and a step that words them differently
|
|
@@ -14,10 +16,11 @@ import type { KnownContacts } from '../contact/knownContacts';
|
|
|
14
16
|
*/
|
|
15
17
|
export declare function otpScreenProps(flow: FiatFlow, t: TFunction,
|
|
16
18
|
/** Every contact the entry collected, so each round can name its own. */
|
|
17
|
-
contacts: KnownContacts):
|
|
19
|
+
contacts: KnownContacts): OtpProps | undefined;
|
|
18
20
|
/**
|
|
19
21
|
* The id a provider's resend carries, whichever shape it takes: a new code here,
|
|
20
22
|
* or a freshly minted surface on the rails that render their own auth.
|
|
21
23
|
*/
|
|
22
24
|
export declare const RESEND_ID = "resend";
|
|
25
|
+
export {};
|
|
23
26
|
//# sourceMappingURL=otpScreenProps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"otpScreenProps.d.ts","sourceRoot":"","sources":["../../../../src/fiat/otp/otpScreenProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,QAAQ,
|
|
1
|
+
{"version":3,"file":"otpScreenProps.d.ts","sourceRoot":"","sources":["../../../../src/fiat/otp/otpScreenProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,QAAQ,EAGT,MAAM,sBAAsB,CAAA;AAE7B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AAG7D,KAAK,QAAQ,GAAG,IAAI,CAAC,kBAAkB,EAAE,SAAS,CAAC,CAAA;AAEnD;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,QAAQ,EACd,CAAC,EAAE,SAAS;AACZ,yEAAyE;AACzE,QAAQ,EAAE,aAAa,GACtB,QAAQ,GAAG,SAAS,CActB;AAgGD;;;GAGG;AACH,eAAO,MAAM,SAAS,WAAW,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type FunSessionStorage, type FunSessionStore } from '@funkit/connect-core';
|
|
2
|
+
/**
|
|
3
|
+
* Fun's session store for this host: one per api key, restored from storage
|
|
4
|
+
* on mount.
|
|
5
|
+
*
|
|
6
|
+
* - Keyed on the api key alone, with storage read at call time: a host that
|
|
7
|
+
* passes `sessionStorage` as an inline literal would otherwise rebuild the
|
|
8
|
+
* store every render, dropping the session and the re-quote waiting on it.
|
|
9
|
+
* - A host with its own assertion minter never uses Fun's login, so nothing
|
|
10
|
+
* is restored and no refresh is ever scheduled for it.
|
|
11
|
+
*/
|
|
12
|
+
export declare function useFunSessionStore(apiKey: string, storage: FunSessionStorage | undefined): FunSessionStore;
|
|
13
|
+
export interface FunSessionCallbacks {
|
|
14
|
+
/** A session was verified and the tick has had its beat, or one was restored from storage. */
|
|
15
|
+
onVerified: () => void;
|
|
16
|
+
/** The session ended, so the unauthenticated quote asks for the email again. */
|
|
17
|
+
onEnded: () => void;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* The flow's Fun session store; `undefined` for a host with an assertion minter.
|
|
21
|
+
* - A preview seeded to sign in again uses it over the preview host's minter.
|
|
22
|
+
*/
|
|
23
|
+
export declare function useFlowFunSession(seededReauth?: boolean): FunSessionStore | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Tells the flow when Fun's login changes:
|
|
26
|
+
* - Verified: once the tick has had its beat.
|
|
27
|
+
* - Restored late from storage: at once.
|
|
28
|
+
* - Ended: at once.
|
|
29
|
+
*/
|
|
30
|
+
export declare function useFunSessionEvents(store: FunSessionStore | undefined, { onVerified, onEnded }: FunSessionCallbacks): void;
|
|
31
|
+
//# sourceMappingURL=useFunSession.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFunSession.d.ts","sourceRoot":"","sources":["../../../../src/fiat/otp/useFunSession.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,eAAe,EAGrB,MAAM,sBAAsB,CAAA;AAQ7B;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,iBAAiB,GAAG,SAAS,GACrC,eAAe,CA6BjB;AAaD,MAAM,WAAW,mBAAmB;IAClC,8FAA8F;IAC9F,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,gFAAgF;IAChF,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,YAAY,UAAQ,GACnB,eAAe,GAAG,SAAS,CAM7B;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,eAAe,GAAG,SAAS,EAClC,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,mBAAmB,GAC3C,IAAI,CA0BN"}
|
|
@@ -6,6 +6,8 @@ interface Submission {
|
|
|
6
6
|
/** The page the code was typed on, so the receipt is drawn on the same one. */
|
|
7
7
|
page: string;
|
|
8
8
|
}
|
|
9
|
+
/** How long the verified tick stays up once the server has accepted the code. */
|
|
10
|
+
export declare const OTP_RECEIPT_MS = 500;
|
|
9
11
|
/** Hold the verified code briefly without delaying the server's next transition. */
|
|
10
12
|
export declare function useOtpReceipt(flow: FiatFlow): {
|
|
11
13
|
bind: (page: string, props: OtpProps) => OtpProps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useOtpReceipt.d.ts","sourceRoot":"","sources":["../../../../src/fiat/otp/useOtpReceipt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAGpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAEzD,KAAK,QAAQ,GAAG,IAAI,CAAC,kBAAkB,EAAE,SAAS,CAAC,CAAA;AACnD,UAAU,UAAU;IAClB,KAAK,EAAE,QAAQ,CAAA;IACf,+EAA+E;IAC/E,IAAI,EAAE,MAAM,CAAA;CACb;AAED,oFAAoF;AACpF,wBAAgB,aAAa,CAAC,IAAI,EAAE,QAAQ;
|
|
1
|
+
{"version":3,"file":"useOtpReceipt.d.ts","sourceRoot":"","sources":["../../../../src/fiat/otp/useOtpReceipt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAGpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAEzD,KAAK,QAAQ,GAAG,IAAI,CAAC,kBAAkB,EAAE,SAAS,CAAC,CAAA;AACnD,UAAU,UAAU;IAClB,KAAK,EAAE,QAAQ,CAAA;IACf,+EAA+E;IAC/E,IAAI,EAAE,MAAM,CAAA;CACb;AAED,iFAAiF;AACjF,eAAO,MAAM,cAAc,MAAM,CAAA;AAEjC,oFAAoF;AACpF,wBAAgB,aAAa,CAAC,IAAI,EAAE,QAAQ;iBA2CtB,MAAM,SAAS,QAAQ,KAAG,QAAQ;;EAQvD"}
|
|
@@ -12,12 +12,17 @@ export type ResendStatus = {
|
|
|
12
12
|
* The resend link's cycle: sending until its submit settles, then a countdown
|
|
13
13
|
* before the next one.
|
|
14
14
|
* - Settled off the submit itself, so a resend that lands before any render
|
|
15
|
-
* shows it in flight still leaves "sending".
|
|
16
|
-
*
|
|
15
|
+
* shows it in flight still leaves "sending". A refused resend skips the
|
|
16
|
+
* countdown: no code went out to wait for.
|
|
17
17
|
* - Counted against a deadline, so a backgrounded app does not stretch it.
|
|
18
|
+
* - The deadline is the round's `availableAtMs` when it names one, and a new
|
|
19
|
+
* value restarts it. Otherwise the fixed cooldown applies, except on a
|
|
20
|
+
* `serverTimed` round, where no time named means open now.
|
|
18
21
|
*/
|
|
19
|
-
export declare function useResendCooldown({ errorMessage, }: {
|
|
22
|
+
export declare function useResendCooldown({ errorMessage, availableAtMs, serverTimed, }: {
|
|
20
23
|
errorMessage: string | undefined;
|
|
24
|
+
availableAtMs?: number;
|
|
25
|
+
serverTimed?: boolean;
|
|
21
26
|
}): {
|
|
22
27
|
status: ResendStatus;
|
|
23
28
|
send: (resend: () => Promise<void> | void) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useResendCooldown.d.ts","sourceRoot":"","sources":["../../../../src/fiat/otp/useResendCooldown.ts"],"names":[],"mappings":"AAEA,4EAA4E;AAC5E,eAAO,MAAM,uBAAuB,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"useResendCooldown.d.ts","sourceRoot":"","sources":["../../../../src/fiat/otp/useResendCooldown.ts"],"names":[],"mappings":"AAEA,4EAA4E;AAC5E,eAAO,MAAM,uBAAuB,KAAK,CAAA;AAMzC,MAAM,MAAM,YAAY,GACpB;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,GACjB;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,GACnB;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAA;AAExC;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,YAAY,EACZ,aAAa,EACb,WAAmB,GACpB,EAAE;IACD,YAAY,EAAE,MAAM,GAAG,SAAS,CAAA;IAChC,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,GAAG;IACF,MAAM,EAAE,YAAY,CAAA;IACpB,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,KAAK,IAAI,CAAA;CACnD,CAuDA"}
|