@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.
- 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 +3 -8
- 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 +1 -1
- package/dist/esm/src/client/core.js.map +1 -1
- package/dist/esm/src/client.js +35 -20
- package/dist/esm/src/client.js.map +1 -1
- package/dist/esm/tests/client/adapter-management.test.js +1 -1
- package/dist/esm/tests/client/adapter-management.test.js.map +1 -1
- package/dist/esm/tests/client/balance.test.js +9 -22
- package/dist/esm/tests/client/balance.test.js.map +1 -1
- package/dist/esm/tests/client/connection.test.js +5 -5
- package/dist/esm/tests/client/connection.test.js.map +1 -1
- package/dist/esm/tests/client/initialization.test.js +5 -24
- package/dist/esm/tests/client/initialization.test.js.map +1 -1
- package/dist/esm/tests/client/listeners.test.js +20 -5
- package/dist/esm/tests/client/listeners.test.js.map +1 -1
- package/dist/esm/tests/client/public-methods.test.js +16 -6
- package/dist/esm/tests/client/public-methods.test.js.map +1 -1
- package/dist/esm/tests/client/universal-adapter.test.js +5 -5
- package/dist/esm/tests/client/universal-adapter.test.js.map +1 -1
- package/dist/esm/tests/client/walletconnect-events.test.js +6 -25
- package/dist/esm/tests/client/walletconnect-events.test.js.map +1 -1
- package/dist/esm/tests/mocks/Networks.js +13 -1
- package/dist/esm/tests/mocks/Networks.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/tests/test-utils.js +8 -4
- package/dist/esm/tests/test-utils.js.map +1 -1
- package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +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.d.ts +1 -1
- 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/dist/types/tests/mocks/Networks.d.ts +2 -1
- package/dist/types/tests/test-utils.d.ts +1 -2
- package/package.json +10 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PACKAGE_VERSION = "1.6.
|
|
1
|
+
export declare const PACKAGE_VERSION = "1.6.9-venice.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
|
|
@@ -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
|
|
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
|
|
@@ -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
|
-
|
|
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
|
|
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-
|
|
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.
|
|
108
|
-
"@reown/appkit-common": "1.6.7-
|
|
109
|
-
"@reown/appkit-
|
|
110
|
-
"@reown/appkit-
|
|
111
|
-
"@reown/appkit-
|
|
112
|
-
"@reown/appkit-
|
|
113
|
-
"@reown/appkit-
|
|
114
|
-
"@reown/appkit-
|
|
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-
|
|
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",
|