@nexus-cross/dapp-ui 1.3.3-beta.9 → 2.3.4-beta.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/README.md +2 -2
- package/dist/index.cjs +21 -21
- package/dist/index.d.cts +40 -9
- package/dist/index.d.ts +40 -9
- package/dist/index.js +21 -21
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -141,6 +141,21 @@ interface TokenStatsResponse {
|
|
|
141
141
|
data: TokenStats[];
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
+
/**
|
|
145
|
+
* 포트폴리오 본문에 노출 가능한 섹션 종류.
|
|
146
|
+
* - `"rewards"` : CROSS Rewards
|
|
147
|
+
* - `"staking"` : CROSS Staking
|
|
148
|
+
* - `"gameSwap"` : Gametoken LP
|
|
149
|
+
* - `"forge"` : Forge
|
|
150
|
+
*
|
|
151
|
+
* `WalletPortfolioBody` / `WalletInfo`의 섹션 필터에 사용한다.
|
|
152
|
+
*/
|
|
153
|
+
type PortfolioSection = "rewards" | "staking" | "gameSwap" | "forge";
|
|
154
|
+
/**
|
|
155
|
+
* 섹션 필터를 지정하지 않았을 때(=전체 노출)의 기본 표시 순서.
|
|
156
|
+
* 배열로 필터를 줄 때 어떤 키들이 유효한지에 대한 단일 출처(source of truth).
|
|
157
|
+
*/
|
|
158
|
+
declare const PORTFOLIO_SECTIONS: readonly PortfolioSection[];
|
|
144
159
|
/**
|
|
145
160
|
* 포트폴리오/Send 기능에서 트랜잭션을 실제로 서명/브로드캐스트할 때
|
|
146
161
|
* 호출하는 공통 payload 타입.
|
|
@@ -250,7 +265,8 @@ interface LpBalanceInfo {
|
|
|
250
265
|
* 반환 맵의 key는 소문자 정규화된 pair 주소.
|
|
251
266
|
*
|
|
252
267
|
* dapp-ui는 이 함수 시그니처에만 의존하며 viem/wagmi를 직접 사용하지 않는다.
|
|
253
|
-
* 미주입 시
|
|
268
|
+
* 미주입 시 dapp-ui가 CROSS 체인 RPC로 직접 읽는 내부 폴백
|
|
269
|
+
* (`readLpBalancesViaRpc`)으로 동작하며, 폴백마저 실패해야 풀 정보만 표시한다.
|
|
254
270
|
*/
|
|
255
271
|
type LpBalanceReaderFn = (pairAddresses: string[]) => Promise<Record<string, LpBalanceInfo>>;
|
|
256
272
|
/**
|
|
@@ -281,10 +297,12 @@ interface GameSwapPool {
|
|
|
281
297
|
reserve_b: string;
|
|
282
298
|
/** 1 token_a = X token_b(CROSS) */
|
|
283
299
|
last_price: string;
|
|
284
|
-
/** last_price ×
|
|
300
|
+
/** last_price × quote_usd */
|
|
285
301
|
price_usd: string;
|
|
286
|
-
/** CROSS/USD 환율 */
|
|
287
|
-
|
|
302
|
+
/** CROSS/USD 환율 (백엔드 신규 필드명). */
|
|
303
|
+
quote_usd?: string;
|
|
304
|
+
/** @deprecated 백엔드가 `quote_usd`로 이관. 전환기 폴백용으로만 유지. */
|
|
305
|
+
cross_usd?: string;
|
|
288
306
|
/** token_a 24h 변동률 (0.0012 = +0.12%) */
|
|
289
307
|
change_24h: string;
|
|
290
308
|
}
|
|
@@ -750,6 +768,12 @@ interface WalletInfoProps {
|
|
|
750
768
|
showPortfolio?: boolean;
|
|
751
769
|
/** Portfolio 뷰의 헤더 타이틀 (기본 "My Portfolio"). */
|
|
752
770
|
portfolioTitle?: string;
|
|
771
|
+
/**
|
|
772
|
+
* Portfolio 뷰에 노출할 섹션 필터. 미지정 시 모든 섹션을 기본 순서대로
|
|
773
|
+
* 표시하고, 배열을 주면 포함된 섹션만 표시한다(빈 배열 = 전부 숨김).
|
|
774
|
+
* 예: `["rewards", "staking"]`.
|
|
775
|
+
*/
|
|
776
|
+
portfolioSections?: PortfolioSection[];
|
|
753
777
|
/** Total Assets 섹션 노출 여부 (기본 true). showBalance=true일 때만 실제 표기. */
|
|
754
778
|
showTotalAssets?: boolean;
|
|
755
779
|
/** Total Assets 라벨 텍스트 (기본 "Total Assets USD"). */
|
|
@@ -804,7 +828,7 @@ interface WalletInfoProps {
|
|
|
804
828
|
style?: WalletInfoStyle;
|
|
805
829
|
children: React.ReactNode;
|
|
806
830
|
}
|
|
807
|
-
declare function WalletInfoRoot({ env, theme, mobileBreakpoint, drawerDirection, modal, showBalance, showForgeToken, showGameToken, showQR, showBridge, qrLogoSrc, walletAddress, accountName, sendAccounts, profileImageUrl, connectorId, connectorName: connectorNameProp, connectorIconUrl: connectorIconUrlProp, preferredTokens, onSelectWallet, onCopyAddress, onBuy, onBuyDisabledMessage, onBridgeDisabledMessage, onSendDisabledMessage, onDisconnect, disconnectLabel, termsUrl, termsLabel, privacyUrl, privacyLabel, open: propOpen, onOpenChange, showPortfolio, portfolioTitle, showTotalAssets, totalAssetsLabel, sendTransaction, getTransactionReceipt, estimateGas, onOutlink, lpBalanceReader, stakingRewardsReader, bridgeTokens, bridgeHistory, getBridgeQuote, getBridgeToTokens, getBridgeApproval, approveBridge, submitBridge, onReceive, onBridge, onSend, style, children, }: WalletInfoProps): react_jsx_runtime.JSX.Element;
|
|
831
|
+
declare function WalletInfoRoot({ env, theme, mobileBreakpoint, drawerDirection, modal, showBalance, showForgeToken, showGameToken, showQR, showBridge, qrLogoSrc, walletAddress, accountName, sendAccounts, profileImageUrl, connectorId, connectorName: connectorNameProp, connectorIconUrl: connectorIconUrlProp, preferredTokens, onSelectWallet, onCopyAddress, onBuy, onBuyDisabledMessage, onBridgeDisabledMessage, onSendDisabledMessage, onDisconnect, disconnectLabel, termsUrl, termsLabel, privacyUrl, privacyLabel, open: propOpen, onOpenChange, showPortfolio, portfolioTitle, portfolioSections, showTotalAssets, totalAssetsLabel, sendTransaction, getTransactionReceipt, estimateGas, onOutlink, lpBalanceReader, stakingRewardsReader, bridgeTokens, bridgeHistory, getBridgeQuote, getBridgeToTokens, getBridgeApproval, approveBridge, submitBridge, onReceive, onBridge, onSend, style, children, }: WalletInfoProps): react_jsx_runtime.JSX.Element;
|
|
808
832
|
declare const WalletInfo: typeof WalletInfoRoot & {
|
|
809
833
|
Trigger: typeof WalletInfoTrigger;
|
|
810
834
|
Content: typeof WalletInfoContent;
|
|
@@ -1008,7 +1032,8 @@ interface WalletPortfolioProps {
|
|
|
1008
1032
|
onOutlink?: OnOutlink;
|
|
1009
1033
|
/**
|
|
1010
1034
|
* game-swap LP 섹션이 사용자별 LP 잔고/지분율을 온체인에서 보강하기 위해
|
|
1011
|
-
* host(wagmi 보유 측)로부터 주입받는 reader. 미주입 시
|
|
1035
|
+
* host(wagmi 보유 측)로부터 주입받는 reader. 미주입 시 dapp-ui가 CROSS 체인
|
|
1036
|
+
* RPC로 직접 읽는 내부 폴백으로 동작한다.
|
|
1012
1037
|
*/
|
|
1013
1038
|
lpBalanceReader?: LpBalanceReaderFn;
|
|
1014
1039
|
/**
|
|
@@ -1060,8 +1085,14 @@ interface WalletPortfolioBodyProps {
|
|
|
1060
1085
|
* host(wagmi 보유 측)로부터 주입받는 reader. 미주입 시 API 값으로 폴백한다.
|
|
1061
1086
|
*/
|
|
1062
1087
|
stakingRewardsReader?: StakingRewardsReaderFn;
|
|
1088
|
+
/**
|
|
1089
|
+
* 노출할 포트폴리오 섹션을 제한한다. 미지정(`undefined`)이면 모든 섹션을
|
|
1090
|
+
* 기본 순서대로 표시하고, 배열을 주면 포함된 섹션만 (기본 순서를 유지한 채)
|
|
1091
|
+
* 표시한다. 빈 배열이면 아무 섹션도 표시하지 않는다.
|
|
1092
|
+
*/
|
|
1093
|
+
sections?: PortfolioSection[];
|
|
1063
1094
|
}
|
|
1064
|
-
declare function WalletPortfolioBody({ env, theme, walletAddress, walletName, onBack, showHeader, variant, className, onOutlink, lpBalanceReader, stakingRewardsReader, }: WalletPortfolioBodyProps): react_jsx_runtime.JSX.Element;
|
|
1095
|
+
declare function WalletPortfolioBody({ env, theme, walletAddress, walletName, onBack, showHeader, variant, className, onOutlink, lpBalanceReader, stakingRewardsReader, sections, }: WalletPortfolioBodyProps): react_jsx_runtime.JSX.Element;
|
|
1065
1096
|
|
|
1066
1097
|
declare function CROSSxIcon(): react_jsx_runtime.JSX.Element;
|
|
1067
1098
|
declare function MetaMaskIcon(): react_jsx_runtime.JSX.Element;
|
|
@@ -1480,7 +1511,7 @@ interface SkillsButtonProps {
|
|
|
1480
1511
|
type?: "button" | "submit" | "reset";
|
|
1481
1512
|
}
|
|
1482
1513
|
|
|
1483
|
-
declare const DEFAULT_SKILLS_HREF = "https://
|
|
1514
|
+
declare const DEFAULT_SKILLS_HREF = "https://www.onechain.nexus/skills";
|
|
1484
1515
|
declare function SkillsButton({ label, href, onClick, className, style, theme, disabled, isLoading, loadingLabel, openInNewTab, type, }: SkillsButtonProps): react_jsx_runtime.JSX.Element;
|
|
1485
1516
|
|
|
1486
|
-
export { APPLE_ICON, AppLauncher, AppLauncherContent, type AppLauncherContentProps, type AppLauncherProps, AppLauncherTrigger, type AppLauncherTriggerProps, type AppLauncherTriggerStyle, type AppLauncherUsageMode, BINANCE_ICON, type BridgeAmountSource, type BridgeApprovalInfo, type BridgeApproveFn, type BridgeFailedInfo, BridgeFlow, type BridgeFlowProps, type BridgeGetApprovalFn, type BridgeGetToTokensFn, type BridgeHistoryItem, type BridgeInfoRow, type BridgeInfoTokenRef, type BridgeLiquidityInfo, type BridgePathType, type BridgeQuoteFn, type BridgeQuoteInput, type BridgeQuoteResult, type BridgeStatus, type BridgeStep, type BridgeSubmitFn, type BridgeSubmittedInfo, type BridgeToken, type BridgeTxSummary, CONNECTOR_REGISTRY, CROSSX_ICON, type ChainId, ConnectButton, type ConnectButtonProps, type ConnectButtonStyle, ConnectorId, type ConnectorMeta, DEFAULT_SKILLS_HREF, type DrawerDirection$1 as DrawerDirection, type Environment, type EstimateGasArgs, type EstimateGasFn, GOOGLE_ICON, type GameSwapPool, type GameSwapTokenRef, type GasEstimate, type GetTransactionReceiptArgs, type GetTransactionReceiptFn, type GlobalMenu, type GlobalMenuItem, type GlobalMenuItemUrl, type LpBalanceInfo, type LpBalanceReaderFn, METAMASK_ICON, type OnOutlink, type OutlinkCategory, type OutlinkContext, type OutlinkOrigin, type PreferredToken, type RecentSendAddress, SOCIAL_REGISTRY, type SendAccount, type SendAsset, SendFlow, type SendFlowProps, type SendPageProps, type SendStatus, type SendTransactionArgs, type SendTransactionFn, SkillsButton, type SkillsButtonProps, type SkillsButtonStyle, type SocialConfig, type SocialHandlers, type SocialId, type StakingRewardsInfo, type StakingRewardsReaderFn, 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, announceAppLauncherUsage, resolveEnvironment, useGlobalMenu, useTokenBalance, useTokenStats, useWalletDetect };
|
|
1517
|
+
export { APPLE_ICON, AppLauncher, AppLauncherContent, type AppLauncherContentProps, type AppLauncherProps, AppLauncherTrigger, type AppLauncherTriggerProps, type AppLauncherTriggerStyle, type AppLauncherUsageMode, BINANCE_ICON, type BridgeAmountSource, type BridgeApprovalInfo, type BridgeApproveFn, type BridgeFailedInfo, BridgeFlow, type BridgeFlowProps, type BridgeGetApprovalFn, type BridgeGetToTokensFn, type BridgeHistoryItem, type BridgeInfoRow, type BridgeInfoTokenRef, type BridgeLiquidityInfo, type BridgePathType, type BridgeQuoteFn, type BridgeQuoteInput, type BridgeQuoteResult, type BridgeStatus, type BridgeStep, type BridgeSubmitFn, type BridgeSubmittedInfo, type BridgeToken, type BridgeTxSummary, CONNECTOR_REGISTRY, CROSSX_ICON, type ChainId, ConnectButton, type ConnectButtonProps, type ConnectButtonStyle, ConnectorId, type ConnectorMeta, DEFAULT_SKILLS_HREF, type DrawerDirection$1 as DrawerDirection, type Environment, type EstimateGasArgs, type EstimateGasFn, GOOGLE_ICON, type GameSwapPool, type GameSwapTokenRef, type GasEstimate, type GetTransactionReceiptArgs, type GetTransactionReceiptFn, type GlobalMenu, type GlobalMenuItem, type GlobalMenuItemUrl, type LpBalanceInfo, type LpBalanceReaderFn, METAMASK_ICON, type OnOutlink, type OutlinkCategory, type OutlinkContext, type OutlinkOrigin, PORTFOLIO_SECTIONS, type PortfolioSection, type PreferredToken, type RecentSendAddress, SOCIAL_REGISTRY, type SendAccount, type SendAsset, SendFlow, type SendFlowProps, type SendPageProps, type SendStatus, type SendTransactionArgs, type SendTransactionFn, SkillsButton, type SkillsButtonProps, type SkillsButtonStyle, type SocialConfig, type SocialHandlers, type SocialId, type StakingRewardsInfo, type StakingRewardsReaderFn, 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, announceAppLauncherUsage, resolveEnvironment, useGlobalMenu, useTokenBalance, useTokenStats, useWalletDetect };
|
package/dist/index.d.ts
CHANGED
|
@@ -141,6 +141,21 @@ interface TokenStatsResponse {
|
|
|
141
141
|
data: TokenStats[];
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
+
/**
|
|
145
|
+
* 포트폴리오 본문에 노출 가능한 섹션 종류.
|
|
146
|
+
* - `"rewards"` : CROSS Rewards
|
|
147
|
+
* - `"staking"` : CROSS Staking
|
|
148
|
+
* - `"gameSwap"` : Gametoken LP
|
|
149
|
+
* - `"forge"` : Forge
|
|
150
|
+
*
|
|
151
|
+
* `WalletPortfolioBody` / `WalletInfo`의 섹션 필터에 사용한다.
|
|
152
|
+
*/
|
|
153
|
+
type PortfolioSection = "rewards" | "staking" | "gameSwap" | "forge";
|
|
154
|
+
/**
|
|
155
|
+
* 섹션 필터를 지정하지 않았을 때(=전체 노출)의 기본 표시 순서.
|
|
156
|
+
* 배열로 필터를 줄 때 어떤 키들이 유효한지에 대한 단일 출처(source of truth).
|
|
157
|
+
*/
|
|
158
|
+
declare const PORTFOLIO_SECTIONS: readonly PortfolioSection[];
|
|
144
159
|
/**
|
|
145
160
|
* 포트폴리오/Send 기능에서 트랜잭션을 실제로 서명/브로드캐스트할 때
|
|
146
161
|
* 호출하는 공통 payload 타입.
|
|
@@ -250,7 +265,8 @@ interface LpBalanceInfo {
|
|
|
250
265
|
* 반환 맵의 key는 소문자 정규화된 pair 주소.
|
|
251
266
|
*
|
|
252
267
|
* dapp-ui는 이 함수 시그니처에만 의존하며 viem/wagmi를 직접 사용하지 않는다.
|
|
253
|
-
* 미주입 시
|
|
268
|
+
* 미주입 시 dapp-ui가 CROSS 체인 RPC로 직접 읽는 내부 폴백
|
|
269
|
+
* (`readLpBalancesViaRpc`)으로 동작하며, 폴백마저 실패해야 풀 정보만 표시한다.
|
|
254
270
|
*/
|
|
255
271
|
type LpBalanceReaderFn = (pairAddresses: string[]) => Promise<Record<string, LpBalanceInfo>>;
|
|
256
272
|
/**
|
|
@@ -281,10 +297,12 @@ interface GameSwapPool {
|
|
|
281
297
|
reserve_b: string;
|
|
282
298
|
/** 1 token_a = X token_b(CROSS) */
|
|
283
299
|
last_price: string;
|
|
284
|
-
/** last_price ×
|
|
300
|
+
/** last_price × quote_usd */
|
|
285
301
|
price_usd: string;
|
|
286
|
-
/** CROSS/USD 환율 */
|
|
287
|
-
|
|
302
|
+
/** CROSS/USD 환율 (백엔드 신규 필드명). */
|
|
303
|
+
quote_usd?: string;
|
|
304
|
+
/** @deprecated 백엔드가 `quote_usd`로 이관. 전환기 폴백용으로만 유지. */
|
|
305
|
+
cross_usd?: string;
|
|
288
306
|
/** token_a 24h 변동률 (0.0012 = +0.12%) */
|
|
289
307
|
change_24h: string;
|
|
290
308
|
}
|
|
@@ -750,6 +768,12 @@ interface WalletInfoProps {
|
|
|
750
768
|
showPortfolio?: boolean;
|
|
751
769
|
/** Portfolio 뷰의 헤더 타이틀 (기본 "My Portfolio"). */
|
|
752
770
|
portfolioTitle?: string;
|
|
771
|
+
/**
|
|
772
|
+
* Portfolio 뷰에 노출할 섹션 필터. 미지정 시 모든 섹션을 기본 순서대로
|
|
773
|
+
* 표시하고, 배열을 주면 포함된 섹션만 표시한다(빈 배열 = 전부 숨김).
|
|
774
|
+
* 예: `["rewards", "staking"]`.
|
|
775
|
+
*/
|
|
776
|
+
portfolioSections?: PortfolioSection[];
|
|
753
777
|
/** Total Assets 섹션 노출 여부 (기본 true). showBalance=true일 때만 실제 표기. */
|
|
754
778
|
showTotalAssets?: boolean;
|
|
755
779
|
/** Total Assets 라벨 텍스트 (기본 "Total Assets USD"). */
|
|
@@ -804,7 +828,7 @@ interface WalletInfoProps {
|
|
|
804
828
|
style?: WalletInfoStyle;
|
|
805
829
|
children: React.ReactNode;
|
|
806
830
|
}
|
|
807
|
-
declare function WalletInfoRoot({ env, theme, mobileBreakpoint, drawerDirection, modal, showBalance, showForgeToken, showGameToken, showQR, showBridge, qrLogoSrc, walletAddress, accountName, sendAccounts, profileImageUrl, connectorId, connectorName: connectorNameProp, connectorIconUrl: connectorIconUrlProp, preferredTokens, onSelectWallet, onCopyAddress, onBuy, onBuyDisabledMessage, onBridgeDisabledMessage, onSendDisabledMessage, onDisconnect, disconnectLabel, termsUrl, termsLabel, privacyUrl, privacyLabel, open: propOpen, onOpenChange, showPortfolio, portfolioTitle, showTotalAssets, totalAssetsLabel, sendTransaction, getTransactionReceipt, estimateGas, onOutlink, lpBalanceReader, stakingRewardsReader, bridgeTokens, bridgeHistory, getBridgeQuote, getBridgeToTokens, getBridgeApproval, approveBridge, submitBridge, onReceive, onBridge, onSend, style, children, }: WalletInfoProps): react_jsx_runtime.JSX.Element;
|
|
831
|
+
declare function WalletInfoRoot({ env, theme, mobileBreakpoint, drawerDirection, modal, showBalance, showForgeToken, showGameToken, showQR, showBridge, qrLogoSrc, walletAddress, accountName, sendAccounts, profileImageUrl, connectorId, connectorName: connectorNameProp, connectorIconUrl: connectorIconUrlProp, preferredTokens, onSelectWallet, onCopyAddress, onBuy, onBuyDisabledMessage, onBridgeDisabledMessage, onSendDisabledMessage, onDisconnect, disconnectLabel, termsUrl, termsLabel, privacyUrl, privacyLabel, open: propOpen, onOpenChange, showPortfolio, portfolioTitle, portfolioSections, showTotalAssets, totalAssetsLabel, sendTransaction, getTransactionReceipt, estimateGas, onOutlink, lpBalanceReader, stakingRewardsReader, bridgeTokens, bridgeHistory, getBridgeQuote, getBridgeToTokens, getBridgeApproval, approveBridge, submitBridge, onReceive, onBridge, onSend, style, children, }: WalletInfoProps): react_jsx_runtime.JSX.Element;
|
|
808
832
|
declare const WalletInfo: typeof WalletInfoRoot & {
|
|
809
833
|
Trigger: typeof WalletInfoTrigger;
|
|
810
834
|
Content: typeof WalletInfoContent;
|
|
@@ -1008,7 +1032,8 @@ interface WalletPortfolioProps {
|
|
|
1008
1032
|
onOutlink?: OnOutlink;
|
|
1009
1033
|
/**
|
|
1010
1034
|
* game-swap LP 섹션이 사용자별 LP 잔고/지분율을 온체인에서 보강하기 위해
|
|
1011
|
-
* host(wagmi 보유 측)로부터 주입받는 reader. 미주입 시
|
|
1035
|
+
* host(wagmi 보유 측)로부터 주입받는 reader. 미주입 시 dapp-ui가 CROSS 체인
|
|
1036
|
+
* RPC로 직접 읽는 내부 폴백으로 동작한다.
|
|
1012
1037
|
*/
|
|
1013
1038
|
lpBalanceReader?: LpBalanceReaderFn;
|
|
1014
1039
|
/**
|
|
@@ -1060,8 +1085,14 @@ interface WalletPortfolioBodyProps {
|
|
|
1060
1085
|
* host(wagmi 보유 측)로부터 주입받는 reader. 미주입 시 API 값으로 폴백한다.
|
|
1061
1086
|
*/
|
|
1062
1087
|
stakingRewardsReader?: StakingRewardsReaderFn;
|
|
1088
|
+
/**
|
|
1089
|
+
* 노출할 포트폴리오 섹션을 제한한다. 미지정(`undefined`)이면 모든 섹션을
|
|
1090
|
+
* 기본 순서대로 표시하고, 배열을 주면 포함된 섹션만 (기본 순서를 유지한 채)
|
|
1091
|
+
* 표시한다. 빈 배열이면 아무 섹션도 표시하지 않는다.
|
|
1092
|
+
*/
|
|
1093
|
+
sections?: PortfolioSection[];
|
|
1063
1094
|
}
|
|
1064
|
-
declare function WalletPortfolioBody({ env, theme, walletAddress, walletName, onBack, showHeader, variant, className, onOutlink, lpBalanceReader, stakingRewardsReader, }: WalletPortfolioBodyProps): react_jsx_runtime.JSX.Element;
|
|
1095
|
+
declare function WalletPortfolioBody({ env, theme, walletAddress, walletName, onBack, showHeader, variant, className, onOutlink, lpBalanceReader, stakingRewardsReader, sections, }: WalletPortfolioBodyProps): react_jsx_runtime.JSX.Element;
|
|
1065
1096
|
|
|
1066
1097
|
declare function CROSSxIcon(): react_jsx_runtime.JSX.Element;
|
|
1067
1098
|
declare function MetaMaskIcon(): react_jsx_runtime.JSX.Element;
|
|
@@ -1480,7 +1511,7 @@ interface SkillsButtonProps {
|
|
|
1480
1511
|
type?: "button" | "submit" | "reset";
|
|
1481
1512
|
}
|
|
1482
1513
|
|
|
1483
|
-
declare const DEFAULT_SKILLS_HREF = "https://
|
|
1514
|
+
declare const DEFAULT_SKILLS_HREF = "https://www.onechain.nexus/skills";
|
|
1484
1515
|
declare function SkillsButton({ label, href, onClick, className, style, theme, disabled, isLoading, loadingLabel, openInNewTab, type, }: SkillsButtonProps): react_jsx_runtime.JSX.Element;
|
|
1485
1516
|
|
|
1486
|
-
export { APPLE_ICON, AppLauncher, AppLauncherContent, type AppLauncherContentProps, type AppLauncherProps, AppLauncherTrigger, type AppLauncherTriggerProps, type AppLauncherTriggerStyle, type AppLauncherUsageMode, BINANCE_ICON, type BridgeAmountSource, type BridgeApprovalInfo, type BridgeApproveFn, type BridgeFailedInfo, BridgeFlow, type BridgeFlowProps, type BridgeGetApprovalFn, type BridgeGetToTokensFn, type BridgeHistoryItem, type BridgeInfoRow, type BridgeInfoTokenRef, type BridgeLiquidityInfo, type BridgePathType, type BridgeQuoteFn, type BridgeQuoteInput, type BridgeQuoteResult, type BridgeStatus, type BridgeStep, type BridgeSubmitFn, type BridgeSubmittedInfo, type BridgeToken, type BridgeTxSummary, CONNECTOR_REGISTRY, CROSSX_ICON, type ChainId, ConnectButton, type ConnectButtonProps, type ConnectButtonStyle, ConnectorId, type ConnectorMeta, DEFAULT_SKILLS_HREF, type DrawerDirection$1 as DrawerDirection, type Environment, type EstimateGasArgs, type EstimateGasFn, GOOGLE_ICON, type GameSwapPool, type GameSwapTokenRef, type GasEstimate, type GetTransactionReceiptArgs, type GetTransactionReceiptFn, type GlobalMenu, type GlobalMenuItem, type GlobalMenuItemUrl, type LpBalanceInfo, type LpBalanceReaderFn, METAMASK_ICON, type OnOutlink, type OutlinkCategory, type OutlinkContext, type OutlinkOrigin, type PreferredToken, type RecentSendAddress, SOCIAL_REGISTRY, type SendAccount, type SendAsset, SendFlow, type SendFlowProps, type SendPageProps, type SendStatus, type SendTransactionArgs, type SendTransactionFn, SkillsButton, type SkillsButtonProps, type SkillsButtonStyle, type SocialConfig, type SocialHandlers, type SocialId, type StakingRewardsInfo, type StakingRewardsReaderFn, 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, announceAppLauncherUsage, resolveEnvironment, useGlobalMenu, useTokenBalance, useTokenStats, useWalletDetect };
|
|
1517
|
+
export { APPLE_ICON, AppLauncher, AppLauncherContent, type AppLauncherContentProps, type AppLauncherProps, AppLauncherTrigger, type AppLauncherTriggerProps, type AppLauncherTriggerStyle, type AppLauncherUsageMode, BINANCE_ICON, type BridgeAmountSource, type BridgeApprovalInfo, type BridgeApproveFn, type BridgeFailedInfo, BridgeFlow, type BridgeFlowProps, type BridgeGetApprovalFn, type BridgeGetToTokensFn, type BridgeHistoryItem, type BridgeInfoRow, type BridgeInfoTokenRef, type BridgeLiquidityInfo, type BridgePathType, type BridgeQuoteFn, type BridgeQuoteInput, type BridgeQuoteResult, type BridgeStatus, type BridgeStep, type BridgeSubmitFn, type BridgeSubmittedInfo, type BridgeToken, type BridgeTxSummary, CONNECTOR_REGISTRY, CROSSX_ICON, type ChainId, ConnectButton, type ConnectButtonProps, type ConnectButtonStyle, ConnectorId, type ConnectorMeta, DEFAULT_SKILLS_HREF, type DrawerDirection$1 as DrawerDirection, type Environment, type EstimateGasArgs, type EstimateGasFn, GOOGLE_ICON, type GameSwapPool, type GameSwapTokenRef, type GasEstimate, type GetTransactionReceiptArgs, type GetTransactionReceiptFn, type GlobalMenu, type GlobalMenuItem, type GlobalMenuItemUrl, type LpBalanceInfo, type LpBalanceReaderFn, METAMASK_ICON, type OnOutlink, type OutlinkCategory, type OutlinkContext, type OutlinkOrigin, PORTFOLIO_SECTIONS, type PortfolioSection, type PreferredToken, type RecentSendAddress, SOCIAL_REGISTRY, type SendAccount, type SendAsset, SendFlow, type SendFlowProps, type SendPageProps, type SendStatus, type SendTransactionArgs, type SendTransactionFn, SkillsButton, type SkillsButtonProps, type SkillsButtonStyle, type SocialConfig, type SocialHandlers, type SocialId, type StakingRewardsInfo, type StakingRewardsReaderFn, 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, announceAppLauncherUsage, resolveEnvironment, useGlobalMenu, useTokenBalance, useTokenStats, useWalletDetect };
|