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.3.0 to 2.3.1

dist/_types/src/components/W3mQrCode.d.ts

1

dist/_types/index.d.ts

@@ -5,3 +5,4 @@ export { Web3Button } from './src/components/Web3Button';

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

1

dist/_types/src/components/Modal.d.ts

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

/// <reference types="react" />
import type { W3mModal } from '@web3modal/ui';

@@ -3,0 +2,0 @@ /**

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

/// <reference types="react" />
import type { W3mCoreButton } from '@web3modal/ui';

@@ -3,0 +2,0 @@ /**

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

/// <reference types="react" />
import type { W3mNetworkSwitch } from '@web3modal/ui';

@@ -3,0 +2,0 @@ /**

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

import i,{memo as $,useCallback as P,useEffect as c,useState as h}from"react";import{ThemeCtrl as a,ClientCtrl as g,ConfigCtrl as E,OptionsCtrl as d,ModalCtrl as o}from"@web3modal/core";var M=Object.defineProperty,s=Object.getOwnPropertySymbols,S=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable,p=(t,e,r)=>e in t?M(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,V=(t,e)=>{for(var r in e||(e={}))S.call(e,r)&&p(t,r,e[r]);if(s)for(var r of s(e))I.call(e,r)&&p(t,r,e[r]);return t};function _(t){return i.createElement("w3m-core-button",V({},t))}var W=Object.defineProperty,u=Object.getOwnPropertySymbols,T=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,f=(t,e,r)=>e in t?W(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,x=(t,e)=>{for(var r in e||(e={}))T.call(e,r)&&f(t,r,e[r]);if(u)for(var r of u(e))k.call(e,r)&&f(t,r,e[r]);return t};function D(t){return i.createElement("w3m-modal",x({},t))}var B=Object.defineProperty,L=Object.defineProperties,N=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,j=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable,m=(t,e,r)=>e in t?B(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,U=(t,e)=>{for(var r in e||(e={}))j.call(e,r)&&m(t,r,e[r]);if(l)for(var r of l(e))C.call(e,r)&&m(t,r,e[r]);return t},q=(t,e)=>L(t,N(e)),z=(t,e)=>{var r={};for(var n in t)j.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&l)for(var n of l(t))e.indexOf(n)<0&&C.call(t,n)&&(r[n]=t[n]);return r};function A(t){var e=t,{ethereumClient:r}=e,n=z(e,["ethereumClient"]);const b=P(async()=>{a.setThemeConfig(n),r&&g.setEthereumClient(r),E.setConfig(q(U({},n),{walletConnectVersion:r?.walletConnectVersion})),await import("@web3modal/ui"),d.setIsUiLoaded(!0)},[r,n]);return c(()=>{b()},[b]),i.createElement(D,null)}const ee=$(A);var F=Object.defineProperty,v=Object.getOwnPropertySymbols,G=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable,y=(t,e,r)=>e in t?F(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,J=(t,e)=>{for(var r in e||(e={}))G.call(e,r)&&y(t,r,e[r]);if(v)for(var r of v(e))H.call(e,r)&&y(t,r,e[r]);return t};function re(t){return i.createElement("w3m-network-switch",J({},t))}var K=Object.defineProperty,O=Object.getOwnPropertySymbols,Q=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,w=(t,e,r)=>e in t?K(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,X=(t,e)=>{for(var r in e||(e={}))Q.call(e,r)&&w(t,r,e[r]);if(O)for(var r of O(e))R.call(e,r)&&w(t,r,e[r]);return t};function te(){const[t,e]=h(o.state);return c(()=>{const r=o.subscribe(n=>e(X({},n)));return()=>{r()}},[]),{isOpen:t.open,open:o.open,close:o.close,setDefaultChain:d.setSelectedChain}}function ne(){const[t,e]=h({themeMode:a.state.themeMode,themeVariables:a.state.themeVariables});return c(()=>{const r=a.subscribe(n=>e({themeMode:n.themeMode,themeVariables:n.themeVariables}));return()=>{r()}},[]),{theme:t,setTheme:a.setThemeConfig}}export{_ as Web3Button,ee as Web3Modal,re as Web3NetworkSwitch,te as useWeb3Modal,ne as useWeb3ModalTheme};
import a,{memo as g,useCallback as E,useEffect as i,useState as j}from"react";import{ThemeCtrl as o,ClientCtrl as M,ConfigCtrl as S,OptionsCtrl as $,ModalCtrl as l}from"@web3modal/core";var I=Object.defineProperty,p=Object.getOwnPropertySymbols,W=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable,s=(t,e,r)=>e in t?I(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(p)for(var r of p(e))V.call(e,r)&&s(t,r,e[r]);return t};function oe(t){return a.createElement("w3m-core-button",T({},t))}var k=Object.defineProperty,u=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable,f=(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={}))x.call(e,r)&&f(t,r,e[r]);if(u)for(var r of u(e))D.call(e,r)&&f(t,r,e[r]);return t};function z(t){return a.createElement("w3m-modal",q({},t))}var B=Object.defineProperty,L=Object.defineProperties,N=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,C=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable,m=(t,e,r)=>e in t?B(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Q=(t,e)=>{for(var r in e||(e={}))C.call(e,r)&&m(t,r,e[r]);if(c)for(var r of c(e))P.call(e,r)&&m(t,r,e[r]);return t},U=(t,e)=>L(t,N(e)),A=(t,e)=>{var r={};for(var n in t)C.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&c)for(var n of c(t))e.indexOf(n)<0&&P.call(t,n)&&(r[n]=t[n]);return r};function F(t){var e=t,{ethereumClient:r}=e,n=A(e,["ethereumClient"]);const b=E(async()=>{o.setThemeConfig(n),r&&M.setEthereumClient(r),S.setConfig(U(Q({},n),{walletConnectVersion:r?.walletConnectVersion})),await import("@web3modal/ui"),$.setIsUiLoaded(!0)},[r,n]);return i(()=>{b()},[b]),a.createElement(z,null)}const le=g(F);var G=Object.defineProperty,v=Object.getOwnPropertySymbols,H=Object.prototype.hasOwnProperty,J=Object.prototype.propertyIsEnumerable,y=(t,e,r)=>e in t?G(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,K=(t,e)=>{for(var r in e||(e={}))H.call(e,r)&&y(t,r,e[r]);if(v)for(var r of v(e))J.call(e,r)&&y(t,r,e[r]);return t};function ce(t){return a.createElement("w3m-network-switch",K({},t))}var R=Object.defineProperty,O=Object.getOwnPropertySymbols,X=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,w=(t,e,r)=>e in t?R(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Z=(t,e)=>{for(var r in e||(e={}))X.call(e,r)&&w(t,r,e[r]);if(O)for(var r of O(e))Y.call(e,r)&&w(t,r,e[r]);return t};function ie(t){const{size:e}=t;return a.createElement("div",{style:{width:e,height:e}},a.createElement("w3m-qrcode",Z({},t)))}var _=Object.defineProperty,h=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,d=(t,e,r)=>e in t?_(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,te=(t,e)=>{for(var r in e||(e={}))ee.call(e,r)&&d(t,r,e[r]);if(h)for(var r of h(e))re.call(e,r)&&d(t,r,e[r]);return t};function be(){const[t,e]=j(l.state);return i(()=>{const r=l.subscribe(n=>e(te({},n)));return()=>{r()}},[]),{isOpen:t.open,open:l.open,close:l.close,setDefaultChain:$.setSelectedChain}}function pe(){const[t,e]=j({themeMode:o.state.themeMode,themeVariables:o.state.themeVariables});return i(()=>{const r=o.subscribe(n=>e({themeMode:n.themeMode,themeVariables:n.themeVariables}));return()=>{r()}},[]),{theme:t,setTheme:o.setThemeConfig}}export{ie as W3mQrCode,oe as Web3Button,le as Web3Modal,ce as Web3NetworkSwitch,be as useWeb3Modal,pe as useWeb3ModalTheme};
//# sourceMappingURL=index.js.map
{
"name": "@web3modal/react",
"version": "2.3.0",
"version": "2.3.1",
"main": "dist/index.js",

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

"dependencies": {
"@web3modal/core": "2.3.0",
"@web3modal/standalone": "2.3.0",
"@web3modal/ui": "2.3.0"
"@web3modal/core": "2.3.1",
"@web3modal/standalone": "2.3.1",
"@web3modal/ui": "2.3.1"
},
"devDependencies": {
"@types/react": "18.0.35",
"@types/react": "18.0.37",
"@types/react-dom": "18.0.11",
"@web3modal/ethereum": "2.3.0",
"@web3modal/ethereum": "2.3.1",
"eslint-plugin-react": "7.32.2",

@@ -29,0 +29,0 @@ "eslint-plugin-react-hooks": "4.6.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