@aurora-is-near/intents-swap-widget 2.15.0 → 2.15.2
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/{config-BeaM8VNs.js → config-XyIPS3Jf.js} +20 -19
- package/dist/{config-BeaM8VNs.js.map → config-XyIPS3Jf.js.map} +1 -1
- package/dist/config.js +5 -4
- package/dist/config.js.map +1 -1
- package/dist/errors.js +1 -1
- package/dist/ext/alchemy/index.js +1 -1
- package/dist/ext/index.js +1 -1
- package/dist/features/BalanceRpcLoader/TokenBalanceLoader.js +1 -1
- package/dist/features/BalanceRpcLoader/index.js +1 -1
- package/dist/features/BalanceRpcLoader/useTokenBalanceRpc.js +1 -1
- package/dist/features/ChainsDropdown/index.js +1 -1
- package/dist/features/DepositMethodSwitcher.js +1 -1
- package/dist/features/ErrorBoundary.js +1 -1
- package/dist/features/ExternalDeposit.js +4 -3
- package/dist/features/ExternalDeposit.js.map +1 -1
- package/dist/features/SendAddress/index.js +9 -8
- package/dist/features/SendAddress/index.js.map +1 -1
- package/dist/features/SendAddress/useNotification.js +1 -1
- package/dist/features/SubmitButton/index.js +1 -1
- package/dist/features/SuccessScreen/index.js +1 -1
- package/dist/features/SwapDirectionSwitcher.js +1 -1
- package/dist/features/SwapQuote/SwapQuote.js +1 -1
- package/dist/features/SwapQuote/index.js +1 -1
- package/dist/features/TokenInput/TokenInput.js +1 -1
- package/dist/features/TokenInput/TokenInputSource.js +1 -1
- package/dist/features/TokenInput/TokenInputTarget.js +1 -1
- package/dist/features/TokenInput/WalletBalance.js +1 -1
- package/dist/features/TokenInput/hooks/index.js +1 -1
- package/dist/features/TokenInput/hooks/useTokenInputBalance.js +1 -1
- package/dist/features/TokenInput/index.js +1 -1
- package/dist/features/TokensList/TokenItem.js +1 -1
- package/dist/features/TokensList/TokensList.js +1 -1
- package/dist/features/TokensList/index.js +1 -1
- package/dist/features/TokensModal.js +4 -3
- package/dist/features/TokensModal.js.map +1 -1
- package/dist/features/WalletCompatibilityCheck/index.js +1 -1
- package/dist/features/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/useChains.js +1 -1
- package/dist/hooks/useCompatibilityCheck.js +1 -1
- package/dist/hooks/useDefaultToken.js +1 -1
- package/dist/hooks/useExternalDepositStatus.js +1 -1
- package/dist/hooks/useIntentsBalance.js +1 -1
- package/dist/hooks/useMakeDepositAddress.js +1 -1
- package/dist/hooks/useMakeIntentsTransfer.js +1 -1
- package/dist/hooks/useMakeNEARFtTransferCall.js +1 -1
- package/dist/hooks/useMakeQuote.js +1 -1
- package/dist/hooks/useMakeQuoteTransfer.js +3 -2
- package/dist/hooks/useMakeQuoteTransfer.js.map +1 -1
- package/dist/hooks/useMakeTransfer.js +1 -1
- package/dist/hooks/useMergedBalance.js +1 -1
- package/dist/hooks/useTokenInputPair.js +1 -1
- package/dist/hooks/useTokens.js +1 -1
- package/dist/hooks/useTokensFiltered.js +1 -1
- package/dist/hooks/useTokensIntentsUnique.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +76 -74
- package/dist/index.js.map +1 -1
- package/dist/machine/effects/index.js +1 -1
- package/dist/machine/effects/useAlchemyBalanceEffect.js +1 -1
- package/dist/machine/effects/useBalancesUpdateEffect.js +1 -1
- package/dist/machine/effects/useMakeQuoteEffect.js +1 -1
- package/dist/machine/effects/useSelectedTokensEffect.js +1 -1
- package/dist/machine/effects/useSetTokenBalanceEffect.js +1 -1
- package/dist/machine/effects/useSetTokenIntentsTargetEffect.js +1 -1
- package/dist/machine/effects/useWalletConnEffect.js +1 -1
- package/dist/machine/events/index.js +1 -1
- package/dist/machine/events/tokenSelect.js +1 -1
- package/dist/machine/events/validateInputAndMoveTo.js +1 -1
- package/dist/machine/index.js +1 -1
- package/dist/machine/snap.js +1 -1
- package/dist/machine/subscriptions/checkers/isSendAddressAsConnected.js +1 -1
- package/dist/machine/subscriptions/index.js +1 -1
- package/dist/utils/evm/isEvmToken.js +4 -394
- package/dist/utils/evm/isEvmToken.js.map +1 -1
- package/dist/utils/intents/signers/near.js +1 -1
- package/dist/utils/intents/signers/privy.js +1 -1
- package/dist/utils/near/getNearNep141StorageBalance.js +1 -1
- package/dist/utils/near/rpc.d.ts +2 -3
- package/dist/utils/near/rpc.js +11 -10
- package/dist/utils/near/rpc.js.map +1 -1
- package/dist/widgets/WidgetDeposit/WidgetDepositContent.js +4 -3
- package/dist/widgets/WidgetDeposit/WidgetDepositContent.js.map +1 -1
- package/dist/widgets/WidgetSwap/WidgetSwapContent.js +4 -3
- package/dist/widgets/WidgetSwap/WidgetSwapContent.js.map +1 -1
- package/dist/widgets/WidgetWithdraw/WidgetWithdrawContent.js +17 -16
- package/dist/widgets/WidgetWithdraw/WidgetWithdrawContent.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +1 -0
- package/src/utils/near/rpc.ts +6 -7
|
@@ -46,6 +46,7 @@ import "@headlessui/react";
|
|
|
46
46
|
import "framer-motion";
|
|
47
47
|
import "lucide-react";
|
|
48
48
|
import { cn as Ke } from "./utils/cn.js";
|
|
49
|
+
import "viem";
|
|
49
50
|
import { Button as G } from "./components/Button.js";
|
|
50
51
|
import { TinyNumber as He } from "./components/TinyNumber.js";
|
|
51
52
|
import { ErrorMessage as pe } from "./components/ErrorMessage.js";
|
|
@@ -131,7 +132,7 @@ const se = he.getStore(), Yn = _r({
|
|
|
131
132
|
state: n.state,
|
|
132
133
|
ctx: n.context
|
|
133
134
|
};
|
|
134
|
-
},
|
|
135
|
+
}, fa = (n) => {
|
|
135
136
|
const o = Se(se);
|
|
136
137
|
if (!Z(o.context, [n]))
|
|
137
138
|
throw new te(
|
|
@@ -807,7 +808,7 @@ const se = he.getStore(), Yn = _r({
|
|
|
807
808
|
});
|
|
808
809
|
}, ho = Ur(({ debug: n }) => {
|
|
809
810
|
n && P.debug("[WIDGET] Debug mode is enabled"), to(), Xn({ debug: n }), Zn({ debug: n });
|
|
810
|
-
}),
|
|
811
|
+
}), pa = ({ listenTo: n, debug: o = !1 }) => {
|
|
811
812
|
$(() => {
|
|
812
813
|
ho({ debug: o });
|
|
813
814
|
}, [o]);
|
|
@@ -863,7 +864,7 @@ class B extends qt {
|
|
|
863
864
|
super(o), this.name = "TransferError";
|
|
864
865
|
}
|
|
865
866
|
}
|
|
866
|
-
const
|
|
867
|
+
const ma = (n) => typeof n == "object" && n !== null && "_is_widget_error" in n && !!n._is_widget_error, wo = (n) => null, Io = (n) => (o) => {
|
|
867
868
|
if (o instanceof te)
|
|
868
869
|
throw o;
|
|
869
870
|
const u = new te(
|
|
@@ -1614,7 +1615,7 @@ const Do = ({
|
|
|
1614
1615
|
}
|
|
1615
1616
|
})() })
|
|
1616
1617
|
] }) : m.quoteStatus === "pending" ? /* @__PURE__ */ I(G, { state: "loading", ...K, children: a("submit.pending.quote.finalizing", "Finalizing quote") }) : m.error ? /* @__PURE__ */ I(G, { state: "disabled", ...K, children: E() }) : !m.quote && !g && !y && !w && !T && !A ? /* @__PURE__ */ I(G, { state: "disabled", ...K, children: E() }) : /* @__PURE__ */ I(G, { ...K, onClick: S, children: E() });
|
|
1617
|
-
},
|
|
1618
|
+
}, ha = Object.assign(Oo, {
|
|
1618
1619
|
Error: Lo
|
|
1619
1620
|
}), qo = ({ className: n }) => {
|
|
1620
1621
|
const { t: o } = ge(), { defaultMaxSlippage: u } = M(), { ctx: i } = q(), l = i.sourceToken && i.targetToken && i.sourceToken.price / i.targetToken.price;
|
|
@@ -1658,7 +1659,7 @@ const Do = ({
|
|
|
1658
1659
|
] })
|
|
1659
1660
|
}
|
|
1660
1661
|
) : /* @__PURE__ */ I(Ct, {});
|
|
1661
|
-
},
|
|
1662
|
+
}, ga = Object.assign(qo, {
|
|
1662
1663
|
Skeleton: Ct
|
|
1663
1664
|
}), vo = ({
|
|
1664
1665
|
token: n,
|
|
@@ -1854,7 +1855,7 @@ const Do = ({
|
|
|
1854
1855
|
onMsg: o
|
|
1855
1856
|
}
|
|
1856
1857
|
) : /* @__PURE__ */ I(ze, { onMsg: o });
|
|
1857
|
-
}, $o = ({ token: n, ...o }) => n ? /* @__PURE__ */ I(Ye, { ...o, token: n }) : /* @__PURE__ */ I(ze, { onMsg: o.onMsg }),
|
|
1858
|
+
}, $o = ({ token: n, ...o }) => n ? /* @__PURE__ */ I(Ye, { ...o, token: n }) : /* @__PURE__ */ I(ze, { onMsg: o.onMsg }), wa = Object.assign($o, {
|
|
1858
1859
|
Skeleton: En,
|
|
1859
1860
|
Source: Po,
|
|
1860
1861
|
Target: Mo
|
|
@@ -2043,7 +2044,7 @@ const Do = ({
|
|
|
2043
2044
|
}
|
|
2044
2045
|
);
|
|
2045
2046
|
}
|
|
2046
|
-
},
|
|
2047
|
+
}, Ia = Object.assign(Go, {
|
|
2047
2048
|
Placeholder: Dt,
|
|
2048
2049
|
Item: Qt
|
|
2049
2050
|
});
|
|
@@ -3069,7 +3070,7 @@ function jo() {
|
|
|
3069
3070
|
}
|
|
3070
3071
|
})(Le)), Le;
|
|
3071
3072
|
}
|
|
3072
|
-
var
|
|
3073
|
+
var ya = jo();
|
|
3073
3074
|
const zo = new gr({
|
|
3074
3075
|
defaultOptions: {
|
|
3075
3076
|
queries: {
|
|
@@ -3124,7 +3125,7 @@ const zo = new gr({
|
|
|
3124
3125
|
return Se(n).config;
|
|
3125
3126
|
}, Jo = (n) => {
|
|
3126
3127
|
Je.config = qe(n);
|
|
3127
|
-
},
|
|
3128
|
+
}, Aa = ({
|
|
3128
3129
|
children: n,
|
|
3129
3130
|
config: o,
|
|
3130
3131
|
localisation: u,
|
|
@@ -3175,16 +3176,16 @@ export {
|
|
|
3175
3176
|
yo as P,
|
|
3176
3177
|
H as Q,
|
|
3177
3178
|
It as R,
|
|
3178
|
-
|
|
3179
|
+
ha as S,
|
|
3179
3180
|
$o as T,
|
|
3180
3181
|
_o as U,
|
|
3181
3182
|
bo as V,
|
|
3182
|
-
|
|
3183
|
+
Aa as W,
|
|
3183
3184
|
Co as X,
|
|
3184
3185
|
Uo as Y,
|
|
3185
3186
|
qo as Z,
|
|
3186
3187
|
vo as _,
|
|
3187
|
-
|
|
3188
|
+
fa as a,
|
|
3188
3189
|
$t as a0,
|
|
3189
3190
|
Po as a1,
|
|
3190
3191
|
Mo as a2,
|
|
@@ -3194,7 +3195,7 @@ export {
|
|
|
3194
3195
|
Go as a6,
|
|
3195
3196
|
Je as a7,
|
|
3196
3197
|
q as b,
|
|
3197
|
-
|
|
3198
|
+
pa as c,
|
|
3198
3199
|
xo as d,
|
|
3199
3200
|
Ne as e,
|
|
3200
3201
|
Fo as f,
|
|
@@ -3204,19 +3205,19 @@ export {
|
|
|
3204
3205
|
_e as j,
|
|
3205
3206
|
Wo as k,
|
|
3206
3207
|
re as l,
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3208
|
+
ga as m,
|
|
3209
|
+
wa as n,
|
|
3210
|
+
Ia as o,
|
|
3210
3211
|
Mt as p,
|
|
3211
3212
|
Ot as q,
|
|
3212
3213
|
ho as r,
|
|
3213
3214
|
te as s,
|
|
3214
3215
|
B as t,
|
|
3215
3216
|
we as u,
|
|
3216
|
-
|
|
3217
|
+
ma as v,
|
|
3217
3218
|
M as w,
|
|
3218
|
-
|
|
3219
|
+
ya as x,
|
|
3219
3220
|
Lt as y,
|
|
3220
3221
|
Jn as z
|
|
3221
3222
|
};
|
|
3222
|
-
//# sourceMappingURL=config-
|
|
3223
|
+
//# sourceMappingURL=config-XyIPS3Jf.js.map
|