@funkit/connect-rn 8.2.0 → 8.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +146 -0
- package/README.md +9 -0
- package/dist/chunk-BC4RXFI7.js +319 -0
- package/dist/chunk-BC4RXFI7.js.map +7 -0
- package/dist/{chunk-J5K2FSAI.js → chunk-KDRCHYXB.js} +313 -138
- package/dist/chunk-KDRCHYXB.js.map +7 -0
- package/dist/{chunk-GG2WCQ6N.js → chunk-Z6IQFV5E.js} +3 -3
- package/dist/{chunk-D64EJ57D.js → chunk-ZIT24GW5.js} +1 -1
- package/dist/chunk-ZIT24GW5.js.map +7 -0
- package/dist/clients/lighter.js +2 -2
- package/dist/clients/nado.js +3 -3
- package/dist/clients/solana.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9173 -6063
- package/dist/index.js.map +4 -4
- package/dist/preview.d.ts +5 -0
- package/dist/preview.d.ts.map +1 -0
- package/dist/preview.js +1159 -0
- package/dist/preview.js.map +7 -0
- package/dist/src/components/DepositActionMotion.d.ts +4 -1
- package/dist/src/components/DepositActionMotion.d.ts.map +1 -1
- package/dist/src/components/DismissibleToast.d.ts +35 -0
- package/dist/src/components/DismissibleToast.d.ts.map +1 -0
- package/dist/src/components/GlassSurface.d.ts +3 -1
- package/dist/src/components/GlassSurface.d.ts.map +1 -1
- package/dist/src/components/PillButton.d.ts +20 -2
- package/dist/src/components/PillButton.d.ts.map +1 -1
- package/dist/src/components/StateSwap.d.ts +17 -0
- package/dist/src/components/StateSwap.d.ts.map +1 -0
- package/dist/src/components/WithdrawSourceCard.d.ts.map +1 -1
- package/dist/src/components/v2/AmountDisplay.d.ts.map +1 -1
- package/dist/src/components/v2/PaymentMethodPicker.d.ts +18 -0
- package/dist/src/components/v2/PaymentMethodPicker.d.ts.map +1 -0
- package/dist/src/components/v2/QuickAmountsRow.d.ts.map +1 -1
- package/dist/src/fiat/FiatBackButton.d.ts +5 -1
- package/dist/src/fiat/FiatBackButton.d.ts.map +1 -1
- package/dist/src/fiat/FiatChoiceField.d.ts +4 -3
- package/dist/src/fiat/FiatChoiceField.d.ts.map +1 -1
- package/dist/src/fiat/FiatContactScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatCountrySheet.d.ts.map +1 -1
- package/dist/src/fiat/FiatDocumentCaptureStep.d.ts +7 -2
- package/dist/src/fiat/FiatDocumentCaptureStep.d.ts.map +1 -1
- package/dist/src/fiat/FiatFailureBanner.d.ts +4 -1
- package/dist/src/fiat/FiatFailureBanner.d.ts.map +1 -1
- package/dist/src/fiat/FiatFormAdvance.d.ts.map +1 -1
- package/dist/src/fiat/FiatFormFieldRow.d.ts +15 -1
- package/dist/src/fiat/FiatFormFieldRow.d.ts.map +1 -1
- package/dist/src/fiat/FiatFormHeading.d.ts +21 -0
- package/dist/src/fiat/FiatFormHeading.d.ts.map +1 -0
- package/dist/src/fiat/FiatFormScreen.d.ts +7 -1
- package/dist/src/fiat/FiatFormScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatIdentityStep.d.ts +16 -1
- package/dist/src/fiat/FiatIdentityStep.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycFieldControl.d.ts +0 -2
- package/dist/src/fiat/FiatKycFieldControl.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycIntroScreen.d.ts +14 -3
- package/dist/src/fiat/FiatKycIntroScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycOutcomeScreen.d.ts +8 -6
- package/dist/src/fiat/FiatKycOutcomeScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycPhoneField.d.ts +2 -3
- package/dist/src/fiat/FiatKycPhoneField.d.ts.map +1 -1
- package/dist/src/fiat/FiatOtpScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatPhoneField.d.ts +17 -4
- package/dist/src/fiat/FiatPhoneField.d.ts.map +1 -1
- package/dist/src/fiat/FiatReceipt.d.ts +9 -3
- package/dist/src/fiat/FiatReceipt.d.ts.map +1 -1
- package/dist/src/fiat/FiatRegionUnsupportedScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatSsnField.d.ts.map +1 -1
- package/dist/src/fiat/FiatSubmissionIndicator.d.ts +7 -1
- package/dist/src/fiat/FiatSubmissionIndicator.d.ts.map +1 -1
- package/dist/src/fiat/FiatTermsNotice.d.ts +4 -2
- package/dist/src/fiat/FiatTermsNotice.d.ts.map +1 -1
- package/dist/src/fiat/SurfaceSlot.d.ts +5 -2
- package/dist/src/fiat/SurfaceSlot.d.ts.map +1 -1
- package/dist/src/fiat/countryListEntries.d.ts +2 -3
- package/dist/src/fiat/countryListEntries.d.ts.map +1 -1
- package/dist/src/fiat/fieldLabel.d.ts +14 -0
- package/dist/src/fiat/fieldLabel.d.ts.map +1 -0
- package/dist/src/fiat/formLayout.d.ts +16 -3
- package/dist/src/fiat/formLayout.d.ts.map +1 -1
- package/dist/src/fiat/formValidationError.d.ts +4 -2
- package/dist/src/fiat/formValidationError.d.ts.map +1 -1
- package/dist/src/fiat/kycFailover.d.ts +6 -0
- package/dist/src/fiat/kycFailover.d.ts.map +1 -0
- package/dist/src/fiat/kycFormState.d.ts +12 -0
- package/dist/src/fiat/kycFormState.d.ts.map +1 -1
- package/dist/src/fiat/kycFormTheme.d.ts +7 -0
- package/dist/src/fiat/kycFormTheme.d.ts.map +1 -1
- package/dist/src/fiat/kycUnavailableAlert.d.ts.map +1 -1
- package/dist/src/fiat/legalLinks.d.ts +4 -3
- package/dist/src/fiat/legalLinks.d.ts.map +1 -1
- package/dist/src/fiat/paymentSurfaceFailure.d.ts +56 -0
- package/dist/src/fiat/paymentSurfaceFailure.d.ts.map +1 -0
- package/dist/src/fiat/phoneDraft.d.ts +20 -0
- package/dist/src/fiat/phoneDraft.d.ts.map +1 -1
- package/dist/src/fiat/postalCodeCountries.d.ts +16 -0
- package/dist/src/fiat/postalCodeCountries.d.ts.map +1 -0
- package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts +8 -2
- package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts.map +1 -1
- package/dist/src/fiat/providers/adapter.d.ts +33 -5
- package/dist/src/fiat/providers/adapter.d.ts.map +1 -1
- package/dist/src/fiat/providers/applePayPaintGate.d.ts +5 -2
- package/dist/src/fiat/providers/applePayPaintGate.d.ts.map +1 -1
- package/dist/src/fiat/providers/banxaRedirect.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbaseApplePay.d.ts +2 -1
- package/dist/src/fiat/providers/coinbaseApplePay.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbaseFailureCopy.d.ts +6 -1
- package/dist/src/fiat/providers/coinbaseFailureCopy.d.ts.map +1 -1
- package/dist/src/fiat/providers/describeThrown.d.ts.map +1 -1
- package/dist/src/fiat/providers/kycIntro.d.ts +20 -0
- package/dist/src/fiat/providers/kycIntro.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay.d.ts +6 -1
- package/dist/src/fiat/providers/moonpay.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpayApplePayPainted.d.ts +6 -3
- package/dist/src/fiat/providers/moonpayApplePayPainted.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpayAuthStyle.d.ts +19 -0
- package/dist/src/fiat/providers/moonpayAuthStyle.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpayFeeQuote.d.ts +26 -0
- package/dist/src/fiat/providers/moonpayFeeQuote.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripeAuthorize.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripeCheckout.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripeKyc.d.ts +2 -0
- package/dist/src/fiat/providers/stripeKyc.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripeKycIntro.d.ts +10 -0
- package/dist/src/fiat/providers/stripeKycIntro.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripePayment.d.ts +2 -2
- package/dist/src/fiat/providers/stripePayment.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripeRoundPush.d.ts +39 -0
- package/dist/src/fiat/providers/stripeRoundPush.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripeSeamlessSignIn.d.ts +5 -0
- package/dist/src/fiat/providers/stripeSeamlessSignIn.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripeSessionAuth.d.ts.map +1 -1
- package/dist/src/fiat/providers/sumsubKyc.d.ts.map +1 -1
- package/dist/src/fiat/providers/surfaceParams.d.ts +30 -0
- package/dist/src/fiat/providers/surfaceParams.d.ts.map +1 -0
- package/dist/src/fiat/providers/transakApplePay.d.ts.map +1 -1
- package/dist/src/fiat/providers/useStripeOnrampClient.d.ts +0 -10
- package/dist/src/fiat/providers/useStripeOnrampClient.d.ts.map +1 -1
- package/dist/src/fiat/providers/useStripeSessionAuth.d.ts +42 -0
- package/dist/src/fiat/providers/useStripeSessionAuth.d.ts.map +1 -0
- package/dist/src/fiat/quoteNoRoute.d.ts +11 -0
- package/dist/src/fiat/quoteNoRoute.d.ts.map +1 -0
- package/dist/src/fiat/renderCaptureSurface.d.ts +2 -0
- package/dist/src/fiat/renderCaptureSurface.d.ts.map +1 -1
- package/dist/src/fiat/sectionDetail.d.ts +8 -1
- package/dist/src/fiat/sectionDetail.d.ts.map +1 -1
- package/dist/src/fiat/shownFieldIssues.d.ts +17 -0
- package/dist/src/fiat/shownFieldIssues.d.ts.map +1 -0
- package/dist/src/fiat/stepDetails.d.ts +13 -14
- package/dist/src/fiat/stepDetails.d.ts.map +1 -1
- package/dist/src/fiat/subdivisions.d.ts +6 -0
- package/dist/src/fiat/subdivisions.d.ts.map +1 -1
- package/dist/src/fiat/useContactAutoSubmit.d.ts +20 -0
- package/dist/src/fiat/useContactAutoSubmit.d.ts.map +1 -0
- package/dist/src/fiat/useFiatCheckoutPreparation.d.ts +2 -1
- package/dist/src/fiat/useFiatCheckoutPreparation.d.ts.map +1 -1
- package/dist/src/fiat/useKycCaptureRound.d.ts +16 -0
- package/dist/src/fiat/useKycCaptureRound.d.ts.map +1 -0
- package/dist/src/fiat/useKycCompletion.d.ts.map +1 -1
- package/dist/src/fiat/useOtpAutoSubmit.d.ts +15 -2
- package/dist/src/fiat/useOtpAutoSubmit.d.ts.map +1 -1
- package/dist/src/fiat/useOtpReceipt.d.ts +3 -2
- package/dist/src/fiat/useOtpReceipt.d.ts.map +1 -1
- package/dist/src/fiat/useReceiptTitles.d.ts +6 -0
- package/dist/src/fiat/useReceiptTitles.d.ts.map +1 -0
- package/dist/src/flow/DepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/DepositAssetPicker.d.ts +4 -2
- package/dist/src/flow/DepositAssetPicker.d.ts.map +1 -1
- package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
- package/dist/src/flow/DepositReceivedToast.d.ts +2 -2
- package/dist/src/flow/DepositReceivedToast.d.ts.map +1 -1
- package/dist/src/flow/FeeDetailsSheet.d.ts +3 -1
- package/dist/src/flow/FeeDetailsSheet.d.ts.map +1 -1
- package/dist/src/flow/FiatDepositAmountStep.d.ts +5 -1
- package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/FlowPage.d.ts +3 -0
- package/dist/src/flow/FlowPage.d.ts.map +1 -1
- package/dist/src/flow/FlowSheet.d.ts +10 -2
- package/dist/src/flow/FlowSheet.d.ts.map +1 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts +3 -0
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/WithdrawalFlowContent.d.ts.map +1 -1
- package/dist/src/flow/depositFlowConfig.d.ts +13 -3
- package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
- package/dist/src/flow/depositRailCopy.d.ts +2 -0
- package/dist/src/flow/depositRailCopy.d.ts.map +1 -1
- package/dist/src/flow/sheetPressHold.d.ts +24 -0
- package/dist/src/flow/sheetPressHold.d.ts.map +1 -0
- package/dist/src/flow/swipeBack.d.ts +30 -0
- package/dist/src/flow/swipeBack.d.ts.map +1 -0
- package/dist/src/flow/useDepositReceivedToast.d.ts.map +1 -1
- package/dist/src/flow/useFlowTransitions.d.ts +47 -0
- package/dist/src/flow/useFlowTransitions.d.ts.map +1 -0
- package/dist/src/flow/useKeyboardHeight.d.ts +2 -2
- package/dist/src/flow/useKeyboardHeight.d.ts.map +1 -1
- package/dist/src/flow/v2DepositCustomers.d.ts +2 -0
- package/dist/src/flow/v2DepositCustomers.d.ts.map +1 -0
- package/dist/src/hooks/usePressScale.d.ts +2 -6
- package/dist/src/hooks/usePressScale.d.ts.map +1 -1
- package/dist/src/icons/assetLogos.d.ts.map +1 -1
- package/dist/src/native/glassEffect.d.ts +1 -0
- package/dist/src/native/glassEffect.d.ts.map +1 -1
- package/dist/src/preview/fixtures/kycForms.d.ts +45 -0
- package/dist/src/preview/fixtures/kycForms.d.ts.map +1 -0
- package/dist/src/preview/flowPreview.d.ts +142 -0
- package/dist/src/preview/flowPreview.d.ts.map +1 -0
- package/dist/src/preview/previewFetch.d.ts +10 -0
- package/dist/src/preview/previewFetch.d.ts.map +1 -0
- package/dist/src/preview/scenarioCatalog.d.ts +380 -0
- package/dist/src/preview/scenarioCatalog.d.ts.map +1 -0
- package/dist/src/preview/scenarios.d.ts +57 -0
- package/dist/src/preview/scenarios.d.ts.map +1 -0
- package/dist/src/providers/FunkitI18nProvider.d.ts +2 -0
- package/dist/src/providers/FunkitI18nProvider.d.ts.map +1 -1
- package/dist/src/providers/useFunkitCheckout.d.ts +6 -0
- package/dist/src/providers/useFunkitCheckout.d.ts.map +1 -1
- package/dist/src/screens/DepositAmountScreen.d.ts +9 -2
- package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
- package/dist/src/screens/FeeDetailsScreen.d.ts.map +1 -1
- package/dist/src/screens/TokenAndChainPickerScreen.d.ts +3 -1
- package/dist/src/screens/TokenAndChainPickerScreen.d.ts.map +1 -1
- package/dist/src/screens/WithdrawCryptoSteps.d.ts.map +1 -1
- package/dist/src/screens/depositMetrics.d.ts +40 -3
- package/dist/src/screens/depositMetrics.d.ts.map +1 -1
- package/dist/src/swapped/SwappedWebView.d.ts.map +1 -1
- package/dist/src/theme/keyboardAppearance.d.ts +10 -0
- package/dist/src/theme/keyboardAppearance.d.ts.map +1 -0
- package/dist/src/theme/tokens.d.ts +4 -1
- package/dist/src/theme/tokens.d.ts.map +1 -1
- package/dist/src/transfer/depositAssets.d.ts +6 -4
- package/dist/src/transfer/depositAssets.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useLockedTokenAmount.d.ts +19 -1
- package/dist/src/transfer/hooks/useLockedTokenAmount.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useUDAParams.d.ts.map +1 -1
- package/dist/src/transfer/lockedQuoteSource.d.ts +23 -0
- package/dist/src/transfer/lockedQuoteSource.d.ts.map +1 -0
- package/dist/src/transfer/lockedTokenAmount.d.ts +25 -0
- package/dist/src/transfer/lockedTokenAmount.d.ts.map +1 -1
- package/dist/src/utils/formatAmount.d.ts +1 -0
- package/dist/src/utils/formatAmount.d.ts.map +1 -1
- package/dist/src/utils/motion.d.ts +6 -0
- package/dist/src/utils/motion.d.ts.map +1 -1
- package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts +3 -2
- package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts.map +1 -1
- package/package.json +11 -6
- package/dist/chunk-D64EJ57D.js.map +0 -7
- package/dist/chunk-J5K2FSAI.js.map +0 -7
- package/dist/src/components/ActionLoading.d.ts +0 -19
- package/dist/src/components/ActionLoading.d.ts.map +0 -1
- package/dist/src/fiat/FiatConsentCheck.d.ts +0 -11
- package/dist/src/fiat/FiatConsentCheck.d.ts.map +0 -1
- package/dist/src/fiat/FiatFormConsent.d.ts +0 -6
- package/dist/src/fiat/FiatFormConsent.d.ts.map +0 -1
- package/dist/src/fiat/FiatQuotePrice.d.ts +0 -12
- package/dist/src/fiat/FiatQuotePrice.d.ts.map +0 -1
- package/dist/src/fiat/providerFailover.d.ts +0 -12
- package/dist/src/fiat/providerFailover.d.ts.map +0 -1
- package/dist/src/fiat/providers/StripeSessionAuthController.d.ts +0 -29
- package/dist/src/fiat/providers/StripeSessionAuthController.d.ts.map +0 -1
- package/dist/src/fiat/providers/moonpayTrace.d.ts +0 -25
- package/dist/src/fiat/providers/moonpayTrace.d.ts.map +0 -1
- package/dist/src/fiat/useQuoteableCeiling.d.ts +0 -28
- package/dist/src/fiat/useQuoteableCeiling.d.ts.map +0 -1
- /package/dist/{chunk-GG2WCQ6N.js.map → chunk-Z6IQFV5E.js.map} +0 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { Quote, Surface } from '@funkit/connect-core';
|
|
2
|
+
import type { TFunction } from 'i18next';
|
|
3
|
+
/**
|
|
4
|
+
* How the amount screen answers a payment surface that gave up.
|
|
5
|
+
*
|
|
6
|
+
* - Read off the code alone: a provider's own `detail` may be raw text written
|
|
7
|
+
* for the integrator (MoonPay's sheet error), so it never reaches the buyer.
|
|
8
|
+
* - `unavailable` is the bucket for anything we have no copy for.
|
|
9
|
+
*/
|
|
10
|
+
export type PaymentSurfaceFailure = {
|
|
11
|
+
kind: 'cancelled';
|
|
12
|
+
} | {
|
|
13
|
+
kind: 'declined';
|
|
14
|
+
title: string;
|
|
15
|
+
message: string;
|
|
16
|
+
} | {
|
|
17
|
+
kind: 'refused';
|
|
18
|
+
detail: string;
|
|
19
|
+
} | {
|
|
20
|
+
kind: 'unavailable';
|
|
21
|
+
};
|
|
22
|
+
export declare function paymentSurfaceFailure(code: string, t: TFunction): PaymentSurfaceFailure;
|
|
23
|
+
/**
|
|
24
|
+
* What the amount screen does once a payment surface gave up.
|
|
25
|
+
*
|
|
26
|
+
* - A spent capture is always repriced.
|
|
27
|
+
* - A dismissed sheet is never remounted: its surface opens the sheet on mount, so a remount
|
|
28
|
+
* reopens what the buyer just closed. It waits for their tap while its provider says it can
|
|
29
|
+
* reopen, and is repriced once it cannot.
|
|
30
|
+
*/
|
|
31
|
+
export declare function paymentSurfaceRecovery({ cause, stale, reopenableUntil, now, }: {
|
|
32
|
+
cause: 'cancelled' | 'declined' | 'unavailable';
|
|
33
|
+
stale: boolean;
|
|
34
|
+
reopenableUntil: number | undefined;
|
|
35
|
+
now?: number;
|
|
36
|
+
}): 'hold' | 'remount' | 'requote';
|
|
37
|
+
type RecoveringAlertOptions = {
|
|
38
|
+
scheme?: 'light' | 'dark';
|
|
39
|
+
onDismiss: () => void;
|
|
40
|
+
};
|
|
41
|
+
/** Design 2846:11628: both buttons lead back to a re-presented payment button. */
|
|
42
|
+
export declare function showPaymentSurfaceUnavailableAlert(t: TFunction, { applePay, ...options }: RecoveringAlertOptions & {
|
|
43
|
+
applePay: boolean;
|
|
44
|
+
}): void;
|
|
45
|
+
/** Design 2830:10739 and 2830:10803: the same two buttons as unavailable. */
|
|
46
|
+
export declare function showPaymentDeclinedAlert(t: TFunction, { title, message, ...options }: RecoveringAlertOptions & {
|
|
47
|
+
title: string;
|
|
48
|
+
message: string;
|
|
49
|
+
}): void;
|
|
50
|
+
/**
|
|
51
|
+
* Whether a re-presented button would open a session that is already dead.
|
|
52
|
+
* Reads the clock, so it belongs at the moment of recovery, not in a render.
|
|
53
|
+
*/
|
|
54
|
+
export declare function isCaptureStale(surface: Pick<Surface, 'expiresAt'> | undefined, quote: Pick<Quote, 'expiresAt'> | undefined, now?: number): boolean;
|
|
55
|
+
export {};
|
|
56
|
+
//# sourceMappingURL=paymentSurfaceFailure.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paymentSurfaceFailure.d.ts","sourceRoot":"","sources":["../../../src/fiat/paymentSurfaceFailure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAMxC;;;;;;GAMG;AACH,MAAM,MAAM,qBAAqB,GAC7B;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,GACrB;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GACpD;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GACnC;IAAE,IAAI,EAAE,aAAa,CAAA;CAAE,CAAA;AAE3B,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,MAAM,EACZ,CAAC,EAAE,SAAS,GACX,qBAAqB,CAYvB;AAED;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,KAAK,EACL,KAAK,EACL,eAAe,EACf,GAAgB,GACjB,EAAE;IACD,KAAK,EAAE,WAAW,GAAG,UAAU,GAAG,aAAa,CAAA;IAC/C,KAAK,EAAE,OAAO,CAAA;IACd,eAAe,EAAE,MAAM,GAAG,SAAS,CAAA;IACnC,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAUjC;AAED,KAAK,sBAAsB,GAAG;IAC5B,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IACzB,SAAS,EAAE,MAAM,IAAI,CAAA;CACtB,CAAA;AAED,kFAAkF;AAClF,wBAAgB,kCAAkC,CAChD,CAAC,EAAE,SAAS,EACZ,EAAE,QAAQ,EAAE,GAAG,OAAO,EAAE,EAAE,sBAAsB,GAAG;IAAE,QAAQ,EAAE,OAAO,CAAA;CAAE,QAUzE;AAED,6EAA6E;AAC7E,wBAAgB,wBAAwB,CACtC,CAAC,EAAE,SAAS,EACZ,EACE,KAAK,EACL,OAAO,EACP,GAAG,OAAO,EACX,EAAE,sBAAsB,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,QAG/D;AAyBD;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,WAAW,CAAC,GAAG,SAAS,EAC/C,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,WAAW,CAAC,GAAG,SAAS,EAC3C,GAAG,GAAE,MAAmB,GACvB,OAAO,CAQT"}
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import { type PhoneCountry } from './phoneCountries';
|
|
2
|
+
/**
|
|
3
|
+
* The number as the country writes it, `(408) 460-6031` for the US, grouped as
|
|
4
|
+
* it is typed. A pasted number keeps its own punctuation past the dial code, so
|
|
5
|
+
* the groups are cut from the digits rather than the raw characters.
|
|
6
|
+
*/
|
|
2
7
|
export declare function formatPhoneDraft(country: PhoneCountry, value: string): string;
|
|
8
|
+
/**
|
|
9
|
+
* The digits, less any past the longest number the country issues: a digit that
|
|
10
|
+
* cannot belong to the number is not taken, as the platforms' own fields do.
|
|
11
|
+
*/
|
|
12
|
+
export declare function capPhoneDigits(country: PhoneCountry, national: string, previous?: string): string;
|
|
3
13
|
/** Removing a formatting character must still let Backspace remove a digit. */
|
|
4
14
|
export declare function editPhoneDraft(previous: string, next: string): string;
|
|
5
15
|
/** A number split where its calling code ends. */
|
|
@@ -14,4 +24,14 @@ export declare function pastedPhone(value: string): DialledPhone | undefined;
|
|
|
14
24
|
* `pastedPhone` moves one only out of a number libphonenumber calls valid.
|
|
15
25
|
*/
|
|
16
26
|
export declare function insertedPhone(previous: string, next: string, selected: PhoneCountry): DialledPhone | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* `insertedPhone`, logged when the number moves the chip — the only trace of
|
|
29
|
+
* an autofill that disagreed with the buyer's region. No digits are logged.
|
|
30
|
+
*/
|
|
31
|
+
export declare function normalizedPhoneEdit(previous: string, next: string, chip: PhoneCountry): DialledPhone | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Whether an edit brought the number in one go rather than a key at a time.
|
|
34
|
+
* Counts digits, so spaces, dashes and brackets never read as a paste.
|
|
35
|
+
*/
|
|
36
|
+
export declare function arrivedWhole(previous: string, next: string): boolean;
|
|
17
37
|
//# sourceMappingURL=phoneDraft.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phoneDraft.d.ts","sourceRoot":"","sources":["../../../src/fiat/phoneDraft.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"phoneDraft.d.ts","sourceRoot":"","sources":["../../../src/fiat/phoneDraft.ts"],"names":[],"mappings":"AAQA,OAAO,EAEL,KAAK,YAAY,EAKlB,MAAM,kBAAkB,CAAA;AAEzB;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAQ7E;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,YAAY,EACrB,QAAQ,EAAE,MAAM,EAChB,QAAQ,SAAK,GACZ,MAAM,CAgBR;AAKD,+EAA+E;AAC/E,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAiBrE;AAWD,kDAAkD;AAClD,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,YAAY,CAAA;IACrB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,gFAAgF;AAChF,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS,CAanE;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,YAAY,GACrB,YAAY,GAAG,SAAS,CAmB1B;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,YAAY,GACjB,YAAY,GAAG,SAAS,CAS1B;AAyDD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAEpE"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How a country writes its postal codes, where Google's address metadata
|
|
3
|
+
* (libaddressinput, chromium-i18n.appspot.com/ssl-address/data) and
|
|
4
|
+
* `postcode-validator` agree. Anywhere they disagree is on neither list, so
|
|
5
|
+
* the keyboard stays letters (`postalCodeCountries.drift.test.ts`).
|
|
6
|
+
*
|
|
7
|
+
* - `digits`: codes are written as digits alone. The US ZIP+4 extension and
|
|
8
|
+
* FR's space are optional, and neither is how the post office writes them.
|
|
9
|
+
* - `separated`: digits the country writes split by a hyphen or space
|
|
10
|
+
* (`12345-678`, `123 45`), which a number pad cannot type.
|
|
11
|
+
* - A country whose codes carry any letter (GB, CA, NL, IE, AR, MT, LV…), or
|
|
12
|
+
* that has no postal code, is on neither list.
|
|
13
|
+
*/
|
|
14
|
+
export type PostalCodeForm = 'digits' | 'separated';
|
|
15
|
+
export declare function postalCodeForm(alpha2: string | undefined): PostalCodeForm | undefined;
|
|
16
|
+
//# sourceMappingURL=postalCodeCountries.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postalCodeCountries.d.ts","sourceRoot":"","sources":["../../../src/fiat/postalCodeCountries.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,WAAW,CAAA;AAkBnD,wBAAgB,cAAc,CAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,GACzB,cAAc,GAAG,SAAS,CAS5B"}
|
|
@@ -2,8 +2,14 @@ export interface CoinbaseCheckoutSurfaceProps {
|
|
|
2
2
|
checkoutUrl: string;
|
|
3
3
|
/** Log context only — the contract says URL surfaces may carry none. */
|
|
4
4
|
environment: string;
|
|
5
|
+
readinessTiming?: {
|
|
6
|
+
attemptId: string;
|
|
7
|
+
selectedAt: number;
|
|
8
|
+
};
|
|
5
9
|
/** The button is drawn and can be pressed. */
|
|
6
|
-
onReady: (
|
|
10
|
+
onReady: (info: {
|
|
11
|
+
paintConfirmed: boolean;
|
|
12
|
+
}) => void;
|
|
7
13
|
/** The user paid; the transfer is theirs to run from here. */
|
|
8
14
|
onPaid: () => void;
|
|
9
15
|
/** Their polling saw the crypto sent. */
|
|
@@ -24,5 +30,5 @@ export interface CoinbaseCheckoutSurfaceProps {
|
|
|
24
30
|
* - the page paints no background of its own once told to, so the frame
|
|
25
31
|
* around it decides the button's shape
|
|
26
32
|
*/
|
|
27
|
-
export declare function CoinbaseCheckoutSurface({ checkoutUrl, environment, onReady, onPaid, onSucceeded, onFailed, }: CoinbaseCheckoutSurfaceProps): import("react").JSX.Element;
|
|
33
|
+
export declare function CoinbaseCheckoutSurface({ checkoutUrl, environment, readinessTiming, onReady, onPaid, onSucceeded, onFailed, }: CoinbaseCheckoutSurfaceProps): import("react").JSX.Element;
|
|
28
34
|
//# sourceMappingURL=CoinbaseCheckoutSurface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoinbaseCheckoutSurface.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/CoinbaseCheckoutSurface.tsx"],"names":[],"mappings":"AAwBA,MAAM,WAAW,4BAA4B;IAC3C,WAAW,EAAE,MAAM,CAAA;IACnB,wEAAwE;IACxE,WAAW,EAAE,MAAM,CAAA;IACnB,8CAA8C;IAC9C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"CoinbaseCheckoutSurface.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/CoinbaseCheckoutSurface.tsx"],"names":[],"mappings":"AAwBA,MAAM,WAAW,4BAA4B;IAC3C,WAAW,EAAE,MAAM,CAAA;IACnB,wEAAwE;IACxE,WAAW,EAAE,MAAM,CAAA;IACnB,eAAe,CAAC,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IAC3D,8CAA8C;IAC9C,OAAO,EAAE,CAAC,IAAI,EAAE;QAAE,cAAc,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAA;IACpD,8DAA8D;IAC9D,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,yCAAyC;IACzC,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;CAClD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,WAAW,EACX,WAAW,EACX,eAAe,EACf,OAAO,EACP,MAAM,EACN,WAAW,EACX,QAAQ,GACT,EAAE,4BAA4B,+BA0J9B"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { Surface, SurfaceResult } from '@funkit/connect-core';
|
|
1
|
+
import type { PreparedPayment, Surface, SurfaceResult } from '@funkit/connect-core';
|
|
2
2
|
import type { ComponentType, ReactNode } from 'react';
|
|
3
|
+
import type { FeeQuote } from '../stepDetails';
|
|
3
4
|
/**
|
|
4
5
|
* Who operates the control.
|
|
5
6
|
*
|
|
@@ -9,11 +10,18 @@ import type { ComponentType, ReactNode } from 'react';
|
|
|
9
10
|
* and there is no readiness to wait for.
|
|
10
11
|
*/
|
|
11
12
|
export type SurfaceControlModel = 'EMBEDDED' | 'HANDOFF';
|
|
13
|
+
export type ApplePayBackendStage = 'session_start' | 'session_verify' | 'payment_artifact';
|
|
12
14
|
/** What the screen lends a surface for as long as it runs. */
|
|
13
15
|
export interface SurfaceContext {
|
|
14
16
|
placement: 'INLINE' | 'SCREEN';
|
|
17
|
+
/** Inert quote-owned payment metadata that an auth surface may prewarm. */
|
|
18
|
+
preparedPayment?: PreparedPayment;
|
|
19
|
+
/** Quote selection clock, supplied only for embedded Apple Pay controls. */
|
|
20
|
+
readinessTiming?: ApplePayReadinessTiming;
|
|
15
21
|
/** Uncovers an `EMBEDDED` widget; a handoff has nothing to announce. */
|
|
16
|
-
onReady: (
|
|
22
|
+
onReady: (info?: {
|
|
23
|
+
paintConfirmed: boolean;
|
|
24
|
+
}) => void;
|
|
17
25
|
/**
|
|
18
26
|
* The provider gave up on this attempt; its machine will not recover.
|
|
19
27
|
*
|
|
@@ -36,8 +44,21 @@ export interface SurfaceContext {
|
|
|
36
44
|
* act on the news asks for it.
|
|
37
45
|
*/
|
|
38
46
|
onSettled?: () => void;
|
|
47
|
+
/** An authenticated provider quote can price fees after an unpriced auth round. */
|
|
48
|
+
onFeeQuote?: (quote: FeeQuote) => void;
|
|
39
49
|
report: (result: SurfaceResult) => void;
|
|
40
50
|
}
|
|
51
|
+
export interface ApplePayReadinessTiming {
|
|
52
|
+
attemptId: string;
|
|
53
|
+
selectedAt: number;
|
|
54
|
+
selectionReported?: boolean;
|
|
55
|
+
paintConfirmed?: boolean;
|
|
56
|
+
uncovered?: boolean;
|
|
57
|
+
interactiveReported?: boolean;
|
|
58
|
+
terminalOutcome?: 'interactive' | 'provider_failed' | 'dismissed' | 'superseded';
|
|
59
|
+
/** A paint arriving after the cover ceiling can complete readiness. */
|
|
60
|
+
onPaintConfirmed?: () => void;
|
|
61
|
+
}
|
|
41
62
|
/**
|
|
42
63
|
* Mounted once by a screen, above every place its surfaces can render — the
|
|
43
64
|
* amount slot and the page a handoff turns to — for state those mounts share.
|
|
@@ -49,13 +70,20 @@ export type SurfaceHost = ComponentType<{
|
|
|
49
70
|
export interface ClaimedSurface {
|
|
50
71
|
control: SurfaceControlModel;
|
|
51
72
|
render: (context: SurfaceContext) => ReactNode;
|
|
73
|
+
/**
|
|
74
|
+
* Until when (epoch ms) a surface the buyer dismissed may be mounted again on the same terms.
|
|
75
|
+
* Absent means never: the screen asks for a new quote instead. Only the provider knows what a
|
|
76
|
+
* reopen needs — Stripe's needs the sign-in credential the sheet arrived with.
|
|
77
|
+
*/
|
|
78
|
+
reopenableUntil?: number;
|
|
52
79
|
}
|
|
53
80
|
/**
|
|
54
81
|
* Claims a surface, or declines it.
|
|
55
82
|
*
|
|
56
|
-
* Each adapter narrows `params` itself
|
|
57
|
-
* narrows their shape, so one vendor can carry
|
|
58
|
-
* `(kind, provider)` plus a shape check is the
|
|
83
|
+
* Each adapter narrows `params` itself, through `readSurfaceParams`: the
|
|
84
|
+
* contract says `provider` never narrows their shape, so one vendor can carry
|
|
85
|
+
* two vocabularies and the pair `(kind, provider)` plus a shape check is the
|
|
86
|
+
* whole match. Binding the
|
|
59
87
|
* renderer to the narrowed params keeps that type inside the adapter rather
|
|
60
88
|
* than in a union the registry would have to carry.
|
|
61
89
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,OAAO,EACP,aAAa,EACd,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAE9C;;;;;;;GAOG;AACH,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG,SAAS,CAAA;AACxD,MAAM,MAAM,oBAAoB,GAC5B,eAAe,GACf,gBAAgB,GAChB,kBAAkB,CAAA;AAEtB,8DAA8D;AAC9D,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,QAAQ,GAAG,QAAQ,CAAA;IAC9B,2EAA2E;IAC3E,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC,4EAA4E;IAC5E,eAAe,CAAC,EAAE,uBAAuB,CAAA;IACzC,wEAAwE;IACxE,OAAO,EAAE,CAAC,IAAI,CAAC,EAAE;QAAE,cAAc,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAA;IACrD;;;;;;OAMG;IACH,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACjD,wEAAwE;IACxE,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,mFAAmF;IACnF,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,IAAI,CAAA;IACtC,MAAM,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,CAAA;CACxC;AAED,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;IAClB,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,eAAe,CAAC,EACZ,aAAa,GACb,iBAAiB,GACjB,WAAW,GACX,YAAY,CAAA;IAChB,uEAAuE;IACvE,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAA;CAC9B;AAED;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,aAAa,CAAC;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,CAAC,CAAA;AAEhE,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,mBAAmB,CAAA;IAC5B,MAAM,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,SAAS,CAAA;IAC9C;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB;AAED;;;;;;;;;GASG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK,cAAc,GAAG,SAAS,CAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ApplePayReadinessTiming } from './adapter';
|
|
1
2
|
/** The token a page's paint report names, if `data` is one. */
|
|
2
3
|
export declare function readApplePayPaintReport(data: string): string | undefined;
|
|
3
4
|
/**
|
|
@@ -10,10 +11,12 @@ export declare function applePayPaintedScript(token: string): string;
|
|
|
10
11
|
* Ready once the page has said so and Apple's button is on screen, so the
|
|
11
12
|
* slot, the fee and the footer all appear with the button rather than before.
|
|
12
13
|
*/
|
|
13
|
-
export declare function useApplePayPaintGate(onReady: (
|
|
14
|
+
export declare function useApplePayPaintGate(onReady: (info: {
|
|
15
|
+
paintConfirmed: boolean;
|
|
16
|
+
}) => void, log: {
|
|
14
17
|
provider: string;
|
|
15
18
|
environment: string;
|
|
16
|
-
}): {
|
|
19
|
+
}, checkoutTiming?: ApplePayReadinessTiming): {
|
|
17
20
|
paintToken: string;
|
|
18
21
|
markPageReady: () => void;
|
|
19
22
|
markPainted: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applePayPaintGate.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/applePayPaintGate.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"applePayPaintGate.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/applePayPaintGate.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAA;AAiBxD,+DAA+D;AAC/D,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAcxE;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CA0C3D;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,CAAC,IAAI,EAAE;IAAE,cAAc,EAAE,OAAO,CAAA;CAAE,KAAK,IAAI,EACpD,GAAG,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,EAC9C,cAAc,CAAC,EAAE,uBAAuB,GACvC;IACD,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,EAAE,MAAM,IAAI,CAAA;IACzB,WAAW,EAAE,MAAM,IAAI,CAAA;CACxB,CAoGA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"banxaRedirect.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/banxaRedirect.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"banxaRedirect.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/banxaRedirect.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;AAuB/D,0EAA0E;AAC1E,eAAO,MAAM,aAAa,EAAE,cAU3B,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { SurfaceAdapter } from './adapter';
|
|
1
|
+
import type { ApplePayBackendStage, SurfaceAdapter } from './adapter';
|
|
2
|
+
export declare function coinbaseBackendStage(endpoint: string): ApplePayBackendStage | undefined;
|
|
2
3
|
/**
|
|
3
4
|
* Coinbase's order arrives already made, with a hosted page that is nothing
|
|
4
5
|
* but its Apple Pay button. Embedded, then: the button takes the action's
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coinbaseApplePay.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/coinbaseApplePay.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"coinbaseApplePay.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/coinbaseApplePay.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,oBAAoB,EACpB,cAAc,EAEf,MAAM,WAAW,CAAA;AAQlB,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,MAAM,GACf,oBAAoB,GAAG,SAAS,CAQlC;AA6BD;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,EAAE,cAO9B,CAAA"}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import type { TFunction } from 'i18next';
|
|
2
|
+
/** A `title` marks a refusal the screen raises as its own alert. */
|
|
3
|
+
export type CoinbaseFailureCopy = {
|
|
4
|
+
title?: string;
|
|
5
|
+
message: string;
|
|
6
|
+
};
|
|
2
7
|
/**
|
|
3
8
|
* What the buyer is told when Coinbase's page refuses the payment.
|
|
4
9
|
*
|
|
@@ -10,5 +15,5 @@ import type { TFunction } from 'i18next';
|
|
|
10
15
|
* own generic line. One literal key per branch, as `t()` requires
|
|
11
16
|
* (`.ast-grep/rules/i18n-t-string-literal.yml`).
|
|
12
17
|
*/
|
|
13
|
-
export declare function coinbaseFailureCopy(code: string, t: TFunction):
|
|
18
|
+
export declare function coinbaseFailureCopy(code: string, t: TFunction): CoinbaseFailureCopy | undefined;
|
|
14
19
|
//# sourceMappingURL=coinbaseFailureCopy.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coinbaseFailureCopy.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/coinbaseFailureCopy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,EACZ,CAAC,EAAE,SAAS,GACX,
|
|
1
|
+
{"version":3,"file":"coinbaseFailureCopy.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/coinbaseFailureCopy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,oEAAoE;AACpE,MAAM,MAAM,mBAAmB,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAA;AAErE;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,EACZ,CAAC,EAAE,SAAS,GACX,mBAAmB,GAAG,SAAS,CAOjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"describeThrown.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/describeThrown.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"describeThrown.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/describeThrown.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CASrD"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { FiatProvider } from '@funkit/connect-core';
|
|
2
|
+
/**
|
|
3
|
+
* The faceplate a KYC form round opens on:
|
|
4
|
+
* - `none`: straight onto the fields
|
|
5
|
+
* - `consent`: "Let's verify your identity", which asks for the buyer's agreement
|
|
6
|
+
* - `stepUp`: "We need a little more info", for a quick round that follows an
|
|
7
|
+
* earlier one; it still asks for the agreement
|
|
8
|
+
*/
|
|
9
|
+
export type KycIntro = 'none' | 'consent' | 'stepUp';
|
|
10
|
+
/**
|
|
11
|
+
* Which faceplate a round opens on, from the provider and what the backend
|
|
12
|
+
* names on the round's submit transition: its round (`kycRound`) and the
|
|
13
|
+
* provider's own tier (`kycTier`). What a tier means differs by provider, so
|
|
14
|
+
* each provider answers for its own.
|
|
15
|
+
*/
|
|
16
|
+
export declare function kycIntroFor(provider: FiatProvider | undefined, params: {
|
|
17
|
+
kycRound?: unknown;
|
|
18
|
+
kycTier?: unknown;
|
|
19
|
+
} | undefined): KycIntro;
|
|
20
|
+
//# sourceMappingURL=kycIntro.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kycIntro.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/kycIntro.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAIxD;;;;;;GAMG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAA;AAEpD;;;;;GAKG;AACH,wBAAgB,WAAW,CACzB,QAAQ,EAAE,YAAY,GAAG,SAAS,EAClC,MAAM,EAAE;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,SAAS,GAC5D,QAAQ,CAOV"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
import type { PreparedPayment } from '@funkit/connect-core';
|
|
1
2
|
import { type ReactNode } from 'react';
|
|
2
|
-
import type { SurfaceAdapter } from './adapter';
|
|
3
|
+
import type { ApplePayBackendStage, SurfaceAdapter } from './adapter';
|
|
4
|
+
export declare function moonPayBackendStage(endpoint: string): ApplePayBackendStage | undefined;
|
|
5
|
+
export type MoonPayPreparedPayment = PreparedPayment;
|
|
6
|
+
/** Complete quote-owned payment artifact retained across auth verification. */
|
|
7
|
+
export declare function moonPayPreparedPayment(prepared: PreparedPayment | undefined): MoonPayPreparedPayment | undefined;
|
|
3
8
|
export declare const moonpay: SurfaceAdapter;
|
|
4
9
|
export declare function MoonPaySurfaceHost({ children }: {
|
|
5
10
|
children: ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"moonpay.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/moonpay.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"moonpay.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/moonpay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAW,MAAM,sBAAsB,CAAA;AAkBpE,OAAO,EACL,KAAK,SAAS,EAQf,MAAM,OAAO,CAAA;AASd,OAAO,KAAK,EACV,oBAAoB,EACpB,cAAc,EAEf,MAAM,WAAW,CAAA;AAgBlB,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,MAAM,GACf,oBAAoB,GAAG,SAAS,CAWlC;AAiBD,MAAM,MAAM,sBAAsB,GAAG,eAAe,CAAA;AAiDpD,+EAA+E;AAC/E,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,eAAe,GAAG,SAAS,GACpC,sBAAsB,GAAG,SAAS,CAyCpC;AASD,eAAO,MAAM,OAAO,EAAE,cAuDrB,CAAA;AAwID,wBAAgB,kBAAkB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAMvE"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
interface PaintSignalTransport {
|
|
2
|
+
handleWebViewMessage(data: string): void;
|
|
3
|
+
}
|
|
2
4
|
/** Consumes the page's paint report so MoonPay's router never sees it. */
|
|
3
|
-
export declare function wrapPaintSignal(proto:
|
|
4
|
-
/**
|
|
5
|
+
export declare function wrapPaintSignal(proto: PaintSignalTransport): void;
|
|
6
|
+
/** A MoonPay release without the transport export must not break the flow. */
|
|
5
7
|
export declare function installApplePayPaintSignal(): void;
|
|
6
8
|
export declare function onApplePayPainted(token: string, listener: () => void): () => void;
|
|
9
|
+
export {};
|
|
7
10
|
//# sourceMappingURL=moonpayApplePayPainted.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"moonpayApplePayPainted.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/moonpayApplePayPainted.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"moonpayApplePayPainted.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/moonpayApplePayPainted.ts"],"names":[],"mappings":"AAIA,UAAU,oBAAoB;IAC5B,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;CACzC;AAUD,0EAA0E;AAC1E,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,GAAG,IAAI,CAejE;AAED,8EAA8E;AAC9E,wBAAgB,0BAA0B,IAAI,IAAI,CAQjD;AAED,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,MAAM,IAAI,GACnB,MAAM,IAAI,CAOZ"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { FunkitTheme } from '../../theme/toRestyleTheme';
|
|
2
|
+
export interface MoonPayAuthPalette {
|
|
3
|
+
page: string;
|
|
4
|
+
field: string;
|
|
5
|
+
primary: string;
|
|
6
|
+
secondary: string;
|
|
7
|
+
fieldRadius: number;
|
|
8
|
+
}
|
|
9
|
+
/** The colours `FiatOtpScreen` draws with, so MoonPay's code page reads as ours. */
|
|
10
|
+
export declare function moonPayAuthPalette(theme: FunkitTheme): MoonPayAuthPalette;
|
|
11
|
+
/**
|
|
12
|
+
* - Keyed on MoonPay's semantic Tailwind classes: a class they rename stops
|
|
13
|
+
* matching and that element keeps MoonPay's own colour, rather than breaking.
|
|
14
|
+
* - `!important` because MoonPay's stylesheet loads after anything injected.
|
|
15
|
+
*/
|
|
16
|
+
export declare function moonPayAuthFrameRules(palette: MoonPayAuthPalette): string;
|
|
17
|
+
/** Installs {@link moonPayAuthFrameRules} and puts them back if the frame rebuilds its `<head>`. */
|
|
18
|
+
export declare function moonPayAuthFrameStyle(palette: MoonPayAuthPalette): string;
|
|
19
|
+
//# sourceMappingURL=moonpayAuthStyle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moonpayAuthStyle.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/moonpayAuthStyle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAG7D,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,oFAAoF;AACpF,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,WAAW,GAAG,kBAAkB,CAQzE;AAID;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,kBAAkB,GAAG,MAAM,CAYzE;AAED,oGAAoG;AACpG,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,kBAAkB,GAAG,MAAM,CAoBzE"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { FeeQuote } from '../stepDetails';
|
|
2
|
+
type FeeAmount = {
|
|
3
|
+
amount: string;
|
|
4
|
+
asset: {
|
|
5
|
+
code: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
/** The SDK's authenticated quote is the price used by the payment frame. */
|
|
9
|
+
export declare function moonPayFeeQuote(quote: {
|
|
10
|
+
source: {
|
|
11
|
+
amount: string;
|
|
12
|
+
asset: {
|
|
13
|
+
code: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
feeBehavior: 'inclusive' | 'exclusive';
|
|
17
|
+
fees: {
|
|
18
|
+
network?: FeeAmount;
|
|
19
|
+
moonpay?: FeeAmount;
|
|
20
|
+
ecosystem?: FeeAmount;
|
|
21
|
+
defi?: FeeAmount;
|
|
22
|
+
partner?: FeeAmount;
|
|
23
|
+
};
|
|
24
|
+
}): FeeQuote | undefined;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=moonpayFeeQuote.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moonpayFeeQuote.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/moonpayFeeQuote.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAE9C,KAAK,SAAS,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAA;AAE5D,4EAA4E;AAC5E,wBAAgB,eAAe,CAAC,KAAK,EAAE;IACrC,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE;YAAE,IAAI,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,CAAA;IACnD,WAAW,EAAE,WAAW,GAAG,WAAW,CAAA;IACtC,IAAI,EAAE;QACJ,OAAO,CAAC,EAAE,SAAS,CAAA;QACnB,OAAO,CAAC,EAAE,SAAS,CAAA;QACnB,SAAS,CAAC,EAAE,SAAS,CAAA;QACrB,IAAI,CAAC,EAAE,SAAS,CAAA;QAChB,OAAO,CAAC,EAAE,SAAS,CAAA;KACpB,CAAA;CACF,GAAG,QAAQ,GAAG,SAAS,CAiCvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stripeAuthorize.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/stripeAuthorize.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"stripeAuthorize.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/stripeAuthorize.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;AAE/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAOxD,yEAAyE;AACzE,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,kBAAkB,EAC1B,OAAO,EAAE,MAAM,GACd,cAAc,CAkBhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stripeCheckout.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/stripeCheckout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAMnD,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;AAK/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"stripeCheckout.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/stripeCheckout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAMnD,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;AAK/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAGxD,UAAU,oBAAoB;IAC5B,MAAM,EAAE,kBAAkB,CAAA;IAC1B,SAAS,EAAE,MAAM,CAAA;IACjB,gBAAgB,EAAE,MAAM,CAAA;IACxB,eAAe,EAAE,MAAM,CAAA;CACxB;AAED,wEAAwE;AACxE,MAAM,MAAM,2BAA2B,GAAG,CAAC,MAAM,EAAE;IACjD,gBAAgB,EAAE,MAAM,CAAA;IACxB,eAAe,EAAE,MAAM,CAAA;CACxB,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;AAErB,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,OAAO,GACf,oBAAoB,GAAG,SAAS,CAqBlC;AAED;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,kBAAkB,EAC1B,mBAAmB,EAAE,2BAA2B,GAC/C,cAAc,CAkBhB"}
|
|
@@ -18,6 +18,8 @@ export interface StripeKycReconciliation {
|
|
|
18
18
|
* may make to obtain one.
|
|
19
19
|
*/
|
|
20
20
|
export declare function matchStripeKycParams(surface: Surface): StripeKycReconciliation | undefined;
|
|
21
|
+
/** Stripe's L2 round: an ID check alone, with no L1 info sheet ahead of it. */
|
|
22
|
+
export declare function isStripeIdentityRound(surface: Surface): boolean;
|
|
21
23
|
/**
|
|
22
24
|
* `response` is required rather than optional: the pay sheet's adapter takes it
|
|
23
25
|
* optionally and this one was written without it at all, so every call on this
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stripeKyc.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/stripeKyc.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"stripeKyc.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/stripeKyc.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAInD,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;AAK/D,OAAO,KAAK,EAAE,kBAAkB,EAAqB,MAAM,gBAAgB,CAAA;AAG3E;;;;;GAKG;AACH,QAAA,MAAM,gBAAgB,4EAIZ,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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { KycIntro } from './kycIntro';
|
|
2
|
+
/**
|
|
3
|
+
* Stripe's own tiers, as the backend names them on the round (`kycTier`).
|
|
4
|
+
* Account creation opens on its fields. The rest of `l0` (the address) is the
|
|
5
|
+
* buyer's first identity check, so it asks for the agreement. `l1` is the
|
|
6
|
+
* quick text round after it, introduced as a step up; it still asks, so a
|
|
7
|
+
* buyer who lands on it first agrees too.
|
|
8
|
+
*/
|
|
9
|
+
export declare function stripeKycIntro(round: unknown, tier: unknown): KycIntro;
|
|
10
|
+
//# sourceMappingURL=stripeKycIntro.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stripeKycIntro.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/stripeKycIntro.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAE1C;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,GAAG,QAAQ,CAKtE"}
|
|
@@ -17,8 +17,8 @@ export declare function matchStripePayParams(surface: Surface): StripePayParams
|
|
|
17
17
|
* Not a failure: nothing is wrong, nothing needs reporting to support, and the
|
|
18
18
|
* only right answer is the quote screen they came from. Carried as a code
|
|
19
19
|
* rather than a separate channel because `onFailed` is the seam the surface
|
|
20
|
-
* already owns
|
|
21
|
-
*
|
|
20
|
+
* already owns. The screen raises no alert for this code and re-quotes, so the
|
|
21
|
+
* Apple Pay button comes back rather than the sheet.
|
|
22
22
|
*/
|
|
23
23
|
export declare const STRIPE_PAYMENT_CANCELLED = "collect_apple_pay:cancelled";
|
|
24
24
|
/** Stripe's real native sheet, deliberately restricted to Apple Pay. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stripePayment.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/stripePayment.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"stripePayment.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/stripePayment.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAKnD,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;AAC/D,OAAO,KAAK,EACV,kBAAkB,EAEnB,MAAM,gBAAgB,CAAA;AAQvB,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,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,GAChB,cAAc,CAwBhB;AA6DD,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM;;EAEhD;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAiC7D;AAeD,yFAAyF;AACzF,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,OAAO,GACb,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAgCzB;AAED,wBAAsB,eAAe,CACnC,MAAM,EAAE,kBAAkB,EAC1B,MAAM,EAAE,eAAe,EACvB,oBAAoB,CAAC,EAAE,MAAM,GAC5B,OAAO,CAAC,MAAM,CAAC,CA2GjB"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { FiatFlow, FormValues } from '@funkit/connect-core';
|
|
2
|
+
import type { StripeOnrampClient, StripeOnrampError } from './stripeOnramp';
|
|
3
|
+
/**
|
|
4
|
+
* The Stripe call an identity round makes before its answers go to the backend, or `undefined`
|
|
5
|
+
* when the round has none. Stripe's account is minted by its own SDK, so the account-creation
|
|
6
|
+
* round registers the Link user and the identity round attaches its fields. Every other round,
|
|
7
|
+
* and every other provider, is delivered by the backend.
|
|
8
|
+
*/
|
|
9
|
+
export declare function stripeRoundPush({ stripeOnramp, stepResponse, kycRound, values, verifiedEmail, }: {
|
|
10
|
+
stripeOnramp: StripeOnrampClient | undefined;
|
|
11
|
+
stepResponse: FiatFlow['stepResponse'];
|
|
12
|
+
kycRound: unknown;
|
|
13
|
+
values: FormValues;
|
|
14
|
+
verifiedEmail: unknown;
|
|
15
|
+
}): {
|
|
16
|
+
call: 'registerLinkUser' | 'attachKycInfo';
|
|
17
|
+
run: () => Promise<{
|
|
18
|
+
error?: StripeOnrampError;
|
|
19
|
+
}>;
|
|
20
|
+
} | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Which form a Stripe push belongs to, so a form that already pushed is not pushed again, or
|
|
23
|
+
* `undefined` for an unnamed round (an unset key must never match and block the first push).
|
|
24
|
+
*
|
|
25
|
+
* TEMPORARY — replace with ENG-6377, which deletes `formId`. Keyed on the round name plus the form
|
|
26
|
+
* id because the round name alone is not enough: Stripe's name-and-address form and the
|
|
27
|
+
* date-of-birth and SSN form after it are both `IDENTITY`, and keyed on the name the second push
|
|
28
|
+
* was skipped (ENG-6370). A form the backend re-asks keeps its id, so it still skips the repeat
|
|
29
|
+
* push, which Stripe would refuse.
|
|
30
|
+
*/
|
|
31
|
+
export declare function temporaryStripePushKey(kycRound: unknown, formId: unknown): string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Stripe refusing a push because it has already taken this buyer's identity: the values are there
|
|
34
|
+
* already, so the round is delivered, not failed. Measured when a backend re-asked a submitted `l1`
|
|
35
|
+
* (ENG-6429) — reading it as a failure left the buyer on an error with no way on, when sending the
|
|
36
|
+
* answers to the backend is what lets it hold them in review.
|
|
37
|
+
*/
|
|
38
|
+
export declare function stripeAlreadyHoldsIdentity(call: 'registerLinkUser' | 'attachKycInfo', error: StripeOnrampError): boolean;
|
|
39
|
+
//# sourceMappingURL=stripeRoundPush.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stripeRoundPush.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/stripeRoundPush.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAIhE,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAM3E;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,EAC9B,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,MAAM,EACN,aAAa,GACd,EAAE;IACD,YAAY,EAAE,kBAAkB,GAAG,SAAS,CAAA;IAC5C,YAAY,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAA;IACtC,QAAQ,EAAE,OAAO,CAAA;IACjB,MAAM,EAAE,UAAU,CAAA;IAClB,aAAa,EAAE,OAAO,CAAA;CACvB,GACG;IACE,IAAI,EAAE,kBAAkB,GAAG,eAAe,CAAA;IAC1C,GAAG,EAAE,MAAM,OAAO,CAAC;QAAE,KAAK,CAAC,EAAE,iBAAiB,CAAA;KAAE,CAAC,CAAA;CAClD,GACD,SAAS,CAsCZ;AAED;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,OAAO,EACjB,MAAM,EAAE,OAAO,GACd,MAAM,GAAG,SAAS,CAKpB;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,kBAAkB,GAAG,eAAe,EAC1C,KAAK,EAAE,iBAAiB,GACvB,OAAO,CAKT"}
|
|
@@ -6,6 +6,11 @@ import type { StripeOnrampClient } from './stripeOnramp';
|
|
|
6
6
|
* client can wake its Link session without a round trip of its own. Absent means no silent path.
|
|
7
7
|
*/
|
|
8
8
|
export declare function stripeSeamlessClientSecret(response: object | undefined, now?: number): string | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* When the response's silent sign-in credential lapses (epoch ms), `undefined` without one.
|
|
11
|
+
* An unreadable `expiresAt` counts as never, the same reading `stripeSeamlessClientSecret` gives it.
|
|
12
|
+
*/
|
|
13
|
+
export declare function stripeSeamlessExpiresAtMs(response: object | undefined): number | undefined;
|
|
9
14
|
/**
|
|
10
15
|
* Redeems the credential against the device's SDK. Never throws.
|
|
11
16
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stripeSeamlessSignIn.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/stripeSeamlessSignIn.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAExD;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,GAAG,GAAE,MAAmB,GACvB,MAAM,GAAG,SAAS,CA0BpB;AAED;;;;;;;GAOG;AACH,wBAAsB,0BAA0B,CAC9C,MAAM,EAAE,kBAAkB,EAC1B,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,OAAO,CAAC,CAelB"}
|
|
1
|
+
{"version":3,"file":"stripeSeamlessSignIn.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/stripeSeamlessSignIn.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAExD;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,GAAG,GAAE,MAAmB,GACvB,MAAM,GAAG,SAAS,CA0BpB;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CACvC,QAAQ,EAAE,MAAM,GAAG,SAAS,GAC3B,MAAM,GAAG,SAAS,CAgBpB;AAED;;;;;;;GAOG;AACH,wBAAsB,0BAA0B,CAC9C,MAAM,EAAE,kBAAkB,EAC1B,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,OAAO,CAAC,CAelB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stripeSessionAuth.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/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;
|
|
1
|
+
{"version":3,"file":"stripeSessionAuth.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/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,GACnC,eAAe,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sumsubKyc.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/sumsubKyc.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"sumsubKyc.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/sumsubKyc.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;AAQ/D,yEAAyE;AACzE,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;AAe1D;;;;;;GAMG;AACH;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,UAAU,GAAG,cAAc,CAQvE;AAED,4DAA4D;AAC5D,eAAO,MAAM,SAAS,EAAE,cAEvB,CAAA"}
|