@dogeos/dogeos-sdk 3.0.19-beta.6 → 3.1.0-beta.1
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 +13 -25
- package/dist/index.js +6136 -10
- package/package.json +1 -1
- package/dist/features-animation-CpOJYt3g.js +0 -2610
- package/dist/index-0zb3mdmR.js +0 -18
- package/dist/index-DbZnkm04.js +0 -37088
- package/dist/index-DmcO-unQ.js +0 -1425
- package/dist/src-UW24ZMRV-JR2KHDzT.js +0 -5
package/dist/index.d.ts
CHANGED
|
@@ -58,6 +58,8 @@ export declare interface ConnectData {
|
|
|
58
58
|
|
|
59
59
|
export declare type ConnectErrorType = Error;
|
|
60
60
|
|
|
61
|
+
export declare type ConnectionStatus = "disconnected" | "connecting" | "connected";
|
|
62
|
+
|
|
61
63
|
export declare interface ConnectVariables {
|
|
62
64
|
wallet: WalletConnector;
|
|
63
65
|
chainType: ChainType;
|
|
@@ -79,6 +81,7 @@ declare interface EmbeddedWalletState {
|
|
|
79
81
|
message: string | null;
|
|
80
82
|
connectedInfo: EmbeddedWalletConnectedInfo | null;
|
|
81
83
|
isLoading: boolean;
|
|
84
|
+
error: Error | null;
|
|
82
85
|
}
|
|
83
86
|
|
|
84
87
|
export declare type EvmChain = Chain_2;
|
|
@@ -189,21 +192,8 @@ export declare const useConnectors: () => {
|
|
|
189
192
|
};
|
|
190
193
|
|
|
191
194
|
/**
|
|
192
|
-
*
|
|
193
|
-
*
|
|
194
|
-
*
|
|
195
|
-
* @example
|
|
196
|
-
* ```tsx
|
|
197
|
-
* const { wallet, isAvailable, message, connectedInfo, isLoading } = useEmbeddedWallet();
|
|
198
|
-
*
|
|
199
|
-
* if (isLoading) {
|
|
200
|
-
* return <div>Loading embedded wallet...</div>;
|
|
201
|
-
* }
|
|
202
|
-
*
|
|
203
|
-
* if (isAvailable && wallet) {
|
|
204
|
-
* // Use embedded wallet
|
|
205
|
-
* }
|
|
206
|
-
* ```
|
|
195
|
+
* Internal hook to access embedded wallet state.
|
|
196
|
+
* NOT part of the public API — use `useWalletConnect()` for readiness.
|
|
207
197
|
*/
|
|
208
198
|
export declare const useEmbeddedWallet: () => EmbeddedWalletState;
|
|
209
199
|
|
|
@@ -214,25 +204,21 @@ export declare interface UserLoginConfig {
|
|
|
214
204
|
|
|
215
205
|
export declare type UseWalletConnect = {
|
|
216
206
|
isOpenModal: boolean;
|
|
207
|
+
connectionStatus: ConnectionStatus;
|
|
217
208
|
isConnected: boolean;
|
|
218
209
|
isConnecting: boolean;
|
|
210
|
+
isDisconnected: boolean;
|
|
219
211
|
error: string;
|
|
212
|
+
walletStatus: WalletStatus;
|
|
213
|
+
isWalletReady: boolean;
|
|
214
|
+
isWalletLoading: boolean;
|
|
220
215
|
connect: (variables: ConnectVariables) => Promise<ConnectData>;
|
|
221
216
|
disconnect: () => Promise<void>;
|
|
222
217
|
openModal: () => void;
|
|
223
218
|
closeModal: () => void;
|
|
224
219
|
};
|
|
225
220
|
|
|
226
|
-
export declare const useWalletConnect: () =>
|
|
227
|
-
isOpenModal: boolean;
|
|
228
|
-
openModal: () => void;
|
|
229
|
-
closeModal: () => void;
|
|
230
|
-
isConnected: boolean;
|
|
231
|
-
isConnecting: boolean;
|
|
232
|
-
error: string;
|
|
233
|
-
connect: (variables: ConnectVariables) => Promise<ConnectData>;
|
|
234
|
-
disconnect: () => Promise<void>;
|
|
235
|
-
};
|
|
221
|
+
export declare const useWalletConnect: () => UseWalletConnect;
|
|
236
222
|
|
|
237
223
|
/**
|
|
238
224
|
* Embedded wallet connect component that renders the modal content with proper context
|
|
@@ -341,4 +327,6 @@ export { WalletInfo }
|
|
|
341
327
|
|
|
342
328
|
export { WalletProvider }
|
|
343
329
|
|
|
330
|
+
export declare type WalletStatus = "disabled" | "initializing" | "ready" | "unavailable" | "error";
|
|
331
|
+
|
|
344
332
|
export { }
|