@verdocs/web-sdk 1.4.6 → 1.5.1
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/VerdocsEndpoint-5e6dd8ef.js +4780 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/verdocs-auth.cjs.entry.js +32 -19
- package/dist/cjs/verdocs-dropdown_12.cjs.entry.js +15 -11
- package/dist/cjs/verdocs-kba-dialog.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-quick-functions.cjs.entry.js +5 -0
- package/dist/cjs/verdocs-search-activity_2.cjs.entry.js +40 -35
- package/dist/cjs/verdocs-search.cjs.entry.js +6 -1
- package/dist/cjs/verdocs-sign.cjs.entry.js +26 -161
- package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
- package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.css +1 -1
- package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.css +1 -1
- package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.js +31 -1
- package/dist/collection/components/elements/verdocs-search-activity/verdocs-search-activity.js +30 -6
- package/dist/collection/components/elements/verdocs-search-box/verdocs-search-box.js +26 -0
- package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.css +1 -4
- package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js +35 -17
- package/dist/collection/components/embeds/verdocs-search/verdocs-search.js +36 -6
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.css +27 -26
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +40 -23
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.stories.js +2 -2
- package/dist/collection/components/embeds/verdocs-view/verdocs-view.js +26 -0
- package/dist/components/VerdocsEndpoint.js +4766 -0
- package/dist/components/verdocs-auth.js +33 -18
- package/dist/components/verdocs-kba-dialog.js +1 -1
- package/dist/components/verdocs-ok-dialog2.js +1 -1
- package/dist/components/verdocs-quick-functions.js +8 -1
- package/dist/components/verdocs-search-activity2.js +37 -34
- package/dist/components/verdocs-search-box2.js +6 -0
- package/dist/components/verdocs-search.js +9 -2
- package/dist/components/verdocs-sign.js +27 -162
- package/dist/components/verdocs-view2.js +6 -1
- package/dist/docs.json +117 -3
- package/dist/esm/VerdocsEndpoint-30e1b6ec.js +4766 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/verdocs-auth.entry.js +32 -19
- package/dist/esm/verdocs-dropdown_12.entry.js +5 -1
- package/dist/esm/verdocs-kba-dialog.entry.js +1 -1
- package/dist/esm/verdocs-ok-dialog.entry.js +1 -1
- package/dist/esm/verdocs-quick-functions.entry.js +5 -0
- package/dist/esm/verdocs-search-activity_2.entry.js +40 -35
- package/dist/esm/verdocs-search.entry.js +6 -1
- package/dist/esm/verdocs-sign.entry.js +26 -161
- package/dist/esm/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/VerdocsEndpoint-30e1b6ec.js +7 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/verdocs-auth.entry.js +1 -1
- package/dist/esm-es5/verdocs-dropdown_12.entry.js +2 -2
- package/dist/esm-es5/verdocs-kba-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-quick-functions.entry.js +1 -1
- package/dist/esm-es5/verdocs-search-activity_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-search.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js +1 -1
- package/dist/types/components/elements/verdocs-quick-functions/verdocs-quick-functions.d.ts +5 -0
- package/dist/types/components/elements/verdocs-search-activity/verdocs-search-activity.d.ts +5 -0
- package/dist/types/components/elements/verdocs-search-box/verdocs-search-box.d.ts +5 -0
- package/dist/types/components/embeds/verdocs-auth/verdocs-auth.d.ts +7 -4
- package/dist/types/components/embeds/verdocs-search/verdocs-search.d.ts +5 -0
- package/dist/types/components/embeds/verdocs-sign/verdocs-sign.d.ts +6 -3
- package/dist/types/components/embeds/verdocs-view/verdocs-view.d.ts +5 -0
- package/dist/types/components.d.ts +57 -0
- package/dist/verdocs-web-sdk/{p-ed5baeb4.entry.js → p-064453c3.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-06f38046.js +1 -0
- package/dist/verdocs-web-sdk/p-16d62a51.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-1b4e04b7.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-1ea3b9d3.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-30cc8818.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-0353c423.entry.js → p-32ad1014.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-4d80d044.system.js +7 -0
- package/dist/verdocs-web-sdk/{p-432c3151.system.entry.js → p-81fc0196.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-8276345a.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-88a300c5.system.js +1 -1
- package/dist/verdocs-web-sdk/p-9139a76d.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-a87069d5.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-aa9fc574.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-c29c2cf8.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-4368df79.system.entry.js → p-c4d03ff9.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-a1143ddb.entry.js → p-d522de7d.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-e2e643c5.system.entry.js → p-e4ba14dc.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-f6a53928.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +2 -2
- package/dist/cjs/Auth-e68977a3.js +0 -90
- package/dist/cjs/Token-1ec62bd3.js +0 -2330
- package/dist/cjs/buffer-es6-bc8199b1.js +0 -2018
- package/dist/components/Auth.js +0 -85
- package/dist/components/Token.js +0 -2325
- package/dist/components/buffer-es6.js +0 -2010
- package/dist/esm/Auth-b330f209.js +0 -85
- package/dist/esm/Token-a587e3ad.js +0 -2325
- package/dist/esm/buffer-es6-136673c8.js +0 -2010
- package/dist/esm-es5/Auth-b330f209.js +0 -1
- package/dist/esm-es5/Token-a587e3ad.js +0 -1
- package/dist/esm-es5/buffer-es6-136673c8.js +0 -7
- package/dist/verdocs-web-sdk/p-0b1fb53f.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-0c30002e.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-203fd748.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-216a4759.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-2c161242.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-3820c9a2.js +0 -1
- package/dist/verdocs-web-sdk/p-39633a02.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-5dfd73f9.system.js +0 -7
- package/dist/verdocs-web-sdk/p-6348272c.js +0 -1
- package/dist/verdocs-web-sdk/p-9428614b.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-da850d97.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-e3659c64.system.js +0 -1
- package/dist/verdocs-web-sdk/p-e93ac86f.system.js +0 -1
- package/dist/verdocs-web-sdk/p-ef932a87.js +0 -1
- package/dist/verdocs-web-sdk/p-f0e6fde0.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-fd853e54.system.entry.js +0 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { g as
|
|
3
|
-
import { B as Buffer } from './buffer-es6.js';
|
|
2
|
+
import { V as VerdocsEndpoint, g as getSigningSession, a as getDocument, u as updateRecipientStatus, b as getDocumentFile, c as updateDocumentField } from './VerdocsEndpoint.js';
|
|
4
3
|
import { d as defineCustomElement$j } from './verdocs-button2.js';
|
|
5
4
|
import { d as defineCustomElement$i } from './verdocs-dropdown2.js';
|
|
6
5
|
import { d as defineCustomElement$h } from './verdocs-field-attachment2.js';
|
|
@@ -20,6 +19,15 @@ import { d as defineCustomElement$4 } from './verdocs-text-input2.js';
|
|
|
20
19
|
import { d as defineCustomElement$3 } from './verdocs-upload-dialog2.js';
|
|
21
20
|
import { d as defineCustomElement$2 } from './verdocs-view2.js';
|
|
22
21
|
|
|
22
|
+
var e164Regex = new RegExp(/\+[1-9]\d{6,14}/g);
|
|
23
|
+
function simpleE164Validator(code) {
|
|
24
|
+
return (code !== null && code.length < 16 && code.length > 6 && e164Regex.test(code)) || code === '' || code === null;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
var EmailRegEx = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
|
28
|
+
var isValidEmail = function (value) { return EmailRegEx.test(value); };
|
|
29
|
+
var isValidPhone = function (value) { return simpleE164Validator(value); };
|
|
30
|
+
|
|
23
31
|
/**
|
|
24
32
|
* Given a `rgba(r,g,b,a)` string value, returns the hex equivalent, dropping the alpha channel.
|
|
25
33
|
*/
|
|
@@ -57,154 +65,16 @@ function rescale(r, n) {
|
|
|
57
65
|
return r * n;
|
|
58
66
|
}
|
|
59
67
|
|
|
60
|
-
|
|
61
|
-
__assign = Object.assign || function(t) {
|
|
62
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
63
|
-
s = arguments[i];
|
|
64
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
65
|
-
t[p] = s[p];
|
|
66
|
-
}
|
|
67
|
-
return t;
|
|
68
|
-
};
|
|
69
|
-
return __assign.apply(this, arguments);
|
|
70
|
-
};
|
|
71
|
-
var __awaiter$1 = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
72
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
73
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
74
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
75
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
76
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
77
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
78
|
-
});
|
|
79
|
-
};
|
|
80
|
-
var __generator$1 = (undefined && undefined.__generator) || function (thisArg, body) {
|
|
81
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
82
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
83
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
84
|
-
function step(op) {
|
|
85
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
86
|
-
while (_) try {
|
|
87
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
88
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
89
|
-
switch (op[0]) {
|
|
90
|
-
case 0: case 1: t = op; break;
|
|
91
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
92
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
93
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
94
|
-
default:
|
|
95
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
96
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
97
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
98
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
99
|
-
if (t[2]) _.ops.pop();
|
|
100
|
-
_.trys.pop(); continue;
|
|
101
|
-
}
|
|
102
|
-
op = body.call(thisArg, _);
|
|
103
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
104
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
|
-
var updateRecipientStatus = function (documentId, roleName, action, params) { return __awaiter$1(void 0, void 0, void 0, function () {
|
|
108
|
-
return __generator$1(this, function (_a) {
|
|
109
|
-
return [2 /*return*/, getEndpoint()
|
|
110
|
-
.api.put("/documents/".concat(documentId, "/recipients/").concat(roleName), __assign({ role_name: roleName, action: action }, (params || {})))
|
|
111
|
-
.then(function (r) { return r.data; })];
|
|
112
|
-
});
|
|
113
|
-
}); };
|
|
114
|
-
|
|
115
|
-
var e164Regex = new RegExp(/\+[1-9]\d{6,14}/g);
|
|
116
|
-
function simpleE164Validator(code) {
|
|
117
|
-
return (code !== null && code.length < 16 && code.length > 6 && e164Regex.test(code)) || code === '' || code === null;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
var EmailRegEx = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
|
121
|
-
var isValidEmail = function (value) { return EmailRegEx.test(value); };
|
|
122
|
-
var isValidPhone = function (value) { return simpleE164Validator(value); };
|
|
123
|
-
|
|
124
|
-
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
125
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
126
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
127
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
128
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
129
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
130
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
131
|
-
});
|
|
132
|
-
};
|
|
133
|
-
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
|
|
134
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
135
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
136
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
137
|
-
function step(op) {
|
|
138
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
139
|
-
while (_) try {
|
|
140
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
141
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
142
|
-
switch (op[0]) {
|
|
143
|
-
case 0: case 1: t = op; break;
|
|
144
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
145
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
146
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
147
|
-
default:
|
|
148
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
149
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
150
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
151
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
152
|
-
if (t[2]) _.ops.pop();
|
|
153
|
-
_.trys.pop(); continue;
|
|
154
|
-
}
|
|
155
|
-
op = body.call(thisArg, _);
|
|
156
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
157
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
158
|
-
}
|
|
159
|
-
};
|
|
160
|
-
/**
|
|
161
|
-
* Get a signing session for a document.
|
|
162
|
-
*/
|
|
163
|
-
var getSigningSession = function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
164
|
-
return __generator(this, function (_a) {
|
|
165
|
-
return [2 /*return*/, getEndpoint()
|
|
166
|
-
.api.get("/documents/".concat(params.documentId, "/recipients/").concat(encodeURIComponent(params.roleId), "/invitation/").concat(params.inviteCode))
|
|
167
|
-
.then(function (r) {
|
|
168
|
-
var _a, _b;
|
|
169
|
-
// Avoiding a jsonwebtoken dependency here - we don't actually need the whole library
|
|
170
|
-
var signerToken = ((_a = r.headers) === null || _a === void 0 ? void 0 : _a.signer_token) || '';
|
|
171
|
-
var session = decodeAccessTokenBody(signerToken);
|
|
172
|
-
getEndpoint().setAuthorization((_b = r.headers) === null || _b === void 0 ? void 0 : _b.signer_token);
|
|
173
|
-
return { recipient: r.data, session: session, signerToken: signerToken };
|
|
174
|
-
})];
|
|
175
|
-
});
|
|
176
|
-
}); };
|
|
177
|
-
var getDocument = function (documentId) { return __awaiter(void 0, void 0, void 0, function () {
|
|
178
|
-
return __generator(this, function (_a) {
|
|
179
|
-
return [2 /*return*/, getEndpoint()
|
|
180
|
-
.api.get("/documents/".concat(documentId))
|
|
181
|
-
.then(function (r) { return r.data; })];
|
|
182
|
-
});
|
|
183
|
-
}); };
|
|
184
|
-
var getDocumentFile = function (documentId, envelopeDocumentId) { return __awaiter(void 0, void 0, void 0, function () {
|
|
185
|
-
return __generator(this, function (_a) {
|
|
186
|
-
return [2 /*return*/, getEndpoint()
|
|
187
|
-
.api.get("/documents/".concat(documentId, "/envelope_documents/").concat(envelopeDocumentId, "?file=true"), {
|
|
188
|
-
responseType: 'arraybuffer',
|
|
189
|
-
})
|
|
190
|
-
.then(function (r) { return Buffer.from(r.data, 'binary').toString('base64'); })];
|
|
191
|
-
});
|
|
192
|
-
}); };
|
|
193
|
-
var updateDocumentField = function (documentId, fieldName, value) { return __awaiter(void 0, void 0, void 0, function () {
|
|
194
|
-
return __generator(this, function (_a) {
|
|
195
|
-
return [2 /*return*/, getEndpoint()
|
|
196
|
-
.api.put("/documents/".concat(documentId, "/fields/").concat(fieldName), value)
|
|
197
|
-
.then(function (r) { return r.data; })];
|
|
198
|
-
});
|
|
199
|
-
}); };
|
|
200
|
-
|
|
201
|
-
const verdocsSignCss = "verdocs-sign{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif;position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-height:600px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden}verdocs-sign.storybook{max-height:600px}verdocs-sign div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-sign .header{-ms-flex:0 0 115px;flex:0 0 115px;z-index:1000;background-color:#33354c;-webkit-box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12);box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12);-webkit-transition:all 0.25s;transition:all 0.25s}verdocs-sign .intro{background-color:#ffffff;width:100%;margin:0 auto;padding:20px;max-width:1028px;color:rgba(0, 0, 0, 0.87)}verdocs-sign .toolbar{width:100%;margin:0 auto;padding:0 20px;max-width:1028px;position:relative}verdocs-sign .tools{width:100%;color:#fff;height:56px;padding:4px;display:-ms-flexbox;display:flex;font-size:12px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;background-color:#33354c}verdocs-sign .cover{top:0;left:0;right:0;bottom:0;z-index:999;position:absolute;background:rgba(0, 0, 0, 0.5)}verdocs-sign .document{-ms-flex:1;flex:1;height:100%;position:relative;overflow-y:scroll}verdocs-sign .agree-checkbox{-ms-flex:0 0 20px;flex:0 0 20px;display:-ms-flexbox;display:flex;width:20px;height:20px;border-radius:3px;background:#ffffff;position:relative;margin:0 10px 0 30px}verdocs-sign .agree-checkbox label{left:2px;top:2px;width:16px;height:16px;cursor:pointer;position:absolute;background:#33354c;-webkit-box-shadow:inset 0 -1px 1px rgba(255, 255, 255, 0.8);box-shadow:inset 0 -1px 1px rgba(255, 255, 255, 0.8)}verdocs-sign .agree-checkbox label:after{top:2px;left:3px;width:8px;opacity:0;height:5px;content:\"\";position:absolute;background:transparent;filter:alpha(opacity=0);-webkit-transform:rotate(-45deg);transform:rotate(-45deg);border:2px solid #fcfff4;border-top:none;border-right:none}verdocs-sign .agree-checkbox label:hover::after{filter:alpha(opacity=30);opacity:0.3}verdocs-sign .agree-checkbox input[type=checkbox]:checked+label:after{filter:alpha(opacity=100);opacity:1}verdocs-sign.agreed .intro{display:none}verdocs-sign.agreed .header{-ms-flex:0 0 56px;flex:0 0 56px}verdocs-sign.agreed .agree-checkbox{background:#ccc}verdocs-sign.agreed .agree-checkbox label{cursor:default}verdocs-sign .page-controls{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);z-index:500}";
|
|
68
|
+
const verdocsSignCss = "verdocs-sign{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif;position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-height:600px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden}verdocs-sign.storybook{max-height:600px}verdocs-sign div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-sign .header{-ms-flex:0 0 115px;flex:0 0 115px;z-index:1000;background-color:#33354c;-webkit-box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12);box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12);-webkit-transition:all 0.25s;transition:all 0.25s}verdocs-sign .intro{background-color:#ffffff;width:100%;margin:0 auto;padding:20px;max-width:1028px;color:rgba(0, 0, 0, 0.87)}verdocs-sign .toolbar{width:100%;margin:0 auto;padding:0 14px;max-width:1028px;position:relative}verdocs-sign .tools{width:100%;color:#fff;height:56px;padding:4px;display:-ms-flexbox;display:flex;font-size:12px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;background-color:#33354c}verdocs-sign .cover{top:0;left:0;right:0;bottom:0;z-index:999;position:absolute;background:rgba(0, 0, 0, 0.5)}verdocs-sign .document{-ms-flex:1;flex:1;height:100%;position:relative;overflow-y:scroll}verdocs-sign .agree{-ms-flex:1;flex:1;-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-right:10px}verdocs-sign .agree .intro{display:none}verdocs-sign .agree .header{-ms-flex:0 0 56px;flex:0 0 56px}verdocs-sign .agree .agree-checkbox{background:#ccc;-ms-flex:0 0 20px;flex:0 0 20px;display:-ms-flexbox;display:flex;width:20px;height:20px;border-radius:3px;position:relative;margin:0 10px 0 14px}verdocs-sign .agree .agree-checkbox input[type=checkbox]:checked+label:after{filter:alpha(opacity=100);opacity:1}verdocs-sign .agree .agree-checkbox label{left:2px;top:2px;width:16px;height:16px;cursor:pointer;position:absolute;background:#33354c;-webkit-box-shadow:inset 0 -1px 1px rgba(255, 255, 255, 0.8);box-shadow:inset 0 -1px 1px rgba(255, 255, 255, 0.8)}verdocs-sign .agree .agree-checkbox label .agree-checkbox label:hover::after{filter:alpha(opacity=30);opacity:0.3}verdocs-sign .agree .agree-checkbox label:after{top:2px;left:3px;width:8px;opacity:0;height:5px;content:\"\";position:absolute;background:transparent;filter:alpha(opacity=0);-webkit-transform:rotate(-45deg);transform:rotate(-45deg);border:2px solid #fcfff4;border-top:none;border-right:none}verdocs-sign .page-controls{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);z-index:500}";
|
|
202
69
|
|
|
203
|
-
const BASE_URL = 'https://stage-api.verdocs.com';
|
|
204
70
|
const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
205
71
|
constructor() {
|
|
206
72
|
super();
|
|
207
73
|
this.__registerHost();
|
|
74
|
+
/**
|
|
75
|
+
* The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
|
|
76
|
+
*/
|
|
77
|
+
this.endpoint = VerdocsEndpoint.getDefault();
|
|
208
78
|
/**
|
|
209
79
|
* If `source` is set to `verdocs-sign`, this should be set to a valid invitation code to activate a
|
|
210
80
|
* signing session.
|
|
@@ -220,7 +90,6 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
220
90
|
* signing session.
|
|
221
91
|
*/
|
|
222
92
|
this.invitecode = null;
|
|
223
|
-
this.endpoint = null;
|
|
224
93
|
this.recipient = null;
|
|
225
94
|
this.signerToken = null;
|
|
226
95
|
this.pdfUrl = null;
|
|
@@ -231,14 +100,10 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
231
100
|
this.nextButtonLabel = 'Start';
|
|
232
101
|
this.focusedField = '';
|
|
233
102
|
}
|
|
234
|
-
componentWillLoad() {
|
|
235
|
-
const endpoint = new VerdocsEndpoint().setBaseURL(BASE_URL);
|
|
236
|
-
setActiveEndpoint(endpoint);
|
|
237
|
-
}
|
|
238
103
|
async componentDidLoad() {
|
|
239
104
|
try {
|
|
240
105
|
console.log('[SIGN] Processing invite code', this.documentid, this.roleid, this.invitecode);
|
|
241
|
-
const { session, recipient, signerToken } = await getSigningSession({
|
|
106
|
+
const { session, recipient, signerToken } = await getSigningSession(this.endpoint, {
|
|
242
107
|
documentId: this.documentid,
|
|
243
108
|
roleId: this.roleid,
|
|
244
109
|
inviteCode: this.invitecode,
|
|
@@ -247,14 +112,14 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
247
112
|
console.log('[SIGN] Recipient', recipient);
|
|
248
113
|
this.recipient = recipient;
|
|
249
114
|
this.signerToken = signerToken;
|
|
250
|
-
|
|
115
|
+
this.endpoint.setToken(signerToken);
|
|
251
116
|
if (this.recipient.agreed) {
|
|
252
117
|
this.nextButtonLabel = 'Next';
|
|
253
118
|
}
|
|
254
|
-
const document = await getDocument(this.documentid);
|
|
119
|
+
const document = await getDocument(this.endpoint, this.documentid);
|
|
255
120
|
this.document = document;
|
|
256
121
|
console.log('[SIGN] Document', document);
|
|
257
|
-
this.pdfUrl = `${
|
|
122
|
+
this.pdfUrl = `${this.endpoint.getBaseURL()}/documents/${this.documentid}/envelope_documents/${document.envelope_document_id}?file=true`;
|
|
258
123
|
this.recipientIndex = this.document.recipients.findIndex(recipient => recipient.role_name == this.roleid);
|
|
259
124
|
if (this.recipientIndex > -1) {
|
|
260
125
|
console.log('Found recipient', this.document.recipients[this.recipientIndex]);
|
|
@@ -271,7 +136,7 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
271
136
|
}
|
|
272
137
|
handleClickAgree() {
|
|
273
138
|
console.log('agree clicked');
|
|
274
|
-
updateRecipientStatus(this.documentid, this.roleid, 'update', { agreed: true })
|
|
139
|
+
updateRecipientStatus(this.endpoint, this.documentid, this.roleid, 'update', { agreed: true })
|
|
275
140
|
.then(r => {
|
|
276
141
|
console.log('update result', r);
|
|
277
142
|
this.nextButtonLabel = 'Next';
|
|
@@ -283,7 +148,7 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
283
148
|
}
|
|
284
149
|
async savePDF() {
|
|
285
150
|
const fileName = `${this.document.name} - ${this.document.updated_at.split('T')[0]}.pdf`;
|
|
286
|
-
const data = await getDocumentFile(this.documentid, this.document.envelope_document_id);
|
|
151
|
+
const data = await getDocumentFile(this.endpoint, this.documentid, this.document.envelope_document_id);
|
|
287
152
|
// This is better in React than doing window.href= or similar to trigger a download. For a description of the technique
|
|
288
153
|
// see https://stackoverflow.com/questions/8126623/downloading-canvas-element-to-an-image
|
|
289
154
|
let xhr = new XMLHttpRequest();
|
|
@@ -325,23 +190,23 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
325
190
|
console.log('fieldChange', field, e.detail);
|
|
326
191
|
switch (field.type) {
|
|
327
192
|
case 'textbox':
|
|
328
|
-
updateDocumentField(this.documentid, field.name, { prepared: false, value: e.detail })
|
|
193
|
+
updateDocumentField(this.endpoint, this.documentid, field.name, { prepared: false, value: e.detail })
|
|
329
194
|
.then(r => console.log('Update result', r))
|
|
330
195
|
.catch(e => console.log('Error updating', e));
|
|
331
196
|
break;
|
|
332
197
|
case 'checkbox_group':
|
|
333
|
-
updateDocumentField(this.documentid, field.name, { prepared: false, value: { options: [{ id: optionId, checked: e.detail }] } })
|
|
198
|
+
updateDocumentField(this.endpoint, this.documentid, field.name, { prepared: false, value: { options: [{ id: optionId, checked: e.detail }] } })
|
|
334
199
|
.then(r => console.log('Update result', r))
|
|
335
200
|
.catch(e => console.log('Error updating', e));
|
|
336
201
|
break;
|
|
337
202
|
case 'radio_button_group':
|
|
338
203
|
const options = field.settings.options.map(option => ({ id: option.id, selected: optionId === option.id }));
|
|
339
|
-
updateDocumentField(this.documentid, field.name, { prepared: false, value: { options } })
|
|
204
|
+
updateDocumentField(this.endpoint, this.documentid, field.name, { prepared: false, value: { options } })
|
|
340
205
|
.then(r => console.log('Update result', r))
|
|
341
206
|
.catch(e => console.log('Error updating', e));
|
|
342
207
|
break;
|
|
343
208
|
case 'dropdown':
|
|
344
|
-
updateDocumentField(this.documentid, field.name, { prepared: false, value: e.detail })
|
|
209
|
+
updateDocumentField(this.endpoint, this.documentid, field.name, { prepared: false, value: e.detail })
|
|
345
210
|
.then(r => console.log('Update result', r))
|
|
346
211
|
.catch(e => console.log('Error updating', e));
|
|
347
212
|
break;
|
|
@@ -495,17 +360,17 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
495
360
|
{ id: 'print', label: 'Print Without Signing' },
|
|
496
361
|
{ id: 'download', label: 'Download' },
|
|
497
362
|
];
|
|
498
|
-
return (h(Host, { class: { storybook: !!(window === null || window === void 0 ? void 0 : window['STORYBOOK_ENV']), agreed: (_a = this.recipient) === null || _a === void 0 ? void 0 : _a.agreed } }, h("div", { class: "header" }, h("div", { class: "intro" }, "Please review and act on these documents."), h("div", { class: "toolbar" }, h("div", { class: "tools" }, h("verdocs-dropdown", { options: menuOptions, onOptionSelected: e => this.handleOptionSelected(e) }), !((_b = this.recipient) === null || _b === void 0 ? void 0 : _b.agreed) ? (h("div", {
|
|
363
|
+
return (h(Host, { class: { storybook: !!(window === null || window === void 0 ? void 0 : window['STORYBOOK_ENV']), agreed: (_a = this.recipient) === null || _a === void 0 ? void 0 : _a.agreed } }, h("div", { class: "header" }, h("div", { class: "intro" }, "Please review and act on these documents."), h("div", { class: "toolbar" }, h("div", { class: "tools" }, h("verdocs-dropdown", { options: menuOptions, onOptionSelected: e => this.handleOptionSelected(e) }), !((_b = this.recipient) === null || _b === void 0 ? void 0 : _b.agreed) ? (h("div", { class: "agree" }, h("div", { class: "agree-checkbox" }, h("input", { type: "checkbox", value: "None", id: "agree-checkbox-element", name: "agree", onChange: () => this.handleClickAgree() }), h("label", { htmlFor: "agree-checkbox-element" })), h("span", null, "I agree to use electronic records and signatures."))) : (h("div", { style: { flex: '1' } })), h("verdocs-button", { size: "small", label: this.nextButtonLabel, disabled: !((_c = this.recipient) === null || _c === void 0 ? void 0 : _c.agreed), onClick: () => this.handleNext() })))), !((_d = this.recipient) === null || _d === void 0 ? void 0 : _d.agreed) ? h("div", { class: "cover" }) : h("div", { style: { display: 'none' } }), h("div", { class: "document" }, this.pdfUrl ? h("verdocs-view", { source: this.pdfUrl, token: this.signerToken, onDocumentRendered: e => this.handleDocumentRendered(e) }) : h("verdocs-loader", null), (((_e = this.pdfPageInfo) === null || _e === void 0 ? void 0 : _e.pages) || []).map(page => {
|
|
499
364
|
var _a;
|
|
500
365
|
return (h("div", { class: "page-controls", style: { height: `${page.height}px`, width: `${page.width}px`, top: `${page.canvasTop}px`, margin: '0 auto' } }, ((_a = this.pdfPageInfo) === null || _a === void 0 ? void 0 : _a.numRendered) > 0 ? (this.fields.filter(field => field.page === page.pageNumber).map((field, index) => this.renderField(field, index))) : (h("div", { style: { display: 'none' } }, "Waiting for PDF to render..."))));
|
|
501
366
|
}))));
|
|
502
367
|
}
|
|
503
368
|
static get style() { return verdocsSignCss; }
|
|
504
369
|
}, [0, "verdocs-sign", {
|
|
370
|
+
"endpoint": [16],
|
|
505
371
|
"documentid": [1],
|
|
506
372
|
"roleid": [1],
|
|
507
373
|
"invitecode": [1],
|
|
508
|
-
"endpoint": [32],
|
|
509
374
|
"recipient": [32],
|
|
510
375
|
"signerToken": [32],
|
|
511
376
|
"pdfUrl": [32],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement as HTMLElement$1, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { d as getAugmentedNamespace, e as createCommonjsModule, f as getDefaultExportFromCjs, h as commonjsGlobal, B as Buffer, i as commonjsRequire, p as process_1, V as VerdocsEndpoint } from './VerdocsEndpoint.js';
|
|
3
3
|
import { d as defineCustomElement$1 } from './verdocs-loader2.js';
|
|
4
4
|
|
|
5
5
|
const _nodeResolve_empty = {};
|
|
@@ -15973,6 +15973,10 @@ const VerdocsView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$1
|
|
|
15973
15973
|
this.documentRendered = createEvent(this, "documentRendered", 7);
|
|
15974
15974
|
this.numPages = 1;
|
|
15975
15975
|
this.fingerprint = null;
|
|
15976
|
+
/**
|
|
15977
|
+
* The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
|
|
15978
|
+
*/
|
|
15979
|
+
this.endpoint = VerdocsEndpoint.getDefault();
|
|
15976
15980
|
/**
|
|
15977
15981
|
* Rotate the PDF in degrees
|
|
15978
15982
|
*/
|
|
@@ -16089,6 +16093,7 @@ const VerdocsView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$1
|
|
|
16089
16093
|
}; }
|
|
16090
16094
|
static get style() { return verdocsViewCss; }
|
|
16091
16095
|
}, [0, "verdocs-view", {
|
|
16096
|
+
"endpoint": [16],
|
|
16092
16097
|
"rotation": [2],
|
|
16093
16098
|
"source": [1],
|
|
16094
16099
|
"token": [1],
|
package/dist/docs.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2022-
|
|
2
|
+
"timestamp": "2022-08-09T16:36:50",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "2.17.1",
|
|
@@ -31,6 +31,22 @@
|
|
|
31
31
|
"optional": false,
|
|
32
32
|
"required": false
|
|
33
33
|
},
|
|
34
|
+
{
|
|
35
|
+
"name": "endpoint",
|
|
36
|
+
"type": "VerdocsEndpoint",
|
|
37
|
+
"mutable": false,
|
|
38
|
+
"reflectToAttr": false,
|
|
39
|
+
"docs": "The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.",
|
|
40
|
+
"docsTags": [],
|
|
41
|
+
"default": "VerdocsEndpoint.getDefault()",
|
|
42
|
+
"values": [
|
|
43
|
+
{
|
|
44
|
+
"type": "VerdocsEndpoint"
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"optional": false,
|
|
48
|
+
"required": false
|
|
49
|
+
},
|
|
34
50
|
{
|
|
35
51
|
"name": "logo",
|
|
36
52
|
"type": "string",
|
|
@@ -2325,7 +2341,24 @@
|
|
|
2325
2341
|
"docs": "Display quick-function buttons for creating templates and documents.\n\nAuthentication is required to demonstrate this Element. You may do this in Storybook by using the Auth\nembed. This Element will reuse the same session produced by logging in via that Embed.",
|
|
2326
2342
|
"docsTags": [],
|
|
2327
2343
|
"usage": {},
|
|
2328
|
-
"props": [
|
|
2344
|
+
"props": [
|
|
2345
|
+
{
|
|
2346
|
+
"name": "endpoint",
|
|
2347
|
+
"type": "VerdocsEndpoint",
|
|
2348
|
+
"mutable": false,
|
|
2349
|
+
"reflectToAttr": false,
|
|
2350
|
+
"docs": "The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.",
|
|
2351
|
+
"docsTags": [],
|
|
2352
|
+
"default": "VerdocsEndpoint.getDefault()",
|
|
2353
|
+
"values": [
|
|
2354
|
+
{
|
|
2355
|
+
"type": "VerdocsEndpoint"
|
|
2356
|
+
}
|
|
2357
|
+
],
|
|
2358
|
+
"optional": false,
|
|
2359
|
+
"required": false
|
|
2360
|
+
}
|
|
2361
|
+
],
|
|
2329
2362
|
"methods": [],
|
|
2330
2363
|
"events": [
|
|
2331
2364
|
{
|
|
@@ -2362,7 +2395,24 @@
|
|
|
2362
2395
|
"docs": "",
|
|
2363
2396
|
"docsTags": [],
|
|
2364
2397
|
"usage": {},
|
|
2365
|
-
"props": [
|
|
2398
|
+
"props": [
|
|
2399
|
+
{
|
|
2400
|
+
"name": "endpoint",
|
|
2401
|
+
"type": "VerdocsEndpoint",
|
|
2402
|
+
"mutable": false,
|
|
2403
|
+
"reflectToAttr": false,
|
|
2404
|
+
"docs": "The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.",
|
|
2405
|
+
"docsTags": [],
|
|
2406
|
+
"default": "VerdocsEndpoint.getDefault()",
|
|
2407
|
+
"values": [
|
|
2408
|
+
{
|
|
2409
|
+
"type": "VerdocsEndpoint"
|
|
2410
|
+
}
|
|
2411
|
+
],
|
|
2412
|
+
"optional": false,
|
|
2413
|
+
"required": false
|
|
2414
|
+
}
|
|
2415
|
+
],
|
|
2366
2416
|
"methods": [],
|
|
2367
2417
|
"events": [],
|
|
2368
2418
|
"listeners": [],
|
|
@@ -2389,6 +2439,22 @@
|
|
|
2389
2439
|
"docsTags": [],
|
|
2390
2440
|
"usage": {},
|
|
2391
2441
|
"props": [
|
|
2442
|
+
{
|
|
2443
|
+
"name": "endpoint",
|
|
2444
|
+
"type": "VerdocsEndpoint",
|
|
2445
|
+
"mutable": false,
|
|
2446
|
+
"reflectToAttr": false,
|
|
2447
|
+
"docs": "The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.",
|
|
2448
|
+
"docsTags": [],
|
|
2449
|
+
"default": "VerdocsEndpoint.getDefault()",
|
|
2450
|
+
"values": [
|
|
2451
|
+
{
|
|
2452
|
+
"type": "VerdocsEndpoint"
|
|
2453
|
+
}
|
|
2454
|
+
],
|
|
2455
|
+
"optional": false,
|
|
2456
|
+
"required": false
|
|
2457
|
+
},
|
|
2392
2458
|
{
|
|
2393
2459
|
"name": "options",
|
|
2394
2460
|
"type": "any",
|
|
@@ -2466,6 +2532,22 @@
|
|
|
2466
2532
|
"docsTags": [],
|
|
2467
2533
|
"usage": {},
|
|
2468
2534
|
"props": [
|
|
2535
|
+
{
|
|
2536
|
+
"name": "endpoint",
|
|
2537
|
+
"type": "VerdocsEndpoint",
|
|
2538
|
+
"mutable": false,
|
|
2539
|
+
"reflectToAttr": false,
|
|
2540
|
+
"docs": "The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.",
|
|
2541
|
+
"docsTags": [],
|
|
2542
|
+
"default": "VerdocsEndpoint.getDefault()",
|
|
2543
|
+
"values": [
|
|
2544
|
+
{
|
|
2545
|
+
"type": "VerdocsEndpoint"
|
|
2546
|
+
}
|
|
2547
|
+
],
|
|
2548
|
+
"optional": false,
|
|
2549
|
+
"required": false
|
|
2550
|
+
},
|
|
2469
2551
|
{
|
|
2470
2552
|
"name": "placeholder",
|
|
2471
2553
|
"type": "string",
|
|
@@ -2618,6 +2700,22 @@
|
|
|
2618
2700
|
"optional": false,
|
|
2619
2701
|
"required": false
|
|
2620
2702
|
},
|
|
2703
|
+
{
|
|
2704
|
+
"name": "endpoint",
|
|
2705
|
+
"type": "VerdocsEndpoint",
|
|
2706
|
+
"mutable": false,
|
|
2707
|
+
"reflectToAttr": false,
|
|
2708
|
+
"docs": "The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.",
|
|
2709
|
+
"docsTags": [],
|
|
2710
|
+
"default": "VerdocsEndpoint.getDefault()",
|
|
2711
|
+
"values": [
|
|
2712
|
+
{
|
|
2713
|
+
"type": "VerdocsEndpoint"
|
|
2714
|
+
}
|
|
2715
|
+
],
|
|
2716
|
+
"optional": false,
|
|
2717
|
+
"required": false
|
|
2718
|
+
},
|
|
2621
2719
|
{
|
|
2622
2720
|
"name": "invitecode",
|
|
2623
2721
|
"type": "string",
|
|
@@ -3326,6 +3424,22 @@
|
|
|
3326
3424
|
"docsTags": [],
|
|
3327
3425
|
"usage": {},
|
|
3328
3426
|
"props": [
|
|
3427
|
+
{
|
|
3428
|
+
"name": "endpoint",
|
|
3429
|
+
"type": "VerdocsEndpoint",
|
|
3430
|
+
"mutable": false,
|
|
3431
|
+
"reflectToAttr": false,
|
|
3432
|
+
"docs": "The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.",
|
|
3433
|
+
"docsTags": [],
|
|
3434
|
+
"default": "VerdocsEndpoint.getDefault()",
|
|
3435
|
+
"values": [
|
|
3436
|
+
{
|
|
3437
|
+
"type": "VerdocsEndpoint"
|
|
3438
|
+
}
|
|
3439
|
+
],
|
|
3440
|
+
"optional": false,
|
|
3441
|
+
"required": false
|
|
3442
|
+
},
|
|
3329
3443
|
{
|
|
3330
3444
|
"name": "rotation",
|
|
3331
3445
|
"type": "0 | 180 | 270 | 90",
|