@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.
- package/dist/cjs/Auth-0146ddd8.js +161 -0
- package/dist/cjs/{Token-1ea6d834.js → Token-b86e5335.js} +554 -156
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/{buffer-es6-ce0cdd81.js → buffer-es6-b2c1c885.js} +13 -0
- package/dist/cjs/css-shim-e9231523.js +6 -0
- package/dist/cjs/dom-7fb93981.js +75 -0
- package/dist/cjs/index-9c6e5f50.js +1976 -0
- package/dist/cjs/index-a24f3b6a.js +3096 -0
- package/dist/cjs/index-b5a86b04.js +4 -0
- package/dist/cjs/{index-4bf5cc66.js → index-c4be37e1.js} +9 -1
- package/dist/cjs/loader.cjs.js +19 -3
- package/dist/cjs/shadow-css-abc19485.js +389 -0
- package/dist/cjs/verdocs-auth.cjs.entry.js +201 -9
- package/dist/cjs/verdocs-button.cjs.entry.js +49 -0
- package/dist/cjs/verdocs-dropdown.cjs.entry.js +80 -0
- package/dist/cjs/verdocs-field-attachment.cjs.entry.js +59 -0
- package/dist/cjs/verdocs-field-checkbox.cjs.entry.js +39 -0
- package/dist/cjs/verdocs-field-date.cjs.entry.js +2968 -0
- package/dist/cjs/verdocs-field-dropdown.cjs.entry.js +59 -0
- package/dist/cjs/verdocs-field-initial.cjs.entry.js +52 -0
- package/dist/cjs/verdocs-field-payment.cjs.entry.js +86 -0
- package/dist/cjs/verdocs-field-radio-button.cjs.entry.js +48 -0
- package/dist/cjs/verdocs-field-signature.cjs.entry.js +52 -0
- package/dist/cjs/verdocs-field-textarea.cjs.entry.js +63 -0
- package/dist/cjs/verdocs-field-textbox.cjs.entry.js +63 -0
- package/dist/cjs/verdocs-initial-dialog.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-kba-dialog.cjs.entry.js +81 -0
- package/dist/cjs/verdocs-loader.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-organization-card.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-quick-functions.cjs.entry.js +2 -2
- package/dist/cjs/{verdocs-search-activity_2.cjs.entry.js → verdocs-search-activity.cjs.entry.js} +116 -63
- package/dist/cjs/verdocs-search-box.cjs.entry.js +60 -0
- package/dist/cjs/verdocs-search-tabs.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-search.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-sign.cjs.entry.js +1523 -19
- package/dist/cjs/verdocs-signature-dialog.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-status-indicator.cjs.entry.js +7615 -0
- package/dist/cjs/verdocs-template-card.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-template-tags.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-text-input.cjs.entry.js +62 -0
- package/dist/cjs/verdocs-toggle.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-upload-dialog.cjs.entry.js +3 -3
- package/dist/cjs/{verdocs-dropdown_12.cjs.entry.js → verdocs-view.cjs.entry.js} +52 -5098
- package/dist/cjs/verdocs-web-sdk.cjs.js +117 -5
- package/dist/collection/collection-manifest.json +4 -3
- package/dist/collection/components/controls/verdocs-button/verdocs-button.css +110 -34
- package/dist/collection/components/controls/verdocs-button/verdocs-button.js +85 -13
- package/dist/collection/components/controls/verdocs-button/verdocs-button.stories.js +41 -2
- package/dist/collection/components/controls/verdocs-dropdown/verdocs-dropdown.css +7 -10
- package/dist/collection/components/controls/verdocs-dropdown/verdocs-dropdown.js +1 -15
- package/dist/collection/components/controls/verdocs-loader/verdocs-loader.js +3 -0
- package/dist/collection/components/controls/verdocs-organization-card/verdocs-organization-card.css +4 -6
- package/dist/collection/components/controls/verdocs-status-indicator/accepted-dark.svg +4 -0
- package/dist/collection/components/controls/verdocs-status-indicator/accepted-light.svg +4 -0
- package/dist/collection/components/controls/verdocs-status-indicator/arrowright.svg +3 -0
- package/dist/collection/components/controls/verdocs-status-indicator/canceled-dark.svg +3 -0
- package/dist/collection/components/controls/verdocs-status-indicator/canceled-light.svg +3 -0
- package/dist/collection/components/controls/verdocs-status-indicator/complete-dark.svg +3 -0
- package/dist/collection/components/controls/verdocs-status-indicator/complete-light.svg +3 -0
- package/dist/collection/components/controls/verdocs-status-indicator/declined-dark.svg +3 -0
- package/dist/collection/components/controls/verdocs-status-indicator/declined-light.svg +3 -0
- package/dist/collection/components/controls/verdocs-status-indicator/in-progress-dark.svg +3 -0
- package/dist/collection/components/controls/verdocs-status-indicator/in-progress-light.svg +3 -0
- package/dist/collection/components/controls/verdocs-status-indicator/opened-dark.svg +4 -0
- package/dist/collection/components/controls/verdocs-status-indicator/opened-light.svg +4 -0
- package/dist/collection/components/controls/verdocs-status-indicator/pending-dark.svg +3 -0
- package/dist/collection/components/controls/verdocs-status-indicator/pending-light.svg +3 -0
- package/dist/collection/components/controls/verdocs-status-indicator/recipient-flow.js +218 -0
- package/dist/collection/components/controls/verdocs-status-indicator/signed-dark.svg +4 -0
- package/dist/collection/components/controls/verdocs-status-indicator/signed-light.svg +4 -0
- package/dist/collection/components/controls/verdocs-status-indicator/some-signed-dark.svg +3 -0
- package/dist/collection/components/controls/verdocs-status-indicator/some-signed-light.svg +3 -0
- package/dist/collection/components/controls/verdocs-status-indicator/submitted-dark.svg +3 -0
- package/dist/collection/components/controls/verdocs-status-indicator/submitted-light.svg +3 -0
- package/dist/collection/components/controls/verdocs-status-indicator/verdocs-status-indicator.css +48 -0
- package/dist/collection/components/controls/verdocs-status-indicator/verdocs-status-indicator.js +344 -0
- package/dist/collection/components/controls/verdocs-status-indicator/verdocs-status-indicator.stories.js +69 -0
- package/dist/collection/components/controls/verdocs-template-card/verdocs-template-card.css +5 -7
- package/dist/collection/components/controls/verdocs-template-tags/verdocs-template-tags.css +5 -7
- package/dist/collection/components/controls/verdocs-text-input/verdocs-text-input.css +4 -6
- package/dist/collection/components/controls/verdocs-toggle/verdocs-toggle.css +4 -6
- package/dist/collection/components/controls/verdocs-toggle/verdocs-toggle.stories.js +1 -1
- package/dist/collection/components/dialogs/verdocs-initial-dialog/verdocs-initial-dialog.css +3 -4
- package/dist/collection/components/dialogs/verdocs-kba-dialog/question.svg +4 -0
- package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.css +95 -0
- package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.js +292 -0
- package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.stories.js +36 -0
- package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.css +1 -2
- package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.css +1 -2
- package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.js +2 -2
- package/dist/collection/components/dialogs/verdocs-upload-dialog/verdocs-upload-dialog.css +1 -2
- package/dist/collection/components/elements/verdocs-field-attachment/verdocs-field-attachment.stories.js +1 -1
- package/dist/collection/components/elements/verdocs-field-checkbox-group/verdocs-field-checkbox.stories.js +1 -1
- package/dist/collection/components/elements/verdocs-field-date/verdocs-field-date.stories.js +1 -1
- package/dist/collection/components/elements/verdocs-field-dropdown/verdocs-field-dropdown.stories.js +1 -1
- package/dist/collection/components/elements/verdocs-field-initial/verdocs-field-initial.stories.js +1 -1
- package/dist/collection/components/elements/verdocs-field-payment/verdocs-field-payment.stories.js +1 -1
- package/dist/collection/components/elements/verdocs-field-radio-button-group/verdocs-field-radio-button.stories.js +1 -1
- package/dist/collection/components/elements/verdocs-field-signature/verdocs-field-signature.stories.js +1 -1
- package/dist/collection/components/elements/verdocs-field-textarea/verdocs-field-textarea.stories.js +1 -1
- package/dist/collection/components/elements/verdocs-field-textbox/verdocs-field-textbox.stories.js +1 -1
- package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.stories.js +1 -1
- package/dist/collection/components/elements/verdocs-search-activity/verdocs-search-activity.stories.js +1 -1
- package/dist/collection/components/elements/verdocs-search-box/verdocs-search-box.stories.js +1 -1
- package/dist/collection/components/elements/verdocs-search-tabs/verdocs-search-tabs.stories.js +1 -1
- package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.css +3 -5
- package/dist/collection/components/embeds/verdocs-search/verdocs-search.css +2 -4
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.css +2 -3
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +2 -5
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.stories.js +2 -2
- package/dist/collection/components/embeds/verdocs-view/verdocs-view.css +1 -3
- package/dist/components/Auth.js +157 -0
- package/dist/{esm/Token-b82a8ea3.js → components/Token.js} +554 -156
- package/dist/{esm/buffer-es6-681a33da.js → components/buffer-es6.js} +13 -0
- package/dist/components/index.d.ts +53 -0
- package/dist/components/index.js +37 -0
- package/dist/components/index2.js +1 -0
- package/dist/components/index3.js +1974 -0
- package/dist/{esm/index-2b1938ea.js → components/index4.js} +10 -2
- package/dist/components/verdocs-auth.d.ts +11 -0
- package/dist/components/verdocs-auth.js +347 -0
- package/dist/components/verdocs-button.d.ts +11 -0
- package/dist/components/verdocs-button.js +6 -0
- package/dist/components/verdocs-button2.js +68 -0
- package/dist/components/verdocs-dropdown.d.ts +11 -0
- package/dist/components/verdocs-dropdown.js +6 -0
- package/dist/components/verdocs-dropdown2.js +94 -0
- package/dist/components/verdocs-field-attachment.d.ts +11 -0
- package/dist/components/verdocs-field-attachment.js +6 -0
- package/dist/components/verdocs-field-attachment2.js +88 -0
- package/dist/components/verdocs-field-checkbox.d.ts +11 -0
- package/dist/components/verdocs-field-checkbox.js +6 -0
- package/dist/components/verdocs-field-checkbox2.js +55 -0
- package/dist/components/verdocs-field-date.d.ts +11 -0
- package/dist/components/verdocs-field-date.js +6 -0
- package/dist/components/verdocs-field-date2.js +2987 -0
- package/dist/components/verdocs-field-dropdown.d.ts +11 -0
- package/dist/components/verdocs-field-dropdown.js +6 -0
- package/dist/components/verdocs-field-dropdown2.js +78 -0
- package/dist/components/verdocs-field-initial.d.ts +11 -0
- package/dist/components/verdocs-field-initial.js +6 -0
- package/dist/components/verdocs-field-initial2.js +86 -0
- package/dist/components/verdocs-field-payment.d.ts +11 -0
- package/dist/components/verdocs-field-payment.js +6 -0
- package/dist/components/verdocs-field-payment2.js +114 -0
- package/dist/components/verdocs-field-radio-button.d.ts +11 -0
- package/dist/components/verdocs-field-radio-button.js +6 -0
- package/dist/components/verdocs-field-radio-button2.js +66 -0
- package/dist/components/verdocs-field-signature.d.ts +11 -0
- package/dist/components/verdocs-field-signature.js +6 -0
- package/dist/components/verdocs-field-signature2.js +86 -0
- package/dist/components/verdocs-field-textarea.d.ts +11 -0
- package/dist/components/verdocs-field-textarea.js +6 -0
- package/dist/components/verdocs-field-textarea2.js +82 -0
- package/dist/components/verdocs-field-textbox.d.ts +11 -0
- package/dist/components/verdocs-field-textbox.js +6 -0
- package/dist/components/verdocs-field-textbox2.js +82 -0
- package/dist/components/verdocs-initial-dialog.d.ts +11 -0
- package/dist/components/verdocs-initial-dialog.js +6 -0
- package/dist/components/verdocs-initial-dialog2.js +272 -0
- package/dist/components/verdocs-kba-dialog.d.ts +11 -0
- package/dist/components/verdocs-kba-dialog.js +112 -0
- package/dist/components/verdocs-loader.d.ts +11 -0
- package/dist/components/verdocs-loader.js +6 -0
- package/dist/components/verdocs-loader2.js +30 -0
- package/dist/components/verdocs-ok-dialog.d.ts +11 -0
- package/dist/components/verdocs-ok-dialog.js +6 -0
- package/dist/components/verdocs-ok-dialog2.js +70 -0
- package/dist/components/verdocs-organization-card.d.ts +11 -0
- package/dist/components/verdocs-organization-card.js +38 -0
- package/dist/components/verdocs-quick-functions.d.ts +11 -0
- package/dist/components/verdocs-quick-functions.js +45 -0
- package/dist/components/verdocs-search-activity.d.ts +11 -0
- package/dist/components/verdocs-search-activity.js +6 -0
- package/dist/components/verdocs-search-activity2.js +281 -0
- package/dist/components/verdocs-search-box.d.ts +11 -0
- package/dist/components/verdocs-search-box.js +6 -0
- package/dist/components/verdocs-search-box2.js +75 -0
- package/dist/components/verdocs-search-tabs.d.ts +11 -0
- package/dist/components/verdocs-search-tabs.js +36 -0
- package/dist/components/verdocs-search.d.ts +11 -0
- package/dist/components/verdocs-search.js +45 -0
- package/dist/components/verdocs-sign.d.ts +11 -0
- package/dist/components/verdocs-sign.js +2135 -0
- package/dist/components/verdocs-signature-dialog.d.ts +11 -0
- package/dist/components/verdocs-signature-dialog.js +6 -0
- package/dist/components/verdocs-signature-dialog2.js +268 -0
- package/dist/components/verdocs-status-indicator.d.ts +11 -0
- package/dist/components/verdocs-status-indicator.js +7635 -0
- package/dist/components/verdocs-template-card.d.ts +11 -0
- package/dist/components/verdocs-template-card.js +54 -0
- package/dist/components/verdocs-template-tags.d.ts +11 -0
- package/dist/components/verdocs-template-tags.js +36 -0
- package/dist/components/verdocs-text-input.d.ts +11 -0
- package/dist/components/verdocs-text-input.js +6 -0
- package/dist/components/verdocs-text-input2.js +81 -0
- package/dist/components/verdocs-toggle.d.ts +11 -0
- package/dist/components/verdocs-toggle.js +53 -0
- package/dist/components/verdocs-upload-dialog.d.ts +11 -0
- package/dist/components/verdocs-upload-dialog.js +6 -0
- package/dist/components/verdocs-upload-dialog2.js +144 -0
- package/dist/components/verdocs-view.d.ts +11 -0
- package/dist/components/verdocs-view.js +6 -0
- package/dist/{custom-elements/index.js → components/verdocs-view2.js} +63 -11001
- package/dist/custom-elements.json +830 -0
- package/dist/docs.d.ts +3 -0
- package/dist/docs.json +407 -60
- package/dist/esm/Auth-4b21fced.js +157 -0
- package/dist/esm/Token-29eea56d.js +2458 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/buffer-es6-5cef4368.js +1985 -0
- package/dist/esm/css-shim-60f618b9.js +4 -0
- package/dist/esm/dom-4eeb3fee.js +73 -0
- package/dist/esm/index-432c65a6.js +1974 -0
- package/dist/esm/index-97ec070b.js +47 -0
- package/dist/esm/index-ddbd60b5.js +3059 -0
- package/dist/esm/index-ef172650.js +1 -0
- package/dist/esm/loader.js +19 -3
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/shadow-css-02866686.js +387 -0
- package/dist/esm/verdocs-auth.entry.js +198 -6
- package/dist/esm/verdocs-button.entry.js +45 -0
- package/dist/esm/verdocs-dropdown.entry.js +76 -0
- package/dist/esm/verdocs-field-attachment.entry.js +55 -0
- package/dist/esm/verdocs-field-checkbox.entry.js +35 -0
- package/dist/esm/verdocs-field-date.entry.js +2964 -0
- package/dist/esm/verdocs-field-dropdown.entry.js +55 -0
- package/dist/esm/verdocs-field-initial.entry.js +48 -0
- package/dist/esm/verdocs-field-payment.entry.js +82 -0
- package/dist/esm/verdocs-field-radio-button.entry.js +44 -0
- package/dist/esm/verdocs-field-signature.entry.js +48 -0
- package/dist/esm/verdocs-field-textarea.entry.js +59 -0
- package/dist/esm/verdocs-field-textbox.entry.js +59 -0
- package/dist/esm/verdocs-initial-dialog.entry.js +3 -3
- package/dist/esm/verdocs-kba-dialog.entry.js +77 -0
- package/dist/esm/verdocs-loader.entry.js +2 -2
- package/dist/esm/verdocs-ok-dialog.entry.js +3 -3
- package/dist/esm/verdocs-organization-card.entry.js +3 -3
- package/dist/esm/verdocs-quick-functions.entry.js +2 -2
- package/dist/esm/{verdocs-search-activity_2.entry.js → verdocs-search-activity.entry.js} +117 -63
- package/dist/esm/verdocs-search-box.entry.js +56 -0
- package/dist/esm/verdocs-search-tabs.entry.js +2 -2
- package/dist/esm/verdocs-search.entry.js +3 -3
- package/dist/esm/verdocs-sign.entry.js +1523 -19
- package/dist/esm/verdocs-signature-dialog.entry.js +4 -4
- package/dist/esm/verdocs-status-indicator.entry.js +7611 -0
- package/dist/esm/verdocs-template-card.entry.js +3 -3
- package/dist/esm/verdocs-template-tags.entry.js +3 -3
- package/dist/esm/verdocs-text-input.entry.js +58 -0
- package/dist/esm/verdocs-toggle.entry.js +3 -3
- package/dist/esm/verdocs-upload-dialog.entry.js +3 -3
- package/dist/esm/{verdocs-dropdown_12.entry.js → verdocs-view.entry.js} +36 -5071
- package/dist/esm/verdocs-web-sdk.js +117 -5
- package/dist/esm-es5/Auth-4b21fced.js +1 -0
- package/dist/esm-es5/Token-29eea56d.js +1 -0
- package/dist/esm-es5/app-globals-0f993ce5.js +1 -0
- package/dist/esm-es5/buffer-es6-5cef4368.js +7 -0
- package/dist/esm-es5/css-shim-60f618b9.js +1 -0
- package/dist/esm-es5/dom-4eeb3fee.js +21 -0
- package/dist/esm-es5/index-432c65a6.js +1 -0
- package/dist/esm-es5/index-97ec070b.js +1 -0
- package/dist/esm-es5/index-ddbd60b5.js +2 -0
- package/dist/esm-es5/index-ef172650.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/shadow-css-02866686.js +12 -0
- package/dist/esm-es5/verdocs-auth.entry.js +1 -1
- package/dist/esm-es5/verdocs-button.entry.js +1 -0
- package/dist/esm-es5/verdocs-dropdown.entry.js +1 -0
- package/dist/esm-es5/verdocs-field-attachment.entry.js +1 -0
- package/dist/esm-es5/verdocs-field-checkbox.entry.js +1 -0
- package/dist/esm-es5/verdocs-field-date.entry.js +1 -0
- package/dist/esm-es5/verdocs-field-dropdown.entry.js +1 -0
- package/dist/esm-es5/verdocs-field-initial.entry.js +1 -0
- package/dist/esm-es5/verdocs-field-payment.entry.js +1 -0
- package/dist/esm-es5/verdocs-field-radio-button.entry.js +1 -0
- package/dist/esm-es5/verdocs-field-signature.entry.js +1 -0
- package/dist/esm-es5/verdocs-field-textarea.entry.js +1 -0
- package/dist/esm-es5/verdocs-field-textbox.entry.js +1 -0
- package/dist/esm-es5/verdocs-initial-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-kba-dialog.entry.js +1 -0
- package/dist/esm-es5/verdocs-loader.entry.js +1 -1
- package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-organization-card.entry.js +1 -1
- package/dist/esm-es5/verdocs-quick-functions.entry.js +1 -1
- package/dist/esm-es5/verdocs-search-activity.entry.js +1 -0
- package/dist/esm-es5/verdocs-search-box.entry.js +1 -0
- package/dist/esm-es5/verdocs-search-tabs.entry.js +1 -1
- package/dist/esm-es5/verdocs-search.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/esm-es5/verdocs-signature-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-status-indicator.entry.js +11 -0
- package/dist/esm-es5/verdocs-template-card.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
- package/dist/esm-es5/verdocs-text-input.entry.js +1 -0
- package/dist/esm-es5/verdocs-toggle.entry.js +1 -1
- package/dist/esm-es5/verdocs-upload-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-view.entry.js +23 -0
- package/dist/esm-es5/verdocs-web-sdk.js +1 -1
- package/dist/types/components/controls/verdocs-button/verdocs-button.d.ts +26 -6
- package/dist/types/components/controls/verdocs-button/verdocs-button.stories.d.ts +4 -1
- package/dist/types/components/controls/verdocs-dropdown/verdocs-dropdown.d.ts +0 -14
- package/dist/types/components/controls/verdocs-loader/verdocs-loader.d.ts +3 -0
- package/dist/types/components/controls/verdocs-status-indicator/recipient-flow.d.ts +4 -0
- package/dist/types/components/controls/verdocs-status-indicator/verdocs-status-indicator.d.ts +42 -0
- 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
- package/dist/types/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.d.ts +57 -0
- package/dist/types/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.stories.d.ts +15 -0
- package/dist/types/components.d.ts +307 -74
- package/dist/verdocs-web-sdk/Auth-4b21fced.js +157 -0
- package/dist/verdocs-web-sdk/Auth-82e38539.system.js +1 -0
- package/dist/verdocs-web-sdk/Token-29eea56d.js +2458 -0
- package/dist/verdocs-web-sdk/Token-c1cf309e.system.js +1 -0
- package/dist/verdocs-web-sdk/app-globals-0f993ce5.js +3 -0
- package/dist/verdocs-web-sdk/app-globals-497eb362.system.js +1 -0
- package/dist/verdocs-web-sdk/buffer-es6-5cef4368.js +1985 -0
- package/dist/verdocs-web-sdk/buffer-es6-aa11181b.system.js +7 -0
- package/dist/verdocs-web-sdk/css-shim-60f618b9.js +4 -0
- package/dist/verdocs-web-sdk/css-shim-e41ceccc.system.js +1 -0
- package/dist/verdocs-web-sdk/dom-4eeb3fee.js +73 -0
- package/dist/verdocs-web-sdk/dom-89b5deb7.system.js +21 -0
- package/dist/verdocs-web-sdk/index-027b383e.system.js +1 -0
- package/dist/verdocs-web-sdk/index-06e036a1.system.js +1 -0
- package/dist/verdocs-web-sdk/index-432c65a6.js +1974 -0
- package/dist/verdocs-web-sdk/index-5d49316f.system.js +1 -0
- package/dist/verdocs-web-sdk/index-6465280a.system.js +2 -0
- package/dist/verdocs-web-sdk/index-97ec070b.js +47 -0
- package/dist/verdocs-web-sdk/index-ddbd60b5.js +3059 -0
- package/dist/verdocs-web-sdk/index-ef172650.js +1 -0
- package/dist/verdocs-web-sdk/index.esm.js +1 -0
- package/dist/verdocs-web-sdk/{p-50ea2036.system.js → index.system.js} +0 -0
- package/dist/verdocs-web-sdk/shadow-css-02866686.js +387 -0
- package/dist/verdocs-web-sdk/shadow-css-6207e159.system.js +13 -0
- package/dist/verdocs-web-sdk/verdocs-auth.entry.js +302 -0
- package/dist/verdocs-web-sdk/verdocs-auth.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-button.entry.js +45 -0
- package/dist/verdocs-web-sdk/verdocs-button.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-dropdown.entry.js +76 -0
- package/dist/verdocs-web-sdk/verdocs-dropdown.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-field-attachment.entry.js +55 -0
- package/dist/verdocs-web-sdk/verdocs-field-attachment.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-field-checkbox.entry.js +35 -0
- package/dist/verdocs-web-sdk/verdocs-field-checkbox.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-field-date.entry.js +2964 -0
- package/dist/verdocs-web-sdk/verdocs-field-date.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-field-dropdown.entry.js +55 -0
- package/dist/verdocs-web-sdk/verdocs-field-dropdown.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-field-initial.entry.js +48 -0
- package/dist/verdocs-web-sdk/verdocs-field-initial.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-field-payment.entry.js +82 -0
- package/dist/verdocs-web-sdk/verdocs-field-payment.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-field-radio-button.entry.js +44 -0
- package/dist/verdocs-web-sdk/verdocs-field-radio-button.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-field-signature.entry.js +48 -0
- package/dist/verdocs-web-sdk/verdocs-field-signature.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-field-textarea.entry.js +59 -0
- package/dist/verdocs-web-sdk/verdocs-field-textarea.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-field-textbox.entry.js +59 -0
- package/dist/verdocs-web-sdk/verdocs-field-textbox.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-initial-dialog.entry.js +239 -0
- package/dist/verdocs-web-sdk/verdocs-initial-dialog.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-kba-dialog.entry.js +77 -0
- package/dist/verdocs-web-sdk/verdocs-kba-dialog.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-loader.entry.js +15 -0
- package/dist/verdocs-web-sdk/verdocs-loader.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-ok-dialog.entry.js +44 -0
- package/dist/verdocs-web-sdk/verdocs-ok-dialog.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-organization-card.entry.js +18 -0
- package/dist/verdocs-web-sdk/verdocs-organization-card.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-quick-functions.entry.js +27 -0
- package/dist/verdocs-web-sdk/verdocs-quick-functions.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-search-activity.entry.js +259 -0
- package/dist/verdocs-web-sdk/verdocs-search-activity.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-search-box.entry.js +56 -0
- package/dist/verdocs-web-sdk/verdocs-search-box.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-search-tabs.entry.js +16 -0
- package/dist/verdocs-web-sdk/verdocs-search-tabs.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-search.entry.js +15 -0
- package/dist/verdocs-web-sdk/verdocs-search.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-sign.entry.js +1995 -0
- package/dist/verdocs-web-sdk/verdocs-sign.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-signature-dialog.entry.js +235 -0
- package/dist/verdocs-web-sdk/verdocs-signature-dialog.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-status-indicator.entry.js +7611 -0
- package/dist/verdocs-web-sdk/verdocs-status-indicator.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-template-card.entry.js +34 -0
- package/dist/verdocs-web-sdk/verdocs-template-card.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-template-tags.entry.js +16 -0
- package/dist/verdocs-web-sdk/verdocs-template-tags.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-text-input.entry.js +58 -0
- package/dist/verdocs-web-sdk/verdocs-text-input.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-toggle.entry.js +32 -0
- package/dist/verdocs-web-sdk/verdocs-toggle.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-upload-dialog.entry.js +119 -0
- package/dist/verdocs-web-sdk/verdocs-upload-dialog.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-view.entry.js +16118 -0
- package/dist/verdocs-web-sdk/verdocs-view.system.entry.js +23 -0
- package/dist/verdocs-web-sdk/verdocs-web-sdk.css +57 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +129 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.js +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.system.js +1 -0
- package/package.json +34 -31
- package/dist/cjs/Auth-0ba9a04b.js +0 -68
- package/dist/cjs/index-01e27102.js +0 -1287
- package/dist/cjs/verdocs-button_2.cjs.entry.js +0 -98
- package/dist/cjs/verdocs-document-status.cjs.entry.js +0 -54
- package/dist/collection/components/controls/verdocs-document-status/check.svg +0 -3
- package/dist/collection/components/controls/verdocs-document-status/pending.svg +0 -1
- package/dist/collection/components/controls/verdocs-document-status/stop.svg +0 -1
- package/dist/collection/components/controls/verdocs-document-status/verdocs-document-status.css +0 -18
- package/dist/collection/components/controls/verdocs-document-status/verdocs-document-status.js +0 -70
- package/dist/collection/components/controls/verdocs-document-status/verdocs-document-status.stories.js +0 -15
- package/dist/collection/components/controls/verdocs-document-status/x.svg +0 -1
- package/dist/custom-elements/index.d.ts +0 -225
- package/dist/esm/Auth-16761ea6.js +0 -64
- package/dist/esm/index-ade0ef1e.js +0 -1259
- package/dist/esm/verdocs-button_2.entry.js +0 -93
- package/dist/esm/verdocs-document-status.entry.js +0 -50
- package/dist/esm-es5/Auth-16761ea6.js +0 -1
- package/dist/esm-es5/Token-b82a8ea3.js +0 -1
- package/dist/esm-es5/buffer-es6-681a33da.js +0 -7
- package/dist/esm-es5/index-2b1938ea.js +0 -1
- package/dist/esm-es5/index-ade0ef1e.js +0 -1
- package/dist/esm-es5/verdocs-button_2.entry.js +0 -1
- package/dist/esm-es5/verdocs-document-status.entry.js +0 -1
- package/dist/esm-es5/verdocs-dropdown_12.entry.js +0 -23
- package/dist/esm-es5/verdocs-search-activity_2.entry.js +0 -1
- package/dist/types/components/controls/verdocs-document-status/verdocs-document-status.d.ts +0 -11
- package/dist/verdocs-web-sdk/p-063c4c71.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-10e7c953.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-183c7338.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-25a138c4.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-28b3017f.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-29abe078.js +0 -1
- package/dist/verdocs-web-sdk/p-2ec1d8d8.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-3ced6e3a.system.js +0 -1
- package/dist/verdocs-web-sdk/p-41383ebc.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-44b75396.system.js +0 -1
- package/dist/verdocs-web-sdk/p-48b73707.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-4bfe13e6.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-556f577f.system.js +0 -1
- package/dist/verdocs-web-sdk/p-6e95da9d.js +0 -1
- package/dist/verdocs-web-sdk/p-6ef8ca10.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-72ebb6e3.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-817302a8.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-8a1b9ad0.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-91f87fa8.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-95880bac.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-9e0a07a7.js +0 -1
- package/dist/verdocs-web-sdk/p-a0fcbe6e.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-ae37b970.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-b3c30059.system.js +0 -1
- package/dist/verdocs-web-sdk/p-b567001f.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-b8f5af91.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-bc61d0ce.entry.js +0 -23
- package/dist/verdocs-web-sdk/p-c4add613.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-ccad2089.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-cec7e9ea.js +0 -1
- package/dist/verdocs-web-sdk/p-cfb1cad1.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-d3a4e22e.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-d3ae5318.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-d9474f48.system.js +0 -7
- package/dist/verdocs-web-sdk/p-dc1f3572.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-dcf25d2c.system.entry.js +0 -23
- package/dist/verdocs-web-sdk/p-df4ae522.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-e0091c19.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-e1887a75.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-e9f5d6a6.js +0 -1
- package/dist/verdocs-web-sdk/p-ee14709c.system.js +0 -1
- package/dist/verdocs-web-sdk/p-efffddab.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-f0d20c75.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-f35c796c.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-f5109d69.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-f6938563.system.entry.js +0 -1
- 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-
|
|
3
|
+
const index = require('./index-c4be37e1.js');
|
|
4
|
+
const bufferEs6 = require('./buffer-es6-b2c1c885.js');
|
|
4
5
|
|
|
5
|
-
|
|
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
|
-
|
|
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 (
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
210
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
*
|
|
633
|
+
* Create an Error with the specified message, config, error code, request and response.
|
|
542
634
|
*
|
|
543
|
-
* @param {
|
|
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
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
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(
|
|
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 `
|
|
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
|
|
833
|
-
|
|
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
|
-
|
|
837
|
-
|
|
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
|
-
|
|
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(
|
|
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(
|
|
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 ||
|
|
1207
|
+
var transitional$1 = config.transitional || transitional;
|
|
957
1208
|
if (config.timeoutErrorMessage) {
|
|
958
1209
|
timeoutErrorMessage = config.timeoutErrorMessage;
|
|
959
1210
|
}
|
|
960
|
-
reject(
|
|
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
|
|
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
|
-
|
|
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
|
|
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 `
|
|
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
|
|
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.
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
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
|
|
1981
|
+
token.reason = new CanceledError_1(message);
|
|
1658
1982
|
resolvePromise(token.reason);
|
|
1659
1983
|
});
|
|
1660
1984
|
}
|
|
1661
1985
|
|
|
1662
1986
|
/**
|
|
1663
|
-
* Throws a `
|
|
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.
|
|
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
|