@reown/appkit 1.6.6-basic-test.5.0 → 1.6.6-basic-test.6.0
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/exports/basic.js +1 -0
- package/dist/esm/exports/basic.js.map +1 -1
- package/dist/esm/exports/constants.js +1 -1
- package/dist/esm/package.json +1 -1
- package/dist/esm/src/client/core.js +56 -2
- package/dist/esm/src/client/core.js.map +1 -1
- package/dist/esm/src/client.js +52 -2
- package/dist/esm/src/client.js.map +1 -1
- package/dist/esm/src/library/react/index.js.map +1 -1
- package/dist/esm/src/library/vue/index.js.map +1 -1
- package/dist/esm/src/universal-adapter/client.js +35 -0
- package/dist/esm/src/universal-adapter/client.js.map +1 -1
- package/dist/esm/tests/appkit.test.js +21 -1
- package/dist/esm/tests/appkit.test.js.map +1 -1
- package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/dist/types/exports/basic.d.ts +1 -1
- package/dist/types/exports/constants.d.ts +1 -1
- package/dist/types/exports/index.d.ts +1 -1
- package/dist/types/exports/react.d.ts +1 -1
- package/dist/types/exports/vue.d.ts +1 -1
- package/dist/types/src/client/core.d.ts +17 -0
- package/dist/types/src/client.d.ts +16 -0
- package/dist/types/src/library/react/index.d.ts +1 -0
- package/dist/types/src/library/vue/index.d.ts +2 -0
- package/dist/types/src/utils/TypesUtil.d.ts +5 -0
- package/package.json +9 -9
|
@@ -2,7 +2,7 @@ import { AppKit } from '../src/client/appkit-basic.js';
|
|
|
2
2
|
import type { AppKitOptions } from '../src/utils/TypesUtil.js';
|
|
3
3
|
export type * from '@reown/appkit-core';
|
|
4
4
|
export type { CaipNetwork, CaipAddress, CaipNetworkId } from '@reown/appkit-common';
|
|
5
|
-
export type CreateAppKit = Omit<AppKitOptions, 'sdkType' | 'sdkVersion'>;
|
|
5
|
+
export type CreateAppKit = Omit<AppKitOptions, 'sdkType' | 'sdkVersion' | 'basic'>;
|
|
6
6
|
export declare function createAppKit(options: CreateAppKit): AppKit;
|
|
7
7
|
export { AppKit };
|
|
8
8
|
export type { AppKitOptions };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PACKAGE_VERSION = "1.6.6-basic-test.
|
|
1
|
+
export declare const PACKAGE_VERSION = "1.6.6-basic-test.6.0";
|
|
@@ -4,7 +4,7 @@ export * from '../src/utils/index.js';
|
|
|
4
4
|
export type * from '@reown/appkit-core';
|
|
5
5
|
export type { CaipNetwork, CaipAddress, CaipNetworkId } from '@reown/appkit-common';
|
|
6
6
|
export { CoreHelperUtil, AccountController } from '@reown/appkit-core';
|
|
7
|
-
export type CreateAppKit = Omit<AppKitOptions, 'sdkType' | 'sdkVersion'>;
|
|
7
|
+
export type CreateAppKit = Omit<AppKitOptions, 'sdkType' | 'sdkVersion' | 'basic'>;
|
|
8
8
|
export declare function createAppKit(options: CreateAppKit): AppKit;
|
|
9
9
|
export { AppKit };
|
|
10
10
|
export type { AppKitOptions };
|
|
@@ -7,7 +7,7 @@ export type * from '@reown/appkit-core';
|
|
|
7
7
|
export type { CaipNetwork, CaipAddress, CaipNetworkId } from '@reown/appkit-common';
|
|
8
8
|
export { CoreHelperUtil, AccountController } from '@reown/appkit-core';
|
|
9
9
|
export declare let modal: AppKit | undefined;
|
|
10
|
-
export type CreateAppKit = Omit<AppKitOptions, 'sdkType' | 'sdkVersion'>;
|
|
10
|
+
export type CreateAppKit = Omit<AppKitOptions, 'sdkType' | 'sdkVersion' | 'basic'>;
|
|
11
11
|
export declare function createAppKit(options: CreateAppKit): AppKit;
|
|
12
12
|
export { AppKit };
|
|
13
13
|
export type { AppKitOptions };
|
|
@@ -7,7 +7,7 @@ export * from '../src/utils/index.js';
|
|
|
7
7
|
export type * from '@reown/appkit-core';
|
|
8
8
|
export type { CaipNetwork, CaipAddress, CaipNetworkId } from '@reown/appkit-common';
|
|
9
9
|
export { CoreHelperUtil, AccountController } from '@reown/appkit-core';
|
|
10
|
-
export type CreateAppKit = Omit<AppKitOptions, 'sdkType' | 'sdkVersion'>;
|
|
10
|
+
export type CreateAppKit = Omit<AppKitOptions, 'sdkType' | 'sdkVersion' | 'basic'>;
|
|
11
11
|
export declare function createAppKit(options: CreateAppKit): AppKit;
|
|
12
12
|
export { AppKit };
|
|
13
13
|
export type { AppKitOptions };
|
|
@@ -14,6 +14,7 @@ export interface AppKitOptionsWithSdk extends AppKitOptions {
|
|
|
14
14
|
export interface OpenOptions {
|
|
15
15
|
view: 'Account' | 'Connect' | 'Networks' | 'ApproveTransaction' | 'OnRampProviders' | 'ConnectingWalletConnectBasic' | 'Swap' | 'WhatIsAWallet' | 'WhatIsANetwork' | 'AllWallets' | 'WalletSend';
|
|
16
16
|
uri?: string;
|
|
17
|
+
namespace?: ChainNamespace;
|
|
17
18
|
}
|
|
18
19
|
export declare abstract class AppKitCore {
|
|
19
20
|
protected universalProvider?: UniversalProvider;
|
|
@@ -34,6 +35,7 @@ export declare abstract class AppKitCore {
|
|
|
34
35
|
protected initializeThemeController(options: AppKitOptions): void;
|
|
35
36
|
protected initializeChainController(options: AppKitOptions): void;
|
|
36
37
|
protected initializeBlockchainApiController(options: AppKitOptions): Promise<void>;
|
|
38
|
+
protected initializeConnectionController(options: AppKitOptions): void;
|
|
37
39
|
protected initializeOptionsController(options: AppKitOptionsWithSdk): void;
|
|
38
40
|
protected getDefaultMetaData(): {
|
|
39
41
|
name: string;
|
|
@@ -44,6 +46,7 @@ export declare abstract class AppKitCore {
|
|
|
44
46
|
protected getUnsupportedNetwork(caipNetworkId: CaipNetworkId): CaipNetwork;
|
|
45
47
|
protected setUnsupportedNetwork(chainId: string | number): void;
|
|
46
48
|
protected getDefaultNetwork(): CaipNetwork | undefined;
|
|
49
|
+
protected extendCaipNetwork(network: AppKitNetwork, options: AppKitOptions): CaipNetwork;
|
|
47
50
|
protected extendCaipNetworks(options: AppKitOptions): [CaipNetwork, ...CaipNetwork[]];
|
|
48
51
|
protected extendDefaultCaipNetwork(options: AppKitOptions): CaipNetwork | undefined;
|
|
49
52
|
protected createClients(): void;
|
|
@@ -188,4 +191,18 @@ export declare abstract class AppKitCore {
|
|
|
188
191
|
* @param networks - The list of networks that this adapter supports / uses.
|
|
189
192
|
*/
|
|
190
193
|
addAdapter(adapter: ChainAdapter, networks: [AppKitNetwork, ...AppKitNetwork[]]): void;
|
|
194
|
+
/**
|
|
195
|
+
* Adds a network to an existing adapter in AppKit.
|
|
196
|
+
* @param namespace - The chain namespace to add the network to (e.g. 'eip155', 'solana')
|
|
197
|
+
* @param network - The network configuration to add
|
|
198
|
+
* @throws Error if adapter for namespace doesn't exist
|
|
199
|
+
*/
|
|
200
|
+
addNetwork(namespace: ChainNamespace, network: AppKitNetwork): void;
|
|
201
|
+
/**
|
|
202
|
+
* Removes a network from an existing adapter in AppKit.
|
|
203
|
+
* @param namespace - The chain namespace the network belongs to
|
|
204
|
+
* @param networkId - The network ID to remove
|
|
205
|
+
* @throws Error if adapter for namespace doesn't exist or if removing last network
|
|
206
|
+
*/
|
|
207
|
+
removeNetwork(namespace: ChainNamespace, networkId: string | number): void;
|
|
191
208
|
}
|
|
@@ -17,6 +17,7 @@ export { AccountController };
|
|
|
17
17
|
export interface OpenOptions {
|
|
18
18
|
view: 'Account' | 'Connect' | 'Networks' | 'ApproveTransaction' | 'OnRampProviders' | 'ConnectingWalletConnectBasic' | 'Swap' | 'WhatIsAWallet' | 'WhatIsANetwork' | 'AllWallets' | 'WalletSend';
|
|
19
19
|
uri?: string;
|
|
20
|
+
namespace?: ChainNamespace;
|
|
20
21
|
}
|
|
21
22
|
type Adapters = Record<ChainNamespace, AdapterBlueprint>;
|
|
22
23
|
interface AppKitOptionsWithSdk extends AppKitOptions {
|
|
@@ -143,6 +144,20 @@ export declare class AppKit {
|
|
|
143
144
|
* @param networks - The list of networks that this adapter supports / uses.
|
|
144
145
|
*/
|
|
145
146
|
addAdapter(adapter: ChainAdapter, networks: [AppKitNetwork, ...AppKitNetwork[]]): void;
|
|
147
|
+
/**
|
|
148
|
+
* Adds a network to an existing adapter in AppKit.
|
|
149
|
+
* @param namespace - The chain namespace to add the network to (e.g. 'eip155', 'solana')
|
|
150
|
+
* @param network - The network configuration to add
|
|
151
|
+
* @throws Error if adapter for namespace doesn't exist
|
|
152
|
+
*/
|
|
153
|
+
addNetwork(namespace: ChainNamespace, network: AppKitNetwork): void;
|
|
154
|
+
/**
|
|
155
|
+
* Removes a network from an existing adapter in AppKit.
|
|
156
|
+
* @param namespace - The chain namespace the network belongs to
|
|
157
|
+
* @param networkId - The network ID to remove
|
|
158
|
+
* @throws Error if adapter for namespace doesn't exist or if removing last network
|
|
159
|
+
*/
|
|
160
|
+
removeNetwork(namespace: ChainNamespace, networkId: string | number): void;
|
|
146
161
|
private initializeOptionsController;
|
|
147
162
|
private initializeThemeController;
|
|
148
163
|
private initializeChainController;
|
|
@@ -150,6 +165,7 @@ export declare class AppKit {
|
|
|
150
165
|
private initControllers;
|
|
151
166
|
private getDefaultMetaData;
|
|
152
167
|
private setUnsupportedNetwork;
|
|
168
|
+
private extendCaipNetwork;
|
|
153
169
|
private extendCaipNetworks;
|
|
154
170
|
private extendDefaultCaipNetwork;
|
|
155
171
|
private createClients;
|
|
@@ -5,6 +5,7 @@ import type { AppKitOptions } from '../../utils/TypesUtil.js';
|
|
|
5
5
|
type OpenOptions = {
|
|
6
6
|
view: 'Account' | 'Connect' | 'Networks' | 'ApproveTransaction' | 'OnRampProviders' | 'Swap' | 'WhatIsAWallet' | 'WhatIsANetwork' | 'AllWallets' | 'WalletSend';
|
|
7
7
|
uri?: string;
|
|
8
|
+
namespace?: ChainNamespace;
|
|
8
9
|
};
|
|
9
10
|
type ThemeModeOptions = AppKitOptions['themeMode'];
|
|
10
11
|
type ThemeVariablesOptions = AppKitOptions['themeVariables'];
|
|
@@ -9,6 +9,8 @@ export interface AppKitEvent {
|
|
|
9
9
|
}
|
|
10
10
|
type OpenOptions = {
|
|
11
11
|
view: 'Account' | 'Connect' | 'Networks' | 'ApproveTransaction' | 'OnRampProviders' | 'Swap' | 'WhatIsAWallet' | 'WhatIsANetwork' | 'AllWallets' | 'WalletSend';
|
|
12
|
+
uri?: string;
|
|
13
|
+
namespace?: ChainNamespace;
|
|
12
14
|
};
|
|
13
15
|
type ThemeModeOptions = AppKitOptions['themeMode'];
|
|
14
16
|
type ThemeVariablesOptions = AppKitOptions['themeVariables'];
|
|
@@ -8,6 +8,11 @@ export type AppKitOptions = {
|
|
|
8
8
|
* @default []
|
|
9
9
|
*/
|
|
10
10
|
adapters?: ChainAdapter[];
|
|
11
|
+
/**
|
|
12
|
+
* This is only used for the @walletconnect/ethereum-provider package. We need this to determine which screens should be shown.
|
|
13
|
+
* @default false
|
|
14
|
+
*/
|
|
15
|
+
basic?: boolean;
|
|
11
16
|
/**
|
|
12
17
|
* Show or hide the wallets in the modal. This is available with the email and socials features
|
|
13
18
|
* @default true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reown/appkit",
|
|
3
|
-
"version": "1.6.6-basic-test.
|
|
3
|
+
"version": "1.6.6-basic-test.6.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/esm/exports/index.js",
|
|
6
6
|
"types": "./dist/types/exports/index.d.ts",
|
|
@@ -104,13 +104,13 @@
|
|
|
104
104
|
"bs58": "6.0.0",
|
|
105
105
|
"valtio": "1.11.2",
|
|
106
106
|
"viem": "2.x",
|
|
107
|
-
"@reown/appkit-
|
|
108
|
-
"@reown/appkit-
|
|
109
|
-
"@reown/appkit-polyfills": "1.6.6-basic-test.
|
|
110
|
-
"@reown/appkit-scaffold-ui": "1.6.6-basic-test.
|
|
111
|
-
"@reown/appkit-ui": "1.6.6-basic-test.
|
|
112
|
-
"@reown/appkit-
|
|
113
|
-
"@reown/appkit-
|
|
107
|
+
"@reown/appkit-core": "1.6.6-basic-test.6.0",
|
|
108
|
+
"@reown/appkit-common": "1.6.6-basic-test.6.0",
|
|
109
|
+
"@reown/appkit-polyfills": "1.6.6-basic-test.6.0",
|
|
110
|
+
"@reown/appkit-scaffold-ui": "1.6.6-basic-test.6.0",
|
|
111
|
+
"@reown/appkit-ui": "1.6.6-basic-test.6.0",
|
|
112
|
+
"@reown/appkit-utils": "1.6.6-basic-test.6.0",
|
|
113
|
+
"@reown/appkit-wallet": "1.6.6-basic-test.6.0"
|
|
114
114
|
},
|
|
115
115
|
"devDependencies": {
|
|
116
116
|
"@types/react": "18.3.1",
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"react-dom": "18.3.1",
|
|
124
124
|
"vitest": "2.1.3",
|
|
125
125
|
"vue": "3.x",
|
|
126
|
-
"@reown/appkit-siwe": "1.6.6-basic-test.
|
|
126
|
+
"@reown/appkit-siwe": "1.6.6-basic-test.6.0"
|
|
127
127
|
},
|
|
128
128
|
"author": "Reown <support@reown.com> (https://reown.com)",
|
|
129
129
|
"license": "Apache-2.0",
|