@reown/appkit 1.8.21 → 1.8.22-headless-js-wcuri.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/package.json +1 -1
- package/dist/esm/src/client/appkit-base-client.js +37 -1
- package/dist/esm/src/client/appkit-base-client.js.map +1 -1
- package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/exports/constants.d.ts +1 -1
- package/dist/types/src/client/appkit-base-client.d.ts +21 -1
- package/dist/types/src/library/react/index.d.ts +3 -0
- package/package.json +10 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PACKAGE_VERSION = "1.8.
|
|
1
|
+
export declare const PACKAGE_VERSION = "1.8.22-headless-js-wcuri.0";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { SessionTypes } from '@walletconnect/types';
|
|
2
2
|
import UniversalProvider from '@walletconnect/universal-provider';
|
|
3
3
|
import type { AppKitNetwork, AppKitSdkVersion, CaipAddress, CaipNetwork, CaipNetworkId, ChainNamespace, SdkVersion } from '@reown/appkit-common';
|
|
4
|
-
import type { AccountState, AdapterBlueprint, Adapters, ChainAdapterConnector, ConnectExternalOptions, ConnectMethod, ConnectedWalletInfo, ConnectionControllerClient, ConnectionControllerState, ConnectorType, EventsControllerState, Features, ModalControllerState, NamespaceTypeMap, OptionsControllerState, PublicStateControllerState, RemoteFeatures, RouterControllerState, SIWXConfig, SocialProvider, ThemeControllerState, UseAppKitAccountReturn, UseAppKitNetworkReturn, User, WalletFeature } from '@reown/appkit-controllers';
|
|
4
|
+
import type { AccountState, AdapterBlueprint, Adapters, ChainAdapterConnector, ConnectExternalOptions, ConnectMethod, ConnectOptions, ConnectedWalletInfo, ConnectionControllerClient, ConnectionControllerState, ConnectorType, EventsControllerState, Features, FetchWalletsOptions, ModalControllerState, NamespaceTypeMap, OptionsControllerState, PublicStateControllerState, RemoteFeatures, RouterControllerState, SIWXConfig, SocialProvider, ThemeControllerState, UseAppKitAccountReturn, UseAppKitNetworkReturn, User, WalletFeature, WalletItem, WalletListSnapshot } from '@reown/appkit-controllers';
|
|
5
5
|
import { AssetUtil, BlockchainApiController, ChainController, ConnectionController, ConnectorController, EnsController, OptionsController, type ProviderControllerState, StorageUtil } from '@reown/appkit-controllers';
|
|
6
6
|
import type { AppKitOptions } from '../utils/index.js';
|
|
7
7
|
export interface AppKitOptionsWithSdk extends AppKitOptions {
|
|
@@ -173,6 +173,26 @@ export declare abstract class AppKitBaseClient {
|
|
|
173
173
|
close(): Promise<void>;
|
|
174
174
|
setLoading(loading: ModalControllerState['loading'], namespace?: ChainNamespace): void;
|
|
175
175
|
disconnect(chainNamespace?: ChainNamespace): Promise<void>;
|
|
176
|
+
/**
|
|
177
|
+
* Fetch / search / paginate the WalletConnect wallet list (WalletGuide explorer). Read
|
|
178
|
+
* the results with {@link getWalletList}; subscribe with {@link subscribeWalletList}.
|
|
179
|
+
*/
|
|
180
|
+
fetchWallets(options?: FetchWalletsOptions): Promise<void>;
|
|
181
|
+
/** The current headless wallet list (initial view + WalletConnect list + pagination). */
|
|
182
|
+
getWalletList(): WalletListSnapshot;
|
|
183
|
+
/** Subscribe to wallet-list changes. Returns an unsubscribe. */
|
|
184
|
+
subscribeWalletList(callback: () => void): () => void;
|
|
185
|
+
/**
|
|
186
|
+
* Pre-fetch the WalletConnect URI. The resulting `wcUri` (plus `wcError` / `wcFetchingUri`) is
|
|
187
|
+
* exposed on the public state — read it via {@link getState} or {@link subscribeState}. Call
|
|
188
|
+
* when a wallet is selected so a later connect can deeplink synchronously (iOS) or render a QR.
|
|
189
|
+
*/
|
|
190
|
+
getWalletConnectUri(options?: ConnectOptions): Promise<void>;
|
|
191
|
+
/**
|
|
192
|
+
* Connect a chosen wallet programmatically (headless — no modal). Handles injected,
|
|
193
|
+
* API ("all wallets"), and mobile-deeplink wallets.
|
|
194
|
+
*/
|
|
195
|
+
connectWallet(wallet: WalletItem, namespace?: ChainNamespace, options?: ConnectOptions): Promise<void>;
|
|
176
196
|
getSIWX<SIWXConfigInterface = SIWXConfig>(): SIWXConfigInterface | undefined;
|
|
177
197
|
getError(): string;
|
|
178
198
|
getChainId(): string | number | undefined;
|
|
@@ -66,6 +66,9 @@ export declare function useAppKitState(): {
|
|
|
66
66
|
selectedNetworkId?: import("@reown/appkit-common").CaipNetworkId | undefined;
|
|
67
67
|
activeChain?: ChainNamespace | undefined;
|
|
68
68
|
connectingWallet: import("@reown/appkit-controllers").WalletItem | undefined;
|
|
69
|
+
wcUri: string | undefined;
|
|
70
|
+
wcError: boolean;
|
|
71
|
+
wcFetchingUri: boolean;
|
|
69
72
|
};
|
|
70
73
|
export declare function useAppKitEvents(): {
|
|
71
74
|
timestamp: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reown/appkit",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.22-headless-js-wcuri.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/esm/exports/index.js",
|
|
6
6
|
"types": "./dist/types/exports/index.d.ts",
|
|
@@ -108,14 +108,14 @@
|
|
|
108
108
|
"semver": "7.7.2",
|
|
109
109
|
"valtio": "2.1.7",
|
|
110
110
|
"viem": ">=2.45.0",
|
|
111
|
-
"@reown/appkit-common": "1.8.
|
|
112
|
-
"@reown/appkit-controllers": "1.8.
|
|
113
|
-
"@reown/appkit-pay": "1.8.
|
|
114
|
-
"@reown/appkit-polyfills": "1.8.
|
|
115
|
-
"@reown/appkit-scaffold-ui": "1.8.
|
|
116
|
-
"@reown/appkit-ui": "1.8.
|
|
117
|
-
"@reown/appkit-utils": "1.8.
|
|
118
|
-
"@reown/appkit-wallet": "1.8.
|
|
111
|
+
"@reown/appkit-common": "1.8.22-headless-js-wcuri.0",
|
|
112
|
+
"@reown/appkit-controllers": "1.8.22-headless-js-wcuri.0",
|
|
113
|
+
"@reown/appkit-pay": "1.8.22-headless-js-wcuri.0",
|
|
114
|
+
"@reown/appkit-polyfills": "1.8.22-headless-js-wcuri.0",
|
|
115
|
+
"@reown/appkit-scaffold-ui": "1.8.22-headless-js-wcuri.0",
|
|
116
|
+
"@reown/appkit-ui": "1.8.22-headless-js-wcuri.0",
|
|
117
|
+
"@reown/appkit-utils": "1.8.22-headless-js-wcuri.0",
|
|
118
|
+
"@reown/appkit-wallet": "1.8.22-headless-js-wcuri.0"
|
|
119
119
|
},
|
|
120
120
|
"devDependencies": {
|
|
121
121
|
"@walletconnect/types": "2.23.7",
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
"react-dom": "19.1.2",
|
|
130
130
|
"vitest": "3.1.3",
|
|
131
131
|
"vue": "3.x",
|
|
132
|
-
"@reown/appkit-siwe": "1.8.
|
|
132
|
+
"@reown/appkit-siwe": "1.8.22-headless-js-wcuri.0"
|
|
133
133
|
},
|
|
134
134
|
"optionalDependencies": {
|
|
135
135
|
"@lit/react": "1.0.8"
|