@aurora-is-near/intents-swap-widget 2.27.0 → 2.29.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/SwapCard.js +1 -1
- package/dist/components/WidgetContainer.d.ts +3 -3
- package/dist/components/WidgetContainer.js +34 -11
- package/dist/components/WidgetContainer.js.map +1 -1
- package/dist/{config-8oEZrI4B.js → config-BhslWKGR.js} +977 -961
- package/dist/config-BhslWKGR.js.map +1 -0
- package/dist/config.d.ts +1 -0
- package/dist/config.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/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/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.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 +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.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.d.ts +2 -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/types/config.d.ts +1 -0
- package/dist/types/localisation.d.ts +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/widgets/WidgetDeposit/WidgetDepositContent.js +27 -27
- package/dist/widgets/WidgetDeposit/WidgetDepositContent.js.map +1 -1
- package/dist/widgets/WidgetDeposit/index.d.ts +3 -2
- package/dist/widgets/WidgetDeposit/index.js +9 -7
- package/dist/widgets/WidgetDeposit/index.js.map +1 -1
- package/dist/widgets/WidgetSwap/WidgetSwapContent.js +29 -28
- package/dist/widgets/WidgetSwap/WidgetSwapContent.js.map +1 -1
- package/dist/widgets/WidgetSwap/index.d.ts +3 -2
- package/dist/widgets/WidgetSwap/index.js +9 -7
- package/dist/widgets/WidgetSwap/index.js.map +1 -1
- package/dist/widgets/WidgetWithdraw/WidgetWithdrawContent.js +34 -33
- package/dist/widgets/WidgetWithdraw/WidgetWithdrawContent.js.map +1 -1
- package/dist/widgets/WidgetWithdraw/index.d.ts +3 -2
- package/dist/widgets/WidgetWithdraw/index.js +9 -7
- package/dist/widgets/WidgetWithdraw/index.js.map +1 -1
- package/dist/widgets/types.d.ts +0 -4
- package/package.json +1 -1
- package/src/components/WidgetContainer.tsx +14 -3
- package/src/features/SubmitButton/index.tsx +3 -1
- package/src/hooks/useMakeDepositAddress.ts +2 -0
- package/src/hooks/useMakeQuote.ts +2 -0
- package/src/machine/effects/index.ts +1 -0
- package/src/machine/effects/useMakeQuoteEffect.ts +122 -80
- package/src/types/config.ts +1 -0
- package/src/types/localisation.ts +1 -0
- package/src/widgets/WidgetDeposit/WidgetDepositContent.tsx +4 -2
- package/src/widgets/WidgetDeposit/index.tsx +7 -2
- package/src/widgets/WidgetSwap/WidgetSwapContent.tsx +4 -1
- package/src/widgets/WidgetSwap/index.tsx +7 -2
- package/src/widgets/WidgetWithdraw/WidgetWithdrawContent.tsx +4 -1
- package/src/widgets/WidgetWithdraw/index.tsx +8 -2
- package/src/widgets/types.ts +0 -4
- package/dist/config-8oEZrI4B.js.map +0 -1
|
@@ -8,7 +8,7 @@ import "../constants/chains.js";
|
|
|
8
8
|
import "viem";
|
|
9
9
|
import "ethers";
|
|
10
10
|
import { cn as N } from "../utils/cn.js";
|
|
11
|
-
import { x as h } from "../config-
|
|
11
|
+
import { x as h } from "../config-BhslWKGR.js";
|
|
12
12
|
const A = ({
|
|
13
13
|
title: f = "Swap",
|
|
14
14
|
state: s,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PropsWithChildren, ReactElement } from 'react';
|
|
2
|
-
type WidgetContainerProps = PropsWithChildren<{
|
|
2
|
+
export type WidgetContainerProps = PropsWithChildren<{
|
|
3
3
|
HeaderComponent?: ReactElement | false | null;
|
|
4
4
|
FooterComponent?: ReactElement | false | null;
|
|
5
5
|
isFullPage?: boolean;
|
|
6
|
+
className?: string;
|
|
6
7
|
}>;
|
|
7
|
-
export declare const WidgetContainer: ({ children, HeaderComponent, FooterComponent, isFullPage, }: WidgetContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
8
|
+
export declare const WidgetContainer: ({ children, HeaderComponent, FooterComponent, isFullPage, className, }: WidgetContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,18 +1,41 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { jsxs as m, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import "../constants/chains.js";
|
|
3
|
+
import "viem";
|
|
4
|
+
import "ethers";
|
|
5
|
+
import { cn as s } from "../utils/cn.js";
|
|
6
|
+
const w = ({
|
|
7
|
+
children: c,
|
|
4
8
|
HeaderComponent: e,
|
|
5
9
|
FooterComponent: i,
|
|
6
|
-
isFullPage: t
|
|
10
|
+
isFullPage: t,
|
|
11
|
+
className: r
|
|
7
12
|
}) => {
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
const f = /* @__PURE__ */ m(
|
|
14
|
+
"div",
|
|
15
|
+
{
|
|
16
|
+
className: s(
|
|
17
|
+
"w-full h-full flex flex-col justify-center items-center relative",
|
|
18
|
+
t && r
|
|
19
|
+
),
|
|
20
|
+
children: [
|
|
21
|
+
e && /* @__PURE__ */ l("div", { className: "w-full mb-sw-2xl", children: e }),
|
|
22
|
+
c,
|
|
23
|
+
i && /* @__PURE__ */ l("div", { className: "flex flex-col gap-3 items-center w-full mt-sw-2xl", children: i })
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
return t ? /* @__PURE__ */ l(
|
|
28
|
+
"div",
|
|
29
|
+
{
|
|
30
|
+
className: s(
|
|
31
|
+
"h-full min-h-full w-full min-w-full px-sw-lg mx-auto flex items-center justify-center fixed top-0 left-0 right-0",
|
|
32
|
+
r
|
|
33
|
+
),
|
|
34
|
+
children: /* @__PURE__ */ l("div", { className: "w-full h-full max-w-[456px] min-w-[270px]", children: f })
|
|
35
|
+
}
|
|
36
|
+
) : f;
|
|
14
37
|
};
|
|
15
38
|
export {
|
|
16
|
-
|
|
39
|
+
w as WidgetContainer
|
|
17
40
|
};
|
|
18
41
|
//# sourceMappingURL=WidgetContainer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetContainer.js","sources":["../../src/components/WidgetContainer.tsx"],"sourcesContent":["import { PropsWithChildren, ReactElement } from 'react';\n\
|
|
1
|
+
{"version":3,"file":"WidgetContainer.js","sources":["../../src/components/WidgetContainer.tsx"],"sourcesContent":["import { PropsWithChildren, ReactElement } from 'react';\nimport { cn } from '../utils';\n\nexport type WidgetContainerProps = PropsWithChildren<{\n HeaderComponent?: ReactElement | false | null;\n FooterComponent?: ReactElement | false | null;\n isFullPage?: boolean;\n className?: string;\n}>;\n\nexport const WidgetContainer = ({\n children,\n HeaderComponent,\n FooterComponent,\n isFullPage,\n className,\n}: WidgetContainerProps) => {\n const jsx = (\n <div\n className={cn(\n 'w-full h-full flex flex-col justify-center items-center relative',\n isFullPage && className,\n )}>\n {HeaderComponent && (\n <div className=\"w-full mb-sw-2xl\">{HeaderComponent}</div>\n )}\n {children}\n {FooterComponent && (\n <div className=\"flex flex-col gap-3 items-center w-full mt-sw-2xl\">\n {FooterComponent}\n </div>\n )}\n </div>\n );\n\n if (!isFullPage) {\n return jsx;\n }\n\n return (\n <div\n className={cn(\n 'h-full min-h-full w-full min-w-full px-sw-lg mx-auto flex items-center justify-center fixed top-0 left-0 right-0',\n className,\n )}>\n <div className=\"w-full h-full max-w-[456px] min-w-[270px]\">{jsx}</div>\n </div>\n );\n};\n"],"names":["WidgetContainer","children","HeaderComponent","FooterComponent","isFullPage","className","jsx","jsxs","cn"],"mappings":";;;;;AAUO,MAAMA,IAAkB,CAAC;AAAA,EAC9B,UAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,YAAAC;AAAA,EACA,WAAAC;AACF,MAA4B;AAC1B,QAAMC,IACJ,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC;AAAA,QACT;AAAA,QACAJ,KAAcC;AAAA,MAAA;AAAA,MAEf,UAAA;AAAA,QAAAH,KACC,gBAAAI,EAAC,OAAA,EAAI,WAAU,oBAAoB,UAAAJ,GAAgB;AAAA,QAEpDD;AAAA,QACAE,KACC,gBAAAG,EAAC,OAAA,EAAI,WAAU,qDACZ,UAAAH,EAAA,CACH;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAKN,SAAKC,IAKH,gBAAAE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWE;AAAA,QACT;AAAA,QACAH;AAAA,MAAA;AAAA,MAEF,UAAA,gBAAAC,EAAC,OAAA,EAAI,WAAU,6CAA6C,UAAAA,EAAAA,CAAI;AAAA,IAAA;AAAA,EAAA,IAT3DA;AAYX;"}
|