@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.
- package/dist/components/index.js +3 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +3 -1
- package/dist/components/index.mjs.map +1 -1
- package/dist/hooks/index.js +3 -1
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +3 -1
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/dist/utils/field-extraction.d.ts.map +1 -1
- package/dist/utils/index.js +3 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/index.mjs +3 -1
- package/dist/utils/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/components/index.js
CHANGED
|
@@ -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 =
|
|
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",
|