@verdocs/web-sdk 6.5.0-beta.2 → 6.5.0-beta.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.
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-4rWXSNpE.js → utils-LPO6l9nR.js} +2 -3
- package/dist/{components/p-Btmt1DxH.js.map → cjs/utils-LPO6l9nR.js.map} +1 -1
- package/dist/cjs/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-signing-progress.verdocs-view.entry.cjs.js.map +1 -1
- package/dist/cjs/verdocs-adopt-signature-dialog_7.cjs.entry.js +11 -10
- package/dist/cjs/verdocs-contact-picker.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelope-document-page_3.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js +39 -2
- package/dist/cjs/verdocs-pagination_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-preview_7.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-sign.cjs.entry.js +76 -17
- package/dist/cjs/verdocs-sign.entry.cjs.js.map +1 -1
- package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
- package/dist/collection/components/dialogs/verdocs-adopt-signature-dialog/verdocs-adopt-signature-dialog.js +11 -10
- package/dist/collection/components/dialogs/verdocs-adopt-signature-dialog/verdocs-adopt-signature-dialog.js.map +1 -1
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.css +1 -1
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +77 -17
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js.map +1 -1
- package/dist/collection/components/fields/verdocs-field-initial/verdocs-field-initial.js +38 -1
- package/dist/collection/components/fields/verdocs-field-initial/verdocs-field-initial.js.map +1 -1
- package/dist/collection/components/fields/verdocs-field-signature/verdocs-field-signature.js +39 -1
- package/dist/collection/components/fields/verdocs-field-signature/verdocs-field-signature.js.map +1 -1
- package/dist/collection/utils/utils.js +0 -1
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/{p-kbW0me2Y.js → p-0lrmfxFN.js} +3 -3
- package/dist/components/{p-kbW0me2Y.js.map → p-0lrmfxFN.js.map} +1 -1
- package/dist/components/{p-Btmt1DxH.js → p-B3TbYvlU.js} +2 -3
- package/dist/components/p-B3TbYvlU.js.map +1 -0
- package/dist/components/{p-0p8NaKpS.js → p-B9DM7wD0.js} +23 -3
- package/dist/components/p-B9DM7wD0.js.map +1 -0
- package/dist/components/{p-C5xpynM2.js → p-BXwiCpEb.js} +3 -3
- package/dist/components/{p-C5xpynM2.js.map → p-BXwiCpEb.js.map} +1 -1
- package/dist/components/{p-QjwQw9ZJ.js → p-C7xRBNX9.js} +3 -3
- package/dist/components/{p-QjwQw9ZJ.js.map → p-C7xRBNX9.js.map} +1 -1
- package/dist/components/{p-DqqO4T0y.js → p-DCXdeiPc.js} +13 -12
- package/dist/components/p-DCXdeiPc.js.map +1 -0
- package/dist/components/{p-C1KzzI_w.js → p-DNGq3wZS.js} +3 -3
- package/dist/components/{p-C1KzzI_w.js.map → p-DNGq3wZS.js.map} +1 -1
- package/dist/components/{p-Z1wZ6-IT.js → p-DZv79sQs.js} +5 -5
- package/dist/components/{p-Z1wZ6-IT.js.map → p-DZv79sQs.js.map} +1 -1
- package/dist/components/{p-BToCx2ri.js → p-Dl45UNf-.js} +22 -3
- package/dist/components/p-Dl45UNf-.js.map +1 -0
- package/dist/components/{p-Dr4C7GlH.js → p-DzLB0MYu.js} +6 -6
- package/dist/components/{p-Dr4C7GlH.js.map → p-DzLB0MYu.js.map} +1 -1
- package/dist/components/{p-IcDkT207.js → p-INlr_V_p.js} +5 -5
- package/dist/components/{p-IcDkT207.js.map → p-INlr_V_p.js.map} +1 -1
- package/dist/components/{p-_CWDgKqX.js → p-rWeRsA_5.js} +3 -3
- package/dist/components/{p-_CWDgKqX.js.map → p-rWeRsA_5.js.map} +1 -1
- package/dist/components/verdocs-adopt-signature-dialog.js +1 -1
- package/dist/components/verdocs-build.js +7 -7
- package/dist/components/verdocs-contact-picker.js +1 -1
- package/dist/components/verdocs-envelope-document-page.js +1 -1
- package/dist/components/verdocs-envelopes-list.js +2 -2
- package/dist/components/verdocs-field-initial.js +1 -1
- package/dist/components/verdocs-field-signature.js +1 -1
- package/dist/components/verdocs-preview.js +1 -1
- package/dist/components/verdocs-quick-filter.js +1 -1
- package/dist/components/verdocs-send.js +1 -1
- package/dist/components/verdocs-sign.js +82 -22
- package/dist/components/verdocs-sign.js.map +1 -1
- package/dist/components/verdocs-template-document-page.js +1 -1
- package/dist/components/verdocs-template-fields.js +1 -1
- package/dist/components/verdocs-templates-list.js +1 -1
- package/dist/components/verdocs-view.js +1 -1
- package/dist/custom-elements.json +2422 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-NHDsmnv8.js → utils-UeubfAI_.js} +2 -3
- package/dist/{esm-es5/utils-NHDsmnv8.js.map → esm/utils-UeubfAI_.js.map} +1 -1
- package/dist/esm/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-signing-progress.verdocs-view.entry.js.map +1 -1
- package/dist/esm/verdocs-adopt-signature-dialog_7.entry.js +11 -10
- package/dist/esm/verdocs-contact-picker.entry.js +1 -1
- package/dist/esm/verdocs-envelope-document-page_3.entry.js +1 -1
- package/dist/esm/verdocs-envelopes-list.entry.js +1 -1
- package/dist/esm/verdocs-field-attachment_13.entry.js +39 -2
- package/dist/esm/verdocs-pagination_2.entry.js +1 -1
- package/dist/esm/verdocs-preview_7.entry.js +1 -1
- package/dist/esm/verdocs-sign.entry.js +76 -17
- package/dist/esm/verdocs-sign.entry.js.map +1 -1
- package/dist/esm/verdocs-template-document-page_2.entry.js +1 -1
- package/dist/esm/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{utils-NHDsmnv8.js → utils-UeubfAI_.js} +2 -2
- package/dist/{esm/utils-NHDsmnv8.js.map → esm-es5/utils-UeubfAI_.js.map} +1 -1
- package/dist/esm-es5/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-signing-progress.verdocs-view.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-adopt-signature-dialog_7.entry.js +1 -1
- package/dist/esm-es5/verdocs-adopt-signature-dialog_7.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-contact-picker.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-document-page_3.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-field-attachment_13.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-pagination_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-preview_7.entry.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-template-document-page_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js +1 -1
- package/dist/types/components/dialogs/verdocs-adopt-signature-dialog/verdocs-adopt-signature-dialog.d.ts +1 -0
- package/dist/types/components/embeds/verdocs-sign/verdocs-sign.d.ts +3 -2
- package/dist/types/components/fields/verdocs-field-initial/verdocs-field-initial.d.ts +5 -0
- package/dist/types/components/fields/verdocs-field-signature/verdocs-field-signature.d.ts +5 -0
- package/dist/types/components.d.ts +16 -0
- package/dist/verdocs-web-sdk/p-0029decb.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-0029decb.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-2439e530.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-2439e530.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-7e580691.entry.js → p-2898f573.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-94e4d921.system.entry.js → p-2ecec6ed.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-2adc75a7.system.entry.js → p-415fa16f.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-0c567c7d.entry.js → p-464ef358.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-fe64576a.system.entry.js → p-46991fe7.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-9a7a9d7b.system.entry.js → p-4a19fbe3.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-0b57c1ef.system.entry.js → p-605b48fa.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-64d8ea72.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-64d8ea72.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-64e896e9.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-64e896e9.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-0709e936.system.entry.js → p-78e8e398.system.entry.js} +3 -3
- package/dist/verdocs-web-sdk/p-99ba5e3b.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-99ba5e3b.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-303ed47f.entry.js → p-9cdc0980.entry.js} +3 -3
- package/dist/verdocs-web-sdk/{p-BRVQ3Epx.system.js.map → p-B0XOGp0Z.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/p-B8zpaHu-.system.js +1 -1
- package/dist/verdocs-web-sdk/{p-BU5y2rcs.system.js → p-BAU98X36.system.js} +2 -2
- package/dist/verdocs-web-sdk/{p-BU5y2rcs.system.js.map → p-BAU98X36.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/p-BgTW-H9_.system.js.map +1 -0
- package/dist/verdocs-web-sdk/p-CAlOUHPb.system.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-nK4J4UFK.js → p-CmnR51jO.js} +2 -2
- package/dist/verdocs-web-sdk/{p-nK4J4UFK.js.map → p-CmnR51jO.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-CogJ52UV.system.js.map → p-D-LZAEE-.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/p-Dj3cajbH.system.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-B_fwtKg3.system.js.map → p-O_JBau3u.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-B8lqLcUJ.system.js.map → p-XPySISfx.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-831ff4eb.entry.js → p-ab8ba727.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-d06e0bce.entry.js → p-ae75565d.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-acc245e6.entry.js → p-d5fc15ee.entry.js} +3 -3
- package/dist/verdocs-web-sdk/p-db5c9ec4.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-db5c9ec4.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-CyjSP4tG.system.js.map → p-k2jmkyZp.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-C9hmmFhm.system.js.map → p-xFl_XV91.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-signing-progress.verdocs-view.entry.esm.js.map +1 -1
- 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 +2 -2
- package/dist/cjs/utils-4rWXSNpE.js.map +0 -1
- package/dist/components/p-0p8NaKpS.js.map +0 -1
- package/dist/components/p-BToCx2ri.js.map +0 -1
- package/dist/components/p-DqqO4T0y.js.map +0 -1
- package/dist/verdocs-web-sdk/p-0dfacde9.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-0dfacde9.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-3c45dd79.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-3c45dd79.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-8ad09d97.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-8ad09d97.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-BcrrIlhF.system.js.map +0 -1
- package/dist/verdocs-web-sdk/p-DZW111-z.system.js.map +0 -1
- package/dist/verdocs-web-sdk/p-c676d027.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-c676d027.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-dc1eaf38.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-dc1eaf38.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-fef8b6b5.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-fef8b6b5.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-gCoMHihf.system.js.map +0 -1
- /package/dist/verdocs-web-sdk/{p-7e580691.entry.js.map → p-2898f573.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-94e4d921.system.entry.js.map → p-2ecec6ed.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-2adc75a7.system.entry.js.map → p-415fa16f.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-0c567c7d.entry.js.map → p-464ef358.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-fe64576a.system.entry.js.map → p-46991fe7.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-9a7a9d7b.system.entry.js.map → p-4a19fbe3.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-0b57c1ef.system.entry.js.map → p-605b48fa.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-0709e936.system.entry.js.map → p-78e8e398.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-303ed47f.entry.js.map → p-9cdc0980.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-831ff4eb.entry.js.map → p-ab8ba727.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-d06e0bce.entry.js.map → p-ae75565d.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-acc245e6.entry.js.map → p-d5fc15ee.entry.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as VerdocsQuickFilter$1, d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { V as VerdocsQuickFilter$1, d as defineCustomElement$1 } from './p-DNGq3wZS.js';
|
|
2
2
|
|
|
3
3
|
const VerdocsQuickFilter = VerdocsQuickFilter$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, c as createEvent, h, d as Host, F as Fragment } from './p-CUAGH_8P.js';
|
|
2
2
|
import { VerdocsEndpoint, DEFAULT_DISCLOSURES, startSigningSession, envelopeRecipientAgree, updateEnvelopeField, createSignature, createInitials, sortFields, envelopeRecipientSubmit, isFieldFilled, isFieldValid, uploadEnvelopeFieldAttachment, deleteEnvelopeFieldAttachment, formatFullName, fullNameToInitials, verifySigner, delegateRecipient, askQuestion, integerSequence, envelopeRecipientDecline } from '@verdocs/js-sdk';
|
|
3
|
-
import { a as saveAttachment, u as updateDocumentFieldValue, g as getFieldId, r as renderDocumentFlag, b as renderDocumentField, d as defaultHeight } from './p-
|
|
3
|
+
import { a as saveAttachment, u as updateDocumentFieldValue, g as getFieldId, r as renderDocumentFlag, b as renderDocumentField, d as defaultHeight } from './p-B3TbYvlU.js';
|
|
4
4
|
import { V as VerdocsToast } from './p-CyvDgtoV.js';
|
|
5
5
|
import { S as SDKError } from './p-C1sRVZWv.js';
|
|
6
6
|
import { S as Store } from './p-DmsV595e.js';
|
|
7
|
-
import { d as defineCustomElement$o } from './p-
|
|
7
|
+
import { d as defineCustomElement$o } from './p-DCXdeiPc.js';
|
|
8
8
|
import { d as defineCustomElement$n } from './p-CfODrICH.js';
|
|
9
9
|
import { d as defineCustomElement$m } from './p-mThpW9TM.js';
|
|
10
10
|
import { d as defineCustomElement$l } from './p-COHr9dCI.js';
|
|
11
11
|
import { d as defineCustomElement$k } from './p-C4QDSG_D.js';
|
|
12
12
|
import { d as defineCustomElement$j } from './p-DWDOlfFM.js';
|
|
13
13
|
import { d as defineCustomElement$i } from './p-DnQQamHR.js';
|
|
14
|
-
import { d as defineCustomElement$h } from './p-
|
|
14
|
+
import { d as defineCustomElement$h } from './p-BXwiCpEb.js';
|
|
15
15
|
import { d as defineCustomElement$g } from './p-CHLvWYEx.js';
|
|
16
16
|
import { d as defineCustomElement$f } from './p-D9zjm5AL.js';
|
|
17
17
|
import { d as defineCustomElement$e } from './p-C-NHtu_d.js';
|
|
@@ -26,9 +26,9 @@ import { d as defineCustomElement$6 } from './p-BJ1x02dk.js';
|
|
|
26
26
|
import { d as defineCustomElement$5 } from './p-C25OmrD6.js';
|
|
27
27
|
import { d as defineCustomElement$4 } from './p--A9ydKVE.js';
|
|
28
28
|
import { d as defineCustomElement$3 } from './p-BqBR9AeQ.js';
|
|
29
|
-
import { d as defineCustomElement$2 } from './p-
|
|
29
|
+
import { d as defineCustomElement$2 } from './p-C7xRBNX9.js';
|
|
30
30
|
|
|
31
|
-
const verdocsSignCss = "@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-sign{display:-ms-flexbox;display:flex;overflow:hidden;
|
|
31
|
+
const verdocsSignCss = "@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-sign{display:-ms-flexbox;display:flex;overflow:hidden;min-height:700px;position:relative;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#f5f5f5;font-family:var(--verdocs-primary-font, \"Inter\", \"Barlow\", sans-serif)}verdocs-sign verdocs-button>button.standard{background:#2a63f6}verdocs-sign div{display:block;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-sign input{vertical-align:top}verdocs-sign>.document{-ms-flex:1;flex:1;width:100%;height:100%;-ms-flex-item-align:center;align-self:center;display:-ms-flexbox;display:flex;padding:15px;padding-right:140px;row-gap:15px;max-width:1200px;min-height:200px;position:relative;overflow-y:scroll;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-sign>.document .inner{width:100%;max-width:1028px}verdocs-sign .cover{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:5000;position:absolute;padding-top:100px;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;background:rgba(0, 0, 0, 0.5)}verdocs-sign verdocs-ok-dialog .background-overlay{-ms-flex-align:start;align-items:flex-start;padding-top:100px}verdocs-sign .loading-indicator{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:10000;position:fixed;background-color:rgba(0, 0, 0, 0.7)}verdocs-sign .fatal-error{position:absolute;z-index:100;top:0;left:0;right:0;bottom:0;background-color:#4a4a4a;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-sign .fatal-error .placeholder{position:absolute;opacity:0.1;z-index:-1;top:0;left:0;right:0;bottom:0;width:612px;height:792px;-webkit-box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294);box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294);margin-top:15px}verdocs-sign .fatal-error .message{max-width:360px;width:50%;font-size:16px;background:white;-webkit-box-shadow:3px 3px 9px -1px rgba(0, 0, 0, 0.2470588235);box-shadow:3px 3px 9px -1px rgba(0, 0, 0, 0.2470588235)}verdocs-sign .fatal-error .header{color:white;font-size:18px;font-weight:500;padding:5px 10px;margin:0 0 10px 0;background:#4c56cb}verdocs-sign .fatal-error p{margin:1rem;font-size:14px;font-weight:400;padding:0 10px}@media print{verdocs-sign .header{display:none}}#verdocs-sign-header{color:#fff;width:100%;display:-ms-flexbox;display:flex;z-index:1000;-ms-flex:0 0 46px;flex:0 0 46px;font-size:12px;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-webkit-transition:all 0.25s;transition:all 0.25s;background-color:#33354c;-webkit-box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12);box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12)}#verdocs-sign-header .inner{width:100%;display:-ms-flexbox;display:flex;margin:0 auto;padding:0 12px;max-width:1200px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}#verdocs-sign-header .logo{width:80px;display:none;margin:-6px 0 0 0}#verdocs-sign-header .title{font-size:18px;font-weight:500;overflow:hidden;white-space:nowrap;padding:0 10px 0 0;text-overflow:ellipsis}.spinner-overlay{position:fixed;top:0;left:0;right:0;bottom:0;z-index:1000;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background:rgba(0, 0, 0, 0.4980392157);-ms-flex-pack:center;justify-content:center}";
|
|
32
32
|
|
|
33
33
|
const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsSign extends H {
|
|
34
34
|
constructor(registerHost) {
|
|
@@ -79,11 +79,13 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsSign extends
|
|
|
79
79
|
this.submitted = false;
|
|
80
80
|
this.isDone = false;
|
|
81
81
|
this.showDone = false;
|
|
82
|
-
this.
|
|
82
|
+
this.adoptingSignature = false;
|
|
83
83
|
this.showLoadError = false;
|
|
84
84
|
this.finishLater = false;
|
|
85
85
|
this.showFinishLater = false;
|
|
86
86
|
this.agreed = false;
|
|
87
|
+
this.signatureId = null;
|
|
88
|
+
this.initialId = null;
|
|
87
89
|
this.documentsSingularPlural = 'document';
|
|
88
90
|
this.authStep = null;
|
|
89
91
|
this.authMethodStates = {};
|
|
@@ -92,7 +94,6 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsSign extends
|
|
|
92
94
|
this.declining = false;
|
|
93
95
|
this.delegating = false;
|
|
94
96
|
this.delegated = false;
|
|
95
|
-
this.startedSigning = false;
|
|
96
97
|
this.kbaChoices = [];
|
|
97
98
|
this.loading = true;
|
|
98
99
|
this.envelope = null;
|
|
@@ -135,7 +136,7 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsSign extends
|
|
|
135
136
|
}
|
|
136
137
|
}
|
|
137
138
|
processAuthResponse(response) {
|
|
138
|
-
var _a, _b, _c;
|
|
139
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
139
140
|
const { envelope, recipient } = response;
|
|
140
141
|
const { auth_step } = recipient;
|
|
141
142
|
this.recipient = recipient;
|
|
@@ -144,6 +145,8 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsSign extends
|
|
|
144
145
|
this.authStep = auth_step;
|
|
145
146
|
this.delegated = !!recipient.delegated_to;
|
|
146
147
|
this.agreed = recipient.agreed;
|
|
148
|
+
this.signatureId = ((_d = (_c = response.signatures) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.id) || null;
|
|
149
|
+
this.initialId = ((_f = (_e = response.initials) === null || _e === void 0 ? void 0 : _e[0]) === null || _f === void 0 ? void 0 : _f.id) || null;
|
|
147
150
|
this.submitted = recipient.status === 'submitted';
|
|
148
151
|
this.loading = false;
|
|
149
152
|
this.isDone = this.submitted;
|
|
@@ -173,7 +176,7 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsSign extends
|
|
|
173
176
|
this.nextButtonLabel = 'Next';
|
|
174
177
|
}
|
|
175
178
|
this.checkRecipientFields();
|
|
176
|
-
(
|
|
179
|
+
(_g = this.envelopeLoaded) === null || _g === void 0 ? void 0 : _g.emit({ endpoint: this.endpoint, envelope: this.envelope });
|
|
177
180
|
}
|
|
178
181
|
handleClickAgree() {
|
|
179
182
|
this.submitting = true;
|
|
@@ -285,15 +288,35 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsSign extends
|
|
|
285
288
|
// This can be caused by a focus-out event if the user clicks the field
|
|
286
289
|
// after it's already filled in, then clicks something else like a textbox.
|
|
287
290
|
// We don't visually indicate the focus, but it's still there.
|
|
288
|
-
|
|
291
|
+
// NOTE: We now allow null to clear the field
|
|
292
|
+
if (e.detail === undefined) {
|
|
289
293
|
return;
|
|
290
294
|
}
|
|
295
|
+
if (e.detail === null) {
|
|
296
|
+
console.log('[SIGN] Clearing initial');
|
|
297
|
+
const updateResult = await updateEnvelopeField(this.endpoint, this.envelopeId, this.roleId, field.name, null, false);
|
|
298
|
+
return this.updateRecipientFieldValue(field.name, updateResult);
|
|
299
|
+
}
|
|
300
|
+
// If we already have an initials block, apply it
|
|
301
|
+
if (this.initialId) {
|
|
302
|
+
console.log('[SIGN] Reusing initial', this.initialId);
|
|
303
|
+
const updateResult = await updateEnvelopeField(this.endpoint, this.envelopeId, this.roleId, field.name, this.initialId, false);
|
|
304
|
+
return this.updateRecipientFieldValue(field.name, updateResult);
|
|
305
|
+
}
|
|
306
|
+
// If it's a UUID, it's an existing initial ID we can just reuse
|
|
307
|
+
if (typeof e.detail === 'string' && /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e.detail)) {
|
|
308
|
+
console.log('[SIGN] Reusing initial', e.detail);
|
|
309
|
+
const updateResult = await updateEnvelopeField(this.endpoint, this.envelopeId, this.roleId, field.name, e.detail, false);
|
|
310
|
+
this.initialId = e.detail;
|
|
311
|
+
return this.updateRecipientFieldValue(field.name, updateResult);
|
|
312
|
+
}
|
|
291
313
|
this.showSpinner = true;
|
|
292
314
|
const initialsBlob = await (await fetch(e.detail)).blob();
|
|
293
315
|
return createInitials(this.endpoint, 'initial', initialsBlob) //
|
|
294
316
|
.then(async (newInitials) => {
|
|
295
317
|
const updateResult = await updateEnvelopeField(this.endpoint, this.envelopeId, this.roleId, field.name, newInitials.id, false);
|
|
296
318
|
this.updateRecipientFieldValue(field.name, updateResult);
|
|
319
|
+
this.initialId = newInitials.id;
|
|
297
320
|
this.showSpinner = false;
|
|
298
321
|
})
|
|
299
322
|
.catch(e => {
|
|
@@ -305,16 +328,37 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsSign extends
|
|
|
305
328
|
// This can be caused by a focus-out event if the user clicks the field
|
|
306
329
|
// after it's already filled in, then clicks something else like a textbox.
|
|
307
330
|
// We don't visually indicate the focus, but it's still there.
|
|
308
|
-
|
|
331
|
+
// NOTE: We now allow null to clear the field
|
|
332
|
+
if (e.detail === undefined) {
|
|
309
333
|
return;
|
|
310
334
|
}
|
|
335
|
+
if (e.detail === null) {
|
|
336
|
+
console.log('[SIGN] Clearing signature');
|
|
337
|
+
const updateResult = await updateEnvelopeField(this.endpoint, this.envelopeId, this.roleId, field.name, null, false);
|
|
338
|
+
return this.updateRecipientFieldValue(field.name, updateResult);
|
|
339
|
+
}
|
|
340
|
+
// If we already have a signature block, apply it
|
|
341
|
+
if (this.signatureId) {
|
|
342
|
+
console.log('[SIGN] Reusing signature', this.signatureId);
|
|
343
|
+
const updateResult = await updateEnvelopeField(this.endpoint, this.envelopeId, this.roleId, field.name, this.signatureId, false);
|
|
344
|
+
return this.updateRecipientFieldValue(field.name, updateResult);
|
|
345
|
+
}
|
|
346
|
+
// If it's a UUID, it's an existing signature ID we can just reuse
|
|
347
|
+
if (typeof e.detail === 'string' && /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e.detail)) {
|
|
348
|
+
console.log('[SIGN] Reusing signature', e.detail);
|
|
349
|
+
const updateResult = await updateEnvelopeField(this.endpoint, this.envelopeId, this.roleId, field.name, e.detail, false);
|
|
350
|
+
this.signatureId = e.detail;
|
|
351
|
+
return this.updateRecipientFieldValue(field.name, updateResult);
|
|
352
|
+
}
|
|
311
353
|
this.showSpinner = true;
|
|
312
354
|
const signatureBlob = await (await fetch(e.detail)).blob();
|
|
355
|
+
console.log('[SIGN] Creating new signature');
|
|
313
356
|
return createSignature(this.endpoint, 'signature', signatureBlob) //
|
|
314
357
|
.then(async (newSignature) => {
|
|
315
358
|
console.log('Signature update result', newSignature);
|
|
316
359
|
const updateResult = await updateEnvelopeField(this.endpoint, this.envelopeId, this.roleId, field.name, newSignature.id, false);
|
|
317
360
|
this.updateRecipientFieldValue(field.name, updateResult);
|
|
361
|
+
this.signatureId = newSignature.id;
|
|
318
362
|
this.showSpinner = false;
|
|
319
363
|
})
|
|
320
364
|
.catch(e => {
|
|
@@ -526,7 +570,6 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsSign extends
|
|
|
526
570
|
showSkip = true;
|
|
527
571
|
}
|
|
528
572
|
}
|
|
529
|
-
console.log('[SIGN] Render flag', winner.name, winner.y, winner.height);
|
|
530
573
|
renderDocumentFlag(pageInfo, winner.y, winner.height || defaultHeight(winner.type), {
|
|
531
574
|
variant,
|
|
532
575
|
label,
|
|
@@ -620,6 +663,12 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsSign extends
|
|
|
620
663
|
const fullName = formatFullName(this.recipient);
|
|
621
664
|
el.setAttribute('initials', fullNameToInitials(fullName));
|
|
622
665
|
el.setAttribute('name', fullName);
|
|
666
|
+
if (this.signatureId) {
|
|
667
|
+
el.setAttribute('signatureid', this.signatureId);
|
|
668
|
+
}
|
|
669
|
+
if (this.initialId) {
|
|
670
|
+
el.setAttribute('initialid', this.initialId);
|
|
671
|
+
}
|
|
623
672
|
}
|
|
624
673
|
handlePageRendered(e) {
|
|
625
674
|
const pageInfo = e.detail;
|
|
@@ -796,9 +845,9 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsSign extends
|
|
|
796
845
|
: console.log('[SIGN] All field valid');
|
|
797
846
|
return (h(Host, null, h("div", { id: "verdocs-sign-header" }, h("div", { class: "inner" }, h("img", { src: "https://verdocs.com/assets/white-logo.svg", alt: "Verdocs Logo", class: "logo" }), h("div", { class: "title" }, this.envelope.name), h("div", { style: { flex: '1' } }), !this.finishLater && h("verdocs-button", { size: "xsmall", label: this.nextButtonLabel, disabled: !this.agreed || this.submitting, onClick: () => this.handleNext() }), h("div", { style: { marginLeft: '10px' } }), h("verdocs-dropdown", { options: !this.isDone && !this.finishLater ? inProgressMenuOptions : doneMenuOptions, onOptionSelected: e => this.handleOptionSelected(e) }))), (() => {
|
|
798
847
|
const focusedFieldObj = this.getSortedFillableFields().find(f => f.name === this.focusedField);
|
|
799
|
-
return (h("verdocs-signing-progress", { mode: this.nextSubmits ? 'completed' :
|
|
800
|
-
this.
|
|
801
|
-
this.handleNext();
|
|
848
|
+
return (h("verdocs-signing-progress", { mode: this.nextSubmits ? 'completed' : 'start', current: Math.max(1, this.getSortedFillableFields().findIndex(f => f.name === this.focusedField) + 1), total: this.getSortedFillableFields().length, fieldLabel: (focusedFieldObj === null || focusedFieldObj === void 0 ? void 0 : focusedFieldObj.label) || (focusedFieldObj === null || focusedFieldObj === void 0 ? void 0 : focusedFieldObj.name) || '', fieldCompleted: focusedFieldObj ? !!isFieldFilled(focusedFieldObj, this.getRecipientFields()) : false, onStarted: () => {
|
|
849
|
+
this.adoptingSignature = true;
|
|
850
|
+
// this.handleNext();
|
|
802
851
|
}, onNext: () => this.handleNext(), onPrevious: () => this.handlePrev(), onExit: () => this.handleNext() }));
|
|
803
852
|
})(), h("div", { class: "document", style: { width: '64%', marginLeft: '260px' } }, (this.envelope.documents || []).map(envelopeDocument => {
|
|
804
853
|
const pageNumbers = integerSequence(1, envelopeDocument.pages);
|
|
@@ -823,11 +872,21 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsSign extends
|
|
|
823
872
|
} })), this.showDone && (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.`, onNext: () => {
|
|
824
873
|
this.showDone = false;
|
|
825
874
|
this.isDone = true;
|
|
826
|
-
} })), this.
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
875
|
+
} })), this.adoptingSignature && (h("verdocs-adopt-signature-dialog", { name: formatFullName(this.recipient), onNext: async (e) => {
|
|
876
|
+
console.log('[SIGN] Adopting signature/initials block', e.detail);
|
|
877
|
+
this.showSpinner = true;
|
|
878
|
+
// These arrive as base-64 encoded data URLs
|
|
879
|
+
const signatureBlob = await (await fetch(e.detail.signature)).blob();
|
|
880
|
+
const initialsBlob = await (await fetch(e.detail.initials)).blob();
|
|
881
|
+
const sigResult = await createSignature(this.endpoint, 'signature', signatureBlob);
|
|
882
|
+
console.log('[SIGN] Created signature', sigResult);
|
|
883
|
+
this.signatureId = sigResult.id;
|
|
884
|
+
const initResult = await createInitials(this.endpoint, 'initial', initialsBlob);
|
|
885
|
+
console.log('[SIGN] Created initials', initResult);
|
|
886
|
+
this.initialId = initResult.id;
|
|
887
|
+
this.showSpinner = false;
|
|
888
|
+
this.adoptingSignature = false;
|
|
889
|
+
}, onExit: () => (this.adoptingSignature = false) })), (this.submitting || this.showSpinner) && (h("verdocs-portal", null, h("div", { class: "spinner-overlay" }, h("verdocs-spinner", null)))), !this.loading && !this.isDone && (h("verdocs-sign-footer", { endpoint: this.endpoint, envelopeId: this.envelopeId, isDone: this.isDone, onAskQuestion: (e) => {
|
|
831
890
|
askQuestion(this.endpoint, this.envelopeId, this.roleId, { question: e.detail.question })
|
|
832
891
|
.then(() => VerdocsToast('Your question has been sent.', { style: 'success' }))
|
|
833
892
|
.catch(e => {
|
|
@@ -855,11 +914,13 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsSign extends
|
|
|
855
914
|
"submitted": [32],
|
|
856
915
|
"isDone": [32],
|
|
857
916
|
"showDone": [32],
|
|
858
|
-
"
|
|
917
|
+
"adoptingSignature": [32],
|
|
859
918
|
"showLoadError": [32],
|
|
860
919
|
"finishLater": [32],
|
|
861
920
|
"showFinishLater": [32],
|
|
862
921
|
"agreed": [32],
|
|
922
|
+
"signatureId": [32],
|
|
923
|
+
"initialId": [32],
|
|
863
924
|
"documentsSingularPlural": [32],
|
|
864
925
|
"authStep": [32],
|
|
865
926
|
"authMethodStates": [32],
|
|
@@ -868,7 +929,6 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsSign extends
|
|
|
868
929
|
"declining": [32],
|
|
869
930
|
"delegating": [32],
|
|
870
931
|
"delegated": [32],
|
|
871
|
-
"startedSigning": [32],
|
|
872
932
|
"kbaChoices": [32],
|
|
873
933
|
"loading": [32],
|
|
874
934
|
"envelope": [32]
|