@reown/appkit 1.6.7-basic-test.7.0 → 1.6.7-core-1.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 (52) 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 +3 -1
  4. package/dist/esm/exports/index.js.map +1 -1
  5. package/dist/esm/exports/react.js +3 -1
  6. package/dist/esm/exports/react.js.map +1 -1
  7. package/dist/esm/exports/vue.js +3 -1
  8. package/dist/esm/exports/vue.js.map +1 -1
  9. package/dist/esm/package.json +3 -8
  10. package/dist/esm/src/adapters/ChainAdapterBlueprint.js +1 -0
  11. package/dist/esm/src/adapters/ChainAdapterBlueprint.js.map +1 -1
  12. package/dist/esm/src/client/core.js +1 -1
  13. package/dist/esm/src/client/core.js.map +1 -1
  14. package/dist/esm/src/client.js +35 -20
  15. package/dist/esm/src/client.js.map +1 -1
  16. package/dist/esm/tests/client/adapter-management.test.js +1 -1
  17. package/dist/esm/tests/client/adapter-management.test.js.map +1 -1
  18. package/dist/esm/tests/client/balance.test.js +9 -22
  19. package/dist/esm/tests/client/balance.test.js.map +1 -1
  20. package/dist/esm/tests/client/connection.test.js +5 -5
  21. package/dist/esm/tests/client/connection.test.js.map +1 -1
  22. package/dist/esm/tests/client/initialization.test.js +5 -24
  23. package/dist/esm/tests/client/initialization.test.js.map +1 -1
  24. package/dist/esm/tests/client/listeners.test.js +20 -5
  25. package/dist/esm/tests/client/listeners.test.js.map +1 -1
  26. package/dist/esm/tests/client/public-methods.test.js +16 -6
  27. package/dist/esm/tests/client/public-methods.test.js.map +1 -1
  28. package/dist/esm/tests/client/universal-adapter.test.js +5 -5
  29. package/dist/esm/tests/client/universal-adapter.test.js.map +1 -1
  30. package/dist/esm/tests/client/walletconnect-events.test.js +6 -25
  31. package/dist/esm/tests/client/walletconnect-events.test.js.map +1 -1
  32. package/dist/esm/tests/mocks/Networks.js +13 -1
  33. package/dist/esm/tests/mocks/Networks.js.map +1 -1
  34. package/dist/esm/tests/siwe.test.js +0 -12
  35. package/dist/esm/tests/siwe.test.js.map +1 -1
  36. package/dist/esm/tests/test-utils.js +8 -4
  37. package/dist/esm/tests/test-utils.js.map +1 -1
  38. package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
  39. package/dist/esm/tsconfig.tsbuildinfo +1 -1
  40. package/dist/types/exports/constants.d.ts +1 -1
  41. package/dist/types/exports/index.d.ts +3 -2
  42. package/dist/types/exports/react.d.ts +3 -2
  43. package/dist/types/exports/vue.d.ts +3 -2
  44. package/dist/types/src/adapters/ChainAdapterBlueprint.d.ts +3 -3
  45. package/dist/types/src/client.d.ts +1 -1
  46. package/dist/types/src/library/react/index.d.ts +1 -1
  47. package/dist/types/src/library/vue/index.d.ts +1 -1
  48. package/dist/types/src/utils/TypesUtil.d.ts +0 -5
  49. package/dist/types/tests/mocks/AppKit.d.ts +1 -1
  50. package/dist/types/tests/mocks/Networks.d.ts +2 -1
  51. package/dist/types/tests/test-utils.d.ts +1 -2
  52. package/package.json +10 -10
@@ -1 +1 @@
1
- export declare const PACKAGE_VERSION = "1.6.7-basic-test.7.0";
1
+ export declare const PACKAGE_VERSION = "1.6.9-venice.0";
@@ -1,10 +1,11 @@
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';
6
7
  export { CoreHelperUtil, AccountController } from '@reown/appkit-core';
7
- export type CreateAppKit = Omit<AppKitOptions, 'sdkType' | 'sdkVersion' | 'basic'>;
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/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';
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' | 'basic'>;
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/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';
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' | 'basic'>;
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 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
@@ -64,7 +64,7 @@ export declare class AppKit {
64
64
  setThemeVariables(themeVariables: ThemeControllerState['themeVariables']): void;
65
65
  subscribeTheme(callback: (newState: ThemeControllerState) => void): () => void;
66
66
  getWalletInfo(): ConnectedWalletInfo | undefined;
67
- subscribeAccount(callback: (newState: UseAppKitAccountReturn) => void): void;
67
+ subscribeAccount(callback: (newState: UseAppKitAccountReturn) => void, namespace?: ChainNamespace): void;
68
68
  subscribeNetwork(callback: (newState: Omit<UseAppKitNetworkReturn, 'switchNetwork'>) => void): () => void;
69
69
  subscribeWalletInfo(callback: (newState?: ConnectedWalletInfo) => void): () => void;
70
70
  subscribeShouldUpdateToAddress(callback: (newState?: string) => void): void;
@@ -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/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';
@@ -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;
@@ -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
@@ -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;
@@ -1,3 +1,4 @@
1
1
  import type { CaipNetwork } from '@reown/appkit';
2
2
  declare const base: CaipNetwork, mainnet: CaipNetwork, polygon: CaipNetwork, sepolia: CaipNetwork, solana: CaipNetwork, bitcoin: CaipNetwork;
3
- export { base, mainnet, polygon, sepolia, solana, bitcoin };
3
+ declare const unsupportedNetwork: CaipNetwork;
4
+ export { base, mainnet, polygon, sepolia, solana, bitcoin, unsupportedNetwork };
@@ -1,5 +1,4 @@
1
- import type { Balance } from '@reown/appkit-common';
2
1
  export declare function mockWindowAndDocument(): void;
3
2
  export declare function mockBlockchainApiController(): void;
4
3
  export declare function mockStorageUtil(): void;
5
- export declare function mockFetchTokenBalanceOnce(response: Balance[]): void;
4
+ export declare function mockChainControllerStateWithUnsupportedChain(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reown/appkit",
3
- "version": "1.6.7-basic-test.7.0",
3
+ "version": "1.6.7-core-1.0",
4
4
  "sideEffects": false,
5
5
  "type": "module",
6
6
  "main": "./dist/esm/exports/index.js",
@@ -104,14 +104,14 @@
104
104
  "@walletconnect/universal-provider": "2.18.0",
105
105
  "bs58": "6.0.0",
106
106
  "valtio": "1.13.2",
107
- "viem": "2.x",
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"
107
+ "viem": ">=2.23.0",
108
+ "@reown/appkit-common": "1.6.7-core-1.0",
109
+ "@reown/appkit-core": "1.6.7-core-1.0",
110
+ "@reown/appkit-polyfills": "1.6.7-core-1.0",
111
+ "@reown/appkit-scaffold-ui": "1.6.9-core-1.0",
112
+ "@reown/appkit-ui": "1.6.9-core-1.0",
113
+ "@reown/appkit-wallet": "1.6.7-core-1.0",
114
+ "@reown/appkit-utils": "1.6.7-core-1.0"
115
115
  },
116
116
  "devDependencies": {
117
117
  "@types/react": "18.3.1",
@@ -124,7 +124,7 @@
124
124
  "react-dom": "18.3.1",
125
125
  "vitest": "2.1.3",
126
126
  "vue": "3.x",
127
- "@reown/appkit-siwe": "1.6.7-basic-test.7.0"
127
+ "@reown/appkit-siwe": "1.6.7-core-1.0"
128
128
  },
129
129
  "author": "Reown <support@reown.com> (https://reown.com)",
130
130
  "license": "Apache-2.0",