@tomo-inc/wallet-connect-kit 0.0.8 → 0.0.10
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/{features-animation-DUflHXKI.js → features-animation-DLXnQHle.js} +1 -1
- package/dist/index-D39_fEm6.js +18 -0
- package/dist/index-Dwb6hW_0.js +1423 -0
- package/dist/{index-Dh-ZdA1s.js → index-uFVMYMhE.js} +10150 -9354
- package/dist/index.d.ts +49 -6
- package/dist/index.js +4 -4
- package/dist/src-UW24ZMRV-DADgQ9F3.js +5 -0
- package/dist/wallet-connect-kit.css +1 -1
- package/package.json +4 -4
- package/dist/index-DfOTtRqa.js +0 -1423
- package/dist/index-b0Gb4Bv6.js +0 -18
- package/dist/src-UW24ZMRV-CSp2D5qB.js +0 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { AdaptorChainType } from '
|
|
1
|
+
import { AdaptorChainType } from '../../../wallet-adaptor-base';
|
|
2
2
|
import { Chain as Chain_2 } from 'viem/chains';
|
|
3
|
-
import { Connector } from '
|
|
3
|
+
import { Connector } from '../../../wallet-adaptor-base';
|
|
4
4
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
5
|
-
import { SignInParams } from '
|
|
6
|
-
import { WalletConfig } from '
|
|
7
|
-
|
|
5
|
+
import { SignInParams } from '../../../wallet-adaptor-base';
|
|
6
|
+
import { WalletConfig } from '../../../wallet-adaptor-base';
|
|
7
|
+
|
|
8
|
+
export declare type BasicLoginType = "email" | "externalWallets";
|
|
8
9
|
|
|
9
10
|
export declare type Chain = {
|
|
10
11
|
id: number;
|
|
@@ -94,11 +95,35 @@ export declare enum ProdTypeEnum {
|
|
|
94
95
|
|
|
95
96
|
export { SignInParams }
|
|
96
97
|
|
|
98
|
+
export declare interface SocialLoginProvider {
|
|
99
|
+
type: SocialLoginType;
|
|
100
|
+
clientId?: string;
|
|
101
|
+
[key: string]: any;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export declare type SocialLoginType = "google" | "x";
|
|
105
|
+
|
|
97
106
|
export declare type SwitchChainOptions = {
|
|
98
107
|
chainType: ChainType;
|
|
99
108
|
chainInfo: Chain;
|
|
100
109
|
};
|
|
101
110
|
|
|
111
|
+
export declare type ThemeConfig = {
|
|
112
|
+
prefix?: string;
|
|
113
|
+
themes?: {
|
|
114
|
+
light?: {
|
|
115
|
+
colors?: Record<string, any>;
|
|
116
|
+
[key: string]: any;
|
|
117
|
+
};
|
|
118
|
+
dark?: {
|
|
119
|
+
colors?: Record<string, any>;
|
|
120
|
+
[key: string]: any;
|
|
121
|
+
};
|
|
122
|
+
[key: string]: any;
|
|
123
|
+
};
|
|
124
|
+
[key: string]: any;
|
|
125
|
+
};
|
|
126
|
+
|
|
102
127
|
export declare type UseAccount = {
|
|
103
128
|
address: string;
|
|
104
129
|
balance?: string;
|
|
@@ -135,6 +160,11 @@ export declare const useAccount: () => UseAccount;
|
|
|
135
160
|
*/
|
|
136
161
|
export declare const useEmbeddedWallet: () => EmbeddedWalletState;
|
|
137
162
|
|
|
163
|
+
export declare interface UserLoginConfig {
|
|
164
|
+
basicLogins?: BasicLoginType[];
|
|
165
|
+
socialLogins?: SocialLoginProvider[];
|
|
166
|
+
}
|
|
167
|
+
|
|
138
168
|
export declare type UseWalletConnect = {
|
|
139
169
|
isOpenModal: boolean;
|
|
140
170
|
isConnected: boolean;
|
|
@@ -180,8 +210,21 @@ declare interface WalletConnectEmbedProps {
|
|
|
180
210
|
export declare interface WalletConnectKitConfig {
|
|
181
211
|
connectors?: WalletConfig[];
|
|
182
212
|
chains?: Partial<Record<ChainType, EvmChain[] | any[]>>;
|
|
183
|
-
|
|
213
|
+
walletConnectProjectId?: string;
|
|
214
|
+
metadata?: {
|
|
215
|
+
name: string;
|
|
216
|
+
description: string;
|
|
217
|
+
url: string;
|
|
218
|
+
icons: string[];
|
|
219
|
+
terms?: string;
|
|
220
|
+
privacyPolicy?: string;
|
|
221
|
+
};
|
|
184
222
|
clientId?: string;
|
|
223
|
+
theme?: ThemeConfig;
|
|
224
|
+
login?: UserLoginConfig;
|
|
225
|
+
links?: {
|
|
226
|
+
homepage?: string;
|
|
227
|
+
};
|
|
185
228
|
}
|
|
186
229
|
|
|
187
230
|
export declare const WalletConnectProvider: ({ children, config }: WalletConnectProviderProps) => JSX_2.Element | null;
|