@reown/appkit
Advanced tools
Comparing version
@@ -1,2 +0,2 @@ | ||
export const PACKAGE_VERSION = '1.7.0'; | ||
export const PACKAGE_VERSION = '1.7.1-9bf27b65a75c2fd6a83b5668b223a04a58ee7609.0'; | ||
//# sourceMappingURL=constants.js.map |
{ | ||
"name": "@reown/appkit", | ||
"version": "1.7.0", | ||
"version": "1.7.1-9bf27b65a75c2fd6a83b5668b223a04a58ee7609.0", | ||
"type": "module", | ||
@@ -136,3 +136,3 @@ "main": "./dist/esm/exports/index.js", | ||
"valtio": "1.13.2", | ||
"viem": ">=2.23.5" | ||
"viem": ">=2.23.11" | ||
}, | ||
@@ -139,0 +139,0 @@ "devDependencies": { |
@@ -7,3 +7,3 @@ import UniversalProvider from '@walletconnect/universal-provider'; | ||
import { CaipNetworksUtil, ErrorUtil, HelpersUtil, LoggerUtil, ConstantsUtil as UtilConstantsUtil } from '@reown/appkit-utils'; | ||
import { ProviderUtil } from '../store/ProviderUtil.js'; | ||
import { ProviderUtil } from '@reown/appkit-utils'; | ||
import { UniversalAdapter } from '../universal-adapter/client.js'; | ||
@@ -409,4 +409,4 @@ import { WcHelpersUtil } from '../utils/index.js'; | ||
}, | ||
disconnect: async () => { | ||
const namespace = ChainController.state.activeChain; | ||
disconnect: async (chainNamespace) => { | ||
const namespace = chainNamespace || ChainController.state.activeChain; | ||
const adapter = this.getAdapter(namespace); | ||
@@ -661,3 +661,3 @@ const provider = ProviderUtil.getProvider(namespace); | ||
}); | ||
adapter.on('disconnect', this.disconnect.bind(this)); | ||
adapter.on('disconnect', this.disconnect.bind(this, chainNamespace)); | ||
adapter.on('pendingTransactions', () => { | ||
@@ -725,3 +725,3 @@ const address = AccountController.state.address; | ||
const connectorId = ConnectorController.getConnectorId(namespace); | ||
const caipNetwork = this.getCaipNetwork(); | ||
const caipNetwork = this.getCaipNetwork(namespace); | ||
const connector = ConnectorController.getConnectors(namespace).find(c => c.id === connectorId); | ||
@@ -1095,4 +1095,4 @@ try { | ||
} | ||
async disconnect() { | ||
await ConnectionController.disconnect(); | ||
async disconnect(chainNamespace) { | ||
await ConnectionController.disconnect(chainNamespace); | ||
} | ||
@@ -1099,0 +1099,0 @@ // -- review these ------------------------------------------------------------------- |
@@ -5,7 +5,6 @@ /* eslint-disable max-depth */ | ||
import { AccountController, AlertController, ChainController, CoreHelperUtil, OptionsController, StorageUtil, ThemeController } from '@reown/appkit-controllers'; | ||
import { ErrorUtil, HelpersUtil, ConstantsUtil as UtilConstantsUtil } from '@reown/appkit-utils'; | ||
import { ErrorUtil, HelpersUtil, ProviderUtil, ConstantsUtil as UtilConstantsUtil } from '@reown/appkit-utils'; | ||
import { W3mFrameHelpers, W3mFrameProvider } from '@reown/appkit-wallet'; | ||
import { W3mFrameRpcConstants } from '@reown/appkit-wallet/utils'; | ||
import { W3mFrameProviderSingleton } from '../auth-provider/W3MFrameProviderSingleton.js'; | ||
import { ProviderUtil } from '../store/ProviderUtil.js'; | ||
import { AppKitBaseClient } from './appkit-base-client.js'; | ||
@@ -12,0 +11,0 @@ // -- Export Controllers ------------------------------------------------------- |
import { useEffect, useState, useSyncExternalStore } from 'react'; | ||
import { useSnapshot } from 'valtio'; | ||
import { ProviderUtil } from '../../store/ProviderUtil.js'; | ||
import { ProviderUtil } from '@reown/appkit-utils'; | ||
let modal = undefined; | ||
@@ -5,0 +5,0 @@ export function getAppKit(appKit) { |
import { onUnmounted, reactive, ref } from 'vue'; | ||
import {} from '@reown/appkit-controllers'; | ||
import { ProviderUtil } from '../../store/ProviderUtil.js'; | ||
import { ProviderUtil } from '@reown/appkit-utils'; | ||
let modal = undefined; | ||
@@ -5,0 +5,0 @@ export function getAppKit(appKit) { |
@@ -1,2 +0,2 @@ | ||
export { ProviderUtil } from './ProviderUtil.js'; | ||
export { ProviderUtil } from '@reown/appkit-utils'; | ||
//# sourceMappingURL=index.js.map |
@@ -1,1 +0,1 @@ | ||
export declare const PACKAGE_VERSION = "1.7.0"; | ||
export declare const PACKAGE_VERSION = "1.7.1-9bf27b65a75c2fd6a83b5668b223a04a58ee7609.0"; |
@@ -6,5 +6,5 @@ import type { SessionTypes } from '@walletconnect/types'; | ||
import { AccountController, AssetUtil, BlockchainApiController, ChainController, ConnectionController, ConnectorController, EnsController, OptionsController } from '@reown/appkit-controllers'; | ||
import type { ProviderStoreUtilState } from '@reown/appkit-utils'; | ||
import type { W3mFrameTypes } from '@reown/appkit-wallet'; | ||
import type { AdapterBlueprint } from '../adapters/index.js'; | ||
import type { ProviderStoreUtilState } from '../store/ProviderUtil.js'; | ||
import type { AppKitOptions } from '../utils/index.js'; | ||
@@ -129,3 +129,3 @@ export type Adapters = Record<ChainNamespace, AdapterBlueprint>; | ||
setLoading(loading: ModalControllerState['loading'], namespace?: ChainNamespace): void; | ||
disconnect(): Promise<void>; | ||
disconnect(chainNamespace?: ChainNamespace): Promise<void>; | ||
getError(): string; | ||
@@ -132,0 +132,0 @@ getChainId(): string | number | undefined; |
@@ -1,2 +0,2 @@ | ||
export { ProviderUtil } from './ProviderUtil.js'; | ||
export type { ProviderStoreUtilState, ProviderType } from './ProviderUtil.js'; | ||
export { ProviderUtil } from '@reown/appkit-utils'; | ||
export type { ProviderStoreUtilState, ProviderType } from '@reown/appkit-utils'; |
{ | ||
"name": "@reown/appkit", | ||
"version": "1.7.0", | ||
"version": "1.7.1-9bf27b65a75c2fd6a83b5668b223a04a58ee7609.0", | ||
"type": "module", | ||
@@ -121,10 +121,10 @@ "main": "./dist/esm/exports/index.js", | ||
"valtio": "1.13.2", | ||
"viem": ">=2.23.5", | ||
"@reown/appkit-common": "1.7.0", | ||
"@reown/appkit-controllers": "1.7.0", | ||
"@reown/appkit-polyfills": "1.7.0", | ||
"@reown/appkit-scaffold-ui": "1.7.0", | ||
"@reown/appkit-ui": "1.7.0", | ||
"@reown/appkit-utils": "1.7.0", | ||
"@reown/appkit-wallet": "1.7.0" | ||
"viem": ">=2.23.11", | ||
"@reown/appkit-common": "1.7.1-9bf27b65a75c2fd6a83b5668b223a04a58ee7609.0", | ||
"@reown/appkit-controllers": "1.7.1-9bf27b65a75c2fd6a83b5668b223a04a58ee7609.0", | ||
"@reown/appkit-polyfills": "1.7.1-9bf27b65a75c2fd6a83b5668b223a04a58ee7609.0", | ||
"@reown/appkit-scaffold-ui": "1.7.1-9bf27b65a75c2fd6a83b5668b223a04a58ee7609.0", | ||
"@reown/appkit-ui": "1.7.1-9bf27b65a75c2fd6a83b5668b223a04a58ee7609.0", | ||
"@reown/appkit-utils": "1.7.1-9bf27b65a75c2fd6a83b5668b223a04a58ee7609.0", | ||
"@reown/appkit-wallet": "1.7.1-9bf27b65a75c2fd6a83b5668b223a04a58ee7609.0" | ||
}, | ||
@@ -142,3 +142,3 @@ "devDependencies": { | ||
"vue": "3.x", | ||
"@reown/appkit-siwe": "1.7.0" | ||
"@reown/appkit-siwe": "1.7.1-9bf27b65a75c2fd6a83b5668b223a04a58ee7609.0" | ||
}, | ||
@@ -145,0 +145,0 @@ "author": "Reown <support@reown.com> (https://reown.com)", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
793223
1.93%128
-2.29%4186
-1.64%1
Infinity%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated
Updated
Updated
Updated
Updated
Updated