@aurora-is-near/intents-swap-widget 3.15.3 → 3.16.0
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/TokenIcon.d.ts +5 -12
- package/dist/components/TokenIcon.js +34 -32
- package/dist/components/TokenIcon.js.map +1 -1
- package/dist/{config-DKdwFIJc.js → config-DQMHUj5z.js} +745 -748
- package/dist/config-DQMHUj5z.js.map +1 -0
- package/dist/config.d.ts +1 -1
- package/dist/config.js +1 -1
- package/dist/constants/chains.d.ts +0 -1
- package/dist/constants/chains.js +44 -65
- package/dist/constants/chains.js.map +1 -1
- package/dist/constants/tokens.d.ts +1 -1
- package/dist/constants/tokens.js +3 -50
- package/dist/constants/tokens.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 +32 -32
- package/dist/features/ChainsDropdown/index.js.map +1 -1
- package/dist/features/DepositMethodSwitcher.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/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/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 +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/useDefaultToken.js +1 -1
- package/dist/hooks/useExternalDepositStatus/index.js +1 -1
- package/dist/hooks/useExternalDepositStatus/usePoaExternalDepositStatus.js +1 -1
- package/dist/hooks/useIntentsBalance.js +1 -1
- package/dist/hooks/useIsCompatibilityCheckRequired.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 +1 -1
- package/dist/hooks/useMakeTransfer.js +1 -1
- package/dist/hooks/useMergedBalance.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/useTokens.js +2 -2
- package/dist/hooks/useTokensFiltered.js +1 -1
- package/dist/hooks/useTokensIntentsUnique.js +1 -1
- package/dist/icons/index.d.ts +4 -0
- package/dist/icons/index.js +392 -0
- package/dist/icons/index.js.map +1 -0
- 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.d.ts +0 -2
- 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.d.ts +0 -18
- 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/types/chain.d.ts +0 -1
- package/dist/types/config.d.ts +1 -1
- package/dist/types/token.d.ts +0 -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/widgets/WidgetDeposit/WidgetDepositContent.js +1 -1
- package/dist/widgets/WidgetDeposit/WidgetDepositSkeleton.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/components/TokenIcon.tsx +35 -38
- package/src/config.tsx +0 -2
- package/src/constants/chains.ts +0 -23
- package/src/constants/tokens.ts +1 -48
- package/src/features/ChainsDropdown/index.tsx +5 -5
- package/src/features/TokenInput/TokenInput.tsx +1 -1
- package/src/features/TokensList/TokenItem.tsx +1 -1
- package/src/hooks/useTokens.ts +1 -8
- package/src/icons/abg.svg +11 -0
- package/src/icons/arb.svg +22 -0
- package/src/icons/aster.svg +1 -0
- package/src/icons/aurora.svg +14 -0
- package/src/icons/avax.svg +12 -0
- package/src/icons/base.svg +11 -0
- package/src/icons/bera.svg +20 -0
- package/src/icons/bsc.svg +14 -0
- package/src/icons/btc.svg +11 -0
- package/src/icons/cardano.svg +40 -0
- package/src/icons/doge.svg +15 -0
- package/src/icons/eth.svg +16 -0
- package/src/icons/frax.svg +26 -0
- package/src/icons/gnear.svg +1 -0
- package/src/icons/gnosis.svg +16 -0
- package/src/icons/index.tsx +111 -0
- package/src/icons/itlx.svg +12 -0
- package/src/icons/jambo.svg +10 -0
- package/src/icons/knc.svg +1 -0
- package/src/icons/loud.svg +7 -0
- package/src/icons/ltc.svg +1 -0
- package/src/icons/mon.svg +1 -0
- package/src/icons/mpdao.svg +1 -0
- package/src/icons/near.svg +16 -0
- package/src/icons/noear.svg +10 -0
- package/src/icons/op.svg +12 -0
- package/src/icons/pol.svg +11 -0
- package/src/icons/public.svg +1 -0
- package/src/icons/purge.svg +10 -0
- package/src/icons/rhea.svg +10 -0
- package/src/icons/sol.svg +21 -0
- package/src/icons/sui.svg +16 -0
- package/src/icons/ton.svg +11 -0
- package/src/icons/tron.svg +11 -0
- package/src/icons/unknown.svg +4 -0
- package/src/icons/usd1.svg +10 -0
- package/src/icons/usdf.svg +10 -0
- package/src/icons/wif.svg +10 -0
- package/src/icons/xdai.svg +22 -0
- package/src/icons/xrp.svg +17 -0
- package/src/icons/zec.svg +16 -0
- package/src/types/chain.ts +0 -1
- package/src/types/config.ts +1 -1
- package/src/types/token.ts +0 -1
- package/dist/config-DKdwFIJc.js.map +0 -1
|
@@ -3,7 +3,7 @@ import "../../logger.js";
|
|
|
3
3
|
import "../../utils/ton/getTonTokenBalance.js";
|
|
4
4
|
import "../../utils/solana/getSolanaTokenBalance.js";
|
|
5
5
|
import "../../hooks/useWalletAddressForToken.js";
|
|
6
|
-
import { D as x } from "../../config-
|
|
6
|
+
import { D as x } from "../../config-DQMHUj5z.js";
|
|
7
7
|
import "../../utils/evm/isEvmChain.js";
|
|
8
8
|
import "../../utils/evm/isEvmToken.js";
|
|
9
9
|
import "../../utils/evm/isEvmBaseToken.js";
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import { jsx as e, jsxs as m } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo as
|
|
3
|
-
import { Menu as
|
|
2
|
+
import { useMemo as A, Fragment as M } from "react";
|
|
3
|
+
import { Menu as v, MenuButton as S, MenuItems as E, MenuItem as p } from "@headlessui/react";
|
|
4
4
|
import { AnimatePresence as F, motion as T } from "framer-motion";
|
|
5
|
-
import * as
|
|
5
|
+
import * as x from "lucide-react";
|
|
6
6
|
import { ChainItem as d } from "./ChainItem.js";
|
|
7
7
|
import { AllNetworksIcon as h } from "./AllNetworksIcon.js";
|
|
8
|
-
import { d as z, y as
|
|
8
|
+
import { d as z, y as O } from "../../config-DQMHUj5z.js";
|
|
9
9
|
import { Hr as j } from "../../components/Hr.js";
|
|
10
|
-
import { Icon as
|
|
11
|
-
import { CHAINS_LIST as x } from "../../constants/chains.js";
|
|
10
|
+
import { Icon as i } from "../../components/Icon.js";
|
|
12
11
|
import { notReachable as u } from "../../utils/notReachable.js";
|
|
13
12
|
import { useTypedTranslation as D } from "../../localisation.js";
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
import { ASSET_ICONS as k, UNKNOWN_ICON as w } from "../../icons/index.js";
|
|
14
|
+
const V = ({
|
|
15
|
+
variant: I,
|
|
16
16
|
selected: o,
|
|
17
|
-
chainsFilter:
|
|
17
|
+
chainsFilter: N,
|
|
18
18
|
onMsg: t
|
|
19
19
|
}) => {
|
|
20
|
-
const { t: _ } = D(),
|
|
21
|
-
() =>
|
|
22
|
-
[
|
|
23
|
-
),
|
|
24
|
-
return /* @__PURE__ */ e(
|
|
25
|
-
/* @__PURE__ */ e(
|
|
20
|
+
const { t: _ } = D(), a = z(I), { appIcon: f, appName: b, showIntentTokens: C } = O(), g = A(
|
|
21
|
+
() => a.find((s) => s.id === o),
|
|
22
|
+
[a, o]
|
|
23
|
+
), y = N.intents !== "none";
|
|
24
|
+
return /* @__PURE__ */ e(v, { children: ({ open: s, close: l }) => /* @__PURE__ */ m("div", { children: [
|
|
25
|
+
/* @__PURE__ */ e(S, { as: M, children: ({ open: n }) => /* @__PURE__ */ m("div", { className: "py-sw-sm px-sw-md gap-sw-md flex h-[40px] cursor-pointer items-center rounded-sw-md bg-sw-gray-800 hover:bg-sw-gray-700", children: [
|
|
26
26
|
(() => {
|
|
27
27
|
switch (o) {
|
|
28
28
|
case "all":
|
|
29
29
|
return /* @__PURE__ */ e(
|
|
30
|
-
|
|
30
|
+
i,
|
|
31
31
|
{
|
|
32
32
|
radius: 10,
|
|
33
33
|
icon: /* @__PURE__ */ e(h, {}),
|
|
@@ -35,17 +35,17 @@ const Q = ({
|
|
|
35
35
|
}
|
|
36
36
|
);
|
|
37
37
|
case "intents":
|
|
38
|
-
return C ? /* @__PURE__ */ e(
|
|
38
|
+
return C ? /* @__PURE__ */ e(i, { radius: 10, icon: f, label: b }) : null;
|
|
39
39
|
default:
|
|
40
|
-
return
|
|
41
|
-
|
|
40
|
+
return g ? /* @__PURE__ */ e(
|
|
41
|
+
i,
|
|
42
42
|
{
|
|
43
43
|
radius: 10,
|
|
44
|
-
label:
|
|
45
|
-
icon:
|
|
44
|
+
label: g.label,
|
|
45
|
+
icon: k[o] ?? w
|
|
46
46
|
}
|
|
47
47
|
) : /* @__PURE__ */ e(
|
|
48
|
-
|
|
48
|
+
i,
|
|
49
49
|
{
|
|
50
50
|
radius: 10,
|
|
51
51
|
icon: /* @__PURE__ */ e(h, {}),
|
|
@@ -54,10 +54,10 @@ const Q = ({
|
|
|
54
54
|
);
|
|
55
55
|
}
|
|
56
56
|
})(),
|
|
57
|
-
n ? /* @__PURE__ */ e(
|
|
57
|
+
n ? /* @__PURE__ */ e(x.ChevronUp, { size: 18, className: "text-sw-gray-50" }) : /* @__PURE__ */ e(x.ChevronDown, { size: 18, className: "text-sw-gray-50" })
|
|
58
58
|
] }) }),
|
|
59
59
|
/* @__PURE__ */ e(F, { children: s && /* @__PURE__ */ m(
|
|
60
|
-
|
|
60
|
+
E,
|
|
61
61
|
{
|
|
62
62
|
static: !0,
|
|
63
63
|
as: T.div,
|
|
@@ -66,7 +66,7 @@ const Q = ({
|
|
|
66
66
|
anchor: { to: "bottom end", gap: 8, padding: 32 },
|
|
67
67
|
className: "hide-scrollbar gap-sw-xxs p-sw-md z-10 flex max-h-[400px] min-w-[200px] flex-col rounded-sw-lg bg-sw-gray-800 shadow-[0_6px_48px_0_rgba(36,38,45,0.3)] ring-1 ring-inset ring-sw-gray-700 outline-none",
|
|
68
68
|
children: [
|
|
69
|
-
|
|
69
|
+
a.length > 1 && /* @__PURE__ */ e(p, { children: ({ focus: n }) => /* @__PURE__ */ e(
|
|
70
70
|
d,
|
|
71
71
|
{
|
|
72
72
|
chain: "all",
|
|
@@ -85,14 +85,14 @@ const Q = ({
|
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
) }),
|
|
88
|
-
|
|
88
|
+
y && /* @__PURE__ */ e(p, { children: ({ focus: n }) => /* @__PURE__ */ e(
|
|
89
89
|
d,
|
|
90
90
|
{
|
|
91
91
|
chain: "intents",
|
|
92
|
-
label:
|
|
92
|
+
label: b,
|
|
93
93
|
isSelected: o === "intents",
|
|
94
94
|
isFocused: n,
|
|
95
|
-
icon: w,
|
|
95
|
+
icon: f ?? w,
|
|
96
96
|
onMsg: (r) => {
|
|
97
97
|
switch (r.type) {
|
|
98
98
|
case "on_click_chain":
|
|
@@ -104,13 +104,13 @@ const Q = ({
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
) }),
|
|
107
|
-
!!
|
|
108
|
-
|
|
107
|
+
!!a.length && !!(a.length > 1 || y) && /* @__PURE__ */ e(j, { className: "shrink-0 my-sw-sm bg-sw-gray-700" }),
|
|
108
|
+
a.map((n) => /* @__PURE__ */ e(p, { children: ({ focus: r }) => /* @__PURE__ */ e(
|
|
109
109
|
d,
|
|
110
110
|
{
|
|
111
111
|
chain: n.id,
|
|
112
112
|
label: n.label,
|
|
113
|
-
icon:
|
|
113
|
+
icon: k[n.id] ?? w,
|
|
114
114
|
isSelected: o === n.id,
|
|
115
115
|
isFocused: r,
|
|
116
116
|
onMsg: (c) => {
|
|
@@ -130,6 +130,6 @@ const Q = ({
|
|
|
130
130
|
] }) });
|
|
131
131
|
};
|
|
132
132
|
export {
|
|
133
|
-
|
|
133
|
+
V as ChainsDropdown
|
|
134
134
|
};
|
|
135
135
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/features/ChainsDropdown/index.tsx"],"sourcesContent":["import { Fragment, useMemo } from 'react';\nimport { Menu, MenuButton, MenuItem, MenuItems } from '@headlessui/react';\nimport { AnimatePresence, motion } from 'framer-motion';\nimport * as Icons from 'lucide-react';\n\nimport { ChainItem } from './ChainItem';\nimport { AllNetworksIcon } from './AllNetworksIcon';\nimport { useConfig } from '@/config';\nimport { Hr } from '@/components/Hr';\nimport { Icon } from '@/components/Icon';\nimport { useChains } from '@/hooks/useChains';\nimport { CHAINS_LIST } from '@/constants/chains';\nimport { notReachable } from '@/utils/notReachable';\nimport { useTypedTranslation } from '@/localisation';\nimport type { Chains, ChainsFilter } from '@/types/chain';\n\ntype Msg = { type: 'on_click_chain'; chain: 'all' | 'intents' | Chains };\n\ntype Props = {\n variant: 'source' | 'target';\n chainsFilter: ChainsFilter;\n selected: 'all' | 'intents' | Chains;\n onMsg: (msg: Msg) => void;\n};\n\nexport const ChainsDropdown = ({\n variant,\n selected,\n chainsFilter,\n onMsg,\n}: Props) => {\n const { t } = useTypedTranslation();\n\n const chains = useChains(variant);\n const { appIcon, appName, showIntentTokens } = useConfig();\n const selectedChain = useMemo(\n () => chains.find((item) => item.id === selected),\n [chains, selected],\n );\n\n const hasIntentsAccountMenuItem = chainsFilter.intents !== 'none';\n\n return (\n <Menu>\n {({ open, close }) => (\n <div>\n <MenuButton as={Fragment}>\n {({ open: isOpen }) => (\n <div className=\"py-sw-sm px-sw-md gap-sw-md flex h-[40px] cursor-pointer items-center rounded-sw-md bg-sw-gray-800 hover:bg-sw-gray-700\">\n {(() => {\n switch (selected) {\n case 'all':\n return (\n <Icon\n radius={10}\n icon={<AllNetworksIcon />}\n label=\"All networks\"\n />\n );\n case 'intents':\n return showIntentTokens ? (\n <Icon radius={10} icon={appIcon} label={appName} />\n ) : null;\n default:\n return !selectedChain ? (\n <Icon\n radius={10}\n icon={<AllNetworksIcon />}\n label={t('chain.all.label', 'All networks')}\n />\n ) : (\n <Icon\n radius={10}\n label={selectedChain.label}\n icon={CHAINS_LIST[selected].icon}\n />\n );\n }\n })()}\n\n {isOpen ? (\n <Icons.ChevronUp size={18} className=\"text-sw-gray-50\" />\n ) : (\n <Icons.ChevronDown size={18} className=\"text-sw-gray-50\" />\n )}\n </div>\n )}\n </MenuButton>\n\n <AnimatePresence>\n {open && (\n <MenuItems\n static\n as={motion.div}\n animate={{ opacity: 1, scale: 1 }}\n initial={{ opacity: 0, scale: 0.95 }}\n anchor={{ to: 'bottom end', gap: 8, padding: 32 }}\n className=\"hide-scrollbar gap-sw-xxs p-sw-md z-10 flex max-h-[400px] min-w-[200px] flex-col rounded-sw-lg bg-sw-gray-800 shadow-[0_6px_48px_0_rgba(36,38,45,0.3)] ring-1 ring-inset ring-sw-gray-700 outline-none\">\n {chains.length > 1 && (\n <MenuItem>\n {({ focus }) => (\n <ChainItem\n chain=\"all\"\n label=\"All networks\"\n isSelected={selected === 'all'}\n isFocused={focus}\n icon={<AllNetworksIcon />}\n onMsg={(msg) => {\n switch (msg.type) {\n case 'on_click_chain':\n close();\n onMsg(msg);\n break;\n default:\n notReachable(msg.type, { throwError: false });\n }\n }}\n />\n )}\n </MenuItem>\n )}\n\n {hasIntentsAccountMenuItem && (\n <MenuItem>\n {({ focus }) => (\n <ChainItem\n chain=\"intents\"\n label={`${appName} account`}\n isSelected={selected === 'intents'}\n isFocused={focus}\n icon={appIcon}\n onMsg={(msg) => {\n switch (msg.type) {\n case 'on_click_chain':\n close();\n onMsg(msg);\n break;\n default:\n notReachable(msg.type, { throwError: false });\n }\n }}\n />\n )}\n </MenuItem>\n )}\n\n {!!chains.length &&\n !!(chains.length > 1 || hasIntentsAccountMenuItem) && (\n <Hr className=\"shrink-0 my-sw-sm bg-sw-gray-700\" />\n )}\n\n {chains.map((chain) => {\n return (\n <MenuItem key={chain.id}>\n {({ focus }) => (\n <ChainItem\n chain={chain.id}\n label={chain.label}\n icon={CHAINS_LIST[chain.id].icon}\n isSelected={selected === chain.id}\n isFocused={focus}\n onMsg={(msg) => {\n switch (msg.type) {\n case 'on_click_chain':\n close();\n onMsg(msg);\n break;\n default:\n notReachable(msg.type, { throwError: false });\n }\n }}\n />\n )}\n </MenuItem>\n );\n })}\n </MenuItems>\n )}\n </AnimatePresence>\n </div>\n )}\n </Menu>\n );\n};\n"],"names":["ChainsDropdown","variant","selected","chainsFilter","onMsg","t","useTypedTranslation","chains","useChains","appIcon","appName","showIntentTokens","useConfig","selectedChain","useMemo","item","hasIntentsAccountMenuItem","jsx","Menu","open","close","MenuButton","Fragment","isOpen","jsxs","Icon","AllNetworksIcon","CHAINS_LIST","Icons","AnimatePresence","MenuItems","motion","MenuItem","focus","ChainItem","msg","notReachable","Hr","chain"],"mappings":";;;;;;;;;;;;;AAyBO,MAAMA,IAAiB,CAAC;AAAA,EAC7B,SAAAC;AAAA,EACA,UAAAC;AAAA,EACA,cAAAC;AAAA,EACA,OAAAC;AACF,MAAa;AACX,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAA,GAERC,IAASC,EAAUP,CAAO,GAC1B,EAAE,SAAAQ,GAAS,SAAAC,GAAS,kBAAAC,EAAA,IAAqBC,EAAA,GACzCC,IAAgBC;AAAA,IACpB,MAAMP,EAAO,KAAK,CAACQ,MAASA,EAAK,OAAOb,CAAQ;AAAA,IAChD,CAACK,GA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,EAAG,WAAU,mCAAA,CAAmC;AAAA,UAGpD9B,EAAO,IAAI,CAAC+B,MAET,gBAAArB,EAACe,GAAA,EACE,UAAA,CAAC,EAAE,OAAAC,QACF,gBAAAhB;AAAA,YAACiB;AAAA,YAAA;AAAA,cACC,OAAOI,EAAM;AAAA,cACb,OAAOA,EAAM;AAAA,cACb,MAAMX,EAAYW,EAAM,EAAE,EAAE;AAAA,cAC5B,YAAYpC,MAAaoC,EAAM;AAAA,cAC/B,WAAWL;AAAA,cACX,OAAO,CAACE,MAAQ;AACd,wBAAQA,EAAI,MAAA;AAAA,kBACV,KAAK;AACH,oBAAAf,EAAA,GACAhB,EAAM+B,CAAG;AACT;AAAA,kBACF;AACE,oBAAAC,EAAaD,EAAI,MAAM,EAAE,YAAY,IAAO;AAAA,gBAAA;AAAA,cAElD;AAAA,YAAA;AAAA,UAAA,EACF,GAlBWG,EAAM,EAoBrB,CAEH;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA,EACH,CAEJ;AAAA,EAAA,EAAA,CACF,EAAA,CAEJ;AAEJ;"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/features/ChainsDropdown/index.tsx"],"sourcesContent":["import { Fragment, useMemo } from 'react';\nimport { Menu, MenuButton, MenuItem, MenuItems } from '@headlessui/react';\nimport { AnimatePresence, motion } from 'framer-motion';\nimport * as Icons from 'lucide-react';\n\nimport { ChainItem } from './ChainItem';\nimport { AllNetworksIcon } from './AllNetworksIcon';\nimport { useConfig } from '@/config';\nimport { Hr } from '@/components/Hr';\nimport { Icon } from '@/components/Icon';\nimport { useChains } from '@/hooks/useChains';\nimport { notReachable } from '@/utils/notReachable';\nimport { useTypedTranslation } from '@/localisation';\nimport { ASSET_ICONS, UNKNOWN_ICON } from '@/icons';\nimport type { Chains, ChainsFilter } from '@/types/chain';\n\ntype Msg = { type: 'on_click_chain'; chain: 'all' | 'intents' | Chains };\n\ntype Props = {\n variant: 'source' | 'target';\n chainsFilter: ChainsFilter;\n selected: 'all' | 'intents' | Chains;\n onMsg: (msg: Msg) => void;\n};\n\nexport const ChainsDropdown = ({\n variant,\n selected,\n chainsFilter,\n onMsg,\n}: Props) => {\n const { t } = useTypedTranslation();\n\n const chains = useChains(variant);\n const { appIcon, appName, showIntentTokens } = useConfig();\n const selectedChain = useMemo(\n () => chains.find((item) => item.id === selected),\n [chains, selected],\n );\n\n const hasIntentsAccountMenuItem = chainsFilter.intents !== 'none';\n\n return (\n <Menu>\n {({ open, close }) => (\n <div>\n <MenuButton as={Fragment}>\n {({ open: isOpen }) => (\n <div className=\"py-sw-sm px-sw-md gap-sw-md flex h-[40px] cursor-pointer items-center rounded-sw-md bg-sw-gray-800 hover:bg-sw-gray-700\">\n {(() => {\n switch (selected) {\n case 'all':\n return (\n <Icon\n radius={10}\n icon={<AllNetworksIcon />}\n label=\"All networks\"\n />\n );\n case 'intents':\n return showIntentTokens ? (\n <Icon radius={10} icon={appIcon} label={appName} />\n ) : null;\n default:\n return !selectedChain ? (\n <Icon\n radius={10}\n icon={<AllNetworksIcon />}\n label={t('chain.all.label', 'All networks')}\n />\n ) : (\n <Icon\n radius={10}\n label={selectedChain.label}\n icon={ASSET_ICONS[selected] ?? UNKNOWN_ICON}\n />\n );\n }\n })()}\n\n {isOpen ? (\n <Icons.ChevronUp size={18} className=\"text-sw-gray-50\" />\n ) : (\n <Icons.ChevronDown size={18} className=\"text-sw-gray-50\" />\n )}\n </div>\n )}\n </MenuButton>\n\n <AnimatePresence>\n {open && (\n <MenuItems\n static\n as={motion.div}\n animate={{ opacity: 1, scale: 1 }}\n initial={{ opacity: 0, scale: 0.95 }}\n anchor={{ to: 'bottom end', gap: 8, padding: 32 }}\n className=\"hide-scrollbar gap-sw-xxs p-sw-md z-10 flex max-h-[400px] min-w-[200px] flex-col rounded-sw-lg bg-sw-gray-800 shadow-[0_6px_48px_0_rgba(36,38,45,0.3)] ring-1 ring-inset ring-sw-gray-700 outline-none\">\n {chains.length > 1 && (\n <MenuItem>\n {({ focus }) => (\n <ChainItem\n chain=\"all\"\n label=\"All networks\"\n isSelected={selected === 'all'}\n isFocused={focus}\n icon={<AllNetworksIcon />}\n onMsg={(msg) => {\n switch (msg.type) {\n case 'on_click_chain':\n close();\n onMsg(msg);\n break;\n default:\n notReachable(msg.type, { throwError: false });\n }\n }}\n />\n )}\n </MenuItem>\n )}\n\n {hasIntentsAccountMenuItem && (\n <MenuItem>\n {({ focus }) => (\n <ChainItem\n chain=\"intents\"\n label={appName}\n isSelected={selected === 'intents'}\n isFocused={focus}\n icon={appIcon ?? UNKNOWN_ICON}\n onMsg={(msg) => {\n switch (msg.type) {\n case 'on_click_chain':\n close();\n onMsg(msg);\n break;\n default:\n notReachable(msg.type, { throwError: false });\n }\n }}\n />\n )}\n </MenuItem>\n )}\n\n {!!chains.length &&\n !!(chains.length > 1 || hasIntentsAccountMenuItem) && (\n <Hr className=\"shrink-0 my-sw-sm bg-sw-gray-700\" />\n )}\n\n {chains.map((chain) => {\n return (\n <MenuItem key={chain.id}>\n {({ focus }) => (\n <ChainItem\n chain={chain.id}\n label={chain.label}\n icon={ASSET_ICONS[chain.id] ?? UNKNOWN_ICON}\n isSelected={selected === chain.id}\n isFocused={focus}\n onMsg={(msg) => {\n switch (msg.type) {\n case 'on_click_chain':\n close();\n onMsg(msg);\n break;\n default:\n notReachable(msg.type, { throwError: false });\n }\n }}\n />\n )}\n </MenuItem>\n );\n })}\n </MenuItems>\n )}\n </AnimatePresence>\n </div>\n )}\n </Menu>\n );\n};\n"],"names":["ChainsDropdown","variant","selected","chainsFilter","onMsg","t","useTypedTranslation","chains","useChains","appIcon","appName","showIntentTokens","useConfig","selectedChain","useMemo","item","hasIntentsAccountMenuItem","jsx","Menu","open","close","MenuButton","Fragment","isOpen","jsxs","Icon","AllNetworksIcon","ASSET_ICONS","UNKNOWN_ICON","Icons","AnimatePresence","MenuItems","motion","MenuItem","focus","ChainItem","msg","notReachable","Hr","chain"],"mappings":";;;;;;;;;;;;;AAyBO,MAAMA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WmB;AAAA,cACjB,OAAO,CAACQ,MAAQ;AACd,wBAAQA,EAAI,MAAA;AAAA,kBACV,KAAK;AACH,oBAAAhB,EAAA,GACAhB,EAAMgC,CAAG;AACT;AAAA,kBACF;AACE,oBAAAC,EAAaD,EAAI,MAAM,EAAE,YAAY,IAAO;AAAA,gBAAA;AAAA,cAElD;AAAA,YAAA;AAAA,UAAA,GAGN;AAAA,UAGD,CAAC,CAAC7B,EAAO,UACR,CAAC,EAAEA,EAAO,SAAS,KAAKS,MACtB,gBAAAC,EAACqB,GAAA,EAAG,WAAU,mCAAA,CAAmC;AAAA,UAGpD/B,EAAO,IAAI,CAACgC,MAET,gBAAAtB,EAACgB,GAAA,EACE,UAAA,CAAC,EAAE,OAAAC,QACF,gBAAAjB;AAAA,YAACkB;AAAA,YAAA;AAAA,cACC,OAAOI,EAAM;AAAA,cACb,OAAOA,EAAM;AAAA,cACb,MAAMZ,EAAYY,EAAM,EAAE,KAAKX;AAAA,cAC/B,YAAY1B,MAAaqC,EAAM;AAAA,cAC/B,WAAWL;AAAA,cACX,OAAO,CAACE,MAAQ;AACd,wBAAQA,EAAI,MAAA;AAAA,kBACV,KAAK;AACH,oBAAAhB,EAAA,GACAhB,EAAMgC,CAAG;AACT;AAAA,kBACF;AACE,oBAAAC,EAAaD,EAAI,MAAM,EAAE,YAAY,IAAO;AAAA,gBAAA;AAAA,cAElD;AAAA,YAAA;AAAA,UAAA,EACF,GAlBWG,EAAM,EAoBrB,CAEH;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA,EACH,CAEJ;AAAA,EAAA,EAAA,CACF,EAAA,CAEJ;AAEJ;"}
|
|
@@ -3,7 +3,7 @@ import * as l from "lucide-react";
|
|
|
3
3
|
import { cn as m } from "../utils/cn.js";
|
|
4
4
|
import { Card as p } from "../components/Card.js";
|
|
5
5
|
import { Button as i } from "../components/Button.js";
|
|
6
|
-
import { b as c } from "../config-
|
|
6
|
+
import { b as c } from "../config-DQMHUj5z.js";
|
|
7
7
|
import "ethers";
|
|
8
8
|
import "../machine/machine.js";
|
|
9
9
|
import { fireEvent as d } from "../machine/events/utils/fireEvent.js";
|
|
@@ -12,7 +12,7 @@ import { formatAddressTruncate as _ } from "../utils/formatters/formatAddressTru
|
|
|
12
12
|
import "../utils/cn.js";
|
|
13
13
|
import { notReachable as l } from "../utils/notReachable.js";
|
|
14
14
|
import "@tanstack/react-query";
|
|
15
|
-
import { b as E, u as I } from "../config-
|
|
15
|
+
import { b as E, u as I } from "../config-DQMHUj5z.js";
|
|
16
16
|
import { guardStates as k } from "../machine/guards/index.js";
|
|
17
17
|
import { moveTo as A } from "../machine/machine.js";
|
|
18
18
|
import { fireEvent as o } from "../machine/events/utils/fireEvent.js";
|
|
@@ -11,7 +11,7 @@ import "../../constants/chains.js";
|
|
|
11
11
|
import "viem";
|
|
12
12
|
import "ethers";
|
|
13
13
|
import { cn as M } from "../../utils/cn.js";
|
|
14
|
-
import { b as V, y as _ } from "../../config-
|
|
14
|
+
import { b as V, y as _ } from "../../config-DQMHUj5z.js";
|
|
15
15
|
import "../../machine/machine.js";
|
|
16
16
|
import { fireEvent as d } from "../../machine/events/utils/fireEvent.js";
|
|
17
17
|
import { useTypedTranslation as j } from "../../localisation.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMemo as o } from "react";
|
|
2
|
-
import { b as d, y as l } from "../../config-
|
|
2
|
+
import { b as d, y as l } from "../../config-DQMHUj5z.js";
|
|
3
3
|
import { useTypedTranslation as c } from "../../localisation.js";
|
|
4
4
|
import { getIntentsAccountId as u } from "../../utils/intents/getIntentsAccountId.js";
|
|
5
5
|
import { CHAINS_LIST as f, EVM_CHAINS as m } from "../../constants/chains.js";
|
|
@@ -3,7 +3,7 @@ import "react-i18next";
|
|
|
3
3
|
import "../../components/Button.js";
|
|
4
4
|
import "../../components/TinyNumber.js";
|
|
5
5
|
import "../../components/ErrorMessage.js";
|
|
6
|
-
import { S as b } from "../../config-
|
|
6
|
+
import { S as b } from "../../config-DQMHUj5z.js";
|
|
7
7
|
import "../../localisation.js";
|
|
8
8
|
import "../../utils/checkers/isNotEmptyAmount.js";
|
|
9
9
|
export {
|
|
@@ -5,7 +5,7 @@ import { SummaryItem as n } from "./SummaryItem.js";
|
|
|
5
5
|
import { Hr as w } from "../../components/Hr.js";
|
|
6
6
|
import { Card as y } from "../../components/Card.js";
|
|
7
7
|
import { CloseButton as b } from "../../components/CloseButton.js";
|
|
8
|
-
import { b as A } from "../../config-
|
|
8
|
+
import { b as A } from "../../config-DQMHUj5z.js";
|
|
9
9
|
import "ethers";
|
|
10
10
|
import "../../machine/machine.js";
|
|
11
11
|
import { fireEvent as C } from "../../machine/events/utils/fireEvent.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { DirectionSwitcher as r } from "../components/DirectionSwitcher.js";
|
|
3
|
-
import { b as i } from "../config-
|
|
3
|
+
import { b as i } from "../config-DQMHUj5z.js";
|
|
4
4
|
import "ethers";
|
|
5
5
|
import "../machine/machine.js";
|
|
6
6
|
import { fireEvent as n } from "../machine/events/utils/fireEvent.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "./SwapQuoteSkeleton.js";
|
|
3
|
-
import { a3 as s } from "../../config-
|
|
3
|
+
import { a3 as s } from "../../config-DQMHUj5z.js";
|
|
4
4
|
import "../../components/Notes.js";
|
|
5
5
|
import "../../components/Accordion.js";
|
|
6
6
|
import "../../utils/formatters/formatUsdAmount.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { a5 as I } from "../../config-
|
|
3
|
+
import { a5 as I } from "../../config-DQMHUj5z.js";
|
|
4
4
|
import "./utils/getBalancePortion.js";
|
|
5
5
|
import "./utils/getUsdDisplayAmount.js";
|
|
6
6
|
import "./TokenInputHeading.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../../utils/cn.js";
|
|
3
|
-
import { aa as T, ab as e } from "../../config-
|
|
3
|
+
import { aa as T, ab as e } from "../../config-DQMHUj5z.js";
|
|
4
4
|
import "../../components/TokenIcon.js";
|
|
5
5
|
import "../../components/TinyNumber.js";
|
|
6
6
|
import "../../utils/formatters/getUsdDisplayBalance.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "virtua";
|
|
3
3
|
import "react";
|
|
4
|
-
import { ad as f } from "../../config-
|
|
4
|
+
import { ad as f } from "../../config-DQMHUj5z.js";
|
|
5
5
|
import "./TokensListPlaceholder.js";
|
|
6
6
|
import "../../utils/cn.js";
|
|
7
7
|
import "../../components/Hr.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as r, jsx as t, Fragment as b } from "react/jsx-runtime";
|
|
2
2
|
import { useState as d } from "react";
|
|
3
3
|
import * as g from "lucide-react";
|
|
4
|
-
import { b as N, y as T, d as j, q as E } from "../config-
|
|
4
|
+
import { b as N, y as T, d as j, q as E } from "../config-DQMHUj5z.js";
|
|
5
5
|
import { ChainsDropdown as I } from "./ChainsDropdown/index.js";
|
|
6
6
|
import "@tanstack/react-query";
|
|
7
7
|
import "@defuse-protocol/one-click-sdk-typescript";
|
|
@@ -9,7 +9,7 @@ import "ethers";
|
|
|
9
9
|
import "../../utils/cn.js";
|
|
10
10
|
import "@tanstack/react-query";
|
|
11
11
|
import "@defuse-protocol/one-click-sdk-typescript";
|
|
12
|
-
import { ag as F, af as G, z as H } from "../../config-
|
|
12
|
+
import { ag as F, af as G, z as H } from "../../config-DQMHUj5z.js";
|
|
13
13
|
import "../../machine/machine.js";
|
|
14
14
|
import "zod";
|
|
15
15
|
import "../../utils/near/rpc.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { useState as r } from "react";
|
|
3
|
-
import { b, z as n } from "../../config-
|
|
3
|
+
import { b, z as n } from "../../config-DQMHUj5z.js";
|
|
4
4
|
import "ethers";
|
|
5
5
|
import "../../machine/machine.js";
|
|
6
6
|
import { notReachable as l } from "../../utils/notReachable.js";
|
package/dist/features/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as r, S as t, o as p, p as a, T as s, q as n } from "../config-
|
|
1
|
+
import { B as r, S as t, o as p, p as a, T as s, q as n } from "../config-DQMHUj5z.js";
|
|
2
2
|
import { ChainsDropdown as m } from "./ChainsDropdown/index.js";
|
|
3
3
|
import { SendAddress as c } from "./SendAddress/index.js";
|
|
4
4
|
import { SuccessScreen as S } from "./SuccessScreen/index.js";
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as a, d as r, f as o, g as t, h as n, j as u, i as f, k as l, l as m, n as k, m as p } from "../config-
|
|
1
|
+
import { e as a, d as r, f as o, g as t, h as n, j as u, i as f, k as l, l as m, n as k, m as p } from "../config-DQMHUj5z.js";
|
|
2
2
|
import { useMakeEvmTransfer as T } from "./useMakeEvmTransfer.js";
|
|
3
3
|
import { useMakeSolanaTransfer as M } from "./useMakeSolanaTransfer.js";
|
|
4
4
|
import { useTokenInputPair as c } from "./useTokenInputPair.js";
|
package/dist/hooks/useChains.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useState as f } from "react";
|
|
2
2
|
import { B as l } from "../index-DEq3oXQF.js";
|
|
3
3
|
import { verifyWalletSignature as N, walletVerificationMessageFactory as p } from "../utils/intents/walletCompatibilityVerification.js";
|
|
4
|
-
import { y, w as o } from "../config-
|
|
4
|
+
import { y, w as o } from "../config-DQMHUj5z.js";
|
|
5
5
|
import { notReachable as A } from "../utils/notReachable.js";
|
|
6
6
|
import { getIntentsAccountId as S } from "../utils/intents/getIntentsAccountId.js";
|
|
7
7
|
import { localStorageTyped as u } from "../utils/localstorage.js";
|
|
@@ -5,7 +5,7 @@ import "ethers";
|
|
|
5
5
|
import "../../utils/cn.js";
|
|
6
6
|
import { notReachable as l } from "../../utils/notReachable.js";
|
|
7
7
|
import { useOneClickExternalDepositStatus as p } from "./useOneClickExternalDepositStatus.js";
|
|
8
|
-
import { b as c, u as m, A as S, v as f } from "../../config-
|
|
8
|
+
import { b as c, u as m, A as S, v as f } from "../../config-DQMHUj5z.js";
|
|
9
9
|
import { WNEAR_ASSET_ID as D } from "../../constants/tokens.js";
|
|
10
10
|
import { guardStates as h } from "../../machine/guards/index.js";
|
|
11
11
|
import "../../machine/machine.js";
|
|
@@ -4,7 +4,7 @@ import "change-case";
|
|
|
4
4
|
import "../utils/near/getRandomBytes.js";
|
|
5
5
|
import "../utils/intents/signers/solana.js";
|
|
6
6
|
import "../logger.js";
|
|
7
|
-
import { g as T } from "../config-
|
|
7
|
+
import { g as T } from "../config-DQMHUj5z.js";
|
|
8
8
|
import "../constants/chains.js";
|
|
9
9
|
import "../constants/intents.js";
|
|
10
10
|
import "../utils/notReachable.js";
|
|
@@ -3,7 +3,7 @@ import "change-case";
|
|
|
3
3
|
import "@defuse-protocol/one-click-sdk-typescript";
|
|
4
4
|
import "axios";
|
|
5
5
|
import "../logger.js";
|
|
6
|
-
import { h as M } from "../config-
|
|
6
|
+
import { h as M } from "../config-DQMHUj5z.js";
|
|
7
7
|
import "../network.js";
|
|
8
8
|
import "../machine/guards/index.js";
|
|
9
9
|
import "../constants/tokens.js";
|
|
@@ -8,7 +8,7 @@ import "../utils/cn.js";
|
|
|
8
8
|
import "./useMakeEvmTransfer.js";
|
|
9
9
|
import "../utils/evm/isEvmAddress.js";
|
|
10
10
|
import "./useMakeSolanaTransfer.js";
|
|
11
|
-
import { j as Q } from "../config-
|
|
11
|
+
import { j as Q } from "../config-DQMHUj5z.js";
|
|
12
12
|
import "../utils/solana/isSolanaAddress.js";
|
|
13
13
|
import "../logger.js";
|
|
14
14
|
import "../constants/tokens.js";
|
package/dist/hooks/useTheme.js
CHANGED