@skip-go/widget 3.0.7 → 3.0.8
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/build/index.js +65 -65
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import { LedgerWalletAdapter as Rm } from "@solana/wallet-adapter-ledger";
|
|
|
13
13
|
import { PhantomWalletAdapter as Lm } from "@solana/wallet-adapter-phantom";
|
|
14
14
|
import { SolflareWalletAdapter as Om } from "@solana/wallet-adapter-solflare";
|
|
15
15
|
import { TrustWalletAdapter as Um } from "@solana/wallet-adapter-trust";
|
|
16
|
-
import
|
|
16
|
+
import ce, { useModal as bc } from "@ebay/nice-modal-react";
|
|
17
17
|
import * as Uo from "@radix-ui/react-dialog";
|
|
18
18
|
import { ErrorBoundary as Ho } from "react-error-boundary";
|
|
19
19
|
import oo from "pluralize";
|
|
@@ -30836,7 +30836,7 @@ function Zo(e, n = {}) {
|
|
|
30836
30836
|
return Number(On(e, n));
|
|
30837
30837
|
}
|
|
30838
30838
|
const Eu = /* @__PURE__ */ Array.from({ length: 256 }, (e, n) => n.toString(16).padStart(2, "0"));
|
|
30839
|
-
function
|
|
30839
|
+
function ae(e, n = {}) {
|
|
30840
30840
|
return typeof e == "number" || typeof e == "bigint" ? Mn(e, n) : typeof e == "string" ? Bu(e, n) : typeof e == "boolean" ? Pu(e, n) : Sn(e, n);
|
|
30841
30841
|
}
|
|
30842
30842
|
function Pu(e, n = {}) {
|
|
@@ -31938,16 +31938,16 @@ function Lh(e, n) {
|
|
|
31938
31938
|
}
|
|
31939
31939
|
}
|
|
31940
31940
|
const C = gt(h), P = [
|
|
31941
|
-
|
|
31942
|
-
t ?
|
|
31943
|
-
m ?
|
|
31944
|
-
s ?
|
|
31945
|
-
o ?
|
|
31941
|
+
ae(i),
|
|
31942
|
+
t ? ae(t) : "0x",
|
|
31943
|
+
m ? ae(m) : "0x",
|
|
31944
|
+
s ? ae(s) : "0x",
|
|
31945
|
+
o ? ae(o) : "0x",
|
|
31946
31946
|
c ?? "0x",
|
|
31947
|
-
a ?
|
|
31947
|
+
a ? ae(a) : "0x",
|
|
31948
31948
|
p ?? "0x",
|
|
31949
31949
|
C,
|
|
31950
|
-
l ?
|
|
31950
|
+
l ? ae(l) : "0x",
|
|
31951
31951
|
x ?? [],
|
|
31952
31952
|
...bt(e, n)
|
|
31953
31953
|
], T = [], z = [], f = [];
|
|
@@ -31966,13 +31966,13 @@ function Oh(e, n) {
|
|
|
31966
31966
|
const { chainId: i, gas: o, nonce: t, to: c, value: a, maxFeePerGas: l, maxPriorityFeePerGas: s, accessList: m, data: h } = e;
|
|
31967
31967
|
Us(e);
|
|
31968
31968
|
const p = gt(m), x = [
|
|
31969
|
-
|
|
31970
|
-
t ?
|
|
31971
|
-
s ?
|
|
31972
|
-
l ?
|
|
31973
|
-
o ?
|
|
31969
|
+
ae(i),
|
|
31970
|
+
t ? ae(t) : "0x",
|
|
31971
|
+
s ? ae(s) : "0x",
|
|
31972
|
+
l ? ae(l) : "0x",
|
|
31973
|
+
o ? ae(o) : "0x",
|
|
31974
31974
|
c ?? "0x",
|
|
31975
|
-
a ?
|
|
31975
|
+
a ? ae(a) : "0x",
|
|
31976
31976
|
h ?? "0x",
|
|
31977
31977
|
p,
|
|
31978
31978
|
...bt(e, n)
|
|
@@ -31986,12 +31986,12 @@ function Uh(e, n) {
|
|
|
31986
31986
|
const { chainId: i, gas: o, data: t, nonce: c, to: a, value: l, accessList: s, gasPrice: m } = e;
|
|
31987
31987
|
Vh(e);
|
|
31988
31988
|
const h = gt(s), p = [
|
|
31989
|
-
|
|
31990
|
-
c ?
|
|
31991
|
-
m ?
|
|
31992
|
-
o ?
|
|
31989
|
+
ae(i),
|
|
31990
|
+
c ? ae(c) : "0x",
|
|
31991
|
+
m ? ae(m) : "0x",
|
|
31992
|
+
o ? ae(o) : "0x",
|
|
31993
31993
|
a ?? "0x",
|
|
31994
|
-
l ?
|
|
31994
|
+
l ? ae(l) : "0x",
|
|
31995
31995
|
t ?? "0x",
|
|
31996
31996
|
h,
|
|
31997
31997
|
...bt(e, n)
|
|
@@ -32005,11 +32005,11 @@ function Wh(e, n) {
|
|
|
32005
32005
|
const { chainId: i = 0, gas: o, data: t, nonce: c, to: a, value: l, gasPrice: s } = e;
|
|
32006
32006
|
Rh(e);
|
|
32007
32007
|
let m = [
|
|
32008
|
-
c ?
|
|
32009
|
-
s ?
|
|
32010
|
-
o ?
|
|
32008
|
+
c ? ae(c) : "0x",
|
|
32009
|
+
s ? ae(s) : "0x",
|
|
32010
|
+
o ? ae(o) : "0x",
|
|
32011
32011
|
a ?? "0x",
|
|
32012
|
-
l ?
|
|
32012
|
+
l ? ae(l) : "0x",
|
|
32013
32013
|
t ?? "0x"
|
|
32014
32014
|
];
|
|
32015
32015
|
if (n) {
|
|
@@ -32025,13 +32025,13 @@ function Wh(e, n) {
|
|
|
32025
32025
|
})();
|
|
32026
32026
|
m = [
|
|
32027
32027
|
...m,
|
|
32028
|
-
|
|
32028
|
+
ae(h),
|
|
32029
32029
|
n.r,
|
|
32030
32030
|
n.s
|
|
32031
32031
|
];
|
|
32032
32032
|
} else i > 0 && (m = [
|
|
32033
32033
|
...m,
|
|
32034
|
-
|
|
32034
|
+
ae(i),
|
|
32035
32035
|
"0x",
|
|
32036
32036
|
"0x"
|
|
32037
32037
|
]);
|
|
@@ -32046,7 +32046,7 @@ function bt(e, n) {
|
|
|
32046
32046
|
if (typeof o > "u" && typeof t > "u")
|
|
32047
32047
|
return [];
|
|
32048
32048
|
const c = Xo(i.r), a = Xo(i.s);
|
|
32049
|
-
return [typeof t == "number" ? t ?
|
|
32049
|
+
return [typeof t == "number" ? t ? ae(1) : "0x" : o === 0n ? "0x" : o === 1n ? ae(1) : o === 27n ? "0x" : ae(1), c === "0x00" ? "0x" : c, a === "0x00" ? "0x" : a];
|
|
32050
32050
|
}
|
|
32051
32051
|
const Gh = "2.11.5", Jh = () => `@wagmi/core@${Gh}`;
|
|
32052
32052
|
var Gs = function(e, n, i, o) {
|
|
@@ -32243,9 +32243,9 @@ function id(e) {
|
|
|
32243
32243
|
n,
|
|
32244
32244
|
o,
|
|
32245
32245
|
l ?? "0x",
|
|
32246
|
-
a ?
|
|
32247
|
-
s ?
|
|
32248
|
-
t ?
|
|
32246
|
+
a ? ae(a) : "0x",
|
|
32247
|
+
s ? ae(s) : "0x",
|
|
32248
|
+
t ? ae(t) : "0x",
|
|
32249
32249
|
c ? "0x1" : "0x",
|
|
32250
32250
|
i ?? "0x"
|
|
32251
32251
|
];
|
|
@@ -32622,13 +32622,13 @@ const hd = {
|
|
|
32622
32622
|
function dd(e, n) {
|
|
32623
32623
|
Dd(e);
|
|
32624
32624
|
const { chainId: i, gas: o, nonce: t, to: c, value: a, maxFeePerGas: l, maxPriorityFeePerGas: s, accessList: m, feeCurrency: h, data: p } = e, x = [
|
|
32625
|
-
|
|
32626
|
-
t ?
|
|
32627
|
-
s ?
|
|
32628
|
-
l ?
|
|
32629
|
-
o ?
|
|
32625
|
+
ae(i),
|
|
32626
|
+
t ? ae(t) : "0x",
|
|
32627
|
+
s ? ae(s) : "0x",
|
|
32628
|
+
l ? ae(l) : "0x",
|
|
32629
|
+
o ? ae(o) : "0x",
|
|
32630
32630
|
c ?? "0x",
|
|
32631
|
-
a ?
|
|
32631
|
+
a ? ae(a) : "0x",
|
|
32632
32632
|
p ?? "0x",
|
|
32633
32633
|
gt(m),
|
|
32634
32634
|
h,
|
|
@@ -33473,7 +33473,7 @@ const Od = ({
|
|
|
33473
33473
|
onOpenChange: o,
|
|
33474
33474
|
theme: t
|
|
33475
33475
|
}) => {
|
|
33476
|
-
const c = bc(), a = xc(
|
|
33476
|
+
const c = bc(), a = xc(ce.NiceModalContext), s = Object.entries(a).filter((x) => {
|
|
33477
33477
|
const [D, C] = x;
|
|
33478
33478
|
return C.visible;
|
|
33479
33479
|
}).map((x) => x[0]).findIndex((x) => x === c.id) !== 0;
|
|
@@ -33511,7 +33511,7 @@ const Od = ({
|
|
|
33511
33511
|
}
|
|
33512
33512
|
) });
|
|
33513
33513
|
};
|
|
33514
|
-
return
|
|
33514
|
+
return ce.create(i);
|
|
33515
33515
|
}, xr = Vi`
|
|
33516
33516
|
from {
|
|
33517
33517
|
opacity: 0;
|
|
@@ -37754,7 +37754,7 @@ const vl = {
|
|
|
37754
37754
|
return a ? (h(), await z.connectEco()) : await z.connect();
|
|
37755
37755
|
},
|
|
37756
37756
|
onSuccess: () => {
|
|
37757
|
-
a && h(),
|
|
37757
|
+
a && h(), ce.remove(ue.SetAddressModal), ce.remove(ue.WalletSelectorModal);
|
|
37758
37758
|
}
|
|
37759
37759
|
}), x = Se(
|
|
37760
37760
|
(z) => {
|
|
@@ -37910,7 +37910,7 @@ const vl = {
|
|
|
37910
37910
|
}, Ox = Oi(
|
|
37911
37911
|
(e) => {
|
|
37912
37912
|
const { chainId: n, chainType: i, connectEco: o } = e, t = Zc({ chainID: n, chainType: i }), c = () => {
|
|
37913
|
-
|
|
37913
|
+
ce.remove(ue.WalletSelectorModal), o && ce.show(ue.ConnectedWalletModal);
|
|
37914
37914
|
};
|
|
37915
37915
|
return /* @__PURE__ */ r.jsx(
|
|
37916
37916
|
ql,
|
|
@@ -37932,7 +37932,7 @@ const vl = {
|
|
|
37932
37932
|
Xc,
|
|
37933
37933
|
{
|
|
37934
37934
|
title: "Wallets",
|
|
37935
|
-
onClickBackButton: () =>
|
|
37935
|
+
onClickBackButton: () => ce.remove(ue.ConnectedWalletModal),
|
|
37936
37936
|
rightContent: () => n != null && n.chainID ? /* @__PURE__ */ r.jsx("img", { src: i, height: 36, width: 36, title: o }) : null
|
|
37937
37937
|
}
|
|
37938
37938
|
),
|
|
@@ -37961,7 +37961,7 @@ const vl = {
|
|
|
37961
37961
|
{
|
|
37962
37962
|
style: { marginTop: Sl },
|
|
37963
37963
|
onClick: () => {
|
|
37964
|
-
|
|
37964
|
+
ce.remove(ue.ConnectedWalletModal), ce.show(ue.WalletSelectorModal, {
|
|
37965
37965
|
chainType: e,
|
|
37966
37966
|
connectEco: !0
|
|
37967
37967
|
});
|
|
@@ -38000,7 +38000,7 @@ const vl = {
|
|
|
38000
38000
|
si,
|
|
38001
38001
|
{
|
|
38002
38002
|
onClick: (p) => {
|
|
38003
|
-
p.stopPropagation(), m == null || m.disconnect(),
|
|
38003
|
+
p.stopPropagation(), m == null || m.disconnect(), ce.remove(ue.ConnectedWalletModal);
|
|
38004
38004
|
},
|
|
38005
38005
|
children: "Disconnect"
|
|
38006
38006
|
}
|
|
@@ -38884,7 +38884,7 @@ const Il = aD(void 0), Yc = mi((e) => {
|
|
|
38884
38884
|
),
|
|
38885
38885
|
[c, z]
|
|
38886
38886
|
), u = J(() => t || C ? F : q, [q, F, C, t]), d = () => {
|
|
38887
|
-
C === null ?
|
|
38887
|
+
C === null ? ce.remove(ue.AssetAndChainSelectorModal) : P(null);
|
|
38888
38888
|
}, b = (w) => {
|
|
38889
38889
|
w.key === "Backspace" && C !== null && x === "" && P(null);
|
|
38890
38890
|
};
|
|
@@ -39357,7 +39357,7 @@ const r2 = ({
|
|
|
39357
39357
|
source: "input"
|
|
39358
39358
|
}
|
|
39359
39359
|
};
|
|
39360
|
-
}),
|
|
39360
|
+
}), ce.remove(ue.SetAddressModal));
|
|
39361
39361
|
};
|
|
39362
39362
|
return /* @__PURE__ */ r.jsx(r.Fragment, { children: m ? /* @__PURE__ */ r.jsxs(l2, { gap: 15, children: [
|
|
39363
39363
|
/* @__PURE__ */ r.jsx(
|
|
@@ -39407,7 +39407,7 @@ const r2 = ({
|
|
|
39407
39407
|
{
|
|
39408
39408
|
title: "Destination wallet",
|
|
39409
39409
|
walletList: i ? D : P,
|
|
39410
|
-
onClickBackButton: () =>
|
|
39410
|
+
onClickBackButton: () => ce.remove(ue.SetAddressModal),
|
|
39411
39411
|
chainId: o,
|
|
39412
39412
|
chainType: a == null ? void 0 : a.chainType,
|
|
39413
39413
|
isDestinationAddress: !0,
|
|
@@ -39461,7 +39461,7 @@ const r2 = ({
|
|
|
39461
39461
|
border-radius: 12px;
|
|
39462
39462
|
${({ disabled: e, theme: n }) => e && `background-color: ${n.secondary.background.normal}`};
|
|
39463
39463
|
`, x2 = () => {
|
|
39464
|
-
|
|
39464
|
+
ce.register("AssetAndChainSelectorModal", yD), ce.register("ConnectedWalletModal", Wx), ce.register("SetAddressModal", s2), ce.register("SwapSettingsDrawer", oD), ce.register("WalletSelectorModal", Ox);
|
|
39465
39465
|
};
|
|
39466
39466
|
var ue = /* @__PURE__ */ ((e) => (e.AssetAndChainSelectorModal = "AssetAndChainSelectorModal", e.ConnectedWalletModal = "ConnectedWalletModal", e.SetAddressModal = "SetAddressModal", e.SwapSettingsDrawer = "SwapSettingsDrawer", e.WalletSelectorModal = "WalletSelectorModal", e))(ue || {});
|
|
39467
39467
|
const D2 = () => {
|
|
@@ -39492,7 +39492,7 @@ const D2 = () => {
|
|
|
39492
39492
|
});
|
|
39493
39493
|
if (!F) {
|
|
39494
39494
|
if (!p || e[D].address) return;
|
|
39495
|
-
|
|
39495
|
+
ce.show(ue.SetAddressModal, {
|
|
39496
39496
|
signRequired: P,
|
|
39497
39497
|
chainId: x,
|
|
39498
39498
|
chainAddressIndex: D
|
|
@@ -39532,7 +39532,7 @@ const D2 = () => {
|
|
|
39532
39532
|
});
|
|
39533
39533
|
if (!F) {
|
|
39534
39534
|
if (!p) return;
|
|
39535
|
-
|
|
39535
|
+
ce.show(ue.SetAddressModal, {
|
|
39536
39536
|
signRequired: P,
|
|
39537
39537
|
chainId: x
|
|
39538
39538
|
});
|
|
@@ -39571,7 +39571,7 @@ const D2 = () => {
|
|
|
39571
39571
|
});
|
|
39572
39572
|
if (!F) {
|
|
39573
39573
|
if (!p) return;
|
|
39574
|
-
|
|
39574
|
+
ce.show(ue.SetAddressModal, {
|
|
39575
39575
|
signRequired: P,
|
|
39576
39576
|
chainId: x
|
|
39577
39577
|
});
|
|
@@ -39782,7 +39782,7 @@ const b2 = () => {
|
|
|
39782
39782
|
icon: _.rightArrow,
|
|
39783
39783
|
onClick: () => {
|
|
39784
39784
|
const g = i == null ? void 0 : i.destAssetChainID;
|
|
39785
|
-
g &&
|
|
39785
|
+
g && ce.show(ue.SetAddressModal, {
|
|
39786
39786
|
signRequired: C.signRequired,
|
|
39787
39787
|
chainId: g
|
|
39788
39788
|
});
|
|
@@ -39863,7 +39863,7 @@ const b2 = () => {
|
|
|
39863
39863
|
/* @__PURE__ */ r.jsx(
|
|
39864
39864
|
f,
|
|
39865
39865
|
{
|
|
39866
|
-
onClickEditDestinationWallet: () =>
|
|
39866
|
+
onClickEditDestinationWallet: () => ce.show(ue.SetAddressModal, {
|
|
39867
39867
|
chainId: i == null ? void 0 : i.destAssetChainID,
|
|
39868
39868
|
signRequired: C.signRequired
|
|
39869
39869
|
}),
|
|
@@ -40054,7 +40054,7 @@ const b2 = () => {
|
|
|
40054
40054
|
si,
|
|
40055
40055
|
{
|
|
40056
40056
|
onClick: () => {
|
|
40057
|
-
|
|
40057
|
+
ce.show(ue.ConnectedWalletModal);
|
|
40058
40058
|
},
|
|
40059
40059
|
align: "center",
|
|
40060
40060
|
gap: 8,
|
|
@@ -40181,7 +40181,7 @@ const b2 = () => {
|
|
|
40181
40181
|
},
|
|
40182
40182
|
[D]
|
|
40183
40183
|
), j = Se(() => {
|
|
40184
|
-
|
|
40184
|
+
ce.show(ue.AssetAndChainSelectorModal, {
|
|
40185
40185
|
context: "source",
|
|
40186
40186
|
onSelect: (R) => {
|
|
40187
40187
|
var re, Z;
|
|
@@ -40190,7 +40190,7 @@ const b2 = () => {
|
|
|
40190
40190
|
})), a((Y) => ({
|
|
40191
40191
|
...Y,
|
|
40192
40192
|
...R
|
|
40193
|
-
})), l(""), s(""),
|
|
40193
|
+
})), l(""), s(""), ce.hide(ue.AssetAndChainSelectorModal);
|
|
40194
40194
|
}
|
|
40195
40195
|
});
|
|
40196
40196
|
}, [
|
|
@@ -40202,7 +40202,7 @@ const b2 = () => {
|
|
|
40202
40202
|
a,
|
|
40203
40203
|
l
|
|
40204
40204
|
]), k = Se(() => {
|
|
40205
|
-
|
|
40205
|
+
ce.show(ue.AssetAndChainSelectorModal, {
|
|
40206
40206
|
context: "source",
|
|
40207
40207
|
onSelect: (R) => {
|
|
40208
40208
|
var re, Z;
|
|
@@ -40211,7 +40211,7 @@ const b2 = () => {
|
|
|
40211
40211
|
})), a((Y) => ({
|
|
40212
40212
|
...Y,
|
|
40213
40213
|
...R
|
|
40214
|
-
})),
|
|
40214
|
+
})), ce.hide(ue.AssetAndChainSelectorModal);
|
|
40215
40215
|
},
|
|
40216
40216
|
selectedAsset: y(c == null ? void 0 : c.denom, c == null ? void 0 : c.chainID),
|
|
40217
40217
|
selectChain: !0
|
|
@@ -40226,23 +40226,23 @@ const b2 = () => {
|
|
|
40226
40226
|
c == null ? void 0 : c.chainID,
|
|
40227
40227
|
c == null ? void 0 : c.denom
|
|
40228
40228
|
]), E = Se(() => {
|
|
40229
|
-
|
|
40229
|
+
ce.show(ue.AssetAndChainSelectorModal, {
|
|
40230
40230
|
context: "destination",
|
|
40231
40231
|
onSelect: (R) => {
|
|
40232
40232
|
p((ie) => ({
|
|
40233
40233
|
...ie,
|
|
40234
40234
|
...R
|
|
40235
|
-
})),
|
|
40235
|
+
})), ce.hide(ue.AssetAndChainSelectorModal);
|
|
40236
40236
|
}
|
|
40237
40237
|
});
|
|
40238
40238
|
}, [p]), M = Se(() => {
|
|
40239
|
-
|
|
40239
|
+
ce.show(ue.AssetAndChainSelectorModal, {
|
|
40240
40240
|
context: "destination",
|
|
40241
40241
|
onSelect: (R) => {
|
|
40242
40242
|
p((ie) => ({
|
|
40243
40243
|
...ie,
|
|
40244
40244
|
...R
|
|
40245
|
-
})),
|
|
40245
|
+
})), ce.hide(ue.AssetAndChainSelectorModal);
|
|
40246
40246
|
},
|
|
40247
40247
|
selectedAsset: y(
|
|
40248
40248
|
h == null ? void 0 : h.denom,
|
|
@@ -40306,9 +40306,9 @@ const b2 = () => {
|
|
|
40306
40306
|
label: "Connect Wallet",
|
|
40307
40307
|
icon: _.plus,
|
|
40308
40308
|
onClick: () => {
|
|
40309
|
-
c != null && c.chainID ?
|
|
40309
|
+
c != null && c.chainID ? ce.show(ue.WalletSelectorModal, {
|
|
40310
40310
|
chainId: c == null ? void 0 : c.chainID
|
|
40311
|
-
}) :
|
|
40311
|
+
}) : ce.show(ue.ConnectedWalletModal);
|
|
40312
40312
|
}
|
|
40313
40313
|
}
|
|
40314
40314
|
), [
|
|
@@ -40387,7 +40387,7 @@ const b2 = () => {
|
|
|
40387
40387
|
showRouteInfo: !0,
|
|
40388
40388
|
disabled: q || m,
|
|
40389
40389
|
showEstimatedTime: !0,
|
|
40390
|
-
onClick: () =>
|
|
40390
|
+
onClick: () => ce.show(ue.SwapSettingsDrawer, {
|
|
40391
40391
|
drawer: !0,
|
|
40392
40392
|
container: e,
|
|
40393
40393
|
onOpenChange: (R) => o(!!R)
|
|
@@ -41277,7 +41277,7 @@ const A1 = ({
|
|
|
41277
41277
|
}), p ? o(p == null ? void 0 : p.toString()) : x && t(x == null ? void 0 : x.toString());
|
|
41278
41278
|
}
|
|
41279
41279
|
}, [c, e, a, i, t, n, o]);
|
|
41280
|
-
}, ig = (e) => /* @__PURE__ */ r.jsx(
|
|
41280
|
+
}, ig = (e) => /* @__PURE__ */ r.jsx(ce.Provider, { children: /* @__PURE__ */ r.jsx(Yl, { ...e }) }), Yl = (e) => {
|
|
41281
41281
|
var m;
|
|
41282
41282
|
M1(e.defaultRoute);
|
|
41283
41283
|
const n = X(Zs), i = X(bd), o = X(ki), t = X(pl), c = X(Wc), a = X(Do), l = J(() => {
|