@hubsync/esign-web-sdk 6.9.21 → 6.9.22
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/cjs/verdocs-sign.cjs.entry.js +14 -2
- package/dist/cjs/verdocs-sign.entry.cjs.js.map +1 -1
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +14 -2
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js.map +1 -1
- package/dist/components/verdocs-sign.js +14 -2
- package/dist/components/verdocs-sign.js.map +1 -1
- package/dist/esm/verdocs-sign.entry.js +14 -2
- package/dist/esm/verdocs-sign.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js.map +1 -1
- package/dist/verdocs-web-sdk/p-4a48c099.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-4a48c099.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-B8zpaHu-.system.js +1 -1
- package/dist/verdocs-web-sdk/p-BAkWhq53.system.js.map +1 -0
- package/dist/verdocs-web-sdk/p-e6659ac9.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-e6659ac9.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/verdocs-sign.entry.esm.js.map +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +1 -1
- package/dist/verdocs-web-sdk/p-0Ao5fjyr.system.js.map +0 -1
- package/dist/verdocs-web-sdk/p-89a371f7.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-89a371f7.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-f56dc0f1.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-f56dc0f1.system.entry.js.map +0 -1
|
@@ -501,7 +501,10 @@ const VerdocsSign = class {
|
|
|
501
501
|
console.log('[SIGN] Clearing initial');
|
|
502
502
|
this.initialId = null;
|
|
503
503
|
const updateResult = await jsSdk.updateEnvelopeField(this.endpoint, this.envelopeId, this.roleId, field.name, null, false);
|
|
504
|
-
|
|
504
|
+
this.updateRecipientFieldValue(field.name, updateResult);
|
|
505
|
+
if (field.required)
|
|
506
|
+
this.focusFieldElement(field);
|
|
507
|
+
return;
|
|
505
508
|
}
|
|
506
509
|
// If we already have an initials block, apply it
|
|
507
510
|
if (this.initialId) {
|
|
@@ -547,7 +550,10 @@ const VerdocsSign = class {
|
|
|
547
550
|
console.log('[SIGN] Clearing signature');
|
|
548
551
|
this.signatureId = null;
|
|
549
552
|
const updateResult = await jsSdk.updateEnvelopeField(this.endpoint, this.envelopeId, this.roleId, field.name, null, false);
|
|
550
|
-
|
|
553
|
+
this.updateRecipientFieldValue(field.name, updateResult);
|
|
554
|
+
if (field.required)
|
|
555
|
+
this.focusFieldElement(field);
|
|
556
|
+
return;
|
|
551
557
|
}
|
|
552
558
|
// If we already have a signature block, apply it
|
|
553
559
|
if (this.signatureId) {
|
|
@@ -708,6 +714,12 @@ const VerdocsSign = class {
|
|
|
708
714
|
}
|
|
709
715
|
}
|
|
710
716
|
isFieldActuallyFilled(field) {
|
|
717
|
+
var _a;
|
|
718
|
+
// The server keeps value="signed" even after a signature/initial is cleared;
|
|
719
|
+
// settings.signature_id is the authoritative indicator of whether it's actually signed.
|
|
720
|
+
if (field.type === 'signature' || field.type === 'initial') {
|
|
721
|
+
return !!((_a = field.settings) === null || _a === void 0 ? void 0 : _a.signature_id);
|
|
722
|
+
}
|
|
711
723
|
if (field.type === 'radio' && field.group) {
|
|
712
724
|
const groupFilled = this.getRecipientFields().some(f => f.group === field.group && f.value === 'true');
|
|
713
725
|
if (groupFilled) {
|