@lifi/widget 3.2.2 → 3.3.0
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/CHANGELOG.md +12 -0
- package/_esm/components/ActiveTransactions/ActiveTransactionItem.js +1 -1
- package/_esm/components/Card/CardIconButton.d.ts +4 -1
- package/_esm/components/Card/CardIconButton.js.map +1 -1
- package/_esm/components/FeeBreakdownTooltip.d.ts +0 -2
- package/_esm/components/FeeBreakdownTooltip.js +2 -5
- package/_esm/components/FeeBreakdownTooltip.js.map +1 -1
- package/_esm/components/IconTypography.d.ts +3 -3
- package/_esm/components/IconTypography.js +2 -2
- package/_esm/components/IconTypography.js.map +1 -1
- package/_esm/components/RouteCard/RouteCardEssentials.js +10 -11
- package/_esm/components/RouteCard/RouteCardEssentials.js.map +1 -1
- package/_esm/components/Step/DestinationWalletAddress.js +2 -2
- package/_esm/components/Step/DestinationWalletAddress.js.map +1 -1
- package/_esm/components/Step/Step.js +1 -1
- package/_esm/components/Step/StepProcess.js +3 -3
- package/_esm/components/Step/StepProcess.js.map +1 -1
- package/_esm/components/Step/StepTimer.js +44 -27
- package/_esm/components/Step/StepTimer.js.map +1 -1
- package/_esm/components/StepActions/StepActions.style.d.ts +0 -3
- package/_esm/components/StepActions/StepActions.style.js +0 -6
- package/_esm/components/StepActions/StepActions.style.js.map +1 -1
- package/_esm/components/TransactionDetails.js +4 -8
- package/_esm/components/TransactionDetails.js.map +1 -1
- package/_esm/config/version.d.ts +1 -1
- package/_esm/config/version.js +1 -1
- package/_esm/hooks/timer/useTimer.js +2 -2
- package/_esm/hooks/timer/useTimer.js.map +1 -1
- package/_esm/i18n/en.json +1 -2
- package/_esm/i18n/index.js +15 -15
- package/_esm/i18n/index.js.map +1 -1
- package/_esm/pages/TransactionDetailsPage/TransactionDetailsPage.js +3 -2
- package/_esm/pages/TransactionDetailsPage/TransactionDetailsPage.js.map +1 -1
- package/_esm/pages/TransactionPage/TokenValueBottomSheet.d.ts +0 -1
- package/_esm/pages/TransactionPage/TokenValueBottomSheet.js +7 -14
- package/_esm/pages/TransactionPage/TokenValueBottomSheet.js.map +1 -1
- package/_esm/pages/TransactionPage/TransactionPage.js +16 -8
- package/_esm/pages/TransactionPage/TransactionPage.js.map +1 -1
- package/_esm/pages/TransactionPage/utils.d.ts +2 -2
- package/_esm/pages/TransactionPage/utils.js +9 -5
- package/_esm/pages/TransactionPage/utils.js.map +1 -1
- package/_esm/stores/routes/types.d.ts +6 -6
- package/_esm/stores/routes/types.js +6 -6
- package/_esm/stores/routes/types.js.map +1 -1
- package/_esm/types/events.d.ts +5 -4
- package/_esm/utils/converters.js +1 -1
- package/_esm/utils/converters.js.map +1 -1
- package/_esm/utils/fees.d.ts +7 -0
- package/_esm/utils/fees.js +14 -0
- package/_esm/utils/fees.js.map +1 -1
- package/components/ActiveTransactions/ActiveTransactionItem.tsx +1 -1
- package/components/Card/CardIconButton.tsx +4 -1
- package/components/FeeBreakdownTooltip.tsx +4 -10
- package/components/IconTypography.ts +2 -2
- package/components/RouteCard/RouteCardEssentials.tsx +19 -15
- package/components/Step/DestinationWalletAddress.tsx +3 -3
- package/components/Step/Step.tsx +1 -1
- package/components/Step/StepProcess.tsx +6 -6
- package/components/Step/StepTimer.tsx +77 -32
- package/components/StepActions/StepActions.style.tsx +0 -8
- package/components/TransactionDetails.tsx +8 -25
- package/config/version.ts +1 -1
- package/hooks/timer/useTimer.ts +4 -2
- package/i18n/en.json +1 -2
- package/i18n/index.ts +15 -15
- package/package.json +10 -10
- package/pages/TransactionDetailsPage/TransactionDetailsPage.tsx +6 -5
- package/pages/TransactionPage/TokenValueBottomSheet.tsx +32 -19
- package/pages/TransactionPage/TransactionPage.tsx +27 -10
- package/pages/TransactionPage/utils.ts +23 -8
- package/stores/routes/types.ts +6 -6
- package/types/events.ts +5 -4
- package/utils/converters.ts +1 -1
- package/utils/fees.ts +24 -0
- package/_esm/components/Step/StepProcess.style.d.ts +0 -9
- package/_esm/components/Step/StepProcess.style.js +0 -6
- package/_esm/components/Step/StepProcess.style.js.map +0 -1
- package/components/Step/StepProcess.style.tsx +0 -9
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [3.3.0](https://github.com/lifinance/widget/compare/v3.2.2...v3.3.0) (2024-07-30)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* improve the display of estimated duration and fees ([#278](https://github.com/lifinance/widget/issues/278)) ([5180526](https://github.com/lifinance/widget/commit/5180526154371c5378c38224592894933d1cc313))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* change assert to with ([#279](https://github.com/lifinance/widget/issues/279)) ([5d6ac56](https://github.com/lifinance/widget/commit/5d6ac569e239317edb288a42918ead107369d1ae))
|
|
16
|
+
|
|
5
17
|
### [3.2.2](https://github.com/lifinance/widget/compare/v3.2.1...v3.2.2) (2024-07-24)
|
|
6
18
|
|
|
7
19
|
|
|
@@ -32,7 +32,7 @@ export const ActiveTransactionItem = ({ routeId, dense }) => {
|
|
|
32
32
|
case 'FAILED':
|
|
33
33
|
return _jsx(ErrorRounded, { color: "error", fontSize: "small" });
|
|
34
34
|
default:
|
|
35
|
-
return (_jsx(Typography, { fontSize: 14, fontWeight:
|
|
35
|
+
return (_jsx(Typography, { fontSize: 14, fontWeight: 600, children: _jsx(StepTimer, { step: lastActiveStep, hideInProgress: true }) }));
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
const ListItemComponent = dense ? ListItem : ListItemButton;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import type { LinkProps } from '@mui/material';
|
|
1
2
|
export declare const CardIconButton: import("@emotion/styled").StyledComponent<import("@mui/material").IconButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent.js").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
2
3
|
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;
|
|
3
|
-
}, "color" | "children" | "sx" | "style" | "className" | "tabIndex" | "disabled" | "action" | "size" | "classes" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme
|
|
4
|
+
}, "color" | "children" | "sx" | "style" | "className" | "tabIndex" | "disabled" | "action" | "size" | "classes" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
5
|
+
component?: import("react").ElementType;
|
|
6
|
+
} & Pick<LinkProps, "rel" | "target" | "href">, {}, {}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardIconButton.js","sourceRoot":"","sources":["../../../components/Card/CardIconButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CardIconButton.js","sourceRoot":"","sources":["../../../components/Card/CardIconButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,IAAI,aAAa,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,aAAa,CAAC,CAEjD,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IACd,OAAO;QACL,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC;QAC3B,eAAe,EAAE,qBAAqB,CAAC,KAAK,EAAE,IAAI,CAAC;QACnD,SAAS,EAAE;YACT,eAAe,EAAE,qBAAqB,CAAC,KAAK,EAAE,IAAI,CAAC;SACpD;QACD,QAAQ,EAAE,MAAM;KACjB,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import type { Route } from '@lifi/sdk';
|
|
2
1
|
import type { TFunction } from 'i18next';
|
|
3
2
|
import type { ReactElement } from 'react';
|
|
4
3
|
import type { FeesBreakdown } from '../utils/fees.js';
|
|
5
4
|
export interface FeeBreakdownTooltipProps {
|
|
6
|
-
route: Route;
|
|
7
5
|
gasCosts?: FeesBreakdown[];
|
|
8
6
|
feeCosts?: FeesBreakdown[];
|
|
9
7
|
children: ReactElement<any, any>;
|
|
@@ -2,12 +2,9 @@ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { Box, Tooltip, Typography } from '@mui/material';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
4
|
import { formatUnits } from 'viem';
|
|
5
|
-
|
|
6
|
-
export const FeeBreakdownTooltip = ({ route, gasCosts, feeCosts, children, }) => {
|
|
5
|
+
export const FeeBreakdownTooltip = ({ gasCosts, feeCosts, children, }) => {
|
|
7
6
|
const { t } = useTranslation();
|
|
8
|
-
|
|
9
|
-
const _feeCosts = feeCosts ?? getFeeCostsBreakdown(route, false);
|
|
10
|
-
return (_jsx(Tooltip, { title: _jsxs(Box, { children: [_gasCosts.length ? (_jsxs(Box, { children: [t('main.fees.network'), getFeeBreakdownTypography(_gasCosts, t)] })) : null, _feeCosts.length ? (_jsxs(Box, { mt: 0.5, children: [t('main.fees.provider'), getFeeBreakdownTypography(_feeCosts, t)] })) : null] }), sx: { cursor: 'help' }, children: children }));
|
|
7
|
+
return (_jsx(Tooltip, { title: _jsxs(Box, { children: [gasCosts?.length ? (_jsxs(Box, { children: [t('main.fees.network'), getFeeBreakdownTypography(gasCosts, t)] })) : null, feeCosts?.length ? (_jsxs(Box, { mt: 0.5, children: [t('main.fees.provider'), getFeeBreakdownTypography(feeCosts, t)] })) : null] }), sx: { cursor: 'help' }, children: children }));
|
|
11
8
|
};
|
|
12
9
|
export const getFeeBreakdownTypography = (fees, t) => fees.map((fee, index) => (_jsxs(Typography, { fontSize: 12, fontWeight: "500", color: "inherit", children: [t(`format.currency`, { value: fee.amountUSD }), " (", parseFloat(formatUnits(fee.amount, fee.token.decimals))?.toFixed(9), ' ', fee.token.symbol, ")"] }, `${fee.token.address}${index}`)));
|
|
13
10
|
//# sourceMappingURL=FeeBreakdownTooltip.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeeBreakdownTooltip.js","sourceRoot":"","sources":["../../components/FeeBreakdownTooltip.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"FeeBreakdownTooltip.js","sourceRoot":"","sources":["../../components/FeeBreakdownTooltip.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGzD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AASnC,MAAM,CAAC,MAAM,mBAAmB,GAAuC,CAAC,EACtE,QAAQ,EACR,QAAQ,EACR,QAAQ,GACT,EAAE,EAAE;IACH,MAAM,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE,CAAC;IAC/B,OAAO,CACL,KAAC,OAAO,IACN,KAAK,EACH,MAAC,GAAG,eACD,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC,CAClB,MAAC,GAAG,eACD,CAAC,CAAC,mBAAmB,CAAC,EACtB,yBAAyB,CAAC,QAAQ,EAAE,CAAC,CAAC,IACnC,CACP,CAAC,CAAC,CAAC,IAAI,EACP,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC,CAClB,MAAC,GAAG,IAAC,EAAE,EAAE,GAAG,aACT,CAAC,CAAC,oBAAoB,CAAC,EACvB,yBAAyB,CAAC,QAAQ,EAAE,CAAC,CAAC,IACnC,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,EAER,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,YAErB,QAAQ,GACD,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG,CACvC,IAAqB,EACrB,CAAY,EACZ,EAAE,CACF,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,CACvB,MAAC,UAAU,IACT,QAAQ,EAAE,EAAE,EACZ,UAAU,EAAC,KAAK,EAChB,KAAK,EAAC,SAAS,aAGd,CAAC,CAAC,iBAAiB,EAAE,EAAE,KAAK,EAAE,GAAG,CAAC,SAAS,EAAE,CAAC,QAC9C,UAAU,CAAC,WAAW,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,EACxE,GAAG,CAAC,KAAK,CAAC,MAAM,UAJZ,GAAG,GAAG,CAAC,KAAK,CAAC,OAAO,GAAG,KAAK,EAAE,CAKxB,CACd,CAAC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const IconTypography: import("@emotion/styled").StyledComponent<import("@mui/
|
|
2
|
-
ref?: ((instance:
|
|
3
|
-
},
|
|
1
|
+
export declare const IconTypography: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
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
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export const IconTypography = styled(
|
|
1
|
+
import { alpha, Box, styled } from '@mui/material';
|
|
2
|
+
export const IconTypography = styled(Box)(({ theme }) => ({
|
|
3
3
|
color: theme.palette.mode === 'light'
|
|
4
4
|
? alpha(theme.palette.common.black, 0.32)
|
|
5
5
|
: alpha(theme.palette.common.white, 0.4),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconTypography.js","sourceRoot":"","sources":["../../components/IconTypography.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"IconTypography.js","sourceRoot":"","sources":["../../components/IconTypography.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEnD,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACxD,KAAK,EACH,KAAK,CAAC,OAAO,CAAC,IAAI,KAAK,OAAO;QAC5B,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC;QACzC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC;IAC5C,UAAU,EAAE,CAAC;CACd,CAAC,CAAC,CAAC"}
|
|
@@ -2,23 +2,22 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { AccessTimeFilled, LocalGasStationRounded } from '@mui/icons-material';
|
|
3
3
|
import { Box, Tooltip, Typography } from '@mui/material';
|
|
4
4
|
import { useTranslation } from 'react-i18next';
|
|
5
|
-
import {
|
|
5
|
+
import { getAccumulatedFeeCostsBreakdown } from '../../utils/fees.js';
|
|
6
6
|
import { FeeBreakdownTooltip } from '../FeeBreakdownTooltip.js';
|
|
7
7
|
import { IconTypography } from '../IconTypography.js';
|
|
8
8
|
import { TokenRate } from '../TokenRate/TokenRate.js';
|
|
9
9
|
export const RouteCardEssentials = ({ route, }) => {
|
|
10
10
|
const { t, i18n } = useTranslation();
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}) })] }) }), _jsx(Tooltip, { title: t(`tooltip.estimatedTime`), sx: { cursor: 'help' }, children: _jsxs(Box, { display: "flex", alignItems: "center", children: [_jsx(IconTypography, { mr: 0.5, fontSize: 16, children: _jsx(AccessTimeFilled, { fontSize: "inherit" }) }), _jsx(Typography, { fontSize: 14, color: "text.primary", fontWeight: "500", lineHeight: 1, children: executionTimeMinutes.toLocaleString(i18n.language, {
|
|
11
|
+
const executionTimeSeconds = Math.floor(route.steps.reduce((duration, step) => duration + step.estimate.executionDuration, 0));
|
|
12
|
+
const executionTimeMinutes = Math.floor(executionTimeSeconds / 60);
|
|
13
|
+
const { gasCosts, feeCosts, combinedFeesUSD } = getAccumulatedFeeCostsBreakdown(route);
|
|
14
|
+
return (_jsxs(Box, { display: "flex", alignItems: "center", justifyContent: 'space-between', flex: 1, mt: 2, children: [_jsx(TokenRate, { route: route }), _jsxs(Box, { display: "flex", alignItems: "center", children: [_jsx(FeeBreakdownTooltip, { gasCosts: gasCosts, feeCosts: feeCosts, children: _jsxs(Box, { display: "flex", mr: 1.5, alignItems: "center", children: [_jsx(IconTypography, { mr: 0.5, fontSize: 16, children: _jsx(LocalGasStationRounded, { fontSize: "inherit" }) }), _jsx(Typography, { fontSize: 14, color: "text.primary", fontWeight: 600, lineHeight: 1, "data-value": combinedFeesUSD, children: t(`format.currency`, {
|
|
15
|
+
value: combinedFeesUSD,
|
|
16
|
+
}) })] }) }), _jsx(Tooltip, { title: t(`tooltip.estimatedTime`), sx: { cursor: 'help' }, children: _jsxs(Box, { display: "flex", alignItems: "center", children: [_jsx(IconTypography, { mr: 0.5, fontSize: 16, children: _jsx(AccessTimeFilled, { fontSize: "inherit" }) }), _jsx(Typography, { fontSize: 14, color: "text.primary", fontWeight: 600, lineHeight: 1, children: (executionTimeSeconds < 60
|
|
17
|
+
? executionTimeSeconds
|
|
18
|
+
: executionTimeMinutes).toLocaleString(i18n.language, {
|
|
20
19
|
style: 'unit',
|
|
21
|
-
unit: 'minute',
|
|
20
|
+
unit: executionTimeSeconds < 60 ? 'second' : 'minute',
|
|
22
21
|
unitDisplay: 'narrow',
|
|
23
22
|
}) })] }) })] })] }));
|
|
24
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RouteCardEssentials.js","sourceRoot":"","sources":["../../../components/RouteCard/RouteCardEssentials.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"RouteCardEssentials.js","sourceRoot":"","sources":["../../../components/RouteCard/RouteCardEssentials.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC/E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{ LinkRounded, Wallet } from '@mui/icons-material';
|
|
3
3
|
import { Box, Link, Typography } from '@mui/material';
|
|
4
4
|
import { useTranslation } from 'react-i18next';
|
|
5
|
+
import { CardIconButton } from '../Card/CardIconButton.js';
|
|
5
6
|
import { CircularIcon } from './CircularProgress.style.js';
|
|
6
|
-
import { LinkButton } from './StepProcess.style.js';
|
|
7
7
|
export const DestinationWalletAddress = ({ step, toAddress, toAddressLink }) => {
|
|
8
8
|
const { t } = useTranslation();
|
|
9
9
|
const isDone = step.execution?.status === 'DONE';
|
|
@@ -19,6 +19,6 @@ export const DestinationWalletAddress = ({ step, toAddress, toAddressLink }) =>
|
|
|
19
19
|
})
|
|
20
20
|
: t('main.sendToAddress', {
|
|
21
21
|
address: toAddress,
|
|
22
|
-
}) }), _jsx(
|
|
22
|
+
}) }), _jsx(CardIconButton, { size: "medium", LinkComponent: Link, href: toAddressLink, target: "_blank", rel: "nofollow noreferrer", children: _jsx(LinkRounded, {}) })] }) }));
|
|
23
23
|
};
|
|
24
24
|
//# sourceMappingURL=DestinationWalletAddress.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DestinationWalletAddress.js","sourceRoot":"","sources":["../../../components/Step/DestinationWalletAddress.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"DestinationWalletAddress.js","sourceRoot":"","sources":["../../../components/Step/DestinationWalletAddress.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO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BAAqB,YAEzB,KAAC,WAAW,KAAG,GACA,IACb,GACF,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -47,6 +47,6 @@ export const Step = ({ step, fromToken, toToken, impactToken, toAddress }) => {
|
|
|
47
47
|
return (_jsxs(Card, { type: stepHasError ? 'error' : 'default', children: [_jsxs(Box, { sx: {
|
|
48
48
|
display: 'flex',
|
|
49
49
|
flex: 1,
|
|
50
|
-
}, children: [_jsx(CardTitle, { flex: 1, children: getCardTitle() }), _jsx(CardTitle, { sx: { fontWeight:
|
|
50
|
+
}, children: [_jsx(CardTitle, { flex: 1, children: getCardTitle() }), _jsx(CardTitle, { sx: { fontWeight: 600 }, children: _jsx(StepTimer, { step: step }) })] }), _jsxs(Box, { py: 1, children: [fromToken ? _jsx(Token, { token: fromToken, px: 2, py: 1 }) : null, _jsx(StepActions, { step: step, px: 2, py: 1, dense: true }), step.execution?.process.map((process, index) => (_jsx(StepProcess, { step: step, process: process }, index))), formattedToAddress && toAddressLink ? (_jsx(DestinationWalletAddress, { step: step, toAddress: formattedToAddress, toAddressLink: toAddressLink })) : null, toToken ? (_jsx(Token, { token: toToken, impactToken: impactToken, enableImpactTokenTooltip: true, px: 2, py: 1 })) : null] })] }));
|
|
51
51
|
};
|
|
52
52
|
//# sourceMappingURL=Step.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { OpenInNewRounded } from '@mui/icons-material';
|
|
3
3
|
import { Box, Link, Typography } from '@mui/material';
|
|
4
4
|
import { useProcessMessage } from '../../hooks/useProcessMessage.js';
|
|
5
|
+
import { CardIconButton } from '../Card/CardIconButton.js';
|
|
5
6
|
import { CircularProgress } from './CircularProgress.js';
|
|
6
|
-
import { LinkButton } from './StepProcess.style.js';
|
|
7
7
|
export const StepProcess = ({ step, process }) => {
|
|
8
8
|
const { title, message } = useProcessMessage(step, process);
|
|
9
9
|
return (_jsxs(Box, { px: 2, py: 1, children: [_jsxs(Box, { sx: {
|
|
10
10
|
display: 'flex',
|
|
11
11
|
alignItems: 'center',
|
|
12
|
-
}, children: [_jsx(CircularProgress, { process: process }), _jsx(Typography, { mx: 2, flex: 1, fontSize: 14, fontWeight: process.error ? 600 : 400, children: title }), process.txLink ? (_jsx(
|
|
12
|
+
}, children: [_jsx(CircularProgress, { process: process }), _jsx(Typography, { mx: 2, flex: 1, fontSize: 14, fontWeight: process.error ? 600 : 400, children: title }), process.txLink ? (_jsx(CardIconButton, { size: "small", LinkComponent: Link, href: process.txLink, target: "_blank", rel: "nofollow noreferrer", children: _jsx(OpenInNewRounded, { fontSize: "inherit" }) })) : null] }), message ? (_jsx(Typography, { ml: 7, fontSize: 14, fontWeight: 500, color: "text.secondary", children: message })) : null] }));
|
|
13
13
|
};
|
|
14
14
|
//# sourceMappingURL=StepProcess.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepProcess.js","sourceRoot":"","sources":["../../../components/Step/StepProcess.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"StepProcess.js","sourceRoot":"","sources":["../../../components/Step/StepProcess.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,MAAM,CAAC,MAAM,WAAW,GAGnB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE;IACzB,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC5D,OAAO,CACL,MAAC,GAAG,IAAC,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,aACf,MAAC,GAAG,IACF,EAAE,EAAE;oBACF,OAAO,EAAE,MAAM;oBACf,UAAU,EAAE,QAAQ;iBACrB,aAED,KAAC,gBAAgB,IAAC,OAAO,EAAE,OAAO,GAAI,EACtC,KAAC,UAAU,IACT,EAAE,EAAE,CAAC,EACL,IAAI,EAAE,CAAC,EACP,QAAQ,EAAE,EAAE,EACZ,UAAU,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,YAEpC,KAAK,GACK,EACZ,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAChB,KAAC,cAAc,IACb,IAAI,EAAC,OAAO,EACZ,aAAa,EAAE,IAAI,EACnB,IAAI,EAAE,OAAO,CAAC,MAAM,EACpB,MAAM,EAAC,QAAQ,EACf,GAAG,EAAC,qBAAqB,YAEzB,KAAC,gBAAgB,IAAC,QAAQ,EAAC,SAAS,GAAG,GACxB,CAClB,CAAC,CAAC,CAAC,IAAI,IACJ,EACL,OAAO,CAAC,CAAC,CAAC,CACT,KAAC,UAAU,IACT,EAAE,EAAE,CAAC,EACL,QAAQ,EAAE,EAAE,EACZ,UAAU,EAAE,GAAG,EACf,KAAK,EAAC,gBAAgB,YAErB,OAAO,GACG,CACd,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,49 +1,68 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { AccessTimeFilled } from '@mui/icons-material';
|
|
3
|
+
import { Box, Tooltip } from '@mui/material';
|
|
1
4
|
import { useEffect, useState } from 'react';
|
|
2
5
|
import { useTranslation } from 'react-i18next';
|
|
3
6
|
import { useTimer } from '../../hooks/timer/useTimer.js';
|
|
4
|
-
|
|
7
|
+
import { IconTypography } from '../IconTypography.js';
|
|
8
|
+
const getExecutionProcess = (step) => step.execution?.process.findLast((process) => process.type === 'SWAP' ||
|
|
9
|
+
process.type === 'CROSS_CHAIN' ||
|
|
10
|
+
process.type === 'RECEIVING_CHAIN');
|
|
11
|
+
const getExpiryTimestamp = (step) => new Date((getExecutionProcess(step)?.startedAt ?? Date.now()) +
|
|
5
12
|
step.estimate.executionDuration * 1000);
|
|
6
13
|
export const StepTimer = ({ step, hideInProgress }) => {
|
|
7
14
|
const { t, i18n } = useTranslation();
|
|
8
15
|
const [isExpired, setExpired] = useState(false);
|
|
9
|
-
const [isExecutionStarted, setExecutionStarted] = useState(!!step
|
|
10
|
-
const [expiryTimestamp] = useState(() => getExpiryTimestamp(step));
|
|
16
|
+
const [isExecutionStarted, setExecutionStarted] = useState(() => !!getExecutionProcess(step));
|
|
17
|
+
const [expiryTimestamp, setExpiryTimestamp] = useState(() => getExpiryTimestamp(step));
|
|
11
18
|
const { seconds, minutes, isRunning, pause, resume, restart } = useTimer({
|
|
12
19
|
autoStart: false,
|
|
13
20
|
expiryTimestamp,
|
|
14
21
|
onExpire: () => setExpired(true),
|
|
15
22
|
});
|
|
16
23
|
useEffect(() => {
|
|
17
|
-
|
|
24
|
+
const executionProcess = getExecutionProcess(step);
|
|
25
|
+
if (!executionProcess) {
|
|
18
26
|
return;
|
|
19
27
|
}
|
|
20
|
-
|
|
28
|
+
const shouldRestart = executionProcess.status === 'FAILED';
|
|
29
|
+
const shouldPause = executionProcess.status === 'ACTION_REQUIRED';
|
|
30
|
+
const shouldStart = executionProcess.status === 'STARTED' ||
|
|
31
|
+
executionProcess.status === 'PENDING';
|
|
32
|
+
const shouldResume = executionProcess.status === 'PENDING';
|
|
33
|
+
if (isExecutionStarted && shouldRestart) {
|
|
34
|
+
setExecutionStarted(false);
|
|
35
|
+
setExpired(false);
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
if (isExecutionStarted && isExpired) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
if (!isExecutionStarted && shouldStart) {
|
|
42
|
+
const expiryTimestamp = getExpiryTimestamp(step);
|
|
21
43
|
setExecutionStarted(true);
|
|
22
|
-
|
|
44
|
+
setExpired(false);
|
|
45
|
+
setExpiryTimestamp(expiryTimestamp);
|
|
46
|
+
restart(expiryTimestamp);
|
|
47
|
+
return;
|
|
23
48
|
}
|
|
24
|
-
|
|
25
|
-
if (isRunning && shouldBePaused) {
|
|
49
|
+
if (isRunning && shouldPause) {
|
|
26
50
|
pause();
|
|
27
51
|
}
|
|
28
|
-
else if (!isRunning &&
|
|
52
|
+
else if (!isRunning && shouldResume) {
|
|
29
53
|
resume();
|
|
30
54
|
}
|
|
31
|
-
}, [
|
|
32
|
-
expiryTimestamp,
|
|
33
|
-
isExecutionStarted,
|
|
34
|
-
isExpired,
|
|
35
|
-
isRunning,
|
|
36
|
-
pause,
|
|
37
|
-
restart,
|
|
38
|
-
resume,
|
|
39
|
-
step,
|
|
40
|
-
]);
|
|
55
|
+
}, [isExecutionStarted, isExpired, isRunning, pause, restart, resume, step]);
|
|
41
56
|
if (!isExecutionStarted) {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
})
|
|
57
|
+
const showSeconds = step.estimate.executionDuration < 60;
|
|
58
|
+
const duration = showSeconds
|
|
59
|
+
? Math.floor(step.estimate.executionDuration)
|
|
60
|
+
: Math.floor(step.estimate.executionDuration / 60);
|
|
61
|
+
return (_jsx(Tooltip, { title: t(`tooltip.estimatedTime`), sx: { cursor: 'help' }, children: _jsxs(Box, { component: "span", display: "flex", alignItems: "center", children: [_jsx(IconTypography, { component: "span", mr: 0.5, fontSize: 16, children: _jsx(AccessTimeFilled, { fontSize: "inherit" }) }), _jsx(Box, { component: "span", children: duration.toLocaleString(i18n.language, {
|
|
62
|
+
style: 'unit',
|
|
63
|
+
unit: showSeconds ? 'second' : 'minute',
|
|
64
|
+
unitDisplay: 'narrow',
|
|
65
|
+
}) })] }) }));
|
|
47
66
|
}
|
|
48
67
|
const isTimerExpired = isExpired || (!minutes && !seconds);
|
|
49
68
|
if (step.execution?.status === 'DONE' ||
|
|
@@ -51,8 +70,6 @@ export const StepTimer = ({ step, hideInProgress }) => {
|
|
|
51
70
|
(isTimerExpired && hideInProgress)) {
|
|
52
71
|
return null;
|
|
53
72
|
}
|
|
54
|
-
return isTimerExpired
|
|
55
|
-
? t('main.inProgress')
|
|
56
|
-
: `${minutes}:${seconds < 10 ? `0${seconds}` : seconds}`;
|
|
73
|
+
return isTimerExpired ? (t('main.inProgress')) : (_jsx(Tooltip, { title: t(`tooltip.estimatedTime`), sx: { cursor: 'help' }, children: _jsxs(Box, { component: "span", display: "flex", alignItems: "center", children: [_jsx(IconTypography, { component: "span", mr: 0.5, fontSize: 16, children: _jsx(AccessTimeFilled, { fontSize: "inherit" }) }), _jsx(Box, { component: "span", sx: { fontVariantNumeric: 'tabular-nums', cursor: 'help' }, children: `${minutes}:${seconds < 10 ? `0${seconds}` : seconds}` })] }) }));
|
|
57
74
|
};
|
|
58
75
|
//# sourceMappingURL=StepTimer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepTimer.js","sourceRoot":"","sources":["../../../components/Step/StepTimer.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"StepTimer.js","sourceRoot":"","sources":["../../../components/Step/StepTimer.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,cA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cAAc,IAAI,cAAc,CAAC,EAClC,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,cAAc,CAAC,CAAC,CAAC,CACtB,CAAC,CAAC,iBAAiB,CAAC,CACrB,CAAC,CAAC,CAAC,CACF,KAAC,OAAO,IAAC,KAAK,EAAE,CAAC,CAAC,uBAAuB,CAAC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,YAChE,MAAC,GAAG,IAAC,SAAS,EAAC,MAAM,EAAC,OAAO,EAAC,MAAM,EAAC,UAAU,EAAC,QAAQ,aACtD,KAAC,cAAc,IAAC,SAAS,EAAC,MAAM,EAAC,EAAE,EAAE,GAAG,EAAE,QAAQ,EAAE,EAAE,YACpD,KAAC,gBAAgB,IAAC,QAAQ,EAAC,SAAS,GAAG,GACxB,EACjB,KAAC,GAAG,IACF,SAAS,EAAC,MAAM,EAChB,EAAE,EAAE,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,YAC1D,GAAG,OAAO,IAAI,OAAO,GAAG,EAAE,CAAC,CAAC,CAAC,IAAI,OAAO,EAAE,CAAC,CAAC,CAAC,OAAO,EAAE,GAAO,IAC3D,GACE,CACX,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -11,6 +11,3 @@ export declare const StepContent: import("@emotion/styled").StyledComponent<impo
|
|
|
11
11
|
export declare const StepAvatar: import("@emotion/styled").StyledComponent<import("@mui/material").AvatarOwnProps & import("@mui/material").AvatarSlotsAndSlotProps & import("@mui/material/OverridableComponent.js").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
12
12
|
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;
|
|
13
13
|
}, "children" | "sx" | "style" | "className" | "sizes" | "alt" | "src" | "srcSet" | "classes" | "variant" | "imgProps" | "slots" | "slotProps"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
14
|
-
export declare const IconTypography: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent.js").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
15
|
-
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;
|
|
16
|
-
}, "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "children" | "sx" | "style" | "className" | "align" | "classes" | "gutterBottom" | "noWrap" | "paragraph" | "variant" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -52,10 +52,4 @@ export const StepAvatar = styled(AvatarMasked)(({ theme }) => ({
|
|
|
52
52
|
color: theme.palette.text.primary,
|
|
53
53
|
backgroundColor: 'transparent',
|
|
54
54
|
}));
|
|
55
|
-
export const IconTypography = styled(Typography)(({ theme }) => ({
|
|
56
|
-
color: theme.palette.mode === 'light'
|
|
57
|
-
? alpha(theme.palette.common.black, 0.32)
|
|
58
|
-
: alpha(theme.palette.common.white, 0.4),
|
|
59
|
-
lineHeight: 0,
|
|
60
|
-
}));
|
|
61
55
|
//# sourceMappingURL=StepActions.style.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepActions.style.js","sourceRoot":"","sources":["../../../components/StepActions/StepActions.style.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,GAAG,EACH,aAAa,IAAI,gBAAgB,EACjC,SAAS,IAAI,YAAY,EACzB,UAAU,EACV,KAAK,EACL,oBAAoB,EACpB,gBAAgB,EAChB,MAAM,GACP,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzD,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,gBAAgB,EAAE;IACpD,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE,CAC1B,CAAC,CAAC,QAAQ,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,IAAc,CAAC;CAC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ACd,CAAC,CAAC,MAAM;QACR,CAAC,CAAC,aACE,KAAK,CAAC,OAAO,CAAC,IAAI,KAAK,OAAO;YAC5B,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC;YACzC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAC5C,EAAE;IACN,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC;IACrC,WAAW,EAAE,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;CAChE,CAAC,CAAC,CAAC;AAEJ,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IAC7D,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO;IACjC,eAAe,EAAE,aAAa;CAC/B,CAAC,CAAC,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { Box, Collapse, Tooltip, Typography } from '@mui/material';
|
|
|
4
4
|
import { useState } from 'react';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
6
|
import { isRouteDone } from '../stores/routes/utils.js';
|
|
7
|
-
import {
|
|
7
|
+
import { getAccumulatedFeeCostsBreakdown } from '../utils/fees.js';
|
|
8
8
|
import { convertToSubscriptFormat, formatTokenAmount, formatTokenPrice, } from '../utils/format.js';
|
|
9
9
|
import { Card } from './Card/Card.js';
|
|
10
10
|
import { CardIconButton } from './Card/CardIconButton.js';
|
|
@@ -17,11 +17,7 @@ export const TransactionDetails = ({ route, ...props }) => {
|
|
|
17
17
|
const toggleCard = () => {
|
|
18
18
|
setCardExpanded((cardExpanded) => !cardExpanded);
|
|
19
19
|
};
|
|
20
|
-
const gasCosts =
|
|
21
|
-
const feeCosts = getFeeCostsBreakdown(route, false);
|
|
22
|
-
const gasCostUSD = gasCosts.reduce((sum, gasCost) => sum + gasCost.amountUSD, 0);
|
|
23
|
-
const feeCostUSD = feeCosts.reduce((sum, feeCost) => sum + feeCost.amountUSD, 0);
|
|
24
|
-
const fees = gasCostUSD + feeCostUSD;
|
|
20
|
+
const { gasCosts, feeCosts, gasCostUSD, feeCostUSD, combinedFeesUSD } = getAccumulatedFeeCostsBreakdown(route);
|
|
25
21
|
const fromTokenAmount = formatTokenAmount(BigInt(route.fromAmount), route.fromToken.decimals);
|
|
26
22
|
const fromTokenPrice = formatTokenPrice(fromTokenAmount, route.fromToken.priceUSD);
|
|
27
23
|
const toTokenAmount = formatTokenAmount(BigInt(route.toAmount), route.toToken.decimals);
|
|
@@ -35,9 +31,9 @@ export const TransactionDetails = ({ route, ...props }) => {
|
|
|
35
31
|
useGrouping: false,
|
|
36
32
|
roundingMode: 'trunc',
|
|
37
33
|
});
|
|
38
|
-
return (_jsxs(Card, { selectionColor: "secondary", ...props, children: [_jsxs(Box, { display: "flex", alignItems: "center", px: 2, py: 1.75, children: [_jsx(Box, { display: "flex", flex: 1, alignItems: "center", justifyContent: "left", children: _jsx(TokenRate, { route: route }) }), _jsx(FeeBreakdownTooltip, {
|
|
34
|
+
return (_jsxs(Card, { selectionColor: "secondary", ...props, children: [_jsxs(Box, { display: "flex", alignItems: "center", px: 2, py: 1.75, children: [_jsx(Box, { display: "flex", flex: 1, alignItems: "center", justifyContent: "left", children: _jsx(TokenRate, { route: route }) }), _jsx(FeeBreakdownTooltip, { gasCosts: gasCosts, feeCosts: feeCosts, children: _jsxs(Box, { display: "flex", alignItems: "center", onClick: toggleCard, role: "button", sx: { cursor: 'pointer' }, px: 1, children: [_jsx(IconTypography, { mr: 0.5, fontSize: 16, children: _jsx(LocalGasStationRounded, { fontSize: "inherit" }) }), _jsx(Typography, { fontSize: 14, color: "text.primary", fontWeight: "600", lineHeight: 1.429, "data-value": combinedFeesUSD, children: t(`format.currency`, { value: combinedFeesUSD }) })] }) }), _jsx(CardIconButton, { onClick: toggleCard, size: "small", children: cardExpanded ? (_jsx(ExpandLess, { fontSize: "inherit" })) : (_jsx(ExpandMore, { fontSize: "inherit" })) })] }), _jsx(Collapse, { timeout: 225, in: cardExpanded, mountOnEnter: true, children: _jsxs(Box, { px: 2, pb: 2, children: [_jsxs(Box, { display: "flex", justifyContent: "space-between", mb: 0.5, children: [_jsx(Typography, { variant: "body2", children: t('main.fees.network') }), _jsx(FeeBreakdownTooltip, { gasCosts: gasCosts, children: _jsx(Typography, { variant: "body2", children: t(`format.currency`, {
|
|
39
35
|
value: gasCostUSD,
|
|
40
|
-
}) }) })] }), feeCosts.length ? (_jsxs(Box, { display: "flex", justifyContent: "space-between", mb: 0.5, children: [_jsx(Typography, { variant: "body2", children: t('main.fees.provider') }), _jsx(FeeBreakdownTooltip, {
|
|
36
|
+
}) }) })] }), feeCosts.length ? (_jsxs(Box, { display: "flex", justifyContent: "space-between", mb: 0.5, children: [_jsx(Typography, { variant: "body2", children: t('main.fees.provider') }), _jsx(FeeBreakdownTooltip, { feeCosts: feeCosts, children: _jsx(Typography, { variant: "body2", children: t(`format.currency`, {
|
|
41
37
|
value: feeCostUSD,
|
|
42
38
|
}) }) })] })) : null, _jsxs(Box, { display: "flex", justifyContent: "space-between", mb: 0.5, children: [_jsx(Typography, { variant: "body2", children: t('main.priceImpact') }), _jsx(Tooltip, { title: t('tooltip.priceImpact'), sx: { cursor: 'help' }, children: _jsxs(Typography, { variant: "body2", children: [priceImpact, "%"] }) })] }), !isRouteDone(route) ? (_jsxs(_Fragment, { children: [_jsxs(Box, { display: "flex", justifyContent: "space-between", mb: 0.5, children: [_jsx(Typography, { variant: "body2", children: t('main.maxSlippage') }), _jsx(Tooltip, { title: t('tooltip.slippage'), sx: { cursor: 'help' }, children: _jsxs(Typography, { variant: "body2", children: [route.steps[0].action.slippage * 100, "%"] }) })] }), _jsxs(Box, { display: "flex", justifyContent: "space-between", children: [_jsx(Typography, { variant: "body2", children: t('main.minReceived') }), _jsx(Tooltip, { title: t('tooltip.minReceived'), sx: { cursor: 'help' }, children: _jsxs(Typography, { variant: "body2", children: [t('format.number', {
|
|
43
39
|
value: formatTokenAmount(BigInt(route.toAmountMin), route.toToken.decimals),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionDetails.js","sourceRoot":"","sources":["../../components/TransactionDetails.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,UAAU,EACV,UAAU,EACV,sBAAsB,GACvB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"TransactionDetails.js","sourceRoot":"","sources":["../../components/TransactionDetails.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,UAAU,EACV,UAAU,EACV,sBAAsB,GACvB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,+BAA+B,EAAE,MAAM,kBAAkB,CAAC;AACnE,OAAO,EACL,wBAAwB,EACxB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,IAAI,EAAE,MAAM,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IACN,CACR,CAAC;AACJ,CAAC,CAAC"}
|
package/_esm/config/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const name = "@lifi/widget";
|
|
2
|
-
export declare const version = "3.
|
|
2
|
+
export declare const version = "3.3.0";
|
package/_esm/config/version.js
CHANGED
|
@@ -6,10 +6,10 @@ const DEFAULT_DELAY = 1000;
|
|
|
6
6
|
// modified to work in the Widget codebase with Typescript
|
|
7
7
|
export function useTimer({ expiryTimestamp: expiry, onExpire, autoStart = true, }) {
|
|
8
8
|
const [expiryTimestamp, setExpiryTimestamp] = useState(expiry);
|
|
9
|
-
const [seconds, setSeconds] = useState(getSecondsFromExpiry(expiryTimestamp));
|
|
9
|
+
const [seconds, setSeconds] = useState(() => getSecondsFromExpiry(expiryTimestamp));
|
|
10
10
|
const [isRunning, setIsRunning] = useState(autoStart);
|
|
11
11
|
const [didStart, setDidStart] = useState(autoStart);
|
|
12
|
-
const [delay, setDelay] = useState(getDelayFromExpiryTimestamp(expiryTimestamp, DEFAULT_DELAY));
|
|
12
|
+
const [delay, setDelay] = useState(() => getDelayFromExpiryTimestamp(expiryTimestamp, DEFAULT_DELAY));
|
|
13
13
|
const handleExpire = useCallback(() => {
|
|
14
14
|
validateOnExpire(onExpire) && onExpire();
|
|
15
15
|
setIsRunning(false);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTimer.js","sourceRoot":"","sources":["../../../hooks/timer/useTimer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EACL,2BAA2B,EAC3B,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,YAAY,CAAC;AAEpB,MAAM,aAAa,GAAG,IAAI,CAAC;AAQ3B,4GAA4G;AAC5G,0DAA0D;AAC1D,MAAM,UAAU,QAAQ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AAQ,EAAE,MAAM,CAAC,CAAC,CAAC;IAExC,WAAW,CACT,GAAG,EAAE;QACH,IAAI,KAAK,KAAK,aAAa,EAAE,CAAC;YAC5B,QAAQ,CAAC,aAAa,CAAC,CAAC;QAC1B,CAAC;QACD,MAAM,YAAY,GAAG,oBAAoB,CAAC,eAAe,CAAC,CAAC;QAC3D,UAAU,CAAC,YAAY,CAAC,CAAC;QACzB,IAAI,YAAY,IAAI,CAAC,EAAE,CAAC;YACtB,YAAY,EAAE,CAAC;QACjB,CAAC;IACH,CAAC,EACD,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CACtB,CAAC;IAEF,OAAO;QACL,GAAG,kBAAkB,CAAC,OAAO,CAAC;QAC9B,KAAK;QACL,KAAK;QACL,MAAM;QACN,OAAO;QACP,SAAS;KACV,CAAC;AACJ,CAAC"}
|
package/_esm/i18n/en.json
CHANGED
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
},
|
|
170
170
|
"tooltip": {
|
|
171
171
|
"deselectAll": "Deselect all",
|
|
172
|
-
"estimatedTime": "Estimated
|
|
172
|
+
"estimatedTime": "Estimated time to complete the swap or bridge transaction, excluding chain switching and token approval.",
|
|
173
173
|
"minReceived": "The estimated minimum amount may change until the swapping/bridging transaction is signed. For 2-step transfers, this applies until the second step transaction is signed.",
|
|
174
174
|
"notFound": {
|
|
175
175
|
"text": "We couldn't find this page.",
|
|
@@ -196,7 +196,6 @@
|
|
|
196
196
|
"provider": "Provider fee"
|
|
197
197
|
},
|
|
198
198
|
"from": "From",
|
|
199
|
-
"gasCost": "Gas cost",
|
|
200
199
|
"inProgress": "in progress",
|
|
201
200
|
"maxSlippage": "Max. slippage",
|
|
202
201
|
"minReceived": "Min. received",
|
package/_esm/i18n/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import bn from './bn.json'
|
|
2
|
-
import de from './de.json'
|
|
3
|
-
import en from './en.json'
|
|
4
|
-
import es from './es.json'
|
|
5
|
-
import fr from './fr.json'
|
|
6
|
-
import id from './id.json'
|
|
7
|
-
import it from './it.json'
|
|
8
|
-
import ja from './ja.json'
|
|
9
|
-
import ko from './ko.json'
|
|
10
|
-
import pt from './pt.json'
|
|
11
|
-
import th from './th.json'
|
|
12
|
-
import tr from './tr.json'
|
|
13
|
-
import uk from './uk.json'
|
|
14
|
-
import vi from './vi.json'
|
|
15
|
-
import zh from './zh.json'
|
|
1
|
+
import bn from './bn.json' with { type: 'json' };
|
|
2
|
+
import de from './de.json' with { type: 'json' };
|
|
3
|
+
import en from './en.json' with { type: 'json' };
|
|
4
|
+
import es from './es.json' with { type: 'json' };
|
|
5
|
+
import fr from './fr.json' with { type: 'json' };
|
|
6
|
+
import id from './id.json' with { type: 'json' };
|
|
7
|
+
import it from './it.json' with { type: 'json' };
|
|
8
|
+
import ja from './ja.json' with { type: 'json' };
|
|
9
|
+
import ko from './ko.json' with { type: 'json' };
|
|
10
|
+
import pt from './pt.json' with { type: 'json' };
|
|
11
|
+
import th from './th.json' with { type: 'json' };
|
|
12
|
+
import tr from './tr.json' with { type: 'json' };
|
|
13
|
+
import uk from './uk.json' with { type: 'json' };
|
|
14
|
+
import vi from './vi.json' with { type: 'json' };
|
|
15
|
+
import zh from './zh.json' with { type: 'json' };
|
|
16
16
|
export { bn, de, en, es, fr, id, it, ja, ko, pt, th, tr, uk, vi, zh };
|
|
17
17
|
//# sourceMappingURL=index.js.map
|