@verdocs/web-sdk 2.3.9 → 2.3.11
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/{Profiles-54271244.js → Profiles-1a26e4eb.js} +0 -34
- package/dist/cjs/{TemplateStore-5a4a177f.js → TemplateStore-192c6cf1.js} +1 -1
- package/dist/cjs/{VerdocsEndpoint-feb02bbc.js → VerdocsEndpoint-33b643eb.js} +6 -30
- package/dist/cjs/interact.min-a61b43b3.js +12 -0
- package/dist/cjs/ipc-test.cjs.entry.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/verdocs-activity-box.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-auth.cjs.entry.js +4 -27
- 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 +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-textarea.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-field-textbox.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-file-chooser_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +2 -1
- package/dist/cjs/verdocs-preview_8.cjs.entry.js +2 -2
- 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 +26 -4
- package/dist/cjs/verdocs-settings.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-sign.cjs.entry.js +6 -4
- package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-fields_4.cjs.entry.js +3 -3
- 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/cjs/verdocs-web-sdk.cjs.js +1 -1
- package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.js +20 -1
- package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js +2 -27
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +6 -3
- package/dist/components/VerdocsEndpoint.js +6 -30
- package/dist/components/interact.min.js +2 -2
- package/dist/components/verdocs-auth.js +8 -39
- package/dist/components/verdocs-ok-dialog2.js +3 -1
- package/dist/components/verdocs-settings-organization2.js +22 -1
- package/dist/components/verdocs-sign.js +6 -3
- package/dist/custom-elements.json +2067 -0
- package/dist/docs.json +18 -13
- package/dist/esm/{Profiles-4cc942ef.js → Profiles-d4df4d1c.js} +1 -32
- package/dist/esm/{TemplateStore-14f723bf.js → TemplateStore-7149eda0.js} +1 -1
- package/dist/esm/{VerdocsEndpoint-a59ded42.js → VerdocsEndpoint-7922d31f.js} +6 -30
- package/dist/esm/interact.min-6a7b19a1.js +10 -0
- package/dist/esm/ipc-test.entry.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/verdocs-activity-box.entry.js +1 -1
- package/dist/esm/verdocs-auth.entry.js +4 -27
- 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 +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-textarea.entry.js +2 -2
- package/dist/esm/verdocs-field-textbox.entry.js +2 -2
- package/dist/esm/verdocs-file-chooser_2.entry.js +1 -1
- package/dist/esm/verdocs-ok-dialog.entry.js +2 -1
- package/dist/esm/verdocs-preview_8.entry.js +2 -2
- 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 +24 -2
- package/dist/esm/verdocs-settings.entry.js +1 -1
- package/dist/esm/verdocs-sign.entry.js +6 -4
- package/dist/esm/verdocs-template-document-page_2.entry.js +1 -1
- package/dist/esm/verdocs-template-fields_4.entry.js +3 -3
- 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/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/Profiles-d4df4d1c.js +1 -0
- package/dist/esm-es5/{TemplateStore-14f723bf.js → TemplateStore-7149eda0.js} +1 -1
- package/dist/esm-es5/{VerdocsEndpoint-a59ded42.js → VerdocsEndpoint-7922d31f.js} +1 -1
- package/dist/esm-es5/interact.min-6a7b19a1.js +1 -0
- package/dist/esm-es5/ipc-test.entry.js +1 -1
- package/dist/esm-es5/loader.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-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-textarea.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-textbox.entry.js +1 -1
- package/dist/esm-es5/verdocs-file-chooser_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-ok-dialog.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/esm-es5/verdocs-web-sdk.js +1 -1
- package/dist/types/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.d.ts +4 -0
- package/dist/types/components/embeds/verdocs-auth/verdocs-auth.d.ts +0 -2
- package/dist/types/components/embeds/verdocs-sign/verdocs-sign.d.ts +1 -0
- package/dist/types/components.d.ts +8 -0
- package/dist/types/utils/utils.d.ts +1 -1
- package/dist/verdocs-web-sdk/{p-845e40ca.system.entry.js → p-0419a39f.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-b5f563b7.entry.js → p-0549358c.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-c771e768.entry.js → p-05b3034f.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-cb04a8a5.system.entry.js → p-06fb711b.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-5b003315.entry.js → p-083bdbc6.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-81c9f299.system.entry.js → p-0c157d55.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-488a92e4.system.entry.js → p-14b08edd.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d5cb5e29.system.js → p-19ff8f86.system.js} +1 -1
- package/dist/verdocs-web-sdk/{p-066729d2.system.entry.js → p-1a3168af.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-f4567d98.entry.js → p-1efd342e.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-458a3445.system.js → p-1fdb236c.system.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d97c481a.entry.js → p-2c47b92e.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-2fe75327.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-7b392b3f.entry.js → p-3019b350.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-3b582da3.system.entry.js → p-345f88a3.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-32285d2e.system.entry.js → p-38679b8e.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-4c5ce44f.system.entry.js → p-39f3f620.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-3e607686.js +1 -0
- package/dist/verdocs-web-sdk/{p-c2498224.entry.js → p-3f5fb65b.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-5d17a274.system.entry.js → p-3f837e30.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-089a9c0e.system.entry.js → p-401a49cb.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-cfde5c2b.entry.js → p-47460aa0.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-09b15e4b.system.entry.js → p-4a1bc6e3.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-bca93ee8.entry.js → p-4a3238f6.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-4ee0a68f.entry.js → p-599fa850.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-072714e2.system.entry.js → p-59c44eee.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-79cec67a.js → p-5aee3e25.js} +1 -1
- package/dist/verdocs-web-sdk/{p-a04c9aa5.system.entry.js → p-5f434764.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-b00e0b8f.entry.js → p-6827df7b.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-6a13105b.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-ee316cf1.entry.js → p-6b1735f4.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d3c8a413.system.entry.js → p-6d70fc87.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-cd38f66f.system.entry.js → p-7144ab8e.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-94abe272.entry.js → p-73b9ef06.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-b20e7165.entry.js → p-7be5cb8c.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-023787bb.system.entry.js → p-7cbe51d8.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-90d54d8a.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-915883e6.js +1 -0
- package/dist/verdocs-web-sdk/{p-650acfb1.entry.js → p-974b4c02.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-2e5e0966.system.entry.js → p-9c2bec77.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-9dcb8b6c.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-9efafb64.system.entry.js → p-a59064f7.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9c80493a.js → p-b101fae2.js} +1 -1
- package/dist/verdocs-web-sdk/p-cd20fb77.system.js +1 -0
- package/dist/verdocs-web-sdk/{p-043e7ab7.entry.js → p-ce00ee85.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-013d1556.system.entry.js → p-d1ea580b.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9ef5c58b.system.entry.js → p-d2cee107.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-55af24a2.system.entry.js → p-d7dbeec3.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-1c03ac0b.system.entry.js → p-da1c0295.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-5e45b8a2.entry.js → p-dd277e69.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-e2ae3679.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-e2ff37fb.system.js +1 -0
- package/dist/verdocs-web-sdk/{p-79650407.entry.js → p-e6b68ad5.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-627c6d20.entry.js → p-ecb7ea02.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-f04bf956.system.js +1 -1
- package/dist/verdocs-web-sdk/{p-352b68e9.entry.js → p-f3a1060a.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-cddce91f.entry.js → p-f49cb84b.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-fa1621c8.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-fdf0a9de.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +4 -4
- package/dist/cjs/interact.min-7c05ff8a.js +0 -12
- package/dist/components/Organizations.js +0 -32
- package/dist/esm/interact.min-ef5402f3.js +0 -10
- package/dist/esm-es5/Profiles-4cc942ef.js +0 -1
- package/dist/esm-es5/interact.min-ef5402f3.js +0 -1
- package/dist/verdocs-web-sdk/p-04580be0.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-22776bcd.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-22cc7e6f.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-4efdd0a7.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-5b1271df.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-91485eb2.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-983da2f6.js +0 -1
- package/dist/verdocs-web-sdk/p-999fbe79.js +0 -1
- package/dist/verdocs-web-sdk/p-f65a1b9e.system.js +0 -1
- package/dist/verdocs-web-sdk/p-fcd0a40a.system.js +0 -1
- package/dist/verdocs-web-sdk/p-fde4ec0a.entry.js +0 -1
@@ -1,14 +1,12 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
2
2
|
import { d as decodeAccessTokenBody } from './Types.js';
|
3
|
-
import { i as isOrgAvailable } from './Organizations.js';
|
4
3
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint.js';
|
5
4
|
import { c as createBusinessAccount } from './Profiles.js';
|
6
5
|
import { V as VerdocsToast } from './Toast.js';
|
7
6
|
import { S as SDKError } from './errors.js';
|
8
|
-
import { d as defineCustomElement$
|
9
|
-
import { d as defineCustomElement$
|
10
|
-
import { d as defineCustomElement$
|
11
|
-
import { d as defineCustomElement$3 } from './verdocs-spinner2.js';
|
7
|
+
import { d as defineCustomElement$5 } from './verdocs-button2.js';
|
8
|
+
import { d as defineCustomElement$4 } from './verdocs-help-icon2.js';
|
9
|
+
import { d as defineCustomElement$3 } from './verdocs-select-input2.js';
|
12
10
|
import { d as defineCustomElement$2 } from './verdocs-text-input2.js';
|
13
11
|
|
14
12
|
/**
|
@@ -66,9 +64,6 @@ var resendVerification = function (endpoint, accessToken) {
|
|
66
64
|
const verdocsAuthCss = "verdocs-auth{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-auth .form{background:#ffffff;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;display:-ms-flexbox;display:flex;padding:20px;width:300px;max-width:100%}verdocs-auth .logo{margin:20px 0 30px;width:128px;max-width:100%}verdocs-auth h3{text-align:center;font-weight:400;font-size:16px;line-height:1.75;margin:0}verdocs-auth h4{text-align:center;font-weight:400;font-size:14px;line-height:1.43;margin:0}verdocs-auth h4 verdocs-button button.normal .button-label{padding:0}verdocs-auth .buttons{gap:20px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}verdocs-auth .status-result{display:none}verdocs-auth .status-result.debug{white-space:pre-wrap;font-size:14px;background:#fff;padding:10px;display:block;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}verdocs-auth form{width:100%}verdocs-auth verdocs-text-input{margin-bottom:10px}verdocs-auth .account-option{gap:8px;margin:20px 0 8px 0;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-auth p+p{margin-top:0}verdocs-auth verdocs-help-icon{margin-top:18px;display:-ms-flexbox;display:flex;width:32px;height:32px;-ms-flex:0 0 32px;flex:0 0 32px}";
|
67
65
|
|
68
66
|
const RECHECK_INTERVAL = 5000;
|
69
|
-
const OkIcon = `<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24" fill="green"><path fill-rule="evenodd" d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z" clip-rule="evenodd" /></svg>`;
|
70
|
-
const TakenIcon = `<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24" fill="red"><path fill-rule="evenodd" d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z" clip-rule="evenodd" /></svg>`;
|
71
|
-
const InfoIcon = `<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24" fill="#4a4a4a"><path fill-rule="evenodd" d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm11.378-3.917c-.89-.777-2.366-.777-3.255 0a.75.75 0 01-.988-1.129c1.454-1.272 3.776-1.272 5.23 0 1.513 1.324 1.513 3.518 0 4.842a3.75 3.75 0 01-.837.552c-.676.328-1.028.774-1.028 1.152v.75a.75.75 0 01-1.5 0v-.75c0-1.279 1.06-2.107 1.875-2.502.182-.088.351-.199.503-.331.83-.727.83-1.857 0-2.584zM12 18a.75.75 0 100-1.5.75.75 0 000 1.5z" clip-rule="evenodd" /></svg>`;
|
72
67
|
const Industries = [
|
73
68
|
{ value: '', label: '' },
|
74
69
|
{ value: 'Accounting & Tax', label: 'Accounting & Tax' },
|
@@ -124,7 +119,6 @@ const VerdocsAuth$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
124
119
|
this.isAuthenticated = false;
|
125
120
|
this.displayMode = 'login';
|
126
121
|
this.orgname = '';
|
127
|
-
this.orgAvailable = 'UNKNOWN';
|
128
122
|
this.first = '';
|
129
123
|
this.last = '';
|
130
124
|
this.username = '';
|
@@ -284,23 +278,6 @@ const VerdocsAuth$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
284
278
|
this.submitting = false;
|
285
279
|
});
|
286
280
|
}
|
287
|
-
async checkAvailability(name) {
|
288
|
-
this.checkingOrg = true;
|
289
|
-
try {
|
290
|
-
this.orgname = name;
|
291
|
-
const r = await isOrgAvailable(this.endpoint, name);
|
292
|
-
this.orgAvailable = r.result;
|
293
|
-
console.log('response', this.orgAvailable);
|
294
|
-
// Stage: POST - https://2r8pilqa44.execute-api.us-east-1.amazonaws.com/organizations/check-availability
|
295
|
-
// Prod: POST - https://lb1is9fxoc.execute-api.us-east-1.amazonaws.com/organizations/check-availability
|
296
|
-
}
|
297
|
-
catch (e) {
|
298
|
-
// NOP
|
299
|
-
// We need to trap this error because we get a 400 if the org name is invalid.
|
300
|
-
this.orgAvailable = 'UNKNOWN';
|
301
|
-
}
|
302
|
-
this.checkingOrg = false;
|
303
|
-
}
|
304
281
|
render() {
|
305
282
|
if (!this.visible) {
|
306
283
|
return h("div", { style: { display: 'none' } }, "Authenticated");
|
@@ -309,10 +286,8 @@ const VerdocsAuth$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
309
286
|
return (h("verdocs-button", { label: "Sign Out", disabled: this.submitting, onClick: () => this.handleLogout(), style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }));
|
310
287
|
}
|
311
288
|
if (this.displayMode === 'signup') {
|
312
|
-
const step1Invalid = this.submitting || !this.first || !this.last || !this.username || !this.password || !this.orgname
|
313
|
-
return (h("div", { class: "form" }, h("a", { href: "https://verdocs.com/en/" }, h("img", { src: this.logo, alt: "Verdocs Logo", class: "logo" })), h("h3", null, "Sign up for a trial account"), h("h4", null, "Already have an account?", h("verdocs-button", { label: "Log In", variant: "text", onClick: () => (this.displayMode = 'login'), disabled: this.submitting })), this.signupStep === 1 && (h("form", { onSubmit: () => this.handleSignup() }, h("div", { style: { display: 'flex', flexDirection: 'row', columnGap: '20px' } }, h("verdocs-text-input", { label: "First Name", autocomplete: "first", required: true, value: this.first, onInput: (e) => (this.first = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Last Name", autocomplete: "last", required: true, value: this.last, onInput: (e) => (this.last = e.target.value), disabled: this.submitting })), h("verdocs-text-input", { label: "Email", autocomplete: "email", required: true, value: this.username, onInput: (e) => (this.username = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Phone #", autocomplete: "phone", value: this.phone, onInput: (e) => (this.phone = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Password", type: "password", required: true, autocomplete: "current-password", value: this.password, onInput: (e) => (this.password = e.target.value), disabled: this.submitting }), h("
|
314
|
-
console.log('blur');
|
315
|
-
} }), !this.checkingOrg && this.orgAvailable === 'AVAILABLE' && h("verdocs-help-icon", { icon: OkIcon, text: "Organization name is available." }), !this.checkingOrg && this.orgAvailable === 'TAKEN' && h("verdocs-help-icon", { icon: TakenIcon, text: "Organization already registered." }), !this.checkingOrg && this.orgAvailable === 'UNKNOWN' && h("verdocs-help-icon", { icon: InfoIcon, text: "Organization name must be unique." }), this.checkingOrg && h("verdocs-spinner", { mode: "dark", size: 24 })), h("div", { style: { marginTop: '30px' } }), h("verdocs-button", { label: "Next", disabled: step1Invalid, onClick: () => (this.signupStep = 2), style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }))), this.signupStep === 2 && (h("form", { onSubmit: () => this.handleSignup() }, h("verdocs-text-input", { label: "How did you hear about Verdocs?", value: this.howHear, onInput: (e) => (this.howHear = e.target.value), disabled: this.submitting }), h("verdocs-select-input", { label: "Your Industry", options: Industries, value: this.industry, onInput: (e) => (this.industry = e.target.value), disabled: this.submitting }), h("verdocs-select-input", { label: "Company Size", options: CompanySizes, value: this.companySize, onInput: (e) => (this.companySize = e.target.value), disabled: this.submitting }), h("verdocs-select-input", { label: "Purpose", options: Reasons, value: this.reason, onInput: (e) => (this.reason = e.target.value), disabled: this.submitting }), h("div", { style: { marginTop: '30px' } }), h("verdocs-button", { label: "Create Account", disabled: this.submitting, onClick: () => this.handleSignup(), style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }))), this.signupStep === 3 && (h("form", { onSubmit: () => this.handleSignup() }, h("p", null, "Please check your e-mail inbox for a verification code and follow the instructions provided."), h("p", null, h("em", null, "Verification messages may take up to 1 hour to arrive. If you do not receive the invitation, ", h("a", { href: "#" }, "Click Here"), " to resend it. Be sure to check your spam folder.")), h("div", { style: { display: 'flex', flexDirection: 'row', gap: '20px' } }, h("verdocs-button", { label: "Back", disabled: this.submitting, onClick: () => {
|
289
|
+
const step1Invalid = this.submitting || !this.first || !this.last || !this.username || !this.password || !this.orgname;
|
290
|
+
return (h("div", { class: "form" }, h("a", { href: "https://verdocs.com/en/" }, h("img", { src: this.logo, alt: "Verdocs Logo", class: "logo" })), h("h3", null, "Sign up for a trial account"), h("h4", null, "Already have an account?", h("verdocs-button", { label: "Log In", variant: "text", onClick: () => (this.displayMode = 'login'), disabled: this.submitting })), this.signupStep === 1 && (h("form", { onSubmit: () => this.handleSignup() }, h("div", { style: { display: 'flex', flexDirection: 'row', columnGap: '20px' } }, h("verdocs-text-input", { label: "First Name", autocomplete: "first", required: true, value: this.first, onInput: (e) => (this.first = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Last Name", autocomplete: "last", required: true, value: this.last, onInput: (e) => (this.last = e.target.value), disabled: this.submitting })), h("verdocs-text-input", { label: "Email", autocomplete: "email", required: true, value: this.username, onInput: (e) => (this.username = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Phone #", autocomplete: "phone", value: this.phone, onInput: (e) => (this.phone = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Password", type: "password", required: true, autocomplete: "current-password", value: this.password, onInput: (e) => (this.password = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Organization Name", autocomplete: "org", required: true, value: this.orgname, onInput: (e) => (this.orgname = e.target.value), disabled: this.submitting, style: { flex: '1' } }), h("div", { style: { marginTop: '30px' } }), h("verdocs-button", { label: "Next", disabled: step1Invalid, onClick: () => (this.signupStep = 2), style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }))), this.signupStep === 2 && (h("form", { onSubmit: () => this.handleSignup() }, h("verdocs-text-input", { label: "How did you hear about Verdocs?", value: this.howHear, onInput: (e) => (this.howHear = e.target.value), disabled: this.submitting }), h("verdocs-select-input", { label: "Your Industry", options: Industries, value: this.industry, onInput: (e) => (this.industry = e.target.value), disabled: this.submitting }), h("verdocs-select-input", { label: "Company Size", options: CompanySizes, value: this.companySize, onInput: (e) => (this.companySize = e.target.value), disabled: this.submitting }), h("verdocs-select-input", { label: "Purpose", options: Reasons, value: this.reason, onInput: (e) => (this.reason = e.target.value), disabled: this.submitting }), h("div", { style: { marginTop: '30px' } }), h("verdocs-button", { label: "Create Account", disabled: this.submitting, onClick: () => this.handleSignup(), style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }))), this.signupStep === 3 && (h("form", { onSubmit: () => this.handleSignup() }, h("p", null, "Please check your e-mail inbox for a verification code and follow the instructions provided."), h("p", null, h("em", null, "Verification messages may take up to 1 hour to arrive. If you do not receive the invitation, ", h("a", { href: "#" }, "Click Here"), " to resend it. Be sure to check your spam folder.")), h("div", { style: { display: 'flex', flexDirection: 'row', gap: '20px' } }, h("verdocs-button", { label: "Back", disabled: this.submitting, onClick: () => {
|
316
291
|
this.signupStep = 2;
|
317
292
|
}, style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }), h("verdocs-button", { label: "Go to Dashboard", disabled: true, onClick: () => this.handleSignup(), style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }))))));
|
318
293
|
}
|
@@ -340,7 +315,6 @@ const VerdocsAuth$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
340
315
|
"isAuthenticated": [32],
|
341
316
|
"displayMode": [32],
|
342
317
|
"orgname": [32],
|
343
|
-
"orgAvailable": [32],
|
344
318
|
"first": [32],
|
345
319
|
"last": [32],
|
346
320
|
"username": [32],
|
@@ -361,7 +335,7 @@ function defineCustomElement$1() {
|
|
361
335
|
if (typeof customElements === "undefined") {
|
362
336
|
return;
|
363
337
|
}
|
364
|
-
const components = ["verdocs-auth", "verdocs-button", "verdocs-help-icon", "verdocs-select-input", "verdocs-
|
338
|
+
const components = ["verdocs-auth", "verdocs-button", "verdocs-help-icon", "verdocs-select-input", "verdocs-text-input"];
|
365
339
|
components.forEach(tagName => { switch (tagName) {
|
366
340
|
case "verdocs-auth":
|
367
341
|
if (!customElements.get(tagName)) {
|
@@ -369,21 +343,16 @@ function defineCustomElement$1() {
|
|
369
343
|
}
|
370
344
|
break;
|
371
345
|
case "verdocs-button":
|
372
|
-
if (!customElements.get(tagName)) {
|
373
|
-
defineCustomElement$6();
|
374
|
-
}
|
375
|
-
break;
|
376
|
-
case "verdocs-help-icon":
|
377
346
|
if (!customElements.get(tagName)) {
|
378
347
|
defineCustomElement$5();
|
379
348
|
}
|
380
349
|
break;
|
381
|
-
case "verdocs-
|
350
|
+
case "verdocs-help-icon":
|
382
351
|
if (!customElements.get(tagName)) {
|
383
352
|
defineCustomElement$4();
|
384
353
|
}
|
385
354
|
break;
|
386
|
-
case "verdocs-
|
355
|
+
case "verdocs-select-input":
|
387
356
|
if (!customElements.get(tagName)) {
|
388
357
|
defineCustomElement$3();
|
389
358
|
}
|
@@ -11,6 +11,7 @@ const VerdocsOkDialog = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
11
11
|
this.exit = createEvent(this, "exit", 7);
|
12
12
|
this.heading = '';
|
13
13
|
this.message = '';
|
14
|
+
this.buttonLabel = 'OK';
|
14
15
|
this.showCancel = false;
|
15
16
|
this.closed = false;
|
16
17
|
}
|
@@ -29,12 +30,13 @@ const VerdocsOkDialog = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
29
30
|
}
|
30
31
|
}
|
31
32
|
render() {
|
32
|
-
return (h(Host, { class: this.closed ? 'closed' : '' }, h("div", { class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { class: "dialog" }, h("div", { class: "heading" }, this.heading), h("div", { class: "content" }, h("div", { class: "message", innerHTML: this.message }), h("div", { class: "buttons" }, this.showCancel ? h("verdocs-button", { label: "CANCEL", variant: "outline", onClick: () => this.handleCancel() }) : h("div", { style: { display: 'none' } }), h("verdocs-button", { label:
|
33
|
+
return (h(Host, { class: this.closed ? 'closed' : '' }, h("div", { class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { class: "dialog" }, h("div", { class: "heading" }, this.heading), h("div", { class: "content" }, h("div", { class: "message", innerHTML: this.message }), h("div", { class: "buttons" }, this.showCancel ? h("verdocs-button", { label: "CANCEL", variant: "outline", onClick: () => this.handleCancel() }) : h("div", { style: { display: 'none' } }), h("verdocs-button", { label: this.buttonLabel, onClick: () => this.handleOk() })))))));
|
33
34
|
}
|
34
35
|
static get style() { return verdocsOkDialogCss; }
|
35
36
|
}, [0, "verdocs-ok-dialog", {
|
36
37
|
"heading": [1],
|
37
38
|
"message": [1],
|
39
|
+
"buttonLabel": [1, "button-label"],
|
38
40
|
"showCancel": [4, "show-cancel"],
|
39
41
|
"closed": [32]
|
40
42
|
}]);
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
2
2
|
import { z } from './index3.js';
|
3
3
|
import './Types.js';
|
4
|
-
import { g as getOrganization, u as updateOrganization } from './Organizations.js';
|
5
4
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint.js';
|
6
5
|
import { d as convertToE164 } from './utils.js';
|
7
6
|
import { V as VerdocsToast } from './Toast.js';
|
@@ -10,6 +9,28 @@ import { d as defineCustomElement$3 } from './verdocs-help-icon2.js';
|
|
10
9
|
import { d as defineCustomElement$2 } from './verdocs-select-input2.js';
|
11
10
|
import { d as defineCustomElement$1 } from './verdocs-text-input2.js';
|
12
11
|
|
12
|
+
/**
|
13
|
+
* An Organization is the top level object for ownership for Members, Documents, and Templates.
|
14
|
+
*
|
15
|
+
* @module
|
16
|
+
*/
|
17
|
+
/**
|
18
|
+
* Get an organization by ID.
|
19
|
+
*/
|
20
|
+
var getOrganization = function (endpoint, organizationId) {
|
21
|
+
return endpoint.api //
|
22
|
+
.get("/organizations/".concat(organizationId))
|
23
|
+
.then(function (r) { return r.data; });
|
24
|
+
};
|
25
|
+
/**
|
26
|
+
* Update an organization.
|
27
|
+
*/
|
28
|
+
var updateOrganization = function (endpoint, organizationId, params) {
|
29
|
+
return endpoint.api //
|
30
|
+
.patch("/organizations/".concat(organizationId), params)
|
31
|
+
.then(function (r) { return r.data; });
|
32
|
+
};
|
33
|
+
|
13
34
|
const TimeZones = [
|
14
35
|
['International Date Line West', 'GMT-11:00', '(GMT-11:00) International Date Line West'],
|
15
36
|
['Midway Island', 'GMT-11:00', '(GMT-11:00) Midway Island'],
|
@@ -85,6 +85,7 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
85
85
|
this.submitting = false;
|
86
86
|
this.isDone = false;
|
87
87
|
this.showDone = false;
|
88
|
+
this.showLoadError = false;
|
88
89
|
this.finishLater = false;
|
89
90
|
this.showFinishLater = false;
|
90
91
|
this.agreed = false;
|
@@ -150,6 +151,7 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
150
151
|
catch (e) {
|
151
152
|
console.log('Error with signing session', e);
|
152
153
|
(_e = this.sdkError) === null || _e === void 0 ? void 0 : _e.emit(new SDKError(e.message, (_f = e.response) === null || _f === void 0 ? void 0 : _f.status, (_g = e.response) === null || _g === void 0 ? void 0 : _g.data));
|
154
|
+
this.showLoadError = true;
|
153
155
|
}
|
154
156
|
}
|
155
157
|
componentDidRender() {
|
@@ -276,9 +278,7 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
276
278
|
if (!e.detail) {
|
277
279
|
return;
|
278
280
|
}
|
279
|
-
console.log('Creating signature blob', e.detail);
|
280
281
|
const signatureBlob = await (await fetch(e.detail)).blob();
|
281
|
-
console.log('Created signature blob', signatureBlob);
|
282
282
|
return createSignature(this.endpoint, 'signature', signatureBlob) //
|
283
283
|
.then(async (newSignature) => {
|
284
284
|
console.log('Signature update result', newSignature);
|
@@ -401,7 +401,6 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
401
401
|
if (invalidFields.length < 1) {
|
402
402
|
this.nextButtonLabel = 'Finish';
|
403
403
|
if (!this.nextSubmits) {
|
404
|
-
// this.showSubmitDialog = true;
|
405
404
|
this.nextSubmits = true;
|
406
405
|
}
|
407
406
|
}
|
@@ -514,6 +513,9 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
514
513
|
})), this.showFinishLater && (h("verdocs-ok-dialog", { heading: "You've saved your document to finish later.", message: `To complete the ${this.documentsSingularPlural}, use the link in the original email notification inviting you to review and finish the document.`, onNext: () => (this.showFinishLater = false) })), this.errorMessage && h("verdocs-ok-dialog", { heading: "Network Error", message: this.errorMessage, onNext: () => (this.errorMessage = '') }), this.showDone && (h("verdocs-ok-dialog", { heading: "You're Done!", message: `You can access the ${this.documentsSingularPlural} at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the document and envelope certificate attached.`, onNext: () => {
|
515
514
|
this.showDone = false;
|
516
515
|
this.isDone = true;
|
516
|
+
} })), this.showLoadError && (h("verdocs-ok-dialog", { heading: "Error Loading Document", message: `Please check with the sender to ensure it has not been canceled, and try again later.`, buttonLabel: "Retry", onNext: () => {
|
517
|
+
this.showLoadError = false;
|
518
|
+
window.location.reload();
|
517
519
|
} })), this.submitting && (h("div", { class: "loading-indicator" }, h("verdocs-loader", null))), !this.agreed && (h("div", { class: "cover" }, h("div", { class: "agree" }, h("verdocs-checkbox", { name: "agree", label: "By checking this box, you:", onInput: () => this.handleClickAgree() }), h("ul", null, h("li", null, "Agree to use electronic records and signatures, and confirm you have read the", ' ', h("a", { href: "https://verdocs.com/en/electronic-record-signature-disclosure/", target: "_blank" }, "Electronic Record and Signatures Disclosure"), "."), h("li", null, "Agree to Verdocs", ' ', h("a", { href: "https://verdocs.com/en/eula", target: "_blank" }, "End User License Agreement"), ' ', "and confirm you have read Verdocs'", ' ', h("a", { href: "https://verdocs.com/en/privacy-policy/", target: "_blank" }, "Privacy Policy"), ".")))))));
|
518
520
|
}
|
519
521
|
static get style() { return verdocsSignCss; }
|
@@ -535,6 +537,7 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
535
537
|
"submitting": [32],
|
536
538
|
"isDone": [32],
|
537
539
|
"showDone": [32],
|
540
|
+
"showLoadError": [32],
|
538
541
|
"finishLater": [32],
|
539
542
|
"showFinishLater": [32],
|
540
543
|
"agreed": [32],
|