@funkit/connect-rn 11.3.1 → 12.0.1
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 +108 -0
- package/README.md +19 -13
- package/dist/{chunk-JM7562IY.js → chunk-G6PSBLQT.js} +298 -114
- package/dist/chunk-G6PSBLQT.js.map +7 -0
- package/dist/{chunk-PSO6DYOK.js → chunk-IEQWKP4M.js} +2 -2
- package/dist/{chunk-7SP2UUHA.js → chunk-QNUFRAJH.js} +77 -68
- package/dist/chunk-QNUFRAJH.js.map +7 -0
- package/dist/clients/lighter.js +1 -1
- package/dist/clients/nado.js +2 -2
- package/dist/clients/solana/index.d.ts +2 -2
- package/dist/clients/solana/index.d.ts.map +1 -1
- package/dist/clients/solana/solanaWithdrawal.d.ts +0 -6
- package/dist/clients/solana/solanaWithdrawal.d.ts.map +1 -1
- package/dist/clients/solana/useSolanaWithdrawal.d.ts +11 -6
- package/dist/clients/solana/useSolanaWithdrawal.d.ts.map +1 -1
- package/dist/clients/solana.js +23 -23
- package/dist/clients/solana.js.map +2 -2
- package/dist/index.js +47042 -44583
- package/dist/index.js.map +4 -4
- package/dist/preview.js +186 -1
- package/dist/preview.js.map +2 -2
- package/dist/src/components/BlurBand.d.ts +5 -1
- package/dist/src/components/BlurBand.d.ts.map +1 -1
- package/dist/src/components/ConnectedBadge.d.ts +9 -0
- package/dist/src/components/ConnectedBadge.d.ts.map +1 -1
- package/dist/src/components/GlassToast.d.ts +23 -0
- package/dist/src/components/GlassToast.d.ts.map +1 -0
- package/dist/src/components/Grabber.d.ts +3 -1
- package/dist/src/components/Grabber.d.ts.map +1 -1
- package/dist/src/components/PasteAddressPanel.d.ts.map +1 -1
- package/dist/src/components/PillButton.d.ts +5 -2
- package/dist/src/components/PillButton.d.ts.map +1 -1
- package/dist/src/components/v2/IconDisc.d.ts.map +1 -1
- package/dist/src/components/v2/ListRow.d.ts.map +1 -1
- package/dist/src/components/v2/PaymentMethodPicker.d.ts.map +1 -1
- package/dist/src/fiat/form/FiatFormScreen.d.ts.map +1 -1
- package/dist/src/fiat/form/formLayout.d.ts +1 -1
- package/dist/src/fiat/form/formLayout.d.ts.map +1 -1
- package/dist/src/fiat/kyc/FiatKycIntroScreen.d.ts +5 -1
- package/dist/src/fiat/kyc/FiatKycIntroScreen.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycFieldValidators.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycFormState.d.ts +8 -0
- package/dist/src/fiat/kyc/kycFormState.d.ts.map +1 -1
- package/dist/src/fiat/kyc/sectionDetail.d.ts.map +1 -1
- package/dist/src/fiat/payment/failoverKind.d.ts +19 -1
- package/dist/src/fiat/payment/failoverKind.d.ts.map +1 -1
- package/dist/src/fiat/payment/failoverPrompt.d.ts +13 -3
- package/dist/src/fiat/payment/failoverPrompt.d.ts.map +1 -1
- package/dist/src/fiat/payment/nextSwitchProvider.d.ts +21 -0
- package/dist/src/fiat/payment/nextSwitchProvider.d.ts.map +1 -0
- package/dist/src/fiat/payment/paymentSurfaceFailure.d.ts +5 -0
- package/dist/src/fiat/payment/paymentSurfaceFailure.d.ts.map +1 -1
- package/dist/src/fiat/payment/prefetchSwitch.d.ts +30 -0
- package/dist/src/fiat/payment/prefetchSwitch.d.ts.map +1 -0
- package/dist/src/fiat/payment/useFailoverLanding.d.ts +41 -0
- package/dist/src/fiat/payment/useFailoverLanding.d.ts.map +1 -0
- package/dist/src/fiat/payment/usePaymentFailureAnswer.d.ts +38 -3
- package/dist/src/fiat/payment/usePaymentFailureAnswer.d.ts.map +1 -1
- package/dist/src/fiat/payment/useStepShown.d.ts +8 -0
- package/dist/src/fiat/payment/useStepShown.d.ts.map +1 -0
- package/dist/src/fiat/processing/CompletionCheck.d.ts +3 -1
- package/dist/src/fiat/processing/CompletionCheck.d.ts.map +1 -1
- package/dist/src/fiat/processing/FailoverPrompt.d.ts +10 -0
- package/dist/src/fiat/processing/FailoverPrompt.d.ts.map +1 -1
- package/dist/src/fiat/processing/ProcessingFailure.d.ts +5 -0
- package/dist/src/fiat/processing/ProcessingFailure.d.ts.map +1 -1
- package/dist/src/fiat/providerFlow.d.ts +45 -3
- package/dist/src/fiat/providerFlow.d.ts.map +1 -1
- package/dist/src/fiat/providerHandoff.d.ts +4 -0
- package/dist/src/fiat/providerHandoff.d.ts.map +1 -1
- package/dist/src/fiat/providers/checkout/observePrefetch.d.ts +27 -0
- package/dist/src/fiat/providers/checkout/observePrefetch.d.ts.map +1 -0
- package/dist/src/fiat/providers/checkout/slotOutlets.d.ts +2 -0
- package/dist/src/fiat/providers/checkout/slotOutlets.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/coinbaseCardRefusal.d.ts +6 -0
- package/dist/src/fiat/providers/coinbase/coinbaseCardRefusal.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/next/coinbaseCheckoutTerms.d.ts +5 -0
- package/dist/src/fiat/providers/coinbase/next/coinbaseCheckoutTerms.d.ts.map +1 -0
- package/dist/src/fiat/providers/coinbase/next/index.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/next/prefetch.d.ts +28 -0
- package/dist/src/fiat/providers/coinbase/next/prefetch.d.ts.map +1 -0
- package/dist/src/fiat/providers/coinbase/next/useCoinbaseCheckout.d.ts +1 -1
- package/dist/src/fiat/providers/coinbase/next/useCoinbaseCheckout.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/fullCheckout/Checkout.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/fullCheckout/checkoutScreens.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/fullCheckout/moonPayCheckoutTerms.d.ts +6 -0
- package/dist/src/fiat/providers/moonpay/fullCheckout/moonPayCheckoutTerms.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/fullCheckout/prefetch.d.ts +28 -0
- package/dist/src/fiat/providers/moonpay/fullCheckout/prefetch.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/fullCheckout/useCheckoutCalls.d.ts +3 -1
- package/dist/src/fiat/providers/moonpay/fullCheckout/useCheckoutCalls.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/fullCheckout/useCheckoutModel.d.ts +2 -1
- package/dist/src/fiat/providers/moonpay/fullCheckout/useCheckoutModel.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/guestCheckout/Checkout.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/guestCheckout/checkoutScreens.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/guestCheckout/useGuestCheckoutModel.d.ts +3 -1
- package/dist/src/fiat/providers/moonpay/guestCheckout/useGuestCheckoutModel.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/index.d.ts +1 -1
- package/dist/src/fiat/providers/moonpay/index.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/sdk/Host.d.ts +7 -1
- package/dist/src/fiat/providers/moonpay/sdk/Host.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/Checkout.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/index.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/prefetch.d.ts +28 -0
- package/dist/src/fiat/providers/stripe/next/prefetch.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/next/stripeCheckoutTerms.d.ts +5 -0
- package/dist/src/fiat/providers/stripe/next/stripeCheckoutTerms.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/next/stripeIdentityChecks.d.ts +12 -0
- package/dist/src/fiat/providers/stripe/next/stripeIdentityChecks.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/next/useStripeAttestation.d.ts +20 -0
- package/dist/src/fiat/providers/stripe/next/useStripeAttestation.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/next/useStripeCheckout.d.ts +21 -1
- package/dist/src/fiat/providers/stripe/next/useStripeCheckout.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/useStripeCheckoutCalls.d.ts +3 -1
- package/dist/src/fiat/providers/stripe/next/useStripeCheckoutCalls.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/useStripeFunnel.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/useStripeIdentifiers.d.ts +30 -0
- package/dist/src/fiat/providers/stripe/next/useStripeIdentifiers.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/next/useStripeIdentity.d.ts +5 -2
- package/dist/src/fiat/providers/stripe/next/useStripeIdentity.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/useStripeKycForm.d.ts +26 -2
- package/dist/src/fiat/providers/stripe/next/useStripeKycForm.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/useStripePayment.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/useStripeReview.d.ts +10 -2
- package/dist/src/fiat/providers/stripe/next/useStripeReview.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/useStripeSignIn.d.ts +6 -0
- package/dist/src/fiat/providers/stripe/next/useStripeSignIn.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeApplePaySelection.d.ts +5 -0
- package/dist/src/fiat/providers/stripe/stripeApplePaySelection.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeCheckout.d.ts +5 -1
- package/dist/src/fiat/providers/stripe/stripeCheckout.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeEuCountries.d.ts +8 -0
- package/dist/src/fiat/providers/stripe/stripeEuCountries.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/stripeEuErrors.d.ts +16 -0
- package/dist/src/fiat/providers/stripe/stripeEuErrors.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/stripeIdentifierField.d.ts +23 -0
- package/dist/src/fiat/providers/stripe/stripeIdentifierField.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/stripeKycInfo.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeOnramp.d.ts +54 -0
- package/dist/src/fiat/providers/stripe/stripeOnramp.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeOnrampBridge.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/useStripeOnrampClient.d.ts +13 -1
- package/dist/src/fiat/providers/stripe/useStripeOnrampClient.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/useStripePayButton.d.ts +8 -4
- package/dist/src/fiat/providers/stripe/useStripePayButton.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/useStripeState.d.ts +2 -1
- package/dist/src/fiat/providers/stripe/useStripeState.d.ts.map +1 -1
- package/dist/src/fiat/quote/quoteRouting.d.ts +9 -1
- package/dist/src/fiat/quote/quoteRouting.d.ts.map +1 -1
- package/dist/src/fiat/useProviderCheckout.d.ts +11 -1
- package/dist/src/fiat/useProviderCheckout.d.ts.map +1 -1
- package/dist/src/flow/CryptoLearnMorePage.d.ts.map +1 -1
- package/dist/src/flow/CryptoTokenPage.d.ts.map +1 -1
- package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
- package/dist/src/flow/Drawer.d.ts +13 -2
- package/dist/src/flow/Drawer.d.ts.map +1 -1
- package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/FlowSheet.d.ts +11 -1
- package/dist/src/flow/FlowSheet.d.ts.map +1 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts +2 -0
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/PaymentMethodPickerSheet.d.ts +8 -1
- package/dist/src/flow/PaymentMethodPickerSheet.d.ts.map +1 -1
- package/dist/src/flow/TakeoverPages.d.ts +9 -0
- package/dist/src/flow/TakeoverPages.d.ts.map +1 -0
- package/dist/src/flow/WalletDepositStep.d.ts.map +1 -1
- package/dist/src/flow/checkoutHistory.d.ts +4 -0
- package/dist/src/flow/checkoutHistory.d.ts.map +1 -0
- package/dist/src/flow/depositFlowConfig.d.ts +2 -0
- package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
- package/dist/src/flow/paymentPickerFoot.d.ts +7 -0
- package/dist/src/flow/paymentPickerFoot.d.ts.map +1 -0
- package/dist/src/flow/quickAmounts.d.ts.map +1 -1
- package/dist/src/flow/renderFiatFlowScreen.d.ts +12 -3
- package/dist/src/flow/renderFiatFlowScreen.d.ts.map +1 -1
- package/dist/src/flow/sheetSizing.d.ts +10 -0
- package/dist/src/flow/sheetSizing.d.ts.map +1 -1
- package/dist/src/flow/useWalletDeposit.d.ts +8 -4
- package/dist/src/flow/useWalletDeposit.d.ts.map +1 -1
- package/dist/src/flow/walletFundingCopy.d.ts +27 -0
- package/dist/src/flow/walletFundingCopy.d.ts.map +1 -0
- package/dist/src/hooks/track/events.d.ts +1 -0
- package/dist/src/hooks/track/events.d.ts.map +1 -1
- package/dist/src/hooks/track/useDepositFlowEvents.d.ts.map +1 -1
- package/dist/src/hooks/track/useWithdrawalFlowEvents.d.ts.map +1 -1
- package/dist/src/hooks/usePressScale.d.ts +15 -2
- package/dist/src/hooks/usePressScale.d.ts.map +1 -1
- package/dist/src/icons/EmptyWalletArtwork.d.ts +10 -0
- package/dist/src/icons/EmptyWalletArtwork.d.ts.map +1 -0
- package/dist/src/icons/MinusCircleIcon.d.ts +4 -0
- package/dist/src/icons/MinusCircleIcon.d.ts.map +1 -0
- package/dist/src/icons/QrTileIcon.d.ts +6 -0
- package/dist/src/icons/QrTileIcon.d.ts.map +1 -0
- package/dist/src/preview/fixtures/kycForms.d.ts +5 -0
- package/dist/src/preview/fixtures/kycForms.d.ts.map +1 -1
- package/dist/src/preview/flowPreview.d.ts +18 -0
- package/dist/src/preview/flowPreview.d.ts.map +1 -1
- package/dist/src/preview/replay/recordedStripeOnramp.d.ts.map +1 -1
- package/dist/src/preview/scenarioCatalog.d.ts +42 -0
- package/dist/src/preview/scenarioCatalog.d.ts.map +1 -1
- package/dist/src/preview/scenarios.d.ts.map +1 -1
- package/dist/src/screens/PaymentConfirmScreen.d.ts +8 -4
- package/dist/src/screens/PaymentConfirmScreen.d.ts.map +1 -1
- package/dist/src/swapped/SwappedScreen.d.ts +6 -1
- package/dist/src/swapped/SwappedScreen.d.ts.map +1 -1
- package/dist/src/swapped/SwappedScreenShell.d.ts +13 -1
- package/dist/src/swapped/SwappedScreenShell.d.ts.map +1 -1
- package/dist/src/swapped/SwappedWebView.d.ts.map +1 -1
- package/dist/src/swapped/paymentNavigation.d.ts +0 -3
- package/dist/src/swapped/paymentNavigation.d.ts.map +1 -1
- package/dist/src/swapped/swappedV2Theme.d.ts +7 -0
- package/dist/src/swapped/swappedV2Theme.d.ts.map +1 -1
- package/dist/src/swapped/useSwappedEmbed.d.ts +3 -7
- package/dist/src/swapped/useSwappedEmbed.d.ts.map +1 -1
- package/dist/src/theme/buildFunkitTheme.d.ts +10 -0
- package/dist/src/theme/buildFunkitTheme.d.ts.map +1 -1
- package/dist/src/theme/restyle.d.ts +330 -0
- package/dist/src/theme/restyle.d.ts.map +1 -1
- package/dist/src/theme/toRestyleTheme.d.ts +30 -0
- package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
- package/dist/src/theme/typeScale.d.ts +60 -0
- package/dist/src/theme/typeScale.d.ts.map +1 -1
- package/dist/src/transfer/fops.d.ts +4 -2
- package/dist/src/transfer/fops.d.ts.map +1 -1
- package/dist/src/utils/withAlpha.d.ts +5 -0
- package/dist/src/utils/withAlpha.d.ts.map +1 -1
- package/package.json +4 -8
- package/dist/chunk-7SP2UUHA.js.map +0 -7
- package/dist/chunk-JM7562IY.js.map +0 -7
- package/dist/src/icons/CryptoTransferQRIcon.d.ts +0 -11
- package/dist/src/icons/CryptoTransferQRIcon.d.ts.map +0 -1
- package/dist/src/swapped/swappedV2Env.d.ts +0 -24
- package/dist/src/swapped/swappedV2Env.d.ts.map +0 -1
- /package/dist/{chunk-PSO6DYOK.js.map → chunk-IEQWKP4M.js.map} +0 -0
|
@@ -8,7 +8,11 @@ export type BandEdge = 'top' | 'bottom';
|
|
|
8
8
|
* below it, so the rows blur more the closer they sit to `edge`; the wash grades
|
|
9
9
|
* over the same band.
|
|
10
10
|
*/
|
|
11
|
-
export declare function BlurBand({ edge }: {
|
|
11
|
+
export declare function BlurBand({ edge, peak, wash, }: {
|
|
12
12
|
edge: BandEdge;
|
|
13
|
+
/** What the slice against `edge` blurs at. */
|
|
14
|
+
peak?: number;
|
|
15
|
+
/** The wash's opacity at `edge`. */
|
|
16
|
+
wash?: number;
|
|
13
17
|
}): import("react").JSX.Element;
|
|
14
18
|
//# sourceMappingURL=BlurBand.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlurBand.d.ts","sourceRoot":"","sources":["../../../src/components/BlurBand.tsx"],"names":[],"mappings":"AAOA,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,QAAQ,CAAA;AAEvC;;;;;;;;GAQG;AACH,wBAAgB,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE;
|
|
1
|
+
{"version":3,"file":"BlurBand.d.ts","sourceRoot":"","sources":["../../../src/components/BlurBand.tsx"],"names":[],"mappings":"AAOA,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,QAAQ,CAAA;AAEvC;;;;;;;;GAQG;AACH,wBAAgB,QAAQ,CAAC,EACvB,IAAI,EACJ,IAAqB,EACrB,IAAmB,GACpB,EAAE;IACD,IAAI,EAAE,QAAQ,CAAA;IACd,8CAA8C;IAC9C,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,oCAAoC;IACpC,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,+BAqCA"}
|
|
@@ -1,2 +1,11 @@
|
|
|
1
1
|
export declare function ConnectedBadge(): import("react").JSX.Element;
|
|
2
|
+
/**
|
|
3
|
+
* A row's status pill. Figma gives every status (Connected, Low balance) the
|
|
4
|
+
* same type and geometry; only the colors change.
|
|
5
|
+
*/
|
|
6
|
+
export declare function StatusBadge({ label, color, fill, }: {
|
|
7
|
+
label: string;
|
|
8
|
+
color: string;
|
|
9
|
+
fill: string;
|
|
10
|
+
}): import("react").JSX.Element;
|
|
2
11
|
//# sourceMappingURL=ConnectedBadge.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectedBadge.d.ts","sourceRoot":"","sources":["../../../src/components/ConnectedBadge.tsx"],"names":[],"mappings":"AAYA,wBAAgB,cAAc,
|
|
1
|
+
{"version":3,"file":"ConnectedBadge.d.ts","sourceRoot":"","sources":["../../../src/components/ConnectedBadge.tsx"],"names":[],"mappings":"AAYA,wBAAgB,cAAc,gCAW7B;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,KAAK,EACL,IAAI,GACL,EAAE;IACD,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;CACb,+BA2BA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { type StyleProp, type ViewStyle } from 'react-native';
|
|
3
|
+
/** How long the toast stays before its owner removes it: the entrance plus the spec's 3s hold. */
|
|
4
|
+
export declare const GLASS_TOAST_VISIBLE_MS: number;
|
|
5
|
+
/**
|
|
6
|
+
* A swipe-to-dismiss alert drawn on glass, so the screen blurs through it as
|
|
7
|
+
* an iOS banner does.
|
|
8
|
+
*
|
|
9
|
+
* - `children` draw over the glass: tints, scrims and the copy.
|
|
10
|
+
* - Without the glass pod the glass is the sheet's own fill (`fallback`).
|
|
11
|
+
* - It drops in when mounted and lifts out when its owner unmounts it.
|
|
12
|
+
*/
|
|
13
|
+
export declare function GlassToast({ onDismiss, style, cardStyle, radius, fallback, children, }: {
|
|
14
|
+
onDismiss: () => void;
|
|
15
|
+
/** Where the toast sits on the screen. */
|
|
16
|
+
style?: StyleProp<ViewStyle>;
|
|
17
|
+
/** The card's size and padding. */
|
|
18
|
+
cardStyle?: StyleProp<ViewStyle>;
|
|
19
|
+
radius: number;
|
|
20
|
+
fallback: string;
|
|
21
|
+
children: ReactNode;
|
|
22
|
+
}): import("react").JSX.Element;
|
|
23
|
+
//# sourceMappingURL=GlassToast.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GlassToast.d.ts","sourceRoot":"","sources":["../../../src/components/GlassToast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,EAAE,KAAK,SAAS,EAAoB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAA;AAgC/E,kGAAkG;AAClG,eAAO,MAAM,sBAAsB,QAAc,CAAA;AAqCjD;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,EACzB,SAAS,EACT,KAAK,EACL,SAAS,EACT,MAAM,EACN,QAAQ,EACR,QAAQ,GACT,EAAE;IACD,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,0CAA0C;IAC1C,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;IAC5B,mCAAmC;IACnC,SAAS,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;IAChC,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,SAAS,CAAA;CACpB,+BAyBA"}
|
|
@@ -3,6 +3,8 @@ export interface GrabberProps {
|
|
|
3
3
|
width?: number;
|
|
4
4
|
/** Distance from the sheet's top edge. */
|
|
5
5
|
top?: number;
|
|
6
|
+
/** Bar thickness; a drawer drawn to its own design may set a thinner one. */
|
|
7
|
+
height?: number;
|
|
6
8
|
/** Fade with the sheet's rise — see {@link useSheetFade}. */
|
|
7
9
|
fadeWithSheet?: boolean;
|
|
8
10
|
/** Bar colour; the theme's element border by default. */
|
|
@@ -16,5 +18,5 @@ export interface GrabberProps {
|
|
|
16
18
|
* `handleComponent={null}` to gorhom, or its default handle draws a second
|
|
17
19
|
* grabber above it.
|
|
18
20
|
*/
|
|
19
|
-
export declare function Grabber({ width, top, fadeWithSheet, color, hideWhenCovered, }: GrabberProps): import("react").JSX.Element;
|
|
21
|
+
export declare function Grabber({ width, top, height, fadeWithSheet, color, hideWhenCovered, }: GrabberProps): import("react").JSX.Element;
|
|
20
22
|
//# sourceMappingURL=Grabber.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Grabber.d.ts","sourceRoot":"","sources":["../../../src/components/Grabber.tsx"],"names":[],"mappings":"AAkBA,MAAM,WAAW,YAAY;IAC3B,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,0CAA0C;IAC1C,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,6DAA6D;IAC7D,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,yDAAyD;IACzD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,oFAAoF;IACpF,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,EACtB,KAAqB,EACrB,GAAiB,EACjB,aAAqB,EACrB,KAAK,EACL,eAAuB,GACxB,EAAE,YAAY,+
|
|
1
|
+
{"version":3,"file":"Grabber.d.ts","sourceRoot":"","sources":["../../../src/components/Grabber.tsx"],"names":[],"mappings":"AAkBA,MAAM,WAAW,YAAY;IAC3B,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,0CAA0C;IAC1C,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,6EAA6E;IAC7E,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,6DAA6D;IAC7D,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,yDAAyD;IACzD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,oFAAoF;IACpF,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,EACtB,KAAqB,EACrB,GAAiB,EACjB,MAAM,EACN,aAAqB,EACrB,KAAK,EACL,eAAuB,GACxB,EAAE,YAAY,+BAgCd"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PasteAddressPanel.d.ts","sourceRoot":"","sources":["../../../src/components/PasteAddressPanel.tsx"],"names":[],"mappings":"AAaA,MAAM,WAAW,sBAAsB;IACrC,oDAAoD;IACpD,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,OAAO,EACP,SAAiB,GAClB,EAAE,sBAAsB,+
|
|
1
|
+
{"version":3,"file":"PasteAddressPanel.d.ts","sourceRoot":"","sources":["../../../src/components/PasteAddressPanel.tsx"],"names":[],"mappings":"AAaA,MAAM,WAAW,sBAAsB;IACrC,oDAAoD;IACpD,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,OAAO,EACP,SAAiB,GAClB,EAAE,sBAAsB,+BAoDxB"}
|
|
@@ -2,7 +2,7 @@ import { type ReactNode } from 'react';
|
|
|
2
2
|
import { type TextProps } from '../theme/restyle';
|
|
3
3
|
import type { FunkitTheme } from '../theme/toRestyleTheme';
|
|
4
4
|
export type PillButtonSize = Extract<keyof FunkitTheme['sizes'], `button${string}`>;
|
|
5
|
-
export type PillButtonVariant = 'primary' | 'secondary';
|
|
5
|
+
export type PillButtonVariant = 'primary' | 'secondary' | 'tint';
|
|
6
6
|
interface LabelledPillButtonProps {
|
|
7
7
|
label: string;
|
|
8
8
|
labelVariant?: TextProps['variant'];
|
|
@@ -12,7 +12,10 @@ interface LabelledPillButtonProps {
|
|
|
12
12
|
/** Content pinned without shifting the centered label. */
|
|
13
13
|
trailingIcon?: ReactNode;
|
|
14
14
|
size?: PillButtonSize;
|
|
15
|
-
/**
|
|
15
|
+
/** A height off the size scale, for a chip smaller than any theme size. */
|
|
16
|
+
height?: number;
|
|
17
|
+
/** `secondary` is the quieter fill used for side-by-side actions; `tint` is
|
|
18
|
+
* an inline chip, the ink at 7% over whatever is behind it. */
|
|
16
19
|
variant?: PillButtonVariant;
|
|
17
20
|
/** `element` squares the corners off where the design butts the button
|
|
18
21
|
* against a card of the same radius. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PillButton.d.ts","sourceRoot":"","sources":["../../../src/components/PillButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAc,MAAM,OAAO,CAAA;AAYlD,OAAO,EAAa,KAAK,SAAS,EAAY,MAAM,kBAAkB,CAAA;AAGtE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"PillButton.d.ts","sourceRoot":"","sources":["../../../src/components/PillButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAc,MAAM,OAAO,CAAA;AAYlD,OAAO,EAAa,KAAK,SAAS,EAAY,MAAM,kBAAkB,CAAA;AAGtE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAI1D,MAAM,MAAM,cAAc,GAAG,OAAO,CAClC,MAAM,WAAW,CAAC,OAAO,CAAC,EAC1B,SAAS,MAAM,EAAE,CAClB,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,WAAW,GAAG,MAAM,CAAA;AAEhE,UAAU,uBAAuB;IAC/B,KAAK,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;IACnC,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,yDAAyD;IACzD,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,0DAA0D;IAC1D,YAAY,CAAC,EAAE,SAAS,CAAA;IACxB,IAAI,CAAC,EAAE,cAAc,CAAA;IACrB,2EAA2E;IAC3E,MAAM,CAAC,EAAE,MAAM,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,EAAE,MAAM,IAAI,CAAA;IACnB,kBAAkB,EAAE,MAAM,CAAA;CAC3B,+
|
|
1
|
+
{"version":3,"file":"IconDisc.d.ts","sourceRoot":"","sources":["../../../../src/components/v2/IconDisc.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAStC,yEAAyE;AACzE,eAAO,MAAM,cAAc,KAAK,CAAA;AAEhC;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;IAAK,IAAI;IAAM,MAAM;IAAM,KAAK;CAAM,CAAA;AAEtE;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,EACvB,IAAI,EACJ,YAAY,EACZ,OAAO,EACP,kBAAkB,GACnB,EAAE;IACD,IAAI,EAAE,SAAS,CAAA;IACf,YAAY,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;IAC7C,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,kBAAkB,EAAE,MAAM,CAAA;CAC3B,+BAqCA"}
|
|
@@ -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;aACnB,MAAM,EAAE,EAAE;aACV,MAAM,EAAE,EAAE;IACV,mFAAmF;aACnF,YAAY,EAAE,EAAE;aAChB,cAAc,EAAE,CAAC;aACjB,QAAQ,EAAE,EAAE;IACZ,6EAA6E;aAC7E,eAAe,EAAE,EAAE;IACnB,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,+FAA+F;IAC/F,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,+
|
|
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,6EAA6E;aAC7E,eAAe,EAAE,EAAE;IACnB,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,+FAA+F;IAC/F,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,+BA4Cd;AAMD,2DAA2D;AAC3D,wBAAgB,eAAe,gCAyB9B"}
|
|
@@ -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;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,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;IAClB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;CACf;AAED;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,KAAK,EACL,MAAM,EACN,WAAW,EACX,WAAW,EACX,IAAI,EACJ,OAAO,EACP,iBAAiB,EACjB,QAAgB,EAChB,IAAY,EACZ,UAAkB,EAClB,KAAK,GACN,EAAE,wBAAwB,GAAG;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,KAAK,CAAC,EAAE,iBAAiB,CAAA;CAC1B,+
|
|
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,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;IAClB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;CACf;AAED;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,KAAK,EACL,MAAM,EACN,WAAW,EACX,WAAW,EACX,IAAI,EACJ,OAAO,EACP,iBAAiB,EACjB,QAAgB,EAChB,IAAY,EACZ,UAAkB,EAClB,KAAK,GACN,EAAE,wBAAwB,GAAG;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,KAAK,CAAC,EAAE,iBAAiB,CAAA;CAC1B,+BA2IA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiatFormScreen.d.ts","sourceRoot":"","sources":["../../../../src/fiat/form/FiatFormScreen.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,aAAa,EACb,YAAY,EACZ,cAAc,EAEd,UAAU,EACV,SAAS,EACT,KAAK,EACN,MAAM,sBAAsB,CAAA;AA0B7B,OAAO,EAGL,KAAK,cAAc,EAapB,MAAM,cAAc,CAAA;AAqCrB,4EAA4E;AAC5E,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,cAAc,CAAA;IACpB,gFAAgF;IAChF,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,qEAAqE;IACrE,QAAQ,CAAC,EAAE,YAAY,CAAA;IACvB,MAAM,EAAE,UAAU,CAAA;IAClB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,UAAU,CAAA;IAC1B;;;;OAIG;IACH,cAAc,CAAC,EAAE,UAAU,CAAA;IAC3B,wEAAwE;IACxE,YAAY,CAAC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IAAI,EACJ,MAAM,GACP,EAAE,oBAAoB,sCAgmBtB"}
|
|
@@ -8,7 +8,7 @@ import { type TextInputProps } from 'react-native';
|
|
|
8
8
|
* is where a field the design never drew goes, so a form the server words its
|
|
9
9
|
* own way still renders.
|
|
10
10
|
*/
|
|
11
|
-
export type KycSection = 'NAME' | 'DOB' | 'NATIONALITY' | 'COUNTRY' | 'ADDRESS' | 'SSN' | 'PHONE' | 'OCCUPATION' | 'EMPLOYMENT' | 'PURPOSE' | 'SOURCE_OF_WEALTH' | 'INCOME' | 'NET_WORTH' | 'ACTIVITY' | 'DETAILS';
|
|
11
|
+
export type KycSection = 'NAME' | 'DOB' | 'NATIONALITY' | 'BIRTHPLACE' | 'COUNTRY' | 'ADDRESS' | 'SSN' | 'PHONE' | 'OCCUPATION' | 'EMPLOYMENT' | 'PURPOSE' | 'SOURCE_OF_WEALTH' | 'INCOME' | 'NET_WORTH' | 'ACTIVITY' | 'DETAILS';
|
|
12
12
|
export interface KycSectionPage {
|
|
13
13
|
section: KycSection;
|
|
14
14
|
/** Drawn as one card with a rule between rows, rather than loose boxes. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formLayout.d.ts","sourceRoot":"","sources":["../../../../src/fiat/form/formLayout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,sBAAsB,CAAA;AAEjE,OAAO,EAAY,KAAK,cAAc,EAAE,MAAM,cAAc,CAAA;AAQ5D;;;;;;;GAOG;AACH,MAAM,MAAM,UAAU,GAClB,MAAM,GACN,KAAK,GACL,aAAa,GACb,SAAS,GACT,SAAS,GACT,KAAK,GACL,OAAO,GACP,YAAY,GACZ,YAAY,GACZ,SAAS,GACT,kBAAkB,GAClB,QAAQ,GACR,WAAW,GACX,UAAU,GACV,SAAS,CAAA;AAEb,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,UAAU,CAAA;IACnB,2EAA2E;IAC3E,OAAO,EAAE,OAAO,CAAA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SAAS,SAAS,EAAE,GAAG,SAAS,EAAE,CAE3E;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,SAAS,SAAS,EAAE,GAAG,cAAc,EAAE,CAwC3E"}
|
|
@@ -4,7 +4,11 @@ import type { FiatProvider, KYCProvider, TermsDocument } from '@funkit/connect-c
|
|
|
4
4
|
* agreement: a step up follows a round that asked for none (Stripe's L1, after
|
|
5
5
|
* its L0 account creation).
|
|
6
6
|
*/
|
|
7
|
-
export type FiatKycIntroVariant = 'consent' | 'stepUp' | 'additionalInformation' | 'document'
|
|
7
|
+
export type FiatKycIntroVariant = 'consent' | 'stepUp' | 'additionalInformation' | 'document'
|
|
8
|
+
/** The provider's own terms, which its sheet asks the buyer to accept (Stripe's EU attestation). */
|
|
9
|
+
| 'terms'
|
|
10
|
+
/** `consent` for a buyer whose provider checks a photo ID and a selfie: every Stripe EU buyer. */
|
|
11
|
+
| 'idConsent';
|
|
8
12
|
export interface FiatKycIntroScreenProps {
|
|
9
13
|
provider?: FiatProvider;
|
|
10
14
|
/** Names the ID-verification vendor in the document round's copy. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiatKycIntroScreen.d.ts","sourceRoot":"","sources":["../../../../src/fiat/kyc/FiatKycIntroScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,WAAW,EACX,aAAa,EACd,MAAM,sBAAsB,CAAA;AAkB7B;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAC3B,SAAS,GACT,QAAQ,GACR,uBAAuB,GACvB,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"FiatKycIntroScreen.d.ts","sourceRoot":"","sources":["../../../../src/fiat/kyc/FiatKycIntroScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,WAAW,EACX,aAAa,EACd,MAAM,sBAAsB,CAAA;AAkB7B;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAC3B,SAAS,GACT,QAAQ,GACR,uBAAuB,GACvB,UAAU;AACZ,oGAAoG;GAClG,OAAO;AACT,kGAAkG;GAChG,WAAW,CAAA;AAEf,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,EAAE,YAAY,CAAA;IACvB,qEAAqE;IACrE,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,OAAO,CAAC,EAAE,mBAAmB,CAAA;IAC7B;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,aAAa,EAAE,CAAA;IACpC,4EAA4E;IAC5E,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,4DAA4D;IAC5D,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,mFAAmF;IACnF,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,wHAAwH;IACxH,cAAc,CAAC,EAAE,CAAC,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IAC9D,QAAQ,EAAE,MAAM,IAAI,CAAA;CACrB;AAED,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,WAAW,EACX,OAAmB,EACnB,SAAS,EACT,gBAAgB,EAChB,YAAoB,EACpB,OAAe,EACf,SAAgB,EAChB,UAAU,EACV,cAAc,EACd,QAAQ,GACT,EAAE,uBAAuB,+BA+DzB;AAED,0EAA0E;AAC1E,wBAAgB,oBAAoB,SAEnC"}
|
|
@@ -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,
|
|
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,EACL,KAAK,aAAa,EAInB,MAAM,gBAAgB,CAAA;AAEvB,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;;;;cAqBhC"}
|
|
@@ -60,6 +60,14 @@ export declare const MINIMUM_AGE_YEARS = 18;
|
|
|
60
60
|
* cannot fail someone on their birthday.
|
|
61
61
|
*/
|
|
62
62
|
export declare function underageIssue(value: string, today?: Date): 'DATE_UNDERAGE' | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* Whether a phone number is one its country actually hands out: the right
|
|
65
|
+
* length and leading digits for its calling code.
|
|
66
|
+
*
|
|
67
|
+
* The server's pattern takes a `+` and two to fifteen digits, so `+436` passed
|
|
68
|
+
* and Continue sent it. A blank answer is left to the required rule.
|
|
69
|
+
*/
|
|
70
|
+
export declare function phoneNumberIssue(value: string): 'PATTERN' | undefined;
|
|
63
71
|
/** Keep every rule alive when its field's page is unmounted. */
|
|
64
72
|
export declare function validateKycForm(form: FormDescriptor, values: FormValues): Record<string, KycFieldIssue>;
|
|
65
73
|
//# sourceMappingURL=kycFormState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
1
|
+
{"version":3,"file":"kycFormState.d.ts","sourceRoot":"","sources":["../../../../src/fiat/kyc/kyc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C,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAKrE;AAED,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":"sectionDetail.d.ts","sourceRoot":"","sources":["../../../../src/fiat/kyc/sectionDetail.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAEpE;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"sectionDetail.d.ts","sourceRoot":"","sources":["../../../../src/fiat/kyc/sectionDetail.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAEpE;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,GAAG,MAAM,CAmCvE;AAED;;;GAGG;AACH,wBAAgB,UAAU,CACxB,IAAI,EAAE,cAAc,EACpB,CAAC,EAAE,SAAS,EACZ,UAAU,CAAC,EAAE,MAAM,GAClB,MAAM,CAQR;AAED,sFAAsF;AACtF,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,CAAC,EAAE,SAAS,GACX,MAAM,CAYR;AAED,+DAA+D;AAC/D,wBAAgB,QAAQ,CACtB,IAAI,EAAE,cAAc,EACpB,CAAC,EAAE,SAAS,GACX,MAAM,GAAG,SAAS,CAQpB"}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
+
import type { FiatProvider } from '@funkit/connect-core';
|
|
1
2
|
import type { PaymentFailoverKind } from './providerFailover';
|
|
2
3
|
import { type PaymentFailureKind } from './paymentSurfaceFailure';
|
|
3
4
|
/**
|
|
4
5
|
* The fail state the failover sheet shows (Figma 5813-5533); `undefined`
|
|
5
6
|
* while the two-way payment-failed sheet answers instead.
|
|
6
7
|
*/
|
|
7
|
-
export type FailoverPromptKind = 'cardNotFound' | 'prepaidDeclined' | 'cardDeclined' | 'bankApproval' | 'insufficientFunds' | 'insufficientFundsAtMinimum'
|
|
8
|
+
export type FailoverPromptKind = 'cardNotFound' | 'prepaidDeclined' | 'cardDeclined' | 'bankApproval' | 'insufficientFunds' | 'insufficientFundsAtMinimum'
|
|
9
|
+
/** A card Coinbase or MoonPay declined, switched to another partner (product, 2026-11-04). */
|
|
10
|
+
| 'cardDeclinedSwitch'
|
|
11
|
+
/** A provider checkout's failure no other state names: try again, or another method (product, 2026-11-04). */
|
|
12
|
+
| 'fallback';
|
|
8
13
|
/**
|
|
9
14
|
* How long a closed Apple Pay sheet's card waits before it rises, so it
|
|
10
15
|
* follows the sheet out instead of racing it (product, 2026-11-02).
|
|
@@ -22,6 +27,19 @@ export declare function hostsPayButton(kind: FailoverPromptKind): boolean;
|
|
|
22
27
|
* buyer presses it (product, 2026-11-02).
|
|
23
28
|
*/
|
|
24
29
|
export declare function switchesProvider(kind: FailoverPromptKind): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* `/fiat/next` only: the fail state a provider checkout's failure gets when `failoverKindFor`
|
|
32
|
+
* names none (product, 2026-11-04).
|
|
33
|
+
* - Stripe's declined order is its card declined: another card, a debit one (plan state 5a).
|
|
34
|
+
* - A card Coinbase or MoonPay declined switches partner (plan state 1). With no partner left,
|
|
35
|
+
* Coinbase pays again from the declined sheet (plan 1d). MoonPay's decline spent its quote, so
|
|
36
|
+
* its next checkout waits for a tap the sheet can't host: the fallback's Try again starts it.
|
|
37
|
+
*/
|
|
38
|
+
export declare function nextFailoverKindFor({ code, provider, hasNextPartner, }: {
|
|
39
|
+
code: string;
|
|
40
|
+
provider: FiatProvider | undefined;
|
|
41
|
+
hasNextPartner: boolean;
|
|
42
|
+
}): FailoverPromptKind | undefined;
|
|
25
43
|
/**
|
|
26
44
|
* Which fail state answers a failure, if the design gives it one (ENG-7225).
|
|
27
45
|
* - A closed sheet and a prepaid decline offer a switch on Continue
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"failoverKind.d.ts","sourceRoot":"","sources":["../../../../src/fiat/payment/failoverKind.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"failoverKind.d.ts","sourceRoot":"","sources":["../../../../src/fiat/payment/failoverKind.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAIxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAC7D,OAAO,EAEL,KAAK,kBAAkB,EAExB,MAAM,yBAAyB,CAAA;AAEhC;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAC1B,cAAc,GACd,iBAAiB,GACjB,cAAc,GACd,cAAc,GACd,mBAAmB,GACnB,4BAA4B;AAC9B,8FAA8F;GAC5F,oBAAoB;AACtB,8GAA8G;GAC5G,UAAU,CAAA;AAEd;;;GAGG;AACH,eAAO,MAAM,0BAA0B,MAAM,CAAA;AAQ7C;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,kBAAkB,GAAG,SAAS,GACrC,mBAAmB,CAKrB;AAgBD,wBAAgB,cAAc,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAEhE;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAMlE;AAuBD;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,IAAI,EACJ,QAAQ,EACR,cAAc,GACf,EAAE;IACD,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,YAAY,GAAG,SAAS,CAAA;IAClC,cAAc,EAAE,OAAO,CAAA;CACxB,GAAG,kBAAkB,GAAG,SAAS,CAWjC;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,kBAAkB,EACxB,cAAc,UAAQ,GACrB,kBAAkB,GAAG,SAAS,CAiBhC;AAED,mFAAmF;AACnF,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEvD"}
|
|
@@ -7,14 +7,24 @@ import type { PaymentFailureAnswer } from './usePaymentFailureAnswer';
|
|
|
7
7
|
* with none, the verified hand-back while a failover's payment waits, or
|
|
8
8
|
* the daily limit's sheet.
|
|
9
9
|
*/
|
|
10
|
-
export declare function failoverPrompt(answer: Pick<PaymentFailureAnswer, 'failover' | 'dismiss' | 'requote' | 'recoverOnClose' | 'dismissOnClose'>, t: TFunction, verified?: {
|
|
10
|
+
export declare function failoverPrompt(answer: Pick<PaymentFailureAnswer, 'failover' | 'dismiss' | 'requote' | 'recoverOnClose' | 'dismissOnClose' | 'retry' | 'changeMethod' | 'canChangeMethod' | 'close'>, t: TFunction, verified?: {
|
|
11
11
|
onPay: () => void;
|
|
12
12
|
onClose: () => void;
|
|
13
|
-
}, limit?: FailoverPromptProps
|
|
13
|
+
}, limit?: FailoverPromptProps, landed?: {
|
|
14
|
+
onClose: () => void;
|
|
15
|
+
}, switching?: {
|
|
16
|
+
from: SwitchPromptKind;
|
|
17
|
+
onClose: () => void;
|
|
18
|
+
}): FailoverPromptProps | undefined;
|
|
19
|
+
/** The fail states whose Continue switches partners. */
|
|
20
|
+
export type SwitchPromptKind = Extract<FailoverPromptKind, 'cardNotFound' | 'prepaidDeclined' | 'cardDeclinedSwitch'>;
|
|
21
|
+
export declare function isSwitchPrompt(kind: FailoverPromptKind | undefined): kind is SwitchPromptKind;
|
|
14
22
|
/**
|
|
15
23
|
* What the verified hand-back does to the card sheet as the hold comes and
|
|
16
24
|
* goes. A hold that lifts under it (a poll moved the round on) leaves it
|
|
17
25
|
* nothing to show, and an empty card can't be closed.
|
|
18
26
|
*/
|
|
19
|
-
export declare function verifiedSheetMove(held: boolean, showing: string | null, failover: FailoverPromptKind | undefined
|
|
27
|
+
export declare function verifiedSheetMove(held: boolean, showing: string | null, failover: FailoverPromptKind | undefined,
|
|
28
|
+
/** The sheet a failover's Continue kept up has its own copy: no hold lifting empties it. */
|
|
29
|
+
switching?: boolean): 'open' | 'close' | undefined;
|
|
20
30
|
//# sourceMappingURL=failoverPrompt.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"failoverPrompt.d.ts","sourceRoot":"","sources":["../../../../src/fiat/payment/failoverPrompt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAErE;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,IAAI,CACV,oBAAoB,
|
|
1
|
+
{"version":3,"file":"failoverPrompt.d.ts","sourceRoot":"","sources":["../../../../src/fiat/payment/failoverPrompt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAErE;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,IAAI,CACV,oBAAoB,EAClB,UAAU,GACV,SAAS,GACT,SAAS,GACT,gBAAgB,GAChB,gBAAgB,GAChB,OAAO,GACP,cAAc,GACd,iBAAiB,GACjB,OAAO,CACV,EACD,CAAC,EAAE,SAAS,EACZ,QAAQ,CAAC,EAAE;IAAE,KAAK,EAAE,MAAM,IAAI,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,EACrD,KAAK,CAAC,EAAE,mBAAmB,EAC3B,MAAM,CAAC,EAAE;IAAE,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,EAChC,SAAS,CAAC,EAAE;IAAE,IAAI,EAAE,gBAAgB,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,GAC1D,mBAAmB,GAAG,SAAS,CAsHjC;AAED,wDAAwD;AACxD,MAAM,MAAM,gBAAgB,GAAG,OAAO,CACpC,kBAAkB,EAClB,cAAc,GAAG,iBAAiB,GAAG,oBAAoB,CAC1D,CAAA;AAED,wBAAgB,cAAc,CAC5B,IAAI,EAAE,kBAAkB,GAAG,SAAS,GACnC,IAAI,IAAI,gBAAgB,CAM1B;AAkDD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,OAAO,EACb,OAAO,EAAE,MAAM,GAAG,IAAI,EACtB,QAAQ,EAAE,kBAAkB,GAAG,SAAS;AACxC,4FAA4F;AAC5F,SAAS,UAAQ,GAChB,MAAM,GAAG,OAAO,GAAG,SAAS,CAO9B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { FiatProvider, ProviderSelection } from '@funkit/connect-core';
|
|
2
|
+
/**
|
|
3
|
+
* The partner a failover's switch would move the deposit to: the first other provider in the
|
|
4
|
+
* route whose own checkout this client runs, and that nothing shut out. `undefined` when none is
|
|
5
|
+
* left, so a sheet can offer no switch it cannot make.
|
|
6
|
+
*/
|
|
7
|
+
export declare function nextSwitchProvider({ failedProvider, order, selection, handoffs, }: {
|
|
8
|
+
failedProvider: FiatProvider;
|
|
9
|
+
/** The route's providers in order: the host's allow-list, else the routing table's. */
|
|
10
|
+
order: readonly FiatProvider[];
|
|
11
|
+
selection: ProviderSelection;
|
|
12
|
+
/** The providers whose own checkout this client runs. */
|
|
13
|
+
handoffs: readonly FiatProvider[];
|
|
14
|
+
}): FiatProvider | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* The route a switch picks from: the host's allow-list, else the routing table's order for the
|
|
17
|
+
* amount. Greptile on #8803: an allowed provider the table does not serve at this amount cannot
|
|
18
|
+
* take the deposit, so the allow-list keeps only those the table lists, once the table is known.
|
|
19
|
+
*/
|
|
20
|
+
export declare function switchRoute(hostProviders: readonly FiatProvider[] | undefined, tableProviders: readonly FiatProvider[] | undefined): readonly FiatProvider[];
|
|
21
|
+
//# sourceMappingURL=nextSwitchProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nextSwitchProvider.d.ts","sourceRoot":"","sources":["../../../../src/fiat/payment/nextSwitchProvider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAE3E;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,cAAc,EACd,KAAK,EACL,SAAS,EACT,QAAQ,GACT,EAAE;IACD,cAAc,EAAE,YAAY,CAAA;IAC5B,uFAAuF;IACvF,KAAK,EAAE,SAAS,YAAY,EAAE,CAAA;IAC9B,SAAS,EAAE,iBAAiB,CAAA;IAC5B,yDAAyD;IACzD,QAAQ,EAAE,SAAS,YAAY,EAAE,CAAA;CAClC,GAAG,YAAY,GAAG,SAAS,CAO3B;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CACzB,aAAa,EAAE,SAAS,YAAY,EAAE,GAAG,SAAS,EAClD,cAAc,EAAE,SAAS,YAAY,EAAE,GAAG,SAAS,GAClD,SAAS,YAAY,EAAE,CAQzB"}
|
|
@@ -36,6 +36,11 @@ export declare function endedOrderCode(order: Pick<FiatStepResponse, 'state'>):
|
|
|
36
36
|
export declare function paymentFailureKind(code: string): PaymentFailureKind;
|
|
37
37
|
/** A cancel the failover still answers: the host hears a cancel, the buyer sees the drawer. */
|
|
38
38
|
export declare function failsOverOnCancel(code: string): boolean;
|
|
39
|
+
/**
|
|
40
|
+
* A refusal made before the buyer was asked for anything: retrying that
|
|
41
|
+
* provider only reloads the same refusal, so a closed drawer moves on from it.
|
|
42
|
+
*/
|
|
43
|
+
export declare function failsOverUnasked(code: string): boolean;
|
|
39
44
|
/**
|
|
40
45
|
* What the amount screen does once a payment surface gave up.
|
|
41
46
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paymentSurfaceFailure.d.ts","sourceRoot":"","sources":["../../../../src/fiat/payment/paymentSurfaceFailure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,gBAAgB,EAChB,KAAK,EACL,OAAO,EACR,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"paymentSurfaceFailure.d.ts","sourceRoot":"","sources":["../../../../src/fiat/payment/paymentSurfaceFailure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,gBAAgB,EAChB,KAAK,EACL,OAAO,EACR,MAAM,sBAAsB,CAAA;AAU7B;;;;;;;;;GASG;AACH,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG,UAAU,GAAG,QAAQ,CAAA;AAEpE;;;;GAIG;AACH,eAAO,MAAM,YAAY,iBAAiB,CAAA;AAC1C,eAAO,MAAM,cAAc,mBAAmB,CAAA;AAC9C,eAAO,MAAM,cAAc,mBAAmB,CAAA;AAC9C,eAAO,MAAM,eAAe,oBAAoB,CAAA;AAShD,yFAAyF;AACzF,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAExD;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,MAAM,GAAG,cAAc,CAAC,GAC5C,MAAM,GAAG,SAAS,CAapB;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,IAAI,CAAC,gBAAgB,EAAE,OAAO,CAAC,GACrC,MAAM,GAAG,SAAS,CAmBpB;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,kBAAkB,CAiBnE;AAED,+FAA+F;AAC/F,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEvD;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEtD;AAED;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,KAAK,EACL,eAAe,EACf,GAAgB,GACjB,EAAE;IACD,KAAK,EAAE,OAAO,CAAA;IACd,eAAe,EAAE,MAAM,GAAG,SAAS,CAAA;IACnC,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,GAAG,MAAM,GAAG,SAAS,CAQrB;AAED;;;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"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { FiatDestinationAsset, FiatProvider, FiatRouteContext, ProviderSelection } from '@funkit/connect-core';
|
|
2
|
+
import type { HandoffQuote } from '../providerFlow';
|
|
3
|
+
/**
|
|
4
|
+
* Asks ahead what a failover's switch sheet would start, as the sheet is announced: the next
|
|
5
|
+
* provider's own `prefetch` sends its checkout's first step, for that checkout to take on Continue
|
|
6
|
+
* (product, 2026-11-09). Nothing switches until the buyer taps Continue.
|
|
7
|
+
* - The next provider is the first other one this client runs in the route: the host's
|
|
8
|
+
* allow-list, or the routing table's order for the amount. No quote is fetched for it.
|
|
9
|
+
* - What is asked, and what it costs, is each provider's own (its `prefetch.ts`).
|
|
10
|
+
*/
|
|
11
|
+
export declare function prefetchSwitch({ failedProvider, order, selection, handoffs, failedQuote, geo, depositAddress, destinationAsset, context, buyer, }: {
|
|
12
|
+
failedProvider: FiatProvider;
|
|
13
|
+
/** The route's providers in order: the host's allow-list, else the routing table's. */
|
|
14
|
+
order: readonly FiatProvider[];
|
|
15
|
+
selection: ProviderSelection;
|
|
16
|
+
/** The providers whose own checkout this client runs. */
|
|
17
|
+
handoffs: readonly FiatProvider[];
|
|
18
|
+
/** The failed checkout's quote: the next checkout is priced on the same terms. */
|
|
19
|
+
failedQuote: HandoffQuote | undefined;
|
|
20
|
+
geo: {
|
|
21
|
+
alpha2: string;
|
|
22
|
+
region?: string;
|
|
23
|
+
} | undefined;
|
|
24
|
+
depositAddress: string | undefined;
|
|
25
|
+
destinationAsset: FiatDestinationAsset | undefined;
|
|
26
|
+
context: FiatRouteContext;
|
|
27
|
+
/** `prefetchBuyerKey`: the answer is handed only to this buyer. */
|
|
28
|
+
buyer: string | undefined;
|
|
29
|
+
}): void;
|
|
30
|
+
//# sourceMappingURL=prefetchSwitch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prefetchSwitch.d.ts","sourceRoot":"","sources":["../../../../src/fiat/payment/prefetchSwitch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,sBAAsB,CAAA;AAG7B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAInD;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,EAC7B,cAAc,EACd,KAAK,EACL,SAAS,EACT,QAAQ,EACR,WAAW,EACX,GAAG,EACH,cAAc,EACd,gBAAgB,EAChB,OAAO,EACP,KAAK,GACN,EAAE;IACD,cAAc,EAAE,YAAY,CAAA;IAC5B,uFAAuF;IACvF,KAAK,EAAE,SAAS,YAAY,EAAE,CAAA;IAC9B,SAAS,EAAE,iBAAiB,CAAA;IAC5B,yDAAyD;IACzD,QAAQ,EAAE,SAAS,YAAY,EAAE,CAAA;IACjC,kFAAkF;IAClF,WAAW,EAAE,YAAY,GAAG,SAAS,CAAA;IACrC,GAAG,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAA;IACpD,cAAc,EAAE,MAAM,GAAG,SAAS,CAAA;IAClC,gBAAgB,EAAE,oBAAoB,GAAG,SAAS,CAAA;IAClD,OAAO,EAAE,gBAAgB,CAAA;IACzB,mEAAmE;IACnE,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;CAC1B,GAAG,IAAI,CAiCP"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { FiatProvider, UseFiatQuoteResult } from '@funkit/connect-core';
|
|
2
|
+
/**
|
|
3
|
+
* After Continue switches providers, the sheet hosts the next provider's pay button once its
|
|
4
|
+
* checkout reaches the payment step. The buyer never returns to the bare amount screen
|
|
5
|
+
* (product, 2026-11-06).
|
|
6
|
+
* - Once per run, and never for the provider the buyer left.
|
|
7
|
+
* - `land` answers whether the sheet should open now; the caller opens it.
|
|
8
|
+
* - `verified`: the sheet says "Verified" only after the buyer saw a sign-in, code or KYC step
|
|
9
|
+
* (product, 2026-11-09). With none, the sheet they tapped Continue on closes, and the amount
|
|
10
|
+
* screen offers the provider's Apple Pay.
|
|
11
|
+
* - `pageShown`: the next provider drew a page of its own (consent, KYC). The sheet the buyer
|
|
12
|
+
* tapped Continue on would sit over it, so it goes; "Verified" follows that page.
|
|
13
|
+
* - `refused`: the next provider's checkout refused the buyer or the amount and stopped. The
|
|
14
|
+
* sheet kept up for it goes, so the buyer sees the refusal on the amount screen.
|
|
15
|
+
* - `actionInPlace`: the checkout's action must stay on the amount screen (MoonPay's Apple Pay),
|
|
16
|
+
* so no sheet opens over it to host it, and the one kept up for it goes.
|
|
17
|
+
*/
|
|
18
|
+
export declare function useFailoverLanding(continuedFrom: FiatProvider | undefined): {
|
|
19
|
+
landed: boolean;
|
|
20
|
+
verified: boolean;
|
|
21
|
+
land: (provider: FiatProvider, sheetFree: boolean, stepsShown: boolean) => boolean;
|
|
22
|
+
pageShown: boolean;
|
|
23
|
+
showPage: () => void;
|
|
24
|
+
refused: boolean;
|
|
25
|
+
refuse: (provider: FiatProvider | undefined) => void;
|
|
26
|
+
actionInPlace: boolean;
|
|
27
|
+
placeAction: (inPlace: boolean) => void;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* The run's route came back to the provider the buyer's Continue left: the fetched routing table
|
|
31
|
+
* routes there, once no other provider took the deposit, at once or after the next one refused.
|
|
32
|
+
* A sheet that promised a switch has nothing to wait on. While the table refetches, or with only a
|
|
33
|
+
* quote's held handoff, the left one's handoff is the old one.
|
|
34
|
+
*/
|
|
35
|
+
export declare function routedBackToLeft(quote: Pick<UseFiatQuoteResult, 'handoff' | 'isRouting' | 'tableProvider'>, continuedFrom: FiatProvider | undefined): boolean;
|
|
36
|
+
/**
|
|
37
|
+
* The run's quote settled somewhere no provider checkout runs: a legacy route, or no route.
|
|
38
|
+
* A sheet a failover's Continue kept up has nothing there to wait on.
|
|
39
|
+
*/
|
|
40
|
+
export declare function quoteSettledWithoutHandoff(quote: Pick<UseFiatQuoteResult, 'handoff' | 'isQuoting' | 'isQuoteFresh' | 'quoteError' | 'noRoute'>): boolean;
|
|
41
|
+
//# sourceMappingURL=useFailoverLanding.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFailoverLanding.d.ts","sourceRoot":"","sources":["../../../../src/fiat/payment/useFailoverLanding.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAM5E;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,kBAAkB,CAAC,aAAa,EAAE,YAAY,GAAG,SAAS;;;qBAO5D,YAAY,aACX,OAAO,cACN,OAAO,KAClB,OAAO;;;;uBA8BgB,YAAY,GAAG,SAAS;;2BAUpB,OAAO;EAgBtC;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,IAAI,CAAC,kBAAkB,EAAE,SAAS,GAAG,WAAW,GAAG,eAAe,CAAC,EAC1E,aAAa,EAAE,YAAY,GAAG,SAAS,GACtC,OAAO,CAOT;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,IAAI,CACT,kBAAkB,EAClB,SAAS,GAAG,WAAW,GAAG,cAAc,GAAG,YAAY,GAAG,SAAS,CACpE,GACA,OAAO,CAST"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type FiatProvider, type FiatQuoteMinimum } from '@funkit/connect-core';
|
|
2
2
|
import type { DepositCardScreen } from '../processing/DepositCardSheet';
|
|
3
3
|
import type { NestedSheet } from '../../hooks/useNestedSheet';
|
|
4
|
+
import { type SwitchPromptKind } from './failoverPrompt';
|
|
4
5
|
import { type FailoverPromptKind } from './failoverKind';
|
|
5
6
|
import type { PaymentFailoverKind } from './providerFailover';
|
|
6
7
|
import type { PaymentReroute } from './paymentReroute';
|
|
@@ -35,8 +36,36 @@ export interface PaymentFailureAnswerOptions {
|
|
|
35
36
|
onRetry: (from: PaymentFailureSource) => void;
|
|
36
37
|
/** The payment-failed sheet swiped away with no row picked; `onRetry` when absent. */
|
|
37
38
|
onClosed?: (from: PaymentFailureSource) => void;
|
|
38
|
-
/**
|
|
39
|
-
|
|
39
|
+
/**
|
|
40
|
+
* "Try with a different provider": a new quote that puts the provider that failed last, or shuts it out.
|
|
41
|
+
* `tapped`: the buyer picked it on the sheet, so the next provider starts with no second tap.
|
|
42
|
+
* `kept`: the sheet stays up over the switch, showing this prompt's copy.
|
|
43
|
+
*/
|
|
44
|
+
onReroute: (failedProvider: FiatProvider, payment: PaymentFailoverKind, options?: {
|
|
45
|
+
tapped: boolean;
|
|
46
|
+
kept?: SwitchPromptKind;
|
|
47
|
+
}) => void;
|
|
48
|
+
/**
|
|
49
|
+
* A Continue that switches partners keeps the sheet up while the next provider starts.
|
|
50
|
+
* Absent or false: the sheet closes first, as on legacy.
|
|
51
|
+
*/
|
|
52
|
+
keepsSheetOnSwitch?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* A failure no fail state names opens the fallback sheet (try again, or another method) instead of
|
|
55
|
+
* the payment-failed sheet, which asked the buyer to pick a provider (product, 2026-11-04).
|
|
56
|
+
*/
|
|
57
|
+
fallsBack?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* A payment failure already moved this checkout to another partner. With `fallsBack`, a second
|
|
60
|
+
* switch is not offered: the fallback sheet answers instead (product, 2026-11-04). With MoonPay out
|
|
61
|
+
* there are two partners, so a second switch only returns to the one that failed, and repeated
|
|
62
|
+
* declines on one card make its bank likelier to block it.
|
|
63
|
+
*/
|
|
64
|
+
switchSpent?: boolean;
|
|
65
|
+
/** With `fallsBack`: whether a partner other than `failed` could take the deposit. */
|
|
66
|
+
hasNextPartner?: (failed: FiatProvider) => boolean;
|
|
67
|
+
/** A fail state whose Continue switches partners is up: what it would start can be asked ahead. */
|
|
68
|
+
onSwitchPrompted?: (failedProvider: FiatProvider) => void;
|
|
40
69
|
/** A fresh quote on the same terms: no provider known to leave out. */
|
|
41
70
|
onRequote: () => void;
|
|
42
71
|
/**
|
|
@@ -109,6 +138,10 @@ export interface PaymentFailureAnswer {
|
|
|
109
138
|
dismissOnClose: () => void;
|
|
110
139
|
/** Closes the sheet onto the amount, then opens the host's method picker. */
|
|
111
140
|
changeMethod: () => void;
|
|
141
|
+
/** The host gave the amount screen a method picker for `changeMethod` to open. */
|
|
142
|
+
canChangeMethod: boolean;
|
|
143
|
+
/** Closes the sheet with no row picked, as a swipe does. */
|
|
144
|
+
close: () => void;
|
|
112
145
|
/**
|
|
113
146
|
* The card holds the amount screen's action: from a fail state until the
|
|
114
147
|
* card closes, so a page paid from it lives on under the wait.
|
|
@@ -121,6 +154,8 @@ export interface PaymentFailureAnswer {
|
|
|
121
154
|
* - A fail state the design draws (`failoverKindFor`) opens the failover
|
|
122
155
|
* sheet instead, with its one way on.
|
|
123
156
|
* - A closed sheet the failover answers (`failsOverOnCancel`) is one of them.
|
|
157
|
+
* - A refusal made before the buyer was asked (`failsOverUnasked`) is not
|
|
158
|
+
* retried by a closed sheet: closing it drops that provider instead.
|
|
124
159
|
* - A fail state waits on no reroute probe: it switches or pays again at
|
|
125
160
|
* once, and stays up over the new run (ENG-7225). A closed sheet's card
|
|
126
161
|
* switches only on Continue; closed, it recovers as a plain cancel.
|
|
@@ -130,5 +165,5 @@ export interface PaymentFailureAnswer {
|
|
|
130
165
|
* reroute probe is keyed on the failure, and the failure is cleared by the
|
|
131
166
|
* recovery the buyer picks.
|
|
132
167
|
*/
|
|
133
|
-
export declare function usePaymentFailureAnswer({ sheet, attempts, provider, reroute, isRerouteSettled, skipped, onCancelled, onRetry, onClosed, onReroute, onRequote, onChangeMethod, loweredAmount, onLowerAmount, onRecover, held, onHold, }: PaymentFailureAnswerOptions): PaymentFailureAnswer;
|
|
168
|
+
export declare function usePaymentFailureAnswer({ sheet, attempts, provider, reroute, isRerouteSettled, skipped, onCancelled, onRetry, onClosed, onReroute, onRequote, onChangeMethod, loweredAmount, onLowerAmount, onRecover, held, onHold, keepsSheetOnSwitch, fallsBack, switchSpent, hasNextPartner, onSwitchPrompted, }: PaymentFailureAnswerOptions): PaymentFailureAnswer;
|
|
134
169
|
//# sourceMappingURL=usePaymentFailureAnswer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePaymentFailureAnswer.d.ts","sourceRoot":"","sources":["../../../../src/fiat/payment/usePaymentFailureAnswer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,gBAAgB,EAGtB,MAAM,sBAAsB,CAA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,EAClB,SAAS,EACT,SAAS,EACT,cAAc,EACd,aAAa,EACb,aAAa,EACb,SAAS,EACT,IAAI,EACJ,MAAM,EACN,kBAAkB,EAClB,SAAS,EACT,WAAW,EACX,cAAc,EACd,gBAAgB,GACjB,EAAE,2BAA2B,GAAG,oBAAoB,CA2YpD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether a provider checkout has shown the buyer one of its steps (a sign-in, a code or KYC),
|
|
3
|
+
* from `showing`, the step on screen now. Once true, it stays true for the checkout's life.
|
|
4
|
+
* - Answers what `slot.payable()` reports, so a failover never says "Verified" to a buyer who
|
|
5
|
+
* verified nothing.
|
|
6
|
+
*/
|
|
7
|
+
export declare function useStepShown(showing: boolean): boolean;
|
|
8
|
+
//# sourceMappingURL=useStepShown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useStepShown.d.ts","sourceRoot":"","sources":["../../../../src/fiat/payment/useStepShown.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAMtD"}
|
|
@@ -4,9 +4,11 @@ export declare const COMPLETION_CHECK_DRAW_MS: number;
|
|
|
4
4
|
* The success mark the wait ends on: its ring sweeps in, then the tick strokes
|
|
5
5
|
* across it with Apple Pay's success haptic. `onDrawn` fires as the tick lands.
|
|
6
6
|
*/
|
|
7
|
-
export declare function CompletionCheck({ size, color, onDrawn, }: {
|
|
7
|
+
export declare function CompletionCheck({ size, color, strokeWidth, onDrawn, }: {
|
|
8
8
|
size: number;
|
|
9
9
|
color: string;
|
|
10
|
+
/** On screen, in points; defaults to the mark's own 3 in 48. */
|
|
11
|
+
strokeWidth?: number;
|
|
10
12
|
onDrawn?: () => void;
|
|
11
13
|
}): import("react").JSX.Element;
|
|
12
14
|
//# sourceMappingURL=CompletionCheck.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompletionCheck.d.ts","sourceRoot":"","sources":["../../../../src/fiat/processing/CompletionCheck.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CompletionCheck.d.ts","sourceRoot":"","sources":["../../../../src/fiat/processing/CompletionCheck.tsx"],"names":[],"mappings":"AAwBA,uCAAuC;AACvC,eAAO,MAAM,wBAAwB,QAA0B,CAAA;AAE/D;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAC9B,IAAI,EACJ,KAAK,EACL,WAAW,EACX,OAAO,GACR,EAAE;IACD,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,gEAAgE;IAChE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB,+BA2EA"}
|