@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.
@@ -935,14 +935,6 @@ const VerdocsSign = class {
935
935
  }
936
936
  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: () => {
937
937
  this.adoptingSignature = true;
938
- const startedEnvelopes = JSON.parse(localStorage.getItem('startedEnvelopes') || '[]');
939
- if (!startedEnvelopes.includes(this.envelopeId)) {
940
- startedEnvelopes.push(this.envelopeId);
941
- while (startedEnvelopes.length > 10) {
942
- startedEnvelopes.shift();
943
- }
944
- localStorage.setItem('startedEnvelopes', JSON.stringify(startedEnvelopes));
945
- }
946
938
  }, onNext: () => this.handleNext(), onPrevious: () => this.handlePrev(), onExit: () => this.handleNext() }));
947
939
  })(), h("div", { class: `document signed-document-container zoom-${this.zoomLevel}` }, (this.envelope.documents || []).map(envelopeDocument => {
948
940
  const pageNumbers = integerSequence(1, envelopeDocument.pages);
@@ -982,6 +974,14 @@ const VerdocsSign = class {
982
974
  this.initialId = initResult.id;
983
975
  this.showSpinner = false;
984
976
  this.adoptingSignature = false;
977
+ const startedEnvelopes = JSON.parse(localStorage.getItem('startedEnvelopes') || '[]');
978
+ if (!startedEnvelopes.includes(this.envelopeId)) {
979
+ startedEnvelopes.push(this.envelopeId);
980
+ while (startedEnvelopes.length > 10) {
981
+ startedEnvelopes.shift();
982
+ }
983
+ localStorage.setItem('startedEnvelopes', JSON.stringify(startedEnvelopes));
984
+ }
985
985
  }, 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) => {
986
986
  this.showDownloadDialog = false;
987
987
  const { action } = e.detail;