@hubsync/esign-web-sdk 6.5.9 → 6.5.11
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/loader.cjs.js +1 -1
- package/dist/cjs/verdocs-sign.cjs.entry.js +26 -4
- package/dist/cjs/verdocs-sign.entry.cjs.js.map +1 -1
- package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +46 -4
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js.map +1 -1
- package/dist/components/verdocs-sign.js +27 -4
- package/dist/components/verdocs-sign.js.map +1 -1
- package/dist/custom-elements.json +4 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/verdocs-sign.entry.js +26 -4
- package/dist/esm/verdocs-sign.entry.js.map +1 -1
- package/dist/esm/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/loader.js +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/esm-es5/verdocs-web-sdk.js +1 -1
- package/dist/globals.css +34 -0
- package/dist/types/components/embeds/verdocs-sign/verdocs-sign.d.ts +5 -0
- package/dist/types/components.d.ts +10 -0
- package/dist/verdocs-web-sdk/p-25b78718.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-25b78718.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-90fcf375.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-90fcf375.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-B8zpaHu-.system.js +1 -1
- package/dist/verdocs-web-sdk/p-DCmU8D0L.system.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.css +31 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +2 -2
- package/dist/verdocs-web-sdk/p-4f4b54a2.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-4f4b54a2.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-BQW_HQtA.system.js.map +0 -1
- package/dist/verdocs-web-sdk/p-d2a58295.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-d2a58295.entry.js.map +0 -1
|
@@ -99,6 +99,11 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsSign extends
|
|
|
99
99
|
* The style of the toolbar to display.
|
|
100
100
|
*/
|
|
101
101
|
this.toolbarStyle = 'controls';
|
|
102
|
+
/**
|
|
103
|
+
* If true, disclosures are auto-accepted and the dialog is skipped while the request is in progress.
|
|
104
|
+
* If auto-accept fails, the disclosure dialog is shown as a fallback.
|
|
105
|
+
*/
|
|
106
|
+
this.autoAcceptingDisclosure = true;
|
|
102
107
|
this.recipient = null;
|
|
103
108
|
this.hasSignature = false;
|
|
104
109
|
this.nextButtonLabel = 'Start';
|
|
@@ -163,8 +168,9 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsSign extends
|
|
|
163
168
|
this.processAuthResponse(response);
|
|
164
169
|
const fillable = this.getSortedFillableFields();
|
|
165
170
|
if (fillable.length > 0) {
|
|
171
|
+
// Give the document a moment to render, then focus and highlight the first fillable field
|
|
166
172
|
setTimeout(() => {
|
|
167
|
-
this.
|
|
173
|
+
this.focusField(fillable[0]);
|
|
168
174
|
}, 500);
|
|
169
175
|
}
|
|
170
176
|
}
|
|
@@ -277,6 +283,9 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsSign extends
|
|
|
277
283
|
else if (this.agreed) {
|
|
278
284
|
this.nextButtonLabel = 'Next';
|
|
279
285
|
}
|
|
286
|
+
else if (this.autoAcceptingDisclosure) {
|
|
287
|
+
this.handleClickAgree();
|
|
288
|
+
}
|
|
280
289
|
this.checkRecipientFields();
|
|
281
290
|
(_h = this.envelopeLoaded) === null || _h === void 0 ? void 0 : _h.emit({ endpoint: this.endpoint, envelope: this.envelope });
|
|
282
291
|
}
|
|
@@ -527,12 +536,22 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsSign extends
|
|
|
527
536
|
}
|
|
528
537
|
focusField(field, scrollInline = 'center') {
|
|
529
538
|
var _a;
|
|
530
|
-
|
|
539
|
+
// Clear any previously highlighted field
|
|
540
|
+
const previousActive = document.querySelector('.verdocs-active-field');
|
|
541
|
+
if (previousActive) {
|
|
542
|
+
previousActive.classList.remove('verdocs-active-field');
|
|
543
|
+
}
|
|
544
|
+
if (!field) {
|
|
545
|
+
this.focusedField = '';
|
|
531
546
|
return;
|
|
547
|
+
}
|
|
532
548
|
const id = getFieldId(field);
|
|
533
549
|
const el = document.getElementById(id);
|
|
534
|
-
|
|
535
|
-
|
|
550
|
+
if (el) {
|
|
551
|
+
el.classList.add('verdocs-active-field');
|
|
552
|
+
el.scrollIntoView({ behavior: 'smooth', block: 'center', inline: scrollInline });
|
|
553
|
+
(_a = el.focusField) === null || _a === void 0 ? void 0 : _a.call(el);
|
|
554
|
+
}
|
|
536
555
|
this.focusedField = field.name;
|
|
537
556
|
this.markFieldVisited(field.name);
|
|
538
557
|
this.checkRecipientFields();
|
|
@@ -951,6 +970,9 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsSign extends
|
|
|
951
970
|
} })));
|
|
952
971
|
}
|
|
953
972
|
if (!this.agreed) {
|
|
973
|
+
if (this.autoAcceptingDisclosure && this.submitting) {
|
|
974
|
+
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-loader", null)));
|
|
975
|
+
}
|
|
954
976
|
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() })));
|
|
955
977
|
}
|
|
956
978
|
if (this.authStep === 'passcode') {
|
|
@@ -1191,6 +1213,7 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsSign extends
|
|
|
1191
1213
|
"inviteCode": [513, "invite-code"],
|
|
1192
1214
|
"headerTargetId": [1, "header-target-id"],
|
|
1193
1215
|
"toolbarStyle": [1, "toolbar-style"],
|
|
1216
|
+
"autoAcceptingDisclosure": [4, "auto-accepting-disclosure"],
|
|
1194
1217
|
"recipient": [32],
|
|
1195
1218
|
"hasSignature": [32],
|
|
1196
1219
|
"nextButtonLabel": [32],
|