@tomo-inc/wallet-connect-kit 0.0.18 → 0.0.20

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/index.d.ts CHANGED
@@ -61,6 +61,8 @@ export declare interface ConnectData {
61
61
 
62
62
  export declare type ConnectErrorType = Error;
63
63
 
64
+ export declare type ConnectionStatus = "disconnected" | "connecting" | "connected";
65
+
64
66
  export declare interface ConnectVariables {
65
67
  wallet: WalletConnector;
66
68
  chainType: ChainType;
@@ -103,7 +105,7 @@ export declare enum ModalView {
103
105
  SignInWallet = "SIGN_IN_WALLET",
104
106
  WalletConnect = "WALLET_CONNECT",
105
107
  UnsupportChain = "UNSUPPORT_CHAIN",
106
- SocialLogin = "SOCIAL_LOGIN"
108
+ WalletHome = "WALLET_HOME"
107
109
  }
108
110
 
109
111
  /**
@@ -179,25 +181,21 @@ export declare interface UserLoginConfig {
179
181
 
180
182
  export declare type UseWalletConnect = {
181
183
  isOpenModal: boolean;
184
+ connectionStatus: ConnectionStatus;
182
185
  isConnected: boolean;
183
186
  isConnecting: boolean;
187
+ isDisconnected: boolean;
184
188
  error: string;
189
+ walletStatus: WalletStatus;
190
+ isWalletReady: boolean;
191
+ isWalletLoading: boolean;
185
192
  connect: (variables: ConnectVariables) => Promise<ConnectData>;
186
193
  disconnect: () => Promise<void>;
187
194
  openModal: () => void;
188
195
  closeModal: () => void;
189
196
  };
190
197
 
191
- export declare const useWalletConnect: () => {
192
- isOpenModal: boolean;
193
- openModal: () => void;
194
- closeModal: () => void;
195
- isConnected: boolean;
196
- isConnecting: boolean;
197
- error: string;
198
- connect: (variables: ConnectVariables) => Promise<ConnectData>;
199
- disconnect: () => Promise<void>;
200
- };
198
+ export declare const useWalletConnect: () => UseWalletConnect;
201
199
 
202
200
  /**
203
201
  * Embedded wallet connect component that renders the modal content with proper context
@@ -305,4 +303,6 @@ export { WalletInfo }
305
303
 
306
304
  export { WalletProvider }
307
305
 
306
+ export declare type WalletStatus = "disabled" | "initializing" | "ready" | "unavailable" | "error";
307
+
308
308
  export { }