edit-pdf 0.0.11 → 0.0.13

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
@@ -42,8 +42,8 @@ declare interface PdfEditorProps {
42
42
  signatureUrl?: string | null;
43
43
  /** Called when the user saves a newly drawn signature as PNG */
44
44
  onSaveSignature?: (png: Blob) => void;
45
- /** Called when the user deletes their saved signature */
46
- onClearSignature?: () => void;
45
+ /** Called when the user clicks Delete in the signature options modal */
46
+ onDeleteSignature?: () => void;
47
47
  }
48
48
 
49
49
  export declare type ShapeType = "rectangle" | "ellipse" | "circle" | "line" | "arrow";
@@ -31318,7 +31318,7 @@ function TN(s) {
31318
31318
  const VN = ({
31319
31319
  signatureUrl: s,
31320
31320
  onSaveSignature: t,
31321
- onClearSignature: l,
31321
+ onDeleteSignature: l,
31322
31322
  annotations: i,
31323
31323
  setAnnotations: e,
31324
31324
  generateId: c,
@@ -31605,7 +31605,7 @@ const zN = 6, Zd = 8, IN = 8, xN = ({
31605
31605
  onExportComplete: i,
31606
31606
  signatureUrl: e,
31607
31607
  onSaveSignature: c,
31608
- onClearSignature: d
31608
+ onDeleteSignature: d
31609
31609
  }) => {
31610
31610
  const n = qi(null), a = qi(/* @__PURE__ */ new Map()), Z = qi(/* @__PURE__ */ new Map()), h = qi(!1), [b, o] = Ot(null), [m, u] = Ot([]), [W, G] = Ot(!0), [r, Y] = Ot(null), [X, p] = Ot("none"), [y, M] = Ot(null), [T, I] = Ot(null), R = qi(null), S = qi(null), g = qi(!1), [k, F] = Ot("#000000"), [E, _] = Ot(3), [P, f] = Ot("#FFFF00"), [at, Wt] = Ot(2), [Jt, O] = Ot("#000000"), [ct, ot] = Ot(20), [pt, Qt] = Ot("rectangle"), [Rt, rt] = Ot("#1f2937"), [mt, Zl] = Ot("#fde68a"), [rl, gl] = Ot(3), [At, jl] = Ot(0), [si, ci] = Ot(0), [Yl, ll] = Ot(null), [Mt, Cl] = Ot(null), ri = qi(null), Kl = 1.5, Ol = () => `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`, Ei = (D, U, bt, $, Q, A) => D >= bt && D <= bt + Q && U >= $ && U <= $ + A, te = (D, U, bt, $, Q) => {
31611
31611
  const A = D - bt, K = U - $;
@@ -31700,7 +31700,7 @@ const zN = 6, Zd = 8, IN = 8, xN = ({
31700
31700
  } = VN({
31701
31701
  signatureUrl: e,
31702
31702
  onSaveSignature: c,
31703
- onClearSignature: d,
31703
+ onDeleteSignature: d,
31704
31704
  annotations: m,
31705
31705
  setAnnotations: u,
31706
31706
  generateId: Ol,