@rhinestone/deposit-modal 0.1.67 → 0.1.69

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.
@@ -78,6 +78,15 @@ function ReownWalletProvider({
78
78
  const config = adapter.wagmiConfig;
79
79
  return /* @__PURE__ */ jsx(WagmiProvider, { config, children: /* @__PURE__ */ jsx(QueryClientProvider, { client: queryClient, children }) });
80
80
  }
81
+ async function disconnectWallet() {
82
+ if (!modal) {
83
+ console.warn(
84
+ "[rhinestone] disconnectWallet called before the modal provider mounted; no-op."
85
+ );
86
+ return;
87
+ }
88
+ await modal.disconnect();
89
+ }
81
90
  function useReownWallet() {
82
91
  const { open } = useAppKit();
83
92
  const { address, isConnected, caipAddress } = useAppKitAccount();
@@ -118,5 +127,6 @@ function useReownWallet() {
118
127
 
119
128
  export {
120
129
  ReownWalletProvider,
130
+ disconnectWallet,
121
131
  useReownWallet
122
132
  };