@rango-dev/widget-embedded 0.50.1-next.5 → 0.50.1-next.7
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/components/WalletStatefulConnect/ConnectStatus.d.ts.map +1 -1
- package/dist/components/WalletStatefulConnect/ConnectStatus.styles.d.ts +0 -160
- package/dist/components/WalletStatefulConnect/ConnectStatus.styles.d.ts.map +1 -1
- package/dist/components/WalletStatefulConnect/Detached.d.ts.map +1 -1
- package/dist/components/WalletStatefulConnect/Namespaces.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +3 -3
- package/dist/widget-embedded.build.json +1 -1
- package/package.json +7 -7
- package/src/components/WalletStatefulConnect/ConnectStatus.styles.ts +0 -6
- package/src/components/WalletStatefulConnect/ConnectStatus.tsx +7 -6
- package/src/components/WalletStatefulConnect/Detached.tsx +13 -2
- package/src/components/WalletStatefulConnect/Namespaces.tsx +6 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rango-dev/widget-embedded",
|
|
3
|
-
"version": "0.50.1-next.
|
|
3
|
+
"version": "0.50.1-next.7",
|
|
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.11.0",
|
|
28
|
-
"@rango-dev/provider-all": "^0.52.1-next.
|
|
28
|
+
"@rango-dev/provider-all": "^0.52.1-next.5",
|
|
29
29
|
"@rango-dev/queue-manager-core": "^0.32.0",
|
|
30
|
-
"@rango-dev/queue-manager-rango-preset": "^0.52.1-next.
|
|
30
|
+
"@rango-dev/queue-manager-rango-preset": "^0.52.1-next.4",
|
|
31
31
|
"@rango-dev/queue-manager-react": "^0.32.0",
|
|
32
32
|
"@rango-dev/signer-solana": "^0.44.0",
|
|
33
|
-
"@rango-dev/ui": "^0.53.1-next.
|
|
34
|
-
"@rango-dev/wallets-core": "^0.49.1-next.
|
|
35
|
-
"@rango-dev/wallets-react": "^0.36.1-next.
|
|
36
|
-
"@rango-dev/wallets-shared": "^0.50.1-next.
|
|
33
|
+
"@rango-dev/ui": "^0.53.1-next.6",
|
|
34
|
+
"@rango-dev/wallets-core": "^0.49.1-next.4",
|
|
35
|
+
"@rango-dev/wallets-react": "^0.36.1-next.4",
|
|
36
|
+
"@rango-dev/wallets-shared": "^0.50.1-next.4",
|
|
37
37
|
"bignumber.js": "^9.1.1",
|
|
38
38
|
"copy-to-clipboard": "^3.3.3",
|
|
39
39
|
"dayjs": "^1.11.7",
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import type { ConnectStatusProps } from './ConnectStatus.types';
|
|
2
2
|
|
|
3
3
|
import { i18n } from '@lingui/core';
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
Image,
|
|
6
|
+
MessageBox,
|
|
7
|
+
WalletImageContainer,
|
|
8
|
+
WalletState,
|
|
9
|
+
} from '@rango-dev/ui';
|
|
5
10
|
import { useWallets } from '@rango-dev/wallets-react';
|
|
6
11
|
import React from 'react';
|
|
7
12
|
|
|
8
13
|
import { mapStatusToWalletState } from '../../utils/wallets';
|
|
9
14
|
|
|
10
|
-
import {
|
|
11
|
-
LogoContainer,
|
|
12
|
-
Spinner,
|
|
13
|
-
WalletImageContainer,
|
|
14
|
-
} from './ConnectStatus.styles';
|
|
15
|
+
import { LogoContainer, Spinner } from './ConnectStatus.styles';
|
|
15
16
|
|
|
16
17
|
export function ConnectStatus(props: ConnectStatusProps) {
|
|
17
18
|
// See `wallet` notes on its type definition
|
|
@@ -3,7 +3,14 @@ import type { LegacyNamespaceMeta } from '@rango-dev/wallets-core/legacy';
|
|
|
3
3
|
import type { Namespace } from '@rango-dev/wallets-core/namespaces/common';
|
|
4
4
|
|
|
5
5
|
import { i18n } from '@lingui/core';
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
Alert,
|
|
8
|
+
Button,
|
|
9
|
+
Divider,
|
|
10
|
+
Image,
|
|
11
|
+
MessageBox,
|
|
12
|
+
WalletImageContainer,
|
|
13
|
+
} from '@rango-dev/ui';
|
|
7
14
|
import { useWallets } from '@rango-dev/wallets-react';
|
|
8
15
|
import React from 'react';
|
|
9
16
|
|
|
@@ -146,7 +153,11 @@ export function Detached(props: PropTypes) {
|
|
|
146
153
|
description={i18n.t(
|
|
147
154
|
'This wallet supports multiple chains. Choose which chains you’d like to connect or disconnect.'
|
|
148
155
|
)}
|
|
149
|
-
icon={
|
|
156
|
+
icon={
|
|
157
|
+
<WalletImageContainer>
|
|
158
|
+
<Image src={targetWallet.image} size={45} />
|
|
159
|
+
</WalletImageContainer>
|
|
160
|
+
}
|
|
150
161
|
/>
|
|
151
162
|
{renderNamespaceListHeader()}
|
|
152
163
|
<NamespaceList id="widget-detached-namespace-list">
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
Image,
|
|
10
10
|
MessageBox,
|
|
11
11
|
RadioRoot,
|
|
12
|
+
WalletImageContainer,
|
|
12
13
|
} from '@rango-dev/ui';
|
|
13
14
|
import React, { useEffect, useMemo, useState } from 'react';
|
|
14
15
|
|
|
@@ -111,7 +112,11 @@ export function Namespaces(props: PropTypes) {
|
|
|
111
112
|
description={i18n.t(
|
|
112
113
|
'This wallet supports multiple chains. Choose which chains you’d like to connect.'
|
|
113
114
|
)}
|
|
114
|
-
icon={
|
|
115
|
+
icon={
|
|
116
|
+
<WalletImageContainer>
|
|
117
|
+
<Image src={providerImage} size={45} />
|
|
118
|
+
</WalletImageContainer>
|
|
119
|
+
}
|
|
115
120
|
/>
|
|
116
121
|
{singleNamespace ? (
|
|
117
122
|
<>
|