@signiphi/pdf-signer 0.2.0-beta.23 → 0.2.0-beta.24

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.
@@ -1561,7 +1561,9 @@ async function extractVisibleFormFields(pdfBytes, currentSignerEmail) {
1561
1561
  placeholder: "Draw or upload your signature",
1562
1562
  assignedSignerEmail: currentSignerEmail
1563
1563
  });
1564
- const shouldCreateInitialsField = hasAnyInitialsFields;
1564
+ const shouldCreateInitialsField = currentSignerEmail ? visibleFields.some(
1565
+ (f) => f.type === "initials" /* INITIALS */ && (!f.assignedSignerEmail || f.assignedSignerEmail === currentSignerEmail || f.assignedSignerEmail === "to-recipients" || f.assignedSignerEmail === "additional-signers")
1566
+ ) : hasAnyInitialsFields;
1565
1567
  if (shouldCreateInitialsField) {
1566
1568
  mainFields.push({
1567
1569
  id: "initials_field_main",