@tomo-inc/wallet-connect-kit 0.0.16 → 0.0.18
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/README.md +53 -17
- package/dist/{features-animation-C9buMQ2V.js → features-animation-Czbt7YWI.js} +1 -1
- package/dist/{index-DrBi1SXh.js → index-CKW2YGSw.js} +5085 -5126
- package/dist/index-CuWvAl7U.js +1423 -0
- package/dist/index-Cvucm6Hk.js +18 -0
- package/dist/index.d.ts +8 -38
- package/dist/index.js +2 -2
- package/dist/src-UW24ZMRV-dmt8vgSd.js +5 -0
- package/dist/wallet-connect-kit.css +1 -1
- package/package.json +3 -3
- package/dist/index-Bc0f3Cwf.js +0 -1423
- package/dist/index-huu0-LA6.js +0 -18
- package/dist/src-UW24ZMRV-CvlP3YUJ.js +0 -5
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,9 @@ import type { LayoutTheme } from '@heroui/theme';
|
|
|
12
12
|
import { SignInParams } from '../../../wallet-adaptor-base';
|
|
13
13
|
import { WalletConfig } from '../../../wallet-adaptor-base';
|
|
14
14
|
import { WalletConfig as WalletConfig_2 } from '../../../../wallet-adaptor-base';
|
|
15
|
+
import { WalletInfo } from '../../../wallet-adaptor-base';
|
|
15
16
|
import { WalletProvider } from '@tomo-inc/inject-providers';
|
|
17
|
+
import { WalletProvider as WalletProvider_2 } from '../../../wallet-adaptor-base';
|
|
16
18
|
import { WalletProvider as WalletProvider_3 } from '../../../../wallet-adaptor-base';
|
|
17
19
|
|
|
18
20
|
export declare type BasicLoginType = "email" | "externalWallets";
|
|
@@ -101,8 +103,7 @@ export declare enum ModalView {
|
|
|
101
103
|
SignInWallet = "SIGN_IN_WALLET",
|
|
102
104
|
WalletConnect = "WALLET_CONNECT",
|
|
103
105
|
UnsupportChain = "UNSUPPORT_CHAIN",
|
|
104
|
-
SocialLogin = "SOCIAL_LOGIN"
|
|
105
|
-
MyDogeSocialLogin = "MYDOGE_SOCIAL_LOGIN"
|
|
106
|
+
SocialLogin = "SOCIAL_LOGIN"
|
|
106
107
|
}
|
|
107
108
|
|
|
108
109
|
/**
|
|
@@ -137,6 +138,7 @@ export declare type SwitchChainOptions = {
|
|
|
137
138
|
export declare type ThemeConfig = ThemeConfig_2;
|
|
138
139
|
|
|
139
140
|
declare type ThemeConfig_2 = {
|
|
141
|
+
prefix?: string;
|
|
140
142
|
layout?: LayoutTheme;
|
|
141
143
|
themes?: ConfigThemes;
|
|
142
144
|
defaultTheme?: DefaultThemeType;
|
|
@@ -243,7 +245,7 @@ export declare interface WalletConnectKitConfig {
|
|
|
243
245
|
* ```tsx
|
|
244
246
|
* import { WalletConnectProvider } from "@tomo-inc/wallet-connect-kit";
|
|
245
247
|
* const config: WalletConnectKitConfig = {
|
|
246
|
-
* defaultConnectChain: ChainTypeEnum.EVM,
|
|
248
|
+
* defaultConnectChain: ChainTypeEnum.EVM as ChainType,
|
|
247
249
|
* };
|
|
248
250
|
*/
|
|
249
251
|
defaultConnectChain?: ChainType;
|
|
@@ -287,15 +289,11 @@ export declare interface WalletConnectKitConfig {
|
|
|
287
289
|
* Based on standard Connector from wallet-adaptor-base
|
|
288
290
|
*/
|
|
289
291
|
export declare type WalletConnector = Connector & {
|
|
292
|
+
providers?: any;
|
|
290
293
|
isEmbeddedWallet?: boolean;
|
|
291
294
|
logout?: () => Promise<boolean>;
|
|
292
295
|
};
|
|
293
296
|
|
|
294
|
-
/**
|
|
295
|
-
* Thin wrapper: only derives config and renders QueryClientProvider > Content.
|
|
296
|
-
* All wallet/context state and useEmbeddedWalletInternal (useQuery) run inside Content,
|
|
297
|
-
* so they are under QueryClientProvider and WalletConnectContext.Provider.
|
|
298
|
-
*/
|
|
299
297
|
export declare const WalletConnectProvider: ({ children, config }: WalletConnectProviderProps) => JSX_2.Element | null;
|
|
300
298
|
|
|
301
299
|
declare interface WalletConnectProviderProps {
|
|
@@ -303,36 +301,8 @@ declare interface WalletConnectProviderProps {
|
|
|
303
301
|
config?: WalletConnectKitConfig;
|
|
304
302
|
}
|
|
305
303
|
|
|
306
|
-
export {
|
|
304
|
+
export { WalletInfo }
|
|
307
305
|
|
|
308
|
-
|
|
309
|
-
* Wallet metadata information (business layer)
|
|
310
|
-
* Contains wallet display information like name, icon, links, etc.
|
|
311
|
-
* This is different from WalletProviderType (actual provider implementation)
|
|
312
|
-
*/
|
|
313
|
-
declare interface WalletProvider_2 {
|
|
314
|
-
uuid: string;
|
|
315
|
-
name: string;
|
|
316
|
-
namespace?: string;
|
|
317
|
-
icon: string;
|
|
318
|
-
iconBackground?: string;
|
|
319
|
-
rdns?: string;
|
|
320
|
-
links: {
|
|
321
|
-
homepage?: string;
|
|
322
|
-
ios_install?: string;
|
|
323
|
-
android_install?: string;
|
|
324
|
-
chrome_install?: string;
|
|
325
|
-
mobile?: string;
|
|
326
|
-
qrCode?: string;
|
|
327
|
-
edge?: string;
|
|
328
|
-
firefox?: string;
|
|
329
|
-
opera?: string;
|
|
330
|
-
safari?: string;
|
|
331
|
-
macos?: string;
|
|
332
|
-
windows?: string;
|
|
333
|
-
linux?: string;
|
|
334
|
-
desktop?: string;
|
|
335
|
-
};
|
|
336
|
-
}
|
|
306
|
+
export { WalletProvider }
|
|
337
307
|
|
|
338
308
|
export { }
|