@rango-dev/widget-embedded 0.33.2-next.9 → 0.33.3
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 +4 -0
- package/dist/components/WalletStatefulConnect/ExperimentalChainStatus.d.ts.map +1 -1
- package/dist/containers/Settings/Lists.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +3 -3
- package/dist/pages/HistoryPage.d.ts.map +1 -1
- package/dist/widget-embedded.build.json +1 -1
- package/package.json +8 -8
- package/src/components/BlockchainList/BlockchainList.tsx +1 -1
- package/src/components/BlockchainsSection/BlockchainsSection.tsx +1 -1
- package/src/components/HeaderButtons/HeaderButtons.tsx +1 -1
- package/src/components/Slippage/SlippageTooltipContent.tsx +3 -3
- package/src/components/SwapDetails/SwapDetails.Placeholder.tsx +1 -1
- package/src/components/SwapDetails/SwapDetails.tsx +2 -2
- package/src/components/WalletStatefulConnect/ExperimentalChain.tsx +1 -1
- package/src/components/WalletStatefulConnect/ExperimentalChainStatus.helpers.ts +2 -2
- package/src/components/WalletStatefulConnect/ExperimentalChainStatus.tsx +1 -2
- package/src/containers/Settings/Lists.tsx +1 -2
- package/src/hooks/useFetchCustomToken.ts +1 -1
- package/src/pages/HistoryPage.tsx +8 -6
- package/src/pages/LanguagePage.tsx +1 -1
- package/src/pages/SelectBlockchainPage.tsx +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rango-dev/widget-embedded",
|
|
3
|
-
"version": "0.33.
|
|
3
|
+
"version": "0.33.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "./src/index.ts",
|
|
@@ -25,15 +25,15 @@
|
|
|
25
25
|
"@lingui/core": "4.2.1",
|
|
26
26
|
"@lingui/react": "4.2.1",
|
|
27
27
|
"@rango-dev/logging-core": "^0.6.0",
|
|
28
|
-
"@rango-dev/provider-all": "^0.37.
|
|
28
|
+
"@rango-dev/provider-all": "^0.37.3",
|
|
29
29
|
"@rango-dev/queue-manager-core": "^0.27.0",
|
|
30
|
-
"@rango-dev/queue-manager-rango-preset": "^0.37.
|
|
30
|
+
"@rango-dev/queue-manager-rango-preset": "^0.37.0",
|
|
31
31
|
"@rango-dev/queue-manager-react": "^0.27.0",
|
|
32
|
-
"@rango-dev/signer-solana": "^0.32.
|
|
33
|
-
"@rango-dev/ui": "^0.39.
|
|
34
|
-
"@rango-dev/wallets-core": "^0.38.
|
|
35
|
-
"@rango-dev/wallets-react": "^0.23.
|
|
36
|
-
"@rango-dev/wallets-shared": "^0.37.
|
|
32
|
+
"@rango-dev/signer-solana": "^0.32.0",
|
|
33
|
+
"@rango-dev/ui": "^0.39.0",
|
|
34
|
+
"@rango-dev/wallets-core": "^0.38.0",
|
|
35
|
+
"@rango-dev/wallets-react": "^0.23.0",
|
|
36
|
+
"@rango-dev/wallets-shared": "^0.37.0",
|
|
37
37
|
"bignumber.js": "^9.1.1",
|
|
38
38
|
"copy-to-clipboard": "^3.3.3",
|
|
39
39
|
"dayjs": "^1.11.7",
|
|
@@ -83,7 +83,7 @@ export function HeaderButtons(props: HeaderButtonsPropTypes) {
|
|
|
83
83
|
<Tooltip
|
|
84
84
|
container={getContainer()}
|
|
85
85
|
side="top"
|
|
86
|
-
content={i18n.t('History')}>
|
|
86
|
+
content={i18n.t('Transactions History')}>
|
|
87
87
|
<HeaderButton size="small" variant="ghost" onClick={onClickHistory}>
|
|
88
88
|
<TransactionIcon size={18} color="black" />
|
|
89
89
|
<InProgressTransactionBadge />
|
|
@@ -9,13 +9,13 @@ export function SlippageTooltipContent() {
|
|
|
9
9
|
<SlippageTooltipContainer>
|
|
10
10
|
<Typography variant="label" size="medium" color="neutral700">
|
|
11
11
|
{i18n.t(
|
|
12
|
-
'Your transaction will be reverted if the price changes unfavorably by more than this percentage
|
|
12
|
+
'Your transaction will be reverted if the price changes unfavorably by more than this percentage'
|
|
13
13
|
)}
|
|
14
14
|
<br />
|
|
15
15
|
<br />
|
|
16
|
-
<b>{i18n.t('Warning')}</b
|
|
16
|
+
<b>{i18n.t('Warning')}</b>:
|
|
17
17
|
{i18n.t(
|
|
18
|
-
'This setting is applied
|
|
18
|
+
'This setting is applied per step (e.g. 1Inch, Thorchain, etc) which means only the step will be reverted, not the whole transaction.'
|
|
19
19
|
)}
|
|
20
20
|
</Typography>
|
|
21
21
|
</SlippageTooltipContainer>
|
|
@@ -30,7 +30,7 @@ export function SwapDetailsPlaceholder(props: SwapDetailsPlaceholderPropTypes) {
|
|
|
30
30
|
<HeaderDetails>
|
|
31
31
|
<div className={rowStyles()}>
|
|
32
32
|
<Typography variant="label" size="large" color="neutral700">
|
|
33
|
-
{`${i18n.t('Request ID')}
|
|
33
|
+
{`${i18n.t('Request ID')}:`}
|
|
34
34
|
</Typography>
|
|
35
35
|
<div className={requestIdStyles()}>
|
|
36
36
|
<Typography variant="label" size="small" color="neutral700">
|
|
@@ -242,7 +242,7 @@ export function SwapDetails(props: SwapDetailsProps) {
|
|
|
242
242
|
{!stepDetailMessage ? i18n.t('Transaction was not sent.') : ''}
|
|
243
243
|
{lastConvertedTokenInFailedSwap
|
|
244
244
|
? `${i18n.t({
|
|
245
|
-
id: '{amount} {symbol} on {blockchain}
|
|
245
|
+
id: '{amount} {symbol} on {blockchain} remain in your wallet',
|
|
246
246
|
values: {
|
|
247
247
|
amount: lastConvertedTokenInFailedSwap.outputAmount,
|
|
248
248
|
symbol: lastConvertedTokenInFailedSwap.symbol,
|
|
@@ -307,7 +307,7 @@ export function SwapDetails(props: SwapDetailsProps) {
|
|
|
307
307
|
<HeaderDetails>
|
|
308
308
|
<div className={rowStyles()}>
|
|
309
309
|
<Typography variant="label" size="large" color="neutral700">
|
|
310
|
-
{`${i18n.t('Request ID')}
|
|
310
|
+
{`${i18n.t('Request ID')}:`}
|
|
311
311
|
</Typography>
|
|
312
312
|
<div className={requestIdStyles()}>
|
|
313
313
|
<Typography variant="label" size="small" color="neutral700">
|
|
@@ -18,7 +18,7 @@ export function ExperimentalChain(props: PropTypes) {
|
|
|
18
18
|
})}
|
|
19
19
|
type="warning"
|
|
20
20
|
description={i18n.t({
|
|
21
|
-
id: '
|
|
21
|
+
id: 'You should connect a {blockchainDisplayName} supported wallet or choose a different {blockchainDisplayName} address',
|
|
22
22
|
values: { blockchainDisplayName: displayName },
|
|
23
23
|
})}>
|
|
24
24
|
<Divider size={18} />
|
|
@@ -20,7 +20,7 @@ export function generateMessageByStatus(
|
|
|
20
20
|
values: { blockchainDisplayName },
|
|
21
21
|
}),
|
|
22
22
|
description: i18n.t({
|
|
23
|
-
id: '
|
|
23
|
+
id: 'You should connect a {blockchainDisplayName} supported wallet or choose a different {blockchainDisplayName} address',
|
|
24
24
|
values: { blockchainDisplayName },
|
|
25
25
|
}),
|
|
26
26
|
};
|
|
@@ -32,7 +32,7 @@ export function generateMessageByStatus(
|
|
|
32
32
|
values: { blockchainDisplayName },
|
|
33
33
|
}),
|
|
34
34
|
description: i18n.t({
|
|
35
|
-
id: '
|
|
35
|
+
id: 'You should connect a {blockchainDisplayName} supported wallet or choose a different {blockchainDisplayName} address',
|
|
36
36
|
values: { blockchainDisplayName },
|
|
37
37
|
}),
|
|
38
38
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import type { PropTypes } from './ExperimentalChainStatus.types';
|
|
2
2
|
|
|
3
|
-
import { Image, MessageBox } from '@rango-dev/ui';
|
|
3
|
+
import { Image, MessageBox, Spinner } from '@rango-dev/ui';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
|
|
6
6
|
import {
|
|
7
7
|
LogoContainer,
|
|
8
|
-
Spinner,
|
|
9
8
|
WalletImageContainer,
|
|
10
9
|
} from '../ConfirmWalletsModal/WalletList.styles';
|
|
11
10
|
|
|
@@ -242,9 +242,8 @@ export function SettingsLists() {
|
|
|
242
242
|
content={
|
|
243
243
|
<TooltipContainer>
|
|
244
244
|
<Typography variant="label" size="medium" color="neutral700">
|
|
245
|
-
<b>{i18n.t('Warning')}</b>:
|
|
246
245
|
{i18n.t(
|
|
247
|
-
"Enabling the 'Infinite approval' mode grants unrestricted access to
|
|
246
|
+
"Enabling the 'Infinite approval' mode grants unrestricted access to smart contracts of DEXes/Bridges, allowing them to utilize the approved token amount without limitations."
|
|
248
247
|
)}
|
|
249
248
|
</Typography>
|
|
250
249
|
</TooltipContainer>
|
|
@@ -52,7 +52,7 @@ export function useFetchCustomToken(): UseFetchCustomToken {
|
|
|
52
52
|
return {
|
|
53
53
|
title: i18n.t('Token Not Found'),
|
|
54
54
|
message: i18n.t({
|
|
55
|
-
id: 'Sorry, no token was found on {blockchain}
|
|
55
|
+
id: 'Sorry, no token was found on {blockchain} blockchain with the provided address. please make sure you have entered the right token address.',
|
|
56
56
|
values: {
|
|
57
57
|
blockchain,
|
|
58
58
|
},
|
|
@@ -145,7 +145,7 @@ export function HistoryPage() {
|
|
|
145
145
|
size="xsmall"
|
|
146
146
|
onClick={() => setOpenClearModal(true)}>
|
|
147
147
|
<Typography size="medium" variant="label" color="error">
|
|
148
|
-
{i18n.t('Clear')}
|
|
148
|
+
{i18n.t('Clear all Txs')}
|
|
149
149
|
</Typography>
|
|
150
150
|
</Button>
|
|
151
151
|
</SuffixContainer>
|
|
@@ -214,31 +214,33 @@ export function HistoryPage() {
|
|
|
214
214
|
<Divider size={20} />
|
|
215
215
|
<MessageBox
|
|
216
216
|
type="warning"
|
|
217
|
-
title={i18n.t('Clear
|
|
217
|
+
title={i18n.t('Clear History')}
|
|
218
218
|
description={
|
|
219
219
|
<Description>
|
|
220
220
|
<Typography variant="body" size="medium">
|
|
221
221
|
{i18n.t(
|
|
222
|
-
'
|
|
222
|
+
'This would clear all succeeded/failed transactions from widget. Do you wish to proceed?'
|
|
223
223
|
)}
|
|
224
224
|
</Typography>
|
|
225
225
|
<Divider size={'24'} />
|
|
226
226
|
|
|
227
227
|
<Typography variant="body" size="small">
|
|
228
228
|
{i18n.t(
|
|
229
|
-
'
|
|
229
|
+
'Hint: This does not clear your transaction history on blockchain. Only hides them in this page.'
|
|
230
230
|
)}
|
|
231
231
|
</Typography>
|
|
232
232
|
</Description>
|
|
233
233
|
}
|
|
234
234
|
/>
|
|
235
|
-
<Divider size={
|
|
235
|
+
<Divider size={40} />
|
|
236
|
+
|
|
237
|
+
<Divider size={10} />
|
|
236
238
|
<Button
|
|
237
239
|
variant="contained"
|
|
238
240
|
type="primary"
|
|
239
241
|
size="large"
|
|
240
242
|
onClick={onClear}>
|
|
241
|
-
{i18n.t('Yes, Clear
|
|
243
|
+
{i18n.t('Yes, Clear history')}
|
|
242
244
|
</Button>
|
|
243
245
|
<Divider size={10} />
|
|
244
246
|
<Button
|
|
@@ -46,7 +46,7 @@ export function LanguagePage() {
|
|
|
46
46
|
<Alert
|
|
47
47
|
type="warning"
|
|
48
48
|
variant="alarm"
|
|
49
|
-
title="
|
|
49
|
+
title="Important Notice: Machine translations are in use"
|
|
50
50
|
/>
|
|
51
51
|
<Divider size={'8'} />
|
|
52
52
|
<RadioRoot value={activeLanguage}>
|
|
@@ -39,7 +39,7 @@ export function SelectBlockchainPage(props: PropTypes) {
|
|
|
39
39
|
return (
|
|
40
40
|
<Layout
|
|
41
41
|
header={{
|
|
42
|
-
title: i18n.t(`Select
|
|
42
|
+
title: i18n.t(`Select Blockchain`),
|
|
43
43
|
}}>
|
|
44
44
|
<PageContainer view>
|
|
45
45
|
{showCategory && (
|
|
@@ -57,7 +57,7 @@ export function SelectBlockchainPage(props: PropTypes) {
|
|
|
57
57
|
<SearchInput
|
|
58
58
|
value={searchedFor}
|
|
59
59
|
autoFocus
|
|
60
|
-
placeholder={i18n.t('Search
|
|
60
|
+
placeholder={i18n.t('Search Blockchain')}
|
|
61
61
|
color="light"
|
|
62
62
|
variant="contained"
|
|
63
63
|
size="large"
|