@verdocs/web-sdk 2.2.38 → 2.2.40

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 (219) hide show
  1. package/dist/cjs/{EnvelopeStore-eda7addf.js → EnvelopeStore-f8c301e1.js} +1 -1
  2. package/dist/cjs/{Envelopes-ef06e293.js → Envelopes-99ca79fe.js} +5 -5
  3. package/dist/cjs/{TemplateStore-8bf09f12.js → TemplateStore-42c35573.js} +1 -1
  4. package/dist/cjs/{VerdocsEndpoint-a15d322b.js → VerdocsEndpoint-ae3a69d6.js} +67 -5
  5. package/dist/cjs/ipc-test.cjs.entry.js +2 -2
  6. package/dist/cjs/{utils-06248dca.js → utils-2ddfdf9e.js} +1 -1
  7. package/dist/cjs/verdocs-activity-box.cjs.entry.js +2 -2
  8. package/dist/cjs/verdocs-auth.cjs.entry.js +4 -4
  9. package/dist/cjs/verdocs-build.cjs.entry.js +2 -2
  10. package/dist/cjs/verdocs-button-panel_2.cjs.entry.js +2 -2
  11. package/dist/cjs/verdocs-contact-picker_2.cjs.entry.js +3 -3
  12. package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +3 -3
  13. package/dist/cjs/verdocs-envelope-recipient-link_2.cjs.entry.js +3 -3
  14. package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +3 -3
  15. package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +21 -27
  16. package/dist/cjs/verdocs-field-attachment.cjs.entry.js +2 -2
  17. package/dist/cjs/verdocs-field-checkbox.cjs.entry.js +2 -2
  18. package/dist/cjs/verdocs-field-date.cjs.entry.js +2 -2
  19. package/dist/cjs/verdocs-field-dropdown.cjs.entry.js +2 -2
  20. package/dist/cjs/verdocs-field-initial.cjs.entry.js +2 -2
  21. package/dist/cjs/verdocs-field-payment.cjs.entry.js +2 -2
  22. package/dist/cjs/verdocs-field-radio-button.cjs.entry.js +2 -2
  23. package/dist/cjs/verdocs-field-signature.cjs.entry.js +2 -2
  24. package/dist/cjs/verdocs-field-textarea.cjs.entry.js +3 -3
  25. package/dist/cjs/verdocs-field-textbox.cjs.entry.js +3 -3
  26. package/dist/cjs/verdocs-field-timestamp.cjs.entry.js +2 -2
  27. package/dist/cjs/verdocs-file-chooser_2.cjs.entry.js +1 -1
  28. package/dist/cjs/verdocs-pagination_2.cjs.entry.js +2 -2
  29. package/dist/cjs/verdocs-preview_8.cjs.entry.js +4 -4
  30. package/dist/cjs/verdocs-quick-functions_3.cjs.entry.js +1 -1
  31. package/dist/cjs/verdocs-search.cjs.entry.js +1 -1
  32. package/dist/cjs/verdocs-settings-api-keys_4.cjs.entry.js +3 -3
  33. package/dist/cjs/verdocs-settings.cjs.entry.js +1 -1
  34. package/dist/cjs/verdocs-sign.cjs.entry.js +3 -3
  35. package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +3 -3
  36. package/dist/cjs/verdocs-template-fields_4.cjs.entry.js +4 -4
  37. package/dist/cjs/verdocs-template-star.cjs.entry.js +1 -1
  38. package/dist/cjs/verdocs-templates-list.cjs.entry.js +23 -12
  39. package/dist/cjs/verdocs-view.cjs.entry.js +3 -3
  40. package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js +3 -3
  41. package/dist/collection/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.stories.js +1 -1
  42. package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.js +26 -26
  43. package/dist/collection/components/templates/verdocs-templates-list/verdocs-templates-list.js +23 -12
  44. package/dist/components/Envelopes.js +5 -5
  45. package/dist/components/VerdocsEndpoint.js +67 -5
  46. package/dist/components/verdocs-auth.js +3 -3
  47. package/dist/components/verdocs-envelopes-list.js +18 -24
  48. package/dist/components/verdocs-templates-list.js +22 -11
  49. package/dist/custom-elements.json +2059 -0
  50. package/dist/docs.json +3 -3
  51. package/dist/esm/{EnvelopeStore-03f3f9f4.js → EnvelopeStore-15cc99ef.js} +1 -1
  52. package/dist/esm/{Envelopes-7ba36e68.js → Envelopes-21ffb899.js} +5 -5
  53. package/dist/esm/{TemplateStore-555a4b49.js → TemplateStore-1dfaf509.js} +1 -1
  54. package/dist/esm/{VerdocsEndpoint-750b24e4.js → VerdocsEndpoint-f58fcb3c.js} +67 -5
  55. package/dist/esm/ipc-test.entry.js +2 -2
  56. package/dist/esm/{utils-36e03f93.js → utils-d269cea3.js} +1 -1
  57. package/dist/esm/verdocs-activity-box.entry.js +2 -2
  58. package/dist/esm/verdocs-auth.entry.js +4 -4
  59. package/dist/esm/verdocs-build.entry.js +2 -2
  60. package/dist/esm/verdocs-button-panel_2.entry.js +2 -2
  61. package/dist/esm/verdocs-contact-picker_2.entry.js +3 -3
  62. package/dist/esm/verdocs-envelope-document-page.entry.js +3 -3
  63. package/dist/esm/verdocs-envelope-recipient-link_2.entry.js +3 -3
  64. package/dist/esm/verdocs-envelope-sidebar.entry.js +3 -3
  65. package/dist/esm/verdocs-envelopes-list.entry.js +21 -27
  66. package/dist/esm/verdocs-field-attachment.entry.js +2 -2
  67. package/dist/esm/verdocs-field-checkbox.entry.js +2 -2
  68. package/dist/esm/verdocs-field-date.entry.js +2 -2
  69. package/dist/esm/verdocs-field-dropdown.entry.js +2 -2
  70. package/dist/esm/verdocs-field-initial.entry.js +2 -2
  71. package/dist/esm/verdocs-field-payment.entry.js +2 -2
  72. package/dist/esm/verdocs-field-radio-button.entry.js +2 -2
  73. package/dist/esm/verdocs-field-signature.entry.js +2 -2
  74. package/dist/esm/verdocs-field-textarea.entry.js +3 -3
  75. package/dist/esm/verdocs-field-textbox.entry.js +3 -3
  76. package/dist/esm/verdocs-field-timestamp.entry.js +2 -2
  77. package/dist/esm/verdocs-file-chooser_2.entry.js +1 -1
  78. package/dist/esm/verdocs-pagination_2.entry.js +2 -2
  79. package/dist/esm/verdocs-preview_8.entry.js +4 -4
  80. package/dist/esm/verdocs-quick-functions_3.entry.js +1 -1
  81. package/dist/esm/verdocs-search.entry.js +1 -1
  82. package/dist/esm/verdocs-settings-api-keys_4.entry.js +3 -3
  83. package/dist/esm/verdocs-settings.entry.js +1 -1
  84. package/dist/esm/verdocs-sign.entry.js +3 -3
  85. package/dist/esm/verdocs-template-document-page_2.entry.js +3 -3
  86. package/dist/esm/verdocs-template-fields_4.entry.js +4 -4
  87. package/dist/esm/verdocs-template-star.entry.js +1 -1
  88. package/dist/esm/verdocs-templates-list.entry.js +23 -12
  89. package/dist/esm/verdocs-view.entry.js +3 -3
  90. package/dist/esm-es5/{EnvelopeStore-03f3f9f4.js → EnvelopeStore-15cc99ef.js} +1 -1
  91. package/dist/esm-es5/{Envelopes-7ba36e68.js → Envelopes-21ffb899.js} +1 -1
  92. package/dist/esm-es5/{TemplateStore-555a4b49.js → TemplateStore-1dfaf509.js} +1 -1
  93. package/dist/esm-es5/VerdocsEndpoint-f58fcb3c.js +1 -0
  94. package/dist/esm-es5/ipc-test.entry.js +1 -1
  95. package/dist/esm-es5/{utils-36e03f93.js → utils-d269cea3.js} +1 -1
  96. package/dist/esm-es5/verdocs-activity-box.entry.js +1 -1
  97. package/dist/esm-es5/verdocs-auth.entry.js +1 -1
  98. package/dist/esm-es5/verdocs-build.entry.js +1 -1
  99. package/dist/esm-es5/verdocs-button-panel_2.entry.js +1 -1
  100. package/dist/esm-es5/verdocs-contact-picker_2.entry.js +1 -1
  101. package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -1
  102. package/dist/esm-es5/verdocs-envelope-recipient-link_2.entry.js +1 -1
  103. package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
  104. package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
  105. package/dist/esm-es5/verdocs-field-attachment.entry.js +1 -1
  106. package/dist/esm-es5/verdocs-field-checkbox.entry.js +1 -1
  107. package/dist/esm-es5/verdocs-field-date.entry.js +1 -1
  108. package/dist/esm-es5/verdocs-field-dropdown.entry.js +1 -1
  109. package/dist/esm-es5/verdocs-field-initial.entry.js +1 -1
  110. package/dist/esm-es5/verdocs-field-payment.entry.js +1 -1
  111. package/dist/esm-es5/verdocs-field-radio-button.entry.js +1 -1
  112. package/dist/esm-es5/verdocs-field-signature.entry.js +1 -1
  113. package/dist/esm-es5/verdocs-field-textarea.entry.js +1 -1
  114. package/dist/esm-es5/verdocs-field-textbox.entry.js +1 -1
  115. package/dist/esm-es5/verdocs-field-timestamp.entry.js +1 -1
  116. package/dist/esm-es5/verdocs-file-chooser_2.entry.js +1 -1
  117. package/dist/esm-es5/verdocs-pagination_2.entry.js +1 -1
  118. package/dist/esm-es5/verdocs-preview_8.entry.js +1 -1
  119. package/dist/esm-es5/verdocs-quick-functions_3.entry.js +1 -1
  120. package/dist/esm-es5/verdocs-search.entry.js +1 -1
  121. package/dist/esm-es5/verdocs-settings-api-keys_4.entry.js +1 -1
  122. package/dist/esm-es5/verdocs-settings.entry.js +1 -1
  123. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  124. package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
  125. package/dist/esm-es5/verdocs-template-fields_4.entry.js +1 -1
  126. package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
  127. package/dist/esm-es5/verdocs-templates-list.entry.js +1 -1
  128. package/dist/esm-es5/verdocs-view.entry.js +1 -1
  129. package/dist/types/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.d.ts +6 -6
  130. package/dist/types/components/templates/verdocs-templates-list/verdocs-templates-list.d.ts +5 -5
  131. package/dist/types/components.d.ts +2 -2
  132. package/dist/verdocs-web-sdk/{p-d44a159b.system.entry.js → p-01f875d4.system.entry.js} +1 -1
  133. package/dist/verdocs-web-sdk/{p-36e20c7d.system.entry.js → p-081df4a1.system.entry.js} +1 -1
  134. package/dist/verdocs-web-sdk/{p-f5222669.system.entry.js → p-0d35d591.system.entry.js} +1 -1
  135. package/dist/verdocs-web-sdk/{p-f8c3d844.entry.js → p-0df58c57.entry.js} +1 -1
  136. package/dist/verdocs-web-sdk/{p-d477824e.entry.js → p-0f94d635.entry.js} +1 -1
  137. package/dist/verdocs-web-sdk/{p-d6495ba8.entry.js → p-1406ffd2.entry.js} +1 -1
  138. package/dist/verdocs-web-sdk/{p-ba50174c.system.entry.js → p-14aefeb2.system.entry.js} +1 -1
  139. package/dist/verdocs-web-sdk/{p-005f8cbc.system.entry.js → p-16043ac0.system.entry.js} +1 -1
  140. package/dist/verdocs-web-sdk/{p-25988bd7.entry.js → p-2184a570.entry.js} +1 -1
  141. package/dist/verdocs-web-sdk/{p-e33e9dd5.system.entry.js → p-23a92204.system.entry.js} +1 -1
  142. package/dist/verdocs-web-sdk/{p-8e2b8c08.entry.js → p-271c989f.entry.js} +1 -1
  143. package/dist/verdocs-web-sdk/{p-4f6f538d.entry.js → p-2a185ea9.entry.js} +1 -1
  144. package/dist/verdocs-web-sdk/{p-95d6d5bc.entry.js → p-2ae9baa3.entry.js} +1 -1
  145. package/dist/verdocs-web-sdk/{p-7b8a52a9.system.entry.js → p-2bc8c83c.system.entry.js} +1 -1
  146. package/dist/verdocs-web-sdk/{p-271dafb1.system.js → p-2ccbcfeb.system.js} +1 -1
  147. package/dist/verdocs-web-sdk/{p-354179b9.entry.js → p-2f7236a5.entry.js} +1 -1
  148. package/dist/verdocs-web-sdk/{p-1d52f0a4.entry.js → p-32d4b31e.entry.js} +1 -1
  149. package/dist/verdocs-web-sdk/{p-07118e76.entry.js → p-34d2f66c.entry.js} +1 -1
  150. package/dist/verdocs-web-sdk/{p-4d8287cb.system.entry.js → p-35769d0c.system.entry.js} +1 -1
  151. package/dist/verdocs-web-sdk/{p-c1164de2.entry.js → p-35acc57f.entry.js} +1 -1
  152. package/dist/verdocs-web-sdk/{p-d48bffed.entry.js → p-3807b541.entry.js} +1 -1
  153. package/dist/verdocs-web-sdk/{p-1db55e60.entry.js → p-3a702f79.entry.js} +1 -1
  154. package/dist/verdocs-web-sdk/{p-c4255966.entry.js → p-3ba65022.entry.js} +1 -1
  155. package/dist/verdocs-web-sdk/{p-19e9660c.entry.js → p-3f9fbf94.entry.js} +1 -1
  156. package/dist/verdocs-web-sdk/{p-96325d87.entry.js → p-3fd978ad.entry.js} +1 -1
  157. package/dist/verdocs-web-sdk/{p-ced58601.entry.js → p-409e992a.entry.js} +1 -1
  158. package/dist/verdocs-web-sdk/{p-58eb94ab.system.entry.js → p-4248ef54.system.entry.js} +1 -1
  159. package/dist/verdocs-web-sdk/{p-9df48701.entry.js → p-44fa9fba.entry.js} +1 -1
  160. package/dist/verdocs-web-sdk/{p-6a5ef696.system.entry.js → p-4d4da6ef.system.entry.js} +1 -1
  161. package/dist/verdocs-web-sdk/{p-d96f37d0.system.entry.js → p-53648483.system.entry.js} +1 -1
  162. package/dist/verdocs-web-sdk/p-53b991de.system.js +1 -0
  163. package/dist/verdocs-web-sdk/{p-135d684d.system.entry.js → p-56c0cc86.system.entry.js} +1 -1
  164. package/dist/verdocs-web-sdk/p-56f2a8ac.js +1 -0
  165. package/dist/verdocs-web-sdk/{p-84341e03.js → p-5a91bf23.js} +1 -1
  166. package/dist/verdocs-web-sdk/{p-f7641208.system.entry.js → p-5fa7fcf7.system.entry.js} +1 -1
  167. package/dist/verdocs-web-sdk/p-61ad8441.system.entry.js +1 -0
  168. package/dist/verdocs-web-sdk/{p-faae78ce.system.entry.js → p-62f090c7.system.entry.js} +1 -1
  169. package/dist/verdocs-web-sdk/{p-604d7791.entry.js → p-6823dd3e.entry.js} +1 -1
  170. package/dist/verdocs-web-sdk/{p-9623a082.system.entry.js → p-691fa663.system.entry.js} +1 -1
  171. package/dist/verdocs-web-sdk/{p-9b02abc9.system.entry.js → p-69c0f441.system.entry.js} +1 -1
  172. package/dist/verdocs-web-sdk/{p-1540e617.system.entry.js → p-6a795d03.system.entry.js} +1 -1
  173. package/dist/verdocs-web-sdk/{p-dca97ec0.entry.js → p-6d1150ae.entry.js} +1 -1
  174. package/dist/verdocs-web-sdk/{p-9a510e13.system.entry.js → p-70df50d0.system.entry.js} +1 -1
  175. package/dist/verdocs-web-sdk/{p-0a4856ac.entry.js → p-7549ad05.entry.js} +1 -1
  176. package/dist/verdocs-web-sdk/{p-47ff8ea2.entry.js → p-77abc3ce.entry.js} +1 -1
  177. package/dist/verdocs-web-sdk/{p-a866be55.entry.js → p-79557fd0.entry.js} +1 -1
  178. package/dist/verdocs-web-sdk/{p-c3874a8d.system.entry.js → p-7c013c13.system.entry.js} +1 -1
  179. package/dist/verdocs-web-sdk/p-7e558e92.entry.js +1 -0
  180. package/dist/verdocs-web-sdk/{p-4c0f38c5.system.js → p-7e8d64fb.system.js} +1 -1
  181. package/dist/verdocs-web-sdk/{p-3c64c237.system.entry.js → p-90ff8b2c.system.entry.js} +1 -1
  182. package/dist/verdocs-web-sdk/p-95259770.entry.js +1 -0
  183. package/dist/verdocs-web-sdk/{p-24a2d61e.entry.js → p-9b25404e.entry.js} +1 -1
  184. package/dist/verdocs-web-sdk/p-9c7093ab.entry.js +1 -0
  185. package/dist/verdocs-web-sdk/{p-a2a9d906.system.js → p-9fa916b5.system.js} +1 -1
  186. package/dist/verdocs-web-sdk/{p-af1c6957.system.entry.js → p-a171983b.system.entry.js} +1 -1
  187. package/dist/verdocs-web-sdk/{p-19b70691.js → p-a35314fe.js} +1 -1
  188. package/dist/verdocs-web-sdk/{p-7783d364.system.entry.js → p-aa51514f.system.entry.js} +1 -1
  189. package/dist/verdocs-web-sdk/{p-bd264e9b.entry.js → p-af3e9624.entry.js} +1 -1
  190. package/dist/verdocs-web-sdk/{p-264085f1.system.entry.js → p-b2d698f7.system.entry.js} +1 -1
  191. package/dist/verdocs-web-sdk/{p-2727f8c1.system.entry.js → p-b73415c3.system.entry.js} +1 -1
  192. package/dist/verdocs-web-sdk/{p-e40d07cd.entry.js → p-bb8d6bdb.entry.js} +1 -1
  193. package/dist/verdocs-web-sdk/{p-3d20f09f.system.js → p-c694cf93.system.js} +1 -1
  194. package/dist/verdocs-web-sdk/{p-185f5fa5.system.entry.js → p-c6cc7015.system.entry.js} +1 -1
  195. package/dist/verdocs-web-sdk/{p-073fcf03.js → p-c7757545.js} +1 -1
  196. package/dist/verdocs-web-sdk/{p-9871a31d.entry.js → p-ca807155.entry.js} +1 -1
  197. package/dist/verdocs-web-sdk/{p-334a7cd0.entry.js → p-ce804092.entry.js} +1 -1
  198. package/dist/verdocs-web-sdk/{p-a3208fbe.entry.js → p-cf765153.entry.js} +1 -1
  199. package/dist/verdocs-web-sdk/{p-c186e449.entry.js → p-d37aac3a.entry.js} +1 -1
  200. package/dist/verdocs-web-sdk/{p-b8266baf.system.entry.js → p-d5a46144.system.entry.js} +1 -1
  201. package/dist/verdocs-web-sdk/{p-43226b70.system.entry.js → p-d735df79.system.entry.js} +1 -1
  202. package/dist/verdocs-web-sdk/{p-84b84302.system.entry.js → p-dd8845d4.system.entry.js} +1 -1
  203. package/dist/verdocs-web-sdk/{p-877d6c80.system.entry.js → p-e3a9d167.system.entry.js} +1 -1
  204. package/dist/verdocs-web-sdk/{p-066822ff.system.entry.js → p-e48418fd.system.entry.js} +1 -1
  205. package/dist/verdocs-web-sdk/{p-f4e40ebd.system.entry.js → p-e6037224.system.entry.js} +1 -1
  206. package/dist/verdocs-web-sdk/{p-1c70b492.system.entry.js → p-eaa5f223.system.entry.js} +1 -1
  207. package/dist/verdocs-web-sdk/{p-adc052fa.js → p-ebc4142c.js} +1 -1
  208. package/dist/verdocs-web-sdk/p-f04bf956.system.js +1 -1
  209. package/dist/verdocs-web-sdk/{p-f720f49e.entry.js → p-f1c4035f.entry.js} +1 -1
  210. package/dist/verdocs-web-sdk/{p-6f8eb3d7.system.entry.js → p-f2249009.system.entry.js} +1 -1
  211. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  212. package/package.json +2 -2
  213. package/dist/esm-es5/VerdocsEndpoint-750b24e4.js +0 -1
  214. package/dist/verdocs-web-sdk/p-2174e539.js +0 -1
  215. package/dist/verdocs-web-sdk/p-24f0c391.system.js +0 -1
  216. package/dist/verdocs-web-sdk/p-4d2e73d9.entry.js +0 -1
  217. package/dist/verdocs-web-sdk/p-57c09a21.system.entry.js +0 -1
  218. package/dist/verdocs-web-sdk/p-793b6a49.entry.js +0 -1
  219. package/dist/verdocs-web-sdk/p-d6588808.entry.js +0 -1
@@ -27,6 +27,42 @@ var TemplatePermissions;
27
27
  *
28
28
  * @module
29
29
  */
30
+ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
31
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
32
+ return new (P || (P = Promise))(function (resolve, reject) {
33
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
34
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
35
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
36
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
37
+ });
38
+ };
39
+ var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
40
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
41
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
42
+ function verb(n) { return function (v) { return step([n, v]); }; }
43
+ function step(op) {
44
+ if (f) throw new TypeError("Generator is already executing.");
45
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
46
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
47
+ if (y = 0, t) op = [op[0] & 2, t.value];
48
+ switch (op[0]) {
49
+ case 0: case 1: t = op; break;
50
+ case 4: _.label++; return { value: op[1], done: false };
51
+ case 5: _.label++; y = op[1]; op = [0]; continue;
52
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
53
+ default:
54
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
55
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
56
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
57
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
58
+ if (t[2]) _.ops.pop();
59
+ _.trys.pop(); continue;
60
+ }
61
+ op = body.call(thisArg, _);
62
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
63
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
64
+ }
65
+ };
30
66
  /**
31
67
  * Get all templates accessible by the caller, with optional filters.
32
68
  *
@@ -44,6 +80,15 @@ var getTemplates = function (endpoint, params) {
44
80
  .post('/templates', { params: params })
45
81
  .then(function (r) { return r.data; });
46
82
  };
83
+ // export interface IListTemplatesParams {
84
+ // name?: string;
85
+ // sharing?: 'all' | 'personal' | 'shared' | 'public';
86
+ // starred?: 'all' | 'starred' | 'unstarred';
87
+ // sort?: 'name' | 'created_at' | 'updated_at' | 'last_used_at' | 'counter' | 'star_counter';
88
+ // direction?: 'asc' | 'desc';
89
+ // page?: number;
90
+ // rows?: number;
91
+ // }
47
92
  /**
48
93
  * Lists all templates accessible by the caller, with optional filters.
49
94
  *
@@ -53,11 +98,10 @@ var getTemplates = function (endpoint, params) {
53
98
  * await Templates.listTemplates((VerdocsEndpoint.getDefault(), { sharing: 'personal', sort: 'last_used_at' });
54
99
  * ```
55
100
  */
56
- var listTemplates = function (endpoint, params) {
57
- return endpoint.api //
58
- .post('/templates/list', params, { baseURL: endpoint.getBaseURLv2() })
59
- .then(function (r) { return r.data; });
60
- };
101
+ // export const listTemplates = (endpoint: VerdocsEndpoint, params?: IListTemplatesParams) =>
102
+ // endpoint.api //
103
+ // .post<ITemplateSummaries>('/templates/list', params, {baseURL: endpoint.getBaseURLv2()})
104
+ // .then((r) => r.data);
61
105
  /**
62
106
  * Get one template by its ID.
63
107
  *
@@ -155,6 +199,24 @@ var SortOptions$1;
155
199
  SortOptions["COUNTER"] = "counter";
156
200
  SortOptions["STAR_COUNTER"] = "star_counter";
157
201
  })(SortOptions$1 || (SortOptions$1 = {}));
202
+ /**
203
+ * List templates.
204
+ *
205
+ * ```typescript
206
+ * import {Templates} from '@verdocs/js-sdk/Templates';
207
+ *
208
+ * const {totals, templates} = await Templates.listTemplates((VerdocsEndpoint.getDefault(), { q: 'test', sort: 'created_at' }); * ```
209
+ */
210
+ var listTemplates = function (endpoint, params) {
211
+ if (params === void 0) { params = {}; }
212
+ return __awaiter(void 0, void 0, void 0, function () {
213
+ return __generator(this, function (_a) {
214
+ return [2 /*return*/, endpoint.api //
215
+ .post('/templates/list', params)
216
+ .then(function (r) { return r.data; })];
217
+ });
218
+ });
219
+ };
158
220
 
159
221
  var TemplateSenderTypes;
160
222
  (function (TemplateSenderTypes) {
@@ -313,14 +313,14 @@ const VerdocsAuth$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
313
313
  }
314
314
  if (this.displayMode === 'signup') {
315
315
  const step1Invalid = this.submitting || !this.first || !this.last || !this.username || !this.password || !this.orgname || this.orgAvailable !== 'AVAILABLE';
316
- return (h("div", { class: "form" }, h("img", { src: this.logo, alt: "Verdocs Logo", class: "logo" }), h("h3", null, "Sign up for a trial account"), h("h4", null, "Already have an account?", h("verdocs-button", { label: "Log In", variant: "text", onClick: () => (this.displayMode = 'login'), disabled: this.submitting })), this.signupStep === 1 && (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, onInput: (e) => (this.first = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Last Name", autocomplete: "last", required: true, value: this.last, onInput: (e) => (this.last = e.target.value), disabled: this.submitting })), h("verdocs-text-input", { label: "Email", autocomplete: "email", required: true, value: this.username, onInput: (e) => (this.username = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Phone #", autocomplete: "phone", value: this.phone, onInput: (e) => (this.phone = 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("div", { style: { display: 'flex', flexDirection: 'row', gap: '10px', alignItems: 'center' } }, h("verdocs-text-input", { label: "Organization Name", autocomplete: "org", required: true, value: this.orgname, onInput: (e) => this.checkAvailability(e.target.value), disabled: this.submitting, style: { flex: '1' }, onBlur: () => {
316
+ 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 trial account"), h("h4", null, "Already have an account?", h("verdocs-button", { label: "Log In", variant: "text", onClick: () => (this.displayMode = 'login'), disabled: this.submitting })), this.signupStep === 1 && (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, onInput: (e) => (this.first = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Last Name", autocomplete: "last", required: true, value: this.last, onInput: (e) => (this.last = e.target.value), disabled: this.submitting })), h("verdocs-text-input", { label: "Email", autocomplete: "email", required: true, value: this.username, onInput: (e) => (this.username = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Phone #", autocomplete: "phone", value: this.phone, onInput: (e) => (this.phone = 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("div", { style: { display: 'flex', flexDirection: 'row', gap: '10px', alignItems: 'center' } }, h("verdocs-text-input", { label: "Organization Name", autocomplete: "org", required: true, value: this.orgname, onInput: (e) => this.checkAvailability(e.target.value), disabled: this.submitting, style: { flex: '1' }, onBlur: () => {
317
317
  console.log('blur');
318
318
  } }), !this.checkingOrg && this.orgAvailable === 'AVAILABLE' && h("verdocs-help-icon", { icon: OkIcon, text: "Organization name is available." }), !this.checkingOrg && this.orgAvailable === 'TAKEN' && h("verdocs-help-icon", { icon: TakenIcon, text: "Organization already registered." }), !this.checkingOrg && this.orgAvailable === 'UNKNOWN' && h("verdocs-help-icon", { icon: InfoIcon, text: "Organization name must be unique." }), this.checkingOrg && h("verdocs-spinner", { mode: "dark", size: 24 })), h("div", { style: { marginTop: '30px' } }), h("verdocs-button", { label: "Next", disabled: step1Invalid, onClick: () => (this.signupStep = 2), style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }))), this.signupStep === 2 && (h("form", { onSubmit: () => this.handleSignup() }, h("verdocs-text-input", { label: "How did you hear about Verdocs?", value: this.howHear, onInput: (e) => (this.howHear = e.target.value), disabled: this.submitting }), h("verdocs-select-input", { label: "Your Industry", options: Industries, value: this.industry, onInput: (e) => (this.industry = e.target.value), disabled: this.submitting }), h("verdocs-select-input", { label: "Company Size", options: CompanySizes, value: this.companySize, onInput: (e) => (this.companySize = e.target.value), disabled: this.submitting }), h("verdocs-select-input", { label: "Purpose", options: Reasons, value: this.reason, onInput: (e) => (this.reason = e.target.value), disabled: this.submitting }), h("div", { style: { marginTop: '30px' } }), h("verdocs-button", { label: "Create Account", disabled: this.submitting, onClick: () => this.handleSignup(), style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }))), this.signupStep === 3 && (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("div", { style: { display: 'flex', flexDirection: 'row', gap: '20px' } }, h("verdocs-button", { label: "Back", disabled: this.submitting, onClick: () => {
319
319
  this.signupStep = 2;
320
320
  }, style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }), h("verdocs-button", { label: "Go to Dashboard", disabled: true, onClick: () => this.handleSignup(), style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }))))));
321
321
  }
322
322
  if (this.displayMode === 'forgot') {
323
- return (h("div", { class: "form" }, 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."), h("p", null, h("em", null, "Please allow up to 24 hours for delivery, and check your spam folder if you do not receive the message. ")), h("form", { onSubmit: () => this.handleSignup() }, h("verdocs-text-input", { label: "Email", autocomplete: "email", required: true, value: this.username, onInput: (e) => (this.username = 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() })))));
323
+ 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."), h("p", null, h("em", null, "Please allow up to 24 hours for delivery, and check your spam folder if you do not receive the message. ")), h("form", { onSubmit: () => this.handleSignup() }, h("verdocs-text-input", { label: "Email", autocomplete: "email", required: true, value: this.username, onInput: (e) => (this.username = 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() })))));
324
324
  }
325
325
  if (this.displayMode === 'verify') {
326
326
  return (h("div", { class: "form" }, h("img", { src: this.logo, alt: "Verdocs Logo", class: "logo" }), h("h3", null, "Please Verify your Email Address"), h("p", null, "Check your e-mail inbox for a verification email, and follow the instructions provided."), h("p", null, h("em", null, "Please allow up to 24 hours for delivery, and check your spam folder if you do not receive the message. ")), h("div", { class: "buttons" }, h("verdocs-button", { label: "Sign Out", variant: "outline", disabled: this.submitting, onClick: () => {
@@ -330,7 +330,7 @@ const VerdocsAuth$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
330
330
  this.displayMode = 'login';
331
331
  } }), h("verdocs-button", { label: "Resend Email", disabled: this.resendDisabled, onClick: () => this.handleResend() }))));
332
332
  }
333
- return (h("div", { class: "form" }, h("img", { src: this.logo, alt: "Verdocs Logo", class: "logo" }), h("h3", null, "Log in to your account"), h("h4", null, "Don't have an account?", h("verdocs-button", { label: "Sign Up", variant: "text", onClick: () => {
333
+ 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, "Log in to your account"), h("h4", null, "Don't have an account?", h("verdocs-button", { label: "Sign Up", variant: "text", onClick: () => {
334
334
  this.displayMode = 'signup';
335
335
  this.signupStep = 1;
336
336
  }, disabled: this.submitting })), h("form", { onSubmit: () => this.loginAndCheckVerification() }, h("verdocs-text-input", { label: "Email", autocomplete: "username", value: this.username, onInput: (e) => (this.username = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Password", type: "password", autocomplete: "current-password", value: this.password, onInput: (e) => (this.password = e.target.value), disabled: this.submitting }), h("verdocs-button", { label: "Forgot Your Password?", variant: "text", onClick: () => (this.displayMode = 'forgot'), disabled: this.submitting, style: { display: 'flex', justifyContent: 'center', margin: '10px auto 20px' } }), h("verdocs-button", { label: "Login", disabled: this.submitting, onClick: () => this.loginAndCheckVerification(), style: { display: 'flex', justifyContent: 'center', margin: '10px auto 0' } }))));
@@ -104,64 +104,64 @@ const VerdocsEnvelopesList$1 = /*@__PURE__*/ proxyCustomElement(class extends HT
104
104
  this.loading = true;
105
105
  let queryParams = {
106
106
  page: this.selectedPage,
107
- sort: this.sort,
107
+ // sort: this.sort,
108
108
  rows: this.rowsPerPage,
109
109
  };
110
110
  switch (this.view) {
111
111
  case 'all':
112
112
  queryParams = {
113
113
  ...queryParams,
114
- sort: this.sort,
115
- direction: this.sort === 'name' ? 'asc' : 'desc',
114
+ // sort: this.sort,
115
+ // direction: this.sort === 'name' ? 'asc' : 'desc',
116
116
  status: (this.status === 'all' ? ['pending', 'in progress', 'complete', 'declined', 'canceled'] : [this.status]),
117
117
  };
118
118
  break;
119
119
  case 'inbox':
120
120
  queryParams = {
121
121
  ...queryParams,
122
- is_recipient: true,
123
- sort: 'updated_at',
124
- recipient_status: ['invited', 'declined', 'opened', 'signed', 'submitted', 'canceled'],
122
+ // is_recipient: true,
123
+ // sort: 'updated_at',
124
+ // recipient_status: ['invited', 'declined', 'opened', 'signed', 'submitted', 'canceled'],
125
125
  };
126
126
  break;
127
127
  case 'sent':
128
128
  queryParams = {
129
129
  ...queryParams,
130
130
  is_owner: true,
131
- sort: 'updated_at',
131
+ // sort: 'updated_at',
132
132
  };
133
133
  break;
134
134
  case 'action':
135
135
  queryParams = {
136
136
  ...queryParams,
137
- sort: 'updated_at',
138
- is_recipient: true,
137
+ // sort: 'updated_at',
138
+ // is_recipient: true,
139
139
  status: ['pending', 'in progress'],
140
- recipient_status: ['invited', 'opened', 'signed'],
140
+ // recipient_status: ['invited', 'opened', 'signed'],
141
141
  };
142
142
  break;
143
143
  case 'waiting':
144
144
  queryParams = {
145
145
  ...queryParams,
146
146
  is_owner: true,
147
- sort: 'updated_at',
148
- direction: 'desc',
147
+ // sort: 'updated_at',
148
+ // direction: 'desc',
149
149
  status: ['pending', 'in progress'],
150
150
  };
151
151
  break;
152
152
  case 'completed':
153
153
  queryParams = {
154
154
  ...queryParams,
155
- sort: 'updated_at',
156
- direction: 'desc',
155
+ // sort: 'updated_at',
156
+ // direction: 'desc',
157
157
  status: ['complete'],
158
158
  };
159
159
  break;
160
160
  default:
161
161
  queryParams = {
162
162
  ...queryParams,
163
- sort: 'updated_at',
164
- direction: 'desc',
163
+ // sort: 'updated_at',
164
+ // direction: 'desc',
165
165
  status: (this.status === 'all' ? ['pending', 'in progress', 'complete', 'declined', 'canceled'] : [this.status]),
166
166
  };
167
167
  }
@@ -173,18 +173,12 @@ const VerdocsEnvelopesList$1 = /*@__PURE__*/ proxyCustomElement(class extends HT
173
173
  queryParams.status = [this.status];
174
174
  }
175
175
  }
176
- if (this.sort !== 'updated_at') {
177
- queryParams.sort = this.sort;
178
- queryParams.direction = this.sort === 'name' ? 'asc' : 'desc';
179
- }
180
- if (this.match.trim()) {
181
- queryParams.match = this.match.trim();
182
- }
176
+ if (this.match.trim()) ;
183
177
  // if (this.containing.trim()) {
184
178
  // queryParams.field_value = this.containing.trim();
185
179
  // }
186
180
  const response = await listEnvelopes(this.endpoint, queryParams);
187
- this.envelopes = response.records;
181
+ this.envelopes = response.envelopes;
188
182
  this.count = response.total;
189
183
  this.loading = false;
190
184
  }
@@ -126,18 +126,18 @@ const VerdocsTemplatesList$1 = /*@__PURE__*/ proxyCustomElement(class extends HT
126
126
  this.loading = true;
127
127
  try {
128
128
  let queryParams = {
129
- sharing: this.sharing,
130
- starred: this.starred,
129
+ // sharing: this.sharing,
130
+ // starred: this.starred,
131
131
  page: this.selectedPage,
132
- sort: this.sort,
132
+ // sort: this.sort,
133
133
  rows: this.rowsPerPage,
134
134
  // ascending: this.sort === 'name' || this.sort === 'star_counter',
135
135
  };
136
136
  if (this.name.trim() !== '') {
137
- queryParams.name = this.name.trim();
137
+ queryParams.q = this.name.trim();
138
138
  }
139
139
  const response = await listTemplates(this.endpoint, queryParams);
140
- this.templates = response.records;
140
+ this.templates = response.templates;
141
141
  this.count = response.total;
142
142
  this.loading = false;
143
143
  }
@@ -187,16 +187,27 @@ const VerdocsTemplatesList$1 = /*@__PURE__*/ proxyCustomElement(class extends HT
187
187
  const dateToShow = this.sort === 'created_at' ? 'created_at' : this.sort === 'updated_at' ? 'updated_at' : 'last_used_at';
188
188
  const date = template[dateToShow];
189
189
  const MENU_OPTIONS = [];
190
- if (template.allowed_operations.includes(TemplateActions.READ) && this.allowedActions.includes('send')) {
191
- MENU_OPTIONS.push({ label: 'Preview / Send', id: 'send', disabled: !template.allowed_operations.includes(TemplateActions.READ) });
190
+ const allowed_operations = [];
191
+ // serverless/src/functions/getTemplates.ts: allowed_operations: [] as string[],
192
+ // serverless/src/functions/getTemplates.ts: canPerformTemplateAction(request.session, 'create_personal', record) && record.allowed_operations.push('create_personal');
193
+ // serverless/src/functions/getTemplates.ts: canPerformTemplateAction(request.session, 'create_org', record) && record.allowed_operations.push('create_org');
194
+ // serverless/src/functions/getTemplates.ts: canPerformTemplateAction(request.session, 'create_public', record) && record.allowed_operations.push('create_public');
195
+ // serverless/src/functions/getTemplates.ts: canPerformTemplateAction(request.session, 'read', record) && record.allowed_operations.push('read');
196
+ // serverless/src/functions/getTemplates.ts: canPerformTemplateAction(request.session, 'write', record) && record.allowed_operations.push('write');
197
+ // serverless/src/functions/getTemplates.ts: canPerformTemplateAction(request.session, 'delete', record) && record.allowed_operations.push('delete');
198
+ // serverless/src/functions/getTemplates.ts: canPerformTemplateAction(request.session, 'change_visibility_personal', record) && record.allowed_operations.push('change_visibility_personal');
199
+ // serverless/src/functions/getTemplates.ts: canPerformTemplateAction(request.session, 'change_visibility_org', record) && record.allowed_operations.push('change_visibility_org');
200
+ // serverless/src/functions/getTemplates.ts: canPerformTemplateAction(request.session, 'change_visibility_public', record) && record.allowed_operations.push('change_visibility_public');
201
+ if (allowed_operations.includes(TemplateActions.READ) && this.allowedActions.includes('send')) {
202
+ MENU_OPTIONS.push({ label: 'Preview / Send', id: 'send', disabled: !allowed_operations.includes(TemplateActions.READ) });
192
203
  }
193
204
  // if (this.allowedActions.includes('createlink')) {
194
205
  // MENU_OPTIONS.push({label: 'Create Link', id: 'createlink', disabled: true});
195
206
  // }
196
- if (template.allowed_operations.includes(TemplateActions.CREATE_PERSONAL) && this.allowedActions.includes('signnow')) {
207
+ if (allowed_operations.includes(TemplateActions.CREATE_PERSONAL) && this.allowedActions.includes('signnow')) {
197
208
  MENU_OPTIONS.push({ label: 'Sign Now', id: 'signnow', disabled: true });
198
209
  }
199
- if (template.allowed_operations.includes(TemplateActions.READ) && this.allowedActions.includes('submitted')) {
210
+ if (allowed_operations.includes(TemplateActions.READ) && this.allowedActions.includes('submitted')) {
200
211
  MENU_OPTIONS.push({ label: '' });
201
212
  MENU_OPTIONS.push({ label: 'Submissions', id: 'submitted' });
202
213
  }
@@ -209,10 +220,10 @@ const VerdocsTemplatesList$1 = /*@__PURE__*/ proxyCustomElement(class extends HT
209
220
  // MENU_OPTIONS.push({label: 'Get Preview Link', id: 'link', disabled: !this.canPreview(template)});
210
221
  // }
211
222
  if (this.allowedActions.includes('link') || this.allowedActions.includes('edit') || this.allowedActions.includes('delete')) {
212
- MENU_OPTIONS.push({ label: 'Edit', id: 'edit', disabled: !template.allowed_operations.includes(TemplateActions.WRITE) });
223
+ MENU_OPTIONS.push({ label: 'Edit', id: 'edit', disabled: !allowed_operations.includes(TemplateActions.WRITE) });
213
224
  }
214
225
  if (this.allowedActions.includes('link') || this.allowedActions.includes('edit') || this.allowedActions.includes('delete')) {
215
- MENU_OPTIONS.push({ label: 'Delete', id: 'delete', disabled: !template.allowed_operations.includes(TemplateActions.DELETE) });
226
+ MENU_OPTIONS.push({ label: 'Delete', id: 'delete', disabled: !allowed_operations.includes(TemplateActions.DELETE) });
216
227
  }
217
228
  }
218
229
  return (h("div", { class: "template", onClick: () => {