@embarkai/ui-kit 0.4.65 → 0.4.66
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 -3
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -3
- 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.66</title>
|
|
19
19
|
|
|
20
20
|
<!-- Styles will be injected by build process -->
|
|
21
21
|
<style>
|
package/dist/iframe/main.js
CHANGED
|
@@ -6398,7 +6398,7 @@ var SigningManager = class extends TokenRefreshApiClient {
|
|
|
6398
6398
|
};
|
|
6399
6399
|
|
|
6400
6400
|
// src/iframe/main.ts
|
|
6401
|
-
var IFRAME_VERSION = "0.4.
|
|
6401
|
+
var IFRAME_VERSION = "0.4.66";
|
|
6402
6402
|
var IframeWallet = class {
|
|
6403
6403
|
constructor() {
|
|
6404
6404
|
console.log("=".repeat(60));
|
package/dist/index.cjs
CHANGED
|
@@ -972,11 +972,12 @@ async function getAssetRate(symbol, asSymbol) {
|
|
|
972
972
|
});
|
|
973
973
|
}
|
|
974
974
|
function useAssetUsdtRate(assetSymbol, options) {
|
|
975
|
-
const { refetchInterval, staleTime } = options || {};
|
|
975
|
+
const { disabled, refetchInterval, staleTime } = options || {};
|
|
976
976
|
const address = useSession((st) => st.address);
|
|
977
977
|
return (0, import_react_query.useQuery)({
|
|
978
978
|
queryKey: [ASSET_RATE_QUERY_KEY, address, assetSymbol],
|
|
979
|
-
enabled: !!address && !!assetSymbol,
|
|
979
|
+
enabled: !disabled && !!address && !!assetSymbol,
|
|
980
|
+
// && !isProjectAsset && !isNft && !isSecurity
|
|
980
981
|
refetchInterval: refetchInterval || BALANCE_POLLING_INTERVAL * 2,
|
|
981
982
|
staleTime: staleTime || BALANCE_POLLING_INTERVAL * 2,
|
|
982
983
|
// keeps the data fresh for 1 minute before considering it stale
|
|
@@ -24631,7 +24632,7 @@ var init_package = __esm({
|
|
|
24631
24632
|
"package.json"() {
|
|
24632
24633
|
package_default = {
|
|
24633
24634
|
name: "@embarkai/ui-kit",
|
|
24634
|
-
version: "0.4.
|
|
24635
|
+
version: "0.4.66",
|
|
24635
24636
|
description: "React UI components and hooks for EmbarkAI authentication and Account Abstraction",
|
|
24636
24637
|
type: "module",
|
|
24637
24638
|
main: "./dist/index.cjs",
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -962,11 +962,12 @@ async function getAssetRate(symbol, asSymbol) {
|
|
|
962
962
|
});
|
|
963
963
|
}
|
|
964
964
|
function useAssetUsdtRate(assetSymbol, options) {
|
|
965
|
-
const { refetchInterval, staleTime } = options || {};
|
|
965
|
+
const { disabled, refetchInterval, staleTime } = options || {};
|
|
966
966
|
const address = useSession((st) => st.address);
|
|
967
967
|
return useQuery({
|
|
968
968
|
queryKey: [ASSET_RATE_QUERY_KEY, address, assetSymbol],
|
|
969
|
-
enabled: !!address && !!assetSymbol,
|
|
969
|
+
enabled: !disabled && !!address && !!assetSymbol,
|
|
970
|
+
// && !isProjectAsset && !isNft && !isSecurity
|
|
970
971
|
refetchInterval: refetchInterval || BALANCE_POLLING_INTERVAL * 2,
|
|
971
972
|
staleTime: staleTime || BALANCE_POLLING_INTERVAL * 2,
|
|
972
973
|
// keeps the data fresh for 1 minute before considering it stale
|
|
@@ -24536,7 +24537,7 @@ var init_package = __esm({
|
|
|
24536
24537
|
"package.json"() {
|
|
24537
24538
|
package_default = {
|
|
24538
24539
|
name: "@embarkai/ui-kit",
|
|
24539
|
-
version: "0.4.
|
|
24540
|
+
version: "0.4.66",
|
|
24540
24541
|
description: "React UI components and hooks for EmbarkAI authentication and Account Abstraction",
|
|
24541
24542
|
type: "module",
|
|
24542
24543
|
main: "./dist/index.cjs",
|