@rango-dev/widget-embedded 0.11.1-next.0 → 0.11.1-next.2
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/Wallets.d.ts +1 -1
- package/dist/Wallets.d.ts.map +1 -1
- package/dist/hooks/useWalletProviders.d.ts +1 -1
- package/dist/hooks/useWalletProviders.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +2 -2
- package/dist/types/config.d.ts +1 -1
- package/dist/types/config.d.ts.map +1 -1
- package/dist/utils/providers.d.ts +1 -1
- package/dist/utils/providers.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/QueueManager.tsx +1 -1
- package/src/Wallets.tsx +2 -2
- package/src/components/AppRouter.tsx +1 -1
- package/src/components/Layout.tsx +1 -1
- package/src/hooks/useWalletProviders.ts +1 -1
- package/src/index.ts +1 -1
- package/src/pages/ConfirmSwapPage.tsx +1 -1
- package/src/pages/SwapDetailsPage.tsx +1 -1
- package/src/pages/WalletsPage.tsx +1 -1
- package/src/types/config.ts +1 -1
- package/src/utils/providers.ts +1 -1
- package/src/utils/wallets.ts +1 -1
package/dist/types/config.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Asset } from 'rango-sdk';
|
|
2
2
|
import { WalletType } from '@rango-dev/wallets-shared';
|
|
3
|
-
import { ProviderInterface } from '@rango-dev/wallets-
|
|
3
|
+
import { ProviderInterface } from '@rango-dev/wallets-react';
|
|
4
4
|
import { Language } from '@rango-dev/ui';
|
|
5
5
|
/**
|
|
6
6
|
* The above type defines a set of optional color properties for a widget.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/types/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAA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AC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACrC,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC;CAClB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,wBAAwB,CAAC;IAChC,EAAE,CAAC,EAAE,wBAAwB,CAAC;IAC9B,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,OAAO,CAAC,EAAE,CAAC,UAAU,GAAG,iBAAiB,CAAC,EAAE,CAAC;IAC7C,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProviderInterface } from '@rango-dev/wallets-
|
|
1
|
+
import { ProviderInterface } from '@rango-dev/wallets-react';
|
|
2
2
|
import { WidgetConfig } from '../types';
|
|
3
3
|
export interface ProvidersOptions {
|
|
4
4
|
walletConnectProjectId?: WidgetConfig['walletConnectProjectId'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"providers.d.ts","sourceRoot":"","sources":["../../src/utils/providers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"providers.d.ts","sourceRoot":"","sources":["../../src/utils/providers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,MAAM,WAAW,gBAAgB;IAC/B,sBAAsB,CAAC,EAAE,YAAY,CAAC,wBAAwB,CAAC,CAAC;CACjE;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,SAAS,EAAE,YAAY,CAAC,SAAS,CAAC,EAClC,OAAO,CAAC,EAAE,gBAAgB,GACzB,iBAAiB,EAAE,CAkCrB;AAED,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,YAAY,CAAC,SAAS,CAAC,EAC/B,OAAO,CAAC,EAAE,gBAAgB,GACzB,MAAM,EAAE,CAMV"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rango-dev/widget-embedded",
|
|
3
|
-
"version": "0.11.1-next.
|
|
3
|
+
"version": "0.11.1-next.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@lingui/core": "4.2.1",
|
|
21
21
|
"@lingui/react": "4.2.1",
|
|
22
|
-
"@rango-dev/provider-all": "^0.14.0",
|
|
22
|
+
"@rango-dev/provider-all": "^0.14.1-next.0",
|
|
23
23
|
"@rango-dev/queue-manager-core": "^0.14.0",
|
|
24
|
-
"@rango-dev/queue-manager-rango-preset": "^0.14.0",
|
|
24
|
+
"@rango-dev/queue-manager-rango-preset": "^0.14.1-next.0",
|
|
25
25
|
"@rango-dev/queue-manager-react": "^0.14.0",
|
|
26
|
-
"@rango-dev/ui": "^0.14.1-next.
|
|
27
|
-
"@rango-dev/wallets-
|
|
26
|
+
"@rango-dev/ui": "^0.14.1-next.1",
|
|
27
|
+
"@rango-dev/wallets-react": "^0.1.1-next.0",
|
|
28
28
|
"@rango-dev/wallets-shared": "^0.14.0",
|
|
29
29
|
"bignumber.js": "^9.1.1",
|
|
30
30
|
"copy-to-clipboard": "^3.3.3",
|
package/src/QueueManager.tsx
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
SwapQueueContext,
|
|
6
6
|
checkWaitingForNetworkChange,
|
|
7
7
|
} from '@rango-dev/queue-manager-rango-preset';
|
|
8
|
-
import { useWallets } from '@rango-dev/wallets-
|
|
8
|
+
import { useWallets } from '@rango-dev/wallets-react';
|
|
9
9
|
import {
|
|
10
10
|
convertEvmBlockchainMetaToEvmChainInfo,
|
|
11
11
|
Network,
|
package/src/Wallets.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from 'react';
|
|
2
2
|
import { useMetaStore } from './store/meta';
|
|
3
|
-
import { Events, Provider } from '@rango-dev/wallets-
|
|
4
|
-
import { EventHandler } from '@rango-dev/wallets-
|
|
3
|
+
import { Events, Provider } from '@rango-dev/wallets-react';
|
|
4
|
+
import type { EventHandler } from '@rango-dev/wallets-react';
|
|
5
5
|
import { Network } from '@rango-dev/wallets-shared';
|
|
6
6
|
import {
|
|
7
7
|
prepareAccountsForWalletStore,
|
|
@@ -4,7 +4,7 @@ import { useQueueManager } from '@rango-dev/queue-manager-rango-preset';
|
|
|
4
4
|
import { WalletType } from '@rango-dev/wallets-shared';
|
|
5
5
|
import { UpdateUrl } from './UpdateUrl';
|
|
6
6
|
import { useMetaStore } from '../store/meta';
|
|
7
|
-
import { useWallets } from '@rango-dev/wallets-
|
|
7
|
+
import { useWallets } from '@rango-dev/wallets-react';
|
|
8
8
|
import { isEvmBlockchain } from 'rango-types';
|
|
9
9
|
|
|
10
10
|
export function AppRouter({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useEffect } from 'react';
|
|
2
2
|
import { useNavigate } from 'react-router-dom';
|
|
3
3
|
import { HeaderLayout } from '@rango-dev/ui';
|
|
4
|
-
import { useWallets } from '@rango-dev/wallets-
|
|
4
|
+
import { useWallets } from '@rango-dev/wallets-react';
|
|
5
5
|
import { navigationRoutes } from '../constants/navigationRoutes';
|
|
6
6
|
import { useUiStore } from '../store/ui';
|
|
7
7
|
import { AppRoutes } from './AppRoutes';
|
package/src/index.ts
CHANGED
|
@@ -2,7 +2,7 @@ import React, { useEffect, useState } from 'react';
|
|
|
2
2
|
import { useNavigate } from 'react-router-dom';
|
|
3
3
|
import { useBestRouteStore } from '../store/bestRoute';
|
|
4
4
|
import { useWalletsStore } from '../store/wallets';
|
|
5
|
-
import { useWallets } from '@rango-dev/wallets-
|
|
5
|
+
import { useWallets } from '@rango-dev/wallets-react';
|
|
6
6
|
import { i18n } from '@lingui/core';
|
|
7
7
|
import { navigationRoutes } from '../constants/navigationRoutes';
|
|
8
8
|
import {
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
cancelSwap,
|
|
14
14
|
PendingSwapNetworkStatus,
|
|
15
15
|
} from '@rango-dev/queue-manager-rango-preset';
|
|
16
|
-
import { useWallets } from '@rango-dev/wallets-
|
|
16
|
+
import { useWallets } from '@rango-dev/wallets-react';
|
|
17
17
|
import {
|
|
18
18
|
getCurrentBlockchainOfOrNull,
|
|
19
19
|
getCurrentStep,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
WalletTypes,
|
|
14
14
|
detectMobileScreens,
|
|
15
15
|
} from '@rango-dev/wallets-shared';
|
|
16
|
-
import { useWallets } from '@rango-dev/wallets-
|
|
16
|
+
import { useWallets } from '@rango-dev/wallets-react';
|
|
17
17
|
|
|
18
18
|
import { useUiStore } from '../store/ui';
|
|
19
19
|
import { useNavigateBack } from '../hooks/useNavigateBack';
|
package/src/types/config.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Asset } from 'rango-sdk';
|
|
2
2
|
import { WalletType } from '@rango-dev/wallets-shared';
|
|
3
|
-
import { ProviderInterface } from '@rango-dev/wallets-
|
|
3
|
+
import { ProviderInterface } from '@rango-dev/wallets-react';
|
|
4
4
|
import { Language } from '@rango-dev/ui';
|
|
5
5
|
|
|
6
6
|
/**
|
package/src/utils/providers.ts
CHANGED
package/src/utils/wallets.ts
CHANGED
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
WalletDetail,
|
|
24
24
|
} from 'rango-sdk';
|
|
25
25
|
import { isCosmosBlockchain } from 'rango-types';
|
|
26
|
-
import { readAccountAddress } from '@rango-dev/wallets-
|
|
26
|
+
import { readAccountAddress } from '@rango-dev/wallets-react';
|
|
27
27
|
import { ConnectedWallet, TokenBalance } from '../store/wallets';
|
|
28
28
|
import { numberToString } from './numbers';
|
|
29
29
|
import BigNumber from 'bignumber.js';
|