@verdocs/web-sdk 1.2.0 → 1.4.0

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 (475) hide show
  1. package/dist/cjs/Auth-0146ddd8.js +161 -0
  2. package/dist/cjs/{Token-1ea6d834.js → Token-b86e5335.js} +554 -156
  3. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  4. package/dist/cjs/{buffer-es6-ce0cdd81.js → buffer-es6-b2c1c885.js} +13 -0
  5. package/dist/cjs/css-shim-e9231523.js +6 -0
  6. package/dist/cjs/dom-7fb93981.js +75 -0
  7. package/dist/cjs/index-9c6e5f50.js +1976 -0
  8. package/dist/cjs/index-a24f3b6a.js +3096 -0
  9. package/dist/cjs/index-b5a86b04.js +4 -0
  10. package/dist/cjs/{index-4bf5cc66.js → index-c4be37e1.js} +9 -1
  11. package/dist/cjs/loader.cjs.js +19 -3
  12. package/dist/cjs/shadow-css-abc19485.js +389 -0
  13. package/dist/cjs/verdocs-auth.cjs.entry.js +201 -9
  14. package/dist/cjs/verdocs-button.cjs.entry.js +49 -0
  15. package/dist/cjs/verdocs-dropdown.cjs.entry.js +80 -0
  16. package/dist/cjs/verdocs-field-attachment.cjs.entry.js +59 -0
  17. package/dist/cjs/verdocs-field-checkbox.cjs.entry.js +39 -0
  18. package/dist/cjs/verdocs-field-date.cjs.entry.js +2968 -0
  19. package/dist/cjs/verdocs-field-dropdown.cjs.entry.js +59 -0
  20. package/dist/cjs/verdocs-field-initial.cjs.entry.js +52 -0
  21. package/dist/cjs/verdocs-field-payment.cjs.entry.js +86 -0
  22. package/dist/cjs/verdocs-field-radio-button.cjs.entry.js +48 -0
  23. package/dist/cjs/verdocs-field-signature.cjs.entry.js +52 -0
  24. package/dist/cjs/verdocs-field-textarea.cjs.entry.js +63 -0
  25. package/dist/cjs/verdocs-field-textbox.cjs.entry.js +63 -0
  26. package/dist/cjs/verdocs-initial-dialog.cjs.entry.js +3 -3
  27. package/dist/cjs/verdocs-kba-dialog.cjs.entry.js +81 -0
  28. package/dist/cjs/verdocs-loader.cjs.entry.js +2 -2
  29. package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +3 -3
  30. package/dist/cjs/verdocs-organization-card.cjs.entry.js +3 -3
  31. package/dist/cjs/verdocs-quick-functions.cjs.entry.js +2 -2
  32. package/dist/cjs/{verdocs-search-activity_2.cjs.entry.js → verdocs-search-activity.cjs.entry.js} +116 -63
  33. package/dist/cjs/verdocs-search-box.cjs.entry.js +60 -0
  34. package/dist/cjs/verdocs-search-tabs.cjs.entry.js +2 -2
  35. package/dist/cjs/verdocs-search.cjs.entry.js +3 -3
  36. package/dist/cjs/verdocs-sign.cjs.entry.js +1523 -19
  37. package/dist/cjs/verdocs-signature-dialog.cjs.entry.js +4 -4
  38. package/dist/cjs/verdocs-status-indicator.cjs.entry.js +7615 -0
  39. package/dist/cjs/verdocs-template-card.cjs.entry.js +3 -3
  40. package/dist/cjs/verdocs-template-tags.cjs.entry.js +3 -3
  41. package/dist/cjs/verdocs-text-input.cjs.entry.js +62 -0
  42. package/dist/cjs/verdocs-toggle.cjs.entry.js +3 -3
  43. package/dist/cjs/verdocs-upload-dialog.cjs.entry.js +3 -3
  44. package/dist/cjs/{verdocs-dropdown_12.cjs.entry.js → verdocs-view.cjs.entry.js} +52 -5098
  45. package/dist/cjs/verdocs-web-sdk.cjs.js +117 -5
  46. package/dist/collection/collection-manifest.json +4 -3
  47. package/dist/collection/components/controls/verdocs-button/verdocs-button.css +110 -34
  48. package/dist/collection/components/controls/verdocs-button/verdocs-button.js +85 -13
  49. package/dist/collection/components/controls/verdocs-button/verdocs-button.stories.js +41 -2
  50. package/dist/collection/components/controls/verdocs-dropdown/verdocs-dropdown.css +7 -10
  51. package/dist/collection/components/controls/verdocs-dropdown/verdocs-dropdown.js +1 -15
  52. package/dist/collection/components/controls/verdocs-loader/verdocs-loader.js +3 -0
  53. package/dist/collection/components/controls/verdocs-organization-card/verdocs-organization-card.css +4 -6
  54. package/dist/collection/components/controls/verdocs-status-indicator/accepted-dark.svg +4 -0
  55. package/dist/collection/components/controls/verdocs-status-indicator/accepted-light.svg +4 -0
  56. package/dist/collection/components/controls/verdocs-status-indicator/arrowright.svg +3 -0
  57. package/dist/collection/components/controls/verdocs-status-indicator/canceled-dark.svg +3 -0
  58. package/dist/collection/components/controls/verdocs-status-indicator/canceled-light.svg +3 -0
  59. package/dist/collection/components/controls/verdocs-status-indicator/complete-dark.svg +3 -0
  60. package/dist/collection/components/controls/verdocs-status-indicator/complete-light.svg +3 -0
  61. package/dist/collection/components/controls/verdocs-status-indicator/declined-dark.svg +3 -0
  62. package/dist/collection/components/controls/verdocs-status-indicator/declined-light.svg +3 -0
  63. package/dist/collection/components/controls/verdocs-status-indicator/in-progress-dark.svg +3 -0
  64. package/dist/collection/components/controls/verdocs-status-indicator/in-progress-light.svg +3 -0
  65. package/dist/collection/components/controls/verdocs-status-indicator/opened-dark.svg +4 -0
  66. package/dist/collection/components/controls/verdocs-status-indicator/opened-light.svg +4 -0
  67. package/dist/collection/components/controls/verdocs-status-indicator/pending-dark.svg +3 -0
  68. package/dist/collection/components/controls/verdocs-status-indicator/pending-light.svg +3 -0
  69. package/dist/collection/components/controls/verdocs-status-indicator/recipient-flow.js +218 -0
  70. package/dist/collection/components/controls/verdocs-status-indicator/signed-dark.svg +4 -0
  71. package/dist/collection/components/controls/verdocs-status-indicator/signed-light.svg +4 -0
  72. package/dist/collection/components/controls/verdocs-status-indicator/some-signed-dark.svg +3 -0
  73. package/dist/collection/components/controls/verdocs-status-indicator/some-signed-light.svg +3 -0
  74. package/dist/collection/components/controls/verdocs-status-indicator/submitted-dark.svg +3 -0
  75. package/dist/collection/components/controls/verdocs-status-indicator/submitted-light.svg +3 -0
  76. package/dist/collection/components/controls/verdocs-status-indicator/verdocs-status-indicator.css +48 -0
  77. package/dist/collection/components/controls/verdocs-status-indicator/verdocs-status-indicator.js +344 -0
  78. package/dist/collection/components/controls/verdocs-status-indicator/verdocs-status-indicator.stories.js +69 -0
  79. package/dist/collection/components/controls/verdocs-template-card/verdocs-template-card.css +5 -7
  80. package/dist/collection/components/controls/verdocs-template-tags/verdocs-template-tags.css +5 -7
  81. package/dist/collection/components/controls/verdocs-text-input/verdocs-text-input.css +4 -6
  82. package/dist/collection/components/controls/verdocs-toggle/verdocs-toggle.css +4 -6
  83. package/dist/collection/components/controls/verdocs-toggle/verdocs-toggle.stories.js +1 -1
  84. package/dist/collection/components/dialogs/verdocs-initial-dialog/verdocs-initial-dialog.css +3 -4
  85. package/dist/collection/components/dialogs/verdocs-kba-dialog/question.svg +4 -0
  86. package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.css +95 -0
  87. package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.js +292 -0
  88. package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.stories.js +36 -0
  89. package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.css +1 -2
  90. package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.css +1 -2
  91. package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.js +2 -2
  92. package/dist/collection/components/dialogs/verdocs-upload-dialog/verdocs-upload-dialog.css +1 -2
  93. package/dist/collection/components/elements/verdocs-field-attachment/verdocs-field-attachment.stories.js +1 -1
  94. package/dist/collection/components/elements/verdocs-field-checkbox-group/verdocs-field-checkbox.stories.js +1 -1
  95. package/dist/collection/components/elements/verdocs-field-date/verdocs-field-date.stories.js +1 -1
  96. package/dist/collection/components/elements/verdocs-field-dropdown/verdocs-field-dropdown.stories.js +1 -1
  97. package/dist/collection/components/elements/verdocs-field-initial/verdocs-field-initial.stories.js +1 -1
  98. package/dist/collection/components/elements/verdocs-field-payment/verdocs-field-payment.stories.js +1 -1
  99. package/dist/collection/components/elements/verdocs-field-radio-button-group/verdocs-field-radio-button.stories.js +1 -1
  100. package/dist/collection/components/elements/verdocs-field-signature/verdocs-field-signature.stories.js +1 -1
  101. package/dist/collection/components/elements/verdocs-field-textarea/verdocs-field-textarea.stories.js +1 -1
  102. package/dist/collection/components/elements/verdocs-field-textbox/verdocs-field-textbox.stories.js +1 -1
  103. package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.stories.js +1 -1
  104. package/dist/collection/components/elements/verdocs-search-activity/verdocs-search-activity.stories.js +1 -1
  105. package/dist/collection/components/elements/verdocs-search-box/verdocs-search-box.stories.js +1 -1
  106. package/dist/collection/components/elements/verdocs-search-tabs/verdocs-search-tabs.stories.js +1 -1
  107. package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.css +3 -5
  108. package/dist/collection/components/embeds/verdocs-search/verdocs-search.css +2 -4
  109. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.css +2 -3
  110. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +2 -5
  111. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.stories.js +2 -2
  112. package/dist/collection/components/embeds/verdocs-view/verdocs-view.css +1 -3
  113. package/dist/components/Auth.js +157 -0
  114. package/dist/{esm/Token-b82a8ea3.js → components/Token.js} +554 -156
  115. package/dist/{esm/buffer-es6-681a33da.js → components/buffer-es6.js} +13 -0
  116. package/dist/components/index.d.ts +53 -0
  117. package/dist/components/index.js +37 -0
  118. package/dist/components/index2.js +1 -0
  119. package/dist/components/index3.js +1974 -0
  120. package/dist/{esm/index-2b1938ea.js → components/index4.js} +10 -2
  121. package/dist/components/verdocs-auth.d.ts +11 -0
  122. package/dist/components/verdocs-auth.js +347 -0
  123. package/dist/components/verdocs-button.d.ts +11 -0
  124. package/dist/components/verdocs-button.js +6 -0
  125. package/dist/components/verdocs-button2.js +68 -0
  126. package/dist/components/verdocs-dropdown.d.ts +11 -0
  127. package/dist/components/verdocs-dropdown.js +6 -0
  128. package/dist/components/verdocs-dropdown2.js +94 -0
  129. package/dist/components/verdocs-field-attachment.d.ts +11 -0
  130. package/dist/components/verdocs-field-attachment.js +6 -0
  131. package/dist/components/verdocs-field-attachment2.js +88 -0
  132. package/dist/components/verdocs-field-checkbox.d.ts +11 -0
  133. package/dist/components/verdocs-field-checkbox.js +6 -0
  134. package/dist/components/verdocs-field-checkbox2.js +55 -0
  135. package/dist/components/verdocs-field-date.d.ts +11 -0
  136. package/dist/components/verdocs-field-date.js +6 -0
  137. package/dist/components/verdocs-field-date2.js +2987 -0
  138. package/dist/components/verdocs-field-dropdown.d.ts +11 -0
  139. package/dist/components/verdocs-field-dropdown.js +6 -0
  140. package/dist/components/verdocs-field-dropdown2.js +78 -0
  141. package/dist/components/verdocs-field-initial.d.ts +11 -0
  142. package/dist/components/verdocs-field-initial.js +6 -0
  143. package/dist/components/verdocs-field-initial2.js +86 -0
  144. package/dist/components/verdocs-field-payment.d.ts +11 -0
  145. package/dist/components/verdocs-field-payment.js +6 -0
  146. package/dist/components/verdocs-field-payment2.js +114 -0
  147. package/dist/components/verdocs-field-radio-button.d.ts +11 -0
  148. package/dist/components/verdocs-field-radio-button.js +6 -0
  149. package/dist/components/verdocs-field-radio-button2.js +66 -0
  150. package/dist/components/verdocs-field-signature.d.ts +11 -0
  151. package/dist/components/verdocs-field-signature.js +6 -0
  152. package/dist/components/verdocs-field-signature2.js +86 -0
  153. package/dist/components/verdocs-field-textarea.d.ts +11 -0
  154. package/dist/components/verdocs-field-textarea.js +6 -0
  155. package/dist/components/verdocs-field-textarea2.js +82 -0
  156. package/dist/components/verdocs-field-textbox.d.ts +11 -0
  157. package/dist/components/verdocs-field-textbox.js +6 -0
  158. package/dist/components/verdocs-field-textbox2.js +82 -0
  159. package/dist/components/verdocs-initial-dialog.d.ts +11 -0
  160. package/dist/components/verdocs-initial-dialog.js +6 -0
  161. package/dist/components/verdocs-initial-dialog2.js +272 -0
  162. package/dist/components/verdocs-kba-dialog.d.ts +11 -0
  163. package/dist/components/verdocs-kba-dialog.js +112 -0
  164. package/dist/components/verdocs-loader.d.ts +11 -0
  165. package/dist/components/verdocs-loader.js +6 -0
  166. package/dist/components/verdocs-loader2.js +30 -0
  167. package/dist/components/verdocs-ok-dialog.d.ts +11 -0
  168. package/dist/components/verdocs-ok-dialog.js +6 -0
  169. package/dist/components/verdocs-ok-dialog2.js +70 -0
  170. package/dist/components/verdocs-organization-card.d.ts +11 -0
  171. package/dist/components/verdocs-organization-card.js +38 -0
  172. package/dist/components/verdocs-quick-functions.d.ts +11 -0
  173. package/dist/components/verdocs-quick-functions.js +45 -0
  174. package/dist/components/verdocs-search-activity.d.ts +11 -0
  175. package/dist/components/verdocs-search-activity.js +6 -0
  176. package/dist/components/verdocs-search-activity2.js +281 -0
  177. package/dist/components/verdocs-search-box.d.ts +11 -0
  178. package/dist/components/verdocs-search-box.js +6 -0
  179. package/dist/components/verdocs-search-box2.js +75 -0
  180. package/dist/components/verdocs-search-tabs.d.ts +11 -0
  181. package/dist/components/verdocs-search-tabs.js +36 -0
  182. package/dist/components/verdocs-search.d.ts +11 -0
  183. package/dist/components/verdocs-search.js +45 -0
  184. package/dist/components/verdocs-sign.d.ts +11 -0
  185. package/dist/components/verdocs-sign.js +2135 -0
  186. package/dist/components/verdocs-signature-dialog.d.ts +11 -0
  187. package/dist/components/verdocs-signature-dialog.js +6 -0
  188. package/dist/components/verdocs-signature-dialog2.js +268 -0
  189. package/dist/components/verdocs-status-indicator.d.ts +11 -0
  190. package/dist/components/verdocs-status-indicator.js +7635 -0
  191. package/dist/components/verdocs-template-card.d.ts +11 -0
  192. package/dist/components/verdocs-template-card.js +54 -0
  193. package/dist/components/verdocs-template-tags.d.ts +11 -0
  194. package/dist/components/verdocs-template-tags.js +36 -0
  195. package/dist/components/verdocs-text-input.d.ts +11 -0
  196. package/dist/components/verdocs-text-input.js +6 -0
  197. package/dist/components/verdocs-text-input2.js +81 -0
  198. package/dist/components/verdocs-toggle.d.ts +11 -0
  199. package/dist/components/verdocs-toggle.js +53 -0
  200. package/dist/components/verdocs-upload-dialog.d.ts +11 -0
  201. package/dist/components/verdocs-upload-dialog.js +6 -0
  202. package/dist/components/verdocs-upload-dialog2.js +144 -0
  203. package/dist/components/verdocs-view.d.ts +11 -0
  204. package/dist/components/verdocs-view.js +6 -0
  205. package/dist/{custom-elements/index.js → components/verdocs-view2.js} +63 -11001
  206. package/dist/custom-elements.json +830 -0
  207. package/dist/docs.d.ts +3 -0
  208. package/dist/docs.json +407 -60
  209. package/dist/esm/Auth-4b21fced.js +157 -0
  210. package/dist/esm/Token-29eea56d.js +2458 -0
  211. package/dist/esm/app-globals-0f993ce5.js +3 -0
  212. package/dist/esm/buffer-es6-5cef4368.js +1985 -0
  213. package/dist/esm/css-shim-60f618b9.js +4 -0
  214. package/dist/esm/dom-4eeb3fee.js +73 -0
  215. package/dist/esm/index-432c65a6.js +1974 -0
  216. package/dist/esm/index-97ec070b.js +47 -0
  217. package/dist/esm/index-ddbd60b5.js +3059 -0
  218. package/dist/esm/index-ef172650.js +1 -0
  219. package/dist/esm/loader.js +19 -3
  220. package/dist/esm/polyfills/css-shim.js +1 -1
  221. package/dist/esm/shadow-css-02866686.js +387 -0
  222. package/dist/esm/verdocs-auth.entry.js +198 -6
  223. package/dist/esm/verdocs-button.entry.js +45 -0
  224. package/dist/esm/verdocs-dropdown.entry.js +76 -0
  225. package/dist/esm/verdocs-field-attachment.entry.js +55 -0
  226. package/dist/esm/verdocs-field-checkbox.entry.js +35 -0
  227. package/dist/esm/verdocs-field-date.entry.js +2964 -0
  228. package/dist/esm/verdocs-field-dropdown.entry.js +55 -0
  229. package/dist/esm/verdocs-field-initial.entry.js +48 -0
  230. package/dist/esm/verdocs-field-payment.entry.js +82 -0
  231. package/dist/esm/verdocs-field-radio-button.entry.js +44 -0
  232. package/dist/esm/verdocs-field-signature.entry.js +48 -0
  233. package/dist/esm/verdocs-field-textarea.entry.js +59 -0
  234. package/dist/esm/verdocs-field-textbox.entry.js +59 -0
  235. package/dist/esm/verdocs-initial-dialog.entry.js +3 -3
  236. package/dist/esm/verdocs-kba-dialog.entry.js +77 -0
  237. package/dist/esm/verdocs-loader.entry.js +2 -2
  238. package/dist/esm/verdocs-ok-dialog.entry.js +3 -3
  239. package/dist/esm/verdocs-organization-card.entry.js +3 -3
  240. package/dist/esm/verdocs-quick-functions.entry.js +2 -2
  241. package/dist/esm/{verdocs-search-activity_2.entry.js → verdocs-search-activity.entry.js} +117 -63
  242. package/dist/esm/verdocs-search-box.entry.js +56 -0
  243. package/dist/esm/verdocs-search-tabs.entry.js +2 -2
  244. package/dist/esm/verdocs-search.entry.js +3 -3
  245. package/dist/esm/verdocs-sign.entry.js +1523 -19
  246. package/dist/esm/verdocs-signature-dialog.entry.js +4 -4
  247. package/dist/esm/verdocs-status-indicator.entry.js +7611 -0
  248. package/dist/esm/verdocs-template-card.entry.js +3 -3
  249. package/dist/esm/verdocs-template-tags.entry.js +3 -3
  250. package/dist/esm/verdocs-text-input.entry.js +58 -0
  251. package/dist/esm/verdocs-toggle.entry.js +3 -3
  252. package/dist/esm/verdocs-upload-dialog.entry.js +3 -3
  253. package/dist/esm/{verdocs-dropdown_12.entry.js → verdocs-view.entry.js} +36 -5071
  254. package/dist/esm/verdocs-web-sdk.js +117 -5
  255. package/dist/esm-es5/Auth-4b21fced.js +1 -0
  256. package/dist/esm-es5/Token-29eea56d.js +1 -0
  257. package/dist/esm-es5/app-globals-0f993ce5.js +1 -0
  258. package/dist/esm-es5/buffer-es6-5cef4368.js +7 -0
  259. package/dist/esm-es5/css-shim-60f618b9.js +1 -0
  260. package/dist/esm-es5/dom-4eeb3fee.js +21 -0
  261. package/dist/esm-es5/index-432c65a6.js +1 -0
  262. package/dist/esm-es5/index-97ec070b.js +1 -0
  263. package/dist/esm-es5/index-ddbd60b5.js +2 -0
  264. package/dist/esm-es5/index-ef172650.js +1 -0
  265. package/dist/esm-es5/loader.js +1 -1
  266. package/dist/esm-es5/shadow-css-02866686.js +12 -0
  267. package/dist/esm-es5/verdocs-auth.entry.js +1 -1
  268. package/dist/esm-es5/verdocs-button.entry.js +1 -0
  269. package/dist/esm-es5/verdocs-dropdown.entry.js +1 -0
  270. package/dist/esm-es5/verdocs-field-attachment.entry.js +1 -0
  271. package/dist/esm-es5/verdocs-field-checkbox.entry.js +1 -0
  272. package/dist/esm-es5/verdocs-field-date.entry.js +1 -0
  273. package/dist/esm-es5/verdocs-field-dropdown.entry.js +1 -0
  274. package/dist/esm-es5/verdocs-field-initial.entry.js +1 -0
  275. package/dist/esm-es5/verdocs-field-payment.entry.js +1 -0
  276. package/dist/esm-es5/verdocs-field-radio-button.entry.js +1 -0
  277. package/dist/esm-es5/verdocs-field-signature.entry.js +1 -0
  278. package/dist/esm-es5/verdocs-field-textarea.entry.js +1 -0
  279. package/dist/esm-es5/verdocs-field-textbox.entry.js +1 -0
  280. package/dist/esm-es5/verdocs-initial-dialog.entry.js +1 -1
  281. package/dist/esm-es5/verdocs-kba-dialog.entry.js +1 -0
  282. package/dist/esm-es5/verdocs-loader.entry.js +1 -1
  283. package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
  284. package/dist/esm-es5/verdocs-organization-card.entry.js +1 -1
  285. package/dist/esm-es5/verdocs-quick-functions.entry.js +1 -1
  286. package/dist/esm-es5/verdocs-search-activity.entry.js +1 -0
  287. package/dist/esm-es5/verdocs-search-box.entry.js +1 -0
  288. package/dist/esm-es5/verdocs-search-tabs.entry.js +1 -1
  289. package/dist/esm-es5/verdocs-search.entry.js +1 -1
  290. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  291. package/dist/esm-es5/verdocs-signature-dialog.entry.js +1 -1
  292. package/dist/esm-es5/verdocs-status-indicator.entry.js +11 -0
  293. package/dist/esm-es5/verdocs-template-card.entry.js +1 -1
  294. package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
  295. package/dist/esm-es5/verdocs-text-input.entry.js +1 -0
  296. package/dist/esm-es5/verdocs-toggle.entry.js +1 -1
  297. package/dist/esm-es5/verdocs-upload-dialog.entry.js +1 -1
  298. package/dist/esm-es5/verdocs-view.entry.js +23 -0
  299. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  300. package/dist/types/components/controls/verdocs-button/verdocs-button.d.ts +26 -6
  301. package/dist/types/components/controls/verdocs-button/verdocs-button.stories.d.ts +4 -1
  302. package/dist/types/components/controls/verdocs-dropdown/verdocs-dropdown.d.ts +0 -14
  303. package/dist/types/components/controls/verdocs-loader/verdocs-loader.d.ts +3 -0
  304. package/dist/types/components/controls/verdocs-status-indicator/recipient-flow.d.ts +4 -0
  305. package/dist/types/components/controls/verdocs-status-indicator/verdocs-status-indicator.d.ts +42 -0
  306. package/dist/types/components/controls/{verdocs-document-status/verdocs-document-status.stories.d.ts → verdocs-status-indicator/verdocs-status-indicator.stories.d.ts} +4 -1
  307. package/dist/types/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.d.ts +57 -0
  308. package/dist/types/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.stories.d.ts +15 -0
  309. package/dist/types/components.d.ts +307 -74
  310. package/dist/verdocs-web-sdk/Auth-4b21fced.js +157 -0
  311. package/dist/verdocs-web-sdk/Auth-82e38539.system.js +1 -0
  312. package/dist/verdocs-web-sdk/Token-29eea56d.js +2458 -0
  313. package/dist/verdocs-web-sdk/Token-c1cf309e.system.js +1 -0
  314. package/dist/verdocs-web-sdk/app-globals-0f993ce5.js +3 -0
  315. package/dist/verdocs-web-sdk/app-globals-497eb362.system.js +1 -0
  316. package/dist/verdocs-web-sdk/buffer-es6-5cef4368.js +1985 -0
  317. package/dist/verdocs-web-sdk/buffer-es6-aa11181b.system.js +7 -0
  318. package/dist/verdocs-web-sdk/css-shim-60f618b9.js +4 -0
  319. package/dist/verdocs-web-sdk/css-shim-e41ceccc.system.js +1 -0
  320. package/dist/verdocs-web-sdk/dom-4eeb3fee.js +73 -0
  321. package/dist/verdocs-web-sdk/dom-89b5deb7.system.js +21 -0
  322. package/dist/verdocs-web-sdk/index-027b383e.system.js +1 -0
  323. package/dist/verdocs-web-sdk/index-06e036a1.system.js +1 -0
  324. package/dist/verdocs-web-sdk/index-432c65a6.js +1974 -0
  325. package/dist/verdocs-web-sdk/index-5d49316f.system.js +1 -0
  326. package/dist/verdocs-web-sdk/index-6465280a.system.js +2 -0
  327. package/dist/verdocs-web-sdk/index-97ec070b.js +47 -0
  328. package/dist/verdocs-web-sdk/index-ddbd60b5.js +3059 -0
  329. package/dist/verdocs-web-sdk/index-ef172650.js +1 -0
  330. package/dist/verdocs-web-sdk/index.esm.js +1 -0
  331. package/dist/verdocs-web-sdk/{p-50ea2036.system.js → index.system.js} +0 -0
  332. package/dist/verdocs-web-sdk/shadow-css-02866686.js +387 -0
  333. package/dist/verdocs-web-sdk/shadow-css-6207e159.system.js +13 -0
  334. package/dist/verdocs-web-sdk/verdocs-auth.entry.js +302 -0
  335. package/dist/verdocs-web-sdk/verdocs-auth.system.entry.js +1 -0
  336. package/dist/verdocs-web-sdk/verdocs-button.entry.js +45 -0
  337. package/dist/verdocs-web-sdk/verdocs-button.system.entry.js +1 -0
  338. package/dist/verdocs-web-sdk/verdocs-dropdown.entry.js +76 -0
  339. package/dist/verdocs-web-sdk/verdocs-dropdown.system.entry.js +1 -0
  340. package/dist/verdocs-web-sdk/verdocs-field-attachment.entry.js +55 -0
  341. package/dist/verdocs-web-sdk/verdocs-field-attachment.system.entry.js +1 -0
  342. package/dist/verdocs-web-sdk/verdocs-field-checkbox.entry.js +35 -0
  343. package/dist/verdocs-web-sdk/verdocs-field-checkbox.system.entry.js +1 -0
  344. package/dist/verdocs-web-sdk/verdocs-field-date.entry.js +2964 -0
  345. package/dist/verdocs-web-sdk/verdocs-field-date.system.entry.js +1 -0
  346. package/dist/verdocs-web-sdk/verdocs-field-dropdown.entry.js +55 -0
  347. package/dist/verdocs-web-sdk/verdocs-field-dropdown.system.entry.js +1 -0
  348. package/dist/verdocs-web-sdk/verdocs-field-initial.entry.js +48 -0
  349. package/dist/verdocs-web-sdk/verdocs-field-initial.system.entry.js +1 -0
  350. package/dist/verdocs-web-sdk/verdocs-field-payment.entry.js +82 -0
  351. package/dist/verdocs-web-sdk/verdocs-field-payment.system.entry.js +1 -0
  352. package/dist/verdocs-web-sdk/verdocs-field-radio-button.entry.js +44 -0
  353. package/dist/verdocs-web-sdk/verdocs-field-radio-button.system.entry.js +1 -0
  354. package/dist/verdocs-web-sdk/verdocs-field-signature.entry.js +48 -0
  355. package/dist/verdocs-web-sdk/verdocs-field-signature.system.entry.js +1 -0
  356. package/dist/verdocs-web-sdk/verdocs-field-textarea.entry.js +59 -0
  357. package/dist/verdocs-web-sdk/verdocs-field-textarea.system.entry.js +1 -0
  358. package/dist/verdocs-web-sdk/verdocs-field-textbox.entry.js +59 -0
  359. package/dist/verdocs-web-sdk/verdocs-field-textbox.system.entry.js +1 -0
  360. package/dist/verdocs-web-sdk/verdocs-initial-dialog.entry.js +239 -0
  361. package/dist/verdocs-web-sdk/verdocs-initial-dialog.system.entry.js +1 -0
  362. package/dist/verdocs-web-sdk/verdocs-kba-dialog.entry.js +77 -0
  363. package/dist/verdocs-web-sdk/verdocs-kba-dialog.system.entry.js +1 -0
  364. package/dist/verdocs-web-sdk/verdocs-loader.entry.js +15 -0
  365. package/dist/verdocs-web-sdk/verdocs-loader.system.entry.js +1 -0
  366. package/dist/verdocs-web-sdk/verdocs-ok-dialog.entry.js +44 -0
  367. package/dist/verdocs-web-sdk/verdocs-ok-dialog.system.entry.js +1 -0
  368. package/dist/verdocs-web-sdk/verdocs-organization-card.entry.js +18 -0
  369. package/dist/verdocs-web-sdk/verdocs-organization-card.system.entry.js +1 -0
  370. package/dist/verdocs-web-sdk/verdocs-quick-functions.entry.js +27 -0
  371. package/dist/verdocs-web-sdk/verdocs-quick-functions.system.entry.js +1 -0
  372. package/dist/verdocs-web-sdk/verdocs-search-activity.entry.js +259 -0
  373. package/dist/verdocs-web-sdk/verdocs-search-activity.system.entry.js +1 -0
  374. package/dist/verdocs-web-sdk/verdocs-search-box.entry.js +56 -0
  375. package/dist/verdocs-web-sdk/verdocs-search-box.system.entry.js +1 -0
  376. package/dist/verdocs-web-sdk/verdocs-search-tabs.entry.js +16 -0
  377. package/dist/verdocs-web-sdk/verdocs-search-tabs.system.entry.js +1 -0
  378. package/dist/verdocs-web-sdk/verdocs-search.entry.js +15 -0
  379. package/dist/verdocs-web-sdk/verdocs-search.system.entry.js +1 -0
  380. package/dist/verdocs-web-sdk/verdocs-sign.entry.js +1995 -0
  381. package/dist/verdocs-web-sdk/verdocs-sign.system.entry.js +1 -0
  382. package/dist/verdocs-web-sdk/verdocs-signature-dialog.entry.js +235 -0
  383. package/dist/verdocs-web-sdk/verdocs-signature-dialog.system.entry.js +1 -0
  384. package/dist/verdocs-web-sdk/verdocs-status-indicator.entry.js +7611 -0
  385. package/dist/verdocs-web-sdk/verdocs-status-indicator.system.entry.js +1 -0
  386. package/dist/verdocs-web-sdk/verdocs-template-card.entry.js +34 -0
  387. package/dist/verdocs-web-sdk/verdocs-template-card.system.entry.js +1 -0
  388. package/dist/verdocs-web-sdk/verdocs-template-tags.entry.js +16 -0
  389. package/dist/verdocs-web-sdk/verdocs-template-tags.system.entry.js +1 -0
  390. package/dist/verdocs-web-sdk/verdocs-text-input.entry.js +58 -0
  391. package/dist/verdocs-web-sdk/verdocs-text-input.system.entry.js +1 -0
  392. package/dist/verdocs-web-sdk/verdocs-toggle.entry.js +32 -0
  393. package/dist/verdocs-web-sdk/verdocs-toggle.system.entry.js +1 -0
  394. package/dist/verdocs-web-sdk/verdocs-upload-dialog.entry.js +119 -0
  395. package/dist/verdocs-web-sdk/verdocs-upload-dialog.system.entry.js +1 -0
  396. package/dist/verdocs-web-sdk/verdocs-view.entry.js +16118 -0
  397. package/dist/verdocs-web-sdk/verdocs-view.system.entry.js +23 -0
  398. package/dist/verdocs-web-sdk/verdocs-web-sdk.css +57 -1
  399. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +129 -1
  400. package/dist/verdocs-web-sdk/verdocs-web-sdk.js +1 -1
  401. package/dist/verdocs-web-sdk/verdocs-web-sdk.system.js +1 -0
  402. package/package.json +34 -31
  403. package/dist/cjs/Auth-0ba9a04b.js +0 -68
  404. package/dist/cjs/index-01e27102.js +0 -1287
  405. package/dist/cjs/verdocs-button_2.cjs.entry.js +0 -98
  406. package/dist/cjs/verdocs-document-status.cjs.entry.js +0 -54
  407. package/dist/collection/components/controls/verdocs-document-status/check.svg +0 -3
  408. package/dist/collection/components/controls/verdocs-document-status/pending.svg +0 -1
  409. package/dist/collection/components/controls/verdocs-document-status/stop.svg +0 -1
  410. package/dist/collection/components/controls/verdocs-document-status/verdocs-document-status.css +0 -18
  411. package/dist/collection/components/controls/verdocs-document-status/verdocs-document-status.js +0 -70
  412. package/dist/collection/components/controls/verdocs-document-status/verdocs-document-status.stories.js +0 -15
  413. package/dist/collection/components/controls/verdocs-document-status/x.svg +0 -1
  414. package/dist/custom-elements/index.d.ts +0 -225
  415. package/dist/esm/Auth-16761ea6.js +0 -64
  416. package/dist/esm/index-ade0ef1e.js +0 -1259
  417. package/dist/esm/verdocs-button_2.entry.js +0 -93
  418. package/dist/esm/verdocs-document-status.entry.js +0 -50
  419. package/dist/esm-es5/Auth-16761ea6.js +0 -1
  420. package/dist/esm-es5/Token-b82a8ea3.js +0 -1
  421. package/dist/esm-es5/buffer-es6-681a33da.js +0 -7
  422. package/dist/esm-es5/index-2b1938ea.js +0 -1
  423. package/dist/esm-es5/index-ade0ef1e.js +0 -1
  424. package/dist/esm-es5/verdocs-button_2.entry.js +0 -1
  425. package/dist/esm-es5/verdocs-document-status.entry.js +0 -1
  426. package/dist/esm-es5/verdocs-dropdown_12.entry.js +0 -23
  427. package/dist/esm-es5/verdocs-search-activity_2.entry.js +0 -1
  428. package/dist/types/components/controls/verdocs-document-status/verdocs-document-status.d.ts +0 -11
  429. package/dist/verdocs-web-sdk/p-063c4c71.entry.js +0 -1
  430. package/dist/verdocs-web-sdk/p-10e7c953.system.entry.js +0 -1
  431. package/dist/verdocs-web-sdk/p-183c7338.entry.js +0 -1
  432. package/dist/verdocs-web-sdk/p-25a138c4.entry.js +0 -1
  433. package/dist/verdocs-web-sdk/p-28b3017f.entry.js +0 -1
  434. package/dist/verdocs-web-sdk/p-29abe078.js +0 -1
  435. package/dist/verdocs-web-sdk/p-2ec1d8d8.entry.js +0 -1
  436. package/dist/verdocs-web-sdk/p-3ced6e3a.system.js +0 -1
  437. package/dist/verdocs-web-sdk/p-41383ebc.system.entry.js +0 -1
  438. package/dist/verdocs-web-sdk/p-44b75396.system.js +0 -1
  439. package/dist/verdocs-web-sdk/p-48b73707.system.entry.js +0 -1
  440. package/dist/verdocs-web-sdk/p-4bfe13e6.system.entry.js +0 -1
  441. package/dist/verdocs-web-sdk/p-556f577f.system.js +0 -1
  442. package/dist/verdocs-web-sdk/p-6e95da9d.js +0 -1
  443. package/dist/verdocs-web-sdk/p-6ef8ca10.system.entry.js +0 -1
  444. package/dist/verdocs-web-sdk/p-72ebb6e3.system.entry.js +0 -1
  445. package/dist/verdocs-web-sdk/p-817302a8.entry.js +0 -1
  446. package/dist/verdocs-web-sdk/p-8a1b9ad0.entry.js +0 -1
  447. package/dist/verdocs-web-sdk/p-91f87fa8.system.entry.js +0 -1
  448. package/dist/verdocs-web-sdk/p-95880bac.entry.js +0 -1
  449. package/dist/verdocs-web-sdk/p-9e0a07a7.js +0 -1
  450. package/dist/verdocs-web-sdk/p-a0fcbe6e.system.entry.js +0 -1
  451. package/dist/verdocs-web-sdk/p-ae37b970.entry.js +0 -1
  452. package/dist/verdocs-web-sdk/p-b3c30059.system.js +0 -1
  453. package/dist/verdocs-web-sdk/p-b567001f.entry.js +0 -1
  454. package/dist/verdocs-web-sdk/p-b8f5af91.system.entry.js +0 -1
  455. package/dist/verdocs-web-sdk/p-bc61d0ce.entry.js +0 -23
  456. package/dist/verdocs-web-sdk/p-c4add613.entry.js +0 -1
  457. package/dist/verdocs-web-sdk/p-ccad2089.system.entry.js +0 -1
  458. package/dist/verdocs-web-sdk/p-cec7e9ea.js +0 -1
  459. package/dist/verdocs-web-sdk/p-cfb1cad1.system.entry.js +0 -1
  460. package/dist/verdocs-web-sdk/p-d3a4e22e.system.entry.js +0 -1
  461. package/dist/verdocs-web-sdk/p-d3ae5318.system.entry.js +0 -1
  462. package/dist/verdocs-web-sdk/p-d9474f48.system.js +0 -7
  463. package/dist/verdocs-web-sdk/p-dc1f3572.entry.js +0 -1
  464. package/dist/verdocs-web-sdk/p-dcf25d2c.system.entry.js +0 -23
  465. package/dist/verdocs-web-sdk/p-df4ae522.entry.js +0 -1
  466. package/dist/verdocs-web-sdk/p-e0091c19.system.entry.js +0 -1
  467. package/dist/verdocs-web-sdk/p-e1887a75.system.entry.js +0 -1
  468. package/dist/verdocs-web-sdk/p-e9f5d6a6.js +0 -1
  469. package/dist/verdocs-web-sdk/p-ee14709c.system.js +0 -1
  470. package/dist/verdocs-web-sdk/p-efffddab.system.entry.js +0 -1
  471. package/dist/verdocs-web-sdk/p-f0d20c75.entry.js +0 -1
  472. package/dist/verdocs-web-sdk/p-f35c796c.entry.js +0 -1
  473. package/dist/verdocs-web-sdk/p-f5109d69.entry.js +0 -1
  474. package/dist/verdocs-web-sdk/p-f6938563.system.entry.js +0 -1
  475. package/dist/verdocs-web-sdk/p-fa8ae849.entry.js +0 -1
@@ -1,58 +1,9 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-4bf5cc66.js');
3
+ const index = require('./index-c4be37e1.js');
4
+ const bufferEs6 = require('./buffer-es6-b2c1c885.js');
4
5
 
5
- // This file provides a polyfill for managing globals in both NodeJS and browser environments. This is
6
- // an anti-pattern we'd hoped to avoid, but we have several projects dependending on one common library
7
- // (this js-sdk) and we want that library to provide a common endpoint to all callers (so authentication
8
- // tokens only need to be tracked in one place). The trouble is, one of those libraries is based on
9
- // StencilJS and is compiling its modules into Web Components. Because of how module resolution works,
10
- // when those Components load js-sdk they get a separate instance. Without messy options like having to
11
- // pass raw data from the caller to each Component, or pass around references to a common Endpoint, they
12
- // have no way to access authenticated sessions unless we make the Endpoint a true global.
13
- //
14
- // @credit https://github.com/medikoo/es5-ext/blob/master/global.js
15
- // @credit https://mathiasbynens.be/notes/globalthis
16
- var naiveFallback = function () {
17
- if (typeof self === 'object' && self)
18
- return self;
19
- if (typeof window === 'object' && window)
20
- return window;
21
- throw new Error('Unable to resolve global `this`');
22
- };
23
- var globalThis_1 = (function () {
24
- if (this)
25
- return this;
26
- // Unexpected strict mode (may happen if e.g. bundled into ESM module)
27
- // Fallback to standard globalThis if available
28
- if (typeof globalThis === 'object' && globalThis)
29
- return globalThis;
30
- // Thanks @mathiasbynens -> https://mathiasbynens.be/notes/globalthis
31
- // In all ES5+ engines global object inherits from Object.prototype
32
- // (if you approached one that doesn't please report)
33
- try {
34
- Object.defineProperty(Object.prototype, '__global__', {
35
- get: function () {
36
- return this;
37
- },
38
- configurable: true,
39
- });
40
- }
41
- catch (error) {
42
- // Unfortunate case of updates to Object.prototype being restricted
43
- // via preventExtensions, seal or freeze
44
- return naiveFallback();
45
- }
46
- try {
47
- // Safari case (window.__global__ works, but __global__ does not)
48
- if (!__global__)
49
- return naiveFallback();
50
- return __global__;
51
- }
52
- finally {
53
- delete Object.prototype.__global__;
54
- }
55
- })();
6
+ 'use strict';
56
7
 
57
8
  var bind = function bind(fn, thisArg) {
58
9
  return function wrap() {
@@ -64,10 +15,30 @@ var bind = function bind(fn, thisArg) {
64
15
  };
65
16
  };
66
17
 
18
+ 'use strict';
19
+
20
+
21
+
67
22
  // utils is a library of generic helper functions non-specific to axios
68
23
 
69
24
  var toString = Object.prototype.toString;
70
25
 
26
+ // eslint-disable-next-line func-names
27
+ var kindOf = (function(cache) {
28
+ // eslint-disable-next-line func-names
29
+ return function(thing) {
30
+ var str = toString.call(thing);
31
+ return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
32
+ };
33
+ })(Object.create(null));
34
+
35
+ function kindOfTest(type) {
36
+ type = type.toLowerCase();
37
+ return function isKindOf(thing) {
38
+ return kindOf(thing) === type;
39
+ };
40
+ }
41
+
71
42
  /**
72
43
  * Determine if a value is an Array
73
44
  *
@@ -102,22 +73,12 @@ function isBuffer(val) {
102
73
  /**
103
74
  * Determine if a value is an ArrayBuffer
104
75
  *
76
+ * @function
105
77
  * @param {Object} val The value to test
106
78
  * @returns {boolean} True if value is an ArrayBuffer, otherwise false
107
79
  */
108
- function isArrayBuffer(val) {
109
- return toString.call(val) === '[object ArrayBuffer]';
110
- }
80
+ var isArrayBuffer = kindOfTest('ArrayBuffer');
111
81
 
112
- /**
113
- * Determine if a value is a FormData
114
- *
115
- * @param {Object} val The value to test
116
- * @returns {boolean} True if value is an FormData, otherwise false
117
- */
118
- function isFormData(val) {
119
- return toString.call(val) === '[object FormData]';
120
- }
121
82
 
122
83
  /**
123
84
  * Determine if a value is a view on an ArrayBuffer
@@ -172,7 +133,7 @@ function isObject(val) {
172
133
  * @return {boolean} True if value is a plain Object, otherwise false
173
134
  */
174
135
  function isPlainObject(val) {
175
- if (toString.call(val) !== '[object Object]') {
136
+ if (kindOf(val) !== 'object') {
176
137
  return false;
177
138
  }
178
139
 
@@ -183,32 +144,38 @@ function isPlainObject(val) {
183
144
  /**
184
145
  * Determine if a value is a Date
185
146
  *
147
+ * @function
186
148
  * @param {Object} val The value to test
187
149
  * @returns {boolean} True if value is a Date, otherwise false
188
150
  */
189
- function isDate(val) {
190
- return toString.call(val) === '[object Date]';
191
- }
151
+ var isDate = kindOfTest('Date');
192
152
 
193
153
  /**
194
154
  * Determine if a value is a File
195
155
  *
156
+ * @function
196
157
  * @param {Object} val The value to test
197
158
  * @returns {boolean} True if value is a File, otherwise false
198
159
  */
199
- function isFile(val) {
200
- return toString.call(val) === '[object File]';
201
- }
160
+ var isFile = kindOfTest('File');
202
161
 
203
162
  /**
204
163
  * Determine if a value is a Blob
205
164
  *
165
+ * @function
206
166
  * @param {Object} val The value to test
207
167
  * @returns {boolean} True if value is a Blob, otherwise false
208
168
  */
209
- function isBlob(val) {
210
- return toString.call(val) === '[object Blob]';
211
- }
169
+ var isBlob = kindOfTest('Blob');
170
+
171
+ /**
172
+ * Determine if a value is a FileList
173
+ *
174
+ * @function
175
+ * @param {Object} val The value to test
176
+ * @returns {boolean} True if value is a File, otherwise false
177
+ */
178
+ var isFileList = kindOfTest('FileList');
212
179
 
213
180
  /**
214
181
  * Determine if a value is a Function
@@ -231,14 +198,27 @@ function isStream(val) {
231
198
  }
232
199
 
233
200
  /**
234
- * Determine if a value is a URLSearchParams object
201
+ * Determine if a value is a FormData
235
202
  *
203
+ * @param {Object} thing The value to test
204
+ * @returns {boolean} True if value is an FormData, otherwise false
205
+ */
206
+ function isFormData(thing) {
207
+ var pattern = '[object FormData]';
208
+ return thing && (
209
+ (typeof FormData === 'function' && thing instanceof FormData) ||
210
+ toString.call(thing) === pattern ||
211
+ (isFunction(thing.toString) && thing.toString() === pattern)
212
+ );
213
+ }
214
+
215
+ /**
216
+ * Determine if a value is a URLSearchParams object
217
+ * @function
236
218
  * @param {Object} val The value to test
237
219
  * @returns {boolean} True if value is a URLSearchParams object, otherwise false
238
220
  */
239
- function isURLSearchParams(val) {
240
- return toString.call(val) === '[object URLSearchParams]';
241
- }
221
+ var isURLSearchParams = kindOfTest('URLSearchParams');
242
222
 
243
223
  /**
244
224
  * Trim excess whitespace off the beginning and end of a string
@@ -385,6 +365,94 @@ function stripBOM(content) {
385
365
  return content;
386
366
  }
387
367
 
368
+ /**
369
+ * Inherit the prototype methods from one constructor into another
370
+ * @param {function} constructor
371
+ * @param {function} superConstructor
372
+ * @param {object} [props]
373
+ * @param {object} [descriptors]
374
+ */
375
+
376
+ function inherits(constructor, superConstructor, props, descriptors) {
377
+ constructor.prototype = Object.create(superConstructor.prototype, descriptors);
378
+ constructor.prototype.constructor = constructor;
379
+ props && Object.assign(constructor.prototype, props);
380
+ }
381
+
382
+ /**
383
+ * Resolve object with deep prototype chain to a flat object
384
+ * @param {Object} sourceObj source object
385
+ * @param {Object} [destObj]
386
+ * @param {Function} [filter]
387
+ * @returns {Object}
388
+ */
389
+
390
+ function toFlatObject(sourceObj, destObj, filter) {
391
+ var props;
392
+ var i;
393
+ var prop;
394
+ var merged = {};
395
+
396
+ destObj = destObj || {};
397
+
398
+ do {
399
+ props = Object.getOwnPropertyNames(sourceObj);
400
+ i = props.length;
401
+ while (i-- > 0) {
402
+ prop = props[i];
403
+ if (!merged[prop]) {
404
+ destObj[prop] = sourceObj[prop];
405
+ merged[prop] = true;
406
+ }
407
+ }
408
+ sourceObj = Object.getPrototypeOf(sourceObj);
409
+ } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);
410
+
411
+ return destObj;
412
+ }
413
+
414
+ /*
415
+ * determines whether a string ends with the characters of a specified string
416
+ * @param {String} str
417
+ * @param {String} searchString
418
+ * @param {Number} [position= 0]
419
+ * @returns {boolean}
420
+ */
421
+ function endsWith(str, searchString, position) {
422
+ str = String(str);
423
+ if (position === undefined || position > str.length) {
424
+ position = str.length;
425
+ }
426
+ position -= searchString.length;
427
+ var lastIndex = str.indexOf(searchString, position);
428
+ return lastIndex !== -1 && lastIndex === position;
429
+ }
430
+
431
+
432
+ /**
433
+ * Returns new array from array like object
434
+ * @param {*} [thing]
435
+ * @returns {Array}
436
+ */
437
+ function toArray(thing) {
438
+ if (!thing) return null;
439
+ var i = thing.length;
440
+ if (isUndefined(i)) return null;
441
+ var arr = new Array(i);
442
+ while (i-- > 0) {
443
+ arr[i] = thing[i];
444
+ }
445
+ return arr;
446
+ }
447
+
448
+ // eslint-disable-next-line func-names
449
+ var isTypedArray = (function(TypedArray) {
450
+ // eslint-disable-next-line func-names
451
+ return function(thing) {
452
+ return TypedArray && thing instanceof TypedArray;
453
+ };
454
+ })(typeof Uint8Array !== 'undefined' && Object.getPrototypeOf(Uint8Array));
455
+
388
456
  var utils = {
389
457
  isArray: isArray,
390
458
  isArrayBuffer: isArrayBuffer,
@@ -407,9 +475,21 @@ var utils = {
407
475
  merge: merge,
408
476
  extend: extend,
409
477
  trim: trim,
410
- stripBOM: stripBOM
478
+ stripBOM: stripBOM,
479
+ inherits: inherits,
480
+ toFlatObject: toFlatObject,
481
+ kindOf: kindOf,
482
+ kindOfTest: kindOfTest,
483
+ endsWith: endsWith,
484
+ toArray: toArray,
485
+ isTypedArray: isTypedArray,
486
+ isFileList: isFileList
411
487
  };
412
488
 
489
+ 'use strict';
490
+
491
+
492
+
413
493
  function encode(val) {
414
494
  return encodeURIComponent(val).
415
495
  replace(/%3A/gi, ':').
@@ -477,6 +557,10 @@ var buildURL = function buildURL(url, params, paramsSerializer) {
477
557
  return url;
478
558
  };
479
559
 
560
+ 'use strict';
561
+
562
+
563
+
480
564
  function InterceptorManager() {
481
565
  this.handlers = [];
482
566
  }
@@ -528,6 +612,10 @@ InterceptorManager.prototype.forEach = function forEach(fn) {
528
612
 
529
613
  var InterceptorManager_1 = InterceptorManager;
530
614
 
615
+ 'use strict';
616
+
617
+
618
+
531
619
  var normalizeHeaderName = function normalizeHeaderName(headers, normalizedName) {
532
620
  utils.forEach(headers, function processHeader(value, name) {
533
621
  if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {
@@ -537,27 +625,32 @@ var normalizeHeaderName = function normalizeHeaderName(headers, normalizedName)
537
625
  });
538
626
  };
539
627
 
628
+ 'use strict';
629
+
630
+
631
+
540
632
  /**
541
- * Update an Error with the specified config, error code, and response.
633
+ * Create an Error with the specified message, config, error code, request and response.
542
634
  *
543
- * @param {Error} error The error to update.
544
- * @param {Object} config The config.
635
+ * @param {string} message The error message.
545
636
  * @param {string} [code] The error code (for example, 'ECONNABORTED').
637
+ * @param {Object} [config] The config.
546
638
  * @param {Object} [request] The request.
547
639
  * @param {Object} [response] The response.
548
- * @returns {Error} The error.
640
+ * @returns {Error} The created error.
549
641
  */
550
- var enhanceError = function enhanceError(error, config, code, request, response) {
551
- error.config = config;
552
- if (code) {
553
- error.code = code;
554
- }
555
-
556
- error.request = request;
557
- error.response = response;
558
- error.isAxiosError = true;
642
+ function AxiosError(message, code, config, request, response) {
643
+ Error.call(this);
644
+ this.message = message;
645
+ this.name = 'AxiosError';
646
+ code && (this.code = code);
647
+ config && (this.config = config);
648
+ request && (this.request = request);
649
+ response && (this.response = response);
650
+ }
559
651
 
560
- error.toJSON = function toJSON() {
652
+ utils.inherits(AxiosError, Error, {
653
+ toJSON: function toJSON() {
561
654
  return {
562
655
  // Standard
563
656
  message: this.message,
@@ -575,25 +668,135 @@ var enhanceError = function enhanceError(error, config, code, request, response)
575
668
  code: this.code,
576
669
  status: this.response && this.response.status ? this.response.status : null
577
670
  };
578
- };
579
- return error;
671
+ }
672
+ });
673
+
674
+ var prototype = AxiosError.prototype;
675
+ var descriptors = {};
676
+
677
+ [
678
+ 'ERR_BAD_OPTION_VALUE',
679
+ 'ERR_BAD_OPTION',
680
+ 'ECONNABORTED',
681
+ 'ETIMEDOUT',
682
+ 'ERR_NETWORK',
683
+ 'ERR_FR_TOO_MANY_REDIRECTS',
684
+ 'ERR_DEPRECATED',
685
+ 'ERR_BAD_RESPONSE',
686
+ 'ERR_BAD_REQUEST',
687
+ 'ERR_CANCELED'
688
+ // eslint-disable-next-line func-names
689
+ ].forEach(function(code) {
690
+ descriptors[code] = {value: code};
691
+ });
692
+
693
+ Object.defineProperties(AxiosError, descriptors);
694
+ Object.defineProperty(prototype, 'isAxiosError', {value: true});
695
+
696
+ // eslint-disable-next-line func-names
697
+ AxiosError.from = function(error, code, config, request, response, customProps) {
698
+ var axiosError = Object.create(prototype);
699
+
700
+ utils.toFlatObject(error, axiosError, function filter(obj) {
701
+ return obj !== Error.prototype;
702
+ });
703
+
704
+ AxiosError.call(axiosError, error.message, code, config, request, response);
705
+
706
+ axiosError.name = error.name;
707
+
708
+ customProps && Object.assign(axiosError, customProps);
709
+
710
+ return axiosError;
580
711
  };
581
712
 
582
- /**
583
- * Create an Error with the specified message, config, error code, request and response.
584
- *
585
- * @param {string} message The error message.
586
- * @param {Object} config The config.
587
- * @param {string} [code] The error code (for example, 'ECONNABORTED').
588
- * @param {Object} [request] The request.
589
- * @param {Object} [response] The response.
590
- * @returns {Error} The created error.
591
- */
592
- var createError = function createError(message, config, code, request, response) {
593
- var error = new Error(message);
594
- return enhanceError(error, config, code, request, response);
713
+ var AxiosError_1 = AxiosError;
714
+
715
+ 'use strict';
716
+
717
+ var transitional = {
718
+ silentJSONParsing: true,
719
+ forcedJSONParsing: true,
720
+ clarifyTimeoutError: false
595
721
  };
596
722
 
723
+ 'use strict';
724
+
725
+
726
+
727
+ /**
728
+ * Convert a data object to FormData
729
+ * @param {Object} obj
730
+ * @param {?Object} [formData]
731
+ * @returns {Object}
732
+ **/
733
+
734
+ function toFormData(obj, formData) {
735
+ // eslint-disable-next-line no-param-reassign
736
+ formData = formData || new FormData();
737
+
738
+ var stack = [];
739
+
740
+ function convertValue(value) {
741
+ if (value === null) return '';
742
+
743
+ if (utils.isDate(value)) {
744
+ return value.toISOString();
745
+ }
746
+
747
+ if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {
748
+ return typeof Blob === 'function' ? new Blob([value]) : bufferEs6.Buffer.from(value);
749
+ }
750
+
751
+ return value;
752
+ }
753
+
754
+ function build(data, parentKey) {
755
+ if (utils.isPlainObject(data) || utils.isArray(data)) {
756
+ if (stack.indexOf(data) !== -1) {
757
+ throw Error('Circular reference detected in ' + parentKey);
758
+ }
759
+
760
+ stack.push(data);
761
+
762
+ utils.forEach(data, function each(value, key) {
763
+ if (utils.isUndefined(value)) return;
764
+ var fullKey = parentKey ? parentKey + '.' + key : key;
765
+ var arr;
766
+
767
+ if (value && !parentKey && typeof value === 'object') {
768
+ if (utils.endsWith(key, '{}')) {
769
+ // eslint-disable-next-line no-param-reassign
770
+ value = JSON.stringify(value);
771
+ } else if (utils.endsWith(key, '[]') && (arr = utils.toArray(value))) {
772
+ // eslint-disable-next-line func-names
773
+ arr.forEach(function(el) {
774
+ !utils.isUndefined(el) && formData.append(fullKey, convertValue(el));
775
+ });
776
+ return;
777
+ }
778
+ }
779
+
780
+ build(value, fullKey);
781
+ });
782
+
783
+ stack.pop();
784
+ } else {
785
+ formData.append(parentKey, convertValue(data));
786
+ }
787
+ }
788
+
789
+ build(obj);
790
+
791
+ return formData;
792
+ }
793
+
794
+ var toFormData_1 = toFormData;
795
+
796
+ 'use strict';
797
+
798
+
799
+
597
800
  /**
598
801
  * Resolve or reject a Promise based on response status.
599
802
  *
@@ -606,16 +809,20 @@ var settle = function settle(resolve, reject, response) {
606
809
  if (!response.status || !validateStatus || validateStatus(response.status)) {
607
810
  resolve(response);
608
811
  } else {
609
- reject(createError(
812
+ reject(new AxiosError_1(
610
813
  'Request failed with status code ' + response.status,
814
+ [AxiosError_1.ERR_BAD_REQUEST, AxiosError_1.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
611
815
  response.config,
612
- null,
613
816
  response.request,
614
817
  response
615
818
  ));
616
819
  }
617
820
  };
618
821
 
822
+ 'use strict';
823
+
824
+
825
+
619
826
  var cookies = (
620
827
  utils.isStandardBrowserEnv() ?
621
828
 
@@ -666,6 +873,8 @@ var cookies = (
666
873
  })()
667
874
  );
668
875
 
876
+ 'use strict';
877
+
669
878
  /**
670
879
  * Determines whether the specified URL is absolute
671
880
  *
@@ -679,6 +888,8 @@ var isAbsoluteURL = function isAbsoluteURL(url) {
679
888
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
680
889
  };
681
890
 
891
+ 'use strict';
892
+
682
893
  /**
683
894
  * Creates a new URL by combining the specified URLs
684
895
  *
@@ -692,6 +903,11 @@ var combineURLs = function combineURLs(baseURL, relativeURL) {
692
903
  : baseURL;
693
904
  };
694
905
 
906
+ 'use strict';
907
+
908
+
909
+
910
+
695
911
  /**
696
912
  * Creates a new URL by combining the baseURL with the requestedURL,
697
913
  * only when the requestedURL is not already an absolute URL.
@@ -708,6 +924,10 @@ var buildFullPath = function buildFullPath(baseURL, requestedURL) {
708
924
  return requestedURL;
709
925
  };
710
926
 
927
+ 'use strict';
928
+
929
+
930
+
711
931
  // Headers whose duplicates are ignored by node
712
932
  // c.f. https://nodejs.org/api/http.html#http_message_headers
713
933
  var ignoreDuplicateOf = [
@@ -758,6 +978,10 @@ var parseHeaders = function parseHeaders(headers) {
758
978
  return parsed;
759
979
  };
760
980
 
981
+ 'use strict';
982
+
983
+
984
+
761
985
  var isURLSameOrigin = (
762
986
  utils.isStandardBrowserEnv() ?
763
987
 
@@ -823,23 +1047,49 @@ var isURLSameOrigin = (
823
1047
  })()
824
1048
  );
825
1049
 
1050
+ 'use strict';
1051
+
1052
+
1053
+
1054
+
826
1055
  /**
827
- * A `Cancel` is an object that is thrown when an operation is canceled.
1056
+ * A `CanceledError` is an object that is thrown when an operation is canceled.
828
1057
  *
829
1058
  * @class
830
1059
  * @param {string=} message The message.
831
1060
  */
832
- function Cancel(message) {
833
- this.message = message;
1061
+ function CanceledError(message) {
1062
+ // eslint-disable-next-line no-eq-null,eqeqeq
1063
+ AxiosError_1.call(this, message == null ? 'canceled' : message, AxiosError_1.ERR_CANCELED);
1064
+ this.name = 'CanceledError';
834
1065
  }
835
1066
 
836
- Cancel.prototype.toString = function toString() {
837
- return 'Cancel' + (this.message ? ': ' + this.message : '');
1067
+ utils.inherits(CanceledError, AxiosError_1, {
1068
+ __CANCEL__: true
1069
+ });
1070
+
1071
+ var CanceledError_1 = CanceledError;
1072
+
1073
+ 'use strict';
1074
+
1075
+ var parseProtocol = function parseProtocol(url) {
1076
+ var match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
1077
+ return match && match[1] || '';
838
1078
  };
839
1079
 
840
- Cancel.prototype.__CANCEL__ = true;
1080
+ 'use strict';
1081
+
1082
+
1083
+
1084
+
1085
+
1086
+
1087
+
1088
+
1089
+
1090
+
1091
+
841
1092
 
842
- var Cancel_1 = Cancel;
843
1093
 
844
1094
  var xhr = function xhrAdapter(config) {
845
1095
  return new Promise(function dispatchXhrRequest(resolve, reject) {
@@ -857,7 +1107,7 @@ var xhr = function xhrAdapter(config) {
857
1107
  }
858
1108
  }
859
1109
 
860
- if (utils.isFormData(requestData)) {
1110
+ if (utils.isFormData(requestData) && utils.isStandardBrowserEnv()) {
861
1111
  delete requestHeaders['Content-Type']; // Let the browser set it
862
1112
  }
863
1113
 
@@ -871,6 +1121,7 @@ var xhr = function xhrAdapter(config) {
871
1121
  }
872
1122
 
873
1123
  var fullPath = buildFullPath(config.baseURL, config.url);
1124
+
874
1125
  request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
875
1126
 
876
1127
  // Set the request timeout in MS
@@ -934,7 +1185,7 @@ var xhr = function xhrAdapter(config) {
934
1185
  return;
935
1186
  }
936
1187
 
937
- reject(createError('Request aborted', config, 'ECONNABORTED', request));
1188
+ reject(new AxiosError_1('Request aborted', AxiosError_1.ECONNABORTED, config, request));
938
1189
 
939
1190
  // Clean up request
940
1191
  request = null;
@@ -944,7 +1195,7 @@ var xhr = function xhrAdapter(config) {
944
1195
  request.onerror = function handleError() {
945
1196
  // Real errors are hidden from us by the browser
946
1197
  // onerror should only fire if it's a network error
947
- reject(createError('Network Error', config, null, request));
1198
+ reject(new AxiosError_1('Network Error', AxiosError_1.ERR_NETWORK, config, request, request));
948
1199
 
949
1200
  // Clean up request
950
1201
  request = null;
@@ -953,14 +1204,14 @@ var xhr = function xhrAdapter(config) {
953
1204
  // Handle timeout
954
1205
  request.ontimeout = function handleTimeout() {
955
1206
  var timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';
956
- var transitional = config.transitional || defaults_1.transitional;
1207
+ var transitional$1 = config.transitional || transitional;
957
1208
  if (config.timeoutErrorMessage) {
958
1209
  timeoutErrorMessage = config.timeoutErrorMessage;
959
1210
  }
960
- reject(createError(
1211
+ reject(new AxiosError_1(
961
1212
  timeoutErrorMessage,
1213
+ transitional$1.clarifyTimeoutError ? AxiosError_1.ETIMEDOUT : AxiosError_1.ECONNABORTED,
962
1214
  config,
963
- transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',
964
1215
  request));
965
1216
 
966
1217
  // Clean up request
@@ -1021,7 +1272,7 @@ var xhr = function xhrAdapter(config) {
1021
1272
  if (!request) {
1022
1273
  return;
1023
1274
  }
1024
- reject(!cancel || (cancel && cancel.type) ? new Cancel_1('canceled') : cancel);
1275
+ reject(!cancel || (cancel && cancel.type) ? new CanceledError_1() : cancel);
1025
1276
  request.abort();
1026
1277
  request = null;
1027
1278
  };
@@ -1036,11 +1287,30 @@ var xhr = function xhrAdapter(config) {
1036
1287
  requestData = null;
1037
1288
  }
1038
1289
 
1290
+ var protocol = parseProtocol(fullPath);
1291
+
1292
+ if (protocol && [ 'http', 'https', 'file' ].indexOf(protocol) === -1) {
1293
+ reject(new AxiosError_1('Unsupported protocol ' + protocol + ':', AxiosError_1.ERR_BAD_REQUEST, config));
1294
+ return;
1295
+ }
1296
+
1297
+
1039
1298
  // Send the request
1040
1299
  request.send(requestData);
1041
1300
  });
1042
1301
  };
1043
1302
 
1303
+ // eslint-disable-next-line strict
1304
+ var _null = null;
1305
+
1306
+ 'use strict';
1307
+
1308
+
1309
+
1310
+
1311
+
1312
+
1313
+
1044
1314
  var DEFAULT_CONTENT_TYPE = {
1045
1315
  'Content-Type': 'application/x-www-form-urlencoded'
1046
1316
  };
@@ -1080,11 +1350,7 @@ function stringifySafely(rawValue, parser, encoder) {
1080
1350
 
1081
1351
  var defaults = {
1082
1352
 
1083
- transitional: {
1084
- silentJSONParsing: true,
1085
- forcedJSONParsing: true,
1086
- clarifyTimeoutError: false
1087
- },
1353
+ transitional: transitional,
1088
1354
 
1089
1355
  adapter: getDefaultAdapter(),
1090
1356
 
@@ -1108,10 +1374,20 @@ var defaults = {
1108
1374
  setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');
1109
1375
  return data.toString();
1110
1376
  }
1111
- if (utils.isObject(data) || (headers && headers['Content-Type'] === 'application/json')) {
1377
+
1378
+ var isObjectPayload = utils.isObject(data);
1379
+ var contentType = headers && headers['Content-Type'];
1380
+
1381
+ var isFileList;
1382
+
1383
+ if ((isFileList = utils.isFileList(data)) || (isObjectPayload && contentType === 'multipart/form-data')) {
1384
+ var _FormData = this.env && this.env.FormData;
1385
+ return toFormData_1(isFileList ? {'files[]': data} : data, _FormData && new _FormData());
1386
+ } else if (isObjectPayload || contentType === 'application/json') {
1112
1387
  setContentTypeIfUnset(headers, 'application/json');
1113
1388
  return stringifySafely(data);
1114
1389
  }
1390
+
1115
1391
  return data;
1116
1392
  }],
1117
1393
 
@@ -1127,7 +1403,7 @@ var defaults = {
1127
1403
  } catch (e) {
1128
1404
  if (strictJSONParsing) {
1129
1405
  if (e.name === 'SyntaxError') {
1130
- throw enhanceError(e, this, 'E_JSON_PARSE');
1406
+ throw AxiosError_1.from(e, AxiosError_1.ERR_BAD_RESPONSE, this, null, this.response);
1131
1407
  }
1132
1408
  throw e;
1133
1409
  }
@@ -1149,6 +1425,10 @@ var defaults = {
1149
1425
  maxContentLength: -1,
1150
1426
  maxBodyLength: -1,
1151
1427
 
1428
+ env: {
1429
+ FormData: _null
1430
+ },
1431
+
1152
1432
  validateStatus: function validateStatus(status) {
1153
1433
  return status >= 200 && status < 300;
1154
1434
  },
@@ -1170,6 +1450,11 @@ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
1170
1450
 
1171
1451
  var defaults_1 = defaults;
1172
1452
 
1453
+ 'use strict';
1454
+
1455
+
1456
+
1457
+
1173
1458
  /**
1174
1459
  * Transform the data for a request or a response
1175
1460
  *
@@ -1188,12 +1473,22 @@ var transformData = function transformData(data, headers, fns) {
1188
1473
  return data;
1189
1474
  };
1190
1475
 
1476
+ 'use strict';
1477
+
1191
1478
  var isCancel = function isCancel(value) {
1192
1479
  return !!(value && value.__CANCEL__);
1193
1480
  };
1194
1481
 
1482
+ 'use strict';
1483
+
1484
+
1485
+
1486
+
1487
+
1488
+
1489
+
1195
1490
  /**
1196
- * Throws a `Cancel` if cancellation has been requested.
1491
+ * Throws a `CanceledError` if cancellation has been requested.
1197
1492
  */
1198
1493
  function throwIfCancellationRequested(config) {
1199
1494
  if (config.cancelToken) {
@@ -1201,7 +1496,7 @@ function throwIfCancellationRequested(config) {
1201
1496
  }
1202
1497
 
1203
1498
  if (config.signal && config.signal.aborted) {
1204
- throw new Cancel_1('canceled');
1499
+ throw new CanceledError_1();
1205
1500
  }
1206
1501
  }
1207
1502
 
@@ -1272,6 +1567,10 @@ var dispatchRequest = function dispatchRequest(config) {
1272
1567
  });
1273
1568
  };
1274
1569
 
1570
+ 'use strict';
1571
+
1572
+
1573
+
1275
1574
  /**
1276
1575
  * Config-specific merge-function which creates a new config-object
1277
1576
  * by merging two configuration objects together.
@@ -1350,6 +1649,7 @@ var mergeConfig = function mergeConfig(config1, config2) {
1350
1649
  'decompress': defaultToConfig2,
1351
1650
  'maxContentLength': defaultToConfig2,
1352
1651
  'maxBodyLength': defaultToConfig2,
1652
+ 'beforeRedirect': defaultToConfig2,
1353
1653
  'transport': defaultToConfig2,
1354
1654
  'httpAgent': defaultToConfig2,
1355
1655
  'httpsAgent': defaultToConfig2,
@@ -1369,11 +1669,14 @@ var mergeConfig = function mergeConfig(config1, config2) {
1369
1669
  };
1370
1670
 
1371
1671
  var data = {
1372
- "version": "0.25.0"
1672
+ "version": "0.27.2"
1373
1673
  };
1374
1674
 
1675
+ 'use strict';
1676
+
1375
1677
  var VERSION = data.version;
1376
1678
 
1679
+
1377
1680
  var validators$1 = {};
1378
1681
 
1379
1682
  // eslint-disable-next-line func-names
@@ -1400,7 +1703,10 @@ validators$1.transitional = function transitional(validator, version, message) {
1400
1703
  // eslint-disable-next-line func-names
1401
1704
  return function(value, opt, opts) {
1402
1705
  if (validator === false) {
1403
- throw new Error(formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')));
1706
+ throw new AxiosError_1(
1707
+ formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),
1708
+ AxiosError_1.ERR_DEPRECATED
1709
+ );
1404
1710
  }
1405
1711
 
1406
1712
  if (version && !deprecatedWarnings[opt]) {
@@ -1427,7 +1733,7 @@ validators$1.transitional = function transitional(validator, version, message) {
1427
1733
 
1428
1734
  function assertOptions(options, schema, allowUnknown) {
1429
1735
  if (typeof options !== 'object') {
1430
- throw new TypeError('options must be an object');
1736
+ throw new AxiosError_1('options must be an object', AxiosError_1.ERR_BAD_OPTION_VALUE);
1431
1737
  }
1432
1738
  var keys = Object.keys(options);
1433
1739
  var i = keys.length;
@@ -1438,12 +1744,12 @@ function assertOptions(options, schema, allowUnknown) {
1438
1744
  var value = options[opt];
1439
1745
  var result = value === undefined || validator(value, opt, options);
1440
1746
  if (result !== true) {
1441
- throw new TypeError('option ' + opt + ' must be ' + result);
1747
+ throw new AxiosError_1('option ' + opt + ' must be ' + result, AxiosError_1.ERR_BAD_OPTION_VALUE);
1442
1748
  }
1443
1749
  continue;
1444
1750
  }
1445
1751
  if (allowUnknown !== true) {
1446
- throw Error('Unknown option ' + opt);
1752
+ throw new AxiosError_1('Unknown option ' + opt, AxiosError_1.ERR_BAD_OPTION);
1447
1753
  }
1448
1754
  }
1449
1755
  }
@@ -1453,6 +1759,16 @@ var validator = {
1453
1759
  validators: validators$1
1454
1760
  };
1455
1761
 
1762
+ 'use strict';
1763
+
1764
+
1765
+
1766
+
1767
+
1768
+
1769
+
1770
+
1771
+
1456
1772
  var validators = validator.validators;
1457
1773
  /**
1458
1774
  * Create a new instance of Axios
@@ -1482,10 +1798,6 @@ Axios.prototype.request = function request(configOrUrl, config) {
1482
1798
  config = configOrUrl || {};
1483
1799
  }
1484
1800
 
1485
- if (!config.url) {
1486
- throw new Error('Provided config url is not valid');
1487
- }
1488
-
1489
1801
  config = mergeConfig(this.defaults, config);
1490
1802
 
1491
1803
  // Set config.method
@@ -1568,11 +1880,9 @@ Axios.prototype.request = function request(configOrUrl, config) {
1568
1880
  };
1569
1881
 
1570
1882
  Axios.prototype.getUri = function getUri(config) {
1571
- if (!config.url) {
1572
- throw new Error('Provided config url is not valid');
1573
- }
1574
1883
  config = mergeConfig(this.defaults, config);
1575
- return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, '');
1884
+ var fullPath = buildFullPath(config.baseURL, config.url);
1885
+ return buildURL(fullPath, config.params, config.paramsSerializer);
1576
1886
  };
1577
1887
 
1578
1888
  // Provide aliases for supported request methods
@@ -1589,17 +1899,31 @@ utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData
1589
1899
 
1590
1900
  utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
1591
1901
  /*eslint func-names:0*/
1592
- Axios.prototype[method] = function(url, data, config) {
1593
- return this.request(mergeConfig(config || {}, {
1594
- method: method,
1595
- url: url,
1596
- data: data
1597
- }));
1598
- };
1902
+
1903
+ function generateHTTPMethod(isForm) {
1904
+ return function httpMethod(url, data, config) {
1905
+ return this.request(mergeConfig(config || {}, {
1906
+ method: method,
1907
+ headers: isForm ? {
1908
+ 'Content-Type': 'multipart/form-data'
1909
+ } : {},
1910
+ url: url,
1911
+ data: data
1912
+ }));
1913
+ };
1914
+ }
1915
+
1916
+ Axios.prototype[method] = generateHTTPMethod();
1917
+
1918
+ Axios.prototype[method + 'Form'] = generateHTTPMethod(true);
1599
1919
  });
1600
1920
 
1601
1921
  var Axios_1 = Axios;
1602
1922
 
1923
+ 'use strict';
1924
+
1925
+
1926
+
1603
1927
  /**
1604
1928
  * A `CancelToken` is an object that can be used to request cancellation of an operation.
1605
1929
  *
@@ -1654,13 +1978,13 @@ function CancelToken(executor) {
1654
1978
  return;
1655
1979
  }
1656
1980
 
1657
- token.reason = new Cancel_1(message);
1981
+ token.reason = new CanceledError_1(message);
1658
1982
  resolvePromise(token.reason);
1659
1983
  });
1660
1984
  }
1661
1985
 
1662
1986
  /**
1663
- * Throws a `Cancel` if cancellation has been requested.
1987
+ * Throws a `CanceledError` if cancellation has been requested.
1664
1988
  */
1665
1989
  CancelToken.prototype.throwIfRequested = function throwIfRequested() {
1666
1990
  if (this.reason) {
@@ -1716,6 +2040,8 @@ CancelToken.source = function source() {
1716
2040
 
1717
2041
  var CancelToken_1 = CancelToken;
1718
2042
 
2043
+ 'use strict';
2044
+
1719
2045
  /**
1720
2046
  * Syntactic sugar for invoking a function and expanding an array for arguments.
1721
2047
  *
@@ -1742,6 +2068,10 @@ var spread = function spread(callback) {
1742
2068
  };
1743
2069
  };
1744
2070
 
2071
+ 'use strict';
2072
+
2073
+
2074
+
1745
2075
  /**
1746
2076
  * Determines whether the payload is an error thrown by Axios
1747
2077
  *
@@ -1752,6 +2082,14 @@ var isAxiosError = function isAxiosError(payload) {
1752
2082
  return utils.isObject(payload) && (payload.isAxiosError === true);
1753
2083
  };
1754
2084
 
2085
+ 'use strict';
2086
+
2087
+
2088
+
2089
+
2090
+
2091
+
2092
+
1755
2093
  /**
1756
2094
  * Create an instance of Axios
1757
2095
  *
@@ -1783,10 +2121,17 @@ var axios$1 = createInstance(defaults_1);
1783
2121
  axios$1.Axios = Axios_1;
1784
2122
 
1785
2123
  // Expose Cancel & CancelToken
1786
- axios$1.Cancel = Cancel_1;
2124
+ axios$1.CanceledError = CanceledError_1;
1787
2125
  axios$1.CancelToken = CancelToken_1;
1788
2126
  axios$1.isCancel = isCancel;
1789
2127
  axios$1.VERSION = data.version;
2128
+ axios$1.toFormData = toFormData_1;
2129
+
2130
+ // Expose AxiosError class
2131
+ axios$1.AxiosError = AxiosError_1;
2132
+
2133
+ // alias for CanceledError for backward compatibility
2134
+ axios$1.Cancel = axios$1.CanceledError;
1790
2135
 
1791
2136
  // Expose all/spread
1792
2137
  axios$1.all = function all(promises) {
@@ -1945,6 +2290,59 @@ var VerdocsEndpoint = /** @class */ (function () {
1945
2290
  return VerdocsEndpoint;
1946
2291
  }());
1947
2292
 
2293
+ "use strict";
2294
+ // This file provides a polyfill for managing globals in both NodeJS and browser environments. This is
2295
+ // an anti-pattern we'd hoped to avoid, but we have several projects dependending on one common library
2296
+ // (this js-sdk) and we want that library to provide a common endpoint to all callers (so authentication
2297
+ // tokens only need to be tracked in one place). The trouble is, one of those libraries is based on
2298
+ // StencilJS and is compiling its modules into Web Components. Because of how module resolution works,
2299
+ // when those Components load js-sdk they get a separate instance. Without messy options like having to
2300
+ // pass raw data from the caller to each Component, or pass around references to a common Endpoint, they
2301
+ // have no way to access authenticated sessions unless we make the Endpoint a true global.
2302
+ //
2303
+ // @credit https://github.com/medikoo/es5-ext/blob/master/global.js
2304
+ // @credit https://mathiasbynens.be/notes/globalthis
2305
+ var naiveFallback = function () {
2306
+ if (typeof self === 'object' && self)
2307
+ return self;
2308
+ if (typeof window === 'object' && window)
2309
+ return window;
2310
+ throw new Error('Unable to resolve global `this`');
2311
+ };
2312
+ var globalThis_1 = (function () {
2313
+ if (this)
2314
+ return this;
2315
+ // Unexpected strict mode (may happen if e.g. bundled into ESM module)
2316
+ // Fallback to standard globalThis if available
2317
+ if (typeof globalThis === 'object' && globalThis)
2318
+ return globalThis;
2319
+ // Thanks @mathiasbynens -> https://mathiasbynens.be/notes/globalthis
2320
+ // In all ES5+ engines global object inherits from Object.prototype
2321
+ // (if you approached one that doesn't please report)
2322
+ try {
2323
+ Object.defineProperty(Object.prototype, '__global__', {
2324
+ get: function () {
2325
+ return this;
2326
+ },
2327
+ configurable: true,
2328
+ });
2329
+ }
2330
+ catch (error) {
2331
+ // Unfortunate case of updates to Object.prototype being restricted
2332
+ // via preventExtensions, seal or freeze
2333
+ return naiveFallback();
2334
+ }
2335
+ try {
2336
+ // Safari case (window.__global__ works, but __global__ does not)
2337
+ if (!__global__)
2338
+ return naiveFallback();
2339
+ return __global__;
2340
+ }
2341
+ finally {
2342
+ delete Object.prototype.__global__;
2343
+ }
2344
+ })();
2345
+
1948
2346
  /**
1949
2347
  * The Transport is a global singleton used to call Verdocs APIs. There can only be one Transport per application, and
1950
2348
  * its configuration settings are shared for all callers. This is a simplified form of the Endpoint class where most