@reown/appkit-core 1.0.1 → 1.0.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/esm/src/controllers/ChainController.js +16 -10
- package/dist/esm/src/controllers/ChainController.js.map +1 -1
- package/dist/esm/src/controllers/ConnectorController.js +5 -3
- package/dist/esm/src/controllers/ConnectorController.js.map +1 -1
- package/dist/esm/src/controllers/NetworkController.js +8 -28
- package/dist/esm/src/controllers/NetworkController.js.map +1 -1
- package/dist/esm/src/utils/StorageUtil.js +13 -17
- package/dist/esm/src/utils/StorageUtil.js.map +1 -1
- package/dist/esm/tests/controllers/ConnectorController.test.js +58 -1
- package/dist/esm/tests/controllers/ConnectorController.test.js.map +1 -1
- package/dist/esm/tests/utils/StorageUtil.test.js +42 -29
- package/dist/esm/tests/utils/StorageUtil.test.js.map +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/dist/types/src/controllers/OptionsController.d.ts +7 -7
- package/dist/types/src/utils/StorageUtil.d.ts +6 -3
- package/package.json +6 -6
- package/readme.md +1 -1
|
@@ -3,7 +3,7 @@ export interface OptionsControllerStatePublic {
|
|
|
3
3
|
/**
|
|
4
4
|
* A boolean that allows you to add or remove the "All Wallets" button on the modal
|
|
5
5
|
* @default 'SHOW'
|
|
6
|
-
* @see https://docs.
|
|
6
|
+
* @see https://docs.reown.com/appkit/react/core/options#allwallets
|
|
7
7
|
*/
|
|
8
8
|
allWallets?: 'SHOW' | 'HIDE' | 'ONLY_MOBILE';
|
|
9
9
|
/**
|
|
@@ -14,31 +14,31 @@ export interface OptionsControllerStatePublic {
|
|
|
14
14
|
/**
|
|
15
15
|
* Array of wallet ids to be shown in the modal's connection view with priority. These wallets will also show up first in `All Wallets` view
|
|
16
16
|
* @default []
|
|
17
|
-
* @see https://docs.
|
|
17
|
+
* @see https://docs.reown.com/appkit/react/core/options#featuredwalletids
|
|
18
18
|
*/
|
|
19
19
|
featuredWalletIds?: string[];
|
|
20
20
|
/**
|
|
21
21
|
* Array of wallet ids to be shown (order is respected). Unlike `featuredWalletIds`, these wallets will be the only ones shown in `All Wallets` view and as recommended wallets.
|
|
22
22
|
* @default []
|
|
23
|
-
* @see https://docs.
|
|
23
|
+
* @see https://docs.reown.com/appkit/react/core/options#includewalletids
|
|
24
24
|
*/
|
|
25
25
|
includeWalletIds?: string[];
|
|
26
26
|
/**
|
|
27
27
|
* Array of wallet ids to be excluded from the wallet list in the modal.
|
|
28
28
|
* @default []
|
|
29
|
-
* @see https://docs.
|
|
29
|
+
* @see https://docs.reown.com/appkit/react/core/options#excludewalletids
|
|
30
30
|
*/
|
|
31
31
|
excludeWalletIds?: string[];
|
|
32
32
|
/**
|
|
33
33
|
* Array of tokens to show the user's balance of. Each key represents the chain id of the token's blockchain
|
|
34
34
|
* @default {}
|
|
35
|
-
* @see https://docs.
|
|
35
|
+
* @see https://docs.reown.com/appkit/react/core/options#tokens
|
|
36
36
|
*/
|
|
37
37
|
tokens?: Tokens;
|
|
38
38
|
/**
|
|
39
39
|
* Add custom wallets to the modal. CustomWallets is an array of objects, where each object contains specific information of a custom wallet.
|
|
40
40
|
* @default []
|
|
41
|
-
* @see https://docs.
|
|
41
|
+
* @see https://docs.reown.com/appkit/react/core/options#customwallets
|
|
42
42
|
*
|
|
43
43
|
*/
|
|
44
44
|
customWallets?: CustomWallet[];
|
|
@@ -90,7 +90,7 @@ export interface OptionsControllerStatePublic {
|
|
|
90
90
|
/**
|
|
91
91
|
* Features configuration object.
|
|
92
92
|
* @default { swaps: true, onramp: true, email: true, socials: ['google', 'x', 'discord', 'farcaster', 'github', 'apple', 'facebook'], history: true, analytics: true, allWallets: true }
|
|
93
|
-
* @see https://docs.
|
|
93
|
+
* @see https://docs.reown.com/appkit/react/core/options#features
|
|
94
94
|
*/
|
|
95
95
|
features?: Features;
|
|
96
96
|
}
|
|
@@ -4,13 +4,16 @@ export declare const StorageUtil: {
|
|
|
4
4
|
href: string;
|
|
5
5
|
name: string;
|
|
6
6
|
}): void;
|
|
7
|
-
getWalletConnectDeepLink():
|
|
7
|
+
getWalletConnectDeepLink(): {
|
|
8
|
+
href: string;
|
|
9
|
+
name: string;
|
|
10
|
+
} | undefined;
|
|
8
11
|
deleteWalletConnectDeepLink(): void;
|
|
9
12
|
setAppKitRecent(wallet: WcWallet): void;
|
|
10
13
|
getRecentWallets(): WcWallet[];
|
|
11
14
|
setConnectedConnector(connectorType: ConnectorType): void;
|
|
12
15
|
getConnectedConnector(): ConnectorType | undefined;
|
|
13
16
|
setConnectedSocialProvider(socialProvider: SocialProvider): void;
|
|
14
|
-
getConnectedSocialProvider(): string |
|
|
15
|
-
getConnectedSocialUsername(): string |
|
|
17
|
+
getConnectedSocialProvider(): string | undefined;
|
|
18
|
+
getConnectedSocialUsername(): string | undefined;
|
|
16
19
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reown/appkit-core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/esm/exports/index.js",
|
|
6
6
|
"types": "./dist/types/exports/index.d.ts",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@walletconnect/universal-provider": "2.16.1",
|
|
25
25
|
"valtio": "1.11.2",
|
|
26
|
-
"@reown/appkit-common": "1.0.
|
|
27
|
-
"@reown/appkit-wallet": "1.0.
|
|
26
|
+
"@reown/appkit-common": "1.0.2",
|
|
27
|
+
"@reown/appkit-wallet": "1.0.2"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"vitest": "2.0.5",
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
},
|
|
34
34
|
"author": "Reown <support@reown.com> (https://reown.com)",
|
|
35
35
|
"license": "Apache-2.0",
|
|
36
|
-
"homepage": "https://github.com/
|
|
36
|
+
"homepage": "https://github.com/WalletConnect/web3modal",
|
|
37
37
|
"repository": {
|
|
38
38
|
"type": "git",
|
|
39
|
-
"url": "git+https://github.com/WalletConnect/
|
|
39
|
+
"url": "git+https://github.com/WalletConnect/web3modal.git"
|
|
40
40
|
},
|
|
41
41
|
"bugs": {
|
|
42
|
-
"url": "https://github.com/
|
|
42
|
+
"url": "https://github.com/WalletConnect/web3modal/issues"
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|
|
45
45
|
"build:clean": "rm -rf dist",
|
package/readme.md
CHANGED