Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@getalby/bitcoin-connect-react

Package Overview
Dependencies
Maintainers
4
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@getalby/bitcoin-connect-react - npm Package Compare versions

Comparing version 3.0.0-beta.5 to 3.0.0-beta.6

2

dist/index.d.ts
export * from './components/Button';
export * from './components/Connect';
export * from './components/Payment';
export { init, closeModal, disconnect, isConnected, launchModal, requestProvider, onConnected, onConnecting, onDisconnected, onModalOpened, onModalClosed, } from '@getalby/bitcoin-connect';
export { init, closeModal, disconnect, isConnected, launchModal, launchPaymentModal, requestProvider, onConnected, onConnecting, onDisconnected, onModalOpened, onModalClosed, } from '@getalby/bitcoin-connect';

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

import n from"react";import{onConnected as e,onConnecting as t,onDisconnected as o,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=t(i.onConnecting);return()=>{n()}}return()=>{}},[]),n.useEffect(()=>{if(i.onDisconnected){const n=o(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)),s=e=>(i(e),/*#__PURE__*/n.createElement("bc-connect-flow",null));function a(){return a=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},a.apply(this,arguments)}const l=e=>{i(e);const{onPaid:t,payment:o}=e;return n.useEffect(()=>{const n=n=>{null==t||t(n.detail)};return window.addEventListener("bc:onpaid",n),o&&window.dispatchEvent(new CustomEvent("bc:onpaid",{detail:o})),()=>{window.removeEventListener("bc:onpaid",n)}},[t,o]),/*#__PURE__*/n.createElement("bc-send-payment-flow",a({invoice:e.invoice},o?{paid:!0}:{}))};export{d as Button,s as Connect,l as Payment};
import n from"react";import{onConnected as e,onConnecting as t,onDisconnected as o,onModalOpened as c,onModalClosed as r}from"@getalby/bitcoin-connect";export{closeModal,disconnect,init,isConnected,launchModal,launchPaymentModal,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=t(i.onConnecting);return()=>{n()}}return()=>{}},[]),n.useEffect(()=>{if(i.onDisconnected){const n=o(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)),a=e=>(i(e),/*#__PURE__*/n.createElement("bc-connect-flow",null));function s(){return s=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},s.apply(this,arguments)}const l=e=>{i(e);const{onPaid:t,payment:o}=e;return n.useEffect(()=>{const n=n=>{null==t||t(n.detail)};return window.addEventListener("bc:onpaid",n),o&&window.dispatchEvent(new CustomEvent("bc:onpaid",{detail:o})),()=>{window.removeEventListener("bc:onpaid",n)}},[t,o]),/*#__PURE__*/n.createElement("bc-send-payment-flow",s({invoice:e.invoice},o?{paid:!0}:{}))};export{d as Button,a as Connect,l as Payment};
//# sourceMappingURL=index.modern.js.map

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

import n from"react";import{onConnected as e,onConnecting as t,onDisconnected as o,onModalOpened as c,onModalClosed as i}from"@getalby/bitcoin-connect";export{closeModal,disconnect,init,isConnected,launchModal,onConnected,onConnecting,onDisconnected,onModalClosed,onModalOpened,requestProvider}from"@getalby/bitcoin-connect";function r(r){n.useEffect(function(){if(r.onConnected){var n=e(r.onConnected);return function(){n()}}return function(){}},[]),n.useEffect(function(){if(r.onConnecting){var n=t(r.onConnecting);return function(){n()}}return function(){}},[]),n.useEffect(function(){if(r.onDisconnected){var n=o(r.onDisconnected);return function(){n()}}return function(){}},[]),n.useEffect(function(){if(r.onModalOpened){var n=c(r.onModalOpened);return function(){n()}}return function(){}},[]),n.useEffect(function(){if(r.onModalClosed){var n=i(r.onModalClosed);return function(){n()}}return function(){}},[])}var u=function(e){return r(e),/*#__PURE__*/n.createElement("bc-button",null)},f=function(e){return r(e),/*#__PURE__*/n.createElement("bc-connect-flow",null)};function a(){return a=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},a.apply(this,arguments)}var d=function(e){r(e);var t=e.onPaid,o=e.payment;return n.useEffect(function(){var n=function(n){null==t||t(n.detail)};return window.addEventListener("bc:onpaid",n),o&&window.dispatchEvent(new CustomEvent("bc:onpaid",{detail:o})),function(){window.removeEventListener("bc:onpaid",n)}},[t,o]),/*#__PURE__*/n.createElement("bc-send-payment-flow",a({invoice:e.invoice},o?{paid:!0}:{}))};export{u as Button,f as Connect,d as Payment};
import n from"react";import{onConnected as e,onConnecting as t,onDisconnected as o,onModalOpened as c,onModalClosed as i}from"@getalby/bitcoin-connect";export{closeModal,disconnect,init,isConnected,launchModal,launchPaymentModal,onConnected,onConnecting,onDisconnected,onModalClosed,onModalOpened,requestProvider}from"@getalby/bitcoin-connect";function r(r){n.useEffect(function(){if(r.onConnected){var n=e(r.onConnected);return function(){n()}}return function(){}},[]),n.useEffect(function(){if(r.onConnecting){var n=t(r.onConnecting);return function(){n()}}return function(){}},[]),n.useEffect(function(){if(r.onDisconnected){var n=o(r.onDisconnected);return function(){n()}}return function(){}},[]),n.useEffect(function(){if(r.onModalOpened){var n=c(r.onModalOpened);return function(){n()}}return function(){}},[]),n.useEffect(function(){if(r.onModalClosed){var n=i(r.onModalClosed);return function(){n()}}return function(){}},[])}var u=function(e){return r(e),/*#__PURE__*/n.createElement("bc-button",null)},f=function(e){return r(e),/*#__PURE__*/n.createElement("bc-connect-flow",null)};function a(){return a=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},a.apply(this,arguments)}var d=function(e){r(e);var t=e.onPaid,o=e.payment;return n.useEffect(function(){var n=function(n){null==t||t(n.detail)};return window.addEventListener("bc:onpaid",n),o&&window.dispatchEvent(new CustomEvent("bc:onpaid",{detail:o})),function(){window.removeEventListener("bc:onpaid",n)}},[t,o]),/*#__PURE__*/n.createElement("bc-send-payment-flow",a({invoice:e.invoice},o?{paid:!0}:{}))};export{u as Button,f as Connect,d as Payment};
//# 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 r=/*#__PURE__*/o(n);function c(e){r.default.useEffect(function(){if(e.onConnected){var n=t.onConnected(e.onConnected);return function(){n()}}return function(){}},[]),r.default.useEffect(function(){if(e.onConnecting){var n=t.onConnecting(e.onConnecting);return function(){n()}}return function(){}},[]),r.default.useEffect(function(){if(e.onDisconnected){var n=t.onDisconnected(e.onDisconnected);return function(){n()}}return function(){}},[]),r.default.useEffect(function(){if(e.onModalOpened){var n=t.onModalOpened(e.onModalOpened);return function(){n()}}return function(){}},[]),r.default.useEffect(function(){if(e.onModalClosed){var n=t.onModalClosed(e.onModalClosed);return function(){n()}}return function(){}},[])}function i(){return i=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},i.apply(this,arguments)}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 c(e),/*#__PURE__*/r.default.createElement("bc-button",null)},e.Connect=function(e){return c(e),/*#__PURE__*/r.default.createElement("bc-connect-flow",null)},e.Payment=function(e){c(e);var n=e.onPaid,t=e.payment;return r.default.useEffect(function(){var e=function(e){null==n||n(e.detail)};return window.addEventListener("bc:onpaid",e),t&&window.dispatchEvent(new CustomEvent("bc:onpaid",{detail:t})),function(){window.removeEventListener("bc:onpaid",e)}},[n,t]),/*#__PURE__*/r.default.createElement("bc-send-payment-flow",i({invoice:e.invoice},t?{paid:!0}:{}))}});
!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 r=/*#__PURE__*/o(n);function c(e){r.default.useEffect(function(){if(e.onConnected){var n=t.onConnected(e.onConnected);return function(){n()}}return function(){}},[]),r.default.useEffect(function(){if(e.onConnecting){var n=t.onConnecting(e.onConnecting);return function(){n()}}return function(){}},[]),r.default.useEffect(function(){if(e.onDisconnected){var n=t.onDisconnected(e.onDisconnected);return function(){n()}}return function(){}},[]),r.default.useEffect(function(){if(e.onModalOpened){var n=t.onModalOpened(e.onModalOpened);return function(){n()}}return function(){}},[]),r.default.useEffect(function(){if(e.onModalClosed){var n=t.onModalClosed(e.onModalClosed);return function(){n()}}return function(){}},[])}function i(){return i=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},i.apply(this,arguments)}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,"launchPaymentModal",{enumerable:!0,get:function(){return t.launchPaymentModal}}),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 c(e),/*#__PURE__*/r.default.createElement("bc-button",null)},e.Connect=function(e){return c(e),/*#__PURE__*/r.default.createElement("bc-connect-flow",null)},e.Payment=function(e){c(e);var n=e.onPaid,t=e.payment;return r.default.useEffect(function(){var e=function(e){null==n||n(e.detail)};return window.addEventListener("bc:onpaid",e),t&&window.dispatchEvent(new CustomEvent("bc:onpaid",{detail:t})),function(){window.removeEventListener("bc:onpaid",e)}},[n,t]),/*#__PURE__*/r.default.createElement("bc-send-payment-flow",i({invoice:e.invoice},t?{paid:!0}:{}))}});
//# sourceMappingURL=index.umd.js.map
{
"name": "@getalby/bitcoin-connect-react",
"version": "3.0.0-beta.5",
"version": "3.0.0-beta.6",
"type": "module",

@@ -5,0 +5,0 @@ "source": "src/index.ts",

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

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