@verdocs/web-sdk 1.12.30 → 1.12.32
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/{Envelopes-d28eaba2.js → Envelopes-f81d02b1.js} +6 -1
- package/dist/cjs/{VerdocsEndpoint-a27c59d0.js → VerdocsEndpoint-e0d39762.js} +324 -0
- package/dist/cjs/{interact.min-5a50a2ac.js → interact.min-29d23a9c.js} +1 -1
- package/dist/cjs/{utils-6f0ef095.js → utils-aa7160e9.js} +1 -1
- package/dist/cjs/verdocs-auth.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-build.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-button-panel_3.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-contact-picker.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-dropdown_2.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-field-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-field-date.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-field-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-field-initial.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-field-payment.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-field-radio-button.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-field-signature.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-field-textarea.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-field-textbox.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-field-timestamp.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-preview.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-quick-functions_3.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-search.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-send.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-sign.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-template-attachments.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-create_2.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-template-document-page.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-template-name.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-properties.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-reminders.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-role-properties_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-roles.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-template-visibility.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-view.cjs.entry.js +6 -5
- package/dist/collection/components/elements/verdocs-envelope-document-page/verdocs-envelope-document-page.js +1 -1
- package/dist/collection/components/embeds/verdocs-view/verdocs-view.js +3 -2
- package/dist/components/Envelopes.js +6 -1
- package/dist/components/VerdocsEndpoint.js +324 -0
- package/dist/components/verdocs-envelope-document-page2.js +1 -1
- package/dist/components/verdocs-view2.js +3 -2
- package/dist/docs.json +4 -4
- package/dist/esm/{Envelopes-36b1d722.js → Envelopes-19a6e456.js} +6 -1
- package/dist/esm/{VerdocsEndpoint-0292f9e8.js → VerdocsEndpoint-d0a126c0.js} +324 -0
- package/dist/esm/{interact.min-00a7df3b.js → interact.min-ad5c452f.js} +1 -1
- package/dist/esm/{utils-8f3dd731.js → utils-9628af35.js} +1 -1
- package/dist/esm/verdocs-auth.entry.js +1 -1
- package/dist/esm/verdocs-build.entry.js +1 -1
- package/dist/esm/verdocs-button-panel_3.entry.js +1 -1
- package/dist/esm/verdocs-contact-picker.entry.js +1 -1
- package/dist/esm/verdocs-dropdown_2.entry.js +4 -4
- package/dist/esm/verdocs-envelope-sidebar.entry.js +2 -2
- package/dist/esm/verdocs-field-checkbox.entry.js +2 -2
- package/dist/esm/verdocs-field-date.entry.js +2 -2
- package/dist/esm/verdocs-field-dropdown.entry.js +2 -2
- package/dist/esm/verdocs-field-initial.entry.js +2 -2
- package/dist/esm/verdocs-field-payment.entry.js +2 -2
- package/dist/esm/verdocs-field-radio-button.entry.js +2 -2
- package/dist/esm/verdocs-field-signature.entry.js +2 -2
- package/dist/esm/verdocs-field-textarea.entry.js +2 -2
- package/dist/esm/verdocs-field-textbox.entry.js +3 -3
- package/dist/esm/verdocs-field-timestamp.entry.js +2 -2
- package/dist/esm/verdocs-preview.entry.js +3 -3
- package/dist/esm/verdocs-quick-functions_3.entry.js +1 -1
- package/dist/esm/verdocs-search.entry.js +1 -1
- package/dist/esm/verdocs-send.entry.js +3 -3
- package/dist/esm/verdocs-sign.entry.js +3 -3
- package/dist/esm/verdocs-template-attachments.entry.js +1 -1
- package/dist/esm/verdocs-template-create_2.entry.js +4 -4
- package/dist/esm/verdocs-template-document-page.entry.js +3 -3
- package/dist/esm/verdocs-template-name.entry.js +1 -1
- package/dist/esm/verdocs-template-properties.entry.js +1 -1
- package/dist/esm/verdocs-template-reminders.entry.js +1 -1
- package/dist/esm/verdocs-template-role-properties_2.entry.js +1 -1
- package/dist/esm/verdocs-template-roles.entry.js +4 -4
- package/dist/esm/verdocs-template-visibility.entry.js +1 -1
- package/dist/esm/verdocs-view.entry.js +6 -5
- package/dist/esm-es5/{Envelopes-36b1d722.js → Envelopes-19a6e456.js} +1 -1
- package/dist/esm-es5/VerdocsEndpoint-d0a126c0.js +1 -0
- package/dist/esm-es5/{interact.min-00a7df3b.js → interact.min-ad5c452f.js} +1 -1
- package/dist/esm-es5/{utils-8f3dd731.js → utils-9628af35.js} +1 -1
- package/dist/esm-es5/verdocs-auth.entry.js +1 -1
- package/dist/esm-es5/verdocs-build.entry.js +1 -1
- package/dist/esm-es5/verdocs-button-panel_3.entry.js +1 -1
- package/dist/esm-es5/verdocs-contact-picker.entry.js +1 -1
- package/dist/esm-es5/verdocs-dropdown_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-checkbox.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-date.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-dropdown.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-initial.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-payment.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-radio-button.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-signature.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-textarea.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-textbox.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-timestamp.entry.js +1 -1
- package/dist/esm-es5/verdocs-preview.entry.js +1 -1
- package/dist/esm-es5/verdocs-quick-functions_3.entry.js +1 -1
- package/dist/esm-es5/verdocs-search.entry.js +1 -1
- package/dist/esm-es5/verdocs-send.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-attachments.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-create_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-document-page.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-name.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-properties.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-reminders.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-role-properties_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-roles.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-visibility.entry.js +1 -1
- package/dist/esm-es5/verdocs-view.entry.js +1 -1
- package/dist/verdocs-web-sdk/{p-496d6b16.system.entry.js → p-06866a49.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-247da917.entry.js → p-0739d739.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-3daf832f.system.entry.js → p-0ba7360f.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-e4e5071d.system.entry.js → p-0c5c9ebf.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-1eafc7a0.system.js → p-0d81757b.system.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9655064d.system.entry.js → p-13b8ec6f.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-a295a639.entry.js → p-1aecc86f.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-b3af85e4.entry.js → p-1da14840.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-86fac8d0.system.entry.js → p-1e44ea9c.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-74eaa63f.entry.js → p-1ec06377.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-0f5891ac.system.entry.js → p-1ecc4e7f.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ea483104.system.entry.js → p-2441a163.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-3613d3dc.entry.js → p-2abbbad7.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-969fae3c.entry.js → p-2dac6972.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-b31fcf53.entry.js → p-2fda790b.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-f943ef3f.system.entry.js → p-3867c364.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-b09befc3.system.entry.js → p-3b64f016.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-287055b4.system.entry.js → p-3f9bea4d.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-14d40c91.entry.js → p-456969a5.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-2dd9f54e.entry.js → p-563d545d.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-bc2f4aa2.system.entry.js → p-58a9048a.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-5c043400.system.js +1 -0
- package/dist/verdocs-web-sdk/{p-562df70d.system.entry.js → p-5e3bccd0.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-f712083b.entry.js → p-61338680.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-1d07b8a3.system.entry.js → p-6316a549.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-c155c417.entry.js → p-693c98c5.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-8014232c.system.entry.js → p-6b3102b2.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-6caf1137.system.js +1 -1
- package/dist/verdocs-web-sdk/p-6cf864e3.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-d451872f.system.entry.js → p-6e38f3c4.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-65c4e99e.system.entry.js → p-6f828ccb.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-432685cb.js → p-7448182b.js} +1 -1
- package/dist/verdocs-web-sdk/{p-b902f48f.system.entry.js → p-74f6ca70.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-280cd415.entry.js → p-76c4d3dd.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9bcb75b4.system.entry.js → p-789d66cd.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-8617c5eb.system.entry.js → p-85281871.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-f410d5fe.system.entry.js → p-94a2f261.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-dfc24cb9.system.entry.js → p-98098fad.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-aa93eb93.entry.js → p-992ae721.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-04f4dcb0.system.js → p-9a20f533.system.js} +1 -1
- package/dist/verdocs-web-sdk/{p-173a5335.js → p-9b2db78f.js} +1 -1
- package/dist/verdocs-web-sdk/{p-23c65287.entry.js → p-a2438331.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-751c0320.system.entry.js → p-a4051110.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-b584e124.system.entry.js → p-a9f19c58.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d2bd9d44.entry.js → p-ae6303f9.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-c04c0594.system.entry.js → p-aeb488e3.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-3d6f06eb.entry.js → p-b87ca18d.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-6d9dbcfc.entry.js → p-b8bb5a01.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-547dabc5.system.entry.js → p-b8c14498.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-2985b884.entry.js → p-b97237fa.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ad8b7388.entry.js → p-b9fc620d.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-6066c7ed.entry.js → p-baf138a0.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-736b6b76.system.entry.js → p-c43c8a31.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-c58fd28c.js +1 -0
- package/dist/verdocs-web-sdk/{p-6a4e1c60.system.entry.js → p-cb583a98.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-940b3de0.entry.js → p-cd0bdac3.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-87697f26.entry.js → p-d1fbad63.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-db003554.system.js +1 -0
- package/dist/verdocs-web-sdk/{p-fea0e89e.entry.js → p-e120905e.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-4fd92b61.system.entry.js → p-e2275465.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-cb49f62f.system.entry.js → p-e62c3c9c.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-57fec2cb.system.entry.js → p-e7e3af7e.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-11dc8218.entry.js → p-e9b21d78.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-38f695d1.entry.js → p-ed095623.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-daf80d85.entry.js → p-f15e84fb.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ccc45daa.entry.js → p-f3bcd729.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d37ebdb0.entry.js → p-f4cb1692.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-75525ad4.system.entry.js → p-f6e5de8f.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-55c4e7b2.entry.js → p-f92ff2d2.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-3ff28091.js → p-fb86b102.js} +1 -1
- package/dist/verdocs-web-sdk/{p-f1e76d7a.entry.js → p-fd73ee30.entry.js} +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +2 -2
- package/dist/esm-es5/VerdocsEndpoint-0292f9e8.js +0 -1
- package/dist/verdocs-web-sdk/p-6d371383.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-91fe136b.system.js +0 -1
- package/dist/verdocs-web-sdk/p-9a923b15.js +0 -1
- package/dist/verdocs-web-sdk/p-e9d5230f.system.js +0 -1
@@ -3,12 +3,12 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
const index = require('./index-67233b76.js');
|
6
|
-
const Envelopes = require('./Envelopes-
|
6
|
+
const Envelopes = require('./Envelopes-f81d02b1.js');
|
7
7
|
require('./Types-35abf4e8.js');
|
8
|
-
const VerdocsEndpoint = require('./VerdocsEndpoint-
|
8
|
+
const VerdocsEndpoint = require('./VerdocsEndpoint-e0d39762.js');
|
9
9
|
const Validators = require('./Validators-16e6d7d1.js');
|
10
10
|
const Primitives = require('./Primitives-be5088cb.js');
|
11
|
-
const utils = require('./utils-
|
11
|
+
const utils = require('./utils-aa7160e9.js');
|
12
12
|
const errors = require('./errors-0396da3d.js');
|
13
13
|
require('./Files-4bdc0c0f.js');
|
14
14
|
require('./index-6528b430.js');
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
5
5
|
const index = require('./index-67233b76.js');
|
6
6
|
require('./Types-35abf4e8.js');
|
7
|
-
const VerdocsEndpoint = require('./VerdocsEndpoint-
|
7
|
+
const VerdocsEndpoint = require('./VerdocsEndpoint-e0d39762.js');
|
8
8
|
const templateStore = require('./templateStore-1862f03c.js');
|
9
9
|
const Templates = require('./Templates-6705a1ce.js');
|
10
10
|
const errors = require('./errors-0396da3d.js');
|
@@ -6,14 +6,14 @@ const index = require('./index-67233b76.js');
|
|
6
6
|
require('./Types-35abf4e8.js');
|
7
7
|
const Templates = require('./Templates-ed812768.js');
|
8
8
|
const TemplateDocuments = require('./TemplateDocuments-1c6620b0.js');
|
9
|
-
const VerdocsEndpoint = require('./VerdocsEndpoint-
|
9
|
+
const VerdocsEndpoint = require('./VerdocsEndpoint-e0d39762.js');
|
10
10
|
const errors = require('./errors-0396da3d.js');
|
11
|
-
const interact_min = require('./interact.min-
|
11
|
+
const interact_min = require('./interact.min-29d23a9c.js');
|
12
12
|
const Fields = require('./Fields-705a2168.js');
|
13
|
-
const utils = require('./utils-
|
13
|
+
const utils = require('./utils-aa7160e9.js');
|
14
14
|
const templateStore = require('./templateStore-1862f03c.js');
|
15
15
|
const Templates$1 = require('./Templates-6705a1ce.js');
|
16
|
-
require('./Envelopes-
|
16
|
+
require('./Envelopes-f81d02b1.js');
|
17
17
|
require('./Files-4bdc0c0f.js');
|
18
18
|
require('./index-6528b430.js');
|
19
19
|
require('./Primitives-be5088cb.js');
|
@@ -5,9 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
const index = require('./index-67233b76.js');
|
6
6
|
require('./Types-35abf4e8.js');
|
7
7
|
const TemplateDocuments = require('./TemplateDocuments-1c6620b0.js');
|
8
|
-
const VerdocsEndpoint = require('./VerdocsEndpoint-
|
9
|
-
const utils = require('./utils-
|
10
|
-
require('./Envelopes-
|
8
|
+
const VerdocsEndpoint = require('./VerdocsEndpoint-e0d39762.js');
|
9
|
+
const utils = require('./utils-aa7160e9.js');
|
10
|
+
require('./Envelopes-f81d02b1.js');
|
11
11
|
require('./Files-4bdc0c0f.js');
|
12
12
|
require('./index-6528b430.js');
|
13
13
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
const index = require('./index-67233b76.js');
|
6
6
|
require('./Types-35abf4e8.js');
|
7
7
|
const Templates$1 = require('./Templates-ed812768.js');
|
8
|
-
const VerdocsEndpoint = require('./VerdocsEndpoint-
|
8
|
+
const VerdocsEndpoint = require('./VerdocsEndpoint-e0d39762.js');
|
9
9
|
const templateStore = require('./templateStore-1862f03c.js');
|
10
10
|
const Templates = require('./Templates-6705a1ce.js');
|
11
11
|
const errors = require('./errors-0396da3d.js');
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
const index = require('./index-67233b76.js');
|
6
6
|
require('./Types-35abf4e8.js');
|
7
7
|
const Templates = require('./Templates-ed812768.js');
|
8
|
-
const VerdocsEndpoint = require('./VerdocsEndpoint-
|
8
|
+
const VerdocsEndpoint = require('./VerdocsEndpoint-e0d39762.js');
|
9
9
|
const errors = require('./errors-0396da3d.js');
|
10
10
|
const templateStore = require('./templateStore-1862f03c.js');
|
11
11
|
require('./Primitives-be5088cb.js');
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
5
5
|
const index = require('./index-67233b76.js');
|
6
6
|
require('./Types-35abf4e8.js');
|
7
|
-
const VerdocsEndpoint = require('./VerdocsEndpoint-
|
7
|
+
const VerdocsEndpoint = require('./VerdocsEndpoint-e0d39762.js');
|
8
8
|
const templateStore = require('./templateStore-1862f03c.js');
|
9
9
|
const Templates = require('./Templates-6705a1ce.js');
|
10
10
|
const errors = require('./errors-0396da3d.js');
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
const index = require('./index-67233b76.js');
|
6
6
|
require('./Types-35abf4e8.js');
|
7
7
|
const Roles = require('./Roles-9b593b95.js');
|
8
|
-
const VerdocsEndpoint = require('./VerdocsEndpoint-
|
8
|
+
const VerdocsEndpoint = require('./VerdocsEndpoint-e0d39762.js');
|
9
9
|
const templateStore = require('./templateStore-1862f03c.js');
|
10
10
|
const Templates = require('./Templates-6705a1ce.js');
|
11
11
|
const errors = require('./errors-0396da3d.js');
|
@@ -3,18 +3,18 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
const index = require('./index-67233b76.js');
|
6
|
-
const interact_min = require('./interact.min-
|
6
|
+
const interact_min = require('./interact.min-29d23a9c.js');
|
7
7
|
require('./Types-35abf4e8.js');
|
8
8
|
const Roles = require('./Roles-9b593b95.js');
|
9
|
-
const VerdocsEndpoint = require('./VerdocsEndpoint-
|
9
|
+
const VerdocsEndpoint = require('./VerdocsEndpoint-e0d39762.js');
|
10
10
|
const Colors = require('./Colors-e809dcc9.js');
|
11
11
|
const templateStore = require('./templateStore-1862f03c.js');
|
12
12
|
const Templates = require('./Templates-6705a1ce.js');
|
13
|
-
const utils = require('./utils-
|
13
|
+
const utils = require('./utils-aa7160e9.js');
|
14
14
|
const errors = require('./errors-0396da3d.js');
|
15
15
|
require('./Primitives-be5088cb.js');
|
16
16
|
require('./Templates-ed812768.js');
|
17
|
-
require('./Envelopes-
|
17
|
+
require('./Envelopes-f81d02b1.js');
|
18
18
|
require('./Files-4bdc0c0f.js');
|
19
19
|
require('./index-6528b430.js');
|
20
20
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
const index = require('./index-67233b76.js');
|
6
6
|
require('./Types-35abf4e8.js');
|
7
7
|
const Templates$1 = require('./Templates-ed812768.js');
|
8
|
-
const VerdocsEndpoint = require('./VerdocsEndpoint-
|
8
|
+
const VerdocsEndpoint = require('./VerdocsEndpoint-e0d39762.js');
|
9
9
|
const templateStore = require('./templateStore-1862f03c.js');
|
10
10
|
const Templates = require('./Templates-6705a1ce.js');
|
11
11
|
const errors = require('./errors-0396da3d.js');
|
@@ -3,10 +3,10 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
const index = require('./index-67233b76.js');
|
6
|
-
const Envelopes = require('./Envelopes-
|
6
|
+
const Envelopes = require('./Envelopes-f81d02b1.js');
|
7
7
|
const Types = require('./Types-35abf4e8.js');
|
8
|
-
const VerdocsEndpoint = require('./VerdocsEndpoint-
|
9
|
-
const utils = require('./utils-
|
8
|
+
const VerdocsEndpoint = require('./VerdocsEndpoint-e0d39762.js');
|
9
|
+
const utils = require('./utils-aa7160e9.js');
|
10
10
|
const errors = require('./errors-0396da3d.js');
|
11
11
|
require('./Files-4bdc0c0f.js');
|
12
12
|
require('./index-6528b430.js');
|
@@ -66,9 +66,10 @@ const VerdocsView = class {
|
|
66
66
|
headerTarget.append(headerEl);
|
67
67
|
}
|
68
68
|
}
|
69
|
+
// TODO: Move this to the page renderer once the EnvelopePage model is deployed and envelope pages are individually processed
|
69
70
|
async reloadEnvelope() {
|
70
71
|
var _a, _b, _c;
|
71
|
-
console.log('[VIEW]
|
72
|
+
console.log('[VIEW] Loading envelope...');
|
72
73
|
try {
|
73
74
|
this.envelope = await Envelopes.throttledGetEnvelope(this.endpoint, this.envelopeId);
|
74
75
|
this.roleNames = this.envelope.recipients.map(r => r.role_name);
|
@@ -135,7 +136,7 @@ const VerdocsView = class {
|
|
135
136
|
render() {
|
136
137
|
var _a;
|
137
138
|
if (!this.envelope) {
|
138
|
-
return (index.h(index.Host, null, index.h("verdocs-
|
139
|
+
return (index.h(index.Host, null, index.h("img", { src: "https://verdocs-public-assets.s3.amazonaws.com/loading-placeholder.png", style: { width: '612px', height: '792px', boxShadow: '0 0 10px 5px #0000000f', marginTop: '15px' }, alt: "Placeholder page" })));
|
139
140
|
}
|
140
141
|
const menuOptions = [{ id: 'print', label: 'Print' }];
|
141
142
|
if (userCanCancelEnvelope(this.endpoint.session, this.envelope)) {
|
@@ -24,7 +24,7 @@ export class VerdocsEnvelopeDocumentPage {
|
|
24
24
|
this.naturalHeight = this.virtualHeight;
|
25
25
|
this.aspectRatio = this.virtualWidth / this.virtualHeight;
|
26
26
|
this.skipFirstNotification = true;
|
27
|
-
this.pageDisplayUri = '';
|
27
|
+
this.pageDisplayUri = 'https://verdocs-public-assets.s3.amazonaws.com/loading-placeholder.png';
|
28
28
|
}
|
29
29
|
async componentWillLoad() {
|
30
30
|
this.pageDisplayUri = await getEnvelopeDocumentPageDisplayUri(this.endpoint, this.envelopeId, this.documentId, this.pageNumber);
|
@@ -38,9 +38,10 @@ export class VerdocsView {
|
|
38
38
|
headerTarget.append(headerEl);
|
39
39
|
}
|
40
40
|
}
|
41
|
+
// TODO: Move this to the page renderer once the EnvelopePage model is deployed and envelope pages are individually processed
|
41
42
|
async reloadEnvelope() {
|
42
43
|
var _a, _b, _c;
|
43
|
-
console.log('[VIEW]
|
44
|
+
console.log('[VIEW] Loading envelope...');
|
44
45
|
try {
|
45
46
|
this.envelope = await throttledGetEnvelope(this.endpoint, this.envelopeId);
|
46
47
|
this.roleNames = this.envelope.recipients.map(r => r.role_name);
|
@@ -107,7 +108,7 @@ export class VerdocsView {
|
|
107
108
|
render() {
|
108
109
|
var _a;
|
109
110
|
if (!this.envelope) {
|
110
|
-
return (h(Host, null, h("verdocs-
|
111
|
+
return (h(Host, null, h("img", { src: "https://verdocs-public-assets.s3.amazonaws.com/loading-placeholder.png", style: { width: '612px', height: '792px', boxShadow: '0 0 10px 5px #0000000f', marginTop: '15px' }, alt: "Placeholder page" })));
|
111
112
|
}
|
112
113
|
const menuOptions = [{ id: 'print', label: 'Print' }];
|
113
114
|
if (userCanCancelEnvelope(this.endpoint.session, this.envelope)) {
|
@@ -135,7 +135,12 @@ var getFieldAttachment = function (endpoint, envelopeId, fieldName) { return __a
|
|
135
135
|
var getEnvelopeDocumentPageDisplayUri = function (endpoint, envelopeId, documentId, page) { return __awaiter(void 0, void 0, void 0, function () {
|
136
136
|
return __generator(this, function (_a) {
|
137
137
|
return [2 /*return*/, endpoint.api
|
138
|
-
.get("/envelopes/".concat(envelopeId, "/envelope_documents/").concat(documentId, "/pages/").concat(page, "/image"), {
|
138
|
+
.get("/envelopes/".concat(envelopeId, "/envelope_documents/").concat(documentId, "/pages/").concat(page, "/image"), {
|
139
|
+
timeout: 20000,
|
140
|
+
'axios-retry': {
|
141
|
+
retries: 5,
|
142
|
+
},
|
143
|
+
})
|
139
144
|
.then(function (r) { return r.data; })];
|
140
145
|
});
|
141
146
|
}); };
|
@@ -78,6 +78,322 @@ var SortOptions;
|
|
78
78
|
SortOptions["STAR_COUNTER"] = "star_counter";
|
79
79
|
})(SortOptions || (SortOptions = {}));
|
80
80
|
|
81
|
+
const denyList = new Set([
|
82
|
+
'ENOTFOUND',
|
83
|
+
'ENETUNREACH',
|
84
|
+
|
85
|
+
// SSL errors from https://github.com/nodejs/node/blob/fc8e3e2cdc521978351de257030db0076d79e0ab/src/crypto/crypto_common.cc#L301-L328
|
86
|
+
'UNABLE_TO_GET_ISSUER_CERT',
|
87
|
+
'UNABLE_TO_GET_CRL',
|
88
|
+
'UNABLE_TO_DECRYPT_CERT_SIGNATURE',
|
89
|
+
'UNABLE_TO_DECRYPT_CRL_SIGNATURE',
|
90
|
+
'UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY',
|
91
|
+
'CERT_SIGNATURE_FAILURE',
|
92
|
+
'CRL_SIGNATURE_FAILURE',
|
93
|
+
'CERT_NOT_YET_VALID',
|
94
|
+
'CERT_HAS_EXPIRED',
|
95
|
+
'CRL_NOT_YET_VALID',
|
96
|
+
'CRL_HAS_EXPIRED',
|
97
|
+
'ERROR_IN_CERT_NOT_BEFORE_FIELD',
|
98
|
+
'ERROR_IN_CERT_NOT_AFTER_FIELD',
|
99
|
+
'ERROR_IN_CRL_LAST_UPDATE_FIELD',
|
100
|
+
'ERROR_IN_CRL_NEXT_UPDATE_FIELD',
|
101
|
+
'OUT_OF_MEM',
|
102
|
+
'DEPTH_ZERO_SELF_SIGNED_CERT',
|
103
|
+
'SELF_SIGNED_CERT_IN_CHAIN',
|
104
|
+
'UNABLE_TO_GET_ISSUER_CERT_LOCALLY',
|
105
|
+
'UNABLE_TO_VERIFY_LEAF_SIGNATURE',
|
106
|
+
'CERT_CHAIN_TOO_LONG',
|
107
|
+
'CERT_REVOKED',
|
108
|
+
'INVALID_CA',
|
109
|
+
'PATH_LENGTH_EXCEEDED',
|
110
|
+
'INVALID_PURPOSE',
|
111
|
+
'CERT_UNTRUSTED',
|
112
|
+
'CERT_REJECTED',
|
113
|
+
'HOSTNAME_MISMATCH'
|
114
|
+
]);
|
115
|
+
|
116
|
+
// TODO: Use `error?.code` when targeting Node.js 14
|
117
|
+
var isRetryAllowed = error => !denyList.has(error && error.code);
|
118
|
+
|
119
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
120
|
+
|
121
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
122
|
+
|
123
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
124
|
+
|
125
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
126
|
+
|
127
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
128
|
+
var namespace = 'axios-retry';
|
129
|
+
/**
|
130
|
+
* @param {Error} error
|
131
|
+
* @return {boolean}
|
132
|
+
*/
|
133
|
+
|
134
|
+
function isNetworkError(error) {
|
135
|
+
return !error.response && Boolean(error.code) && // Prevents retrying cancelled requests
|
136
|
+
error.code !== 'ECONNABORTED' && // Prevents retrying timed out requests
|
137
|
+
isRetryAllowed(error); // Prevents retrying unsafe errors
|
138
|
+
}
|
139
|
+
var SAFE_HTTP_METHODS = ['get', 'head', 'options'];
|
140
|
+
var IDEMPOTENT_HTTP_METHODS = SAFE_HTTP_METHODS.concat(['put', 'delete']);
|
141
|
+
/**
|
142
|
+
* @param {Error} error
|
143
|
+
* @return {boolean}
|
144
|
+
*/
|
145
|
+
|
146
|
+
function isRetryableError(error) {
|
147
|
+
return error.code !== 'ECONNABORTED' && (!error.response || error.response.status >= 500 && error.response.status <= 599);
|
148
|
+
}
|
149
|
+
/**
|
150
|
+
* @param {Error} error
|
151
|
+
* @return {boolean}
|
152
|
+
*/
|
153
|
+
|
154
|
+
function isSafeRequestError(error) {
|
155
|
+
if (!error.config) {
|
156
|
+
// Cannot determine if the request can be retried
|
157
|
+
return false;
|
158
|
+
}
|
159
|
+
|
160
|
+
return isRetryableError(error) && SAFE_HTTP_METHODS.indexOf(error.config.method) !== -1;
|
161
|
+
}
|
162
|
+
/**
|
163
|
+
* @param {Error} error
|
164
|
+
* @return {boolean}
|
165
|
+
*/
|
166
|
+
|
167
|
+
function isIdempotentRequestError(error) {
|
168
|
+
if (!error.config) {
|
169
|
+
// Cannot determine if the request can be retried
|
170
|
+
return false;
|
171
|
+
}
|
172
|
+
|
173
|
+
return isRetryableError(error) && IDEMPOTENT_HTTP_METHODS.indexOf(error.config.method) !== -1;
|
174
|
+
}
|
175
|
+
/**
|
176
|
+
* @param {Error} error
|
177
|
+
* @return {boolean}
|
178
|
+
*/
|
179
|
+
|
180
|
+
function isNetworkOrIdempotentRequestError(error) {
|
181
|
+
return isNetworkError(error) || isIdempotentRequestError(error);
|
182
|
+
}
|
183
|
+
/**
|
184
|
+
* @return {number} - delay in milliseconds, always 0
|
185
|
+
*/
|
186
|
+
|
187
|
+
function noDelay() {
|
188
|
+
return 0;
|
189
|
+
}
|
190
|
+
/**
|
191
|
+
* @param {number} [retryNumber=0]
|
192
|
+
* @return {number} - delay in milliseconds
|
193
|
+
*/
|
194
|
+
|
195
|
+
|
196
|
+
function exponentialDelay() {
|
197
|
+
var retryNumber = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
198
|
+
var delay = Math.pow(2, retryNumber) * 100;
|
199
|
+
var randomSum = delay * 0.2 * Math.random(); // 0-20% of the delay
|
200
|
+
|
201
|
+
return delay + randomSum;
|
202
|
+
}
|
203
|
+
/**
|
204
|
+
* Initializes and returns the retry state for the given request/config
|
205
|
+
* @param {AxiosRequestConfig} config
|
206
|
+
* @return {Object}
|
207
|
+
*/
|
208
|
+
|
209
|
+
function getCurrentState(config) {
|
210
|
+
var currentState = config[namespace] || {};
|
211
|
+
currentState.retryCount = currentState.retryCount || 0;
|
212
|
+
config[namespace] = currentState;
|
213
|
+
return currentState;
|
214
|
+
}
|
215
|
+
/**
|
216
|
+
* Returns the axios-retry options for the current request
|
217
|
+
* @param {AxiosRequestConfig} config
|
218
|
+
* @param {AxiosRetryConfig} defaultOptions
|
219
|
+
* @return {AxiosRetryConfig}
|
220
|
+
*/
|
221
|
+
|
222
|
+
|
223
|
+
function getRequestOptions(config, defaultOptions) {
|
224
|
+
return _objectSpread(_objectSpread({}, defaultOptions), config[namespace]);
|
225
|
+
}
|
226
|
+
/**
|
227
|
+
* @param {Axios} axios
|
228
|
+
* @param {AxiosRequestConfig} config
|
229
|
+
*/
|
230
|
+
|
231
|
+
|
232
|
+
function fixConfig(axios, config) {
|
233
|
+
if (axios.defaults.agent === config.agent) {
|
234
|
+
delete config.agent;
|
235
|
+
}
|
236
|
+
|
237
|
+
if (axios.defaults.httpAgent === config.httpAgent) {
|
238
|
+
delete config.httpAgent;
|
239
|
+
}
|
240
|
+
|
241
|
+
if (axios.defaults.httpsAgent === config.httpsAgent) {
|
242
|
+
delete config.httpsAgent;
|
243
|
+
}
|
244
|
+
}
|
245
|
+
/**
|
246
|
+
* Checks retryCondition if request can be retried. Handles it's retruning value or Promise.
|
247
|
+
* @param {number} retries
|
248
|
+
* @param {Function} retryCondition
|
249
|
+
* @param {Object} currentState
|
250
|
+
* @param {Error} error
|
251
|
+
* @return {boolean}
|
252
|
+
*/
|
253
|
+
|
254
|
+
|
255
|
+
function shouldRetry(_x, _x2, _x3, _x4) {
|
256
|
+
return _shouldRetry.apply(this, arguments);
|
257
|
+
}
|
258
|
+
/**
|
259
|
+
* Adds response interceptors to an axios instance to retry requests failed due to network issues
|
260
|
+
*
|
261
|
+
* @example
|
262
|
+
*
|
263
|
+
* import axios from 'axios';
|
264
|
+
*
|
265
|
+
* axiosRetry(axios, { retries: 3 });
|
266
|
+
*
|
267
|
+
* axios.get('http://example.com/test') // The first request fails and the second returns 'ok'
|
268
|
+
* .then(result => {
|
269
|
+
* result.data; // 'ok'
|
270
|
+
* });
|
271
|
+
*
|
272
|
+
* // Exponential back-off retry delay between requests
|
273
|
+
* axiosRetry(axios, { retryDelay : axiosRetry.exponentialDelay});
|
274
|
+
*
|
275
|
+
* // Custom retry delay
|
276
|
+
* axiosRetry(axios, { retryDelay : (retryCount) => {
|
277
|
+
* return retryCount * 1000;
|
278
|
+
* }});
|
279
|
+
*
|
280
|
+
* // Also works with custom axios instances
|
281
|
+
* const client = axios.create({ baseURL: 'http://example.com' });
|
282
|
+
* axiosRetry(client, { retries: 3 });
|
283
|
+
*
|
284
|
+
* client.get('/test') // The first request fails and the second returns 'ok'
|
285
|
+
* .then(result => {
|
286
|
+
* result.data; // 'ok'
|
287
|
+
* });
|
288
|
+
*
|
289
|
+
* // Allows request-specific configuration
|
290
|
+
* client
|
291
|
+
* .get('/test', {
|
292
|
+
* 'axios-retry': {
|
293
|
+
* retries: 0
|
294
|
+
* }
|
295
|
+
* })
|
296
|
+
* .catch(error => { // The first request fails
|
297
|
+
* error !== undefined
|
298
|
+
* });
|
299
|
+
*
|
300
|
+
* @param {Axios} axios An axios instance (the axios object or one created from axios.create)
|
301
|
+
* @param {Object} [defaultOptions]
|
302
|
+
* @param {number} [defaultOptions.retries=3] Number of retries
|
303
|
+
* @param {boolean} [defaultOptions.shouldResetTimeout=false]
|
304
|
+
* Defines if the timeout should be reset between retries
|
305
|
+
* @param {Function} [defaultOptions.retryCondition=isNetworkOrIdempotentRequestError]
|
306
|
+
* A function to determine if the error can be retried
|
307
|
+
* @param {Function} [defaultOptions.retryDelay=noDelay]
|
308
|
+
* A function to determine the delay between retry requests
|
309
|
+
* @param {Function} [defaultOptions.onRetry=()=>{}]
|
310
|
+
* A function to get notified when a retry occurs
|
311
|
+
*/
|
312
|
+
|
313
|
+
|
314
|
+
function _shouldRetry() {
|
315
|
+
_shouldRetry = _asyncToGenerator(function* (retries, retryCondition, currentState, error) {
|
316
|
+
var shouldRetryOrPromise = currentState.retryCount < retries && retryCondition(error); // This could be a promise
|
317
|
+
|
318
|
+
if (typeof shouldRetryOrPromise === 'object') {
|
319
|
+
try {
|
320
|
+
var shouldRetryPromiseResult = yield shouldRetryOrPromise; // keep return true unless shouldRetryPromiseResult return false for compatibility
|
321
|
+
|
322
|
+
return shouldRetryPromiseResult !== false;
|
323
|
+
} catch (_err) {
|
324
|
+
return false;
|
325
|
+
}
|
326
|
+
}
|
327
|
+
|
328
|
+
return shouldRetryOrPromise;
|
329
|
+
});
|
330
|
+
return _shouldRetry.apply(this, arguments);
|
331
|
+
}
|
332
|
+
|
333
|
+
function axiosRetry(axios, defaultOptions) {
|
334
|
+
axios.interceptors.request.use(config => {
|
335
|
+
var currentState = getCurrentState(config);
|
336
|
+
currentState.lastRequestTime = Date.now();
|
337
|
+
return config;
|
338
|
+
});
|
339
|
+
axios.interceptors.response.use(null, /*#__PURE__*/function () {
|
340
|
+
var _ref = _asyncToGenerator(function* (error) {
|
341
|
+
var {
|
342
|
+
config
|
343
|
+
} = error; // If we have no information to retry the request
|
344
|
+
|
345
|
+
if (!config) {
|
346
|
+
return Promise.reject(error);
|
347
|
+
}
|
348
|
+
|
349
|
+
var {
|
350
|
+
retries = 3,
|
351
|
+
retryCondition = isNetworkOrIdempotentRequestError,
|
352
|
+
retryDelay = noDelay,
|
353
|
+
shouldResetTimeout = false,
|
354
|
+
onRetry = () => {}
|
355
|
+
} = getRequestOptions(config, defaultOptions);
|
356
|
+
var currentState = getCurrentState(config);
|
357
|
+
|
358
|
+
if (yield shouldRetry(retries, retryCondition, currentState, error)) {
|
359
|
+
currentState.retryCount += 1;
|
360
|
+
var delay = retryDelay(currentState.retryCount, error); // Axios fails merging this configuration to the default configuration because it has an issue
|
361
|
+
// with circular structures: https://github.com/mzabriskie/axios/issues/370
|
362
|
+
|
363
|
+
fixConfig(axios, config);
|
364
|
+
|
365
|
+
if (!shouldResetTimeout && config.timeout && currentState.lastRequestTime) {
|
366
|
+
var lastRequestDuration = Date.now() - currentState.lastRequestTime;
|
367
|
+
var timeout = config.timeout - lastRequestDuration - delay;
|
368
|
+
|
369
|
+
if (timeout <= 0) {
|
370
|
+
return Promise.reject(error);
|
371
|
+
}
|
372
|
+
|
373
|
+
config.timeout = timeout;
|
374
|
+
}
|
375
|
+
|
376
|
+
config.transformRequest = [data => data];
|
377
|
+
onRetry(currentState.retryCount, error, config);
|
378
|
+
return new Promise(resolve => setTimeout(() => resolve(axios(config)), delay));
|
379
|
+
}
|
380
|
+
|
381
|
+
return Promise.reject(error);
|
382
|
+
});
|
383
|
+
|
384
|
+
return function (_x5) {
|
385
|
+
return _ref.apply(this, arguments);
|
386
|
+
};
|
387
|
+
}());
|
388
|
+
} // Compatibility with CommonJS
|
389
|
+
|
390
|
+
axiosRetry.isNetworkError = isNetworkError;
|
391
|
+
axiosRetry.isSafeRequestError = isSafeRequestError;
|
392
|
+
axiosRetry.isIdempotentRequestError = isIdempotentRequestError;
|
393
|
+
axiosRetry.isNetworkOrIdempotentRequestError = isNetworkOrIdempotentRequestError;
|
394
|
+
axiosRetry.exponentialDelay = exponentialDelay;
|
395
|
+
axiosRetry.isRetryableError = isRetryableError;
|
396
|
+
|
81
397
|
function bind(fn, thisArg) {
|
82
398
|
return function wrap() {
|
83
399
|
return fn.apply(thisArg, arguments);
|
@@ -3360,6 +3676,14 @@ var VerdocsEndpoint = /** @class */ (function () {
|
|
3360
3676
|
this.sessionType = (options === null || options === void 0 ? void 0 : options.sessionType) || 'user';
|
3361
3677
|
this.clientID = (options === null || options === void 0 ? void 0 : options.clientID) || 'not-set';
|
3362
3678
|
this.api = axios.create({ baseURL: this.baseURL, timeout: this.timeout });
|
3679
|
+
// We set the default retries to zero because we only actually want this feature on certain calls for now
|
3680
|
+
axiosRetry(this.api, {
|
3681
|
+
retries: 0,
|
3682
|
+
retryDelay: axiosRetry.exponentialDelay,
|
3683
|
+
onRetry: function (retryCount, error, requestConfig) {
|
3684
|
+
window.console.debug("[JS_SDK] Retrying request (".concat(retryCount, ")"), error.message, requestConfig.url);
|
3685
|
+
},
|
3686
|
+
});
|
3363
3687
|
}
|
3364
3688
|
VerdocsEndpoint.prototype.setDefault = function () {
|
3365
3689
|
globalThis_1[ENDPOINT_KEY] = this;
|
@@ -25,7 +25,7 @@ const VerdocsEnvelopeDocumentPage = /*@__PURE__*/ proxyCustomElement(class exten
|
|
25
25
|
this.naturalHeight = this.virtualHeight;
|
26
26
|
this.aspectRatio = this.virtualWidth / this.virtualHeight;
|
27
27
|
this.skipFirstNotification = true;
|
28
|
-
this.pageDisplayUri = '';
|
28
|
+
this.pageDisplayUri = 'https://verdocs-public-assets.s3.amazonaws.com/loading-placeholder.png';
|
29
29
|
}
|
30
30
|
async componentWillLoad() {
|
31
31
|
this.pageDisplayUri = await getEnvelopeDocumentPageDisplayUri(this.endpoint, this.envelopeId, this.documentId, this.pageNumber);
|
@@ -66,9 +66,10 @@ const VerdocsView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
66
66
|
headerTarget.append(headerEl);
|
67
67
|
}
|
68
68
|
}
|
69
|
+
// TODO: Move this to the page renderer once the EnvelopePage model is deployed and envelope pages are individually processed
|
69
70
|
async reloadEnvelope() {
|
70
71
|
var _a, _b, _c;
|
71
|
-
console.log('[VIEW]
|
72
|
+
console.log('[VIEW] Loading envelope...');
|
72
73
|
try {
|
73
74
|
this.envelope = await throttledGetEnvelope(this.endpoint, this.envelopeId);
|
74
75
|
this.roleNames = this.envelope.recipients.map(r => r.role_name);
|
@@ -135,7 +136,7 @@ const VerdocsView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
135
136
|
render() {
|
136
137
|
var _a;
|
137
138
|
if (!this.envelope) {
|
138
|
-
return (h(Host, null, h("verdocs-
|
139
|
+
return (h(Host, null, h("img", { src: "https://verdocs-public-assets.s3.amazonaws.com/loading-placeholder.png", style: { width: '612px', height: '792px', boxShadow: '0 0 10px 5px #0000000f', marginTop: '15px' }, alt: "Placeholder page" })));
|
139
140
|
}
|
140
141
|
const menuOptions = [{ id: 'print', label: 'Print' }];
|
141
142
|
if (userCanCancelEnvelope(this.endpoint.session, this.envelope)) {
|
package/dist/docs.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
{
|
2
|
-
"timestamp": "2023-03-
|
2
|
+
"timestamp": "2023-03-16T16:38:33",
|
3
3
|
"compiler": {
|
4
4
|
"name": "@stencil/core",
|
5
5
|
"version": "2.20.0",
|
@@ -5134,8 +5134,8 @@
|
|
5134
5134
|
"verdocs-envelope-document-page"
|
5135
5135
|
],
|
5136
5136
|
"verdocs-view": [
|
5137
|
-
"verdocs-loader",
|
5138
5137
|
"verdocs-dropdown",
|
5138
|
+
"verdocs-loader",
|
5139
5139
|
"verdocs-envelope-document-page",
|
5140
5140
|
"verdocs-ok-dialog"
|
5141
5141
|
],
|
@@ -7400,15 +7400,15 @@
|
|
7400
7400
|
"verdocs-sign"
|
7401
7401
|
],
|
7402
7402
|
"dependencies": [
|
7403
|
-
"verdocs-loader",
|
7404
7403
|
"verdocs-dropdown",
|
7404
|
+
"verdocs-loader",
|
7405
7405
|
"verdocs-envelope-document-page",
|
7406
7406
|
"verdocs-ok-dialog"
|
7407
7407
|
],
|
7408
7408
|
"dependencyGraph": {
|
7409
7409
|
"verdocs-view": [
|
7410
|
-
"verdocs-loader",
|
7411
7410
|
"verdocs-dropdown",
|
7411
|
+
"verdocs-loader",
|
7412
7412
|
"verdocs-envelope-document-page",
|
7413
7413
|
"verdocs-ok-dialog"
|
7414
7414
|
],
|
@@ -135,7 +135,12 @@ var getFieldAttachment = function (endpoint, envelopeId, fieldName) { return __a
|
|
135
135
|
var getEnvelopeDocumentPageDisplayUri = function (endpoint, envelopeId, documentId, page) { return __awaiter(void 0, void 0, void 0, function () {
|
136
136
|
return __generator(this, function (_a) {
|
137
137
|
return [2 /*return*/, endpoint.api
|
138
|
-
.get("/envelopes/".concat(envelopeId, "/envelope_documents/").concat(documentId, "/pages/").concat(page, "/image"), {
|
138
|
+
.get("/envelopes/".concat(envelopeId, "/envelope_documents/").concat(documentId, "/pages/").concat(page, "/image"), {
|
139
|
+
timeout: 20000,
|
140
|
+
'axios-retry': {
|
141
|
+
retries: 5,
|
142
|
+
},
|
143
|
+
})
|
139
144
|
.then(function (r) { return r.data; })];
|
140
145
|
});
|
141
146
|
}); };
|