@rango-dev/widget-embedded 0.33.3 → 0.33.4-next.1
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 +2 -1
- package/src/containers/Settings/Lists.tsx +2 -1
- package/src/hooks/useFetchCustomToken.ts +1 -1
- package/src/pages/HistoryPage.tsx +6 -8
- 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.4-next.1",
|
|
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.4-next.1",
|
|
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.1-next.3",
|
|
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.1-next.1",
|
|
33
|
+
"@rango-dev/ui": "^0.39.1-next.6",
|
|
34
|
+
"@rango-dev/wallets-core": "^0.38.1-next.1",
|
|
35
|
+
"@rango-dev/wallets-react": "^0.23.1-next.3",
|
|
36
|
+
"@rango-dev/wallets-shared": "^0.37.1-next.3",
|
|
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('
|
|
86
|
+
content={i18n.t('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 to each step (e.g. 1Inch, Thorchain, etc.), meaning only that specific step will be reverted, not the entire route.'
|
|
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} remains 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: 'Would you like to add the {blockchainDisplayName} experimental chain to your wallet?',
|
|
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: 'Please approve the experimental chain pop-up in your wallet.',
|
|
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: 'The {blockchainDisplayName} chain has been successfully added to your wallet.',
|
|
36
36
|
values: { blockchainDisplayName },
|
|
37
37
|
}),
|
|
38
38
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { PropTypes } from './ExperimentalChainStatus.types';
|
|
2
2
|
|
|
3
|
-
import { Image, MessageBox
|
|
3
|
+
import { Image, MessageBox } from '@rango-dev/ui';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
|
|
6
6
|
import {
|
|
7
7
|
LogoContainer,
|
|
8
|
+
Spinner,
|
|
8
9
|
WalletImageContainer,
|
|
9
10
|
} from '../ConfirmWalletsModal/WalletList.styles';
|
|
10
11
|
|
|
@@ -242,8 +242,9 @@ export function SettingsLists() {
|
|
|
242
242
|
content={
|
|
243
243
|
<TooltipContainer>
|
|
244
244
|
<Typography variant="label" size="medium" color="neutral700">
|
|
245
|
+
<b>{i18n.t('Warning')}</b>:
|
|
245
246
|
{i18n.t(
|
|
246
|
-
"Enabling the 'Infinite approval' mode grants unrestricted access to smart contracts
|
|
247
|
+
"Enabling the 'Infinite approval' mode grants unrestricted access to underlying smart contracts, allowing them to utilize the approved token amount without limitations."
|
|
247
248
|
)}
|
|
248
249
|
</Typography>
|
|
249
250
|
</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} chain 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')}
|
|
149
149
|
</Typography>
|
|
150
150
|
</Button>
|
|
151
151
|
</SuffixContainer>
|
|
@@ -214,33 +214,31 @@ export function HistoryPage() {
|
|
|
214
214
|
<Divider size={20} />
|
|
215
215
|
<MessageBox
|
|
216
216
|
type="warning"
|
|
217
|
-
title={i18n.t('Clear History')}
|
|
217
|
+
title={i18n.t('Clear Transaction History')}
|
|
218
218
|
description={
|
|
219
219
|
<Description>
|
|
220
220
|
<Typography variant="body" size="medium">
|
|
221
221
|
{i18n.t(
|
|
222
|
-
'
|
|
222
|
+
'Proceeding will remove all successful and failed transactions from the widget. Do you want to continue?'
|
|
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
|
+
'Note: This does not erase your transaction history on the chain; it only removes them here.'
|
|
230
230
|
)}
|
|
231
231
|
</Typography>
|
|
232
232
|
</Description>
|
|
233
233
|
}
|
|
234
234
|
/>
|
|
235
|
-
<Divider size={
|
|
236
|
-
|
|
237
|
-
<Divider size={10} />
|
|
235
|
+
<Divider size={30} />
|
|
238
236
|
<Button
|
|
239
237
|
variant="contained"
|
|
240
238
|
type="primary"
|
|
241
239
|
size="large"
|
|
242
240
|
onClick={onClear}>
|
|
243
|
-
{i18n.t('Yes, Clear history')}
|
|
241
|
+
{i18n.t('Yes, Clear the history')}
|
|
244
242
|
</Button>
|
|
245
243
|
<Divider size={10} />
|
|
246
244
|
<Button
|
|
@@ -46,7 +46,7 @@ export function LanguagePage() {
|
|
|
46
46
|
<Alert
|
|
47
47
|
type="warning"
|
|
48
48
|
variant="alarm"
|
|
49
|
-
title="
|
|
49
|
+
title="Warning: We are using machine translation, so the translations may be inaccurate."
|
|
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 Chain`),
|
|
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 Chain')}
|
|
61
61
|
color="light"
|
|
62
62
|
variant="contained"
|
|
63
63
|
size="large"
|