@rango-dev/widget-embedded 0.12.1-next.26 → 0.12.1-next.27

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 (36) hide show
  1. package/dist/components/BlockchainList/BlockchainList.helpers.d.ts.map +1 -1
  2. package/dist/components/BlockchainsSection/BlockchainsSection.d.ts.map +1 -1
  3. package/dist/index.js +1 -1
  4. package/dist/index.js.map +4 -4
  5. package/dist/pages/SelectBlockchainPage.d.ts.map +1 -1
  6. package/package.json +2 -2
  7. package/src/components/BlockchainList/BlockchainList.helpers.ts +1 -1
  8. package/src/components/BlockchainsSection/BlockchainsSection.tsx +7 -2
  9. package/src/pages/SelectBlockchainPage.tsx +7 -3
  10. package/dist/components/BlockchainsChip/BlockchainsChip.d.ts +0 -5
  11. package/dist/components/BlockchainsChip/BlockchainsChip.d.ts.map +0 -1
  12. package/dist/components/BlockchainsChip/BlockchainsChip.styles.d.ts +0 -156
  13. package/dist/components/BlockchainsChip/BlockchainsChip.styles.d.ts.map +0 -1
  14. package/dist/components/BlockchainsChip/BlockchainsChip.types.d.ts +0 -6
  15. package/dist/components/BlockchainsChip/BlockchainsChip.types.d.ts.map +0 -1
  16. package/dist/components/BlockchainsChip/index.d.ts +0 -2
  17. package/dist/components/BlockchainsChip/index.d.ts.map +0 -1
  18. package/dist/components/SelectableCategoryList/SelectableCategoryList.d.ts +0 -4
  19. package/dist/components/SelectableCategoryList/SelectableCategoryList.d.ts.map +0 -1
  20. package/dist/components/SelectableCategoryList/SelectableCategoryList.helpers.d.ts +0 -4
  21. package/dist/components/SelectableCategoryList/SelectableCategoryList.helpers.d.ts.map +0 -1
  22. package/dist/components/SelectableCategoryList/SelectableCategoryList.styles.d.ts +0 -460
  23. package/dist/components/SelectableCategoryList/SelectableCategoryList.styles.d.ts.map +0 -1
  24. package/dist/components/SelectableCategoryList/SelectableCategoryList.types.d.ts +0 -12
  25. package/dist/components/SelectableCategoryList/SelectableCategoryList.types.d.ts.map +0 -1
  26. package/dist/components/SelectableCategoryList/index.d.ts +0 -2
  27. package/dist/components/SelectableCategoryList/index.d.ts.map +0 -1
  28. package/src/components/BlockchainsChip/BlockchainsChip.styles.ts +0 -42
  29. package/src/components/BlockchainsChip/BlockchainsChip.tsx +0 -15
  30. package/src/components/BlockchainsChip/BlockchainsChip.types.ts +0 -4
  31. package/src/components/BlockchainsChip/index.ts +0 -1
  32. package/src/components/SelectableCategoryList/SelectableCategoryList.helpers.ts +0 -20
  33. package/src/components/SelectableCategoryList/SelectableCategoryList.styles.ts +0 -21
  34. package/src/components/SelectableCategoryList/SelectableCategoryList.tsx +0 -79
  35. package/src/components/SelectableCategoryList/SelectableCategoryList.types.ts +0 -12
  36. package/src/components/SelectableCategoryList/index.ts +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"SelectBlockchainPage.d.ts","sourceRoot":"","sources":["../../src/pages/SelectBlockchainPage.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAWxC,UAAU,SAAS;IACjB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;CACjC;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,SAAS,qBA0DpD"}
1
+ {"version":3,"file":"SelectBlockchainPage.d.ts","sourceRoot":"","sources":["../../src/pages/SelectBlockchainPage.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAUxC,UAAU,SAAS;IACjB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;CACjC;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,SAAS,qBA+DpD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rango-dev/widget-embedded",
3
- "version": "0.12.1-next.26",
3
+ "version": "0.12.1-next.27",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -23,7 +23,7 @@
23
23
  "@rango-dev/queue-manager-core": "^0.15.1-next.2",
24
24
  "@rango-dev/queue-manager-rango-preset": "^0.15.1-next.6",
25
25
  "@rango-dev/queue-manager-react": "^0.15.1-next.4",
26
- "@rango-dev/ui": "^0.15.1-next.17",
26
+ "@rango-dev/ui": "^0.15.1-next.18",
27
27
  "@rango-dev/wallets-react": "^0.1.1-next.6",
28
28
  "@rango-dev/wallets-shared": "^0.15.1-next.4",
29
29
  "bignumber.js": "^9.1.1",
@@ -1,7 +1,7 @@
1
+ import { BlockchainCategories } from '@rango-dev/ui';
1
2
  import { type BlockchainMeta, TransactionType } from 'rango-sdk';
2
3
 
3
4
  import { containsText } from '../../utils/common';
4
- import { BlockchainCategories } from '../SelectableCategoryList/SelectableCategoryList.types';
5
5
 
6
6
  export const filterByType = (
7
7
  blockchain: BlockchainMeta,
@@ -2,13 +2,18 @@
2
2
  import type { PropTypes } from './BlockchainsSection.types';
3
3
 
4
4
  import { i18n } from '@lingui/core';
5
- import { Divider, Image, Skeleton, Typography } from '@rango-dev/ui';
5
+ import {
6
+ BlockchainsChip,
7
+ Divider,
8
+ Image,
9
+ Skeleton,
10
+ Typography,
11
+ } from '@rango-dev/ui';
6
12
  import { type BlockchainMeta } from 'rango-sdk';
7
13
  import React, { useEffect, useState } from 'react';
8
14
 
9
15
  import { useBestRouteStore } from '../../store/bestRoute';
10
16
  import { useMetaStore } from '../../store/meta';
11
- import { BlockchainsChip } from '../BlockchainsChip';
12
17
 
13
18
  import { sortBlockchains } from './BlockchainSection.helpers';
14
19
  import { Container } from './BlockchainsSection.styles';
@@ -1,11 +1,10 @@
1
1
  import { i18n } from '@lingui/core';
2
- import { Divider } from '@rango-dev/ui';
2
+ import { Divider, SelectableCategoryList } from '@rango-dev/ui';
3
3
  import React, { useState } from 'react';
4
4
 
5
5
  import { BlockchainList } from '../components/BlockchainList';
6
6
  import { Layout } from '../components/Layout';
7
7
  import { SearchInput } from '../components/SearchInput';
8
- import { SelectableCategoryList } from '../components/SelectableCategoryList';
9
8
  import { navigationRoutes } from '../constants/navigationRoutes';
10
9
  import { useNavigateBack } from '../hooks/useNavigateBack';
11
10
  import { useBestRouteStore } from '../store/bestRoute';
@@ -23,7 +22,10 @@ export function SelectBlockchainPage(props: PropTypes) {
23
22
  const [blockchainCategory, setBlockchainCategory] = useState<string>('ALL');
24
23
  const setToBlockchain = useBestRouteStore.use.setToBlockchain();
25
24
  const setFromBlockchain = useBestRouteStore.use.setFromBlockchain();
26
-
25
+ const {
26
+ meta: { blockchains: allBlockchains },
27
+ loadingStatus,
28
+ } = useMetaStore();
27
29
  const blockchains = supportedBlockchains
28
30
  ? useMetaStore.use
29
31
  .meta()
@@ -45,6 +47,8 @@ export function SelectBlockchainPage(props: PropTypes) {
45
47
  <SelectableCategoryList
46
48
  setCategory={setBlockchainCategory}
47
49
  category={blockchainCategory}
50
+ blockchains={allBlockchains}
51
+ isLoading={loadingStatus === 'loading'}
48
52
  />
49
53
  <Divider size={24} />
50
54
  <SearchInput
@@ -1,5 +0,0 @@
1
- import type { PropTypes } from './BlockchainsChip.types';
2
- import type { PropsWithChildren } from 'react';
3
- import React from 'react';
4
- export declare function BlockchainsChip(props: PropsWithChildren<PropTypes>): React.JSX.Element;
5
- //# sourceMappingURL=BlockchainsChip.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BlockchainsChip.d.ts","sourceRoot":"","sources":["../../../src/components/BlockchainsChip/BlockchainsChip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,wBAAgB,eAAe,CAAC,KAAK,EAAE,iBAAiB,CAAC,SAAS,CAAC,qBAOlE"}
@@ -1,156 +0,0 @@
1
- export declare const Chip: import("@stitches/react/types/styled-component").StyledComponent<"button", {
2
- selected?: boolean | "true" | "false" | undefined;
3
- }, {
4
- sm: string;
5
- md: string;
6
- lg: string;
7
- }, import("@stitches/react/types/css-util").CSS<{
8
- sm: string;
9
- md: string;
10
- lg: string;
11
- }, {
12
- colors: {
13
- primary500: string;
14
- primary600: string;
15
- secondary100: string;
16
- secondary200: string;
17
- secondary300: string;
18
- secondary400: string;
19
- secondary500: string;
20
- secondary600: string;
21
- secondary700: string;
22
- secondary800: string;
23
- secondary900: string;
24
- neutral100: string;
25
- neutral200: string;
26
- neutral300: string;
27
- neutral400: string;
28
- neutral500: string;
29
- neutral600: string;
30
- neutral700: string;
31
- neutral800: string;
32
- neutral900: string;
33
- error100: string;
34
- error300: string;
35
- error500: string;
36
- error600: string;
37
- error700: string;
38
- warning100: string;
39
- warning300: string;
40
- warning500: string;
41
- warning600: string;
42
- warning700: string;
43
- info100: string;
44
- info300: string;
45
- info500: string;
46
- info600: string;
47
- info700: string;
48
- success100: string;
49
- success300: string;
50
- success500: string;
51
- success600: string;
52
- success700: string;
53
- background: string;
54
- foreground: string;
55
- };
56
- space: {
57
- 0: string;
58
- 5: string;
59
- 10: string;
60
- 15: string;
61
- 20: string;
62
- 25: string;
63
- 30: string;
64
- 40: string;
65
- 46: string;
66
- 50: string;
67
- 60: string;
68
- 70: string;
69
- 80: string;
70
- 90: string;
71
- 100: string;
72
- 2: string;
73
- 4: string;
74
- 6: string;
75
- 8: string;
76
- 12: string;
77
- 16: string;
78
- 24: string;
79
- 28: string;
80
- 32: string;
81
- };
82
- radii: {
83
- xs: string;
84
- sm: string;
85
- xm: string;
86
- md: string;
87
- xl: string;
88
- lg: string;
89
- primary: string;
90
- secondary: string;
91
- };
92
- fontSizes: {
93
- 10: string;
94
- 12: string;
95
- 14: string;
96
- 16: string;
97
- 18: string;
98
- 20: string;
99
- 22: string;
100
- 24: string;
101
- 28: string;
102
- 32: string;
103
- 36: string;
104
- 40: string;
105
- 48: string;
106
- };
107
- fonts: {
108
- primary: string;
109
- widget: string;
110
- };
111
- fontWeights: {
112
- regular: number;
113
- medium: number;
114
- semiBold: number;
115
- bold: number;
116
- };
117
- lineHeights: {
118
- 12: string;
119
- 16: string;
120
- 20: string;
121
- 24: string;
122
- 26: string;
123
- 28: string;
124
- 30: string;
125
- 36: string;
126
- 40: string;
127
- 44: string;
128
- 52: string;
129
- 64: string;
130
- };
131
- letterSpacings: {};
132
- sizes: {
133
- 4: string;
134
- 6: string;
135
- 8: string;
136
- 12: string;
137
- 16: string;
138
- 18: string;
139
- 20: string;
140
- 24: string;
141
- 28: string;
142
- 32: string;
143
- 36: string;
144
- 40: string;
145
- 45: string;
146
- 48: string;
147
- };
148
- borderWidths: {};
149
- borderStyles: {};
150
- shadows: {
151
- s: string;
152
- };
153
- zIndices: {};
154
- transitions: {};
155
- }, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
156
- //# sourceMappingURL=BlockchainsChip.styles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BlockchainsChip.styles.d.ts","sourceRoot":"","sources":["../../../src/components/BlockchainsChip/BlockchainsChip.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAuCf,CAAC"}
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- export interface PropTypes {
3
- selected?: boolean;
4
- onClick?: React.MouseEventHandler<HTMLButtonElement>;
5
- }
6
- //# sourceMappingURL=BlockchainsChip.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BlockchainsChip.types.d.ts","sourceRoot":"","sources":["../../../src/components/BlockchainsChip/BlockchainsChip.types.ts"],"names":[],"mappings":";AAAA,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;CACtD"}
@@ -1,2 +0,0 @@
1
- export { BlockchainsChip } from './BlockchainsChip';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/BlockchainsChip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { PropTypes } from './SelectableCategoryList.types';
2
- import React from 'react';
3
- export declare function SelectableCategoryList(props: PropTypes): React.JSX.Element;
4
- //# sourceMappingURL=SelectableCategoryList.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SelectableCategoryList.d.ts","sourceRoot":"","sources":["../../../src/components/SelectableCategoryList/SelectableCategoryList.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAIhE,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,SAAS,qBA4DtD"}
@@ -1,4 +0,0 @@
1
- import { type BlockchainMeta } from 'rango-sdk';
2
- import { BlockchainCategories } from './SelectableCategoryList.types';
3
- export declare const generateBlockchainsLogo: (list: BlockchainMeta[], type: Exclude<BlockchainCategories, 'ALL'>) => BlockchainMeta[];
4
- //# sourceMappingURL=SelectableCategoryList.helpers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SelectableCategoryList.helpers.d.ts","sourceRoot":"","sources":["../../../src/components/SelectableCategoryList/SelectableCategoryList.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,WAAW,CAAC;AAIhD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAStE,eAAO,MAAM,uBAAuB,SAC5B,cAAc,EAAE,QAChB,QAAQ,oBAAoB,EAAE,KAAK,CAAC,qBAIoB,CAAC"}