@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.
@@ -961,14 +961,6 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsSign extends
961
961
  }
962
962
  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: () => {
963
963
  this.adoptingSignature = true;
964
- const startedEnvelopes = JSON.parse(localStorage.getItem('startedEnvelopes') || '[]');
965
- if (!startedEnvelopes.includes(this.envelopeId)) {
966
- startedEnvelopes.push(this.envelopeId);
967
- while (startedEnvelopes.length > 10) {
968
- startedEnvelopes.shift();
969
- }
970
- localStorage.setItem('startedEnvelopes', JSON.stringify(startedEnvelopes));
971
- }
972
964
  }, onNext: () => this.handleNext(), onPrevious: () => this.handlePrev(), onExit: () => this.handleNext() }));
973
965
  })(), h("div", { class: `document signed-document-container zoom-${this.zoomLevel}` }, (this.envelope.documents || []).map(envelopeDocument => {
974
966
  const pageNumbers = integerSequence(1, envelopeDocument.pages);
@@ -1008,6 +1000,14 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsSign extends
1008
1000
  this.initialId = initResult.id;
1009
1001
  this.showSpinner = false;
1010
1002
  this.adoptingSignature = false;
1003
+ const startedEnvelopes = JSON.parse(localStorage.getItem('startedEnvelopes') || '[]');
1004
+ if (!startedEnvelopes.includes(this.envelopeId)) {
1005
+ startedEnvelopes.push(this.envelopeId);
1006
+ while (startedEnvelopes.length > 10) {
1007
+ startedEnvelopes.shift();
1008
+ }
1009
+ localStorage.setItem('startedEnvelopes', JSON.stringify(startedEnvelopes));
1010
+ }
1011
1011
  }, 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) => {
1012
1012
  this.showDownloadDialog = false;
1013
1013
  const { action } = e.detail;