@lifi/widget 2.4.4 → 2.4.6

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 (126) hide show
  1. package/AppDrawer.style.d.ts +6 -71
  2. package/cjs/AppDrawer.style.d.ts +6 -71
  3. package/cjs/components/ActiveTransactions/ActiveTransactions.style.d.ts +6 -65
  4. package/cjs/components/AmountInput/AmountInput.style.d.ts +2 -16
  5. package/cjs/components/AmountInput/AmountInputAdornment.style.d.ts +2 -32
  6. package/cjs/components/AppContainer.d.ts +4 -16
  7. package/cjs/components/Card/Card.d.ts +3 -8
  8. package/cjs/components/Card/CardHeader.d.ts +2 -16
  9. package/cjs/components/Card/CardIconButton.d.ts +2 -27
  10. package/cjs/components/Card/CardLabel.d.ts +5 -20
  11. package/cjs/components/Card/CardTitle.d.ts +2 -12
  12. package/cjs/components/ChainSelect/ChainSelect.style.d.ts +5 -15
  13. package/cjs/components/GasMessage/GasMessage.style.d.ts +8 -28
  14. package/cjs/components/Header/Header.style.d.ts +8 -61
  15. package/cjs/components/Header/NavigationTabs.style.d.ts +4 -29
  16. package/cjs/components/ListItemButton.d.ts +2 -18
  17. package/cjs/components/NFT/NFT.style.d.ts +2 -14
  18. package/cjs/components/ReverseTokensButton/ReverseTokensButton.style.d.ts +2 -27
  19. package/cjs/components/RouteCard/RouteCard.style.d.ts +2 -12
  20. package/cjs/components/Routes/RoutesExpanded.style.d.ts +8 -28
  21. package/cjs/components/SelectTokenButton/SelectTokenButton.style.d.ts +2 -16
  22. package/cjs/components/SendToWallet/SendToWallet.js +4 -1
  23. package/cjs/components/SendToWallet/SendToWallet.style.d.ts +2 -16
  24. package/cjs/components/SmallAvatar.d.ts +6 -31
  25. package/cjs/components/Step/CircularProgress.style.d.ts +2 -7
  26. package/cjs/components/StepActions/StepActions.style.d.ts +2 -14
  27. package/cjs/components/StepDivider/StepDivider.style.d.ts +2 -9
  28. package/cjs/components/Token/Token.style.d.ts +6 -26
  29. package/cjs/components/TokenAvatar/TokenAvatar.style.d.ts +4 -14
  30. package/cjs/components/TokenList/TokenList.style.d.ts +4 -33
  31. package/cjs/config/version.d.ts +1 -1
  32. package/cjs/config/version.js +1 -1
  33. package/cjs/i18n/en.json +2 -1
  34. package/cjs/pages/MainPage/MainPage.style.d.ts +2 -9
  35. package/cjs/pages/RoutesPage/RoutesPage.style.d.ts +2 -9
  36. package/cjs/pages/SelectEnabledToolsPage/SelectEnabledToolsPage.style.d.ts +2 -18
  37. package/cjs/pages/SelectWalletPage/SelectWalletPage.js +6 -1
  38. package/cjs/pages/SettingsPage/ColorSchemeButtonGroup.style.d.ts +2 -31
  39. package/cjs/pages/SettingsPage/EnabledToolsButton.style.d.ts +2 -18
  40. package/cjs/pages/SettingsPage/ResetSettingsButton.js +29 -1
  41. package/cjs/pages/SettingsPage/ResetSettingsButton.style.d.ts +4 -0
  42. package/cjs/pages/SettingsPage/ResetSettingsButton.style.js +13 -0
  43. package/cjs/pages/TransactionDetailsPage/TransactionDetailsPage.style.d.ts +2 -9
  44. package/cjs/pages/TransactionPage/StatusBottomSheet.style.d.ts +4 -14
  45. package/cjs/pages/TransactionPage/TransactionPage.style.d.ts +2 -9
  46. package/cjs/stores/StoreProvider.js +3 -1
  47. package/cjs/stores/chains/ChainOrderStore.d.ts +3 -2
  48. package/cjs/stores/chains/createChainOrderStore.d.ts +1 -1
  49. package/cjs/stores/chains/createChainOrderStore.js +3 -3
  50. package/cjs/stores/header/types.d.ts +3 -2
  51. package/cjs/stores/header/useHeaderStore.d.ts +1 -1
  52. package/cjs/stores/header/useHeaderStore.js +3 -3
  53. package/cjs/stores/routes/RouteExecutionStore.d.ts +3 -2
  54. package/cjs/stores/routes/createRouteExecutionStore.d.ts +1 -1
  55. package/cjs/stores/routes/createRouteExecutionStore.js +4 -4
  56. package/cjs/stores/settings/types.d.ts +7 -5
  57. package/cjs/stores/settings/useSendToWalletStore.d.ts +1 -1
  58. package/cjs/stores/settings/useSendToWalletStore.js +3 -3
  59. package/cjs/stores/settings/useSettingsStore.d.ts +2 -2
  60. package/cjs/stores/settings/useSettingsStore.js +10 -6
  61. package/cjs/stores/settings/useSplitSubvariantStore.d.ts +1 -1
  62. package/cjs/stores/settings/useSplitSubvariantStore.js +4 -4
  63. package/cjs/types/widget.d.ts +2 -0
  64. package/components/ActiveTransactions/ActiveTransactions.style.d.ts +6 -65
  65. package/components/AmountInput/AmountInput.style.d.ts +2 -16
  66. package/components/AmountInput/AmountInputAdornment.style.d.ts +2 -32
  67. package/components/AppContainer.d.ts +4 -16
  68. package/components/Card/Card.d.ts +3 -8
  69. package/components/Card/CardHeader.d.ts +2 -16
  70. package/components/Card/CardIconButton.d.ts +2 -27
  71. package/components/Card/CardLabel.d.ts +5 -20
  72. package/components/Card/CardTitle.d.ts +2 -12
  73. package/components/ChainSelect/ChainSelect.style.d.ts +5 -15
  74. package/components/GasMessage/GasMessage.style.d.ts +8 -28
  75. package/components/Header/Header.style.d.ts +8 -61
  76. package/components/Header/NavigationTabs.style.d.ts +4 -29
  77. package/components/ListItemButton.d.ts +2 -18
  78. package/components/NFT/NFT.style.d.ts +2 -14
  79. package/components/ReverseTokensButton/ReverseTokensButton.style.d.ts +2 -27
  80. package/components/RouteCard/RouteCard.style.d.ts +2 -12
  81. package/components/Routes/RoutesExpanded.style.d.ts +8 -28
  82. package/components/SelectTokenButton/SelectTokenButton.style.d.ts +2 -16
  83. package/components/SendToWallet/SendToWallet.js +4 -1
  84. package/components/SendToWallet/SendToWallet.style.d.ts +2 -16
  85. package/components/SmallAvatar.d.ts +6 -31
  86. package/components/Step/CircularProgress.style.d.ts +2 -7
  87. package/components/StepActions/StepActions.style.d.ts +2 -14
  88. package/components/StepDivider/StepDivider.style.d.ts +2 -9
  89. package/components/Token/Token.style.d.ts +6 -26
  90. package/components/TokenAvatar/TokenAvatar.style.d.ts +4 -14
  91. package/components/TokenList/TokenList.style.d.ts +4 -33
  92. package/config/version.d.ts +1 -1
  93. package/config/version.js +1 -1
  94. package/i18n/en.json +2 -1
  95. package/package.json +14 -14
  96. package/pages/MainPage/MainPage.style.d.ts +2 -9
  97. package/pages/RoutesPage/RoutesPage.style.d.ts +2 -9
  98. package/pages/SelectEnabledToolsPage/SelectEnabledToolsPage.style.d.ts +2 -18
  99. package/pages/SelectWalletPage/SelectWalletPage.js +7 -2
  100. package/pages/SettingsPage/ColorSchemeButtonGroup.style.d.ts +2 -31
  101. package/pages/SettingsPage/EnabledToolsButton.style.d.ts +2 -18
  102. package/pages/SettingsPage/ResetSettingsButton.js +30 -2
  103. package/pages/SettingsPage/ResetSettingsButton.style.d.ts +4 -0
  104. package/pages/SettingsPage/ResetSettingsButton.style.js +10 -0
  105. package/pages/TransactionDetailsPage/TransactionDetailsPage.style.d.ts +2 -9
  106. package/pages/TransactionPage/StatusBottomSheet.style.d.ts +4 -14
  107. package/pages/TransactionPage/TransactionPage.style.d.ts +2 -9
  108. package/stores/StoreProvider.js +3 -1
  109. package/stores/chains/ChainOrderStore.d.ts +3 -2
  110. package/stores/chains/createChainOrderStore.d.ts +1 -1
  111. package/stores/chains/createChainOrderStore.js +3 -3
  112. package/stores/header/types.d.ts +3 -2
  113. package/stores/header/useHeaderStore.d.ts +1 -1
  114. package/stores/header/useHeaderStore.js +3 -3
  115. package/stores/routes/RouteExecutionStore.d.ts +3 -2
  116. package/stores/routes/createRouteExecutionStore.d.ts +1 -1
  117. package/stores/routes/createRouteExecutionStore.js +4 -4
  118. package/stores/settings/types.d.ts +7 -5
  119. package/stores/settings/useSendToWalletStore.d.ts +1 -1
  120. package/stores/settings/useSendToWalletStore.js +3 -3
  121. package/stores/settings/useSettingsStore.d.ts +2 -2
  122. package/stores/settings/useSettingsStore.js +10 -6
  123. package/stores/settings/useSplitSubvariantStore.d.ts +1 -1
  124. package/stores/settings/useSplitSubvariantStore.js +4 -4
  125. package/tsconfig.cjs.tsbuildinfo +1 -1
  126. package/types/widget.d.ts +2 -0
@@ -1,14 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import type { Status, Substatus } from '@lifi/sdk';
3
3
  import type { Theme } from '@mui/material';
4
- export declare const CircularIcon: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<Theme> & {
5
- children?: import("react").ReactNode;
6
- component?: import("react").ElementType<any> | undefined;
7
- ref?: import("react").Ref<unknown> | undefined;
8
- sx?: import("@mui/material").SxProps<Theme> | undefined;
9
- } & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
+ export declare const CircularIcon: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
10
5
  ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
11
- }, "children" | "sx" | "ref" | ("p" | "color" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "component"> & import("@mui/system").MUIStyledCommonProps<Theme> & {
6
+ }, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme> & {
12
7
  status: Status;
13
8
  substatus?: Substatus | undefined;
14
9
  }, {}, {}>;
@@ -3,18 +3,6 @@ export declare const StepIcon: import("@emotion/styled").StyledComponent<import(
3
3
  export declare const StepConnector: import("@emotion/styled").StyledComponent<import("@mui/material").StepConnectorProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
4
4
  export declare const StepLabel: import("@emotion/styled").StyledComponent<import("@mui/material").StepLabelProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
5
5
  export declare const StepContent: import("@emotion/styled").StyledComponent<import("@mui/material").StepContentProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
6
- export declare const StepAvatar: import("@emotion/styled").StyledComponent<{
7
- alt?: string | undefined;
8
- children?: import("react").ReactNode;
9
- classes?: Partial<import("@mui/material").AvatarClasses> | undefined;
10
- imgProps?: (import("react").ImgHTMLAttributes<HTMLImageElement> & {
11
- sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
12
- }) | undefined;
13
- sizes?: string | undefined;
14
- src?: string | undefined;
15
- srcSet?: string | undefined;
16
- sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
17
- variant?: import("@mui/types").OverridableStringUnion<"circular" | "rounded" | "square", import("@mui/material").AvatarPropsVariantOverrides> | undefined;
18
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
6
+ export declare const StepAvatar: import("@emotion/styled").StyledComponent<import("@mui/material").AvatarOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
19
7
  ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
20
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "alt" | "imgProps" | "sizes" | "src" | "srcSet"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
8
+ }, "className" | "style" | "classes" | "children" | "sx" | "variant" | "alt" | "imgProps" | "sizes" | "src" | "srcSet"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -1,11 +1,4 @@
1
1
  /// <reference types="react" />
2
- export declare const Container: import("@emotion/styled").StyledComponent<{
3
- children?: import("react").ReactNode;
4
- classes?: Partial<import("@mui/material").ContainerClasses> | undefined;
5
- disableGutters?: boolean | undefined;
6
- fixed?: boolean | undefined;
7
- maxWidth?: false | import("@mui/material").Breakpoint | undefined;
8
- sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
9
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2
+ export declare const Container: import("@emotion/styled").StyledComponent<import("@mui/material").ContainerOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
10
3
  ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
11
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "maxWidth" | "fixed" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
4
+ }, "className" | "style" | "classes" | "children" | "sx" | "maxWidth" | "fixed" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -1,35 +1,15 @@
1
1
  /// <reference types="react" />
2
- export declare const TextSecondaryContainer: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
3
- children?: import("react").ReactNode;
4
- component?: import("react").ElementType<any> | undefined;
5
- ref?: import("react").Ref<unknown> | undefined;
6
- sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
7
- } & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2
+ export declare const TextSecondaryContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
8
3
  ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
9
- }, "children" | "sx" | "ref" | ("p" | "color" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "component"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
4
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
10
5
  connected?: boolean | undefined;
11
6
  }, {}, {}>;
12
- export declare const TextSecondary: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
13
- align?: "center" | "left" | "right" | "inherit" | "justify" | undefined;
14
- children?: import("react").ReactNode;
15
- classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
16
- gutterBottom?: boolean | undefined;
17
- noWrap?: boolean | undefined;
18
- paragraph?: boolean | undefined;
19
- sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
20
- variant?: import("@mui/types").OverridableStringUnion<"inherit" | import("@mui/material").TypographyVariant, import("@mui/material").TypographyPropsVariantOverrides> | undefined;
21
- variantMapping?: Partial<Record<import("@mui/types").OverridableStringUnion<"inherit" | import("@mui/material").TypographyVariant, import("@mui/material").TypographyPropsVariantOverrides>, string>> | undefined;
22
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
7
+ export declare const TextSecondary: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
23
8
  ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
24
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | ("p" | "color" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
9
+ }, "className" | "style" | "classes" | "children" | "sx" | "p" | "color" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
25
10
  connected?: boolean | undefined;
26
11
  dot?: boolean | undefined;
27
12
  }, {}, {}>;
28
- export declare const TokenDivider: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
29
- children?: import("react").ReactNode;
30
- component?: import("react").ElementType<any> | undefined;
31
- ref?: import("react").Ref<unknown> | undefined;
32
- sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
33
- } & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
13
+ export declare const TokenDivider: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
34
14
  ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
35
- }, "children" | "sx" | "ref" | ("p" | "color" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "component"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
15
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -1,18 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  export declare const TokenAvatarGroup: import("@emotion/styled").StyledComponent<import("@mui/material").AvatarGroupProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
3
- export declare const AvatarDefault: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
4
- children?: import("react").ReactNode;
5
- component?: import("react").ElementType<any> | undefined;
6
- ref?: import("react").Ref<unknown> | undefined;
7
- sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
8
- } & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
+ export declare const AvatarDefault: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
9
4
  ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
10
- }, "children" | "sx" | "ref" | ("p" | "color" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "component"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
11
- export declare const AvatarDefaultBadge: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
12
- children?: import("react").ReactNode;
13
- component?: import("react").ElementType<any> | undefined;
14
- ref?: import("react").Ref<unknown> | undefined;
15
- sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
16
- } & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
5
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
6
+ export declare const AvatarDefaultBadge: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
17
7
  ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
18
- }, "children" | "sx" | "ref" | ("p" | "color" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "component"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
8
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -1,41 +1,12 @@
1
1
  /// <reference types="react" />
2
2
  import type { StyledComponent } from '@emotion/styled';
3
3
  import type { IconButtonProps, LinkProps } from '@mui/material';
4
- export declare const ListItemButton: StyledComponent<import("@mui/material").ListItemButtonBaseProps & Omit<{
5
- action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
6
- centerRipple?: boolean | undefined;
7
- children?: import("react").ReactNode;
8
- classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
9
- disabled?: boolean | undefined;
10
- disableRipple?: boolean | undefined;
11
- disableTouchRipple?: boolean | undefined;
12
- focusRipple?: boolean | undefined;
13
- focusVisibleClassName?: string | undefined;
14
- LinkComponent?: import("react").ElementType<any> | undefined;
15
- onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
16
- sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
17
- tabIndex?: number | undefined;
18
- TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
19
- touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
20
- }, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
+ export declare const ListItemButton: StyledComponent<import("@mui/material").ListItemButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
21
5
  ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
22
- }, "className" | "style" | "classes" | "autoFocus" | "tabIndex" | "children" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "alignItems" | "divider" | "dense" | "selected" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
6
+ }, "className" | "style" | "classes" | "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "autoFocus" | "alignItems" | "divider" | "dense" | "selected" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
23
7
  export declare const ListItem: StyledComponent<{
24
8
  button?: false | undefined;
25
- } & import("@mui/material").ListItemBaseProps & {
26
- components?: {
27
- Root?: import("react").ElementType<any> | undefined;
28
- } | undefined;
29
- componentsProps?: {
30
- root?: (import("react").HTMLAttributes<HTMLDivElement> & import("@mui/material").ListItemComponentsPropsOverrides) | undefined;
31
- } | undefined;
32
- slotProps?: {
33
- root?: (import("react").HTMLAttributes<HTMLDivElement> & import("@mui/material").ListItemComponentsPropsOverrides) | undefined;
34
- } | undefined;
35
- slots?: {
36
- root?: import("react").ElementType<any> | undefined;
37
- } | undefined;
38
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
9
+ } & import("@mui/material").ListItemOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
39
10
  ref?: ((instance: HTMLLIElement | null) => void) | import("react").RefObject<HTMLLIElement> | null | undefined;
40
- }, "button" | "className" | "style" | "classes" | "autoFocus" | "children" | "disabled" | "sx" | "alignItems" | "divider" | "components" | "dense" | "slotProps" | "slots" | "componentsProps" | "selected" | "disableGutters" | "ContainerComponent" | "ContainerProps" | "disablePadding" | "secondaryAction"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
11
+ }, "button" | "className" | "style" | "classes" | "children" | "disabled" | "sx" | "autoFocus" | "alignItems" | "divider" | "components" | "dense" | "componentsProps" | "slots" | "slotProps" | "selected" | "disableGutters" | "ContainerComponent" | "ContainerProps" | "disablePadding" | "secondaryAction"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
41
12
  export declare const IconButton: StyledComponent<IconButtonProps & LinkProps>;
@@ -1,2 +1,2 @@
1
1
  export declare const name = "@lifi/widget";
2
- export declare const version = "2.4.4";
2
+ export declare const version = "2.4.6";
@@ -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 = '2.4.4';
5
+ exports.version = '2.4.6';
package/cjs/i18n/en.json CHANGED
@@ -255,7 +255,8 @@
255
255
  },
256
256
  "routePriority": "Route priority",
257
257
  "showDestinationWallet": "Show destination wallet",
258
- "slippage": "Slippage"
258
+ "slippage": "Slippage",
259
+ "resetSettings": "You're using custom setting limiting the number of available routes."
259
260
  },
260
261
  "wallet": {
261
262
  "extensionNotFound": "Please make sure that only the {{name}} browser extension is active before choosing this wallet."
@@ -1,11 +1,4 @@
1
1
  /// <reference types="react" />
2
- export declare const FormContainer: import("@emotion/styled").StyledComponent<{
3
- children?: import("react").ReactNode;
4
- classes?: Partial<import("@mui/material").ContainerClasses> | undefined;
5
- disableGutters?: boolean | undefined;
6
- fixed?: boolean | undefined;
7
- maxWidth?: false | import("@mui/material").Breakpoint | undefined;
8
- sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
9
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2
+ export declare const FormContainer: import("@emotion/styled").StyledComponent<import("@mui/material").ContainerOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
10
3
  ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
11
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "maxWidth" | "fixed" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
4
+ }, "className" | "style" | "classes" | "children" | "sx" | "maxWidth" | "fixed" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -1,11 +1,4 @@
1
1
  /// <reference types="react" />
2
- export declare const Stack: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
3
- children?: import("react").ReactNode;
4
- direction?: import("@mui/system").ResponsiveStyleValue<"column" | "column-reverse" | "row" | "row-reverse"> | undefined;
5
- spacing?: import("@mui/system").ResponsiveStyleValue<string | number> | undefined;
6
- divider?: import("react").ReactNode;
7
- useFlexGap?: boolean | undefined;
8
- sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
9
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2
+ export declare const Stack: import("@emotion/styled").StyledComponent<import("@mui/material").StackOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
10
3
  ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
11
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "direction" | ("p" | "color" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "divider" | "spacing" | "useFlexGap"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
4
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | keyof import("@mui/material").StackOwnProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -1,20 +1,4 @@
1
1
  /// <reference types="react" />
2
- export declare const ListItemButton: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemButtonBaseProps & Omit<{
3
- action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
4
- centerRipple?: boolean | undefined;
5
- children?: import("react").ReactNode;
6
- classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
7
- disabled?: boolean | undefined;
8
- disableRipple?: boolean | undefined;
9
- disableTouchRipple?: boolean | undefined;
10
- focusRipple?: boolean | undefined;
11
- focusVisibleClassName?: string | undefined;
12
- LinkComponent?: import("react").ElementType<any> | undefined;
13
- onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
14
- sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
15
- tabIndex?: number | undefined;
16
- TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
17
- touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
18
- }, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2
+ export declare const ListItemButton: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
19
3
  ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
20
- }, "className" | "style" | "classes" | "autoFocus" | "tabIndex" | "children" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "alignItems" | "divider" | "dense" | "selected" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
4
+ }, "className" | "style" | "classes" | "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "autoFocus" | "alignItems" | "divider" | "dense" | "selected" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
@@ -17,6 +17,7 @@ const SelectWalletPage = () => {
17
17
  const { connect } = (0, providers_1.useWallet)();
18
18
  const [walletIdentity, setWalletIdentity] = (0, react_1.useState)({ show: false });
19
19
  const [wallets, setWallets] = (0, react_1.useState)();
20
+ const isDesktopView = (0, material_1.useMediaQuery)((theme) => theme.breakpoints.up('sm'));
20
21
  const closeDialog = () => {
21
22
  setWalletIdentity((state) => ({
22
23
  ...state,
@@ -41,7 +42,11 @@ const SelectWalletPage = () => {
41
42
  const installedWallets = wallet_management_1.supportedWallets.filter((_, index) => installed[index]);
42
43
  // always remove Default Wallet from not installed Wallets
43
44
  const notInstalledWallets = wallet_management_1.supportedWallets.filter((wallet, index) => !installed[index] && wallet.name !== 'Default Wallet');
44
- setWallets([...installedWallets, ...notInstalledWallets]);
45
+ const allowedWallets = [...installedWallets];
46
+ if (isDesktopView) {
47
+ allowedWallets.push(...notInstalledWallets);
48
+ }
49
+ setWallets(allowedWallets);
45
50
  });
46
51
  }, []);
47
52
  return ((0, jsx_runtime_1.jsxs)(material_1.Container, { disableGutters: true, children: [(0, jsx_runtime_1.jsx)(material_1.List, { sx: {
@@ -1,33 +1,4 @@
1
1
  /// <reference types="react" />
2
- export declare const ToggleButton: import("@emotion/styled").StyledComponent<{
3
- children?: import("react").ReactNode;
4
- classes?: Partial<import("@mui/material").ToggleButtonClasses> | undefined;
5
- color?: import("@mui/types").OverridableStringUnion<"primary" | "secondary" | "error" | "warning" | "info" | "success" | "standard", import("@mui/material").ToggleButtonPropsColorOverrides> | undefined;
6
- disabled?: boolean | undefined;
7
- disableFocusRipple?: boolean | undefined;
8
- fullWidth?: boolean | undefined;
9
- onChange?: ((event: import("react").MouseEvent<HTMLElement, MouseEvent>, value: any) => void) | undefined;
10
- onClick?: ((event: import("react").MouseEvent<HTMLElement, MouseEvent>, value: any) => void) | undefined;
11
- selected?: boolean | undefined;
12
- size?: import("@mui/types").OverridableStringUnion<"small" | "large" | "medium", import("@mui/material").ToggleButtonPropsSizeOverrides> | undefined;
13
- sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
14
- value: {};
15
- } & Omit<{
16
- action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
17
- centerRipple?: boolean | undefined;
18
- children?: import("react").ReactNode;
19
- classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
20
- disabled?: boolean | undefined;
21
- disableRipple?: boolean | undefined;
22
- disableTouchRipple?: boolean | undefined;
23
- focusRipple?: boolean | undefined;
24
- focusVisibleClassName?: string | undefined;
25
- LinkComponent?: import("react").ElementType<any> | undefined;
26
- onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
27
- sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
28
- tabIndex?: number | undefined;
29
- TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
30
- touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
31
- }, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
2
+ export declare const ToggleButton: import("@emotion/styled").StyledComponent<import("@mui/material").ToggleButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
32
3
  ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
33
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "tabIndex" | "color" | "children" | "onChange" | "onClick" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "fullWidth" | "size" | "value" | "selected"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
4
+ }, "className" | "style" | "classes" | "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "color" | "onChange" | "onClick" | "disableFocusRipple" | "fullWidth" | "size" | "value" | "selected"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -1,21 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare const ListItemButton: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemButtonBaseProps & Omit<{
3
- action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
4
- centerRipple?: boolean | undefined;
5
- children?: import("react").ReactNode;
6
- classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
7
- disabled?: boolean | undefined;
8
- disableRipple?: boolean | undefined;
9
- disableTouchRipple?: boolean | undefined;
10
- focusRipple?: boolean | undefined;
11
- focusVisibleClassName?: string | undefined;
12
- LinkComponent?: import("react").ElementType<any> | undefined;
13
- onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
14
- sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
15
- tabIndex?: number | undefined;
16
- TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
17
- touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
18
- }, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2
+ export declare const ListItemButton: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
19
3
  ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
20
- }, "className" | "style" | "classes" | "autoFocus" | "tabIndex" | "children" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "alignItems" | "divider" | "dense" | "selected" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
4
+ }, "className" | "style" | "classes" | "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "autoFocus" | "alignItems" | "divider" | "dense" | "selected" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
21
5
  export declare const ListItemText: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemTextProps<import("react").ElementType<any>, import("react").ElementType<any>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -9,7 +9,17 @@ const Dialog_1 = require("../../components/Dialog");
9
9
  const hooks_1 = require("../../hooks");
10
10
  const providers_1 = require("../../providers");
11
11
  const stores_1 = require("../../stores");
12
+ const ResetSettingsButton_style_1 = require("./ResetSettingsButton.style");
13
+ const icons_material_1 = require("@mui/icons-material");
14
+ const shallow_1 = require("zustand/shallow");
12
15
  const ResetSettingsButton = () => {
16
+ const [enabledBridges, enabledExchanges, routePriority, slippage, gasPrice] = (0, stores_1.useSettingsStore)((state) => [
17
+ state.enabledBridges,
18
+ state.enabledExchanges,
19
+ state.routePriority,
20
+ state.slippage,
21
+ state.gasPrice,
22
+ ], shallow_1.shallow);
13
23
  const { t } = (0, react_i18next_1.useTranslation)();
14
24
  const { tools } = (0, hooks_1.useTools)();
15
25
  const config = (0, providers_1.useWidgetConfig)();
@@ -21,9 +31,27 @@ const ResetSettingsButton = () => {
21
31
  const handleReset = () => {
22
32
  if (tools) {
23
33
  resetSettings(config, tools.bridges.map((tool) => tool.key), tools.exchanges.map((tool) => tool.key));
34
+ (0, stores_1.setDefaultSettings)(config);
24
35
  }
25
36
  toggleDialog();
26
37
  };
27
- return ((0, jsx_runtime_1.jsxs)(material_1.Box, { px: 3, mt: 1.5, mb: 1, children: [(0, jsx_runtime_1.jsx)(material_1.Button, { onClick: toggleDialog, fullWidth: true, children: t('button.resetSettings') }), (0, jsx_runtime_1.jsxs)(Dialog_1.Dialog, { open: open, onClose: toggleDialog, children: [(0, jsx_runtime_1.jsx)(material_1.DialogTitle, { children: t('warning.title.resetSettings') }), (0, jsx_runtime_1.jsx)(material_1.DialogContent, { children: (0, jsx_runtime_1.jsx)(material_1.DialogContentText, { children: t('warning.message.resetSettings') }) }), (0, jsx_runtime_1.jsxs)(material_1.DialogActions, { children: [(0, jsx_runtime_1.jsx)(material_1.Button, { onClick: toggleDialog, children: t('button.cancel') }), (0, jsx_runtime_1.jsx)(material_1.Button, { variant: "contained", onClick: handleReset, autoFocus: true, children: t('button.reset') })] })] })] }));
38
+ const isSlippageChanged = config.slippage
39
+ ? Number(slippage) !== config.slippage * 100
40
+ : slippage !== stores_1.defaultConfigurableSettings.slippage;
41
+ const isRoutePriorityChanged = config.routePriority
42
+ ? routePriority !== config.routePriority
43
+ : routePriority !== stores_1.defaultConfigurableSettings.routePriority;
44
+ const isGasPriceChanged = gasPrice !== stores_1.defaultConfigurableSettings.gasPrice;
45
+ const isCustomRouteSettings = tools?.bridges?.length !== enabledBridges?.length ||
46
+ tools?.exchanges?.length !== enabledExchanges?.length ||
47
+ isSlippageChanged ||
48
+ isRoutePriorityChanged ||
49
+ isGasPriceChanged;
50
+ if (!isCustomRouteSettings) {
51
+ return null;
52
+ }
53
+ return ((0, jsx_runtime_1.jsx)(material_1.Box, { px: 3, mt: 1.5, mb: 1, children: (0, jsx_runtime_1.jsxs)(ResetSettingsButton_style_1.ResetButtonContainer, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { display: "flex", marginBottom: "12px", children: [(0, jsx_runtime_1.jsx)(icons_material_1.InfoRounded, { sx: {
54
+ marginRight: '8px',
55
+ } }), (0, jsx_runtime_1.jsx)(material_1.Box, { fontSize: 14, children: t(`settings.resetSettings`) })] }), (0, jsx_runtime_1.jsx)(material_1.Button, { onClick: toggleDialog, fullWidth: true, children: t('button.resetSettings') }), (0, jsx_runtime_1.jsxs)(Dialog_1.Dialog, { open: open, onClose: toggleDialog, children: [(0, jsx_runtime_1.jsx)(material_1.DialogTitle, { children: t('warning.title.resetSettings') }), (0, jsx_runtime_1.jsx)(material_1.DialogContent, { children: (0, jsx_runtime_1.jsx)(material_1.DialogContentText, { children: t('warning.message.resetSettings') }) }), (0, jsx_runtime_1.jsxs)(material_1.DialogActions, { children: [(0, jsx_runtime_1.jsx)(material_1.Button, { onClick: toggleDialog, children: t('button.cancel') }), (0, jsx_runtime_1.jsx)(material_1.Button, { variant: "contained", onClick: handleReset, autoFocus: true, children: t('button.reset') })] })] })] }) }));
28
56
  };
29
57
  exports.ResetSettingsButton = ResetSettingsButton;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const ResetButtonContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
+ ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
4
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ResetButtonContainer = void 0;
4
+ const utils_1 = require("../../utils");
5
+ const material_1 = require("@mui/material");
6
+ exports.ResetButtonContainer = (0, material_1.styled)(material_1.Box)(({ theme }) => ({
7
+ background: (0, utils_1.getContrastAlphaColor)(theme.palette.mode, '4%'),
8
+ borderRadius: '16px',
9
+ padding: '16px',
10
+ [`svg`]: {
11
+ fill: (0, utils_1.getContrastAlphaColor)(theme.palette.mode, '40%'),
12
+ },
13
+ }));
@@ -1,11 +1,4 @@
1
1
  /// <reference types="react" />
2
- export declare const Container: import("@emotion/styled").StyledComponent<{
3
- children?: import("react").ReactNode;
4
- classes?: Partial<import("@mui/material").ContainerClasses> | undefined;
5
- disableGutters?: boolean | undefined;
6
- fixed?: boolean | undefined;
7
- maxWidth?: false | import("@mui/material").Breakpoint | undefined;
8
- sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
9
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2
+ export declare const Container: import("@emotion/styled").StyledComponent<import("@mui/material").ContainerOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
10
3
  ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
11
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "maxWidth" | "fixed" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
4
+ }, "className" | "style" | "classes" | "children" | "sx" | "maxWidth" | "fixed" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -2,22 +2,12 @@
2
2
  import type { Theme } from '@mui/material';
3
3
  import { RouteExecutionStatus } from '../../stores';
4
4
  type StatusColor = RouteExecutionStatus | 'warning';
5
- export declare const CenterContainer: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<Theme> & {
6
- children?: import("react").ReactNode;
7
- component?: import("react").ElementType<any> | undefined;
8
- ref?: import("react").Ref<unknown> | undefined;
9
- sx?: import("@mui/material").SxProps<Theme> | undefined;
10
- } & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
5
+ export declare const CenterContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
11
6
  ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
12
- }, "children" | "sx" | "ref" | ("p" | "color" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "component"> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
13
- export declare const IconCircle: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<Theme> & {
14
- children?: import("react").ReactNode;
15
- component?: import("react").ElementType<any> | undefined;
16
- ref?: import("react").Ref<unknown> | undefined;
17
- sx?: import("@mui/material").SxProps<Theme> | undefined;
18
- } & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
7
+ }, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
8
+ export declare const IconCircle: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
19
9
  ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
20
- }, "children" | "sx" | "ref" | ("p" | "color" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "component"> & import("@mui/system").MUIStyledCommonProps<Theme> & {
10
+ }, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme> & {
21
11
  status: StatusColor;
22
12
  }, {}, {}>;
23
13
  export {};
@@ -1,11 +1,4 @@
1
1
  /// <reference types="react" />
2
- export declare const Container: import("@emotion/styled").StyledComponent<{
3
- children?: import("react").ReactNode;
4
- classes?: Partial<import("@mui/material").ContainerClasses> | undefined;
5
- disableGutters?: boolean | undefined;
6
- fixed?: boolean | undefined;
7
- maxWidth?: false | import("@mui/material").Breakpoint | undefined;
8
- sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
9
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2
+ export declare const Container: import("@emotion/styled").StyledComponent<import("@mui/material").ContainerOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
10
3
  ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
11
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "maxWidth" | "fixed" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
4
+ }, "className" | "style" | "classes" | "children" | "sx" | "maxWidth" | "fixed" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -7,6 +7,8 @@ const header_1 = require("./header");
7
7
  const routes_1 = require("./routes");
8
8
  const settings_1 = require("./settings");
9
9
  const StoreProvider = ({ children, config, }) => {
10
- return ((0, jsx_runtime_1.jsx)(settings_1.SplitSubvariantStoreProvider, { state: config.subvariant === 'split' ? 'swap' : undefined, children: (0, jsx_runtime_1.jsx)(header_1.HeaderStoreProvider, { namePrefix: config?.keyPrefix, children: (0, jsx_runtime_1.jsx)(chains_1.ChainOrderStoreProvider, { namePrefix: config?.keyPrefix, children: (0, jsx_runtime_1.jsx)(routes_1.RouteExecutionStoreProvider, { namePrefix: config?.keyPrefix, children: children }) }) }) }));
10
+ return ((0, jsx_runtime_1.jsx)(settings_1.SplitSubvariantStoreProvider, { state: config.subvariant === 'split'
11
+ ? config.subvariantOptions || 'swap'
12
+ : undefined, children: (0, jsx_runtime_1.jsx)(header_1.HeaderStoreProvider, { namePrefix: config?.keyPrefix, children: (0, jsx_runtime_1.jsx)(chains_1.ChainOrderStoreProvider, { namePrefix: config?.keyPrefix, children: (0, jsx_runtime_1.jsx)(routes_1.RouteExecutionStoreProvider, { namePrefix: config?.keyPrefix, children: children }) }) }) }));
11
13
  };
12
14
  exports.StoreProvider = StoreProvider;
@@ -1,8 +1,9 @@
1
1
  /// <reference types="react" />
2
- import type { StoreApi, UseBoundStore } from 'zustand';
2
+ import type { StoreApi } from 'zustand';
3
+ import type { UseBoundStoreWithEqualityFn } from 'zustand/traditional';
3
4
  import type { PersistStoreProviderProps } from '../types';
4
5
  import type { ChainOrderState } from './types';
5
- export type ChainOrderStore = UseBoundStore<StoreApi<ChainOrderState>>;
6
+ export type ChainOrderStore = UseBoundStoreWithEqualityFn<StoreApi<ChainOrderState>>;
6
7
  export declare const ChainOrderStoreContext: import("react").Context<ChainOrderStore | null>;
7
8
  export declare function ChainOrderStoreProvider({ children, ...props }: PersistStoreProviderProps): import("react/jsx-runtime").JSX.Element;
8
9
  export declare function useChainOrderStore<T>(selector: (state: ChainOrderState) => T, equalityFn?: (left: T, right: T) => boolean): T;
@@ -1,4 +1,4 @@
1
1
  import type { PersistStoreProps } from '../types';
2
2
  import type { ChainOrderState } from './types';
3
3
  export declare const maxChainToOrder = 9;
4
- export declare const createChainOrderStore: ({ namePrefix }: PersistStoreProps) => import("zustand").UseBoundStore<import("zustand").StoreApi<ChainOrderState>>;
4
+ export declare const createChainOrderStore: ({ namePrefix }: PersistStoreProps) => import("zustand/traditional").UseBoundStoreWithEqualityFn<import("zustand").StoreApi<ChainOrderState>>;