@rango-dev/widget-embedded 0.31.1-next.3 → 0.31.1-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.
- package/dist/containers/Wallets/Wallets.types.d.ts +1 -1
- package/dist/containers/Wallets/Wallets.types.d.ts.map +1 -1
- package/dist/containers/WidgetProvider/WidgetProvider.types.d.ts +1 -1
- package/dist/containers/WidgetProvider/WidgetProvider.types.d.ts.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +2 -2
- package/dist/widget-embedded.build.json +1 -1
- package/package.json +7 -6
- package/src/containers/Wallets/Wallets.tsx +1 -1
- package/src/containers/Wallets/Wallets.types.ts +1 -1
- package/src/containers/WidgetProvider/WidgetProvider.types.ts +1 -1
- package/src/index.ts +5 -8
- package/src/utils/wallets.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rango-dev/widget-embedded",
|
|
3
|
-
"version": "0.31.1-next.
|
|
3
|
+
"version": "0.31.1-next.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "./src/index.ts",
|
|
@@ -25,14 +25,15 @@
|
|
|
25
25
|
"@lingui/core": "4.2.1",
|
|
26
26
|
"@lingui/react": "4.2.1",
|
|
27
27
|
"@rango-dev/logging-core": "^0.6.0",
|
|
28
|
-
"@rango-dev/provider-all": "^0.36.1-next.
|
|
28
|
+
"@rango-dev/provider-all": "^0.36.1-next.1",
|
|
29
29
|
"@rango-dev/queue-manager-core": "^0.27.0",
|
|
30
|
-
"@rango-dev/queue-manager-rango-preset": "^0.36.0",
|
|
30
|
+
"@rango-dev/queue-manager-rango-preset": "^0.36.1-next.0",
|
|
31
31
|
"@rango-dev/queue-manager-react": "^0.27.0",
|
|
32
32
|
"@rango-dev/signer-solana": "^0.31.1-next.0",
|
|
33
|
-
"@rango-dev/ui": "^0.37.1-next.
|
|
34
|
-
"@rango-dev/wallets-
|
|
35
|
-
"@rango-dev/wallets-
|
|
33
|
+
"@rango-dev/ui": "^0.37.1-next.2",
|
|
34
|
+
"@rango-dev/wallets-core": "^0.37.1-next.0",
|
|
35
|
+
"@rango-dev/wallets-react": "^0.22.1-next.0",
|
|
36
|
+
"@rango-dev/wallets-shared": "^0.36.1-next.0",
|
|
36
37
|
"bignumber.js": "^9.1.1",
|
|
37
38
|
"copy-to-clipboard": "^3.3.3",
|
|
38
39
|
"dayjs": "^1.11.7",
|
|
@@ -4,7 +4,7 @@ import type {
|
|
|
4
4
|
WidgetContextInterface,
|
|
5
5
|
} from './Wallets.types';
|
|
6
6
|
import type { ProvidersOptions } from '../../utils/providers';
|
|
7
|
-
import type { EventHandler } from '@rango-dev/wallets-
|
|
7
|
+
import type { LegacyEventHandler as EventHandler } from '@rango-dev/wallets-core/legacy';
|
|
8
8
|
import type { PropsWithChildren } from 'react';
|
|
9
9
|
|
|
10
10
|
import { Events, Provider } from '@rango-dev/wallets-react';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { WidgetConfig } from '../../types';
|
|
2
|
-
import type { EventHandler } from '@rango-dev/wallets-
|
|
2
|
+
import type { LegacyEventHandler as EventHandler } from '@rango-dev/wallets-core/legacy';
|
|
3
3
|
|
|
4
4
|
export type OnWalletConnectionChange = (key: string) => void;
|
|
5
5
|
export interface WidgetContextInterface {
|
package/src/index.ts
CHANGED
|
@@ -35,9 +35,9 @@ import type {
|
|
|
35
35
|
StepTxExecutionUpdatedEvent,
|
|
36
36
|
} from '@rango-dev/queue-manager-rango-preset';
|
|
37
37
|
import type {
|
|
38
|
-
|
|
39
|
-
ProviderInterface,
|
|
40
|
-
} from '@rango-dev/wallets-
|
|
38
|
+
LegacyEventHandler as HandleWalletsUpdate,
|
|
39
|
+
LegacyProviderInterface as ProviderInterface,
|
|
40
|
+
} from '@rango-dev/wallets-core/legacy';
|
|
41
41
|
import type {
|
|
42
42
|
WalletInfo,
|
|
43
43
|
WalletState,
|
|
@@ -52,11 +52,8 @@ import {
|
|
|
52
52
|
StepExecutionBlockedEventStatus,
|
|
53
53
|
StepExecutionEventStatus,
|
|
54
54
|
} from '@rango-dev/queue-manager-rango-preset';
|
|
55
|
-
import {
|
|
56
|
-
|
|
57
|
-
useWallets,
|
|
58
|
-
Events as WalletEvents,
|
|
59
|
-
} from '@rango-dev/wallets-react';
|
|
55
|
+
import { legacyReadAccountAddress as readAccountAddress } from '@rango-dev/wallets-core/legacy';
|
|
56
|
+
import { useWallets, Events as WalletEvents } from '@rango-dev/wallets-react';
|
|
60
57
|
import { Networks, WalletTypes } from '@rango-dev/wallets-shared';
|
|
61
58
|
import { PendingSwapNetworkStatus } from 'rango-types';
|
|
62
59
|
|
package/src/utils/wallets.ts
CHANGED
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
BlockchainCategories,
|
|
27
27
|
WalletState as WalletStatus,
|
|
28
28
|
} from '@rango-dev/ui';
|
|
29
|
-
import { readAccountAddress } from '@rango-dev/wallets-
|
|
29
|
+
import { legacyReadAccountAddress as readAccountAddress } from '@rango-dev/wallets-core/legacy';
|
|
30
30
|
import {
|
|
31
31
|
detectInstallLink,
|
|
32
32
|
getCosmosExperimentalChainInfo,
|