@lifi/widget 3.12.3-beta.0 → 3.12.3

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 (58) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/dist/esm/components/ActiveTransactions/ActiveTransactions.style.d.ts +2 -2
  3. package/dist/esm/components/AmountInput/AmountInput.js +1 -7
  4. package/dist/esm/components/AmountInput/AmountInput.js.map +1 -1
  5. package/dist/esm/components/AmountInput/AmountInput.style.d.ts +1 -1
  6. package/dist/esm/components/AmountInput/AmountInputAdornment.style.d.ts +1 -1
  7. package/dist/esm/components/AppContainer.d.ts +1 -1
  8. package/dist/esm/components/Avatar/Avatar.style.d.ts +1 -1
  9. package/dist/esm/components/Avatar/SmallAvatar.d.ts +1 -1
  10. package/dist/esm/components/ButtonTertiary.d.ts +1 -1
  11. package/dist/esm/components/Card/CardHeader.d.ts +1 -1
  12. package/dist/esm/components/Card/InputCard.d.ts +1 -1
  13. package/dist/esm/components/ContractComponent/NFT/NFT.style.d.ts +1 -1
  14. package/dist/esm/components/Header/Header.style.d.ts +2 -2
  15. package/dist/esm/components/Header/SettingsButton.style.d.ts +1 -1
  16. package/dist/esm/components/ListItem/ListItem.d.ts +1 -1
  17. package/dist/esm/components/PageContainer.d.ts +1 -1
  18. package/dist/esm/components/Routes/Routes.js +2 -7
  19. package/dist/esm/components/Routes/Routes.js.map +1 -1
  20. package/dist/esm/components/Routes/RoutesExpanded.js +4 -7
  21. package/dist/esm/components/Routes/RoutesExpanded.js.map +1 -1
  22. package/dist/esm/components/SelectTokenButton/SelectTokenButton.style.d.ts +1 -1
  23. package/dist/esm/components/SendToWallet/SendToWallet.style.d.ts +1 -1
  24. package/dist/esm/components/SendToWallet/SendToWalletButton.js +2 -5
  25. package/dist/esm/components/SendToWallet/SendToWalletButton.js.map +1 -1
  26. package/dist/esm/components/Skeleton/WidgetSkeleton.style.d.ts +3 -3
  27. package/dist/esm/components/StepActions/StepActions.style.d.ts +1 -1
  28. package/dist/esm/components/StepDivider/StepDivider.style.d.ts +1 -1
  29. package/dist/esm/components/Tabs/Tabs.style.d.ts +1 -1
  30. package/dist/esm/components/TokenList/TokenList.style.d.ts +1 -1
  31. package/dist/esm/config/version.d.ts +1 -1
  32. package/dist/esm/config/version.js +1 -1
  33. package/dist/esm/config/version.js.map +1 -1
  34. package/dist/esm/hooks/useGasRefuel.js +9 -6
  35. package/dist/esm/hooks/useGasRefuel.js.map +1 -1
  36. package/dist/esm/hooks/useIsContractAddress.js.map +1 -1
  37. package/dist/esm/i18n/en.json +0 -2
  38. package/dist/esm/index.d.ts +1 -1
  39. package/dist/esm/index.js +1 -1
  40. package/dist/esm/index.js.map +1 -1
  41. package/dist/esm/pages/MainPage/MainPage.js +1 -2
  42. package/dist/esm/pages/MainPage/MainPage.js.map +1 -1
  43. package/dist/esm/pages/MainPage/MainPage.style.d.ts +1 -1
  44. package/dist/esm/pages/SendToWallet/SendToWalletPage.style.d.ts +4 -4
  45. package/dist/esm/pages/SettingsPage/SettingsCard/SettingCard.style.d.ts +1 -1
  46. package/package.json +19 -19
  47. package/src/components/AmountInput/AmountInput.tsx +1 -9
  48. package/src/components/Routes/Routes.tsx +4 -10
  49. package/src/components/Routes/RoutesExpanded.tsx +4 -9
  50. package/src/components/SendToWallet/SendToWalletButton.tsx +4 -14
  51. package/src/config/version.ts +1 -1
  52. package/src/hooks/useGasRefuel.ts +18 -6
  53. package/src/hooks/useIsContractAddress.ts +0 -1
  54. package/src/i18n/en.json +0 -2
  55. package/src/i18n/i18next.d.ts +8 -4
  56. package/src/index.ts +1 -1
  57. package/src/pages/MainPage/MainPage.tsx +8 -9
  58. package/tsconfig.json +2 -4
@@ -10,15 +10,18 @@ export const useGasRefuel = () => {
10
10
  const [fromChainId, fromTokenAddress, toChainId, toAddress] = useFieldValues('fromChain', 'fromToken', 'toChain', 'toAddress');
11
11
  const toChain = getChainById(toChainId);
12
12
  const fromChain = getChainById(fromChainId);
13
- const { account: toAccount } = useAccount({ chainType: toChain?.chainType });
14
- const effectiveToAddress = toAddress || toAccount?.address;
15
- const isToContractAddress = useIsContractAddress(effectiveToAddress, toChainId, toChain?.chainType);
16
- const { token: destinationNativeToken } = useTokenBalance(effectiveToAddress, toChainId ? toChain?.nativeToken : undefined);
13
+ const { accounts } = useAccount();
14
+ const fromAccount = accounts.find((account) => account.chainType === fromChain?.chainType);
15
+ const toAccount = accounts.find((account) => account.chainType === toChain?.chainType);
16
+ const isFromContractAddress = useIsContractAddress(fromAccount?.address, fromChainId, fromAccount?.chainType);
17
+ const isToContractAddress = useIsContractAddress(toAddress, toChainId, toChain?.chainType);
18
+ const { token: destinationNativeToken } = useTokenBalance(toAddress || toAccount?.address, toChainId ? toChain?.nativeToken : undefined);
17
19
  const { data: gasRecommendation, isLoading } = useGasRecommendation(toChainId, fromChainId, fromTokenAddress);
18
20
  // When we bridge between ecosystems we need to be sure toAddress is set
19
21
  const isChainTypeSatisfied = fromChain?.chainType !== toChain?.chainType ? Boolean(toAddress) : true;
20
- // We should not refuel to the contract address
21
- const isToAddressSatisfied = effectiveToAddress && !isToContractAddress;
22
+ const isToAddressSatisfied = isFromContractAddress
23
+ ? toAddress && toAddress !== fromAccount?.address && !isToContractAddress
24
+ : true;
22
25
  const enabled = useMemo(() => {
23
26
  if (
24
27
  // We don't allow same chain refuel.
@@ -1 +1 @@
1
- {"version":3,"file":"useGasRefuel.js","sourceRoot":"","sources":["../../../src/hooks/useGasRefuel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAC/B,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAA;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,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
1
- {"version":3,"file":"useIsContractAddress.js","sourceRoot":"","sources":["../../../src/hooks/useIsContractAddress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAErC,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AAEnC,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAClC,OAAgB,EAChB,OAAgB,EAChB,SAAqB,EACrB,EAAE;IACF,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,WAAW,CAAC;QACzC,OAAO,EAAE,OAAkB;QAC3B,OAAO,EAAE,OAAO;QAChB,KAAK,EAAE;YACL,eAAe,EAAE,MAAO;YACxB,SAAS,EAAE,MAAO;YAClB,OAAO,EAAE,OAAO,CAAC,SAAS,KAAK,SAAS,CAAC,GAAG,IAAI,OAAO,CAAC;SACzD;KACF,CAAC,CAAA;IAEF,MAAM,iBAAiB,GAAG,CAAC,CAAC,YAAY,CAAA;IACxC,OAAO,iBAAiB,CAAA;AAC1B,CAAC,CAAA"}
1
+ {"version":3,"file":"useIsContractAddress.js","sourceRoot":"","sources":["../../../src/hooks/useIsContractAddress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAErC,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AAEnC,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAClC,OAAgB,EAChB,OAAgB,EAChB,SAAqB,EACrB,EAAE;IACF,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,WAAW,CAAC;QACzC,OAAO,EAAE,OAAkB;QAC3B,OAAO,EAAE,OAAO;QAChB,KAAK,EAAE;YACL,eAAe,EAAE,MAAO;YACxB,SAAS,EAAE,MAAO;YAClB,OAAO,EAAE,OAAO,CAAC,SAAS,KAAK,SAAS,CAAC,GAAG,IAAI,OAAO,CAAC;SACzD;KACF,CAAC,CAAA;IACF,MAAM,iBAAiB,GAAG,CAAC,CAAC,YAAY,CAAA;IACxC,OAAO,iBAAiB,CAAA;AAC1B,CAAC,CAAA"}
@@ -52,14 +52,12 @@
52
52
  },
53
53
  "header": {
54
54
  "activeTransactions": "Active transactions",
55
- "amount": "Amount",
56
55
  "bookmarkedWallets": "Bookmarked wallets",
57
56
  "bridge": "Bridge",
58
57
  "checkout": "Checkout",
59
58
  "checkoutDetails": "Checkout details",
60
59
  "deposit": "Deposit",
61
60
  "depositDetails": "Deposit details",
62
- "depositTo": "Deposit to",
63
61
  "exchange": "Exchange",
64
62
  "from": "Exchange from",
65
63
  "gas": "Gas",
@@ -1,5 +1,5 @@
1
1
  export type * from '@lifi/sdk';
2
- export { ChainType, ChainId, CoinKey } from '@lifi/sdk';
2
+ export { ChainType, ChainId } from '@lifi/sdk';
3
3
  export { App as LiFiWidget } from './App.js';
4
4
  export type { WidgetDrawer } from './AppDrawer.js';
5
5
  export * from './components/ContractComponent/ItemPrice.js';
package/dist/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { ChainType, ChainId, CoinKey } from '@lifi/sdk';
1
+ export { ChainType, ChainId } from '@lifi/sdk';
2
2
  export { App as LiFiWidget } from './App.js';
3
3
  export * from './components/ContractComponent/ItemPrice.js';
4
4
  export * from './components/ContractComponent/NFT/NFT.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACvD,OAAO,EAAE,GAAG,IAAI,UAAU,EAAE,MAAM,UAAU,CAAA;AAE5C,cAAc,6CAA6C,CAAA;AAC3D,cAAc,2CAA2C,CAAA;AACzD,cAAc,+CAA+C,CAAA;AAC7D,cAAc,6CAA6C,CAAA;AAC3D,cAAc,yCAAyC,CAAA;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,cAAc,qBAAqB,CAAA;AACnC,OAAO,EAAE,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,CAAA;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAChE,cAAc,6BAA6B,CAAA;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAChD,cAAc,sBAAsB,CAAA;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACtD,cAAc,mBAAmB,CAAA;AAEjC,cAAc,mBAAmB,CAAA;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA"}
@@ -29,7 +29,6 @@ export const MainPage = () => {
29
29
  ? t('header.gas')
30
30
  : t('header.exchange');
31
31
  useHeader(title);
32
- const marginSx = { marginBottom: 2 };
33
- return (_jsxs(PageContainer, { children: [_jsx(ActiveTransactions, { sx: marginSx }), custom ? (_jsx(ContractComponent, { sx: marginSx, children: contractComponent })) : null, _jsx(SelectChainAndToken, { mb: 2 }), !custom || subvariantOptions?.custom === 'deposit' ? (_jsx(AmountInput, { formType: "from", sx: marginSx })) : null, !wideVariant ? _jsx(Routes, { sx: marginSx }) : null, _jsx(SendToWalletButton, { sx: marginSx }), _jsx(GasRefuelMessage, { mb: 2 }), _jsx(MainMessages, { mb: 2 }), _jsxs(Box, { display: "flex", mb: showPoweredBy ? 1 : 3, gap: 1.5, children: [_jsx(ReviewButton, {}), _jsx(SendToWalletExpandButton, {})] }), showPoweredBy ? _jsx(PoweredBy, {}) : null] }));
32
+ return (_jsxs(PageContainer, { children: [_jsx(ActiveTransactions, { sx: { marginBottom: 2 } }), custom ? (_jsx(ContractComponent, { sx: { marginBottom: 2 }, children: contractComponent })) : null, _jsx(SelectChainAndToken, { mb: 2 }), !custom ? (_jsx(AmountInput, { formType: "from", sx: { marginBottom: 2 } })) : null, !wideVariant ? _jsx(Routes, { sx: { marginBottom: 2 } }) : null, _jsx(SendToWalletButton, { sx: { marginBottom: 2 } }), _jsx(GasRefuelMessage, { mb: 2 }), _jsx(MainMessages, { mb: 2 }), _jsxs(Box, { display: "flex", mb: showPoweredBy ? 1 : 3, gap: 1.5, children: [_jsx(ReviewButton, {}), _jsx(SendToWalletExpandButton, {})] }), showPoweredBy ? _jsx(PoweredBy, {}) : null] }));
34
33
  };
35
34
  //# sourceMappingURL=MainPage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MainPage.js","sourceRoot":"","sources":["../../../../src/pages/MainPage/MainPage.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAA;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,2DAA2D,CAAA;AAC9F,OAAO,EAAE,WAAW,EAAE,MAAM,6CAA6C,CAAA;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yDAAyD,CAAA;AAC3F,OAAO,EAAE,gBAAgB,EAAE,MAAM,iDAAiD,CAAA;AAClF,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAA;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAA;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAA;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,qDAAqD,CAAA;AACxF,OAAO,EAAE,wBAAwB,EAAE,MAAM,2DAA2D,CAAA;AACpG,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAA;AAClF,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAA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E,YAAY,EAAE,CAAC,EAAE,YACvC,iBAAiB,GACA,CACrB,CAAC,CAAC,CAAC,IAAI,EACR,KAAC,mBAAmB,IAAC,EAAE,EAAE,CAAC,GAAI,EAC7B,CAAC,MAAM,CAAC,CAAC,CAAC,CACT,KAAC,WAAW,IAAC,QAAQ,EAAC,MAAM,EAAC,EAAE,EAAE,EAAE,YAAY,EAAE,CAAC,EAAE,GAAI,CACzD,CAAC,CAAC,CAAC,IAAI,EACP,CAAC,WAAW,CAAC,CAAC,CAAC,KAAC,MAAM,IAAC,EAAE,EAAE,EAAE,YAAY,EAAE,CAAC,EAAE,GAAI,CAAC,CAAC,CAAC,IAAI,EAC1D,KAAC,kBAAkB,IAAC,EAAE,EAAE,EAAE,YAAY,EAAE,CAAC,EAAE,GAAI,EAC/C,KAAC,gBAAgB,IAAC,EAAE,EAAE,CAAC,GAAI,EAC3B,KAAC,YAAY,IAAC,EAAE,EAAE,CAAC,GAAI,EACvB,MAAC,GAAG,IAAC,OAAO,EAAC,MAAM,EAAC,EAAE,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,aACrD,KAAC,YAAY,KAAG,EAChB,KAAC,wBAAwB,KAAG,IACxB,EACL,aAAa,CAAC,CAAC,CAAC,KAAC,SAAS,KAAG,CAAC,CAAC,CAAC,IAAI,IACvB,CACjB,CAAA;AACH,CAAC,CAAA"}
@@ -1,3 +1,3 @@
1
1
  export declare const FormContainer: import("@emotion/styled").StyledComponent<import("@mui/material").ContainerOwnProps & import("@mui/material/OverridableComponent.js").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2
2
  ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
3
- }, "fixed" | "maxWidth" | "children" | "sx" | "style" | "className" | "classes" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
3
+ }, "maxWidth" | "children" | "sx" | "style" | "className" | "fixed" | "classes" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -5,16 +5,16 @@ export declare const BookmarkInputFields: import("@emotion/styled").StyledCompon
5
5
  }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
6
6
  export declare const SendToWalletPageContainer: import("@emotion/styled").StyledComponent<import("@mui/material").ContainerOwnProps & import("@mui/material/OverridableComponent.js").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
7
7
  ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
8
- }, "fixed" | "maxWidth" | "children" | "sx" | "style" | "className" | "classes" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & PageContainerProps, {}, {}>;
8
+ }, "maxWidth" | "children" | "sx" | "style" | "className" | "fixed" | "classes" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & PageContainerProps, {}, {}>;
9
9
  interface FullHeightAdjustablePageContainerProps extends PageContainerProps {
10
10
  enableFullHeight?: boolean;
11
11
  }
12
12
  export declare const FullHeightAdjustablePageContainer: import("@emotion/styled").StyledComponent<import("@mui/material").ContainerOwnProps & import("@mui/material/OverridableComponent.js").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
13
13
  ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
14
- }, "fixed" | "maxWidth" | "children" | "sx" | "style" | "className" | "classes" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & PageContainerProps & FullHeightAdjustablePageContainerProps, {}, {}>;
14
+ }, "maxWidth" | "children" | "sx" | "style" | "className" | "fixed" | "classes" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & PageContainerProps & FullHeightAdjustablePageContainerProps, {}, {}>;
15
15
  export declare const SendToWalletCard: import("@emotion/styled").StyledComponent<Pick<import("@mui/material").CardOwnProps & import("@mui/material/OverridableComponent.js").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
16
16
  ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
17
- }, "children" | "sx" | "style" | "className" | "elevation" | "classes" | "variant" | "square" | "raised"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & import("../../components/Card/Card.js").CardProps, "title" | "theme" | "color" | "content" | "translate" | "children" | "component" | "ref" | "sx" | "slot" | "style" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "type" | "elevation" | "as" | "classes" | "variant" | "square" | "raised" | "selectionColor" | "indented"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
17
+ }, "children" | "sx" | "style" | "className" | "elevation" | "classes" | "variant" | "square" | "raised"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & import("../../components/Card/Card.js").CardProps, "color" | "content" | "translate" | "children" | "component" | "ref" | "sx" | "slot" | "style" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "type" | "elevation" | "as" | "classes" | "variant" | "theme" | "square" | "raised" | "selectionColor" | "indented"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
18
18
  export declare const SendToWalletSheetContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
19
19
  ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
20
20
  }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -23,7 +23,7 @@ export declare const SendToWalletButtonRow: import("@emotion/styled").StyledComp
23
23
  }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
24
24
  export declare const SendToWalletIconButton: import("@emotion/styled").StyledComponent<import("@mui/lab").LoadingButtonOwnProps & Omit<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes">, "classes"> & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent.js").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
25
25
  ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
26
- }, "color" | "children" | "sx" | "style" | "className" | "tabIndex" | "href" | "disabled" | "action" | "loading" | "size" | "classes" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "startIcon" | "loadingIndicator" | "loadingPosition"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
26
+ }, "color" | "children" | "sx" | "style" | "className" | "tabIndex" | "href" | "disabled" | "action" | "loading" | "size" | "classes" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "disableElevation" | "endIcon" | "fullWidth" | "startIcon" | "loadingIndicator" | "loadingPosition"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
27
27
  export declare const IconContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
28
28
  ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
29
29
  }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -3,4 +3,4 @@ export declare const SettingsList: import("@emotion/styled").StyledComponent<imp
3
3
  }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
4
4
  export declare const Badge: import("@emotion/styled").StyledComponent<import("@mui/material").BadgeOwnProps & import("@mui/material/OverridableComponent.js").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
5
5
  ref?: ((instance: HTMLSpanElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLSpanElement> | null | undefined;
6
- }, "max" | "color" | "children" | "sx" | "style" | "className" | "classes" | "variant" | "slots" | "slotProps" | "componentsProps" | "anchorOrigin" | "badgeContent" | "components" | "invisible" | "overlap" | "showZero"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
6
+ }, "color" | "children" | "sx" | "style" | "className" | "max" | "classes" | "variant" | "slots" | "slotProps" | "components" | "componentsProps" | "invisible" | "anchorOrigin" | "badgeContent" | "overlap" | "showZero"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifi/widget",
3
- "version": "3.12.3-beta.0",
3
+ "version": "3.12.3",
4
4
  "description": "LI.FI Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.",
5
5
  "type": "module",
6
6
  "main": "./dist/esm/index.js",
@@ -30,33 +30,33 @@
30
30
  "lifi"
31
31
  ],
32
32
  "dependencies": {
33
- "@bigmi/client": "^0.0.4",
34
- "@bigmi/core": "^0.0.4",
35
- "@bigmi/react": "^0.0.4",
36
- "@emotion/react": "^11.13.3",
37
- "@emotion/styled": "^11.13.0",
38
- "@lifi/sdk": "^3.4.1",
39
- "@mui/icons-material": "^5.16.7",
40
- "@mui/lab": "^5.0.0-alpha.173",
41
- "@mui/material": "^5.16.7",
42
- "@mui/system": "^5.16.7",
33
+ "@bigmi/client": "^0.0.5",
34
+ "@bigmi/core": "^0.0.5",
35
+ "@bigmi/react": "^0.0.5",
36
+ "@emotion/react": "^11.13.5",
37
+ "@emotion/styled": "^11.13.5",
38
+ "@lifi/sdk": "^3.4.2",
39
+ "@mui/icons-material": "^5.16.8",
40
+ "@mui/lab": "5.0.0-alpha.174",
41
+ "@mui/material": "^5.16.8",
42
+ "@mui/system": "^5.16.8",
43
43
  "@solana/wallet-adapter-base": "^0.9.23",
44
44
  "@solana/wallet-adapter-react": "^0.15.35",
45
- "@solana/web3.js": "^1.95.4",
46
- "@tanstack/react-query": "^5.59.20",
45
+ "@solana/web3.js": "^1.95.8",
46
+ "@tanstack/react-query": "^5.62.2",
47
47
  "@tanstack/react-virtual": "^3.10.9",
48
- "i18next": "^23.16.5",
48
+ "i18next": "^24.0.5",
49
49
  "microdiff": "^1.4.0",
50
50
  "mitt": "^3.0.1",
51
51
  "react": "^18.3.1",
52
52
  "react-dom": "^18.3.1",
53
- "react-i18next": "^15.1.1",
53
+ "react-i18next": "^15.1.3",
54
54
  "react-intersection-observer": "^9.13.1",
55
55
  "react-router-dom": "^6.28.0",
56
- "viem": "^2.21.43",
57
- "wagmi": "^2.12.29",
58
- "zustand": "^4.5.5",
59
- "@lifi/wallet-management": "^3.4.6-beta.0"
56
+ "viem": "^2.21.54",
57
+ "wagmi": "^2.13.3",
58
+ "zustand": "^5.0.2",
59
+ "@lifi/wallet-management": "^3.4.6"
60
60
  },
61
61
  "peerDependencies": {
62
62
  "react": ">=18",
@@ -70,7 +70,6 @@ export const AmountInputBase: React.FC<
70
70
  ...props
71
71
  }) => {
72
72
  const { t } = useTranslation()
73
- const { subvariant, subvariantOptions } = useWidgetConfig()
74
73
  const ref = useRef<HTMLInputElement>(null)
75
74
  const amountKey = FormKeyHelper.getAmountKey(formType)
76
75
  const { onChange, onBlur, value } = useFieldController({ name: amountKey })
@@ -99,16 +98,9 @@ export const AmountInputBase: React.FC<
99
98
  }
100
99
  }, [value])
101
100
 
102
- const title =
103
- subvariant === 'custom'
104
- ? subvariantOptions?.custom === 'deposit'
105
- ? t('header.amount')
106
- : t('header.youPay')
107
- : t('header.send')
108
-
109
101
  return (
110
102
  <InputCard {...props}>
111
- <CardTitle>{title}</CardTitle>
103
+ <CardTitle>{t('header.send')}</CardTitle>
112
104
  <FormContainer>
113
105
  <AmountInputStartAdornment formType={formType} />
114
106
  <FormControl fullWidth>
@@ -16,8 +16,7 @@ import { RouteNotFoundCard } from '../RouteCard/RouteNotFoundCard.js'
16
16
  export const Routes: React.FC<CardProps> = (props) => {
17
17
  const { t } = useTranslation()
18
18
  const navigate = useNavigate()
19
- const { subvariant, subvariantOptions, useRecommendedRoute } =
20
- useWidgetConfig()
19
+ const { subvariant, useRecommendedRoute } = useWidgetConfig()
21
20
  const {
22
21
  routes,
23
22
  isLoading,
@@ -43,16 +42,11 @@ export const Routes: React.FC<CardProps> = (props) => {
43
42
  const showAll =
44
43
  !onlyRecommendedRoute && !routeNotFound && (routes?.length ?? 0) > 1
45
44
 
46
- const title =
47
- subvariant === 'custom'
48
- ? subvariantOptions?.custom === 'deposit'
49
- ? t('header.deposit')
50
- : t('header.youPay')
51
- : t('header.receive')
52
-
53
45
  return (
54
46
  <Card {...props}>
55
- <CardTitle>{title}</CardTitle>
47
+ <CardTitle>
48
+ {subvariant === 'custom' ? t('header.youPay') : t('header.receive')}
49
+ </CardTitle>
56
50
  <ProgressToNextUpdate
57
51
  updatedAt={dataUpdatedAt || new Date().getTime()}
58
52
  timeToUpdate={refetchTime}
@@ -64,7 +64,7 @@ export const RoutesExpanded = () => {
64
64
  export const RoutesExpandedElement = () => {
65
65
  const { t } = useTranslation()
66
66
  const navigate = useNavigate()
67
- const { subvariant, subvariantOptions } = useWidgetConfig()
67
+ const { subvariant } = useWidgetConfig()
68
68
  const routesRef = useRef<Route[]>()
69
69
  const emitter = useWidgetEvents()
70
70
  const routesActiveRef = useRef(false)
@@ -118,13 +118,6 @@ export const RoutesExpandedElement = () => {
118
118
  emitter.emit(WidgetEvent.WidgetExpanded, expanded)
119
119
  }, [emitter, expanded])
120
120
 
121
- const title =
122
- subvariant === 'custom'
123
- ? subvariantOptions?.custom === 'deposit'
124
- ? t('header.deposit')
125
- : t('header.youPay')
126
- : t('header.receive')
127
-
128
121
  return (
129
122
  <RoutesExpandedCollapse
130
123
  timeout={timeout.enter}
@@ -137,7 +130,9 @@ export const RoutesExpandedElement = () => {
137
130
  <ScrollableContainer>
138
131
  <Header>
139
132
  <Typography fontSize={18} fontWeight="700" flex={1} noWrap>
140
- {title}
133
+ {subvariant === 'custom'
134
+ ? t('header.youPay')
135
+ : t('header.receive')}
141
136
  </Typography>
142
137
  <ProgressToNextUpdate
143
138
  updatedAt={dataUpdatedAt || new Date().getTime()}
@@ -28,14 +28,7 @@ import { SendToWalletCardHeader } from './SendToWallet.style.js'
28
28
  export const SendToWalletButton: React.FC<CardProps> = (props) => {
29
29
  const { t } = useTranslation()
30
30
  const navigate = useNavigate()
31
- const {
32
- disabledUI,
33
- hiddenUI,
34
- toAddress,
35
- toAddresses,
36
- subvariant,
37
- subvariantOptions,
38
- } = useWidgetConfig()
31
+ const { disabledUI, hiddenUI, toAddress, toAddresses } = useWidgetConfig()
39
32
  const { showSendToWallet } = useSendToWalletStore()
40
33
  const [toAddressFieldValue, toChainId, toTokenAddress] = useFieldValues(
41
34
  'toAddress',
@@ -121,11 +114,6 @@ export const SendToWalletButton: React.FC<CardProps> = (props) => {
121
114
  const isOpenCollapse =
122
115
  requiredToAddress || (showSendToWallet && !hiddenToAddress)
123
116
 
124
- const title =
125
- subvariant === 'custom' && subvariantOptions?.custom === 'deposit'
126
- ? t('header.depositTo')
127
- : t('header.sendToWallet')
128
-
129
117
  return (
130
118
  <Collapse
131
119
  timeout={collapseTransitionTime.current}
@@ -139,7 +127,9 @@ export const SendToWalletButton: React.FC<CardProps> = (props) => {
139
127
  onClick={disabledForChanges ? undefined : handleOnClick}
140
128
  sx={{ width: '100%', ...props.sx }}
141
129
  >
142
- <CardTitle required={requiredToAddress}>{title}</CardTitle>
130
+ <CardTitle required={requiredToAddress}>
131
+ {t('header.sendToWallet')}
132
+ </CardTitle>
143
133
  <Box display="flex" justifyContent="center" alignItems="center">
144
134
  <SendToWalletCardHeader
145
135
  avatar={
@@ -1,2 +1,2 @@
1
1
  export const name = '@lifi/widget'
2
- export const version = '3.12.3-beta.0'
2
+ export const version = '3.12.3'
@@ -19,18 +19,29 @@ export const useGasRefuel = () => {
19
19
  const toChain = getChainById(toChainId)
20
20
  const fromChain = getChainById(fromChainId)
21
21
 
22
- const { account: toAccount } = useAccount({ chainType: toChain?.chainType })
22
+ const { accounts } = useAccount()
23
23
 
24
- const effectiveToAddress = toAddress || toAccount?.address
24
+ const fromAccount = accounts.find(
25
+ (account) => account.chainType === fromChain?.chainType
26
+ )
27
+
28
+ const toAccount = accounts.find(
29
+ (account) => account.chainType === toChain?.chainType
30
+ )
25
31
 
32
+ const isFromContractAddress = useIsContractAddress(
33
+ fromAccount?.address,
34
+ fromChainId,
35
+ fromAccount?.chainType
36
+ )
26
37
  const isToContractAddress = useIsContractAddress(
27
- effectiveToAddress,
38
+ toAddress,
28
39
  toChainId,
29
40
  toChain?.chainType
30
41
  )
31
42
 
32
43
  const { token: destinationNativeToken } = useTokenBalance(
33
- effectiveToAddress,
44
+ toAddress || toAccount?.address,
34
45
  toChainId ? toChain?.nativeToken : undefined
35
46
  )
36
47
 
@@ -44,8 +55,9 @@ export const useGasRefuel = () => {
44
55
  const isChainTypeSatisfied =
45
56
  fromChain?.chainType !== toChain?.chainType ? Boolean(toAddress) : true
46
57
 
47
- // We should not refuel to the contract address
48
- const isToAddressSatisfied = effectiveToAddress && !isToContractAddress
58
+ const isToAddressSatisfied = isFromContractAddress
59
+ ? toAddress && toAddress !== fromAccount?.address && !isToContractAddress
60
+ : true
49
61
 
50
62
  const enabled = useMemo(() => {
51
63
  if (
@@ -16,7 +16,6 @@ export const useIsContractAddress = (
16
16
  enabled: Boolean(chainType === ChainType.EVM && chainId),
17
17
  },
18
18
  })
19
-
20
19
  const isContractAddress = !!contractCode
21
20
  return isContractAddress
22
21
  }
package/src/i18n/en.json CHANGED
@@ -52,14 +52,12 @@
52
52
  },
53
53
  "header": {
54
54
  "activeTransactions": "Active transactions",
55
- "amount": "Amount",
56
55
  "bookmarkedWallets": "Bookmarked wallets",
57
56
  "bridge": "Bridge",
58
57
  "checkout": "Checkout",
59
58
  "checkoutDetails": "Checkout details",
60
59
  "deposit": "Deposit",
61
60
  "depositDetails": "Deposit details",
62
- "depositTo": "Deposit to",
63
61
  "exchange": "Exchange",
64
62
  "from": "Exchange from",
65
63
  "gas": "Gas",
@@ -2,9 +2,13 @@ import en from './en.json' with { type: 'json' }
2
2
 
3
3
  const defaultResource = { translation: en }
4
4
 
5
- declare module 'i18next' {
6
- interface CustomTypeOptions {
7
- defaultNS: 'translation'
8
- resources: typeof defaultResource
5
+ declare global {
6
+ namespace GeneralTranslation {
7
+ declare module 'i18next' {
8
+ interface CustomTypeOptions {
9
+ defaultNS: 'translation'
10
+ resources: typeof defaultResource
11
+ }
12
+ }
9
13
  }
10
14
  }
package/src/index.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export type * from '@lifi/sdk'
2
- export { ChainType, ChainId, CoinKey } from '@lifi/sdk'
2
+ export { ChainType, ChainId } from '@lifi/sdk'
3
3
  export { App as LiFiWidget } from './App.js'
4
4
  export type { WidgetDrawer } from './AppDrawer.js'
5
5
  export * from './components/ContractComponent/ItemPrice.js'
@@ -31,23 +31,22 @@ export const MainPage: React.FC = () => {
31
31
  : subvariant === 'refuel'
32
32
  ? t('header.gas')
33
33
  : t('header.exchange')
34
-
35
34
  useHeader(title)
36
35
 
37
- const marginSx = { marginBottom: 2 }
38
-
39
36
  return (
40
37
  <PageContainer>
41
- <ActiveTransactions sx={marginSx} />
38
+ <ActiveTransactions sx={{ marginBottom: 2 }} />
42
39
  {custom ? (
43
- <ContractComponent sx={marginSx}>{contractComponent}</ContractComponent>
40
+ <ContractComponent sx={{ marginBottom: 2 }}>
41
+ {contractComponent}
42
+ </ContractComponent>
44
43
  ) : null}
45
44
  <SelectChainAndToken mb={2} />
46
- {!custom || subvariantOptions?.custom === 'deposit' ? (
47
- <AmountInput formType="from" sx={marginSx} />
45
+ {!custom ? (
46
+ <AmountInput formType="from" sx={{ marginBottom: 2 }} />
48
47
  ) : null}
49
- {!wideVariant ? <Routes sx={marginSx} /> : null}
50
- <SendToWalletButton sx={marginSx} />
48
+ {!wideVariant ? <Routes sx={{ marginBottom: 2 }} /> : null}
49
+ <SendToWalletButton sx={{ marginBottom: 2 }} />
51
50
  <GasRefuelMessage mb={2} />
52
51
  <MainMessages mb={2} />
53
52
  <Box display="flex" mb={showPoweredBy ? 1 : 3} gap={1.5}>
package/tsconfig.json CHANGED
@@ -7,9 +7,7 @@
7
7
  "outDir": "dist/esm",
8
8
  "rootDir": "./src",
9
9
  "module": "NodeNext",
10
- "moduleResolution": "NodeNext",
11
- "skipLibCheck": true
10
+ "moduleResolution": "NodeNext"
12
11
  },
13
- "include": ["./src/**/*", "./src/**/*.json"],
14
- "references": [{ "path": "../wallet-management" }]
12
+ "include": ["./src/**/*", "./src/**/*.json"]
15
13
  }