@nexus-cross/dapp-ui 1.3.4-beta.8 → 1.3.4
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 +21 -21
- package/dist/index.d.cts +30 -6
- package/dist/index.d.ts +30 -6
- package/dist/index.js +21 -21
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -853,10 +853,14 @@ interface WalletInfoProps {
|
|
|
853
853
|
approveBridge?: BridgeApproveFn;
|
|
854
854
|
submitBridge?: BridgeSubmitFn;
|
|
855
855
|
/**
|
|
856
|
-
* 상단 QR 버튼 / 기본 액션 row의
|
|
857
|
-
* prop으로 이미 정의됨.)
|
|
856
|
+
* 상단 QR 버튼 / 기본 액션 row의 Receive / Send 콜백. (Buy는 위 onBuy
|
|
857
|
+
* prop으로 이미 정의됨.)
|
|
858
858
|
*/
|
|
859
859
|
onReceive?: () => void;
|
|
860
|
+
/**
|
|
861
|
+
* @deprecated Bridge 버튼은 항상 apps.json(gametokenBridge) 웹으로
|
|
862
|
+
* 이동한다. 이 콜백은 더 이상 호출되지 않는다.
|
|
863
|
+
*/
|
|
860
864
|
onBridge?: () => void;
|
|
861
865
|
onSend?: () => void;
|
|
862
866
|
style?: WalletInfoStyle;
|
|
@@ -1083,9 +1087,15 @@ interface WalletPortfolioProps {
|
|
|
1083
1087
|
sendTransaction?: SendTransactionFn;
|
|
1084
1088
|
/** 내장 Withdraw 확인 화면의 가스 추정 콜백. 미주입 시 지갑 추정에 위임. */
|
|
1085
1089
|
estimateGas?: EstimateGasFn;
|
|
1090
|
+
/**
|
|
1091
|
+
* 포트폴리오 금액 표시 통화의 USD 환산 비율(USD 기준). 미주입 시 1(=USD).
|
|
1092
|
+
*/
|
|
1093
|
+
conversionRatio?: number;
|
|
1094
|
+
/** 포트폴리오 금액 표시 통화 기호. 미주입 시 `"$"`. */
|
|
1095
|
+
currencySymbol?: string;
|
|
1086
1096
|
children: React.ReactNode;
|
|
1087
1097
|
}
|
|
1088
|
-
declare function WalletPortfolioRoot({ env, theme, walletAddress, open: propOpen, onOpenChange, onOutlink, lpBalanceReader, stakingRewardsReader, sendTransaction, estimateGas, children, }: WalletPortfolioProps): react_jsx_runtime.JSX.Element;
|
|
1098
|
+
declare function WalletPortfolioRoot({ env, theme, walletAddress, open: propOpen, onOpenChange, onOutlink, lpBalanceReader, stakingRewardsReader, sendTransaction, estimateGas, conversionRatio, currencySymbol, children, }: WalletPortfolioProps): react_jsx_runtime.JSX.Element;
|
|
1089
1099
|
declare const WalletPortfolio: typeof WalletPortfolioRoot & {
|
|
1090
1100
|
Trigger: typeof WalletPortfolioTrigger;
|
|
1091
1101
|
Content: typeof WalletPortfolioContent;
|
|
@@ -1135,6 +1145,12 @@ interface WalletPortfolioBodyProps {
|
|
|
1135
1145
|
sendTransaction?: SendTransactionFn;
|
|
1136
1146
|
/** 내장 Withdraw 확인 화면의 가스 추정 콜백. 미주입 시 지갑 추정에 위임. */
|
|
1137
1147
|
estimateGas?: EstimateGasFn;
|
|
1148
|
+
/**
|
|
1149
|
+
* 포트폴리오 금액 표시 통화의 USD 환산 비율(USD 기준). 미주입 시 1(=USD).
|
|
1150
|
+
*/
|
|
1151
|
+
conversionRatio?: number;
|
|
1152
|
+
/** 포트폴리오 금액 표시 통화 기호. 미주입 시 `"$"`. */
|
|
1153
|
+
currencySymbol?: string;
|
|
1138
1154
|
/**
|
|
1139
1155
|
* 노출할 포트폴리오 섹션을 제한한다. 미지정(`undefined`)이면 모든 섹션을
|
|
1140
1156
|
* 기본 순서대로 표시하고, 배열을 주면 포함된 섹션만 (기본 순서를 유지한 채)
|
|
@@ -1142,7 +1158,7 @@ interface WalletPortfolioBodyProps {
|
|
|
1142
1158
|
*/
|
|
1143
1159
|
sections?: PortfolioSection[];
|
|
1144
1160
|
}
|
|
1145
|
-
declare function WalletPortfolioBody({ env, theme, walletAddress, walletName, onBack, showHeader, variant, className, onOutlink, lpBalanceReader, stakingRewardsReader, sendTransaction, estimateGas, sections, }: WalletPortfolioBodyProps): react_jsx_runtime.JSX.Element;
|
|
1161
|
+
declare function WalletPortfolioBody({ env, theme, walletAddress, walletName, onBack, showHeader, variant, className, onOutlink, lpBalanceReader, stakingRewardsReader, sendTransaction, estimateGas, conversionRatio, currencySymbol, sections, }: WalletPortfolioBodyProps): react_jsx_runtime.JSX.Element;
|
|
1146
1162
|
|
|
1147
1163
|
declare function CROSSxIcon(): react_jsx_runtime.JSX.Element;
|
|
1148
1164
|
declare function MetaMaskIcon(): react_jsx_runtime.JSX.Element;
|
|
@@ -1451,10 +1467,14 @@ interface ConnectButtonProps {
|
|
|
1451
1467
|
*/
|
|
1452
1468
|
estimateGas?: EstimateGasFn;
|
|
1453
1469
|
/**
|
|
1454
|
-
* 상단 QR 버튼 / 기본 액션 row의
|
|
1455
|
-
* 정의됨.)
|
|
1470
|
+
* 상단 QR 버튼 / 기본 액션 row의 Receive / Send 콜백. (Buy는 위 onBuy로
|
|
1471
|
+
* 정의됨.)
|
|
1456
1472
|
*/
|
|
1457
1473
|
onReceive?: () => void;
|
|
1474
|
+
/**
|
|
1475
|
+
* @deprecated Bridge 버튼은 항상 apps.json(gametokenBridge) 웹으로
|
|
1476
|
+
* 이동한다. 이 콜백은 더 이상 호출되지 않는다.
|
|
1477
|
+
*/
|
|
1458
1478
|
onBridge?: () => void;
|
|
1459
1479
|
onSend?: () => void;
|
|
1460
1480
|
bridgeTokens?: BridgeToken[];
|
|
@@ -1561,6 +1581,10 @@ interface SkillsButtonProps {
|
|
|
1561
1581
|
type?: "button" | "submit" | "reset";
|
|
1562
1582
|
}
|
|
1563
1583
|
|
|
1584
|
+
/**
|
|
1585
|
+
* @deprecated 이동 대상은 apps.json(skills)이 단일 소스다. 이 상수는 더 이상
|
|
1586
|
+
* 폴백으로 쓰이지 않으며 하위 호환(공개 export)용으로만 남아 있다.
|
|
1587
|
+
*/
|
|
1564
1588
|
declare const DEFAULT_SKILLS_HREF = "https://www.onechain.nexus/skills";
|
|
1565
1589
|
declare function SkillsButton({ label, href, onClick, className, style, theme, disabled, isLoading, loadingLabel, openInNewTab, type, }: SkillsButtonProps): react_jsx_runtime.JSX.Element;
|
|
1566
1590
|
|
package/dist/index.d.ts
CHANGED
|
@@ -853,10 +853,14 @@ interface WalletInfoProps {
|
|
|
853
853
|
approveBridge?: BridgeApproveFn;
|
|
854
854
|
submitBridge?: BridgeSubmitFn;
|
|
855
855
|
/**
|
|
856
|
-
* 상단 QR 버튼 / 기본 액션 row의
|
|
857
|
-
* prop으로 이미 정의됨.)
|
|
856
|
+
* 상단 QR 버튼 / 기본 액션 row의 Receive / Send 콜백. (Buy는 위 onBuy
|
|
857
|
+
* prop으로 이미 정의됨.)
|
|
858
858
|
*/
|
|
859
859
|
onReceive?: () => void;
|
|
860
|
+
/**
|
|
861
|
+
* @deprecated Bridge 버튼은 항상 apps.json(gametokenBridge) 웹으로
|
|
862
|
+
* 이동한다. 이 콜백은 더 이상 호출되지 않는다.
|
|
863
|
+
*/
|
|
860
864
|
onBridge?: () => void;
|
|
861
865
|
onSend?: () => void;
|
|
862
866
|
style?: WalletInfoStyle;
|
|
@@ -1083,9 +1087,15 @@ interface WalletPortfolioProps {
|
|
|
1083
1087
|
sendTransaction?: SendTransactionFn;
|
|
1084
1088
|
/** 내장 Withdraw 확인 화면의 가스 추정 콜백. 미주입 시 지갑 추정에 위임. */
|
|
1085
1089
|
estimateGas?: EstimateGasFn;
|
|
1090
|
+
/**
|
|
1091
|
+
* 포트폴리오 금액 표시 통화의 USD 환산 비율(USD 기준). 미주입 시 1(=USD).
|
|
1092
|
+
*/
|
|
1093
|
+
conversionRatio?: number;
|
|
1094
|
+
/** 포트폴리오 금액 표시 통화 기호. 미주입 시 `"$"`. */
|
|
1095
|
+
currencySymbol?: string;
|
|
1086
1096
|
children: React.ReactNode;
|
|
1087
1097
|
}
|
|
1088
|
-
declare function WalletPortfolioRoot({ env, theme, walletAddress, open: propOpen, onOpenChange, onOutlink, lpBalanceReader, stakingRewardsReader, sendTransaction, estimateGas, children, }: WalletPortfolioProps): react_jsx_runtime.JSX.Element;
|
|
1098
|
+
declare function WalletPortfolioRoot({ env, theme, walletAddress, open: propOpen, onOpenChange, onOutlink, lpBalanceReader, stakingRewardsReader, sendTransaction, estimateGas, conversionRatio, currencySymbol, children, }: WalletPortfolioProps): react_jsx_runtime.JSX.Element;
|
|
1089
1099
|
declare const WalletPortfolio: typeof WalletPortfolioRoot & {
|
|
1090
1100
|
Trigger: typeof WalletPortfolioTrigger;
|
|
1091
1101
|
Content: typeof WalletPortfolioContent;
|
|
@@ -1135,6 +1145,12 @@ interface WalletPortfolioBodyProps {
|
|
|
1135
1145
|
sendTransaction?: SendTransactionFn;
|
|
1136
1146
|
/** 내장 Withdraw 확인 화면의 가스 추정 콜백. 미주입 시 지갑 추정에 위임. */
|
|
1137
1147
|
estimateGas?: EstimateGasFn;
|
|
1148
|
+
/**
|
|
1149
|
+
* 포트폴리오 금액 표시 통화의 USD 환산 비율(USD 기준). 미주입 시 1(=USD).
|
|
1150
|
+
*/
|
|
1151
|
+
conversionRatio?: number;
|
|
1152
|
+
/** 포트폴리오 금액 표시 통화 기호. 미주입 시 `"$"`. */
|
|
1153
|
+
currencySymbol?: string;
|
|
1138
1154
|
/**
|
|
1139
1155
|
* 노출할 포트폴리오 섹션을 제한한다. 미지정(`undefined`)이면 모든 섹션을
|
|
1140
1156
|
* 기본 순서대로 표시하고, 배열을 주면 포함된 섹션만 (기본 순서를 유지한 채)
|
|
@@ -1142,7 +1158,7 @@ interface WalletPortfolioBodyProps {
|
|
|
1142
1158
|
*/
|
|
1143
1159
|
sections?: PortfolioSection[];
|
|
1144
1160
|
}
|
|
1145
|
-
declare function WalletPortfolioBody({ env, theme, walletAddress, walletName, onBack, showHeader, variant, className, onOutlink, lpBalanceReader, stakingRewardsReader, sendTransaction, estimateGas, sections, }: WalletPortfolioBodyProps): react_jsx_runtime.JSX.Element;
|
|
1161
|
+
declare function WalletPortfolioBody({ env, theme, walletAddress, walletName, onBack, showHeader, variant, className, onOutlink, lpBalanceReader, stakingRewardsReader, sendTransaction, estimateGas, conversionRatio, currencySymbol, sections, }: WalletPortfolioBodyProps): react_jsx_runtime.JSX.Element;
|
|
1146
1162
|
|
|
1147
1163
|
declare function CROSSxIcon(): react_jsx_runtime.JSX.Element;
|
|
1148
1164
|
declare function MetaMaskIcon(): react_jsx_runtime.JSX.Element;
|
|
@@ -1451,10 +1467,14 @@ interface ConnectButtonProps {
|
|
|
1451
1467
|
*/
|
|
1452
1468
|
estimateGas?: EstimateGasFn;
|
|
1453
1469
|
/**
|
|
1454
|
-
* 상단 QR 버튼 / 기본 액션 row의
|
|
1455
|
-
* 정의됨.)
|
|
1470
|
+
* 상단 QR 버튼 / 기본 액션 row의 Receive / Send 콜백. (Buy는 위 onBuy로
|
|
1471
|
+
* 정의됨.)
|
|
1456
1472
|
*/
|
|
1457
1473
|
onReceive?: () => void;
|
|
1474
|
+
/**
|
|
1475
|
+
* @deprecated Bridge 버튼은 항상 apps.json(gametokenBridge) 웹으로
|
|
1476
|
+
* 이동한다. 이 콜백은 더 이상 호출되지 않는다.
|
|
1477
|
+
*/
|
|
1458
1478
|
onBridge?: () => void;
|
|
1459
1479
|
onSend?: () => void;
|
|
1460
1480
|
bridgeTokens?: BridgeToken[];
|
|
@@ -1561,6 +1581,10 @@ interface SkillsButtonProps {
|
|
|
1561
1581
|
type?: "button" | "submit" | "reset";
|
|
1562
1582
|
}
|
|
1563
1583
|
|
|
1584
|
+
/**
|
|
1585
|
+
* @deprecated 이동 대상은 apps.json(skills)이 단일 소스다. 이 상수는 더 이상
|
|
1586
|
+
* 폴백으로 쓰이지 않으며 하위 호환(공개 export)용으로만 남아 있다.
|
|
1587
|
+
*/
|
|
1564
1588
|
declare const DEFAULT_SKILLS_HREF = "https://www.onechain.nexus/skills";
|
|
1565
1589
|
declare function SkillsButton({ label, href, onClick, className, style, theme, disabled, isLoading, loadingLabel, openInNewTab, type, }: SkillsButtonProps): react_jsx_runtime.JSX.Element;
|
|
1566
1590
|
|