@vc-shell/framework 1.2.4-beta.3 → 1.2.4-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/composables/index.ts +3 -0
- package/core/composables/useAssets/index.ts +1 -1
- package/core/composables/useAsync/index.test.ts +137 -0
- package/core/composables/useAsync/index.ts +55 -1
- package/core/composables/useBladeRegistry/index.ts +1 -1
- package/core/composables/useBreadcrumbs/index.ts +1 -1
- package/core/composables/useConnectionStatus/index.ts +48 -0
- package/core/composables/useDynamicProperties/index.ts +29 -5
- package/core/composables/useKeyboardNavigation/index.ts +5 -0
- package/core/composables/useMenuService/index.ts +2 -1
- package/core/composables/useSidebarState/index.ts +1 -1
- package/core/composables/useUser/index.ts +30 -4
- package/core/composables/useUser/useUser.test.ts +155 -0
- package/core/composables/useUserManagement/index.ts +1 -1
- package/core/composables/useWebVitals/index.ts +40 -0
- package/core/interceptors/index.ts +72 -15
- package/core/plugins/ai-agent/components/_internal/VcAiAgentHeader.vue +1 -1
- package/core/plugins/ai-agent/components/_internal/VcAiAgentIframe.vue +1 -1
- package/core/plugins/global-error-handler/index.ts +81 -0
- package/core/plugins/index.ts +0 -1
- package/core/plugins/modularity/index.ts +3 -2
- package/core/plugins/modularity/loader.ts +143 -59
- package/core/plugins/permissions/index.ts +1 -1
- package/core/plugins/signalR/index.ts +19 -0
- package/core/services/app-bar-mobile-buttons-service.ts +1 -0
- package/core/services/menu-service.test.ts +193 -0
- package/core/services/menu-service.ts +140 -191
- package/core/services/toolbar-service.ts +1 -1
- package/core/services/widget-service.ts +1 -1
- package/core/types/index.ts +3 -3
- package/core/utilities/date/convertMomentFormat.test.ts +60 -0
- package/core/utilities/date/convertMomentFormat.ts +30 -0
- package/core/utilities/date/formatDate.test.ts +60 -0
- package/core/utilities/date/formatDate.ts +31 -0
- package/core/utilities/date/index.ts +3 -0
- package/core/utilities/date/resolveLocale.test.ts +44 -0
- package/core/utilities/date/resolveLocale.ts +41 -0
- package/core/utilities/index.ts +5 -0
- package/core/utilities/pendingErrorNotifications.ts +64 -0
- package/dist/DashboardBarChart-B-g_a-7F.js +123 -0
- package/dist/DashboardDonutChart-AktPFUNo.js +89 -0
- package/dist/DashboardLineChart-BQKqRFhM.js +125 -0
- package/dist/GridstackDashboard-BXqCpiMw.js +131 -0
- package/dist/GridstackDashboard.css +1 -0
- package/dist/chart-utils-BTs6UFaZ.js +83 -0
- package/dist/core/composables/index.d.ts +25 -24
- package/dist/core/composables/index.d.ts.map +1 -1
- package/dist/core/composables/useAppBarMobileButtons/index.d.ts +1 -1
- package/dist/core/composables/useAppBarWidget/index.d.ts +1 -1
- package/dist/core/composables/useAssets/index.d.ts +1 -1
- package/dist/core/composables/useAssets/index.d.ts.map +1 -1
- package/dist/core/composables/useAsync/index.d.ts +19 -2
- package/dist/core/composables/useAsync/index.d.ts.map +1 -1
- package/dist/core/composables/useAsync/index.test.d.ts +2 -0
- package/dist/core/composables/useAsync/index.test.d.ts.map +1 -0
- package/dist/core/composables/useBlade/index.d.ts +2 -2
- package/dist/core/composables/useBladeRegistry/index.d.ts +1 -1
- package/dist/core/composables/useBladeRegistry/index.d.ts.map +1 -1
- package/dist/core/composables/useBreadcrumbs/index.d.ts +1 -1
- package/dist/core/composables/useBreadcrumbs/index.d.ts.map +1 -1
- package/dist/core/composables/useConnectionStatus/index.d.ts +7 -0
- package/dist/core/composables/useConnectionStatus/index.d.ts.map +1 -0
- package/dist/core/composables/useDashboard/index.d.ts +1 -1
- package/dist/core/composables/useDynamicProperties/index.d.ts.map +1 -1
- package/dist/core/composables/useErrorHandler/index.d.ts +1 -1
- package/dist/core/composables/useFunctions/index.d.ts +4 -4
- package/dist/core/composables/useGlobalSearch/index.d.ts +1 -1
- package/dist/core/composables/useKeyboardNavigation/index.d.ts.map +1 -1
- package/dist/core/composables/useLanguages/index.d.ts +1 -1
- package/dist/core/composables/useMenuService/index.d.ts +2 -2
- package/dist/core/composables/useMenuService/index.d.ts.map +1 -1
- package/dist/core/composables/useNotifications/index.d.ts +1 -1
- package/dist/core/composables/useSettingsMenu/index.d.ts +1 -1
- package/dist/core/composables/useToolbar/index.d.ts +2 -2
- package/dist/core/composables/useUser/index.d.ts +2 -2
- package/dist/core/composables/useUser/index.d.ts.map +1 -1
- package/dist/core/composables/useUser/useUser.test.d.ts +2 -0
- package/dist/core/composables/useUser/useUser.test.d.ts.map +1 -0
- package/dist/core/composables/useUserManagement/index.d.ts +2 -2
- package/dist/core/composables/useUserManagement/index.d.ts.map +1 -1
- package/dist/core/composables/useWebVitals/index.d.ts +14 -0
- package/dist/core/composables/useWebVitals/index.d.ts.map +1 -0
- package/dist/core/composables/useWidgets/index.d.ts +1 -1
- package/dist/core/constants/index.d.ts +3 -3
- package/dist/core/directives/index.d.ts +2 -2
- package/dist/core/interceptors/index.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/components/index.d.ts +1 -1
- package/dist/core/plugins/ai-agent/composables/index.d.ts +3 -3
- package/dist/core/plugins/ai-agent/composables/useAiAgent.d.ts +2 -2
- package/dist/core/plugins/ai-agent/composables/useAiAgentContext.d.ts +1 -1
- package/dist/core/plugins/ai-agent/constants.d.ts +1 -1
- package/dist/core/plugins/ai-agent/index.d.ts +9 -9
- package/dist/core/plugins/ai-agent/services/ai-agent-service.d.ts +1 -1
- package/dist/core/plugins/extension-points/ExtensionPoint.vue.d.ts +1 -1
- package/dist/core/plugins/extension-points/defineExtensionPoint.d.ts +1 -1
- package/dist/core/plugins/extension-points/index.d.ts +4 -4
- package/dist/core/plugins/extension-points/store.d.ts +1 -1
- package/dist/core/plugins/extension-points/useExtensionPoint.d.ts +1 -1
- package/dist/core/plugins/global-error-handler/index.d.ts +3 -0
- package/dist/core/plugins/global-error-handler/index.d.ts.map +1 -0
- package/dist/core/plugins/index.d.ts +6 -7
- package/dist/core/plugins/index.d.ts.map +1 -1
- package/dist/core/plugins/modularity/index.d.ts +2 -2
- package/dist/core/plugins/modularity/index.d.ts.map +1 -1
- package/dist/core/plugins/modularity/loader.d.ts +1 -0
- package/dist/core/plugins/modularity/loader.d.ts.map +1 -1
- package/dist/core/plugins/signalR/index.d.ts +1 -0
- package/dist/core/plugins/signalR/index.d.ts.map +1 -1
- package/dist/core/plugins/validation/index.d.ts +1 -1
- package/dist/core/services/_internal/index.d.ts +3 -3
- package/dist/core/services/app-bar-menu-service.d.ts +1 -1
- package/dist/core/services/app-bar-mobile-buttons-service.d.ts +1 -0
- package/dist/core/services/app-bar-mobile-buttons-service.d.ts.map +1 -1
- package/dist/core/services/dashboard-service.d.ts +1 -1
- package/dist/core/services/index.d.ts +9 -9
- package/dist/core/services/menu-service.d.ts +10 -2
- package/dist/core/services/menu-service.d.ts.map +1 -1
- package/dist/core/services/settings-menu-service.d.ts +1 -1
- package/dist/core/services/toolbar-service.d.ts +2 -2
- package/dist/core/services/toolbar-service.d.ts.map +1 -1
- package/dist/core/services/widget-service.d.ts +2 -2
- package/dist/core/services/widget-service.d.ts.map +1 -1
- package/dist/core/types/index.d.ts +3 -3
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/core/utilities/date/convertMomentFormat.d.ts +2 -0
- package/dist/core/utilities/date/convertMomentFormat.d.ts.map +1 -0
- package/dist/core/utilities/date/convertMomentFormat.test.d.ts +2 -0
- package/dist/core/utilities/date/convertMomentFormat.test.d.ts.map +1 -0
- package/dist/core/utilities/date/formatDate.d.ts +5 -0
- package/dist/core/utilities/date/formatDate.d.ts.map +1 -0
- package/dist/core/utilities/date/formatDate.test.d.ts +2 -0
- package/dist/core/utilities/date/formatDate.test.d.ts.map +1 -0
- package/dist/core/utilities/date/index.d.ts +4 -0
- package/dist/core/utilities/date/index.d.ts.map +1 -0
- package/dist/core/utilities/date/resolveLocale.d.ts +4 -0
- package/dist/core/utilities/date/resolveLocale.d.ts.map +1 -0
- package/dist/core/utilities/date/resolveLocale.test.d.ts +2 -0
- package/dist/core/utilities/date/resolveLocale.test.d.ts.map +1 -0
- package/dist/core/utilities/index.d.ts +8 -6
- package/dist/core/utilities/index.d.ts.map +1 -1
- package/dist/core/utilities/pendingErrorNotifications.d.ts +23 -0
- package/dist/core/utilities/pendingErrorNotifications.d.ts.map +1 -0
- package/dist/framework.js +463 -33358
- package/dist/index-DVyGELzS.js +33689 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +13 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/injection-keys.d.ts +15 -6
- package/dist/injection-keys.d.ts.map +1 -1
- package/dist/locales/de.json +14 -6
- package/dist/locales/en.json +15 -7
- package/dist/shared/components/app-switcher/components/index.d.ts +1 -1
- package/dist/shared/components/app-switcher/components/vc-app-switcher/index.d.ts +1 -1
- package/dist/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue.d.ts +1 -1
- package/dist/shared/components/app-switcher/composables/index.d.ts +1 -1
- package/dist/shared/components/app-switcher/composables/useAppSwitcher/index.d.ts +1 -1
- package/dist/shared/components/app-switcher/index.d.ts +2 -2
- package/dist/shared/components/blade-navigation/components/index.d.ts +2 -2
- package/dist/shared/components/blade-navigation/components/vc-blade-navigation/_internal/vc-mobile-back-button.vue.d.ts +1 -1
- package/dist/shared/components/blade-navigation/components/vc-blade-navigation/_internal/vc-mobile-back-button.vue.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/components/vc-blade-navigation/index.d.ts +2 -2
- package/dist/shared/components/blade-navigation/components/vc-blade-slot/index.d.ts +1 -1
- package/dist/shared/components/blade-navigation/components/vc-blade-slot/vc-blade-slot.vue.d.ts +2 -2
- package/dist/shared/components/blade-navigation/components/vc-blade-slot/vc-blade-slot.vue.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/components/vc-blade-view/vc-blade-view.d.ts +3 -3
- package/dist/shared/components/blade-navigation/composables/index.d.ts +5 -5
- package/dist/shared/components/blade-navigation/composables/useBladeMessaging.d.ts +1 -1
- package/dist/shared/components/blade-navigation/composables/useBladeNavigationAdapter.d.ts +1 -1
- package/dist/shared/components/blade-navigation/composables/useBladeStack.d.ts +2 -2
- package/dist/shared/components/blade-navigation/index.d.ts +4 -4
- package/dist/shared/components/blade-navigation/plugin-v2.d.ts +4 -4
- package/dist/shared/components/blade-navigation/types/index.d.ts +4 -4
- package/dist/shared/components/blade-navigation/types/index.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/utils/restoreFromUrl.d.ts +2 -2
- package/dist/shared/components/blade-navigation/utils/urlSync.d.ts +1 -1
- package/dist/shared/components/change-password/change-password.vue.d.ts.map +1 -1
- package/dist/shared/components/change-password/index.d.ts +1 -1
- package/dist/shared/components/change-password-button/index.d.ts +1 -1
- package/dist/shared/components/common/popup/vc-popup-base.vue.d.ts +50 -0
- package/dist/shared/components/common/popup/vc-popup-base.vue.d.ts.map +1 -0
- package/dist/shared/components/common/popup/vc-popup-error.vue.d.ts.map +1 -1
- package/dist/shared/components/common/popup/vc-popup-info.vue.d.ts.map +1 -1
- package/dist/shared/components/common/popup/vc-popup-warning.vue.d.ts.map +1 -1
- package/dist/shared/components/dashboard-charts/ChartContainer.vue.d.ts +16 -0
- package/dist/shared/components/dashboard-charts/ChartContainer.vue.d.ts.map +1 -0
- package/dist/shared/components/dashboard-charts/ChartLegend.vue.d.ts +7 -0
- package/dist/shared/components/dashboard-charts/ChartLegend.vue.d.ts.map +1 -0
- package/dist/shared/components/dashboard-charts/ChartTooltip.vue.d.ts +12 -0
- package/dist/shared/components/dashboard-charts/ChartTooltip.vue.d.ts.map +1 -0
- package/dist/shared/components/dashboard-charts/DashboardBarChart.vue.d.ts +34 -0
- package/dist/shared/components/dashboard-charts/DashboardBarChart.vue.d.ts.map +1 -0
- package/dist/shared/components/dashboard-charts/DashboardDonutChart.vue.d.ts +28 -0
- package/dist/shared/components/dashboard-charts/DashboardDonutChart.vue.d.ts.map +1 -0
- package/dist/shared/components/dashboard-charts/DashboardLineChart.vue.d.ts +34 -0
- package/dist/shared/components/dashboard-charts/DashboardLineChart.vue.d.ts.map +1 -0
- package/dist/shared/components/dashboard-charts/chart-utils.d.ts +29 -0
- package/dist/shared/components/dashboard-charts/chart-utils.d.ts.map +1 -0
- package/dist/shared/components/dashboard-charts/index.d.ts +11 -0
- package/dist/shared/components/dashboard-charts/index.d.ts.map +1 -0
- package/dist/shared/components/dashboard-charts/types.d.ts +7 -0
- package/dist/shared/components/dashboard-charts/types.d.ts.map +1 -0
- package/dist/shared/components/dashboard-widget-card/index.d.ts +4 -4
- package/dist/shared/components/draggable-dashboard/DraggableDashboard.vue.d.ts.map +1 -1
- package/dist/shared/components/draggable-dashboard/composables/useGridstack.d.ts +1 -1
- package/dist/shared/components/draggable-dashboard/composables/useGridstackAdapter.d.ts +1 -1
- package/dist/shared/components/draggable-dashboard/index.d.ts +5 -5
- package/dist/shared/components/error-interceptor/index.d.ts +2 -2
- package/dist/shared/components/error-interceptor/interceptor.d.ts +1 -1
- package/dist/shared/components/error-interceptor/interceptor.d.ts.map +1 -1
- package/dist/shared/components/generic-dropdown/index.d.ts.map +1 -1
- package/dist/shared/components/index.d.ts +19 -18
- package/dist/shared/components/index.d.ts.map +1 -1
- package/dist/shared/components/language-selector/index.d.ts +1 -1
- package/dist/shared/components/logout-button/index.d.ts +1 -1
- package/dist/shared/components/multilanguage-selector/index.d.ts +1 -1
- package/dist/shared/components/multilanguage-selector/multilanguage-selector.vue.d.ts +1 -1
- package/dist/shared/components/multilanguage-selector/multilanguage-selector.vue.d.ts.map +1 -1
- package/dist/shared/components/notification-dropdown/_internal/notification/index.d.ts +1 -1
- package/dist/shared/components/notification-dropdown/_internal/notification/notification.vue.d.ts +2 -2
- package/dist/shared/components/notification-dropdown/index.d.ts +1 -1
- package/dist/shared/components/notification-dropdown/notification-dropdown.vue.d.ts.map +1 -1
- package/dist/shared/components/notification-template/index.d.ts +1 -1
- package/dist/shared/components/notification-template/notification-template.vue.d.ts +1 -1
- package/dist/shared/components/notifications/components/index.d.ts +1 -1
- package/dist/shared/components/notifications/components/notification-container/index.d.ts +7 -18
- package/dist/shared/components/notifications/components/notification-container/index.d.ts.map +1 -1
- package/dist/shared/components/notifications/composables/index.d.ts +2 -2
- package/dist/shared/components/notifications/composables/useContainer/index.d.ts +1 -10
- package/dist/shared/components/notifications/composables/useContainer/index.d.ts.map +1 -1
- package/dist/shared/components/notifications/composables/useInstance/index.d.ts +1 -1
- package/dist/shared/components/notifications/core/index.d.ts +1 -1
- package/dist/shared/components/notifications/core/notification.d.ts +1 -2
- package/dist/shared/components/notifications/core/notification.d.ts.map +1 -1
- package/dist/shared/components/notifications/index.d.ts +4 -4
- package/dist/shared/components/notifications/types/index.d.ts +2 -2
- package/dist/shared/components/notifications/types/index.d.ts.map +1 -1
- package/dist/shared/components/popup-handler/components/index.d.ts +1 -1
- package/dist/shared/components/popup-handler/components/vc-popup-container/index.d.ts +1 -1
- package/dist/shared/components/popup-handler/composables/index.d.ts +1 -1
- package/dist/shared/components/popup-handler/composables/usePopup/index.d.ts +3 -3
- package/dist/shared/components/popup-handler/composables/usePopup/index.d.ts.map +1 -1
- package/dist/shared/components/popup-handler/index.d.ts +7 -7
- package/dist/shared/components/popup-handler/keys.d.ts +1 -1
- package/dist/shared/components/popup-handler/plugin.d.ts +1 -1
- package/dist/shared/components/popup-handler/types/index.d.ts +1 -1
- package/dist/shared/components/settings-menu/index.d.ts +1 -1
- package/dist/shared/components/settings-menu-item/index.d.ts +1 -1
- package/dist/shared/components/settings-menu-item/settings-menu-item.vue.d.ts.map +1 -1
- package/dist/shared/components/sidebar/index.d.ts +3 -3
- package/dist/shared/components/sign-in/external-provider.vue.d.ts.map +1 -1
- package/dist/shared/components/sign-in/external-providers.vue.d.ts +1 -1
- package/dist/shared/components/sign-in/external-providers.vue.d.ts.map +1 -1
- package/dist/shared/components/sign-in/index.d.ts +1 -1
- package/dist/shared/components/sign-in/useExternalProvider.d.ts +1 -1
- package/dist/shared/components/theme-selector/index.d.ts +1 -1
- package/dist/shared/components/user-dropdown-button/_internal/user-sidebar.vue.d.ts +3 -3
- package/dist/shared/components/user-dropdown-button/index.d.ts +1 -1
- package/dist/shared/composables/index.d.ts +5 -5
- package/dist/shared/composables/useModificationTracker/index.d.ts.map +1 -1
- package/dist/shared/index.d.ts +5 -5
- package/dist/shared/modules/assets/components/assets-details/assets-details.vue.d.ts +2 -2
- package/dist/shared/modules/assets/components/assets-details/assets-details.vue.d.ts.map +1 -1
- package/dist/shared/modules/assets/components/assets-details/index.d.ts +1 -1
- package/dist/shared/modules/assets/components/index.d.ts +1 -1
- package/dist/shared/modules/assets/index.d.ts +1 -1
- package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts +3 -3
- package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts.map +1 -1
- package/dist/shared/modules/assets-manager/components/assets-manager/index.d.ts +1 -1
- package/dist/shared/modules/assets-manager/components/index.d.ts +1 -1
- package/dist/shared/modules/assets-manager/index.d.ts +2 -2
- package/dist/shared/modules/dynamic/components/FIELD_MAP.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/SchemaRender.d.ts +19 -19
- package/dist/shared/modules/dynamic/components/factories.d.ts +1 -1
- package/dist/shared/modules/dynamic/components/factories.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/Button.d.ts +4 -4
- package/dist/shared/modules/dynamic/components/fields/Card.d.ts +4 -4
- package/dist/shared/modules/dynamic/components/fields/Checkbox.d.ts +4 -4
- package/dist/shared/modules/dynamic/components/fields/ContentField.d.ts +4 -4
- package/dist/shared/modules/dynamic/components/fields/CustomComponent.d.ts +4 -4
- package/dist/shared/modules/dynamic/components/fields/DynamicProperty.d.ts +6 -6
- package/dist/shared/modules/dynamic/components/fields/EditorField.d.ts +6 -6
- package/dist/shared/modules/dynamic/components/fields/Fieldset.d.ts +4 -4
- package/dist/shared/modules/dynamic/components/fields/Fieldset.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/GalleryField.d.ts +4 -4
- package/dist/shared/modules/dynamic/components/fields/GalleryField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/ImageField.d.ts +4 -4
- package/dist/shared/modules/dynamic/components/fields/InputCurrency.d.ts +4 -4
- package/dist/shared/modules/dynamic/components/fields/InputField.d.ts +2 -2
- package/dist/shared/modules/dynamic/components/fields/MultivalueField.d.ts +4 -4
- package/dist/shared/modules/dynamic/components/fields/RadioButtonGroup.d.ts +4 -4
- package/dist/shared/modules/dynamic/components/fields/RadioButtonGroup.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/RatingField.d.ts +4 -4
- package/dist/shared/modules/dynamic/components/fields/SelectField.d.ts +4 -4
- package/dist/shared/modules/dynamic/components/fields/StatusField.d.ts +4 -4
- package/dist/shared/modules/dynamic/components/fields/SwitchField.d.ts +4 -4
- package/dist/shared/modules/dynamic/components/fields/Table.d.ts +4 -4
- package/dist/shared/modules/dynamic/components/fields/TextareaField.d.ts +4 -4
- package/dist/shared/modules/dynamic/components/fields/VideoField.d.ts +4 -4
- package/dist/shared/modules/dynamic/components/fields/props.d.ts +3 -3
- package/dist/shared/modules/dynamic/components/index.d.ts +2 -2
- package/dist/shared/modules/dynamic/composables/index.d.ts +4 -4
- package/dist/shared/modules/dynamic/composables/useDynamicViewsUtils/index.d.ts +1 -1
- package/dist/shared/modules/dynamic/composables/useFilterBuilder/index.d.ts +2 -2
- package/dist/shared/modules/dynamic/composables/useFilterBuilder/index.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/composables/useTableTemplates/index.d.ts +1 -1
- package/dist/shared/modules/dynamic/composables/useToolbarReducer/index.d.ts +3 -3
- package/dist/shared/modules/dynamic/composables/useToolbarReducer/index.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/factories/base/useDetailsFactory.d.ts +1 -1
- package/dist/shared/modules/dynamic/factories/base/useDetailsFactory.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/factories/base/useListFactory.d.ts +1 -1
- package/dist/shared/modules/dynamic/factories/base/useListFactory.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/factories/index.d.ts +3 -3
- package/dist/shared/modules/dynamic/factories/types/index.d.ts +7 -6
- package/dist/shared/modules/dynamic/factories/types/index.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/helpers/methodHandler.d.ts +1 -1
- package/dist/shared/modules/dynamic/helpers/nodeBuilder.d.ts +2 -2
- package/dist/shared/modules/dynamic/helpers/override.d.ts +1 -1
- package/dist/shared/modules/dynamic/index.d.ts +5 -5
- package/dist/shared/modules/dynamic/index.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts +11 -11
- package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts +16 -16
- package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/pages/index.d.ts +2 -2
- package/dist/shared/modules/dynamic/types/index.d.ts +13 -3
- package/dist/shared/modules/dynamic/types/index.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/types/models.d.ts +19 -1
- package/dist/shared/modules/dynamic/types/models.d.ts.map +1 -1
- package/dist/shared/modules/index.d.ts +3 -3
- package/dist/shared/pages/ChangePasswordPage/components/change-password/index.d.ts +1 -1
- package/dist/shared/pages/ChangePasswordPage/components/index.d.ts +1 -1
- package/dist/shared/pages/ChangePasswordPage/index.d.ts +1 -1
- package/dist/shared/pages/ForgotPasswordPage/components/forgot-password/index.d.ts +1 -1
- package/dist/shared/pages/ForgotPasswordPage/components/index.d.ts +1 -1
- package/dist/shared/pages/ForgotPasswordPage/index.d.ts +1 -1
- package/dist/shared/pages/InvitePage/components/index.d.ts +1 -1
- package/dist/shared/pages/InvitePage/components/invite/index.d.ts +1 -1
- package/dist/shared/pages/InvitePage/index.d.ts +1 -1
- package/dist/shared/pages/LoginPage/components/index.d.ts +1 -1
- package/dist/shared/pages/LoginPage/components/login/Login.vue.d.ts +1 -0
- package/dist/shared/pages/LoginPage/components/login/Login.vue.d.ts.map +1 -1
- package/dist/shared/pages/LoginPage/components/login/index.d.ts +1 -1
- package/dist/shared/pages/LoginPage/index.d.ts +1 -1
- package/dist/shared/pages/ResetPasswordPage/components/index.d.ts +1 -1
- package/dist/shared/pages/ResetPasswordPage/components/reset-password/index.d.ts +1 -1
- package/dist/shared/pages/ResetPasswordPage/index.d.ts +1 -1
- package/dist/shared/pages/index.d.ts +5 -5
- package/dist/shared/pages/plugin.d.ts +5 -5
- package/dist/shared/utilities/index.d.ts +4 -4
- package/dist/tailwind.config.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/index.d.ts +21 -21
- package/dist/ui/components/atoms/vc-badge/index.d.ts +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-banner/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-banner/vc-banner.vue.d.ts +19 -5
- package/dist/ui/components/atoms/vc-banner/vc-banner.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-button/index.d.ts +3 -3
- package/dist/ui/components/atoms/vc-button/vc-button-group.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-button/vc-button.a11y.test.d.ts +2 -0
- package/dist/ui/components/atoms/vc-button/vc-button.a11y.test.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-button/vc-button.test.d.ts +2 -0
- package/dist/ui/components/atoms/vc-button/vc-button.test.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts +3 -3
- package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-card/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-col/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-container/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-hint/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-icon/composables/index.d.ts +2 -2
- package/dist/ui/components/atoms/vc-icon/composables/use-icon-type.d.ts +1 -1
- package/dist/ui/components/atoms/vc-icon/composables/use-icon.d.ts +1 -1
- package/dist/ui/components/atoms/vc-icon/icons/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-icon/index.d.ts +3 -3
- package/dist/ui/components/atoms/vc-icon/vc-bootstrap-icon.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-fontawesome-icon.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-lucide-icon.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-material-icon.vue.d.ts +2 -2
- package/dist/ui/components/atoms/vc-icon/vc-material-icon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-svg-icon.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-image/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-label/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-label/vc-label.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-link/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-loading/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-loading/vc-loading.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-progress/index.d.ts +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-row/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-scrollable-container/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-skeleton/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-skeleton/vc-skeleton.vue.d.ts +8 -0
- package/dist/ui/components/atoms/vc-skeleton/vc-skeleton.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-status/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-status-icon/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-tooltip/index.d.ts +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/atoms/vc-video/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-video/vc-video.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-widget/index.d.ts +1 -1
- package/dist/ui/components/index.d.ts +3 -3
- package/dist/ui/components/molecules/index.d.ts +26 -27
- 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 +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 +4 -4
- package/dist/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-checkbox/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.a11y.test.d.ts +2 -0
- package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.a11y.test.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.test.d.ts +2 -0
- package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.test.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-checkbox-group/index.d.ts +2 -2
- package/dist/ui/components/molecules/vc-checkbox-group/vc-checkbox-group.vue.d.ts +1 -1
- 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/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-color-input/vc-color-input.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-color-input/vc-color-input.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-date-picker/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-date-picker/vc-date-picker.vue.d.ts +2 -2
- 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 +2 -2
- package/dist/ui/components/molecules/vc-dropdown/vc-dropdown.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-dropdown/vc-dropdown.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-dropdown-panel/index.d.ts +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/_internal/vc-editor-button.vue.d.ts +11 -41
- package/dist/ui/components/molecules/vc-editor/_internal/vc-editor-button.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-editor/_internal/vc-editor-custom-button.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-editor/_internal/vc-editor-toolbar.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-editor/index.d.ts +3 -2
- 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 +2 -2
- package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-field/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-field/vc-field.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-file-upload/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts +3 -5
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-form/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-input/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-input/vc-input.a11y.test.d.ts +2 -0
- package/dist/ui/components/molecules/vc-input/vc-input.a11y.test.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-input/vc-input.test.d.ts +2 -0
- package/dist/ui/components/molecules/vc-input/vc-input.test.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input-currency/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts +19 -88
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input-dropdown/index.d.ts +1 -2
- 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 +1 -1
- package/dist/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input-group/index.d.ts +2 -2
- package/dist/ui/components/molecules/vc-input-group/vc-input-group.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-multivalue/_internal/MultivalueDropdown.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-multivalue/_internal/MultivalueTrigger.vue.d.ts +1 -0
- package/dist/ui/components/molecules/vc-multivalue/_internal/MultivalueTrigger.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-multivalue/composables/index.d.ts +6 -6
- package/dist/ui/components/molecules/vc-multivalue/composables/useMultivalueDropdown.d.ts +1 -1
- package/dist/ui/components/molecules/vc-multivalue/composables/useMultivalueDropdown.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-multivalue/composables/useMultivalueInput.d.ts +1 -1
- package/dist/ui/components/molecules/vc-multivalue/composables/useMultivalueValues.d.ts +1 -1
- package/dist/ui/components/molecules/vc-multivalue/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-pagination/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-radio-button/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-radio-button/vc-radio-button.vue.d.ts +3 -4
- 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 +2 -2
- package/dist/ui/components/molecules/vc-radio-group/vc-radio-group.vue.d.ts +1 -1
- 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 -1
- package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-select/_internal/SelectDropdown.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-select/_internal/SelectTrigger.vue.d.ts +1 -0
- package/dist/ui/components/molecules/vc-select/_internal/SelectTrigger.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-select/composables/index.d.ts +7 -7
- package/dist/ui/components/molecules/vc-select/composables/useSelectDropdown.d.ts +1 -1
- package/dist/ui/components/molecules/vc-select/index.d.ts +2 -2
- package/dist/ui/components/molecules/vc-select/vc-select.test.d.ts +2 -0
- package/dist/ui/components/molecules/vc-select/vc-select.test.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +2 -7
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-slider/index.d.ts +5 -3
- package/dist/ui/components/molecules/vc-slider/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-switch/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-switch/vc-switch.vue.d.ts +3 -4
- package/dist/ui/components/molecules/vc-switch/vc-switch.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-textarea/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.a11y.test.d.ts +2 -0
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.a11y.test.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-toast/index.d.ts +1 -1
- package/dist/ui/components/molecules/vc-toast/vc-toast.vue.d.ts +8 -1
- package/dist/ui/components/molecules/vc-toast/vc-toast.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/index.d.ts +9 -8
- package/dist/ui/components/organisms/index.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/app-bar/components/AppBarMobileActions.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/app-bar/components/AppBarOverlay.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/app-bar/components/AppHubContent.vue.d.ts +1 -4
- package/dist/ui/components/organisms/vc-app/_internal/app-bar/components/AppHubContent.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/app-bar/components/AppHubPopover.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/app-bar/components/MenuSidebar.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/app-bar/composables/useAppHub.d.ts +2 -8
- package/dist/ui/components/organisms/vc-app/_internal/app-bar/composables/useAppHub.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/layouts/DesktopLayout.vue.d.ts +5 -5
- package/dist/ui/components/organisms/vc-app/_internal/layouts/DesktopLayout.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/layouts/MobileLayout.test.d.ts +2 -0
- package/dist/ui/components/organisms/vc-app/_internal/layouts/MobileLayout.test.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-app/_internal/layouts/MobileLayout.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-app/_internal/layouts/MobileLayout.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/menu/VcAppMenu.test.d.ts +2 -0
- package/dist/ui/components/organisms/vc-app/_internal/menu/VcAppMenu.test.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-app/_internal/menu/VcAppMenu.vue.d.ts +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/menu/VcAppMenuGroup.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/menu/VcAppMenuItem.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/menu/VcAppMenuItem.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/menu/composables/useBadge.d.ts +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/sidebar/SidebarContent.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/sidebar/SidebarHeader.vue.d.ts +11 -3
- 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 -2
- 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 +1 -1
- package/dist/ui/components/organisms/vc-app/composition/app-bar/index.d.ts +6 -6
- package/dist/ui/components/organisms/vc-app/composition/index.d.ts +6 -6
- package/dist/ui/components/organisms/vc-app/composition/layouts/index.d.ts +2 -2
- package/dist/ui/components/organisms/vc-app/composition/menu/index.d.ts +5 -5
- package/dist/ui/components/organisms/vc-app/composition/shell/index.d.ts +3 -3
- package/dist/ui/components/organisms/vc-app/composition/sidebar/index.d.ts +3 -3
- package/dist/ui/components/organisms/vc-app/composition/state/index.d.ts +4 -4
- package/dist/ui/components/organisms/vc-app/index.d.ts +2 -2
- package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-auth-layout/index.d.ts +1 -1
- package/dist/ui/components/{atoms/vc-icon/vc-icon-test.vue.d.ts → organisms/vc-blade/_internal/BladeContentSkeleton.vue.d.ts} +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/BladeContentSkeleton.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-blade/_internal/BladeHeader.vue.d.ts.map +1 -1
- package/dist/ui/components/{atoms/vc-icon/vc-icon-examples.vue.d.ts → organisms/vc-blade/_internal/BladeHeaderSkeleton.vue.d.ts} +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/BladeHeaderSkeleton.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-blade/_internal/BladeStatusBanners.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/BladeToolbar.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/BladeToolbarSkeleton.vue.d.ts +3 -0
- package/dist/ui/components/organisms/vc-blade/_internal/BladeToolbarSkeleton.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-blade/_internal/composables/useBladeError.d.ts +5 -6
- package/dist/ui/components/organisms/vc-blade/_internal/composables/useBladeError.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/composables/useToolbarRegistration.d.ts +2 -2
- package/dist/ui/components/organisms/vc-blade/_internal/composables/useToolbarRegistration.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ToolbarBaseButton.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ToolbarCircleButton.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ToolbarDesktop.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ToolbarMobile.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/widgets/WidgetContainerDesktop.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/widgets/WidgetContainerDesktop.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/widgets/WidgetContainerMobile.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/widgets/WidgetContainerMobile.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/constants.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/index.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/utils.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +4 -2
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-dynamic-property/index.d.ts +1 -1
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.test.d.ts +2 -0
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.test.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +15 -18
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/composables/index.d.ts +5 -0
- package/dist/ui/components/organisms/vc-gallery/composables/index.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-gallery/composables/useGalleryPreview.d.ts +6 -0
- package/dist/ui/components/organisms/vc-gallery/composables/useGalleryPreview.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-gallery/composables/useGalleryReorder.d.ts +23 -0
- package/dist/ui/components/organisms/vc-gallery/composables/useGalleryReorder.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-gallery/composables/useGalleryReorder.test.d.ts +2 -0
- package/dist/ui/components/organisms/vc-gallery/composables/useGalleryReorder.test.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-gallery/composables/useGalleryUpload.d.ts +10 -0
- package/dist/ui/components/organisms/vc-gallery/composables/useGalleryUpload.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-gallery/composables/useGalleryUpload.test.d.ts +2 -0
- package/dist/ui/components/organisms/vc-gallery/composables/useGalleryUpload.test.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-gallery/composables/useImageLoad.d.ts +8 -0
- package/dist/ui/components/organisms/vc-gallery/composables/useImageLoad.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-gallery/composables/useImageLoad.test.d.ts +2 -0
- package/dist/ui/components/organisms/vc-gallery/composables/useImageLoad.test.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-gallery/index.d.ts +3 -1
- package/dist/ui/components/organisms/vc-gallery/index.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.actions.test.d.ts +2 -0
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.actions.test.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +77 -16
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-image-upload/index.d.ts +2 -0
- package/dist/ui/components/organisms/vc-image-upload/index.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-image-upload/vc-image-upload.vue.d.ts +35 -0
- package/dist/ui/components/organisms/vc-image-upload/vc-image-upload.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-popup/index.d.ts +1 -1
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts +14 -4
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-sidebar/index.d.ts +1 -1
- package/dist/ui/components/organisms/vc-sidebar/vc-sidebar.vue.d.ts +2 -2
- 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 +220 -45
- package/dist/ui/components/organisms/vc-table/VcDataTable.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/VcTableAdapter.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-empty/vc-table-empty.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/base/BaseVcDataTable.d.ts +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/DataTableBody.vue.d.ts +22 -12
- package/dist/ui/components/organisms/vc-table/components/DataTableBody.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/components/DataTableCellRenderer.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/components/DataTableHeader.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-table/components/DataTableRow.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-table/components/GlobalFiltersPanel.vue.d.ts +8 -3
- package/dist/ui/components/organisms/vc-table/components/GlobalFiltersPanel.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/components/TableActions.vue.d.ts +1 -1
- 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/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 +5 -5
- package/dist/ui/components/organisms/vc-table/components/_internal/TableSkeletonRows.vue.d.ts +17 -0
- package/dist/ui/components/organisms/vc-table/components/_internal/TableSkeletonRows.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-table/components/cells/CellDate.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/components/cells/CellDate.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/components/cells/index.d.ts +11 -11
- package/dist/ui/components/organisms/vc-table/components/index.d.ts +26 -26
- package/dist/ui/components/organisms/vc-table/components/mobile/DataTableMobileCard.vue.d.ts +4 -4
- package/dist/ui/components/organisms/vc-table/components/mobile/DataTableMobileView.vue.d.ts +4 -4
- package/dist/ui/components/organisms/vc-table/components/mobile/MobileActionSheet.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/components/mobile/MobileCellRenderer.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/components/mobile/index.d.ts +5 -5
- package/dist/ui/components/organisms/vc-table/composables/index.d.ts +30 -30
- package/dist/ui/components/organisms/vc-table/composables/useColumnFilter.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/composables/useDataProcessing.d.ts +2 -2
- package/dist/ui/components/organisms/vc-table/composables/useDataProcessing.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/composables/useMobileCardLayout.d.ts +2 -2
- package/dist/ui/components/organisms/vc-table/composables/useTableColumns.d.ts +2 -2
- package/dist/ui/components/organisms/vc-table/composables/useTableEditing.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/composables/useTableEditing.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/composables/useTableExpansion.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/composables/useTableExpansion.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/composables/useTableFilter.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/composables/useTableFilter.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/composables/useTableFilter.test.d.ts +2 -0
- package/dist/ui/components/organisms/vc-table/composables/useTableFilter.test.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-table/composables/useTableRowGrouping.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/composables/useTableRowGrouping.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/composables/useTableRowReorder.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/composables/useTableSelectionV2.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/composables/useTableSelectionV2.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/composables/useTableSort.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/index.d.ts +9 -9
- package/dist/ui/components/organisms/vc-table/keys.d.ts +14 -3
- package/dist/ui/components/organisms/vc-table/keys.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/types.d.ts +5 -3
- package/dist/ui/components/organisms/vc-table/types.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/utils/ColumnCollector.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/utils/index.d.ts +3 -3
- package/dist/ui/composables/index.d.ts +6 -5
- package/dist/ui/composables/index.d.ts.map +1 -1
- package/dist/ui/composables/useCollapsible.d.ts +27 -0
- package/dist/ui/composables/useCollapsible.d.ts.map +1 -0
- package/dist/ui/composables/useFormField.d.ts +3 -2
- package/dist/ui/composables/useFormField.d.ts.map +1 -1
- package/dist/ui/types/index.d.ts +1 -1
- package/dist/ui/types/index.d.ts.map +1 -1
- package/dist/vc-editor-BtJrxrBg.js +848 -0
- package/dist/vc-editor.css +1 -0
- package/dist/vc-slider-sUKMaKnc.js +83 -0
- package/dist/vc-slider.css +1 -0
- package/dist/{vendor-cheerio-BcTJMzyu.js → vendor-cheerio-3JDxU-TZ.js} +6 -6
- package/dist/{vendor-cheerio-select-sLyWsUb6.js → vendor-cheerio-select-B7cQ9HP4.js} +3 -3
- package/dist/{vendor-css-select-DtZUShJh.js → vendor-css-select-CaVL4gMJ.js} +1 -1
- package/dist/vendor-d3-array-9cpTrqlO.js +149 -0
- package/dist/vendor-d3-axis-D1_DbKLz.js +74 -0
- package/dist/vendor-d3-brush-CcKeJp9e.js +1 -0
- package/dist/vendor-d3-color-BOYE6h_9.js +306 -0
- package/dist/vendor-d3-dispatch-fx-WMg0D.js +64 -0
- package/dist/vendor-d3-ease-Cr34gv04.js +8 -0
- package/dist/vendor-d3-format-DaIwZvFc.js +182 -0
- package/dist/vendor-d3-interpolate-BYG2gvO4.js +177 -0
- package/dist/vendor-d3-interpolate-path-CpGLvKgS.js +299 -0
- package/dist/vendor-d3-path-DJOTitNW.js +64 -0
- package/dist/vendor-d3-scale-CC5rtdt5.js +561 -0
- package/dist/vendor-d3-selection-CNMxsYiL.js +603 -0
- package/dist/vendor-d3-shape-DBhCDMiV.js +925 -0
- package/dist/vendor-d3-time-DAPP210_.js +212 -0
- package/dist/vendor-d3-time-format-hD7iE2WG.js +491 -0
- package/dist/vendor-d3-timer-C1cUWKPz.js +67 -0
- package/dist/vendor-d3-transition-BbNQT7qF.js +524 -0
- package/dist/vendor-d3-zoom-CcKeJp9e.js +1 -0
- package/dist/{vendor-date-fns-Bbji1B6n.js → vendor-date-fns-BKO3x1R1.js} +856 -762
- package/dist/{vendor-dom-serializer-BbVuF1MQ.js → vendor-dom-serializer-Sk3xHhQk.js} +1 -1
- package/dist/{vendor-domhandler-BVR67j0z.js → vendor-domhandler-Kufn9M_V.js} +2 -2
- package/dist/{vendor-domutils-DhLr70Dk.js → vendor-domutils-o2IJSx7k.js} +2 -2
- package/dist/vendor-emotion-cache-eEZT5l-Q.js +274 -0
- package/dist/vendor-emotion-hash-DImMRhyK.js +22 -0
- package/dist/vendor-emotion-memoize-BcEUCz8q.js +9 -0
- package/dist/vendor-emotion-serialize-BSDW8NwU.js +123 -0
- package/dist/vendor-emotion-sheet-CS8ZBl9s.js +44 -0
- package/dist/vendor-emotion-unitless-B7u1PU6w.js +53 -0
- package/dist/vendor-emotion-utils-D7refZTM.js +28 -0
- package/dist/{vendor-entities-J86Og8IU.js → vendor-entities-CCReaWqU.js} +2 -2
- package/dist/vendor-floating-ui-core-BoHdh92a.js +432 -0
- package/dist/vendor-floating-ui-dom-BvVXFZ4B.js +398 -0
- package/dist/vendor-floating-ui-utils-CidJRIm2.js +257 -0
- package/dist/{vendor-floating-ui-vue--bdH-HF5.js → vendor-floating-ui-vue-sCrhit51.js} +2 -2
- package/dist/{vendor-htmlparser2-DOGAmM6C.js → vendor-htmlparser2-nRkKyNhl.js} +2 -2
- package/dist/vendor-internmap-Q5729_cS.js +35 -0
- package/dist/vendor-juggle-resize-observer-DiSiNbbT.js +286 -0
- package/dist/{vendor-lodash-es-CzE4FJw2.js → vendor-lodash-es-B5DE282z.js} +14 -16
- package/dist/{vendor-lucide-vue-next-m0L4DzUL.js → vendor-lucide-vue-next-DadL7o0S.js} +8563 -8573
- package/dist/{vendor-markdown-it-DdaObR1P.js → vendor-markdown-it-pxD-Y9qk.js} +13 -10
- package/dist/{vendor-microsoft-applicationinsights-analytics-js-DQheg2jT.js → vendor-microsoft-applicationinsights-analytics-js-DFu_cVaY.js} +5 -5
- package/dist/{vendor-microsoft-applicationinsights-cfgsync-js-B9Mn84BU.js → vendor-microsoft-applicationinsights-cfgsync-js-DRQLN2Ue.js} +6 -6
- package/dist/{vendor-microsoft-applicationinsights-channel-js-BuJeAYY2.js → vendor-microsoft-applicationinsights-channel-js-BIJDcP3D.js} +6 -6
- package/dist/{vendor-microsoft-applicationinsights-common-RIQBFrw5.js → vendor-microsoft-applicationinsights-common-CJjmnDMb.js} +3 -3
- package/dist/{vendor-microsoft-applicationinsights-core-js-KDX0EIdd.js → vendor-microsoft-applicationinsights-core-js-BOc_o46i.js} +4 -4
- package/dist/{vendor-microsoft-applicationinsights-dependencies-js-BZbdJERa.js → vendor-microsoft-applicationinsights-dependencies-js-DDz502id.js} +5 -5
- package/dist/{vendor-microsoft-applicationinsights-properties-js-DWXnzqoT.js → vendor-microsoft-applicationinsights-properties-js-9aDWHwXJ.js} +5 -5
- package/dist/{vendor-microsoft-applicationinsights-shims-DKvw2C8l.js → vendor-microsoft-applicationinsights-shims-Dton8Vqy.js} +1 -1
- package/dist/{vendor-microsoft-applicationinsights-web-CvYf2SnW.js → vendor-microsoft-applicationinsights-web-DTa5YN-h.js} +10 -10
- package/dist/{vendor-microsoft-dynamicproto-js-BqPecdaw.js → vendor-microsoft-dynamicproto-js-89GEKjvR.js} +1 -1
- package/dist/vendor-microsoft-signalr-Bgpbb4fW.js +1 -1
- package/dist/{vendor-nevware21-ts-async-CO9QBh90.js → vendor-nevware21-ts-async-D4qa7g-U.js} +1 -1
- package/dist/{vendor-nevware21-ts-utils-DbCMkHfb.js → vendor-nevware21-ts-utils-DII8jruI.js} +154 -154
- package/dist/{vendor-parse5-htmlparser2-tree-adapter-DBkuDq0i.js → vendor-parse5-htmlparser2-tree-adapter-BUDJ887-.js} +1 -1
- package/dist/{vendor-prosemirror-commands-Bv4ChObl.js → vendor-prosemirror-commands-Dml_M5TN.js} +2 -2
- package/dist/{vendor-prosemirror-dropcursor-kF5UKNFM.js → vendor-prosemirror-dropcursor-BpoETgOQ.js} +2 -2
- package/dist/{vendor-prosemirror-gapcursor-BWPM93Bm.js → vendor-prosemirror-gapcursor-VVbNCx01.js} +3 -3
- package/dist/{vendor-prosemirror-history-CQYKHz3u.js → vendor-prosemirror-history-CZUb2jWK.js} +2 -2
- package/dist/{vendor-prosemirror-keymap-CAfQyvJ7.js → vendor-prosemirror-keymap-D5bacBom.js} +1 -1
- package/dist/{vendor-prosemirror-markdown-BMtperlo.js → vendor-prosemirror-markdown-C-c5VoFH.js} +2 -2
- package/dist/{vendor-prosemirror-schema-list-BNJkECdS.js → vendor-prosemirror-schema-list-BZ-Z46DO.js} +1 -1
- package/dist/{vendor-prosemirror-state-IeimrELV.js → vendor-prosemirror-state-DYjHje5i.js} +1 -1
- package/dist/{vendor-prosemirror-tables-oGHIV2UK.js → vendor-prosemirror-tables-CjY-gm1w.js} +4 -4
- package/dist/{vendor-prosemirror-transform-BUjWd5Tb.js → vendor-prosemirror-transform-6xBwIzbI.js} +4 -4
- package/dist/{vendor-prosemirror-view-CR-PD0KM.js → vendor-prosemirror-view-CzBOGIAq.js} +74 -74
- package/dist/vendor-striptags-BrHtQQiF.js +120 -0
- package/dist/vendor-stylis-ClfDrgKE.js +334 -0
- package/dist/vendor-throttle-debounce-CX0imT7m.js +28 -0
- package/dist/{vendor-tiptap-core-CO_R-tjR.js → vendor-tiptap-core-BNrmxwcD.js} +516 -480
- package/dist/{vendor-tiptap-extension-blockquote-D2qy65Cv.js → vendor-tiptap-extension-blockquote-DBYgJvrA.js} +1 -1
- package/dist/{vendor-tiptap-extension-bold-CvJ9mT2Y.js → vendor-tiptap-extension-bold-BaDsyhkA.js} +1 -1
- package/dist/{vendor-tiptap-extension-code-1VjHBs98.js → vendor-tiptap-extension-code-DmMmyuE8.js} +1 -1
- package/dist/{vendor-tiptap-extension-code-block-BNnP9_pH.js → vendor-tiptap-extension-code-block-Cryhc4vR.js} +2 -2
- package/dist/{vendor-tiptap-extension-document-BajSIg0p.js → vendor-tiptap-extension-document-DTFkPYG-.js} +1 -1
- package/dist/{vendor-tiptap-extension-hard-break-BuNoB9-C.js → vendor-tiptap-extension-hard-break-DLmFSWL4.js} +1 -1
- package/dist/{vendor-tiptap-extension-heading-B392LUT7.js → vendor-tiptap-extension-heading-DlpNyZOc.js} +1 -1
- package/dist/{vendor-tiptap-extension-horizontal-rule-CSUTT0Bp.js → vendor-tiptap-extension-horizontal-rule-CI2nC7l5.js} +2 -2
- package/dist/{vendor-tiptap-extension-image-nFs2jKXm.js → vendor-tiptap-extension-image-g6grWBFQ.js} +1 -1
- package/dist/{vendor-tiptap-extension-italic-0bly_CE-.js → vendor-tiptap-extension-italic-DsMLQC-Z.js} +1 -1
- package/dist/{vendor-tiptap-extension-link-BLDvJ5vV.js → vendor-tiptap-extension-link-CF-euSmX.js} +71 -68
- package/dist/{vendor-tiptap-extension-list-B5MwE2sJ.js → vendor-tiptap-extension-list-DA57LKdr.js} +5 -5
- package/dist/{vendor-tiptap-extension-paragraph-CUsfJ4Fl.js → vendor-tiptap-extension-paragraph-CrvWamNP.js} +1 -1
- package/dist/vendor-tiptap-extension-placeholder-DVCL5REL.js +1 -0
- package/dist/{vendor-tiptap-extension-strike-C01BR5iR.js → vendor-tiptap-extension-strike-caeBdU8d.js} +1 -1
- package/dist/{vendor-tiptap-extension-table-DUnnRxVi.js → vendor-tiptap-extension-table-DBQupXqd.js} +8 -8
- package/dist/vendor-tiptap-extension-table-cell-A6UIxsTF.js +1 -0
- package/dist/vendor-tiptap-extension-table-header-A6UIxsTF.js +1 -0
- package/dist/vendor-tiptap-extension-table-row-A6UIxsTF.js +1 -0
- package/dist/{vendor-tiptap-extension-text-D-4QmCkc.js → vendor-tiptap-extension-text-CYaZSxyC.js} +1 -1
- package/dist/{vendor-tiptap-extension-text-style-DhnW0qQ-.js → vendor-tiptap-extension-text-style-C8Uqg46V.js} +1 -1
- package/dist/{vendor-tiptap-extension-underline-BNolmm6B.js → vendor-tiptap-extension-underline-Ct9ZgKsw.js} +1 -1
- package/dist/{vendor-tiptap-extensions-DLb_szZD.js → vendor-tiptap-extensions-Dg7-f1Pi.js} +89 -83
- package/dist/{vendor-tiptap-markdown-Bw1CDyaN.js → vendor-tiptap-markdown-DDkltz0i.js} +4 -4
- package/dist/vendor-tiptap-pm-BbD2LeB7.js +1 -0
- package/dist/{vendor-tiptap-starter-kit-C8ruVG5b.js → vendor-tiptap-starter-kit-C1nkrZcr.js} +17 -17
- package/dist/{vendor-tiptap-vue-3-BzCAEeCs.js → vendor-tiptap-vue-3-B3dwsJj3.js} +1 -1
- package/dist/{vendor-truncate-html-FnN2i7S3.js → vendor-truncate-html-C77Epb-R.js} +1 -1
- package/dist/vendor-unovis-ts-Bue71Kwt.js +2382 -0
- package/dist/vendor-unovis-vue-C_K1g5KH.js +446 -0
- package/dist/{vendor-vue3-application-insights-D3zyAvES.js → vendor-vue3-application-insights-BmJCYUcp.js} +2 -2
- package/dist/{vendor-vuepic-vue-datepicker-BbcXj_x6.js → vendor-vuepic-vue-datepicker-CaZ_qpJp.js} +1 -1
- package/dist/{vendor-vueuse-components-Cz0NKocY.js → vendor-vueuse-components-jqShV_Fz.js} +5 -5
- package/dist/{vendor-vueuse-core-SHmW__tV.js → vendor-vueuse-core-D-DKRsy5.js} +8 -7
- package/dist/{vendor-vueuse-shared-CN4sb53h.js → vendor-vueuse-shared-Ch7WD-uK.js} +7 -7
- package/dist/vendor-web-vitals-vrpLO1bu.js +207 -0
- package/dist/vitest-axe.setup.d.ts +10 -0
- package/dist/vitest-axe.setup.d.ts.map +1 -0
- package/package.json +10 -7
- package/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue +1 -1
- package/shared/components/app-switcher/composables/useAppSwitcher/index.ts +1 -1
- package/shared/components/blade-navigation/components/vc-blade-navigation/_internal/vc-mobile-back-button.vue +2 -1
- package/shared/components/blade-navigation/components/vc-blade-slot/vc-blade-slot.vue +143 -138
- package/shared/components/blade-navigation/types/index.ts +4 -4
- package/shared/components/change-password/change-password.vue +5 -1
- package/shared/components/change-password-button/change-password-button.stories.ts +1 -1
- package/shared/components/common/popup/vc-popup-base.vue +133 -0
- package/shared/components/common/popup/vc-popup-error.vue +6 -23
- package/shared/components/common/popup/vc-popup-info.vue +6 -23
- package/shared/components/common/popup/vc-popup-warning.vue +9 -25
- package/shared/components/dashboard-charts/ChartContainer.vue +54 -0
- package/shared/components/dashboard-charts/ChartLegend.vue +40 -0
- package/shared/components/dashboard-charts/ChartTooltip.vue +43 -0
- package/shared/components/dashboard-charts/DashboardBarChart.vue +165 -0
- package/shared/components/dashboard-charts/DashboardDonutChart.vue +137 -0
- package/shared/components/dashboard-charts/DashboardLineChart.vue +170 -0
- package/shared/components/dashboard-charts/chart-theme.scss +19 -0
- package/shared/components/dashboard-charts/chart-tooltip.scss +48 -0
- package/shared/components/dashboard-charts/chart-utils.ts +189 -0
- package/shared/components/dashboard-charts/dashboard-charts.stories.ts +393 -0
- package/shared/components/dashboard-charts/index.ts +31 -0
- package/shared/components/dashboard-charts/types.ts +7 -0
- package/shared/components/dashboard-widget-card/dashboard-widget-card.stories.ts +1 -1
- package/shared/components/draggable-dashboard/DraggableDashboard.vue +8 -2
- package/shared/components/error-interceptor/interceptor.ts +25 -3
- package/shared/components/generic-dropdown/generic-dropdown.vue +1 -1
- package/shared/components/index.ts +1 -0
- package/shared/components/language-selector/language-selector.vue +1 -1
- package/shared/components/multilanguage-selector/multilanguage-selector.stories.ts +3 -3
- package/shared/components/multilanguage-selector/multilanguage-selector.vue +117 -15
- package/shared/components/notification-dropdown/notification-dropdown.vue +2 -1
- package/shared/components/notifications/components/notification-container/index.ts +60 -14
- package/shared/components/notifications/composables/useContainer/index.ts +17 -132
- package/shared/components/notifications/core/notification.ts +3 -55
- package/shared/components/notifications/styles/index.scss +51 -89
- package/shared/components/notifications/types/index.ts +2 -4
- package/shared/components/popup-handler/components/vc-popup-container/vc-popup-container.vue +2 -2
- package/shared/components/popup-handler/composables/usePopup/index.ts +80 -77
- package/shared/components/settings-menu-item/settings-menu-item.stories.ts +2 -1
- package/shared/components/settings-menu-item/settings-menu-item.vue +2 -1
- package/shared/components/sidebar/sidebar.vue +1 -1
- package/shared/components/sign-in/external-provider.vue +2 -1
- package/shared/components/sign-in/external-providers.vue +1 -1
- package/shared/components/theme-selector/theme-selector.vue +1 -1
- package/shared/components/user-dropdown-button/_internal/user-info.vue +1 -1
- package/shared/components/user-dropdown-button/_internal/user-sidebar.vue +2 -2
- package/shared/components/user-dropdown-button/user-dropdown-button.stories.ts +1 -1
- package/shared/components/user-dropdown-button/user-dropdown-button.vue +2 -2
- package/shared/composables/useExternalWidgets.ts +2 -2
- package/shared/composables/useModificationTracker/index.ts +20 -3
- package/shared/modules/assets/components/assets-details/assets-details.vue +8 -3
- package/shared/modules/assets-manager/components/assets-manager/assets-manager.vue +4 -3
- package/shared/modules/dynamic/components/SchemaRender.ts +1 -1
- package/shared/modules/dynamic/components/factories.ts +242 -244
- package/shared/modules/dynamic/components/fields/Fieldset.ts +66 -65
- package/shared/modules/dynamic/components/fields/GalleryField.ts +3 -2
- package/shared/modules/dynamic/components/fields/MultivalueField.ts +68 -68
- package/shared/modules/dynamic/components/fields/RadioButtonGroup.ts +83 -82
- package/shared/modules/dynamic/components/fields/SelectField.ts +72 -72
- package/shared/modules/dynamic/components/fields/StatusField.ts +110 -110
- package/shared/modules/dynamic/composables/useFilterBuilder/index.ts +6 -2
- package/shared/modules/dynamic/composables/useToolbarReducer/index.ts +1 -1
- package/shared/modules/dynamic/factories/base/useDetailsFactory.ts +2 -1
- package/shared/modules/dynamic/factories/base/useListFactory.ts +2 -1
- package/shared/modules/dynamic/factories/types/index.ts +4 -3
- package/shared/modules/dynamic/helpers/nodeBuilder.ts +1 -1
- package/shared/modules/dynamic/index.ts +2 -1
- package/shared/modules/dynamic/pages/dynamic-blade-form.vue +13 -11
- package/shared/modules/dynamic/pages/dynamic-blade-list.vue +5 -4
- package/shared/modules/dynamic/types/index.ts +13 -15
- package/shared/modules/dynamic/types/models.ts +19 -21
- package/shared/pages/ForgotPasswordPage/components/forgot-password/ForgotPassword.vue +1 -1
- package/shared/pages/LoginPage/components/login/Login.vue +99 -83
- package/tailwind.config.ts +2 -21
- package/ui/components/atoms/vc-banner/vc-banner.stories.ts +259 -0
- package/ui/components/atoms/vc-banner/vc-banner.vue +168 -101
- package/ui/components/atoms/vc-button/vc-button-group.vue +7 -7
- package/ui/components/atoms/vc-button/vc-button.a11y.test.ts +46 -0
- package/ui/components/atoms/vc-button/vc-button.test.ts +75 -0
- package/ui/components/atoms/vc-button/vc-button.vue +33 -17
- package/ui/components/atoms/vc-card/vc-card.stories.ts +3 -1
- package/ui/components/atoms/vc-card/vc-card.vue +3 -3
- package/ui/components/atoms/vc-col/vc-col.stories.ts +1 -1
- package/ui/components/atoms/vc-container/vc-container.vue +4 -4
- package/ui/components/atoms/vc-icon/composables/use-icon.ts +2 -2
- package/ui/components/atoms/vc-icon/vc-icon.stories.ts +0 -20
- package/ui/components/atoms/vc-icon/vc-icon.vue +22 -22
- package/ui/components/atoms/vc-label/vc-label.vue +4 -3
- package/ui/components/atoms/vc-link/vc-link.vue +1 -1
- package/ui/components/atoms/vc-loading/vc-loading.vue +28 -28
- package/ui/components/atoms/vc-row/vc-row.stories.ts +2 -2
- package/ui/components/atoms/vc-row/vc-row.vue +1 -1
- package/ui/components/atoms/vc-scrollable-container/vc-scrollable-container.vue +1 -1
- package/ui/components/atoms/vc-skeleton/vc-skeleton.stories.ts +89 -8
- package/ui/components/atoms/vc-skeleton/vc-skeleton.vue +54 -8
- package/ui/components/atoms/vc-status/vc-status.vue +8 -8
- package/ui/components/atoms/vc-status-icon/vc-status-icon.vue +1 -1
- package/ui/components/atoms/vc-tooltip/vc-tooltip.vue +1 -1
- package/ui/components/atoms/vc-video/vc-video.vue +2 -1
- package/ui/components/atoms/vc-widget/vc-widget.stories.ts +1 -1
- package/ui/components/molecules/index.ts +0 -1
- package/ui/components/molecules/vc-accordion/_internal/vc-accordion-item/vc-accordion-item.vue +12 -43
- package/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue +23 -19
- package/ui/components/molecules/vc-checkbox/vc-checkbox.a11y.test.ts +39 -0
- package/ui/components/molecules/vc-checkbox/vc-checkbox.test.ts +75 -0
- package/ui/components/molecules/vc-checkbox/vc-checkbox.vue +49 -38
- package/ui/components/molecules/vc-color-input/vc-color-input.vue +18 -28
- package/ui/components/molecules/vc-date-picker/vc-date-picker.vue +16 -28
- package/ui/components/molecules/vc-dropdown/vc-dropdown.vue +7 -1
- package/ui/components/molecules/vc-dropdown-panel/vc-dropdown-panel.vue +11 -0
- package/ui/components/molecules/vc-editor/_internal/vc-editor-button.vue +13 -19
- package/ui/components/molecules/vc-editor/index.ts +15 -6
- package/ui/components/molecules/vc-editor/vc-editor.vue +12 -14
- package/ui/components/molecules/vc-field/_internal/vc-field-type/vc-field-type.vue +2 -2
- package/ui/components/molecules/vc-field/vc-field.vue +2 -1
- package/ui/components/molecules/vc-file-upload/vc-file-upload.stories.ts +87 -39
- package/ui/components/molecules/vc-file-upload/vc-file-upload.vue +59 -49
- package/ui/components/molecules/vc-input/vc-input.a11y.test.ts +57 -0
- package/ui/components/molecules/vc-input/vc-input.stories.ts +2 -1
- package/ui/components/molecules/vc-input/vc-input.test.ts +114 -0
- package/ui/components/molecules/vc-input/vc-input.vue +36 -58
- package/ui/components/molecules/vc-input-currency/vc-input-currency.vue +18 -87
- package/ui/components/molecules/vc-input-dropdown/index.ts +0 -1
- package/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.vue +2 -1
- package/ui/components/molecules/vc-input-group/vc-input-group.vue +2 -13
- package/ui/components/molecules/vc-multivalue/_internal/MultivalueDropdown.vue +2 -2
- package/ui/components/molecules/vc-multivalue/_internal/MultivalueTrigger.vue +207 -204
- package/ui/components/molecules/vc-multivalue/composables/useMultivalueDropdown.ts +3 -0
- package/ui/components/molecules/vc-multivalue/vc-multivalue.vue +23 -34
- package/ui/components/molecules/vc-pagination/vc-pagination.vue +11 -11
- package/ui/components/molecules/vc-radio-button/vc-radio-button.vue +12 -18
- package/ui/components/molecules/vc-rating/vc-rating.vue +2 -1
- package/ui/components/molecules/vc-select/_internal/SelectDropdown.vue +199 -198
- package/ui/components/molecules/vc-select/_internal/SelectTrigger.vue +301 -290
- package/ui/components/molecules/vc-select/vc-select.test.ts +89 -0
- package/ui/components/molecules/vc-select/vc-select.vue +32 -38
- package/ui/components/molecules/vc-slider/index.ts +21 -13
- package/ui/components/molecules/vc-slider/vc-slider.stories.ts +2 -1
- package/ui/components/molecules/vc-slider/vc-slider.vue +2 -2
- package/ui/components/molecules/vc-switch/vc-switch.vue +21 -17
- package/ui/components/molecules/vc-textarea/vc-textarea.a11y.test.ts +44 -0
- package/ui/components/molecules/vc-textarea/vc-textarea.vue +19 -21
- package/ui/components/molecules/vc-toast/vc-toast.vue +390 -109
- package/ui/components/organisms/index.ts +5 -4
- package/ui/components/organisms/vc-app/_internal/app-bar/components/AppBarMobileActions.vue +44 -28
- package/ui/components/organisms/vc-app/_internal/app-bar/components/AppBarOverlay.vue +1 -1
- package/ui/components/organisms/vc-app/_internal/app-bar/components/AppBarWidgetsMenu.vue +2 -2
- package/ui/components/organisms/vc-app/_internal/app-bar/components/AppHubContent.test.ts +2 -23
- package/ui/components/organisms/vc-app/_internal/app-bar/components/AppHubContent.vue +152 -196
- package/ui/components/organisms/vc-app/_internal/app-bar/components/AppHubPopover.vue +2 -2
- package/ui/components/organisms/vc-app/_internal/app-bar/components/MenuSidebar.vue +5 -32
- package/ui/components/organisms/vc-app/_internal/app-bar/composables/useAppBarWidgets.ts +1 -1
- package/ui/components/organisms/vc-app/_internal/app-bar/composables/useAppHub.ts +6 -46
- package/ui/components/organisms/vc-app/_internal/layouts/DesktopLayout.vue +33 -0
- package/ui/components/organisms/vc-app/_internal/layouts/MobileLayout.test.ts +151 -0
- package/ui/components/organisms/vc-app/_internal/layouts/MobileLayout.vue +442 -38
- package/ui/components/organisms/vc-app/_internal/menu/VcAppMenu.test.ts +43 -0
- package/ui/components/organisms/vc-app/_internal/menu/VcAppMenu.vue +2 -1
- package/ui/components/organisms/vc-app/_internal/menu/VcAppMenuGroup.vue +1 -1
- package/ui/components/organisms/vc-app/_internal/menu/VcAppMenuItem.vue +216 -215
- package/ui/components/organisms/vc-app/_internal/sidebar/SidebarCollapseButton.vue +1 -1
- package/ui/components/organisms/vc-app/_internal/sidebar/SidebarContent.vue +2 -2
- package/ui/components/organisms/vc-app/_internal/sidebar/SidebarHeader.vue +234 -160
- package/ui/components/organisms/vc-app/composables/useShellBootstrap.test.ts +3 -14
- package/ui/components/organisms/vc-app/composables/useShellBootstrap.ts +101 -106
- package/ui/components/organisms/vc-app/composables/useShellLifecycle.ts +1 -1
- package/ui/components/organisms/vc-app/composables/useShellNavigation.ts +1 -1
- package/ui/components/organisms/vc-app/vc-app-shell.stories.ts +107 -40
- package/ui/components/organisms/vc-app/vc-app.vue +23 -6
- package/ui/components/organisms/vc-blade/_internal/BladeContentSkeleton.vue +113 -0
- package/ui/components/organisms/vc-blade/_internal/BladeHeader.vue +2 -2
- package/ui/components/organisms/vc-blade/_internal/BladeHeaderSkeleton.vue +52 -0
- package/ui/components/organisms/vc-blade/_internal/BladeStatusBanners.vue +195 -78
- package/ui/components/organisms/vc-blade/_internal/BladeToolbarSkeleton.vue +34 -0
- package/ui/components/organisms/vc-blade/_internal/composables/useBladeError.ts +13 -33
- package/ui/components/organisms/vc-blade/_internal/composables/useToolbarRegistration.ts +4 -2
- package/ui/components/organisms/vc-blade/_internal/toolbar/ToolbarBaseButton.vue +1 -1
- package/ui/components/organisms/vc-blade/_internal/toolbar/ToolbarDesktop.vue +1 -1
- package/ui/components/organisms/vc-blade/_internal/widgets/WidgetContainer.vue +1 -1
- package/ui/components/organisms/vc-blade/_internal/widgets/WidgetContainerDesktop.vue +10 -2
- package/ui/components/organisms/vc-blade/_internal/widgets/WidgetContainerMobile.vue +2 -2
- package/ui/components/organisms/vc-blade/_internal/widgets/WidgetDropdownItem.vue +1 -1
- package/ui/components/organisms/vc-blade/vc-blade.stories.ts +77 -0
- package/ui/components/organisms/vc-blade/vc-blade.vue +92 -56
- package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +8 -5
- package/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.test.ts +48 -0
- package/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue +184 -103
- package/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue +266 -81
- package/ui/components/organisms/vc-gallery/composables/index.ts +4 -0
- package/ui/components/organisms/vc-gallery/composables/useGalleryPreview.ts +26 -0
- package/ui/components/organisms/vc-gallery/composables/useGalleryReorder.test.ts +73 -0
- package/ui/components/organisms/vc-gallery/composables/useGalleryReorder.ts +183 -0
- package/ui/components/organisms/vc-gallery/composables/useGalleryUpload.test.ts +89 -0
- package/ui/components/organisms/vc-gallery/composables/useGalleryUpload.ts +43 -0
- package/ui/components/organisms/vc-gallery/composables/useImageLoad.test.ts +34 -0
- package/ui/components/organisms/vc-gallery/composables/useImageLoad.ts +26 -0
- package/ui/components/organisms/vc-gallery/index.ts +2 -0
- package/ui/components/organisms/vc-gallery/vc-gallery.actions.test.ts +76 -0
- package/ui/components/organisms/vc-gallery/vc-gallery.stories.ts +76 -68
- package/ui/components/organisms/vc-gallery/vc-gallery.vue +322 -246
- package/ui/components/organisms/vc-image-upload/index.ts +1 -0
- package/ui/components/organisms/vc-image-upload/vc-image-upload.stories.ts +47 -0
- package/ui/components/organisms/vc-image-upload/vc-image-upload.vue +251 -0
- package/ui/components/organisms/vc-popup/vc-popup.stories.ts +106 -0
- package/ui/components/organisms/vc-popup/vc-popup.vue +95 -40
- package/ui/components/organisms/vc-table/VcDataTable.vue +146 -49
- package/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue +3 -3
- package/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue +1 -1
- package/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue +1 -1
- package/ui/components/organisms/vc-table/components/ColumnFilter.vue +29 -15
- package/ui/components/organisms/vc-table/components/DataTableBody.vue +26 -8
- package/ui/components/organisms/vc-table/components/DataTableCellRenderer.vue +2 -2
- package/ui/components/organisms/vc-table/components/DataTableHeader.vue +7 -7
- package/ui/components/organisms/vc-table/components/GlobalFiltersButton.vue +1 -1
- package/ui/components/organisms/vc-table/components/GlobalFiltersPanel.vue +116 -4
- package/ui/components/organisms/vc-table/components/TableActions.vue +1 -1
- package/ui/components/organisms/vc-table/components/TableColumnSwitcher.vue +1 -1
- package/ui/components/organisms/vc-table/components/TableGroupRow.vue +8 -8
- package/ui/components/organisms/vc-table/components/TableHead.vue +2 -2
- package/ui/components/organisms/vc-table/components/TableRow.vue +6 -5
- package/ui/components/organisms/vc-table/components/TableRowActions.vue +27 -10
- package/ui/components/organisms/vc-table/components/TableSelectAllBar.vue +5 -5
- package/ui/components/organisms/vc-table/components/_internal/TableSkeletonRows.vue +110 -0
- package/ui/components/organisms/vc-table/components/cells/CellDate.vue +4 -6
- package/ui/components/organisms/vc-table/components/cells/CellDateAgo.vue +2 -2
- package/ui/components/organisms/vc-table/components/mobile/MobileCellRenderer.vue +2 -2
- package/ui/components/organisms/vc-table/composables/useDataProcessing.ts +1 -1
- package/ui/components/organisms/vc-table/composables/useTableEditing.ts +1 -1
- package/ui/components/organisms/vc-table/composables/useTableExpansion.ts +1 -1
- package/ui/components/organisms/vc-table/composables/useTableFilter.test.ts +43 -0
- package/ui/components/organisms/vc-table/composables/useTableFilter.ts +12 -2
- package/ui/components/organisms/vc-table/composables/useTableRowGrouping.ts +1 -1
- package/ui/components/organisms/vc-table/composables/useTableSelectionV2.ts +1 -1
- package/ui/components/organisms/vc-table/keys.ts +14 -1
- package/ui/components/organisms/vc-table/types.ts +3 -1
- package/ui/composables/index.ts +1 -0
- package/ui/composables/useCollapsible.ts +73 -0
- package/ui/composables/useFormField.ts +3 -0
- package/ui/types/index.ts +1 -1
- package/core/plugins/moment/humanize.ts +0 -74
- package/core/plugins/moment/index.ts +0 -1
- package/core/plugins/moment/moment.ts +0 -29
- package/dist/core/plugins/moment/humanize.d.ts +0 -3
- package/dist/core/plugins/moment/humanize.d.ts.map +0 -1
- package/dist/core/plugins/moment/index.d.ts +0 -2
- package/dist/core/plugins/moment/index.d.ts.map +0 -1
- package/dist/core/plugins/moment/moment.d.ts +0 -13
- package/dist/core/plugins/moment/moment.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-icon/vc-icon-examples.vue.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-icon/vc-icon-test.vue.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-paginator/index.d.ts +0 -4
- package/dist/ui/components/molecules/vc-paginator/index.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-paginator/vc-paginator.vue.d.ts +0 -73
- package/dist/ui/components/molecules/vc-paginator/vc-paginator.vue.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-table/composables/useDataTableOrchestrator.d.ts +0 -173
- package/dist/ui/components/organisms/vc-table/composables/useDataTableOrchestrator.d.ts.map +0 -1
- package/dist/vendor-floating-ui-core-Dj2ULpEE.js +0 -428
- package/dist/vendor-floating-ui-dom-DC_tF7jX.js +0 -397
- package/dist/vendor-floating-ui-utils-0qz4b9vE.js +0 -259
- package/dist/vendor-moment-DMLRxgRE.js +0 -2589
- package/dist/vendor-tanstack-virtual-core-l0sNRNKZ.js +0 -1
- package/dist/vendor-tiptap-extension-placeholder-uPw8yyv1.js +0 -1
- package/dist/vendor-tiptap-extension-table-cell-CzgB8j33.js +0 -1
- package/dist/vendor-tiptap-extension-table-header-CzgB8j33.js +0 -1
- package/dist/vendor-tiptap-extension-table-row-CzgB8j33.js +0 -1
- package/dist/vendor-tiptap-pm-5ylZKocv.js +0 -1
- package/ui/components/atoms/vc-icon/vc-icon-examples.vue +0 -544
- package/ui/components/atoms/vc-icon/vc-icon-test.vue +0 -416
- package/ui/components/molecules/vc-paginator/index.ts +0 -4
- package/ui/components/molecules/vc-paginator/vc-paginator.vue +0 -379
- package/ui/components/organisms/vc-table/composables/useDataTableOrchestrator.ts +0 -516
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { f as he, c as gt, T as me, e as ge, l as ve, j as Bt, b as
|
|
2
|
-
import { c as we, d as ke, e as Me, j as
|
|
3
|
-
import { N as nt, E as Oe, S as j, T as P, P as $, a as B, A as je } from "./vendor-prosemirror-state-
|
|
1
|
+
import { f as he, c as gt, T as me, e as ge, l as ve, j as Bt, b as Z, R as ye, a as be } from "./vendor-prosemirror-transform-6xBwIzbI.js";
|
|
2
|
+
import { c as we, d as ke, e as Me, j as xe, a as Se, b as Ee, f as Te, g as Ae, h as Ce, l as Pe, i as $e, n as Ne, s as Re, k as ze, m as Ie, o as De, p as Be, q as Tt, w as _e } from "./vendor-prosemirror-commands-Dml_M5TN.js";
|
|
3
|
+
import { N as nt, E as Oe, S as j, T as P, P as $, a as B, A as je } from "./vendor-prosemirror-state-DYjHje5i.js";
|
|
4
4
|
import { D as Le, d as _t, F as D, N as He, c as ut, S as Fe } from "./vendor-prosemirror-model-DAA3avbR.js";
|
|
5
|
-
import { l as Ve, s as We, w as Ue } from "./vendor-prosemirror-schema-list-
|
|
6
|
-
import { E as Ke } from "./vendor-prosemirror-view-
|
|
7
|
-
import { k as qe } from "./vendor-prosemirror-keymap-
|
|
5
|
+
import { l as Ve, s as We, w as Ue } from "./vendor-prosemirror-schema-list-BZ-Z46DO.js";
|
|
6
|
+
import { E as Ke } from "./vendor-prosemirror-view-CzBOGIAq.js";
|
|
7
|
+
import { k as qe } from "./vendor-prosemirror-keymap-D5bacBom.js";
|
|
8
8
|
var Je = Object.defineProperty, vt = (e, t) => {
|
|
9
9
|
for (var n in t)
|
|
10
10
|
Je(e, n, { get: t[n], enumerable: !0 });
|
|
@@ -62,8 +62,8 @@ var st = class {
|
|
|
62
62
|
createChain(e, t = !0) {
|
|
63
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((u) => u === !0)), d = {
|
|
64
64
|
...Object.fromEntries(
|
|
65
|
-
Object.entries(n).map(([u,
|
|
66
|
-
const m = this.buildProps(c, t), g =
|
|
65
|
+
Object.entries(n).map(([u, p]) => [u, (...h) => {
|
|
66
|
+
const m = this.buildProps(c, t), g = p(...h)(m);
|
|
67
67
|
return i.push(g), d;
|
|
68
68
|
}])
|
|
69
69
|
),
|
|
@@ -121,13 +121,13 @@ vt(Ot, {
|
|
|
121
121
|
forEach: () => fn,
|
|
122
122
|
insertContent: () => pn,
|
|
123
123
|
insertContentAt: () => gn,
|
|
124
|
-
joinBackward: () =>
|
|
125
|
-
joinDown: () =>
|
|
124
|
+
joinBackward: () => bn,
|
|
125
|
+
joinDown: () => yn,
|
|
126
126
|
joinForward: () => wn,
|
|
127
127
|
joinItemBackward: () => kn,
|
|
128
128
|
joinItemForward: () => Mn,
|
|
129
|
-
joinTextblockBackward: () =>
|
|
130
|
-
joinTextblockForward: () =>
|
|
129
|
+
joinTextblockBackward: () => xn,
|
|
130
|
+
joinTextblockForward: () => Sn,
|
|
131
131
|
joinUp: () => vn,
|
|
132
132
|
keyboardShortcut: () => Tn,
|
|
133
133
|
lift: () => An,
|
|
@@ -156,13 +156,13 @@ vt(Ot, {
|
|
|
156
156
|
toggleMark: () => mr,
|
|
157
157
|
toggleNode: () => gr,
|
|
158
158
|
toggleWrap: () => vr,
|
|
159
|
-
undoInputRule: () =>
|
|
160
|
-
unsetAllMarks: () =>
|
|
159
|
+
undoInputRule: () => yr,
|
|
160
|
+
unsetAllMarks: () => br,
|
|
161
161
|
unsetMark: () => wr,
|
|
162
162
|
unsetTextDirection: () => kr,
|
|
163
163
|
updateAttributes: () => Mr,
|
|
164
|
-
wrapIn: () =>
|
|
165
|
-
wrapInList: () =>
|
|
164
|
+
wrapIn: () => xr,
|
|
165
|
+
wrapInList: () => Sr
|
|
166
166
|
});
|
|
167
167
|
var Xe = () => ({ editor: e, view: t }) => (requestAnimationFrame(() => {
|
|
168
168
|
var n;
|
|
@@ -173,15 +173,15 @@ var Xe = () => ({ editor: e, view: t }) => (requestAnimationFrame(() => {
|
|
|
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: d } = t, u = l.resolve(d.map(c)),
|
|
177
|
-
if (!
|
|
176
|
+
const { doc: l, mapping: d } = t, u = l.resolve(d.map(c)), p = l.resolve(d.map(c + a.nodeSize)), f = u.blockRange(p);
|
|
177
|
+
if (!f)
|
|
178
178
|
return;
|
|
179
|
-
const h = ve(
|
|
179
|
+
const h = ve(f);
|
|
180
180
|
if (a.type.isTextblock) {
|
|
181
181
|
const { defaultType: m } = u.parent.contentMatchAt(u.index());
|
|
182
|
-
t.setNodeMarkup(
|
|
182
|
+
t.setNodeMarkup(f.start, m);
|
|
183
183
|
}
|
|
184
|
-
(h || h === 0) && t.lift(
|
|
184
|
+
(h || h === 0) && t.lift(f, h);
|
|
185
185
|
});
|
|
186
186
|
}), !0;
|
|
187
187
|
}, Qe = (e) => (t) => e(t), Ge = () => ({ state: e, dispatch: t }) => we(e, t), tn = (e, t) => ({ editor: n, tr: r }) => {
|
|
@@ -227,15 +227,15 @@ var nn = (e) => ({ tr: t, state: n, dispatch: r }) => {
|
|
|
227
227
|
const { from: r, to: s } = e;
|
|
228
228
|
return n && t.delete(r, s), !0;
|
|
229
229
|
}, sn = () => ({ state: e, dispatch: t }) => ke(e, t), on = () => ({ commands: e }) => e.keyboardShortcut("Enter"), an = () => ({ state: e, dispatch: t }) => Me(e, t);
|
|
230
|
-
function
|
|
230
|
+
function yt(e) {
|
|
231
231
|
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function G(e, t, n = { strict: !0 }) {
|
|
234
234
|
const r = Object.keys(t);
|
|
235
|
-
return r.length ? r.every((s) => n.strict ? t[s] === e[s] :
|
|
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
237
|
function jt(e, t, n = {}) {
|
|
238
|
-
return e.find((r) => r.type === t &&
|
|
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]])),
|
|
241
241
|
n
|
|
@@ -244,7 +244,7 @@ function jt(e, t, n = {}) {
|
|
|
244
244
|
function At(e, t, n = {}) {
|
|
245
245
|
return !!jt(e, t, n);
|
|
246
246
|
}
|
|
247
|
-
function
|
|
247
|
+
function bt(e, t, n) {
|
|
248
248
|
var r;
|
|
249
249
|
if (!e || !t)
|
|
250
250
|
return;
|
|
@@ -272,10 +272,10 @@ function z(e, t) {
|
|
|
272
272
|
var cn = (e, t = {}) => ({ tr: n, state: r, dispatch: s }) => {
|
|
273
273
|
const o = z(e, r.schema), { doc: i, selection: a } = n, { $from: c, from: l, to: d } = a;
|
|
274
274
|
if (s) {
|
|
275
|
-
const u =
|
|
275
|
+
const u = bt(c, o, t);
|
|
276
276
|
if (u && u.from <= l && u.to >= d) {
|
|
277
|
-
const
|
|
278
|
-
n.setSelection(
|
|
277
|
+
const p = P.create(i, u.from, u.to);
|
|
278
|
+
n.setSelection(p);
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
return !0;
|
|
@@ -306,7 +306,7 @@ function Ht(e, t = null) {
|
|
|
306
306
|
function Ct() {
|
|
307
307
|
return navigator.platform === "Android" || /android/i.test(navigator.userAgent);
|
|
308
308
|
}
|
|
309
|
-
function
|
|
309
|
+
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
|
}
|
|
@@ -319,12 +319,16 @@ var un = (e = null, t = {}) => ({ editor: n, view: r, tr: s, dispatch: o }) => {
|
|
|
319
319
|
...t
|
|
320
320
|
};
|
|
321
321
|
const i = () => {
|
|
322
|
-
(
|
|
322
|
+
(tt() || Ct()) && r.dom.focus(), dn() && !tt() && !Ct() && r.dom.focus({ preventScroll: !0 }), requestAnimationFrame(() => {
|
|
323
323
|
n.isDestroyed || (r.focus(), t?.scrollIntoView && n.commands.scrollIntoView());
|
|
324
324
|
});
|
|
325
325
|
};
|
|
326
|
-
|
|
327
|
-
|
|
326
|
+
try {
|
|
327
|
+
if (r.hasFocus() && e === null || e === !1)
|
|
328
|
+
return !0;
|
|
329
|
+
} catch {
|
|
330
|
+
return !1;
|
|
331
|
+
}
|
|
328
332
|
if (o && e === null && !Lt(n.state.selection))
|
|
329
333
|
return i(), !0;
|
|
330
334
|
const a = Ht(s.doc, e) || n.state.selection, c = n.state.selection.eq(a);
|
|
@@ -337,13 +341,13 @@ var un = (e = null, t = {}) => ({ editor: n, view: r, tr: s, dispatch: o }) => {
|
|
|
337
341
|
}
|
|
338
342
|
return e;
|
|
339
343
|
};
|
|
340
|
-
function
|
|
344
|
+
function q(e) {
|
|
341
345
|
if (typeof window > "u")
|
|
342
346
|
throw new Error("[tiptap error]: there is no window object available, so this function cannot be used");
|
|
343
347
|
const t = `<body>${e}</body>`, n = new window.DOMParser().parseFromString(t, "text/html").body;
|
|
344
348
|
return Ft(n);
|
|
345
349
|
}
|
|
346
|
-
function
|
|
350
|
+
function W(e, t, n) {
|
|
347
351
|
if (e instanceof He || e instanceof D)
|
|
348
352
|
return e;
|
|
349
353
|
n = {
|
|
@@ -361,7 +365,7 @@ function F(e, t, n) {
|
|
|
361
365
|
} catch (o) {
|
|
362
366
|
if (n.errorOnInvalidContent)
|
|
363
367
|
throw new Error("[tiptap error]: Invalid JSON content", { cause: o });
|
|
364
|
-
return console.warn("[tiptap warn]: Invalid content.", "Passed value:", e, "Error:", o),
|
|
368
|
+
return console.warn("[tiptap warn]: Invalid content.", "Passed value:", e, "Error:", o), W("", t, n);
|
|
365
369
|
}
|
|
366
370
|
if (s) {
|
|
367
371
|
if (n.errorOnInvalidContent) {
|
|
@@ -384,22 +388,22 @@ function F(e, t, n) {
|
|
|
384
388
|
}
|
|
385
389
|
})
|
|
386
390
|
});
|
|
387
|
-
if (n.slice ? ut.fromSchema(c).parseSlice(
|
|
391
|
+
if (n.slice ? ut.fromSchema(c).parseSlice(q(e), n.parseOptions) : ut.fromSchema(c).parse(q(e), n.parseOptions), n.errorOnInvalidContent && i)
|
|
388
392
|
throw new Error("[tiptap error]: Invalid HTML content", {
|
|
389
393
|
cause: new Error(`Invalid element found: ${a}`)
|
|
390
394
|
});
|
|
391
395
|
}
|
|
392
396
|
const o = ut.fromSchema(t);
|
|
393
|
-
return n.slice ? o.parseSlice(
|
|
397
|
+
return n.slice ? o.parseSlice(q(e), n.parseOptions).content : o.parse(q(e), n.parseOptions);
|
|
394
398
|
}
|
|
395
|
-
return
|
|
399
|
+
return W("", t, n);
|
|
396
400
|
}
|
|
397
401
|
function hn(e, t, n) {
|
|
398
402
|
const r = e.steps.length - 1;
|
|
399
403
|
if (r < t)
|
|
400
404
|
return;
|
|
401
405
|
const s = e.steps[r];
|
|
402
|
-
if (!(s instanceof
|
|
406
|
+
if (!(s instanceof ye || s instanceof be))
|
|
403
407
|
return;
|
|
404
408
|
const o = e.mapping.maps[r];
|
|
405
409
|
let i = 0;
|
|
@@ -432,7 +436,7 @@ var mn = (e) => !("type" in e), gn = (e, t, n) => ({ tr: r, dispatch: s, editor:
|
|
|
432
436
|
};
|
|
433
437
|
if (!n.errorOnInvalidContent && !o.options.enableContentCheck && o.options.emitContentError)
|
|
434
438
|
try {
|
|
435
|
-
|
|
439
|
+
W(t, o.schema, {
|
|
436
440
|
parseOptions: l,
|
|
437
441
|
errorOnInvalidContent: !0
|
|
438
442
|
});
|
|
@@ -440,22 +444,22 @@ var mn = (e) => !("type" in e), gn = (e, t, n) => ({ tr: r, dispatch: s, editor:
|
|
|
440
444
|
c(g);
|
|
441
445
|
}
|
|
442
446
|
try {
|
|
443
|
-
a =
|
|
447
|
+
a = W(t, o.schema, {
|
|
444
448
|
parseOptions: l,
|
|
445
449
|
errorOnInvalidContent: (i = n.errorOnInvalidContent) != null ? i : o.options.enableContentCheck
|
|
446
450
|
});
|
|
447
451
|
} catch (g) {
|
|
448
452
|
return c(g), !1;
|
|
449
453
|
}
|
|
450
|
-
let { from: d, to: u } = typeof e == "number" ? { from: e, to: e } : { from: e.from, to: e.to },
|
|
454
|
+
let { from: d, to: u } = typeof e == "number" ? { from: e, to: e } : { from: e.from, to: e.to }, p = !0, f = !0;
|
|
451
455
|
if ((mn(a) ? a : [a]).forEach((g) => {
|
|
452
|
-
g.check(),
|
|
453
|
-
}), d === u &&
|
|
456
|
+
g.check(), p = p ? g.isText && g.marks.length === 0 : !1, f = f ? g.isBlock : !1;
|
|
457
|
+
}), d === u && f) {
|
|
454
458
|
const { parent: g } = r.doc.resolve(d);
|
|
455
459
|
g.isTextblock && !g.type.spec.code && !g.childCount && (d -= 1, u += 1);
|
|
456
460
|
}
|
|
457
461
|
let m;
|
|
458
|
-
if (
|
|
462
|
+
if (p) {
|
|
459
463
|
if (Array.isArray(t))
|
|
460
464
|
m = t.map((g) => g.text || "").join("");
|
|
461
465
|
else if (t instanceof D) {
|
|
@@ -467,13 +471,13 @@ var mn = (e) => !("type" in e), gn = (e, t, n) => ({ tr: r, dispatch: s, editor:
|
|
|
467
471
|
r.insertText(m, d, u);
|
|
468
472
|
} else {
|
|
469
473
|
m = a;
|
|
470
|
-
const g = r.doc.resolve(d), v = g.node(),
|
|
471
|
-
|
|
474
|
+
const g = r.doc.resolve(d), v = g.node(), b = g.parentOffset === 0, k = v.isText || v.isTextblock, M = v.content.size > 0;
|
|
475
|
+
b && k && M && (d = Math.max(0, d - 1)), r.replaceWith(d, u, m);
|
|
472
476
|
}
|
|
473
477
|
n.updateSelection && hn(r, r.steps.length - 1, -1), n.applyInputRules && r.setMeta("applyInputRules", { from: d, text: m }), n.applyPasteRules && r.setMeta("applyPasteRules", { from: d, text: m });
|
|
474
478
|
}
|
|
475
479
|
return !0;
|
|
476
|
-
}, vn = () => ({ state: e, dispatch: t }) =>
|
|
480
|
+
}, vn = () => ({ state: e, dispatch: t }) => xe(e, t), 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, tr: n }) => {
|
|
477
481
|
try {
|
|
478
482
|
const r = Bt(e.doc, e.selection.$from.pos, -1);
|
|
479
483
|
return r == null ? !1 : (n.join(r, 2), t && t(n), !0);
|
|
@@ -487,7 +491,7 @@ var mn = (e) => !("type" in e), gn = (e, t, n) => ({ tr: r, dispatch: s, editor:
|
|
|
487
491
|
} catch {
|
|
488
492
|
return !1;
|
|
489
493
|
}
|
|
490
|
-
},
|
|
494
|
+
}, xn = () => ({ state: e, dispatch: t }) => Ae(e, t), Sn = () => ({ state: e, dispatch: t }) => Ce(e, t);
|
|
491
495
|
function Vt() {
|
|
492
496
|
return typeof navigator < "u" ? /Mac/.test(navigator.platform) : !1;
|
|
493
497
|
}
|
|
@@ -507,7 +511,7 @@ function En(e) {
|
|
|
507
511
|
else if (/^s(hift)?$/i.test(c))
|
|
508
512
|
o = !0;
|
|
509
513
|
else if (/^mod$/i.test(c))
|
|
510
|
-
|
|
514
|
+
tt() || Vt() ? i = !0 : s = !0;
|
|
511
515
|
else
|
|
512
516
|
throw new Error(`Unrecognized modifier name: ${c}`);
|
|
513
517
|
}
|
|
@@ -530,24 +534,24 @@ var Tn = (e) => ({ editor: t, view: n, tr: r, dispatch: s }) => {
|
|
|
530
534
|
d && s && r.maybeStep(d);
|
|
531
535
|
}), !0;
|
|
532
536
|
};
|
|
533
|
-
function
|
|
537
|
+
function U(e, t, n = {}) {
|
|
534
538
|
const { from: r, to: s, empty: o } = e.selection, i = t ? T(t, e.schema) : null, a = [];
|
|
535
|
-
e.doc.nodesBetween(r, s, (u,
|
|
539
|
+
e.doc.nodesBetween(r, s, (u, p) => {
|
|
536
540
|
if (u.isText)
|
|
537
541
|
return;
|
|
538
|
-
const
|
|
542
|
+
const f = Math.max(r, p), h = Math.min(s, p + u.nodeSize);
|
|
539
543
|
a.push({
|
|
540
544
|
node: u,
|
|
541
|
-
from:
|
|
545
|
+
from: f,
|
|
542
546
|
to: h
|
|
543
547
|
});
|
|
544
548
|
});
|
|
545
|
-
const c = s - r, l = a.filter((u) => i ? i.name === u.node.type.name : !0).filter((u) =>
|
|
546
|
-
return o ? !!l.length : l.reduce((u,
|
|
549
|
+
const c = s - r, l = a.filter((u) => i ? i.name === u.node.type.name : !0).filter((u) => G(u.node.attrs, n, { strict: !1 }));
|
|
550
|
+
return o ? !!l.length : l.reduce((u, p) => u + p.to - p.from, 0) >= c;
|
|
547
551
|
}
|
|
548
552
|
var An = (e, t = {}) => ({ state: n, dispatch: r }) => {
|
|
549
553
|
const s = T(e, n.schema);
|
|
550
|
-
return
|
|
554
|
+
return U(n, s, t) ? Pe(n, r) : !1;
|
|
551
555
|
}, Cn = () => ({ state: e, dispatch: t }) => $e(e, t), Pn = (e) => ({ state: t, dispatch: n }) => {
|
|
552
556
|
const r = T(e, t.schema);
|
|
553
557
|
return Ve(r)(t, n);
|
|
@@ -571,8 +575,8 @@ var Nn = (e, t) => ({ tr: n, state: r, dispatch: s }) => {
|
|
|
571
575
|
let c = !1;
|
|
572
576
|
return n.selection.ranges.forEach((l) => {
|
|
573
577
|
r.doc.nodesBetween(l.$from.pos, l.$to.pos, (d, u) => {
|
|
574
|
-
o && o === d.type && (c = !0, s && n.setNodeMarkup(u, void 0, Pt(d.attrs, t))), i && d.marks.length && d.marks.forEach((
|
|
575
|
-
i ===
|
|
578
|
+
o && o === d.type && (c = !0, s && n.setNodeMarkup(u, void 0, Pt(d.attrs, t))), i && d.marks.length && d.marks.forEach((p) => {
|
|
579
|
+
i === p.type && (c = !0, s && n.addMark(u, u + d.nodeSize, i.create(Pt(p.attrs, t))));
|
|
576
580
|
});
|
|
577
581
|
});
|
|
578
582
|
}), c;
|
|
@@ -584,7 +588,7 @@ var Nn = (e, t) => ({ tr: n, state: r, dispatch: s }) => {
|
|
|
584
588
|
return !0;
|
|
585
589
|
}, In = () => ({ state: e, dispatch: t }) => Re(e, t), Dn = () => ({ state: e, dispatch: t }) => ze(e, t), Bn = () => ({ state: e, dispatch: t }) => Ie(e, t), _n = () => ({ state: e, dispatch: t }) => De(e, t), On = () => ({ state: e, dispatch: t }) => Be(e, t);
|
|
586
590
|
function ht(e, t, n = {}, r = {}) {
|
|
587
|
-
return
|
|
591
|
+
return W(e, t, {
|
|
588
592
|
slice: !1,
|
|
589
593
|
parseOptions: n,
|
|
590
594
|
errorOnInvalidContent: r.errorOnInvalidContent
|
|
@@ -651,10 +655,10 @@ function Fn(e, t) {
|
|
|
651
655
|
function it(e) {
|
|
652
656
|
return (t) => Fn(t.$from, e);
|
|
653
657
|
}
|
|
654
|
-
function
|
|
655
|
-
return e.config[t] === void 0 && e.parent ?
|
|
658
|
+
function y(e, t, n) {
|
|
659
|
+
return e.config[t] === void 0 && e.parent ? y(e.parent, t, n) : typeof e.config[t] == "function" ? e.config[t].bind({
|
|
656
660
|
...n,
|
|
657
|
-
parent: e.parent ?
|
|
661
|
+
parent: e.parent ? y(e.parent, t, n) : null
|
|
658
662
|
}) : e.config[t];
|
|
659
663
|
}
|
|
660
664
|
function wt(e) {
|
|
@@ -663,7 +667,7 @@ function wt(e) {
|
|
|
663
667
|
name: t.name,
|
|
664
668
|
options: t.options,
|
|
665
669
|
storage: t.storage
|
|
666
|
-
}, r =
|
|
670
|
+
}, r = y(t, "addExtensions", n);
|
|
667
671
|
return r ? [t, ...wt(r())] : t;
|
|
668
672
|
}).flat(10);
|
|
669
673
|
}
|
|
@@ -674,7 +678,7 @@ function kt(e, t) {
|
|
|
674
678
|
function Ut(e) {
|
|
675
679
|
return typeof e == "function";
|
|
676
680
|
}
|
|
677
|
-
function
|
|
681
|
+
function x(e, t = void 0, ...n) {
|
|
678
682
|
return Ut(e) ? t ? e.bind(t)(...n) : e(...n) : e;
|
|
679
683
|
}
|
|
680
684
|
function Vn(e = {}) {
|
|
@@ -697,56 +701,57 @@ function Kt(e) {
|
|
|
697
701
|
parseHTML: null,
|
|
698
702
|
keepOnSplit: !0,
|
|
699
703
|
isRequired: !1
|
|
700
|
-
};
|
|
701
|
-
return e.forEach((
|
|
702
|
-
const
|
|
703
|
-
name:
|
|
704
|
-
options:
|
|
705
|
-
storage:
|
|
704
|
+
}, i = n.filter((l) => l.name !== "text").map((l) => l.name), a = r.map((l) => l.name), c = [...i, ...a];
|
|
705
|
+
return e.forEach((l) => {
|
|
706
|
+
const d = {
|
|
707
|
+
name: l.name,
|
|
708
|
+
options: l.options,
|
|
709
|
+
storage: l.storage,
|
|
706
710
|
extensions: s
|
|
707
|
-
},
|
|
708
|
-
|
|
711
|
+
}, u = y(
|
|
712
|
+
l,
|
|
709
713
|
"addGlobalAttributes",
|
|
710
|
-
|
|
714
|
+
d
|
|
711
715
|
);
|
|
712
|
-
if (!
|
|
716
|
+
if (!u)
|
|
713
717
|
return;
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
718
|
+
u().forEach((f) => {
|
|
719
|
+
let h;
|
|
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
|
+
Object.entries(f.attributes).forEach(([g, v]) => {
|
|
717
722
|
t.push({
|
|
718
|
-
type:
|
|
719
|
-
name:
|
|
723
|
+
type: m,
|
|
724
|
+
name: g,
|
|
720
725
|
attribute: {
|
|
721
726
|
...o,
|
|
722
|
-
...
|
|
727
|
+
...v
|
|
723
728
|
}
|
|
724
729
|
});
|
|
725
730
|
});
|
|
726
731
|
});
|
|
727
732
|
});
|
|
728
|
-
}), s.forEach((
|
|
729
|
-
const
|
|
730
|
-
name:
|
|
731
|
-
options:
|
|
732
|
-
storage:
|
|
733
|
-
},
|
|
734
|
-
|
|
733
|
+
}), s.forEach((l) => {
|
|
734
|
+
const d = {
|
|
735
|
+
name: l.name,
|
|
736
|
+
options: l.options,
|
|
737
|
+
storage: l.storage
|
|
738
|
+
}, u = y(
|
|
739
|
+
l,
|
|
735
740
|
"addAttributes",
|
|
736
|
-
|
|
741
|
+
d
|
|
737
742
|
);
|
|
738
|
-
if (!
|
|
743
|
+
if (!u)
|
|
739
744
|
return;
|
|
740
|
-
const
|
|
741
|
-
Object.entries(
|
|
742
|
-
const
|
|
745
|
+
const p = u();
|
|
746
|
+
Object.entries(p).forEach(([f, h]) => {
|
|
747
|
+
const m = {
|
|
743
748
|
...o,
|
|
744
|
-
...
|
|
749
|
+
...h
|
|
745
750
|
};
|
|
746
|
-
typeof
|
|
747
|
-
type:
|
|
748
|
-
name:
|
|
749
|
-
attribute:
|
|
751
|
+
typeof m?.default == "function" && (m.default = m.default()), m?.isRequired && m?.default === void 0 && delete m.default, t.push({
|
|
752
|
+
type: l.name,
|
|
753
|
+
name: f,
|
|
754
|
+
attribute: m
|
|
750
755
|
});
|
|
751
756
|
});
|
|
752
757
|
}), t;
|
|
@@ -765,18 +770,18 @@ function Wn(...e) {
|
|
|
765
770
|
} else if (s === "style") {
|
|
766
771
|
const a = o ? o.split(";").map((d) => d.trim()).filter(Boolean) : [], c = r[s] ? r[s].split(";").map((d) => d.trim()).filter(Boolean) : [], l = /* @__PURE__ */ new Map();
|
|
767
772
|
c.forEach((d) => {
|
|
768
|
-
const [u,
|
|
769
|
-
l.set(u,
|
|
773
|
+
const [u, p] = d.split(":").map((f) => f.trim());
|
|
774
|
+
l.set(u, p);
|
|
770
775
|
}), a.forEach((d) => {
|
|
771
|
-
const [u,
|
|
772
|
-
l.set(u,
|
|
776
|
+
const [u, p] = d.split(":").map((f) => f.trim());
|
|
777
|
+
l.set(u, p);
|
|
773
778
|
}), r[s] = Array.from(l.entries()).map(([d, u]) => `${d}: ${u}`).join("; ");
|
|
774
779
|
} else
|
|
775
780
|
r[s] = o;
|
|
776
781
|
}), r;
|
|
777
782
|
}, {});
|
|
778
783
|
}
|
|
779
|
-
function
|
|
784
|
+
function et(e, t) {
|
|
780
785
|
return t.filter((n) => n.type === e.type.name).filter((n) => n.attribute.rendered).map((n) => n.attribute.renderHTML ? n.attribute.renderHTML(e.attrs) || {} : {
|
|
781
786
|
[n.name]: e.attrs[n.name]
|
|
782
787
|
}).reduce((n, r) => Wn(n, r), {});
|
|
@@ -815,47 +820,47 @@ function Rt(e) {
|
|
|
815
820
|
}
|
|
816
821
|
function Kn(e, t) {
|
|
817
822
|
var n;
|
|
818
|
-
const r = Kt(e), { nodeExtensions: s, markExtensions: o } = L(e), i = (n = s.find((l) =>
|
|
823
|
+
const r = Kt(e), { nodeExtensions: s, markExtensions: o } = L(e), i = (n = s.find((l) => y(l, "topNode"))) == null ? void 0 : n.name, a = Object.fromEntries(
|
|
819
824
|
s.map((l) => {
|
|
820
825
|
const d = r.filter((v) => v.type === l.name), u = {
|
|
821
826
|
name: l.name,
|
|
822
827
|
options: l.options,
|
|
823
828
|
storage: l.storage,
|
|
824
829
|
editor: t
|
|
825
|
-
},
|
|
826
|
-
const k = b
|
|
830
|
+
}, p = e.reduce((v, b) => {
|
|
831
|
+
const k = y(b, "extendNodeSchema", u);
|
|
827
832
|
return {
|
|
828
833
|
...v,
|
|
829
834
|
...k ? k(l) : {}
|
|
830
835
|
};
|
|
831
|
-
}, {}),
|
|
832
|
-
...
|
|
833
|
-
content:
|
|
834
|
-
marks:
|
|
835
|
-
group:
|
|
836
|
-
inline:
|
|
837
|
-
atom:
|
|
838
|
-
selectable:
|
|
839
|
-
draggable:
|
|
840
|
-
code:
|
|
841
|
-
whitespace:
|
|
842
|
-
linebreakReplacement:
|
|
843
|
-
|
|
836
|
+
}, {}), f = Nt({
|
|
837
|
+
...p,
|
|
838
|
+
content: x(y(l, "content", u)),
|
|
839
|
+
marks: x(y(l, "marks", u)),
|
|
840
|
+
group: x(y(l, "group", u)),
|
|
841
|
+
inline: x(y(l, "inline", u)),
|
|
842
|
+
atom: x(y(l, "atom", u)),
|
|
843
|
+
selectable: x(y(l, "selectable", u)),
|
|
844
|
+
draggable: x(y(l, "draggable", u)),
|
|
845
|
+
code: x(y(l, "code", u)),
|
|
846
|
+
whitespace: x(y(l, "whitespace", u)),
|
|
847
|
+
linebreakReplacement: x(
|
|
848
|
+
y(l, "linebreakReplacement", u)
|
|
844
849
|
),
|
|
845
|
-
defining:
|
|
846
|
-
isolating:
|
|
850
|
+
defining: x(y(l, "defining", u)),
|
|
851
|
+
isolating: x(y(l, "isolating", u)),
|
|
847
852
|
attrs: Object.fromEntries(d.map(Rt))
|
|
848
|
-
}), h =
|
|
849
|
-
h && (
|
|
853
|
+
}), h = x(y(l, "parseHTML", u));
|
|
854
|
+
h && (f.parseDOM = h.map(
|
|
850
855
|
(v) => $t(v, d)
|
|
851
856
|
));
|
|
852
|
-
const m =
|
|
853
|
-
m && (
|
|
857
|
+
const m = y(l, "renderHTML", u);
|
|
858
|
+
m && (f.toDOM = (v) => m({
|
|
854
859
|
node: v,
|
|
855
|
-
HTMLAttributes:
|
|
860
|
+
HTMLAttributes: et(v, d)
|
|
856
861
|
}));
|
|
857
|
-
const g =
|
|
858
|
-
return g && (
|
|
862
|
+
const g = y(l, "renderText", u);
|
|
863
|
+
return g && (f.toText = g), [l.name, f];
|
|
859
864
|
})
|
|
860
865
|
), c = Object.fromEntries(
|
|
861
866
|
o.map((l) => {
|
|
@@ -864,29 +869,29 @@ function Kn(e, t) {
|
|
|
864
869
|
options: l.options,
|
|
865
870
|
storage: l.storage,
|
|
866
871
|
editor: t
|
|
867
|
-
},
|
|
868
|
-
const
|
|
872
|
+
}, p = e.reduce((g, v) => {
|
|
873
|
+
const b = y(v, "extendMarkSchema", u);
|
|
869
874
|
return {
|
|
870
875
|
...g,
|
|
871
|
-
...
|
|
876
|
+
...b ? b(l) : {}
|
|
872
877
|
};
|
|
873
|
-
}, {}),
|
|
874
|
-
...
|
|
875
|
-
inclusive:
|
|
876
|
-
excludes:
|
|
877
|
-
group:
|
|
878
|
-
spanning:
|
|
879
|
-
code:
|
|
878
|
+
}, {}), f = Nt({
|
|
879
|
+
...p,
|
|
880
|
+
inclusive: x(y(l, "inclusive", u)),
|
|
881
|
+
excludes: x(y(l, "excludes", u)),
|
|
882
|
+
group: x(y(l, "group", u)),
|
|
883
|
+
spanning: x(y(l, "spanning", u)),
|
|
884
|
+
code: x(y(l, "code", u)),
|
|
880
885
|
attrs: Object.fromEntries(d.map(Rt))
|
|
881
|
-
}), h =
|
|
882
|
-
h && (
|
|
886
|
+
}), h = x(y(l, "parseHTML", u));
|
|
887
|
+
h && (f.parseDOM = h.map(
|
|
883
888
|
(g) => $t(g, d)
|
|
884
889
|
));
|
|
885
|
-
const m =
|
|
886
|
-
return m && (
|
|
890
|
+
const m = y(l, "renderHTML", u);
|
|
891
|
+
return m && (f.toDOM = (g) => m({
|
|
887
892
|
mark: g,
|
|
888
|
-
HTMLAttributes:
|
|
889
|
-
})), [l.name,
|
|
893
|
+
HTMLAttributes: et(g, d)
|
|
894
|
+
})), [l.name, f];
|
|
890
895
|
})
|
|
891
896
|
);
|
|
892
897
|
return new _t({
|
|
@@ -899,14 +904,14 @@ function qn(e) {
|
|
|
899
904
|
const t = e.filter((n, r) => e.indexOf(n) !== r);
|
|
900
905
|
return Array.from(new Set(t));
|
|
901
906
|
}
|
|
902
|
-
function
|
|
907
|
+
function V(e) {
|
|
903
908
|
return e.sort((n, r) => {
|
|
904
|
-
const s =
|
|
909
|
+
const s = y(n, "priority") || 100, o = y(r, "priority") || 100;
|
|
905
910
|
return s > o ? -1 : s < o ? 1 : 0;
|
|
906
911
|
});
|
|
907
912
|
}
|
|
908
913
|
function qt(e) {
|
|
909
|
-
const t =
|
|
914
|
+
const t = V(wt(e)), n = qn(t.map((r) => r.name));
|
|
910
915
|
return n.length && console.warn(
|
|
911
916
|
`[tiptap warn]: Duplicate extension names found: [${n.map((r) => `'${r}'`).join(", ")}]. This can lead to issues.`
|
|
912
917
|
), t;
|
|
@@ -917,18 +922,18 @@ function Jt(e, t, n) {
|
|
|
917
922
|
`, textSerializers: i = {} } = n || {};
|
|
918
923
|
let a = "";
|
|
919
924
|
return e.nodesBetween(r, s, (c, l, d, u) => {
|
|
920
|
-
var
|
|
925
|
+
var p;
|
|
921
926
|
c.isBlock && l > r && (a += o);
|
|
922
|
-
const
|
|
923
|
-
if (
|
|
924
|
-
return d && (a +=
|
|
927
|
+
const f = i?.[c.type.name];
|
|
928
|
+
if (f)
|
|
929
|
+
return d && (a += f({
|
|
925
930
|
node: c,
|
|
926
931
|
pos: l,
|
|
927
932
|
parent: d,
|
|
928
933
|
index: u,
|
|
929
934
|
range: t
|
|
930
935
|
})), !1;
|
|
931
|
-
c.isText && (a += (
|
|
936
|
+
c.isText && (a += (p = c?.text) == null ? void 0 : p.slice(Math.max(r, l) - l, s - l));
|
|
932
937
|
}), a;
|
|
933
938
|
}
|
|
934
939
|
function Jn(e, t) {
|
|
@@ -984,11 +989,11 @@ function Gn(e) {
|
|
|
984
989
|
i.push({ from: a, to: c });
|
|
985
990
|
}
|
|
986
991
|
i.forEach(({ from: a, to: c }) => {
|
|
987
|
-
const l = t.slice(o).map(a, -1), d = t.slice(o).map(c), u = t.invert().map(l, -1),
|
|
992
|
+
const l = t.slice(o).map(a, -1), d = t.slice(o).map(c), u = t.invert().map(l, -1), p = t.invert().map(d);
|
|
988
993
|
r.push({
|
|
989
994
|
oldRange: {
|
|
990
995
|
from: u,
|
|
991
|
-
to:
|
|
996
|
+
to: p
|
|
992
997
|
},
|
|
993
998
|
newRange: {
|
|
994
999
|
from: l,
|
|
@@ -1001,7 +1006,7 @@ function Gn(e) {
|
|
|
1001
1006
|
function Yt(e, t, n) {
|
|
1002
1007
|
const r = [];
|
|
1003
1008
|
return e === t ? n.resolve(e).marks().forEach((s) => {
|
|
1004
|
-
const o = n.resolve(e), i =
|
|
1009
|
+
const o = n.resolve(e), i = bt(o, s.type);
|
|
1005
1010
|
i && r.push({
|
|
1006
1011
|
mark: s,
|
|
1007
1012
|
...i
|
|
@@ -1025,10 +1030,10 @@ var ss = (e, t, n, r = 20) => {
|
|
|
1025
1030
|
}
|
|
1026
1031
|
return [i, o];
|
|
1027
1032
|
};
|
|
1028
|
-
function
|
|
1033
|
+
function H(e, t) {
|
|
1029
1034
|
return t.nodes[e] || t.marks[e] || null;
|
|
1030
1035
|
}
|
|
1031
|
-
function
|
|
1036
|
+
function Q(e, t, n) {
|
|
1032
1037
|
return Object.fromEntries(
|
|
1033
1038
|
Object.entries(n).filter(([r]) => {
|
|
1034
1039
|
const s = e.find((o) => o.type === t && o.name === r);
|
|
@@ -1053,33 +1058,35 @@ var tr = (e, t = 500) => {
|
|
|
1053
1058
|
function mt(e, t, n = {}) {
|
|
1054
1059
|
const { empty: r, ranges: s } = e.selection, o = t ? z(t, e.schema) : null;
|
|
1055
1060
|
if (r)
|
|
1056
|
-
return !!(e.storedMarks || e.selection.$from.marks()).filter((u) => o ? o.name === u.type.name : !0).find((u) =>
|
|
1061
|
+
return !!(e.storedMarks || e.selection.$from.marks()).filter((u) => o ? o.name === u.type.name : !0).find((u) => G(u.attrs, n, { strict: !1 }));
|
|
1057
1062
|
let i = 0;
|
|
1058
1063
|
const a = [];
|
|
1059
|
-
if (s.forEach(({ $from: u, $to:
|
|
1060
|
-
const
|
|
1061
|
-
e.doc.nodesBetween(
|
|
1064
|
+
if (s.forEach(({ $from: u, $to: p }) => {
|
|
1065
|
+
const f = u.pos, h = p.pos;
|
|
1066
|
+
e.doc.nodesBetween(f, h, (m, g) => {
|
|
1067
|
+
if (o && m.inlineContent && !m.type.allowsMarkType(o))
|
|
1068
|
+
return !1;
|
|
1062
1069
|
if (!m.isText && !m.marks.length)
|
|
1063
1070
|
return;
|
|
1064
|
-
const v = Math.max(
|
|
1071
|
+
const v = Math.max(f, g), b = Math.min(h, g + m.nodeSize), k = b - v;
|
|
1065
1072
|
i += k, a.push(
|
|
1066
1073
|
...m.marks.map((M) => ({
|
|
1067
1074
|
mark: M,
|
|
1068
1075
|
from: v,
|
|
1069
|
-
to:
|
|
1076
|
+
to: b
|
|
1070
1077
|
}))
|
|
1071
1078
|
);
|
|
1072
1079
|
});
|
|
1073
1080
|
}), i === 0)
|
|
1074
1081
|
return !1;
|
|
1075
|
-
const c = a.filter((u) => o ? o.name === u.mark.type.name : !0).filter((u) =>
|
|
1082
|
+
const c = a.filter((u) => o ? o.name === u.mark.type.name : !0).filter((u) => G(u.mark.attrs, n, { strict: !1 })).reduce((u, p) => u + p.to - p.from, 0), l = a.filter((u) => o ? u.mark.type !== o && u.mark.type.excludes(o) : !0).reduce((u, p) => u + p.to - p.from, 0);
|
|
1076
1083
|
return (c > 0 ? c + l : c) >= i;
|
|
1077
1084
|
}
|
|
1078
1085
|
function er(e, t, n = {}) {
|
|
1079
1086
|
if (!t)
|
|
1080
|
-
return
|
|
1087
|
+
return U(e, null, n) || mt(e, null, n);
|
|
1081
1088
|
const r = ot(t, e.schema);
|
|
1082
|
-
return r === "node" ?
|
|
1089
|
+
return r === "node" ? U(e, t, n) : r === "mark" ? mt(e, t, n) : !1;
|
|
1083
1090
|
}
|
|
1084
1091
|
var os = (e, t) => {
|
|
1085
1092
|
const { $from: n, $to: r, $anchor: s } = e.selection;
|
|
@@ -1106,7 +1113,7 @@ function It(e, t) {
|
|
|
1106
1113
|
name: r.name,
|
|
1107
1114
|
options: r.options,
|
|
1108
1115
|
storage: r.storage
|
|
1109
|
-
}, o =
|
|
1116
|
+
}, o = x(y(r, "group", s));
|
|
1110
1117
|
return typeof o != "string" ? !1 : o.split(" ").includes("list");
|
|
1111
1118
|
}
|
|
1112
1119
|
function Mt(e, {
|
|
@@ -1177,12 +1184,12 @@ function sr(e, t, n) {
|
|
|
1177
1184
|
const { ranges: i } = s;
|
|
1178
1185
|
return i.some(({ $from: a, $to: c }) => {
|
|
1179
1186
|
let l = a.depth === 0 ? e.doc.inlineContent && e.doc.type.allowsMarkType(n) : !1;
|
|
1180
|
-
return e.doc.nodesBetween(a.pos, c.pos, (d, u,
|
|
1187
|
+
return e.doc.nodesBetween(a.pos, c.pos, (d, u, p) => {
|
|
1181
1188
|
if (l)
|
|
1182
1189
|
return !1;
|
|
1183
1190
|
if (d.isInline) {
|
|
1184
|
-
const
|
|
1185
|
-
l =
|
|
1191
|
+
const f = !p || p.type.allowsMarkType(n), h = !!n.isInSet(d.marks) || !d.marks.some((m) => m.type.excludes(n));
|
|
1192
|
+
l = f && h;
|
|
1186
1193
|
}
|
|
1187
1194
|
return !l;
|
|
1188
1195
|
}), l;
|
|
@@ -1202,9 +1209,9 @@ var or = (e, t = {}) => ({ tr: n, state: r, dispatch: s }) => {
|
|
|
1202
1209
|
} else
|
|
1203
1210
|
a.forEach((l) => {
|
|
1204
1211
|
const d = l.$from.pos, u = l.$to.pos;
|
|
1205
|
-
r.doc.nodesBetween(d, u, (
|
|
1206
|
-
const h = Math.max(
|
|
1207
|
-
|
|
1212
|
+
r.doc.nodesBetween(d, u, (p, f) => {
|
|
1213
|
+
const h = Math.max(f, d), m = Math.min(f + p.nodeSize, u);
|
|
1214
|
+
p.marks.find((v) => v.type === c) ? p.marks.forEach((v) => {
|
|
1208
1215
|
c === v.type && n.addMark(
|
|
1209
1216
|
h,
|
|
1210
1217
|
m,
|
|
@@ -1254,27 +1261,27 @@ function Dt(e, t) {
|
|
|
1254
1261
|
}
|
|
1255
1262
|
}
|
|
1256
1263
|
var fr = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor: s }) => {
|
|
1257
|
-
const { selection: o, doc: i } = t, { $from: a, $to: c } = o, l = s.extensionManager.attributes, d =
|
|
1264
|
+
const { selection: o, doc: i } = t, { $from: a, $to: c } = o, l = s.extensionManager.attributes, d = Q(l, a.node().type.name, a.node().attrs);
|
|
1258
1265
|
if (o instanceof nt && o.node.isBlock)
|
|
1259
|
-
return !a.parentOffset || !
|
|
1266
|
+
return !a.parentOffset || !Z(i, a.pos) ? !1 : (r && (e && Dt(n, s.extensionManager.splittableMarks), t.split(a.pos).scrollIntoView()), !0);
|
|
1260
1267
|
if (!a.parent.isBlock)
|
|
1261
1268
|
return !1;
|
|
1262
|
-
const u = c.parentOffset === c.parent.content.size,
|
|
1263
|
-
let
|
|
1269
|
+
const u = c.parentOffset === c.parent.content.size, p = a.depth === 0 ? void 0 : Hn(a.node(-1).contentMatchAt(a.indexAfter(-1)));
|
|
1270
|
+
let f = u && p ? [
|
|
1264
1271
|
{
|
|
1265
|
-
type:
|
|
1272
|
+
type: p,
|
|
1266
1273
|
attrs: d
|
|
1267
1274
|
}
|
|
1268
|
-
] : void 0, h =
|
|
1269
|
-
if (!
|
|
1275
|
+
] : void 0, h = Z(t.doc, t.mapping.map(a.pos), 1, f);
|
|
1276
|
+
if (!f && !h && Z(t.doc, t.mapping.map(a.pos), 1, p ? [{ type: p }] : void 0) && (h = !0, f = p ? [
|
|
1270
1277
|
{
|
|
1271
|
-
type:
|
|
1278
|
+
type: p,
|
|
1272
1279
|
attrs: d
|
|
1273
1280
|
}
|
|
1274
1281
|
] : void 0), r) {
|
|
1275
|
-
if (h && (o instanceof P && t.deleteSelection(), t.split(t.mapping.map(a.pos), 1,
|
|
1282
|
+
if (h && (o instanceof P && t.deleteSelection(), t.split(t.mapping.map(a.pos), 1, f), p && !u && !a.parentOffset && a.parent.type !== p)) {
|
|
1276
1283
|
const m = t.mapping.map(a.before()), g = t.doc.resolve(m);
|
|
1277
|
-
a.node(-1).canReplaceWith(g.index(), g.index() + 1,
|
|
1284
|
+
a.node(-1).canReplaceWith(g.index(), g.index() + 1, p) && t.setNodeMarkup(t.mapping.map(a.before()), p);
|
|
1278
1285
|
}
|
|
1279
1286
|
e && Dt(n, s.extensionManager.splittableMarks), t.scrollIntoView();
|
|
1280
1287
|
}
|
|
@@ -1287,27 +1294,27 @@ var fr = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor
|
|
|
1287
1294
|
const u = c.node(-1);
|
|
1288
1295
|
if (u.type !== a)
|
|
1289
1296
|
return !1;
|
|
1290
|
-
const
|
|
1297
|
+
const p = o.extensionManager.attributes;
|
|
1291
1298
|
if (c.parent.content.size === 0 && c.node(-1).childCount === c.indexAfter(-1)) {
|
|
1292
1299
|
if (c.depth === 2 || c.node(-3).type !== a || c.index(-2) !== c.node(-2).childCount - 1)
|
|
1293
1300
|
return !1;
|
|
1294
1301
|
if (s) {
|
|
1295
1302
|
let v = D.empty;
|
|
1296
|
-
const
|
|
1297
|
-
for (let A = c.depth -
|
|
1303
|
+
const b = c.index(-1) ? 1 : c.index(-2) ? 2 : 3;
|
|
1304
|
+
for (let A = c.depth - b; A >= c.depth - 3; A -= 1)
|
|
1298
1305
|
v = D.from(c.node(A).copy(v));
|
|
1299
1306
|
const k = (
|
|
1300
1307
|
// eslint-disable-next-line no-nested-ternary
|
|
1301
1308
|
c.indexAfter(-1) < c.node(-2).childCount ? 1 : c.indexAfter(-2) < c.node(-3).childCount ? 2 : 3
|
|
1302
1309
|
), M = {
|
|
1303
|
-
...
|
|
1310
|
+
...Q(p, c.node().type.name, c.node().attrs),
|
|
1304
1311
|
...t
|
|
1305
1312
|
}, w = ((i = a.contentMatch.defaultType) == null ? void 0 : i.createAndFill(M)) || void 0;
|
|
1306
1313
|
v = v.append(D.from(a.createAndFill(null, w) || void 0));
|
|
1307
|
-
const
|
|
1308
|
-
n.replace(
|
|
1314
|
+
const S = c.before(c.depth - (b - 1));
|
|
1315
|
+
n.replace(S, c.after(-k), new Fe(v, 4 - b, 0));
|
|
1309
1316
|
let E = -1;
|
|
1310
|
-
n.doc.nodesBetween(
|
|
1317
|
+
n.doc.nodesBetween(S, n.doc.content.size, (A, C) => {
|
|
1311
1318
|
if (E > -1)
|
|
1312
1319
|
return !1;
|
|
1313
1320
|
A.isTextblock && A.content.size === 0 && (E = C + 1);
|
|
@@ -1315,25 +1322,25 @@ var fr = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor
|
|
|
1315
1322
|
}
|
|
1316
1323
|
return !0;
|
|
1317
1324
|
}
|
|
1318
|
-
const
|
|
1319
|
-
...
|
|
1325
|
+
const f = l.pos === c.end() ? u.contentMatchAt(0).defaultType : null, h = {
|
|
1326
|
+
...Q(p, u.type.name, u.attrs),
|
|
1320
1327
|
...t
|
|
1321
1328
|
}, m = {
|
|
1322
|
-
...
|
|
1329
|
+
...Q(p, c.node().type.name, c.node().attrs),
|
|
1323
1330
|
...t
|
|
1324
1331
|
};
|
|
1325
1332
|
n.delete(c.pos, l.pos);
|
|
1326
|
-
const g =
|
|
1333
|
+
const g = f ? [
|
|
1327
1334
|
{ type: a, attrs: h },
|
|
1328
|
-
{ type:
|
|
1335
|
+
{ type: f, attrs: m }
|
|
1329
1336
|
] : [{ type: a, attrs: h }];
|
|
1330
|
-
if (!
|
|
1337
|
+
if (!Z(n.doc, c.pos, 2))
|
|
1331
1338
|
return !1;
|
|
1332
1339
|
if (s) {
|
|
1333
|
-
const { selection: v, storedMarks:
|
|
1340
|
+
const { selection: v, storedMarks: b } = r, { splittableMarks: k } = o.extensionManager, M = b || v.$to.parentOffset && v.$from.marks();
|
|
1334
1341
|
if (n.split(c.pos, 2, g).scrollIntoView(), !M || !s)
|
|
1335
1342
|
return !0;
|
|
1336
|
-
const w = M.filter((
|
|
1343
|
+
const w = M.filter((S) => k.includes(S.type.name));
|
|
1337
1344
|
n.ensureMarks(w);
|
|
1338
1345
|
}
|
|
1339
1346
|
return !0;
|
|
@@ -1356,31 +1363,31 @@ var fr = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor
|
|
|
1356
1363
|
const s = e.doc.nodeAt(r);
|
|
1357
1364
|
return n.node.type === s?.type && gt(e.doc, r) && e.join(r), !0;
|
|
1358
1365
|
}, hr = (e, t, n, r = {}) => ({ editor: s, tr: o, state: i, dispatch: a, chain: c, commands: l, can: d }) => {
|
|
1359
|
-
const { extensions: u, splittableMarks:
|
|
1366
|
+
const { extensions: u, 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();
|
|
1360
1367
|
if (!k)
|
|
1361
1368
|
return !1;
|
|
1362
|
-
const w = it((
|
|
1369
|
+
const w = it((S) => It(S.type.name, u))(m);
|
|
1363
1370
|
if (k.depth >= 1 && w && k.depth - w.depth <= 1) {
|
|
1364
|
-
if (w.node.type ===
|
|
1371
|
+
if (w.node.type === f)
|
|
1365
1372
|
return l.liftListItem(h);
|
|
1366
|
-
if (It(w.node.type.name, u) &&
|
|
1367
|
-
return c().command(() => (o.setNodeMarkup(w.pos,
|
|
1373
|
+
if (It(w.node.type.name, u) && f.validContent(w.node.content) && a)
|
|
1374
|
+
return c().command(() => (o.setNodeMarkup(w.pos, f), !0)).command(() => ft(o, f)).command(() => pt(o, f)).run();
|
|
1368
1375
|
}
|
|
1369
|
-
return !n || !M || !a ? c().command(() => d().wrapInList(
|
|
1370
|
-
const
|
|
1371
|
-
return o.ensureMarks(E),
|
|
1372
|
-
}).wrapInList(
|
|
1376
|
+
return !n || !M || !a ? c().command(() => d().wrapInList(f, r) ? !0 : l.clearNodes()).wrapInList(f, r).command(() => ft(o, f)).command(() => pt(o, f)).run() : c().command(() => {
|
|
1377
|
+
const S = d().wrapInList(f, r), E = M.filter((A) => p.includes(A.type.name));
|
|
1378
|
+
return o.ensureMarks(E), S ? !0 : l.clearNodes();
|
|
1379
|
+
}).wrapInList(f, r).command(() => ft(o, f)).command(() => pt(o, f)).run();
|
|
1373
1380
|
}, mr = (e, t = {}, n = {}) => ({ state: r, commands: s }) => {
|
|
1374
1381
|
const { extendEmptyMarkRange: o = !1 } = n, i = z(e, r.schema);
|
|
1375
1382
|
return mt(r, i, t) ? s.unsetMark(i, { extendEmptyMarkRange: o }) : s.setMark(i, t);
|
|
1376
1383
|
}, gr = (e, t, n = {}) => ({ state: r, commands: s }) => {
|
|
1377
|
-
const o = T(e, r.schema), i = T(t, r.schema), a =
|
|
1384
|
+
const o = T(e, r.schema), i = T(t, r.schema), a = U(r, o, n);
|
|
1378
1385
|
let c;
|
|
1379
1386
|
return r.selection.$anchor.sameParent(r.selection.$head) && (c = r.selection.$anchor.parent.attrs), a ? s.setNode(i, c) : s.setNode(o, { ...c, ...n });
|
|
1380
1387
|
}, vr = (e, t = {}) => ({ state: n, commands: r }) => {
|
|
1381
1388
|
const s = T(e, n.schema);
|
|
1382
|
-
return
|
|
1383
|
-
},
|
|
1389
|
+
return U(n, s, t) ? r.lift(s) : r.wrapIn(s, t);
|
|
1390
|
+
}, yr = () => ({ state: e, dispatch: t }) => {
|
|
1384
1391
|
const n = e.plugins;
|
|
1385
1392
|
for (let r = 0; r < n.length; r += 1) {
|
|
1386
1393
|
const s = n[r];
|
|
@@ -1400,7 +1407,7 @@ var fr = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor
|
|
|
1400
1407
|
}
|
|
1401
1408
|
}
|
|
1402
1409
|
return !1;
|
|
1403
|
-
},
|
|
1410
|
+
}, br = () => ({ tr: e, dispatch: t }) => {
|
|
1404
1411
|
const { selection: n } = e, { empty: r, ranges: s } = n;
|
|
1405
1412
|
return r || t && s.forEach((o) => {
|
|
1406
1413
|
e.removeMark(o.$from.pos, o.$to.pos);
|
|
@@ -1411,12 +1418,12 @@ var fr = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor
|
|
|
1411
1418
|
if (!s)
|
|
1412
1419
|
return !0;
|
|
1413
1420
|
if (d && i) {
|
|
1414
|
-
let { from:
|
|
1415
|
-
const h = (o = l.marks().find((g) => g.type === c)) == null ? void 0 : o.attrs, m =
|
|
1416
|
-
m && (
|
|
1421
|
+
let { from: p, to: f } = a;
|
|
1422
|
+
const h = (o = l.marks().find((g) => g.type === c)) == null ? void 0 : o.attrs, m = bt(l, c, h);
|
|
1423
|
+
m && (p = m.from, f = m.to), n.removeMark(p, f, c);
|
|
1417
1424
|
} else
|
|
1418
|
-
u.forEach((
|
|
1419
|
-
n.removeMark(
|
|
1425
|
+
u.forEach((p) => {
|
|
1426
|
+
n.removeMark(p.$from.pos, p.$to.pos, c);
|
|
1420
1427
|
});
|
|
1421
1428
|
return n.removeStoredMark(c), !0;
|
|
1422
1429
|
}, kr = (e) => ({ tr: t, state: n, dispatch: r }) => {
|
|
@@ -1440,30 +1447,30 @@ var fr = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor
|
|
|
1440
1447
|
let c = !1;
|
|
1441
1448
|
return n.selection.ranges.forEach((l) => {
|
|
1442
1449
|
const d = l.$from.pos, u = l.$to.pos;
|
|
1443
|
-
let
|
|
1450
|
+
let p, f, h, m;
|
|
1444
1451
|
n.selection.empty ? r.doc.nodesBetween(d, u, (g, v) => {
|
|
1445
|
-
o && o === g.type && (c = !0, h = Math.max(v, d), m = Math.min(v + g.nodeSize, u),
|
|
1452
|
+
o && o === g.type && (c = !0, h = Math.max(v, d), m = Math.min(v + g.nodeSize, u), p = v, f = g);
|
|
1446
1453
|
}) : r.doc.nodesBetween(d, u, (g, v) => {
|
|
1447
|
-
v < d && o && o === g.type && (c = !0, h = Math.max(v, d), m = Math.min(v + g.nodeSize, u),
|
|
1454
|
+
v < d && o && o === g.type && (c = !0, h = Math.max(v, d), m = Math.min(v + g.nodeSize, u), p = v, f = g), v >= d && v <= u && (o && o === g.type && (c = !0, s && n.setNodeMarkup(v, void 0, {
|
|
1448
1455
|
...g.attrs,
|
|
1449
1456
|
...t
|
|
1450
|
-
})), i && g.marks.length && g.marks.forEach((
|
|
1451
|
-
if (i ===
|
|
1457
|
+
})), i && g.marks.length && g.marks.forEach((b) => {
|
|
1458
|
+
if (i === b.type && (c = !0, s)) {
|
|
1452
1459
|
const k = Math.max(v, d), M = Math.min(v + g.nodeSize, u);
|
|
1453
1460
|
n.addMark(
|
|
1454
1461
|
k,
|
|
1455
1462
|
M,
|
|
1456
1463
|
i.create({
|
|
1457
|
-
...
|
|
1464
|
+
...b.attrs,
|
|
1458
1465
|
...t
|
|
1459
1466
|
})
|
|
1460
1467
|
);
|
|
1461
1468
|
}
|
|
1462
1469
|
}));
|
|
1463
|
-
}),
|
|
1464
|
-
...
|
|
1470
|
+
}), f && (p !== void 0 && s && n.setNodeMarkup(p, void 0, {
|
|
1471
|
+
...f.attrs,
|
|
1465
1472
|
...t
|
|
1466
|
-
}), i &&
|
|
1473
|
+
}), i && f.marks.length && f.marks.forEach((g) => {
|
|
1467
1474
|
i === g.type && s && n.addMark(
|
|
1468
1475
|
h,
|
|
1469
1476
|
m,
|
|
@@ -1474,10 +1481,10 @@ var fr = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor
|
|
|
1474
1481
|
);
|
|
1475
1482
|
}));
|
|
1476
1483
|
}), c;
|
|
1477
|
-
},
|
|
1484
|
+
}, xr = (e, t = {}) => ({ state: n, dispatch: r }) => {
|
|
1478
1485
|
const s = T(e, n.schema);
|
|
1479
1486
|
return _e(s, t)(n, r);
|
|
1480
|
-
},
|
|
1487
|
+
}, Sr = (e, t = {}) => ({ state: n, dispatch: r }) => {
|
|
1481
1488
|
const s = T(e, n.schema);
|
|
1482
1489
|
return Ue(s, t)(n, r);
|
|
1483
1490
|
}, Er = class {
|
|
@@ -1510,7 +1517,7 @@ var fr = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor
|
|
|
1510
1517
|
this.find = e.find, this.handler = e.handler, this.undoable = (t = e.undoable) != null ? t : !0;
|
|
1511
1518
|
}
|
|
1512
1519
|
}, Tr = (e, t) => {
|
|
1513
|
-
if (
|
|
1520
|
+
if (yt(t))
|
|
1514
1521
|
return t.exec(e);
|
|
1515
1522
|
const n = t(e);
|
|
1516
1523
|
if (!n)
|
|
@@ -1518,7 +1525,7 @@ var fr = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor
|
|
|
1518
1525
|
const r = [n.text];
|
|
1519
1526
|
return r.index = n.index, r.input = e, r.data = n.data, n.replaceWith && (n.text.includes(n.replaceWith) || console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'), r.push(n.replaceWith)), r;
|
|
1520
1527
|
};
|
|
1521
|
-
function
|
|
1528
|
+
function J(e) {
|
|
1522
1529
|
var t;
|
|
1523
1530
|
const { editor: n, from: r, to: s, text: o, rules: i, plugin: a } = e, { view: c } = n;
|
|
1524
1531
|
if (c.composing)
|
|
@@ -1526,35 +1533,35 @@ function q(e) {
|
|
|
1526
1533
|
const l = c.state.doc.resolve(r);
|
|
1527
1534
|
if (
|
|
1528
1535
|
// check for code node
|
|
1529
|
-
l.parent.type.spec.code || (t = l.nodeBefore || l.nodeAfter) != null && t.marks.find((
|
|
1536
|
+
l.parent.type.spec.code || (t = l.nodeBefore || l.nodeAfter) != null && t.marks.find((p) => p.type.spec.code)
|
|
1530
1537
|
)
|
|
1531
1538
|
return !1;
|
|
1532
1539
|
let d = !1;
|
|
1533
1540
|
const u = tr(l) + o;
|
|
1534
|
-
return i.forEach((
|
|
1541
|
+
return i.forEach((p) => {
|
|
1535
1542
|
if (d)
|
|
1536
1543
|
return;
|
|
1537
|
-
const
|
|
1538
|
-
if (!
|
|
1544
|
+
const f = Tr(u, p.find);
|
|
1545
|
+
if (!f)
|
|
1539
1546
|
return;
|
|
1540
1547
|
const h = c.state.tr, m = rt({
|
|
1541
1548
|
state: c.state,
|
|
1542
1549
|
transaction: h
|
|
1543
1550
|
}), g = {
|
|
1544
|
-
from: r - (
|
|
1551
|
+
from: r - (f[0].length - o.length),
|
|
1545
1552
|
to: s
|
|
1546
|
-
}, { commands: v, chain:
|
|
1553
|
+
}, { commands: v, chain: b, can: k } = new st({
|
|
1547
1554
|
editor: n,
|
|
1548
1555
|
state: m
|
|
1549
1556
|
});
|
|
1550
|
-
|
|
1557
|
+
p.handler({
|
|
1551
1558
|
state: m,
|
|
1552
1559
|
range: g,
|
|
1553
|
-
match:
|
|
1560
|
+
match: f,
|
|
1554
1561
|
commands: v,
|
|
1555
|
-
chain:
|
|
1562
|
+
chain: b,
|
|
1556
1563
|
can: k
|
|
1557
|
-
}) === null || !h.steps.length || (
|
|
1564
|
+
}) === null || !h.steps.length || (p.undoable && h.setMeta(a, {
|
|
1558
1565
|
transform: h,
|
|
1559
1566
|
from: r,
|
|
1560
1567
|
to: s,
|
|
@@ -1576,11 +1583,11 @@ function Ar(e) {
|
|
|
1576
1583
|
return !!c && setTimeout(() => {
|
|
1577
1584
|
let { text: d } = c;
|
|
1578
1585
|
typeof d == "string" ? d = d : d = kt(D.from(d), i.schema);
|
|
1579
|
-
const { from: u } = c,
|
|
1580
|
-
|
|
1586
|
+
const { from: u } = c, p = u + d.length;
|
|
1587
|
+
J({
|
|
1581
1588
|
editor: t,
|
|
1582
1589
|
from: u,
|
|
1583
|
-
to:
|
|
1590
|
+
to: p,
|
|
1584
1591
|
text: d,
|
|
1585
1592
|
rules: n,
|
|
1586
1593
|
plugin: r
|
|
@@ -1590,7 +1597,7 @@ function Ar(e) {
|
|
|
1590
1597
|
},
|
|
1591
1598
|
props: {
|
|
1592
1599
|
handleTextInput(s, o, i, a) {
|
|
1593
|
-
return
|
|
1600
|
+
return J({
|
|
1594
1601
|
editor: t,
|
|
1595
1602
|
from: o,
|
|
1596
1603
|
to: i,
|
|
@@ -1602,7 +1609,7 @@ function Ar(e) {
|
|
|
1602
1609
|
handleDOMEvents: {
|
|
1603
1610
|
compositionend: (s) => (setTimeout(() => {
|
|
1604
1611
|
const { $cursor: o } = s.state.selection;
|
|
1605
|
-
o &&
|
|
1612
|
+
o && J({
|
|
1606
1613
|
editor: t,
|
|
1607
1614
|
from: o.pos,
|
|
1608
1615
|
to: o.pos,
|
|
@@ -1618,7 +1625,7 @@ function Ar(e) {
|
|
|
1618
1625
|
if (o.key !== "Enter")
|
|
1619
1626
|
return !1;
|
|
1620
1627
|
const { $cursor: i } = s.state.selection;
|
|
1621
|
-
return i ?
|
|
1628
|
+
return i ? J({
|
|
1622
1629
|
editor: t,
|
|
1623
1630
|
from: i.pos,
|
|
1624
1631
|
to: i.pos,
|
|
@@ -1637,16 +1644,16 @@ function Ar(e) {
|
|
|
1637
1644
|
function Cr(e) {
|
|
1638
1645
|
return Object.prototype.toString.call(e).slice(8, -1);
|
|
1639
1646
|
}
|
|
1640
|
-
function
|
|
1647
|
+
function X(e) {
|
|
1641
1648
|
return Cr(e) !== "Object" ? !1 : e.constructor === Object && Object.getPrototypeOf(e) === Object.prototype;
|
|
1642
1649
|
}
|
|
1643
1650
|
function Gt(e, t) {
|
|
1644
1651
|
const n = { ...e };
|
|
1645
|
-
return
|
|
1646
|
-
|
|
1652
|
+
return X(e) && X(t) && Object.keys(t).forEach((r) => {
|
|
1653
|
+
X(t[r]) && X(e[r]) ? n[r] = Gt(e[r], t[r]) : n[r] = t[r];
|
|
1647
1654
|
}), n;
|
|
1648
1655
|
}
|
|
1649
|
-
var
|
|
1656
|
+
var xt = class {
|
|
1650
1657
|
constructor(e = {}) {
|
|
1651
1658
|
this.type = "extendable", this.parent = null, this.child = null, this.name = "", this.config = {
|
|
1652
1659
|
name: this.name
|
|
@@ -1657,8 +1664,8 @@ var St = class {
|
|
|
1657
1664
|
}
|
|
1658
1665
|
get options() {
|
|
1659
1666
|
return {
|
|
1660
|
-
...
|
|
1661
|
-
|
|
1667
|
+
...x(
|
|
1668
|
+
y(this, "addOptions", {
|
|
1662
1669
|
name: this.name
|
|
1663
1670
|
})
|
|
1664
1671
|
) || {}
|
|
@@ -1666,8 +1673,8 @@ var St = class {
|
|
|
1666
1673
|
}
|
|
1667
1674
|
get storage() {
|
|
1668
1675
|
return {
|
|
1669
|
-
...
|
|
1670
|
-
|
|
1676
|
+
...x(
|
|
1677
|
+
y(this, "addStorage", {
|
|
1671
1678
|
name: this.name,
|
|
1672
1679
|
options: this.options
|
|
1673
1680
|
})
|
|
@@ -1685,7 +1692,7 @@ var St = class {
|
|
|
1685
1692
|
const t = new this.constructor({ ...this.config, ...e });
|
|
1686
1693
|
return t.parent = this, this.child = t, t.name = "name" in e ? e.name : t.parent.name, t;
|
|
1687
1694
|
}
|
|
1688
|
-
}, Pr = class te extends
|
|
1695
|
+
}, Pr = class te extends xt {
|
|
1689
1696
|
constructor() {
|
|
1690
1697
|
super(...arguments), this.type = "mark";
|
|
1691
1698
|
}
|
|
@@ -1724,7 +1731,7 @@ var Nr = class {
|
|
|
1724
1731
|
this.find = e.find, this.handler = e.handler;
|
|
1725
1732
|
}
|
|
1726
1733
|
}, Rr = (e, t, n) => {
|
|
1727
|
-
if (
|
|
1734
|
+
if (yt(t))
|
|
1728
1735
|
return [...e.matchAll(t)];
|
|
1729
1736
|
const r = t(e, n);
|
|
1730
1737
|
return r ? r.map((s) => {
|
|
@@ -1737,23 +1744,23 @@ function zr(e) {
|
|
|
1737
1744
|
editor: t,
|
|
1738
1745
|
state: n
|
|
1739
1746
|
}), u = [];
|
|
1740
|
-
return n.doc.nodesBetween(r, s, (
|
|
1741
|
-
var m, g, v,
|
|
1742
|
-
if ((g = (m =
|
|
1747
|
+
return n.doc.nodesBetween(r, s, (f, h) => {
|
|
1748
|
+
var m, g, v, b, k;
|
|
1749
|
+
if ((g = (m = f.type) == null ? void 0 : m.spec) != null && g.code || !(f.isText || f.isTextblock || f.isInline))
|
|
1743
1750
|
return;
|
|
1744
|
-
const M = (k = (
|
|
1745
|
-
if (w >=
|
|
1751
|
+
const M = (k = (b = (v = f.content) == null ? void 0 : v.size) != null ? b : f.nodeSize) != null ? k : 0, w = Math.max(r, h), S = Math.min(s, h + M);
|
|
1752
|
+
if (w >= S)
|
|
1746
1753
|
return;
|
|
1747
|
-
const E =
|
|
1754
|
+
const E = f.isText ? f.text || "" : f.textBetween(w - h, S - h, void 0, "");
|
|
1748
1755
|
Rr(E, o.find, i).forEach((C) => {
|
|
1749
1756
|
if (C.index === void 0)
|
|
1750
1757
|
return;
|
|
1751
|
-
const _ = w + C.index + 1, lt = _ + C[0].length,
|
|
1758
|
+
const _ = w + C.index + 1, lt = _ + C[0].length, K = {
|
|
1752
1759
|
from: n.tr.mapping.map(_),
|
|
1753
1760
|
to: n.tr.mapping.map(lt)
|
|
1754
1761
|
}, dt = o.handler({
|
|
1755
1762
|
state: n,
|
|
1756
|
-
range:
|
|
1763
|
+
range: K,
|
|
1757
1764
|
match: C,
|
|
1758
1765
|
commands: c,
|
|
1759
1766
|
chain: l,
|
|
@@ -1763,9 +1770,9 @@ function zr(e) {
|
|
|
1763
1770
|
});
|
|
1764
1771
|
u.push(dt);
|
|
1765
1772
|
});
|
|
1766
|
-
}), u.every((
|
|
1773
|
+
}), u.every((f) => f !== null);
|
|
1767
1774
|
}
|
|
1768
|
-
var
|
|
1775
|
+
var Y = null, Ir = (e) => {
|
|
1769
1776
|
var t;
|
|
1770
1777
|
const n = new ClipboardEvent("paste", {
|
|
1771
1778
|
clipboardData: new DataTransfer()
|
|
@@ -1783,8 +1790,8 @@ function Dr(e) {
|
|
|
1783
1790
|
const c = ({
|
|
1784
1791
|
state: d,
|
|
1785
1792
|
from: u,
|
|
1786
|
-
to:
|
|
1787
|
-
rule:
|
|
1793
|
+
to: p,
|
|
1794
|
+
rule: f,
|
|
1788
1795
|
pasteEvt: h
|
|
1789
1796
|
}) => {
|
|
1790
1797
|
const m = d.tr, g = rt({
|
|
@@ -1795,8 +1802,8 @@ function Dr(e) {
|
|
|
1795
1802
|
editor: t,
|
|
1796
1803
|
state: g,
|
|
1797
1804
|
from: Math.max(u - 1, 0),
|
|
1798
|
-
to:
|
|
1799
|
-
rule:
|
|
1805
|
+
to: p.b - 1,
|
|
1806
|
+
rule: f,
|
|
1800
1807
|
pasteEvent: h,
|
|
1801
1808
|
dropEvent: a
|
|
1802
1809
|
}) || !m.steps.length)) {
|
|
@@ -1811,58 +1818,58 @@ function Dr(e) {
|
|
|
1811
1818
|
return n.map((d) => new $({
|
|
1812
1819
|
// we register a global drag handler to track the current drag source element
|
|
1813
1820
|
view(u) {
|
|
1814
|
-
const
|
|
1821
|
+
const p = (h) => {
|
|
1815
1822
|
var m;
|
|
1816
|
-
r = (m = u.dom.parentElement) != null && m.contains(h.target) ? u.dom.parentElement : null, r && (
|
|
1817
|
-
},
|
|
1818
|
-
|
|
1823
|
+
r = (m = u.dom.parentElement) != null && m.contains(h.target) ? u.dom.parentElement : null, r && (Y = t);
|
|
1824
|
+
}, f = () => {
|
|
1825
|
+
Y && (Y = null);
|
|
1819
1826
|
};
|
|
1820
|
-
return window.addEventListener("dragstart",
|
|
1827
|
+
return window.addEventListener("dragstart", p), window.addEventListener("dragend", f), {
|
|
1821
1828
|
destroy() {
|
|
1822
|
-
window.removeEventListener("dragstart",
|
|
1829
|
+
window.removeEventListener("dragstart", p), window.removeEventListener("dragend", f);
|
|
1823
1830
|
}
|
|
1824
1831
|
};
|
|
1825
1832
|
},
|
|
1826
1833
|
props: {
|
|
1827
1834
|
handleDOMEvents: {
|
|
1828
|
-
drop: (u,
|
|
1829
|
-
if (o = r === u.dom.parentElement, a =
|
|
1830
|
-
const
|
|
1831
|
-
|
|
1832
|
-
const h =
|
|
1833
|
-
h &&
|
|
1835
|
+
drop: (u, p) => {
|
|
1836
|
+
if (o = r === u.dom.parentElement, a = p, !o) {
|
|
1837
|
+
const f = Y;
|
|
1838
|
+
f?.isEditable && setTimeout(() => {
|
|
1839
|
+
const h = f.state.selection;
|
|
1840
|
+
h && f.commands.deleteRange({ from: h.from, to: h.to });
|
|
1834
1841
|
}, 10);
|
|
1835
1842
|
}
|
|
1836
1843
|
return !1;
|
|
1837
1844
|
},
|
|
1838
|
-
paste: (u,
|
|
1839
|
-
var
|
|
1840
|
-
const h = (
|
|
1841
|
-
return i =
|
|
1845
|
+
paste: (u, p) => {
|
|
1846
|
+
var f;
|
|
1847
|
+
const h = (f = p.clipboardData) == null ? void 0 : f.getData("text/html");
|
|
1848
|
+
return i = p, s = !!h?.includes("data-pm-slice"), !1;
|
|
1842
1849
|
}
|
|
1843
1850
|
}
|
|
1844
1851
|
},
|
|
1845
|
-
appendTransaction: (u,
|
|
1846
|
-
const h = u[0], m = h.getMeta("uiEvent") === "paste" && !s, g = h.getMeta("uiEvent") === "drop" && !o, v = h.getMeta("applyPasteRules"),
|
|
1847
|
-
if (!m && !g && !
|
|
1852
|
+
appendTransaction: (u, p, f) => {
|
|
1853
|
+
const h = u[0], m = h.getMeta("uiEvent") === "paste" && !s, g = h.getMeta("uiEvent") === "drop" && !o, v = h.getMeta("applyPasteRules"), b = !!v;
|
|
1854
|
+
if (!m && !g && !b)
|
|
1848
1855
|
return;
|
|
1849
|
-
if (
|
|
1856
|
+
if (b) {
|
|
1850
1857
|
let { text: w } = v;
|
|
1851
|
-
typeof w == "string" ? w = w : w = kt(D.from(w),
|
|
1852
|
-
const { from:
|
|
1858
|
+
typeof w == "string" ? w = w : w = kt(D.from(w), f.schema);
|
|
1859
|
+
const { from: S } = v, E = S + w.length, A = Ir(w);
|
|
1853
1860
|
return c({
|
|
1854
1861
|
rule: d,
|
|
1855
|
-
state:
|
|
1856
|
-
from:
|
|
1862
|
+
state: f,
|
|
1863
|
+
from: S,
|
|
1857
1864
|
to: { b: E },
|
|
1858
1865
|
pasteEvt: A
|
|
1859
1866
|
});
|
|
1860
1867
|
}
|
|
1861
|
-
const k =
|
|
1868
|
+
const k = p.doc.content.findDiffStart(f.doc.content), M = p.doc.content.findDiffEnd(f.doc.content);
|
|
1862
1869
|
if (!(!$r(k) || !M || k === M.b))
|
|
1863
1870
|
return c({
|
|
1864
1871
|
rule: d,
|
|
1865
|
-
state:
|
|
1872
|
+
state: f,
|
|
1866
1873
|
from: k,
|
|
1867
1874
|
to: M,
|
|
1868
1875
|
pasteEvt: i
|
|
@@ -1885,8 +1892,8 @@ var ct = class {
|
|
|
1885
1892
|
options: t.options,
|
|
1886
1893
|
storage: this.editor.extensionStorage[t.name],
|
|
1887
1894
|
editor: this.editor,
|
|
1888
|
-
type:
|
|
1889
|
-
}, r =
|
|
1895
|
+
type: H(t.name, this.schema)
|
|
1896
|
+
}, r = y(t, "addCommands", n);
|
|
1890
1897
|
return r ? {
|
|
1891
1898
|
...e,
|
|
1892
1899
|
...r()
|
|
@@ -1899,54 +1906,54 @@ var ct = class {
|
|
|
1899
1906
|
*/
|
|
1900
1907
|
get plugins() {
|
|
1901
1908
|
const { editor: e } = this;
|
|
1902
|
-
return
|
|
1909
|
+
return V([...this.extensions].reverse()).flatMap((r) => {
|
|
1903
1910
|
const s = {
|
|
1904
1911
|
name: r.name,
|
|
1905
1912
|
options: r.options,
|
|
1906
1913
|
storage: this.editor.extensionStorage[r.name],
|
|
1907
1914
|
editor: e,
|
|
1908
|
-
type:
|
|
1909
|
-
}, o = [], i =
|
|
1915
|
+
type: H(r.name, this.schema)
|
|
1916
|
+
}, o = [], i = y(
|
|
1910
1917
|
r,
|
|
1911
1918
|
"addKeyboardShortcuts",
|
|
1912
1919
|
s
|
|
1913
1920
|
);
|
|
1914
1921
|
let a = {};
|
|
1915
|
-
if (r.type === "mark" &&
|
|
1916
|
-
const
|
|
1917
|
-
Object.entries(i()).map(([
|
|
1922
|
+
if (r.type === "mark" && y(r, "exitable", s) && (a.ArrowRight = () => Pr.handleExit({ editor: e, mark: r })), i) {
|
|
1923
|
+
const p = Object.fromEntries(
|
|
1924
|
+
Object.entries(i()).map(([f, h]) => [f, () => h({ editor: e })])
|
|
1918
1925
|
);
|
|
1919
|
-
a = { ...a, ...
|
|
1926
|
+
a = { ...a, ...p };
|
|
1920
1927
|
}
|
|
1921
1928
|
const c = qe(a);
|
|
1922
1929
|
o.push(c);
|
|
1923
|
-
const l =
|
|
1930
|
+
const l = y(r, "addInputRules", s);
|
|
1924
1931
|
if (zt(r, e.options.enableInputRules) && l) {
|
|
1925
|
-
const
|
|
1926
|
-
if (
|
|
1927
|
-
const
|
|
1932
|
+
const p = l();
|
|
1933
|
+
if (p && p.length) {
|
|
1934
|
+
const f = Ar({
|
|
1928
1935
|
editor: e,
|
|
1929
|
-
rules:
|
|
1930
|
-
}), h = Array.isArray(
|
|
1936
|
+
rules: p
|
|
1937
|
+
}), h = Array.isArray(f) ? f : [f];
|
|
1931
1938
|
o.push(...h);
|
|
1932
1939
|
}
|
|
1933
1940
|
}
|
|
1934
|
-
const d =
|
|
1941
|
+
const d = y(r, "addPasteRules", s);
|
|
1935
1942
|
if (zt(r, e.options.enablePasteRules) && d) {
|
|
1936
|
-
const
|
|
1937
|
-
if (
|
|
1938
|
-
const
|
|
1939
|
-
o.push(...
|
|
1943
|
+
const p = d();
|
|
1944
|
+
if (p && p.length) {
|
|
1945
|
+
const f = Dr({ editor: e, rules: p });
|
|
1946
|
+
o.push(...f);
|
|
1940
1947
|
}
|
|
1941
1948
|
}
|
|
1942
|
-
const u =
|
|
1949
|
+
const u = y(
|
|
1943
1950
|
r,
|
|
1944
1951
|
"addProseMirrorPlugins",
|
|
1945
1952
|
s
|
|
1946
1953
|
);
|
|
1947
1954
|
if (u) {
|
|
1948
|
-
const
|
|
1949
|
-
o.push(...
|
|
1955
|
+
const p = u();
|
|
1956
|
+
o.push(...p);
|
|
1950
1957
|
}
|
|
1951
1958
|
return o;
|
|
1952
1959
|
});
|
|
@@ -1965,32 +1972,32 @@ var ct = class {
|
|
|
1965
1972
|
get nodeViews() {
|
|
1966
1973
|
const { editor: e } = this, { nodeExtensions: t } = L(this.extensions);
|
|
1967
1974
|
return Object.fromEntries(
|
|
1968
|
-
t.filter((n) => !!
|
|
1975
|
+
t.filter((n) => !!y(n, "addNodeView")).map((n) => {
|
|
1969
1976
|
const r = this.attributes.filter((c) => c.type === n.name), s = {
|
|
1970
1977
|
name: n.name,
|
|
1971
1978
|
options: n.options,
|
|
1972
1979
|
storage: this.editor.extensionStorage[n.name],
|
|
1973
1980
|
editor: e,
|
|
1974
1981
|
type: T(n.name, this.schema)
|
|
1975
|
-
}, o =
|
|
1982
|
+
}, o = y(n, "addNodeView", s);
|
|
1976
1983
|
if (!o)
|
|
1977
1984
|
return [];
|
|
1978
1985
|
const i = o();
|
|
1979
1986
|
if (!i)
|
|
1980
1987
|
return [];
|
|
1981
|
-
const a = (c, l, d, u,
|
|
1982
|
-
const
|
|
1988
|
+
const a = (c, l, d, u, p) => {
|
|
1989
|
+
const f = et(c, r);
|
|
1983
1990
|
return i({
|
|
1984
1991
|
// pass-through
|
|
1985
1992
|
node: c,
|
|
1986
1993
|
view: l,
|
|
1987
1994
|
getPos: d,
|
|
1988
1995
|
decorations: u,
|
|
1989
|
-
innerDecorations:
|
|
1996
|
+
innerDecorations: p,
|
|
1990
1997
|
// tiptap-specific
|
|
1991
1998
|
editor: e,
|
|
1992
1999
|
extension: n,
|
|
1993
|
-
HTMLAttributes:
|
|
2000
|
+
HTMLAttributes: f
|
|
1994
2001
|
});
|
|
1995
2002
|
};
|
|
1996
2003
|
return [n.name, a];
|
|
@@ -2004,14 +2011,14 @@ var ct = class {
|
|
|
2004
2011
|
*/
|
|
2005
2012
|
dispatchTransaction(e) {
|
|
2006
2013
|
const { editor: t } = this;
|
|
2007
|
-
return
|
|
2014
|
+
return V([...this.extensions].reverse()).reduceRight((r, s) => {
|
|
2008
2015
|
const o = {
|
|
2009
2016
|
name: s.name,
|
|
2010
2017
|
options: s.options,
|
|
2011
2018
|
storage: this.editor.extensionStorage[s.name],
|
|
2012
2019
|
editor: t,
|
|
2013
|
-
type:
|
|
2014
|
-
}, i =
|
|
2020
|
+
type: H(s.name, this.schema)
|
|
2021
|
+
}, i = y(
|
|
2015
2022
|
s,
|
|
2016
2023
|
"dispatchTransaction",
|
|
2017
2024
|
o
|
|
@@ -2021,21 +2028,49 @@ var ct = class {
|
|
|
2021
2028
|
} : r;
|
|
2022
2029
|
}, e);
|
|
2023
2030
|
}
|
|
2031
|
+
/**
|
|
2032
|
+
* Get the composed transformPastedHTML function from all extensions.
|
|
2033
|
+
* @param baseTransform The base transform function (e.g. from the editor props)
|
|
2034
|
+
* @returns A composed transform function that chains all extension transforms
|
|
2035
|
+
*/
|
|
2036
|
+
transformPastedHTML(e) {
|
|
2037
|
+
const { editor: t } = this;
|
|
2038
|
+
return V([...this.extensions]).reduce(
|
|
2039
|
+
(r, s) => {
|
|
2040
|
+
const o = {
|
|
2041
|
+
name: s.name,
|
|
2042
|
+
options: s.options,
|
|
2043
|
+
storage: this.editor.extensionStorage[s.name],
|
|
2044
|
+
editor: t,
|
|
2045
|
+
type: H(s.name, this.schema)
|
|
2046
|
+
}, i = y(
|
|
2047
|
+
s,
|
|
2048
|
+
"transformPastedHTML",
|
|
2049
|
+
o
|
|
2050
|
+
);
|
|
2051
|
+
return i ? (a, c) => {
|
|
2052
|
+
const l = r(a, c);
|
|
2053
|
+
return i.call(o, l);
|
|
2054
|
+
} : r;
|
|
2055
|
+
},
|
|
2056
|
+
e || ((r) => r)
|
|
2057
|
+
);
|
|
2058
|
+
}
|
|
2024
2059
|
get markViews() {
|
|
2025
2060
|
const { editor: e } = this, { markExtensions: t } = L(this.extensions);
|
|
2026
2061
|
return Object.fromEntries(
|
|
2027
|
-
t.filter((n) => !!
|
|
2062
|
+
t.filter((n) => !!y(n, "addMarkView")).map((n) => {
|
|
2028
2063
|
const r = this.attributes.filter((a) => a.type === n.name), s = {
|
|
2029
2064
|
name: n.name,
|
|
2030
2065
|
options: n.options,
|
|
2031
2066
|
storage: this.editor.extensionStorage[n.name],
|
|
2032
2067
|
editor: e,
|
|
2033
2068
|
type: z(n.name, this.schema)
|
|
2034
|
-
}, o =
|
|
2069
|
+
}, o = y(n, "addMarkView", s);
|
|
2035
2070
|
if (!o)
|
|
2036
2071
|
return [];
|
|
2037
2072
|
const i = (a, c, l) => {
|
|
2038
|
-
const d =
|
|
2073
|
+
const d = et(a, r);
|
|
2039
2074
|
return o()({
|
|
2040
2075
|
// pass-through
|
|
2041
2076
|
mark: a,
|
|
@@ -2069,20 +2104,20 @@ var ct = class {
|
|
|
2069
2104
|
options: t.options,
|
|
2070
2105
|
storage: this.editor.extensionStorage[t.name],
|
|
2071
2106
|
editor: this.editor,
|
|
2072
|
-
type:
|
|
2107
|
+
type: H(t.name, this.schema)
|
|
2073
2108
|
};
|
|
2074
|
-
t.type === "mark" && ((n =
|
|
2075
|
-
const s =
|
|
2109
|
+
t.type === "mark" && ((n = x(y(t, "keepOnSplit", r))) == null || n) && this.splittableMarks.push(t.name);
|
|
2110
|
+
const s = y(t, "onBeforeCreate", r), o = y(t, "onCreate", r), i = y(t, "onUpdate", r), a = y(
|
|
2076
2111
|
t,
|
|
2077
2112
|
"onSelectionUpdate",
|
|
2078
2113
|
r
|
|
2079
|
-
), c =
|
|
2114
|
+
), c = y(t, "onTransaction", r), l = y(t, "onFocus", r), d = y(t, "onBlur", r), u = y(t, "onDestroy", r);
|
|
2080
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), d && this.editor.on("blur", d), u && this.editor.on("destroy", u);
|
|
2081
2116
|
});
|
|
2082
2117
|
}
|
|
2083
2118
|
};
|
|
2084
2119
|
ct.resolve = qt;
|
|
2085
|
-
ct.sort =
|
|
2120
|
+
ct.sort = V;
|
|
2086
2121
|
ct.flatten = wt;
|
|
2087
2122
|
var Br = {};
|
|
2088
2123
|
vt(Br, {
|
|
@@ -2098,7 +2133,7 @@ vt(Br, {
|
|
|
2098
2133
|
TextDirection: () => fe,
|
|
2099
2134
|
focusEventsPluginKey: () => ae
|
|
2100
2135
|
});
|
|
2101
|
-
var N = class ee extends
|
|
2136
|
+
var N = class ee extends xt {
|
|
2102
2137
|
constructor() {
|
|
2103
2138
|
super(...arguments), this.type = "extension";
|
|
2104
2139
|
}
|
|
@@ -2156,9 +2191,9 @@ var N = class ee extends St {
|
|
|
2156
2191
|
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$"))
|
|
2157
2192
|
return;
|
|
2158
2193
|
const d = Ln(e.before, [e, ...t]);
|
|
2159
|
-
Gn(d).forEach((
|
|
2160
|
-
d.mapping.mapResult(
|
|
2161
|
-
const g = m + h.nodeSize - 2, v =
|
|
2194
|
+
Gn(d).forEach((f) => {
|
|
2195
|
+
d.mapping.mapResult(f.oldRange.from).deletedAfter && d.mapping.mapResult(f.oldRange.to).deletedBefore && d.before.nodesBetween(f.oldRange.from, f.oldRange.to, (h, m) => {
|
|
2196
|
+
const g = m + h.nodeSize - 2, v = f.oldRange.from <= m && g <= f.oldRange.to;
|
|
2162
2197
|
this.editor.emit("delete", {
|
|
2163
2198
|
type: "node",
|
|
2164
2199
|
node: h,
|
|
@@ -2166,8 +2201,8 @@ var N = class ee extends St {
|
|
|
2166
2201
|
to: g,
|
|
2167
2202
|
newFrom: d.mapping.map(m),
|
|
2168
2203
|
newTo: d.mapping.map(g),
|
|
2169
|
-
deletedRange:
|
|
2170
|
-
newRange:
|
|
2204
|
+
deletedRange: f.oldRange,
|
|
2205
|
+
newRange: f.newRange,
|
|
2171
2206
|
partial: !v,
|
|
2172
2207
|
editor: this.editor,
|
|
2173
2208
|
transaction: e,
|
|
@@ -2175,25 +2210,25 @@ var N = class ee extends St {
|
|
|
2175
2210
|
});
|
|
2176
2211
|
});
|
|
2177
2212
|
});
|
|
2178
|
-
const
|
|
2179
|
-
d.steps.forEach((
|
|
2213
|
+
const p = d.mapping;
|
|
2214
|
+
d.steps.forEach((f, h) => {
|
|
2180
2215
|
var m, g;
|
|
2181
|
-
if (
|
|
2182
|
-
const v =
|
|
2216
|
+
if (f instanceof ge) {
|
|
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 = d.doc.nodeAt(v - 1)) == null ? void 0 : m.marks.some((E) => E.eq(f.mark)), S = (g = d.doc.nodeAt(b)) == null ? void 0 : g.marks.some((E) => E.eq(f.mark));
|
|
2183
2218
|
this.editor.emit("delete", {
|
|
2184
2219
|
type: "mark",
|
|
2185
|
-
mark:
|
|
2186
|
-
from:
|
|
2187
|
-
to:
|
|
2220
|
+
mark: f.mark,
|
|
2221
|
+
from: f.from,
|
|
2222
|
+
to: f.to,
|
|
2188
2223
|
deletedRange: {
|
|
2189
2224
|
from: k,
|
|
2190
2225
|
to: M
|
|
2191
2226
|
},
|
|
2192
2227
|
newRange: {
|
|
2193
2228
|
from: v,
|
|
2194
|
-
to:
|
|
2229
|
+
to: b
|
|
2195
2230
|
},
|
|
2196
|
-
partial: !!(
|
|
2231
|
+
partial: !!(S || w),
|
|
2197
2232
|
editor: this.editor,
|
|
2198
2233
|
transaction: e,
|
|
2199
2234
|
combinedTransform: d
|
|
@@ -2265,8 +2300,8 @@ var N = class ee extends St {
|
|
|
2265
2300
|
() => i.undoInputRule(),
|
|
2266
2301
|
// maybe convert first text block node to default node
|
|
2267
2302
|
() => i.command(({ tr: a }) => {
|
|
2268
|
-
const { selection: c, doc: l } = a, { empty: d, $anchor: u } = c, { pos:
|
|
2269
|
-
return !d || !
|
|
2303
|
+
const { selection: c, doc: l } = a, { empty: d, $anchor: u } = c, { pos: p, parent: f } = u, h = u.parent.isTextblock && p > 0 ? a.doc.resolve(p - 1) : u, m = h.parent.type.spec.isolating, g = u.pos - u.parentOffset, v = m && h.parent.childCount === 1 ? g === u.pos : j.atStart(l).from === p;
|
|
2304
|
+
return !d || !f.type.isTextblock || f.textContent.length || !v || v && u.parent.type.name === "paragraph" ? !1 : i.clearNodes();
|
|
2270
2305
|
}),
|
|
2271
2306
|
() => i.deleteSelection(),
|
|
2272
2307
|
() => i.joinBackward(),
|
|
@@ -2303,7 +2338,7 @@ var N = class ee extends St {
|
|
|
2303
2338
|
"Ctrl-a": () => this.editor.commands.selectTextblockStart(),
|
|
2304
2339
|
"Ctrl-e": () => this.editor.commands.selectTextblockEnd()
|
|
2305
2340
|
};
|
|
2306
|
-
return
|
|
2341
|
+
return tt() || Vt() ? o : s;
|
|
2307
2342
|
},
|
|
2308
2343
|
addProseMirrorPlugins() {
|
|
2309
2344
|
return [
|
|
@@ -2323,15 +2358,15 @@ var N = class ee extends St {
|
|
|
2323
2358
|
const { empty: o, from: i, to: a } = t.selection, c = j.atStart(t.doc).from, l = j.atEnd(t.doc).to;
|
|
2324
2359
|
if (o || !(i === c && a === l) || !Mt(n.doc))
|
|
2325
2360
|
return;
|
|
2326
|
-
const
|
|
2361
|
+
const p = n.tr, f = rt({
|
|
2327
2362
|
state: n,
|
|
2328
|
-
transaction:
|
|
2363
|
+
transaction: p
|
|
2329
2364
|
}), { commands: h } = new st({
|
|
2330
2365
|
editor: this.editor,
|
|
2331
|
-
state:
|
|
2366
|
+
state: f
|
|
2332
2367
|
});
|
|
2333
|
-
if (h.clearNodes(), !!
|
|
2334
|
-
return
|
|
2368
|
+
if (h.clearNodes(), !!p.steps.length)
|
|
2369
|
+
return p;
|
|
2335
2370
|
}
|
|
2336
2371
|
})
|
|
2337
2372
|
];
|
|
@@ -2410,7 +2445,7 @@ var N = class ee extends St {
|
|
|
2410
2445
|
})
|
|
2411
2446
|
];
|
|
2412
2447
|
}
|
|
2413
|
-
}), _r = class
|
|
2448
|
+
}), _r = class F {
|
|
2414
2449
|
constructor(t, n, r = !1, s = null) {
|
|
2415
2450
|
this.currentNode = null, this.actualDepth = null, this.isBlock = r, this.resolvedPos = t, this.editor = n, this.currentNode = s;
|
|
2416
2451
|
}
|
|
@@ -2469,15 +2504,15 @@ var N = class ee extends St {
|
|
|
2469
2504
|
if (this.depth === 0)
|
|
2470
2505
|
return null;
|
|
2471
2506
|
const t = this.resolvedPos.start(this.resolvedPos.depth - 1), n = this.resolvedPos.doc.resolve(t);
|
|
2472
|
-
return new
|
|
2507
|
+
return new F(n, this.editor);
|
|
2473
2508
|
}
|
|
2474
2509
|
get before() {
|
|
2475
2510
|
let t = this.resolvedPos.doc.resolve(this.from - (this.isBlock ? 1 : 2));
|
|
2476
|
-
return t.depth !== this.depth && (t = this.resolvedPos.doc.resolve(this.from - 3)), new
|
|
2511
|
+
return t.depth !== this.depth && (t = this.resolvedPos.doc.resolve(this.from - 3)), new F(t, this.editor);
|
|
2477
2512
|
}
|
|
2478
2513
|
get after() {
|
|
2479
2514
|
let t = this.resolvedPos.doc.resolve(this.to + (this.isBlock ? 2 : 1));
|
|
2480
|
-
return t.depth !== this.depth && (t = this.resolvedPos.doc.resolve(this.to + 3)), new
|
|
2515
|
+
return t.depth !== this.depth && (t = this.resolvedPos.doc.resolve(this.to + 3)), new F(t, this.editor);
|
|
2481
2516
|
}
|
|
2482
2517
|
get children() {
|
|
2483
2518
|
const t = [];
|
|
@@ -2488,7 +2523,7 @@ var N = class ee extends St {
|
|
|
2488
2523
|
const c = this.resolvedPos.doc.resolve(a);
|
|
2489
2524
|
if (!s && !i && c.depth <= this.depth)
|
|
2490
2525
|
return;
|
|
2491
|
-
const l = new
|
|
2526
|
+
const l = new F(c, this.editor, s, s || i ? n : null);
|
|
2492
2527
|
s && (l.actualDepth = this.depth + 1), t.push(l);
|
|
2493
2528
|
}), t;
|
|
2494
2529
|
}
|
|
@@ -2742,7 +2777,7 @@ var cs = class extends Er {
|
|
|
2742
2777
|
return this.options.editable && this.view && this.view.editable;
|
|
2743
2778
|
}
|
|
2744
2779
|
/**
|
|
2745
|
-
* Returns the editor
|
|
2780
|
+
* Returns the editor view.
|
|
2746
2781
|
*/
|
|
2747
2782
|
get view() {
|
|
2748
2783
|
return this.editorView ? this.editorView : new Proxy(
|
|
@@ -2878,7 +2913,7 @@ var cs = class extends Er {
|
|
|
2878
2913
|
* Creates a ProseMirror view.
|
|
2879
2914
|
*/
|
|
2880
2915
|
createView(t) {
|
|
2881
|
-
const { editorProps: n, enableExtensionDispatchTransaction: r } = this.options, s = n.dispatchTransaction || this.dispatchTransaction.bind(this), o = r ? this.extensionManager.dispatchTransaction(s) : s;
|
|
2916
|
+
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);
|
|
2882
2917
|
this.editorView = new Ke(t, {
|
|
2883
2918
|
...n,
|
|
2884
2919
|
attributes: {
|
|
@@ -2887,16 +2922,17 @@ var cs = class extends Er {
|
|
|
2887
2922
|
...n?.attributes
|
|
2888
2923
|
},
|
|
2889
2924
|
dispatchTransaction: o,
|
|
2925
|
+
transformPastedHTML: a,
|
|
2890
2926
|
state: this.editorState,
|
|
2891
2927
|
markViews: this.extensionManager.markViews,
|
|
2892
2928
|
nodeViews: this.extensionManager.nodeViews
|
|
2893
2929
|
});
|
|
2894
|
-
const
|
|
2930
|
+
const c = this.state.reconfigure({
|
|
2895
2931
|
plugins: this.extensionManager.plugins
|
|
2896
2932
|
});
|
|
2897
|
-
this.view.updateState(
|
|
2898
|
-
const
|
|
2899
|
-
|
|
2933
|
+
this.view.updateState(c), this.prependClass(), this.injectCSS();
|
|
2934
|
+
const l = this.view.dom;
|
|
2935
|
+
l.editor = this;
|
|
2900
2936
|
}
|
|
2901
2937
|
/**
|
|
2902
2938
|
* Creates all node and mark views.
|
|
@@ -3045,17 +3081,17 @@ function ds(e) {
|
|
|
3045
3081
|
return new at({
|
|
3046
3082
|
find: e.find,
|
|
3047
3083
|
handler: ({ state: t, range: n, match: r }) => {
|
|
3048
|
-
const s =
|
|
3084
|
+
const s = x(e.getAttributes, void 0, r);
|
|
3049
3085
|
if (s === !1 || s === null)
|
|
3050
3086
|
return null;
|
|
3051
3087
|
const { tr: o } = t, i = r[r.length - 1], a = r[0];
|
|
3052
3088
|
if (i) {
|
|
3053
3089
|
const c = a.search(/\S/), l = n.from + a.indexOf(i), d = l + i.length;
|
|
3054
|
-
if (Yt(n.from, n.to, t.doc).filter((
|
|
3090
|
+
if (Yt(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)
|
|
3055
3091
|
return null;
|
|
3056
3092
|
d < n.to && o.delete(d, n.to), l > n.from && o.delete(n.from + c, l);
|
|
3057
|
-
const
|
|
3058
|
-
o.addMark(n.from + c,
|
|
3093
|
+
const p = n.from + c + i.length;
|
|
3094
|
+
o.addMark(n.from + c, p, e.type.create(s || {})), o.removeStoredMark(e.type);
|
|
3059
3095
|
}
|
|
3060
3096
|
},
|
|
3061
3097
|
undoable: e.undoable
|
|
@@ -3065,7 +3101,7 @@ function us(e) {
|
|
|
3065
3101
|
return new at({
|
|
3066
3102
|
find: e.find,
|
|
3067
3103
|
handler: ({ state: t, range: n, match: r }) => {
|
|
3068
|
-
const s =
|
|
3104
|
+
const s = x(e.getAttributes, void 0, r) || {}, { tr: o } = t, i = n.from;
|
|
3069
3105
|
let a = n.to;
|
|
3070
3106
|
const c = e.type.create(s);
|
|
3071
3107
|
if (r[1]) {
|
|
@@ -3087,7 +3123,7 @@ function fs(e) {
|
|
|
3087
3123
|
return new at({
|
|
3088
3124
|
find: e.find,
|
|
3089
3125
|
handler: ({ state: t, range: n, match: r }) => {
|
|
3090
|
-
const s = t.doc.resolve(n.from), o =
|
|
3126
|
+
const s = t.doc.resolve(n.from), o = x(e.getAttributes, void 0, r) || {};
|
|
3091
3127
|
if (!s.node(-1).canReplaceWith(s.index(-1), s.indexAfter(-1), e.type))
|
|
3092
3128
|
return null;
|
|
3093
3129
|
t.tr.delete(n.from, n.to).setBlockType(n.from, n.from, e.type, o);
|
|
@@ -3099,13 +3135,13 @@ function ps(e) {
|
|
|
3099
3135
|
return new at({
|
|
3100
3136
|
find: e.find,
|
|
3101
3137
|
handler: ({ state: t, range: n, match: r, chain: s }) => {
|
|
3102
|
-
const o =
|
|
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 && he(c, e.type, o);
|
|
3103
3139
|
if (!l)
|
|
3104
3140
|
return null;
|
|
3105
3141
|
if (i.wrap(c, l), e.keepMarks && e.editor) {
|
|
3106
|
-
const { selection: u, storedMarks:
|
|
3142
|
+
const { selection: u, storedMarks: p } = t, { splittableMarks: f } = e.editor.extensionManager, h = p || u.$to.parentOffset && u.$from.marks();
|
|
3107
3143
|
if (h) {
|
|
3108
|
-
const m = h.filter((g) =>
|
|
3144
|
+
const m = h.filter((g) => f.includes(g.type.name));
|
|
3109
3145
|
i.ensureMarks(m);
|
|
3110
3146
|
}
|
|
3111
3147
|
}
|
|
@@ -3407,12 +3443,12 @@ vt(Hr, {
|
|
|
3407
3443
|
createAtomBlockMarkdownSpec: () => Fr,
|
|
3408
3444
|
createBlockMarkdownSpec: () => Vr,
|
|
3409
3445
|
createInlineMarkdownSpec: () => Kr,
|
|
3410
|
-
parseAttributes: () =>
|
|
3446
|
+
parseAttributes: () => St,
|
|
3411
3447
|
parseIndentedBlocks: () => qr,
|
|
3412
3448
|
renderNestedMarkdownContent: () => Jr,
|
|
3413
3449
|
serializeAttributes: () => Et
|
|
3414
3450
|
});
|
|
3415
|
-
function
|
|
3451
|
+
function St(e) {
|
|
3416
3452
|
if (!e?.trim())
|
|
3417
3453
|
return {};
|
|
3418
3454
|
const t = {}, n = [], r = e.replace(/["']([^"']*)["']/g, (l) => (n.push(l), `__QUOTED_${n.length - 1}__`)), s = r.match(/(?:^|\s)\.([a-zA-Z][\w-]*)/g);
|
|
@@ -3425,8 +3461,8 @@ function xt(e) {
|
|
|
3425
3461
|
const i = /([a-zA-Z][\w-]*)\s*=\s*(__QUOTED_\d+__)/g;
|
|
3426
3462
|
Array.from(r.matchAll(i)).forEach(([, l, d]) => {
|
|
3427
3463
|
var u;
|
|
3428
|
-
const
|
|
3429
|
-
|
|
3464
|
+
const p = parseInt(((u = d.match(/__QUOTED_(\d+)__/)) == null ? void 0 : u[1]) || "0", 10), f = n[p];
|
|
3465
|
+
f && (t[l] = f.slice(1, -1));
|
|
3430
3466
|
});
|
|
3431
3467
|
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();
|
|
3432
3468
|
return c && c.split(/\s+/).filter(Boolean).forEach((d) => {
|
|
@@ -3445,7 +3481,7 @@ function Fr(e) {
|
|
|
3445
3481
|
const {
|
|
3446
3482
|
nodeName: t,
|
|
3447
3483
|
name: n,
|
|
3448
|
-
parseAttributes: r =
|
|
3484
|
+
parseAttributes: r = St,
|
|
3449
3485
|
serializeAttributes: s = Et,
|
|
3450
3486
|
defaultAttributes: o = {},
|
|
3451
3487
|
requiredAttributes: i = [],
|
|
@@ -3454,29 +3490,29 @@ function Fr(e) {
|
|
|
3454
3490
|
if (!a)
|
|
3455
3491
|
return d;
|
|
3456
3492
|
const u = {};
|
|
3457
|
-
return a.forEach((
|
|
3458
|
-
|
|
3493
|
+
return a.forEach((p) => {
|
|
3494
|
+
p in d && (u[p] = d[p]);
|
|
3459
3495
|
}), u;
|
|
3460
3496
|
};
|
|
3461
3497
|
return {
|
|
3462
3498
|
parseMarkdown: (d, u) => {
|
|
3463
|
-
const
|
|
3464
|
-
return u.createNode(t,
|
|
3499
|
+
const p = { ...o, ...d.attributes };
|
|
3500
|
+
return u.createNode(t, p, []);
|
|
3465
3501
|
},
|
|
3466
3502
|
markdownTokenizer: {
|
|
3467
3503
|
name: t,
|
|
3468
3504
|
level: "block",
|
|
3469
3505
|
start(d) {
|
|
3470
3506
|
var u;
|
|
3471
|
-
const
|
|
3472
|
-
return
|
|
3507
|
+
const p = new RegExp(`^:::${c}(?:\\s|$)`, "m"), f = (u = d.match(p)) == null ? void 0 : u.index;
|
|
3508
|
+
return f !== void 0 ? f : -1;
|
|
3473
3509
|
},
|
|
3474
|
-
tokenize(d, u,
|
|
3475
|
-
const
|
|
3510
|
+
tokenize(d, u, p) {
|
|
3511
|
+
const f = new RegExp(`^:::${c}(?:\\s+\\{([^}]*)\\})?\\s*:::(?:\\n|$)`), h = d.match(f);
|
|
3476
3512
|
if (!h)
|
|
3477
3513
|
return;
|
|
3478
3514
|
const m = h[1] || "", g = r(m);
|
|
3479
|
-
if (!i.find((
|
|
3515
|
+
if (!i.find((b) => !(b in g)))
|
|
3480
3516
|
return {
|
|
3481
3517
|
type: t,
|
|
3482
3518
|
raw: h[0],
|
|
@@ -3485,8 +3521,8 @@ function Fr(e) {
|
|
|
3485
3521
|
}
|
|
3486
3522
|
},
|
|
3487
3523
|
renderMarkdown: (d) => {
|
|
3488
|
-
const u = l(d.attrs || {}),
|
|
3489
|
-
return `:::${c}${
|
|
3524
|
+
const u = l(d.attrs || {}), p = s(u), f = p ? ` {${p}}` : "";
|
|
3525
|
+
return `:::${c}${f} :::`;
|
|
3490
3526
|
}
|
|
3491
3527
|
};
|
|
3492
3528
|
}
|
|
@@ -3495,7 +3531,7 @@ function Vr(e) {
|
|
|
3495
3531
|
nodeName: t,
|
|
3496
3532
|
name: n,
|
|
3497
3533
|
getContent: r,
|
|
3498
|
-
parseAttributes: s =
|
|
3534
|
+
parseAttributes: s = St,
|
|
3499
3535
|
serializeAttributes: o = Et,
|
|
3500
3536
|
defaultAttributes: i = {},
|
|
3501
3537
|
content: a = "block",
|
|
@@ -3503,38 +3539,38 @@ function Vr(e) {
|
|
|
3503
3539
|
} = e, l = n || t, d = (u) => {
|
|
3504
3540
|
if (!c)
|
|
3505
3541
|
return u;
|
|
3506
|
-
const
|
|
3507
|
-
return c.forEach((
|
|
3508
|
-
|
|
3509
|
-
}),
|
|
3542
|
+
const p = {};
|
|
3543
|
+
return c.forEach((f) => {
|
|
3544
|
+
f in u && (p[f] = u[f]);
|
|
3545
|
+
}), p;
|
|
3510
3546
|
};
|
|
3511
3547
|
return {
|
|
3512
|
-
parseMarkdown: (u,
|
|
3513
|
-
let
|
|
3548
|
+
parseMarkdown: (u, p) => {
|
|
3549
|
+
let f;
|
|
3514
3550
|
if (r) {
|
|
3515
3551
|
const m = r(u);
|
|
3516
|
-
|
|
3517
|
-
} else a === "block" ?
|
|
3552
|
+
f = typeof m == "string" ? [{ type: "text", text: m }] : m;
|
|
3553
|
+
} else a === "block" ? f = p.parseChildren(u.tokens || []) : f = p.parseInline(u.tokens || []);
|
|
3518
3554
|
const h = { ...i, ...u.attributes };
|
|
3519
|
-
return
|
|
3555
|
+
return p.createNode(t, h, f);
|
|
3520
3556
|
},
|
|
3521
3557
|
markdownTokenizer: {
|
|
3522
3558
|
name: t,
|
|
3523
3559
|
level: "block",
|
|
3524
3560
|
start(u) {
|
|
3525
|
-
var
|
|
3526
|
-
const
|
|
3561
|
+
var p;
|
|
3562
|
+
const f = new RegExp(`^:::${l}`, "m"), h = (p = u.match(f)) == null ? void 0 : p.index;
|
|
3527
3563
|
return h !== void 0 ? h : -1;
|
|
3528
3564
|
},
|
|
3529
|
-
tokenize(u,
|
|
3565
|
+
tokenize(u, p, f) {
|
|
3530
3566
|
var h;
|
|
3531
3567
|
const m = new RegExp(`^:::${l}(?:\\s+\\{([^}]*)\\})?\\s*\\n`), g = u.match(m);
|
|
3532
3568
|
if (!g)
|
|
3533
3569
|
return;
|
|
3534
|
-
const [v,
|
|
3570
|
+
const [v, b = ""] = g, k = s(b);
|
|
3535
3571
|
let M = 1;
|
|
3536
3572
|
const w = v.length;
|
|
3537
|
-
let
|
|
3573
|
+
let S = "";
|
|
3538
3574
|
const E = /^:::([\w-]*)(\s.*)?/gm, A = u.slice(w);
|
|
3539
3575
|
for (E.lastIndex = 0; ; ) {
|
|
3540
3576
|
const C = E.exec(A);
|
|
@@ -3545,14 +3581,14 @@ function Vr(e) {
|
|
|
3545
3581
|
if (lt)
|
|
3546
3582
|
M += 1;
|
|
3547
3583
|
else if (M -= 1, M === 0) {
|
|
3548
|
-
const
|
|
3549
|
-
|
|
3584
|
+
const K = A.slice(0, _);
|
|
3585
|
+
S = K.trim();
|
|
3550
3586
|
const dt = u.slice(0, w + _ + C[0].length);
|
|
3551
3587
|
let I = [];
|
|
3552
|
-
if (
|
|
3588
|
+
if (S)
|
|
3553
3589
|
if (a === "block")
|
|
3554
|
-
for (I =
|
|
3555
|
-
R.text && (!R.tokens || R.tokens.length === 0) && (R.tokens =
|
|
3590
|
+
for (I = f.blockTokens(K), I.forEach((R) => {
|
|
3591
|
+
R.text && (!R.tokens || R.tokens.length === 0) && (R.tokens = f.inlineTokens(R.text));
|
|
3556
3592
|
}); I.length > 0; ) {
|
|
3557
3593
|
const R = I[I.length - 1];
|
|
3558
3594
|
if (R.type === "paragraph" && (!R.text || R.text.trim() === ""))
|
|
@@ -3561,12 +3597,12 @@ function Vr(e) {
|
|
|
3561
3597
|
break;
|
|
3562
3598
|
}
|
|
3563
3599
|
else
|
|
3564
|
-
I =
|
|
3600
|
+
I = f.inlineTokens(S);
|
|
3565
3601
|
return {
|
|
3566
3602
|
type: t,
|
|
3567
3603
|
raw: dt,
|
|
3568
3604
|
attributes: k,
|
|
3569
|
-
content:
|
|
3605
|
+
content: S,
|
|
3570
3606
|
tokens: I
|
|
3571
3607
|
};
|
|
3572
3608
|
}
|
|
@@ -3574,8 +3610,8 @@ function Vr(e) {
|
|
|
3574
3610
|
}
|
|
3575
3611
|
}
|
|
3576
3612
|
},
|
|
3577
|
-
renderMarkdown: (u,
|
|
3578
|
-
const
|
|
3613
|
+
renderMarkdown: (u, p) => {
|
|
3614
|
+
const f = d(u.attrs || {}), h = o(f), m = h ? ` {${h}}` : "", g = p.renderChildren(u.content || [], `
|
|
3579
3615
|
|
|
3580
3616
|
`);
|
|
3581
3617
|
return `:::${l}${m}
|
|
@@ -3610,48 +3646,48 @@ function Kr(e) {
|
|
|
3610
3646
|
defaultAttributes: i = {},
|
|
3611
3647
|
selfClosing: a = !1,
|
|
3612
3648
|
allowedAttributes: c
|
|
3613
|
-
} = e, l = n || t, d = (
|
|
3649
|
+
} = e, l = n || t, d = (p) => {
|
|
3614
3650
|
if (!c)
|
|
3615
|
-
return
|
|
3616
|
-
const
|
|
3651
|
+
return p;
|
|
3652
|
+
const f = {};
|
|
3617
3653
|
return c.forEach((h) => {
|
|
3618
3654
|
const m = typeof h == "string" ? h : h.name, g = typeof h == "string" ? void 0 : h.skipIfDefault;
|
|
3619
|
-
if (m in
|
|
3620
|
-
const v =
|
|
3655
|
+
if (m in p) {
|
|
3656
|
+
const v = p[m];
|
|
3621
3657
|
if (g !== void 0 && v === g)
|
|
3622
3658
|
return;
|
|
3623
|
-
|
|
3659
|
+
f[m] = v;
|
|
3624
3660
|
}
|
|
3625
|
-
}),
|
|
3661
|
+
}), f;
|
|
3626
3662
|
}, u = l.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
3627
3663
|
return {
|
|
3628
|
-
parseMarkdown: (
|
|
3629
|
-
const h = { ...i, ...
|
|
3664
|
+
parseMarkdown: (p, f) => {
|
|
3665
|
+
const h = { ...i, ...p.attributes };
|
|
3630
3666
|
if (a)
|
|
3631
|
-
return
|
|
3632
|
-
const m = r ? r(
|
|
3633
|
-
return m ?
|
|
3667
|
+
return f.createNode(t, h);
|
|
3668
|
+
const m = r ? r(p) : p.content || "";
|
|
3669
|
+
return m ? f.createNode(t, h, [f.createTextNode(m)]) : f.createNode(t, h, []);
|
|
3634
3670
|
},
|
|
3635
3671
|
markdownTokenizer: {
|
|
3636
3672
|
name: t,
|
|
3637
3673
|
level: "inline",
|
|
3638
|
-
start(
|
|
3639
|
-
const
|
|
3674
|
+
start(p) {
|
|
3675
|
+
const f = a ? new RegExp(`\\[${u}\\s*[^\\]]*\\]`) : new RegExp(`\\[${u}\\s*[^\\]]*\\][\\s\\S]*?\\[\\/${u}\\]`), h = p.match(f), m = h?.index;
|
|
3640
3676
|
return m !== void 0 ? m : -1;
|
|
3641
3677
|
},
|
|
3642
|
-
tokenize(
|
|
3643
|
-
const m = a ? new RegExp(`^\\[${u}\\s*([^\\]]*)\\]`) : new RegExp(`^\\[${u}\\s*([^\\]]*)\\]([\\s\\S]*?)\\[\\/${u}\\]`), g =
|
|
3678
|
+
tokenize(p, f, h) {
|
|
3679
|
+
const m = a ? new RegExp(`^\\[${u}\\s*([^\\]]*)\\]`) : new RegExp(`^\\[${u}\\s*([^\\]]*)\\]([\\s\\S]*?)\\[\\/${u}\\]`), g = p.match(m);
|
|
3644
3680
|
if (!g)
|
|
3645
3681
|
return;
|
|
3646
|
-
let v = "",
|
|
3682
|
+
let v = "", b = "";
|
|
3647
3683
|
if (a) {
|
|
3648
3684
|
const [, M] = g;
|
|
3649
|
-
|
|
3685
|
+
b = M;
|
|
3650
3686
|
} else {
|
|
3651
3687
|
const [, M, w] = g;
|
|
3652
|
-
|
|
3688
|
+
b = M, v = w || "";
|
|
3653
3689
|
}
|
|
3654
|
-
const k = s(
|
|
3690
|
+
const k = s(b.trim());
|
|
3655
3691
|
return {
|
|
3656
3692
|
type: t,
|
|
3657
3693
|
raw: g[0],
|
|
@@ -3660,11 +3696,11 @@ function Kr(e) {
|
|
|
3660
3696
|
};
|
|
3661
3697
|
}
|
|
3662
3698
|
},
|
|
3663
|
-
renderMarkdown: (
|
|
3664
|
-
let
|
|
3665
|
-
r ?
|
|
3666
|
-
const h = d(
|
|
3667
|
-
return a ? `[${l}${g}]` : `[${l}${g}]${
|
|
3699
|
+
renderMarkdown: (p) => {
|
|
3700
|
+
let f = "";
|
|
3701
|
+
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 = d(p.attrs || {}), m = o(h), g = m ? ` ${m}` : "";
|
|
3703
|
+
return a ? `[${l}${g}]` : `[${l}${g}]${f}[/${l}]`;
|
|
3668
3704
|
}
|
|
3669
3705
|
};
|
|
3670
3706
|
}
|
|
@@ -3675,19 +3711,19 @@ function qr(e, t, n) {
|
|
|
3675
3711
|
let l = "", d = 0;
|
|
3676
3712
|
const u = t.baseIndentSize || 2;
|
|
3677
3713
|
for (; d < a.length; ) {
|
|
3678
|
-
const
|
|
3679
|
-
if (!
|
|
3714
|
+
const p = a[d], f = p.match(t.itemPattern);
|
|
3715
|
+
if (!f) {
|
|
3680
3716
|
if (c.length > 0)
|
|
3681
3717
|
break;
|
|
3682
|
-
if (
|
|
3683
|
-
d += 1, l = `${l}${
|
|
3718
|
+
if (p.trim() === "") {
|
|
3719
|
+
d += 1, l = `${l}${p}
|
|
3684
3720
|
`;
|
|
3685
3721
|
continue;
|
|
3686
3722
|
} else
|
|
3687
3723
|
return;
|
|
3688
3724
|
}
|
|
3689
|
-
const h = t.extractItemData(
|
|
3690
|
-
l = `${l}${
|
|
3725
|
+
const h = t.extractItemData(f), { indentLevel: m, mainContent: g } = h;
|
|
3726
|
+
l = `${l}${p}
|
|
3691
3727
|
`;
|
|
3692
3728
|
const v = [g];
|
|
3693
3729
|
for (d += 1; d < a.length; ) {
|
|
@@ -3709,14 +3745,14 @@ function qr(e, t, n) {
|
|
|
3709
3745
|
else
|
|
3710
3746
|
break;
|
|
3711
3747
|
}
|
|
3712
|
-
let
|
|
3748
|
+
let b;
|
|
3713
3749
|
const k = v.slice(1);
|
|
3714
3750
|
if (k.length > 0) {
|
|
3715
|
-
const w = k.map((
|
|
3751
|
+
const w = k.map((S) => S.slice(m + u)).join(`
|
|
3716
3752
|
`);
|
|
3717
|
-
w.trim() && (t.customNestedParser ?
|
|
3753
|
+
w.trim() && (t.customNestedParser ? b = t.customNestedParser(w) : b = n.blockTokens(w));
|
|
3718
3754
|
}
|
|
3719
|
-
const M = t.createToken(h,
|
|
3755
|
+
const M = t.createToken(h, b);
|
|
3720
3756
|
c.push(M);
|
|
3721
3757
|
}
|
|
3722
3758
|
if (c.length !== 0)
|
|
@@ -3733,7 +3769,7 @@ function Jr(e, t, n, r) {
|
|
|
3733
3769
|
const d = t.renderChildren([l]);
|
|
3734
3770
|
if (d) {
|
|
3735
3771
|
const u = d.split(`
|
|
3736
|
-
`).map((
|
|
3772
|
+
`).map((p) => p ? t.indent(p) : "").join(`
|
|
3737
3773
|
`);
|
|
3738
3774
|
c.push(u);
|
|
3739
3775
|
}
|
|
@@ -3745,25 +3781,25 @@ function Xr(e, t, n = {}) {
|
|
|
3745
3781
|
s.descendants((a, c) => {
|
|
3746
3782
|
const l = o.mapping.map(c), d = o.mapping.map(c) + a.nodeSize;
|
|
3747
3783
|
let u = null;
|
|
3748
|
-
if (a.marks.forEach((
|
|
3749
|
-
if (
|
|
3784
|
+
if (a.marks.forEach((f) => {
|
|
3785
|
+
if (f !== i)
|
|
3750
3786
|
return !1;
|
|
3751
|
-
u =
|
|
3787
|
+
u = f;
|
|
3752
3788
|
}), !u)
|
|
3753
3789
|
return;
|
|
3754
|
-
let
|
|
3755
|
-
if (Object.keys(n).forEach((
|
|
3756
|
-
n[
|
|
3757
|
-
}),
|
|
3758
|
-
const
|
|
3790
|
+
let p = !1;
|
|
3791
|
+
if (Object.keys(n).forEach((f) => {
|
|
3792
|
+
n[f] !== u.attrs[f] && (p = !0);
|
|
3793
|
+
}), p) {
|
|
3794
|
+
const f = e.type.create({
|
|
3759
3795
|
...e.attrs,
|
|
3760
3796
|
...n
|
|
3761
3797
|
});
|
|
3762
|
-
o.removeMark(l, d, e.type), o.addMark(l, d,
|
|
3798
|
+
o.removeMark(l, d, e.type), o.addMark(l, d, f);
|
|
3763
3799
|
}
|
|
3764
3800
|
}), o.docChanged && t.view.dispatch(o);
|
|
3765
3801
|
}
|
|
3766
|
-
var gs = class pe extends
|
|
3802
|
+
var gs = class pe extends xt {
|
|
3767
3803
|
constructor() {
|
|
3768
3804
|
super(...arguments), this.type = "node";
|
|
3769
3805
|
}
|
|
@@ -3787,21 +3823,21 @@ function vs(e) {
|
|
|
3787
3823
|
return new Nr({
|
|
3788
3824
|
find: e.find,
|
|
3789
3825
|
handler: ({ state: t, range: n, match: r, pasteEvent: s }) => {
|
|
3790
|
-
const o =
|
|
3826
|
+
const o = x(e.getAttributes, void 0, r, s);
|
|
3791
3827
|
if (o === !1 || o === null)
|
|
3792
3828
|
return null;
|
|
3793
3829
|
const { tr: i } = t, a = r[r.length - 1], c = r[0];
|
|
3794
3830
|
let l = n.to;
|
|
3795
3831
|
if (a) {
|
|
3796
|
-
const d = c.search(/\S/), u = n.from + c.indexOf(a),
|
|
3832
|
+
const d = c.search(/\S/), u = n.from + c.indexOf(a), p = u + a.length;
|
|
3797
3833
|
if (Yt(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 > u).length)
|
|
3798
3834
|
return null;
|
|
3799
|
-
|
|
3835
|
+
p < n.to && i.delete(p, n.to), u > n.from && i.delete(n.from + d, u), l = n.from + d + a.length, i.addMark(n.from + d, l, e.type.create(o || {})), i.removeStoredMark(e.type);
|
|
3800
3836
|
}
|
|
3801
3837
|
}
|
|
3802
3838
|
});
|
|
3803
3839
|
}
|
|
3804
|
-
var
|
|
3840
|
+
var ys = (e, t) => {
|
|
3805
3841
|
if (e === "slot")
|
|
3806
3842
|
return 0;
|
|
3807
3843
|
if (e instanceof Function)
|
|
@@ -3826,23 +3862,23 @@ export {
|
|
|
3826
3862
|
Yt as e,
|
|
3827
3863
|
rs as f,
|
|
3828
3864
|
Gn as g,
|
|
3829
|
-
|
|
3865
|
+
ys as h,
|
|
3830
3866
|
as as i,
|
|
3831
3867
|
Yn as j,
|
|
3832
3868
|
N as k,
|
|
3833
|
-
|
|
3869
|
+
U as l,
|
|
3834
3870
|
Wn as m,
|
|
3835
3871
|
us as n,
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3872
|
+
is as o,
|
|
3873
|
+
os as p,
|
|
3874
|
+
T as q,
|
|
3839
3875
|
Jr as r,
|
|
3840
|
-
|
|
3876
|
+
ss as s,
|
|
3841
3877
|
fs as t,
|
|
3842
|
-
|
|
3843
|
-
|
|
3878
|
+
et as u,
|
|
3879
|
+
qr as v,
|
|
3844
3880
|
ps as w,
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3881
|
+
Mt as x,
|
|
3882
|
+
x as y,
|
|
3883
|
+
y as z
|
|
3848
3884
|
};
|