Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
refactor: reorganize plugin config and menu modules (#6658)
白熱e7119f5bacca
diff --git a/common/debugger/src/controllers/config.schema.ts b/common/debugger/src/config/config.tssimilarity index 100%rename from common/debugger/src/controllers/config.schema.tsrename to common/debugger/src/config/config.tsdiff --git a/common/debugger/src/controllers/debugger.controller.ts b/common/debugger/src/controllers/debugger.controller.tsindex 86d87d3870..7a2fb4c7ae 100644--- a/common/debugger/src/controllers/debugger.controller.ts+++ b/common/debugger/src/controllers/debugger.controller.ts@@ -14,7 +14,7 @@* limitations under the License.*/-import type { IUniverDebuggerConfig } from './config.schema';+import type { IUniverDebuggerConfig } from '../config/config';import { Disposable, IConfigService, Inject, Injector } from '@univerjs/core';import {BuiltInUIPart,@@ -28,11 +28,11 @@ import {import { AIButton, FloatButton } from '../components/FloatButton';import { ImageDemo } from '../components/Image';import { RangeLoading } from '../components/RangeLoading';+import { DEBUGGER_PLUGIN_CONFIG_KEY } from '../config/config';// @ts-ignore// import VueComponent from '../components/VueComponent.vue';// import { CounterComponent } from '../components/WebComponent';import { Fab } from '../views/Fab';-import { DEBUGGER_PLUGIN_CONFIG_KEY } from './config.schema';import { RecordController } from './local-save/record.controller';export class DebuggerController extends Disposable {diff --git a/common/debugger/src/index.ts b/common/debugger/src/index.tsindex c2ddbb18cc..ea5e6b425a 100644--- a/common/debugger/src/index.ts+++ b/common/debugger/src/index.ts@@ -16,5 +16,5 @@import './global.css';-export type { IUniverDebuggerConfig } from './controllers/config.schema';+export type { IUniverDebuggerConfig } from './config/config';export { UniverDebuggerPlugin } from './plugin';diff --git a/common/debugger/src/controllers/watermark.menu.controller.ts b/common/debugger/src/menu/watermark.menu.controller.tssimilarity index 100%rename from common/debugger/src/controllers/watermark.menu.controller.tsrename to common/debugger/src/menu/watermark.menu.controller.tsdiff --git a/common/debugger/src/plugin.ts b/common/debugger/src/plugin.tsindex 28f3e83798..2ef1977d98 100644--- a/common/debugger/src/plugin.ts+++ b/common/debugger/src/plugin.ts@@ -15,14 +15,14 @@*/import type { Dependency } from '@univerjs/core';-import type { IUniverDebuggerConfig } from './controllers/config.schema';+import type { IUniverDebuggerConfig } from './config/config';import { IConfigService, Inject, Injector, merge, Plugin, registerDependencies, touchDependencies } from '@univerjs/core';import pkg from '../package.json';-import { DEBUGGER_PLUGIN_CONFIG_KEY, defaultPluginConfig } from './controllers/config.schema';+import { DEBUGGER_PLUGIN_CONFIG_KEY, defaultPluginConfig } from './config/config';import { DebuggerController } from './controllers/debugger.controller';import { E2EController } from './controllers/e2e/e2e.controller';import { PerformanceMonitorController } from './controllers/performance-monitor.controller';-import { UniverWatermarkMenuController } from './controllers/watermark.menu.controller';+import { UniverWatermarkMenuController } from './menu/watermark.menu.controller';export class UniverDebuggerPlugin extends Plugin {static override pluginName = 'UNIVER_DEBUGGER_PLUGIN';diff --git a/common/debugger/src/views/Fab.tsx b/common/debugger/src/views/Fab.tsxindex 1190e5cf0e..fc5a98af0a 100644--- a/common/debugger/src/views/Fab.tsx+++ b/common/debugger/src/views/Fab.tsx@@ -15,11 +15,11 @@*/import type { IDropdownMenuProps } from '@univerjs/design';-import type { IUniverDebuggerConfig } from '../controllers/config.schema';+import type { IUniverDebuggerConfig } from '../config/config';import { IConfigService, IUniverInstanceService, UniverInstanceType } from '@univerjs/core';import { borderClassName, clsx, DropdownMenu } from '@univerjs/design';import { useDependency } from '@univerjs/ui';-import { DEBUGGER_PLUGIN_CONFIG_KEY } from '../controllers/config.schema';+import { DEBUGGER_PLUGIN_CONFIG_KEY } from '../config/config';import { useCellContent } from './use-cell-content';import { useDarkMode } from './use-dark-mode';import { useDialog } from './use-dialog';diff --git a/common/debugger/src/views/use-watermark.ts b/common/debugger/src/views/use-watermark.tsindex ce695f6319..eb7464b4c7 100644--- a/common/debugger/src/views/use-watermark.ts+++ b/common/debugger/src/views/use-watermark.ts@@ -15,7 +15,7 @@*/import { ISidebarService, useDependency } from '@univerjs/ui';-import { WATERMARK_PANEL, WATERMARK_PANEL_FOOTER } from '../controllers/watermark.menu.controller';+import { WATERMARK_PANEL, WATERMARK_PANEL_FOOTER } from '../menu/watermark.menu.controller';export function useWatermark() {const sidebarService = useDependency(ISidebarService);diff --git a/packages/action-recorder/src/controllers/config.schema.ts b/packages/action-recorder/src/config/config.tssimilarity index 100%rename from packages/action-recorder/src/controllers/config.schema.tsrename to packages/action-recorder/src/config/config.tsdiff --git a/packages/action-recorder/src/controllers/action-recorder.controller.spec.tsx b/packages/action-recorder/src/controllers/action-recorder.controller.spec.tsxindex 0e8b313889..0915bf736f 100644--- a/packages/action-recorder/src/controllers/action-recorder.controller.spec.tsx+++ b/packages/action-recorder/src/controllers/action-recorder.controller.spec.tsx@@ -19,8 +19,8 @@ import { describe, expect, it, vi } from 'vitest';import { CompleteRecordingActionCommand, StartRecordingActionCommand, StopRecordingActionCommand } from '../commands/commands/record.command';import { ReplayLocalRecordCommand, ReplayLocalRecordOnActiveCommand, ReplayLocalRecordOnNamesakeCommand } from '../commands/commands/replay.command';import { CloseRecordPanelOperation, OpenRecordPanelOperation } from '../commands/operations/operation';+import { menuSchema, OpenRecorderMenuItemFactory, RECORD_MENU_ITEM_ID, RecordMenuItemFactory, ReplayLocalRecordMenuItemFactory, ReplayLocalRecordOnActiveMenuItemFactory, ReplayLocalRecordOnNamesakeMenuItemFactory } from '../menu/action-recorder.menu';import { ActionRecorderController } from './action-recorder.controller';-import { menuSchema, OpenRecorderMenuItemFactory, RECORD_MENU_ITEM_ID, RecordMenuItemFactory, ReplayLocalRecordMenuItemFactory, ReplayLocalRecordOnActiveMenuItemFactory, ReplayLocalRecordOnNamesakeMenuItemFactory } from './action-recorder.menu';describe('action-recorder controller/menu', () => {it('should create menu items', () => {diff --git a/packages/action-recorder/src/controllers/action-recorder.controller.tsx b/packages/action-recorder/src/controllers/action-recorder.controller.tsxindex 804cb8fa3d..6cec1871a6 100644--- a/packages/action-recorder/src/controllers/action-recorder.controller.tsx+++ b/packages/action-recorder/src/controllers/action-recorder.controller.tsx@@ -79,9 +79,9 @@ import {import { CompleteRecordingActionCommand, StartRecordingActionCommand, StopRecordingActionCommand } from '../commands/commands/record.command';import { ReplayLocalRecordCommand, ReplayLocalRecordOnActiveCommand, ReplayLocalRecordOnNamesakeCommand } from '../commands/commands/replay.command';import { CloseRecordPanelOperation, OpenRecordPanelOperation } from '../commands/operations/operation';+import { menuSchema } from '../menu/action-recorder.menu';import { ActionRecorderService } from '../services/action-recorder.service';import { RecorderPanel } from '../views/components/RecorderPanel';-import { menuSchema } from './action-recorder.menu';export class ActionRecorderController extends Disposable {constructor(diff --git a/packages/action-recorder/src/index.ts b/packages/action-recorder/src/index.tsindex 4f36853c6e..fd2292be5e 100644--- a/packages/action-recorder/src/index.ts+++ b/packages/action-recorder/src/index.ts@@ -16,7 +16,7 @@import './global.css';-export type { IUniverActionRecorderConfig } from './controllers/config.schema';+export type { IUniverActionRecorderConfig } from './config/config';export { UniverActionRecorderPlugin } from './plugin';export { ActionRecorderService } from './services/action-recorder.service';export { ActionReplayService } from './services/replay.service';diff --git a/packages/action-recorder/src/controllers/action-recorder.menu.ts b/packages/action-recorder/src/menu/action-recorder.menu.tssimilarity index 100%rename from packages/action-recorder/src/controllers/action-recorder.menu.tsrename to packages/action-recorder/src/menu/action-recorder.menu.tsdiff --git a/packages/action-recorder/src/plugin.ts b/packages/action-recorder/src/plugin.tsindex e96683e6a3..1ec480e059 100644--- a/packages/action-recorder/src/plugin.ts+++ b/packages/action-recorder/src/plugin.ts@@ -15,11 +15,11 @@*/import type { Dependency } from '@univerjs/core';-import type { IUniverActionRecorderConfig } from './controllers/config.schema';+import type { IUniverActionRecorderConfig } from './config/config';import { IConfigService, Inject, Injector, merge, Plugin } from '@univerjs/core';import pkg from '../package.json';+import { ACTION_RECORDER_PLUGIN_CONFIG_KEY, defaultPluginConfig } from './config/config';import { ActionRecorderController } from './controllers/action-recorder.controller';-import { ACTION_RECORDER_PLUGIN_CONFIG_KEY, defaultPluginConfig } from './controllers/config.schema';import { ActionRecorderService } from './services/action-recorder.service';import { ActionReplayService } from './services/replay.service';diff --git a/packages/core/src/services/resource-manager/resource-manager.service.ts b/packages/core/src/services/resource-manager/resource-manager.service.tsindex 1c09f110c9..de6ae46dba 100644--- a/packages/core/src/services/resource-manager/resource-manager.service.ts+++ b/packages/core/src/services/resource-manager/resource-manager.service.ts@@ -15,8 +15,7 @@*/import type { UniverInstanceType } from '../../common/unit';-import type { IResources } from '../resource-manager/type';-import type { IResourceHook, IResourceManagerService, IResourceName } from './type';+import type { IResourceHook, IResourceManagerService, IResourceName, IResources } from './type';import { Subject } from 'rxjs';import { Disposable, toDisposable } from '../../shared/lifecycle';import { ILogService } from '../log/log.service';diff --git a/packages/data-validation/src/controllers/config.schema.ts b/packages/data-validation/src/config/config.tssimilarity index 100%rename from packages/data-validation/src/controllers/config.schema.tsrename to packages/data-validation/src/config/config.tsdiff --git a/packages/data-validation/src/index.ts b/packages/data-validation/src/index.tsindex 125cd8e91f..89a1f97083 100644--- a/packages/data-validation/src/index.ts+++ b/packages/data-validation/src/index.ts@@ -23,7 +23,7 @@ export {UpdateDataValidationMutation,} from './commands/mutations/data-validation.mutation';export { getRuleOptions, getRuleSetting } from './common/util';-export { type IUniverDataValidationConfig } from './controllers/config.schema';+export { type IUniverDataValidationConfig } from './config/config';export { DataValidationResourceController } from './controllers/dv-resource.controller';export { type DataValidationChangeSource, type DataValidationChangeType, DataValidationModel, type IRuleChange } from './models/data-validation-model';export { UniverDataValidationPlugin } from './plugin';diff --git a/packages/data-validation/src/plugin.ts b/packages/data-validation/src/plugin.tsindex dee085be2e..0f7eab65ee 100644--- a/packages/data-validation/src/plugin.ts+++ b/packages/data-validation/src/plugin.ts@@ -15,12 +15,12 @@*/import type { Dependency } from '@univerjs/core';-import type { IUniverDataValidationConfig } from './controllers/config.schema';+import type { IUniverDataValidationConfig } from './config/config';import { ICommandService, IConfigService, Inject, Injector, merge, Plugin, UniverInstanceType } from '@univerjs/core';import pkg from '../package.json';import { AddDataValidationCommand, RemoveAllDataValidationCommand, RemoveDataValidationCommand, UpdateDataValidationOptionsCommand, UpdateDataValidationSettingCommand } from './commands/commands/data-validation.command';import { AddDataValidationMutation, RemoveDataValidationMutation, UpdateDataValidationMutation } from './commands/mutations/data-validation.mutation';-import { DATA_VALIDATION_PLUGIN_CONFIG_KEY, defaultPluginConfig } from './controllers/config.schema';+import { DATA_VALIDATION_PLUGIN_CONFIG_KEY, defaultPluginConfig } from './config/config';import { DataValidationResourceController } from './controllers/dv-resource.controller';import { DataValidationModel } from './models/data-validation-model';import { DataValidatorRegistryService } from './services/data-validator-registry.service';diff --git a/packages/docs-drawing-ui/src/controllers/config.schema.ts b/packages/docs-drawing-ui/src/config/config.tssimilarity index 100%rename from packages/docs-drawing-ui/src/controllers/config.schema.tsrename to packages/docs-drawing-ui/src/config/config.tsdiff --git a/packages/docs-drawing-ui/src/controllers/doc-drawing.controller.ts b/packages/docs-drawing-ui/src/controllers/doc-drawing.controller.tsindex 1f8af95981..1629ecddd3 100644--- a/packages/docs-drawing-ui/src/controllers/doc-drawing.controller.ts+++ b/packages/docs-drawing-ui/src/controllers/doc-drawing.controller.ts@@ -30,9 +30,9 @@ import { IMoveInlineDrawingCommand, ITransformNonInlineDrawingCommand, UpdateDocimport { ClearDocDrawingTransformerOperation } from '../commands/operations/clear-drawing-transformer.operation';import { EditDocDrawingOperation } from '../commands/operations/edit-doc-drawing.operation';import { SidebarDocDrawingOperation } from '../commands/operations/open-drawing-panel.operation';+import { menuSchema } from '../menu/schema';import { COMPONENT_DOC_DRAWING_PANEL } from '../views/doc-image-panel/component-name';import { DocDrawingPanel } from '../views/doc-image-panel/DocDrawingPanel';-import { menuSchema } from './menu.schema';import { DeleteDrawingsShortcutItem, MoveDrawingDownShortcutItem, MoveDrawingLeftShortcutItem, MoveDrawingRightShortcutItem, MoveDrawingUpShortcutItem } from './shortcuts/drawing.shortcut';export class DocDrawingUIController extends Disposable {diff --git a/packages/docs-drawing-ui/src/index.ts b/packages/docs-drawing-ui/src/index.tsindex 6bfd1b730d..de509e785c 100644--- a/packages/docs-drawing-ui/src/index.ts+++ b/packages/docs-drawing-ui/src/index.ts@@ -27,7 +27,7 @@ export { UngroupDocDrawingCommand } from './commands/commands/ungroup-doc-drawinexport { ClearDocDrawingTransformerOperation } from './commands/operations/clear-drawing-transformer.operation';export { EditDocDrawingOperation } from './commands/operations/edit-doc-drawing.operation';export { SidebarDocDrawingOperation } from './commands/operations/open-drawing-panel.operation';-export { type IUniverDocsDrawingUIConfig } from './controllers/config.schema';+export { type IUniverDocsDrawingUIConfig } from './config/config';export { DocFloatDomController } from './controllers/doc-float-dom.controller';+export { DOCS_IMAGE_MENU_ID } from './menu/image.menu';export { UniverDocsDrawingUIPlugin } from './plugin';-export { DOCS_IMAGE_MENU_ID } from './views/menu/image.menu';diff --git a/packages/docs-drawing-ui/src/controllers/drawing-popup-menu.controller.ts b/packages/docs-drawing-ui/src/menu/drawing-popup-menu.controller.tssimilarity index 100%rename from packages/docs-drawing-ui/src/controllers/drawing-popup-menu.controller.tsrename to packages/docs-drawing-ui/src/menu/drawing-popup-menu.controller.tsdiff --git a/packages/docs-drawing-ui/src/views/menu/image.menu.ts b/packages/docs-drawing-ui/src/menu/image.menu.tssimilarity index 97%rename from packages/docs-drawing-ui/src/views/menu/image.menu.tsrename to packages/docs-drawing-ui/src/menu/image.menu.tsindex 4b588a3729..d5f4d6c18e 100644--- a/packages/docs-drawing-ui/src/views/menu/image.menu.ts+++ b/packages/docs-drawing-ui/src/menu/image.menu.ts@@ -21,7 +21,7 @@ import { DOCS_ZEN_EDITOR_UNIT_ID_KEY, IUniverInstanceService, UniverInstanceTypeimport { DocSelectionManagerService } from '@univerjs/docs';import { getMenuHiddenObservable, MenuItemType } from '@univerjs/ui';import { Observable } from 'rxjs';-import { InsertDocImageCommand } from '../../commands/commands/insert-image.command';+import { InsertDocImageCommand } from '../commands/commands/insert-image.command';export const DOCS_IMAGE_MENU_ID = 'doc.menu.image';export const IMAGE_MENU_UPLOAD_FLOAT_ID = InsertDocImageCommand.id;diff --git a/packages/docs-drawing-ui/src/controllers/menu.schema.ts b/packages/docs-drawing-ui/src/menu/schema.tssimilarity index 97%rename from packages/docs-drawing-ui/src/controllers/menu.schema.tsrename to packages/docs-drawing-ui/src/menu/schema.tsindex e0bd4d559e..1db0639ac6 100644--- a/packages/docs-drawing-ui/src/controllers/menu.schema.ts+++ b/packages/docs-drawing-ui/src/menu/schema.ts@@ -21,7 +21,7 @@ import {IMAGE_MENU_UPLOAD_FLOAT_ID,ImageMenuFactory,UploadFloatImageMenuFactory,-} from '../views/menu/image.menu';+} from './image.menu';export const menuSchema: MenuSchemaType = {[RibbonInsertGroup.MEDIA]: {diff --git a/packages/docs-drawing-ui/src/plugin.ts b/packages/docs-drawing-ui/src/plugin.tsindex 2d4ceac855..7eec735324 100644--- a/packages/docs-drawing-ui/src/plugin.ts+++ b/packages/docs-drawing-ui/src/plugin.ts@@ -15,7 +15,7 @@*/import type { Dependency } from '@univerjs/core';-import type { IUniverDocsDrawingUIConfig } from './controllers/config.schema';+import type { IUniverDocsDrawingUIConfig } from './config/config';import { DependentOn, IConfigService, Inject, Injector, merge, Plugin, UniverInstanceType } from '@univerjs/core';import { UniverDocsDrawingPlugin } from '@univerjs/docs-drawing';import { UniverDrawingPlugin } from '@univerjs/drawing';@@ -23,15 +23,15 @@ import { UniverDrawingUIPlugin } from '@univerjs/drawing-ui';import { IRenderManagerService } from '@univerjs/engine-render';import { UniverUIPlugin } from '@univerjs/ui';import pkg from '../package.json';-import { defaultPluginConfig, DOCS_DRAWING_UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';+import { defaultPluginConfig, DOCS_DRAWING_UI_PLUGIN_CONFIG_KEY } from './config/config';import { DocDrawingAddRemoveController } from './controllers/doc-drawing-notification.controller';import { DocDrawingPrintingController } from './controllers/doc-drawing-printing.controller';import { DocDrawingTransformerController } from './controllers/doc-drawing-transformer-update.controller';import { DocDrawingUIController } from './controllers/doc-drawing.controller';import { DocFloatDomController } from './controllers/doc-float-dom.controller';-import { DocDrawingPopupMenuController } from './controllers/drawing-popup-menu.controller';import { DocDrawingTransformUpdateController } from './controllers/render-controllers/doc-drawing-transform-update.controller';import { DocDrawingUpdateRenderController } from './controllers/render-controllers/doc-drawing-update.render-controller';+import { DocDrawingPopupMenuController } from './menu/drawing-popup-menu.controller';import { DocRefreshDrawingsService } from './services/doc-refresh-drawings.service';@DependentOn(UniverDrawingUIPlugin, UniverDrawingPlugin, UniverDocsDrawingPlugin, UniverUIPlugin)diff --git a/packages/docs-drawing/src/controllers/config.schema.ts b/packages/docs-drawing/src/config/config.tssimilarity index 100%rename from packages/docs-drawing/src/controllers/config.schema.tsrename to packages/docs-drawing/src/config/config.tsdiff --git a/packages/docs-drawing/src/index.ts b/packages/docs-drawing/src/index.tsindex a8ec24f1bc..55c0ff1fac 100644--- a/packages/docs-drawing/src/index.ts+++ b/packages/docs-drawing/src/index.ts@@ -14,7 +14,7 @@* limitations under the License.*/-export type { IUniverDocsDrawingConfig } from './controllers/config.schema';+export type { IUniverDocsDrawingConfig } from './config/config';export { DOCS_DRAWING_PLUGIN, type IDocDrawingModel } from './controllers/doc-drawing.controller';export { DocDrawingController } from './controllers/doc-drawing.controller';export { UniverDocsDrawingPlugin } from './plugin';diff --git a/packages/docs-drawing/src/plugin.ts b/packages/docs-drawing/src/plugin.tsindex 775ce50e7d..82afeabbfc 100644--- a/packages/docs-drawing/src/plugin.ts+++ b/packages/docs-drawing/src/plugin.ts@@ -15,10 +15,10 @@*/import type { Dependency } from '@univerjs/core';-import type { IUniverDocsDrawingConfig } from './controllers/config.schema';+import type { IUniverDocsDrawingConfig } from './config/config';import { IConfigService, Inject, Injector, merge, Plugin, touchDependencies, UniverInstanceType } from '@univerjs/core';import pkg from '../package.json';-import { defaultPluginConfig, DOCS_DRAWING_PLUGIN_CONFIG_KEY } from './controllers/config.schema';+import { defaultPluginConfig, DOCS_DRAWING_PLUGIN_CONFIG_KEY } from './config/config';import { DocDrawingController, DOCS_DRAWING_PLUGIN } from './controllers/doc-drawing.controller';import { DocDrawingService, IDocDrawingService } from './services/doc-drawing.service';diff --git a/packages/docs-hyper-link-ui/src/controllers/config.schema.ts b/packages/docs-hyper-link-ui/src/config/config.tssimilarity index 100%rename from packages/docs-hyper-link-ui/src/controllers/config.schema.tsrename to packages/docs-hyper-link-ui/src/config/config.tsdiff --git a/packages/docs-hyper-link-ui/src/controllers/ui.controller.ts b/packages/docs-hyper-link-ui/src/controllers/ui.controller.tsindex eb1ac7b32c..aa7341915e 100644--- a/packages/docs-hyper-link-ui/src/controllers/ui.controller.ts+++ b/packages/docs-hyper-link-ui/src/controllers/ui.controller.ts@@ -22,10 +22,10 @@ import { AddDocHyperLinkCommand } from '../commands/commands/add-link.command';import { DeleteDocHyperLinkCommand } from '../commands/commands/delete-link.command';import { UpdateDocHyperLinkCommand } from '../commands/commands/update-link.command';import { ClickDocHyperLinkOperation, ShowDocHyperLinkEditPopupOperation, ToggleDocHyperLinkInfoPopupOperation } from '../commands/operations/popup.operation';+import { addLinkShortcut, DOC_LINK_ICON } from '../menu/menu';+import { menuSchema } from '../menu/schema';import { DocHyperLinkEdit } from '../views/hyper-link-edit';import { DocLinkPopup } from '../views/hyper-link-popup';-import { addLinkShortcut, DOC_LINK_ICON } from './menu';-import { menuSchema } from './menu.schema';export interface IDocHyperLinkUIConfig {menu: MenuConfig;diff --git a/packages/docs-hyper-link-ui/src/index.ts b/packages/docs-hyper-link-ui/src/index.tsindex 4ef9d9c0a8..9e35a59447 100644--- a/packages/docs-hyper-link-ui/src/index.ts+++ b/packages/docs-hyper-link-ui/src/index.ts@@ -16,5 +16,5 @@import './global.css';-export type { IUniverDocsHyperLinkUIConfig } from './controllers/config.schema';+export type { IUniverDocsHyperLinkUIConfig } from './config/config';export { UniverDocsHyperLinkUIPlugin } from './plugin';diff --git a/packages/docs-hyper-link-ui/src/controllers/menu.ts b/packages/docs-hyper-link-ui/src/menu/menu.tssimilarity index 100%rename from packages/docs-hyper-link-ui/src/controllers/menu.tsrename to packages/docs-hyper-link-ui/src/menu/menu.tsdiff --git a/packages/docs-hyper-link-ui/src/controllers/menu.schema.ts b/packages/docs-hyper-link-ui/src/menu/schema.tssimilarity index 100%rename from packages/docs-hyper-link-ui/src/controllers/menu.schema.tsrename to packages/docs-hyper-link-ui/src/menu/schema.tsdiff --git a/packages/docs-hyper-link-ui/src/plugin.ts b/packages/docs-hyper-link-ui/src/plugin.tsindex ba3a496a8b..5ac1d7d661 100644--- a/packages/docs-hyper-link-ui/src/plugin.ts+++ b/packages/docs-hyper-link-ui/src/plugin.ts@@ -15,12 +15,12 @@*/import type { Dependency } from '@univerjs/core';-import type { IUniverDocsHyperLinkUIConfig } from './controllers/config.schema';+import type { IUniverDocsHyperLinkUIConfig } from './config/config';import { DependentOn, IConfigService, Inject, Injector, merge, Plugin, UniverInstanceType } from '@univerjs/core';import { UniverDocsHyperLinkPlugin } from '@univerjs/docs-hyper-link';import { IRenderManagerService } from '@univerjs/engine-render';import pkg from '../package.json';-import { defaultPluginConfig, DOCS_HYPER_LINK_UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';+import { defaultPluginConfig, DOCS_HYPER_LINK_UI_PLUGIN_CONFIG_KEY } from './config/config';import { DocHyperLinkSelectionController } from './controllers/doc-hyper-link-selection.controller';import { DocHyperLinkEventRenderController } from './controllers/render-controllers/hyper-link-event.render-controller';import { DocHyperLinkRenderController } from './controllers/render-controllers/render.controller';diff --git a/packages/docs-hyper-link/src/controllers/config.schema.ts b/packages/docs-hyper-link/src/config/config.tssimilarity index 100%rename from packages/docs-hyper-link/src/controllers/config.schema.tsrename to packages/docs-hyper-link/src/config/config.tsdiff --git a/packages/docs-hyper-link/src/index.ts b/packages/docs-hyper-link/src/index.tsindex 63a05ee598..a3177058e9 100644--- a/packages/docs-hyper-link/src/index.ts+++ b/packages/docs-hyper-link/src/index.ts@@ -14,5 +14,5 @@* limitations under the License.*/-export type { IUniverDocsHyperLinkConfig } from './controllers/config.schema';+export type { IUniverDocsHyperLinkConfig } from './config/config';export { UniverDocsHyperLinkPlugin } from './plugin';diff --git a/packages/docs-hyper-link/src/plugin.ts b/packages/docs-hyper-link/src/plugin.tsindex 374d45370f..5a0ea1f463 100644--- a/packages/docs-hyper-link/src/plugin.ts+++ b/packages/docs-hyper-link/src/plugin.ts@@ -15,11 +15,11 @@*/import type { Dependency } from '@univerjs/core';-import type { IUniverDocsHyperLinkConfig } from './controllers/config.schema';+import type { IUniverDocsHyperLinkConfig } from './config/config';import { ICommandService, IConfigService, Inject, Injector, merge, Plugin, UniverInstanceType } from '@univerjs/core';import pkg from '../package.json';import { AddHyperLinkMuatation, DeleteHyperLinkMuatation, UpdateHyperLinkMuatation } from './commands/mutations/hyper-link.mutation';-import { defaultPluginConfig, DOCS_HYPER_LINK_PLUGIN_CONFIG_KEY } from './controllers/config.schema';+import { defaultPluginConfig, DOCS_HYPER_LINK_PLUGIN_CONFIG_KEY } from './config/config';import { DOC_HYPER_LINK_PLUGIN, DocHyperLinkResourceController } from './controllers/resource.controller';export class UniverDocsHyperLinkPlugin extends Plugin {diff --git a/packages/docs-mention-ui/src/controllers/config.schema.ts b/packages/docs-mention-ui/src/config/config.tssimilarity index 100%rename from packages/docs-mention-ui/src/controllers/config.schema.tsrename to packages/docs-mention-ui/src/config/config.tsdiff --git a/packages/docs-mention-ui/src/index.ts b/packages/docs-mention-ui/src/index.tsindex fc26a7d636..3ca7a3d6ed 100644--- a/packages/docs-mention-ui/src/index.ts+++ b/packages/docs-mention-ui/src/index.ts@@ -16,6 +16,6 @@import './global.css';-export type { IUniverDocsMentionUIConfig } from './controllers/config.schema';+export type { IUniverDocsMentionUIConfig } from './config/config';export { UniverDocsMentionUIPlugin } from './plugin';export { DocMentionPopupService } from './services/doc-mention-popup.service';diff --git a/packages/docs-mention-ui/src/plugin.ts b/packages/docs-mention-ui/src/plugin.tsindex 18619d6341..ad83e11802 100644--- a/packages/docs-mention-ui/src/plugin.ts+++ b/packages/docs-mention-ui/src/plugin.ts@@ -15,10 +15,10 @@*/import type { Dependency } from '@univerjs/core';-import type { IUniverDocsMentionUIConfig } from './controllers/config.schema';+import type { IUniverDocsMentionUIConfig } from './config/config';import { IConfigService, Inject, Injector, merge, Plugin, UniverInstanceType } from '@univerjs/core';import pkg from '../package.json';-import { defaultPluginConfig, DOCS_MENTION_UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';+import { defaultPluginConfig, DOCS_MENTION_UI_PLUGIN_CONFIG_KEY } from './config/config';import { DocMentionTriggerController } from './controllers/doc-mention-trigger.controller';import { DocMentionUIController } from './controllers/doc-mention-ui.controller';import { DocMentionPopupService } from './services/doc-mention-popup.service';diff --git a/packages/docs-quick-insert-ui/src/controllers/config.schema.ts b/packages/docs-quick-insert-ui/src/config/config.tssimilarity index 100%rename from packages/docs-quick-insert-ui/src/controllers/config.schema.tsrename to packages/docs-quick-insert-ui/src/config/config.tsdiff --git a/packages/docs-quick-insert-ui/src/controllers/doc-quick-insert-trigger.controller.ts b/packages/docs-quick-insert-ui/src/controllers/doc-quick-insert-trigger.controller.tsindex 8950af3abf..34c68e5fc2 100644--- a/packages/docs-quick-insert-ui/src/controllers/doc-quick-insert-trigger.controller.ts+++ b/packages/docs-quick-insert-ui/src/controllers/doc-quick-insert-trigger.controller.ts@@ -22,8 +22,8 @@ import { DocSelectionManagerService, RichTextEditingMutation } from '@univerjs/dimport { DeleteCommand, DeleteLeftCommand, IMEInputCommand, InsertCommand, MoveCursorOperation } from '@univerjs/docs-ui';import { IShortcutService, KeyCode } from '@univerjs/ui';import { CloseQuickInsertPopupOperation, ShowQuickInsertPopupOperation } from '../commands/operations/quick-insert-popup.operation';+import { builtInMenuCommandIds, textMenu } from '../menu/built-in-menus';import { DocQuickInsertPopupService } from '../services/doc-quick-insert-popup.service';-import { builtInMenuCommandIds, textMenu } from './built-in-menus';export class DocQuickInsertTriggerController extends Disposable {constructor(diff --git a/packages/docs-quick-insert-ui/src/controllers/doc-quick-insert-ui.controller.ts b/packages/docs-quick-insert-ui/src/controllers/doc-quick-insert-ui.controller.tsindex 78eb479e41..a3fa40a60b 100644--- a/packages/docs-quick-insert-ui/src/controllers/doc-quick-insert-ui.controller.ts+++ b/packages/docs-quick-insert-ui/src/controllers/doc-quick-insert-ui.controller.ts@@ -22,12 +22,12 @@ import { ComponentManager } from '@univerjs/ui';import { of } from 'rxjs';import { DeleteSearchKeyCommand } from '../commands/commands/doc-quick-insert.command';import { CloseQuickInsertPopupOperation, ShowQuickInsertPopupOperation } from '../commands/operations/quick-insert-popup.operation';+import { QuickInsertButton } from '../menu';+import { builtInMenus } from '../menu/built-in-menus';import { DocQuickInsertPopupService } from '../services/doc-quick-insert-popup.service';import { KeywordInputPlaceholder } from '../views/KeywordInputPlaceholder';-import { QuickInsertButton } from '../views/menu';import { QuickInsertPlaceholder } from '../views/QuickInsertPlaceholder';import { QuickInsertPopup } from '../views/QuickInsertPopup';-import { builtInMenus } from './built-in-menus';export class DocQuickInsertUIController extends Disposable {constructor(diff --git a/packages/docs-quick-insert-ui/src/index.ts b/packages/docs-quick-insert-ui/src/index.tsindex 0416d4917b..004f06da19 100644--- a/packages/docs-quick-insert-ui/src/index.ts+++ b/packages/docs-quick-insert-ui/src/index.ts@@ -16,7 +16,7 @@import './global.css';-export type { IUniverDocsQuickInsertUIConfig } from './controllers/config.schema';+export type { IUniverDocsQuickInsertUIConfig } from './config/config';export { DocQuickInsertTriggerController } from './controllers/doc-quick-insert-trigger.controller';export { DocQuickInsertUIController } from './controllers/doc-quick-insert-ui.controller';export { UniverDocsQuickInsertUIPlugin } from './plugin';diff --git a/packages/docs-quick-insert-ui/src/controllers/built-in-menus.ts b/packages/docs-quick-insert-ui/src/menu/built-in-menus.tssimilarity index 100%rename from packages/docs-quick-insert-ui/src/controllers/built-in-menus.tsrename to packages/docs-quick-insert-ui/src/menu/built-in-menus.tsdiff --git a/packages/docs-quick-insert-ui/src/views/menu/const.ts b/packages/docs-quick-insert-ui/src/menu/const.tssimilarity index 100%rename from packages/docs-quick-insert-ui/src/views/menu/const.tsrename to packages/docs-quick-insert-ui/src/menu/const.tsdiff --git a/packages/docs-quick-insert-ui/src/controllers/doc-quick-insert-menu.controller.ts b/packages/docs-quick-insert-ui/src/menu/doc-quick-insert-menu.controller.tssimilarity index 97%rename from packages/docs-quick-insert-ui/src/controllers/doc-quick-insert-menu.controller.tsrename to packages/docs-quick-insert-ui/src/menu/doc-quick-insert-menu.controller.tsindex 90471ce6b0..180b0a4ac0 100644--- a/packages/docs-quick-insert-ui/src/controllers/doc-quick-insert-menu.controller.ts+++ b/packages/docs-quick-insert-ui/src/menu/doc-quick-insert-menu.controller.ts@@ -20,7 +20,7 @@ import { Disposable, Inject } from '@univerjs/core';import { DocCanvasPopManagerService, DocEventManagerService } from '@univerjs/docs-ui';import { BehaviorSubject, combineLatest } from 'rxjs';import { DocQuickInsertPopupService } from '../services/doc-quick-insert-popup.service';-import { QuickInsertButtonComponentKey } from '../views/menu/const';+import { QuickInsertButtonComponentKey } from './const';export class DocQuickInsertMenuController extends Disposable implements IRenderModule {private _popup$ = new BehaviorSubject<Nullable<{ startIndex: number; disposable: INeedCheckDisposable }>>(null);diff --git a/packages/docs-quick-insert-ui/src/views/menu/index.tsx b/packages/docs-quick-insert-ui/src/menu/index.tsxsimilarity index 93%rename from packages/docs-quick-insert-ui/src/views/menu/index.tsxrename to packages/docs-quick-insert-ui/src/menu/index.tsxindex 0a808c752e..1e483e69d9 100644--- a/packages/docs-quick-insert-ui/src/views/menu/index.tsx+++ b/packages/docs-quick-insert-ui/src/menu/index.tsx@@ -15,7 +15,7 @@*/import type { DocumentDataModel } from '@univerjs/core';-import type { IDocPopup } from '../../services/doc-quick-insert-popup.service';+import type { IDocPopup } from '../services/doc-quick-insert-popup.service';import { IUniverInstanceService, UniverInstanceType } from '@univerjs/core';import { borderClassName, clsx } from '@univerjs/design';import { DocSelectionManagerService } from '@univerjs/docs';@@ -24,9 +24,9 @@ import { IncreaseIcon } from '@univerjs/icons';import { ILayoutService, useDependency, useEvent, useObservable } from '@univerjs/ui';import { useMemo } from 'react';import { combineLatest, map } from 'rxjs';-import { DocQuickInsertMenuController } from '../../controllers/doc-quick-insert-menu.controller';-import { DocQuickInsertPopupService } from '../../services/doc-quick-insert-popup.service';+import { DocQuickInsertPopupService } from '../services/doc-quick-insert-popup.service';import { QuickInsertButtonComponentKey } from './const';+import { DocQuickInsertMenuController } from './doc-quick-insert-menu.controller';interface IQuickInsertButtonProps {className?: string;diff --git a/packages/docs-quick-insert-ui/src/plugin.ts b/packages/docs-quick-insert-ui/src/plugin.tsindex 2d9c002a63..3acbf250ff 100644--- a/packages/docs-quick-insert-ui/src/plugin.ts+++ b/packages/docs-quick-insert-ui/src/plugin.ts@@ -15,7 +15,7 @@*/import type { Dependency } from '@univerjs/core';-import type { IUniverDocsQuickInsertUIConfig } from './controllers/config.schema';+import type { IUniverDocsQuickInsertUIConfig } from './config/config';import { DependentOn, IConfigService, Inject, Injector, merge, Plugin, UniverInstanceType } from '@univerjs/core';import { UniverDocsDrawingPlugin } from '@univerjs/docs-drawing';import { UniverDocsDrawingUIPlugin } from '@univerjs/docs-drawing-ui';@@ -24,10 +24,10 @@ import { UniverDrawingUIPlugin } from '@univerjs/drawing-ui';import { IRenderManagerService } from '@univerjs/engine-render';import { UniverUIPlugin } from '@univerjs/ui';import pkg from '../package.json';-import { defaultPluginConfig, DOCS_QUICK_INSERT_UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';-import { DocQuickInsertMenuController } from './controllers/doc-quick-insert-menu.controller';+import { defaultPluginConfig, DOCS_QUICK_INSERT_UI_PLUGIN_CONFIG_KEY } from './config/config';import { DocQuickInsertTriggerController } from './controllers/doc-quick-insert-trigger.controller';import { DocQuickInsertUIController } from './controllers/doc-quick-insert-ui.controller';+import { DocQuickInsertMenuController } from './menu/doc-quick-insert-menu.controller';import { DocQuickInsertPopupService } from './services/doc-quick-insert-popup.service';@DependentOn(UniverDrawingUIPlugin, UniverDrawingPlugin, UniverDocsDrawingUIPlugin, UniverDocsDrawingPlugin, UniverUIPlugin)diff --git a/packages/docs-thread-comment-ui/src/controllers/config.schema.ts b/packages/docs-thread-comment-ui/src/config/config.tssimilarity index 100%rename from packages/docs-thread-comment-ui/src/controllers/config.schema.tsrename to packages/docs-thread-comment-ui/src/config/config.tsdiff --git a/packages/docs-thread-comment-ui/src/controllers/doc-thread-comment-ui.controller.ts b/packages/docs-thread-comment-ui/src/controllers/doc-thread-comment-ui.controller.tsindex fa2c2c2fd1..0145370af2 100644--- a/packages/docs-thread-comment-ui/src/controllers/doc-thread-comment-ui.controller.ts+++ b/packages/docs-thread-comment-ui/src/controllers/doc-thread-comment-ui.controller.ts@@ -20,8 +20,8 @@ import { ComponentManager, IMenuManagerService } from '@univerjs/ui';import { AddDocCommentComment } from '../commands/commands/add-doc-comment.command';import { DeleteDocCommentComment } from '../commands/commands/delete-doc-comment.command';import { ShowCommentPanelOperation, StartAddCommentOperation, ToggleCommentPanelOperation } from '../commands/operations/show-comment-panel.operation';+import { menuSchema } from '../menu/schema';import { DocThreadCommentPanel } from '../views/doc-thread-comment-panel';-import { menuSchema } from './menu.schema';export class DocThreadCommentUIController extends Disposable {constructor(diff --git a/packages/docs-thread-comment-ui/src/index.ts b/packages/docs-thread-comment-ui/src/index.tsindex f12f644e12..15d96f39e3 100644--- a/packages/docs-thread-comment-ui/src/index.ts+++ b/packages/docs-thread-comment-ui/src/index.ts@@ -22,5 +22,5 @@ export { DeleteDocCommentComment } from './commands/commands/delete-doc-comment.export type { IDeleteDocCommentComment } from './commands/commands/delete-doc-comment.command';export { ShowCommentPanelOperation, StartAddCommentOperation } from './commands/operations/show-comment-panel.operation';export type { IShowCommentPanelOperationParams } from './commands/operations/show-comment-panel.operation';-export type { IUniverDocsThreadCommentUIConfig } from './controllers/config.schema';+export type { IUniverDocsThreadCommentUIConfig } from './config/config';export { UniverDocsThreadCommentUIPlugin } from './plugin';diff --git a/packages/docs-thread-comment-ui/src/controllers/menu.ts b/packages/docs-thread-comment-ui/src/menu/menu.tssimilarity index 100%rename from packages/docs-thread-comment-ui/src/controllers/menu.tsrename to packages/docs-thread-comment-ui/src/menu/menu.tsdiff --git a/packages/docs-thread-comment-ui/src/controllers/menu.schema.ts b/packages/docs-thread-comment-ui/src/menu/schema.tssimilarity index 100%rename from packages/docs-thread-comment-ui/src/controllers/menu.schema.tsrename to packages/docs-thread-comment-ui/src/menu/schema.tsdiff --git a/packages/docs-thread-comment-ui/src/plugin.ts b/packages/docs-thread-comment-ui/src/plugin.tsindex 05c45d89c1..1259c4e991 100644--- a/packages/docs-thread-comment-ui/src/plugin.ts+++ b/packages/docs-thread-comment-ui/src/plugin.ts@@ -15,13 +15,13 @@*/import type { Dependency } from '@univerjs/core';-import type { IUniverDocsThreadCommentUIConfig } from './controllers/config.schema';+import type { IUniverDocsThreadCommentUIConfig } from './config/config';import { DependentOn, IConfigService, Inject, Injector, merge, Plugin, UniverInstanceType } from '@univerjs/core';import { IRenderManagerService } from '@univerjs/engine-render';import { UniverThreadCommentUIPlugin } from '@univerjs/thread-comment-ui';import pkg from '../package.json';import { PLUGIN_NAME } from './common/const';-import { defaultPluginConfig, DOCS_THREAD_COMMENT_UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';+import { defaultPluginConfig, DOCS_THREAD_COMMENT_UI_PLUGIN_CONFIG_KEY } from './config/config';import { DocThreadCommentSelectionController } from './controllers/doc-thread-comment-selection.controller';import { DocThreadCommentUIController } from './controllers/doc-thread-comment-ui.controller';import { DocThreadCommentRenderController } from './controllers/render-controllers/render.controller';diff --git a/packages/docs-thread-comment-ui/src/views/doc-thread-comment-panel/index.tsx b/packages/docs-thread-comment-ui/src/views/doc-thread-comment-panel/index.tsxindex b17199d6a9..63c94380c7 100644--- a/packages/docs-thread-comment-ui/src/views/doc-thread-comment-panel/index.tsx+++ b/packages/docs-thread-comment-ui/src/views/doc-thread-comment-panel/index.tsx@@ -27,7 +27,7 @@ import { AddDocCommentComment } from '../../commands/commands/add-doc-comment.coimport { DeleteDocCommentComment } from '../../commands/commands/delete-doc-comment.command';import { StartAddCommentOperation } from '../../commands/operations/show-comment-panel.operation';import { DEFAULT_DOC_SUBUNIT_ID } from '../../common/const';-import { shouldDisableAddComment } from '../../controllers/menu';+import { shouldDisableAddComment } from '../../menu/menu';import { DocThreadCommentService } from '../../services/doc-thread-comment.service';export const DocThreadCommentPanel = () => {diff --git a/packages/docs-ui/src/components/float-toolbar/FloatToolbar.stories.tsx b/packages/docs-ui/src/components/float-toolbar/FloatToolbar.stories.tsxindex 0946ab844d..44bd2afac9 100644--- a/packages/docs-ui/src/components/float-toolbar/FloatToolbar.stories.tsx+++ b/packages/docs-ui/src/components/float-toolbar/FloatToolbar.stories.tsx@@ -34,9 +34,9 @@ import {SetInlineFormatTextColorCommand,SetInlineFormatUnderlineCommand,} from '../../commands/commands/inline-format.command';-import { menuSchema } from '../../controllers/menu.schema';import enUS from '../../locale/en-US';import zhCN from '../../locale/zh-CN';+import { menuSchema } from '../../menu/schema';import { FloatToolbar } from './FloatToolbar';const meta: Meta<typeof FloatToolbar> = {diff --git a/packages/docs-ui/src/components/paragraph-menu/index.tsx b/packages/docs-ui/src/components/paragraph-menu/index.tsxindex a315e9faf5..f28cb9050a 100644--- a/packages/docs-ui/src/components/paragraph-menu/index.tsx+++ b/packages/docs-ui/src/components/paragraph-menu/index.tsx@@ -23,7 +23,7 @@ import { DownIcon } from '@univerjs/icons';import { ContextMenuPosition, DesktopMenu, ILayoutService, RectPopup, useDependency, useObservable } from '@univerjs/ui';import { useMemo, useRef, useState } from 'react';import { BehaviorSubject } from 'rxjs';-import { HEADING_ICON_MAP } from '../../controllers/menu/paragraph-menu';+import { HEADING_ICON_MAP } from '../../menu/paragraph-menu';import { DocEventManagerService } from '../../services/doc-event-manager.service';import { DocParagraphMenuService } from '../../services/doc-paragraph-menu.service';diff --git a/packages/docs-ui/src/controllers/config.schema.ts b/packages/docs-ui/src/config/config.tssimilarity index 100%rename from packages/docs-ui/src/controllers/config.schema.tsrename to packages/docs-ui/src/config/config.tsdiff --git a/packages/docs-ui/src/controllers/doc-container-ui-controller.ts b/packages/docs-ui/src/controllers/doc-container-ui-controller.tsindex 28ac3bfc01..58e83f7813 100644--- a/packages/docs-ui/src/controllers/doc-container-ui-controller.ts+++ b/packages/docs-ui/src/controllers/doc-container-ui-controller.ts@@ -15,10 +15,10 @@*/import type { LocaleType } from '@univerjs/core';+import type { IUniverDocsUIConfig } from '../config/config';import type { DocContainer } from '../views/doc-container/DocContainer';-import type { IUniverDocsUIConfig } from './config.schema';import { IConfigService, Inject, Injector, LocaleService } from '@univerjs/core';-import { DOCS_UI_PLUGIN_CONFIG_KEY } from './config.schema';+import { DOCS_UI_PLUGIN_CONFIG_KEY } from '../config/config';export class DocContainerUIController {private _docContainer?: DocContainer;diff --git a/packages/docs-ui/src/controllers/doc-ui.controller.ts b/packages/docs-ui/src/controllers/doc-ui.controller.tsindex fa4be8823e..41646b9e7d 100644--- a/packages/docs-ui/src/controllers/doc-ui.controller.ts+++ b/packages/docs-ui/src/controllers/doc-ui.controller.ts@@ -30,6 +30,7 @@ import { CoreHeaderFooterCommand, OpenHeaderFooterPanelCommand } from '../commanimport { SidebarDocHeaderFooterPanelOperation } from '../commands/operations/doc-header-footer-panel.operation';import { BULLET_LIST_TYPE_COMPONENT, BulletListTypePicker, ORDER_LIST_TYPE_COMPONENT, OrderListTypePicker } from '../components/list-type-picker';import { ParagraphMenu } from '../components/paragraph-menu';+import { menuSchema } from '../menu/schema';import { DocSelectionRenderService } from '../services/selection/doc-selection-render.service';import { TabShortCut } from '../shortcuts/format.shortcut';import {@@ -49,7 +50,6 @@ import {import { DocFooter } from '../views/doc-footer';import { PAGE_SETTING_COMPONENT_ID, PageSettings } from '../views/page-settings';import { DocSideMenu } from '../views/side-menu';-import { menuSchema } from './menu.schema';export class DocUIController extends Disposable {constructor(diff --git a/packages/docs-ui/src/index.ts b/packages/docs-ui/src/index.tsindex 4fcc0852d1..11907b9daa 100644--- a/packages/docs-ui/src/index.ts+++ b/packages/docs-ui/src/index.ts@@ -16,7 +16,6 @@import './global.css';-export { DocAutoFormatService } from '../../docs-ui/src/services/doc-auto-format.service';export * from './basics';export type { IDocObjectParam } from './basics/component-tools';export { getDocObject, getDocObjectById, neoGetDocObject } from './basics/component-tools';@@ -85,8 +84,8 @@ export { SetDocZoomRatioCommand } from './commands/commands/set-doc-zoom-ratio.cexport { SetParagraphNamedStyleCommand } from './commands/commands/set-heading.command';export { SwitchDocModeCommand } from './commands/commands/switch-doc-mode.command';export { CreateDocTableCommand, type ICreateDocTableCommandParams } from './commands/commands/table/doc-table-create.command';-export { DocTableDeleteColumnsCommand, DocTableDeleteRowsCommand, DocTableDeleteTableCommand } from './commands/commands/table/doc-table-delete.command';+export type {IDocTableDeleteColumnsCommandParams,IDocTableDeleteRowsCommandParams,@@ -110,23 +109,24 @@ export {} from './commands/commands/table/doc-table-insert.command';export type { IDocTableTabCommandParams } from './commands/commands/table/doc-table-tab.command';export { DocTableTabCommand } from './commands/commands/table/doc-table-tab.command';-export { genTableSource, getEmptyTableCell, getEmptyTableRow, getTableColumn } from './commands/commands/table/table';+export { DocCreateTableOperation } from './commands/operations/doc-create-table.operation';export { type IMoveCursorOperationParams, MoveSelectionOperation } from './commands/operations/doc-cursor.operation';export { MoveCursorOperation } from './commands/operations/doc-cursor.operation';export { type ISetDocZoomRatioOperationParams, SetDocZoomRatioOperation } from './commands/operations/set-doc-zoom-ratio.operation';export { getCommandSkeleton, getRichTextEditPath } from './commands/util';-export type { IUniverDocsUIConfig } from './controllers/config.schema';+export type { IUniverDocsUIConfig } from './config/config';export { DocUIController } from './controllers/doc-ui.controller';-export { menuSchema as DocsUIMenuSchema } from './controllers/menu.schema';export { DocBackScrollRenderController } from './controllers/render-controllers/back-scroll.render-controller';export { DocRenderController } from './controllers/render-controllers/doc.render-controller';+export { menuSchema as DocsUIMenuSchema } from './menu/schema';export { UniverDocsUIPlugin } from './plugin';-export * from './services';+export { IDocClipboardService } from './services/clipboard/clipboard.service';export { convertBodyToHtml } from './services/clipboard/udm-to-html/convertor';+export { DocAutoFormatService } from './services/doc-auto-format.service';export { DocEventManagerService } from './services/doc-event-manager.service';export { DocIMEInputManagerService } from './services/doc-ime-input-manager.service';export { calcDocRangePositions, DocCanvasPopManagerService } from './services/doc-popup-manager.service';diff --git a/packages/docs-ui/src/controllers/menu/context-menu.ts b/packages/docs-ui/src/menu/context-menu.tssimilarity index 96%rename from packages/docs-ui/src/controllers/menu/context-menu.tsrename to packages/docs-ui/src/menu/context-menu.tsindex bf11d13486..4ef8c88f10 100644--- a/packages/docs-ui/src/controllers/menu/context-menu.ts+++ b/packages/docs-ui/src/menu/context-menu.ts@@ -22,11 +22,11 @@ import { DOC_RANGE_TYPE, IUniverInstanceService, UniverInstanceType } from '@uniimport { DocSelectionManagerService } from '@univerjs/docs';import { getMenuHiddenObservable, MenuItemType } from '@univerjs/ui';import { combineLatest, Observable } from 'rxjs';-import { DocCopyCommand, DocCutCommand, DocPasteCommand } from '../../commands/commands/clipboard.command';-import { DeleteLeftCommand } from '../../commands/commands/doc-delete.command';-import { DocTableDeleteColumnsCommand, DocTableDeleteRowsCommand, DocTableDeleteTableCommand } from '../../commands/commands/table/doc-table-delete.command';-import { DocTableInsertColumnLeftCommand, DocTableInsertColumnRightCommand, DocTableInsertRowAboveCommand, DocTableInsertRowBellowCommand } from '../../commands/commands/table/doc-table-insert.command';-import { DocParagraphSettingPanelOperation } from '../../commands/operations/doc-paragraph-setting-panel.operation';+import { DocCopyCommand, DocCutCommand, DocPasteCommand } from '../commands/commands/clipboard.command';+import { DeleteLeftCommand } from '../commands/commands/doc-delete.command';+import { DocTableDeleteColumnsCommand, DocTableDeleteRowsCommand, DocTableDeleteTableCommand } from '../commands/commands/table/doc-table-delete.command';+import { DocTableInsertColumnLeftCommand, DocTableInsertColumnRightCommand, DocTableInsertRowAboveCommand, DocTableInsertRowBellowCommand } from '../commands/commands/table/doc-table-insert.command';+import { DocParagraphSettingPanelOperation } from '../commands/operations/doc-paragraph-setting-panel.operation';const getDisableOnCollapsedObservable = (accessor: IAccessor) => {const docSelectionManagerService = accessor.get(DocSelectionManagerService);diff --git a/packages/docs-ui/src/controllers/menu/menu.ts b/packages/docs-ui/src/menu/menu.tssimilarity index 97%rename from packages/docs-ui/src/controllers/menu/menu.tsrename to packages/docs-ui/src/menu/menu.tsindex 51ef742e80..f52737946c 100644--- a/packages/docs-ui/src/controllers/menu/menu.ts+++ b/packages/docs-ui/src/menu/menu.ts@@ -55,18 +55,18 @@ import {} from '@univerjs/ui';import { combineLatest, map, Observable } from 'rxjs';-import { OpenHeaderFooterPanelCommand } from '../../commands/commands/doc-header-footer.command';-import { HorizontalLineCommand } from '../../commands/commands/doc-horizontal-line.command';-import { getStyleInTextRange, ResetInlineFormatTextBackgroundColorCommand, SetInlineFormatBoldCommand, SetInlineFormatCommand, SetInlineFormatFontFamilyCommand, SetInlineFormatFontSizeCommand, SetInlineFormatItalicCommand, SetInlineFormatStrikethroughCommand, SetInlineFormatSubscriptCommand, SetInlineFormatSuperscriptCommand, SetInlineFormatTextBackgroundColorCommand, SetInlineFormatTextColorCommand, SetInlineFormatUnderlineCommand } from '../../commands/commands/inline-format.command';-import { BulletListCommand, CheckListCommand, OrderListCommand } from '../../commands/commands/list.command';-import { AlignCenterCommand, AlignJustifyCommand, AlignLeftCommand, AlignOperationCommand, AlignRightCommand } from '../../commands/commands/paragraph-align.command';-import { SetParagraphNamedStyleCommand } from '../../commands/commands/set-heading.command';-import { SwitchDocModeCommand } from '../../commands/commands/switch-doc-mode.command';-import { DocCreateTableOperation } from '../../commands/operations/doc-create-table.operation';-import { DocOpenPageSettingCommand } from '../../commands/operations/open-page-setting.operation';-import { getCommandSkeleton } from '../../commands/util';-import { BULLET_LIST_TYPE_COMPONENT, ORDER_LIST_TYPE_COMPONENT } from '../../components/list-type-picker';-import { DocMenuStyleService } from '../../services/doc-menu-style.service';+import { OpenHeaderFooterPanelCommand } from '../commands/commands/doc-header-footer.command';+import { HorizontalLineCommand } from '../commands/commands/doc-horizontal-line.command';+import { getStyleInTextRange, ResetInlineFormatTextBackgroundColorCommand, SetInlineFormatBoldCommand, SetInlineFormatCommand, SetInlineFormatFontFamilyCommand, SetInlineFormatFontSizeCommand, SetInlineFormatItalicCommand, SetInlineFormatStrikethroughCommand, SetInlineFormatSubscriptCommand, SetInlineFormatSuperscriptCommand, SetInlineFormatTextBackgroundColorCommand, SetInlineFormatTextColorCommand, SetInlineFormatUnderlineCommand } from '../commands/commands/inline-format.command';+import { BulletListCommand, CheckListCommand, OrderListCommand } from '../commands/commands/list.command';+import { AlignCenterCommand, AlignJustifyCommand, AlignLeftCommand, AlignOperationCommand, AlignRightCommand } from '../commands/commands/paragraph-align.command';+import { SetParagraphNamedStyleCommand } from '../commands/commands/set-heading.command';+import { SwitchDocModeCommand } from '../commands/commands/switch-doc-mode.command';+import { DocCreateTableOperation } from '../commands/operations/doc-create-table.operation';+import { DocOpenPageSettingCommand } from '../commands/operations/open-page-setting.operation';+import { getCommandSkeleton } from '../commands/util';+import { BULLET_LIST_TYPE_COMPONENT, ORDER_LIST_TYPE_COMPONENT } from '../components/list-type-picker';+import { DocMenuStyleService } from '../services/doc-menu-style.service';function getInsertTableHiddenObservable(accessor: IAccessordiff --git a/packages/docs-ui/src/controllers/menu/paragraph-menu.ts b/packages/docs-ui/src/menu/paragraph-menu.tssimilarity index 93%rename from packages/docs-ui/src/controllers/menu/paragraph-menu.tsrename to packages/docs-ui/src/menu/paragraph-menu.tsindex 93d2268942..d2c6c103bf 100644--- a/packages/docs-ui/src/controllers/menu/paragraph-menu.ts+++ b/packages/docs-ui/src/menu/paragraph-menu.ts@@ -21,12 +21,12 @@ import { SetTextSelectionsOperation } from '@univerjs/docs';import { H1Icon, H2Icon, H3Icon, H4Icon, H5Icon, TextTypeIcon } from '@univerjs/icons';import { ComponentManager, getMenuHiddenObservable, MenuItemType } from '@univerjs/ui';import { Observable } from 'rxjs';-import { DocCopyCurrentParagraphCommand, DocCutCurrentParagraphCommand } from '../../commands/commands/clipboard.command';-import { DeleteCurrentParagraphCommand } from '../../commands/commands/doc-delete.command';-import { InsertHorizontalLineBellowCommand } from '../../commands/commands/doc-horizontal-line.command';-import { SetInlineFormatFontSizeCommand } from '../../commands/commands/inline-format.command';-import { InsertBulletListBellowCommand, InsertCheckListBellowCommand, InsertOrderListBellowCommand } from '../../commands/commands/list.command';-import { H1HeadingCommand, H2HeadingCommand, H3HeadingCommand, H4HeadingCommand, H5HeadingCommand, NormalTextHeadingCommand, SubtitleHeadingCommand, TitleHeadingCommand } from '../../commands/commands/set-heading.command';+import { DocCopyCurrentParagraphCommand, DocCutCurrentParagraphCommand } from '../commands/commands/clipboard.command';+import { DeleteCurrentParagraphCommand } from '../commands/commands/doc-delete.command';+import { InsertHorizontalLineBellowCommand } from '../commands/commands/doc-horizontal-line.command';+import { SetInlineFormatFontSizeCommand } from '../commands/commands/inline-format.command';+import { InsertBulletListBellowCommand, InsertCheckListBellowCommand, InsertOrderListBellowCommand } from '../commands/commands/list.command';+import { H1HeadingCommand, H2HeadingCommand, H3HeadingCommand, H4HeadingCommand, H5HeadingCommand, NormalTextHeadingCommand, SubtitleHeadingCommand, TitleHeadingCommand } from '../commands/commands/set-heading.command';import { disableMenuWhenNoDocRange, getParagraphStyleAtCursor } from './menu';const HEADING_MAP: Record<NamedStyleType, ICommand> = {diff --git a/packages/docs-ui/src/controllers/menu.schema.ts b/packages/docs-ui/src/menu/schema.tssimilarity index 99%rename from packages/docs-ui/src/controllers/menu.schema.tsrename to packages/docs-ui/src/menu/schema.tsindex bc6f036b98..344dc4141e 100644--- a/packages/docs-ui/src/controllers/menu.schema.ts+++ b/packages/docs-ui/src/menu/schema.ts@@ -48,7 +48,7 @@ import {TABLE_INSERT_MENU_ID,TableDeleteMenuItemFactory,TableInsertMenuItemFactory,-} from './menu/context-menu';+} from './context-menu';import {AlignCenterMenuItemFactory,AlignJustifyMenuItemFactory,@@ -76,8 +76,8 @@ import {TableMenuFactory,TextColorSelectorMenuItemFactory,UnderlineMenuItemFactory,-} from './menu/menu';-import { CopyCurrentParagraphMenuItemFactory, CutCurrentParagraphMenuItemFactory, DeleteCurrentParagraphMenuItemFactory, DocInsertBellowMenuItemFactory, H1HeadingMenuItemFactory, H2HeadingMenuItemFactory, H3HeadingMenuItemFactory, H4HeadingMenuItemFactory, H5HeadingMenuItemFactory, INSERT_BELLOW_MENU_ID, InsertBulletListBellowMenuItemFactory, InsertCheckListBellowMenuItemFactory, InsertHorizontalLineBellowMenuItemFactory, InsertOrderListBellowMenuItemFactory, NormalTextHeadingMenuItemFactory } from './menu/paragraph-menu';+} from './menu';+import { CopyCurrentParagraphMenuItemFactory, CutCurrentParagraphMenuItemFactory, DeleteCurrentParagraphMenuItemFactory, DocInsertBellowMenuItemFactory, H1HeadingMenuItemFactory, H2HeadingMenuItemFactory, H3HeadingMenuItemFactory, H4HeadingMenuItemFactory, H5HeadingMenuItemFactory, INSERT_BELLOW_MENU_ID, InsertBulletListBellowMenuItemFactory, InsertCheckListBellowMenuItemFactory, InsertHorizontalLineBellowMenuItemFactory, InsertOrderListBellowMenuItemFactory, NormalTextHeadingMenuItemFactory } from './paragraph-menu';export const menuSchema: MenuSchemaType = {[RibbonStartGroup.FORMAT]: {diff --git a/packages/docs-ui/src/plugin.ts b/packages/docs-ui/src/plugin.tsindex d923962c01..f086192a61 100644--- a/packages/docs-ui/src/plugin.ts+++ b/packages/docs-ui/src/plugin.ts@@ -15,7 +15,7 @@*/import type { Dependency } from '@univerjs/core';-import type { IUniverDocsUIConfig } from './controllers/config.schema';+import type { IUniverDocsUIConfig } from './config/config';import {DependentOn,ICommandService,@@ -95,8 +95,8 @@ import { MoveCursorOperation, MoveSelectionOperation } from './commands/operatioimport { DocParagraphSettingPanelOperation } from './commands/operations/doc-paragraph-setting-panel.operation';import { DocOpenPageSettingCommand } from './commands/operations/open-page-setting.operation';import { SetDocZoomRatioOperation } from './commands/operations/set-doc-zoom-ratio.operation';+import { defaultPluginConfig, DOCS_UI_PLUGIN_CONFIG_KEY } from './config/config';import { AppUIController } from './controllers';-import { defaultPluginConfig, DOCS_UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';import { DocAutoFormatController } from './controllers/doc-auto-format.controller';import { DocHeaderFooterController } from './controllers/doc-header-footer.controller';import { DocMoveCursorController } from './controllers/doc-move-cursor.controller';diff --git a/packages/docs-ui/src/views/doc-container/DocContainer.tsx b/packages/docs-ui/src/views/doc-container/DocContainer.tsxindex 3a28b34f68..27cf6db1ce 100644--- a/packages/docs-ui/src/views/doc-container/DocContainer.tsx+++ b/packages/docs-ui/src/views/doc-container/DocContainer.tsx@@ -15,7 +15,7 @@*/import type * as React from 'react';-import type { IUniverDocsUIConfig } from '../../controllers/config.schema';+import type { IUniverDocsUIConfig } from '../../config/config';import { Component, createRef } from 'react';interface IBaseDocContainerProps {diff --git a/packages/docs-ui/src/views/doc-footer/DocFooter.tsx b/packages/docs-ui/src/views/doc-footer/DocFooter.tsxindex 5b3579535e..d2c7192c87 100644--- a/packages/docs-ui/src/views/doc-footer/DocFooter.tsx+++ b/packages/docs-ui/src/views/doc-footer/DocFooter.tsx@@ -15,10 +15,10 @@*/import type { Workbook } from '@univerjs/core';-import type { IUniverDocsUIConfig } from '../../controllers/config.schema';+import type { IUniverDocsUIConfig } from '../../config/config';import { IUniverInstanceService, UniverInstanceType } from '@univerjs/core';import { useConfigValue, useDependency, useObservable } from '@univerjs/ui';-import { DOCS_UI_PLUGIN_CONFIG_KEY } from '../../controllers/config.schema';+import { DOCS_UI_PLUGIN_CONFIG_KEY } from '../../config/config';import { CountBar } from '../count-bar';export function DocFooter() {diff --git a/packages/docs-ui/src/views/side-menu/index.tsx b/packages/docs-ui/src/views/side-menu/index.tsxindex cdea2e62f3..3bcc6d8cbd 100644--- a/packages/docs-ui/src/views/side-menu/index.tsx+++ b/packages/docs-ui/src/views/side-menu/index.tsx@@ -17,7 +17,7 @@import type { DocumentDataModel, IParagraph } from '@univerjs/core';import type { IRichTextEditingMutationParams } from '@univerjs/docs';import type { ISideMenuItem } from '../../components/side-menu';-import type { IUniverDocsUIConfig } from '../../controllers/config.schema';+import type { IUniverDocsUIConfig } from '../../config/config';import type { IMutiPageParagraphBound } from '../../services/doc-event-manager.service';import { debounce, fromEventSubject, getPlainText, ICommandService, isInternalEditorID, IUniverInstanceService, NamedStyleType, UniverInstanceType } from '@univerjs/core';import { RichTextEditingMutation } from '@univerjs/docs';@@ -27,7 +27,7 @@ import { useEffect, useMemo, useState } from 'react';import { of, throttleTime } from 'rxjs';import { VIEWPORT_KEY } from '../../basics/docs-view-key';import { SideMenu } from '../../components/side-menu';-import { DOCS_UI_PLUGIN_CONFIG_KEY } from '../../controllers/config.schema';+import { DOCS_UI_PLUGIN_CONFIG_KEY } from '../../config/config';import { DocEventManagerService } from '../../services/doc-event-manager.service';const transformNamedStyleTypeToLevel = (type: NamedStyleType) => {diff --git a/packages/docs/src/controllers/config.schema.ts b/packages/docs/src/config/config.tssimilarity index 100%rename from packages/docs/src/controllers/config.schema.tsrename to packages/docs/src/config/config.tsdiff --git a/packages/docs/src/index.ts b/packages/docs/src/index.tsindex 36b56895a2..49d42f3ee9 100644--- a/packages/docs/src/index.ts+++ b/packages/docs/src/index.ts@@ -16,7 +16,7 @@export { type IRichTextEditingMutationParams, RichTextEditingMutation } from './commands/mutations/core-editing.mutation';export { type ISetTextSelectionsOperationParams, SetTextSelectionsOperation } from './commands/operations/text-selection.operation';-export type { IUniverDocsConfig } from './controllers/config.schema';+export type { IUniverDocsConfig } from './config/config';export { UniverDocsPlugin } from './plugin';export { DocInterceptorService } from './services/doc-interceptor/doc-interceptor.service';export { DOC_INTERCEPTOR_POINT } from './services/doc-interceptor/interceptor-const';diff --git a/packages/docs/src/plugin.ts b/packages/docs/src/plugin.tsindex 2d8be5c97e..6b6e1a8744 100644--- a/packages/docs/src/plugin.ts+++ b/packages/docs/src/plugin.ts@@ -15,7 +15,7 @@*/import type { Dependency, ICommand } from '@univerjs/core';-import type { IUniverDocsConfig } from './controllers/config.schema';+import type { IUniverDocsConfig } from './config/config';import {ICommandService,IConfigService,@@ -28,7 +28,7 @@ import pkg from '../package.json';import { RichTextEditingMutation } from './commands/mutations/core-editing.mutation';import { DocsRenameMutation } from './commands/mutations/docs-rename.mutation';import { SetTextSelectionsOperation } from './commands/operations/text-selection.operation';-import { defaultPluginConfig, DOCS_PLUGIN_CONFIG_KEY } from './controllers/config.schema';+import { defaultPluginConfig, DOCS_PLUGIN_CONFIG_KEY } from './config/config';import { DocCustomRangeController } from './controllers/custom-range.controller';import { DocSelectionManagerService } from './services/doc-selection-manager.service';import { DocStateEmitService } from './services/doc-state-emit.service';diff --git a/packages/drawing-ui/src/controllers/config.schema.ts b/packages/drawing-ui/src/config/config.tssimilarity index 100%rename from packages/drawing-ui/src/controllers/config.schema.tsrename to packages/drawing-ui/src/config/config.tsdiff --git a/packages/drawing-ui/src/index.ts b/packages/drawing-ui/src/index.tsindex 844a4d5905..7b01ad20b4 100644--- a/packages/drawing-ui/src/index.ts+++ b/packages/drawing-ui/src/index.ts@@ -19,7 +19,7 @@ import './global.css';export { SetDrawingAlignOperation } from './commands/operations/drawing-align.operation';export { AutoImageCropOperation, CloseImageCropOperation, OpenImageCropOperation } from './commands/operations/image-crop.operation';export { ImageResetSizeOperation } from './commands/operations/image-reset-size.operation';-export type { IUniverDrawingUIConfig } from './controllers/config.schema';+export type { IUniverDrawingUIConfig } from './config/config';export { getCurrentUnitInfo, insertGroupObject } from './controllers/utils';export { UniverDrawingUIPlugin } from './plugin';export { DrawingRenderService } from './services/drawing-render.service';diff --git a/packages/drawing-ui/src/plugin.ts b/packages/drawing-ui/src/plugin.tsindex c9f7987817..d7e3a1063c 100644--- a/packages/drawing-ui/src/plugin.ts+++ b/packages/drawing-ui/src/plugin.ts@@ -15,10 +15,10 @@*/import type { Dependency } from '@univerjs/core';-import type { IUniverDrawingUIConfig } from './controllers/config.schema';+import type { IUniverDrawingUIConfig } from './config/config';import { IConfigService, Inject, Injector, merge, Plugin } from '@univerjs/core';import pkg from '../package.json';-import { defaultPluginConfig, DRAWING_UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';+import { defaultPluginConfig, DRAWING_UI_PLUGIN_CONFIG_KEY } from './config/config';import { DrawingUIController } from './controllers/drawing-ui.controller';import { DrawingUpdateController } from './controllers/drawing-update.controller';import { ImageCropperController } from './controllers/image-cropper.controller';diff --git a/packages/drawing/src/controllers/config.schema.ts b/packages/drawing/src/config/config.tssimilarity index 100%rename from packages/drawing/src/controllers/config.schema.tsrename to packages/drawing/src/config/config.tsdiff --git a/packages/drawing/src/index.ts b/packages/drawing/src/index.tsindex 99faed012d..11c61689df 100644--- a/packages/drawing/src/index.ts+++ b/packages/drawing/src/index.ts@@ -16,7 +16,7 @@export { DRAWING_IMAGE_ALLOW_IMAGE_LIST, DRAWING_IMAGE_ALLOW_SIZE, DRAWING_IMAGE_COUNT_LIMIT, DRAWING_IMAGE_HEIGHT_LIMIT, DRAWING_IMAGE_WIDTH_LIMIT } from './basics/config';export { SetDrawingSelectedOperation } from './commands/operations/set-drawing-selected.operation';-export type { IUniverDrawingConfig } from './controllers/config.schema';+export type { IUniverDrawingConfig } from './config/config';export type { IDocFloatDomData, IDocFloatDomDataBase, IImageData } from './models/image-model-interface';export { UniverDrawingPlugin } from './plugin';export { DrawingManagerService, UnitDrawingService } from './services/drawing-manager-impl.service';diff --git a/packages/drawing/src/plugin.ts b/packages/drawing/src/plugin.tsindex a5423fce31..0d7abbef97 100644--- a/packages/drawing/src/plugin.ts+++ b/packages/drawing/src/plugin.ts@@ -15,11 +15,11 @@*/import type { Dependency } from '@univerjs/core';-import type { IUniverDrawingConfig } from './controllers/config.schema';+import type { IUniverDrawingConfig } from './config/config';import { ICommandService, IConfigService, Inject, Injector, IURLImageService, merge, mergeOverrideWithDependencies, Plugin } from '@univerjs/core';import pkg from '../package.json';import { SetDrawingSelectedOperation } from './commands/operations/set-drawing-selected.operation';-import { defaultPluginConfig, DRAWING_PLUGIN_CONFIG_KEY } from './controllers/config.schema';+import { defaultPluginConfig, DRAWING_PLUGIN_CONFIG_KEY } from './config/config';import { DrawingManagerService } from './services/drawing-manager-impl.service';import { IDrawingManagerService } from './services/drawing-manager.service';import { ImageIoService } from './services/image-io-impl.service';diff --git a/packages/engine-formula/src/controllers/config.schema.ts b/packages/engine-formula/src/config/config.tssimilarity index 100%rename from packages/engine-formula/src/controllers/config.schema.tsrename to packages/engine-formula/src/config/config.tsdiff --git a/packages/engine-formula/src/controllers/calculate.controller.ts b/packages/engine-formula/src/controllers/calculate.controller.tsindex e65106a368..8b0e563705 100644--- a/packages/engine-formula/src/controllers/calculate.controller.ts+++ b/packages/engine-formula/src/controllers/calculate.controller.ts@@ -40,10 +40,10 @@ import {SetQueryFormulaDependencyResultMutation,} from '../commands/mutations/set-formula-calculation.mutation';import { SetImageFormulaDataMutation } from '../commands/mutations/set-image-formula-data.mutation';+import { DEFAULT_CYCLE_REFERENCE_COUNT } from '../config/config';import { FormulaDataModel } from '../models/formula-data.model';import { ICalculateFormulaService } from '../services/calculate-formula.service';import { FormulaExecutedStateType } from '../services/runtime.service';-import { DEFAULT_CYCLE_REFERENCE_COUNT } from './config.schema';export class CalculateController extends Disposable {constructor(diff --git a/packages/engine-formula/src/controllers/formula.controller.ts b/packages/engine-formula/src/controllers/formula.controller.tsindex 1eaeeda22f..56f22bea6d 100644--- a/packages/engine-formula/src/controllers/formula.controller.ts+++ b/packages/engine-formula/src/controllers/formula.controller.ts@@ -16,8 +16,8 @@import type { Ctor } from '@univerjs/core';import type { IFunctionNames } from '../basics/function';+import type { IUniverEngineFormulaConfig } from '../config/config';import type { BaseFunction } from '../functions/base-function';-import type { IUniverEngineFormulaConfig } from './config.schema';import { Disposable, ICommandService, IConfigService, Optional } from '@univerjs/core';import { DataSyncPrimaryController } from '@univerjs/rpc';import { RegisterFunctionMutation } from '../commands/mutations/register-function.mutation';@@ -45,6 +45,7 @@ import { SetFormulaDataMutation } from '../commands/mutations/set-formula-data.mimport { SetImageFormulaDataMutation } from '../commands/mutations/set-image-formula-data.mutation';import { RemoveOtherFormulaMutation, SetOtherFormulaMutation } from '../commands/mutations/set-other-formula.mutation';import { RemoveSuperTableMutation, SetSuperTableMutation, SetSuperTableOptionMutation } from '../commands/mutations/set-super-table.mutation';+import { ENGINE_FORMULA_PLUGIN_CONFIG_KEY } from '../config/config';import { functionArray } from '../functions/array/function-map';import { functionCompatibility } from '../functions/compatibility/function-map';import { functionCube } from '../functions/cube/function-map';@@ -62,7 +63,6 @@ import { functionText } from '../functions/text/function-map';import { functionUniver } from '../functions/univer/function-map';import { functionWeb } from '../functions/web/function-map';import { IFunctionService } from '../services/function.service';-import { ENGINE_FORMULA_PLUGIN_CONFIG_KEY } from './config.schema';export class FormulaController extends Disposable {constructor(diff --git a/packages/engine-formula/src/facade/__tests__/f-formula.spec.ts b/packages/engine-formula/src/facade/__tests__/f-formula.spec.tsindex 512df5a3ed..fa072828e9 100644--- a/packages/engine-formula/src/facade/__tests__/f-formula.spec.ts+++ b/packages/engine-formula/src/facade/__tests__/f-formula.spec.ts@@ -33,7 +33,7 @@ import {SetQueryFormulaDependencyResultMutation,SetTriggerFormulaCalculationStartMutation,} from '../../commands/mutations/set-formula-calculation.mutation';-import { ENGINE_FORMULA_CYCLE_REFERENCE_COUNT, ENGINE_FORMULA_RETURN_DEPENDENCY_TREE } from '../../controllers/config.schema';+import { ENGINE_FORMULA_CYCLE_REFERENCE_COUNT, ENGINE_FORMULA_RETURN_DEPENDENCY_TREE } from '../../config/config';import { FFormula } from '../f-formula';interface ICommandServiceMock {diff --git a/packages/engine-formula/src/functions/__tests__/nested-functions.spec.ts b/packages/engine-formula/src/functions/__tests__/nested-functions.spec.tsindex 798b85881f..b80c5c90c2 100644--- a/packages/engine-formula/src/functions/__tests__/nested-functions.spec.ts+++ b/packages/engine-formula/src/functions/__tests__/nested-functions.spec.ts@@ -37,7 +37,7 @@ import { Address } from '../lookup/address';import { Choose } from '../lookup/choose';import { FUNCTION_NAMES_LOOKUP } from '../lookup/function-names';import { Hyperlink } from '../lookup/hyperlink';-import { Index } from '../lookup/index';+import { Index } from '../lookup/index/index';import { Match } from '../lookup/match';import { Row } from '../lookup/row';import { Xlookup } from '../lookup/xlookup';diff --git a/packages/engine-formula/src/functions/lookup/function-map.ts b/packages/engine-formula/src/functions/lookup/function-map.tsindex f53aca11de..2ab467f914 100644--- a/packages/engine-formula/src/functions/lookup/function-map.ts+++ b/packages/engine-formula/src/functions/lookup/function-map.ts@@ -30,7 +30,7 @@ import { Hlookup } from './hlookup';import { Hstack } from './hstack';import { Hyperlink } from './hyperlink';import { ImageFunction } from './image';-import { Index } from './index';+import { Index } from './index/index';import { Indirect } from './indirect';import { Lookup } from './lookup';import { Match } from './match';diff --git a/packages/engine-formula/src/functions/statistical/logest/__tests__/index.spec.ts b/packages/engine-formula/src/functions/statistical/logest/__tests__/index.spec.tsindex 5c5040507b..6d0b487dfa 100644--- a/packages/engine-formula/src/functions/statistical/logest/__tests__/index.spec.ts+++ b/packages/engine-formula/src/functions/statistical/logest/__tests__/index.spec.ts@@ -18,7 +18,7 @@ import { describe, expect, it } from 'vitest';import { ErrorType } from '../../../../basics/error-type';import { ArrayValueObject, transformToValueObject } from '../../../../engine/value-object/array-value-object';import { BooleanValueObject, StringValueObject } from '../../../../engine/value-object/primitive-object';-import { getObjectValue } from '../../../../functions/util';+import { getObjectValue } from '../../../util';import { FUNCTION_NAMES_STATISTICAL } from '../../function-names';import { Logest } from '../index';diff --git a/packages/engine-formula/src/index.ts b/packages/engine-formula/src/index.tsindex 25d8b9ac41..396919eeea 100644--- a/packages/engine-formula/src/index.ts+++ b/packages/engine-formula/src/index.ts@@ -87,8 +87,8 @@ export { type ISetImageFormulaDataMutationParams, SetImageFormulaDataMutation }export { type IRemoveOtherFormulaMutationParams, type ISetOtherFormulaMutationParams, RemoveOtherFormulaMutation, SetOtherFormulaMutation } from './commands/mutations/set-other-formula.mutation';export { RemoveSuperTableMutation, SetSuperTableMutation, SetSuperTableOptionMutation } from './commands/mutations/set-super-table.mutation';export type { ISetSuperTableMutationParam, ISetSuperTableMutationSearchParam } from './commands/mutations/set-super-table.mutation';+export { ENGINE_FORMULA_CYCLE_REFERENCE_COUNT, ENGINE_FORMULA_PLUGIN_CONFIG_KEY, ENGINE_FORMULA_RETURN_DEPENDENCY_TREE, type IUniverEngineFormulaConfig } from './config/config';export { CalculateController } from './controllers/calculate.controller';-export { ENGINE_FORMULA_CYCLE_REFERENCE_COUNT, ENGINE_FORMULA_PLUGIN_CONFIG_KEY, ENGINE_FORMULA_RETURN_DEPENDENCY_TREE, type IUniverEngineFormulaConfig } from './controllers/config.schema';export { Lexer } from './engine/analysis/lexer';export { LexerNode } from './engine/analysis/lexer-node';export { LexerTreeBuilder } from './engine/analysis/lexer-tree-builder';diff --git a/packages/engine-formula/src/plugin.ts b/packages/engine-formula/src/plugin.tsindex b2f41bee5d..686f3e960f 100644--- a/packages/engine-formula/src/plugin.ts+++ b/packages/engine-formula/src/plugin.ts@@ -15,12 +15,12 @@*/import type { Dependency } from '@univerjs/core';-import type { IUniverEngineFormulaConfig } from './controllers/config.schema';+import type { IUniverEngineFormulaConfig } from './config/config';import { IConfigService, Inject, Injector, merge, Plugin, touchDependencies } from '@univerjs/core';import pkg from '../package.json';+import { defaultPluginConfig, ENGINE_FORMULA_PLUGIN_CONFIG_KEY } from './config/config';import { CalculateController } from './controllers/calculate.controller';import { ComputingStatusReporterController } from './controllers/computing-status.controller';-import { defaultPluginConfig, ENGINE_FORMULA_PLUGIN_CONFIG_KEY } from './controllers/config.schema';import { FormulaController } from './controllers/formula.controller';import { SetDependencyController } from './controllers/set-dependency.controller';import { SetFeatureCalculationController } from './controllers/set-feature-calculation.controller';diff --git a/packages/engine-formula/src/services/__tests__/calculate-formula.service.spec.ts b/packages/engine-formula/src/services/__tests__/calculate-formula.service.spec.tsindex 0a862c1fd9..8925baaa83 100644--- a/packages/engine-formula/src/services/__tests__/calculate-formula.service.spec.ts+++ b/packages/engine-formula/src/services/__tests__/calculate-formula.service.spec.ts@@ -16,7 +16,7 @@import { beforeEach, describe, expect, it, vi } from 'vitest';import { ErrorType } from '../../basics/error-type';-import { ENGINE_FORMULA_PLUGIN_CONFIG_KEY } from '../../controllers/config.schema';+import { ENGINE_FORMULA_PLUGIN_CONFIG_KEY } from '../../config/config';import { FORMULA_REF_TO_ARRAY_CACHE } from '../../engine/reference-object/base-reference-object';import { CalculateFormulaService } from '../calculate-formula.service';import { FormulaExecuteStageType } from '../runtime.service';diff --git a/packages/engine-formula/src/services/calculate-formula.service.ts b/packages/engine-formula/src/services/calculate-formula.service.tsindex 8155bbd6a0..b737855148 100644--- a/packages/engine-formula/src/services/calculate-formula.service.ts+++ b/packages/engine-formula/src/services/calculate-formula.service.ts@@ -28,7 +28,7 @@ import type {IUnitRowData,} from '../basics/common';-import type { IUniverEngineFormulaConfig } from '../controllers/config.schema';+import type { IUniverEngineFormulaConfig } from '../config/config';import type { LexerNode } from '../engine/analysis/lexer-node';import type { IFormulaDependencyTreeFullJson, IFormulaDependencyTreeJson, IFormulaDependentsAndInRangeResults } from '../engine/dependency/dependency-tree';import type { BaseReferenceObject, FunctionVariantType } from '../engine/reference-object/base-reference-object';@@ -47,7 +47,7 @@ import {import { Subject } from 'rxjs';import { ErrorType } from '../basics/error-type';import { CELL_INVERTED_INDEX_CACHE } from '../basics/inverted-index-cache';-import { DEFAULT_CYCLE_REFERENCE_COUNT, ENGINE_FORMULA_PLUGIN_CONFIG_KEY } from '../controllers/config.schema';+import { DEFAULT_CYCLE_REFERENCE_COUNT, ENGINE_FORMULA_PLUGIN_CONFIG_KEY } from '../config/config';import { Lexer } from '../engine/analysis/lexer';import { AstTreeBuilder } from '../engine/analysis/parser';import { IFormulaDependencyGenerator } from '../engine/dependency/formula-dependency';diff --git a/packages/engine-render/src/controllers/config.schema.ts b/packages/engine-render/src/config/config.tssimilarity index 100%rename from packages/engine-render/src/controllers/config.schema.tsrename to packages/engine-render/src/config/config.tsdiff --git a/packages/engine-render/src/index.ts b/packages/engine-render/src/index.tsindex fe93837ed8..6b9b214f46 100644--- a/packages/engine-render/src/index.ts+++ b/packages/engine-render/src/index.ts@@ -35,8 +35,8 @@ export { DocumentViewModel } from './components/docs/view-model/document-view-moexport { DocumentEditArea } from './components/docs/view-model/document-view-model';export { parseDataStreamToTree } from './components/docs/view-model/document-view-model';export { DEFAULT_PADDING_DATA } from './components/sheets/sheet.render-skeleton';+export type { IUniverEngineRenderConfig } from './config/config';export * from './context';-export type { IUniverEngineRenderConfig } from './controllers/config.schema';export * from './custom';export * from './engine';export * from './group';diff --git a/packages/engine-render/src/plugin.ts b/packages/engine-render/src/plugin.tsindex 82bb7cc4a0..7ddb7f417b 100644--- a/packages/engine-render/src/plugin.ts+++ b/packages/engine-render/src/plugin.ts@@ -14,11 +14,11 @@* limitations under the License.*/-import type { IUniverEngineRenderConfig } from './controllers/config.schema';+import type { IUniverEngineRenderConfig } from './config/config';import { createIdentifier, IConfigService, Inject, Injector, merge, Plugin, registerDependencies } from '@univerjs/core';import pkg from '../package.json';-import { defaultPluginConfig, ENGINE_RENDER_PLUGIN_CONFIG_KEY } from './controllers/config.schema';+import { defaultPluginConfig, ENGINE_RENDER_PLUGIN_CONFIG_KEY } from './config/config';import { Engine } from './engine';import { IRenderManagerService, RenderManagerService } from './render-manager/render-manager.service';import { CanvasColorService, ICanvasColorService } from './services/canvas-color.service';diff --git a/packages/find-replace/src/controllers/config.schema.ts b/packages/find-replace/src/config/config.tssimilarity index 100%rename from packages/find-replace/src/controllers/config.schema.tsrename to packages/find-replace/src/config/config.tsdiff --git a/packages/find-replace/src/controllers/find-replace.controller.ts b/packages/find-replace/src/controllers/find-replace.controller.tsindex 45deed5ce3..87379e02a4 100644--- a/packages/find-replace/src/controllers/find-replace.controller.ts+++ b/packages/find-replace/src/controllers/find-replace.controller.ts@@ -34,6 +34,7 @@ import {OpenFindDialogOperation,OpenReplaceDialogOperation,} from '../commands/operations/find-replace.operation';+import { menuSchema } from '../menu/schema';import { IFindReplaceService } from '../services/find-replace.service';import { FindReplaceDialog } from '../views/dialog/FindReplaceDialog';import {@@ -44,7 +45,6 @@ import {OpenFindDialogShortcutItem,OpenReplaceDialogShortcutItem,} from './find-replace.shortcut';-import { menuSchema } from './menu.schema';const FIND_REPLACE_DIALOG_ID = 'DESKTOP_FIND_REPLACE_DIALOG';diff --git a/packages/find-replace/src/index.ts b/packages/find-replace/src/index.tsindex 3acb91b2a4..0020c8f903 100644--- a/packages/find-replace/src/index.ts+++ b/packages/find-replace/src/index.ts@@ -18,7 +18,7 @@ import './global.css';export { ReplaceAllMatchesCommand, ReplaceCurrentMatchCommand } from './commands/commands/replace.command';export { GoToNextMatchOperation, GoToPreviousMatchOperation, OpenFindDialogOperation, OpenReplaceDialogOperation } from './commands/operations/find-replace.operation';-export type { IUniverFindReplaceConfig } from './controllers/config.schema';+export type { IUniverFindReplaceConfig } from './config/config';export { FindReplaceController } from './controllers/find-replace.controller';export { UniverFindReplacePlugin } from './plugin';export type {diff --git a/packages/find-replace/src/controllers/__tests__/find-replace.menu.spec.ts b/packages/find-replace/src/menu/__tests__/find-replace.menu.spec.tssimilarity index 98%rename from packages/find-replace/src/controllers/__tests__/find-replace.menu.spec.tsrename to packages/find-replace/src/menu/__tests__/find-replace.menu.spec.tsindex 69db3bbb4a..02ec0c29d8 100644--- a/packages/find-replace/src/controllers/__tests__/find-replace.menu.spec.ts+++ b/packages/find-replace/src/menu/__tests__/find-replace.menu.spec.ts@@ -21,7 +21,7 @@ import { afterEach, beforeEach, describe, expect, it } from 'vitest';import { createTestBed } from '../../__tests__/create-test-bed';import { OpenFindDialogOperation } from '../../commands/operations/find-replace.operation';import { FindReplaceMenuItemFactory } from '../find-replace.menu';-import { menuSchema } from '../menu.schema';+import { menuSchema } from '../schema';describe('find-replace.menu', () => {let univer: Univer;diff --git a/packages/find-replace/src/controllers/find-replace.menu.ts b/packages/find-replace/src/menu/find-replace.menu.tssimilarity index 100%rename from packages/find-replace/src/controllers/find-replace.menu.tsrename to packages/find-replace/src/menu/find-replace.menu.tsdiff --git a/packages/find-replace/src/controllers/menu.schema.ts b/packages/find-replace/src/menu/schema.tssimilarity index 100%rename from packages/find-replace/src/controllers/menu.schema.tsrename to packages/find-replace/src/menu/schema.tsdiff --git a/packages/find-replace/src/plugin.ts b/packages/find-replace/src/plugin.tsindex 22f7403631..89fbd4247e 100644--- a/packages/find-replace/src/plugin.ts+++ b/packages/find-replace/src/plugin.ts@@ -15,10 +15,10 @@*/import type { Dependency } from '@univerjs/core';-import type { IUniverFindReplaceConfig } from './controllers/config.schema';+import type { IUniverFindReplaceConfig } from './config/config';import { IConfigService, Inject, Injector, merge, Plugin } from '@univerjs/core';import pkg from '../package.json';-import { defaultPluginConfig, FIND_REPLACE_PLUGIN_CONFIG_KEY } from './controllers/config.schema';+import { defaultPluginConfig, FIND_REPLACE_PLUGIN_CONFIG_KEY } from './config/config';import { FindReplaceController } from './controllers/find-replace.controller';import { FindReplaceService, IFindReplaceService } from './services/find-replace.service';diff --git a/packages/network/src/controllers/config.schema.ts b/packages/network/src/config/config.tssimilarity index 100%rename from packages/network/src/controllers/config.schema.tsrename to packages/network/src/config/config.tsdiff --git a/packages/network/src/index.ts b/packages/network/src/index.tsindex ccd2251997..5cdf98d459 100644--- a/packages/network/src/index.ts+++ b/packages/network/src/index.ts@@ -14,7 +14,7 @@* limitations under the License.*/-export type { IUniverNetworkConfig } from './controllers/config.schema';+export type { IUniverNetworkConfig } from './config/config';export { UniverNetworkPlugin } from './plugin';export { HTTPHeaders } from './services/http/headers';export { type HTTPResponseType, HTTPStatusCode } from './services/http/http';diff --git a/packages/network/src/plugin.ts b/packages/network/src/plugin.tsindex 529da47395..25536540f7 100644--- a/packages/network/src/plugin.ts+++ b/packages/network/src/plugin.ts@@ -14,10 +14,10 @@* limitations under the License.*/-import type { IUniverNetworkConfig } from './controllers/config.schema';+import type { IUniverNetworkConfig } from './config/config';import { IConfigService, ILogService, Inject, Injector, LookUp, merge, mergeOverrideWithDependencies, Plugin, Quantity, registerDependencies } from '@univerjs/core';import pkg from '../package.json';-import { defaultPluginConfig, NETWORK_PLUGIN_CONFIG_KEY } from './controllers/config.schema';+import { defaultPluginConfig, NETWORK_PLUGIN_CONFIG_KEY } from './config/config';import { HTTPService } from './services/http/http.service';import { FetchHTTPImplementation } from './services/http/implementations/fetch';import { IHTTPImplementation } from './services/http/implementations/implementation';diff --git a/packages/rpc-node/src/controllers/config.schema.ts b/packages/rpc-node/src/config/config.tssimilarity index 100%rename from packages/rpc-node/src/controllers/config.schema.tsrename to packages/rpc-node/src/config/config.tsdiff --git a/packages/rpc-node/src/plugin.ts b/packages/rpc-node/src/plugin.tsindex 68b14a3196..d9a1446d07 100644--- a/packages/rpc-node/src/plugin.ts+++ b/packages/rpc-node/src/plugin.ts@@ -17,7 +17,7 @@import type { Dependency } from '@univerjs/core';import type { IMessageProtocol } from '@univerjs/rpc';import type { ChildProcess, Serializable } from 'node:child_process';-import type { IUniverRPCNodeMainConfig, IUniverRPCNodeWorkerThreadConfig } from './controllers/config.schema';+import type { IUniverRPCNodeMainConfig, IUniverRPCNodeWorkerThreadConfig } from './config/config';import { fork } from 'node:child_process';import process from 'node:process';import { IConfigService, ILogService, Inject, Injector, merge, Plugin } from '@univerjs/core';@@ -33,7 +33,7 @@ import {} from '@univerjs/rpc';import { Observable, shareReplay } from 'rxjs';import pkg from '../package.json';-import { defaultPluginMainThreadConfig, defaultPluginWorkerThreadConfig, PLUGIN_CONFIG_KEY_MAIN_THREAD, PLUGIN_CONFIG_KEY_WORKER_THREAD } from './controllers/config.schema';+import { defaultPluginMainThreadConfig, defaultPluginWorkerThreadConfig, PLUGIN_CONFIG_KEY_MAIN_THREAD, PLUGIN_CONFIG_KEY_WORKER_THREAD } from './config/config';export class UniverRPCNodeMainPlugin extends Plugin {static override pluginName = 'UNIVER_RPC_NODE_MAIN_PLUGIN';diff --git a/packages/rpc/src/controllers/config.schema.ts b/packages/rpc/src/config/config.tssimilarity index 100%rename from packages/rpc/src/controllers/config.schema.tsrename to packages/rpc/src/config/config.tsdiff --git a/packages/rpc/src/index.ts b/packages/rpc/src/index.tsindex 56b451174e..70ce6afa2d 100644--- a/packages/rpc/src/index.ts+++ b/packages/rpc/src/index.ts@@ -14,8 +14,8 @@* limitations under the License.*/-export type { IUniverRPCMainThreadConfig, IUniverRPCWorkerThreadConfig } from './controllers/config.schema';-export { PLUGIN_CONFIG_KEY_MAIN_THREAD, PLUGIN_CONFIG_KEY_WORKER_THREAD } from './controllers/config.schema';+export type { IUniverRPCMainThreadConfig, IUniverRPCWorkerThreadConfig } from './config/config';+export { PLUGIN_CONFIG_KEY_MAIN_THREAD, PLUGIN_CONFIG_KEY_WORKER_THREAD } from './config/config';export { DataSyncPrimaryController } from './controllers/data-sync/data-sync-primary.controller';export { DataSyncReplicaController } from './controllers/data-sync/data-sync-replica.controller';export {diff --git a/packages/rpc/src/plugin.ts b/packages/rpc/src/plugin.tsindex 1e1f5efaf1..02d0923c9a 100644--- a/packages/rpc/src/plugin.ts+++ b/packages/rpc/src/plugin.ts@@ -18,7 +18,7 @@ import type { Dependency } from '@univerjs/core';import type {IUniverRPCMainThreadConfig,IUniverRPCWorkerThreadConfig,-} from './controllers/config.schema';+} from './config/config';import { IConfigService, Inject, Injector, merge, Plugin } from '@univerjs/core';import pkg from '../package.json';import {@@ -26,7 +26,7 @@ import {defaultPluginWorkerThreadConfig,PLUGIN_CONFIG_KEY_MAIN_THREAD,PLUGIN_CONFIG_KEY_WORKER_THREAD,-} from './controllers/config.schema';+} from './config/config';import { DataSyncPrimaryController } from './controllers/data-sync/data-sync-primary.controller';import { DataSyncReplicaController } from './controllers/data-sync/data-sync-replica.controller';import {diff --git a/packages/sheets-conditional-formatting-ui/src/controllers/config.schema.ts b/packages/sheets-conditional-formatting-ui/src/config/config.tssimilarity index 100%rename from packages/sheets-conditional-formatting-ui/src/controllers/config.schema.tsrename to packages/sheets-conditional-formatting-ui/src/config/config.tsdiff --git a/packages/sheets-conditional-formatting-ui/src/index.ts b/packages/sheets-conditional-formatting-ui/src/index.tsindex e7abb899dc..60bb49d05a 100644--- a/packages/sheets-conditional-formatting-ui/src/index.ts+++ b/packages/sheets-conditional-formatting-ui/src/index.ts@@ -26,7 +26,7 @@ export { AddTextCfCommand } from './commands/commands/add-text-cf.command';export { AddTimePeriodCfCommand } from './commands/commands/add-time-period-cf.command';export { AddUniqueValuesCfCommand } from './commands/commands/add-unique-values-cf.command';export { OpenConditionalFormattingOperator } from './commands/operations/open-conditional-formatting-panel';+export type { IUniverSheetsConditionalFormattingUIConfig } from './config/config';export { ConditionalFormattingClearController } from './controllers/cf.clear.controller';-export type { IUniverSheetsConditionalFormattingUIConfig } from './controllers/config.schema';export { UniverSheetsConditionalFormattingMobileUIPlugin } from './mobile-plugin';export { UniverSheetsConditionalFormattingUIPlugin } from './plugin';diff --git a/packages/sheets-conditional-formatting-ui/src/controllers/cf.menu.controller.ts b/packages/sheets-conditional-formatting-ui/src/menu/cf.menu.controller.tssimilarity index 96%rename from packages/sheets-conditional-formatting-ui/src/controllers/cf.menu.controller.tsrename to packages/sheets-conditional-formatting-ui/src/menu/cf.menu.controller.tsindex 4fc6d93ca4..a8f9be0213 100644--- a/packages/sheets-conditional-formatting-ui/src/controllers/cf.menu.controller.ts+++ b/packages/sheets-conditional-formatting-ui/src/menu/cf.menu.controller.ts@@ -17,7 +17,7 @@import type { IDisposable } from '@univerjs/core';import { Disposable, Inject, Injector } from '@univerjs/core';import { IMenuManagerService } from '@univerjs/ui';-import { menuSchema } from './menu.schema';+import { menuSchema } from './schema';export class ConditionalFormattingMenuController extends Disposable {private _sidebarDisposable: IDisposable | null = null;diff --git a/packages/sheets-conditional-formatting-ui/src/controllers/menu.schema.ts b/packages/sheets-conditional-formatting-ui/src/menu/schema.tssimilarity index 93%rename from packages/sheets-conditional-formatting-ui/src/controllers/menu.schema.tsrename to packages/sheets-conditional-formatting-ui/src/menu/schema.tsindex ac95d8f073..e5aa5c8932 100644--- a/packages/sheets-conditional-formatting-ui/src/controllers/menu.schema.ts+++ b/packages/sheets-conditional-formatting-ui/src/menu/schema.ts@@ -17,7 +17,7 @@import type { MenuSchemaType } from '@univerjs/ui';import { RibbonDataGroup } from '@univerjs/ui';import { OpenConditionalFormattingOperator } from '../commands/operations/open-conditional-formatting-panel';-import { FactoryManageConditionalFormattingRule } from '../menu/manage-rule';+import { FactoryManageConditionalFormattingRule } from './manage-rule';export const menuSchema: MenuSchemaType = {[RibbonDataGroup.RULES]: {diff --git a/packages/sheets-conditional-formatting-ui/src/mobile-plugin.ts b/packages/sheets-conditional-formatting-ui/src/mobile-plugin.tsindex f917189da5..6ac486616d 100644--- a/packages/sheets-conditional-formatting-ui/src/mobile-plugin.ts+++ b/packages/sheets-conditional-formatting-ui/src/mobile-plugin.ts@@ -14,7 +14,7 @@* limitations under the License.*/-import type { IUniverSheetsConditionalFormattingUIConfig } from './controllers/config.schema';+import type { IUniverSheetsConditionalFormattingUIConfig } from './config/config';import {DependentOn,ICommandService,@@ -37,12 +37,12 @@ import { AddTextCfCommand } from './commands/commands/add-text-cf.command';import { AddTimePeriodCfCommand } from './commands/commands/add-time-period-cf.command';import { AddUniqueValuesCfCommand } from './commands/commands/add-unique-values-cf.command';import { OpenConditionalFormattingOperator } from './commands/operations/open-conditional-formatting-panel';+import { defaultPluginConfig, SHEETS_CONDITIONAL_FORMATTING_UI_PLUGIN_CONFIG_KEY } from './config/config';import { ConditionalFormattingFormulaRefRangeController } from './controllers/cf-formula-ref-range.controller';import { ConditionalFormattingCopyPasteController } from './controllers/cf.copy-paste.controller';import { ConditionalFormattingI18nController } from './controllers/cf.i18n.controller';import { ConditionalFormattingPermissionController } from './controllers/cf.permission.controller';import { SheetsCfRenderController } from './controllers/cf.render.controller';-import { defaultPluginConfig, SHEETS_CONDITIONAL_FORMATTING_UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';@DependentOn(UniverSheetsConditionalFormattingPlugin)export class UniverSheetsConditionalFormattingMobileUIPlugin extends Plugin {diff --git a/packages/sheets-conditional-formatting-ui/src/plugin.ts b/packages/sheets-conditional-formatting-ui/src/plugin.tsindex 8a3bc23b95..4c6fac3e4d 100644--- a/packages/sheets-conditional-formatting-ui/src/plugin.ts+++ b/packages/sheets-conditional-formatting-ui/src/plugin.ts@@ -14,7 +14,7 @@* limitations under the License.*/-import type { IUniverSheetsConditionalFormattingUIConfig } from './controllers/config.schema';+import type { IUniverSheetsConditionalFormattingUIConfig } from './config/config';import {DependentOn,ICommandService,@@ -40,19 +40,19 @@ import { AddTextCfCommand } from './commands/commands/add-text-cf.command';import { AddTimePeriodCfCommand } from './commands/commands/add-time-period-cf.command';import { AddUniqueValuesCfCommand } from './commands/commands/add-unique-values-cf.command';import { OpenConditionalFormattingOperator } from './commands/operations/open-conditional-formatting-panel';+import { defaultPluginConfig, SHEETS_CONDITIONAL_FORMATTING_UI_PLUGIN_CONFIG_KEY } from './config/config';import { ConditionalFormattingFormulaRefRangeController } from './controllers/cf-formula-ref-range.controller';import { ConditionalFormattingAutoFillController } from './controllers/cf.auto-fill.controller';import { ConditionalFormattingClearController } from './controllers/cf.clear.controller';import { ConditionalFormattingCopyPasteController } from './controllers/cf.copy-paste.controller';import { ConditionalFormattingEditorController } from './controllers/cf.editor.controller';import { ConditionalFormattingI18nController } from './controllers/cf.i18n.controller';-import { ConditionalFormattingMenuController } from './controllers/cf.menu.controller';import { ConditionalFormattingPainterController } from './controllers/cf.painter.controller';import { ConditionalFormattingPanelController } from './controllers/cf.panel.controller';import { ConditionalFormattingPermissionController } from './controllers/cf.permission.controller';import { SheetsCfRenderController } from './controllers/cf.render.controller';import { ConditionalFormattingViewportController } from './controllers/cf.viewport.controller';-import { defaultPluginConfig, SHEETS_CONDITIONAL_FORMATTING_UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';+import { ConditionalFormattingMenuController } from './menu/cf.menu.controller';@DependentOn(UniverSheetsConditionalFormattingPlugin, UniverSheetsFormulaPlugin)export class UniverSheetsConditionalFormattingUIPlugin extends Plugin {diff --git a/packages/sheets-conditional-formatting/src/controllers/config.schema.ts b/packages/sheets-conditional-formatting/src/config/config.tssimilarity index 100%rename from packages/sheets-conditional-formatting/src/controllers/config.schema.tsrename to packages/sheets-conditional-formatting/src/config/config.tsdiff --git a/packages/sheets-conditional-formatting/src/index.ts b/packages/sheets-conditional-formatting/src/index.tsindex 0bd71ab09e..a2a92112ad 100644--- a/packages/sheets-conditional-formatting/src/index.ts+++ b/packages/sheets-conditional-formatting/src/index.ts@@ -38,7 +38,7 @@ export {} from './commands/mutations/move-conditional-rule.mutation';export type { ISetConditionalRuleMutationParams } from './commands/mutations/set-conditional-rule.mutation';export { SetConditionalRuleMutation, setConditionalRuleMutationUndoFactory } from './commands/mutations/set-conditional-rule.mutation';-export type { IUniverSheetsConditionalFormattingConfig } from './controllers/config.schema';+export type { IUniverSheetsConditionalFormattingConfig } from './config/config';export * from './models/calculate-unit-v2/utils';export * from './models/conditional-formatting-rule-model';export * from './models/conditional-formatting-view-model';diff --git a/packages/sheets-conditional-formatting/src/models/calculate-unit-v2/__test__/calculate.color.spec.ts b/packages/sheets-conditional-formatting/src/models/calculate-unit-v2/__test__/calculate.color.spec.tsindex 0982b49eca..102b5f9f7c 100644--- a/packages/sheets-conditional-formatting/src/models/calculate-unit-v2/__test__/calculate.color.spec.ts+++ b/packages/sheets-conditional-formatting/src/models/calculate-unit-v2/__test__/calculate.color.spec.ts@@ -14,7 +14,7 @@* limitations under the License.*/-import type { IColorScale, IConditionFormattingRule } from '../../../models/type';+import type { IColorScale, IConditionFormattingRule } from '../../type';import { beforeEach, describe, expect, it } from 'vitest';import { CFRuleType, CFValueType } from '../../../base/const';import { createTestBed } from './test.util';diff --git a/packages/sheets-conditional-formatting/src/models/calculate-unit-v2/__test__/calculate.databar.spec.ts b/packages/sheets-conditional-formatting/src/models/calculate-unit-v2/__test__/calculate.databar.spec.tsindex 43164c3318..7523dcfd8b 100644--- a/packages/sheets-conditional-formatting/src/models/calculate-unit-v2/__test__/calculate.databar.spec.ts+++ b/packages/sheets-conditional-formatting/src/models/calculate-unit-v2/__test__/calculate.databar.spec.ts@@ -14,7 +14,7 @@* limitations under the License.*/-import type { IConditionFormattingRule, IDataBar } from '../../../models/type';+import type { IConditionFormattingRule, IDataBar } from '../../type';import { beforeEach, describe, expect, it } from 'vitest';import { CFRuleType, CFValueType } from '../../../base/const';import { createTestBed } from './test.util';diff --git a/packages/sheets-conditional-formatting/src/models/calculate-unit-v2/__test__/calculate.highlight.spec.ts b/packages/sheets-conditional-formatting/src/models/calculate-unit-v2/__test__/calculate.highlight.spec.tsindex 85c7588da3..3a5bf33f42 100644--- a/packages/sheets-conditional-formatting/src/models/calculate-unit-v2/__test__/calculate.highlight.spec.ts+++ b/packages/sheets-conditional-formatting/src/models/calculate-unit-v2/__test__/calculate.highlight.spec.ts@@ -14,7 +14,7 @@* limitations under the License.*/-import type { IAverageHighlightCell, IConditionFormattingRule, INumberHighlightCell, IRankHighlightCell, ITextHighlightCell } from '../../../models/type';+import type { IAverageHighlightCell, IConditionFormattingRule, INumberHighlightCell, IRankHighlightCell, ITextHighlightCell } from '../../type';import { beforeEach, describe, expect, it } from 'vitest';import { CFNumberOperator, CFRuleType, CFSubRuleType, CFTextOperator } from '../../../base/const';import { createTestBed } from './test.util';diff --git a/packages/sheets-conditional-formatting/src/models/calculate-unit-v2/__test__/test.util.ts b/packages/sheets-conditional-formatting/src/models/calculate-unit-v2/__test__/test.util.tsindex b04fedd5dd..8aa3b9a6e1 100644--- a/packages/sheets-conditional-formatting/src/models/calculate-unit-v2/__test__/test.util.ts+++ b/packages/sheets-conditional-formatting/src/models/calculate-unit-v2/__test__/test.util.ts@@ -22,9 +22,9 @@ import { AddConditionalRuleMutation } from '../../../commands/mutations/add-condimport { DeleteConditionalRuleMutation } from '../../../commands/mutations/delete-conditional-rule.mutation';import { MoveConditionalRuleMutation } from '../../../commands/mutations/move-conditional-rule.mutation';import { SetConditionalRuleMutation } from '../../../commands/mutations/set-conditional-rule.mutation';-import { ConditionalFormattingRuleModel } from '../../../models/conditional-formatting-rule-model';import { ConditionalFormattingFormulaService } from '../../../services/conditional-formatting-formula.service';import { ConditionalFormattingService } from '../../../services/conditional-formatting.service';+import { ConditionalFormattingRuleModel } from '../../conditional-formatting-rule-model';import { ConditionalFormattingViewModel } from '../../conditional-formatting-view-model';const TEST_WORKBOOK_DATA_DEMO: () => IWorkbookData = () => ({diff --git a/packages/sheets-conditional-formatting/src/models/calculate-unit-v2/utils.ts b/packages/sheets-conditional-formatting/src/models/calculate-unit-v2/utils.tsindex 18e0a3454f..1a0a7b8c39 100644--- a/packages/sheets-conditional-formatting/src/models/calculate-unit-v2/utils.ts+++ b/packages/sheets-conditional-formatting/src/models/calculate-unit-v2/utils.ts@@ -15,7 +15,7 @@*/import type { CellValue, ICellData, IObjectMatrixPrimitiveType, IRange, Nullable } from '@univerjs/core';-import type { IConditionFormattingRule, IValueConfig } from '../../models/type';+import type { IConditionFormattingRule, IValueConfig } from '../type';import type { IContext } from './base-calculate-unit';import { BooleanNumber, CellValueType, ColorKit, dayjs, ObjectMatrix, Range } from '@univerjs/core';import { BooleanValue, FormulaResultStatus } from '@univerjs/engine-formula';diff --git a/packages/sheets-conditional-formatting/src/plugin.ts b/packages/sheets-conditional-formatting/src/plugin.tsindex 393b297e41..7d673891f5 100644--- a/packages/sheets-conditional-formatting/src/plugin.ts+++ b/packages/sheets-conditional-formatting/src/plugin.ts@@ -15,7 +15,7 @@*/import type { Dependency } from '@univerjs/core';-import type { IUniverSheetsConditionalFormattingConfig } from './controllers/config.schema';+import type { IUniverSheetsConditionalFormattingConfig } from './config/config';import { DependentOn, ICommandService, IConfigService, Inject, Injector, merge, Plugin, touchDependencies, UniverInstanceType } from '@univerjs/core';import { UniverFormulaEnginePlugin } from '@univerjs/engine-formula';import pkg from '../package.json';@@ -33,7 +33,7 @@ import { SetConditionalRuleMutation } from './commands/mutations/set-conditionalimport {defaultPluginConfig,SHEETS_CONDITIONAL_FORMATTING_PLUGIN_CONFIG_KEY,-} from './controllers/config.schema';+} from './config/config';import { ConditionalFormattingRuleModel } from './models/conditional-formatting-rule-model';import { ConditionalFormattingViewModel } from './models/conditional-formatting-view-model';import { ConditionalFormattingFormulaService } from './services/conditional-formatting-formula.service';diff --git a/packages/sheets-crosshair-highlight/src/commands/operations/operation.spec.ts b/packages/sheets-crosshair-highlight/src/commands/operations/operation.spec.tsindex c258b2491b..cbbe5f1da7 100644--- a/packages/sheets-crosshair-highlight/src/commands/operations/operation.spec.ts+++ b/packages/sheets-crosshair-highlight/src/commands/operations/operation.spec.ts@@ -20,8 +20,8 @@ import { describe, expect, it, vi } from 'vitest';import {CROSSHAIR_HIGHLIGHT_OVERLAY_COMPONENT,CrosshairHighlightMenuItemFactory,-} from '../../controllers/crosshair.menu';-import { menuSchema } from '../../controllers/menu.schema';+} from '../../menu/crosshair.menu';+import { menuSchema } from '../../menu/schema';import {CROSSHAIR_HIGHLIGHT_COLORS,SheetsCrosshairHighlightService,diff --git a/packages/sheets-crosshair-highlight/src/controllers/config.schema.ts b/packages/sheets-crosshair-highlight/src/config/config.tssimilarity index 100%rename from packages/sheets-crosshair-highlight/src/controllers/config.schema.tsrename to packages/sheets-crosshair-highlight/src/config/config.tsdiff --git a/packages/sheets-crosshair-highlight/src/controllers/crosshair.controller.spec.tsx b/packages/sheets-crosshair-highlight/src/controllers/crosshair.controller.spec.tsxindex 7d4c3948cf..7e836b2575 100644--- a/packages/sheets-crosshair-highlight/src/controllers/crosshair.controller.spec.tsx+++ b/packages/sheets-crosshair-highlight/src/controllers/crosshair.controller.spec.tsx@@ -21,9 +21,9 @@ import {SetCrosshairHighlightColorOperation,ToggleCrosshairHighlightOperation,} from '../commands/operations/operation';+import { CROSSHAIR_HIGHLIGHT_OVERLAY_COMPONENT } from '../menu/crosshair.menu';+import { menuSchema } from '../menu/schema';import { SheetsCrosshairHighlightController } from './crosshair.controller';-import { CROSSHAIR_HIGHLIGHT_OVERLAY_COMPONENT } from './crosshair.menu';-import { menuSchema } from './menu.schema';describe('SheetsCrosshairHighlightController', () => {it('should register commands, merge menu and register components', () => {diff --git a/packages/sheets-crosshair-highlight/src/controllers/crosshair.controller.tsx b/packages/sheets-crosshair-highlight/src/controllers/crosshair.controller.tsxindex b50d8d2eb5..e2c1f759eb 100644--- a/packages/sheets-crosshair-highlight/src/controllers/crosshair.controller.tsx+++ b/packages/sheets-crosshair-highlight/src/controllers/crosshair.controller.tsx@@ -23,9 +23,9 @@ import {SetCrosshairHighlightColorOperation,ToggleCrosshairHighlightOperation,} from '../commands/operations/operation';+import { CROSSHAIR_HIGHLIGHT_OVERLAY_COMPONENT } from '../menu/crosshair.menu';+import { menuSchema } from '../menu/schema';import { CrosshairOverlay } from '../views/components/CrosshairHighlight';-import { CROSSHAIR_HIGHLIGHT_OVERLAY_COMPONENT } from './crosshair.menu';-import { menuSchema } from './menu.schema';export class SheetsCrosshairHighlightController extends Disposable {constructor(diff --git a/packages/sheets-crosshair-highlight/src/index.ts b/packages/sheets-crosshair-highlight/src/index.tsindex 2c210c2c8f..d5b16d40fb 100644--- a/packages/sheets-crosshair-highlight/src/index.ts+++ b/packages/sheets-crosshair-highlight/src/index.ts@@ -23,6 +23,6 @@ export {SetCrosshairHighlightColorOperation,ToggleCrosshairHighlightOperation,} from './commands/operations/operation';-export type { IUniverSheetsCrosshairHighlightConfig } from './controllers/config.schema';+export type { IUniverSheetsCrosshairHighlightConfig } from './config/config';export { UniverSheetsCrosshairHighlightPlugin } from './plugin';export { CROSSHAIR_HIGHLIGHT_COLORS, SheetsCrosshairHighlightService } from './services/crosshair.service';diff --git a/packages/sheets-crosshair-highlight/src/controllers/crosshair.menu.ts b/packages/sheets-crosshair-highlight/src/menu/crosshair.menu.tssimilarity index 100%rename from packages/sheets-crosshair-highlight/src/controllers/crosshair.menu.tsrename to packages/sheets-crosshair-highlight/src/menu/crosshair.menu.tsdiff --git a/packages/sheets-crosshair-highlight/src/controllers/menu.schema.ts b/packages/sheets-crosshair-highlight/src/menu/schema.tssimilarity index 100%rename from packages/sheets-crosshair-highlight/src/controllers/menu.schema.tsrename to packages/sheets-crosshair-highlight/src/menu/schema.tsdiff --git a/packages/sheets-crosshair-highlight/src/plugin.ts b/packages/sheets-crosshair-highlight/src/plugin.tsindex 8c4121b095..794af59443 100644--- a/packages/sheets-crosshair-highlight/src/plugin.ts+++ b/packages/sheets-crosshair-highlight/src/plugin.ts@@ -15,11 +15,11 @@*/import type { Dependency } from '@univerjs/core';-import type { IUniverSheetsCrosshairHighlightConfig } from './controllers/config.schema';+import type { IUniverSheetsCrosshairHighlightConfig } from './config/config';import { IConfigService, Inject, Injector, merge, Plugin, UniverInstanceType } from '@univerjs/core';import { IRenderManagerService } from '@univerjs/engine-render';import pkg from '../package.json';-import { defaultPluginConfig, SHEETS_CROSSHAIR_HIGHLIGHT_PLUGIN_CONFIG_KEY } from './controllers/config.schema';+import { defaultPluginConfig, SHEETS_CROSSHAIR_HIGHLIGHT_PLUGIN_CONFIG_KEY } from './config/config';import { SheetsCrosshairHighlightController } from './controllers/crosshair.controller';import { SheetsCrosshairHighlightService } from './services/crosshair.service';import { SheetCrosshairHighlightRenderController } from './views/widgets/crosshair-highlight.render-controller';diff --git a/packages/sheets-data-validation-ui/src/controllers/config.schema.ts b/packages/sheets-data-validation-ui/src/config/config.tssimilarity index 100%rename from packages/sheets-data-validation-ui/src/controllers/config.schema.tsrename to packages/sheets-data-validation-ui/src/config/config.tsdiff --git a/packages/sheets-data-validation-ui/src/controllers/dv-render.controller.ts b/packages/sheets-data-validation-ui/src/controllers/dv-render.controller.tsindex d2d84c058b..76055b8af1 100644--- a/packages/sheets-data-validation-ui/src/controllers/dv-render.controller.ts+++ b/packages/sheets-data-validation-ui/src/controllers/dv-render.controller.ts@@ -23,8 +23,8 @@ import { DataValidationCacheService, getCellValueOrigin, SheetDataValidationModeimport { AutoHeightController, IEditorBridgeService, SheetSkeletonManagerService } from '@univerjs/sheets-ui';import { IMenuManagerService } from '@univerjs/ui';import { bufferTime, filter } from 'rxjs';+import { menuSchema } from '../menu/schema';import { DataValidationDropdownManagerService } from '../services/dropdown-manager.service';-import { menuSchema } from './menu.schema';const INVALID_MARK = {tr: {diff --git a/packages/sheets-data-validation-ui/src/index.ts b/packages/sheets-data-validation-ui/src/index.tsindex 26b6bc9664..cbad9ddbbd 100644--- a/packages/sheets-data-validation-ui/src/index.ts+++ b/packages/sheets-data-validation-ui/src/index.ts@@ -16,7 +16,7 @@import './global.css';-export type { IUniverSheetsDataValidationUIConfig } from './controllers/config.schema';+export type { IUniverSheetsDataValidationUIConfig } from './config/config';export { UniverSheetsDataValidationMobileUIPlugin } from './mobile-plugin';export { UniverSheetsDataValidationUIPlugin } from './plugin';export { BaseSheetDataValidatorView } from './views/validator-views/sheet-validator-view';diff --git a/packages/sheets-data-validation-ui/src/controllers/dv.menu.ts b/packages/sheets-data-validation-ui/src/menu/dv.menu.tssimilarity index 100%rename from packages/sheets-data-validation-ui/src/controllers/dv.menu.tsrename to packages/sheets-data-validation-ui/src/menu/dv.menu.tsdiff --git a/packages/sheets-data-validation-ui/src/controllers/menu.schema.ts b/packages/sheets-data-validation-ui/src/menu/schema.tssimilarity index 100%rename from packages/sheets-data-validation-ui/src/controllers/menu.schema.tsrename to packages/sheets-data-validation-ui/src/menu/schema.tsdiff --git a/packages/sheets-data-validation-ui/src/mobile-plugin.ts b/packages/sheets-data-validation-ui/src/mobile-plugin.tsindex d03419abb2..216bd69f1d 100644--- a/packages/sheets-data-validation-ui/src/mobile-plugin.ts+++ b/packages/sheets-data-validation-ui/src/mobile-plugin.ts@@ -15,7 +15,7 @@*/import type { Dependency, Workbook } from '@univerjs/core';-import type { IUniverSheetsDataValidationUIConfig } from './controllers/config.schema';+import type { IUniverSheetsDataValidationUIConfig } from './config/config';import { ICommandService, IConfigService, Inject, Injector, merge, Plugin, UniverInstanceType } from '@univerjs/core';import { IRenderManagerService } from '@univerjs/engine-render';import pkg from '../package.json';@@ -27,7 +27,7 @@ import {ShowDataValidationDropdown,ToggleValidationPanelOperation,} from './commands/operations/data-validation.operation';-import { defaultPluginConfig, SHEETS_DATA_VALIDATION_UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';+import { defaultPluginConfig, SHEETS_DATA_VALIDATION_UI_PLUGIN_CONFIG_KEY } from './config/config';import { DataValidationAlertController } from './controllers/dv-alert.controller';import { DataValidationAutoFillController } from './controllers/dv-auto-fill.controller';import { DataValidationCopyPasteController } from './controllers/dv-copy-paste.controller';diff --git a/packages/sheets-data-validation-ui/src/plugin.ts b/packages/sheets-data-validation-ui/src/plugin.tsindex 004361b930..3dc3ed1545 100644--- a/packages/sheets-data-validation-ui/src/plugin.ts+++ b/packages/sheets-data-validation-ui/src/plugin.ts@@ -15,7 +15,7 @@*/import type { Dependency, Workbook } from '@univerjs/core';-import type { IUniverSheetsDataValidationUIConfig } from './controllers/config.schema';+import type { IUniverSheetsDataValidationUIConfig } from './config/config';import { DependentOn, ICommandService, IConfigService, Inject, Injector, merge, Plugin, UniverInstanceType } from '@univerjs/core';import { IRenderManagerService } from '@univerjs/engine-render';import { UniverSheetsDataValidationPlugin } from '@univerjs/sheets-data-validation';@@ -28,7 +28,7 @@ import {ShowDataValidationDropdown,ToggleValidationPanelOperation,} from './commands/operations/data-validation.operation';-import { defaultPluginConfig, SHEETS_DATA_VALIDATION_UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';+import { defaultPluginConfig, SHEETS_DATA_VALIDATION_UI_PLUGIN_CONFIG_KEY } from './config/config';import { DataValidationAlertController } from './controllers/dv-alert.controller';import { DataValidationAutoFillController } from './controllers/dv-auto-fill.controller';import { DataValidationCopyPasteController } from './controllers/dv-copy-paste.controller';diff --git a/packages/sheets-data-validation-ui/src/services/dropdown-manager.service.ts b/packages/sheets-data-validation-ui/src/services/dropdown-manager.service.tsindex d7f0841d10..c5d42b9265 100644--- a/packages/sheets-data-validation-ui/src/services/dropdown-manager.service.ts+++ b/packages/sheets-data-validation-ui/src/services/dropdown-manager.service.ts@@ -18,7 +18,7 @@ import type { CellValue, IDisposable, Nullable, Workbook } from '@univerjs/core'import type { ISetRangeValuesCommandParams, ISheetLocation } from '@univerjs/sheets';import type { ListValidator } from '@univerjs/sheets-data-validation';import type { IDropdownParam, IEditorBridgeServiceVisibleParam } from '@univerjs/sheets-ui';-import type { IUniverSheetsDataValidationUIConfig } from '../controllers/config.schema';+import type { IUniverSheetsDataValidationUIConfig } from '../config/config';import { CellValueType, DataValidationErrorStyle, DataValidationRenderMode, dayjs, Disposable, DisposableCollection, ICommandService, IConfigService, Inject, Injector, IUniverInstanceService, numfmt, UniverInstanceType } from '@univerjs/core';import { DataValidatorDropdownType, DataValidatorRegistryService } from '@univerjs/data-validation';import { DeviceInputEventType } from '@univerjs/engine-render';@@ -29,8 +29,8 @@ import { IEditorBridgeService, ISheetCellDropdownManagerService, SetCellEditVisiimport { IZenZoneService, KeyCode } from '@univerjs/ui';import { Subject } from 'rxjs';import { OpenValidationPanelOperation } from '../commands/operations/data-validation.operation';+import { SHEETS_DATA_VALIDATION_UI_PLUGIN_CONFIG_KEY } from '../config/config';import { DROP_DOWN_DEFAULT_COLOR } from '../const';-import { SHEETS_DATA_VALIDATION_UI_PLUGIN_CONFIG_KEY } from '../controllers/config.schema';import { DataValidationRejectInputController } from '../controllers/dv-reject-input.controller';export interface IDataValidationDropdownParam {diff --git a/packages/sheets-data-validation/src/controllers/config.schema.ts b/packages/sheets-data-validation/src/config/config.tssimilarity index 100%rename from packages/sheets-data-validation/src/controllers/config.schema.tsrename to packages/sheets-data-validation/src/config/config.tsdiff --git a/packages/sheets-data-validation/src/index.ts b/packages/sheets-data-validation/src/index.tsindex a56aee0033..08ea4b10f9 100644--- a/packages/sheets-data-validation/src/index.ts+++ b/packages/sheets-data-validation/src/index.ts@@ -32,7 +32,7 @@ export {UpdateSheetDataValidationSettingCommand,} from './commands/commands/data-validation.command';export { DATA_VALIDATION_PLUGIN_NAME } from './common/const';-export type { IUniverSheetsDataValidationConfig } from './controllers/config.schema';+export type { IUniverSheetsDataValidationConfig } from './config/config';export { DataValidationFormulaController } from './controllers/dv-formula.controller';export { type IValidStatusChange, SheetDataValidationModel } from './models/sheet-data-validation-model';export { UniverSheetsDataValidationPlugin } from './plugin';diff --git a/packages/sheets-data-validation/src/plugin.ts b/packages/sheets-data-validation/src/plugin.tsindex 1d44829e3c..13e1e26cdf 100644--- a/packages/sheets-data-validation/src/plugin.ts+++ b/packages/sheets-data-validation/src/plugin.ts@@ -15,7 +15,7 @@*/import type { Dependency } from '@univerjs/core';-import type { IUniverSheetsDataValidationConfig } from './controllers/config.schema';+import type { IUniverSheetsDataValidationConfig } from './config/config';import {DependentOn,ICommandService,@@ -39,7 +39,7 @@ import {UpdateSheetDataValidationSettingCommand,} from './commands/commands/data-validation.command';import { DATA_VALIDATION_PLUGIN_NAME } from './common/const';-import { defaultPluginConfig, SHEETS_DATA_VALIDATION_PLUGIN_CONFIG_KEY } from './controllers/config.schema';+import { defaultPluginConfig, SHEETS_DATA_VALIDATION_PLUGIN_CONFIG_KEY } from './config/config';import { DataValidationFormulaRefRangeController } from './controllers/dv-formula-ref-range.controller';import { DataValidationFormulaController } from './controllers/dv-formula.controller';import { DataValidationRefRangeController } from './controllers/dv-ref-range.controller';diff --git a/packages/sheets-drawing-ui/src/controllers/config.schema.ts b/packages/sheets-drawing-ui/src/config/config.tssimilarity index 100%rename from packages/sheets-drawing-ui/src/controllers/config.schema.tsrename to packages/sheets-drawing-ui/src/config/config.tsdiff --git a/packages/sheets-drawing-ui/src/controllers/sheet-drawing.controller.ts b/packages/sheets-drawing-ui/src/controllers/sheet-drawing.controller.tsindex 1d932e1721..833b5aca38 100644--- a/packages/sheets-drawing-ui/src/controllers/sheet-drawing.controller.ts+++ b/packages/sheets-drawing-ui/src/controllers/sheet-drawing.controller.ts@@ -32,10 +32,10 @@ import { UngroupSheetDrawingCommand } from '../commands/commands/ungroup-sheet-dimport { ClearSheetDrawingTransformerOperation } from '../commands/operations/clear-drawing-transformer.operation';import { EditSheetDrawingOperation } from '../commands/operations/edit-sheet-drawing.operation';import { SidebarSheetDrawingOperation } from '../commands/operations/open-drawing-panel.operation';+import { menuSchema } from '../menu/schema';import { BATCH_SAVE_IMAGES_DIALOG_ID, BatchSaveImagesDialog } from '../views/batch-save-images';import { COMPONENT_SHEET_DRAWING_PANEL } from '../views/sheet-image-panel/component-name';import { SheetDrawingPanel } from '../views/sheet-image-panel/SheetDrawingPanel';-import { menuSchema } from './menu.schema';import { DeleteDrawingsShortcutItem, MoveDrawingDownShortcutItem, MoveDrawingLeftShortcutItem, MoveDrawingRightShortcutItem, MoveDrawingUpShortcutItem } from './shortcuts/drawing.shortcut';export class SheetDrawingUIController extends Disposable {diff --git a/packages/sheets-drawing-ui/src/index.ts b/packages/sheets-drawing-ui/src/index.tsindex c80f3fff0f..84c50277e6 100644--- a/packages/sheets-drawing-ui/src/index.ts+++ b/packages/sheets-drawing-ui/src/index.ts@@ -31,10 +31,10 @@ export { UngroupSheetDrawingCommand } from './commands/commands/ungroup-sheet-drexport { ClearSheetDrawingTransformerOperation } from './commands/operations/clear-drawing-transformer.operation';export { EditSheetDrawingOperation } from './commands/operations/edit-sheet-drawing.operation';export { SidebarSheetDrawingOperation } from './commands/operations/open-drawing-panel.operation';-export type { IUniverSheetsDrawingUIConfig } from './controllers/config.schema';+export type { IUniverSheetsDrawingUIConfig } from './config/config';export { SheetDrawingUpdateController } from './controllers/sheet-drawing-update.controller';+export { SHEETS_IMAGE_MENU_ID } from './menu/image.menu';export { UniverSheetsDrawingUIPlugin } from './plugin';export { BatchSaveImagesService, FileNamePart, type IBatchSaveImagesConfig, IBatchSaveImagesService, type ICellImageInfo } from './services/batch-save-images.service';export { calcSheetFloatDomPosition, type ICanvasFloatDom, type ICanvasFloatDomInfo, type IDOMAnchor, SHEET_FLOAT_DOM_PREFIX, SheetCanvasFloatDomManagerService } from './services/canvas-float-dom-manager.service';-export { SHEETS_IMAGE_MENU_ID } from './views/menu/image.menu';export { SheetDrawingAnchor } from './views/sheet-image-panel/SheetDrawingAnchor';diff --git a/packages/sheets-drawing-ui/src/controllers/drawing-popup-menu.controller.ts b/packages/sheets-drawing-ui/src/menu/drawing-popup-menu.controller.tssimilarity index 100%rename from packages/sheets-drawing-ui/src/controllers/drawing-popup-menu.controller.tsrename to packages/sheets-drawing-ui/src/menu/drawing-popup-menu.controller.tsdiff --git a/packages/sheets-drawing-ui/src/views/menu/image.menu.ts b/packages/sheets-drawing-ui/src/menu/image.menu.tssimilarity index 97%rename from packages/sheets-drawing-ui/src/views/menu/image.menu.tsrename to packages/sheets-drawing-ui/src/menu/image.menu.tsindex 0941f089cc..70babe3bb6 100644--- a/packages/sheets-drawing-ui/src/views/menu/image.menu.ts+++ b/packages/sheets-drawing-ui/src/menu/image.menu.ts@@ -20,7 +20,7 @@ import { UniverInstanceType } from '@univerjs/core';import { RangeProtectionPermissionEditPoint, WorkbookEditablePermission, WorksheetEditPermission } from '@univerjs/sheets';import { getCurrentRangeDisable$ } from '@univerjs/sheets-ui';import { getMenuHiddenObservable, MenuItemType } from '@univerjs/ui';-import { InsertCellImageCommand, InsertFloatImageCommand } from '../../commands/commands/insert-image.command';+import { InsertCellImageCommand, InsertFloatImageCommand } from '../commands/commands/insert-image.command';export const SHEETS_IMAGE_MENU_ID = 'sheet.menu.image';diff --git a/packages/sheets-drawing-ui/src/views/menu/save-images.menu.ts b/packages/sheets-drawing-ui/src/menu/save-images.menu.tssimilarity index 97%rename from packages/sheets-drawing-ui/src/views/menu/save-images.menu.tsrename to packages/sheets-drawing-ui/src/menu/save-images.menu.tsindex 41a56cc9be..f4d02d37c6 100644--- a/packages/sheets-drawing-ui/src/views/menu/save-images.menu.ts+++ b/packages/sheets-drawing-ui/src/menu/save-images.menu.ts@@ -20,7 +20,7 @@ import { IUniverInstanceService, UniverInstanceType } from '@univerjs/core';import { SheetsSelectionsService } from '@univerjs/sheets';import { getMenuHiddenObservable, MenuItemType } from '@univerjs/ui';import { combineLatest, map, of, switchMap } from 'rxjs';-import { SaveCellImagesCommand } from '../../commands/commands/save-cell-images.command';+import { SaveCellImagesCommand } from '../commands/commands/save-cell-images.command';export const SAVE_CELL_IMAGES_MENU_ID = 'sheet.menu.save-cell-images';diff --git a/packages/sheets-drawing-ui/src/controllers/menu.schema.ts b/packages/sheets-drawing-ui/src/menu/schema.tssimilarity index 93%rename from packages/sheets-drawing-ui/src/controllers/menu.schema.tsrename to packages/sheets-drawing-ui/src/menu/schema.tsindex d2583436d6..ed7137bbad 100644--- a/packages/sheets-drawing-ui/src/controllers/menu.schema.ts+++ b/packages/sheets-drawing-ui/src/menu/schema.ts@@ -18,8 +18,8 @@ import type { MenuSchemaType } from '@univerjs/ui';import { ContextMenuGroup, ContextMenuPosition, RibbonInsertGroup } from '@univerjs/ui';import { InsertCellImageCommand, InsertFloatImageCommand } from '../commands/commands/insert-image.command';import { SaveCellImagesCommand } from '../commands/commands/save-cell-images.command';-import { ImageMenuFactory, SHEETS_IMAGE_MENU_ID, UploadCellImageMenuFactory, UploadFloatImageMenuFactory } from '../views/menu/image.menu';-import { SaveCellImagesMenuFactory } from '../views/menu/save-images.menu';+import { ImageMenuFactory, SHEETS_IMAGE_MENU_ID, UploadCellImageMenuFactory, UploadFloatImageMenuFactory } from './image.menu';+import { SaveCellImagesMenuFactory } from './save-images.menu';export const menuSchema: MenuSchemaType = {[RibbonInsertGroup.MEDIA]: {diff --git a/packages/sheets-drawing-ui/src/plugin.ts b/packages/sheets-drawing-ui/src/plugin.tsindex ab2f2f8ef5..cd266e98dd 100644--- a/packages/sheets-drawing-ui/src/plugin.ts+++ b/packages/sheets-drawing-ui/src/plugin.ts@@ -15,7 +15,7 @@*/import type { Dependency } from '@univerjs/core';-import type { IUniverSheetsDrawingUIConfig } from './controllers/config.schema';+import type { IUniverSheetsDrawingUIConfig } from './config/config';import {DependentOn,IConfigService,@@ -33,8 +33,7 @@ import { UniverDrawingUIPlugin } from '@univerjs/drawing-ui';import { IRenderManagerService } from '@univerjs/engine-render';import { UniverSheetsDrawingPlugin } from '@univerjs/sheets-drawing';import pkg from '../package.json';-import { defaultPluginConfig, SHEETS_DRAWING_UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';-import { DrawingPopupMenuController } from './controllers/drawing-popup-menu.controller';+import { defaultPluginConfig, SHEETS_DRAWING_UI_PLUGIN_CONFIG_KEY } from './config/config';import { SheetCellImageHoverRenderController } from './controllers/render-controllers/sheet-celll-image-hover.render-controller';import { SheetsDrawingRenderController } from './controllers/render-controllers/sheet-drawing.render-controller';import { SheetCellImageAutofillController } from './controllers/sheet-cell-image-autofill.controller';@@ -46,6 +45,7 @@ import { SheetDrawingPrintingController } from './controllers/sheet-drawing-prinimport { SheetDrawingTransformAffectedController } from './controllers/sheet-drawing-transform-affected.controller';import { SheetDrawingUpdateController } from './controllers/sheet-drawing-update.controller';import { SheetDrawingUIController } from './controllers/sheet-drawing.controller';+import { DrawingPopupMenuController } from './menu/drawing-popup-menu.controller';import { BatchSaveImagesService, IBatchSaveImagesService } from './services/batch-save-images.service';import { SheetCanvasFloatDomManagerService } from './services/canvas-float-dom-manager.service';diff --git a/packages/sheets-drawing/src/controllers/config.schema.ts b/packages/sheets-drawing/src/config/config.tssimilarity index 100%rename from packages/sheets-drawing/src/controllers/config.schema.tsrename to packages/sheets-drawing/src/config/config.tsdiff --git a/packages/sheets-drawing/src/index.ts b/packages/sheets-drawing/src/index.tsindex f825fd2a95..7ade69e06f 100644--- a/packages/sheets-drawing/src/index.ts+++ b/packages/sheets-drawing/src/index.ts@@ -15,7 +15,7 @@*/export { DrawingApplyType, type ISetDrawingApplyMutationParams, SetDrawingApplyMutation } from './commands/mutations/set-drawing-apply.mutation';-export type { IUniverSheetsDrawingConfig } from './controllers/config.schema';+export type { IUniverSheetsDrawingConfig } from './config/config';export { SHEET_DRAWING_PLUGIN } from './controllers/sheet-drawing.controller';export { UniverSheetsDrawingPlugin } from './plugin';export { ISheetDrawingService, SheetDrawingAnchorType } from './services/sheet-drawing.service';diff --git a/packages/sheets-drawing/src/plugin.ts b/packages/sheets-drawing/src/plugin.tsindex ea8f50bfb1..d4307a9063 100644--- a/packages/sheets-drawing/src/plugin.ts+++ b/packages/sheets-drawing/src/plugin.ts@@ -15,11 +15,11 @@*/import type { Dependency } from '@univerjs/core';-import type { IUniverSheetsDrawingConfig } from './controllers/config.schema';+import type { IUniverSheetsDrawingConfig } from './config/config';import { DependentOn, IConfigService, Inject, Injector, merge, Plugin, UniverInstanceType } from '@univerjs/core';import { UniverDrawingPlugin } from '@univerjs/drawing';import pkg from '../package.json';-import { defaultPluginConfig, SHEETS_DRAWING_PLUGIN_CONFIG_KEY } from './controllers/config.schema';+import { defaultPluginConfig, SHEETS_DRAWING_PLUGIN_CONFIG_KEY } from './config/config';import { SHEET_DRAWING_PLUGIN, SheetsDrawingLoadController } from './controllers/sheet-drawing.controller';import { ISheetDrawingService, SheetDrawingService } from './services/sheet-drawing.service';diff --git a/packages/sheets-filter-ui/src/controllers/config.schema.ts b/packages/sheets-filter-ui/src/config/config.tssimilarity index 100%rename from packages/sheets-filter-ui/src/controllers/config.schema.tsrename to packages/sheets-filter-ui/src/config/config.tsdiff --git a/packages/sheets-filter-ui/src/controllers/sheets-filter-ui-desktop.controller.ts b/packages/sheets-filter-ui/src/controllers/sheets-filter-ui-desktop.controller.tsindex e67a3eb52c..724e936ff1 100644--- a/packages/sheets-filter-ui/src/controllers/sheets-filter-ui-desktop.controller.ts+++ b/packages/sheets-filter-ui/src/controllers/sheets-filter-ui-desktop.controller.ts@@ -24,9 +24,9 @@ import { SheetCanvasPopManagerService, SheetsRenderService } from '@univerjs/sheimport { ComponentManager, IMenuManagerService, IMessageService, IShortcutService } from '@univerjs/ui';import { distinctUntilChanged } from 'rxjs';import { ChangeFilterByOperation, CloseFilterPanelOperation, FILTER_PANEL_OPENED_KEY, OpenFilterPanelOperation } from '../commands/operations/sheets-filter.operation';+import { menuSchema } from '../menu/schema';import { SheetsFilterPanelService } from '../services/sheets-filter-panel.service';import { FilterPanel } from '../views/components/SheetsFilterPanel';-import { menuSchema } from './menu.schema';import { SheetsFilterUIMobileController } from './sheets-filter-ui-mobile.controller';import { SmartToggleFilterShortcut } from './sheets-filter.shortcut';diff --git a/packages/sheets-filter-ui/src/index.ts b/packages/sheets-filter-ui/src/index.tsindex fe69605141..a5eb6537b6 100644--- a/packages/sheets-filter-ui/src/index.ts+++ b/packages/sheets-filter-ui/src/index.ts@@ -18,7 +18,7 @@ import './global.css';export { ChangeFilterByOperation, CloseFilterPanelOperation, OpenFilterPanelOperation } from './commands/operations/sheets-filter.operation';export type { IOpenFilterPanelOperationParams } from './commands/operations/sheets-filter.operation';-export type { IUniverSheetsFilterUIConfig } from './controllers/config.schema';+export type { IUniverSheetsFilterUIConfig } from './config/config';export { UniverSheetsFilterMobileUIPlugin } from './mobile-plugin';export { UniverSheetsFilterUIPlugin } from './plugin';export { UniverSheetsFilterUIWorkerPlugin } from './worker/plugin';diff --git a/packages/sheets-filter-ui/src/controllers/__tests__/sheets-filter.menu.spec.ts b/packages/sheets-filter-ui/src/menu/__tests__/sheets-filter.menu.spec.tssimilarity index 100%rename from packages/sheets-filter-ui/src/controllers/__tests__/sheets-filter.menu.spec.tsrename to packages/sheets-filter-ui/src/menu/__tests__/sheets-filter.menu.spec.tsdiff --git a/packages/sheets-filter-ui/src/controllers/menu.schema.ts b/packages/sheets-filter-ui/src/menu/schema.tssimilarity index 100%rename from packages/sheets-filter-ui/src/controllers/menu.schema.tsrename to packages/sheets-filter-ui/src/menu/schema.tsdiff --git a/packages/sheets-filter-ui/src/controllers/sheets-filter.menu.ts b/packages/sheets-filter-ui/src/menu/sheets-filter.menu.tssimilarity index 100%rename from packages/sheets-filter-ui/src/controllers/sheets-filter.menu.tsrename to packages/sheets-filter-ui/src/menu/sheets-filter.menu.tsdiff --git a/packages/sheets-filter-ui/src/mobile-plugin.ts b/packages/sheets-filter-ui/src/mobile-plugin.tsindex 726239a4e0..78fa319b48 100644--- a/packages/sheets-filter-ui/src/mobile-plugin.ts+++ b/packages/sheets-filter-ui/src/mobile-plugin.ts@@ -15,11 +15,11 @@*/import type { Dependency } from '@univerjs/core';-import type { IUniverSheetsFilterUIConfig } from './controllers/config.schema';+import type { IUniverSheetsFilterUIConfig } from './config/config';import { DependentOn, IConfigService, Inject, Injector, merge, Plugin, UniverInstanceType } from '@univerjs/core';import { UniverSheetsFilterPlugin } from '@univerjs/sheets-filter';import pkg from '../package.json';-import { defaultPluginConfig, SHEETS_FILTER_UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';+import { defaultPluginConfig, SHEETS_FILTER_UI_PLUGIN_CONFIG_KEY } from './config/config';import { SheetsFilterPermissionController } from './controllers/sheets-filter-permission.controller';import { SheetsFilterUIMobileController } from './controllers/sheets-filter-ui-mobile.controller';diff --git a/packages/sheets-filter-ui/src/plugin.ts b/packages/sheets-filter-ui/src/plugin.tsindex aab4290cec..394bf7f534 100644--- a/packages/sheets-filter-ui/src/plugin.ts+++ b/packages/sheets-filter-ui/src/plugin.ts@@ -14,7 +14,7 @@* limitations under the License.*/-import type { IUniverSheetsFilterUIConfig } from './controllers/config.schema';+import type { IUniverSheetsFilterUIConfig } from './config/config';import {DependentOn,IConfigService,@@ -30,7 +30,7 @@ import {import { IRPCChannelService, toModule } from '@univerjs/rpc';import { UniverSheetsFilterPlugin } from '@univerjs/sheets-filter';import pkg from '../package.json';-import { defaultPluginConfig, SHEETS_FILTER_UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';+import { defaultPluginConfig, SHEETS_FILTER_UI_PLUGIN_CONFIG_KEY } from './config/config';import { SheetsFilterPermissionController } from './controllers/sheets-filter-permission.controller';import { SheetsFilterUIDesktopController } from './controllers/sheets-filter-ui-desktop.controller';import { SheetsFilterPanelService } from './services/sheets-filter-panel.service';diff --git a/packages/sheets-filter/src/controllers/config.schema.ts b/packages/sheets-filter/src/config/config.tssimilarity index 100%rename from packages/sheets-filter/src/controllers/config.schema.tsrename to packages/sheets-filter/src/config/config.tsdiff --git a/packages/sheets-filter/src/controllers/sheets-filter-sync.controller.ts b/packages/sheets-filter/src/controllers/sheets-filter-sync.controller.tsindex 2f40f10c6d..d41edd3fdf 100644--- a/packages/sheets-filter/src/controllers/sheets-filter-sync.controller.ts+++ b/packages/sheets-filter/src/controllers/sheets-filter-sync.controller.ts@@ -15,12 +15,12 @@*/import type { IInsertColMutationParams, IMoveColumnsMutationParams, IRemoveColMutationParams } from '@univerjs/sheets';-import type { IUniverSheetsFilterConfig } from './config.schema';+import type { IUniverSheetsFilterConfig } from '../config/config';import { Disposable, DisposableCollection, ICommandService, IConfigService, Inject, sequenceExecute } from '@univerjs/core';import { InsertColMutation, MoveColsMutation, RemoveColMutation } from '@univerjs/sheets';import { BehaviorSubject } from 'rxjs';import { ReCalcSheetsFilterMutation, SetSheetsFilterCriteriaMutation } from '../commands/mutations/sheets-filter.mutation';-import { SHEETS_FILTER_PLUGIN_CONFIG_KEY } from './config.schema';+import { SHEETS_FILTER_PLUGIN_CONFIG_KEY } from '../config/config';import { SheetsFilterController } from './sheets-filter.controller';const sheetsFilterOnlyLocalMutationIds = [diff --git a/packages/sheets-filter/src/index.ts b/packages/sheets-filter/src/index.tsindex c86e17d847..133917f9a5 100644--- a/packages/sheets-filter/src/index.ts+++ b/packages/sheets-filter/src/index.ts@@ -33,7 +33,7 @@ export {SetSheetsFilterRangeMutation,} from './commands/mutations/sheets-filter.mutation';export { FILTER_MUTATIONS } from './common/const';-export type { IUniverSheetsFilterConfig } from './controllers/config.schema';+export type { IUniverSheetsFilterConfig } from './config/config';export { SheetsFilterSyncController } from './controllers/sheets-filter-sync.controller';export {equals,diff --git a/packages/sheets-filter/src/plugin.ts b/packages/sheets-filter/src/plugin.tsindex 518508897c..839968dae9 100644--- a/packages/sheets-filter/src/plugin.ts+++ b/packages/sheets-filter/src/plugin.ts@@ -15,10 +15,10 @@*/import type { Dependency } from '@univerjs/core';-import type { IUniverSheetsFilterConfig } from './controllers/config.schema';+import type { IUniverSheetsFilterConfig } from './config/config';import { IConfigService, Inject, Injector, merge, Plugin, touchDependencies, UniverInstanceType } from '@univerjs/core';import pkg from '../package.json';-import { defaultPluginConfig, SHEETS_FILTER_PLUGIN_CONFIG_KEY } from './controllers/config.schema';+import { defaultPluginConfig, SHEETS_FILTER_PLUGIN_CONFIG_KEY } from './config/config';import { SheetsFilterSyncController } from './controllers/sheets-filter-sync.controller';import { SheetsFilterController } from './controllers/sheets-filter.controller';import { SheetsFilterFormulaService } from './services/sheet-filter-formula.service';diff --git a/packages/sheets-find-replace/src/controllers/config.schema.ts b/packages/sheets-find-replace/src/config/config.tssimilarity index 100%rename from packages/sheets-find-replace/src/controllers/config.schema.tsrename to packages/sheets-find-replace/src/config/config.tsdiff --git a/packages/sheets-find-replace/src/index.ts b/packages/sheets-find-replace/src/index.tsindex 0c7adffeb1..678b6a5a45 100644--- a/packages/sheets-find-replace/src/index.ts+++ b/packages/sheets-find-replace/src/index.ts@@ -15,6 +15,6 @@*/export { SheetReplaceCommand } from './commands/commands/sheet-replace.command';-export type { IUniverSheetsFindReplaceConfig } from './controllers/config.schema';+export type { IUniverSheetsFindReplaceConfig } from './config/config';export { SheetsFindReplaceController } from './controllers/sheet-find-replace.controller';export { UniverSheetsFindReplacePlugin } from './plugin';diff --git a/packages/sheets-find-replace/src/plugin.ts b/packages/sheets-find-replace/src/plugin.tsindex 7846a12d9c..79ca6ece3f 100644--- a/packages/sheets-find-replace/src/plugin.ts+++ b/packages/sheets-find-replace/src/plugin.ts@@ -15,12 +15,12 @@*/import type { Dependency } from '@univerjs/core';-import type { IUniverSheetsFindReplaceConfig } from './controllers/config.schema';+import type { IUniverSheetsFindReplaceConfig } from './config/config';import { DependentOn, IConfigService, Inject, Injector, merge, Plugin, UniverInstanceType } from '@univerjs/core';import { UniverFindReplacePlugin } from '@univerjs/find-replace';import { UniverSheetsPlugin } from '@univerjs/sheets';import pkg from '../package.json';-import { defaultPluginConfig, SHEETS_FIND_REPLACE_PLUGIN_CONFIG_KEY } from './controllers/config.schema';+import { defaultPluginConfig, SHEETS_FIND_REPLACE_PLUGIN_CONFIG_KEY } from './config/config';import { SheetsFindReplaceController } from './controllers/sheet-find-replace.controller';@DependentOn(UniverSheetsPlugin, UniverSheetsPlugin, UniverFindReplacePlugin)diff --git a/packages/sheets-formula-ui/src/controllers/config.schema.ts b/packages/sheets-formula-ui/src/config/config.tssimilarity index 100%rename from packages/sheets-formula-ui/src/controllers/config.schema.tsrename to packages/sheets-formula-ui/src/config/config.tsdiff --git a/packages/sheets-formula-ui/src/controllers/formula-ui.controller.ts b/packages/sheets-formula-ui/src/controllers/formula-ui.controller.tsindex d164ac3871..a111b83e0d 100644--- a/packages/sheets-formula-ui/src/controllers/formula-ui.controller.ts+++ b/packages/sheets-formula-ui/src/controllers/formula-ui.controller.ts@@ -27,11 +27,11 @@ import { InsertFunctionOperation } from '../commands/operations/insert-function.import { MoreFunctionsOperation } from '../commands/operations/more-functions.operation';import { ReferenceAbsoluteOperation } from '../commands/operations/reference-absolute.operation';import { SearchFunctionOperation } from '../commands/operations/search-function.operation';+import { menuSchema } from '../menu/schema';import { FormulaProgressBar } from '../views/formula-progress/FormulaProgress';import { MORE_FUNCTIONS_COMPONENT } from '../views/more-functions/interface';import { MoreFunctions } from '../views/more-functions/MoreFunctions';import { FormulaEditorShowController } from './formula-editor-show.controller';-import { menuSchema } from './menu.schema';import {ChangeRefToAbsoluteShortcut,promptSelectionShortcutItem,diff --git a/packages/sheets-formula-ui/src/index.ts b/packages/sheets-formula-ui/src/index.tsindex 2343bd3ed1..8eec8b3e8f 100644--- a/packages/sheets-formula-ui/src/index.ts+++ b/packages/sheets-formula-ui/src/index.ts@@ -23,7 +23,7 @@ export { InsertFunctionOperation } from './commands/operations/insert-function.oexport { MoreFunctionsOperation } from './commands/operations/more-functions.operation';export { ReferenceAbsoluteOperation } from './commands/operations/reference-absolute.operation';export { SearchFunctionOperation } from './commands/operations/search-function.operation';-export type { IUniverSheetsFormulaUIConfig } from './controllers/config.schema';+export type { IUniverSheetsFormulaUIConfig } from './config/config';export { FormulaReorderController } from './controllers/formula-reorder.controller';export { UniverSheetsFormulaUIPlugin } from './plugin';export { FORMULA_PROMPT_ACTIVATED } from './services/prompt.service';diff --git a/packages/sheets-formula-ui/src/controllers/menu.ts b/packages/sheets-formula-ui/src/menu/menu.tssimilarity index 100%rename from packages/sheets-formula-ui/src/controllers/menu.tsrename to packages/sheets-formula-ui/src/menu/menu.tsdiff --git a/packages/sheets-formula-ui/src/controllers/menu.schema.ts b/packages/sheets-formula-ui/src/menu/schema.tssimilarity index 100%rename from packages/sheets-formula-ui/src/controllers/menu.schema.tsrename to packages/sheets-formula-ui/src/menu/schema.tsdiff --git a/packages/sheets-formula-ui/src/plugin.ts b/packages/sheets-formula-ui/src/plugin.tsindex e47a5d1b30..38fdc3c99d 100644--- a/packages/sheets-formula-ui/src/plugin.ts+++ b/packages/sheets-formula-ui/src/plugin.ts@@ -15,7 +15,7 @@*/import type { Dependency } from '@univerjs/core';-import type { IUniverSheetsFormulaUIConfig } from './controllers/config.schema';+import type { IUniverSheetsFormulaUIConfig } from './config/config';import { DependentOn, IConfigService, Inject, Injector, merge, Plugin, registerDependencies, touchDependencies, UniverInstanceType } from '@univerjs/core';import { IRenderManagerService } from '@univerjs/engine-render';import { UniverSheetsFormulaPlugin } from '@univerjs/sheets-formula';@@ -26,7 +26,7 @@ import { FORMULA_UI_PLUGIN_NAME } from './common/plugin-name';import {defaultPluginConfig,PLUGIN_CONFIG_KEY_BASE,-} from './controllers/config.schema';+} from './config/config';import { FormulaAlertRenderController } from './controllers/formula-alert-render.controller';import { FormulaClipboardController } from './controllers/formula-clipboard.controller';import { FormulaEditorShowController } from './controllers/formula-editor-show.controller';diff --git a/packages/sheets-formula-ui/src/views/formula-editor/hooks/use-formula-search.ts b/packages/sheets-formula-ui/src/views/formula-editor/hooks/use-formula-search.tsindex c91ee7a9ae..7f978ad298 100644--- a/packages/sheets-formula-ui/src/views/formula-editor/hooks/use-formula-search.ts+++ b/packages/sheets-formula-ui/src/views/formula-editor/hooks/use-formula-search.ts@@ -24,7 +24,7 @@ import { useEffect, useRef, useState } from 'react';import { debounceTime } from 'rxjs';import { findIndexFromSequenceNodes } from '../../range-selector/utils/find-index-from-sequence-nodes';import { sequenceNodeToText } from '../../range-selector/utils/sequence-node-to-text';-import { useStateRef } from '../hooks/use-state-ref';+import { useStateRef } from './use-state-ref';export const useFormulaSearch = (isNeed: boolean, nodes: INode[] = [], editor?: Editor) => {const descriptionService = useDependency(IDescriptionService);diff --git a/packages/sheets-formula-ui/src/views/formula-editor/hooks/use-sheet-selection-change.ts b/packages/sheets-formula-ui/src/views/formula-editor/hooks/use-sheet-selection-change.tsindex 8cc8e71ba9..5b086c365a 100644--- a/packages/sheets-formula-ui/src/views/formula-editor/hooks/use-sheet-selection-change.ts+++ b/packages/sheets-formula-ui/src/views/formula-editor/hooks/use-sheet-selection-change.ts@@ -36,9 +36,9 @@ import { findIndexFromSequenceNodes, findRefSequenceIndex } from '../../range-seimport { getOffsetFromSequenceNodes } from '../../range-selector/utils/get-offset-from-sequence-nodes';import { sequenceNodeToText } from '../../range-selector/utils/sequence-node-to-text';import { unitRangesToText } from '../../range-selector/utils/unit-ranges-to-text';-import { useStateRef } from '../hooks/use-state-ref';import { FormulaSelectingType } from './use-formula-selection';import { calcHighlightRanges } from './use-highlight';+import { useStateRef } from './use-state-ref';const prepareSelectionChangeContext = (opts: { editor?: Editor; lexerTreeBuilder: LexerTreeBuilder }) => {const { editor, lexerTreeBuilder } = opts;diff --git a/packages/sheets-formula-ui/src/views/formula-editor/index.tsx b/packages/sheets-formula-ui/src/views/formula-editor/index.tsxindex 26e1a12aff..d5911980e5 100644--- a/packages/sheets-formula-ui/src/views/formula-editor/index.tsx+++ b/packages/sheets-formula-ui/src/views/formula-editor/index.tsx@@ -18,7 +18,7 @@ import type { DocumentDataModel, IDisposable, ITextRange } from '@univerjs/core'import type { Editor, IKeyboardEventConfig } from '@univerjs/docs-ui';import type { KeyCode, MetaKeys } from '@univerjs/ui';import type { CSSProperties, ReactNode, Ref } from 'react';-import type { IUniverSheetsFormulaUIConfig } from '../../controllers/config.schema';+import type { IUniverSheetsFormulaUIConfig } from '../../config/config';import type { FormulaSelectingType } from './hooks/use-formula-selection';import type { IRefSelection } from './hooks/use-highlight';import { BuildTextUtils, createInternalEditorID, generateRandomId, IConfigService, IUniverInstanceService, UniverInstanceType } from '@univerjs/core';@@ -28,7 +28,7 @@ import { IRenderManagerService } from '@univerjs/engine-render';import { EMBEDDING_FORMULA_EDITOR } from '@univerjs/sheets-ui';import { useDependency, useEvent, useObservable, useUpdateEffect } from '@univerjs/ui';import { forwardRef, useEffect, useImperativeHandle, useLayoutEffect, useMemo, useRef, useState } from 'react';-import { PLUGIN_CONFIG_KEY_BASE } from '../../controllers/config.schema';+import { PLUGIN_CONFIG_KEY_BASE } from '../../config/config';import { findIndexFromSequenceNodes, findRefSequenceIndex } from '../range-selector/utils/find-index-from-sequence-nodes';import { HelpFunction } from './help-function/HelpFunction';import { useFocus } from './hooks/use-focus';diff --git a/packages/sheets-formula/src/controllers/config.schema.ts b/packages/sheets-formula/src/config/config.tssimilarity index 100%rename from packages/sheets-formula/src/controllers/config.schema.tsrename to packages/sheets-formula/src/config/config.tsdiff --git a/packages/sheets-formula/src/controllers/__tests__/array-formula-cell-interceptor.controller.spec.ts b/packages/sheets-formula/src/controllers/__tests__/array-formula-cell-interceptor.controller.spec.tsindex 23a369445c..dfcd263d22 100644--- a/packages/sheets-formula/src/controllers/__tests__/array-formula-cell-interceptor.controller.spec.ts+++ b/packages/sheets-formula/src/controllers/__tests__/array-formula-cell-interceptor.controller.spec.ts@@ -33,9 +33,9 @@ import {import { INTERCEPTOR_POINT, SetRangeValuesMutation, SheetInterceptorService } from '@univerjs/sheets';import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';+import { PLUGIN_CONFIG_KEY_BASE } from '../../config/config';import { createFacadeTestBed } from '../../facade/__tests__/create-test-bed';import { ArrayFormulaCellInterceptorController } from '../array-formula-cell-interceptor.controller';-import { PLUGIN_CONFIG_KEY_BASE } from '../config.schema';function createWorkbookData(): IWorkbookData {return {diff --git a/packages/sheets-formula/src/controllers/__tests__/trigger-calculation.controller.spec.ts b/packages/sheets-formula/src/controllers/__tests__/trigger-calculation.controller.spec.tsindex 60da8b4020..c3eed4cd35 100644--- a/packages/sheets-formula/src/controllers/__tests__/trigger-calculation.controller.spec.ts+++ b/packages/sheets-formula/src/controllers/__tests__/trigger-calculation.controller.spec.ts@@ -40,8 +40,8 @@ import {import { SetRangeValuesMutation, SetStyleCommand } from '@univerjs/sheets';import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';+import { CalculationMode, PLUGIN_CONFIG_KEY_BASE } from '../../config/config';import { createFacadeTestBed } from '../../facade/__tests__/create-test-bed';-import { CalculationMode, PLUGIN_CONFIG_KEY_BASE } from '../config.schema';import { TriggerCalculationController } from '../trigger-calculation.controller';function createWorkbookData(): IWorkbookData {diff --git a/packages/sheets-formula/src/controllers/__tests__/update-formula.controller.spec.ts b/packages/sheets-formula/src/controllers/__tests__/update-formula.controller.spec.tsindex 05ecaf5700..d7b2e25323 100644--- a/packages/sheets-formula/src/controllers/__tests__/update-formula.controller.spec.ts+++ b/packages/sheets-formula/src/controllers/__tests__/update-formula.controller.spec.ts@@ -20,8 +20,8 @@ import { FormulaDataModel, SetArrayFormulaDataMutation, SetFormulaDataMutation,import { InsertSheetMutation, MoveRangeCommand, MoveRangeMutation, RemoveSheetCommand, RemoveSheetMutation, SetRangeValuesCommand, SetRangeValuesMutation, SetSelectionsOperation, SetStyleCommand, SetWorksheetNameCommand, SheetInterceptorService } from '@univerjs/sheets';import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';+import { CalculationMode, PLUGIN_CONFIG_KEY_BASE } from '../../config/config';import { createFacadeTestBed } from '../../facade/__tests__/create-test-bed';-import { CalculationMode, PLUGIN_CONFIG_KEY_BASE } from '../config.schema';import { UpdateFormulaController } from '../update-formula.controller';function createWorkbookData(): IWorkbookData {diff --git a/packages/sheets-formula/src/controllers/array-formula-cell-interceptor.controller.ts b/packages/sheets-formula/src/controllers/array-formula-cell-interceptor.controller.tsindex 1f2d00b0bc..7fae6b5189 100644--- a/packages/sheets-formula/src/controllers/array-formula-cell-interceptor.controller.ts+++ b/packages/sheets-formula/src/controllers/array-formula-cell-interceptor.controller.ts@@ -17,11 +17,11 @@import type { ICellData, ICommandInfo } from '@univerjs/core';import type { IArrayFormulaEmbeddedMap, IArrayFormulaRangeType, IArrayFormulaUnitCellType, ISetArrayFormulaDataMutationParams, ISetDefinedNameMutationParam } from '@univerjs/engine-formula';import type { ISetRangeValuesMutationParams } from '@univerjs/sheets';-import type { IUniverSheetsFormulaBaseConfig } from './config.schema';+import type { IUniverSheetsFormulaBaseConfig } from '../config/config';import { CellValueType, Disposable, ICommandService, IConfigService, Inject, InterceptorEffectEnum, isRealNum, ObjectMatrix } from '@univerjs/core';import { FormulaDataModel, IDefinedNamesService, IFunctionService, LexerTreeBuilder, serializeRange, SetArrayFormulaDataMutation, SetDefinedNameMutation, SetFormulaCalculationResultMutation, stripErrorMargin } from '@univerjs/engine-formula';import { INTERCEPTOR_POINT, SetRangeValuesMutation, SheetInterceptorService } from '@univerjs/sheets';-import { PLUGIN_CONFIG_KEY_BASE } from './config.schema';+import { PLUGIN_CONFIG_KEY_BASE } from '../config/config';export class ArrayFormulaCellInterceptorController extends Disposable {constructor(diff --git a/packages/sheets-formula/src/controllers/trigger-calculation.controller.ts b/packages/sheets-formula/src/controllers/trigger-calculation.controller.tsindex 4624b48a44..a9e90877c1 100644--- a/packages/sheets-formula/src/controllers/trigger-calculation.controller.ts+++ b/packages/sheets-formula/src/controllers/trigger-calculation.controller.ts@@ -25,7 +25,7 @@ import type {ISetFormulaCalculationStartMutation,} from '@univerjs/engine-formula';import type { ISetRangeValuesMutationParams } from '@univerjs/sheets';-import type { IUniverSheetsFormulaBaseConfig } from './config.schema';+import type { IUniverSheetsFormulaBaseConfig } from '../config/config';import { Disposable, ICommandService, IConfigService, ILogService, Inject, LocaleService } from '@univerjs/core';import {ENGINE_FORMULA_CYCLE_REFERENCE_COUNT,@@ -48,7 +48,7 @@ import {SetStyleCommand,} from '@univerjs/sheets';import { BehaviorSubject } from 'rxjs';-import { CalculationMode, PLUGIN_CONFIG_KEY_BASE } from './config.schema';+import { CalculationMode, PLUGIN_CONFIG_KEY_BASE } from '../config/config';/*** This interface is for the progress bar to display the calculation progress.diff --git a/packages/sheets-formula/src/controllers/update-formula.controller.ts b/packages/sheets-formula/src/controllers/update-formula.controller.tsindex 892cf9bf9f..4a32512377 100644--- a/packages/sheets-formula/src/controllers/update-formula.controller.ts+++ b/packages/sheets-formula/src/controllers/update-formula.controller.ts@@ -28,7 +28,7 @@ import type {IRemoveSheetMutationParams,ISetRangeValuesMutationParams,} from '@univerjs/sheets';-import type { IUniverSheetsFormulaBaseConfig } from './config.schema';+import type { IUniverSheetsFormulaBaseConfig } from '../config/config';import type { IFormulaReferenceMoveParam } from './utils/ref-range-formula';import type { IUnitRangeWithOffset } from './utils/ref-range-move';import {@@ -54,7 +54,7 @@ import {SheetInterceptorService,} from '@univerjs/sheets';import { map } from 'rxjs';-import { CalculationMode, PLUGIN_CONFIG_KEY_BASE } from './config.schema';+import { CalculationMode, PLUGIN_CONFIG_KEY_BASE } from '../config/config';import { removeFormulaData } from './utils/offset-formula-data';import { checkIsSameUnitAndSheet, formulaDataToCellData, FormulaReferenceMoveType, getFormulaReferenceMoveUndoRedo, updateRefOffset } from './utils/ref-range-formula';import { getNewRangeByMoveParam } from './utils/ref-range-move';diff --git a/packages/sheets-formula/src/index.ts b/packages/sheets-formula/src/index.tsindex 9e58478129..22697c1412 100644--- a/packages/sheets-formula/src/index.ts+++ b/packages/sheets-formula/src/index.ts@@ -16,8 +16,8 @@export { type IInsertFunction, type IInsertFunctionCommandParams, InsertFunctionCommand } from './commands/commands/insert-function.command';export { QuickSumCommand } from './commands/commands/quick-sum.command';-export { CalculationMode, PLUGIN_CONFIG_KEY_BASE } from './controllers/config.schema';-export type { IUniverSheetsFormulaBaseConfig, IUniverSheetsFormulaRemoteConfig } from './controllers/config.schema';+export { CalculationMode, PLUGIN_CONFIG_KEY_BASE } from './config/config';+export type { IUniverSheetsFormulaBaseConfig, IUniverSheetsFormulaRemoteConfig } from './config/config';export { FormulaAutoFillController } from './controllers/formula-auto-fill.controller';export { ImageFormulaCellInterceptorController } from './controllers/image-formula-cell-interceptor.controller';export { TriggerCalculationController } from './controllers/trigger-calculation.controller';diff --git a/packages/sheets-formula/src/plugin.ts b/packages/sheets-formula/src/plugin.tsindex 975ce95fe9..1b05fcfd05 100644--- a/packages/sheets-formula/src/plugin.ts+++ b/packages/sheets-formula/src/plugin.ts@@ -15,21 +15,21 @@*/import type { Dependency } from '@univerjs/core';-import type { IUniverSheetsFormulaBaseConfig, IUniverSheetsFormulaRemoteConfig } from './controllers/config.schema';+import type { IUniverSheetsFormulaBaseConfig, IUniverSheetsFormulaRemoteConfig } from './config/config';import { DependentOn, IConfigService, Inject, Injector, isNodeEnv, merge, Plugin, touchDependencies, UniverInstanceType } from '@univerjs/core';import { UniverFormulaEnginePlugin } from '@univerjs/engine-formula';import { fromModule, IRPCChannelService, toModule } from '@univerjs/rpc';import { UniverSheetsPlugin } from '@univerjs/sheets';import pkg from '../package.json';import { SHEETS_FORMULA_PLUGIN_NAME } from './common/plugin-name';-import { ActiveDirtyController } from './controllers/active-dirty.controller';-import { ArrayFormulaCellInterceptorController } from './controllers/array-formula-cell-interceptor.controller';import {defaultPluginBaseConfig,defaultPluginRemoteConfig,PLUGIN_CONFIG_KEY_BASE,PLUGIN_CONFIG_KEY_REMOTE,-} from './controllers/config.schema';+} from './config/config';+import { ActiveDirtyController } from './controllers/active-dirty.controller';+import { ArrayFormulaCellInterceptorController } from './controllers/array-formula-cell-interceptor.controller';import { DefinedNameController } from './controllers/defined-name.controller';import { FormulaAutoFillController } from './controllers/formula-auto-fill.controller';import { FormulaController } from './controllers/formula.controller';diff --git a/packages/sheets-formula/src/services/__test__/description.service.spec.ts b/packages/sheets-formula/src/services/__test__/description.service.spec.tsindex f42b58c69e..2119733e75 100644--- a/packages/sheets-formula/src/services/__test__/description.service.spec.ts+++ b/packages/sheets-formula/src/services/__test__/description.service.spec.ts@@ -18,7 +18,7 @@ import type { IFunctionInfo } from '@univerjs/engine-formula';import { IConfigService, LocaleService, LocaleType, Univer } from '@univerjs/core';import { FunctionService, FunctionType, IFunctionService } from '@univerjs/engine-formula';import { afterEach, beforeEach, describe, expect, it } from 'vitest';-import { PLUGIN_CONFIG_KEY_BASE } from '../../controllers/config.schema';+import { PLUGIN_CONFIG_KEY_BASE } from '../../config/config';import { DescriptionService, IDescriptionService } from '../description.service';function createFunctionInfo(overrides: Partial<IFunctionInfo> = {}): IFunctionInfo {diff --git a/packages/sheets-formula/src/services/__test__/register-function.service.spec.ts b/packages/sheets-formula/src/services/__test__/register-function.service.spec.tsindex 011247b983..38b3c626f1 100644--- a/packages/sheets-formula/src/services/__test__/register-function.service.spec.ts+++ b/packages/sheets-formula/src/services/__test__/register-function.service.spec.ts@@ -17,7 +17,7 @@import { IConfigService, LocaleService, LocaleType, Univer } from '@univerjs/core';import { FunctionService, FunctionType, IFunctionService } from '@univerjs/engine-formula';import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';-import { PLUGIN_CONFIG_KEY_BASE } from '../../controllers/config.schema';+import { PLUGIN_CONFIG_KEY_BASE } from '../../config/config';import { DescriptionService, IDescriptionService } from '../description.service';import { IRegisterFunctionService, RegisterFunctionService } from '../register-function.service';import { IRemoteRegisterFunctionService } from '../remote/remote-register-function.service';diff --git a/packages/sheets-formula/src/services/description.service.ts b/packages/sheets-formula/src/services/description.service.tsindex b396e8ef9c..453497bc18 100644--- a/packages/sheets-formula/src/services/description.service.ts+++ b/packages/sheets-formula/src/services/description.service.ts@@ -16,7 +16,7 @@import type { IDisposable } from '@univerjs/core';import type { IFunctionInfo, IFunctionNames } from '@univerjs/engine-formula';-import type { IUniverSheetsFormulaBaseConfig } from '../controllers/config.schema';+import type { IUniverSheetsFormulaBaseConfig } from '../config/config';import { createIdentifier, IConfigService, Inject, LocaleService, toDisposable } from '@univerjs/core';import {@@ -40,7 +40,7 @@ import {IFunctionService,isReferenceStrings,} from '@univerjs/engine-formula';-import { PLUGIN_CONFIG_KEY_BASE } from '../controllers/config.schema';+import { PLUGIN_CONFIG_KEY_BASE } from '../config/config';import { FUNCTION_LIST } from './function-list/function-list';import { getFunctionName } from './utils';diff --git a/packages/sheets-graphics/src/controllers/config.schema.ts b/packages/sheets-graphics/src/config/config.tssimilarity index 100%rename from packages/sheets-graphics/src/controllers/config.schema.tsrename to packages/sheets-graphics/src/config/config.tsdiff --git a/packages/sheets-graphics/src/index.ts b/packages/sheets-graphics/src/index.tsindex 5249f9df77..4c79344c8c 100644--- a/packages/sheets-graphics/src/index.ts+++ b/packages/sheets-graphics/src/index.ts@@ -14,6 +14,6 @@* limitations under the License.*/-export type { IUniverSheetsGraphicsConfig } from './controllers/config.schema';+export type { IUniverSheetsGraphicsConfig } from './config/config';export { SheetGraphicsRenderController } from './controllers/graphics-render.controller';export { UniverSheetsGraphicsPlugin } from './plugin';diff --git a/packages/sheets-graphics/src/plugin.ts b/packages/sheets-graphics/src/plugin.tsindex ae61b277f8..7c91be2d71 100644--- a/packages/sheets-graphics/src/plugin.ts+++ b/packages/sheets-graphics/src/plugin.ts@@ -15,11 +15,11 @@*/import type { Dependency } from '@univerjs/core';-import type { IUniverSheetsGraphicsConfig } from './controllers/config.schema';+import type { IUniverSheetsGraphicsConfig } from './config/config';import { IConfigService, Inject, Injector, merge, Plugin, UniverInstanceType } from '@univerjs/core';import { IRenderManagerService } from '@univerjs/engine-render';import pkg from '../package.json';-import { defaultPluginConfig, PLUGIN_CONFIG_KEY } from './controllers/config.schema';+import { defaultPluginConfig, PLUGIN_CONFIG_KEY } from './config/config';import { SheetGraphicsRenderController } from './controllers/graphics-render.controller';export class UniverSheetsGraphicsPlugin extends Plugin {diff --git a/packages/sheets-hyper-link-ui/src/controllers/config.schema.ts b/packages/sheets-hyper-link-ui/src/config/config.tssimilarity index 100%rename from packages/sheets-hyper-link-ui/src/controllers/config.schema.tsrename to packages/sheets-hyper-link-ui/src/config/config.tsdiff --git a/packages/sheets-hyper-link-ui/src/controllers/hyper-link-permission.controller.ts b/packages/sheets-hyper-link-ui/src/controllers/hyper-link-permission.controller.tsindex f6fd281291..5ccbe13a09 100644--- a/packages/sheets-hyper-link-ui/src/controllers/hyper-link-permission.controller.ts+++ b/packages/sheets-hyper-link-ui/src/controllers/hyper-link-permission.controller.ts@@ -17,7 +17,7 @@import type { ICommandInfo } from '@univerjs/core';import { Disposable, ICommandService, Inject, LocaleService } from '@univerjs/core';import { RangeProtectionPermissionEditPoint, SheetPermissionCheckController, WorkbookEditablePermission, WorksheetEditPermission, WorksheetInsertHyperlinkPermission, WorksheetSetCellValuePermission } from '@univerjs/sheets';-import { InsertLinkShortcut } from './menu';+import { InsertLinkShortcut } from '../menu/menu';export class SheetsHyperLinkPermissionController extends Disposable {constructor(diff --git a/packages/sheets-hyper-link-ui/src/controllers/ui.controller.ts b/packages/sheets-hyper-link-ui/src/controllers/ui.controller.tsindex 5f21e3c722..18f9e0c3c6 100644--- a/packages/sheets-hyper-link-ui/src/controllers/ui.controller.ts+++ b/packages/sheets-hyper-link-ui/src/controllers/ui.controller.ts@@ -18,10 +18,10 @@ import { Disposable, ICommandService, Inject, Injector } from '@univerjs/core';import { LinkIcon } from '@univerjs/icons';import { ComponentManager, IMenuManagerService, IShortcutService } from '@univerjs/ui';import { CloseHyperLinkPopupOperation, InsertHyperLinkOperation, InsertHyperLinkToolbarOperation, OpenHyperLinkEditPanelOperation } from '../commands/operations/popup.operations';+import { InsertLinkShortcut } from '../menu/menu';+import { menuSchema } from '../menu/schema';import { CellLinkEdit } from '../views/CellLinkEdit';import { CellLinkPopup } from '../views/CellLinkPopup';-import { InsertLinkShortcut } from './menu';-import { menuSchema } from './menu.schema';export class SheetsHyperLinkUIController extends Disposable {constructor(diff --git a/packages/sheets-hyper-link-ui/src/index.ts b/packages/sheets-hyper-link-ui/src/index.tsindex b630cc9e33..93a66c1344 100644--- a/packages/sheets-hyper-link-ui/src/index.ts+++ b/packages/sheets-hyper-link-ui/src/index.ts@@ -22,9 +22,9 @@ export {type IOpenHyperLinkEditPanelOperationParams,OpenHyperLinkEditPanelOperation,} from './commands/operations/popup.operations';-export type { IUniverSheetsHyperLinkUIConfig } from './controllers/config.schema';+export type { IUniverSheetsHyperLinkUIConfig } from './config/config';export { SheetsHyperLinkCopyPasteController } from './controllers/copy-paste.controller';-export { InsertLinkShortcut } from './controllers/menu';+export { InsertLinkShortcut } from './menu/menu';export { UniverSheetsHyperLinkUIPlugin } from './plugin';export { SheetsHyperLinkPopupService } from './services/popup.service';export { SheetsHyperLinkResolverService } from './services/resolver.service';diff --git a/packages/sheets-hyper-link-ui/src/controllers/menu.ts b/packages/sheets-hyper-link-ui/src/menu/menu.tssimilarity index 100%rename from packages/sheets-hyper-link-ui/src/controllers/menu.tsrename to packages/sheets-hyper-link-ui/src/menu/menu.tsdiff --git a/packages/sheets-hyper-link-ui/src/controllers/menu.schema.ts b/packages/sheets-hyper-link-ui/src/menu/schema.tssimilarity index 100%rename from packages/sheets-hyper-link-ui/src/controllers/menu.schema.tsrename to packages/sheets-hyper-link-ui/src/menu/schema.tsdiff --git a/packages/sheets-hyper-link-ui/src/plugin.ts b/packages/sheets-hyper-link-ui/src/plugin.tsindex e698b493f2..89d56bc532 100644--- a/packages/sheets-hyper-link-ui/src/plugin.ts+++ b/packages/sheets-hyper-link-ui/src/plugin.ts@@ -15,14 +15,14 @@*/import type { Dependency, Workbook } from '@univerjs/core';-import type { IUniverSheetsHyperLinkUIConfig } from './controllers/config.schema';+import type { IUniverSheetsHyperLinkUIConfig } from './config/config';import { DependentOn, IConfigService, Inject, Injector, merge, Plugin, UniverInstanceType } from '@univerjs/core';import { UniverDocsUIPlugin } from '@univerjs/docs-ui';import { IRenderManagerService } from '@univerjs/engine-render';import { UniverSheetsHyperLinkPlugin } from '@univerjs/sheets-hyper-link';import pkg from '../package.json';+import { defaultPluginConfig, SHEETS_HYPER_LINK_UI_PLUGIN_CONFIG_KEY } from './config/config';import { SheetsHyperLinkAutoFillController } from './controllers/auto-fill.controller';-import { defaultPluginConfig, SHEETS_HYPER_LINK_UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';import { SheetsHyperLinkCopyPasteController } from './controllers/copy-paste.controller';import { SheetsHyperLinkPermissionController } from './controllers/hyper-link-permission.controller';import { SheetsHyperLinkPopupController } from './controllers/popup.controller';diff --git a/packages/sheets-hyper-link-ui/src/services/resolver.service.ts b/packages/sheets-hyper-link-ui/src/services/resolver.service.tsindex 0751923ed6..e7783cf3fa 100644--- a/packages/sheets-hyper-link-ui/src/services/resolver.service.ts+++ b/packages/sheets-hyper-link-ui/src/services/resolver.service.ts@@ -17,7 +17,7 @@import type { IRange, Workbook, Worksheet } from '@univerjs/core';import type { ISetSelectionsOperationParams } from '@univerjs/sheets';import type { ISheetHyperLinkInfo, ISheetUrlParams } from '@univerjs/sheets-hyper-link';-import type { IUniverSheetsHyperLinkUIConfig } from '../controllers/config.schema';+import type { IUniverSheetsHyperLinkUIConfig } from '../config/config';import { ICommandService, IConfigService, Inject, isValidRange, IUniverInstanceService, LocaleService, RANGE_TYPE, Rectangle, UniverInstanceType } from '@univerjs/core';import { MessageType } from '@univerjs/design';import { deserializeRangeWithSheet, IDefinedNamesService } from '@univerjs/engine-formula';@@ -25,7 +25,7 @@ import { SetSelectionsOperation, SetWorksheetActiveOperation } from '@univerjs/simport { ERROR_RANGE, SheetHyperLinkType } from '@univerjs/sheets-hyper-link';import { ScrollToRangeOperation } from '@univerjs/sheets-ui';import { IMessageService } from '@univerjs/ui';-import { SHEETS_HYPER_LINK_UI_PLUGIN_CONFIG_KEY } from '../controllers/config.schema';+import { SHEETS_HYPER_LINK_UI_PLUGIN_CONFIG_KEY } from '../config/config';function getContainRange(range: IRange, worksheet: Worksheet) {const mergedCells = worksheet.getMergeData();diff --git a/packages/sheets-hyper-link/src/controllers/config.schema.ts b/packages/sheets-hyper-link/src/config/config.tssimilarity index 100%rename from packages/sheets-hyper-link/src/controllers/config.schema.tsrename to packages/sheets-hyper-link/src/config/config.tsdiff --git a/packages/sheets-hyper-link/src/index.ts b/packages/sheets-hyper-link/src/index.tsindex 7feaad6623..70a4fc91fd 100644--- a/packages/sheets-hyper-link/src/index.ts+++ b/packages/sheets-hyper-link/src/index.ts@@ -25,7 +25,7 @@ export {UpdateHyperLinkMutation,UpdateHyperLinkRefMutation,} from './commands/mutations/update-hyper-link.mutation';-export type { IUniverSheetsHyperLinkConfig } from './controllers/config.schema';+export type { IUniverSheetsHyperLinkConfig } from './config/config';export { HyperLinkModel } from './models/hyper-link.model';export { UniverSheetsHyperLinkPlugin } from './plugin';export { type ISheetHyperLinkInfo, type ISheetUrlParams, SheetsHyperLinkParserService } from './services/parser.service';diff --git a/packages/sheets-hyper-link/src/plugin.ts b/packages/sheets-hyper-link/src/plugin.tsindex 32d414aa33..9adce1a780 100644--- a/packages/sheets-hyper-link/src/plugin.ts+++ b/packages/sheets-hyper-link/src/plugin.ts@@ -14,11 +14,11 @@* limitations under the License.*/-import type { IUniverSheetsHyperLinkConfig } from './controllers/config.schema';+import type { IUniverSheetsHyperLinkConfig } from './config/config';import { DependentOn, IConfigService, Inject, Injector, merge, Plugin, registerDependencies, touchDependencies, UniverInstanceType } from '@univerjs/core';import { UniverSheetsPlugin } from '@univerjs/sheets';import pkg from '../package.json';-import { defaultPluginConfig, SHEETS_HYPER_LINK_PLUGIN_CONFIG_KEY } from './controllers/config.schema';+import { defaultPluginConfig, SHEETS_HYPER_LINK_PLUGIN_CONFIG_KEY } from './config/config';import { SheetsHyperLinkRefRangeController } from './controllers/ref-range.controller';import { SheetsHyperLinkRemoveSheetController } from './controllers/remove-sheet.controller';import { SheetsHyperLinkRichTextRefRangeController } from './controllers/rich-text-ref-range.controller';diff --git a/packages/sheets-note-ui/src/controllers/config.schema.ts b/packages/sheets-note-ui/src/config/config.tssimilarity index 100%rename from packages/sheets-note-ui/src/controllers/config.schema.tsrename to packages/sheets-note-ui/src/config/config.tsdiff --git a/packages/sheets-note-ui/src/controllers/sheets-note-ui.controller.ts b/packages/sheets-note-ui/src/controllers/sheets-note-ui.controller.tsindex 399517b671..0904351514 100644--- a/packages/sheets-note-ui/src/controllers/sheets-note-ui.controller.ts+++ b/packages/sheets-note-ui/src/controllers/sheets-note-ui.controller.ts@@ -18,9 +18,9 @@ import { Disposable, ICommandService, Inject } from '@univerjs/core';import { AddNoteIcon, DeleteNoteIcon, HideNoteIcon } from '@univerjs/icons';import { ComponentManager, IMenuManagerService } from '@univerjs/ui';import { AddNotePopupOperation } from '../commands/operations/add-note-popup.operation';+import { menuSchema } from '../menu/schema';import { SHEET_NOTE_COMPONENT } from '../views/config';import { SheetsNote } from '../views/note';-import { menuSchema } from './menu.schema';export class SheetsNoteUIController extends Disposable {constructor(diff --git a/packages/sheets-note-ui/src/index.ts b/packages/sheets-note-ui/src/index.tsindex 8317d78dfe..78b4392039 100644--- a/packages/sheets-note-ui/src/index.ts+++ b/packages/sheets-note-ui/src/index.ts@@ -16,7 +16,7 @@import './global.css';-export type { IUniverSheetsNoteUIConfig } from './controllers/config.schema';+export type { IUniverSheetsNoteUIConfig } from './config/config';export { SheetsCellContentController } from './controllers/sheets-cell-content.controller';export { SheetsNotePopupController } from './controllers/sheets-note-popup.controller';export { UniverSheetsNoteUIPlugin } from './plugin';diff --git a/packages/sheets-note-ui/src/controllers/note.menu.ts b/packages/sheets-note-ui/src/menu/note.menu.tssimilarity index 100%rename from packages/sheets-note-ui/src/controllers/note.menu.tsrename to packages/sheets-note-ui/src/menu/note.menu.tsdiff --git a/packages/sheets-note-ui/src/controllers/menu.schema.ts b/packages/sheets-note-ui/src/menu/schema.tssimilarity index 100%rename from packages/sheets-note-ui/src/controllers/menu.schema.tsrename to packages/sheets-note-ui/src/menu/schema.tsdiff --git a/packages/sheets-note-ui/src/plugin.ts b/packages/sheets-note-ui/src/plugin.tsindex 6d2c9989e0..7ec1947110 100644--- a/packages/sheets-note-ui/src/plugin.ts+++ b/packages/sheets-note-ui/src/plugin.ts@@ -15,11 +15,11 @@*/import type { Dependency } from '@univerjs/core';-import type { IUniverSheetsNoteUIConfig } from './controllers/config.schema';+import type { IUniverSheetsNoteUIConfig } from './config/config';import { DependentOn, IConfigService, Inject, Injector, merge, Plugin, touchDependencies, UniverInstanceType } from '@univerjs/core';import { UniverSheetsNotePlugin } from '@univerjs/sheets-note';import pkg from '../package.json';-import { defaultPluginConfig, SHEETS_NOTE_UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';+import { defaultPluginConfig, SHEETS_NOTE_UI_PLUGIN_CONFIG_KEY } from './config/config';import { SheetsCellContentController } from './controllers/sheets-cell-content.controller';import { SheetsNoteAttachmentController } from './controllers/sheets-note-attachment.controller';import { SheetsNotePopupController } from './controllers/sheets-note-popup.controller';diff --git a/packages/sheets-note-ui/src/views/note.tsx b/packages/sheets-note-ui/src/views/note.tsxindex 5b1319de33..15da4f55bf 100644--- a/packages/sheets-note-ui/src/views/note.tsx+++ b/packages/sheets-note-ui/src/views/note.tsx@@ -17,14 +17,14 @@import type { ISheetLocationBase } from '@univerjs/sheets';import type { ISheetNote } from '@univerjs/sheets-note';import type { IPopup } from '@univerjs/ui';-import type { IUniverSheetsNoteUIConfig } from '../controllers/config.schema';+import type { IUniverSheetsNoteUIConfig } from '../config/config';import { generateRandomId, ICommandService, LocaleService } from '@univerjs/core';import { clsx, Textarea } from '@univerjs/design';import { IRenderManagerService } from '@univerjs/engine-render';import { SheetsNoteModel, SheetUpdateNoteCommand } from '@univerjs/sheets-note';import { useConfigValue, useDebounceFn, useDependency } from '@univerjs/ui';import { useCallback, useEffect, useRef, useState } from 'react';-import { SHEETS_NOTE_UI_PLUGIN_CONFIG_KEY } from '../controllers/config.schema';+import { SHEETS_NOTE_UI_PLUGIN_CONFIG_KEY } from '../config/config';import { SheetsNotePopupService } from '../services/sheets-note-popup.service';type INotePopupLocation = ISheetLocationBase & {diff --git a/packages/sheets-note/src/controllers/config.schema.ts b/packages/sheets-note/src/config/config.tssimilarity index 100%rename from packages/sheets-note/src/controllers/config.schema.tsrename to packages/sheets-note/src/config/config.tsdiff --git a/packages/sheets-note/src/index.ts b/packages/sheets-note/src/index.tsindex 0af3064cad..7062b79954 100644--- a/packages/sheets-note/src/index.ts+++ b/packages/sheets-note/src/index.ts@@ -16,7 +16,7 @@export * from './commands/commands/note.command';export * from './commands/mutations/note.mutation';-export type { IUniverSheetsNoteConfig } from './controllers/config.schema';+export type { IUniverSheetsNoteConfig } from './config/config';export * from './controllers/sheets-note-resource.controller';export * from './models/sheets-note.model';export { UniverSheetsNotePlugin } from './plugin';diff --git a/packages/sheets-note/src/plugin.ts b/packages/sheets-note/src/plugin.tsindex c23f59635d..a11dde9480 100644--- a/packages/sheets-note/src/plugin.ts+++ b/packages/sheets-note/src/plugin.ts@@ -15,12 +15,12 @@*/import type { Dependency } from '@univerjs/core';-import type { IUniverSheetsNoteConfig } from './controllers/config.schema';+import type { IUniverSheetsNoteConfig } from './config/config';import { DependentOn, IConfigService, Inject, Injector, merge, Plugin, touchDependencies, UniverInstanceType } from '@univerjs/core';import { UniverSheetsPlugin } from '@univerjs/sheets';import pkg from '../package.json';+import { defaultPluginConfig, SHEETS_NOTE_PLUGIN_CONFIG_KEY } from './config/config';import { PLUGIN_NAME } from './const';-import { defaultPluginConfig, SHEETS_NOTE_PLUGIN_CONFIG_KEY } from './controllers/config.schema';import { SheetsNoteRefRangeController } from './controllers/sheets-note-ref-range.controller';import { SheetsNoteResourceController } from './controllers/sheets-note-resource.controller';import { SheetsNoteController } from './controllers/sheets.note.controller';diff --git a/packages/sheets-numfmt-ui/src/controllers/config.schema.ts b/packages/sheets-numfmt-ui/src/config/config.tssimilarity index 100%rename from packages/sheets-numfmt-ui/src/controllers/config.schema.tsrename to packages/sheets-numfmt-ui/src/config/config.tsdiff --git a/packages/sheets-numfmt-ui/src/index.ts b/packages/sheets-numfmt-ui/src/index.tsindex 4590e108d5..51b43cca0a 100644--- a/packages/sheets-numfmt-ui/src/index.ts+++ b/packages/sheets-numfmt-ui/src/index.ts@@ -16,5 +16,5 @@import './global.css';-export type { IUniverSheetsNumfmtUIConfig } from './controllers/config.schema';+export type { IUniverSheetsNumfmtUIConfig } from './config/config';export { UniverSheetsNumfmtUIPlugin } from './plugin';diff --git a/packages/sheets-numfmt-ui/src/controllers/menu.ts b/packages/sheets-numfmt-ui/src/menu/menu.tssimilarity index 100%rename from packages/sheets-numfmt-ui/src/controllers/menu.tsrename to packages/sheets-numfmt-ui/src/menu/menu.tsdiff --git a/packages/sheets-numfmt-ui/src/controllers/numfmt.menu.controller.ts b/packages/sheets-numfmt-ui/src/menu/numfmt.menu.controller.tssimilarity index 97%rename from packages/sheets-numfmt-ui/src/controllers/numfmt.menu.controller.tsrename to packages/sheets-numfmt-ui/src/menu/numfmt.menu.controller.tsindex d59dbbc829..1530deabdf 100644--- a/packages/sheets-numfmt-ui/src/controllers/numfmt.menu.controller.ts+++ b/packages/sheets-numfmt-ui/src/menu/numfmt.menu.controller.ts@@ -17,7 +17,7 @@import { Disposable, Inject } from '@univerjs/core';import { ComponentManager, IMenuManagerService } from '@univerjs/ui';import { MORE_NUMFMT_TYPE_KEY, MoreNumfmtType, Options, OPTIONS_KEY } from '../views/components/MoreNumfmtType';-import { menuSchema } from './menu.schema';+import { menuSchema } from './schema';export class NumfmtMenuController extends Disposable {constructor(diff --git a/packages/sheets-numfmt-ui/src/controllers/menu.schema.ts b/packages/sheets-numfmt-ui/src/menu/schema.tssimilarity index 100%rename from packages/sheets-numfmt-ui/src/controllers/menu.schema.tsrename to packages/sheets-numfmt-ui/src/menu/schema.tsdiff --git a/packages/sheets-numfmt-ui/src/plugin.ts b/packages/sheets-numfmt-ui/src/plugin.tsindex f436a8ef1e..05716d33c0 100644--- a/packages/sheets-numfmt-ui/src/plugin.ts+++ b/packages/sheets-numfmt-ui/src/plugin.ts@@ -15,18 +15,18 @@*/import type { Dependency } from '@univerjs/core';-import type { IUniverSheetsNumfmtUIConfig } from './controllers/config.schema';+import type { IUniverSheetsNumfmtUIConfig } from './config/config';import { DependentOn, IConfigService, Inject, Injector, merge, Plugin, registerDependencies, touchDependencies, UniverInstanceType } from '@univerjs/core';import { IRenderManagerService } from '@univerjs/engine-render';import { UniverSheetsNumfmtPlugin } from '@univerjs/sheets-numfmt';import { UniverSheetsUIPlugin } from '@univerjs/sheets-ui';import pkg from '../package.json';-import { defaultPluginConfig } from './controllers/config.schema';+import { defaultPluginConfig } from './config/config';import { NumfmtAlertRenderController } from './controllers/numfmt-alert-render.controller';import { SheetNumfmtUIController } from './controllers/numfmt.controller';import { NumfmtEditorController } from './controllers/numfmt.editor.controller';-import { NumfmtMenuController } from './controllers/numfmt.menu.controller';import { UserHabitController } from './controllers/user-habit.controller';+import { NumfmtMenuController } from './menu/numfmt.menu.controller';@DependentOn(UniverSheetsUIPlugin, UniverSheetsNumfmtPlugin)export class UniverSheetsNumfmtUIPlugin extends Plugin {diff --git a/packages/sheets-numfmt-ui/src/views/components/MoreNumfmtType.tsx b/packages/sheets-numfmt-ui/src/views/components/MoreNumfmtType.tsxindex b63c0e4211..8118d90e29 100644--- a/packages/sheets-numfmt-ui/src/views/components/MoreNumfmtType.tsx+++ b/packages/sheets-numfmt-ui/src/views/components/MoreNumfmtType.tsx@@ -28,7 +28,7 @@ import {import { ILayoutService, useDependency } from '@univerjs/ui';import { useMemo } from 'react';import { OpenNumfmtPanelOperator } from '../../commands/operations/open.numfmt.panel.operation';-import { MENU_OPTIONS } from '../../controllers/menu';+import { MENU_OPTIONS } from '../../menu/menu';export const MORE_NUMFMT_TYPE_KEY = 'sheet.numfmt.moreNumfmtType';export const OPTIONS_KEY = 'sheet.numfmt.moreNumfmtType.options';diff --git a/packages/sheets-numfmt/src/controllers/config.schema.ts b/packages/sheets-numfmt/src/config/config.tssimilarity index 100%rename from packages/sheets-numfmt/src/controllers/config.schema.tsrename to packages/sheets-numfmt/src/config/config.tsdiff --git a/packages/sheets-numfmt/src/controllers/__tests__/numfmt-cell-content.controller.spec.ts b/packages/sheets-numfmt/src/controllers/__tests__/numfmt-cell-content.controller.spec.tsindex 0d94f52a92..e4de4b2358 100644--- a/packages/sheets-numfmt/src/controllers/__tests__/numfmt-cell-content.controller.spec.ts+++ b/packages/sheets-numfmt/src/controllers/__tests__/numfmt-cell-content.controller.spec.ts@@ -40,8 +40,8 @@ import {SheetInterceptorService,} from '@univerjs/sheets';import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';+import { SHEETS_NUMFMT_PLUGIN_CONFIG_KEY } from '../../config/config';import * as patternUtils from '../../utils/pattern';-import { SHEETS_NUMFMT_PLUGIN_CONFIG_KEY } from '../config.schema';import { SheetsNumfmtCellContentController } from '../numfmt-cell-content.controller';function createWorkbookData(): IWorkbookData {diff --git a/packages/sheets-numfmt/src/controllers/numfmt-cell-content.controller.ts b/packages/sheets-numfmt/src/controllers/numfmt-cell-content.controller.tsindex 33988a35f1..67922fefb8 100644--- a/packages/sheets-numfmt/src/controllers/numfmt-cell-content.controller.ts+++ b/packages/sheets-numfmt/src/controllers/numfmt-cell-content.controller.ts@@ -16,7 +16,7 @@import type { ICellData, ICellDataForSheetInterceptor, INumfmtLocaleTag, Workbook } from '@univerjs/core';import type { ISetNumfmtMutationParams, ISetRangeValuesMutationParams } from '@univerjs/sheets';-import type { IUniverSheetsNumfmtConfig } from './config.schema';+import type { IUniverSheetsNumfmtConfig } from '../config/config';import {CellValueType,Disposable,@@ -44,8 +44,8 @@ import {SheetInterceptorService,} from '@univerjs/sheets';import { BehaviorSubject, merge, of, skip, switchMap } from 'rxjs';+import { SHEETS_NUMFMT_PLUGIN_CONFIG_KEY } from '../config/config';import { getPatternPreviewIgnoreGeneral } from '../utils/pattern';-import { SHEETS_NUMFMT_PLUGIN_CONFIG_KEY } from './config.schema';const TEXT_FORMAT_MARK = {tl: {diff --git a/packages/sheets-numfmt/src/index.ts b/packages/sheets-numfmt/src/index.tsindex e37a2ded8e..986a818cff 100644--- a/packages/sheets-numfmt/src/index.ts+++ b/packages/sheets-numfmt/src/index.ts@@ -21,8 +21,8 @@ export { SetCurrencyCommand } from './commands/commands/set-currency.command';export { type ISetNumfmtCommandParams, SetNumfmtCommand } from './commands/commands/set-numfmt.command';export { SetPercentCommand } from './commands/commands/set-percent.command';export { SubtractDecimalCommand } from './commands/commands/subtract-decimal.command';-export { SHEETS_NUMFMT_PLUGIN_CONFIG_KEY } from './controllers/config.schema';-export type { IUniverSheetsNumfmtConfig } from './controllers/config.schema';+export { SHEETS_NUMFMT_PLUGIN_CONFIG_KEY } from './config/config';+export type { IUniverSheetsNumfmtConfig } from './config/config';export { SheetsNumfmtCellContentController } from './controllers/numfmt-cell-content.controller';export { UniverSheetsNumfmtPlugin } from './plugin';export { getCurrencyType } from './utils/currency';diff --git a/packages/sheets-numfmt/src/plugin.ts b/packages/sheets-numfmt/src/plugin.tsindex d2001b04fb..110a87cdbd 100644--- a/packages/sheets-numfmt/src/plugin.ts+++ b/packages/sheets-numfmt/src/plugin.ts@@ -14,7 +14,7 @@* limitations under the License.*/-import type { IUniverSheetsNumfmtConfig } from './controllers/config.schema';+import type { IUniverSheetsNumfmtConfig } from './config/config';import { DependentOn, ICommandService, IConfigService, Inject, Injector, merge, Plugin, registerDependencies, touchDependencies, UniverInstanceType } from '@univerjs/core';import { UniverSheetsPlugin } from '@univerjs/sheets';import pkg from '../package.json';@@ -24,7 +24,7 @@ import { SetCurrencyCommand } from './commands/commands/set-currency.command';import { SetNumfmtCommand } from './commands/commands/set-numfmt.command';import { SetPercentCommand } from './commands/commands/set-percent.command';import { SubtractDecimalCommand } from './commands/commands/subtract-decimal.command';-import { defaultPluginConfig, SHEETS_NUMFMT_PLUGIN_CONFIG_KEY } from './controllers/config.schema';+import { defaultPluginConfig, SHEETS_NUMFMT_PLUGIN_CONFIG_KEY } from './config/config';import { SheetsNumfmtCellContentController } from './controllers/numfmt-cell-content.controller';@DependentOn(UniverSheetsPlugin)diff --git a/packages/sheets-sort-ui/src/commands/commands/sheets-sort.command.ts b/packages/sheets-sort-ui/src/commands/commands/sheets-sort.command.tsindex cd3a0812a2..b35a18e958 100644--- a/packages/sheets-sort-ui/src/commands/commands/sheets-sort.command.ts+++ b/packages/sheets-sort-ui/src/commands/commands/sheets-sort.command.ts@@ -16,7 +16,7 @@import type { IAccessor, ICommand } from '@univerjs/core';import { CommandType } from '@univerjs/core';-import { SheetsSortUIService } from './../../services/sheets-sort-ui.service';+import { SheetsSortUIService } from '../../services/sheets-sort-ui.service';export const SortRangeAscCommand: ICommand = {id: 'sheet.command.sort-range-asc',diff --git a/packages/sheets-sort-ui/src/controllers/config.schema.ts b/packages/sheets-sort-ui/src/config/config.tssimilarity index 100%rename from packages/sheets-sort-ui/src/controllers/config.schema.tsrename to packages/sheets-sort-ui/src/config/config.tsdiff --git a/packages/sheets-sort-ui/src/controllers/sheets-sort-ui.controller.ts b/packages/sheets-sort-ui/src/controllers/sheets-sort-ui.controller.tsindex 89f3571afa..0d7d0395cd 100644--- a/packages/sheets-sort-ui/src/controllers/sheets-sort-ui.controller.ts+++ b/packages/sheets-sort-ui/src/controllers/sheets-sort-ui.controller.ts@@ -35,11 +35,11 @@ import {SortRangeDescExtInCtxMenuCommand,SortRangeDescInCtxMenuCommand,} from '../commands/commands/sheets-sort.command';+import { menuSchema } from '../menu/schema';+import { SHEETS_SORT_ASC_EXT_ICON, SHEETS_SORT_ASC_ICON, SHEETS_SORT_CUSTOM_ICON, SHEETS_SORT_DESC_EXT_ICON, SHEETS_SORT_DESC_ICON } from '../menu/sheets-sort.menu';import { SheetsSortUIService } from '../services/sheets-sort-ui.service';import { CustomSortPanel } from '../views/CustomSortPanel';import EmbedSortBtn from '../views/EmbedSortBtn';-import { menuSchema } from './menu.schema';-import { SHEETS_SORT_ASC_EXT_ICON, SHEETS_SORT_ASC_ICON, SHEETS_SORT_CUSTOM_ICON, SHEETS_SORT_DESC_EXT_ICON, SHEETS_SORT_DESC_ICON } from './sheets-sort.menu';const CUSTOM_SORT_DIALOG_ID = 'custom-sort-dialog';const CUSTOM_SORT_PANEL_WIDTH = 560;diff --git a/packages/sheets-sort-ui/src/index.ts b/packages/sheets-sort-ui/src/index.tsindex 2c8e07f1e2..009146e14d 100644--- a/packages/sheets-sort-ui/src/index.ts+++ b/packages/sheets-sort-ui/src/index.ts@@ -28,5 +28,5 @@ export {SortRangeDescExtInCtxMenuCommand,SortRangeDescInCtxMenuCommand,} from './commands/commands/sheets-sort.command';-export type { IUniverSheetsSortUIConfig } from './controllers/config.schema';+export type { IUniverSheetsSortUIConfig } from './config/config';export { UniverSheetsSortUIPlugin } from './plugin';diff --git a/packages/sheets-sort-ui/src/controllers/menu.schema.ts b/packages/sheets-sort-ui/src/menu/schema.tssimilarity index 100%rename from packages/sheets-sort-ui/src/controllers/menu.schema.tsrename to packages/sheets-sort-ui/src/menu/schema.tsdiff --git a/packages/sheets-sort-ui/src/controllers/sheets-sort.menu.ts b/packages/sheets-sort-ui/src/menu/sheets-sort.menu.tssimilarity index 100%rename from packages/sheets-sort-ui/src/controllers/sheets-sort.menu.tsrename to packages/sheets-sort-ui/src/menu/sheets-sort.menu.tsdiff --git a/packages/sheets-sort-ui/src/plugin.ts b/packages/sheets-sort-ui/src/plugin.tsindex f247fab03b..2d90d1084b 100644--- a/packages/sheets-sort-ui/src/plugin.ts+++ b/packages/sheets-sort-ui/src/plugin.ts@@ -15,7 +15,7 @@*/import type { Dependency } from '@univerjs/core';-import type { IUniverSheetsSortUIConfig } from './controllers/config.schema';+import type { IUniverSheetsSortUIConfig } from './config/config';import {DependentOn,IConfigService,@@ -27,7 +27,7 @@ import {} from '@univerjs/core';import { UniverSheetsSortPlugin } from '@univerjs/sheets-sort';import pkg from '../package.json';-import { defaultPluginConfig, SHEETS_SORT_UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';+import { defaultPluginConfig, SHEETS_SORT_UI_PLUGIN_CONFIG_KEY } from './config/config';import { SheetsSortUIController } from './controllers/sheets-sort-ui.controller';import { SheetsSortUIService } from './services/sheets-sort-ui.service';diff --git a/packages/sheets-sort/src/controllers/config.schema.ts b/packages/sheets-sort/src/config/config.tssimilarity index 100%rename from packages/sheets-sort/src/controllers/config.schema.tsrename to packages/sheets-sort/src/config/config.tsdiff --git a/packages/sheets-sort/src/index.ts b/packages/sheets-sort/src/index.tsindex aea689d39e..fc7451ca3d 100644--- a/packages/sheets-sort/src/index.ts+++ b/packages/sheets-sort/src/index.ts@@ -15,7 +15,7 @@*/export { type ISortRangeCommandParams, SortRangeCommand } from './commands/commands/sheets-sort.command';-export type { IUniverSheetsSortConfig } from './controllers/config.schema';+export type { IUniverSheetsSortConfig } from './config/config';export { UniverSheetsSortPlugin } from './plugin';export { type IOrderRule, type ISortOption, SortType } from './services/interface';export { SheetsSortService } from './services/sheets-sort.service';diff --git a/packages/sheets-sort/src/plugin.ts b/packages/sheets-sort/src/plugin.tsindex 48ebe12867..fe8b939491 100644--- a/packages/sheets-sort/src/plugin.ts+++ b/packages/sheets-sort/src/plugin.ts@@ -15,12 +15,12 @@*/import type { Dependency } from '@univerjs/core';-import type { IUniverSheetsSortConfig } from './controllers/config.schema';+import type { IUniverSheetsSortConfig } from './config/config';import { DependentOn, IConfigService, Inject, Injector, merge, Plugin, UniverInstanceType } from '@univerjs/core';import { UniverFormulaEnginePlugin } from '@univerjs/engine-formula';import { UniverSheetsPlugin } from '@univerjs/sheets';import pkg from '../package.json';-import { defaultPluginConfig, SHEETS_SORT_PLUGIN_CONFIG_KEY } from './controllers/config.schema';+import { defaultPluginConfig, SHEETS_SORT_PLUGIN_CONFIG_KEY } from './config/config';import { SheetsSortController } from './controllers/sheets-sort.controller';import { SheetsSortService } from './services/sheets-sort.service';diff --git a/packages/sheets-table-ui/src/controllers/config.schema.ts b/packages/sheets-table-ui/src/config/config.tssimilarity index 100%rename from packages/sheets-table-ui/src/controllers/config.schema.tsrename to packages/sheets-table-ui/src/config/config.tsdiff --git a/packages/sheets-table-ui/src/index.ts b/packages/sheets-table-ui/src/index.tsindex a224c8c756..682b3072f2 100644--- a/packages/sheets-table-ui/src/index.ts+++ b/packages/sheets-table-ui/src/index.ts@@ -16,5 +16,5 @@import './global.css';-export type { IUniverSheetsTableUIConfig } from './controllers/config.schema';+export type { IUniverSheetsTableUIConfig } from './config/config';export { UniverSheetsTableUIPlugin } from './plugin';diff --git a/packages/sheets-table-ui/src/controllers/__tests__/sheet-table-menu.controller.spec.ts b/packages/sheets-table-ui/src/menu/__tests__/sheet-table-menu.controller.spec.tssimilarity index 97%rename from packages/sheets-table-ui/src/controllers/__tests__/sheet-table-menu.controller.spec.tsrename to packages/sheets-table-ui/src/menu/__tests__/sheet-table-menu.controller.spec.tsindex fae5a2cadb..9ecd74d2b7 100644--- a/packages/sheets-table-ui/src/controllers/__tests__/sheet-table-menu.controller.spec.ts+++ b/packages/sheets-table-ui/src/menu/__tests__/sheet-table-menu.controller.spec.ts@@ -16,7 +16,7 @@import { describe, expect, it, vi } from 'vitest';import { SHEET_TABLE_THEME_PANEL, TABLE_SELECTOR_DIALOG, TABLE_TOOLBAR_BUTTON } from '../../const';-import { menuSchema } from '../menu.schema';+import { menuSchema } from '../schema';import { SheetTableMenuController } from '../sheet-table-menu.controller';describe('SheetTableMenuController', () => {diff --git a/packages/sheets-table-ui/src/views/menu.ts b/packages/sheets-table-ui/src/menu/menu.tssimilarity index 100%rename from packages/sheets-table-ui/src/views/menu.tsrename to packages/sheets-table-ui/src/menu/menu.tsdiff --git a/packages/sheets-table-ui/src/controllers/menu.schema.ts b/packages/sheets-table-ui/src/menu/schema.tssimilarity index 99%rename from packages/sheets-table-ui/src/controllers/menu.schema.tsrename to packages/sheets-table-ui/src/menu/schema.tsindex 86763fd3ad..0852a16a43 100644--- a/packages/sheets-table-ui/src/controllers/menu.schema.ts+++ b/packages/sheets-table-ui/src/menu/schema.ts@@ -18,7 +18,7 @@ import type { MenuSchemaType } from '@univerjs/ui';import { SheetTableInsertColCommand, SheetTableInsertRowCommand, SheetTableRemoveColCommand, SheetTableRemoveRowCommand } from '@univerjs/sheets-table';import { ContextMenuGroup, ContextMenuPosition, RibbonDataGroup } from '@univerjs/ui';import { OpenTableSelectorOperation } from '../commands/operations/open-table-selector.operation';-import { SHEET_TABLE_CONTEXT_INSERT_MENU_ID, SHEET_TABLE_CONTEXT_REMOVE_MENU_ID, SheetTableInsertColMenuFactory, SheetTableInsertContextMenuFactory, SheetTableInsertRowMenuFactory, SheetTableRemoveColMenuFactory, SheetTableRemoveContextMenuFactory, SheetTableRemoveRowMenuFactory, sheetTableToolbarInsertMenuFactory } from '../views/menu';+import { SHEET_TABLE_CONTEXT_INSERT_MENU_ID, SHEET_TABLE_CONTEXT_REMOVE_MENU_ID, SheetTableInsertColMenuFactory, SheetTableInsertContextMenuFactory, SheetTableInsertRowMenuFactory, SheetTableRemoveColMenuFactory, SheetTableRemoveContextMenuFactory, SheetTableRemoveRowMenuFactory, sheetTableToolbarInsertMenuFactory } from './menu';export const menuSchema: MenuSchemaType = {[RibbonDataGroup.ORGANIZATION]: {diff --git a/packages/sheets-table-ui/src/controllers/sheet-table-menu.controller.ts b/packages/sheets-table-ui/src/menu/sheet-table-menu.controller.tssimilarity index 97%rename from packages/sheets-table-ui/src/controllers/sheet-table-menu.controller.tsrename to packages/sheets-table-ui/src/menu/sheet-table-menu.controller.tsindex d1605e71d5..356eae724d 100644--- a/packages/sheets-table-ui/src/controllers/sheet-table-menu.controller.ts+++ b/packages/sheets-table-ui/src/menu/sheet-table-menu.controller.ts@@ -20,7 +20,7 @@ import { ComponentManager, IMenuManagerService } from '@univerjs/ui';import { SHEET_TABLE_THEME_PANEL, TABLE_SELECTOR_DIALOG, TABLE_TOOLBAR_BUTTON } from '../const';import { SheetTableSelector } from '../views/components/SheetTableSelector';import { SheetTableThemePanel } from '../views/components/SheetTableThemePanel';-import { menuSchema } from './menu.schema';+import { menuSchema } from './schema';export class SheetTableMenuController extends Disposable {constructor(diff --git a/packages/sheets-table-ui/src/plugin.ts b/packages/sheets-table-ui/src/plugin.tsindex 7af5a66367..384d449fbc 100644--- a/packages/sheets-table-ui/src/plugin.ts+++ b/packages/sheets-table-ui/src/plugin.ts@@ -15,22 +15,22 @@*/import type { Dependency } from '@univerjs/core';-import type { IUniverSheetsTableUIConfig } from './controllers/config.schema';+import type { IUniverSheetsTableUIConfig } from './config/config';import { DependentOn, ICommandService, IConfigService, Inject, Injector, merge, Plugin, registerDependencies, touchDependencies, UniverInstanceType } from '@univerjs/core';import { IRenderManagerService } from '@univerjs/engine-render';import { UniverSheetsTablePlugin } from '@univerjs/sheets-table';import pkg from '../package.json';import { OpenTableFilterPanelOperation } from './commands/operations/open-table-filter-dialog.opration';import { OpenTableSelectorOperation } from './commands/operations/open-table-selector.operation';+import { defaultPluginConfig, SHEETS_TABLE_UI_PLUGIN_CONFIG_KEY } from './config/config';import { PLUGIN_NAME } from './const';-import { defaultPluginConfig, SHEETS_TABLE_UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';import { SheetTableAnchorController } from './controllers/sheet-table-anchor.controller';import { SheetsTableComponentController } from './controllers/sheet-table-component.controller';import { SheetsTableFilterButtonRenderController } from './controllers/sheet-table-filter-button-render.controller';-import { SheetTableMenuController } from './controllers/sheet-table-menu.controller';import { SheetsTableRenderController } from './controllers/sheet-table-render.controller';import { SheetTableSelectionController } from './controllers/sheet-table-selection.controller';import { SheetTableThemeUIController } from './controllers/sheet-table-theme-ui.controller';+import { SheetTableMenuController } from './menu/sheet-table-menu.controller';import { SheetsTableUiService } from './services/sheets-table-ui-service';@DependentOn(UniverSheetsTablePlugin)diff --git a/packages/sheets-table-ui/src/views/components/SheetTableAnchor.tsx b/packages/sheets-table-ui/src/views/components/SheetTableAnchor.tsxindex d54af9a3e5..6d6ce7ba38 100644--- a/packages/sheets-table-ui/src/views/components/SheetTableAnchor.tsx+++ b/packages/sheets-table-ui/src/views/components/SheetTableAnchor.tsx@@ -14,7 +14,7 @@* limitations under the License.*/-import type { IUniverSheetsTableUIConfig } from '../../controllers/config.schema';+import type { IUniverSheetsTableUIConfig } from '../../config/config';import { cellToRange, ICommandService, IConfigService, Injector, IUniverInstanceService, LocaleService, Rectangle } from '@univerjs/core';import { borderClassName, clsx, Dropdown, Input } from '@univerjs/design';import { DeleteIcon, GridOutlineIcon, MoreDownIcon, PaintBucketDoubleIcon, RenameIcon } from '@univerjs/icons';@@ -23,8 +23,8 @@ import { DeleteSheetTableCommand, SetSheetTableCommand, TableManager } from '@unimport { ISidebarService, useDependency, useObservable } from '@univerjs/ui';import { useEffect, useState } from 'react';import { openRangeSelector } from '../../commands/operations/open-table-selector.operation';+import { SHEETS_TABLE_UI_PLUGIN_CONFIG_KEY } from '../../config/config';import { SHEET_TABLE_THEME_PANEL, SHEET_TABLE_THEME_PANEL_ID } from '../../const';-import { SHEETS_TABLE_UI_PLUGIN_CONFIG_KEY } from '../../controllers/config.schema';import { SheetTableAnchorController } from '../../controllers/sheet-table-anchor.controller';import { SheetTableThemeUIController } from '../../controllers/sheet-table-theme-ui.controller';diff --git a/packages/sheets-table/src/controllers/config.schema.ts b/packages/sheets-table/src/config/config.tssimilarity index 100%rename from packages/sheets-table/src/controllers/config.schema.tsrename to packages/sheets-table/src/config/config.tsdiff --git a/packages/sheets-table/src/controllers/__tests__/table-theme.factory.spec.ts b/packages/sheets-table/src/controllers/__tests__/table-theme.factory.spec.tsindex 6c27352e33..c4ec647ee7 100644--- a/packages/sheets-table/src/controllers/__tests__/table-theme.factory.spec.ts+++ b/packages/sheets-table/src/controllers/__tests__/table-theme.factory.spec.ts@@ -15,7 +15,7 @@*/import { describe, expect, it } from 'vitest';-import { tableDefaultBorderStyle } from '../config.schema';+import { tableDefaultBorderStyle } from '../../config/config';import { customEmptyThemeWithBorderStyle, processStyleWithBorderStyle, tableThemeConfig } from '../table-theme.factory';describe('table-theme.factory', () => {diff --git a/packages/sheets-table/src/controllers/sheet-table-theme.controller.ts b/packages/sheets-table/src/controllers/sheet-table-theme.controller.tsindex ebf297b270..01326f0dd4 100644--- a/packages/sheets-table/src/controllers/sheet-table-theme.controller.ts+++ b/packages/sheets-table/src/controllers/sheet-table-theme.controller.ts@@ -14,13 +14,13 @@* limitations under the License.*/-import type { ITableDefaultThemeStyle, IUniverSheetsTableConfig } from './config.schema';+import type { ITableDefaultThemeStyle, IUniverSheetsTableConfig } from '../config/config';import { Disposable, IConfigService, Inject } from '@univerjs/core';import { RangeThemeStyle, SheetRangeThemeModel, SheetRangeThemeService } from '@univerjs/sheets';+import { SHEETS_TABLE_PLUGIN_CONFIG_KEY } from '../config/config';import { TableManager } from '../model/table-manager';-import { SHEETS_TABLE_PLUGIN_CONFIG_KEY } from './config.schema';import { tableThemeConfig } from './table-theme.factory';export class SheetsTableThemeController extends Disposable {diff --git a/packages/sheets-table/src/controllers/table-theme.factory.ts b/packages/sheets-table/src/controllers/table-theme.factory.tsindex 85e3311205..f46e7fe43c 100644--- a/packages/sheets-table/src/controllers/table-theme.factory.ts+++ b/packages/sheets-table/src/controllers/table-theme.factory.ts@@ -15,8 +15,8 @@*/import type { IRangeThemeStyleItem, IRangeThemeStyleJSON } from '@univerjs/sheets';-import type { ITableDefaultThemeStyle } from './config.schema';-import { tableDefaultBorderStyle } from './config.schema';+import type { ITableDefaultThemeStyle } from '../config/config';+import { tableDefaultBorderStyle } from '../config/config';export const customEmptyThemeWithBorderStyle: Omit<IRangeThemeStyleJSON, 'name'> = {headerRowStyle: {diff --git a/packages/sheets-table/src/index.ts b/packages/sheets-table/src/index.tsindex 0d7385ab93..d7f773f56e 100644--- a/packages/sheets-table/src/index.ts+++ b/packages/sheets-table/src/index.ts@@ -14,32 +14,32 @@* limitations under the License.*/-export { AddSheetTableCommand } from '../src/commands/commands/add-sheet-table.command';-export { DeleteSheetTableCommand } from '../src/commands/commands/delete-sheet-table.command';-export { SetSheetTableFilterCommand } from '../src/commands/commands/set-table-filter.command';-export { AddSheetTableMutation } from '../src/commands/mutations/add-sheet-table.mutation';-export type { IAddSheetTableParams } from '../src/commands/mutations/add-sheet-table.mutation';-export { DeleteSheetTableMutation } from '../src/commands/mutations/delete-sheet-table.mutation';-export type { IDeleteSheetTableParams } from '../src/commands/mutations/delete-sheet-table.mutation';-export { SetSheetTableFilterMutation } from '../src/commands/mutations/set-table-filter.mutation';-export type { ISetSheetTableParams } from '../src/commands/mutations/set-table-filter.mutation';-export { SheetsTableController } from '../src/controllers/sheets-table.controller';-export { TableManager } from '../src/model/table-manager';-export { SheetTableService } from '../src/services/table-service';-export { isConditionFilter, isManualTableFilter } from '../src/util';+export { AddSheetTableCommand } from './commands/commands/add-sheet-table.command';export type { IAddSheetTableCommandParams } from './commands/commands/add-sheet-table.command';export type { IAddTableThemeCommandParams } from './commands/commands/add-table-theme.command';export { AddTableThemeCommand } from './commands/commands/add-table-theme.command';+export { DeleteSheetTableCommand } from './commands/commands/delete-sheet-table.command';export { RemoveTableThemeCommand } from './commands/commands/remove-table-theme.command';export { SetSheetTableCommand } from './commands/commands/set-sheet-table.command';export type { ISetSheetTableCommandParams } from './commands/commands/set-sheet-table.command';+export { SetSheetTableFilterCommand } from './commands/commands/set-table-filter.command';export { SheetTableInsertColCommand, SheetTableInsertRowCommand, SheetTableRemoveColCommand, SheetTableRemoveRowCommand } from './commands/commands/sheet-table-row-col.command';+export { AddSheetTableMutation } from './commands/mutations/add-sheet-table.mutation';+export type { IAddSheetTableParams } from './commands/mutations/add-sheet-table.mutation';+export { DeleteSheetTableMutation } from './commands/mutations/delete-sheet-table.mutation';+export type { IDeleteSheetTableParams } from './commands/mutations/delete-sheet-table.mutation';export { SetSheetTableMutation } from './commands/mutations/set-sheet-table.mutation';export type { ISetSheetTableMutationParams } from './commands/mutations/set-sheet-table.mutation';+export { SetSheetTableFilterMutation } from './commands/mutations/set-table-filter.mutation';+export type { ISetSheetTableParams } from './commands/mutations/set-table-filter.mutation';+export type { IUniverSheetsTableConfig } from './config/config';export { SHEET_TABLE_CUSTOM_THEME_PREFIX } from './const';-export type { IUniverSheetsTableConfig } from './controllers/config.schema';+export { SheetsTableController } from './controllers/sheets-table.controller';export { customEmptyThemeWithBorderStyle, processStyleWithBorderStyle } from './controllers/table-theme.factory';+export { TableManager } from './model/table-manager';export { UniverSheetsTablePlugin } from './plugin';+export { SheetTableService } from './services/table-service';export { SheetsTableButtonStateEnum, SheetsTableSortStateEnum, TableColumnDataTypeEnum, TableColumnFilterTypeEnum, TableConditionTypeEnum, TableDateCompareTypeEnum, TableNumberCompareTypeEnum, TableStringCompareTypeEnum } from './types/enum';export type { ITableColumnJson, ITableConditionFilterItem, ITableData, ITableFilterItem, ITableInfo, ITableInfoWithUnitId, ITableManualFilterItem, ITableOptions, ITableRange, ITableRangeWithState, TableMetaType, TableRelationTupleType } from './types/type';export type { ITableJson, ITableSetConfig } from './types/type';+export { isConditionFilter, isManualTableFilter } from './util';diff --git a/packages/sheets-table/src/plugin.ts b/packages/sheets-table/src/plugin.tsindex 4e1b11ed2a..0f40da0cd5 100644--- a/packages/sheets-table/src/plugin.ts+++ b/packages/sheets-table/src/plugin.ts@@ -14,7 +14,7 @@* limitations under the License.*/-import type { IUniverSheetsTableConfig } from './controllers/config.schema';+import type { IUniverSheetsTableConfig } from './config/config';import { ICommandService, IConfigService, Inject, Injector, merge, Plugin, registerDependencies, touchDependencies, UniverInstanceType } from '@univerjs/core';import pkg from '../package.json';import { AddSheetTableCommand } from './commands/commands/add-sheet-table.command';@@ -28,8 +28,8 @@ import { AddSheetTableMutation } from './commands/mutations/add-sheet-table.mutaimport { DeleteSheetTableMutation } from './commands/mutations/delete-sheet-table.mutation';import { SetSheetTableMutation } from './commands/mutations/set-sheet-table.mutation';import { SetSheetTableFilterMutation } from './commands/mutations/set-table-filter.mutation';+import { defaultPluginConfig, SHEETS_TABLE_PLUGIN_CONFIG_KEY } from './config/config';import { PLUGIN_NAME } from './const';-import { defaultPluginConfig, SHEETS_TABLE_PLUGIN_CONFIG_KEY } from './controllers/config.schema';import { SheetTableFormulaController } from './controllers/sheet-table-formula.controller';import { SheetTableRangeController } from './controllers/sheet-table-range.controller';import { SheetTableRefRangeController } from './controllers/sheet-table-ref-range.controller';diff --git a/packages/sheets-thread-comment-ui/src/controllers/config.schema.ts b/packages/sheets-thread-comment-ui/src/config/config.tssimilarity index 100%rename from packages/sheets-thread-comment-ui/src/controllers/config.schema.tsrename to packages/sheets-thread-comment-ui/src/config/config.tsdiff --git a/packages/sheets-thread-comment-ui/src/controllers/sheets-thread-comment.controller.ts b/packages/sheets-thread-comment-ui/src/controllers/sheets-thread-comment.controller.tsindex c998dbb9bf..ae985bc0b9 100644--- a/packages/sheets-thread-comment-ui/src/controllers/sheets-thread-comment.controller.ts+++ b/packages/sheets-thread-comment-ui/src/controllers/sheets-thread-comment.controller.ts@@ -18,11 +18,11 @@ import { Disposable, Inject } from '@univerjs/core';import { CommentIcon } from '@univerjs/icons';import { THREAD_COMMENT_PANEL } from '@univerjs/thread-comment-ui';import { ComponentManager, IMenuManagerService, IShortcutService } from '@univerjs/ui';+import { AddCommentShortcut } from '../menu/menu';+import { menuSchema } from '../menu/schema';import { SHEETS_THREAD_COMMENT_MODAL } from '../types/const';import { SheetsThreadCommentCell } from '../views/sheets-thread-comment-cell';import { SheetsThreadCommentPanel } from '../views/sheets-thread-comment-panel';-import { AddCommentShortcut } from './menu';-import { menuSchema } from './menu.schema';export class SheetsThreadCommentController extends Disposable {constructor(diff --git a/packages/sheets-thread-comment-ui/src/index.ts b/packages/sheets-thread-comment-ui/src/index.tsindex 46cad57bad..e77c4bd8e5 100644--- a/packages/sheets-thread-comment-ui/src/index.ts+++ b/packages/sheets-thread-comment-ui/src/index.ts@@ -17,7 +17,7 @@import './global.css';export { ShowAddSheetCommentModalOperation } from './commands/operations/comment.operation';-export type { IUniverSheetsThreadCommentUIConfig } from './controllers/config.schema';+export type { IUniverSheetsThreadCommentUIConfig } from './config/config';export { UniverSheetsThreadCommentUIPlugin } from './plugin';export { SheetsThreadCommentPopupService } from './services/sheets-thread-comment-popup.service';export { SHEETS_THREAD_COMMENT } from './types/const';diff --git a/packages/sheets-thread-comment-ui/src/controllers/menu.ts b/packages/sheets-thread-comment-ui/src/menu/menu.tssimilarity index 100%rename from packages/sheets-thread-comment-ui/src/controllers/menu.tsrename to packages/sheets-thread-comment-ui/src/menu/menu.tsdiff --git a/packages/sheets-thread-comment-ui/src/controllers/menu.schema.ts b/packages/sheets-thread-comment-ui/src/menu/schema.tssimilarity index 100%rename from packages/sheets-thread-comment-ui/src/controllers/menu.schema.tsrename to packages/sheets-thread-comment-ui/src/menu/schema.tsdiff --git a/packages/sheets-thread-comment-ui/src/plugin.ts b/packages/sheets-thread-comment-ui/src/plugin.tsindex 5dbfdacfd5..dd05b2c8a5 100644--- a/packages/sheets-thread-comment-ui/src/plugin.ts+++ b/packages/sheets-thread-comment-ui/src/plugin.ts@@ -15,13 +15,13 @@*/import type { Dependency } from '@univerjs/core';-import type { IUniverSheetsThreadCommentUIConfig } from './controllers/config.schema';+import type { IUniverSheetsThreadCommentUIConfig } from './config/config';import { DependentOn, ICommandService, IConfigService, Inject, Injector, merge, Plugin, UniverInstanceType } from '@univerjs/core';import { UniverSheetsThreadCommentPlugin } from '@univerjs/sheets-thread-comment';import { UniverThreadCommentUIPlugin } from '@univerjs/thread-comment-ui';import pkg from '../package.json';import { ShowAddSheetCommentModalOperation } from './commands/operations/comment.operation';-import { defaultPluginConfig, SHEETS_THREAD_COMMENT_UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';+import { defaultPluginConfig, SHEETS_THREAD_COMMENT_UI_PLUGIN_CONFIG_KEY } from './config/config';import { SheetsThreadCommentRenderController } from './controllers/render-controllers/render.controller';import { SheetsThreadCommentCopyPasteController } from './controllers/sheets-thread-comment-copy-paste.controller';import { SheetsThreadCommentHoverController } from './controllers/sheets-thread-comment-hover.controller';diff --git a/packages/sheets-thread-comment/src/controllers/config.schema.ts b/packages/sheets-thread-comment/src/config/config.tssimilarity index 100%rename from packages/sheets-thread-comment/src/controllers/config.schema.tsrename to packages/sheets-thread-comment/src/config/config.tsdiff --git a/packages/sheets-thread-comment/src/index.ts b/packages/sheets-thread-comment/src/index.tsindex fe3ebd01f9..7bc252067c 100644--- a/packages/sheets-thread-comment/src/index.ts+++ b/packages/sheets-thread-comment/src/index.ts@@ -14,7 +14,7 @@* limitations under the License.*/-export type { IUniverSheetsThreadCommentConfig } from './controllers/config.schema';+export type { IUniverSheetsThreadCommentConfig } from './config/config';export { SheetsThreadCommentRefRangeController } from './controllers/sheets-thread-comment-ref-range.controller';export { SheetsThreadCommentModel } from './models/sheets-thread-comment.model';export { UniverSheetsThreadCommentPlugin } from './plugin';diff --git a/packages/sheets-thread-comment/src/plugin.ts b/packages/sheets-thread-comment/src/plugin.tsindex f4c336c603..11badd9956 100644--- a/packages/sheets-thread-comment/src/plugin.ts+++ b/packages/sheets-thread-comment/src/plugin.ts@@ -15,11 +15,11 @@*/import type { Dependency } from '@univerjs/core';-import type { IUniverSheetsThreadCommentConfig } from './controllers/config.schema';+import type { IUniverSheetsThreadCommentConfig } from './config/config';import { DependentOn, ICommandService, Inject, Injector, Plugin, touchDependencies, UniverInstanceType } from '@univerjs/core';import { UniverThreadCommentPlugin } from '@univerjs/thread-comment';import pkg from '../package.json';-import { defaultPluginConfig } from './controllers/config.schema';+import { defaultPluginConfig } from './config/config';import { SheetsThreadCommentRefRangeController } from './controllers/sheets-thread-comment-ref-range.controller';import { SheetsThreadCommentResourceController } from './controllers/sheets-thread-comment-resource.controller';import { SheetsThreadCommentModel } from './models/sheets-thread-comment.model';diff --git a/packages/sheets-ui/src/commands/commands/__tests__/command-behavior.spec.ts b/packages/sheets-ui/src/commands/commands/__tests__/command-behavior.spec.tsindex 41226b3f82..5e5b62c4b6 100644--- a/packages/sheets-ui/src/commands/commands/__tests__/command-behavior.spec.ts+++ b/packages/sheets-ui/src/commands/commands/__tests__/command-behavior.spec.ts@@ -57,7 +57,7 @@ import {import { describe, expect, it, vi } from 'vitest';import { SHEET_VIEW_KEY, SHEET_ZOOM_RANGE } from '../../../common/keys';import { AutoWidthController } from '../../../controllers/auto-width.controller';-import * as menuUtils from '../../../controllers/menu/utils';+import * as menuUtils from '../../../menu/utils';import { IEditorBridgeService } from '../../../services/editor-bridge.service';import { ISheetBarService } from '../../../services/sheet-bar/sheet-bar.service';import { SetScrollOperation } from '../../operations/scroll.operation';diff --git a/packages/sheets-ui/src/commands/commands/inline-format.command.ts b/packages/sheets-ui/src/commands/commands/inline-format.command.tsindex 93d8bff76b..14d038018c 100644--- a/packages/sheets-ui/src/commands/commands/inline-format.command.ts+++ b/packages/sheets-ui/src/commands/commands/inline-format.command.ts@@ -37,7 +37,7 @@ import {SetUnderlineCommand,SheetsSelectionsService,} from '@univerjs/sheets';-import { getFontStyleAtCursor } from '../../controllers/menu/utils';+import { getFontStyleAtCursor } from '../../menu/utils';/*** It is used to set the bold style of selections or one cell, need to distinguish betweendiff --git a/packages/sheets-ui/src/commands/operations/cell-edit.operation.ts b/packages/sheets-ui/src/commands/operations/cell-edit.operation.tsindex 644cf02e2a..8ec3b9c2db 100644--- a/packages/sheets-ui/src/commands/operations/cell-edit.operation.ts+++ b/packages/sheets-ui/src/commands/operations/cell-edit.operation.ts@@ -15,11 +15,11 @@*/import type { IOperation, Workbook } from '@univerjs/core';-import type { IUniverSheetsUIConfig } from '../../controllers/config.schema';+import type { IUniverSheetsUIConfig } from '../../config/config';import type { IEditorBridgeServiceVisibleParam } from '../../services/editor-bridge.service';import { CommandType, ICommandService, IConfigService, IUniverInstanceService, UniverInstanceType } from '@univerjs/core';-import { SHEETS_UI_PLUGIN_CONFIG_KEY } from '../../controllers/config.schema';+import { SHEETS_UI_PLUGIN_CONFIG_KEY } from '../../config/config';import { IEditorBridgeService } from '../../services/editor-bridge.service';export const SetCellEditVisibleOperation: IOperation<IEditorBridgeServiceVisibleParam> = {diff --git a/packages/sheets-ui/src/controllers/config.schema.ts b/packages/sheets-ui/src/config/config.tssimilarity index 100%rename from packages/sheets-ui/src/controllers/config.schema.tsrename to packages/sheets-ui/src/config/config.tsdiff --git a/packages/sheets-ui/src/controllers/clipboard/clipboard.controller.ts b/packages/sheets-ui/src/controllers/clipboard/clipboard.controller.tsindex 5cd57a4313..13339158bd 100644--- a/packages/sheets-ui/src/controllers/clipboard/clipboard.controller.ts+++ b/packages/sheets-ui/src/controllers/clipboard/clipboard.controller.ts@@ -31,6 +31,7 @@ import type {ISetRangeValuesMutationParams,ISetWorksheetColWidthMutationParams,} from '@univerjs/sheets';+import type { IUniverSheetsUIConfig } from '../../config/config';import type {ICellDataWithSpanInfo,IClipboardPropertyItem,@@ -39,7 +40,6 @@ import type {ISheetDiscreteRangeLocation,} from '../../services/clipboard/type';import type { IScrollStateWithSearchParam } from '../../services/scroll-manager.service';-import type { IUniverSheetsUIConfig } from '../config.schema';import {DEFAULT_WORKSHEET_COLUMN_WIDTH,DEFAULT_WORKSHEET_COLUMN_WIDTH_KEY,@@ -92,10 +92,10 @@ import {SheetPasteValueCommand,} from '../../commands/commands/clipboard.command';import { SetScrollOperation } from '../../commands/operations/scroll.operation';+import { SHEETS_UI_PLUGIN_CONFIG_KEY } from '../../config/config';import { ISheetClipboardService, PREDEFINED_HOOK_NAME_COPY, PREDEFINED_HOOK_NAME_PASTE } from '../../services/clipboard/clipboard.service';import { SheetSkeletonManagerService } from '../../services/sheet-skeleton-manager.service';import { ClipboardPopupMenu } from '../../views/clipboard/ClipboardPopupMenu';-import { SHEETS_UI_PLUGIN_CONFIG_KEY } from '../config.schema';import { whenSheetEditorFocused } from '../shortcuts/utils';import { RemovePasteMenuCommands } from './const';import {diff --git a/packages/sheets-ui/src/controllers/editor/editing.render-controller.ts b/packages/sheets-ui/src/controllers/editor/editing.render-controller.tsindex 38c4d5221f..51f18249a4 100644--- a/packages/sheets-ui/src/controllers/editor/editing.render-controller.ts+++ b/packages/sheets-ui/src/controllers/editor/editing.render-controller.ts@@ -32,8 +32,8 @@ import type {} from '@univerjs/core';import type { IRichTextEditingMutationParams } from '@univerjs/docs';import type { ISetRangeValuesCommandParams, MutationsAffectRange } from '@univerjs/sheets';+import type { IUniverSheetsUIConfig } from '../../config/config';import type { IEditorBridgeServiceVisibleParam } from '../../services/editor-bridge.service';-import type { IUniverSheetsUIConfig } from '../config.schema';import {CellValueType,DEFAULT_EMPTY_DOCUMENT_VALUE,@@ -89,10 +89,10 @@ import { getEditorObject } from '../../basics/editor/get-editor-object';import { MoveSelectionCommand, MoveSelectionEnterAndTabCommand } from '../../commands/commands/set-selection.command';import { SetCellEditVisibleArrowOperation, SetCellEditVisibleOperation, SetCellEditVisibleWithF2Operation } from '../../commands/operations/cell-edit.operation';import { ScrollToRangeOperation } from '../../commands/operations/scroll-to-range.operation';+import { SHEETS_UI_PLUGIN_CONFIG_KEY } from '../../config/config';import { IEditorBridgeService } from '../../services/editor-bridge.service';import { ICellEditorManagerService } from '../../services/editor/cell-editor-manager.service';import { SheetCellEditorResizeService } from '../../services/editor/cell-editor-resize.service';-import { SHEETS_UI_PLUGIN_CONFIG_KEY } from '../config.schema';import { EditorBridgeRenderController } from '../render-controllers/editor-bridge.render-controller';import { MOVE_SELECTION_KEYCODE_LIST } from '../shortcuts/editor.shortcut';import { extractStringFromForceString, isForceString } from '../utils/cell-tools';diff --git a/packages/sheets-ui/src/controllers/force-string-alert-render.controller.ts b/packages/sheets-ui/src/controllers/force-string-alert-render.controller.tsindex 103e49c763..566f00ca82 100644--- a/packages/sheets-ui/src/controllers/force-string-alert-render.controller.ts+++ b/packages/sheets-ui/src/controllers/force-string-alert-render.controller.ts@@ -16,12 +16,12 @@import type { Workbook } from '@univerjs/core';import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';-import type { IUniverSheetsUIConfig } from './config.schema';+import type { IUniverSheetsUIConfig } from '../config/config';import { CellValueType, Disposable, getNumfmtParseValueFilter, IConfigService, Inject, isRealNum, isTextFormat, LocaleService } from '@univerjs/core';import { IZenZoneService } from '@univerjs/ui';+import { SHEETS_UI_PLUGIN_CONFIG_KEY } from '../config/config';import { CellAlertManagerService, CellAlertType } from '../services/cell-alert-manager.service';import { HoverManagerService } from '../services/hover-manager.service';-import { SHEETS_UI_PLUGIN_CONFIG_KEY } from './config.schema';const ALERT_KEY = 'SHEET_FORCE_STRING_ALERT';diff --git a/packages/sheets-ui/src/controllers/force-string-render.controller.ts b/packages/sheets-ui/src/controllers/force-string-render.controller.tsindex 308aac9b60..78095116d7 100644--- a/packages/sheets-ui/src/controllers/force-string-render.controller.ts+++ b/packages/sheets-ui/src/controllers/force-string-render.controller.ts@@ -16,11 +16,11 @@import type { Workbook } from '@univerjs/core';import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';-import type { IUniverSheetsUIConfig } from './config.schema';+import type { IUniverSheetsUIConfig } from '../config/config';import { CellValueType, getNumfmtParseValueFilter, IConfigService, Inject, InterceptorEffectEnum, isRealNum, isTextFormat, RxDisposable } from '@univerjs/core';import { INTERCEPTOR_POINT, SheetInterceptorService } from '@univerjs/sheets';+import { SHEETS_UI_PLUGIN_CONFIG_KEY } from '../config/config';import { SheetSkeletonManagerService } from '../services/sheet-skeleton-manager.service';-import { SHEETS_UI_PLUGIN_CONFIG_KEY } from './config.schema';export class ForceStringRenderController extends RxDisposable implements IRenderModule {constructor(diff --git a/packages/sheets-ui/src/controllers/mobile/mobile-sheet-ui.controller.ts b/packages/sheets-ui/src/controllers/mobile/mobile-sheet-ui.controller.tsindex e821a7a96e..8cf8fb21eb 100644--- a/packages/sheets-ui/src/controllers/mobile/mobile-sheet-ui.controller.ts+++ b/packages/sheets-ui/src/controllers/mobile/mobile-sheet-ui.controller.ts@@ -97,6 +97,7 @@ import { BorderPanel } from '../../components/border-panel/BorderPanel';import { BORDER_PANEL_COMPONENT } from '../../components/border-panel/interface';import { MENU_ITEM_FROZEN_COMPONENT, MenuItemFrozen } from '../../components/menu-item-frozen';import { MENU_ITEM_INPUT_COMPONENT, MenuItemInput } from '../../components/menu-item-input';+import { menuSchema } from '../../menu/mobile-menu';import { CellPopup } from '../../views/cell-popup';import { CELL_POPUP_COMPONENT_KEY } from '../../views/cell-popup/config';import { DEFINED_NAME_CONTAINER } from '../../views/defined-name/component-name';@@ -156,7 +157,6 @@ import {ZoomInShortcutItem,ZoomOutShortcutItem,} from '../shortcuts/view.shortcut';-import { menuSchema } from './menu.schema';export class SheetUIMobileController extends Disposable {constructor(diff --git a/packages/sheets-ui/src/controllers/permission/sheet-permission-render.controller.ts b/packages/sheets-ui/src/controllers/permission/sheet-permission-render.controller.tsindex 35065c1657..e16202499e 100644--- a/packages/sheets-ui/src/controllers/permission/sheet-permission-render.controller.ts+++ b/packages/sheets-ui/src/controllers/permission/sheet-permission-render.controller.ts@@ -16,13 +16,14 @@import type { IRenderContext, IRenderModule, Spreadsheet } from '@univerjs/engine-render';import type { MenuConfig } from '@univerjs/ui';-import type { IUniverSheetsUIConfig } from '../config.schema';+import type { IUniverSheetsUIConfig } from '../../config/config';import { Disposable, IConfigService, Inject, Injector, IPermissionService } from '@univerjs/core';import { IRenderManagerService } from '@univerjs/engine-render';import { CheckMarkIcon, DeleteIcon, LockIcon, ProtectIcon, WriteIcon } from '@univerjs/icons';import { RangeProtectionRuleModel, WorksheetProtectionRuleModel } from '@univerjs/sheets';import { ComponentManager } from '@univerjs/ui';import { merge, throttleTime } from 'rxjs';+import { convertToShadowStrategy, SHEETS_UI_PLUGIN_CONFIG_KEY } from '../../config/config';import {permissionCheckIconKey,permissionDeleteIconKey,@@ -40,7 +41,6 @@ import { AlertDialog } from '../../views/permission/error-msg-dialog';import { UNIVER_SHEET_PERMISSION_ALERT_DIALOG } from '../../views/permission/error-msg-dialog/interface';import { RANGE_PROTECTION_CAN_NOT_VIEW_RENDER_EXTENSION_KEY, RANGE_PROTECTION_CAN_VIEW_RENDER_EXTENSION_KEY, RangeProtectionCanNotViewRenderExtension, RangeProtectionCanViewRenderExtension } from '../../views/permission/extensions/range-protection.render';import { worksheetProtectionKey, WorksheetProtectionRenderExtension } from '../../views/permission/extensions/worksheet-permission.render';-import { convertToShadowStrategy, SHEETS_UI_PLUGIN_CONFIG_KEY } from '../config.schema';export interface IUniverSheetsPermissionMenuConfig {menu: MenuConfig;diff --git a/packages/sheets-ui/src/controllers/render-controllers/header-menu.render-controller.ts b/packages/sheets-ui/src/controllers/render-controllers/header-menu.render-controller.tsindex 78ab9175c2..d27874cde2 100644--- a/packages/sheets-ui/src/controllers/render-controllers/header-menu.render-controller.ts+++ b/packages/sheets-ui/src/controllers/render-controllers/header-menu.render-controller.ts@@ -29,8 +29,8 @@ import { ContextMenuPosition, IContextMenuService } from '@univerjs/ui';import { Subscription } from 'rxjs';import { SHEET_COMPONENT_HEADER_LAYER_INDEX, SHEET_VIEW_KEY } from '../../common/keys';+import { HEADER_MENU_SHAPE_TYPE, HeaderMenuShape } from '../../menu/header-menu-shape';import { SheetSkeletonManagerService } from '../../services/sheet-skeleton-manager.service';-import { HEADER_MENU_SHAPE_TYPE, HeaderMenuShape } from '../../views/header-menu-shape';import { getCoordByOffset } from '../utils/component-tools';const HEADER_MENU_CONTROLLER_SHAPE = '__SpreadsheetHeaderMenuSHAPEControllerShape__';diff --git a/packages/sheets-ui/src/controllers/render-controllers/sheet.render-controller.ts b/packages/sheets-ui/src/controllers/render-controllers/sheet.render-controller.tsindex 3f461ef94c..f34d5c9503 100644--- a/packages/sheets-ui/src/controllers/render-controllers/sheet.render-controller.ts+++ b/packages/sheets-ui/src/controllers/render-controllers/sheet.render-controller.ts@@ -17,7 +17,7 @@import type { ICommandInfo, IExecutionOptions, IRange, Nullable, Workbook, Worksheet } from '@univerjs/core';import type { ISetFormulaCalculationNotificationMutation } from '@univerjs/engine-formula';import type { IAfterRender$Info, IBasicFrameInfo, IExtendFrameInfo, IRenderContext, IRenderModule, IScrollBarProps, ISummaryFrameInfo, ISummaryMetric, ITimeMetric, IViewportInfos, Scene } from '@univerjs/engine-render';-import type { IUniverSheetsUIConfig } from '../config.schema';+import type { IUniverSheetsUIConfig } from '../../config/config';import { CommandType, ICommandService, IConfigService, Inject, Optional, Rectangle, RxDisposable } from '@univerjs/core';import { SetFormulaCalculationNotificationMutation } from '@univerjs/engine-formula';@@ -39,9 +39,9 @@ import {SHEET_COMPONENT_MAIN_LAYER_INDEX,SHEET_VIEW_KEY,} from '../../common/keys';+import { SHEETS_UI_PLUGIN_CONFIG_KEY } from '../../config/config';import { SheetSkeletonManagerService } from '../../services/sheet-skeleton-manager.service';import { SheetsRenderService } from '../../services/sheets-render.service';-import { SHEETS_UI_PLUGIN_CONFIG_KEY } from '../config.schema';interface ISetWorksheetMutationParams {unitId: string;diff --git a/packages/sheets-ui/src/controllers/sheet-ui.controller.ts b/packages/sheets-ui/src/controllers/sheet-ui.controller.tsindex 893b54a232..20b9b35ed3 100644--- a/packages/sheets-ui/src/controllers/sheet-ui.controller.ts+++ b/packages/sheets-ui/src/controllers/sheet-ui.controller.ts@@ -91,12 +91,12 @@ import { BorderPanel } from '../components/border-panel/BorderPanel';import { BORDER_PANEL_COMPONENT } from '../components/border-panel/interface';import { MENU_ITEM_FROZEN_COMPONENT, MenuItemFrozen } from '../components/menu-item-frozen';import { MENU_ITEM_INPUT_COMPONENT, MenuItemInput } from '../components/menu-item-input';+import { menuSchema } from '../menu/schema';import { CellPopup } from '../views/cell-popup';import { CELL_POPUP_COMPONENT_KEY } from '../views/cell-popup/config';import { DEFINED_NAME_CONTAINER } from '../views/defined-name/component-name';import { DefinedNameContainer } from '../views/defined-name/DefinedNameContainer';import { RenderSheetContent, RenderSheetFooter, RenderSheetHeader } from '../views/sheet-container/SheetContainer';-import { menuSchema } from './menu.schema';import {EditorBreakLineShortcut,EditorCursorCtrlEnterShortcut,diff --git a/packages/sheets-ui/src/index.ts b/packages/sheets-ui/src/index.tsindex c0855d2eec..8588fac83e 100644--- a/packages/sheets-ui/src/index.ts+++ b/packages/sheets-ui/src/index.ts@@ -89,6 +89,7 @@ export { SidebarDefinedNameOperation } from './commands/operations/sidebar-definexport { EMBEDDING_FORMULA_EDITOR_COMPONENT_KEY, RANGE_SELECTOR_COMPONENT_KEY, SHEET_VIEW_KEY } from './common/keys';export { getCellRealRange, getViewportByCell } from './common/utils';export { useActiveWorkbook, useActiveWorksheet, useWorkbooks } from './components/hook';+export { type IUniverSheetsUIConfig } from './config/config';export { UNIVER_SHEET_PERMISSION_USER_PART } from './consts/permission';export { SHEET_UI_PLUGIN_NAME } from './consts/plugin-name';export { SheetsUIPart } from './consts/ui-name';@@ -96,16 +97,12 @@ export { AutoFillUIController } from './controllers/auto-fill-ui.controller';export { AutoHeightController } from './controllers/auto-height.controller';export { AutoWidthController } from './controllers/auto-width.controller';export { CellCustomRenderController } from './controllers/cell-custom-render.controller';-export { type IUniverSheetsUIConfig } from './controllers/config.schema';export { DragRenderController } from './controllers/drag-render.controller';export { EditingRenderController } from './controllers/editor/editing.render-controller';export { FormulaEditorController } from './controllers/editor/formula-editor.controller';export { EMBEDDING_FORMULA_EDITOR, isEmbeddingFormulaEditor } from './controllers/editor/utils/is-embedding-formula-editor';export { isRangeSelector, RANGE_SELECTOR_SYMBOLS } from './controllers/editor/utils/is-range-selector';export { HoverRenderController } from './controllers/hover-render.controller';-export { menuSchema as SheetsUIMenuSchema } from './controllers/menu.schema';-export { COPY_SPECIAL_MENU_ID, menuClipboardDisabledObservable, PASTE_SPECIAL_MENU_ID, SheetMenuPosition } from './controllers/menu/menu';-export { deriveStateFromActiveSheet$, getCurrentExclusiveRangeInterest$, getCurrentRangeDisable$, getObservableWithExclusiveRange$ } from './controllers/menu/menu-util';export { SheetPermissionCheckUIController } from './controllers/permission/sheet-permission-check-ui.controller';export { HeaderFreezeRenderController } from './controllers/render-controllers/freeze.render-controller';export { HeaderMoveRenderController } from './controllers/render-controllers/header-move.render-controller';@@ -119,6 +116,9 @@ export { getCoordByCell, getCoordByOffset, getSheetObject, getTransformCoord } fexport { virtualizeDiscreteRanges } from './controllers/utils/range-tools';export { matchedSelectionByRowColIndex as checkInHeaderRanges } from './controllers/utils/selections-tools';export { useHighlightRange } from './hooks/use-highlight-range';+export { COPY_SPECIAL_MENU_ID, menuClipboardDisabledObservable, PASTE_SPECIAL_MENU_ID, SheetMenuPosition } from './menu/menu';+export { deriveStateFromActiveSheet$, getCurrentExclusiveRangeInterest$, getCurrentRangeDisable$, getObservableWithExclusiveRange$ } from './menu/menu-util';+export { menuSchema as SheetsUIMenuSchema } from './menu/schema';export { UniverSheetsMobileUIPlugin } from './mobile-plugin';export { UniverSheetsUIPlugin } from './plugin';export { type ICanvasPopup, SheetCanvasPopManagerService } from './services/canvas-pop-manager.service';diff --git a/packages/sheets-ui/src/controllers/menu/__tests__/create-menu-test-bed.ts b/packages/sheets-ui/src/menu/__tests__/create-menu-test-bed.tssimilarity index 100%rename from packages/sheets-ui/src/controllers/menu/__tests__/create-menu-test-bed.tsrename to packages/sheets-ui/src/menu/__tests__/create-menu-test-bed.tsdiff --git a/packages/sheets-ui/src/controllers/menu/__tests__/menu-advanced.spec.ts b/packages/sheets-ui/src/menu/__tests__/menu-advanced.spec.tssimilarity index 100%rename from packages/sheets-ui/src/controllers/menu/__tests__/menu-advanced.spec.tsrename to packages/sheets-ui/src/menu/__tests__/menu-advanced.spec.tsdiff --git a/packages/sheets-ui/src/controllers/menu/__tests__/menu-factories.spec.ts b/packages/sheets-ui/src/menu/__tests__/menu-factories.spec.tssimilarity index 98%rename from packages/sheets-ui/src/controllers/menu/__tests__/menu-factories.spec.tsrename to packages/sheets-ui/src/menu/__tests__/menu-factories.spec.tsindex b6de453669..7e4c49a542 100644--- a/packages/sheets-ui/src/controllers/menu/__tests__/menu-factories.spec.ts+++ b/packages/sheets-ui/src/menu/__tests__/menu-factories.spec.ts@@ -27,8 +27,8 @@ import {SetRangeFontDecreaseCommand,SetRangeFontIncreaseCommand,SetRangeFontSizeCommand,-} from '../../../commands/commands/inline-format.command';-import { ShowMenuListCommand } from '../../../commands/commands/unhide.command';+} from '../../commands/commands/inline-format.command';+import { ShowMenuListCommand } from '../../commands/commands/unhide.command';import {FontSizeDecreaseMenuItemFactory,FontSizeIncreaseMenuItemFactory,diff --git a/packages/sheets-ui/src/controllers/menu/__tests__/menu-util.spec.ts b/packages/sheets-ui/src/menu/__tests__/menu-util.spec.tssimilarity index 99%rename from packages/sheets-ui/src/controllers/menu/__tests__/menu-util.spec.tsrename to packages/sheets-ui/src/menu/__tests__/menu-util.spec.tsindex 52fb82f727..aa3d8600c8 100644--- a/packages/sheets-ui/src/controllers/menu/__tests__/menu-util.spec.ts+++ b/packages/sheets-ui/src/menu/__tests__/menu-util.spec.ts@@ -32,7 +32,7 @@ import {} from '@univerjs/sheets';import { BehaviorSubject, firstValueFrom, of, skip, take } from 'rxjs';import { describe, expect, it } from 'vitest';-import { IEditorBridgeService } from '../../../services/editor-bridge.service';+import { IEditorBridgeService } from '../../services/editor-bridge.service';import {deriveStateFromActiveSheet$,getBaseRangeMenuHidden$,diff --git a/packages/sheets-ui/src/controllers/menu/__tests__/menu.spec.ts b/packages/sheets-ui/src/menu/__tests__/menu.spec.tssimilarity index 100%rename from packages/sheets-ui/src/controllers/menu/__tests__/menu.spec.tsrename to packages/sheets-ui/src/menu/__tests__/menu.spec.tsdiff --git a/packages/sheets-ui/src/controllers/menu/__tests__/permission-menu-util.spec.ts b/packages/sheets-ui/src/menu/__tests__/permission-menu-util.spec.tssimilarity index 99%rename from packages/sheets-ui/src/controllers/menu/__tests__/permission-menu-util.spec.tsrename to packages/sheets-ui/src/menu/__tests__/permission-menu-util.spec.tsindex 6ac4fee83a..e64746b621 100644--- a/packages/sheets-ui/src/controllers/menu/__tests__/permission-menu-util.spec.ts+++ b/packages/sheets-ui/src/menu/__tests__/permission-menu-util.spec.ts@@ -32,7 +32,7 @@ import {} from '@univerjs/sheets';import { BehaviorSubject, firstValueFrom, of, skip, take } from 'rxjs';import { describe, expect, it } from 'vitest';-import { IEditorBridgeService } from '../../../services/editor-bridge.service';+import { IEditorBridgeService } from '../../services/editor-bridge.service';import {getAddPermissionDisableBase$,getAddPermissionFromSheetBarDisable$,diff --git a/packages/sheets-ui/src/controllers/menu/__tests__/row-col.menu.spec.ts b/packages/sheets-ui/src/menu/__tests__/row-col.menu.spec.tssimilarity index 100%rename from packages/sheets-ui/src/controllers/menu/__tests__/row-col.menu.spec.tsrename to packages/sheets-ui/src/menu/__tests__/row-col.menu.spec.tsdiff --git a/packages/sheets-ui/src/controllers/menu/__tests__/utils.spec.ts b/packages/sheets-ui/src/menu/__tests__/utils.spec.tssimilarity index 100%rename from packages/sheets-ui/src/controllers/menu/__tests__/utils.spec.tsrename to packages/sheets-ui/src/menu/__tests__/utils.spec.tsdiff --git a/packages/sheets-ui/src/controllers/menu/border.menu.ts b/packages/sheets-ui/src/menu/border.menu.tssimilarity index 98%rename from packages/sheets-ui/src/controllers/menu/border.menu.tsrename to packages/sheets-ui/src/menu/border.menu.tsindex 40c100f601..c83256c162 100644--- a/packages/sheets-ui/src/controllers/menu/border.menu.ts+++ b/packages/sheets-ui/src/menu/border.menu.ts@@ -22,7 +22,7 @@ import { BorderStyleManagerService, RangeProtectionPermissionEditPoint, SetBordeimport { getMenuHiddenObservable, MenuItemType } from '@univerjs/ui';import { combineLatest, map, Observable, startWith } from 'rxjs';-import { BORDER_LINE_CHILDREN, BORDER_PANEL_COMPONENT } from '../../components/border-panel/interface';+import { BORDER_LINE_CHILDREN, BORDER_PANEL_COMPONENT } from '../components/border-panel/interface';import { getCurrentRangeDisable$ } from './menu-util';export function CellBorderSelectorMenuItemFactory(accessor: IAccessor): IMenuSelectorItem<IBorderInfo, IBorderInfo> {diff --git a/packages/sheets-ui/src/controllers/menu/clear.menu.ts b/packages/sheets-ui/src/menu/clear.menu.tssimilarity index 100%rename from packages/sheets-ui/src/controllers/menu/clear.menu.tsrename to packages/sheets-ui/src/menu/clear.menu.tsdiff --git a/packages/sheets-ui/src/controllers/menu/delete.menu.ts b/packages/sheets-ui/src/menu/delete.menu.tssimilarity index 93%rename from packages/sheets-ui/src/controllers/menu/delete.menu.tsrename to packages/sheets-ui/src/menu/delete.menu.tsindex 5b1cf54fb4..feacc28627 100644--- a/packages/sheets-ui/src/controllers/menu/delete.menu.ts+++ b/packages/sheets-ui/src/menu/delete.menu.ts@@ -19,12 +19,12 @@ import type { IMenuButtonItem, IMenuSelectorItem } from '@univerjs/ui';import { RangeProtectionPermissionEditPoint, WorkbookDeleteColumnPermission, WorkbookDeleteRowPermission, WorkbookEditablePermission, WorksheetDeleteColumnPermission, WorksheetDeleteRowPermission, WorksheetEditPermission } from '@univerjs/sheets';import { MenuItemType } from '@univerjs/ui';-import { DeleteRangeMoveLeftConfirmCommand } from '../../commands/commands/delete-range-move-left-confirm.command';-import { DeleteRangeMoveUpConfirmCommand } from '../../commands/commands/delete-range-move-up-confirm.command';+import { DeleteRangeMoveLeftConfirmCommand } from '../commands/commands/delete-range-move-left-confirm.command';+import { DeleteRangeMoveUpConfirmCommand } from '../commands/commands/delete-range-move-up-confirm.command';import {RemoveColConfirmCommand,RemoveRowConfirmCommand,-} from '../../commands/commands/remove-row-col-confirm.command';+} from '../commands/commands/remove-row-col-confirm.command';import { getBaseRangeMenuHidden$, getCellMenuHidden$, getCurrentRangeDisable$, getDeleteMenuHidden$, getObservableWithExclusiveRange$ } from './menu-util';export const DELETE_RANGE_MENU_ID = 'sheet.menu.delete';diff --git a/packages/sheets-ui/src/controllers/menu/font.menu.ts b/packages/sheets-ui/src/menu/font.menu.tssimilarity index 99%rename from packages/sheets-ui/src/controllers/menu/font.menu.tsrename to packages/sheets-ui/src/menu/font.menu.tsindex c534cf370f..4912f5709c 100644--- a/packages/sheets-ui/src/controllers/menu/font.menu.ts+++ b/packages/sheets-ui/src/menu/font.menu.ts@@ -44,7 +44,7 @@ import {SetRangeFontDecreaseCommand,SetRangeFontIncreaseCommand,SetRangeFontSizeCommand,-} from '../../commands/commands/inline-format.command';+} from '../commands/commands/inline-format.command';import { deriveStateFromActiveSheet$, getCurrentRangeDisable$ } from './menu-util';import { getFontStyleAtCursor } from './utils';diff --git a/packages/sheets-ui/src/controllers/menu/frozen.menu.ts b/packages/sheets-ui/src/menu/frozen.menu.tssimilarity index 97%rename from packages/sheets-ui/src/controllers/menu/frozen.menu.tsrename to packages/sheets-ui/src/menu/frozen.menu.tsindex 9abc21d3b1..ad7877ef42 100644--- a/packages/sheets-ui/src/controllers/menu/frozen.menu.ts+++ b/packages/sheets-ui/src/menu/frozen.menu.ts@@ -21,8 +21,8 @@ import { UniverInstanceType } from '@univerjs/core';import { CancelFrozenCommand, SheetsSelectionsService } from '@univerjs/sheets';import { getMenuHiddenObservable, MenuItemType } from '@univerjs/ui';import { combineLatest, map, Observable } from 'rxjs';-import { SetColumnFrozenCommand, SetFirstColumnFrozenCommand, SetFirstRowFrozenCommand, SetRowFrozenCommand, SetSelectionFrozenCommand } from '../../commands/commands/set-frozen.command';-import { MENU_ITEM_FROZEN_COMPONENT } from '../../components/menu-item-frozen';+import { SetColumnFrozenCommand, SetFirstColumnFrozenCommand, SetFirstRowFrozenCommand, SetRowFrozenCommand, SetSelectionFrozenCommand } from '../commands/commands/set-frozen.command';+import { MENU_ITEM_FROZEN_COMPONENT } from '../components/menu-item-frozen';const getMenuHiddenByCurrentSelectionChangedObservable$ = (accessor: IAccessor, type: 'row' | 'col' | 'all'): Observable<boolean> => {const selectionManagerService = accessor.get(SheetsSelectionsService);diff --git a/packages/sheets-ui/src/controllers/menu/gridlines.menu.ts b/packages/sheets-ui/src/menu/gridlines.menu.tssimilarity index 100%rename from packages/sheets-ui/src/controllers/menu/gridlines.menu.tsrename to packages/sheets-ui/src/menu/gridlines.menu.tsdiff --git a/packages/sheets-ui/src/views/header-menu-shape.ts b/packages/sheets-ui/src/menu/header-menu-shape.tssimilarity index 100%rename from packages/sheets-ui/src/views/header-menu-shape.tsrename to packages/sheets-ui/src/menu/header-menu-shape.tsdiff --git a/packages/sheets-ui/src/controllers/menu/insert.menu.ts b/packages/sheets-ui/src/menu/insert.menu.tssimilarity index 98%rename from packages/sheets-ui/src/controllers/menu/insert.menu.tsrename to packages/sheets-ui/src/menu/insert.menu.tsindex 542ee60c74..a91e17fb54 100644--- a/packages/sheets-ui/src/controllers/menu/insert.menu.ts+++ b/packages/sheets-ui/src/menu/insert.menu.ts@@ -39,9 +39,9 @@ import {import { MenuItemType } from '@univerjs/ui';import { Observable } from 'rxjs';-import { InsertRangeMoveDownConfirmCommand } from '../../commands/commands/insert-range-move-down-confirm.command';-import { InsertRangeMoveRightConfirmCommand } from '../../commands/commands/insert-range-move-right-confirm.command';-import { MENU_ITEM_INPUT_COMPONENT } from '../../components/menu-item-input';+import { InsertRangeMoveDownConfirmCommand } from '../commands/commands/insert-range-move-down-confirm.command';+import { InsertRangeMoveRightConfirmCommand } from '../commands/commands/insert-range-move-right-confirm.command';+import { MENU_ITEM_INPUT_COMPONENT } from '../components/menu-item-input';import { deriveStateFromActiveSheet$, getBaseRangeMenuHidden$, getCellMenuHidden$, getCurrentRangeDisable$, getInsertAfterMenuHidden$, getInsertBeforeMenuHidden$, getObservableWithExclusiveRange$ } from './menu-util';export const COL_INSERT_MENU_ID = 'sheet.menu.col-insert';diff --git a/packages/sheets-ui/src/controllers/menu/menu-util.ts b/packages/sheets-ui/src/menu/menu-util.tssimilarity index 99%rename from packages/sheets-ui/src/controllers/menu/menu-util.tsrename to packages/sheets-ui/src/menu/menu-util.tsindex 602d6ac497..720d562f44 100644--- a/packages/sheets-ui/src/controllers/menu/menu-util.ts+++ b/packages/sheets-ui/src/menu/menu-util.ts@@ -16,12 +16,12 @@import type { IAccessor, IPermissionTypes, IRange, Nullable, Workbook, WorkbookPermissionPointConstructor, Worksheet } from '@univerjs/core';import type { Observable } from 'rxjs';-import type { IEditorBridgeServiceVisibleParam } from '../../services/editor-bridge.service';+import type { IEditorBridgeServiceVisibleParam } from '../services/editor-bridge.service';import { FOCUSING_COMMON_DRAWINGS, FOCUSING_FX_BAR_EDITOR, FOCUSING_SHAPE_TEXT_EDITOR, IContextService, IPermissionService, IUniverInstanceService, Rectangle, Tools, UniverInstanceType, UserManagerService } from '@univerjs/core';import { IExclusiveRangeService, RangeProtectionPermissionEditPoint, RangeProtectionRuleModel, SheetsSelectionsService, WorkbookEditablePermission, WorksheetEditPermission, WorksheetProtectionRuleModel } from '@univerjs/sheets';import { combineLatest, merge, of } from 'rxjs';import { debounceTime, map, shareReplay, startWith, switchMap } from 'rxjs/operators';-import { IEditorBridgeService } from '../../services/editor-bridge.service';+import { IEditorBridgeService } from '../services/editor-bridge.service';interface IActive {workbook: Workbook;diff --git a/packages/sheets-ui/src/controllers/menu/menu.ts b/packages/sheets-ui/src/menu/menu.tssimilarity index 98%rename from packages/sheets-ui/src/controllers/menu/menu.tsrename to packages/sheets-ui/src/menu/menu.tsindex 37c064650c..aa8e88ff4c 100644--- a/packages/sheets-ui/src/controllers/menu/menu.ts+++ b/packages/sheets-ui/src/menu/menu.ts@@ -89,8 +89,8 @@ import {SheetPasteCommand,SheetPasteFormatCommand,SheetPasteValueCommand,-} from '../../commands/commands/clipboard.command';-import { HideColConfirmCommand, HideRowConfirmCommand } from '../../commands/commands/hide-row-col-confirm.command';+} from '../commands/commands/clipboard.command';+import { HideColConfirmCommand, HideRowConfirmCommand } from '../commands/commands/hide-row-col-confirm.command';import {ResetRangeTextColorCommand,SetRangeBoldCommand,@@ -99,12 +99,12 @@ import {SetRangeStrickThroughCommand,SetRangeTextColorCommand,SetRangeUnderlineCommand,-} from '../../commands/commands/inline-format.command';-import { SetInfiniteFormatPainterCommand, SetOnceFormatPainterCommand } from '../../commands/commands/set-format-painter.command';-import { SetWorksheetColAutoWidthCommand } from '../../commands/commands/set-worksheet-auto-col-width.command';-import { MENU_ITEM_INPUT_COMPONENT } from '../../components/menu-item-input';-import { ISheetClipboardService } from '../../services/clipboard/clipboard.service';-import { FormatPainterStatus, IFormatPainterService } from '../../services/format-painter/format-painter.service';+} from '../commands/commands/inline-format.command';+import { SetInfiniteFormatPainterCommand, SetOnceFormatPainterCommand } from '../commands/commands/set-format-painter.command';+import { SetWorksheetColAutoWidthCommand } from '../commands/commands/set-worksheet-auto-col-width.command';+import { MENU_ITEM_INPUT_COMPONENT } from '../components/menu-item-input';+import { ISheetClipboardService } from '../services/clipboard/clipboard.service';+import { FormatPainterStatus, IFormatPainterService } from '../services/format-painter/format-painter.service';import { deriveStateFromActiveSheet$, getCurrentRangeDisable$, getObservableWithExclusiveRange$ } from './menu-util';import { getFontStyleAtCursor } from './utils';diff --git a/packages/sheets-ui/src/controllers/menu/merge.menu.ts b/packages/sheets-ui/src/menu/merge.menu.tssimilarity index 97%rename from packages/sheets-ui/src/controllers/menu/merge.menu.tsrename to packages/sheets-ui/src/menu/merge.menu.tsindex dcacc53980..54615acbe5 100644--- a/packages/sheets-ui/src/controllers/menu/merge.menu.ts+++ b/packages/sheets-ui/src/menu/merge.menu.ts@@ -31,7 +31,7 @@ import {} from '@univerjs/sheets';import { getMenuHiddenObservable, MenuItemType } from '@univerjs/ui';import { combineLatest, combineLatestWith, map, startWith } from 'rxjs';-import { getSheetSelectionsDisabled$ } from '../utils/selections-tools';+import { getSheetSelectionsDisabled$ } from '../controllers/utils/selections-tools';import { getCurrentRangeDisable$, getObservableWithExclusiveRange$ } from './menu-util';export function CellMergeMenuItemFactory(accessor: IAccessor): IMenuSelectorItem<string> {diff --git a/packages/sheets-ui/src/controllers/mobile/menu.schema.ts b/packages/sheets-ui/src/menu/mobile-menu.tssimilarity index 95%rename from packages/sheets-ui/src/controllers/mobile/menu.schema.tsrename to packages/sheets-ui/src/menu/mobile-menu.tsindex b897ad9db4..902769969b 100644--- a/packages/sheets-ui/src/controllers/mobile/menu.schema.ts+++ b/packages/sheets-ui/src/menu/mobile-menu.ts@@ -18,8 +18,8 @@ import type { MenuSchemaType } from '@univerjs/ui';import { ContextMenuGroup, ContextMenuPosition } from '@univerjs/ui';import {SheetCopyCommand,-} from '../../commands/commands/clipboard.command';-import { CopyMenuItemFactory } from '../menu/menu';+} from '../commands/commands/clipboard.command';+import { CopyMenuItemFactory } from './menu';export const menuSchema: MenuSchemaType = {[ContextMenuPosition.MAIN_AREA]: {diff --git a/packages/sheets-ui/src/controllers/menu/permission-menu-util.ts b/packages/sheets-ui/src/menu/permission-menu-util.tssimilarity index 99%rename from packages/sheets-ui/src/controllers/menu/permission-menu-util.tsrename to packages/sheets-ui/src/menu/permission-menu-util.tsindex aa03190fa1..b05f036772 100644--- a/packages/sheets-ui/src/controllers/menu/permission-menu-util.ts+++ b/packages/sheets-ui/src/menu/permission-menu-util.ts@@ -18,7 +18,7 @@ import type { IAccessor, Workbook } from '@univerjs/core';import { FOCUSING_COMMON_DRAWINGS, FOCUSING_FX_BAR_EDITOR, IContextService, IPermissionService, IUniverInstanceService, RANGE_TYPE, Rectangle, UniverInstanceType, UserManagerService } from '@univerjs/core';import { RangeProtectionCache, RangeProtectionRuleModel, SheetsSelectionsService, UnitAction, WorkbookCreateProtectPermission, WorkbookEditablePermission, WorkbookManageCollaboratorPermission, WorksheetDeleteProtectionPermission, WorksheetManageCollaboratorPermission, WorksheetProtectionRuleModel } from '@univerjs/sheets';import { combineLatest, map, merge, of, shareReplay, startWith, switchMap } from 'rxjs';-import { IEditorBridgeService } from '../../services/editor-bridge.service';+import { IEditorBridgeService } from '../services/editor-bridge.service';export function getAddPermissionHidden$(accessor: IAccessor) {const univerInstanceService = accessor.get(IUniverInstanceService);diff --git a/packages/sheets-ui/src/controllers/menu/permission.menu.ts b/packages/sheets-ui/src/menu/permission.menu.tssimilarity index 96%rename from packages/sheets-ui/src/controllers/menu/permission.menu.tsrename to packages/sheets-ui/src/menu/permission.menu.tsindex 2324acde0f..84ac6e3c03 100644--- a/packages/sheets-ui/src/controllers/menu/permission.menu.ts+++ b/packages/sheets-ui/src/menu/permission.menu.ts@@ -19,9 +19,9 @@ import type { IMenuButtonItem, IMenuItem, IMenuSelectorItem } from '@univerjs/uiimport { UniverInstanceType } from '@univerjs/core';import { getMenuHiddenObservable, MenuItemType } from '@univerjs/ui';-import { AddRangeProtectionFromContextMenuCommand, AddRangeProtectionFromSheetBarCommand, AddRangeProtectionFromToolbarCommand, DeleteRangeProtectionFromContextMenuCommand, SetRangeProtectionFromContextMenuCommand, ViewSheetPermissionFromContextMenuCommand, ViewSheetPermissionFromSheetBarCommand } from '../../commands/commands/range-protection.command';-import { ChangeSheetProtectionFromSheetBarCommand, DeleteWorksheetProtectionFormSheetBarCommand } from '../../commands/commands/worksheet-protection.command';-import { permissionLockIconKey, permissionMenuIconKey } from '../../consts/permission';+import { AddRangeProtectionFromContextMenuCommand, AddRangeProtectionFromSheetBarCommand, AddRangeProtectionFromToolbarCommand, DeleteRangeProtectionFromContextMenuCommand, SetRangeProtectionFromContextMenuCommand, ViewSheetPermissionFromContextMenuCommand, ViewSheetPermissionFromSheetBarCommand } from '../commands/commands/range-protection.command';+import { ChangeSheetProtectionFromSheetBarCommand, DeleteWorksheetProtectionFormSheetBarCommand } from '../commands/commands/worksheet-protection.command';+import { permissionLockIconKey, permissionMenuIconKey } from '../consts/permission';import { getAddPermissionDisableBase$, getAddPermissionFromSheetBarDisable$, getAddPermissionHidden$, getEditPermissionHidden$, getPermissionDisableBase$, getRemovePermissionDisable$, getRemovePermissionFromSheetBarDisable$, getSetPermissionFromSheetBarDisable$, getViewPermissionDisable$ } from './permission-menu-util';export const SHEET_PERMISSION_CONTEXT_MENU_ID = 'sheet.contextMenu.permission';diff --git a/packages/sheets-ui/src/controllers/menu.schema.ts b/packages/sheets-ui/src/menu/schema.tssimilarity index 98%rename from packages/sheets-ui/src/controllers/menu.schema.tsrename to packages/sheets-ui/src/menu/schema.tsindex 6f4187f5fa..bd91cec6c0 100644--- a/packages/sheets-ui/src/controllers/menu.schema.ts+++ b/packages/sheets-ui/src/menu/schema.ts@@ -95,10 +95,10 @@ import {DeleteWorksheetProtectionFormSheetBarCommand,} from '../commands/commands/worksheet-protection.command';import { RenameSheetOperation } from '../commands/operations/rename-sheet.operation';-import { CellBorderSelectorMenuItemFactory } from './menu/border.menu';-import { CLEAR_SELECTION_MENU_ID, ClearSelectionAllMenuItemFactory, ClearSelectionContentMenuItemFactory, ClearSelectionFormatMenuItemFactory, ClearSelectionMenuItemFactory } from './menu/clear.menu';-import { DELETE_RANGE_MENU_ID, DeleteRangeMenuItemFactory, DeleteRangeMoveLeftMenuItemFactory, DeleteRangeMoveUpMenuItemFactory, RemoveColMenuItemFactory, RemoveRowMenuItemFactory } from './menu/delete.menu';-import { FontSizeDecreaseMenuItemFactory, FontSizeIncreaseMenuItemFactory, FontSizeSelectorMenuItemFactory } from './menu/font.menu';+import { CellBorderSelectorMenuItemFactory } from './border.menu';+import { CLEAR_SELECTION_MENU_ID, ClearSelectionAllMenuItemFactory, ClearSelectionContentMenuItemFactory, ClearSelectionFormatMenuItemFactory, ClearSelectionMenuItemFactory } from './clear.menu';+import { DELETE_RANGE_MENU_ID, DeleteRangeMenuItemFactory, DeleteRangeMoveLeftMenuItemFactory, DeleteRangeMoveUpMenuItemFactory, RemoveColMenuItemFactory, RemoveRowMenuItemFactory } from './delete.menu';+import { FontSizeDecreaseMenuItemFactory, FontSizeIncreaseMenuItemFactory, FontSizeSelectorMenuItemFactory } from './font.menu';import {CancelFrozenMenuItemFactory,FrozenColMenuItemFactory,@@ -112,8 +112,8 @@ import {SheetFrozenColumnHeaderMenuItemFactory,SheetFrozenMenuItemFactory,SheetFrozenRowHeaderMenuItemFactory,-} from './menu/frozen.menu';-import { ToggleGridlinesMenuFactory } from './menu/gridlines.menu';+} from './frozen.menu';+import { ToggleGridlinesMenuFactory } from './gridlines.menu';import {CELL_INSERT_MENU_ID,CellInsertMenuItemFactory,@@ -125,7 +125,7 @@ import {InsertRangeMoveDownMenuItemFactory,InsertRangeMoveRightMenuItemFactory,InsertRowBeforeCellMenuItemFactory,-} from './menu/insert.menu';+} from './insert.menu';import {BackgroundColorSelectorMenuItemFactory,BoldMenuItemFactory,@@ -160,8 +160,8 @@ import {UnderlineMenuItemFactory,VerticalAlignMenuItemFactory,WrapTextMenuItemFactory,-} from './menu/menu';-import { CellMergeAllMenuItemFactory, CellMergeCancelMenuItemFactory, CellMergeHorizontalMenuItemFactory, CellMergeMenuItemFactory, CellMergeVerticalMenuItemFactory } from './menu/merge.menu';+} from './menu';+import { CellMergeAllMenuItemFactory, CellMergeCancelMenuItemFactory, CellMergeHorizontalMenuItemFactory, CellMergeMenuItemFactory, CellMergeVerticalMenuItemFactory } from './merge.menu';import {SHEET_PERMISSION_CONTEXT_MENU_ID,sheetPermissionAddProtectContextMenuFactory,@@ -174,7 +174,7 @@ import {sheetPermissionToolbarMenuFactory,sheetPermissionViewAllProtectRuleContextMenuFactory,sheetPermissionViewAllProtectRuleSheetBarMenuFactory,-} from './menu/permission.menu';+} from './permission.menu';import {ChangeColorSheetMenuItemFactory,CopySheetMenuItemFactory,@@ -182,8 +182,8 @@ import {HideSheetMenuItemFactory,RenameSheetMenuItemFactory,ShowMenuItemFactory,-} from './menu/sheet.menu';-import { Text2NumberContextMenuItemFactory, Text2NumberToolbarMenuItemFactory, TEXT_TO_NUMBER_CONTEXT_MENU_ID, TEXT_TO_NUMBER_TOOLBAR_MENU_ID } from './menu/text-to-number.menu';+} from './sheet.menu';+import { Text2NumberContextMenuItemFactory, Text2NumberToolbarMenuItemFactory, TEXT_TO_NUMBER_CONTEXT_MENU_ID, TEXT_TO_NUMBER_TOOLBAR_MENU_ID } from './text-to-number.menu';export const menuSchema: MenuSchemaType = {[RibbonPosition.START]: {diff --git a/packages/sheets-ui/src/controllers/menu/sheet.menu.ts b/packages/sheets-ui/src/menu/sheet.menu.tssimilarity index 97%rename from packages/sheets-ui/src/controllers/menu/sheet.menu.tsrename to packages/sheets-ui/src/menu/sheet.menu.tsindex 41692cc8e1..c5c4630ba8 100644--- a/packages/sheets-ui/src/controllers/menu/sheet.menu.ts+++ b/packages/sheets-ui/src/menu/sheet.menu.ts@@ -35,9 +35,9 @@ import {import { COLOR_PICKER_COMPONENT, getMenuHiddenObservable, MenuItemType } from '@univerjs/ui';import { combineLatest, combineLatestWith, map, Observable } from 'rxjs';-import { RemoveSheetConfirmCommand } from '../../commands/commands/remove-sheet-confirm.command';-import { ShowMenuListCommand } from '../../commands/commands/unhide.command';-import { RenameSheetOperation } from '../../commands/operations/rename-sheet.operation';+import { RemoveSheetConfirmCommand } from '../commands/commands/remove-sheet-confirm.command';+import { ShowMenuListCommand } from '../commands/commands/unhide.command';+import { RenameSheetOperation } from '../commands/operations/rename-sheet.operation';import { getWorkbookPermissionDisable$ } from './menu-util';export function DeleteSheetMenuItemFactory(accessor: IAccessor): IMenuButtonItem {diff --git a/packages/sheets-ui/src/controllers/menu/text-to-number.menu.ts b/packages/sheets-ui/src/menu/text-to-number.menu.tssimilarity index 100%rename from packages/sheets-ui/src/controllers/menu/text-to-number.menu.tsrename to packages/sheets-ui/src/menu/text-to-number.menu.tsdiff --git a/packages/sheets-ui/src/controllers/menu/utils.ts b/packages/sheets-ui/src/menu/utils.tssimilarity index 100%rename from packages/sheets-ui/src/controllers/menu/utils.tsrename to packages/sheets-ui/src/menu/utils.tsdiff --git a/packages/sheets-ui/src/mobile-plugin.ts b/packages/sheets-ui/src/mobile-plugin.tsindex 0c6169c54d..43600b245b 100644--- a/packages/sheets-ui/src/mobile-plugin.ts+++ b/packages/sheets-ui/src/mobile-plugin.ts@@ -16,13 +16,14 @@import type { Dependency, Workbook } from '@univerjs/core';import type { IUniverUIConfig } from '@univerjs/ui';-import type { IUniverSheetsUIConfig } from './controllers/config.schema';+import type { IUniverSheetsUIConfig } from './config/config';import { DependentOn, IConfigService, Inject, Injector, IUniverInstanceService, merge, mergeOverrideWithDependencies, Plugin, registerDependencies, touchDependencies, UniverInstanceType } from '@univerjs/core';import { IRenderManagerService } from '@univerjs/engine-render';import { IRefSelectionsService, RefSelectionsService, UniverSheetsPlugin } from '@univerjs/sheets';import { ComponentManager, UI_PLUGIN_CONFIG_KEY, UniverMobileUIPlugin } from '@univerjs/ui';import { filter } from 'rxjs/operators';import pkg from '../package.json';+import { defaultPluginConfig, SHEETS_UI_PLUGIN_CONFIG_KEY } from './config/config';import { UNIVER_SHEET_PERMISSION_USER_PART } from './consts/permission';import { AutoFillUIController } from './controllers/auto-fill-ui.controller';import { AutoHeightController } from './controllers/auto-height.controller';@@ -32,7 +33,6 @@ import { CellCustomRenderController } from './controllers/cell-custom-render.conimport { CellPopupEditorController } from './controllers/cell-popup-editor.controller';import { SheetCheckboxController } from './controllers/checkbox.controller';import { SheetClipboardController } from './controllers/clipboard/clipboard.controller';-import { defaultPluginConfig, SHEETS_UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';import { SheetsDefinedNameController } from './controllers/defined-name/defined-name.controller';import { DragRenderController } from './controllers/drag-render.controller';import { EditorDataSyncController } from './controllers/editor/data-sync.controller';diff --git a/packages/sheets-ui/src/plugin.ts b/packages/sheets-ui/src/plugin.tsindex 986e78eeb7..4a73047048 100644--- a/packages/sheets-ui/src/plugin.ts+++ b/packages/sheets-ui/src/plugin.ts@@ -16,13 +16,14 @@import type { Dependency, Workbook } from '@univerjs/core';import type { IUniverUIConfig } from '@univerjs/ui';-import type { IUniverSheetsUIConfig } from './controllers/config.schema';+import type { IUniverSheetsUIConfig } from './config/config';import { DependentOn, IConfigService, Inject, Injector, IUniverInstanceService, merge, mergeOverrideWithDependencies, Plugin, registerDependencies, touchDependencies, UniverInstanceType } from '@univerjs/core';import { IRenderManagerService } from '@univerjs/engine-render';import { IRefSelectionsService, RefSelectionsService, UniverSheetsPlugin } from '@univerjs/sheets';import { ComponentManager, UI_PLUGIN_CONFIG_KEY } from '@univerjs/ui';import { filter } from 'rxjs/operators';import pkg from '../package.json';+import { defaultPluginConfig, SHEETS_UI_PLUGIN_CONFIG_KEY } from './config/config';import { UNIVER_SHEET_PERMISSION_USER_PART } from './consts/permission';import { AutoFillUIController } from './controllers/auto-fill-ui.controller';import { AutoHeightController } from './controllers/auto-height.controller';@@ -32,7 +33,6 @@ import { CellCustomRenderController } from './controllers/cell-custom-render.conimport { CellPopupEditorController } from './controllers/cell-popup-editor.controller';import { SheetCheckboxController } from './controllers/checkbox.controller';import { SheetClipboardController } from './controllers/clipboard/clipboard.controller';-import { defaultPluginConfig, SHEETS_UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';import { SheetsDefinedNameController } from './controllers/defined-name/defined-name.controller';import { DragRenderController } from './controllers/drag-render.controller';import { EditorDataSyncController } from './controllers/editor/data-sync.controller';diff --git a/packages/sheets-ui/src/services/permission/sheet-permission-render-manager.service.ts b/packages/sheets-ui/src/services/permission/sheet-permission-render-manager.service.tsindex 7b9bbeeba0..f97757daa6 100644--- a/packages/sheets-ui/src/services/permission/sheet-permission-render-manager.service.ts+++ b/packages/sheets-ui/src/services/permission/sheet-permission-render-manager.service.ts@@ -16,11 +16,11 @@import type { Spreadsheet } from '@univerjs/engine-render';import type { Observable } from 'rxjs';-import type { IUniverSheetsUIConfig } from '../../controllers/config.schema';+import type { IUniverSheetsUIConfig } from '../../config/config';import { Disposable, IConfigService } from '@univerjs/core';import { IRenderManagerService } from '@univerjs/engine-render';import { BehaviorSubject } from 'rxjs';-import { convertToShadowStrategy, SHEETS_UI_PLUGIN_CONFIG_KEY } from '../../controllers/config.schema';+import { convertToShadowStrategy, SHEETS_UI_PLUGIN_CONFIG_KEY } from '../../config/config';import { RANGE_PROTECTION_CAN_NOT_VIEW_RENDER_EXTENSION_KEY, RANGE_PROTECTION_CAN_VIEW_RENDER_EXTENSION_KEY } from '../../views/permission/extensions/range-protection.render';import { worksheetProtectionKey } from '../../views/permission/extensions/worksheet-permission.render';diff --git a/packages/sheets-ui/src/views/formula-bar/FormulaBar.tsx b/packages/sheets-ui/src/views/formula-bar/FormulaBar.tsxindex 19bba246f8..186f483e8e 100644--- a/packages/sheets-ui/src/views/formula-bar/FormulaBar.tsx+++ b/packages/sheets-ui/src/views/formula-bar/FormulaBar.tsx@@ -15,7 +15,7 @@*/import type { Workbook } from '@univerjs/core';-import type { IUniverSheetsUIConfig } from '../../controllers/config.schema';+import type { IUniverSheetsUIConfig } from '../../config/config';import type { IEditorBridgeServiceVisibleParam } from '../../services/editor-bridge.service';import {DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY,@@ -44,8 +44,8 @@ import { useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react';import { EMPTY, merge, of, switchMap } from 'rxjs';import { SetCellEditVisibleOperation } from '../../commands/operations/cell-edit.operation';import { EMBEDDING_FORMULA_EDITOR_COMPONENT_KEY } from '../../common/keys';+import { SHEETS_UI_PLUGIN_CONFIG_KEY } from '../../config/config';import { SheetsUIPart } from '../../consts/ui-name';-import { SHEETS_UI_PLUGIN_CONFIG_KEY } from '../../controllers/config.schema';import { IEditorBridgeService } from '../../services/editor-bridge.service';import { IFormulaEditorManagerService } from '../../services/editor/formula-editor-manager.service';import { DefinedName } from '../defined-name/DefinedName';diff --git a/packages/sheets-ui/src/views/header-unhide-shape.ts b/packages/sheets-ui/src/views/header-unhide-shape.tsindex 52d829bf6c..cdf6d8399c 100644--- a/packages/sheets-ui/src/views/header-unhide-shape.ts+++ b/packages/sheets-ui/src/views/header-unhide-shape.ts@@ -17,7 +17,7 @@import type { IShapeProps, UniverRenderingContext } from '@univerjs/engine-render';import { Rect, RegularPolygon, Shape } from '@univerjs/engine-render';-import { HEADER_MENU_BACKGROUND_COLOR, HEADER_MENU_SHAPE_TRIANGLE_FILL } from './header-menu-shape';+import { HEADER_MENU_BACKGROUND_COLOR, HEADER_MENU_SHAPE_TRIANGLE_FILL } from '../menu/header-menu-shape';export enum HeaderUnhideShapeType {ROW,diff --git a/packages/sheets-ui/src/views/sheet-container/SheetContainer.tsx b/packages/sheets-ui/src/views/sheet-container/SheetContainer.tsxindex 668488c8d4..c5029d5ac7 100644--- a/packages/sheets-ui/src/views/sheet-container/SheetContainer.tsx+++ b/packages/sheets-ui/src/views/sheet-container/SheetContainer.tsx@@ -15,12 +15,12 @@*/import type { Workbook } from '@univerjs/core';-import type { IUniverSheetsUIConfig } from '../../controllers/config.schema';+import type { IUniverSheetsUIConfig } from '../../config/config';import { IUniverInstanceService, UniverInstanceType } from '@univerjs/core';import { ComponentManager, ContextMenuPosition, IMenuManagerService, ToolbarItem, useConfigValue, useDependency, useObservable } from '@univerjs/ui';import { useMemo } from 'react';import { useActiveWorkbook } from '../../components/hook';-import { SHEETS_UI_PLUGIN_CONFIG_KEY } from '../../controllers/config.schema';+import { SHEETS_UI_PLUGIN_CONFIG_KEY } from '../../config/config';import { AutoFillPopupMenu } from '../auto-fill-popup-menu/AutoFillPopupMenu';import { EditorContainer } from '../editor-container/EditorContainer';import { FormulaBar } from '../formula-bar/FormulaBar';diff --git a/packages/sheets-ui/src/views/status-bar/StatusBar.tsx b/packages/sheets-ui/src/views/status-bar/StatusBar.tsxindex f650f8c358..68ad527eab 100644--- a/packages/sheets-ui/src/views/status-bar/StatusBar.tsx+++ b/packages/sheets-ui/src/views/status-bar/StatusBar.tsx@@ -16,14 +16,14 @@import type { Nullable } from '@univerjs/core';import type { ComponentType } from 'react';-import type { IUniverSheetsUIConfig } from '../../controllers/config.schema';+import type { IUniverSheetsUIConfig } from '../../config/config';import type { IStatusBarServiceStatus, StatusBarService } from '../../services/status-bar.service';import type { IStatisticItem } from './CopyableStatisticItem';import { debounce } from '@univerjs/core';import { clsx } from '@univerjs/design';import { useConfigValue, useDependency } from '@univerjs/ui';import { useCallback, useEffect, useMemo, useState } from 'react';-import { SHEETS_UI_PLUGIN_CONFIG_KEY } from '../../controllers/config.schema';+import { SHEETS_UI_PLUGIN_CONFIG_KEY } from '../../config/config';import { IStatusBarService } from '../../services/status-bar.service';import { CopyableStatisticItem } from './CopyableStatisticItem';diff --git a/packages/sheets-zen-editor/src/controllers/config.schema.ts b/packages/sheets-zen-editor/src/config/config.tssimilarity index 100%rename from packages/sheets-zen-editor/src/controllers/config.schema.tsrename to packages/sheets-zen-editor/src/config/config.tsdiff --git a/packages/sheets-zen-editor/src/controllers/zen-editor-ui.controller.ts b/packages/sheets-zen-editor/src/controllers/zen-editor-ui.controller.tsindex 3023e3aa65..691956bf05 100644--- a/packages/sheets-zen-editor/src/controllers/zen-editor-ui.controller.ts+++ b/packages/sheets-zen-editor/src/controllers/zen-editor-ui.controller.ts@@ -18,8 +18,8 @@ import { Disposable, ICommandService } from '@univerjs/core';import { IMenuManagerService, IShortcutService, IZenZoneService } from '@univerjs/ui';import { CancelZenEditCommand, ConfirmZenEditCommand, OpenZenEditorCommand } from '../commands/commands/zen-editor.command';+import { menuSchema } from '../menu/schema';import { ZEN_EDITOR_COMPONENT, ZenEditor } from '../views/zen-editor';-import { menuSchema } from './menu.schema';import { ZenEditorCancelShortcut, ZenEditorConfirmShortcut } from './shortcuts/zen-editor.shortcut';export class ZenEditorUIController extends Disposable {diff --git a/packages/sheets-zen-editor/src/index.ts b/packages/sheets-zen-editor/src/index.tsindex 015c7b319c..97202add60 100644--- a/packages/sheets-zen-editor/src/index.ts+++ b/packages/sheets-zen-editor/src/index.ts@@ -17,5 +17,5 @@import './global.css';export { CancelZenEditCommand, ConfirmZenEditCommand, OpenZenEditorCommand } from './commands/commands/zen-editor.command';-export type { IUniverSheetsZenEditorConfig } from './controllers/config.schema';+export type { IUniverSheetsZenEditorConfig } from './config/config';export { UniverSheetsZenEditorPlugin } from './plugin';diff --git a/packages/sheets-zen-editor/src/views/menu.ts b/packages/sheets-zen-editor/src/menu/menu.tssimilarity index 100%rename from packages/sheets-zen-editor/src/views/menu.tsrename to packages/sheets-zen-editor/src/menu/menu.tsdiff --git a/packages/sheets-zen-editor/src/controllers/menu.schema.ts b/packages/sheets-zen-editor/src/menu/schema.tssimilarity index 94%rename from packages/sheets-zen-editor/src/controllers/menu.schema.tsrename to packages/sheets-zen-editor/src/menu/schema.tsindex c2ff1ce199..d4aaa2ef93 100644--- a/packages/sheets-zen-editor/src/controllers/menu.schema.ts+++ b/packages/sheets-zen-editor/src/menu/schema.ts@@ -17,7 +17,7 @@import type { MenuSchemaType } from '@univerjs/ui';import { ContextMenuGroup, ContextMenuPosition } from '@univerjs/ui';import { OpenZenEditorCommand } from '../commands/commands/zen-editor.command';-import { ZenEditorMenuItemFactory } from '../views/menu';+import { ZenEditorMenuItemFactory } from './menu';export const menuSchema: MenuSchemaType = {[ContextMenuPosition.MAIN_AREA]: {diff --git a/packages/sheets-zen-editor/src/plugin.ts b/packages/sheets-zen-editor/src/plugin.tsindex 9840d4c9a6..5888a339c2 100644--- a/packages/sheets-zen-editor/src/plugin.ts+++ b/packages/sheets-zen-editor/src/plugin.ts@@ -15,10 +15,10 @@*/import type { Dependency } from '@univerjs/core';-import type { IUniverSheetsZenEditorConfig } from './controllers/config.schema';+import type { IUniverSheetsZenEditorConfig } from './config/config';import { IConfigService, Inject, Injector, merge, Plugin, UniverInstanceType } from '@univerjs/core';import pkg from '../package.json';-import { defaultPluginConfig, SHEETS_ZEN_EDITOR_PLUGIN_CONFIG_KEY } from './controllers/config.schema';+import { defaultPluginConfig, SHEETS_ZEN_EDITOR_PLUGIN_CONFIG_KEY } from './config/config';import { ZenEditorUIController } from './controllers/zen-editor-ui.controller';import { ZenEditorController } from './controllers/zen-editor.controller';import { IZenEditorManagerService, ZenEditorManagerService } from './services/zen-editor.service';diff --git a/packages/sheets/src/commands/commands/__tests__/copy-worksheet.command.spec.ts b/packages/sheets/src/commands/commands/__tests__/copy-worksheet.command.spec.tsindex eb53521ef7..7ef9f31f8b 100644--- a/packages/sheets/src/commands/commands/__tests__/copy-worksheet.command.spec.ts+++ b/packages/sheets/src/commands/commands/__tests__/copy-worksheet.command.spec.ts@@ -17,7 +17,7 @@import type { Injector, Univer, Workbook, Worksheet } from '@univerjs/core';import { ICommandService, IConfigService, IUniverInstanceService, LocaleService, LocaleType, RedoCommand, UndoCommand, UniverInstanceType } from '@univerjs/core';import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';-import { SHEETS_PLUGIN_CONFIG_KEY } from '../../../controllers/config.schema';+import { SHEETS_PLUGIN_CONFIG_KEY } from '../../../config/config';import enUS from '../../../locale/en-US';import zhCN from '../../../locale/zh-CN';import { SheetLazyExecuteScheduleService } from '../../../services/lazy-execute-schedule.service';diff --git a/packages/sheets/src/commands/commands/copy-worksheet.command.ts b/packages/sheets/src/commands/commands/copy-worksheet.command.tsindex ca2332f440..da0152b70f 100644--- a/packages/sheets/src/commands/commands/copy-worksheet.command.ts+++ b/packages/sheets/src/commands/commands/copy-worksheet.command.ts@@ -16,7 +16,7 @@import type { IAccessor, ICellData, ICommand, IMutationInfo, IObjectMatrixPrimitiveType, Nullable, Workbook } from '@univerjs/core';import type { IInsertSheetMutationParams, IRemoveSheetMutationParams } from '../../basics/interfaces/mutation-interface';-import type { IUniverSheetsConfig } from '../../controllers/config.schema';+import type { IUniverSheetsConfig } from '../../config/config';import type { ISetRangeValuesMutationParams } from '../mutations/set-range-values.mutation';import {cloneWorksheetData,@@ -29,7 +29,7 @@ import {LocaleService,sequenceExecute,} from '@univerjs/core';-import { defaultLargeSheetOperationConfig, SHEETS_PLUGIN_CONFIG_KEY } from '../../controllers/config.schema';+import { defaultLargeSheetOperationConfig, SHEETS_PLUGIN_CONFIG_KEY } from '../../config/config';import { SheetLazyExecuteScheduleService } from '../../services/lazy-execute-schedule.service';import { SheetInterceptorService } from '../../services/sheet-interceptor/sheet-interceptor.service';import { CopyWorksheetEndMutation } from '../mutations/copy-worksheet-end.mutation';diff --git a/packages/sheets/src/commands/commands/register-range-theme.command.ts b/packages/sheets/src/commands/commands/register-range-theme.command.tsindex 54e13119a9..d133802e6a 100644--- a/packages/sheets/src/commands/commands/register-range-theme.command.ts+++ b/packages/sheets/src/commands/commands/register-range-theme.command.ts@@ -18,9 +18,9 @@ import type { ICommand } from '@univerjs/core';import type { RangeThemeStyle } from '../../model/range-theme-util';import { CommandType, ICommandService, IUndoRedoService, IUniverInstanceService } from '@univerjs/core';-import { getSheetCommandTarget } from '../commands/utils/target-util';import { RegisterWorksheetRangeThemeStyleMutation } from '../mutations/register-range-theme.mutation';import { UnregisterWorksheetRangeThemeStyleMutation } from '../mutations/unregister-range-theme-style.mutation';+import { getSheetCommandTarget } from './utils/target-util';export interface IRegisterWorksheetRangeThemeStyleCommandParams {unitId: string;diff --git a/packages/sheets/src/commands/commands/remove-sheet.command.ts b/packages/sheets/src/commands/commands/remove-sheet.command.tsindex b97025978b..81aacac309 100644--- a/packages/sheets/src/commands/commands/remove-sheet.command.ts+++ b/packages/sheets/src/commands/commands/remove-sheet.command.ts@@ -19,7 +19,7 @@ import type {IInsertSheetMutationParams,IRemoveSheetMutationParams,} from '../../basics/interfaces/mutation-interface';-import type { IUniverSheetsConfig } from '../../controllers/config.schema';+import type { IUniverSheetsConfig } from '../../config/config';import {CommandType,@@ -29,7 +29,7 @@ import {IUniverInstanceService,sequenceExecute,} from '@univerjs/core';-import { defaultLargeSheetOperationConfig, SHEETS_PLUGIN_CONFIG_KEY } from '../../controllers/config.schema';+import { defaultLargeSheetOperationConfig, SHEETS_PLUGIN_CONFIG_KEY } from '../../config/config';import { SheetInterceptorService } from '../../services/sheet-interceptor/sheet-interceptor.service';import { InsertSheetMutation } from '../mutations/insert-sheet.mutation';import { RemoveSheetMutation, RemoveSheetUndoMutationFactory } from '../mutations/remove-sheet.mutation';diff --git a/packages/sheets/src/commands/commands/remove-worksheet-merge.command.ts b/packages/sheets/src/commands/commands/remove-worksheet-merge.command.tsindex 33ae2b7176..13782b5773 100644--- a/packages/sheets/src/commands/commands/remove-worksheet-merge.command.ts+++ b/packages/sheets/src/commands/commands/remove-worksheet-merge.command.ts@@ -19,12 +19,12 @@ import type { IAddWorksheetMergeMutationParams, IRemoveWorksheetMergeMutationParimport type { ISetRangeValuesMutationParams } from '../mutations/set-range-values.mutation';import type { ISheetCommandSharedParams } from '../utils/interface';import { CommandType, ICommandService, IUndoRedoService, IUniverInstanceService, ObjectMatrix, Rectangle, sequenceExecute, Tools } from '@univerjs/core';-import { SetSelectionsOperation } from '../../commands/operations/selection.operation';import { SelectionMoveType } from '../../services/selections';import { SheetsSelectionsService } from '../../services/selections/selection.service';import { AddWorksheetMergeMutation } from '../mutations/add-worksheet-merge.mutation';import { RemoveMergeUndoMutationFactory, RemoveWorksheetMergeMutation } from '../mutations/remove-worksheet-merge.mutation';import { SetRangeValuesMutation, SetRangeValuesUndoMutationFactory } from '../mutations/set-range-values.mutation';+import { SetSelectionsOperation } from '../operations/selection.operation';import { getSheetCommandTarget } from './utils/target-util';interface IRemoveWorksheetMergeCommandParams extends ISheetCommandSharedParams {diff --git a/packages/sheets/src/commands/commands/unregister-range-theme.command.ts b/packages/sheets/src/commands/commands/unregister-range-theme.command.tsindex db4800e1b9..a17e96b3db 100644--- a/packages/sheets/src/commands/commands/unregister-range-theme.command.ts+++ b/packages/sheets/src/commands/commands/unregister-range-theme.command.ts@@ -17,9 +17,9 @@import type { ICommand } from '@univerjs/core';import { CommandType, ICommandService, IUndoRedoService, IUniverInstanceService } from '@univerjs/core';import { SheetRangeThemeModel } from '../../model/range-theme-model';-import { getSheetCommandTarget } from '../commands/utils/target-util';import { RegisterWorksheetRangeThemeStyleMutation } from '../mutations/register-range-theme.mutation';import { UnregisterWorksheetRangeThemeStyleMutation } from '../mutations/unregister-range-theme-style.mutation';+import { getSheetCommandTarget } from './utils/target-util';export interface IUnregisterWorksheetRangeThemeStyleCommandParams {unitId: string;diff --git a/packages/sheets/src/commands/mutations/reorder-range.mutation.ts b/packages/sheets/src/commands/mutations/reorder-range.mutation.tsindex bbb19fca0b..ccf2857aed 100644--- a/packages/sheets/src/commands/mutations/reorder-range.mutation.ts+++ b/packages/sheets/src/commands/mutations/reorder-range.mutation.ts@@ -15,7 +15,7 @@*/import type { ICellData, IMutation, IRange, Nullable, Workbook } from '@univerjs/core';-import type { ISheetCommandSharedParams } from '../../commands/utils/interface';+import type { ISheetCommandSharedParams } from '../utils/interface';import { CommandType, IUniverInstanceService, ObjectMatrix, Range, Tools } from '@univerjs/core';export interface IReorderRangeMutationParams extends ISheetCommandSharedParams {diff --git a/packages/sheets/src/controllers/config.schema.ts b/packages/sheets/src/config/config.tssimilarity index 100%rename from packages/sheets/src/controllers/config.schema.tsrename to packages/sheets/src/config/config.tsdiff --git a/packages/sheets/src/controllers/freeze-sync.controller.ts b/packages/sheets/src/controllers/freeze-sync.controller.tsindex a9942c9928..0e519fa703 100644--- a/packages/sheets/src/controllers/freeze-sync.controller.ts+++ b/packages/sheets/src/controllers/freeze-sync.controller.ts@@ -17,13 +17,13 @@import type { IExecutionOptions, IFreeze, Workbook } from '@univerjs/core';import type { IInsertColMutationParams, IInsertRowMutationParams, IRemoveColMutationParams, IRemoveRowsMutationParams } from '../basics';import type { IMoveColumnsMutationParams, IMoveRowsMutationParams } from '../commands/mutations/move-rows-cols.mutation';-import type { IUniverSheetsConfig } from './config.schema';+import type { IUniverSheetsConfig } from '../config/config';import { Disposable, DisposableCollection, ICommandService, IConfigService, Inject, IUniverInstanceService, sequenceExecute, UniverInstanceType } from '@univerjs/core';import { InsertColMutation, InsertRowMutation } from '../commands/mutations/insert-row-col.mutation';import { MoveColsMutation, MoveRowsMutation } from '../commands/mutations/move-rows-cols.mutation';import { RemoveColMutation, RemoveRowMutation } from '../commands/mutations/remove-row-col.mutation';import { SetFrozenMutation } from '../commands/mutations/set-frozen.mutation';-import { SHEETS_PLUGIN_CONFIG_KEY } from './config.schema';+import { SHEETS_PLUGIN_CONFIG_KEY } from '../config/config';const sheetsFreezeOnlyLocalMutationIds = [SetFrozenMutation.id,diff --git a/packages/sheets/src/index.ts b/packages/sheets/src/index.tsindex 563f2bbb0c..b9c17f554a 100644--- a/packages/sheets/src/index.ts+++ b/packages/sheets/src/index.ts@@ -328,8 +328,8 @@ export { getInsertRangeMutations, getRemoveRangeMutations } from './commands/utiexport { handleInsertRangeMutation } from './commands/utils/handle-range-mutation';export { type ISheetCommandSharedParams } from './commands/utils/interface';export { getSelectionsService } from './commands/utils/selection-command-util';+export { defaultLargeSheetOperationConfig, type ILargeSheetOperationConfig, type IUniverSheetsConfig, SHEETS_PLUGIN_CONFIG_KEY } from './config/config';export { AutoFillController } from './controllers/auto-fill.controller';-export { defaultLargeSheetOperationConfig, type ILargeSheetOperationConfig, type IUniverSheetsConfig, SHEETS_PLUGIN_CONFIG_KEY } from './controllers/config.schema';export { MAX_CELL_PER_SHEET_KEY } from './controllers/config/config';export { DefinedNameDataController } from './controllers/defined-name-data.controller';export { SCOPE_WORKBOOK_VALUE_DEFINED_NAME } from './controllers/defined-name-data.controller';diff --git a/packages/sheets/src/plugin.ts b/packages/sheets/src/plugin.tsindex 77b7bfda65..ef64920fe3 100644--- a/packages/sheets/src/plugin.ts+++ b/packages/sheets/src/plugin.ts@@ -15,16 +15,16 @@*/import type { Dependency } from '@univerjs/core';-import type { IUniverSheetsConfig } from './controllers/config.schema';+import type { IUniverSheetsConfig } from './config/config';import { AUTO_HEIGHT_FOR_MERGED_CELLS, DependentOn, IConfigService, Inject, Injector, IS_ROW_STYLE_PRECEDE_COLUMN_STYLE, merge, mergeOverrideWithDependencies, Plugin, registerDependencies, touchDependencies, UniverInstanceType } from '@univerjs/core';import { UniverFormulaEnginePlugin } from '@univerjs/engine-formula';import pkg from '../package.json';+import { defaultPluginConfig, SHEETS_PLUGIN_CONFIG_KEY } from './config/config';import { ActiveWorksheetController } from './controllers/active-worksheet.controller';import { AutoFillController } from './controllers/auto-fill.controller';import { BasicWorksheetController } from './controllers/basic-worksheet.controller';import { CalculateResultApplyController } from './controllers/calculate-result-apply.controller';import { ONLY_REGISTER_FORMULA_RELATED_MUTATIONS_KEY } from './controllers/config';-import { defaultPluginConfig, SHEETS_PLUGIN_CONFIG_KEY } from './controllers/config.schema';import { DefinedNameDataController } from './controllers/defined-name-data.controller';import { SheetsFreezeSyncController } from './controllers/freeze-sync.controller';import { MergeCellController } from './controllers/merge-cell.controller';diff --git a/packages/sheets/src/services/permission/range-permission/range-protection.ref-range.ts b/packages/sheets/src/services/permission/range-permission/range-protection.ref-range.tsindex cddc8570da..7cb410b44e 100644--- a/packages/sheets/src/services/permission/range-permission/range-protection.ref-range.ts+++ b/packages/sheets/src/services/permission/range-permission/range-protection.ref-range.ts@@ -25,7 +25,7 @@ import type { IDeleteRangeProtectionMutationParams } from '../../../commands/mutimport type { IMoveRowsMutationParams } from '../../../commands/mutations/move-rows-cols.mutation';import type { ISetRangeProtectionMutationParams } from '../../../commands/mutations/set-range-protection.mutation';import type { IRangeProtectionRule } from '../../../model/range-protection-rule.model';-import type { EffectRefRangeParams } from '../../../services/ref-range/type';+import type { EffectRefRangeParams } from '../../ref-range/type';import { Disposable, DisposableCollection, ICommandService, Inject, IUniverInstanceService, Rectangle, Tools, UniverInstanceType } from '@univerjs/core';import { InsertColCommand, InsertRowCommand } from '../../../commands/commands/insert-row-col.command';import { MoveColsCommand, MoveRowsCommand } from '../../../commands/commands/move-rows-cols.command';@@ -41,7 +41,7 @@ import { SetRangeProtectionMutation } from '../../../commands/mutations/set-rangimport { RangeProtectionRenderModel } from '../../../model/range-protection-render.model';import { RangeProtectionRuleModel } from '../../../model/range-protection-rule.model';import { RangeProtectionCache } from '../../../model/range-protection.cache';-import { RefRangeService } from '../../../services/ref-range/ref-range.service';+import { RefRangeService } from '../../ref-range/ref-range.service';import { SheetInterceptorService } from '../../sheet-interceptor/sheet-interceptor.service';const mutationIdByRowCol = [InsertColMutation.id, InsertRowMutation.id, RemoveColMutation.id, RemoveRowMutation.id];diff --git a/packages/sheets/src/services/permission/util.ts b/packages/sheets/src/services/permission/util.tsindex d4705cc240..629476193a 100644--- a/packages/sheets/src/services/permission/util.ts+++ b/packages/sheets/src/services/permission/util.ts@@ -17,8 +17,8 @@import type { IAccessor, IRange } from '@univerjs/core';import { IPermissionService, Rectangle } from '@univerjs/core';import { RangeProtectionRuleModel } from '../../model/range-protection-rule.model';-import { WorkbookEditablePermission, WorksheetEditPermission } from '../../services/permission/permission-point';-import { RangeProtectionPermissionEditPoint } from '../../services/permission/permission-point/range/edit';+import { WorkbookEditablePermission, WorksheetEditPermission } from './permission-point';+import { RangeProtectionPermissionEditPoint } from './permission-point/range/edit';export const checkRangesEditablePermission = (accessor: IAccessor, unitId: string, subUnitId: string, ranges: IRange[]) => {const permissionService = accessor.get(IPermissionService);diff --git a/packages/slides-ui/src/controllers/config.schema.ts b/packages/slides-ui/src/config/config.tssimilarity index 100%rename from packages/slides-ui/src/controllers/config.schema.tsrename to packages/slides-ui/src/config/config.tsdiff --git a/packages/slides-ui/src/controllers/slide-ui.controller.ts b/packages/slides-ui/src/controllers/slide-ui.controller.tsindex e724d014ae..ef6b155d47 100644--- a/packages/slides-ui/src/controllers/slide-ui.controller.ts+++ b/packages/slides-ui/src/controllers/slide-ui.controller.ts@@ -30,8 +30,8 @@ import { COMPONENT_SLIDE_IMAGE_POPUP_MENU } from '../components/image-popup-menuimport { SlideImagePopupMenu } from '../components/image-popup-menu/ImagePopupMenu';import Sidebar, { COMPONENT_SLIDE_SIDEBAR } from '../components/sidebar/Sidebar';import { SlideSideBar } from '../components/slide-bar/SlideBar';+import { menuSchema } from '../menu/schema';import { SlideEditorContainer } from '../views/editor-container';-import { menuSchema } from './menu.schema';import { EditorDeleteLeftShortcut, generateArrowSelectionShortCutItem } from './shortcuts/editor.shortcuts';/**diff --git a/packages/slides-ui/src/index.ts b/packages/slides-ui/src/index.tsindex af7acd19f0..981cdcab44 100644--- a/packages/slides-ui/src/index.ts+++ b/packages/slides-ui/src/index.ts@@ -25,13 +25,13 @@ export { SlideAddTextCommand, SlideAddTextOperation } from './commands/operationexport { SetSlidePageThumbOperation } from './commands/operations/set-thumb.operation';export { UpdateSlideElementOperation } from './commands/operations/update-element.operation';export { SlideSideBar } from './components/slide-bar/SlideBar';+export type { IUniverSlidesUIConfig } from './config/config';export { SLIDE_EDITOR_ID } from './const';export { CanvasView } from './controllers/canvas-view';-export type { IUniverSlidesUIConfig } from './controllers/config.schema';-export { SLIDES_IMAGE_MENU_ID } from './controllers/image.menu';-export { menuSchema as SlidesUIMenuSchema } from './controllers/menu.schema';-export { SHAPE_MENU_ID } from './controllers/shape.menu';export { SlidesUIController } from './controllers/slide-ui.controller';+export { SLIDES_IMAGE_MENU_ID } from './menu/image.menu';+export { menuSchema as SlidesUIMenuSchema } from './menu/schema';+export { SHAPE_MENU_ID } from './menu/shape.menu';export { UniverSlidesUIPlugin } from './plugin';export { ISlideEditorBridgeService } from './services/slide-editor-bridge.service';export { SlideCanvasPopMangerService } from './services/slide-popup-manager.service';diff --git a/packages/slides-ui/src/controllers/image.menu.ts b/packages/slides-ui/src/menu/image.menu.tssimilarity index 100%rename from packages/slides-ui/src/controllers/image.menu.tsrename to packages/slides-ui/src/menu/image.menu.tsdiff --git a/packages/slides-ui/src/controllers/popup-menu.controller.ts b/packages/slides-ui/src/menu/popup-menu.controller.tssimilarity index 99%rename from packages/slides-ui/src/controllers/popup-menu.controller.tsrename to packages/slides-ui/src/menu/popup-menu.controller.tsindex aa5afdeedc..5fd1ee5c5b 100644--- a/packages/slides-ui/src/controllers/popup-menu.controller.ts+++ b/packages/slides-ui/src/menu/popup-menu.controller.ts@@ -23,8 +23,8 @@ import { DeleteSlideElementOperation } from '../commands/operations/delete-elemeimport { ToggleSlideEditSidebarOperation } from '../commands/operations/insert-shape.operation';import { UpdateSlideElementOperation } from '../commands/operations/update-element.operation';import { COMPONENT_SLIDE_IMAGE_POPUP_MENU } from '../components/image-popup-menu/component-name';+import { CanvasView } from '../controllers/canvas-view';import { SlideCanvasPopMangerService } from '../services/slide-popup-manager.service';-import { CanvasView } from './canvas-view';export class SlidePopupMenuController extends RxDisposable {private _initImagePopupMenu = new Set<string>();diff --git a/packages/slides-ui/src/controllers/menu.schema.ts b/packages/slides-ui/src/menu/schema.tssimilarity index 100%rename from packages/slides-ui/src/controllers/menu.schema.tsrename to packages/slides-ui/src/menu/schema.tsdiff --git a/packages/slides-ui/src/controllers/shape.menu.ts b/packages/slides-ui/src/menu/shape.menu.tssimilarity index 100%rename from packages/slides-ui/src/controllers/shape.menu.tsrename to packages/slides-ui/src/menu/shape.menu.tsdiff --git a/packages/slides-ui/src/controllers/text.menu.ts b/packages/slides-ui/src/menu/text.menu.tssimilarity index 100%rename from packages/slides-ui/src/controllers/text.menu.tsrename to packages/slides-ui/src/menu/text.menu.tsdiff --git a/packages/slides-ui/src/plugin.ts b/packages/slides-ui/src/plugin.tsindex 45180da400..d1182b9b40 100644--- a/packages/slides-ui/src/plugin.ts+++ b/packages/slides-ui/src/plugin.ts@@ -15,17 +15,17 @@*/import type { Dependency, SlideDataModel } from '@univerjs/core';-import type { IUniverSlidesUIConfig } from './controllers/config.schema';+import type { IUniverSlidesUIConfig } from './config/config';import { IConfigService, Inject, Injector, IUniverInstanceService, merge, mergeOverrideWithDependencies, Plugin, UniverInstanceType } from '@univerjs/core';import { IRenderManagerService } from '@univerjs/engine-render';import pkg from '../package.json';+import { defaultPluginConfig, SLIDES_UI_PLUGIN_CONFIG_KEY } from './config/config';import { CanvasView } from './controllers/canvas-view';-import { defaultPluginConfig, SLIDES_UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';-import { SlidePopupMenuController } from './controllers/popup-menu.controller';import { SlideEditingRenderController } from './controllers/slide-editing.render-controller';import { SlideEditorBridgeRenderController } from './controllers/slide-editor-bridge.render-controller';import { SlidesUIController } from './controllers/slide-ui.controller';import { SlideRenderController } from './controllers/slide.render-controller';+import { SlidePopupMenuController } from './menu/popup-menu.controller';import { ISlideEditorBridgeService, SlideEditorBridgeService } from './services/slide-editor-bridge.service';import { ISlideEditorManagerService, SlideEditorManagerService } from './services/slide-editor-manager.service';import { SlideCanvasPopMangerService } from './services/slide-popup-manager.service';diff --git a/packages/slides/src/controllers/config.schema.ts b/packages/slides/src/config/config.tssimilarity index 100%rename from packages/slides/src/controllers/config.schema.tsrename to packages/slides/src/config/config.tsdiff --git a/packages/slides/src/index.ts b/packages/slides/src/index.tsindex ee3f7f1853..1805f5e2c5 100644--- a/packages/slides/src/index.ts+++ b/packages/slides/src/index.ts@@ -14,6 +14,6 @@* limitations under the License.*/-export type { IUniverSlidesConfig } from './controllers/config.schema';+export type { IUniverSlidesConfig } from './config/config';export { UniverSlidesPlugin } from './plugin';export * from './views/render';diff --git a/packages/slides/src/plugin.ts b/packages/slides/src/plugin.tsindex 611a4b2a12..2cdb8350fd 100644--- a/packages/slides/src/plugin.ts+++ b/packages/slides/src/plugin.ts@@ -19,7 +19,7 @@ import type { Engine } from '@univerjs/engine-render';import { IConfigService, Inject, Injector, merge, Plugin, UniverInstanceType } from '@univerjs/core';import { IRenderingEngine, IRenderManagerService } from '@univerjs/engine-render';import pkg from '../package.json';-import { defaultPluginConfig, SLIDES_PLUGIN_CONFIG_KEY } from './controllers/config.schema';+import { defaultPluginConfig, SLIDES_PLUGIN_CONFIG_KEY } from './config/config';// import { DocSelectionManagerService } from '@univerjs/docs';// import { CanvasView } from './views/render';diff --git a/packages/thread-comment-ui/src/controllers/config.schema.ts b/packages/thread-comment-ui/src/config/config.tssimilarity index 100%rename from packages/thread-comment-ui/src/controllers/config.schema.tsrename to packages/thread-comment-ui/src/config/config.tsdiff --git a/packages/thread-comment-ui/src/index.ts b/packages/thread-comment-ui/src/index.tsindex d9afc79409..61f8d4c4f7 100644--- a/packages/thread-comment-ui/src/index.ts+++ b/packages/thread-comment-ui/src/index.ts@@ -21,7 +21,7 @@ export {SetActiveCommentOperation,ToggleSheetCommentPanelOperation,} from './commands/operations/comment.operations';-export type { IUniverThreadCommentUIConfig } from './controllers/config.schema';+export type { IUniverThreadCommentUIConfig } from './config/config';export { UniverThreadCommentUIPlugin } from './plugin';export { type ActiveCommentInfo, ThreadCommentPanelService } from './services/thread-comment-panel.service';export { THREAD_COMMENT_PANEL } from './types/const';diff --git a/packages/thread-comment-ui/src/plugin.ts b/packages/thread-comment-ui/src/plugin.tsindex 0ecd67a40c..fbfc000537 100644--- a/packages/thread-comment-ui/src/plugin.ts+++ b/packages/thread-comment-ui/src/plugin.ts@@ -15,12 +15,12 @@*/import type { Dependency } from '@univerjs/core';-import type { IUniverThreadCommentUIConfig } from './controllers/config.schema';+import type { IUniverThreadCommentUIConfig } from './config/config';import { DependentOn, ICommandService, IConfigService, Inject, Injector, merge, mergeOverrideWithDependencies, Plugin, UniverInstanceType } from '@univerjs/core';import { UniverThreadCommentPlugin } from '@univerjs/thread-comment';import pkg from '../package.json';import { SetActiveCommentOperation, ToggleSheetCommentPanelOperation } from './commands/operations/comment.operations';-import { defaultPluginConfig, THREAD_COMMENT_UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';+import { defaultPluginConfig, THREAD_COMMENT_UI_PLUGIN_CONFIG_KEY } from './config/config';import { ThreadCommentPanelService } from './services/thread-comment-panel.service';import { PLUGIN_NAME } from './types/const';diff --git a/packages/thread-comment/src/controllers/config.schema.ts b/packages/thread-comment/src/config/config.tssimilarity index 100%rename from packages/thread-comment/src/controllers/config.schema.tsrename to packages/thread-comment/src/config/config.tsdiff --git a/packages/thread-comment/src/index.ts b/packages/thread-comment/src/index.tsindex 8f56342bcf..3cb225df34 100644--- a/packages/thread-comment/src/index.ts+++ b/packages/thread-comment/src/index.ts@@ -44,7 +44,7 @@ export type {IUpdateCommentRefMutationParams,} from './commands/mutations/comment.mutation';export { getDT } from './common/utils';-export type { IUniverThreadCommentConfig } from './controllers/config.schema';+export type { IUniverThreadCommentConfig } from './config/config';export { SHEET_UNIVER_THREAD_COMMENT_PLUGIN, ThreadCommentResourceController } from './controllers/tc-resource.controller';export { type CommentUpdate, type IThreadInfo, ThreadCommentModel } from './models/thread-comment.model';export { UniverThreadCommentPlugin } from './plugin';diff --git a/packages/thread-comment/src/plugin.ts b/packages/thread-comment/src/plugin.tsindex c2ec721f8a..90de32f6a0 100644--- a/packages/thread-comment/src/plugin.ts+++ b/packages/thread-comment/src/plugin.ts@@ -15,12 +15,12 @@*/import type { Dependency } from '@univerjs/core';-import type { IUniverThreadCommentConfig } from './controllers/config.schema';+import type { IUniverThreadCommentConfig } from './config/config';import { ICommandService, IConfigService, Inject, Injector, merge, mergeOverrideWithDependencies, Plugin, UniverInstanceType } from '@univerjs/core';import pkg from '../package.json';import { AddCommentCommand, DeleteCommentCommand, DeleteCommentTreeCommand, ResolveCommentCommand, UpdateCommentCommand } from './commands/commands/comment.command';import { AddCommentMutation, DeleteCommentMutation, ResolveCommentMutation, UpdateCommentMutation, UpdateCommentRefMutation } from './commands/mutations/comment.mutation';-import { defaultPluginConfig, THREAD_COMMENT_PLUGIN_CONFIG_KEY } from './controllers/config.schema';+import { defaultPluginConfig, THREAD_COMMENT_PLUGIN_CONFIG_KEY } from './config/config';import { ThreadCommentResourceController } from './controllers/tc-resource.controller';import { ThreadCommentModel } from './models/thread-comment.model';import { IThreadCommentDataSourceService, ThreadCommentDataSourceService } from './services/tc-datasource.service';diff --git a/packages/ui/src/controllers/config.schema.ts b/packages/ui/src/config/config.tssimilarity index 94%rename from packages/ui/src/controllers/config.schema.tsrename to packages/ui/src/config/config.tsindex 44f2de49a9..887e463601 100644--- a/packages/ui/src/controllers/config.schema.ts+++ b/packages/ui/src/config/config.ts@@ -15,8 +15,8 @@*/import type { DependencyOverride } from '@univerjs/core';+import type { IWorkbenchOptions } from '../controllers/ui/ui.controller';import type { MenuConfig } from '../services/menu/menu';-import type { IWorkbenchOptions } from './ui/ui.controller';export const UI_PLUGIN_CONFIG_KEY = 'ui.config';diff --git a/packages/ui/src/controllers/__tests__/misc-controllers.spec.ts b/packages/ui/src/controllers/__tests__/misc-controllers.spec.tsindex 17a069aa5e..838b38d6df 100644--- a/packages/ui/src/controllers/__tests__/misc-controllers.spec.ts+++ b/packages/ui/src/controllers/__tests__/misc-controllers.spec.ts@@ -17,9 +17,9 @@import { Subject } from 'rxjs';import { describe, expect, it, vi } from 'vitest';import { ToggleShortcutPanelOperation } from '../../commands/operations/toggle-shortcut-panel.operation';+import { menuSchema } from '../../menu/schema';import { RibbonStartGroup } from '../../services/menu/types';import { ErrorController } from '../error/error.controller';-import { menuSchema } from '../menus/menu.schema';import { ShortcutPanelMenuItemFactory } from '../shortcut-display/menu';import { ShortcutPanelController } from '../shortcut-display/shortcut-panel.controller';import { IUIController } from '../ui/ui.controller';diff --git a/packages/ui/src/controllers/ui/ui-desktop.controller.tsx b/packages/ui/src/controllers/ui/ui-desktop.controller.tsxindex 7bc99cc526..9bcc3b6ffa 100644--- a/packages/ui/src/controllers/ui/ui-desktop.controller.tsx+++ b/packages/ui/src/controllers/ui/ui-desktop.controller.tsx@@ -16,8 +16,8 @@import type { IDisposable } from '@univerjs/core';import type { ComponentType } from 'react';+import type { IUniverUIConfig } from '../../config/config';import type { IUniverWorkbenchProps } from '../../views/workbench/Workbench';-import type { IUniverUIConfig } from '../config.schema';import type { IWorkbenchOptions } from './ui.controller';import { Inject, Injector, IUniverInstanceService, LifecycleService, toDisposable } from '@univerjs/core';import { ColorPicker, render as createRoot, unmount } from '@univerjs/design';@@ -30,6 +30,7 @@ import { FontFamily, FontFamilyItem } from '../../components/font-family';import { FONT_FAMILY_COMPONENT, FONT_FAMILY_ITEM_COMPONENT } from '../../components/font-family/interface';import { FontSize } from '../../components/font-size/FontSize';import { FONT_SIZE_COMPONENT } from '../../components/font-size/interface';+import { menuSchema } from '../../menu/schema';import { ILayoutService } from '../../services/layout/layout.service';import { IMenuManagerService } from '../../services/menu/menu-manager.service';import { BuiltInUIPart, IUIPartsService } from '../../services/parts/parts.service';@@ -38,7 +39,6 @@ import { FloatDom } from '../../views/components/dom/FloatDom';import { CanvasPopup } from '../../views/components/popup/CanvasPopup';import { Ribbon } from '../../views/components/ribbon/Ribbon';import { DesktopWorkbench } from '../../views/workbench/Workbench';-import { menuSchema } from '../menus/menu.schema';import { SingleUnitUIController } from './ui-shared.controller';export class DesktopUIController extends SingleUnitUIController {diff --git a/packages/ui/src/controllers/ui/ui-mobile.controller.tsx b/packages/ui/src/controllers/ui/ui-mobile.controller.tsxindex 3e9d7498a7..d626d8e68c 100644--- a/packages/ui/src/controllers/ui/ui-mobile.controller.tsx+++ b/packages/ui/src/controllers/ui/ui-mobile.controller.tsx@@ -15,7 +15,7 @@*/import type { IDisposable } from '@univerjs/core';-import type { IUniverUIConfig } from '../config.schema';+import type { IUniverUIConfig } from '../../config/config';import type { IUIController, IWorkbenchOptions } from './ui.controller';import { Inject, Injector, IUniverInstanceService, LifecycleService, toDisposable } from '@univerjs/core';import { render as createRoot, unmount } from '@univerjs/design';diff --git a/packages/ui/src/index.ts b/packages/ui/src/index.tsindex d5a92cbeaa..422eeb7f47 100644--- a/packages/ui/src/index.ts+++ b/packages/ui/src/index.ts@@ -33,10 +33,9 @@ export { Menu as UIMenu } from './components/menu/desktop/Menu';export { Menu as DesktopMenu } from './components/menu/desktop/Menu';export { type INotificationOptions } from './components/notification/Notification';export { ProgressBar } from './components/progress-bar/ProgressBar';+export { type IUniverUIConfig, UI_PLUGIN_CONFIG_KEY } from './config/config';export { UNI_DISABLE_CHANGING_FOCUS_KEY } from './const';-export { type IUniverUIConfig, UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';export { ErrorController } from './controllers/error/error.controller';-export { menuSchema as UIMenuSchema } from './controllers/menus/menu.schema';export {CopyShortcutItem,CutShortcutItem,@@ -48,6 +47,7 @@ export { ShortcutPanelController } from './controllers/shortcut-display/shortcutexport { DesktopUIController } from './controllers/ui/ui-desktop.controller';export { SingleUnitUIController } from './controllers/ui/ui-shared.controller';export { IUIController, type IWorkbenchOptions } from './controllers/ui/ui.controller';+export { menuSchema as UIMenuSchema } from './menu/schema';export { UniverMobileUIPlugin } from './mobile-plugin';export { DISABLE_AUTO_FOCUS_KEY, UniverUIPlugin } from './plugin';export { DesktopBeforeCloseService, IBeforeCloseService } from './services/before-close/before-close.service';@@ -106,7 +106,7 @@ export {RibbonStartGroup,RibbonViewGroup,} from './services/menu/types';-export { MockMessageService } from './services/message/__testing__/mock-message.service.ts';+export { MockMessageService } from './services/message/__testing__/mock-message.service';export { DesktopMessageService } from './services/message/desktop-message.service';export { IMessageService } from './services/message/message.service';export { DesktopNotificationService } from './services/notification/desktop-notification.service';diff --git a/packages/ui/src/controllers/menus/menu.schema.ts b/packages/ui/src/menu/schema.tssimilarity index 73%rename from packages/ui/src/controllers/menus/menu.schema.tsrename to packages/ui/src/menu/schema.tsindex f8100017b5..8c55b3b38a 100644--- a/packages/ui/src/controllers/menus/menu.schema.ts+++ b/packages/ui/src/menu/schema.ts@@ -14,12 +14,12 @@* limitations under the License.*/-import type { MenuSchemaType } from '../../services/menu/menu-manager.service';+import type { MenuSchemaType } from '../services/menu/menu-manager.service';import { RedoCommand, UndoCommand } from '@univerjs/core';-import { ToggleShortcutPanelOperation } from '../../commands/operations/toggle-shortcut-panel.operation';-import { RibbonStartGroup } from '../../services/menu/types';-import { ShortcutPanelMenuItemFactory } from '../shortcut-display/menu';-import { RedoMenuItemFactory, UndoMenuItemFactory } from './menus';+import { ToggleShortcutPanelOperation } from '../commands/operations/toggle-shortcut-panel.operation';+import { RedoMenuItemFactory, UndoMenuItemFactory } from '../controllers/menus/menus';+import { ShortcutPanelMenuItemFactory } from '../controllers/shortcut-display/menu';+import { RibbonStartGroup } from '../services/menu/types';export const menuSchema: MenuSchemaType = {[RibbonStartGroup.HISTORY]: {diff --git a/packages/ui/src/mobile-plugin.ts b/packages/ui/src/mobile-plugin.tsindex 86c2a38e52..8f87316962 100644--- a/packages/ui/src/mobile-plugin.ts+++ b/packages/ui/src/mobile-plugin.ts@@ -14,13 +14,13 @@* limitations under the License.*/-import type { IUniverUIConfig } from './controllers/config.schema';+import type { IUniverUIConfig } from './config/config';import { DependentOn, generateRandomId, IConfigService, IConfirmService, IContextService, ILocalStorageService, Inject, Injector, merge, mergeOverrideWithDependencies, Plugin, registerDependencies, touchDependencies } from '@univerjs/core';import { UniverRenderEnginePlugin } from '@univerjs/engine-render';import pkg from '../package.json';import { ComponentManager } from './common/component-manager';import { ZIndexManager } from './common/z-index-manager';-import { defaultPluginConfig, UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';+import { defaultPluginConfig, UI_PLUGIN_CONFIG_KEY } from './config/config';import { ErrorController } from './controllers/error/error.controller';import { SharedController } from './controllers/shared-shortcut.controller';import { ShortcutPanelController } from './controllers/shortcut-display/shortcut-panel.controller';diff --git a/packages/ui/src/plugin.ts b/packages/ui/src/plugin.tsindex b8c65d58bd..acb7357ba2 100644--- a/packages/ui/src/plugin.ts+++ b/packages/ui/src/plugin.ts@@ -14,13 +14,13 @@* limitations under the License.*/-import type { IUniverUIConfig } from './controllers/config.schema';+import type { IUniverUIConfig } from './config/config';import { DependentOn, generateRandomId, IConfigService, IConfirmService, IContextService, ILocalStorageService, Inject, Injector, merge, mergeOverrideWithDependencies, Plugin, registerDependencies, touchDependencies } from '@univerjs/core';import { UniverRenderEnginePlugin } from '@univerjs/engine-render';import pkg from '../package.json';import { ComponentManager } from './common/component-manager';import { ZIndexManager } from './common/z-index-manager';-import { defaultPluginConfig, UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';+import { defaultPluginConfig, UI_PLUGIN_CONFIG_KEY } from './config/config';import { ErrorController } from './controllers/error/error.controller';import { SharedController } from './controllers/shared-shortcut.controller';import { ShortcutPanelController } from './controllers/shortcut-display/shortcut-panel.controller';diff --git a/packages/ui/src/services/font.service.ts b/packages/ui/src/services/font.service.tsindex d7f38c57cb..078fde53f0 100644--- a/packages/ui/src/services/font.service.ts+++ b/packages/ui/src/services/font.service.ts@@ -15,10 +15,10 @@*/import type { IDisposable } from '@univerjs/core';-import type { IUniverUIConfig } from '../controllers/config.schema';+import type { IUniverUIConfig } from '../config/config';import { createIdentifier, IConfigService } from '@univerjs/core';import { BehaviorSubject } from 'rxjs';-import { UI_PLUGIN_CONFIG_KEY } from '../controllers/config.schema';+import { UI_PLUGIN_CONFIG_KEY } from '../config/config';export const IFontService = createIdentifier<IFontService>('univer.font-service');diff --git a/packages/ui/src/services/menu/menu-manager.service.ts b/packages/ui/src/services/menu/menu-manager.service.tsindex 97d0c301d8..0578692b40 100644--- a/packages/ui/src/services/menu/menu-manager.service.ts+++ b/packages/ui/src/services/menu/menu-manager.service.ts@@ -16,7 +16,7 @@import type { IAccessor, Nullable } from '@univerjs/core';import type { Observable } from 'rxjs';-import type { IMenuItem } from '../menu/menu';+import type { IMenuItem } from './menu';import { createIdentifier, Disposable, IConfigService, Inject, Injector, merge } from '@univerjs/core';import { Subject } from 'rxjs';import { mergeMenuConfigs } from '../../common/menu-merge-configs';diff --git a/packages/ui/src/views/components/popup/RectPopup.tsx b/packages/ui/src/views/components/popup/RectPopup.tsxindex dc62941b05..dc2e9a6d67 100644--- a/packages/ui/src/views/components/popup/RectPopup.tsx+++ b/packages/ui/src/views/components/popup/RectPopup.tsx@@ -17,13 +17,13 @@import type { Nullable } from '@univerjs/core';import type { ReactNode, RefObject } from 'react';import type { Observable } from 'rxjs';-import type { IUniverUIConfig } from '../../../controllers/config.schema';+import type { IUniverUIConfig } from '../../../config/config';import { IConfigService } from '@univerjs/core';import { clsx } from '@univerjs/design';import { createContext, useContext, useEffect, useRef } from 'react';import { createPortal } from 'react-dom';import { useEvent } from '../../../components/hooks/event';-import { UI_PLUGIN_CONFIG_KEY } from '../../../controllers/config.schema';+import { UI_PLUGIN_CONFIG_KEY } from '../../../config/config';import { useDependency } from '../../../utils/di';interface IAbsolutePosition {diff --git a/packages/ui/src/views/workbench/Workbench.tsx b/packages/ui/src/views/workbench/Workbench.tsxindex 5f7c02fd4a..a1be4bb09b 100644--- a/packages/ui/src/views/workbench/Workbench.tsx+++ b/packages/ui/src/views/workbench/Workbench.tsx@@ -14,14 +14,14 @@* limitations under the License.*/-import type { IUniverUIConfig } from '../../controllers/config.schema';+import type { IUniverUIConfig } from '../../config/config';import type { IWorkbenchOptions } from '../../controllers/ui/ui.controller';import { IConfigService, LocaleService, ThemeService } from '@univerjs/core';import { borderBottomClassName, clsx, ConfigContext, ConfigProvider } from '@univerjs/design';import { useContext, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react';import { createPortal } from 'react-dom';import { useConfigValue } from '../../components/hooks';-import { UI_PLUGIN_CONFIG_KEY } from '../../controllers/config.schema';+import { UI_PLUGIN_CONFIG_KEY } from '../../config/config';import { BuiltInUIPart } from '../../services/parts/parts.service';import { ThemeSwitcherService } from '../../services/theme-switcher/theme-switcher.service';import { useDependency } from '../../utils/di';diff --git a/packages/uniscript/src/controllers/config.schema.ts b/packages/uniscript/src/config/config.tssimilarity index 100%rename from packages/uniscript/src/controllers/config.schema.tsrename to packages/uniscript/src/config/config.tsdiff --git a/packages/uniscript/src/controllers/uniscript.controller.ts b/packages/uniscript/src/controllers/uniscript.controller.tsindex 7463438adf..17b3808691 100644--- a/packages/uniscript/src/controllers/uniscript.controller.ts+++ b/packages/uniscript/src/controllers/uniscript.controller.ts@@ -18,8 +18,8 @@ import { Disposable, ICommandService, Inject } from '@univerjs/core';import { ComponentManager, IMenuManagerService } from '@univerjs/ui';import { ScriptPanelComponentName, ToggleScriptPanelOperation } from '../commands/operations/panel.operation';+import { menuSchema } from '../menu/schema';import { ScriptEditorPanel } from '../views/components/ScriptEditorPanel';-import { menuSchema } from './menu.schema';export class UniscriptController extends Disposable {constructor(diff --git a/packages/uniscript/src/index.ts b/packages/uniscript/src/index.tsindex 2c02e6dc27..8660add8d1 100644--- a/packages/uniscript/src/index.ts+++ b/packages/uniscript/src/index.ts@@ -17,7 +17,7 @@import './global.css';export { ToggleScriptPanelOperation } from './commands/operations/panel.operation';-export type { IUniverUniscriptConfig } from './controllers/config.schema';+export type { IUniverUniscriptConfig } from './config/config';export { UniverUniscriptPlugin } from './plugin';export { ScriptEditorService } from './services/script-editor.service';export { IUniscriptExecutionService } from './services/script-execution.service';diff --git a/packages/uniscript/src/controllers/menu.ts b/packages/uniscript/src/menu/menu.tssimilarity index 100%rename from packages/uniscript/src/controllers/menu.tsrename to packages/uniscript/src/menu/menu.tsdiff --git a/packages/uniscript/src/controllers/menu.schema.ts b/packages/uniscript/src/menu/schema.tssimilarity index 100%rename from packages/uniscript/src/controllers/menu.schema.tsrename to packages/uniscript/src/menu/schema.tsdiff --git a/packages/uniscript/src/plugin.ts b/packages/uniscript/src/plugin.tsindex ad3ab24505..9f90d33f9f 100644--- a/packages/uniscript/src/plugin.ts+++ b/packages/uniscript/src/plugin.ts@@ -15,10 +15,10 @@*/import type { Dependency } from '@univerjs/core';-import type { IUniverUniscriptConfig } from './controllers/config.schema';+import type { IUniverUniscriptConfig } from './config/config';import { IConfigService, Inject, Injector, merge, Plugin } from '@univerjs/core';import pkg from '../package.json';-import { defaultPluginConfig, UNISCRIPT_PLUGIN_CONFIG_KEY } from './controllers/config.schema';+import { defaultPluginConfig, UNISCRIPT_PLUGIN_CONFIG_KEY } from './config/config';import { UniscriptController } from './controllers/uniscript.controller';import { ScriptEditorService } from './services/script-editor.service';import { IUniscriptExecutionService, UniscriptExecutionService } from './services/script-execution.service';diff --git a/packages/uniscript/src/services/script-editor.service.ts b/packages/uniscript/src/services/script-editor.service.tsindex 480b88b7b8..0ee8876fe5 100644--- a/packages/uniscript/src/services/script-editor.service.ts+++ b/packages/uniscript/src/services/script-editor.service.ts@@ -16,9 +16,9 @@import type { IDisposable } from '@univerjs/core';import type { editor } from 'monaco-editor';-import type { IUniverUniscriptConfig } from '../controllers/config.schema';+import type { IUniverUniscriptConfig } from '../config/config';import { Disposable, IConfigService, toDisposable } from '@univerjs/core';-import { UNISCRIPT_PLUGIN_CONFIG_KEY } from '../controllers/config.schema';+import { UNISCRIPT_PLUGIN_CONFIG_KEY } from '../config/config';/*** This service is for loading monaco editor and its resources. It also holds thediff --git a/packages/watermark/src/controllers/config.schema.ts b/packages/watermark/src/config/config.tssimilarity index 100%rename from packages/watermark/src/controllers/config.schema.tsrename to packages/watermark/src/config/config.tsdiff --git a/packages/watermark/src/index.ts b/packages/watermark/src/index.tsindex bc2405827b..9e401b8e47 100644--- a/packages/watermark/src/index.ts+++ b/packages/watermark/src/index.ts@@ -15,6 +15,6 @@*/export { WATERMARK_IMAGE_ALLOW_IMAGE_LIST, WatermarkImageBaseConfig, WatermarkTextBaseConfig, WatermarkUserInfoBaseConfig } from './common/const';-export type { IUniverWatermarkConfig } from './controllers/config.schema';+export type { IUniverWatermarkConfig } from './config/config';export { UniverWatermarkPlugin } from './plugin';export { WatermarkService } from './services/watermark.service';diff --git a/packages/watermark/src/plugin.ts b/packages/watermark/src/plugin.tsindex 084951a226..99e458d6af 100644--- a/packages/watermark/src/plugin.ts+++ b/packages/watermark/src/plugin.ts@@ -16,12 +16,12 @@import type { Dependency } from '@univerjs/core';import type { IWatermarkConfigWithType } from '@univerjs/engine-render';-import type { IUniverWatermarkConfig } from './controllers/config.schema';+import type { IUniverWatermarkConfig } from './config/config';import { IConfigService, ILocalStorageService, Inject, Injector, merge, Plugin, UniverInstanceType } from '@univerjs/core';import { IRenderManagerService, IWatermarkTypeEnum, UNIVER_WATERMARK_STORAGE_KEY } from '@univerjs/engine-render';import pkg from '../package.json';import { WatermarkImageBaseConfig, WatermarkTextBaseConfig, WatermarkUserInfoBaseConfig } from './common/const';-import { defaultPluginConfig, WATERMARK_PLUGIN_CONFIG_KEY } from './controllers/config.schema';+import { defaultPluginConfig, WATERMARK_PLUGIN_CONFIG_KEY } from './config/config';import { WatermarkRenderController } from './controllers/watermark.render.controller';import { WatermarkService } from './services/watermark.service';diff --git a/tests/formula-integration/src/__tests__/formua-correctness.spec.ts b/tests/formula-integration/src/__tests__/formua-correctness.spec.tsindex dc200d9bfa..fdc5ced091 100644--- a/tests/formula-integration/src/__tests__/formua-correctness.spec.ts+++ b/tests/formula-integration/src/__tests__/formua-correctness.spec.ts@@ -18,7 +18,7 @@ import { describe, it } from 'vitest';import { expectCalculationResultMatchesSnapshot } from '../__testing__/util';describe('Test formula correctness', () => {- it('basic sum', () => {- expectCalculationResultMatchesSnapshot();+ it('basic sum', async () => {+ await expectCalculationResultMatchesSnapshot();});});diff --git a/tests/formula-integration/src/__tests__/test-formula-move.spec.ts b/tests/formula-integration/src/__tests__/test-formula-move.spec.tsindex 383f5dd652..dadc1dec24 100644--- a/tests/formula-integration/src/__tests__/test-formula-move.spec.ts+++ b/tests/formula-integration/src/__tests__/test-formula-move.spec.ts@@ -22,15 +22,15 @@ import {} from '../__testing__/test-formula-move';describe('Test formula move', () => {- it('move formula rows', () => {- expectMoveFormulaRowsResultMatchesSnapshot();+ it('move formula rows', async () => {+ await expectMoveFormulaRowsResultMatchesSnapshot();});- it('move formula si rows', () => {- expectMoveFormulaSiRowsResultMatchesSnapshot();+ it('move formula si rows', async () => {+ await expectMoveFormulaSiRowsResultMatchesSnapshot();});- it('move formula cell', () => {- expectMoveFormulaCellResultMatchesSnapshot();+ it('move formula cell', async () => {+ await expectMoveFormulaCellResultMatchesSnapshot();});});diff --git a/tests/formula-integration/src/__tests__/test-remove-rows-of-filter-rows.spec.ts b/tests/formula-integration/src/__tests__/test-remove-rows-of-filter-rows.spec.tsindex b9e8059c91..2016bc2191 100644--- a/tests/formula-integration/src/__tests__/test-remove-rows-of-filter-rows.spec.ts+++ b/tests/formula-integration/src/__tests__/test-remove-rows-of-filter-rows.spec.ts@@ -18,7 +18,7 @@ import { describe, it } from 'vitest';import { expectRemoveRowsOfFilterRowsResultMatchesSnapshot } from '../__testing__/test-remove-rows-of-filter-rows';describe('Test remove rows', () => {- it('of filter rows', () => {- expectRemoveRowsOfFilterRowsResultMatchesSnapshot();+ it('of filter rows', async () => {+ await expectRemoveRowsOfFilterRowsResultMatchesSnapshot();});});