@verdocs/js-sdk 6.7.5 → 6.7.7
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/index.d.mts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +2 -2
- package/dist/tsconfig.json +4 -3
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -18,10 +18,12 @@ const WEBHOOK_EVENTS = [
|
|
|
18
18
|
'entitlement_used',
|
|
19
19
|
'recipient_invited',
|
|
20
20
|
'recipient_reminded',
|
|
21
|
+
'recipient_opened',
|
|
21
22
|
'recipient_auth_fail',
|
|
22
23
|
'recipient_disclosure_accepted',
|
|
23
24
|
'recipient_docs_downloaded',
|
|
24
25
|
'recipient_invite_failed',
|
|
26
|
+
'recipient_declined',
|
|
25
27
|
];
|
|
26
28
|
|
|
27
29
|
const FIELD_TYPES = [
|
|
@@ -159,7 +161,7 @@ function getRGBA(roleIndex) {
|
|
|
159
161
|
* is not specified explicitly, but will be the same for every call with the same input value.
|
|
160
162
|
*/
|
|
161
163
|
function nameToRGBA(str) {
|
|
162
|
-
if (
|
|
164
|
+
if (str) {
|
|
163
165
|
const validNum = parseInt(str.slice(-1), 10);
|
|
164
166
|
if (!isNaN(validNum)) {
|
|
165
167
|
str += (validNum * 99).toString();
|
|
@@ -1433,7 +1435,7 @@ class VerdocsEndpoint {
|
|
|
1433
1435
|
this.profile = r || null;
|
|
1434
1436
|
this.notifySessionListeners();
|
|
1435
1437
|
})
|
|
1436
|
-
.catch((
|
|
1438
|
+
.catch(() => {
|
|
1437
1439
|
this.profile = null;
|
|
1438
1440
|
this.sub = null;
|
|
1439
1441
|
// We can't clear the token verdocs-auth may be using temporarily during registration
|
|
@@ -2663,7 +2665,7 @@ const isFieldFilled = (field, allRecipientFields) => {
|
|
|
2663
2665
|
case 'checkbox':
|
|
2664
2666
|
return value === 'true';
|
|
2665
2667
|
case 'radio':
|
|
2666
|
-
if (
|
|
2668
|
+
if (field.group) {
|
|
2667
2669
|
return allRecipientFields.filter((f) => f.group === field.group).some((field) => field.value === 'true');
|
|
2668
2670
|
}
|
|
2669
2671
|
return field.value === 'true';
|