@rango-dev/widget-embedded 0.27.4-next.2 → 0.27.4-next.4

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 (38) hide show
  1. package/dist/components/ConfirmWalletsModal/WalletList.d.ts.map +1 -1
  2. package/dist/components/SwapDetailsModal/SwapDetailsModal.WalletState.d.ts.map +1 -1
  3. package/dist/components/WalletNamespacesModal/WalletNamespacesModal.d.ts +6 -0
  4. package/dist/components/WalletNamespacesModal/WalletNamespacesModal.d.ts.map +1 -0
  5. package/dist/components/WalletNamespacesModal/WalletNamespacesModal.styles.d.ts +163 -0
  6. package/dist/components/WalletNamespacesModal/WalletNamespacesModal.styles.d.ts.map +1 -0
  7. package/dist/components/WalletNamespacesModal/WalletNamespacesModal.types.d.ts +10 -0
  8. package/dist/components/WalletNamespacesModal/WalletNamespacesModal.types.d.ts.map +1 -0
  9. package/dist/components/WalletNamespacesModal/index.d.ts +2 -0
  10. package/dist/components/WalletNamespacesModal/index.d.ts.map +1 -0
  11. package/dist/hooks/useSwapInput.d.ts.map +1 -1
  12. package/dist/hooks/useSyncStoresWithConfig.d.ts.map +1 -1
  13. package/dist/hooks/useWalletList.d.ts +4 -4
  14. package/dist/hooks/useWalletList.d.ts.map +1 -1
  15. package/dist/index.js +2 -2
  16. package/dist/index.js.map +4 -4
  17. package/dist/pages/ConfirmSwapPage.d.ts.map +1 -1
  18. package/dist/pages/Routes.d.ts.map +1 -1
  19. package/dist/pages/WalletsPage.d.ts.map +1 -1
  20. package/dist/types/wallets.d.ts +6 -1
  21. package/dist/types/wallets.d.ts.map +1 -1
  22. package/dist/utils/wallets.d.ts +3 -3
  23. package/dist/utils/wallets.d.ts.map +1 -1
  24. package/package.json +6 -6
  25. package/src/components/ConfirmWalletsModal/WalletList.tsx +68 -23
  26. package/src/components/SwapDetailsModal/SwapDetailsModal.WalletState.tsx +40 -4
  27. package/src/components/WalletNamespacesModal/WalletNamespacesModal.styles.ts +7 -0
  28. package/src/components/WalletNamespacesModal/WalletNamespacesModal.tsx +142 -0
  29. package/src/components/WalletNamespacesModal/WalletNamespacesModal.types.tsx +10 -0
  30. package/src/components/WalletNamespacesModal/index.ts +1 -0
  31. package/src/hooks/useSwapInput.ts +11 -5
  32. package/src/hooks/useSyncStoresWithConfig.ts +3 -0
  33. package/src/hooks/useWalletList.ts +11 -3
  34. package/src/pages/ConfirmSwapPage.tsx +3 -4
  35. package/src/pages/Routes.tsx +5 -2
  36. package/src/pages/WalletsPage.tsx +38 -2
  37. package/src/types/wallets.ts +7 -1
  38. package/src/utils/wallets.ts +8 -3
@@ -1 +1 @@
1
- {"version":3,"file":"WalletList.d.ts","sourceRoot":"","sources":["../../../src/components/ConfirmWalletsModal/WalletList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAenD,OAAO,KAA8B,MAAM,OAAO,CAAC;AA6BnD,wBAAgB,UAAU,CAAC,KAAK,EAAE,SAAS,qBAiR1C"}
1
+ {"version":3,"file":"WalletList.d.ts","sourceRoot":"","sources":["../../../src/components/ConfirmWalletsModal/WalletList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAcnD,OAAO,KAA8B,MAAM,OAAO,CAAC;AAqCnD,wBAAgB,UAAU,CAAC,KAAK,EAAE,SAAS,qBAuT1C"}
@@ -1 +1 @@
1
- {"version":3,"file":"SwapDetailsModal.WalletState.d.ts","sourceRoot":"","sources":["../../../src/components/SwapDetailsModal/SwapDetailsModal.WalletState.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAKxE,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,eAAO,MAAM,kBAAkB,UAAW,uBAAuB,sBAuChE,CAAC"}
1
+ {"version":3,"file":"SwapDetailsModal.WalletState.d.ts","sourceRoot":"","sources":["../../../src/components/SwapDetailsModal/SwapDetailsModal.WalletState.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAMxE,OAAO,KAAmB,MAAM,OAAO,CAAC;AAexC,eAAO,MAAM,kBAAkB,UAAW,uBAAuB,sBAkEhE,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { PropTypes } from './WalletNamespacesModal.types';
2
+ import { Namespace } from '@rango-dev/wallets-shared';
3
+ import React from 'react';
4
+ export declare const namespaceMainBlockchain: Record<Namespace, string>;
5
+ export declare function WalletNamespacesModal(props: PropTypes): React.JSX.Element;
6
+ //# sourceMappingURL=WalletNamespacesModal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WalletNamespacesModal.d.ts","sourceRoot":"","sources":["../../../src/components/WalletNamespacesModal/WalletNamespacesModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAa/D,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,KAA4B,MAAM,OAAO,CAAC;AAajD,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAO7D,CAAC;AAUF,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,SAAS,qBAiGrD"}
@@ -0,0 +1,163 @@
1
+ export declare const NamespaceList: import("@stitches/react/types/styled-component").StyledComponent<"ul", {}, {
2
+ xs: string;
3
+ sm: string;
4
+ md: string;
5
+ lg: string;
6
+ }, import("@stitches/react/types/css-util").CSS<{
7
+ xs: string;
8
+ sm: string;
9
+ md: string;
10
+ lg: string;
11
+ }, {
12
+ colors: {
13
+ primary: string;
14
+ primary500: string;
15
+ primary600: string;
16
+ secondary: string;
17
+ secondary100: string;
18
+ secondary200: string;
19
+ secondary300: string;
20
+ secondary400: string;
21
+ secondary500: string;
22
+ secondary600: string;
23
+ secondary700: string;
24
+ secondary800: string;
25
+ secondary900: string;
26
+ neutral: string;
27
+ neutral100: string;
28
+ neutral200: string;
29
+ neutral300: string;
30
+ neutral400: string;
31
+ neutral500: string;
32
+ neutral600: string;
33
+ neutral700: string;
34
+ neutral800: string;
35
+ neutral900: string;
36
+ error100: string;
37
+ error300: string;
38
+ error500: string;
39
+ error600: string;
40
+ error700: string;
41
+ warning100: string;
42
+ warning300: string;
43
+ warning500: string;
44
+ warning600: string;
45
+ warning700: string;
46
+ info: string;
47
+ info100: string;
48
+ info300: string;
49
+ info500: string;
50
+ info600: string;
51
+ info700: string;
52
+ success100: string;
53
+ success300: string;
54
+ success500: string;
55
+ success600: string;
56
+ success700: string;
57
+ background: string;
58
+ foreground: string;
59
+ };
60
+ space: {
61
+ 0: string;
62
+ 5: string;
63
+ 10: string;
64
+ 15: string;
65
+ 20: string;
66
+ 25: string;
67
+ 30: string;
68
+ 40: string;
69
+ 46: string;
70
+ 50: string;
71
+ 60: string;
72
+ 70: string;
73
+ 80: string;
74
+ 90: string;
75
+ 100: string;
76
+ 2: string;
77
+ 4: string;
78
+ 6: string;
79
+ 8: string;
80
+ 12: string;
81
+ 16: string;
82
+ 24: string;
83
+ 28: string;
84
+ 32: string;
85
+ };
86
+ radii: {
87
+ xs: string;
88
+ sm: string;
89
+ xm: string;
90
+ md: string;
91
+ xl: string;
92
+ lg: string;
93
+ primary: string;
94
+ secondary: string;
95
+ };
96
+ fontSizes: {
97
+ 10: string;
98
+ 12: string;
99
+ 14: string;
100
+ 16: string;
101
+ 18: string;
102
+ 20: string;
103
+ 22: string;
104
+ 24: string;
105
+ 28: string;
106
+ 32: string;
107
+ 36: string;
108
+ 40: string;
109
+ 48: string;
110
+ };
111
+ fonts: {
112
+ primary: string;
113
+ widget: string;
114
+ };
115
+ fontWeights: {
116
+ regular: number;
117
+ medium: number;
118
+ semiBold: number;
119
+ bold: number;
120
+ };
121
+ lineHeights: {
122
+ 12: string;
123
+ 16: string;
124
+ 20: string;
125
+ 24: string;
126
+ 26: string;
127
+ 28: string;
128
+ 30: string;
129
+ 36: string;
130
+ 40: string;
131
+ 44: string;
132
+ 52: string;
133
+ 64: string;
134
+ };
135
+ letterSpacings: {};
136
+ sizes: {
137
+ 4: string;
138
+ 6: string;
139
+ 8: string;
140
+ 10: string;
141
+ 12: string;
142
+ 16: string;
143
+ 18: string;
144
+ 20: string;
145
+ 24: string;
146
+ 26: string;
147
+ 28: string;
148
+ 30: string;
149
+ 32: string;
150
+ 36: string;
151
+ 40: string;
152
+ 45: string;
153
+ 48: string;
154
+ };
155
+ borderWidths: {};
156
+ borderStyles: {};
157
+ shadows: {
158
+ s: string;
159
+ };
160
+ zIndices: {};
161
+ transitions: {};
162
+ }, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
163
+ //# sourceMappingURL=WalletNamespacesModal.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WalletNamespacesModal.styles.d.ts","sourceRoot":"","sources":["../../../src/components/WalletNamespacesModal/WalletNamespacesModal.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAIxB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { Namespace } from '@rango-dev/wallets-shared';
2
+ export interface PropTypes {
3
+ open: boolean;
4
+ image?: string;
5
+ onClose: () => void;
6
+ onConfirm: (namespaces: Namespace[]) => void;
7
+ namespaces?: Namespace[];
8
+ singleNamespace?: boolean;
9
+ }
10
+ //# sourceMappingURL=WalletNamespacesModal.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WalletNamespacesModal.types.d.ts","sourceRoot":"","sources":["../../../src/components/WalletNamespacesModal/WalletNamespacesModal.types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAE3D,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,CAAC,UAAU,EAAE,SAAS,EAAE,KAAK,IAAI,CAAC;IAC7C,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;IACzB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B"}
@@ -0,0 +1,2 @@
1
+ export { WalletNamespacesModal } from './WalletNamespacesModal';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/WalletNamespacesModal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useSwapInput.d.ts","sourceRoot":"","sources":["../../src/hooks/useSwapInput.ts"],"names":[],"mappings":"AAiCA,KAAK,YAAY,GAAG;IAClB,KAAK,EAAE,CAAC,yBAAyB,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACrD,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AACF,KAAK,iBAAiB,GAAG;IACvB,YAAY,EAAE,OAAO,CAAC;CACvB,CAAC;AACF;;;GAGG;AACH,wBAAgB,YAAY,CAAC,EAC3B,YAAY,GACb,EAAE,iBAAiB,GAAG,YAAY,CAgNlC"}
1
+ {"version":3,"file":"useSwapInput.d.ts","sourceRoot":"","sources":["../../src/hooks/useSwapInput.ts"],"names":[],"mappings":"AAiCA,KAAK,YAAY,GAAG;IAClB,KAAK,EAAE,CAAC,yBAAyB,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACrD,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AACF,KAAK,iBAAiB,GAAG;IACvB,YAAY,EAAE,OAAO,CAAC;CACvB,CAAC;AACF;;;GAGG;AACH,wBAAgB,YAAY,CAAC,EAC3B,YAAY,GACb,EAAE,iBAAiB,GAAG,YAAY,CAsNlC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useSyncStoresWithConfig.d.ts","sourceRoot":"","sources":["../../src/hooks/useSyncStoresWithConfig.ts"],"names":[],"mappings":"AAYA,wBAAgB,uBAAuB,SA0HtC"}
1
+ {"version":3,"file":"useSyncStoresWithConfig.d.ts","sourceRoot":"","sources":["../../src/hooks/useSyncStoresWithConfig.ts"],"names":[],"mappings":"AAYA,wBAAgB,uBAAuB,SA6HtC"}
@@ -1,5 +1,4 @@
1
- import type { WalletInfo } from '@rango-dev/ui';
2
- import { type WalletType } from '@rango-dev/wallets-shared';
1
+ import type { Namespace, WalletType } from '@rango-dev/wallets-shared';
3
2
  interface Params {
4
3
  chain?: string;
5
4
  onBeforeConnect?: (walletType: string) => void;
@@ -11,10 +10,11 @@ interface Params {
11
10
  * you can use this list whenever you need to show the list of wallets and needed callbacks
12
11
  */
13
12
  export declare function useWalletList(params: Params): {
14
- list: WalletInfo[];
13
+ list: import("../types").WalletInfoWithNamespaces[];
15
14
  error: string;
16
- handleClick: (type: WalletType) => Promise<void>;
15
+ handleClick: (type: WalletType, namespaces?: Namespace[]) => Promise<void>;
17
16
  disconnectConnectingWallets: () => void;
17
+ disconnectWallet: (type: WalletType) => Promise<void>;
18
18
  };
19
19
  export {};
20
20
  //# sourceMappingURL=useWalletList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useWalletList.d.ts","sourceRoot":"","sources":["../../src/hooks/useWalletList.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAKhD,OAAO,EAGL,KAAK,UAAU,EAEhB,MAAM,2BAA2B,CAAC;AAenC,UAAU,MAAM;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/C,SAAS,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1C;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM;;;wBAoCT,UAAU;;EA4F5C"}
1
+ {"version":3,"file":"useWalletList.d.ts","sourceRoot":"","sources":["../../src/hooks/useWalletList.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAwBvE,UAAU,MAAM;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/C,SAAS,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1C;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM;;;wBAoCT,UAAU,eAAe,SAAS,EAAE;;6BAiC/B,UAAU;EAmEjD"}