@vechain/vechain-kit 1.5.0 → 1.5.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/{Constants-k3w4-s6C.d.cts → Constants-CUrs_fy0.d.cts} +2 -1
- package/dist/{Constants-k3w4-s6C.d.ts → Constants-CUrs_fy0.d.ts} +2 -1
- package/dist/assets/index.cjs +59 -11
- package/dist/assets/index.d.cts +53 -13
- package/dist/assets/index.d.ts +53 -13
- package/dist/assets/index.js +1 -1
- package/dist/{chunk-RZI2FBKR.js → chunk-DYI6ON4O.js} +333 -21
- package/dist/chunk-DYI6ON4O.js.map +1 -0
- package/dist/{chunk-YKPB3KXP.js → chunk-EUQRNI5E.js} +33 -4
- package/dist/chunk-EUQRNI5E.js.map +1 -0
- package/dist/{chunk-AJYTKYSZ.cjs → chunk-FID67WC3.cjs} +344 -20
- package/dist/chunk-FID67WC3.cjs.map +1 -0
- package/dist/{chunk-CPG25VOQ.cjs → chunk-RUIC653T.cjs} +33 -3
- package/dist/chunk-RUIC653T.cjs.map +1 -0
- package/dist/index.cjs +665 -581
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +279 -195
- package/dist/index.js.map +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/utils/index.cjs +34 -29
- package/dist/utils/index.d.cts +2 -2
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +2 -1
- package/package.json +1 -1
- package/dist/chunk-AJYTKYSZ.cjs.map +0 -1
- package/dist/chunk-CPG25VOQ.cjs.map +0 -1
- package/dist/chunk-RZI2FBKR.js.map +0 -1
- package/dist/chunk-YKPB3KXP.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { IVechainEnergyOracleV1__factory, IB3TR__factory, IVOT3__factory, GalaxyMember__factory, NodeManagement__factory, X2EarnApps__factory, XAllocationVoting__factory, XAllocationVotingGovernor__factory, XAllocationPool__factory, VoterRewards__factory, VeBetterPassport__factory, IERC20__factory, MockENS__factory, SubdomainClaimer__factory, IReverseRegistrar__factory, ERC20__factory, SimpleAccountFactory__factory, SimpleAccount__factory, Emissions__factory, X2EarnRewardsPool__factory } from './chunk-FOSPSOWT.js';
|
|
2
|
-
import { getConfig, humanNumber, NodeStrengthLevelToImage, allNodeStrengthLevelToName, notFoundImage, convertUriToUrl, resolveMediaTypeFromMimeType, gmNfts, humanAddress, getPicassoImage, VECHAIN_PRIVY_APP_ID, compareAddresses, isValidAddress, TOKEN_LOGOS, humanDomain, uploadBlobToIPFS, randomTransactionUser } from './chunk-
|
|
3
|
-
export { getConfig } from './chunk-
|
|
4
|
-
import { SimpleAccountFactoryABI,
|
|
2
|
+
import { getConfig, humanNumber, NodeStrengthLevelToImage, allNodeStrengthLevelToName, notFoundImage, convertUriToUrl, resolveMediaTypeFromMimeType, gmNfts, humanAddress, getPicassoImage, VECHAIN_PRIVY_APP_ID, compareAddresses, isValidAddress, TOKEN_LOGO_COMPONENTS, TOKEN_LOGOS, humanDomain, uploadBlobToIPFS, randomTransactionUser } from './chunk-EUQRNI5E.js';
|
|
3
|
+
export { getConfig } from './chunk-EUQRNI5E.js';
|
|
4
|
+
import { SimpleAccountFactoryABI, VechainLogo, VechainLogoLight, VechainLogoDark, PrivyLogo, SimpleAccountABI } from './chunk-DYI6ON4O.js';
|
|
5
5
|
import './chunk-PZ5AY32C.js';
|
|
6
|
-
import
|
|
6
|
+
import React10, { createContext, useState, useEffect, useMemo, useCallback, useRef, useContext } from 'react';
|
|
7
7
|
import { useLoginWithOAuth, usePrivy, useLoginWithEmail, useMfaEnrollment, useLoginWithPasskey as useLoginWithPasskey$1, PrivyProvider } from '@privy-io/react-auth';
|
|
8
8
|
export { useMfaEnrollment, usePrivy } from '@privy-io/react-auth';
|
|
9
9
|
import { useConnex, useWallet as useWallet$1, useWalletModal, useVechainDomain as useVechainDomain$1, DAppKitProvider } from '@vechain/dapp-kit-react';
|
|
@@ -1804,7 +1804,7 @@ function getOrCreateQueryClient() {
|
|
|
1804
1804
|
}
|
|
1805
1805
|
var EnsureQueryClient = ({ children }) => {
|
|
1806
1806
|
try {
|
|
1807
|
-
const existingQueryClient =
|
|
1807
|
+
const existingQueryClient = React10.useContext(QueryClientContext);
|
|
1808
1808
|
if (existingQueryClient) {
|
|
1809
1809
|
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
1810
1810
|
}
|
|
@@ -4966,7 +4966,7 @@ var AddressDisplay = ({
|
|
|
4966
4966
|
// package.json
|
|
4967
4967
|
var package_default = {
|
|
4968
4968
|
name: "@vechain/vechain-kit",
|
|
4969
|
-
version: "1.5.
|
|
4969
|
+
version: "1.5.2",
|
|
4970
4970
|
private: false,
|
|
4971
4971
|
homepage: "https://github.com/vechain/vechain-kit",
|
|
4972
4972
|
repository: "github:vechain/vechain-kit",
|
|
@@ -5093,16 +5093,27 @@ var VersionFooter = ({ ...props }) => {
|
|
|
5093
5093
|
spacing: 0,
|
|
5094
5094
|
...props,
|
|
5095
5095
|
children: [
|
|
5096
|
-
/* @__PURE__ */ jsx(
|
|
5096
|
+
/* @__PURE__ */ jsx(
|
|
5097
|
+
VechainLogo,
|
|
5098
|
+
{
|
|
5099
|
+
isDark,
|
|
5100
|
+
w: "70px",
|
|
5101
|
+
h: "auto",
|
|
5102
|
+
opacity: 0.4,
|
|
5103
|
+
mr: 1,
|
|
5104
|
+
ml: "-16px"
|
|
5105
|
+
}
|
|
5106
|
+
),
|
|
5097
5107
|
/* @__PURE__ */ jsxs(
|
|
5098
5108
|
Link,
|
|
5099
5109
|
{
|
|
5100
5110
|
fontSize: "11px",
|
|
5101
|
-
fontWeight: "
|
|
5111
|
+
fontWeight: "500",
|
|
5102
5112
|
opacity: 0.4,
|
|
5103
5113
|
textAlign: "left",
|
|
5104
5114
|
href: `https://github.com/vechain/vechain-kit/releases/tag/${package_default.version}`,
|
|
5105
5115
|
isExternal: true,
|
|
5116
|
+
pt: "1px",
|
|
5106
5117
|
children: [
|
|
5107
5118
|
"v",
|
|
5108
5119
|
package_default.version
|
|
@@ -5138,7 +5149,7 @@ var StickyHeaderContainer = ({ children }) => {
|
|
|
5138
5149
|
left: "0",
|
|
5139
5150
|
w: "full",
|
|
5140
5151
|
borderRadius: "24px 24px 0px 0px",
|
|
5141
|
-
bg: isDark ? "
|
|
5152
|
+
bg: isDark ? "rgb(24 24 27 / 90%)" : "rgba(255, 255, 255, 0.8)",
|
|
5142
5153
|
backdropFilter: "blur(12px)",
|
|
5143
5154
|
style: { WebkitBackdropFilter: "blur(12px)" },
|
|
5144
5155
|
zIndex: 1e3,
|
|
@@ -5165,7 +5176,7 @@ var StickyFooterContainer = ({ children }) => {
|
|
|
5165
5176
|
bottom: "0",
|
|
5166
5177
|
left: "0",
|
|
5167
5178
|
right: "0",
|
|
5168
|
-
bg: isDark ? "#
|
|
5179
|
+
bg: isDark ? "#18181b" : "white",
|
|
5169
5180
|
zIndex: "1000",
|
|
5170
5181
|
p: 4,
|
|
5171
5182
|
boxShadow: "0px -1px 6px -3px rgb(0 0 0 / 56%)",
|
|
@@ -5241,56 +5252,69 @@ var AssetButton = ({
|
|
|
5241
5252
|
isDisabled,
|
|
5242
5253
|
onClick,
|
|
5243
5254
|
...buttonProps
|
|
5244
|
-
}) =>
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
{
|
|
5264
|
-
src: TOKEN_LOGOS[symbol],
|
|
5265
|
-
alt: `${symbol} logo`,
|
|
5255
|
+
}) => {
|
|
5256
|
+
const { darkMode: isDark } = useVeChainKitConfig();
|
|
5257
|
+
return /* @__PURE__ */ jsxs(
|
|
5258
|
+
Button,
|
|
5259
|
+
{
|
|
5260
|
+
height: "72px",
|
|
5261
|
+
variant: "ghost",
|
|
5262
|
+
justifyContent: "space-between",
|
|
5263
|
+
isDisabled,
|
|
5264
|
+
p: 4,
|
|
5265
|
+
w: "100%",
|
|
5266
|
+
_disabled: {
|
|
5267
|
+
cursor: "not-allowed",
|
|
5268
|
+
opacity: 0.5
|
|
5269
|
+
},
|
|
5270
|
+
onClick,
|
|
5271
|
+
...buttonProps,
|
|
5272
|
+
children: [
|
|
5273
|
+
/* @__PURE__ */ jsxs(HStack, { children: [
|
|
5274
|
+
TOKEN_LOGO_COMPONENTS[symbol] ? React10.cloneElement(TOKEN_LOGO_COMPONENTS[symbol], {
|
|
5266
5275
|
boxSize: "24px",
|
|
5267
|
-
borderRadius: "full"
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5276
|
+
borderRadius: "full"
|
|
5277
|
+
}) : /* @__PURE__ */ jsx(
|
|
5278
|
+
Image,
|
|
5279
|
+
{
|
|
5280
|
+
src: TOKEN_LOGOS[symbol],
|
|
5281
|
+
alt: `${symbol} logo`,
|
|
5282
|
+
boxSize: "24px",
|
|
5283
|
+
borderRadius: "full",
|
|
5284
|
+
fallback: /* @__PURE__ */ jsx(
|
|
5285
|
+
Box,
|
|
5286
|
+
{
|
|
5287
|
+
boxSize: "24px",
|
|
5288
|
+
borderRadius: "full",
|
|
5289
|
+
bg: "whiteAlpha.200",
|
|
5290
|
+
display: "flex",
|
|
5291
|
+
alignItems: "center",
|
|
5292
|
+
justifyContent: "center",
|
|
5293
|
+
children: /* @__PURE__ */ jsx(Text, { fontSize: "10px", fontWeight: "bold", children: symbol.slice(0, 3) })
|
|
5294
|
+
}
|
|
5295
|
+
)
|
|
5296
|
+
}
|
|
5297
|
+
),
|
|
5298
|
+
/* @__PURE__ */ jsx(Text, { children: symbol })
|
|
5288
5299
|
] }),
|
|
5289
|
-
/* @__PURE__ */
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
|
|
5293
|
-
)
|
|
5300
|
+
/* @__PURE__ */ jsxs(VStack, { align: "flex-end", spacing: 0, children: [
|
|
5301
|
+
/* @__PURE__ */ jsxs(Text, { children: [
|
|
5302
|
+
"$",
|
|
5303
|
+
compactFormatter.format(usdValue)
|
|
5304
|
+
] }),
|
|
5305
|
+
/* @__PURE__ */ jsx(
|
|
5306
|
+
Text,
|
|
5307
|
+
{
|
|
5308
|
+
fontSize: "sm",
|
|
5309
|
+
color: isDark ? "whiteAlpha.600" : "blackAlpha.600",
|
|
5310
|
+
children: compactFormatter.format(amount)
|
|
5311
|
+
}
|
|
5312
|
+
)
|
|
5313
|
+
] })
|
|
5314
|
+
]
|
|
5315
|
+
}
|
|
5316
|
+
);
|
|
5317
|
+
};
|
|
5294
5318
|
var compactFormatter2 = new Intl.NumberFormat("en-US", {
|
|
5295
5319
|
notation: "compact",
|
|
5296
5320
|
compactDisplay: "short",
|
|
@@ -5320,7 +5344,7 @@ var AddressDisplayCard = ({
|
|
|
5320
5344
|
w: "full",
|
|
5321
5345
|
p: 2,
|
|
5322
5346
|
borderRadius: "lg",
|
|
5323
|
-
bg: isDark ? "#
|
|
5347
|
+
bg: isDark ? "#00000038" : "gray.50",
|
|
5324
5348
|
wordBreak: "break-word",
|
|
5325
5349
|
children: [
|
|
5326
5350
|
/* @__PURE__ */ jsx(Text, { fontSize: "sm", fontWeight: "bold", mb: 2, children: label }),
|
|
@@ -5446,7 +5470,7 @@ var TransactionButtonAndStatus = ({
|
|
|
5446
5470
|
{
|
|
5447
5471
|
isExternal: true,
|
|
5448
5472
|
fontSize: "sm",
|
|
5449
|
-
color: isDark ? "whiteAlpha.600" : "
|
|
5473
|
+
color: isDark ? "whiteAlpha.600" : "blackAlpha.600",
|
|
5450
5474
|
textAlign: "center",
|
|
5451
5475
|
width: "full",
|
|
5452
5476
|
href: `${getConfig(network.type).explorerUrl}/${txReceipt?.meta.txID}`,
|
|
@@ -5516,7 +5540,7 @@ var EmailCodeVerificationModal = ({
|
|
|
5516
5540
|
otp: true,
|
|
5517
5541
|
size: "lg",
|
|
5518
5542
|
isInvalid: !!error,
|
|
5519
|
-
errorBorderColor: "
|
|
5543
|
+
errorBorderColor: "#ef4444",
|
|
5520
5544
|
children: [
|
|
5521
5545
|
/* @__PURE__ */ jsx(
|
|
5522
5546
|
PinInputField,
|
|
@@ -5611,7 +5635,7 @@ var EmailCodeVerificationModal = ({
|
|
|
5611
5635
|
]
|
|
5612
5636
|
}
|
|
5613
5637
|
) }),
|
|
5614
|
-
error && /* @__PURE__ */ jsx(Text, { color: "
|
|
5638
|
+
error && /* @__PURE__ */ jsx(Text, { color: "#ef4444", fontSize: "xs", children: error })
|
|
5615
5639
|
] }) }),
|
|
5616
5640
|
/* @__PURE__ */ jsx(ModalFooter, { children: /* @__PURE__ */ jsxs(
|
|
5617
5641
|
Text,
|
|
@@ -6033,7 +6057,7 @@ var MainContent = ({ setCurrentContent, onClose }) => {
|
|
|
6033
6057
|
),
|
|
6034
6058
|
/* @__PURE__ */ jsx(ConnectionOptionsStack, {})
|
|
6035
6059
|
] }),
|
|
6036
|
-
/* @__PURE__ */ jsx(ModalFooter, { children: /* @__PURE__ */ jsx(VersionFooter, {}) })
|
|
6060
|
+
/* @__PURE__ */ jsx(ModalFooter, { pt: 0, pb: "5px", children: /* @__PURE__ */ jsx(VersionFooter, {}) })
|
|
6037
6061
|
] });
|
|
6038
6062
|
};
|
|
6039
6063
|
var useFeatureAnnouncement = () => {
|
|
@@ -6293,7 +6317,7 @@ var ActionButton = ({
|
|
|
6293
6317
|
}) => {
|
|
6294
6318
|
const { t } = useTranslation();
|
|
6295
6319
|
const { colorMode } = useColorMode();
|
|
6296
|
-
const baseBackgroundColor = backgroundColor ?? colorMode === "dark" ? "
|
|
6320
|
+
const baseBackgroundColor = backgroundColor ?? colorMode === "dark" ? "#ffffff05" : "#00000005";
|
|
6297
6321
|
return /* @__PURE__ */ jsx(
|
|
6298
6322
|
Button,
|
|
6299
6323
|
{
|
|
@@ -6307,7 +6331,9 @@ var ActionButton = ({
|
|
|
6307
6331
|
isLoading,
|
|
6308
6332
|
loadingText,
|
|
6309
6333
|
bgColor: baseBackgroundColor,
|
|
6310
|
-
_hover
|
|
6334
|
+
_hover: _hover ?? {
|
|
6335
|
+
backgroundColor: colorMode === "dark" ? "#ffffff0d" : "blackAlpha.200"
|
|
6336
|
+
},
|
|
6311
6337
|
...style,
|
|
6312
6338
|
children: /* @__PURE__ */ jsxs(HStack, { w: "full", justify: "space-between", children: [
|
|
6313
6339
|
/* @__PURE__ */ jsx(Box, { minW: "40px", children: leftImage ? /* @__PURE__ */ jsx(
|
|
@@ -6457,7 +6483,14 @@ var AssetIcons = ({
|
|
|
6457
6483
|
border: "2px solid #00000024",
|
|
6458
6484
|
alignItems: "center",
|
|
6459
6485
|
justifyContent: "center",
|
|
6460
|
-
children:
|
|
6486
|
+
children: TOKEN_LOGO_COMPONENTS[token.symbol] ? React10.cloneElement(
|
|
6487
|
+
TOKEN_LOGO_COMPONENTS[token.symbol],
|
|
6488
|
+
{
|
|
6489
|
+
width: `${iconSize * 0.8}px`,
|
|
6490
|
+
height: `${iconSize * 0.8}px`,
|
|
6491
|
+
rounded: "full"
|
|
6492
|
+
}
|
|
6493
|
+
) : TOKEN_LOGOS[token.symbol] ? /* @__PURE__ */ jsx(
|
|
6461
6494
|
Image,
|
|
6462
6495
|
{
|
|
6463
6496
|
src: TOKEN_LOGOS[token.symbol],
|
|
@@ -6596,7 +6629,7 @@ var BalanceSection = ({
|
|
|
6596
6629
|
onClick: onAssetsClick,
|
|
6597
6630
|
maxIcons: 10,
|
|
6598
6631
|
iconSize: 26,
|
|
6599
|
-
iconsGap:
|
|
6632
|
+
iconsGap: 3,
|
|
6600
6633
|
address: account?.address ?? "",
|
|
6601
6634
|
showNoAssetsWarning: true,
|
|
6602
6635
|
rightIcon: /* @__PURE__ */ jsx(
|
|
@@ -6611,12 +6644,12 @@ var BalanceSection = ({
|
|
|
6611
6644
|
style: {
|
|
6612
6645
|
width: "100%",
|
|
6613
6646
|
mt: 2,
|
|
6614
|
-
backgroundColor: isDark ? "
|
|
6647
|
+
backgroundColor: isDark ? "#ffffff05" : "blackAlpha.50",
|
|
6615
6648
|
borderRadius: "xl",
|
|
6616
6649
|
p: 3,
|
|
6617
6650
|
cursor: "pointer",
|
|
6618
6651
|
_hover: {
|
|
6619
|
-
backgroundColor: isDark ? "
|
|
6652
|
+
backgroundColor: isDark ? "#ffffff0d" : "blackAlpha.200"
|
|
6620
6653
|
},
|
|
6621
6654
|
justifyContent: "space-between"
|
|
6622
6655
|
}
|
|
@@ -7428,7 +7461,7 @@ var CrossAppConnectionCard = ({ connectionCache }) => {
|
|
|
7428
7461
|
VStack,
|
|
7429
7462
|
{
|
|
7430
7463
|
p: 4,
|
|
7431
|
-
bg: isDark ? "#
|
|
7464
|
+
bg: isDark ? "#00000038" : "#f5f5f5",
|
|
7432
7465
|
borderRadius: "xl",
|
|
7433
7466
|
spacing: 4,
|
|
7434
7467
|
w: "full",
|
|
@@ -7490,7 +7523,7 @@ var DappKitConnectionCard = () => {
|
|
|
7490
7523
|
VStack,
|
|
7491
7524
|
{
|
|
7492
7525
|
p: 4,
|
|
7493
|
-
bg: isDark ? "#
|
|
7526
|
+
bg: isDark ? "#00000038" : "#f5f5f5",
|
|
7494
7527
|
borderRadius: "xl",
|
|
7495
7528
|
spacing: 4,
|
|
7496
7529
|
w: "full",
|
|
@@ -7532,7 +7565,7 @@ var PrivyConnectionCard = () => {
|
|
|
7532
7565
|
VStack,
|
|
7533
7566
|
{
|
|
7534
7567
|
p: 4,
|
|
7535
|
-
bg: isDark ? "#
|
|
7568
|
+
bg: isDark ? "#00000038" : "#f5f5f5",
|
|
7536
7569
|
borderRadius: "xl",
|
|
7537
7570
|
spacing: 4,
|
|
7538
7571
|
w: "full",
|
|
@@ -7585,8 +7618,16 @@ var WalletSecuredBy = () => {
|
|
|
7585
7618
|
/* @__PURE__ */ jsx(Text, { fontSize: "xs", fontWeight: "800", children: t("Wallet secured by") }),
|
|
7586
7619
|
/* @__PURE__ */ jsxs(HStack, { justify: "center", children: [
|
|
7587
7620
|
/* @__PURE__ */ jsx(PrivyLogo, { isDark, w: "50px" }),
|
|
7588
|
-
/* @__PURE__ */ jsx(Icon, { as: PiLineVertical, ml:
|
|
7589
|
-
connection.isConnectedWithVeChain ? /* @__PURE__ */ jsx(
|
|
7621
|
+
/* @__PURE__ */ jsx(Icon, { as: PiLineVertical, ml: 3 }),
|
|
7622
|
+
connection.isConnectedWithVeChain ? /* @__PURE__ */ jsx(
|
|
7623
|
+
VechainLogo,
|
|
7624
|
+
{
|
|
7625
|
+
isDark,
|
|
7626
|
+
w: "80px",
|
|
7627
|
+
h: "auto",
|
|
7628
|
+
mb: "3px"
|
|
7629
|
+
}
|
|
7630
|
+
) : connection.isConnectedWithCrossApp && connectionCache && /* @__PURE__ */ jsx(
|
|
7590
7631
|
Image,
|
|
7591
7632
|
{
|
|
7592
7633
|
src: connectionCache.ecosystemApp.logoUrl,
|
|
@@ -7682,7 +7723,7 @@ var EmbeddedWalletContent = ({ setCurrentContent }) => {
|
|
|
7682
7723
|
{
|
|
7683
7724
|
href: "https://www.veworld.net/",
|
|
7684
7725
|
isExternal: true,
|
|
7685
|
-
color: "
|
|
7726
|
+
color: "blackAlpha.600",
|
|
7686
7727
|
fontSize: "14px",
|
|
7687
7728
|
textDecoration: "underline",
|
|
7688
7729
|
children: [
|
|
@@ -7702,7 +7743,7 @@ var EmbeddedWalletContent = ({ setCurrentContent }) => {
|
|
|
7702
7743
|
{
|
|
7703
7744
|
href: "https://docs.vechainkit.vechain.org/vechain-kit/embedded-wallets",
|
|
7704
7745
|
isExternal: true,
|
|
7705
|
-
color: "
|
|
7746
|
+
color: "blackAlpha.600",
|
|
7706
7747
|
fontSize: "14px",
|
|
7707
7748
|
textDecoration: "underline",
|
|
7708
7749
|
children: t("here")
|
|
@@ -7756,7 +7797,7 @@ var SelectTokenContent = ({ onSelectToken, onBack }) => {
|
|
|
7756
7797
|
Input,
|
|
7757
7798
|
{
|
|
7758
7799
|
placeholder: "Search token",
|
|
7759
|
-
bg: isDark ? "#
|
|
7800
|
+
bg: isDark ? "#00000038" : "gray.50",
|
|
7760
7801
|
borderRadius: "xl",
|
|
7761
7802
|
height: "56px",
|
|
7762
7803
|
pl: 12,
|
|
@@ -7786,7 +7827,7 @@ var SelectTokenContent = ({ onSelectToken, onBack }) => {
|
|
|
7786
7827
|
{
|
|
7787
7828
|
spacing: 2,
|
|
7788
7829
|
py: 8,
|
|
7789
|
-
color: isDark ? "whiteAlpha.600" : "
|
|
7830
|
+
color: isDark ? "whiteAlpha.600" : "blackAlpha.600",
|
|
7790
7831
|
children: [
|
|
7791
7832
|
/* @__PURE__ */ jsx(Icon, { as: FiSlash, boxSize: 12, opacity: 0.5 }),
|
|
7792
7833
|
/* @__PURE__ */ jsx(Text, { fontSize: "lg", children: t("No tokens found") }),
|
|
@@ -7923,7 +7964,7 @@ var SendTokenContent = ({
|
|
|
7923
7964
|
{
|
|
7924
7965
|
p: 6,
|
|
7925
7966
|
borderRadius: "xl",
|
|
7926
|
-
bg: isDark ? "#
|
|
7967
|
+
bg: isDark ? "#00000038" : "gray.50",
|
|
7927
7968
|
children: /* @__PURE__ */ jsxs(VStack, { align: "stretch", spacing: 2, children: [
|
|
7928
7969
|
/* @__PURE__ */ jsxs(FormControl, { isInvalid: !!errors.amount, children: [
|
|
7929
7970
|
/* @__PURE__ */ jsxs(HStack, { justify: "space-between", children: [
|
|
@@ -7972,7 +8013,13 @@ var SendTokenContent = ({
|
|
|
7972
8013
|
bg: isDark ? "whiteAlpha.300" : "blackAlpha.300"
|
|
7973
8014
|
},
|
|
7974
8015
|
onClick: () => setIsSelectingToken(true),
|
|
7975
|
-
leftIcon:
|
|
8016
|
+
leftIcon: TOKEN_LOGO_COMPONENTS[selectedToken.symbol] ? React10.cloneElement(
|
|
8017
|
+
TOKEN_LOGO_COMPONENTS[selectedToken.symbol],
|
|
8018
|
+
{
|
|
8019
|
+
boxSize: "20px",
|
|
8020
|
+
borderRadius: "full"
|
|
8021
|
+
}
|
|
8022
|
+
) : /* @__PURE__ */ jsx(
|
|
7976
8023
|
Image,
|
|
7977
8024
|
{
|
|
7978
8025
|
src: TOKEN_LOGOS[selectedToken.symbol],
|
|
@@ -8023,7 +8070,7 @@ var SendTokenContent = ({
|
|
|
8023
8070
|
}
|
|
8024
8071
|
)
|
|
8025
8072
|
] }),
|
|
8026
|
-
errors.amount && /* @__PURE__ */ jsx(Text, { color: "
|
|
8073
|
+
errors.amount && /* @__PURE__ */ jsx(Text, { color: "#ef4444", fontSize: "sm", children: errors.amount.message })
|
|
8027
8074
|
] }),
|
|
8028
8075
|
selectedToken && /* @__PURE__ */ jsxs(
|
|
8029
8076
|
HStack,
|
|
@@ -8066,7 +8113,7 @@ var SendTokenContent = ({
|
|
|
8066
8113
|
marginTop: "-20px",
|
|
8067
8114
|
marginBottom: "-20px",
|
|
8068
8115
|
marginX: "auto",
|
|
8069
|
-
bg: isDark ? "#
|
|
8116
|
+
bg: isDark ? "#151515" : "gray.100",
|
|
8070
8117
|
borderRadius: "xl",
|
|
8071
8118
|
w: "40px",
|
|
8072
8119
|
h: "40px",
|
|
@@ -8082,34 +8129,41 @@ var SendTokenContent = ({
|
|
|
8082
8129
|
)
|
|
8083
8130
|
}
|
|
8084
8131
|
),
|
|
8085
|
-
/* @__PURE__ */ jsx(
|
|
8086
|
-
|
|
8087
|
-
|
|
8088
|
-
|
|
8089
|
-
|
|
8090
|
-
|
|
8091
|
-
|
|
8092
|
-
|
|
8093
|
-
|
|
8094
|
-
|
|
8095
|
-
|
|
8096
|
-
|
|
8097
|
-
|
|
8098
|
-
|
|
8099
|
-
|
|
8100
|
-
|
|
8132
|
+
/* @__PURE__ */ jsx(
|
|
8133
|
+
Box,
|
|
8134
|
+
{
|
|
8135
|
+
borderRadius: "xl",
|
|
8136
|
+
bg: isDark ? "#00000038" : "gray.50",
|
|
8137
|
+
children: /* @__PURE__ */ jsx(VStack, { align: "stretch", spacing: 2, p: 6, width: "100%", children: /* @__PURE__ */ jsxs(FormControl, { isInvalid: !!errors.toAddressOrDomain, children: [
|
|
8138
|
+
/* @__PURE__ */ jsx(
|
|
8139
|
+
Input,
|
|
8140
|
+
{
|
|
8141
|
+
...register("toAddressOrDomain", {
|
|
8142
|
+
required: t("Address is required")
|
|
8143
|
+
}),
|
|
8144
|
+
onChange: (e) => {
|
|
8145
|
+
const trimmed = e.target.value.trim();
|
|
8146
|
+
e.target.value = trimmed;
|
|
8147
|
+
setValue("toAddressOrDomain", trimmed, {
|
|
8148
|
+
shouldValidate: true
|
|
8149
|
+
});
|
|
8150
|
+
},
|
|
8151
|
+
placeholder: t(
|
|
8152
|
+
"Type the receiver address or domain"
|
|
8153
|
+
),
|
|
8154
|
+
_placeholder: {
|
|
8155
|
+
fontSize: "md",
|
|
8156
|
+
fontWeight: "normal"
|
|
8157
|
+
},
|
|
8158
|
+
fontSize: "lg",
|
|
8159
|
+
fontWeight: "bold",
|
|
8160
|
+
variant: "unstyled"
|
|
8161
|
+
}
|
|
8101
8162
|
),
|
|
8102
|
-
|
|
8103
|
-
|
|
8104
|
-
|
|
8105
|
-
|
|
8106
|
-
fontSize: "lg",
|
|
8107
|
-
fontWeight: "bold",
|
|
8108
|
-
variant: "unstyled"
|
|
8109
|
-
}
|
|
8110
|
-
),
|
|
8111
|
-
errors.toAddressOrDomain && /* @__PURE__ */ jsx(Text, { color: "red.500", fontSize: "sm", children: errors.toAddressOrDomain.message })
|
|
8112
|
-
] }) }) })
|
|
8163
|
+
errors.toAddressOrDomain && /* @__PURE__ */ jsx(Text, { color: "#ef4444", fontSize: "sm", children: errors.toAddressOrDomain.message })
|
|
8164
|
+
] }) })
|
|
8165
|
+
}
|
|
8166
|
+
)
|
|
8113
8167
|
] }) }),
|
|
8114
8168
|
/* @__PURE__ */ jsx(ModalFooter, { children: /* @__PURE__ */ jsx(
|
|
8115
8169
|
Button,
|
|
@@ -8549,7 +8603,7 @@ var ExistingDomainsList = ({
|
|
|
8549
8603
|
Text,
|
|
8550
8604
|
{
|
|
8551
8605
|
fontSize: "sm",
|
|
8552
|
-
color: isDark ? "whiteAlpha.600" : "
|
|
8606
|
+
color: isDark ? "whiteAlpha.600" : "blackAlpha.600",
|
|
8553
8607
|
children: t(
|
|
8554
8608
|
"Current domain"
|
|
8555
8609
|
)
|
|
@@ -8562,8 +8616,8 @@ var ExistingDomainsList = ({
|
|
|
8562
8616
|
Tag,
|
|
8563
8617
|
{
|
|
8564
8618
|
size: "sm",
|
|
8565
|
-
bg: isDark ? "
|
|
8566
|
-
color: isDark ? "whiteAlpha.
|
|
8619
|
+
bg: isDark ? "#ffffff05" : "whiteAlpha.100",
|
|
8620
|
+
color: isDark ? "whiteAlpha.900" : "blackAlpha.600",
|
|
8567
8621
|
px: 3,
|
|
8568
8622
|
py: 1,
|
|
8569
8623
|
borderRadius: "full",
|
|
@@ -8700,7 +8754,7 @@ var ChooseNameSearchContent = ({
|
|
|
8700
8754
|
paddingRight: "120px",
|
|
8701
8755
|
fontSize: "lg",
|
|
8702
8756
|
height: "60px",
|
|
8703
|
-
bg: isDark ? "#
|
|
8757
|
+
bg: isDark ? "#00000038" : "white",
|
|
8704
8758
|
border: `1px solid ${isDark ? "#ffffff29" : "#ebebeb"}`,
|
|
8705
8759
|
_hover: {
|
|
8706
8760
|
border: `1px solid ${isDark ? "#ffffff40" : "#e0e0e0"}`
|
|
@@ -8723,19 +8777,19 @@ var ChooseNameSearchContent = ({
|
|
|
8723
8777
|
{
|
|
8724
8778
|
mr: 4,
|
|
8725
8779
|
fontSize: "sm",
|
|
8726
|
-
color: isDark ? "whiteAlpha.800" : "
|
|
8780
|
+
color: isDark ? "whiteAlpha.800" : "blackAlpha.600",
|
|
8727
8781
|
children: ".veworld.vet"
|
|
8728
8782
|
}
|
|
8729
8783
|
)
|
|
8730
8784
|
}
|
|
8731
8785
|
)
|
|
8732
8786
|
] }),
|
|
8733
|
-
error && hasInteracted && /* @__PURE__ */ jsx(Text, { color: "
|
|
8787
|
+
error && hasInteracted && /* @__PURE__ */ jsx(Text, { color: "#ef4444", fontSize: "sm", children: error }),
|
|
8734
8788
|
!error && hasInteracted && name.length >= 3 && /* @__PURE__ */ jsx(
|
|
8735
8789
|
Text,
|
|
8736
8790
|
{
|
|
8737
8791
|
fontSize: "sm",
|
|
8738
|
-
color: isAvailable ? "green.500" : "
|
|
8792
|
+
color: isAvailable ? "green.500" : "#ef4444",
|
|
8739
8793
|
fontWeight: "500",
|
|
8740
8794
|
children: isOwnDomain ? t("YOU OWN THIS") : isAvailable ? t("AVAILABLE") : t("UNAVAILABLE")
|
|
8741
8795
|
}
|
|
@@ -8949,7 +9003,7 @@ var FAQAccordion = () => {
|
|
|
8949
9003
|
Input,
|
|
8950
9004
|
{
|
|
8951
9005
|
placeholder: t("Search FAQ"),
|
|
8952
|
-
bg: isDark ? "#
|
|
9006
|
+
bg: isDark ? "#00000038" : "gray.50",
|
|
8953
9007
|
borderRadius: "xl",
|
|
8954
9008
|
height: "56px",
|
|
8955
9009
|
pl: 12,
|
|
@@ -8957,14 +9011,19 @@ var FAQAccordion = () => {
|
|
|
8957
9011
|
onChange: (e) => setSearchQuery(e.target.value)
|
|
8958
9012
|
}
|
|
8959
9013
|
),
|
|
8960
|
-
/* @__PURE__ */ jsx(InputLeftElement, { h: "56px", w: "56px", pl: 4, children: /* @__PURE__ */ jsx(
|
|
9014
|
+
/* @__PURE__ */ jsx(InputLeftElement, { h: "56px", w: "56px", pl: 4, children: /* @__PURE__ */ jsx(
|
|
9015
|
+
CiSearch,
|
|
9016
|
+
{
|
|
9017
|
+
color: isDark ? "whiteAlpha.400" : "blackAlpha.600"
|
|
9018
|
+
}
|
|
9019
|
+
) })
|
|
8961
9020
|
] }),
|
|
8962
9021
|
filteredFaqItems.length === 0 ? /* @__PURE__ */ jsxs(
|
|
8963
9022
|
VStack,
|
|
8964
9023
|
{
|
|
8965
9024
|
spacing: 2,
|
|
8966
9025
|
py: 8,
|
|
8967
|
-
color: isDark ? "whiteAlpha.600" : "
|
|
9026
|
+
color: isDark ? "whiteAlpha.600" : "blackAlpha.600",
|
|
8968
9027
|
children: [
|
|
8969
9028
|
/* @__PURE__ */ jsx(Icon, { as: FiSlash, boxSize: 12, opacity: 0.5 }),
|
|
8970
9029
|
/* @__PURE__ */ jsx(Text, { fontSize: "lg", children: t("No questions found") }),
|
|
@@ -8975,10 +9034,10 @@ var FAQAccordion = () => {
|
|
|
8975
9034
|
/* @__PURE__ */ jsxs(
|
|
8976
9035
|
AccordionButton,
|
|
8977
9036
|
{
|
|
8978
|
-
bg: isDark ? "whiteAlpha.50" : "
|
|
9037
|
+
bg: isDark ? "whiteAlpha.50" : "blackAlpha.50",
|
|
8979
9038
|
borderRadius: "xl",
|
|
8980
9039
|
_hover: {
|
|
8981
|
-
bg: isDark ? "whiteAlpha.100" : "
|
|
9040
|
+
bg: isDark ? "whiteAlpha.100" : "blackAlpha.100"
|
|
8982
9041
|
},
|
|
8983
9042
|
children: [
|
|
8984
9043
|
/* @__PURE__ */ jsx(Box, { flex: "1", textAlign: "left", py: 2, children: /* @__PURE__ */ jsx(Text, { fontWeight: "500", children: item.question }) }),
|
|
@@ -9294,6 +9353,7 @@ var en_default = {
|
|
|
9294
9353
|
"Save Changes": "Save Changes",
|
|
9295
9354
|
"Saving changes...": "Saving changes...",
|
|
9296
9355
|
"Say goodbye to 0x addresses, claim your .veworld.vet subdomain now for free!": "Say goodbye to 0x addresses, claim your .veworld.vet subdomain now for free!",
|
|
9356
|
+
"Search Apps": "Search Apps",
|
|
9297
9357
|
"Search FAQ": "Search FAQ",
|
|
9298
9358
|
"Search dApps": "Search dApps",
|
|
9299
9359
|
"Search for a domain": "Search for a domain",
|
|
@@ -9772,6 +9832,7 @@ var de_default = {
|
|
|
9772
9832
|
"Save Changes": "\xC4nderungen speichern",
|
|
9773
9833
|
"Saving changes...": "\xC4nderungen werden gespeichert...",
|
|
9774
9834
|
"Say goodbye to 0x addresses, claim your .veworld.vet subdomain now for free!": "Verabschieden Sie sich von 0x-Adressen, beanspruchen Sie Ihre .veworld.vet-Subdomain jetzt kostenlos!",
|
|
9835
|
+
"Search Apps": "Apps durchsuchen",
|
|
9775
9836
|
"Search FAQ": "FAQ durchsuchen",
|
|
9776
9837
|
"Search dApps": "dApps durchsuchen",
|
|
9777
9838
|
"Search for a domain": "Nach einer Domain suchen",
|
|
@@ -10250,6 +10311,7 @@ var it_default = {
|
|
|
10250
10311
|
"Save Changes": "Salva modifiche",
|
|
10251
10312
|
"Saving changes...": "Salvataggio delle modifiche...",
|
|
10252
10313
|
"Say goodbye to 0x addresses, claim your .veworld.vet subdomain now for free!": "D\xEC addio agli indirizzi 0x, richiedi il tuo sottodominio .veworld.vet ora gratuitamente!",
|
|
10314
|
+
"Search Apps": "Cerca App",
|
|
10253
10315
|
"Search FAQ": "Cerca FAQ",
|
|
10254
10316
|
"Search dApps": "Cerca dApp",
|
|
10255
10317
|
"Search for a domain": "Cerca un dominio",
|
|
@@ -10728,6 +10790,7 @@ var fr_default = {
|
|
|
10728
10790
|
"Save Changes": "Enregistrer les modifications",
|
|
10729
10791
|
"Saving changes...": "Enregistrement des modifications...",
|
|
10730
10792
|
"Say goodbye to 0x addresses, claim your .veworld.vet subdomain now for free!": "Dites adieu aux adresses 0x, r\xE9clamez d\xE8s maintenant votre sous-domaine .veworld.vet gratuitement!",
|
|
10793
|
+
"Search Apps": "Rechercher des applications",
|
|
10731
10794
|
"Search FAQ": "Rechercher dans la FAQ",
|
|
10732
10795
|
"Search dApps": "Rechercher des dApps",
|
|
10733
10796
|
"Search for a domain": "Rechercher un domaine",
|
|
@@ -11206,6 +11269,7 @@ var es_default = {
|
|
|
11206
11269
|
"Save Changes": "Guardar cambios",
|
|
11207
11270
|
"Saving changes...": "Guardando cambios...",
|
|
11208
11271
|
"Say goodbye to 0x addresses, claim your .veworld.vet subdomain now for free!": "Desp\xEDdete de las direcciones 0x, \xA1reclama tu subdominio .veworld.vet ahora gratis!",
|
|
11272
|
+
"Search Apps": "Buscar aplicaciones",
|
|
11209
11273
|
"Search FAQ": "Buscar en las preguntas frecuentes",
|
|
11210
11274
|
"Search dApps": "Buscar dApps",
|
|
11211
11275
|
"Search for a domain": "Buscar un dominio",
|
|
@@ -11684,6 +11748,7 @@ var zh_default = {
|
|
|
11684
11748
|
"Save Changes": "\u4FDD\u5B58\u66F4\u6539",
|
|
11685
11749
|
"Saving changes...": "\u6B63\u5728\u4FDD\u5B58\u66F4\u6539...",
|
|
11686
11750
|
"Say goodbye to 0x addresses, claim your .veworld.vet subdomain now for free!": "\u544A\u522B 0x \u5730\u5740\uFF0C\u7ACB\u5373\u514D\u8D39\u9886\u53D6\u60A8\u7684 .veworld.vet \u5B50\u57DF\u540D\uFF01",
|
|
11751
|
+
"Search Apps": "\u641C\u7D22\u5E94\u7528",
|
|
11687
11752
|
"Search FAQ": "\u641C\u7D22\u5E38\u89C1\u95EE\u9898",
|
|
11688
11753
|
"Search dApps": "\u641C\u7D22 dApps",
|
|
11689
11754
|
"Search for a domain": "\u641C\u7D22\u57DF\u540D",
|
|
@@ -12162,6 +12227,7 @@ var ja_default = {
|
|
|
12162
12227
|
"Save Changes": "\u5909\u66F4\u3092\u4FDD\u5B58",
|
|
12163
12228
|
"Saving changes...": "\u5909\u66F4\u3092\u4FDD\u5B58\u3057\u3066\u3044\u307E\u3059...",
|
|
12164
12229
|
"Say goodbye to 0x addresses, claim your .veworld.vet subdomain now for free!": "0x\u30A2\u30C9\u30EC\u30B9\u306B\u5225\u308C\u3092\u544A\u3052\u3001\u4ECA\u3059\u3050\u7121\u6599\u3067.veworld.vet\u30B5\u30D6\u30C9\u30E1\u30A4\u30F3\u3092\u53D6\u5F97\u3057\u307E\u3057\u3087\u3046\uFF01",
|
|
12230
|
+
"Search Apps": "\u30A2\u30D7\u30EA\u3092\u691C\u7D22",
|
|
12165
12231
|
"Search FAQ": "FAQ\u3092\u691C\u7D22",
|
|
12166
12232
|
"Search dApps": "dApps\u3092\u691C\u7D22",
|
|
12167
12233
|
"Search for a domain": "\u30C9\u30E1\u30A4\u30F3\u3092\u691C\u7D22",
|
|
@@ -12412,10 +12478,12 @@ var FAQContent = ({ onGoBack }) => {
|
|
|
12412
12478
|
/* @__PURE__ */ jsx(ModalBody, { children: /* @__PURE__ */ jsxs(VStack, { spacing: 6, align: "stretch", children: [
|
|
12413
12479
|
/* @__PURE__ */ jsxs(VStack, { children: [
|
|
12414
12480
|
/* @__PURE__ */ jsx(HStack, { justify: "center", children: /* @__PURE__ */ jsx(
|
|
12415
|
-
|
|
12481
|
+
VechainLogo,
|
|
12416
12482
|
{
|
|
12417
12483
|
isDark,
|
|
12418
|
-
w: "200px"
|
|
12484
|
+
w: "200px",
|
|
12485
|
+
h: "auto",
|
|
12486
|
+
ml: -6
|
|
12419
12487
|
}
|
|
12420
12488
|
) }),
|
|
12421
12489
|
/* @__PURE__ */ jsx(Text, { fontSize: "sm", opacity: 0.7, textAlign: "center", children: t(
|
|
@@ -12602,7 +12670,7 @@ var CustomizationContent = ({
|
|
|
12602
12670
|
/* @__PURE__ */ jsxs(
|
|
12603
12671
|
Card,
|
|
12604
12672
|
{
|
|
12605
|
-
bg: isDark ? "
|
|
12673
|
+
bg: isDark ? "#1e1e21" : "#00000005",
|
|
12606
12674
|
borderRadius: "xl",
|
|
12607
12675
|
width: "full",
|
|
12608
12676
|
position: "relative",
|
|
@@ -12743,7 +12811,7 @@ var CustomizationContent = ({
|
|
|
12743
12811
|
placeholder: !hasDomain ? t("Set a domain first") : t("Enter your display name")
|
|
12744
12812
|
}
|
|
12745
12813
|
),
|
|
12746
|
-
errors.displayName && /* @__PURE__ */ jsx(Text, { color: "
|
|
12814
|
+
errors.displayName && /* @__PURE__ */ jsx(Text, { color: "#ef4444", fontSize: "sm", mt: 1, children: errors.displayName.message })
|
|
12747
12815
|
]
|
|
12748
12816
|
}
|
|
12749
12817
|
),
|
|
@@ -12768,7 +12836,7 @@ var CustomizationContent = ({
|
|
|
12768
12836
|
placeholder: t("Eg: DevRel @ ENS Labs")
|
|
12769
12837
|
}
|
|
12770
12838
|
),
|
|
12771
|
-
errors.description && /* @__PURE__ */ jsx(Text, { color: "
|
|
12839
|
+
errors.description && /* @__PURE__ */ jsx(Text, { color: "#ef4444", fontSize: "sm", mt: 1, children: errors.description.message })
|
|
12772
12840
|
]
|
|
12773
12841
|
}
|
|
12774
12842
|
),
|
|
@@ -12803,7 +12871,7 @@ var CustomizationContent = ({
|
|
|
12803
12871
|
errors.twitter && /* @__PURE__ */ jsx(
|
|
12804
12872
|
Text,
|
|
12805
12873
|
{
|
|
12806
|
-
color: "
|
|
12874
|
+
color: "#ef4444",
|
|
12807
12875
|
fontSize: "sm",
|
|
12808
12876
|
mt: 1,
|
|
12809
12877
|
children: errors.twitter.message
|
|
@@ -12839,7 +12907,7 @@ var CustomizationContent = ({
|
|
|
12839
12907
|
errors.website && /* @__PURE__ */ jsx(
|
|
12840
12908
|
Text,
|
|
12841
12909
|
{
|
|
12842
|
-
color: "
|
|
12910
|
+
color: "#ef4444",
|
|
12843
12911
|
fontSize: "sm",
|
|
12844
12912
|
mt: 1,
|
|
12845
12913
|
children: errors.website.message
|
|
@@ -12875,7 +12943,7 @@ var CustomizationContent = ({
|
|
|
12875
12943
|
errors.email && /* @__PURE__ */ jsx(
|
|
12876
12944
|
Text,
|
|
12877
12945
|
{
|
|
12878
|
-
color: "
|
|
12946
|
+
color: "#ef4444",
|
|
12879
12947
|
fontSize: "sm",
|
|
12880
12948
|
mt: 1,
|
|
12881
12949
|
children: errors.email.message
|
|
@@ -13011,7 +13079,7 @@ var CustomizationSummaryContent = ({
|
|
|
13011
13079
|
Text,
|
|
13012
13080
|
{
|
|
13013
13081
|
fontSize: "sm",
|
|
13014
|
-
color: isDark ? "whiteAlpha.600" : "
|
|
13082
|
+
color: isDark ? "whiteAlpha.600" : "blackAlpha.600",
|
|
13015
13083
|
children: label
|
|
13016
13084
|
}
|
|
13017
13085
|
),
|
|
@@ -13041,7 +13109,7 @@ var CustomizationSummaryContent = ({
|
|
|
13041
13109
|
Text,
|
|
13042
13110
|
{
|
|
13043
13111
|
fontSize: "sm",
|
|
13044
|
-
color: isDark ? "whiteAlpha.600" : "
|
|
13112
|
+
color: isDark ? "whiteAlpha.600" : "blackAlpha.600",
|
|
13045
13113
|
children: t("Profile Image")
|
|
13046
13114
|
}
|
|
13047
13115
|
),
|
|
@@ -13303,7 +13371,7 @@ var AssetsContent = ({ setCurrentContent }) => {
|
|
|
13303
13371
|
Input,
|
|
13304
13372
|
{
|
|
13305
13373
|
placeholder: "Search token",
|
|
13306
|
-
bg: darkMode ? "#
|
|
13374
|
+
bg: darkMode ? "#00000038" : "gray.50",
|
|
13307
13375
|
borderRadius: "xl",
|
|
13308
13376
|
height: "56px",
|
|
13309
13377
|
pl: 12,
|
|
@@ -13416,7 +13484,7 @@ var ManageCustomTokenContent = ({
|
|
|
13416
13484
|
fontWeight: "medium"
|
|
13417
13485
|
}
|
|
13418
13486
|
),
|
|
13419
|
-
errors.newTokenAddress && /* @__PURE__ */ jsx(Text, { color: "
|
|
13487
|
+
errors.newTokenAddress && /* @__PURE__ */ jsx(Text, { color: "#ef4444", fontSize: "sm", children: errors.newTokenAddress.message })
|
|
13420
13488
|
] }) })
|
|
13421
13489
|
}
|
|
13422
13490
|
),
|
|
@@ -13520,7 +13588,7 @@ var BridgeContent = ({ setCurrentContent }) => {
|
|
|
13520
13588
|
/* @__PURE__ */ jsx(
|
|
13521
13589
|
Image,
|
|
13522
13590
|
{
|
|
13523
|
-
src: isDark ? "https://
|
|
13591
|
+
src: isDark ? "https://static.vechain.energy/logo-dark.svg" : "https://static.vechain.energy/logo-light.svg",
|
|
13524
13592
|
alt: "bridge token",
|
|
13525
13593
|
w: "200px",
|
|
13526
13594
|
h: "200px",
|
|
@@ -13567,7 +13635,7 @@ var ConnectionDetailsContent = ({ onGoBack }) => {
|
|
|
13567
13635
|
/* @__PURE__ */ jsxs(ModalBody, { w: "full", children: [
|
|
13568
13636
|
connection.isConnectedWithCrossApp && connectionCache && /* @__PURE__ */ jsx(CrossAppConnectionCard, { connectionCache }),
|
|
13569
13637
|
connection.isConnectedWithSocialLogin && /* @__PURE__ */ jsx(PrivyConnectionCard, {}),
|
|
13570
|
-
connection.isConnectedWithDappKit && /* @__PURE__ */ jsx(
|
|
13638
|
+
connection.isConnectedWithDappKit && /* @__PURE__ */ jsx(DappKitConnectionCard, {}),
|
|
13571
13639
|
connection.isConnectedWithPrivy && /* @__PURE__ */ jsx(WalletSecuredBy, {})
|
|
13572
13640
|
] }),
|
|
13573
13641
|
/* @__PURE__ */ jsx(ModalFooter, { pt: 0 })
|
|
@@ -14271,6 +14339,7 @@ var NotificationsContent = ({ setCurrentContent }) => {
|
|
|
14271
14339
|
var SharedAppCard = ({
|
|
14272
14340
|
name,
|
|
14273
14341
|
imageUrl,
|
|
14342
|
+
logoComponent,
|
|
14274
14343
|
onClick,
|
|
14275
14344
|
size = "md"
|
|
14276
14345
|
}) => {
|
|
@@ -14281,8 +14350,8 @@ var SharedAppCard = ({
|
|
|
14281
14350
|
_hover: { opacity: 0.8 },
|
|
14282
14351
|
cursor: "pointer",
|
|
14283
14352
|
onClick,
|
|
14284
|
-
children: /* @__PURE__ */ jsx(CardBody, { p: size === "sm" ? 2 : 4, alignItems: "center", children: /* @__PURE__ */ jsxs(VStack, { spacing:
|
|
14285
|
-
imageUrl && /* @__PURE__ */ jsx(
|
|
14353
|
+
children: /* @__PURE__ */ jsx(CardBody, { p: size === "sm" ? 2 : 4, alignItems: "center", children: /* @__PURE__ */ jsxs(VStack, { spacing: 2, h: "100%", justifyContent: "space-between", children: [
|
|
14354
|
+
logoComponent ? logoComponent : imageUrl && /* @__PURE__ */ jsx(
|
|
14286
14355
|
Image,
|
|
14287
14356
|
{
|
|
14288
14357
|
src: imageUrl,
|
|
@@ -14318,6 +14387,7 @@ var AppComponent = ({ xApp, setCurrentContent }) => {
|
|
|
14318
14387
|
{
|
|
14319
14388
|
isLoaded: !appMetadataLoading && !isLogoLoading,
|
|
14320
14389
|
borderRadius: "md",
|
|
14390
|
+
height: "100%",
|
|
14321
14391
|
children: /* @__PURE__ */ jsx(
|
|
14322
14392
|
SharedAppCard,
|
|
14323
14393
|
{
|
|
@@ -14346,6 +14416,7 @@ var CustomAppComponent = ({
|
|
|
14346
14416
|
image,
|
|
14347
14417
|
url,
|
|
14348
14418
|
description,
|
|
14419
|
+
logoComponent,
|
|
14349
14420
|
setCurrentContent
|
|
14350
14421
|
}) => {
|
|
14351
14422
|
return /* @__PURE__ */ jsx(
|
|
@@ -14360,9 +14431,11 @@ var CustomAppComponent = ({
|
|
|
14360
14431
|
name,
|
|
14361
14432
|
image,
|
|
14362
14433
|
url,
|
|
14363
|
-
description
|
|
14434
|
+
description,
|
|
14435
|
+
logoComponent
|
|
14364
14436
|
}
|
|
14365
|
-
})
|
|
14437
|
+
}),
|
|
14438
|
+
...logoComponent && { logoComponent }
|
|
14366
14439
|
}
|
|
14367
14440
|
);
|
|
14368
14441
|
};
|
|
@@ -14450,7 +14523,17 @@ var ExploreEcosystemContent = ({ setCurrentContent }) => {
|
|
|
14450
14523
|
) : [];
|
|
14451
14524
|
const filteredDefaultApps = DEFAULT_APPS.filter(
|
|
14452
14525
|
(dapp) => dapp.name.toLowerCase().includes(searchQuery.toLowerCase())
|
|
14453
|
-
)
|
|
14526
|
+
).map((dapp) => {
|
|
14527
|
+
if (dapp.logoComponent) {
|
|
14528
|
+
return {
|
|
14529
|
+
...dapp,
|
|
14530
|
+
logoComponent: React10.cloneElement(dapp.logoComponent, {
|
|
14531
|
+
isDark
|
|
14532
|
+
})
|
|
14533
|
+
};
|
|
14534
|
+
}
|
|
14535
|
+
return dapp;
|
|
14536
|
+
});
|
|
14454
14537
|
const { shortcuts } = useEcosystemShortcuts();
|
|
14455
14538
|
return /* @__PURE__ */ jsxs(Box, { children: [
|
|
14456
14539
|
/* @__PURE__ */ jsxs(StickyHeaderContainer, { children: [
|
|
@@ -14474,10 +14557,10 @@ var ExploreEcosystemContent = ({ setCurrentContent }) => {
|
|
|
14474
14557
|
/* @__PURE__ */ jsx(
|
|
14475
14558
|
Input,
|
|
14476
14559
|
{
|
|
14477
|
-
placeholder: t("Search
|
|
14560
|
+
placeholder: t("Search Apps"),
|
|
14478
14561
|
value: searchQuery,
|
|
14479
14562
|
onChange: (e) => setSearchQuery(e.target.value),
|
|
14480
|
-
bg: isDark ? "#
|
|
14563
|
+
bg: isDark ? "#00000038" : "gray.50",
|
|
14481
14564
|
borderRadius: "xl",
|
|
14482
14565
|
height: "56px",
|
|
14483
14566
|
pl: 12
|
|
@@ -14498,7 +14581,10 @@ var ExploreEcosystemContent = ({ setCurrentContent }) => {
|
|
|
14498
14581
|
image: dapp.logo,
|
|
14499
14582
|
url: dapp.external_url,
|
|
14500
14583
|
setCurrentContent,
|
|
14501
|
-
description: dapp.description
|
|
14584
|
+
description: dapp.description,
|
|
14585
|
+
...dapp.logoComponent && {
|
|
14586
|
+
logoComponent: dapp.logoComponent
|
|
14587
|
+
}
|
|
14502
14588
|
}
|
|
14503
14589
|
) }, dapp.name)),
|
|
14504
14590
|
filteredDapps.map((dapp) => /* @__PURE__ */ jsx(GridItem, { children: /* @__PURE__ */ jsx(
|
|
@@ -14542,7 +14628,8 @@ var AppOverviewContent = ({
|
|
|
14542
14628
|
name,
|
|
14543
14629
|
image,
|
|
14544
14630
|
url,
|
|
14545
|
-
description
|
|
14631
|
+
description,
|
|
14632
|
+
logoComponent
|
|
14546
14633
|
}) => {
|
|
14547
14634
|
const { t } = useTranslation();
|
|
14548
14635
|
return /* @__PURE__ */ jsxs(Box, { children: [
|
|
@@ -14557,7 +14644,7 @@ var AppOverviewContent = ({
|
|
|
14557
14644
|
/* @__PURE__ */ jsx(ModalCloseButton, {})
|
|
14558
14645
|
] }),
|
|
14559
14646
|
/* @__PURE__ */ jsx(ModalBody, { children: /* @__PURE__ */ jsxs(VStack, { spacing: 6, align: "center", w: "full", children: [
|
|
14560
|
-
/* @__PURE__ */ jsx(
|
|
14647
|
+
logoComponent ? logoComponent : /* @__PURE__ */ jsx(
|
|
14561
14648
|
Image,
|
|
14562
14649
|
{
|
|
14563
14650
|
src: image,
|
|
@@ -14719,7 +14806,7 @@ var TransactionModalContent = ({
|
|
|
14719
14806
|
Icon,
|
|
14720
14807
|
{
|
|
14721
14808
|
as: MdOutlineErrorOutline,
|
|
14722
|
-
color: "
|
|
14809
|
+
color: "#ef4444",
|
|
14723
14810
|
fontSize: "100px"
|
|
14724
14811
|
}
|
|
14725
14812
|
),
|
|
@@ -14732,7 +14819,7 @@ var TransactionModalContent = ({
|
|
|
14732
14819
|
Icon,
|
|
14733
14820
|
{
|
|
14734
14821
|
as: IoIosCheckmarkCircleOutline,
|
|
14735
|
-
color: "#
|
|
14822
|
+
color: "#22c55e",
|
|
14736
14823
|
fontSize: "100px"
|
|
14737
14824
|
}
|
|
14738
14825
|
),
|
|
@@ -14767,22 +14854,17 @@ var TransactionModalContent = ({
|
|
|
14767
14854
|
)
|
|
14768
14855
|
] }),
|
|
14769
14856
|
/* @__PURE__ */ jsx(ModalBody, { children: /* @__PURE__ */ jsxs(VStack, { align: "center", p: 6, spacing: 3, children: [
|
|
14770
|
-
statusConfig.icon
|
|
14771
|
-
|
|
14772
|
-
|
|
14773
|
-
|
|
14774
|
-
|
|
14775
|
-
|
|
14776
|
-
|
|
14777
|
-
|
|
14778
|
-
|
|
14779
|
-
|
|
14780
|
-
|
|
14781
|
-
children: statusConfig.icon
|
|
14782
|
-
}
|
|
14783
|
-
),
|
|
14784
|
-
status === "success" && uiConfig?.showShareOnSocials && /* @__PURE__ */ jsxs(VStack, { mt: 2, children: [
|
|
14785
|
-
/* @__PURE__ */ jsx(Text, { fontSize: "xs", children: t("Share on") }),
|
|
14857
|
+
statusConfig.icon,
|
|
14858
|
+
status === "success" && uiConfig?.showShareOnSocials && /* @__PURE__ */ jsxs(VStack, { mt: 2, spacing: 3, children: [
|
|
14859
|
+
/* @__PURE__ */ jsx(
|
|
14860
|
+
Text,
|
|
14861
|
+
{
|
|
14862
|
+
fontSize: "sm",
|
|
14863
|
+
fontWeight: "bold",
|
|
14864
|
+
opacity: 0.5,
|
|
14865
|
+
children: t("Share on")
|
|
14866
|
+
}
|
|
14867
|
+
),
|
|
14786
14868
|
/* @__PURE__ */ jsx(
|
|
14787
14869
|
ShareButtons,
|
|
14788
14870
|
{
|
|
@@ -14910,29 +14992,24 @@ var SuccessfulOperationContent = ({
|
|
|
14910
14992
|
] }),
|
|
14911
14993
|
/* @__PURE__ */ jsx(ModalBody, { children: /* @__PURE__ */ jsxs(VStack, { align: "center", p: 6, spacing: 3, children: [
|
|
14912
14994
|
/* @__PURE__ */ jsx(
|
|
14913
|
-
|
|
14995
|
+
Icon,
|
|
14914
14996
|
{
|
|
14915
|
-
|
|
14916
|
-
|
|
14917
|
-
|
|
14918
|
-
repeat: Infinity
|
|
14919
|
-
},
|
|
14920
|
-
animate: {
|
|
14921
|
-
scale: [1, 1.1, 1]
|
|
14922
|
-
},
|
|
14923
|
-
children: /* @__PURE__ */ jsx(
|
|
14924
|
-
Icon,
|
|
14925
|
-
{
|
|
14926
|
-
as: IoIosCheckmarkCircleOutline,
|
|
14927
|
-
fontSize: "100px",
|
|
14928
|
-
color: "#00ff45de"
|
|
14929
|
-
}
|
|
14930
|
-
)
|
|
14997
|
+
as: IoIosCheckmarkCircleOutline,
|
|
14998
|
+
fontSize: "100px",
|
|
14999
|
+
color: "#22c55e"
|
|
14931
15000
|
}
|
|
14932
15001
|
),
|
|
14933
15002
|
description && /* @__PURE__ */ jsx(Text, { fontSize: "sm", textAlign: "center", children: description }),
|
|
14934
|
-
showSocialButtons && txId && /* @__PURE__ */ jsxs(VStack, { mt: 2, children: [
|
|
14935
|
-
/* @__PURE__ */ jsx(
|
|
15003
|
+
showSocialButtons && txId && /* @__PURE__ */ jsxs(VStack, { mt: 2, spacing: 3, children: [
|
|
15004
|
+
/* @__PURE__ */ jsx(
|
|
15005
|
+
Text,
|
|
15006
|
+
{
|
|
15007
|
+
fontSize: "sm",
|
|
15008
|
+
fontWeight: "bold",
|
|
15009
|
+
opacity: 0.5,
|
|
15010
|
+
children: t("Share on")
|
|
15011
|
+
}
|
|
15012
|
+
),
|
|
14936
15013
|
/* @__PURE__ */ jsx(
|
|
14937
15014
|
ShareButtons,
|
|
14938
15015
|
{
|
|
@@ -15619,8 +15696,8 @@ var LoadingContent = ({
|
|
|
15619
15696
|
onTryAgain
|
|
15620
15697
|
}) => {
|
|
15621
15698
|
const { t } = useTranslation();
|
|
15622
|
-
const [showTimeout, setShowTimeout] =
|
|
15623
|
-
|
|
15699
|
+
const [showTimeout, setShowTimeout] = React10.useState(false);
|
|
15700
|
+
React10.useEffect(() => {
|
|
15624
15701
|
const timer = setTimeout(() => {
|
|
15625
15702
|
setShowTimeout(true);
|
|
15626
15703
|
}, 7e3);
|
|
@@ -15698,7 +15775,7 @@ var ErrorContent = ({
|
|
|
15698
15775
|
Icon,
|
|
15699
15776
|
{
|
|
15700
15777
|
as: MdOutlineErrorOutline,
|
|
15701
|
-
color: "
|
|
15778
|
+
color: "#ef4444",
|
|
15702
15779
|
fontSize: "60px",
|
|
15703
15780
|
opacity: 0.5
|
|
15704
15781
|
}
|
|
@@ -15884,7 +15961,7 @@ var ProfileCard = ({
|
|
|
15884
15961
|
const activeAccountTextRecords = useGetTextRecords(
|
|
15885
15962
|
activeAccountDomain?.data?.domain
|
|
15886
15963
|
);
|
|
15887
|
-
const baseBackgroundColor = isDark ? "
|
|
15964
|
+
const baseBackgroundColor = isDark ? "#1e1e21" : "#00000005";
|
|
15888
15965
|
const headerImageSvg = getPicassoImage(address);
|
|
15889
15966
|
const isConnectedAccount = address === account?.address;
|
|
15890
15967
|
const hasLinks = activeAccountTextRecords?.data?.url || activeAccountTextRecords?.data?.["com.x"] || activeAccountTextRecords?.data?.email;
|
|
@@ -15939,7 +16016,7 @@ var ProfileCard = ({
|
|
|
15939
16016
|
)
|
|
15940
16017
|
}
|
|
15941
16018
|
),
|
|
15942
|
-
/* @__PURE__ */ jsx(CardBody, {
|
|
16019
|
+
/* @__PURE__ */ jsx(CardBody, { mt: 10, backgroundColor: "none", border: "none", children: /* @__PURE__ */ jsxs(VStack, { w: "full", spacing: 2, children: [
|
|
15943
16020
|
showDisplayName && activeAccountTextRecords?.data?.display && /* @__PURE__ */ jsx(
|
|
15944
16021
|
Text,
|
|
15945
16022
|
{
|
|
@@ -16004,7 +16081,7 @@ var ProfileCard = ({
|
|
|
16004
16081
|
}
|
|
16005
16082
|
)
|
|
16006
16083
|
] }) }),
|
|
16007
|
-
isConnectedAccount && showEdit && /* @__PURE__ */ jsx(CardFooter, {
|
|
16084
|
+
isConnectedAccount && showEdit && /* @__PURE__ */ jsx(CardFooter, { justify: "space-between", children: /* @__PURE__ */ jsxs(VStack, { w: "full", justify: "space-between", spacing: 4, children: [
|
|
16008
16085
|
/* @__PURE__ */ jsx(Divider, {}),
|
|
16009
16086
|
/* @__PURE__ */ jsxs(HStack, { w: "full", justify: "space-between", children: [
|
|
16010
16087
|
/* @__PURE__ */ jsx(
|
|
@@ -16300,7 +16377,10 @@ var ModalProvider = ({ children }) => {
|
|
|
16300
16377
|
[]
|
|
16301
16378
|
);
|
|
16302
16379
|
const [isAccountModalOpen, setIsAccountModalOpen] = useState(false);
|
|
16303
|
-
const openAccountModal = useCallback(() =>
|
|
16380
|
+
const openAccountModal = useCallback(() => {
|
|
16381
|
+
setAccountModalContent("main");
|
|
16382
|
+
setIsAccountModalOpen(true);
|
|
16383
|
+
}, []);
|
|
16304
16384
|
const closeAccountModal = useCallback(
|
|
16305
16385
|
() => setIsAccountModalOpen(false),
|
|
16306
16386
|
[]
|
|
@@ -17700,14 +17780,14 @@ var variants = {
|
|
|
17700
17780
|
overflowX: "hidden",
|
|
17701
17781
|
maxHeight: "550px",
|
|
17702
17782
|
borderRadius: "24px",
|
|
17703
|
-
backgroundColor: props.colorMode === "dark" ? "#
|
|
17783
|
+
backgroundColor: props.colorMode === "dark" ? "#18181b" : "white"
|
|
17704
17784
|
},
|
|
17705
17785
|
closeButton: {
|
|
17706
17786
|
borderRadius: "50%"
|
|
17707
17787
|
},
|
|
17708
17788
|
header: {
|
|
17709
17789
|
w: "full",
|
|
17710
|
-
color: props.colorMode === "dark" ? "#dfdfdd" : "#
|
|
17790
|
+
color: props.colorMode === "dark" ? "#dfdfdd" : "#2e2e2e",
|
|
17711
17791
|
fontSize: "md",
|
|
17712
17792
|
fontWeight: "700",
|
|
17713
17793
|
textAlign: "center"
|
|
@@ -17726,7 +17806,7 @@ var variants = {
|
|
|
17726
17806
|
pointerEvents: "auto",
|
|
17727
17807
|
boxShadow: "0px 0px 10px 0px rgba(0, 0, 0, 0.1)",
|
|
17728
17808
|
py: "10px",
|
|
17729
|
-
backgroundColor: props.colorMode === "dark" ? "#
|
|
17809
|
+
backgroundColor: props.colorMode === "dark" ? "#18181b" : "white"
|
|
17730
17810
|
},
|
|
17731
17811
|
closeButton: {
|
|
17732
17812
|
borderRadius: "50%",
|
|
@@ -17748,7 +17828,11 @@ var variants2 = {
|
|
|
17748
17828
|
body: {
|
|
17749
17829
|
borderRadius: "12px",
|
|
17750
17830
|
backgroundColor: props.colorMode === "dark" ? "#1f1f1e" : "white",
|
|
17751
|
-
border: props.colorMode === "dark" ? "1px solid #2d2d2d" : "1px solid #eaeaea"
|
|
17831
|
+
border: props.colorMode === "dark" ? "1px solid #2d2d2d" : "1px solid #eaeaea",
|
|
17832
|
+
p: 5
|
|
17833
|
+
},
|
|
17834
|
+
footer: {
|
|
17835
|
+
p: 5
|
|
17752
17836
|
}
|
|
17753
17837
|
}),
|
|
17754
17838
|
featureAnnouncement: (props) => definePartsStyle2({
|
|
@@ -17892,12 +17976,12 @@ var variants3 = {
|
|
|
17892
17976
|
})),
|
|
17893
17977
|
mainContentButton: defineStyle(({ colorMode }) => ({
|
|
17894
17978
|
width: "100%",
|
|
17895
|
-
backgroundColor: colorMode === "dark" ? "
|
|
17979
|
+
backgroundColor: colorMode === "dark" ? "#ffffff05" : "blackAlpha.50",
|
|
17896
17980
|
borderRadius: "xl",
|
|
17897
17981
|
p: 3,
|
|
17898
17982
|
cursor: "pointer",
|
|
17899
17983
|
_hover: {
|
|
17900
|
-
backgroundColor: colorMode === "dark" ? "
|
|
17984
|
+
backgroundColor: colorMode === "dark" ? "#ffffff0d" : "blackAlpha.200"
|
|
17901
17985
|
}
|
|
17902
17986
|
}))
|
|
17903
17987
|
};
|