@lifi/widget 1.26.4 → 1.26.5

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 (44) hide show
  1. package/AppDrawer.style.d.ts +1 -1
  2. package/cjs/AppDrawer.style.d.ts +1 -1
  3. package/cjs/components/Card/CardTitle.d.ts +1 -1
  4. package/cjs/components/ChainSelect/ChainSelect.d.ts +0 -1
  5. package/cjs/components/ChainSelect/ChainSelect.style.js +1 -1
  6. package/cjs/components/Step/CircularProgress.d.ts +0 -1
  7. package/cjs/components/Step/StepList.d.ts +0 -1
  8. package/cjs/components/SwapInput/SwapInputEndAdornment.d.ts +0 -1
  9. package/cjs/components/SwapRouteCard/SwapRouteCard.style.d.ts +1 -1
  10. package/cjs/components/SwapRoutes/SwapRoutesExpanded.d.ts +0 -1
  11. package/cjs/components/Token/Token.style.d.ts +1 -1
  12. package/cjs/components/TokenList/VirtualizedTokenList.js +1 -1
  13. package/cjs/config/version.d.ts +1 -1
  14. package/cjs/config/version.js +1 -1
  15. package/cjs/pages/ActiveSwapsPage/ActiveSwapsPage.d.ts +0 -1
  16. package/cjs/pages/SelectTokenPage/SearchTokenInput.d.ts +0 -1
  17. package/cjs/pages/SelectWalletPage/SelectWalletPage.d.ts +0 -1
  18. package/cjs/pages/SettingsPage/AdvancedPreferences.d.ts +0 -1
  19. package/cjs/pages/SettingsPage/GasPriceSelect.d.ts +0 -1
  20. package/cjs/pages/SettingsPage/SettingsPage.d.ts +0 -1
  21. package/cjs/pages/SettingsPage/ShowDestinationWallet.d.ts +0 -1
  22. package/cjs/pages/SettingsPage/SlippageInput.d.ts +0 -1
  23. package/components/Card/CardTitle.d.ts +1 -1
  24. package/components/ChainSelect/ChainSelect.d.ts +0 -1
  25. package/components/ChainSelect/ChainSelect.style.js +1 -1
  26. package/components/Step/CircularProgress.d.ts +0 -1
  27. package/components/Step/StepList.d.ts +0 -1
  28. package/components/SwapInput/SwapInputEndAdornment.d.ts +0 -1
  29. package/components/SwapRouteCard/SwapRouteCard.style.d.ts +1 -1
  30. package/components/SwapRoutes/SwapRoutesExpanded.d.ts +0 -1
  31. package/components/Token/Token.style.d.ts +1 -1
  32. package/components/TokenList/VirtualizedTokenList.js +1 -1
  33. package/config/version.d.ts +1 -1
  34. package/config/version.js +1 -1
  35. package/package.json +8 -8
  36. package/pages/ActiveSwapsPage/ActiveSwapsPage.d.ts +0 -1
  37. package/pages/SelectTokenPage/SearchTokenInput.d.ts +0 -1
  38. package/pages/SelectWalletPage/SelectWalletPage.d.ts +0 -1
  39. package/pages/SettingsPage/AdvancedPreferences.d.ts +0 -1
  40. package/pages/SettingsPage/GasPriceSelect.d.ts +0 -1
  41. package/pages/SettingsPage/SettingsPage.d.ts +0 -1
  42. package/pages/SettingsPage/ShowDestinationWallet.d.ts +0 -1
  43. package/pages/SettingsPage/SlippageInput.d.ts +0 -1
  44. package/tsconfig.cjs.tsbuildinfo +1 -1
@@ -39,7 +39,7 @@ export declare const DrawerButton: import("@emotion/styled").StyledComponent<{
39
39
  } | undefined;
40
40
  }, {}, {}>;
41
41
  export declare const DrawerButtonTypography: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
42
- align?: "left" | "right" | "inherit" | "center" | "justify" | undefined;
42
+ align?: "center" | "left" | "right" | "inherit" | "justify" | undefined;
43
43
  children?: import("react").ReactNode;
44
44
  classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
45
45
  gutterBottom?: boolean | undefined;
@@ -39,7 +39,7 @@ export declare const DrawerButton: import("@emotion/styled").StyledComponent<{
39
39
  } | undefined;
40
40
  }, {}, {}>;
41
41
  export declare const DrawerButtonTypography: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
42
- align?: "left" | "right" | "inherit" | "center" | "justify" | undefined;
42
+ align?: "center" | "left" | "right" | "inherit" | "justify" | undefined;
43
43
  children?: import("react").ReactNode;
44
44
  classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
45
45
  gutterBottom?: boolean | undefined;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  export declare const CardTitle: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
3
- align?: "left" | "right" | "inherit" | "center" | "justify" | undefined;
3
+ align?: "center" | "left" | "right" | "inherit" | "justify" | undefined;
4
4
  children?: import("react").ReactNode;
5
5
  classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
6
6
  gutterBottom?: boolean | undefined;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import type { SwapFormTypeProps } from '../../providers';
3
2
  export declare const ChainSelect: ({ formType }: SwapFormTypeProps) => JSX.Element;
@@ -12,7 +12,7 @@ exports.ChainCard = (0, styles_1.styled)(Card_1.Card)({
12
12
  });
13
13
  exports.ChainContainer = (0, styles_1.styled)(material_1.Box)(({ theme }) => ({
14
14
  display: 'grid',
15
- gridTemplateColumns: 'repeat(auto-fit, minmax(52px, 1fr))',
15
+ gridTemplateColumns: 'repeat(5, 1fr)',
16
16
  gridAutoRows: '56px',
17
17
  justifyContent: 'space-between',
18
18
  gap: theme.spacing(1.5),
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { Process } from '@lifi/sdk';
3
2
  export declare function CircularProgress({ process }: {
4
3
  process: Process;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { Route } from '@lifi/sdk';
3
2
  export declare const getStepList: (route?: Route) => JSX.Element[] | undefined;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import type { SwapFormTypeProps } from '../../providers';
3
2
  export declare const SwapInputEndAdornment: ({ formType }: SwapFormTypeProps) => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  export declare const Label: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
3
- align?: "left" | "right" | "inherit" | "center" | "justify" | undefined;
3
+ align?: "center" | "left" | "right" | "inherit" | "justify" | undefined;
4
4
  children?: import("react").ReactNode;
5
5
  classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
6
6
  gutterBottom?: boolean | undefined;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  export declare const SwapRoutesExpanded: () => JSX.Element;
3
2
  export declare const SwapRoutesExpandedElement: () => JSX.Element;
@@ -10,7 +10,7 @@ export declare const TextSecondaryContainer: import("@emotion/styled").StyledCom
10
10
  connected?: boolean | undefined;
11
11
  }, {}, {}>;
12
12
  export declare const TextSecondary: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
13
- align?: "left" | "right" | "inherit" | "center" | "justify" | undefined;
13
+ align?: "center" | "left" | "right" | "inherit" | "justify" | undefined;
14
14
  children?: import("react").ReactNode;
15
15
  classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
16
16
  gutterBottom?: boolean | undefined;
@@ -39,7 +39,7 @@ const VirtualizedTokenList = ({ tokens, featuredTokensLength, scrollElementRef,
39
39
  getItemKey: (index) => { var _a; return (_a = tokens[index].address) !== null && _a !== void 0 ? _a : index; },
40
40
  });
41
41
  (0, react_1.useEffect)(() => {
42
- scrollToIndex(0, { align: 'start', smoothScroll: false });
42
+ scrollToIndex(0, { align: 'start' });
43
43
  }, [scrollToIndex, chainId]);
44
44
  if (isLoading) {
45
45
  return ((0, jsx_runtime_1.jsx)(material_1.List, Object.assign({ disablePadding: true }, { children: Array.from({ length: 3 }).map((_, index) => (
@@ -1,2 +1,2 @@
1
1
  export declare const name = "@lifi/widget";
2
- export declare const version = "1.26.4";
2
+ export declare const version = "1.26.5";
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = exports.name = void 0;
4
4
  exports.name = '@lifi/widget';
5
- exports.version = '1.26.4';
5
+ exports.version = '1.26.5';
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const ActiveSwapsPage: () => JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const SearchTokenInput: () => JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const SelectWalletPage: () => JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const AdvancedPreferences: () => JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const GasPriceSelect: () => JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const SettingsPage: () => JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const ShowDestinationWallet: () => JSX.Element | null;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const SlippageInput: () => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  export declare const CardTitle: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
3
- align?: "left" | "right" | "inherit" | "center" | "justify" | undefined;
3
+ align?: "center" | "left" | "right" | "inherit" | "justify" | undefined;
4
4
  children?: import("react").ReactNode;
5
5
  classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
6
6
  gutterBottom?: boolean | undefined;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import type { SwapFormTypeProps } from '../../providers';
3
2
  export declare const ChainSelect: ({ formType }: SwapFormTypeProps) => JSX.Element;
@@ -9,7 +9,7 @@ export const ChainCard = styled(Card)({
9
9
  });
10
10
  export const ChainContainer = styled(Box)(({ theme }) => ({
11
11
  display: 'grid',
12
- gridTemplateColumns: 'repeat(auto-fit, minmax(52px, 1fr))',
12
+ gridTemplateColumns: 'repeat(5, 1fr)',
13
13
  gridAutoRows: '56px',
14
14
  justifyContent: 'space-between',
15
15
  gap: theme.spacing(1.5),
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { Process } from '@lifi/sdk';
3
2
  export declare function CircularProgress({ process }: {
4
3
  process: Process;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { Route } from '@lifi/sdk';
3
2
  export declare const getStepList: (route?: Route) => JSX.Element[] | undefined;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import type { SwapFormTypeProps } from '../../providers';
3
2
  export declare const SwapInputEndAdornment: ({ formType }: SwapFormTypeProps) => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  export declare const Label: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
3
- align?: "left" | "right" | "inherit" | "center" | "justify" | undefined;
3
+ align?: "center" | "left" | "right" | "inherit" | "justify" | undefined;
4
4
  children?: import("react").ReactNode;
5
5
  classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
6
6
  gutterBottom?: boolean | undefined;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  export declare const SwapRoutesExpanded: () => JSX.Element;
3
2
  export declare const SwapRoutesExpandedElement: () => JSX.Element;
@@ -10,7 +10,7 @@ export declare const TextSecondaryContainer: import("@emotion/styled").StyledCom
10
10
  connected?: boolean | undefined;
11
11
  }, {}, {}>;
12
12
  export declare const TextSecondary: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
13
- align?: "left" | "right" | "inherit" | "center" | "justify" | undefined;
13
+ align?: "center" | "left" | "right" | "inherit" | "justify" | undefined;
14
14
  children?: import("react").ReactNode;
15
15
  classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
16
16
  gutterBottom?: boolean | undefined;
@@ -36,7 +36,7 @@ export const VirtualizedTokenList = ({ tokens, featuredTokensLength, scrollEleme
36
36
  getItemKey: (index) => { var _a; return (_a = tokens[index].address) !== null && _a !== void 0 ? _a : index; },
37
37
  });
38
38
  useEffect(() => {
39
- scrollToIndex(0, { align: 'start', smoothScroll: false });
39
+ scrollToIndex(0, { align: 'start' });
40
40
  }, [scrollToIndex, chainId]);
41
41
  if (isLoading) {
42
42
  return (_jsx(List, Object.assign({ disablePadding: true }, { children: Array.from({ length: 3 }).map((_, index) => (
@@ -1,2 +1,2 @@
1
1
  export declare const name = "@lifi/widget";
2
- export declare const version = "1.26.4";
2
+ export declare const version = "1.26.5";
package/config/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  export const name = '@lifi/widget';
2
- export const version = '1.26.4';
2
+ export const version = '1.26.5';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifi/widget",
3
- "version": "1.26.4",
3
+ "version": "1.26.5",
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
  "main": "./cjs/index.js",
6
6
  "module": "./index.js",
@@ -47,11 +47,11 @@
47
47
  "@mui/icons-material": "^5.10.16",
48
48
  "@mui/lab": "^5.0.0-alpha.110",
49
49
  "@mui/material": "^5.10.16",
50
- "@sentry/integrations": "^7.22.0",
51
- "@sentry/react": "^7.22.0",
52
- "@sentry/tracing": "^7.22.0",
53
- "@tanstack/react-query": "^4.18.0",
54
- "@tanstack/react-virtual": "^3.0.0-beta.23",
50
+ "@sentry/integrations": "^7.23.0",
51
+ "@sentry/react": "^7.23.0",
52
+ "@sentry/tracing": "^7.23.0",
53
+ "@tanstack/react-query": "^4.19.1",
54
+ "@tanstack/react-virtual": "^3.0.0-beta.29",
55
55
  "big.js": "^6.2.1",
56
56
  "i18next": "22.0.4",
57
57
  "i18next-browser-languagedetector": "^7.0.1",
@@ -61,9 +61,9 @@
61
61
  "react-dom": "^18.2.0",
62
62
  "react-hook-form": "^7.40.0",
63
63
  "react-i18next": "^12.0.0",
64
- "react-router-dom": "^6.4.3",
64
+ "react-router-dom": "^6.4.4",
65
65
  "react-timer-hook": "^3.0.5",
66
- "zustand": "^4.1.4"
66
+ "zustand": "^4.1.5"
67
67
  },
68
68
  "peerDependencies": {
69
69
  "@types/react": "^18.0.0",
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const ActiveSwapsPage: () => JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const SearchTokenInput: () => JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const SelectWalletPage: () => JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const AdvancedPreferences: () => JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const GasPriceSelect: () => JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const SettingsPage: () => JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const ShowDestinationWallet: () => JSX.Element | null;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const SlippageInput: () => JSX.Element;