@vc-shell/framework 1.1.99-alpha.2 → 1.2.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/core/api/platform.ts +9883 -9883
- package/core/composables/useDynamicProperties/index.ts +16 -10
- package/core/composables/useNotifications/index.ts +1 -32
- package/core/composables/useSettings/index.ts +3 -8
- package/core/composables/useUser/index.ts +171 -74
- package/core/composables/useUserManagement/index.ts +25 -67
- package/core/interceptors/index.ts +56 -19
- package/core/plugins/signalR/index.ts +1 -27
- package/core/types/index.ts +0 -2
- package/dist/core/api/platform.d.ts +1 -1
- package/dist/core/api/platform.d.ts.map +1 -1
- package/dist/core/composables/useDynamicProperties/index.d.ts.map +1 -1
- package/dist/core/composables/useNotifications/index.d.ts.map +1 -1
- package/dist/core/composables/useSettings/index.d.ts.map +1 -1
- package/dist/core/composables/useUser/index.d.ts +9 -18
- package/dist/core/composables/useUser/index.d.ts.map +1 -1
- package/dist/core/composables/useUserManagement/index.d.ts +7 -7
- package/dist/core/composables/useUserManagement/index.d.ts.map +1 -1
- package/dist/core/interceptors/index.d.ts +1 -2
- package/dist/core/interceptors/index.d.ts.map +1 -1
- package/dist/core/plugins/signalR/index.d.ts +0 -2
- package/dist/core/plugins/signalR/index.d.ts.map +1 -1
- package/dist/core/types/index.d.ts +1 -1
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/index.d.ts +0 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/injection-keys.d.ts +1 -2
- package/dist/injection-keys.d.ts.map +1 -1
- package/dist/shared/components/app-switcher/composables/useAppSwitcher/index.d.ts.map +1 -1
- package/dist/shared/components/multilanguage-selector/multilanguage-selector.vue.d.ts +1 -1
- package/dist/shared/components/notifications/components/notification-container/index.d.ts +10 -10
- package/dist/shared/components/notifications/components/notification-container/index.d.ts.map +1 -1
- package/dist/shared/components/sign-in/useExternalProvider.d.ts +1 -1
- package/dist/shared/components/sign-in/useExternalProvider.d.ts.map +1 -1
- package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts +2 -2
- package/dist/shared/modules/dynamic/helpers/nodeBuilder.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts +2 -2
- package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts +2 -2
- package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts +1 -1
- package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts.map +1 -1
- package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts +1 -1
- package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-container/vc-container.vue.d.ts +2 -2
- package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/index.d.ts +1 -0
- package/dist/ui/components/molecules/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-accordion/_internal/vc-accordion-item/vc-accordion-item.vue.d.ts +34 -0
- package/dist/ui/components/molecules/vc-accordion/_internal/vc-accordion-item/vc-accordion-item.vue.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-accordion/index.d.ts +7 -0
- package/dist/ui/components/molecules/vc-accordion/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-accordion/vc-accordion.vue.d.ts +42 -0
- package/dist/ui/components/molecules/vc-accordion/vc-accordion.vue.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-editor/_internal/vc-editor-button.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-base-button.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-circle-button.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-circle-button.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade.backupsb.d.ts +3 -3
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +5 -5
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-body/vc-table-body.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-row/vc-table-row.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/vc-table-desktop-view.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts +1 -1
- package/package.json +5 -7
- package/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue +2 -2
- package/shared/components/app-switcher/composables/useAppSwitcher/index.ts +1 -15
- package/shared/components/sign-in/useExternalProvider.ts +1 -11
- package/shared/modules/dynamic/helpers/nodeBuilder.ts +3 -11
- package/ui/components/atoms/vc-badge/vc-badge.stories.ts +1 -1
- package/ui/components/atoms/vc-button/vc-button.stories.ts +1 -1
- package/ui/components/atoms/vc-card/vc-card.stories.ts +1 -1
- package/ui/components/atoms/vc-col/vc-col.stories.ts +1 -1
- package/ui/components/atoms/vc-container/vc-container.stories.ts +1 -1
- package/ui/components/atoms/vc-hint/vc-hint.stories.ts +1 -1
- package/ui/components/atoms/vc-icon/vc-icon.stories.ts +1 -1
- package/ui/components/atoms/vc-image/vc-image.stories.ts +1 -1
- package/ui/components/atoms/vc-label/vc-label.stories.ts +1 -1
- package/ui/components/atoms/vc-link/vc-link.stories.ts +1 -1
- package/ui/components/atoms/vc-progress/vc-progress.stories.ts +1 -1
- package/ui/components/atoms/vc-row/vc-row.stories.ts +1 -1
- package/ui/components/atoms/vc-skeleton/vc-skeleton.stories.ts +1 -1
- package/ui/components/atoms/vc-status/vc-status.stories.ts +1 -1
- package/ui/components/atoms/vc-status-icon/vc-status-icon.stories.ts +1 -1
- package/ui/components/atoms/vc-tooltip/vc-tooltip.stories.ts +1 -1
- package/ui/components/atoms/vc-video/vc-video.stories.ts +1 -1
- package/ui/components/atoms/vc-widget/vc-widget.stories.ts +1 -1
- package/ui/components/molecules/index.ts +1 -0
- package/ui/components/molecules/vc-accordion/_internal/vc-accordion-item/vc-accordion-item.vue +251 -0
- package/ui/components/molecules/vc-accordion/index.ts +11 -0
- package/ui/components/molecules/vc-accordion/vc-accordion.stories.ts +526 -0
- package/ui/components/molecules/vc-accordion/vc-accordion.vue +176 -0
- package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.stories.ts +1 -1
- package/ui/components/molecules/vc-checkbox/vc-checkbox.stories.ts +1 -1
- package/ui/components/molecules/vc-editor/vc-editor.stories.ts +1 -1
- package/ui/components/molecules/vc-field/vc-field.stories.ts +1 -1
- package/ui/components/molecules/vc-file-upload/vc-file-upload.stories.ts +1 -1
- package/ui/components/molecules/vc-form/vc-form.stories.ts +1 -1
- package/ui/components/molecules/vc-input/vc-input.stories.ts +1 -1
- package/ui/components/molecules/vc-input-currency/vc-input-currency.stories.ts +1 -1
- package/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.stories.ts +1 -1
- package/ui/components/molecules/vc-multivalue/vc-multivalue.stories.ts +1 -1
- package/ui/components/molecules/vc-pagination/vc-pagination.stories.ts +1 -1
- package/ui/components/molecules/vc-radio-button/vc-radio-button.stories.ts +1 -1
- package/ui/components/molecules/vc-rating/vc-rating.stories.ts +1 -1
- package/ui/components/molecules/vc-select/vc-select.stories.ts +1 -1
- package/ui/components/molecules/vc-slider/vc-slider.stories.ts +1 -1
- package/ui/components/molecules/vc-switch/vc-switch.stories.ts +1 -1
- package/ui/components/molecules/vc-textarea/vc-textarea.stories.ts +1 -1
- package/ui/components/molecules/vc-toast/vc-toast.stories.ts +1 -1
- package/ui/components/organisms/vc-app/vc-app.vue +2 -20
- package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +4 -0
- package/ui/components/organisms/vc-gallery/vc-gallery.stories.ts +1 -1
- package/ui/components/organisms/vc-popup/vc-popup.stories.ts +1 -1
- package/core/providers/README.md +0 -176
- package/core/providers/auth-provider-manager.ts +0 -74
- package/core/providers/auth-provider-utils.ts +0 -26
- package/core/providers/example-custom-auth-provider.ts +0 -162
- package/core/providers/index.ts +0 -3
- package/core/providers/platform-auth-provider.ts +0 -207
- package/core/types/auth-provider.ts +0 -40
- package/dist/assets/042c75b764bc78a7.svg +0 -1
- package/dist/assets/0ba156439a339f2a.svg +0 -1
- package/dist/assets/0be560bfb22d0e72.woff2 +0 -0
- package/dist/assets/0f590f8a94577092.svg +0 -1
- package/dist/assets/0fc5820f8be53a1b.svg +0 -1
- package/dist/assets/105efd028edc1dfe.woff +0 -0
- package/dist/assets/10768e2cc79fc60b.svg +0 -1
- package/dist/assets/11b3d25a56fd9a21.woff2 +0 -0
- package/dist/assets/154365acf3010d96.woff2 +0 -0
- package/dist/assets/157b8721e0600ea8.svg +0 -1
- package/dist/assets/15e91cdd649cde9a.svg +0 -1
- package/dist/assets/19275e398ae57130.woff2 +0 -0
- package/dist/assets/1a3e84b2457f709a.woff +0 -0
- package/dist/assets/1de63eb118636cce.svg +0 -1
- package/dist/assets/1ea01de36eb5491b.svg +0 -1
- package/dist/assets/204eaf512fde2023.svg +0 -1
- package/dist/assets/2088983edf42e153.svg +0 -1
- package/dist/assets/208f810a9321a327.svg +0 -1
- package/dist/assets/21220a9d10e6c558.svg +0 -1
- package/dist/assets/220db345a102045d.woff2 +0 -0
- package/dist/assets/225da11d23968333.svg +0 -1
- package/dist/assets/226f862dd81bdc13.woff2 +0 -0
- package/dist/assets/23a2d53395ddb14f.woff +0 -0
- package/dist/assets/259e6ad461a52ad7.svg +0 -1
- package/dist/assets/261e6dec4d53b9ac.woff +0 -0
- package/dist/assets/262f46a0b6d94bb6.svg +0 -1
- package/dist/assets/2857c513073467da.svg +0 -1
- package/dist/assets/2b3be7889467d98f.woff +0 -0
- package/dist/assets/2d4e6190eec72737.svg +0 -1
- package/dist/assets/2eba973185078bc8.woff +0 -0
- package/dist/assets/334d3f6bc766c516.woff +0 -0
- package/dist/assets/34ff7dd0c2285956.svg +0 -1
- package/dist/assets/3d26b7c1ab78bbe2.woff +0 -0
- package/dist/assets/3d892965ab4f1cbb.woff2 +0 -0
- package/dist/assets/3f8c4cc8099e34b6.woff2 +0 -0
- package/dist/assets/40a0e53b79ce63c6.woff2 +0 -0
- package/dist/assets/41275bcb979cb650.svg +0 -1
- package/dist/assets/434f7982590e462f.woff +0 -0
- package/dist/assets/475937116ee3314a.woff2 +0 -0
- package/dist/assets/489710fb710e73f0.woff +0 -0
- package/dist/assets/49791943b3872376.woff2 +0 -0
- package/dist/assets/4ae5f23e0ca888e7.woff2 +0 -0
- package/dist/assets/4d7a77b0e5373992.svg +0 -1
- package/dist/assets/4e43c74354534fb3.svg +0 -1
- package/dist/assets/4fe75f5117100705.svg +0 -1
- package/dist/assets/52e261a005074e1b.woff +0 -0
- package/dist/assets/5304c3d05a5f9789.woff2 +0 -0
- package/dist/assets/54cda5482c6c9218.woff +0 -0
- package/dist/assets/550f52072e8ccafe.woff2 +0 -0
- package/dist/assets/572bb1bb4156a9c1.svg +0 -1
- package/dist/assets/6075995d7e74da46.woff2 +0 -0
- package/dist/assets/617c4736236e199e.woff +0 -0
- package/dist/assets/67230f05dc94a265.svg +0 -1
- package/dist/assets/6798e4dd4add9b48.svg +0 -1
- package/dist/assets/686d4077c1e26876.woff2 +0 -0
- package/dist/assets/698ec6c722d4cb05.woff2 +0 -0
- package/dist/assets/6a3e73faf406cf33.svg +0 -1
- package/dist/assets/72de3a63bc0b70dd.svg +0 -1
- package/dist/assets/74c6a6ab81bb6340.woff2 +0 -0
- package/dist/assets/74ed5f8a78e71106.svg +0 -1
- package/dist/assets/7a5aa5abd625137f.ttf +0 -0
- package/dist/assets/7ce0c166fd6a1204.woff +0 -0
- package/dist/assets/7d55399c2a7bc985.svg +0 -1
- package/dist/assets/7d970675c69fca1d.woff +0 -0
- package/dist/assets/7eda727273fd98d3.svg +0 -1
- package/dist/assets/7f6ebfd707b76ca2.woff +0 -0
- package/dist/assets/7fa898d213fcc7bc.woff2 +0 -0
- package/dist/assets/861e6b7192b3b6c7.woff +0 -0
- package/dist/assets/8bbcde81ba21ecb2.woff2 +0 -0
- package/dist/assets/8f6657e5e0b8d3e4.woff +0 -0
- package/dist/assets/910b0d99b9e26568.svg +0 -1
- package/dist/assets/91fe94e424323d61.woff +0 -0
- package/dist/assets/92508f8707159b51.svg +0 -1
- package/dist/assets/9392bf1d591e1abb.svg +0 -1
- package/dist/assets/97e8d4984ba0713a.woff2 +0 -0
- package/dist/assets/9cb83236f6bb7ab1.svg +0 -1
- package/dist/assets/9d37314695c0b68d.woff +0 -0
- package/dist/assets/a03cdcd8da5bb987.woff +0 -0
- package/dist/assets/a18404194e3f9047.svg +0 -1
- package/dist/assets/a2017fe7f0a26510.svg +0 -1
- package/dist/assets/ab6e7190bb1492d5.woff2 +0 -0
- package/dist/assets/abf88f301a0730f4.svg +0 -1
- package/dist/assets/ac1a99b3d05d8232.woff +0 -0
- package/dist/assets/aed17cb6fdad2ada.woff2 +0 -0
- package/dist/assets/b1a596e31ad1185a.svg +0 -1
- package/dist/assets/b27767411c8427be.woff +0 -0
- package/dist/assets/b325adcae33bbe7a.svg +0 -1
- package/dist/assets/b372390551ca2fa1.svg +0 -1
- package/dist/assets/b5bb1e8fc975decd.svg +0 -1
- package/dist/assets/b645a4a2181b9dc1.svg +0 -1
- package/dist/assets/b6499ddce0a4ef7d.svg +0 -1
- package/dist/assets/b94421fadd23b0f2.svg +0 -1
- package/dist/assets/bb28fb0f27f1c11b.svg +0 -1
- package/dist/assets/c9191b638a10f67b.woff2 +0 -0
- package/dist/assets/ca791c5ca5848a03.svg +0 -1
- package/dist/assets/cb32840ce330103f.woff +0 -0
- package/dist/assets/ccc878931d74181b.woff2 +0 -0
- package/dist/assets/d084bda16abe8a56.svg +0 -1
- package/dist/assets/d32b129cae2fffd6.svg +0 -1
- package/dist/assets/d35a4c7113315758.woff2 +0 -0
- package/dist/assets/d3f792f54ae4c307.svg +0 -1
- package/dist/assets/d5a5b8630120073d.svg +0 -1
- package/dist/assets/d5f9664ebbfb104b.svg +0 -1
- package/dist/assets/d84247b59449dd88.woff2 +0 -0
- package/dist/assets/dceaf3b39091e6a4.woff +0 -0
- package/dist/assets/dd05d43ff0df2fc7.svg +0 -1
- package/dist/assets/e2ad5b3428289141.woff +0 -0
- package/dist/assets/e38acaa1757232e0.svg +0 -1
- package/dist/assets/e4a8550f1c7ffe36.svg +0 -1
- package/dist/assets/e5adb5ae3a3698f6.svg +0 -1
- package/dist/assets/e61a1889bac955f4.woff2 +0 -0
- package/dist/assets/e72bb11356af94c7.svg +0 -1
- package/dist/assets/e98196a9f8dcb2f0.svg +0 -1
- package/dist/assets/ebec912a42ad49ff.woff +0 -0
- package/dist/assets/ee6983981ffcbb41.woff2 +0 -0
- package/dist/assets/f09d89268e4c0317.svg +0 -1
- package/dist/assets/f239394367fcf005.woff2 +0 -0
- package/dist/assets/f5722262b6e7214e.woff2 +0 -0
- package/dist/assets/f7fc8bf46089d8b2.svg +0 -1
- package/dist/assets/fc829e3f399b70e0.woff2 +0 -0
- package/dist/assets/fe141d99763f5d2b.woff +0 -0
- package/dist/assets/fed13b0d59903483.svg +0 -1
- package/dist/assets/fed757d2c2344ead.woff2 +0 -0
- package/dist/assets/ffc438f20e79ce73.woff +0 -0
- package/dist/core/providers/auth-provider-manager.d.ts +0 -34
- package/dist/core/providers/auth-provider-manager.d.ts.map +0 -1
- package/dist/core/providers/auth-provider-utils.d.ts +0 -17
- package/dist/core/providers/auth-provider-utils.d.ts.map +0 -1
- package/dist/core/providers/example-custom-auth-provider.d.ts +0 -45
- package/dist/core/providers/example-custom-auth-provider.d.ts.map +0 -1
- package/dist/core/providers/index.d.ts +0 -3
- package/dist/core/providers/index.d.ts.map +0 -1
- package/dist/core/providers/platform-auth-provider.d.ts +0 -34
- package/dist/core/providers/platform-auth-provider.d.ts.map +0 -1
- package/dist/core/types/auth-provider.d.ts +0 -27
- package/dist/core/types/auth-provider.d.ts.map +0 -1
- package/dist/framework.js +0 -25048
- package/dist/index.css +0 -9
- package/dist/vendor-boolbase-A_-Pp38P.js +0 -23
- package/dist/vendor-cheerio-C46iBpCu.js +0 -1053
- package/dist/vendor-cheerio-select-C8emRZsx.js +0 -191
- package/dist/vendor-core-js-DDuR6YMQ.js +0 -1206
- package/dist/vendor-css-select-DR9bp36p.js +0 -622
- package/dist/vendor-css-what-CZZaquJM.js +0 -267
- package/dist/vendor-cypress-signalr-mock-DjBxJHA6.js +0 -769
- package/dist/vendor-date-fns-sZ1zMzTH.js +0 -3008
- package/dist/vendor-dom-serializer-Sk3xHhQk.js +0 -213
- package/dist/vendor-domelementtype-B3sFIGaC.js +0 -21
- package/dist/vendor-domhandler-CL40eeX9.js +0 -311
- package/dist/vendor-dompurify-BuxjWxA2.js +0 -553
- package/dist/vendor-domutils-BiVCXO8c.js +0 -386
- package/dist/vendor-entities-CCReaWqU.js +0 -364
- package/dist/vendor-floating-ui-core-Cl9nBI4j.js +0 -349
- package/dist/vendor-floating-ui-dom-3z44E4mf.js +0 -395
- package/dist/vendor-floating-ui-utils-D2sT7feD.js +0 -259
- package/dist/vendor-floating-ui-vue-ClrgkeO5.js +0 -107
- package/dist/vendor-headlessui-vue-D7tzx4PC.js +0 -961
- package/dist/vendor-htmlparser2-CpQu33io.js +0 -735
- package/dist/vendor-intlify-core-base-Da62SG4M.js +0 -1130
- package/dist/vendor-intlify-message-compiler-CHvGSH2u.js +0 -952
- package/dist/vendor-intlify-shared-jWBPd9WB.js +0 -144
- package/dist/vendor-iso-639-1-BJO6WZAt.js +0 -781
- package/dist/vendor-linkify-it-LzoUhj6C.js +0 -199
- package/dist/vendor-linkifyjs-dCH9UYes.js +0 -701
- package/dist/vendor-lodash-es-BqkGj3Jl.js +0 -4816
- package/dist/vendor-lucide-vue-next-m0L4DzUL.js +0 -29780
- package/dist/vendor-markdown-it-Czg9qJTh.js +0 -2263
- package/dist/vendor-markdown-it-task-lists-BxLwscWK.js +0 -69
- package/dist/vendor-mdurl-DZFDNdqC.js +0 -192
- package/dist/vendor-microsoft-applicationinsights-analytics-js-C1Yxuzwg.js +0 -1207
- package/dist/vendor-microsoft-applicationinsights-cfgsync-js-DArHD4Dn.js +0 -261
- package/dist/vendor-microsoft-applicationinsights-channel-js-Dbs0XRes.js +0 -1822
- package/dist/vendor-microsoft-applicationinsights-common-OjU3Zs6r.js +0 -1921
- package/dist/vendor-microsoft-applicationinsights-core-js-DWRvqBek.js +0 -4276
- package/dist/vendor-microsoft-applicationinsights-dependencies-js-BxTNw-Sk.js +0 -1407
- package/dist/vendor-microsoft-applicationinsights-properties-js-Gfhpu-At.js +0 -572
- package/dist/vendor-microsoft-applicationinsights-shims-CxtPYiwp.js +0 -43
- package/dist/vendor-microsoft-applicationinsights-web-9yeJ0EZv.js +0 -487
- package/dist/vendor-microsoft-dynamicproto-js-DSkQkH3T.js +0 -147
- package/dist/vendor-microsoft-signalr-Bgpbb4fW.js +0 -1761
- package/dist/vendor-moment-DMLRxgRE.js +0 -2589
- package/dist/vendor-nevware21-ts-async-CdMc_sGt.js +0 -261
- package/dist/vendor-nevware21-ts-utils-Dy41wRhA.js +0 -853
- package/dist/vendor-nth-check-CS1D-zr5.js +0 -45
- package/dist/vendor-orderedmap-B3SOk52B.js +0 -103
- package/dist/vendor-parse5-htmlparser2-tree-adapter-BWywtwol.js +0 -143
- package/dist/vendor-parse5-zq5Hn0y9.js +0 -5749
- package/dist/vendor-prettier-cZc5sCiS.js +0 -4875
- package/dist/vendor-prosemirror-commands-Cu1q5ZDk.js +0 -385
- package/dist/vendor-prosemirror-dropcursor-BuGmFgFS.js +0 -86
- package/dist/vendor-prosemirror-gapcursor-CyYcCWVK.js +0 -203
- package/dist/vendor-prosemirror-history-DzRcbrCw.js +0 -248
- package/dist/vendor-prosemirror-keymap-KfbdOEJw.js +0 -62
- package/dist/vendor-prosemirror-markdown-OyxRuawK.js +0 -650
- package/dist/vendor-prosemirror-model-DFp4ML7B.js +0 -2730
- package/dist/vendor-prosemirror-schema-list-CwCUArvx.js +0 -87
- package/dist/vendor-prosemirror-state-DHaVEu5h.js +0 -821
- package/dist/vendor-prosemirror-tables-mYok4vGT.js +0 -1711
- package/dist/vendor-prosemirror-transform-CAHmg-qG.js +0 -1508
- package/dist/vendor-prosemirror-view-CspJa44O.js +0 -3751
- package/dist/vendor-punycode-js-CgGegfA_.js +0 -133
- package/dist/vendor-rope-sequence-BWC2FSrq.js +0 -100
- package/dist/vendor-semver-Dar8oU3V.js +0 -1023
- package/dist/vendor-swiper-1bp0oJwt.js +0 -3387
- package/dist/vendor-tanstack-virtual-core-l0sNRNKZ.js +0 -1
- package/dist/vendor-tanstack-vue-virtual-CD9yLWd7.js +0 -1
- package/dist/vendor-tiptap-core-ClsTgaMv.js +0 -3699
- package/dist/vendor-tiptap-extension-blockquote-r1MBx4hD.js +0 -54
- package/dist/vendor-tiptap-extension-bold-BjLI4i8b.js +0 -74
- package/dist/vendor-tiptap-extension-code-D5-kDnMW.js +0 -52
- package/dist/vendor-tiptap-extension-code-block-RjEb0zPA.js +0 -215
- package/dist/vendor-tiptap-extension-document--PLOxIdq.js +0 -12
- package/dist/vendor-tiptap-extension-hard-break-9cxC2YOS.js +0 -59
- package/dist/vendor-tiptap-extension-heading-2w0TutHn.js +0 -63
- package/dist/vendor-tiptap-extension-horizontal-rule-CFowa_lc.js +0 -56
- package/dist/vendor-tiptap-extension-image-aWn-na6j.js +0 -127
- package/dist/vendor-tiptap-extension-italic-Bn-6saY0.js +0 -73
- package/dist/vendor-tiptap-extension-link-BmcG1_k-.js +0 -298
- package/dist/vendor-tiptap-extension-list-BrNBJ45n.js +0 -707
- package/dist/vendor-tiptap-extension-paragraph-DAiYhwUB.js +0 -41
- package/dist/vendor-tiptap-extension-placeholder-9tURDKy-.js +0 -1
- package/dist/vendor-tiptap-extension-strike-DqbXPfos.js +0 -64
- package/dist/vendor-tiptap-extension-table-DQwPaR7v.js +0 -374
- package/dist/vendor-tiptap-extension-table-cell-C0tEP_0i.js +0 -1
- package/dist/vendor-tiptap-extension-table-header-C0tEP_0i.js +0 -1
- package/dist/vendor-tiptap-extension-table-row-C0tEP_0i.js +0 -1
- package/dist/vendor-tiptap-extension-text-BFnfj70b.js +0 -13
- package/dist/vendor-tiptap-extension-text-style-Darua3qr.js +0 -235
- package/dist/vendor-tiptap-extension-underline-QyVnBqQZ.js +0 -65
- package/dist/vendor-tiptap-extensions-CU-D7bfm.js +0 -290
- package/dist/vendor-tiptap-markdown-BwATYN5A.js +0 -826
- package/dist/vendor-tiptap-pm-d91nGny8.js +0 -1
- package/dist/vendor-tiptap-starter-kit-5luf7zzS.js +0 -28
- package/dist/vendor-tiptap-vue-3-CFBErZGb.js +0 -157
- package/dist/vendor-truncate-html-DYC0Lj9o.js +0 -145
- package/dist/vendor-uc-micro-4lbSaZOs.js +0 -17
- package/dist/vendor-vee-validate-i18n-zT8NxX3R.js +0 -93
- package/dist/vendor-vee-validate-rules-4oWUZPpG.js +0 -316
- package/dist/vendor-vue-currency-input-BqaYAdhD.js +0 -317
- package/dist/vendor-vue-demi-CD9yLWd7.js +0 -1
- package/dist/vendor-vue-devtools-api-aVYGocXp.js +0 -93
- package/dist/vendor-vue-i18n-CO5LWKE0.js +0 -1370
- package/dist/vendor-vue3-application-insights-BKiiWnf2.js +0 -69
- package/dist/vendor-vue3-touch-events-DqysuuWh.js +0 -169
- package/dist/vendor-vuepic-vue-datepicker-CaY_xSnG.js +0 -4998
- package/dist/vendor-vueuse-components-sgKpNzof.js +0 -542
- package/dist/vendor-vueuse-core-D0cN7FqY.js +0 -5130
- package/dist/vendor-vueuse-shared-Pt0UEStA.js +0 -1169
- package/dist/vendor-w3c-keyname-CLxH8j-f.js +0 -92
|
@@ -1,650 +0,0 @@
|
|
|
1
|
-
import { a as A, M as w } from "./vendor-prosemirror-model-DFp4ML7B.js";
|
|
2
|
-
import { M as S } from "./vendor-markdown-it-Czg9qJTh.js";
|
|
3
|
-
const D = new A({
|
|
4
|
-
nodes: {
|
|
5
|
-
doc: {
|
|
6
|
-
content: "block+"
|
|
7
|
-
},
|
|
8
|
-
paragraph: {
|
|
9
|
-
content: "inline*",
|
|
10
|
-
group: "block",
|
|
11
|
-
parseDOM: [{ tag: "p" }],
|
|
12
|
-
toDOM() {
|
|
13
|
-
return ["p", 0];
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
blockquote: {
|
|
17
|
-
content: "block+",
|
|
18
|
-
group: "block",
|
|
19
|
-
parseDOM: [{ tag: "blockquote" }],
|
|
20
|
-
toDOM() {
|
|
21
|
-
return ["blockquote", 0];
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
horizontal_rule: {
|
|
25
|
-
group: "block",
|
|
26
|
-
parseDOM: [{ tag: "hr" }],
|
|
27
|
-
toDOM() {
|
|
28
|
-
return ["div", ["hr"]];
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
heading: {
|
|
32
|
-
attrs: { level: { default: 1 } },
|
|
33
|
-
content: "(text | image)*",
|
|
34
|
-
group: "block",
|
|
35
|
-
defining: !0,
|
|
36
|
-
parseDOM: [
|
|
37
|
-
{ tag: "h1", attrs: { level: 1 } },
|
|
38
|
-
{ tag: "h2", attrs: { level: 2 } },
|
|
39
|
-
{ tag: "h3", attrs: { level: 3 } },
|
|
40
|
-
{ tag: "h4", attrs: { level: 4 } },
|
|
41
|
-
{ tag: "h5", attrs: { level: 5 } },
|
|
42
|
-
{ tag: "h6", attrs: { level: 6 } }
|
|
43
|
-
],
|
|
44
|
-
toDOM(e) {
|
|
45
|
-
return ["h" + e.attrs.level, 0];
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
code_block: {
|
|
49
|
-
content: "text*",
|
|
50
|
-
group: "block",
|
|
51
|
-
code: !0,
|
|
52
|
-
defining: !0,
|
|
53
|
-
marks: "",
|
|
54
|
-
attrs: { params: { default: "" } },
|
|
55
|
-
parseDOM: [{ tag: "pre", preserveWhitespace: "full", getAttrs: (e) => ({ params: e.getAttribute("data-params") || "" }) }],
|
|
56
|
-
toDOM(e) {
|
|
57
|
-
return ["pre", e.attrs.params ? { "data-params": e.attrs.params } : {}, ["code", 0]];
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
ordered_list: {
|
|
61
|
-
content: "list_item+",
|
|
62
|
-
group: "block",
|
|
63
|
-
attrs: { order: { default: 1 }, tight: { default: !1 } },
|
|
64
|
-
parseDOM: [{ tag: "ol", getAttrs(e) {
|
|
65
|
-
return {
|
|
66
|
-
order: e.hasAttribute("start") ? +e.getAttribute("start") : 1,
|
|
67
|
-
tight: e.hasAttribute("data-tight")
|
|
68
|
-
};
|
|
69
|
-
} }],
|
|
70
|
-
toDOM(e) {
|
|
71
|
-
return ["ol", {
|
|
72
|
-
start: e.attrs.order == 1 ? null : e.attrs.order,
|
|
73
|
-
"data-tight": e.attrs.tight ? "true" : null
|
|
74
|
-
}, 0];
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
bullet_list: {
|
|
78
|
-
content: "list_item+",
|
|
79
|
-
group: "block",
|
|
80
|
-
attrs: { tight: { default: !1 } },
|
|
81
|
-
parseDOM: [{ tag: "ul", getAttrs: (e) => ({ tight: e.hasAttribute("data-tight") }) }],
|
|
82
|
-
toDOM(e) {
|
|
83
|
-
return ["ul", { "data-tight": e.attrs.tight ? "true" : null }, 0];
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
list_item: {
|
|
87
|
-
content: "block+",
|
|
88
|
-
defining: !0,
|
|
89
|
-
parseDOM: [{ tag: "li" }],
|
|
90
|
-
toDOM() {
|
|
91
|
-
return ["li", 0];
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
text: {
|
|
95
|
-
group: "inline"
|
|
96
|
-
},
|
|
97
|
-
image: {
|
|
98
|
-
inline: !0,
|
|
99
|
-
attrs: {
|
|
100
|
-
src: {},
|
|
101
|
-
alt: { default: null },
|
|
102
|
-
title: { default: null }
|
|
103
|
-
},
|
|
104
|
-
group: "inline",
|
|
105
|
-
draggable: !0,
|
|
106
|
-
parseDOM: [{ tag: "img[src]", getAttrs(e) {
|
|
107
|
-
return {
|
|
108
|
-
src: e.getAttribute("src"),
|
|
109
|
-
title: e.getAttribute("title"),
|
|
110
|
-
alt: e.getAttribute("alt")
|
|
111
|
-
};
|
|
112
|
-
} }],
|
|
113
|
-
toDOM(e) {
|
|
114
|
-
return ["img", e.attrs];
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
hard_break: {
|
|
118
|
-
inline: !0,
|
|
119
|
-
group: "inline",
|
|
120
|
-
selectable: !1,
|
|
121
|
-
parseDOM: [{ tag: "br" }],
|
|
122
|
-
toDOM() {
|
|
123
|
-
return ["br"];
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
|
-
marks: {
|
|
128
|
-
em: {
|
|
129
|
-
parseDOM: [
|
|
130
|
-
{ tag: "i" },
|
|
131
|
-
{ tag: "em" },
|
|
132
|
-
{ style: "font-style=italic" },
|
|
133
|
-
{ style: "font-style=normal", clearMark: (e) => e.type.name == "em" }
|
|
134
|
-
],
|
|
135
|
-
toDOM() {
|
|
136
|
-
return ["em"];
|
|
137
|
-
}
|
|
138
|
-
},
|
|
139
|
-
strong: {
|
|
140
|
-
parseDOM: [
|
|
141
|
-
{ tag: "strong" },
|
|
142
|
-
{ tag: "b", getAttrs: (e) => e.style.fontWeight != "normal" && null },
|
|
143
|
-
{ style: "font-weight=400", clearMark: (e) => e.type.name == "strong" },
|
|
144
|
-
{ style: "font-weight", getAttrs: (e) => /^(bold(er)?|[5-9]\d{2,})$/.test(e) && null }
|
|
145
|
-
],
|
|
146
|
-
toDOM() {
|
|
147
|
-
return ["strong"];
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
link: {
|
|
151
|
-
attrs: {
|
|
152
|
-
href: {},
|
|
153
|
-
title: { default: null }
|
|
154
|
-
},
|
|
155
|
-
inclusive: !1,
|
|
156
|
-
parseDOM: [{ tag: "a[href]", getAttrs(e) {
|
|
157
|
-
return { href: e.getAttribute("href"), title: e.getAttribute("title") };
|
|
158
|
-
} }],
|
|
159
|
-
toDOM(e) {
|
|
160
|
-
return ["a", e.attrs];
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
code: {
|
|
164
|
-
code: !0,
|
|
165
|
-
parseDOM: [{ tag: "code" }],
|
|
166
|
-
toDOM() {
|
|
167
|
-
return ["code"];
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
});
|
|
172
|
-
function C(e, t) {
|
|
173
|
-
if (e.isText && t.isText && w.sameSet(e.marks, t.marks))
|
|
174
|
-
return e.withText(e.text + t.text);
|
|
175
|
-
}
|
|
176
|
-
class B {
|
|
177
|
-
constructor(t, i) {
|
|
178
|
-
this.schema = t, this.tokenHandlers = i, this.stack = [{ type: t.topNodeType, attrs: null, content: [], marks: w.none }];
|
|
179
|
-
}
|
|
180
|
-
top() {
|
|
181
|
-
return this.stack[this.stack.length - 1];
|
|
182
|
-
}
|
|
183
|
-
push(t) {
|
|
184
|
-
this.stack.length && this.top().content.push(t);
|
|
185
|
-
}
|
|
186
|
-
// Adds the given text to the current position in the document,
|
|
187
|
-
// using the current marks as styling.
|
|
188
|
-
addText(t) {
|
|
189
|
-
if (!t)
|
|
190
|
-
return;
|
|
191
|
-
let i = this.top(), r = i.content, l = r[r.length - 1], a = this.schema.text(t, i.marks), s;
|
|
192
|
-
l && (s = C(l, a)) ? r[r.length - 1] = s : r.push(a);
|
|
193
|
-
}
|
|
194
|
-
// Adds the given mark to the set of active marks.
|
|
195
|
-
openMark(t) {
|
|
196
|
-
let i = this.top();
|
|
197
|
-
i.marks = t.addToSet(i.marks);
|
|
198
|
-
}
|
|
199
|
-
// Removes the given mark from the set of active marks.
|
|
200
|
-
closeMark(t) {
|
|
201
|
-
let i = this.top();
|
|
202
|
-
i.marks = t.removeFromSet(i.marks);
|
|
203
|
-
}
|
|
204
|
-
parseTokens(t) {
|
|
205
|
-
for (let i = 0; i < t.length; i++) {
|
|
206
|
-
let r = t[i], l = this.tokenHandlers[r.type];
|
|
207
|
-
if (!l)
|
|
208
|
-
throw new Error("Token type `" + r.type + "` not supported by Markdown parser");
|
|
209
|
-
l(this, r, t, i);
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
// Add a node at the current position.
|
|
213
|
-
addNode(t, i, r) {
|
|
214
|
-
let l = this.top(), a = t.createAndFill(i, r, l ? l.marks : []);
|
|
215
|
-
return a ? (this.push(a), a) : null;
|
|
216
|
-
}
|
|
217
|
-
// Wrap subsequent content in a node of the given type.
|
|
218
|
-
openNode(t, i) {
|
|
219
|
-
this.stack.push({ type: t, attrs: i, content: [], marks: w.none });
|
|
220
|
-
}
|
|
221
|
-
// Close and return the node that is currently on top of the stack.
|
|
222
|
-
closeNode() {
|
|
223
|
-
let t = this.stack.pop();
|
|
224
|
-
return this.addNode(t.type, t.attrs, t.content);
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
function k(e, t, i, r) {
|
|
228
|
-
return e.getAttrs ? e.getAttrs(t, i, r) : e.attrs instanceof Function ? e.attrs(t) : e.attrs;
|
|
229
|
-
}
|
|
230
|
-
function b(e, t) {
|
|
231
|
-
return e.noCloseToken || t == "code_inline" || t == "code_block" || t == "fence";
|
|
232
|
-
}
|
|
233
|
-
function _(e) {
|
|
234
|
-
return e[e.length - 1] == `
|
|
235
|
-
` ? e.slice(0, e.length - 1) : e;
|
|
236
|
-
}
|
|
237
|
-
function M() {
|
|
238
|
-
}
|
|
239
|
-
function N(e, t) {
|
|
240
|
-
let i = /* @__PURE__ */ Object.create(null);
|
|
241
|
-
for (let r in t) {
|
|
242
|
-
let l = t[r];
|
|
243
|
-
if (l.block) {
|
|
244
|
-
let a = e.nodeType(l.block);
|
|
245
|
-
b(l, r) ? i[r] = (s, g, o, n) => {
|
|
246
|
-
s.openNode(a, k(l, g, o, n)), s.addText(_(g.content)), s.closeNode();
|
|
247
|
-
} : (i[r + "_open"] = (s, g, o, n) => s.openNode(a, k(l, g, o, n)), i[r + "_close"] = (s) => s.closeNode());
|
|
248
|
-
} else if (l.node) {
|
|
249
|
-
let a = e.nodeType(l.node);
|
|
250
|
-
i[r] = (s, g, o, n) => s.addNode(a, k(l, g, o, n));
|
|
251
|
-
} else if (l.mark) {
|
|
252
|
-
let a = e.marks[l.mark];
|
|
253
|
-
b(l, r) ? i[r] = (s, g, o, n) => {
|
|
254
|
-
s.openMark(a.create(k(l, g, o, n))), s.addText(_(g.content)), s.closeMark(a);
|
|
255
|
-
} : (i[r + "_open"] = (s, g, o, n) => s.openMark(a.create(k(l, g, o, n))), i[r + "_close"] = (s) => s.closeMark(a));
|
|
256
|
-
} else if (l.ignore)
|
|
257
|
-
b(l, r) ? i[r] = M : (i[r + "_open"] = M, i[r + "_close"] = M);
|
|
258
|
-
else
|
|
259
|
-
throw new RangeError("Unrecognized parsing spec " + JSON.stringify(l));
|
|
260
|
-
}
|
|
261
|
-
return i.text = (r, l) => r.addText(l.content), i.inline = (r, l) => r.parseTokens(l.children), i.softbreak = i.softbreak || ((r) => r.addText(" ")), i;
|
|
262
|
-
}
|
|
263
|
-
class v {
|
|
264
|
-
/**
|
|
265
|
-
Create a parser with the given configuration. You can configure
|
|
266
|
-
the markdown-it parser to parse the dialect you want, and provide
|
|
267
|
-
a description of the ProseMirror entities those tokens map to in
|
|
268
|
-
the `tokens` object, which maps token names to descriptions of
|
|
269
|
-
what to do with them. Such a description is an object, and may
|
|
270
|
-
have the following properties:
|
|
271
|
-
*/
|
|
272
|
-
constructor(t, i, r) {
|
|
273
|
-
this.schema = t, this.tokenizer = i, this.tokens = r, this.tokenHandlers = N(t, r);
|
|
274
|
-
}
|
|
275
|
-
/**
|
|
276
|
-
Parse a string as [CommonMark](http://commonmark.org/) markup,
|
|
277
|
-
and create a ProseMirror document as prescribed by this parser's
|
|
278
|
-
rules.
|
|
279
|
-
|
|
280
|
-
The second argument, when given, is passed through to the
|
|
281
|
-
[Markdown
|
|
282
|
-
parser](https://markdown-it.github.io/markdown-it/#MarkdownIt.parse).
|
|
283
|
-
*/
|
|
284
|
-
parse(t, i = {}) {
|
|
285
|
-
let r = new B(this.schema, this.tokenHandlers), l;
|
|
286
|
-
r.parseTokens(this.tokenizer.parse(t, i));
|
|
287
|
-
do
|
|
288
|
-
l = r.closeNode();
|
|
289
|
-
while (r.stack.length);
|
|
290
|
-
return l || this.schema.topNodeType.createAndFill();
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
function T(e, t) {
|
|
294
|
-
for (; ++t < e.length; )
|
|
295
|
-
if (e[t].type != "list_item_open")
|
|
296
|
-
return e[t].hidden;
|
|
297
|
-
return !1;
|
|
298
|
-
}
|
|
299
|
-
new v(D, S("commonmark", { html: !1 }), {
|
|
300
|
-
blockquote: { block: "blockquote" },
|
|
301
|
-
paragraph: { block: "paragraph" },
|
|
302
|
-
list_item: { block: "list_item" },
|
|
303
|
-
bullet_list: { block: "bullet_list", getAttrs: (e, t, i) => ({ tight: T(t, i) }) },
|
|
304
|
-
ordered_list: { block: "ordered_list", getAttrs: (e, t, i) => ({
|
|
305
|
-
order: +e.attrGet("start") || 1,
|
|
306
|
-
tight: T(t, i)
|
|
307
|
-
}) },
|
|
308
|
-
heading: { block: "heading", getAttrs: (e) => ({ level: +e.tag.slice(1) }) },
|
|
309
|
-
code_block: { block: "code_block", noCloseToken: !0 },
|
|
310
|
-
fence: { block: "code_block", getAttrs: (e) => ({ params: e.info || "" }), noCloseToken: !0 },
|
|
311
|
-
hr: { node: "horizontal_rule" },
|
|
312
|
-
image: { node: "image", getAttrs: (e) => ({
|
|
313
|
-
src: e.attrGet("src"),
|
|
314
|
-
title: e.attrGet("title") || null,
|
|
315
|
-
alt: e.children[0] && e.children[0].content || null
|
|
316
|
-
}) },
|
|
317
|
-
hardbreak: { node: "hard_break" },
|
|
318
|
-
em: { mark: "em" },
|
|
319
|
-
strong: { mark: "strong" },
|
|
320
|
-
link: { mark: "link", getAttrs: (e) => ({
|
|
321
|
-
href: e.attrGet("href"),
|
|
322
|
-
title: e.attrGet("title") || null
|
|
323
|
-
}) },
|
|
324
|
-
code_inline: { mark: "code", noCloseToken: !0 }
|
|
325
|
-
});
|
|
326
|
-
const $ = { open: "", close: "", mixable: !0 };
|
|
327
|
-
class E {
|
|
328
|
-
/**
|
|
329
|
-
Construct a serializer with the given configuration. The `nodes`
|
|
330
|
-
object should map node names in a given schema to function that
|
|
331
|
-
take a serializer state and such a node, and serialize the node.
|
|
332
|
-
*/
|
|
333
|
-
constructor(t, i, r = {}) {
|
|
334
|
-
this.nodes = t, this.marks = i, this.options = r;
|
|
335
|
-
}
|
|
336
|
-
/**
|
|
337
|
-
Serialize the content of the given node to
|
|
338
|
-
[CommonMark](http://commonmark.org/).
|
|
339
|
-
*/
|
|
340
|
-
serialize(t, i = {}) {
|
|
341
|
-
i = Object.assign({}, this.options, i);
|
|
342
|
-
let r = new z(this.nodes, this.marks, i);
|
|
343
|
-
return r.renderContent(t), r.out;
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
const W = new E({
|
|
347
|
-
blockquote(e, t) {
|
|
348
|
-
e.wrapBlock("> ", null, t, () => e.renderContent(t));
|
|
349
|
-
},
|
|
350
|
-
code_block(e, t) {
|
|
351
|
-
const i = t.textContent.match(/`{3,}/gm), r = i ? i.sort().slice(-1)[0] + "`" : "```";
|
|
352
|
-
e.write(r + (t.attrs.params || "") + `
|
|
353
|
-
`), e.text(t.textContent, !1), e.write(`
|
|
354
|
-
`), e.write(r), e.closeBlock(t);
|
|
355
|
-
},
|
|
356
|
-
heading(e, t) {
|
|
357
|
-
e.write(e.repeat("#", t.attrs.level) + " "), e.renderInline(t, !1), e.closeBlock(t);
|
|
358
|
-
},
|
|
359
|
-
horizontal_rule(e, t) {
|
|
360
|
-
e.write(t.attrs.markup || "---"), e.closeBlock(t);
|
|
361
|
-
},
|
|
362
|
-
bullet_list(e, t) {
|
|
363
|
-
e.renderList(t, " ", () => (t.attrs.bullet || "*") + " ");
|
|
364
|
-
},
|
|
365
|
-
ordered_list(e, t) {
|
|
366
|
-
let i = t.attrs.order || 1, r = String(i + t.childCount - 1).length, l = e.repeat(" ", r + 2);
|
|
367
|
-
e.renderList(t, l, (a) => {
|
|
368
|
-
let s = String(i + a);
|
|
369
|
-
return e.repeat(" ", r - s.length) + s + ". ";
|
|
370
|
-
});
|
|
371
|
-
},
|
|
372
|
-
list_item(e, t) {
|
|
373
|
-
e.renderContent(t);
|
|
374
|
-
},
|
|
375
|
-
paragraph(e, t) {
|
|
376
|
-
e.renderInline(t), e.closeBlock(t);
|
|
377
|
-
},
|
|
378
|
-
image(e, t) {
|
|
379
|
-
e.write("]/g, "\\$&") + (t.attrs.title ? ' "' + t.attrs.title.replace(/"/g, '\\"') + '"' : "") + ")");
|
|
380
|
-
},
|
|
381
|
-
hard_break(e, t, i, r) {
|
|
382
|
-
for (let l = r + 1; l < i.childCount; l++)
|
|
383
|
-
if (i.child(l).type != t.type) {
|
|
384
|
-
e.write(`\\
|
|
385
|
-
`);
|
|
386
|
-
return;
|
|
387
|
-
}
|
|
388
|
-
},
|
|
389
|
-
text(e, t) {
|
|
390
|
-
e.text(t.text, !e.inAutolink);
|
|
391
|
-
}
|
|
392
|
-
}, {
|
|
393
|
-
em: { open: "*", close: "*", mixable: !0, expelEnclosingWhitespace: !0 },
|
|
394
|
-
strong: { open: "**", close: "**", mixable: !0, expelEnclosingWhitespace: !0 },
|
|
395
|
-
link: {
|
|
396
|
-
open(e, t, i, r) {
|
|
397
|
-
return e.inAutolink = L(t, i, r), e.inAutolink ? "<" : "[";
|
|
398
|
-
},
|
|
399
|
-
close(e, t, i, r) {
|
|
400
|
-
let { inAutolink: l } = e;
|
|
401
|
-
return e.inAutolink = void 0, l ? ">" : "](" + t.attrs.href.replace(/[\(\)"]/g, "\\$&") + (t.attrs.title ? ` "${t.attrs.title.replace(/"/g, '\\"')}"` : "") + ")";
|
|
402
|
-
},
|
|
403
|
-
mixable: !0
|
|
404
|
-
},
|
|
405
|
-
code: {
|
|
406
|
-
open(e, t, i, r) {
|
|
407
|
-
return O(i.child(r), -1);
|
|
408
|
-
},
|
|
409
|
-
close(e, t, i, r) {
|
|
410
|
-
return O(i.child(r - 1), 1);
|
|
411
|
-
},
|
|
412
|
-
escape: !1
|
|
413
|
-
}
|
|
414
|
-
});
|
|
415
|
-
function O(e, t) {
|
|
416
|
-
let i = /`+/g, r, l = 0;
|
|
417
|
-
if (e.isText)
|
|
418
|
-
for (; r = i.exec(e.text); )
|
|
419
|
-
l = Math.max(l, r[0].length);
|
|
420
|
-
let a = l > 0 && t > 0 ? " `" : "`";
|
|
421
|
-
for (let s = 0; s < l; s++)
|
|
422
|
-
a += "`";
|
|
423
|
-
return l > 0 && t < 0 && (a += " "), a;
|
|
424
|
-
}
|
|
425
|
-
function L(e, t, i) {
|
|
426
|
-
if (e.attrs.title || !/^\w+:/.test(e.attrs.href))
|
|
427
|
-
return !1;
|
|
428
|
-
let r = t.child(i);
|
|
429
|
-
return !r.isText || r.text != e.attrs.href || r.marks[r.marks.length - 1] != e ? !1 : i == t.childCount - 1 || !e.isInSet(t.child(i + 1).marks);
|
|
430
|
-
}
|
|
431
|
-
let z = class {
|
|
432
|
-
/**
|
|
433
|
-
@internal
|
|
434
|
-
*/
|
|
435
|
-
constructor(t, i, r) {
|
|
436
|
-
this.nodes = t, this.marks = i, this.options = r, this.delim = "", this.out = "", this.closed = null, this.inAutolink = void 0, this.atBlockStart = !1, this.inTightList = !1, typeof this.options.tightLists > "u" && (this.options.tightLists = !1), typeof this.options.hardBreakNodeName > "u" && (this.options.hardBreakNodeName = "hard_break");
|
|
437
|
-
}
|
|
438
|
-
/**
|
|
439
|
-
@internal
|
|
440
|
-
*/
|
|
441
|
-
flushClose(t = 2) {
|
|
442
|
-
if (this.closed) {
|
|
443
|
-
if (this.atBlank() || (this.out += `
|
|
444
|
-
`), t > 1) {
|
|
445
|
-
let i = this.delim, r = /\s+$/.exec(i);
|
|
446
|
-
r && (i = i.slice(0, i.length - r[0].length));
|
|
447
|
-
for (let l = 1; l < t; l++)
|
|
448
|
-
this.out += i + `
|
|
449
|
-
`;
|
|
450
|
-
}
|
|
451
|
-
this.closed = null;
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
/**
|
|
455
|
-
@internal
|
|
456
|
-
*/
|
|
457
|
-
getMark(t) {
|
|
458
|
-
let i = this.marks[t];
|
|
459
|
-
if (!i) {
|
|
460
|
-
if (this.options.strict !== !1)
|
|
461
|
-
throw new Error(`Mark type \`${t}\` not supported by Markdown renderer`);
|
|
462
|
-
i = $;
|
|
463
|
-
}
|
|
464
|
-
return i;
|
|
465
|
-
}
|
|
466
|
-
/**
|
|
467
|
-
Render a block, prefixing each line with `delim`, and the first
|
|
468
|
-
line in `firstDelim`. `node` should be the node that is closed at
|
|
469
|
-
the end of the block, and `f` is a function that renders the
|
|
470
|
-
content of the block.
|
|
471
|
-
*/
|
|
472
|
-
wrapBlock(t, i, r, l) {
|
|
473
|
-
let a = this.delim;
|
|
474
|
-
this.write(i ?? t), this.delim += t, l(), this.delim = a, this.closeBlock(r);
|
|
475
|
-
}
|
|
476
|
-
/**
|
|
477
|
-
@internal
|
|
478
|
-
*/
|
|
479
|
-
atBlank() {
|
|
480
|
-
return /(^|\n)$/.test(this.out);
|
|
481
|
-
}
|
|
482
|
-
/**
|
|
483
|
-
Ensure the current content ends with a newline.
|
|
484
|
-
*/
|
|
485
|
-
ensureNewLine() {
|
|
486
|
-
this.atBlank() || (this.out += `
|
|
487
|
-
`);
|
|
488
|
-
}
|
|
489
|
-
/**
|
|
490
|
-
Prepare the state for writing output (closing closed paragraphs,
|
|
491
|
-
adding delimiters, and so on), and then optionally add content
|
|
492
|
-
(unescaped) to the output.
|
|
493
|
-
*/
|
|
494
|
-
write(t) {
|
|
495
|
-
this.flushClose(), this.delim && this.atBlank() && (this.out += this.delim), t && (this.out += t);
|
|
496
|
-
}
|
|
497
|
-
/**
|
|
498
|
-
Close the block for the given node.
|
|
499
|
-
*/
|
|
500
|
-
closeBlock(t) {
|
|
501
|
-
this.closed = t;
|
|
502
|
-
}
|
|
503
|
-
/**
|
|
504
|
-
Add the given text to the document. When escape is not `false`,
|
|
505
|
-
it will be escaped.
|
|
506
|
-
*/
|
|
507
|
-
text(t, i = !0) {
|
|
508
|
-
let r = t.split(`
|
|
509
|
-
`);
|
|
510
|
-
for (let l = 0; l < r.length; l++)
|
|
511
|
-
this.write(), !i && r[l][0] == "[" && /(^|[^\\])\!$/.test(this.out) && (this.out = this.out.slice(0, this.out.length - 1) + "\\!"), this.out += i ? this.esc(r[l], this.atBlockStart) : r[l], l != r.length - 1 && (this.out += `
|
|
512
|
-
`);
|
|
513
|
-
}
|
|
514
|
-
/**
|
|
515
|
-
Render the given node as a block.
|
|
516
|
-
*/
|
|
517
|
-
render(t, i, r) {
|
|
518
|
-
if (this.nodes[t.type.name])
|
|
519
|
-
this.nodes[t.type.name](this, t, i, r);
|
|
520
|
-
else {
|
|
521
|
-
if (this.options.strict !== !1)
|
|
522
|
-
throw new Error("Token type `" + t.type.name + "` not supported by Markdown renderer");
|
|
523
|
-
t.type.isLeaf || (t.type.inlineContent ? this.renderInline(t) : this.renderContent(t), t.isBlock && this.closeBlock(t));
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
/**
|
|
527
|
-
Render the contents of `parent` as block nodes.
|
|
528
|
-
*/
|
|
529
|
-
renderContent(t) {
|
|
530
|
-
t.forEach((i, r, l) => this.render(i, t, l));
|
|
531
|
-
}
|
|
532
|
-
/**
|
|
533
|
-
Render the contents of `parent` as inline content.
|
|
534
|
-
*/
|
|
535
|
-
renderInline(t, i = !0) {
|
|
536
|
-
this.atBlockStart = i;
|
|
537
|
-
let r = [], l = "", a = (s, g, o) => {
|
|
538
|
-
let n = s ? s.marks : [];
|
|
539
|
-
s && s.type.name === this.options.hardBreakNodeName && (n = n.filter((h) => {
|
|
540
|
-
if (o + 1 == t.childCount)
|
|
541
|
-
return !1;
|
|
542
|
-
let c = t.child(o + 1);
|
|
543
|
-
return h.isInSet(c.marks) && (!c.isText || /\S/.test(c.text));
|
|
544
|
-
}));
|
|
545
|
-
let m = l;
|
|
546
|
-
if (l = "", s && s.isText && n.some((h) => {
|
|
547
|
-
let c = this.getMark(h.type.name);
|
|
548
|
-
return c && c.expelEnclosingWhitespace && !h.isInSet(r);
|
|
549
|
-
})) {
|
|
550
|
-
let [h, c, u] = /^(\s*)(.*)$/m.exec(s.text);
|
|
551
|
-
c && (m += c, s = u ? s.withText(u) : null, s || (n = r));
|
|
552
|
-
}
|
|
553
|
-
if (s && s.isText && n.some((h) => {
|
|
554
|
-
let c = this.getMark(h.type.name);
|
|
555
|
-
return c && c.expelEnclosingWhitespace && (o == t.childCount - 1 || !h.isInSet(t.child(o + 1).marks));
|
|
556
|
-
})) {
|
|
557
|
-
let [h, c, u] = /^(.*?)(\s*)$/m.exec(s.text);
|
|
558
|
-
u && (l = u, s = c ? s.withText(c) : null, s || (n = r));
|
|
559
|
-
}
|
|
560
|
-
let d = n.length ? n[n.length - 1] : null, x = d && this.getMark(d.type.name).escape === !1, f = n.length - (x ? 1 : 0);
|
|
561
|
-
t: for (let h = 0; h < f; h++) {
|
|
562
|
-
let c = n[h];
|
|
563
|
-
if (!this.getMark(c.type.name).mixable)
|
|
564
|
-
break;
|
|
565
|
-
for (let u = 0; u < r.length; u++) {
|
|
566
|
-
let y = r[u];
|
|
567
|
-
if (!this.getMark(y.type.name).mixable)
|
|
568
|
-
break;
|
|
569
|
-
if (c.eq(y)) {
|
|
570
|
-
h > u ? n = n.slice(0, u).concat(c).concat(n.slice(u, h)).concat(n.slice(h + 1, f)) : u > h && (n = n.slice(0, h).concat(n.slice(h + 1, u)).concat(c).concat(n.slice(u, f)));
|
|
571
|
-
continue t;
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
}
|
|
575
|
-
let p = 0;
|
|
576
|
-
for (; p < Math.min(r.length, f) && n[p].eq(r[p]); )
|
|
577
|
-
++p;
|
|
578
|
-
for (; p < r.length; )
|
|
579
|
-
this.text(this.markString(r.pop(), !1, t, o), !1);
|
|
580
|
-
if (m && this.text(m), s) {
|
|
581
|
-
for (; r.length < f; ) {
|
|
582
|
-
let h = n[r.length];
|
|
583
|
-
r.push(h), this.text(this.markString(h, !0, t, o), !1), this.atBlockStart = !1;
|
|
584
|
-
}
|
|
585
|
-
x && s.isText ? this.text(this.markString(d, !0, t, o) + s.text + this.markString(d, !1, t, o + 1), !1) : this.render(s, t, o), this.atBlockStart = !1;
|
|
586
|
-
}
|
|
587
|
-
s?.isText && s.nodeSize > 0 && (this.atBlockStart = !1);
|
|
588
|
-
};
|
|
589
|
-
t.forEach(a), a(null, 0, t.childCount), this.atBlockStart = !1;
|
|
590
|
-
}
|
|
591
|
-
/**
|
|
592
|
-
Render a node's content as a list. `delim` should be the extra
|
|
593
|
-
indentation added to all lines except the first in an item,
|
|
594
|
-
`firstDelim` is a function going from an item index to a
|
|
595
|
-
delimiter for the first line of the item.
|
|
596
|
-
*/
|
|
597
|
-
renderList(t, i, r) {
|
|
598
|
-
this.closed && this.closed.type == t.type ? this.flushClose(3) : this.inTightList && this.flushClose(1);
|
|
599
|
-
let l = typeof t.attrs.tight < "u" ? t.attrs.tight : this.options.tightLists, a = this.inTightList;
|
|
600
|
-
this.inTightList = l, t.forEach((s, g, o) => {
|
|
601
|
-
o && l && this.flushClose(1), this.wrapBlock(i, r(o), t, () => this.render(s, t, o));
|
|
602
|
-
}), this.inTightList = a;
|
|
603
|
-
}
|
|
604
|
-
/**
|
|
605
|
-
Escape the given string so that it can safely appear in Markdown
|
|
606
|
-
content. If `startOfLine` is true, also escape characters that
|
|
607
|
-
have special meaning only at the start of the line.
|
|
608
|
-
*/
|
|
609
|
-
esc(t, i = !1) {
|
|
610
|
-
return t = t.replace(/[`*\\~\[\]_]/g, (r, l) => r == "_" && l > 0 && l + 1 < t.length && t[l - 1].match(/\w/) && t[l + 1].match(/\w/) ? r : "\\" + r), i && (t = t.replace(/^(\+[ ]|[\-*>])/, "\\$&").replace(/^(\s*)(#{1,6})(\s|$)/, "$1\\$2$3").replace(/^(\s*\d+)\.\s/, "$1\\. ")), this.options.escapeExtraCharacters && (t = t.replace(this.options.escapeExtraCharacters, "\\$&")), t;
|
|
611
|
-
}
|
|
612
|
-
/**
|
|
613
|
-
@internal
|
|
614
|
-
*/
|
|
615
|
-
quote(t) {
|
|
616
|
-
let i = t.indexOf('"') == -1 ? '""' : t.indexOf("'") == -1 ? "''" : "()";
|
|
617
|
-
return i[0] + t + i[1];
|
|
618
|
-
}
|
|
619
|
-
/**
|
|
620
|
-
Repeat the given string `n` times.
|
|
621
|
-
*/
|
|
622
|
-
repeat(t, i) {
|
|
623
|
-
let r = "";
|
|
624
|
-
for (let l = 0; l < i; l++)
|
|
625
|
-
r += t;
|
|
626
|
-
return r;
|
|
627
|
-
}
|
|
628
|
-
/**
|
|
629
|
-
Get the markdown string for a given opening or closing mark.
|
|
630
|
-
*/
|
|
631
|
-
markString(t, i, r, l) {
|
|
632
|
-
let a = this.getMark(t.type.name), s = i ? a.open : a.close;
|
|
633
|
-
return typeof s == "string" ? s : s(this, t, r, l);
|
|
634
|
-
}
|
|
635
|
-
/**
|
|
636
|
-
Get leading and trailing whitespace from a string. Values of
|
|
637
|
-
leading or trailing property of the return object will be undefined
|
|
638
|
-
if there is no match.
|
|
639
|
-
*/
|
|
640
|
-
getEnclosingWhitespace(t) {
|
|
641
|
-
return {
|
|
642
|
-
leading: (t.match(/^(\s+)/) || [void 0])[0],
|
|
643
|
-
trailing: (t.match(/(\s+)$/) || [void 0])[0]
|
|
644
|
-
};
|
|
645
|
-
}
|
|
646
|
-
};
|
|
647
|
-
export {
|
|
648
|
-
z as M,
|
|
649
|
-
W as d
|
|
650
|
-
};
|