@verdocs/web-sdk 6.5.0-beta.24 → 6.5.0-beta.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.
@@ -958,14 +958,6 @@ export class VerdocsSign {
958
958
  }
959
959
  return (h("verdocs-signing-progress", { mode: mode, current: Math.max(1, currentIndex), total: totalFields, remainingFields: remainingFields, progress: progress, fieldLabel: getFieldLabel(focusedFieldObj), fieldCompleted: focusedFieldObj ? !!isFilled(focusedFieldObj) : false, onStarted: () => {
960
960
  this.adoptingSignature = true;
961
- const startedEnvelopes = JSON.parse(localStorage.getItem('startedEnvelopes') || '[]');
962
- if (!startedEnvelopes.includes(this.envelopeId)) {
963
- startedEnvelopes.push(this.envelopeId);
964
- while (startedEnvelopes.length > 10) {
965
- startedEnvelopes.shift();
966
- }
967
- localStorage.setItem('startedEnvelopes', JSON.stringify(startedEnvelopes));
968
- }
969
961
  }, onNext: () => this.handleNext(), onPrevious: () => this.handlePrev(), onExit: () => this.handleNext() }));
970
962
  })(), h("div", { class: `document signed-document-container zoom-${this.zoomLevel}` }, (this.envelope.documents || []).map(envelopeDocument => {
971
963
  const pageNumbers = integerSequence(1, envelopeDocument.pages);
@@ -1005,6 +997,14 @@ export class VerdocsSign {
1005
997
  this.initialId = initResult.id;
1006
998
  this.showSpinner = false;
1007
999
  this.adoptingSignature = false;
1000
+ const startedEnvelopes = JSON.parse(localStorage.getItem('startedEnvelopes') || '[]');
1001
+ if (!startedEnvelopes.includes(this.envelopeId)) {
1002
+ startedEnvelopes.push(this.envelopeId);
1003
+ while (startedEnvelopes.length > 10) {
1004
+ startedEnvelopes.shift();
1005
+ }
1006
+ localStorage.setItem('startedEnvelopes', JSON.stringify(startedEnvelopes));
1007
+ }
1008
1008
  }, onExit: () => (this.adoptingSignature = false) })), (this.submitting || this.showSpinner) && (h("verdocs-portal", null, h("div", { class: "spinner-overlay" }, h("verdocs-spinner", null)))), this.showDownloadDialog && (h("verdocs-download-dialog", { hasCertificate: (_b = (_a = this.envelope) === null || _a === void 0 ? void 0 : _a.documents) === null || _b === void 0 ? void 0 : _b.some(d => d.type === 'certificate'), onExit: () => (this.showDownloadDialog = false), onNext: async (e) => {
1009
1009
  this.showDownloadDialog = false;
1010
1010
  const { action } = e.detail;