@rango-dev/ui 0.17.1-next.11 → 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.
Files changed (28) hide show
  1. package/dist/index.js +2 -2
  2. package/dist/index.js.map +4 -4
  3. package/dist/translations/en.d.ts +2 -0
  4. package/dist/translations/en.d.ts.map +1 -0
  5. package/dist/translations/es.d.ts +2 -0
  6. package/dist/translations/es.d.ts.map +1 -0
  7. package/dist/translations/fr.d.ts +2 -0
  8. package/dist/translations/fr.d.ts.map +1 -0
  9. package/dist/translations/ja.d.ts +2 -0
  10. package/dist/translations/ja.d.ts.map +1 -0
  11. package/dist/widget/ui/src/components/StepDetails/StepDetails.d.ts.map +1 -1
  12. package/dist/widget/ui/src/components/SwapDetailsPlaceholder/SwapDetailsPlaceholder.d.ts.map +1 -1
  13. package/dist/widget/ui/src/containers/Warnings/HighSlippageWarning.d.ts.map +1 -1
  14. package/dist/widget/ui/src/containers/Warnings/MinRequiredSlippage.d.ts.map +1 -1
  15. package/package.json +2 -2
  16. package/src/components/I18nManager/I18nManager.tsx +4 -4
  17. package/src/components/StepDetails/StepDetails.tsx +1 -2
  18. package/src/components/SwapDetailsPlaceholder/SwapDetailsPlaceholder.tsx +4 -5
  19. package/src/containers/Warnings/HighSlippageWarning.tsx +7 -10
  20. package/src/containers/Warnings/MinRequiredSlippage.tsx +7 -10
  21. package/dist/translations/en/messages.d.ts +0 -2
  22. package/dist/translations/en/messages.d.ts.map +0 -1
  23. package/dist/translations/es/messages.d.ts +0 -2
  24. package/dist/translations/es/messages.d.ts.map +0 -1
  25. package/dist/translations/fr/messages.d.ts +0 -2
  26. package/dist/translations/fr/messages.d.ts.map +0 -1
  27. package/dist/translations/ja/messages.d.ts +0 -2
  28. package/dist/translations/ja/messages.d.ts.map +0 -1
@@ -0,0 +1,2 @@
1
+ export declare const messages: any;
2
+ //# sourceMappingURL=en.d.ts.map
@@ -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,2 @@
1
+ export declare const messages: any;
2
+ //# sourceMappingURL=es.d.ts.map
@@ -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,2 @@
1
+ export declare const messages: any;
2
+ //# sourceMappingURL=fr.d.ts.map
@@ -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,2 @@
1
+ export declare const messages: any;
2
+ //# sourceMappingURL=ja.d.ts.map
@@ -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;AAsGnE,eAAO,MAAM,WAAW,oHAA6B,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"}
@@ -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,qBA0BtD"}
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;AAI1B,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,qBAqBnD"}
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":"AAAA,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,qBAeX"}
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rango-dev/ui",
3
- "version": "0.17.1-next.11",
3
+ "version": "0.17.1-next.13",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",
@@ -65,7 +65,7 @@
65
65
  "@radix-ui/react-radio-group": "^1.1.1",
66
66
  "@radix-ui/react-switch": "^1.0.1",
67
67
  "@radix-ui/react-tooltip": "^1.0.2",
68
- "@rango-dev/wallets-shared": "^0.17.1-next.0",
68
+ "@rango-dev/wallets-shared": "^0.17.1-next.1",
69
69
  "@stitches/react": "^1.2.8",
70
70
  "rango-sdk": "^0.1.35",
71
71
  "react-virtualized-auto-sizer": "^1.0.7",
@@ -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/messages';
15
- import { messages as esMessages } from '../../../../../translations/es/messages';
16
- import { messages as frMessages } from '../../../../../translations/fr/messages';
17
- import { messages as jaMessages } from '../../../../../translations/ja/messages';
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: 'swapperDescription',
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
- 'swapNotFound',
41
- { requestId },
42
- { message: 'Swap with request ID = {requestId} not found.' }
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 { Alert } from '../../components/Alert';
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
- 'highSlippage',
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 { Divider, Typography, ChangeSlippageButton } from '../../components';
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
- 'increaseSlippage',
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,2 +0,0 @@
1
- export declare const messages: any;
2
- //# sourceMappingURL=messages.d.ts.map
@@ -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,2 +0,0 @@
1
- export declare const messages: any;
2
- //# sourceMappingURL=messages.d.ts.map
@@ -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,2 +0,0 @@
1
- export declare const messages: any;
2
- //# sourceMappingURL=messages.d.ts.map
@@ -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,2 +0,0 @@
1
- export declare const messages: any;
2
- //# sourceMappingURL=messages.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../../../translations/ja/messages.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,KAAwuO,CAAC"}