@aurora-is-near/intents-swap-widget 3.21.0 → 3.21.1

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.
Files changed (103) hide show
  1. package/dist/components/WidgetContainer.js +23 -14
  2. package/dist/components/WidgetContainer.js.map +1 -1
  3. package/dist/{config-CyBNYvb1.js → config-DAMaL9k2.js} +2 -2
  4. package/dist/{config-CyBNYvb1.js.map → config-DAMaL9k2.js.map} +1 -1
  5. package/dist/config.js +1 -1
  6. package/dist/errors.js +1 -1
  7. package/dist/ext/alchemy/index.js +1 -1
  8. package/dist/ext/index.js +1 -1
  9. package/dist/features/BalanceRpcLoader/TokenBalanceLoader.js +1 -1
  10. package/dist/features/BalanceRpcLoader/index.js +1 -1
  11. package/dist/features/BalanceRpcLoader/useTokenBalanceRpc.js +1 -1
  12. package/dist/features/ChainsDropdown/index.js +1 -1
  13. package/dist/features/ChainsSelector/index.js +1 -1
  14. package/dist/features/DepositMethodSwitcher.js +1 -1
  15. package/dist/features/ErrorBoundary.js +1 -1
  16. package/dist/features/ExternalDeposit.js +1 -1
  17. package/dist/features/SendAddress/index.js +1 -1
  18. package/dist/features/SendAddress/useNotification.js +1 -1
  19. package/dist/features/SubmitButton/index.js +1 -1
  20. package/dist/features/SuccessScreen/index.js +1 -1
  21. package/dist/features/SuccessScreen/useSummaryItemsCount.js +1 -1
  22. package/dist/features/SwapDirectionSwitcher.js +1 -1
  23. package/dist/features/SwapQuote/SwapQuote.js +1 -1
  24. package/dist/features/SwapQuote/index.js +1 -1
  25. package/dist/features/TokenInput/TokenInput.js +1 -1
  26. package/dist/features/TokenInput/TokenInputEmpty.js +1 -1
  27. package/dist/features/TokenInput/TokenInputSource.js +1 -1
  28. package/dist/features/TokenInput/TokenInputTarget.js +1 -1
  29. package/dist/features/TokenInput/WalletBalance.js +1 -1
  30. package/dist/features/TokenInput/hooks/index.js +1 -1
  31. package/dist/features/TokenInput/hooks/useTokenInputBalance.js +1 -1
  32. package/dist/features/TokenInput/index.js +1 -1
  33. package/dist/features/TokensList/TokenItem.js +1 -1
  34. package/dist/features/TokensList/TokensList.js +1 -1
  35. package/dist/features/TokensList/index.js +1 -1
  36. package/dist/features/TokensModal.js +1 -1
  37. package/dist/features/WalletCompatibilityCheck/WalletCompatibilityModal.js +1 -1
  38. package/dist/features/WalletCompatibilityCheck/index.js +1 -1
  39. package/dist/features/index.js +1 -1
  40. package/dist/hooks/index.js +1 -1
  41. package/dist/hooks/useAllTokens.js +1 -1
  42. package/dist/hooks/useChains.js +1 -1
  43. package/dist/hooks/useCompatibilityCheck.js +1 -1
  44. package/dist/hooks/useDefaultToken.js +1 -1
  45. package/dist/hooks/useExternalDepositStatus/index.js +1 -1
  46. package/dist/hooks/useExternalDepositStatus/usePoaExternalDepositStatus.js +1 -1
  47. package/dist/hooks/useIntentsBalance.js +1 -1
  48. package/dist/hooks/useIsCompatibilityCheckRequired.js +1 -1
  49. package/dist/hooks/useMakeDepositAddress.js +1 -1
  50. package/dist/hooks/useMakeIntentsTransfer.js +1 -1
  51. package/dist/hooks/useMakeNEARFtTransferCall.js +1 -1
  52. package/dist/hooks/useMakeQuote.js +1 -1
  53. package/dist/hooks/useMakeQuoteTransfer.js +1 -1
  54. package/dist/hooks/useMakeTransfer.js +1 -1
  55. package/dist/hooks/useMergedBalance.js +1 -1
  56. package/dist/hooks/useSwitchChain.js +1 -1
  57. package/dist/hooks/useTheme.js +1 -1
  58. package/dist/hooks/useTokenInputPair.js +1 -1
  59. package/dist/hooks/useTokens.js +1 -1
  60. package/dist/hooks/useTokensFiltered.js +1 -1
  61. package/dist/hooks/useTokensIntentsUnique.js +1 -1
  62. package/dist/index.js +1 -1
  63. package/dist/machine/effects/index.js +1 -1
  64. package/dist/machine/effects/useAlchemyBalanceEffect.js +1 -1
  65. package/dist/machine/effects/useBalancesUpdateEffect.js +1 -1
  66. package/dist/machine/effects/useMakeQuoteEffect.js +1 -1
  67. package/dist/machine/effects/useSelectedTokensEffect.js +1 -1
  68. package/dist/machine/effects/useSetTokenBalanceEffect.js +1 -1
  69. package/dist/machine/effects/useSetTokenIntentsTargetEffect.js +1 -1
  70. package/dist/machine/effects/useWalletConnEffect.js +1 -1
  71. package/dist/machine/events/index.js +1 -1
  72. package/dist/machine/events/tokenSelect.js +1 -1
  73. package/dist/machine/events/validateInputAndMoveTo.js +1 -1
  74. package/dist/machine/events/validateInputs.js +1 -1
  75. package/dist/machine/index.js +1 -1
  76. package/dist/machine/snap.js +1 -1
  77. package/dist/machine/subscriptions/checkers/isSendAddressAsConnected.js +1 -1
  78. package/dist/machine/subscriptions/index.js +1 -1
  79. package/dist/theme/ThemeProvider.js +1 -1
  80. package/dist/utils/intents/signers/near.js +1 -1
  81. package/dist/utils/intents/signers/privy.js +1 -1
  82. package/dist/utils/near/getNearNep141StorageBalance.js +1 -1
  83. package/dist/widgets/WidgetDeposit/WidgetDepositContent.js +1 -1
  84. package/dist/widgets/WidgetDeposit/WidgetDepositSkeleton.js +1 -1
  85. package/dist/widgets/WidgetDeposit/index.js +14 -15
  86. package/dist/widgets/WidgetDeposit/index.js.map +1 -1
  87. package/dist/widgets/WidgetSwap/WidgetSwapContent.js +1 -1
  88. package/dist/widgets/WidgetSwap/WidgetSwapSkeleton.js +1 -1
  89. package/dist/widgets/WidgetSwap/index.js +14 -15
  90. package/dist/widgets/WidgetSwap/index.js.map +1 -1
  91. package/dist/widgets/WidgetWithdraw/WidgetWithdrawContent.js +1 -1
  92. package/dist/widgets/WidgetWithdraw/WidgetWithdrawSkeleton.js +1 -1
  93. package/dist/widgets/WidgetWithdraw/index.js +12 -13
  94. package/dist/widgets/WidgetWithdraw/index.js.map +1 -1
  95. package/package.json +1 -1
  96. package/src/components/WidgetContainer.tsx +11 -1
  97. package/src/widgets/WidgetDeposit/index.tsx +7 -10
  98. package/src/widgets/WidgetSwap/index.tsx +7 -10
  99. package/src/widgets/WidgetWithdraw/index.tsx +7 -10
  100. package/dist/components/BaseContainer.d.ts +0 -2
  101. package/dist/components/BaseContainer.js +0 -23
  102. package/dist/components/BaseContainer.js.map +0 -1
  103. package/src/components/BaseContainer.tsx +0 -19
@@ -1,6 +1,6 @@
1
1
  import "valtio";
2
2
  import "./tokenSelectRotate.js";
3
- import { Z as p } from "../../config-CyBNYvb1.js";
3
+ import { Z as p } from "../../config-DAMaL9k2.js";
4
4
  import "../../utils/notReachable.js";
5
5
  export {
6
6
  p as tokenSelect
@@ -1,4 +1,4 @@
1
- import { O as m } from "../../config-CyBNYvb1.js";
1
+ import { O as m } from "../../config-DAMaL9k2.js";
2
2
  import "ethers";
3
3
  import "../machine.js";
4
4
  import "../guards/checks/isDryQuote.js";
@@ -3,7 +3,7 @@ import "../../utils/near/checkNearAccountExists.js";
3
3
  import "../../utils/checkers/isNotEmptyAmount.js";
4
4
  import "../../utils/checkers/isValidBigint.js";
5
5
  import "../../utils/near/isNearAddress.js";
6
- import { K as I, L as d, N as u } from "../../config-CyBNYvb1.js";
6
+ import { K as I, L as d, N as u } from "../../config-DAMaL9k2.js";
7
7
  import "../guards/index.js";
8
8
  import "../machine.js";
9
9
  import "../guards/checks/isBalanceSufficient.js";
@@ -1,4 +1,4 @@
1
- import { r as o, u as t, a as r, c as a, b as f } from "../config-CyBNYvb1.js";
1
+ import { r as o, u as t, a as r, c as a, b as f } from "../config-DAMaL9k2.js";
2
2
  import { guardStates as S } from "./guards/index.js";
3
3
  import { machine as n, moveTo as u } from "./machine.js";
4
4
  import { fireEvent as i } from "./events/utils/fireEvent.js";
@@ -2,7 +2,7 @@ import "valtio";
2
2
  import "derive-valtio";
3
3
  import "./computed/getIsNativeNearDeposit.js";
4
4
  import "./computed/getIsDirectTokenOnNearDeposit.js";
5
- import { u as h, a as b, b as d } from "../config-CyBNYvb1.js";
5
+ import { u as h, a as b, b as d } from "../config-DAMaL9k2.js";
6
6
  import "./machine.js";
7
7
  import "./guards/index.js";
8
8
  import "./computed/getUsdTradeDelta.js";
@@ -1,5 +1,5 @@
1
1
  import "valtio";
2
- import { V as o } from "../../../config-CyBNYvb1.js";
2
+ import { V as o } from "../../../config-DAMaL9k2.js";
3
3
  export {
4
4
  o as isSendAddressAsConnected
5
5
  };
@@ -5,7 +5,7 @@ import "./checkers/isOnlyErrorChanged.js";
5
5
  import "./checkers/isValidInitialState.js";
6
6
  import "./checkers/isWalletDisconnected.js";
7
7
  import "./checkers/isSendAddressForbidden.js";
8
- import { X as g, Y as u } from "../../config-CyBNYvb1.js";
8
+ import { X as g, Y as u } from "../../config-DAMaL9k2.js";
9
9
  import "./checkers/isAmountChangedFromQuote.js";
10
10
  import "ethers";
11
11
  import "../machine.js";
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "./createColorPalette.js";
4
- import { C as i, ad as p } from "../config-CyBNYvb1.js";
4
+ import { C as i, ad as p } from "../config-DAMaL9k2.js";
5
5
  export {
6
6
  i as ThemeContext,
7
7
  p as ThemeProvider
@@ -1,6 +1,6 @@
1
1
  import "../../../index-DEq3oXQF.js";
2
2
  import "@defuse-protocol/intents-sdk";
3
- import { a2 as o } from "../../../config-CyBNYvb1.js";
3
+ import { a2 as o } from "../../../config-DAMaL9k2.js";
4
4
  export {
5
5
  o as createNearWalletSigner
6
6
  };
@@ -1,5 +1,5 @@
1
1
  import "@defuse-protocol/internal-utils";
2
- import { a1 as i } from "../../../config-CyBNYvb1.js";
2
+ import { a1 as i } from "../../../config-DAMaL9k2.js";
3
3
  export {
4
4
  i as IntentSignerPrivy
5
5
  };
@@ -2,7 +2,7 @@ import "../../index-DEq3oXQF.js";
2
2
  import "zod";
3
3
  import "./decodeQueryResult.js";
4
4
  import "./rpc.js";
5
- import { $ as m } from "../../config-CyBNYvb1.js";
5
+ import { $ as m } from "../../config-DAMaL9k2.js";
6
6
  export {
7
7
  m as getNearNep141StorageBalance
8
8
  };
@@ -3,7 +3,7 @@ import { useState as b, useEffect as p, useCallback as R } from "react";
3
3
  import { useTokenModal as A } from "../../hooks/useTokenModal.js";
4
4
  import { useTypedTranslation as F } from "../../localisation.js";
5
5
  import { WidgetDepositSkeleton as S } from "./WidgetDepositSkeleton.js";
6
- import { b as q, u as j, y as N, n as O, c as Q, p as U, o as K, S as P } from "../../config-CyBNYvb1.js";
6
+ import { b as q, u as j, y as N, n as O, c as Q, p as U, o as K, S as P } from "../../config-DAMaL9k2.js";
7
7
  import "@tanstack/react-query";
8
8
  import "@headlessui/react";
9
9
  import "@material-symbols-svg/react-rounded/icons/chevron-left";
@@ -1,7 +1,7 @@
1
1
  import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
2
  import a from "clsx";
3
3
  import { SkeletonBox as s } from "../../components/SkeletonBox.js";
4
- import { y as i } from "../../config-CyBNYvb1.js";
4
+ import { y as i } from "../../config-DAMaL9k2.js";
5
5
  const p = () => {
6
6
  const { hideTokenInputHeadings: l } = i();
7
7
  return /* @__PURE__ */ o("div", { className: "w-full gap-sw-xl relative flex flex-col", children: [
@@ -1,23 +1,22 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { BaseContainer as m } from "../../components/BaseContainer.js";
3
- import { WidgetContainer as p } from "../../components/WidgetContainer.js";
4
- import { WidgetDepositContent as d } from "./WidgetDepositContent.js";
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { WidgetContainer as n } from "../../components/WidgetContainer.js";
3
+ import { WidgetDepositContent as p } from "./WidgetDepositContent.js";
5
4
  const g = ({
6
- HeaderComponent: t,
5
+ HeaderComponent: o,
7
6
  FooterComponent: i,
8
- isFullPage: r,
9
- className: e,
10
- ...n
11
- }) => /* @__PURE__ */ o(m, { children: /* @__PURE__ */ o(
12
- p,
7
+ isFullPage: e,
8
+ className: r,
9
+ ...m
10
+ }) => /* @__PURE__ */ t(
11
+ n,
13
12
  {
14
- className: e,
15
- isFullPage: r,
16
- HeaderComponent: t,
13
+ className: r,
14
+ isFullPage: e,
15
+ HeaderComponent: o,
17
16
  FooterComponent: i,
18
- children: /* @__PURE__ */ o(d, { ...n })
17
+ children: /* @__PURE__ */ t(p, { ...m })
19
18
  }
20
- ) });
19
+ );
21
20
  export {
22
21
  g as WidgetDeposit
23
22
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/widgets/WidgetDeposit/index.tsx"],"sourcesContent":["import { BaseContainer } from '../../components/BaseContainer';\nimport {\n WidgetContainer,\n WidgetContainerProps,\n} from '../../components/WidgetContainer';\nimport { Props, WidgetDepositContent } from './WidgetDepositContent';\n\nexport type WidgetDepositProps = Props & Omit<WidgetContainerProps, 'children'>;\n\nexport const WidgetDeposit = ({\n HeaderComponent,\n FooterComponent,\n isFullPage,\n className,\n ...widgetProps\n}: WidgetDepositProps) => (\n <BaseContainer>\n <WidgetContainer\n className={className}\n isFullPage={isFullPage}\n HeaderComponent={HeaderComponent}\n FooterComponent={FooterComponent}>\n <WidgetDepositContent {...widgetProps} />\n </WidgetContainer>\n </BaseContainer>\n);\n"],"names":["WidgetDeposit","HeaderComponent","FooterComponent","isFullPage","className","widgetProps","BaseContainer","jsx","WidgetContainer","WidgetDepositContent"],"mappings":";;;;AASO,MAAMA,IAAgB,CAAC;AAAA,EAC5B,iBAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,YAAAC;AAAA,EACA,WAAAC;AAAA,EACA,GAAGC;AACL,wBACGC,GAAA,EACC,UAAA,gBAAAC;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,WAAAJ;AAAA,IACA,YAAAD;AAAA,IACA,iBAAAF;AAAA,IACA,iBAAAC;AAAA,IACA,UAAA,gBAAAK,EAACE,GAAA,EAAsB,GAAGJ,EAAA,CAAa;AAAA,EAAA;AACzC,EAAA,CACF;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/widgets/WidgetDeposit/index.tsx"],"sourcesContent":["import {\n WidgetContainer,\n WidgetContainerProps,\n} from '../../components/WidgetContainer';\nimport { Props, WidgetDepositContent } from './WidgetDepositContent';\n\nexport type WidgetDepositProps = Props & Omit<WidgetContainerProps, 'children'>;\n\nexport const WidgetDeposit = ({\n HeaderComponent,\n FooterComponent,\n isFullPage,\n className,\n ...widgetProps\n}: WidgetDepositProps) => (\n <WidgetContainer\n className={className}\n isFullPage={isFullPage}\n HeaderComponent={HeaderComponent}\n FooterComponent={FooterComponent}>\n <WidgetDepositContent {...widgetProps} />\n </WidgetContainer>\n);\n"],"names":["WidgetDeposit","HeaderComponent","FooterComponent","isFullPage","className","widgetProps","jsx","WidgetContainer","WidgetDepositContent"],"mappings":";;;AAQO,MAAMA,IAAgB,CAAC;AAAA,EAC5B,iBAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,YAAAC;AAAA,EACA,WAAAC;AAAA,EACA,GAAGC;AACL,MACE,gBAAAC;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,WAAAH;AAAA,IACA,YAAAD;AAAA,IACA,iBAAAF;AAAA,IACA,iBAAAC;AAAA,IACA,UAAA,gBAAAI,EAACE,GAAA,EAAsB,GAAGH,EAAA,CAAa;AAAA,EAAA;AACzC;"}
@@ -3,7 +3,7 @@ import { useState as S, useEffect as w } from "react";
3
3
  import { useTokenModal as N } from "../../hooks/useTokenModal.js";
4
4
  import { WidgetSwapSkeleton as T } from "./WidgetSwapSkeleton.js";
5
5
  import { useTypedTranslation as O } from "../../localisation.js";
6
- import { b as Q, u as j, y as q, n as F, c as U, p as b, o as K, S as P } from "../../config-CyBNYvb1.js";
6
+ import { b as Q, u as j, y as q, n as F, c as U, p as b, o as K, S as P } from "../../config-DAMaL9k2.js";
7
7
  import "@tanstack/react-query";
8
8
  import "@headlessui/react";
9
9
  import "@material-symbols-svg/react-rounded/icons/chevron-left";
@@ -1,7 +1,7 @@
1
1
  import { jsxs as a, jsx as l } from "react/jsx-runtime";
2
2
  import o from "clsx";
3
3
  import { SkeletonBox as s } from "../../components/SkeletonBox.js";
4
- import { y as i } from "../../config-CyBNYvb1.js";
4
+ import { y as i } from "../../config-DAMaL9k2.js";
5
5
  const m = () => {
6
6
  const { hideTokenInputHeadings: e } = i();
7
7
  return /* @__PURE__ */ a("div", { className: "w-full gap-sw-lg relative flex flex-col", children: [
@@ -1,24 +1,23 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { BaseContainer as m } from "../../components/BaseContainer.js";
3
- import { WidgetContainer as p } from "../../components/WidgetContainer.js";
4
- import { WidgetSwapContent as a } from "./WidgetSwapContent.js";
5
- const s = ({
6
- HeaderComponent: r,
7
- FooterComponent: t,
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { WidgetContainer as n } from "../../components/WidgetContainer.js";
3
+ import { WidgetSwapContent as p } from "./WidgetSwapContent.js";
4
+ const g = ({
5
+ HeaderComponent: o,
6
+ FooterComponent: r,
8
7
  isFullPage: i,
9
8
  className: e,
10
- ...n
11
- }) => /* @__PURE__ */ o(m, { children: /* @__PURE__ */ o(
12
- p,
9
+ ...m
10
+ }) => /* @__PURE__ */ t(
11
+ n,
13
12
  {
14
13
  className: e,
15
14
  isFullPage: i,
16
- HeaderComponent: r,
17
- FooterComponent: t,
18
- children: /* @__PURE__ */ o(a, { ...n })
15
+ HeaderComponent: o,
16
+ FooterComponent: r,
17
+ children: /* @__PURE__ */ t(p, { ...m })
19
18
  }
20
- ) });
19
+ );
21
20
  export {
22
- s as WidgetSwap
21
+ g as WidgetSwap
23
22
  };
24
23
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/widgets/WidgetSwap/index.tsx"],"sourcesContent":["import { BaseContainer } from '../../components/BaseContainer';\nimport {\n WidgetContainer,\n WidgetContainerProps,\n} from '../../components/WidgetContainer';\nimport { Props, WidgetSwapContent } from './WidgetSwapContent';\n\nexport type WidgetSwapProps = Props & Omit<WidgetContainerProps, 'children'>;\n\nexport const WidgetSwap = ({\n HeaderComponent,\n FooterComponent,\n isFullPage,\n className,\n ...widgetProps\n}: WidgetSwapProps) => (\n <BaseContainer>\n <WidgetContainer\n className={className}\n isFullPage={isFullPage}\n HeaderComponent={HeaderComponent}\n FooterComponent={FooterComponent}>\n <WidgetSwapContent {...widgetProps} />\n </WidgetContainer>\n </BaseContainer>\n);\n"],"names":["WidgetSwap","HeaderComponent","FooterComponent","isFullPage","className","widgetProps","BaseContainer","jsx","WidgetContainer","WidgetSwapContent"],"mappings":";;;;AASO,MAAMA,IAAa,CAAC;AAAA,EACzB,iBAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,YAAAC;AAAA,EACA,WAAAC;AAAA,EACA,GAAGC;AACL,wBACGC,GAAA,EACC,UAAA,gBAAAC;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,WAAAJ;AAAA,IACA,YAAAD;AAAA,IACA,iBAAAF;AAAA,IACA,iBAAAC;AAAA,IACA,UAAA,gBAAAK,EAACE,GAAA,EAAmB,GAAGJ,EAAA,CAAa;AAAA,EAAA;AACtC,EAAA,CACF;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/widgets/WidgetSwap/index.tsx"],"sourcesContent":["import {\n WidgetContainer,\n WidgetContainerProps,\n} from '../../components/WidgetContainer';\nimport { Props, WidgetSwapContent } from './WidgetSwapContent';\n\nexport type WidgetSwapProps = Props & Omit<WidgetContainerProps, 'children'>;\n\nexport const WidgetSwap = ({\n HeaderComponent,\n FooterComponent,\n isFullPage,\n className,\n ...widgetProps\n}: WidgetSwapProps) => (\n <WidgetContainer\n className={className}\n isFullPage={isFullPage}\n HeaderComponent={HeaderComponent}\n FooterComponent={FooterComponent}>\n <WidgetSwapContent {...widgetProps} />\n </WidgetContainer>\n);\n"],"names":["WidgetSwap","HeaderComponent","FooterComponent","isFullPage","className","widgetProps","jsx","WidgetContainer","WidgetSwapContent"],"mappings":";;;AAQO,MAAMA,IAAa,CAAC;AAAA,EACzB,iBAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,YAAAC;AAAA,EACA,WAAAC;AAAA,EACA,GAAGC;AACL,MACE,gBAAAC;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,WAAAH;AAAA,IACA,YAAAD;AAAA,IACA,iBAAAF;AAAA,IACA,iBAAAC;AAAA,IACA,UAAA,gBAAAI,EAACE,GAAA,EAAmB,GAAGH,EAAA,CAAa;AAAA,EAAA;AACtC;"}
@@ -3,7 +3,7 @@ import { useState as _, useEffect as b } from "react";
3
3
  import { useTokenModal as N } from "../../hooks/useTokenModal.js";
4
4
  import { WidgetWithdrawSkeleton as y } from "./WidgetWithdrawSkeleton.js";
5
5
  import { useTypedTranslation as O } from "../../localisation.js";
6
- import { b as Q, u as j, y as q, n as F, c as U, p as T, o as K, S as P } from "../../config-CyBNYvb1.js";
6
+ import { b as Q, u as j, y as q, n as F, c as U, p as T, o as K, S as P } from "../../config-DAMaL9k2.js";
7
7
  import "@tanstack/react-query";
8
8
  import "@headlessui/react";
9
9
  import "@material-symbols-svg/react-rounded/icons/chevron-left";
@@ -1,7 +1,7 @@
1
1
  import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
2
  import o from "clsx";
3
3
  import { SkeletonBox as l } from "../../components/SkeletonBox.js";
4
- import { y as x } from "../../config-CyBNYvb1.js";
4
+ import { y as x } from "../../config-DAMaL9k2.js";
5
5
  const p = () => {
6
6
  const { hideTokenInputHeadings: s } = x();
7
7
  return /* @__PURE__ */ a("div", { className: "w-full gap-sw-xl relative flex flex-col", children: [
@@ -1,24 +1,23 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { BaseContainer as m } from "../../components/BaseContainer.js";
3
- import { WidgetContainer as d } from "../../components/WidgetContainer.js";
4
- import { WidgetWithdrawContent as a } from "./WidgetWithdrawContent.js";
5
- const c = ({
6
- HeaderComponent: t,
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { WidgetContainer as m } from "../../components/WidgetContainer.js";
3
+ import { WidgetWithdrawContent as n } from "./WidgetWithdrawContent.js";
4
+ const f = ({
5
+ HeaderComponent: r,
7
6
  FooterComponent: i,
8
7
  isFullPage: o,
9
8
  className: e,
10
- ...n
11
- }) => /* @__PURE__ */ r(m, { children: /* @__PURE__ */ r(
12
- d,
9
+ ...d
10
+ }) => /* @__PURE__ */ t(
11
+ m,
13
12
  {
14
13
  className: e,
15
14
  isFullPage: o,
16
- HeaderComponent: t,
15
+ HeaderComponent: r,
17
16
  FooterComponent: i,
18
- children: /* @__PURE__ */ r(a, { ...n })
17
+ children: /* @__PURE__ */ t(n, { ...d })
19
18
  }
20
- ) });
19
+ );
21
20
  export {
22
- c as WidgetWithdraw
21
+ f as WidgetWithdraw
23
22
  };
24
23
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/widgets/WidgetWithdraw/index.tsx"],"sourcesContent":["import { BaseContainer } from '../../components/BaseContainer';\nimport {\n WidgetContainer,\n WidgetContainerProps,\n} from '../../components/WidgetContainer';\nimport { Props, WidgetWithdrawContent } from './WidgetWithdrawContent';\n\nexport type WidgetWithdrawProps = Props &\n Omit<WidgetContainerProps, 'children'>;\n\nexport const WidgetWithdraw = ({\n HeaderComponent,\n FooterComponent,\n isFullPage,\n className,\n ...widgetProps\n}: WidgetWithdrawProps) => (\n <BaseContainer>\n <WidgetContainer\n className={className}\n isFullPage={isFullPage}\n HeaderComponent={HeaderComponent}\n FooterComponent={FooterComponent}>\n <WidgetWithdrawContent {...widgetProps} />\n </WidgetContainer>\n </BaseContainer>\n);\n"],"names":["WidgetWithdraw","HeaderComponent","FooterComponent","isFullPage","className","widgetProps","BaseContainer","jsx","WidgetContainer","WidgetWithdrawContent"],"mappings":";;;;AAUO,MAAMA,IAAiB,CAAC;AAAA,EAC7B,iBAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,YAAAC;AAAA,EACA,WAAAC;AAAA,EACA,GAAGC;AACL,wBACGC,GAAA,EACC,UAAA,gBAAAC;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,WAAAJ;AAAA,IACA,YAAAD;AAAA,IACA,iBAAAF;AAAA,IACA,iBAAAC;AAAA,IACA,UAAA,gBAAAK,EAACE,GAAA,EAAuB,GAAGJ,EAAA,CAAa;AAAA,EAAA;AAC1C,EAAA,CACF;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/widgets/WidgetWithdraw/index.tsx"],"sourcesContent":["import {\n WidgetContainer,\n WidgetContainerProps,\n} from '../../components/WidgetContainer';\nimport { Props, WidgetWithdrawContent } from './WidgetWithdrawContent';\n\nexport type WidgetWithdrawProps = Props &\n Omit<WidgetContainerProps, 'children'>;\n\nexport const WidgetWithdraw = ({\n HeaderComponent,\n FooterComponent,\n isFullPage,\n className,\n ...widgetProps\n}: WidgetWithdrawProps) => (\n <WidgetContainer\n className={className}\n isFullPage={isFullPage}\n HeaderComponent={HeaderComponent}\n FooterComponent={FooterComponent}>\n <WidgetWithdrawContent {...widgetProps} />\n </WidgetContainer>\n);\n"],"names":["WidgetWithdraw","HeaderComponent","FooterComponent","isFullPage","className","widgetProps","jsx","WidgetContainer","WidgetWithdrawContent"],"mappings":";;;AASO,MAAMA,IAAiB,CAAC;AAAA,EAC7B,iBAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,YAAAC;AAAA,EACA,WAAAC;AAAA,EACA,GAAGC;AACL,MACE,gBAAAC;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,WAAAH;AAAA,IACA,YAAAD;AAAA,IACA,iBAAAF;AAAA,IACA,iBAAAC;AAAA,IACA,UAAA,gBAAAI,EAACE,GAAA,EAAuB,GAAGH,EAAA,CAAa;AAAA,EAAA;AAC1C;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurora-is-near/intents-swap-widget",
3
- "version": "3.21.0",
3
+ "version": "3.21.1",
4
4
  "description": "Provides components and hooks to build your own Intents swap widget",
5
5
  "author": "Maksim Vashchuk",
6
6
  "license": "MIT",
@@ -45,7 +45,17 @@ export const WidgetContainer = ({
45
45
  );
46
46
 
47
47
  if (!isFullPage) {
48
- return jsx;
48
+ return (
49
+ <div
50
+ className={cn(
51
+ 'relative w-auto mx-auto',
52
+ theme?.showContainer
53
+ ? 'max-w-[496px] sm:w-[496px] p-csw-2xl bg-sw-container rounded-sw-lg'
54
+ : 'max-w-[456px] sm:w-[456px]',
55
+ )}>
56
+ {jsx}
57
+ </div>
58
+ );
49
59
  }
50
60
 
51
61
  return (
@@ -1,4 +1,3 @@
1
- import { BaseContainer } from '../../components/BaseContainer';
2
1
  import {
3
2
  WidgetContainer,
4
3
  WidgetContainerProps,
@@ -14,13 +13,11 @@ export const WidgetDeposit = ({
14
13
  className,
15
14
  ...widgetProps
16
15
  }: WidgetDepositProps) => (
17
- <BaseContainer>
18
- <WidgetContainer
19
- className={className}
20
- isFullPage={isFullPage}
21
- HeaderComponent={HeaderComponent}
22
- FooterComponent={FooterComponent}>
23
- <WidgetDepositContent {...widgetProps} />
24
- </WidgetContainer>
25
- </BaseContainer>
16
+ <WidgetContainer
17
+ className={className}
18
+ isFullPage={isFullPage}
19
+ HeaderComponent={HeaderComponent}
20
+ FooterComponent={FooterComponent}>
21
+ <WidgetDepositContent {...widgetProps} />
22
+ </WidgetContainer>
26
23
  );
@@ -1,4 +1,3 @@
1
- import { BaseContainer } from '../../components/BaseContainer';
2
1
  import {
3
2
  WidgetContainer,
4
3
  WidgetContainerProps,
@@ -14,13 +13,11 @@ export const WidgetSwap = ({
14
13
  className,
15
14
  ...widgetProps
16
15
  }: WidgetSwapProps) => (
17
- <BaseContainer>
18
- <WidgetContainer
19
- className={className}
20
- isFullPage={isFullPage}
21
- HeaderComponent={HeaderComponent}
22
- FooterComponent={FooterComponent}>
23
- <WidgetSwapContent {...widgetProps} />
24
- </WidgetContainer>
25
- </BaseContainer>
16
+ <WidgetContainer
17
+ className={className}
18
+ isFullPage={isFullPage}
19
+ HeaderComponent={HeaderComponent}
20
+ FooterComponent={FooterComponent}>
21
+ <WidgetSwapContent {...widgetProps} />
22
+ </WidgetContainer>
26
23
  );
@@ -1,4 +1,3 @@
1
- import { BaseContainer } from '../../components/BaseContainer';
2
1
  import {
3
2
  WidgetContainer,
4
3
  WidgetContainerProps,
@@ -15,13 +14,11 @@ export const WidgetWithdraw = ({
15
14
  className,
16
15
  ...widgetProps
17
16
  }: WidgetWithdrawProps) => (
18
- <BaseContainer>
19
- <WidgetContainer
20
- className={className}
21
- isFullPage={isFullPage}
22
- HeaderComponent={HeaderComponent}
23
- FooterComponent={FooterComponent}>
24
- <WidgetWithdrawContent {...widgetProps} />
25
- </WidgetContainer>
26
- </BaseContainer>
17
+ <WidgetContainer
18
+ className={className}
19
+ isFullPage={isFullPage}
20
+ HeaderComponent={HeaderComponent}
21
+ FooterComponent={FooterComponent}>
22
+ <WidgetWithdrawContent {...widgetProps} />
23
+ </WidgetContainer>
27
24
  );
@@ -1,2 +0,0 @@
1
- import { PropsWithChildren } from 'react';
2
- export declare const BaseContainer: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
@@ -1,23 +0,0 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { useTheme as t } from "../hooks/useTheme.js";
3
- import "../constants/chains.js";
4
- import "viem";
5
- import "ethers";
6
- import { cn as e } from "../utils/cn.js";
7
- const w = ({ children: o }) => {
8
- const m = t();
9
- return /* @__PURE__ */ r(
10
- "div",
11
- {
12
- className: e(
13
- "relative w-auto mx-auto",
14
- m?.showContainer ? "max-w-[496px] sm:w-[496px] p-csw-2xl bg-sw-container rounded-sw-lg" : "max-w-[456px] sm:w-[456px]"
15
- ),
16
- children: o
17
- }
18
- );
19
- };
20
- export {
21
- w as BaseContainer
22
- };
23
- //# sourceMappingURL=BaseContainer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BaseContainer.js","sources":["../../src/components/BaseContainer.tsx"],"sourcesContent":["import { PropsWithChildren } from 'react';\nimport { useTheme } from '../hooks/useTheme';\nimport { cn } from '../utils';\n\nexport const BaseContainer = ({ children }: PropsWithChildren) => {\n const theme = useTheme();\n\n return (\n <div\n className={cn(\n 'relative w-auto mx-auto',\n theme?.showContainer\n ? 'max-w-[496px] sm:w-[496px] p-csw-2xl bg-sw-container rounded-sw-lg'\n : 'max-w-[456px] sm:w-[456px]',\n )}>\n {children}\n </div>\n );\n};\n"],"names":["BaseContainer","children","theme","useTheme","jsx","cn"],"mappings":";;;;;;AAIO,MAAMA,IAAgB,CAAC,EAAE,UAAAC,QAAkC;AAChE,QAAMC,IAAQC,EAAA;AAEd,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC;AAAA,QACT;AAAA,QACAH,GAAO,gBACH,uEACA;AAAA,MAAA;AAAA,MAEL,UAAAD;AAAA,IAAA;AAAA,EAAA;AAGP;"}
@@ -1,19 +0,0 @@
1
- import { PropsWithChildren } from 'react';
2
- import { useTheme } from '../hooks/useTheme';
3
- import { cn } from '../utils';
4
-
5
- export const BaseContainer = ({ children }: PropsWithChildren) => {
6
- const theme = useTheme();
7
-
8
- return (
9
- <div
10
- className={cn(
11
- 'relative w-auto mx-auto',
12
- theme?.showContainer
13
- ? 'max-w-[496px] sm:w-[496px] p-csw-2xl bg-sw-container rounded-sw-lg'
14
- : 'max-w-[456px] sm:w-[456px]',
15
- )}>
16
- {children}
17
- </div>
18
- );
19
- };