@verdocs/web-sdk 5.0.41 → 5.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/verdocs-contact-picker_2.cjs.entry.js +18 -33
- package/dist/cjs/verdocs-contact-picker_2.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js +0 -2
- package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-preview_7.cjs.entry.js +0 -1
- package/dist/cjs/verdocs-preview_7.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-sign.cjs.entry.js +116 -90
- package/dist/cjs/verdocs-sign.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
- package/dist/collection/components/embeds/verdocs-send/verdocs-send.js +0 -1
- package/dist/collection/components/embeds/verdocs-send/verdocs-send.js.map +1 -1
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +123 -95
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js.map +1 -1
- package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js +7 -8
- package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js.map +1 -1
- package/dist/collection/components/fields/verdocs-field-date/verdocs-field-date.js +0 -2
- package/dist/collection/components/fields/verdocs-field-date/verdocs-field-date.js.map +1 -1
- package/dist/components/{p-36368807.js → p-4a04090c.js} +3 -3
- package/dist/components/{p-36368807.js.map → p-4a04090c.js.map} +1 -1
- package/dist/components/{p-c1d312d8.js → p-4a4bf38c.js} +2 -3
- package/dist/components/p-4a4bf38c.js.map +1 -0
- package/dist/components/{p-6bfb8eba.js → p-73a39d5a.js} +19 -34
- package/dist/components/p-73a39d5a.js.map +1 -0
- package/dist/components/{p-795b4192.js → p-91eae04c.js} +3 -3
- package/dist/components/{p-795b4192.js.map → p-91eae04c.js.map} +1 -1
- package/dist/components/{p-52c195dd.js → p-92cce3dc.js} +1 -3
- package/dist/components/{p-52c195dd.js.map → p-92cce3dc.js.map} +1 -1
- package/dist/components/{p-7481c7db.js → p-b474c324.js} +2 -2
- package/dist/components/{p-7481c7db.js.map → p-b474c324.js.map} +1 -1
- package/dist/components/verdocs-build.js +6 -6
- package/dist/components/verdocs-contact-picker.js +1 -1
- package/dist/components/verdocs-field-date.js +1 -1
- package/dist/components/verdocs-preview.js +1 -1
- package/dist/components/verdocs-send.js +1 -1
- package/dist/components/verdocs-sign.js +119 -92
- package/dist/components/verdocs-sign.js.map +1 -1
- package/dist/components/verdocs-template-document-page.js +1 -1
- package/dist/components/verdocs-template-fields.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/verdocs-contact-picker_2.entry.js +18 -33
- package/dist/esm/verdocs-contact-picker_2.entry.js.map +1 -1
- package/dist/esm/verdocs-field-attachment_13.entry.js +0 -2
- package/dist/esm/verdocs-field-attachment_13.entry.js.map +1 -1
- package/dist/esm/verdocs-preview_7.entry.js +0 -1
- package/dist/esm/verdocs-preview_7.entry.js.map +1 -1
- package/dist/esm/verdocs-sign.entry.js +117 -91
- package/dist/esm/verdocs-sign.entry.js.map +1 -1
- package/dist/esm/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/esm-es5/verdocs-contact-picker_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-contact-picker_2.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-field-attachment_13.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-attachment_13.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-preview_7.entry.js +1 -1
- package/dist/esm-es5/verdocs-preview_7.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js.map +1 -1
- package/dist/types/components/embeds/verdocs-sign/verdocs-sign.d.ts +4 -2
- package/dist/verdocs-web-sdk/p-0c1898f6.system.js +1 -1
- package/dist/verdocs-web-sdk/p-0c1898f6.system.js.map +1 -1
- package/dist/verdocs-web-sdk/p-46263e7a.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-46263e7a.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-56170f1d.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-56170f1d.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-7f982a59.system.entry.js → p-6cfb51e3.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-6cfb51e3.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-62bde242.system.entry.js → p-89c69404.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-89c69404.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-b232ef42.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-b232ef42.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-d47c58de.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-d47c58de.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-7962eb00.entry.js → p-e7ca4f15.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-e7ca4f15.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-dda88c7f.entry.js → p-e8268ed9.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-e8268ed9.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js.map +1 -1
- package/package.json +3 -3
- package/dist/components/p-6bfb8eba.js.map +0 -1
- package/dist/components/p-c1d312d8.js.map +0 -1
- package/dist/custom-elements.json +0 -2198
- package/dist/verdocs-web-sdk/p-1c8788f5.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-1c8788f5.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-62bde242.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-7962eb00.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-7f982a59.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-a4dd8302.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-a4dd8302.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-dda88c7f.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-df6ab9e9.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-df6ab9e9.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-e5684a49.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-e5684a49.system.entry.js.map +0 -1
@@ -611,26 +611,6 @@ const toFiniteNumber = (value, defaultValue) => {
|
|
611
611
|
return value != null && Number.isFinite(value = +value) ? value : defaultValue;
|
612
612
|
};
|
613
613
|
|
614
|
-
const ALPHA = 'abcdefghijklmnopqrstuvwxyz';
|
615
|
-
|
616
|
-
const DIGIT = '0123456789';
|
617
|
-
|
618
|
-
const ALPHABET = {
|
619
|
-
DIGIT,
|
620
|
-
ALPHA,
|
621
|
-
ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
|
622
|
-
};
|
623
|
-
|
624
|
-
const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
|
625
|
-
let str = '';
|
626
|
-
const {length} = alphabet;
|
627
|
-
while (size--) {
|
628
|
-
str += alphabet[Math.random() * length|0];
|
629
|
-
}
|
630
|
-
|
631
|
-
return str;
|
632
|
-
};
|
633
|
-
|
634
614
|
/**
|
635
615
|
* If the thing is a FormData object, return true, otherwise return false.
|
636
616
|
*
|
@@ -758,8 +738,6 @@ const utils$1 = {
|
|
758
738
|
findKey,
|
759
739
|
global: _global,
|
760
740
|
isContextDefined,
|
761
|
-
ALPHABET,
|
762
|
-
generateString,
|
763
741
|
isSpecCompliantForm,
|
764
742
|
toJSONObject,
|
765
743
|
isAsyncFn,
|
@@ -2252,8 +2230,9 @@ function combineURLs(baseURL, relativeURL) {
|
|
2252
2230
|
*
|
2253
2231
|
* @returns {string} The combined full path
|
2254
2232
|
*/
|
2255
|
-
function buildFullPath(baseURL, requestedURL) {
|
2256
|
-
|
2233
|
+
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
2234
|
+
let isRelativeUrl = !isAbsoluteURL(requestedURL);
|
2235
|
+
if (baseURL && isRelativeUrl || allowAbsoluteUrls == false) {
|
2257
2236
|
return combineURLs(baseURL, requestedURL);
|
2258
2237
|
}
|
2259
2238
|
return requestedURL;
|
@@ -3093,7 +3072,7 @@ function dispatchRequest(config) {
|
|
3093
3072
|
});
|
3094
3073
|
}
|
3095
3074
|
|
3096
|
-
const VERSION = "1.
|
3075
|
+
const VERSION = "1.8.1";
|
3097
3076
|
|
3098
3077
|
const validators$1 = {};
|
3099
3078
|
|
@@ -3278,6 +3257,13 @@ class Axios {
|
|
3278
3257
|
}
|
3279
3258
|
}
|
3280
3259
|
|
3260
|
+
// Set config.allowAbsoluteUrls
|
3261
|
+
if (config.allowAbsoluteUrls !== undefined) ; else if (this.defaults.allowAbsoluteUrls !== undefined) {
|
3262
|
+
config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
|
3263
|
+
} else {
|
3264
|
+
config.allowAbsoluteUrls = true;
|
3265
|
+
}
|
3266
|
+
|
3281
3267
|
validator.assertOptions(config, {
|
3282
3268
|
baseUrl: validators.spelling('baseURL'),
|
3283
3269
|
withXsrfToken: validators.spelling('withXSRFToken')
|
@@ -3373,7 +3359,7 @@ class Axios {
|
|
3373
3359
|
|
3374
3360
|
getUri(config) {
|
3375
3361
|
config = mergeConfig(this.defaults, config);
|
3376
|
-
const fullPath = buildFullPath(config.baseURL, config.url);
|
3362
|
+
const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
|
3377
3363
|
return buildURL(fullPath, config.params, config.paramsSerializer);
|
3378
3364
|
}
|
3379
3365
|
}
|
@@ -3829,7 +3815,6 @@ const VerdocsContactPicker = class {
|
|
3829
3815
|
handleSubmit(e) {
|
3830
3816
|
var _a;
|
3831
3817
|
e.stopPropagation();
|
3832
|
-
console.log('sub');
|
3833
3818
|
this.showSuggestions = false;
|
3834
3819
|
(_a = this.next) === null || _a === void 0 ? void 0 : _a.emit({
|
3835
3820
|
first_name: this.first_name,
|
@@ -3881,29 +3866,29 @@ const VerdocsContactPicker = class {
|
|
3881
3866
|
if (((_t = (_s = (_r = this.featureFlags) === null || _r === void 0 ? void 0 : _r.toggles) === null || _s === void 0 ? void 0 : _s.find(t => t.name === 'id-verification')) === null || _t === void 0 ? void 0 : _t.enabled) === true && !!this.activeEntitlements.id_auth) {
|
3882
3867
|
verificationOptions.push({ label: 'ID Check', value: 'id' });
|
3883
3868
|
}
|
3884
|
-
return (h("form", { key: '
|
3869
|
+
return (h("form", { key: '04692a50db278a08b263fa5343a90f832b7a39ee', onSubmit: e => e.preventDefault(), onClick: e => e.stopPropagation(), autocomplete: "off" }, h("div", { key: '49c73586ee2a3b55284c7060578ce2f76442eb7f', class: "row" }, h("label", { key: 'c14e09c5fafc682f8e84409cabb8c16080a542ef', htmlFor: this.firstNameFieldId }, "Name:"), h("div", { key: '64d1f1411604edaab598852ecccbd2e81cac5d01', class: "names-row" }, h("input", { key: 'ab738a6d5fb36378c6cae917ffc0cce34eefc251', id: this.firstNameFieldId, name: this.firstNameFieldId, type: "text", "data-lpignore": "true", autocomplete: "blocked", "aria-autocomplete": "none", value: this.first_name, placeholder: "First...", onFocus: () => {
|
3885
3870
|
// Give the blur event a chance to hide it first if going between first/last
|
3886
3871
|
setTimeout(() => {
|
3887
3872
|
var _a;
|
3888
3873
|
this.showSuggestions = ((_a = this.contactSuggestions) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
3889
3874
|
}, 100);
|
3890
|
-
}, onInput: e => this.handleFirstNameChange(e) }), h("input", { key: '
|
3875
|
+
}, onInput: e => this.handleFirstNameChange(e) }), h("input", { key: 'e78173446c9eb0d24125b1e9a614948b2c0dea34', id: this.lastNameFieldId, name: this.lastNameFieldId, type: "text", "data-lpignore": "true", autocomplete: "blocked", "aria-autocomplete": "none", value: this.last_name, placeholder: "Last...", onFocus: () => {
|
3891
3876
|
// Give the blur event a chance to hide it first if going between first/last
|
3892
3877
|
setTimeout(() => {
|
3893
3878
|
var _a;
|
3894
3879
|
this.showSuggestions = ((_a = this.contactSuggestions) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
3895
3880
|
}, 100);
|
3896
|
-
}, onInput: e => this.handleLastNameChange(e) })), this.showSuggestions && (h("verdocs-portal", { key: '
|
3881
|
+
}, onInput: e => this.handleLastNameChange(e) })), this.showSuggestions && (h("verdocs-portal", { key: '9947a7f8ab42d1790df06e579796d4a2e93245d1', anchor: this.firstNameFieldId, onClickAway: () => (this.showSuggestions = false), id: "verdocs-contact-picker-suggestions" }, h("div", { key: 'fbc62ab9fe1d080bd24cdcd6d06af7608957566c', class: "dropdown" }, this.contactSuggestions
|
3897
3882
|
.filter(suggestion => !this.first_name || suggestion.first_name.toLowerCase().includes(this.first_name.toLowerCase()))
|
3898
3883
|
.map(suggestion => {
|
3899
3884
|
var _a;
|
3900
3885
|
return (h("div", { key: (_a = suggestion.id) !== null && _a !== void 0 ? _a : suggestion.email, class: "suggestion", onClick: e => this.handleSelectSuggestion(e, suggestion) }, suggestion.picture ? h("img", { alt: "Avatar", class: "avatar", src: suggestion.picture }) : h("div", { class: "avatar", innerHTML: addrBookIcon }), h("div", { class: "details" }, h("div", { class: "name" }, formatFullName(suggestion)), suggestion.email && h("div", { class: "destination" }, suggestion.email), suggestion.phone && h("div", { class: "destination" }, suggestion.phone))));
|
3901
|
-
}))))), h("div", { key: '
|
3886
|
+
}))))), h("div", { key: 'e8e70c9c0eb9aac2949ea3f1cdcad31a0109b1e6', class: "row" }, h("label", { key: '1a0446066a2337a8317e4f1a30a7b4bbaac8e9d9', htmlFor: this.emailFieldId }, "Email:"), h("input", { key: '700f23efdcdad3569e37f68beb87254768997476', id: this.emailFieldId, name: this.emailFieldId, type: "text", "data-lpignore": "true", autoComplete: "blocked", "aria-autocomplete": "none", value: this.email, placeholder: "Invite/verify via email...", onFocus: () => (this.showSuggestions = false), onInput: (e) => (this.email = e.target.value) })), globalSMS && (h("div", { key: 'e10b121fcc2c612b95a9e8ebd35fbbaba78f31ff', class: "row" }, h("label", { key: '924df4057ae82c1a42a060f6457999e9e7be3e9d', htmlFor: this.phoneFieldId }, "Phone:"), h("input", { key: 'be1707e6c04744891626dd14ce7beee679e33b95', id: this.phoneFieldId, name: this.phoneFieldId, type: "text", "data-lpignore": "true", autoComplete: "blocked", "aria-autocomplete": "none", value: this.phone, placeholder: "Invite/verify via SMS...", onFocus: () => (this.showSuggestions = false), onInput: (e) => {
|
3902
3887
|
this.phone = convertToE164(e.target.value);
|
3903
|
-
} }))), h(Fragment, { key: '
|
3888
|
+
} }))), h(Fragment, { key: 'a27e49219aed619f6ce094ca91d7bdb8ee4bd361' }, verificationOptions.length > 0 && (h("div", { key: '3c2eb231a5e10223a0554b2661f7902a7343ff14', class: "row" }, h("label", { key: '2424d844f6c54d6898aff3746c665e8f0028393f' }, "Recipient Verification:"), h("verdocs-multiselect", { key: '15e4fdff72818343d016749c83a10602083c19db', label: "", placeholder: "None", options: verificationOptions, selectedOptions: this.auth_methods, onSelectionChanged: (e) => {
|
3904
3889
|
console.log('selectedOptions changed', e.detail);
|
3905
3890
|
this.auth_methods = e.detail.selectedOptions;
|
3906
|
-
} }))), this.auth_methods.includes('passcode') && (h("div", { key: '
|
3891
|
+
} }))), this.auth_methods.includes('passcode') && (h("div", { key: 'cb92bbf38b29b81dd443ea63ee52f5c38ca3e462', class: "row pin-code" }, h("label", { key: 'a31d6aa08952a78774e0f7d6fc89a0c992fff0ce', htmlFor: this.phoneFieldId }, "Passcode:"), h("input", { key: '416d22a451995e318fed41b36feda632b7324231', id: "verdocs-passcode", name: "verdocs-passcode", type: "text", "data-lpignore": "true", autocomplete: "blocked", "aria-autocomplete": "none", value: this.passcode, placeholder: "4-8 digits recommended...", onFocus: () => (this.showSuggestions = false), onInput: (e) => (this.passcode = e.target.value) })))), h("div", { key: '12d5f81d3750dfbec08c01d9f9e5ef8ff4e4ab61', class: "row message" }, h("label", { key: 'c5d2265df1203c2f1cb09e4ef99ece909a11c3d1', htmlFor: "verdocs-contact-picker-message" }, "Message:"), h("textarea", { key: '875a4a055860497d1b5f270fe9e4f76fd1594d86', id: "verdocs-contact-picker-message", name: "verdocs-contact-picker-message", "data-lpignore": "true", autocomplete: "blocked", placeholder: "Optional message to include in invitation...", onFocus: () => (this.showSuggestions = false), onInput: (e) => (this.message = e.target.value) }, this.message)), h("div", { key: 'fc5dc7ca853d00fbeb22b912f7da5db32c394bdb', class: "buttons" }, h("div", { key: 'cb19eed74dcc4a093d0420352e31b50c252ca857', class: "flex-fill" }), h("verdocs-button", { key: 'b94abf0ba4e07bdb661aee267a2d23bd1e5f9555', variant: "outline", label: "Cancel", size: "small", onClick: e => this.handleCancel(e) }), h("verdocs-button", { key: '2ad4cf79ebbac22818caee6fd732cf4cbf01436b', label: "OK", size: "small", disabled: !canSubmit, onClick: !canSubmit ? () => { } : e => this.handleSubmit(e) }))));
|
3907
3892
|
}
|
3908
3893
|
};
|
3909
3894
|
VerdocsContactPicker.style = VerdocsContactPickerStyle0;
|