@unifold/ui-react 0.1.64 → 0.1.66
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 +11 -4
- package/dist/index.d.ts +11 -4
- package/dist/index.js +417 -218
- package/dist/index.mjs +363 -162
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -229,8 +229,15 @@ interface DepositModalProps {
|
|
|
229
229
|
hideOverlay?: boolean;
|
|
230
230
|
/** First screen when the modal opens. Default `main` (deposit menu). */
|
|
231
231
|
initialScreen?: DepositModalInitialScreen;
|
|
232
|
+
/**
|
|
233
|
+
* Main menu layout.
|
|
234
|
+
* - `"stacked"` (default): all deposit options are stacked in a single list.
|
|
235
|
+
* - `"tabs"`: options are grouped under "Use Crypto" / "Use Cash" tabs to keep
|
|
236
|
+
* the menu compact and mobile-friendly.
|
|
237
|
+
*/
|
|
238
|
+
displayMode?: "stacked" | "tabs";
|
|
232
239
|
}
|
|
233
|
-
declare function DepositModal({ open, onOpenChange, userId, publishableKey, modalTitle, destinationTokenSymbol, recipientAddress, destinationChainType, destinationChainId, destinationTokenAddress, contractCalls, defaultSourceChainType, defaultSourceChainId, defaultSourceTokenAddress, defaultSourceSymbol, hideDepositTracker, showBalanceHeader, transferInputVariant, depositConfirmationMode, enableTransferCrypto, enableConnectWallet, browserWalletAmountQuickSelect, enablePayWithExchange, enableFiatOnramp, enableConnectExchange, enableCashApp, hideDepositFlowInfo, hideDisplayDescription, onDepositSuccess, onDepositError, onEvent, theme, hideOverlay, initialScreen, transferCryptoTitle, depositWithCardTitle, payWithExchangeTitle, depositTrackerTitle, depositTrackerSubTitle, }: DepositModalProps): react_jsx_runtime.JSX.Element;
|
|
240
|
+
declare function DepositModal({ open, onOpenChange, userId, publishableKey, modalTitle, destinationTokenSymbol, recipientAddress, destinationChainType, destinationChainId, destinationTokenAddress, contractCalls, defaultSourceChainType, defaultSourceChainId, defaultSourceTokenAddress, defaultSourceSymbol, hideDepositTracker, showBalanceHeader, transferInputVariant, depositConfirmationMode, enableTransferCrypto, enableConnectWallet, browserWalletAmountQuickSelect, enablePayWithExchange, enableFiatOnramp, enableConnectExchange, enableCashApp, hideDepositFlowInfo, hideDisplayDescription, onDepositSuccess, onDepositError, onEvent, theme, hideOverlay, initialScreen, displayMode, transferCryptoTitle, depositWithCardTitle, payWithExchangeTitle, depositTrackerTitle, depositTrackerSubTitle, }: DepositModalProps): react_jsx_runtime.JSX.Element;
|
|
234
241
|
|
|
235
242
|
interface DepositHeaderProps {
|
|
236
243
|
title: string;
|
|
@@ -244,7 +251,7 @@ interface DepositHeaderProps {
|
|
|
244
251
|
};
|
|
245
252
|
showBalance?: boolean;
|
|
246
253
|
balanceAddress?: string;
|
|
247
|
-
balanceChainType?:
|
|
254
|
+
balanceChainType?: ChainType;
|
|
248
255
|
balanceChainId?: string;
|
|
249
256
|
balanceTokenAddress?: string;
|
|
250
257
|
/** Project name for balance label e.g. "{projectName} Balance: $0.00" */
|
|
@@ -752,6 +759,8 @@ declare function WithdrawConfirmingView({ txInfo, executions, onClose, onViewTra
|
|
|
752
759
|
|
|
753
760
|
declare const HYPERCORE_CHAIN_ID = "1337";
|
|
754
761
|
|
|
762
|
+
declare function isHypercoreChain(chainId: string): boolean;
|
|
763
|
+
|
|
755
764
|
type DetectedWallet = {
|
|
756
765
|
name: string;
|
|
757
766
|
address: string;
|
|
@@ -779,14 +788,12 @@ declare function sendSolanaWithdraw(params: {
|
|
|
779
788
|
publishableKey: string;
|
|
780
789
|
}): Promise<string>;
|
|
781
790
|
|
|
782
|
-
declare function isHypercoreChain(chainId: string): boolean;
|
|
783
791
|
declare function sendHypercoreWithdraw(params: {
|
|
784
792
|
provider: EvmWalletProvider;
|
|
785
793
|
fromAddress: string;
|
|
786
794
|
depositWalletAddress: string;
|
|
787
795
|
sourceTokenAddress: string;
|
|
788
796
|
amount: string;
|
|
789
|
-
tokenSymbol: string;
|
|
790
797
|
publishableKey: string;
|
|
791
798
|
}): Promise<void>;
|
|
792
799
|
|
package/dist/index.d.ts
CHANGED
|
@@ -229,8 +229,15 @@ interface DepositModalProps {
|
|
|
229
229
|
hideOverlay?: boolean;
|
|
230
230
|
/** First screen when the modal opens. Default `main` (deposit menu). */
|
|
231
231
|
initialScreen?: DepositModalInitialScreen;
|
|
232
|
+
/**
|
|
233
|
+
* Main menu layout.
|
|
234
|
+
* - `"stacked"` (default): all deposit options are stacked in a single list.
|
|
235
|
+
* - `"tabs"`: options are grouped under "Use Crypto" / "Use Cash" tabs to keep
|
|
236
|
+
* the menu compact and mobile-friendly.
|
|
237
|
+
*/
|
|
238
|
+
displayMode?: "stacked" | "tabs";
|
|
232
239
|
}
|
|
233
|
-
declare function DepositModal({ open, onOpenChange, userId, publishableKey, modalTitle, destinationTokenSymbol, recipientAddress, destinationChainType, destinationChainId, destinationTokenAddress, contractCalls, defaultSourceChainType, defaultSourceChainId, defaultSourceTokenAddress, defaultSourceSymbol, hideDepositTracker, showBalanceHeader, transferInputVariant, depositConfirmationMode, enableTransferCrypto, enableConnectWallet, browserWalletAmountQuickSelect, enablePayWithExchange, enableFiatOnramp, enableConnectExchange, enableCashApp, hideDepositFlowInfo, hideDisplayDescription, onDepositSuccess, onDepositError, onEvent, theme, hideOverlay, initialScreen, transferCryptoTitle, depositWithCardTitle, payWithExchangeTitle, depositTrackerTitle, depositTrackerSubTitle, }: DepositModalProps): react_jsx_runtime.JSX.Element;
|
|
240
|
+
declare function DepositModal({ open, onOpenChange, userId, publishableKey, modalTitle, destinationTokenSymbol, recipientAddress, destinationChainType, destinationChainId, destinationTokenAddress, contractCalls, defaultSourceChainType, defaultSourceChainId, defaultSourceTokenAddress, defaultSourceSymbol, hideDepositTracker, showBalanceHeader, transferInputVariant, depositConfirmationMode, enableTransferCrypto, enableConnectWallet, browserWalletAmountQuickSelect, enablePayWithExchange, enableFiatOnramp, enableConnectExchange, enableCashApp, hideDepositFlowInfo, hideDisplayDescription, onDepositSuccess, onDepositError, onEvent, theme, hideOverlay, initialScreen, displayMode, transferCryptoTitle, depositWithCardTitle, payWithExchangeTitle, depositTrackerTitle, depositTrackerSubTitle, }: DepositModalProps): react_jsx_runtime.JSX.Element;
|
|
234
241
|
|
|
235
242
|
interface DepositHeaderProps {
|
|
236
243
|
title: string;
|
|
@@ -244,7 +251,7 @@ interface DepositHeaderProps {
|
|
|
244
251
|
};
|
|
245
252
|
showBalance?: boolean;
|
|
246
253
|
balanceAddress?: string;
|
|
247
|
-
balanceChainType?:
|
|
254
|
+
balanceChainType?: ChainType;
|
|
248
255
|
balanceChainId?: string;
|
|
249
256
|
balanceTokenAddress?: string;
|
|
250
257
|
/** Project name for balance label e.g. "{projectName} Balance: $0.00" */
|
|
@@ -752,6 +759,8 @@ declare function WithdrawConfirmingView({ txInfo, executions, onClose, onViewTra
|
|
|
752
759
|
|
|
753
760
|
declare const HYPERCORE_CHAIN_ID = "1337";
|
|
754
761
|
|
|
762
|
+
declare function isHypercoreChain(chainId: string): boolean;
|
|
763
|
+
|
|
755
764
|
type DetectedWallet = {
|
|
756
765
|
name: string;
|
|
757
766
|
address: string;
|
|
@@ -779,14 +788,12 @@ declare function sendSolanaWithdraw(params: {
|
|
|
779
788
|
publishableKey: string;
|
|
780
789
|
}): Promise<string>;
|
|
781
790
|
|
|
782
|
-
declare function isHypercoreChain(chainId: string): boolean;
|
|
783
791
|
declare function sendHypercoreWithdraw(params: {
|
|
784
792
|
provider: EvmWalletProvider;
|
|
785
793
|
fromAddress: string;
|
|
786
794
|
depositWalletAddress: string;
|
|
787
795
|
sourceTokenAddress: string;
|
|
788
796
|
amount: string;
|
|
789
|
-
tokenSymbol: string;
|
|
790
797
|
publishableKey: string;
|
|
791
798
|
}): Promise<void>;
|
|
792
799
|
|