@vc-shell/framework 1.2.4-beta.8 → 2.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/0d67e9e056b4c500.woff +0 -0
- package/dist/assets/131b34336aedaf47.woff +0 -0
- package/dist/assets/19bb1c668a5db39f.woff2 +0 -0
- package/dist/assets/2010ada3e82156ed.woff +0 -0
- package/dist/assets/3fc09a6113184f16.woff +0 -0
- package/dist/assets/477e1881a0394cc5.woff +0 -0
- package/dist/assets/b7ffde2383bb16ba.woff2 +0 -0
- package/dist/assets/c5195215cb712e9c.woff2 +0 -0
- package/dist/assets/c97328b91ac5cc66.woff +0 -0
- package/dist/assets/cdc69f8b549c866d.woff2 +0 -0
- package/dist/assets/d5eb20bcdcf5616a.woff2 +0 -0
- package/dist/assets/da4b7f5883fe7743.woff2 +0 -0
- package/dist/core/composables/useApiClient/index.d.ts +4 -3
- package/dist/core/composables/useApiClient/index.d.ts.map +1 -1
- package/dist/core/composables/useAppBarMobileButtons/index.d.ts +2 -1
- package/dist/core/composables/useAppBarMobileButtons/index.d.ts.map +1 -1
- package/dist/core/composables/useAppBarWidget/index.d.ts +2 -1
- package/dist/core/composables/useAppBarWidget/index.d.ts.map +1 -1
- package/dist/core/composables/useAppInsights/index.d.ts +4 -2
- package/dist/core/composables/useAppInsights/index.d.ts.map +1 -1
- package/dist/core/composables/useAssets/index.d.ts +4 -2
- package/dist/core/composables/useAssets/index.d.ts.map +1 -1
- package/dist/core/composables/useAsync/index.d.ts +4 -2
- package/dist/core/composables/useAsync/index.d.ts.map +1 -1
- package/dist/core/composables/useBeforeUnload/index.d.ts +4 -3
- package/dist/core/composables/useBeforeUnload/index.d.ts.map +1 -1
- package/dist/core/composables/useBlade/index.d.ts +23 -18
- package/dist/core/composables/useBlade/index.d.ts.map +1 -1
- package/dist/core/composables/useBladeRegistry/index.d.ts +6 -3
- package/dist/core/composables/useBladeRegistry/index.d.ts.map +1 -1
- package/dist/core/composables/useBreadcrumbs/index.d.ts +4 -2
- package/dist/core/composables/useBreadcrumbs/index.d.ts.map +1 -1
- package/dist/core/composables/useConnectionStatus/index.d.ts +4 -2
- package/dist/core/composables/useConnectionStatus/index.d.ts.map +1 -1
- package/dist/core/composables/useDashboard/index.d.ts +2 -1
- package/dist/core/composables/useDashboard/index.d.ts.map +1 -1
- package/dist/core/composables/useDynamicProperties/index.d.ts +4 -2
- package/dist/core/composables/useDynamicProperties/index.d.ts.map +1 -1
- package/dist/core/composables/useErrorHandler/index.d.ts +4 -3
- package/dist/core/composables/useErrorHandler/index.d.ts.map +1 -1
- package/dist/core/composables/useFunctions/index.d.ts +4 -3
- package/dist/core/composables/useFunctions/index.d.ts.map +1 -1
- package/dist/core/composables/useGlobalSearch/index.d.ts +2 -1
- package/dist/core/composables/useGlobalSearch/index.d.ts.map +1 -1
- package/dist/core/composables/useKeyboardNavigation/index.d.ts +9 -9
- package/dist/core/composables/useKeyboardNavigation/index.d.ts.map +1 -1
- package/dist/core/composables/useLanguages/index.d.ts +4 -2
- package/dist/core/composables/useLanguages/index.d.ts.map +1 -1
- package/dist/core/composables/useLoading/index.d.ts +2 -1
- package/dist/core/composables/useLoading/index.d.ts.map +1 -1
- package/dist/core/composables/useMenuService/index.d.ts +1 -0
- package/dist/core/composables/useMenuService/index.d.ts.map +1 -1
- package/dist/core/composables/useNotifications/index.d.ts +4 -3
- package/dist/core/composables/useNotifications/index.d.ts.map +1 -1
- package/dist/core/composables/usePermissions/index.d.ts +4 -3
- package/dist/core/composables/usePermissions/index.d.ts.map +1 -1
- package/dist/core/composables/useSettings/index.d.ts +4 -2
- package/dist/core/composables/useSettings/index.d.ts.map +1 -1
- package/dist/core/composables/useSettingsMenu/index.d.ts +2 -1
- package/dist/core/composables/useSettingsMenu/index.d.ts.map +1 -1
- package/dist/core/composables/useSidebarState/index.d.ts +5 -3
- package/dist/core/composables/useSidebarState/index.d.ts.map +1 -1
- package/dist/core/composables/useTheme/index.d.ts +4 -2
- package/dist/core/composables/useTheme/index.d.ts.map +1 -1
- package/dist/core/composables/useToolbar/index.d.ts +10 -9
- package/dist/core/composables/useToolbar/index.d.ts.map +1 -1
- package/dist/core/composables/useUser/index.d.ts +4 -2
- package/dist/core/composables/useUser/index.d.ts.map +1 -1
- package/dist/core/composables/useUserManagement/index.d.ts +4 -2
- package/dist/core/composables/useUserManagement/index.d.ts.map +1 -1
- package/dist/core/composables/useWebVitals/index.d.ts +1 -0
- package/dist/core/composables/useWebVitals/index.d.ts.map +1 -1
- package/dist/core/composables/useWidgets/index.d.ts +2 -1
- package/dist/core/composables/useWidgets/index.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/components/VcAiAgentPanel.vue.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/components/_internal/VcAiAgentHeader.vue.d.ts +2 -2
- package/dist/core/plugins/ai-agent/composables/useAiAgent.d.ts +1 -0
- package/dist/core/plugins/ai-agent/composables/useAiAgent.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/constants.d.ts +16 -0
- package/dist/core/plugins/ai-agent/constants.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/services/ai-agent-service.d.ts +2 -0
- package/dist/core/plugins/ai-agent/services/ai-agent-service.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/types.d.ts +19 -0
- package/dist/core/plugins/ai-agent/types.d.ts.map +1 -1
- package/dist/core/plugins/extension-points/defineExtensionPoint.d.ts +26 -4
- package/dist/core/plugins/extension-points/defineExtensionPoint.d.ts.map +1 -1
- package/dist/core/plugins/extension-points/index.d.ts +14 -0
- package/dist/core/plugins/extension-points/index.d.ts.map +1 -1
- package/dist/core/plugins/modularity/index.d.ts +2 -6
- package/dist/core/plugins/modularity/index.d.ts.map +1 -1
- package/dist/core/plugins/modularity/loader-mf.d.ts +17 -0
- package/dist/core/plugins/modularity/loader-mf.d.ts.map +1 -0
- package/dist/framework.css +9 -0
- package/dist/framework.js +25999 -24595
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/injection-keys.d.ts +39 -2
- package/dist/injection-keys.d.ts.map +1 -1
- package/dist/locales/de.json +5 -1
- package/dist/locales/en.json +5 -1
- package/dist/shared/components/app-switcher/index.d.ts +3 -1
- package/dist/shared/components/app-switcher/index.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation-new.vue.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/composables/useBladeMessaging.d.ts +2 -0
- package/dist/shared/components/blade-navigation/composables/useBladeMessaging.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/composables/useBladeStack.d.ts +3 -1
- package/dist/shared/components/blade-navigation/composables/useBladeStack.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/plugin-v2.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/types/index.d.ts +1 -0
- package/dist/shared/components/blade-navigation/types/index.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/utils/navigateToMainRoute.d.ts +9 -0
- package/dist/shared/components/blade-navigation/utils/navigateToMainRoute.d.ts.map +1 -0
- package/dist/shared/components/blade-navigation/utils/restoreFromUrl.d.ts +4 -1
- package/dist/shared/components/blade-navigation/utils/restoreFromUrl.d.ts.map +1 -1
- package/dist/shared/components/multilanguage-selector/multilanguage-selector.vue.d.ts +1 -1
- package/dist/shared/components/notifications/components/notification-container/index.d.ts +3 -3
- package/dist/shared/components/notifications/components/notification-container/index.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/user-dropdown-button.vue.d.ts.map +1 -1
- package/dist/shared/composables/useExternalWidgets.d.ts +3 -2
- package/dist/shared/composables/useExternalWidgets.d.ts.map +1 -1
- package/dist/shared/composables/useMenuExpanded.d.ts +6 -4
- package/dist/shared/composables/useMenuExpanded.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/InputField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/index.d.ts +11 -5
- package/dist/shared/modules/dynamic/index.d.ts.map +1 -1
- package/dist/shared/pages/ChangePasswordPage/plugin.d.ts +3 -1
- package/dist/shared/pages/ChangePasswordPage/plugin.d.ts.map +1 -1
- package/dist/shared/pages/ForgotPasswordPage/plugin.d.ts +3 -1
- package/dist/shared/pages/ForgotPasswordPage/plugin.d.ts.map +1 -1
- package/dist/shared/pages/InvitePage/plugin.d.ts +3 -1
- package/dist/shared/pages/InvitePage/plugin.d.ts.map +1 -1
- package/dist/shared/pages/LoginPage/plugin.d.ts +3 -1
- package/dist/shared/pages/LoginPage/plugin.d.ts.map +1 -1
- package/dist/shared/pages/ResetPasswordPage/plugin.d.ts +3 -1
- package/dist/shared/pages/ResetPasswordPage/plugin.d.ts.map +1 -1
- package/dist/tailwind.config.d.ts.map +1 -1
- package/dist/test-helpers.d.ts +219 -0
- package/dist/test-helpers.d.ts.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts +2 -2
- package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-button/types.d.ts +1 -1
- package/dist/ui/components/atoms/vc-button/types.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-material-icon.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-material-icon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-tooltip/vc-tooltip.vue.d.ts +2 -2
- package/dist/ui/components/atoms/vc-tooltip/vc-tooltip.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/index.d.ts +2 -1
- package/dist/ui/components/molecules/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-accordion/_internal/vc-accordion-item/vc-accordion-item.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-accordion/index.d.ts +5 -1
- package/dist/ui/components/molecules/vc-accordion/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-accordion/vc-accordion.vue.d.ts +9 -9
- package/dist/ui/components/molecules/vc-accordion/vc-accordion.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-checkbox-group/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-checkbox-group/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-checkbox-group/vc-checkbox-group.vue.d.ts +11 -17
- package/dist/ui/components/molecules/vc-checkbox-group/vc-checkbox-group.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-color-input/vc-color-input.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-date-picker/vc-date-picker.vue.d.ts +3 -3
- package/dist/ui/components/molecules/vc-date-picker/vc-date-picker.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-dropdown/_internal/VcDropdownItem.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-dropdown/_internal/VcDropdownItem.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-dropdown/index.d.ts +1 -0
- package/dist/ui/components/molecules/vc-dropdown/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-dropdown/vc-dropdown.vue.d.ts +3 -3
- package/dist/ui/components/molecules/vc-dropdown/vc-dropdown.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-dropdown-panel/vc-dropdown-panel.vue.d.ts +3 -3
- package/dist/ui/components/molecules/vc-dropdown-panel/vc-dropdown-panel.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 -10
- 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 +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/index.d.ts +1 -0
- package/dist/ui/components/molecules/vc-field/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-field/vc-field.vue.d.ts +3 -3
- 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 +2 -1
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +8 -7
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input-dropdown/index.d.ts +1 -0
- package/dist/ui/components/molecules/vc-input-dropdown/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.vue.d.ts +10 -60
- package/dist/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-menu/constants.d.ts +3 -0
- package/dist/ui/components/molecules/vc-menu/constants.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-menu/index.d.ts +9 -0
- package/dist/ui/components/molecules/vc-menu/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-menu/types.d.ts +28 -0
- package/dist/ui/components/molecules/vc-menu/types.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-menu/vc-menu-group.vue.d.ts +32 -0
- package/dist/ui/components/molecules/vc-menu/vc-menu-group.vue.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-menu/vc-menu-item.vue.d.ts +34 -0
- package/dist/ui/components/molecules/vc-menu/vc-menu-item.vue.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-menu/vc-menu.vue.d.ts +19 -0
- package/dist/ui/components/molecules/vc-menu/vc-menu.vue.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-multivalue/_internal/MultivalueTrigger.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-radio-button/index.d.ts +1 -0
- package/dist/ui/components/molecules/vc-radio-button/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-radio-button/vc-radio-button.vue.d.ts +11 -10
- package/dist/ui/components/molecules/vc-radio-button/vc-radio-button.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-radio-group/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-radio-group/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-radio-group/vc-radio-group.vue.d.ts +10 -16
- package/dist/ui/components/molecules/vc-radio-group/vc-radio-group.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-rating/index.d.ts +1 -0
- package/dist/ui/components/molecules/vc-rating/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts +4 -5
- package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-slider/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-slider/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts +3 -2
- 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 +5 -1
- package/dist/ui/components/molecules/vc-toast/vc-toast.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/layouts/DesktopLayout.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/menu/VcAppMenu.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/sidebar/SidebarCollapseButton.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/sidebar/SidebarContent.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/sidebar/SidebarHeader.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/sidebar/SidebarHeader.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/composables/useShellBootstrap.d.ts +2 -1
- package/dist/ui/components/organisms/vc-app/composables/useShellBootstrap.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/composables/useShellNavigation.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/composition/menu/index.d.ts +0 -2
- package/dist/ui/components/organisms/vc-app/composition/menu/index.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/BladeHeader.vue.d.ts +4 -2
- package/dist/ui/components/organisms/vc-blade/_internal/BladeHeader.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-image-upload/vc-image-upload.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-image-upload/vc-image-upload.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-sidebar/vc-sidebar.vue.d.ts +5 -5
- package/dist/ui/components/organisms/vc-sidebar/vc-sidebar.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/VcDataTable.vue.d.ts +7 -7
- package/dist/ui/components/organisms/vc-table/VcDataTable.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/components/ColumnFilter.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/components/ColumnFilter.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/components/DataTableCellRenderer.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/components/DataTableRow.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/components/DataTableRow.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/components/GlobalFiltersPanel.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-table/components/TableAddRowButton.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/components/TableAddRowButton.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/components/TableCheckbox.vue.d.ts +2 -14
- package/dist/ui/components/organisms/vc-table/components/TableCheckbox.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/components/TableColumnSwitcher.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/components/TableGroupRow.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-table/components/TableGroupRow.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/components/TableRow.vue.d.ts +4 -2
- package/dist/ui/components/organisms/vc-table/components/TableRow.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/components/TableRowActions.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/components/TableRowActions.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/components/TableSearchHeader.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/components/TableSearchHeader.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/components/VcColumn.vue.d.ts +6 -6
- package/dist/ui/components/organisms/vc-table/components/mobile/DataTableMobileCard.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-table/components/mobile/DataTableMobileView.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-table/components/mobile/MobileActionSheet.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-table/components/mobile/PullToRefresh.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/components/mobile/PullToRefresh.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/composables/useDataTableOrchestrator.d.ts +276 -0
- package/dist/ui/components/organisms/vc-table/composables/useDataTableOrchestrator.d.ts.map +1 -0
- package/dist/{vendor-dompurify-BGaRrCfO.js → vendor-dompurify-M2Bspgo5.js} +115 -115
- package/dist/vendor-intlify-core-base-BmIo1dK4.js +1141 -0
- package/dist/{vendor-intlify-message-compiler-C5QaCXcF.js → vendor-intlify-message-compiler-D9VOavkL.js} +315 -307
- package/dist/{vendor-intlify-shared-BrKs3jCC.js → vendor-intlify-shared-SCAs3ybf.js} +2 -2
- package/dist/{vendor-lodash-es-B5DE282z.js → vendor-lodash-es-BtnfG6xF.js} +15 -12
- package/dist/{vendor-lucide-vue-next-DadL7o0S.js → vendor-lucide-vue-next-CPgeDcFj.js} +16164 -12841
- package/dist/vendor-module-federation-enhanced-CV1CNdJy.js +22 -0
- package/dist/vendor-module-federation-error-codes-DdVwX11j.js +55 -0
- package/dist/vendor-module-federation-runtime-CVH_lWgu.js +91 -0
- package/dist/vendor-module-federation-runtime-core-D5G-s9nP.js +2202 -0
- package/dist/vendor-module-federation-runtime-tools-CQbtw-RJ.js +18 -0
- package/dist/vendor-module-federation-sdk-DM4AJRa7.js +683 -0
- package/dist/{vendor-prosemirror-gapcursor-BAwEBHgE.js → vendor-prosemirror-gapcursor-S3ikcYX6.js} +14 -14
- package/dist/{vendor-tiptap-core-BfrE48R3.js → vendor-tiptap-core-CDScflP1.js} +665 -628
- package/dist/{vendor-tiptap-extension-blockquote-DG5eEgV_.js → vendor-tiptap-extension-blockquote-ChRAwuus.js} +1 -1
- package/dist/{vendor-tiptap-extension-bold-CqPrSfgB.js → vendor-tiptap-extension-bold-BwoVpOFS.js} +1 -1
- package/dist/{vendor-tiptap-extension-code-Dj9HfL9x.js → vendor-tiptap-extension-code-DOlgG3ih.js} +1 -1
- package/dist/{vendor-tiptap-extension-code-block-YnlbQcbJ.js → vendor-tiptap-extension-code-block-CMeTs87s.js} +29 -29
- package/dist/{vendor-tiptap-extension-document-DyG2LNKD.js → vendor-tiptap-extension-document-DO8oly70.js} +1 -1
- package/dist/{vendor-tiptap-extension-hard-break-mzhqFFEq.js → vendor-tiptap-extension-hard-break-BgDl2sHf.js} +1 -1
- package/dist/{vendor-tiptap-extension-heading-DGnriW33.js → vendor-tiptap-extension-heading-DFuYlwHi.js} +1 -1
- package/dist/{vendor-tiptap-extension-horizontal-rule-pR7MlJHI.js → vendor-tiptap-extension-horizontal-rule-uyfttMp9.js} +1 -1
- package/dist/{vendor-tiptap-extension-image-BsXHNscz.js → vendor-tiptap-extension-image-DPeBaTE3.js} +1 -1
- package/dist/{vendor-tiptap-extension-italic-aoCbIXRj.js → vendor-tiptap-extension-italic-C9-3jNxO.js} +1 -1
- package/dist/{vendor-tiptap-extension-link-DiV7DqnY.js → vendor-tiptap-extension-link-B57VzStq.js} +1 -1
- package/dist/{vendor-tiptap-extension-list-BGYRWOyu.js → vendor-tiptap-extension-list-spvOF7Mz.js} +1 -1
- package/dist/{vendor-tiptap-extension-paragraph-BEBEvW1W.js → vendor-tiptap-extension-paragraph-Cj7auQB7.js} +1 -1
- package/dist/vendor-tiptap-extension-placeholder-DhwvmZ6Y.js +1 -0
- package/dist/{vendor-tiptap-extension-strike-6vob8J1A.js → vendor-tiptap-extension-strike-yj6UvnkO.js} +1 -1
- package/dist/vendor-tiptap-extension-table-cell-CQpTPSvF.js +1 -0
- package/dist/{vendor-tiptap-extension-table-CH-0UqG-.js → vendor-tiptap-extension-table-ex1kZQ-9.js} +1 -1
- package/dist/vendor-tiptap-extension-table-header-CQpTPSvF.js +1 -0
- package/dist/vendor-tiptap-extension-table-row-CQpTPSvF.js +1 -0
- package/dist/{vendor-tiptap-extension-text-CnqQVbB2.js → vendor-tiptap-extension-text-C8FG4KnI.js} +1 -1
- package/dist/{vendor-tiptap-extension-text-style-Bj4bCZI1.js → vendor-tiptap-extension-text-style-DsQDXowp.js} +1 -1
- package/dist/{vendor-tiptap-extension-underline-CVBZMhrs.js → vendor-tiptap-extension-underline-HB3fg6Dc.js} +1 -1
- package/dist/{vendor-tiptap-extensions-2ZbpCG7T.js → vendor-tiptap-extensions-CUGwjzl5.js} +2 -2
- package/dist/{vendor-tiptap-markdown-B7Wvo0s5.js → vendor-tiptap-markdown-DLzeP3KU.js} +1 -1
- package/dist/{vendor-tiptap-starter-kit-ipneJHYV.js → vendor-tiptap-starter-kit-C42PcJ7J.js} +17 -17
- package/dist/{vendor-tiptap-vue-3-IfJcIOl5.js → vendor-tiptap-vue-3-BxWCzu9Z.js} +1 -1
- package/dist/{vendor-vue-i18n-D0F0w-9Q.js → vendor-vue-i18n-DeO9Fa9I.js} +414 -405
- package/dist/vendor-vue-router-R3V0tq8_.js +6 -0
- package/dist/{vendor-vueuse-components-jqShV_Fz.js → vendor-vueuse-components-Be490f6P.js} +30 -30
- package/dist/{vendor-vueuse-core-D-DKRsy5.js → vendor-vueuse-core-BW8bO6-j.js} +17 -14
- package/dist/{vendor-vueuse-shared-Ch7WD-uK.js → vendor-vueuse-shared-bmkWEEYZ.js} +14 -14
- package/package.json +28 -19
- package/tailwind.config.ts +1 -0
- package/core/README.md +0 -365
- package/core/api/platform.ts +0 -9883
- package/core/composables/index.ts +0 -29
- package/core/composables/useApiClient/index.ts +0 -22
- package/core/composables/useAppBarMobileButtons/index.ts +0 -33
- package/core/composables/useAppBarWidget/index.test.ts +0 -86
- package/core/composables/useAppBarWidget/index.ts +0 -31
- package/core/composables/useAppInsights/index.ts +0 -56
- package/core/composables/useAssets/index.ts +0 -144
- package/core/composables/useAsync/index.test.ts +0 -137
- package/core/composables/useAsync/index.ts +0 -89
- package/core/composables/useBeforeUnload/index.ts +0 -25
- package/core/composables/useBlade/index.ts +0 -149
- package/core/composables/useBladeRegistry/index.test.ts +0 -192
- package/core/composables/useBladeRegistry/index.ts +0 -231
- package/core/composables/useBreadcrumbs/index.test.ts +0 -139
- package/core/composables/useBreadcrumbs/index.ts +0 -66
- package/core/composables/useConnectionStatus/index.ts +0 -48
- package/core/composables/useDashboard/index.test.ts +0 -86
- package/core/composables/useDashboard/index.ts +0 -51
- package/core/composables/useDynamicProperties/index.ts +0 -573
- package/core/composables/useErrorHandler/index.ts +0 -75
- package/core/composables/useFunctions/debounce.ts +0 -15
- package/core/composables/useFunctions/delay.ts +0 -3
- package/core/composables/useFunctions/index.ts +0 -20
- package/core/composables/useFunctions/once.ts +0 -11
- package/core/composables/useFunctions/sleep.ts +0 -3
- package/core/composables/useFunctions/throttle.ts +0 -13
- package/core/composables/useGlobalSearch/index.ts +0 -36
- package/core/composables/useGlobalSearch/useGlobalSearch.md +0 -263
- package/core/composables/useKeyboardNavigation/index.ts +0 -246
- package/core/composables/useLanguages/index.ts +0 -48
- package/core/composables/useLoading/index.ts +0 -9
- package/core/composables/useMenuService/index.test.ts +0 -86
- package/core/composables/useMenuService/index.ts +0 -43
- package/core/composables/useNotifications/index.ts +0 -200
- package/core/composables/usePermissions/index.ts +0 -30
- package/core/composables/useSettings/index.ts +0 -64
- package/core/composables/useSettingsMenu/index.test.ts +0 -86
- package/core/composables/useSettingsMenu/index.ts +0 -31
- package/core/composables/useSidebarState/index.ts +0 -90
- package/core/composables/useTheme/index.ts +0 -115
- package/core/composables/useToolbar/index.ts +0 -117
- package/core/composables/useUser/index.ts +0 -406
- package/core/composables/useUser/useUser.test.ts +0 -155
- package/core/composables/useUserManagement/index.ts +0 -45
- package/core/composables/useWebVitals/index.ts +0 -40
- package/core/composables/useWidgets/index.test.ts +0 -86
- package/core/composables/useWidgets/index.ts +0 -39
- package/core/constants/defaults.ts +0 -76
- package/core/constants/index.ts +0 -5
- package/core/constants/locale.ts +0 -78
- package/core/constants/ui.ts +0 -68
- package/core/directives/autofocus/index.ts +0 -9
- package/core/directives/index.ts +0 -2
- package/core/directives/loading/index.ts +0 -42
- package/core/directives/loading/styles.css +0 -71
- package/core/interceptors/index.ts +0 -142
- package/core/plugins/ai-agent/README.md +0 -336
- package/core/plugins/ai-agent/components/VcAiAgentPanel.vue +0 -125
- package/core/plugins/ai-agent/components/_internal/VcAiAgentHeader.vue +0 -102
- package/core/plugins/ai-agent/components/_internal/VcAiAgentIframe.vue +0 -107
- package/core/plugins/ai-agent/components/_internal/VcAiAgentLoader.vue +0 -72
- package/core/plugins/ai-agent/components/_internal/VcVirtoOzLogo.vue +0 -136
- package/core/plugins/ai-agent/components/index.ts +0 -1
- package/core/plugins/ai-agent/composables/index.ts +0 -4
- package/core/plugins/ai-agent/composables/useAiAgent.ts +0 -231
- package/core/plugins/ai-agent/composables/useAiAgentContext.ts +0 -285
- package/core/plugins/ai-agent/constants.ts +0 -89
- package/core/plugins/ai-agent/index.ts +0 -91
- package/core/plugins/ai-agent/services/ai-agent-service.ts +0 -592
- package/core/plugins/ai-agent/types.ts +0 -303
- package/core/plugins/extension-points/ExtensionPoint.vue +0 -95
- package/core/plugins/extension-points/defineExtensionPoint.ts +0 -29
- package/core/plugins/extension-points/index.ts +0 -11
- package/core/plugins/extension-points/store.ts +0 -54
- package/core/plugins/extension-points/types.ts +0 -28
- package/core/plugins/extension-points/useExtensionPoint.ts +0 -42
- package/core/plugins/global-error-handler/index.ts +0 -81
- package/core/plugins/i18n/index.ts +0 -11
- package/core/plugins/index.ts +0 -6
- package/core/plugins/modularity/README.md +0 -482
- package/core/plugins/modularity/index.ts +0 -208
- package/core/plugins/modularity/loader.ts +0 -631
- package/core/plugins/permissions/index.ts +0 -10
- package/core/plugins/signalR/index.ts +0 -126
- package/core/plugins/validation/index.ts +0 -1
- package/core/plugins/validation/rules.ts +0 -145
- package/core/services/_internal/createBladeScopedRegistry.test.ts +0 -130
- package/core/services/_internal/createBladeScopedRegistry.ts +0 -127
- package/core/services/_internal/createPreregistrationBus.test.ts +0 -227
- package/core/services/_internal/createPreregistrationBus.ts +0 -106
- package/core/services/_internal/createSimpleMapRegistry.test.ts +0 -82
- package/core/services/_internal/createSimpleMapRegistry.ts +0 -41
- package/core/services/_internal/index.ts +0 -3
- package/core/services/app-bar-menu-service.ts +0 -71
- package/core/services/app-bar-mobile-buttons-service.ts +0 -62
- package/core/services/app-bar-settings-service.test.ts +0 -153
- package/core/services/dashboard-service.ts +0 -110
- package/core/services/global-search-service/global-search-service.md +0 -28
- package/core/services/global-search-service/index.ts +0 -36
- package/core/services/index.ts +0 -11
- package/core/services/language-dashboard-service.test.ts +0 -183
- package/core/services/language-service.ts +0 -98
- package/core/services/menu-service.test.ts +0 -311
- package/core/services/menu-service.ts +0 -259
- package/core/services/settings-menu-service.ts +0 -61
- package/core/services/toolbar-service.ts +0 -111
- package/core/services/toolbar-widget-service.test.ts +0 -207
- package/core/services/widget-service.test.ts +0 -133
- package/core/services/widget-service.ts +0 -262
- package/core/types/index.ts +0 -312
- package/core/types/services.ts +0 -194
- package/core/utilities/camelToSnake.ts +0 -7
- package/core/utilities/camelize.ts +0 -5
- package/core/utilities/date/convertMomentFormat.test.ts +0 -60
- package/core/utilities/date/convertMomentFormat.ts +0 -30
- package/core/utilities/date/formatDate.test.ts +0 -60
- package/core/utilities/date/formatDate.ts +0 -31
- package/core/utilities/date/index.ts +0 -3
- package/core/utilities/date/resolveLocale.test.ts +0 -44
- package/core/utilities/date/resolveLocale.ts +0 -41
- package/core/utilities/error.ts +0 -89
- package/core/utilities/errorTypes.ts +0 -126
- package/core/utilities/generateId.ts +0 -3
- package/core/utilities/index.ts +0 -11
- package/core/utilities/kebabToCamel.ts +0 -7
- package/core/utilities/logger.ts +0 -120
- package/core/utilities/pendingErrorNotifications.ts +0 -64
- package/dist/core/composables/useAppBarWidget/index.test.d.ts +0 -2
- package/dist/core/composables/useAppBarWidget/index.test.d.ts.map +0 -1
- package/dist/core/composables/useAsync/index.test.d.ts +0 -2
- package/dist/core/composables/useAsync/index.test.d.ts.map +0 -1
- package/dist/core/composables/useBladeRegistry/index.test.d.ts +0 -2
- package/dist/core/composables/useBladeRegistry/index.test.d.ts.map +0 -1
- package/dist/core/composables/useBreadcrumbs/index.test.d.ts +0 -2
- package/dist/core/composables/useBreadcrumbs/index.test.d.ts.map +0 -1
- package/dist/core/composables/useDashboard/index.test.d.ts +0 -2
- package/dist/core/composables/useDashboard/index.test.d.ts.map +0 -1
- package/dist/core/composables/useMenuService/index.test.d.ts +0 -2
- package/dist/core/composables/useMenuService/index.test.d.ts.map +0 -1
- package/dist/core/composables/useSettingsMenu/index.test.d.ts +0 -2
- package/dist/core/composables/useSettingsMenu/index.test.d.ts.map +0 -1
- package/dist/core/composables/useUser/useUser.test.d.ts +0 -2
- package/dist/core/composables/useUser/useUser.test.d.ts.map +0 -1
- package/dist/core/composables/useWidgets/index.test.d.ts +0 -2
- package/dist/core/composables/useWidgets/index.test.d.ts.map +0 -1
- package/dist/core/plugins/modularity/loader.d.ts +0 -19
- package/dist/core/plugins/modularity/loader.d.ts.map +0 -1
- package/dist/core/services/_internal/createBladeScopedRegistry.test.d.ts +0 -2
- package/dist/core/services/_internal/createBladeScopedRegistry.test.d.ts.map +0 -1
- package/dist/core/services/_internal/createPreregistrationBus.test.d.ts +0 -2
- package/dist/core/services/_internal/createPreregistrationBus.test.d.ts.map +0 -1
- package/dist/core/services/_internal/createSimpleMapRegistry.test.d.ts +0 -2
- package/dist/core/services/_internal/createSimpleMapRegistry.test.d.ts.map +0 -1
- package/dist/core/services/app-bar-settings-service.test.d.ts +0 -2
- package/dist/core/services/app-bar-settings-service.test.d.ts.map +0 -1
- package/dist/core/services/language-dashboard-service.test.d.ts +0 -2
- package/dist/core/services/language-dashboard-service.test.d.ts.map +0 -1
- package/dist/core/services/menu-service.test.d.ts +0 -2
- package/dist/core/services/menu-service.test.d.ts.map +0 -1
- package/dist/core/services/toolbar-widget-service.test.d.ts +0 -2
- package/dist/core/services/toolbar-widget-service.test.d.ts.map +0 -1
- package/dist/core/services/widget-service.test.d.ts +0 -2
- package/dist/core/services/widget-service.test.d.ts.map +0 -1
- package/dist/core/utilities/date/convertMomentFormat.test.d.ts +0 -2
- package/dist/core/utilities/date/convertMomentFormat.test.d.ts.map +0 -1
- package/dist/core/utilities/date/formatDate.test.d.ts +0 -2
- package/dist/core/utilities/date/formatDate.test.d.ts.map +0 -1
- package/dist/core/utilities/date/resolveLocale.test.d.ts +0 -2
- package/dist/core/utilities/date/resolveLocale.test.d.ts.map +0 -1
- package/dist/index.css +0 -9
- package/dist/shared/components/blade-navigation/composables/useBladeMessaging.test.d.ts +0 -2
- package/dist/shared/components/blade-navigation/composables/useBladeMessaging.test.d.ts.map +0 -1
- package/dist/shared/components/blade-navigation/composables/useBladeStack.test.d.ts +0 -2
- package/dist/shared/components/blade-navigation/composables/useBladeStack.test.d.ts.map +0 -1
- package/dist/shared/components/blade-navigation/utils/restoreFromUrl.test.d.ts +0 -2
- package/dist/shared/components/blade-navigation/utils/restoreFromUrl.test.d.ts.map +0 -1
- package/dist/shared/components/blade-navigation/utils/urlSync.test.d.ts +0 -2
- package/dist/shared/components/blade-navigation/utils/urlSync.test.d.ts.map +0 -1
- package/dist/shared/components/dashboard-widget-card/dashboard-stat-item.test.d.ts +0 -2
- package/dist/shared/components/dashboard-widget-card/dashboard-stat-item.test.d.ts.map +0 -1
- package/dist/shared/components/dashboard-widget-card/dashboard-widget-card.test.d.ts +0 -2
- package/dist/shared/components/dashboard-widget-card/dashboard-widget-card.test.d.ts.map +0 -1
- package/dist/shared/utilities/formatBadgeCount.test.d.ts +0 -2
- package/dist/shared/utilities/formatBadgeCount.test.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-button/vc-button.a11y.test.d.ts +0 -2
- package/dist/ui/components/atoms/vc-button/vc-button.a11y.test.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-button/vc-button.test.d.ts +0 -2
- package/dist/ui/components/atoms/vc-button/vc-button.test.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.a11y.test.d.ts +0 -2
- package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.a11y.test.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.test.d.ts +0 -2
- package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.test.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-checkbox-group/vc-checkbox-group.test.d.ts +0 -2
- package/dist/ui/components/molecules/vc-checkbox-group/vc-checkbox-group.test.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-dropdown/vc-dropdown-item.test.d.ts +0 -2
- package/dist/ui/components/molecules/vc-dropdown/vc-dropdown-item.test.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-dropdown/vc-dropdown.test.d.ts +0 -2
- package/dist/ui/components/molecules/vc-dropdown/vc-dropdown.test.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-input/vc-input.a11y.test.d.ts +0 -2
- package/dist/ui/components/molecules/vc-input/vc-input.a11y.test.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-input/vc-input.test.d.ts +0 -2
- package/dist/ui/components/molecules/vc-input/vc-input.test.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-input-group/vc-input-group.test.d.ts +0 -2
- package/dist/ui/components/molecules/vc-input-group/vc-input-group.test.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-radio-group/vc-radio-group.test.d.ts +0 -2
- package/dist/ui/components/molecules/vc-radio-group/vc-radio-group.test.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-select/vc-select.test.d.ts +0 -2
- package/dist/ui/components/molecules/vc-select/vc-select.test.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.a11y.test.d.ts +0 -2
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.a11y.test.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-app/_internal/app-bar/components/AppHubContent.test.d.ts +0 -2
- package/dist/ui/components/organisms/vc-app/_internal/app-bar/components/AppHubContent.test.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-app/_internal/layouts/MobileLayout.test.d.ts +0 -2
- package/dist/ui/components/organisms/vc-app/_internal/layouts/MobileLayout.test.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-app/_internal/menu/VcAppMenu.test.d.ts +0 -2
- package/dist/ui/components/organisms/vc-app/_internal/menu/VcAppMenu.test.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-app/_internal/menu/VcAppMenuGroup.vue.d.ts +0 -21
- package/dist/ui/components/organisms/vc-app/_internal/menu/VcAppMenuGroup.vue.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-app/_internal/menu/VcAppMenuItem.vue.d.ts +0 -32
- package/dist/ui/components/organisms/vc-app/_internal/menu/VcAppMenuItem.vue.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-app/composables/useShellBootstrap.test.d.ts +0 -2
- package/dist/ui/components/organisms/vc-app/composables/useShellBootstrap.test.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ToolbarBaseButton.test.d.ts +0 -2
- package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ToolbarBaseButton.test.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-blade/_internal/widgets/WidgetDropdownItem.test.d.ts +0 -2
- package/dist/ui/components/organisms/vc-blade/_internal/widgets/WidgetDropdownItem.test.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-blade/utils.test.d.ts +0 -2
- package/dist/ui/components/organisms/vc-blade/utils.test.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.test.d.ts +0 -2
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.test.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-gallery/composables/useGalleryReorder.test.d.ts +0 -2
- package/dist/ui/components/organisms/vc-gallery/composables/useGalleryReorder.test.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-gallery/composables/useGalleryUpload.test.d.ts +0 -2
- package/dist/ui/components/organisms/vc-gallery/composables/useGalleryUpload.test.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-gallery/composables/useImageLoad.test.d.ts +0 -2
- package/dist/ui/components/organisms/vc-gallery/composables/useImageLoad.test.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.actions.test.d.ts +0 -2
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.actions.test.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-sidebar/vc-sidebar.test.d.ts +0 -2
- package/dist/ui/components/organisms/vc-sidebar/vc-sidebar.test.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-table/composables/useDataTableState.test.d.ts +0 -2
- package/dist/ui/components/organisms/vc-table/composables/useDataTableState.test.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-table/composables/useMobileCardLayout.test.d.ts +0 -2
- package/dist/ui/components/organisms/vc-table/composables/useMobileCardLayout.test.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-table/composables/useTableFilter.test.d.ts +0 -2
- package/dist/ui/components/organisms/vc-table/composables/useTableFilter.test.d.ts.map +0 -1
- package/dist/vendor-intlify-core-base-YZqJSEvl.js +0 -1130
- package/dist/vendor-tiptap-extension-placeholder-ZfoeEW0T.js +0 -1
- package/dist/vendor-tiptap-extension-table-cell-_uzaJkJG.js +0 -1
- package/dist/vendor-tiptap-extension-table-header-_uzaJkJG.js +0 -1
- package/dist/vendor-tiptap-extension-table-row-_uzaJkJG.js +0 -1
- package/shared/components/app-switcher/components/index.ts +0 -1
- package/shared/components/app-switcher/components/vc-app-switcher/index.ts +0 -1
- package/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue +0 -89
- package/shared/components/app-switcher/composables/index.ts +0 -1
- package/shared/components/app-switcher/composables/useAppSwitcher/index.ts +0 -53
- package/shared/components/app-switcher/index.ts +0 -14
- package/shared/components/blade-navigation/ARCHITECTURE.md +0 -420
- package/shared/components/blade-navigation/MIGRATION.md +0 -224
- package/shared/components/blade-navigation/components/index.ts +0 -2
- package/shared/components/blade-navigation/components/vc-blade-navigation/_internal/vc-mobile-back-button.vue +0 -78
- package/shared/components/blade-navigation/components/vc-blade-navigation/index.ts +0 -2
- package/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation-new.vue +0 -160
- package/shared/components/blade-navigation/components/vc-blade-slot/index.ts +0 -1
- package/shared/components/blade-navigation/components/vc-blade-slot/vc-blade-slot.vue +0 -143
- package/shared/components/blade-navigation/components/vc-blade-view/vc-blade-view.ts +0 -188
- package/shared/components/blade-navigation/composables/index.ts +0 -5
- package/shared/components/blade-navigation/composables/useBladeMessaging.test.ts +0 -189
- package/shared/components/blade-navigation/composables/useBladeMessaging.ts +0 -81
- package/shared/components/blade-navigation/composables/useBladeNavigationAdapter.ts +0 -513
- package/shared/components/blade-navigation/composables/useBladeStack.test.ts +0 -420
- package/shared/components/blade-navigation/composables/useBladeStack.ts +0 -335
- package/shared/components/blade-navigation/index.ts +0 -4
- package/shared/components/blade-navigation/plugin-v2.ts +0 -144
- package/shared/components/blade-navigation/types/index.ts +0 -247
- package/shared/components/blade-navigation/utils/restoreFromUrl.test.ts +0 -247
- package/shared/components/blade-navigation/utils/restoreFromUrl.ts +0 -84
- package/shared/components/blade-navigation/utils/urlSync.test.ts +0 -181
- package/shared/components/blade-navigation/utils/urlSync.ts +0 -151
- package/shared/components/change-password/change-password.vue +0 -231
- package/shared/components/change-password/index.ts +0 -10
- package/shared/components/change-password-button/change-password-button.stories.ts +0 -63
- package/shared/components/change-password-button/change-password-button.vue +0 -23
- package/shared/components/change-password-button/index.ts +0 -1
- package/shared/components/common/popup/vc-popup-base.vue +0 -133
- package/shared/components/common/popup/vc-popup-error.vue +0 -38
- package/shared/components/common/popup/vc-popup-info.vue +0 -38
- package/shared/components/common/popup/vc-popup-warning.vue +0 -42
- package/shared/components/dashboard-charts/ChartContainer.vue +0 -54
- package/shared/components/dashboard-charts/ChartLegend.vue +0 -40
- package/shared/components/dashboard-charts/ChartTooltip.vue +0 -43
- package/shared/components/dashboard-charts/DashboardBarChart.vue +0 -165
- package/shared/components/dashboard-charts/DashboardDonutChart.vue +0 -137
- package/shared/components/dashboard-charts/DashboardLineChart.vue +0 -170
- package/shared/components/dashboard-charts/chart-theme.scss +0 -19
- package/shared/components/dashboard-charts/chart-tooltip.scss +0 -48
- package/shared/components/dashboard-charts/chart-utils.ts +0 -189
- package/shared/components/dashboard-charts/dashboard-charts.stories.ts +0 -393
- package/shared/components/dashboard-charts/index.ts +0 -7
- package/shared/components/dashboard-charts/types.ts +0 -7
- package/shared/components/dashboard-widget-card/dashboard-feed-list.vue +0 -12
- package/shared/components/dashboard-widget-card/dashboard-feed-row.vue +0 -28
- package/shared/components/dashboard-widget-card/dashboard-stat-item.test.ts +0 -38
- package/shared/components/dashboard-widget-card/dashboard-stat-item.vue +0 -55
- package/shared/components/dashboard-widget-card/dashboard-widget-card.stories.ts +0 -202
- package/shared/components/dashboard-widget-card/dashboard-widget-card.test.ts +0 -72
- package/shared/components/dashboard-widget-card/dashboard-widget-card.vue +0 -163
- package/shared/components/dashboard-widget-card/index.ts +0 -4
- package/shared/components/draggable-dashboard/DraggableDashboard.vue +0 -70
- package/shared/components/draggable-dashboard/GridstackDashboard.vue +0 -315
- package/shared/components/draggable-dashboard/composables/useGridstack.ts +0 -380
- package/shared/components/draggable-dashboard/composables/useGridstackAdapter.ts +0 -245
- package/shared/components/draggable-dashboard/draggable-dashboard.stories.ts +0 -175
- package/shared/components/draggable-dashboard/index.ts +0 -34
- package/shared/components/draggable-dashboard/types.ts +0 -96
- package/shared/components/error-interceptor/index.ts +0 -18
- package/shared/components/error-interceptor/interceptor.ts +0 -66
- package/shared/components/generic-dropdown/generic-dropdown.vue +0 -122
- package/shared/components/generic-dropdown/index.ts +0 -7
- package/shared/components/index.ts +0 -27
- package/shared/components/language-selector/index.ts +0 -10
- package/shared/components/language-selector/language-selector.stories.ts +0 -44
- package/shared/components/language-selector/language-selector.vue +0 -72
- package/shared/components/logout-button/index.ts +0 -1
- package/shared/components/logout-button/logout-button.stories.ts +0 -61
- package/shared/components/logout-button/logout-button.vue +0 -30
- package/shared/components/multilanguage-selector/index.ts +0 -1
- package/shared/components/multilanguage-selector/multilanguage-selector.stories.ts +0 -90
- package/shared/components/multilanguage-selector/multilanguage-selector.vue +0 -191
- package/shared/components/notification-dropdown/_internal/notification/index.ts +0 -1
- package/shared/components/notification-dropdown/_internal/notification/notification.vue +0 -78
- package/shared/components/notification-dropdown/index.ts +0 -10
- package/shared/components/notification-dropdown/notification-dropdown.stories.ts +0 -99
- package/shared/components/notification-dropdown/notification-dropdown.vue +0 -40
- package/shared/components/notification-template/index.ts +0 -10
- package/shared/components/notification-template/notification-template.stories.ts +0 -95
- package/shared/components/notification-template/notification-template.vue +0 -131
- package/shared/components/notifications/components/index.ts +0 -1
- package/shared/components/notifications/components/notification-container/index.ts +0 -153
- package/shared/components/notifications/composables/index.ts +0 -2
- package/shared/components/notifications/composables/useContainer/index.ts +0 -292
- package/shared/components/notifications/composables/useInstance/index.ts +0 -79
- package/shared/components/notifications/core/index.ts +0 -1
- package/shared/components/notifications/core/notification.ts +0 -202
- package/shared/components/notifications/index.ts +0 -6
- package/shared/components/notifications/styles/index.scss +0 -133
- package/shared/components/notifications/types/index.ts +0 -33
- package/shared/components/popup-handler/components/index.ts +0 -1
- package/shared/components/popup-handler/components/vc-popup-container/index.ts +0 -3
- package/shared/components/popup-handler/components/vc-popup-container/vc-popup-container.vue +0 -49
- package/shared/components/popup-handler/composables/index.ts +0 -1
- package/shared/components/popup-handler/composables/usePopup/index.ts +0 -209
- package/shared/components/popup-handler/index.ts +0 -19
- package/shared/components/popup-handler/keys.ts +0 -4
- package/shared/components/popup-handler/plugin.ts +0 -25
- package/shared/components/popup-handler/types/index.ts +0 -25
- package/shared/components/popup-handler/utils/index.ts +0 -9
- package/shared/components/settings-menu/index.ts +0 -1
- package/shared/components/settings-menu/settings-menu.stories.ts +0 -104
- package/shared/components/settings-menu/settings-menu.vue +0 -59
- package/shared/components/settings-menu-item/index.ts +0 -1
- package/shared/components/settings-menu-item/settings-menu-item.stories.ts +0 -194
- package/shared/components/settings-menu-item/settings-menu-item.vue +0 -168
- package/shared/components/sidebar/index.ts +0 -7
- package/shared/components/sidebar/sidebar.vue +0 -80
- package/shared/components/sign-in/external-provider.vue +0 -49
- package/shared/components/sign-in/external-providers.vue +0 -26
- package/shared/components/sign-in/index.ts +0 -1
- package/shared/components/sign-in/useExternalProvider.ts +0 -103
- package/shared/components/theme-selector/index.ts +0 -1
- package/shared/components/theme-selector/theme-selector.stories.ts +0 -56
- package/shared/components/theme-selector/theme-selector.vue +0 -51
- package/shared/components/user-dropdown-button/_internal/user-info.vue +0 -114
- package/shared/components/user-dropdown-button/_internal/user-sidebar.vue +0 -50
- package/shared/components/user-dropdown-button/index.ts +0 -10
- package/shared/components/user-dropdown-button/user-dropdown-button.stories.ts +0 -153
- package/shared/components/user-dropdown-button/user-dropdown-button.vue +0 -142
- package/shared/composables/index.ts +0 -5
- package/shared/composables/useExternalWidgets.ts +0 -107
- package/shared/composables/useMenuExpanded.ts +0 -64
- package/shared/composables/useModificationTracker/index.ts +0 -116
- package/shared/composables/useTableSelection.ts +0 -151
- package/shared/composables/useTableSort.ts +0 -107
- package/shared/index.ts +0 -24
- package/shared/modules/assets/components/assets-details/assets-details.vue +0 -238
- package/shared/modules/assets/components/assets-details/index.ts +0 -3
- package/shared/modules/assets/components/index.ts +0 -1
- package/shared/modules/assets/index.ts +0 -12
- package/shared/modules/assets-manager/components/assets-manager/assets-manager.vue +0 -442
- package/shared/modules/assets-manager/components/assets-manager/index.ts +0 -3
- package/shared/modules/assets-manager/components/index.ts +0 -1
- package/shared/modules/assets-manager/index.ts +0 -13
- package/shared/modules/dynamic/components/FIELD_MAP.ts +0 -53
- package/shared/modules/dynamic/components/SchemaRender.ts +0 -102
- package/shared/modules/dynamic/components/factories.ts +0 -242
- package/shared/modules/dynamic/components/fields/Button.ts +0 -44
- package/shared/modules/dynamic/components/fields/Card.ts +0 -119
- package/shared/modules/dynamic/components/fields/Checkbox.ts +0 -53
- package/shared/modules/dynamic/components/fields/ContentField.ts +0 -33
- package/shared/modules/dynamic/components/fields/CustomComponent.ts +0 -29
- package/shared/modules/dynamic/components/fields/DynamicProperty.ts +0 -154
- package/shared/modules/dynamic/components/fields/EditorField.ts +0 -46
- package/shared/modules/dynamic/components/fields/Fieldset.ts +0 -66
- package/shared/modules/dynamic/components/fields/GalleryField.ts +0 -162
- package/shared/modules/dynamic/components/fields/ImageField.ts +0 -35
- package/shared/modules/dynamic/components/fields/InputCurrency.ts +0 -79
- package/shared/modules/dynamic/components/fields/InputField.ts +0 -81
- package/shared/modules/dynamic/components/fields/MultivalueField.ts +0 -68
- package/shared/modules/dynamic/components/fields/RadioButtonGroup.ts +0 -83
- package/shared/modules/dynamic/components/fields/RatingField.ts +0 -28
- package/shared/modules/dynamic/components/fields/SelectField.ts +0 -72
- package/shared/modules/dynamic/components/fields/StatusField.ts +0 -110
- package/shared/modules/dynamic/components/fields/SwitchField.ts +0 -29
- package/shared/modules/dynamic/components/fields/Table.ts +0 -194
- package/shared/modules/dynamic/components/fields/TextareaField.ts +0 -46
- package/shared/modules/dynamic/components/fields/ValidationField.ts +0 -54
- package/shared/modules/dynamic/components/fields/VideoField.ts +0 -30
- package/shared/modules/dynamic/components/fields/props.ts +0 -39
- package/shared/modules/dynamic/components/index.ts +0 -4
- package/shared/modules/dynamic/composables/index.ts +0 -4
- package/shared/modules/dynamic/composables/useDynamicViewsUtils/index.ts +0 -46
- package/shared/modules/dynamic/composables/useFilterBuilder/index.ts +0 -441
- package/shared/modules/dynamic/composables/useTableTemplates/index.ts +0 -67
- package/shared/modules/dynamic/composables/useToolbarReducer/index.ts +0 -70
- package/shared/modules/dynamic/factories/base/useDetailsFactory.ts +0 -145
- package/shared/modules/dynamic/factories/base/useListFactory.ts +0 -69
- package/shared/modules/dynamic/factories/index.ts +0 -4
- package/shared/modules/dynamic/factories/types/index.ts +0 -220
- package/shared/modules/dynamic/helpers/getters.ts +0 -12
- package/shared/modules/dynamic/helpers/methodHandler.ts +0 -22
- package/shared/modules/dynamic/helpers/nodeBuilder.ts +0 -242
- package/shared/modules/dynamic/helpers/override.ts +0 -153
- package/shared/modules/dynamic/helpers/safeIn.ts +0 -6
- package/shared/modules/dynamic/helpers/setters.ts +0 -24
- package/shared/modules/dynamic/helpers/unrefNested.ts +0 -14
- package/shared/modules/dynamic/helpers/unwrapInterpolation.ts +0 -16
- package/shared/modules/dynamic/index.ts +0 -314
- package/shared/modules/dynamic/keys.ts +0 -3
- package/shared/modules/dynamic/pages/dynamic-blade-form.vue +0 -575
- package/shared/modules/dynamic/pages/dynamic-blade-list.vue +0 -755
- package/shared/modules/dynamic/pages/index.ts +0 -4
- package/shared/modules/dynamic/types/index.ts +0 -1220
- package/shared/modules/dynamic/types/models.ts +0 -186
- package/shared/modules/index.ts +0 -3
- package/shared/pages/ChangePasswordPage/components/change-password/ChangePassword.vue +0 -209
- package/shared/pages/ChangePasswordPage/components/change-password/change-password.stories.ts +0 -44
- package/shared/pages/ChangePasswordPage/components/change-password/index.ts +0 -3
- package/shared/pages/ChangePasswordPage/components/index.ts +0 -1
- package/shared/pages/ChangePasswordPage/index.ts +0 -1
- package/shared/pages/ChangePasswordPage/plugin.ts +0 -4
- package/shared/pages/ForgotPasswordPage/components/forgot-password/ForgotPassword.vue +0 -155
- package/shared/pages/ForgotPasswordPage/components/forgot-password/forgot-password.stories.ts +0 -38
- package/shared/pages/ForgotPasswordPage/components/forgot-password/index.ts +0 -3
- package/shared/pages/ForgotPasswordPage/components/index.ts +0 -1
- package/shared/pages/ForgotPasswordPage/index.ts +0 -1
- package/shared/pages/ForgotPasswordPage/plugin.ts +0 -4
- package/shared/pages/InvitePage/components/index.ts +0 -1
- package/shared/pages/InvitePage/components/invite/Invite.vue +0 -182
- package/shared/pages/InvitePage/components/invite/index.ts +0 -3
- package/shared/pages/InvitePage/components/invite/invite.stories.ts +0 -64
- package/shared/pages/InvitePage/index.ts +0 -1
- package/shared/pages/InvitePage/plugin.ts +0 -4
- package/shared/pages/LoginPage/components/index.ts +0 -1
- package/shared/pages/LoginPage/components/login/Login.vue +0 -226
- package/shared/pages/LoginPage/components/login/README.md +0 -52
- package/shared/pages/LoginPage/components/login/index.ts +0 -3
- package/shared/pages/LoginPage/components/login/login.stories.ts +0 -52
- package/shared/pages/LoginPage/index.ts +0 -1
- package/shared/pages/LoginPage/plugin.ts +0 -4
- package/shared/pages/ResetPasswordPage/components/index.ts +0 -1
- package/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue +0 -176
- package/shared/pages/ResetPasswordPage/components/reset-password/index.ts +0 -3
- package/shared/pages/ResetPasswordPage/components/reset-password/reset-password.stories.ts +0 -64
- package/shared/pages/ResetPasswordPage/index.ts +0 -1
- package/shared/pages/ResetPasswordPage/plugin.ts +0 -4
- package/shared/pages/_storybook-helpers.ts +0 -71
- package/shared/pages/index.ts +0 -5
- package/shared/pages/plugin.ts +0 -5
- package/shared/utilities/assets.ts +0 -43
- package/shared/utilities/colorUtils.ts +0 -64
- package/shared/utilities/formatBadgeCount.test.ts +0 -25
- package/shared/utilities/formatBadgeCount.ts +0 -15
- package/shared/utilities/index.ts +0 -4
- package/shared/utilities/vueUtils.ts +0 -50
- package/ui/components/atoms/index.ts +0 -21
- package/ui/components/atoms/vc-badge/index.ts +0 -1
- package/ui/components/atoms/vc-badge/vc-badge.stories.ts +0 -522
- package/ui/components/atoms/vc-badge/vc-badge.vue +0 -353
- package/ui/components/atoms/vc-banner/index.ts +0 -1
- package/ui/components/atoms/vc-banner/vc-banner.stories.ts +0 -259
- package/ui/components/atoms/vc-banner/vc-banner.vue +0 -225
- package/ui/components/atoms/vc-button/index.ts +0 -3
- package/ui/components/atoms/vc-button/types.ts +0 -28
- package/ui/components/atoms/vc-button/vc-button-group.stories.ts +0 -172
- package/ui/components/atoms/vc-button/vc-button-group.vue +0 -101
- package/ui/components/atoms/vc-button/vc-button.a11y.test.ts +0 -46
- package/ui/components/atoms/vc-button/vc-button.stories.ts +0 -431
- package/ui/components/atoms/vc-button/vc-button.test.ts +0 -75
- package/ui/components/atoms/vc-button/vc-button.vue +0 -355
- package/ui/components/atoms/vc-card/index.ts +0 -3
- package/ui/components/atoms/vc-card/vc-card.stories.ts +0 -342
- package/ui/components/atoms/vc-card/vc-card.vue +0 -217
- package/ui/components/atoms/vc-col/index.ts +0 -1
- package/ui/components/atoms/vc-col/vc-col.stories.ts +0 -164
- package/ui/components/atoms/vc-col/vc-col.vue +0 -34
- package/ui/components/atoms/vc-container/index.ts +0 -10
- package/ui/components/atoms/vc-container/vc-container.stories.ts +0 -219
- package/ui/components/atoms/vc-container/vc-container.vue +0 -96
- package/ui/components/atoms/vc-hint/index.ts +0 -10
- package/ui/components/atoms/vc-hint/vc-hint.stories.ts +0 -144
- package/ui/components/atoms/vc-hint/vc-hint.vue +0 -42
- package/ui/components/atoms/vc-icon/README.md +0 -273
- package/ui/components/atoms/vc-icon/composables/index.ts +0 -2
- package/ui/components/atoms/vc-icon/composables/use-icon-type.ts +0 -83
- package/ui/components/atoms/vc-icon/composables/use-icon.ts +0 -129
- package/ui/components/atoms/vc-icon/icons/MenuBurgerIcon.vue +0 -24
- package/ui/components/atoms/vc-icon/icons/index.ts +0 -1
- package/ui/components/atoms/vc-icon/index.ts +0 -3
- package/ui/components/atoms/vc-icon/types.ts +0 -36
- package/ui/components/atoms/vc-icon/vc-bootstrap-icon.vue +0 -124
- package/ui/components/atoms/vc-icon/vc-fontawesome-icon.vue +0 -143
- package/ui/components/atoms/vc-icon/vc-icon.stories.ts +0 -818
- package/ui/components/atoms/vc-icon/vc-icon.vue +0 -609
- package/ui/components/atoms/vc-icon/vc-lucide-icon.vue +0 -199
- package/ui/components/atoms/vc-icon/vc-material-icon.vue +0 -128
- package/ui/components/atoms/vc-icon/vc-svg-icon.vue +0 -168
- package/ui/components/atoms/vc-image/index.ts +0 -1
- package/ui/components/atoms/vc-image/vc-image.stories.ts +0 -309
- package/ui/components/atoms/vc-image/vc-image.vue +0 -173
- package/ui/components/atoms/vc-label/index.ts +0 -1
- package/ui/components/atoms/vc-label/vc-label.stories.ts +0 -137
- package/ui/components/atoms/vc-label/vc-label.vue +0 -132
- package/ui/components/atoms/vc-link/index.ts +0 -10
- package/ui/components/atoms/vc-link/vc-link.stories.ts +0 -154
- package/ui/components/atoms/vc-link/vc-link.vue +0 -61
- package/ui/components/atoms/vc-loading/index.ts +0 -3
- package/ui/components/atoms/vc-loading/vc-loading.vue +0 -71
- package/ui/components/atoms/vc-progress/index.ts +0 -10
- package/ui/components/atoms/vc-progress/vc-progress.stories.ts +0 -182
- package/ui/components/atoms/vc-progress/vc-progress.vue +0 -74
- package/ui/components/atoms/vc-row/index.ts +0 -1
- package/ui/components/atoms/vc-row/vc-row.stories.ts +0 -143
- package/ui/components/atoms/vc-row/vc-row.vue +0 -27
- package/ui/components/atoms/vc-scrollable-container/index.ts +0 -1
- package/ui/components/atoms/vc-scrollable-container/vc-scrollable-container.vue +0 -119
- package/ui/components/atoms/vc-skeleton/index.ts +0 -1
- package/ui/components/atoms/vc-skeleton/vc-skeleton.stories.ts +0 -246
- package/ui/components/atoms/vc-skeleton/vc-skeleton.vue +0 -115
- package/ui/components/atoms/vc-status/index.ts +0 -1
- package/ui/components/atoms/vc-status/vc-status.stories.ts +0 -235
- package/ui/components/atoms/vc-status/vc-status.vue +0 -131
- package/ui/components/atoms/vc-status-icon/index.ts +0 -1
- package/ui/components/atoms/vc-status-icon/vc-status-icon.stories.ts +0 -129
- package/ui/components/atoms/vc-status-icon/vc-status-icon.vue +0 -48
- package/ui/components/atoms/vc-tooltip/index.ts +0 -1
- package/ui/components/atoms/vc-tooltip/vc-tooltip.stories.ts +0 -409
- package/ui/components/atoms/vc-tooltip/vc-tooltip.vue +0 -301
- package/ui/components/atoms/vc-video/index.ts +0 -1
- package/ui/components/atoms/vc-video/vc-video.stories.ts +0 -150
- package/ui/components/atoms/vc-video/vc-video.vue +0 -88
- package/ui/components/atoms/vc-widget/index.ts +0 -3
- package/ui/components/atoms/vc-widget/vc-widget.stories.ts +0 -285
- package/ui/components/atoms/vc-widget/vc-widget.vue +0 -174
- package/ui/components/index.ts +0 -8
- package/ui/components/molecules/index.ts +0 -26
- package/ui/components/molecules/vc-accordion/_internal/vc-accordion-item/vc-accordion-item.vue +0 -216
- package/ui/components/molecules/vc-accordion/index.ts +0 -11
- package/ui/components/molecules/vc-accordion/vc-accordion.stories.ts +0 -526
- package/ui/components/molecules/vc-accordion/vc-accordion.vue +0 -176
- package/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue +0 -98
- package/ui/components/molecules/vc-breadcrumbs/index.ts +0 -1
- package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.stories.ts +0 -509
- package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue +0 -176
- package/ui/components/molecules/vc-checkbox/index.ts +0 -3
- package/ui/components/molecules/vc-checkbox/vc-checkbox.a11y.test.ts +0 -39
- package/ui/components/molecules/vc-checkbox/vc-checkbox.stories.ts +0 -356
- package/ui/components/molecules/vc-checkbox/vc-checkbox.test.ts +0 -75
- package/ui/components/molecules/vc-checkbox/vc-checkbox.vue +0 -355
- package/ui/components/molecules/vc-checkbox-group/index.ts +0 -2
- package/ui/components/molecules/vc-checkbox-group/vc-checkbox-group.stories.ts +0 -258
- package/ui/components/molecules/vc-checkbox-group/vc-checkbox-group.test.ts +0 -40
- package/ui/components/molecules/vc-checkbox-group/vc-checkbox-group.vue +0 -103
- package/ui/components/molecules/vc-color-input/index.ts +0 -1
- package/ui/components/molecules/vc-color-input/vc-color-input.stories.ts +0 -152
- package/ui/components/molecules/vc-color-input/vc-color-input.vue +0 -398
- package/ui/components/molecules/vc-date-picker/index.ts +0 -1
- package/ui/components/molecules/vc-date-picker/vc-date-picker.stories.ts +0 -168
- package/ui/components/molecules/vc-date-picker/vc-date-picker.vue +0 -427
- package/ui/components/molecules/vc-dropdown/_internal/VcDropdownItem.vue +0 -78
- package/ui/components/molecules/vc-dropdown/index.ts +0 -2
- package/ui/components/molecules/vc-dropdown/vc-dropdown-item.test.ts +0 -59
- package/ui/components/molecules/vc-dropdown/vc-dropdown.stories.ts +0 -394
- package/ui/components/molecules/vc-dropdown/vc-dropdown.test.ts +0 -54
- package/ui/components/molecules/vc-dropdown/vc-dropdown.vue +0 -546
- package/ui/components/molecules/vc-dropdown-panel/index.ts +0 -1
- package/ui/components/molecules/vc-dropdown-panel/panel-anchor-registry.ts +0 -5
- package/ui/components/molecules/vc-dropdown-panel/vc-dropdown-panel.vue +0 -326
- package/ui/components/molecules/vc-editor/_internal/extensions/font-size.ts +0 -59
- package/ui/components/molecules/vc-editor/_internal/toolbar-types.ts +0 -57
- package/ui/components/molecules/vc-editor/_internal/vc-editor-button.vue +0 -103
- package/ui/components/molecules/vc-editor/_internal/vc-editor-custom-button.vue +0 -79
- package/ui/components/molecules/vc-editor/_internal/vc-editor-font-selector.vue +0 -215
- package/ui/components/molecules/vc-editor/_internal/vc-editor-toolbar.vue +0 -316
- package/ui/components/molecules/vc-editor/index.ts +0 -6
- package/ui/components/molecules/vc-editor/vc-editor.stories.ts +0 -417
- package/ui/components/molecules/vc-editor/vc-editor.vue +0 -833
- package/ui/components/molecules/vc-field/_internal/vc-field-type/vc-field-type.vue +0 -96
- package/ui/components/molecules/vc-field/index.ts +0 -1
- package/ui/components/molecules/vc-field/vc-field.stories.ts +0 -179
- package/ui/components/molecules/vc-field/vc-field.vue +0 -119
- package/ui/components/molecules/vc-file-upload/index.ts +0 -1
- package/ui/components/molecules/vc-file-upload/vc-file-upload.stories.ts +0 -472
- package/ui/components/molecules/vc-file-upload/vc-file-upload.vue +0 -271
- package/ui/components/molecules/vc-form/index.ts +0 -10
- package/ui/components/molecules/vc-form/vc-form.stories.ts +0 -168
- package/ui/components/molecules/vc-form/vc-form.vue +0 -38
- package/ui/components/molecules/vc-input/index.ts +0 -1
- package/ui/components/molecules/vc-input/vc-input.a11y.test.ts +0 -57
- package/ui/components/molecules/vc-input/vc-input.stories.ts +0 -1004
- package/ui/components/molecules/vc-input/vc-input.test.ts +0 -114
- package/ui/components/molecules/vc-input/vc-input.vue +0 -731
- package/ui/components/molecules/vc-input-currency/index.ts +0 -1
- package/ui/components/molecules/vc-input-currency/vc-input-currency.stories.ts +0 -532
- package/ui/components/molecules/vc-input-currency/vc-input-currency.vue +0 -199
- package/ui/components/molecules/vc-input-dropdown/index.ts +0 -3
- package/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.stories.ts +0 -761
- package/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.vue +0 -305
- package/ui/components/molecules/vc-input-group/context.ts +0 -10
- package/ui/components/molecules/vc-input-group/index.ts +0 -2
- package/ui/components/molecules/vc-input-group/vc-input-group.stories.ts +0 -355
- package/ui/components/molecules/vc-input-group/vc-input-group.test.ts +0 -39
- package/ui/components/molecules/vc-input-group/vc-input-group.vue +0 -173
- package/ui/components/molecules/vc-multivalue/_internal/MultivalueDropdown.vue +0 -216
- package/ui/components/molecules/vc-multivalue/_internal/MultivalueTrigger.vue +0 -207
- package/ui/components/molecules/vc-multivalue/composables/index.ts +0 -6
- package/ui/components/molecules/vc-multivalue/composables/useMultivalueColor.ts +0 -50
- package/ui/components/molecules/vc-multivalue/composables/useMultivalueDropdown.ts +0 -126
- package/ui/components/molecules/vc-multivalue/composables/useMultivalueInput.ts +0 -64
- package/ui/components/molecules/vc-multivalue/composables/useMultivalueMode.ts +0 -32
- package/ui/components/molecules/vc-multivalue/composables/useMultivalueOptions.ts +0 -27
- package/ui/components/molecules/vc-multivalue/composables/useMultivalueValues.ts +0 -50
- package/ui/components/molecules/vc-multivalue/index.ts +0 -1
- package/ui/components/molecules/vc-multivalue/vc-multivalue.stories.ts +0 -561
- package/ui/components/molecules/vc-multivalue/vc-multivalue.vue +0 -547
- package/ui/components/molecules/vc-pagination/index.ts +0 -3
- package/ui/components/molecules/vc-pagination/vc-pagination.stories.ts +0 -259
- package/ui/components/molecules/vc-pagination/vc-pagination.vue +0 -244
- package/ui/components/molecules/vc-radio-button/index.ts +0 -1
- package/ui/components/molecules/vc-radio-button/vc-radio-button.stories.ts +0 -283
- package/ui/components/molecules/vc-radio-button/vc-radio-button.vue +0 -195
- package/ui/components/molecules/vc-radio-group/index.ts +0 -2
- package/ui/components/molecules/vc-radio-group/vc-radio-group.stories.ts +0 -248
- package/ui/components/molecules/vc-radio-group/vc-radio-group.test.ts +0 -51
- package/ui/components/molecules/vc-radio-group/vc-radio-group.vue +0 -92
- package/ui/components/molecules/vc-rating/index.ts +0 -1
- package/ui/components/molecules/vc-rating/vc-rating.stories.ts +0 -363
- package/ui/components/molecules/vc-rating/vc-rating.vue +0 -128
- package/ui/components/molecules/vc-select/_internal/SelectDropdown.vue +0 -200
- package/ui/components/molecules/vc-select/_internal/SelectTrigger.vue +0 -301
- package/ui/components/molecules/vc-select/composables/index.ts +0 -7
- package/ui/components/molecules/vc-select/composables/useSelectDefaultValue.ts +0 -106
- package/ui/components/molecules/vc-select/composables/useSelectDropdown.ts +0 -88
- package/ui/components/molecules/vc-select/composables/useSelectOptions.ts +0 -125
- package/ui/components/molecules/vc-select/composables/useSelectSearch.ts +0 -83
- package/ui/components/molecules/vc-select/composables/useSelectSelection.ts +0 -170
- package/ui/components/molecules/vc-select/composables/useSelectValueMapping.ts +0 -57
- package/ui/components/molecules/vc-select/composables/useSelectVisibility.ts +0 -60
- package/ui/components/molecules/vc-select/index.ts +0 -2
- package/ui/components/molecules/vc-select/vc-select.stories.ts +0 -1730
- package/ui/components/molecules/vc-select/vc-select.test.ts +0 -89
- package/ui/components/molecules/vc-select/vc-select.vue +0 -862
- package/ui/components/molecules/vc-slider/index.ts +0 -13
- package/ui/components/molecules/vc-slider/vc-slider.stories.ts +0 -224
- package/ui/components/molecules/vc-slider/vc-slider.vue +0 -148
- package/ui/components/molecules/vc-switch/index.ts +0 -1
- package/ui/components/molecules/vc-switch/vc-switch.stories.ts +0 -324
- package/ui/components/molecules/vc-switch/vc-switch.vue +0 -237
- package/ui/components/molecules/vc-textarea/index.ts +0 -1
- package/ui/components/molecules/vc-textarea/vc-textarea.a11y.test.ts +0 -44
- package/ui/components/molecules/vc-textarea/vc-textarea.stories.ts +0 -326
- package/ui/components/molecules/vc-textarea/vc-textarea.vue +0 -229
- package/ui/components/molecules/vc-toast/index.ts +0 -1
- package/ui/components/molecules/vc-toast/vc-toast.stories.ts +0 -559
- package/ui/components/molecules/vc-toast/vc-toast.vue +0 -649
- package/ui/components/organisms/blade-navigation-v2.stories.ts +0 -611
- package/ui/components/organisms/index.ts +0 -9
- package/ui/components/organisms/vc-app/_internal/app-bar/components/AppBarMobileActions.vue +0 -128
- package/ui/components/organisms/vc-app/_internal/app-bar/components/AppBarOverlay.vue +0 -91
- package/ui/components/organisms/vc-app/_internal/app-bar/components/AppBarWidgetContent.vue +0 -40
- package/ui/components/organisms/vc-app/_internal/app-bar/components/AppBarWidgetItem.vue +0 -154
- package/ui/components/organisms/vc-app/_internal/app-bar/components/AppBarWidgetsMenu.vue +0 -110
- package/ui/components/organisms/vc-app/_internal/app-bar/components/AppHubContent.test.ts +0 -174
- package/ui/components/organisms/vc-app/_internal/app-bar/components/AppHubContent.vue +0 -730
- package/ui/components/organisms/vc-app/_internal/app-bar/components/AppHubPopover.vue +0 -79
- package/ui/components/organisms/vc-app/_internal/app-bar/components/MenuSidebar.vue +0 -196
- package/ui/components/organisms/vc-app/_internal/app-bar/composables/useAppBarMobileActions.ts +0 -50
- package/ui/components/organisms/vc-app/_internal/app-bar/composables/useAppBarState.ts +0 -35
- package/ui/components/organisms/vc-app/_internal/app-bar/composables/useAppBarWidgets.ts +0 -25
- package/ui/components/organisms/vc-app/_internal/app-bar/composables/useAppHub.ts +0 -70
- package/ui/components/organisms/vc-app/_internal/app-bar/composables/useToggleableContent.ts +0 -67
- package/ui/components/organisms/vc-app/_internal/layouts/DesktopLayout.vue +0 -365
- package/ui/components/organisms/vc-app/_internal/layouts/MobileLayout.test.ts +0 -151
- package/ui/components/organisms/vc-app/_internal/layouts/MobileLayout.vue +0 -587
- package/ui/components/organisms/vc-app/_internal/menu/VcAppMenu.test.ts +0 -43
- package/ui/components/organisms/vc-app/_internal/menu/VcAppMenu.vue +0 -158
- package/ui/components/organisms/vc-app/_internal/menu/VcAppMenuGroup.vue +0 -160
- package/ui/components/organisms/vc-app/_internal/menu/VcAppMenuItem.vue +0 -216
- package/ui/components/organisms/vc-app/_internal/menu/composables/useBadge.ts +0 -82
- package/ui/components/organisms/vc-app/_internal/menu/composables/useMenuActiveState.ts +0 -41
- package/ui/components/organisms/vc-app/_internal/sidebar/SidebarCollapseButton.vue +0 -47
- package/ui/components/organisms/vc-app/_internal/sidebar/SidebarContent.vue +0 -123
- package/ui/components/organisms/vc-app/_internal/sidebar/SidebarHeader.vue +0 -242
- package/ui/components/organisms/vc-app/composables/useShellBootstrap.test.ts +0 -222
- package/ui/components/organisms/vc-app/composables/useShellBootstrap.ts +0 -101
- package/ui/components/organisms/vc-app/composables/useShellLifecycle.ts +0 -39
- package/ui/components/organisms/vc-app/composables/useShellNavigation.ts +0 -57
- package/ui/components/organisms/vc-app/composition/README.md +0 -78
- package/ui/components/organisms/vc-app/composition/app-bar/index.ts +0 -6
- package/ui/components/organisms/vc-app/composition/index.ts +0 -6
- package/ui/components/organisms/vc-app/composition/layouts/index.ts +0 -2
- package/ui/components/organisms/vc-app/composition/menu/index.ts +0 -6
- package/ui/components/organisms/vc-app/composition/shell/index.ts +0 -3
- package/ui/components/organisms/vc-app/composition/sidebar/index.ts +0 -3
- package/ui/components/organisms/vc-app/composition/state/index.ts +0 -6
- package/ui/components/organisms/vc-app/index.ts +0 -2
- package/ui/components/organisms/vc-app/vc-app-shell.stories.ts +0 -762
- package/ui/components/organisms/vc-app/vc-app.vue +0 -252
- package/ui/components/organisms/vc-auth-layout/index.ts +0 -1
- package/ui/components/organisms/vc-auth-layout/vc-auth-layout.vue +0 -193
- package/ui/components/organisms/vc-blade/_internal/BladeContentSkeleton.vue +0 -113
- package/ui/components/organisms/vc-blade/_internal/BladeHeader.vue +0 -263
- package/ui/components/organisms/vc-blade/_internal/BladeHeaderSkeleton.vue +0 -52
- package/ui/components/organisms/vc-blade/_internal/BladeStatusBanners.vue +0 -195
- package/ui/components/organisms/vc-blade/_internal/BladeToolbar.vue +0 -73
- package/ui/components/organisms/vc-blade/_internal/BladeToolbarSkeleton.vue +0 -34
- package/ui/components/organisms/vc-blade/_internal/composables/useBladeError.ts +0 -44
- package/ui/components/organisms/vc-blade/_internal/composables/useToolbarRegistration.ts +0 -116
- package/ui/components/organisms/vc-blade/_internal/toolbar/ToolbarBaseButton.test.ts +0 -79
- package/ui/components/organisms/vc-blade/_internal/toolbar/ToolbarBaseButton.vue +0 -135
- package/ui/components/organisms/vc-blade/_internal/toolbar/ToolbarCircleButton.vue +0 -101
- package/ui/components/organisms/vc-blade/_internal/toolbar/ToolbarDesktop.vue +0 -125
- package/ui/components/organisms/vc-blade/_internal/toolbar/ToolbarMobile.vue +0 -417
- package/ui/components/organisms/vc-blade/_internal/toolbar/toolbar-button-props.ts +0 -14
- package/ui/components/organisms/vc-blade/_internal/widgets/WidgetContainer.vue +0 -38
- package/ui/components/organisms/vc-blade/_internal/widgets/WidgetContainerDesktop.vue +0 -125
- package/ui/components/organisms/vc-blade/_internal/widgets/WidgetContainerMobile.vue +0 -114
- package/ui/components/organisms/vc-blade/_internal/widgets/WidgetDropdownItem.test.ts +0 -56
- package/ui/components/organisms/vc-blade/_internal/widgets/WidgetDropdownItem.vue +0 -91
- package/ui/components/organisms/vc-blade/constants.ts +0 -19
- package/ui/components/organisms/vc-blade/index.ts +0 -1
- package/ui/components/organisms/vc-blade/utils.test.ts +0 -82
- package/ui/components/organisms/vc-blade/utils.ts +0 -48
- package/ui/components/organisms/vc-blade/vc-blade.stories.ts +0 -502
- package/ui/components/organisms/vc-blade/vc-blade.vue +0 -312
- package/ui/components/organisms/vc-dynamic-property/index.ts +0 -1
- package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +0 -618
- package/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.test.ts +0 -48
- package/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue +0 -244
- package/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue +0 -351
- package/ui/components/organisms/vc-gallery/composables/index.ts +0 -4
- package/ui/components/organisms/vc-gallery/composables/useGalleryPreview.ts +0 -26
- package/ui/components/organisms/vc-gallery/composables/useGalleryReorder.test.ts +0 -73
- package/ui/components/organisms/vc-gallery/composables/useGalleryReorder.ts +0 -183
- package/ui/components/organisms/vc-gallery/composables/useGalleryUpload.test.ts +0 -89
- package/ui/components/organisms/vc-gallery/composables/useGalleryUpload.ts +0 -43
- package/ui/components/organisms/vc-gallery/composables/useImageLoad.test.ts +0 -34
- package/ui/components/organisms/vc-gallery/composables/useImageLoad.ts +0 -26
- package/ui/components/organisms/vc-gallery/index.ts +0 -3
- package/ui/components/organisms/vc-gallery/vc-gallery.actions.test.ts +0 -76
- package/ui/components/organisms/vc-gallery/vc-gallery.stories.ts +0 -99
- package/ui/components/organisms/vc-gallery/vc-gallery.vue +0 -424
- package/ui/components/organisms/vc-image-upload/index.ts +0 -1
- package/ui/components/organisms/vc-image-upload/vc-image-upload.stories.ts +0 -47
- package/ui/components/organisms/vc-image-upload/vc-image-upload.vue +0 -251
- package/ui/components/organisms/vc-popup/index.ts +0 -3
- package/ui/components/organisms/vc-popup/vc-popup.stories.ts +0 -504
- package/ui/components/organisms/vc-popup/vc-popup.vue +0 -405
- package/ui/components/organisms/vc-sidebar/index.ts +0 -1
- package/ui/components/organisms/vc-sidebar/vc-sidebar.stories.ts +0 -251
- package/ui/components/organisms/vc-sidebar/vc-sidebar.test.ts +0 -125
- package/ui/components/organisms/vc-sidebar/vc-sidebar.vue +0 -787
- package/ui/components/organisms/vc-table/VcDataTable.vue +0 -1856
- package/ui/components/organisms/vc-table/VcTableAdapter.vue +0 -574
- package/ui/components/organisms/vc-table/_internal/vc-table-base-header/vc-table-base-header.vue +0 -134
- package/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue +0 -451
- package/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue +0 -123
- package/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue +0 -38
- package/ui/components/organisms/vc-table/_internal/vc-table-empty/vc-table-empty.vue +0 -88
- package/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue +0 -238
- package/ui/components/organisms/vc-table/base/BaseVcDataTable.ts +0 -541
- package/ui/components/organisms/vc-table/components/ColumnFilter.vue +0 -459
- package/ui/components/organisms/vc-table/components/ColumnSwitcherButton.vue +0 -43
- package/ui/components/organisms/vc-table/components/DataTableBody.vue +0 -363
- package/ui/components/organisms/vc-table/components/DataTableCellRenderer.vue +0 -396
- package/ui/components/organisms/vc-table/components/DataTableHeader.vue +0 -373
- package/ui/components/organisms/vc-table/components/DataTableRow.vue +0 -370
- package/ui/components/organisms/vc-table/components/GlobalFiltersButton.vue +0 -58
- package/ui/components/organisms/vc-table/components/GlobalFiltersPanel.vue +0 -440
- package/ui/components/organisms/vc-table/components/Table.vue +0 -101
- package/ui/components/organisms/vc-table/components/TableActions.vue +0 -125
- package/ui/components/organisms/vc-table/components/TableAddRowButton.vue +0 -55
- package/ui/components/organisms/vc-table/components/TableBody.vue +0 -79
- package/ui/components/organisms/vc-table/components/TableCell.vue +0 -160
- package/ui/components/organisms/vc-table/components/TableCheckbox.vue +0 -78
- package/ui/components/organisms/vc-table/components/TableColumnSwitcher.vue +0 -150
- package/ui/components/organisms/vc-table/components/TableEmpty.vue +0 -69
- package/ui/components/organisms/vc-table/components/TableFooter.vue +0 -13
- package/ui/components/organisms/vc-table/components/TableGroupRow.vue +0 -130
- package/ui/components/organisms/vc-table/components/TableHead.vue +0 -311
- package/ui/components/organisms/vc-table/components/TableHeader.vue +0 -13
- package/ui/components/organisms/vc-table/components/TableResizeHandle.vue +0 -125
- package/ui/components/organisms/vc-table/components/TableRow.vue +0 -283
- package/ui/components/organisms/vc-table/components/TableRowActions.vue +0 -495
- package/ui/components/organisms/vc-table/components/TableSearchHeader.vue +0 -233
- package/ui/components/organisms/vc-table/components/TableSelectAllBar.vue +0 -135
- package/ui/components/organisms/vc-table/components/VcColumn.vue +0 -255
- package/ui/components/organisms/vc-table/components/_internal/SlotProxy.ts +0 -20
- package/ui/components/organisms/vc-table/components/_internal/TableSkeletonRows.vue +0 -110
- package/ui/components/organisms/vc-table/components/cells/CellDate.vue +0 -52
- package/ui/components/organisms/vc-table/components/cells/CellDateAgo.vue +0 -48
- package/ui/components/organisms/vc-table/components/cells/CellDefault.vue +0 -90
- package/ui/components/organisms/vc-table/components/cells/CellEditableWrapper.vue +0 -47
- package/ui/components/organisms/vc-table/components/cells/CellHtml.vue +0 -62
- package/ui/components/organisms/vc-table/components/cells/CellImage.vue +0 -28
- package/ui/components/organisms/vc-table/components/cells/CellLink.vue +0 -18
- package/ui/components/organisms/vc-table/components/cells/CellMoney.vue +0 -120
- package/ui/components/organisms/vc-table/components/cells/CellNumber.vue +0 -113
- package/ui/components/organisms/vc-table/components/cells/CellStatus.vue +0 -18
- package/ui/components/organisms/vc-table/components/cells/CellStatusIcon.vue +0 -20
- package/ui/components/organisms/vc-table/components/cells/DynamicCellRenderer.vue +0 -164
- package/ui/components/organisms/vc-table/components/cells/index.ts +0 -11
- package/ui/components/organisms/vc-table/components/index.ts +0 -39
- package/ui/components/organisms/vc-table/components/mobile/DataTableMobileCard.vue +0 -672
- package/ui/components/organisms/vc-table/components/mobile/DataTableMobileView.vue +0 -251
- package/ui/components/organisms/vc-table/components/mobile/MobileActionSheet.vue +0 -163
- package/ui/components/organisms/vc-table/components/mobile/MobileCellRenderer.vue +0 -68
- package/ui/components/organisms/vc-table/components/mobile/PullToRefresh.vue +0 -353
- package/ui/components/organisms/vc-table/components/mobile/index.ts +0 -6
- package/ui/components/organisms/vc-table/composables/index.ts +0 -49
- package/ui/components/organisms/vc-table/composables/useCellBase.ts +0 -114
- package/ui/components/organisms/vc-table/composables/useCellRegistry.ts +0 -130
- package/ui/components/organisms/vc-table/composables/useColumnFilter.ts +0 -158
- package/ui/components/organisms/vc-table/composables/useDataProcessing.ts +0 -239
- package/ui/components/organisms/vc-table/composables/useDataTableState.test.ts +0 -78
- package/ui/components/organisms/vc-table/composables/useDataTableState.ts +0 -343
- package/ui/components/organisms/vc-table/composables/useMobileCardLayout.test.ts +0 -81
- package/ui/components/organisms/vc-table/composables/useMobileCardLayout.ts +0 -345
- package/ui/components/organisms/vc-table/composables/useTableColumns.ts +0 -276
- package/ui/components/organisms/vc-table/composables/useTableColumnsReorder.ts +0 -175
- package/ui/components/organisms/vc-table/composables/useTableColumnsResize.ts +0 -311
- package/ui/components/organisms/vc-table/composables/useTableContext.ts +0 -16
- package/ui/components/organisms/vc-table/composables/useTableEditing.ts +0 -385
- package/ui/components/organisms/vc-table/composables/useTableExpansion.ts +0 -159
- package/ui/components/organisms/vc-table/composables/useTableFilter.test.ts +0 -43
- package/ui/components/organisms/vc-table/composables/useTableFilter.ts +0 -131
- package/ui/components/organisms/vc-table/composables/useTableInlineEdit.ts +0 -306
- package/ui/components/organisms/vc-table/composables/useTableRowGrouping.ts +0 -310
- package/ui/components/organisms/vc-table/composables/useTableRowReorder.ts +0 -227
- package/ui/components/organisms/vc-table/composables/useTableSelectionV2.ts +0 -388
- package/ui/components/organisms/vc-table/composables/useTableSort.ts +0 -221
- package/ui/components/organisms/vc-table/composables/useTableSwipe.ts +0 -32
- package/ui/components/organisms/vc-table/composables/useVirtualScroll.ts +0 -286
- package/ui/components/organisms/vc-table/index.ts +0 -68
- package/ui/components/organisms/vc-table/keys.ts +0 -20
- package/ui/components/organisms/vc-table/types.ts +0 -856
- package/ui/components/organisms/vc-table/utils/ColumnCollector.ts +0 -137
- package/ui/components/organisms/vc-table/utils/deepClone.ts +0 -46
- package/ui/components/organisms/vc-table/utils/index.ts +0 -19
- package/ui/components/organisms/vc-table/vc-data-table.stories.ts +0 -5178
- package/ui/composables/README.md +0 -160
- package/ui/composables/index.ts +0 -6
- package/ui/composables/useAdaptiveItems.ts +0 -347
- package/ui/composables/useCollapsible.ts +0 -73
- package/ui/composables/useFloatingPosition.ts +0 -94
- package/ui/composables/useFormField.ts +0 -57
- package/ui/composables/useScrollArrows.ts +0 -64
- package/ui/composables/useTeleportTarget.ts +0 -37
- package/ui/types/form-field.ts +0 -44
- package/ui/types/index.ts +0 -21
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { f as
|
|
2
|
-
import { c as
|
|
3
|
-
import { N as nt, E as
|
|
4
|
-
import { D as
|
|
5
|
-
import { l as
|
|
6
|
-
import { E as
|
|
7
|
-
import { k as
|
|
8
|
-
var
|
|
1
|
+
import { f as me, c as gt, T as ge, e as ve, l as ye, j as _t, b as Q, R as be, a as we } from "./vendor-prosemirror-transform-BUjWd5Tb.js";
|
|
2
|
+
import { c as ke, d as Me, e as xe, j as Se, a as Ee, b as Te, f as Ae, g as Ce, h as Pe, l as $e, i as Ne, n as Re, s as ze, k as Ie, m as De, o as Oe, p as _e, q as Tt, w as Be } from "./vendor-prosemirror-commands-Bv4ChObl.js";
|
|
3
|
+
import { N as nt, E as je, S as j, T as P, P as $, a as O, A as Le } from "./vendor-prosemirror-state-IeimrELV.js";
|
|
4
|
+
import { D as He, d as Bt, F as D, N as Fe, c as ut, S as Ve } from "./vendor-prosemirror-model-DAA3avbR.js";
|
|
5
|
+
import { l as We, s as Ue, w as Ke } from "./vendor-prosemirror-schema-list-BNJkECdS.js";
|
|
6
|
+
import { E as qe } from "./vendor-prosemirror-view-DFpBkGRq.js";
|
|
7
|
+
import { k as Je } from "./vendor-prosemirror-keymap-CAfQyvJ7.js";
|
|
8
|
+
var Xe = Object.defineProperty, vt = (e, t) => {
|
|
9
9
|
for (var n in t)
|
|
10
|
-
|
|
10
|
+
Xe(e, n, { get: t[n], enumerable: !0 });
|
|
11
11
|
};
|
|
12
12
|
function rt(e) {
|
|
13
13
|
const { state: t, transaction: n } = e;
|
|
@@ -48,8 +48,8 @@ var st = class {
|
|
|
48
48
|
const { rawCommands: e, editor: t, state: n } = this, { view: r } = t, { tr: s } = n, o = this.buildProps(s);
|
|
49
49
|
return Object.fromEntries(
|
|
50
50
|
Object.entries(e).map(([i, a]) => [i, (...l) => {
|
|
51
|
-
const
|
|
52
|
-
return !s.getMeta("preventDispatch") && !this.hasCustomState && r.dispatch(s),
|
|
51
|
+
const u = a(...l)(o);
|
|
52
|
+
return !s.getMeta("preventDispatch") && !this.hasCustomState && r.dispatch(s), u;
|
|
53
53
|
}])
|
|
54
54
|
);
|
|
55
55
|
}
|
|
@@ -60,16 +60,16 @@ var st = class {
|
|
|
60
60
|
return () => this.createCan();
|
|
61
61
|
}
|
|
62
62
|
createChain(e, t = !0) {
|
|
63
|
-
const { rawCommands: n, editor: r, state: s } = this, { view: o } = r, i = [], a = !!e, c = e || s.tr, l = () => (!a && t && !c.getMeta("preventDispatch") && !this.hasCustomState && o.dispatch(c), i.every((
|
|
63
|
+
const { rawCommands: n, editor: r, state: s } = this, { view: o } = r, i = [], a = !!e, c = e || s.tr, l = () => (!a && t && !c.getMeta("preventDispatch") && !this.hasCustomState && o.dispatch(c), i.every((d) => d === !0)), u = {
|
|
64
64
|
...Object.fromEntries(
|
|
65
|
-
Object.entries(n).map(([
|
|
65
|
+
Object.entries(n).map(([d, p]) => [d, (...h) => {
|
|
66
66
|
const m = this.buildProps(c, t), g = p(...h)(m);
|
|
67
|
-
return i.push(g),
|
|
67
|
+
return i.push(g), u;
|
|
68
68
|
}])
|
|
69
69
|
),
|
|
70
70
|
run: l
|
|
71
71
|
};
|
|
72
|
-
return
|
|
72
|
+
return u;
|
|
73
73
|
}
|
|
74
74
|
createCan(e) {
|
|
75
75
|
const { rawCommands: t, state: n } = this, r = !1, s = e || n.tr, o = this.buildProps(s, r);
|
|
@@ -101,95 +101,95 @@ var st = class {
|
|
|
101
101
|
};
|
|
102
102
|
return i;
|
|
103
103
|
}
|
|
104
|
-
},
|
|
105
|
-
vt(
|
|
106
|
-
blur: () =>
|
|
107
|
-
clearContent: () =>
|
|
104
|
+
}, jt = {};
|
|
105
|
+
vt(jt, {
|
|
106
|
+
blur: () => Ye,
|
|
107
|
+
clearContent: () => Qe,
|
|
108
108
|
clearNodes: () => Ze,
|
|
109
|
-
command: () =>
|
|
110
|
-
createParagraphNear: () =>
|
|
111
|
-
cut: () =>
|
|
112
|
-
deleteCurrentNode: () =>
|
|
113
|
-
deleteNode: () =>
|
|
114
|
-
deleteRange: () =>
|
|
115
|
-
deleteSelection: () =>
|
|
116
|
-
enter: () =>
|
|
117
|
-
exitCode: () =>
|
|
118
|
-
extendMarkRange: () =>
|
|
119
|
-
first: () =>
|
|
120
|
-
focus: () =>
|
|
121
|
-
forEach: () =>
|
|
122
|
-
insertContent: () =>
|
|
123
|
-
insertContentAt: () =>
|
|
124
|
-
joinBackward: () =>
|
|
125
|
-
joinDown: () =>
|
|
126
|
-
joinForward: () =>
|
|
127
|
-
joinItemBackward: () =>
|
|
128
|
-
joinItemForward: () =>
|
|
129
|
-
joinTextblockBackward: () =>
|
|
130
|
-
joinTextblockForward: () =>
|
|
131
|
-
joinUp: () =>
|
|
132
|
-
keyboardShortcut: () =>
|
|
133
|
-
lift: () =>
|
|
134
|
-
liftEmptyBlock: () =>
|
|
135
|
-
liftListItem: () =>
|
|
136
|
-
newlineInCode: () =>
|
|
137
|
-
resetAttributes: () =>
|
|
138
|
-
scrollIntoView: () =>
|
|
139
|
-
selectAll: () =>
|
|
140
|
-
selectNodeBackward: () =>
|
|
141
|
-
selectNodeForward: () =>
|
|
142
|
-
selectParentNode: () =>
|
|
143
|
-
selectTextblockEnd: () =>
|
|
144
|
-
selectTextblockStart: () =>
|
|
145
|
-
setContent: () =>
|
|
146
|
-
setMark: () =>
|
|
147
|
-
setMeta: () =>
|
|
148
|
-
setNode: () =>
|
|
149
|
-
setNodeSelection: () =>
|
|
150
|
-
setTextDirection: () =>
|
|
151
|
-
setTextSelection: () =>
|
|
152
|
-
sinkListItem: () =>
|
|
153
|
-
splitBlock: () =>
|
|
154
|
-
splitListItem: () =>
|
|
155
|
-
toggleList: () =>
|
|
156
|
-
toggleMark: () =>
|
|
157
|
-
toggleNode: () =>
|
|
158
|
-
toggleWrap: () =>
|
|
159
|
-
undoInputRule: () =>
|
|
160
|
-
unsetAllMarks: () =>
|
|
161
|
-
unsetMark: () =>
|
|
162
|
-
unsetTextDirection: () =>
|
|
163
|
-
updateAttributes: () =>
|
|
164
|
-
wrapIn: () =>
|
|
165
|
-
wrapInList: () =>
|
|
109
|
+
command: () => Ge,
|
|
110
|
+
createParagraphNear: () => tn,
|
|
111
|
+
cut: () => en,
|
|
112
|
+
deleteCurrentNode: () => nn,
|
|
113
|
+
deleteNode: () => rn,
|
|
114
|
+
deleteRange: () => sn,
|
|
115
|
+
deleteSelection: () => on,
|
|
116
|
+
enter: () => an,
|
|
117
|
+
exitCode: () => cn,
|
|
118
|
+
extendMarkRange: () => ln,
|
|
119
|
+
first: () => dn,
|
|
120
|
+
focus: () => fn,
|
|
121
|
+
forEach: () => pn,
|
|
122
|
+
insertContent: () => hn,
|
|
123
|
+
insertContentAt: () => vn,
|
|
124
|
+
joinBackward: () => wn,
|
|
125
|
+
joinDown: () => bn,
|
|
126
|
+
joinForward: () => kn,
|
|
127
|
+
joinItemBackward: () => Mn,
|
|
128
|
+
joinItemForward: () => xn,
|
|
129
|
+
joinTextblockBackward: () => Sn,
|
|
130
|
+
joinTextblockForward: () => En,
|
|
131
|
+
joinUp: () => yn,
|
|
132
|
+
keyboardShortcut: () => An,
|
|
133
|
+
lift: () => Cn,
|
|
134
|
+
liftEmptyBlock: () => Pn,
|
|
135
|
+
liftListItem: () => $n,
|
|
136
|
+
newlineInCode: () => Nn,
|
|
137
|
+
resetAttributes: () => Rn,
|
|
138
|
+
scrollIntoView: () => zn,
|
|
139
|
+
selectAll: () => In,
|
|
140
|
+
selectNodeBackward: () => Dn,
|
|
141
|
+
selectNodeForward: () => On,
|
|
142
|
+
selectParentNode: () => _n,
|
|
143
|
+
selectTextblockEnd: () => Bn,
|
|
144
|
+
selectTextblockStart: () => jn,
|
|
145
|
+
setContent: () => Ln,
|
|
146
|
+
setMark: () => ar,
|
|
147
|
+
setMeta: () => cr,
|
|
148
|
+
setNode: () => lr,
|
|
149
|
+
setNodeSelection: () => dr,
|
|
150
|
+
setTextDirection: () => ur,
|
|
151
|
+
setTextSelection: () => fr,
|
|
152
|
+
sinkListItem: () => pr,
|
|
153
|
+
splitBlock: () => hr,
|
|
154
|
+
splitListItem: () => mr,
|
|
155
|
+
toggleList: () => gr,
|
|
156
|
+
toggleMark: () => vr,
|
|
157
|
+
toggleNode: () => yr,
|
|
158
|
+
toggleWrap: () => br,
|
|
159
|
+
undoInputRule: () => wr,
|
|
160
|
+
unsetAllMarks: () => kr,
|
|
161
|
+
unsetMark: () => Mr,
|
|
162
|
+
unsetTextDirection: () => xr,
|
|
163
|
+
updateAttributes: () => Sr,
|
|
164
|
+
wrapIn: () => Er,
|
|
165
|
+
wrapInList: () => Tr
|
|
166
166
|
});
|
|
167
|
-
var
|
|
167
|
+
var Ye = () => ({ editor: e, view: t }) => (requestAnimationFrame(() => {
|
|
168
168
|
var n;
|
|
169
169
|
e.isDestroyed || (t.dom.blur(), (n = window?.getSelection()) == null || n.removeAllRanges());
|
|
170
|
-
}), !0),
|
|
170
|
+
}), !0), Qe = (e = !0) => ({ commands: t }) => t.setContent("", { emitUpdate: e }), Ze = () => ({ state: e, tr: t, dispatch: n }) => {
|
|
171
171
|
const { selection: r } = t, { ranges: s } = r;
|
|
172
172
|
return n && s.forEach(({ $from: o, $to: i }) => {
|
|
173
173
|
e.doc.nodesBetween(o.pos, i.pos, (a, c) => {
|
|
174
174
|
if (a.type.isText)
|
|
175
175
|
return;
|
|
176
|
-
const { doc: l, mapping:
|
|
176
|
+
const { doc: l, mapping: u } = t, d = l.resolve(u.map(c)), p = l.resolve(u.map(c + a.nodeSize)), f = d.blockRange(p);
|
|
177
177
|
if (!f)
|
|
178
178
|
return;
|
|
179
|
-
const h =
|
|
179
|
+
const h = ye(f);
|
|
180
180
|
if (a.type.isTextblock) {
|
|
181
|
-
const { defaultType: m } =
|
|
181
|
+
const { defaultType: m } = d.parent.contentMatchAt(d.index());
|
|
182
182
|
t.setNodeMarkup(f.start, m);
|
|
183
183
|
}
|
|
184
184
|
(h || h === 0) && t.lift(f, h);
|
|
185
185
|
});
|
|
186
186
|
}), !0;
|
|
187
|
-
},
|
|
187
|
+
}, Ge = (e) => (t) => e(t), tn = () => ({ state: e, dispatch: t }) => ke(e, t), en = (e, t) => ({ editor: n, tr: r }) => {
|
|
188
188
|
const { state: s } = n, o = s.doc.slice(e.from, e.to);
|
|
189
189
|
r.deleteRange(e.from, e.to);
|
|
190
190
|
const i = r.mapping.map(t);
|
|
191
191
|
return r.insert(i, o.content), r.setSelection(new P(r.doc.resolve(Math.max(i - 1, 0)))), !0;
|
|
192
|
-
},
|
|
192
|
+
}, nn = () => ({ tr: e, dispatch: t }) => {
|
|
193
193
|
const { selection: n } = e, r = n.$anchor.node();
|
|
194
194
|
if (r.content.size > 0)
|
|
195
195
|
return !1;
|
|
@@ -212,7 +212,7 @@ function T(e, t) {
|
|
|
212
212
|
}
|
|
213
213
|
return e;
|
|
214
214
|
}
|
|
215
|
-
var
|
|
215
|
+
var rn = (e) => ({ tr: t, state: n, dispatch: r }) => {
|
|
216
216
|
const s = T(e, n.schema), o = t.selection.$anchor;
|
|
217
217
|
for (let i = o.depth; i > 0; i -= 1)
|
|
218
218
|
if (o.node(i).type === s) {
|
|
@@ -223,10 +223,10 @@ var nn = (e) => ({ tr: t, state: n, dispatch: r }) => {
|
|
|
223
223
|
return !0;
|
|
224
224
|
}
|
|
225
225
|
return !1;
|
|
226
|
-
},
|
|
226
|
+
}, sn = (e) => ({ tr: t, dispatch: n }) => {
|
|
227
227
|
const { from: r, to: s } = e;
|
|
228
228
|
return n && t.delete(r, s), !0;
|
|
229
|
-
},
|
|
229
|
+
}, on = () => ({ state: e, dispatch: t }) => Me(e, t), an = () => ({ commands: e }) => e.keyboardShortcut("Enter"), cn = () => ({ state: e, dispatch: t }) => xe(e, t);
|
|
230
230
|
function yt(e) {
|
|
231
231
|
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
232
232
|
}
|
|
@@ -234,7 +234,7 @@ function G(e, t, n = { strict: !0 }) {
|
|
|
234
234
|
const r = Object.keys(t);
|
|
235
235
|
return r.length ? r.every((s) => n.strict ? t[s] === e[s] : yt(t[s]) ? t[s].test(e[s]) : t[s] === e[s]) : !0;
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function Lt(e, t, n = {}) {
|
|
238
238
|
return e.find((r) => r.type === t && G(
|
|
239
239
|
// Only check equality for the attributes that are provided
|
|
240
240
|
Object.fromEntries(Object.keys(n).map((s) => [s, r.attrs[s]])),
|
|
@@ -242,14 +242,14 @@ function jt(e, t, n = {}) {
|
|
|
242
242
|
));
|
|
243
243
|
}
|
|
244
244
|
function At(e, t, n = {}) {
|
|
245
|
-
return !!
|
|
245
|
+
return !!Lt(e, t, n);
|
|
246
246
|
}
|
|
247
247
|
function bt(e, t, n) {
|
|
248
248
|
var r;
|
|
249
249
|
if (!e || !t)
|
|
250
250
|
return;
|
|
251
251
|
let s = e.parent.childAfter(e.parentOffset);
|
|
252
|
-
if ((!s.node || !s.node.marks.some((
|
|
252
|
+
if ((!s.node || !s.node.marks.some((u) => u.type === t)) && (s = e.parent.childBefore(e.parentOffset)), !s.node || !s.node.marks.some((u) => u.type === t) || (n = n || ((r = s.node.marks[0]) == null ? void 0 : r.attrs), !Lt([...s.node.marks], t, n)))
|
|
253
253
|
return;
|
|
254
254
|
let i = s.index, a = e.start() + s.offset, c = i + 1, l = a + s.node.nodeSize;
|
|
255
255
|
for (; i > 0 && At([...e.parent.child(i - 1).marks], t, n); )
|
|
@@ -269,30 +269,30 @@ function z(e, t) {
|
|
|
269
269
|
}
|
|
270
270
|
return e;
|
|
271
271
|
}
|
|
272
|
-
var
|
|
273
|
-
const o = z(e, r.schema), { doc: i, selection: a } = n, { $from: c, from: l, to:
|
|
272
|
+
var ln = (e, t = {}) => ({ tr: n, state: r, dispatch: s }) => {
|
|
273
|
+
const o = z(e, r.schema), { doc: i, selection: a } = n, { $from: c, from: l, to: u } = a;
|
|
274
274
|
if (s) {
|
|
275
|
-
const
|
|
276
|
-
if (
|
|
277
|
-
const p = P.create(i,
|
|
275
|
+
const d = bt(c, o, t);
|
|
276
|
+
if (d && d.from <= l && d.to >= u) {
|
|
277
|
+
const p = P.create(i, d.from, d.to);
|
|
278
278
|
n.setSelection(p);
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
return !0;
|
|
282
|
-
},
|
|
282
|
+
}, dn = (e) => (t) => {
|
|
283
283
|
const n = typeof e == "function" ? e(t) : e;
|
|
284
284
|
for (let r = 0; r < n.length; r += 1)
|
|
285
285
|
if (n[r](t))
|
|
286
286
|
return !0;
|
|
287
287
|
return !1;
|
|
288
288
|
};
|
|
289
|
-
function
|
|
289
|
+
function Ht(e) {
|
|
290
290
|
return e instanceof P;
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function B(e = 0, t = 0, n = 0) {
|
|
293
293
|
return Math.min(Math.max(e, t), n);
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function Ft(e, t = null) {
|
|
296
296
|
if (!t)
|
|
297
297
|
return null;
|
|
298
298
|
const n = j.atStart(e), r = j.atEnd(e);
|
|
@@ -301,7 +301,7 @@ function Ht(e, t = null) {
|
|
|
301
301
|
if (t === "end")
|
|
302
302
|
return r;
|
|
303
303
|
const s = n.from, o = r.to;
|
|
304
|
-
return t === "all" ? P.create(e,
|
|
304
|
+
return t === "all" ? P.create(e, B(0, s, o), B(e.content.size, s, o)) : P.create(e, B(t, s, o), B(t, s, o));
|
|
305
305
|
}
|
|
306
306
|
function Ct() {
|
|
307
307
|
return navigator.platform === "Android" || /android/i.test(navigator.userAgent);
|
|
@@ -310,16 +310,16 @@ function tt() {
|
|
|
310
310
|
return ["iPad Simulator", "iPhone Simulator", "iPod Simulator", "iPad", "iPhone", "iPod"].includes(navigator.platform) || // iPad on iOS 13 detection
|
|
311
311
|
navigator.userAgent.includes("Mac") && "ontouchend" in document;
|
|
312
312
|
}
|
|
313
|
-
function
|
|
313
|
+
function un() {
|
|
314
314
|
return typeof navigator < "u" ? /^((?!chrome|android).)*safari/i.test(navigator.userAgent) : !1;
|
|
315
315
|
}
|
|
316
|
-
var
|
|
316
|
+
var fn = (e = null, t = {}) => ({ editor: n, view: r, tr: s, dispatch: o }) => {
|
|
317
317
|
t = {
|
|
318
318
|
scrollIntoView: !0,
|
|
319
319
|
...t
|
|
320
320
|
};
|
|
321
321
|
const i = () => {
|
|
322
|
-
(tt() || Ct()) && r.dom.focus(),
|
|
322
|
+
(tt() || Ct()) && r.dom.focus(), un() && !tt() && !Ct() && r.dom.focus({ preventScroll: !0 }), requestAnimationFrame(() => {
|
|
323
323
|
n.isDestroyed || (r.focus(), t?.scrollIntoView && n.commands.scrollIntoView());
|
|
324
324
|
});
|
|
325
325
|
};
|
|
@@ -329,15 +329,15 @@ var un = (e = null, t = {}) => ({ editor: n, view: r, tr: s, dispatch: o }) => {
|
|
|
329
329
|
} catch {
|
|
330
330
|
return !1;
|
|
331
331
|
}
|
|
332
|
-
if (o && e === null && !
|
|
332
|
+
if (o && e === null && !Ht(n.state.selection))
|
|
333
333
|
return i(), !0;
|
|
334
|
-
const a =
|
|
334
|
+
const a = Ft(s.doc, e) || n.state.selection, c = n.state.selection.eq(a);
|
|
335
335
|
return o && (c || s.setSelection(a), c && s.storedMarks && s.setStoredMarks(s.storedMarks), i()), !0;
|
|
336
|
-
},
|
|
336
|
+
}, pn = (e, t) => (n) => e.every((r, s) => t(r, { ...n, index: s })), hn = (e, t) => ({ tr: n, commands: r }) => r.insertContentAt({ from: n.selection.from, to: n.selection.to }, e, t), Vt = (e) => {
|
|
337
337
|
const t = e.childNodes;
|
|
338
338
|
for (let n = t.length - 1; n >= 0; n -= 1) {
|
|
339
339
|
const r = t[n];
|
|
340
|
-
r.nodeType === 3 && r.nodeValue && /^(\n\s\s|\n)$/.test(r.nodeValue) ? e.removeChild(r) : r.nodeType === 1 &&
|
|
340
|
+
r.nodeType === 3 && r.nodeValue && /^(\n\s\s|\n)$/.test(r.nodeValue) ? e.removeChild(r) : r.nodeType === 1 && Vt(r);
|
|
341
341
|
}
|
|
342
342
|
return e;
|
|
343
343
|
};
|
|
@@ -345,10 +345,10 @@ function q(e) {
|
|
|
345
345
|
if (typeof window > "u")
|
|
346
346
|
throw new Error("[tiptap error]: there is no window object available, so this function cannot be used");
|
|
347
347
|
const t = `<body>${e}</body>`, n = new window.DOMParser().parseFromString(t, "text/html").body;
|
|
348
|
-
return
|
|
348
|
+
return Vt(n);
|
|
349
349
|
}
|
|
350
350
|
function W(e, t, n) {
|
|
351
|
-
if (e instanceof
|
|
351
|
+
if (e instanceof Fe || e instanceof D)
|
|
352
352
|
return e;
|
|
353
353
|
n = {
|
|
354
354
|
slice: !0,
|
|
@@ -370,7 +370,7 @@ function W(e, t, n) {
|
|
|
370
370
|
if (s) {
|
|
371
371
|
if (n.errorOnInvalidContent) {
|
|
372
372
|
let i = !1, a = "";
|
|
373
|
-
const c = new
|
|
373
|
+
const c = new Bt({
|
|
374
374
|
topNode: t.spec.topNode,
|
|
375
375
|
marks: t.spec.marks,
|
|
376
376
|
// Prosemirror's schemas are executed such that: the last to execute, matches last
|
|
@@ -398,20 +398,20 @@ function W(e, t, n) {
|
|
|
398
398
|
}
|
|
399
399
|
return W("", t, n);
|
|
400
400
|
}
|
|
401
|
-
function
|
|
401
|
+
function mn(e, t, n) {
|
|
402
402
|
const r = e.steps.length - 1;
|
|
403
403
|
if (r < t)
|
|
404
404
|
return;
|
|
405
405
|
const s = e.steps[r];
|
|
406
|
-
if (!(s instanceof
|
|
406
|
+
if (!(s instanceof be || s instanceof we))
|
|
407
407
|
return;
|
|
408
408
|
const o = e.mapping.maps[r];
|
|
409
409
|
let i = 0;
|
|
410
|
-
o.forEach((a, c, l,
|
|
411
|
-
i === 0 && (i =
|
|
410
|
+
o.forEach((a, c, l, u) => {
|
|
411
|
+
i === 0 && (i = u);
|
|
412
412
|
}), e.setSelection(j.near(e.doc.resolve(i), n));
|
|
413
413
|
}
|
|
414
|
-
var
|
|
414
|
+
var gn = (e) => !("type" in e), vn = (e, t, n) => ({ tr: r, dispatch: s, editor: o }) => {
|
|
415
415
|
var i;
|
|
416
416
|
if (s) {
|
|
417
417
|
n = {
|
|
@@ -451,12 +451,12 @@ var mn = (e) => !("type" in e), gn = (e, t, n) => ({ tr: r, dispatch: s, editor:
|
|
|
451
451
|
} catch (g) {
|
|
452
452
|
return c(g), !1;
|
|
453
453
|
}
|
|
454
|
-
let { from:
|
|
455
|
-
if ((
|
|
454
|
+
let { from: u, to: d } = typeof e == "number" ? { from: e, to: e } : { from: e.from, to: e.to }, p = !0, f = !0;
|
|
455
|
+
if ((gn(a) ? a : [a]).forEach((g) => {
|
|
456
456
|
g.check(), p = p ? g.isText && g.marks.length === 0 : !1, f = f ? g.isBlock : !1;
|
|
457
|
-
}),
|
|
458
|
-
const { parent: g } = r.doc.resolve(
|
|
459
|
-
g.isTextblock && !g.type.spec.code && !g.childCount && (
|
|
457
|
+
}), u === d && f) {
|
|
458
|
+
const { parent: g } = r.doc.resolve(u);
|
|
459
|
+
g.isTextblock && !g.type.spec.code && !g.childCount && (u -= 1, d += 1);
|
|
460
460
|
}
|
|
461
461
|
let m;
|
|
462
462
|
if (p) {
|
|
@@ -468,34 +468,34 @@ var mn = (e) => !("type" in e), gn = (e, t, n) => ({ tr: r, dispatch: s, editor:
|
|
|
468
468
|
v.text && (g += v.text);
|
|
469
469
|
}), m = g;
|
|
470
470
|
} else typeof t == "object" && t && t.text ? m = t.text : m = t;
|
|
471
|
-
r.insertText(m,
|
|
471
|
+
r.insertText(m, u, d);
|
|
472
472
|
} else {
|
|
473
473
|
m = a;
|
|
474
|
-
const g = r.doc.resolve(
|
|
475
|
-
b && k && M && (
|
|
474
|
+
const g = r.doc.resolve(u), v = g.node(), b = g.parentOffset === 0, k = v.isText || v.isTextblock, M = v.content.size > 0;
|
|
475
|
+
b && k && M && (u = Math.max(0, u - 1)), r.replaceWith(u, d, m);
|
|
476
476
|
}
|
|
477
|
-
n.updateSelection &&
|
|
477
|
+
n.updateSelection && mn(r, r.steps.length - 1, -1), n.applyInputRules && r.setMeta("applyInputRules", { from: u, text: m }), n.applyPasteRules && r.setMeta("applyPasteRules", { from: u, text: m });
|
|
478
478
|
}
|
|
479
479
|
return !0;
|
|
480
|
-
},
|
|
480
|
+
}, yn = () => ({ state: e, dispatch: t }) => Se(e, t), bn = () => ({ state: e, dispatch: t }) => Ee(e, t), wn = () => ({ state: e, dispatch: t }) => Te(e, t), kn = () => ({ state: e, dispatch: t }) => Ae(e, t), Mn = () => ({ state: e, dispatch: t, tr: n }) => {
|
|
481
481
|
try {
|
|
482
|
-
const r =
|
|
482
|
+
const r = _t(e.doc, e.selection.$from.pos, -1);
|
|
483
483
|
return r == null ? !1 : (n.join(r, 2), t && t(n), !0);
|
|
484
484
|
} catch {
|
|
485
485
|
return !1;
|
|
486
486
|
}
|
|
487
|
-
},
|
|
487
|
+
}, xn = () => ({ state: e, dispatch: t, tr: n }) => {
|
|
488
488
|
try {
|
|
489
|
-
const r =
|
|
489
|
+
const r = _t(e.doc, e.selection.$from.pos, 1);
|
|
490
490
|
return r == null ? !1 : (n.join(r, 2), t && t(n), !0);
|
|
491
491
|
} catch {
|
|
492
492
|
return !1;
|
|
493
493
|
}
|
|
494
|
-
},
|
|
495
|
-
function
|
|
494
|
+
}, Sn = () => ({ state: e, dispatch: t }) => Ce(e, t), En = () => ({ state: e, dispatch: t }) => Pe(e, t);
|
|
495
|
+
function Wt() {
|
|
496
496
|
return typeof navigator < "u" ? /Mac/.test(navigator.platform) : !1;
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function Tn(e) {
|
|
499
499
|
const t = e.split(/-(?!$)/);
|
|
500
500
|
let n = t[t.length - 1];
|
|
501
501
|
n === "Space" && (n = " ");
|
|
@@ -511,14 +511,14 @@ function En(e) {
|
|
|
511
511
|
else if (/^s(hift)?$/i.test(c))
|
|
512
512
|
o = !0;
|
|
513
513
|
else if (/^mod$/i.test(c))
|
|
514
|
-
tt() ||
|
|
514
|
+
tt() || Wt() ? i = !0 : s = !0;
|
|
515
515
|
else
|
|
516
516
|
throw new Error(`Unrecognized modifier name: ${c}`);
|
|
517
517
|
}
|
|
518
518
|
return r && (n = `Alt-${n}`), s && (n = `Ctrl-${n}`), i && (n = `Meta-${n}`), o && (n = `Shift-${n}`), n;
|
|
519
519
|
}
|
|
520
|
-
var
|
|
521
|
-
const o =
|
|
520
|
+
var An = (e) => ({ editor: t, view: n, tr: r, dispatch: s }) => {
|
|
521
|
+
const o = Tn(e).split(/-(?!$)/), i = o.find((l) => !["Alt", "Ctrl", "Meta", "Shift"].includes(l)), a = new KeyboardEvent("keydown", {
|
|
522
522
|
key: i === "Space" ? " " : i,
|
|
523
523
|
altKey: o.includes("Alt"),
|
|
524
524
|
ctrlKey: o.includes("Ctrl"),
|
|
@@ -530,32 +530,32 @@ var Tn = (e) => ({ editor: t, view: n, tr: r, dispatch: s }) => {
|
|
|
530
530
|
n.someProp("handleKeyDown", (l) => l(n, a));
|
|
531
531
|
});
|
|
532
532
|
return c?.steps.forEach((l) => {
|
|
533
|
-
const
|
|
534
|
-
|
|
533
|
+
const u = l.map(r.mapping);
|
|
534
|
+
u && s && r.maybeStep(u);
|
|
535
535
|
}), !0;
|
|
536
536
|
};
|
|
537
537
|
function U(e, t, n = {}) {
|
|
538
538
|
const { from: r, to: s, empty: o } = e.selection, i = t ? T(t, e.schema) : null, a = [];
|
|
539
|
-
e.doc.nodesBetween(r, s, (
|
|
540
|
-
if (
|
|
539
|
+
e.doc.nodesBetween(r, s, (d, p) => {
|
|
540
|
+
if (d.isText)
|
|
541
541
|
return;
|
|
542
|
-
const f = Math.max(r, p), h = Math.min(s, p +
|
|
542
|
+
const f = Math.max(r, p), h = Math.min(s, p + d.nodeSize);
|
|
543
543
|
a.push({
|
|
544
|
-
node:
|
|
544
|
+
node: d,
|
|
545
545
|
from: f,
|
|
546
546
|
to: h
|
|
547
547
|
});
|
|
548
548
|
});
|
|
549
|
-
const c = s - r, l = a.filter((
|
|
550
|
-
return o ? !!l.length : l.reduce((
|
|
549
|
+
const c = s - r, l = a.filter((d) => i ? i.name === d.node.type.name : !0).filter((d) => G(d.node.attrs, n, { strict: !1 }));
|
|
550
|
+
return o ? !!l.length : l.reduce((d, p) => d + p.to - p.from, 0) >= c;
|
|
551
551
|
}
|
|
552
|
-
var
|
|
552
|
+
var Cn = (e, t = {}) => ({ state: n, dispatch: r }) => {
|
|
553
553
|
const s = T(e, n.schema);
|
|
554
|
-
return U(n, s, t) ?
|
|
555
|
-
},
|
|
554
|
+
return U(n, s, t) ? $e(n, r) : !1;
|
|
555
|
+
}, Pn = () => ({ state: e, dispatch: t }) => Ne(e, t), $n = (e) => ({ state: t, dispatch: n }) => {
|
|
556
556
|
const r = T(e, t.schema);
|
|
557
|
-
return
|
|
558
|
-
},
|
|
557
|
+
return We(r)(t, n);
|
|
558
|
+
}, Nn = () => ({ state: e, dispatch: t }) => Re(e, t);
|
|
559
559
|
function ot(e, t) {
|
|
560
560
|
return t.nodes[e] ? "node" : t.marks[e] ? "mark" : null;
|
|
561
561
|
}
|
|
@@ -563,7 +563,7 @@ function Pt(e, t) {
|
|
|
563
563
|
const n = typeof t == "string" ? [t] : t;
|
|
564
564
|
return Object.keys(e).reduce((r, s) => (n.includes(s) || (r[s] = e[s]), r), {});
|
|
565
565
|
}
|
|
566
|
-
var
|
|
566
|
+
var Rn = (e, t) => ({ tr: n, state: r, dispatch: s }) => {
|
|
567
567
|
let o = null, i = null;
|
|
568
568
|
const a = ot(
|
|
569
569
|
typeof e == "string" ? e : e.name,
|
|
@@ -574,19 +574,19 @@ var Nn = (e, t) => ({ tr: n, state: r, dispatch: s }) => {
|
|
|
574
574
|
a === "node" && (o = T(e, r.schema)), a === "mark" && (i = z(e, r.schema));
|
|
575
575
|
let c = !1;
|
|
576
576
|
return n.selection.ranges.forEach((l) => {
|
|
577
|
-
r.doc.nodesBetween(l.$from.pos, l.$to.pos, (
|
|
578
|
-
o && o ===
|
|
579
|
-
i === p.type && (c = !0, s && n.addMark(
|
|
577
|
+
r.doc.nodesBetween(l.$from.pos, l.$to.pos, (u, d) => {
|
|
578
|
+
o && o === u.type && (c = !0, s && n.setNodeMarkup(d, void 0, Pt(u.attrs, t))), i && u.marks.length && u.marks.forEach((p) => {
|
|
579
|
+
i === p.type && (c = !0, s && n.addMark(d, d + u.nodeSize, i.create(Pt(p.attrs, t))));
|
|
580
580
|
});
|
|
581
581
|
});
|
|
582
582
|
}), c;
|
|
583
|
-
},
|
|
583
|
+
}, zn = () => ({ tr: e, dispatch: t }) => (t && e.scrollIntoView(), !0), In = () => ({ tr: e, dispatch: t }) => {
|
|
584
584
|
if (t) {
|
|
585
|
-
const n = new
|
|
585
|
+
const n = new Le(e.doc);
|
|
586
586
|
e.setSelection(n);
|
|
587
587
|
}
|
|
588
588
|
return !0;
|
|
589
|
-
},
|
|
589
|
+
}, Dn = () => ({ state: e, dispatch: t }) => ze(e, t), On = () => ({ state: e, dispatch: t }) => Ie(e, t), _n = () => ({ state: e, dispatch: t }) => De(e, t), Bn = () => ({ state: e, dispatch: t }) => Oe(e, t), jn = () => ({ state: e, dispatch: t }) => _e(e, t);
|
|
590
590
|
function ht(e, t, n = {}, r = {}) {
|
|
591
591
|
return W(e, t, {
|
|
592
592
|
slice: !1,
|
|
@@ -594,7 +594,7 @@ function ht(e, t, n = {}, r = {}) {
|
|
|
594
594
|
errorOnInvalidContent: r.errorOnInvalidContent
|
|
595
595
|
});
|
|
596
596
|
}
|
|
597
|
-
var
|
|
597
|
+
var Ln = (e, { errorOnInvalidContent: t, emitUpdate: n = !0, parseOptions: r = {} } = {}) => ({ editor: s, tr: o, dispatch: i, commands: a }) => {
|
|
598
598
|
const { doc: c } = o;
|
|
599
599
|
if (r.preserveWhitespace !== "full") {
|
|
600
600
|
const l = ht(e, s.schema, r, {
|
|
@@ -607,7 +607,7 @@ var jn = (e, { errorOnInvalidContent: t, emitUpdate: n = !0, parseOptions: r = {
|
|
|
607
607
|
errorOnInvalidContent: t ?? s.options.enableContentCheck
|
|
608
608
|
});
|
|
609
609
|
};
|
|
610
|
-
function
|
|
610
|
+
function Ut(e, t) {
|
|
611
611
|
const n = z(t, e.schema), { from: r, to: s, empty: o } = e.selection, i = [];
|
|
612
612
|
o ? (e.storedMarks && i.push(...e.storedMarks), i.push(...e.selection.$head.marks())) : e.doc.nodesBetween(r, s, (c) => {
|
|
613
613
|
i.push(...c.marks);
|
|
@@ -615,15 +615,15 @@ function Wt(e, t) {
|
|
|
615
615
|
const a = i.find((c) => c.type.name === n.name);
|
|
616
616
|
return a ? { ...a.attrs } : {};
|
|
617
617
|
}
|
|
618
|
-
function
|
|
619
|
-
const n = new
|
|
618
|
+
function Hn(e, t) {
|
|
619
|
+
const n = new ge(e);
|
|
620
620
|
return t.forEach((r) => {
|
|
621
621
|
r.steps.forEach((s) => {
|
|
622
622
|
n.step(s);
|
|
623
623
|
});
|
|
624
624
|
}), n;
|
|
625
625
|
}
|
|
626
|
-
function
|
|
626
|
+
function Fn(e) {
|
|
627
627
|
for (let t = 0; t < e.edgeCount; t += 1) {
|
|
628
628
|
const { type: n } = e.edge(t);
|
|
629
629
|
if (n.isTextblock && !n.hasRequiredAttrs())
|
|
@@ -631,7 +631,7 @@ function Hn(e) {
|
|
|
631
631
|
}
|
|
632
632
|
return null;
|
|
633
633
|
}
|
|
634
|
-
function
|
|
634
|
+
function os(e, t, n) {
|
|
635
635
|
const r = [];
|
|
636
636
|
return e.nodesBetween(t.from, t.to, (s, o) => {
|
|
637
637
|
n(s) && r.push({
|
|
@@ -640,7 +640,7 @@ function rs(e, t, n) {
|
|
|
640
640
|
});
|
|
641
641
|
}), r;
|
|
642
642
|
}
|
|
643
|
-
function
|
|
643
|
+
function Vn(e, t) {
|
|
644
644
|
for (let n = e.depth; n > 0; n -= 1) {
|
|
645
645
|
const r = e.node(n);
|
|
646
646
|
if (t(r))
|
|
@@ -653,7 +653,7 @@ function Fn(e, t) {
|
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
655
|
function it(e) {
|
|
656
|
-
return (t) =>
|
|
656
|
+
return (t) => Vn(t.$from, e);
|
|
657
657
|
}
|
|
658
658
|
function y(e, t, n) {
|
|
659
659
|
return e.config[t] === void 0 && e.parent ? y(e.parent, t, n) : typeof e.config[t] == "function" ? e.config[t].bind({
|
|
@@ -672,16 +672,16 @@ function wt(e) {
|
|
|
672
672
|
}).flat(10);
|
|
673
673
|
}
|
|
674
674
|
function kt(e, t) {
|
|
675
|
-
const n =
|
|
675
|
+
const n = He.fromSchema(t).serializeFragment(e), s = document.implementation.createHTMLDocument().createElement("div");
|
|
676
676
|
return s.appendChild(n), s.innerHTML;
|
|
677
677
|
}
|
|
678
|
-
function
|
|
678
|
+
function Kt(e) {
|
|
679
679
|
return typeof e == "function";
|
|
680
680
|
}
|
|
681
681
|
function x(e, t = void 0, ...n) {
|
|
682
|
-
return
|
|
682
|
+
return Kt(e) ? t ? e.bind(t)(...n) : e(...n) : e;
|
|
683
683
|
}
|
|
684
|
-
function
|
|
684
|
+
function Wn(e = {}) {
|
|
685
685
|
return Object.keys(e).length === 0 && e.constructor === Object;
|
|
686
686
|
}
|
|
687
687
|
function L(e) {
|
|
@@ -692,7 +692,7 @@ function L(e) {
|
|
|
692
692
|
markExtensions: r
|
|
693
693
|
};
|
|
694
694
|
}
|
|
695
|
-
function
|
|
695
|
+
function qt(e) {
|
|
696
696
|
const t = [], { nodeExtensions: n, markExtensions: r } = L(e), s = [...n, ...r], o = {
|
|
697
697
|
default: null,
|
|
698
698
|
validate: void 0,
|
|
@@ -703,19 +703,19 @@ function Kt(e) {
|
|
|
703
703
|
isRequired: !1
|
|
704
704
|
}, i = n.filter((l) => l.name !== "text").map((l) => l.name), a = r.map((l) => l.name), c = [...i, ...a];
|
|
705
705
|
return e.forEach((l) => {
|
|
706
|
-
const
|
|
706
|
+
const u = {
|
|
707
707
|
name: l.name,
|
|
708
708
|
options: l.options,
|
|
709
709
|
storage: l.storage,
|
|
710
710
|
extensions: s
|
|
711
|
-
},
|
|
711
|
+
}, d = y(
|
|
712
712
|
l,
|
|
713
713
|
"addGlobalAttributes",
|
|
714
|
-
|
|
714
|
+
u
|
|
715
715
|
);
|
|
716
|
-
if (!
|
|
716
|
+
if (!d)
|
|
717
717
|
return;
|
|
718
|
-
|
|
718
|
+
d().forEach((f) => {
|
|
719
719
|
let h;
|
|
720
720
|
Array.isArray(f.types) ? h = f.types : f.types === "*" ? h = c : f.types === "nodes" ? h = i : f.types === "marks" ? h = a : h = [], h.forEach((m) => {
|
|
721
721
|
Object.entries(f.attributes).forEach(([g, v]) => {
|
|
@@ -731,18 +731,18 @@ function Kt(e) {
|
|
|
731
731
|
});
|
|
732
732
|
});
|
|
733
733
|
}), s.forEach((l) => {
|
|
734
|
-
const
|
|
734
|
+
const u = {
|
|
735
735
|
name: l.name,
|
|
736
736
|
options: l.options,
|
|
737
737
|
storage: l.storage
|
|
738
|
-
},
|
|
738
|
+
}, d = y(
|
|
739
739
|
l,
|
|
740
740
|
"addAttributes",
|
|
741
|
-
|
|
741
|
+
u
|
|
742
742
|
);
|
|
743
|
-
if (!
|
|
743
|
+
if (!d)
|
|
744
744
|
return;
|
|
745
|
-
const p =
|
|
745
|
+
const p = d();
|
|
746
746
|
Object.entries(p).forEach(([f, h]) => {
|
|
747
747
|
const m = {
|
|
748
748
|
...o,
|
|
@@ -756,7 +756,50 @@ function Kt(e) {
|
|
|
756
756
|
});
|
|
757
757
|
}), t;
|
|
758
758
|
}
|
|
759
|
-
function
|
|
759
|
+
function Un(e) {
|
|
760
|
+
const t = [];
|
|
761
|
+
let n = "", r = !1, s = !1, o = 0;
|
|
762
|
+
const i = e.length;
|
|
763
|
+
for (let a = 0; a < i; a += 1) {
|
|
764
|
+
const c = e[a];
|
|
765
|
+
if (c === "'" && !s) {
|
|
766
|
+
r = !r, n += c;
|
|
767
|
+
continue;
|
|
768
|
+
}
|
|
769
|
+
if (c === '"' && !r) {
|
|
770
|
+
s = !s, n += c;
|
|
771
|
+
continue;
|
|
772
|
+
}
|
|
773
|
+
if (!r && !s) {
|
|
774
|
+
if (c === "(") {
|
|
775
|
+
o += 1, n += c;
|
|
776
|
+
continue;
|
|
777
|
+
}
|
|
778
|
+
if (c === ")" && o > 0) {
|
|
779
|
+
o -= 1, n += c;
|
|
780
|
+
continue;
|
|
781
|
+
}
|
|
782
|
+
if (c === ";" && o === 0) {
|
|
783
|
+
t.push(n), n = "";
|
|
784
|
+
continue;
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
n += c;
|
|
788
|
+
}
|
|
789
|
+
return n && t.push(n), t;
|
|
790
|
+
}
|
|
791
|
+
function $t(e) {
|
|
792
|
+
const t = [], n = Un(e || ""), r = n.length;
|
|
793
|
+
for (let s = 0; s < r; s += 1) {
|
|
794
|
+
const o = n[s], i = o.indexOf(":");
|
|
795
|
+
if (i === -1)
|
|
796
|
+
continue;
|
|
797
|
+
const a = o.slice(0, i).trim(), c = o.slice(i + 1).trim();
|
|
798
|
+
a && c && t.push([a, c]);
|
|
799
|
+
}
|
|
800
|
+
return t;
|
|
801
|
+
}
|
|
802
|
+
function Kn(...e) {
|
|
760
803
|
return e.filter((t) => !!t).reduce((t, n) => {
|
|
761
804
|
const r = { ...t };
|
|
762
805
|
return Object.entries(n).forEach(([s, o]) => {
|
|
@@ -765,17 +808,11 @@ function Wn(...e) {
|
|
|
765
808
|
return;
|
|
766
809
|
}
|
|
767
810
|
if (s === "class") {
|
|
768
|
-
const a = o ? String(o).split(" ") : [], c = r[s] ? r[s].split(" ") : [], l = a.filter((
|
|
811
|
+
const a = o ? String(o).split(" ") : [], c = r[s] ? r[s].split(" ") : [], l = a.filter((u) => !c.includes(u));
|
|
769
812
|
r[s] = [...c, ...l].join(" ");
|
|
770
813
|
} else if (s === "style") {
|
|
771
|
-
const a =
|
|
772
|
-
|
|
773
|
-
const [u, p] = d.split(":").map((f) => f.trim());
|
|
774
|
-
l.set(u, p);
|
|
775
|
-
}), a.forEach((d) => {
|
|
776
|
-
const [u, p] = d.split(":").map((f) => f.trim());
|
|
777
|
-
l.set(u, p);
|
|
778
|
-
}), r[s] = Array.from(l.entries()).map(([d, u]) => `${d}: ${u}`).join("; ");
|
|
814
|
+
const a = new Map([...$t(r[s]), ...$t(o)]);
|
|
815
|
+
r[s] = Array.from(a.entries()).map(([c, l]) => `${c}: ${l}`).join("; ");
|
|
779
816
|
} else
|
|
780
817
|
r[s] = o;
|
|
781
818
|
}), r;
|
|
@@ -784,12 +821,12 @@ function Wn(...e) {
|
|
|
784
821
|
function et(e, t) {
|
|
785
822
|
return t.filter((n) => n.type === e.type.name).filter((n) => n.attribute.rendered).map((n) => n.attribute.renderHTML ? n.attribute.renderHTML(e.attrs) || {} : {
|
|
786
823
|
[n.name]: e.attrs[n.name]
|
|
787
|
-
}).reduce((n, r) =>
|
|
824
|
+
}).reduce((n, r) => Kn(n, r), {});
|
|
788
825
|
}
|
|
789
|
-
function
|
|
826
|
+
function qn(e) {
|
|
790
827
|
return typeof e != "string" ? e : e.match(/^[+-]?(?:\d*\.)?\d+$/) ? Number(e) : e === "true" ? !0 : e === "false" ? !1 : e;
|
|
791
828
|
}
|
|
792
|
-
function
|
|
829
|
+
function Nt(e, t) {
|
|
793
830
|
return "style" in e ? e : {
|
|
794
831
|
...e,
|
|
795
832
|
getAttrs: (n) => {
|
|
@@ -797,7 +834,7 @@ function $t(e, t) {
|
|
|
797
834
|
if (r === !1)
|
|
798
835
|
return !1;
|
|
799
836
|
const s = t.reduce((o, i) => {
|
|
800
|
-
const a = i.attribute.parseHTML ? i.attribute.parseHTML(n) :
|
|
837
|
+
const a = i.attribute.parseHTML ? i.attribute.parseHTML(n) : qn(n.getAttribute(i.name));
|
|
801
838
|
return a == null ? o : {
|
|
802
839
|
...o,
|
|
803
840
|
[i.name]: a
|
|
@@ -807,100 +844,100 @@ function $t(e, t) {
|
|
|
807
844
|
}
|
|
808
845
|
};
|
|
809
846
|
}
|
|
810
|
-
function
|
|
847
|
+
function Rt(e) {
|
|
811
848
|
return Object.fromEntries(
|
|
812
849
|
// @ts-ignore
|
|
813
|
-
Object.entries(e).filter(([t, n]) => t === "attrs" &&
|
|
850
|
+
Object.entries(e).filter(([t, n]) => t === "attrs" && Wn(n) ? !1 : n != null)
|
|
814
851
|
);
|
|
815
852
|
}
|
|
816
|
-
function
|
|
853
|
+
function zt(e) {
|
|
817
854
|
var t, n;
|
|
818
855
|
const r = {};
|
|
819
856
|
return !((t = e?.attribute) != null && t.isRequired) && "default" in (e?.attribute || {}) && (r.default = e.attribute.default), ((n = e?.attribute) == null ? void 0 : n.validate) !== void 0 && (r.validate = e.attribute.validate), [e.name, r];
|
|
820
857
|
}
|
|
821
|
-
function
|
|
858
|
+
function Jn(e, t) {
|
|
822
859
|
var n;
|
|
823
|
-
const r =
|
|
860
|
+
const r = qt(e), { nodeExtensions: s, markExtensions: o } = L(e), i = (n = s.find((l) => y(l, "topNode"))) == null ? void 0 : n.name, a = Object.fromEntries(
|
|
824
861
|
s.map((l) => {
|
|
825
|
-
const
|
|
862
|
+
const u = r.filter((v) => v.type === l.name), d = {
|
|
826
863
|
name: l.name,
|
|
827
864
|
options: l.options,
|
|
828
865
|
storage: l.storage,
|
|
829
866
|
editor: t
|
|
830
867
|
}, p = e.reduce((v, b) => {
|
|
831
|
-
const k = y(b, "extendNodeSchema",
|
|
868
|
+
const k = y(b, "extendNodeSchema", d);
|
|
832
869
|
return {
|
|
833
870
|
...v,
|
|
834
871
|
...k ? k(l) : {}
|
|
835
872
|
};
|
|
836
|
-
}, {}), f =
|
|
873
|
+
}, {}), f = Rt({
|
|
837
874
|
...p,
|
|
838
|
-
content: x(y(l, "content",
|
|
839
|
-
marks: x(y(l, "marks",
|
|
840
|
-
group: x(y(l, "group",
|
|
841
|
-
inline: x(y(l, "inline",
|
|
842
|
-
atom: x(y(l, "atom",
|
|
843
|
-
selectable: x(y(l, "selectable",
|
|
844
|
-
draggable: x(y(l, "draggable",
|
|
845
|
-
code: x(y(l, "code",
|
|
846
|
-
whitespace: x(y(l, "whitespace",
|
|
875
|
+
content: x(y(l, "content", d)),
|
|
876
|
+
marks: x(y(l, "marks", d)),
|
|
877
|
+
group: x(y(l, "group", d)),
|
|
878
|
+
inline: x(y(l, "inline", d)),
|
|
879
|
+
atom: x(y(l, "atom", d)),
|
|
880
|
+
selectable: x(y(l, "selectable", d)),
|
|
881
|
+
draggable: x(y(l, "draggable", d)),
|
|
882
|
+
code: x(y(l, "code", d)),
|
|
883
|
+
whitespace: x(y(l, "whitespace", d)),
|
|
847
884
|
linebreakReplacement: x(
|
|
848
|
-
y(l, "linebreakReplacement",
|
|
885
|
+
y(l, "linebreakReplacement", d)
|
|
849
886
|
),
|
|
850
|
-
defining: x(y(l, "defining",
|
|
851
|
-
isolating: x(y(l, "isolating",
|
|
852
|
-
attrs: Object.fromEntries(
|
|
853
|
-
}), h = x(y(l, "parseHTML",
|
|
887
|
+
defining: x(y(l, "defining", d)),
|
|
888
|
+
isolating: x(y(l, "isolating", d)),
|
|
889
|
+
attrs: Object.fromEntries(u.map(zt))
|
|
890
|
+
}), h = x(y(l, "parseHTML", d));
|
|
854
891
|
h && (f.parseDOM = h.map(
|
|
855
|
-
(v) =>
|
|
892
|
+
(v) => Nt(v, u)
|
|
856
893
|
));
|
|
857
|
-
const m = y(l, "renderHTML",
|
|
894
|
+
const m = y(l, "renderHTML", d);
|
|
858
895
|
m && (f.toDOM = (v) => m({
|
|
859
896
|
node: v,
|
|
860
|
-
HTMLAttributes: et(v,
|
|
897
|
+
HTMLAttributes: et(v, u)
|
|
861
898
|
}));
|
|
862
|
-
const g = y(l, "renderText",
|
|
899
|
+
const g = y(l, "renderText", d);
|
|
863
900
|
return g && (f.toText = g), [l.name, f];
|
|
864
901
|
})
|
|
865
902
|
), c = Object.fromEntries(
|
|
866
903
|
o.map((l) => {
|
|
867
|
-
const
|
|
904
|
+
const u = r.filter((g) => g.type === l.name), d = {
|
|
868
905
|
name: l.name,
|
|
869
906
|
options: l.options,
|
|
870
907
|
storage: l.storage,
|
|
871
908
|
editor: t
|
|
872
909
|
}, p = e.reduce((g, v) => {
|
|
873
|
-
const b = y(v, "extendMarkSchema",
|
|
910
|
+
const b = y(v, "extendMarkSchema", d);
|
|
874
911
|
return {
|
|
875
912
|
...g,
|
|
876
913
|
...b ? b(l) : {}
|
|
877
914
|
};
|
|
878
|
-
}, {}), f =
|
|
915
|
+
}, {}), f = Rt({
|
|
879
916
|
...p,
|
|
880
|
-
inclusive: x(y(l, "inclusive",
|
|
881
|
-
excludes: x(y(l, "excludes",
|
|
882
|
-
group: x(y(l, "group",
|
|
883
|
-
spanning: x(y(l, "spanning",
|
|
884
|
-
code: x(y(l, "code",
|
|
885
|
-
attrs: Object.fromEntries(
|
|
886
|
-
}), h = x(y(l, "parseHTML",
|
|
917
|
+
inclusive: x(y(l, "inclusive", d)),
|
|
918
|
+
excludes: x(y(l, "excludes", d)),
|
|
919
|
+
group: x(y(l, "group", d)),
|
|
920
|
+
spanning: x(y(l, "spanning", d)),
|
|
921
|
+
code: x(y(l, "code", d)),
|
|
922
|
+
attrs: Object.fromEntries(u.map(zt))
|
|
923
|
+
}), h = x(y(l, "parseHTML", d));
|
|
887
924
|
h && (f.parseDOM = h.map(
|
|
888
|
-
(g) =>
|
|
925
|
+
(g) => Nt(g, u)
|
|
889
926
|
));
|
|
890
|
-
const m = y(l, "renderHTML",
|
|
927
|
+
const m = y(l, "renderHTML", d);
|
|
891
928
|
return m && (f.toDOM = (g) => m({
|
|
892
929
|
mark: g,
|
|
893
|
-
HTMLAttributes: et(g,
|
|
930
|
+
HTMLAttributes: et(g, u)
|
|
894
931
|
})), [l.name, f];
|
|
895
932
|
})
|
|
896
933
|
);
|
|
897
|
-
return new
|
|
934
|
+
return new Bt({
|
|
898
935
|
topNode: i,
|
|
899
936
|
nodes: a,
|
|
900
937
|
marks: c
|
|
901
938
|
});
|
|
902
939
|
}
|
|
903
|
-
function
|
|
940
|
+
function Xn(e) {
|
|
904
941
|
const t = e.filter((n, r) => e.indexOf(n) !== r);
|
|
905
942
|
return Array.from(new Set(t));
|
|
906
943
|
}
|
|
@@ -910,45 +947,45 @@ function V(e) {
|
|
|
910
947
|
return s > o ? -1 : s < o ? 1 : 0;
|
|
911
948
|
});
|
|
912
949
|
}
|
|
913
|
-
function
|
|
914
|
-
const t = V(wt(e)), n =
|
|
950
|
+
function Jt(e) {
|
|
951
|
+
const t = V(wt(e)), n = Xn(t.map((r) => r.name));
|
|
915
952
|
return n.length && console.warn(
|
|
916
953
|
`[tiptap warn]: Duplicate extension names found: [${n.map((r) => `'${r}'`).join(", ")}]. This can lead to issues.`
|
|
917
954
|
), t;
|
|
918
955
|
}
|
|
919
|
-
function
|
|
956
|
+
function Xt(e, t, n) {
|
|
920
957
|
const { from: r, to: s } = t, { blockSeparator: o = `
|
|
921
958
|
|
|
922
959
|
`, textSerializers: i = {} } = n || {};
|
|
923
960
|
let a = "";
|
|
924
|
-
return e.nodesBetween(r, s, (c, l,
|
|
961
|
+
return e.nodesBetween(r, s, (c, l, u, d) => {
|
|
925
962
|
var p;
|
|
926
963
|
c.isBlock && l > r && (a += o);
|
|
927
964
|
const f = i?.[c.type.name];
|
|
928
965
|
if (f)
|
|
929
|
-
return
|
|
966
|
+
return u && (a += f({
|
|
930
967
|
node: c,
|
|
931
968
|
pos: l,
|
|
932
|
-
parent:
|
|
933
|
-
index:
|
|
969
|
+
parent: u,
|
|
970
|
+
index: d,
|
|
934
971
|
range: t
|
|
935
972
|
})), !1;
|
|
936
973
|
c.isText && (a += (p = c?.text) == null ? void 0 : p.slice(Math.max(r, l) - l, s - l));
|
|
937
974
|
}), a;
|
|
938
975
|
}
|
|
939
|
-
function
|
|
976
|
+
function Yn(e, t) {
|
|
940
977
|
const n = {
|
|
941
978
|
from: 0,
|
|
942
979
|
to: e.content.size
|
|
943
980
|
};
|
|
944
|
-
return
|
|
981
|
+
return Xt(e, n, t);
|
|
945
982
|
}
|
|
946
|
-
function
|
|
983
|
+
function Yt(e) {
|
|
947
984
|
return Object.fromEntries(
|
|
948
985
|
Object.entries(e.nodes).filter(([, t]) => t.spec.toText).map(([t, n]) => [t, n.spec.toText])
|
|
949
986
|
);
|
|
950
987
|
}
|
|
951
|
-
function
|
|
988
|
+
function Qn(e, t) {
|
|
952
989
|
const n = T(t, e.schema), { from: r, to: s } = e.selection, o = [];
|
|
953
990
|
e.doc.nodesBetween(r, s, (a) => {
|
|
954
991
|
o.push(a);
|
|
@@ -956,25 +993,25 @@ function Xn(e, t) {
|
|
|
956
993
|
const i = o.reverse().find((a) => a.type.name === n.name);
|
|
957
994
|
return i ? { ...i.attrs } : {};
|
|
958
995
|
}
|
|
959
|
-
function
|
|
996
|
+
function Zn(e, t) {
|
|
960
997
|
const n = ot(
|
|
961
998
|
typeof t == "string" ? t : t.name,
|
|
962
999
|
e.schema
|
|
963
1000
|
);
|
|
964
|
-
return n === "node" ?
|
|
1001
|
+
return n === "node" ? Qn(e, t) : n === "mark" ? Ut(e, t) : {};
|
|
965
1002
|
}
|
|
966
|
-
function
|
|
1003
|
+
function Gn(e, t = JSON.stringify) {
|
|
967
1004
|
const n = {};
|
|
968
1005
|
return e.filter((r) => {
|
|
969
1006
|
const s = t(r);
|
|
970
1007
|
return Object.prototype.hasOwnProperty.call(n, s) ? !1 : n[s] = !0;
|
|
971
1008
|
});
|
|
972
1009
|
}
|
|
973
|
-
function
|
|
974
|
-
const t =
|
|
1010
|
+
function tr(e) {
|
|
1011
|
+
const t = Gn(e);
|
|
975
1012
|
return t.length === 1 ? t : t.filter((n, r) => !t.filter((o, i) => i !== r).some((o) => n.oldRange.from >= o.oldRange.from && n.oldRange.to <= o.oldRange.to && n.newRange.from >= o.newRange.from && n.newRange.to <= o.newRange.to));
|
|
976
1013
|
}
|
|
977
|
-
function
|
|
1014
|
+
function er(e) {
|
|
978
1015
|
const { mapping: t, steps: n } = e, r = [];
|
|
979
1016
|
return t.maps.forEach((s, o) => {
|
|
980
1017
|
const i = [];
|
|
@@ -989,21 +1026,21 @@ function Gn(e) {
|
|
|
989
1026
|
i.push({ from: a, to: c });
|
|
990
1027
|
}
|
|
991
1028
|
i.forEach(({ from: a, to: c }) => {
|
|
992
|
-
const l = t.slice(o).map(a, -1),
|
|
1029
|
+
const l = t.slice(o).map(a, -1), u = t.slice(o).map(c), d = t.invert().map(l, -1), p = t.invert().map(u);
|
|
993
1030
|
r.push({
|
|
994
1031
|
oldRange: {
|
|
995
|
-
from:
|
|
1032
|
+
from: d,
|
|
996
1033
|
to: p
|
|
997
1034
|
},
|
|
998
1035
|
newRange: {
|
|
999
1036
|
from: l,
|
|
1000
|
-
to:
|
|
1037
|
+
to: u
|
|
1001
1038
|
}
|
|
1002
1039
|
});
|
|
1003
1040
|
});
|
|
1004
|
-
}),
|
|
1041
|
+
}), tr(r);
|
|
1005
1042
|
}
|
|
1006
|
-
function
|
|
1043
|
+
function Qt(e, t, n) {
|
|
1007
1044
|
const r = [];
|
|
1008
1045
|
return e === t ? n.resolve(e).marks().forEach((s) => {
|
|
1009
1046
|
const o = n.resolve(e), i = bt(o, s.type);
|
|
@@ -1021,7 +1058,7 @@ function Yt(e, t, n) {
|
|
|
1021
1058
|
);
|
|
1022
1059
|
}), r;
|
|
1023
1060
|
}
|
|
1024
|
-
var
|
|
1061
|
+
var is = (e, t, n, r = 20) => {
|
|
1025
1062
|
const s = e.doc.resolve(n);
|
|
1026
1063
|
let o = r, i = null;
|
|
1027
1064
|
for (; o > 0 && i === null; ) {
|
|
@@ -1033,7 +1070,7 @@ var ss = (e, t, n, r = 20) => {
|
|
|
1033
1070
|
function H(e, t) {
|
|
1034
1071
|
return t.nodes[e] || t.marks[e] || null;
|
|
1035
1072
|
}
|
|
1036
|
-
function
|
|
1073
|
+
function Z(e, t, n) {
|
|
1037
1074
|
return Object.fromEntries(
|
|
1038
1075
|
Object.entries(n).filter(([r]) => {
|
|
1039
1076
|
const s = e.find((o) => o.type === t && o.name === r);
|
|
@@ -1041,28 +1078,28 @@ function Q(e, t, n) {
|
|
|
1041
1078
|
})
|
|
1042
1079
|
);
|
|
1043
1080
|
}
|
|
1044
|
-
var
|
|
1081
|
+
var nr = (e, t = 500) => {
|
|
1045
1082
|
let n = "";
|
|
1046
1083
|
const r = e.parentOffset;
|
|
1047
1084
|
return e.parent.nodesBetween(Math.max(0, r - t), r, (s, o, i, a) => {
|
|
1048
1085
|
var c, l;
|
|
1049
|
-
const
|
|
1086
|
+
const u = ((l = (c = s.type.spec).toText) == null ? void 0 : l.call(c, {
|
|
1050
1087
|
node: s,
|
|
1051
1088
|
pos: o,
|
|
1052
1089
|
parent: i,
|
|
1053
1090
|
index: a
|
|
1054
1091
|
})) || s.textContent || "%leaf%";
|
|
1055
|
-
n += s.isAtom && !s.isText ?
|
|
1092
|
+
n += s.isAtom && !s.isText ? u : u.slice(0, Math.max(0, r - o));
|
|
1056
1093
|
}), n;
|
|
1057
1094
|
};
|
|
1058
1095
|
function mt(e, t, n = {}) {
|
|
1059
1096
|
const { empty: r, ranges: s } = e.selection, o = t ? z(t, e.schema) : null;
|
|
1060
1097
|
if (r)
|
|
1061
|
-
return !!(e.storedMarks || e.selection.$from.marks()).filter((
|
|
1098
|
+
return !!(e.storedMarks || e.selection.$from.marks()).filter((d) => o ? o.name === d.type.name : !0).find((d) => G(d.attrs, n, { strict: !1 }));
|
|
1062
1099
|
let i = 0;
|
|
1063
1100
|
const a = [];
|
|
1064
|
-
if (s.forEach(({ $from:
|
|
1065
|
-
const f =
|
|
1101
|
+
if (s.forEach(({ $from: d, $to: p }) => {
|
|
1102
|
+
const f = d.pos, h = p.pos;
|
|
1066
1103
|
e.doc.nodesBetween(f, h, (m, g) => {
|
|
1067
1104
|
if (o && m.inlineContent && !m.type.allowsMarkType(o))
|
|
1068
1105
|
return !1;
|
|
@@ -1079,16 +1116,16 @@ function mt(e, t, n = {}) {
|
|
|
1079
1116
|
});
|
|
1080
1117
|
}), i === 0)
|
|
1081
1118
|
return !1;
|
|
1082
|
-
const c = a.filter((
|
|
1119
|
+
const c = a.filter((d) => o ? o.name === d.mark.type.name : !0).filter((d) => G(d.mark.attrs, n, { strict: !1 })).reduce((d, p) => d + p.to - p.from, 0), l = a.filter((d) => o ? d.mark.type !== o && d.mark.type.excludes(o) : !0).reduce((d, p) => d + p.to - p.from, 0);
|
|
1083
1120
|
return (c > 0 ? c + l : c) >= i;
|
|
1084
1121
|
}
|
|
1085
|
-
function
|
|
1122
|
+
function rr(e, t, n = {}) {
|
|
1086
1123
|
if (!t)
|
|
1087
1124
|
return U(e, null, n) || mt(e, null, n);
|
|
1088
1125
|
const r = ot(t, e.schema);
|
|
1089
1126
|
return r === "node" ? U(e, t, n) : r === "mark" ? mt(e, t, n) : !1;
|
|
1090
1127
|
}
|
|
1091
|
-
var
|
|
1128
|
+
var as = (e, t) => {
|
|
1092
1129
|
const { $from: n, $to: r, $anchor: s } = e.selection;
|
|
1093
1130
|
if (t) {
|
|
1094
1131
|
const o = it((a) => a.type.name === t)(e.selection);
|
|
@@ -1098,14 +1135,14 @@ var os = (e, t) => {
|
|
|
1098
1135
|
return s.pos + 1 === i.end();
|
|
1099
1136
|
}
|
|
1100
1137
|
return !(r.parentOffset < r.parent.nodeSize - 2 || n.pos !== r.pos);
|
|
1101
|
-
},
|
|
1138
|
+
}, cs = (e) => {
|
|
1102
1139
|
const { $from: t, $to: n } = e.selection;
|
|
1103
1140
|
return !(t.parentOffset > 0 || t.pos !== n.pos);
|
|
1104
1141
|
};
|
|
1105
|
-
function
|
|
1142
|
+
function It(e, t) {
|
|
1106
1143
|
return Array.isArray(t) ? t.some((n) => (typeof n == "string" ? n : n.name) === e.name) : t;
|
|
1107
1144
|
}
|
|
1108
|
-
function
|
|
1145
|
+
function Dt(e, t) {
|
|
1109
1146
|
const { nodeExtensions: n } = L(t), r = n.find((i) => i.name === e);
|
|
1110
1147
|
if (!r)
|
|
1111
1148
|
return !1;
|
|
@@ -1141,10 +1178,10 @@ function Mt(e, {
|
|
|
1141
1178
|
}
|
|
1142
1179
|
return !1;
|
|
1143
1180
|
}
|
|
1144
|
-
function
|
|
1181
|
+
function ls(e) {
|
|
1145
1182
|
return e instanceof nt;
|
|
1146
1183
|
}
|
|
1147
|
-
var Zt = class
|
|
1184
|
+
var Zt = class Gt {
|
|
1148
1185
|
constructor(t) {
|
|
1149
1186
|
this.position = t;
|
|
1150
1187
|
}
|
|
@@ -1152,7 +1189,7 @@ var Zt = class Qt {
|
|
|
1152
1189
|
* Creates a MappablePosition from a JSON object.
|
|
1153
1190
|
*/
|
|
1154
1191
|
static fromJSON(t) {
|
|
1155
|
-
return new
|
|
1192
|
+
return new Gt(t.position);
|
|
1156
1193
|
}
|
|
1157
1194
|
/**
|
|
1158
1195
|
* Converts the MappablePosition to a JSON object.
|
|
@@ -1163,43 +1200,43 @@ var Zt = class Qt {
|
|
|
1163
1200
|
};
|
|
1164
1201
|
}
|
|
1165
1202
|
};
|
|
1166
|
-
function
|
|
1203
|
+
function sr(e, t) {
|
|
1167
1204
|
const n = t.mapping.mapResult(e.position);
|
|
1168
1205
|
return {
|
|
1169
1206
|
position: new Zt(n.pos),
|
|
1170
1207
|
mapResult: n
|
|
1171
1208
|
};
|
|
1172
1209
|
}
|
|
1173
|
-
function
|
|
1210
|
+
function or(e) {
|
|
1174
1211
|
return new Zt(e);
|
|
1175
1212
|
}
|
|
1176
|
-
function
|
|
1213
|
+
function ir(e, t, n) {
|
|
1177
1214
|
var r;
|
|
1178
1215
|
const { selection: s } = t;
|
|
1179
1216
|
let o = null;
|
|
1180
|
-
if (
|
|
1217
|
+
if (Ht(s) && (o = s.$cursor), o) {
|
|
1181
1218
|
const a = (r = e.storedMarks) != null ? r : o.marks();
|
|
1182
1219
|
return o.parent.type.allowsMarkType(n) && (!!n.isInSet(a) || !a.some((l) => l.type.excludes(n)));
|
|
1183
1220
|
}
|
|
1184
1221
|
const { ranges: i } = s;
|
|
1185
1222
|
return i.some(({ $from: a, $to: c }) => {
|
|
1186
1223
|
let l = a.depth === 0 ? e.doc.inlineContent && e.doc.type.allowsMarkType(n) : !1;
|
|
1187
|
-
return e.doc.nodesBetween(a.pos, c.pos, (
|
|
1224
|
+
return e.doc.nodesBetween(a.pos, c.pos, (u, d, p) => {
|
|
1188
1225
|
if (l)
|
|
1189
1226
|
return !1;
|
|
1190
|
-
if (
|
|
1191
|
-
const f = !p || p.type.allowsMarkType(n), h = !!n.isInSet(
|
|
1227
|
+
if (u.isInline) {
|
|
1228
|
+
const f = !p || p.type.allowsMarkType(n), h = !!n.isInSet(u.marks) || !u.marks.some((m) => m.type.excludes(n));
|
|
1192
1229
|
l = f && h;
|
|
1193
1230
|
}
|
|
1194
1231
|
return !l;
|
|
1195
1232
|
}), l;
|
|
1196
1233
|
});
|
|
1197
1234
|
}
|
|
1198
|
-
var
|
|
1235
|
+
var ar = (e, t = {}) => ({ tr: n, state: r, dispatch: s }) => {
|
|
1199
1236
|
const { selection: o } = n, { empty: i, ranges: a } = o, c = z(e, r.schema);
|
|
1200
1237
|
if (s)
|
|
1201
1238
|
if (i) {
|
|
1202
|
-
const l =
|
|
1239
|
+
const l = Ut(r, c);
|
|
1203
1240
|
n.addStoredMark(
|
|
1204
1241
|
c.create({
|
|
1205
1242
|
...l,
|
|
@@ -1208,9 +1245,9 @@ var or = (e, t = {}) => ({ tr: n, state: r, dispatch: s }) => {
|
|
|
1208
1245
|
);
|
|
1209
1246
|
} else
|
|
1210
1247
|
a.forEach((l) => {
|
|
1211
|
-
const
|
|
1212
|
-
r.doc.nodesBetween(
|
|
1213
|
-
const h = Math.max(f,
|
|
1248
|
+
const u = l.$from.pos, d = l.$to.pos;
|
|
1249
|
+
r.doc.nodesBetween(u, d, (p, f) => {
|
|
1250
|
+
const h = Math.max(f, u), m = Math.min(f + p.nodeSize, d);
|
|
1214
1251
|
p.marks.find((v) => v.type === c) ? p.marks.forEach((v) => {
|
|
1215
1252
|
c === v.type && n.addMark(
|
|
1216
1253
|
h,
|
|
@@ -1223,18 +1260,18 @@ var or = (e, t = {}) => ({ tr: n, state: r, dispatch: s }) => {
|
|
|
1223
1260
|
}) : n.addMark(h, m, c.create(t));
|
|
1224
1261
|
});
|
|
1225
1262
|
});
|
|
1226
|
-
return
|
|
1227
|
-
},
|
|
1263
|
+
return ir(r, n, c);
|
|
1264
|
+
}, cr = (e, t) => ({ tr: n }) => (n.setMeta(e, t), !0), lr = (e, t = {}) => ({ state: n, dispatch: r, chain: s }) => {
|
|
1228
1265
|
const o = T(e, n.schema);
|
|
1229
1266
|
let i;
|
|
1230
1267
|
return n.selection.$anchor.sameParent(n.selection.$head) && (i = n.selection.$anchor.parent.attrs), o.isTextblock ? s().command(({ commands: a }) => Tt(o, { ...i, ...t })(n) ? !0 : a.clearNodes()).command(({ state: a }) => Tt(o, { ...i, ...t })(a, r)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
|
|
1231
|
-
},
|
|
1268
|
+
}, dr = (e) => ({ tr: t, dispatch: n }) => {
|
|
1232
1269
|
if (n) {
|
|
1233
|
-
const { doc: r } = t, s =
|
|
1270
|
+
const { doc: r } = t, s = B(e, 0, r.content.size), o = nt.create(r, s);
|
|
1234
1271
|
t.setSelection(o);
|
|
1235
1272
|
}
|
|
1236
1273
|
return !0;
|
|
1237
|
-
},
|
|
1274
|
+
}, ur = (e, t) => ({ tr: n, state: r, dispatch: s }) => {
|
|
1238
1275
|
const { selection: o } = r;
|
|
1239
1276
|
let i, a;
|
|
1240
1277
|
return typeof t == "number" ? (i = t, a = t) : t && "from" in t && "to" in t ? (i = t.from, a = t.to) : (i = o.from, a = o.to), s && n.doc.nodesBetween(i, a, (c, l) => {
|
|
@@ -1243,56 +1280,56 @@ var or = (e, t = {}) => ({ tr: n, state: r, dispatch: s }) => {
|
|
|
1243
1280
|
dir: e
|
|
1244
1281
|
});
|
|
1245
1282
|
}), !0;
|
|
1246
|
-
},
|
|
1283
|
+
}, fr = (e) => ({ tr: t, dispatch: n }) => {
|
|
1247
1284
|
if (n) {
|
|
1248
|
-
const { doc: r } = t, { from: s, to: o } = typeof e == "number" ? { from: e, to: e } : e, i = P.atStart(r).from, a = P.atEnd(r).to, c =
|
|
1249
|
-
t.setSelection(
|
|
1285
|
+
const { doc: r } = t, { from: s, to: o } = typeof e == "number" ? { from: e, to: e } : e, i = P.atStart(r).from, a = P.atEnd(r).to, c = B(s, i, a), l = B(o, i, a), u = P.create(r, c, l);
|
|
1286
|
+
t.setSelection(u);
|
|
1250
1287
|
}
|
|
1251
1288
|
return !0;
|
|
1252
|
-
},
|
|
1289
|
+
}, pr = (e) => ({ state: t, dispatch: n }) => {
|
|
1253
1290
|
const r = T(e, t.schema);
|
|
1254
|
-
return
|
|
1291
|
+
return Ue(r)(t, n);
|
|
1255
1292
|
};
|
|
1256
|
-
function
|
|
1293
|
+
function Ot(e, t) {
|
|
1257
1294
|
const n = e.storedMarks || e.selection.$to.parentOffset && e.selection.$from.marks();
|
|
1258
1295
|
if (n) {
|
|
1259
1296
|
const r = n.filter((s) => t?.includes(s.type.name));
|
|
1260
1297
|
e.tr.ensureMarks(r);
|
|
1261
1298
|
}
|
|
1262
1299
|
}
|
|
1263
|
-
var
|
|
1264
|
-
const { selection: o, doc: i } = t, { $from: a, $to: c } = o, l = s.extensionManager.attributes,
|
|
1300
|
+
var hr = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor: s }) => {
|
|
1301
|
+
const { selection: o, doc: i } = t, { $from: a, $to: c } = o, l = s.extensionManager.attributes, u = Z(l, a.node().type.name, a.node().attrs);
|
|
1265
1302
|
if (o instanceof nt && o.node.isBlock)
|
|
1266
|
-
return !a.parentOffset || !
|
|
1303
|
+
return !a.parentOffset || !Q(i, a.pos) ? !1 : (r && (e && Ot(n, s.extensionManager.splittableMarks), t.split(a.pos).scrollIntoView()), !0);
|
|
1267
1304
|
if (!a.parent.isBlock)
|
|
1268
1305
|
return !1;
|
|
1269
|
-
const
|
|
1270
|
-
let f =
|
|
1306
|
+
const d = c.parentOffset === c.parent.content.size, p = a.depth === 0 ? void 0 : Fn(a.node(-1).contentMatchAt(a.indexAfter(-1)));
|
|
1307
|
+
let f = d && p ? [
|
|
1271
1308
|
{
|
|
1272
1309
|
type: p,
|
|
1273
|
-
attrs:
|
|
1310
|
+
attrs: u
|
|
1274
1311
|
}
|
|
1275
|
-
] : void 0, h =
|
|
1276
|
-
if (!f && !h &&
|
|
1312
|
+
] : void 0, h = Q(t.doc, t.mapping.map(a.pos), 1, f);
|
|
1313
|
+
if (!f && !h && Q(t.doc, t.mapping.map(a.pos), 1, p ? [{ type: p }] : void 0) && (h = !0, f = p ? [
|
|
1277
1314
|
{
|
|
1278
1315
|
type: p,
|
|
1279
|
-
attrs:
|
|
1316
|
+
attrs: u
|
|
1280
1317
|
}
|
|
1281
1318
|
] : void 0), r) {
|
|
1282
|
-
if (h && (o instanceof P && t.deleteSelection(), t.split(t.mapping.map(a.pos), 1, f), p && !
|
|
1319
|
+
if (h && (o instanceof P && t.deleteSelection(), t.split(t.mapping.map(a.pos), 1, f), p && !d && !a.parentOffset && a.parent.type !== p)) {
|
|
1283
1320
|
const m = t.mapping.map(a.before()), g = t.doc.resolve(m);
|
|
1284
1321
|
a.node(-1).canReplaceWith(g.index(), g.index() + 1, p) && t.setNodeMarkup(t.mapping.map(a.before()), p);
|
|
1285
1322
|
}
|
|
1286
|
-
e &&
|
|
1323
|
+
e && Ot(n, s.extensionManager.splittableMarks), t.scrollIntoView();
|
|
1287
1324
|
}
|
|
1288
1325
|
return h;
|
|
1289
|
-
},
|
|
1326
|
+
}, mr = (e, t = {}) => ({ tr: n, state: r, dispatch: s, editor: o }) => {
|
|
1290
1327
|
var i;
|
|
1291
|
-
const a = T(e, r.schema), { $from: c, $to: l } = r.selection,
|
|
1292
|
-
if (
|
|
1328
|
+
const a = T(e, r.schema), { $from: c, $to: l } = r.selection, u = r.selection.node;
|
|
1329
|
+
if (u && u.isBlock || c.depth < 2 || !c.sameParent(l))
|
|
1293
1330
|
return !1;
|
|
1294
|
-
const
|
|
1295
|
-
if (
|
|
1331
|
+
const d = c.node(-1);
|
|
1332
|
+
if (d.type !== a)
|
|
1296
1333
|
return !1;
|
|
1297
1334
|
const p = o.extensionManager.attributes;
|
|
1298
1335
|
if (c.parent.content.size === 0 && c.node(-1).childCount === c.indexAfter(-1)) {
|
|
@@ -1307,12 +1344,12 @@ var fr = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor
|
|
|
1307
1344
|
// eslint-disable-next-line no-nested-ternary
|
|
1308
1345
|
c.indexAfter(-1) < c.node(-2).childCount ? 1 : c.indexAfter(-2) < c.node(-3).childCount ? 2 : 3
|
|
1309
1346
|
), M = {
|
|
1310
|
-
...
|
|
1347
|
+
...Z(p, c.node().type.name, c.node().attrs),
|
|
1311
1348
|
...t
|
|
1312
1349
|
}, w = ((i = a.contentMatch.defaultType) == null ? void 0 : i.createAndFill(M)) || void 0;
|
|
1313
1350
|
v = v.append(D.from(a.createAndFill(null, w) || void 0));
|
|
1314
1351
|
const S = c.before(c.depth - (b - 1));
|
|
1315
|
-
n.replace(S, c.after(-k), new
|
|
1352
|
+
n.replace(S, c.after(-k), new Ve(v, 4 - b, 0));
|
|
1316
1353
|
let E = -1;
|
|
1317
1354
|
n.doc.nodesBetween(S, n.doc.content.size, (A, C) => {
|
|
1318
1355
|
if (E > -1)
|
|
@@ -1322,11 +1359,11 @@ var fr = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor
|
|
|
1322
1359
|
}
|
|
1323
1360
|
return !0;
|
|
1324
1361
|
}
|
|
1325
|
-
const f = l.pos === c.end() ?
|
|
1326
|
-
...
|
|
1362
|
+
const f = l.pos === c.end() ? d.contentMatchAt(0).defaultType : null, h = {
|
|
1363
|
+
...Z(p, d.type.name, d.attrs),
|
|
1327
1364
|
...t
|
|
1328
1365
|
}, m = {
|
|
1329
|
-
...
|
|
1366
|
+
...Z(p, c.node().type.name, c.node().attrs),
|
|
1330
1367
|
...t
|
|
1331
1368
|
};
|
|
1332
1369
|
n.delete(c.pos, l.pos);
|
|
@@ -1334,7 +1371,7 @@ var fr = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor
|
|
|
1334
1371
|
{ type: a, attrs: h },
|
|
1335
1372
|
{ type: f, attrs: m }
|
|
1336
1373
|
] : [{ type: a, attrs: h }];
|
|
1337
|
-
if (!
|
|
1374
|
+
if (!Q(n.doc, c.pos, 2))
|
|
1338
1375
|
return !1;
|
|
1339
1376
|
if (s) {
|
|
1340
1377
|
const { selection: v, storedMarks: b } = r, { splittableMarks: k } = o.extensionManager, M = b || v.$to.parentOffset && v.$from.marks();
|
|
@@ -1362,32 +1399,32 @@ var fr = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor
|
|
|
1362
1399
|
return !0;
|
|
1363
1400
|
const s = e.doc.nodeAt(r);
|
|
1364
1401
|
return n.node.type === s?.type && gt(e.doc, r) && e.join(r), !0;
|
|
1365
|
-
},
|
|
1366
|
-
const { extensions:
|
|
1402
|
+
}, gr = (e, t, n, r = {}) => ({ editor: s, tr: o, state: i, dispatch: a, chain: c, commands: l, can: u }) => {
|
|
1403
|
+
const { extensions: d, splittableMarks: p } = s.extensionManager, f = T(e, i.schema), h = T(t, i.schema), { selection: m, storedMarks: g } = i, { $from: v, $to: b } = m, k = v.blockRange(b), M = g || m.$to.parentOffset && m.$from.marks();
|
|
1367
1404
|
if (!k)
|
|
1368
1405
|
return !1;
|
|
1369
|
-
const w = it((S) =>
|
|
1406
|
+
const w = it((S) => Dt(S.type.name, d))(m);
|
|
1370
1407
|
if (k.depth >= 1 && w && k.depth - w.depth <= 1) {
|
|
1371
1408
|
if (w.node.type === f)
|
|
1372
1409
|
return l.liftListItem(h);
|
|
1373
|
-
if (
|
|
1410
|
+
if (Dt(w.node.type.name, d) && f.validContent(w.node.content) && a)
|
|
1374
1411
|
return c().command(() => (o.setNodeMarkup(w.pos, f), !0)).command(() => ft(o, f)).command(() => pt(o, f)).run();
|
|
1375
1412
|
}
|
|
1376
|
-
return !n || !M || !a ? c().command(() =>
|
|
1377
|
-
const S =
|
|
1413
|
+
return !n || !M || !a ? c().command(() => u().wrapInList(f, r) ? !0 : l.clearNodes()).wrapInList(f, r).command(() => ft(o, f)).command(() => pt(o, f)).run() : c().command(() => {
|
|
1414
|
+
const S = u().wrapInList(f, r), E = M.filter((A) => p.includes(A.type.name));
|
|
1378
1415
|
return o.ensureMarks(E), S ? !0 : l.clearNodes();
|
|
1379
1416
|
}).wrapInList(f, r).command(() => ft(o, f)).command(() => pt(o, f)).run();
|
|
1380
|
-
},
|
|
1417
|
+
}, vr = (e, t = {}, n = {}) => ({ state: r, commands: s }) => {
|
|
1381
1418
|
const { extendEmptyMarkRange: o = !1 } = n, i = z(e, r.schema);
|
|
1382
1419
|
return mt(r, i, t) ? s.unsetMark(i, { extendEmptyMarkRange: o }) : s.setMark(i, t);
|
|
1383
|
-
},
|
|
1420
|
+
}, yr = (e, t, n = {}) => ({ state: r, commands: s }) => {
|
|
1384
1421
|
const o = T(e, r.schema), i = T(t, r.schema), a = U(r, o, n);
|
|
1385
1422
|
let c;
|
|
1386
1423
|
return r.selection.$anchor.sameParent(r.selection.$head) && (c = r.selection.$anchor.parent.attrs), a ? s.setNode(i, c) : s.setNode(o, { ...c, ...n });
|
|
1387
|
-
},
|
|
1424
|
+
}, br = (e, t = {}) => ({ state: n, commands: r }) => {
|
|
1388
1425
|
const s = T(e, n.schema);
|
|
1389
1426
|
return U(n, s, t) ? r.lift(s) : r.wrapIn(s, t);
|
|
1390
|
-
},
|
|
1427
|
+
}, wr = () => ({ state: e, dispatch: t }) => {
|
|
1391
1428
|
const n = e.plugins;
|
|
1392
1429
|
for (let r = 0; r < n.length; r += 1) {
|
|
1393
1430
|
const s = n[r];
|
|
@@ -1407,26 +1444,26 @@ var fr = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor
|
|
|
1407
1444
|
}
|
|
1408
1445
|
}
|
|
1409
1446
|
return !1;
|
|
1410
|
-
},
|
|
1447
|
+
}, kr = () => ({ tr: e, dispatch: t }) => {
|
|
1411
1448
|
const { selection: n } = e, { empty: r, ranges: s } = n;
|
|
1412
1449
|
return r || t && s.forEach((o) => {
|
|
1413
1450
|
e.removeMark(o.$from.pos, o.$to.pos);
|
|
1414
1451
|
}), !0;
|
|
1415
|
-
},
|
|
1452
|
+
}, Mr = (e, t = {}) => ({ tr: n, state: r, dispatch: s }) => {
|
|
1416
1453
|
var o;
|
|
1417
|
-
const { extendEmptyMarkRange: i = !1 } = t, { selection: a } = n, c = z(e, r.schema), { $from: l, empty:
|
|
1454
|
+
const { extendEmptyMarkRange: i = !1 } = t, { selection: a } = n, c = z(e, r.schema), { $from: l, empty: u, ranges: d } = a;
|
|
1418
1455
|
if (!s)
|
|
1419
1456
|
return !0;
|
|
1420
|
-
if (
|
|
1457
|
+
if (u && i) {
|
|
1421
1458
|
let { from: p, to: f } = a;
|
|
1422
1459
|
const h = (o = l.marks().find((g) => g.type === c)) == null ? void 0 : o.attrs, m = bt(l, c, h);
|
|
1423
1460
|
m && (p = m.from, f = m.to), n.removeMark(p, f, c);
|
|
1424
1461
|
} else
|
|
1425
|
-
|
|
1462
|
+
d.forEach((p) => {
|
|
1426
1463
|
n.removeMark(p.$from.pos, p.$to.pos, c);
|
|
1427
1464
|
});
|
|
1428
1465
|
return n.removeStoredMark(c), !0;
|
|
1429
|
-
},
|
|
1466
|
+
}, xr = (e) => ({ tr: t, state: n, dispatch: r }) => {
|
|
1430
1467
|
const { selection: s } = n;
|
|
1431
1468
|
let o, i;
|
|
1432
1469
|
return typeof e == "number" ? (o = e, i = e) : e && "from" in e && "to" in e ? (o = e.from, i = e.to) : (o = s.from, i = s.to), r && t.doc.nodesBetween(o, i, (a, c) => {
|
|
@@ -1435,7 +1472,7 @@ var fr = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor
|
|
|
1435
1472
|
const l = { ...a.attrs };
|
|
1436
1473
|
delete l.dir, t.setNodeMarkup(c, void 0, l);
|
|
1437
1474
|
}), !0;
|
|
1438
|
-
},
|
|
1475
|
+
}, Sr = (e, t = {}) => ({ tr: n, state: r, dispatch: s }) => {
|
|
1439
1476
|
let o = null, i = null;
|
|
1440
1477
|
const a = ot(
|
|
1441
1478
|
typeof e == "string" ? e : e.name,
|
|
@@ -1446,17 +1483,17 @@ var fr = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor
|
|
|
1446
1483
|
a === "node" && (o = T(e, r.schema)), a === "mark" && (i = z(e, r.schema));
|
|
1447
1484
|
let c = !1;
|
|
1448
1485
|
return n.selection.ranges.forEach((l) => {
|
|
1449
|
-
const
|
|
1486
|
+
const u = l.$from.pos, d = l.$to.pos;
|
|
1450
1487
|
let p, f, h, m;
|
|
1451
|
-
n.selection.empty ? r.doc.nodesBetween(
|
|
1452
|
-
o && o === g.type && (c = !0, h = Math.max(v,
|
|
1453
|
-
}) : r.doc.nodesBetween(
|
|
1454
|
-
v <
|
|
1488
|
+
n.selection.empty ? r.doc.nodesBetween(u, d, (g, v) => {
|
|
1489
|
+
o && o === g.type && (c = !0, h = Math.max(v, u), m = Math.min(v + g.nodeSize, d), p = v, f = g);
|
|
1490
|
+
}) : r.doc.nodesBetween(u, d, (g, v) => {
|
|
1491
|
+
v < u && o && o === g.type && (c = !0, h = Math.max(v, u), m = Math.min(v + g.nodeSize, d), p = v, f = g), v >= u && v <= d && (o && o === g.type && (c = !0, s && n.setNodeMarkup(v, void 0, {
|
|
1455
1492
|
...g.attrs,
|
|
1456
1493
|
...t
|
|
1457
1494
|
})), i && g.marks.length && g.marks.forEach((b) => {
|
|
1458
1495
|
if (i === b.type && (c = !0, s)) {
|
|
1459
|
-
const k = Math.max(v,
|
|
1496
|
+
const k = Math.max(v, u), M = Math.min(v + g.nodeSize, d);
|
|
1460
1497
|
n.addMark(
|
|
1461
1498
|
k,
|
|
1462
1499
|
M,
|
|
@@ -1481,13 +1518,13 @@ var fr = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor
|
|
|
1481
1518
|
);
|
|
1482
1519
|
}));
|
|
1483
1520
|
}), c;
|
|
1484
|
-
},
|
|
1521
|
+
}, Er = (e, t = {}) => ({ state: n, dispatch: r }) => {
|
|
1485
1522
|
const s = T(e, n.schema);
|
|
1486
|
-
return
|
|
1487
|
-
},
|
|
1523
|
+
return Be(s, t)(n, r);
|
|
1524
|
+
}, Tr = (e, t = {}) => ({ state: n, dispatch: r }) => {
|
|
1488
1525
|
const s = T(e, n.schema);
|
|
1489
|
-
return
|
|
1490
|
-
},
|
|
1526
|
+
return Ke(s, t)(n, r);
|
|
1527
|
+
}, Ar = class {
|
|
1491
1528
|
constructor() {
|
|
1492
1529
|
this.callbacks = {};
|
|
1493
1530
|
}
|
|
@@ -1516,7 +1553,7 @@ var fr = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor
|
|
|
1516
1553
|
var t;
|
|
1517
1554
|
this.find = e.find, this.handler = e.handler, this.undoable = (t = e.undoable) != null ? t : !0;
|
|
1518
1555
|
}
|
|
1519
|
-
},
|
|
1556
|
+
}, Cr = (e, t) => {
|
|
1520
1557
|
if (yt(t))
|
|
1521
1558
|
return t.exec(e);
|
|
1522
1559
|
const n = t(e);
|
|
@@ -1536,12 +1573,12 @@ function J(e) {
|
|
|
1536
1573
|
l.parent.type.spec.code || (t = l.nodeBefore || l.nodeAfter) != null && t.marks.find((p) => p.type.spec.code)
|
|
1537
1574
|
)
|
|
1538
1575
|
return !1;
|
|
1539
|
-
let
|
|
1540
|
-
const
|
|
1576
|
+
let u = !1;
|
|
1577
|
+
const d = nr(l) + o;
|
|
1541
1578
|
return i.forEach((p) => {
|
|
1542
|
-
if (
|
|
1579
|
+
if (u)
|
|
1543
1580
|
return;
|
|
1544
|
-
const f =
|
|
1581
|
+
const f = Cr(d, p.find);
|
|
1545
1582
|
if (!f)
|
|
1546
1583
|
return;
|
|
1547
1584
|
const h = c.state.tr, m = rt({
|
|
@@ -1566,10 +1603,10 @@ function J(e) {
|
|
|
1566
1603
|
from: r,
|
|
1567
1604
|
to: s,
|
|
1568
1605
|
text: o
|
|
1569
|
-
}), c.dispatch(h),
|
|
1570
|
-
}),
|
|
1606
|
+
}), c.dispatch(h), u = !0);
|
|
1607
|
+
}), u;
|
|
1571
1608
|
}
|
|
1572
|
-
function
|
|
1609
|
+
function Pr(e) {
|
|
1573
1610
|
const { editor: t, rules: n } = e, r = new $({
|
|
1574
1611
|
state: {
|
|
1575
1612
|
init() {
|
|
@@ -1581,14 +1618,14 @@ function Ar(e) {
|
|
|
1581
1618
|
return a;
|
|
1582
1619
|
const c = s.getMeta("applyInputRules");
|
|
1583
1620
|
return !!c && setTimeout(() => {
|
|
1584
|
-
let { text:
|
|
1585
|
-
typeof
|
|
1586
|
-
const { from:
|
|
1621
|
+
let { text: u } = c;
|
|
1622
|
+
typeof u == "string" ? u = u : u = kt(D.from(u), i.schema);
|
|
1623
|
+
const { from: d } = c, p = d + u.length;
|
|
1587
1624
|
J({
|
|
1588
1625
|
editor: t,
|
|
1589
|
-
from:
|
|
1626
|
+
from: d,
|
|
1590
1627
|
to: p,
|
|
1591
|
-
text:
|
|
1628
|
+
text: u,
|
|
1592
1629
|
rules: n,
|
|
1593
1630
|
plugin: r
|
|
1594
1631
|
});
|
|
@@ -1641,16 +1678,16 @@ function Ar(e) {
|
|
|
1641
1678
|
});
|
|
1642
1679
|
return r;
|
|
1643
1680
|
}
|
|
1644
|
-
function
|
|
1681
|
+
function $r(e) {
|
|
1645
1682
|
return Object.prototype.toString.call(e).slice(8, -1);
|
|
1646
1683
|
}
|
|
1647
1684
|
function X(e) {
|
|
1648
|
-
return
|
|
1685
|
+
return $r(e) !== "Object" ? !1 : e.constructor === Object && Object.getPrototypeOf(e) === Object.prototype;
|
|
1649
1686
|
}
|
|
1650
|
-
function
|
|
1687
|
+
function te(e, t) {
|
|
1651
1688
|
const n = { ...e };
|
|
1652
1689
|
return X(e) && X(t) && Object.keys(t).forEach((r) => {
|
|
1653
|
-
X(t[r]) && X(e[r]) ? n[r] =
|
|
1690
|
+
X(t[r]) && X(e[r]) ? n[r] = te(e[r], t[r]) : n[r] = t[r];
|
|
1654
1691
|
}), n;
|
|
1655
1692
|
}
|
|
1656
1693
|
var xt = class {
|
|
@@ -1684,7 +1721,7 @@ var xt = class {
|
|
|
1684
1721
|
configure(e = {}) {
|
|
1685
1722
|
const t = this.extend({
|
|
1686
1723
|
...this.config,
|
|
1687
|
-
addOptions: () =>
|
|
1724
|
+
addOptions: () => te(this.options, e)
|
|
1688
1725
|
});
|
|
1689
1726
|
return t.name = this.name, t.parent = this.parent, t;
|
|
1690
1727
|
}
|
|
@@ -1692,7 +1729,7 @@ var xt = class {
|
|
|
1692
1729
|
const t = new this.constructor({ ...this.config, ...e });
|
|
1693
1730
|
return t.parent = this, this.child = t, t.name = "name" in e ? e.name : t.parent.name, t;
|
|
1694
1731
|
}
|
|
1695
|
-
},
|
|
1732
|
+
}, Nr = class ee extends xt {
|
|
1696
1733
|
constructor() {
|
|
1697
1734
|
super(...arguments), this.type = "mark";
|
|
1698
1735
|
}
|
|
@@ -1702,7 +1739,7 @@ var xt = class {
|
|
|
1702
1739
|
*/
|
|
1703
1740
|
static create(t = {}) {
|
|
1704
1741
|
const n = typeof t == "function" ? t() : t;
|
|
1705
|
-
return new
|
|
1742
|
+
return new ee(n);
|
|
1706
1743
|
}
|
|
1707
1744
|
static handleExit({ editor: t, mark: n }) {
|
|
1708
1745
|
const { tr: r } = t.state, s = t.state.selection.$from;
|
|
@@ -1723,14 +1760,14 @@ var xt = class {
|
|
|
1723
1760
|
return super.extend(n);
|
|
1724
1761
|
}
|
|
1725
1762
|
};
|
|
1726
|
-
function
|
|
1763
|
+
function Rr(e) {
|
|
1727
1764
|
return typeof e == "number";
|
|
1728
1765
|
}
|
|
1729
|
-
var
|
|
1766
|
+
var zr = class {
|
|
1730
1767
|
constructor(e) {
|
|
1731
1768
|
this.find = e.find, this.handler = e.handler;
|
|
1732
1769
|
}
|
|
1733
|
-
},
|
|
1770
|
+
}, Ir = (e, t, n) => {
|
|
1734
1771
|
if (yt(t))
|
|
1735
1772
|
return [...e.matchAll(t)];
|
|
1736
1773
|
const r = t(e, n);
|
|
@@ -1739,11 +1776,11 @@ var Nr = class {
|
|
|
1739
1776
|
return o.index = s.index, o.input = e, o.data = s.data, s.replaceWith && (s.text.includes(s.replaceWith) || console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'), o.push(s.replaceWith)), o;
|
|
1740
1777
|
}) : [];
|
|
1741
1778
|
};
|
|
1742
|
-
function
|
|
1743
|
-
const { editor: t, state: n, from: r, to: s, rule: o, pasteEvent: i, dropEvent: a } = e, { commands: c, chain: l, can:
|
|
1779
|
+
function Dr(e) {
|
|
1780
|
+
const { editor: t, state: n, from: r, to: s, rule: o, pasteEvent: i, dropEvent: a } = e, { commands: c, chain: l, can: u } = new st({
|
|
1744
1781
|
editor: t,
|
|
1745
1782
|
state: n
|
|
1746
|
-
}),
|
|
1783
|
+
}), d = [];
|
|
1747
1784
|
return n.doc.nodesBetween(r, s, (f, h) => {
|
|
1748
1785
|
var m, g, v, b, k;
|
|
1749
1786
|
if ((g = (m = f.type) == null ? void 0 : m.spec) != null && g.code || !(f.isText || f.isTextblock || f.isInline))
|
|
@@ -1752,7 +1789,7 @@ function zr(e) {
|
|
|
1752
1789
|
if (w >= S)
|
|
1753
1790
|
return;
|
|
1754
1791
|
const E = f.isText ? f.text || "" : f.textBetween(w - h, S - h, void 0, "");
|
|
1755
|
-
|
|
1792
|
+
Ir(E, o.find, i).forEach((C) => {
|
|
1756
1793
|
if (C.index === void 0)
|
|
1757
1794
|
return;
|
|
1758
1795
|
const _ = w + C.index + 1, lt = _ + C[0].length, K = {
|
|
@@ -1764,22 +1801,22 @@ function zr(e) {
|
|
|
1764
1801
|
match: C,
|
|
1765
1802
|
commands: c,
|
|
1766
1803
|
chain: l,
|
|
1767
|
-
can:
|
|
1804
|
+
can: u,
|
|
1768
1805
|
pasteEvent: i,
|
|
1769
1806
|
dropEvent: a
|
|
1770
1807
|
});
|
|
1771
|
-
|
|
1808
|
+
d.push(dt);
|
|
1772
1809
|
});
|
|
1773
|
-
}),
|
|
1810
|
+
}), d.every((f) => f !== null);
|
|
1774
1811
|
}
|
|
1775
|
-
var Y = null,
|
|
1812
|
+
var Y = null, Or = (e) => {
|
|
1776
1813
|
var t;
|
|
1777
1814
|
const n = new ClipboardEvent("paste", {
|
|
1778
1815
|
clipboardData: new DataTransfer()
|
|
1779
1816
|
});
|
|
1780
1817
|
return (t = n.clipboardData) == null || t.setData("text/html", e), n;
|
|
1781
1818
|
};
|
|
1782
|
-
function
|
|
1819
|
+
function _r(e) {
|
|
1783
1820
|
const { editor: t, rules: n } = e;
|
|
1784
1821
|
let r = null, s = !1, o = !1, i = typeof ClipboardEvent < "u" ? new ClipboardEvent("paste") : null, a;
|
|
1785
1822
|
try {
|
|
@@ -1788,20 +1825,20 @@ function Dr(e) {
|
|
|
1788
1825
|
a = null;
|
|
1789
1826
|
}
|
|
1790
1827
|
const c = ({
|
|
1791
|
-
state:
|
|
1792
|
-
from:
|
|
1828
|
+
state: u,
|
|
1829
|
+
from: d,
|
|
1793
1830
|
to: p,
|
|
1794
1831
|
rule: f,
|
|
1795
1832
|
pasteEvt: h
|
|
1796
1833
|
}) => {
|
|
1797
|
-
const m =
|
|
1798
|
-
state:
|
|
1834
|
+
const m = u.tr, g = rt({
|
|
1835
|
+
state: u,
|
|
1799
1836
|
transaction: m
|
|
1800
1837
|
});
|
|
1801
|
-
if (!(!
|
|
1838
|
+
if (!(!Dr({
|
|
1802
1839
|
editor: t,
|
|
1803
1840
|
state: g,
|
|
1804
|
-
from: Math.max(
|
|
1841
|
+
from: Math.max(d - 1, 0),
|
|
1805
1842
|
to: p.b - 1,
|
|
1806
1843
|
rule: f,
|
|
1807
1844
|
pasteEvent: h,
|
|
@@ -1815,12 +1852,12 @@ function Dr(e) {
|
|
|
1815
1852
|
return i = typeof ClipboardEvent < "u" ? new ClipboardEvent("paste") : null, m;
|
|
1816
1853
|
}
|
|
1817
1854
|
};
|
|
1818
|
-
return n.map((
|
|
1855
|
+
return n.map((u) => new $({
|
|
1819
1856
|
// we register a global drag handler to track the current drag source element
|
|
1820
|
-
view(
|
|
1857
|
+
view(d) {
|
|
1821
1858
|
const p = (h) => {
|
|
1822
1859
|
var m;
|
|
1823
|
-
r = (m =
|
|
1860
|
+
r = (m = d.dom.parentElement) != null && m.contains(h.target) ? d.dom.parentElement : null, r && (Y = t);
|
|
1824
1861
|
}, f = () => {
|
|
1825
1862
|
Y && (Y = null);
|
|
1826
1863
|
};
|
|
@@ -1832,8 +1869,8 @@ function Dr(e) {
|
|
|
1832
1869
|
},
|
|
1833
1870
|
props: {
|
|
1834
1871
|
handleDOMEvents: {
|
|
1835
|
-
drop: (
|
|
1836
|
-
if (o = r ===
|
|
1872
|
+
drop: (d, p) => {
|
|
1873
|
+
if (o = r === d.dom.parentElement, a = p, !o) {
|
|
1837
1874
|
const f = Y;
|
|
1838
1875
|
f?.isEditable && setTimeout(() => {
|
|
1839
1876
|
const h = f.state.selection;
|
|
@@ -1842,23 +1879,23 @@ function Dr(e) {
|
|
|
1842
1879
|
}
|
|
1843
1880
|
return !1;
|
|
1844
1881
|
},
|
|
1845
|
-
paste: (
|
|
1882
|
+
paste: (d, p) => {
|
|
1846
1883
|
var f;
|
|
1847
1884
|
const h = (f = p.clipboardData) == null ? void 0 : f.getData("text/html");
|
|
1848
1885
|
return i = p, s = !!h?.includes("data-pm-slice"), !1;
|
|
1849
1886
|
}
|
|
1850
1887
|
}
|
|
1851
1888
|
},
|
|
1852
|
-
appendTransaction: (
|
|
1853
|
-
const h =
|
|
1889
|
+
appendTransaction: (d, p, f) => {
|
|
1890
|
+
const h = d[0], m = h.getMeta("uiEvent") === "paste" && !s, g = h.getMeta("uiEvent") === "drop" && !o, v = h.getMeta("applyPasteRules"), b = !!v;
|
|
1854
1891
|
if (!m && !g && !b)
|
|
1855
1892
|
return;
|
|
1856
1893
|
if (b) {
|
|
1857
1894
|
let { text: w } = v;
|
|
1858
1895
|
typeof w == "string" ? w = w : w = kt(D.from(w), f.schema);
|
|
1859
|
-
const { from: S } = v, E = S + w.length, A =
|
|
1896
|
+
const { from: S } = v, E = S + w.length, A = Or(w);
|
|
1860
1897
|
return c({
|
|
1861
|
-
rule:
|
|
1898
|
+
rule: u,
|
|
1862
1899
|
state: f,
|
|
1863
1900
|
from: S,
|
|
1864
1901
|
to: { b: E },
|
|
@@ -1866,9 +1903,9 @@ function Dr(e) {
|
|
|
1866
1903
|
});
|
|
1867
1904
|
}
|
|
1868
1905
|
const k = p.doc.content.findDiffStart(f.doc.content), M = p.doc.content.findDiffEnd(f.doc.content);
|
|
1869
|
-
if (!(
|
|
1906
|
+
if (!(!Rr(k) || !M || k === M.b))
|
|
1870
1907
|
return c({
|
|
1871
|
-
rule:
|
|
1908
|
+
rule: u,
|
|
1872
1909
|
state: f,
|
|
1873
1910
|
from: k,
|
|
1874
1911
|
to: M,
|
|
@@ -1879,7 +1916,7 @@ function Dr(e) {
|
|
|
1879
1916
|
}
|
|
1880
1917
|
var ct = class {
|
|
1881
1918
|
constructor(e, t) {
|
|
1882
|
-
this.splittableMarks = [], this.editor = t, this.baseExtensions = e, this.extensions =
|
|
1919
|
+
this.splittableMarks = [], this.editor = t, this.baseExtensions = e, this.extensions = Jt(e), this.schema = Jn(this.extensions, t), this.setupExtensions();
|
|
1883
1920
|
}
|
|
1884
1921
|
/**
|
|
1885
1922
|
* Get all commands from the extensions.
|
|
@@ -1919,40 +1956,40 @@ var ct = class {
|
|
|
1919
1956
|
s
|
|
1920
1957
|
);
|
|
1921
1958
|
let a = {};
|
|
1922
|
-
if (r.type === "mark" && y(r, "exitable", s) && (a.ArrowRight = () =>
|
|
1959
|
+
if (r.type === "mark" && y(r, "exitable", s) && (a.ArrowRight = () => Nr.handleExit({ editor: e, mark: r })), i) {
|
|
1923
1960
|
const p = Object.fromEntries(
|
|
1924
1961
|
Object.entries(i()).map(([f, h]) => [f, () => h({ editor: e })])
|
|
1925
1962
|
);
|
|
1926
1963
|
a = { ...a, ...p };
|
|
1927
1964
|
}
|
|
1928
|
-
const c =
|
|
1965
|
+
const c = Je(a);
|
|
1929
1966
|
o.push(c);
|
|
1930
1967
|
const l = y(r, "addInputRules", s);
|
|
1931
|
-
if (
|
|
1968
|
+
if (It(r, e.options.enableInputRules) && l) {
|
|
1932
1969
|
const p = l();
|
|
1933
1970
|
if (p && p.length) {
|
|
1934
|
-
const f =
|
|
1971
|
+
const f = Pr({
|
|
1935
1972
|
editor: e,
|
|
1936
1973
|
rules: p
|
|
1937
1974
|
}), h = Array.isArray(f) ? f : [f];
|
|
1938
1975
|
o.push(...h);
|
|
1939
1976
|
}
|
|
1940
1977
|
}
|
|
1941
|
-
const
|
|
1942
|
-
if (
|
|
1943
|
-
const p =
|
|
1978
|
+
const u = y(r, "addPasteRules", s);
|
|
1979
|
+
if (It(r, e.options.enablePasteRules) && u) {
|
|
1980
|
+
const p = u();
|
|
1944
1981
|
if (p && p.length) {
|
|
1945
|
-
const f =
|
|
1982
|
+
const f = _r({ editor: e, rules: p });
|
|
1946
1983
|
o.push(...f);
|
|
1947
1984
|
}
|
|
1948
1985
|
}
|
|
1949
|
-
const
|
|
1986
|
+
const d = y(
|
|
1950
1987
|
r,
|
|
1951
1988
|
"addProseMirrorPlugins",
|
|
1952
1989
|
s
|
|
1953
1990
|
);
|
|
1954
|
-
if (
|
|
1955
|
-
const p =
|
|
1991
|
+
if (d) {
|
|
1992
|
+
const p = d();
|
|
1956
1993
|
o.push(...p);
|
|
1957
1994
|
}
|
|
1958
1995
|
return o;
|
|
@@ -1963,7 +2000,7 @@ var ct = class {
|
|
|
1963
2000
|
* @returns An array of attributes
|
|
1964
2001
|
*/
|
|
1965
2002
|
get attributes() {
|
|
1966
|
-
return
|
|
2003
|
+
return qt(this.extensions);
|
|
1967
2004
|
}
|
|
1968
2005
|
/**
|
|
1969
2006
|
* Get all node views from the extensions.
|
|
@@ -1985,14 +2022,14 @@ var ct = class {
|
|
|
1985
2022
|
const i = o();
|
|
1986
2023
|
if (!i)
|
|
1987
2024
|
return [];
|
|
1988
|
-
const a = (c, l,
|
|
2025
|
+
const a = (c, l, u, d, p) => {
|
|
1989
2026
|
const f = et(c, r);
|
|
1990
2027
|
return i({
|
|
1991
2028
|
// pass-through
|
|
1992
2029
|
node: c,
|
|
1993
2030
|
view: l,
|
|
1994
|
-
getPos:
|
|
1995
|
-
decorations:
|
|
2031
|
+
getPos: u,
|
|
2032
|
+
decorations: d,
|
|
1996
2033
|
innerDecorations: p,
|
|
1997
2034
|
// tiptap-specific
|
|
1998
2035
|
editor: e,
|
|
@@ -2070,7 +2107,7 @@ var ct = class {
|
|
|
2070
2107
|
if (!o)
|
|
2071
2108
|
return [];
|
|
2072
2109
|
const i = (a, c, l) => {
|
|
2073
|
-
const
|
|
2110
|
+
const u = et(a, r);
|
|
2074
2111
|
return o()({
|
|
2075
2112
|
// pass-through
|
|
2076
2113
|
mark: a,
|
|
@@ -2079,9 +2116,9 @@ var ct = class {
|
|
|
2079
2116
|
// tiptap-specific
|
|
2080
2117
|
editor: e,
|
|
2081
2118
|
extension: n,
|
|
2082
|
-
HTMLAttributes:
|
|
2083
|
-
updateAttributes: (
|
|
2084
|
-
|
|
2119
|
+
HTMLAttributes: u,
|
|
2120
|
+
updateAttributes: (d) => {
|
|
2121
|
+
Qr(a, e, d);
|
|
2085
2122
|
}
|
|
2086
2123
|
});
|
|
2087
2124
|
};
|
|
@@ -2111,29 +2148,29 @@ var ct = class {
|
|
|
2111
2148
|
t,
|
|
2112
2149
|
"onSelectionUpdate",
|
|
2113
2150
|
r
|
|
2114
|
-
), c = y(t, "onTransaction", r), l = y(t, "onFocus", r),
|
|
2115
|
-
s && this.editor.on("beforeCreate", s), o && this.editor.on("create", o), i && this.editor.on("update", i), a && this.editor.on("selectionUpdate", a), c && this.editor.on("transaction", c), l && this.editor.on("focus", l),
|
|
2151
|
+
), c = y(t, "onTransaction", r), l = y(t, "onFocus", r), u = y(t, "onBlur", r), d = y(t, "onDestroy", r);
|
|
2152
|
+
s && this.editor.on("beforeCreate", s), o && this.editor.on("create", o), i && this.editor.on("update", i), a && this.editor.on("selectionUpdate", a), c && this.editor.on("transaction", c), l && this.editor.on("focus", l), u && this.editor.on("blur", u), d && this.editor.on("destroy", d);
|
|
2116
2153
|
});
|
|
2117
2154
|
}
|
|
2118
2155
|
};
|
|
2119
|
-
ct.resolve =
|
|
2156
|
+
ct.resolve = Jt;
|
|
2120
2157
|
ct.sort = V;
|
|
2121
2158
|
ct.flatten = wt;
|
|
2122
2159
|
var Br = {};
|
|
2123
2160
|
vt(Br, {
|
|
2124
|
-
ClipboardTextSerializer: () =>
|
|
2125
|
-
Commands: () =>
|
|
2126
|
-
Delete: () =>
|
|
2127
|
-
Drop: () =>
|
|
2128
|
-
Editable: () =>
|
|
2129
|
-
FocusEvents: () =>
|
|
2130
|
-
Keymap: () =>
|
|
2131
|
-
Paste: () =>
|
|
2132
|
-
Tabindex: () =>
|
|
2133
|
-
TextDirection: () =>
|
|
2134
|
-
focusEventsPluginKey: () =>
|
|
2161
|
+
ClipboardTextSerializer: () => re,
|
|
2162
|
+
Commands: () => se,
|
|
2163
|
+
Delete: () => oe,
|
|
2164
|
+
Drop: () => ie,
|
|
2165
|
+
Editable: () => ae,
|
|
2166
|
+
FocusEvents: () => le,
|
|
2167
|
+
Keymap: () => de,
|
|
2168
|
+
Paste: () => ue,
|
|
2169
|
+
Tabindex: () => fe,
|
|
2170
|
+
TextDirection: () => pe,
|
|
2171
|
+
focusEventsPluginKey: () => ce
|
|
2135
2172
|
});
|
|
2136
|
-
var N = class
|
|
2173
|
+
var N = class ne extends xt {
|
|
2137
2174
|
constructor() {
|
|
2138
2175
|
super(...arguments), this.type = "extension";
|
|
2139
2176
|
}
|
|
@@ -2143,7 +2180,7 @@ var N = class ee extends xt {
|
|
|
2143
2180
|
*/
|
|
2144
2181
|
static create(t = {}) {
|
|
2145
2182
|
const n = typeof t == "function" ? t() : t;
|
|
2146
|
-
return new
|
|
2183
|
+
return new ne(n);
|
|
2147
2184
|
}
|
|
2148
2185
|
configure(t) {
|
|
2149
2186
|
return super.configure(t);
|
|
@@ -2152,7 +2189,7 @@ var N = class ee extends xt {
|
|
|
2152
2189
|
const n = typeof t == "function" ? t() : t;
|
|
2153
2190
|
return super.extend(n);
|
|
2154
2191
|
}
|
|
2155
|
-
},
|
|
2192
|
+
}, re = N.create({
|
|
2156
2193
|
name: "clipboardTextSerializer",
|
|
2157
2194
|
addOptions() {
|
|
2158
2195
|
return {
|
|
@@ -2162,11 +2199,11 @@ var N = class ee extends xt {
|
|
|
2162
2199
|
addProseMirrorPlugins() {
|
|
2163
2200
|
return [
|
|
2164
2201
|
new $({
|
|
2165
|
-
key: new
|
|
2202
|
+
key: new O("clipboardTextSerializer"),
|
|
2166
2203
|
props: {
|
|
2167
2204
|
clipboardTextSerializer: () => {
|
|
2168
|
-
const { editor: e } = this, { state: t, schema: n } = e, { doc: r, selection: s } = t, { ranges: o } = s, i = Math.min(...o.map((
|
|
2169
|
-
return
|
|
2205
|
+
const { editor: e } = this, { state: t, schema: n } = e, { doc: r, selection: s } = t, { ranges: o } = s, i = Math.min(...o.map((u) => u.$from.pos)), a = Math.max(...o.map((u) => u.$to.pos)), c = Yt(n);
|
|
2206
|
+
return Xt(r, { from: i, to: a }, {
|
|
2170
2207
|
...this.options.blockSeparator !== void 0 ? { blockSeparator: this.options.blockSeparator } : {},
|
|
2171
2208
|
textSerializers: c
|
|
2172
2209
|
});
|
|
@@ -2175,14 +2212,14 @@ var N = class ee extends xt {
|
|
|
2175
2212
|
})
|
|
2176
2213
|
];
|
|
2177
2214
|
}
|
|
2178
|
-
}),
|
|
2215
|
+
}), se = N.create({
|
|
2179
2216
|
name: "commands",
|
|
2180
2217
|
addCommands() {
|
|
2181
2218
|
return {
|
|
2182
|
-
...
|
|
2219
|
+
...jt
|
|
2183
2220
|
};
|
|
2184
2221
|
}
|
|
2185
|
-
}),
|
|
2222
|
+
}), oe = N.create({
|
|
2186
2223
|
name: "delete",
|
|
2187
2224
|
onUpdate({ transaction: e, appendedTransactions: t }) {
|
|
2188
2225
|
var n, r, s;
|
|
@@ -2190,31 +2227,31 @@ var N = class ee extends xt {
|
|
|
2190
2227
|
var i, a, c, l;
|
|
2191
2228
|
if ((l = (c = (a = (i = this.editor.options.coreExtensionOptions) == null ? void 0 : i.delete) == null ? void 0 : a.filterTransaction) == null ? void 0 : c.call(a, e)) != null ? l : e.getMeta("y-sync$"))
|
|
2192
2229
|
return;
|
|
2193
|
-
const
|
|
2194
|
-
|
|
2195
|
-
|
|
2230
|
+
const u = Hn(e.before, [e, ...t]);
|
|
2231
|
+
er(u).forEach((f) => {
|
|
2232
|
+
u.mapping.mapResult(f.oldRange.from).deletedAfter && u.mapping.mapResult(f.oldRange.to).deletedBefore && u.before.nodesBetween(f.oldRange.from, f.oldRange.to, (h, m) => {
|
|
2196
2233
|
const g = m + h.nodeSize - 2, v = f.oldRange.from <= m && g <= f.oldRange.to;
|
|
2197
2234
|
this.editor.emit("delete", {
|
|
2198
2235
|
type: "node",
|
|
2199
2236
|
node: h,
|
|
2200
2237
|
from: m,
|
|
2201
2238
|
to: g,
|
|
2202
|
-
newFrom:
|
|
2203
|
-
newTo:
|
|
2239
|
+
newFrom: u.mapping.map(m),
|
|
2240
|
+
newTo: u.mapping.map(g),
|
|
2204
2241
|
deletedRange: f.oldRange,
|
|
2205
2242
|
newRange: f.newRange,
|
|
2206
2243
|
partial: !v,
|
|
2207
2244
|
editor: this.editor,
|
|
2208
2245
|
transaction: e,
|
|
2209
|
-
combinedTransform:
|
|
2246
|
+
combinedTransform: u
|
|
2210
2247
|
});
|
|
2211
2248
|
});
|
|
2212
2249
|
});
|
|
2213
|
-
const p =
|
|
2214
|
-
|
|
2250
|
+
const p = u.mapping;
|
|
2251
|
+
u.steps.forEach((f, h) => {
|
|
2215
2252
|
var m, g;
|
|
2216
|
-
if (f instanceof
|
|
2217
|
-
const v = p.slice(h).map(f.from, -1), b = p.slice(h).map(f.to), k = p.invert().map(v, -1), M = p.invert().map(b), w = (m =
|
|
2253
|
+
if (f instanceof ve) {
|
|
2254
|
+
const v = p.slice(h).map(f.from, -1), b = p.slice(h).map(f.to), k = p.invert().map(v, -1), M = p.invert().map(b), w = (m = u.doc.nodeAt(v - 1)) == null ? void 0 : m.marks.some((E) => E.eq(f.mark)), S = (g = u.doc.nodeAt(b)) == null ? void 0 : g.marks.some((E) => E.eq(f.mark));
|
|
2218
2255
|
this.editor.emit("delete", {
|
|
2219
2256
|
type: "mark",
|
|
2220
2257
|
mark: f.mark,
|
|
@@ -2231,19 +2268,19 @@ var N = class ee extends xt {
|
|
|
2231
2268
|
partial: !!(S || w),
|
|
2232
2269
|
editor: this.editor,
|
|
2233
2270
|
transaction: e,
|
|
2234
|
-
combinedTransform:
|
|
2271
|
+
combinedTransform: u
|
|
2235
2272
|
});
|
|
2236
2273
|
}
|
|
2237
2274
|
});
|
|
2238
2275
|
};
|
|
2239
2276
|
(s = (r = (n = this.editor.options.coreExtensionOptions) == null ? void 0 : n.delete) == null ? void 0 : r.async) == null || s ? setTimeout(o, 0) : o();
|
|
2240
2277
|
}
|
|
2241
|
-
}),
|
|
2278
|
+
}), ie = N.create({
|
|
2242
2279
|
name: "drop",
|
|
2243
2280
|
addProseMirrorPlugins() {
|
|
2244
2281
|
return [
|
|
2245
2282
|
new $({
|
|
2246
|
-
key: new
|
|
2283
|
+
key: new O("tiptapDrop"),
|
|
2247
2284
|
props: {
|
|
2248
2285
|
handleDrop: (e, t, n, r) => {
|
|
2249
2286
|
this.editor.emit("drop", {
|
|
@@ -2257,25 +2294,25 @@ var N = class ee extends xt {
|
|
|
2257
2294
|
})
|
|
2258
2295
|
];
|
|
2259
2296
|
}
|
|
2260
|
-
}),
|
|
2297
|
+
}), ae = N.create({
|
|
2261
2298
|
name: "editable",
|
|
2262
2299
|
addProseMirrorPlugins() {
|
|
2263
2300
|
return [
|
|
2264
2301
|
new $({
|
|
2265
|
-
key: new
|
|
2302
|
+
key: new O("editable"),
|
|
2266
2303
|
props: {
|
|
2267
2304
|
editable: () => this.editor.options.editable
|
|
2268
2305
|
}
|
|
2269
2306
|
})
|
|
2270
2307
|
];
|
|
2271
2308
|
}
|
|
2272
|
-
}),
|
|
2309
|
+
}), ce = new O("focusEvents"), le = N.create({
|
|
2273
2310
|
name: "focusEvents",
|
|
2274
2311
|
addProseMirrorPlugins() {
|
|
2275
2312
|
const { editor: e } = this;
|
|
2276
2313
|
return [
|
|
2277
2314
|
new $({
|
|
2278
|
-
key:
|
|
2315
|
+
key: ce,
|
|
2279
2316
|
props: {
|
|
2280
2317
|
handleDOMEvents: {
|
|
2281
2318
|
focus: (t, n) => {
|
|
@@ -2293,15 +2330,15 @@ var N = class ee extends xt {
|
|
|
2293
2330
|
})
|
|
2294
2331
|
];
|
|
2295
2332
|
}
|
|
2296
|
-
}),
|
|
2333
|
+
}), de = N.create({
|
|
2297
2334
|
name: "keymap",
|
|
2298
2335
|
addKeyboardShortcuts() {
|
|
2299
2336
|
const e = () => this.editor.commands.first(({ commands: i }) => [
|
|
2300
2337
|
() => i.undoInputRule(),
|
|
2301
2338
|
// maybe convert first text block node to default node
|
|
2302
2339
|
() => i.command(({ tr: a }) => {
|
|
2303
|
-
const { selection: c, doc: l } = a, { empty:
|
|
2304
|
-
return !
|
|
2340
|
+
const { selection: c, doc: l } = a, { empty: u, $anchor: d } = c, { pos: p, parent: f } = d, h = d.parent.isTextblock && p > 0 ? a.doc.resolve(p - 1) : d, m = h.parent.type.spec.isolating, g = d.pos - d.parentOffset, v = m && h.parent.childCount === 1 ? g === d.pos : j.atStart(l).from === p;
|
|
2341
|
+
return !u || !f.type.isTextblock || f.textContent.length || !v || v && d.parent.type.name === "paragraph" ? !1 : i.clearNodes();
|
|
2305
2342
|
}),
|
|
2306
2343
|
() => i.deleteSelection(),
|
|
2307
2344
|
() => i.joinBackward(),
|
|
@@ -2338,7 +2375,7 @@ var N = class ee extends xt {
|
|
|
2338
2375
|
"Ctrl-a": () => this.editor.commands.selectTextblockStart(),
|
|
2339
2376
|
"Ctrl-e": () => this.editor.commands.selectTextblockEnd()
|
|
2340
2377
|
};
|
|
2341
|
-
return tt() ||
|
|
2378
|
+
return tt() || Wt() ? o : s;
|
|
2342
2379
|
},
|
|
2343
2380
|
addProseMirrorPlugins() {
|
|
2344
2381
|
return [
|
|
@@ -2348,7 +2385,7 @@ var N = class ee extends xt {
|
|
|
2348
2385
|
// This is an alternative to ProseMirror's `AllSelection`, which doesn’t work well
|
|
2349
2386
|
// with many other commands.
|
|
2350
2387
|
new $({
|
|
2351
|
-
key: new
|
|
2388
|
+
key: new O("clearDocument"),
|
|
2352
2389
|
appendTransaction: (e, t, n) => {
|
|
2353
2390
|
if (e.some((m) => m.getMeta("composition")))
|
|
2354
2391
|
return;
|
|
@@ -2371,12 +2408,12 @@ var N = class ee extends xt {
|
|
|
2371
2408
|
})
|
|
2372
2409
|
];
|
|
2373
2410
|
}
|
|
2374
|
-
}),
|
|
2411
|
+
}), ue = N.create({
|
|
2375
2412
|
name: "paste",
|
|
2376
2413
|
addProseMirrorPlugins() {
|
|
2377
2414
|
return [
|
|
2378
2415
|
new $({
|
|
2379
|
-
key: new
|
|
2416
|
+
key: new O("tiptapPaste"),
|
|
2380
2417
|
props: {
|
|
2381
2418
|
handlePaste: (e, t, n) => {
|
|
2382
2419
|
this.editor.emit("paste", {
|
|
@@ -2389,19 +2426,19 @@ var N = class ee extends xt {
|
|
|
2389
2426
|
})
|
|
2390
2427
|
];
|
|
2391
2428
|
}
|
|
2392
|
-
}),
|
|
2429
|
+
}), fe = N.create({
|
|
2393
2430
|
name: "tabindex",
|
|
2394
2431
|
addProseMirrorPlugins() {
|
|
2395
2432
|
return [
|
|
2396
2433
|
new $({
|
|
2397
|
-
key: new
|
|
2434
|
+
key: new O("tabindex"),
|
|
2398
2435
|
props: {
|
|
2399
2436
|
attributes: () => this.editor.isEditable ? { tabindex: "0" } : {}
|
|
2400
2437
|
}
|
|
2401
2438
|
})
|
|
2402
2439
|
];
|
|
2403
2440
|
}
|
|
2404
|
-
}),
|
|
2441
|
+
}), pe = N.create({
|
|
2405
2442
|
name: "textDirection",
|
|
2406
2443
|
addOptions() {
|
|
2407
2444
|
return {
|
|
@@ -2433,7 +2470,7 @@ var N = class ee extends xt {
|
|
|
2433
2470
|
addProseMirrorPlugins() {
|
|
2434
2471
|
return [
|
|
2435
2472
|
new $({
|
|
2436
|
-
key: new
|
|
2473
|
+
key: new O("textDirection"),
|
|
2437
2474
|
props: {
|
|
2438
2475
|
attributes: () => {
|
|
2439
2476
|
const e = this.options.direction;
|
|
@@ -2445,7 +2482,7 @@ var N = class ee extends xt {
|
|
|
2445
2482
|
})
|
|
2446
2483
|
];
|
|
2447
2484
|
}
|
|
2448
|
-
}),
|
|
2485
|
+
}), jr = class F {
|
|
2449
2486
|
constructor(t, n, r = !1, s = null) {
|
|
2450
2487
|
this.currentNode = null, this.actualDepth = null, this.isBlock = r, this.resolvedPos = t, this.editor = n, this.currentNode = s;
|
|
2451
2488
|
}
|
|
@@ -2570,7 +2607,7 @@ var N = class ee extends xt {
|
|
|
2570
2607
|
...t
|
|
2571
2608
|
}), this.editor.view.dispatch(n);
|
|
2572
2609
|
}
|
|
2573
|
-
},
|
|
2610
|
+
}, Lr = `.ProseMirror {
|
|
2574
2611
|
position: relative;
|
|
2575
2612
|
}
|
|
2576
2613
|
|
|
@@ -2641,14 +2678,14 @@ img.ProseMirror-separator {
|
|
|
2641
2678
|
.ProseMirror-focused .ProseMirror-gapcursor {
|
|
2642
2679
|
display: block;
|
|
2643
2680
|
}`;
|
|
2644
|
-
function
|
|
2681
|
+
function Hr(e, t, n) {
|
|
2645
2682
|
const r = document.querySelector("style[data-tiptap-style]");
|
|
2646
2683
|
if (r !== null)
|
|
2647
2684
|
return r;
|
|
2648
2685
|
const s = document.createElement("style");
|
|
2649
2686
|
return t && s.setAttribute("nonce", t), s.setAttribute("data-tiptap-style", ""), s.innerHTML = e, document.getElementsByTagName("head")[0].appendChild(s), s;
|
|
2650
2687
|
}
|
|
2651
|
-
var
|
|
2688
|
+
var ds = class extends Ar {
|
|
2652
2689
|
constructor(t = {}) {
|
|
2653
2690
|
super(), this.css = null, this.className = "tiptap", this.editorView = null, this.isFocused = !1, this.isInitialized = !1, this.extensionStorage = {}, this.instanceId = Math.random().toString(36).slice(2, 9), this.options = {
|
|
2654
2691
|
element: typeof document < "u" ? document.createElement("div") : null,
|
|
@@ -2685,11 +2722,11 @@ var cs = class extends Er {
|
|
|
2685
2722
|
onDelete: () => null,
|
|
2686
2723
|
enableExtensionDispatchTransaction: !0
|
|
2687
2724
|
}, this.isCapturingTransaction = !1, this.capturedTransaction = null, this.utils = {
|
|
2688
|
-
getUpdatedPosition:
|
|
2689
|
-
createMappablePosition:
|
|
2725
|
+
getUpdatedPosition: sr,
|
|
2726
|
+
createMappablePosition: or
|
|
2690
2727
|
}, this.setOptions(t), this.createExtensionManager(), this.createCommandManager(), this.createSchema(), this.on("beforeCreate", this.options.onBeforeCreate), this.emit("beforeCreate", { editor: this }), this.on("mount", this.options.onMount), this.on("unmount", this.options.onUnmount), this.on("contentError", this.options.onContentError), this.on("create", this.options.onCreate), this.on("update", this.options.onUpdate), this.on("selectionUpdate", this.options.onSelectionUpdate), this.on("transaction", this.options.onTransaction), this.on("focus", this.options.onFocus), this.on("blur", this.options.onBlur), this.on("destroy", this.options.onDestroy), this.on("drop", ({ event: s, slice: o, moved: i }) => this.options.onDrop(s, o, i)), this.on("paste", ({ event: s, slice: o }) => this.options.onPaste(s, o)), this.on("delete", this.options.onDelete);
|
|
2691
|
-
const n = this.createDoc(), r =
|
|
2692
|
-
this.editorState =
|
|
2728
|
+
const n = this.createDoc(), r = Ft(n, this.options.autofocus);
|
|
2729
|
+
this.editorState = je.create({
|
|
2693
2730
|
doc: n,
|
|
2694
2731
|
schema: this.schema,
|
|
2695
2732
|
selection: r || void 0
|
|
@@ -2751,7 +2788,7 @@ var cs = class extends Er {
|
|
|
2751
2788
|
* Inject CSS styles.
|
|
2752
2789
|
*/
|
|
2753
2790
|
injectCSS() {
|
|
2754
|
-
this.options.injectCSS && typeof document < "u" && (this.css =
|
|
2791
|
+
this.options.injectCSS && typeof document < "u" && (this.css = Hr(Lr, this.options.injectNonce));
|
|
2755
2792
|
}
|
|
2756
2793
|
/**
|
|
2757
2794
|
* Update editor options.
|
|
@@ -2824,7 +2861,7 @@ var cs = class extends Er {
|
|
|
2824
2861
|
* @returns The new editor state
|
|
2825
2862
|
*/
|
|
2826
2863
|
registerPlugin(t, n) {
|
|
2827
|
-
const r =
|
|
2864
|
+
const r = Kt(n) ? n(t, [...this.state.plugins]) : [...this.state.plugins, t], s = this.state.reconfigure({ plugins: r });
|
|
2828
2865
|
return this.view.updateState(s), s;
|
|
2829
2866
|
}
|
|
2830
2867
|
/**
|
|
@@ -2854,18 +2891,18 @@ var cs = class extends Er {
|
|
|
2854
2891
|
createExtensionManager() {
|
|
2855
2892
|
var t, n;
|
|
2856
2893
|
const s = [...this.options.enableCoreExtensions ? [
|
|
2857
|
-
|
|
2858
|
-
|
|
2894
|
+
ae,
|
|
2895
|
+
re.configure({
|
|
2859
2896
|
blockSeparator: (n = (t = this.options.coreExtensionOptions) == null ? void 0 : t.clipboardTextSerializer) == null ? void 0 : n.blockSeparator
|
|
2860
2897
|
}),
|
|
2861
|
-
|
|
2862
|
-
ce,
|
|
2898
|
+
se,
|
|
2863
2899
|
le,
|
|
2900
|
+
de,
|
|
2901
|
+
fe,
|
|
2902
|
+
ie,
|
|
2864
2903
|
ue,
|
|
2865
2904
|
oe,
|
|
2866
|
-
|
|
2867
|
-
se,
|
|
2868
|
-
fe.configure({
|
|
2905
|
+
pe.configure({
|
|
2869
2906
|
direction: this.options.textDirection
|
|
2870
2907
|
})
|
|
2871
2908
|
].filter((o) => typeof this.options.enableCoreExtensions == "object" ? this.options.enableCoreExtensions[o.name] !== !1 : !0) : [], ...this.options.extensions].filter((o) => ["extension", "node", "mark"].includes(o?.type));
|
|
@@ -2914,7 +2951,7 @@ var cs = class extends Er {
|
|
|
2914
2951
|
*/
|
|
2915
2952
|
createView(t) {
|
|
2916
2953
|
const { editorProps: n, enableExtensionDispatchTransaction: r } = this.options, s = n.dispatchTransaction || this.dispatchTransaction.bind(this), o = r ? this.extensionManager.dispatchTransaction(s) : s, i = n.transformPastedHTML, a = this.extensionManager.transformPastedHTML(i);
|
|
2917
|
-
this.editorView = new
|
|
2954
|
+
this.editorView = new qe(t, {
|
|
2918
2955
|
...n,
|
|
2919
2956
|
attributes: {
|
|
2920
2957
|
// add `role="textbox"` to the editor element
|
|
@@ -2967,9 +3004,9 @@ var cs = class extends Er {
|
|
|
2967
3004
|
this.capturedTransaction = t;
|
|
2968
3005
|
return;
|
|
2969
3006
|
}
|
|
2970
|
-
t.steps.forEach((
|
|
2971
|
-
var
|
|
2972
|
-
return (
|
|
3007
|
+
t.steps.forEach((u) => {
|
|
3008
|
+
var d;
|
|
3009
|
+
return (d = this.capturedTransaction) == null ? void 0 : d.step(u);
|
|
2973
3010
|
});
|
|
2974
3011
|
return;
|
|
2975
3012
|
}
|
|
@@ -2988,7 +3025,7 @@ var cs = class extends Er {
|
|
|
2988
3025
|
editor: this,
|
|
2989
3026
|
transaction: t
|
|
2990
3027
|
});
|
|
2991
|
-
const a = r.findLast((
|
|
3028
|
+
const a = r.findLast((u) => u.getMeta("focus") || u.getMeta("blur")), c = a?.getMeta("focus"), l = a?.getMeta("blur");
|
|
2992
3029
|
c && this.emit("focus", {
|
|
2993
3030
|
editor: this,
|
|
2994
3031
|
event: c.event,
|
|
@@ -2999,7 +3036,7 @@ var cs = class extends Er {
|
|
|
2999
3036
|
event: l.event,
|
|
3000
3037
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3001
3038
|
transaction: a
|
|
3002
|
-
}), !(t.getMeta("preventUpdate") || !r.some((
|
|
3039
|
+
}), !(t.getMeta("preventUpdate") || !r.some((u) => u.docChanged) || i.doc.eq(n.doc)) && this.emit("update", {
|
|
3003
3040
|
editor: this,
|
|
3004
3041
|
transaction: t,
|
|
3005
3042
|
appendedTransactions: r.slice(1)
|
|
@@ -3009,11 +3046,11 @@ var cs = class extends Er {
|
|
|
3009
3046
|
* Get attributes of the currently selected node or mark.
|
|
3010
3047
|
*/
|
|
3011
3048
|
getAttributes(t) {
|
|
3012
|
-
return
|
|
3049
|
+
return Zn(this.state, t);
|
|
3013
3050
|
}
|
|
3014
3051
|
isActive(t, n) {
|
|
3015
3052
|
const r = typeof t == "string" ? t : null, s = typeof t == "string" ? n : t;
|
|
3016
|
-
return
|
|
3053
|
+
return rr(this.state, r, s);
|
|
3017
3054
|
}
|
|
3018
3055
|
/**
|
|
3019
3056
|
* Get the document as JSON.
|
|
@@ -3034,10 +3071,10 @@ var cs = class extends Er {
|
|
|
3034
3071
|
const { blockSeparator: n = `
|
|
3035
3072
|
|
|
3036
3073
|
`, textSerializers: r = {} } = t || {};
|
|
3037
|
-
return
|
|
3074
|
+
return Yn(this.state.doc, {
|
|
3038
3075
|
blockSeparator: n,
|
|
3039
3076
|
textSerializers: {
|
|
3040
|
-
...
|
|
3077
|
+
...Yt(this.schema),
|
|
3041
3078
|
...r
|
|
3042
3079
|
}
|
|
3043
3080
|
});
|
|
@@ -3071,13 +3108,13 @@ var cs = class extends Er {
|
|
|
3071
3108
|
}
|
|
3072
3109
|
$pos(t) {
|
|
3073
3110
|
const n = this.state.doc.resolve(t);
|
|
3074
|
-
return new
|
|
3111
|
+
return new jr(n, this);
|
|
3075
3112
|
}
|
|
3076
3113
|
get $doc() {
|
|
3077
3114
|
return this.$pos(0);
|
|
3078
3115
|
}
|
|
3079
3116
|
};
|
|
3080
|
-
function
|
|
3117
|
+
function fs(e) {
|
|
3081
3118
|
return new at({
|
|
3082
3119
|
find: e.find,
|
|
3083
3120
|
handler: ({ state: t, range: n, match: r }) => {
|
|
@@ -3086,10 +3123,10 @@ function ds(e) {
|
|
|
3086
3123
|
return null;
|
|
3087
3124
|
const { tr: o } = t, i = r[r.length - 1], a = r[0];
|
|
3088
3125
|
if (i) {
|
|
3089
|
-
const c = a.search(/\S/), l = n.from + a.indexOf(i),
|
|
3090
|
-
if (
|
|
3126
|
+
const c = a.search(/\S/), l = n.from + a.indexOf(i), u = l + i.length;
|
|
3127
|
+
if (Qt(n.from, n.to, t.doc).filter((f) => f.mark.type.excluded.find((m) => m === e.type && m !== f.mark.type)).filter((f) => f.to > l).length)
|
|
3091
3128
|
return null;
|
|
3092
|
-
|
|
3129
|
+
u < n.to && o.delete(u, n.to), l > n.from && o.delete(n.from + c, l);
|
|
3093
3130
|
const p = n.from + c + i.length;
|
|
3094
3131
|
o.addMark(n.from + c, p, e.type.create(s || {})), o.removeStoredMark(e.type);
|
|
3095
3132
|
}
|
|
@@ -3097,7 +3134,7 @@ function ds(e) {
|
|
|
3097
3134
|
undoable: e.undoable
|
|
3098
3135
|
});
|
|
3099
3136
|
}
|
|
3100
|
-
function
|
|
3137
|
+
function ps(e) {
|
|
3101
3138
|
return new at({
|
|
3102
3139
|
find: e.find,
|
|
3103
3140
|
handler: ({ state: t, range: n, match: r }) => {
|
|
@@ -3106,10 +3143,10 @@ function us(e) {
|
|
|
3106
3143
|
const c = e.type.create(s);
|
|
3107
3144
|
if (r[1]) {
|
|
3108
3145
|
const l = r[0].lastIndexOf(r[1]);
|
|
3109
|
-
let
|
|
3110
|
-
|
|
3111
|
-
const
|
|
3112
|
-
o.insertText(
|
|
3146
|
+
let u = i + l;
|
|
3147
|
+
u > a ? u = a : a = u + r[1].length;
|
|
3148
|
+
const d = r[0][r[0].length - 1];
|
|
3149
|
+
o.insertText(d, i + r[0].length - 1), o.replaceWith(u, a, c);
|
|
3113
3150
|
} else if (r[0]) {
|
|
3114
3151
|
const l = e.type.isInline ? i : i - 1;
|
|
3115
3152
|
o.insert(l, e.type.create(s)).delete(o.mapping.map(i), o.mapping.map(a));
|
|
@@ -3119,7 +3156,7 @@ function us(e) {
|
|
|
3119
3156
|
undoable: e.undoable
|
|
3120
3157
|
});
|
|
3121
3158
|
}
|
|
3122
|
-
function
|
|
3159
|
+
function hs(e) {
|
|
3123
3160
|
return new at({
|
|
3124
3161
|
find: e.find,
|
|
3125
3162
|
handler: ({ state: t, range: n, match: r }) => {
|
|
@@ -3131,31 +3168,31 @@ function fs(e) {
|
|
|
3131
3168
|
undoable: e.undoable
|
|
3132
3169
|
});
|
|
3133
3170
|
}
|
|
3134
|
-
function
|
|
3171
|
+
function ms(e) {
|
|
3135
3172
|
return new at({
|
|
3136
3173
|
find: e.find,
|
|
3137
3174
|
handler: ({ state: t, range: n, match: r, chain: s }) => {
|
|
3138
|
-
const o = x(e.getAttributes, void 0, r) || {}, i = t.tr.delete(n.from, n.to), c = i.doc.resolve(n.from).blockRange(), l = c &&
|
|
3175
|
+
const o = x(e.getAttributes, void 0, r) || {}, i = t.tr.delete(n.from, n.to), c = i.doc.resolve(n.from).blockRange(), l = c && me(c, e.type, o);
|
|
3139
3176
|
if (!l)
|
|
3140
3177
|
return null;
|
|
3141
3178
|
if (i.wrap(c, l), e.keepMarks && e.editor) {
|
|
3142
|
-
const { selection:
|
|
3179
|
+
const { selection: d, storedMarks: p } = t, { splittableMarks: f } = e.editor.extensionManager, h = p || d.$to.parentOffset && d.$from.marks();
|
|
3143
3180
|
if (h) {
|
|
3144
3181
|
const m = h.filter((g) => f.includes(g.type.name));
|
|
3145
3182
|
i.ensureMarks(m);
|
|
3146
3183
|
}
|
|
3147
3184
|
}
|
|
3148
3185
|
if (e.keepAttributes) {
|
|
3149
|
-
const
|
|
3150
|
-
s().updateAttributes(
|
|
3186
|
+
const d = e.type.name === "bulletList" || e.type.name === "orderedList" ? "listItem" : "taskList";
|
|
3187
|
+
s().updateAttributes(d, o).run();
|
|
3151
3188
|
}
|
|
3152
|
-
const
|
|
3153
|
-
|
|
3189
|
+
const u = i.doc.resolve(n.from - 1).nodeBefore;
|
|
3190
|
+
u && u.type === e.type && gt(i.doc, n.from - 1) && (!e.joinPredicate || e.joinPredicate(r, u)) && i.join(n.from - 1);
|
|
3154
3191
|
},
|
|
3155
3192
|
undoable: e.undoable
|
|
3156
3193
|
});
|
|
3157
3194
|
}
|
|
3158
|
-
var
|
|
3195
|
+
var Fr = (e) => "touches" in e, gs = class {
|
|
3159
3196
|
/**
|
|
3160
3197
|
* Creates a new ResizableNodeView instance.
|
|
3161
3198
|
*
|
|
@@ -3184,8 +3221,8 @@ var Lr = (e) => "touches" in e, hs = class {
|
|
|
3184
3221
|
const c = a.touches[0];
|
|
3185
3222
|
if (!c)
|
|
3186
3223
|
return;
|
|
3187
|
-
const l = c.clientX - this.startX,
|
|
3188
|
-
this.handleResize(l,
|
|
3224
|
+
const l = c.clientX - this.startX, u = c.clientY - this.startY;
|
|
3225
|
+
this.handleResize(l, u);
|
|
3189
3226
|
}, this.handleMouseUp = () => {
|
|
3190
3227
|
if (!this.isResizing)
|
|
3191
3228
|
return;
|
|
@@ -3346,7 +3383,7 @@ var Lr = (e) => "touches" in e, hs = class {
|
|
|
3346
3383
|
* @param direction - The direction of the handle being dragged
|
|
3347
3384
|
*/
|
|
3348
3385
|
handleResizeStart(e, t) {
|
|
3349
|
-
e.preventDefault(), e.stopPropagation(), this.isResizing = !0, this.activeHandle = t,
|
|
3386
|
+
e.preventDefault(), e.stopPropagation(), this.isResizing = !0, this.activeHandle = t, Fr(e) ? (this.startX = e.touches[0].clientX, this.startY = e.touches[0].clientY) : (this.startX = e.clientX, this.startY = e.clientY), this.startWidth = this.element.offsetWidth, this.startHeight = this.element.offsetHeight, this.startWidth > 0 && this.startHeight > 0 && (this.aspectRatio = this.startWidth / this.startHeight), this.getPos(), this.container.dataset.resizeState = "true", this.classNames.resizing && this.container.classList.add(this.classNames.resizing), document.addEventListener("mousemove", this.handleMouseMove), document.addEventListener("touchmove", this.handleTouchMove), document.addEventListener("mouseup", this.handleMouseUp), document.addEventListener("keydown", this.handleKeyDown), document.addEventListener("keyup", this.handleKeyUp);
|
|
3350
3387
|
}
|
|
3351
3388
|
handleResize(e, t) {
|
|
3352
3389
|
if (!this.activeHandle)
|
|
@@ -3390,8 +3427,8 @@ var Lr = (e) => "touches" in e, hs = class {
|
|
|
3390
3427
|
applyConstraints(e, t, n) {
|
|
3391
3428
|
var r, s, o, i;
|
|
3392
3429
|
if (!n) {
|
|
3393
|
-
let l = Math.max(this.minSize.width, e),
|
|
3394
|
-
return (r = this.maxSize) != null && r.width && (l = Math.min(this.maxSize.width, l)), (s = this.maxSize) != null && s.height && (
|
|
3430
|
+
let l = Math.max(this.minSize.width, e), u = Math.max(this.minSize.height, t);
|
|
3431
|
+
return (r = this.maxSize) != null && r.width && (l = Math.min(this.maxSize.width, l)), (s = this.maxSize) != null && s.height && (u = Math.min(this.maxSize.height, u)), { width: l, height: u };
|
|
3395
3432
|
}
|
|
3396
3433
|
let a = e, c = t;
|
|
3397
3434
|
return a < this.minSize.width && (a = this.minSize.width, c = a / this.aspectRatio), c < this.minSize.height && (c = this.minSize.height, a = c * this.aspectRatio), (o = this.maxSize) != null && o.width && a > this.maxSize.width && (a = this.maxSize.width, c = a / this.aspectRatio), (i = this.maxSize) != null && i.height && c > this.maxSize.height && (c = this.maxSize.height, a = c * this.aspectRatio), { width: a, height: c };
|
|
@@ -3423,7 +3460,7 @@ var Lr = (e) => "touches" in e, hs = class {
|
|
|
3423
3460
|
};
|
|
3424
3461
|
}
|
|
3425
3462
|
};
|
|
3426
|
-
function
|
|
3463
|
+
function vs(e, t) {
|
|
3427
3464
|
const { selection: n } = e, { $from: r } = n;
|
|
3428
3465
|
if (n instanceof nt) {
|
|
3429
3466
|
const o = r.index();
|
|
@@ -3438,14 +3475,14 @@ function ms(e, t) {
|
|
|
3438
3475
|
}
|
|
3439
3476
|
return !1;
|
|
3440
3477
|
}
|
|
3441
|
-
var
|
|
3442
|
-
vt(
|
|
3443
|
-
createAtomBlockMarkdownSpec: () =>
|
|
3444
|
-
createBlockMarkdownSpec: () =>
|
|
3445
|
-
createInlineMarkdownSpec: () =>
|
|
3478
|
+
var Vr = {};
|
|
3479
|
+
vt(Vr, {
|
|
3480
|
+
createAtomBlockMarkdownSpec: () => Wr,
|
|
3481
|
+
createBlockMarkdownSpec: () => Ur,
|
|
3482
|
+
createInlineMarkdownSpec: () => Jr,
|
|
3446
3483
|
parseAttributes: () => St,
|
|
3447
|
-
parseIndentedBlocks: () =>
|
|
3448
|
-
renderNestedMarkdownContent: () =>
|
|
3484
|
+
parseIndentedBlocks: () => Xr,
|
|
3485
|
+
renderNestedMarkdownContent: () => Yr,
|
|
3449
3486
|
serializeAttributes: () => Et
|
|
3450
3487
|
});
|
|
3451
3488
|
function St(e) {
|
|
@@ -3453,20 +3490,20 @@ function St(e) {
|
|
|
3453
3490
|
return {};
|
|
3454
3491
|
const t = {}, n = [], r = e.replace(/["']([^"']*)["']/g, (l) => (n.push(l), `__QUOTED_${n.length - 1}__`)), s = r.match(/(?:^|\s)\.([a-zA-Z][\w-]*)/g);
|
|
3455
3492
|
if (s) {
|
|
3456
|
-
const l = s.map((
|
|
3493
|
+
const l = s.map((u) => u.trim().slice(1));
|
|
3457
3494
|
t.class = l.join(" ");
|
|
3458
3495
|
}
|
|
3459
3496
|
const o = r.match(/(?:^|\s)#([a-zA-Z][\w-]*)/);
|
|
3460
3497
|
o && (t.id = o[1]);
|
|
3461
3498
|
const i = /([a-zA-Z][\w-]*)\s*=\s*(__QUOTED_\d+__)/g;
|
|
3462
|
-
Array.from(r.matchAll(i)).forEach(([, l,
|
|
3463
|
-
var
|
|
3464
|
-
const p = parseInt(((
|
|
3499
|
+
Array.from(r.matchAll(i)).forEach(([, l, u]) => {
|
|
3500
|
+
var d;
|
|
3501
|
+
const p = parseInt(((d = u.match(/__QUOTED_(\d+)__/)) == null ? void 0 : d[1]) || "0", 10), f = n[p];
|
|
3465
3502
|
f && (t[l] = f.slice(1, -1));
|
|
3466
3503
|
});
|
|
3467
3504
|
const c = r.replace(/(?:^|\s)\.([a-zA-Z][\w-]*)/g, "").replace(/(?:^|\s)#([a-zA-Z][\w-]*)/g, "").replace(/([a-zA-Z][\w-]*)\s*=\s*__QUOTED_\d+__/g, "").trim();
|
|
3468
|
-
return c && c.split(/\s+/).filter(Boolean).forEach((
|
|
3469
|
-
|
|
3505
|
+
return c && c.split(/\s+/).filter(Boolean).forEach((u) => {
|
|
3506
|
+
u.match(/^[a-zA-Z][\w-]*$/) && (t[u] = !0);
|
|
3470
3507
|
}), t;
|
|
3471
3508
|
}
|
|
3472
3509
|
function Et(e) {
|
|
@@ -3477,7 +3514,7 @@ function Et(e) {
|
|
|
3477
3514
|
n === "class" || n === "id" || (r === !0 ? t.push(n) : r !== !1 && r != null && t.push(`${n}="${String(r)}"`));
|
|
3478
3515
|
}), t.join(" ");
|
|
3479
3516
|
}
|
|
3480
|
-
function
|
|
3517
|
+
function Wr(e) {
|
|
3481
3518
|
const {
|
|
3482
3519
|
nodeName: t,
|
|
3483
3520
|
name: n,
|
|
@@ -3486,29 +3523,29 @@ function Fr(e) {
|
|
|
3486
3523
|
defaultAttributes: o = {},
|
|
3487
3524
|
requiredAttributes: i = [],
|
|
3488
3525
|
allowedAttributes: a
|
|
3489
|
-
} = e, c = n || t, l = (
|
|
3526
|
+
} = e, c = n || t, l = (u) => {
|
|
3490
3527
|
if (!a)
|
|
3491
|
-
return
|
|
3492
|
-
const
|
|
3528
|
+
return u;
|
|
3529
|
+
const d = {};
|
|
3493
3530
|
return a.forEach((p) => {
|
|
3494
|
-
p in
|
|
3495
|
-
}),
|
|
3531
|
+
p in u && (d[p] = u[p]);
|
|
3532
|
+
}), d;
|
|
3496
3533
|
};
|
|
3497
3534
|
return {
|
|
3498
|
-
parseMarkdown: (
|
|
3499
|
-
const p = { ...o, ...
|
|
3500
|
-
return
|
|
3535
|
+
parseMarkdown: (u, d) => {
|
|
3536
|
+
const p = { ...o, ...u.attributes };
|
|
3537
|
+
return d.createNode(t, p, []);
|
|
3501
3538
|
},
|
|
3502
3539
|
markdownTokenizer: {
|
|
3503
3540
|
name: t,
|
|
3504
3541
|
level: "block",
|
|
3505
|
-
start(
|
|
3506
|
-
var
|
|
3507
|
-
const p = new RegExp(`^:::${c}(?:\\s|$)`, "m"), f = (
|
|
3542
|
+
start(u) {
|
|
3543
|
+
var d;
|
|
3544
|
+
const p = new RegExp(`^:::${c}(?:\\s|$)`, "m"), f = (d = u.match(p)) == null ? void 0 : d.index;
|
|
3508
3545
|
return f !== void 0 ? f : -1;
|
|
3509
3546
|
},
|
|
3510
|
-
tokenize(
|
|
3511
|
-
const f = new RegExp(`^:::${c}(?:\\s+\\{([^}]*)\\})?\\s*:::(?:\\n|$)`), h =
|
|
3547
|
+
tokenize(u, d, p) {
|
|
3548
|
+
const f = new RegExp(`^:::${c}(?:\\s+\\{([^}]*)\\})?\\s*:::(?:\\n|$)`), h = u.match(f);
|
|
3512
3549
|
if (!h)
|
|
3513
3550
|
return;
|
|
3514
3551
|
const m = h[1] || "", g = r(m);
|
|
@@ -3520,13 +3557,13 @@ function Fr(e) {
|
|
|
3520
3557
|
};
|
|
3521
3558
|
}
|
|
3522
3559
|
},
|
|
3523
|
-
renderMarkdown: (
|
|
3524
|
-
const
|
|
3560
|
+
renderMarkdown: (u) => {
|
|
3561
|
+
const d = l(u.attrs || {}), p = s(d), f = p ? ` {${p}}` : "";
|
|
3525
3562
|
return `:::${c}${f} :::`;
|
|
3526
3563
|
}
|
|
3527
3564
|
};
|
|
3528
3565
|
}
|
|
3529
|
-
function
|
|
3566
|
+
function Ur(e) {
|
|
3530
3567
|
const {
|
|
3531
3568
|
nodeName: t,
|
|
3532
3569
|
name: n,
|
|
@@ -3536,42 +3573,42 @@ function Vr(e) {
|
|
|
3536
3573
|
defaultAttributes: i = {},
|
|
3537
3574
|
content: a = "block",
|
|
3538
3575
|
allowedAttributes: c
|
|
3539
|
-
} = e, l = n || t,
|
|
3576
|
+
} = e, l = n || t, u = (d) => {
|
|
3540
3577
|
if (!c)
|
|
3541
|
-
return
|
|
3578
|
+
return d;
|
|
3542
3579
|
const p = {};
|
|
3543
3580
|
return c.forEach((f) => {
|
|
3544
|
-
f in
|
|
3581
|
+
f in d && (p[f] = d[f]);
|
|
3545
3582
|
}), p;
|
|
3546
3583
|
};
|
|
3547
3584
|
return {
|
|
3548
|
-
parseMarkdown: (
|
|
3585
|
+
parseMarkdown: (d, p) => {
|
|
3549
3586
|
let f;
|
|
3550
3587
|
if (r) {
|
|
3551
|
-
const m = r(
|
|
3588
|
+
const m = r(d);
|
|
3552
3589
|
f = typeof m == "string" ? [{ type: "text", text: m }] : m;
|
|
3553
|
-
} else a === "block" ? f = p.parseChildren(
|
|
3554
|
-
const h = { ...i, ...
|
|
3590
|
+
} else a === "block" ? f = p.parseChildren(d.tokens || []) : f = p.parseInline(d.tokens || []);
|
|
3591
|
+
const h = { ...i, ...d.attributes };
|
|
3555
3592
|
return p.createNode(t, h, f);
|
|
3556
3593
|
},
|
|
3557
3594
|
markdownTokenizer: {
|
|
3558
3595
|
name: t,
|
|
3559
3596
|
level: "block",
|
|
3560
|
-
start(
|
|
3597
|
+
start(d) {
|
|
3561
3598
|
var p;
|
|
3562
|
-
const f = new RegExp(`^:::${l}`, "m"), h = (p =
|
|
3599
|
+
const f = new RegExp(`^:::${l}`, "m"), h = (p = d.match(f)) == null ? void 0 : p.index;
|
|
3563
3600
|
return h !== void 0 ? h : -1;
|
|
3564
3601
|
},
|
|
3565
|
-
tokenize(
|
|
3602
|
+
tokenize(d, p, f) {
|
|
3566
3603
|
var h;
|
|
3567
|
-
const m = new RegExp(`^:::${l}(?:\\s+\\{([^}]*)\\})?\\s*\\n`), g =
|
|
3604
|
+
const m = new RegExp(`^:::${l}(?:\\s+\\{([^}]*)\\})?\\s*\\n`), g = d.match(m);
|
|
3568
3605
|
if (!g)
|
|
3569
3606
|
return;
|
|
3570
3607
|
const [v, b = ""] = g, k = s(b);
|
|
3571
3608
|
let M = 1;
|
|
3572
3609
|
const w = v.length;
|
|
3573
3610
|
let S = "";
|
|
3574
|
-
const E = /^:::([\w-]*)(\s.*)?/gm, A =
|
|
3611
|
+
const E = /^:::([\w-]*)(\s.*)?/gm, A = d.slice(w);
|
|
3575
3612
|
for (E.lastIndex = 0; ; ) {
|
|
3576
3613
|
const C = E.exec(A);
|
|
3577
3614
|
if (C === null)
|
|
@@ -3583,7 +3620,7 @@ function Vr(e) {
|
|
|
3583
3620
|
else if (M -= 1, M === 0) {
|
|
3584
3621
|
const K = A.slice(0, _);
|
|
3585
3622
|
S = K.trim();
|
|
3586
|
-
const dt =
|
|
3623
|
+
const dt = d.slice(0, w + _ + C[0].length);
|
|
3587
3624
|
let I = [];
|
|
3588
3625
|
if (S)
|
|
3589
3626
|
if (a === "block")
|
|
@@ -3610,8 +3647,8 @@ function Vr(e) {
|
|
|
3610
3647
|
}
|
|
3611
3648
|
}
|
|
3612
3649
|
},
|
|
3613
|
-
renderMarkdown: (
|
|
3614
|
-
const f = d
|
|
3650
|
+
renderMarkdown: (d, p) => {
|
|
3651
|
+
const f = u(d.attrs || {}), h = o(f), m = h ? ` {${h}}` : "", g = p.renderChildren(d.content || [], `
|
|
3615
3652
|
|
|
3616
3653
|
`);
|
|
3617
3654
|
return `:::${l}${m}
|
|
@@ -3622,7 +3659,7 @@ ${g}
|
|
|
3622
3659
|
}
|
|
3623
3660
|
};
|
|
3624
3661
|
}
|
|
3625
|
-
function
|
|
3662
|
+
function Kr(e) {
|
|
3626
3663
|
if (!e.trim())
|
|
3627
3664
|
return {};
|
|
3628
3665
|
const t = {}, n = /(\w+)=(?:"([^"]*)"|'([^']*)')/g;
|
|
@@ -3633,20 +3670,20 @@ function Wr(e) {
|
|
|
3633
3670
|
}
|
|
3634
3671
|
return t;
|
|
3635
3672
|
}
|
|
3636
|
-
function
|
|
3673
|
+
function qr(e) {
|
|
3637
3674
|
return Object.entries(e).filter(([, t]) => t != null).map(([t, n]) => `${t}="${n}"`).join(" ");
|
|
3638
3675
|
}
|
|
3639
|
-
function
|
|
3676
|
+
function Jr(e) {
|
|
3640
3677
|
const {
|
|
3641
3678
|
nodeName: t,
|
|
3642
3679
|
name: n,
|
|
3643
3680
|
getContent: r,
|
|
3644
|
-
parseAttributes: s =
|
|
3645
|
-
serializeAttributes: o =
|
|
3681
|
+
parseAttributes: s = Kr,
|
|
3682
|
+
serializeAttributes: o = qr,
|
|
3646
3683
|
defaultAttributes: i = {},
|
|
3647
3684
|
selfClosing: a = !1,
|
|
3648
3685
|
allowedAttributes: c
|
|
3649
|
-
} = e, l = n || t,
|
|
3686
|
+
} = e, l = n || t, u = (p) => {
|
|
3650
3687
|
if (!c)
|
|
3651
3688
|
return p;
|
|
3652
3689
|
const f = {};
|
|
@@ -3659,7 +3696,7 @@ function Kr(e) {
|
|
|
3659
3696
|
f[m] = v;
|
|
3660
3697
|
}
|
|
3661
3698
|
}), f;
|
|
3662
|
-
},
|
|
3699
|
+
}, d = l.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
3663
3700
|
return {
|
|
3664
3701
|
parseMarkdown: (p, f) => {
|
|
3665
3702
|
const h = { ...i, ...p.attributes };
|
|
@@ -3672,11 +3709,11 @@ function Kr(e) {
|
|
|
3672
3709
|
name: t,
|
|
3673
3710
|
level: "inline",
|
|
3674
3711
|
start(p) {
|
|
3675
|
-
const f = a ? new RegExp(`\\[${
|
|
3712
|
+
const f = a ? new RegExp(`\\[${d}\\s*[^\\]]*\\]`) : new RegExp(`\\[${d}\\s*[^\\]]*\\][\\s\\S]*?\\[\\/${d}\\]`), h = p.match(f), m = h?.index;
|
|
3676
3713
|
return m !== void 0 ? m : -1;
|
|
3677
3714
|
},
|
|
3678
3715
|
tokenize(p, f, h) {
|
|
3679
|
-
const m = a ? new RegExp(`^\\[${
|
|
3716
|
+
const m = a ? new RegExp(`^\\[${d}\\s*([^\\]]*)\\]`) : new RegExp(`^\\[${d}\\s*([^\\]]*)\\]([\\s\\S]*?)\\[\\/${d}\\]`), g = p.match(m);
|
|
3680
3717
|
if (!g)
|
|
3681
3718
|
return;
|
|
3682
3719
|
let v = "", b = "";
|
|
@@ -3699,24 +3736,24 @@ function Kr(e) {
|
|
|
3699
3736
|
renderMarkdown: (p) => {
|
|
3700
3737
|
let f = "";
|
|
3701
3738
|
r ? f = r(p) : p.content && p.content.length > 0 && (f = p.content.filter((v) => v.type === "text").map((v) => v.text).join(""));
|
|
3702
|
-
const h =
|
|
3739
|
+
const h = u(p.attrs || {}), m = o(h), g = m ? ` ${m}` : "";
|
|
3703
3740
|
return a ? `[${l}${g}]` : `[${l}${g}]${f}[/${l}]`;
|
|
3704
3741
|
}
|
|
3705
3742
|
};
|
|
3706
3743
|
}
|
|
3707
|
-
function
|
|
3744
|
+
function Xr(e, t, n) {
|
|
3708
3745
|
var r, s, o, i;
|
|
3709
3746
|
const a = e.split(`
|
|
3710
3747
|
`), c = [];
|
|
3711
|
-
let l = "",
|
|
3712
|
-
const
|
|
3713
|
-
for (;
|
|
3714
|
-
const p = a[
|
|
3748
|
+
let l = "", u = 0;
|
|
3749
|
+
const d = t.baseIndentSize || 2;
|
|
3750
|
+
for (; u < a.length; ) {
|
|
3751
|
+
const p = a[u], f = p.match(t.itemPattern);
|
|
3715
3752
|
if (!f) {
|
|
3716
3753
|
if (c.length > 0)
|
|
3717
3754
|
break;
|
|
3718
3755
|
if (p.trim() === "") {
|
|
3719
|
-
|
|
3756
|
+
u += 1, l = `${l}${p}
|
|
3720
3757
|
`;
|
|
3721
3758
|
continue;
|
|
3722
3759
|
} else
|
|
@@ -3726,29 +3763,29 @@ function qr(e, t, n) {
|
|
|
3726
3763
|
l = `${l}${p}
|
|
3727
3764
|
`;
|
|
3728
3765
|
const v = [g];
|
|
3729
|
-
for (
|
|
3730
|
-
const w = a[
|
|
3766
|
+
for (u += 1; u < a.length; ) {
|
|
3767
|
+
const w = a[u];
|
|
3731
3768
|
if (w.trim() === "") {
|
|
3732
|
-
const E = a.slice(
|
|
3769
|
+
const E = a.slice(u + 1).findIndex((_) => _.trim() !== "");
|
|
3733
3770
|
if (E === -1)
|
|
3734
3771
|
break;
|
|
3735
|
-
if ((((s = (r = a[
|
|
3772
|
+
if ((((s = (r = a[u + 1 + E].match(/^(\s*)/)) == null ? void 0 : r[1]) == null ? void 0 : s.length) || 0) > m) {
|
|
3736
3773
|
v.push(w), l = `${l}${w}
|
|
3737
|
-
`,
|
|
3774
|
+
`, u += 1;
|
|
3738
3775
|
continue;
|
|
3739
3776
|
} else
|
|
3740
3777
|
break;
|
|
3741
3778
|
}
|
|
3742
3779
|
if ((((i = (o = w.match(/^(\s*)/)) == null ? void 0 : o[1]) == null ? void 0 : i.length) || 0) > m)
|
|
3743
3780
|
v.push(w), l = `${l}${w}
|
|
3744
|
-
`,
|
|
3781
|
+
`, u += 1;
|
|
3745
3782
|
else
|
|
3746
3783
|
break;
|
|
3747
3784
|
}
|
|
3748
3785
|
let b;
|
|
3749
3786
|
const k = v.slice(1);
|
|
3750
3787
|
if (k.length > 0) {
|
|
3751
|
-
const w = k.map((S) => S.slice(m +
|
|
3788
|
+
const w = k.map((S) => S.slice(m + d)).join(`
|
|
3752
3789
|
`);
|
|
3753
3790
|
w.trim() && (t.customNestedParser ? b = t.customNestedParser(w) : b = n.blockTokens(w));
|
|
3754
3791
|
}
|
|
@@ -3761,45 +3798,45 @@ function qr(e, t, n) {
|
|
|
3761
3798
|
raw: l
|
|
3762
3799
|
};
|
|
3763
3800
|
}
|
|
3764
|
-
function
|
|
3801
|
+
function Yr(e, t, n, r) {
|
|
3765
3802
|
if (!e || !Array.isArray(e.content))
|
|
3766
3803
|
return "";
|
|
3767
3804
|
const s = typeof n == "function" ? n(r) : n, [o, ...i] = e.content, a = t.renderChildren([o]), c = [`${s}${a}`];
|
|
3768
3805
|
return i && i.length > 0 && i.forEach((l) => {
|
|
3769
|
-
const
|
|
3770
|
-
if (
|
|
3771
|
-
const
|
|
3806
|
+
const u = t.renderChildren([l]);
|
|
3807
|
+
if (u) {
|
|
3808
|
+
const d = u.split(`
|
|
3772
3809
|
`).map((p) => p ? t.indent(p) : "").join(`
|
|
3773
3810
|
`);
|
|
3774
|
-
c.push(
|
|
3811
|
+
c.push(d);
|
|
3775
3812
|
}
|
|
3776
3813
|
}), c.join(`
|
|
3777
3814
|
`);
|
|
3778
3815
|
}
|
|
3779
|
-
function
|
|
3816
|
+
function Qr(e, t, n = {}) {
|
|
3780
3817
|
const { state: r } = t, { doc: s, tr: o } = r, i = e;
|
|
3781
3818
|
s.descendants((a, c) => {
|
|
3782
|
-
const l = o.mapping.map(c),
|
|
3783
|
-
let
|
|
3819
|
+
const l = o.mapping.map(c), u = o.mapping.map(c) + a.nodeSize;
|
|
3820
|
+
let d = null;
|
|
3784
3821
|
if (a.marks.forEach((f) => {
|
|
3785
3822
|
if (f !== i)
|
|
3786
3823
|
return !1;
|
|
3787
|
-
|
|
3788
|
-
}), !
|
|
3824
|
+
d = f;
|
|
3825
|
+
}), !d)
|
|
3789
3826
|
return;
|
|
3790
3827
|
let p = !1;
|
|
3791
3828
|
if (Object.keys(n).forEach((f) => {
|
|
3792
|
-
n[f] !==
|
|
3829
|
+
n[f] !== d.attrs[f] && (p = !0);
|
|
3793
3830
|
}), p) {
|
|
3794
3831
|
const f = e.type.create({
|
|
3795
3832
|
...e.attrs,
|
|
3796
3833
|
...n
|
|
3797
3834
|
});
|
|
3798
|
-
o.removeMark(l,
|
|
3835
|
+
o.removeMark(l, u, e.type), o.addMark(l, u, f);
|
|
3799
3836
|
}
|
|
3800
3837
|
}), o.docChanged && t.view.dispatch(o);
|
|
3801
3838
|
}
|
|
3802
|
-
var
|
|
3839
|
+
var ys = class he extends xt {
|
|
3803
3840
|
constructor() {
|
|
3804
3841
|
super(...arguments), this.type = "node";
|
|
3805
3842
|
}
|
|
@@ -3809,7 +3846,7 @@ var gs = class pe extends xt {
|
|
|
3809
3846
|
*/
|
|
3810
3847
|
static create(t = {}) {
|
|
3811
3848
|
const n = typeof t == "function" ? t() : t;
|
|
3812
|
-
return new
|
|
3849
|
+
return new he(n);
|
|
3813
3850
|
}
|
|
3814
3851
|
configure(t) {
|
|
3815
3852
|
return super.configure(t);
|
|
@@ -3819,8 +3856,8 @@ var gs = class pe extends xt {
|
|
|
3819
3856
|
return super.extend(n);
|
|
3820
3857
|
}
|
|
3821
3858
|
};
|
|
3822
|
-
function
|
|
3823
|
-
return new
|
|
3859
|
+
function bs(e) {
|
|
3860
|
+
return new zr({
|
|
3824
3861
|
find: e.find,
|
|
3825
3862
|
handler: ({ state: t, range: n, match: r, pasteEvent: s }) => {
|
|
3826
3863
|
const o = x(e.getAttributes, void 0, r, s);
|
|
@@ -3829,15 +3866,15 @@ function vs(e) {
|
|
|
3829
3866
|
const { tr: i } = t, a = r[r.length - 1], c = r[0];
|
|
3830
3867
|
let l = n.to;
|
|
3831
3868
|
if (a) {
|
|
3832
|
-
const
|
|
3833
|
-
if (
|
|
3869
|
+
const u = c.search(/\S/), d = n.from + c.indexOf(a), p = d + a.length;
|
|
3870
|
+
if (Qt(n.from, n.to, t.doc).filter((h) => h.mark.type.excluded.find((g) => g === e.type && g !== h.mark.type)).filter((h) => h.to > d).length)
|
|
3834
3871
|
return null;
|
|
3835
|
-
p < n.to && i.delete(p, n.to),
|
|
3872
|
+
p < n.to && i.delete(p, n.to), d > n.from && i.delete(n.from + u, d), l = n.from + u + a.length, i.addMark(n.from + u, l, e.type.create(o || {})), i.removeStoredMark(e.type);
|
|
3836
3873
|
}
|
|
3837
3874
|
}
|
|
3838
3875
|
});
|
|
3839
3876
|
}
|
|
3840
|
-
var
|
|
3877
|
+
var ws = (e, t) => {
|
|
3841
3878
|
if (e === "slot")
|
|
3842
3879
|
return 0;
|
|
3843
3880
|
if (e instanceof Function)
|
|
@@ -3848,36 +3885,36 @@ var ys = (e, t) => {
|
|
|
3848
3885
|
return [e, r, n];
|
|
3849
3886
|
};
|
|
3850
3887
|
export {
|
|
3851
|
-
|
|
3888
|
+
Vn as A,
|
|
3852
3889
|
Br as B,
|
|
3853
3890
|
kt as C,
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3891
|
+
ds as E,
|
|
3892
|
+
Nr as M,
|
|
3893
|
+
ys as N,
|
|
3894
|
+
gs as R,
|
|
3895
|
+
bs as a,
|
|
3896
|
+
fs as b,
|
|
3897
|
+
vs as c,
|
|
3898
|
+
Hn as d,
|
|
3899
|
+
Qt as e,
|
|
3900
|
+
os as f,
|
|
3901
|
+
er as g,
|
|
3902
|
+
ws as h,
|
|
3903
|
+
ls as i,
|
|
3904
|
+
Zn as j,
|
|
3868
3905
|
N as k,
|
|
3869
3906
|
et as l,
|
|
3870
|
-
|
|
3871
|
-
|
|
3907
|
+
Kn as m,
|
|
3908
|
+
ps as n,
|
|
3872
3909
|
U as o,
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3910
|
+
Xr as p,
|
|
3911
|
+
cs as q,
|
|
3912
|
+
Yr as r,
|
|
3913
|
+
as as s,
|
|
3914
|
+
hs as t,
|
|
3878
3915
|
T as u,
|
|
3879
|
-
|
|
3880
|
-
|
|
3916
|
+
is as v,
|
|
3917
|
+
ms as w,
|
|
3881
3918
|
x,
|
|
3882
3919
|
y,
|
|
3883
3920
|
Mt as z
|