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.2.1 to 2.2.2

1

dist/_types/index.d.ts
export { Web3Button } from './src/components/Web3Button';
export { Web3Modal } from './src/components/Web3Modal';
export type { Web3ModalProps } from './src/components/Web3Modal';
export { Web3NetworkSwitch } from './src/components/Web3NetworkSwitch';
export { useWeb3Modal } from './src/hooks/useWeb3Modal';
export { useWeb3ModalTheme } from './src/hooks/useWeb3ModalTheme';

4

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

@@ -7,3 +7,3 @@ import type { ConfigCtrlState, ThemeCtrlState } from '@web3modal/core';

*/
type Props = Omit<ConfigCtrlState, 'enableStandaloneMode' | 'standaloneChains' | 'walletConnectVersion'> & ThemeCtrlState & {
export type Web3ModalProps = Omit<ConfigCtrlState, 'enableStandaloneMode' | 'standaloneChains' | 'walletConnectVersion'> & ThemeCtrlState & {
ethereumClient?: EthereumClient;

@@ -14,4 +14,4 @@ };

*/
declare function CreateWeb3Modal({ ethereumClient, ...config }: Props): JSX.Element;
declare function CreateWeb3Modal({ ethereumClient, ...config }: Web3ModalProps): JSX.Element;
export declare const Web3Modal: React.MemoExoticComponent<typeof CreateWeb3Modal>;
export {};

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

import i,{memo as C,useCallback as P,useEffect as c,useState as w}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 T=Object.defineProperty,u=Object.getOwnPropertySymbols,W=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,f=(t,e,r)=>e in t?T(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,x=(t,e)=>{for(var r in e||(e={}))W.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,$=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))$.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&&$.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=C(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,h=(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)&&h(t,r,e[r]);if(O)for(var r of O(e))R.call(e,r)&&h(t,r,e[r]);return t};function te(){const[t,e]=w(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]=w({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 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};
//# sourceMappingURL=index.js.map
{
"name": "@web3modal/react",
"version": "2.2.1",
"version": "2.2.2",
"main": "dist/index.js",

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

"dependencies": {
"@web3modal/core": "2.2.1",
"@web3modal/standalone": "2.2.1",
"@web3modal/ui": "2.2.1"
"@web3modal/core": "2.2.2",
"@web3modal/standalone": "2.2.2",
"@web3modal/ui": "2.2.2"
},

@@ -27,3 +27,3 @@ "devDependencies": {

"@types/react-dom": "18.0.11",
"@web3modal/ethereum": "2.2.1",
"@web3modal/ethereum": "2.2.2",
"eslint-plugin-react": "7.32.2",

@@ -30,0 +30,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