@getalby/bitcoin-connect-react
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -6,2 +6,3 @@ import React from 'react'; | ||
export declare const Modal: React.FC<ModalProps>; | ||
export declare function launchModal(): void; | ||
export {}; |
export * from './components/Button'; | ||
export * from './components/Modal'; |
@@ -1,2 +0,2 @@ | ||
import n from"react";import"@getalby/bitcoin-connect";function e(e,o){n.useEffect(()=>o?(window.addEventListener(e,o),()=>{window.removeEventListener(e,o)}):()=>{},[])}const o=o=>(function(n){e("bc:connected",n.onConnect),e("bc:disconnected",n.onDisconnect),e("bc:connecting",n.onConnecting),e("bc:modalopened",n.onModalOpened),e("bc:modalclosed",n.onModalClosed)}(o),/*#__PURE__*/n.createElement("bc-button",null));export{o as Button}; | ||
import e from"react";import"@getalby/bitcoin-connect";function n(n,o){e.useEffect(()=>o?(window.addEventListener(n,o),()=>{window.removeEventListener(n,o)}):()=>{},[])}function o(e){n("bc:connected",e.onConnect),n("bc:disconnected",e.onDisconnect),n("bc:connecting",e.onConnecting),n("bc:modalopened",e.onModalOpened),n("bc:modalclosed",e.onModalClosed)}const t=n=>(o(n),/*#__PURE__*/e.createElement("bc-button",null)),c=n=>(o(n),/*#__PURE__*/e.createElement("bc-modal",null));function d(){const e=document.querySelector("bc-modal");if(!e)throw new Error("bc-modal does not exist in the dom. Did you render the Modal somewhere on this page?");e.setAttribute("open","true")}export{t as Button,c as Modal,d as launchModal}; | ||
//# sourceMappingURL=index.modern.js.map |
@@ -1,2 +0,2 @@ | ||
import n from"react";import"@getalby/bitcoin-connect";function e(e,o){n.useEffect(function(){return o?(window.addEventListener(e,o),function(){window.removeEventListener(e,o)}):function(){}},[])}var o=function(o){return function(n){e("bc:connected",n.onConnect),e("bc:disconnected",n.onDisconnect),e("bc:connecting",n.onConnecting),e("bc:modalopened",n.onModalOpened),e("bc:modalclosed",n.onModalClosed)}(o),/*#__PURE__*/n.createElement("bc-button",null)};export{o as Button}; | ||
import n from"react";import"@getalby/bitcoin-connect";function e(e,o){n.useEffect(function(){return o?(window.addEventListener(e,o),function(){window.removeEventListener(e,o)}):function(){}},[])}function o(n){e("bc:connected",n.onConnect),e("bc:disconnected",n.onDisconnect),e("bc:connecting",n.onConnecting),e("bc:modalopened",n.onModalOpened),e("bc:modalclosed",n.onModalClosed)}var t=function(e){return o(e),/*#__PURE__*/n.createElement("bc-button",null)},c=function(e){return o(e),/*#__PURE__*/n.createElement("bc-modal",null)};function r(){var n=document.querySelector("bc-modal");if(!n)throw new Error("bc-modal does not exist in the dom. Did you render the Modal somewhere on this page?");n.setAttribute("open","true")}export{t as Button,c as Modal,r as launchModal}; | ||
//# sourceMappingURL=index.module.js.map |
@@ -1,2 +0,2 @@ | ||
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react"),require("@getalby/bitcoin-connect")):"function"==typeof define&&define.amd?define(["exports","react","@getalby/bitcoin-connect"],e):e((n||self).bitcoinConnectReact={},n.React)}(this,function(n,e){function t(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}var o=/*#__PURE__*/t(e);function c(n,e){o.default.useEffect(function(){return e?(window.addEventListener(n,e),function(){window.removeEventListener(n,e)}):function(){}},[])}n.Button=function(n){return function(n){c("bc:connected",n.onConnect),c("bc:disconnected",n.onDisconnect),c("bc:connecting",n.onConnecting),c("bc:modalopened",n.onModalOpened),c("bc:modalclosed",n.onModalClosed)}(n),/*#__PURE__*/o.default.createElement("bc-button",null)}}); | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("react"),require("@getalby/bitcoin-connect")):"function"==typeof define&&define.amd?define(["exports","react","@getalby/bitcoin-connect"],n):n((e||self).bitcoinConnectReact={},e.React)}(this,function(e,n){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=/*#__PURE__*/t(n);function c(e,n){o.default.useEffect(function(){return n?(window.addEventListener(e,n),function(){window.removeEventListener(e,n)}):function(){}},[])}function i(e){c("bc:connected",e.onConnect),c("bc:disconnected",e.onDisconnect),c("bc:connecting",e.onConnecting),c("bc:modalopened",e.onModalOpened),c("bc:modalclosed",e.onModalClosed)}e.Button=function(e){return i(e),/*#__PURE__*/o.default.createElement("bc-button",null)},e.Modal=function(e){return i(e),/*#__PURE__*/o.default.createElement("bc-modal",null)},e.launchModal=function(){var e=document.querySelector("bc-modal");if(!e)throw new Error("bc-modal does not exist in the dom. Did you render the Modal somewhere on this page?");e.setAttribute("open","true")}}); | ||
//# sourceMappingURL=index.umd.js.map |
{ | ||
"name": "@getalby/bitcoin-connect-react", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"type": "module", | ||
@@ -24,3 +24,3 @@ "source": "src/index.ts", | ||
"dependencies": { | ||
"@getalby/bitcoin-connect": "^1.1.0" | ||
"@getalby/bitcoin-connect": "^1.2.0" | ||
}, | ||
@@ -27,0 +27,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 2 instances 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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 2 instances in 1 package
17667
16
45