@vc-shell/framework 1.1.74 → 1.1.76
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/CHANGELOG.md +13 -0
- package/dist/framework.js +4682 -4500
- package/dist/index.css +1 -1
- package/dist/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/components/vc-blade-navigation/_internal/vc-mobile-back-button.vue.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue.d.ts.map +1 -1
- package/dist/shared/components/change-password/change-password.vue.d.ts.map +1 -1
- package/dist/shared/components/change-password-button/change-password-button.vue.d.ts.map +1 -1
- package/dist/shared/components/common/popup/vc-popup-error.vue.d.ts.map +1 -1
- package/dist/shared/components/common/popup/vc-popup-info.vue.d.ts.map +1 -1
- package/dist/shared/components/common/popup/vc-popup-warning.vue.d.ts.map +1 -1
- package/dist/shared/components/dashboard-widget-card/dashboard-widget-card.vue.d.ts.map +1 -1
- package/dist/shared/components/draggable-dashboard/DraggableDashboard.vue.d.ts.map +1 -1
- package/dist/shared/components/draggable-dashboard/_internal/DashboardWidget.vue.d.ts.map +1 -1
- package/dist/shared/components/generic-dropdown/generic-dropdown.vue.d.ts +2 -2
- package/dist/shared/components/generic-dropdown/generic-dropdown.vue.d.ts.map +1 -1
- package/dist/shared/components/language-selector/language-selector.vue.d.ts.map +1 -1
- package/dist/shared/components/logout-button/logout-button.vue.d.ts.map +1 -1
- package/dist/shared/components/multilanguage-selector/multilanguage-selector.vue.d.ts.map +1 -1
- package/dist/shared/components/notification-dropdown/_internal/notification/notification.vue.d.ts.map +1 -1
- package/dist/shared/components/notification-dropdown/notification-dropdown.vue.d.ts.map +1 -1
- package/dist/shared/components/notification-template/notification-template.vue.d.ts.map +1 -1
- package/dist/shared/components/popup-handler/components/vc-popup-container/vc-popup-container.vue.d.ts.map +1 -1
- package/dist/shared/components/settings-menu/settings-menu.vue.d.ts.map +1 -1
- package/dist/shared/components/settings-menu-item/settings-menu-item.vue.d.ts.map +1 -1
- package/dist/shared/components/sidebar/sidebar.vue.d.ts.map +1 -1
- package/dist/shared/components/sign-in/external-provider.vue.d.ts.map +1 -1
- package/dist/shared/components/sign-in/external-providers.vue.d.ts.map +1 -1
- package/dist/shared/components/theme-selector/theme-selector.vue.d.ts.map +1 -1
- package/dist/shared/components/user-dropdown-button/_internal/user-info.vue.d.ts.map +1 -1
- package/dist/shared/components/user-dropdown-button/_internal/user-sidebar.vue.d.ts.map +1 -1
- package/dist/shared/components/user-dropdown-button/user-dropdown-button.vue.d.ts.map +1 -1
- package/dist/shared/composables/useMenuExpanded.d.ts +1 -1
- package/dist/shared/modules/assets/components/assets-details/assets-details.vue.d.ts.map +1 -1
- package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts.map +1 -1
- package/dist/shared/pages/ChangePasswordPage/components/change-password/ChangePassword.vue.d.ts.map +1 -1
- package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts.map +1 -1
- package/dist/shared/pages/LoginPage/components/login/Login.vue.d.ts.map +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.map +1 -1
- package/dist/ui/components/atoms/vc-banner/vc-banner.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-card/vc-card.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-col/vc-col.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-container/vc-container.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-hint/vc-hint.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/icons/MenuBurgerIcon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-bootstrap-icon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-fontawesome-icon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-icon-examples.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-icon-test.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-lucide-icon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-material-icon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-svg-icon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-image/vc-image.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-label/vc-label.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-link/vc-link.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-loading/vc-loading.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-row/vc-row.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-skeleton/vc-skeleton.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-status/vc-status.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-status-icon/vc-status-icon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-tooltip/vc-tooltip.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-video/vc-video.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-widget/vc-widget.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-editor/_internal/extensions/font-size.d.ts +12 -0
- package/dist/ui/components/molecules/vc-editor/_internal/extensions/font-size.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-editor/_internal/toolbar-types.d.ts +49 -0
- package/dist/ui/components/molecules/vc-editor/_internal/toolbar-types.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-editor/_internal/vc-editor-button.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-editor/_internal/vc-editor-custom-button.vue.d.ts +10 -0
- package/dist/ui/components/molecules/vc-editor/_internal/vc-editor-custom-button.vue.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-editor/_internal/vc-editor-font-selector.vue.d.ts +8 -0
- package/dist/ui/components/molecules/vc-editor/_internal/vc-editor-font-selector.vue.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-editor/_internal/vc-editor-toolbar.vue.d.ts +4 -1
- package/dist/ui/components/molecules/vc-editor/_internal/vc-editor-toolbar.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-editor/index.d.ts +1 -0
- package/dist/ui/components/molecules/vc-editor/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts +7 -3
- package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-field/_internal/vc-field-type/vc-field-type.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-field/vc-field.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-form/vc-form.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts.map +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-input-dropdown/vc-input-dropdown.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-radio-button/vc-radio-button.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-slider/vc-slider.vue.d.ts +7 -8
- package/dist/ui/components/molecules/vc-slider/vc-slider.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-switch/vc-switch.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-toast/vc-toast.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarContent.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarHeader.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarMobileActions.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarOverlay.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarOverlay.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarSlots.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarWidgetItem.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarWidgetsMenu.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/MenuSidebar.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.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.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.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-header/vc-blade-header.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.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.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-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.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/desktop/vc-blade-toolbar-desktop.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/mobile/vc-blade-toolbar-mobile.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/vc-blade-toolbar-buttons.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/_internal/vc-widget-container-desktop.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/_internal/vc-widget-container-mobile.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-widget-container/vc-widget-container.vue.d.ts.map +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 +2 -2
- 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.map +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.map +1 -1
- package/dist/ui/components/organisms/vc-login-form/vc-login-form.vue.d.ts.map +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-add-new/vc-table-add-new.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-base-header/vc-table-base-header.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-base-header/vc-table-base-header.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue.d.ts.map +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 +25 -3
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-body/vc-table-body.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-columns-header/vc-table-columns-header.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-columns-header/vc-table-columns-header.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-row/vc-table-row.vue.d.ts +25 -3
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-row/vc-table-row.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-select-all-header/vc-table-select-all-header.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/vc-table-desktop-view.vue.d.ts +31 -3
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/vc-table-desktop-view.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-empty/vc-table-empty.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-footer/vc-table-footer.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-header/vc-table-header.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-mobile-view/vc-table-mobile-view.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-mobile-view/vc-table-mobile-view.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-select-all/vc-table-select-all.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts +28 -3
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
- package/dist/vendor-floating-ui-vue-C1Zscv9o.js +836 -0
- package/dist/{vendor-linkifyjs-DTu7SY_Y.js → vendor-linkifyjs-dCH9UYes.js} +183 -187
- package/dist/{vendor-prosemirror-commands-B8fhFbTo.js → vendor-prosemirror-commands-DKHyfRYE.js} +26 -26
- package/dist/{vendor-prosemirror-dropcursor-CdHQ9kQG.js → vendor-prosemirror-dropcursor-Dro-INCI.js} +2 -2
- package/dist/{vendor-prosemirror-gapcursor-W-ky5QTm.js → vendor-prosemirror-gapcursor-BgyglWtH.js} +3 -3
- package/dist/{vendor-prosemirror-history-CrtTR5Cd.js → vendor-prosemirror-history-B4ei16kP.js} +2 -2
- package/dist/{vendor-prosemirror-keymap-DWvoDWf6.js → vendor-prosemirror-keymap-21y6bXc_.js} +1 -1
- package/dist/{vendor-prosemirror-schema-list-Ds6x_KLX.js → vendor-prosemirror-schema-list-Dmi4oPas.js} +11 -11
- package/dist/{vendor-prosemirror-state-CRUasa1V.js → vendor-prosemirror-state-6jGEPgrP.js} +1 -1
- package/dist/{vendor-prosemirror-tables-DzTfCeHX.js → vendor-prosemirror-tables-U7ypaxJu.js} +4 -4
- package/dist/{vendor-prosemirror-transform-BeDaI3CS.js → vendor-prosemirror-transform-Dk6c_eg4.js} +5 -4
- package/dist/vendor-prosemirror-view-Bfe9EVLy.js +1489 -0
- package/dist/vendor-swiper-1bp0oJwt.js +3387 -0
- package/dist/vendor-tiptap-core-CtNT-ozM.js +3096 -0
- package/dist/{vendor-tiptap-extension-blockquote-iAIM-meW.js → vendor-tiptap-extension-blockquote-25QerT8O.js} +6 -8
- package/dist/{vendor-tiptap-extension-bold-bkOLNH6E.js → vendor-tiptap-extension-bold-B-B75KIy.js} +10 -10
- package/dist/{vendor-tiptap-extension-code-CgIql8q6.js → vendor-tiptap-extension-code-CEZA5x7I.js} +8 -10
- package/dist/vendor-tiptap-extension-code-block-BFDiCj59.js +192 -0
- package/dist/vendor-tiptap-extension-document-C8JdW_kC.js +9 -0
- package/dist/{vendor-tiptap-extension-hard-break-DygHhzqw.js → vendor-tiptap-extension-hard-break-D9Nzegu6.js} +4 -6
- package/dist/{vendor-tiptap-extension-heading-C-ArDc3_.js → vendor-tiptap-extension-heading-TmkrHpE2.js} +9 -6
- package/dist/vendor-tiptap-extension-horizontal-rule-BC1YMUau.js +53 -0
- package/dist/{vendor-tiptap-extension-image-DChcWb4v.js → vendor-tiptap-extension-image-BQnBpg7z.js} +9 -3
- package/dist/{vendor-tiptap-extension-italic-BNJrFvrR.js → vendor-tiptap-extension-italic-mSCwLnXY.js} +4 -4
- package/dist/vendor-tiptap-extension-link-CQ0Mw6gd.js +287 -0
- package/dist/vendor-tiptap-extension-list-BwidYizT.js +420 -0
- package/dist/{vendor-tiptap-extension-paragraph-DZfkaJJ-.js → vendor-tiptap-extension-paragraph-C_OQHUNe.js} +3 -5
- package/dist/vendor-tiptap-extension-placeholder-BIojfRhh.js +1 -0
- package/dist/{vendor-tiptap-extension-strike-BlGNozxy.js → vendor-tiptap-extension-strike-Bfc-eud8.js} +3 -3
- package/dist/vendor-tiptap-extension-table-D26aUVrb.js +302 -0
- package/dist/vendor-tiptap-extension-table-cell-DuWy52BP.js +1 -0
- package/dist/vendor-tiptap-extension-table-header-DuWy52BP.js +1 -0
- package/dist/vendor-tiptap-extension-table-row-DuWy52BP.js +1 -0
- package/dist/vendor-tiptap-extension-text-DrXC1h34.js +8 -0
- package/dist/vendor-tiptap-extension-text-style-vv6u__7g.js +230 -0
- package/dist/{vendor-tiptap-extension-underline-CIVtuRLl.js → vendor-tiptap-extension-underline-BfygI164.js} +2 -2
- package/dist/vendor-tiptap-extensions-_4zopegS.js +289 -0
- package/dist/{vendor-tiptap-markdown-CidDIpZ-.js → vendor-tiptap-markdown-pGf8MOss.js} +26 -26
- package/dist/vendor-tiptap-pm-B2DY8bDS.js +7681 -0
- package/dist/vendor-tiptap-starter-kit-DPG4_B0q.js +28 -0
- package/dist/vendor-tiptap-vue-3-Ctgrxv1U.js +157 -0
- package/dist/vendor-vueuse-components-CuLo31bP.js +219 -0
- package/dist/vendor-vueuse-core-A9T6NeUn.js +6880 -0
- package/dist/vendor-vueuse-shared-B2Uva3Md.js +35 -0
- package/package.json +33 -27
- package/ui/components/molecules/vc-editor/_internal/extensions/font-size.ts +59 -0
- package/ui/components/molecules/vc-editor/_internal/toolbar-types.ts +57 -0
- package/ui/components/molecules/vc-editor/_internal/vc-editor-custom-button.vue +79 -0
- package/ui/components/molecules/vc-editor/_internal/vc-editor-font-selector.vue +215 -0
- package/ui/components/molecules/vc-editor/_internal/vc-editor-toolbar.vue +42 -0
- package/ui/components/molecules/vc-editor/index.ts +5 -0
- package/ui/components/molecules/vc-editor/vc-editor.stories.ts +172 -3
- package/ui/components/molecules/vc-editor/vc-editor.vue +49 -26
- package/ui/components/molecules/vc-slider/vc-slider.vue +8 -8
- package/dist/vendor-dom7-wvIUV9pT.js +0 -529
- package/dist/vendor-floating-ui-core-3dy7r5mx.js +0 -349
- package/dist/vendor-floating-ui-dom-DCjH_QK4.js +0 -393
- package/dist/vendor-floating-ui-vue-BUBCqiRN.js +0 -107
- package/dist/vendor-popperjs-core-LGjf7Wza.js +0 -905
- package/dist/vendor-prosemirror-view-BGYdOWiJ.js +0 -3748
- package/dist/vendor-ssr-window-D4k3p53c.js +0 -133
- package/dist/vendor-swiper-DrZzJvo8.js +0 -2825
- package/dist/vendor-tippy-js-nNhcw_JH.js +0 -812
- package/dist/vendor-tiptap-core-dlTW4S11.js +0 -2817
- package/dist/vendor-tiptap-extension-bubble-menu-BRWVLpun.js +0 -128
- package/dist/vendor-tiptap-extension-bullet-list-DfU428XB.js +0 -53
- package/dist/vendor-tiptap-extension-code-block-V26-erQk.js +0 -133
- package/dist/vendor-tiptap-extension-document-BYF_BzDD.js +0 -9
- package/dist/vendor-tiptap-extension-dropcursor-DqjaaFex.js +0 -20
- package/dist/vendor-tiptap-extension-floating-menu-vptdm_Y0.js +0 -99
- package/dist/vendor-tiptap-extension-gapcursor-DxLBw8V0.js +0 -24
- package/dist/vendor-tiptap-extension-history-C41RW3Bv.js +0 -35
- package/dist/vendor-tiptap-extension-horizontal-rule-BGMGd9fo.js +0 -58
- package/dist/vendor-tiptap-extension-link-DFN4ENph.js +0 -270
- package/dist/vendor-tiptap-extension-list-item-3qKYhGHe.js +0 -33
- package/dist/vendor-tiptap-extension-ordered-list-D3QL0eiW.js +0 -71
- package/dist/vendor-tiptap-extension-placeholder-CoOAmd0a.js +0 -52
- package/dist/vendor-tiptap-extension-table-CZn6Xykb.js +0 -213
- package/dist/vendor-tiptap-extension-table-cell-BQuS-XFD.js +0 -40
- package/dist/vendor-tiptap-extension-table-header-ZrtK7HiQ.js +0 -40
- package/dist/vendor-tiptap-extension-table-row-CBrXvqsO.js +0 -22
- package/dist/vendor-tiptap-extension-text-DwA7jrBq.js +0 -8
- package/dist/vendor-tiptap-pm-9TOy65Oe.js +0 -1
- package/dist/vendor-tiptap-starter-kit-BdU6UtqB.js +0 -29
- package/dist/vendor-tiptap-vue-3-CnYccgV4.js +0 -225
- package/dist/vendor-vueuse-components-B0zqjNRW.js +0 -542
- package/dist/vendor-vueuse-core-CYgwn-B2.js +0 -5130
- package/dist/vendor-vueuse-shared-B_uDJJ6V.js +0 -1169
|
@@ -1,270 +0,0 @@
|
|
|
1
|
-
import { M as x, a as T, m as v, j as b, k as w, l as H, o as O, q as _ } from "./vendor-tiptap-core-dlTW4S11.js";
|
|
2
|
-
import { r as y, t as R, f as M, a as B } from "./vendor-linkifyjs-DTu7SY_Y.js";
|
|
3
|
-
import { P as m, a as A } from "./vendor-prosemirror-state-CRUasa1V.js";
|
|
4
|
-
const P = "[\0- -\u2029 ]", I = new RegExp(P), U = new RegExp(`${P}$`), N = new RegExp(P, "g");
|
|
5
|
-
function V(t) {
|
|
6
|
-
return t.length === 1 ? t[0].isLink : t.length === 3 && t[1].isLink ? ["()", "[]"].includes(t[0].value + t[2].value) : !1;
|
|
7
|
-
}
|
|
8
|
-
function W(t) {
|
|
9
|
-
return new m({
|
|
10
|
-
key: new A("autolink"),
|
|
11
|
-
appendTransaction: (e, n, o) => {
|
|
12
|
-
const i = e.some((r) => r.docChanged) && !n.doc.eq(o.doc), l = e.some((r) => r.getMeta("preventAutolink"));
|
|
13
|
-
if (!i || l)
|
|
14
|
-
return;
|
|
15
|
-
const { tr: a } = o, f = b(n.doc, [...e]);
|
|
16
|
-
if (w(f).forEach(({ newRange: r }) => {
|
|
17
|
-
const d = H(o.doc, r, (p) => p.isTextblock);
|
|
18
|
-
let u, c;
|
|
19
|
-
if (d.length > 1)
|
|
20
|
-
u = d[0], c = o.doc.textBetween(u.pos, u.pos + u.node.nodeSize, void 0, " ");
|
|
21
|
-
else if (d.length) {
|
|
22
|
-
const p = o.doc.textBetween(r.from, r.to, " ", " ");
|
|
23
|
-
if (!U.test(p))
|
|
24
|
-
return;
|
|
25
|
-
u = d[0], c = o.doc.textBetween(u.pos, r.to, void 0, " ");
|
|
26
|
-
}
|
|
27
|
-
if (u && c) {
|
|
28
|
-
const p = c.split(I).filter(Boolean);
|
|
29
|
-
if (p.length <= 0)
|
|
30
|
-
return !1;
|
|
31
|
-
const g = p[p.length - 1], E = u.pos + c.lastIndexOf(g);
|
|
32
|
-
if (!g)
|
|
33
|
-
return !1;
|
|
34
|
-
const L = R(g).map((s) => s.toObject(t.defaultProtocol));
|
|
35
|
-
if (!V(L))
|
|
36
|
-
return !1;
|
|
37
|
-
L.filter((s) => s.isLink).map((s) => ({
|
|
38
|
-
...s,
|
|
39
|
-
from: E + s.start + 1,
|
|
40
|
-
to: E + s.end + 1
|
|
41
|
-
})).filter((s) => o.schema.marks.code ? !o.doc.rangeHasMark(s.from, s.to, o.schema.marks.code) : !0).filter((s) => t.validate(s.value)).filter((s) => t.shouldAutoLink(s.value)).forEach((s) => {
|
|
42
|
-
O(s.from, s.to, o.doc).some((C) => C.mark.type === t.type) || a.addMark(s.from, s.to, t.type.create({
|
|
43
|
-
href: s.href
|
|
44
|
-
}));
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
}), !!a.steps.length)
|
|
48
|
-
return a;
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
function D(t) {
|
|
53
|
-
return new m({
|
|
54
|
-
key: new A("handleClickLink"),
|
|
55
|
-
props: {
|
|
56
|
-
handleClick: (e, n, o) => {
|
|
57
|
-
var i, l;
|
|
58
|
-
if (o.button !== 0 || !e.editable)
|
|
59
|
-
return !1;
|
|
60
|
-
let a = o.target;
|
|
61
|
-
const f = [];
|
|
62
|
-
for (; a.nodeName !== "DIV"; )
|
|
63
|
-
f.push(a), a = a.parentNode;
|
|
64
|
-
if (!f.find((c) => c.nodeName === "A"))
|
|
65
|
-
return !1;
|
|
66
|
-
const k = _(e.state, t.type.name), r = o.target, d = (i = r?.href) !== null && i !== void 0 ? i : k.href, u = (l = r?.target) !== null && l !== void 0 ? l : k.target;
|
|
67
|
-
return r && d ? (window.open(d, u), !0) : !1;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
function z(t) {
|
|
73
|
-
return new m({
|
|
74
|
-
key: new A("handlePasteLink"),
|
|
75
|
-
props: {
|
|
76
|
-
handlePaste: (e, n, o) => {
|
|
77
|
-
const { state: i } = e, { selection: l } = i, { empty: a } = l;
|
|
78
|
-
if (a)
|
|
79
|
-
return !1;
|
|
80
|
-
let f = "";
|
|
81
|
-
o.content.forEach((r) => {
|
|
82
|
-
f += r.textContent;
|
|
83
|
-
});
|
|
84
|
-
const k = M(f, { defaultProtocol: t.defaultProtocol }).find((r) => r.isLink && r.value === f);
|
|
85
|
-
return !f || !k ? !1 : t.editor.commands.setMark(t.type, {
|
|
86
|
-
href: k.href
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
function h(t, e) {
|
|
93
|
-
const n = [
|
|
94
|
-
"http",
|
|
95
|
-
"https",
|
|
96
|
-
"ftp",
|
|
97
|
-
"ftps",
|
|
98
|
-
"mailto",
|
|
99
|
-
"tel",
|
|
100
|
-
"callto",
|
|
101
|
-
"sms",
|
|
102
|
-
"cid",
|
|
103
|
-
"xmpp"
|
|
104
|
-
];
|
|
105
|
-
return e && e.forEach((o) => {
|
|
106
|
-
const i = typeof o == "string" ? o : o.scheme;
|
|
107
|
-
i && n.push(i);
|
|
108
|
-
}), !t || t.replace(N, "").match(new RegExp(
|
|
109
|
-
// eslint-disable-next-line no-useless-escape
|
|
110
|
-
`^(?:(?:${n.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,
|
|
111
|
-
"i"
|
|
112
|
-
));
|
|
113
|
-
}
|
|
114
|
-
const X = x.create({
|
|
115
|
-
name: "link",
|
|
116
|
-
priority: 1e3,
|
|
117
|
-
keepOnSplit: !1,
|
|
118
|
-
exitable: !0,
|
|
119
|
-
onCreate() {
|
|
120
|
-
this.options.validate && !this.options.shouldAutoLink && (this.options.shouldAutoLink = this.options.validate, console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")), this.options.protocols.forEach((t) => {
|
|
121
|
-
if (typeof t == "string") {
|
|
122
|
-
y(t);
|
|
123
|
-
return;
|
|
124
|
-
}
|
|
125
|
-
y(t.scheme, t.optionalSlashes);
|
|
126
|
-
});
|
|
127
|
-
},
|
|
128
|
-
onDestroy() {
|
|
129
|
-
B();
|
|
130
|
-
},
|
|
131
|
-
inclusive() {
|
|
132
|
-
return this.options.autolink;
|
|
133
|
-
},
|
|
134
|
-
addOptions() {
|
|
135
|
-
return {
|
|
136
|
-
openOnClick: !0,
|
|
137
|
-
linkOnPaste: !0,
|
|
138
|
-
autolink: !0,
|
|
139
|
-
protocols: [],
|
|
140
|
-
defaultProtocol: "http",
|
|
141
|
-
HTMLAttributes: {
|
|
142
|
-
target: "_blank",
|
|
143
|
-
rel: "noopener noreferrer nofollow",
|
|
144
|
-
class: null
|
|
145
|
-
},
|
|
146
|
-
isAllowedUri: (t, e) => !!h(t, e.protocols),
|
|
147
|
-
validate: (t) => !!t,
|
|
148
|
-
shouldAutoLink: (t) => !!t
|
|
149
|
-
};
|
|
150
|
-
},
|
|
151
|
-
addAttributes() {
|
|
152
|
-
return {
|
|
153
|
-
href: {
|
|
154
|
-
default: null,
|
|
155
|
-
parseHTML(t) {
|
|
156
|
-
return t.getAttribute("href");
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
target: {
|
|
160
|
-
default: this.options.HTMLAttributes.target
|
|
161
|
-
},
|
|
162
|
-
rel: {
|
|
163
|
-
default: this.options.HTMLAttributes.rel
|
|
164
|
-
},
|
|
165
|
-
class: {
|
|
166
|
-
default: this.options.HTMLAttributes.class
|
|
167
|
-
}
|
|
168
|
-
};
|
|
169
|
-
},
|
|
170
|
-
parseHTML() {
|
|
171
|
-
return [
|
|
172
|
-
{
|
|
173
|
-
tag: "a[href]",
|
|
174
|
-
getAttrs: (t) => {
|
|
175
|
-
const e = t.getAttribute("href");
|
|
176
|
-
return !e || !this.options.isAllowedUri(e, {
|
|
177
|
-
defaultValidate: (n) => !!h(n, this.options.protocols),
|
|
178
|
-
protocols: this.options.protocols,
|
|
179
|
-
defaultProtocol: this.options.defaultProtocol
|
|
180
|
-
}) ? !1 : null;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
];
|
|
184
|
-
},
|
|
185
|
-
renderHTML({ HTMLAttributes: t }) {
|
|
186
|
-
return this.options.isAllowedUri(t.href, {
|
|
187
|
-
defaultValidate: (e) => !!h(e, this.options.protocols),
|
|
188
|
-
protocols: this.options.protocols,
|
|
189
|
-
defaultProtocol: this.options.defaultProtocol
|
|
190
|
-
}) ? ["a", v(this.options.HTMLAttributes, t), 0] : [
|
|
191
|
-
"a",
|
|
192
|
-
v(this.options.HTMLAttributes, { ...t, href: "" }),
|
|
193
|
-
0
|
|
194
|
-
];
|
|
195
|
-
},
|
|
196
|
-
addCommands() {
|
|
197
|
-
return {
|
|
198
|
-
setLink: (t) => ({ chain: e }) => {
|
|
199
|
-
const { href: n } = t;
|
|
200
|
-
return this.options.isAllowedUri(n, {
|
|
201
|
-
defaultValidate: (o) => !!h(o, this.options.protocols),
|
|
202
|
-
protocols: this.options.protocols,
|
|
203
|
-
defaultProtocol: this.options.defaultProtocol
|
|
204
|
-
}) ? e().setMark(this.name, t).setMeta("preventAutolink", !0).run() : !1;
|
|
205
|
-
},
|
|
206
|
-
toggleLink: (t) => ({ chain: e }) => {
|
|
207
|
-
const { href: n } = t;
|
|
208
|
-
return this.options.isAllowedUri(n, {
|
|
209
|
-
defaultValidate: (o) => !!h(o, this.options.protocols),
|
|
210
|
-
protocols: this.options.protocols,
|
|
211
|
-
defaultProtocol: this.options.defaultProtocol
|
|
212
|
-
}) ? e().toggleMark(this.name, t, { extendEmptyMarkRange: !0 }).setMeta("preventAutolink", !0).run() : !1;
|
|
213
|
-
},
|
|
214
|
-
unsetLink: () => ({ chain: t }) => t().unsetMark(this.name, { extendEmptyMarkRange: !0 }).setMeta("preventAutolink", !0).run()
|
|
215
|
-
};
|
|
216
|
-
},
|
|
217
|
-
addPasteRules() {
|
|
218
|
-
return [
|
|
219
|
-
T({
|
|
220
|
-
find: (t) => {
|
|
221
|
-
const e = [];
|
|
222
|
-
if (t) {
|
|
223
|
-
const { protocols: n, defaultProtocol: o } = this.options, i = M(t).filter((l) => l.isLink && this.options.isAllowedUri(l.value, {
|
|
224
|
-
defaultValidate: (a) => !!h(a, n),
|
|
225
|
-
protocols: n,
|
|
226
|
-
defaultProtocol: o
|
|
227
|
-
}));
|
|
228
|
-
i.length && i.forEach((l) => e.push({
|
|
229
|
-
text: l.value,
|
|
230
|
-
data: {
|
|
231
|
-
href: l.href
|
|
232
|
-
},
|
|
233
|
-
index: l.start
|
|
234
|
-
}));
|
|
235
|
-
}
|
|
236
|
-
return e;
|
|
237
|
-
},
|
|
238
|
-
type: this.type,
|
|
239
|
-
getAttributes: (t) => {
|
|
240
|
-
var e;
|
|
241
|
-
return {
|
|
242
|
-
href: (e = t.data) === null || e === void 0 ? void 0 : e.href
|
|
243
|
-
};
|
|
244
|
-
}
|
|
245
|
-
})
|
|
246
|
-
];
|
|
247
|
-
},
|
|
248
|
-
addProseMirrorPlugins() {
|
|
249
|
-
const t = [], { protocols: e, defaultProtocol: n } = this.options;
|
|
250
|
-
return this.options.autolink && t.push(W({
|
|
251
|
-
type: this.type,
|
|
252
|
-
defaultProtocol: this.options.defaultProtocol,
|
|
253
|
-
validate: (o) => this.options.isAllowedUri(o, {
|
|
254
|
-
defaultValidate: (i) => !!h(i, e),
|
|
255
|
-
protocols: e,
|
|
256
|
-
defaultProtocol: n
|
|
257
|
-
}),
|
|
258
|
-
shouldAutoLink: this.options.shouldAutoLink
|
|
259
|
-
})), this.options.openOnClick === !0 && t.push(D({
|
|
260
|
-
type: this.type
|
|
261
|
-
})), this.options.linkOnPaste && t.push(z({
|
|
262
|
-
editor: this.editor,
|
|
263
|
-
defaultProtocol: this.options.defaultProtocol,
|
|
264
|
-
type: this.type
|
|
265
|
-
})), t;
|
|
266
|
-
}
|
|
267
|
-
});
|
|
268
|
-
export {
|
|
269
|
-
X as L
|
|
270
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { N as e, m as i } from "./vendor-tiptap-core-dlTW4S11.js";
|
|
2
|
-
const s = e.create({
|
|
3
|
-
name: "listItem",
|
|
4
|
-
addOptions() {
|
|
5
|
-
return {
|
|
6
|
-
HTMLAttributes: {},
|
|
7
|
-
bulletListTypeName: "bulletList",
|
|
8
|
-
orderedListTypeName: "orderedList"
|
|
9
|
-
};
|
|
10
|
-
},
|
|
11
|
-
content: "paragraph block*",
|
|
12
|
-
defining: !0,
|
|
13
|
-
parseHTML() {
|
|
14
|
-
return [
|
|
15
|
-
{
|
|
16
|
-
tag: "li"
|
|
17
|
-
}
|
|
18
|
-
];
|
|
19
|
-
},
|
|
20
|
-
renderHTML({ HTMLAttributes: t }) {
|
|
21
|
-
return ["li", i(this.options.HTMLAttributes, t), 0];
|
|
22
|
-
},
|
|
23
|
-
addKeyboardShortcuts() {
|
|
24
|
-
return {
|
|
25
|
-
Enter: () => this.editor.commands.splitListItem(this.name),
|
|
26
|
-
Tab: () => this.editor.commands.sinkListItem(this.name),
|
|
27
|
-
"Shift-Tab": () => this.editor.commands.liftListItem(this.name)
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
export {
|
|
32
|
-
s as L
|
|
33
|
-
};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { N as n, w as r, m as i } from "./vendor-tiptap-core-dlTW4S11.js";
|
|
2
|
-
const p = "listItem", o = "textStyle", a = /^(\d+)\.\s$/, d = n.create({
|
|
3
|
-
name: "orderedList",
|
|
4
|
-
addOptions() {
|
|
5
|
-
return {
|
|
6
|
-
itemTypeName: "listItem",
|
|
7
|
-
HTMLAttributes: {},
|
|
8
|
-
keepMarks: !1,
|
|
9
|
-
keepAttributes: !1
|
|
10
|
-
};
|
|
11
|
-
},
|
|
12
|
-
group: "block list",
|
|
13
|
-
content() {
|
|
14
|
-
return `${this.options.itemTypeName}+`;
|
|
15
|
-
},
|
|
16
|
-
addAttributes() {
|
|
17
|
-
return {
|
|
18
|
-
start: {
|
|
19
|
-
default: 1,
|
|
20
|
-
parseHTML: (t) => t.hasAttribute("start") ? parseInt(t.getAttribute("start") || "", 10) : 1
|
|
21
|
-
},
|
|
22
|
-
type: {
|
|
23
|
-
default: null,
|
|
24
|
-
parseHTML: (t) => t.getAttribute("type")
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
},
|
|
28
|
-
parseHTML() {
|
|
29
|
-
return [
|
|
30
|
-
{
|
|
31
|
-
tag: "ol"
|
|
32
|
-
}
|
|
33
|
-
];
|
|
34
|
-
},
|
|
35
|
-
renderHTML({ HTMLAttributes: t }) {
|
|
36
|
-
const { start: e, ...s } = t;
|
|
37
|
-
return e === 1 ? ["ol", i(this.options.HTMLAttributes, s), 0] : ["ol", i(this.options.HTMLAttributes, t), 0];
|
|
38
|
-
},
|
|
39
|
-
addCommands() {
|
|
40
|
-
return {
|
|
41
|
-
toggleOrderedList: () => ({ commands: t, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(p, this.editor.getAttributes(o)).run() : t.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
|
|
42
|
-
};
|
|
43
|
-
},
|
|
44
|
-
addKeyboardShortcuts() {
|
|
45
|
-
return {
|
|
46
|
-
"Mod-Shift-7": () => this.editor.commands.toggleOrderedList()
|
|
47
|
-
};
|
|
48
|
-
},
|
|
49
|
-
addInputRules() {
|
|
50
|
-
let t = r({
|
|
51
|
-
find: a,
|
|
52
|
-
type: this.type,
|
|
53
|
-
getAttributes: (e) => ({ start: +e[1] }),
|
|
54
|
-
joinPredicate: (e, s) => s.childCount + s.attrs.start === +e[1]
|
|
55
|
-
});
|
|
56
|
-
return (this.options.keepMarks || this.options.keepAttributes) && (t = r({
|
|
57
|
-
find: a,
|
|
58
|
-
type: this.type,
|
|
59
|
-
keepMarks: this.options.keepMarks,
|
|
60
|
-
keepAttributes: this.options.keepAttributes,
|
|
61
|
-
getAttributes: (e) => ({ start: +e[1], ...this.editor.getAttributes(o) }),
|
|
62
|
-
joinPredicate: (e, s) => s.childCount + s.attrs.start === +e[1],
|
|
63
|
-
editor: this.editor
|
|
64
|
-
})), [
|
|
65
|
-
t
|
|
66
|
-
];
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
export {
|
|
70
|
-
d as O
|
|
71
|
-
};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { E as p, r as m } from "./vendor-tiptap-core-dlTW4S11.js";
|
|
2
|
-
import { P as u, a as y } from "./vendor-prosemirror-state-CRUasa1V.js";
|
|
3
|
-
import { a as E, D as f } from "./vendor-prosemirror-view-BGYdOWiJ.js";
|
|
4
|
-
const O = p.create({
|
|
5
|
-
name: "placeholder",
|
|
6
|
-
addOptions() {
|
|
7
|
-
return {
|
|
8
|
-
emptyEditorClass: "is-editor-empty",
|
|
9
|
-
emptyNodeClass: "is-empty",
|
|
10
|
-
placeholder: "Write something …",
|
|
11
|
-
showOnlyWhenEditable: !0,
|
|
12
|
-
showOnlyCurrent: !0,
|
|
13
|
-
includeChildren: !1
|
|
14
|
-
};
|
|
15
|
-
},
|
|
16
|
-
addProseMirrorPlugins() {
|
|
17
|
-
return [
|
|
18
|
-
new u({
|
|
19
|
-
key: new y("placeholder"),
|
|
20
|
-
props: {
|
|
21
|
-
decorations: ({ doc: o, selection: a }) => {
|
|
22
|
-
const l = this.editor.isEditable || !this.options.showOnlyWhenEditable, { anchor: s } = a, i = [];
|
|
23
|
-
if (!l)
|
|
24
|
-
return null;
|
|
25
|
-
const c = this.editor.isEmpty;
|
|
26
|
-
return o.descendants((t, e) => {
|
|
27
|
-
const n = s >= e && s <= e + t.nodeSize, d = !t.isLeaf && m(t);
|
|
28
|
-
if ((n || !this.options.showOnlyCurrent) && d) {
|
|
29
|
-
const r = [this.options.emptyNodeClass];
|
|
30
|
-
c && r.push(this.options.emptyEditorClass);
|
|
31
|
-
const h = E.node(e, e + t.nodeSize, {
|
|
32
|
-
class: r.join(" "),
|
|
33
|
-
"data-placeholder": typeof this.options.placeholder == "function" ? this.options.placeholder({
|
|
34
|
-
editor: this.editor,
|
|
35
|
-
node: t,
|
|
36
|
-
pos: e,
|
|
37
|
-
hasAnchor: n
|
|
38
|
-
}) : this.options.placeholder
|
|
39
|
-
});
|
|
40
|
-
i.push(h);
|
|
41
|
-
}
|
|
42
|
-
return this.options.includeChildren;
|
|
43
|
-
}), f.create(o, i);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
})
|
|
47
|
-
];
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
export {
|
|
51
|
-
O as P
|
|
52
|
-
};
|
|
@@ -1,213 +0,0 @@
|
|
|
1
|
-
import { N as v, e as E, f as H, m as z, s as P } from "./vendor-tiptap-core-dlTW4S11.js";
|
|
2
|
-
import { T as k } from "./vendor-prosemirror-state-CRUasa1V.js";
|
|
3
|
-
import { c as V, t as B, C as A, f as O, g as x, s as D, m as W, a as R, b as j, d as S, e as L, h as K, i as F, j as _, k as G, l as I, n as q } from "./vendor-prosemirror-tables-DzTfCeHX.js";
|
|
4
|
-
function w(t, e) {
|
|
5
|
-
return e ? ["width", `${Math.max(e, t)}px`] : ["min-width", `${t}px`];
|
|
6
|
-
}
|
|
7
|
-
function M(t, e, o, l, a, n) {
|
|
8
|
-
var d;
|
|
9
|
-
let s = 0, u = !0, r = e.firstChild;
|
|
10
|
-
const h = t.firstChild;
|
|
11
|
-
if (h !== null)
|
|
12
|
-
for (let i = 0, b = 0; i < h.childCount; i += 1) {
|
|
13
|
-
const { colspan: g, colwidth: C } = h.child(i).attrs;
|
|
14
|
-
for (let p = 0; p < g; p += 1, b += 1) {
|
|
15
|
-
const c = a === b ? n : C && C[p], y = c ? `${c}px` : "";
|
|
16
|
-
if (s += c || l, c || (u = !1), r) {
|
|
17
|
-
if (r.style.width !== y) {
|
|
18
|
-
const [f, T] = w(l, c);
|
|
19
|
-
r.style.setProperty(f, T);
|
|
20
|
-
}
|
|
21
|
-
r = r.nextSibling;
|
|
22
|
-
} else {
|
|
23
|
-
const f = document.createElement("col"), [T, $] = w(l, c);
|
|
24
|
-
f.style.setProperty(T, $), e.appendChild(f);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
for (; r; ) {
|
|
29
|
-
const i = r.nextSibling;
|
|
30
|
-
(d = r.parentNode) === null || d === void 0 || d.removeChild(r), r = i;
|
|
31
|
-
}
|
|
32
|
-
u ? (o.style.width = `${s}px`, o.style.minWidth = "") : (o.style.width = "", o.style.minWidth = `${s}px`);
|
|
33
|
-
}
|
|
34
|
-
class J {
|
|
35
|
-
constructor(e, o) {
|
|
36
|
-
this.node = e, this.cellMinWidth = o, this.dom = document.createElement("div"), this.dom.className = "tableWrapper", this.table = this.dom.appendChild(document.createElement("table")), this.colgroup = this.table.appendChild(document.createElement("colgroup")), M(e, this.colgroup, this.table, o), this.contentDOM = this.table.appendChild(document.createElement("tbody"));
|
|
37
|
-
}
|
|
38
|
-
update(e) {
|
|
39
|
-
return e.type !== this.node.type ? !1 : (this.node = e, M(e, this.colgroup, this.table, this.cellMinWidth), !0);
|
|
40
|
-
}
|
|
41
|
-
ignoreMutation(e) {
|
|
42
|
-
return e.type === "attributes" && (e.target === this.table || this.colgroup.contains(e.target));
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
function Q(t, e, o, l) {
|
|
46
|
-
let a = 0, n = !0;
|
|
47
|
-
const d = [], s = t.firstChild;
|
|
48
|
-
if (!s)
|
|
49
|
-
return {};
|
|
50
|
-
for (let i = 0, b = 0; i < s.childCount; i += 1) {
|
|
51
|
-
const { colspan: g, colwidth: C } = s.child(i).attrs;
|
|
52
|
-
for (let p = 0; p < g; p += 1, b += 1) {
|
|
53
|
-
const c = o === b ? l : C && C[p];
|
|
54
|
-
a += c || e, c || (n = !1);
|
|
55
|
-
const [y, f] = w(e, c);
|
|
56
|
-
d.push([
|
|
57
|
-
"col",
|
|
58
|
-
{ style: `${y}: ${f}` }
|
|
59
|
-
]);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
const u = n ? `${a}px` : "", r = n ? "" : `${a}px`;
|
|
63
|
-
return { colgroup: ["colgroup", {}, ...d], tableWidth: u, tableMinWidth: r };
|
|
64
|
-
}
|
|
65
|
-
function N(t, e) {
|
|
66
|
-
return t.createAndFill();
|
|
67
|
-
}
|
|
68
|
-
function U(t) {
|
|
69
|
-
if (t.cached.tableNodeTypes)
|
|
70
|
-
return t.cached.tableNodeTypes;
|
|
71
|
-
const e = {};
|
|
72
|
-
return Object.keys(t.nodes).forEach((o) => {
|
|
73
|
-
const l = t.nodes[o];
|
|
74
|
-
l.spec.tableRole && (e[l.spec.tableRole] = l);
|
|
75
|
-
}), t.cached.tableNodeTypes = e, e;
|
|
76
|
-
}
|
|
77
|
-
function X(t, e, o, l, a) {
|
|
78
|
-
const n = U(t), d = [], s = [];
|
|
79
|
-
for (let r = 0; r < o; r += 1) {
|
|
80
|
-
const h = N(n.cell);
|
|
81
|
-
if (h && s.push(h), l) {
|
|
82
|
-
const i = N(n.header_cell);
|
|
83
|
-
i && d.push(i);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
const u = [];
|
|
87
|
-
for (let r = 0; r < e; r += 1)
|
|
88
|
-
u.push(n.row.createChecked(null, l && r === 0 ? d : s));
|
|
89
|
-
return n.table.createChecked(null, u);
|
|
90
|
-
}
|
|
91
|
-
function Y(t) {
|
|
92
|
-
return t instanceof A;
|
|
93
|
-
}
|
|
94
|
-
const m = ({ editor: t }) => {
|
|
95
|
-
const { selection: e } = t.state;
|
|
96
|
-
if (!Y(e))
|
|
97
|
-
return !1;
|
|
98
|
-
let o = 0;
|
|
99
|
-
const l = P(e.ranges[0].$from, (n) => n.type.name === "table");
|
|
100
|
-
return l?.node.descendants((n) => {
|
|
101
|
-
if (n.type.name === "table")
|
|
102
|
-
return !1;
|
|
103
|
-
["tableCell", "tableHeader"].includes(n.type.name) && (o += 1);
|
|
104
|
-
}), o === e.ranges.length ? (t.commands.deleteTable(), !0) : !1;
|
|
105
|
-
}, le = v.create({
|
|
106
|
-
name: "table",
|
|
107
|
-
// @ts-ignore
|
|
108
|
-
addOptions() {
|
|
109
|
-
return {
|
|
110
|
-
HTMLAttributes: {},
|
|
111
|
-
resizable: !1,
|
|
112
|
-
handleWidth: 5,
|
|
113
|
-
cellMinWidth: 25,
|
|
114
|
-
// TODO: fix
|
|
115
|
-
View: J,
|
|
116
|
-
lastColumnResizable: !0,
|
|
117
|
-
allowTableNodeSelection: !1
|
|
118
|
-
};
|
|
119
|
-
},
|
|
120
|
-
content: "tableRow+",
|
|
121
|
-
tableRole: "table",
|
|
122
|
-
isolating: !0,
|
|
123
|
-
group: "block",
|
|
124
|
-
parseHTML() {
|
|
125
|
-
return [{ tag: "table" }];
|
|
126
|
-
},
|
|
127
|
-
renderHTML({ node: t, HTMLAttributes: e }) {
|
|
128
|
-
const { colgroup: o, tableWidth: l, tableMinWidth: a } = Q(t, this.options.cellMinWidth);
|
|
129
|
-
return [
|
|
130
|
-
"table",
|
|
131
|
-
z(this.options.HTMLAttributes, e, {
|
|
132
|
-
style: l ? `width: ${l}` : `min-width: ${a}`
|
|
133
|
-
}),
|
|
134
|
-
o,
|
|
135
|
-
["tbody", 0]
|
|
136
|
-
];
|
|
137
|
-
},
|
|
138
|
-
addCommands() {
|
|
139
|
-
return {
|
|
140
|
-
insertTable: ({ rows: t = 3, cols: e = 3, withHeaderRow: o = !0 } = {}) => ({ tr: l, dispatch: a, editor: n }) => {
|
|
141
|
-
const d = X(n.schema, t, e, o);
|
|
142
|
-
if (a) {
|
|
143
|
-
const s = l.selection.from + 1;
|
|
144
|
-
l.replaceSelectionWith(d).scrollIntoView().setSelection(k.near(l.doc.resolve(s)));
|
|
145
|
-
}
|
|
146
|
-
return !0;
|
|
147
|
-
},
|
|
148
|
-
addColumnBefore: () => ({ state: t, dispatch: e }) => q(t, e),
|
|
149
|
-
addColumnAfter: () => ({ state: t, dispatch: e }) => I(t, e),
|
|
150
|
-
deleteColumn: () => ({ state: t, dispatch: e }) => G(t, e),
|
|
151
|
-
addRowBefore: () => ({ state: t, dispatch: e }) => _(t, e),
|
|
152
|
-
addRowAfter: () => ({ state: t, dispatch: e }) => F(t, e),
|
|
153
|
-
deleteRow: () => ({ state: t, dispatch: e }) => K(t, e),
|
|
154
|
-
deleteTable: () => ({ state: t, dispatch: e }) => L(t, e),
|
|
155
|
-
mergeCells: () => ({ state: t, dispatch: e }) => W(t, e),
|
|
156
|
-
splitCell: () => ({ state: t, dispatch: e }) => R(t, e),
|
|
157
|
-
toggleHeaderColumn: () => ({ state: t, dispatch: e }) => S("column")(t, e),
|
|
158
|
-
toggleHeaderRow: () => ({ state: t, dispatch: e }) => S("row")(t, e),
|
|
159
|
-
toggleHeaderCell: () => ({ state: t, dispatch: e }) => j(t, e),
|
|
160
|
-
mergeOrSplit: () => ({ state: t, dispatch: e }) => W(t, e) ? !0 : R(t, e),
|
|
161
|
-
setCellAttribute: (t, e) => ({ state: o, dispatch: l }) => D(t, e)(o, l),
|
|
162
|
-
goToNextCell: () => ({ state: t, dispatch: e }) => x(1)(t, e),
|
|
163
|
-
goToPreviousCell: () => ({ state: t, dispatch: e }) => x(-1)(t, e),
|
|
164
|
-
fixTables: () => ({ state: t, dispatch: e }) => (e && O(t), !0),
|
|
165
|
-
setCellSelection: (t) => ({ tr: e, dispatch: o }) => {
|
|
166
|
-
if (o) {
|
|
167
|
-
const l = A.create(e.doc, t.anchorCell, t.headCell);
|
|
168
|
-
e.setSelection(l);
|
|
169
|
-
}
|
|
170
|
-
return !0;
|
|
171
|
-
}
|
|
172
|
-
};
|
|
173
|
-
},
|
|
174
|
-
addKeyboardShortcuts() {
|
|
175
|
-
return {
|
|
176
|
-
Tab: () => this.editor.commands.goToNextCell() ? !0 : this.editor.can().addRowAfter() ? this.editor.chain().addRowAfter().goToNextCell().run() : !1,
|
|
177
|
-
"Shift-Tab": () => this.editor.commands.goToPreviousCell(),
|
|
178
|
-
Backspace: m,
|
|
179
|
-
"Mod-Backspace": m,
|
|
180
|
-
Delete: m,
|
|
181
|
-
"Mod-Delete": m
|
|
182
|
-
};
|
|
183
|
-
},
|
|
184
|
-
addProseMirrorPlugins() {
|
|
185
|
-
return [
|
|
186
|
-
...this.options.resizable && this.editor.isEditable ? [
|
|
187
|
-
V({
|
|
188
|
-
handleWidth: this.options.handleWidth,
|
|
189
|
-
cellMinWidth: this.options.cellMinWidth,
|
|
190
|
-
defaultCellMinWidth: this.options.cellMinWidth,
|
|
191
|
-
View: this.options.View,
|
|
192
|
-
lastColumnResizable: this.options.lastColumnResizable
|
|
193
|
-
})
|
|
194
|
-
] : [],
|
|
195
|
-
B({
|
|
196
|
-
allowTableNodeSelection: this.options.allowTableNodeSelection
|
|
197
|
-
})
|
|
198
|
-
];
|
|
199
|
-
},
|
|
200
|
-
extendNodeSchema(t) {
|
|
201
|
-
const e = {
|
|
202
|
-
name: t.name,
|
|
203
|
-
options: t.options,
|
|
204
|
-
storage: t.storage
|
|
205
|
-
};
|
|
206
|
-
return {
|
|
207
|
-
tableRole: E(H(t, "tableRole", e))
|
|
208
|
-
};
|
|
209
|
-
}
|
|
210
|
-
});
|
|
211
|
-
export {
|
|
212
|
-
le as T
|
|
213
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { N as l, m as a } from "./vendor-tiptap-core-dlTW4S11.js";
|
|
2
|
-
const o = l.create({
|
|
3
|
-
name: "tableCell",
|
|
4
|
-
addOptions() {
|
|
5
|
-
return {
|
|
6
|
-
HTMLAttributes: {}
|
|
7
|
-
};
|
|
8
|
-
},
|
|
9
|
-
content: "block+",
|
|
10
|
-
addAttributes() {
|
|
11
|
-
return {
|
|
12
|
-
colspan: {
|
|
13
|
-
default: 1
|
|
14
|
-
},
|
|
15
|
-
rowspan: {
|
|
16
|
-
default: 1
|
|
17
|
-
},
|
|
18
|
-
colwidth: {
|
|
19
|
-
default: null,
|
|
20
|
-
parseHTML: (t) => {
|
|
21
|
-
const e = t.getAttribute("colwidth");
|
|
22
|
-
return e ? e.split(",").map((r) => parseInt(r, 10)) : null;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
},
|
|
27
|
-
tableRole: "cell",
|
|
28
|
-
isolating: !0,
|
|
29
|
-
parseHTML() {
|
|
30
|
-
return [
|
|
31
|
-
{ tag: "td" }
|
|
32
|
-
];
|
|
33
|
-
},
|
|
34
|
-
renderHTML({ HTMLAttributes: t }) {
|
|
35
|
-
return ["td", a(this.options.HTMLAttributes, t), 0];
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
export {
|
|
39
|
-
o as T
|
|
40
|
-
};
|