adapter-connect 1.0.1 → 1.0.2

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.mts CHANGED
@@ -1,9 +1,30 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import React from 'react';
2
+ import * as react from 'react';
3
+ import react__default from 'react';
4
+ import * as _privy_io_react_auth from '@privy-io/react-auth';
5
+ import * as wagmi_query from 'wagmi/query';
6
+ import * as wagmi from 'wagmi';
3
7
 
4
8
  declare function WhatWagmiProvider({ children, privyKey }: {
5
- children: React.ReactNode;
9
+ children: react__default.ReactNode;
6
10
  privyKey: string;
7
11
  }): react_jsx_runtime.JSX.Element;
8
12
 
9
- export { WhatWagmiProvider };
13
+ declare const useWalletConnect: () => {
14
+ address: `0x${string}` | undefined;
15
+ connectors: wagmi.Connector<wagmi.CreateConnectorFn>[];
16
+ connect: wagmi_query.ConnectMutate<wagmi.Config, unknown>;
17
+ login: (options?: _privy_io_react_auth.LoginModalOptions | react.MouseEvent<any, any>) => void;
18
+ authenticated: boolean;
19
+ user: _privy_io_react_auth.User | null;
20
+ logout: () => Promise<void>;
21
+ ready: boolean;
22
+ disconnect: () => Promise<void>;
23
+ isCorrectChain: boolean;
24
+ switchToArbitrum: () => Promise<void>;
25
+ chainId: number | undefined;
26
+ connectWallet: (options?: _privy_io_react_auth.ConnectWalletModalOptions | react.MouseEvent<any, any>) => void;
27
+ setActiveWallet: (walletAddress?: string) => Promise<void>;
28
+ };
29
+
30
+ export { WhatWagmiProvider, useWalletConnect };
package/dist/index.d.ts CHANGED
@@ -1,9 +1,30 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import React from 'react';
2
+ import * as react from 'react';
3
+ import react__default from 'react';
4
+ import * as _privy_io_react_auth from '@privy-io/react-auth';
5
+ import * as wagmi_query from 'wagmi/query';
6
+ import * as wagmi from 'wagmi';
3
7
 
4
8
  declare function WhatWagmiProvider({ children, privyKey }: {
5
- children: React.ReactNode;
9
+ children: react__default.ReactNode;
6
10
  privyKey: string;
7
11
  }): react_jsx_runtime.JSX.Element;
8
12
 
9
- export { WhatWagmiProvider };
13
+ declare const useWalletConnect: () => {
14
+ address: `0x${string}` | undefined;
15
+ connectors: wagmi.Connector<wagmi.CreateConnectorFn>[];
16
+ connect: wagmi_query.ConnectMutate<wagmi.Config, unknown>;
17
+ login: (options?: _privy_io_react_auth.LoginModalOptions | react.MouseEvent<any, any>) => void;
18
+ authenticated: boolean;
19
+ user: _privy_io_react_auth.User | null;
20
+ logout: () => Promise<void>;
21
+ ready: boolean;
22
+ disconnect: () => Promise<void>;
23
+ isCorrectChain: boolean;
24
+ switchToArbitrum: () => Promise<void>;
25
+ chainId: number | undefined;
26
+ connectWallet: (options?: _privy_io_react_auth.ConnectWalletModalOptions | react.MouseEvent<any, any>) => void;
27
+ setActiveWallet: (walletAddress?: string) => Promise<void>;
28
+ };
29
+
30
+ export { WhatWagmiProvider, useWalletConnect };
package/dist/index.js CHANGED
@@ -30,7 +30,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
30
30
  // index.tsx
31
31
  var index_exports = {};
32
32
  __export(index_exports, {
33
- WhatWagmiProvider: () => WhatWagmiProvider
33
+ WhatWagmiProvider: () => WhatWagmiProvider,
34
+ useWalletConnect: () => useWalletConnect
34
35
  });
35
36
  module.exports = __toCommonJS(index_exports);
36
37
 
@@ -693,5 +694,6 @@ function WhatWagmiProvider({
693
694
  }
694
695
  // Annotate the CommonJS export names for ESM import in node:
695
696
  0 && (module.exports = {
696
- WhatWagmiProvider
697
+ WhatWagmiProvider,
698
+ useWalletConnect
697
699
  });
package/dist/index.mjs CHANGED
@@ -656,5 +656,6 @@ function WhatWagmiProvider({
656
656
  );
657
657
  }
658
658
  export {
659
- WhatWagmiProvider
659
+ WhatWagmiProvider,
660
+ useWalletConnect
660
661
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adapter-connect",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",