@vechain/vechain-kit 1.3.0 → 1.3.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/dist/index.cjs +48 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +47 -7
- package/dist/index.js.map +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4135,6 +4135,27 @@ var useAccountCustomizationModal = () => {
|
|
|
4135
4135
|
var AccountCustomizationModalProvider = ({
|
|
4136
4136
|
children
|
|
4137
4137
|
}) => /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
|
|
4138
|
+
var useReceiveModal = () => {
|
|
4139
|
+
const {
|
|
4140
|
+
openAccountModal,
|
|
4141
|
+
closeAccountModal,
|
|
4142
|
+
isAccountModalOpen,
|
|
4143
|
+
setAccountModalContent
|
|
4144
|
+
} = useVeChainKitConfig();
|
|
4145
|
+
const open = () => {
|
|
4146
|
+
setAccountModalContent("receive-token");
|
|
4147
|
+
openAccountModal();
|
|
4148
|
+
};
|
|
4149
|
+
const close = () => {
|
|
4150
|
+
closeAccountModal();
|
|
4151
|
+
};
|
|
4152
|
+
return {
|
|
4153
|
+
open,
|
|
4154
|
+
close,
|
|
4155
|
+
isOpen: isAccountModalOpen
|
|
4156
|
+
};
|
|
4157
|
+
};
|
|
4158
|
+
var ReceiveModalProvider = ({ children }) => /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
|
|
4138
4159
|
var ERC20Interface2 = chunkNKGOARGM_cjs.ERC20__factory.createInterface();
|
|
4139
4160
|
var useTransferERC20 = ({
|
|
4140
4161
|
fromAddress,
|
|
@@ -5213,7 +5234,7 @@ var AddressDisplay = ({ wallet, label, size = "lg" }) => {
|
|
|
5213
5234
|
// package.json
|
|
5214
5235
|
var package_default = {
|
|
5215
5236
|
name: "@vechain/vechain-kit",
|
|
5216
|
-
version: "1.3.
|
|
5237
|
+
version: "1.3.1",
|
|
5217
5238
|
private: false,
|
|
5218
5239
|
homepage: "https://github.com/vechain/vechain-kit",
|
|
5219
5240
|
repository: "github:vechain/vechain-kit",
|
|
@@ -7154,14 +7175,31 @@ var EmbeddedWalletContent = ({ setCurrentContent }) => {
|
|
|
7154
7175
|
] }),
|
|
7155
7176
|
connection.isConnectedWithCrossApp && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
7156
7177
|
/* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "sm", opacity: 0.5, children: t(
|
|
7157
|
-
"This is your main wallet, created by {{element}} and secured by Privy.
|
|
7178
|
+
"This is your main wallet, created by {{element}} and secured by Privy.",
|
|
7158
7179
|
{
|
|
7159
7180
|
element: connectionCache?.ecosystemApp?.name
|
|
7160
7181
|
}
|
|
7161
7182
|
) }),
|
|
7162
|
-
/* @__PURE__ */ jsxRuntime.
|
|
7163
|
-
|
|
7164
|
-
|
|
7183
|
+
showFullText && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
7184
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "sm", opacity: 0.5, children: t(
|
|
7185
|
+
"This wallet is the owner of your smart account, which is used as your identity and as a gateway for your blockchain interactions."
|
|
7186
|
+
) }),
|
|
7187
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "sm", opacity: 0.5, children: t(
|
|
7188
|
+
"Please be sure to keep this wallet safe and backed up."
|
|
7189
|
+
) })
|
|
7190
|
+
] }),
|
|
7191
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7192
|
+
react.Button,
|
|
7193
|
+
{
|
|
7194
|
+
mt: 0,
|
|
7195
|
+
variant: "link",
|
|
7196
|
+
size: "sm",
|
|
7197
|
+
onClick: () => setShowFullText(!showFullText),
|
|
7198
|
+
color: "blue.500",
|
|
7199
|
+
textAlign: "left",
|
|
7200
|
+
children: t(showFullText ? "Show Less" : "Read More")
|
|
7201
|
+
}
|
|
7202
|
+
)
|
|
7165
7203
|
] }),
|
|
7166
7204
|
connection.isConnectedWithSocialLogin && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
7167
7205
|
/* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "sm", opacity: 0.5, children: t(
|
|
@@ -9650,7 +9688,9 @@ var en_default = {
|
|
|
9650
9688
|
"to learn more about embedded wallets.": "to learn more about embedded wallets.",
|
|
9651
9689
|
"your@email.com": "your@email.com",
|
|
9652
9690
|
"{{element}} website": "{{element}} website",
|
|
9653
|
-
"{{name}}": "{{name}}"
|
|
9691
|
+
"{{name}}": "{{name}}",
|
|
9692
|
+
"This is your main wallet, created by {{element}} and secured by Privy.": "This is your main wallet, created by {{element}} and secured by Privy.",
|
|
9693
|
+
"Please be sure to keep this wallet safe and backed up.": "Please be sure to keep this wallet safe and backed up."
|
|
9654
9694
|
};
|
|
9655
9695
|
|
|
9656
9696
|
// src/languages/de.json
|
|
@@ -14380,6 +14420,7 @@ exports.PasskeyLoginButton = PasskeyLoginButton;
|
|
|
14380
14420
|
exports.PrivyButton = PrivyButton;
|
|
14381
14421
|
exports.PrivyWalletProvider = PrivyWalletProvider;
|
|
14382
14422
|
exports.QuickActionsSection = QuickActionsSection;
|
|
14423
|
+
exports.ReceiveModalProvider = ReceiveModalProvider;
|
|
14383
14424
|
exports.ReceiveTokenContent = ReceiveTokenContent;
|
|
14384
14425
|
exports.RoundState = RoundState;
|
|
14385
14426
|
exports.ScrollToTopWrapper = ScrollToTopWrapper;
|
|
@@ -14623,6 +14664,7 @@ exports.useParticipatedInGovernance = useParticipatedInGovernance;
|
|
|
14623
14664
|
exports.useParticipationScoreThreshold = useParticipationScoreThreshold;
|
|
14624
14665
|
exports.usePassportChecks = usePassportChecks;
|
|
14625
14666
|
exports.usePrivyWalletProvider = usePrivyWalletProvider;
|
|
14667
|
+
exports.useReceiveModal = useReceiveModal;
|
|
14626
14668
|
exports.useRefreshBalances = useRefreshBalances;
|
|
14627
14669
|
exports.useRoundEarnings = useRoundEarnings;
|
|
14628
14670
|
exports.useRoundReward = useRoundReward;
|