Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@web3modal/react

Package Overview
Dependencies
Maintainers
4
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web3modal/react - npm Package Compare versions

Comparing version 2.0.0-c2564bd to 2.0.0-d873f5c

dist/_types/src/hooks/useWeb3ModalTheme.d.ts

1

dist/_types/index.d.ts

@@ -6,1 +6,2 @@ export { AccountButton } from './src/components/AccountButton';

export { useWeb3Modal } from './src/hooks/useWeb3Modal';
export { useWeb3ModalTheme } from './src/hooks/useWeb3ModalTheme';

4

dist/_types/src/components/Web3Modal.d.ts
/// <reference types="react" />
import type { ConfigOptions } from '@web3modal/core';
import type { ConfigCtrlState } from '@web3modal/core';
import type { EthereumClient } from '@web3modal/ethereum';

@@ -7,3 +7,3 @@ /**

*/
interface Props extends ConfigOptions {
interface Props extends ConfigCtrlState {
ethereumClient?: EthereumClient;

@@ -10,0 +10,0 @@ }

@@ -1,2 +0,2 @@

import a,{useCallback as w,useEffect as j,useState as $}from"react";import{ConfigCtrl as P,ClientCtrl as g,ModalCtrl as n}from"@web3modal/core";var E=Object.defineProperty,c=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable,p=(t,r,e)=>r in t?E(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,h=(t,r)=>{for(var e in r||(r={}))d.call(r,e)&&p(t,e,r[e]);if(c)for(var e of c(r))C.call(r,e)&&p(t,e,r[e]);return t};function V(t){return a.createElement("w3m-account-button",h({},t))}var S=Object.defineProperty,u=Object.getOwnPropertySymbols,I=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable,b=(t,r,e)=>r in t?S(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,x=(t,r)=>{for(var e in r||(r={}))I.call(r,e)&&b(t,e,r[e]);if(u)for(var e of u(r))M.call(r,e)&&b(t,e,r[e]);return t};function X(t){return a.createElement("w3m-connect-button",x({},t))}var B=Object.defineProperty,i=Object.getOwnPropertySymbols,W=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,f=(t,r,e)=>r in t?B(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,A=(t,r)=>{for(var e in r||(r={}))W.call(r,e)&&f(t,e,r[e]);if(i)for(var e of i(r))k.call(r,e)&&f(t,e,r[e]);return t};function Y(t){return a.createElement("w3m-core-button",A({},t))}var q=Object.defineProperty,v=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable,y=(t,r,e)=>r in t?q(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,F=(t,r)=>{for(var e in r||(r={}))z.call(r,e)&&y(t,e,r[e]);if(v)for(var e of v(r))D.call(r,e)&&y(t,e,r[e]);return t};function G(t){return a.createElement("w3m-modal",F({},t))}var O=Object.getOwnPropertySymbols,H=Object.prototype.hasOwnProperty,J=Object.prototype.propertyIsEnumerable,K=(t,r)=>{var e={};for(var o in t)H.call(t,o)&&r.indexOf(o)<0&&(e[o]=t[o]);if(t!=null&&O)for(var o of O(t))r.indexOf(o)<0&&J.call(t,o)&&(e[o]=t[o]);return e};function Z(t){var r=t,{ethereumClient:e}=r,o=K(r,["ethereumClient"]);const l=w(async()=>{P.setConfig(o),e&&g.setEthereumClient(e),await import("@web3modal/ui")},[e,o]);return j(()=>{l()},[l]),a.createElement(G,null)}var L=Object.defineProperty,s=Object.getOwnPropertySymbols,N=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable,m=(t,r,e)=>r in t?L(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,R=(t,r)=>{for(var e in r||(r={}))N.call(r,e)&&m(t,e,r[e]);if(s)for(var e of s(r))Q.call(r,e)&&m(t,e,r[e]);return t};function _(){const[t,r]=$(n.state);return j(()=>{const e=n.subscribe(o=>r(R({},o)));return()=>{e()}},[]),{isOpen:t.open,open:n.open,close:n.close}}export{V as AccountButton,X as ConnectButton,Y as Web3Button,Z as Web3Modal,_ as useWeb3Modal};
import n,{useCallback as $,useEffect as c,useState as w}from"react";import{ConfigCtrl as a,ClientCtrl as d,ModalCtrl as l}from"@web3modal/core";var g=Object.defineProperty,b=Object.getOwnPropertySymbols,P=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable,p=(t,e,r)=>e in t?g(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,E=(t,e)=>{for(var r in e||(e={}))P.call(e,r)&&p(t,r,e[r]);if(b)for(var r of b(e))C.call(e,r)&&p(t,r,e[r]);return t};function V(t){return n.createElement("w3m-account-button",E({},t))}var M=Object.defineProperty,i=Object.getOwnPropertySymbols,B=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable,f=(t,e,r)=>e in t?M(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,I=(t,e)=>{for(var r in e||(e={}))B.call(e,r)&&f(t,r,e[r]);if(i)for(var r of i(e))S.call(e,r)&&f(t,r,e[r]);return t};function X(t){return n.createElement("w3m-connect-button",I({},t))}var k=Object.defineProperty,m=Object.getOwnPropertySymbols,W=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,s=(t,e,r)=>e in t?k(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,T=(t,e)=>{for(var r in e||(e={}))W.call(e,r)&&s(t,r,e[r]);if(m)for(var r of m(e))x.call(e,r)&&s(t,r,e[r]);return t};function Y(t){return n.createElement("w3m-core-button",T({},t))}var A=Object.defineProperty,v=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,y=(t,e,r)=>e in t?A(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,D=(t,e)=>{for(var r in e||(e={}))q.call(e,r)&&y(t,r,e[r]);if(v)for(var r of v(e))z.call(e,r)&&y(t,r,e[r]);return t};function F(t){return n.createElement("w3m-modal",D({},t))}var O=Object.getOwnPropertySymbols,G=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable,J=(t,e)=>{var r={};for(var o in t)G.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&O)for(var o of O(t))e.indexOf(o)<0&&H.call(t,o)&&(r[o]=t[o]);return r};function Z(t){var e=t,{ethereumClient:r}=e,o=J(e,["ethereumClient"]);const u=$(async()=>{a.setConfig(o),r&&d.setEthereumClient(r),await import("@web3modal/ui")},[r,o]);return c(()=>{u()},[u]),n.createElement(F,null)}var K=Object.defineProperty,h=Object.getOwnPropertySymbols,L=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable,j=(t,e,r)=>e in t?K(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Q=(t,e)=>{for(var r in e||(e={}))L.call(e,r)&&j(t,r,e[r]);if(h)for(var r of h(e))N.call(e,r)&&j(t,r,e[r]);return t};function _(){const[t,e]=w(l.state);return c(()=>{const r=l.subscribe(o=>e(Q({},o)));return()=>{r()}},[]),{isOpen:t.open,open:l.open,close:l.close}}function ee(){const[t,e]=w({themeMode:a.state.themeMode,themeColor:a.state.themeColor,themeBackground:a.state.themeBackground});return c(()=>{const r=a.subscribe(o=>e({themeMode:o.themeMode,themeColor:o.themeColor,themeBackground:o.themeBackground}));return()=>{r()}},[]),{theme:t,setTheme:a.setThemeConfig}}export{V as AccountButton,X as ConnectButton,Y as Web3Button,Z as Web3Modal,_ as useWeb3Modal,ee as useWeb3ModalTheme};
//# sourceMappingURL=index.js.map
{
"name": "@web3modal/react",
"version": "2.0.0-c2564bd",
"version": "2.0.0-d873f5c",
"main": "dist/index.js",

@@ -19,10 +19,10 @@ "type": "module",

"dependencies": {
"@web3modal/core": "2.0.0-c2564bd",
"@web3modal/ui": "2.0.0-c2564bd"
"@web3modal/core": "2.0.0-d873f5c",
"@web3modal/ui": "2.0.0-d873f5c"
},
"devDependencies": {
"@types/react": "18.0.25",
"@types/react-dom": "18.0.8",
"@web3modal/ethereum": "2.0.0-c2564bd",
"eslint-plugin-react": "7.31.10",
"@types/react-dom": "18.0.9",
"@web3modal/ethereum": "2.0.0-d873f5c",
"eslint-plugin-react": "7.31.11",
"eslint-plugin-react-hooks": "4.6.0",

@@ -29,0 +29,0 @@ "react": "18.2.0",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc