@lifi/widget 3.14.2 → 3.15.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 +7 -0
- package/dist/esm/AppDrawer.style.d.ts +1 -1
- package/dist/esm/components/ActiveTransactions/ActiveTransactions.style.d.ts +3 -3
- package/dist/esm/components/AmountInput/AmountInput.style.d.ts +1 -1
- package/dist/esm/components/AmountInput/AmountInputAdornment.style.d.ts +2 -2
- package/dist/esm/components/AppContainer.d.ts +1 -1
- package/dist/esm/components/Avatar/Avatar.style.d.ts +1 -1
- package/dist/esm/components/Avatar/SmallAvatar.d.ts +1 -1
- package/dist/esm/components/ButtonTertiary.d.ts +1 -1
- package/dist/esm/components/Card/Card.d.ts +1 -1
- package/dist/esm/components/Card/CardButton.style.d.ts +2 -2
- package/dist/esm/components/Card/CardHeader.d.ts +1 -1
- package/dist/esm/components/Card/CardIconButton.d.ts +1 -1
- package/dist/esm/components/Card/CardLabel.d.ts +1 -1
- package/dist/esm/components/Card/CardTitle.d.ts +1 -1
- package/dist/esm/components/Card/InputCard.d.ts +1 -1
- package/dist/esm/components/ChainSelect/ChainSelect.style.d.ts +1 -1
- package/dist/esm/components/ContractComponent/NFT/NFT.style.d.ts +1 -1
- package/dist/esm/components/Header/Header.style.d.ts +3 -3
- package/dist/esm/components/Header/SettingsButton.style.d.ts +2 -2
- package/dist/esm/components/ListItem/ListItem.d.ts +1 -1
- package/dist/esm/components/ListItem/ListItemButton.d.ts +1 -1
- package/dist/esm/components/ListItemButton.d.ts +1 -1
- package/dist/esm/components/Messages/AccountNotDeployedMessage.d.ts +2 -0
- package/dist/esm/components/Messages/AccountNotDeployedMessage.js +10 -0
- package/dist/esm/components/Messages/AccountNotDeployedMessage.js.map +1 -0
- package/dist/esm/components/Messages/AlertMessage.js.map +1 -0
- package/dist/esm/components/Messages/AlertMessage.style.js.map +1 -0
- package/dist/esm/components/Messages/FundsSufficiencyMessage.d.ts +2 -0
- package/dist/esm/components/{GasMessage → Messages}/FundsSufficiencyMessage.js +3 -4
- package/dist/esm/components/Messages/FundsSufficiencyMessage.js.map +1 -0
- package/dist/esm/components/Messages/GasMessage.js.map +1 -0
- package/dist/esm/components/{GasMessage → Messages}/GasRefuelMessage.js +2 -2
- package/dist/esm/components/Messages/GasRefuelMessage.js.map +1 -0
- package/dist/esm/components/{GasMessage/GasMessage.style.js → Messages/GasRefuelMessage.style.js} +1 -1
- package/dist/esm/components/Messages/GasRefuelMessage.style.js.map +1 -0
- package/dist/esm/components/{GasMessage → Messages}/GasSufficiencyMessage.js +1 -1
- package/dist/esm/components/Messages/GasSufficiencyMessage.js.map +1 -0
- package/dist/esm/components/Messages/MainMessages.js +29 -0
- package/dist/esm/components/Messages/MainMessages.js.map +1 -0
- package/dist/esm/components/Messages/ToAddressRequiredMessage.d.ts +2 -0
- package/dist/esm/components/Messages/ToAddressRequiredMessage.js +13 -0
- package/dist/esm/components/Messages/ToAddressRequiredMessage.js.map +1 -0
- package/dist/esm/components/Messages/types.js.map +1 -0
- package/dist/esm/components/Messages/useMessageQueue.d.ts +11 -0
- package/dist/esm/components/Messages/useMessageQueue.js +48 -0
- package/dist/esm/components/Messages/useMessageQueue.js.map +1 -0
- package/dist/esm/components/PageContainer.d.ts +1 -1
- package/dist/esm/components/PoweredBy/PoweredBy.style.d.ts +1 -1
- package/dist/esm/components/ReverseTokensButton/ReverseTokensButton.style.d.ts +1 -1
- package/dist/esm/components/Routes/RoutesExpanded.style.d.ts +1 -1
- package/dist/esm/components/Search/SearchInput.style.d.ts +1 -1
- package/dist/esm/components/Search/SearchNotFound.style.d.ts +2 -2
- package/dist/esm/components/SelectTokenButton/SelectTokenButton.style.d.ts +3 -3
- package/dist/esm/components/SendToWallet/SendToWallet.style.d.ts +1 -1
- package/dist/esm/components/SettingsListItemButton.d.ts +1 -1
- package/dist/esm/components/Skeleton/WidgetSkeleton.style.d.ts +4 -4
- package/dist/esm/components/StepActions/StepActions.style.d.ts +2 -2
- package/dist/esm/components/StepDivider/StepDivider.style.d.ts +1 -1
- package/dist/esm/components/Tabs/Tabs.style.d.ts +3 -3
- package/dist/esm/components/Token/Token.style.d.ts +1 -1
- package/dist/esm/components/TokenList/TokenList.style.d.ts +2 -2
- package/dist/esm/components/TokenRate/TokenRate.style.d.ts +1 -1
- package/dist/esm/config/version.d.ts +1 -1
- package/dist/esm/config/version.js +1 -1
- package/dist/esm/hooks/useGasRefuel.js +1 -1
- package/dist/esm/hooks/useGasRefuel.js.map +1 -1
- package/dist/esm/hooks/useGasSufficiency.js +1 -1
- package/dist/esm/hooks/useGasSufficiency.js.map +1 -1
- package/dist/esm/hooks/useIsContractAddress.d.ts +4 -1
- package/dist/esm/hooks/useIsContractAddress.js +1 -2
- package/dist/esm/hooks/useIsContractAddress.js.map +1 -1
- package/dist/esm/hooks/useToAddressRequirements.d.ts +1 -0
- package/dist/esm/hooks/useToAddressRequirements.js +11 -2
- package/dist/esm/hooks/useToAddressRequirements.js.map +1 -1
- package/dist/esm/i18n/en.json +2 -1
- package/dist/esm/pages/MainPage/MainPage.js +2 -2
- package/dist/esm/pages/MainPage/MainPage.js.map +1 -1
- package/dist/esm/pages/MainPage/MainPage.style.d.ts +1 -1
- package/dist/esm/pages/MainPage/ReviewButton.js +3 -2
- package/dist/esm/pages/MainPage/ReviewButton.js.map +1 -1
- package/dist/esm/pages/RoutesPage/RoutesPage.style.d.ts +1 -1
- package/dist/esm/pages/SendToWallet/BookmarkAddressSheet.js +1 -1
- package/dist/esm/pages/SendToWallet/BookmarkAddressSheet.js.map +1 -1
- package/dist/esm/pages/SendToWallet/ConfirmAddressSheet.js +2 -2
- package/dist/esm/pages/SendToWallet/ConfirmAddressSheet.js.map +1 -1
- package/dist/esm/pages/SendToWallet/SendToWalletPage.style.d.ts +8 -8
- package/dist/esm/pages/SettingsPage/SettingsCard/SettingCard.style.d.ts +1 -1
- package/dist/esm/pages/SettingsPage/SlippageSettings/SlippageSettings.style.d.ts +1 -1
- package/dist/esm/pages/TransactionPage/TransactionPage.js +1 -1
- package/dist/esm/pages/TransactionPage/TransactionPage.js.map +1 -1
- package/dist/esm/utils/eip7702.d.ts +22 -0
- package/dist/esm/utils/eip7702.js +23 -0
- package/dist/esm/utils/eip7702.js.map +1 -0
- package/package.json +7 -7
- package/src/components/Messages/AccountNotDeployedMessage.tsx +22 -0
- package/src/components/{GasMessage → Messages}/FundsSufficiencyMessage.tsx +4 -4
- package/src/components/{GasMessage → Messages}/GasRefuelMessage.tsx +2 -2
- package/src/components/{GasMessage → Messages}/GasSufficiencyMessage.tsx +1 -1
- package/src/components/Messages/MainMessages.tsx +40 -0
- package/src/components/Messages/ToAddressRequiredMessage.tsx +27 -0
- package/src/components/Messages/useMessageQueue.ts +63 -0
- package/src/config/version.ts +1 -1
- package/src/hooks/useGasRefuel.ts +1 -1
- package/src/hooks/useGasSufficiency.ts +1 -1
- package/src/hooks/useIsContractAddress.ts +1 -2
- package/src/hooks/useToAddressRequirements.ts +23 -5
- package/src/i18n/en.json +2 -1
- package/src/pages/MainPage/MainPage.tsx +2 -2
- package/src/pages/MainPage/ReviewButton.tsx +6 -2
- package/src/pages/SendToWallet/BookmarkAddressSheet.tsx +1 -1
- package/src/pages/SendToWallet/ConfirmAddressSheet.tsx +2 -2
- package/src/pages/TransactionPage/TransactionPage.tsx +1 -1
- package/src/utils/eip7702.ts +23 -0
- package/dist/esm/components/AlertMessage/AlertMessage.js.map +0 -1
- package/dist/esm/components/AlertMessage/AlertMessage.style.js.map +0 -1
- package/dist/esm/components/AlertMessage/types.js.map +0 -1
- package/dist/esm/components/GasMessage/FundsSufficiencyMessage.d.ts +0 -1
- package/dist/esm/components/GasMessage/FundsSufficiencyMessage.js.map +0 -1
- package/dist/esm/components/GasMessage/GasMessage.js.map +0 -1
- package/dist/esm/components/GasMessage/GasMessage.style.js.map +0 -1
- package/dist/esm/components/GasMessage/GasRefuelMessage.js.map +0 -1
- package/dist/esm/components/GasMessage/GasSufficiencyMessage.js.map +0 -1
- package/dist/esm/components/ToAddressRequiredMessage.d.ts +0 -7
- package/dist/esm/components/ToAddressRequiredMessage.js +0 -18
- package/dist/esm/components/ToAddressRequiredMessage.js.map +0 -1
- package/dist/esm/pages/MainPage/MainMessages.js +0 -10
- package/dist/esm/pages/MainPage/MainMessages.js.map +0 -1
- package/src/components/ToAddressRequiredMessage.tsx +0 -44
- package/src/pages/MainPage/MainMessages.tsx +0 -17
- /package/dist/esm/components/{AlertMessage → Messages}/AlertMessage.d.ts +0 -0
- /package/dist/esm/components/{AlertMessage → Messages}/AlertMessage.js +0 -0
- /package/dist/esm/components/{AlertMessage → Messages}/AlertMessage.style.d.ts +0 -0
- /package/dist/esm/components/{AlertMessage → Messages}/AlertMessage.style.js +0 -0
- /package/dist/esm/components/{GasMessage → Messages}/GasMessage.d.ts +0 -0
- /package/dist/esm/components/{GasMessage → Messages}/GasMessage.js +0 -0
- /package/dist/esm/components/{GasMessage → Messages}/GasRefuelMessage.d.ts +0 -0
- /package/dist/esm/components/{GasMessage/GasMessage.style.d.ts → Messages/GasRefuelMessage.style.d.ts} +0 -0
- /package/dist/esm/components/{GasMessage → Messages}/GasSufficiencyMessage.d.ts +0 -0
- /package/dist/esm/{pages/MainPage → components/Messages}/MainMessages.d.ts +0 -0
- /package/dist/esm/components/{AlertMessage → Messages}/types.d.ts +0 -0
- /package/dist/esm/components/{AlertMessage → Messages}/types.js +0 -0
- /package/src/components/{AlertMessage → Messages}/AlertMessage.style.tsx +0 -0
- /package/src/components/{AlertMessage → Messages}/AlertMessage.tsx +0 -0
- /package/src/components/{GasMessage → Messages}/GasMessage.tsx +0 -0
- /package/src/components/{GasMessage/GasMessage.style.ts → Messages/GasRefuelMessage.style.ts} +0 -0
- /package/src/components/{AlertMessage → Messages}/types.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MainPage.js","sourceRoot":"","sources":["../../../../src/pages/MainPage/MainPage.tsx"],"names":[],"mappings":";AAAA,OAAO,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CAAC,IAAI,EACP,CAAC,WAAW,CAAC,CAAC,CAAC,KAAC,MAAM,IAAC,EAAE,EAAE,QAAQ,GAAI,CAAC,CAAC,CAAC,IAAI,EAC/C,KAAC,kBAAkB,IAAC,EAAE,EAAE,QAAQ,GAAI,EACpC,KAAC,gBAAgB,IAAC,EAAE,EAAE,CAAC,GAAI,EAC3B,KAAC,YAAY,IAAC,EAAE,EAAE,CAAC,GAAI,EACvB,MAAC,GAAG,IACF,EAAE,EAAE;oBACF,OAAO,EAAE,MAAM;oBACf,EAAE,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;oBACzB,GAAG,EAAE,GAAG;iBACT,aAED,KAAC,YAAY,KAAG,EAChB,KAAC,wBAAwB,KAAG,IACxB,EACL,aAAa,CAAC,CAAC,CAAC,KAAC,SAAS,KAAG,CAAC,CAAC,CAAC,IAAI,IACvB,CACjB,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const FormContainer: import("@emotion/styled").StyledComponent<import("@mui/material").ContainerOwnProps & import("@mui/material/OverridableComponent
|
|
1
|
+
export declare const FormContainer: import("@emotion/styled").StyledComponent<import("@mui/material").ContainerOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "fixed" | "maxWidth" | "children" | "sx" | "style" | "className" | "classes" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -17,7 +17,7 @@ export const ReviewButton = () => {
|
|
|
17
17
|
const { subvariant, subvariantOptions } = useWidgetConfig();
|
|
18
18
|
const splitState = useSplitSubvariantStore((state) => state.state);
|
|
19
19
|
const [toAddress] = useFieldValues('toAddress');
|
|
20
|
-
const { requiredToAddress } = useToAddressRequirements();
|
|
20
|
+
const { requiredToAddress, accountNotDeployedAtDestination } = useToAddressRequirements();
|
|
21
21
|
const { routes, setReviewableRoute } = useRoutes();
|
|
22
22
|
const currentRoute = routes?.[0];
|
|
23
23
|
const handleClick = async () => {
|
|
@@ -63,6 +63,7 @@ export const ReviewButton = () => {
|
|
|
63
63
|
return t('button.exchange');
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
|
-
return (_jsx(BaseTransactionButton, { text: getButtonText(), onClick: handleClick, disabled: currentRoute && requiredToAddress && !toAddress
|
|
66
|
+
return (_jsx(BaseTransactionButton, { text: getButtonText(), onClick: handleClick, disabled: (currentRoute && requiredToAddress && !toAddress) ||
|
|
67
|
+
accountNotDeployedAtDestination }));
|
|
67
68
|
};
|
|
68
69
|
//# sourceMappingURL=ReviewButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReviewButton.js","sourceRoot":"","sources":["../../../../src/pages/MainPage/ReviewButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,iEAAiE,CAAA;AACvG,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAA;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAA;AAClF,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAA;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,kDAAkD,CAAA;AAC1F,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AAElE,MAAM,CAAC,MAAM,YAAY,GAAa,GAAG,EAAE;IACzC,MAAM,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE,CAAA;IAC9B,MAAM,Q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AC,UAAU,eAAe,QAAQ,CAAC,CAAA;gBAC7C,CAAC;YACH,CAAC;QACH,CAAC;QACD,QAAQ,UAAU,EAAE,CAAC;YACnB,KAAK,QAAQ;gBACX,OAAO,iBAAiB,EAAE,MAAM,KAAK,SAAS;oBAC5C,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC;oBACrB,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAA;YACrB,KAAK,QAAQ;gBACX,OAAO,CAAC,CAAC,eAAe,CAAC,CAAA;YAC3B,KAAK,OAAO;gBACV,IAAI,UAAU,EAAE,CAAC;oBACf,OAAO,CAAC,CAAC,UAAU,UAAU,EAAE,CAAC,CAAA;gBAClC,CAAC;gBACD,OAAO,CAAC,CAAC,iBAAiB,CAAC,CAAA;YAC7B;gBACE,OAAO,CAAC,CAAC,iBAAiB,CAAC,CAAA;QAC/B,CAAC;IACH,CAAC,CAAA;IAED,OAAO,CACL,KAAC,qBAAqB,IACpB,IAAI,EAAE,aAAa,EAAE,EACrB,OAAO,EAAE,WAAW,EACpB,QAAQ,EACN,CAAC,YAAY,IAAI,iBAAiB,IAAI,CAAC,SAAS,CAAC;YACjD,+BAA+B,GAEjC,CACH,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const Stack: import("@emotion/styled").StyledComponent<import("@mui/material").StackOwnProps & import("@mui/material/OverridableComponent
|
|
1
|
+
export declare const Stack: import("@emotion/styled").StyledComponent<import("@mui/material").StackOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@mui/material/OverridableComponent").CommonProps | keyof import("@mui/material").StackOwnProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -3,9 +3,9 @@ import { Error as ErrorIcon, Info, TurnedIn } from '@mui/icons-material';
|
|
|
3
3
|
import { Button, Typography } from '@mui/material';
|
|
4
4
|
import { forwardRef, useState } from 'react';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
|
-
import { AlertMessage } from '../../components/AlertMessage/AlertMessage.js';
|
|
7
6
|
import { BottomSheet } from '../../components/BottomSheet/BottomSheet.js';
|
|
8
7
|
import { Input } from '../../components/Input.js';
|
|
8
|
+
import { AlertMessage } from '../../components/Messages/AlertMessage.js';
|
|
9
9
|
import { useAddressValidation } from '../../hooks/useAddressValidation.js';
|
|
10
10
|
import { useBookmarkActions } from '../../stores/bookmarks/useBookmarkActions.js';
|
|
11
11
|
import { AddressInput, BookmarkInputFields, IconContainer, SendToWalletButtonRow, SendToWalletCard, SendToWalletSheetContainer, SheetAddressContainer, SheetTitle, ValidationAlert, } from './SendToWalletPage.style.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BookmarkAddressSheet.js","sourceRoot":"","sources":["../../../../src/pages/SendToWallet/BookmarkAddressSheet.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AACxE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAElD,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"BookmarkAddressSheet.js","sourceRoot":"","sources":["../../../../src/pages/SendToWallet/BookmarkAddressSheet.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AACxE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAElD,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC5C,OAAO,EAAE,cAAc,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,IAAI,EAAC,OAAO,EACZ,YAAY,EAAC,KAAK,EAClB,WAAW,EAAC,KAAK,EACjB,cAAc,EAAC,KAAK,EACpB,UAAU,EAAC,OAAO,EAClB,QAAQ,EAAE,wBAAwB,EAClC,KAAK,EAAE,OAAO,EACd,WAAW,EAAE,CAAC,CAAC,2BAA2B,EAAE;oCAC1C,OAAO,EAAE,MAAM;iCAChB,CAAC,gBACU,CAAC,CAAC,2BAA2B,EAAE;oCACzC,OAAO,EAAE,MAAM;iCAChB,CAAC,EACF,OAAO,EAAE,CAAC,EACV,UAAU,EAAE,EAAE,SAAS,EAAE,GAAG,EAAE,EAC9B,SAAS,SACT,GACe,CACpB,EACA,KAAK,CAAC,CAAC,CAAC,CACP,KAAC,eAAe,IAAC,IAAI,EAAE,KAAC,SAAS,KAAG,YACjC,KAAK,CAAC,OAAO,GACE,CACnB,CAAC,CAAC,CAAC,IAAI,IACY,EACtB,KAAC,YAAY,IACX,KAAK,EACH,KAAC,UAAU,IAAC,OAAO,EAAC,OAAO,YACxB,CAAC,CAAC,8BAA8B,CAAC,GACvB,EAEf,IAAI,EAAE,KAAC,IAAI,KAAG,GACd,EACF,MAAC,qBAAqB,eACpB,KAAC,MAAM,IAAC,OAAO,EAAC,MAAM,EAAC,OAAO,EAAE,YAAY,EAAE,SAAS,kBACpD,CAAC,CAAC,eAAe,CAAC,GACZ,EACT,KAAC,MAAM,IACL,OAAO,EAAC,WAAW,EACnB,OAAO,EAAE,cAAc,EACvB,OAAO,EAAE,YAAY,EACrB,eAAe,EAAC,QAAQ,EACxB,SAAS,QACT,WAAW,kBAEV,CAAC,CAAC,iBAAiB,CAAC,GACd,IACa,IACG,GACjB,CACf,CAAA;AACH,CAAC,CAAC,CAAA"}
|
|
@@ -3,8 +3,8 @@ import { Info, Wallet, Warning } from '@mui/icons-material';
|
|
|
3
3
|
import { Box, Button, Typography } from '@mui/material';
|
|
4
4
|
import { forwardRef, useRef } from 'react';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
|
-
import { AlertMessage } from '../../components/AlertMessage/AlertMessage.js';
|
|
7
6
|
import { BottomSheet } from '../../components/BottomSheet/BottomSheet.js';
|
|
7
|
+
import { AlertMessage } from '../../components/Messages/AlertMessage.js';
|
|
8
8
|
import { useIsContractAddress } from '../../hooks/useIsContractAddress.js';
|
|
9
9
|
import { useNavigateBack } from '../../hooks/useNavigateBack.js';
|
|
10
10
|
import { useSetContentHeight } from '../../hooks/useSetContentHeight.js';
|
|
@@ -23,7 +23,7 @@ const ConfirmAddressSheetContent = ({ validatedBookmark, onConfirm, chainId, onC
|
|
|
23
23
|
const { navigateBack } = useNavigateBack();
|
|
24
24
|
const { setFieldValue } = useFieldActions();
|
|
25
25
|
const { setSendToWallet } = useSendToWalletActions();
|
|
26
|
-
const isContractAddress = useIsContractAddress(validatedBookmark?.address, chainId, validatedBookmark?.chainType);
|
|
26
|
+
const { isContractAddress } = useIsContractAddress(validatedBookmark?.address, chainId, validatedBookmark?.chainType);
|
|
27
27
|
const containerRef = useRef(null);
|
|
28
28
|
useSetContentHeight(containerRef, isContractAddress);
|
|
29
29
|
const handleConfirm = () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfirmAddressSheet.js","sourceRoot":"","sources":["../../../../src/pages/SendToWallet/ConfirmAddressSheet.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAC3D,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAEvD,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ConfirmAddressSheet.js","sourceRoot":"","sources":["../../../../src/pages/SendToWallet/ConfirmAddressSheet.tsx"],"names":[],"mappings":";AAA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EACxB,KAAC,YAAY,IACX,KAAK,EACH,KAAC,GAAG,IAAC,EAAE,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,YAClC,KAAC,UAAU,IAAC,OAAO,EAAC,OAAO,EAAC,UAAU,EAAE,GAAG,YACxC,CAAC,CAAC,8BAA8B,CAAC,GACvB,GACT,EAER,IAAI,EAAE,KAAC,IAAI,KAAG,EACd,SAAS,SACT,EACD,iBAAiB,CAAC,CAAC,CAAC,CACnB,KAAC,YAAY,IACX,KAAK,EACH,KAAC,UAAU,IAAC,OAAO,EAAC,OAAO,EAAC,UAAU,EAAE,GAAG,YACxC,CAAC,CAAC,mCAAmC,CAAC,GAC5B,EAEf,IAAI,EAAE,KAAC,OAAO,KAAG,EACjB,QAAQ,EAAC,SAAS,EAClB,SAAS,SACT,CACH,CAAC,CAAC,CAAC,IAAI,EACR,MAAC,qBAAqB,eACpB,KAAC,MAAM,IAAC,OAAO,EAAC,MAAM,EAAC,OAAO,EAAE,OAAO,EAAE,SAAS,kBAC/C,CAAC,CAAC,eAAe,CAAC,GACZ,EACT,KAAC,MAAM,IAAC,OAAO,EAAC,WAAW,EAAC,OAAO,EAAE,aAAa,EAAE,SAAS,kBAC1D,CAAC,CAAC,gBAAgB,CAAC,GACb,IACa,IACG,CAC9B,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import type { PageContainerProps } from '../../components/PageContainer.js';
|
|
2
2
|
export declare const AddressInput: import("@emotion/styled").StyledComponent<import("@mui/material").InputBaseProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
3
3
|
export declare const BookmarkInputFields: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
4
|
-
export declare const SendToWalletPageContainer: import("@emotion/styled").StyledComponent<import("@mui/material").ContainerOwnProps & import("@mui/material/OverridableComponent
|
|
4
|
+
export declare const SendToWalletPageContainer: import("@emotion/styled").StyledComponent<import("@mui/material").ContainerOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "fixed" | "maxWidth" | "children" | "sx" | "style" | "className" | "classes" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & PageContainerProps, {}, {}>;
|
|
5
5
|
interface FullHeightAdjustablePageContainerProps extends PageContainerProps {
|
|
6
6
|
enableFullHeight?: boolean;
|
|
7
7
|
}
|
|
8
|
-
export declare const FullHeightAdjustablePageContainer: import("@emotion/styled").StyledComponent<import("@mui/material").ContainerOwnProps & import("@mui/material/OverridableComponent
|
|
9
|
-
export declare const SendToWalletCard: import("@emotion/styled").StyledComponent<Pick<import("@mui/material").CardOwnProps & import("@mui/material/OverridableComponent
|
|
8
|
+
export declare const FullHeightAdjustablePageContainer: import("@emotion/styled").StyledComponent<import("@mui/material").ContainerOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "fixed" | "maxWidth" | "children" | "sx" | "style" | "className" | "classes" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & PageContainerProps & FullHeightAdjustablePageContainerProps, {}, {}>;
|
|
9
|
+
export declare const SendToWalletCard: import("@emotion/styled").StyledComponent<Pick<import("@mui/material").CardOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "children" | "sx" | "style" | "className" | "classes" | "variant" | "elevation" | "square" | "raised"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & import("../../components/Card/Card.js").CardProps, "title" | "theme" | "color" | "content" | "translate" | "children" | "ref" | "sx" | "slot" | "style" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "type" | "classes" | "variant" | "elevation" | "component" | "square" | "as" | "raised" | "selectionColor" | "indented"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
10
10
|
export declare const SendToWalletSheetContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
11
11
|
export declare const SendToWalletButtonRow: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
12
|
-
export declare const SendToWalletIconButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent
|
|
12
|
+
export declare const SendToWalletIconButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "color" | "children" | "sx" | "style" | "className" | "tabIndex" | "classes" | "variant" | "href" | "action" | "size" | "disabled" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "loading" | "loadingIndicator" | "loadingPosition" | "startIcon"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
13
13
|
export declare const IconContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
14
|
-
export declare const SheetTitle: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent
|
|
14
|
+
export declare const SheetTitle: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "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" | "classes" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variant" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
15
15
|
export declare const SheetAddressContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
16
|
-
export declare const ListContainer: import("@emotion/styled").StyledComponent<import("@mui/material").ListOwnProps & import("@mui/material/OverridableComponent
|
|
17
|
-
export declare const BookmarksListContainer: import("@emotion/styled").StyledComponent<import("@mui/material").ListOwnProps & import("@mui/material/OverridableComponent
|
|
16
|
+
export declare const ListContainer: import("@emotion/styled").StyledComponent<import("@mui/material").ListOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "children" | "sx" | "style" | "className" | "classes" | "dense" | "disablePadding" | "subheader"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
17
|
+
export declare const BookmarksListContainer: import("@emotion/styled").StyledComponent<import("@mui/material").ListOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "children" | "sx" | "style" | "className" | "classes" | "dense" | "disablePadding" | "subheader"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
18
18
|
export declare const BookmarkButtonContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
19
19
|
export declare const EmptyContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
20
20
|
export declare const ValidationAlert: import("@emotion/styled").StyledComponent<import("@mui/material").AlertProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
21
|
-
export declare const OptionsMenuButton: import("@emotion/styled").StyledComponent<import("@mui/material").IconButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent
|
|
21
|
+
export declare const OptionsMenuButton: import("@emotion/styled").StyledComponent<import("@mui/material").IconButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "color" | "children" | "sx" | "style" | "className" | "tabIndex" | "classes" | "action" | "size" | "disabled" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "loading" | "loadingIndicator" | "edge"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
22
22
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const SettingsList: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
2
|
-
export declare const Badge: import("@emotion/styled").StyledComponent<import("@mui/material").BadgeOwnProps & import("@mui/material/OverridableComponent
|
|
2
|
+
export declare const Badge: import("@emotion/styled").StyledComponent<import("@mui/material").BadgeOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "max" | "color" | "children" | "sx" | "style" | "className" | "classes" | "variant" | "slots" | "slotProps" | "componentsProps" | "anchorOrigin" | "badgeContent" | "components" | "invisible" | "overlap" | "showZero"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -3,7 +3,7 @@ export declare const SettingsFieldSet: import("@emotion/styled").StyledComponent
|
|
|
3
3
|
interface SlippageDefaultProps {
|
|
4
4
|
selected?: boolean;
|
|
5
5
|
}
|
|
6
|
-
export declare const SlippageDefaultButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonBaseOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent
|
|
6
|
+
export declare const SlippageDefaultButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonBaseOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "children" | "sx" | "style" | "className" | "tabIndex" | "classes" | "action" | "disabled" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef"> & import("@mui/system").MUIStyledCommonProps<Theme> & SlippageDefaultProps, {}, {}>;
|
|
7
7
|
export declare const SlippageCustomInput: import("@emotion/styled").StyledComponent<import("@mui/material").InputBaseProps & import("@mui/system").MUIStyledCommonProps<Theme> & SlippageDefaultProps, {}, {}>;
|
|
8
8
|
export declare const SlippageLimitsWarningContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
9
9
|
export {};
|
|
@@ -5,7 +5,7 @@ import { useEffect, useMemo, useRef, useState } from 'react';
|
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
6
|
import { useLocation } from 'react-router-dom';
|
|
7
7
|
import { ContractComponent } from '../../components/ContractComponent/ContractComponent.js';
|
|
8
|
-
import { GasMessage } from '../../components/
|
|
8
|
+
import { GasMessage } from '../../components/Messages/GasMessage.js';
|
|
9
9
|
import { PageContainer } from '../../components/PageContainer.js';
|
|
10
10
|
import { getStepList } from '../../components/Step/StepList.js';
|
|
11
11
|
import { TransactionDetails } from '../../components/TransactionDetails.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionPage.js","sourceRoot":"","sources":["../../../../src/pages/TransactionPage/TransactionPage.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACpD,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yDAAyD,CAAA;AAC3F,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"TransactionPage.js","sourceRoot":"","sources":["../../../../src/pages/TransactionPage/TransactionPage.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACpD,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yDAAyD,CAAA;AAC3F,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAA;AACpE,OAAO,EAAE,aA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,OAAO,EAAE,MAAM;yBAChB,aAED,KAAC,sBAAsB,IACrB,IAAI,EAAE,aAAa,EAAE,EACrB,OAAO,EAAE,gBAAgB,EACzB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,eAAe,GACxB,EACD,MAAM,KAAK,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CACxC,KAAC,OAAO,IACN,KAAK,EAAE,CAAC,CAAC,0BAA0B,CAAC,EACpC,SAAS,EAAC,YAAY,YAEtB,KAAC,MAAM,IACL,OAAO,EAAE,iBAAiB,EAC1B,EAAE,EAAE;wCACF,QAAQ,EAAE,EAAE;wCACZ,UAAU,EAAE,CAAC;qCACd,YAED,KAAC,MAAM,KAAG,GACH,GACD,CACX,CAAC,CAAC,CAAC,IAAI,IACJ,IACL,CACJ,CAAC,CAAC,CAAC,IAAI,EACP,MAAM,CAAC,CAAC,CAAC,KAAC,iBAAiB,IAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EACnE,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,CACzB,KAAC,qBAAqB,IACpB,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,wBAAwB,EAC7B,UAAU,EAAE,kBAAkB,GAC9B,CACH,CAAC,CAAC,CAAC,IAAI,EACR,KAAC,uBAAuB,IAAC,GAAG,EAAE,0BAA0B,GAAI,IAC9C,CACjB,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EIP-7702 introduces delegation designators that allow EOAs to delegate execution to other contracts.
|
|
3
|
+
* A delegation designator starts with 0xef0100 followed by the target contract address.
|
|
4
|
+
*
|
|
5
|
+
* When an EOA has this code, it means:
|
|
6
|
+
* - The EOA can still send transactions (unlike other contract accounts)
|
|
7
|
+
* - All contract calls are delegated to the target address
|
|
8
|
+
* - The code itself remains as the delegation designator (0xef0100 || address)
|
|
9
|
+
*
|
|
10
|
+
* Delegation Designator Structure:
|
|
11
|
+
*
|
|
12
|
+
* ─────┬───┬──┬───────────────────────────────────────┐
|
|
13
|
+
* │ │ │ │
|
|
14
|
+
* 0x ef 0100 a94f5374fce5edbc8e2a8697c15331677e6ebf0b
|
|
15
|
+
* │ │ └───────────────────────────────────────┘
|
|
16
|
+
* │ │ Target Address
|
|
17
|
+
* │ └── 7702
|
|
18
|
+
* └── 3541
|
|
19
|
+
*
|
|
20
|
+
* @see https://eips.ethereum.org/EIPS/eip-7702
|
|
21
|
+
*/
|
|
22
|
+
export declare const isDelegationDesignatorCode: (code?: string) => boolean | undefined;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EIP-7702 introduces delegation designators that allow EOAs to delegate execution to other contracts.
|
|
3
|
+
* A delegation designator starts with 0xef0100 followed by the target contract address.
|
|
4
|
+
*
|
|
5
|
+
* When an EOA has this code, it means:
|
|
6
|
+
* - The EOA can still send transactions (unlike other contract accounts)
|
|
7
|
+
* - All contract calls are delegated to the target address
|
|
8
|
+
* - The code itself remains as the delegation designator (0xef0100 || address)
|
|
9
|
+
*
|
|
10
|
+
* Delegation Designator Structure:
|
|
11
|
+
*
|
|
12
|
+
* ─────┬───┬──┬───────────────────────────────────────┐
|
|
13
|
+
* │ │ │ │
|
|
14
|
+
* 0x ef 0100 a94f5374fce5edbc8e2a8697c15331677e6ebf0b
|
|
15
|
+
* │ │ └───────────────────────────────────────┘
|
|
16
|
+
* │ │ Target Address
|
|
17
|
+
* │ └── 7702
|
|
18
|
+
* └── 3541
|
|
19
|
+
*
|
|
20
|
+
* @see https://eips.ethereum.org/EIPS/eip-7702
|
|
21
|
+
*/
|
|
22
|
+
export const isDelegationDesignatorCode = (code) => code?.startsWith('0xef0100');
|
|
23
|
+
//# sourceMappingURL=eip7702.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eip7702.js","sourceRoot":"","sources":["../../../src/utils/eip7702.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,IAAa,EAAE,EAAE,CAC1D,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lifi/widget",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.15.0",
|
|
4
4
|
"description": "LI.FI Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/esm/index.js",
|
|
@@ -36,20 +36,20 @@
|
|
|
36
36
|
"@emotion/styled": "^11.14.0",
|
|
37
37
|
"@lifi/sdk": "^3.5.2",
|
|
38
38
|
"@mui/icons-material": "6.0.2",
|
|
39
|
-
"@mui/material": "^6.4.
|
|
40
|
-
"@mui/system": "^6.4.
|
|
39
|
+
"@mui/material": "^6.4.2",
|
|
40
|
+
"@mui/system": "^6.4.2",
|
|
41
41
|
"@solana/wallet-adapter-base": "^0.9.23",
|
|
42
42
|
"@solana/web3.js": "^1.98.0",
|
|
43
|
-
"@tanstack/react-virtual": "^3.11.
|
|
44
|
-
"i18next": "^24.2.
|
|
43
|
+
"@tanstack/react-virtual": "^3.11.3",
|
|
44
|
+
"i18next": "^24.2.2",
|
|
45
45
|
"microdiff": "^1.5.0",
|
|
46
46
|
"mitt": "^3.0.1",
|
|
47
47
|
"react-i18next": "^15.4.0",
|
|
48
48
|
"react-intersection-observer": "^9.15.1",
|
|
49
49
|
"react-router-dom": "^6.28.0",
|
|
50
|
-
"viem": "^2.22.
|
|
50
|
+
"viem": "^2.22.17",
|
|
51
51
|
"zustand": "^5.0.3",
|
|
52
|
-
"@lifi/wallet-management": "^3.6.
|
|
52
|
+
"@lifi/wallet-management": "^3.6.1"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"@bigmi/react": ">=0.1.0",
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { WarningRounded } from '@mui/icons-material'
|
|
2
|
+
import { type BoxProps, Typography } from '@mui/material'
|
|
3
|
+
import { useTranslation } from 'react-i18next'
|
|
4
|
+
import { AlertMessage } from './AlertMessage.js'
|
|
5
|
+
|
|
6
|
+
export const AccountNotDeployedMessage: React.FC<BoxProps> = (props) => {
|
|
7
|
+
const { t } = useTranslation()
|
|
8
|
+
|
|
9
|
+
return (
|
|
10
|
+
<AlertMessage
|
|
11
|
+
title={
|
|
12
|
+
<Typography variant="body2" sx={{ color: 'text.primary' }}>
|
|
13
|
+
{t('warning.message.accountNotDeployedMessage')}
|
|
14
|
+
</Typography>
|
|
15
|
+
}
|
|
16
|
+
icon={<WarningRounded />}
|
|
17
|
+
severity="warning"
|
|
18
|
+
multiline
|
|
19
|
+
{...props}
|
|
20
|
+
/>
|
|
21
|
+
)
|
|
22
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { WarningRounded } from '@mui/icons-material'
|
|
2
|
-
import { Typography } from '@mui/material'
|
|
2
|
+
import { type BoxProps, Typography } from '@mui/material'
|
|
3
3
|
import { useTranslation } from 'react-i18next'
|
|
4
|
-
import { AlertMessage } from '
|
|
4
|
+
import { AlertMessage } from './AlertMessage.js'
|
|
5
5
|
|
|
6
|
-
export const FundsSufficiencyMessage = () => {
|
|
6
|
+
export const FundsSufficiencyMessage: React.FC<BoxProps> = (props) => {
|
|
7
7
|
const { t } = useTranslation()
|
|
8
8
|
return (
|
|
9
9
|
<AlertMessage
|
|
@@ -13,7 +13,6 @@ export const FundsSufficiencyMessage = () => {
|
|
|
13
13
|
<Typography
|
|
14
14
|
variant="body2"
|
|
15
15
|
sx={{
|
|
16
|
-
px: 1,
|
|
17
16
|
color: 'text.primary',
|
|
18
17
|
}}
|
|
19
18
|
>
|
|
@@ -21,6 +20,7 @@ export const FundsSufficiencyMessage = () => {
|
|
|
21
20
|
</Typography>
|
|
22
21
|
}
|
|
23
22
|
multiline
|
|
23
|
+
{...props}
|
|
24
24
|
/>
|
|
25
25
|
)
|
|
26
26
|
}
|
|
@@ -6,8 +6,8 @@ import { useTranslation } from 'react-i18next'
|
|
|
6
6
|
import { useGasRefuel } from '../../hooks/useGasRefuel.js'
|
|
7
7
|
import { useSettings } from '../../stores/settings/useSettings.js'
|
|
8
8
|
import { useSettingsActions } from '../../stores/settings/useSettingsActions.js'
|
|
9
|
-
import { AlertMessage } from '
|
|
10
|
-
import { InfoMessageSwitch } from './
|
|
9
|
+
import { AlertMessage } from './AlertMessage.js'
|
|
10
|
+
import { InfoMessageSwitch } from './GasRefuelMessage.style.js'
|
|
11
11
|
|
|
12
12
|
export const GasRefuelMessage: React.FC<BoxProps> = (props) => {
|
|
13
13
|
const { t } = useTranslation()
|
|
@@ -3,7 +3,7 @@ import { Typography } from '@mui/material'
|
|
|
3
3
|
import { useTranslation } from 'react-i18next'
|
|
4
4
|
import { formatUnits } from 'viem'
|
|
5
5
|
import type { GasSufficiency } from '../../hooks/useGasSufficiency.js'
|
|
6
|
-
import { AlertMessage } from '
|
|
6
|
+
import { AlertMessage } from './AlertMessage.js'
|
|
7
7
|
|
|
8
8
|
interface GasSufficiencyMessageProps {
|
|
9
9
|
insufficientGas?: GasSufficiency[]
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { BoxProps } from '@mui/material'
|
|
2
|
+
import { Collapse } from '@mui/material'
|
|
3
|
+
import { useRoutes } from '../../hooks/useRoutes.js'
|
|
4
|
+
import { AccountNotDeployedMessage } from './AccountNotDeployedMessage.js'
|
|
5
|
+
import { FundsSufficiencyMessage } from './FundsSufficiencyMessage.js'
|
|
6
|
+
import { GasSufficiencyMessage } from './GasSufficiencyMessage.js'
|
|
7
|
+
import { ToAddressRequiredMessage } from './ToAddressRequiredMessage.js'
|
|
8
|
+
import { useMessageQueue } from './useMessageQueue.js'
|
|
9
|
+
|
|
10
|
+
export const MainMessages: React.FC<BoxProps> = (props) => {
|
|
11
|
+
const { routes } = useRoutes()
|
|
12
|
+
const currentRoute = routes?.[0]
|
|
13
|
+
const { currentMessage, hasMessages } = useMessageQueue(currentRoute)
|
|
14
|
+
|
|
15
|
+
const getMessage = () => {
|
|
16
|
+
switch (currentMessage?.id) {
|
|
17
|
+
case 'INSUFFICIENT_FUNDS':
|
|
18
|
+
return <FundsSufficiencyMessage {...props} />
|
|
19
|
+
case 'INSUFFICIENT_GAS':
|
|
20
|
+
return (
|
|
21
|
+
<GasSufficiencyMessage
|
|
22
|
+
insufficientGas={currentMessage.props?.insufficientGas}
|
|
23
|
+
{...props}
|
|
24
|
+
/>
|
|
25
|
+
)
|
|
26
|
+
case 'ACCOUNT_NOT_DEPLOYED':
|
|
27
|
+
return <AccountNotDeployedMessage {...props} />
|
|
28
|
+
case 'TO_ADDRESS_REQUIRED':
|
|
29
|
+
return <ToAddressRequiredMessage {...props} />
|
|
30
|
+
default:
|
|
31
|
+
return null
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return (
|
|
36
|
+
<Collapse in={hasMessages} timeout={225} unmountOnExit mountOnEnter>
|
|
37
|
+
{getMessage()}
|
|
38
|
+
</Collapse>
|
|
39
|
+
)
|
|
40
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Wallet } from '@mui/icons-material'
|
|
2
|
+
import type { BoxProps } from '@mui/material'
|
|
3
|
+
import { Typography } from '@mui/material'
|
|
4
|
+
import { useTranslation } from 'react-i18next'
|
|
5
|
+
import { AlertMessage } from './AlertMessage.js'
|
|
6
|
+
|
|
7
|
+
export const ToAddressRequiredMessage: React.FC<BoxProps> = ({ ...props }) => {
|
|
8
|
+
const { t } = useTranslation()
|
|
9
|
+
return (
|
|
10
|
+
<AlertMessage
|
|
11
|
+
title={
|
|
12
|
+
<Typography
|
|
13
|
+
variant="body2"
|
|
14
|
+
sx={{
|
|
15
|
+
px: 1,
|
|
16
|
+
color: 'text.primary',
|
|
17
|
+
}}
|
|
18
|
+
>
|
|
19
|
+
{t('info.message.toAddressIsRequired')}
|
|
20
|
+
</Typography>
|
|
21
|
+
}
|
|
22
|
+
icon={<Wallet />}
|
|
23
|
+
multiline
|
|
24
|
+
{...props}
|
|
25
|
+
/>
|
|
26
|
+
)
|
|
27
|
+
}
|