@verdocs/web-sdk 2.3.12 → 2.3.14
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/{EnvelopeStore-efc35530.js → EnvelopeStore-f8c301e1.js} +1 -1
- package/dist/cjs/{Envelopes-0b9deb2c.js → Envelopes-99ca79fe.js} +6 -2
- package/dist/cjs/{Profiles-1a26e4eb.js → Profiles-54271244.js} +34 -0
- package/dist/cjs/{TemplateStore-17b9fdfe.js → TemplateStore-d9936a68.js} +1 -1
- package/dist/cjs/{Types-fb95ed6b.js → Types-ee5afdf8.js} +1 -2
- package/dist/cjs/{VerdocsEndpoint-8f298664.js → VerdocsEndpoint-2d85658d.js} +563 -197
- package/dist/cjs/{_commonjsHelpers-1fbbf0eb.js → _commonjsHelpers-0c557e26.js} +5 -0
- package/dist/cjs/interact.min-ba5cc513.js +13 -0
- package/dist/cjs/ipc-test.cjs.entry.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-0916d10f.js → utils-2ddfdf9e.js} +3 -3
- package/dist/cjs/verdocs-activity-box.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-auth.cjs.entry.js +34 -8
- package/dist/cjs/verdocs-build.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-button-panel_2.cjs.entry.js +3 -12
- package/dist/cjs/{verdocs-contact-picker_3.cjs.entry.js → verdocs-contact-picker_2.cjs.entry.js} +6 -78
- package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +5 -5
- package/dist/cjs/verdocs-envelope-recipient-link_2.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +4 -5
- package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +5 -5
- package/dist/cjs/verdocs-field-attachment.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-field-checkbox.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-field-date.cjs.entry.js +5 -5
- package/dist/cjs/verdocs-field-dropdown.cjs.entry.js +5 -4
- package/dist/cjs/verdocs-field-initial.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-field-payment.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-field-radio-button.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-field-signature.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-field-textarea.cjs.entry.js +9 -10
- package/dist/cjs/verdocs-field-textbox.cjs.entry.js +9 -9
- package/dist/cjs/verdocs-field-timestamp.cjs.entry.js +5 -5
- package/dist/cjs/verdocs-file-chooser_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +1 -2
- package/dist/cjs/verdocs-pagination_2.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-preview_8.cjs.entry.js +8 -9
- package/dist/cjs/verdocs-quick-functions_3.cjs.entry.js +220 -0
- package/dist/cjs/verdocs-search.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-settings-api-keys_4.cjs.entry.js +37 -70
- package/dist/cjs/verdocs-settings.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-sign.cjs.entry.js +9 -12
- package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +5 -5
- package/dist/cjs/verdocs-template-fields_4.cjs.entry.js +47 -55
- package/dist/cjs/verdocs-template-star.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-templates-list.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-view.cjs.entry.js +5 -5
- package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.js +1 -20
- package/dist/collection/components/elements/verdocs-search-activity/verdocs-search-activity.css +66 -0
- package/dist/collection/components/elements/verdocs-search-activity/verdocs-search-activity.js +187 -0
- package/dist/collection/components/elements/verdocs-search-activity/verdocs-search-activity.stories.js +14 -0
- package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js +34 -6
- package/dist/collection/components/embeds/verdocs-send/verdocs-send.js +1 -2
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +4 -8
- package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.css +1 -4
- package/dist/collection/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.js +0 -1
- package/dist/collection/components/fields/verdocs-field-date/verdocs-field-date.css +0 -1
- package/dist/collection/components/fields/verdocs-field-dropdown/verdocs-field-dropdown.js +1 -0
- package/dist/collection/components/fields/verdocs-field-textarea/verdocs-field-textarea.js +1 -2
- package/dist/collection/components/fields/verdocs-field-textbox/verdocs-field-textbox.css +1 -1
- package/dist/collection/components/fields/verdocs-field-timestamp/verdocs-field-timestamp.css +0 -1
- package/dist/collection/components/templates/verdocs-template-create/verdocs-template-create.js +2 -2
- package/dist/collection/components/templates/verdocs-template-field-properties/verdocs-template-field-properties.js +0 -10
- package/dist/collection/components/templates/verdocs-template-fields/verdocs-template-fields.js +35 -43
- package/dist/collection/utils/Types.js +1 -2
- package/dist/components/Envelopes.js +6 -2
- package/dist/components/Organizations.js +32 -0
- package/dist/components/TemplateStore.js +1 -1
- package/dist/components/Types2.js +1 -2
- package/dist/components/VerdocsEndpoint.js +562 -197
- package/dist/components/_commonjsHelpers.js +5 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index3.js +29 -40
- package/dist/components/interact.min.js +6 -5
- package/dist/components/verdocs-auth.js +46 -12
- package/dist/components/verdocs-build.js +16 -22
- package/dist/components/verdocs-contact-picker2.js +1 -1
- package/dist/components/verdocs-envelope-sidebar.js +0 -1
- package/dist/components/verdocs-field-date.js +1 -1
- package/dist/components/verdocs-field-dropdown.js +1 -0
- package/dist/components/verdocs-field-textarea.js +4 -5
- package/dist/components/verdocs-field-textbox.js +4 -4
- package/dist/components/verdocs-field-timestamp.js +1 -1
- package/dist/components/verdocs-ok-dialog2.js +1 -3
- 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 +170 -0
- package/dist/components/verdocs-search.js +8 -2
- package/dist/components/verdocs-send2.js +5 -12
- package/dist/components/verdocs-settings-organization2.js +1 -22
- package/dist/components/verdocs-sign.js +4 -8
- package/dist/components/verdocs-template-create2.js +2 -2
- package/dist/components/verdocs-template-field-properties2.js +0 -10
- package/dist/components/verdocs-template-fields2.js +38 -46
- package/dist/components/verdocs-template-roles2.js +4 -4
- package/dist/docs.json +108 -139
- package/dist/esm/{EnvelopeStore-17c0bc52.js → EnvelopeStore-15cc99ef.js} +1 -1
- package/dist/esm/{Envelopes-627c5239.js → Envelopes-21ffb899.js} +6 -2
- package/dist/esm/{Profiles-d4df4d1c.js → Profiles-4cc942ef.js} +32 -1
- package/dist/esm/{TemplateStore-ad77a294.js → TemplateStore-018fc1db.js} +1 -1
- package/dist/esm/Types-de18e225.js +4 -0
- package/dist/esm/{VerdocsEndpoint-56fa3371.js → VerdocsEndpoint-b011af25.js} +562 -197
- package/dist/esm/{_commonjsHelpers-8a9f3b18.js → _commonjsHelpers-5ec8f9b7.js} +5 -1
- package/dist/esm/interact.min-cf83fa88.js +11 -0
- package/dist/esm/ipc-test.entry.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-ca3121df.js → utils-d269cea3.js} +3 -3
- package/dist/esm/verdocs-activity-box.entry.js +2 -2
- package/dist/esm/verdocs-auth.entry.js +34 -8
- package/dist/esm/verdocs-build.entry.js +2 -2
- package/dist/esm/verdocs-button-panel_2.entry.js +3 -12
- package/dist/esm/{verdocs-contact-picker_3.entry.js → verdocs-contact-picker_2.entry.js} +7 -78
- package/dist/esm/verdocs-envelope-document-page.entry.js +5 -5
- package/dist/esm/verdocs-envelope-recipient-link_2.entry.js +3 -3
- package/dist/esm/verdocs-envelope-sidebar.entry.js +4 -5
- package/dist/esm/verdocs-envelopes-list.entry.js +5 -5
- package/dist/esm/verdocs-field-attachment.entry.js +4 -4
- package/dist/esm/verdocs-field-checkbox.entry.js +4 -4
- package/dist/esm/verdocs-field-date.entry.js +5 -5
- package/dist/esm/verdocs-field-dropdown.entry.js +5 -4
- package/dist/esm/verdocs-field-initial.entry.js +4 -4
- package/dist/esm/verdocs-field-payment.entry.js +4 -4
- package/dist/esm/verdocs-field-radio-button.entry.js +4 -4
- package/dist/esm/verdocs-field-signature.entry.js +4 -4
- package/dist/esm/verdocs-field-textarea.entry.js +9 -10
- package/dist/esm/verdocs-field-textbox.entry.js +9 -9
- package/dist/esm/verdocs-field-timestamp.entry.js +5 -5
- package/dist/esm/verdocs-file-chooser_2.entry.js +1 -1
- package/dist/esm/verdocs-ok-dialog.entry.js +1 -2
- package/dist/esm/verdocs-pagination_2.entry.js +4 -4
- package/dist/esm/verdocs-preview_8.entry.js +8 -9
- package/dist/esm/verdocs-quick-functions_3.entry.js +214 -0
- package/dist/esm/verdocs-search.entry.js +1 -1
- package/dist/esm/verdocs-settings-api-keys_4.entry.js +35 -68
- package/dist/esm/verdocs-settings.entry.js +1 -1
- package/dist/esm/verdocs-sign.entry.js +9 -12
- package/dist/esm/verdocs-template-document-page_2.entry.js +5 -5
- package/dist/esm/verdocs-template-fields_4.entry.js +47 -55
- package/dist/esm/verdocs-template-star.entry.js +1 -1
- package/dist/esm/verdocs-templates-list.entry.js +1 -1
- package/dist/esm/verdocs-view.entry.js +5 -5
- package/dist/esm/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/{EnvelopeStore-17c0bc52.js → EnvelopeStore-15cc99ef.js} +1 -1
- package/dist/esm-es5/Envelopes-21ffb899.js +1 -0
- package/dist/esm-es5/Profiles-4cc942ef.js +1 -0
- package/dist/esm-es5/{TemplateStore-ad77a294.js → TemplateStore-018fc1db.js} +1 -1
- package/dist/esm-es5/Types-de18e225.js +1 -0
- package/dist/esm-es5/VerdocsEndpoint-b011af25.js +1 -0
- package/dist/esm-es5/_commonjsHelpers-5ec8f9b7.js +1 -0
- package/dist/esm-es5/interact.min-cf83fa88.js +1 -0
- package/dist/esm-es5/ipc-test.entry.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{utils-ca3121df.js → utils-d269cea3.js} +2 -2
- package/dist/esm-es5/verdocs-activity-box.entry.js +1 -1
- package/dist/esm-es5/verdocs-auth.entry.js +1 -1
- package/dist/esm-es5/verdocs-build.entry.js +1 -1
- package/dist/esm-es5/verdocs-button-panel_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-contact-picker_2.entry.js +1 -0
- package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-recipient-link_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-attachment.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-checkbox.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-date.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-dropdown.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-initial.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-payment.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-radio-button.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-signature.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-textarea.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-textbox.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-timestamp.entry.js +1 -1
- package/dist/esm-es5/verdocs-file-chooser_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-pagination_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-preview_8.entry.js +1 -1
- package/dist/esm-es5/verdocs-quick-functions_3.entry.js +1 -0
- package/dist/esm-es5/verdocs-search.entry.js +1 -1
- package/dist/esm-es5/verdocs-settings-api-keys_4.entry.js +1 -1
- package/dist/esm-es5/verdocs-settings.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-fields_4.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
- package/dist/esm-es5/verdocs-templates-list.entry.js +1 -1
- package/dist/esm-es5/verdocs-view.entry.js +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js +1 -1
- package/dist/types/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.d.ts +0 -4
- package/dist/types/components/elements/verdocs-search-activity/verdocs-search-activity.d.ts +33 -0
- package/dist/types/components/{controls/verdocs-portal/verdocs-portal.stories.d.ts → elements/verdocs-search-activity/verdocs-search-activity.stories.d.ts} +6 -3
- package/dist/types/components/embeds/verdocs-auth/verdocs-auth.d.ts +2 -0
- package/dist/types/components/embeds/verdocs-sign/verdocs-sign.d.ts +0 -1
- package/dist/types/components/templates/verdocs-template-field-properties/verdocs-template-field-properties.d.ts +0 -1
- package/dist/types/components.d.ts +34 -50
- package/dist/types/utils/Types.d.ts +1 -1
- package/dist/types/utils/utils.d.ts +2 -2
- package/dist/verdocs-web-sdk/p-01166179.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-d1ea580b.system.entry.js → p-013d1556.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-04580be0.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-17bf98f2.system.entry.js → p-04d7d759.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-da3faf4a.entry.js → p-0ad1fd33.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-0d28cf05.js +1 -0
- package/dist/verdocs-web-sdk/{p-a40b3946.entry.js → p-0df58c57.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ba653c39.system.entry.js → p-0e5449d1.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-dd2c2edc.entry.js → p-0f94d635.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-0685d939.system.entry.js → p-10af7aec.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-b467d981.system.entry.js → p-126ba5d2.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d59b6988.entry.js → p-137cedc8.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-05e6bc91.entry.js → p-1406ffd2.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-8af68516.system.entry.js → p-14aefeb2.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-15cb963a.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-17d0e5f4.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-23be436b.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-1e38b22f.system.entry.js → p-261d376e.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-2ccbcfeb.system.js +1 -0
- package/dist/verdocs-web-sdk/{p-1cb878c8.system.entry.js → p-2f04fb38.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-30b4bd45.js +1 -0
- package/dist/verdocs-web-sdk/p-3305a941.system.js +1 -0
- package/dist/verdocs-web-sdk/{p-fe67b620.system.entry.js → p-343672f5.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ac98f6f1.system.entry.js → p-35769d0c.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d39e4a26.system.entry.js → p-37187046.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-6331d113.entry.js → p-39cbfe15.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-46624bec.entry.js → p-3a702f79.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-c80237f9.entry.js → p-3abfff14.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-f42c84f1.entry.js → p-3f9fbf94.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-409e992a.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-4a94ee00.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-2ccbf54d.entry.js → p-4f439363.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-b6231fd3.system.entry.js → p-50ac71f3.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-51756c1b.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-5a91bf23.js +1 -0
- package/dist/verdocs-web-sdk/{p-9ceff040.system.entry.js → p-5c50a778.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-79168c6a.system.entry.js → p-5df0fa7a.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-b648ab63.system.entry.js → p-609c7fab.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-870707e8.system.entry.js → p-62f090c7.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-6307e6ae.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-66d66e2b.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-cf703fe4.entry.js → p-6bda7dce.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-76907130.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-37dfdc84.entry.js → p-77abc3ce.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-035a3ce2.entry.js → p-7805f0e0.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-e1bc55f8.entry.js → p-79dc4f76.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-f3dde708.js → p-7b63017c.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9615b087.system.js → p-7e8d64fb.system.js} +1 -1
- package/dist/verdocs-web-sdk/p-7fd7152d.system.js +1 -0
- package/dist/verdocs-web-sdk/p-89aa696c.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-410c63e6.entry.js → p-8da1555a.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-961708ac.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-983da2f6.js +1 -0
- package/dist/verdocs-web-sdk/p-9934f3ec.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-637187de.entry.js → p-9b07a2a7.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-4d98f194.system.entry.js → p-a0b02d83.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-3f3807b0.system.entry.js → p-a171983b.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-94009f45.entry.js → p-a310f65b.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-02a71e03.js → p-a35314fe.js} +1 -1
- package/dist/verdocs-web-sdk/{p-b7a815e9.system.entry.js → p-a52a832b.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-a5425a9b.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-9360b085.system.entry.js → p-aa51514f.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-8b0a5309.entry.js → p-ace35be6.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-4e47ed1c.entry.js → p-af3e9624.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-e760f894.entry.js → p-b17a20b8.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-b2d698f7.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-d99a05e4.system.entry.js → p-b73415c3.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-bb2c866b.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-bbee73c8.system.js +1 -0
- package/dist/verdocs-web-sdk/{p-acc873cf.system.entry.js → p-bd0bc3dd.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-bfcf8ad2.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-840827b7.system.js → p-c694cf93.system.js} +1 -1
- package/dist/verdocs-web-sdk/p-cbbf849f.system.js +1 -0
- package/dist/verdocs-web-sdk/p-cbd0802f.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-eeca4c30.entry.js → p-cf765153.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-f6b7439f.system.entry.js → p-dd8845d4.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-de60d3a8.js +1 -0
- package/dist/verdocs-web-sdk/{p-6685ff29.system.entry.js → p-df6a373e.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-59769c39.system.entry.js → p-e3a9d167.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-eab67c09.js +1 -0
- package/dist/verdocs-web-sdk/{p-82b5e475.system.js → p-eb595245.system.js} +1 -1
- package/dist/verdocs-web-sdk/{p-1f78be32.js → p-ebc4142c.js} +1 -1
- package/dist/verdocs-web-sdk/p-ecf04564.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-ee195e5e.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-82d4afbf.entry.js → p-eef694e8.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-f04bf956.system.js +1 -1
- package/dist/verdocs-web-sdk/{p-ab98a02d.system.entry.js → p-f1257cd0.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-f65a1b9e.system.js +1 -0
- package/dist/verdocs-web-sdk/{p-9d2995a9.entry.js → p-fde6b724.entry.js} +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +7 -8
- package/dist/cjs/interact.min-a61b43b3.js +0 -12
- package/dist/cjs/verdocs-quick-functions_2.cjs.entry.js +0 -79
- package/dist/collection/components/controls/verdocs-portal/verdocs-portal.css +0 -0
- package/dist/collection/components/controls/verdocs-portal/verdocs-portal.js +0 -181
- package/dist/collection/components/controls/verdocs-portal/verdocs-portal.stories.js +0 -20
- package/dist/components/verdocs-portal.d.ts +0 -11
- package/dist/components/verdocs-portal.js +0 -6
- package/dist/components/verdocs-portal2.js +0 -93
- package/dist/esm/Types-1628dc71.js +0 -5
- package/dist/esm/interact.min-6a7b19a1.js +0 -10
- package/dist/esm/verdocs-quick-functions_2.entry.js +0 -74
- package/dist/esm-es5/Envelopes-627c5239.js +0 -1
- package/dist/esm-es5/Profiles-d4df4d1c.js +0 -1
- package/dist/esm-es5/Types-1628dc71.js +0 -1
- package/dist/esm-es5/VerdocsEndpoint-56fa3371.js +0 -1
- package/dist/esm-es5/_commonjsHelpers-8a9f3b18.js +0 -1
- package/dist/esm-es5/interact.min-6a7b19a1.js +0 -1
- package/dist/esm-es5/verdocs-contact-picker_3.entry.js +0 -1
- package/dist/esm-es5/verdocs-quick-functions_2.entry.js +0 -1
- package/dist/types/components/controls/verdocs-portal/verdocs-portal.d.ts +0 -37
- package/dist/verdocs-web-sdk/p-035f6b38.js +0 -1
- package/dist/verdocs-web-sdk/p-0abf0058.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-17598002.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-1a7aa04b.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-1ba9f457.system.js +0 -1
- package/dist/verdocs-web-sdk/p-1c08edf7.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-22e0d2bc.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-319c00bd.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-3e607686.js +0 -1
- package/dist/verdocs-web-sdk/p-6dd69d82.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-736fbb87.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-746fce21.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-76f8c30a.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-7b30c523.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-7d5dbd9a.js +0 -1
- package/dist/verdocs-web-sdk/p-839f6f0d.js +0 -1
- package/dist/verdocs-web-sdk/p-85df0da6.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-8aae8d16.system.js +0 -1
- package/dist/verdocs-web-sdk/p-915883e6.js +0 -1
- package/dist/verdocs-web-sdk/p-9a5c0882.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-9bf2d124.system.js +0 -1
- package/dist/verdocs-web-sdk/p-9fc06f7b.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-ae83f4a0.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-b91de346.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-cd20fb77.system.js +0 -1
- package/dist/verdocs-web-sdk/p-d0a09719.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-d61fda4b.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-d8cd6b59.system.js +0 -1
- package/dist/verdocs-web-sdk/p-dc2ad047.js +0 -1
- package/dist/verdocs-web-sdk/p-e28878eb.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-e2ae3679.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-e2ff37fb.system.js +0 -1
- package/dist/verdocs-web-sdk/p-e4dc3264.system.entry.js +0 -1
@@ -0,0 +1,14 @@
|
|
1
|
+
import { html } from 'lit-html';
|
2
|
+
/**
|
3
|
+
* Display a list of starred items (favorite templates).
|
4
|
+
*/
|
5
|
+
export default {
|
6
|
+
title: 'Search/Search Activity',
|
7
|
+
component: 'verdocs-search-activity',
|
8
|
+
args: {},
|
9
|
+
argTypes: {
|
10
|
+
type: { defaultValue: 'recent' },
|
11
|
+
entrySelected: { action: 'entrySelected' },
|
12
|
+
},
|
13
|
+
};
|
14
|
+
export const SearchActivity = ({ type, entrySelected }) => html `<verdocs-search-activity .type=${type} @entrySelected=${entrySelected} tall />`;
|
@@ -1,10 +1,14 @@
|
|
1
1
|
import { Token } from '@verdocs/js-sdk/Utils';
|
2
2
|
import { VerdocsEndpoint } from '@verdocs/js-sdk';
|
3
3
|
import { Auth, Profiles } from '@verdocs/js-sdk/Users';
|
4
|
+
import { Organizations } from '@verdocs/js-sdk/Organizations';
|
4
5
|
import { h } from '@stencil/core';
|
5
6
|
import { VerdocsToast } from '../../../utils/Toast';
|
6
7
|
import { SDKError } from '../../../utils/errors';
|
7
8
|
const RECHECK_INTERVAL = 5000;
|
9
|
+
const OkIcon = `<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24" fill="green"><path fill-rule="evenodd" d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z" clip-rule="evenodd" /></svg>`;
|
10
|
+
const TakenIcon = `<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24" fill="red"><path fill-rule="evenodd" d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z" clip-rule="evenodd" /></svg>`;
|
11
|
+
const InfoIcon = `<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24" fill="#4a4a4a"><path fill-rule="evenodd" d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm11.378-3.917c-.89-.777-2.366-.777-3.255 0a.75.75 0 01-.988-1.129c1.454-1.272 3.776-1.272 5.23 0 1.513 1.324 1.513 3.518 0 4.842a3.75 3.75 0 01-.837.552c-.676.328-1.028.774-1.028 1.152v.75a.75.75 0 01-1.5 0v-.75c0-1.279 1.06-2.107 1.875-2.502.182-.088.351-.199.503-.331.83-.727.83-1.857 0-2.584zM12 18a.75.75 0 100-1.5.75.75 0 000 1.5z" clip-rule="evenodd" /></svg>`;
|
8
12
|
const Industries = [
|
9
13
|
{ value: '', label: '' },
|
10
14
|
{ value: 'Accounting & Tax', label: 'Accounting & Tax' },
|
@@ -85,6 +89,7 @@ export class VerdocsAuth {
|
|
85
89
|
this.isAuthenticated = false;
|
86
90
|
this.displayMode = 'login';
|
87
91
|
this.orgname = '';
|
92
|
+
this.orgAvailable = 'UNKNOWN';
|
88
93
|
this.first = '';
|
89
94
|
this.last = '';
|
90
95
|
this.username = '';
|
@@ -147,10 +152,13 @@ export class VerdocsAuth {
|
|
147
152
|
firstName: this.first,
|
148
153
|
lastName: this.last,
|
149
154
|
orgName: this.orgname,
|
150
|
-
|
151
|
-
|
152
|
-
//
|
153
|
-
//
|
155
|
+
industry: this.industry,
|
156
|
+
size: this.companySize,
|
157
|
+
// source?: string;
|
158
|
+
// referral?: string;
|
159
|
+
// coupon?: string;
|
160
|
+
reason: this.reason,
|
161
|
+
hearabout: this.howHear,
|
154
162
|
})
|
155
163
|
.then(r => {
|
156
164
|
console.log('Result', r);
|
@@ -244,6 +252,23 @@ export class VerdocsAuth {
|
|
244
252
|
this.submitting = false;
|
245
253
|
});
|
246
254
|
}
|
255
|
+
async checkAvailability(name) {
|
256
|
+
this.checkingOrg = true;
|
257
|
+
try {
|
258
|
+
this.orgname = name;
|
259
|
+
const r = await Organizations.isOrgAvailable(this.endpoint, name);
|
260
|
+
this.orgAvailable = r.result;
|
261
|
+
console.log('response', this.orgAvailable);
|
262
|
+
// Stage: POST - https://2r8pilqa44.execute-api.us-east-1.amazonaws.com/organizations/check-availability
|
263
|
+
// Prod: POST - https://lb1is9fxoc.execute-api.us-east-1.amazonaws.com/organizations/check-availability
|
264
|
+
}
|
265
|
+
catch (e) {
|
266
|
+
// NOP
|
267
|
+
// We need to trap this error because we get a 400 if the org name is invalid.
|
268
|
+
this.orgAvailable = 'UNKNOWN';
|
269
|
+
}
|
270
|
+
this.checkingOrg = false;
|
271
|
+
}
|
247
272
|
render() {
|
248
273
|
if (!this.visible) {
|
249
274
|
return h("div", { style: { display: 'none' } }, "Authenticated");
|
@@ -252,8 +277,10 @@ export class VerdocsAuth {
|
|
252
277
|
return (h("verdocs-button", { label: "Sign Out", disabled: this.submitting, onClick: () => this.handleLogout(), style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }));
|
253
278
|
}
|
254
279
|
if (this.displayMode === 'signup') {
|
255
|
-
const step1Invalid = this.submitting || !this.first || !this.last || !this.username || !this.password || !this.orgname;
|
256
|
-
return (h("div", { class: "form" }, h("a", { href: "https://verdocs.com/en/" }, h("img", { src: this.logo, alt: "Verdocs Logo", class: "logo" })), h("h3", null, "Sign up for a trial account"), h("h4", null, "Already have an account?", h("verdocs-button", { label: "Log In", variant: "text", onClick: () => (this.displayMode = 'login'), disabled: this.submitting })), this.signupStep === 1 && (h("form", { onSubmit: () => this.handleSignup() }, h("div", { style: { display: 'flex', flexDirection: 'row', columnGap: '20px' } }, h("verdocs-text-input", { label: "First Name", autocomplete: "first", required: true, value: this.first, onInput: (e) => (this.first = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Last Name", autocomplete: "last", required: true, value: this.last, onInput: (e) => (this.last = e.target.value), disabled: this.submitting })), h("verdocs-text-input", { label: "Email", autocomplete: "email", required: true, value: this.username, onInput: (e) => (this.username = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Phone #", autocomplete: "phone", value: this.phone, onInput: (e) => (this.phone = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Password", type: "password", required: true, autocomplete: "current-password", value: this.password, onInput: (e) => (this.password = e.target.value), disabled: this.submitting }), h("
|
280
|
+
const step1Invalid = this.submitting || !this.first || !this.last || !this.username || !this.password || !this.orgname || this.orgAvailable !== 'AVAILABLE';
|
281
|
+
return (h("div", { class: "form" }, h("a", { href: "https://verdocs.com/en/" }, h("img", { src: this.logo, alt: "Verdocs Logo", class: "logo" })), h("h3", null, "Sign up for a trial account"), h("h4", null, "Already have an account?", h("verdocs-button", { label: "Log In", variant: "text", onClick: () => (this.displayMode = 'login'), disabled: this.submitting })), this.signupStep === 1 && (h("form", { onSubmit: () => this.handleSignup() }, h("div", { style: { display: 'flex', flexDirection: 'row', columnGap: '20px' } }, h("verdocs-text-input", { label: "First Name", autocomplete: "first", required: true, value: this.first, onInput: (e) => (this.first = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Last Name", autocomplete: "last", required: true, value: this.last, onInput: (e) => (this.last = e.target.value), disabled: this.submitting })), h("verdocs-text-input", { label: "Email", autocomplete: "email", required: true, value: this.username, onInput: (e) => (this.username = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Phone #", autocomplete: "phone", value: this.phone, onInput: (e) => (this.phone = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Password", type: "password", required: true, autocomplete: "current-password", value: this.password, onInput: (e) => (this.password = e.target.value), disabled: this.submitting }), h("div", { style: { display: 'flex', flexDirection: 'row', gap: '10px', alignItems: 'center' } }, h("verdocs-text-input", { label: "Organization Name", autocomplete: "org", required: true, value: this.orgname, onInput: (e) => this.checkAvailability(e.target.value), disabled: this.submitting, style: { flex: '1' }, onBlur: () => {
|
282
|
+
console.log('blur');
|
283
|
+
} }), !this.checkingOrg && this.orgAvailable === 'AVAILABLE' && h("verdocs-help-icon", { icon: OkIcon, text: "Organization name is available." }), !this.checkingOrg && this.orgAvailable === 'TAKEN' && h("verdocs-help-icon", { icon: TakenIcon, text: "Organization already registered." }), !this.checkingOrg && this.orgAvailable === 'UNKNOWN' && h("verdocs-help-icon", { icon: InfoIcon, text: "Organization name must be unique." }), this.checkingOrg && h("verdocs-spinner", { mode: "dark", size: 24 })), h("div", { style: { marginTop: '30px' } }), h("verdocs-button", { label: "Next", disabled: step1Invalid, onClick: () => (this.signupStep = 2), style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }))), this.signupStep === 2 && (h("form", { onSubmit: () => this.handleSignup() }, h("verdocs-text-input", { label: "How did you hear about Verdocs?", value: this.howHear, onInput: (e) => (this.howHear = e.target.value), disabled: this.submitting }), h("verdocs-select-input", { label: "Your Industry", options: Industries, value: this.industry, onInput: (e) => (this.industry = e.target.value), disabled: this.submitting }), h("verdocs-select-input", { label: "Company Size", options: CompanySizes, value: this.companySize, onInput: (e) => (this.companySize = e.target.value), disabled: this.submitting }), h("verdocs-select-input", { label: "Purpose", options: Reasons, value: this.reason, onInput: (e) => (this.reason = e.target.value), disabled: this.submitting }), h("div", { style: { marginTop: '30px' } }), h("verdocs-button", { label: "Create Account", disabled: this.submitting, onClick: () => this.handleSignup(), style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }))), this.signupStep === 3 && (h("form", { onSubmit: () => this.handleSignup() }, h("p", null, "Please check your e-mail inbox for a verification code and follow the instructions provided."), h("p", null, h("em", null, "Verification messages may take up to 1 hour to arrive. If you do not receive the invitation, ", h("a", { href: "#" }, "Click Here"), " to resend it. Be sure to check your spam folder.")), h("div", { style: { display: 'flex', flexDirection: 'row', gap: '20px' } }, h("verdocs-button", { label: "Back", disabled: this.submitting, onClick: () => {
|
257
284
|
this.signupStep = 2;
|
258
285
|
}, style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }), h("verdocs-button", { label: "Go to Dashboard", disabled: true, onClick: () => this.handleSignup(), style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }))))));
|
259
286
|
}
|
@@ -350,6 +377,7 @@ export class VerdocsAuth {
|
|
350
377
|
"isAuthenticated": {},
|
351
378
|
"displayMode": {},
|
352
379
|
"orgname": {},
|
380
|
+
"orgAvailable": {},
|
353
381
|
"first": {},
|
354
382
|
"last": {},
|
355
383
|
"username": {},
|
@@ -149,8 +149,7 @@ export class VerdocsSend {
|
|
149
149
|
return (h(Host, { class: { sendable: (_d = (_c = this.store) === null || _c === void 0 ? void 0 : _c.state) === null || _d === void 0 ? void 0 : _d.is_sendable } }, h("div", { class: "recipients" }, h("div", { class: "left-line" }), h("div", { class: `level level-start` }, this.getLevelIcon(-1), h("div", { class: "complete" }, "Send Envelope")), this.levels.map(level => (h("div", { class: `level level-${level}` }, this.getLevelIcon(level), this.rolesAtLevel[level].map(role => {
|
150
150
|
var _a, _b, _c, _d, _e, _f;
|
151
151
|
const unknown = !role.email;
|
152
|
-
|
153
|
-
return unknown ? (h("div", { class: "recipient", style: { backgroundColor: getRGBA(getRoleIndex(roleNames, role.name)) }, onClick: e => this.handleClickRole(e, role), id: elId }, (_b = (_a = this.rolesCompleted[role.id]) === null || _a === void 0 ? void 0 : _a.full_name) !== null && _b !== void 0 ? _b : role.name, h("div", { class: "icon", innerHTML: editIcon }), this.showPickerForId === role.id && (h("verdocs-portal", { anchor: elId, onClickAway: () => (this.showPickerForId = '') }, h("verdocs-contact-picker", { onExit: () => (this.showPickerForId = ''), onNext: e => this.handleSelectContact(e, role), contactSuggestions: this.sessionContacts, templateRole: (_c = this.rolesCompleted[role.id]) !== null && _c !== void 0 ? _c : role, onSearchContacts: e => { var _a; return (_a = this.searchContacts) === null || _a === void 0 ? void 0 : _a.emit(e.detail); } }))))) : (h("div", { class: "recipient", style: { borderColor: getRGBA(getRoleIndex(roleNames, role.name)) }, onClick: e => this.handleClickRole(e, role), id: elId }, (_e = (_d = this.rolesCompleted[role.id]) === null || _d === void 0 ? void 0 : _d.full_name) !== null && _e !== void 0 ? _e : role.full_name, h("div", { class: "icon", innerHTML: editIcon }), this.showPickerForId === role.id && (h("verdocs-portal", { anchor: elId, onClickAway: () => (this.showPickerForId = '') }, h("verdocs-contact-picker", { onExit: () => (this.showPickerForId = ''), onNext: e => this.handleSelectContact(e, role), contactSuggestions: this.sessionContacts, templateRole: (_f = this.rolesCompleted[role.id]) !== null && _f !== void 0 ? _f : role, onSearchContacts: e => { var _a; return (_a = this.searchContacts) === null || _a === void 0 ? void 0 : _a.emit(e.detail); } })))));
|
152
|
+
return unknown ? (h("div", { class: "recipient", style: { backgroundColor: getRGBA(getRoleIndex(roleNames, role.name)) }, onClick: e => this.handleClickRole(e, role) }, (_b = (_a = this.rolesCompleted[role.id]) === null || _a === void 0 ? void 0 : _a.full_name) !== null && _b !== void 0 ? _b : role.name, h("div", { class: "icon", innerHTML: editIcon }), this.showPickerForId === role.id && (h("verdocs-contact-picker", { onExit: () => (this.showPickerForId = ''), onNext: e => this.handleSelectContact(e, role), contactSuggestions: this.sessionContacts, templateRole: (_c = this.rolesCompleted[role.id]) !== null && _c !== void 0 ? _c : role, onSearchContacts: e => { var _a; return (_a = this.searchContacts) === null || _a === void 0 ? void 0 : _a.emit(e.detail); } })))) : (h("div", { class: "recipient", style: { borderColor: getRGBA(getRoleIndex(roleNames, role.name)) }, onClick: e => this.handleClickRole(e, role) }, (_e = (_d = this.rolesCompleted[role.id]) === null || _d === void 0 ? void 0 : _d.full_name) !== null && _e !== void 0 ? _e : role.full_name, h("div", { class: "icon", innerHTML: editIcon }), this.showPickerForId === role.id && (h("verdocs-contact-picker", { onExit: () => (this.showPickerForId = ''), onNext: e => this.handleSelectContact(e, role), contactSuggestions: this.sessionContacts, templateRole: (_f = this.rolesCompleted[role.id]) !== null && _f !== void 0 ? _f : role, onSearchContacts: e => { var _a; return (_a = this.searchContacts) === null || _a === void 0 ? void 0 : _a.emit(e.detail); } }))));
|
154
153
|
})))), h("div", { class: `level level-done` }, this.getLevelIcon(this.levels.length), h("div", { class: "complete" }, "Signing Complete"))), h("div", { class: "buttons" }, h("verdocs-button", { label: "Cancel", size: "small", variant: "outline", onClick: e => this.handleCancel(e), disabled: this.sending }), h("verdocs-button", { label: "Send", size: "small", disabled: !allRolesAssigned || this.sending, onClick: e => this.handleSend(e) }), this.sending && h("verdocs-spinner", null))));
|
155
154
|
}
|
156
155
|
static get is() { return "verdocs-send"; }
|
@@ -62,7 +62,6 @@ export class VerdocsSign {
|
|
62
62
|
this.submitting = false;
|
63
63
|
this.isDone = false;
|
64
64
|
this.showDone = false;
|
65
|
-
this.showLoadError = false;
|
66
65
|
this.finishLater = false;
|
67
66
|
this.showFinishLater = false;
|
68
67
|
this.agreed = false;
|
@@ -128,7 +127,6 @@ export class VerdocsSign {
|
|
128
127
|
catch (e) {
|
129
128
|
console.log('Error with signing session', e);
|
130
129
|
(_e = this.sdkError) === null || _e === void 0 ? void 0 : _e.emit(new SDKError(e.message, (_f = e.response) === null || _f === void 0 ? void 0 : _f.status, (_g = e.response) === null || _g === void 0 ? void 0 : _g.data));
|
131
|
-
this.showLoadError = true;
|
132
130
|
}
|
133
131
|
}
|
134
132
|
componentDidRender() {
|
@@ -255,7 +253,9 @@ export class VerdocsSign {
|
|
255
253
|
if (!e.detail) {
|
256
254
|
return;
|
257
255
|
}
|
256
|
+
console.log('Creating signature blob', e.detail);
|
258
257
|
const signatureBlob = await (await fetch(e.detail)).blob();
|
258
|
+
console.log('Created signature blob', signatureBlob);
|
259
259
|
return createSignature(this.endpoint, 'signature', signatureBlob) //
|
260
260
|
.then(async (newSignature) => {
|
261
261
|
console.log('Signature update result', newSignature);
|
@@ -303,7 +303,6 @@ export class VerdocsSign {
|
|
303
303
|
case 'textarea':
|
304
304
|
case 'date':
|
305
305
|
case 'attachment':
|
306
|
-
console.log('Date-type field valid', { required, result, output: !required || result !== '' });
|
307
306
|
return !required || result !== '';
|
308
307
|
case 'dropdown':
|
309
308
|
return !required || value !== '';
|
@@ -378,6 +377,7 @@ export class VerdocsSign {
|
|
378
377
|
if (invalidFields.length < 1) {
|
379
378
|
this.nextButtonLabel = 'Finish';
|
380
379
|
if (!this.nextSubmits) {
|
380
|
+
// this.showSubmitDialog = true;
|
381
381
|
this.nextSubmits = true;
|
382
382
|
}
|
383
383
|
}
|
@@ -393,7 +393,7 @@ export class VerdocsSign {
|
|
393
393
|
console.log('[SIGN] onfieldInput', e.detail, e.target.value);
|
394
394
|
// These field types don't emit fieldChange. Should we standardize on that? We don't tap "input" for fields like
|
395
395
|
// text boxes because we'd be updating the field on every keystroke. We do those on blur which fires fieldChange.
|
396
|
-
if (e.target.name.includes('checkbox_group') || e.target.name.includes('radio_button_group')) {
|
396
|
+
if (e.target.name.includes('date') || e.target.name.includes('checkbox_group') || e.target.name.includes('radio_button_group')) {
|
397
397
|
console.log('CB', e.target);
|
398
398
|
this.handleFieldChange(field, e).finally(() => this.checkRecipientFields());
|
399
399
|
}
|
@@ -490,9 +490,6 @@ export class VerdocsSign {
|
|
490
490
|
})), this.showFinishLater && (h("verdocs-ok-dialog", { heading: "You've saved your document to finish later.", message: `To complete the ${this.documentsSingularPlural}, use the link in the original email notification inviting you to review and finish the document.`, onNext: () => (this.showFinishLater = false) })), this.errorMessage && h("verdocs-ok-dialog", { heading: "Network Error", message: this.errorMessage, onNext: () => (this.errorMessage = '') }), this.showDone && (h("verdocs-ok-dialog", { heading: "You're Done!", message: `You can access the ${this.documentsSingularPlural} at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the document and envelope certificate attached.`, onNext: () => {
|
491
491
|
this.showDone = false;
|
492
492
|
this.isDone = true;
|
493
|
-
} })), this.showLoadError && (h("verdocs-ok-dialog", { heading: "Error Loading Document", message: `Please check with the sender to ensure it has not been canceled, and try again later.`, buttonLabel: "Retry", onNext: () => {
|
494
|
-
this.showLoadError = false;
|
495
|
-
window.location.reload();
|
496
493
|
} })), this.submitting && (h("div", { class: "loading-indicator" }, h("verdocs-loader", null))), !this.agreed && (h("div", { class: "cover" }, h("div", { class: "agree" }, h("verdocs-checkbox", { name: "agree", label: "By checking this box, you:", onInput: () => this.handleClickAgree() }), h("ul", null, h("li", null, "Agree to use electronic records and signatures, and confirm you have read the", ' ', h("a", { href: "https://verdocs.com/en/electronic-record-signature-disclosure/", target: "_blank" }, "Electronic Record and Signatures Disclosure"), "."), h("li", null, "Agree to Verdocs", ' ', h("a", { href: "https://verdocs.com/en/eula", target: "_blank" }, "End User License Agreement"), ' ', "and confirm you have read Verdocs'", ' ', h("a", { href: "https://verdocs.com/en/privacy-policy/", target: "_blank" }, "Privacy Policy"), ".")))))));
|
497
494
|
}
|
498
495
|
static get is() { return "verdocs-sign"; }
|
@@ -597,7 +594,6 @@ export class VerdocsSign {
|
|
597
594
|
"submitting": {},
|
598
595
|
"isDone": {},
|
599
596
|
"showDone": {},
|
600
|
-
"showLoadError": {},
|
601
597
|
"finishLater": {},
|
602
598
|
"showFinishLater": {},
|
603
599
|
"agreed": {},
|
package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.css
CHANGED
@@ -1,9 +1,6 @@
|
|
1
1
|
verdocs-contact-picker {
|
2
|
-
display: block;
|
3
|
-
border: 1px solid #ebebeb;
|
4
|
-
background-color: #ffffff;
|
5
2
|
font-family: "Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;
|
6
|
-
|
3
|
+
background-color: #ffffff;
|
7
4
|
}
|
8
5
|
verdocs-contact-picker form {
|
9
6
|
background-color: #f5f5fa;
|
package/dist/collection/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.js
CHANGED
@@ -16,7 +16,6 @@ const ActivityIcons = {
|
|
16
16
|
visibility: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path d="M12 15a3 3 0 100-6 3 3 0 000 6z" /><path fill-rule="evenodd" d="M1.323 11.447C2.811 6.976 7.028 3.75 12.001 3.75c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113-1.487 4.471-5.705 7.697-10.677 7.697-4.97 0-9.186-3.223-10.675-7.69a1.762 1.762 0 010-1.113zM17.25 12a5.25 5.25 0 11-10.5 0 5.25 5.25 0 0110.5 0z" clip-rule="evenodd" /></svg>`,
|
17
17
|
pencil: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path d="M21.731 2.269a2.625 2.625 0 00-3.712 0l-1.157 1.157 3.712 3.712 1.157-1.157a2.625 2.625 0 000-3.712zM19.513 8.199l-3.712-3.712-12.15 12.15a5.25 5.25 0 00-1.32 2.214l-.8 2.685a.75.75 0 00.933.933l2.685-.8a5.25 5.25 0 002.214-1.32L19.513 8.2z" /></svg>`,
|
18
18
|
mail: `<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>`,
|
19
|
-
contact_mail: `<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>`,
|
20
19
|
done: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path fill-rule="evenodd" d="M19.916 4.626a.75.75 0 01.208 1.04l-9 13.5a.75.75 0 01-1.154.114l-6-6a.75.75 0 011.06-1.06l5.353 5.353 8.493-12.739a.75.75 0 011.04-.208z" clip-rule="evenodd" /></svg>`,
|
21
20
|
send: `<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"/></svg>`,
|
22
21
|
gesture: `<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M4.59 6.89c.7-.71 1.4-1.35 1.71-1.22.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.06-2.77 1.21-1.49 2.83-3.44 4.08-3.44 1.63 0 1.65 1.01 1.76 1.79-3.78.64-5.38 3.67-5.38 5.37 0 1.7 1.44 3.09 3.21 3.09 1.63 0 4.29-1.33 4.69-6.1H21v-2.5h-2.47c-.15-1.65-1.09-4.2-4.03-4.2-2.25 0-4.18 1.91-4.94 2.84-.58.73-2.06 2.48-2.29 2.72-.25.3-.68.84-1.11.84-.45 0-.72-.83-.36-1.92.35-1.09 1.4-2.86 1.85-3.52.78-1.14 1.3-1.92 1.3-3.28C8.95 3.69 7.31 3 6.44 3 5.12 3 3.97 4 3.72 4.25c-.36.36-.66.66-.88.93l1.75 1.71zm9.29 11.66c-.31 0-.74-.26-.74-.72 0-.6.73-2.2 2.87-2.76-.3 2.69-1.43 3.48-2.13 3.48z"/></svg>`,
|
@@ -25,6 +25,7 @@ export class VerdocsFieldDropdown {
|
|
25
25
|
}
|
26
26
|
async showSettingsPanel() {
|
27
27
|
const settingsPanel = document.getElementById(`verdocs-settings-panel-${this.field.name}`);
|
28
|
+
console.log('will hide', settingsPanel);
|
28
29
|
if (settingsPanel && settingsPanel.showPanel) {
|
29
30
|
settingsPanel.showPanel();
|
30
31
|
}
|
@@ -87,12 +87,11 @@ export class VerdocsFieldTextarea {
|
|
87
87
|
var _a, _b, _c, _d;
|
88
88
|
const settings = getFieldSettings(this.field);
|
89
89
|
const disabled = (_b = (_a = this.disabled) !== null && _a !== void 0 ? _a : settings.disabled) !== null && _b !== void 0 ? _b : false;
|
90
|
-
const value = (settings === null || settings === void 0 ? void 0 : settings.result) || '';
|
91
90
|
const backgroundColor = this.field['rgba'] || getRGBA(this.roleindex);
|
92
91
|
if (this.done) {
|
93
92
|
return h(Host, { class: { done: this.done } }, settings.value);
|
94
93
|
}
|
95
|
-
return (h(Host, { class: { required: (_c = this.field) === null || _c === void 0 ? void 0 : _c.required, disabled, done: this.done }, style: { backgroundColor } }, h("textarea", { placeholder: settings.placeholder || '', tabIndex: settings.order, disabled: disabled, name: this.field.name, required: (_d = this.field) === null || _d === void 0 ? void 0 : _d.required, ref: el => (this.inputEl = el) }
|
94
|
+
return (h(Host, { class: { required: (_c = this.field) === null || _c === void 0 ? void 0 : _c.required, disabled, done: this.done }, style: { backgroundColor } }, h("textarea", { placeholder: settings.placeholder || '', tabIndex: settings.order, value: settings.value, disabled: disabled, name: this.field.name, required: (_d = this.field) === null || _d === void 0 ? void 0 : _d.required, ref: el => (this.inputEl = el) }), this.editable && (h("verdocs-button-panel", { icon: settingsIcon, id: `verdocs-settings-panel-${this.field.name}` }, h("verdocs-template-field-properties", { templateId: this.templateid, fieldName: this.field.name, onClose: () => this.hideSettingsPanel(), onDelete: () => {
|
96
95
|
var _a;
|
97
96
|
(_a = this.deleted) === null || _a === void 0 ? void 0 : _a.emit({ fieldName: this.field.name });
|
98
97
|
return this.hideSettingsPanel();
|
@@ -5,6 +5,7 @@ verdocs-field-textbox {
|
|
5
5
|
height: 15px;
|
6
6
|
display: block;
|
7
7
|
font-size: 11px;
|
8
|
+
position: relative;
|
8
9
|
letter-spacing: -0.2px;
|
9
10
|
background-color: transparent;
|
10
11
|
transform-origin: bottom left;
|
@@ -23,7 +24,6 @@ verdocs-field-textbox input {
|
|
23
24
|
font-size: 11px;
|
24
25
|
background: none;
|
25
26
|
font-weight: 500;
|
26
|
-
position: absolute;
|
27
27
|
transform-origin: 0 0;
|
28
28
|
box-sizing: border-box;
|
29
29
|
color: rgba(0, 0, 0, 0.87);
|
package/dist/collection/components/templates/verdocs-template-create/verdocs-template-create.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { VerdocsEndpoint } from '@verdocs/js-sdk';
|
2
|
-
import {
|
2
|
+
import { createTemplate } from '@verdocs/js-sdk/Templates/Templates';
|
3
3
|
import { h, Host } from '@stencil/core';
|
4
4
|
import { SDKError } from '../../../utils/errors';
|
5
5
|
const unicodeNBSP = ' ';
|
@@ -46,7 +46,7 @@ export class VerdocsTemplateCreate {
|
|
46
46
|
this.creating = true;
|
47
47
|
this.progressLabel = 'Uploading...';
|
48
48
|
try {
|
49
|
-
const template = await
|
49
|
+
const template = await createTemplate(this.endpoint, { name: this.file.name, documents: [this.file] }, percent => {
|
50
50
|
if (percent >= 99) {
|
51
51
|
this.progressLabel = 'Processing...';
|
52
52
|
this.progressPercent = 100;
|
@@ -21,7 +21,6 @@ export class VerdocsTemplateFieldProperties {
|
|
21
21
|
this.loading = true;
|
22
22
|
this.type = 'signature';
|
23
23
|
this.setting = null;
|
24
|
-
this.label = '';
|
25
24
|
this.name = '';
|
26
25
|
this.roleName = '';
|
27
26
|
this.group = '';
|
@@ -56,7 +55,6 @@ export class VerdocsTemplateFieldProperties {
|
|
56
55
|
}
|
57
56
|
this.type = field.type;
|
58
57
|
this.name = field.name;
|
59
|
-
this.label = field.label;
|
60
58
|
this.group = field.name;
|
61
59
|
this.roleName = field.role_name;
|
62
60
|
this.required = field.required;
|
@@ -82,7 +80,6 @@ export class VerdocsTemplateFieldProperties {
|
|
82
80
|
const field = (_b = (_a = this.store) === null || _a === void 0 ? void 0 : _a.state) === null || _b === void 0 ? void 0 : _b.fields.find(field => field.name === this.fieldName);
|
83
81
|
if (field) {
|
84
82
|
this.name = field.name;
|
85
|
-
this.label = field.label;
|
86
83
|
this.roleName = field.role_name;
|
87
84
|
this.required = field.required;
|
88
85
|
// TODO: Talk about how we want to handle labels/placeholders
|
@@ -97,7 +94,6 @@ export class VerdocsTemplateFieldProperties {
|
|
97
94
|
e.stopPropagation();
|
98
95
|
const newProperties = {
|
99
96
|
name: this.name,
|
100
|
-
label: this.label || null,
|
101
97
|
required: this.required,
|
102
98
|
role_name: this.roleName,
|
103
99
|
// TODO: Default value in setting?
|
@@ -218,11 +214,6 @@ export class VerdocsTemplateFieldProperties {
|
|
218
214
|
placeholder: "Field Name...", onInput: (e) => {
|
219
215
|
this.name = e.target.value;
|
220
216
|
this.dirty = true;
|
221
|
-
} })), h("div", { class: "row" }, h("verdocs-text-input", { id: "verdocs-field-label", label: "Optional Label", value: this.label, autocomplete: "off",
|
222
|
-
// helpText="The internal name of the field. Must be unique, and contain only letters, numbers, and dashes. After an envelope is completed, the value entered by the signer will be tagged with this key."
|
223
|
-
placeholder: "Optional Label...", onInput: (e) => {
|
224
|
-
this.label = e.target.value;
|
225
|
-
this.dirty = true;
|
226
217
|
} })), h("div", { class: "row" }, h("div", { class: "input-label" }, "Role:"), h("verdocs-select-input", { value: this.roleName, options: (_d = (_c = this.store) === null || _c === void 0 ? void 0 : _c.state) === null || _d === void 0 ? void 0 : _d.roles.map(role => ({ label: role.name, value: role.name })), onInput: (e) => {
|
227
218
|
this.roleName = e.target.value;
|
228
219
|
this.dirty = true;
|
@@ -357,7 +348,6 @@ export class VerdocsTemplateFieldProperties {
|
|
357
348
|
"loading": {},
|
358
349
|
"type": {},
|
359
350
|
"setting": {},
|
360
|
-
"label": {},
|
361
351
|
"name": {},
|
362
352
|
"roleName": {},
|
363
353
|
"group": {},
|
package/dist/collection/components/templates/verdocs-template-fields/verdocs-template-fields.js
CHANGED
@@ -182,59 +182,52 @@ export class VerdocsTemplateFields {
|
|
182
182
|
}
|
183
183
|
async handleMoveEnd(event) {
|
184
184
|
var _a;
|
185
|
-
const name = event.target.getAttribute('name');
|
186
|
-
const option = +(event.target.getAttribute('option') || '0');
|
187
|
-
const field = (_a = this.store) === null || _a === void 0 ? void 0 : _a.state.fields.find(field => field.name === name);
|
188
|
-
console.log('Dropped field', name, field);
|
189
|
-
if (!field) {
|
190
|
-
console.log('[FIELDS] Unable to find field', name);
|
191
|
-
return;
|
192
|
-
}
|
193
185
|
const pageNumber = event.target.getAttribute('pageNumber');
|
194
186
|
const { naturalWidth = 612, naturalHeight = 792, renderedHeight = 792 } = this.cachedPageInfo[pageNumber];
|
195
187
|
const clientRect = event.target.getBoundingClientRect();
|
196
188
|
const parent = event.target.parentElement;
|
197
189
|
const parentRect = parent.getBoundingClientRect();
|
198
|
-
const width = field.setting.width || defaultWidth(field.type);
|
199
|
-
const height = field.setting.height || defaultHeight(field.type);
|
200
190
|
// These two being backwards is not a mistake. Left measures "over" from the left (positive displacement) while bottom measures
|
201
191
|
// "up" from the bottom (negative displacement).
|
202
192
|
const newX = Math.max(clientRect.left - parentRect.left, 0);
|
203
193
|
const newY = Math.max(renderedHeight - (parentRect.bottom - clientRect.bottom), 0);
|
204
|
-
|
205
|
-
const
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
opt
|
226
|
-
opt
|
194
|
+
const { x, y } = this.viewCoordinatesToPageCoordinates(newX, newY, pageNumber, naturalWidth - event.rect.width, naturalHeight - event.rect.height);
|
195
|
+
const name = event.target.getAttribute('name');
|
196
|
+
const option = +(event.target.getAttribute('option') || '0');
|
197
|
+
const field = (_a = this.store) === null || _a === void 0 ? void 0 : _a.state.fields.find(field => field.name === name);
|
198
|
+
if (field) {
|
199
|
+
switch (field.type) {
|
200
|
+
case 'attachment':
|
201
|
+
case 'payment':
|
202
|
+
case 'initial':
|
203
|
+
case 'signature':
|
204
|
+
case 'date':
|
205
|
+
case 'dropdown':
|
206
|
+
case 'textarea':
|
207
|
+
case 'textbox':
|
208
|
+
case 'timestamp':
|
209
|
+
field.setting.x = x;
|
210
|
+
field.setting.y = y;
|
211
|
+
break;
|
212
|
+
case 'checkbox_group':
|
213
|
+
case 'radio_button_group':
|
214
|
+
{
|
215
|
+
const opt = field.setting.options[option];
|
216
|
+
if (opt) {
|
217
|
+
opt.x = x;
|
218
|
+
opt.y = y;
|
219
|
+
}
|
227
220
|
}
|
228
|
-
|
229
|
-
|
221
|
+
break;
|
222
|
+
}
|
223
|
+
console.log('[FIELDS] Will update', name, option, field);
|
224
|
+
const newFieldData = await updateField(this.endpoint, this.templateId, name, field);
|
225
|
+
const pageInfo = this.cachedPageInfo[pageNumber];
|
226
|
+
const roleIndex = getRoleIndex(getRoleNames(this.store), field.role_name);
|
227
|
+
this.handleFieldSettingsChange(pageInfo, field, roleIndex, event.target, newFieldData);
|
228
|
+
event.target.removeAttribute('posX');
|
229
|
+
event.target.removeAttribute('posY');
|
230
230
|
}
|
231
|
-
console.log('[FIELDS] Will update', name, option, field);
|
232
|
-
const newFieldData = await updateField(this.endpoint, this.templateId, name, field);
|
233
|
-
const pageInfo = this.cachedPageInfo[pageNumber];
|
234
|
-
const roleIndex = getRoleIndex(getRoleNames(this.store), field.role_name);
|
235
|
-
this.handleFieldSettingsChange(pageInfo, field, roleIndex, event.target, newFieldData);
|
236
|
-
event.target.removeAttribute('posX');
|
237
|
-
event.target.removeAttribute('posY');
|
238
231
|
}
|
239
232
|
generateFieldName(type, pageNumber) {
|
240
233
|
var _a;
|
@@ -251,7 +244,6 @@ export class VerdocsTemplateFields {
|
|
251
244
|
const { xScale = 1, yScale = 1, renderedHeight = 792 } = this.cachedPageInfo[pageNumber];
|
252
245
|
const x = Math.floor(Math.min(viewX / xScale, xMax));
|
253
246
|
const y = Math.floor(Math.min(Math.max(renderedHeight - viewY, 0) / yScale, yMax));
|
254
|
-
console.log('Computed coordinates', { x, y, viewX, viewY, xMax, yMax });
|
255
247
|
return { x, y };
|
256
248
|
}
|
257
249
|
async handleClickPage(e, pageNumber) {
|
@@ -96,7 +96,6 @@ var getSummary = function (endpoint, page) { return __awaiter(void 0, void 0, vo
|
|
96
96
|
*/
|
97
97
|
var getSigningSession = function (endpoint, params) { return __awaiter(void 0, void 0, void 0, function () {
|
98
98
|
return __generator(this, function (_a) {
|
99
|
-
window.console.log('[JS_SDK] getSigningSession', params, endpoint.api);
|
100
99
|
return [2 /*return*/, endpoint.api //
|
101
100
|
.get("/envelopes/".concat(params.envelopeId, "/recipients/").concat(encodeURIComponent(params.roleId), "/invitation/").concat(params.inviteCode))
|
102
101
|
.then(function (r) {
|
@@ -224,7 +223,12 @@ var getEnvelopeDocumentPageDisplayUri = function (endpoint, envelopeId, document
|
|
224
223
|
return __awaiter(void 0, void 0, void 0, function () {
|
225
224
|
return __generator(this, function (_a) {
|
226
225
|
return [2 /*return*/, endpoint.api
|
227
|
-
.get("/envelopes/".concat(envelopeId, "/envelope_documents/").concat(documentId, "/pages/").concat(page, "/image?type=").concat(type), {
|
226
|
+
.get("/envelopes/".concat(envelopeId, "/envelope_documents/").concat(documentId, "/pages/").concat(page, "/image?type=").concat(type), {
|
227
|
+
timeout: 20000,
|
228
|
+
'axios-retry': {
|
229
|
+
retries: 5,
|
230
|
+
},
|
231
|
+
})
|
228
232
|
.then(function (r) { return r.data; })];
|
229
233
|
});
|
230
234
|
});
|
@@ -0,0 +1,32 @@
|
|
1
|
+
/**
|
2
|
+
* An Organization is the top level object for ownership for Members, Documents, and Templates.
|
3
|
+
*
|
4
|
+
* @module
|
5
|
+
*/
|
6
|
+
/**
|
7
|
+
* Get an organization by ID.
|
8
|
+
*/
|
9
|
+
var getOrganization = function (endpoint, organizationId) {
|
10
|
+
return endpoint.api //
|
11
|
+
.get("/organizations/".concat(organizationId))
|
12
|
+
.then(function (r) { return r.data; });
|
13
|
+
};
|
14
|
+
/**
|
15
|
+
* Update an organization.
|
16
|
+
*/
|
17
|
+
var updateOrganization = function (endpoint, organizationId, params) {
|
18
|
+
return endpoint.api //
|
19
|
+
.patch("/organizations/".concat(organizationId), params)
|
20
|
+
.then(function (r) { return r.data; });
|
21
|
+
};
|
22
|
+
/**
|
23
|
+
* Check if an organization name is available. Typically used during the sign-up process. This endpoint is rate-limited
|
24
|
+
* to prevent abuse. Developers experiencing problems with testing new applications should contact support.
|
25
|
+
*/
|
26
|
+
var isOrgAvailable = function (endpoint, name) {
|
27
|
+
return endpoint.api //
|
28
|
+
.post('/organizations/check-availability', { name: name }, { baseURL: endpoint.getBaseURLv2() })
|
29
|
+
.then(function (r) { return r.data; });
|
30
|
+
};
|
31
|
+
|
32
|
+
export { getOrganization as g, isOrgAvailable as i, updateOrganization as u };
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { c as createStore } from './index4.js';
|
2
|
-
import {
|
2
|
+
import { e as getTemplate, b as TemplateSenderTypes } from './VerdocsEndpoint.js';
|
3
3
|
|
4
4
|
const createTemplateStore = (templateId) => {
|
5
5
|
const now = new Date().toISOString();
|