@tomo-inc/wallet-connect-kit 0.0.5 → 0.0.6
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 +1 -1
- package/dist/index.d.ts +9 -12
- package/dist/index.js +3134 -2312
- package/dist/wallet-connect-kit.css +1 -1
- package/package.json +6 -5
package/README.md
CHANGED
|
@@ -131,7 +131,7 @@ export function AppWithConfig() {
|
|
|
131
131
|
- `WalletConnectProvider` - Main provider component with optional `config` prop
|
|
132
132
|
- `useWalletConnect` - Hook for modal control and connection state: `{ isOpenModal, openModal, closeModal, isConnected, isConnecting, error, connect, disconnect }`
|
|
133
133
|
- `useAccount` - Hook for account info and actions: `{ address, balance, chainType, chainId, currentWallet, currentProvider, switchChain, signMessage, signInWithWallet }`
|
|
134
|
-
- Types: `
|
|
134
|
+
- Types: `WalletConnectKitConfig`, `Chain`, `WalletProvider`, `UseAccount`, `UseWalletConnect`, `ChainType`, `ModalView`
|
|
135
135
|
- Views: `MyDogeSocialLoginView` - Custom MyDoge-styled social login view with Twitter, Google login and email support
|
|
136
136
|
|
|
137
137
|
### WalletConnectProvider Config
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { AdaptorChainType } from '@tomo-inc/wallet-adaptor-base';
|
|
2
2
|
import { Chain as Chain_2 } from 'viem/chains';
|
|
3
3
|
import { Connector } from '@tomo-inc/wallet-adaptor-base';
|
|
4
|
-
import { InitConfig } from '@tomo-inc/embedded-wallet-providers';
|
|
5
4
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
6
5
|
import { SignInParams } from '@tomo-inc/wallet-adaptor-base';
|
|
7
6
|
import { WalletConfig } from '@tomo-inc/wallet-adaptor-base';
|
|
8
|
-
import { WalletConnectConfig
|
|
7
|
+
import { WalletConnectConfig } from '@tomo-inc/wallet-connect-protocol';
|
|
9
8
|
|
|
10
9
|
export declare type Chain = {
|
|
11
10
|
id: number;
|
|
@@ -155,15 +154,6 @@ export declare const useWalletConnect: () => {
|
|
|
155
154
|
disconnect: () => Promise<void>;
|
|
156
155
|
};
|
|
157
156
|
|
|
158
|
-
export declare interface WalletConnectConfig {
|
|
159
|
-
connectors?: WalletConfig[];
|
|
160
|
-
chains?: Partial<Record<ChainType, EvmChain[] | any[]>>;
|
|
161
|
-
walletConnectConfig?: WalletConnectConfig_2;
|
|
162
|
-
embeddedWalletConfig?: InitConfig;
|
|
163
|
-
prodType?: ProdTypeEnum;
|
|
164
|
-
themeMode?: "light" | "dark";
|
|
165
|
-
}
|
|
166
|
-
|
|
167
157
|
/**
|
|
168
158
|
* Embedded wallet connect component that renders the modal content with proper context
|
|
169
159
|
* Uses a hidden Modal wrapper to provide required Modal context for UI components
|
|
@@ -186,11 +176,18 @@ declare interface WalletConnectEmbedProps {
|
|
|
186
176
|
style?: React.CSSProperties;
|
|
187
177
|
}
|
|
188
178
|
|
|
179
|
+
export declare interface WalletConnectKitConfig {
|
|
180
|
+
connectors?: WalletConfig[];
|
|
181
|
+
chains?: Partial<Record<ChainType, EvmChain[] | any[]>>;
|
|
182
|
+
walletConnectConfig?: WalletConnectConfig;
|
|
183
|
+
clientId?: string;
|
|
184
|
+
}
|
|
185
|
+
|
|
189
186
|
export declare const WalletConnectProvider: ({ children, config }: WalletConnectProviderProps) => JSX_2.Element;
|
|
190
187
|
|
|
191
188
|
declare interface WalletConnectProviderProps {
|
|
192
189
|
children: React.ReactNode;
|
|
193
|
-
config?:
|
|
190
|
+
config?: WalletConnectKitConfig;
|
|
194
191
|
}
|
|
195
192
|
|
|
196
193
|
export declare interface WalletProvider {
|