@reown/appkit 1.0.3 → 1.0.5

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,7 +1,13 @@
1
1
  import type { CaipNetworkId } from '@reown/appkit-common';
2
2
  import { W3mFrameProvider } from '@reown/appkit-wallet';
3
+ interface W3mFrameProviderConfig {
4
+ projectId: string;
5
+ chainId?: number | CaipNetworkId;
6
+ onTimeout?: () => void;
7
+ }
3
8
  export declare class W3mFrameProviderSingleton {
4
9
  private static instance;
5
10
  private constructor();
6
- static getInstance(projectId: string, chainId?: number | CaipNetworkId): W3mFrameProvider;
11
+ static getInstance({ projectId, chainId, onTimeout }: W3mFrameProviderConfig): W3mFrameProvider;
7
12
  }
13
+ export {};
@@ -26,7 +26,6 @@ export declare class AppKit {
26
26
  getError(): string;
27
27
  getChainId(): import("@reown/appkit-common").ChainId | undefined;
28
28
  switchNetwork(caipNetwork: CaipNetwork): Promise<void>;
29
- getIsConnected(): boolean;
30
29
  getWalletProvider(): unknown;
31
30
  getWalletProviderType(): ("walletConnect" | "injected" | "coinbaseWallet" | "eip6963" | "w3mAuth" | "coinbaseWalletSDK") | null | undefined;
32
31
  subscribeProvider(): null;
@@ -54,7 +53,6 @@ export declare class AppKit {
54
53
  isOpen(): boolean;
55
54
  isTransactionStackEmpty(): boolean;
56
55
  isTransactionShouldReplaceView(): boolean | undefined;
57
- setIsConnected: (typeof AccountController)['setIsConnected'];
58
56
  setStatus: (typeof AccountController)['setStatus'];
59
57
  getIsConnectedState: () => boolean;
60
58
  setAllAccounts: (typeof AccountController)['setAllAccounts'];
@@ -19,6 +19,7 @@ declare module '@vue/runtime-core' {
19
19
  }
20
20
  export declare function getAppKit(appKit: AppKit): void;
21
21
  export declare function useAppKitAccount(): {
22
+ caipAddress: `eip155:${string}:${string}` | `eip155:${number}:${string}` | `solana:${string}:${string}` | `solana:${number}:${string}` | `polkadot:${string}:${string}` | `polkadot:${number}:${string}` | undefined;
22
23
  address: string | undefined;
23
24
  isConnected: boolean;
24
25
  status: "reconnecting" | "connected" | "disconnected" | "connecting" | undefined;
@@ -22,6 +22,7 @@ export declare class UniversalAdapterClient {
22
22
  connectionControllerClient: ConnectionControllerClient;
23
23
  options: AppKitOptions | undefined;
24
24
  adapterType: AdapterType;
25
+ reportErrors: boolean;
25
26
  constructor(options: AppKitOptions);
26
27
  construct(appkit: AppKit, options: AppKitOptions): void;
27
28
  switchNetwork(caipNetwork: CaipNetwork): void;
@@ -1,6 +1,8 @@
1
1
  import type { NamespaceConfig } from '@walletconnect/universal-provider';
2
- import type { CaipNetwork, ChainNamespace } from '@reown/appkit-common';
2
+ import type { CaipNetwork, CaipNetworkId, ChainNamespace } from '@reown/appkit-common';
3
+ import type { SessionTypes } from '@walletconnect/types';
3
4
  export declare const WcHelpersUtil: {
4
5
  getMethodsByChainNamespace(chainNamespace: ChainNamespace): string[];
5
6
  createNamespaces(caipNetworks: CaipNetwork[]): NamespaceConfig;
7
+ getChainsFromNamespaces(namespaces?: SessionTypes.Namespaces): CaipNetworkId[];
6
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reown/appkit",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "type": "module",
5
5
  "main": "./dist/esm/exports/index.js",
6
6
  "types": "./dist/types/exports/index.d.ts",
@@ -81,44 +81,30 @@
81
81
  }
82
82
  },
83
83
  "dependencies": {
84
- "@walletconnect/universal-provider": "2.16.1",
85
84
  "@walletconnect/types": "2.16.1",
86
85
  "@walletconnect/utils": "2.16.1",
86
+ "@walletconnect/universal-provider": "2.16.1",
87
87
  "valtio": "1.11.2",
88
- "@reown/appkit-common": "1.0.3",
89
- "@reown/appkit-core": "1.0.3",
90
- "@reown/appkit-polyfills": "1.0.3",
91
- "@reown/appkit-scaffold-ui": "1.0.3",
92
- "@reown/appkit-utils": "1.0.3",
93
- "@reown/appkit-siwe": "1.0.3",
94
- "@reown/appkit-ui": "1.0.3",
95
- "@reown/appkit-wallet": "1.0.3"
96
- },
97
- "optionalDependencies": {
98
- "borsh": "0.7.0",
99
- "bs58": "5.0.0"
88
+ "@reown/appkit-common": "1.0.5",
89
+ "@reown/appkit-core": "1.0.5",
90
+ "@reown/appkit-polyfills": "1.0.5",
91
+ "@reown/appkit-scaffold-ui": "1.0.5",
92
+ "@reown/appkit-utils": "1.0.5",
93
+ "@reown/appkit-siwe": "1.0.5",
94
+ "@reown/appkit-ui": "1.0.5",
95
+ "@reown/appkit-wallet": "1.0.5"
100
96
  },
101
97
  "devDependencies": {
102
98
  "@types/react": "18.2.0",
103
99
  "@types/react-dom": "18.2.0",
104
100
  "@vitest/coverage-v8": "2.0.5",
105
101
  "@vue/runtime-core": "3.4.3",
106
- "@wagmi/connectors": "5.1.9",
107
- "@wagmi/core": "2.13.4",
108
- "@wallet-standard/app": "1.0.1",
109
- "@wallet-standard/base": "1.0.1",
110
- "@wallet-standard/features": "1.0.3",
111
- "@wallet-standard/wallet": "1.0.1",
112
102
  "@walletconnect/types": "2.13.3",
113
103
  "@walletconnect/universal-provider": "2.16.1",
114
- "ethers": "6.13.2",
115
- "ethers5": "npm:ethers@5.7.2",
116
104
  "react": "18.2.0",
117
105
  "react-dom": "18.2.0",
118
- "viem": "2.21.4",
119
106
  "vitest": "2.0.5",
120
- "vue": "3.4.3",
121
- "wagmi": "2.12.9"
107
+ "vue": "3.4.3"
122
108
  },
123
109
  "author": "Reown <support@reown.com> (https://reown.com)",
124
110
  "license": "Apache-2.0",
@@ -136,6 +122,6 @@
136
122
  "watch": "tsc --watch",
137
123
  "typecheck": "tsc --noEmit",
138
124
  "lint": "eslint . --ext .js,.jsx,.ts,.tsx",
139
- "test": "vitest run --coverage.enabled=true --coverage.reporter=json --coverage.reporter=json-summary --coverage.reportOnFailure=true"
125
+ "test": "vitest run --coverage.enabled=true -- coverage.reporter=json --coverage.reporter=json-summary --coverage.reportOnFailure=true"
140
126
  }
141
127
  }