@lifi/widget 1.32.1 → 1.32.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/cjs/components/ActiveSwaps/ActiveSwapItem.js +1 -1
  2. package/cjs/components/ActiveSwaps/ActiveSwaps.style.js +1 -1
  3. package/cjs/components/Card/Card.d.ts +0 -2
  4. package/cjs/components/Card/Card.js +2 -8
  5. package/cjs/components/ChainSelect/ChainSelect.style.d.ts +0 -1
  6. package/cjs/components/Header/WalletHeader.js +1 -1
  7. package/cjs/components/ListItemButton.js +1 -1
  8. package/cjs/components/SwapRouteCard/SwapRouteCard.js +1 -1
  9. package/cjs/components/SwapRouteCard/SwapRouteCardSkeleton.js +1 -1
  10. package/cjs/components/TokenList/TokenListItem.js +1 -1
  11. package/cjs/config/theme.js +25 -0
  12. package/cjs/config/version.d.ts +1 -1
  13. package/cjs/config/version.js +1 -1
  14. package/cjs/i18n/it.json +8 -8
  15. package/cjs/i18n/zh.json +8 -8
  16. package/cjs/pages/SelectChainPage/SelectChainPage.js +1 -1
  17. package/cjs/pages/SelectEnabledToolsPage/SelectEnabledToolsPage.js +1 -1
  18. package/cjs/pages/SelectNativeTokenPage/SelectNativeTokenPage.js +1 -1
  19. package/cjs/pages/SelectWalletPage/SelectWalletPage.js +1 -1
  20. package/cjs/pages/SettingsPage/EnabledToolsButton.js +1 -1
  21. package/cjs/utils/colors.d.ts +2 -2
  22. package/cjs/utils/colors.js +1 -3
  23. package/components/ActiveSwaps/ActiveSwapItem.js +1 -1
  24. package/components/ActiveSwaps/ActiveSwaps.style.js +1 -1
  25. package/components/Card/Card.d.ts +0 -2
  26. package/components/Card/Card.js +2 -8
  27. package/components/ChainSelect/ChainSelect.style.d.ts +0 -1
  28. package/components/Header/WalletHeader.js +1 -1
  29. package/components/ListItemButton.js +1 -1
  30. package/components/SwapRouteCard/SwapRouteCard.js +1 -1
  31. package/components/SwapRouteCard/SwapRouteCardSkeleton.js +1 -1
  32. package/components/TokenList/TokenListItem.js +1 -1
  33. package/config/theme.js +25 -0
  34. package/config/version.d.ts +1 -1
  35. package/config/version.js +1 -1
  36. package/i18n/it.json +8 -8
  37. package/i18n/zh.json +8 -8
  38. package/package.json +4 -4
  39. package/pages/SelectChainPage/SelectChainPage.js +1 -1
  40. package/pages/SelectEnabledToolsPage/SelectEnabledToolsPage.js +1 -1
  41. package/pages/SelectNativeTokenPage/SelectNativeTokenPage.js +1 -1
  42. package/pages/SelectWalletPage/SelectWalletPage.js +1 -1
  43. package/pages/SettingsPage/EnabledToolsButton.js +1 -1
  44. package/tsconfig.cjs.tsbuildinfo +1 -1
  45. package/utils/colors.d.ts +2 -2
  46. package/utils/colors.js +1 -3
package/i18n/it.json CHANGED
@@ -6,7 +6,6 @@
6
6
  "contactSupport": "Contatta l'assistenza",
7
7
  "continue": "Continua",
8
8
  "copyAddress": "Copia indirizzo",
9
- "viewOnExplorer": "Visualizza sull'Explorer",
10
9
  "dark": "Scuro",
11
10
  "delete": "Elimina",
12
11
  "disconnect": "Disconnetti",
@@ -19,6 +18,8 @@
19
18
  "ok": "Ok",
20
19
  "okay": "Okay",
21
20
  "removeSwap": "Rimuovi lo scambio",
21
+ "reset": "Ripristina",
22
+ "resetSettings": "Ripristina impostazioni",
22
23
  "restartSwap": "Riavvia lo scambio",
23
24
  "reviewGasSwap": "Rivedi lo scambio di gas",
24
25
  "reviewSwap": "Rivedi lo scambio",
@@ -27,7 +28,8 @@
27
28
  "startGasSwap": "Inizia lo scambio di gas",
28
29
  "startSwap": "Avvia lo scambio",
29
30
  "swap": "Scambio",
30
- "tryAgain": "Riprova"
31
+ "tryAgain": "Riprova",
32
+ "viewOnExplorer": "Visualizza sull'Explorer"
31
33
  },
32
34
  "format": {
33
35
  "currency": "{{value, currency(currency: USD)}}",
@@ -54,7 +56,6 @@
54
56
  "title": "Lingua"
55
57
  },
56
58
  "settings": {
57
- "advancedPreferences": "Preferenze avanzate",
58
59
  "enabledBridges": "Bridge abilitati",
59
60
  "enabledExchanges": "Exchange abilitati",
60
61
  "gasPrice": {
@@ -63,10 +64,7 @@
63
64
  "slow": "Lento",
64
65
  "title": "Prezzo gas"
65
66
  },
66
- "resetToDefault": "Ripristina le impostazioni predefinite",
67
67
  "routePriority": "Priorità di route",
68
- "selectEnabledBridges": "Selezionare i bridge abilitati",
69
- "selectEnabledExchanges": "Seleziona gli exchange abilitati",
70
68
  "showDestinationWallet": "Mostra il portafoglio di destinazione",
71
69
  "slippage": "Slittamento"
72
70
  },
@@ -201,7 +199,8 @@
201
199
  "highValueLoss": "Il valore dei token ricevuti è significativamente inferiore ai token scambiati più il costo della transazione.",
202
200
  "insufficientFunds": "Non hai abbastanza fondi per eseguire lo scambio.",
203
201
  "insufficientGas": "È necessario aggiungere almeno:",
204
- "rateChanged": "Il tasso di scambio è cambiato. Se procedi, confermi di accettare il nuovo tasso."
202
+ "rateChanged": "Il tasso di scambio è cambiato. Se procedi, confermi di accettare il nuovo tasso.",
203
+ "resetSettings": "Questo porterà al ripristino della priorità di route, slittamento di prezzo, prezzo del gas, bridge abilitati ed exchanges."
205
204
  },
206
205
  "title": {
207
206
  "deleteActiveSwaps": "Cancellare tutti gli scambi attivi?",
@@ -209,7 +208,8 @@
209
208
  "deleteSwapHistory": "Cancellare la cronologia degli scambi?",
210
209
  "highValueLoss": "Perdita di valore elevato",
211
210
  "insufficientGas": "Gas insufficiente",
212
- "rateChanged": "Tasso cambiato"
211
+ "rateChanged": "Tasso cambiato",
212
+ "resetSettings": "Ripristinare le impostazioni?"
213
213
  }
214
214
  }
215
215
  },
package/i18n/zh.json CHANGED
@@ -6,7 +6,6 @@
6
6
  "contactSupport": "联系我们",
7
7
  "continue": "继续",
8
8
  "copyAddress": "复制地址",
9
- "viewOnExplorer": "在区块链浏览器上查看",
10
9
  "dark": "深色模式",
11
10
  "delete": "删除",
12
11
  "disconnect": "断开连接",
@@ -19,6 +18,8 @@
19
18
  "ok": "确认",
20
19
  "okay": "确认",
21
20
  "removeSwap": "删除该兑换",
21
+ "reset": "重置",
22
+ "resetSettings": "恢复默认设置",
22
23
  "restartSwap": "重新兑换",
23
24
  "reviewGasSwap": "查看燃气费兑换",
24
25
  "reviewSwap": "查看该兑换",
@@ -27,7 +28,8 @@
27
28
  "startGasSwap": "开始兑换燃气费",
28
29
  "startSwap": "开始兑换",
29
30
  "swap": "兑换",
30
- "tryAgain": "重试"
31
+ "tryAgain": "重试",
32
+ "viewOnExplorer": "在区块链浏览器上查看"
31
33
  },
32
34
  "format": {
33
35
  "currency": "{{value, currency(currency: USD)}}",
@@ -54,7 +56,6 @@
54
56
  "title": "语言"
55
57
  },
56
58
  "settings": {
57
- "advancedPreferences": "偏好设置",
58
59
  "enabledBridges": "已选中的跨链桥",
59
60
  "enabledExchanges": "已选中的交易所",
60
61
  "gasPrice": {
@@ -63,10 +64,7 @@
63
64
  "slow": "缓慢",
64
65
  "title": "燃气费"
65
66
  },
66
- "resetToDefault": "重置为默认值",
67
67
  "routePriority": "路由优先级",
68
- "selectEnabledBridges": "选择要使用的跨链桥",
69
- "selectEnabledExchanges": "选择要使用的交易所",
70
68
  "showDestinationWallet": "显示收款钱包",
71
69
  "slippage": "滑点"
72
70
  },
@@ -201,7 +199,8 @@
201
199
  "highValueLoss": "收到的代币的价值明显低于要被兑换的代币和交易成本。",
202
200
  "insufficientFunds": "你没有足够的资金来执行这笔兑换。",
203
201
  "insufficientGas": "你至少需要:",
204
- "rateChanged": "兑换比例已经改变,如果继续兑换,您将接受新的兑换比例。"
202
+ "rateChanged": "兑换比例已经改变,如果继续兑换,您将接受新的兑换比例。",
203
+ "resetSettings": "这将重置您的路由优先级,滑点,燃气费,选中的跨链桥和链上交易所。"
205
204
  },
206
205
  "title": {
207
206
  "deleteActiveSwaps": "确定要清空正在进行的兑换记录?",
@@ -209,7 +208,8 @@
209
208
  "deleteSwapHistory": "确定要清空兑换记录?",
210
209
  "highValueLoss": "大额资金损失",
211
210
  "insufficientGas": "燃料费不足",
212
- "rateChanged": "兑换比例变动"
211
+ "rateChanged": "兑换比例变动",
212
+ "resetSettings": "确定要恢复默认设置吗?"
213
213
  }
214
214
  }
215
215
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifi/widget",
3
- "version": "1.32.1",
3
+ "version": "1.32.2",
4
4
  "description": "LI.FI Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.",
5
5
  "main": "./cjs/index.js",
6
6
  "module": "./index.js",
@@ -37,14 +37,14 @@
37
37
  "lifi"
38
38
  ],
39
39
  "dependencies": {
40
- "@emotion/react": "^11.10.5",
41
- "@emotion/styled": "^11.10.5",
40
+ "@emotion/react": "^11.10.6",
41
+ "@emotion/styled": "^11.10.6",
42
42
  "@ethersproject/abstract-signer": "^5.7.0",
43
43
  "@ethersproject/address": "^5.7.0",
44
44
  "@ethersproject/experimental": "^5.7.0",
45
45
  "@ethersproject/providers": "^5.7.2",
46
46
  "@lifi/sdk": "^1.7.2",
47
- "@lifi/wallet-management": "^1.2.7",
47
+ "@lifi/wallet-management": "^1.2.8",
48
48
  "@mui/icons-material": "^5.11.9",
49
49
  "@mui/lab": "^5.0.0-alpha.120",
50
50
  "@mui/material": "^5.11.9",
@@ -21,5 +21,5 @@ export const SelectChainPage = ({ formType, selectNativeToken, }) => {
21
21
  return (_jsx(Container, { disableGutters: true, children: _jsx(List, { sx: {
22
22
  paddingLeft: 1.5,
23
23
  paddingRight: 1.5,
24
- }, children: chains?.map((chain) => (_jsxs(ListItemButton, { onClick: () => handleClick(chain), disableRipple: true, children: [_jsx(ListItemAvatar, { children: _jsx(Avatar, { src: chain.logoURI, alt: chain.name, children: chain.name[0] }) }), _jsx(ListItemText, { primary: chain.name })] }, chain.id))) }) }));
24
+ }, children: chains?.map((chain) => (_jsxs(ListItemButton, { onClick: () => handleClick(chain), children: [_jsx(ListItemAvatar, { children: _jsx(Avatar, { src: chain.logoURI, alt: chain.name, children: chain.name[0] }) }), _jsx(ListItemText, { primary: chain.name })] }, chain.id))) }) }));
25
25
  };
@@ -43,5 +43,5 @@ export const SelectEnabledToolsPage = ({ type }) => {
43
43
  return (_jsx(Container, { disableGutters: true, children: _jsx(List, { sx: {
44
44
  paddingLeft: 1.5,
45
45
  paddingRight: 1.5,
46
- }, children: tools?.[typeKey].map((tool) => (_jsxs(ListItemButton, { onClick: () => handleClick(tool.key), disableRipple: true, children: [_jsx(ListItemAvatar, { children: _jsx(Avatar, { src: tool.logoURI, alt: tool.name, children: tool.name[0] }) }), _jsx(ListItemText, { primary: tool.name }), enabledTools?.includes(tool.key) ? (_jsx(CheckBox, { color: "primary" })) : (_jsx(CheckBoxOutlineBlankOutlined, {}))] }, tool.name))) }) }));
46
+ }, children: tools?.[typeKey].map((tool) => (_jsxs(ListItemButton, { onClick: () => handleClick(tool.key), children: [_jsx(ListItemAvatar, { children: _jsx(Avatar, { src: tool.logoURI, alt: tool.name, children: tool.name[0] }) }), _jsx(ListItemText, { primary: tool.name }), enabledTools?.includes(tool.key) ? (_jsx(CheckBox, { color: "primary" })) : (_jsx(CheckBoxOutlineBlankOutlined, {}))] }, tool.name))) }) }));
47
47
  };
@@ -14,5 +14,5 @@ export const SelectNativeTokenPage = ({ formType, }) => {
14
14
  return (_jsx(Container, { disableGutters: true, children: _jsx(List, { sx: {
15
15
  paddingLeft: 1.5,
16
16
  paddingRight: 1.5,
17
- }, children: chains?.map((chain) => (_jsxs(ListItemButton, { onClick: () => selectToken(chain.nativeToken.address, chain.id), disableRipple: true, children: [_jsx(ListItemAvatar, { children: _jsx(TokenAvatar, { token: chain.nativeToken, chain: chain }) }), _jsx(ListItemText, { primary: chain.nativeToken.symbol, secondary: t('swap.onChain', { chainName: chain.name }) })] }, chain.id))) }) }));
17
+ }, children: chains?.map((chain) => (_jsxs(ListItemButton, { onClick: () => selectToken(chain.nativeToken.address, chain.id), children: [_jsx(ListItemAvatar, { children: _jsx(TokenAvatar, { token: chain.nativeToken, chain: chain }) }), _jsx(ListItemText, { primary: chain.nativeToken.symbol, secondary: t('swap.onChain', { chainName: chain.name }) })] }, chain.id))) }) }));
18
18
  };
@@ -37,7 +37,7 @@ export const SelectWalletPage = () => {
37
37
  return (_jsxs(Container, { disableGutters: true, children: [_jsx(List, { sx: {
38
38
  paddingLeft: 1.5,
39
39
  paddingRight: 1.5,
40
- }, children: supportedWallets.map((wallet) => (_jsxs(ListItemButton, { onClick: () => handleConnect(wallet), disableRipple: true, children: [_jsx(ListItemAvatar, { children: _jsx(Avatar, { src: wallet.icon.src || wallet.icon, alt: wallet.name, children: wallet.name[0] }) }), _jsx(ListItemText, { primary: wallet.name })] }, wallet.name))) }), _jsxs(Dialog, { open: walletIdentity.show, onClose: closeDialog, children: [_jsx(DialogContent, { children: _jsx(DialogContentText, { children: t('wallet.extensionNotFound', {
40
+ }, children: supportedWallets.map((wallet) => (_jsxs(ListItemButton, { onClick: () => handleConnect(wallet), children: [_jsx(ListItemAvatar, { children: _jsx(Avatar, { src: wallet.icon.src || wallet.icon, alt: wallet.name, children: wallet.name[0] }) }), _jsx(ListItemText, { primary: wallet.name })] }, wallet.name))) }), _jsxs(Dialog, { open: walletIdentity.show, onClose: closeDialog, children: [_jsx(DialogContent, { children: _jsx(DialogContentText, { children: t('wallet.extensionNotFound', {
41
41
  name: walletIdentity.wallet?.name,
42
42
  }) }) }), _jsx(DialogActions, { children: _jsx(Button, { variant: "contained", onClick: closeDialog, autoFocus: true, children: t('button.ok') }) })] })] }));
43
43
  };
@@ -17,5 +17,5 @@ export const EnabledToolsButton = ({ type }) => {
17
17
  const handleClick = () => {
18
18
  navigate(navigationRoutes[type.toLowerCase()]);
19
19
  };
20
- return (_jsxs(ListItemButton, { onClick: handleClick, disableRipple: true, children: [_jsx(ListItemText, { primary: t(`settings.enabled${type}`) }), _jsxs(Box, { display: "flex", alignItems: "center", children: [_jsx(ListItemText, { primary: `${enabledTools}/${tools}` }), _jsx(ChevronRightIcon, {})] })] }));
20
+ return (_jsxs(ListItemButton, { onClick: handleClick, children: [_jsx(ListItemText, { primary: t(`settings.enabled${type}`) }), _jsxs(Box, { display: "flex", alignItems: "center", children: [_jsx(ListItemText, { primary: `${enabledTools}/${tools}` }), _jsx(ChevronRightIcon, {})] })] }));
21
21
  };