@verdocs/web-sdk 6.5.0-beta.24 → 6.5.0-beta.25

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