Skip to content

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.

refactor: remove redundant re-exports (#7129)

白熱b82f3658c5cf
diff --git a/examples/src/sheets-webcomponent/main.tsx b/examples/src/sheets-webcomponent/main.tsx
index 4ffd3ec8e4..f6daa0d2c0 100644
--- a/examples/src/sheets-webcomponent/main.tsx
+++ b/examples/src/sheets-webcomponent/main.tsx
@@ -33,9 +33,10 @@ import { UniverSheetsSortUIPlugin } from '@univerjs/sheets-sort-ui';
import { UniverSheetsTablePlugin } from '@univerjs/sheets-table';
import { UniverSheetsTableUIPlugin } from '@univerjs/sheets-table-ui';
import { UniverSheetsThreadCommentPlugin } from '@univerjs/sheets-thread-comment';
-import { UniverSheetsThreadCommentUIPlugin, UniverThreadCommentUIPlugin } from '@univerjs/sheets-thread-comment-ui';
+import { UniverSheetsThreadCommentUIPlugin } from '@univerjs/sheets-thread-comment-ui';
import { UniverSheetsUIPlugin } from '@univerjs/sheets-ui';
import { UniverThreadCommentPlugin } from '@univerjs/thread-comment';
+import { UniverThreadCommentUIPlugin } from '@univerjs/thread-comment-ui';
import { UniverUIPlugin } from '@univerjs/ui';
import { UniverVue3AdapterPlugin } from '@univerjs/ui-adapter-vue3';
import { UniverWebComponentAdapterPlugin } from '@univerjs/ui-adapter-web-component';
diff --git a/packages/core/src/facade/f-hooks.ts b/packages/core/src/facade/f-hooks.ts
index 1b7b6f68fa..cc239c95b1 100644
--- a/packages/core/src/facade/f-hooks.ts
+++ b/packages/core/src/facade/f-hooks.ts
@@ -15,7 +15,17 @@
*/
import type { IDisposable, IUndoRedoItem } from '@univerjs/core';
-import { ICommandService, Inject, Injector, IUndoRedoService, LifecycleService, LifecycleStages, RedoCommand, toDisposable, UndoCommand } from '@univerjs/core';
+import {
+ ICommandService,
+ Inject,
+ Injector,
+ IUndoRedoService,
+ LifecycleService,
+ LifecycleStages,
+ RedoCommand,
+ toDisposable,
+ UndoCommand,
+} from '@univerjs/core';
import { filter } from 'rxjs';
import { FBase } from './f-base';
diff --git a/packages/core/src/facade/f-univer.ts b/packages/core/src/facade/f-univer.ts
index 4fe91d24cc..741d1a8ed4 100644
--- a/packages/core/src/facade/f-univer.ts
+++ b/packages/core/src/facade/f-univer.ts
@@ -14,10 +14,44 @@
* limitations under the License.
*/
-import type { CommandListener, DocumentDataModel, IDisposable, IDocumentData, IExecutionOptions, ILanguagePack, IParagraphStyle, ITextDecoration, ITextStyle, LifecycleStages, LocaleType } from '@univerjs/core';
+import type {
+ CommandListener,
+ DocumentDataModel,
+ IDisposable,
+ IDocumentData,
+ IExecutionOptions,
+ ILanguagePack,
+ IParagraphStyle,
+ ITextDecoration,
+ ITextStyle,
+ LifecycleStages,
+ LocaleType,
+} from '@univerjs/core';
import type { Subscription } from 'rxjs';
import type { ICommandEvent, IEventParamConfig } from './f-event';
-import { CanceledError, Disposable, ICommandService, Inject, Injector, IUniverInstanceService, LifecycleService, LocaleService, ParagraphStyleBuilder, ParagraphStyleValue, RedoCommand, RichTextBuilder, RichTextValue, TextDecorationBuilder, TextStyleBuilder, TextStyleValue, ThemeService, toDisposable, UndoCommand, Univer, UniverInstanceType } from '@univerjs/core';
+import {
+ CanceledError,
+ Disposable,
+ ICommandService,
+ Inject,
+ Injector,
+ IUniverInstanceService,
+ LifecycleService,
+ LocaleService,
+ ParagraphStyleBuilder,
+ ParagraphStyleValue,
+ RedoCommand,
+ RichTextBuilder,
+ RichTextValue,
+ TextDecorationBuilder,
+ TextStyleBuilder,
+ TextStyleValue,
+ ThemeService,
+ toDisposable,
+ UndoCommand,
+ Univer,
+ UniverInstanceType,
+} from '@univerjs/core';
import { FBlob } from './f-blob';
import { FDoc } from './f-doc';
import { FEnum } from './f-enum';
diff --git a/packages/data-validation/src/commands/mutations/__tests__/data-validation.mutation.spec.ts b/packages/data-validation/src/commands/mutations/__tests__/data-validation.mutation.spec.ts
index c4a4864d88..99db809235 100644
--- a/packages/data-validation/src/commands/mutations/__tests__/data-validation.mutation.spec.ts
+++ b/packages/data-validation/src/commands/mutations/__tests__/data-validation.mutation.spec.ts
@@ -19,7 +19,11 @@ import { DataValidationOperator, DataValidationType, ICommandService, Univer } f
import { afterEach, beforeEach, describe, expect, it } from 'vitest';
import { DataValidationModel } from '../../../models/data-validation-model';
import { UpdateRuleType } from '../../../types/enum/update-rule-type';
-import { AddDataValidationMutation, RemoveDataValidationMutation, UpdateDataValidationMutation } from '../data-validation.mutation';
+import {
+ AddDataValidationMutation,
+ RemoveDataValidationMutation,
+ UpdateDataValidationMutation,
+} from '../data-validation.mutation';
const unitId = 'validation-workbook';
const subUnitId = 'validation-sheet';
diff --git a/packages/data-validation/src/plugin.ts b/packages/data-validation/src/plugin.ts
index 0f7eab65ee..092554566c 100644
--- a/packages/data-validation/src/plugin.ts
+++ b/packages/data-validation/src/plugin.ts
@@ -18,8 +18,18 @@ import type { Dependency } from '@univerjs/core';
import type { IUniverDataValidationConfig } from './config/config';
import { ICommandService, IConfigService, Inject, Injector, merge, Plugin, UniverInstanceType } from '@univerjs/core';
import pkg from '../package.json';
-import { AddDataValidationCommand, RemoveAllDataValidationCommand, RemoveDataValidationCommand, UpdateDataValidationOptionsCommand, UpdateDataValidationSettingCommand } from './commands/commands/data-validation.command';
-import { AddDataValidationMutation, RemoveDataValidationMutation, UpdateDataValidationMutation } from './commands/mutations/data-validation.mutation';
+import {
+ AddDataValidationCommand,
+ RemoveAllDataValidationCommand,
+ RemoveDataValidationCommand,
+ UpdateDataValidationOptionsCommand,
+ UpdateDataValidationSettingCommand,
+} from './commands/commands/data-validation.command';
+import {
+ AddDataValidationMutation,
+ RemoveDataValidationMutation,
+ UpdateDataValidationMutation,
+} from './commands/mutations/data-validation.mutation';
import { DATA_VALIDATION_PLUGIN_CONFIG_KEY, defaultPluginConfig } from './config/config';
import { DataValidationResourceController } from './controllers/dv-resource.controller';
import { DataValidationModel } from './models/data-validation-model';
diff --git a/packages/docs-drawing-ui/src/__tests__/create-doc-ui-test-bed.ts b/packages/docs-drawing-ui/src/__tests__/create-doc-ui-test-bed.ts
index 36c4060c97..55c7f13768 100644
--- a/packages/docs-drawing-ui/src/__tests__/create-doc-ui-test-bed.ts
+++ b/packages/docs-drawing-ui/src/__tests__/create-doc-ui-test-bed.ts
@@ -33,7 +33,12 @@ import {
Univer,
UniverInstanceType,
} from '@univerjs/core';
-import { DocSelectionManagerService, DocSkeletonManagerService, DocStateChangeManagerService, DocStateEmitService } from '@univerjs/docs';
+import {
+ DocSelectionManagerService,
+ DocSkeletonManagerService,
+ DocStateChangeManagerService,
+ DocStateEmitService,
+} from '@univerjs/docs';
import { DocIMEInputManagerService, DocSelectionRenderService } from '@univerjs/docs-ui';
import { DocumentViewModel, IRenderManagerService, RenderManagerService } from '@univerjs/engine-render';
import { BehaviorSubject, takeUntil } from 'rxjs';
diff --git a/packages/docs-drawing-ui/src/commands/commands/move-drawings.command.ts b/packages/docs-drawing-ui/src/commands/commands/move-drawings.command.ts
index 5042a38c0a..30a5bb85e8 100644
--- a/packages/docs-drawing-ui/src/commands/commands/move-drawings.command.ts
+++ b/packages/docs-drawing-ui/src/commands/commands/move-drawings.command.ts
@@ -17,7 +17,13 @@
import type { IAccessor, ICommand } from '@univerjs/core';
import type { IDocDrawing } from '@univerjs/docs-drawing';
import type { IDrawingDocTransform, IUpdateDrawingDocTransformParams } from './update-doc-drawing.command';
-import { CommandType, Direction, ICommandService, IUniverInstanceService, PositionedObjectLayoutType } from '@univerjs/core';
+import {
+ CommandType,
+ Direction,
+ ICommandService,
+ IUniverInstanceService,
+ PositionedObjectLayoutType,
+} from '@univerjs/core';
import { IDocDrawingService } from '@univerjs/docs-drawing';
import { IRenderManagerService } from '@univerjs/engine-render';
import { UpdateDrawingDocTransformCommand } from './update-doc-drawing.command';
diff --git a/packages/docs-drawing-ui/src/controllers/doc-float-dom.controller.ts b/packages/docs-drawing-ui/src/controllers/doc-float-dom.controller.ts
index 038bb2f996..1dbf0e660e 100644
--- a/packages/docs-drawing-ui/src/controllers/doc-float-dom.controller.ts
+++ b/packages/docs-drawing-ui/src/controllers/doc-float-dom.controller.ts
@@ -21,7 +21,21 @@ import type { IDocFloatDomDataBase } from '@univerjs/drawing';
import type { IBoundRectNoAngle, IRender, Rect, Scene } from '@univerjs/engine-render';
import type { IFloatDomLayout } from '@univerjs/ui';
import type { IInsertDrawingCommandParams } from '../commands/commands/interfaces';
-import { Disposable, DisposableCollection, DrawingTypeEnum, fromEventSubject, generateRandomId, ICommandService, Inject, IUniverInstanceService, ObjectRelativeFromH, ObjectRelativeFromV, PositionedObjectLayoutType, toDisposable, UniverInstanceType } from '@univerjs/core';
+import {
+ Disposable,
+ DisposableCollection,
+ DrawingTypeEnum,
+ fromEventSubject,
+ generateRandomId,
+ ICommandService,
+ Inject,
+ IUniverInstanceService,
+ ObjectRelativeFromH,
+ ObjectRelativeFromV,
+ PositionedObjectLayoutType,
+ toDisposable,
+ UniverInstanceType,
+} from '@univerjs/core';
import { DocSkeletonManagerService } from '@univerjs/docs';
import { docDrawingPositionToTransform, SetDocZoomRatioOperation, VIEWPORT_KEY } from '@univerjs/docs-ui';
import { IDrawingManagerService } from '@univerjs/drawing';
diff --git a/packages/docs-drawing-ui/src/controllers/render-controllers/__tests__/doc-drawing-transform-update.controller.spec.ts b/packages/docs-drawing-ui/src/controllers/render-controllers/__tests__/doc-drawing-transform-update.controller.spec.ts
index 4f4e1d810e..299a39b919 100644
--- a/packages/docs-drawing-ui/src/controllers/render-controllers/__tests__/doc-drawing-transform-update.controller.spec.ts
+++ b/packages/docs-drawing-ui/src/controllers/render-controllers/__tests__/doc-drawing-transform-update.controller.spec.ts
@@ -14,11 +14,27 @@
* limitations under the License.
*/
-import { AlignTypeH, AlignTypeV, BooleanNumber, ObjectRelativeFromH, ObjectRelativeFromV, PositionedObjectLayoutType } from '@univerjs/core';
+import {
+ AlignTypeH,
+ AlignTypeV,
+ BooleanNumber,
+ ObjectRelativeFromH,
+ ObjectRelativeFromV,
+ PositionedObjectLayoutType,
+} from '@univerjs/core';
import { Liquid, setDocsTableRenderViewportProvider } from '@univerjs/engine-render';
import { afterEach, describe, expect, it, vi } from 'vitest';
import { getDocsTableCellAnchorContext } from '../../doc-drawing-transformer-update.controller';
-import { DocDrawingTransformUpdateController, getDocsDrawingBehindText, getDocsDrawingClipPage, getDocsDrawingPageClipBounds, getDocsPageRelativeDrawingAnchorPage, getDocsPageRelativeDrawingLeft, getDocsPageRelativeDrawingTop, getDocsTableCellDrawingOffset } from '../doc-drawing-transform-update.controller';
+import {
+ DocDrawingTransformUpdateController,
+ getDocsDrawingBehindText,
+ getDocsDrawingClipPage,
+ getDocsDrawingPageClipBounds,
+ getDocsPageRelativeDrawingAnchorPage,
+ getDocsPageRelativeDrawingLeft,
+ getDocsPageRelativeDrawingTop,
+ getDocsTableCellDrawingOffset,
+} from '../doc-drawing-transform-update.controller';
describe('DocDrawingTransformUpdateController', () => {
afterEach(() => {
diff --git a/packages/docs-drawing-ui/src/menu/__tests__/schema.spec.ts b/packages/docs-drawing-ui/src/menu/__tests__/schema.spec.ts
index 6da5f791e3..850fd2f0e4 100644
--- a/packages/docs-drawing-ui/src/menu/__tests__/schema.spec.ts
+++ b/packages/docs-drawing-ui/src/menu/__tests__/schema.spec.ts
@@ -14,11 +14,20 @@
* limitations under the License.
*/
-import { DOC_CONTENT_INSERT_MENU_ID, DOC_PARAGRAPH_T_INSERT_BELOW_MENU_ID, DOC_PARAGRAPH_T_INSERT_MENU_ID, EMPTY_PARAGRAPH_MENU_ID, INSERT_BELLOW_MENU_ID } from '@univerjs/docs-ui';
+import {
+ DOC_CONTENT_INSERT_MENU_ID,
+ DOC_PARAGRAPH_T_INSERT_BELOW_MENU_ID,
+ DOC_PARAGRAPH_T_INSERT_MENU_ID,
+ EMPTY_PARAGRAPH_MENU_ID,
+ INSERT_BELLOW_MENU_ID,
+} from '@univerjs/docs-ui';
import { ContextMenuGroup, ContextMenuPosition } from '@univerjs/ui';
import { describe, expect, it } from 'vitest';
import { InsertDocImageCommand } from '../../commands/commands/insert-image.command';
-import { InsertDocEllipseShapeCommand, InsertDocRectangleShapeCommand } from '../../commands/commands/insert-shape.command';
+import {
+ InsertDocEllipseShapeCommand,
+ InsertDocRectangleShapeCommand,
+} from '../../commands/commands/insert-shape.command';
import { UploadFloatImageMenuFactory } from '../image.menu';
import { menuSchema } from '../schema';
import {
diff --git a/packages/docs-drawing-ui/src/menu/drawing-popup-menu.controller.ts b/packages/docs-drawing-ui/src/menu/drawing-popup-menu.controller.ts
index 18eaa0bebb..965528b36b 100644
--- a/packages/docs-drawing-ui/src/menu/drawing-popup-menu.controller.ts
+++ b/packages/docs-drawing-ui/src/menu/drawing-popup-menu.controller.ts
@@ -16,10 +16,25 @@
import type { DocumentDataModel, IDisposable, Nullable } from '@univerjs/core';
import type { BaseObject, Scene } from '@univerjs/engine-render';
-import { DrawingTypeEnum, FOCUSING_COMMON_DRAWINGS, ICommandService, IContextService, Inject, isInternalEditorID, IUniverInstanceService, RxDisposable, UniverInstanceType } from '@univerjs/core';
+import {
+ DrawingTypeEnum,
+ FOCUSING_COMMON_DRAWINGS,
+ ICommandService,
+ IContextService,
+ Inject,
+ isInternalEditorID,
+ IUniverInstanceService,
+ RxDisposable,
+ UniverInstanceType,
+} from '@univerjs/core';
import { DocCanvasPopManagerService } from '@univerjs/docs-ui';
import { IDrawingManagerService } from '@univerjs/drawing';
-import { COMPONENT_IMAGE_POPUP_MENU, ImageCropperObject, ImageResetSizeOperation, OpenImageCropOperation } from '@univerjs/drawing-ui';
+import {
+ COMPONENT_IMAGE_POPUP_MENU,
+ ImageCropperObject,
+ ImageResetSizeOperation,
+ OpenImageCropOperation,
+} from '@univerjs/drawing-ui';
import { IRenderManagerService } from '@univerjs/engine-render';
import { takeUntil } from 'rxjs';
import { RemoveDocDrawingCommand } from '../commands/commands/remove-doc-drawing.command';
diff --git a/packages/docs-drawing-ui/src/plugin.ts b/packages/docs-drawing-ui/src/plugin.ts
index 3baa2cbafa..0d3ec1d128 100644
--- a/packages/docs-drawing-ui/src/plugin.ts
+++ b/packages/docs-drawing-ui/src/plugin.ts
@@ -29,8 +29,12 @@ import { DocDrawingAddRemoveController } from './controllers/doc-drawing-notific
import { DocDrawingPrintingController } from './controllers/doc-drawing-printing.controller';
import { DocDrawingTransformerController } from './controllers/doc-drawing-transformer-update.controller';
import { DocFloatDomController } from './controllers/doc-float-dom.controller';
-import { DocDrawingTransformUpdateController } from './controllers/render-controllers/doc-drawing-transform-update.controller';
-import { DocDrawingUpdateRenderController } from './controllers/render-controllers/doc-drawing-update.render-controller';
+import {
+ DocDrawingTransformUpdateController,
+} from './controllers/render-controllers/doc-drawing-transform-update.controller';
+import {
+ DocDrawingUpdateRenderController,
+} from './controllers/render-controllers/doc-drawing-update.render-controller';
import { DocDrawingUIController } from './controllers/ui.controller';
import { DocDrawingPopupMenuController } from './menu/drawing-popup-menu.controller';
import { DocRefreshDrawingsService } from './services/doc-refresh-drawings.service';
diff --git a/packages/docs-drawing/src/controllers/doc-drawing.controller.ts b/packages/docs-drawing/src/controllers/doc-drawing.controller.ts
index 5dfe2a76c7..e8fae1ca91 100644
--- a/packages/docs-drawing/src/controllers/doc-drawing.controller.ts
+++ b/packages/docs-drawing/src/controllers/doc-drawing.controller.ts
@@ -22,7 +22,10 @@ import { IDrawingManagerService } from '@univerjs/drawing';
import { IDocDrawingService } from '../services/doc-drawing.service';
export const DOCS_DRAWING_PLUGIN = 'DOC_DRAWING_PLUGIN';
-export interface IDocDrawingModel { drawings?: IDocumentData['drawings']; drawingsOrder?: IDocumentData['drawingsOrder'] };
+export interface IDocDrawingModel {
+ drawings?: IDocumentData['drawings'];
+ drawingsOrder?: IDocumentData['drawingsOrder'];
+};
export class DocDrawingController extends Disposable {
constructor(
diff --git a/packages/docs-mention-ui/src/__tests__/create-doc-ui-test-bed.ts b/packages/docs-mention-ui/src/__tests__/create-doc-ui-test-bed.ts
index b533acc513..5913144738 100644
--- a/packages/docs-mention-ui/src/__tests__/create-doc-ui-test-bed.ts
+++ b/packages/docs-mention-ui/src/__tests__/create-doc-ui-test-bed.ts
@@ -33,7 +33,12 @@ import {
Univer,
UniverInstanceType,
} from '@univerjs/core';
-import { DocSelectionManagerService, DocSkeletonManagerService, DocStateChangeManagerService, DocStateEmitService } from '@univerjs/docs';
+import {
+ DocSelectionManagerService,
+ DocSkeletonManagerService,
+ DocStateChangeManagerService,
+ DocStateEmitService,
+} from '@univerjs/docs';
import { DocIMEInputManagerService, DocSelectionRenderService } from '@univerjs/docs-ui';
import { DocumentViewModel, IRenderManagerService, RenderManagerService } from '@univerjs/engine-render';
import { BehaviorSubject, takeUntil } from 'rxjs';
diff --git a/packages/docs-mention-ui/src/__tests__/docs-mention-ui.integration.spec.ts b/packages/docs-mention-ui/src/__tests__/docs-mention-ui.integration.spec.ts
index 3458e125c8..0dd41c95f7 100644
--- a/packages/docs-mention-ui/src/__tests__/docs-mention-ui.integration.spec.ts
+++ b/packages/docs-mention-ui/src/__tests__/docs-mention-ui.integration.spec.ts
@@ -17,7 +17,12 @@
import type { ICommand, IDisposable, IDocumentData, Univer } from '@univerjs/core';
import type { IInsertTextCommandParams } from '@univerjs/docs';
import { awaitTime, CustomRangeType, Direction, ICommandService, IUniverInstanceService } from '@univerjs/core';
-import { DocSelectionManagerService, InsertTextCommand, RichTextEditingMutation, SetTextSelectionsOperation } from '@univerjs/docs';
+import {
+ DocSelectionManagerService,
+ InsertTextCommand,
+ RichTextEditingMutation,
+ SetTextSelectionsOperation,
+} from '@univerjs/docs';
import { DeleteLeftCommand, DocCanvasPopManagerService, MoveCursorOperation } from '@univerjs/docs-ui';
import { afterEach, describe, expect, it, vi } from 'vitest';
import { AddDocMentionCommand, DeleteDocMentionCommand } from '../commands/commands/doc-mention.command';
diff --git a/packages/docs-quick-insert-ui/src/controllers/doc-quick-insert-trigger.controller.ts b/packages/docs-quick-insert-ui/src/controllers/doc-quick-insert-trigger.controller.ts
index 6f76770bc6..415ceab0df 100644
--- a/packages/docs-quick-insert-ui/src/controllers/doc-quick-insert-trigger.controller.ts
+++ b/packages/docs-quick-insert-ui/src/controllers/doc-quick-insert-trigger.controller.ts
@@ -15,13 +15,33 @@
*/
import type { DocumentDataModel } from '@univerjs/core';
-import type { IDeleteTextCommandParams, IInsertTextCommandParams, IRichTextEditingMutationParams } from '@univerjs/docs';
+import type {
+ IDeleteTextCommandParams,
+ IInsertTextCommandParams,
+ IRichTextEditingMutationParams,
+} from '@univerjs/docs';
import type { IIMEInputCommandParams, IMoveCursorOperationParams } from '@univerjs/docs-ui';
-import { DeleteDirection, Direction, Disposable, ICommandService, Inject, IUniverInstanceService, UniverInstanceType } from '@univerjs/core';
-import { DeleteTextCommand, DocSelectionManagerService, InsertTextCommand, RichTextEditingMutation } from '@univerjs/docs';
+import {
+ DeleteDirection,
+ Direction,
+ Disposable,
+ ICommandService,
+ Inject,
+ IUniverInstanceService,
+ UniverInstanceType,
+} from '@univerjs/core';
+import {
+ DeleteTextCommand,
+ DocSelectionManagerService,
+ InsertTextCommand,
+ RichTextEditingMutation,
+} from '@univerjs/docs';
import { DeleteLeftCommand, IMEInputCommand, MoveCursorOperation } from '@univerjs/docs-ui';
import { IShortcutService, KeyCode } from '@univerjs/ui';
-import { CloseQuickInsertPopupOperation, ShowQuickInsertPopupOperation } from '../commands/operations/quick-insert-popup.operation';
+import {
+ CloseQuickInsertPopupOperation,
+ ShowQuickInsertPopupOperation,
+} from '../commands/operations/quick-insert-popup.operation';
import { builtInMenuCommandIds, textMenu } from '../menu/menu';
import { DocQuickInsertPopupService } from '../services/doc-quick-insert-popup.service';
diff --git a/packages/docs-quick-insert-ui/src/services/doc-quick-insert-popup.service.ts b/packages/docs-quick-insert-ui/src/services/doc-quick-insert-popup.service.ts
index 2c8db078f5..a65a0ecff6 100644
--- a/packages/docs-quick-insert-ui/src/services/doc-quick-insert-popup.service.ts
+++ b/packages/docs-quick-insert-ui/src/services/doc-quick-insert-popup.service.ts
@@ -16,11 +16,22 @@
import type { DocumentDataModel, IDisposable, Nullable } from '@univerjs/core';
import type { IInsertTextCommandParams } from '@univerjs/docs';
-import type { Documents, DocumentSkeleton, IBoundRectNoAngle, IDocumentSkeletonGlyph, ITextRangeWithStyle } from '@univerjs/engine-render';
+import type {
+ Documents,
+ DocumentSkeleton,
+ IBoundRectNoAngle,
+ IDocumentSkeletonGlyph,
+ ITextRangeWithStyle,
+} from '@univerjs/engine-render';
import type { Observable } from 'rxjs';
import { Disposable, ICommandService, Inject, IUniverInstanceService, UniverInstanceType } from '@univerjs/core';
import { DocSelectionManagerService, DocSkeletonManagerService } from '@univerjs/docs';
-import { DocCanvasPopManagerService, DocEventManagerService, getAnchorBounding, NodePositionConvertToCursor } from '@univerjs/docs-ui';
+import {
+ DocCanvasPopManagerService,
+ DocEventManagerService,
+ getAnchorBounding,
+ NodePositionConvertToCursor,
+} from '@univerjs/docs-ui';
import { IRenderManagerService } from '@univerjs/engine-render';
import { BehaviorSubject, combineLatest, distinctUntilChanged, map, tap } from 'rxjs';
import { DeleteSearchKeyCommand } from '../commands/commands/doc-quick-insert.command';
diff --git a/packages/docs-thread-comment-ui/src/commands/operations/__tests__/show-comment-panel.operation.spec.ts b/packages/docs-thread-comment-ui/src/commands/operations/__tests__/show-comment-panel.operation.spec.ts
index c5b3a32b70..ab5fdd258f 100644
--- a/packages/docs-thread-comment-ui/src/commands/operations/__tests__/show-comment-panel.operation.spec.ts
+++ b/packages/docs-thread-comment-ui/src/commands/operations/__tests__/show-comment-panel.operation.spec.ts
@@ -17,7 +17,14 @@
import type { DocumentDataModel, IDisposable, IDocumentData } from '@univerjs/core';
import type { IRender } from '@univerjs/engine-render';
import type { ISidebarMethodOptions } from '@univerjs/ui';
-import { Disposable, ICommandService, IUniverInstanceService, toDisposable, Univer, UniverInstanceType } from '@univerjs/core';
+import {
+ Disposable,
+ ICommandService,
+ IUniverInstanceService,
+ toDisposable,
+ Univer,
+ UniverInstanceType,
+} from '@univerjs/core';
import { DocSelectionManagerService } from '@univerjs/docs';
import { IRenderManagerService } from '@univerjs/engine-render';
import { ThreadCommentPanelService } from '@univerjs/thread-comment-ui';
@@ -26,7 +33,11 @@ import { Subject } from 'rxjs';
import { afterEach, beforeEach, describe, expect, it } from 'vitest';
import { DEFAULT_DOC_SUBUNIT_ID, DOCS_THREAD_COMMENT_PANEL } from '../../../common/const';
import { DocThreadCommentService } from '../../../services/doc-thread-comment.service';
-import { ShowCommentPanelOperation, StartAddCommentOperation, ToggleCommentPanelOperation } from '../show-comment-panel.operation';
+import {
+ ShowCommentPanelOperation,
+ StartAddCommentOperation,
+ ToggleCommentPanelOperation,
+} from '../show-comment-panel.operation';
const unitId = 'doc-thread-comment-operation-doc';
diff --git a/packages/docs-thread-comment-ui/src/controllers/doc-thread-comment-selection.controller.ts b/packages/docs-thread-comment-ui/src/controllers/doc-thread-comment-selection.controller.ts
index ebf59c2df1..b0c8863ca7 100644
--- a/packages/docs-thread-comment-ui/src/controllers/doc-thread-comment-selection.controller.ts
+++ b/packages/docs-thread-comment-ui/src/controllers/doc-thread-comment-selection.controller.ts
@@ -17,7 +17,14 @@
import type { DocumentDataModel, ITextRange } from '@univerjs/core';
import type { ISetTextSelectionsOperationParams } from '@univerjs/docs';
import type { ITextRangeWithStyle } from '@univerjs/engine-render';
-import { Disposable, ICommandService, Inject, isInternalEditorID, IUniverInstanceService, UniverInstanceType } from '@univerjs/core';
+import {
+ Disposable,
+ ICommandService,
+ Inject,
+ isInternalEditorID,
+ IUniverInstanceService,
+ UniverInstanceType,
+} from '@univerjs/core';
import { SetTextSelectionsOperation } from '@univerjs/docs';
import { DocBackScrollRenderController } from '@univerjs/docs-ui';
import { IRenderManagerService } from '@univerjs/engine-render';
diff --git a/packages/docs-thread-comment-ui/src/controllers/render-controllers/render.controller.ts b/packages/docs-thread-comment-ui/src/controllers/render-controllers/render.controller.ts
index 0925fbf2d2..95bbe32b58 100644
--- a/packages/docs-thread-comment-ui/src/controllers/render-controllers/render.controller.ts
+++ b/packages/docs-thread-comment-ui/src/controllers/render-controllers/render.controller.ts
@@ -17,7 +17,14 @@
import type { DocumentDataModel } from '@univerjs/core';
import type { IRichTextEditingMutationParams } from '@univerjs/docs';
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
-import { CustomDecorationType, Disposable, ICommandService, Inject, IUniverInstanceService, UniverInstanceType } from '@univerjs/core';
+import {
+ CustomDecorationType,
+ Disposable,
+ ICommandService,
+ Inject,
+ IUniverInstanceService,
+ UniverInstanceType,
+} from '@univerjs/core';
import { DOC_INTERCEPTOR_POINT, DocInterceptorService, RichTextEditingMutation } from '@univerjs/docs';
import { DocRenderController } from '@univerjs/docs-ui';
import { ThreadCommentModel } from '@univerjs/thread-comment';
diff --git a/packages/docs-ui/src/basics/table.ts b/packages/docs-ui/src/basics/table.ts
index 2119f5cb0a..a27c6c298e 100644
--- a/packages/docs-ui/src/basics/table.ts
+++ b/packages/docs-ui/src/basics/table.ts
@@ -15,7 +15,13 @@
*/
import type { Nullable } from '@univerjs/core';
-import type { IDocumentSkeletonCached, IDocumentSkeletonLine, IDocumentSkeletonPage, IDocumentSkeletonRow, IDocumentSkeletonTable } from '@univerjs/engine-render';
+import type {
+ IDocumentSkeletonCached,
+ IDocumentSkeletonLine,
+ IDocumentSkeletonPage,
+ IDocumentSkeletonRow,
+ IDocumentSkeletonTable,
+} from '@univerjs/engine-render';
import { DocumentSkeletonPageType, getLastColumn, getLastLine, lineIterator } from '@univerjs/engine-render';
export function firstLineInTable(table: IDocumentSkeletonTable) {
diff --git a/packages/docs-ui/src/commands/commands/__tests__/create-command-test-bed.ts b/packages/docs-ui/src/commands/commands/__tests__/create-command-test-bed.ts
index e82b2b9011..b4d405ec70 100644
--- a/packages/docs-ui/src/commands/commands/__tests__/create-command-test-bed.ts
+++ b/packages/docs-ui/src/commands/commands/__tests__/create-command-test-bed.ts
@@ -33,7 +33,12 @@ import {
Univer,
UniverInstanceType,
} from '@univerjs/core';
-import { DocSelectionManagerService, DocSkeletonManagerService, DocStateChangeManagerService, DocStateEmitService } from '@univerjs/docs';
+import {
+ DocSelectionManagerService,
+ DocSkeletonManagerService,
+ DocStateChangeManagerService,
+ DocStateEmitService,
+} from '@univerjs/docs';
import { DocumentViewModel, IRenderManagerService, RenderManagerService } from '@univerjs/engine-render';
import { BehaviorSubject, takeUntil } from 'rxjs';
import { DocIMEInputManagerService } from '../../../services/doc-ime-input-manager.service';
diff --git a/packages/docs-ui/src/commands/commands/doc-delete.command.ts b/packages/docs-ui/src/commands/commands/doc-delete.command.ts
index 25b5b03004..f6ac29c33d 100644
--- a/packages/docs-ui/src/commands/commands/doc-delete.command.ts
+++ b/packages/docs-ui/src/commands/commands/doc-delete.command.ts
@@ -36,7 +36,12 @@ import {
UniverInstanceType,
UpdateDocsAttributeType,
} from '@univerjs/core';
-import { DeleteTextCommand, DocSelectionManagerService, RichTextEditingMutation, UpdateTextCommand } from '@univerjs/docs';
+import {
+ DeleteTextCommand,
+ DocSelectionManagerService,
+ RichTextEditingMutation,
+ UpdateTextCommand,
+} from '@univerjs/docs';
import { getParagraphByGlyph, hasListGlyph, isFirstGlyph, isIndentByGlyph } from '@univerjs/engine-render';
import { DocAutoFormatService } from '../../services/doc-auto-format.service';
import { getCommandSkeleton } from '../util';
diff --git a/packages/docs-ui/src/commands/commands/doc-header-footer.command.ts b/packages/docs-ui/src/commands/commands/doc-header-footer.command.ts
index 2632a83242..3de872fa9c 100644
--- a/packages/docs-ui/src/commands/commands/doc-header-footer.command.ts
+++ b/packages/docs-ui/src/commands/commands/doc-header-footer.command.ts
@@ -17,7 +17,15 @@
import type { DocumentDataModel, ICommand, IDocumentBody, IMutationInfo, JSONXActions } from '@univerjs/core';
import type { IRichTextEditingMutationParams } from '@univerjs/docs';
import type { ITextRangeWithStyle } from '@univerjs/engine-render';
-import { BooleanNumber, CommandType, createParagraphId, generateRandomId, ICommandService, IUniverInstanceService, JSONX } from '@univerjs/core';
+import {
+ BooleanNumber,
+ CommandType,
+ createParagraphId,
+ generateRandomId,
+ ICommandService,
+ IUniverInstanceService,
+ JSONX,
+} from '@univerjs/core';
import { DocSelectionManagerService, DocSkeletonManagerService, RichTextEditingMutation } from '@univerjs/docs';
import { DocumentEditArea, IRenderManagerService } from '@univerjs/engine-render';
import { findFirstCursorOffset } from '../../basics/selection';
diff --git a/packages/docs-ui/src/commands/commands/doc-page-setup.command.ts b/packages/docs-ui/src/commands/commands/doc-page-setup.command.ts
index 5d5ac76d61..bff50f4ef3 100644
--- a/packages/docs-ui/src/commands/commands/doc-page-setup.command.ts
+++ b/packages/docs-ui/src/commands/commands/doc-page-setup.command.ts
@@ -14,9 +14,27 @@
* limitations under the License.
*/
-import type { DocumentDataModel, ICommand, ICommandInfo, IDocumentStyle, ISize, ITable, ITables, JSONXActions, PageOrientType } from '@univerjs/core';
+import type {
+ DocumentDataModel,
+ ICommand,
+ ICommandInfo,
+ IDocumentStyle,
+ ISize,
+ ITable,
+ ITables,
+ JSONXActions,
+ PageOrientType,
+} from '@univerjs/core';
import type { IRichTextEditingMutationParams } from '@univerjs/docs';
-import { CommandType, DocumentFlavor, ICommandService, IUniverInstanceService, JSONX, MODERN_DOCUMENT_DEFAULT_MARGIN, UniverInstanceType } from '@univerjs/core';
+import {
+ CommandType,
+ DocumentFlavor,
+ ICommandService,
+ IUniverInstanceService,
+ JSONX,
+ MODERN_DOCUMENT_DEFAULT_MARGIN,
+ UniverInstanceType,
+} from '@univerjs/core';
import { RichTextEditingMutation } from '@univerjs/docs';
export interface IDocPageSetupCommandParams {
diff --git a/packages/docs-ui/src/commands/commands/replace-content.command.ts b/packages/docs-ui/src/commands/commands/replace-content.command.ts
index ea17608312..a29ba05975 100644
--- a/packages/docs-ui/src/commands/commands/replace-content.command.ts
+++ b/packages/docs-ui/src/commands/commands/replace-content.command.ts
@@ -14,10 +14,31 @@
* limitations under the License.
*/
-import type { DocumentDataModel, ICommand, IDocumentBody, IDocumentData, IMutationInfo, ITextRange, JSONXActions } from '@univerjs/core';
+import type {
+ DocumentDataModel,
+ ICommand,
+ IDocumentBody,
+ IDocumentData,
+ IMutationInfo,
+ ITextRange,
+ JSONXActions,
+} from '@univerjs/core';
import type { IRichTextEditingMutationParams } from '@univerjs/docs';
import type { ITextRangeWithStyle } from '@univerjs/engine-render';
-import { BuildTextUtils, CommandType, getRichTextEditPath, ICommandService, IUndoRedoService, IUniverInstanceService, JSONX, TextX, TextXActionType, ThemeService, Tools, UniverInstanceType } from '@univerjs/core';
+import {
+ BuildTextUtils,
+ CommandType,
+ getRichTextEditPath,
+ ICommandService,
+ IUndoRedoService,
+ IUniverInstanceService,
+ JSONX,
+ TextX,
+ TextXActionType,
+ ThemeService,
+ Tools,
+ UniverInstanceType,
+} from '@univerjs/core';
import { DocSelectionManagerService, RichTextEditingMutation } from '@univerjs/docs';
export interface IReplaceSnapshotCommandParams {
diff --git a/packages/docs-ui/src/commands/commands/switch-doc-mode.command.ts b/packages/docs-ui/src/commands/commands/switch-doc-mode.command.ts
index 9ef101bfec..c7ca7eaa45 100644
--- a/packages/docs-ui/src/commands/commands/switch-doc-mode.command.ts
+++ b/packages/docs-ui/src/commands/commands/switch-doc-mode.command.ts
@@ -16,7 +16,14 @@
import type { ICommand, ICommandInfo, JSONXActions } from '@univerjs/core';
import type { IRichTextEditingMutationParams } from '@univerjs/docs';
-import { CommandType, DocumentFlavor, ICommandService, IUniverInstanceService, JSONX, ObjectRelativeFromV } from '@univerjs/core';
+import {
+ CommandType,
+ DocumentFlavor,
+ ICommandService,
+ IUniverInstanceService,
+ JSONX,
+ ObjectRelativeFromV,
+} from '@univerjs/core';
import { DocSelectionManagerService, DocSkeletonManagerService, RichTextEditingMutation } from '@univerjs/docs';
import { IRenderManagerService } from '@univerjs/engine-render';
import { DocSelectionRenderService } from '../../services/selection/doc-selection-render.service';
diff --git a/packages/docs-ui/src/commands/commands/table/doc-table-insert.command.ts b/packages/docs-ui/src/commands/commands/table/doc-table-insert.command.ts
index 02880fa6b1..23d0e7ed41 100644
--- a/packages/docs-ui/src/commands/commands/table/doc-table-insert.command.ts
+++ b/packages/docs-ui/src/commands/commands/table/doc-table-insert.command.ts
@@ -17,10 +17,31 @@
import type { DocumentDataModel, ICommand, IMutationInfo, JSONXActions } from '@univerjs/core';
import type { IRichTextEditingMutationParams } from '@univerjs/docs';
import type { ITextRangeWithStyle } from '@univerjs/engine-render';
-import { CommandType, getRichTextEditPath, ICommandService, IUniverInstanceService, JSONX, TextX, TextXActionType, UniverInstanceType } from '@univerjs/core';
+import {
+ CommandType,
+ getRichTextEditPath,
+ ICommandService,
+ IUniverInstanceService,
+ JSONX,
+ TextX,
+ TextXActionType,
+ UniverInstanceType,
+} from '@univerjs/core';
import { DocSelectionManagerService, RichTextEditingMutation } from '@univerjs/docs';
import { getCommandSkeleton } from '../../util';
-import { getColumnWidths, getEmptyTableCell, getEmptyTableRow, getInsertColumnActionsParams, getInsertColumnBody, getInsertRowActionsParams, getInsertRowBody, getRangeInfoFromRanges, getTableColumn, INSERT_COLUMN_POSITION, INSERT_ROW_POSITION } from './table';
+import {
+ getColumnWidths,
+ getEmptyTableCell,
+ getEmptyTableRow,
+ getInsertColumnActionsParams,
+ getInsertColumnBody,
+ getInsertRowActionsParams,
+ getInsertRowBody,
+ getRangeInfoFromRanges,
+ getTableColumn,
+ INSERT_COLUMN_POSITION,
+ INSERT_ROW_POSITION,
+} from './table';
// Insert rows and columns are in this file.
diff --git a/packages/docs-ui/src/commands/operations/open-page-setting.operation.ts b/packages/docs-ui/src/commands/operations/open-page-setting.operation.ts
index 107e6b8655..6fa42fc624 100644
--- a/packages/docs-ui/src/commands/operations/open-page-setting.operation.ts
+++ b/packages/docs-ui/src/commands/operations/open-page-setting.operation.ts
@@ -17,7 +17,15 @@
import type { ICommand, ModernDocumentWidthMode, PaperType } from '@univerjs/core';
import type { IConfirmPartMethodOptions } from '@univerjs/ui';
import type { IDocPageSetupCommandParams } from '../commands/doc-page-setup.command';
-import { CommandType, DocumentFlavor, ICommandService, IConfirmService, LocaleService, MODERN_DOCUMENT_WIDTH, PAGE_SIZE } from '@univerjs/core';
+import {
+ CommandType,
+ DocumentFlavor,
+ ICommandService,
+ IConfirmService,
+ LocaleService,
+ MODERN_DOCUMENT_WIDTH,
+ PAGE_SIZE,
+} from '@univerjs/core';
import { PAGE_SETTING_COMPONENT_ID } from '../../views/PageSettings';
import { DocPageSetupCommand } from '../commands/doc-page-setup.command';
diff --git a/packages/docs-ui/src/controllers/doc-auto-format.controller.ts b/packages/docs-ui/src/controllers/doc-auto-format.controller.ts
index 4c461d1966..a853d4d7a0 100644
--- a/packages/docs-ui/src/controllers/doc-auto-format.controller.ts
+++ b/packages/docs-ui/src/controllers/doc-auto-format.controller.ts
@@ -21,7 +21,12 @@ import { DocSkeletonManagerService } from '@univerjs/docs';
import { IRenderManagerService } from '@univerjs/engine-render';
import { AfterSpaceCommand, EnterCommand, TabCommand } from '../commands/commands/auto-format.command';
import { BreakLineCommand } from '../commands/commands/break-line.command';
-import { ChangeListNestingLevelCommand, ChangeListNestingLevelType, ListOperationCommand, QuickListCommand } from '../commands/commands/list.command';
+import {
+ ChangeListNestingLevelCommand,
+ ChangeListNestingLevelType,
+ ListOperationCommand,
+ QuickListCommand,
+} from '../commands/commands/list.command';
import { QUICK_HEADING_MAP, QuickHeadingCommand } from '../commands/commands/set-heading.command';
import { DocTableTabCommand } from '../commands/commands/table/doc-table-tab.command';
import { DocAutoFormatService } from '../services/doc-auto-format.service';
diff --git a/packages/docs-ui/src/controllers/render-controllers/__tests__/doc-paragraph-placeholder.render-controller.spec.ts b/packages/docs-ui/src/controllers/render-controllers/__tests__/doc-paragraph-placeholder.render-controller.spec.ts
index e77b164bb7..e6e032a4e4 100644
--- a/packages/docs-ui/src/controllers/render-controllers/__tests__/doc-paragraph-placeholder.render-controller.spec.ts
+++ b/packages/docs-ui/src/controllers/render-controllers/__tests__/doc-paragraph-placeholder.render-controller.spec.ts
@@ -19,7 +19,10 @@ import type { IDocumentSkeletonLine, IDocumentSkeletonPage } from '@univerjs/eng
import { DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY, DocumentFlavor, NamedStyleType } from '@univerjs/core';
import { DocumentSkeletonPageType, GlyphType, LineType } from '@univerjs/engine-render';
import { describe, expect, it } from 'vitest';
-import { getParagraphPlaceholderLayouts, shouldRenderParagraphPlaceholder } from '../doc-paragraph-placeholder.render-controller';
+import {
+ getParagraphPlaceholderLayouts,
+ shouldRenderParagraphPlaceholder,
+} from '../doc-paragraph-placeholder.render-controller';
const locale = {
heading1: '标题1',
diff --git a/packages/docs-ui/src/controllers/render-controllers/doc-editor-bridge.controller.ts b/packages/docs-ui/src/controllers/render-controllers/doc-editor-bridge.controller.ts
index 91e273db36..23305063c1 100644
--- a/packages/docs-ui/src/controllers/render-controllers/doc-editor-bridge.controller.ts
+++ b/packages/docs-ui/src/controllers/render-controllers/doc-editor-bridge.controller.ts
@@ -17,7 +17,15 @@
import type { DocumentDataModel, ICommandInfo, Nullable } from '@univerjs/core';
import type { IRichTextEditingMutationParams } from '@univerjs/docs';
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
-import { checkForSubstrings, Disposable, DisposableCollection, ICommandService, Inject, IUniverInstanceService, UniverInstanceType } from '@univerjs/core';
+import {
+ checkForSubstrings,
+ Disposable,
+ DisposableCollection,
+ ICommandService,
+ Inject,
+ IUniverInstanceService,
+ UniverInstanceType,
+} from '@univerjs/core';
import { DocSkeletonManagerService, RichTextEditingMutation } from '@univerjs/docs';
import { IRenderManagerService } from '@univerjs/engine-render';
import { fromEvent } from 'rxjs';
diff --git a/packages/docs-ui/src/controllers/render-controllers/doc-paragraph-placeholder.render-controller.ts b/packages/docs-ui/src/controllers/render-controllers/doc-paragraph-placeholder.render-controller.ts
index b080190a74..b3d0021eb0 100644
--- a/packages/docs-ui/src/controllers/render-controllers/doc-paragraph-placeholder.render-controller.ts
+++ b/packages/docs-ui/src/controllers/render-controllers/doc-paragraph-placeholder.render-controller.ts
@@ -15,9 +15,29 @@
*/
import type { DocumentDataModel, IDocumentBody, IParagraph, Nullable } from '@univerjs/core';
-import type { Documents, IDocumentSkeletonColumn, IDocumentSkeletonLine, IDocumentSkeletonPage, IDocumentSkeletonSection, IPageRenderConfig, IRenderContext, IRenderModule, UniverRenderingContext } from '@univerjs/engine-render';
+import type {
+ Documents,
+ IDocumentSkeletonColumn,
+ IDocumentSkeletonLine,
+ IDocumentSkeletonPage,
+ IDocumentSkeletonSection,
+ IPageRenderConfig,
+ IRenderContext,
+ IRenderModule,
+ UniverRenderingContext,
+} from '@univerjs/engine-render';
import type { IUniverDocsUIConfig } from '../../config/config';
-import { DataStreamTreeTokenType, Disposable, DocumentFlavor, IConfigService, Inject, isInternalEditorID, LocaleService, NAMED_STYLE_MAP, NamedStyleType } from '@univerjs/core';
+import {
+ DataStreamTreeTokenType,
+ Disposable,
+ DocumentFlavor,
+ IConfigService,
+ Inject,
+ isInternalEditorID,
+ LocaleService,
+ NAMED_STYLE_MAP,
+ NamedStyleType,
+} from '@univerjs/core';
import { DocSelectionManagerService } from '@univerjs/docs';
import { DOCS_UI_PLUGIN_CONFIG_KEY } from '../../config/config';
diff --git a/packages/docs-ui/src/menu/paragraph-menu.ts b/packages/docs-ui/src/menu/paragraph-menu.ts
index a000a0376f..ea8c724205 100644
--- a/packages/docs-ui/src/menu/paragraph-menu.ts
+++ b/packages/docs-ui/src/menu/paragraph-menu.ts
@@ -20,16 +20,51 @@ import { ICommandService, NamedStyleType, ThemeService, UniverInstanceType } fro
import { SetTextSelectionsOperation } from '@univerjs/docs';
import { getMenuHiddenObservable, MenuItemType } from '@univerjs/ui';
import { Observable } from 'rxjs';
-import { DocCopyCommand, DocCopyCurrentParagraphCommand, DocCutCurrentParagraphCommand, DocPasteCommand } from '../commands/commands/clipboard.command';
+import {
+ DocCopyCommand,
+ DocCopyCurrentParagraphCommand,
+ DocCutCurrentParagraphCommand,
+ DocPasteCommand,
+} from '../commands/commands/clipboard.command';
import { DeleteCurrentParagraphCommand } from '../commands/commands/doc-delete.command';
-import { HorizontalLineCommand, InsertHorizontalLineBellowCommand } from '../commands/commands/doc-horizontal-line.command';
-import { ResetInlineFormatTextBackgroundColorCommand, ResetInlineFormatTextColorCommand, SetInlineFormatFontSizeCommand, SetInlineFormatTextBackgroundColorCommand, SetInlineFormatTextColorCommand } from '../commands/commands/inline-format.command';
-import { BulletListCommand, CheckListCommand, InsertBulletListBellowCommand, InsertCheckListBellowCommand, InsertOrderListBellowCommand, OrderListCommand } from '../commands/commands/list.command';
-import { H1HeadingCommand, H2HeadingCommand, H3HeadingCommand, H4HeadingCommand, H5HeadingCommand, NormalTextHeadingCommand, SubtitleHeadingCommand, TitleHeadingCommand } from '../commands/commands/set-heading.command';
+import {
+ HorizontalLineCommand,
+ InsertHorizontalLineBellowCommand,
+} from '../commands/commands/doc-horizontal-line.command';
+import {
+ ResetInlineFormatTextBackgroundColorCommand,
+ ResetInlineFormatTextColorCommand,
+ SetInlineFormatFontSizeCommand,
+ SetInlineFormatTextBackgroundColorCommand,
+ SetInlineFormatTextColorCommand,
+} from '../commands/commands/inline-format.command';
+import {
+ BulletListCommand,
+ CheckListCommand,
+ InsertBulletListBellowCommand,
+ InsertCheckListBellowCommand,
+ InsertOrderListBellowCommand,
+ OrderListCommand,
+} from '../commands/commands/list.command';
+import {
+ H1HeadingCommand,
+ H2HeadingCommand,
+ H3HeadingCommand,
+ H4HeadingCommand,
+ H5HeadingCommand,
+ NormalTextHeadingCommand,
+ SubtitleHeadingCommand,
+ TitleHeadingCommand,
+} from '../commands/commands/set-heading.command';
import { DocTableDeleteTableCommand } from '../commands/commands/table/doc-table-delete.command';
import { DocCreateTableOperation } from '../commands/operations/doc-create-table.operation';
import { getHighlightBackgroundColor } from '../views/paragraph-menu/theme-color';
-import { BackgroundColorSelectorMenuItemFactory, disableMenuWhenNoDocRange, getParagraphStyleAtCursor, TextColorSelectorMenuItemFactory } from './menu';
+import {
+ BackgroundColorSelectorMenuItemFactory,
+ disableMenuWhenNoDocRange,
+ getParagraphStyleAtCursor,
+ TextColorSelectorMenuItemFactory,
+} from './menu';
export const TEXT_COLORS = ['#FE4B4B', '#FF8C51', '#A4DC16', '#2DAEFF', '#3A60F7', '#9E6DE3', '#F248A6'];
export const TEXT_COLOR_SWATCH_ICONS = [
diff --git a/packages/docs-ui/src/services/clipboard/udm-to-html/__tests__/convertor.spec.ts b/packages/docs-ui/src/services/clipboard/udm-to-html/__tests__/convertor.spec.ts
index 0cf8a812a3..3f5c81d44f 100644
--- a/packages/docs-ui/src/services/clipboard/udm-to-html/__tests__/convertor.spec.ts
+++ b/packages/docs-ui/src/services/clipboard/udm-to-html/__tests__/convertor.spec.ts
@@ -15,7 +15,14 @@
*/
import type { IDocumentBody } from '@univerjs/core';
-import { BooleanNumber, DataStreamTreeTokenType, DocumentBlockRangeType, NamedStyleType, TableRowHeightRule, TableSizeType } from '@univerjs/core';
+import {
+ BooleanNumber,
+ DataStreamTreeTokenType,
+ DocumentBlockRangeType,
+ NamedStyleType,
+ TableRowHeightRule,
+ TableSizeType,
+} from '@univerjs/core';
import { describe, expect, it } from 'vitest';
import { convertBodyToHtml, covertTextRunToHtml, getBodySliceHtml, UDMToHtmlService } from '../convertor';
diff --git a/packages/docs-ui/src/services/doc-paragraph-menu.service.ts b/packages/docs-ui/src/services/doc-paragraph-menu.service.ts
index 7a6bdce9b9..3d93a50d25 100644
--- a/packages/docs-ui/src/services/doc-paragraph-menu.service.ts
+++ b/packages/docs-ui/src/services/doc-paragraph-menu.service.ts
@@ -18,14 +18,30 @@ import type { DocumentDataModel, ICustomBlock, ICustomTable, IDocumentBlockRange
import type { IBoundRectNoAngle, IRenderContext, IRenderModule, ITextRangeWithStyle } from '@univerjs/engine-render';
import type { IMutiPageParagraphBound, ITableBound, ITableParagraphBound } from './doc-event-manager.service';
import type { IEditorInputConfig } from './selection/doc-selection-render.service';
-import { BlockType, DataStreamTreeTokenType, Disposable, DOC_RANGE_TYPE, Inject, isInternalEditorID, PresetListType } from '@univerjs/core';
+import {
+ BlockType,
+ DataStreamTreeTokenType,
+ Disposable,
+ DOC_RANGE_TYPE,
+ Inject,
+ isInternalEditorID,
+ PresetListType,
+} from '@univerjs/core';
import { DocSelectionManagerService, DocSkeletonManagerService } from '@univerjs/docs';
import { DocumentEditArea } from '@univerjs/engine-render';
import { BehaviorSubject, combineLatest, first, throttleTime } from 'rxjs';
import { VIEWPORT_KEY } from '../basics/docs-view-key';
-import { DOC_PARAGRAPH_MENU_COMPONENT_KEY, DOC_TABLE_BLOCK_MENU_COMPONENT_KEY } from '../views/paragraph-menu/component-keys';
+import {
+ DOC_PARAGRAPH_MENU_COMPONENT_KEY,
+ DOC_TABLE_BLOCK_MENU_COMPONENT_KEY,
+} from '../views/paragraph-menu/component-keys';
import { DocEventManagerService } from './doc-event-manager.service';
-import { calcDocRangePositions, DocCanvasPopManagerService, transformBound2OffsetBound, transformOffset2Bound } from './doc-popup-manager.service';
+import {
+ calcDocRangePositions,
+ DocCanvasPopManagerService,
+ transformBound2OffsetBound,
+ transformOffset2Bound,
+} from './doc-popup-manager.service';
import { DocFloatMenuService } from './float-menu.service';
import { DocSelectionRenderService } from './selection/doc-selection-render.service';
diff --git a/packages/docs-ui/src/services/editor/editor.ts b/packages/docs-ui/src/services/editor/editor.ts
index 51561a8126..7262f5065f 100644
--- a/packages/docs-ui/src/services/editor/editor.ts
+++ b/packages/docs-ui/src/services/editor/editor.ts
@@ -14,9 +14,24 @@
* limitations under the License.
*/
-import type { DocumentDataModel, ICommandService, IDocumentData, IDocumentStyle, Injector, IPosition, IUndoRedoService, IUniverInstanceService, Nullable } from '@univerjs/core';
+import type {
+ DocumentDataModel,
+ ICommandService,
+ IDocumentData,
+ IDocumentStyle,
+ Injector,
+ IPosition,
+ IUndoRedoService,
+ IUniverInstanceService,
+ Nullable,
+} from '@univerjs/core';
import type { DocSelectionManagerService } from '@univerjs/docs';
-import type { IDocSelectionInnerParam, IRender, ISuccinctDocRangeParam, ITextRangeWithStyle } from '@univerjs/engine-render';
+import type {
+ IDocSelectionInnerParam,
+ IRender,
+ ISuccinctDocRangeParam,
+ ITextRangeWithStyle,
+} from '@univerjs/engine-render';
import type { Observable } from 'rxjs';
import type { IEditorInputConfig } from '../selection/doc-selection-render.service';
import { createParagraphId, Disposable, isInternalEditorID, UniverInstanceType } from '@univerjs/core';
diff --git a/packages/docs-ui/src/services/float-menu.service.ts b/packages/docs-ui/src/services/float-menu.service.ts
index 373e4c3b3b..1d66bcbe20 100644
--- a/packages/docs-ui/src/services/float-menu.service.ts
+++ b/packages/docs-ui/src/services/float-menu.service.ts
@@ -16,7 +16,17 @@
import type { DocumentDataModel, IDisposable, ITextRangeParam, Nullable } from '@univerjs/core';
import type { INodePosition, IRenderContext, IRenderModule, ITextRangeWithStyle } from '@univerjs/engine-render';
-import { DataStreamTreeTokenType, deepCompare, Disposable, DocumentBlockRangeType, Inject, isInternalEditorID, IUniverInstanceService, toDisposable, UniverInstanceType } from '@univerjs/core';
+import {
+ DataStreamTreeTokenType,
+ deepCompare,
+ Disposable,
+ DocumentBlockRangeType,
+ Inject,
+ isInternalEditorID,
+ IUniverInstanceService,
+ toDisposable,
+ UniverInstanceType,
+} from '@univerjs/core';
import { DocSelectionManagerService } from '@univerjs/docs';
import { ComponentManager } from '@univerjs/ui';
import { FloatToolbar } from '../views/float-toolbar/FloatToolbar';
diff --git a/packages/docs-ui/src/services/selection/__tests__/convert-text-range.spec.ts b/packages/docs-ui/src/services/selection/__tests__/convert-text-range.spec.ts
index a51d7e3572..7601cca9b5 100644
--- a/packages/docs-ui/src/services/selection/__tests__/convert-text-range.spec.ts
+++ b/packages/docs-ui/src/services/selection/__tests__/convert-text-range.spec.ts
@@ -17,7 +17,13 @@
import type { INodePosition } from '@univerjs/engine-render';
import { DocumentSkeletonPageType, setDocsTableRenderViewportProvider } from '@univerjs/engine-render';
import { afterEach, describe, expect, it } from 'vitest';
-import { compareNodePosition, compareNodePositionLogic, getOneTextSelectionRange, NodePositionConvertToCursor, pushToPoints } from '../convert-text-range';
+import {
+ compareNodePosition,
+ compareNodePositionLogic,
+ getOneTextSelectionRange,
+ NodePositionConvertToCursor,
+ pushToPoints,
+} from '../convert-text-range';
import { getAnchorBounding, getLineBounding } from '../text-range';
describe('selection convert text range helpers', () => {
diff --git a/packages/docs-ui/src/services/selection/convert-text-range.ts b/packages/docs-ui/src/services/selection/convert-text-range.ts
index dede9506f7..5c65d6af38 100644
--- a/packages/docs-ui/src/services/selection/convert-text-range.ts
+++ b/packages/docs-ui/src/services/selection/convert-text-range.ts
@@ -29,7 +29,14 @@ import type {
INodePosition,
IPoint,
} from '@univerjs/engine-render';
-import { DocumentSkeletonPageType, getDocsTableRenderViewport, getPageFromPath, getTableIdAndSliceIndex, GlyphType, Liquid } from '@univerjs/engine-render';
+import {
+ DocumentSkeletonPageType,
+ getDocsTableRenderViewport,
+ getPageFromPath,
+ getTableIdAndSliceIndex,
+ GlyphType,
+ Liquid,
+} from '@univerjs/engine-render';
export enum NodePositionStateType {
NORMAL,
diff --git a/packages/docs-ui/src/services/selection/text-range.ts b/packages/docs-ui/src/services/selection/text-range.ts
index 0c5265c5bb..197a9681b9 100644
--- a/packages/docs-ui/src/services/selection/text-range.ts
+++ b/packages/docs-ui/src/services/selection/text-range.ts
@@ -15,7 +15,16 @@
*/
import type { ITextRange, Nullable } from '@univerjs/core';
-import type { Documents, DocumentSkeleton, IDocumentSkeletonGlyph, INodePosition, IPoint, ISuccinctDocRangeParam, ITextSelectionStyle, Scene } from '@univerjs/engine-render';
+import type {
+ Documents,
+ DocumentSkeleton,
+ IDocumentSkeletonGlyph,
+ INodePosition,
+ IPoint,
+ ISuccinctDocRangeParam,
+ ITextSelectionStyle,
+ Scene,
+} from '@univerjs/engine-render';
import type { IDocRange } from './range-interface';
import { BooleanNumber, COLORS, DOC_RANGE_TYPE, generateRandomId, RANGE_DIRECTION } from '@univerjs/core';
import { getColor, NORMAL_TEXT_SELECTION_PLUGIN_STYLE, Rect, RegularPolygon } from '@univerjs/engine-render';
diff --git a/packages/docs-ui/src/views/DocSideMenu.tsx b/packages/docs-ui/src/views/DocSideMenu.tsx
index acb03a7e36..4102f4d626 100644
--- a/packages/docs-ui/src/views/DocSideMenu.tsx
+++ b/packages/docs-ui/src/views/DocSideMenu.tsx
@@ -19,7 +19,16 @@ import type { IRichTextEditingMutationParams } from '@univerjs/docs';
import type { IUniverDocsUIConfig } from '../config/config';
import type { IMutiPageParagraphBound } from '../services/doc-event-manager.service';
import type { ISideMenuItem } from './SideMenu';
-import { debounce, fromEventSubject, getPlainText, ICommandService, isInternalEditorID, IUniverInstanceService, NamedStyleType, UniverInstanceType } from '@univerjs/core';
+import {
+ debounce,
+ fromEventSubject,
+ getPlainText,
+ ICommandService,
+ isInternalEditorID,
+ IUniverInstanceService,
+ NamedStyleType,
+ UniverInstanceType,
+} from '@univerjs/core';
import { RichTextEditingMutation } from '@univerjs/docs';
import { IRenderManagerService } from '@univerjs/engine-render';
import { useConfigValue, useDependency, useEvent, useObservable } from '@univerjs/ui';
diff --git a/packages/docs-ui/src/views/ParagraphMenu.tsx b/packages/docs-ui/src/views/ParagraphMenu.tsx
index d39a0ddce4..5eaa50753c 100644
--- a/packages/docs-ui/src/views/ParagraphMenu.tsx
+++ b/packages/docs-ui/src/views/ParagraphMenu.tsx
@@ -20,23 +20,66 @@ import type { IPopup, IValueOption, RectPopupDirection } from '@univerjs/ui';
import type { CSSProperties } from 'react';
import type { IMutiPageParagraphBound } from '../services/doc-event-manager.service';
import type { IDocBlockMenuTarget } from '../services/doc-paragraph-menu.service';
-import { DataStreamTreeTokenType, DocumentBlockRangeType, ICommandService, IUniverInstanceService, JSONX, NamedStyleType, SliceBodyType, Tools, UniverInstanceType } from '@univerjs/core';
+import {
+ DataStreamTreeTokenType,
+ DocumentBlockRangeType,
+ ICommandService,
+ IUniverInstanceService,
+ JSONX,
+ NamedStyleType,
+ SliceBodyType,
+ Tools,
+ UniverInstanceType,
+} from '@univerjs/core';
import { clsx } from '@univerjs/design';
import { DocContentInsertService, DocSelectionManagerService, RichTextEditingMutation } from '@univerjs/docs';
import { IRenderManagerService } from '@univerjs/engine-render';
-import { ContextMenuPanel, IClipboardInterfaceService, IconManager, ILayoutService, RectPopup, useDependency, useObservable } from '@univerjs/ui';
+import {
+ ContextMenuPanel,
+ IClipboardInterfaceService,
+ IconManager,
+ ILayoutService,
+ RectPopup,
+ useDependency,
+ useObservable,
+} from '@univerjs/ui';
import { useEffect, useMemo, useRef, useState } from 'react';
import { BehaviorSubject } from 'rxjs';
import { BreakLineCommand } from '../commands/commands/break-line.command';
-import { DocCopyCommand, DocCopyCurrentParagraphCommand, DocCutCurrentParagraphCommand, DocPasteCommand } from '../commands/commands/clipboard.command';
+import {
+ DocCopyCommand,
+ DocCopyCurrentParagraphCommand,
+ DocCutCurrentParagraphCommand,
+ DocPasteCommand,
+} from '../commands/commands/clipboard.command';
import { MoveDocBlockCommand } from '../commands/commands/doc-block-move.command';
import { DeleteCurrentParagraphCommand } from '../commands/commands/doc-delete.command';
import { HorizontalLineCommand } from '../commands/commands/doc-horizontal-line.command';
import { DocParagraphSettingCommand } from '../commands/commands/doc-paragraph-setting.command';
-import { ResetInlineFormatTextBackgroundColorCommand, ResetInlineFormatTextColorCommand, SetInlineFormatTextBackgroundColorCommand, SetInlineFormatTextColorCommand } from '../commands/commands/inline-format.command';
+import {
+ ResetInlineFormatTextBackgroundColorCommand,
+ ResetInlineFormatTextColorCommand,
+ SetInlineFormatTextBackgroundColorCommand,
+ SetInlineFormatTextColorCommand,
+} from '../commands/commands/inline-format.command';
import { BulletListCommand, CheckListCommand, OrderListCommand } from '../commands/commands/list.command';
-import { AlignCenterCommand, AlignJustifyCommand, AlignLeftCommand, AlignRightCommand } from '../commands/commands/paragraph-align.command';
-import { H1HeadingCommand, H2HeadingCommand, H3HeadingCommand, H4HeadingCommand, H5HeadingCommand, NormalTextHeadingCommand, SetParagraphNamedStyleCommand, SubtitleHeadingCommand, TitleHeadingCommand } from '../commands/commands/set-heading.command';
+import {
+ AlignCenterCommand,
+ AlignJustifyCommand,
+ AlignLeftCommand,
+ AlignRightCommand,
+} from '../commands/commands/paragraph-align.command';
+import {
+ H1HeadingCommand,
+ H2HeadingCommand,
+ H3HeadingCommand,
+ H4HeadingCommand,
+ H5HeadingCommand,
+ NormalTextHeadingCommand,
+ SetParagraphNamedStyleCommand,
+ SubtitleHeadingCommand,
+ TitleHeadingCommand,
+} from '../commands/commands/set-heading.command';
import { DocTableDeleteTableCommand } from '../commands/commands/table/doc-table-delete.command';
import {
DOC_PARAGRAPH_T_DIVIDER_MENU_ID,
diff --git a/packages/docs-ui/src/views/header-footer/panel/DocHeaderFooterOptions.tsx b/packages/docs-ui/src/views/header-footer/panel/DocHeaderFooterOptions.tsx
index 96c5af00bb..5a9a88ad40 100644
--- a/packages/docs-ui/src/views/header-footer/panel/DocHeaderFooterOptions.tsx
+++ b/packages/docs-ui/src/views/header-footer/panel/DocHeaderFooterOptions.tsx
@@ -16,13 +16,22 @@
import type { IDocumentStyle } from '@univerjs/core';
import type { IHeaderFooterProps } from '../../../commands/commands/doc-header-footer.command';
-import { BooleanNumber, generateRandomId, ICommandService, IUniverInstanceService, LocaleService } from '@univerjs/core';
+import {
+ BooleanNumber,
+ generateRandomId,
+ ICommandService,
+ IUniverInstanceService,
+ LocaleService,
+} from '@univerjs/core';
import { Button, Checkbox, InputNumber } from '@univerjs/design';
import { DocSkeletonManagerService } from '@univerjs/docs';
import { DocumentEditArea, IRenderManagerService } from '@univerjs/engine-render';
import { ILayoutService, useDependency } from '@univerjs/ui';
import { useEffect, useState } from 'react';
-import { CloseHeaderFooterCommand, CoreHeaderFooterCommandId } from '../../../commands/commands/doc-header-footer.command';
+import {
+ CloseHeaderFooterCommand,
+ CoreHeaderFooterCommandId,
+} from '../../../commands/commands/doc-header-footer.command';
import { DocSelectionRenderService } from '../../../services/selection/doc-selection-render.service';
function getSegmentId(documentStyle: IDocumentStyle, editArea: DocumentEditArea, pageIndex: number): string {
diff --git a/packages/docs-ui/src/views/paragraph-setting/hook/utils.ts b/packages/docs-ui/src/views/paragraph-setting/hook/utils.ts
index 6f73431ce9..d10a7affa2 100644
--- a/packages/docs-ui/src/views/paragraph-setting/hook/utils.ts
+++ b/packages/docs-ui/src/views/paragraph-setting/hook/utils.ts
@@ -16,7 +16,16 @@
import type { DocumentDataModel, IParagraph, ISectionBreak } from '@univerjs/core';
import type { IDocParagraphSettingCommandParams } from '../../../commands/commands/doc-paragraph-setting.command';
-import { BuildTextUtils, DEFAULT_DOCUMENT_PARAGRAPH_LINE_SPACING, DEFAULT_DOCUMENT_PARAGRAPH_SPACE_ABOVE, DEFAULT_DOCUMENT_PARAGRAPH_SPACE_BELOW, ICommandService, IUniverInstanceService, SpacingRule, UniverInstanceType } from '@univerjs/core';
+import {
+ BuildTextUtils,
+ DEFAULT_DOCUMENT_PARAGRAPH_LINE_SPACING,
+ DEFAULT_DOCUMENT_PARAGRAPH_SPACE_ABOVE,
+ DEFAULT_DOCUMENT_PARAGRAPH_SPACE_BELOW,
+ ICommandService,
+ IUniverInstanceService,
+ SpacingRule,
+ UniverInstanceType,
+} from '@univerjs/core';
import { DocSelectionManagerService, DocSkeletonManagerService } from '@univerjs/docs';
import { getNumberUnitValue, IRenderManagerService } from '@univerjs/engine-render';
import { useDependency } from '@univerjs/ui';
@@ -26,7 +35,12 @@ import { bufferTime, filter, map } from 'rxjs/operators';
import { DocParagraphSettingCommand } from '../../../commands/commands/doc-paragraph-setting.command';
import { findNearestSectionBreak } from '../../../commands/commands/list.command';
import { DocParagraphSettingController } from '../../../controllers/doc-paragraph-setting.controller';
-import { convertDisplayLineSpacingToStoredValue, convertLineSpacingForRuleChange, convertStoredLineSpacingToDisplayValue, getLineSpacingMetrics } from '../line-spacing';
+import {
+ convertDisplayLineSpacingToStoredValue,
+ convertLineSpacingForRuleChange,
+ convertStoredLineSpacingToDisplayValue,
+ getLineSpacingMetrics,
+} from '../line-spacing';
const useDocRanges = () => {
const docSelectionManagerService = useDependency(DocSelectionManagerService);
diff --git a/packages/docs-ui/src/views/rich-text-editor/hooks/__tests__/editor-undo-redo-keyboard.spec.ts b/packages/docs-ui/src/views/rich-text-editor/hooks/__tests__/editor-undo-redo-keyboard.spec.ts
index 680af66120..91888f7efd 100644
--- a/packages/docs-ui/src/views/rich-text-editor/hooks/__tests__/editor-undo-redo-keyboard.spec.ts
+++ b/packages/docs-ui/src/views/rich-text-editor/hooks/__tests__/editor-undo-redo-keyboard.spec.ts
@@ -15,7 +15,12 @@
*/
import type { ICommandService, IUniverInstanceService } from '@univerjs/core';
-import { DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY, DOCS_NORMAL_EDITOR_UNIT_ID_KEY, RedoCommand, UndoCommand } from '@univerjs/core';
+import {
+ DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY,
+ DOCS_NORMAL_EDITOR_UNIT_ID_KEY,
+ RedoCommand,
+ UndoCommand,
+} from '@univerjs/core';
import { KeyCode, MetaKeys } from '@univerjs/ui';
import { describe, expect, it, vi } from 'vitest';
import { createEditorUndoRedoKeyboardConfig, executeEditorUndoRedoCommand } from '../editor-undo-redo-keyboard';
diff --git a/packages/drawing-ui/src/controllers/drawing-update.controller.ts b/packages/drawing-ui/src/controllers/drawing-update.controller.ts
index f59533aac1..db1136b486 100644
--- a/packages/drawing-ui/src/controllers/drawing-update.controller.ts
+++ b/packages/drawing-ui/src/controllers/drawing-update.controller.ts
@@ -14,7 +14,14 @@
* limitations under the License.
*/
-import type { DrawingTypeEnum, ICommandInfo, IDrawingParam, IDrawingSearch, ITransformState, Nullable } from '@univerjs/core';
+import type {
+ DrawingTypeEnum,
+ ICommandInfo,
+ IDrawingParam,
+ IDrawingSearch,
+ ITransformState,
+ Nullable,
+} from '@univerjs/core';
import type { IDrawingGroupUpdateParam, IDrawingOrderMapParam } from '@univerjs/drawing';
import type { BaseObject, Image, IShapeProps, Scene, Shape } from '@univerjs/engine-render';
import type { ISetDrawingAlignOperationParams } from '../commands/operations/drawing-align.operation';
@@ -25,8 +32,18 @@ import {
IUniverInstanceService,
toDisposable,
} from '@univerjs/core';
-import { getDrawingShapeKeyByDrawingSearch, IDrawingManagerService, SetDrawingSelectedOperation } from '@univerjs/drawing';
-import { DRAWING_OBJECT_LAYER_INDEX, DrawingGroupObject, Group, IRenderManagerService, RENDER_CLASS_TYPE } from '@univerjs/engine-render';
+import {
+ getDrawingShapeKeyByDrawingSearch,
+ IDrawingManagerService,
+ SetDrawingSelectedOperation,
+} from '@univerjs/drawing';
+import {
+ DRAWING_OBJECT_LAYER_INDEX,
+ DrawingGroupObject,
+ Group,
+ IRenderManagerService,
+ RENDER_CLASS_TYPE,
+} from '@univerjs/engine-render';
import { AlignType, SetDrawingAlignOperation } from '../commands/operations/drawing-align.operation';
import { CloseImageCropOperation } from '../commands/operations/image-crop.operation';
import { ensureDrawingRenderLayer } from '../services/drawing-render.service';
diff --git a/packages/drawing-ui/src/services/drawing-render.service.ts b/packages/drawing-ui/src/services/drawing-render.service.ts
index 021068cd71..c453eaef84 100644
--- a/packages/drawing-ui/src/services/drawing-render.service.ts
+++ b/packages/drawing-ui/src/services/drawing-render.service.ts
@@ -17,8 +17,20 @@
import type { IDrawingParam, IDrawingSearch, Workbook } from '@univerjs/core';
import type { IDocFloatDomData, IImageData } from '@univerjs/drawing';
import type { BaseObject, IImageProps, IRectProps, Scene } from '@univerjs/engine-render';
-import { BooleanNumber, DrawingTypeEnum, Inject, IUniverInstanceService, IURLImageService, UniverInstanceType } from '@univerjs/core';
-import { getDrawingShapeKeyByDrawingSearch, IDrawingManagerService, IImageIoService, ImageSourceType } from '@univerjs/drawing';
+import {
+ BooleanNumber,
+ DrawingTypeEnum,
+ Inject,
+ IUniverInstanceService,
+ IURLImageService,
+ UniverInstanceType,
+} from '@univerjs/core';
+import {
+ getDrawingShapeKeyByDrawingSearch,
+ IDrawingManagerService,
+ IImageIoService,
+ ImageSourceType,
+} from '@univerjs/drawing';
import { DRAWING_OBJECT_LAYER_INDEX, Image, Rect } from '@univerjs/engine-render';
import { IGalleryService } from '@univerjs/ui';
import { insertGroupObject } from '../controllers/utils';
diff --git a/packages/drawing-ui/src/views/__tests__/DrawingGroupBehavior.spec.tsx b/packages/drawing-ui/src/views/__tests__/DrawingGroupBehavior.spec.tsx
index f4f4492dad..678f210233 100644
--- a/packages/drawing-ui/src/views/__tests__/DrawingGroupBehavior.spec.tsx
+++ b/packages/drawing-ui/src/views/__tests__/DrawingGroupBehavior.spec.tsx
@@ -26,7 +26,10 @@ import { act } from 'react';
import { createRoot } from 'react-dom/client';
import { Subject } from 'rxjs';
import { afterEach, beforeEach, describe, expect, it } from 'vitest';
-import { CancelDrawingGroupOperation, SetDrawingGroupOperation } from '../../commands/operations/drawing-group.operation';
+import {
+ CancelDrawingGroupOperation,
+ SetDrawingGroupOperation,
+} from '../../commands/operations/drawing-group.operation';
import { DrawingGroup } from '../panel/DrawingGroup';
(globalThis as { IS_REACT_ACT_ENVIRONMENT?: boolean }).IS_REACT_ACT_ENVIRONMENT = true;
diff --git a/packages/drawing-ui/src/views/crop/image-cropper-object.ts b/packages/drawing-ui/src/views/crop/image-cropper-object.ts
index 4f71c10b20..400c301647 100644
--- a/packages/drawing-ui/src/views/crop/image-cropper-object.ts
+++ b/packages/drawing-ui/src/views/crop/image-cropper-object.ts
@@ -15,7 +15,14 @@
*/
import type { ISrcRect, ITransformState, Nullable } from '@univerjs/core';
-import type { Engine, IShapeProps, IViewportInfo, Scene, UniverRenderingContext, Vector2 } from '@univerjs/engine-render';
+import type {
+ Engine,
+ IShapeProps,
+ IViewportInfo,
+ Scene,
+ UniverRenderingContext,
+ Vector2,
+} from '@univerjs/engine-render';
import { Canvas, Rect, Shape } from '@univerjs/engine-render';
export interface IImageCropperObjectProps extends IShapeProps {
diff --git a/packages/drawing/src/index.ts b/packages/drawing/src/index.ts
index 20aa5b1932..e23a0c1848 100644
--- a/packages/drawing/src/index.ts
+++ b/packages/drawing/src/index.ts
@@ -34,8 +34,8 @@ export type {
} from './services/drawing-manager.service';
export { IDrawingManagerService } from './services/drawing-manager.service';
export { ImageIoService } from './services/image-io-impl.service';
-export { IImageIoService, ImageSourceType, ImageUploadStatusType } from './services/image-io.service';
-export type { IImageIoServiceParam } from './services/image-io.service';
export { URLImageService } from './services/url-image.service';
export { getDrawingShapeKeyByDrawingSearch } from './utils/get-image-shape-key';
export { getImageSize } from './utils/get-image-size';
+export { IImageIoService, ImageSourceType, ImageUploadStatusType } from '@univerjs/core';
+export type { IImageIoServiceParam } from '@univerjs/core';
diff --git a/packages/drawing/src/models/image-model-interface.ts b/packages/drawing/src/models/image-model-interface.ts
index 00d08969b3..9cf4e89077 100644
--- a/packages/drawing/src/models/image-model-interface.ts
+++ b/packages/drawing/src/models/image-model-interface.ts
@@ -14,8 +14,7 @@
* limitations under the License.
*/
-import type { IDrawingParam, ISrcRect, Nullable, Serializable } from '@univerjs/core';
-import type { ImageSourceType } from '../services/image-io.service';
+import type { IDrawingParam, ImageSourceType, ISrcRect, Nullable, Serializable } from '@univerjs/core';
export interface IImageData extends IDrawingParam {
imageSourceType: ImageSourceType;
diff --git a/packages/drawing/src/plugin.ts b/packages/drawing/src/plugin.ts
index e41660dc26..586541dfed 100644
--- a/packages/drawing/src/plugin.ts
+++ b/packages/drawing/src/plugin.ts
@@ -16,7 +16,7 @@
import type { Dependency } from '@univerjs/core';
import type { IUniverDrawingConfig } from './config/config';
-import { ICommandService, IConfigService, Inject, Injector, IURLImageService, merge, mergeOverrideWithDependencies, Plugin } from '@univerjs/core';
+import { ICommandService, IConfigService, IImageIoService, Inject, Injector, IURLImageService, merge, mergeOverrideWithDependencies, Plugin } from '@univerjs/core';
import pkg from '../package.json';
import { setDrawingImageAllowSize } from './basics/config';
import { SetDrawingSelectedOperation } from './commands/operations/set-drawing-selected.operation';
@@ -24,7 +24,6 @@ import { defaultPluginConfig, DRAWING_PLUGIN_CONFIG_KEY } from './config/config'
import { DrawingManagerService } from './services/drawing-manager-impl.service';
import { IDrawingManagerService } from './services/drawing-manager.service';
import { ImageIoService } from './services/image-io-impl.service';
-import { IImageIoService } from './services/image-io.service';
import { URLImageService } from './services/url-image.service';
export class UniverDrawingPlugin extends Plugin {
diff --git a/packages/drawing/src/services/image-io-impl.service.ts b/packages/drawing/src/services/image-io-impl.service.ts
index 5914527ed6..a4e7a02fe2 100644
--- a/packages/drawing/src/services/image-io-impl.service.ts
+++ b/packages/drawing/src/services/image-io-impl.service.ts
@@ -14,13 +14,11 @@
* limitations under the License.
*/
-import type { Nullable } from '@univerjs/core';
+import type { IImageIoService, IImageIoServiceParam, Nullable } from '@univerjs/core';
import type { Observable } from 'rxjs';
-import type { IImageIoService, IImageIoServiceParam } from './image-io.service';
-import { generateRandomId } from '@univerjs/core';
+import { generateRandomId, ImageSourceType, ImageUploadStatusType } from '@univerjs/core';
import { Subject } from 'rxjs';
import { DRAWING_IMAGE_ALLOW_IMAGE_LIST, getDrawingImageAllowSize } from '../basics/config';
-import { ImageSourceType, ImageUploadStatusType } from './image-io.service';
export class ImageIoService implements IImageIoService {
private _waitCount = 0;
diff --git a/packages/drawing/src/services/image-io.service.ts b/packages/drawing/src/services/image-io.service.ts
deleted file mode 100644
index a5d7975c62..0000000000
--- a/packages/drawing/src/services/image-io.service.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * Copyright 2023-present DreamNum Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-export { IImageIoService, type IImageIoServiceParam, ImageSourceType, ImageUploadStatusType } from '@univerjs/core';
diff --git a/packages/engine-formula/src/basics/financial.ts b/packages/engine-formula/src/basics/financial.ts
index 454d77fbb4..b6f6f9f2c5 100644
--- a/packages/engine-formula/src/basics/financial.ts
+++ b/packages/engine-formula/src/basics/financial.ts
@@ -15,7 +15,14 @@
*/
import { ErrorValueObject } from '../engine/value-object/base-value-object';
-import { dateAddMonths, excelDateSerial, excelSerialToDate, getDaysInMonth, getTwoDateDaysByBasis, lastDayOfMonth } from './date';
+import {
+ dateAddMonths,
+ excelDateSerial,
+ excelSerialToDate,
+ getDaysInMonth,
+ getTwoDateDaysByBasis,
+ lastDayOfMonth,
+} from './date';
import { ErrorType } from './error-type';
export function calculateCoupdaybs(settlementSerialNumber: number, maturitySerialNumber: number, frequency: number, basis: number): number {
diff --git a/packages/engine-formula/src/basics/statistical.ts b/packages/engine-formula/src/basics/statistical.ts
index 802f691e8d..e0163e1f1c 100644
--- a/packages/engine-formula/src/basics/statistical.ts
+++ b/packages/engine-formula/src/basics/statistical.ts
@@ -27,7 +27,14 @@ import { NumberValueObject } from '../engine/value-object/primitive-object';
import { FUNCTION_NAMES_MATH } from '../functions/math/function-names';
import { erf, erfcINV } from './engineering';
import { ErrorType } from './error-type';
-import { calculateCombin, calculateFactorial, calculateMmult, inverseMatrixByLUD, inverseMatrixByUSV, matrixTranspose } from './math';
+import {
+ calculateCombin,
+ calculateFactorial,
+ calculateMmult,
+ inverseMatrixByLUD,
+ inverseMatrixByUSV,
+ matrixTranspose,
+} from './math';
export function betaCDF(x: number, alpha: number, beta: number): number {
if (x <= 0) {
diff --git a/packages/engine-formula/src/commands/mutations/__tests__/formula-reference.mutation.spec.ts b/packages/engine-formula/src/commands/mutations/__tests__/formula-reference.mutation.spec.ts
index b636d9998e..6a0d3f1fdb 100644
--- a/packages/engine-formula/src/commands/mutations/__tests__/formula-reference.mutation.spec.ts
+++ b/packages/engine-formula/src/commands/mutations/__tests__/formula-reference.mutation.spec.ts
@@ -21,7 +21,11 @@ import { DefinedNamesService, IDefinedNamesService } from '../../../services/def
import { ISuperTableService, SuperTableService } from '../../../services/super-table.service';
import { RegisterFunctionMutation } from '../register-function.mutation';
import { SetArrayFormulaDataMutation } from '../set-array-formula-data.mutation';
-import { RemoveDefinedNameMutation, SetDefinedNameMutation, SetDefinedNameMutationFactory } from '../set-defined-name.mutation';
+import {
+ RemoveDefinedNameMutation,
+ SetDefinedNameMutation,
+ SetDefinedNameMutationFactory,
+} from '../set-defined-name.mutation';
import { RemoveFeatureCalculationMutation, SetFeatureCalculationMutation } from '../set-feature-calculation.mutation';
import {
SetCellFormulaDependencyCalculationMutation,
@@ -42,7 +46,11 @@ import {
} from '../set-formula-calculation.mutation';
import { SetFormulaDataMutation } from '../set-formula-data.mutation';
import { SetImageFormulaDataMutation } from '../set-image-formula-data.mutation';
-import { RemoveSuperTableMutation, SetSuperTableMutation, SetSuperTableOptionMutation } from '../set-super-table.mutation';
+import {
+ RemoveSuperTableMutation,
+ SetSuperTableMutation,
+ SetSuperTableOptionMutation,
+} from '../set-super-table.mutation';
describe('formula reference mutations', () => {
let univer: Univer;
diff --git a/packages/engine-formula/src/controllers/__tests__/set-dependency.controller.spec.ts b/packages/engine-formula/src/controllers/__tests__/set-dependency.controller.spec.ts
index 1febb2d4ff..c44d18a104 100644
--- a/packages/engine-formula/src/controllers/__tests__/set-dependency.controller.spec.ts
+++ b/packages/engine-formula/src/controllers/__tests__/set-dependency.controller.spec.ts
@@ -18,9 +18,15 @@ import type { ICommandInfo } from '@univerjs/core';
import { Subject } from 'rxjs';
import { describe, expect, it, vi } from 'vitest';
import { SetDefinedNameMutation } from '../../commands/mutations/set-defined-name.mutation';
-import { RemoveFeatureCalculationMutation, SetFeatureCalculationMutation } from '../../commands/mutations/set-feature-calculation.mutation';
+import {
+ RemoveFeatureCalculationMutation,
+ SetFeatureCalculationMutation,
+} from '../../commands/mutations/set-feature-calculation.mutation';
import { SetFormulaDataMutation } from '../../commands/mutations/set-formula-data.mutation';
-import { RemoveOtherFormulaMutation, SetOtherFormulaMutation } from '../../commands/mutations/set-other-formula.mutation';
+import {
+ RemoveOtherFormulaMutation,
+ SetOtherFormulaMutation,
+} from '../../commands/mutations/set-other-formula.mutation';
import { SetDependencyController } from '../set-dependency.controller';
interface ICommandServiceMock {
diff --git a/packages/engine-formula/src/controllers/calculate.controller.ts b/packages/engine-formula/src/controllers/calculate.controller.ts
index b5f0dc8e88..cf6157dee5 100644
--- a/packages/engine-formula/src/controllers/calculate.controller.ts
+++ b/packages/engine-formula/src/controllers/calculate.controller.ts
@@ -16,8 +16,17 @@
import type { ICommandInfo } from '@univerjs/core';
import type { ISetArrayFormulaDataMutationParams } from '../commands/mutations/set-array-formula-data.mutation';
-import type { ISetFormulaCalculationStartMutation, ISetFormulaDependencyCalculationMutation, ISetFormulaStringBatchCalculationMutation, ISetQueryFormulaDependencyAllMutation, ISetQueryFormulaDependencyMutation } from '../commands/mutations/set-formula-calculation.mutation';
-import type { IFormulaDependencyTreeJson, IFormulaDependentsAndInRangeResults } from '../engine/dependency/dependency-tree';
+import type {
+ ISetFormulaCalculationStartMutation,
+ ISetFormulaDependencyCalculationMutation,
+ ISetFormulaStringBatchCalculationMutation,
+ ISetQueryFormulaDependencyAllMutation,
+ ISetQueryFormulaDependencyMutation,
+} from '../commands/mutations/set-formula-calculation.mutation';
+import type {
+ IFormulaDependencyTreeJson,
+ IFormulaDependentsAndInRangeResults,
+} from '../engine/dependency/dependency-tree';
import type { IFormulaDirtyData } from '../services/current-data.service';
import type { IAllRuntimeData } from '../services/runtime.service';
import { Disposable, ICommandService, Inject } from '@univerjs/core';
diff --git a/packages/engine-formula/src/controllers/set-super-table.controller.ts b/packages/engine-formula/src/controllers/set-super-table.controller.ts
index 869af3f8e4..84e1dd2e9a 100644
--- a/packages/engine-formula/src/controllers/set-super-table.controller.ts
+++ b/packages/engine-formula/src/controllers/set-super-table.controller.ts
@@ -15,7 +15,10 @@
*/
import type { ICommandInfo } from '@univerjs/core';
-import type { ISetSuperTableMutationParam, ISetSuperTableMutationSearchParam } from '../commands/mutations/set-super-table.mutation';
+import type {
+ ISetSuperTableMutationParam,
+ ISetSuperTableMutationSearchParam,
+} from '../commands/mutations/set-super-table.mutation';
import type { ISuperTableOptionParam } from '../services/super-table.service';
import { Disposable, ICommandService } from '@univerjs/core';
import { RemoveDefinedNameMutation, SetDefinedNameMutation } from '../commands/mutations/set-defined-name.mutation';
diff --git a/packages/engine-formula/src/engine/analysis/lexer-tree-builder.ts b/packages/engine-formula/src/engine/analysis/lexer-tree-builder.ts
index c9d852945c..73c6ad8af0 100644
--- a/packages/engine-formula/src/engine/analysis/lexer-tree-builder.ts
+++ b/packages/engine-formula/src/engine/analysis/lexer-tree-builder.ts
@@ -16,12 +16,10 @@
import type { IRange, Nullable } from '@univerjs/core';
import type { IDirtyUnitDefinedNameMap, IExprTreeNode, ISuperTable } from '../../basics/common';
-
import type { IFunctionNames } from '../../basics/function';
import type { IDefinedNamesServiceParam } from '../../services/defined-names.service';
import type { ISequenceArray, ISequenceNode } from '../utils/sequence';
import { AbsoluteRefType, Disposable, isValidRange, moveRangeByOffset, Tools } from '@univerjs/core';
-
import { FormulaAstLRU } from '../../basics/cache-lru';
import { ERROR_TYPE_COUNT_ARRAY, ERROR_TYPE_SET, ErrorType } from '../../basics/error-type';
import { isFormulaLexerToken, isTokenCannotBeAtEnd, isTokenCannotPrecedeSuffixToken } from '../../basics/match-token';
@@ -44,7 +42,12 @@ import {
DEFAULT_TOKEN_TYPE_ROOT,
} from '../../basics/token-type';
import { NEW_EXCEL_FUNCTIONS } from '../../functions/new-excel-functions';
-import { isReferenceStringWithEffectiveColumn, replaceRefPrefixString, serializeRangeToRefString, splitTableStructuredRef } from '../utils/reference';
+import {
+ isReferenceStringWithEffectiveColumn,
+ replaceRefPrefixString,
+ serializeRangeToRefString,
+ splitTableStructuredRef,
+} from '../utils/reference';
import { deserializeRangeWithSheetWithCache } from '../utils/reference-cache';
import { generateStringWithSequence, sequenceNodeType } from '../utils/sequence';
import { LexerNode } from './lexer-node';
diff --git a/packages/engine-formula/src/engine/dependency/formula-dependency.ts b/packages/engine-formula/src/engine/dependency/formula-dependency.ts
index 52dd5fca10..311df60457 100644
--- a/packages/engine-formula/src/engine/dependency/formula-dependency.ts
+++ b/packages/engine-formula/src/engine/dependency/formula-dependency.ts
@@ -15,7 +15,13 @@
*/
import type { IRange, IUnitRange, Nullable, Workbook } from '@univerjs/core';
-import type { IFeatureDirtyRangeType, IFormulaData, IFormulaDataItem, IOtherFormulaData, IUnitData } from '../../basics/common';
+import type {
+ IFeatureDirtyRangeType,
+ IFormulaData,
+ IFormulaDataItem,
+ IOtherFormulaData,
+ IUnitData,
+} from '../../basics/common';
import type { IFormulaDirtyData } from '../../services/current-data.service';
import type { IFeatureCalculationManagerParam } from '../../services/feature-calculation-manager.service';
import type { IAllRuntimeData } from '../../services/runtime.service';
@@ -24,8 +30,21 @@ import type { BaseAstNode } from '../ast-node/base-ast-node';
import type { BaseReferenceObject, FunctionVariantType } from '../reference-object/base-reference-object';
import type { IExecuteAstNodeData } from '../utils/ast-node-tool';
import type { PreCalculateNodeType } from '../utils/node-type';
-import type { IFormulaDependencyTree, IFormulaDependencyTreeFullJson, IFormulaDependencyTreeJson, IFormulaDependentsAndInRangeResults } from './dependency-tree';
-import { createIdentifier, Disposable, Inject, IUniverInstanceService, ObjectMatrix, RTree, UniverInstanceType } from '@univerjs/core';
+import type {
+ IFormulaDependencyTree,
+ IFormulaDependencyTreeFullJson,
+ IFormulaDependencyTreeJson,
+ IFormulaDependentsAndInRangeResults,
+} from './dependency-tree';
+import {
+ createIdentifier,
+ Disposable,
+ Inject,
+ IUniverInstanceService,
+ ObjectMatrix,
+ RTree,
+ UniverInstanceType,
+} from '@univerjs/core';
import { prefixToken, suffixToken } from '../../basics/token';
import { IFormulaCurrentConfigService } from '../../services/current-data.service';
import { IDependencyManagerService } from '../../services/dependency-manager.service';
@@ -38,13 +57,12 @@ import { AstTreeBuilder } from '../analysis/parser';
import { NodeType } from '../ast-node/node-type';
import { Interpreter } from '../interpreter/interpreter';
import { FORMULA_AST_CACHE, generateAstNode, includeDefinedName } from '../utils/generate-ast-node';
-import { FormulaDependencyTree, FormulaDependencyTreeModel, FormulaDependencyTreeType, FormulaDependencyTreeVirtual } from './dependency-tree';
-
-interface IFeatureFormulaParam {
- unitId: string;
- subUnitId: string;
- featureId: string;
-}
+import {
+ FormulaDependencyTree,
+ FormulaDependencyTreeModel,
+ FormulaDependencyTreeType,
+ FormulaDependencyTreeVirtual,
+} from './dependency-tree';
export function generateRandomDependencyTreeId(dependencyManagerService: IDependencyManagerService): number {
const idNum = dependencyManagerService.getLastTreeId() || 0;
diff --git a/packages/engine-formula/src/functions/date/weeknum/index.ts b/packages/engine-formula/src/functions/date/weeknum/index.ts
index d9c50c2839..f7d9672dea 100644
--- a/packages/engine-formula/src/functions/date/weeknum/index.ts
+++ b/packages/engine-formula/src/functions/date/weeknum/index.ts
@@ -16,7 +16,12 @@
import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';
import type { BaseValueObject } from '../../../engine/value-object/base-value-object';
-import { excelDateSerial, excelSerialToDate, getDateSerialNumberByObject, getWeekDayByDateSerialNumber } from '../../../basics/date';
+import {
+ excelDateSerial,
+ excelSerialToDate,
+ getDateSerialNumberByObject,
+ getWeekDayByDateSerialNumber,
+} from '../../../basics/date';
import { ErrorType } from '../../../basics/error-type';
import { ErrorValueObject } from '../../../engine/value-object/base-value-object';
import { NumberValueObject } from '../../../engine/value-object/primitive-object';
diff --git a/packages/engine-formula/src/functions/financial/accrint/index.ts b/packages/engine-formula/src/functions/financial/accrint/index.ts
index 77843915c5..2e70d8d01f 100644
--- a/packages/engine-formula/src/functions/financial/accrint/index.ts
+++ b/packages/engine-formula/src/functions/financial/accrint/index.ts
@@ -15,7 +15,12 @@
*/
import type { BaseValueObject } from '../../../engine/value-object/base-value-object';
-import { excelSerialToDate, getDateSerialNumberByObject, getTwoDateDaysByBasis, lastDayOfMonth } from '../../../basics/date';
+import {
+ excelSerialToDate,
+ getDateSerialNumberByObject,
+ getTwoDateDaysByBasis,
+ lastDayOfMonth,
+} from '../../../basics/date';
import { ErrorType } from '../../../basics/error-type';
import { calculateCoupdays, calculateCouppcd, getDateSerialNumberByMonths } from '../../../basics/financial';
import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';
diff --git a/packages/engine-formula/src/functions/financial/coupdaysnc/index.ts b/packages/engine-formula/src/functions/financial/coupdaysnc/index.ts
index 2f25b7dea2..9124283a14 100644
--- a/packages/engine-formula/src/functions/financial/coupdaysnc/index.ts
+++ b/packages/engine-formula/src/functions/financial/coupdaysnc/index.ts
@@ -15,7 +15,12 @@
*/
import type { BaseValueObject } from '../../../engine/value-object/base-value-object';
-import { excelDateSerial, excelSerialToDate, getDateSerialNumberByObject, getTwoDateDaysByBasis } from '../../../basics/date';
+import {
+ excelDateSerial,
+ excelSerialToDate,
+ getDateSerialNumberByObject,
+ getTwoDateDaysByBasis,
+} from '../../../basics/date';
import { ErrorType } from '../../../basics/error-type';
import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';
import { ErrorValueObject } from '../../../engine/value-object/base-value-object';
diff --git a/packages/engine-formula/src/functions/financial/yield/index.ts b/packages/engine-formula/src/functions/financial/yield/index.ts
index 75397e44e3..4a50f8a28a 100644
--- a/packages/engine-formula/src/functions/financial/yield/index.ts
+++ b/packages/engine-formula/src/functions/financial/yield/index.ts
@@ -17,7 +17,13 @@
import type { BaseValueObject } from '../../../engine/value-object/base-value-object';
import { getDateSerialNumberByObject, getTwoDateDaysByBasis } from '../../../basics/date';
import { ErrorType } from '../../../basics/error-type';
-import { calculateCoupdaybs, calculateCoupdays, calculateCoupnum, calculatePrice, validCouppcdIsGte0ByTwoDate } from '../../../basics/financial';
+import {
+ calculateCoupdaybs,
+ calculateCoupdays,
+ calculateCoupnum,
+ calculatePrice,
+ validCouppcdIsGte0ByTwoDate,
+} from '../../../basics/financial';
import { checkVariantsErrorIsNullorArrayOrBoolean } from '../../../engine/utils/check-variant-error';
import { ErrorValueObject } from '../../../engine/value-object/base-value-object';
import { NumberValueObject } from '../../../engine/value-object/primitive-object';
diff --git a/packages/sheets-conditional-formatting/src/index.ts b/packages/sheets-conditional-formatting/src/index.ts
index 694351bab5..316e475382 100644
--- a/packages/sheets-conditional-formatting/src/index.ts
+++ b/packages/sheets-conditional-formatting/src/index.ts
@@ -64,6 +64,6 @@ export * from './services/conditional-formatting-style-composer.service';
export * from './services/conditional-formatting.service';
export * from './utils/anchor';
export * from './utils/create-cf-id';
-export * from './utils/is-ranges-equal';
export * from './utils/remove-undefined-attr';
export * from './utils/type';
+export { isRangesEqual } from '@univerjs/core';
diff --git a/packages/sheets-conditional-formatting/src/utils/is-ranges-equal.ts b/packages/sheets-conditional-formatting/src/utils/is-ranges-equal.ts
deleted file mode 100644
index e0a300fc74..0000000000
--- a/packages/sheets-conditional-formatting/src/utils/is-ranges-equal.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * Copyright 2023-present DreamNum Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-export { isRangesEqual } from '@univerjs/core';
diff --git a/packages/sheets-formula-ui/src/views/formula-editor/hooks/use-keyboard-event.ts b/packages/sheets-formula-ui/src/views/formula-editor/hooks/use-keyboard-event.ts
deleted file mode 100644
index b72ae3a41c..0000000000
--- a/packages/sheets-formula-ui/src/views/formula-editor/hooks/use-keyboard-event.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * Copyright 2023-present DreamNum Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-export { type IKeyboardEventConfig, useKeyboardEvent } from '@univerjs/docs-ui';
diff --git a/packages/sheets-formula-ui/src/views/formula-editor/hooks/use-resize.ts b/packages/sheets-formula-ui/src/views/formula-editor/hooks/use-resize.ts
deleted file mode 100644
index c6abb5afe8..0000000000
--- a/packages/sheets-formula-ui/src/views/formula-editor/hooks/use-resize.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * Copyright 2023-present DreamNum Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-export { useResize } from '@univerjs/docs-ui';
diff --git a/packages/sheets-thread-comment-ui/src/index.ts b/packages/sheets-thread-comment-ui/src/index.ts
index ec9a9fc79e..9f0180ac83 100644
--- a/packages/sheets-thread-comment-ui/src/index.ts
+++ b/packages/sheets-thread-comment-ui/src/index.ts
@@ -16,23 +16,10 @@
import './global.css';
-export { ShowAddSheetCommentModalOperation, ToggleSheetCommentPanelOperation } from './commands/operations/comment.operation';
+export {
+ ShowAddSheetCommentModalOperation,
+ ToggleSheetCommentPanelOperation,
+} from './commands/operations/comment.operation';
export type { IUniverSheetsThreadCommentUIConfig } from './config/config';
export { UniverSheetsThreadCommentUIPlugin } from './plugin';
export { SheetsThreadCommentPopupService } from './services/sheets-thread-comment-popup.service';
-export { IThreadCommentDataSourceService } from '@univerjs/thread-comment';
-export {
- AddCommentCommand,
- DeleteCommentCommand,
- DeleteCommentTreeCommand,
- ResolveCommentCommand,
- UpdateCommentCommand,
-} from '@univerjs/thread-comment';
-export type {
- IAddCommentCommandParams,
- IDeleteCommentCommandParams,
- IDeleteCommentTreeCommandParams,
- IResolveCommentCommandParams,
- IUpdateCommentCommandParams,
-} from '@univerjs/thread-comment';
-export { UniverThreadCommentUIPlugin } from '@univerjs/thread-comment-ui';
diff --git a/packages/sheets-ui/src/commands/operations/__tests__/sidebar-defined-name.operation.spec.ts b/packages/sheets-ui/src/commands/operations/__tests__/sidebar-defined-name.operation.spec.ts
index 64042b523d..9dbe59bc88 100644
--- a/packages/sheets-ui/src/commands/operations/__tests__/sidebar-defined-name.operation.spec.ts
+++ b/packages/sheets-ui/src/commands/operations/__tests__/sidebar-defined-name.operation.spec.ts
@@ -16,7 +16,8 @@
import { Injector, IUniverInstanceService, LocaleService } from '@univerjs/core';
import { IEditorService } from '@univerjs/docs-ui';
-import { EditStateEnum, UnitObject, ViewStateEnum } from '@univerjs/sheets';
+import { UnitObject } from '@univerjs/protocol';
+import { EditStateEnum, ViewStateEnum } from '@univerjs/sheets';
import { IDialogService, ISidebarService } from '@univerjs/ui';
import { describe, expect, it } from 'vitest';
import {
diff --git a/packages/sheets-ui/src/controllers/__tests__/cell-custom-render.controller.spec.ts b/packages/sheets-ui/src/controllers/__tests__/cell-custom-render.controller.spec.ts
index 684d6b9920..ef6ca639bb 100644
--- a/packages/sheets-ui/src/controllers/__tests__/cell-custom-render.controller.spec.ts
+++ b/packages/sheets-ui/src/controllers/__tests__/cell-custom-render.controller.spec.ts
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-import { UnitAction } from '@univerjs/sheets';
+import { UnitAction } from '@univerjs/protocol';
import { Subject } from 'rxjs';
import { describe, expect, it, vi } from 'vitest';
import { CellCustomRenderController } from '../cell-custom-render.controller';
diff --git a/packages/sheets-ui/src/controllers/cell-custom-render.controller.ts b/packages/sheets-ui/src/controllers/cell-custom-render.controller.ts
index db5101c7ff..51e9ab4bd8 100644
--- a/packages/sheets-ui/src/controllers/cell-custom-render.controller.ts
+++ b/packages/sheets-ui/src/controllers/cell-custom-render.controller.ts
@@ -14,12 +14,33 @@
* limitations under the License.
*/
-import type { ICellCustomRender, ICellDataForSheetInterceptor, ICellRenderContext, Nullable, Workbook } from '@univerjs/core';
-import type { IMouseEvent, IPointerEvent, IRenderContext, IRenderModule, RenderManagerService, Spreadsheet } from '@univerjs/engine-render';
+import type {
+ ICellCustomRender,
+ ICellDataForSheetInterceptor,
+ ICellRenderContext,
+ Nullable,
+ Workbook,
+} from '@univerjs/core';
+import type {
+ IMouseEvent,
+ IPointerEvent,
+ IRenderContext,
+ IRenderModule,
+ RenderManagerService,
+ Spreadsheet,
+} from '@univerjs/engine-render';
import type { ICellPermission, ISheetSkeletonManagerParam } from '@univerjs/sheets';
-import { Disposable, DisposableCollection, fromEventSubject, Inject, IPermissionService, sortRules } from '@univerjs/core';
+import {
+ Disposable,
+ DisposableCollection,
+ fromEventSubject,
+ Inject,
+ IPermissionService,
+ sortRules,
+} from '@univerjs/core';
import { IRenderManagerService, Vector2 } from '@univerjs/engine-render';
-import { UnitAction, WorkbookEditablePermission, WorksheetEditPermission } from '@univerjs/sheets';
+import { UnitAction } from '@univerjs/protocol';
+import { WorkbookEditablePermission, WorksheetEditPermission } from '@univerjs/sheets';
import { throttleTime } from 'rxjs';
import { SheetSkeletonManagerService } from '../services/sheet-skeleton-manager.service';
diff --git a/packages/sheets-ui/src/index.ts b/packages/sheets-ui/src/index.ts
index e41d3b6768..1bb167bcd8 100644
--- a/packages/sheets-ui/src/index.ts
+++ b/packages/sheets-ui/src/index.ts
@@ -264,4 +264,3 @@ export { type IPermissionDetailUserPartProps } from './views/permission/panel-de
export { type IBaseSheetBarProps } from './views/sheet-bar/sheet-bar-tabs/SheetBarItem';
export { type IStatisticItem } from './views/status-bar/CopyableStatisticItem';
export { functionDisplayNames } from './views/status-bar/CopyableStatisticItem';
-export { SheetCopyDownCommand, SheetCopyRightCommand } from '@univerjs/sheets';
diff --git a/packages/sheets-ui/src/menu/__tests__/permission-menu-util.spec.ts b/packages/sheets-ui/src/menu/__tests__/permission-menu-util.spec.ts
index e64746b621..a73b898379 100644
--- a/packages/sheets-ui/src/menu/__tests__/permission-menu-util.spec.ts
+++ b/packages/sheets-ui/src/menu/__tests__/permission-menu-util.spec.ts
@@ -23,11 +23,11 @@ import {
RANGE_TYPE,
UserManagerService,
} from '@univerjs/core';
+import { UnitAction } from '@univerjs/protocol';
import {
RangeProtectionCache,
RangeProtectionRuleModel,
SheetsSelectionsService,
- UnitAction,
WorksheetProtectionRuleModel,
} from '@univerjs/sheets';
import { BehaviorSubject, firstValueFrom, of, skip, take } from 'rxjs';
diff --git a/packages/sheets-ui/src/menu/permission-menu-util.ts b/packages/sheets-ui/src/menu/permission-menu-util.ts
index 523e9cea4a..5bca09018e 100644
--- a/packages/sheets-ui/src/menu/permission-menu-util.ts
+++ b/packages/sheets-ui/src/menu/permission-menu-util.ts
@@ -15,8 +15,29 @@
*/
import type { IAccessor, Workbook } from '@univerjs/core';
-import { FOCUSING_COMMON_DRAWINGS, FOCUSING_FX_BAR_EDITOR, IContextService, IPermissionService, IUniverInstanceService, RANGE_TYPE, Rectangle, UniverInstanceType, UserManagerService } from '@univerjs/core';
-import { RangeProtectionCache, RangeProtectionRuleModel, SheetsSelectionsService, UnitAction, WorkbookCreateProtectPermission, WorkbookEditablePermission, WorkbookManageCollaboratorPermission, WorksheetDeleteProtectionPermission, WorksheetManageCollaboratorPermission, WorksheetProtectionRuleModel } from '@univerjs/sheets';
+import {
+ FOCUSING_COMMON_DRAWINGS,
+ FOCUSING_FX_BAR_EDITOR,
+ IContextService,
+ IPermissionService,
+ IUniverInstanceService,
+ RANGE_TYPE,
+ Rectangle,
+ UniverInstanceType,
+ UserManagerService,
+} from '@univerjs/core';
+import { UnitAction } from '@univerjs/protocol';
+import {
+ RangeProtectionCache,
+ RangeProtectionRuleModel,
+ SheetsSelectionsService,
+ WorkbookCreateProtectPermission,
+ WorkbookEditablePermission,
+ WorkbookManageCollaboratorPermission,
+ WorksheetDeleteProtectionPermission,
+ WorksheetManageCollaboratorPermission,
+ WorksheetProtectionRuleModel,
+} from '@univerjs/sheets';
import { combineLatest, map, merge, of, shareReplay, startWith, switchMap } from 'rxjs';
import { IEditorBridgeService } from '../services/editor-bridge.service';
diff --git a/packages/sheets-ui/src/services/permission/sheet-permission-panel.model.ts b/packages/sheets-ui/src/services/permission/sheet-permission-panel.model.ts
index 4cf54c3978..7ecd6b477c 100644
--- a/packages/sheets-ui/src/services/permission/sheet-permission-panel.model.ts
+++ b/packages/sheets-ui/src/services/permission/sheet-permission-panel.model.ts
@@ -16,7 +16,8 @@
import type { IRange } from '@univerjs/core';
import type { IRangeProtectionRule, IWorksheetProtectionRule } from '@univerjs/sheets';
-import { EditStateEnum, UnitObject, ViewStateEnum } from '@univerjs/sheets';
+import { UnitObject } from '@univerjs/protocol';
+import { EditStateEnum, ViewStateEnum } from '@univerjs/sheets';
export const DEFAULT_RANGE_RULE: IRangeProtectionRule = {
unitId: '',
diff --git a/packages/sheets-ui/src/views/formula-bar/FormulaBar.tsx b/packages/sheets-ui/src/views/formula-bar/FormulaBar.tsx
index 0561affe00..90faaee431 100644
--- a/packages/sheets-ui/src/views/formula-bar/FormulaBar.tsx
+++ b/packages/sheets-ui/src/views/formula-bar/FormulaBar.tsx
@@ -30,17 +30,25 @@ import { borderBottomClassName, borderRightClassName, clsx } from '@univerjs/des
import { IEditorService } from '@univerjs/docs-ui';
import { DeviceInputEventType } from '@univerjs/engine-render';
import { CheckMarkIcon, CloseIcon, DropdownIcon, FxIcon } from '@univerjs/icons';
+import { UnitAction } from '@univerjs/protocol';
import {
RangeProtectionCache,
RangeProtectionRuleModel,
SheetsSelectionsService,
- UnitAction,
WorkbookEditablePermission,
WorksheetEditPermission,
WorksheetProtectionRuleModel,
WorksheetViewPermission,
} from '@univerjs/sheets';
-import { ComponentContainer, ComponentManager, KeyCode, useComponentsOfPart, useConfigValue, useDependency, useObservable } from '@univerjs/ui';
+import {
+ ComponentContainer,
+ ComponentManager,
+ KeyCode,
+ useComponentsOfPart,
+ useConfigValue,
+ useDependency,
+ useObservable,
+} from '@univerjs/ui';
import { useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react';
import { EMPTY, merge, of, switchMap } from 'rxjs';
import { SetCellEditVisibleOperation } from '../../commands/operations/cell-edit.operation';
diff --git a/packages/sheets-ui/src/views/permission/__tests__/PermissionDetailFooterPart.spec.tsx b/packages/sheets-ui/src/views/permission/__tests__/PermissionDetailFooterPart.spec.tsx
index 16d5871c2f..91b5cc4e8c 100644
--- a/packages/sheets-ui/src/views/permission/__tests__/PermissionDetailFooterPart.spec.tsx
+++ b/packages/sheets-ui/src/views/permission/__tests__/PermissionDetailFooterPart.spec.tsx
@@ -24,12 +24,11 @@ import {
LocaleService,
UniverInstanceType,
} from '@univerjs/core';
-import { ObjectScope, UnitAction, UnitRole } from '@univerjs/protocol';
+import { ObjectScope, UnitAction, UnitObject, UnitRole } from '@univerjs/protocol';
import {
AddRangeProtectionCommand,
AddWorksheetProtectionCommand,
EditStateEnum,
- UnitObject,
ViewStateEnum,
} from '@univerjs/sheets';
import { ISidebarService, RediContext } from '@univerjs/ui';
diff --git a/packages/sheets-ui/src/views/permission/panel-detail/PermissionDetailFooterPart.tsx b/packages/sheets-ui/src/views/permission/panel-detail/PermissionDetailFooterPart.tsx
index c0c7b85647..4e3745c330 100644
--- a/packages/sheets-ui/src/views/permission/panel-detail/PermissionDetailFooterPart.tsx
+++ b/packages/sheets-ui/src/views/permission/panel-detail/PermissionDetailFooterPart.tsx
@@ -17,10 +17,22 @@
import type { IRange, Workbook } from '@univerjs/core';
import type { IRangeProtectionRule } from '@univerjs/sheets';
import type { IPermissionPanelRule } from '../../../services/permission/sheet-permission-panel.model';
-import { IAuthzIoService, ICommandService, IUniverInstanceService, LocaleService, UniverInstanceType } from '@univerjs/core';
+import {
+ IAuthzIoService,
+ ICommandService,
+ IUniverInstanceService,
+ LocaleService,
+ UniverInstanceType,
+} from '@univerjs/core';
import { Button } from '@univerjs/design';
-import { ObjectScope, UnitAction, UnitRole } from '@univerjs/protocol';
-import { AddRangeProtectionCommand, AddWorksheetProtectionCommand, EditStateEnum, SetProtectionCommand, UnitObject, ViewStateEnum } from '@univerjs/sheets';
+import { ObjectScope, UnitAction, UnitObject, UnitRole } from '@univerjs/protocol';
+import {
+ AddRangeProtectionCommand,
+ AddWorksheetProtectionCommand,
+ EditStateEnum,
+ SetProtectionCommand,
+ ViewStateEnum,
+} from '@univerjs/sheets';
import { ISidebarService, useDependency } from '@univerjs/ui';
import { getUserListEqual } from '../../../common/utils';
import { UNIVER_SHEET_PERMISSION_PANEL } from '../../../consts/permission';
diff --git a/packages/sheets-ui/src/views/permission/util.ts b/packages/sheets-ui/src/views/permission/util.ts
index 2f9ee1b1cf..6499269ba7 100644
--- a/packages/sheets-ui/src/views/permission/util.ts
+++ b/packages/sheets-ui/src/views/permission/util.ts
@@ -17,7 +17,14 @@
import type { Injector, IRange, Workbook, Worksheet } from '@univerjs/core';
import type { IPermissionPanelRule } from '../../services/permission/sheet-permission-panel.model';
import { IUniverInstanceService, LocaleService, RANGE_TYPE, Rectangle, UniverInstanceType } from '@univerjs/core';
-import { EditStateEnum, RangeProtectionRuleModel, SheetsSelectionsService, UnitObject, ViewStateEnum, WorksheetProtectionRuleModel } from '@univerjs/sheets';
+import { UnitObject } from '@univerjs/protocol';
+import {
+ EditStateEnum,
+ RangeProtectionRuleModel,
+ SheetsSelectionsService,
+ ViewStateEnum,
+ WorksheetProtectionRuleModel,
+} from '@univerjs/sheets';
export const checkRangeValid = (injector: Injector, permissionRanges: IRange[], permissionId: string, unitId: string, subUnitId: string) => {
const localeService = injector.get(LocaleService);
diff --git a/packages/sheets/src/facade/permission/f-range-protection-rule.ts b/packages/sheets/src/facade/permission/f-range-protection-rule.ts
index 6105d778e7..4132c98d45 100644
--- a/packages/sheets/src/facade/permission/f-range-protection-rule.ts
+++ b/packages/sheets/src/facade/permission/f-range-protection-rule.ts
@@ -18,8 +18,8 @@ import type { IDeleteRangeProtectionMutationParams, ISetRangeProtectionMutationP
import type { FRange } from '../f-range';
import type { IRangeProtectionOptions, RangePermissionSnapshot } from './permission-types';
import { IAuthzIoService, ICommandService, Inject, Injector, IPermissionService, Rectangle } from '@univerjs/core';
-import { UnitRole } from '@univerjs/protocol';
-import { DeleteRangeProtectionMutation, RangeProtectionRuleModel, SetRangeProtectionMutation, UnitObject } from '@univerjs/sheets';
+import { UnitObject, UnitRole } from '@univerjs/protocol';
+import { DeleteRangeProtectionMutation, RangeProtectionRuleModel, SetRangeProtectionMutation } from '@univerjs/sheets';
import { RANGE_PERMISSION_POINT_MAP } from './permission-point-map';
import { RangePermissionPoint } from './permission-types';
import { handleWorksheetRangePermissionIsEmpty } from './util';
diff --git a/packages/sheets/src/facade/permission/f-worksheet-permission.ts b/packages/sheets/src/facade/permission/f-worksheet-permission.ts
index cd54fd3916..55a4303c92 100644
--- a/packages/sheets/src/facade/permission/f-worksheet-permission.ts
+++ b/packages/sheets/src/facade/permission/f-worksheet-permission.ts
@@ -30,9 +30,18 @@ import type {
WorksheetMode,
WorksheetPermissionSnapshot,
} from './permission-types';
-import { cellToRange, generateRandomId, IAuthzIoService, ICommandService, Inject, Injector, IPermissionService, Rectangle } from '@univerjs/core';
+import {
+ cellToRange,
+ generateRandomId,
+ IAuthzIoService,
+ ICommandService,
+ Inject,
+ Injector,
+ IPermissionService,
+ Rectangle,
+} from '@univerjs/core';
import { FBase } from '@univerjs/core/facade';
-import { UnitAction, UnitRole } from '@univerjs/protocol';
+import { UnitAction, UnitObject, UnitRole } from '@univerjs/protocol';
import {
AddRangeProtectionMutation,
AddWorksheetProtectionMutation,
@@ -44,7 +53,6 @@ import {
RangeProtectionPermissionEditPoint,
RangeProtectionPermissionViewPoint,
RangeProtectionRuleModel,
- UnitObject,
ViewStateEnum,
WorksheetProtectionPointModel,
WorksheetProtectionRuleModel,
@@ -52,7 +60,13 @@ import {
import { FRangeProtectionRule } from './f-range-protection-rule';
import { WORKSHEET_PERMISSION_POINT_MAP } from './permission-point-map';
import { WorksheetPermissionPoint } from './permission-types';
-import { determineEditState, determineScope, determineViewState, getListRangeProtectionRules, handleWorksheetRangePermissionIsEmpty } from './util';
+import {
+ determineEditState,
+ determineScope,
+ determineViewState,
+ getListRangeProtectionRules,
+ handleWorksheetRangePermissionIsEmpty,
+} from './util';
/**
* Implementation class for WorksheetPermission
diff --git a/packages/sheets/src/index.ts b/packages/sheets/src/index.ts
index d0ce6bcd2a..6355b97509 100644
--- a/packages/sheets/src/index.ts
+++ b/packages/sheets/src/index.ts
@@ -658,4 +658,3 @@ export {
export { SheetSkeletonService } from './skeleton/skeleton.service';
export type { ISheetSkeletonManagerParam } from './skeleton/skeleton.service';
export { attachPrimaryWithCoord, attachRangeWithCoord, attachSelectionWithCoord } from './skeleton/util';
-export { UnitAction, UnitObject } from '@univerjs/protocol';