@aurora-is-near/intents-swap-widget 7.4.0 → 7.4.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/components/BlockingError.js +1 -1
- package/dist/components/Button.js +1 -1
- package/dist/components/Tooltip.js +1 -1
- package/dist/components/WidgetContainer.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/{config-DPPL2PoY.js → config-Dn3jcZiF.js} +6 -6
- package/dist/config-Dn3jcZiF.js.map +1 -0
- package/dist/config.js +1 -1
- package/dist/context/BalancesUpdateContext.js +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/ChainsSelector/index.js +1 -1
- package/dist/features/DepositMethodSwitcher.js +1 -1
- package/dist/features/DepositSummary.js +1 -1
- package/dist/features/ErrorBoundary.js +1 -1
- package/dist/features/ExternalDeposit.js +1 -1
- package/dist/features/SendAddress/index.js +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/SuccessScreen/useSummaryItemsCount.js +1 -1
- package/dist/features/SuccessScreen/useTransferResultStatus.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/TokenInputEmpty.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/ImmediatePrice.js +1 -1
- package/dist/features/TokensList/RefreshBalanceButton.js +1 -1
- package/dist/features/TokensList/TokenItem.js +1 -1
- package/dist/features/TokensList/TokensList.js +1 -1
- package/dist/features/TokensList/TokensListPlaceholder.js +1 -1
- package/dist/features/TokensList/index.js +1 -1
- package/dist/features/TokensModal.js +1 -1
- package/dist/features/TransactionHistory/TransactionCard.js +32 -42
- package/dist/features/TransactionHistory/TransactionCard.js.map +1 -1
- package/dist/features/TransactionHistory/TransactionDetails.js +41 -51
- package/dist/features/TransactionHistory/TransactionDetails.js.map +1 -1
- package/dist/features/TransactionHistory/TransactionDetailsToken.js +1 -1
- package/dist/features/TransactionHistory/index.js +1 -1
- package/dist/features/WalletCompatibilityCheck/WalletCompatibilityModal.js +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/useAllTokens.js +1 -1
- package/dist/hooks/useChains.js +1 -1
- package/dist/hooks/useCompatibilityCheck.js +1 -1
- package/dist/hooks/useExternalDefaultToken.js +1 -1
- package/dist/hooks/useExternalDepositStatus.js +1 -1
- package/dist/hooks/useIntentsAccountType.js +1 -1
- package/dist/hooks/useIntentsBalance.js +1 -1
- package/dist/hooks/useIsCompatibilityCheckRequired.js +1 -1
- package/dist/hooks/useIsDarkMode.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 +1 -1
- package/dist/hooks/useMakeTransfer.js +1 -1
- package/dist/hooks/useMergedBalance.js +1 -1
- package/dist/hooks/useSupportedChains.js +1 -1
- package/dist/hooks/useSwitchChain.js +1 -1
- package/dist/hooks/useTheme.js +1 -1
- package/dist/hooks/useTokenInputPair.js +1 -1
- package/dist/hooks/useTokenVolumeStats.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/hooks/useTransactions.js +1 -1
- package/dist/hooks/useWalletConnection.js +1 -1
- package/dist/index.js +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/events/validateInputs.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/theme/ThemeProvider.js +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/transactions/findTransactionToken.d.ts +2 -4
- package/dist/utils/transactions/findTransactionToken.js +24 -19
- package/dist/utils/transactions/findTransactionToken.js.map +1 -1
- package/dist/widgets/Widget/WidgetContent.js +1 -1
- package/dist/widgets/Widget/WidgetProfileButton.js +1 -1
- package/dist/widgets/WidgetDeposit/WidgetDepositContent.js +1 -1
- package/dist/widgets/WidgetDeposit/WidgetDepositSkeleton.js +1 -1
- package/dist/widgets/WidgetDepositMode/WidgetDepositModeContent.js +1 -1
- package/dist/widgets/WidgetDepositMode/WidgetDepositModeSkeleton.js +1 -1
- package/dist/widgets/WidgetSwap/WidgetSwapContent.js +1 -1
- package/dist/widgets/WidgetSwap/WidgetSwapSkeleton.js +1 -1
- package/dist/widgets/WidgetWithdraw/WidgetWithdrawContent.js +1 -1
- package/dist/widgets/WidgetWithdraw/WidgetWithdrawSkeleton.js +1 -1
- package/package.json +1 -1
- package/src/features/TransactionHistory/TransactionCard.tsx +2 -13
- package/src/features/TransactionHistory/TransactionDetails.tsx +2 -13
- package/src/hooks/useAllTokens.ts +4 -2
- package/src/machine/events/tokenSelect.ts +3 -0
- package/src/utils/transactions/findTransactionToken.ts +36 -17
- package/dist/config-DPPL2PoY.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import { CachedW700 as r } from "@material-symbols-svg/react-rounded/icons/cached";
|
|
3
3
|
import { CloseW700 as l } from "@material-symbols-svg/react-rounded/icons/close";
|
|
4
|
-
import { z as c } from "../config-
|
|
4
|
+
import { z as c } from "../config-Dn3jcZiF.js";
|
|
5
5
|
import { Card as i } from "./Card.js";
|
|
6
6
|
const p = ({ message: a, onClickRetry: t }) => /* @__PURE__ */ e(i, { className: "w-full", children: /* @__PURE__ */ s("div", { className: "gap-sw-4xl py-6xl flex min-h-[200px] flex-col items-center justify-center w-full", children: [
|
|
7
7
|
/* @__PURE__ */ s("div", { className: "gap-sw-xl flex flex-col items-center justify-center", children: [
|
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "@headlessui/react";
|
|
3
3
|
import "@material-symbols-svg/react-rounded/icons/progress-activity";
|
|
4
4
|
import "../utils/cn.js";
|
|
5
|
-
import { z as a } from "../config-
|
|
5
|
+
import { z as a } from "../config-Dn3jcZiF.js";
|
|
6
6
|
export {
|
|
7
7
|
a as Button
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "@radix-ui/react-tooltip";
|
|
3
3
|
import "@material-symbols-svg/react-rounded/icons/info";
|
|
4
4
|
import "../utils/cn.js";
|
|
5
|
-
import { A as e } from "../config-
|
|
5
|
+
import { A as e } from "../config-Dn3jcZiF.js";
|
|
6
6
|
import "../theme/getThemeCssVariables.js";
|
|
7
7
|
export {
|
|
8
8
|
e as Tooltip
|
|
@@ -3,7 +3,7 @@ import "../constants/chains.js";
|
|
|
3
3
|
import "ethers";
|
|
4
4
|
import "../logger.js";
|
|
5
5
|
import { cn as s } from "../utils/cn.js";
|
|
6
|
-
import { I as x } from "../config-
|
|
6
|
+
import { I as x } from "../config-Dn3jcZiF.js";
|
|
7
7
|
const v = ({
|
|
8
8
|
children: c,
|
|
9
9
|
HeaderComponent: t,
|
package/dist/components/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { Accordion as t } from "./Accordion.js";
|
|
|
2
2
|
import { Badge as p } from "./Badge.js";
|
|
3
3
|
import { Banner as f } from "./Banner.js";
|
|
4
4
|
import { BlockingError as n } from "./BlockingError.js";
|
|
5
|
-
import { z as i, A as a } from "../config-
|
|
5
|
+
import { z as i, A as a } from "../config-Dn3jcZiF.js";
|
|
6
6
|
import { Card as s } from "./Card.js";
|
|
7
7
|
import { CopyButton as g } from "./CopyButton.js";
|
|
8
8
|
import { DirectionSwitcher as d } from "./DirectionSwitcher.js";
|
|
@@ -328,18 +328,18 @@ const ne = ie.getStore(), mo = Ur({
|
|
|
328
328
|
const { variant: s, token: n } = t, { config: r } = Je(gt);
|
|
329
329
|
switch (s) {
|
|
330
330
|
case "source":
|
|
331
|
-
if (n && n.assetId === e.targetToken?.assetId && n.isIntent === e.targetToken.isIntent && r.enableAutoTokensSwitching) {
|
|
331
|
+
if (n && n.assetId === e.targetToken?.assetId && n.isIntent === e.targetToken.isIntent && n.blockchain === e.targetToken.blockchain && r.enableAutoTokensSwitching) {
|
|
332
332
|
if (!e.sourceToken)
|
|
333
333
|
return;
|
|
334
334
|
Xe(e);
|
|
335
335
|
return;
|
|
336
336
|
}
|
|
337
|
-
if (n && !e.sourceToken && n.assetId === e.targetToken?.assetId && n.isIntent === e.targetToken.isIntent && r.enableAutoTokensSwitching)
|
|
337
|
+
if (n && !e.sourceToken && n.assetId === e.targetToken?.assetId && n.isIntent === e.targetToken.isIntent && n.blockchain === e.targetToken.blockchain && r.enableAutoTokensSwitching)
|
|
338
338
|
return;
|
|
339
339
|
e.sourceToken = n;
|
|
340
340
|
break;
|
|
341
341
|
case "target":
|
|
342
|
-
if (n && n.assetId === e.sourceToken?.assetId && n.isIntent === e.sourceToken.isIntent && r.enableAutoTokensSwitching) {
|
|
342
|
+
if (n && n.assetId === e.sourceToken?.assetId && n.isIntent === e.sourceToken.isIntent && n.blockchain === e.sourceToken.blockchain && r.enableAutoTokensSwitching) {
|
|
343
343
|
if (!e.targetToken)
|
|
344
344
|
return;
|
|
345
345
|
Xe(e);
|
|
@@ -1057,7 +1057,7 @@ const Co = (e) => {
|
|
|
1057
1057
|
...t || [],
|
|
1058
1058
|
...s || []
|
|
1059
1059
|
].forEach((a) => {
|
|
1060
|
-
const i = `${a.assetId}-${a.isIntent}`;
|
|
1060
|
+
const i = `${a.assetId}-${a.isIntent}-${a.blockchain}`;
|
|
1061
1061
|
r[i] = a;
|
|
1062
1062
|
}), Object.values(r);
|
|
1063
1063
|
}, [e, t, s]) };
|
|
@@ -2193,7 +2193,7 @@ const Wo = ({
|
|
|
2193
2193
|
});
|
|
2194
2194
|
}, ra = Kr(({ debug: e }) => {
|
|
2195
2195
|
e && S.debug(
|
|
2196
|
-
"[WIDGET] Debug mode is enabled (package version: 7.4.
|
|
2196
|
+
"[WIDGET] Debug mode is enabled (package version: 7.4.2)"
|
|
2197
2197
|
), ho(), go({ debug: e }), po({ debug: e });
|
|
2198
2198
|
}), vd = ({ listenTo: e, debug: t = !1 }) => {
|
|
2199
2199
|
D(() => {
|
|
@@ -3931,4 +3931,4 @@ export {
|
|
|
3931
3931
|
hr as y,
|
|
3932
3932
|
y as z
|
|
3933
3933
|
};
|
|
3934
|
-
//# sourceMappingURL=config-
|
|
3934
|
+
//# sourceMappingURL=config-Dn3jcZiF.js.map
|