@verdocs/web-sdk 4.2.87 → 4.2.88

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.
@@ -216,6 +216,14 @@ const VerdocsEnvelopeSidebar = class {
216
216
  entries.push({ icon: 'mail', message: `${fullName} has been invited via email.`, date: new Date(history.created_at) });
217
217
  }
218
218
  break;
219
+ case 'recipient:reminder':
220
+ if (history.event_detail === 'sms') {
221
+ entries.push({ icon: 'textsms', message: `${fullName} sent a reminder via SMS.`, date: new Date(history.created_at) });
222
+ }
223
+ else {
224
+ entries.push({ icon: 'mail', message: `${fullName} sent a reminder via email.`, date: new Date(history.created_at) });
225
+ }
226
+ break;
219
227
  case 'invitation:resent':
220
228
  entries.push({
221
229
  icon: 'mail',
@@ -88,7 +88,7 @@ const VerdocsSign = class {
88
88
  if (this.agreed) {
89
89
  this.nextButtonLabel = 'Next';
90
90
  }
91
- this.envelope = await jsSdk.getEnvelope(this.endpoint, this.envelopeId);
91
+ this.envelope = envelope;
92
92
  TemplateFieldStore.createTemplateFieldStoreFromEnvelope(this.envelope);
93
93
  this.sortedRecipients = [...this.envelope.recipients];
94
94
  this.sortedRecipients.sort((a, b) => {
@@ -1,8 +1,8 @@
1
1
  import { Host, Fragment, h } from "@stencil/core";
2
- import { createInitials, createSignature, envelopeRecipientAgree, envelopeRecipientDecline, envelopeRecipientSubmit, formatFullName } from "@verdocs/js-sdk";
3
- import { updateEnvelopeFieldSignature, uploadEnvelopeFieldAttachment, VerdocsEndpoint, updateEnvelopeField } from "@verdocs/js-sdk";
2
+ import { fullNameToInitials, startSigningSession } from "@verdocs/js-sdk";
4
3
  import { integerSequence, isValidEmail, isValidPhone, updateEnvelopeFieldInitials } from "@verdocs/js-sdk";
5
- import { fullNameToInitials, getEnvelope, startSigningSession } from "@verdocs/js-sdk";
4
+ import { updateEnvelopeFieldSignature, uploadEnvelopeFieldAttachment, VerdocsEndpoint, updateEnvelopeField } from "@verdocs/js-sdk";
5
+ import { createInitials, createSignature, envelopeRecipientAgree, envelopeRecipientDecline, envelopeRecipientSubmit, formatFullName } from "@verdocs/js-sdk";
6
6
  import { getFieldId, renderDocumentField, saveAttachment, updateDocumentFieldValue } from "../../../utils/utils";
7
7
  import { createTemplateFieldStoreFromEnvelope } from "../../../utils/TemplateFieldStore";
8
8
  import { VerdocsToast } from "../../../utils/Toast";
@@ -92,7 +92,7 @@ export class VerdocsSign {
92
92
  if (this.agreed) {
93
93
  this.nextButtonLabel = 'Next';
94
94
  }
95
- this.envelope = await getEnvelope(this.endpoint, this.envelopeId);
95
+ this.envelope = envelope;
96
96
  createTemplateFieldStoreFromEnvelope(this.envelope);
97
97
  this.sortedRecipients = [...this.envelope.recipients];
98
98
  this.sortedRecipients.sort((a, b) => {
@@ -205,6 +205,14 @@ export class VerdocsEnvelopeSidebar {
205
205
  entries.push({ icon: 'mail', message: `${fullName} has been invited via email.`, date: new Date(history.created_at) });
206
206
  }
207
207
  break;
208
+ case 'recipient:reminder':
209
+ if (history.event_detail === 'sms') {
210
+ entries.push({ icon: 'textsms', message: `${fullName} sent a reminder via SMS.`, date: new Date(history.created_at) });
211
+ }
212
+ else {
213
+ entries.push({ icon: 'mail', message: `${fullName} sent a reminder via email.`, date: new Date(history.created_at) });
214
+ }
215
+ break;
208
216
  case 'invitation:resent':
209
217
  entries.push({
210
218
  icon: 'mail',
@@ -216,6 +216,14 @@ const VerdocsEnvelopeSidebar$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsE
216
216
  entries.push({ icon: 'mail', message: `${fullName} has been invited via email.`, date: new Date(history.created_at) });
217
217
  }
218
218
  break;
219
+ case 'recipient:reminder':
220
+ if (history.event_detail === 'sms') {
221
+ entries.push({ icon: 'textsms', message: `${fullName} sent a reminder via SMS.`, date: new Date(history.created_at) });
222
+ }
223
+ else {
224
+ entries.push({ icon: 'mail', message: `${fullName} sent a reminder via email.`, date: new Date(history.created_at) });
225
+ }
226
+ break;
219
227
  case 'invitation:resent':
220
228
  entries.push({
221
229
  icon: 'mail',
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host, Fragment } from '@stencil/core/internal/client';
2
- import { VerdocsEndpoint, startSigningSession, getEnvelope, envelopeRecipientAgree, envelopeRecipientDecline, updateEnvelopeField, createSignature, updateEnvelopeFieldSignature, createInitials, updateEnvelopeFieldInitials, isValidPhone, isValidEmail, envelopeRecipientSubmit, uploadEnvelopeFieldAttachment, formatFullName, fullNameToInitials, integerSequence } from '@verdocs/js-sdk';
2
+ import { VerdocsEndpoint, startSigningSession, envelopeRecipientAgree, envelopeRecipientDecline, updateEnvelopeField, createSignature, updateEnvelopeFieldSignature, createInitials, updateEnvelopeFieldInitials, isValidPhone, isValidEmail, envelopeRecipientSubmit, uploadEnvelopeFieldAttachment, formatFullName, fullNameToInitials, integerSequence } from '@verdocs/js-sdk';
3
3
  import { a as saveAttachment, u as updateDocumentFieldValue, r as renderDocumentField, g as getFieldId } from './utils.js';
4
4
  import { c as createTemplateFieldStoreFromEnvelope } from './TemplateFieldStore.js';
5
5
  import { V as VerdocsToast } from './Toast.js';
@@ -88,7 +88,7 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsSign extends
88
88
  if (this.agreed) {
89
89
  this.nextButtonLabel = 'Next';
90
90
  }
91
- this.envelope = await getEnvelope(this.endpoint, this.envelopeId);
91
+ this.envelope = envelope;
92
92
  createTemplateFieldStoreFromEnvelope(this.envelope);
93
93
  this.sortedRecipients = [...this.envelope.recipients];
94
94
  this.sortedRecipients.sort((a, b) => {