@reown/appkit 1.6.6-rc.3.0 → 1.6.7-basic-test.7.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.
Files changed (62) hide show
  1. package/dist/esm/exports/constants.js +1 -1
  2. package/dist/esm/exports/constants.js.map +1 -1
  3. package/dist/esm/exports/index.js +1 -3
  4. package/dist/esm/exports/index.js.map +1 -1
  5. package/dist/esm/exports/react.js +1 -3
  6. package/dist/esm/exports/react.js.map +1 -1
  7. package/dist/esm/exports/vue.js +1 -3
  8. package/dist/esm/exports/vue.js.map +1 -1
  9. package/dist/esm/package.json +7 -2
  10. package/dist/esm/src/adapters/ChainAdapterBlueprint.js +0 -1
  11. package/dist/esm/src/adapters/ChainAdapterBlueprint.js.map +1 -1
  12. package/dist/esm/src/client/appkit-basic.js +6 -0
  13. package/dist/esm/src/client/appkit-basic.js.map +1 -1
  14. package/dist/esm/src/client/appkit.js +8 -2
  15. package/dist/esm/src/client/appkit.js.map +1 -1
  16. package/dist/esm/src/client/core.js +21 -15
  17. package/dist/esm/src/client/core.js.map +1 -1
  18. package/dist/esm/src/client.js +3 -0
  19. package/dist/esm/src/client.js.map +1 -1
  20. package/dist/esm/tests/client/adapter-management.test.js +1 -1
  21. package/dist/esm/tests/client/adapter-management.test.js.map +1 -1
  22. package/dist/esm/tests/client/appkit-basic.test.js +44 -0
  23. package/dist/esm/tests/client/appkit-basic.test.js.map +1 -0
  24. package/dist/esm/tests/client/balance.test.js +22 -9
  25. package/dist/esm/tests/client/balance.test.js.map +1 -1
  26. package/dist/esm/tests/client/connection.test.js +5 -5
  27. package/dist/esm/tests/client/connection.test.js.map +1 -1
  28. package/dist/esm/tests/client/initialization.test.js +24 -5
  29. package/dist/esm/tests/client/initialization.test.js.map +1 -1
  30. package/dist/esm/tests/client/listeners.test.js +4 -4
  31. package/dist/esm/tests/client/listeners.test.js.map +1 -1
  32. package/dist/esm/tests/client/public-methods.test.js +6 -16
  33. package/dist/esm/tests/client/public-methods.test.js.map +1 -1
  34. package/dist/esm/tests/client/universal-adapter.test.js +5 -5
  35. package/dist/esm/tests/client/universal-adapter.test.js.map +1 -1
  36. package/dist/esm/tests/client/walletconnect-events.test.js +25 -6
  37. package/dist/esm/tests/client/walletconnect-events.test.js.map +1 -1
  38. package/dist/esm/tests/mocks/UniversalProvider.js +3 -1
  39. package/dist/esm/tests/mocks/UniversalProvider.js.map +1 -1
  40. package/dist/esm/tests/siwe.test.js +12 -0
  41. package/dist/esm/tests/siwe.test.js.map +1 -1
  42. package/dist/esm/tests/test-utils.js +4 -1
  43. package/dist/esm/tests/test-utils.js.map +1 -1
  44. package/dist/esm/tests/utils/HelpersUtil.test.js +2 -1
  45. package/dist/esm/tests/utils/HelpersUtil.test.js.map +1 -1
  46. package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
  47. package/dist/esm/tsconfig.tsbuildinfo +1 -1
  48. package/dist/types/exports/constants.d.ts +1 -1
  49. package/dist/types/exports/index.d.ts +2 -3
  50. package/dist/types/exports/react.d.ts +2 -3
  51. package/dist/types/exports/vue.d.ts +2 -3
  52. package/dist/types/src/adapters/ChainAdapterBlueprint.d.ts +3 -3
  53. package/dist/types/src/client/appkit-basic.d.ts +1 -0
  54. package/dist/types/src/client/appkit.d.ts +2 -1
  55. package/dist/types/src/client/core.d.ts +1 -1
  56. package/dist/types/src/library/react/index.d.ts +1 -1
  57. package/dist/types/src/library/vue/index.d.ts +1 -1
  58. package/dist/types/src/utils/TypesUtil.d.ts +5 -0
  59. package/dist/types/tests/client/appkit-basic.test.d.ts +1 -0
  60. package/dist/types/tests/mocks/AppKit.d.ts +1 -1
  61. package/dist/types/tests/test-utils.d.ts +2 -0
  62. package/package.json +15 -10
@@ -1 +1 @@
1
- export declare const PACKAGE_VERSION = "1.6.6-rc.3.0";
1
+ export declare const PACKAGE_VERSION = "1.6.7-basic-test.7.0";
@@ -1,11 +1,10 @@
1
- import { AppKit } from '../src/client.js';
1
+ import { AppKit } from '../src/client/appkit.js';
2
2
  import type { AppKitOptions } from '../src/utils/TypesUtil.js';
3
- export * from '@reown/appkit-scaffold-ui';
4
3
  export * from '../src/utils/index.js';
5
4
  export type * from '@reown/appkit-core';
6
5
  export type { CaipNetwork, CaipAddress, CaipNetworkId } from '@reown/appkit-common';
7
6
  export { CoreHelperUtil, AccountController } from '@reown/appkit-core';
8
- export type CreateAppKit = Omit<AppKitOptions, 'sdkType' | 'sdkVersion'>;
7
+ export type CreateAppKit = Omit<AppKitOptions, 'sdkType' | 'sdkVersion' | 'basic'>;
9
8
  export declare function createAppKit(options: CreateAppKit): AppKit;
10
9
  export { AppKit };
11
10
  export type { AppKitOptions };
@@ -1,14 +1,13 @@
1
1
  import { type UseAppKitNetworkReturn } from '@reown/appkit-core';
2
- import { AppKit } from '../src/client.js';
2
+ import { AppKit } from '../src/client/appkit.js';
3
3
  import type { AppKitOptions } from '../src/utils/TypesUtil.js';
4
- export * from '@reown/appkit-scaffold-ui';
5
4
  export * from '../src/library/react/index.js';
6
5
  export * from '../src/utils/index.js';
7
6
  export type * from '@reown/appkit-core';
8
7
  export type { CaipNetwork, CaipAddress, CaipNetworkId } from '@reown/appkit-common';
9
8
  export { CoreHelperUtil, AccountController } from '@reown/appkit-core';
10
9
  export declare let modal: AppKit | undefined;
11
- export type CreateAppKit = Omit<AppKitOptions, 'sdkType' | 'sdkVersion'>;
10
+ export type CreateAppKit = Omit<AppKitOptions, 'sdkType' | 'sdkVersion' | 'basic'>;
12
11
  export declare function createAppKit(options: CreateAppKit): AppKit;
13
12
  export { AppKit };
14
13
  export type { AppKitOptions };
@@ -1,14 +1,13 @@
1
1
  import { type Ref } from 'vue';
2
2
  import { type UseAppKitNetworkReturn } from '@reown/appkit-core';
3
- import { AppKit } from '../src/client.js';
3
+ import { AppKit } from '../src/client/appkit.js';
4
4
  import type { AppKitOptions } from '../src/utils/TypesUtil.js';
5
- export * from '@reown/appkit-scaffold-ui';
6
5
  export * from '../src/library/vue/index.js';
7
6
  export * from '../src/utils/index.js';
8
7
  export type * from '@reown/appkit-core';
9
8
  export type { CaipNetwork, CaipAddress, CaipNetworkId } from '@reown/appkit-common';
10
9
  export { CoreHelperUtil, AccountController } from '@reown/appkit-core';
11
- export type CreateAppKit = Omit<AppKitOptions, 'sdkType' | 'sdkVersion'>;
10
+ export type CreateAppKit = Omit<AppKitOptions, 'sdkType' | 'sdkVersion' | 'basic'>;
12
11
  export declare function createAppKit(options: CreateAppKit): AppKit;
13
12
  export { AppKit };
14
13
  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 { W3mFrameProvider } from '@reown/appkit-wallet';
5
- import type { AppKit } from '../client.js';
4
+ import type { W3mFrameProvider } from '@reown/appkit-wallet';
5
+ import type { AppKitCore } from '../client/core.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?: AppKit): void | Promise<void>;
141
+ abstract syncConnectors(options?: AppKitOptions, appKit?: AppKitCore): void | Promise<void>;
142
142
  /**
143
143
  * Synchronizes the connection with the given parameters.
144
144
  * @param {AdapterBlueprint.SyncConnectionParams} params - Synchronization parameters
@@ -18,5 +18,6 @@ export declare class AppKit extends AppKitCore {
18
18
  adapters?: ChainAdapter[];
19
19
  activeChainNamespace?: ChainNamespace;
20
20
  adapter?: ChainAdapter;
21
+ open(options: OpenOptions): Promise<void>;
21
22
  protected injectModalUi(): Promise<void>;
22
23
  }
@@ -1,6 +1,6 @@
1
1
  import { type CaipNetwork, type ChainNamespace } from '@reown/appkit-common';
2
2
  import { AccountController } from '@reown/appkit-core';
3
- import { AppKitCore } from './core.js';
3
+ import { AppKitCore, type AppKitOptionsWithSdk } from './core.js';
4
4
  declare global {
5
5
  interface Window {
6
6
  ethereum?: Record<string, unknown>;
@@ -14,6 +14,7 @@ export declare class AppKit extends AppKitCore {
14
14
  private syncAuthConnector;
15
15
  private createAuthProvider;
16
16
  private createAuthProviderForAdapter;
17
+ protected initControllers(options: AppKitOptionsWithSdk): void;
17
18
  protected syncNamespaceConnection(namespace: ChainNamespace): Promise<void>;
18
19
  protected switchCaipNetwork(caipNetwork: CaipNetwork): Promise<void>;
19
20
  protected initChainAdapter(namespace: ChainNamespace): Promise<void>;
@@ -31,10 +31,10 @@ export declare abstract class AppKitCore {
31
31
  reportedAlertErrors: Record<string, boolean>;
32
32
  constructor(options: AppKitOptionsWithSdk);
33
33
  protected initialize(options: AppKitOptionsWithSdk): Promise<void>;
34
+ private sendInitializeEvent;
34
35
  protected initControllers(options: AppKitOptionsWithSdk): void;
35
36
  protected initializeThemeController(options: AppKitOptions): void;
36
37
  protected initializeChainController(options: AppKitOptions): void;
37
- protected initializeBlockchainApiController(options: AppKitOptions): Promise<void>;
38
38
  protected initializeConnectionController(options: AppKitOptions): void;
39
39
  protected initializeOptionsController(options: AppKitOptionsWithSdk): void;
40
40
  protected getDefaultMetaData(): {
@@ -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.js';
3
+ import type { AppKit } from '../../../src/client/appkit.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.js';
4
+ import type { AppKit } from '../../../src/client/appkit.js';
5
5
  import type { AppKitOptions } from '../../utils/TypesUtil.js';
6
6
  export interface AppKitEvent {
7
7
  timestamp: number;
@@ -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
@@ -0,0 +1 @@
1
+ export {};
@@ -1,3 +1,3 @@
1
- import type { AppKit } from '../../src/client.js';
1
+ import type { AppKit } from '../../src/client/appkit.js';
2
2
  export declare const mockAppKit: AppKit;
3
3
  export default mockAppKit;
@@ -1,3 +1,5 @@
1
+ import type { Balance } from '@reown/appkit-common';
1
2
  export declare function mockWindowAndDocument(): void;
2
3
  export declare function mockBlockchainApiController(): void;
3
4
  export declare function mockStorageUtil(): void;
5
+ export declare function mockFetchTokenBalanceOnce(response: Balance[]): void;
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@reown/appkit",
3
- "version": "1.6.6-rc.3.0",
3
+ "version": "1.6.7-basic-test.7.0",
4
+ "sideEffects": false,
4
5
  "type": "module",
5
6
  "main": "./dist/esm/exports/index.js",
6
7
  "types": "./dist/types/exports/index.d.ts",
@@ -63,6 +64,11 @@
63
64
  "types": "./dist/types/exports/connectors.d.ts",
64
65
  "import": "./dist/esm/exports/connectors.js",
65
66
  "default": "./dist/esm/exports/connectors.js"
67
+ },
68
+ "./basic": {
69
+ "types": "./dist/types/exports/basic.d.ts",
70
+ "import": "./dist/esm/exports/basic.js",
71
+ "default": "./dist/esm/exports/basic.js"
66
72
  }
67
73
  },
68
74
  "typesVersions": {
@@ -96,17 +102,16 @@
96
102
  "dependencies": {
97
103
  "@walletconnect/types": "2.18.0",
98
104
  "@walletconnect/universal-provider": "2.18.0",
99
- "@walletconnect/utils": "2.18.0",
100
105
  "bs58": "6.0.0",
101
106
  "valtio": "1.13.2",
102
107
  "viem": "2.x",
103
- "@reown/appkit-common": "1.6.6-rc.3.0",
104
- "@reown/appkit-polyfills": "1.6.6-rc.3.0",
105
- "@reown/appkit-scaffold-ui": "1.6.6-rc.3.0",
106
- "@reown/appkit-ui": "1.6.6-rc.3.0",
107
- "@reown/appkit-utils": "1.6.6-rc.3.0",
108
- "@reown/appkit-wallet": "1.6.6-rc.3.0",
109
- "@reown/appkit-core": "1.6.6-rc.3.0"
108
+ "@reown/appkit-common": "1.6.7-basic-test.7.0",
109
+ "@reown/appkit-scaffold-ui": "1.6.7-basic-test.7.0",
110
+ "@reown/appkit-utils": "1.6.7-basic-test.7.0",
111
+ "@reown/appkit-wallet": "1.6.7-basic-test.7.0",
112
+ "@reown/appkit-polyfills": "1.6.7-basic-test.7.0",
113
+ "@reown/appkit-ui": "1.6.7-basic-test.7.0",
114
+ "@reown/appkit-core": "1.6.7-basic-test.7.0"
110
115
  },
111
116
  "devDependencies": {
112
117
  "@types/react": "18.3.1",
@@ -119,7 +124,7 @@
119
124
  "react-dom": "18.3.1",
120
125
  "vitest": "2.1.3",
121
126
  "vue": "3.x",
122
- "@reown/appkit-siwe": "1.6.6-rc.3.0"
127
+ "@reown/appkit-siwe": "1.6.7-basic-test.7.0"
123
128
  },
124
129
  "author": "Reown <support@reown.com> (https://reown.com)",
125
130
  "license": "Apache-2.0",