@walletconnect/modal
Advanced tools
Comparing version 2.6.2 to 2.7.0
@@ -1,2 +0,2 @@ | ||
import{W as e}from"./bundle-12cf7cc7.js";export{e as WalletConnectModal}; | ||
export { W as WalletConnectModal } from './bundle-6897c25a.js'; | ||
//# sourceMappingURL=bundle.js.map |
@@ -1,2 +0,24 @@ | ||
import{ModalCtrl as t,ThemeCtrl as o,ConfigCtrl as i,OptionsCtrl as n}from"@walletconnect/modal-core";class d{constructor(e){this.openModal=t.open,this.closeModal=t.close,this.subscribeModal=t.subscribe,this.setTheme=o.setThemeConfig,o.setThemeConfig(e),i.setConfig(e),this.initUi()}async initUi(){if(typeof window<"u"){await import("@walletconnect/modal-ui");const e=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",e),n.setIsUiLoaded(!0)}}}export{d as WalletConnectModal}; | ||
import { ModalCtrl, ThemeCtrl, ConfigCtrl, OptionsCtrl } from '@walletconnect/modal-core'; | ||
class WalletConnectModal { | ||
constructor(config) { | ||
this.openModal = ModalCtrl.open; | ||
this.closeModal = ModalCtrl.close; | ||
this.subscribeModal = ModalCtrl.subscribe; | ||
this.setTheme = ThemeCtrl.setThemeConfig; | ||
ThemeCtrl.setThemeConfig(config); | ||
ConfigCtrl.setConfig(config); | ||
this.initUi(); | ||
} | ||
async initUi() { | ||
if (typeof window !== "undefined") { | ||
await import('@walletconnect/modal-ui'); | ||
const modal = document.createElement("wcm-modal"); | ||
document.body.insertAdjacentElement("beforeend", modal); | ||
OptionsCtrl.setIsUiLoaded(true); | ||
} | ||
} | ||
} | ||
export { WalletConnectModal }; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@walletconnect/modal", | ||
"version": "2.6.2", | ||
"version": "2.7.0", | ||
"main": "dist/index.js", | ||
@@ -21,4 +21,4 @@ "unpkg": "dist/cdn/bundle.js", | ||
"dependencies": { | ||
"@walletconnect/modal-core": "2.6.2", | ||
"@walletconnect/modal-ui": "2.6.2" | ||
"@walletconnect/modal-core": "2.7.0", | ||
"@walletconnect/modal-ui": "2.7.0" | ||
}, | ||
@@ -25,0 +25,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
861913
6506
+ Added@walletconnect/modal-core@2.7.0(transitive)
+ Added@walletconnect/modal-ui@2.7.0(transitive)
- Removed@walletconnect/modal-core@2.6.2(transitive)
- Removed@walletconnect/modal-ui@2.6.2(transitive)