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.

chore: identifiers grouping

Wenzhao Hu355dd4a474c9
diff --git a/packages/base-sheets/src/index.ts b/packages/base-sheets/src/index.ts
index 8125c6186f..f4c31bddd8 100644
--- a/packages/base-sheets/src/index.ts
+++ b/packages/base-sheets/src/index.ts
@@ -2,6 +2,18 @@ export * from './base-sheets-plugin';
// #region services
export { COMMAND_LISTENER_SKELETON_CHANGE } from './basics/const/command-listener-const';
+export {
+ type IAddWorksheetMergeMutationParams,
+ type IDeleteRangeMutationParams,
+ type IInsertColMutationParams,
+ type IInsertRangeMutationParams,
+ type IInsertRowMutationParams,
+ type IInsertSheetMutationParams,
+ type IRemoveColMutationParams,
+ type IRemoveRowsMutationParams,
+ type IRemoveSheetMutationParams,
+ type IRemoveWorksheetMergeMutationParams,
+} from './basics/interfaces/mutation-interface';
export {
convertSelectionDataToRange,
getNormalSelectionStyle,
@@ -23,19 +35,12 @@ export {
shrinkToNextGapRange,
} from './commands/commands/utils/selection-util';
export { BorderStyleManagerService } from './services/border-style-manager.service';
+export { SheetEditablePermission, SheetPermissionService } from './services/permission';
+export { RefRangeService } from './services/ref-range.service';
export { NORMAL_SELECTION_PLUGIN_NAME, SelectionManagerService } from './services/selection-manager.service';
-// #endregion
-
// #region commands
-export { type IInsertColMutationParams, type IInsertRowMutationParams } from './basics/interfaces/mutation-interface';
-export {
- type IAddWorksheetMergeMutationParams,
- type IRemoveWorksheetMergeMutationParams,
-} from './basics/interfaces/mutation-interface';
-export { type IRemoveSheetMutationParams } from './basics/interfaces/mutation-interface';
-export { type IInsertSheetMutationParams } from './basics/interfaces/mutation-interface';
export {
AddWorksheetMergeAllCommand,
AddWorksheetMergeCommand,
@@ -200,5 +205,3 @@ export {
} from './commands/mutations/set-worksheet-row-height.mutation';
export { type ISetSelectionsOperationParams, SetSelectionsOperation } from './commands/operations/selection.operation';
export { type ISheetCommandSharedParams } from './commands/utils/interface';
-export { SheetEditablePermission, SheetPermissionService } from './services/permission';
-export { RefRangeService } from './services/ref-range.service';
diff --git a/packages/core/src/types/interfaces/i-workbook-data.ts b/packages/core/src/types/interfaces/i-workbook-data.ts
index bc8243f7a0..ac37b859c7 100644
--- a/packages/core/src/types/interfaces/i-workbook-data.ts
+++ b/packages/core/src/types/interfaces/i-workbook-data.ts
@@ -15,17 +15,17 @@ export interface IWorkbookConfig extends IExtraModelConfig {
/** Revision of this document. Would be used in collaborated editing. Starts from one. */
rev?: number;
-
- lastModifiedBy: string;
- appVersion: string;
- createdTime: string;
creator: string;
- extensions: [];
- locale: LocaleType;
- modifiedTime: string;
name: string;
sheetOrder: string[]; // sheet id order list ['xxxx-sheet3', 'xxxx-sheet1','xxxx-sheet2']
+ createdTime: string;
+ appVersion: string;
+ modifiedTime: string;
+ timeZone: string;
+ lastModifiedBy: string;
+ locale: LocaleType;
+
sheets: { [sheetId: string]: Partial<IWorksheetConfig> };
+
styles: IKeyType<Nullable<IStyleData>>;
- timeZone: string;
}