nostr-comments 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,5 @@
1
1
  import type { NostrEvent } from "nostr-tools";
2
+ import type { Signer } from "../signers/types";
2
3
  export interface Comment {
3
4
  event: NostrEvent;
4
5
  children: Comment[];
@@ -76,6 +77,8 @@ export interface NostrCommentsProps {
76
77
  editor?: string;
77
78
  loginModal?: string;
78
79
  };
80
+ /** External signer instance. When provided, the login modal will be skipped. */
81
+ signer?: Signer;
79
82
  enabledSigners?: ("nip07" | "bunker" | "temp")[];
80
83
  /** POW difficulty (number of leading zero bits). Requires more computation time but helps prevent spam. */
81
84
  pow?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nostr-comments",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "A Nostr-based web comment component using NIP-22 protocol",
5
5
  "type": "module",
6
6
  "main": "./dist/nostr-comments.cjs",