@nexus-cross/dapp-ui 1.0.5 → 1.1.0-beta.2
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.cjs +15 -14
- package/dist/index.d.cts +63 -4
- package/dist/index.d.ts +63 -4
- package/dist/index.js +15 -14
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -126,6 +126,14 @@ interface SendTransactionArgs {
|
|
|
126
126
|
gas?: bigint;
|
|
127
127
|
}
|
|
128
128
|
type SendTransactionFn = (args: SendTransactionArgs) => Promise<`0x${string}`>;
|
|
129
|
+
interface GetTransactionReceiptArgs {
|
|
130
|
+
hash: `0x${string}`;
|
|
131
|
+
chainId?: number;
|
|
132
|
+
}
|
|
133
|
+
interface TransactionReceiptResult {
|
|
134
|
+
status?: "success" | "reverted" | "0x1" | "0x0" | number | bigint | boolean;
|
|
135
|
+
}
|
|
136
|
+
type GetTransactionReceiptFn = (args: GetTransactionReceiptArgs) => Promise<TransactionReceiptResult | null | undefined>;
|
|
129
137
|
interface PoolToken {
|
|
130
138
|
address: string;
|
|
131
139
|
symbol: string;
|
|
@@ -240,7 +248,7 @@ type DexMarket = "cross" | "crossd" | "forge";
|
|
|
240
248
|
* dapp-ui가 렌더하는 outlink의 대분류.
|
|
241
249
|
* `portfolio`는 세부적으로 `origin`으로 더 나뉜다.
|
|
242
250
|
*/
|
|
243
|
-
type OutlinkCategory = "terms" | "privacy" | "portfolio";
|
|
251
|
+
type OutlinkCategory = "terms" | "privacy" | "portfolio" | "send";
|
|
244
252
|
/**
|
|
245
253
|
* `onOutlink` 콜백에 전달되는 호출 컨텍스트. `category` + `origin`으로
|
|
246
254
|
* 호출측이 목적지별 분기를 할 수 있고, `portfolio-*`의 경우 해당 섹션의
|
|
@@ -278,6 +286,13 @@ type OutlinkContext = {
|
|
|
278
286
|
order: DexOpenOrder;
|
|
279
287
|
pair?: DexPairInfo;
|
|
280
288
|
};
|
|
289
|
+
} | {
|
|
290
|
+
category: "send";
|
|
291
|
+
origin: "send-transaction";
|
|
292
|
+
payload: {
|
|
293
|
+
chainId: number;
|
|
294
|
+
txHash: `0x${string}`;
|
|
295
|
+
};
|
|
281
296
|
};
|
|
282
297
|
type OutlinkOrigin = OutlinkContext["origin"];
|
|
283
298
|
/**
|
|
@@ -294,6 +309,45 @@ type OutlinkOrigin = OutlinkContext["origin"];
|
|
|
294
309
|
*/
|
|
295
310
|
type OnOutlink = (link: string, ctx: OutlinkContext) => string | null | undefined | Promise<string | null | undefined>;
|
|
296
311
|
|
|
312
|
+
interface SendAsset {
|
|
313
|
+
name: string;
|
|
314
|
+
symbol: string;
|
|
315
|
+
chainId: number;
|
|
316
|
+
address: string;
|
|
317
|
+
quantity: {
|
|
318
|
+
decimals: number;
|
|
319
|
+
numeric: string;
|
|
320
|
+
};
|
|
321
|
+
icon_url: string;
|
|
322
|
+
}
|
|
323
|
+
type SendStatus = "idle" | "submitting" | "confirming" | "success" | "error";
|
|
324
|
+
interface RecentSendAddress {
|
|
325
|
+
address: `0x${string}`;
|
|
326
|
+
updatedAt: number;
|
|
327
|
+
}
|
|
328
|
+
interface SendAccount {
|
|
329
|
+
address: `0x${string}`;
|
|
330
|
+
index?: number;
|
|
331
|
+
name?: string;
|
|
332
|
+
}
|
|
333
|
+
interface SendPageProps {
|
|
334
|
+
env?: Environment;
|
|
335
|
+
theme?: Theme;
|
|
336
|
+
walletAddress: string;
|
|
337
|
+
accountName?: string;
|
|
338
|
+
accounts?: SendAccount[];
|
|
339
|
+
token: SendAsset;
|
|
340
|
+
tokens?: SendAsset[];
|
|
341
|
+
onTokenChange?: (token: SendAsset) => void;
|
|
342
|
+
sendTransaction?: SendTransactionFn;
|
|
343
|
+
getTransactionReceipt?: GetTransactionReceiptFn;
|
|
344
|
+
onSuccess?: (txHash: `0x${string}`) => void;
|
|
345
|
+
onConfirmSuccess?: () => void;
|
|
346
|
+
onOutlink?: OnOutlink;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
declare function SendPage({ env, theme, walletAddress, accounts, token, tokens, onTokenChange, sendTransaction, getTransactionReceipt, onSuccess, onConfirmSuccess, onOutlink, }: SendPageProps): react_jsx_runtime.JSX.Element;
|
|
350
|
+
|
|
297
351
|
interface WalletInfoTriggerProps {
|
|
298
352
|
asChild?: boolean;
|
|
299
353
|
className?: string;
|
|
@@ -333,6 +387,7 @@ interface WalletInfoProps {
|
|
|
333
387
|
qrLogoSrc?: string;
|
|
334
388
|
walletAddress: string;
|
|
335
389
|
accountName?: string;
|
|
390
|
+
sendAccounts?: SendAccount[];
|
|
336
391
|
/** 헤더 좌측에 표시될 프로필 이미지 URL. 미지정 시 주소 기반 그라디언트 아바타가 자동 생성됨. */
|
|
337
392
|
profileImageUrl?: string;
|
|
338
393
|
/** Resolves connectorName & connectorIconUrl from CONNECTOR_REGISTRY */
|
|
@@ -387,6 +442,7 @@ interface WalletInfoProps {
|
|
|
387
442
|
* wagmi의 `sendTransactionAsync`를 그대로 전달해도 호환된다.
|
|
388
443
|
*/
|
|
389
444
|
sendTransaction?: SendTransactionFn;
|
|
445
|
+
getTransactionReceipt?: GetTransactionReceiptFn;
|
|
390
446
|
/**
|
|
391
447
|
* Terms/Privacy · 포트폴리오 섹션 등 외부 링크 이동을 가로채는 콜백.
|
|
392
448
|
* `(url, ctx) => newUrl | null | undefined | Promise<...>` 형태이며
|
|
@@ -400,7 +456,7 @@ interface WalletInfoProps {
|
|
|
400
456
|
style?: WalletInfoStyle;
|
|
401
457
|
children: React.ReactNode;
|
|
402
458
|
}
|
|
403
|
-
declare function WalletInfoRoot({ env, theme, mobileBreakpoint, drawerDirection, modal, showBalance, showForgeToken, showGameToken, showQR, qrLogoSrc, walletAddress, accountName, profileImageUrl, connectorId, connectorName: connectorNameProp, connectorIconUrl: connectorIconUrlProp, preferredTokens, onSelectWallet, onCopyAddress, onDisconnect, disconnectLabel, termsUrl, termsLabel, privacyUrl, privacyLabel, open: propOpen, onOpenChange, showPortfolio, portfolioTitle, showTotalAssets, totalAssetsLabel, sendTransaction, onOutlink, style, children, }: WalletInfoProps): react_jsx_runtime.JSX.Element;
|
|
459
|
+
declare function WalletInfoRoot({ env, theme, mobileBreakpoint, drawerDirection, modal, showBalance, showForgeToken, showGameToken, showQR, qrLogoSrc, walletAddress, accountName, sendAccounts, profileImageUrl, connectorId, connectorName: connectorNameProp, connectorIconUrl: connectorIconUrlProp, preferredTokens, onSelectWallet, onCopyAddress, onDisconnect, disconnectLabel, termsUrl, termsLabel, privacyUrl, privacyLabel, open: propOpen, onOpenChange, showPortfolio, portfolioTitle, showTotalAssets, totalAssetsLabel, sendTransaction, getTransactionReceipt, onOutlink, style, children, }: WalletInfoProps): react_jsx_runtime.JSX.Element;
|
|
404
460
|
declare const WalletInfo: typeof WalletInfoRoot & {
|
|
405
461
|
Trigger: typeof WalletInfoTrigger;
|
|
406
462
|
Content: typeof WalletInfoContent;
|
|
@@ -803,6 +859,8 @@ interface ConnectButtonProps {
|
|
|
803
859
|
providerName?: string;
|
|
804
860
|
/** WalletInfo 헤더에 노출될 계정 라벨 (예: "Account 1", 사용자 지정 이름). */
|
|
805
861
|
accountName?: string;
|
|
862
|
+
/** Send 주소록의 My Account 탭에 노출할 계정 목록. */
|
|
863
|
+
sendAccounts?: SendAccount[];
|
|
806
864
|
/** disconnected 상태에서 버튼 클릭 핸들러. */
|
|
807
865
|
onConnect?: () => void;
|
|
808
866
|
/** connected 상태에서 WalletInfo 하단 Disconnect 클릭 핸들러. */
|
|
@@ -836,6 +894,7 @@ interface ConnectButtonProps {
|
|
|
836
894
|
connectorId?: ConnectorId;
|
|
837
895
|
style?: WalletInfoStyle;
|
|
838
896
|
sendTransaction?: SendTransactionFn;
|
|
897
|
+
getTransactionReceipt?: GetTransactionReceiptFn;
|
|
839
898
|
}
|
|
840
899
|
|
|
841
900
|
/**
|
|
@@ -850,7 +909,7 @@ interface ConnectButtonProps {
|
|
|
850
909
|
* 상태/데이터/콜백은 props로 주입받는다. 실제 wagmi 연결 로직은
|
|
851
910
|
* `@nexus-cross/connect-kit-react`의 상위 래퍼에서 수행한다.
|
|
852
911
|
*/
|
|
853
|
-
declare function ConnectButton({ isConnecting, address, provider, providerName, accountName, onConnect, onDisconnect, onCopy, onSelectWallet, label, connectingLabel, disconnectLabel, className, theme, env, showBalance, showPortfolio, drawerDirection, modal, connectorId, style, sendTransaction, }: ConnectButtonProps): react_jsx_runtime.JSX.Element;
|
|
912
|
+
declare function ConnectButton({ isConnecting, address, provider, providerName, accountName, sendAccounts, onConnect, onDisconnect, onCopy, onSelectWallet, label, connectingLabel, disconnectLabel, className, theme, env, showBalance, showPortfolio, drawerDirection, modal, connectorId, style, sendTransaction, getTransactionReceipt, }: ConnectButtonProps): react_jsx_runtime.JSX.Element;
|
|
854
913
|
|
|
855
914
|
/**
|
|
856
915
|
* Wallet provider icons used by `ConnectButton`. Ported from
|
|
@@ -872,4 +931,4 @@ declare const BINANCE_ICON: string;
|
|
|
872
931
|
declare const GOOGLE_ICON: string;
|
|
873
932
|
declare const APPLE_ICON: string;
|
|
874
933
|
|
|
875
|
-
export { APPLE_ICON, AppLauncher, AppLauncherContent, type AppLauncherContentProps, type AppLauncherProps, AppLauncherTrigger, type AppLauncherTriggerProps, BINANCE_ICON, CONNECTOR_REGISTRY, CROSSX_ICON, type ChainId, ConnectButton, type ConnectButtonProps, ConnectorId, type ConnectorMeta, type DrawerDirection$1 as DrawerDirection, type Environment, GOOGLE_ICON, type GlobalMenu, type GlobalMenuItem, type GlobalMenuItemUrl, METAMASK_ICON, type OnOutlink, type OutlinkCategory, type OutlinkContext, type OutlinkOrigin, type PreferredToken, type SendTransactionArgs, type SendTransactionFn, TOKEN_STATS_QUERY_KEY, type Theme, type TokenBalance, type TokenBalanceResponse, type TokenStats, type TokenStatsResponse, USER_BALANCE_QUERY_KEY, WALLET_REGISTRY, type WalletConfig, WalletConnectModal, type WalletConnectModalContentProps, type WalletConnectModalProps, type WalletConnectModalStyle, type WalletConnectModalTriggerProps, type WalletHandlers, type WalletId, WalletInfo, type WalletInfoContentProps, type WalletInfoFooterProps, type WalletInfoNavProps, type WalletInfoProps, type WalletInfoStyle, type WalletInfoTriggerProps, WalletPortfolio, WalletPortfolioBody, type WalletPortfolioBodyProps, type WalletPortfolioContentProps, type WalletPortfolioProps, type WalletPortfolioTriggerProps, type WalletProvider, resolveEnvironment, useGlobalMenu, useTokenBalance, useTokenStats, useWalletDetect };
|
|
934
|
+
export { APPLE_ICON, AppLauncher, AppLauncherContent, type AppLauncherContentProps, type AppLauncherProps, AppLauncherTrigger, type AppLauncherTriggerProps, BINANCE_ICON, CONNECTOR_REGISTRY, CROSSX_ICON, type ChainId, ConnectButton, type ConnectButtonProps, ConnectorId, type ConnectorMeta, type DrawerDirection$1 as DrawerDirection, type Environment, GOOGLE_ICON, type GetTransactionReceiptArgs, type GetTransactionReceiptFn, type GlobalMenu, type GlobalMenuItem, type GlobalMenuItemUrl, METAMASK_ICON, type OnOutlink, type OutlinkCategory, type OutlinkContext, type OutlinkOrigin, type PreferredToken, type RecentSendAddress, type SendAccount, type SendAsset, SendPage, type SendPageProps, type SendStatus, type SendTransactionArgs, type SendTransactionFn, TOKEN_STATS_QUERY_KEY, type Theme, type TokenBalance, type TokenBalanceResponse, type TokenStats, type TokenStatsResponse, type TransactionReceiptResult, USER_BALANCE_QUERY_KEY, WALLET_REGISTRY, type WalletConfig, WalletConnectModal, type WalletConnectModalContentProps, type WalletConnectModalProps, type WalletConnectModalStyle, type WalletConnectModalTriggerProps, type WalletHandlers, type WalletId, WalletInfo, type WalletInfoContentProps, type WalletInfoFooterProps, type WalletInfoNavProps, type WalletInfoProps, type WalletInfoStyle, type WalletInfoTriggerProps, WalletPortfolio, WalletPortfolioBody, type WalletPortfolioBodyProps, type WalletPortfolioContentProps, type WalletPortfolioProps, type WalletPortfolioTriggerProps, type WalletProvider, resolveEnvironment, useGlobalMenu, useTokenBalance, useTokenStats, useWalletDetect };
|
package/dist/index.d.ts
CHANGED
|
@@ -126,6 +126,14 @@ interface SendTransactionArgs {
|
|
|
126
126
|
gas?: bigint;
|
|
127
127
|
}
|
|
128
128
|
type SendTransactionFn = (args: SendTransactionArgs) => Promise<`0x${string}`>;
|
|
129
|
+
interface GetTransactionReceiptArgs {
|
|
130
|
+
hash: `0x${string}`;
|
|
131
|
+
chainId?: number;
|
|
132
|
+
}
|
|
133
|
+
interface TransactionReceiptResult {
|
|
134
|
+
status?: "success" | "reverted" | "0x1" | "0x0" | number | bigint | boolean;
|
|
135
|
+
}
|
|
136
|
+
type GetTransactionReceiptFn = (args: GetTransactionReceiptArgs) => Promise<TransactionReceiptResult | null | undefined>;
|
|
129
137
|
interface PoolToken {
|
|
130
138
|
address: string;
|
|
131
139
|
symbol: string;
|
|
@@ -240,7 +248,7 @@ type DexMarket = "cross" | "crossd" | "forge";
|
|
|
240
248
|
* dapp-ui가 렌더하는 outlink의 대분류.
|
|
241
249
|
* `portfolio`는 세부적으로 `origin`으로 더 나뉜다.
|
|
242
250
|
*/
|
|
243
|
-
type OutlinkCategory = "terms" | "privacy" | "portfolio";
|
|
251
|
+
type OutlinkCategory = "terms" | "privacy" | "portfolio" | "send";
|
|
244
252
|
/**
|
|
245
253
|
* `onOutlink` 콜백에 전달되는 호출 컨텍스트. `category` + `origin`으로
|
|
246
254
|
* 호출측이 목적지별 분기를 할 수 있고, `portfolio-*`의 경우 해당 섹션의
|
|
@@ -278,6 +286,13 @@ type OutlinkContext = {
|
|
|
278
286
|
order: DexOpenOrder;
|
|
279
287
|
pair?: DexPairInfo;
|
|
280
288
|
};
|
|
289
|
+
} | {
|
|
290
|
+
category: "send";
|
|
291
|
+
origin: "send-transaction";
|
|
292
|
+
payload: {
|
|
293
|
+
chainId: number;
|
|
294
|
+
txHash: `0x${string}`;
|
|
295
|
+
};
|
|
281
296
|
};
|
|
282
297
|
type OutlinkOrigin = OutlinkContext["origin"];
|
|
283
298
|
/**
|
|
@@ -294,6 +309,45 @@ type OutlinkOrigin = OutlinkContext["origin"];
|
|
|
294
309
|
*/
|
|
295
310
|
type OnOutlink = (link: string, ctx: OutlinkContext) => string | null | undefined | Promise<string | null | undefined>;
|
|
296
311
|
|
|
312
|
+
interface SendAsset {
|
|
313
|
+
name: string;
|
|
314
|
+
symbol: string;
|
|
315
|
+
chainId: number;
|
|
316
|
+
address: string;
|
|
317
|
+
quantity: {
|
|
318
|
+
decimals: number;
|
|
319
|
+
numeric: string;
|
|
320
|
+
};
|
|
321
|
+
icon_url: string;
|
|
322
|
+
}
|
|
323
|
+
type SendStatus = "idle" | "submitting" | "confirming" | "success" | "error";
|
|
324
|
+
interface RecentSendAddress {
|
|
325
|
+
address: `0x${string}`;
|
|
326
|
+
updatedAt: number;
|
|
327
|
+
}
|
|
328
|
+
interface SendAccount {
|
|
329
|
+
address: `0x${string}`;
|
|
330
|
+
index?: number;
|
|
331
|
+
name?: string;
|
|
332
|
+
}
|
|
333
|
+
interface SendPageProps {
|
|
334
|
+
env?: Environment;
|
|
335
|
+
theme?: Theme;
|
|
336
|
+
walletAddress: string;
|
|
337
|
+
accountName?: string;
|
|
338
|
+
accounts?: SendAccount[];
|
|
339
|
+
token: SendAsset;
|
|
340
|
+
tokens?: SendAsset[];
|
|
341
|
+
onTokenChange?: (token: SendAsset) => void;
|
|
342
|
+
sendTransaction?: SendTransactionFn;
|
|
343
|
+
getTransactionReceipt?: GetTransactionReceiptFn;
|
|
344
|
+
onSuccess?: (txHash: `0x${string}`) => void;
|
|
345
|
+
onConfirmSuccess?: () => void;
|
|
346
|
+
onOutlink?: OnOutlink;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
declare function SendPage({ env, theme, walletAddress, accounts, token, tokens, onTokenChange, sendTransaction, getTransactionReceipt, onSuccess, onConfirmSuccess, onOutlink, }: SendPageProps): react_jsx_runtime.JSX.Element;
|
|
350
|
+
|
|
297
351
|
interface WalletInfoTriggerProps {
|
|
298
352
|
asChild?: boolean;
|
|
299
353
|
className?: string;
|
|
@@ -333,6 +387,7 @@ interface WalletInfoProps {
|
|
|
333
387
|
qrLogoSrc?: string;
|
|
334
388
|
walletAddress: string;
|
|
335
389
|
accountName?: string;
|
|
390
|
+
sendAccounts?: SendAccount[];
|
|
336
391
|
/** 헤더 좌측에 표시될 프로필 이미지 URL. 미지정 시 주소 기반 그라디언트 아바타가 자동 생성됨. */
|
|
337
392
|
profileImageUrl?: string;
|
|
338
393
|
/** Resolves connectorName & connectorIconUrl from CONNECTOR_REGISTRY */
|
|
@@ -387,6 +442,7 @@ interface WalletInfoProps {
|
|
|
387
442
|
* wagmi의 `sendTransactionAsync`를 그대로 전달해도 호환된다.
|
|
388
443
|
*/
|
|
389
444
|
sendTransaction?: SendTransactionFn;
|
|
445
|
+
getTransactionReceipt?: GetTransactionReceiptFn;
|
|
390
446
|
/**
|
|
391
447
|
* Terms/Privacy · 포트폴리오 섹션 등 외부 링크 이동을 가로채는 콜백.
|
|
392
448
|
* `(url, ctx) => newUrl | null | undefined | Promise<...>` 형태이며
|
|
@@ -400,7 +456,7 @@ interface WalletInfoProps {
|
|
|
400
456
|
style?: WalletInfoStyle;
|
|
401
457
|
children: React.ReactNode;
|
|
402
458
|
}
|
|
403
|
-
declare function WalletInfoRoot({ env, theme, mobileBreakpoint, drawerDirection, modal, showBalance, showForgeToken, showGameToken, showQR, qrLogoSrc, walletAddress, accountName, profileImageUrl, connectorId, connectorName: connectorNameProp, connectorIconUrl: connectorIconUrlProp, preferredTokens, onSelectWallet, onCopyAddress, onDisconnect, disconnectLabel, termsUrl, termsLabel, privacyUrl, privacyLabel, open: propOpen, onOpenChange, showPortfolio, portfolioTitle, showTotalAssets, totalAssetsLabel, sendTransaction, onOutlink, style, children, }: WalletInfoProps): react_jsx_runtime.JSX.Element;
|
|
459
|
+
declare function WalletInfoRoot({ env, theme, mobileBreakpoint, drawerDirection, modal, showBalance, showForgeToken, showGameToken, showQR, qrLogoSrc, walletAddress, accountName, sendAccounts, profileImageUrl, connectorId, connectorName: connectorNameProp, connectorIconUrl: connectorIconUrlProp, preferredTokens, onSelectWallet, onCopyAddress, onDisconnect, disconnectLabel, termsUrl, termsLabel, privacyUrl, privacyLabel, open: propOpen, onOpenChange, showPortfolio, portfolioTitle, showTotalAssets, totalAssetsLabel, sendTransaction, getTransactionReceipt, onOutlink, style, children, }: WalletInfoProps): react_jsx_runtime.JSX.Element;
|
|
404
460
|
declare const WalletInfo: typeof WalletInfoRoot & {
|
|
405
461
|
Trigger: typeof WalletInfoTrigger;
|
|
406
462
|
Content: typeof WalletInfoContent;
|
|
@@ -803,6 +859,8 @@ interface ConnectButtonProps {
|
|
|
803
859
|
providerName?: string;
|
|
804
860
|
/** WalletInfo 헤더에 노출될 계정 라벨 (예: "Account 1", 사용자 지정 이름). */
|
|
805
861
|
accountName?: string;
|
|
862
|
+
/** Send 주소록의 My Account 탭에 노출할 계정 목록. */
|
|
863
|
+
sendAccounts?: SendAccount[];
|
|
806
864
|
/** disconnected 상태에서 버튼 클릭 핸들러. */
|
|
807
865
|
onConnect?: () => void;
|
|
808
866
|
/** connected 상태에서 WalletInfo 하단 Disconnect 클릭 핸들러. */
|
|
@@ -836,6 +894,7 @@ interface ConnectButtonProps {
|
|
|
836
894
|
connectorId?: ConnectorId;
|
|
837
895
|
style?: WalletInfoStyle;
|
|
838
896
|
sendTransaction?: SendTransactionFn;
|
|
897
|
+
getTransactionReceipt?: GetTransactionReceiptFn;
|
|
839
898
|
}
|
|
840
899
|
|
|
841
900
|
/**
|
|
@@ -850,7 +909,7 @@ interface ConnectButtonProps {
|
|
|
850
909
|
* 상태/데이터/콜백은 props로 주입받는다. 실제 wagmi 연결 로직은
|
|
851
910
|
* `@nexus-cross/connect-kit-react`의 상위 래퍼에서 수행한다.
|
|
852
911
|
*/
|
|
853
|
-
declare function ConnectButton({ isConnecting, address, provider, providerName, accountName, onConnect, onDisconnect, onCopy, onSelectWallet, label, connectingLabel, disconnectLabel, className, theme, env, showBalance, showPortfolio, drawerDirection, modal, connectorId, style, sendTransaction, }: ConnectButtonProps): react_jsx_runtime.JSX.Element;
|
|
912
|
+
declare function ConnectButton({ isConnecting, address, provider, providerName, accountName, sendAccounts, onConnect, onDisconnect, onCopy, onSelectWallet, label, connectingLabel, disconnectLabel, className, theme, env, showBalance, showPortfolio, drawerDirection, modal, connectorId, style, sendTransaction, getTransactionReceipt, }: ConnectButtonProps): react_jsx_runtime.JSX.Element;
|
|
854
913
|
|
|
855
914
|
/**
|
|
856
915
|
* Wallet provider icons used by `ConnectButton`. Ported from
|
|
@@ -872,4 +931,4 @@ declare const BINANCE_ICON: string;
|
|
|
872
931
|
declare const GOOGLE_ICON: string;
|
|
873
932
|
declare const APPLE_ICON: string;
|
|
874
933
|
|
|
875
|
-
export { APPLE_ICON, AppLauncher, AppLauncherContent, type AppLauncherContentProps, type AppLauncherProps, AppLauncherTrigger, type AppLauncherTriggerProps, BINANCE_ICON, CONNECTOR_REGISTRY, CROSSX_ICON, type ChainId, ConnectButton, type ConnectButtonProps, ConnectorId, type ConnectorMeta, type DrawerDirection$1 as DrawerDirection, type Environment, GOOGLE_ICON, type GlobalMenu, type GlobalMenuItem, type GlobalMenuItemUrl, METAMASK_ICON, type OnOutlink, type OutlinkCategory, type OutlinkContext, type OutlinkOrigin, type PreferredToken, type SendTransactionArgs, type SendTransactionFn, TOKEN_STATS_QUERY_KEY, type Theme, type TokenBalance, type TokenBalanceResponse, type TokenStats, type TokenStatsResponse, USER_BALANCE_QUERY_KEY, WALLET_REGISTRY, type WalletConfig, WalletConnectModal, type WalletConnectModalContentProps, type WalletConnectModalProps, type WalletConnectModalStyle, type WalletConnectModalTriggerProps, type WalletHandlers, type WalletId, WalletInfo, type WalletInfoContentProps, type WalletInfoFooterProps, type WalletInfoNavProps, type WalletInfoProps, type WalletInfoStyle, type WalletInfoTriggerProps, WalletPortfolio, WalletPortfolioBody, type WalletPortfolioBodyProps, type WalletPortfolioContentProps, type WalletPortfolioProps, type WalletPortfolioTriggerProps, type WalletProvider, resolveEnvironment, useGlobalMenu, useTokenBalance, useTokenStats, useWalletDetect };
|
|
934
|
+
export { APPLE_ICON, AppLauncher, AppLauncherContent, type AppLauncherContentProps, type AppLauncherProps, AppLauncherTrigger, type AppLauncherTriggerProps, BINANCE_ICON, CONNECTOR_REGISTRY, CROSSX_ICON, type ChainId, ConnectButton, type ConnectButtonProps, ConnectorId, type ConnectorMeta, type DrawerDirection$1 as DrawerDirection, type Environment, GOOGLE_ICON, type GetTransactionReceiptArgs, type GetTransactionReceiptFn, type GlobalMenu, type GlobalMenuItem, type GlobalMenuItemUrl, METAMASK_ICON, type OnOutlink, type OutlinkCategory, type OutlinkContext, type OutlinkOrigin, type PreferredToken, type RecentSendAddress, type SendAccount, type SendAsset, SendPage, type SendPageProps, type SendStatus, type SendTransactionArgs, type SendTransactionFn, TOKEN_STATS_QUERY_KEY, type Theme, type TokenBalance, type TokenBalanceResponse, type TokenStats, type TokenStatsResponse, type TransactionReceiptResult, USER_BALANCE_QUERY_KEY, WALLET_REGISTRY, type WalletConfig, WalletConnectModal, type WalletConnectModalContentProps, type WalletConnectModalProps, type WalletConnectModalStyle, type WalletConnectModalTriggerProps, type WalletHandlers, type WalletId, WalletInfo, type WalletInfoContentProps, type WalletInfoFooterProps, type WalletInfoNavProps, type WalletInfoProps, type WalletInfoStyle, type WalletInfoTriggerProps, WalletPortfolio, WalletPortfolioBody, type WalletPortfolioBodyProps, type WalletPortfolioContentProps, type WalletPortfolioProps, type WalletPortfolioTriggerProps, type WalletProvider, resolveEnvironment, useGlobalMenu, useTokenBalance, useTokenStats, useWalletDetect };
|