edit-pdf 0.0.18 → 0.0.20

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.
package/dist/index.d.ts CHANGED
@@ -54,10 +54,12 @@ export declare interface PdfEditorProps {
54
54
  onExportComplete?: () => void;
55
55
  /** URL (or data URL) of the user's saved signature image */
56
56
  signatureUrl?: string | null;
57
+ hasSavedSignature?: boolean;
57
58
  /** Called when the user saves a newly drawn signature as PNG */
58
- onSaveSignature?: (png: Blob) => void;
59
+ onSaveSignature?: (png: Blob, password: string) => void;
59
60
  /** Called when the user clicks Delete in the signature options modal */
60
- onDeleteSignature?: () => void;
61
+ onDeleteSignature?: (password: string) => void;
62
+ onUnlockSignature?: (password: string) => Promise<boolean>;
61
63
  /** Display name in the digital signature block below placed signatures */
62
64
  signerName?: string;
63
65
  /** Job title shown in the digital signature block */
@@ -66,7 +68,7 @@ export declare interface PdfEditorProps {
66
68
  signerDepartment?: string;
67
69
  /** SVG markup, data URL, or image URL for the digital signature status icon */
68
70
  signatureIconSvg?: string;
69
- /** Diagonal text watermark applied to every page (preview + export) */
71
+ /** Diagonal text watermark shown on every page in the editor preview only (not exported) */
70
72
  watermark?: WatermarkConfig;
71
73
  }
72
74