@getalby/bitcoin-connect
Advanced tools
Comparing version 3.1.0-beta.0 to 3.1.0-beta.1
@@ -12,2 +12,3 @@ import { PropertyValues } from 'lit'; | ||
preimage?: string; | ||
_waitingForInvoice: boolean; | ||
private _setPaid?; | ||
@@ -17,2 +18,3 @@ protected updated(changedProperties: PropertyValues): void; | ||
private _onClick; | ||
private _launchModal; | ||
} | ||
@@ -19,0 +21,0 @@ declare global { |
{ | ||
"name": "@getalby/bitcoin-connect", | ||
"version": "3.1.0-beta.0", | ||
"version": "3.1.0-beta.1", | ||
"description": "Web components to connect to a lightning wallet and power a website with WebLN", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -194,6 +194,7 @@ ![image](https://github.com/getAlby/bitcoin-connect/assets/33993199/a0eaf887-2ef1-4369-b6bf-7ef977ca2b67) | ||
- Arguments: | ||
- `invoice` - BOLT11 invoice | ||
- `invoice` - BOLT11 invoice. Modal will only open if an invoice is set | ||
- `title` - (optional) change the title of the button | ||
- `preimage` - (optional) set this if you received an external payment | ||
- - Events: | ||
- Events: | ||
- `click` - fires when the button is clicked. You can load an invoice here and set it on the button using `setAttribute('invoice', 'lnbc...')` which will then automatically launch the modal | ||
- `bc:onpaid` **Experimental** - fires event with WebLN payment response in `event.detail` (contains `preimage`) | ||
@@ -200,0 +201,0 @@ - `<bc-connect/>` - render connect wallet UI without modal |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
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
1976427
8994
584
47