@reown/appkit 1.6.6-basic-test.5.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.
@@ -1 +1 @@
1
- export declare const PACKAGE_VERSION = "1.6.6-basic-test.5.0";
1
+ export declare const PACKAGE_VERSION = "1.6.6-rc.0";
@@ -1,5 +1,6 @@
1
- import { AppKit } from '../src/client/appkit.js';
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';
@@ -1,6 +1,7 @@
1
1
  import { type UseAppKitNetworkReturn } from '@reown/appkit-core';
2
- import { AppKit } from '../src/client/appkit.js';
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';
@@ -1,7 +1,8 @@
1
1
  import { type Ref } from 'vue';
2
2
  import { type UseAppKitNetworkReturn } from '@reown/appkit-core';
3
- import { AppKit } from '../src/client/appkit.js';
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';
@@ -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 type { W3mFrameProvider } from '@reown/appkit-wallet';
5
- import type { AppKitCore } from '../client/core.js';
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?: AppKitCore): void | Promise<void>;
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
@@ -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;
@@ -1,10 +1,11 @@
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/appkit.js';
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';
7
7
  uri?: string;
8
+ namespace?: ChainNamespace;
8
9
  };
9
10
  type ThemeModeOptions = AppKitOptions['themeMode'];
10
11
  type ThemeVariablesOptions = AppKitOptions['themeVariables'];
@@ -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/appkit.js';
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;
@@ -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'];
@@ -1,3 +1,3 @@
1
- import type { AppKit } from '../../src/client/appkit.js';
1
+ import type { AppKit } from '../../src/client.js';
2
2
  export declare const mockAppKit: AppKit;
3
3
  export default mockAppKit;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reown/appkit",
3
- "version": "1.6.6-basic-test.5.0",
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-common": "1.6.6-basic-test.5.0",
108
- "@reown/appkit-core": "1.6.6-basic-test.5.0",
109
- "@reown/appkit-polyfills": "1.6.6-basic-test.5.0",
110
- "@reown/appkit-scaffold-ui": "1.6.6-basic-test.5.0",
111
- "@reown/appkit-ui": "1.6.6-basic-test.5.0",
112
- "@reown/appkit-wallet": "1.6.6-basic-test.5.0",
113
- "@reown/appkit-utils": "1.6.6-basic-test.5.0"
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-basic-test.5.0"
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",