Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
fix(base-sheets): rename SheetCommand to Command
Dushusir7751505c159b
diff --git a/packages/base-component/src/Types/index.d.ts b/packages/base-component/src/Types/index.d.tsindex 9fa60394e0..2b26e989ef 100644--- a/packages/base-component/src/Types/index.d.ts+++ b/packages/base-component/src/Types/index.d.ts@@ -1,3 +1,2 @@export * from '../index';declare module '@univer/base-component' { }-diff --git a/packages/base-sheets/src/Controller/Selection/SelectionManager.ts b/packages/base-sheets/src/Controller/Selection/SelectionManager.tsindex 7666903381..b2bfb47dd3 100644--- a/packages/base-sheets/src/Controller/Selection/SelectionManager.ts+++ b/packages/base-sheets/src/Controller/Selection/SelectionManager.ts@@ -1,5 +1,5 @@import { IMouseEvent, IPointerEvent, Rect, Spreadsheet, SpreadsheetColumnTitle, SpreadsheetRowTitle, ScrollTimer } from '@univer/base-render';-import { Nullable, Observer, Worksheet, ISelection, makeCellToSelection, IRangeData, RangeList, Range, IRangeCellData, ICellInfo, SheetCommand, Direction } from '@univer/core';+import { Nullable, Observer, Worksheet, ISelection, makeCellToSelection, IRangeData, RangeList, Range, IRangeCellData, ICellInfo, Command, Direction } from '@univer/core';import { ACTION_NAMES, ISelectionsConfig } from '../../Basics';import { ISelectionModelValue, ISetSelectionValueActionData } from '../../Model/Action/SetSelectionValueAction';import { SelectionModel } from '../../Model/SelectionModel';@@ -257,7 +257,7 @@ export class SelectionManager {selections: models,};- const command = new SheetCommand(workbook, value);+ const command = new Command(workbook, value);commandManager.invoke(command);}@@ -289,7 +289,7 @@ export class SelectionManager {selections: selectionModelsValue,};- const command = new SheetCommand(workbook, value);+ const command = new Command(workbook, value);commandManager.invoke(command);}diff --git a/packages/sheets-plugin-numfmt/src/Controller/NumfmtController.ts b/packages/sheets-plugin-numfmt/src/Controller/NumfmtController.tsindex 85dfbffda9..c7c7beb4f3 100644--- a/packages/sheets-plugin-numfmt/src/Controller/NumfmtController.ts+++ b/packages/sheets-plugin-numfmt/src/Controller/NumfmtController.ts@@ -1,4 +1,4 @@-import { SheetCommand, Range, IRangeData, ObjectMatrix, ObjectMatrixPrimitiveType, PLUGIN_NAMES, ACTION_NAMES } from '@univer/core';+import { Command, Range, IRangeData, ObjectMatrix, ObjectMatrixPrimitiveType, PLUGIN_NAMES, ACTION_NAMES } from '@univer/core';import { BaseComponentRender } from '@univer/base-component';import { IToolBarItemProps, SheetPlugin } from '@univer/base-sheets';import { NumfmtModel } from '../Model/NumfmtModel';@@ -52,7 +52,7 @@ export class NumfmtController {},{locale: 'format.moreNumber',- onClick: () => {},+ onClick: () => { },},],},@@ -79,7 +79,7 @@ export class NumfmtController {rangeData: numfmtRange,cellValue: numfmtMatrix.toJSON(),};- const command = new SheetCommand(pluginContext.getWorkBook(), config);+ const command = new Command(pluginContext.getWorkBook(), config);commandManager.invoke(command);}@@ -95,7 +95,7 @@ export class NumfmtController {rangeData: numfmtRange,cellValue: numfmtMatrix.toJSON(),};- const command = new SheetCommand(pluginContext.getWorkBook(), config);+ const command = new Command(pluginContext.getWorkBook(), config);commandManager.invoke(command);}}