@getalby/lightning-wallet-connect
Advanced tools
Comparing version 1.0.4 to 1.0.5
import { TemplateResult } from 'lit'; | ||
import { LwcElement } from '../lwc-element'; | ||
import { ConnectorType } from '../../connectors'; | ||
import { ConnectorType } from '../../types/ConnectorType'; | ||
declare const LwcConnector_base: (new (...args: any[]) => { | ||
@@ -5,0 +5,0 @@ readonly tw: import("@twind/core").Twind<any, CSSStyleSheet>; |
@@ -324,2 +324,4 @@ import { LwcElement } from './lwc-element'; | ||
constructor(); | ||
connectedCallback(): void; | ||
disconnectedCallback(): void; | ||
render(): import("lit-html").TemplateResult<1>; | ||
@@ -326,0 +328,0 @@ private _handleDisconnect; |
@@ -8,3 +8,2 @@ import { ExtensionConnector } from './ExtensionConnector'; | ||
}; | ||
export declare type ConnectorType = keyof typeof connectors; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import { ConnectorType } from '../connectors'; | ||
import { ConnectorType } from './ConnectorType'; | ||
export declare type ConnectorConfig = { | ||
@@ -3,0 +3,0 @@ connectorType: ConnectorType; |
@@ -1,2 +0,2 @@ | ||
export declare function dispatchLwcEvent(type: 'lwc:connected' | 'lwc:modalclosed'): void; | ||
export declare function dispatchLwcEvent(type: 'lwc:connected' | 'lwc:connecting' | 'lwc:disconnected' | 'lwc:modalopened' | 'lwc:modalclosed'): void; | ||
//# sourceMappingURL=dispatchLwcEvent.d.ts.map |
{ | ||
"name": "@getalby/lightning-wallet-connect", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Web components to connect to a lightning wallet and power a website with WebLN", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -20,3 +20,3 @@ # Lightning Wallet Connect | ||
``` | ||
<script src="https://cdn.jsdelivr.net/npm/@getalby/lightning-wallet-connect@1.0.0/dist/index.browser.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@getalby/lightning-wallet-connect@1.0.5/dist/index.browser.js"></script> | ||
``` | ||
@@ -43,2 +43,5 @@ | ||
- `lwc:connected` window event which fires when a wallet is connected and window.webln is ready to use | ||
- `lwc:connecting` window event which fires when LWC is connecting to a wallet | ||
- `lwc:disconnected` window event which fires when user has disconnected from their wallet | ||
- `lwc:modalopened` window event which fires when Lightning Wallet Connect modal is opened | ||
- `lwc:modalclosed` window event which fires when Lightning Wallet Connect modal is closed | ||
@@ -50,2 +53,3 @@ | ||
- [Alby NWC](https://nwc.getalby.com) | ||
- [Generic NWC URL](https://github.com/nostr-protocol/nips/blob/master/47.md) | ||
@@ -60,3 +64,3 @@ ### Pure HTML | ||
<lwc-button></lwc-button> | ||
<script src="https://cdn.jsdelivr.net/npm/@getalby/lightning-wallet-connect@1.0.0/dist/index.browser.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@getalby/lightning-wallet-connect@1.0.5/dist/index.browser.js"></script> | ||
<script> | ||
@@ -63,0 +67,0 @@ window.addEventListener('lwc:connected', async () => { |
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 too big to display
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 too big to display
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 not supported yet
Sorry, the diff of this file is too big to display
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
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
1992387
67
17405
153