@skip-go/widget 3.12.8 → 3.12.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.
|
@@ -45486,7 +45486,7 @@ function walletConnect(parameters) {
|
|
|
45486
45486
|
const optionalChains = config2.chains.map((x2) => x2.id);
|
|
45487
45487
|
if (!optionalChains.length)
|
|
45488
45488
|
return;
|
|
45489
|
-
const { EthereumProvider } = await import("./index.es-
|
|
45489
|
+
const { EthereumProvider } = await import("./index.es-CQh3oq2n.js");
|
|
45490
45490
|
return await EthereumProvider.init({
|
|
45491
45491
|
...parameters,
|
|
45492
45492
|
disableProviderPing: true,
|
|
@@ -47001,7 +47001,7 @@ const useGroupedAssetByRecommendedSymbol = ({
|
|
|
47001
47001
|
const isAllowed = !allowed || Object.entries(allowed).some(([chainId, denoms]) => {
|
|
47002
47002
|
var _a2;
|
|
47003
47003
|
if (denoms) {
|
|
47004
|
-
return chainId === asset.chainId && denoms.map((x2) => x2.toLowerCase()).includes((_a2 = asset.denom) == null ? void 0 : _a2.toLowerCase());
|
|
47004
|
+
return chainId === asset.chainId && denoms.map((x2) => x2 == null ? void 0 : x2.toLowerCase()).includes((_a2 = asset.denom) == null ? void 0 : _a2.toLowerCase());
|
|
47005
47005
|
} else {
|
|
47006
47006
|
return chainId === asset.chainId;
|
|
47007
47007
|
}
|
|
@@ -47009,7 +47009,7 @@ const useGroupedAssetByRecommendedSymbol = ({
|
|
|
47009
47009
|
const isBlocked = !!blocked && Object.entries(blocked).some(([chainId, denoms]) => {
|
|
47010
47010
|
var _a2;
|
|
47011
47011
|
if (denoms) {
|
|
47012
|
-
return chainId === asset.chainId && denoms.map((x2) => x2.toLowerCase()).includes((_a2 = asset.denom) == null ? void 0 : _a2.toLowerCase());
|
|
47012
|
+
return chainId === asset.chainId && denoms.map((x2) => x2 == null ? void 0 : x2.toLowerCase()).includes((_a2 = asset.denom) == null ? void 0 : _a2.toLowerCase());
|
|
47013
47013
|
} else {
|
|
47014
47014
|
return chainId === asset.chainId;
|
|
47015
47015
|
}
|
|
@@ -47017,7 +47017,7 @@ const useGroupedAssetByRecommendedSymbol = ({
|
|
|
47017
47017
|
const hasBalance = Number(((_a = getBalance(asset.chainId, asset.denom)) == null ? void 0 : _a.amount) ?? 0) > 0;
|
|
47018
47018
|
const isBlockedUnlessUserHasBalance = !!blockedUnlessUserHasBalance && !hasBalance && Object.entries(blockedUnlessUserHasBalance).some(([chainId, denoms]) => {
|
|
47019
47019
|
if (denoms) {
|
|
47020
|
-
return chainId === asset.chainId && denoms.map((x2) => x2.toLowerCase()).includes(asset.denom.toLowerCase());
|
|
47020
|
+
return chainId === asset.chainId && denoms.map((x2) => x2 == null ? void 0 : x2.toLowerCase()).includes(asset.denom.toLowerCase());
|
|
47021
47021
|
} else {
|
|
47022
47022
|
return chainId === asset.chainId;
|
|
47023
47023
|
}
|
|
@@ -48992,10 +48992,15 @@ const useFilteredAssets = ({
|
|
|
48992
48992
|
if (allowedAssets.length === 0) return null;
|
|
48993
48993
|
return { ...group, assets: allowedAssets };
|
|
48994
48994
|
}).filter(Boolean);
|
|
48995
|
+
const searchLower = searchQuery.toLowerCase();
|
|
48995
48996
|
return sanitizedAssets.filter((asset) => {
|
|
48996
48997
|
var _a, _b;
|
|
48997
|
-
return (_b = (_a = asset.id) == null ? void 0 : _a.toLowerCase()) == null ? void 0 : _b.includes(
|
|
48998
|
+
return (_b = (_a = asset.id) == null ? void 0 : _a.toLowerCase()) == null ? void 0 : _b.includes(searchLower);
|
|
48998
48999
|
}).sort((assetA, assetB) => {
|
|
49000
|
+
const exactA = assetA.id.toLowerCase() === searchLower;
|
|
49001
|
+
const exactB = assetB.id.toLowerCase() === searchLower;
|
|
49002
|
+
if (exactA && !exactB) return -1;
|
|
49003
|
+
if (exactB && !exactA) return 1;
|
|
48999
49004
|
if (assetA.totalUsd !== assetB.totalUsd) {
|
|
49000
49005
|
return assetB.totalUsd - assetA.totalUsd;
|
|
49001
49006
|
}
|
|
@@ -54290,7 +54295,7 @@ const initSentry = () => {
|
|
|
54290
54295
|
};
|
|
54291
54296
|
const name = "@skip-go/widget";
|
|
54292
54297
|
const description = "Swap widget";
|
|
54293
|
-
const version = "3.12.
|
|
54298
|
+
const version = "3.12.9";
|
|
54294
54299
|
const repository = {
|
|
54295
54300
|
url: "https://github.com/skip-mev/skip-go",
|
|
54296
54301
|
directory: "packages/widget"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getAugmentedNamespace, c as commonjsGlobal, a as getDefaultExportFromCjs, p as process$1 } from "./index-
|
|
1
|
+
import { g as getAugmentedNamespace, c as commonjsGlobal, a as getDefaultExportFromCjs, p as process$1 } from "./index-piWd6Ztl.js";
|
|
2
2
|
import qg, { PROPOSAL_EXPIRY_MESSAGE } from "@walletconnect/sign-client";
|
|
3
3
|
const global = globalThis || void 0 || self;
|
|
4
4
|
var buffer$1 = {};
|
package/build/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skip-go/widget",
|
|
3
3
|
"description": "Swap widget",
|
|
4
|
-
"version": "3.12.
|
|
4
|
+
"version": "3.12.9",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "https://github.com/skip-mev/skip-go",
|
|
7
7
|
"directory": "packages/widget"
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@penumbra-zone/transport-dom": "^7.5.0",
|
|
43
43
|
"@r2wc/react-to-web-component": "^2.0.3",
|
|
44
44
|
"@sentry/react": "^8.46.0",
|
|
45
|
-
"@skip-go/client": "1.3.
|
|
45
|
+
"@skip-go/client": "1.3.6",
|
|
46
46
|
"@solana/spl-token": "^0.4.8",
|
|
47
47
|
"@solana/wallet-adapter-ledger": "^0.9.25",
|
|
48
48
|
"@solana/wallet-adapter-react": "^0.15.39",
|