@verdocs/web-sdk 2.3.77 → 2.3.81
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/{TemplateRoleStore-94afc2b0.js → TemplateRoleStore-a7f2b586.js} +2 -0
- package/dist/cjs/{TemplateStore-ae59084b.js → TemplateStore-62c90f8c.js} +2 -2
- package/dist/cjs/{VerdocsEndpoint-f4ef9333.js → VerdocsEndpoint-3036bbb7.js} +27 -6
- package/dist/cjs/ipc-test.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-activity-box.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-auth.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-build.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-checkbox_5.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-contact-picker_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelope-recipient-link_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-attachment_15.cjs.entry.js +21 -15
- package/dist/cjs/verdocs-field-payment.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-file-chooser_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-preview_8.cjs.entry.js +3 -3
- 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 +1 -1
- package/dist/cjs/verdocs-settings.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-sign.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-fields_4.cjs.entry.js +12 -7
- 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 +1 -1
- package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js +3 -3
- package/dist/collection/components/templates/verdocs-template-document-page/verdocs-template-document-page.js +18 -12
- package/dist/collection/components/templates/verdocs-template-fields/verdocs-template-fields.js +1 -1
- package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.js +8 -2
- package/dist/collection/components/templates/verdocs-template-roles/verdocs-template-roles.js +1 -2
- package/dist/collection/utils/TemplateRoleStore.js +2 -0
- package/dist/components/TemplateRoleStore.js +2 -0
- package/dist/components/VerdocsEndpoint.js +27 -6
- package/dist/components/verdocs-auth.js +3 -3
- package/dist/components/verdocs-field-date2.js +1 -1
- package/dist/components/verdocs-template-document-page2.js +18 -12
- package/dist/components/verdocs-template-fields2.js +1 -1
- package/dist/components/verdocs-template-role-properties2.js +8 -2
- package/dist/components/verdocs-template-roles2.js +1 -2
- package/dist/custom-elements.json +2147 -0
- package/dist/docs.json +1 -1
- package/dist/esm/{TemplateRoleStore-447f2cb6.js → TemplateRoleStore-33229997.js} +2 -0
- package/dist/esm/{TemplateStore-99bf97f0.js → TemplateStore-940da116.js} +2 -2
- package/dist/esm/{VerdocsEndpoint-eab308f6.js → VerdocsEndpoint-8196ff47.js} +27 -6
- package/dist/esm/ipc-test.entry.js +3 -3
- package/dist/esm/verdocs-activity-box.entry.js +1 -1
- package/dist/esm/verdocs-auth.entry.js +4 -4
- package/dist/esm/verdocs-build.entry.js +3 -3
- package/dist/esm/verdocs-checkbox_5.entry.js +3 -3
- package/dist/esm/verdocs-contact-picker_2.entry.js +1 -1
- package/dist/esm/verdocs-envelope-document-page.entry.js +1 -1
- package/dist/esm/verdocs-envelope-recipient-link_2.entry.js +1 -1
- package/dist/esm/verdocs-envelope-sidebar.entry.js +1 -1
- package/dist/esm/verdocs-envelopes-list.entry.js +1 -1
- package/dist/esm/verdocs-field-attachment_15.entry.js +21 -15
- package/dist/esm/verdocs-field-payment.entry.js +1 -1
- package/dist/esm/verdocs-file-chooser_2.entry.js +1 -1
- package/dist/esm/verdocs-preview_8.entry.js +3 -3
- 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 +1 -1
- package/dist/esm/verdocs-settings.entry.js +1 -1
- package/dist/esm/verdocs-sign.entry.js +1 -1
- package/dist/esm/verdocs-template-fields_4.entry.js +12 -7
- 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 +1 -1
- package/dist/esm-es5/TemplateRoleStore-33229997.js +1 -0
- package/dist/esm-es5/{TemplateStore-99bf97f0.js → TemplateStore-940da116.js} +1 -1
- package/dist/esm-es5/VerdocsEndpoint-8196ff47.js +1 -0
- package/dist/esm-es5/ipc-test.entry.js +1 -1
- 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-checkbox_5.entry.js +1 -1
- package/dist/esm-es5/verdocs-contact-picker_2.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_15.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-payment.entry.js +1 -1
- package/dist/esm-es5/verdocs-file-chooser_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-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-ac07d476.entry.js → p-0fad670a.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-159aeaf2.entry.js → p-11313611.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-91e94910.entry.js → p-15bab601.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-1f9d9fe5.system.js +1 -0
- package/dist/verdocs-web-sdk/p-235b4a0b.system.js +1 -0
- package/dist/verdocs-web-sdk/p-2415be91.js +1 -0
- package/dist/verdocs-web-sdk/p-24af72a8.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-28c93a3a.system.entry.js → p-26510053.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d11ffc76.entry.js → p-282f9e5d.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-2b24875a.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-d0140be2.entry.js → p-2d19abc4.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7e5a1766.system.entry.js → p-2e7c8fab.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-b0e0084b.system.entry.js → p-2fe06d77.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-0e6b2f10.system.entry.js → p-339bf806.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-c73e78c8.system.entry.js → p-33b07afa.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ea2211d7.system.entry.js → p-36027210.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-84679597.entry.js → p-3caf62b5.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-de5b9b23.system.entry.js → p-3e87cba1.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-bf8e6ba1.system.entry.js → p-42df843d.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-b2d3ac44.entry.js → p-4632097c.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-58e85310.system.entry.js → p-4867c205.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-1d5f10f4.entry.js → p-4e2266f4.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-06618569.entry.js → p-50b42b7a.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7b3dfc4b.system.entry.js → p-517fd967.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-baf16d17.system.entry.js → p-540181be.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-a7907ccf.entry.js → p-5bd07c15.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-8a7324b6.entry.js → p-5ffa1866.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-e7d7bcae.system.entry.js → p-7284027d.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ac042888.entry.js → p-72d71bdb.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-8205cd46.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-a9b80271.system.entry.js → p-82c670ba.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9d748d04.entry.js → p-8a6efa9b.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-a9da16c6.entry.js → p-8c67e5b4.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-906096be.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-e3623a0c.system.entry.js → p-946cdc47.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-15c88a05.system.entry.js → p-9a3d8a0e.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-9cfcfab1.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-b8063124.entry.js → p-9eccf06a.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d0d9ac6d.system.js → p-b6df9fe6.system.js} +1 -1
- package/dist/verdocs-web-sdk/{p-a12b2c26.system.entry.js → p-b7c6d8c0.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-77c145b3.system.entry.js → p-b9d8c567.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9a816526.system.entry.js → p-bca5cb27.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d61bf72b.system.entry.js → p-c693d197.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ef99042b.entry.js → p-c71cd002.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-ceadd1e1.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-4ce528a6.entry.js → p-d2dafb54.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-d425fa2c.js +1 -0
- package/dist/verdocs-web-sdk/{p-c898e591.system.entry.js → p-e0607460.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d1c52218.entry.js → p-e0d4794b.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-45ecd6eb.js → p-e1f4be7c.js} +1 -1
- package/dist/verdocs-web-sdk/{p-40f5b1c5.entry.js → p-e25d16cc.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-f04bf956.system.js +1 -1
- package/dist/verdocs-web-sdk/{p-6a93295c.entry.js → p-f5475fa5.entry.js} +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +15 -15
- package/dist/esm-es5/TemplateRoleStore-447f2cb6.js +0 -1
- package/dist/esm-es5/VerdocsEndpoint-eab308f6.js +0 -1
- package/dist/verdocs-web-sdk/p-332141f2.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-5e8e5761.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-7519fe6e.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-8324a7a3.system.js +0 -1
- package/dist/verdocs-web-sdk/p-8f36c42a.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-b086f9be.js +0 -1
- package/dist/verdocs-web-sdk/p-bbf52926.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-c179b3e4.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-e04d8f5d.js +0 -1
- package/dist/verdocs-web-sdk/p-f246348c.system.js +0 -1
@@ -4,10 +4,10 @@ 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-3036bbb7.js');
|
8
8
|
const TemplateFieldStore = require('./TemplateFieldStore-3d25fc86.js');
|
9
|
-
const TemplateRoleStore = require('./TemplateRoleStore-
|
10
|
-
const TemplateStore = require('./TemplateStore-
|
9
|
+
const TemplateRoleStore = require('./TemplateRoleStore-a7f2b586.js');
|
10
|
+
const TemplateStore = require('./TemplateStore-62c90f8c.js');
|
11
11
|
const utils = require('./utils-13f8ed3f.js');
|
12
12
|
const errors = require('./errors-0396da3d.js');
|
13
13
|
const Envelopes = require('./Envelopes-0b9deb2c.js');
|
@@ -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-3036bbb7.js');
|
8
8
|
|
9
9
|
const verdocsQuickFunctionsCss = "verdocs-quick-functions{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif}verdocs-quick-functions .container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:240px;background-color:#1e2031;text-transform:uppercase;padding:10px 10px 20px 10px;font-family:sans-serif;color:#ffffff}verdocs-quick-functions .title{font-size:22px;font-weight:700;line-height:30px;margin:1em 0 40px 0}verdocs-quick-functions button{width:140px;height:40px;border:none;display:-ms-flexbox;display:flex;color:#ffffff;cursor:pointer;font-size:14px;font-weight:700;line-height:25px;-ms-flex-align:center;align-items:center;margin-bottom:20px;border-radius:5px;text-transform:uppercase;-ms-flex-pack:space-evenly;justify-content:space-evenly;background-color:#55bc81}verdocs-quick-functions button svg{fill:#ffffff}";
|
10
10
|
|
@@ -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-3036bbb7.js');
|
8
8
|
|
9
9
|
const verdocsSearchCss = "verdocs-search{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif;display:-ms-flexbox;display:flex;background-color:#1e2031}verdocs-search search-box{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin:20px 10px}verdocs-search .boxes{-ms-flex-wrap:wrap;flex-wrap:wrap;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;margin:20px 0}verdocs-search search-recent,verdocs-search search-saved,verdocs-search search-quick-functions,verdocs-search search-starred{display:-ms-flexbox;display:flex;margin:0 20px 20px 0}";
|
10
10
|
|
@@ -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-3036bbb7.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');
|
@@ -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-3036bbb7.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}";
|
@@ -6,7 +6,7 @@ const index = require('./index-5463795e.js');
|
|
6
6
|
const Envelopes = require('./Envelopes-0b9deb2c.js');
|
7
7
|
const Types = require('./Types-f89f9116.js');
|
8
8
|
const Recipients = require('./Recipients-f3d6cf10.js');
|
9
|
-
const VerdocsEndpoint = require('./VerdocsEndpoint-
|
9
|
+
const VerdocsEndpoint = require('./VerdocsEndpoint-3036bbb7.js');
|
10
10
|
const Validators = require('./Validators-16e6d7d1.js');
|
11
11
|
const Primitives = require('./Primitives-a59870a2.js');
|
12
12
|
const utils = require('./utils-13f8ed3f.js');
|
@@ -5,13 +5,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
const index = require('./index-5463795e.js');
|
6
6
|
const interact_min = require('./interact.min-49218928.js');
|
7
7
|
require('./Types-f89f9116.js');
|
8
|
-
const VerdocsEndpoint = require('./VerdocsEndpoint-
|
8
|
+
const VerdocsEndpoint = require('./VerdocsEndpoint-3036bbb7.js');
|
9
9
|
const Fields = require('./Fields-705a2168.js');
|
10
10
|
const Primitives = require('./Primitives-a59870a2.js');
|
11
11
|
const TemplateFieldStore = require('./TemplateFieldStore-3d25fc86.js');
|
12
12
|
const utils = require('./utils-13f8ed3f.js');
|
13
|
-
const TemplateRoleStore = require('./TemplateRoleStore-
|
14
|
-
const TemplateStore = require('./TemplateStore-
|
13
|
+
const TemplateRoleStore = require('./TemplateRoleStore-a7f2b586.js');
|
14
|
+
const TemplateStore = require('./TemplateStore-62c90f8c.js');
|
15
15
|
const errors = require('./errors-0396da3d.js');
|
16
16
|
const Colors = require('./Colors-e809dcc9.js');
|
17
17
|
require('./_commonjsHelpers-0c557e26.js');
|
@@ -404,7 +404,7 @@ const VerdocsTemplateFields = class {
|
|
404
404
|
if (this.loading || !((_a = this.templateStore) === null || _a === void 0 ? void 0 : _a.state.isLoaded)) {
|
405
405
|
return (index.h(index.Host, null, index.h("verdocs-loader", null)));
|
406
406
|
}
|
407
|
-
const selectableRoles = this.roleStore.get('roles').map(role => ({ value: role.name, label: role.name }));
|
407
|
+
const selectableRoles = this.roleStore.get('roles').map(role => ({ value: role.name, label: role.full_name ? `${role.name}: ${role.full_name}` : role.name }));
|
408
408
|
return (index.h(index.Host, { class: this.placing ? { [`placing-${this.placing}`]: true } : {}, onSubmit: () => { } }, index.h("div", { id: "verdocs-template-fields-toolbar" }, index.h("div", { class: "add-for" }, "Add field:"), index.h("verdocs-select-input", { value: this.selectedRoleName, options: selectableRoles, onInput: (e) => (this.selectedRoleName = e.target.value) }), menuOptions.map(option => (index.h("verdocs-toolbar-icon", { text: option.tooltip, icon: option.icon, onClick: () => {
|
409
409
|
// We ignore empty-tooltip entries because they're separators
|
410
410
|
if (option.tooltip) {
|
@@ -466,7 +466,13 @@ const VerdocsTemplateRoleProperties = class {
|
|
466
466
|
}
|
467
467
|
this.templateStore = await TemplateStore.getTemplateStore(this.endpoint, this.templateId, false);
|
468
468
|
this.fieldStore = TemplateFieldStore.getTemplateFieldStore(this.templateId);
|
469
|
-
|
469
|
+
// FIXME: This was createTemplateRoleStore, which it didn't have to be. But that shouldn't break anything,
|
470
|
+
// and using create() will reload the roles from the TEMPLATE, not the server. Creating/deleting roles
|
471
|
+
// isn't updating the template, so if you add a role and then pop this dialog the store will be reloaded
|
472
|
+
// without the newly-added role in place causing the dialog (and future role edits) to break. We should
|
473
|
+
// a) when creating/updating/deleting roles, update the template/store not just the roles, and b) review
|
474
|
+
// and confirm that all things that look at roles are mapped to the role store, not the template.
|
475
|
+
this.roleStore = TemplateRoleStore.getTemplateRoleStore(this.templateId);
|
470
476
|
const editingRole = this.roleStore.state.roles.find(role => role.name === this.roleName);
|
471
477
|
if (editingRole) {
|
472
478
|
this.name = editingRole.name;
|
@@ -730,7 +736,7 @@ const VerdocsTemplateRoles = class {
|
|
730
736
|
// e.g. 1.5 to place it between items 1 and 2, 0.5 to place it at the beginning, or last+0.5 to place it at the end.
|
731
737
|
// Then we re-sort the list of roles and renumber them.
|
732
738
|
renumberTemplateRoles() {
|
733
|
-
console.log('Renumbering roles', this.getSequenceNumbers(), JSON.stringify(this.roleStore.state));
|
739
|
+
// console.log('Renumbering roles', this.getSequenceNumbers(), JSON.stringify(this.roleStore.state));
|
734
740
|
// Avoid dupe renumber attempts
|
735
741
|
const renumbered = [];
|
736
742
|
// If the user dragged an entry from below a row to above it, we end up here like [1,0]. Make sure it's [0,1] for the next operation.
|
@@ -749,7 +755,6 @@ const VerdocsTemplateRoles = class {
|
|
749
755
|
}
|
750
756
|
// Look for name conflicts, because they're UGC and can be anything, regardless of order.
|
751
757
|
getNextRoleName() {
|
752
|
-
console.log('Getting next role name', JSON.stringify(this.roleStore.state));
|
753
758
|
let name = '';
|
754
759
|
let nextNumber = Object.keys(this.roleStore.state).length - 1;
|
755
760
|
do {
|
@@ -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-3036bbb7.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-3036bbb7.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');
|
@@ -6,7 +6,7 @@ const index = require('./index-5463795e.js');
|
|
6
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-3036bbb7.js');
|
10
10
|
const Primitives = require('./Primitives-a59870a2.js');
|
11
11
|
const utils = require('./utils-13f8ed3f.js');
|
12
12
|
const errors = require('./errors-0396da3d.js');
|
@@ -159,13 +159,13 @@ export class VerdocsAuth {
|
|
159
159
|
this.loginAndCheckVerification();
|
160
160
|
})
|
161
161
|
.catch(e => {
|
162
|
-
var _a, _b, _c, _d, _e;
|
163
|
-
console.log('[AUTH] Signup error', e.response
|
162
|
+
var _a, _b, _c, _d, _e, _f;
|
163
|
+
console.log('[AUTH] Signup error', e.response);
|
164
164
|
this.submitting = false;
|
165
165
|
this.activeSession = null;
|
166
166
|
(_a = this.authenticated) === null || _a === void 0 ? void 0 : _a.emit({ authenticated: false, session: null });
|
167
167
|
(_b = this.sdkError) === null || _b === void 0 ? void 0 : _b.emit(new SDKError(e.message, (_c = e.response) === null || _c === void 0 ? void 0 : _c.status, (_d = e.response) === null || _d === void 0 ? void 0 : _d.data));
|
168
|
-
VerdocsToast('Signup failed: ' + ((_e = e.response) === null || _e === void 0 ? void 0 : _e.data), { style: 'error' });
|
168
|
+
VerdocsToast('Signup failed: ' + ((_f = (_e = e.response) === null || _e === void 0 ? void 0 : _e.data) === null || _f === void 0 ? void 0 : _f.message) || 'Unknown Error', { style: 'error' });
|
169
169
|
});
|
170
170
|
}
|
171
171
|
loginAndCheckVerification() {
|
@@ -99,36 +99,42 @@ export class VerdocsTemplateDocumentPage {
|
|
99
99
|
.get('fields')
|
100
100
|
.filter(field => field && field.page_sequence === this.pageNumber)
|
101
101
|
.map(field => {
|
102
|
+
var _a, _b;
|
102
103
|
const id = getFieldId(field);
|
103
|
-
|
104
|
+
let { name, type } = field;
|
105
|
+
const { xScale, yScale, templateId, editable, disabled, done, pageNumber } = this;
|
106
|
+
if (((_a = field['setting']) === null || _a === void 0 ? void 0 : _a.leading) > 0 || ((_b = field['settings']) === null || _b === void 0 ? void 0 : _b.leading) > 0) {
|
107
|
+
type = 'textarea';
|
108
|
+
}
|
109
|
+
switch (type) {
|
104
110
|
case 'textbox':
|
105
|
-
return (h("verdocs-field-textbox", { id: id,
|
111
|
+
return (h("verdocs-field-textbox", { id: id, fieldname: name, templateid: templateId, editable: editable, disabled: disabled, done: done, xscale: xScale, yscale: yScale, pagenumber: pageNumber, style: getControlStyles(field, xScale, yScale, 0) }));
|
106
112
|
case 'textarea':
|
107
|
-
return (h("verdocs-field-textarea", { id: id,
|
113
|
+
return (h("verdocs-field-textarea", { id: id, fieldname: name, templateid: templateId, editable: editable, disabled: disabled, done: done, xscale: xScale, yscale: yScale, pagenumber: pageNumber, style: getControlStyles(field, xScale, yScale, 0) }));
|
108
114
|
case 'date':
|
109
|
-
return (h("verdocs-field-date", { id: id,
|
115
|
+
return (h("verdocs-field-date", { id: id, fieldname: name, templateid: templateId, editable: editable, disabled: disabled, done: done, xscale: xScale, yscale: yScale, pagenumber: pageNumber, style: getControlStyles(field, xScale, yScale, 0) }));
|
110
116
|
case 'attachment':
|
111
|
-
return (h("verdocs-field-attachment", { id: id,
|
117
|
+
return (h("verdocs-field-attachment", { id: id, fieldname: name, templateid: templateId, editable: editable, disabled: disabled, done: done, xscale: xScale, yscale: yScale, pagenumber: pageNumber, style: getControlStyles(field, xScale, yScale, 0) }));
|
112
118
|
case 'dropdown':
|
113
|
-
return (h("verdocs-field-dropdown", { id: id,
|
119
|
+
return (h("verdocs-field-dropdown", { id: id, fieldname: name, templateid: templateId, editable: editable, disabled: disabled, done: done, xscale: xScale, yscale: yScale, pagenumber: pageNumber, style: getControlStyles(field, xScale, yScale, 0) }));
|
114
120
|
case 'initial':
|
115
|
-
return (h("verdocs-field-initial", { id: id,
|
121
|
+
return (h("verdocs-field-initial", { id: id, fieldname: name, templateid: templateId, editable: editable, disabled: disabled, done: done, xscale: xScale, yscale: yScale, pagenumber: pageNumber, style: getControlStyles(field, xScale, yScale, 0) }));
|
116
122
|
case 'signature':
|
117
|
-
return (h("verdocs-field-signature", { id: id,
|
123
|
+
return (h("verdocs-field-signature", { id: id, fieldname: name, templateid: templateId, editable: editable, disabled: disabled, done: done, xscale: xScale, yscale: yScale, pagenumber: pageNumber, style: getControlStyles(field, this.xScale, this.yScale, 0) }));
|
118
124
|
case 'timestamp':
|
119
|
-
return (h("verdocs-field-timestamp", { id: id,
|
125
|
+
return (h("verdocs-field-timestamp", { id: id, fieldname: name, templateid: templateId, editable: editable, disabled: disabled, done: done, xscale: xScale, yscale: yScale, pagenumber: pageNumber, style: getControlStyles(field, xScale, yScale, 0) }));
|
120
126
|
case 'checkbox_group':
|
121
127
|
return (field.settings || field.setting || {}).options.map((_, checkboxIndex) => {
|
122
128
|
const id = getFieldOptionId(field, checkboxIndex);
|
123
|
-
return (h("verdocs-field-checkbox", { id: id,
|
129
|
+
return (h("verdocs-field-checkbox", { id: id, fieldname: name, templateid: templateId, editable: editable, disabled: disabled, done: done, xscale: xScale, yscale: yScale, pagenumber: pageNumber, option: checkboxIndex, style: getControlStyles(field, xScale, yScale, checkboxIndex) }));
|
124
130
|
});
|
125
131
|
case 'radio_button_group':
|
126
132
|
return (field.settings || field.setting || {}).options.map((_, checkboxIndex) => {
|
127
133
|
const id = getFieldOptionId(field, checkboxIndex);
|
128
|
-
return (h("verdocs-field-radio-button", { id: id,
|
134
|
+
return (h("verdocs-field-radio-button", { id: id, fieldname: name, templateid: templateId, editable: editable, disabled: disabled, done: done, xscale: xScale, yscale: yScale, pagenumber: pageNumber, option: checkboxIndex, style: getControlStyles(field, xScale, yScale, checkboxIndex) }));
|
129
135
|
});
|
130
136
|
default:
|
131
|
-
return h(Fragment, null,
|
137
|
+
return h(Fragment, null, name);
|
132
138
|
}
|
133
139
|
}))) : this.pageDisplayUri ? (h("img", { class: "verdocs-template-document-page-layer img", id: `${this.containerId}-${layer.name}`, src: this.pageDisplayUri, alt: `Page ${this.pageNumber}`, "aria-hidden": true, loading: "lazy", onLoad: (e) => {
|
134
140
|
// Note that all we really care about is the aspect ratio. We track the natural Width and Height but they aren't really that
|
package/dist/collection/components/templates/verdocs-template-fields/verdocs-template-fields.js
CHANGED
@@ -367,7 +367,7 @@ export class VerdocsTemplateFields {
|
|
367
367
|
if (this.loading || !((_a = this.templateStore) === null || _a === void 0 ? void 0 : _a.state.isLoaded)) {
|
368
368
|
return (h(Host, null, h("verdocs-loader", null)));
|
369
369
|
}
|
370
|
-
const selectableRoles = this.roleStore.get('roles').map(role => ({ value: role.name, label: role.name }));
|
370
|
+
const selectableRoles = this.roleStore.get('roles').map(role => ({ value: role.name, label: role.full_name ? `${role.name}: ${role.full_name}` : role.name }));
|
371
371
|
return (h(Host, { class: this.placing ? { [`placing-${this.placing}`]: true } : {}, onSubmit: () => { } }, h("div", { id: "verdocs-template-fields-toolbar" }, h("div", { class: "add-for" }, "Add field:"), h("verdocs-select-input", { value: this.selectedRoleName, options: selectableRoles, onInput: (e) => (this.selectedRoleName = e.target.value) }), menuOptions.map(option => (h("verdocs-toolbar-icon", { text: option.tooltip, icon: option.icon, onClick: () => {
|
372
372
|
// We ignore empty-tooltip entries because they're separators
|
373
373
|
if (option.tooltip) {
|
@@ -2,7 +2,7 @@ import { VerdocsEndpoint } from '@verdocs/js-sdk';
|
|
2
2
|
import { deleteRole, updateRole } from '@verdocs/js-sdk/Templates/Roles';
|
3
3
|
import { h, Host } from '@stencil/core';
|
4
4
|
import { TemplateSenderTypes } from '@verdocs/js-sdk/Templates/Types';
|
5
|
-
import {
|
5
|
+
import { deleteStoreRole, getTemplateRoleStore, updateStoreRole } from '../../../utils/TemplateRoleStore';
|
6
6
|
import { getTemplateFieldStore } from '../../../utils/TemplateFieldStore';
|
7
7
|
import { getTemplateStore } from '../../../utils/TemplateStore';
|
8
8
|
import { SDKError } from '../../../utils/errors';
|
@@ -42,7 +42,13 @@ export class VerdocsTemplateRoleProperties {
|
|
42
42
|
}
|
43
43
|
this.templateStore = await getTemplateStore(this.endpoint, this.templateId, false);
|
44
44
|
this.fieldStore = getTemplateFieldStore(this.templateId);
|
45
|
-
|
45
|
+
// FIXME: This was createTemplateRoleStore, which it didn't have to be. But that shouldn't break anything,
|
46
|
+
// and using create() will reload the roles from the TEMPLATE, not the server. Creating/deleting roles
|
47
|
+
// isn't updating the template, so if you add a role and then pop this dialog the store will be reloaded
|
48
|
+
// without the newly-added role in place causing the dialog (and future role edits) to break. We should
|
49
|
+
// a) when creating/updating/deleting roles, update the template/store not just the roles, and b) review
|
50
|
+
// and confirm that all things that look at roles are mapped to the role store, not the template.
|
51
|
+
this.roleStore = getTemplateRoleStore(this.templateId);
|
46
52
|
const editingRole = this.roleStore.state.roles.find(role => role.name === this.roleName);
|
47
53
|
if (editingRole) {
|
48
54
|
this.name = editingRole.name;
|
package/dist/collection/components/templates/verdocs-template-roles/verdocs-template-roles.js
CHANGED
@@ -166,7 +166,7 @@ export class VerdocsTemplateRoles {
|
|
166
166
|
// e.g. 1.5 to place it between items 1 and 2, 0.5 to place it at the beginning, or last+0.5 to place it at the end.
|
167
167
|
// Then we re-sort the list of roles and renumber them.
|
168
168
|
renumberTemplateRoles() {
|
169
|
-
console.log('Renumbering roles', this.getSequenceNumbers(), JSON.stringify(this.roleStore.state));
|
169
|
+
// console.log('Renumbering roles', this.getSequenceNumbers(), JSON.stringify(this.roleStore.state));
|
170
170
|
// Avoid dupe renumber attempts
|
171
171
|
const renumbered = [];
|
172
172
|
// If the user dragged an entry from below a row to above it, we end up here like [1,0]. Make sure it's [0,1] for the next operation.
|
@@ -185,7 +185,6 @@ export class VerdocsTemplateRoles {
|
|
185
185
|
}
|
186
186
|
// Look for name conflicts, because they're UGC and can be anything, regardless of order.
|
187
187
|
getNextRoleName() {
|
188
|
-
console.log('Getting next role name', JSON.stringify(this.roleStore.state));
|
189
188
|
let name = '';
|
190
189
|
let nextNumber = Object.keys(this.roleStore.state).length - 1;
|
191
190
|
do {
|
@@ -17,6 +17,7 @@ export const createTemplateRoleStore = (template) => {
|
|
17
17
|
return store;
|
18
18
|
};
|
19
19
|
export const updateStoreRole = (store, name, newRoleData) => {
|
20
|
+
console.log('[ROLES] Updating store role', name, newRoleData);
|
20
21
|
const newRoles = [
|
21
22
|
...store.get('roles').map(role => {
|
22
23
|
if (role.name !== name) {
|
@@ -28,6 +29,7 @@ export const updateStoreRole = (store, name, newRoleData) => {
|
|
28
29
|
store.set('roles', newRoles);
|
29
30
|
};
|
30
31
|
export const deleteStoreRole = (store, name) => {
|
32
|
+
console.log('[ROLES] Deleting store role', name);
|
31
33
|
const newRoles = [...store.get('roles').filter(field => field.name !== name)];
|
32
34
|
store.set('roles', newRoles);
|
33
35
|
};
|
@@ -18,6 +18,7 @@ const createTemplateRoleStore = (template) => {
|
|
18
18
|
return store;
|
19
19
|
};
|
20
20
|
const updateStoreRole = (store, name, newRoleData) => {
|
21
|
+
console.log('[ROLES] Updating store role', name, newRoleData);
|
21
22
|
const newRoles = [
|
22
23
|
...store.get('roles').map(role => {
|
23
24
|
if (role.name !== name) {
|
@@ -29,6 +30,7 @@ const updateStoreRole = (store, name, newRoleData) => {
|
|
29
30
|
store.set('roles', newRoles);
|
30
31
|
};
|
31
32
|
const deleteStoreRole = (store, name) => {
|
33
|
+
console.log('[ROLES] Deleting store role', name);
|
32
34
|
const newRoles = [...store.get('roles').filter(field => field.name !== name)];
|
33
35
|
store.set('roles', newRoles);
|
34
36
|
};
|
@@ -1795,9 +1795,6 @@ const defaults = {
|
|
1795
1795
|
const isFormData = utils$1.isFormData(data);
|
1796
1796
|
|
1797
1797
|
if (isFormData) {
|
1798
|
-
if (!hasJSONContentType) {
|
1799
|
-
return data;
|
1800
|
-
}
|
1801
1798
|
return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
|
1802
1799
|
}
|
1803
1800
|
|
@@ -3011,7 +3008,7 @@ function mergeConfig(config1, config2) {
|
|
3011
3008
|
return config;
|
3012
3009
|
}
|
3013
3010
|
|
3014
|
-
const VERSION = "1.6.
|
3011
|
+
const VERSION = "1.6.7";
|
3015
3012
|
|
3016
3013
|
const validators$1 = {};
|
3017
3014
|
|
@@ -3126,7 +3123,31 @@ class Axios {
|
|
3126
3123
|
*
|
3127
3124
|
* @returns {Promise} The Promise to be fulfilled
|
3128
3125
|
*/
|
3129
|
-
request(configOrUrl, config) {
|
3126
|
+
async request(configOrUrl, config) {
|
3127
|
+
try {
|
3128
|
+
return await this._request(configOrUrl, config);
|
3129
|
+
} catch (err) {
|
3130
|
+
if (err instanceof Error) {
|
3131
|
+
let dummy;
|
3132
|
+
|
3133
|
+
Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : (dummy = new Error());
|
3134
|
+
|
3135
|
+
// slice off the Error: ... line
|
3136
|
+
const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, '') : '';
|
3137
|
+
|
3138
|
+
if (!err.stack) {
|
3139
|
+
err.stack = stack;
|
3140
|
+
// match without the 2 top stack lines
|
3141
|
+
} else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ''))) {
|
3142
|
+
err.stack += '\n' + stack;
|
3143
|
+
}
|
3144
|
+
}
|
3145
|
+
|
3146
|
+
throw err;
|
3147
|
+
}
|
3148
|
+
}
|
3149
|
+
|
3150
|
+
_request(configOrUrl, config) {
|
3130
3151
|
/*eslint no-param-reassign:0*/
|
3131
3152
|
// Allow for axios('example/url'[, config]) a la fetch API
|
3132
3153
|
if (typeof configOrUrl === 'string') {
|
@@ -3673,7 +3694,7 @@ var VerdocsEndpoint = /** @class */ (function () {
|
|
3673
3694
|
function VerdocsEndpoint(options) {
|
3674
3695
|
this.environment = 'verdocs';
|
3675
3696
|
this.sessionType = 'user';
|
3676
|
-
this.baseURL = (window.location.origin === 'https://beta.verdocs.com'
|
3697
|
+
this.baseURL = (window.location.origin === 'https://beta.verdocs.com' || window.location.origin === 'https://stage.verdocs.com'
|
3677
3698
|
? 'https://stage-api.verdocs.com'
|
3678
3699
|
: 'https://api.verdocs.com');
|
3679
3700
|
this.clientID = 'not-set';
|
@@ -193,13 +193,13 @@ const VerdocsAuth$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
193
193
|
this.loginAndCheckVerification();
|
194
194
|
})
|
195
195
|
.catch(e => {
|
196
|
-
var _a, _b, _c, _d, _e;
|
197
|
-
console.log('[AUTH] Signup error', e.response
|
196
|
+
var _a, _b, _c, _d, _e, _f;
|
197
|
+
console.log('[AUTH] Signup error', e.response);
|
198
198
|
this.submitting = false;
|
199
199
|
this.activeSession = null;
|
200
200
|
(_a = this.authenticated) === null || _a === void 0 ? void 0 : _a.emit({ authenticated: false, session: null });
|
201
201
|
(_b = this.sdkError) === null || _b === void 0 ? void 0 : _b.emit(new SDKError(e.message, (_c = e.response) === null || _c === void 0 ? void 0 : _c.status, (_d = e.response) === null || _d === void 0 ? void 0 : _d.data));
|
202
|
-
VerdocsToast('Signup failed: ' + ((_e = e.response) === null || _e === void 0 ? void 0 : _e.data), { style: 'error' });
|
202
|
+
VerdocsToast('Signup failed: ' + ((_f = (_e = e.response) === null || _e === void 0 ? void 0 : _e.data) === null || _f === void 0 ? void 0 : _f.message) || 'Unknown Error', { style: 'error' });
|
203
203
|
});
|
204
204
|
}
|
205
205
|
loginAndCheckVerification() {
|