@verdocs/web-sdk 2.3.11 → 2.3.12
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/{EnvelopeStore-f8c301e1.js → EnvelopeStore-efc35530.js} +1 -1
- package/dist/cjs/{Envelopes-99ca79fe.js → Envelopes-0b9deb2c.js} +2 -6
- package/dist/cjs/{TemplateStore-192c6cf1.js → TemplateStore-17b9fdfe.js} +1 -1
- package/dist/cjs/{VerdocsEndpoint-33b643eb.js → VerdocsEndpoint-8f298664.js} +1 -186
- package/dist/cjs/ipc-test.cjs.entry.js +2 -2
- package/dist/cjs/{utils-a3f0b70a.js → utils-0916d10f.js} +1 -1
- package/dist/cjs/verdocs-activity-box.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-auth.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-build.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-button-panel_2.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-contact-picker_3.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-envelope-recipient-link_2.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-field-attachment.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 +3 -3
- 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-file-chooser_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-pagination_2.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-preview_8.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-quick-functions_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-search.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-settings-api-keys_4.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-settings.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-sign.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-template-fields_4.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-template-star.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-templates-list.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-view.cjs.entry.js +3 -3
- package/dist/components/Envelopes.js +2 -6
- package/dist/components/VerdocsEndpoint.js +1 -186
- package/dist/docs.json +1 -1
- package/dist/esm/{EnvelopeStore-15cc99ef.js → EnvelopeStore-17c0bc52.js} +1 -1
- package/dist/esm/{Envelopes-21ffb899.js → Envelopes-627c5239.js} +2 -6
- package/dist/esm/{TemplateStore-7149eda0.js → TemplateStore-ad77a294.js} +1 -1
- package/dist/esm/{VerdocsEndpoint-7922d31f.js → VerdocsEndpoint-56fa3371.js} +1 -186
- package/dist/esm/ipc-test.entry.js +2 -2
- package/dist/esm/{utils-e0ce2c22.js → utils-ca3121df.js} +1 -1
- package/dist/esm/verdocs-activity-box.entry.js +2 -2
- package/dist/esm/verdocs-auth.entry.js +1 -1
- package/dist/esm/verdocs-build.entry.js +2 -2
- package/dist/esm/verdocs-button-panel_2.entry.js +2 -2
- package/dist/esm/verdocs-contact-picker_3.entry.js +3 -3
- package/dist/esm/verdocs-envelope-document-page.entry.js +3 -3
- package/dist/esm/verdocs-envelope-recipient-link_2.entry.js +3 -3
- package/dist/esm/verdocs-envelope-sidebar.entry.js +3 -3
- package/dist/esm/verdocs-envelopes-list.entry.js +3 -3
- package/dist/esm/verdocs-field-attachment.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 +3 -3
- package/dist/esm/verdocs-field-textbox.entry.js +3 -3
- package/dist/esm/verdocs-field-timestamp.entry.js +2 -2
- package/dist/esm/verdocs-file-chooser_2.entry.js +1 -1
- package/dist/esm/verdocs-pagination_2.entry.js +2 -2
- package/dist/esm/verdocs-preview_8.entry.js +4 -4
- package/dist/esm/verdocs-quick-functions_2.entry.js +1 -1
- package/dist/esm/verdocs-search.entry.js +1 -1
- package/dist/esm/verdocs-settings-api-keys_4.entry.js +3 -3
- package/dist/esm/verdocs-settings.entry.js +1 -1
- package/dist/esm/verdocs-sign.entry.js +3 -3
- package/dist/esm/verdocs-template-document-page_2.entry.js +3 -3
- package/dist/esm/verdocs-template-fields_4.entry.js +4 -4
- package/dist/esm/verdocs-template-star.entry.js +1 -1
- package/dist/esm/verdocs-templates-list.entry.js +1 -1
- package/dist/esm/verdocs-view.entry.js +3 -3
- package/dist/esm-es5/{EnvelopeStore-15cc99ef.js → EnvelopeStore-17c0bc52.js} +1 -1
- package/dist/esm-es5/Envelopes-627c5239.js +1 -0
- package/dist/esm-es5/{TemplateStore-7149eda0.js → TemplateStore-ad77a294.js} +1 -1
- package/dist/esm-es5/VerdocsEndpoint-56fa3371.js +1 -0
- package/dist/esm-es5/ipc-test.entry.js +1 -1
- package/dist/esm-es5/{utils-e0ce2c22.js → utils-ca3121df.js} +2 -2
- package/dist/esm-es5/verdocs-activity-box.entry.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_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-contact-picker_3.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.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-file-chooser_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-pagination_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-preview_8.entry.js +1 -1
- package/dist/esm-es5/verdocs-quick-functions_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-search.entry.js +1 -1
- package/dist/esm-es5/verdocs-settings-api-keys_4.entry.js +1 -1
- package/dist/esm-es5/verdocs-settings.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-fields_4.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
- package/dist/esm-es5/verdocs-templates-list.entry.js +1 -1
- package/dist/esm-es5/verdocs-view.entry.js +1 -1
- package/dist/verdocs-web-sdk/{p-ee159b14.js → p-02a71e03.js} +1 -1
- package/dist/verdocs-web-sdk/{p-f49cb84b.entry.js → p-035a3ce2.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-035f6b38.js +1 -0
- package/dist/verdocs-web-sdk/{p-8f8504e2.entry.js → p-05e6bc91.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-0419a39f.system.entry.js → p-0685d939.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-0c157d55.system.entry.js → p-0abf0058.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9dcb8b6c.system.entry.js → p-17598002.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-3f837e30.system.entry.js → p-17bf98f2.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-3f5fb65b.entry.js → p-1a7aa04b.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-14b08edd.system.entry.js → p-1c08edf7.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7144ab8e.system.entry.js → p-1cb878c8.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-6d70fc87.system.entry.js → p-1e38b22f.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ebc4142c.js → p-1f78be32.js} +1 -1
- package/dist/verdocs-web-sdk/{p-992f92f4.entry.js → p-22e0d2bc.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-73b9ef06.entry.js → p-2ccbf54d.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-319c00bd.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-1eb38c2e.entry.js → p-37dfdc84.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9b66a84a.system.entry.js → p-3f3807b0.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-1efd342e.entry.js → p-410c63e6.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7b3fed68.entry.js → p-46624bec.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-a59064f7.system.entry.js → p-4d98f194.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-120f75b1.entry.js → p-4e47ed1c.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-5f736f85.system.entry.js → p-59769c39.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-083bdbc6.entry.js → p-6331d113.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-2c47b92e.entry.js → p-637187de.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-4a1bc6e3.system.entry.js → p-6685ff29.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-1a3168af.system.entry.js → p-6dd69d82.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-90d54d8a.system.entry.js → p-736fbb87.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-3019b350.entry.js → p-746fce21.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-fdf0a9de.entry.js → p-76f8c30a.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9c2bec77.system.entry.js → p-79168c6a.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-59c44eee.system.entry.js → p-7b30c523.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-1fdb236c.system.js → p-82b5e475.system.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ce00ee85.entry.js → p-82d4afbf.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-b0bf091c.system.js → p-840827b7.system.js} +1 -1
- package/dist/verdocs-web-sdk/{p-4a3238f6.entry.js → p-85df0da6.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-0d4739c4.system.entry.js → p-870707e8.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-8aae8d16.system.js +1 -0
- package/dist/verdocs-web-sdk/{p-8e0d6152.system.entry.js → p-8af68516.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7be5cb8c.entry.js → p-8b0a5309.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-16849f44.system.entry.js → p-9360b085.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-e6b68ad5.entry.js → p-94009f45.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7e8d64fb.system.js → p-9615b087.system.js} +1 -1
- package/dist/verdocs-web-sdk/{p-5f434764.system.entry.js → p-9a5c0882.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-9bf2d124.system.js +1 -0
- package/dist/verdocs-web-sdk/{p-345f88a3.system.entry.js → p-9ceff040.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-0549358c.entry.js → p-9d2995a9.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-6a13105b.entry.js → p-9fc06f7b.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-2ec8a9be.entry.js → p-a40b3946.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d7dbeec3.system.entry.js → p-ab98a02d.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-026eb575.system.entry.js → p-ac98f6f1.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-38679b8e.system.entry.js → p-acc873cf.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-6b1735f4.entry.js → p-ae83f4a0.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-39f3f620.system.entry.js → p-b467d981.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7cbe51d8.system.entry.js → p-b6231fd3.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-06fb711b.system.entry.js → p-b648ab63.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-c58916d2.system.entry.js → p-b7a815e9.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-6827df7b.entry.js → p-b91de346.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-da1c0295.system.entry.js → p-ba653c39.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-f3a1060a.entry.js → p-c80237f9.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-599fa850.entry.js → p-cf703fe4.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-974b4c02.entry.js → p-d0a09719.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d2cee107.system.entry.js → p-d39e4a26.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ed639a7c.entry.js → p-d59b6988.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-dd277e69.entry.js → p-d61fda4b.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-393a9a2a.system.entry.js → p-d99a05e4.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-05b3034f.entry.js → p-da3faf4a.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-dc2ad047.js +1 -0
- package/dist/verdocs-web-sdk/{p-686139a0.entry.js → p-dd2c2edc.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-47460aa0.entry.js → p-e1bc55f8.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-32b26f8f.system.entry.js → p-e28878eb.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-fa1621c8.system.entry.js → p-e4dc3264.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ecb7ea02.entry.js → p-e760f894.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9aff3ff0.entry.js → p-eeca4c30.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-f04bf956.system.js +1 -1
- package/dist/verdocs-web-sdk/{p-5aee3e25.js → p-f3dde708.js} +1 -1
- package/dist/verdocs-web-sdk/{p-a7134b10.entry.js → p-f42c84f1.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-f83a0c6e.system.entry.js → p-f6b7439f.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-401a49cb.system.entry.js → p-fe67b620.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +2 -2
- package/dist/custom-elements.json +0 -2067
- package/dist/esm-es5/Envelopes-21ffb899.js +0 -1
- package/dist/esm-es5/VerdocsEndpoint-7922d31f.js +0 -1
- package/dist/verdocs-web-sdk/p-19ff8f86.system.js +0 -1
- package/dist/verdocs-web-sdk/p-2ccbcfeb.system.js +0 -1
- package/dist/verdocs-web-sdk/p-2fe75327.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-5a91bf23.js +0 -1
- package/dist/verdocs-web-sdk/p-b101fae2.js +0 -1
@@ -4,15 +4,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
5
5
|
const index = require('./index-5463795e.js');
|
6
6
|
require('./Types-f89f9116.js');
|
7
|
-
const VerdocsEndpoint = require('./VerdocsEndpoint-
|
7
|
+
const VerdocsEndpoint = require('./VerdocsEndpoint-8f298664.js');
|
8
8
|
const Primitives = require('./Primitives-a59870a2.js');
|
9
9
|
const Toast = require('./Toast-06880504.js');
|
10
10
|
const errors = require('./errors-0396da3d.js');
|
11
11
|
const Profiles = require('./Profiles-1a26e4eb.js');
|
12
12
|
const index$1 = require('./index-7c19ba1d.js');
|
13
|
-
const utils = require('./utils-
|
13
|
+
const utils = require('./utils-0916d10f.js');
|
14
14
|
require('./_commonjsHelpers-1fbbf0eb.js');
|
15
|
-
require('./Envelopes-
|
15
|
+
require('./Envelopes-0b9deb2c.js');
|
16
16
|
require('./Files-4bdc0c0f.js');
|
17
17
|
require('./Types-fb95ed6b.js');
|
18
18
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
5
5
|
const index = require('./index-5463795e.js');
|
6
6
|
require('./Types-f89f9116.js');
|
7
|
-
const VerdocsEndpoint = require('./VerdocsEndpoint-
|
7
|
+
const VerdocsEndpoint = require('./VerdocsEndpoint-8f298664.js');
|
8
8
|
const errors = require('./errors-0396da3d.js');
|
9
9
|
|
10
10
|
const verdocsSettingsCss = "verdocs-settings{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif;display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;min-height:200px;position:relative;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-settings .tabs{gap:4px;width:100%;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-direction:row;flex-direction:row;border-bottom:1px solid #654dcb}verdocs-settings .tabs .tab{cursor:pointer;padding:5px 10px;color:#ffffff;background-color:#777777}verdocs-settings .tabs .tab.active{color:#ffffff;background-color:#654dcb}";
|
@@ -3,13 +3,13 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
const index = require('./index-5463795e.js');
|
6
|
-
const Envelopes = require('./Envelopes-
|
6
|
+
const Envelopes = require('./Envelopes-0b9deb2c.js');
|
7
7
|
const Types$1 = require('./Types-f89f9116.js');
|
8
8
|
const Recipients = require('./Recipients-f3d6cf10.js');
|
9
|
-
const VerdocsEndpoint = require('./VerdocsEndpoint-
|
9
|
+
const VerdocsEndpoint = require('./VerdocsEndpoint-8f298664.js');
|
10
10
|
const Validators = require('./Validators-16e6d7d1.js');
|
11
11
|
const Primitives = require('./Primitives-a59870a2.js');
|
12
|
-
const utils = require('./utils-
|
12
|
+
const utils = require('./utils-0916d10f.js');
|
13
13
|
const Types = require('./Types-fb95ed6b.js');
|
14
14
|
const Toast = require('./Toast-06880504.js');
|
15
15
|
const errors = require('./errors-0396da3d.js');
|
@@ -4,12 +4,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
5
5
|
const index = require('./index-5463795e.js');
|
6
6
|
require('./Types-f89f9116.js');
|
7
|
-
const VerdocsEndpoint = require('./VerdocsEndpoint-
|
7
|
+
const VerdocsEndpoint = require('./VerdocsEndpoint-8f298664.js');
|
8
8
|
const TemplateDocuments = require('./TemplateDocuments-e2e0e6b7.js');
|
9
|
-
const utils = require('./utils-
|
9
|
+
const utils = require('./utils-0916d10f.js');
|
10
10
|
const popper = require('./popper-d7adcfc6.js');
|
11
11
|
require('./_commonjsHelpers-1fbbf0eb.js');
|
12
|
-
require('./Envelopes-
|
12
|
+
require('./Envelopes-0b9deb2c.js');
|
13
13
|
require('./Files-4bdc0c0f.js');
|
14
14
|
require('./Types-fb95ed6b.js');
|
15
15
|
require('./index-7c19ba1d.js');
|
@@ -5,15 +5,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
const index = require('./index-5463795e.js');
|
6
6
|
const interact_min = require('./interact.min-a61b43b3.js');
|
7
7
|
require('./Types-f89f9116.js');
|
8
|
-
const VerdocsEndpoint = require('./VerdocsEndpoint-
|
8
|
+
const VerdocsEndpoint = require('./VerdocsEndpoint-8f298664.js');
|
9
9
|
const Fields = require('./Fields-705a2168.js');
|
10
10
|
const Primitives = require('./Primitives-a59870a2.js');
|
11
|
-
const utils = require('./utils-
|
12
|
-
const TemplateStore = require('./TemplateStore-
|
11
|
+
const utils = require('./utils-0916d10f.js');
|
12
|
+
const TemplateStore = require('./TemplateStore-17b9fdfe.js');
|
13
13
|
const errors = require('./errors-0396da3d.js');
|
14
14
|
const Colors = require('./Colors-e809dcc9.js');
|
15
15
|
require('./_commonjsHelpers-1fbbf0eb.js');
|
16
|
-
require('./Envelopes-
|
16
|
+
require('./Envelopes-0b9deb2c.js');
|
17
17
|
require('./Files-4bdc0c0f.js');
|
18
18
|
require('./Types-fb95ed6b.js');
|
19
19
|
require('./index-7c19ba1d.js');
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
const index = require('./index-5463795e.js');
|
6
|
-
const VerdocsEndpoint = require('./VerdocsEndpoint-
|
6
|
+
const VerdocsEndpoint = require('./VerdocsEndpoint-8f298664.js');
|
7
7
|
require('./Types-f89f9116.js');
|
8
8
|
|
9
9
|
/**
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
5
5
|
const index = require('./index-5463795e.js');
|
6
6
|
require('./Types-f89f9116.js');
|
7
|
-
const VerdocsEndpoint = require('./VerdocsEndpoint-
|
7
|
+
const VerdocsEndpoint = require('./VerdocsEndpoint-8f298664.js');
|
8
8
|
const Primitives = require('./Primitives-a59870a2.js');
|
9
9
|
const errors = require('./errors-0396da3d.js');
|
10
10
|
const index$1 = require('./index-7c19ba1d.js');
|
@@ -3,12 +3,12 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
const index = require('./index-5463795e.js');
|
6
|
-
const Envelopes = require('./Envelopes-
|
6
|
+
const Envelopes = require('./Envelopes-0b9deb2c.js');
|
7
7
|
const Permissions = require('./Permissions-1436f847.js');
|
8
8
|
require('./Types-f89f9116.js');
|
9
|
-
const VerdocsEndpoint = require('./VerdocsEndpoint-
|
9
|
+
const VerdocsEndpoint = require('./VerdocsEndpoint-8f298664.js');
|
10
10
|
const Primitives = require('./Primitives-a59870a2.js');
|
11
|
-
const utils = require('./utils-
|
11
|
+
const utils = require('./utils-0916d10f.js');
|
12
12
|
const errors = require('./errors-0396da3d.js');
|
13
13
|
require('./_commonjsHelpers-1fbbf0eb.js');
|
14
14
|
require('./Files-4bdc0c0f.js');
|
@@ -96,6 +96,7 @@ var getSummary = function (endpoint, page) { return __awaiter(void 0, void 0, vo
|
|
96
96
|
*/
|
97
97
|
var getSigningSession = function (endpoint, params) { return __awaiter(void 0, void 0, void 0, function () {
|
98
98
|
return __generator(this, function (_a) {
|
99
|
+
window.console.log('[JS_SDK] getSigningSession', params, endpoint.api);
|
99
100
|
return [2 /*return*/, endpoint.api //
|
100
101
|
.get("/envelopes/".concat(params.envelopeId, "/recipients/").concat(encodeURIComponent(params.roleId), "/invitation/").concat(params.inviteCode))
|
101
102
|
.then(function (r) {
|
@@ -223,12 +224,7 @@ var getEnvelopeDocumentPageDisplayUri = function (endpoint, envelopeId, document
|
|
223
224
|
return __awaiter(void 0, void 0, void 0, function () {
|
224
225
|
return __generator(this, function (_a) {
|
225
226
|
return [2 /*return*/, endpoint.api
|
226
|
-
.get("/envelopes/".concat(envelopeId, "/envelope_documents/").concat(documentId, "/pages/").concat(page, "/image?type=").concat(type), {
|
227
|
-
timeout: 20000,
|
228
|
-
'axios-retry': {
|
229
|
-
retries: 5,
|
230
|
-
},
|
231
|
-
})
|
227
|
+
.get("/envelopes/".concat(envelopeId, "/envelope_documents/").concat(documentId, "/pages/").concat(page, "/image?type=").concat(type), { timeout: 20000 })
|
232
228
|
.then(function (r) { return r.data; })];
|
233
229
|
});
|
234
230
|
});
|
@@ -360,182 +360,6 @@ var Roles;
|
|
360
360
|
Roles["MEMBER"] = "member";
|
361
361
|
})(Roles || (Roles = {}));
|
362
362
|
|
363
|
-
const denyList = new Set([
|
364
|
-
'ENOTFOUND',
|
365
|
-
'ENETUNREACH',
|
366
|
-
|
367
|
-
// SSL errors from https://github.com/nodejs/node/blob/fc8e3e2cdc521978351de257030db0076d79e0ab/src/crypto/crypto_common.cc#L301-L328
|
368
|
-
'UNABLE_TO_GET_ISSUER_CERT',
|
369
|
-
'UNABLE_TO_GET_CRL',
|
370
|
-
'UNABLE_TO_DECRYPT_CERT_SIGNATURE',
|
371
|
-
'UNABLE_TO_DECRYPT_CRL_SIGNATURE',
|
372
|
-
'UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY',
|
373
|
-
'CERT_SIGNATURE_FAILURE',
|
374
|
-
'CRL_SIGNATURE_FAILURE',
|
375
|
-
'CERT_NOT_YET_VALID',
|
376
|
-
'CERT_HAS_EXPIRED',
|
377
|
-
'CRL_NOT_YET_VALID',
|
378
|
-
'CRL_HAS_EXPIRED',
|
379
|
-
'ERROR_IN_CERT_NOT_BEFORE_FIELD',
|
380
|
-
'ERROR_IN_CERT_NOT_AFTER_FIELD',
|
381
|
-
'ERROR_IN_CRL_LAST_UPDATE_FIELD',
|
382
|
-
'ERROR_IN_CRL_NEXT_UPDATE_FIELD',
|
383
|
-
'OUT_OF_MEM',
|
384
|
-
'DEPTH_ZERO_SELF_SIGNED_CERT',
|
385
|
-
'SELF_SIGNED_CERT_IN_CHAIN',
|
386
|
-
'UNABLE_TO_GET_ISSUER_CERT_LOCALLY',
|
387
|
-
'UNABLE_TO_VERIFY_LEAF_SIGNATURE',
|
388
|
-
'CERT_CHAIN_TOO_LONG',
|
389
|
-
'CERT_REVOKED',
|
390
|
-
'INVALID_CA',
|
391
|
-
'PATH_LENGTH_EXCEEDED',
|
392
|
-
'INVALID_PURPOSE',
|
393
|
-
'CERT_UNTRUSTED',
|
394
|
-
'CERT_REJECTED',
|
395
|
-
'HOSTNAME_MISMATCH'
|
396
|
-
]);
|
397
|
-
|
398
|
-
// TODO: Use `error?.code` when targeting Node.js 14
|
399
|
-
var isRetryAllowed = error => !denyList.has(error && error.code);
|
400
|
-
|
401
|
-
const namespace = 'axios-retry';
|
402
|
-
function isNetworkError(error) {
|
403
|
-
const CODE_EXCLUDE_LIST = ['ERR_CANCELED', 'ECONNABORTED'];
|
404
|
-
if (error.response) {
|
405
|
-
return false;
|
406
|
-
}
|
407
|
-
if (!error.code) {
|
408
|
-
return false;
|
409
|
-
}
|
410
|
-
// Prevents retrying timed out & cancelled requests
|
411
|
-
if (CODE_EXCLUDE_LIST.includes(error.code)) {
|
412
|
-
return false;
|
413
|
-
}
|
414
|
-
// Prevents retrying unsafe errors
|
415
|
-
return isRetryAllowed(error);
|
416
|
-
}
|
417
|
-
const SAFE_HTTP_METHODS = ['get', 'head', 'options'];
|
418
|
-
const IDEMPOTENT_HTTP_METHODS = SAFE_HTTP_METHODS.concat(['put', 'delete']);
|
419
|
-
function isRetryableError(error) {
|
420
|
-
return (error.code !== 'ECONNABORTED' &&
|
421
|
-
(!error.response || (error.response.status >= 500 && error.response.status <= 599)));
|
422
|
-
}
|
423
|
-
function isSafeRequestError(error) {
|
424
|
-
if (!error.config?.method) {
|
425
|
-
// Cannot determine if the request can be retried
|
426
|
-
return false;
|
427
|
-
}
|
428
|
-
return isRetryableError(error) && SAFE_HTTP_METHODS.indexOf(error.config.method) !== -1;
|
429
|
-
}
|
430
|
-
function isIdempotentRequestError(error) {
|
431
|
-
if (!error.config?.method) {
|
432
|
-
// Cannot determine if the request can be retried
|
433
|
-
return false;
|
434
|
-
}
|
435
|
-
return isRetryableError(error) && IDEMPOTENT_HTTP_METHODS.indexOf(error.config.method) !== -1;
|
436
|
-
}
|
437
|
-
function isNetworkOrIdempotentRequestError(error) {
|
438
|
-
return isNetworkError(error) || isIdempotentRequestError(error);
|
439
|
-
}
|
440
|
-
function noDelay() {
|
441
|
-
return 0;
|
442
|
-
}
|
443
|
-
function exponentialDelay(retryNumber = 0, _error = undefined, delayFactor = 100) {
|
444
|
-
const delay = 2 ** retryNumber * delayFactor;
|
445
|
-
const randomSum = delay * 0.2 * Math.random(); // 0-20% of the delay
|
446
|
-
return delay + randomSum;
|
447
|
-
}
|
448
|
-
const DEFAULT_OPTIONS = {
|
449
|
-
retries: 3,
|
450
|
-
retryCondition: isNetworkOrIdempotentRequestError,
|
451
|
-
retryDelay: noDelay,
|
452
|
-
shouldResetTimeout: false,
|
453
|
-
onRetry: () => { }
|
454
|
-
};
|
455
|
-
function getRequestOptions(config, defaultOptions) {
|
456
|
-
return { ...DEFAULT_OPTIONS, ...defaultOptions, ...config[namespace] };
|
457
|
-
}
|
458
|
-
function setCurrentState(config, defaultOptions) {
|
459
|
-
const currentState = getRequestOptions(config, defaultOptions || {});
|
460
|
-
currentState.retryCount = currentState.retryCount || 0;
|
461
|
-
currentState.lastRequestTime = currentState.lastRequestTime || Date.now();
|
462
|
-
config[namespace] = currentState;
|
463
|
-
return currentState;
|
464
|
-
}
|
465
|
-
function fixConfig(axiosInstance, config) {
|
466
|
-
// @ts-ignore
|
467
|
-
if (axiosInstance.defaults.agent === config.agent) {
|
468
|
-
// @ts-ignore
|
469
|
-
delete config.agent;
|
470
|
-
}
|
471
|
-
if (axiosInstance.defaults.httpAgent === config.httpAgent) {
|
472
|
-
delete config.httpAgent;
|
473
|
-
}
|
474
|
-
if (axiosInstance.defaults.httpsAgent === config.httpsAgent) {
|
475
|
-
delete config.httpsAgent;
|
476
|
-
}
|
477
|
-
}
|
478
|
-
async function shouldRetry(currentState, error) {
|
479
|
-
const { retries, retryCondition } = currentState;
|
480
|
-
const shouldRetryOrPromise = (currentState.retryCount || 0) < retries && retryCondition(error);
|
481
|
-
// This could be a promise
|
482
|
-
if (typeof shouldRetryOrPromise === 'object') {
|
483
|
-
try {
|
484
|
-
const shouldRetryPromiseResult = await shouldRetryOrPromise;
|
485
|
-
// keep return true unless shouldRetryPromiseResult return false for compatibility
|
486
|
-
return shouldRetryPromiseResult !== false;
|
487
|
-
}
|
488
|
-
catch (_err) {
|
489
|
-
return false;
|
490
|
-
}
|
491
|
-
}
|
492
|
-
return shouldRetryOrPromise;
|
493
|
-
}
|
494
|
-
const axiosRetry = (axiosInstance, defaultOptions) => {
|
495
|
-
const requestInterceptorId = axiosInstance.interceptors.request.use((config) => {
|
496
|
-
setCurrentState(config, defaultOptions);
|
497
|
-
return config;
|
498
|
-
});
|
499
|
-
const responseInterceptorId = axiosInstance.interceptors.response.use(null, async (error) => {
|
500
|
-
const { config } = error;
|
501
|
-
// If we have no information to retry the request
|
502
|
-
if (!config) {
|
503
|
-
return Promise.reject(error);
|
504
|
-
}
|
505
|
-
const currentState = setCurrentState(config, defaultOptions);
|
506
|
-
if (await shouldRetry(currentState, error)) {
|
507
|
-
currentState.retryCount += 1;
|
508
|
-
const { retryDelay, shouldResetTimeout, onRetry } = currentState;
|
509
|
-
const delay = retryDelay(currentState.retryCount, error);
|
510
|
-
// Axios fails merging this configuration to the default configuration because it has an issue
|
511
|
-
// with circular structures: https://github.com/mzabriskie/axios/issues/370
|
512
|
-
fixConfig(axiosInstance, config);
|
513
|
-
if (!shouldResetTimeout && config.timeout && currentState.lastRequestTime) {
|
514
|
-
const lastRequestDuration = Date.now() - currentState.lastRequestTime;
|
515
|
-
const timeout = config.timeout - lastRequestDuration - delay;
|
516
|
-
if (timeout <= 0) {
|
517
|
-
return Promise.reject(error);
|
518
|
-
}
|
519
|
-
config.timeout = timeout;
|
520
|
-
}
|
521
|
-
config.transformRequest = [(data) => data];
|
522
|
-
await onRetry(currentState.retryCount, error, config);
|
523
|
-
return new Promise((resolve) => {
|
524
|
-
setTimeout(() => resolve(axiosInstance(config)), delay);
|
525
|
-
});
|
526
|
-
}
|
527
|
-
return Promise.reject(error);
|
528
|
-
});
|
529
|
-
return { requestInterceptorId, responseInterceptorId };
|
530
|
-
};
|
531
|
-
// Compatibility with CommonJS
|
532
|
-
axiosRetry.isNetworkError = isNetworkError;
|
533
|
-
axiosRetry.isSafeRequestError = isSafeRequestError;
|
534
|
-
axiosRetry.isIdempotentRequestError = isIdempotentRequestError;
|
535
|
-
axiosRetry.isNetworkOrIdempotentRequestError = isNetworkOrIdempotentRequestError;
|
536
|
-
axiosRetry.exponentialDelay = exponentialDelay;
|
537
|
-
axiosRetry.isRetryableError = isRetryableError;
|
538
|
-
|
539
363
|
function bind(fn, thisArg) {
|
540
364
|
return function wrap() {
|
541
365
|
return fn.apply(thisArg, arguments);
|
@@ -3831,7 +3655,7 @@ var requestLogger = function (r) {
|
|
3831
3655
|
* .setSessionType('signing')
|
3832
3656
|
* .logRequests(true)
|
3833
3657
|
* .setClientID('1234)
|
3834
|
-
* .setTimeout(
|
3658
|
+
* .setTimeout(30000);
|
3835
3659
|
* ```
|
3836
3660
|
*/
|
3837
3661
|
var VerdocsEndpoint = /** @class */ (function () {
|
@@ -3867,15 +3691,6 @@ var VerdocsEndpoint = /** @class */ (function () {
|
|
3867
3691
|
this.sessionType = (options === null || options === void 0 ? void 0 : options.sessionType) || this.sessionType;
|
3868
3692
|
this.clientID = (options === null || options === void 0 ? void 0 : options.clientID) || this.clientID;
|
3869
3693
|
this.api = axios.create({ baseURL: this.baseURL, timeout: this.timeout });
|
3870
|
-
window.console.log('[JS_SDK] Initializing', this.baseURL, window.location.origin);
|
3871
|
-
// We set the default retries to zero because we only actually want this feature on certain calls for now
|
3872
|
-
axiosRetry(this.api, {
|
3873
|
-
retries: 0,
|
3874
|
-
retryDelay: axiosRetry.exponentialDelay,
|
3875
|
-
onRetry: function (retryCount, error, requestConfig) {
|
3876
|
-
window.console.debug("[JS_SDK] Retrying request (".concat(retryCount, ")"), error.message, requestConfig.url);
|
3877
|
-
},
|
3878
|
-
});
|
3879
3694
|
}
|
3880
3695
|
VerdocsEndpoint.prototype.setDefault = function () {
|
3881
3696
|
globalThis_1[ENDPOINT_KEY] = this;
|
package/dist/docs.json
CHANGED
@@ -96,6 +96,7 @@ var getSummary = function (endpoint, page) { return __awaiter(void 0, void 0, vo
|
|
96
96
|
*/
|
97
97
|
var getSigningSession = function (endpoint, params) { return __awaiter(void 0, void 0, void 0, function () {
|
98
98
|
return __generator(this, function (_a) {
|
99
|
+
window.console.log('[JS_SDK] getSigningSession', params, endpoint.api);
|
99
100
|
return [2 /*return*/, endpoint.api //
|
100
101
|
.get("/envelopes/".concat(params.envelopeId, "/recipients/").concat(encodeURIComponent(params.roleId), "/invitation/").concat(params.inviteCode))
|
101
102
|
.then(function (r) {
|
@@ -223,12 +224,7 @@ var getEnvelopeDocumentPageDisplayUri = function (endpoint, envelopeId, document
|
|
223
224
|
return __awaiter(void 0, void 0, void 0, function () {
|
224
225
|
return __generator(this, function (_a) {
|
225
226
|
return [2 /*return*/, endpoint.api
|
226
|
-
.get("/envelopes/".concat(envelopeId, "/envelope_documents/").concat(documentId, "/pages/").concat(page, "/image?type=").concat(type), {
|
227
|
-
timeout: 20000,
|
228
|
-
'axios-retry': {
|
229
|
-
retries: 5,
|
230
|
-
},
|
231
|
-
})
|
227
|
+
.get("/envelopes/".concat(envelopeId, "/envelope_documents/").concat(documentId, "/pages/").concat(page, "/image?type=").concat(type), { timeout: 20000 })
|
232
228
|
.then(function (r) { return r.data; })];
|
233
229
|
});
|
234
230
|
});
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { c as createStore } from './index-4439b0d1.js';
|
2
|
-
import { g as getTemplate, T as TemplateSenderTypes } from './VerdocsEndpoint-
|
2
|
+
import { g as getTemplate, T as TemplateSenderTypes } from './VerdocsEndpoint-56fa3371.js';
|
3
3
|
|
4
4
|
const createTemplateStore = (templateId) => {
|
5
5
|
const now = new Date().toISOString();
|
@@ -360,182 +360,6 @@ var Roles;
|
|
360
360
|
Roles["MEMBER"] = "member";
|
361
361
|
})(Roles || (Roles = {}));
|
362
362
|
|
363
|
-
const denyList = new Set([
|
364
|
-
'ENOTFOUND',
|
365
|
-
'ENETUNREACH',
|
366
|
-
|
367
|
-
// SSL errors from https://github.com/nodejs/node/blob/fc8e3e2cdc521978351de257030db0076d79e0ab/src/crypto/crypto_common.cc#L301-L328
|
368
|
-
'UNABLE_TO_GET_ISSUER_CERT',
|
369
|
-
'UNABLE_TO_GET_CRL',
|
370
|
-
'UNABLE_TO_DECRYPT_CERT_SIGNATURE',
|
371
|
-
'UNABLE_TO_DECRYPT_CRL_SIGNATURE',
|
372
|
-
'UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY',
|
373
|
-
'CERT_SIGNATURE_FAILURE',
|
374
|
-
'CRL_SIGNATURE_FAILURE',
|
375
|
-
'CERT_NOT_YET_VALID',
|
376
|
-
'CERT_HAS_EXPIRED',
|
377
|
-
'CRL_NOT_YET_VALID',
|
378
|
-
'CRL_HAS_EXPIRED',
|
379
|
-
'ERROR_IN_CERT_NOT_BEFORE_FIELD',
|
380
|
-
'ERROR_IN_CERT_NOT_AFTER_FIELD',
|
381
|
-
'ERROR_IN_CRL_LAST_UPDATE_FIELD',
|
382
|
-
'ERROR_IN_CRL_NEXT_UPDATE_FIELD',
|
383
|
-
'OUT_OF_MEM',
|
384
|
-
'DEPTH_ZERO_SELF_SIGNED_CERT',
|
385
|
-
'SELF_SIGNED_CERT_IN_CHAIN',
|
386
|
-
'UNABLE_TO_GET_ISSUER_CERT_LOCALLY',
|
387
|
-
'UNABLE_TO_VERIFY_LEAF_SIGNATURE',
|
388
|
-
'CERT_CHAIN_TOO_LONG',
|
389
|
-
'CERT_REVOKED',
|
390
|
-
'INVALID_CA',
|
391
|
-
'PATH_LENGTH_EXCEEDED',
|
392
|
-
'INVALID_PURPOSE',
|
393
|
-
'CERT_UNTRUSTED',
|
394
|
-
'CERT_REJECTED',
|
395
|
-
'HOSTNAME_MISMATCH'
|
396
|
-
]);
|
397
|
-
|
398
|
-
// TODO: Use `error?.code` when targeting Node.js 14
|
399
|
-
var isRetryAllowed = error => !denyList.has(error && error.code);
|
400
|
-
|
401
|
-
const namespace = 'axios-retry';
|
402
|
-
function isNetworkError(error) {
|
403
|
-
const CODE_EXCLUDE_LIST = ['ERR_CANCELED', 'ECONNABORTED'];
|
404
|
-
if (error.response) {
|
405
|
-
return false;
|
406
|
-
}
|
407
|
-
if (!error.code) {
|
408
|
-
return false;
|
409
|
-
}
|
410
|
-
// Prevents retrying timed out & cancelled requests
|
411
|
-
if (CODE_EXCLUDE_LIST.includes(error.code)) {
|
412
|
-
return false;
|
413
|
-
}
|
414
|
-
// Prevents retrying unsafe errors
|
415
|
-
return isRetryAllowed(error);
|
416
|
-
}
|
417
|
-
const SAFE_HTTP_METHODS = ['get', 'head', 'options'];
|
418
|
-
const IDEMPOTENT_HTTP_METHODS = SAFE_HTTP_METHODS.concat(['put', 'delete']);
|
419
|
-
function isRetryableError(error) {
|
420
|
-
return (error.code !== 'ECONNABORTED' &&
|
421
|
-
(!error.response || (error.response.status >= 500 && error.response.status <= 599)));
|
422
|
-
}
|
423
|
-
function isSafeRequestError(error) {
|
424
|
-
if (!error.config?.method) {
|
425
|
-
// Cannot determine if the request can be retried
|
426
|
-
return false;
|
427
|
-
}
|
428
|
-
return isRetryableError(error) && SAFE_HTTP_METHODS.indexOf(error.config.method) !== -1;
|
429
|
-
}
|
430
|
-
function isIdempotentRequestError(error) {
|
431
|
-
if (!error.config?.method) {
|
432
|
-
// Cannot determine if the request can be retried
|
433
|
-
return false;
|
434
|
-
}
|
435
|
-
return isRetryableError(error) && IDEMPOTENT_HTTP_METHODS.indexOf(error.config.method) !== -1;
|
436
|
-
}
|
437
|
-
function isNetworkOrIdempotentRequestError(error) {
|
438
|
-
return isNetworkError(error) || isIdempotentRequestError(error);
|
439
|
-
}
|
440
|
-
function noDelay() {
|
441
|
-
return 0;
|
442
|
-
}
|
443
|
-
function exponentialDelay(retryNumber = 0, _error = undefined, delayFactor = 100) {
|
444
|
-
const delay = 2 ** retryNumber * delayFactor;
|
445
|
-
const randomSum = delay * 0.2 * Math.random(); // 0-20% of the delay
|
446
|
-
return delay + randomSum;
|
447
|
-
}
|
448
|
-
const DEFAULT_OPTIONS = {
|
449
|
-
retries: 3,
|
450
|
-
retryCondition: isNetworkOrIdempotentRequestError,
|
451
|
-
retryDelay: noDelay,
|
452
|
-
shouldResetTimeout: false,
|
453
|
-
onRetry: () => { }
|
454
|
-
};
|
455
|
-
function getRequestOptions(config, defaultOptions) {
|
456
|
-
return { ...DEFAULT_OPTIONS, ...defaultOptions, ...config[namespace] };
|
457
|
-
}
|
458
|
-
function setCurrentState(config, defaultOptions) {
|
459
|
-
const currentState = getRequestOptions(config, defaultOptions || {});
|
460
|
-
currentState.retryCount = currentState.retryCount || 0;
|
461
|
-
currentState.lastRequestTime = currentState.lastRequestTime || Date.now();
|
462
|
-
config[namespace] = currentState;
|
463
|
-
return currentState;
|
464
|
-
}
|
465
|
-
function fixConfig(axiosInstance, config) {
|
466
|
-
// @ts-ignore
|
467
|
-
if (axiosInstance.defaults.agent === config.agent) {
|
468
|
-
// @ts-ignore
|
469
|
-
delete config.agent;
|
470
|
-
}
|
471
|
-
if (axiosInstance.defaults.httpAgent === config.httpAgent) {
|
472
|
-
delete config.httpAgent;
|
473
|
-
}
|
474
|
-
if (axiosInstance.defaults.httpsAgent === config.httpsAgent) {
|
475
|
-
delete config.httpsAgent;
|
476
|
-
}
|
477
|
-
}
|
478
|
-
async function shouldRetry(currentState, error) {
|
479
|
-
const { retries, retryCondition } = currentState;
|
480
|
-
const shouldRetryOrPromise = (currentState.retryCount || 0) < retries && retryCondition(error);
|
481
|
-
// This could be a promise
|
482
|
-
if (typeof shouldRetryOrPromise === 'object') {
|
483
|
-
try {
|
484
|
-
const shouldRetryPromiseResult = await shouldRetryOrPromise;
|
485
|
-
// keep return true unless shouldRetryPromiseResult return false for compatibility
|
486
|
-
return shouldRetryPromiseResult !== false;
|
487
|
-
}
|
488
|
-
catch (_err) {
|
489
|
-
return false;
|
490
|
-
}
|
491
|
-
}
|
492
|
-
return shouldRetryOrPromise;
|
493
|
-
}
|
494
|
-
const axiosRetry = (axiosInstance, defaultOptions) => {
|
495
|
-
const requestInterceptorId = axiosInstance.interceptors.request.use((config) => {
|
496
|
-
setCurrentState(config, defaultOptions);
|
497
|
-
return config;
|
498
|
-
});
|
499
|
-
const responseInterceptorId = axiosInstance.interceptors.response.use(null, async (error) => {
|
500
|
-
const { config } = error;
|
501
|
-
// If we have no information to retry the request
|
502
|
-
if (!config) {
|
503
|
-
return Promise.reject(error);
|
504
|
-
}
|
505
|
-
const currentState = setCurrentState(config, defaultOptions);
|
506
|
-
if (await shouldRetry(currentState, error)) {
|
507
|
-
currentState.retryCount += 1;
|
508
|
-
const { retryDelay, shouldResetTimeout, onRetry } = currentState;
|
509
|
-
const delay = retryDelay(currentState.retryCount, error);
|
510
|
-
// Axios fails merging this configuration to the default configuration because it has an issue
|
511
|
-
// with circular structures: https://github.com/mzabriskie/axios/issues/370
|
512
|
-
fixConfig(axiosInstance, config);
|
513
|
-
if (!shouldResetTimeout && config.timeout && currentState.lastRequestTime) {
|
514
|
-
const lastRequestDuration = Date.now() - currentState.lastRequestTime;
|
515
|
-
const timeout = config.timeout - lastRequestDuration - delay;
|
516
|
-
if (timeout <= 0) {
|
517
|
-
return Promise.reject(error);
|
518
|
-
}
|
519
|
-
config.timeout = timeout;
|
520
|
-
}
|
521
|
-
config.transformRequest = [(data) => data];
|
522
|
-
await onRetry(currentState.retryCount, error, config);
|
523
|
-
return new Promise((resolve) => {
|
524
|
-
setTimeout(() => resolve(axiosInstance(config)), delay);
|
525
|
-
});
|
526
|
-
}
|
527
|
-
return Promise.reject(error);
|
528
|
-
});
|
529
|
-
return { requestInterceptorId, responseInterceptorId };
|
530
|
-
};
|
531
|
-
// Compatibility with CommonJS
|
532
|
-
axiosRetry.isNetworkError = isNetworkError;
|
533
|
-
axiosRetry.isSafeRequestError = isSafeRequestError;
|
534
|
-
axiosRetry.isIdempotentRequestError = isIdempotentRequestError;
|
535
|
-
axiosRetry.isNetworkOrIdempotentRequestError = isNetworkOrIdempotentRequestError;
|
536
|
-
axiosRetry.exponentialDelay = exponentialDelay;
|
537
|
-
axiosRetry.isRetryableError = isRetryableError;
|
538
|
-
|
539
363
|
function bind(fn, thisArg) {
|
540
364
|
return function wrap() {
|
541
365
|
return fn.apply(thisArg, arguments);
|
@@ -3831,7 +3655,7 @@ var requestLogger = function (r) {
|
|
3831
3655
|
* .setSessionType('signing')
|
3832
3656
|
* .logRequests(true)
|
3833
3657
|
* .setClientID('1234)
|
3834
|
-
* .setTimeout(
|
3658
|
+
* .setTimeout(30000);
|
3835
3659
|
* ```
|
3836
3660
|
*/
|
3837
3661
|
var VerdocsEndpoint = /** @class */ (function () {
|
@@ -3867,15 +3691,6 @@ var VerdocsEndpoint = /** @class */ (function () {
|
|
3867
3691
|
this.sessionType = (options === null || options === void 0 ? void 0 : options.sessionType) || this.sessionType;
|
3868
3692
|
this.clientID = (options === null || options === void 0 ? void 0 : options.clientID) || this.clientID;
|
3869
3693
|
this.api = axios.create({ baseURL: this.baseURL, timeout: this.timeout });
|
3870
|
-
window.console.log('[JS_SDK] Initializing', this.baseURL, window.location.origin);
|
3871
|
-
// We set the default retries to zero because we only actually want this feature on certain calls for now
|
3872
|
-
axiosRetry(this.api, {
|
3873
|
-
retries: 0,
|
3874
|
-
retryDelay: axiosRetry.exponentialDelay,
|
3875
|
-
onRetry: function (retryCount, error, requestConfig) {
|
3876
|
-
window.console.debug("[JS_SDK] Retrying request (".concat(retryCount, ")"), error.message, requestConfig.url);
|
3877
|
-
},
|
3878
|
-
});
|
3879
3694
|
}
|
3880
3695
|
VerdocsEndpoint.prototype.setDefault = function () {
|
3881
3696
|
globalThis_1[ENDPOINT_KEY] = this;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-172625c5.js';
|
2
2
|
import './Types-5f31149e.js';
|
3
|
-
import { V as VerdocsEndpoint } from './VerdocsEndpoint-
|
4
|
-
import { g as getTemplateStore } from './TemplateStore-
|
3
|
+
import { V as VerdocsEndpoint } from './VerdocsEndpoint-56fa3371.js';
|
4
|
+
import { g as getTemplateStore } from './TemplateStore-ad77a294.js';
|
5
5
|
import './index-4439b0d1.js';
|
6
6
|
|
7
7
|
const ipcTestCss = "ipc-test{max-width:800px;display:block}";
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { c as createCommonjsModule, a as commonjsGlobal, b as commonjsRequire } from './_commonjsHelpers-8a9f3b18.js';
|
2
|
-
import { b as getEnvelopeFile, d as getFieldAttachment } from './Envelopes-
|
2
|
+
import { b as getEnvelopeFile, d as getFieldAttachment } from './Envelopes-627c5239.js';
|
3
3
|
import './Types-5f31149e.js';
|
4
4
|
import { d as downloadBlob } from './Files-70a192df.js';
|
5
5
|
import { a as FORMAT_DATE } from './Types-1628dc71.js';
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-172625c5.js';
|
2
|
-
import { g as getSummary } from './Envelopes-
|
2
|
+
import { g as getSummary } from './Envelopes-627c5239.js';
|
3
3
|
import './Types-5f31149e.js';
|
4
|
-
import { V as VerdocsEndpoint } from './VerdocsEndpoint-
|
4
|
+
import { V as VerdocsEndpoint } from './VerdocsEndpoint-56fa3371.js';
|
5
5
|
import { i as integerSequence } from './Primitives-8fe93caf.js';
|
6
6
|
import { S as SDKError } from './errors-9b5498c8.js';
|
7
7
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-172625c5.js';
|
2
2
|
import { d as decodeAccessTokenBody } from './Types-5f31149e.js';
|
3
|
-
import { V as VerdocsEndpoint } from './VerdocsEndpoint-
|
3
|
+
import { V as VerdocsEndpoint } from './VerdocsEndpoint-56fa3371.js';
|
4
4
|
import { c as createBusinessAccount } from './Profiles-d4df4d1c.js';
|
5
5
|
import { V as VerdocsToast } from './Toast-f3b8fd46.js';
|
6
6
|
import { S as SDKError } from './errors-9b5498c8.js';
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, a as getElement } from './index-172625c5.js';
|
2
2
|
import './Types-5f31149e.js';
|
3
|
-
import { V as VerdocsEndpoint } from './VerdocsEndpoint-
|
4
|
-
import { g as getTemplateStore } from './TemplateStore-
|
3
|
+
import { V as VerdocsEndpoint } from './VerdocsEndpoint-56fa3371.js';
|
4
|
+
import { g as getTemplateStore } from './TemplateStore-ad77a294.js';
|
5
5
|
import { S as SDKError } from './errors-9b5498c8.js';
|
6
6
|
import './index-4439b0d1.js';
|
7
7
|
|