@getalby/bitcoin-connect-react
Advanced tools
Comparing version 2.4.3 to 3.0.0-beta.1
export * from './components/Button'; | ||
export * from './components/Modal'; | ||
import { closeModal, disconnect, isConnected, launchModal } from '@getalby/bitcoin-connect'; | ||
export { launchModal, closeModal, disconnect, isConnected }; | ||
export * from './components/Connect'; | ||
export * from './components/SendPayment'; | ||
export { init, closeModal, disconnect, isConnected, launchModal, requestProvider, onConnected, onConnecting, onDisconnected, onModalOpened, onModalClosed, } from '@getalby/bitcoin-connect'; |
@@ -1,2 +0,2 @@ | ||
import e from"react";export{closeModal,disconnect,isConnected,launchModal}from"@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 c=n=>(o(n),/*#__PURE__*/e.createElement("bc-button",{"app-name":n.appName,filters:n.filters})),t=n=>(o(n),/*#__PURE__*/e.createElement("bc-modal",{"app-name":n.appName,filters:n.filters}));export{c as Button,t as Modal}; | ||
import n from"react";import{onConnected as e,onConnecting as o,onDisconnected as t,onModalOpened as c,onModalClosed as r}from"@getalby/bitcoin-connect";export{closeModal,disconnect,init,isConnected,launchModal,onConnected,onConnecting,onDisconnected,onModalClosed,onModalOpened,requestProvider}from"@getalby/bitcoin-connect";function i(i){n.useEffect(()=>{if(i.onConnected){const n=e(i.onConnected);return()=>{n()}}return()=>{}},[]),n.useEffect(()=>{if(i.onConnecting){const n=o(i.onConnecting);return()=>{n()}}return()=>{}},[]),n.useEffect(()=>{if(i.onDisconnected){const n=t(i.onDisconnected);return()=>{n()}}return()=>{}},[]),n.useEffect(()=>{if(i.onModalOpened){const n=c(i.onModalOpened);return()=>{n()}}return()=>{}},[]),n.useEffect(()=>{if(i.onModalClosed){const n=r(i.onModalClosed);return()=>{n()}}return()=>{}},[])}const d=e=>(i(e),/*#__PURE__*/n.createElement("bc-button",null)),l=e=>(i(e),/*#__PURE__*/n.createElement("bc-connect-flow",null)),s=e=>(i(e),/*#__PURE__*/n.createElement("bc-send-payment-flow",{invoice:e.invoice}));export{d as Button,l as Connect,s as SendPayment}; | ||
//# sourceMappingURL=index.modern.js.map |
@@ -1,2 +0,2 @@ | ||
import n from"react";export{closeModal,disconnect,isConnected,launchModal}from"@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",{"app-name":e.appName,filters:e.filters})},c=function(e){return o(e),/*#__PURE__*/n.createElement("bc-modal",{"app-name":e.appName,filters:e.filters})};export{t as Button,c as Modal}; | ||
import n from"react";import{onConnected as e,onConnecting as o,onDisconnected as t,onModalOpened as c,onModalClosed as r}from"@getalby/bitcoin-connect";export{closeModal,disconnect,init,isConnected,launchModal,onConnected,onConnecting,onDisconnected,onModalClosed,onModalOpened,requestProvider}from"@getalby/bitcoin-connect";function i(i){n.useEffect(function(){if(i.onConnected){var n=e(i.onConnected);return function(){n()}}return function(){}},[]),n.useEffect(function(){if(i.onConnecting){var n=o(i.onConnecting);return function(){n()}}return function(){}},[]),n.useEffect(function(){if(i.onDisconnected){var n=t(i.onDisconnected);return function(){n()}}return function(){}},[]),n.useEffect(function(){if(i.onModalOpened){var n=c(i.onModalOpened);return function(){n()}}return function(){}},[]),n.useEffect(function(){if(i.onModalClosed){var n=r(i.onModalClosed);return function(){n()}}return function(){}},[])}var u=function(e){return i(e),/*#__PURE__*/n.createElement("bc-button",null)},f=function(e){return i(e),/*#__PURE__*/n.createElement("bc-connect-flow",null)},d=function(e){return i(e),/*#__PURE__*/n.createElement("bc-send-payment-flow",{invoice:e.invoice})};export{u as Button,f as Connect,d as SendPayment}; | ||
//# sourceMappingURL=index.module.js.map |
@@ -1,2 +0,2 @@ | ||
!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,e.bitcoinConnect)}(this,function(e,n,t){function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=/*#__PURE__*/o(n);function i(e,n){c.default.useEffect(function(){return n?(window.addEventListener(e,n),function(){window.removeEventListener(e,n)}):function(){}},[])}function r(e){i("bc:connected",e.onConnect),i("bc:disconnected",e.onDisconnect),i("bc:connecting",e.onConnecting),i("bc:modalopened",e.onModalOpened),i("bc:modalclosed",e.onModalClosed)}Object.defineProperty(e,"closeModal",{enumerable:!0,get:function(){return t.closeModal}}),Object.defineProperty(e,"disconnect",{enumerable:!0,get:function(){return t.disconnect}}),Object.defineProperty(e,"isConnected",{enumerable:!0,get:function(){return t.isConnected}}),Object.defineProperty(e,"launchModal",{enumerable:!0,get:function(){return t.launchModal}}),e.Button=function(e){return r(e),/*#__PURE__*/c.default.createElement("bc-button",{"app-name":e.appName,filters:e.filters})},e.Modal=function(e){return r(e),/*#__PURE__*/c.default.createElement("bc-modal",{"app-name":e.appName,filters:e.filters})}}); | ||
!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,e.bitcoinConnect)}(this,function(e,n,t){function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=/*#__PURE__*/o(n);function r(e){c.default.useEffect(function(){if(e.onConnected){var n=t.onConnected(e.onConnected);return function(){n()}}return function(){}},[]),c.default.useEffect(function(){if(e.onConnecting){var n=t.onConnecting(e.onConnecting);return function(){n()}}return function(){}},[]),c.default.useEffect(function(){if(e.onDisconnected){var n=t.onDisconnected(e.onDisconnected);return function(){n()}}return function(){}},[]),c.default.useEffect(function(){if(e.onModalOpened){var n=t.onModalOpened(e.onModalOpened);return function(){n()}}return function(){}},[]),c.default.useEffect(function(){if(e.onModalClosed){var n=t.onModalClosed(e.onModalClosed);return function(){n()}}return function(){}},[])}Object.defineProperty(e,"closeModal",{enumerable:!0,get:function(){return t.closeModal}}),Object.defineProperty(e,"disconnect",{enumerable:!0,get:function(){return t.disconnect}}),Object.defineProperty(e,"init",{enumerable:!0,get:function(){return t.init}}),Object.defineProperty(e,"isConnected",{enumerable:!0,get:function(){return t.isConnected}}),Object.defineProperty(e,"launchModal",{enumerable:!0,get:function(){return t.launchModal}}),Object.defineProperty(e,"onConnected",{enumerable:!0,get:function(){return t.onConnected}}),Object.defineProperty(e,"onConnecting",{enumerable:!0,get:function(){return t.onConnecting}}),Object.defineProperty(e,"onDisconnected",{enumerable:!0,get:function(){return t.onDisconnected}}),Object.defineProperty(e,"onModalClosed",{enumerable:!0,get:function(){return t.onModalClosed}}),Object.defineProperty(e,"onModalOpened",{enumerable:!0,get:function(){return t.onModalOpened}}),Object.defineProperty(e,"requestProvider",{enumerable:!0,get:function(){return t.requestProvider}}),e.Button=function(e){return r(e),/*#__PURE__*/c.default.createElement("bc-button",null)},e.Connect=function(e){return r(e),/*#__PURE__*/c.default.createElement("bc-connect-flow",null)},e.SendPayment=function(e){return r(e),/*#__PURE__*/c.default.createElement("bc-send-payment-flow",{invoice:e.invoice})}}); | ||
//# sourceMappingURL=index.umd.js.map |
@@ -0,9 +1,8 @@ | ||
import { WebLNProvider } from '@webbtc/webln-types'; | ||
export type ComponentProps = { | ||
onConnect?(): void; | ||
onConnected?(provider: WebLNProvider): void; | ||
onConnecting?(): void; | ||
onDisconnect?(): void; | ||
onDisconnected?(): void; | ||
onModalOpened?(): void; | ||
onModalClosed?(): void; | ||
appName?: string; | ||
filters?: string; | ||
}; |
{ | ||
"name": "@getalby/bitcoin-connect-react", | ||
"version": "2.4.3", | ||
"version": "3.0.0-beta.1", | ||
"type": "module", | ||
@@ -24,3 +24,3 @@ "source": "src/index.ts", | ||
"dependencies": { | ||
"@getalby/bitcoin-connect": "2.4.3" | ||
"@getalby/bitcoin-connect": "^3.0.0-beta.1" | ||
}, | ||
@@ -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 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
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 1 instance in 1 package
25442
18
75
4
+ Added@getalby/bitcoin-connect@3.6.2(transitive)
+ Added@getalby/lightning-tools@5.1.0(transitive)
+ Added@getalby/sdk@3.7.1(transitive)
+ Added@lightninglabs/lnc-core@0.3.1-alpha(transitive)
+ Added@lightninglabs/lnc-web@0.3.1-alpha(transitive)
+ Addedeventemitter3@5.0.1(transitive)
- Removed@getalby/bitcoin-connect@2.4.3(transitive)
- Removed@getalby/lightning-tools@4.2.1(transitive)
- Removed@getalby/sdk@2.7.0(transitive)
- Removed@lightninglabs/lnc-core@0.2.6-alpha(transitive)
- Removed@lightninglabs/lnc-web@0.2.6-alpha(transitive)
- Removedcrypto-js@4.1.1(transitive)
- Removedevents@3.3.0(transitive)
- Removedlight-bolt11-decoder@3.2.0(transitive)