@verdocs/web-sdk 2.0.25 → 2.0.26

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.
@@ -51,7 +51,7 @@ const VerdocsEnvelopesList = class {
51
51
  this.changeMatch = index.createEvent(this, "changeMatch", 7);
52
52
  this.sdkError = index.createEvent(this, "sdkError", 7);
53
53
  this.viewEnvelope = index.createEvent(this, "viewEnvelope", 7);
54
- this.finishLater = index.createEvent(this, "finishLater", 7);
54
+ this.finishEnvelope = index.createEvent(this, "finishEnvelope", 7);
55
55
  this.endpoint = VerdocsEndpoint.VerdocsEndpoint.getDefault();
56
56
  this.view = undefined;
57
57
  this.status = 'all';
@@ -246,7 +246,7 @@ const VerdocsEnvelopesList = class {
246
246
  (_a = this.viewEnvelope) === null || _a === void 0 ? void 0 : _a.emit({ endpoint: this.endpoint, envelope });
247
247
  break;
248
248
  case 'finish':
249
- (_b = this.finishLater) === null || _b === void 0 ? void 0 : _b.emit({ endpoint: this.endpoint, envelope });
249
+ (_b = this.finishEnvelope) === null || _b === void 0 ? void 0 : _b.emit({ endpoint: this.endpoint, envelope });
250
250
  break;
251
251
  case 'download':
252
252
  this.downloadEnvelope(envelope);
@@ -256,6 +256,7 @@ const VerdocsEnvelopesList = class {
256
256
  Envelopes.cancelEnvelope(this.endpoint, envelope.id)
257
257
  .then(() => Toast.VerdocsToast('Envelope canceled'))
258
258
  .catch(e => Toast.VerdocsToast('Unable to cancel envelope: ' + e.messabge, { style: 'error' }));
259
+ this.queryEnvelopes().catch(() => { });
259
260
  }
260
261
  break;
261
262
  }
@@ -230,7 +230,7 @@ export class VerdocsEnvelopesList {
230
230
  (_a = this.viewEnvelope) === null || _a === void 0 ? void 0 : _a.emit({ endpoint: this.endpoint, envelope });
231
231
  break;
232
232
  case 'finish':
233
- (_b = this.finishLater) === null || _b === void 0 ? void 0 : _b.emit({ endpoint: this.endpoint, envelope });
233
+ (_b = this.finishEnvelope) === null || _b === void 0 ? void 0 : _b.emit({ endpoint: this.endpoint, envelope });
234
234
  break;
235
235
  case 'download':
236
236
  this.downloadEnvelope(envelope);
@@ -240,6 +240,7 @@ export class VerdocsEnvelopesList {
240
240
  cancelEnvelope(this.endpoint, envelope.id)
241
241
  .then(() => VerdocsToast('Envelope canceled'))
242
242
  .catch(e => VerdocsToast('Unable to cancel envelope: ' + e.messabge, { style: 'error' }));
243
+ this.queryEnvelopes().catch(() => { });
243
244
  }
244
245
  break;
245
246
  }
@@ -535,14 +536,14 @@ export class VerdocsEnvelopesList {
535
536
  }
536
537
  }
537
538
  }, {
538
- "method": "finishLater",
539
- "name": "finishLater",
539
+ "method": "finishEnvelope",
540
+ "name": "finishEnvelope",
540
541
  "bubbles": true,
541
542
  "cancelable": true,
542
543
  "composed": true,
543
544
  "docs": {
544
545
  "tags": [],
545
- "text": "Event fired when the user clicks to finish signing later. Typically the host application should redirect\nthe user to another page."
546
+ "text": "Event fired when the user clicks to finish the envelope."
546
547
  },
547
548
  "complexType": {
548
549
  "original": "{endpoint: VerdocsEndpoint; envelope: IEnvelopeSummary}",
@@ -53,7 +53,7 @@ const VerdocsEnvelopesList$1 = /*@__PURE__*/ proxyCustomElement(class extends HT
53
53
  this.changeMatch = createEvent(this, "changeMatch", 7);
54
54
  this.sdkError = createEvent(this, "sdkError", 7);
55
55
  this.viewEnvelope = createEvent(this, "viewEnvelope", 7);
56
- this.finishLater = createEvent(this, "finishLater", 7);
56
+ this.finishEnvelope = createEvent(this, "finishEnvelope", 7);
57
57
  this.endpoint = VerdocsEndpoint.getDefault();
58
58
  this.view = undefined;
59
59
  this.status = 'all';
@@ -248,7 +248,7 @@ const VerdocsEnvelopesList$1 = /*@__PURE__*/ proxyCustomElement(class extends HT
248
248
  (_a = this.viewEnvelope) === null || _a === void 0 ? void 0 : _a.emit({ endpoint: this.endpoint, envelope });
249
249
  break;
250
250
  case 'finish':
251
- (_b = this.finishLater) === null || _b === void 0 ? void 0 : _b.emit({ endpoint: this.endpoint, envelope });
251
+ (_b = this.finishEnvelope) === null || _b === void 0 ? void 0 : _b.emit({ endpoint: this.endpoint, envelope });
252
252
  break;
253
253
  case 'download':
254
254
  this.downloadEnvelope(envelope);
@@ -258,6 +258,7 @@ const VerdocsEnvelopesList$1 = /*@__PURE__*/ proxyCustomElement(class extends HT
258
258
  cancelEnvelope(this.endpoint, envelope.id)
259
259
  .then(() => VerdocsToast('Envelope canceled'))
260
260
  .catch(e => VerdocsToast('Unable to cancel envelope: ' + e.messabge, { style: 'error' }));
261
+ this.queryEnvelopes().catch(() => { });
261
262
  }
262
263
  break;
263
264
  }