@hubsync/esign-web-sdk 6.9.22 → 6.9.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.
Files changed (42) hide show
  1. package/dist/cjs/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-passcode-dialog.verdocs-signing-progress.verdocs-view.entry.cjs.js.map +1 -1
  2. package/dist/cjs/verdocs-adopt-signature-dialog_8.cjs.entry.js +11 -1
  3. package/dist/cjs/verdocs-sign.cjs.entry.js +4 -4
  4. package/dist/cjs/verdocs-sign.entry.cjs.js.map +1 -1
  5. package/dist/collection/components/dialogs/verdocs-signing-progress/verdocs-signing-progress.js +11 -1
  6. package/dist/collection/components/dialogs/verdocs-signing-progress/verdocs-signing-progress.js.map +1 -1
  7. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +4 -4
  8. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js.map +1 -1
  9. package/dist/components/{p-DO7oSTLI.js → p-DAj3-nII.js} +13 -3
  10. package/dist/components/p-DAj3-nII.js.map +1 -0
  11. package/dist/components/verdocs-sign.js +5 -5
  12. package/dist/components/verdocs-sign.js.map +1 -1
  13. package/dist/components/verdocs-signing-progress.js +1 -1
  14. package/dist/esm/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-passcode-dialog.verdocs-signing-progress.verdocs-view.entry.js.map +1 -1
  15. package/dist/esm/verdocs-adopt-signature-dialog_8.entry.js +11 -1
  16. package/dist/esm/verdocs-sign.entry.js +4 -4
  17. package/dist/esm/verdocs-sign.entry.js.map +1 -1
  18. package/dist/esm-es5/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-passcode-dialog.verdocs-signing-progress.verdocs-view.entry.js.map +1 -1
  19. package/dist/esm-es5/verdocs-adopt-signature-dialog_8.entry.js +1 -1
  20. package/dist/esm-es5/verdocs-adopt-signature-dialog_8.entry.js.map +1 -1
  21. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  22. package/dist/esm-es5/verdocs-sign.entry.js.map +1 -1
  23. package/dist/verdocs-web-sdk/{p-Dw4daWgN.system.js.map → p--ERssswi.system.js.map} +1 -1
  24. package/dist/verdocs-web-sdk/{p-e6659ac9.system.entry.js → p-3896764c.system.entry.js} +2 -2
  25. package/dist/verdocs-web-sdk/{p-e6659ac9.system.entry.js.map → p-3896764c.system.entry.js.map} +1 -1
  26. package/dist/verdocs-web-sdk/{p-67b09919.system.entry.js → p-4a408b0d.system.entry.js} +2 -2
  27. package/dist/verdocs-web-sdk/p-4a408b0d.system.entry.js.map +1 -0
  28. package/dist/verdocs-web-sdk/p-7365a0e7.entry.js +2 -0
  29. package/dist/verdocs-web-sdk/{p-4a48c099.entry.js.map → p-7365a0e7.entry.js.map} +1 -1
  30. package/dist/verdocs-web-sdk/p-B8zpaHu-.system.js +1 -1
  31. package/dist/verdocs-web-sdk/p-CWM0-2JJ.system.js.map +1 -0
  32. package/dist/verdocs-web-sdk/{p-dbffd9a8.entry.js → p-bb4ab10a.entry.js} +2 -2
  33. package/dist/verdocs-web-sdk/p-bb4ab10a.entry.js.map +1 -0
  34. package/dist/verdocs-web-sdk/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-passcode-dialog.verdocs-signing-progress.verdocs-view.entry.esm.js.map +1 -1
  35. package/dist/verdocs-web-sdk/verdocs-sign.entry.esm.js.map +1 -1
  36. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  37. package/package.json +1 -1
  38. package/dist/components/p-DO7oSTLI.js.map +0 -1
  39. package/dist/verdocs-web-sdk/p-4a48c099.entry.js +0 -2
  40. package/dist/verdocs-web-sdk/p-67b09919.system.entry.js.map +0 -1
  41. package/dist/verdocs-web-sdk/p-BAkWhq53.system.js.map +0 -1
  42. package/dist/verdocs-web-sdk/p-dbffd9a8.entry.js.map +0 -1
@@ -4489,7 +4489,17 @@ const VerdocsSigningProgress = class {
4489
4489
  if (this.mode === 'completed') {
4490
4490
  return this.renderCompleted();
4491
4491
  }
4492
- const isFilled = (f) => jsSdk.isFieldFilled(f, this.recipientFields) && (f.type !== 'dropdown' || !!f.value) && (f.type !== 'radio' || f.value === 'true') && (f.type !== 'checkbox' || f.value === 'true');
4492
+ const isFilled = (f) => {
4493
+ var _a;
4494
+ // The server keeps value="signed" even after a signature/initial is cleared, so
4495
+ // isFieldFilled (which looks at value) would still report it as filled. settings.signature_id
4496
+ // is the authoritative indicator and is nulled out on clear. This must match the parent's
4497
+ // isFieldActuallyFilled() in verdocs-sign so the progress panel and submit gating agree.
4498
+ if (f.type === 'signature' || f.type === 'initial') {
4499
+ return !!((_a = f.settings) === null || _a === void 0 ? void 0 : _a.signature_id);
4500
+ }
4501
+ return jsSdk.isFieldFilled(f, this.recipientFields) && (f.type !== 'dropdown' || !!f.value) && (f.type !== 'radio' || f.value === 'true') && (f.type !== 'checkbox' || f.value === 'true');
4502
+ };
4493
4503
  const requiredFields = this.fields.filter(f => f.required);
4494
4504
  const requiredRemaining = requiredFields.filter(f => !isFilled(f)).length;
4495
4505
  const optionalFields = this.fields.filter(f => !f.required);
@@ -247,7 +247,7 @@ const VerdocsSign = class {
247
247
  // TODO: Recipient "canceled"
248
248
  if (this.envelope.status === 'canceled') {
249
249
  this.fatalErrorHeader = 'Unable to Start Signing Session';
250
- this.fatalErrorMessage = 'This envelope has been canceled. The sender has been notified.';
250
+ this.fatalErrorMessage = 'This document has been canceled. The sender has been notified.';
251
251
  }
252
252
  else if (recipient.status === 'declined') {
253
253
  this.fatalErrorHeader = 'Declined';
@@ -1027,7 +1027,7 @@ const VerdocsSign = class {
1027
1027
  return (index.h(index.Host, { class: { agreed: false } }, index.h("div", { class: "fatal-error" }, index.h("div", { class: "message" }, index.h("div", { class: "header" }, "Delegated Signing Request"), index.h("p", null, "You have delegated signing to another recipient. You will not be able to sign this request again.")))));
1028
1028
  }
1029
1029
  if (this.isDone) {
1030
- return (index.h(index.Host, { class: { agreed: this.agreed } }, index.h("verdocs-view", { endpoint: this.endpoint, envelopeId: this.envelopeId, onSdkError: e => { var _a; return (_a = this.sdkError) === null || _a === void 0 ? void 0 : _a.emit(e.detail); } }), this.showDone && (index.h("verdocs-ok-dialog", { heading: "You're Done!", message: `You can access the ${this.documentsSingularPlural} at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the document and envelope certificate attached.`, hideCloseButton: true, onNext: (e) => {
1030
+ return (index.h(index.Host, { class: { agreed: this.agreed } }, index.h("verdocs-view", { endpoint: this.endpoint, envelopeId: this.envelopeId, onSdkError: e => { var _a; return (_a = this.sdkError) === null || _a === void 0 ? void 0 : _a.emit(e.detail); } }), this.showDone && (index.h("verdocs-ok-dialog", { heading: "You're Done!", message: `You can access the ${this.documentsSingularPlural} at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the completed document and certificate attached.`, hideCloseButton: true, onNext: (e) => {
1031
1031
  e.preventDefault();
1032
1032
  e.stopPropagation();
1033
1033
  this.showDone = false;
@@ -1050,7 +1050,7 @@ const VerdocsSign = class {
1050
1050
  } })));
1051
1051
  }
1052
1052
  if (this.declining) {
1053
- return (index.h(index.Host, { class: "agreed" }, index.h("div", { class: "document", style: { paddingTop: '15px' } }, index.h("img", { src: "https://public-assets.verdocs.com/loading-placeholder.png", style: { width: '612px', height: '792px', boxShadow: '0 0 10px 5px #0000000f', marginTop: '15px' }, alt: "Placeholder page" })), index.h("verdocs-ok-dialog", { heading: "Decline Signing Request", message: `If you decline to sign this request, you will not be able to sign again in the future. The envelope sender will be notified.`, buttonLabel: "OK", showCancel: true, onExit: () => (this.declining = false), onNext: () => {
1053
+ return (index.h(index.Host, { class: "agreed" }, index.h("div", { class: "document", style: { paddingTop: '15px' } }, index.h("img", { src: "https://public-assets.verdocs.com/loading-placeholder.png", style: { width: '612px', height: '792px', boxShadow: '0 0 10px 5px #0000000f', marginTop: '15px' }, alt: "Placeholder page" })), index.h("verdocs-ok-dialog", { heading: "Decline Signing Request", message: `If you decline to sign this request, you will not be able to sign again in the future. The sender of the document will be notified.`, buttonLabel: "OK", showCancel: true, onExit: () => (this.declining = false), onNext: () => {
1054
1054
  jsSdk.envelopeRecipientDecline(this.endpoint, this.envelopeId, this.roleId)
1055
1055
  .then(r => {
1056
1056
  console.log('[SIGN] Decline result', r);
@@ -1156,7 +1156,7 @@ const VerdocsSign = class {
1156
1156
  })), this.showFinishLater && (index.h("verdocs-ok-dialog", { heading: "You've saved your document to finish later.", message: `To complete the ${this.documentsSingularPlural}, use the link in the original email notification inviting you to review and finish the document.`, hideCloseButton: true, onNext: () => {
1157
1157
  this.isDone = true;
1158
1158
  this.showFinishLater = false;
1159
- } })), this.showDone && (index.h("verdocs-ok-dialog", { heading: "You're Done!", message: `You can access the ${this.documentsSingularPlural} at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the document and envelope certificate attached.`, hideCloseButton: true, onNext: () => {
1159
+ } })), this.showDone && (index.h("verdocs-ok-dialog", { heading: "You're Done!", message: `You can access the ${this.documentsSingularPlural} at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the completed document and certificate attached.`, hideCloseButton: true, onNext: () => {
1160
1160
  this.showDone = false;
1161
1161
  this.isDone = true;
1162
1162
  } })), this.adoptingSignature && (index.h("verdocs-adopt-signature-dialog", { name: jsSdk.formatFullName(this.recipient), nameLocked: !!((_a = this.recipient) === null || _a === void 0 ? void 0 : _a.name_locked), onNext: async (e) => {