@hubsync/esign-web-sdk 6.9.2 → 6.9.3

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 (33) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/verdocs-sign.cjs.entry.js +11 -0
  3. package/dist/cjs/verdocs-sign.entry.cjs.js.map +1 -1
  4. package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
  5. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +31 -0
  6. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js.map +1 -1
  7. package/dist/components/verdocs-sign.js +12 -0
  8. package/dist/components/verdocs-sign.js.map +1 -1
  9. package/dist/custom-elements.json +4 -0
  10. package/dist/esm/loader.js +1 -1
  11. package/dist/esm/verdocs-sign.entry.js +11 -0
  12. package/dist/esm/verdocs-sign.entry.js.map +1 -1
  13. package/dist/esm/verdocs-web-sdk.js +1 -1
  14. package/dist/esm-es5/loader.js +1 -1
  15. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  16. package/dist/esm-es5/verdocs-sign.entry.js.map +1 -1
  17. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  18. package/dist/types/components/embeds/verdocs-sign/verdocs-sign.d.ts +5 -0
  19. package/dist/types/components.d.ts +10 -0
  20. package/dist/verdocs-web-sdk/p-B8zpaHu-.system.js +1 -1
  21. package/dist/verdocs-web-sdk/p-Dj8lPfEj.system.js.map +1 -0
  22. package/dist/verdocs-web-sdk/p-a1614e15.system.entry.js +2 -0
  23. package/dist/verdocs-web-sdk/p-a1614e15.system.entry.js.map +1 -0
  24. package/dist/verdocs-web-sdk/p-aadf56ed.entry.js +2 -0
  25. package/dist/verdocs-web-sdk/p-aadf56ed.entry.js.map +1 -0
  26. package/dist/verdocs-web-sdk/verdocs-sign.entry.esm.js.map +1 -1
  27. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  28. package/package.json +1 -1
  29. package/dist/verdocs-web-sdk/p-0de42e9e.system.entry.js +0 -2
  30. package/dist/verdocs-web-sdk/p-0de42e9e.system.entry.js.map +0 -1
  31. package/dist/verdocs-web-sdk/p-70392270.entry.js +0 -2
  32. package/dist/verdocs-web-sdk/p-70392270.entry.js.map +0 -1
  33. package/dist/verdocs-web-sdk/p-BwCfRIqi.system.js.map +0 -1
@@ -76,6 +76,11 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsSign extends
76
76
  * The style of the toolbar to display.
77
77
  */
78
78
  this.toolbarStyle = 'menu';
79
+ /**
80
+ * If true, the disclosure dialog is skipped and disclosures are accepted automatically.
81
+ * If the acceptance request fails, the disclosure dialog is shown as a fallback.
82
+ */
83
+ this.autoAcceptDisclosures = false;
79
84
  this.recipient = null;
80
85
  this.hasSignature = false;
81
86
  this.nextButtonLabel = 'Start';
@@ -274,6 +279,9 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsSign extends
274
279
  else if (this.agreed) {
275
280
  this.nextButtonLabel = 'Next';
276
281
  }
282
+ else if (this.autoAcceptDisclosures) {
283
+ this.handleClickAgree();
284
+ }
277
285
  this.checkRecipientFields();
278
286
  (_d = this.envelopeLoaded) === null || _d === void 0 ? void 0 : _d.emit({ endpoint: this.endpoint, envelope: this.envelope });
279
287
  }
@@ -998,6 +1006,9 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsSign extends
998
1006
  } })));
999
1007
  }
1000
1008
  if (!this.agreed) {
1009
+ if (this.autoAcceptDisclosures && this.submitting) {
1010
+ return (h(Host, { class: "agreed" }, h("div", { class: "document", style: { paddingTop: '15px' } }, 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" }))));
1011
+ }
1001
1012
  return (h(Host, { class: "agreed" }, h("div", { class: "document", style: { paddingTop: '15px' } }, 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" })), h("verdocs-disclosure-dialog", { disclosures: this.disclosures, delegator: this.recipient.delegator, onDelegate: () => (this.delegating = true), onDecline: () => (this.declining = true), onAccept: () => this.handleClickAgree() })));
1002
1013
  }
1003
1014
  if (this.authStep === 'passcode') {
@@ -1186,6 +1197,7 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsSign extends
1186
1197
  "inviteCode": [513, "invite-code"],
1187
1198
  "headerTargetId": [1, "header-target-id"],
1188
1199
  "toolbarStyle": [1, "toolbar-style"],
1200
+ "autoAcceptDisclosures": [4, "auto-accept-disclosures"],
1189
1201
  "recipient": [32],
1190
1202
  "hasSignature": [32],
1191
1203
  "nextButtonLabel": [32],