@verdocs/web-sdk 2.2.44 → 2.2.45
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-sign.cjs.entry.js +6 -0
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +6 -0
- package/dist/components/verdocs-sign.js +6 -0
- package/dist/custom-elements.json +2059 -0
- package/dist/docs.json +1 -1
- package/dist/esm/verdocs-sign.entry.js +6 -0
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/verdocs-web-sdk/{p-30ce4358.system.entry.js → p-5055fa0c.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-9a76f464.entry.js +1 -0
- 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
- package/dist/verdocs-web-sdk/p-f8718b03.entry.js +0 -1
@@ -262,11 +262,17 @@ const VerdocsSign = class {
|
|
262
262
|
this.updateRecipientFieldValue(field.name, updateResult);
|
263
263
|
});
|
264
264
|
case 'signature':
|
265
|
+
console.log('Creating signature blob', e.detail);
|
265
266
|
const signatureBlob = await (await fetch(e.detail)).blob();
|
267
|
+
console.log('Created signature blob', signatureBlob);
|
266
268
|
return createSignature(this.endpoint, 'signature', signatureBlob) //
|
267
269
|
.then(async (newSignature) => {
|
270
|
+
console.log('Signature update result', newSignature);
|
268
271
|
const updateResult = await Envelopes.updateEnvelopeFieldSignature(this.endpoint, this.envelopeId, field.name, newSignature.id);
|
269
272
|
this.updateRecipientFieldValue(field.name, updateResult);
|
273
|
+
})
|
274
|
+
.catch(e => {
|
275
|
+
console.warn('Error updating signature', e);
|
270
276
|
});
|
271
277
|
case 'date':
|
272
278
|
const iso = e.target.getAttribute('iso');
|
@@ -241,11 +241,17 @@ export class VerdocsSign {
|
|
241
241
|
this.updateRecipientFieldValue(field.name, updateResult);
|
242
242
|
});
|
243
243
|
case 'signature':
|
244
|
+
console.log('Creating signature blob', e.detail);
|
244
245
|
const signatureBlob = await (await fetch(e.detail)).blob();
|
246
|
+
console.log('Created signature blob', signatureBlob);
|
245
247
|
return createSignature(this.endpoint, 'signature', signatureBlob) //
|
246
248
|
.then(async (newSignature) => {
|
249
|
+
console.log('Signature update result', newSignature);
|
247
250
|
const updateResult = await updateEnvelopeFieldSignature(this.endpoint, this.envelopeId, field.name, newSignature.id);
|
248
251
|
this.updateRecipientFieldValue(field.name, updateResult);
|
252
|
+
})
|
253
|
+
.catch(e => {
|
254
|
+
console.warn('Error updating signature', e);
|
249
255
|
});
|
250
256
|
case 'date':
|
251
257
|
const iso = e.target.getAttribute('iso');
|
@@ -264,11 +264,17 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
264
264
|
this.updateRecipientFieldValue(field.name, updateResult);
|
265
265
|
});
|
266
266
|
case 'signature':
|
267
|
+
console.log('Creating signature blob', e.detail);
|
267
268
|
const signatureBlob = await (await fetch(e.detail)).blob();
|
269
|
+
console.log('Created signature blob', signatureBlob);
|
268
270
|
return createSignature(this.endpoint, 'signature', signatureBlob) //
|
269
271
|
.then(async (newSignature) => {
|
272
|
+
console.log('Signature update result', newSignature);
|
270
273
|
const updateResult = await updateEnvelopeFieldSignature(this.endpoint, this.envelopeId, field.name, newSignature.id);
|
271
274
|
this.updateRecipientFieldValue(field.name, updateResult);
|
275
|
+
})
|
276
|
+
.catch(e => {
|
277
|
+
console.warn('Error updating signature', e);
|
272
278
|
});
|
273
279
|
case 'date':
|
274
280
|
const iso = e.target.getAttribute('iso');
|