@reown/appkit 1.0.1 → 1.0.3
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/package.json +4 -4
- package/dist/esm/src/client.js +40 -34
- package/dist/esm/src/client.js.map +1 -1
- package/dist/esm/src/universal-adapter/client.js +55 -65
- package/dist/esm/src/universal-adapter/client.js.map +1 -1
- package/dist/esm/src/utils/ConstantsUtil.js +0 -3
- package/dist/esm/src/utils/ConstantsUtil.js.map +1 -1
- package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/src/client.d.ts +3 -1
- package/dist/types/src/utils/ConstantsUtil.d.ts +0 -3
- package/dist/types/src/utils/TypesUtil.d.ts +8 -8
- package/package.json +12 -12
- package/readme.md +1 -1
|
@@ -95,8 +95,10 @@ export declare class AppKit {
|
|
|
95
95
|
getConnectorImage: (typeof AssetUtil)['getConnectorImage'];
|
|
96
96
|
handleUnsafeRPCRequest: () => void;
|
|
97
97
|
private initControllers;
|
|
98
|
+
private setMetadata;
|
|
99
|
+
private extendCaipNetworks;
|
|
98
100
|
private initializeUniversalAdapter;
|
|
99
101
|
private initializeAdapters;
|
|
102
|
+
private setDefaultNetwork;
|
|
100
103
|
private initOrContinue;
|
|
101
|
-
private extendCaipNetworksWithImages;
|
|
102
104
|
}
|
|
@@ -15,45 +15,45 @@ export type AppKitOptions = {
|
|
|
15
15
|
/**
|
|
16
16
|
* Sign In With Ethereum configuration object.
|
|
17
17
|
* @default undefined
|
|
18
|
-
* @see https://docs.
|
|
18
|
+
* @see https://docs.reown.com/appkit/react/core/siwe#configure-your-siwe-client
|
|
19
19
|
*/
|
|
20
20
|
siweConfig?: AppKitSIWEClient;
|
|
21
21
|
/**
|
|
22
22
|
* Theme mode configuration flag. By default themeMode option will be set to user system settings.
|
|
23
23
|
* @default `system`
|
|
24
24
|
* @type `dark` | `light`
|
|
25
|
-
* @see https://docs.
|
|
25
|
+
* @see https://docs.reown.com/appkit/react/core/theming
|
|
26
26
|
*/
|
|
27
27
|
themeMode?: ThemeMode;
|
|
28
28
|
/**
|
|
29
29
|
* Theme variable configuration object.
|
|
30
30
|
* @default undefined
|
|
31
|
-
* @see https://docs.
|
|
31
|
+
* @see https://docs.reown.com/appkit/react/core/theming#themevariables
|
|
32
32
|
*/
|
|
33
33
|
themeVariables?: ThemeVariables;
|
|
34
34
|
/**
|
|
35
35
|
* Allow users to switch to an unsupported chain.
|
|
36
|
-
* @see https://docs.
|
|
36
|
+
* @see https://docs.reown.com/appkit/react/core/options#allowunsupportedchain
|
|
37
37
|
*/
|
|
38
38
|
allowUnsupportedChain?: NetworkControllerState['allowUnsupportedCaipNetwork'];
|
|
39
39
|
/**
|
|
40
40
|
* You can set the desired caipnetworks for the app:
|
|
41
|
-
* @see https://docs.
|
|
41
|
+
* @see https://docs.reown.com/appkit/react/core/options#defaultchain
|
|
42
42
|
*/
|
|
43
43
|
networks: CaipNetwork[];
|
|
44
44
|
/**
|
|
45
45
|
* You can set a desired caipnetwork for the initial connection:
|
|
46
|
-
* @see https://docs.
|
|
46
|
+
* @see https://docs.reown.com/appkit/react/core/options#defaultchain
|
|
47
47
|
*/
|
|
48
48
|
defaultNetwork?: NetworkControllerState['caipNetwork'];
|
|
49
49
|
/**
|
|
50
50
|
* Add or override the modal's network images.
|
|
51
|
-
* @see https://docs.
|
|
51
|
+
* @see https://docs.reown.com/appkit/react/core/options#chainimages
|
|
52
52
|
*/
|
|
53
53
|
chainImages?: Record<number | string, string>;
|
|
54
54
|
/**
|
|
55
55
|
* Set or override the images of any connector. The key of each property must match the id of the connector.
|
|
56
|
-
* @see https://docs.
|
|
56
|
+
* @see https://docs.reown.com/appkit/react/core/options#connectorimages
|
|
57
57
|
*/
|
|
58
58
|
connectorImages?: Record<string, string>;
|
|
59
59
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reown/appkit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/esm/exports/index.js",
|
|
6
6
|
"types": "./dist/types/exports/index.d.ts",
|
|
@@ -85,14 +85,14 @@
|
|
|
85
85
|
"@walletconnect/types": "2.16.1",
|
|
86
86
|
"@walletconnect/utils": "2.16.1",
|
|
87
87
|
"valtio": "1.11.2",
|
|
88
|
-
"@reown/appkit-common": "1.0.
|
|
89
|
-
"@reown/appkit-core": "1.0.
|
|
90
|
-
"@reown/appkit-polyfills": "1.0.
|
|
91
|
-
"@reown/appkit-scaffold-ui": "1.0.
|
|
92
|
-
"@reown/appkit-utils": "1.0.
|
|
93
|
-
"@reown/appkit-siwe": "1.0.
|
|
94
|
-
"@reown/appkit-ui": "1.0.
|
|
95
|
-
"@reown/appkit-wallet": "1.0.
|
|
88
|
+
"@reown/appkit-common": "1.0.3",
|
|
89
|
+
"@reown/appkit-core": "1.0.3",
|
|
90
|
+
"@reown/appkit-polyfills": "1.0.3",
|
|
91
|
+
"@reown/appkit-scaffold-ui": "1.0.3",
|
|
92
|
+
"@reown/appkit-utils": "1.0.3",
|
|
93
|
+
"@reown/appkit-siwe": "1.0.3",
|
|
94
|
+
"@reown/appkit-ui": "1.0.3",
|
|
95
|
+
"@reown/appkit-wallet": "1.0.3"
|
|
96
96
|
},
|
|
97
97
|
"optionalDependencies": {
|
|
98
98
|
"borsh": "0.7.0",
|
|
@@ -122,13 +122,13 @@
|
|
|
122
122
|
},
|
|
123
123
|
"author": "Reown <support@reown.com> (https://reown.com)",
|
|
124
124
|
"license": "Apache-2.0",
|
|
125
|
-
"homepage": "https://github.com/
|
|
125
|
+
"homepage": "https://github.com/WalletConnect/web3modal",
|
|
126
126
|
"repository": {
|
|
127
127
|
"type": "git",
|
|
128
|
-
"url": "git+https://github.com/WalletConnect/
|
|
128
|
+
"url": "git+https://github.com/WalletConnect/web3modal.git"
|
|
129
129
|
},
|
|
130
130
|
"bugs": {
|
|
131
|
-
"url": "https://github.com/
|
|
131
|
+
"url": "https://github.com/WalletConnect/web3modal/issues"
|
|
132
132
|
},
|
|
133
133
|
"scripts": {
|
|
134
134
|
"build:clean": "rm -rf dist",
|
package/readme.md
CHANGED