@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,5 +1,5 @@
|
|
|
1
|
-
import { N as t, m as e } from "./vendor-tiptap-core-
|
|
2
|
-
|
|
1
|
+
import { N as t, m as e } from "./vendor-tiptap-core-CtNT-ozM.js";
|
|
2
|
+
var o = t.create({
|
|
3
3
|
name: "paragraph",
|
|
4
4
|
priority: 1e3,
|
|
5
5
|
addOptions() {
|
|
@@ -10,9 +10,7 @@ const o = t.create({
|
|
|
10
10
|
group: "block",
|
|
11
11
|
content: "inline*",
|
|
12
12
|
parseHTML() {
|
|
13
|
-
return [
|
|
14
|
-
{ tag: "p" }
|
|
15
|
-
];
|
|
13
|
+
return [{ tag: "p" }];
|
|
16
14
|
},
|
|
17
15
|
renderHTML({ HTMLAttributes: r }) {
|
|
18
16
|
return ["p", e(this.options.HTMLAttributes, r), 0];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./vendor-tiptap-extensions-_4zopegS.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as e, a as r, b as s, m as a } from "./vendor-tiptap-core-
|
|
2
|
-
|
|
1
|
+
import { M as e, a as r, b as s, m as a } from "./vendor-tiptap-core-CtNT-ozM.js";
|
|
2
|
+
var n = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, i = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, d = e.create({
|
|
3
3
|
name: "strike",
|
|
4
4
|
addOptions() {
|
|
5
5
|
return {
|
|
@@ -57,5 +57,5 @@ const n = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, i = /(?:^|\s)(~~(?!\s+
|
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
59
|
export {
|
|
60
|
-
|
|
60
|
+
d as S
|
|
61
61
|
};
|
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
import { N as g, r as E, s as $, m as T, u as k, E as O } from "./vendor-tiptap-core-CtNT-ozM.js";
|
|
2
|
+
import { T as z } from "./vendor-prosemirror-state-6jGEPgrP.js";
|
|
3
|
+
import { c as P, t as V, C as L, f as B, g as R, s as D, m as x, a as A, b as j, d as W, e as K, h as I, i as _, j as F, k as G, l as q, n as J } from "./vendor-prosemirror-tables-U7ypaxJu.js";
|
|
4
|
+
var Q = g.create({
|
|
5
|
+
name: "tableCell",
|
|
6
|
+
addOptions() {
|
|
7
|
+
return {
|
|
8
|
+
HTMLAttributes: {}
|
|
9
|
+
};
|
|
10
|
+
},
|
|
11
|
+
content: "block+",
|
|
12
|
+
addAttributes() {
|
|
13
|
+
return {
|
|
14
|
+
colspan: {
|
|
15
|
+
default: 1
|
|
16
|
+
},
|
|
17
|
+
rowspan: {
|
|
18
|
+
default: 1
|
|
19
|
+
},
|
|
20
|
+
colwidth: {
|
|
21
|
+
default: null,
|
|
22
|
+
parseHTML: (e) => {
|
|
23
|
+
const t = e.getAttribute("colwidth");
|
|
24
|
+
return t ? t.split(",").map((l) => parseInt(l, 10)) : null;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
},
|
|
29
|
+
tableRole: "cell",
|
|
30
|
+
isolating: !0,
|
|
31
|
+
parseHTML() {
|
|
32
|
+
return [{ tag: "td" }];
|
|
33
|
+
},
|
|
34
|
+
renderHTML({ HTMLAttributes: e }) {
|
|
35
|
+
return ["td", T(this.options.HTMLAttributes, e), 0];
|
|
36
|
+
}
|
|
37
|
+
}), U = g.create({
|
|
38
|
+
name: "tableHeader",
|
|
39
|
+
addOptions() {
|
|
40
|
+
return {
|
|
41
|
+
HTMLAttributes: {}
|
|
42
|
+
};
|
|
43
|
+
},
|
|
44
|
+
content: "block+",
|
|
45
|
+
addAttributes() {
|
|
46
|
+
return {
|
|
47
|
+
colspan: {
|
|
48
|
+
default: 1
|
|
49
|
+
},
|
|
50
|
+
rowspan: {
|
|
51
|
+
default: 1
|
|
52
|
+
},
|
|
53
|
+
colwidth: {
|
|
54
|
+
default: null,
|
|
55
|
+
parseHTML: (e) => {
|
|
56
|
+
const t = e.getAttribute("colwidth");
|
|
57
|
+
return t ? t.split(",").map((l) => parseInt(l, 10)) : null;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
tableRole: "header_cell",
|
|
63
|
+
isolating: !0,
|
|
64
|
+
parseHTML() {
|
|
65
|
+
return [{ tag: "th" }];
|
|
66
|
+
},
|
|
67
|
+
renderHTML({ HTMLAttributes: e }) {
|
|
68
|
+
return ["th", T(this.options.HTMLAttributes, e), 0];
|
|
69
|
+
}
|
|
70
|
+
}), X = g.create({
|
|
71
|
+
name: "tableRow",
|
|
72
|
+
addOptions() {
|
|
73
|
+
return {
|
|
74
|
+
HTMLAttributes: {}
|
|
75
|
+
};
|
|
76
|
+
},
|
|
77
|
+
content: "(tableCell | tableHeader)*",
|
|
78
|
+
tableRole: "row",
|
|
79
|
+
parseHTML() {
|
|
80
|
+
return [{ tag: "tr" }];
|
|
81
|
+
},
|
|
82
|
+
renderHTML({ HTMLAttributes: e }) {
|
|
83
|
+
return ["tr", T(this.options.HTMLAttributes, e), 0];
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
function H(e, t) {
|
|
87
|
+
return t ? ["width", `${Math.max(t, e)}px`] : ["min-width", `${e}px`];
|
|
88
|
+
}
|
|
89
|
+
function S(e, t, o, l, i, n) {
|
|
90
|
+
var d;
|
|
91
|
+
let s = 0, u = !0, r = t.firstChild;
|
|
92
|
+
const h = e.firstChild;
|
|
93
|
+
if (h !== null)
|
|
94
|
+
for (let a = 0, f = 0; a < h.childCount; a += 1) {
|
|
95
|
+
const { colspan: w, colwidth: m } = h.child(a).attrs;
|
|
96
|
+
for (let p = 0; p < w; p += 1, f += 1) {
|
|
97
|
+
const c = i === f ? n : m && m[p], y = c ? `${c}px` : "";
|
|
98
|
+
if (s += c || l, c || (u = !1), r) {
|
|
99
|
+
if (r.style.width !== y) {
|
|
100
|
+
const [b, M] = H(l, c);
|
|
101
|
+
r.style.setProperty(b, M);
|
|
102
|
+
}
|
|
103
|
+
r = r.nextSibling;
|
|
104
|
+
} else {
|
|
105
|
+
const b = document.createElement("col"), [M, N] = H(l, c);
|
|
106
|
+
b.style.setProperty(M, N), t.appendChild(b);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
for (; r; ) {
|
|
111
|
+
const a = r.nextSibling;
|
|
112
|
+
(d = r.parentNode) == null || d.removeChild(r), r = a;
|
|
113
|
+
}
|
|
114
|
+
u ? (o.style.width = `${s}px`, o.style.minWidth = "") : (o.style.width = "", o.style.minWidth = `${s}px`);
|
|
115
|
+
}
|
|
116
|
+
var Y = class {
|
|
117
|
+
constructor(e, t) {
|
|
118
|
+
this.node = e, this.cellMinWidth = t, 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")), S(e, this.colgroup, this.table, t), this.contentDOM = this.table.appendChild(document.createElement("tbody"));
|
|
119
|
+
}
|
|
120
|
+
update(e) {
|
|
121
|
+
return e.type !== this.node.type ? !1 : (this.node = e, S(e, this.colgroup, this.table, this.cellMinWidth), !0);
|
|
122
|
+
}
|
|
123
|
+
ignoreMutation(e) {
|
|
124
|
+
return e.type === "attributes" && (e.target === this.table || this.colgroup.contains(e.target));
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
function Z(e, t, o, l) {
|
|
128
|
+
let i = 0, n = !0;
|
|
129
|
+
const d = [], s = e.firstChild;
|
|
130
|
+
if (!s)
|
|
131
|
+
return {};
|
|
132
|
+
for (let a = 0, f = 0; a < s.childCount; a += 1) {
|
|
133
|
+
const { colspan: w, colwidth: m } = s.child(a).attrs;
|
|
134
|
+
for (let p = 0; p < w; p += 1, f += 1) {
|
|
135
|
+
const c = o === f ? l : m && m[p];
|
|
136
|
+
i += c || t, c || (n = !1);
|
|
137
|
+
const [y, b] = H(t, c);
|
|
138
|
+
d.push(["col", { style: `${y}: ${b}` }]);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
const u = n ? `${i}px` : "", r = n ? "" : `${i}px`;
|
|
142
|
+
return { colgroup: ["colgroup", {}, ...d], tableWidth: u, tableMinWidth: r };
|
|
143
|
+
}
|
|
144
|
+
function v(e, t) {
|
|
145
|
+
return e.createAndFill();
|
|
146
|
+
}
|
|
147
|
+
function ee(e) {
|
|
148
|
+
if (e.cached.tableNodeTypes)
|
|
149
|
+
return e.cached.tableNodeTypes;
|
|
150
|
+
const t = {};
|
|
151
|
+
return Object.keys(e.nodes).forEach((o) => {
|
|
152
|
+
const l = e.nodes[o];
|
|
153
|
+
l.spec.tableRole && (t[l.spec.tableRole] = l);
|
|
154
|
+
}), e.cached.tableNodeTypes = t, t;
|
|
155
|
+
}
|
|
156
|
+
function te(e, t, o, l, i) {
|
|
157
|
+
const n = ee(e), d = [], s = [];
|
|
158
|
+
for (let r = 0; r < o; r += 1) {
|
|
159
|
+
const h = v(n.cell);
|
|
160
|
+
if (h && s.push(h), l) {
|
|
161
|
+
const a = v(n.header_cell);
|
|
162
|
+
a && d.push(a);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
const u = [];
|
|
166
|
+
for (let r = 0; r < t; r += 1)
|
|
167
|
+
u.push(n.row.createChecked(null, l && r === 0 ? d : s));
|
|
168
|
+
return n.table.createChecked(null, u);
|
|
169
|
+
}
|
|
170
|
+
function le(e) {
|
|
171
|
+
return e instanceof L;
|
|
172
|
+
}
|
|
173
|
+
var C = ({ editor: e }) => {
|
|
174
|
+
const { selection: t } = e.state;
|
|
175
|
+
if (!le(t))
|
|
176
|
+
return !1;
|
|
177
|
+
let o = 0;
|
|
178
|
+
const l = k(t.ranges[0].$from, (n) => n.type.name === "table");
|
|
179
|
+
return l?.node.descendants((n) => {
|
|
180
|
+
if (n.type.name === "table")
|
|
181
|
+
return !1;
|
|
182
|
+
["tableCell", "tableHeader"].includes(n.type.name) && (o += 1);
|
|
183
|
+
}), o === t.ranges.length ? (e.commands.deleteTable(), !0) : !1;
|
|
184
|
+
}, oe = g.create({
|
|
185
|
+
name: "table",
|
|
186
|
+
// @ts-ignore
|
|
187
|
+
addOptions() {
|
|
188
|
+
return {
|
|
189
|
+
HTMLAttributes: {},
|
|
190
|
+
resizable: !1,
|
|
191
|
+
handleWidth: 5,
|
|
192
|
+
cellMinWidth: 25,
|
|
193
|
+
// TODO: fix
|
|
194
|
+
View: Y,
|
|
195
|
+
lastColumnResizable: !0,
|
|
196
|
+
allowTableNodeSelection: !1
|
|
197
|
+
};
|
|
198
|
+
},
|
|
199
|
+
content: "tableRow+",
|
|
200
|
+
tableRole: "table",
|
|
201
|
+
isolating: !0,
|
|
202
|
+
group: "block",
|
|
203
|
+
parseHTML() {
|
|
204
|
+
return [{ tag: "table" }];
|
|
205
|
+
},
|
|
206
|
+
renderHTML({ node: e, HTMLAttributes: t }) {
|
|
207
|
+
const { colgroup: o, tableWidth: l, tableMinWidth: i } = Z(e, this.options.cellMinWidth);
|
|
208
|
+
return [
|
|
209
|
+
"table",
|
|
210
|
+
T(this.options.HTMLAttributes, t, {
|
|
211
|
+
style: l ? `width: ${l}` : `min-width: ${i}`
|
|
212
|
+
}),
|
|
213
|
+
o,
|
|
214
|
+
["tbody", 0]
|
|
215
|
+
];
|
|
216
|
+
},
|
|
217
|
+
addCommands() {
|
|
218
|
+
return {
|
|
219
|
+
insertTable: ({ rows: e = 3, cols: t = 3, withHeaderRow: o = !0 } = {}) => ({ tr: l, dispatch: i, editor: n }) => {
|
|
220
|
+
const d = te(n.schema, e, t, o);
|
|
221
|
+
if (i) {
|
|
222
|
+
const s = l.selection.from + 1;
|
|
223
|
+
l.replaceSelectionWith(d).scrollIntoView().setSelection(z.near(l.doc.resolve(s)));
|
|
224
|
+
}
|
|
225
|
+
return !0;
|
|
226
|
+
},
|
|
227
|
+
addColumnBefore: () => ({ state: e, dispatch: t }) => J(e, t),
|
|
228
|
+
addColumnAfter: () => ({ state: e, dispatch: t }) => q(e, t),
|
|
229
|
+
deleteColumn: () => ({ state: e, dispatch: t }) => G(e, t),
|
|
230
|
+
addRowBefore: () => ({ state: e, dispatch: t }) => F(e, t),
|
|
231
|
+
addRowAfter: () => ({ state: e, dispatch: t }) => _(e, t),
|
|
232
|
+
deleteRow: () => ({ state: e, dispatch: t }) => I(e, t),
|
|
233
|
+
deleteTable: () => ({ state: e, dispatch: t }) => K(e, t),
|
|
234
|
+
mergeCells: () => ({ state: e, dispatch: t }) => x(e, t),
|
|
235
|
+
splitCell: () => ({ state: e, dispatch: t }) => A(e, t),
|
|
236
|
+
toggleHeaderColumn: () => ({ state: e, dispatch: t }) => W("column")(e, t),
|
|
237
|
+
toggleHeaderRow: () => ({ state: e, dispatch: t }) => W("row")(e, t),
|
|
238
|
+
toggleHeaderCell: () => ({ state: e, dispatch: t }) => j(e, t),
|
|
239
|
+
mergeOrSplit: () => ({ state: e, dispatch: t }) => x(e, t) ? !0 : A(e, t),
|
|
240
|
+
setCellAttribute: (e, t) => ({ state: o, dispatch: l }) => D(e, t)(o, l),
|
|
241
|
+
goToNextCell: () => ({ state: e, dispatch: t }) => R(1)(e, t),
|
|
242
|
+
goToPreviousCell: () => ({ state: e, dispatch: t }) => R(-1)(e, t),
|
|
243
|
+
fixTables: () => ({ state: e, dispatch: t }) => (t && B(e), !0),
|
|
244
|
+
setCellSelection: (e) => ({ tr: t, dispatch: o }) => {
|
|
245
|
+
if (o) {
|
|
246
|
+
const l = L.create(t.doc, e.anchorCell, e.headCell);
|
|
247
|
+
t.setSelection(l);
|
|
248
|
+
}
|
|
249
|
+
return !0;
|
|
250
|
+
}
|
|
251
|
+
};
|
|
252
|
+
},
|
|
253
|
+
addKeyboardShortcuts() {
|
|
254
|
+
return {
|
|
255
|
+
Tab: () => this.editor.commands.goToNextCell() ? !0 : this.editor.can().addRowAfter() ? this.editor.chain().addRowAfter().goToNextCell().run() : !1,
|
|
256
|
+
"Shift-Tab": () => this.editor.commands.goToPreviousCell(),
|
|
257
|
+
Backspace: C,
|
|
258
|
+
"Mod-Backspace": C,
|
|
259
|
+
Delete: C,
|
|
260
|
+
"Mod-Delete": C
|
|
261
|
+
};
|
|
262
|
+
},
|
|
263
|
+
addProseMirrorPlugins() {
|
|
264
|
+
return [
|
|
265
|
+
...this.options.resizable && this.editor.isEditable ? [
|
|
266
|
+
P({
|
|
267
|
+
handleWidth: this.options.handleWidth,
|
|
268
|
+
cellMinWidth: this.options.cellMinWidth,
|
|
269
|
+
defaultCellMinWidth: this.options.cellMinWidth,
|
|
270
|
+
View: this.options.View,
|
|
271
|
+
lastColumnResizable: this.options.lastColumnResizable
|
|
272
|
+
})
|
|
273
|
+
] : [],
|
|
274
|
+
V({
|
|
275
|
+
allowTableNodeSelection: this.options.allowTableNodeSelection
|
|
276
|
+
})
|
|
277
|
+
];
|
|
278
|
+
},
|
|
279
|
+
extendNodeSchema(e) {
|
|
280
|
+
const t = {
|
|
281
|
+
name: e.name,
|
|
282
|
+
options: e.options,
|
|
283
|
+
storage: e.storage
|
|
284
|
+
};
|
|
285
|
+
return {
|
|
286
|
+
tableRole: E($(e, "tableRole", t))
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
});
|
|
290
|
+
O.create({
|
|
291
|
+
name: "tableKit",
|
|
292
|
+
addExtensions() {
|
|
293
|
+
const e = [];
|
|
294
|
+
return this.options.table !== !1 && e.push(oe.configure(this.options.table)), this.options.tableCell !== !1 && e.push(Q.configure(this.options.tableCell)), this.options.tableHeader !== !1 && e.push(U.configure(this.options.tableHeader)), this.options.tableRow !== !1 && e.push(X.configure(this.options.tableRow)), e;
|
|
295
|
+
}
|
|
296
|
+
});
|
|
297
|
+
export {
|
|
298
|
+
oe as T,
|
|
299
|
+
X as a,
|
|
300
|
+
U as b,
|
|
301
|
+
Q as c
|
|
302
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./vendor-tiptap-extension-table-D26aUVrb.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./vendor-tiptap-extension-table-D26aUVrb.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./vendor-tiptap-extension-table-D26aUVrb.js";
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import { M as u, m as y, E as l } from "./vendor-tiptap-core-CtNT-ozM.js";
|
|
2
|
+
var p = (t) => {
|
|
3
|
+
if (!t.children.length)
|
|
4
|
+
return;
|
|
5
|
+
const e = t.querySelectorAll("span");
|
|
6
|
+
e && e.forEach((n) => {
|
|
7
|
+
var o, r;
|
|
8
|
+
const s = n.getAttribute("style"), i = (r = (o = n.parentElement) == null ? void 0 : o.closest("span")) == null ? void 0 : r.getAttribute("style");
|
|
9
|
+
n.setAttribute("style", `${i};${s}`);
|
|
10
|
+
});
|
|
11
|
+
}, d = u.create({
|
|
12
|
+
name: "textStyle",
|
|
13
|
+
priority: 101,
|
|
14
|
+
addOptions() {
|
|
15
|
+
return {
|
|
16
|
+
HTMLAttributes: {},
|
|
17
|
+
mergeNestedSpanStyles: !0
|
|
18
|
+
};
|
|
19
|
+
},
|
|
20
|
+
parseHTML() {
|
|
21
|
+
return [
|
|
22
|
+
{
|
|
23
|
+
tag: "span",
|
|
24
|
+
consuming: !1,
|
|
25
|
+
getAttrs: (t) => t.hasAttribute("style") ? (this.options.mergeNestedSpanStyles && p(t), {}) : !1
|
|
26
|
+
}
|
|
27
|
+
];
|
|
28
|
+
},
|
|
29
|
+
renderHTML({ HTMLAttributes: t }) {
|
|
30
|
+
return ["span", y(this.options.HTMLAttributes, t), 0];
|
|
31
|
+
},
|
|
32
|
+
addCommands() {
|
|
33
|
+
return {
|
|
34
|
+
toggleTextStyle: (t) => ({ commands: e }) => e.toggleMark(this.name, t),
|
|
35
|
+
removeEmptyTextStyle: () => ({ tr: t }) => {
|
|
36
|
+
const { selection: e } = t;
|
|
37
|
+
return t.doc.nodesBetween(e.from, e.to, (n, o) => {
|
|
38
|
+
if (n.isTextblock)
|
|
39
|
+
return !0;
|
|
40
|
+
n.marks.filter((r) => r.type === this.type).some((r) => Object.values(r.attrs).some((s) => !!s)) || t.removeMark(o, o + n.nodeSize, this.type);
|
|
41
|
+
}), !0;
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
}), c = l.create({
|
|
46
|
+
name: "backgroundColor",
|
|
47
|
+
addOptions() {
|
|
48
|
+
return {
|
|
49
|
+
types: ["textStyle"]
|
|
50
|
+
};
|
|
51
|
+
},
|
|
52
|
+
addGlobalAttributes() {
|
|
53
|
+
return [
|
|
54
|
+
{
|
|
55
|
+
types: this.options.types,
|
|
56
|
+
attributes: {
|
|
57
|
+
backgroundColor: {
|
|
58
|
+
default: null,
|
|
59
|
+
parseHTML: (t) => {
|
|
60
|
+
var e;
|
|
61
|
+
const n = t.getAttribute("style");
|
|
62
|
+
if (n) {
|
|
63
|
+
const o = n.split(";").map((r) => r.trim()).filter(Boolean);
|
|
64
|
+
for (let r = o.length - 1; r >= 0; r -= 1) {
|
|
65
|
+
const s = o[r].split(":");
|
|
66
|
+
if (s.length >= 2) {
|
|
67
|
+
const i = s[0].trim().toLowerCase(), a = s.slice(1).join(":").trim();
|
|
68
|
+
if (i === "background-color")
|
|
69
|
+
return a.replace(/['"]+/g, "");
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return (e = t.style.backgroundColor) == null ? void 0 : e.replace(/['"]+/g, "");
|
|
74
|
+
},
|
|
75
|
+
renderHTML: (t) => t.backgroundColor ? {
|
|
76
|
+
style: `background-color: ${t.backgroundColor}`
|
|
77
|
+
} : {}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
];
|
|
82
|
+
},
|
|
83
|
+
addCommands() {
|
|
84
|
+
return {
|
|
85
|
+
setBackgroundColor: (t) => ({ chain: e }) => e().setMark("textStyle", { backgroundColor: t }).run(),
|
|
86
|
+
unsetBackgroundColor: () => ({ chain: t }) => t().setMark("textStyle", { backgroundColor: null }).removeEmptyTextStyle().run()
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
}), f = l.create({
|
|
90
|
+
name: "color",
|
|
91
|
+
addOptions() {
|
|
92
|
+
return {
|
|
93
|
+
types: ["textStyle"]
|
|
94
|
+
};
|
|
95
|
+
},
|
|
96
|
+
addGlobalAttributes() {
|
|
97
|
+
return [
|
|
98
|
+
{
|
|
99
|
+
types: this.options.types,
|
|
100
|
+
attributes: {
|
|
101
|
+
color: {
|
|
102
|
+
default: null,
|
|
103
|
+
parseHTML: (t) => {
|
|
104
|
+
var e;
|
|
105
|
+
const n = t.getAttribute("style");
|
|
106
|
+
if (n) {
|
|
107
|
+
const o = n.split(";").map((r) => r.trim()).filter(Boolean);
|
|
108
|
+
for (let r = o.length - 1; r >= 0; r -= 1) {
|
|
109
|
+
const s = o[r].split(":");
|
|
110
|
+
if (s.length >= 2) {
|
|
111
|
+
const i = s[0].trim().toLowerCase(), a = s.slice(1).join(":").trim();
|
|
112
|
+
if (i === "color")
|
|
113
|
+
return a.replace(/['"]+/g, "");
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
return (e = t.style.color) == null ? void 0 : e.replace(/['"]+/g, "");
|
|
118
|
+
},
|
|
119
|
+
renderHTML: (t) => t.color ? {
|
|
120
|
+
style: `color: ${t.color}`
|
|
121
|
+
} : {}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
];
|
|
126
|
+
},
|
|
127
|
+
addCommands() {
|
|
128
|
+
return {
|
|
129
|
+
setColor: (t) => ({ chain: e }) => e().setMark("textStyle", { color: t }).run(),
|
|
130
|
+
unsetColor: () => ({ chain: t }) => t().setMark("textStyle", { color: null }).removeEmptyTextStyle().run()
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
}), m = l.create({
|
|
134
|
+
name: "fontFamily",
|
|
135
|
+
addOptions() {
|
|
136
|
+
return {
|
|
137
|
+
types: ["textStyle"]
|
|
138
|
+
};
|
|
139
|
+
},
|
|
140
|
+
addGlobalAttributes() {
|
|
141
|
+
return [
|
|
142
|
+
{
|
|
143
|
+
types: this.options.types,
|
|
144
|
+
attributes: {
|
|
145
|
+
fontFamily: {
|
|
146
|
+
default: null,
|
|
147
|
+
parseHTML: (t) => t.style.fontFamily,
|
|
148
|
+
renderHTML: (t) => t.fontFamily ? {
|
|
149
|
+
style: `font-family: ${t.fontFamily}`
|
|
150
|
+
} : {}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
];
|
|
155
|
+
},
|
|
156
|
+
addCommands() {
|
|
157
|
+
return {
|
|
158
|
+
setFontFamily: (t) => ({ chain: e }) => e().setMark("textStyle", { fontFamily: t }).run(),
|
|
159
|
+
unsetFontFamily: () => ({ chain: t }) => t().setMark("textStyle", { fontFamily: null }).removeEmptyTextStyle().run()
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
}), g = l.create({
|
|
163
|
+
name: "fontSize",
|
|
164
|
+
addOptions() {
|
|
165
|
+
return {
|
|
166
|
+
types: ["textStyle"]
|
|
167
|
+
};
|
|
168
|
+
},
|
|
169
|
+
addGlobalAttributes() {
|
|
170
|
+
return [
|
|
171
|
+
{
|
|
172
|
+
types: this.options.types,
|
|
173
|
+
attributes: {
|
|
174
|
+
fontSize: {
|
|
175
|
+
default: null,
|
|
176
|
+
parseHTML: (t) => t.style.fontSize,
|
|
177
|
+
renderHTML: (t) => t.fontSize ? {
|
|
178
|
+
style: `font-size: ${t.fontSize}`
|
|
179
|
+
} : {}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
];
|
|
184
|
+
},
|
|
185
|
+
addCommands() {
|
|
186
|
+
return {
|
|
187
|
+
setFontSize: (t) => ({ chain: e }) => e().setMark("textStyle", { fontSize: t }).run(),
|
|
188
|
+
unsetFontSize: () => ({ chain: t }) => t().setMark("textStyle", { fontSize: null }).removeEmptyTextStyle().run()
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
}), h = l.create({
|
|
192
|
+
name: "lineHeight",
|
|
193
|
+
addOptions() {
|
|
194
|
+
return {
|
|
195
|
+
types: ["textStyle"]
|
|
196
|
+
};
|
|
197
|
+
},
|
|
198
|
+
addGlobalAttributes() {
|
|
199
|
+
return [
|
|
200
|
+
{
|
|
201
|
+
types: this.options.types,
|
|
202
|
+
attributes: {
|
|
203
|
+
lineHeight: {
|
|
204
|
+
default: null,
|
|
205
|
+
parseHTML: (t) => t.style.lineHeight,
|
|
206
|
+
renderHTML: (t) => t.lineHeight ? {
|
|
207
|
+
style: `line-height: ${t.lineHeight}`
|
|
208
|
+
} : {}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
];
|
|
213
|
+
},
|
|
214
|
+
addCommands() {
|
|
215
|
+
return {
|
|
216
|
+
setLineHeight: (t) => ({ chain: e }) => e().setMark("textStyle", { lineHeight: t }).run(),
|
|
217
|
+
unsetLineHeight: () => ({ chain: t }) => t().setMark("textStyle", { lineHeight: null }).removeEmptyTextStyle().run()
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
});
|
|
221
|
+
l.create({
|
|
222
|
+
name: "textStyleKit",
|
|
223
|
+
addExtensions() {
|
|
224
|
+
const t = [];
|
|
225
|
+
return this.options.backgroundColor !== !1 && t.push(c.configure(this.options.backgroundColor)), this.options.color !== !1 && t.push(f.configure(this.options.color)), this.options.fontFamily !== !1 && t.push(m.configure(this.options.fontFamily)), this.options.fontSize !== !1 && t.push(g.configure(this.options.fontSize)), this.options.lineHeight !== !1 && t.push(h.configure(this.options.lineHeight)), this.options.textStyle !== !1 && t.push(d.configure(this.options.textStyle)), t;
|
|
226
|
+
}
|
|
227
|
+
});
|
|
228
|
+
export {
|
|
229
|
+
d as T
|
|
230
|
+
};
|