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
chore: export all commands (#2642)
白熱978e66d8ed08
diff --git a/packages/data-validation/src/index.ts b/packages/data-validation/src/index.tsindex b9753b37fc..fc7674421d 100644--- a/packages/data-validation/src/index.ts+++ b/packages/data-validation/src/index.ts@@ -18,14 +18,6 @@ export { UniverDataValidationPlugin } from './plugin';export { DataValidatorRegistryService, DataValidatorRegistryScope } from './services/data-validator-registry.service';export { DataValidationModel } from './models/data-validation-model';-export {- AddDataValidationCommand,- RemoveDataValidationCommand,- RemoveAllDataValidationCommand,- UpdateDataValidationOptionsCommand,- UpdateDataValidationSettingCommand,-} from './commands/commands/data-validation.command';-export type {IRemoveDataValidationCommandParams,IAddDataValidationCommandParams,@@ -63,8 +55,20 @@ export type { IFormulaResult, IValidatorCellInfo } from './validators/base-data-export type { IBaseDataValidationWidget } from './validators/base-widget';export { DataValidationManager } from './models/data-validation-manager';export type { IFormulaValidResult } from './validators/base-data-validator';-export { removeDataValidationUndoFactory } from './commands/commands/data-validation.command';export { TWO_FORMULA_OPERATOR_COUNT } from './types/const/two-formula-operators';export { DataValidationResourceController } from './controllers/dv-resource.controller';export { DataValidationSheetController } from './controllers/dv-sheet.controller';export { TextLengthErrorTitleMap } from './types/const/operator-text-map';++// #region - all commands++export {+ AddDataValidationCommand,+ RemoveDataValidationCommand,+ UpdateDataValidationOptionsCommand,+ UpdateDataValidationSettingCommand,+ RemoveAllDataValidationCommand,+ removeDataValidationUndoFactory,+} from './commands/commands/data-validation.command';++// #endregiondiff --git a/packages/docs-drawing-ui/src/index.ts b/packages/docs-drawing-ui/src/index.tsindex 13da4ea6e8..7b566998fa 100644--- a/packages/docs-drawing-ui/src/index.ts+++ b/packages/docs-drawing-ui/src/index.ts@@ -15,3 +15,21 @@*/export { UniverDocsDrawingUIPlugin } from './plugin';++// #region - all commands++export { DeleteDocDrawingsCommand } from './commands/commands/delete-drawings.command';+export { GroupDocDrawingCommand } from './commands/commands/group-doc-drawing.command';+export { InsertDocDrawingCommand } from './commands/commands/insert-doc-drawing.command';+export { MoveDocDrawingsCommand } from './commands/commands/move-drawings.command';+export { RemoveDocDrawingCommand } from './commands/commands/remove-doc-drawing.command';+export { SetDocDrawingCommand } from './commands/commands/set-doc-drawing.command';+export { SetDocDrawingArrangeCommand } from './commands/commands/set-drawing-arrange.command';+export { UngroupDocDrawingCommand } from './commands/commands/ungroup-doc-drawing.command';++export { ClearDocDrawingTransformerOperation } from './commands/operations/clear-drawing-transformer.operation';+export { EditDocDrawingOperation } from './commands/operations/edit-doc-drawing.operation';+export { InsertDocImageOperation } from './commands/operations/insert-image.operation';+export { SidebarDocDrawingOperation } from './commands/operations/open-drawing-panel.operation';++// #endregiondiff --git a/packages/docs-drawing/src/index.ts b/packages/docs-drawing/src/index.tsindex 26478f8d39..a2cc65ac5d 100644--- a/packages/docs-drawing/src/index.ts+++ b/packages/docs-drawing/src/index.ts@@ -15,5 +15,10 @@*/export { UniverDocsDrawingPlugin } from './plugin';-export { DocDrawingApplyType, SetDocDrawingApplyMutation, type ISetDrawingApplyMutationParams } from './commands/mutations/set-drawing-apply.mutation';export { type IDocDrawing, IDocDrawingService, DocDrawingService } from './services/doc-drawing.service';++// #region - all commands++export { SetDocDrawingApplyMutation, DocDrawingApplyType, type ISetDrawingApplyMutationParams } from './commands/mutations/set-drawing-apply.mutation';++// #endregiondiff --git a/packages/docs-ui/src/index.ts b/packages/docs-ui/src/index.tsindex 53894f4c2f..2246dad68e 100644--- a/packages/docs-ui/src/index.ts+++ b/packages/docs-ui/src/index.ts@@ -21,3 +21,9 @@ export * from './services';export { DocsRenderService } from './services/docs-render.service';export { DocCanvasPopManagerService } from './services/doc-popup-manager.service';export { docDrawingPositionToTransform, transformToDocDrawingPosition } from './basics/transform-position';++// #region - all commands++export { DocCopyCommand, DocCutCommand, DocPasteCommand } from './commands/commands/clipboard.command';++// #endregiondiff --git a/packages/docs/src/index.ts b/packages/docs/src/index.tsindex 9f5c2a5a90..e462c79bb0 100644--- a/packages/docs/src/index.ts+++ b/packages/docs/src/index.ts@@ -17,33 +17,44 @@export type { IDocObjectParam } from './basics/component-tools';export { getDocObject, neoGetDocObject, getDocObjectById } from './basics/component-tools';export * from './basics/docs-view-key';++export { type IUniverDocsConfig, UniverDocsPlugin } from './doc-plugin';+export { DocSkeletonManagerService } from './services/doc-skeleton-manager.service';+export { TextSelectionManagerService, serializeTextRange } from './services/text-selection-manager.service';+export { DocStateChangeManagerService, type IDocStateChangeParams } from './services/doc-state-change-manager.service';+export { IMEInputManagerService } from './services/ime-input-manager.service';++// #region - all commands+export { BreakLineCommand } from './commands/commands/break-line.command';+export { CutContentCommand, InnerPasteCommand } from './commands/commands/clipboard.inner.command';export {+ InsertCommand,DeleteCommand,+ UpdateCommand,+ EditorInsertTextCommandId,type ICoverCommandParams,type IDeleteCommandParams,type IInsertCommandParams,- InsertCommand,type IUpdateCommandParams,- UpdateCommand,- EditorInsertTextCommandId,} from './commands/commands/core-editing.command';-export { DeleteLeftCommand, DeleteRightCommand } from './commands/commands/delete.command';-export { type IIMEInputCommandParams, IMEInputCommand } from './commands/commands/ime-input.command';+export { DeleteLeftCommand, DeleteRightCommand, MergeTwoParagraphCommand } from './commands/commands/delete.command';+export { IMEInputCommand, type IIMEInputCommandParams } from './commands/commands/ime-input.command';export {SetInlineFormatBoldCommand,- SetInlineFormatCommand,- SetInlineFormatFontFamilyCommand,- SetInlineFormatFontSizeCommand,SetInlineFormatItalicCommand,+ SetInlineFormatUnderlineCommand,SetInlineFormatStrikethroughCommand,SetInlineFormatSubscriptCommand,SetInlineFormatSuperscriptCommand,+ SetInlineFormatFontSizeCommand,+ SetInlineFormatFontFamilyCommand,SetInlineFormatTextColorCommand,- SetInlineFormatUnderlineCommand,- ResetInlineFormatTextBackgroundColorCommand,SetInlineFormatTextBackgroundColorCommand,+ ResetInlineFormatTextBackgroundColorCommand,+ SetInlineFormatCommand,} from './commands/commands/inline-format.command';+export { ListOperationCommand, BulletListCommand, OrderListCommand } from './commands/commands/list.command';export {AlignOperationCommand,AlignLeftCommand,@@ -51,23 +62,20 @@ export {AlignRightCommand,AlignJustifyCommand,} from './commands/commands/paragraph-align.command';-export { BulletListCommand, OrderListCommand } from './commands/commands/list.command';-export { CoverContentCommand, ReplaceContentCommand } from './commands/commands/replace-content.command';+export { ReplaceContentCommand, CoverContentCommand } from './commands/commands/replace-content.command';+export { SetDocZoomRatioCommand } from './commands/commands/set-doc-zoom-ratio.command';+export {- type IRichTextEditingMutationParams,RichTextEditingMutation,+ type IRichTextEditingMutationParams,} from './commands/mutations/core-editing.mutation';+export { MoveCursorOperation, MoveSelectionOperation } from './commands/operations/cursor.operation';+export { SelectAllOperation } from './commands/operations/select-all.operation';+export { SetDocZoomRatioOperation, type ISetDocZoomRatioOperationParams } from './commands/operations/set-doc-zoom-ratio.operation';export {- type ISetTextSelectionsOperationParams,SetTextSelectionsOperation,+ type ISetTextSelectionsOperationParams,} from './commands/operations/text-selection.operation';-export { type IUniverDocsConfig, UniverDocsPlugin } from './doc-plugin';-export { DocSkeletonManagerService } from './services/doc-skeleton-manager.service';-export { TextSelectionManagerService, serializeTextRange } from './services/text-selection-manager.service';-export { DocStateChangeManagerService, type IDocStateChangeParams } from './services/doc-state-change-manager.service';-export { IMEInputManagerService } from './services/ime-input-manager.service';-export { SelectAllOperation } from './commands/operations/select-all.operation';-export { CutContentCommand, InnerPasteCommand } from './commands/commands/clipboard.inner.command';-export { SetDocZoomRatioOperation, type ISetDocZoomRatioOperationParams } from './commands/operations/set-doc-zoom-ratio.operation';-export { SetDocZoomRatioCommand } from './commands/commands/set-doc-zoom-ratio.command';++// #endregiondiff --git a/packages/drawing-ui/src/index.ts b/packages/drawing-ui/src/index.tsindex 99647180c5..bbba10bc5e 100644--- a/packages/drawing-ui/src/index.ts+++ b/packages/drawing-ui/src/index.ts@@ -16,10 +16,16 @@export { DrawingRenderService } from './services/drawing-render.service';export { getUpdateParams } from './utils/get-update-params';-export { ImageResetSizeOperation } from './commands/operations/image-reset-size.operation';-export { CloseImageCropOperation, OpenImageCropOperation } from './commands/operations/image-crop.operation';export { DrawingCommonPanel } from './views/panel/DrawingCommonPanel';export { ImagePopupMenu } from './views/image-popup-menu/ImagePopupMenu';export { COMPONENT_IMAGE_POPUP_MENU } from './views/image-popup-menu/component-name';export { UniverDrawingUIPlugin } from './plugin';export { ImageCropperObject } from './views/crop/image-cropper-object';++// #region - all commands++export { SetDrawingAlignOperation } from './commands/operations/drawing-align.operation';+export { OpenImageCropOperation, CloseImageCropOperation, AutoImageCropOperation } from './commands/operations/image-crop.operation';+export { ImageResetSizeOperation } from './commands/operations/image-reset-size.operation';++// #endregiondiff --git a/packages/engine-formula/src/index.ts b/packages/engine-formula/src/index.tsindex 20ce4e5d06..e021fe8ccc 100644--- a/packages/engine-formula/src/index.ts+++ b/packages/engine-formula/src/index.ts@@ -36,37 +36,7 @@ export { type IFunctionNames } from './basics/function';export { includeFormulaLexerToken, isFormulaLexerToken, normalizeSheetName } from './basics/match-token';export { convertUnitDataToRuntime } from './basics/runtime';export { matchToken, compareToken, operatorToken } from './basics/token';-export { RegisterFunctionMutation } from './commands/mutations/register-function.mutation';-export {- type ISetArrayFormulaDataMutationParams,- SetArrayFormulaDataMutation,-} from './commands/mutations/set-array-formula-data.mutation';-export { RemoveDefinedNameMutation, SetDefinedNameMutation, type ISetDefinedNameMutationSearchParam, type ISetDefinedNameMutationParam } from './commands/mutations/set-defined-name.mutation';-export {- RemoveFeatureCalculationMutation,- SetFeatureCalculationMutation,-} from './commands/mutations/set-feature-calculation.mutation';-export {- type ISetFormulaCalculationNotificationMutation,- type ISetFormulaCalculationResultMutation,- type ISetFormulaCalculationStartMutation,- SetFormulaCalculationNotificationMutation,- SetFormulaCalculationResultMutation,- SetFormulaCalculationStartMutation,- SetFormulaCalculationStopMutation,-} from './commands/mutations/set-formula-calculation.mutation';-export {- type ISetFormulaDataMutationParams,- SetFormulaDataMutation,-} from './commands/mutations/set-formula-data.mutation';-export { RemoveOtherFormulaMutation, SetOtherFormulaMutation, type ISetOtherFormulaMutationParams, type IRemoveOtherFormulaMutationParams } from './commands/mutations/set-other-formula.mutation';-export {- RemoveSuperTableMutation,- SetSuperTableMutation,- SetSuperTableOptionMutation,-} from './commands/mutations/set-super-table.mutation';-export { UnregisterFunctionMutation } from './commands/mutations/unregister-function.mutation';export { LexerNode } from './engine/analysis/lexer-node';export { LexerTreeBuilder } from './engine/analysis/lexer-tree-builder';export { BaseReferenceObject, type FunctionVariantType } from './engine/reference-object/base-reference-object';@@ -153,3 +123,26 @@ export { handleNumfmtInCell } from './engine/utils/numfmt-kit';export { AsyncArrayObject } from './engine/reference-object/base-reference-object';export { strip, stripErrorMargin } from './engine/utils/math-kit';export { AsyncObject } from './engine/reference-object/base-reference-object';++// #region - all commands++export { RegisterFunctionMutation } from './commands/mutations/register-function.mutation';+export { type ISetArrayFormulaDataMutationParams, SetArrayFormulaDataMutation } from './commands/mutations/set-array-formula-data.mutation';+export { RemoveDefinedNameMutation, SetDefinedNameMutation, type ISetDefinedNameMutationSearchParam, type ISetDefinedNameMutationParam } from './commands/mutations/set-defined-name.mutation';+export { RemoveFeatureCalculationMutation, SetFeatureCalculationMutation } from './commands/mutations/set-feature-calculation.mutation';++export {+ SetFormulaCalculationStartMutation,+ SetFormulaCalculationStopMutation,+ SetFormulaCalculationNotificationMutation,+ SetFormulaCalculationResultMutation,+ type ISetFormulaCalculationStartMutation,+ type ISetFormulaCalculationNotificationMutation,+ type ISetFormulaCalculationResultMutation,+} from './commands/mutations/set-formula-calculation.mutation';+export { SetFormulaDataMutation, type ISetFormulaDataMutationParams } from './commands/mutations/set-formula-data.mutation';+export { SetOtherFormulaMutation, RemoveOtherFormulaMutation, type ISetOtherFormulaMutationParams, type IRemoveOtherFormulaMutationParams } from './commands/mutations/set-other-formula.mutation';+export { SetSuperTableMutation, RemoveSuperTableMutation, SetSuperTableOptionMutation } from './commands/mutations/set-super-table.mutation';+export { UnregisterFunctionMutation } from './commands/mutations/unregister-function.mutation';++// #endregiondiff --git a/packages/find-replace/src/commands/command/replace.command.ts b/packages/find-replace/src/commands/commands/replace.command.tssimilarity index 100%rename from packages/find-replace/src/commands/command/replace.command.tsrename to packages/find-replace/src/commands/commands/replace.command.tsdiff --git a/packages/find-replace/src/controllers/find-replace.controller.ts b/packages/find-replace/src/controllers/find-replace.controller.tsindex 3c2b36f1e5..ce8ff1b6ac 100644--- a/packages/find-replace/src/controllers/find-replace.controller.ts+++ b/packages/find-replace/src/controllers/find-replace.controller.ts@@ -43,7 +43,7 @@ import {} from '../commands/operations/find-replace.operation';import { IFindReplaceService } from '../services/find-replace.service';import { FindReplaceDialog } from '../views/dialog/FindReplaceDialog';-import { ReplaceAllMatchesCommand, ReplaceCurrentMatchCommand } from '../commands/command/replace.command';+import { ReplaceAllMatchesCommand, ReplaceCurrentMatchCommand } from '../commands/commands/replace.command';import {GoToNextFindMatchShortcutItem,GoToPreviousFindMatchShortcutItem,diff --git a/packages/find-replace/src/index.ts b/packages/find-replace/src/index.tsindex 7dcac2f284..9b1acc9e30 100644--- a/packages/find-replace/src/index.ts+++ b/packages/find-replace/src/index.ts@@ -25,3 +25,10 @@ export type {IReplaceAllResult,} from './services/find-replace.service';export { FindModel, IFindReplaceService, FindBy, FindScope, FindDirection } from './services/find-replace.service';++// #region - all commands++export { ReplaceCurrentMatchCommand, ReplaceAllMatchesCommand } from './commands/commands/replace.command';+export { OpenFindDialogOperation, OpenReplaceDialogOperation, GoToNextMatchOperation, GoToPreviousMatchOperation } from './commands/operations/find-replace.operation';++// #endregiondiff --git a/packages/find-replace/src/views/dialog/FindReplaceDialog.tsx b/packages/find-replace/src/views/dialog/FindReplaceDialog.tsxindex 383b6760a3..0f8d8be693 100644--- a/packages/find-replace/src/views/dialog/FindReplaceDialog.tsx+++ b/packages/find-replace/src/views/dialog/FindReplaceDialog.tsx@@ -26,7 +26,7 @@ import { fromEvent } from 'rxjs';import { FindBy, FindDirection, FindScope, IFindReplaceService } from '../../services/find-replace.service';import { FIND_REPLACE_DIALOG_FOCUS, FIND_REPLACE_INPUT_FOCUS } from '../../services/context-keys';-import { ReplaceAllMatchesCommand, ReplaceCurrentMatchCommand } from '../../commands/command/replace.command';+import { ReplaceAllMatchesCommand, ReplaceCurrentMatchCommand } from '../../commands/commands/replace.command';import { OpenReplaceDialogOperation } from '../../commands/operations/find-replace.operation';import { SearchInput } from './SearchInput';diff --git a/packages/sheets-conditional-formatting-ui/src/index.ts b/packages/sheets-conditional-formatting-ui/src/index.tsindex e8d5b95762..8ff9ab436d 100644--- a/packages/sheets-conditional-formatting-ui/src/index.ts+++ b/packages/sheets-conditional-formatting-ui/src/index.ts@@ -16,7 +16,26 @@export { UniverSheetsConditionalFormattingMobileUIPlugin } from './mobile-plugin';export { UniverSheetsConditionalFormattingUIPlugin } from './plugin';-export { AddCfCommand } from './commands/commands/add-cf.command';-export type { IAddCfCommandParams } from './commands/commands/add-cf.command';export { ConditionalFormattingClearController } from './controllers/cf.clear.controller';+// #region - all commands++export { AddAverageCfCommand } from './commands/commands/add-average-cf.command';+export { AddCfCommand, type IAddCfCommandParams } from './commands/commands/add-cf.command';+export { AddColorScaleConditionalRuleCommand } from './commands/commands/add-color-scale-cf.command';+export { AddDataBarConditionalRuleCommand } from './commands/commands/add-data-bar-cf.command';+export { AddDuplicateValuesCfCommand } from './commands/commands/add-duplicate-values-cf.command';+export { AddNumberCfCommand } from './commands/commands/add-number-cf.command';+export { AddRankCfCommand } from './commands/commands/add-rank-cf.command';+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 { ClearRangeCfCommand } from './commands/commands/clear-range-cf.command';+export { ClearWorksheetCfCommand } from './commands/commands/clear-worksheet-cf.command';+export { DeleteCfCommand } from './commands/commands/delete-cf.command';+export { MoveCfCommand } from './commands/commands/move-cf.command';+export { SetCfCommand } from './commands/commands/set-cf.command';++export { OpenConditionalFormattingOperator } from './commands/operations/open-conditional-formatting-panel';++// #endregiondiff --git a/packages/sheets-conditional-formatting/src/commands/mutations/delete-conditional-rule.mutation.ts b/packages/sheets-conditional-formatting/src/commands/mutations/delete-conditional-rule.mutation.tsindex 4d75535329..67bc402aef 100644--- a/packages/sheets-conditional-formatting/src/commands/mutations/delete-conditional-rule.mutation.ts+++ b/packages/sheets-conditional-formatting/src/commands/mutations/delete-conditional-rule.mutation.ts@@ -15,10 +15,7 @@*/import type { IMutation, IMutationInfo } from '@univerjs/core';-import {- CommandType,- Tools,-} from '@univerjs/core';+import { CommandType, Tools } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';import { ConditionalFormattingRuleModel } from '../../models/conditional-formatting-rule-model';import { transformSupportSymmetryAnchor } from '../../utils/anchor';diff --git a/packages/sheets-conditional-formatting/src/commands/mutations/move-conditional-rule.mutation.ts b/packages/sheets-conditional-formatting/src/commands/mutations/move-conditional-rule.mutation.tsindex c99c73f1f0..f3138fbc42 100644--- a/packages/sheets-conditional-formatting/src/commands/mutations/move-conditional-rule.mutation.ts+++ b/packages/sheets-conditional-formatting/src/commands/mutations/move-conditional-rule.mutation.ts@@ -16,9 +16,7 @@import type { IMutation } from '@univerjs/core';-import {- CommandType,-} from '@univerjs/core';+import { CommandType } from '@univerjs/core';import { ConditionalFormattingRuleModel } from '../../models/conditional-formatting-rule-model';import type { IAnchor } from '../../utils/anchor';import { anchorUndoFactory } from '../../utils/anchor';diff --git a/packages/sheets-conditional-formatting/src/commands/mutations/set-conditional-rule.mutation.ts b/packages/sheets-conditional-formatting/src/commands/mutations/set-conditional-rule.mutation.tsindex 866726900d..ada8cf6229 100644--- a/packages/sheets-conditional-formatting/src/commands/mutations/set-conditional-rule.mutation.ts+++ b/packages/sheets-conditional-formatting/src/commands/mutations/set-conditional-rule.mutation.ts@@ -15,9 +15,7 @@*/import type { IMutation } from '@univerjs/core';-import {- CommandType, Tools,-} from '@univerjs/core';+import { CommandType, Tools } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';import { ConditionalFormattingRuleModel } from '../../models/conditional-formatting-rule-model';import type { IConditionFormattingRule } from '../../models/type';diff --git a/packages/sheets-conditional-formatting/src/index.ts b/packages/sheets-conditional-formatting/src/index.tsindex 17f73d19e3..bbbf52098f 100644--- a/packages/sheets-conditional-formatting/src/index.ts+++ b/packages/sheets-conditional-formatting/src/index.ts@@ -16,10 +16,6 @@export { SheetsConditionalFormattingPlugin } from './plugin';export * from './base/const';-export * from './commands/mutations/add-conditional-rule.mutation';-export * from './commands/mutations/delete-conditional-rule.mutation';-export * from './commands/mutations/move-conditional-rule.mutation';-export * from './commands/mutations/set-conditional-rule.mutation';export * from './models/type';export * from './models/conditional-formatting-rule-model';export * from './models/conditional-formatting-view-model';@@ -37,3 +33,14 @@ export * from './models/icon-map';export * from './services/conditional-formatting-formula.service';export * from './utils/anchor';export * from './utils/create-cf-id';++// #region - all commands++export { AddConditionalRuleMutationUndoFactory, AddConditionalRuleMutation, type IAddConditionalRuleMutationParams } from './commands/mutations/add-conditional-rule.mutation';+export { DeleteConditionalRuleMutation, DeleteConditionalRuleMutationUndoFactory, type IDeleteConditionalRuleMutationParams } from './commands/mutations/delete-conditional-rule.mutation';+export { ConditionalFormattingFormulaMarkDirty } from './commands/mutations/formula-mark-dirty.mutation';+export { MoveConditionalRuleMutation, MoveConditionalRuleMutationUndoFactory, type IMoveConditionalRuleMutationParams } from './commands/mutations/move-conditional-rule.mutation';+export { SetConditionalRuleMutation, setConditionalRuleMutationUndoFactory, type ISetConditionalRuleMutationParams } from './commands/mutations/set-conditional-rule.mutation';++// #endregion+diff --git a/packages/sheets-data-validation/src/index.ts b/packages/sheets-data-validation/src/index.tsindex 36910beaa2..985365c19d 100644--- a/packages/sheets-data-validation/src/index.ts+++ b/packages/sheets-data-validation/src/index.ts@@ -17,13 +17,11 @@export { UniverSheetsDataValidationPlugin } from './plugin';export { UniverSheetsDataValidationMobilePlugin } from './mobile-plugin';-export type { IAddSheetDataValidationCommandParams, IUpdateSheetDataValidationRangeCommandParams } from './commands/commands/data-validation.command';export { ICommandService, LocaleService, Plugin } from '@univerjs/core';export { SheetsDataValidationRenderController } from './controllers/dv-render.controller';export { DataValidationController } from './controllers/dv.controller';export { SheetDataValidationService } from './services/dv.service';export { DataValidationAlertController } from './controllers/dv-alert.controller';-export { AddSheetDataValidationAndOpenCommand, AddSheetDataValidationCommand, UpdateSheetDataValidationRangeCommand } from './commands/commands/data-validation.command';export { DataValidationCacheService } from './services/dv-cache.service';export { DataValidationFormulaService } from './services/dv-formula.service';export { DataValidationCustomFormulaService } from './services/dv-custom-formula.service';@@ -31,7 +29,26 @@ export { DataValidationRefRangeController } from './controllers/dv-ref-range.conexport { DATA_VALIDATION_PLUGIN_NAME } from './common/const';export { DataValidationAutoFillController } from './controllers/dv-auto-fill.controller';export { DataValidationCopyPasteController } from './controllers/dv-copy-paste.controller';-export { HideDataValidationDropdown, ShowDataValidationDropdown } from './commands/operations/data-validation.operation';export { DataValidationRejectInputController } from './controllers/dv-reject-input.controller';export { DataValidationFormulaController } from './controllers/dv-formula.controller';export { SheetsDataValidationValidatorService } from './services/dv-validator-service';++// #region - all commands++export {+ UpdateSheetDataValidationRangeCommand,+ AddSheetDataValidationCommand,+ AddSheetDataValidationAndOpenCommand,+ type IAddSheetDataValidationCommandParams,+ type IUpdateSheetDataValidationRangeCommandParams,+} from './commands/commands/data-validation.command';++export {+ OpenValidationPanelOperation,+ CloseValidationPanelOperation,+ ToggleValidationPanelOperation,+ ShowDataValidationDropdown,+ HideDataValidationDropdown,+} from './commands/operations/data-validation.operation';++// #endregiondiff --git a/packages/sheets-drawing-ui/src/index.ts b/packages/sheets-drawing-ui/src/index.tsindex ee62c93fff..2beba29dc3 100644--- a/packages/sheets-drawing-ui/src/index.ts+++ b/packages/sheets-drawing-ui/src/index.ts@@ -16,3 +16,21 @@export { UniverSheetsDrawingUIPlugin } from './plugin';export { SheetCanvasFloatDomManagerService, type ICanvasFloatDom } from './services/canvas-float-dom-manager.service';++// #region - all commands++export { DeleteDrawingsCommand } from './commands/commands/delete-drawings.command';+export { GroupSheetDrawingCommand } from './commands/commands/group-sheet-drawing.command';+export { InsertSheetDrawingCommand } from './commands/commands/insert-sheet-drawing.command';+export { MoveDrawingsCommand } from './commands/commands/move-drawings.command';+export { RemoveSheetDrawingCommand } from './commands/commands/remove-sheet-drawing.command';+export { SetDrawingArrangeCommand } from './commands/commands/set-drawing-arrange.command';+export { SetSheetDrawingCommand } from './commands/commands/set-sheet-drawing.command';+export { UngroupSheetDrawingCommand } from './commands/commands/ungroup-sheet-drawing.command';++export { ClearSheetDrawingTransformerOperation } from './commands/operations/clear-drawing-transformer.operation';+export { EditSheetDrawingOperation } from './commands/operations/edit-sheet-drawing.operation';+export { InsertFloatImageOperation, InsertCellImageOperation } from './commands/operations/insert-image.operation';+export { SidebarSheetDrawingOperation } from './commands/operations/open-drawing-panel.operation';++// #endregiondiff --git a/packages/sheets-drawing/src/index.ts b/packages/sheets-drawing/src/index.tsindex abf48cc623..4b41ab7b57 100644--- a/packages/sheets-drawing/src/index.ts+++ b/packages/sheets-drawing/src/index.ts@@ -15,7 +15,11 @@*/export { UniverSheetsDrawingPlugin } from './plugin';-export { DrawingApplyType, SetDrawingApplyMutation, type ISetDrawingApplyMutationParams } from './commands/mutations/set-drawing-apply.mutation';export { ISheetDrawingService, SheetDrawingAnchorType } from './services/sheet-drawing.service';export type { IFloatDomData, ISheetDrawing, ISheetDrawingPosition, ISheetFloatDom } from './services/sheet-drawing.service';+// #region - all commands++export { SetDrawingApplyMutation, DrawingApplyType, type ISetDrawingApplyMutationParams } from './commands/mutations/set-drawing-apply.mutation';++// #endregiondiff --git a/packages/sheets-filter-ui/src/commands/__tests__/sheets-filter.command.spec.ts b/packages/sheets-filter-ui/src/commands/commands/__tests__/sheets-filter.command.spec.tssimilarity index 100%rename from packages/sheets-filter-ui/src/commands/__tests__/sheets-filter.command.spec.tsrename to packages/sheets-filter-ui/src/commands/commands/__tests__/sheets-filter.command.spec.tsdiff --git a/packages/sheets-filter-ui/src/commands/sheets-filter.command.ts b/packages/sheets-filter-ui/src/commands/commands/sheets-filter.command.tssimilarity index 100%rename from packages/sheets-filter-ui/src/commands/sheets-filter.command.tsrename to packages/sheets-filter-ui/src/commands/commands/sheets-filter.command.tsdiff --git a/packages/sheets-filter-ui/src/commands/__tests__/sheets-filter.operation.spec.ts b/packages/sheets-filter-ui/src/commands/operations/__tests__/sheets-filter.operation.spec.tssimilarity index 98%rename from packages/sheets-filter-ui/src/commands/__tests__/sheets-filter.operation.spec.tsrename to packages/sheets-filter-ui/src/commands/operations/__tests__/sheets-filter.operation.spec.tsindex 53b88fb929..faad42bffa 100644--- a/packages/sheets-filter-ui/src/commands/__tests__/sheets-filter.operation.spec.ts+++ b/packages/sheets-filter-ui/src/commands/operations/__tests__/sheets-filter.operation.spec.ts@@ -24,7 +24,7 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';import { RefRangeService, SelectionManagerService, SheetInterceptorService } from '@univerjs/sheets';import type { IEditorBridgeServiceVisibleParam } from '@univerjs/sheets-ui';import { CloseFilterPanelOperation, FILTER_PANEL_OPENED_KEY, OpenFilterPanelOperation } from '../sheets-filter.operation';-import { SheetsFilterPanelService } from '../../services/sheets-filter-panel.service';+import { SheetsFilterPanelService } from '../../../services/sheets-filter-panel.service';const SetCellEditVisibleOperation: IOperation<IEditorBridgeServiceVisibleParam> = {id: 'sheet.operation.set-cell-edit-visible',diff --git a/packages/sheets-filter-ui/src/commands/sheets-filter.operation.ts b/packages/sheets-filter-ui/src/commands/operations/sheets-filter.operation.tssimilarity index 95%rename from packages/sheets-filter-ui/src/commands/sheets-filter.operation.tsrename to packages/sheets-filter-ui/src/commands/operations/sheets-filter.operation.tsindex 370386209e..fc32ba4ace 100644--- a/packages/sheets-filter-ui/src/commands/sheets-filter.operation.ts+++ b/packages/sheets-filter-ui/src/commands/operations/sheets-filter.operation.ts@@ -19,8 +19,8 @@ import { SheetsFilterService } from '@univerjs/sheets-filter';import { ILayoutService } from '@univerjs/ui';import { Quantity } from '@wendellhu/redi';import { SetCellEditVisibleOperation } from '@univerjs/sheets-ui';-import type { FilterBy } from '../services/sheets-filter-panel.service';-import { SheetsFilterPanelService } from '../services/sheets-filter-panel.service';+import type { FilterBy } from '../../services/sheets-filter-panel.service';+import { SheetsFilterPanelService } from '../../services/sheets-filter-panel.service';export const FILTER_PANEL_OPENED_KEY = 'FILTER_PANEL_OPENED';diff --git a/packages/sheets-filter-ui/src/controllers/__tests__/sheets-filter.menu.spec.ts b/packages/sheets-filter-ui/src/controllers/__tests__/sheets-filter.menu.spec.tsindex 80b4ba5600..87e31e94f0 100644--- a/packages/sheets-filter-ui/src/controllers/__tests__/sheets-filter.menu.spec.ts+++ b/packages/sheets-filter-ui/src/controllers/__tests__/sheets-filter.menu.spec.ts@@ -22,8 +22,8 @@ import { RemoveSheetsFilterMutation, SetSheetsFilterCriteriaMutation, SetSheetsFimport { IMenuService, IPlatformService, IShortcutService, MenuService, PlatformService, ShortcutService } from '@univerjs/ui';import { Injector } from '@wendellhu/redi';import { afterEach, beforeEach, describe, expect, it } from 'vitest';-import { ClearSheetsFilterCriteriaCommand, ReCalcSheetsFilterCommand, SmartToggleSheetsFilterCommand } from '../../commands/sheets-filter.command';-import { CloseFilterPanelOperation, OpenFilterPanelOperation } from '../../commands/sheets-filter.operation';+import { ClearSheetsFilterCriteriaCommand, ReCalcSheetsFilterCommand, SmartToggleSheetsFilterCommand } from '../../commands/commands/sheets-filter.command';+import { CloseFilterPanelOperation, OpenFilterPanelOperation } from '../../commands/operations/sheets-filter.operation';import { ClearFilterCriteriaMenuItemFactory, ReCalcFilterMenuItemFactory, SmartToggleFilterMenuItemFactory } from '../sheets-filter.menu';const TEST_WORKBOOK_DATA_DEMO: IWorkbookData = {diff --git a/packages/sheets-filter-ui/src/controllers/sheets-filter-permission.controller.ts b/packages/sheets-filter-ui/src/controllers/sheets-filter-permission.controller.tsindex ea4bd1e6d1..5f3fbe5708 100644--- a/packages/sheets-filter-ui/src/controllers/sheets-filter-permission.controller.ts+++ b/packages/sheets-filter-ui/src/controllers/sheets-filter-permission.controller.ts@@ -23,9 +23,8 @@ import { SheetPermissionInterceptorBaseController } from '@univerjs/sheets-ui';import { SheetsFilterService } from '@univerjs/sheets-filter';import { RangeProtectionPermissionViewPoint, WorkbookEditablePermission, WorksheetEditPermission, WorksheetFilterPermission } from '@univerjs/sheets';-import { SmartToggleSheetsFilterCommand } from '../commands/sheets-filter.command';-import type { IOpenFilterPanelOperationParams } from '../commands/sheets-filter.operation';-import { OpenFilterPanelOperation } from '../commands/sheets-filter.operation';+import { SmartToggleSheetsFilterCommand } from '../commands/commands/sheets-filter.command';+import { type IOpenFilterPanelOperationParams, OpenFilterPanelOperation } from '../commands/operations/sheets-filter.operation';export interface IUniverSheetsFilterUIConfig {menu: MenuConfig;diff --git a/packages/sheets-filter-ui/src/controllers/sheets-filter-ui.controller.ts b/packages/sheets-filter-ui/src/controllers/sheets-filter-ui.controller.tsindex a7d2ebb35c..b1b24329bd 100644--- a/packages/sheets-filter-ui/src/controllers/sheets-filter-ui.controller.ts+++ b/packages/sheets-filter-ui/src/controllers/sheets-filter-ui.controller.ts@@ -28,9 +28,9 @@ import { FilterSingle } from '@univerjs/icons';import { IRenderManagerService } from '@univerjs/engine-render';import { SheetsFilterService } from '@univerjs/sheets-filter';import { MessageType } from '@univerjs/design';-import { ClearSheetsFilterCriteriaCommand, ReCalcSheetsFilterCommand, SetSheetsFilterCriteriaCommand, SmartToggleSheetsFilterCommand } from '../commands/sheets-filter.command';+import { ClearSheetsFilterCriteriaCommand, ReCalcSheetsFilterCommand, SetSheetsFilterCriteriaCommand, SmartToggleSheetsFilterCommand } from '../commands/commands/sheets-filter.command';import { FilterPanel } from '../views/components/SheetsFilterPanel';-import { ChangeFilterByOperation, CloseFilterPanelOperation, FILTER_PANEL_OPENED_KEY, OpenFilterPanelOperation } from '../commands/sheets-filter.operation';+import { ChangeFilterByOperation, CloseFilterPanelOperation, FILTER_PANEL_OPENED_KEY, OpenFilterPanelOperation } from '../commands/operations/sheets-filter.operation';import { SheetsFilterPanelService } from '../services/sheets-filter-panel.service';import { SmartToggleFilterShortcut } from './sheets-filter.shortcut';import { ClearFilterCriteriaMenuItemFactory, ReCalcFilterMenuItemFactory, SmartToggleFilterMenuItemFactory } from './sheets-filter.menu';diff --git a/packages/sheets-filter-ui/src/controllers/sheets-filter.menu.ts b/packages/sheets-filter-ui/src/controllers/sheets-filter.menu.tsindex 1ce7c5f6f7..c6b7a7f5ff 100644--- a/packages/sheets-filter-ui/src/controllers/sheets-filter.menu.ts+++ b/packages/sheets-filter-ui/src/controllers/sheets-filter.menu.ts@@ -23,7 +23,7 @@ import { UniverInstanceType } from '@univerjs/core';import { map, of, switchMap } from 'rxjs';import { getCurrentRangeDisable$ } from '@univerjs/sheets-ui';import { RangeProtectionPermissionEditPoint, WorkbookEditablePermission, WorksheetEditPermission, WorksheetFilterPermission } from '@univerjs/sheets';-import { ClearSheetsFilterCriteriaCommand, ReCalcSheetsFilterCommand, SmartToggleSheetsFilterCommand } from '../commands/sheets-filter.command';+import { ClearSheetsFilterCriteriaCommand, ReCalcSheetsFilterCommand, SmartToggleSheetsFilterCommand } from '../commands/commands/sheets-filter.command';export function SmartToggleFilterMenuItemFactory(accessor: IAccessor): IMenuSelectorItem {const sheetsFilterService = accessor.get(SheetsFilterService);diff --git a/packages/sheets-filter-ui/src/controllers/sheets-filter.shortcut.ts b/packages/sheets-filter-ui/src/controllers/sheets-filter.shortcut.tsindex bbd736a28b..fb0e9b2d67 100644--- a/packages/sheets-filter-ui/src/controllers/sheets-filter.shortcut.ts+++ b/packages/sheets-filter-ui/src/controllers/sheets-filter.shortcut.ts@@ -16,7 +16,7 @@import { type IShortcutItem, KeyCode, MetaKeys } from '@univerjs/ui';import { whenSheetEditorFocused } from '@univerjs/sheets-ui';-import { SmartToggleSheetsFilterCommand } from '../commands/sheets-filter.command';+import { SmartToggleSheetsFilterCommand } from '../commands/commands/sheets-filter.command';export const SmartToggleFilterShortcut: IShortcutItem = {id: SmartToggleSheetsFilterCommand.id,diff --git a/packages/sheets-filter-ui/src/index.ts b/packages/sheets-filter-ui/src/index.tsindex c46d99cb74..8b048d522f 100644--- a/packages/sheets-filter-ui/src/index.ts+++ b/packages/sheets-filter-ui/src/index.ts@@ -16,6 +16,20 @@export { UniverSheetsFilterUIPlugin } from './plugin';export { UniverSheetsFilterMobileUIPlugin } from './mobile-plugin';-export { OpenFilterPanelOperation } from './commands/sheets-filter.operation';-export type { IOpenFilterPanelOperationParams } from './commands/sheets-filter.operation';-export { SmartToggleSheetsFilterCommand } from './commands/sheets-filter.command';++// #region - all commands++export {+ SmartToggleSheetsFilterCommand,+ SetSheetsFilterCriteriaCommand,+ ClearSheetsFilterCriteriaCommand,+ ReCalcSheetsFilterCommand,+} from './commands/commands/sheets-filter.command';+export {+ OpenFilterPanelOperation,+ CloseFilterPanelOperation,+ ChangeFilterByOperation,+ type IOpenFilterPanelOperationParams,+} from './commands/operations/sheets-filter.operation';++// #endregiondiff --git a/packages/sheets-filter-ui/src/services/__tests__/sheets-filter-panel.service.spec.ts b/packages/sheets-filter-ui/src/services/__tests__/sheets-filter-panel.service.spec.tsindex af9312a01f..9c37beb71a 100644--- a/packages/sheets-filter-ui/src/services/__tests__/sheets-filter-panel.service.spec.ts+++ b/packages/sheets-filter-ui/src/services/__tests__/sheets-filter-panel.service.spec.ts@@ -23,13 +23,13 @@ import { afterEach, beforeEach, describe, expect, it, vitest } from 'vitest';import { CustomFilterOperator, SheetsFilterService, UniverSheetsFilterPlugin } from '@univerjs/sheets-filter';import type { IEditorBridgeServiceVisibleParam } from '@univerjs/sheets-ui';import { ByConditionsModel, ByValuesModel, FilterBy, SheetsFilterPanelService } from '../sheets-filter-panel.service';-import type { IOpenFilterPanelOperationParams } from '../../commands/sheets-filter.operation';-import { CloseFilterPanelOperation, OpenFilterPanelOperation } from '../../commands/sheets-filter.operation';+import type { IOpenFilterPanelOperationParams } from '../../commands/operations/sheets-filter.operation';+import { CloseFilterPanelOperation, OpenFilterPanelOperation } from '../../commands/operations/sheets-filter.operation';import { E_ITEMS, ITEMS, WithCustomFilterModelFactory, WithMergedCellFilterFactory, WithMultiEmptyCellsModelFactory, WithTwoFilterColumnsFactory, WithValuesAndEmptyFilterModelFactory, WithValuesFilterModelFactory } from '../../__testing__/data';import type { IFilterConditionFormParams } from '../../models/conditions';import { FilterConditionItems } from '../../models/conditions';import { ExtendCustomFilterOperator } from '../../models/extended-operators';-import { SetSheetsFilterCriteriaCommand } from '../../commands/sheets-filter.command';+import { SetSheetsFilterCriteriaCommand } from '../../commands/commands/sheets-filter.command';const SetCellEditVisibleOperation: IOperation<IEditorBridgeServiceVisibleParam> = {id: 'sheet.operation.set-cell-edit-visible',diff --git a/packages/sheets-filter-ui/src/services/sheets-filter-panel.service.ts b/packages/sheets-filter-ui/src/services/sheets-filter-panel.service.tsindex e05d5f3d48..766e64aa6c 100644--- a/packages/sheets-filter-ui/src/services/sheets-filter-panel.service.ts+++ b/packages/sheets-filter-ui/src/services/sheets-filter-panel.service.ts@@ -26,8 +26,7 @@ import { RefRangeService } from '@univerjs/sheets';import type { FilterOperator, IFilterConditionFormParams, IFilterConditionItem } from '../models/conditions';import { FilterConditionItems } from '../models/conditions';-import type { ISetSheetsFilterCriteriaCommandParams } from '../commands/sheets-filter.command';-import { SetSheetsFilterCriteriaCommand } from '../commands/sheets-filter.command';+import { type ISetSheetsFilterCriteriaCommandParams, SetSheetsFilterCriteriaCommand } from '../commands/commands/sheets-filter.command';import { statisticFilterByValueItems } from '../models/utils';export enum FilterBy {diff --git a/packages/sheets-filter-ui/src/views/components/SheetsFilterPanel.stories.tsx b/packages/sheets-filter-ui/src/views/components/SheetsFilterPanel.stories.tsxindex 89dd3799db..d46a6b682c 100644--- a/packages/sheets-filter-ui/src/views/components/SheetsFilterPanel.stories.tsx+++ b/packages/sheets-filter-ui/src/views/components/SheetsFilterPanel.stories.tsx@@ -25,9 +25,9 @@ import { RefRangeService, SelectionManagerService, SheetInterceptorService, Workimport { IMenuService, IShortcutService, MenuService, ShortcutService } from '@univerjs/ui';import { SetCellEditVisibleOperation } from '@univerjs/sheets-ui';import { SheetsFilterPanelService } from '../../services/sheets-filter-panel.service';-import { ClearSheetsFilterCriteriaCommand, ReCalcSheetsFilterCommand, SetSheetsFilterCriteriaCommand, SmartToggleSheetsFilterCommand } from '../../commands/sheets-filter.command';-import type { IOpenFilterPanelOperationParams } from '../../commands/sheets-filter.operation';-import { ChangeFilterByOperation, CloseFilterPanelOperation, OpenFilterPanelOperation } from '../../commands/sheets-filter.operation';+import { ClearSheetsFilterCriteriaCommand, ReCalcSheetsFilterCommand, SetSheetsFilterCriteriaCommand, SmartToggleSheetsFilterCommand } from '../../commands/commands/sheets-filter.command';+import type { IOpenFilterPanelOperationParams } from '../../commands/operations/sheets-filter.operation';+import { ChangeFilterByOperation, CloseFilterPanelOperation, OpenFilterPanelOperation } from '../../commands/operations/sheets-filter.operation';import enUS from '../../locale/en-US';import zhCN from '../../locale/zh-CN';import ruRU from '../../locale/ru-RU';diff --git a/packages/sheets-filter-ui/src/views/components/SheetsFilterPanel.tsx b/packages/sheets-filter-ui/src/views/components/SheetsFilterPanel.tsxindex 5756d6a243..a58811b406 100644--- a/packages/sheets-filter-ui/src/views/components/SheetsFilterPanel.tsx+++ b/packages/sheets-filter-ui/src/views/components/SheetsFilterPanel.tsx@@ -25,7 +25,7 @@ import { SheetsFilterService } from '@univerjs/sheets-filter';import { SheetsUIPart } from '@univerjs/sheets-ui';import type { ByConditionsModel, ByValuesModel } from '../../services/sheets-filter-panel.service';import { FilterBy, SheetsFilterPanelService } from '../../services/sheets-filter-panel.service';-import { ChangeFilterByOperation, CloseFilterPanelOperation } from '../../commands/sheets-filter.operation';+import { ChangeFilterByOperation, CloseFilterPanelOperation } from '../../commands/operations/sheets-filter.operation';import styles from './index.module.less';import { FilterByCondition } from './SheetsFilterByConditionsPanel';import { FilterByValue } from './SheetsFilterByValuesPanel';diff --git a/packages/sheets-filter-ui/src/views/widgets/filter-button.shape.ts b/packages/sheets-filter-ui/src/views/widgets/filter-button.shape.tsindex df21fb7244..ad9e47b2fe 100644--- a/packages/sheets-filter-ui/src/views/widgets/filter-button.shape.ts+++ b/packages/sheets-filter-ui/src/views/widgets/filter-button.shape.ts@@ -18,8 +18,7 @@ import { ICommandService, IContextService, ThemeService } from '@univerjs/core';import { type IMouseEvent, type IPointerEvent, type IShapeProps, Shape, type UniverRenderingContext2D } from '@univerjs/engine-render';import { Inject } from '@wendellhu/redi';-import type { IOpenFilterPanelOperationParams } from '../../commands/sheets-filter.operation';-import { FILTER_PANEL_OPENED_KEY, OpenFilterPanelOperation } from '../../commands/sheets-filter.operation';+import { FILTER_PANEL_OPENED_KEY, type IOpenFilterPanelOperationParams, OpenFilterPanelOperation } from '../../commands/operations/sheets-filter.operation';import { FilterButton } from './drawings';export const FILTER_ICON_SIZE = 16;diff --git a/packages/sheets-filter/src/commands/__tests__/sheets-filter.mutation.spec.ts b/packages/sheets-filter/src/commands/mutations/__tests__/sheets-filter.mutation.spec.tssimilarity index 99%rename from packages/sheets-filter/src/commands/__tests__/sheets-filter.mutation.spec.tsrename to packages/sheets-filter/src/commands/mutations/__tests__/sheets-filter.mutation.spec.tsindex 61cfc6c42f..4dad1ce629 100644--- a/packages/sheets-filter/src/commands/__tests__/sheets-filter.mutation.spec.ts+++ b/packages/sheets-filter/src/commands/mutations/__tests__/sheets-filter.mutation.spec.ts@@ -18,7 +18,7 @@ import type { IWorkbookData } from '@univerjs/core';import { ICommandService, LocaleType, Plugin, Univer, UniverInstanceType } from '@univerjs/core';import { Inject, Injector } from '@wendellhu/redi';import { afterEach, describe, expect, it } from 'vitest';-import { SHEET_FILTER_SNAPSHOT_ID, SheetsFilterService } from '../../services/sheet-filter.service';+import { SHEET_FILTER_SNAPSHOT_ID, SheetsFilterService } from '../../../services/sheet-filter.service';import type { ISetSheetsFilterCriteriaMutationParams, ISetSheetsFilterRangeMutationParams } from '../sheets-filter.mutation';import { ReCalcSheetsFilterMutation, RemoveSheetsFilterMutation, SetSheetsFilterCriteriaMutation, SetSheetsFilterRangeMutation } from '../sheets-filter.mutation';diff --git a/packages/sheets-filter/src/commands/sheets-filter.mutation.ts b/packages/sheets-filter/src/commands/mutations/sheets-filter.mutation.tssimilarity index 96%rename from packages/sheets-filter/src/commands/sheets-filter.mutation.tsrename to packages/sheets-filter/src/commands/mutations/sheets-filter.mutation.tsindex f247c51e68..21007299a3 100644--- a/packages/sheets-filter/src/commands/sheets-filter.mutation.ts+++ b/packages/sheets-filter/src/commands/mutations/sheets-filter.mutation.ts@@ -21,8 +21,8 @@ import { CommandType } from '@univerjs/core';import type { IMutation, IRange, Nullable } from '@univerjs/core';import type { ISheetCommandSharedParams } from '@univerjs/sheets';-import { SheetsFilterService } from '../services/sheet-filter.service';-import type { IFilterColumn } from '../models/types';+import { SheetsFilterService } from '../../services/sheet-filter.service';+import type { IFilterColumn } from '../../models/types';export interface ISetSheetsFilterRangeMutationParams extends ISheetCommandSharedParams {range: IRange;diff --git a/packages/sheets-filter/src/controllers/sheets-filter.controller.ts b/packages/sheets-filter/src/controllers/sheets-filter.controller.tsindex fc27c54398..0f951addf5 100644--- a/packages/sheets-filter/src/controllers/sheets-filter.controller.ts+++ b/packages/sheets-filter/src/controllers/sheets-filter.controller.ts@@ -21,8 +21,8 @@ import { EffectRefRangId, expandToContinuousRange, getSheetCommandTarget, Insertimport { Inject } from '@wendellhu/redi';import { SheetsFilterService } from '../services/sheet-filter.service';-import type { IRemoveSheetsFilterMutationParams, ISetSheetsFilterCriteriaMutationParams, ISetSheetsFilterRangeMutationParams } from '../commands/sheets-filter.mutation';-import { ReCalcSheetsFilterMutation, RemoveSheetsFilterMutation, SetSheetsFilterCriteriaMutation, SetSheetsFilterRangeMutation } from '../commands/sheets-filter.mutation';+import type { IRemoveSheetsFilterMutationParams, ISetSheetsFilterCriteriaMutationParams, ISetSheetsFilterRangeMutationParams } from '../commands/mutations/sheets-filter.mutation';+import { ReCalcSheetsFilterMutation, RemoveSheetsFilterMutation, SetSheetsFilterCriteriaMutation, SetSheetsFilterRangeMutation } from '../commands/mutations/sheets-filter.mutation';import type { FilterColumn } from '../models/filter-model';import { mergeSetFilterCriteria } from '../utils';diff --git a/packages/sheets-filter/src/index.ts b/packages/sheets-filter/src/index.tsindex 07cbef0c3f..0fff34542f 100644--- a/packages/sheets-filter/src/index.ts+++ b/packages/sheets-filter/src/index.ts@@ -26,15 +26,20 @@ export {lessThanOrEqualTo,} from './models/custom-filters';export { SheetsFilterService, FILTER_MUTATIONS, SHEET_FILTER_SNAPSHOT_ID } from './services/sheet-filter.service';+export type { IAutoFilter, IFilterColumn, IFilters, ICustomFilters, ICustomFilter } from './models/types';+export { CustomFilterOperator } from './models/types';++// #region - all commands+export {- type IReCalcSheetsFilterMutationParams,- type IRemoveSheetsFilterMutationParams,- type ISetSheetsFilterCriteriaMutationParams,type ISetSheetsFilterRangeMutationParams,- SetSheetsFilterCriteriaMutation,+ type ISetSheetsFilterCriteriaMutationParams,+ type IRemoveSheetsFilterMutationParams,+ type IReCalcSheetsFilterMutationParams,SetSheetsFilterRangeMutation,- ReCalcSheetsFilterMutation,+ SetSheetsFilterCriteriaMutation,RemoveSheetsFilterMutation,-} from './commands/sheets-filter.mutation';-export type { IAutoFilter, IFilterColumn, IFilters, ICustomFilters, ICustomFilter } from './models/types';-export { CustomFilterOperator } from './models/types';+ ReCalcSheetsFilterMutation,+} from './commands/mutations/sheets-filter.mutation';++// #endregiondiff --git a/packages/sheets-filter/src/services/sheet-filter.service.ts b/packages/sheets-filter/src/services/sheet-filter.service.tsindex bfa989a3ac..ebe9071701 100644--- a/packages/sheets-filter/src/services/sheet-filter.service.ts+++ b/packages/sheets-filter/src/services/sheet-filter.service.ts@@ -32,7 +32,7 @@ import {RemoveSheetsFilterMutation,SetSheetsFilterCriteriaMutation,SetSheetsFilterRangeMutation,-} from '../commands/sheets-filter.mutation';+} from '../commands/mutations/sheets-filter.mutation';import type { IAutoFilter } from '../models/types';export const FILTER_MUTATIONS = new Set([diff --git a/packages/sheets-filter/src/utils.ts b/packages/sheets-filter/src/utils.tsindex ec427495d6..94964a59bc 100644--- a/packages/sheets-filter/src/utils.ts+++ b/packages/sheets-filter/src/utils.ts@@ -15,8 +15,8 @@*/import type { IMutationInfo, Nullable } from '@univerjs/core';-import type { ISetSheetsFilterCriteriaMutationParams } from './commands/sheets-filter.mutation';-import { SetSheetsFilterCriteriaMutation } from './commands/sheets-filter.mutation';+import type { ISetSheetsFilterCriteriaMutationParams } from './commands/mutations/sheets-filter.mutation';+import { SetSheetsFilterCriteriaMutation } from './commands/mutations/sheets-filter.mutation';interface ILine {start: number;diff --git a/packages/sheets-find-replace/src/index.ts b/packages/sheets-find-replace/src/index.tsindex 2f2501463c..f9f4fefe8e 100644--- a/packages/sheets-find-replace/src/index.ts+++ b/packages/sheets-find-replace/src/index.ts@@ -16,3 +16,9 @@export { UniverSheetsFindReplacePlugin } from './plugin';export { SheetsFindReplaceController } from './controllers/sheet-find-replace.controller';++// #region - all commands++export { SheetReplaceCommand } from './commands/commands/sheet-replace.command';++// #endregiondiff --git a/packages/sheets-formula/src/index.ts b/packages/sheets-formula/src/index.tsindex 4dc9f1c04b..cbd9b3121c 100644--- a/packages/sheets-formula/src/index.ts+++ b/packages/sheets-formula/src/index.ts@@ -27,3 +27,17 @@ export { IRegisterFunctionService } from './services/register-function.service';export { FormulaRefRangeService } from './services/formula-ref-range.service';export { RegisterOtherFormulaService } from './services/register-other-formula.service';export type { IFormulaInfo, IOtherFormulaResult } from './services/formula-common';++// #region - all commands++export { SheetOnlyPasteFormulaCommand } from './commands/commands/formula-clipboard.command';+export { InsertFunctionCommand } from './commands/commands/insert-function.command';+export { OtherFormulaMarkDirty } from './commands/mutations/formula.mutation';+export { SelectEditorFormulaOperation } from './commands/operations/editor-formula.operation';+export { HelpFunctionOperation } from './commands/operations/help-function.operation';+export { InsertFunctionOperation } from './commands/operations/insert-function.operation';+export { MoreFunctionsOperation } from './commands/operations/more-functions.operation';+export { ReferenceAbsoluteOperation } from './commands/operations/reference-absolute.operation';+export { SearchFunctionOperation } from './commands/operations/search-function.operation';++// #endregiondiff --git a/packages/sheets-hyper-link-ui/src/index.ts b/packages/sheets-hyper-link-ui/src/index.tsindex e8f1a75b4a..812ab8119a 100644--- a/packages/sheets-hyper-link-ui/src/index.ts+++ b/packages/sheets-hyper-link-ui/src/index.ts@@ -26,6 +26,15 @@ export { SheetsHyperLinkCopyPasteController } from './controllers/copy-paste.conexport { SheetHyperLinkUrlController } from './controllers/url.controller';export { UniverSheetsHyperLinkUIPlugin } from './plugin';-export { OpenHyperLinkSidebarOperation, InsertHyperLinkOperation, CloseHyperLinkSidebarOperation } from './commands/operations/sidebar.operations';-export type { IOpenHyperLinkSidebarOperationParams } from './commands/operations/sidebar.operations';export { InsertLinkShortcut } from './controllers/menu';++// #region - all commands++export {+ OpenHyperLinkSidebarOperation,+ InsertHyperLinkOperation,+ CloseHyperLinkSidebarOperation,+ type IOpenHyperLinkSidebarOperationParams,+} from './commands/operations/sidebar.operations';++// #endregiondiff --git a/packages/sheets-hyper-link/src/index.ts b/packages/sheets-hyper-link/src/index.tsindex 13e511b6c2..a8dcd21f23 100644--- a/packages/sheets-hyper-link/src/index.ts+++ b/packages/sheets-hyper-link/src/index.ts@@ -14,15 +14,6 @@* limitations under the License.*/-export { CancelHyperLinkCommand } from './commands/commands/remove-hyper-link.command';-export { AddHyperLinkMutation, type IAddHyperLinkMutationParams } from './commands/mutations/add-hyper-link.mutation';-export { UpdateHyperLinkMutation, UpdateHyperLinkRefMutation, type IUpdateHyperLinkMutationParams, type IUpdateHyperLinkRefMutationParams } from './commands/mutations/update-hyper-link.mutation';-export { RemoveHyperLinkMutation, type IRemoveHyperLinkMutationParams } from './commands/mutations/remove-hyper-link.mutation';--export { AddHyperLinkCommand, type IAddHyperLinkCommandParams } from './commands/commands/add-hyper-link.command';-export { UpdateHyperLinkCommand, type IUpdateHyperLinkCommandParams } from './commands/commands/update-hyper-link.command';-export { RemoveHyperLinkCommand, type IRemoveHyperLinkCommandParams } from './commands/commands/remove-hyper-link.command';-export { HyperLinkModel } from './models/hyper-link.model';export { SheetsHyperLinkController } from './controllers/sheet-hyper-link.controller';export { HyperLinkType } from './types/enums/hyper-link-type';@@ -31,3 +22,15 @@ export { SheetsHyperLinkRefRangeController } from './controllers/ref-range.contrexport type { ICellHyperLink, ICellLinkContent } from './types/interfaces/i-hyper-link';export { ERROR_RANGE } from './types/const';++// #region - all commands++export { AddHyperLinkCommand, type IAddHyperLinkCommandParams } from './commands/commands/add-hyper-link.command';+export { RemoveHyperLinkCommand, CancelHyperLinkCommand, type IRemoveHyperLinkCommandParams } from './commands/commands/remove-hyper-link.command';+export { UpdateHyperLinkCommand, type IUpdateHyperLinkCommandParams } from './commands/commands/update-hyper-link.command';+export { AddHyperLinkMutation, type IAddHyperLinkMutationParams } from './commands/mutations/add-hyper-link.mutation';+export { RemoveHyperLinkMutation, type IRemoveHyperLinkMutationParams } from './commands/mutations/remove-hyper-link.mutation';+export { UpdateHyperLinkMutation, UpdateHyperLinkRefMutation, type IUpdateHyperLinkMutationParams, type IUpdateHyperLinkRefMutationParams } from './commands/mutations/update-hyper-link.mutation';++// #endregion+diff --git a/packages/sheets-numfmt/src/index.ts b/packages/sheets-numfmt/src/index.tsindex 54ff91dae5..7b07f85ef1 100644--- a/packages/sheets-numfmt/src/index.ts+++ b/packages/sheets-numfmt/src/index.ts@@ -14,6 +14,17 @@* limitations under the License.*/-export { type ISetNumfmtCommandParams, SetNumfmtCommand } from './commands/commands/set-numfmt.command';export { UniverSheetsNumfmtPlugin } from './numfmt-plugin';export { getPatternPreview } from './utils/pattern';++// #region - all commands++export { AddDecimalCommand } from './commands/commands/add-decimal.command';+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 { CloseNumfmtPanelOperator } from './commands/operations/close.numfmt.panel.operation';+export { OpenNumfmtPanelOperator } from './commands/operations/open.numfmt.panel.operation';++// #endregiondiff --git a/packages/sheets-sort-ui/src/commands/sheets-sort.command.ts b/packages/sheets-sort-ui/src/commands/commands/sheets-sort.command.tssimilarity index 97%rename from packages/sheets-sort-ui/src/commands/sheets-sort.command.tsrename to packages/sheets-sort-ui/src/commands/commands/sheets-sort.command.tsindex b5bd36a0c6..95d22630a9 100644--- a/packages/sheets-sort-ui/src/commands/sheets-sort.command.ts+++ b/packages/sheets-sort-ui/src/commands/commands/sheets-sort.command.ts@@ -16,7 +16,7 @@import { CommandType, type ICommand } from '@univerjs/core';import type { IAccessor } from '@wendellhu/redi';-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/sheets-sort-ui.controller.ts b/packages/sheets-sort-ui/src/controllers/sheets-sort-ui.controller.tsindex d24cb68c29..b460df940b 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@@ -25,7 +25,7 @@ import { AscendingSingle, CustomSortSingle, DescendingSingle, ExpandAscendingSinimport { connectInjector } from '@wendellhu/redi/react-bindings';import { SheetsRenderService, SheetsUIPart } from '@univerjs/sheets-ui';import { SortRangeCommand } from '@univerjs/sheets-sort';-import { SortRangeAscCommand, SortRangeAscExtCommand, SortRangeAscExtInCtxMenuCommand, SortRangeAscInCtxMenuCommand, SortRangeCustomCommand, SortRangeCustomInCtxMenuCommand, SortRangeDescCommand, SortRangeDescExtCommand, SortRangeDescExtInCtxMenuCommand, SortRangeDescInCtxMenuCommand } from '../commands/sheets-sort.command';+import { SortRangeAscCommand, SortRangeAscExtCommand, SortRangeAscExtInCtxMenuCommand, SortRangeAscInCtxMenuCommand, SortRangeCustomCommand, SortRangeCustomInCtxMenuCommand, SortRangeDescCommand, SortRangeDescExtCommand, SortRangeDescExtInCtxMenuCommand, SortRangeDescInCtxMenuCommand } from '../commands/commands/sheets-sort.command';import { CustomSortPanel } from '../views/CustomSortPanel';import type { ISheetSortLocation } from '../services/sheets-sort-ui.service';import { SheetsSortUIService } from '../services/sheets-sort-ui.service';diff --git a/packages/sheets-sort-ui/src/controllers/sheets-sort.menu.ts b/packages/sheets-sort-ui/src/controllers/sheets-sort.menu.tsindex dbac02c724..9ca0dc1d7f 100644--- a/packages/sheets-sort-ui/src/controllers/sheets-sort.menu.ts+++ b/packages/sheets-sort-ui/src/controllers/sheets-sort.menu.ts@@ -19,7 +19,7 @@ import { getMenuHiddenObservable, type IMenuItem, MenuGroup, MenuItemType, MenuPimport type { IAccessor } from '@wendellhu/redi';import { getCurrentRangeDisable$, SheetMenuPosition } from '@univerjs/sheets-ui';import { RangeProtectionPermissionEditPoint, WorkbookEditablePermission, WorksheetEditPermission, WorksheetSortPermission } from '@univerjs/sheets';-import { SortRangeAscCommand, SortRangeAscExtCommand, SortRangeAscExtInCtxMenuCommand, SortRangeAscInCtxMenuCommand, SortRangeCustomCommand, SortRangeCustomInCtxMenuCommand, SortRangeDescCommand, SortRangeDescExtCommand, SortRangeDescExtInCtxMenuCommand, SortRangeDescInCtxMenuCommand } from '../commands/sheets-sort.command';+import { SortRangeAscCommand, SortRangeAscExtCommand, SortRangeAscExtInCtxMenuCommand, SortRangeAscInCtxMenuCommand, SortRangeCustomCommand, SortRangeCustomInCtxMenuCommand, SortRangeDescCommand, SortRangeDescExtCommand, SortRangeDescExtInCtxMenuCommand, SortRangeDescInCtxMenuCommand } from '../commands/commands/sheets-sort.command';const SHEETS_SORT_MENU_ID = 'sheet.menu.sheets-sort';const SHEETS_SORT_CTX_MENU_ID = 'sheet.menu.sheets-sort-ctx';diff --git a/packages/sheets-sort-ui/src/index.ts b/packages/sheets-sort-ui/src/index.tsindex ec02a66ee9..12c51cac32 100644--- a/packages/sheets-sort-ui/src/index.ts+++ b/packages/sheets-sort-ui/src/index.ts@@ -15,3 +15,20 @@*/export { UniverSheetsSortUIPlugin } from './plugin';++// #region - all commands++export {+ SortRangeAscCommand,+ SortRangeAscExtCommand,+ SortRangeDescCommand,+ SortRangeDescExtCommand,+ SortRangeCustomCommand,+ SortRangeAscInCtxMenuCommand,+ SortRangeAscExtInCtxMenuCommand,+ SortRangeDescInCtxMenuCommand,+ SortRangeDescExtInCtxMenuCommand,+ SortRangeCustomInCtxMenuCommand,+} from './commands/commands/sheets-sort.command';++// #endregiondiff --git a/packages/sheets-sort/src/commands/__tests__/create-command-test-bed.ts b/packages/sheets-sort/src/commands/commands/__tests__/create-command-test-bed.tssimilarity index 96%rename from packages/sheets-sort/src/commands/__tests__/create-command-test-bed.tsrename to packages/sheets-sort/src/commands/commands/__tests__/create-command-test-bed.tsindex dd664f0348..d645bb18b5 100644--- a/packages/sheets-sort/src/commands/__tests__/create-command-test-bed.ts+++ b/packages/sheets-sort/src/commands/commands/__tests__/create-command-test-bed.ts@@ -19,9 +19,9 @@ import type { Dependency } from '@wendellhu/redi';import { Inject, Injector } from '@wendellhu/redi';import { SelectionManagerService, SheetInterceptorService } from '@univerjs/sheets';import { FormulaDataModel } from '@univerjs/engine-formula';-import enUS from '../../locale/en-US';-import { SheetsSortService } from '../../services/sheets-sort.service';-import { SheetsSortController } from '../../controllers/sheets-sort.controller';+import enUS from '../../../locale/en-US';+import { SheetsSortService } from '../../../services/sheets-sort.service';+import { SheetsSortController } from '../../../controllers/sheets-sort.controller';const TEST_WORKBOOK_DATA_DEMO: IWorkbookData = {id: 'test',diff --git a/packages/sheets-sort/src/commands/__tests__/sheets-reorder.command.spec.ts b/packages/sheets-sort/src/commands/commands/__tests__/sheets-reorder.command.spec.tssimilarity index 100%rename from packages/sheets-sort/src/commands/__tests__/sheets-reorder.command.spec.tsrename to packages/sheets-sort/src/commands/commands/__tests__/sheets-reorder.command.spec.tsdiff --git a/packages/sheets-sort/src/commands/sheets-sort.command.ts b/packages/sheets-sort/src/commands/commands/sheets-sort.command.tssimilarity index 97%rename from packages/sheets-sort/src/commands/sheets-sort.command.tsrename to packages/sheets-sort/src/commands/commands/sheets-sort.command.tsindex 62c9b464c2..c760903780 100644--- a/packages/sheets-sort/src/commands/sheets-sort.command.ts+++ b/packages/sheets-sort/src/commands/commands/sheets-sort.command.ts@@ -22,8 +22,8 @@ import type { ICellData, ICommand, IRange, Nullable, Worksheet } from '@univerjsimport type { IReorderRangeCommandParams, ISheetCommandSharedParams } from '@univerjs/sheets';import { getSheetCommandTarget, ReorderRangeCommand } from '@univerjs/sheets';import type { IAccessor } from '@wendellhu/redi';-import type { IOrderRule, SortType } from '../services/interface';-import { SheetsSortService } from '../services/sheets-sort.service';+import type { IOrderRule, SortType } from '../../services/interface';+import { SheetsSortService } from '../../services/sheets-sort.service';export interface ISortRangeCommandParams extends ISheetCommandSharedParams {range: IRange;diff --git a/packages/sheets-sort/src/controllers/sheets-sort.controller.ts b/packages/sheets-sort/src/controllers/sheets-sort.controller.tsindex 1a200de9da..039cfbc2f4 100644--- a/packages/sheets-sort/src/controllers/sheets-sort.controller.ts+++ b/packages/sheets-sort/src/controllers/sheets-sort.controller.ts@@ -18,8 +18,8 @@ import type { ICellData, Nullable } from '@univerjs/core';import { CellValueType, Disposable, ICommandService, LifecycleStages, OnLifecycle } from '@univerjs/core';import { Inject } from '@wendellhu/redi';-import type { ICellValueCompareFn } from '../commands/sheets-sort.command';-import { SortRangeCommand } from '../commands/sheets-sort.command';+import type { ICellValueCompareFn } from '../commands/commands/sheets-sort.command';+import { SortRangeCommand } from '../commands/commands/sheets-sort.command';import { SheetsSortService } from '../services/sheets-sort.service';import { compareNull, compareNumber, compareString, isNullValue } from './utils';diff --git a/packages/sheets-sort/src/index.ts b/packages/sheets-sort/src/index.tsindex b18c03b546..ce933425ec 100644--- a/packages/sheets-sort/src/index.ts+++ b/packages/sheets-sort/src/index.ts@@ -16,10 +16,14 @@export { UniverSheetsSortPlugin } from './plugin';+export { SheetsSortService } from './services/sheets-sort.service';+export { type ISortOption, SortType, type IOrderRule } from './services/interface';++// #region - all commands+export {type ISortRangeCommandParams,SortRangeCommand,-} from './commands/sheets-sort.command';+} from './commands/commands/sheets-sort.command';-export { SheetsSortService } from './services/sheets-sort.service';-export { type ISortOption, SortType, type IOrderRule } from './services/interface';+// #endregiondiff --git a/packages/sheets-sort/src/services/sheets-sort.service.ts b/packages/sheets-sort/src/services/sheets-sort.service.tsindex f301b98234..228cb7b21f 100644--- a/packages/sheets-sort/src/services/sheets-sort.service.ts+++ b/packages/sheets-sort/src/services/sheets-sort.service.ts@@ -26,7 +26,7 @@ import type { ISheetRangeLocation } from '@univerjs/sheets';import { getSheetCommandTarget } from '@univerjs/sheets';import { Inject } from '@wendellhu/redi';import { FormulaDataModel } from '@univerjs/engine-formula';-import { type ICellValueCompareFn, SortRangeCommand } from '../commands/sheets-sort.command';+import { type ICellValueCompareFn, SortRangeCommand } from '../commands/commands/sheets-sort.command';import { isNullValue } from '../controllers/utils';import type { ISortOption } from './interface';diff --git a/packages/sheets-thread-comment/src/index.ts b/packages/sheets-thread-comment/src/index.tsindex 77530547ba..61115f82a7 100644--- a/packages/sheets-thread-comment/src/index.ts+++ b/packages/sheets-thread-comment/src/index.ts@@ -28,3 +28,9 @@ export { ThreadCommentRemoveSheetsController } from './controllers/sheets-threadexport { IThreadCommentMentionDataService } from '@univerjs/thread-comment-ui';export { IThreadCommentDataSourceService } from '@univerjs/thread-comment';export { SheetsThreadCommentModel } from '@univerjs/sheets-thread-comment-base';++// #region - all commands++export { ShowAddSheetCommentModalOperation } from './commands/operations/comment.operation';++// #endregiondiff --git a/packages/sheets-ui/src/commands/commands/delete-range-move-left-confirm.command .ts b/packages/sheets-ui/src/commands/commands/delete-range-move-left-confirm.command.tssimilarity index 100%rename from packages/sheets-ui/src/commands/commands/delete-range-move-left-confirm.command .tsrename to packages/sheets-ui/src/commands/commands/delete-range-move-left-confirm.command.tsdiff --git a/packages/sheets-ui/src/commands/operations/set-zoom-ratio.operation.ts b/packages/sheets-ui/src/commands/operations/set-zoom-ratio.operation.tsindex acc4ba0ace..ecde6e9fe5 100644--- a/packages/sheets-ui/src/commands/operations/set-zoom-ratio.operation.ts+++ b/packages/sheets-ui/src/commands/operations/set-zoom-ratio.operation.ts@@ -15,9 +15,8 @@*/import type { IOperation } from '@univerjs/core';-import { CommandType, IUniverInstanceService, Tools } from '@univerjs/core';+import { CommandType } from '@univerjs/core';import { IRenderManagerService } from '@univerjs/engine-render';-import type { IAccessor } from '@wendellhu/redi';import { SheetsZoomRenderController } from '../../controllers/render-controllers/zoom.render-controller';export interface ISetZoomRatioOperationParams {@@ -26,19 +25,6 @@ export interface ISetZoomRatioOperationParams {subUnitId: string;}-export const SetZoomRatioUndoMutationFactory = (- accessor: IAccessor,- params: ISetZoomRatioOperationParams-): ISetZoomRatioOperationParams => {- const workbook = accessor.get(IUniverInstanceService).getUniverSheetInstance(params.unitId);- const worksheet = workbook!.getSheetBySheetId(params.subUnitId);- const old = worksheet!.getConfig().zoomRatio;- return {- ...Tools.deepClone(params),- zoomRatio: old,- };-};-export const SetZoomRatioOperation: IOperation<ISetZoomRatioOperationParams> = {id: 'sheet.operation.set-zoom-ratio',type: CommandType.OPERATION,diff --git a/packages/sheets-ui/src/controllers/menu/delete.menu.ts b/packages/sheets-ui/src/controllers/menu/delete.menu.tsindex 641b725617..dec8c5e4fa 100644--- a/packages/sheets-ui/src/controllers/menu/delete.menu.ts+++ b/packages/sheets-ui/src/controllers/menu/delete.menu.ts@@ -19,7 +19,7 @@ import { MenuGroup, MenuItemType, MenuPosition } from '@univerjs/ui';import type { IAccessor } from '@wendellhu/redi';import { RangeProtectionPermissionEditPoint, WorkbookEditablePermission, WorksheetDeleteColumnPermission, WorksheetDeleteRowPermission, WorksheetEditPermission } from '@univerjs/sheets';-import { DeleteRangeMoveLeftConfirmCommand } from '../../commands/commands/delete-range-move-left-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,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 94ab09e448..df8dc41fca 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@@ -34,7 +34,7 @@ import {AddWorksheetMergeHorizontalCommand,AddWorksheetMergeVerticalCommand,} from '../../commands/commands/add-worksheet-merge.command';-import { DeleteRangeMoveLeftConfirmCommand } from '../../commands/commands/delete-range-move-left-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 { HideColConfirmCommand, HideRowConfirmCommand } from '../../commands/commands/hide-row-col-confirm.command';import {diff --git a/packages/sheets-ui/src/controllers/sheet-ui.controller.ts b/packages/sheets-ui/src/controllers/sheet-ui.controller.tsindex 6297484a7a..db1ac541da 100644--- a/packages/sheets-ui/src/controllers/sheet-ui.controller.ts+++ b/packages/sheets-ui/src/controllers/sheet-ui.controller.ts@@ -35,7 +35,7 @@ import {AddWorksheetMergeHorizontalCommand,AddWorksheetMergeVerticalCommand,} from '../commands/commands/add-worksheet-merge.command';-import { DeleteRangeMoveLeftConfirmCommand } from '../commands/commands/delete-range-move-left-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 { HideColConfirmCommand, HideRowConfirmCommand } from '../commands/commands/hide-row-col-confirm.command';import {diff --git a/packages/sheets-ui/src/index.ts b/packages/sheets-ui/src/index.tsindex cb188acb36..933c14b8c2 100644--- a/packages/sheets-ui/src/index.ts+++ b/packages/sheets-ui/src/index.ts@@ -16,25 +16,10 @@export * from './basics';export { getEditorObject } from './basics/editor/get-editor-object';-export { AutoFillCommand } from './commands/commands/auto-fill.command';-export { SheetCopyCommand } from './commands/commands/clipboard.command';-export { expandToContinuousRange } from './commands/commands/utils/selection-utils';-export { ExpandSelectionCommand, JumpOver, MoveSelectionCommand } from './commands/commands/set-selection.command';-export { SetCellEditVisibleArrowOperation, SetCellEditVisibleOperation } from './commands/operations/cell-edit.operation';-export { SetScrollOperation } from './commands/operations/scroll.operation';export { SheetsScrollRenderController } from './controllers/render-controllers/scroll.render-controller';export { deriveStateFromActiveSheet$, getCurrentRangeDisable$ } from './controllers/menu/menu-util';export { SheetsRenderService } from './services/sheets-render.service';-export { SetZoomRatioOperation } from './commands/operations/set-zoom-ratio.operation';-export {- ResetScrollCommand,- ScrollCommand,- ScrollToCellCommand,- SetScrollRelativeCommand,- type IScrollCommandParams,- type IScrollToCellCommandParams,- type ISetScrollRelativeCommandParams,-} from './commands/commands/set-scroll.command';+export { SHEET_VIEWPORT_KEY as VIEWPORT_KEY } from './common/keys';export { AutoFillController } from './controllers/auto-fill.controller';export { CellCustomRenderController } from './controllers/cell-custom-render.controller';@@ -96,17 +81,87 @@ export { SheetMenuPosition } from './controllers/menu/menu';export { useHighlightRange } from './hooks/useHighlightRange';export { HeaderMoveRenderController } from './controllers/render-controllers/header-move.render-controller';export { HeaderResizeRenderController } from './controllers/render-controllers/header-resize.render-controller';-export type { ISheetPasteParams } from './commands/commands/clipboard.command';-export { SheetCutCommand, SheetPasteColWidthCommand, SheetPasteCommand, SheetPasteShortKeyCommand } from './commands/commands/clipboard.command';-export { SetRangeBoldCommand, SetRangeItalicCommand, SetRangeUnderlineCommand, SetRangeStrickThroughCommand } from './commands/commands/inline-format.command';-export { ApplyFormatPainterCommand } from './commands/commands/set-format-painter.command';export { HeaderFreezeRenderController } from './controllers/render-controllers/freeze.render-controller';export { FormulaEditorController } from './controllers/editor/formula-editor.controller';export { StatusBarController } from './controllers/status-bar.controller';export { SheetPermissionInterceptorBaseController } from './controllers/permission/sheet-permission-interceptor-base.controller';export type { IRangeProtectionRenderCellData } from './views/permission/extensions/range-protection.render';-export { ScrollToRangeOperation } from './commands/operations/scroll-to-range.operation';export { SheetPrintInterceptorService } from './services/print-interceptor.service';export { UniverSheetsMobileUIPlugin } from './mobile-sheets-ui-plugin';export { MobileSheetBar } from './views/mobile/sheet-bar/MobileSheetBar';+export { expandToContinuousRange } from './commands/commands/utils/selection-utils';++// #region - all commands++export { AddWorksheetMergeCommand, AddWorksheetMergeAllCommand, AddWorksheetMergeVerticalCommand, AddWorksheetMergeHorizontalCommand } from './commands/commands/add-worksheet-merge.command';+export { AutoFillCommand, AutoClearContentCommand } from './commands/commands/auto-fill.command';+export {+ SheetCopyCommand,+ SheetCutCommand,+ SheetPasteCommand,+ SheetPasteValueCommand,+ SheetPasteShortKeyCommand,+ SheetPasteColWidthCommand,+ SheetPasteFormatCommand,+ SheetPasteBesidesBorderCommand,+ type ISheetPasteParams,+} from './commands/commands/clipboard.command';+export { DeleteRangeMoveLeftConfirmCommand } from './commands/commands/delete-range-move-left-confirm.command';+export { DeleteRangeMoveUpConfirmCommand } from './commands/commands/delete-range-move-up-confirm.command';+export { HideRowConfirmCommand, HideColConfirmCommand } from './commands/commands/hide-row-col-confirm.command';+export { SetRangeBoldCommand,+ SetRangeItalicCommand,+ SetRangeUnderlineCommand,+ SetRangeStrickThroughCommand,+ SetRangeSubscriptCommand,+ SetRangeSuperscriptCommand,+ SetRangeFontSizeCommand,+ SetRangeFontFamilyCommand,+ SetRangeTextColorCommand,+} from './commands/commands/inline-format.command';+export { InsertRangeMoveDownConfirmCommand } from './commands/commands/insert-range-move-down-confirm.command';+export { InsertRangeMoveRightConfirmCommand } from './commands/commands/insert-range-move-right-confirm.command';+export {+ AddRangeProtectionFromToolbarCommand,+ AddRangeProtectionFromContextMenuCommand,+ ViewSheetPermissionFromContextMenuCommand,+ AddRangeProtectionFromSheetBarCommand,+ ViewSheetPermissionFromSheetBarCommand,+ AddRangeProtectionCommand,+ DeleteRangeSelectionCommand,+ SetRangeProtectionCommand,+ DeleteRangeProtectionFromContextMenuCommand,+ SetRangeProtectionFromContextMenuCommand,+ SetProtectionCommand,+} from './commands/commands/range-protection.command';+export { RefillCommand } from './commands/commands/refill.command';+export { RemoveRowConfirmCommand, RemoveColConfirmCommand } from './commands/commands/remove-row-col-confirm.command';+export { RemoveSheetConfirmCommand } from './commands/commands/remove-sheet-confirm.command';+export { SetInfiniteFormatPainterCommand, SetOnceFormatPainterCommand, ApplyFormatPainterCommand } from './commands/commands/set-format-painter.command';+export { SetSelectionFrozenCommand, SetRowFrozenCommand, SetColumnFrozenCommand, CancelFrozenCommand } from './commands/commands/set-frozen.command';+export {+ ResetScrollCommand,+ ScrollCommand,+ ScrollToCellCommand,+ SetScrollRelativeCommand,+ type IScrollCommandParams,+ type IScrollToCellCommandParams,+ type ISetScrollRelativeCommandParams,+} from './commands/commands/set-scroll.command';+export { JumpOver, MoveSelectionCommand, MoveSelectionEnterAndTabCommand, ExpandSelectionCommand, SelectAllCommand } from './commands/commands/set-selection.command';+export { ChangeZoomRatioCommand, SetZoomRatioCommand } from './commands/commands/set-zoom-ratio.command';+export { ShowMenuListCommand } from './commands/commands/unhide.command';+export { AddWorksheetProtectionCommand, DeleteWorksheetProtectionCommand, SetWorksheetProtectionCommand, DeleteWorksheetProtectionFormSheetBarCommand, ChangeSheetProtectionFromSheetBarCommand } from './commands/commands/worksheet-protection.command';++export { SetActivateCellEditOperation } from './commands/operations/activate-cell-edit.operation';+export { SetCellEditVisibleOperation, SetCellEditVisibleWithF2Operation, SetCellEditVisibleArrowOperation } from './commands/operations/cell-edit.operation';+export { RenameSheetOperation } from './commands/operations/rename-sheet.operation';+export { ScrollToRangeOperation } from './commands/operations/scroll-to-range.operation';+export { SetScrollOperation } from './commands/operations/scroll.operation';+export { SetFormatPainterOperation } from './commands/operations/set-format-painter.operation';+export { SetZoomRatioOperation } from './commands/operations/set-zoom-ratio.operation';+export { SheetPermissionOpenDialogOperation } from './commands/operations/sheet-permission-open-dialog.operation';+export { SheetPermissionOpenPanelOperation } from './commands/operations/sheet-permission-open-panel.operation';+export { SidebarDefinedNameOperation } from './commands/operations/sidebar-defined-name.operation';+// #endregiondiff --git a/packages/sheets-zen-editor/src/index.ts b/packages/sheets-zen-editor/src/index.tsindex 5eff458c0e..053ff87bbc 100644--- a/packages/sheets-zen-editor/src/index.ts+++ b/packages/sheets-zen-editor/src/index.ts@@ -15,3 +15,10 @@*/export { UniverSheetsZenEditorPlugin } from './plugin';++// #region - all commands++export { OpenZenEditorOperation } from './commands/operations/zen-editor.operation';+export { CancelZenEditCommand, ConfirmZenEditCommand } from './commands/commands/zen-editor.command';++// #endregiondiff --git a/packages/sheets/src/index.ts b/packages/sheets/src/index.tsindex 0362617fed..80981a786d 100644--- a/packages/sheets/src/index.ts+++ b/packages/sheets/src/index.ts@@ -43,8 +43,14 @@ export {SELECTION_CONTROL_BORDER_BUFFER_WIDTH,transformCellDataToSelectionData,} from './basics/selection';+export { rangeMerge, createTopMatrixFromRanges, createTopMatrixFromMatrix, findAllRectangle, RangeMergeUtil } from './basics/rangeMerge';export { getSheetCommandTarget, getSheetCommandTargetWorkbook, getSheetMutationTarget } from './commands/commands/utils/target-util';export { alignToMergedCellsBorders, getCellAtRowCol, setEndForRange, isSingleCellSelection } from './commands/commands/utils/selection-utils';+export { followSelectionOperation, getPrimaryForRange } from './commands/commands/utils/selection-utils';+export { handleDeleteRangeMutation } from './commands/utils/handle-range-mutation';+export { getInsertRangeMutations, getRemoveRangeMutations } from './commands/utils/handle-range-mutation';+export { handleInsertRangeMutation } from './commands/utils/handle-range-mutation';+export { type ISheetCommandSharedParams } from './commands/utils/interface';export { MAX_CELL_PER_SHEET_KEY } from './controllers/config/config';export { BorderStyleManagerService, type IBorderInfo } from './services/border-style-manager.service';export * from './services/permission/permission-point';@@ -56,215 +62,6 @@ export {SelectionMoveType,} from './services/selection-manager.service';-// #region commands--export { rangeMerge, createTopMatrixFromRanges, createTopMatrixFromMatrix, findAllRectangle, RangeMergeUtil } from './basics/rangeMerge';-export { ClearSelectionAllCommand } from './commands/commands/clear-selection-all.command';-export { ClearSelectionContentCommand } from './commands/commands/clear-selection-content.command';-export { ClearSelectionFormatCommand } from './commands/commands/clear-selection-format.command';-export { CopySheetCommand } from './commands/commands/copy-worksheet.command';-export { DeleteRangeMoveLeftCommand } from './commands/commands/delete-range-move-left.command';-export { type IDeleteRangeMoveLeftCommandParams } from './commands/commands/delete-range-move-left.command';-export { DeleteRangeMoveUpCommand } from './commands/commands/delete-range-move-up.command';-export { type IDeleteRangeMoveUpCommandParams } from './commands/commands/delete-range-move-up.command';-export { InsertRangeMoveDownCommand } from './commands/commands/insert-range-move-down.command';-export { type InsertRangeMoveDownCommandParams } from './commands/commands/insert-range-move-down.command';-export { InsertRangeMoveRightCommand } from './commands/commands/insert-range-move-right.command';-export { type InsertRangeMoveRightCommandParams } from './commands/commands/insert-range-move-right.command';-export type { IInsertColCommandParams, IInsertRowCommandParams } from './commands/commands/insert-row-col.command';-export {- InsertColAfterCommand,- InsertColBeforeCommand,- InsertColCommand,- InsertRowAfterCommand,- InsertRowBeforeCommand,- InsertRowCommand,-} from './commands/commands/insert-row-col.command';-export type { IInsertSheetCommandParams } from './commands/commands/insert-sheet.command';-export { InsertSheetCommand } from './commands/commands/insert-sheet.command';-export { type IMoveRangeCommandParams, MoveRangeCommand } from './commands/commands/move-range.command';-export {- type IMoveColsCommandParams,- type IMoveRowsCommandParams,- MoveColsCommand,- MoveRowsCommand,-} from './commands/commands/move-rows-cols.command';-export type { IRemoveRowColCommandParams } from './commands/commands/remove-row-col.command';-export { RemoveColCommand, RemoveRowCommand } from './commands/commands/remove-row-col.command';-export type { IRemoveSheetCommandParams } from './commands/commands/remove-sheet.command';-export { RemoveSheetCommand } from './commands/commands/remove-sheet.command';-export { RemoveWorksheetMergeCommand } from './commands/commands/remove-worksheet-merge.command';-export type {- ISetBorderBasicCommandParams,- ISetBorderColorCommandParams,- ISetBorderCommandParams,- ISetBorderPositionCommandParams,- ISetBorderStyleCommandParams,-} from './commands/commands/set-border-command';-export {- SetBorderBasicCommand,- SetBorderColorCommand,- SetBorderCommand,- SetBorderPositionCommand,- SetBorderStyleCommand,-} from './commands/commands/set-border-command';-export {- type ISetSpecificColsVisibleCommandParams,- SetColHiddenCommand,- SetSelectedColsVisibleCommand,- SetSpecificColsVisibleCommand,-} from './commands/commands/set-col-visible.command';-export { SetFrozenCommand } from './commands/commands/set-frozen.command';-export { type ISetRangeValuesCommandParams, SetRangeValuesCommand } from './commands/commands/set-range-values.command';-export {- type ISetSpecificRowsVisibleCommandParams,- SetRowHiddenCommand,- SetSelectedRowsVisibleCommand,- SetSpecificRowsVisibleCommand,-} from './commands/commands/set-row-visible.command';-export {- type ISetColorCommandParams,- type ISetFontFamilyCommandParams,- type ISetFontSizeCommandParams,- type ISetHorizontalTextAlignCommandParams,- type ISetStyleCommandParams,- type ISetTextRotationCommandParams,- type ISetTextWrapCommandParams,- type ISetVerticalTextAlignCommandParams,- type IStyleTypeValue,- ResetBackgroundColorCommand,- ResetTextColorCommand,- SetBackgroundColorCommand,- SetBoldCommand,- SetFontFamilyCommand,- SetFontSizeCommand,- SetHorizontalTextAlignCommand,- SetItalicCommand,- SetStrikeThroughCommand,- SetStyleCommand,- SetTextColorCommand,- SetTextRotationCommand,- SetTextWrapCommand,- SetUnderlineCommand,- SetVerticalTextAlignCommand,-} from './commands/commands/set-style.command';-export { SetTabColorCommand } from './commands/commands/set-tab-color.command';-export {- type ISetWorksheetActivateCommandParams,- SetWorksheetActivateCommand,-} from './commands/commands/set-worksheet-activate.command';-export {- DeltaColumnWidthCommand,- type IDeltaColumnWidthCommandParams,- SetColWidthCommand,-} from './commands/commands/set-worksheet-col-width.command';-export { SetWorksheetHideCommand } from './commands/commands/set-worksheet-hide.command';-export {- type ISetWorksheetNameCommandParams,- SetWorksheetNameCommand,-} from './commands/commands/set-worksheet-name.command';-export { SetWorksheetOrderCommand } from './commands/commands/set-worksheet-order.command';-export {- DeltaRowHeightCommand,- type IDeltaRowHeightCommand,- type ISetWorksheetRowIsAutoHeightCommandParams,- SetRowHeightCommand,- SetWorksheetRowIsAutoHeightCommand,-} from './commands/commands/set-worksheet-row-height.command';-export { SetWorksheetShowCommand } from './commands/commands/set-worksheet-show.command';-export { ReorderRangeCommand, type IReorderRangeCommandParams } from './commands/commands/reorder-range.command';-export { ReorderRangeMutation, type IReorderRangeMutationParams } from './commands/mutations/reorder-range.mutation';-export { followSelectionOperation, getPrimaryForRange } from './commands/commands/utils/selection-utils';-export {- AddMergeUndoMutationFactory,- AddWorksheetMergeMutation,-} from './commands/mutations/add-worksheet-merge.mutation';-export { EmptyMutation } from './commands/mutations/empty.mutation';-export {- InsertColMutation,- InsertColMutationUndoFactory,- InsertRowMutation,- InsertRowMutationUndoFactory,-} from './commands/mutations/insert-row-col.mutation';-export { InsertSheetMutation, InsertSheetUndoMutationFactory } from './commands/mutations/insert-sheet.mutation';-export { MoveRangeMutation } from './commands/mutations/move-range.mutation';-export { type IMoveRangeMutationParams } from './commands/mutations/move-range.mutation';-export {- MoveColsMutation,- MoveRowsMutation,- type IMoveColumnsMutationParams,- MoveColsMutationUndoFactory,- MoveRowsMutationUndoFactory,- type IMoveRowsMutationParams,-} from './commands/mutations/move-rows-cols.mutation';-export type {- IRemoveNumfmtMutationParams,- ISetCellsNumfmt,- ISetNumfmtMutationParams,-} from './commands/mutations/numfmt-mutation';-export {- factoryRemoveNumfmtUndoMutation,- factorySetNumfmtUndoMutation,- RemoveNumfmtMutation,- SetNumfmtMutation,- transformCellsToRange,-} from './commands/mutations/numfmt-mutation';-export { RemoveColMutation, RemoveRowMutation } from './commands/mutations/remove-row-col.mutation';-export { RemoveSheetMutation, RemoveSheetUndoMutationFactory } from './commands/mutations/remove-sheet.mutation';-export { RemoveWorksheetMergeMutation } from './commands/mutations/remove-worksheet-merge.mutation';-export { RemoveMergeUndoMutationFactory } from './commands/mutations/remove-worksheet-merge.mutation';-export {- type ISetColHiddenMutationParams,- type ISetColVisibleMutationParams,- SetColHiddenMutation,- SetColVisibleMutation,-} from './commands/mutations/set-col-visible.mutation';-export {- type ISetFrozenMutationParams,- SetFrozenMutation,- SetFrozenMutationFactory,-} from './commands/mutations/set-frozen.mutation';-export type { ISetRangeValuesMutationParams } from './commands/mutations/set-range-values.mutation';-export { SetRangeValuesMutation } from './commands/mutations/set-range-values.mutation';-export { SetRangeValuesUndoMutationFactory } from './commands/mutations/set-range-values.mutation';-export { type ISetRangeValuesRangeMutationParams } from './commands/mutations/set-range-values.mutation';-export {- type ISetRowHiddenMutationParams,- type ISetRowVisibleMutationParams,- SetRowHiddenMutation,- SetRowVisibleMutation,-} from './commands/mutations/set-row-visible.mutation';-export { SetTabColorMutation } from './commands/mutations/set-tab-color.mutation';-export { type ISetTabColorMutationParams } from './commands/mutations/set-tab-color.mutation';-export {- type ISetWorksheetColWidthMutationParams,- SetWorksheetColWidthMutation,- SetWorksheetColWidthMutationFactory,-} from './commands/mutations/set-worksheet-col-width.mutation';-export {- type ISetWorksheetHideMutationParams,- SetWorksheetHideMutation,-} from './commands/mutations/set-worksheet-hide.mutation';-export { SetWorksheetNameMutation } from './commands/mutations/set-worksheet-name.mutation';-export { type ISetWorksheetNameMutationParams } from './commands/mutations/set-worksheet-name.mutation';-export { SetWorksheetOrderMutation } from './commands/mutations/set-worksheet-order.mutation';-export { type ISetWorksheetOrderMutationParams } from './commands/mutations/set-worksheet-order.mutation';-export {- type ISetWorksheetRowAutoHeightMutationParams,- type ISetWorksheetRowHeightMutationParams,- type ISetWorksheetRowIsAutoHeightMutationParams,- SetWorksheetRowAutoHeightMutation,- SetWorksheetRowAutoHeightMutationFactory,- SetWorksheetRowHeightMutation,- SetWorksheetRowIsAutoHeightMutation,-} from './commands/mutations/set-worksheet-row-height.mutation';-export { type ISetSelectionsOperationParams, SetSelectionsOperation } from './commands/operations/selection.operation';-export { SetWorksheetActiveOperation } from './commands/operations/set-worksheet-active.operation';-export { type ISetWorksheetActiveOperationParams } from './commands/operations/set-worksheet-active.operation';-export { handleDeleteRangeMutation } from './commands/utils/handle-range-mutation';-export { getInsertRangeMutations, getRemoveRangeMutations } from './commands/utils/handle-range-mutation';-export { handleInsertRangeMutation } from './commands/utils/handle-range-mutation';-export { type ISheetCommandSharedParams } from './commands/utils/interface';export { getAddMergeMutationRangeByType } from './controllers/merge-cell.controller';export { NumfmtService } from './services/numfmt/numfmt.service';export type { INumfmtItem, INumfmtItemWithCache } from './services/numfmt/type';@@ -272,8 +69,6 @@ export { INumfmtService } from './services/numfmt/type';export { RefRangeService } from './services/ref-range/ref-range.service';export type { EffectRefRangeParams, IOperator } from './services/ref-range/type';export { EffectRefRangId, OperatorType } from './services/ref-range/type';-export { type ISetWorkbookNameCommandParams, SetWorkbookNameCommand } from './commands/commands/set-workbook-name.command';-export { type ISetWorkbookNameMutationParams, SetWorkbookNameMutation } from './commands/mutations/set-workbook-name.mutation';export { DefinedNameDataController } from './controllers/defined-name-data.controller';export {handleBaseInsertRange,@@ -302,22 +97,13 @@ export type { ISheetLocation, ISheetLocationBase, ISheetRowLocation } from './seexport { MergeCellController } from './controllers/merge-cell.controller';export { AddMergeRedoSelectionsOperationFactory, AddMergeUndoSelectionsOperationFactory } from './commands/utils/handle-merge-operation';-export { InsertDefinedNameCommand } from './commands/commands/insert-defined-name.command';-export { RemoveDefinedNameCommand } from './commands/commands/remove-defined-name.command';-export { SetDefinedNameCommand, type ISetDefinedNameCommandParams } from './commands/commands/set-defined-name.command';-export { ScrollToCellOperation } from './commands/operations/scroll-to-cell.operation';export type { FormatType } from './services/numfmt/type';-export { getMoveRangeUndoRedoMutations } from './commands/commands/move-range.command';export { expandToContinuousRange } from './basics/utils';// permissionexport { defaultWorksheetPermissionPoint, getAllWorksheetPermissionPoint, getAllWorksheetPermissionPointByPointPanel } from './services/permission';export type { IWorksheetProtectionRule } from './services/permission/type';export { WorksheetProtectionRuleModel, WorksheetProtectionPointModel } from './services/permission/worksheet-permission';-export { AddWorksheetProtectionMutation } from './commands/mutations/add-worksheet-protection.mutation';-export { SetWorksheetProtectionMutation } from './commands/mutations/set-worksheet-protection.mutation';-export { DeleteWorksheetProtectionMutation } from './commands/mutations/delete-worksheet-protection.mutation';-export { SetWorksheetPermissionPointsCommand } from './commands/commands/set-worksheet-permission-points.command';export { getAllWorkbookPermissionPoint, defaultWorkbookPermissionPoints } from './services/permission/workbook-permission';export {WorksheetCopyPermission,@@ -358,14 +144,6 @@ export {} from './services/permission/permission-point';// range-protection-export { AddRangeProtectionCommand, type IAddRangeProtectionCommandParams } from './commands/commands/add-range-protection.command';-export { DeleteRangeProtectionCommand, type IDeleteRangeProtectionCommandParams } from './commands/commands/delete-range-protection.command';-export { SetRangeProtectionCommand, type ISetRangeProtectionCommandParams } from './commands/commands/set-range-protection.command';--export { AddRangeProtectionMutation, FactoryAddRangeProtectionMutation, type IAddRangeProtectionMutationParams } from './commands/mutations/add-range-protection.mutation';-export { DeleteRangeProtectionMutation, FactoryDeleteRangeProtectionMutation, type IDeleteSelectionProtectionMutationParams } from './commands/mutations/delete-range-protection.mutation';-export { SetRangeProtectionMutation, FactorySetRangeProtectionMutation, type ISetRangeProtectionMutationParams } from './commands/mutations/set-range-protection.mutation';-export { RangeProtectionRenderModel, type ICellPermission } from './model/range-protection-render.model';export { RangeProtectionRuleModel, type IObjectModel, type IRangeProtectionRule, type IModel } from './model/range-protection-rule.model';export type { IWorksheetProtectionRenderCellData } from './services/permission/worksheet-permission/type';@@ -381,5 +159,220 @@ export {export { RangeProtectionPermissionEditPoint } from './services/permission/permission-point/range/edit';export { RangeProtectionPermissionViewPoint } from './services/permission/permission-point/range/view';-export type { IAddWorksheetProtectionParams } from './commands/mutations/add-worksheet-protection.mutation';export { generateNullCellValue } from './basics/utils';++// #region - all commands++export { AddRangeProtectionCommand, type IAddRangeProtectionCommandParams } from './commands/commands/add-range-protection.command';+export {+ AddWorksheetMergeCommand,+ AddWorksheetMergeAllCommand,+ AddWorksheetMergeVerticalCommand,+ AddWorksheetMergeHorizontalCommand,+} from './commands/commands/add-worksheet-merge.command';+export { ClearSelectionAllCommand } from './commands/commands/clear-selection-all.command';+export { ClearSelectionContentCommand } from './commands/commands/clear-selection-content.command';+export { ClearSelectionFormatCommand } from './commands/commands/clear-selection-format.command';+export { CopySheetCommand } from './commands/commands/copy-worksheet.command';+export { DeleteRangeMoveLeftCommand, type IDeleteRangeMoveLeftCommandParams } from './commands/commands/delete-range-move-left.command';+export { DeleteRangeMoveUpCommand, type IDeleteRangeMoveUpCommandParams } from './commands/commands/delete-range-move-up.command';+export { DeleteRangeProtectionCommand, type IDeleteRangeProtectionCommandParams } from './commands/commands/delete-range-protection.command';+export { InsertDefinedNameCommand } from './commands/commands/insert-defined-name.command';+export { InsertRangeMoveDownCommand, type InsertRangeMoveDownCommandParams } from './commands/commands/insert-range-move-down.command';+export { InsertRangeMoveRightCommand, type InsertRangeMoveRightCommandParams } from './commands/commands/insert-range-move-right.command';+export {+ InsertRowCommand,+ InsertRowBeforeCommand,+ InsertRowAfterCommand,+ InsertColCommand,+ InsertColBeforeCommand,+ InsertColAfterCommand,+ type IInsertRowCommandParams,+ type IInsertColCommandParams,+} from './commands/commands/insert-row-col.command';+export { InsertSheetCommand, type IInsertSheetCommandParams } from './commands/commands/insert-sheet.command';+export { MoveRangeCommand, getMoveRangeUndoRedoMutations, type IMoveRangeCommandParams } from './commands/commands/move-range.command';+export {+ MoveRowsCommand,+ MoveColsCommand,+ type IMoveRowsCommandParams,+ type IMoveColsCommandParams,+} from './commands/commands/move-rows-cols.command';+export { RemoveDefinedNameCommand } from './commands/commands/remove-defined-name.command';+export { RemoveRowCommand, RemoveColCommand, type IRemoveRowColCommandParams } from './commands/commands/remove-row-col.command';+export { RemoveSheetCommand, type IRemoveSheetCommandParams } from './commands/commands/remove-sheet.command';+export { RemoveWorksheetMergeCommand } from './commands/commands/remove-worksheet-merge.command';+export { ReorderRangeCommand, type IReorderRangeCommandParams } from './commands/commands/reorder-range.command';+export {+ SetBorderBasicCommand,+ SetBorderPositionCommand,+ SetBorderStyleCommand,+ SetBorderColorCommand,+ SetBorderCommand,+ type ISetBorderBasicCommandParams,+ type ISetBorderPositionCommandParams,+ type ISetBorderStyleCommandParams,+ type ISetBorderColorCommandParams,+ type ISetBorderCommandParams,+} from './commands/commands/set-border-command';+export {+ SetSpecificColsVisibleCommand,+ SetSelectedColsVisibleCommand,+ SetColHiddenCommand,+ type ISetSpecificColsVisibleCommandParams,+} from './commands/commands/set-col-visible.command';+export { SetDefinedNameCommand, type ISetDefinedNameCommandParams } from './commands/commands/set-defined-name.command';+export { SetFrozenCancelCommand } from './commands/commands/set-frozen-cancel.command';+export { SetFrozenCommand } from './commands/commands/set-frozen.command';+export { SetHideGridlinesCommand } from './commands/commands/set-hide-gridlines.command';+export { SetRangeProtectionCommand, type ISetRangeProtectionCommandParams } from './commands/commands/set-range-protection.command';+export { SetRangeValuesCommand, type ISetRangeValuesCommandParams } from './commands/commands/set-range-values.command';+export {+ SetSpecificRowsVisibleCommand,+ SetSelectedRowsVisibleCommand,+ SetRowHiddenCommand,+ type ISetSpecificRowsVisibleCommandParams,+} from './commands/commands/set-row-visible.command';+export {+ SetStyleCommand,+ SetBoldCommand,+ SetItalicCommand,+ SetUnderlineCommand,+ SetStrikeThroughCommand,+ SetOverlineCommand,+ SetFontFamilyCommand,+ SetFontSizeCommand,+ SetTextColorCommand,+ ResetTextColorCommand,+ SetBackgroundColorCommand,+ ResetBackgroundColorCommand,+ SetVerticalTextAlignCommand,+ SetHorizontalTextAlignCommand,+ SetTextWrapCommand,+ SetTextRotationCommand,+ type ISetColorCommandParams,+ type ISetFontFamilyCommandParams,+ type ISetFontSizeCommandParams,+ type ISetHorizontalTextAlignCommandParams,+ type ISetStyleCommandParams,+ type ISetTextRotationCommandParams,+ type ISetTextWrapCommandParams,+ type ISetVerticalTextAlignCommandParams,+ type IStyleTypeValue,+} from './commands/commands/set-style.command';+export { SetTabColorCommand } from './commands/commands/set-tab-color.command';+export { SetWorkbookNameCommand, type ISetWorkbookNameCommandParams } from './commands/commands/set-workbook-name.command';+export {+ SetWorksheetActivateCommand,+ type ISetWorksheetActivateCommandParams,+} from './commands/commands/set-worksheet-activate.command';+export {+ DeltaColumnWidthCommand,+ SetColWidthCommand,+ type IDeltaColumnWidthCommandParams,+} from './commands/commands/set-worksheet-col-width.command';+export { SetWorksheetHideCommand } from './commands/commands/set-worksheet-hide.command';+export {+ SetWorksheetNameCommand,+ type ISetWorksheetNameCommandParams,+} from './commands/commands/set-worksheet-name.command';+export { SetWorksheetOrderCommand } from './commands/commands/set-worksheet-order.command';+export { SetWorksheetPermissionPointsCommand } from './commands/commands/set-worksheet-permission-points.command';+export { SetWorksheetRightToLeftCommand } from './commands/commands/set-worksheet-right-to-left.command';+export {+ DeltaRowHeightCommand,+ SetRowHeightCommand,+ SetWorksheetRowIsAutoHeightCommand,+ type IDeltaRowHeightCommand,+ type ISetWorksheetRowIsAutoHeightCommandParams,+} from './commands/commands/set-worksheet-row-height.command';+export { SetWorksheetShowCommand } from './commands/commands/set-worksheet-show.command';+export { AddRangeProtectionMutation, FactoryAddRangeProtectionMutation, type IAddRangeProtectionMutationParams } from './commands/mutations/add-range-protection.mutation';+export { AddWorksheetMergeMutation, AddMergeUndoMutationFactory } from './commands/mutations/add-worksheet-merge.mutation';+export { AddWorksheetProtectionMutation, type IAddWorksheetProtectionParams } from './commands/mutations/add-worksheet-protection.mutation';+export { DeleteRangeProtectionMutation, FactoryDeleteRangeProtectionMutation, type IDeleteSelectionProtectionMutationParams } from './commands/mutations/delete-range-protection.mutation';+export { DeleteWorksheetProtectionMutation } from './commands/mutations/delete-worksheet-protection.mutation';+export { EmptyMutation } from './commands/mutations/empty.mutation';+export {+ InsertRowMutation,+ InsertColMutation,+ InsertRowMutationUndoFactory,+ InsertColMutationUndoFactory,+} from './commands/mutations/insert-row-col.mutation';+export { InsertSheetMutation, InsertSheetUndoMutationFactory } from './commands/mutations/insert-sheet.mutation';+export { MoveRangeMutation, type IMoveRangeMutationParams } from './commands/mutations/move-range.mutation';+export {+ MoveRowsMutation,+ MoveColsMutation,+ MoveRowsMutationUndoFactory,+ MoveColsMutationUndoFactory,+ type IMoveRowsMutationParams,+ type IMoveColumnsMutationParams,+} from './commands/mutations/move-rows-cols.mutation';+export {+ SetNumfmtMutation,+ RemoveNumfmtMutation,+ factorySetNumfmtUndoMutation,+ factoryRemoveNumfmtUndoMutation,+ transformCellsToRange,+ type ISetNumfmtMutationParams,+ type IRemoveNumfmtMutationParams,+ type ISetCellsNumfmt,+} from './commands/mutations/numfmt-mutation';+export { RemoveRowMutation, RemoveColMutation } from './commands/mutations/remove-row-col.mutation';+export { RemoveSheetMutation, RemoveSheetUndoMutationFactory } from './commands/mutations/remove-sheet.mutation';+export { RemoveWorksheetMergeMutation, RemoveMergeUndoMutationFactory } from './commands/mutations/remove-worksheet-merge.mutation';+export { ReorderRangeMutation, type IReorderRangeMutationParams } from './commands/mutations/reorder-range.mutation';+export {+ SetColHiddenMutation,+ SetColVisibleMutation,+ type ISetColHiddenMutationParams,+ type ISetColVisibleMutationParams,+} from './commands/mutations/set-col-visible.mutation';+export {+ SetFrozenMutation,+ SetFrozenMutationFactory,+ type ISetFrozenMutationParams,+} from './commands/mutations/set-frozen.mutation';+export { SetHideGridlinesMutation } from './commands/mutations/set-hide-gridlines.mutatiom';+export { SetRangeProtectionMutation, FactorySetRangeProtectionMutation, type ISetRangeProtectionMutationParams } from './commands/mutations/set-range-protection.mutation';+export {+ SetRangeValuesMutation,+ SetRangeValuesUndoMutationFactory,+ type ISetRangeValuesMutationParams,+ type ISetRangeValuesRangeMutationParams,+} from './commands/mutations/set-range-values.mutation';+export {+ SetRowVisibleMutation,+ SetRowHiddenMutation,+ type ISetRowVisibleMutationParams,+ type ISetRowHiddenMutationParams,+} from './commands/mutations/set-row-visible.mutation';+export { SetTabColorMutation, type ISetTabColorMutationParams } from './commands/mutations/set-tab-color.mutation';+export { SetWorkbookNameMutation, type ISetWorkbookNameMutationParams } from './commands/mutations/set-workbook-name.mutation';+export {+ SetWorksheetColWidthMutation,+ SetWorksheetColWidthMutationFactory,+ type ISetWorksheetColWidthMutationParams,+} from './commands/mutations/set-worksheet-col-width.mutation';+export { SetWorksheetHideMutation, type ISetWorksheetHideMutationParams } from './commands/mutations/set-worksheet-hide.mutation';+export { SetWorksheetNameMutation, type ISetWorksheetNameMutationParams } from './commands/mutations/set-worksheet-name.mutation';+export { SetWorksheetOrderMutation, type ISetWorksheetOrderMutationParams } from './commands/mutations/set-worksheet-order.mutation';+export { SetWorksheetPermissionPointsMutation } from './commands/mutations/set-worksheet-permission-points.mutation';+export { SetWorksheetProtectionMutation } from './commands/mutations/set-worksheet-protection.mutation';+export { SetWorksheetRightToLeftMutation } from './commands/mutations/set-worksheet-right-to-left.mutation';+export {+ SetWorksheetRowHeightMutation,+ SetWorksheetRowIsAutoHeightMutation,+ SetWorksheetRowAutoHeightMutation,+ SetWorksheetRowAutoHeightMutationFactory,+ type ISetWorksheetRowHeightMutationParams,+ type ISetWorksheetRowIsAutoHeightMutationParams,+ type ISetWorksheetRowAutoHeightMutationParams,+} from './commands/mutations/set-worksheet-row-height.mutation';++export { ScrollToCellOperation } from './commands/operations/scroll-to-cell.operation';+export { SetSelectionsOperation, type ISetSelectionsOperationParams } from './commands/operations/selection.operation';+export { SetWorksheetActiveOperation, type ISetWorksheetActiveOperationParams } from './commands/operations/set-worksheet-active.operation';++// #endregiondiff --git a/packages/slides-ui/src/commands/operations/setThumb.operation.ts b/packages/slides-ui/src/commands/operations/set-thumb.operation.tssimilarity index 100%rename from packages/slides-ui/src/commands/operations/setThumb.operation.tsrename to packages/slides-ui/src/commands/operations/set-thumb.operation.tsdiff --git a/packages/slides-ui/src/controllers/slide-ui.controller.ts b/packages/slides-ui/src/controllers/slide-ui.controller.tsindex 41ebd29646..de1912dcaf 100644--- a/packages/slides-ui/src/controllers/slide-ui.controller.ts+++ b/packages/slides-ui/src/controllers/slide-ui.controller.ts@@ -20,7 +20,7 @@ import { Inject, Injector } from '@wendellhu/redi';import { connectInjector } from '@wendellhu/redi/react-bindings';import { SlideSideBar } from '../views/slide-bar/SlideBar';import { ActivateSlidePageOperation } from '../commands/operations/activate.operation';-import { SetSlidePageThumbOperation } from '../commands/operations/setThumb.operation';+import { SetSlidePageThumbOperation } from '../commands/operations/set-thumb.operation';/*** This controller registers UI parts of slide workbench to the base-ui workbench.diff --git a/packages/slides-ui/src/index.ts b/packages/slides-ui/src/index.tsindex fe308b39e1..2481d12c64 100644--- a/packages/slides-ui/src/index.ts+++ b/packages/slides-ui/src/index.ts@@ -14,4 +14,11 @@* limitations under the License.*/-export * from './slides-ui-plugin';+export { UniverSlidesUIPlugin } from './slides-ui-plugin';++// #region - all commands++export { ActivateSlidePageOperation } from './commands/operations/activate.operation';+export { SetSlidePageThumbOperation } from './commands/operations/set-thumb.operation';++// #endregiondiff --git a/packages/slides-ui/src/views/slide-bar/SlideBar.tsx b/packages/slides-ui/src/views/slide-bar/SlideBar.tsxindex 8e56c6293a..007fa7be3b 100644--- a/packages/slides-ui/src/views/slide-bar/SlideBar.tsx+++ b/packages/slides-ui/src/views/slide-bar/SlideBar.tsx@@ -23,7 +23,7 @@ import { useDependency } from '@wendellhu/redi/react-bindings';import { useObservable } from '@univerjs/ui';import { IRenderManagerService } from '@univerjs/engine-render';import { ActivateSlidePageOperation } from '../../commands/operations/activate.operation';-import { SetSlidePageThumbOperation } from '../../commands/operations/setThumb.operation';+import { SetSlidePageThumbOperation } from '../../commands/operations/set-thumb.operation';import styles from './index.module.less';/**diff --git a/packages/slides/src/index.ts b/packages/slides/src/index.tsindex 6bbb56738d..06918ddd5c 100644--- a/packages/slides/src/index.ts+++ b/packages/slides/src/index.ts@@ -14,5 +14,5 @@* limitations under the License.*/-export * from './slides-plugin';+export { UniverSlidesPlugin } from './slides-plugin';export * from './views/render';diff --git a/packages/thread-comment-ui/src/index.ts b/packages/thread-comment-ui/src/index.tsindex 86f18d5261..34231eb302 100644--- a/packages/thread-comment-ui/src/index.ts+++ b/packages/thread-comment-ui/src/index.ts@@ -15,7 +15,6 @@*/export { UniverThreadCommentUIPlugin } from './plugin';-export { ToggleSheetCommentPanelOperation, SetActiveCommentOperation, type ISetActiveCommentOperationParams } from './commands/operations/comment.operations';export { ThreadCommentPanelService } from './services/thread-comment-panel.service';export { ThreadCommentPanel } from './views/thread-comment-panel';export type { IThreadCommentPanelProps } from './views/thread-comment-panel';@@ -23,3 +22,9 @@ export { ThreadCommentTree } from './views/thread-comment-tree';export type { IThreadCommentTreeProps } from './views/thread-comment-tree';export { THREAD_COMMENT_PANEL } from './types/const';export { IThreadCommentMentionDataService } from './services/thread-comment-mention-data.service';++// #region - all commands++export { ToggleSheetCommentPanelOperation, SetActiveCommentOperation, type ISetActiveCommentOperationParams } from './commands/operations/comment.operations';++// #endregiondiff --git a/packages/thread-comment/src/index.ts b/packages/thread-comment/src/index.tsindex f203a06828..cac745a090 100644--- a/packages/thread-comment/src/index.ts+++ b/packages/thread-comment/src/index.ts@@ -17,6 +17,13 @@export { ThreadCommentModel, type CommentUpdate } from './models/thread-comment.model';export { ThreadCommentResourceController } from './controllers/tc-resource.controller';export { TC_PLUGIN_NAME } from './types/const';+export type { IThreadComment, IThreadCommentMention } from './types/interfaces/i-thread-comment';++export { UniverThreadCommentPlugin } from './plugin';+export { IThreadCommentDataSourceService, ThreadCommentDataSourceService } from './services/tc-datasource.service';++// #region - all commands+export {AddCommentMutation,DeleteCommentMutation,@@ -32,7 +39,6 @@ export type {IUpdateCommentPayload,IUpdateCommentRefMutationParams,} from './commands/mutations/comment.mutation';-export type { IThreadComment, IThreadCommentMention } from './types/interfaces/i-thread-comment';export {AddCommentCommand,DeleteCommentCommand,@@ -49,5 +55,5 @@ export type {IUpdateCommentRefCommandParams,IUpdateCommentRefPayload,} from './commands/commands/comment.command';-export { UniverThreadCommentPlugin } from './plugin';-export { IThreadCommentDataSourceService, ThreadCommentDataSourceService } from './services/tc-datasource.service';++// #endregiondiff --git a/packages/ui/src/index.ts b/packages/ui/src/index.tsindex 40155b08d7..495a9cb340 100644--- a/packages/ui/src/index.ts+++ b/packages/ui/src/index.ts@@ -85,7 +85,6 @@ export { type IConfirmPartMethodOptions } from './views/components/confirm-part/export { ComponentContainer, useComponentsOfPart, type IComponentContainerProps } from './views/components/ComponentContainer';export { IEditorService, EditorService } from './services/editor/editor.service';export { TextEditor } from './components/editor/TextEditor';-export { SetEditorResizeOperation } from './commands/operations/editor/set-editor-resize.operation';export { RangeSelector } from './components/range-selector/RangeSelector';export { IRangeSelectorService } from './services/range-selector/range-selector.service';export { DesktopLocalStorageService } from './services/local-storage/local-storage.service';@@ -110,3 +109,9 @@ export { MobileContextMenu } from './views/components/context-menu/MobileContext// #endregion+// #region - all commands++export { ToggleShortcutPanelOperation } from './commands/operations/toggle-shortcut-panel.operation';+export { SetEditorResizeOperation } from './commands/operations/editor/set-editor-resize.operation';++// #endregiondiff --git a/packages/uniscript/src/index.ts b/packages/uniscript/src/index.tsindex a0deebd1e3..4b33582495 100644--- a/packages/uniscript/src/index.ts+++ b/packages/uniscript/src/index.ts@@ -17,3 +17,9 @@export { UniverUniscriptPlugin } from './plugin';export { ScriptEditorService } from './services/script-editor.service';export { IUniscriptExecutionService } from './services/script-execution.service';++// #region - all commands++export { ToggleScriptPanelOperation } from './commands/operations/panel.operation';++// #endregion