@reown/appkit 1.8.21 → 1.8.22-coinbase-4100-provider-reauth.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 +65 -2
- 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 +37 -1
- package/package.json +10 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PACKAGE_VERSION = "1.8.
|
|
1
|
+
export declare const PACKAGE_VERSION = "1.8.22-coinbase-4100-provider-reauth.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, WalletConnectUriSnapshot, 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,42 @@ 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. Read the result with {@link getWalletConnectUri}; subscribe
|
|
187
|
+
* with {@link subscribeWalletConnectUri}. Call when a wallet is selected so a later connect can
|
|
188
|
+
* deeplink synchronously (iOS) or render a QR.
|
|
189
|
+
*/
|
|
190
|
+
prefetchWalletConnectUri(options?: ConnectOptions): Promise<void>;
|
|
191
|
+
/**
|
|
192
|
+
* The current WalletConnect URI state (QR / deeplink URI + fetch/error signals) — the
|
|
193
|
+
* symmetric read for {@link prefetchWalletConnectUri}. Reads the connection layer directly, so
|
|
194
|
+
* a headless host gets it ungated through the AppKit instance.
|
|
195
|
+
*/
|
|
196
|
+
getWalletConnectUri(): WalletConnectUriSnapshot;
|
|
197
|
+
/** Subscribe to WalletConnect URI state changes. Returns an unsubscribe. */
|
|
198
|
+
subscribeWalletConnectUri(callback: () => void): () => void;
|
|
199
|
+
/**
|
|
200
|
+
* Clear the WalletConnect URI + linking state (e.g. when a headless host dismisses or
|
|
201
|
+
* cancels the QR). Resets the connection layer directly, so a host can clear the URI it
|
|
202
|
+
* read via {@link getWalletConnectUri} without touching controllers.
|
|
203
|
+
*/
|
|
204
|
+
resetWalletConnectUri(): void;
|
|
205
|
+
/** Clear the `connectingWallet` state (e.g. when a headless host cancels a connection). */
|
|
206
|
+
resetConnectingWallet(): void;
|
|
207
|
+
/**
|
|
208
|
+
* Connect a chosen wallet programmatically (headless — no modal). Handles injected,
|
|
209
|
+
* API ("all wallets"), and mobile-deeplink wallets.
|
|
210
|
+
*/
|
|
211
|
+
connectWallet(wallet: WalletItem, namespace?: ChainNamespace, options?: ConnectOptions): Promise<void>;
|
|
176
212
|
getSIWX<SIWXConfigInterface = SIWXConfig>(): SIWXConfigInterface | undefined;
|
|
177
213
|
getError(): string;
|
|
178
214
|
getChainId(): string | number | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reown/appkit",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.22-coinbase-4100-provider-reauth.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-
|
|
112
|
-
"@reown/appkit-
|
|
113
|
-
"@reown/appkit-
|
|
114
|
-
"@reown/appkit-
|
|
115
|
-
"@reown/appkit-
|
|
116
|
-
"@reown/appkit-
|
|
117
|
-
"@reown/appkit-
|
|
118
|
-
"@reown/appkit-wallet": "1.8.
|
|
111
|
+
"@reown/appkit-controllers": "1.8.22-coinbase-4100-provider-reauth.0",
|
|
112
|
+
"@reown/appkit-pay": "1.8.22-coinbase-4100-provider-reauth.0",
|
|
113
|
+
"@reown/appkit-common": "1.8.22-coinbase-4100-provider-reauth.0",
|
|
114
|
+
"@reown/appkit-scaffold-ui": "1.8.22-coinbase-4100-provider-reauth.0",
|
|
115
|
+
"@reown/appkit-polyfills": "1.8.22-coinbase-4100-provider-reauth.0",
|
|
116
|
+
"@reown/appkit-utils": "1.8.22-coinbase-4100-provider-reauth.0",
|
|
117
|
+
"@reown/appkit-ui": "1.8.22-coinbase-4100-provider-reauth.0",
|
|
118
|
+
"@reown/appkit-wallet": "1.8.22-coinbase-4100-provider-reauth.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-coinbase-4100-provider-reauth.0"
|
|
133
133
|
},
|
|
134
134
|
"optionalDependencies": {
|
|
135
135
|
"@lit/react": "1.0.8"
|