@reown/appkit 1.6.6-basic-test.6.0 → 1.6.6-rc.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 +0 -1
- package/dist/esm/exports/basic.js.map +1 -1
- package/dist/esm/exports/constants.js +1 -1
- package/dist/esm/exports/constants.js.map +1 -1
- package/dist/esm/exports/index.js +3 -1
- package/dist/esm/exports/index.js.map +1 -1
- package/dist/esm/exports/react.js +3 -1
- package/dist/esm/exports/react.js.map +1 -1
- package/dist/esm/exports/vue.js +3 -1
- package/dist/esm/exports/vue.js.map +1 -1
- package/dist/esm/package.json +2 -6
- package/dist/esm/src/adapters/ChainAdapterBlueprint.js +1 -0
- package/dist/esm/src/adapters/ChainAdapterBlueprint.js.map +1 -1
- package/dist/esm/src/client/core.js +2 -56
- package/dist/esm/src/client/core.js.map +1 -1
- package/dist/esm/src/universal-adapter/client.js +0 -35
- package/dist/esm/src/universal-adapter/client.js.map +1 -1
- package/dist/esm/tests/appkit.test.js +3 -6
- package/dist/esm/tests/appkit.test.js.map +1 -1
- package/dist/esm/tests/siwe.test.js +0 -12
- package/dist/esm/tests/siwe.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 +3 -2
- package/dist/types/exports/react.d.ts +3 -2
- package/dist/types/exports/vue.d.ts +3 -2
- package/dist/types/src/adapters/ChainAdapterBlueprint.d.ts +3 -3
- package/dist/types/src/client/core.d.ts +0 -17
- package/dist/types/src/library/react/index.d.ts +1 -1
- package/dist/types/src/library/vue/index.d.ts +1 -1
- package/dist/types/src/utils/TypesUtil.d.ts +0 -5
- package/dist/types/tests/mocks/AppKit.d.ts +1 -1
- package/package.json +10 -14
|
@@ -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'>;
|
|
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-
|
|
1
|
+
export declare const PACKAGE_VERSION = "1.6.6-rc.0";
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { AppKit } from '../src/client
|
|
1
|
+
import { AppKit } from '../src/client.js';
|
|
2
2
|
import type { AppKitOptions } from '../src/utils/TypesUtil.js';
|
|
3
|
+
export * from '@reown/appkit-scaffold-ui';
|
|
3
4
|
export * from '../src/utils/index.js';
|
|
4
5
|
export type * from '@reown/appkit-core';
|
|
5
6
|
export type { CaipNetwork, CaipAddress, CaipNetworkId } from '@reown/appkit-common';
|
|
6
7
|
export { CoreHelperUtil, AccountController } from '@reown/appkit-core';
|
|
7
|
-
export type CreateAppKit = Omit<AppKitOptions, 'sdkType' | 'sdkVersion'
|
|
8
|
+
export type CreateAppKit = Omit<AppKitOptions, 'sdkType' | 'sdkVersion'>;
|
|
8
9
|
export declare function createAppKit(options: CreateAppKit): AppKit;
|
|
9
10
|
export { AppKit };
|
|
10
11
|
export type { AppKitOptions };
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { type UseAppKitNetworkReturn } from '@reown/appkit-core';
|
|
2
|
-
import { AppKit } from '../src/client
|
|
2
|
+
import { AppKit } from '../src/client.js';
|
|
3
3
|
import type { AppKitOptions } from '../src/utils/TypesUtil.js';
|
|
4
|
+
export * from '@reown/appkit-scaffold-ui';
|
|
4
5
|
export * from '../src/library/react/index.js';
|
|
5
6
|
export * from '../src/utils/index.js';
|
|
6
7
|
export type * from '@reown/appkit-core';
|
|
7
8
|
export type { CaipNetwork, CaipAddress, CaipNetworkId } from '@reown/appkit-common';
|
|
8
9
|
export { CoreHelperUtil, AccountController } from '@reown/appkit-core';
|
|
9
10
|
export declare let modal: AppKit | undefined;
|
|
10
|
-
export type CreateAppKit = Omit<AppKitOptions, 'sdkType' | 'sdkVersion'
|
|
11
|
+
export type CreateAppKit = Omit<AppKitOptions, 'sdkType' | 'sdkVersion'>;
|
|
11
12
|
export declare function createAppKit(options: CreateAppKit): AppKit;
|
|
12
13
|
export { AppKit };
|
|
13
14
|
export type { AppKitOptions };
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { type Ref } from 'vue';
|
|
2
2
|
import { type UseAppKitNetworkReturn } from '@reown/appkit-core';
|
|
3
|
-
import { AppKit } from '../src/client
|
|
3
|
+
import { AppKit } from '../src/client.js';
|
|
4
4
|
import type { AppKitOptions } from '../src/utils/TypesUtil.js';
|
|
5
|
+
export * from '@reown/appkit-scaffold-ui';
|
|
5
6
|
export * from '../src/library/vue/index.js';
|
|
6
7
|
export * from '../src/utils/index.js';
|
|
7
8
|
export type * from '@reown/appkit-core';
|
|
8
9
|
export type { CaipNetwork, CaipAddress, CaipNetworkId } from '@reown/appkit-common';
|
|
9
10
|
export { CoreHelperUtil, AccountController } from '@reown/appkit-core';
|
|
10
|
-
export type CreateAppKit = Omit<AppKitOptions, 'sdkType' | 'sdkVersion'
|
|
11
|
+
export type CreateAppKit = Omit<AppKitOptions, 'sdkType' | 'sdkVersion'>;
|
|
11
12
|
export declare function createAppKit(options: CreateAppKit): AppKit;
|
|
12
13
|
export { AppKit };
|
|
13
14
|
export type { AppKitOptions };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import UniversalProvider from '@walletconnect/universal-provider';
|
|
2
2
|
import { type CaipAddress, type CaipNetwork, type ChainNamespace } from '@reown/appkit-common';
|
|
3
3
|
import { type AccountControllerState, type AccountType, type Connector as AppKitConnector, type Tokens, type WriteContractArgs } from '@reown/appkit-core';
|
|
4
|
-
import
|
|
5
|
-
import type {
|
|
4
|
+
import { W3mFrameProvider } from '@reown/appkit-wallet';
|
|
5
|
+
import type { AppKit } from '../client.js';
|
|
6
6
|
import { WalletConnectConnector } from '../connectors/WalletConnectConnector.js';
|
|
7
7
|
import type { AppKitOptions } from '../utils/index.js';
|
|
8
8
|
import type { ChainAdapterConnector } from './ChainAdapterConnector.js';
|
|
@@ -138,7 +138,7 @@ export declare abstract class AdapterBlueprint<Connector extends ChainAdapterCon
|
|
|
138
138
|
* @param {AppKitOptions} [options] - Optional AppKit options
|
|
139
139
|
* @param {AppKit} [appKit] - Optional AppKit instance
|
|
140
140
|
*/
|
|
141
|
-
abstract syncConnectors(options?: AppKitOptions, appKit?:
|
|
141
|
+
abstract syncConnectors(options?: AppKitOptions, appKit?: AppKit): void | Promise<void>;
|
|
142
142
|
/**
|
|
143
143
|
* Synchronizes the connection with the given parameters.
|
|
144
144
|
* @param {AdapterBlueprint.SyncConnectionParams} params - Synchronization parameters
|
|
@@ -14,7 +14,6 @@ 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;
|
|
18
17
|
}
|
|
19
18
|
export declare abstract class AppKitCore {
|
|
20
19
|
protected universalProvider?: UniversalProvider;
|
|
@@ -35,7 +34,6 @@ export declare abstract class AppKitCore {
|
|
|
35
34
|
protected initializeThemeController(options: AppKitOptions): void;
|
|
36
35
|
protected initializeChainController(options: AppKitOptions): void;
|
|
37
36
|
protected initializeBlockchainApiController(options: AppKitOptions): Promise<void>;
|
|
38
|
-
protected initializeConnectionController(options: AppKitOptions): void;
|
|
39
37
|
protected initializeOptionsController(options: AppKitOptionsWithSdk): void;
|
|
40
38
|
protected getDefaultMetaData(): {
|
|
41
39
|
name: string;
|
|
@@ -46,7 +44,6 @@ export declare abstract class AppKitCore {
|
|
|
46
44
|
protected getUnsupportedNetwork(caipNetworkId: CaipNetworkId): CaipNetwork;
|
|
47
45
|
protected setUnsupportedNetwork(chainId: string | number): void;
|
|
48
46
|
protected getDefaultNetwork(): CaipNetwork | undefined;
|
|
49
|
-
protected extendCaipNetwork(network: AppKitNetwork, options: AppKitOptions): CaipNetwork;
|
|
50
47
|
protected extendCaipNetworks(options: AppKitOptions): [CaipNetwork, ...CaipNetwork[]];
|
|
51
48
|
protected extendDefaultCaipNetwork(options: AppKitOptions): CaipNetwork | undefined;
|
|
52
49
|
protected createClients(): void;
|
|
@@ -191,18 +188,4 @@ export declare abstract class AppKitCore {
|
|
|
191
188
|
* @param networks - The list of networks that this adapter supports / uses.
|
|
192
189
|
*/
|
|
193
190
|
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;
|
|
208
191
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ChainNamespace } from '@reown/appkit-common';
|
|
2
2
|
import type { AppKitAccountButton, AppKitButton, AppKitConnectButton, AppKitNetworkButton, W3mAccountButton, W3mButton, W3mConnectButton, W3mNetworkButton } from '@reown/appkit-scaffold-ui';
|
|
3
|
-
import type { AppKit } from '../../../src/client
|
|
3
|
+
import type { AppKit } from '../../../src/client.js';
|
|
4
4
|
import type { AppKitOptions } from '../../utils/TypesUtil.js';
|
|
5
5
|
type OpenOptions = {
|
|
6
6
|
view: 'Account' | 'Connect' | 'Networks' | 'ApproveTransaction' | 'OnRampProviders' | 'Swap' | 'WhatIsAWallet' | 'WhatIsANetwork' | 'AllWallets' | 'WalletSend';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ChainNamespace } from '@reown/appkit-common';
|
|
2
2
|
import { type Event } from '@reown/appkit-core';
|
|
3
3
|
import type { AppKitAccountButton, AppKitButton, AppKitConnectButton, AppKitNetworkButton, W3mAccountButton, W3mButton, W3mConnectButton, W3mNetworkButton } from '@reown/appkit-scaffold-ui';
|
|
4
|
-
import type { AppKit } from '../../../src/client
|
|
4
|
+
import type { AppKit } from '../../../src/client.js';
|
|
5
5
|
import type { AppKitOptions } from '../../utils/TypesUtil.js';
|
|
6
6
|
export interface AppKitEvent {
|
|
7
7
|
timestamp: number;
|
|
@@ -8,11 +8,6 @@ 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;
|
|
16
11
|
/**
|
|
17
12
|
* Show or hide the wallets in the modal. This is available with the email and socials features
|
|
18
13
|
* @default true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reown/appkit",
|
|
3
|
-
"version": "1.6.6-
|
|
3
|
+
"version": "1.6.6-rc.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/esm/exports/index.js",
|
|
6
6
|
"types": "./dist/types/exports/index.d.ts",
|
|
@@ -63,11 +63,6 @@
|
|
|
63
63
|
"types": "./dist/types/exports/connectors.d.ts",
|
|
64
64
|
"import": "./dist/esm/exports/connectors.js",
|
|
65
65
|
"default": "./dist/esm/exports/connectors.js"
|
|
66
|
-
},
|
|
67
|
-
"./basic": {
|
|
68
|
-
"types": "./dist/types/exports/basic.d.ts",
|
|
69
|
-
"import": "./dist/esm/exports/basic.js",
|
|
70
|
-
"default": "./dist/esm/exports/basic.js"
|
|
71
66
|
}
|
|
72
67
|
},
|
|
73
68
|
"typesVersions": {
|
|
@@ -101,16 +96,17 @@
|
|
|
101
96
|
"dependencies": {
|
|
102
97
|
"@walletconnect/types": "2.18.0",
|
|
103
98
|
"@walletconnect/universal-provider": "2.18.0",
|
|
99
|
+
"@walletconnect/utils": "2.18.0",
|
|
104
100
|
"bs58": "6.0.0",
|
|
105
101
|
"valtio": "1.11.2",
|
|
106
102
|
"viem": "2.x",
|
|
107
|
-
"@reown/appkit-core": "1.6.6-
|
|
108
|
-
"@reown/appkit-common": "1.6.6-
|
|
109
|
-
"@reown/appkit-polyfills": "1.6.6-
|
|
110
|
-
"@reown/appkit-scaffold-ui": "1.6.6-
|
|
111
|
-
"@reown/appkit-
|
|
112
|
-
"@reown/appkit-
|
|
113
|
-
"@reown/appkit-wallet": "1.6.6-
|
|
103
|
+
"@reown/appkit-core": "1.6.6-rc.0",
|
|
104
|
+
"@reown/appkit-common": "1.6.6-rc.0",
|
|
105
|
+
"@reown/appkit-polyfills": "1.6.6-rc.0",
|
|
106
|
+
"@reown/appkit-scaffold-ui": "1.6.6-rc.0",
|
|
107
|
+
"@reown/appkit-utils": "1.6.6-rc.0",
|
|
108
|
+
"@reown/appkit-ui": "1.6.6-rc.0",
|
|
109
|
+
"@reown/appkit-wallet": "1.6.6-rc.0"
|
|
114
110
|
},
|
|
115
111
|
"devDependencies": {
|
|
116
112
|
"@types/react": "18.3.1",
|
|
@@ -123,7 +119,7 @@
|
|
|
123
119
|
"react-dom": "18.3.1",
|
|
124
120
|
"vitest": "2.1.3",
|
|
125
121
|
"vue": "3.x",
|
|
126
|
-
"@reown/appkit-siwe": "1.6.6-
|
|
122
|
+
"@reown/appkit-siwe": "1.6.6-rc.0"
|
|
127
123
|
},
|
|
128
124
|
"author": "Reown <support@reown.com> (https://reown.com)",
|
|
129
125
|
"license": "Apache-2.0",
|