@verdocs/web-sdk 4.2.24 → 4.2.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.
Files changed (177) hide show
  1. package/dist/cjs/{Toast-bb6f20af.js → Toast-818b7b3e.js} +2 -2
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/verdocs-auth.cjs.entry.js +44 -28
  4. package/dist/cjs/verdocs-button_3.cjs.entry.js +9 -4
  5. package/dist/cjs/verdocs-contact-picker_2.cjs.entry.js +1 -1
  6. package/dist/cjs/verdocs-dialog.cjs.entry.js +1 -1
  7. package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +1 -1
  8. package/dist/cjs/verdocs-envelope-recipient-link_2.cjs.entry.js +1 -1
  9. package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +1 -1
  10. package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +7 -7
  11. package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js +3 -3
  12. package/dist/cjs/verdocs-kba-dialog.cjs.entry.js +2 -2
  13. package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +1 -1
  14. package/dist/cjs/verdocs-preview_10.cjs.entry.js +1 -1
  15. package/dist/cjs/verdocs-quick-functions_2.cjs.entry.js +1 -1
  16. package/dist/cjs/verdocs-radio-button_3.cjs.entry.js +8 -8
  17. package/dist/cjs/verdocs-search-tabs.cjs.entry.js +1 -1
  18. package/dist/cjs/verdocs-search.cjs.entry.js +1 -1
  19. package/dist/cjs/verdocs-sign.cjs.entry.js +1 -1
  20. package/dist/cjs/verdocs-status-indicator.cjs.entry.js +2 -2
  21. package/dist/cjs/verdocs-template-card.cjs.entry.js +1 -1
  22. package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +2 -2
  23. package/dist/cjs/verdocs-template-star.cjs.entry.js +1 -1
  24. package/dist/cjs/verdocs-template-tags.cjs.entry.js +1 -1
  25. package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
  26. package/dist/collection/components/controls/verdocs-text-input/verdocs-text-input.css +12 -0
  27. package/dist/collection/components/controls/verdocs-text-input/verdocs-text-input.js +12 -2
  28. package/dist/collection/components/controls/verdocs-toggle-button/verdocs-toggle-button.js +1 -1
  29. package/dist/collection/components/controls/verdocs-toolbar-icon/verdocs-toolbar-icon.js +1 -1
  30. package/dist/collection/components/dialogs/verdocs-dialog/verdocs-dialog.js +1 -1
  31. package/dist/collection/components/dialogs/verdocs-initial-dialog/verdocs-initial-dialog.js +1 -1
  32. package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.js +2 -2
  33. package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.js +1 -1
  34. package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.js +1 -1
  35. package/dist/collection/components/dialogs/verdocs-upload-dialog/verdocs-upload-dialog.js +1 -1
  36. package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.js +1 -1
  37. package/dist/collection/components/elements/verdocs-search-tabs/verdocs-search-tabs.js +1 -1
  38. package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.css +10 -9
  39. package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js +43 -28
  40. package/dist/collection/components/embeds/verdocs-search/verdocs-search.js +1 -1
  41. package/dist/collection/components/envelopes/verdocs-envelope-document-page/verdocs-envelope-document-page.js +1 -1
  42. package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.js +6 -6
  43. package/dist/collection/components/envelopes/verdocs-status-indicator/verdocs-status-indicator.js +2 -2
  44. package/dist/collection/components/templates/verdocs-template-card/verdocs-template-card.js +1 -1
  45. package/dist/collection/components/templates/verdocs-template-document-page/verdocs-template-document-page.js +1 -1
  46. package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.js +7 -7
  47. package/dist/collection/components/templates/verdocs-template-sender/verdocs-template-sender.js +1 -1
  48. package/dist/collection/components/templates/verdocs-template-star/verdocs-template-star.js +1 -1
  49. package/dist/collection/components/templates/verdocs-template-tags/verdocs-template-tags.js +1 -1
  50. package/dist/collection/utils/Toast.js +2 -2
  51. package/dist/components/Toast.js +2 -2
  52. package/dist/components/verdocs-auth.js +44 -29
  53. package/dist/components/verdocs-dialog.js +1 -1
  54. package/dist/components/verdocs-envelope-document-page2.js +1 -1
  55. package/dist/components/verdocs-envelopes-list.js +6 -6
  56. package/dist/components/verdocs-initial-dialog2.js +1 -1
  57. package/dist/components/verdocs-kba-dialog.js +2 -2
  58. package/dist/components/verdocs-ok-dialog2.js +1 -1
  59. package/dist/components/verdocs-quick-functions2.js +1 -1
  60. package/dist/components/verdocs-search-tabs.js +1 -1
  61. package/dist/components/verdocs-search.js +1 -1
  62. package/dist/components/verdocs-signature-dialog2.js +1 -1
  63. package/dist/components/verdocs-status-indicator2.js +2 -2
  64. package/dist/components/verdocs-template-card.js +1 -1
  65. package/dist/components/verdocs-template-document-page2.js +1 -1
  66. package/dist/components/verdocs-template-role-properties2.js +7 -7
  67. package/dist/components/verdocs-template-sender2.js +1 -1
  68. package/dist/components/verdocs-template-star2.js +1 -1
  69. package/dist/components/verdocs-template-tags.js +1 -1
  70. package/dist/components/verdocs-text-input2.js +10 -4
  71. package/dist/components/verdocs-toggle-button2.js +1 -1
  72. package/dist/components/verdocs-toolbar-icon2.js +1 -1
  73. package/dist/components/verdocs-upload-dialog2.js +1 -1
  74. package/dist/esm/{Toast-b71de686.js → Toast-3e2645fc.js} +2 -2
  75. package/dist/esm/loader.js +1 -1
  76. package/dist/esm/verdocs-auth.entry.js +44 -28
  77. package/dist/esm/verdocs-button_3.entry.js +9 -4
  78. package/dist/esm/verdocs-contact-picker_2.entry.js +1 -1
  79. package/dist/esm/verdocs-dialog.entry.js +1 -1
  80. package/dist/esm/verdocs-envelope-document-page.entry.js +1 -1
  81. package/dist/esm/verdocs-envelope-recipient-link_2.entry.js +1 -1
  82. package/dist/esm/verdocs-envelope-sidebar.entry.js +1 -1
  83. package/dist/esm/verdocs-envelopes-list.entry.js +7 -7
  84. package/dist/esm/verdocs-field-attachment_13.entry.js +3 -3
  85. package/dist/esm/verdocs-kba-dialog.entry.js +2 -2
  86. package/dist/esm/verdocs-ok-dialog.entry.js +1 -1
  87. package/dist/esm/verdocs-preview_10.entry.js +1 -1
  88. package/dist/esm/verdocs-quick-functions_2.entry.js +1 -1
  89. package/dist/esm/verdocs-radio-button_3.entry.js +8 -8
  90. package/dist/esm/verdocs-search-tabs.entry.js +1 -1
  91. package/dist/esm/verdocs-search.entry.js +1 -1
  92. package/dist/esm/verdocs-sign.entry.js +1 -1
  93. package/dist/esm/verdocs-status-indicator.entry.js +2 -2
  94. package/dist/esm/verdocs-template-card.entry.js +1 -1
  95. package/dist/esm/verdocs-template-document-page_2.entry.js +2 -2
  96. package/dist/esm/verdocs-template-star.entry.js +1 -1
  97. package/dist/esm/verdocs-template-tags.entry.js +1 -1
  98. package/dist/esm/verdocs-web-sdk.js +1 -1
  99. package/dist/esm-es5/{Toast-b71de686.js → Toast-3e2645fc.js} +1 -1
  100. package/dist/esm-es5/loader.js +1 -1
  101. package/dist/esm-es5/verdocs-auth.entry.js +1 -1
  102. package/dist/esm-es5/verdocs-button_3.entry.js +1 -1
  103. package/dist/esm-es5/verdocs-contact-picker_2.entry.js +1 -1
  104. package/dist/esm-es5/verdocs-dialog.entry.js +1 -1
  105. package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -1
  106. package/dist/esm-es5/verdocs-envelope-recipient-link_2.entry.js +1 -1
  107. package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
  108. package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
  109. package/dist/esm-es5/verdocs-field-attachment_13.entry.js +1 -1
  110. package/dist/esm-es5/verdocs-kba-dialog.entry.js +1 -1
  111. package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
  112. package/dist/esm-es5/verdocs-preview_10.entry.js +1 -1
  113. package/dist/esm-es5/verdocs-quick-functions_2.entry.js +1 -1
  114. package/dist/esm-es5/verdocs-radio-button_3.entry.js +1 -1
  115. package/dist/esm-es5/verdocs-search-tabs.entry.js +1 -1
  116. package/dist/esm-es5/verdocs-search.entry.js +1 -1
  117. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  118. package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -1
  119. package/dist/esm-es5/verdocs-template-card.entry.js +1 -1
  120. package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
  121. package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
  122. package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
  123. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  124. package/dist/types/components/controls/verdocs-text-input/verdocs-text-input.d.ts +1 -0
  125. package/dist/types/components/embeds/verdocs-auth/verdocs-auth.d.ts +2 -2
  126. package/dist/verdocs-web-sdk/{p-b3017cd6.entry.js → p-0349f360.entry.js} +1 -1
  127. package/dist/verdocs-web-sdk/{p-20593762.entry.js → p-0ff14c4d.entry.js} +1 -1
  128. package/dist/verdocs-web-sdk/{p-67e9f8a5.entry.js → p-1dd1d686.entry.js} +1 -1
  129. package/dist/verdocs-web-sdk/{p-8ee31f33.system.entry.js → p-1fec2d1e.system.entry.js} +1 -1
  130. package/dist/verdocs-web-sdk/{p-3f9b5a02.entry.js → p-3093ede7.entry.js} +1 -1
  131. package/dist/verdocs-web-sdk/{p-9ce9d353.system.entry.js → p-314321b8.system.entry.js} +1 -1
  132. package/dist/verdocs-web-sdk/p-322fa613.system.js +1 -1
  133. package/dist/verdocs-web-sdk/{p-51544250.system.entry.js → p-3a4dcc93.system.entry.js} +1 -1
  134. package/dist/verdocs-web-sdk/{p-8ca0c8c2.system.entry.js → p-3a8b2213.system.entry.js} +1 -1
  135. package/dist/verdocs-web-sdk/{p-d6f6f255.entry.js → p-402a35bf.entry.js} +1 -1
  136. package/dist/verdocs-web-sdk/{p-71f53fd6.entry.js → p-40d811fe.entry.js} +1 -1
  137. package/dist/verdocs-web-sdk/{p-0d54abe5.entry.js → p-4145b69a.entry.js} +1 -1
  138. package/dist/verdocs-web-sdk/{p-48fce604.system.entry.js → p-420fc040.system.entry.js} +1 -1
  139. package/dist/verdocs-web-sdk/{p-7a4930b1.entry.js → p-4291db9f.entry.js} +1 -1
  140. package/dist/verdocs-web-sdk/p-62af2ee6.system.entry.js +1 -0
  141. package/dist/verdocs-web-sdk/p-62d7e050.entry.js +1 -0
  142. package/dist/verdocs-web-sdk/{p-0713ab8d.entry.js → p-67c3b3d1.entry.js} +1 -1
  143. package/dist/verdocs-web-sdk/{p-ee08c75b.system.entry.js → p-72ae790a.system.entry.js} +1 -1
  144. package/dist/verdocs-web-sdk/{p-65df6ef0.entry.js → p-748ed4ef.entry.js} +1 -1
  145. package/dist/verdocs-web-sdk/{p-71efd549.system.entry.js → p-7b222135.system.entry.js} +1 -1
  146. package/dist/verdocs-web-sdk/{p-cef88396.system.entry.js → p-7bfe3ed2.system.entry.js} +1 -1
  147. package/dist/verdocs-web-sdk/{p-3f246894.entry.js → p-7e6fa885.entry.js} +1 -1
  148. package/dist/verdocs-web-sdk/{p-e1679e5b.system.entry.js → p-7ef593c3.system.entry.js} +1 -1
  149. package/dist/verdocs-web-sdk/{p-a7dac539.entry.js → p-8092bd81.entry.js} +1 -1
  150. package/dist/verdocs-web-sdk/{p-cf1ae7bf.entry.js → p-82f7b16a.entry.js} +1 -1
  151. package/dist/verdocs-web-sdk/{p-fd2c9b30.entry.js → p-83c81948.entry.js} +1 -1
  152. package/dist/verdocs-web-sdk/{p-2be9ba53.system.entry.js → p-8c3c0869.system.entry.js} +1 -1
  153. package/dist/verdocs-web-sdk/{p-f632ffac.entry.js → p-8ce594b2.entry.js} +1 -1
  154. package/dist/verdocs-web-sdk/{p-d2feac5b.system.entry.js → p-96e5a460.system.entry.js} +1 -1
  155. package/dist/verdocs-web-sdk/{p-aed8139a.system.entry.js → p-99510d53.system.entry.js} +1 -1
  156. package/dist/verdocs-web-sdk/{p-fc5e568d.system.entry.js → p-9c955106.system.entry.js} +1 -1
  157. package/dist/verdocs-web-sdk/{p-6bbea733.system.entry.js → p-a908ebeb.system.entry.js} +1 -1
  158. package/dist/verdocs-web-sdk/{p-1b6664c9.entry.js → p-ad2814b4.entry.js} +1 -1
  159. package/dist/verdocs-web-sdk/{p-8d0807ab.system.entry.js → p-ad474154.system.entry.js} +1 -1
  160. package/dist/verdocs-web-sdk/p-b2b16ce8.system.entry.js +1 -0
  161. package/dist/verdocs-web-sdk/{p-08210588.system.entry.js → p-bb0ed696.system.entry.js} +1 -1
  162. package/dist/verdocs-web-sdk/{p-7ce23c90.system.js → p-c8915559.system.js} +1 -1
  163. package/dist/verdocs-web-sdk/{p-4bb08486.entry.js → p-d61235cf.entry.js} +1 -1
  164. package/dist/verdocs-web-sdk/{p-77ec3348.entry.js → p-dda420e7.entry.js} +1 -1
  165. package/dist/verdocs-web-sdk/{p-a1289b75.system.entry.js → p-e772c022.system.entry.js} +1 -1
  166. package/dist/verdocs-web-sdk/{p-10947d22.entry.js → p-eaf4de2f.entry.js} +1 -1
  167. package/dist/verdocs-web-sdk/{p-1030a0b7.system.entry.js → p-ebc3ed52.system.entry.js} +1 -1
  168. package/dist/verdocs-web-sdk/{p-fdb77c22.system.entry.js → p-f2f6c646.system.entry.js} +1 -1
  169. package/dist/verdocs-web-sdk/{p-6fc92b73.system.entry.js → p-f54b4cc0.system.entry.js} +1 -1
  170. package/dist/verdocs-web-sdk/{p-78908c67.entry.js → p-f978550e.entry.js} +1 -1
  171. package/dist/verdocs-web-sdk/{p-026b3103.js → p-fa58907b.js} +1 -1
  172. package/dist/verdocs-web-sdk/{p-f80e65ce.entry.js → p-fe246d59.entry.js} +1 -1
  173. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  174. package/package.json +2 -2
  175. package/dist/verdocs-web-sdk/p-12c81053.entry.js +0 -1
  176. package/dist/verdocs-web-sdk/p-50aa20d5.system.entry.js +0 -1
  177. package/dist/verdocs-web-sdk/p-9a14fe42.system.entry.js +0 -1
@@ -12,24 +12,25 @@
12
12
  verdocs-auth {
13
13
  font-family: "Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;
14
14
  display: flex;
15
- flex-direction: column;
16
15
  align-items: center;
16
+ flex-direction: column;
17
17
  justify-content: center;
18
18
  }
19
19
  verdocs-auth .form {
20
- background: #ffffff;
21
- align-items: center;
22
- justify-content: center;
23
- flex-direction: column;
20
+ width: 320px;
24
21
  display: flex;
25
22
  padding: 20px;
26
- width: 320px;
27
- max-width: 100%;
23
+ max-width: 90%;
24
+ align-items: center;
25
+ flex-direction: column;
26
+ box-sizing: border-box;
27
+ justify-content: center;
28
+ background: #ffffff;
28
29
  }
29
30
  verdocs-auth .logo {
30
- margin: 20px 0 30px;
31
31
  width: 128px;
32
32
  max-width: 100%;
33
+ margin: 20px 0 30px;
33
34
  }
34
35
  verdocs-auth h3 {
35
36
  text-align: center;
@@ -91,7 +92,7 @@ verdocs-auth .account-option {
91
92
  flex-direction: row;
92
93
  }
93
94
  verdocs-auth p {
94
- margin: 1em 0 0;
95
+ margin: 0 0 1em 0;
95
96
  }
96
97
  verdocs-auth p + p {
97
98
  margin-top: 0;
@@ -23,11 +23,13 @@ export class VerdocsAuth {
23
23
  // We can't instantly log in on the default endpoint because other listeners might see
24
24
  // its events and incorrectly trigger before we're done. So we manage our own temp
25
25
  // endpoint and pass the final tokens to the default once we're ready.
26
- this.tempAuthEndpoint = new VerdocsEndpoint();
26
+ this.tempAuthEndpoint = new VerdocsEndpoint({
27
+ baseURL: VerdocsEndpoint.getDefault().getBaseURL(),
28
+ persist: false,
29
+ });
27
30
  this.endpoint = VerdocsEndpoint.getDefault();
28
31
  this.visible = true;
29
32
  this.logo = 'https://app.verdocs.com/assets/blue-logo.svg';
30
- this.isAuthenticated = false;
31
33
  this.displayMode = 'login';
32
34
  this.org_name = '';
33
35
  this.first_name = '';
@@ -35,8 +37,8 @@ export class VerdocsAuth {
35
37
  this.email = '';
36
38
  this.verificationCode = '';
37
39
  this.password = '';
40
+ this.confirmpass = '';
38
41
  this.submitting = false;
39
- this.activeSession = null;
40
42
  this.resendDisabled = false;
41
43
  }
42
44
  componentWillLoad() {
@@ -44,8 +46,6 @@ export class VerdocsAuth {
44
46
  this.endpoint.loadSession();
45
47
  if (this.endpoint.session) {
46
48
  console.log('[AUTH] Authenticated');
47
- this.isAuthenticated = true;
48
- this.activeSession = this.endpoint.session;
49
49
  (_a = this.authenticated) === null || _a === void 0 ? void 0 : _a.emit({ authenticated: true, session: this.endpoint.session });
50
50
  }
51
51
  else {
@@ -70,12 +70,16 @@ export class VerdocsAuth {
70
70
  return password.length >= 8 && countOfLowerCase > 0 && countOfUpperCase > 0 && countOfSpecialChar > 0;
71
71
  }
72
72
  handleSignup() {
73
- this.submitting = true;
74
- this.tempAuthEndpoint.clearSession();
75
73
  if (!this.isPasswordComplex(this.password)) {
76
- window.alert('Password must be at least 8 characters long and contain at least one uppercase, one lowercase, and one special character.');
74
+ VerdocsToast('Password must be at least 8 characters long and contain at least one uppercase, one lowercase, and one special character.', { style: 'error' });
75
+ return;
76
+ }
77
+ if (this.password !== this.confirmpass) {
78
+ VerdocsToast('Passwords do not match.', { style: 'error' });
77
79
  return;
78
80
  }
81
+ this.submitting = true;
82
+ this.tempAuthEndpoint.clearSession();
79
83
  createProfile(this.tempAuthEndpoint, {
80
84
  email: this.email,
81
85
  password: this.password,
@@ -86,13 +90,13 @@ export class VerdocsAuth {
86
90
  .then(r => {
87
91
  console.log('Profile creation result', r);
88
92
  this.tempAuthEndpoint.setToken(r.access_token);
93
+ this.clearForms();
89
94
  this.displayMode = 'verify';
90
95
  })
91
96
  .catch(e => {
92
97
  var _a, _b, _c, _d, _e, _f;
93
98
  console.log('[AUTH] Signup error', e.response);
94
99
  this.submitting = false;
95
- this.activeSession = null;
96
100
  (_a = this.authenticated) === null || _a === void 0 ? void 0 : _a.emit({ authenticated: false, session: null });
97
101
  (_b = this.sdkError) === null || _b === void 0 ? void 0 : _b.emit(new SDKError(e.message, (_c = e.response) === null || _c === void 0 ? void 0 : _c.status, (_d = e.response) === null || _d === void 0 ? void 0 : _d.data));
98
102
  VerdocsToast('Signup failed: ' + ((_f = (_e = e.response) === null || _e === void 0 ? void 0 : _e.data) === null || _f === void 0 ? void 0 : _f.message) || 'Unknown Error', { style: 'error' });
@@ -102,8 +106,8 @@ export class VerdocsAuth {
102
106
  this.submitting = true;
103
107
  try {
104
108
  this.submitting = false;
105
- const verificationResult = await verifyEmail(this.endpoint, { email: this.email, token: this.verificationCode });
106
- console.log('Verification result', verificationResult);
109
+ const verificationResult = await verifyEmail(this.tempAuthEndpoint, { email: this.email, token: this.verificationCode });
110
+ VerdocsToast('Thank you for verifying your email address.', { style: 'success' });
107
111
  this.completeLogin(verificationResult);
108
112
  }
109
113
  catch (e) {
@@ -114,18 +118,19 @@ export class VerdocsAuth {
114
118
  }
115
119
  completeLogin(result) {
116
120
  var _a;
121
+ this.clearForms();
122
+ this.tempAuthEndpoint.clearSession();
117
123
  this.endpoint.setToken(result.access_token);
118
- this.activeSession = this.endpoint.session;
119
- this.isAuthenticated = true;
120
124
  (_a = this.authenticated) === null || _a === void 0 ? void 0 : _a.emit({ authenticated: true, session: this.endpoint.session });
121
125
  }
122
126
  async loginAndCheckVerification() {
127
+ var _a;
123
128
  this.submitting = true;
124
129
  this.tempAuthEndpoint.clearSession();
125
130
  try {
126
131
  this.submitting = false;
127
- const authResult = await authenticate(this.endpoint, { username: this.email, password: this.password, grant_type: 'password' });
128
- console.log('[AUTH] Authenticated', authResult.access_token);
132
+ const authResult = await authenticate(this.tempAuthEndpoint, { username: this.email, password: this.password, grant_type: 'password' });
133
+ console.log('[AUTH] Authenticated, checking email verification');
129
134
  this.tempAuthEndpoint.setToken(authResult.access_token);
130
135
  const user = await getMyUser(this.tempAuthEndpoint);
131
136
  console.log('Got user', user);
@@ -140,14 +145,29 @@ export class VerdocsAuth {
140
145
  }
141
146
  catch (e) {
142
147
  this.submitting = false;
148
+ console.log('[AUTH] Auth failure', ((_a = e.response) === null || _a === void 0 ? void 0 : _a.data) || e);
149
+ VerdocsToast('Login failed. Please check your credentials and try again.', { style: 'error' });
143
150
  }
144
151
  }
152
+ clearForms() {
153
+ this.submitting = false;
154
+ this.resendDisabled = false;
155
+ this.email = '';
156
+ this.password = '';
157
+ this.confirmpass = '';
158
+ this.verificationCode = '';
159
+ this.first_name = '';
160
+ this.last_name = '';
161
+ this.org_name = '';
162
+ }
145
163
  handleLogout() {
146
164
  var _a;
165
+ console.log('logging out');
147
166
  this.endpoint.clearSession();
148
167
  this.tempAuthEndpoint.clearSession();
149
- this.isAuthenticated = false;
150
168
  (_a = this.authenticated) === null || _a === void 0 ? void 0 : _a.emit({ authenticated: false, session: null });
169
+ this.clearForms();
170
+ this.displayMode = 'login';
151
171
  }
152
172
  handleResend() {
153
173
  // Avoid the user just click-spamming this pathway. The server rate-limits this anyway so it's not a
@@ -160,10 +180,11 @@ export class VerdocsAuth {
160
180
  resendVerification(this.tempAuthEndpoint)
161
181
  .then(r => {
162
182
  console.log('[AUTH] Verification request resent', r);
163
- VerdocsToast('Please check your email for a message with verification instructions.', { style: 'info' });
183
+ VerdocsToast('Please check your email for a verification code.', { style: 'info' });
164
184
  })
165
185
  .catch((e) => {
166
186
  console.log('[AUTH] Unable to resend verification', e);
187
+ VerdocsToast('Unable to resend code. Please try again later.', { style: 'error' });
167
188
  });
168
189
  }
169
190
  async handleReset() {
@@ -185,20 +206,15 @@ export class VerdocsAuth {
185
206
  if (!this.visible) {
186
207
  return h("div", { style: { display: 'none' } }, "Authenticated");
187
208
  }
188
- if (this.isAuthenticated) {
209
+ if (this.endpoint.session) {
189
210
  return (h("verdocs-button", { label: "Sign Out", disabled: this.submitting, onClick: () => this.handleLogout(), style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }));
190
211
  }
191
212
  if (this.displayMode === 'signup') {
192
- const invalid = this.submitting || !this.first_name || !this.last_name || !this.email || !this.password || !this.org_name;
193
- return (h("div", { class: "form" }, h("a", { href: "https://verdocs.com/en/" }, h("img", { src: this.logo, alt: "Verdocs Logo", class: "logo" })), h("h3", null, "Sign up for a free account"), h("h5", null, "Already have an account?", h("verdocs-button", { label: "Log In", variant: "text", onClick: () => (this.displayMode = 'login'), disabled: this.submitting })), h("form", { onSubmit: () => this.handleSignup() }, h("div", { style: { display: 'flex', flexDirection: 'row', columnGap: '20px' } }, h("verdocs-text-input", { label: "First Name", autocomplete: "first", required: true, value: this.first_name, onInput: (e) => (this.first_name = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Last Name", autocomplete: "last", required: true, value: this.last_name, onInput: (e) => (this.last_name = e.target.value), disabled: this.submitting })), h("verdocs-text-input", { label: "Email Address", autocomplete: "email", required: true, value: this.email, onInput: (e) => (this.email = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Password", type: "password", required: true, autocomplete: "current-password", value: this.password, onInput: (e) => (this.password = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Organization Name", autocomplete: "org", required: true, value: this.org_name, onInput: (e) => (this.org_name = e.target.value), disabled: this.submitting, style: { flex: '1' } }), h("div", { style: { marginTop: '30px' } }), h("verdocs-button", { label: "Next", disabled: invalid, onClick: () => this.handleSignup(), style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }))));
213
+ const invalid = this.submitting || !this.first_name || !this.last_name || !this.email || !this.password || !this.confirmpass || !this.org_name;
214
+ return (h("div", { class: "form" }, h("a", { href: "https://verdocs.com/en/" }, h("img", { src: this.logo, alt: "Verdocs Logo", class: "logo" })), h("h3", null, "Sign up for a free account"), h("h5", null, "Already have an account?", h("verdocs-button", { label: "Log In", variant: "text", onClick: () => (this.displayMode = 'login'), disabled: this.submitting })), h("form", { onSubmit: () => this.handleSignup() }, h("div", { style: { display: 'flex', flexDirection: 'row', columnGap: '20px' } }, h("verdocs-text-input", { label: "First Name", autocomplete: "first", required: true, value: this.first_name, onInput: (e) => (this.first_name = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Last Name", autocomplete: "last", required: true, value: this.last_name, onInput: (e) => (this.last_name = e.target.value), disabled: this.submitting })), h("verdocs-text-input", { label: "Email Address", autocomplete: "email", required: true, value: this.email, onInput: (e) => (this.email = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Password", type: "password", required: true, autocomplete: "new-password", value: this.password, onInput: (e) => (this.password = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Confirm Password", type: "password", required: true, autocomplete: "off", value: this.confirmpass, onInput: (e) => (this.confirmpass = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Organization Name", autocomplete: "org", required: true, value: this.org_name, onInput: (e) => (this.org_name = e.target.value), disabled: this.submitting, style: { flex: '1' } }), h("div", { style: { marginTop: '30px' } }), h("verdocs-button", { label: "Next", disabled: invalid, onClick: invalid ? () => { } : () => this.handleSignup(), style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }))));
194
215
  }
195
216
  if (this.displayMode === 'verify') {
196
- return (h("form", { onSubmit: () => this.handleSignup() }, h("p", null, "Please check your e-mail inbox for a verification code and follow the instructions provided."), h("p", null, h("em", null, "Verification messages may take up to 1 hour to arrive. If you do not receive the invitation, ", h("a", { href: "#" }, "Click Here"), " to resend it. Be sure to check your spam folder.")), h("verdocs-text-input", { label: "Verification Code", required: true, value: this.verificationCode, onInput: (e) => (this.verificationCode = e.target.value), disabled: this.submitting }), h("div", { style: { display: 'flex', flexDirection: 'row', gap: '20px' } }, h("verdocs-button", { label: "Verify", disabled: this.submitting, onClick: () => this.handleVerification(), style: { display: 'flex', justifyContent: 'center', margin: '10px auto 0' } }), h("verdocs-button", { variant: "outline", label: "Resend Code", disabled: this.resendDisabled, onClick: () => this.handleResend() }), h("verdocs-button", { label: "Sign Out", variant: "text", disabled: this.submitting, onClick: () => {
197
- this.tempAuthEndpoint.clearSession();
198
- this.email = '';
199
- this.password = '';
200
- this.displayMode = 'login';
201
- } }))));
217
+ return (h("div", { class: "form" }, h("form", { onSubmit: () => this.handleVerification() }, h("p", null, "Please check your e-mail inbox for a verification code and enter it below."), h("verdocs-text-input", { label: "Verification Code", required: true, value: this.verificationCode, onInput: (e) => (this.verificationCode = e.target.value), disabled: this.submitting }), h("div", { class: "buttons" }, h("verdocs-button", { label: "Sign Out", variant: "outline", disabled: this.submitting, onClick: () => this.handleLogout() }), h("verdocs-button", { label: "Verify", disabled: this.submitting || !this.verificationCode || this.verificationCode.length !== 6, onClick: () => this.handleVerification() })), h("div", { class: "buttons" }, h("verdocs-button", { variant: "text", label: "Resend Code", disabled: this.resendDisabled || this.submitting, onClick: () => this.handleResend() })))));
202
218
  }
203
219
  if (this.displayMode === 'forgot') {
204
220
  return (h("div", { class: "form" }, h("a", { href: "https://verdocs.com/en/" }, h("img", { src: this.logo, alt: "Verdocs Logo", class: "logo" })), h("h3", null, "Forgot your password?"), h("p", null, "Enter your e-mail address below, and reset instructions will be sent to your Inbox. Please allow up to 15 minutes to arrive. Check your spam folder if you do not receive the message."), h("form", { onSubmit: () => this.handleSignup() }, h("verdocs-text-input", { label: "Email Address", autocomplete: "email", required: true, value: this.email, onInput: (e) => (this.email = e.target.value), disabled: this.submitting }), h("div", { style: { marginTop: '30px' } }), h("div", { class: "buttons" }, h("verdocs-button", { label: "Cancel", variant: "outline", disabled: this.submitting, onClick: () => (this.displayMode = 'login') }), h("verdocs-button", { label: "Reset", disabled: this.submitting, onClick: () => this.handleReset() })))));
@@ -280,7 +296,6 @@ export class VerdocsAuth {
280
296
  }
281
297
  static get states() {
282
298
  return {
283
- "isAuthenticated": {},
284
299
  "displayMode": {},
285
300
  "org_name": {},
286
301
  "first_name": {},
@@ -288,8 +303,8 @@ export class VerdocsAuth {
288
303
  "email": {},
289
304
  "verificationCode": {},
290
305
  "password": {},
306
+ "confirmpass": {},
291
307
  "submitting": {},
292
- "activeSession": {},
293
308
  "resendDisabled": {}
294
309
  };
295
310
  }
@@ -5,7 +5,7 @@ export class VerdocsSearch {
5
5
  this.endpoint = VerdocsEndpoint.getDefault();
6
6
  }
7
7
  render() {
8
- return (h("div", { key: '5494b903b38da3f8695866720032ae5664885e5a', class: "container" }, h("verdocs-search-box", { key: '2985fc2bbe16dfe08f400cabb2299f5732ef2967', endpoint: this.endpoint }), h("div", { key: '564828ab1a9fa57b3e2555441862cd4fcd80fbf0', class: "boxes" }, h("verdocs-search-activity", { key: 'f7c560b1e8c9cfc394133e317b894c8d5e3b7f8b', type: "recent", endpoint: this.endpoint }), h("verdocs-search-activity", { key: '1faf9b5b1ff51c9654678738448bf4be85b1d58c', type: "saved", endpoint: this.endpoint }), h("verdocs-search-activity", { key: '7763f2600598f258ba21003e89b3b709f07448c6', type: "starred", endpoint: this.endpoint }), h("verdocs-quick-functions", { key: '4ef3c0faaee2cb381cef414b558c8b69b7f32a75', endpoint: this.endpoint }))));
8
+ return (h("div", { key: '200d955b8750bfb853a491a39d2614f65c3dae2e', class: "container" }, h("verdocs-search-box", { key: '55db0748ab0102d71235903b1c668587e45ad527', endpoint: this.endpoint }), h("div", { key: '88ca9f594578f71b8abfb1fcbd1e31d455bcfb46', class: "boxes" }, h("verdocs-search-activity", { key: '7d95bd072f011865207fc0365e18d82b7875fd6a', type: "recent", endpoint: this.endpoint }), h("verdocs-search-activity", { key: 'f2f364ddb7347b7479aa5fd54d2519f7f96628ac', type: "saved", endpoint: this.endpoint }), h("verdocs-search-activity", { key: 'd504730b955a6c14cdf5d77eba96d3bb35eaf876', type: "starred", endpoint: this.endpoint }), h("verdocs-quick-functions", { key: 'dd543a416a6aab58e7566e320a20ea73f0313bce', endpoint: this.endpoint }))));
9
9
  }
10
10
  static get is() { return "verdocs-search"; }
11
11
  static get originalStyleUrls() {
@@ -75,7 +75,7 @@ export class VerdocsEnvelopeDocumentPage {
75
75
  }
76
76
  render() {
77
77
  const height = `${this.renderedHeight}px`;
78
- return (h(Host, { key: '0d7e99a76f94df20aa1245b384a50e51daf8498b', id: `${this.containerId}`, style: { height, flex: `0 0 ${height}` } }, this.layers.map(layer => layer.type === 'div' ? (h("div", { class: "verdocs-envelope-document-page-layer", id: `${this.containerId}-${layer.name}`, style: { height } })) : this.pageDisplayUri ? (h("img", { class: "verdocs-envelope-document-page-layer img", id: `${this.containerId}-${layer.name}`, src: this.pageDisplayUri, alt: `Page ${this.pageNumber}`, "aria-hidden": true, loading: "lazy", onLoad: (e) => {
78
+ return (h(Host, { key: '1626cbea713462254f8d518479181a39156fd599', id: `${this.containerId}`, style: { height, flex: `0 0 ${height}` } }, this.layers.map(layer => layer.type === 'div' ? (h("div", { class: "verdocs-envelope-document-page-layer", id: `${this.containerId}-${layer.name}`, style: { height } })) : this.pageDisplayUri ? (h("img", { class: "verdocs-envelope-document-page-layer img", id: `${this.containerId}-${layer.name}`, src: this.pageDisplayUri, alt: `Page ${this.pageNumber}`, "aria-hidden": true, loading: "lazy", onLoad: (e) => {
79
79
  // Note that all we really care about is the aspect ratio. We track the natural Width and Height but they aren't really that
80
80
  // useful as individual values. The image will already have been scaled down to fit a DIV for display (100%, auto height).
81
81
  // Builder places fields offset into the rendered display area, not the original document's dimensions. So its X/Y values
@@ -191,18 +191,18 @@ export class VerdocsEnvelopesList {
191
191
  });
192
192
  }
193
193
  render() {
194
- return (h(Host, { key: 'd4376bc5804b00acaf916e9c8b2a7ada6136d815' }, h("div", { key: 'cc459ff3e86b3ff69f44c0183760cffdcc66ce05', class: "header" }, h("div", { key: '0fe7ea1fd4c72069c7769125c1d85f97ccca4c68', class: "filter" }, h("verdocs-text-input", { key: 'acf0938c03d4cd334c1aa55e7175e1ee32b7b839', id: "verdocs-filter-name", value: this.match, clearable: true, autocomplete: "off", placeholder: "Filter by Name, Recipient, or Field...", onFocusout: (e) => {
194
+ return (h(Host, { key: 'c97d8d4415fb171c1335d3fbef9a885329740613' }, h("div", { key: 'dc0117f6476648985fdad07525e3c10c0a4542d3', class: "header" }, h("div", { key: 'ebd6521d3e9afd5ff9883829c7f66c55f31e7659', class: "filter" }, h("verdocs-text-input", { key: 'a5c15206146898551ac7ec9e22385335d1215d0a', id: "verdocs-filter-name", value: this.match, clearable: true, autocomplete: "off", placeholder: "Filter by Name, Recipient, or Field...", onFocusout: (e) => {
195
195
  var _a;
196
196
  // We don't locally filter envelopes because there are too many fields to match against efficiently.
197
197
  this.match = e.target.value.trim();
198
198
  (_a = this.changeMatch) === null || _a === void 0 ? void 0 : _a.emit(this.match);
199
- } })), h("verdocs-quick-filter", { key: '3eb1c2303641b9d40d062be7f3cd284d85a964f8', label: "View", value: this.view, options: ViewFilters, onOptionSelected: e => {
199
+ } })), h("verdocs-quick-filter", { key: '497b419b0789a338264523b52e6c2f15de6d02fe', label: "View", value: this.view, options: ViewFilters, onOptionSelected: e => {
200
200
  this.view = e.detail.value;
201
- } }), this.view === 'all' && (h("verdocs-quick-filter", { key: 'eb998a048a18e45f0dc7285ccaebde3e68144197', label: "Status", value: this.status, options: StatusFilters, onOptionSelected: e => {
201
+ } }), this.view === 'all' && (h("verdocs-quick-filter", { key: 'ca4c1472e25cf458699a5b3cbd7bd55156938a59', label: "Status", value: this.status, options: StatusFilters, onOptionSelected: e => {
202
202
  this.status = e.detail.value;
203
- } })), this.view === 'all' && (h("verdocs-quick-filter", { key: 'cd05ac9a66127ccd23bbadb16e5bfa154b2e97c2', label: "Sort By", value: this.sort, options: SortFilters, onOptionSelected: e => {
203
+ } })), this.view === 'all' && (h("verdocs-quick-filter", { key: '232cacdc7d067961da8d1c9482d07c6e76b84d38', label: "Sort By", value: this.sort, options: SortFilters, onOptionSelected: e => {
204
204
  this.sort = e.detail.value;
205
- } })), this.loading && h("verdocs-spinner", { key: '7531bf499f830af651c3b9507ca9bd9dbcbec236', mode: "dark", size: 24 }), h("div", { key: '43abd416e136338f3c6189e086a461e0f9ba160b', style: { display: 'flex', flex: '1' } }), this.selectedEnvelopes.length > 0 && h("verdocs-button", { key: 'c54021bbf6ea0bddf03b51f31444c693e25f6a1a', label: `Download (${this.selectedEnvelopes.length})`, onClick: () => this.handleDownload() })), this.envelopes.map(envelope => {
205
+ } })), this.loading && h("verdocs-spinner", { key: '44c39036f7ac8358a9c8b658e533c393413dc4db', mode: "dark", size: 24 }), h("div", { key: 'f5b8246bf8cdfa9737b8675b59e44fc45df3cc06', style: { display: 'flex', flex: '1' } }), this.selectedEnvelopes.length > 0 && h("verdocs-button", { key: '9c6f32a107c15af7173ae4fd2ac16265bcc8be6f', label: `Download (${this.selectedEnvelopes.length})`, onClick: () => this.handleDownload() })), this.envelopes.map(envelope => {
206
206
  var _a;
207
207
  const recipientsWithActions = getRecipientsWithActions(envelope);
208
208
  const userCanCancel = userCanCancelEnvelope(this.endpoint.profile, envelope);
@@ -243,7 +243,7 @@ export class VerdocsEnvelopesList {
243
243
  break;
244
244
  }
245
245
  } }))));
246
- }), !this.initiallyLoaded && (h("div", { key: '7d72106e9315ef78e1e310da22744126599b8017', style: { width: '100%' } }, integerSequence(0, this.rowsPerPage).map(() => (h("div", { class: "envelope-placeholder" }))))), this.initiallyLoaded && !this.envelopes.length && h("div", { key: 'b2228f90e7414cace475ab71854a690112b696b3', class: "empty-text" }, "No matching envelopes found. Please adjust your filters and try again."), this.initiallyLoaded && this.envelopes.length && this.showPagination ? (h("div", { style: { marginTop: '20px' } }, h("verdocs-pagination", { selectedPage: this.selectedPage, perPage: this.rowsPerPage, itemCount: this.count, onSelectPage: e => {
246
+ }), !this.initiallyLoaded && (h("div", { key: '3008dcd8a557d2f47041455cf9fa554bbcc0b229', style: { width: '100%' } }, integerSequence(0, this.rowsPerPage).map(() => (h("div", { class: "envelope-placeholder" }))))), this.initiallyLoaded && !this.envelopes.length && h("div", { key: 'f1e6ffe23cd5c2d9cf18bafadbf0b61e70984f4d', class: "empty-text" }, "No matching envelopes found. Please adjust your filters and try again."), this.initiallyLoaded && this.envelopes.length && this.showPagination ? (h("div", { style: { marginTop: '20px' } }, h("verdocs-pagination", { selectedPage: this.selectedPage, perPage: this.rowsPerPage, itemCount: this.count, onSelectPage: e => {
247
247
  this.selectedPage = e.detail.selectedPage;
248
248
  } }))) : (h("div", null))));
249
249
  }
@@ -238,11 +238,11 @@ export class VerdocsStatusIndicator {
238
238
  }
239
239
  const icon = this.getStatusIcon(status);
240
240
  const statusMessage = this.getStatusMessage(status);
241
- return (h(Host, { key: 'fcc8a478464db1633c71b87cc0b3ed19026c20c8', ref: el => (this.summaryComponent = el), class: `${this.theme} ${this.size} ${this.envelope ? 'has-document' : ''}`, "aria-label": "Click to View Details", onClick: e => {
241
+ return (h(Host, { key: '2f8dd56b30f867568973f33f2459fe8492fe046c', ref: el => (this.summaryComponent = el), class: `${this.theme} ${this.size} ${this.envelope ? 'has-document' : ''}`, "aria-label": "Click to View Details", onClick: e => {
242
242
  e.stopPropagation();
243
243
  e.preventDefault();
244
244
  this.envelope && this.toggleDropdown();
245
- }, onBlur: e => this.envelope && this.handleHideDropdown(e) }, h("span", { key: 'c025fd8df675cbbf5709a4fe5657052514100533', class: "icon", innerHTML: icon }), h("span", { key: '7cdb668dce2dd652f472350fb045acff590a8ed6', class: "content" }, statusMessage), h("div", { key: 'a10adafb40c56cad07bf0944671620c1425c6e84', class: "detail-panel", ref: el => (this.detailPanel = el) }, h("div", { key: 'c05c0f501964b5ee5050d6314e52d539738993fe', id: `${this.containerId}` }), this.recipientStatusIcons.map(icon => (h("span", { innerHTML: icon.icon, style: { position: 'absolute', top: `${icon.y}px`, left: `${icon.x}px` } }))))));
245
+ }, onBlur: e => this.envelope && this.handleHideDropdown(e) }, h("span", { key: '19a3fe86138e330435d14d4c8ca9db6021bb7bdc', class: "icon", innerHTML: icon }), h("span", { key: 'f7599f2ac78da17f85348dd67330abb3c6bd071c', class: "content" }, statusMessage), h("div", { key: '57be3fce89a8345d37f4599439e7641cbad6dd07', class: "detail-panel", ref: el => (this.detailPanel = el) }, h("div", { key: 'f1962e7251f027ddf9905516ba4136543d382197', id: `${this.containerId}` }), this.recipientStatusIcons.map(icon => (h("span", { innerHTML: icon.icon, style: { position: 'absolute', top: `${icon.y}px`, left: `${icon.x}px` } }))))));
246
246
  }
247
247
  static get is() { return "verdocs-status-indicator"; }
248
248
  static get originalStyleUrls() {
@@ -12,7 +12,7 @@ export class VerdocsTemplateCard {
12
12
  }
13
13
  render() {
14
14
  var _a, _b, _c, _d;
15
- return (h(Host, { key: 'b5bcce45639a644e66e263a09329e8f345bb51e4' }, h("span", { key: 'db094c3a8e429af167b56da7df97cdb0d35f5ff7', class: "name" }, this.template.name), h("span", { key: '153ce6c4aab0beb2cd5f012bbe58b8d4fc700b1f', class: "org-name" }, ((_a = this.template.organization) === null || _a === void 0 ? void 0 : _a.name) || 'Public'), h("hr", { key: '709fbc0c993eb1b54ff6568fc4c639aea696d6f6' }), h("div", { key: 'd7d1bda1d9e6ac5aab6cae62503fe5dfa2e040ca', class: "controls" }, h("div", { key: '5dddc88cea131c3bee2d4fa9a3e2f1522fe3593a', class: "control" }, h("span", { key: 'e114a05a3cdf3176aa453ca845f7dc2ff1f2b7bb', class: "icon", innerHTML: StarIcon }), h("span", { key: '3a2ccb4728c0129fb182efc3e763075e8a923768', class: "value" }, this.template.star_counter)), h("div", { key: 'a9bfe80a726cfeb90338d0add15f99acd5ca2cae', class: "control secondary" }, h("span", { key: '67b8a3b64f5d40a79e35cc2ca229123c90dad701', class: "icon", innerHTML: PagesIcon }), h("span", { key: '3459e3e3dac0596876ec2905b6668813d986aee9', class: "value" }, ((_d = (_c = (_b = this.template) === null || _b === void 0 ? void 0 : _b.documents) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.pages) || 1)), h("div", { key: 'f3a2d438d3b748061cfcf16028e352ca6337eb04', class: "control secondary" }, h("span", { key: '17d0a3ad7050436ccda2da74120c2348fcfa4fd7', class: "icon", innerHTML: EmailIcon }), h("span", { key: '6737878e795f633feb30ae0d28fc4b0c90f122eb', class: "value" }, this.template.counter)), h("span", { key: 'cbfde7c6ac4860d9b0720b458bf210194c25ebe0', class: "additional-controls", innerHTML: ActionsIcon }))));
15
+ return (h(Host, { key: '92db1527b29db1accce1236ad170c1d071bd9af9' }, h("span", { key: '6df84f4e3f47f2a3bde4de1aaeb55cfdaaf24cec', class: "name" }, this.template.name), h("span", { key: '6be1cd61a1496fa579f25ff06fcd5295149aada1', class: "org-name" }, ((_a = this.template.organization) === null || _a === void 0 ? void 0 : _a.name) || 'Public'), h("hr", { key: '8f95b065445cf18ec71b2976c5c75d7335857f1a' }), h("div", { key: 'cce4e78b58f924de6b68bcf947af20dbed74ae15', class: "controls" }, h("div", { key: '124cf87ac1ab5f25d505004ebba55c0ad00d3b34', class: "control" }, h("span", { key: 'b39885d89f97c7f29077f5a0e8e943c2fd74e8a0', class: "icon", innerHTML: StarIcon }), h("span", { key: '7fa8e32525ed221d9907e658ca6f982fed16dba6', class: "value" }, this.template.star_counter)), h("div", { key: '37fb74c5e9302e8c310e2052b725183bac587c3d', class: "control secondary" }, h("span", { key: 'bef0ebc42c5f9062bf67d86a097dd0d4a8e03e11', class: "icon", innerHTML: PagesIcon }), h("span", { key: '3763e7ec4ac4e73ce712c460101223d6f8663b2a', class: "value" }, ((_d = (_c = (_b = this.template) === null || _b === void 0 ? void 0 : _b.documents) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.pages) || 1)), h("div", { key: 'e4f9d35db361036a46297e82ecf1528058e214bc', class: "control secondary" }, h("span", { key: '985da1d76dfeecb4e57e440fbf788c18453696a1', class: "icon", innerHTML: EmailIcon }), h("span", { key: 'f098866929e19bf47e30a660aba05a3e508561ed', class: "value" }, this.template.counter)), h("span", { key: 'c742e5c6e1087a9b0f1a8b037476759274838c42', class: "additional-controls", innerHTML: ActionsIcon }))));
16
16
  }
17
17
  static get is() { return "verdocs-template-card"; }
18
18
  static get originalStyleUrls() {
@@ -93,7 +93,7 @@ export class VerdocsTemplateDocumentPage {
93
93
  }
94
94
  render() {
95
95
  const height = `${this.renderedHeight}px`;
96
- return (h(Host, { key: 'a332323d7adc14d79884131c20d41dfddcb03ac5', id: `${this.containerId}`, style: { height, flex: `0 0 ${height}` } }, this.layers.map(layer => layer.type === 'div' ? (h("div", { class: "verdocs-template-document-page-layer", id: `${this.containerId}-${layer.name}`, style: { height } }, layer.name === 'controls' &&
96
+ return (h(Host, { key: '6fabe54a0840385228e13a0e61f7748d41fbcf17', id: `${this.containerId}`, style: { height, flex: `0 0 ${height}` } }, this.layers.map(layer => layer.type === 'div' ? (h("div", { class: "verdocs-template-document-page-layer", id: `${this.containerId}-${layer.name}`, style: { height } }, layer.name === 'controls' &&
97
97
  this.fieldStore
98
98
  .get('fields')
99
99
  .filter(field => field && field.page === this.pageNumber)
@@ -118,31 +118,31 @@ export class VerdocsTemplateRoleProperties {
118
118
  }
119
119
  render() {
120
120
  const hasFields = this.fieldStore.get('fields').some(field => field.role_name === this.roleName);
121
- return (h(Host, { key: 'd3988edb91247f2dd580645350c7c5641d21c61a' }, h("div", { key: '912555974fc01f6b5dbd37173217a17e1e6cc756', class: "background-overlay", onClick: e => this.handleCancel(e) }, h("div", { key: 'e6d8172451f3fe78fd4b932039b15615f4b4c843', class: "dialog" }, h("form", { key: '0d0519144c0de4813a664a2345a85a7da15606c9', onSubmit: e => e.preventDefault(), onClick: e => e.stopPropagation(), autocomplete: "off" }, h("verdocs-text-input", { key: '9169dd76bf19c5f809b78bdef9a20511d21cbdcc', id: "verdocs-role-name", label: "Role Name", value: this.name, autocomplete: "off", disabled: hasFields, helpText: hasFields
121
+ return (h(Host, { key: 'c2728e2fb47306d99d3eebaaa38130322d37ad64' }, h("div", { key: 'a329fa189219f99c747e915ee2f0a41de978474f', class: "background-overlay", onClick: e => this.handleCancel(e) }, h("div", { key: 'a0325d8949c173d73ba2a48af5924d015e746266', class: "dialog" }, h("form", { key: '378e17dc270ae28779557793f6669143c86a41a3', onSubmit: e => e.preventDefault(), onClick: e => e.stopPropagation(), autocomplete: "off" }, h("verdocs-text-input", { key: '20f8de0856c8e5c847b7e1852edc437a8c6427fb', id: "verdocs-role-name", label: "Role Name", value: this.name, autocomplete: "off", disabled: hasFields, helpText: hasFields
122
122
  ? 'This role has fields assigned and can no longer be renamed.'
123
123
  : 'A unique name to identify the role in the workflow. Submitted data will also be tagged with this value.', placeholder: "Role Name...", onInput: (e) => {
124
124
  this.name = e.target.value;
125
125
  this.dirty = true;
126
- } }), h("div", { key: 'fba0622ed18d69ae13c2dc6dbc4f3c2230fb72d5', class: "row" }, h("div", { key: 'db653736e1e1b32a58ea8df1d5f9f58928ca7047', class: "input-label" }, "Type:"), h("verdocs-select-input", { key: '7199410b3a1598e9fc74b6bcd42b58458e7c0ad7', value: this.type, options: [
126
+ } }), h("div", { key: '35310c43c72be59031d74995d5e4e08fd74b34bd', class: "row" }, h("div", { key: '4b47e8595ad1119d4027049b56acd43443a4b09a', class: "input-label" }, "Type:"), h("verdocs-select-input", { key: '97f18bfb8052d6f0690bf2d570a42a0a604556b9', value: this.type, options: [
127
127
  { label: 'Signer', value: 'signer' },
128
128
  { label: 'CC', value: 'cc' },
129
129
  { label: 'Approver', value: 'approver' },
130
130
  ], onInput: (e) => {
131
131
  this.type = e.target.value;
132
132
  this.dirty = true;
133
- } }), h("verdocs-help-icon", { key: '8e553f8d63d8d57022d449b9db08d8ab0bbdd48c', text: "Most participants are Signers. CC roles are notified when documents are signed, but have no other actions. Approvers get notified when signing is completed to perform a final review." })), h("verdocs-text-input", { key: 'da8fae069e9a65a8fbe41c926a4aabc2af0816f2', id: "verdocs-recipient-email", label: "Full Name", value: this.full_name, autocomplete: "off", helpText: "The recipient's full name, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.", placeholder: "Full Name...", onInput: (e) => {
133
+ } }), h("verdocs-help-icon", { key: '3f4059c1a1232aa08449e4518ccd9473066430df', text: "Most participants are Signers. CC roles are notified when documents are signed, but have no other actions. Approvers get notified when signing is completed to perform a final review." })), h("verdocs-text-input", { key: 'df9c1439da6894608dad4ef81dddf21e2591115f', id: "verdocs-recipient-email", label: "Full Name", value: this.full_name, autocomplete: "off", helpText: "The recipient's full name, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.", placeholder: "Full Name...", onInput: (e) => {
134
134
  this.full_name = e.target.value;
135
135
  this.dirty = true;
136
- } }), h("verdocs-text-input", { key: '5c2818a8b37c6fdef9dfd4a9a64bbb2c66216ca9', id: "verdocs-recipient-email", label: "Email", value: this.email, autocomplete: "off", helpText: "The recipient's email address, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.", placeholder: "Email Address...", onInput: (e) => {
136
+ } }), h("verdocs-text-input", { key: 'af0ac9644670cb4b3e5607eb75e6c0aa9746ed76', id: "verdocs-recipient-email", label: "Email", value: this.email, autocomplete: "off", helpText: "The recipient's email address, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.", placeholder: "Email Address...", onInput: (e) => {
137
137
  this.email = e.target.value;
138
138
  this.dirty = true;
139
- } }), h("verdocs-text-input", { key: '4230659800aac4470c96d411436434511a208015', id: "verdocs-recipient-phone", label: "Phone", value: this.phone, autocomplete: "off", helpText: "The recipient's phone number, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.", placeholder: "Phone Number...", onInput: (e) => {
139
+ } }), h("verdocs-text-input", { key: 'f7055746726c2d199beac4206847bc1534de5601', id: "verdocs-recipient-phone", label: "Phone", value: this.phone, autocomplete: "off", helpText: "The recipient's phone number, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.", placeholder: "Phone Number...", onInput: (e) => {
140
140
  this.phone = e.target.value;
141
141
  this.dirty = true;
142
- } }), h("div", { key: '2a675d0120b3cbeff8af790260578126d3cf46ce', class: "row" }, h("div", { key: '66c007c4d9ea713f5a399186e144d7445797765a', class: "input-label" }, "May Delegate:"), h("div", { key: 'ab88572b986a7c5def40a9c1e084fe3c62a766bf', class: "checkbox-wrapper" }, h("verdocs-checkbox", { key: 'b1ca8f96ffd71843beecdc349d86bf3d8cc35708', checked: this.delegator, onInput: (e) => {
142
+ } }), h("div", { key: '12903a2f12f8f750cecaf0332a69099f67b4d530', class: "row" }, h("div", { key: '9959973a48e154155cc6b5892ae81a5105d62d33', class: "input-label" }, "May Delegate:"), h("div", { key: '0dd8af27a2fd4cf6c8a641a39ea3332887b1f71a', class: "checkbox-wrapper" }, h("verdocs-checkbox", { key: '8a145a05207fc1cae42d5c3e4596c2d673ecc097', checked: this.delegator, onInput: (e) => {
143
143
  this.delegator = e.target.checked;
144
144
  this.dirty = true;
145
- } })), h("verdocs-help-icon", { key: 'de1d5f121299c133edcc8001a9b6a6b63ff9b739', text: "If enabled, this recipient may delegate their actions to another individual." })), h("div", { key: '79869b6fb38187967ca3550284e4d25f63884fd0', class: "buttons" }, h("button", { key: 'e58733c07c6793e2c454e5f68c5ffc8907cec1f1', class: "delete-button", disabled: this.dirty, onClick: e => this.handleDelete(e), innerHTML: TrashIcon }), h("div", { key: '55f4478946d4675a17055be652e19eb377ae5437', style: { flex: '1' } }), h("verdocs-button", { key: 'f67fa328ee71a14f0bd1ba049ffddf228841eb67', size: "small", variant: "outline", label: "Cancel", disabled: !this.dirty, onClick: e => this.handleCancel(e) }), h("verdocs-button", { key: '690bc539949328f6130e4d8da5db97ed1b355992', size: "small", label: "Save", disabled: !this.dirty, onClick: e => this.handleSave(e) })))))));
145
+ } })), h("verdocs-help-icon", { key: 'd725f8446967e2c145e0e5ecad8416ee7e368bc8', text: "If enabled, this recipient may delegate their actions to another individual." })), h("div", { key: 'eae241c53cc8213d5c14bb213b41923620e17be3', class: "buttons" }, h("button", { key: '5eb5792ff0f79aab12bcfbb20ffdf58d431f4103', class: "delete-button", disabled: this.dirty, onClick: e => this.handleDelete(e), innerHTML: TrashIcon }), h("div", { key: 'bca3f871c37e1a346d98620ee0fd1dd0dfce9917', style: { flex: '1' } }), h("verdocs-button", { key: 'b40fb1ff70cb3cce19b793f940fc0038d12490ea', size: "small", variant: "outline", label: "Cancel", disabled: !this.dirty, onClick: e => this.handleCancel(e) }), h("verdocs-button", { key: '51270815757b0fd6803d527ac3388f1e2af16b25', size: "small", label: "Save", disabled: !this.dirty, onClick: e => this.handleSave(e) })))))));
146
146
  }
147
147
  static get is() { return "verdocs-template-role-properties"; }
148
148
  static get originalStyleUrls() {
@@ -61,7 +61,7 @@ export class VerdocsTemplateSender {
61
61
  });
62
62
  }
63
63
  render() {
64
- return (h(Host, { key: '092c9e3593fffb0559c72fab66510070e73d7c05' }, h("div", { key: '666b71a674030a3541138d6dd07a04ec2f352e20', class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { key: 'fcabfd99d07d0f72a874fd2ff32a7f72cda51d86', class: "dialog" }, h("div", { key: '1098b307a0f787d282ae423f273f02231524598a', class: "options" }, h("div", { key: 'bb2bd6a5c6f338a955d0e38ddd72be127a908ea7', class: "option" }, h("verdocs-radio-button", { key: '47ef7fa0ea436b284f76f8507ecf66ff098a3021', name: "template-sender", value: 'everyone', checked: this.sender === 'everyone', onInput: () => this.handleSelectSetting('everyone') }), h("div", { key: '8dcc183312a85bf6bb0145a55933842951c859c4', class: "description" }, h("div", { key: 'c3e41eff5d8353846d5fe62e9739864743936d5d', class: "name" }, "Anyone on the Web"), h("verdocs-help-icon", { key: 'b3b965183887842c7f3434afc9602ca8d67de419', text: "Anyone can use this template. (Make its visibility is set to to 'Public' or 'Shared'.)" }))), h("div", { key: '4fa78b48a79fc3932a02553e9360fb656c735493', class: "option" }, h("verdocs-radio-button", { key: '40429f3fbaa48e0515d4f1e860d0a256df551fb4', name: "template-sender", value: 'everyone_as_creator', checked: this.sender === 'everyone_as_creator', onInput: () => this.handleSelectSetting('everyone_as_creator') }), h("div", { key: '5add2c44aac55f11094780c82ff6006b4b48ca8e', class: "description" }, h("div", { key: 'ac8e1c67ab3614b8e5dd3a255c0d71c1820ba83b', class: "name" }, "Anyone on the Web as me"), h("verdocs-help-icon", { key: '4d2172b0dcef9cd3e46095e8337aa3c1b8e06523', text: "Anyone can use this template on my behalf. (Make sure its visibility is set to 'Public' or 'Shared'.)" }))), h("div", { key: '36970f9e7c4be312447a36c4a63b470ea85cddf8', class: "option" }, h("verdocs-radio-button", { key: 'b2fd0896b2bee7243450d6a50cc65fe96e98ab20', name: "template-sender", value: 'organization_member', checked: this.sender === 'organization_member', onInput: () => this.handleSelectSetting('organization_member') }), h("div", { key: '0bbfeeaf609aa3106df12bf34ef778891e83d0df', class: "description" }, h("div", { key: 'bb62d9eece8db82b8ef071c0c24127086a89dccc', class: "name" }, "Anyone in my organization"), h("verdocs-help-icon", { key: '73d7fa4b6f4b4896d778f3fbc165de2d7b6b2c87', text: "Anyone in my organization can use this template. (Make sure its visibility is set to 'Shared')" }))), h("div", { key: 'e1eca6d0234cf0d01ee8d30690248eec07912d3c', class: "option" }, h("verdocs-radio-button", { key: 'f31029edc86697d113fc37f55c0a94bcc4a35f68', name: "template-sender", value: 'organization_member_as_creator', checked: this.sender === 'organization_member_as_creator', onInput: () => this.handleSelectSetting('organization_member_as_creator') }), h("div", { key: '5a0f46208920de20dd725f4e16c5de556260d7cb', class: "description" }, h("div", { key: '9bfd1c74d34afe93d4a0e11b0877ff7dadf19f83', class: "name" }, "Anyone in my organization as me"), h("verdocs-help-icon", { key: 'd72a7899414895b1637186c4f731be73cc786eb9', text: "Anyone in my organization can use this template on my behalf. (Make sure its visibility is set to to 'Shared'.)" }))), h("div", { key: '5e55d764e9040fb7b87e0456c2809286835b89e3', class: "option" }, h("verdocs-radio-button", { key: '2309a84ec1b4487619f932e8a2316f51c331a13d', name: "template-sender", value: 'creator', checked: this.sender === 'creator', onInput: () => this.handleSelectSetting('creator') }), h("div", { key: 'f3bd9236d0b692415c5a39687c35ba71cf245703', class: "description" }, h("div", { key: '8aa05e4b9f42d4febf3c3b28f53dec9de2e0c64d', class: "name" }, "Me"), h("verdocs-help-icon", { key: 'e79cb02b13641acd64983b91e8de6eb6284a8ee7', text: "Only I can use this template." })))), h("div", { key: 'd4b7c6ee528df1ee7f7ec952e80826a20c29ff6c', class: "buttons" }, h("verdocs-button", { key: '024ba9b87fc9131db993ecafd76105be0959df47', label: "Close", onClick: () => this.handleClose() }))))));
64
+ return (h(Host, { key: 'f8d8cca0bfceaf4770487a2013d8b4719236ddf4' }, h("div", { key: '2f3adaefa9ee3dcbac271ee02d76fa46bbe58e10', class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { key: '659f51292068e189d9c995db643fae5c2acb15b3', class: "dialog" }, h("div", { key: '3015a1be71fe71983fce44357433b5e2186c4946', class: "options" }, h("div", { key: 'ce818b1d25630a8f487fbaff0c5db38119a6f824', class: "option" }, h("verdocs-radio-button", { key: '8a4d98f6553248a88a024c1d024d3a4145a202ed', name: "template-sender", value: 'everyone', checked: this.sender === 'everyone', onInput: () => this.handleSelectSetting('everyone') }), h("div", { key: 'e2924ad4589dfcdca2ad342852f517f919e99914', class: "description" }, h("div", { key: '6bf123474dc857917dd84c971bb3e634eecc8868', class: "name" }, "Anyone on the Web"), h("verdocs-help-icon", { key: '53129fa609dcb99cf6f1ddc76867c09a90359973', text: "Anyone can use this template. (Make its visibility is set to to 'Public' or 'Shared'.)" }))), h("div", { key: '4b566084de0d35ade13b0d82354ddfab42fb4be2', class: "option" }, h("verdocs-radio-button", { key: '3704512d6d38faf3f275fb039a1c97cf2464b0e2', name: "template-sender", value: 'everyone_as_creator', checked: this.sender === 'everyone_as_creator', onInput: () => this.handleSelectSetting('everyone_as_creator') }), h("div", { key: '8dd4ffbcc1727fb28bec4e404dcc1a4a7cec9431', class: "description" }, h("div", { key: '2c4093c5ecff6192c6ec94ffa0a32ae516a4d13d', class: "name" }, "Anyone on the Web as me"), h("verdocs-help-icon", { key: '73b99113cd11ac40ef3784fe23b523e54f2a8d5a', text: "Anyone can use this template on my behalf. (Make sure its visibility is set to 'Public' or 'Shared'.)" }))), h("div", { key: '528f64ff348386c14b0cea7d4983bccd664a0645', class: "option" }, h("verdocs-radio-button", { key: 'f1538d9c86ad7f2dc337a42f53f49f86faa3a469', name: "template-sender", value: 'organization_member', checked: this.sender === 'organization_member', onInput: () => this.handleSelectSetting('organization_member') }), h("div", { key: 'ddd5129726d3b2a0786341c2df2f8012e783d643', class: "description" }, h("div", { key: '449c1a5eb124b7006f319f96ff617d6480cab3a9', class: "name" }, "Anyone in my organization"), h("verdocs-help-icon", { key: '8d01e0fba4bfb8b5d12390b5c138b19d6362a055', text: "Anyone in my organization can use this template. (Make sure its visibility is set to 'Shared')" }))), h("div", { key: '76f686a2976749ffa02be5b95d9d61ded315714c', class: "option" }, h("verdocs-radio-button", { key: '00c5b5d78a7c380665abc3157403f597cbcaabc9', name: "template-sender", value: 'organization_member_as_creator', checked: this.sender === 'organization_member_as_creator', onInput: () => this.handleSelectSetting('organization_member_as_creator') }), h("div", { key: '7eaf1cce0528f17359b19320ba0e10311ec34821', class: "description" }, h("div", { key: '4bd0b1b35504afa1c67566ac8cd589041958de41', class: "name" }, "Anyone in my organization as me"), h("verdocs-help-icon", { key: 'cfe825b414ef5a0c4ddd33e3de621629cc92149e', text: "Anyone in my organization can use this template on my behalf. (Make sure its visibility is set to to 'Shared'.)" }))), h("div", { key: 'f86771d023449f505a45f07b73e505a7c481bdf0', class: "option" }, h("verdocs-radio-button", { key: '039f5bb7b444f942fb609ad1ef5fda0d5f160083', name: "template-sender", value: 'creator', checked: this.sender === 'creator', onInput: () => this.handleSelectSetting('creator') }), h("div", { key: 'b7ecd4a8e68ac17e9ba116a6f8f2dcf84ff92c56', class: "description" }, h("div", { key: 'ca006222ed947daf96a22425fe7dbc1dd809aef5', class: "name" }, "Me"), h("verdocs-help-icon", { key: 'fec5c4aeb7285eaa3a22d238208e2072b17a14b0', text: "Only I can use this template." })))), h("div", { key: '1344c8e35ee75f17f5a035ba93e770958b1fcba0', class: "buttons" }, h("verdocs-button", { key: '6d2e2796fd3464440662e8dd5dba2ae273aab02e', label: "Close", onClick: () => this.handleClose() }))))));
65
65
  }
66
66
  static get is() { return "verdocs-template-sender"; }
67
67
  static get originalStyleUrls() {
@@ -38,7 +38,7 @@ export class VerdocsTemplateStar {
38
38
  });
39
39
  }
40
40
  render() {
41
- return (h(Host, { key: 'f72b055ab1619cc45511d468dd1b115509c59272' }, h("div", { key: 'dd925ee5060a57ab6a89d4045bef645035f1c731', class: `star ${this.updating ? 'updating' : ''}`, innerHTML: this.template.star_counter ? SolidStarIcon : OutlineStarIcon, onClick: e => this.toggle(e) }), h("div", { key: 'f0003f728db6cee4cd17eb7025e2a82f768fa8c3', class: "count" }, this.template.star_counter || '--')));
41
+ return (h(Host, { key: '96d245ead9fb7891ab0f497b37b306b379a20abc' }, h("div", { key: '67ceace21c9957fbb27a05a527ef1b7847ac33a9', class: `star ${this.updating ? 'updating' : ''}`, innerHTML: this.template.star_counter ? SolidStarIcon : OutlineStarIcon, onClick: e => this.toggle(e) }), h("div", { key: '3a76f28df10bb79ffb87ca8a046a6ec4e04dc49b', class: "count" }, this.template.star_counter || '--')));
42
42
  }
43
43
  static get is() { return "verdocs-template-star"; }
44
44
  static get originalStyleUrls() {
@@ -8,7 +8,7 @@ export class VerdocsTemplateTags {
8
8
  }
9
9
  render() {
10
10
  var _a;
11
- return (h(Host, { key: '537d0786deea45df3bc938eabb4db09b3532d5cb' }, (_a = this.tags) === null || _a === void 0 ? void 0 : _a.map(tag => (h("span", null, tag)))));
11
+ return (h(Host, { key: 'e754a66c64713a7b01c072b1becd919d9768ac66' }, (_a = this.tags) === null || _a === void 0 ? void 0 : _a.map(tag => (h("span", null, tag)))));
12
12
  }
13
13
  static get is() { return "verdocs-template-tags"; }
14
14
  static get originalStyleUrls() {
@@ -44,7 +44,7 @@ export const VerdocsToast = (text, config = {}) => {
44
44
  const icon = Icons[style] || Icons.default;
45
45
  const toastBody = `
46
46
  ${icon}
47
- <div class="verdocs-toast-text" style="padding: 12px 12px 12px 0;">${text}</div>
47
+ <div class="verdocs-toast-text" style="padding: 12px 12px 12px 0; display: flex; flex: 1">${text}</div>
48
48
  <div class="verdocs-toast-close" style="padding: 12px 10px; background: rgba(0, 0, 0, 0.2); cursor: pointer;">✕</div>
49
49
  `;
50
50
  const toast = document.createElement('div');
@@ -52,7 +52,7 @@ export const VerdocsToast = (text, config = {}) => {
52
52
  toast.innerHTML = toastBody;
53
53
  toast.style.cssText = `
54
54
  display: flex; flex-direction: row; gap: 10px; align-items: center;
55
- position: fixed; top: 20px; right: 20px; z-index: 2147483647; max-width: calc(50% - 20px);
55
+ position: fixed; top: 20px; right: 20px; z-index: 2147483647; width: 80%; max-width: calc(100% - 40px);
56
56
  color: #ffffff; background: ${color}; font-family: 'Barlow', sans-serif;
57
57
  border-radius: 2px; padding-left: 10px;
58
58
  box-shadow: 0 3px 7px 2px rgba(0, 0, 0, 0.12), 0 10px 36px -4px rgba(77, 96, 232, 0.3);`;
@@ -44,7 +44,7 @@ const VerdocsToast = (text, config = {}) => {
44
44
  const icon = Icons[style] || Icons.default;
45
45
  const toastBody = `
46
46
  ${icon}
47
- <div class="verdocs-toast-text" style="padding: 12px 12px 12px 0;">${text}</div>
47
+ <div class="verdocs-toast-text" style="padding: 12px 12px 12px 0; display: flex; flex: 1">${text}</div>
48
48
  <div class="verdocs-toast-close" style="padding: 12px 10px; background: rgba(0, 0, 0, 0.2); cursor: pointer;">✕</div>
49
49
  `;
50
50
  const toast = document.createElement('div');
@@ -52,7 +52,7 @@ const VerdocsToast = (text, config = {}) => {
52
52
  toast.innerHTML = toastBody;
53
53
  toast.style.cssText = `
54
54
  display: flex; flex-direction: row; gap: 10px; align-items: center;
55
- position: fixed; top: 20px; right: 20px; z-index: 2147483647; max-width: calc(50% - 20px);
55
+ position: fixed; top: 20px; right: 20px; z-index: 2147483647; width: 80%; max-width: calc(100% - 40px);
56
56
  color: #ffffff; background: ${color}; font-family: 'Barlow', sans-serif;
57
57
  border-radius: 2px; padding-left: 10px;
58
58
  box-shadow: 0 3px 7px 2px rgba(0, 0, 0, 0.12), 0 10px 36px -4px rgba(77, 96, 232, 0.3);`;