@unifold/ui-react 0.1.55 → 0.1.57
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/dist/index.d.mts +59 -4
- package/dist/index.d.ts +59 -4
- package/dist/index.js +3969 -1610
- package/dist/index.mjs +3962 -1578
- package/dist/styles-base.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { AutoSwapResponse, ChainType, DepositEvent, Wallet, ProductType, FiatCurrency, ExecutionStatus, FeaturedToken, PaymentNetwork, DestinationToken, DestinationTokenChain, PaymentIntent, DepositQuote, SupportedDestinationTokensResponse, SupportedDepositTokensResponse, VerifyAddressResponse } from '@unifold/core';
|
|
2
|
+
import { AutoSwapResponse, ChainType, DepositEvent, Wallet, ProductType, FiatCurrency, ExecutionStatus, FeaturedToken, PaymentNetwork, ConfirmIntegrationTransferResult, DestinationToken, DestinationTokenChain, PaymentIntent, DepositQuote, SupportedDestinationTokensResponse, SupportedDepositTokensResponse, VerifyAddressResponse } from '@unifold/core';
|
|
3
3
|
export { ChainType } from '@unifold/core';
|
|
4
4
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
5
5
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
@@ -185,6 +185,8 @@ interface DepositModalProps {
|
|
|
185
185
|
browserWalletAmountQuickSelect?: BrowserWalletAmountQuickSelect;
|
|
186
186
|
/** Enable "Pay with Exchange" option. Overrides dashboard default. Defaults to dashboard value or true. */
|
|
187
187
|
enablePayWithExchange?: boolean;
|
|
188
|
+
/** Enable "Connect Exchange" option for direct Coinbase Connect integration. Defaults to false. */
|
|
189
|
+
enableConnectExchange?: boolean;
|
|
188
190
|
/** Enable "Pay with Cash App" option. Defaults to false. */
|
|
189
191
|
enableCashApp?: boolean;
|
|
190
192
|
/** Deposit with Card — onramp step: hide the You use / You buy / You receive card. @default false */
|
|
@@ -208,7 +210,7 @@ interface DepositModalProps {
|
|
|
208
210
|
/** First screen when the modal opens. Default `main` (deposit menu). */
|
|
209
211
|
initialScreen?: DepositModalInitialScreen;
|
|
210
212
|
}
|
|
211
|
-
declare function DepositModal({ open, onOpenChange, userId, publishableKey, modalTitle, destinationTokenSymbol, recipientAddress, destinationChainType, destinationChainId, destinationTokenAddress, defaultSourceChainType, defaultSourceChainId, defaultSourceTokenAddress, defaultSourceSymbol, hideDepositTracker, showBalanceHeader, transferInputVariant, depositConfirmationMode, enableConnectWallet, browserWalletAmountQuickSelect, enablePayWithExchange, enableCashApp, hideDepositFlowInfo, hideDisplayDescription, onDepositSuccess, onDepositError, onEvent, theme, hideOverlay, initialScreen, transferCryptoTitle, depositWithCardTitle, payWithExchangeTitle, depositTrackerTitle, depositTrackerSubTitle, }: DepositModalProps): react_jsx_runtime.JSX.Element;
|
|
213
|
+
declare function DepositModal({ open, onOpenChange, userId, publishableKey, modalTitle, destinationTokenSymbol, recipientAddress, destinationChainType, destinationChainId, destinationTokenAddress, defaultSourceChainType, defaultSourceChainId, defaultSourceTokenAddress, defaultSourceSymbol, hideDepositTracker, showBalanceHeader, transferInputVariant, depositConfirmationMode, enableConnectWallet, browserWalletAmountQuickSelect, enablePayWithExchange, enableConnectExchange, enableCashApp, hideDepositFlowInfo, hideDisplayDescription, onDepositSuccess, onDepositError, onEvent, theme, hideOverlay, initialScreen, transferCryptoTitle, depositWithCardTitle, payWithExchangeTitle, depositTrackerTitle, depositTrackerSubTitle, }: DepositModalProps): react_jsx_runtime.JSX.Element;
|
|
212
214
|
|
|
213
215
|
interface DepositHeaderProps {
|
|
214
216
|
title: string;
|
|
@@ -417,6 +419,30 @@ interface DepositWithCardButtonProps {
|
|
|
417
419
|
}
|
|
418
420
|
declare function DepositWithCardButton({ onClick, title, subtitle, paymentNetworks, }: DepositWithCardButtonProps): react_jsx_runtime.JSX.Element;
|
|
419
421
|
|
|
422
|
+
interface ExchangeIconInfo {
|
|
423
|
+
icon_url?: string;
|
|
424
|
+
icon_urls?: Array<{
|
|
425
|
+
url: string;
|
|
426
|
+
format: string;
|
|
427
|
+
}>;
|
|
428
|
+
service_provider_display_name?: string;
|
|
429
|
+
}
|
|
430
|
+
interface ConnectedExchangeInfo {
|
|
431
|
+
name: string;
|
|
432
|
+
iconUrl?: string;
|
|
433
|
+
balanceUsd: string | null;
|
|
434
|
+
isLoading?: boolean;
|
|
435
|
+
}
|
|
436
|
+
interface ConnectExchangeButtonProps {
|
|
437
|
+
onClick: () => void;
|
|
438
|
+
onDisconnect?: () => void;
|
|
439
|
+
title: string;
|
|
440
|
+
subtitle: string;
|
|
441
|
+
exchanges?: ExchangeIconInfo[];
|
|
442
|
+
connectedExchange?: ConnectedExchangeInfo | null;
|
|
443
|
+
}
|
|
444
|
+
declare function ConnectExchangeButton({ onClick, onDisconnect, title, subtitle, exchanges, connectedExchange, }: ConnectExchangeButtonProps): react_jsx_runtime.JSX.Element;
|
|
445
|
+
|
|
420
446
|
interface DepositTrackerButtonProps {
|
|
421
447
|
onClick: () => void;
|
|
422
448
|
title: string;
|
|
@@ -425,6 +451,33 @@ interface DepositTrackerButtonProps {
|
|
|
425
451
|
}
|
|
426
452
|
declare function DepositTrackerButton({ onClick, title, subtitle, badge, }: DepositTrackerButtonProps): react_jsx_runtime.JSX.Element;
|
|
427
453
|
|
|
454
|
+
interface DepositWallet {
|
|
455
|
+
id: string;
|
|
456
|
+
chain_type: string;
|
|
457
|
+
address: string;
|
|
458
|
+
}
|
|
459
|
+
interface CoinbaseConnectProps {
|
|
460
|
+
publishableKey: string;
|
|
461
|
+
userId: string;
|
|
462
|
+
wallets: DepositWallet[];
|
|
463
|
+
recipientAddress?: string;
|
|
464
|
+
destinationTokenAddress: string;
|
|
465
|
+
destinationChainId: string;
|
|
466
|
+
destinationChainType: string;
|
|
467
|
+
onTransferSuccess?: (result: ConfirmIntegrationTransferResult) => void;
|
|
468
|
+
onTransferError?: (error: {
|
|
469
|
+
message: string;
|
|
470
|
+
}) => void;
|
|
471
|
+
onClose?: () => void;
|
|
472
|
+
onBack?: () => void;
|
|
473
|
+
skipToHoldings?: boolean;
|
|
474
|
+
onExecutionsChange?: (executions: AutoSwapResponse[]) => void;
|
|
475
|
+
}
|
|
476
|
+
declare function CoinbaseConnect({ publishableKey, userId, wallets, recipientAddress, destinationTokenAddress, destinationChainId, destinationChainType, onTransferSuccess, onTransferError, onClose, onBack: parentOnBack, skipToHoldings, onExecutionsChange, }: CoinbaseConnectProps): react_jsx_runtime.JSX.Element | null;
|
|
477
|
+
declare namespace CoinbaseConnect {
|
|
478
|
+
var displayName: string;
|
|
479
|
+
}
|
|
480
|
+
|
|
428
481
|
interface DepositExecutionItemProps {
|
|
429
482
|
execution: AutoSwapResponse;
|
|
430
483
|
onClick?: () => void;
|
|
@@ -617,6 +670,7 @@ interface WithdrawFormProps {
|
|
|
617
670
|
recipientAddressProp?: string;
|
|
618
671
|
balanceData: AddressBalanceResult | null;
|
|
619
672
|
isLoadingBalance: boolean;
|
|
673
|
+
isStablecoin: boolean;
|
|
620
674
|
minimumWithdrawAmountUsd: number | null;
|
|
621
675
|
estimatedProcessingTime: number | null;
|
|
622
676
|
maxSlippagePercent: number | null;
|
|
@@ -646,7 +700,7 @@ interface WithdrawFormProps {
|
|
|
646
700
|
/** Optional element rendered on the left side of the footer row (e.g. tracker link) */
|
|
647
701
|
footerLeft?: React.ReactNode;
|
|
648
702
|
}
|
|
649
|
-
declare function WithdrawForm({ publishableKey, externalUserId, sourceChainType, selectedToken, selectedChain, sourceTokenSymbol, recipientAddressProp, balanceData, isLoadingBalance, minimumWithdrawAmountUsd, estimatedProcessingTime, maxSlippagePercent, priceImpactPercent, senderAddress, sourceChainId, sourceTokenAddress, onWithdraw, onWithdrawError, onDepositWalletCreation, onWithdrawSubmitted, footerLeft, }: WithdrawFormProps): react_jsx_runtime.JSX.Element;
|
|
703
|
+
declare function WithdrawForm({ publishableKey, externalUserId, sourceChainType, selectedToken, selectedChain, sourceTokenSymbol, recipientAddressProp, balanceData, isLoadingBalance, isStablecoin, minimumWithdrawAmountUsd, estimatedProcessingTime, maxSlippagePercent, priceImpactPercent, senderAddress, sourceChainId, sourceTokenAddress, onWithdraw, onWithdrawError, onDepositWalletCreation, onWithdrawSubmitted, footerLeft, }: WithdrawFormProps): react_jsx_runtime.JSX.Element;
|
|
650
704
|
|
|
651
705
|
interface WithdrawExecutionItemProps {
|
|
652
706
|
execution: AutoSwapResponse;
|
|
@@ -934,6 +988,7 @@ declare function useVerifyRecipientAddress(params: UseVerifyRecipientAddressPara
|
|
|
934
988
|
|
|
935
989
|
interface SourceTokenValidationResult {
|
|
936
990
|
isSupported: boolean;
|
|
991
|
+
isStablecoin: boolean;
|
|
937
992
|
minimumAmountUsd: number | null;
|
|
938
993
|
estimatedProcessingTime: number | null;
|
|
939
994
|
maxSlippagePercent: number | null;
|
|
@@ -1229,4 +1284,4 @@ declare function cn(...inputs: ClassValue[]): string;
|
|
|
1229
1284
|
*/
|
|
1230
1285
|
declare function truncateAddress(address: string, startChars?: number, endChars?: number): string;
|
|
1231
1286
|
|
|
1232
|
-
export { type AllowedCountryResult, type BrowserWalletAmountQuickSelect, Button, type ButtonProps, type ButtonTokens, BuyWithCard, type BuyWithCardProps, type CardTokens, CheckingForDepositIndicator, CheckoutModal, type CheckoutModalProps, type ComponentConfig, type ComponentOverrides, type ComponentTokens, ConfirmingView, type ContainerTokens, CurrencyListItem, CurrencyListSection, CurrencyModal, type CustomThemeColors, type DepositConfirmationMode, DepositDetailContent, DepositExecutionItem, DepositHeader, DepositModal, type DepositModalInitialScreen, type DepositModalProps, DepositSuccessToast, DepositTrackerButton, DepositWithCardButton, DepositsModal, type DetectedWallet, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, type EvmWalletProvider, type FontConfig, HYPERCORE_CHAIN_ID, type HeaderTokens, type InputTokens, type ListTokens, ManualDepositButton, type ResolvedFonts, type SearchTokens, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, type SolanaWalletProvider, StyledQRCode, type ThemeColors, type ThemeConfig, type ThemeMode, ThemeProvider, type ThemeProviderProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TransferCryptoButton, TransferCryptoDoubleInput, TransferCryptoSingleInput, type UseDepositQuoteParams, type UsePaymentIntentParams, type UseSupportedDepositTokensOptions, WithdrawConfirmingView, WithdrawDoubleInput, WithdrawExecutionItem, WithdrawForm, WithdrawModal, type WithdrawModalProps, WithdrawTokenSelector, type WithdrawTransactionInfo, buttonVariants, cn, colors, defaultColors, detectBrowserWallet, getColors, isHypercoreChain, mergeColors, resolveComponentTokens, sendEvmWithdraw, sendHypercoreWithdraw, sendSolanaWithdraw, truncateAddress, useAddressBalance, useAllowedCountry, useDepositPolling, useDepositQuote, usePaymentIntent, useSourceTokenValidation, useSupportedDepositTokens, useSupportedDestinationTokens, useTheme, useVerifyRecipientAddress, useWithdrawPolling };
|
|
1287
|
+
export { type AllowedCountryResult, type BrowserWalletAmountQuickSelect, Button, type ButtonProps, type ButtonTokens, BuyWithCard, type BuyWithCardProps, type CardTokens, CheckingForDepositIndicator, CheckoutModal, type CheckoutModalProps, CoinbaseConnect, type ComponentConfig, type ComponentOverrides, type ComponentTokens, ConfirmingView, ConnectExchangeButton, type ContainerTokens, CurrencyListItem, CurrencyListSection, CurrencyModal, type CustomThemeColors, type DepositConfirmationMode, DepositDetailContent, DepositExecutionItem, DepositHeader, DepositModal, type DepositModalInitialScreen, type DepositModalProps, DepositSuccessToast, DepositTrackerButton, DepositWithCardButton, DepositsModal, type DetectedWallet, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, type EvmWalletProvider, type FontConfig, HYPERCORE_CHAIN_ID, type HeaderTokens, type InputTokens, type ListTokens, ManualDepositButton, type ResolvedFonts, type SearchTokens, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, type SolanaWalletProvider, StyledQRCode, type ThemeColors, type ThemeConfig, type ThemeMode, ThemeProvider, type ThemeProviderProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TransferCryptoButton, TransferCryptoDoubleInput, TransferCryptoSingleInput, type UseDepositQuoteParams, type UsePaymentIntentParams, type UseSupportedDepositTokensOptions, WithdrawConfirmingView, WithdrawDoubleInput, WithdrawExecutionItem, WithdrawForm, WithdrawModal, type WithdrawModalProps, WithdrawTokenSelector, type WithdrawTransactionInfo, buttonVariants, cn, colors, defaultColors, detectBrowserWallet, getColors, isHypercoreChain, mergeColors, resolveComponentTokens, sendEvmWithdraw, sendHypercoreWithdraw, sendSolanaWithdraw, truncateAddress, useAddressBalance, useAllowedCountry, useDepositPolling, useDepositQuote, usePaymentIntent, useSourceTokenValidation, useSupportedDepositTokens, useSupportedDestinationTokens, useTheme, useVerifyRecipientAddress, useWithdrawPolling };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { AutoSwapResponse, ChainType, DepositEvent, Wallet, ProductType, FiatCurrency, ExecutionStatus, FeaturedToken, PaymentNetwork, DestinationToken, DestinationTokenChain, PaymentIntent, DepositQuote, SupportedDestinationTokensResponse, SupportedDepositTokensResponse, VerifyAddressResponse } from '@unifold/core';
|
|
2
|
+
import { AutoSwapResponse, ChainType, DepositEvent, Wallet, ProductType, FiatCurrency, ExecutionStatus, FeaturedToken, PaymentNetwork, ConfirmIntegrationTransferResult, DestinationToken, DestinationTokenChain, PaymentIntent, DepositQuote, SupportedDestinationTokensResponse, SupportedDepositTokensResponse, VerifyAddressResponse } from '@unifold/core';
|
|
3
3
|
export { ChainType } from '@unifold/core';
|
|
4
4
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
5
5
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
@@ -185,6 +185,8 @@ interface DepositModalProps {
|
|
|
185
185
|
browserWalletAmountQuickSelect?: BrowserWalletAmountQuickSelect;
|
|
186
186
|
/** Enable "Pay with Exchange" option. Overrides dashboard default. Defaults to dashboard value or true. */
|
|
187
187
|
enablePayWithExchange?: boolean;
|
|
188
|
+
/** Enable "Connect Exchange" option for direct Coinbase Connect integration. Defaults to false. */
|
|
189
|
+
enableConnectExchange?: boolean;
|
|
188
190
|
/** Enable "Pay with Cash App" option. Defaults to false. */
|
|
189
191
|
enableCashApp?: boolean;
|
|
190
192
|
/** Deposit with Card — onramp step: hide the You use / You buy / You receive card. @default false */
|
|
@@ -208,7 +210,7 @@ interface DepositModalProps {
|
|
|
208
210
|
/** First screen when the modal opens. Default `main` (deposit menu). */
|
|
209
211
|
initialScreen?: DepositModalInitialScreen;
|
|
210
212
|
}
|
|
211
|
-
declare function DepositModal({ open, onOpenChange, userId, publishableKey, modalTitle, destinationTokenSymbol, recipientAddress, destinationChainType, destinationChainId, destinationTokenAddress, defaultSourceChainType, defaultSourceChainId, defaultSourceTokenAddress, defaultSourceSymbol, hideDepositTracker, showBalanceHeader, transferInputVariant, depositConfirmationMode, enableConnectWallet, browserWalletAmountQuickSelect, enablePayWithExchange, enableCashApp, hideDepositFlowInfo, hideDisplayDescription, onDepositSuccess, onDepositError, onEvent, theme, hideOverlay, initialScreen, transferCryptoTitle, depositWithCardTitle, payWithExchangeTitle, depositTrackerTitle, depositTrackerSubTitle, }: DepositModalProps): react_jsx_runtime.JSX.Element;
|
|
213
|
+
declare function DepositModal({ open, onOpenChange, userId, publishableKey, modalTitle, destinationTokenSymbol, recipientAddress, destinationChainType, destinationChainId, destinationTokenAddress, defaultSourceChainType, defaultSourceChainId, defaultSourceTokenAddress, defaultSourceSymbol, hideDepositTracker, showBalanceHeader, transferInputVariant, depositConfirmationMode, enableConnectWallet, browserWalletAmountQuickSelect, enablePayWithExchange, enableConnectExchange, enableCashApp, hideDepositFlowInfo, hideDisplayDescription, onDepositSuccess, onDepositError, onEvent, theme, hideOverlay, initialScreen, transferCryptoTitle, depositWithCardTitle, payWithExchangeTitle, depositTrackerTitle, depositTrackerSubTitle, }: DepositModalProps): react_jsx_runtime.JSX.Element;
|
|
212
214
|
|
|
213
215
|
interface DepositHeaderProps {
|
|
214
216
|
title: string;
|
|
@@ -417,6 +419,30 @@ interface DepositWithCardButtonProps {
|
|
|
417
419
|
}
|
|
418
420
|
declare function DepositWithCardButton({ onClick, title, subtitle, paymentNetworks, }: DepositWithCardButtonProps): react_jsx_runtime.JSX.Element;
|
|
419
421
|
|
|
422
|
+
interface ExchangeIconInfo {
|
|
423
|
+
icon_url?: string;
|
|
424
|
+
icon_urls?: Array<{
|
|
425
|
+
url: string;
|
|
426
|
+
format: string;
|
|
427
|
+
}>;
|
|
428
|
+
service_provider_display_name?: string;
|
|
429
|
+
}
|
|
430
|
+
interface ConnectedExchangeInfo {
|
|
431
|
+
name: string;
|
|
432
|
+
iconUrl?: string;
|
|
433
|
+
balanceUsd: string | null;
|
|
434
|
+
isLoading?: boolean;
|
|
435
|
+
}
|
|
436
|
+
interface ConnectExchangeButtonProps {
|
|
437
|
+
onClick: () => void;
|
|
438
|
+
onDisconnect?: () => void;
|
|
439
|
+
title: string;
|
|
440
|
+
subtitle: string;
|
|
441
|
+
exchanges?: ExchangeIconInfo[];
|
|
442
|
+
connectedExchange?: ConnectedExchangeInfo | null;
|
|
443
|
+
}
|
|
444
|
+
declare function ConnectExchangeButton({ onClick, onDisconnect, title, subtitle, exchanges, connectedExchange, }: ConnectExchangeButtonProps): react_jsx_runtime.JSX.Element;
|
|
445
|
+
|
|
420
446
|
interface DepositTrackerButtonProps {
|
|
421
447
|
onClick: () => void;
|
|
422
448
|
title: string;
|
|
@@ -425,6 +451,33 @@ interface DepositTrackerButtonProps {
|
|
|
425
451
|
}
|
|
426
452
|
declare function DepositTrackerButton({ onClick, title, subtitle, badge, }: DepositTrackerButtonProps): react_jsx_runtime.JSX.Element;
|
|
427
453
|
|
|
454
|
+
interface DepositWallet {
|
|
455
|
+
id: string;
|
|
456
|
+
chain_type: string;
|
|
457
|
+
address: string;
|
|
458
|
+
}
|
|
459
|
+
interface CoinbaseConnectProps {
|
|
460
|
+
publishableKey: string;
|
|
461
|
+
userId: string;
|
|
462
|
+
wallets: DepositWallet[];
|
|
463
|
+
recipientAddress?: string;
|
|
464
|
+
destinationTokenAddress: string;
|
|
465
|
+
destinationChainId: string;
|
|
466
|
+
destinationChainType: string;
|
|
467
|
+
onTransferSuccess?: (result: ConfirmIntegrationTransferResult) => void;
|
|
468
|
+
onTransferError?: (error: {
|
|
469
|
+
message: string;
|
|
470
|
+
}) => void;
|
|
471
|
+
onClose?: () => void;
|
|
472
|
+
onBack?: () => void;
|
|
473
|
+
skipToHoldings?: boolean;
|
|
474
|
+
onExecutionsChange?: (executions: AutoSwapResponse[]) => void;
|
|
475
|
+
}
|
|
476
|
+
declare function CoinbaseConnect({ publishableKey, userId, wallets, recipientAddress, destinationTokenAddress, destinationChainId, destinationChainType, onTransferSuccess, onTransferError, onClose, onBack: parentOnBack, skipToHoldings, onExecutionsChange, }: CoinbaseConnectProps): react_jsx_runtime.JSX.Element | null;
|
|
477
|
+
declare namespace CoinbaseConnect {
|
|
478
|
+
var displayName: string;
|
|
479
|
+
}
|
|
480
|
+
|
|
428
481
|
interface DepositExecutionItemProps {
|
|
429
482
|
execution: AutoSwapResponse;
|
|
430
483
|
onClick?: () => void;
|
|
@@ -617,6 +670,7 @@ interface WithdrawFormProps {
|
|
|
617
670
|
recipientAddressProp?: string;
|
|
618
671
|
balanceData: AddressBalanceResult | null;
|
|
619
672
|
isLoadingBalance: boolean;
|
|
673
|
+
isStablecoin: boolean;
|
|
620
674
|
minimumWithdrawAmountUsd: number | null;
|
|
621
675
|
estimatedProcessingTime: number | null;
|
|
622
676
|
maxSlippagePercent: number | null;
|
|
@@ -646,7 +700,7 @@ interface WithdrawFormProps {
|
|
|
646
700
|
/** Optional element rendered on the left side of the footer row (e.g. tracker link) */
|
|
647
701
|
footerLeft?: React.ReactNode;
|
|
648
702
|
}
|
|
649
|
-
declare function WithdrawForm({ publishableKey, externalUserId, sourceChainType, selectedToken, selectedChain, sourceTokenSymbol, recipientAddressProp, balanceData, isLoadingBalance, minimumWithdrawAmountUsd, estimatedProcessingTime, maxSlippagePercent, priceImpactPercent, senderAddress, sourceChainId, sourceTokenAddress, onWithdraw, onWithdrawError, onDepositWalletCreation, onWithdrawSubmitted, footerLeft, }: WithdrawFormProps): react_jsx_runtime.JSX.Element;
|
|
703
|
+
declare function WithdrawForm({ publishableKey, externalUserId, sourceChainType, selectedToken, selectedChain, sourceTokenSymbol, recipientAddressProp, balanceData, isLoadingBalance, isStablecoin, minimumWithdrawAmountUsd, estimatedProcessingTime, maxSlippagePercent, priceImpactPercent, senderAddress, sourceChainId, sourceTokenAddress, onWithdraw, onWithdrawError, onDepositWalletCreation, onWithdrawSubmitted, footerLeft, }: WithdrawFormProps): react_jsx_runtime.JSX.Element;
|
|
650
704
|
|
|
651
705
|
interface WithdrawExecutionItemProps {
|
|
652
706
|
execution: AutoSwapResponse;
|
|
@@ -934,6 +988,7 @@ declare function useVerifyRecipientAddress(params: UseVerifyRecipientAddressPara
|
|
|
934
988
|
|
|
935
989
|
interface SourceTokenValidationResult {
|
|
936
990
|
isSupported: boolean;
|
|
991
|
+
isStablecoin: boolean;
|
|
937
992
|
minimumAmountUsd: number | null;
|
|
938
993
|
estimatedProcessingTime: number | null;
|
|
939
994
|
maxSlippagePercent: number | null;
|
|
@@ -1229,4 +1284,4 @@ declare function cn(...inputs: ClassValue[]): string;
|
|
|
1229
1284
|
*/
|
|
1230
1285
|
declare function truncateAddress(address: string, startChars?: number, endChars?: number): string;
|
|
1231
1286
|
|
|
1232
|
-
export { type AllowedCountryResult, type BrowserWalletAmountQuickSelect, Button, type ButtonProps, type ButtonTokens, BuyWithCard, type BuyWithCardProps, type CardTokens, CheckingForDepositIndicator, CheckoutModal, type CheckoutModalProps, type ComponentConfig, type ComponentOverrides, type ComponentTokens, ConfirmingView, type ContainerTokens, CurrencyListItem, CurrencyListSection, CurrencyModal, type CustomThemeColors, type DepositConfirmationMode, DepositDetailContent, DepositExecutionItem, DepositHeader, DepositModal, type DepositModalInitialScreen, type DepositModalProps, DepositSuccessToast, DepositTrackerButton, DepositWithCardButton, DepositsModal, type DetectedWallet, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, type EvmWalletProvider, type FontConfig, HYPERCORE_CHAIN_ID, type HeaderTokens, type InputTokens, type ListTokens, ManualDepositButton, type ResolvedFonts, type SearchTokens, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, type SolanaWalletProvider, StyledQRCode, type ThemeColors, type ThemeConfig, type ThemeMode, ThemeProvider, type ThemeProviderProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TransferCryptoButton, TransferCryptoDoubleInput, TransferCryptoSingleInput, type UseDepositQuoteParams, type UsePaymentIntentParams, type UseSupportedDepositTokensOptions, WithdrawConfirmingView, WithdrawDoubleInput, WithdrawExecutionItem, WithdrawForm, WithdrawModal, type WithdrawModalProps, WithdrawTokenSelector, type WithdrawTransactionInfo, buttonVariants, cn, colors, defaultColors, detectBrowserWallet, getColors, isHypercoreChain, mergeColors, resolveComponentTokens, sendEvmWithdraw, sendHypercoreWithdraw, sendSolanaWithdraw, truncateAddress, useAddressBalance, useAllowedCountry, useDepositPolling, useDepositQuote, usePaymentIntent, useSourceTokenValidation, useSupportedDepositTokens, useSupportedDestinationTokens, useTheme, useVerifyRecipientAddress, useWithdrawPolling };
|
|
1287
|
+
export { type AllowedCountryResult, type BrowserWalletAmountQuickSelect, Button, type ButtonProps, type ButtonTokens, BuyWithCard, type BuyWithCardProps, type CardTokens, CheckingForDepositIndicator, CheckoutModal, type CheckoutModalProps, CoinbaseConnect, type ComponentConfig, type ComponentOverrides, type ComponentTokens, ConfirmingView, ConnectExchangeButton, type ContainerTokens, CurrencyListItem, CurrencyListSection, CurrencyModal, type CustomThemeColors, type DepositConfirmationMode, DepositDetailContent, DepositExecutionItem, DepositHeader, DepositModal, type DepositModalInitialScreen, type DepositModalProps, DepositSuccessToast, DepositTrackerButton, DepositWithCardButton, DepositsModal, type DetectedWallet, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, type EvmWalletProvider, type FontConfig, HYPERCORE_CHAIN_ID, type HeaderTokens, type InputTokens, type ListTokens, ManualDepositButton, type ResolvedFonts, type SearchTokens, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, type SolanaWalletProvider, StyledQRCode, type ThemeColors, type ThemeConfig, type ThemeMode, ThemeProvider, type ThemeProviderProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TransferCryptoButton, TransferCryptoDoubleInput, TransferCryptoSingleInput, type UseDepositQuoteParams, type UsePaymentIntentParams, type UseSupportedDepositTokensOptions, WithdrawConfirmingView, WithdrawDoubleInput, WithdrawExecutionItem, WithdrawForm, WithdrawModal, type WithdrawModalProps, WithdrawTokenSelector, type WithdrawTransactionInfo, buttonVariants, cn, colors, defaultColors, detectBrowserWallet, getColors, isHypercoreChain, mergeColors, resolveComponentTokens, sendEvmWithdraw, sendHypercoreWithdraw, sendSolanaWithdraw, truncateAddress, useAddressBalance, useAllowedCountry, useDepositPolling, useDepositQuote, usePaymentIntent, useSourceTokenValidation, useSupportedDepositTokens, useSupportedDestinationTokens, useTheme, useVerifyRecipientAddress, useWithdrawPolling };
|