@verdocs/web-sdk 2.2.36 → 2.2.37
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/verdocs-envelope-recipient-link_2.cjs.entry.js +9 -3
- package/dist/collection/components/envelopes/verdocs-envelope-recipient-summary/verdocs-envelope-recipient-summary.js +10 -4
- package/dist/components/verdocs-envelope-recipient-summary2.js +9 -4
- package/dist/custom-elements.json +2059 -0
- package/dist/docs.json +1 -1
- package/dist/esm/verdocs-envelope-recipient-link_2.entry.js +9 -3
- package/dist/esm-es5/verdocs-envelope-recipient-link_2.entry.js +1 -1
- package/dist/verdocs-web-sdk/{p-2f177d12.system.entry.js → p-7b8a52a9.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-f4eaffc6.entry.js → p-d48bffed.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-f04bf956.system.js +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +1 -1
@@ -162,10 +162,14 @@ const VerdocsEnvelopeRecipientSummary = class {
|
|
162
162
|
copyLink(link) {
|
163
163
|
navigator.clipboard
|
164
164
|
.writeText(link)
|
165
|
-
.then(() =>
|
165
|
+
.then(() => {
|
166
|
+
// VerdocsToast('Link copied to clipboard!', {style: 'success', duration: 3000});
|
167
|
+
})
|
166
168
|
.catch(e => {
|
169
|
+
var _a;
|
167
170
|
console.warn('[RECIPIENTS] Error copying to clipboard', e);
|
168
|
-
|
171
|
+
(_a = this.sdkError) === null || _a === void 0 ? void 0 : _a.emit(e);
|
172
|
+
// VerdocsToast(`Unable to copy to clipboard: ${e.message}`, {style: 'error'});
|
169
173
|
});
|
170
174
|
}
|
171
175
|
getLink(recipient) {
|
@@ -177,9 +181,11 @@ const VerdocsEnvelopeRecipientSummary = class {
|
|
177
181
|
this.copyLink(response.link);
|
178
182
|
})
|
179
183
|
.catch(e => {
|
184
|
+
var _a;
|
180
185
|
this.gettingLinks = { ...this.gettingLinks, [recipient.role_name]: false };
|
181
186
|
console.log('[RECIPIENTS] Error getting link', e);
|
182
|
-
|
187
|
+
(_a = this.sdkError) === null || _a === void 0 ? void 0 : _a.emit(e);
|
188
|
+
// VerdocsToast('Unable to get link: ' + e.message, {style: 'error'});
|
183
189
|
});
|
184
190
|
}
|
185
191
|
render() {
|
@@ -3,7 +3,7 @@ import { getInPersonLink } from '@verdocs/js-sdk/Envelopes/Recipients';
|
|
3
3
|
import { Host, h } from '@stencil/core';
|
4
4
|
import { getRecipientsWithActions, recipientCanAct } from '@verdocs/js-sdk/Envelopes/Permissions';
|
5
5
|
import { getEnvelopeStore } from '../../../utils/EnvelopeStore';
|
6
|
-
import {
|
6
|
+
// import {VerdocsToast} from '../../../utils/Toast';
|
7
7
|
import { SDKError } from '../../../utils/errors';
|
8
8
|
/**
|
9
9
|
* Displays a list of recipients with options to get in-person signing links for each one.
|
@@ -68,10 +68,14 @@ export class VerdocsEnvelopeRecipientSummary {
|
|
68
68
|
copyLink(link) {
|
69
69
|
navigator.clipboard
|
70
70
|
.writeText(link)
|
71
|
-
.then(() =>
|
71
|
+
.then(() => {
|
72
|
+
// VerdocsToast('Link copied to clipboard!', {style: 'success', duration: 3000});
|
73
|
+
})
|
72
74
|
.catch(e => {
|
75
|
+
var _a;
|
73
76
|
console.warn('[RECIPIENTS] Error copying to clipboard', e);
|
74
|
-
|
77
|
+
(_a = this.sdkError) === null || _a === void 0 ? void 0 : _a.emit(e);
|
78
|
+
// VerdocsToast(`Unable to copy to clipboard: ${e.message}`, {style: 'error'});
|
75
79
|
});
|
76
80
|
}
|
77
81
|
getLink(recipient) {
|
@@ -83,9 +87,11 @@ export class VerdocsEnvelopeRecipientSummary {
|
|
83
87
|
this.copyLink(response.link);
|
84
88
|
})
|
85
89
|
.catch(e => {
|
90
|
+
var _a;
|
86
91
|
this.gettingLinks = { ...this.gettingLinks, [recipient.role_name]: false };
|
87
92
|
console.log('[RECIPIENTS] Error getting link', e);
|
88
|
-
|
93
|
+
(_a = this.sdkError) === null || _a === void 0 ? void 0 : _a.emit(e);
|
94
|
+
// VerdocsToast('Unable to get link: ' + e.message, {style: 'error'});
|
89
95
|
});
|
90
96
|
}
|
91
97
|
render() {
|
@@ -4,7 +4,6 @@ import { g as getInPersonLink } from './Recipients.js';
|
|
4
4
|
import './Types.js';
|
5
5
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint.js';
|
6
6
|
import { g as getEnvelopeStore } from './EnvelopeStore.js';
|
7
|
-
import { V as VerdocsToast } from './Toast.js';
|
8
7
|
import { S as SDKError } from './errors.js';
|
9
8
|
import { d as defineCustomElement$1 } from './verdocs-button2.js';
|
10
9
|
|
@@ -76,10 +75,14 @@ const VerdocsEnvelopeRecipientSummary = /*@__PURE__*/ proxyCustomElement(class e
|
|
76
75
|
copyLink(link) {
|
77
76
|
navigator.clipboard
|
78
77
|
.writeText(link)
|
79
|
-
.then(() =>
|
78
|
+
.then(() => {
|
79
|
+
// VerdocsToast('Link copied to clipboard!', {style: 'success', duration: 3000});
|
80
|
+
})
|
80
81
|
.catch(e => {
|
82
|
+
var _a;
|
81
83
|
console.warn('[RECIPIENTS] Error copying to clipboard', e);
|
82
|
-
|
84
|
+
(_a = this.sdkError) === null || _a === void 0 ? void 0 : _a.emit(e);
|
85
|
+
// VerdocsToast(`Unable to copy to clipboard: ${e.message}`, {style: 'error'});
|
83
86
|
});
|
84
87
|
}
|
85
88
|
getLink(recipient) {
|
@@ -91,9 +94,11 @@ const VerdocsEnvelopeRecipientSummary = /*@__PURE__*/ proxyCustomElement(class e
|
|
91
94
|
this.copyLink(response.link);
|
92
95
|
})
|
93
96
|
.catch(e => {
|
97
|
+
var _a;
|
94
98
|
this.gettingLinks = { ...this.gettingLinks, [recipient.role_name]: false };
|
95
99
|
console.log('[RECIPIENTS] Error getting link', e);
|
96
|
-
|
100
|
+
(_a = this.sdkError) === null || _a === void 0 ? void 0 : _a.emit(e);
|
101
|
+
// VerdocsToast('Unable to get link: ' + e.message, {style: 'error'});
|
97
102
|
});
|
98
103
|
}
|
99
104
|
render() {
|