@lifi/widget 2.2.4 → 2.2.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.
- package/App.js +4 -1
- package/AppDrawer.style.d.ts +12 -2
- package/cjs/App.js +4 -1
- package/cjs/AppDrawer.style.d.ts +12 -2
- package/cjs/components/AppContainer.js +1 -1
- package/cjs/components/Card/Card.d.ts +1 -3
- package/cjs/components/Card/CardLabel.d.ts +12 -2
- package/cjs/components/Card/CardTitle.d.ts +12 -2
- package/cjs/components/ChainSelect/ChainSelect.style.d.ts +1 -3
- package/cjs/components/Header/Header.style.d.ts +8 -1
- package/cjs/components/Header/NavigationTabs.style.d.ts +1 -3
- package/cjs/components/RouteCard/RouteCard.style.d.ts +12 -2
- package/cjs/components/Step/StepList.js +5 -3
- package/cjs/components/Token/Token.style.d.ts +12 -2
- package/cjs/config/version.d.ts +1 -1
- package/cjs/config/version.js +1 -1
- package/cjs/utils/elements.d.ts +4 -2
- package/cjs/utils/elements.js +4 -2
- package/components/AppContainer.js +2 -2
- package/components/Card/Card.d.ts +1 -3
- package/components/Card/CardLabel.d.ts +12 -2
- package/components/Card/CardTitle.d.ts +12 -2
- package/components/ChainSelect/ChainSelect.style.d.ts +1 -3
- package/components/Header/Header.style.d.ts +8 -1
- package/components/Header/NavigationTabs.style.d.ts +1 -3
- package/components/RouteCard/RouteCard.style.d.ts +12 -2
- package/components/Step/StepList.js +5 -3
- package/components/Token/Token.style.d.ts +12 -2
- package/config/version.d.ts +1 -1
- package/config/version.js +1 -1
- package/package.json +4 -4
- package/tsconfig.cjs.tsbuildinfo +1 -1
- package/utils/elements.d.ts +4 -2
- package/utils/elements.js +4 -2
|
@@ -10,9 +10,11 @@ export const getStepList = (route, subvariant) => route?.steps.map((step, index,
|
|
|
10
10
|
const toToken = index === lastIndex
|
|
11
11
|
? {
|
|
12
12
|
...(step.execution?.toToken ?? step.action?.toToken),
|
|
13
|
-
amount: step.execution?.toAmount
|
|
14
|
-
?
|
|
15
|
-
:
|
|
13
|
+
amount: step.execution?.toAmount
|
|
14
|
+
? step.execution.toAmount
|
|
15
|
+
: subvariant === 'nft'
|
|
16
|
+
? route.toAmount
|
|
17
|
+
: step.estimate.toAmount,
|
|
16
18
|
}
|
|
17
19
|
: undefined;
|
|
18
20
|
const toAddress = index === lastIndex && route.fromAddress !== route.toAddress
|
|
@@ -9,9 +9,19 @@ export declare const TextSecondaryContainer: import("@emotion/styled").StyledCom
|
|
|
9
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> & {
|
|
10
10
|
connected?: boolean | undefined;
|
|
11
11
|
}, {}, {}>;
|
|
12
|
-
export declare const TextSecondary: import("@emotion/styled").StyledComponent<import("@mui/
|
|
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"> & {
|
|
13
23
|
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
14
|
-
},
|
|
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> & {
|
|
15
25
|
connected?: boolean | undefined;
|
|
16
26
|
dot?: boolean | undefined;
|
|
17
27
|
}, {}, {}>;
|
package/config/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const name = "@lifi/widget";
|
|
2
|
-
export declare const version = "2.2.
|
|
2
|
+
export declare const version = "2.2.6";
|
package/config/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = '@lifi/widget';
|
|
2
|
-
export const version = '2.2.
|
|
2
|
+
export const version = '2.2.6';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lifi/widget",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.6",
|
|
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",
|
|
@@ -44,14 +44,14 @@
|
|
|
44
44
|
"@ethersproject/experimental": "^5.7.0",
|
|
45
45
|
"@ethersproject/providers": "^5.7.2",
|
|
46
46
|
"@lifi/sdk": "^2.2.1",
|
|
47
|
-
"@lifi/wallet-management": "^2.2.
|
|
47
|
+
"@lifi/wallet-management": "^2.2.4",
|
|
48
48
|
"@mui/icons-material": "^5.14.1",
|
|
49
49
|
"@mui/lab": "^5.0.0-alpha.137",
|
|
50
|
-
"@mui/material": "^5.14.
|
|
50
|
+
"@mui/material": "^5.14.2",
|
|
51
51
|
"@tanstack/react-query": "^4.32.0",
|
|
52
52
|
"@tanstack/react-virtual": "^3.0.0-beta.54",
|
|
53
53
|
"big.js": "^6.2.1",
|
|
54
|
-
"i18next": "^23.
|
|
54
|
+
"i18next": "^23.3.0",
|
|
55
55
|
"i18next-browser-languagedetector": "^7.1.0",
|
|
56
56
|
"microdiff": "^1.3.2",
|
|
57
57
|
"mitt": "^3.0.1",
|