@verdocs/web-sdk 4.2.13 → 4.2.25
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/{Toast-bb6f20af.js → Toast-818b7b3e.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/verdocs-auth.cjs.entry.js +98 -103
- package/dist/cjs/verdocs-button_3.cjs.entry.js +9 -4
- package/dist/cjs/verdocs-contact-picker_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-dialog.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelope-recipient-link_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +7 -7
- package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-kba-dialog.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-preview_10.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-quick-functions_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-radio-button_3.cjs.entry.js +8 -8
- package/dist/cjs/verdocs-search-tabs.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-search.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-sign.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-status-indicator.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-card.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-star.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-tags.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
- package/dist/collection/components/controls/verdocs-text-input/verdocs-text-input.css +12 -0
- package/dist/collection/components/controls/verdocs-text-input/verdocs-text-input.js +12 -2
- package/dist/collection/components/controls/verdocs-toggle-button/verdocs-toggle-button.js +1 -1
- package/dist/collection/components/controls/verdocs-toolbar-icon/verdocs-toolbar-icon.js +1 -1
- package/dist/collection/components/dialogs/verdocs-dialog/verdocs-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-initial-dialog/verdocs-initial-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.js +2 -2
- package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-upload-dialog/verdocs-upload-dialog.js +1 -1
- package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.js +1 -1
- package/dist/collection/components/elements/verdocs-search-tabs/verdocs-search-tabs.js +1 -1
- package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.css +13 -8
- package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js +101 -109
- package/dist/collection/components/embeds/verdocs-search/verdocs-search.js +1 -1
- package/dist/collection/components/envelopes/verdocs-envelope-document-page/verdocs-envelope-document-page.js +1 -1
- package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.js +6 -6
- package/dist/collection/components/envelopes/verdocs-status-indicator/verdocs-status-indicator.js +2 -2
- package/dist/collection/components/templates/verdocs-template-card/verdocs-template-card.js +1 -1
- package/dist/collection/components/templates/verdocs-template-document-page/verdocs-template-document-page.js +1 -1
- package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.js +7 -7
- package/dist/collection/components/templates/verdocs-template-sender/verdocs-template-sender.js +1 -1
- package/dist/collection/components/templates/verdocs-template-star/verdocs-template-star.js +1 -1
- package/dist/collection/components/templates/verdocs-template-tags/verdocs-template-tags.js +1 -1
- package/dist/collection/utils/Toast.js +2 -2
- package/dist/components/Toast.js +2 -2
- package/dist/components/verdocs-auth.js +102 -110
- package/dist/components/verdocs-dialog.js +1 -1
- package/dist/components/verdocs-envelope-document-page2.js +1 -1
- package/dist/components/verdocs-envelopes-list.js +6 -6
- package/dist/components/verdocs-initial-dialog2.js +1 -1
- package/dist/components/verdocs-kba-dialog.js +2 -2
- package/dist/components/verdocs-ok-dialog2.js +1 -1
- package/dist/components/verdocs-quick-functions2.js +1 -1
- package/dist/components/verdocs-search-tabs.js +1 -1
- package/dist/components/verdocs-search.js +1 -1
- package/dist/components/verdocs-signature-dialog2.js +1 -1
- package/dist/components/verdocs-status-indicator2.js +2 -2
- package/dist/components/verdocs-template-card.js +1 -1
- package/dist/components/verdocs-template-document-page2.js +1 -1
- package/dist/components/verdocs-template-role-properties2.js +7 -7
- package/dist/components/verdocs-template-sender2.js +1 -1
- package/dist/components/verdocs-template-star2.js +1 -1
- package/dist/components/verdocs-template-tags.js +1 -1
- package/dist/components/verdocs-text-input2.js +10 -4
- package/dist/components/verdocs-toggle-button2.js +1 -1
- package/dist/components/verdocs-toolbar-icon2.js +1 -1
- package/dist/components/verdocs-upload-dialog2.js +1 -1
- package/dist/esm/{Toast-b71de686.js → Toast-3e2645fc.js} +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/verdocs-auth.entry.js +99 -104
- package/dist/esm/verdocs-button_3.entry.js +9 -4
- package/dist/esm/verdocs-contact-picker_2.entry.js +1 -1
- package/dist/esm/verdocs-dialog.entry.js +1 -1
- package/dist/esm/verdocs-envelope-document-page.entry.js +1 -1
- package/dist/esm/verdocs-envelope-recipient-link_2.entry.js +1 -1
- package/dist/esm/verdocs-envelope-sidebar.entry.js +1 -1
- package/dist/esm/verdocs-envelopes-list.entry.js +7 -7
- package/dist/esm/verdocs-field-attachment_13.entry.js +3 -3
- package/dist/esm/verdocs-kba-dialog.entry.js +2 -2
- package/dist/esm/verdocs-ok-dialog.entry.js +1 -1
- package/dist/esm/verdocs-preview_10.entry.js +1 -1
- package/dist/esm/verdocs-quick-functions_2.entry.js +1 -1
- package/dist/esm/verdocs-radio-button_3.entry.js +8 -8
- package/dist/esm/verdocs-search-tabs.entry.js +1 -1
- package/dist/esm/verdocs-search.entry.js +1 -1
- package/dist/esm/verdocs-sign.entry.js +1 -1
- package/dist/esm/verdocs-status-indicator.entry.js +2 -2
- package/dist/esm/verdocs-template-card.entry.js +1 -1
- package/dist/esm/verdocs-template-document-page_2.entry.js +2 -2
- package/dist/esm/verdocs-template-star.entry.js +1 -1
- package/dist/esm/verdocs-template-tags.entry.js +1 -1
- package/dist/esm/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/{Toast-b71de686.js → Toast-3e2645fc.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/verdocs-auth.entry.js +1 -1
- package/dist/esm-es5/verdocs-button_3.entry.js +1 -1
- package/dist/esm-es5/verdocs-contact-picker_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-recipient-link_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-attachment_13.entry.js +1 -1
- package/dist/esm-es5/verdocs-kba-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-preview_10.entry.js +1 -1
- package/dist/esm-es5/verdocs-quick-functions_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-radio-button_3.entry.js +1 -1
- package/dist/esm-es5/verdocs-search-tabs.entry.js +1 -1
- package/dist/esm-es5/verdocs-search.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-card.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js +1 -1
- package/dist/types/components/controls/verdocs-text-input/verdocs-text-input.d.ts +1 -0
- package/dist/types/components/embeds/verdocs-auth/verdocs-auth.d.ts +10 -13
- package/dist/verdocs-web-sdk/{p-b3017cd6.entry.js → p-0349f360.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-20593762.entry.js → p-0ff14c4d.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-67e9f8a5.entry.js → p-1dd1d686.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-8ee31f33.system.entry.js → p-1fec2d1e.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-3f9b5a02.entry.js → p-3093ede7.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9ce9d353.system.entry.js → p-314321b8.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-322fa613.system.js +1 -1
- package/dist/verdocs-web-sdk/{p-51544250.system.entry.js → p-3a4dcc93.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-8ca0c8c2.system.entry.js → p-3a8b2213.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d6f6f255.entry.js → p-402a35bf.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-71f53fd6.entry.js → p-40d811fe.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-0d54abe5.entry.js → p-4145b69a.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-48fce604.system.entry.js → p-420fc040.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7a4930b1.entry.js → p-4291db9f.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-62af2ee6.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-62d7e050.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-0713ab8d.entry.js → p-67c3b3d1.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ee08c75b.system.entry.js → p-72ae790a.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-65df6ef0.entry.js → p-748ed4ef.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-71efd549.system.entry.js → p-7b222135.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-cef88396.system.entry.js → p-7bfe3ed2.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-3f246894.entry.js → p-7e6fa885.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-e1679e5b.system.entry.js → p-7ef593c3.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-a7dac539.entry.js → p-8092bd81.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-cf1ae7bf.entry.js → p-82f7b16a.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-fd2c9b30.entry.js → p-83c81948.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-2be9ba53.system.entry.js → p-8c3c0869.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-f632ffac.entry.js → p-8ce594b2.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d2feac5b.system.entry.js → p-96e5a460.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-aed8139a.system.entry.js → p-99510d53.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-fc5e568d.system.entry.js → p-9c955106.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-6bbea733.system.entry.js → p-a908ebeb.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-1b6664c9.entry.js → p-ad2814b4.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-8d0807ab.system.entry.js → p-ad474154.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-b2b16ce8.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-08210588.system.entry.js → p-bb0ed696.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7ce23c90.system.js → p-c8915559.system.js} +1 -1
- package/dist/verdocs-web-sdk/{p-4bb08486.entry.js → p-d61235cf.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-77ec3348.entry.js → p-dda420e7.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-a1289b75.system.entry.js → p-e772c022.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-10947d22.entry.js → p-eaf4de2f.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-1030a0b7.system.entry.js → p-ebc3ed52.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-fdb77c22.system.entry.js → p-f2f6c646.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-6fc92b73.system.entry.js → p-f54b4cc0.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-78908c67.entry.js → p-f978550e.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-026b3103.js → p-fa58907b.js} +1 -1
- package/dist/verdocs-web-sdk/{p-f80e65ce.entry.js → p-fe246d59.entry.js} +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +2 -2
- package/dist/verdocs-web-sdk/p-3d0ceb71.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-50aa20d5.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-dd426399.system.entry.js +0 -1
@@ -12,7 +12,7 @@ export class VerdocsDialog {
|
|
12
12
|
}
|
13
13
|
}
|
14
14
|
render() {
|
15
|
-
return (h(Host, { key: '
|
15
|
+
return (h(Host, { key: '952c27946d1eb8552949ac29d9ffaa05222baaba' }, h("div", { key: '4721082da97c31ddb4e29b05922749b42ab38845', class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { key: '80e01d2ee87fd7ffbdd789068587d11ab4323644', class: "dialog" }, h("slot", { key: 'f55b17d75983192918a7c8b5b7df87ca22259b7b', name: "title" }, h("div", { key: '0ebb27bff2de5a06232e419cf9eeff67abddbb3a', class: "heading" }, "Please Confirm")), h("div", { key: 'c93aa214cf8f4c034611f1638dff493a9b2066e2', class: "content" }, h("slot", { key: '7473721bf10ed5dfe388e3d17aec8ee67a5e193f' }))))));
|
16
16
|
}
|
17
17
|
static get is() { return "verdocs-dialog"; }
|
18
18
|
static get originalStyleUrls() {
|
@@ -216,7 +216,7 @@ export class VerdocsInitialDialog {
|
|
216
216
|
}
|
217
217
|
*/
|
218
218
|
render() {
|
219
|
-
return (h(Host, { key: '
|
219
|
+
return (h(Host, { key: '9006cdf73a61c1d98c81bdebbdf18f4b556ddeb9', onClick: e => this.handleCancel(e) }, h("div", { key: 'cbd4bb1d98fd49e3874ddbd747c7cee69cb5c39e', class: "dialog" }, h("div", { key: 'c751dcfa414370fd1eb9adc8eb8e9b22af8383ae', class: "heading" }, "Create Your Initial"), h("div", { key: '3bf621f90c954b626c90925b50b65a08b2a5bf37', class: "content" }, h("verdocs-text-input", { key: 'f66fa605b16228d389231908825483594e3872bf', placeholder: "Initials...", label: "Initials", value: this.enteredInitials, onInput: e => this.handleNameChange(e) }), h("div", { key: '42b8206f41b9acf5220d3b132fc1ab8f038a1522', class: "as-shown" }, "As shown on driver's license or govt. ID card."), this.fontLoaded ? h("canvas", { ref: el => (this.canvasElement = el) }) : h("div", { style: { display: 'none' } }), h("div", { key: '64c1da383cc7f6fc6d34af5bcced3caa623eae02', class: "disclaimer" }, "By clicking Adopt, I agree that the signature will be the electronic representation of my signature for all purposes when I (or my agent) use them on documents, including legally binding contracts \u2014 just the same as a pen-and-paper signature or initial."), h("div", { key: '0c8621ee304a5819607612ceeae0276a8a3f84dd', class: "buttons" }, h("verdocs-button", { key: '84b4ea8e03a58be3719d6e5c54227db2538a1753', label: "CANCEL", variant: "outline", onClick: e => this.handleCancel(e) }), h("verdocs-button", { key: '64a5480d9b29fbb1d17c5735259f486693dc6cea', label: "Adopt & Sign", onClick: e => this.handleAdopt(e) }))))));
|
220
220
|
}
|
221
221
|
static get is() { return "verdocs-initial-dialog"; }
|
222
222
|
static get originalStyleUrls() {
|
@@ -29,9 +29,9 @@ export class VerdocsKbaDialog {
|
|
29
29
|
this.next.emit(this.response);
|
30
30
|
}
|
31
31
|
render() {
|
32
|
-
return (h(Host, { key: '
|
32
|
+
return (h(Host, { key: 'c82a5d8b5257732255861a67a51ed6a0b2675b77' }, h("div", { key: 'c102ab713567ed43cef7c344df8a0936274b6f6e', class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { key: 'e932de4a3ca2402a965744ab02f9d6c3b8f86645', class: "dialog" }, h("div", { key: '569f5420ada83b65ecc93147aed387086f659b34', class: "heading" }, "Confirm Your Identity", this.steps > 1 ? (h("span", { class: "step" }, "(", this.step, "/", this.steps, ")")) : (h(Fragment, null))), h("div", { key: '2ffd440933f4e7c44a72eab3fdfd36f8e8a630c8', class: "help-box" }, h("div", { key: '79b7cba2e72d7fd7e576b1f965014e67759727e5', class: "help-icon", innerHTML: QuestionIcon }), h("div", { key: '5ccf156e49de25f88804641ab4b67536838f2876', class: "help-details" }, h("div", { key: '857feb344fd1ba7fdabda6c090e64b03ea1150bb', class: "help-title" }, this.helptitle), h("div", { key: 'b0f0bde18492545dcb767a6a73b70fbebb497ecb', class: "help-text" }, this.helptext))), this.mode === 'choice' ? (h("div", { class: "choices" }, this.choices.map(choice => (h("div", { class: `choice ${choice === this.response ? 'selected' : ''}`, onClick: () => {
|
33
33
|
this.response = choice;
|
34
|
-
} }, choice))))) : (h("div", { class: "input" }, h("label", { htmlFor: "verdocs-kba-input" }, this.label), h("input", { type: "text", id: "verdocs-kba-input", name: "verdocs-kba-input", placeholder: this.placeholder }))), h("div", { key: '
|
34
|
+
} }, choice))))) : (h("div", { class: "input" }, h("label", { htmlFor: "verdocs-kba-input" }, this.label), h("input", { type: "text", id: "verdocs-kba-input", name: "verdocs-kba-input", placeholder: this.placeholder }))), h("div", { key: 'b76320da31947aa982e3d93c766e395b4133d15f', class: "buttons" }, h("verdocs-button", { key: 'bc7c181fc05366341cc4c4e2e2f00749b5ac377e', label: "Cancel", variant: "outline", onClick: () => this.handleCancel() }), h("verdocs-button", { key: 'dbd938075496f58916586ae1ab89290ab73d129a', label: "Done", onClick: () => this.handleDone(), disabled: !this.response }))))));
|
35
35
|
}
|
36
36
|
static get is() { return "verdocs-kba-dialog"; }
|
37
37
|
static get originalStyleUrls() {
|
@@ -27,7 +27,7 @@ export class VerdocsOkDialog {
|
|
27
27
|
}
|
28
28
|
}
|
29
29
|
render() {
|
30
|
-
return (h(Host, { key: '
|
30
|
+
return (h(Host, { key: 'c1505d930741a4a0e1eb9a9832de8e55d09b207c', class: this.closed ? 'closed' : '' }, h("div", { key: 'f4c1ce92701f56a3b839bc49a0beb38665a65556', class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { key: '0fe99745209ca40287512f114122d1a0f0c4e597', class: "dialog" }, h("div", { key: '93deffa53c92913b65109f3c9826e61561f91c68', class: "heading" }, this.heading), h("div", { key: 'b0a64c6f2072655ce439d5008ecfe55651d48d8f', class: "content" }, h("div", { key: '3f89fd4b54dfa1c8437c2aa7dd21310827516004', class: "message", innerHTML: this.message }), h("div", { key: 'a86843d9915f72bcc00810c87f3311c77cf3b566', class: "buttons" }, this.showCancel ? h("verdocs-button", { label: "CANCEL", variant: "outline", onClick: () => this.handleCancel() }) : h("div", { style: { display: 'none' } }), h("verdocs-button", { key: 'd160170c8a58dde135ba4c5ae4dac35ac79c24a1', label: this.buttonLabel, onClick: () => this.handleOk() })))))));
|
31
31
|
}
|
32
32
|
static get is() { return "verdocs-ok-dialog"; }
|
33
33
|
static get originalStyleUrls() {
|
package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.js
CHANGED
@@ -213,7 +213,7 @@ export class VerdocsSignatureDialog {
|
|
213
213
|
}
|
214
214
|
*/
|
215
215
|
render() {
|
216
|
-
return (h(Host, { key: '
|
216
|
+
return (h(Host, { key: '88ef514634fef3e3773f13efeeb2b22cbaf9ff0a', onClick: e => this.handleCancel(e) }, h("div", { key: '31369669f68670330cb2f54ec9be44ff6100ac83', class: "dialog" }, h("div", { key: 'd161b9a0e0945cda909eabbd0404448a03e29198', class: "heading" }, "Create Your Signature"), h("div", { key: '9777dd4289072f0be511bb1ec828ed540011e6be', class: "content" }, h("verdocs-text-input", { key: 'afed3547dd47d4883ac84d83d4d05eca9a30d5a2', placeholder: "Full Name...", label: "Full Name", value: this.enteredName, onInput: e => this.handleNameChange(e), onClick: e => e.stopPropagation() }), h("div", { key: '728f24c1a88a395f940df350169ed6ba628d2685', class: "as-shown" }, "As shown on driver's license or govt. ID card."), this.fontLoaded ? h("canvas", { ref: el => (this.canvasElement = el) }) : h("div", { style: { display: 'none' } }), h("div", { key: 'abafa624e941b6f6e758fbd75ddd7e0044a377dc', class: "disclaimer" }, "By clicking Adopt, I agree that the signature will be the electronic representation of my signature for all purposes when I (or my agent) use them on documents, including legally binding contracts \u2014 just the same as a pen-and-paper signature or initial."), h("div", { key: 'fbcc0705c21b7ed206222a9b7382a5562ee7f83d', class: "buttons" }, h("verdocs-button", { key: '5f921b4dfc7df16867071b117a9b055a8aeee8da', label: "CANCEL", size: "normal", variant: "outline", onClick: e => this.handleCancel(e) }), h("verdocs-button", { key: 'dbf88043b9deedb378181bf48d7a04428a32e653', label: "Adopt & Sign", size: "normal", onClick: e => this.handleAdopt(e) }))))));
|
217
217
|
}
|
218
218
|
static get is() { return "verdocs-signature-dialog"; }
|
219
219
|
static get originalStyleUrls() {
|
@@ -69,7 +69,7 @@ export class VerdocsUploadDialog {
|
|
69
69
|
this.decodedFiles = await Promise.all(droppedFiles.map(fileToDataUrl));
|
70
70
|
}
|
71
71
|
render() {
|
72
|
-
return (h(Host, { key: '
|
72
|
+
return (h(Host, { key: '00cddffd15d81c343c9f23ca79a26fd7b7c607ec' }, h("div", { key: '30308c5289e2bed777fb8d3bcbbfa4c5da71f967', class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { key: '667874e38d9b7c4be180e6097205c829e7bc497c', class: "dialog" }, h("div", { key: '25f97a72a7541feecf123a2c7a202024220c8a19', class: "heading" }, "Upload attachment"), this.decodedFiles.length < 1 ? (h("div", { class: { 'drop-target': true, 'dragging-over': this.draggingOver }, onDragOver: e => this.handleDragOver(e), onDragLeave: e => this.handleDragLeave(e), onDrop: e => this.handleDrop(e) }, h("p", null, "Drag and drop a file here..."), h("p", null, "- or -"), h("verdocs-button", { label: "Select a file...", onClick: () => this.handleSelectFile() }), h("input", { type: "file", ref: el => (this.fileInput = el), style: { display: 'none' }, onChange: () => this.handleFileChange() }))) : (h("div", { class: "attachments" }, this.decodedFiles.map((file, index) => (h("div", { class: "attachment" }, h("div", { class: "icon", innerHTML: PaperclipIcon }), h("div", { class: "name" }, file.name), h("div", { class: "icon trash", innerHTML: TrashIcon, onClick: () => this.handleRemoveAttachment(index) })))))), h("div", { key: 'a5fa38c5fdba79aef2f52b01a264ac9552190c78', class: "buttons" }, h("verdocs-button", { key: '07978b71c5a0293beca4eefebf3b7b280be914f8', label: "Cancel", variant: "outline", onClick: () => this.handleCancel() }), h("verdocs-button", { key: 'c16e03120a392673aa656e7d6c6dfec599127f36', label: "Done", onClick: () => this.handleDone(), disabled: this.decodedFiles.length < 1 }))))));
|
73
73
|
}
|
74
74
|
static get is() { return "verdocs-upload-dialog"; }
|
75
75
|
static get originalStyleUrls() {
|
package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.js
CHANGED
@@ -19,7 +19,7 @@ export class VerdocsQuickFunctions {
|
|
19
19
|
this.createDocument.emit();
|
20
20
|
}
|
21
21
|
render() {
|
22
|
-
return (h("div", { key: '
|
22
|
+
return (h("div", { key: '8732c14ba59bc441cdc1b164832ef66b5c7842bb', class: "container" }, h("p", { key: 'f6909de1cfed09c6514bd0d6530a380ad62aff85', class: "title" }, "Quick Create"), h("button", { key: 'e95f2fc551ad5342a4ceef8995c11b5b56a0e12a', onClick: () => this.handleCreateTemplate(), innerHTML: TemplateIcon }, "Template"), h("button", { key: '6707f329d007c1027d159c5b928a124fb41b6f73', onClick: () => this.handleCreateDocument(), innerHTML: DocumentIcon }, "Document")));
|
23
23
|
}
|
24
24
|
static get is() { return "verdocs-quick-functions"; }
|
25
25
|
static get originalStyleUrls() {
|
@@ -4,7 +4,7 @@ export class VerdocsSearchTabs {
|
|
4
4
|
this.selected = 'all';
|
5
5
|
}
|
6
6
|
render() {
|
7
|
-
return h("div", { key: '
|
7
|
+
return h("div", { key: '16e93641cee94ed98e3c8de50222fb41f5dbfb90' }, "\u00A0");
|
8
8
|
}
|
9
9
|
static get is() { return "verdocs-search-tabs"; }
|
10
10
|
static get originalStyleUrls() {
|
@@ -12,24 +12,25 @@
|
|
12
12
|
verdocs-auth {
|
13
13
|
font-family: "Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;
|
14
14
|
display: flex;
|
15
|
-
flex-direction: column;
|
16
15
|
align-items: center;
|
16
|
+
flex-direction: column;
|
17
17
|
justify-content: center;
|
18
18
|
}
|
19
19
|
verdocs-auth .form {
|
20
|
-
|
21
|
-
align-items: center;
|
22
|
-
justify-content: center;
|
23
|
-
flex-direction: column;
|
20
|
+
width: 320px;
|
24
21
|
display: flex;
|
25
22
|
padding: 20px;
|
26
|
-
width:
|
27
|
-
|
23
|
+
max-width: 90%;
|
24
|
+
align-items: center;
|
25
|
+
flex-direction: column;
|
26
|
+
box-sizing: border-box;
|
27
|
+
justify-content: center;
|
28
|
+
background: #ffffff;
|
28
29
|
}
|
29
30
|
verdocs-auth .logo {
|
30
|
-
margin: 20px 0 30px;
|
31
31
|
width: 128px;
|
32
32
|
max-width: 100%;
|
33
|
+
margin: 20px 0 30px;
|
33
34
|
}
|
34
35
|
verdocs-auth h3 {
|
35
36
|
text-align: center;
|
@@ -61,6 +62,7 @@ verdocs-auth em {
|
|
61
62
|
}
|
62
63
|
verdocs-auth .buttons {
|
63
64
|
gap: 20px;
|
65
|
+
margin: 20px 0 0 0;
|
64
66
|
display: flex;
|
65
67
|
flex-direction: row;
|
66
68
|
justify-content: center;
|
@@ -89,6 +91,9 @@ verdocs-auth .account-option {
|
|
89
91
|
display: flex;
|
90
92
|
flex-direction: row;
|
91
93
|
}
|
94
|
+
verdocs-auth p {
|
95
|
+
margin: 0 0 1em 0;
|
96
|
+
}
|
92
97
|
verdocs-auth p + p {
|
93
98
|
margin-top: 0;
|
94
99
|
}
|
@@ -1,8 +1,7 @@
|
|
1
|
-
import { VerdocsEndpoint, createProfile, authenticate,
|
1
|
+
import { VerdocsEndpoint, createProfile, authenticate, resendVerification, resetPassword, verifyEmail, getMyUser } from "@verdocs/js-sdk";
|
2
2
|
import { h } from "@stencil/core";
|
3
3
|
import { VerdocsToast } from "../../../utils/Toast";
|
4
4
|
import { SDKError } from "../../../utils/errors";
|
5
|
-
const RECHECK_INTERVAL = 5000;
|
6
5
|
/**
|
7
6
|
* Display an authentication dialog that allows the user to login or sign up. If the user is already authenticated
|
8
7
|
* with a valid session, this component will hide itself and fire the success callback immediately. It is up to the
|
@@ -20,33 +19,33 @@ const RECHECK_INTERVAL = 5000;
|
|
20
19
|
*/
|
21
20
|
export class VerdocsAuth {
|
22
21
|
constructor() {
|
23
|
-
this.recheckTimer = null;
|
24
22
|
this.resendDisabledTimer = null;
|
25
|
-
|
23
|
+
// We can't instantly log in on the default endpoint because other listeners might see
|
24
|
+
// its events and incorrectly trigger before we're done. So we manage our own temp
|
25
|
+
// endpoint and pass the final tokens to the default once we're ready.
|
26
|
+
this.tempAuthEndpoint = new VerdocsEndpoint({
|
27
|
+
baseURL: VerdocsEndpoint.getDefault().getBaseURL(),
|
28
|
+
persist: false,
|
29
|
+
});
|
26
30
|
this.endpoint = VerdocsEndpoint.getDefault();
|
27
31
|
this.visible = true;
|
28
32
|
this.logo = 'https://app.verdocs.com/assets/blue-logo.svg';
|
29
|
-
this.isAuthenticated = false;
|
30
33
|
this.displayMode = 'login';
|
31
34
|
this.org_name = '';
|
32
35
|
this.first_name = '';
|
33
36
|
this.last_name = '';
|
34
|
-
this.
|
37
|
+
this.email = '';
|
38
|
+
this.verificationCode = '';
|
35
39
|
this.password = '';
|
40
|
+
this.confirmpass = '';
|
36
41
|
this.submitting = false;
|
37
|
-
this.activeSession = null;
|
38
|
-
this.accountType = 'org';
|
39
|
-
this.signupStep = 1;
|
40
42
|
this.resendDisabled = false;
|
41
|
-
this.checkingOrg = false;
|
42
43
|
}
|
43
44
|
componentWillLoad() {
|
44
45
|
var _a, _b;
|
45
46
|
this.endpoint.loadSession();
|
46
47
|
if (this.endpoint.session) {
|
47
48
|
console.log('[AUTH] Authenticated');
|
48
|
-
this.isAuthenticated = true;
|
49
|
-
this.activeSession = this.endpoint.session;
|
50
49
|
(_a = this.authenticated) === null || _a === void 0 ? void 0 : _a.emit({ authenticated: true, session: this.endpoint.session });
|
51
50
|
}
|
52
51
|
else {
|
@@ -54,29 +53,6 @@ export class VerdocsAuth {
|
|
54
53
|
(_b = this.authenticated) === null || _b === void 0 ? void 0 : _b.emit({ authenticated: false, session: null });
|
55
54
|
}
|
56
55
|
}
|
57
|
-
disconnectedCallback() {
|
58
|
-
this.cancelRecheckTimer();
|
59
|
-
}
|
60
|
-
cancelRecheckTimer() {
|
61
|
-
if (this.recheckTimer) {
|
62
|
-
try {
|
63
|
-
clearTimeout(this.recheckTimer);
|
64
|
-
}
|
65
|
-
catch (e) {
|
66
|
-
// NOP
|
67
|
-
}
|
68
|
-
this.recheckTimer = null;
|
69
|
-
}
|
70
|
-
if (this.resendDisabledTimer) {
|
71
|
-
try {
|
72
|
-
clearTimeout(this.resendDisabledTimer);
|
73
|
-
}
|
74
|
-
catch (e) {
|
75
|
-
// NOP
|
76
|
-
}
|
77
|
-
this.resendDisabledTimer = null;
|
78
|
-
}
|
79
|
-
}
|
80
56
|
isPasswordComplex(password) {
|
81
57
|
const isUppercase = (ch) => /[A-Z]/.test(ch);
|
82
58
|
const isLowercase = (ch) => /[a-z]/.test(ch);
|
@@ -94,14 +70,18 @@ export class VerdocsAuth {
|
|
94
70
|
return password.length >= 8 && countOfLowerCase > 0 && countOfUpperCase > 0 && countOfSpecialChar > 0;
|
95
71
|
}
|
96
72
|
handleSignup() {
|
97
|
-
this.submitting = true;
|
98
|
-
this.accessTokenForVerification = null;
|
99
73
|
if (!this.isPasswordComplex(this.password)) {
|
100
|
-
|
74
|
+
VerdocsToast('Password must be at least 8 characters long and contain at least one uppercase, one lowercase, and one special character.', { style: 'error' });
|
101
75
|
return;
|
102
76
|
}
|
103
|
-
|
104
|
-
|
77
|
+
if (this.password !== this.confirmpass) {
|
78
|
+
VerdocsToast('Passwords do not match.', { style: 'error' });
|
79
|
+
return;
|
80
|
+
}
|
81
|
+
this.submitting = true;
|
82
|
+
this.tempAuthEndpoint.clearSession();
|
83
|
+
createProfile(this.tempAuthEndpoint, {
|
84
|
+
email: this.email,
|
105
85
|
password: this.password,
|
106
86
|
first_name: this.first_name,
|
107
87
|
last_name: this.last_name,
|
@@ -109,62 +89,85 @@ export class VerdocsAuth {
|
|
109
89
|
})
|
110
90
|
.then(r => {
|
111
91
|
console.log('Profile creation result', r);
|
112
|
-
this.
|
92
|
+
this.tempAuthEndpoint.setToken(r.access_token);
|
93
|
+
this.clearForms();
|
94
|
+
this.displayMode = 'verify';
|
113
95
|
})
|
114
96
|
.catch(e => {
|
115
97
|
var _a, _b, _c, _d, _e, _f;
|
116
98
|
console.log('[AUTH] Signup error', e.response);
|
117
99
|
this.submitting = false;
|
118
|
-
this.activeSession = null;
|
119
100
|
(_a = this.authenticated) === null || _a === void 0 ? void 0 : _a.emit({ authenticated: false, session: null });
|
120
101
|
(_b = this.sdkError) === null || _b === void 0 ? void 0 : _b.emit(new SDKError(e.message, (_c = e.response) === null || _c === void 0 ? void 0 : _c.status, (_d = e.response) === null || _d === void 0 ? void 0 : _d.data));
|
121
102
|
VerdocsToast('Signup failed: ' + ((_f = (_e = e.response) === null || _e === void 0 ? void 0 : _e.data) === null || _f === void 0 ? void 0 : _f.message) || 'Unknown Error', { style: 'error' });
|
122
103
|
});
|
123
104
|
}
|
124
|
-
|
105
|
+
async handleVerification() {
|
125
106
|
this.submitting = true;
|
126
|
-
|
127
|
-
authenticate(this.endpoint, { username: this.username, password: this.password, grant_type: 'password' })
|
128
|
-
.then(r => {
|
129
|
-
var _a;
|
130
|
-
this.cancelRecheckTimer();
|
107
|
+
try {
|
131
108
|
this.submitting = false;
|
132
|
-
const
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
109
|
+
const verificationResult = await verifyEmail(this.tempAuthEndpoint, { email: this.email, token: this.verificationCode });
|
110
|
+
VerdocsToast('Thank you for verifying your email address.', { style: 'success' });
|
111
|
+
this.completeLogin(verificationResult);
|
112
|
+
}
|
113
|
+
catch (e) {
|
114
|
+
this.submitting = false;
|
115
|
+
console.log('Verification error', e);
|
116
|
+
VerdocsToast('Verification error, please check the code and try again.');
|
117
|
+
}
|
118
|
+
}
|
119
|
+
completeLogin(result) {
|
120
|
+
var _a;
|
121
|
+
this.clearForms();
|
122
|
+
this.tempAuthEndpoint.clearSession();
|
123
|
+
this.endpoint.setToken(result.access_token);
|
124
|
+
(_a = this.authenticated) === null || _a === void 0 ? void 0 : _a.emit({ authenticated: true, session: this.endpoint.session });
|
125
|
+
}
|
126
|
+
async loginAndCheckVerification() {
|
127
|
+
var _a;
|
128
|
+
this.submitting = true;
|
129
|
+
this.tempAuthEndpoint.clearSession();
|
130
|
+
try {
|
131
|
+
this.submitting = false;
|
132
|
+
const authResult = await authenticate(this.tempAuthEndpoint, { username: this.email, password: this.password, grant_type: 'password' });
|
133
|
+
console.log('[AUTH] Authenticated, checking email verification');
|
134
|
+
this.tempAuthEndpoint.setToken(authResult.access_token);
|
135
|
+
const user = await getMyUser(this.tempAuthEndpoint);
|
136
|
+
console.log('Got user', user);
|
137
|
+
if (!user.email_verified) {
|
144
138
|
console.log('[AUTH] Logged in, pending email address verification');
|
145
139
|
this.displayMode = 'verify';
|
146
|
-
this.accessTokenForVerification = r.access_token;
|
147
|
-
this.recheckTimer = setTimeout(this.loginAndCheckVerification, RECHECK_INTERVAL);
|
148
140
|
}
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
141
|
+
else {
|
142
|
+
console.log('[AUTH] Email address is verified, completing login');
|
143
|
+
this.completeLogin(authResult);
|
144
|
+
}
|
145
|
+
}
|
146
|
+
catch (e) {
|
155
147
|
this.submitting = false;
|
156
|
-
|
157
|
-
(
|
158
|
-
|
159
|
-
|
160
|
-
|
148
|
+
console.log('[AUTH] Auth failure', ((_a = e.response) === null || _a === void 0 ? void 0 : _a.data) || e);
|
149
|
+
VerdocsToast('Login failed. Please check your credentials and try again.', { style: 'error' });
|
150
|
+
}
|
151
|
+
}
|
152
|
+
clearForms() {
|
153
|
+
this.submitting = false;
|
154
|
+
this.resendDisabled = false;
|
155
|
+
this.email = '';
|
156
|
+
this.password = '';
|
157
|
+
this.confirmpass = '';
|
158
|
+
this.verificationCode = '';
|
159
|
+
this.first_name = '';
|
160
|
+
this.last_name = '';
|
161
|
+
this.org_name = '';
|
161
162
|
}
|
162
163
|
handleLogout() {
|
163
164
|
var _a;
|
165
|
+
console.log('logging out');
|
164
166
|
this.endpoint.clearSession();
|
165
|
-
this.
|
166
|
-
this.accessTokenForVerification = null;
|
167
|
+
this.tempAuthEndpoint.clearSession();
|
167
168
|
(_a = this.authenticated) === null || _a === void 0 ? void 0 : _a.emit({ authenticated: false, session: null });
|
169
|
+
this.clearForms();
|
170
|
+
this.displayMode = 'login';
|
168
171
|
}
|
169
172
|
handleResend() {
|
170
173
|
// Avoid the user just click-spamming this pathway. The server rate-limits this anyway so it's not a
|
@@ -174,57 +177,49 @@ export class VerdocsAuth {
|
|
174
177
|
this.resendDisabled = false;
|
175
178
|
this.resendDisabledTimer = null;
|
176
179
|
}, 30000);
|
177
|
-
resendVerification(this.
|
180
|
+
resendVerification(this.tempAuthEndpoint)
|
178
181
|
.then(r => {
|
179
182
|
console.log('[AUTH] Verification request resent', r);
|
180
|
-
VerdocsToast('Please check your email for a
|
183
|
+
VerdocsToast('Please check your email for a verification code.', { style: 'info' });
|
181
184
|
})
|
182
185
|
.catch((e) => {
|
183
186
|
console.log('[AUTH] Unable to resend verification', e);
|
187
|
+
VerdocsToast('Unable to resend code. Please try again later.', { style: 'error' });
|
184
188
|
});
|
185
189
|
}
|
186
|
-
handleReset() {
|
190
|
+
async handleReset() {
|
187
191
|
this.submitting = true;
|
188
|
-
|
189
|
-
.
|
190
|
-
console.log('[AUTH] Reset sent',
|
192
|
+
try {
|
193
|
+
const result = await resetPassword(this.endpoint, { email: this.email });
|
194
|
+
console.log('[AUTH] Reset sent', result);
|
191
195
|
this.submitting = false;
|
192
196
|
this.displayMode = 'login';
|
193
197
|
VerdocsToast('If your email address is registered, you will receive instructions on resetting your password shortly.', { style: 'info' });
|
194
|
-
}
|
195
|
-
|
198
|
+
}
|
199
|
+
catch (e) {
|
196
200
|
console.log('[AUTH] Unable to reset password', e);
|
197
201
|
this.submitting = false;
|
198
|
-
|
202
|
+
VerdocsToast('Unable to reset password. Please check your email address and try again.', { style: 'error' });
|
203
|
+
}
|
199
204
|
}
|
200
205
|
render() {
|
201
206
|
if (!this.visible) {
|
202
207
|
return h("div", { style: { display: 'none' } }, "Authenticated");
|
203
208
|
}
|
204
|
-
if (this.
|
209
|
+
if (this.endpoint.session) {
|
205
210
|
return (h("verdocs-button", { label: "Sign Out", disabled: this.submitting, onClick: () => this.handleLogout(), style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }));
|
206
211
|
}
|
207
212
|
if (this.displayMode === 'signup') {
|
208
|
-
const
|
209
|
-
return (h("div", { class: "form" }, h("a", { href: "https://verdocs.com/en/" }, h("img", { src: this.logo, alt: "Verdocs Logo", class: "logo" })), h("h3", null, "Sign up for a free account"), h("h5", null, "Already have an account?", h("verdocs-button", { label: "Log In", variant: "text", onClick: () => (this.displayMode = 'login'), disabled: this.submitting })),
|
210
|
-
this.signupStep = 2;
|
211
|
-
}, style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }), h("verdocs-button", { label: "Go to Dashboard", disabled: true, onClick: () => this.handleSignup(), style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }))))));
|
212
|
-
}
|
213
|
-
if (this.displayMode === 'forgot') {
|
214
|
-
return (h("div", { class: "form" }, h("a", { href: "https://verdocs.com/en/" }, h("img", { src: this.logo, alt: "Verdocs Logo", class: "logo" })), h("h3", null, "Forgot your password?"), h("p", null, "Enter your e-mail address below, and reset instructions will be sent to your Inbox."), h("p", null, h("em", null, "Please allow up to 24 hours for delivery, and check your spam folder if you do not receive the message. ")), h("form", { onSubmit: () => this.handleSignup() }, h("verdocs-text-input", { label: "Email", autocomplete: "email", required: true, value: this.username, onInput: (e) => (this.username = e.target.value), disabled: this.submitting }), h("div", { style: { marginTop: '30px' } }), h("div", { class: "buttons" }, h("verdocs-button", { label: "Cancel", variant: "outline", disabled: this.submitting, onClick: () => (this.displayMode = 'login') }), h("verdocs-button", { label: "Reset", disabled: this.submitting, onClick: () => this.handleReset() })))));
|
213
|
+
const invalid = this.submitting || !this.first_name || !this.last_name || !this.email || !this.password || !this.confirmpass || !this.org_name;
|
214
|
+
return (h("div", { class: "form" }, h("a", { href: "https://verdocs.com/en/" }, h("img", { src: this.logo, alt: "Verdocs Logo", class: "logo" })), h("h3", null, "Sign up for a free account"), h("h5", null, "Already have an account?", h("verdocs-button", { label: "Log In", variant: "text", onClick: () => (this.displayMode = 'login'), disabled: this.submitting })), h("form", { onSubmit: () => this.handleSignup() }, h("div", { style: { display: 'flex', flexDirection: 'row', columnGap: '20px' } }, h("verdocs-text-input", { label: "First Name", autocomplete: "first", required: true, value: this.first_name, onInput: (e) => (this.first_name = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Last Name", autocomplete: "last", required: true, value: this.last_name, onInput: (e) => (this.last_name = e.target.value), disabled: this.submitting })), h("verdocs-text-input", { label: "Email Address", autocomplete: "email", required: true, value: this.email, onInput: (e) => (this.email = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Password", type: "password", required: true, autocomplete: "new-password", value: this.password, onInput: (e) => (this.password = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Confirm Password", type: "password", required: true, autocomplete: "off", value: this.confirmpass, onInput: (e) => (this.confirmpass = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Organization Name", autocomplete: "org", required: true, value: this.org_name, onInput: (e) => (this.org_name = e.target.value), disabled: this.submitting, style: { flex: '1' } }), h("div", { style: { marginTop: '30px' } }), h("verdocs-button", { label: "Next", disabled: invalid, onClick: invalid ? () => { } : () => this.handleSignup(), style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }))));
|
215
215
|
}
|
216
216
|
if (this.displayMode === 'verify') {
|
217
|
-
return (h("div", { class: "form" }, h("
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
this.displayMode = 'login';
|
222
|
-
} }), h("verdocs-button", { label: "Resend Email", disabled: this.resendDisabled, onClick: () => this.handleResend() }))));
|
217
|
+
return (h("div", { class: "form" }, h("form", { onSubmit: () => this.handleVerification() }, h("p", null, "Please check your e-mail inbox for a verification code and enter it below."), h("verdocs-text-input", { label: "Verification Code", required: true, value: this.verificationCode, onInput: (e) => (this.verificationCode = e.target.value), disabled: this.submitting }), h("div", { class: "buttons" }, h("verdocs-button", { label: "Sign Out", variant: "outline", disabled: this.submitting, onClick: () => this.handleLogout() }), h("verdocs-button", { label: "Verify", disabled: this.submitting || !this.verificationCode || this.verificationCode.length !== 6, onClick: () => this.handleVerification() })), h("div", { class: "buttons" }, h("verdocs-button", { variant: "text", label: "Resend Code", disabled: this.resendDisabled || this.submitting, onClick: () => this.handleResend() })))));
|
218
|
+
}
|
219
|
+
if (this.displayMode === 'forgot') {
|
220
|
+
return (h("div", { class: "form" }, h("a", { href: "https://verdocs.com/en/" }, h("img", { src: this.logo, alt: "Verdocs Logo", class: "logo" })), h("h3", null, "Forgot your password?"), h("p", null, "Enter your e-mail address below, and reset instructions will be sent to your Inbox. Please allow up to 15 minutes to arrive. Check your spam folder if you do not receive the message."), h("form", { onSubmit: () => this.handleSignup() }, h("verdocs-text-input", { label: "Email Address", autocomplete: "email", required: true, value: this.email, onInput: (e) => (this.email = e.target.value), disabled: this.submitting }), h("div", { style: { marginTop: '30px' } }), h("div", { class: "buttons" }, h("verdocs-button", { label: "Cancel", variant: "outline", disabled: this.submitting, onClick: () => (this.displayMode = 'login') }), h("verdocs-button", { label: "Reset", disabled: this.submitting, onClick: () => this.handleReset() })))));
|
223
221
|
}
|
224
|
-
return (h("div", { class: "form" }, h("a", { href: "https://verdocs.com/en/" }, h("img", { src: this.logo, alt: "Verdocs Logo", class: "logo" })), h("h3", null, "Log in to your account"), h("h4", null, "Don't have an account?", h("verdocs-button", { label: "Sign Up", variant: "text", onClick: () => {
|
225
|
-
this.displayMode = 'signup';
|
226
|
-
this.signupStep = 1;
|
227
|
-
}, disabled: this.submitting })), h("form", { onSubmit: () => this.loginAndCheckVerification() }, h("verdocs-text-input", { label: "Email", autocomplete: "username", value: this.username, onInput: (e) => (this.username = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Password", type: "password", autocomplete: "current-password", value: this.password, onInput: (e) => (this.password = e.target.value), disabled: this.submitting }), h("verdocs-button", { label: "Forgot Your Password?", variant: "text", onClick: () => (this.displayMode = 'forgot'), disabled: this.submitting, style: { display: 'flex', justifyContent: 'center', margin: '10px auto 20px' } }), h("verdocs-button", { label: "Login", disabled: this.submitting, onClick: () => this.loginAndCheckVerification(), style: { display: 'flex', justifyContent: 'center', margin: '10px auto 0' } }))));
|
222
|
+
return (h("div", { class: "form" }, h("a", { href: "https://verdocs.com/en/" }, h("img", { src: this.logo, alt: "Verdocs Logo", class: "logo" })), h("h3", null, "Log in to your account"), h("h4", null, "Don't have an account?", h("verdocs-button", { label: "Sign Up", variant: "text", onClick: () => (this.displayMode = 'signup'), disabled: this.submitting })), h("form", { onSubmit: () => this.loginAndCheckVerification() }, h("verdocs-text-input", { label: "Email", autocomplete: "username", value: this.email, onInput: (e) => (this.email = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Password", type: "password", autocomplete: "current-password", value: this.password, onInput: (e) => (this.password = e.target.value), disabled: this.submitting }), h("verdocs-button", { label: "Forgot Your Password?", variant: "text", onClick: () => (this.displayMode = 'forgot'), disabled: this.submitting, style: { display: 'flex', justifyContent: 'center', margin: '10px auto 20px' } }), h("verdocs-button", { label: "Login", disabled: this.submitting, onClick: () => this.loginAndCheckVerification(), style: { display: 'flex', justifyContent: 'center', margin: '10px auto 0' } }))));
|
228
223
|
}
|
229
224
|
static get is() { return "verdocs-auth"; }
|
230
225
|
static get originalStyleUrls() {
|
@@ -301,19 +296,16 @@ export class VerdocsAuth {
|
|
301
296
|
}
|
302
297
|
static get states() {
|
303
298
|
return {
|
304
|
-
"isAuthenticated": {},
|
305
299
|
"displayMode": {},
|
306
300
|
"org_name": {},
|
307
301
|
"first_name": {},
|
308
302
|
"last_name": {},
|
309
|
-
"
|
303
|
+
"email": {},
|
304
|
+
"verificationCode": {},
|
310
305
|
"password": {},
|
306
|
+
"confirmpass": {},
|
311
307
|
"submitting": {},
|
312
|
-
"
|
313
|
-
"accountType": {},
|
314
|
-
"signupStep": {},
|
315
|
-
"resendDisabled": {},
|
316
|
-
"checkingOrg": {}
|
308
|
+
"resendDisabled": {}
|
317
309
|
};
|
318
310
|
}
|
319
311
|
static get events() {
|
@@ -5,7 +5,7 @@ export class VerdocsSearch {
|
|
5
5
|
this.endpoint = VerdocsEndpoint.getDefault();
|
6
6
|
}
|
7
7
|
render() {
|
8
|
-
return (h("div", { key: '
|
8
|
+
return (h("div", { key: '200d955b8750bfb853a491a39d2614f65c3dae2e', class: "container" }, h("verdocs-search-box", { key: '55db0748ab0102d71235903b1c668587e45ad527', endpoint: this.endpoint }), h("div", { key: '88ca9f594578f71b8abfb1fcbd1e31d455bcfb46', class: "boxes" }, h("verdocs-search-activity", { key: '7d95bd072f011865207fc0365e18d82b7875fd6a', type: "recent", endpoint: this.endpoint }), h("verdocs-search-activity", { key: 'f2f364ddb7347b7479aa5fd54d2519f7f96628ac', type: "saved", endpoint: this.endpoint }), h("verdocs-search-activity", { key: 'd504730b955a6c14cdf5d77eba96d3bb35eaf876', type: "starred", endpoint: this.endpoint }), h("verdocs-quick-functions", { key: 'dd543a416a6aab58e7566e320a20ea73f0313bce', endpoint: this.endpoint }))));
|
9
9
|
}
|
10
10
|
static get is() { return "verdocs-search"; }
|
11
11
|
static get originalStyleUrls() {
|
@@ -75,7 +75,7 @@ export class VerdocsEnvelopeDocumentPage {
|
|
75
75
|
}
|
76
76
|
render() {
|
77
77
|
const height = `${this.renderedHeight}px`;
|
78
|
-
return (h(Host, { key: '
|
78
|
+
return (h(Host, { key: '1626cbea713462254f8d518479181a39156fd599', id: `${this.containerId}`, style: { height, flex: `0 0 ${height}` } }, this.layers.map(layer => layer.type === 'div' ? (h("div", { class: "verdocs-envelope-document-page-layer", id: `${this.containerId}-${layer.name}`, style: { height } })) : this.pageDisplayUri ? (h("img", { class: "verdocs-envelope-document-page-layer img", id: `${this.containerId}-${layer.name}`, src: this.pageDisplayUri, alt: `Page ${this.pageNumber}`, "aria-hidden": true, loading: "lazy", onLoad: (e) => {
|
79
79
|
// Note that all we really care about is the aspect ratio. We track the natural Width and Height but they aren't really that
|
80
80
|
// useful as individual values. The image will already have been scaled down to fit a DIV for display (100%, auto height).
|
81
81
|
// Builder places fields offset into the rendered display area, not the original document's dimensions. So its X/Y values
|
package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.js
CHANGED
@@ -191,18 +191,18 @@ export class VerdocsEnvelopesList {
|
|
191
191
|
});
|
192
192
|
}
|
193
193
|
render() {
|
194
|
-
return (h(Host, { key: '
|
194
|
+
return (h(Host, { key: 'c97d8d4415fb171c1335d3fbef9a885329740613' }, h("div", { key: 'dc0117f6476648985fdad07525e3c10c0a4542d3', class: "header" }, h("div", { key: 'ebd6521d3e9afd5ff9883829c7f66c55f31e7659', class: "filter" }, h("verdocs-text-input", { key: 'a5c15206146898551ac7ec9e22385335d1215d0a', id: "verdocs-filter-name", value: this.match, clearable: true, autocomplete: "off", placeholder: "Filter by Name, Recipient, or Field...", onFocusout: (e) => {
|
195
195
|
var _a;
|
196
196
|
// We don't locally filter envelopes because there are too many fields to match against efficiently.
|
197
197
|
this.match = e.target.value.trim();
|
198
198
|
(_a = this.changeMatch) === null || _a === void 0 ? void 0 : _a.emit(this.match);
|
199
|
-
} })), h("verdocs-quick-filter", { key: '
|
199
|
+
} })), h("verdocs-quick-filter", { key: '497b419b0789a338264523b52e6c2f15de6d02fe', label: "View", value: this.view, options: ViewFilters, onOptionSelected: e => {
|
200
200
|
this.view = e.detail.value;
|
201
|
-
} }), this.view === 'all' && (h("verdocs-quick-filter", { key: '
|
201
|
+
} }), this.view === 'all' && (h("verdocs-quick-filter", { key: 'ca4c1472e25cf458699a5b3cbd7bd55156938a59', label: "Status", value: this.status, options: StatusFilters, onOptionSelected: e => {
|
202
202
|
this.status = e.detail.value;
|
203
|
-
} })), this.view === 'all' && (h("verdocs-quick-filter", { key: '
|
203
|
+
} })), this.view === 'all' && (h("verdocs-quick-filter", { key: '232cacdc7d067961da8d1c9482d07c6e76b84d38', label: "Sort By", value: this.sort, options: SortFilters, onOptionSelected: e => {
|
204
204
|
this.sort = e.detail.value;
|
205
|
-
} })), this.loading && h("verdocs-spinner", { key: '
|
205
|
+
} })), this.loading && h("verdocs-spinner", { key: '44c39036f7ac8358a9c8b658e533c393413dc4db', mode: "dark", size: 24 }), h("div", { key: 'f5b8246bf8cdfa9737b8675b59e44fc45df3cc06', style: { display: 'flex', flex: '1' } }), this.selectedEnvelopes.length > 0 && h("verdocs-button", { key: '9c6f32a107c15af7173ae4fd2ac16265bcc8be6f', label: `Download (${this.selectedEnvelopes.length})`, onClick: () => this.handleDownload() })), this.envelopes.map(envelope => {
|
206
206
|
var _a;
|
207
207
|
const recipientsWithActions = getRecipientsWithActions(envelope);
|
208
208
|
const userCanCancel = userCanCancelEnvelope(this.endpoint.profile, envelope);
|
@@ -243,7 +243,7 @@ export class VerdocsEnvelopesList {
|
|
243
243
|
break;
|
244
244
|
}
|
245
245
|
} }))));
|
246
|
-
}), !this.initiallyLoaded && (h("div", { key: '
|
246
|
+
}), !this.initiallyLoaded && (h("div", { key: '3008dcd8a557d2f47041455cf9fa554bbcc0b229', style: { width: '100%' } }, integerSequence(0, this.rowsPerPage).map(() => (h("div", { class: "envelope-placeholder" }))))), this.initiallyLoaded && !this.envelopes.length && h("div", { key: 'f1e6ffe23cd5c2d9cf18bafadbf0b61e70984f4d', class: "empty-text" }, "No matching envelopes found. Please adjust your filters and try again."), this.initiallyLoaded && this.envelopes.length && this.showPagination ? (h("div", { style: { marginTop: '20px' } }, h("verdocs-pagination", { selectedPage: this.selectedPage, perPage: this.rowsPerPage, itemCount: this.count, onSelectPage: e => {
|
247
247
|
this.selectedPage = e.detail.selectedPage;
|
248
248
|
} }))) : (h("div", null))));
|
249
249
|
}
|
package/dist/collection/components/envelopes/verdocs-status-indicator/verdocs-status-indicator.js
CHANGED
@@ -238,11 +238,11 @@ export class VerdocsStatusIndicator {
|
|
238
238
|
}
|
239
239
|
const icon = this.getStatusIcon(status);
|
240
240
|
const statusMessage = this.getStatusMessage(status);
|
241
|
-
return (h(Host, { key: '
|
241
|
+
return (h(Host, { key: '2f8dd56b30f867568973f33f2459fe8492fe046c', ref: el => (this.summaryComponent = el), class: `${this.theme} ${this.size} ${this.envelope ? 'has-document' : ''}`, "aria-label": "Click to View Details", onClick: e => {
|
242
242
|
e.stopPropagation();
|
243
243
|
e.preventDefault();
|
244
244
|
this.envelope && this.toggleDropdown();
|
245
|
-
}, onBlur: e => this.envelope && this.handleHideDropdown(e) }, h("span", { key: '
|
245
|
+
}, onBlur: e => this.envelope && this.handleHideDropdown(e) }, h("span", { key: '19a3fe86138e330435d14d4c8ca9db6021bb7bdc', class: "icon", innerHTML: icon }), h("span", { key: 'f7599f2ac78da17f85348dd67330abb3c6bd071c', class: "content" }, statusMessage), h("div", { key: '57be3fce89a8345d37f4599439e7641cbad6dd07', class: "detail-panel", ref: el => (this.detailPanel = el) }, h("div", { key: 'f1962e7251f027ddf9905516ba4136543d382197', id: `${this.containerId}` }), this.recipientStatusIcons.map(icon => (h("span", { innerHTML: icon.icon, style: { position: 'absolute', top: `${icon.y}px`, left: `${icon.x}px` } }))))));
|
246
246
|
}
|
247
247
|
static get is() { return "verdocs-status-indicator"; }
|
248
248
|
static get originalStyleUrls() {
|