@embarkai/ui-kit 0.4.8 → 0.4.9
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/iframe/index.html +1 -1
- package/dist/iframe/main.js +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.js +4 -4
- package/package.json +1 -1
package/dist/iframe/index.html
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<meta http-equiv="X-Content-Type-Options" content="nosniff" />
|
|
16
16
|
<meta http-equiv="Referrer-Policy" content="strict-origin-when-cross-origin" />
|
|
17
17
|
|
|
18
|
-
<title>EmbarkAI Secure Wallet - iframe version 0.4.
|
|
18
|
+
<title>EmbarkAI Secure Wallet - iframe version 0.4.9</title>
|
|
19
19
|
|
|
20
20
|
<!-- Styles will be injected by build process -->
|
|
21
21
|
<style>
|
package/dist/iframe/main.js
CHANGED
|
@@ -6262,7 +6262,7 @@ var SigningManager = class extends TokenRefreshApiClient {
|
|
|
6262
6262
|
};
|
|
6263
6263
|
|
|
6264
6264
|
// src/iframe/main.ts
|
|
6265
|
-
var IFRAME_VERSION = "0.4.
|
|
6265
|
+
var IFRAME_VERSION = "0.4.9";
|
|
6266
6266
|
var IframeWallet = class {
|
|
6267
6267
|
constructor() {
|
|
6268
6268
|
console.log("=".repeat(60));
|
package/dist/index.cjs
CHANGED
|
@@ -15180,7 +15180,7 @@ function mapBlockscoutToAsset(balance) {
|
|
|
15180
15180
|
}
|
|
15181
15181
|
const asset = {
|
|
15182
15182
|
type,
|
|
15183
|
-
address: token.
|
|
15183
|
+
address: token.address_hash,
|
|
15184
15184
|
name: token.name || "Unknown Token",
|
|
15185
15185
|
symbol: token.symbol || "???",
|
|
15186
15186
|
balance: value,
|
|
@@ -15211,7 +15211,7 @@ function mapBlockscoutNftToAsset(nft) {
|
|
|
15211
15211
|
const imageUrl = image_url || (metadata?.image ? resolveIpfsUri(metadata.image) : void 0);
|
|
15212
15212
|
const asset = {
|
|
15213
15213
|
type,
|
|
15214
|
-
address: token.
|
|
15214
|
+
address: token.address_hash,
|
|
15215
15215
|
name: token.name || "Unknown NFT",
|
|
15216
15216
|
symbol: token.symbol || "???",
|
|
15217
15217
|
balance: value || "1",
|
|
@@ -15334,7 +15334,7 @@ function useBlockscoutAssets(options) {
|
|
|
15334
15334
|
});
|
|
15335
15335
|
const erc20TokenAddresses = (0, import_react57.useMemo)(() => {
|
|
15336
15336
|
if (!tokenBalances) return [];
|
|
15337
|
-
return tokenBalances.filter((tb) => tb.token.type === "ERC-20").map((tb) => tb.token.
|
|
15337
|
+
return tokenBalances.filter((tb) => tb.token.type === "ERC-20").map((tb) => tb.token.address_hash);
|
|
15338
15338
|
}, [tokenBalances]);
|
|
15339
15339
|
const { data: erc3643Results } = (0, import_react_query39.useQuery)({
|
|
15340
15340
|
queryKey: [ERC3643_DETECTION_QUERY_KEY, address, erc20TokenAddresses],
|
|
@@ -19167,7 +19167,7 @@ var init_package = __esm({
|
|
|
19167
19167
|
"package.json"() {
|
|
19168
19168
|
package_default = {
|
|
19169
19169
|
name: "@embarkai/ui-kit",
|
|
19170
|
-
version: "0.4.
|
|
19170
|
+
version: "0.4.9",
|
|
19171
19171
|
description: "React UI components and hooks for EmbarkAI authentication and Account Abstraction",
|
|
19172
19172
|
type: "module",
|
|
19173
19173
|
main: "./dist/index.cjs",
|
package/dist/index.js
CHANGED
|
@@ -15117,7 +15117,7 @@ function mapBlockscoutToAsset(balance) {
|
|
|
15117
15117
|
}
|
|
15118
15118
|
const asset = {
|
|
15119
15119
|
type,
|
|
15120
|
-
address: token.
|
|
15120
|
+
address: token.address_hash,
|
|
15121
15121
|
name: token.name || "Unknown Token",
|
|
15122
15122
|
symbol: token.symbol || "???",
|
|
15123
15123
|
balance: value,
|
|
@@ -15148,7 +15148,7 @@ function mapBlockscoutNftToAsset(nft) {
|
|
|
15148
15148
|
const imageUrl = image_url || (metadata?.image ? resolveIpfsUri(metadata.image) : void 0);
|
|
15149
15149
|
const asset = {
|
|
15150
15150
|
type,
|
|
15151
|
-
address: token.
|
|
15151
|
+
address: token.address_hash,
|
|
15152
15152
|
name: token.name || "Unknown NFT",
|
|
15153
15153
|
symbol: token.symbol || "???",
|
|
15154
15154
|
balance: value || "1",
|
|
@@ -15271,7 +15271,7 @@ function useBlockscoutAssets(options) {
|
|
|
15271
15271
|
});
|
|
15272
15272
|
const erc20TokenAddresses = useMemo5(() => {
|
|
15273
15273
|
if (!tokenBalances) return [];
|
|
15274
|
-
return tokenBalances.filter((tb) => tb.token.type === "ERC-20").map((tb) => tb.token.
|
|
15274
|
+
return tokenBalances.filter((tb) => tb.token.type === "ERC-20").map((tb) => tb.token.address_hash);
|
|
15275
15275
|
}, [tokenBalances]);
|
|
15276
15276
|
const { data: erc3643Results } = useQuery16({
|
|
15277
15277
|
queryKey: [ERC3643_DETECTION_QUERY_KEY, address, erc20TokenAddresses],
|
|
@@ -19086,7 +19086,7 @@ var init_package = __esm({
|
|
|
19086
19086
|
"package.json"() {
|
|
19087
19087
|
package_default = {
|
|
19088
19088
|
name: "@embarkai/ui-kit",
|
|
19089
|
-
version: "0.4.
|
|
19089
|
+
version: "0.4.9",
|
|
19090
19090
|
description: "React UI components and hooks for EmbarkAI authentication and Account Abstraction",
|
|
19091
19091
|
type: "module",
|
|
19092
19092
|
main: "./dist/index.cjs",
|