@reown/appkit-core 1.5.2 → 1.5.3-4228d6.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.
@@ -1,5 +1,5 @@
1
1
  import { type ChainNamespace } from '@reown/appkit-common';
2
- import type { WcWallet, ConnectorType, SocialProvider } from './TypeUtil.js';
2
+ import type { WcWallet, ConnectorType, SocialProvider, ConnectionStatus } from './TypeUtil.js';
3
3
  export declare const StorageUtil: {
4
4
  setWalletConnectDeepLink({ name, href }: {
5
5
  href: string;
@@ -16,4 +16,6 @@ export declare const StorageUtil: {
16
16
  getConnectedSocialProvider(): string | undefined;
17
17
  getConnectedSocialUsername(): string | undefined;
18
18
  getStoredActiveCaipNetwork(): import("@reown/appkit-common").CaipNetwork | undefined;
19
+ setConnectionStatus(status: ConnectionStatus): void;
20
+ getConnectionStatus(): ConnectionStatus;
19
21
  };
@@ -18,7 +18,7 @@ export declare const SwapApiUtil: {
18
18
  fast: string | undefined;
19
19
  instant: string | undefined;
20
20
  } | null>;
21
- fetchSwapAllowance({ tokenAddress, userAddress, sourceTokenAmount, sourceTokenDecimals }: Pick<BlockchainApiSwapAllowanceRequest, "tokenAddress" | "userAddress"> & {
21
+ fetchSwapAllowance({ tokenAddress, userAddress, sourceTokenAmount, sourceTokenDecimals }: Pick<BlockchainApiSwapAllowanceRequest, "userAddress" | "tokenAddress"> & {
22
22
  sourceTokenAmount: string;
23
23
  sourceTokenDecimals: number;
24
24
  }): Promise<boolean>;
@@ -820,3 +820,4 @@ export type UseAppKitNetworkReturn = {
820
820
  switchNetwork: (network: AppKitNetwork) => void;
821
821
  };
822
822
  export type BadgeType = 'none' | 'certified';
823
+ export type ConnectionStatus = 'connected' | 'disconnected' | 'connecting' | 'reconnecting';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reown/appkit-core",
3
- "version": "1.5.2",
3
+ "version": "1.5.3-4228d6.0",
4
4
  "type": "module",
5
5
  "main": "./dist/esm/exports/index.js",
6
6
  "types": "./dist/types/exports/index.d.ts",
@@ -39,8 +39,8 @@
39
39
  "@walletconnect/universal-provider": "2.17.0",
40
40
  "valtio": "1.11.2",
41
41
  "viem": "2.x",
42
- "@reown/appkit-common": "1.5.2",
43
- "@reown/appkit-wallet": "1.5.2"
42
+ "@reown/appkit-wallet": "1.5.3-4228d6.0",
43
+ "@reown/appkit-common": "1.5.3-4228d6.0"
44
44
  },
45
45
  "peerDependencies": {},
46
46
  "devDependencies": {