@rango-dev/ui 0.17.1-next.12 → 0.17.1-next.13
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/dist/index.js +2 -2
- package/dist/index.js.map +4 -4
- package/dist/translations/en.d.ts +2 -0
- package/dist/translations/en.d.ts.map +1 -0
- package/dist/translations/es.d.ts +2 -0
- package/dist/translations/es.d.ts.map +1 -0
- package/dist/translations/fr.d.ts +2 -0
- package/dist/translations/fr.d.ts.map +1 -0
- package/dist/translations/ja.d.ts +2 -0
- package/dist/translations/ja.d.ts.map +1 -0
- package/dist/widget/ui/src/components/StepDetails/StepDetails.d.ts.map +1 -1
- package/dist/widget/ui/src/components/SwapDetailsPlaceholder/SwapDetailsPlaceholder.d.ts.map +1 -1
- package/dist/widget/ui/src/containers/Warnings/HighSlippageWarning.d.ts.map +1 -1
- package/dist/widget/ui/src/containers/Warnings/MinRequiredSlippage.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/I18nManager/I18nManager.tsx +4 -4
- package/src/components/StepDetails/StepDetails.tsx +1 -2
- package/src/components/SwapDetailsPlaceholder/SwapDetailsPlaceholder.tsx +4 -5
- package/src/containers/Warnings/HighSlippageWarning.tsx +7 -10
- package/src/containers/Warnings/MinRequiredSlippage.tsx +7 -10
- package/dist/translations/en/messages.d.ts +0 -2
- package/dist/translations/en/messages.d.ts.map +0 -1
- package/dist/translations/es/messages.d.ts +0 -2
- package/dist/translations/es/messages.d.ts.map +0 -1
- package/dist/translations/fr/messages.d.ts +0 -2
- package/dist/translations/fr/messages.d.ts.map +0 -1
- package/dist/translations/ja/messages.d.ts +0 -2
- package/dist/translations/ja/messages.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../../translations/en.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,KAAg0V,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../../../translations/es.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,KAA4lX,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../../../translations/fr.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,KAAwwX,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ja.d.ts","sourceRoot":"","sources":["../../../../translations/ja.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,KAAiqS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepDetails.d.ts","sourceRoot":"","sources":["../../../../../../src/components/StepDetails/StepDetails.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG5D,OAAO,KAA8C,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"StepDetails.d.ts","sourceRoot":"","sources":["../../../../../../src/components/StepDetails/StepDetails.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG5D,OAAO,KAA8C,MAAM,OAAO,CAAC;AAqGnE,eAAO,MAAM,WAAW,oHAA6B,CAAC"}
|
package/dist/widget/ui/src/components/SwapDetailsPlaceholder/SwapDetailsPlaceholder.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwapDetailsPlaceholder.d.ts","sourceRoot":"","sources":["../../../../../../src/components/SwapDetailsPlaceholder/SwapDetailsPlaceholder.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAM1B,CAAC;AAEH,UAAU,SAAS;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"SwapDetailsPlaceholder.d.ts","sourceRoot":"","sources":["../../../../../../src/components/SwapDetailsPlaceholder/SwapDetailsPlaceholder.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAM1B,CAAC;AAEH,UAAU,SAAS;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,SAAS,qBAyBtD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HighSlippageWarning.d.ts","sourceRoot":"","sources":["../../../../../../src/containers/Warnings/HighSlippageWarning.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"HighSlippageWarning.d.ts","sourceRoot":"","sources":["../../../../../../src/containers/Warnings/HighSlippageWarning.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,SAAS;IACjB,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,OAAO,CAAC;IACtB,cAAc,EAAE,MAAM,IAAI,CAAC;CAC5B;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,SAAS,qBAiBnD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MinRequiredSlippage.d.ts","sourceRoot":"","sources":["../../../../../../src/containers/Warnings/MinRequiredSlippage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MinRequiredSlippage.d.ts","sourceRoot":"","sources":["../../../../../../src/containers/Warnings/MinRequiredSlippage.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,SAAS;IACjB,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,cAAc,EAAE,MAAM,IAAI,CAAC;CAC5B;AAMD,wBAAgB,mBAAmB,CAAC,EAClC,mBAAmB,EACnB,cAAc,GACf,EAAE,SAAS,qBAWX"}
|
package/package.json
CHANGED
|
@@ -11,10 +11,10 @@ import React, { useEffect, useReducer } from 'react';
|
|
|
11
11
|
* "translations/*": ["../../translations/*"]
|
|
12
12
|
*}
|
|
13
13
|
*/
|
|
14
|
-
import { messages as enMessages } from '../../../../../translations/en
|
|
15
|
-
import { messages as esMessages } from '../../../../../translations/es
|
|
16
|
-
import { messages as frMessages } from '../../../../../translations/fr
|
|
17
|
-
import { messages as jaMessages } from '../../../../../translations/ja
|
|
14
|
+
import { messages as enMessages } from '../../../../../translations/en';
|
|
15
|
+
import { messages as esMessages } from '../../../../../translations/es';
|
|
16
|
+
import { messages as frMessages } from '../../../../../translations/fr';
|
|
17
|
+
import { messages as jaMessages } from '../../../../../translations/ja';
|
|
18
18
|
|
|
19
19
|
const messages = {
|
|
20
20
|
en: enMessages,
|
|
@@ -52,8 +52,7 @@ const StepDetailsComponent = forwardRef<HTMLDivElement, StepDetailsProps>(
|
|
|
52
52
|
size="small"
|
|
53
53
|
variant="body">
|
|
54
54
|
{i18n.t({
|
|
55
|
-
id: '
|
|
56
|
-
message: 'Swap on {fromChain} via {swapper}',
|
|
55
|
+
id: 'Swap on {fromChain} via {swapper}',
|
|
57
56
|
values: {
|
|
58
57
|
fromChain: step.from.chain.displayName,
|
|
59
58
|
swapper: step.swapper.displayName,
|
|
@@ -36,11 +36,10 @@ export function SwapDetailsPlaceholder(props: PropTypes) {
|
|
|
36
36
|
) : (
|
|
37
37
|
<Alert
|
|
38
38
|
type="error"
|
|
39
|
-
title={i18n.t(
|
|
40
|
-
'
|
|
41
|
-
{ requestId },
|
|
42
|
-
|
|
43
|
-
)}
|
|
39
|
+
title={i18n.t({
|
|
40
|
+
id: 'Swap with request ID = {requestId} not found.',
|
|
41
|
+
values: { requestId },
|
|
42
|
+
})}
|
|
44
43
|
/>
|
|
45
44
|
)}
|
|
46
45
|
</PlaceholderContainer>
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i18n } from '@lingui/core';
|
|
2
2
|
import React from 'react';
|
|
3
|
+
|
|
4
|
+
import { Alert } from '../../components/Alert';
|
|
3
5
|
import { ChangeSlippageButton } from '../../components/ChangeSlippageButton';
|
|
4
|
-
import { i18n } from '@lingui/core';
|
|
5
6
|
|
|
6
7
|
interface PropTypes {
|
|
7
8
|
selectedSlippage: number;
|
|
@@ -18,14 +19,10 @@ export function HighSlippageWarning(props: PropTypes) {
|
|
|
18
19
|
<Alert
|
|
19
20
|
type="warning"
|
|
20
21
|
footer={<ChangeSlippageButton onClick={changeSlippage} />}>
|
|
21
|
-
{i18n.t(
|
|
22
|
-
'
|
|
23
|
-
{ selectedSlippage },
|
|
24
|
-
|
|
25
|
-
message:
|
|
26
|
-
' Caution, your slippage is high (={selectedSlippage}). Your trade may be front run.',
|
|
27
|
-
}
|
|
28
|
-
)}
|
|
22
|
+
{i18n.t({
|
|
23
|
+
id: ' Caution, your slippage is high (={selectedSlippage}). Your trade may be front run.',
|
|
24
|
+
values: { selectedSlippage },
|
|
25
|
+
})}
|
|
29
26
|
</Alert>
|
|
30
27
|
)}
|
|
31
28
|
</>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { i18n } from '@lingui/core';
|
|
3
|
-
import
|
|
2
|
+
import React from 'react';
|
|
3
|
+
|
|
4
|
+
import { ChangeSlippageButton, Divider, Typography } from '../../components';
|
|
4
5
|
import { styled } from '../../theme';
|
|
5
6
|
|
|
6
7
|
interface PropTypes {
|
|
@@ -18,14 +19,10 @@ export function MinRequiredSlippage({
|
|
|
18
19
|
}: PropTypes) {
|
|
19
20
|
return (
|
|
20
21
|
<StyledMessage variant="body" size="small">
|
|
21
|
-
{i18n.t(
|
|
22
|
-
'
|
|
23
|
-
{ minRequiredSlippage },
|
|
24
|
-
|
|
25
|
-
message:
|
|
26
|
-
'We recommend you to increase slippage to at least {minRequiredSlippage} for this route.',
|
|
27
|
-
}
|
|
28
|
-
)}
|
|
22
|
+
{i18n.t({
|
|
23
|
+
id: 'We recommend you to increase slippage to at least {minRequiredSlippage} for this route.',
|
|
24
|
+
values: { minRequiredSlippage },
|
|
25
|
+
})}
|
|
29
26
|
<Divider size={8} />
|
|
30
27
|
<ChangeSlippageButton onClick={changeSlippage} />
|
|
31
28
|
</StyledMessage>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../../../translations/en/messages.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,KAAitR,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../../../translations/es/messages.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,KAAu5S,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../../../translations/fr/messages.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,KAAmkT,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../../../translations/ja/messages.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,KAAwuO,CAAC"}
|