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
feat(core): add version and package name validation for plugins (#6653)
白熱a1b83e5da4e8
diff --git a/common/debugger/src/plugin.ts b/common/debugger/src/plugin.tsindex 3763956b24..28f3e83798 100644--- a/common/debugger/src/plugin.ts+++ b/common/debugger/src/plugin.ts@@ -17,6 +17,7 @@import type { Dependency } from '@univerjs/core';import type { IUniverDebuggerConfig } from './controllers/config.schema';import { IConfigService, Inject, Injector, merge, Plugin, registerDependencies, touchDependencies } from '@univerjs/core';+import pkg from '../package.json';import { DEBUGGER_PLUGIN_CONFIG_KEY, defaultPluginConfig } from './controllers/config.schema';import { DebuggerController } from './controllers/debugger.controller';import { E2EController } from './controllers/e2e/e2e.controller';@@ -25,6 +26,8 @@ import { UniverWatermarkMenuController } from './controllers/watermark.menu.contexport class UniverDebuggerPlugin extends Plugin {static override pluginName = 'UNIVER_DEBUGGER_PLUGIN';+ static override packageName = pkg.name;+ static override version = pkg.version;private _debuggerController!: DebuggerController;diff --git a/common/shared/eslint/index.ts b/common/shared/eslint/index.tsindex 1475df5631..8bf254538f 100644--- a/common/shared/eslint/index.ts+++ b/common/shared/eslint/index.ts@@ -235,7 +235,11 @@ export const typescriptPreset = (): Linter.Config => {** @returns ESLint configuration object for Univer source files*/-export const univerSourcePreset = (): Linter.Config => {+export const univerSourcePreset = (options: {+ noFacadeImportsOutsideFacade?: {+ ignore?: string[];+ };+} = {}): Linter.Config => {return {files: ['**/*.ts', '**/*.tsx'],ignores: [@@ -245,7 +249,9 @@ export const univerSourcePreset = (): Linter.Config => {],rules: {'univer/no-self-package-imports': 'error',- 'univer/no-facade-imports-outside-facade': 'error',+ 'univer/no-facade-imports-outside-facade': ['error', {+ ignore: options.noFacadeImportsOutsideFacade?.ignore ?? [],+ }],},languageOptions: {parser: typescriptParser,diff --git a/common/shared/eslint/plugins/no-facade-imports-outside-facade.ts b/common/shared/eslint/plugins/no-facade-imports-outside-facade.tsindex efc1117eff..05d9f9810c 100644--- a/common/shared/eslint/plugins/no-facade-imports-outside-facade.ts+++ b/common/shared/eslint/plugins/no-facade-imports-outside-facade.ts@@ -1,12 +1,48 @@/* eslint-disable header/header */import path from 'node:path';+function normalizePath(filePath) {+ return filePath.split(path.sep).join('/');+}++function shouldIgnoreFile(normalizedFilePath, ignorePaths) {+ return ignorePaths.some((ignorePath) => {+ if (typeof ignorePath !== 'string') {+ return false;+ }++ const normalizedIgnorePath = normalizePath(ignorePath).replace(/^\.\//, '');++ if (!normalizedIgnorePath) {+ return false;+ }++ return normalizedFilePath === normalizedIgnorePath+ || normalizedFilePath.endsWith(`/${normalizedIgnorePath}`)+ || normalizedFilePath.includes(normalizedIgnorePath);+ });+}+export default {meta: {type: 'problem',docs: {description: 'Disallow imports containing facade in non-facade files',},+ schema: [+ {+ type: 'object',+ properties: {+ ignore: {+ type: 'array',+ items: {+ type: 'string',+ },+ },+ },+ additionalProperties: false,+ },+ ],messages: {noFacadeImports: 'Imports containing "facade" are not allowed in non-facade files: "{{importPath}}"',},@@ -14,7 +50,13 @@ export default {create(context) {const filename = context.getFilename();- const normalizedPath = filename.split(path.sep).join('/');+ const normalizedPath = normalizePath(filename);+ const [ruleOptions = {}] = context.options;+ const ignorePaths = Array.isArray(ruleOptions.ignore) ? ruleOptions.ignore : [];++ if (shouldIgnoreFile(normalizedPath, ignorePaths)) {+ return {};+ }const isInPackages = normalizedPath.includes('/packages/');const isInFacade = normalizedPath.includes('/facade/');@@ -31,10 +73,10 @@ export default {const parentDir = parentDirMatch[1];const packagePrefix = parentDir === 'univer'- ? '@univerjs/' :- parentDir === 'univer-pro'- ? '@univerjs-pro/' :- null;+ ? '@univerjs/'+ : parentDir === 'univer-pro'+ ? '@univerjs-pro/'+ : null;if (!packagePrefix) {return {};diff --git a/common/shared/vite/cleanup-pkg-plugin.ts b/common/shared/vite/cleanup-pkg-plugin.tsindex 980616d6f2..6f9a4948cd 100644--- a/common/shared/vite/cleanup-pkg-plugin.ts+++ b/common/shared/vite/cleanup-pkg-plugin.ts@@ -22,6 +22,9 @@ import sortKeys from 'sort-keys';import localPkg from '../package.json';import { peerDepsMap } from './data';+type StringMap = Record<string, string>;+type PeerDepValue = (typeof peerDepsMap)[keyof typeof peerDepsMap] & { optional?: boolean };+function filterPackageName(packageName: string): string {if (packageName.startsWith('@univerjs/')) {return packageName.split('/').slice(0, 2).join('/');@@ -37,10 +40,11 @@ export function cleanupPkgPlugin(): Plugin {const __pkg = path.resolve(process.cwd(), 'package.json');const pkg = fs.readJSONSync(__pkg);const isPro = pkg.name.startsWith('@univerjs-pro');+ const localDevDependencies = localPkg.devDependencies as StringMap;- const peerDeps = {};- const deps = {};- const optionalDeps = {};+ const peerDeps: StringMap = {};+ const deps: StringMap = {};+ const optionalDeps: StringMap = {};return {name: 'cleanup-pkg',@@ -48,10 +52,10 @@ export function cleanupPkgPlugin(): Plugin {apply: 'build',resolveId(source) {- if (source in peerDepsMap) {- const value = peerDepsMap[source];+ if (Object.prototype.hasOwnProperty.call(peerDepsMap, source)) {+ const value = peerDepsMap[source as keyof typeof peerDepsMap] as PeerDepValue;if (!(value.version in peerDepsMap)) {- if ('optional' in value) {+ if (value.optional) {optionalDeps[value.name] = value.version;} else {peerDeps[value.name] = value.version;@@ -63,7 +67,10 @@ export function cleanupPkgPlugin(): Plugin {if (name === '@univerjs/protocol' && isPro) {deps[name] = 'workspace:*';} else {- deps[name] = localPkg.devDependencies[name];+ const dependencyVersion = localDevDependencies[name];+ if (dependencyVersion) {+ deps[name] = dependencyVersion;+ }}} else if (name !== pkg.name) {const name = filterPackageName(source);@@ -139,13 +146,20 @@ export function cleanupPkgPlugin(): Plugin {if (key === '@univerjs/protocol' && isPro) {pkg.devDependencies[key] = 'workspace:*';} else {- pkg.devDependencies[key] = localPkg.devDependencies[key];+ const dependencyVersion = localDevDependencies[key];+ if (dependencyVersion) {+ pkg.devDependencies[key] = dependencyVersion;+ }}}}}- fs.writeJSONSync(__pkg, pkg, { spaces: 4, EOL: '\n' });+ // Write package.json atomically to avoid concurrent readers seeing partial JSON content.+ const tempPkgPath = `${__pkg}.${process.pid}.${Date.now()}.tmp`;+ const pkgContent = `${JSON.stringify(pkg, null, 4)}\n`;+ fs.writeFileSync(tempPkgPath, pkgContent, 'utf8');+ fs.moveSync(tempPkgPath, __pkg, { overwrite: true });},};};diff --git a/eslint.config.ts b/eslint.config.tsindex e4533fd63c..5f7b5fbab9 100644--- a/eslint.config.ts+++ b/eslint.config.ts@@ -41,7 +41,11 @@ export default antfu(headerPreset(),penetratingPreset(),typescriptPreset(),- univerSourcePreset(),+ univerSourcePreset({+ noFacadeImportsOutsideFacade: {+ ignore: ['packages/uniscript/src/services/script-execution.service.ts'],+ },+ }),facadePreset(),noBarrelImportPreset(),tailwindcssPreset(),diff --git a/examples/src/mobile-s/lazy.ts b/examples/src/mobile-s/lazy.tsindex 0f3474de06..8fab86e185 100644--- a/examples/src/mobile-s/lazy.ts+++ b/examples/src/mobile-s/lazy.ts@@ -14,8 +14,8 @@* limitations under the License.*/-import { UniverSheetsFilterUIPlugin } from '@univerjs/sheets-filter-ui';import type { Plugin, PluginCtor } from '@univerjs/core';+import { UniverSheetsFilterUIPlugin } from '@univerjs/sheets-filter-ui';export default function getLazyPlugins(): Array<[PluginCtor<Plugin>] | [PluginCtor<Plugin>, unknown]> {return [diff --git a/packages/action-recorder/src/plugin.ts b/packages/action-recorder/src/plugin.tsindex 3e0b077ec2..e96683e6a3 100644--- a/packages/action-recorder/src/plugin.ts+++ b/packages/action-recorder/src/plugin.ts@@ -17,6 +17,7 @@import type { Dependency } from '@univerjs/core';import type { IUniverActionRecorderConfig } from './controllers/config.schema';import { IConfigService, Inject, Injector, merge, Plugin } from '@univerjs/core';+import pkg from '../package.json';import { ActionRecorderController } from './controllers/action-recorder.controller';import { ACTION_RECORDER_PLUGIN_CONFIG_KEY, defaultPluginConfig } from './controllers/config.schema';import { ActionRecorderService } from './services/action-recorder.service';@@ -28,6 +29,8 @@ import { ActionReplayService } from './services/replay.service';*/export class UniverActionRecorderPlugin extends Plugin {static override pluginName = 'UNIVER_ACTION_RECORDER_PLUGIN';+ static override packageName = pkg.name;+ static override version = pkg.version;constructor(private readonly _config: Partial<IUniverActionRecorderConfig> = defaultPluginConfig,diff --git a/packages/core/src/services/__tests__/plugin-version.spec.ts b/packages/core/src/services/__tests__/plugin-version.spec.tsnew file mode 100644index 0000000000..e8df968bcb--- /dev/null+++ b/packages/core/src/services/__tests__/plugin-version.spec.ts@@ -0,0 +1,53 @@+/**+ * 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.+ */++import type { Injector } from '../../common/di';+import { describe, expect, it } from 'vitest';+import { UniverInstanceType } from '../../common/unit';+import { Univer } from '../../univer';+import { Plugin } from '../plugin/plugin.service';++describe('plugin version check', () => {+ it('should allow registering plugin with same version as core', () => {+ class SameVersionPlugin extends Plugin {+ static override pluginName = 'same-version-plugin';+ static override packageName = '@univerjs/same-version-plugin';+ static override version = Plugin.version;+ static override type = UniverInstanceType.UNIVER_SHEET;++ protected override _injector!: Injector;+ }++ const univer = new Univer();+ expect(() => univer.registerPlugin(SameVersionPlugin)).not.toThrow();+ });++ it('should throw with package name when plugin version mismatches', () => {+ class MismatchVersionPlugin extends Plugin {+ static override pluginName = 'mismatch-version-plugin';+ static override packageName = '@univerjs/mismatch-version-plugin';+ static override version = '__MISMATCH_VERSION__';+ static override type = UniverInstanceType.UNIVER_SHEET;++ protected override _injector!: Injector;+ }++ const univer = new Univer();+ expect(() => univer.registerPlugin(MismatchVersionPlugin)).toThrowError(+ /package "@univerjs\/mismatch-version-plugin" version mismatch/+ );+ });+});diff --git a/packages/core/src/services/plugin/plugin.service.ts b/packages/core/src/services/plugin/plugin.service.tsindex 3241705cd6..67d6a35dae 100644--- a/packages/core/src/services/plugin/plugin.service.ts+++ b/packages/core/src/services/plugin/plugin.service.ts@@ -17,6 +17,7 @@import type { Ctor, IDisposable } from '../../common/di';import type { UnitType } from '../../common/unit';import { skip } from 'rxjs';+import pkg from '../../../package.json';import { Inject, Injector } from '../../common/di';import { UniverInstanceType } from '../../common/unit';import { Disposable } from '../../shared/lifecycle';@@ -31,6 +32,8 @@ export const DependentOnSymbol = Symbol('DependentOn');export type PluginCtor<T extends Plugin = Plugin> = Ctor<T> & {type: UnitType;pluginName: string;+ packageName: string;+ version: string;[DependentOnSymbol]?: PluginCtor[];};@@ -39,6 +42,8 @@ export type PluginCtor<T extends Plugin = Plugin> = Ctor<T> & {*/export abstract class Plugin extends Disposable {static pluginName: string;+ static packageName = pkg.name;+ static version = pkg.version;static type: UnitType = UniverInstanceType.UNIVER_UNKNOWN;@@ -183,7 +188,7 @@ export class PluginService implements IDisposable {}private _assertPluginValid(ctor: PluginCtor<Plugin>): void {- const { type, pluginName } = ctor;+ const { type, pluginName, packageName, version } = ctor;if (type === UniverInstanceType.UNRECOGNIZED) {throw new Error(`[PluginService]: invalid plugin type for ${ctor.name}. Please assign a "type" to your plugin.`);@@ -193,6 +198,14 @@ export class PluginService implements IDisposable {throw new Error(`[PluginService]: no plugin name for ${ctor.name}. Please assign a "pluginName" to your plugin.`);}+ if (version && version !== Plugin.version) {+ throw new Error(+ `[PluginService]: package "${packageName ?? 'UNKNOWN'}" version mismatch. `+ + `Plugin version is "${version}" but @univerjs/core version is "${Plugin.version}". `+ + 'Please make sure all @univerjs packages use the same version.'+ );+ }+if (this._seenPlugins.has(pluginName)) {throw new Error(`[PluginService]: duplicated plugin name for "${pluginName}". Maybe a plugin that dependents on "${pluginName} has already registered it. In that case please register "${pluginName}" before the that plugin.`);}diff --git a/packages/core/src/shared/lru/lru-map.ts b/packages/core/src/shared/lru/lru-map.tsindex 3773ce0fbb..36829f5732 100644--- a/packages/core/src/shared/lru/lru-map.ts+++ b/packages/core/src/shared/lru/lru-map.ts@@ -14,10 +14,9 @@* limitations under the License.*/+import type { IDisposable } from '../../common/di';import { remove } from '../../common/array';-import { toDisposable } from '../lifecycle';-import type { IDisposable } from '../../common/di';const NEWER = Symbol('newer');const OLDER = Symbol('older');diff --git a/packages/core/src/shared/object-matrix-query.ts b/packages/core/src/shared/object-matrix-query.tsindex 0109c1b316..7d58d61621 100644--- a/packages/core/src/shared/object-matrix-query.ts+++ b/packages/core/src/shared/object-matrix-query.ts@@ -14,11 +14,11 @@* limitations under the License.*/+import type { IRange } from '../sheets/typedef';+import type { Nullable } from './types';import { Range } from '../sheets/range';import { ObjectMatrix } from './object-matrix';import { Rectangle } from './rectangle';-import type { IRange } from '../sheets/typedef';-import type { Nullable } from './types';function maximalRectangle<T>(matrix: T[][], match: (val: T) => boolean) {if (matrix.length === 0 || matrix[0].length === 0) return null;diff --git a/packages/data-validation/src/commands/commands/data-validation.command.ts b/packages/data-validation/src/commands/commands/data-validation.command.tsindex e216521b5e..09d28b8e86 100644--- a/packages/data-validation/src/commands/commands/data-validation.command.ts+++ b/packages/data-validation/src/commands/commands/data-validation.command.ts@@ -14,14 +14,14 @@* limitations under the License.*/-import { CommandType, ICommandService, ILogService, IUndoRedoService } from '@univerjs/core';import type { ICommand, IDataValidationRule, IDataValidationRuleBase, IDataValidationRuleOptions, IMutationInfo, Injector, IRange, ISheetDataValidationRule } from '@univerjs/core';+import type { IAddDataValidationMutationParams, IRemoveDataValidationMutationParams, IUpdateDataValidationMutationParams } from '../mutations/data-validation.mutation';+import { CommandType, ICommandService, ILogService, IUndoRedoService } from '@univerjs/core';import { getRuleOptions, getRuleSetting } from '../../common/util';import { DataValidationModel } from '../../models/data-validation-model';import { DataValidatorRegistryService } from '../../services/data-validator-registry.service';import { UpdateRuleType } from '../../types/enum/update-rule-type';import { AddDataValidationMutation, RemoveDataValidationMutation, UpdateDataValidationMutation } from '../mutations/data-validation.mutation';-import type { IAddDataValidationMutationParams, IRemoveDataValidationMutationParams, IUpdateDataValidationMutationParams } from '../mutations/data-validation.mutation';interface ISheetCommandSharedParams {unitId: string;diff --git a/packages/data-validation/src/plugin.ts b/packages/data-validation/src/plugin.tsindex 7d15c325b1..dee085be2e 100644--- a/packages/data-validation/src/plugin.ts+++ b/packages/data-validation/src/plugin.ts@@ -17,6 +17,7 @@import type { Dependency } from '@univerjs/core';import type { IUniverDataValidationConfig } from './controllers/config.schema';import { ICommandService, IConfigService, Inject, Injector, merge, Plugin, UniverInstanceType } from '@univerjs/core';+import pkg from '../package.json';import { AddDataValidationCommand, RemoveAllDataValidationCommand, RemoveDataValidationCommand, UpdateDataValidationOptionsCommand, UpdateDataValidationSettingCommand } from './commands/commands/data-validation.command';import { AddDataValidationMutation, RemoveDataValidationMutation, UpdateDataValidationMutation } from './commands/mutations/data-validation.mutation';import { DATA_VALIDATION_PLUGIN_CONFIG_KEY, defaultPluginConfig } from './controllers/config.schema';@@ -24,10 +25,10 @@ import { DataValidationResourceController } from './controllers/dv-resource.contimport { DataValidationModel } from './models/data-validation-model';import { DataValidatorRegistryService } from './services/data-validator-registry.service';-const PLUGIN_NAME = 'UNIVER_DATA_VALIDATION_PLUGIN';-export class UniverDataValidationPlugin extends Plugin {- static override pluginName = PLUGIN_NAME;+ static override pluginName = 'UNIVER_DATA_VALIDATION_PLUGIN';+ static override packageName = pkg.name;+ static override version = pkg.version;static override type = UniverInstanceType.UNIVER_SHEET;constructor(diff --git a/packages/design/src/components/tree/index.ts b/packages/design/src/components/tree/index.tsindex b088ca0efa..b3b75989b4 100644--- a/packages/design/src/components/tree/index.ts+++ b/packages/design/src/components/tree/index.ts@@ -15,4 +15,4 @@*/export { type ITreeNodeProps, type ITreeProps, Tree, TreeSelectionMode } from './Tree';-export { mergeTreeSelected, findSubTreeFromPath, findNodePathFromTree, filterLeafNode } from './util';+export { filterLeafNode, findNodePathFromTree, findSubTreeFromPath, mergeTreeSelected } from './util';diff --git a/packages/docs-drawing-ui/src/commands/commands/group-doc-drawing.command.ts b/packages/docs-drawing-ui/src/commands/commands/group-doc-drawing.command.tsindex c88562a38d..4e25d83ad9 100644--- a/packages/docs-drawing-ui/src/commands/commands/group-doc-drawing.command.ts+++ b/packages/docs-drawing-ui/src/commands/commands/group-doc-drawing.command.ts@@ -15,12 +15,8 @@*/import type { IAccessor, ICommand } from '@univerjs/core';-import {- CommandType,- ICommandService,- IUndoRedoService,-} from '@univerjs/core';import type { IDrawingGroupUpdateParam, IDrawingJsonUndo1 } from '@univerjs/drawing';+import { CommandType } from '@univerjs/core';import { IDocDrawingService } from '@univerjs/docs-drawing';/**@@ -30,8 +26,6 @@ export const GroupDocDrawingCommand: ICommand = {id: 'doc.command.group-doc-image',type: CommandType.COMMAND,handler: (accessor: IAccessor, params?: IDrawingGroupUpdateParam[]) => {- const commandService = accessor.get(ICommandService);- const undoRedoService = accessor.get(IUndoRedoService);const docDrawingService = accessor.get(IDocDrawingService);if (!params) return false;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.tsindex f2ea50ee08..5042a38c0a 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@@ -15,11 +15,11 @@*/import type { IAccessor, ICommand } from '@univerjs/core';-import { CommandType, Direction, ICommandService, IUniverInstanceService, PositionedObjectLayoutType } 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 { IDocDrawingService } from '@univerjs/docs-drawing';import { IRenderManagerService } from '@univerjs/engine-render';-import type { IDrawingDocTransform, IUpdateDrawingDocTransformParams } from './update-doc-drawing.command';import { UpdateDrawingDocTransformCommand } from './update-doc-drawing.command';export interface IMoveDrawingsCommandParams {diff --git a/packages/docs-drawing-ui/src/commands/commands/ungroup-doc-drawing.command.ts b/packages/docs-drawing-ui/src/commands/commands/ungroup-doc-drawing.command.tsindex a74f9ae5b9..74bbd8357b 100644--- a/packages/docs-drawing-ui/src/commands/commands/ungroup-doc-drawing.command.ts+++ b/packages/docs-drawing-ui/src/commands/commands/ungroup-doc-drawing.command.ts@@ -15,13 +15,8 @@*/import type { IAccessor, ICommand } from '@univerjs/core';-import {- CommandType,- ICommandService,- IUndoRedoService,-} from '@univerjs/core';-import type { IDrawingGroupUpdateParam, IDrawingJsonUndo1 } from '@univerjs/drawing';+import { CommandType } from '@univerjs/core';import { IDocDrawingService } from '@univerjs/docs-drawing';/**@@ -31,8 +26,6 @@ export const UngroupDocDrawingCommand: ICommand = {id: 'doc.command.ungroup-doc-image',type: CommandType.COMMAND,handler: (accessor: IAccessor, params?: IDrawingGroupUpdateParam[]) => {- const commandService = accessor.get(ICommandService);- const undoRedoService = accessor.get(IUndoRedoService);const docDrawingService = accessor.get(IDocDrawingService);if (!params) return false;diff --git a/packages/docs-drawing-ui/src/plugin.ts b/packages/docs-drawing-ui/src/plugin.tsindex cfad3f2593..2d4ceac855 100644--- a/packages/docs-drawing-ui/src/plugin.ts+++ b/packages/docs-drawing-ui/src/plugin.ts@@ -22,23 +22,24 @@ import { UniverDrawingPlugin } from '@univerjs/drawing';import { UniverDrawingUIPlugin } from '@univerjs/drawing-ui';import { IRenderManagerService } from '@univerjs/engine-render';import { UniverUIPlugin } from '@univerjs/ui';+import pkg from '../package.json';import { defaultPluginConfig, DOCS_DRAWING_UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';-import { DocDrawingUIController } from './controllers/doc-drawing.controller';import { DocDrawingAddRemoveController } from './controllers/doc-drawing-notification.controller';import { DocDrawingPrintingController } from './controllers/doc-drawing-printing.controller';import { DocDrawingTransformerController } from './controllers/doc-drawing-transformer-update.controller';+import { DocDrawingUIController } from './controllers/doc-drawing.controller';import { DocFloatDomController } from './controllers/doc-float-dom.controller';import { DocDrawingPopupMenuController } from './controllers/drawing-popup-menu.controller';import { DocDrawingTransformUpdateController } from './controllers/render-controllers/doc-drawing-transform-update.controller';import { DocDrawingUpdateRenderController } from './controllers/render-controllers/doc-drawing-update.render-controller';import { DocRefreshDrawingsService } from './services/doc-refresh-drawings.service';-const PLUGIN_NAME = 'DOC_DRAWING_UI_PLUGIN';-@DependentOn(UniverDrawingUIPlugin, UniverDrawingPlugin, UniverDocsDrawingPlugin, UniverUIPlugin)export class UniverDocsDrawingUIPlugin extends Plugin {static override type = UniverInstanceType.UNIVER_DOC;- static override pluginName = PLUGIN_NAME;+ static override pluginName = 'DOC_DRAWING_UI_PLUGIN';+ static override packageName = pkg.name;+ static override version = pkg.version;constructor(private readonly _config: Partial<IUniverDocsDrawingUIConfig> = defaultPluginConfig,diff --git a/packages/docs-drawing/src/plugin.ts b/packages/docs-drawing/src/plugin.tsindex 840b190ed4..775ce50e7d 100644--- a/packages/docs-drawing/src/plugin.ts+++ b/packages/docs-drawing/src/plugin.ts@@ -17,12 +17,15 @@import type { Dependency } from '@univerjs/core';import type { IUniverDocsDrawingConfig } from './controllers/config.schema';import { IConfigService, Inject, Injector, merge, Plugin, touchDependencies, UniverInstanceType } from '@univerjs/core';+import pkg from '../package.json';import { defaultPluginConfig, DOCS_DRAWING_PLUGIN_CONFIG_KEY } from './controllers/config.schema';import { DocDrawingController, DOCS_DRAWING_PLUGIN } from './controllers/doc-drawing.controller';import { DocDrawingService, IDocDrawingService } from './services/doc-drawing.service';export class UniverDocsDrawingPlugin extends Plugin {static override pluginName = DOCS_DRAWING_PLUGIN;+ static override packageName = pkg.name;+ static override version = pkg.version;static override type = UniverInstanceType.UNIVER_DOC;constructor(diff --git a/packages/docs-hyper-link-ui/src/plugin.ts b/packages/docs-hyper-link-ui/src/plugin.tsindex 0e0fe497ea..ba3a496a8b 100644--- a/packages/docs-hyper-link-ui/src/plugin.ts+++ b/packages/docs-hyper-link-ui/src/plugin.ts@@ -19,6 +19,7 @@ import type { IUniverDocsHyperLinkUIConfig } from './controllers/config.schema';import { DependentOn, IConfigService, Inject, Injector, merge, Plugin, UniverInstanceType } from '@univerjs/core';import { UniverDocsHyperLinkPlugin } from '@univerjs/docs-hyper-link';import { IRenderManagerService } from '@univerjs/engine-render';+import pkg from '../package.json';import { defaultPluginConfig, DOCS_HYPER_LINK_UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';import { DocHyperLinkSelectionController } from './controllers/doc-hyper-link-selection.controller';import { DocHyperLinkEventRenderController } from './controllers/render-controllers/hyper-link-event.render-controller';@@ -30,6 +31,8 @@ import { DOC_HYPER_LINK_UI_PLUGIN } from './types/const';@DependentOn(UniverDocsHyperLinkPlugin)export class UniverDocsHyperLinkUIPlugin extends Plugin {static override pluginName = DOC_HYPER_LINK_UI_PLUGIN;+ static override packageName = pkg.name;+ static override version = pkg.version;static override type = UniverInstanceType.UNIVER_DOC;constructor(diff --git a/packages/docs-hyper-link/src/plugin.ts b/packages/docs-hyper-link/src/plugin.tsindex 24519708a0..374d45370f 100644--- a/packages/docs-hyper-link/src/plugin.ts+++ b/packages/docs-hyper-link/src/plugin.ts@@ -17,12 +17,15 @@import type { Dependency } from '@univerjs/core';import type { IUniverDocsHyperLinkConfig } from './controllers/config.schema';import { ICommandService, IConfigService, Inject, Injector, merge, Plugin, UniverInstanceType } from '@univerjs/core';+import pkg from '../package.json';import { AddHyperLinkMuatation, DeleteHyperLinkMuatation, UpdateHyperLinkMuatation } from './commands/mutations/hyper-link.mutation';import { defaultPluginConfig, DOCS_HYPER_LINK_PLUGIN_CONFIG_KEY } from './controllers/config.schema';import { DOC_HYPER_LINK_PLUGIN, DocHyperLinkResourceController } from './controllers/resource.controller';export class UniverDocsHyperLinkPlugin extends Plugin {static override pluginName = DOC_HYPER_LINK_PLUGIN;+ static override packageName = pkg.name;+ static override version = pkg.version;static override type = UniverInstanceType.UNIVER_DOC;constructor(diff --git a/packages/docs-mention-ui/src/plugin.ts b/packages/docs-mention-ui/src/plugin.tsindex a82ebaf4d1..18619d6341 100644--- a/packages/docs-mention-ui/src/plugin.ts+++ b/packages/docs-mention-ui/src/plugin.ts@@ -17,6 +17,7 @@import type { Dependency } from '@univerjs/core';import type { IUniverDocsMentionUIConfig } from './controllers/config.schema';import { IConfigService, Inject, Injector, merge, Plugin, UniverInstanceType } from '@univerjs/core';+import pkg from '../package.json';import { defaultPluginConfig, DOCS_MENTION_UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';import { DocMentionTriggerController } from './controllers/doc-mention-trigger.controller';import { DocMentionUIController } from './controllers/doc-mention-ui.controller';@@ -26,6 +27,8 @@ import { DOC_MENTION_UI_PLUGIN } from './types/const/const';export class UniverDocsMentionUIPlugin extends Plugin {static override pluginName = DOC_MENTION_UI_PLUGIN;+ static override packageName = pkg.name;+ static override version = pkg.version;static override type = UniverInstanceType.UNIVER_DOC;constructor(diff --git a/packages/docs-quick-insert-ui/src/plugin.ts b/packages/docs-quick-insert-ui/src/plugin.tsindex e84d0a94e5..2d9c002a63 100644--- a/packages/docs-quick-insert-ui/src/plugin.ts+++ b/packages/docs-quick-insert-ui/src/plugin.ts@@ -23,18 +23,19 @@ import { UniverDrawingPlugin } from '@univerjs/drawing';import { UniverDrawingUIPlugin } from '@univerjs/drawing-ui';import { IRenderManagerService } from '@univerjs/engine-render';import { UniverUIPlugin } from '@univerjs/ui';+import pkg from '../package.json';import { defaultPluginConfig, DOCS_QUICK_INSERT_UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';import { DocQuickInsertMenuController } from './controllers/doc-quick-insert-menu.controller';import { DocQuickInsertTriggerController } from './controllers/doc-quick-insert-trigger.controller';import { DocQuickInsertUIController } from './controllers/doc-quick-insert-ui.controller';import { DocQuickInsertPopupService } from './services/doc-quick-insert-popup.service';-const PLUGIN_NAME = 'DOC_QUICK_INSERT_UI_PLUGIN';-@DependentOn(UniverDrawingUIPlugin, UniverDrawingPlugin, UniverDocsDrawingUIPlugin, UniverDocsDrawingPlugin, UniverUIPlugin)export class UniverDocsQuickInsertUIPlugin extends Plugin {static override type = UniverInstanceType.UNIVER_DOC;- static override pluginName = PLUGIN_NAME;+ static override pluginName = 'DOC_QUICK_INSERT_UI_PLUGIN';+ static override packageName = pkg.name;+ static override version = pkg.version;constructor(private readonly _config: Partial<IUniverDocsQuickInsertUIConfig> = defaultPluginConfig,diff --git a/packages/docs-thread-comment-ui/src/plugin.ts b/packages/docs-thread-comment-ui/src/plugin.tsindex bb110895e3..05c45d89c1 100644--- a/packages/docs-thread-comment-ui/src/plugin.ts+++ b/packages/docs-thread-comment-ui/src/plugin.ts@@ -19,6 +19,7 @@ import type { IUniverDocsThreadCommentUIConfig } from './controllers/config.scheimport { DependentOn, IConfigService, Inject, Injector, merge, Plugin, UniverInstanceType } from '@univerjs/core';import { IRenderManagerService } from '@univerjs/engine-render';import { UniverThreadCommentUIPlugin } from '@univerjs/thread-comment-ui';+import pkg from '../package.json';import { PLUGIN_NAME } from './common/const';import { defaultPluginConfig, DOCS_THREAD_COMMENT_UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';import { DocThreadCommentSelectionController } from './controllers/doc-thread-comment-selection.controller';@@ -29,6 +30,8 @@ import { DocThreadCommentService } from './services/doc-thread-comment.service';@DependentOn(UniverThreadCommentUIPlugin)export class UniverDocsThreadCommentUIPlugin extends Plugin {static override pluginName = PLUGIN_NAME;+ static override packageName = pkg.name;+ static override version = pkg.version;static override type = UniverInstanceType.UNIVER_DOC;constructor(diff --git a/packages/docs-ui/src/commands/util.ts b/packages/docs-ui/src/commands/util.tsindex 6b277684ef..e91add5977 100644--- a/packages/docs-ui/src/commands/util.ts+++ b/packages/docs-ui/src/commands/util.ts@@ -14,9 +14,9 @@* limitations under the License.*/+import type { DocumentDataModel, IAccessor } from '@univerjs/core';import { DocSkeletonManagerService } from '@univerjs/docs';import { IRenderManagerService } from '@univerjs/engine-render';-import type { DocumentDataModel, IAccessor } from '@univerjs/core';/*** Get the skeleton of the command's target.diff --git a/packages/docs-ui/src/controllers/render-controllers/doc-contextmenu.render-controller.ts b/packages/docs-ui/src/controllers/render-controllers/doc-contextmenu.render-controller.tsindex 7fb09d0afa..1b7df2aaa4 100644--- a/packages/docs-ui/src/controllers/render-controllers/doc-contextmenu.render-controller.ts+++ b/packages/docs-ui/src/controllers/render-controllers/doc-contextmenu.render-controller.ts@@ -14,6 +14,8 @@* limitations under the License.*/+import type { Workbook } from '@univerjs/core';+import type { Documents, IRenderContext, IRenderModule } from '@univerjs/engine-render';import {DEFAULT_EMPTY_DOCUMENT_VALUE,Disposable,@@ -24,8 +26,6 @@ import {} from '@univerjs/core';import { RichTextEditingMutation } from '@univerjs/docs';import { ContextMenuPosition, IContextMenuService } from '@univerjs/ui';-import type { Workbook } from '@univerjs/core';-import type { Documents, IRenderContext, IRenderModule } from '@univerjs/engine-render';const SKIP_UNIT_IDS = [DEFAULT_EMPTY_DOCUMENT_VALUE,diff --git a/packages/docs-ui/src/plugin.ts b/packages/docs-ui/src/plugin.tsindex 387e717118..d923962c01 100644--- a/packages/docs-ui/src/plugin.ts+++ b/packages/docs-ui/src/plugin.ts@@ -33,6 +33,7 @@ import {import { DocInterceptorService, DocSkeletonManagerService } from '@univerjs/docs';import { IRenderManagerService, UniverRenderEnginePlugin } from '@univerjs/engine-render';import { IShortcutService } from '@univerjs/ui';+import pkg from '../package.json';import { DOC_UI_PLUGIN_NAME } from './basics/const/plugin-name';import { AfterSpaceCommand, EnterCommand, TabCommand } from './commands/commands/auto-format.command';import { BreakLineCommand } from './commands/commands/break-line.command';@@ -144,6 +145,8 @@ import { ShiftTabShortCut } from './shortcuts/format.shortcut';@DependentOn(UniverRenderEnginePlugin)export class UniverDocsUIPlugin extends Plugin {static override pluginName = DOC_UI_PLUGIN_NAME;+ static override packageName = pkg.name;+ static override version = pkg.version;// static override type = UniverInstanceType.UNIVER_DOC;constructor(diff --git a/packages/docs-ui/src/services/clipboard/html-to-udm/paste-plugins/plugin-lark.ts b/packages/docs-ui/src/services/clipboard/html-to-udm/paste-plugins/plugin-lark.tsindex 65a8222ec7..f12be9759e 100644--- a/packages/docs-ui/src/services/clipboard/html-to-udm/paste-plugins/plugin-lark.ts+++ b/packages/docs-ui/src/services/clipboard/html-to-udm/paste-plugins/plugin-lark.ts@@ -14,10 +14,9 @@* limitations under the License.*/+import type { IPastePlugin } from './type';import { BooleanNumber } from '@univerjs/core';-import { extractNodeStyle as getInlineStyle } from '../parse-node-style';-import type { IPastePlugin } from './type';const wordPastePlugin: IPastePlugin = {name: 'univer-doc-paste-plugin-lark',diff --git a/packages/docs-ui/src/services/clipboard/html-to-udm/paste-plugins/plugin-univer.ts b/packages/docs-ui/src/services/clipboard/html-to-udm/paste-plugins/plugin-univer.tsindex 0da9a365d5..90896284fa 100644--- a/packages/docs-ui/src/services/clipboard/html-to-udm/paste-plugins/plugin-univer.ts+++ b/packages/docs-ui/src/services/clipboard/html-to-udm/paste-plugins/plugin-univer.ts@@ -15,8 +15,8 @@*/import type { IParagraph } from '@univerjs/core';-import { getParagraphStyle } from '../utils';import type { IPastePlugin } from './type';+import { getParagraphStyle } from '../utils';const univerPastePlugin: IPastePlugin = {name: 'univer-doc-paste-plugin-univer',diff --git a/packages/docs-ui/src/services/clipboard/html-to-udm/paste-plugins/plugin-word.ts b/packages/docs-ui/src/services/clipboard/html-to-udm/paste-plugins/plugin-word.tsindex bfd50af1c9..42679e2fe2 100644--- a/packages/docs-ui/src/services/clipboard/html-to-udm/paste-plugins/plugin-word.ts+++ b/packages/docs-ui/src/services/clipboard/html-to-udm/paste-plugins/plugin-word.ts@@ -15,11 +15,10 @@*/import type { IParagraph } from '@univerjs/core';+import type { IPastePlugin } from './type';import { BooleanNumber } from '@univerjs/core';-import { extractNodeStyle as getInlineStyle } from '../parse-node-style';import { getParagraphStyle } from '../utils';-import type { IPastePlugin } from './type';const wordPastePlugin: IPastePlugin = {name: 'univer-doc-paste-plugin-word',diff --git a/packages/docs/src/commands/mutations/docs-rename.mutation.ts b/packages/docs/src/commands/mutations/docs-rename.mutation.tsindex c113b4ae1d..559728d474 100644--- a/packages/docs/src/commands/mutations/docs-rename.mutation.ts+++ b/packages/docs/src/commands/mutations/docs-rename.mutation.ts@@ -14,8 +14,8 @@* limitations under the License.*/-import { CommandType, IUniverInstanceService, UniverInstanceType } from '@univerjs/core';import type { DocumentDataModel, ICommand } from '@univerjs/core';+import { CommandType, IUniverInstanceService, UniverInstanceType } from '@univerjs/core';export interface IDocsRenameMutationParams {name: string;diff --git a/packages/docs/src/plugin.ts b/packages/docs/src/plugin.tsindex 97ffe68255..2d8be5c97e 100644--- a/packages/docs/src/plugin.ts+++ b/packages/docs/src/plugin.ts@@ -24,6 +24,7 @@ import {merge,Plugin,} from '@univerjs/core';+import pkg from '../package.json';import { RichTextEditingMutation } from './commands/mutations/core-editing.mutation';import { DocsRenameMutation } from './commands/mutations/docs-rename.mutation';import { SetTextSelectionsOperation } from './commands/operations/text-selection.operation';@@ -32,10 +33,10 @@ import { DocCustomRangeController } from './controllers/custom-range.controller'import { DocSelectionManagerService } from './services/doc-selection-manager.service';import { DocStateEmitService } from './services/doc-state-emit.service';-const PLUGIN_NAME = 'DOCS_PLUGIN';-export class UniverDocsPlugin extends Plugin {- static override pluginName = PLUGIN_NAME;+ static override pluginName = 'DOCS_PLUGIN';+ static override packageName = pkg.name;+ static override version = pkg.version;// static override type = UniverInstanceType.UNIVER_DOC;constructor(diff --git a/packages/drawing-ui/src/plugin.ts b/packages/drawing-ui/src/plugin.tsindex 40ecf87a7c..c9f7987817 100644--- a/packages/drawing-ui/src/plugin.ts+++ b/packages/drawing-ui/src/plugin.ts@@ -17,6 +17,7 @@import type { Dependency } from '@univerjs/core';import type { IUniverDrawingUIConfig } from './controllers/config.schema';import { IConfigService, Inject, Injector, merge, Plugin } from '@univerjs/core';+import pkg from '../package.json';import { defaultPluginConfig, DRAWING_UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';import { DrawingUIController } from './controllers/drawing-ui.controller';import { DrawingUpdateController } from './controllers/drawing-update.controller';@@ -24,10 +25,10 @@ import { ImageCropperController } from './controllers/image-cropper.controller';import { ImageUpdateController } from './controllers/image-update.controller';import { DrawingRenderService } from './services/drawing-render.service';-const PLUGIN_NAME = 'UNIVER_DRAWING_UI_PLUGIN';-export class UniverDrawingUIPlugin extends Plugin {- static override pluginName = PLUGIN_NAME;+ static override pluginName = 'UNIVER_DRAWING_UI_PLUGIN';+ static override packageName = pkg.name;+ static override version = pkg.version;constructor(private readonly _config: Partial<IUniverDrawingUIConfig> = defaultPluginConfig,diff --git a/packages/drawing/src/plugin.ts b/packages/drawing/src/plugin.tsindex c3ad8811e6..a5423fce31 100644--- a/packages/drawing/src/plugin.ts+++ b/packages/drawing/src/plugin.ts@@ -16,8 +16,8 @@import type { Dependency } from '@univerjs/core';import type { IUniverDrawingConfig } from './controllers/config.schema';-import { ICommandService, IConfigService, Inject, Injector, IURLImageService, merge, mergeOverrideWithDependencies, Plugin } from '@univerjs/core';+import pkg from '../package.json';import { SetDrawingSelectedOperation } from './commands/operations/set-drawing-selected.operation';import { defaultPluginConfig, DRAWING_PLUGIN_CONFIG_KEY } from './controllers/config.schema';import { DrawingManagerService } from './services/drawing-manager-impl.service';@@ -26,10 +26,10 @@ import { ImageIoService } from './services/image-io-impl.service';import { IImageIoService } from './services/image-io.service';import { URLImageService } from './services/url-image.service';-const PLUGIN_NAME = 'UNIVER_DRAWING_PLUGIN';-export class UniverDrawingPlugin extends Plugin {- static override pluginName = PLUGIN_NAME;+ static override pluginName = 'UNIVER_DRAWING_PLUGIN';+ static override packageName = pkg.name;+ static override version = pkg.version;constructor(private readonly _config: Partial<IUniverDrawingConfig> = defaultPluginConfig,diff --git a/packages/engine-formula/src/commands/mutations/set-feature-calculation.mutation.ts b/packages/engine-formula/src/commands/mutations/set-feature-calculation.mutation.tsindex 0196eb2b7b..648c6e9397 100644--- a/packages/engine-formula/src/commands/mutations/set-feature-calculation.mutation.ts+++ b/packages/engine-formula/src/commands/mutations/set-feature-calculation.mutation.ts@@ -15,9 +15,8 @@*/import type { IMutation } from '@univerjs/core';-import { CommandType } from '@univerjs/core';-import type { IFeatureCalculationManagerParam } from '../../services/feature-calculation-manager.service';+import { CommandType } from '@univerjs/core';export interface ISetFeatureCalculationMutation {featureId: string;diff --git a/packages/engine-formula/src/engine/utils/r1c1-reference.ts b/packages/engine-formula/src/engine/utils/r1c1-reference.tsindex 2a2e20cec8..e15aba7213 100644--- a/packages/engine-formula/src/engine/utils/r1c1-reference.ts+++ b/packages/engine-formula/src/engine/utils/r1c1-reference.ts@@ -14,9 +14,8 @@* limitations under the License.*/-import { AbsoluteRefType } from '@univerjs/core';import type { IRange, IUnitRangeName } from '@univerjs/core';-+import { AbsoluteRefType } from '@univerjs/core';import { handleRefStringInfo } from './reference';const $relativeRegex = /[\[\]]/g;diff --git a/packages/engine-formula/src/functions/date/days/index.ts b/packages/engine-formula/src/functions/date/days/index.tsindex d4b3f78009..9223706b62 100644--- a/packages/engine-formula/src/functions/date/days/index.ts+++ b/packages/engine-formula/src/functions/date/days/index.ts@@ -14,10 +14,10 @@* limitations under the License.*/-import { getDateSerialNumberByObject } from '../../../basics/date';-import { expandArrayValueObject } from '../../../engine/utils/array-object';import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';+import { getDateSerialNumberByObject } from '../../../basics/date';+import { expandArrayValueObject } from '../../../engine/utils/array-object';import { NumberValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';diff --git a/packages/engine-formula/src/functions/date/edate/index.ts b/packages/engine-formula/src/functions/date/edate/index.tsindex 8534a4f198..d105480061 100644--- a/packages/engine-formula/src/functions/date/edate/index.ts+++ b/packages/engine-formula/src/functions/date/edate/index.ts@@ -14,11 +14,11 @@* limitations under the License.*/+import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';+import type { BaseValueObject } from '../../../engine/value-object/base-value-object';import { DEFAULT_DATE_FORMAT, excelDateSerial, excelSerialToDate } from '../../../basics/date';import { ErrorType } from '../../../basics/error-type';import { expandArrayValueObject } from '../../../engine/utils/array-object';-import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';-import type { BaseValueObject } from '../../../engine/value-object/base-value-object';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';import { NullValueObject, NumberValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';diff --git a/packages/engine-formula/src/functions/date/hour/index.ts b/packages/engine-formula/src/functions/date/hour/index.tsindex 375f355355..fa051a82b2 100644--- a/packages/engine-formula/src/functions/date/hour/index.ts+++ b/packages/engine-formula/src/functions/date/hour/index.ts@@ -14,8 +14,8 @@* limitations under the License.*/-import { excelSerialToDateTime, getDateSerialNumberByObject } from '../../../basics/date';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';+import { excelSerialToDateTime, getDateSerialNumberByObject } from '../../../basics/date';import { NumberValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';diff --git a/packages/engine-formula/src/functions/date/isoweeknum/index.ts b/packages/engine-formula/src/functions/date/isoweeknum/index.tsindex 8adce2982f..55ef089cd0 100644--- a/packages/engine-formula/src/functions/date/isoweeknum/index.ts+++ b/packages/engine-formula/src/functions/date/isoweeknum/index.ts@@ -14,8 +14,8 @@* limitations under the License.*/-import { excelDateSerial, excelSerialToDate, getDateSerialNumberByObject, getWeekDayByDateSerialNumber } from '../../../basics/date';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';+import { excelDateSerial, excelSerialToDate, getDateSerialNumberByObject, getWeekDayByDateSerialNumber } from '../../../basics/date';import { NumberValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';diff --git a/packages/engine-formula/src/functions/date/minute/index.ts b/packages/engine-formula/src/functions/date/minute/index.tsindex c9b16a4ea3..2e27852942 100644--- a/packages/engine-formula/src/functions/date/minute/index.ts+++ b/packages/engine-formula/src/functions/date/minute/index.ts@@ -14,8 +14,8 @@* limitations under the License.*/-import { excelSerialToDateTime, getDateSerialNumberByObject } from '../../../basics/date';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';+import { excelSerialToDateTime, getDateSerialNumberByObject } from '../../../basics/date';import { NumberValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';diff --git a/packages/engine-formula/src/functions/date/month/index.ts b/packages/engine-formula/src/functions/date/month/index.tsindex e7e7cdc0bf..78b3157303 100644--- a/packages/engine-formula/src/functions/date/month/index.ts+++ b/packages/engine-formula/src/functions/date/month/index.ts@@ -14,9 +14,9 @@* limitations under the License.*/+import type { BaseValueObject } from '../../../engine/value-object/base-value-object';import { excelSerialToDate, isValidDateStr } from '../../../basics/date';import { ErrorType } from '../../../basics/error-type';-import type { BaseValueObject } from '../../../engine/value-object/base-value-object';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';import { NumberValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';diff --git a/packages/engine-formula/src/functions/date/networkdays-intl/index.ts b/packages/engine-formula/src/functions/date/networkdays-intl/index.tsindex 98dad3d149..61a2a1f013 100644--- a/packages/engine-formula/src/functions/date/networkdays-intl/index.ts+++ b/packages/engine-formula/src/functions/date/networkdays-intl/index.ts@@ -14,10 +14,10 @@* limitations under the License.*/-import { countWorkingDays, getDateSerialNumberByObject, isValidWeekend } from '../../../basics/date';-import { ErrorType } from '../../../basics/error-type';import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';+import { countWorkingDays, getDateSerialNumberByObject, isValidWeekend } 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';import { BaseFunction } from '../../base-function';diff --git a/packages/engine-formula/src/functions/date/networkdays/index.ts b/packages/engine-formula/src/functions/date/networkdays/index.tsindex e14d49a0ad..420f4fb5fe 100644--- a/packages/engine-formula/src/functions/date/networkdays/index.ts+++ b/packages/engine-formula/src/functions/date/networkdays/index.ts@@ -14,10 +14,10 @@* limitations under the License.*/-import { countWorkingDays, getDateSerialNumberByObject } from '../../../basics/date';-import { ErrorType } from '../../../basics/error-type';import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';+import { countWorkingDays, getDateSerialNumberByObject } 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';import { BaseFunction } from '../../base-function';diff --git a/packages/engine-formula/src/functions/date/second/index.ts b/packages/engine-formula/src/functions/date/second/index.tsindex a595974d7b..b7f59296fe 100644--- a/packages/engine-formula/src/functions/date/second/index.ts+++ b/packages/engine-formula/src/functions/date/second/index.ts@@ -14,8 +14,8 @@* limitations under the License.*/-import { excelSerialToDateTime, getDateSerialNumberByObject } from '../../../basics/date';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';+import { excelSerialToDateTime, getDateSerialNumberByObject } from '../../../basics/date';import { NumberValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';diff --git a/packages/engine-formula/src/functions/date/time/index.ts b/packages/engine-formula/src/functions/date/time/index.tsindex c0300a4af3..6edfafe8a4 100644--- a/packages/engine-formula/src/functions/date/time/index.ts+++ b/packages/engine-formula/src/functions/date/time/index.ts@@ -14,11 +14,11 @@* limitations under the License.*/+import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';+import type { BaseValueObject } from '../../../engine/value-object/base-value-object';import { DEFAULT_TIME_FORMAT } from '../../../basics/date';import { ErrorType } from '../../../basics/error-type';import { expandArrayValueObject } from '../../../engine/utils/array-object';-import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';-import type { BaseValueObject } from '../../../engine/value-object/base-value-object';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';import { NullValueObject, NumberValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';diff --git a/packages/engine-formula/src/functions/date/workday-intl/index.ts b/packages/engine-formula/src/functions/date/workday-intl/index.tsindex bc30311bb6..ae89082dd3 100644--- a/packages/engine-formula/src/functions/date/workday-intl/index.ts+++ b/packages/engine-formula/src/functions/date/workday-intl/index.ts@@ -14,10 +14,10 @@* limitations under the License.*/-import { getDateSerialNumberByObject, getDateSerialNumberByWorkingDays, isValidWeekend } from '../../../basics/date';-import { ErrorType } from '../../../basics/error-type';import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';+import { getDateSerialNumberByObject, getDateSerialNumberByWorkingDays, isValidWeekend } 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';import { BaseFunction } from '../../base-function';diff --git a/packages/engine-formula/src/functions/date/workday/index.ts b/packages/engine-formula/src/functions/date/workday/index.tsindex 6fe0105e0d..edfad390e8 100644--- a/packages/engine-formula/src/functions/date/workday/index.ts+++ b/packages/engine-formula/src/functions/date/workday/index.ts@@ -14,10 +14,10 @@* limitations under the License.*/-import { getDateSerialNumberByObject, getDateSerialNumberByWorkingDays } from '../../../basics/date';-import { ErrorType } from '../../../basics/error-type';import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';+import { getDateSerialNumberByObject, getDateSerialNumberByWorkingDays } 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';import { BaseFunction } from '../../base-function';diff --git a/packages/engine-formula/src/functions/date/year/index.ts b/packages/engine-formula/src/functions/date/year/index.tsindex 42c429a6bd..8f0e005b7a 100644--- a/packages/engine-formula/src/functions/date/year/index.ts+++ b/packages/engine-formula/src/functions/date/year/index.ts@@ -14,9 +14,9 @@* limitations under the License.*/+import type { BaseValueObject } from '../../../engine/value-object/base-value-object';import { excelSerialToDate, isValidDateStr } from '../../../basics/date';import { ErrorType } from '../../../basics/error-type';-import type { BaseValueObject } from '../../../engine/value-object/base-value-object';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';import { NumberValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';diff --git a/packages/engine-formula/src/functions/engineering/imabs/index.ts b/packages/engine-formula/src/functions/engineering/imabs/index.tsindex 93c96d0671..4d618261be 100644--- a/packages/engine-formula/src/functions/engineering/imabs/index.ts+++ b/packages/engine-formula/src/functions/engineering/imabs/index.ts@@ -15,12 +15,12 @@*/import type { BaseValueObject } from '../../../engine/value-object/base-value-object';-import { ErrorValueObject } from '../../../engine/value-object/base-value-object';-import { BaseFunction } from '../../base-function';-import { NumberValueObject } from '../../../engine/value-object/primitive-object';-import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';import { Complex } from '../../../basics/complex';import { ErrorType } from '../../../basics/error-type';+import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';+import { ErrorValueObject } from '../../../engine/value-object/base-value-object';+import { NumberValueObject } from '../../../engine/value-object/primitive-object';+import { BaseFunction } from '../../base-function';export class Imabs extends BaseFunction {override minParams = 1;diff --git a/packages/engine-formula/src/functions/engineering/imaginary/index.ts b/packages/engine-formula/src/functions/engineering/imaginary/index.tsindex c4d19cf5b2..c58f6bed88 100644--- a/packages/engine-formula/src/functions/engineering/imaginary/index.ts+++ b/packages/engine-formula/src/functions/engineering/imaginary/index.ts@@ -15,12 +15,12 @@*/import type { BaseValueObject } from '../../../engine/value-object/base-value-object';-import { ErrorValueObject } from '../../../engine/value-object/base-value-object';-import { BaseFunction } from '../../base-function';-import { NumberValueObject } from '../../../engine/value-object/primitive-object';-import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';import { Complex } from '../../../basics/complex';import { ErrorType } from '../../../basics/error-type';+import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';+import { ErrorValueObject } from '../../../engine/value-object/base-value-object';+import { NumberValueObject } from '../../../engine/value-object/primitive-object';+import { BaseFunction } from '../../base-function';export class Imaginary extends BaseFunction {override minParams = 1;diff --git a/packages/engine-formula/src/functions/engineering/imargument/index.ts b/packages/engine-formula/src/functions/engineering/imargument/index.tsindex b374cd3e5b..705b740e5c 100644--- a/packages/engine-formula/src/functions/engineering/imargument/index.ts+++ b/packages/engine-formula/src/functions/engineering/imargument/index.ts@@ -15,12 +15,12 @@*/import type { BaseValueObject } from '../../../engine/value-object/base-value-object';-import { ErrorValueObject } from '../../../engine/value-object/base-value-object';-import { BaseFunction } from '../../base-function';-import { NumberValueObject } from '../../../engine/value-object/primitive-object';-import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';import { Complex } from '../../../basics/complex';import { ErrorType } from '../../../basics/error-type';+import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';+import { ErrorValueObject } from '../../../engine/value-object/base-value-object';+import { NumberValueObject } from '../../../engine/value-object/primitive-object';+import { BaseFunction } from '../../base-function';export class Imargument extends BaseFunction {override minParams = 1;diff --git a/packages/engine-formula/src/functions/engineering/imconjugate/index.ts b/packages/engine-formula/src/functions/engineering/imconjugate/index.tsindex 4a96631145..59172cbd90 100644--- a/packages/engine-formula/src/functions/engineering/imconjugate/index.ts+++ b/packages/engine-formula/src/functions/engineering/imconjugate/index.ts@@ -14,14 +14,14 @@* limitations under the License.*/-import { isRealNum } from '@univerjs/core';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';-import { ErrorValueObject } from '../../../engine/value-object/base-value-object';-import { BaseFunction } from '../../base-function';-import { NumberValueObject, StringValueObject } from '../../../engine/value-object/primitive-object';-import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';+import { isRealNum } from '@univerjs/core';import { Complex } from '../../../basics/complex';import { ErrorType } from '../../../basics/error-type';+import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';+import { ErrorValueObject } from '../../../engine/value-object/base-value-object';+import { NumberValueObject, StringValueObject } from '../../../engine/value-object/primitive-object';+import { BaseFunction } from '../../base-function';export class Imconjugate extends BaseFunction {override minParams = 1;diff --git a/packages/engine-formula/src/functions/engineering/imcos/index.ts b/packages/engine-formula/src/functions/engineering/imcos/index.tsindex edd33c06bc..9dbc793117 100644--- a/packages/engine-formula/src/functions/engineering/imcos/index.ts+++ b/packages/engine-formula/src/functions/engineering/imcos/index.ts@@ -14,14 +14,14 @@* limitations under the License.*/-import { isRealNum } from '@univerjs/core';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';-import { ErrorValueObject } from '../../../engine/value-object/base-value-object';-import { BaseFunction } from '../../base-function';-import { NumberValueObject, StringValueObject } from '../../../engine/value-object/primitive-object';-import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';+import { isRealNum } from '@univerjs/core';import { Complex } from '../../../basics/complex';import { ErrorType } from '../../../basics/error-type';+import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';+import { ErrorValueObject } from '../../../engine/value-object/base-value-object';+import { NumberValueObject, StringValueObject } from '../../../engine/value-object/primitive-object';+import { BaseFunction } from '../../base-function';export class Imcos extends BaseFunction {override minParams = 1;diff --git a/packages/engine-formula/src/functions/engineering/imcosh/index.ts b/packages/engine-formula/src/functions/engineering/imcosh/index.tsindex af6de34b07..555a887943 100644--- a/packages/engine-formula/src/functions/engineering/imcosh/index.ts+++ b/packages/engine-formula/src/functions/engineering/imcosh/index.ts@@ -14,14 +14,14 @@* limitations under the License.*/-import { isRealNum } from '@univerjs/core';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';-import { ErrorValueObject } from '../../../engine/value-object/base-value-object';-import { BaseFunction } from '../../base-function';-import { NumberValueObject, StringValueObject } from '../../../engine/value-object/primitive-object';-import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';+import { isRealNum } from '@univerjs/core';import { Complex } from '../../../basics/complex';import { ErrorType } from '../../../basics/error-type';+import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';+import { ErrorValueObject } from '../../../engine/value-object/base-value-object';+import { NumberValueObject, StringValueObject } from '../../../engine/value-object/primitive-object';+import { BaseFunction } from '../../base-function';export class Imcosh extends BaseFunction {override minParams = 1;diff --git a/packages/engine-formula/src/functions/engineering/imcot/index.ts b/packages/engine-formula/src/functions/engineering/imcot/index.tsindex 0cb298613d..8af2872c53 100644--- a/packages/engine-formula/src/functions/engineering/imcot/index.ts+++ b/packages/engine-formula/src/functions/engineering/imcot/index.ts@@ -14,14 +14,14 @@* limitations under the License.*/-import { isRealNum } from '@univerjs/core';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';-import { ErrorValueObject } from '../../../engine/value-object/base-value-object';-import { BaseFunction } from '../../base-function';-import { NumberValueObject, StringValueObject } from '../../../engine/value-object/primitive-object';-import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';+import { isRealNum } from '@univerjs/core';import { Complex } from '../../../basics/complex';import { ErrorType } from '../../../basics/error-type';+import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';+import { ErrorValueObject } from '../../../engine/value-object/base-value-object';+import { NumberValueObject, StringValueObject } from '../../../engine/value-object/primitive-object';+import { BaseFunction } from '../../base-function';export class Imcot extends BaseFunction {override minParams = 1;diff --git a/packages/engine-formula/src/functions/engineering/imcsc/index.ts b/packages/engine-formula/src/functions/engineering/imcsc/index.tsindex 5d40d51a05..b3011ea6b9 100644--- a/packages/engine-formula/src/functions/engineering/imcsc/index.ts+++ b/packages/engine-formula/src/functions/engineering/imcsc/index.ts@@ -14,14 +14,14 @@* limitations under the License.*/-import { isRealNum } from '@univerjs/core';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';-import { ErrorValueObject } from '../../../engine/value-object/base-value-object';-import { BaseFunction } from '../../base-function';-import { NumberValueObject, StringValueObject } from '../../../engine/value-object/primitive-object';-import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';+import { isRealNum } from '@univerjs/core';import { Complex } from '../../../basics/complex';import { ErrorType } from '../../../basics/error-type';+import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';+import { ErrorValueObject } from '../../../engine/value-object/base-value-object';+import { NumberValueObject, StringValueObject } from '../../../engine/value-object/primitive-object';+import { BaseFunction } from '../../base-function';export class Imcsc extends BaseFunction {override minParams = 1;diff --git a/packages/engine-formula/src/functions/engineering/imcsch/index.ts b/packages/engine-formula/src/functions/engineering/imcsch/index.tsindex 38c683553f..1aa182a064 100644--- a/packages/engine-formula/src/functions/engineering/imcsch/index.ts+++ b/packages/engine-formula/src/functions/engineering/imcsch/index.ts@@ -14,14 +14,14 @@* limitations under the License.*/-import { isRealNum } from '@univerjs/core';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';-import { ErrorValueObject } from '../../../engine/value-object/base-value-object';-import { BaseFunction } from '../../base-function';-import { NumberValueObject, StringValueObject } from '../../../engine/value-object/primitive-object';-import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';+import { isRealNum } from '@univerjs/core';import { Complex } from '../../../basics/complex';import { ErrorType } from '../../../basics/error-type';+import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';+import { ErrorValueObject } from '../../../engine/value-object/base-value-object';+import { NumberValueObject, StringValueObject } from '../../../engine/value-object/primitive-object';+import { BaseFunction } from '../../base-function';export class Imcsch extends BaseFunction {override minParams = 1;diff --git a/packages/engine-formula/src/functions/engineering/imdiv/index.ts b/packages/engine-formula/src/functions/engineering/imdiv/index.tsindex 2ef16015e5..e45027c0ad 100644--- a/packages/engine-formula/src/functions/engineering/imdiv/index.ts+++ b/packages/engine-formula/src/functions/engineering/imdiv/index.ts@@ -14,14 +14,14 @@* limitations under the License.*/-import { isRealNum } from '@univerjs/core';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';-import { ErrorValueObject } from '../../../engine/value-object/base-value-object';-import { BaseFunction } from '../../base-function';-import { NumberValueObject, StringValueObject } from '../../../engine/value-object/primitive-object';-import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';+import { isRealNum } from '@univerjs/core';import { Complex } from '../../../basics/complex';import { ErrorType } from '../../../basics/error-type';+import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';+import { ErrorValueObject } from '../../../engine/value-object/base-value-object';+import { NumberValueObject, StringValueObject } from '../../../engine/value-object/primitive-object';+import { BaseFunction } from '../../base-function';export class Imdiv extends BaseFunction {override minParams = 2;diff --git a/packages/engine-formula/src/functions/engineering/imexp/index.ts b/packages/engine-formula/src/functions/engineering/imexp/index.tsindex 5412f97da9..305a85f9be 100644--- a/packages/engine-formula/src/functions/engineering/imexp/index.ts+++ b/packages/engine-formula/src/functions/engineering/imexp/index.ts@@ -14,14 +14,14 @@* limitations under the License.*/-import { isRealNum } from '@univerjs/core';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';-import { ErrorValueObject } from '../../../engine/value-object/base-value-object';-import { BaseFunction } from '../../base-function';-import { NumberValueObject, StringValueObject } from '../../../engine/value-object/primitive-object';-import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';+import { isRealNum } from '@univerjs/core';import { Complex } from '../../../basics/complex';import { ErrorType } from '../../../basics/error-type';+import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';+import { ErrorValueObject } from '../../../engine/value-object/base-value-object';+import { NumberValueObject, StringValueObject } from '../../../engine/value-object/primitive-object';+import { BaseFunction } from '../../base-function';export class Imexp extends BaseFunction {override minParams = 1;diff --git a/packages/engine-formula/src/functions/engineering/imln/index.ts b/packages/engine-formula/src/functions/engineering/imln/index.tsindex 32e7b93c67..5cb65abd11 100644--- a/packages/engine-formula/src/functions/engineering/imln/index.ts+++ b/packages/engine-formula/src/functions/engineering/imln/index.ts@@ -14,14 +14,14 @@* limitations under the License.*/-import { isRealNum } from '@univerjs/core';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';-import { ErrorValueObject } from '../../../engine/value-object/base-value-object';-import { BaseFunction } from '../../base-function';-import { NumberValueObject, StringValueObject } from '../../../engine/value-object/primitive-object';-import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';+import { isRealNum } from '@univerjs/core';import { Complex } from '../../../basics/complex';import { ErrorType } from '../../../basics/error-type';+import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';+import { ErrorValueObject } from '../../../engine/value-object/base-value-object';+import { NumberValueObject, StringValueObject } from '../../../engine/value-object/primitive-object';+import { BaseFunction } from '../../base-function';export class Imln extends BaseFunction {override minParams = 1;diff --git a/packages/engine-formula/src/functions/engineering/impower/index.ts b/packages/engine-formula/src/functions/engineering/impower/index.tsindex 6845b1d474..cc74fd88a0 100644--- a/packages/engine-formula/src/functions/engineering/impower/index.ts+++ b/packages/engine-formula/src/functions/engineering/impower/index.ts@@ -14,14 +14,14 @@* limitations under the License.*/-import { isRealNum } from '@univerjs/core';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';-import { ErrorValueObject } from '../../../engine/value-object/base-value-object';-import { BaseFunction } from '../../base-function';-import { NumberValueObject, StringValueObject } from '../../../engine/value-object/primitive-object';-import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';+import { isRealNum } from '@univerjs/core';import { Complex } from '../../../basics/complex';import { ErrorType } from '../../../basics/error-type';+import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';+import { ErrorValueObject } from '../../../engine/value-object/base-value-object';+import { NumberValueObject, StringValueObject } from '../../../engine/value-object/primitive-object';+import { BaseFunction } from '../../base-function';export class Impower extends BaseFunction {override minParams = 2;diff --git a/packages/engine-formula/src/functions/engineering/improduct/index.ts b/packages/engine-formula/src/functions/engineering/improduct/index.tsindex 081353ec72..a8a87fbd60 100644--- a/packages/engine-formula/src/functions/engineering/improduct/index.ts+++ b/packages/engine-formula/src/functions/engineering/improduct/index.ts@@ -15,14 +15,14 @@*/import type { Nullable } from '@univerjs/core';-import { isRealNum } from '@univerjs/core';+import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';-import { ErrorValueObject } from '../../../engine/value-object/base-value-object';-import { BaseFunction } from '../../base-function';-import { NumberValueObject, StringValueObject } from '../../../engine/value-object/primitive-object';+import { isRealNum } from '@univerjs/core';import { Complex } from '../../../basics/complex';import { ErrorType } from '../../../basics/error-type';-import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';+import { ErrorValueObject } from '../../../engine/value-object/base-value-object';+import { NumberValueObject, StringValueObject } from '../../../engine/value-object/primitive-object';+import { BaseFunction } from '../../base-function';export class Improduct extends BaseFunction {override minParams = 1;diff --git a/packages/engine-formula/src/functions/engineering/imreal/index.ts b/packages/engine-formula/src/functions/engineering/imreal/index.tsindex 7a7c700728..16279ef963 100644--- a/packages/engine-formula/src/functions/engineering/imreal/index.ts+++ b/packages/engine-formula/src/functions/engineering/imreal/index.ts@@ -15,12 +15,12 @@*/import type { BaseValueObject } from '../../../engine/value-object/base-value-object';-import { ErrorValueObject } from '../../../engine/value-object/base-value-object';-import { BaseFunction } from '../../base-function';-import { NumberValueObject } from '../../../engine/value-object/primitive-object';-import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';import { Complex } from '../../../basics/complex';import { ErrorType } from '../../../basics/error-type';+import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';+import { ErrorValueObject } from '../../../engine/value-object/base-value-object';+import { NumberValueObject } from '../../../engine/value-object/primitive-object';+import { BaseFunction } from '../../base-function';export class Imreal extends BaseFunction {override minParams = 1;diff --git a/packages/engine-formula/src/functions/engineering/imsec/index.ts b/packages/engine-formula/src/functions/engineering/imsec/index.tsindex 3d81f1e6e4..73a9a5cb28 100644--- a/packages/engine-formula/src/functions/engineering/imsec/index.ts+++ b/packages/engine-formula/src/functions/engineering/imsec/index.ts@@ -14,14 +14,14 @@* limitations under the License.*/-import { isRealNum } from '@univerjs/core';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';-import { ErrorValueObject } from '../../../engine/value-object/base-value-object';-import { BaseFunction } from '../../base-function';-import { NumberValueObject, StringValueObject } from '../../../engine/value-object/primitive-object';-import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';+import { isRealNum } from '@univerjs/core';import { Complex } from '../../../basics/complex';import { ErrorType } from '../../../basics/error-type';+import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';+import { ErrorValueObject } from '../../../engine/value-object/base-value-object';+import { NumberValueObject, StringValueObject } from '../../../engine/value-object/primitive-object';+import { BaseFunction } from '../../base-function';export class Imsec extends BaseFunction {override minParams = 1;diff --git a/packages/engine-formula/src/functions/engineering/imsech/index.ts b/packages/engine-formula/src/functions/engineering/imsech/index.tsindex b5e823d73d..bd37452e80 100644--- a/packages/engine-formula/src/functions/engineering/imsech/index.ts+++ b/packages/engine-formula/src/functions/engineering/imsech/index.ts@@ -14,14 +14,14 @@* limitations under the License.*/-import { isRealNum } from '@univerjs/core';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';-import { ErrorValueObject } from '../../../engine/value-object/base-value-object';-import { BaseFunction } from '../../base-function';-import { NumberValueObject, StringValueObject } from '../../../engine/value-object/primitive-object';-import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';+import { isRealNum } from '@univerjs/core';import { Complex } from '../../../basics/complex';import { ErrorType } from '../../../basics/error-type';+import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';+import { ErrorValueObject } from '../../../engine/value-object/base-value-object';+import { NumberValueObject, StringValueObject } from '../../../engine/value-object/primitive-object';+import { BaseFunction } from '../../base-function';export class Imsech extends BaseFunction {override minParams = 1;diff --git a/packages/engine-formula/src/functions/engineering/imsin/index.ts b/packages/engine-formula/src/functions/engineering/imsin/index.tsindex 12f9b0b0be..87b637f78f 100644--- a/packages/engine-formula/src/functions/engineering/imsin/index.ts+++ b/packages/engine-formula/src/functions/engineering/imsin/index.ts@@ -14,14 +14,14 @@* limitations under the License.*/-import { isRealNum } from '@univerjs/core';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';-import { ErrorValueObject } from '../../../engine/value-object/base-value-object';-import { BaseFunction } from '../../base-function';-import { NumberValueObject, StringValueObject } from '../../../engine/value-object/primitive-object';-import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';+import { isRealNum } from '@univerjs/core';import { Complex } from '../../../basics/complex';import { ErrorType } from '../../../basics/error-type';+import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';+import { ErrorValueObject } from '../../../engine/value-object/base-value-object';+import { NumberValueObject, StringValueObject } from '../../../engine/value-object/primitive-object';+import { BaseFunction } from '../../base-function';export class Imsin extends BaseFunction {override minParams = 1;diff --git a/packages/engine-formula/src/functions/engineering/imsinh/index.ts b/packages/engine-formula/src/functions/engineering/imsinh/index.tsindex 8cc16cb66c..6b401f837c 100644--- a/packages/engine-formula/src/functions/engineering/imsinh/index.ts+++ b/packages/engine-formula/src/functions/engineering/imsinh/index.ts@@ -14,14 +14,14 @@* limitations under the License.*/-import { isRealNum } from '@univerjs/core';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';-import { ErrorValueObject } from '../../../engine/value-object/base-value-object';-import { BaseFunction } from '../../base-function';-import { NumberValueObject, StringValueObject } from '../../../engine/value-object/primitive-object';-import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';+import { isRealNum } from '@univerjs/core';import { Complex } from '../../../basics/complex';import { ErrorType } from '../../../basics/error-type';+import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';+import { ErrorValueObject } from '../../../engine/value-object/base-value-object';+import { NumberValueObject, StringValueObject } from '../../../engine/value-object/primitive-object';+import { BaseFunction } from '../../base-function';export class Imsinh extends BaseFunction {override minParams = 1;diff --git a/packages/engine-formula/src/functions/engineering/imsqrt/index.ts b/packages/engine-formula/src/functions/engineering/imsqrt/index.tsindex b563d6e147..37ae532f1a 100644--- a/packages/engine-formula/src/functions/engineering/imsqrt/index.ts+++ b/packages/engine-formula/src/functions/engineering/imsqrt/index.ts@@ -14,14 +14,14 @@* limitations under the License.*/-import { isRealNum } from '@univerjs/core';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';-import { ErrorValueObject } from '../../../engine/value-object/base-value-object';-import { BaseFunction } from '../../base-function';-import { NumberValueObject, StringValueObject } from '../../../engine/value-object/primitive-object';-import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';+import { isRealNum } from '@univerjs/core';import { Complex } from '../../../basics/complex';import { ErrorType } from '../../../basics/error-type';+import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';+import { ErrorValueObject } from '../../../engine/value-object/base-value-object';+import { NumberValueObject, StringValueObject } from '../../../engine/value-object/primitive-object';+import { BaseFunction } from '../../base-function';export class Imsqrt extends BaseFunction {override minParams = 1;diff --git a/packages/engine-formula/src/functions/engineering/imsub/index.ts b/packages/engine-formula/src/functions/engineering/imsub/index.tsindex cfc97e57b5..bee50b9e6c 100644--- a/packages/engine-formula/src/functions/engineering/imsub/index.ts+++ b/packages/engine-formula/src/functions/engineering/imsub/index.ts@@ -14,14 +14,14 @@* limitations under the License.*/-import { isRealNum } from '@univerjs/core';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';-import { ErrorValueObject } from '../../../engine/value-object/base-value-object';-import { BaseFunction } from '../../base-function';-import { NumberValueObject, StringValueObject } from '../../../engine/value-object/primitive-object';-import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';+import { isRealNum } from '@univerjs/core';import { Complex } from '../../../basics/complex';import { ErrorType } from '../../../basics/error-type';+import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';+import { ErrorValueObject } from '../../../engine/value-object/base-value-object';+import { NumberValueObject, StringValueObject } from '../../../engine/value-object/primitive-object';+import { BaseFunction } from '../../base-function';export class Imsub extends BaseFunction {override minParams = 2;diff --git a/packages/engine-formula/src/functions/engineering/imsum/index.ts b/packages/engine-formula/src/functions/engineering/imsum/index.tsindex 6c5b0d8b26..746442895e 100644--- a/packages/engine-formula/src/functions/engineering/imsum/index.ts+++ b/packages/engine-formula/src/functions/engineering/imsum/index.ts@@ -15,14 +15,14 @@*/import type { Nullable } from '@univerjs/core';-import { isRealNum } from '@univerjs/core';+import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';-import { ErrorValueObject } from '../../../engine/value-object/base-value-object';-import { BaseFunction } from '../../base-function';-import { NumberValueObject, StringValueObject } from '../../../engine/value-object/primitive-object';+import { isRealNum } from '@univerjs/core';import { Complex } from '../../../basics/complex';import { ErrorType } from '../../../basics/error-type';-import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';+import { ErrorValueObject } from '../../../engine/value-object/base-value-object';+import { NumberValueObject, StringValueObject } from '../../../engine/value-object/primitive-object';+import { BaseFunction } from '../../base-function';export class Imsum extends BaseFunction {override minParams = 1;diff --git a/packages/engine-formula/src/functions/engineering/imtan/index.ts b/packages/engine-formula/src/functions/engineering/imtan/index.tsindex c3ede3e7ce..8b52b75634 100644--- a/packages/engine-formula/src/functions/engineering/imtan/index.ts+++ b/packages/engine-formula/src/functions/engineering/imtan/index.ts@@ -14,14 +14,14 @@* limitations under the License.*/-import { isRealNum } from '@univerjs/core';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';-import { ErrorValueObject } from '../../../engine/value-object/base-value-object';-import { BaseFunction } from '../../base-function';-import { NumberValueObject, StringValueObject } from '../../../engine/value-object/primitive-object';-import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';+import { isRealNum } from '@univerjs/core';import { Complex } from '../../../basics/complex';import { ErrorType } from '../../../basics/error-type';+import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';+import { ErrorValueObject } from '../../../engine/value-object/base-value-object';+import { NumberValueObject, StringValueObject } from '../../../engine/value-object/primitive-object';+import { BaseFunction } from '../../base-function';export class Imtan extends BaseFunction {override minParams = 1;diff --git a/packages/engine-formula/src/functions/financial/cumipmt/index.ts b/packages/engine-formula/src/functions/financial/cumipmt/index.tsindex 204bc5f3bb..db0dd833de 100644--- a/packages/engine-formula/src/functions/financial/cumipmt/index.ts+++ b/packages/engine-formula/src/functions/financial/cumipmt/index.ts@@ -14,13 +14,13 @@* limitations under the License.*/-import { calculateFV, calculatePMT } from '../../../basics/financial';-import { ErrorType } from '../../../basics/error-type';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';+import { ErrorType } from '../../../basics/error-type';+import { calculateFV, calculatePMT } from '../../../basics/financial';+import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';import { NumberValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';-import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';export class Cumipmt extends BaseFunction {override minParams = 6;diff --git a/packages/engine-formula/src/functions/financial/cumprinc/index.ts b/packages/engine-formula/src/functions/financial/cumprinc/index.tsindex bd3acc8b42..1c7567cd4f 100644--- a/packages/engine-formula/src/functions/financial/cumprinc/index.ts+++ b/packages/engine-formula/src/functions/financial/cumprinc/index.ts@@ -14,13 +14,13 @@* limitations under the License.*/-import { calculateFV, calculatePMT } from '../../../basics/financial';-import { ErrorType } from '../../../basics/error-type';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';+import { ErrorType } from '../../../basics/error-type';+import { calculateFV, calculatePMT } from '../../../basics/financial';+import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';import { NumberValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';-import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';export class Cumprinc extends BaseFunction {override minParams = 6;diff --git a/packages/engine-formula/src/functions/financial/function-map.ts b/packages/engine-formula/src/functions/financial/function-map.tsindex 33cf9e63ea..140c484384 100644--- a/packages/engine-formula/src/functions/financial/function-map.ts+++ b/packages/engine-formula/src/functions/financial/function-map.ts@@ -14,7 +14,6 @@* limitations under the License.*/-import { FUNCTION_NAMES_FINANCIAL } from './function-names';import { Accrint } from './accrint';import { Accrintm } from './accrintm';import { Amorlinc } from './amorlinc';@@ -33,6 +32,7 @@ import { Dollarde } from './dollarde';import { Dollarfr } from './dollarfr';import { Duration } from './duration';import { Effect } from './effect';+import { FUNCTION_NAMES_FINANCIAL } from './function-names';import { Fv } from './fv';import { Fvschedule } from './fvschedule';import { Intrate } from './intrate';diff --git a/packages/engine-formula/src/functions/financial/nper/index.ts b/packages/engine-formula/src/functions/financial/nper/index.tsindex 4f91f6edcc..fe2a678899 100644--- a/packages/engine-formula/src/functions/financial/nper/index.ts+++ b/packages/engine-formula/src/functions/financial/nper/index.ts@@ -14,14 +14,14 @@* limitations under the License.*/-import { ErrorType } from '../../../basics/error-type';+import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';+import { ErrorType } from '../../../basics/error-type';+import { expandArrayValueObject } from '../../../engine/utils/array-object';+import { checkVariantsErrorIsStringToNumber } from '../../../engine/utils/check-variant-error';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';import { NumberValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';-import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';-import { expandArrayValueObject } from '../../../engine/utils/array-object';-import { checkVariantsErrorIsStringToNumber } from '../../../engine/utils/check-variant-error';export class Nper extends BaseFunction {override minParams = 3;diff --git a/packages/engine-formula/src/functions/financial/pduration/index.ts b/packages/engine-formula/src/functions/financial/pduration/index.tsindex 80d9c5ba0b..960269659e 100644--- a/packages/engine-formula/src/functions/financial/pduration/index.ts+++ b/packages/engine-formula/src/functions/financial/pduration/index.ts@@ -14,14 +14,14 @@* limitations under the License.*/-import { ErrorType } from '../../../basics/error-type';+import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';+import { ErrorType } from '../../../basics/error-type';+import { expandArrayValueObject } from '../../../engine/utils/array-object';+import { checkVariantsErrorIsStringToNumber } from '../../../engine/utils/check-variant-error';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';import { NumberValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';-import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';-import { expandArrayValueObject } from '../../../engine/utils/array-object';-import { checkVariantsErrorIsStringToNumber } from '../../../engine/utils/check-variant-error';export class Pduration extends BaseFunction {override minParams = 3;diff --git a/packages/engine-formula/src/functions/financial/rri/index.ts b/packages/engine-formula/src/functions/financial/rri/index.tsindex 036cd8dd43..dd4f988df1 100644--- a/packages/engine-formula/src/functions/financial/rri/index.ts+++ b/packages/engine-formula/src/functions/financial/rri/index.ts@@ -14,14 +14,14 @@* limitations under the License.*/-import { ErrorType } from '../../../basics/error-type';+import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';+import { ErrorType } from '../../../basics/error-type';+import { expandArrayValueObject } from '../../../engine/utils/array-object';+import { checkVariantsErrorIsStringToNumber } from '../../../engine/utils/check-variant-error';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';import { NumberValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';-import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';-import { expandArrayValueObject } from '../../../engine/utils/array-object';-import { checkVariantsErrorIsStringToNumber } from '../../../engine/utils/check-variant-error';export class Rri extends BaseFunction {override minParams = 3;diff --git a/packages/engine-formula/src/functions/information/iserr/index.ts b/packages/engine-formula/src/functions/information/iserr/index.tsindex 83ced51b0b..58c33c01db 100644--- a/packages/engine-formula/src/functions/information/iserr/index.ts+++ b/packages/engine-formula/src/functions/information/iserr/index.ts@@ -14,9 +14,9 @@* limitations under the License.*/-import { ErrorType } from '../../../basics/error-type';import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';+import { ErrorType } from '../../../basics/error-type';import { BooleanValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';diff --git a/packages/engine-formula/src/functions/information/iseven/iseven.ts b/packages/engine-formula/src/functions/information/iseven/iseven.tsindex 9add56ad70..8d1c636dc8 100644--- a/packages/engine-formula/src/functions/information/iseven/iseven.ts+++ b/packages/engine-formula/src/functions/information/iseven/iseven.ts@@ -14,9 +14,9 @@* limitations under the License.*/-import { ErrorType } from '../../../basics/error-type';import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';+import { ErrorType } from '../../../basics/error-type';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';import { BooleanValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';diff --git a/packages/engine-formula/src/functions/information/isna/index.ts b/packages/engine-formula/src/functions/information/isna/index.tsindex ea6c1c7536..5f35a82193 100644--- a/packages/engine-formula/src/functions/information/isna/index.ts+++ b/packages/engine-formula/src/functions/information/isna/index.ts@@ -14,9 +14,9 @@* limitations under the License.*/-import { ErrorType } from '../../../basics/error-type';import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';+import { ErrorType } from '../../../basics/error-type';import { BooleanValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';diff --git a/packages/engine-formula/src/functions/information/isodd/isodd.ts b/packages/engine-formula/src/functions/information/isodd/isodd.tsindex 6a46eb1360..74e7d8c8ca 100644--- a/packages/engine-formula/src/functions/information/isodd/isodd.ts+++ b/packages/engine-formula/src/functions/information/isodd/isodd.ts@@ -14,9 +14,9 @@* limitations under the License.*/-import { ErrorType } from '../../../basics/error-type';import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';+import { ErrorType } from '../../../basics/error-type';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';import { BooleanValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';diff --git a/packages/engine-formula/src/functions/logical/ifna/index.ts b/packages/engine-formula/src/functions/logical/ifna/index.tsindex 85866a9e85..533a99f480 100644--- a/packages/engine-formula/src/functions/logical/ifna/index.ts+++ b/packages/engine-formula/src/functions/logical/ifna/index.ts@@ -14,11 +14,11 @@* limitations under the License.*/-import { expandArrayValueObject } from '../../../engine/utils/array-object';import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';import type { BaseValueObject, ErrorValueObject } from '../../../engine/value-object/base-value-object';-import { BaseFunction } from '../../base-function';import { ErrorType } from '../../../basics/error-type';+import { expandArrayValueObject } from '../../../engine/utils/array-object';+import { BaseFunction } from '../../base-function';export class Ifna extends BaseFunction {override minParams = 2;diff --git a/packages/engine-formula/src/functions/lookup/areas/index.ts b/packages/engine-formula/src/functions/lookup/areas/index.tsindex 60b91cc215..1f1d3dd581 100644--- a/packages/engine-formula/src/functions/lookup/areas/index.ts+++ b/packages/engine-formula/src/functions/lookup/areas/index.ts@@ -14,8 +14,8 @@* limitations under the License.*/-import { ErrorType } from '../../../basics/error-type';import type { FunctionVariantType } from '../../../engine/reference-object/base-reference-object';+import { ErrorType } from '../../../basics/error-type';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';import { NumberValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';diff --git a/packages/engine-formula/src/functions/lookup/choosecols/index.ts b/packages/engine-formula/src/functions/lookup/choosecols/index.tsindex 65c712c773..ea6e2fbfe0 100644--- a/packages/engine-formula/src/functions/lookup/choosecols/index.ts+++ b/packages/engine-formula/src/functions/lookup/choosecols/index.ts@@ -14,11 +14,10 @@* limitations under the License.*/+import type { BaseValueObject } from '../../../engine/value-object/base-value-object';import { ErrorType } from '../../../basics/error-type';import { ArrayValueObject } from '../../../engine/value-object/array-value-object';-import type { BaseValueObject } from '../../../engine/value-object/base-value-object';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';-import { BaseFunction } from '../../base-function';export class Choosecols extends BaseFunction {diff --git a/packages/engine-formula/src/functions/lookup/chooserows/index.ts b/packages/engine-formula/src/functions/lookup/chooserows/index.tsindex 9b8bfc6e74..5bb1925a12 100644--- a/packages/engine-formula/src/functions/lookup/chooserows/index.ts+++ b/packages/engine-formula/src/functions/lookup/chooserows/index.ts@@ -14,11 +14,10 @@* limitations under the License.*/+import type { BaseValueObject } from '../../../engine/value-object/base-value-object';import { ErrorType } from '../../../basics/error-type';import { ArrayValueObject } from '../../../engine/value-object/array-value-object';-import type { BaseValueObject } from '../../../engine/value-object/base-value-object';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';-import { BaseFunction } from '../../base-function';export class Chooserows extends BaseFunction {diff --git a/packages/engine-formula/src/functions/lookup/column/index.ts b/packages/engine-formula/src/functions/lookup/column/index.tsindex 1f9aebe2c0..bedaa7400e 100644--- a/packages/engine-formula/src/functions/lookup/column/index.ts+++ b/packages/engine-formula/src/functions/lookup/column/index.ts@@ -14,10 +14,10 @@* limitations under the License.*/+import type { BaseValueObject, IArrayValueObject } from '../../../engine/value-object/base-value-object';import { ErrorType } from '../../../basics/error-type';import { ArrayValueObject } from '../../../engine/value-object/array-value-object';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';-import type { BaseValueObject, IArrayValueObject } from '../../../engine/value-object/base-value-object';import { NumberValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';diff --git a/packages/engine-formula/src/functions/lookup/columns/index.ts b/packages/engine-formula/src/functions/lookup/columns/index.tsindex aefab46987..6d8af6097b 100644--- a/packages/engine-formula/src/functions/lookup/columns/index.ts+++ b/packages/engine-formula/src/functions/lookup/columns/index.ts@@ -14,10 +14,10 @@* limitations under the License.*/-import { ErrorType } from '../../../basics/error-type';import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';-import { ErrorValueObject } from '../../../engine/value-object/base-value-object';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';+import { ErrorType } from '../../../basics/error-type';+import { ErrorValueObject } from '../../../engine/value-object/base-value-object';import { NumberValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';diff --git a/packages/engine-formula/src/functions/lookup/drop/index.ts b/packages/engine-formula/src/functions/lookup/drop/index.tsindex a95e7ed804..7ae51a732d 100644--- a/packages/engine-formula/src/functions/lookup/drop/index.ts+++ b/packages/engine-formula/src/functions/lookup/drop/index.ts@@ -14,13 +14,13 @@* limitations under the License.*/+import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';+import type { BaseValueObject } from '../../../engine/value-object/base-value-object';import { ErrorType } from '../../../basics/error-type';import { expandArrayValueObject } from '../../../engine/utils/array-object';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';import { NumberValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';-import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';-import type { BaseValueObject } from '../../../engine/value-object/base-value-object';export class Drop extends BaseFunction {override minParams = 2;diff --git a/packages/engine-formula/src/functions/lookup/expand/index.ts b/packages/engine-formula/src/functions/lookup/expand/index.tsindex aae64ae656..3472f4df1b 100644--- a/packages/engine-formula/src/functions/lookup/expand/index.ts+++ b/packages/engine-formula/src/functions/lookup/expand/index.ts@@ -14,13 +14,13 @@* limitations under the License.*/+import type { BaseValueObject } from '../../../engine/value-object/base-value-object';import { ErrorType } from '../../../basics/error-type';import { expandArrayValueObject } from '../../../engine/utils/array-object';import { ArrayValueObject } from '../../../engine/value-object/array-value-object';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';import { NumberValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';-import type { BaseValueObject } from '../../../engine/value-object/base-value-object';export class Expand extends BaseFunction {override minParams = 2;diff --git a/packages/engine-formula/src/functions/lookup/filter/index.ts b/packages/engine-formula/src/functions/lookup/filter/index.tsindex 6c13dcf0e1..6c846eec78 100644--- a/packages/engine-formula/src/functions/lookup/filter/index.ts+++ b/packages/engine-formula/src/functions/lookup/filter/index.ts@@ -14,11 +14,10 @@* limitations under the License.*/+import type { BaseValueObject } from '../../../engine/value-object/base-value-object';import { ErrorType } from '../../../basics/error-type';import { ArrayValueObject } from '../../../engine/value-object/array-value-object';-import type { BaseValueObject } from '../../../engine/value-object/base-value-object';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';-import { BaseFunction } from '../../base-function';export class Filter extends BaseFunction {diff --git a/packages/engine-formula/src/functions/lookup/hlookup/index.ts b/packages/engine-formula/src/functions/lookup/hlookup/index.tsindex d71da38c26..81f9183e5f 100644--- a/packages/engine-formula/src/functions/lookup/hlookup/index.ts+++ b/packages/engine-formula/src/functions/lookup/hlookup/index.ts@@ -14,9 +14,9 @@* limitations under the License.*/-import { ErrorType } from '../../../basics/error-type';import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';+import { ErrorType } from '../../../basics/error-type';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';import { BaseFunction } from '../../base-function';diff --git a/packages/engine-formula/src/functions/lookup/hstack/index.ts b/packages/engine-formula/src/functions/lookup/hstack/index.tsindex bb992fc87b..bde6ea3fd4 100644--- a/packages/engine-formula/src/functions/lookup/hstack/index.ts+++ b/packages/engine-formula/src/functions/lookup/hstack/index.ts@@ -15,11 +15,10 @@*/import type { Nullable } from '@univerjs/core';+import type { BaseValueObject } from '../../../engine/value-object/base-value-object';import { ErrorType } from '../../../basics/error-type';import { ArrayValueObject } from '../../../engine/value-object/array-value-object';-import type { BaseValueObject } from '../../../engine/value-object/base-value-object';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';-import { BaseFunction } from '../../base-function';export class Hstack extends BaseFunction {diff --git a/packages/engine-formula/src/functions/lookup/row/index.ts b/packages/engine-formula/src/functions/lookup/row/index.tsindex 7b10f63120..d6712921db 100644--- a/packages/engine-formula/src/functions/lookup/row/index.ts+++ b/packages/engine-formula/src/functions/lookup/row/index.ts@@ -14,10 +14,10 @@* limitations under the License.*/+import type { BaseValueObject, IArrayValueObject } from '../../../engine/value-object/base-value-object';import { ErrorType } from '../../../basics/error-type';import { ArrayValueObject } from '../../../engine/value-object/array-value-object';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';-import type { BaseValueObject, IArrayValueObject } from '../../../engine/value-object/base-value-object';import { NumberValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';diff --git a/packages/engine-formula/src/functions/lookup/rows/index.ts b/packages/engine-formula/src/functions/lookup/rows/index.tsindex d7f100378e..7f5d8939ef 100644--- a/packages/engine-formula/src/functions/lookup/rows/index.ts+++ b/packages/engine-formula/src/functions/lookup/rows/index.ts@@ -14,10 +14,10 @@* limitations under the License.*/-import { ErrorType } from '../../../basics/error-type';import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';-import { ErrorValueObject } from '../../../engine/value-object/base-value-object';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';+import { ErrorType } from '../../../basics/error-type';+import { ErrorValueObject } from '../../../engine/value-object/base-value-object';import { NumberValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';diff --git a/packages/engine-formula/src/functions/lookup/sortby/index.ts b/packages/engine-formula/src/functions/lookup/sortby/index.tsindex 2bdb3fa3d8..e43c22816b 100644--- a/packages/engine-formula/src/functions/lookup/sortby/index.ts+++ b/packages/engine-formula/src/functions/lookup/sortby/index.ts@@ -15,17 +15,15 @@*/import type { Nullable } from '@univerjs/core';+import type { BaseValueObject } from '../../../engine/value-object/base-value-object';import { ErrorType } from '../../../basics/error-type';+import { expandArrayValueObject } from '../../../engine/utils/array-object';import { getCompare } from '../../../engine/utils/compare';+import { calculateMaxDimensions } from '../../../engine/utils/value-object';import { ArrayValueObject } from '../../../engine/value-object/array-value-object';-import type { BaseValueObject } from '../../../engine/value-object/base-value-object';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';-import { BooleanValueObject, NumberValueObject } from '../../../engine/value-object/primitive-object';-import { BaseFunction } from '../../base-function';-import { calculateMaxDimensions } from '../../../engine/utils/value-object';-import { expandArrayValueObject } from '../../../engine/utils/array-object';export class Sortby extends BaseFunction {override minParams = 2;diff --git a/packages/engine-formula/src/functions/lookup/take/index.ts b/packages/engine-formula/src/functions/lookup/take/index.tsindex 35735d5d92..33f980547d 100644--- a/packages/engine-formula/src/functions/lookup/take/index.ts+++ b/packages/engine-formula/src/functions/lookup/take/index.ts@@ -14,13 +14,13 @@* limitations under the License.*/+import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';+import type { BaseValueObject } from '../../../engine/value-object/base-value-object';import { ErrorType } from '../../../basics/error-type';import { expandArrayValueObject } from '../../../engine/utils/array-object';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';import { NumberValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';-import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';-import type { BaseValueObject } from '../../../engine/value-object/base-value-object';export class Take extends BaseFunction {override minParams = 2;diff --git a/packages/engine-formula/src/functions/lookup/vstack/index.ts b/packages/engine-formula/src/functions/lookup/vstack/index.tsindex df2aca58ef..80aea0ca4c 100644--- a/packages/engine-formula/src/functions/lookup/vstack/index.ts+++ b/packages/engine-formula/src/functions/lookup/vstack/index.ts@@ -15,11 +15,10 @@*/import type { Nullable } from '@univerjs/core';+import type { BaseValueObject } from '../../../engine/value-object/base-value-object';import { ErrorType } from '../../../basics/error-type';import { ArrayValueObject } from '../../../engine/value-object/array-value-object';-import type { BaseValueObject } from '../../../engine/value-object/base-value-object';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';-import { BaseFunction } from '../../base-function';export class Vstack extends BaseFunction {diff --git a/packages/engine-formula/src/functions/math/acot/index.ts b/packages/engine-formula/src/functions/math/acot/index.tsindex a9ef39ae63..f68132bcad 100644--- a/packages/engine-formula/src/functions/math/acot/index.ts+++ b/packages/engine-formula/src/functions/math/acot/index.ts@@ -14,8 +14,8 @@* limitations under the License.*/-import { ErrorType } from '../../../basics/error-type';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';+import { ErrorType } from '../../../basics/error-type';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';import { NumberValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';diff --git a/packages/engine-formula/src/functions/math/acoth/index.ts b/packages/engine-formula/src/functions/math/acoth/index.tsindex d32e03a8fa..c86a83b596 100644--- a/packages/engine-formula/src/functions/math/acoth/index.ts+++ b/packages/engine-formula/src/functions/math/acoth/index.ts@@ -14,8 +14,8 @@* limitations under the License.*/-import { ErrorType } from '../../../basics/error-type';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';+import { ErrorType } from '../../../basics/error-type';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';import { NumberValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';diff --git a/packages/engine-formula/src/functions/math/base/index.ts b/packages/engine-formula/src/functions/math/base/index.tsindex 4401e05e50..69ab720820 100644--- a/packages/engine-formula/src/functions/math/base/index.ts+++ b/packages/engine-formula/src/functions/math/base/index.ts@@ -14,10 +14,10 @@* limitations under the License.*/-import { ErrorType } from '../../../basics/error-type';-import { expandArrayValueObject } from '../../../engine/utils/array-object';import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';+import { ErrorType } from '../../../basics/error-type';+import { expandArrayValueObject } from '../../../engine/utils/array-object';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';import { NumberValueObject, StringValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';diff --git a/packages/engine-formula/src/functions/math/cot/index.ts b/packages/engine-formula/src/functions/math/cot/index.tsindex fe0ea3f569..8fa6889a97 100644--- a/packages/engine-formula/src/functions/math/cot/index.ts+++ b/packages/engine-formula/src/functions/math/cot/index.ts@@ -14,8 +14,8 @@* limitations under the License.*/-import { ErrorType } from '../../../basics/error-type';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';+import { ErrorType } from '../../../basics/error-type';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';import { BaseFunction } from '../../base-function';diff --git a/packages/engine-formula/src/functions/math/coth/index.ts b/packages/engine-formula/src/functions/math/coth/index.tsindex 84aebfb3de..14b5007ae2 100644--- a/packages/engine-formula/src/functions/math/coth/index.ts+++ b/packages/engine-formula/src/functions/math/coth/index.ts@@ -14,8 +14,8 @@* limitations under the License.*/-import { ErrorType } from '../../../basics/error-type';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';+import { ErrorType } from '../../../basics/error-type';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';import { BaseFunction } from '../../base-function';diff --git a/packages/engine-formula/src/functions/math/csc/index.ts b/packages/engine-formula/src/functions/math/csc/index.tsindex c054a66f90..7e9fbd8074 100644--- a/packages/engine-formula/src/functions/math/csc/index.ts+++ b/packages/engine-formula/src/functions/math/csc/index.ts@@ -14,8 +14,8 @@* limitations under the License.*/-import { ErrorType } from '../../../basics/error-type';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';+import { ErrorType } from '../../../basics/error-type';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';import { BaseFunction } from '../../base-function';diff --git a/packages/engine-formula/src/functions/math/csch/index.ts b/packages/engine-formula/src/functions/math/csch/index.tsindex 82f95690ea..f55c8f2019 100644--- a/packages/engine-formula/src/functions/math/csch/index.ts+++ b/packages/engine-formula/src/functions/math/csch/index.ts@@ -14,8 +14,8 @@* limitations under the License.*/-import { ErrorType } from '../../../basics/error-type';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';+import { ErrorType } from '../../../basics/error-type';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';import { NumberValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';diff --git a/packages/engine-formula/src/functions/math/decimal/index.ts b/packages/engine-formula/src/functions/math/decimal/index.tsindex 2c67b972e4..70bdcd93a6 100644--- a/packages/engine-formula/src/functions/math/decimal/index.ts+++ b/packages/engine-formula/src/functions/math/decimal/index.ts@@ -14,11 +14,11 @@* limitations under the License.*/+import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';+import type { BaseValueObject } from '../../../engine/value-object/base-value-object';import { isRealNum } from '@univerjs/core';import { ErrorType } from '../../../basics/error-type';import { expandArrayValueObject } from '../../../engine/utils/array-object';-import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';-import type { BaseValueObject } from '../../../engine/value-object/base-value-object';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';import { NumberValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';diff --git a/packages/engine-formula/src/functions/math/degrees/index.ts b/packages/engine-formula/src/functions/math/degrees/index.tsindex a5ca58b832..6ac5410664 100644--- a/packages/engine-formula/src/functions/math/degrees/index.ts+++ b/packages/engine-formula/src/functions/math/degrees/index.ts@@ -14,8 +14,8 @@* limitations under the License.*/-import { ErrorType } from '../../../basics/error-type';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';+import { ErrorType } from '../../../basics/error-type';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';import { NumberValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';diff --git a/packages/engine-formula/src/functions/math/even/index.ts b/packages/engine-formula/src/functions/math/even/index.tsindex f164dbbbf8..504a427bb7 100644--- a/packages/engine-formula/src/functions/math/even/index.ts+++ b/packages/engine-formula/src/functions/math/even/index.ts@@ -14,9 +14,9 @@* limitations under the License.*/+import type { BaseValueObject } from '../../../engine/value-object/base-value-object';import { ErrorType } from '../../../basics/error-type';import { ceil } from '../../../engine/utils/math-kit';-import type { BaseValueObject } from '../../../engine/value-object/base-value-object';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';import { NumberValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';diff --git a/packages/engine-formula/src/functions/math/int/index.ts b/packages/engine-formula/src/functions/math/int/index.tsindex 15eaa79da1..d7c0bbf794 100644--- a/packages/engine-formula/src/functions/math/int/index.ts+++ b/packages/engine-formula/src/functions/math/int/index.ts@@ -14,10 +14,10 @@* limitations under the License.*/-import { NumberValueObject } from '../../../engine/value-object/primitive-object';-import { BaseFunction } from '../../base-function';import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';+import { NumberValueObject } from '../../../engine/value-object/primitive-object';+import { BaseFunction } from '../../base-function';export class Int extends BaseFunction {override minParams = 1;diff --git a/packages/engine-formula/src/functions/math/mod/index.ts b/packages/engine-formula/src/functions/math/mod/index.tsindex de251c9648..e19b8dd706 100644--- a/packages/engine-formula/src/functions/math/mod/index.ts+++ b/packages/engine-formula/src/functions/math/mod/index.ts@@ -14,8 +14,8 @@* limitations under the License.*/-import { BaseFunction } from '../../base-function';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';+import { BaseFunction } from '../../base-function';export class Mod extends BaseFunction {override minParams = 2;diff --git a/packages/engine-formula/src/functions/math/odd/index.ts b/packages/engine-formula/src/functions/math/odd/index.tsindex dea90dc7ca..7b8154a64c 100644--- a/packages/engine-formula/src/functions/math/odd/index.ts+++ b/packages/engine-formula/src/functions/math/odd/index.ts@@ -14,9 +14,9 @@* limitations under the License.*/+import type { BaseValueObject } from '../../../engine/value-object/base-value-object';import { ErrorType } from '../../../basics/error-type';import { ceil } from '../../../engine/utils/math-kit';-import type { BaseValueObject } from '../../../engine/value-object/base-value-object';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';import { NumberValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';diff --git a/packages/engine-formula/src/functions/math/quotient/index.ts b/packages/engine-formula/src/functions/math/quotient/index.tsindex 66c821731f..2adc331b0e 100644--- a/packages/engine-formula/src/functions/math/quotient/index.ts+++ b/packages/engine-formula/src/functions/math/quotient/index.ts@@ -14,12 +14,12 @@* limitations under the License.*/+import type { BaseValueObject } from '../../../engine/value-object/base-value-object';import { ErrorType } from '../../../basics/error-type';import { checkVariantsErrorIsArrayOrBoolean } from '../../../engine/utils/check-variant-error';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';import { NumberValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';-import type { BaseValueObject } from '../../../engine/value-object/base-value-object';export class Quotient extends BaseFunction {override minParams = 2;diff --git a/packages/engine-formula/src/functions/math/radians/index.ts b/packages/engine-formula/src/functions/math/radians/index.tsindex 8ce439ecfe..360238ee52 100644--- a/packages/engine-formula/src/functions/math/radians/index.ts+++ b/packages/engine-formula/src/functions/math/radians/index.ts@@ -14,8 +14,8 @@* limitations under the License.*/-import { ErrorType } from '../../../basics/error-type';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';+import { ErrorType } from '../../../basics/error-type';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';import { NumberValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';diff --git a/packages/engine-formula/src/functions/math/sec/index.ts b/packages/engine-formula/src/functions/math/sec/index.tsindex 44b04b16fd..02e9a21c3f 100644--- a/packages/engine-formula/src/functions/math/sec/index.ts+++ b/packages/engine-formula/src/functions/math/sec/index.ts@@ -14,8 +14,8 @@* limitations under the License.*/-import { ErrorType } from '../../../basics/error-type';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';+import { ErrorType } from '../../../basics/error-type';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';import { BaseFunction } from '../../base-function';diff --git a/packages/engine-formula/src/functions/math/sech/index.ts b/packages/engine-formula/src/functions/math/sech/index.tsindex 63b566966e..58a667efae 100644--- a/packages/engine-formula/src/functions/math/sech/index.ts+++ b/packages/engine-formula/src/functions/math/sech/index.ts@@ -14,8 +14,8 @@* limitations under the License.*/-import { ErrorType } from '../../../basics/error-type';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';+import { ErrorType } from '../../../basics/error-type';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';import { NumberValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';diff --git a/packages/engine-formula/src/functions/math/seriessum/index.ts b/packages/engine-formula/src/functions/math/seriessum/index.tsindex 6bbd4257e8..2e7fff7bc9 100644--- a/packages/engine-formula/src/functions/math/seriessum/index.ts+++ b/packages/engine-formula/src/functions/math/seriessum/index.ts@@ -14,13 +14,13 @@* limitations under the License.*/+import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';+import type { BaseValueObject } from '../../../engine/value-object/base-value-object';import { ErrorType } from '../../../basics/error-type';import { checkVariantsErrorIsArrayOrBoolean, checkVariantsErrorIsStringToNumber } from '../../../engine/utils/check-variant-error';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';import { NumberValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';-import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';-import type { BaseValueObject } from '../../../engine/value-object/base-value-object';export class Seriessum extends BaseFunction {override minParams = 4;diff --git a/packages/engine-formula/src/functions/math/sign/index.ts b/packages/engine-formula/src/functions/math/sign/index.tsindex 52e87664a4..57ac2d5d24 100644--- a/packages/engine-formula/src/functions/math/sign/index.ts+++ b/packages/engine-formula/src/functions/math/sign/index.ts@@ -14,11 +14,11 @@* limitations under the License.*/+import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';+import type { BaseValueObject, ErrorValueObject } from '../../../engine/value-object/base-value-object';import { checkVariantsErrorIsStringToNumber } from '../../../engine/utils/check-variant-error';import { NumberValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';-import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';-import type { BaseValueObject, ErrorValueObject } from '../../../engine/value-object/base-value-object';export class Sign extends BaseFunction {override minParams = 1;diff --git a/packages/engine-formula/src/functions/meta/compare/index.ts b/packages/engine-formula/src/functions/meta/compare/index.tsindex a2ecf26994..0df238c25c 100644--- a/packages/engine-formula/src/functions/meta/compare/index.ts+++ b/packages/engine-formula/src/functions/meta/compare/index.ts@@ -14,8 +14,8 @@* limitations under the License.*/-import { compareToken } from '../../../basics/token';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';+import { compareToken } from '../../../basics/token';import { BaseFunction } from '../../base-function';export class Compare extends BaseFunction {diff --git a/packages/engine-formula/src/functions/meta/cube/index.ts b/packages/engine-formula/src/functions/meta/cube/index.tsindex c0e43adfcd..ebcadfa70a 100644--- a/packages/engine-formula/src/functions/meta/cube/index.ts+++ b/packages/engine-formula/src/functions/meta/cube/index.ts@@ -14,12 +14,12 @@* limitations under the License.*/-import { ErrorType } from '../../../basics/error-type';+import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';+import { ErrorType } from '../../../basics/error-type';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';-import { BaseFunction } from '../../base-function';-import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';import { CubeValueObject } from '../../../engine/value-object/cube-value-object';+import { BaseFunction } from '../../base-function';export class Cube extends BaseFunction {override minParams = 1;diff --git a/packages/engine-formula/src/functions/statistical/avedev/index.ts b/packages/engine-formula/src/functions/statistical/avedev/index.tsindex 490d422104..1f703c1613 100644--- a/packages/engine-formula/src/functions/statistical/avedev/index.ts+++ b/packages/engine-formula/src/functions/statistical/avedev/index.ts@@ -17,11 +17,11 @@import type { Nullable } from '@univerjs/core';import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';+import { ErrorType } from '../../../basics/error-type';+import { createNewArray } from '../../../engine/utils/array-object';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';import { NumberValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';-import { createNewArray } from '../../../engine/utils/array-object';-import { ErrorType } from '../../../basics/error-type';export class Avedev extends BaseFunction {override minParams = 1;diff --git a/packages/engine-formula/src/functions/statistical/devsq/index.ts b/packages/engine-formula/src/functions/statistical/devsq/index.tsindex 3a80c46519..b68bda5667 100644--- a/packages/engine-formula/src/functions/statistical/devsq/index.ts+++ b/packages/engine-formula/src/functions/statistical/devsq/index.ts@@ -14,13 +14,13 @@* limitations under the License.*/+import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';+import type { BaseValueObject } from '../../../engine/value-object/base-value-object';import { isRealNum } from '@univerjs/core';import { ErrorType } from '../../../basics/error-type';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';import { NullValueObject, NumberValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';-import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';-import type { BaseValueObject } from '../../../engine/value-object/base-value-object';export class Devsq extends BaseFunction {override minParams = 1;diff --git a/packages/engine-formula/src/functions/statistical/fisher/index.ts b/packages/engine-formula/src/functions/statistical/fisher/index.tsindex 320cdb6f83..bf4788b80d 100644--- a/packages/engine-formula/src/functions/statistical/fisher/index.ts+++ b/packages/engine-formula/src/functions/statistical/fisher/index.ts@@ -14,13 +14,13 @@* limitations under the License.*/+import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';+import type { BaseValueObject } from '../../../engine/value-object/base-value-object';import { ErrorType } from '../../../basics/error-type';import { checkVariantsErrorIsStringToNumber } from '../../../engine/utils/check-variant-error';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';import { NumberValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';-import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';-import type { BaseValueObject } from '../../../engine/value-object/base-value-object';export class Fisher extends BaseFunction {override minParams = 1;diff --git a/packages/engine-formula/src/functions/statistical/fisherinv/index.ts b/packages/engine-formula/src/functions/statistical/fisherinv/index.tsindex c329559df2..2c99f5dbcd 100644--- a/packages/engine-formula/src/functions/statistical/fisherinv/index.ts+++ b/packages/engine-formula/src/functions/statistical/fisherinv/index.ts@@ -14,11 +14,11 @@* limitations under the License.*/+import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';+import type { BaseValueObject, ErrorValueObject } from '../../../engine/value-object/base-value-object';import { checkVariantsErrorIsStringToNumber } from '../../../engine/utils/check-variant-error';import { NumberValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';-import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';-import type { BaseValueObject, ErrorValueObject } from '../../../engine/value-object/base-value-object';export class Fisherinv extends BaseFunction {override minParams = 1;diff --git a/packages/engine-formula/src/functions/text/concatenate/index.ts b/packages/engine-formula/src/functions/text/concatenate/index.tsindex 555f1099c8..c1a868242b 100644--- a/packages/engine-formula/src/functions/text/concatenate/index.ts+++ b/packages/engine-formula/src/functions/text/concatenate/index.ts@@ -14,10 +14,10 @@* limitations under the License.*/-import { ErrorType } from '../../../basics/error-type';-import { expandArrayValueObject } from '../../../engine/utils/array-object';import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';import type { BaseValueObject } from '../../../engine/value-object/base-value-object';+import { ErrorType } from '../../../basics/error-type';+import { expandArrayValueObject } from '../../../engine/utils/array-object';import { ErrorValueObject } from '../../../engine/value-object/base-value-object';import { StringValueObject } from '../../../engine/value-object/primitive-object';import { BaseFunction } from '../../base-function';diff --git a/packages/engine-formula/src/plugin.ts b/packages/engine-formula/src/plugin.tsindex 85817be98d..06b6dc629c 100644--- a/packages/engine-formula/src/plugin.ts+++ b/packages/engine-formula/src/plugin.ts@@ -17,6 +17,7 @@import type { Dependency } from '@univerjs/core';import type { IUniverEngineFormulaConfig } from './controller/config.schema';import { IConfigService, Inject, Injector, merge, Plugin, touchDependencies } from '@univerjs/core';+import pkg from '../package.json';import { CalculateController } from './controller/calculate.controller';import { ComputingStatusReporterController } from './controller/computing-status.controller';import { defaultPluginConfig, ENGINE_FORMULA_PLUGIN_CONFIG_KEY } from './controller/config.schema';@@ -59,10 +60,10 @@ import { FormulaRuntimeService, IFormulaRuntimeService } from './services/runtimimport { ISheetRowFilteredService, SheetRowFilteredService } from './services/sheet-row-filtered.service';import { ISuperTableService, SuperTableService } from './services/super-table.service';-const PLUGIN_NAME = 'UNIVER_ENGINE_FORMULA_PLUGIN';-export class UniverFormulaEnginePlugin extends Plugin {- static override pluginName = PLUGIN_NAME;+ static override pluginName = 'UNIVER_ENGINE_FORMULA_PLUGIN';+ static override packageName = pkg.name;+ static override version = pkg.version;constructor(protected readonly _config: Partial<IUniverEngineFormulaConfig> = defaultPluginConfig,diff --git a/packages/engine-render/src/basics/document-node-tools.ts b/packages/engine-render/src/basics/document-node-tools.tsindex 51f7040064..cc1e7635c5 100644--- a/packages/engine-render/src/basics/document-node-tools.ts+++ b/packages/engine-render/src/basics/document-node-tools.ts@@ -15,9 +15,8 @@*/import type { IDocumentBody, Nullable } from '@univerjs/core';-import { checkParagraphHasIndentByStyle, DataStreamTreeTokenType } from '@univerjs/core';-import type { IDocumentSkeletonGlyph } from './i-document-skeleton-cached';+import { checkParagraphHasIndentByStyle, DataStreamTreeTokenType } from '@univerjs/core';import { GlyphType } from './i-document-skeleton-cached';export function hasListGlyph(glyph: Nullable<IDocumentSkeletonGlyph>) {diff --git a/packages/engine-render/src/basics/offset-rotation-axis.ts b/packages/engine-render/src/basics/offset-rotation-axis.tsindex 8a14657ebf..75f0bf48fe 100644--- a/packages/engine-render/src/basics/offset-rotation-axis.ts+++ b/packages/engine-render/src/basics/offset-rotation-axis.ts@@ -14,8 +14,8 @@* limitations under the License.*/-import { degToRad } from './tools';import type { Vector2 } from './vector2';+import { degToRad } from './tools';export function offsetRotationAxis(referenceCoords: Vector2, angleDegree: number, vertexCoords: Vector2, centerCoords: Vector2): Vector2 {const angleRad = degToRad(angleDegree);diff --git a/packages/engine-render/src/basics/performance-monitor.ts b/packages/engine-render/src/basics/performance-monitor.tsindex 5de4d782ff..6399d35dd3 100644--- a/packages/engine-render/src/basics/performance-monitor.ts+++ b/packages/engine-render/src/basics/performance-monitor.ts@@ -14,8 +14,8 @@* limitations under the License.*/-import { Disposable } from '@univerjs/core';import type { Nullable } from '@univerjs/core';+import { Disposable } from '@univerjs/core';export const DEFAULT_FRAME_SAMPLE_SIZE = 60;diff --git a/packages/engine-render/src/basics/transform.ts b/packages/engine-render/src/basics/transform.tsindex e263df16ad..ab014ce024 100644--- a/packages/engine-render/src/basics/transform.ts+++ b/packages/engine-render/src/basics/transform.ts@@ -16,9 +16,9 @@import type { ITransformState } from '@univerjs/core';+import type { IRect } from './interfaces';import { degToRad, precisionTo, radToDeg } from './tools';import { Vector2 } from './vector2';-import type { IRect } from './interfaces';export const INITIAL_MATRIX: number[] = [1, 0, 0, 1, 0, 0];diff --git a/packages/engine-render/src/components/docs/layout/line-breaker/enhancers/hyphen-enhancer.ts b/packages/engine-render/src/components/docs/layout/line-breaker/enhancers/hyphen-enhancer.tsindex 4a9153cfea..682285e712 100644--- a/packages/engine-render/src/components/docs/layout/line-breaker/enhancers/hyphen-enhancer.ts+++ b/packages/engine-render/src/components/docs/layout/line-breaker/enhancers/hyphen-enhancer.ts@@ -15,10 +15,10 @@*/import type { Nullable } from '@univerjs/core';-import { Break, BreakPointType } from '../break';-import type { IBreakPoints, LineBreaker } from '../line-breaker';import type { Hyphen } from '../../hyphenation/hyphen';import type { Lang } from '../../hyphenation/lang';+import type { IBreakPoints, LineBreaker } from '../line-breaker';+import { Break, BreakPointType } from '../break';import { getSlicePosition, getWord } from './utils';function isUpperCase(word: string) {diff --git a/packages/engine-render/src/components/docs/layout/model/__tests__/glyph.spec.ts b/packages/engine-render/src/components/docs/layout/model/__tests__/glyph.spec.tsindex 82d67894a5..a12b03f5a3 100644--- a/packages/engine-render/src/components/docs/layout/model/__tests__/glyph.spec.ts+++ b/packages/engine-render/src/components/docs/layout/model/__tests__/glyph.spec.ts@@ -14,9 +14,9 @@* limitations under the License.*/+import type { IDocumentSkeletonGlyph } from '../../../../../basics/i-document-skeleton-cached';import { describe, expect, it } from 'vitest';import { baseAdjustability, glyphShrinkLeft, glyphShrinkRight, isJustifiable, isSpace } from '../glyph';-import type { IDocumentSkeletonGlyph } from '../../../../../basics/i-document-skeleton-cached';describe('Glyph utils test cases', () => {describe('test baseAdjustability', () => {diff --git a/packages/engine-render/src/plugin.ts b/packages/engine-render/src/plugin.tsindex 6545d21fbd..82bb7cc4a0 100644--- a/packages/engine-render/src/plugin.ts+++ b/packages/engine-render/src/plugin.ts@@ -15,8 +15,9 @@*/import type { IUniverEngineRenderConfig } from './controllers/config.schema';-import { createIdentifier, IConfigService, Inject, Injector, merge, Plugin, registerDependencies } from '@univerjs/core';++import pkg from '../package.json';import { defaultPluginConfig, ENGINE_RENDER_PLUGIN_CONFIG_KEY } from './controllers/config.schema';import { Engine } from './engine';import { IRenderManagerService, RenderManagerService } from './render-manager/render-manager.service';@@ -34,6 +35,8 @@ const PLUGIN_NAME = 'UNIVER_RENDER_ENGINE_PLUGIN';export class UniverRenderEnginePlugin extends Plugin {static override pluginName = PLUGIN_NAME;+ static override packageName = pkg.name;+ static override version = pkg.version;constructor(private readonly _config: Partial<IUniverEngineRenderConfig> = defaultPluginConfig,diff --git a/packages/find-replace/src/controllers/find-replace.menu.ts b/packages/find-replace/src/controllers/find-replace.menu.tsindex fdaffb6e12..42dae0a173 100644--- a/packages/find-replace/src/controllers/find-replace.menu.ts+++ b/packages/find-replace/src/controllers/find-replace.menu.ts@@ -14,10 +14,10 @@* limitations under the License.*/-import { EDITOR_ACTIVATED, FOCUSING_SHEET, IContextService, UniverInstanceType } from '@univerjs/core';+import type { IAccessor } from '@univerjs/core';import type { IMenuButtonItem } from '@univerjs/ui';+import { EDITOR_ACTIVATED, FOCUSING_SHEET, IContextService, UniverInstanceType } from '@univerjs/core';import { getMenuHiddenObservable, MenuItemType } from '@univerjs/ui';-import type { IAccessor } from '@univerjs/core';import { combineLatest, map } from 'rxjs';import { OpenFindDialogOperation } from '../commands/operations/find-replace.operation';diff --git a/packages/find-replace/src/plugin.ts b/packages/find-replace/src/plugin.tsindex fbc47d2579..22f7403631 100644--- a/packages/find-replace/src/plugin.ts+++ b/packages/find-replace/src/plugin.ts@@ -17,14 +17,15 @@import type { Dependency } from '@univerjs/core';import type { IUniverFindReplaceConfig } from './controllers/config.schema';import { IConfigService, Inject, Injector, merge, Plugin } from '@univerjs/core';+import pkg from '../package.json';import { defaultPluginConfig, FIND_REPLACE_PLUGIN_CONFIG_KEY } from './controllers/config.schema';import { FindReplaceController } from './controllers/find-replace.controller';import { FindReplaceService, IFindReplaceService } from './services/find-replace.service';-const PLUGIN_NAME = 'UNIVER_FIND_REPLACE_PLUGIN';-export class UniverFindReplacePlugin extends Plugin {- static override pluginName = PLUGIN_NAME;+ static override pluginName = 'UNIVER_FIND_REPLACE_PLUGIN';+ static override packageName = pkg.name;+ static override version = pkg.version;constructor(private readonly _config: Partial<IUniverFindReplaceConfig> = defaultPluginConfig,diff --git a/packages/network/src/plugin.ts b/packages/network/src/plugin.tsindex 12e2d79f48..529da47395 100644--- a/packages/network/src/plugin.ts+++ b/packages/network/src/plugin.ts@@ -16,6 +16,7 @@import type { IUniverNetworkConfig } from './controllers/config.schema';import { IConfigService, ILogService, Inject, Injector, LookUp, merge, mergeOverrideWithDependencies, Plugin, Quantity, registerDependencies } from '@univerjs/core';+import pkg from '../package.json';import { defaultPluginConfig, NETWORK_PLUGIN_CONFIG_KEY } from './controllers/config.schema';import { HTTPService } from './services/http/http.service';import { FetchHTTPImplementation } from './services/http/implementations/fetch';@@ -27,6 +28,8 @@ import { XHRHTTPImplementation } from './services/http/implementations/xhr';*/export class UniverNetworkPlugin extends Plugin {static override pluginName = 'UNIVER_NETWORK_PLUGIN';+ static override packageName = pkg.name;+ static override version = pkg.version;constructor(private readonly _config: Partial<IUniverNetworkConfig> = defaultPluginConfig,diff --git a/packages/network/src/services/http/__testing__/http-testing-utils.ts b/packages/network/src/services/http/__testing__/http-testing-utils.tsindex 5c0eae6f03..38817129ad 100644--- a/packages/network/src/services/http/__testing__/http-testing-utils.ts+++ b/packages/network/src/services/http/__testing__/http-testing-utils.ts@@ -18,13 +18,12 @@/* eslint-disable ts/no-this-alias */import type { Observer } from 'rxjs';-import { Observable, Subject } from 'rxjs';-import { Disposable, Injector } from '@univerjs/core';--import { IHTTPImplementation } from '../implementations/implementation';import type { HTTPRequest } from '../request';import type { HTTPEvent, HTTPResponse, HTTPResponseError } from '../response';+import { Disposable, Injector } from '@univerjs/core';+import { Observable, Subject } from 'rxjs';import { HTTPService } from '../http.service';+import { IHTTPImplementation } from '../implementations/implementation';/*** A mocked HTTP implementation service for testing purposes. Besides methods in the interface, itdiff --git a/packages/network/src/services/http/interceptors/merge-interceptor.ts b/packages/network/src/services/http/interceptors/merge-interceptor.tsindex c948dd4223..85c70ac758 100644--- a/packages/network/src/services/http/interceptors/merge-interceptor.ts+++ b/packages/network/src/services/http/interceptors/merge-interceptor.ts@@ -14,10 +14,10 @@* limitations under the License.*/-import { Observable } from 'rxjs';+import type { HTTPHandlerFn } from '../interceptor';import type { HTTPRequest } from '../request';+import { Observable } from 'rxjs';import { HTTPEventType, HTTPResponse } from '../response';-import type { HTTPHandlerFn } from '../interceptor';const createDefaultFetchCheck = (time = 300) => {const noop = () => { };diff --git a/packages/network/src/services/http/interceptors/threshold-interceptor.ts b/packages/network/src/services/http/interceptors/threshold-interceptor.tsindex 3f2353ad8a..d143ff690d 100644--- a/packages/network/src/services/http/interceptors/threshold-interceptor.ts+++ b/packages/network/src/services/http/interceptors/threshold-interceptor.ts@@ -14,10 +14,10 @@* limitations under the License.*/-import { Observable } from 'rxjs';import type { Nullable } from '@univerjs/core';-import { remove } from '@univerjs/core';import type { HTTPInterceptorFnFactory } from '../interceptor';+import { remove } from '@univerjs/core';+import { Observable } from 'rxjs';export interface IThresholdInterceptorFactoryParams {maxParallel?: number;diff --git a/packages/rpc-node/src/plugin.ts b/packages/rpc-node/src/plugin.tsindex f9453d5d36..d8c8554ed5 100644--- a/packages/rpc-node/src/plugin.ts+++ b/packages/rpc-node/src/plugin.ts@@ -32,10 +32,13 @@ import {WebWorkerRemoteInstanceService,} from '@univerjs/rpc';import { Observable, shareReplay } from 'rxjs';+import pkg from '../package.json';import { defaultPluginMainThreadConfig, defaultPluginWorkerThreadConfig, PLUGIN_CONFIG_KEY_MAIN_THREAD, PLUGIN_CONFIG_KEY_WORKER_THREAD } from './controllers/config.schema';export class UniverRPCNodeMainPlugin extends Plugin {static override pluginName = 'UNIVER_RPC_NODE_MAIN_PLUGIN';+ static override packageName = pkg.name;+ static override version = pkg.version;private _child: ChildProcess | null = null;@@ -83,8 +86,7 @@ export class UniverRPCNodeMainPlugin extends Plugin {if (this._child) {try {this._child.kill();- }- catch (e) {+ } catch (e) {console.error('Failed to kill child process:', e);}this._child = null;@@ -94,6 +96,8 @@ export class UniverRPCNodeMainPlugin extends Plugin {export class UniverRPCNodeWorkerPlugin extends Plugin {static override pluginName = 'UNIVER_RPC_NODE_WORKER_PLUGIN';+ static override packageName = pkg.name;+ static override version = pkg.version;constructor(private readonly _config: Partial<IUniverRPCNodeWorkerThreadConfig> = defaultPluginWorkerThreadConfig,diff --git a/packages/rpc/src/plugin.ts b/packages/rpc/src/plugin.tsindex ad3fbeceb2..5279d9ff85 100644--- a/packages/rpc/src/plugin.ts+++ b/packages/rpc/src/plugin.ts@@ -20,6 +20,7 @@ import type {IUniverRPCWorkerThreadConfig,} from './controllers/config.schema';import { IConfigService, Inject, Injector, merge, Plugin } from '@univerjs/core';+import pkg from '../package.json';import {defaultPluginMainThreadConfig,defaultPluginWorkerThreadConfig,@@ -46,6 +47,8 @@ import {*/export class UniverRPCMainThreadPlugin extends Plugin {static override pluginName = 'UNIVER_RPC_MAIN_THREAD_PLUGIN';+ static override packageName = pkg.name;+ static override version = pkg.version;private _internalWorker: Worker | null = null;@@ -107,6 +110,8 @@ export class UniverRPCMainThreadPlugin extends Plugin {*/export class UniverRPCWorkerThreadPlugin extends Plugin {static override pluginName = 'UNIVER_RPC_WORKER_THREAD_PLUGIN';+ static override packageName = pkg.name;+ static override version = pkg.version;constructor(private readonly _config: Partial<IUniverRPCWorkerThreadConfig> = defaultPluginWorkerThreadConfig,diff --git a/packages/rpc/src/services/rpc/implementations/web-worker-rpc.service.ts b/packages/rpc/src/services/rpc/implementations/web-worker-rpc.service.tsindex 97ac0ab08d..3bc71523a4 100644--- a/packages/rpc/src/services/rpc/implementations/web-worker-rpc.service.ts+++ b/packages/rpc/src/services/rpc/implementations/web-worker-rpc.service.ts@@ -14,9 +14,8 @@* limitations under the License.*/-import { Observable, shareReplay } from 'rxjs';-import type { IMessageProtocol } from '../rpc.service';+import { Observable, shareReplay } from 'rxjs';/*** Generate an `IMessageProtocol` on the web worker.diff --git a/packages/sheets-conditional-formatting-ui/src/mobile-plugin.ts b/packages/sheets-conditional-formatting-ui/src/mobile-plugin.tsindex 344adeca7a..f917189da5 100644--- a/packages/sheets-conditional-formatting-ui/src/mobile-plugin.ts+++ b/packages/sheets-conditional-formatting-ui/src/mobile-plugin.ts@@ -26,6 +26,7 @@ import {UniverInstanceType,} from '@univerjs/core';import { SHEET_CONDITIONAL_FORMATTING_PLUGIN, UniverSheetsConditionalFormattingPlugin } from '@univerjs/sheets-conditional-formatting';+import pkg from '../package.json';import { AddAverageCfCommand } from './commands/commands/add-average-cf.command';import { AddColorScaleConditionalRuleCommand } from './commands/commands/add-color-scale-cf.command';import { AddDataBarConditionalRuleCommand } from './commands/commands/add-data-bar-cf.command';@@ -35,7 +36,6 @@ import { AddRankCfCommand } from './commands/commands/add-rank-cf.command';import { AddTextCfCommand } from './commands/commands/add-text-cf.command';import { AddTimePeriodCfCommand } from './commands/commands/add-time-period-cf.command';import { AddUniqueValuesCfCommand } from './commands/commands/add-unique-values-cf.command';-import { OpenConditionalFormattingOperator } from './commands/operations/open-conditional-formatting-panel';import { ConditionalFormattingFormulaRefRangeController } from './controllers/cf-formula-ref-range.controller';import { ConditionalFormattingCopyPasteController } from './controllers/cf.copy-paste.controller';@@ -47,6 +47,8 @@ import { defaultPluginConfig, SHEETS_CONDITIONAL_FORMATTING_UI_PLUGIN_CONFIG_KEY@DependentOn(UniverSheetsConditionalFormattingPlugin)export class UniverSheetsConditionalFormattingMobileUIPlugin extends Plugin {static override pluginName = `${SHEET_CONDITIONAL_FORMATTING_PLUGIN}_MOBILE_UI_PLUGIN`;+ static override packageName = pkg.name;+ static override version = pkg.version;static override type = UniverInstanceType.UNIVER_SHEET;constructor(diff --git a/packages/sheets-conditional-formatting-ui/src/plugin.ts b/packages/sheets-conditional-formatting-ui/src/plugin.tsindex 87666014aa..8a3bc23b95 100644--- a/packages/sheets-conditional-formatting-ui/src/plugin.ts+++ b/packages/sheets-conditional-formatting-ui/src/plugin.ts@@ -29,6 +29,7 @@ import {} from '@univerjs/core';import { SHEET_CONDITIONAL_FORMATTING_PLUGIN, UniverSheetsConditionalFormattingPlugin } from '@univerjs/sheets-conditional-formatting';import { UniverSheetsFormulaPlugin } from '@univerjs/sheets-formula';+import pkg from '../package.json';import { AddAverageCfCommand } from './commands/commands/add-average-cf.command';import { AddColorScaleConditionalRuleCommand } from './commands/commands/add-color-scale-cf.command';import { AddDataBarConditionalRuleCommand } from './commands/commands/add-data-bar-cf.command';@@ -37,7 +38,6 @@ import { AddNumberCfCommand } from './commands/commands/add-number-cf.command';import { AddRankCfCommand } from './commands/commands/add-rank-cf.command';import { AddTextCfCommand } from './commands/commands/add-text-cf.command';import { AddTimePeriodCfCommand } from './commands/commands/add-time-period-cf.command';-import { AddUniqueValuesCfCommand } from './commands/commands/add-unique-values-cf.command';import { OpenConditionalFormattingOperator } from './commands/operations/open-conditional-formatting-panel';import { ConditionalFormattingFormulaRefRangeController } from './controllers/cf-formula-ref-range.controller';@@ -57,6 +57,8 @@ import { defaultPluginConfig, SHEETS_CONDITIONAL_FORMATTING_UI_PLUGIN_CONFIG_KEY@DependentOn(UniverSheetsConditionalFormattingPlugin, UniverSheetsFormulaPlugin)export class UniverSheetsConditionalFormattingUIPlugin extends Plugin {static override pluginName = `${SHEET_CONDITIONAL_FORMATTING_PLUGIN}_UI_PLUGIN`;+ static override packageName = pkg.name;+ static override version = pkg.version;static override type = UniverInstanceType.UNIVER_SHEET;constructor(diff --git a/packages/sheets-conditional-formatting/src/commands/mutations/add-conditional-rule.mutation.ts b/packages/sheets-conditional-formatting/src/commands/mutations/add-conditional-rule.mutation.tsindex b2332a9023..9b8b486341 100644--- a/packages/sheets-conditional-formatting/src/commands/mutations/add-conditional-rule.mutation.ts+++ b/packages/sheets-conditional-formatting/src/commands/mutations/add-conditional-rule.mutation.ts@@ -15,12 +15,10 @@*/import type { IAccessor, IMutation } from '@univerjs/core';-import {- CommandType,-} from '@univerjs/core';-import { ConditionalFormattingRuleModel } from '../../models/conditional-formatting-rule-model';import type { IConditionFormattingRule } from '../../models/type';import type { IDeleteConditionalRuleMutationParams } from './delete-conditional-rule.mutation';+import { CommandType } from '@univerjs/core';+import { ConditionalFormattingRuleModel } from '../../models/conditional-formatting-rule-model';import { DeleteConditionalRuleMutation } from './delete-conditional-rule.mutation';export interface IAddConditionalRuleMutationParams {diff --git a/packages/sheets-conditional-formatting/src/plugin.ts b/packages/sheets-conditional-formatting/src/plugin.tsindex 7ab92e39e5..393b297e41 100644--- a/packages/sheets-conditional-formatting/src/plugin.ts+++ b/packages/sheets-conditional-formatting/src/plugin.ts@@ -18,6 +18,7 @@ import type { Dependency } from '@univerjs/core';import type { IUniverSheetsConditionalFormattingConfig } from './controllers/config.schema';import { DependentOn, ICommandService, IConfigService, Inject, Injector, merge, Plugin, touchDependencies, UniverInstanceType } from '@univerjs/core';import { UniverFormulaEnginePlugin } from '@univerjs/engine-formula';+import pkg from '../package.json';import { SHEET_CONDITIONAL_FORMATTING_PLUGIN } from './base/const';import { AddCfCommand } from './commands/commands/add-cf.command';import { ClearRangeCfCommand } from './commands/commands/clear-range-cf.command';@@ -41,6 +42,8 @@ import { ConditionalFormattingService } from './services/conditional-formatting.@DependentOn(UniverFormulaEnginePlugin)export class UniverSheetsConditionalFormattingPlugin extends Plugin {static override pluginName = SHEET_CONDITIONAL_FORMATTING_PLUGIN;+ static override packageName = pkg.name;+ static override version = pkg.version;static override type = UniverInstanceType.UNIVER_SHEET;constructor(diff --git a/packages/sheets-conditional-formatting/src/utils/__test__/anchor.spec.ts b/packages/sheets-conditional-formatting/src/utils/__test__/anchor.spec.tsindex f10af887f4..b31ac39546 100644--- a/packages/sheets-conditional-formatting/src/utils/__test__/anchor.spec.ts+++ b/packages/sheets-conditional-formatting/src/utils/__test__/anchor.spec.ts@@ -14,10 +14,10 @@* limitations under the License.*/-import { beforeEach, describe, expect, it } from 'vitest';+import type { IConditionFormattingRule } from '../../models/type';import type { IAnchor } from '../anchor';+import { beforeEach, describe, expect, it } from 'vitest';import { anchorUndoFactory, moveByAnchor, transformSupportSymmetryAnchor } from '../anchor';-import type { IConditionFormattingRule } from '../../models/type';describe('Test anchor', () => {let list: IConditionFormattingRule[] = [];diff --git a/packages/sheets-crosshair-highlight/src/plugin.ts b/packages/sheets-crosshair-highlight/src/plugin.tsindex d6e6caff3f..8c4121b095 100644--- a/packages/sheets-crosshair-highlight/src/plugin.ts+++ b/packages/sheets-crosshair-highlight/src/plugin.ts@@ -18,6 +18,7 @@ import type { Dependency } from '@univerjs/core';import type { IUniverSheetsCrosshairHighlightConfig } from './controllers/config.schema';import { IConfigService, Inject, Injector, merge, Plugin, UniverInstanceType } from '@univerjs/core';import { IRenderManagerService } from '@univerjs/engine-render';+import pkg from '../package.json';import { defaultPluginConfig, SHEETS_CROSSHAIR_HIGHLIGHT_PLUGIN_CONFIG_KEY } from './controllers/config.schema';import { SheetsCrosshairHighlightController } from './controllers/crosshair.controller';import { SheetsCrosshairHighlightService } from './services/crosshair.service';@@ -25,6 +26,8 @@ import { SheetCrosshairHighlightRenderController } from './views/widgets/crosshaexport class UniverSheetsCrosshairHighlightPlugin extends Plugin {static override pluginName: string = 'SHEET_CROSSHAIR_HIGHLIGHT_PLUGIN';+ static override packageName = pkg.name;+ static override version = pkg.version;static override type = UniverInstanceType.UNIVER_SHEET;constructor(diff --git a/packages/sheets-data-validation-ui/src/mobile-plugin.ts b/packages/sheets-data-validation-ui/src/mobile-plugin.tsindex 603a0425b4..d03419abb2 100644--- a/packages/sheets-data-validation-ui/src/mobile-plugin.ts+++ b/packages/sheets-data-validation-ui/src/mobile-plugin.ts@@ -18,6 +18,7 @@ import type { Dependency, Workbook } from '@univerjs/core';import type { IUniverSheetsDataValidationUIConfig } from './controllers/config.schema';import { ICommandService, IConfigService, Inject, Injector, merge, Plugin, UniverInstanceType } from '@univerjs/core';import { IRenderManagerService } from '@univerjs/engine-render';+import pkg from '../package.json';import { AddSheetDataValidationAndOpenCommand } from './commands/commands/data-validation-ui.command';import {CloseValidationPanelOperation,@@ -37,10 +38,10 @@ import { SheetsDataValidationUIController } from './controllers/dv-ui.controllerimport { DataValidationPanelService } from './services/data-validation-panel.service';import { DataValidationDropdownManagerService } from './services/dropdown-manager.service';-const PLUGIN_NAME = 'SHEET_DATA_VALIDATION_UI_PLUGIN';-export class UniverSheetsDataValidationMobileUIPlugin extends Plugin {- static override pluginName: string = PLUGIN_NAME;+ static override pluginName: string = 'SHEET_DATA_VALIDATION_UI_PLUGIN';+ static override packageName = pkg.name;+ static override version = pkg.version;static override type = UniverInstanceType.UNIVER_SHEET;constructor(diff --git a/packages/sheets-data-validation-ui/src/plugin.ts b/packages/sheets-data-validation-ui/src/plugin.tsindex 4793c36671..004361b930 100644--- a/packages/sheets-data-validation-ui/src/plugin.ts+++ b/packages/sheets-data-validation-ui/src/plugin.ts@@ -19,6 +19,7 @@ import type { IUniverSheetsDataValidationUIConfig } from './controllers/config.simport { DependentOn, ICommandService, IConfigService, Inject, Injector, merge, Plugin, UniverInstanceType } from '@univerjs/core';import { IRenderManagerService } from '@univerjs/engine-render';import { UniverSheetsDataValidationPlugin } from '@univerjs/sheets-data-validation';+import pkg from '../package.json';import { AddSheetDataValidationAndOpenCommand } from './commands/commands/data-validation-ui.command';import {CloseValidationPanelOperation,@@ -39,11 +40,11 @@ import { SheetsDataValidationUIController } from './controllers/dv-ui.controllerimport { DataValidationPanelService } from './services/data-validation-panel.service';import { DataValidationDropdownManagerService } from './services/dropdown-manager.service';-const PLUGIN_NAME = 'SHEET_DATA_VALIDATION_UI_PLUGIN';-@DependentOn(UniverSheetsDataValidationPlugin)export class UniverSheetsDataValidationUIPlugin extends Plugin {- static override pluginName: string = PLUGIN_NAME;+ static override pluginName: string = 'SHEET_DATA_VALIDATION_UI_PLUGIN';+ static override packageName = pkg.name;+ static override version = pkg.version;static override type = UniverInstanceType.UNIVER_SHEET;constructor(diff --git a/packages/sheets-data-validation/src/plugin.ts b/packages/sheets-data-validation/src/plugin.tsindex b1b9b3f48a..1d44829e3c 100644--- a/packages/sheets-data-validation/src/plugin.ts+++ b/packages/sheets-data-validation/src/plugin.ts@@ -28,6 +28,7 @@ import {} from '@univerjs/core';import { UniverDataValidationPlugin } from '@univerjs/data-validation';import { UniverSheetsFormulaPlugin } from '@univerjs/sheets-formula';+import pkg from '../package.json';import {AddSheetDataValidationCommand,ClearRangeDataValidationCommand,@@ -54,6 +55,8 @@ import { SheetsDataValidationValidatorService } from './services/dv-validator-se@DependentOn(UniverSheetsFormulaPlugin, UniverDataValidationPlugin)export class UniverSheetsDataValidationPlugin extends Plugin {static override pluginName = DATA_VALIDATION_PLUGIN_NAME;+ static override packageName = pkg.name;+ static override version = pkg.version;static override type = UniverInstanceType.UNIVER_SHEET;constructor(diff --git a/packages/sheets-drawing-ui/src/commands/commands/group-sheet-drawing.command.ts b/packages/sheets-drawing-ui/src/commands/commands/group-sheet-drawing.command.tsindex 85ed3cbf62..76c773a5be 100644--- a/packages/sheets-drawing-ui/src/commands/commands/group-sheet-drawing.command.ts+++ b/packages/sheets-drawing-ui/src/commands/commands/group-sheet-drawing.command.ts@@ -15,14 +15,14 @@*/import type { IAccessor, ICommand } from '@univerjs/core';+import type { IDrawingGroupUpdateParam, IDrawingJsonUndo1 } from '@univerjs/drawing';+import {CommandType,ICommandService,IUndoRedoService,} from '@univerjs/core';-import { DrawingApplyType, ISheetDrawingService, SetDrawingApplyMutation } from '@univerjs/sheets-drawing';-import type { IDrawingGroupUpdateParam, IDrawingJsonUndo1 } from '@univerjs/drawing';import { ClearSheetDrawingTransformerOperation } from '../operations/clear-drawing-transformer.operation';import { groupToUngroup } from './utils';diff --git a/packages/sheets-drawing-ui/src/commands/commands/ungroup-sheet-drawing.command.ts b/packages/sheets-drawing-ui/src/commands/commands/ungroup-sheet-drawing.command.tsindex 4e4724dcd8..ec9f58ea56 100644--- a/packages/sheets-drawing-ui/src/commands/commands/ungroup-sheet-drawing.command.ts+++ b/packages/sheets-drawing-ui/src/commands/commands/ungroup-sheet-drawing.command.ts@@ -15,14 +15,14 @@*/import type { IAccessor, ICommand } from '@univerjs/core';+import type { IDrawingGroupUpdateParam, IDrawingJsonUndo1 } from '@univerjs/drawing';+import {CommandType,ICommandService,IUndoRedoService,} from '@univerjs/core';-import { DrawingApplyType, ISheetDrawingService, SetDrawingApplyMutation } from '@univerjs/sheets-drawing';-import type { IDrawingGroupUpdateParam, IDrawingJsonUndo1 } from '@univerjs/drawing';import { ClearSheetDrawingTransformerOperation } from '../operations/clear-drawing-transformer.operation';import { ungroupToGroup } from './utils';diff --git a/packages/sheets-drawing-ui/src/controllers/drawing-popup-menu.controller.ts b/packages/sheets-drawing-ui/src/controllers/drawing-popup-menu.controller.tsindex c151bb5f59..e6e80ce3ef 100644--- a/packages/sheets-drawing-ui/src/controllers/drawing-popup-menu.controller.ts+++ b/packages/sheets-drawing-ui/src/controllers/drawing-popup-menu.controller.ts@@ -25,9 +25,9 @@ import { COMPONENT_IMAGE_POPUP_MENU, ImageCropperObject, ImageResetSizeOperationimport { IRenderManagerService } from '@univerjs/engine-render';import { SheetCanvasPopManagerService } from '@univerjs/sheets-ui';import { IMessageService } from '@univerjs/ui';+import { FlipSheetDrawingCommand } from '../commands/commands/flip-drawings.command';import { RemoveSheetDrawingCommand } from '../commands/commands/remove-sheet-drawing.command';import { EditSheetDrawingOperation } from '../commands/operations/edit-sheet-drawing.operation';-import { FlipSheetDrawingCommand } from '../commands/commands/flip-drawings.command';export class DrawingPopupMenuController extends RxDisposable {private _initImagePopupMenu = new Set<string>();diff --git a/packages/sheets-drawing-ui/src/controllers/sheet-drawing.controller.ts b/packages/sheets-drawing-ui/src/controllers/sheet-drawing.controller.tsindex 112d0ef383..1d932e1721 100644--- a/packages/sheets-drawing-ui/src/controllers/sheet-drawing.controller.ts+++ b/packages/sheets-drawing-ui/src/controllers/sheet-drawing.controller.ts@@ -19,6 +19,7 @@ import { IDrawingManagerService } from '@univerjs/drawing';import { SheetsSelectionsService } from '@univerjs/sheets';import { ComponentManager, IMenuManagerService, IShortcutService } from '@univerjs/ui';import { DeleteDrawingsCommand } from '../commands/commands/delete-drawings.command';+import { FlipSheetDrawingCommand } from '../commands/commands/flip-drawings.command';import { GroupSheetDrawingCommand } from '../commands/commands/group-sheet-drawing.command';import { InsertCellImageCommand, InsertFloatImageCommand } from '../commands/commands/insert-image.command';import { InsertSheetDrawingCommand } from '../commands/commands/insert-sheet-drawing.command';@@ -36,7 +37,6 @@ import { COMPONENT_SHEET_DRAWING_PANEL } from '../views/sheet-image-panel/componimport { SheetDrawingPanel } from '../views/sheet-image-panel/SheetDrawingPanel';import { menuSchema } from './menu.schema';import { DeleteDrawingsShortcutItem, MoveDrawingDownShortcutItem, MoveDrawingLeftShortcutItem, MoveDrawingRightShortcutItem, MoveDrawingUpShortcutItem } from './shortcuts/drawing.shortcut';-import { FlipSheetDrawingCommand } from '../commands/commands/flip-drawings.command';export class SheetDrawingUIController extends Disposable {constructor(diff --git a/packages/sheets-drawing-ui/src/index.ts b/packages/sheets-drawing-ui/src/index.tsindex f2bb3b4a77..c80f3fff0f 100644--- a/packages/sheets-drawing-ui/src/index.ts+++ b/packages/sheets-drawing-ui/src/index.ts@@ -16,7 +16,7 @@import './global.css';-export { drawingPositionToTransform, transformToDrawingPosition, transformToAxisAlignPosition } from './basics/transform-position';+export { drawingPositionToTransform, transformToAxisAlignPosition, transformToDrawingPosition } from './basics/transform-position';export { DeleteDrawingsCommand } from './commands/commands/delete-drawings.command';export { GroupSheetDrawingCommand } from './commands/commands/group-sheet-drawing.command';export { type IInsertImageCommandParams, InsertFloatImageCommand } from './commands/commands/insert-image.command';@@ -35,7 +35,6 @@ export type { IUniverSheetsDrawingUIConfig } from './controllers/config.schema';export { SheetDrawingUpdateController } from './controllers/sheet-drawing-update.controller';export { UniverSheetsDrawingUIPlugin } from './plugin';export { BatchSaveImagesService, FileNamePart, type IBatchSaveImagesConfig, IBatchSaveImagesService, type ICellImageInfo } from './services/batch-save-images.service';-export { calcSheetFloatDomPosition, type ICanvasFloatDom, type ICanvasFloatDomInfo, type IDOMAnchor, SHEET_FLOAT_DOM_PREFIX, SheetCanvasFloatDomManagerService } from './services/canvas-float-dom-manager.service';export { SHEETS_IMAGE_MENU_ID } from './views/menu/image.menu';export { SheetDrawingAnchor } from './views/sheet-image-panel/SheetDrawingAnchor';diff --git a/packages/sheets-drawing-ui/src/plugin.ts b/packages/sheets-drawing-ui/src/plugin.tsindex 1314a023f0..ab2f2f8ef5 100644--- a/packages/sheets-drawing-ui/src/plugin.ts+++ b/packages/sheets-drawing-ui/src/plugin.ts@@ -32,6 +32,7 @@ import { UniverDrawingPlugin } from '@univerjs/drawing';import { UniverDrawingUIPlugin } from '@univerjs/drawing-ui';import { IRenderManagerService } from '@univerjs/engine-render';import { UniverSheetsDrawingPlugin } from '@univerjs/sheets-drawing';+import pkg from '../package.json';import { defaultPluginConfig, SHEETS_DRAWING_UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';import { DrawingPopupMenuController } from './controllers/drawing-popup-menu.controller';import { SheetCellImageHoverRenderController } from './controllers/render-controllers/sheet-celll-image-hover.render-controller';@@ -48,12 +49,12 @@ import { SheetDrawingUIController } from './controllers/sheet-drawing.controllerimport { BatchSaveImagesService, IBatchSaveImagesService } from './services/batch-save-images.service';import { SheetCanvasFloatDomManagerService } from './services/canvas-float-dom-manager.service';-const PLUGIN_NAME = 'SHEET_IMAGE_UI_PLUGIN';-@DependentOn(UniverDrawingPlugin, UniverDocsDrawingPlugin, UniverDrawingUIPlugin, UniverSheetsDrawingPlugin)export class UniverSheetsDrawingUIPlugin extends Plugin {static override type = UniverInstanceType.UNIVER_SHEET;- static override pluginName = PLUGIN_NAME;+ static override pluginName = 'SHEET_IMAGE_UI_PLUGIN';+ static override packageName = pkg.name;+ static override version = pkg.version;constructor(private readonly _config: Partial<IUniverSheetsDrawingUIConfig> = defaultPluginConfig,diff --git a/packages/sheets-drawing/src/commands/mutations/set-drawing-apply.mutation.ts b/packages/sheets-drawing/src/commands/mutations/set-drawing-apply.mutation.tsindex 15c4d4c4bd..6d56aebdbb 100644--- a/packages/sheets-drawing/src/commands/mutations/set-drawing-apply.mutation.ts+++ b/packages/sheets-drawing/src/commands/mutations/set-drawing-apply.mutation.ts@@ -15,8 +15,8 @@*/import type { IDrawingSearch, IMutation } from '@univerjs/core';-import { CommandType } from '@univerjs/core';import type { IDrawingGroupUpdateParam, IDrawingJson1Type, IDrawingOrderMapParam } from '@univerjs/drawing';+import { CommandType } from '@univerjs/core';import { IDrawingManagerService } from '@univerjs/drawing';import { ISheetDrawingService } from '../../services/sheet-drawing.service';diff --git a/packages/sheets-drawing/src/plugin.ts b/packages/sheets-drawing/src/plugin.tsindex acb07e5daf..ea8f50bfb1 100644--- a/packages/sheets-drawing/src/plugin.ts+++ b/packages/sheets-drawing/src/plugin.ts@@ -18,6 +18,7 @@ import type { Dependency } from '@univerjs/core';import type { IUniverSheetsDrawingConfig } from './controllers/config.schema';import { DependentOn, IConfigService, Inject, Injector, merge, Plugin, UniverInstanceType } from '@univerjs/core';import { UniverDrawingPlugin } from '@univerjs/drawing';+import pkg from '../package.json';import { defaultPluginConfig, SHEETS_DRAWING_PLUGIN_CONFIG_KEY } from './controllers/config.schema';import { SHEET_DRAWING_PLUGIN, SheetsDrawingLoadController } from './controllers/sheet-drawing.controller';import { ISheetDrawingService, SheetDrawingService } from './services/sheet-drawing.service';@@ -25,6 +26,8 @@ import { ISheetDrawingService, SheetDrawingService } from './services/sheet-draw@DependentOn(UniverDrawingPlugin)export class UniverSheetsDrawingPlugin extends Plugin {static override pluginName = SHEET_DRAWING_PLUGIN;+ static override packageName = pkg.name;+ static override version = pkg.version;static override type = UniverInstanceType.UNIVER_SHEET;constructor(diff --git a/packages/sheets-drawing/src/services/sheet-drawing.service.ts b/packages/sheets-drawing/src/services/sheet-drawing.service.tsindex 17f51fe7a0..46e9028acb 100644--- a/packages/sheets-drawing/src/services/sheet-drawing.service.ts+++ b/packages/sheets-drawing/src/services/sheet-drawing.service.ts@@ -66,8 +66,8 @@ export interface IFloatDomData extends IDrawingParam {data?: Serializable;allowTransform?: boolean;/**- * this property is used to store the excel drawing axis alignment position, which is not always the same as the sheetTransform.- */+ * this property is used to store the excel drawing axis alignment position, which is not always the same as the sheetTransform.+ */axisAlignSheetTransform: ISheetDrawingPosition;}diff --git a/packages/sheets-filter-ui/src/mobile-plugin.ts b/packages/sheets-filter-ui/src/mobile-plugin.tsindex 986bfc893e..726239a4e0 100644--- a/packages/sheets-filter-ui/src/mobile-plugin.ts+++ b/packages/sheets-filter-ui/src/mobile-plugin.ts@@ -17,18 +17,18 @@import type { Dependency } from '@univerjs/core';import type { IUniverSheetsFilterUIConfig } from './controllers/config.schema';import { DependentOn, IConfigService, Inject, Injector, merge, Plugin, UniverInstanceType } from '@univerjs/core';-import { UniverSheetsFilterPlugin } from '@univerjs/sheets-filter';+import pkg from '../package.json';import { defaultPluginConfig, SHEETS_FILTER_UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';import { SheetsFilterPermissionController } from './controllers/sheets-filter-permission.controller';import { SheetsFilterUIMobileController } from './controllers/sheets-filter-ui-mobile.controller';-const NAME = 'SHEET_FILTER_UI_PLUGIN';-@DependentOn(UniverSheetsFilterPlugin)export class UniverSheetsFilterMobileUIPlugin extends Plugin {static override type = UniverInstanceType.UNIVER_SHEET;- static override pluginName = NAME;+ static override pluginName = 'SHEET_FILTER_UI_PLUGIN';+ static override packageName = pkg.name;+ static override version = pkg.version;constructor(private readonly _config: Partial<IUniverSheetsFilterUIConfig> = defaultPluginConfig,diff --git a/packages/sheets-filter-ui/src/plugin.ts b/packages/sheets-filter-ui/src/plugin.tsindex 88e2a53001..aab4290cec 100644--- a/packages/sheets-filter-ui/src/plugin.ts+++ b/packages/sheets-filter-ui/src/plugin.ts@@ -29,21 +29,22 @@ import {} from '@univerjs/core';import { IRPCChannelService, toModule } from '@univerjs/rpc';import { UniverSheetsFilterPlugin } from '@univerjs/sheets-filter';+import pkg from '../package.json';import { defaultPluginConfig, SHEETS_FILTER_UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';import { SheetsFilterPermissionController } from './controllers/sheets-filter-permission.controller';import { SheetsFilterUIDesktopController } from './controllers/sheets-filter-ui-desktop.controller';import { SheetsFilterPanelService } from './services/sheets-filter-panel.service';import { ISheetsGenerateFilterValuesService, SHEETS_GENERATE_FILTER_VALUES_SERVICE_NAME } from './worker/generate-filter-values.service';-const NAME = 'SHEET_FILTER_UI_PLUGIN';-/*** The plugin for the desktop version of the sheets filter UI. Its type is {@link UniverInstanceType.UNIVER_SHEET}.*/@DependentOn(UniverSheetsFilterPlugin)export class UniverSheetsFilterUIPlugin extends Plugin {static override type = UniverInstanceType.UNIVER_SHEET;- static override pluginName = NAME;+ static override pluginName = 'SHEET_FILTER_UI_PLUGIN';+ static override packageName = pkg.name;+ static override version = pkg.version;constructor(private readonly _config: Partial<IUniverSheetsFilterUIConfig> = defaultPluginConfig,diff --git a/packages/sheets-filter-ui/src/worker/plugin.ts b/packages/sheets-filter-ui/src/worker/plugin.tsindex 8b1cd3fbb1..2b6e2fc2b9 100644--- a/packages/sheets-filter-ui/src/worker/plugin.ts+++ b/packages/sheets-filter-ui/src/worker/plugin.ts@@ -17,11 +17,14 @@import type { Dependency } from '@univerjs/core';import { Inject, Injector, Plugin, UniverInstanceType } from '@univerjs/core';import { fromModule, IRPCChannelService } from '@univerjs/rpc';+import pkg from '../../package.json';import { ISheetsGenerateFilterValuesService, SHEETS_GENERATE_FILTER_VALUES_SERVICE_NAME, SheetsGenerateFilterValuesService } from './generate-filter-values.service';export class UniverSheetsFilterUIWorkerPlugin extends Plugin {static override type = UniverInstanceType.UNIVER_SHEET;static override pluginName: string = 'SHEET_FILTER_UI_WORKER_PLUGIN';+ static override packageName = pkg.name;+ static override version = pkg.version;constructor(private readonly _config: unknown,diff --git a/packages/sheets-filter/src/plugin.ts b/packages/sheets-filter/src/plugin.tsindex 6e73b6479b..518508897c 100644--- a/packages/sheets-filter/src/plugin.ts+++ b/packages/sheets-filter/src/plugin.ts@@ -16,17 +16,19 @@import type { Dependency } from '@univerjs/core';import type { IUniverSheetsFilterConfig } from './controllers/config.schema';-import { IConfigService, Inject, Injector, merge, Plugin, touchDependencies, UniverInstanceType } from '@univerjs/core';+import pkg from '../package.json';import { defaultPluginConfig, SHEETS_FILTER_PLUGIN_CONFIG_KEY } from './controllers/config.schema';+import { SheetsFilterSyncController } from './controllers/sheets-filter-sync.controller';import { SheetsFilterController } from './controllers/sheets-filter.controller';import { SheetsFilterFormulaService } from './services/sheet-filter-formula.service';import { SHEET_FILTER_SNAPSHOT_ID, SheetsFilterService } from './services/sheet-filter.service';-import { SheetsFilterSyncController } from './controllers/sheets-filter-sync.controller';export class UniverSheetsFilterPlugin extends Plugin {static override type = UniverInstanceType.UNIVER_SHEET;static override pluginName = SHEET_FILTER_SNAPSHOT_ID;+ static override packageName = pkg.name;+ static override version = pkg.version;constructor(private readonly _config: Partial<IUniverSheetsFilterConfig> = defaultPluginConfig,diff --git a/packages/sheets-find-replace/src/plugin.ts b/packages/sheets-find-replace/src/plugin.tsindex a1e18b923d..7846a12d9c 100644--- a/packages/sheets-find-replace/src/plugin.ts+++ b/packages/sheets-find-replace/src/plugin.ts@@ -19,14 +19,15 @@ import type { IUniverSheetsFindReplaceConfig } from './controllers/config.schemaimport { DependentOn, IConfigService, Inject, Injector, merge, Plugin, UniverInstanceType } from '@univerjs/core';import { UniverFindReplacePlugin } from '@univerjs/find-replace';import { UniverSheetsPlugin } from '@univerjs/sheets';+import pkg from '../package.json';import { defaultPluginConfig, SHEETS_FIND_REPLACE_PLUGIN_CONFIG_KEY } from './controllers/config.schema';import { SheetsFindReplaceController } from './controllers/sheet-find-replace.controller';-const NAME = 'SHEET_FIND_REPLACE_PLUGIN';-@DependentOn(UniverSheetsPlugin, UniverSheetsPlugin, UniverFindReplacePlugin)export class UniverSheetsFindReplacePlugin extends Plugin {- static override pluginName = NAME;+ static override pluginName = 'SHEET_FIND_REPLACE_PLUGIN';+ static override packageName = pkg.name;+ static override version = pkg.version;static override type = UniverInstanceType.UNIVER_SHEET;constructor(diff --git a/packages/sheets-formula-ui/src/plugin.ts b/packages/sheets-formula-ui/src/plugin.tsindex b13f85ff8b..e47a5d1b30 100644--- a/packages/sheets-formula-ui/src/plugin.ts+++ b/packages/sheets-formula-ui/src/plugin.ts@@ -21,6 +21,7 @@ import { IRenderManagerService } from '@univerjs/engine-render';import { UniverSheetsFormulaPlugin } from '@univerjs/sheets-formula';import { EMBEDDING_FORMULA_EDITOR_COMPONENT_KEY, RANGE_SELECTOR_COMPONENT_KEY } from '@univerjs/sheets-ui';import { BuiltInUIPart, ComponentManager, connectInjector, IUIPartsService } from '@univerjs/ui';+import pkg from '../package.json';import { FORMULA_UI_PLUGIN_NAME } from './common/plugin-name';import {defaultPluginConfig,@@ -46,6 +47,8 @@ import { GlobalRangeSelector } from './views/range-selector/global';@DependentOn(UniverSheetsFormulaPlugin)export class UniverSheetsFormulaUIPlugin extends Plugin {static override pluginName = FORMULA_UI_PLUGIN_NAME;+ static override packageName = pkg.name;+ static override version = pkg.version;static override type = UniverInstanceType.UNIVER_SHEET;constructor(diff --git a/packages/sheets-formula/src/plugin.ts b/packages/sheets-formula/src/plugin.tsindex eccf7b2cee..975ce95fe9 100644--- a/packages/sheets-formula/src/plugin.ts+++ b/packages/sheets-formula/src/plugin.ts@@ -20,6 +20,7 @@ import { DependentOn, IConfigService, Inject, Injector, isNodeEnv, merge, Pluginimport { UniverFormulaEnginePlugin } from '@univerjs/engine-formula';import { fromModule, IRPCChannelService, toModule } from '@univerjs/rpc';import { UniverSheetsPlugin } from '@univerjs/sheets';+import pkg from '../package.json';import { SHEETS_FORMULA_PLUGIN_NAME } from './common/plugin-name';import { ActiveDirtyController } from './controllers/active-dirty.controller';import { ArrayFormulaCellInterceptorController } from './controllers/array-formula-cell-interceptor.controller';@@ -45,6 +46,8 @@ import { IRemoteRegisterFunctionService, RemoteRegisterFunctionService, RemoteRe@DependentOn(UniverFormulaEnginePlugin)export class UniverRemoteSheetsFormulaPlugin extends Plugin {static override pluginName = 'SHEET_FORMULA_REMOTE_PLUGIN';+ static override packageName = pkg.name;+ static override version = pkg.version;static override type = UniverInstanceType.UNIVER_SHEET;constructor(@@ -75,6 +78,8 @@ export class UniverRemoteSheetsFormulaPlugin extends Plugin {@DependentOn(UniverSheetsPlugin)export class UniverSheetsFormulaPlugin extends Plugin {static override pluginName = SHEETS_FORMULA_PLUGIN_NAME;+ static override packageName = pkg.name;+ static override version = pkg.version;static override type = UniverInstanceType.UNIVER_SHEET;constructor(diff --git a/packages/sheets-graphics/src/plugin.ts b/packages/sheets-graphics/src/plugin.tsindex ff33b30aa2..ae61b277f8 100644--- a/packages/sheets-graphics/src/plugin.ts+++ b/packages/sheets-graphics/src/plugin.ts@@ -16,16 +16,16 @@import type { Dependency } from '@univerjs/core';import type { IUniverSheetsGraphicsConfig } from './controllers/config.schema';-import { IConfigService, Inject, Injector, merge, Plugin, UniverInstanceType } from '@univerjs/core';import { IRenderManagerService } from '@univerjs/engine-render';+import pkg from '../package.json';import { defaultPluginConfig, PLUGIN_CONFIG_KEY } from './controllers/config.schema';import { SheetGraphicsRenderController } from './controllers/graphics-render.controller';-const PLUGIN_NAME = 'UNIVER_SHEET_DRAWING_PLUGIN';-export class UniverSheetsGraphicsPlugin extends Plugin {- static override pluginName = PLUGIN_NAME;+ static override pluginName = 'UNIVER_SHEET_DRAWING_PLUGIN';+ static override packageName = pkg.name;+ static override version = pkg.version;constructor(private readonly _config: Partial<IUniverSheetsGraphicsConfig> = defaultPluginConfig,diff --git a/packages/sheets-hyper-link-ui/src/plugin.ts b/packages/sheets-hyper-link-ui/src/plugin.tsindex 26e152061d..e698b493f2 100644--- a/packages/sheets-hyper-link-ui/src/plugin.ts+++ b/packages/sheets-hyper-link-ui/src/plugin.ts@@ -20,6 +20,7 @@ import { DependentOn, IConfigService, Inject, Injector, merge, Plugin, UniverInsimport { UniverDocsUIPlugin } from '@univerjs/docs-ui';import { IRenderManagerService } from '@univerjs/engine-render';import { UniverSheetsHyperLinkPlugin } from '@univerjs/sheets-hyper-link';+import pkg from '../package.json';import { SheetsHyperLinkAutoFillController } from './controllers/auto-fill.controller';import { defaultPluginConfig, SHEETS_HYPER_LINK_UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';import { SheetsHyperLinkCopyPasteController } from './controllers/copy-paste.controller';@@ -36,6 +37,8 @@ import { SHEET_HYPER_LINK_UI_PLUGIN } from './types/const';@DependentOn(UniverSheetsHyperLinkPlugin, UniverDocsUIPlugin)export class UniverSheetsHyperLinkUIPlugin extends Plugin {static override pluginName: string = SHEET_HYPER_LINK_UI_PLUGIN;+ static override packageName = pkg.name;+ static override version = pkg.version;static override type = UniverInstanceType.UNIVER_SHEET;constructor(diff --git a/packages/sheets-hyper-link/src/plugin.ts b/packages/sheets-hyper-link/src/plugin.tsindex f63e785558..32d414aa33 100644--- a/packages/sheets-hyper-link/src/plugin.ts+++ b/packages/sheets-hyper-link/src/plugin.ts@@ -17,6 +17,7 @@import type { IUniverSheetsHyperLinkConfig } from './controllers/config.schema';import { DependentOn, IConfigService, Inject, Injector, merge, Plugin, registerDependencies, touchDependencies, UniverInstanceType } from '@univerjs/core';import { UniverSheetsPlugin } from '@univerjs/sheets';+import pkg from '../package.json';import { defaultPluginConfig, SHEETS_HYPER_LINK_PLUGIN_CONFIG_KEY } from './controllers/config.schema';import { SheetsHyperLinkRefRangeController } from './controllers/ref-range.controller';import { SheetsHyperLinkRemoveSheetController } from './controllers/remove-sheet.controller';@@ -31,6 +32,8 @@ import { SHEET_HYPER_LINK_PLUGIN } from './types/const';@DependentOn(UniverSheetsPlugin)export class UniverSheetsHyperLinkPlugin extends Plugin {static override pluginName = SHEET_HYPER_LINK_PLUGIN;+ static override packageName = pkg.name;+ static override version = pkg.version;static override type = UniverInstanceType.UNIVER_SHEET;constructor(diff --git a/packages/sheets-note-ui/src/plugin.ts b/packages/sheets-note-ui/src/plugin.tsindex 639c50f443..6d2c9989e0 100644--- a/packages/sheets-note-ui/src/plugin.ts+++ b/packages/sheets-note-ui/src/plugin.ts@@ -18,6 +18,7 @@ import type { Dependency } from '@univerjs/core';import type { IUniverSheetsNoteUIConfig } from './controllers/config.schema';import { DependentOn, IConfigService, Inject, Injector, merge, Plugin, touchDependencies, UniverInstanceType } from '@univerjs/core';import { UniverSheetsNotePlugin } from '@univerjs/sheets-note';+import pkg from '../package.json';import { defaultPluginConfig, SHEETS_NOTE_UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';import { SheetsCellContentController } from './controllers/sheets-cell-content.controller';import { SheetsNoteAttachmentController } from './controllers/sheets-note-attachment.controller';@@ -25,11 +26,11 @@ import { SheetsNotePopupController } from './controllers/sheets-note-popup.contrimport { SheetsNoteUIController } from './controllers/sheets-note-ui.controller';import { SheetsNotePopupService } from './services/sheets-note-popup.service';-export const PLUGIN_NAME = 'SHEET_NOTE_UI_PLUGIN';-@DependentOn(UniverSheetsNotePlugin)export class UniverSheetsNoteUIPlugin extends Plugin {- static override pluginName = PLUGIN_NAME;+ static override pluginName = 'SHEET_NOTE_UI_PLUGIN';+ static override packageName = pkg.name;+ static override version = pkg.version;static override type = UniverInstanceType.UNIVER_SHEET;constructor(diff --git a/packages/sheets-note/src/plugin.ts b/packages/sheets-note/src/plugin.tsindex 2ff585f4a2..c23f59635d 100644--- a/packages/sheets-note/src/plugin.ts+++ b/packages/sheets-note/src/plugin.ts@@ -18,6 +18,7 @@ import type { Dependency } from '@univerjs/core';import type { IUniverSheetsNoteConfig } from './controllers/config.schema';import { DependentOn, IConfigService, Inject, Injector, merge, Plugin, touchDependencies, UniverInstanceType } from '@univerjs/core';import { UniverSheetsPlugin } from '@univerjs/sheets';+import pkg from '../package.json';import { PLUGIN_NAME } from './const';import { defaultPluginConfig, SHEETS_NOTE_PLUGIN_CONFIG_KEY } from './controllers/config.schema';import { SheetsNoteRefRangeController } from './controllers/sheets-note-ref-range.controller';@@ -28,6 +29,8 @@ import { SheetsNoteModel } from './models/sheets-note.model';@DependentOn(UniverSheetsPlugin)export class UniverSheetsNotePlugin extends Plugin {static override pluginName = PLUGIN_NAME;+ static override packageName = pkg.name;+ static override version = pkg.version;static override type = UniverInstanceType.UNIVER_SHEET;constructor(diff --git a/packages/sheets-numfmt-ui/src/plugin.ts b/packages/sheets-numfmt-ui/src/plugin.tsindex 0199a64405..f436a8ef1e 100644--- a/packages/sheets-numfmt-ui/src/plugin.ts+++ b/packages/sheets-numfmt-ui/src/plugin.ts@@ -20,6 +20,7 @@ import { DependentOn, IConfigService, Inject, Injector, merge, Plugin, registerDimport { IRenderManagerService } from '@univerjs/engine-render';import { UniverSheetsNumfmtPlugin } from '@univerjs/sheets-numfmt';import { UniverSheetsUIPlugin } from '@univerjs/sheets-ui';+import pkg from '../package.json';import { defaultPluginConfig } from './controllers/config.schema';import { NumfmtAlertRenderController } from './controllers/numfmt-alert-render.controller';import { SheetNumfmtUIController } from './controllers/numfmt.controller';@@ -27,11 +28,11 @@ import { NumfmtEditorController } from './controllers/numfmt.editor.controller';import { NumfmtMenuController } from './controllers/numfmt.menu.controller';import { UserHabitController } from './controllers/user-habit.controller';-export const SHEET_NUMFMT_UI_PLUGIN = 'SHEET_NUMFMT_UI_PLUGIN';-@DependentOn(UniverSheetsUIPlugin, UniverSheetsNumfmtPlugin)export class UniverSheetsNumfmtUIPlugin extends Plugin {- static override pluginName = SHEET_NUMFMT_UI_PLUGIN;+ static override pluginName = 'SHEET_NUMFMT_UI_PLUGIN';+ static override packageName = pkg.name;+ static override version = pkg.version;static override type = UniverInstanceType.UNIVER_SHEET;constructor(diff --git a/packages/sheets-numfmt/src/plugin.ts b/packages/sheets-numfmt/src/plugin.tsindex 9f7fdb565c..d2001b04fb 100644--- a/packages/sheets-numfmt/src/plugin.ts+++ b/packages/sheets-numfmt/src/plugin.ts@@ -17,6 +17,7 @@import type { IUniverSheetsNumfmtConfig } from './controllers/config.schema';import { DependentOn, ICommandService, IConfigService, Inject, Injector, merge, Plugin, registerDependencies, touchDependencies, UniverInstanceType } from '@univerjs/core';import { UniverSheetsPlugin } from '@univerjs/sheets';+import pkg from '../package.json';import { SHEET_NUMFMT_PLUGIN } from './base/const/plugin-name';import { AddDecimalCommand } from './commands/commands/add-decimal.command';import { SetCurrencyCommand } from './commands/commands/set-currency.command';@@ -29,6 +30,8 @@ import { SheetsNumfmtCellContentController } from './controllers/numfmt-cell-con@DependentOn(UniverSheetsPlugin)export class UniverSheetsNumfmtPlugin extends Plugin {static override pluginName = SHEET_NUMFMT_PLUGIN;+ static override packageName = pkg.name;+ static override version = pkg.version;static override type = UniverInstanceType.UNIVER_SHEET;constructor(diff --git a/packages/sheets-sort-ui/src/plugin.ts b/packages/sheets-sort-ui/src/plugin.tsindex d00a870130..f247fab03b 100644--- a/packages/sheets-sort-ui/src/plugin.ts+++ b/packages/sheets-sort-ui/src/plugin.ts@@ -26,16 +26,17 @@ import {UniverInstanceType,} from '@univerjs/core';import { UniverSheetsSortPlugin } from '@univerjs/sheets-sort';+import pkg from '../package.json';import { defaultPluginConfig, SHEETS_SORT_UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';import { SheetsSortUIController } from './controllers/sheets-sort-ui.controller';import { SheetsSortUIService } from './services/sheets-sort-ui.service';-const NAME = 'SHEET_SORT_UI_PLUGIN';-@DependentOn(UniverSheetsSortPlugin)export class UniverSheetsSortUIPlugin extends Plugin {static override type = UniverInstanceType.UNIVER_SHEET;- static override pluginName = NAME;+ static override pluginName = 'SHEET_SORT_UI_PLUGIN';+ static override packageName = pkg.name;+ static override version = pkg.version;constructor(private readonly _config: Partial<IUniverSheetsSortUIConfig> = defaultPluginConfig,diff --git a/packages/sheets-sort/src/plugin.ts b/packages/sheets-sort/src/plugin.tsindex 5f9f6b9367..48ebe12867 100644--- a/packages/sheets-sort/src/plugin.ts+++ b/packages/sheets-sort/src/plugin.ts@@ -16,20 +16,20 @@import type { Dependency } from '@univerjs/core';import type { IUniverSheetsSortConfig } from './controllers/config.schema';-import { DependentOn, IConfigService, Inject, Injector, merge, Plugin, UniverInstanceType } from '@univerjs/core';import { UniverFormulaEnginePlugin } from '@univerjs/engine-formula';import { UniverSheetsPlugin } from '@univerjs/sheets';+import pkg from '../package.json';import { defaultPluginConfig, SHEETS_SORT_PLUGIN_CONFIG_KEY } from './controllers/config.schema';import { SheetsSortController } from './controllers/sheets-sort.controller';import { SheetsSortService } from './services/sheets-sort.service';-const NAME = 'SHEET_SORT_PLUGIN';-@DependentOn(UniverSheetsPlugin, UniverFormulaEnginePlugin)export class UniverSheetsSortPlugin extends Plugin {static override type = UniverInstanceType.UNIVER_SHEET;- static override pluginName = NAME;+ static override pluginName = 'SHEET_SORT_PLUGIN';+ static override packageName = pkg.name;+ static override version = pkg.version;constructor(private readonly _config: Partial<IUniverSheetsSortConfig> = defaultPluginConfig,diff --git a/packages/sheets-table-ui/src/plugin.ts b/packages/sheets-table-ui/src/plugin.tsindex 94ae9b70c0..7af5a66367 100644--- a/packages/sheets-table-ui/src/plugin.ts+++ b/packages/sheets-table-ui/src/plugin.ts@@ -19,6 +19,7 @@ import type { IUniverSheetsTableUIConfig } from './controllers/config.schema';import { DependentOn, ICommandService, IConfigService, Inject, Injector, merge, Plugin, registerDependencies, touchDependencies, UniverInstanceType } from '@univerjs/core';import { IRenderManagerService } from '@univerjs/engine-render';import { UniverSheetsTablePlugin } from '@univerjs/sheets-table';+import pkg from '../package.json';import { OpenTableFilterPanelOperation } from './commands/operations/open-table-filter-dialog.opration';import { OpenTableSelectorOperation } from './commands/operations/open-table-selector.operation';import { PLUGIN_NAME } from './const';@@ -35,6 +36,8 @@ import { SheetsTableUiService } from './services/sheets-table-ui-service';@DependentOn(UniverSheetsTablePlugin)export class UniverSheetsTableUIPlugin extends Plugin {static override pluginName = PLUGIN_NAME;+ static override packageName = pkg.name;+ static override version = pkg.version;static override type = UniverInstanceType.UNIVER_SHEET;constructor(diff --git a/packages/sheets-table/src/plugin.ts b/packages/sheets-table/src/plugin.tsindex 7851a30938..4e1b11ed2a 100644--- a/packages/sheets-table/src/plugin.ts+++ b/packages/sheets-table/src/plugin.ts@@ -16,6 +16,7 @@import type { IUniverSheetsTableConfig } from './controllers/config.schema';import { ICommandService, IConfigService, Inject, Injector, merge, Plugin, registerDependencies, touchDependencies, UniverInstanceType } from '@univerjs/core';+import pkg from '../package.json';import { AddSheetTableCommand } from './commands/commands/add-sheet-table.command';import { AddTableThemeCommand } from './commands/commands/add-table-theme.command';import { DeleteSheetTableCommand } from './commands/commands/delete-sheet-table.command';@@ -40,6 +41,8 @@ import { SheetTableService } from './services/table-service';export class UniverSheetsTablePlugin extends Plugin {static override pluginName = PLUGIN_NAME;+ static override packageName = pkg.name;+ static override version = pkg.version;static override type = UniverInstanceType.UNIVER_SHEET;constructor(diff --git a/packages/sheets-thread-comment-ui/src/plugin.ts b/packages/sheets-thread-comment-ui/src/plugin.tsindex 676c2709dc..5dbfdacfd5 100644--- a/packages/sheets-thread-comment-ui/src/plugin.ts+++ b/packages/sheets-thread-comment-ui/src/plugin.ts@@ -19,6 +19,7 @@ import type { IUniverSheetsThreadCommentUIConfig } from './controllers/config.scimport { DependentOn, ICommandService, IConfigService, Inject, Injector, merge, Plugin, UniverInstanceType } from '@univerjs/core';import { UniverSheetsThreadCommentPlugin } from '@univerjs/sheets-thread-comment';import { UniverThreadCommentUIPlugin } from '@univerjs/thread-comment-ui';+import pkg from '../package.json';import { ShowAddSheetCommentModalOperation } from './commands/operations/comment.operation';import { defaultPluginConfig, SHEETS_THREAD_COMMENT_UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';import { SheetsThreadCommentRenderController } from './controllers/render-controllers/render.controller';@@ -32,6 +33,8 @@ import { SHEETS_THREAD_COMMENT } from './types/const';@DependentOn(UniverThreadCommentUIPlugin, UniverSheetsThreadCommentPlugin)export class UniverSheetsThreadCommentUIPlugin extends Plugin {static override pluginName = SHEETS_THREAD_COMMENT;+ static override packageName = pkg.name;+ static override version = pkg.version;static override type = UniverInstanceType.UNIVER_SHEET;constructor(diff --git a/packages/sheets-thread-comment/src/facade/f-thread-comment.ts b/packages/sheets-thread-comment/src/facade/f-thread-comment.tsindex 469ca5eb86..f13e33374a 100644--- a/packages/sheets-thread-comment/src/facade/f-thread-comment.ts+++ b/packages/sheets-thread-comment/src/facade/f-thread-comment.ts@@ -412,7 +412,6 @@ export class FThreadComment {return this._injector.createInstance(FRange, workbook, worksheet, range);}- // eslint-disable-next-line/*** @deprecated use `getRichText` as instead*/@@ -463,7 +462,6 @@ export class FThreadComment {);}- // eslint-disable-next-line/*** @deprecated use `deleteAsync` as instead.*/@@ -471,7 +469,6 @@ export class FThreadComment {return this.deleteAsync();}- // eslint-disable-next-line/*** @deprecated use `updateAsync` as instead*/@@ -525,7 +522,6 @@ export class FThreadComment {return res;}- // eslint-disable-next-line/*** @deprecated use `resolveAsync` as instead*/diff --git a/packages/sheets-thread-comment/src/plugin.ts b/packages/sheets-thread-comment/src/plugin.tsindex 58510a7d88..f4c336c603 100644--- a/packages/sheets-thread-comment/src/plugin.ts+++ b/packages/sheets-thread-comment/src/plugin.ts@@ -18,6 +18,7 @@ import type { Dependency } from '@univerjs/core';import type { IUniverSheetsThreadCommentConfig } from './controllers/config.schema';import { DependentOn, ICommandService, Inject, Injector, Plugin, touchDependencies, UniverInstanceType } from '@univerjs/core';import { UniverThreadCommentPlugin } from '@univerjs/thread-comment';+import pkg from '../package.json';import { defaultPluginConfig } from './controllers/config.schema';import { SheetsThreadCommentRefRangeController } from './controllers/sheets-thread-comment-ref-range.controller';import { SheetsThreadCommentResourceController } from './controllers/sheets-thread-comment-resource.controller';@@ -27,6 +28,8 @@ import { SHEET_THREAD_COMMENT_BASE } from './types/const';@DependentOn(UniverThreadCommentPlugin)export class UniverSheetsThreadCommentPlugin extends Plugin {static override pluginName = SHEET_THREAD_COMMENT_BASE;+ static override packageName = pkg.name;+ static override version = pkg.version;static override type = UniverInstanceType.UNIVER_SHEET;constructor(diff --git a/packages/sheets-ui/src/basics/editor/get-editor-object.ts b/packages/sheets-ui/src/basics/editor/get-editor-object.tsindex ad1c560854..c7a979388e 100644--- a/packages/sheets-ui/src/basics/editor/get-editor-object.ts+++ b/packages/sheets-ui/src/basics/editor/get-editor-object.ts@@ -14,9 +14,9 @@* limitations under the License.*/-import { DOCS_VIEW_KEY } from '@univerjs/docs-ui';import type { Nullable } from '@univerjs/core';import type { DocBackground, Documents, Engine, IRenderManagerService, Scene } from '@univerjs/engine-render';+import { DOCS_VIEW_KEY } from '@univerjs/docs-ui';export interface IDocObjectParam {document: Documents;diff --git a/packages/sheets-ui/src/commands/operations/set-format-painter.operation.ts b/packages/sheets-ui/src/commands/operations/set-format-painter.operation.tsindex 6b0528dc7d..0957f4da31 100644--- a/packages/sheets-ui/src/commands/operations/set-format-painter.operation.ts+++ b/packages/sheets-ui/src/commands/operations/set-format-painter.operation.ts@@ -15,9 +15,8 @@*/import type { IOperation } from '@univerjs/core';-import { CommandType } from '@univerjs/core';-import type { FormatPainterStatus } from '../../services/format-painter/format-painter.service';+import { CommandType } from '@univerjs/core';import { IFormatPainterService } from '../../services/format-painter/format-painter.service';export interface ISetFormatPainterOperationParams {diff --git a/packages/sheets-ui/src/commands/operations/set-zoom-ratio.operation.ts b/packages/sheets-ui/src/commands/operations/set-zoom-ratio.operation.tsindex 158236d7c9..3c9c9f7ac2 100644--- a/packages/sheets-ui/src/commands/operations/set-zoom-ratio.operation.ts+++ b/packages/sheets-ui/src/commands/operations/set-zoom-ratio.operation.ts@@ -14,9 +14,9 @@* limitations under the License.*/+import type { IOperation } from '@univerjs/core';import { CommandType } from '@univerjs/core';import { IRenderManagerService } from '@univerjs/engine-render';-import type { IOperation } from '@univerjs/core';import { SheetsZoomRenderController } from '../../controllers/render-controllers/zoom.render-controller';export interface ISetZoomRatioOperationParams {diff --git a/packages/sheets-ui/src/controllers/editor/__tests__/mock-function.service.ts b/packages/sheets-ui/src/controllers/editor/__tests__/mock-function.service.tsindex 3bd9f8594e..961904eaff 100644--- a/packages/sheets-ui/src/controllers/editor/__tests__/mock-function.service.ts+++ b/packages/sheets-ui/src/controllers/editor/__tests__/mock-function.service.ts@@ -15,8 +15,8 @@*/import type { IFunctionInfo, IFunctionNames } from '@univerjs/engine-formula';-import { FunctionType } from '@univerjs/engine-formula';import { createIdentifier } from '@univerjs/core';+import { FunctionType } from '@univerjs/engine-formula';export class MockFunctionService {getDescriptions(): Map<IFunctionNames, IFunctionInfo> {diff --git a/packages/sheets-ui/src/controllers/shortcuts/operation.shortcut.ts b/packages/sheets-ui/src/controllers/shortcuts/operation.shortcut.tsindex 3772e89bf3..3bf4298c9d 100644--- a/packages/sheets-ui/src/controllers/shortcuts/operation.shortcut.ts+++ b/packages/sheets-ui/src/controllers/shortcuts/operation.shortcut.ts@@ -14,10 +14,9 @@* limitations under the License.*/-import { SetColHiddenCommand, SetRowHiddenCommand } from '@univerjs/sheets';import type { IShortcutItem } from '@univerjs/ui';+import { SetColHiddenCommand, SetRowHiddenCommand } from '@univerjs/sheets';import { KeyCode, MetaKeys } from '@univerjs/ui';-import { whenSheetEditorFocused } from './utils';export const SetRowHiddenShortcutItem: IShortcutItem = {diff --git a/packages/sheets-ui/src/controllers/shortcuts/view.shortcut.ts b/packages/sheets-ui/src/controllers/shortcuts/view.shortcut.tsindex d468a8121b..f6702249c5 100644--- a/packages/sheets-ui/src/controllers/shortcuts/view.shortcut.ts+++ b/packages/sheets-ui/src/controllers/shortcuts/view.shortcut.ts@@ -14,10 +14,9 @@* limitations under the License.*/-import { NilCommand } from '@univerjs/core';import type { IShortcutItem } from '@univerjs/ui';+import { NilCommand } from '@univerjs/core';import { KeyCode, MetaKeys } from '@univerjs/ui';-import { ChangeZoomRatioCommand } from '../../commands/commands/set-zoom-ratio.command';import { whenSheetEditorFocused } from './utils';diff --git a/packages/sheets-ui/src/mobile-plugin.ts b/packages/sheets-ui/src/mobile-plugin.tsindex 06cd874f89..0c6169c54d 100644--- a/packages/sheets-ui/src/mobile-plugin.ts+++ b/packages/sheets-ui/src/mobile-plugin.ts@@ -22,6 +22,7 @@ import { IRenderManagerService } from '@univerjs/engine-render';import { IRefSelectionsService, RefSelectionsService, UniverSheetsPlugin } from '@univerjs/sheets';import { ComponentManager, UI_PLUGIN_CONFIG_KEY, UniverMobileUIPlugin } from '@univerjs/ui';import { filter } from 'rxjs/operators';+import pkg from '../package.json';import { UNIVER_SHEET_PERMISSION_USER_PART } from './consts/permission';import { AutoFillUIController } from './controllers/auto-fill-ui.controller';import { AutoHeightController } from './controllers/auto-height.controller';@@ -95,6 +96,8 @@ import { IStatusBarService, StatusBarService } from './services/status-bar.servi@DependentOn(UniverSheetsPlugin, UniverMobileUIPlugin)export class UniverSheetsMobileUIPlugin extends Plugin {static override pluginName = 'SHEET_UI_PLUGIN';+ static override packageName = pkg.name;+ static override version = pkg.version;static override type = UniverInstanceType.UNIVER_SHEET;/** @ignore */diff --git a/packages/sheets-ui/src/plugin.ts b/packages/sheets-ui/src/plugin.tsindex b6a82c220e..986e78eeb7 100644--- a/packages/sheets-ui/src/plugin.ts+++ b/packages/sheets-ui/src/plugin.ts@@ -22,6 +22,7 @@ import { IRenderManagerService } from '@univerjs/engine-render';import { IRefSelectionsService, RefSelectionsService, UniverSheetsPlugin } from '@univerjs/sheets';import { ComponentManager, UI_PLUGIN_CONFIG_KEY } from '@univerjs/ui';import { filter } from 'rxjs/operators';+import pkg from '../package.json';import { UNIVER_SHEET_PERMISSION_USER_PART } from './consts/permission';import { AutoFillUIController } from './controllers/auto-fill-ui.controller';import { AutoHeightController } from './controllers/auto-height.controller';@@ -98,6 +99,8 @@ import { IStatusBarService, StatusBarService } from './services/status-bar.servi@DependentOn(UniverSheetsPlugin)export class UniverSheetsUIPlugin extends Plugin {static override pluginName = 'SHEET_UI_PLUGIN';+ static override packageName = pkg.name;+ static override version = pkg.version;static override type = UniverInstanceType.UNIVER_SHEET;/** @ignore */diff --git a/packages/sheets-ui/src/services/clipboard/clone.ts b/packages/sheets-ui/src/services/clipboard/clone.tsindex 581b133d9f..5f309de0f6 100644--- a/packages/sheets-ui/src/services/clipboard/clone.ts+++ b/packages/sheets-ui/src/services/clipboard/clone.ts@@ -15,8 +15,8 @@*/import type { Nullable } from '@univerjs/core';-import { cloneValue } from '@univerjs/core';import type { ICellDataWithSpanInfo } from './type';+import { cloneValue } from '@univerjs/core';/*** Fast clone for ICellDataWithSpanInfo. Optimized for the known structure.diff --git a/packages/sheets-ui/src/services/editor/formula-editor-manager.service.ts b/packages/sheets-ui/src/services/editor/formula-editor-manager.service.tsindex afbb2305a3..32a211743d 100644--- a/packages/sheets-ui/src/services/editor/formula-editor-manager.service.ts+++ b/packages/sheets-ui/src/services/editor/formula-editor-manager.service.ts@@ -15,8 +15,8 @@*/import type { IDisposable, Nullable } from '@univerjs/core';-import { createIdentifier } from '@univerjs/core';import type { Observable } from 'rxjs';+import { createIdentifier } from '@univerjs/core';import { BehaviorSubject, Subject } from 'rxjs';export interface IFormulaEditorManagerService {diff --git a/packages/sheets-ui/src/services/format-painter/format-painter.service.ts b/packages/sheets-ui/src/services/format-painter/format-painter.service.tsindex 26d8331210..fbcfa34abd 100644--- a/packages/sheets-ui/src/services/format-painter/format-painter.service.ts+++ b/packages/sheets-ui/src/services/format-painter/format-painter.service.ts@@ -15,11 +15,10 @@*/import type { IMutationInfo, IRange, IStyleData } from '@univerjs/core';+import type { Observable } from 'rxjs';import { createIdentifier, Disposable, ICommandService, ILogService, Inject, IUndoRedoService, ObjectMatrix, ThemeService } from '@univerjs/core';import { SetRangeValuesMutation, SheetsSelectionsService } from '@univerjs/sheets';-import type { Observable } from 'rxjs';import { BehaviorSubject } from 'rxjs';-import { IMarkSelectionService } from '../mark-selection/mark-selection.service';import { createCopyPasteSelectionStyle } from '../utils/selection-util';diff --git a/packages/sheets-ui/src/services/selection/selection-layer.ts b/packages/sheets-ui/src/services/selection/selection-layer.tsindex 3ba630ae31..80191aefee 100644--- a/packages/sheets-ui/src/services/selection/selection-layer.ts+++ b/packages/sheets-ui/src/services/selection/selection-layer.ts@@ -14,8 +14,8 @@* limitations under the License.*/-import { Tools } from '@univerjs/core';import type { Engine, UniverRenderingContext } from '@univerjs/engine-render';+import { Tools } from '@univerjs/core';import { Layer } from '@univerjs/engine-render';export class SelectionLayer extends Layer {diff --git a/packages/sheets-ui/src/services/sheet-bar/sheet-bar.service.ts b/packages/sheets-ui/src/services/sheet-bar/sheet-bar.service.tsindex d2535f04a4..a79dee4ee3 100644--- a/packages/sheets-ui/src/services/sheet-bar/sheet-bar.service.ts+++ b/packages/sheets-ui/src/services/sheet-bar/sheet-bar.service.ts@@ -14,12 +14,11 @@* limitations under the License.*/-import { createIdentifier, Disposable, toDisposable } from '@univerjs/core';import type { IDisposable } from '@univerjs/core';import type { Observable } from 'rxjs';-import { Subject } from 'rxjs';-import type { IScrollState } from '../../views/sheet-bar/sheet-bar-tabs/utils/slide-tab-bar';+import { createIdentifier, Disposable, toDisposable } from '@univerjs/core';+import { Subject } from 'rxjs';export interface ISheetBarMenuHandler {handleSheetBarMenu(): void;diff --git a/packages/sheets-ui/src/services/status-bar.service.ts b/packages/sheets-ui/src/services/status-bar.service.tsindex 2b19cb4818..3b48ed9561 100644--- a/packages/sheets-ui/src/services/status-bar.service.ts+++ b/packages/sheets-ui/src/services/status-bar.service.ts@@ -16,9 +16,9 @@import type { IDisposable, Nullable } from '@univerjs/core';import type { IFunctionNames } from '@univerjs/engine-formula';-import { FUNCTION_NAMES_MATH, FUNCTION_NAMES_STATISTICAL } from '@univerjs/engine-formula';-import { createIdentifier } from '@univerjs/core';import type { Observable } from 'rxjs';+import { createIdentifier } from '@univerjs/core';+import { FUNCTION_NAMES_MATH, FUNCTION_NAMES_STATISTICAL } from '@univerjs/engine-formula';import { BehaviorSubject } from 'rxjs';export interface IStatusBarService {diff --git a/packages/sheets-zen-editor/src/plugin.ts b/packages/sheets-zen-editor/src/plugin.tsindex 62d4de3450..9840d4c9a6 100644--- a/packages/sheets-zen-editor/src/plugin.ts+++ b/packages/sheets-zen-editor/src/plugin.ts@@ -16,8 +16,8 @@import type { Dependency } from '@univerjs/core';import type { IUniverSheetsZenEditorConfig } from './controllers/config.schema';-import { IConfigService, Inject, Injector, merge, Plugin, UniverInstanceType } from '@univerjs/core';+import pkg from '../package.json';import { defaultPluginConfig, SHEETS_ZEN_EDITOR_PLUGIN_CONFIG_KEY } from './controllers/config.schema';import { ZenEditorUIController } from './controllers/zen-editor-ui.controller';import { ZenEditorController } from './controllers/zen-editor.controller';@@ -25,6 +25,8 @@ import { IZenEditorManagerService, ZenEditorManagerService } from './services/zeexport class UniverSheetsZenEditorPlugin extends Plugin {static override pluginName = 'SHEET_ZEN_EDITOR_PLUGIN';+ static override packageName = pkg.name;+ static override version = pkg.version;static override type = UniverInstanceType.UNIVER_SHEET;constructor(diff --git a/packages/sheets-zen-editor/src/services/zen-editor.service.ts b/packages/sheets-zen-editor/src/services/zen-editor.service.tsindex 3e01b4e3c7..85d6613bde 100644--- a/packages/sheets-zen-editor/src/services/zen-editor.service.ts+++ b/packages/sheets-zen-editor/src/services/zen-editor.service.ts@@ -14,10 +14,10 @@* limitations under the License.*/-import { createIdentifier } from '@univerjs/core';-import { BehaviorSubject } from 'rxjs';import type { IDisposable, Nullable } from '@univerjs/core';import type { Observable } from 'rxjs';+import { createIdentifier } from '@univerjs/core';+import { BehaviorSubject } from 'rxjs';export interface IZenEditorManagerService {position$: Observable<Nullable<DOMRect>>;diff --git a/packages/sheets/src/basics/__tests__/cell-type.spec.ts b/packages/sheets/src/basics/__tests__/cell-type.spec.tsindex df897af335..c0c3c8ce05 100644--- a/packages/sheets/src/basics/__tests__/cell-type.spec.ts+++ b/packages/sheets/src/basics/__tests__/cell-type.spec.ts@@ -14,8 +14,8 @@* limitations under the License.*/-import { describe, expect, it } from 'vitest';import { CellValueType } from '@univerjs/core';+import { describe, expect, it } from 'vitest';import { checkCellValueType } from '../cell-type';describe('test util cell type ', () => {diff --git a/packages/sheets/src/basics/__tests__/expand.spec.ts b/packages/sheets/src/basics/__tests__/expand.spec.tsindex fbdd3b10c0..0cc25fce2c 100644--- a/packages/sheets/src/basics/__tests__/expand.spec.ts+++ b/packages/sheets/src/basics/__tests__/expand.spec.ts@@ -14,9 +14,9 @@* limitations under the License.*/-import { beforeEach, describe, expect, it } from 'vitest';import type { Workbook } from '@univerjs/core';import { createCoreTestBed } from '@univerjs/core/sheets/__tests__/create-core-test-bed.js';+import { beforeEach, describe, expect, it } from 'vitest';import { expandToContinuousRange } from '../expand-range';import { snapshot } from './expand.data';diff --git a/packages/sheets/src/commands/commands/delete-range-protection.command.ts b/packages/sheets/src/commands/commands/delete-range-protection.command.tsindex 538284f349..7e45fb78ca 100644--- a/packages/sheets/src/commands/commands/delete-range-protection.command.ts+++ b/packages/sheets/src/commands/commands/delete-range-protection.command.ts@@ -15,10 +15,10 @@*/import type { ICommand } from '@univerjs/core';+import type { IRangeProtectionRule } from '../../model/range-protection-rule.model';import { CommandType, ICommandService, IUndoRedoService } from '@univerjs/core';-import { DeleteRangeProtectionMutation } from '../mutations/delete-range-protection.mutation';import { AddRangeProtectionMutation } from '../mutations/add-range-protection.mutation';-import type { IRangeProtectionRule } from '../../model/range-protection-rule.model';+import { DeleteRangeProtectionMutation } from '../mutations/delete-range-protection.mutation';export interface IDeleteRangeProtectionCommandParams {unitId: string;diff --git a/packages/sheets/src/commands/commands/set-worksheet-activate.command.ts b/packages/sheets/src/commands/commands/set-worksheet-activate.command.tsindex 6391f6fd0a..e8ed181a34 100644--- a/packages/sheets/src/commands/commands/set-worksheet-activate.command.ts+++ b/packages/sheets/src/commands/commands/set-worksheet-activate.command.ts@@ -15,9 +15,8 @@*/import type { IAccessor, ICommand, IExecutionOptions } from '@univerjs/core';-import { CommandType, ICommandService, IUniverInstanceService } from '@univerjs/core';-import type { ISetWorksheetActiveOperationParams } from '../operations/set-worksheet-active.operation';+import { CommandType, ICommandService, IUniverInstanceService } from '@univerjs/core';import { SetWorksheetActiveOperation } from '../operations/set-worksheet-active.operation';import { getSheetCommandTarget } from './utils/target-util';diff --git a/packages/sheets/src/commands/commands/set-worksheet-permission-points.command.ts b/packages/sheets/src/commands/commands/set-worksheet-permission-points.command.tsindex 86832d946d..9232968ca6 100644--- a/packages/sheets/src/commands/commands/set-worksheet-permission-points.command.ts+++ b/packages/sheets/src/commands/commands/set-worksheet-permission-points.command.ts@@ -15,8 +15,8 @@*/import type { ICommand } from '@univerjs/core';-import { CommandType, ICommandService } from '@univerjs/core';import type { IWorksheetProtectionPointRule } from '../../services/permission/type';+import { CommandType, ICommandService } from '@univerjs/core';import { SetWorksheetPermissionPointsMutation } from '../mutations/set-worksheet-permission-points.mutation';export interface ISetWorksheetPermissionPointsCommandParams {diff --git a/packages/sheets/src/commands/commands/set-worksheet-right-to-left.command.ts b/packages/sheets/src/commands/commands/set-worksheet-right-to-left.command.tsindex e861476b84..ad85b6bd7c 100644--- a/packages/sheets/src/commands/commands/set-worksheet-right-to-left.command.ts+++ b/packages/sheets/src/commands/commands/set-worksheet-right-to-left.command.ts@@ -15,9 +15,8 @@*/import type { IAccessor, ICommand } from '@univerjs/core';-import { BooleanNumber, CommandType, ICommandService, IUndoRedoService, IUniverInstanceService } from '@univerjs/core';-import type { ISetWorksheetRightToLeftMutationParams } from '../mutations/set-worksheet-right-to-left.mutation';+import { BooleanNumber, CommandType, ICommandService, IUndoRedoService, IUniverInstanceService } from '@univerjs/core';import {SetWorksheetRightToLeftMutation,SetWorksheetRightToLeftUndoMutationFactory,diff --git a/packages/sheets/src/commands/mutations/remove-row-col.mutation.ts b/packages/sheets/src/commands/mutations/remove-row-col.mutation.tsindex 113084d3ce..d811e90005 100644--- a/packages/sheets/src/commands/mutations/remove-row-col.mutation.ts+++ b/packages/sheets/src/commands/mutations/remove-row-col.mutation.ts@@ -15,14 +15,13 @@*/import type { IAccessor, IColumnData, IMutation, IObjectArrayPrimitiveType, IRowData, Worksheet } from '@univerjs/core';-import { CommandType, concatMatrixArray, IUniverInstanceService, sliceMatrixArray, spliceArray } from '@univerjs/core';-import type {IInsertColMutationParams,IInsertRowMutationParams,IRemoveColMutationParams,IRemoveRowsMutationParams,} from '../../basics/interfaces/mutation-interface';+import { CommandType, concatMatrixArray, IUniverInstanceService, sliceMatrixArray, spliceArray } from '@univerjs/core';export const RemoveRowsUndoMutationFactory = (params: IRemoveRowsMutationParams,diff --git a/packages/sheets/src/commands/mutations/remove-sheet.mutation.ts b/packages/sheets/src/commands/mutations/remove-sheet.mutation.tsindex ccb2dc6ebe..3ed7f3ab13 100644--- a/packages/sheets/src/commands/mutations/remove-sheet.mutation.ts+++ b/packages/sheets/src/commands/mutations/remove-sheet.mutation.ts@@ -15,12 +15,11 @@*/import type { IAccessor, IMutation } from '@univerjs/core';-import { CommandType, IUniverInstanceService } from '@univerjs/core';-import type {IInsertSheetMutationParams,IRemoveSheetMutationParams,} from '../../basics/interfaces/mutation-interface';+import { CommandType, IUniverInstanceService } from '@univerjs/core';import { getSheetMutationTarget } from '../commands/utils/target-util';/**diff --git a/packages/sheets/src/commands/mutations/set-worksheet-permission-points.mutation.ts b/packages/sheets/src/commands/mutations/set-worksheet-permission-points.mutation.tsindex cd87152511..077990e1c6 100644--- a/packages/sheets/src/commands/mutations/set-worksheet-permission-points.mutation.ts+++ b/packages/sheets/src/commands/mutations/set-worksheet-permission-points.mutation.ts@@ -15,8 +15,8 @@*/import type { IMutation } from '@univerjs/core';-import { CommandType } from '@univerjs/core';import type { IWorksheetProtectionPointRule } from '../../services/permission/type';+import { CommandType } from '@univerjs/core';import { WorksheetProtectionPointModel } from '../../services/permission/worksheet-permission';export interface ISetWorksheetPermissionPointsMutationParams {diff --git a/packages/sheets/src/plugin.ts b/packages/sheets/src/plugin.tsindex bb64e752ab..77b7bfda65 100644--- a/packages/sheets/src/plugin.ts+++ b/packages/sheets/src/plugin.ts@@ -18,6 +18,7 @@ import type { Dependency } from '@univerjs/core';import type { IUniverSheetsConfig } from './controllers/config.schema';import { AUTO_HEIGHT_FOR_MERGED_CELLS, DependentOn, IConfigService, Inject, Injector, IS_ROW_STYLE_PRECEDE_COLUMN_STYLE, merge, mergeOverrideWithDependencies, Plugin, registerDependencies, touchDependencies, UniverInstanceType } from '@univerjs/core';import { UniverFormulaEnginePlugin } from '@univerjs/engine-formula';+import pkg from '../package.json';import { ActiveWorksheetController } from './controllers/active-worksheet.controller';import { AutoFillController } from './controllers/auto-fill.controller';import { BasicWorksheetController } from './controllers/basic-worksheet.controller';@@ -52,11 +53,11 @@ import { SheetsSelectionsService } from './services/selections/selection.serviceimport { SheetInterceptorService } from './services/sheet-interceptor/sheet-interceptor.service';import { SheetSkeletonService } from './skeleton/skeleton.service';-const PLUGIN_NAME = 'SHEET_PLUGIN';-@DependentOn(UniverFormulaEnginePlugin)export class UniverSheetsPlugin extends Plugin {- static override pluginName = PLUGIN_NAME;+ static override pluginName = 'SHEET_PLUGIN';+ static override packageName = pkg.name;+ static override version = pkg.version;static override type = UniverInstanceType.UNIVER_SHEET;constructor(diff --git a/packages/sheets/src/services/permission/permission-point/range/edit.ts b/packages/sheets/src/services/permission/permission-point/range/edit.tsindex 8137a6325c..40976fa426 100644--- a/packages/sheets/src/services/permission/permission-point/range/edit.ts+++ b/packages/sheets/src/services/permission/permission-point/range/edit.ts@@ -14,9 +14,9 @@* limitations under the License.*/+import type { IPermissionPoint } from '@univerjs/core';import { PermissionStatus } from '@univerjs/core';import { UnitAction, UnitObject } from '@univerjs/protocol';-import type { IPermissionPoint } from '@univerjs/core';export class RangeProtectionPermissionEditPoint implements IPermissionPoint {type = UnitObject.SelectRange;diff --git a/packages/sheets/src/services/permission/workbook-permission/index.ts b/packages/sheets/src/services/permission/workbook-permission/index.tsindex b1075af1c9..cbd4a0c53a 100644--- a/packages/sheets/src/services/permission/workbook-permission/index.ts+++ b/packages/sheets/src/services/permission/workbook-permission/index.ts@@ -14,4 +14,4 @@* limitations under the License.*/-export { getAllWorkbookPermissionPoint, defaultWorkbookPermissionPoints } from './util';+export { defaultWorkbookPermissionPoints, getAllWorkbookPermissionPoint } from './util';diff --git a/packages/slides-ui/src/commands/operations/insert-image.operation.ts b/packages/slides-ui/src/commands/operations/insert-image.operation.tsindex f2e12f5280..8e2fd2de8f 100644--- a/packages/slides-ui/src/commands/operations/insert-image.operation.ts+++ b/packages/slides-ui/src/commands/operations/insert-image.operation.ts@@ -14,10 +14,10 @@* limitations under the License.*/+import type { ICommand, SlideDataModel } from '@univerjs/core';import { CommandType, IUniverInstanceService, PageElementType, UniverInstanceType } from '@univerjs/core';import { DRAWING_IMAGE_ALLOW_IMAGE_LIST, getImageSize, IImageIoService } from '@univerjs/drawing';import { ILocalFileService } from '@univerjs/ui';-import type { ICommand, SlideDataModel } from '@univerjs/core';import { CanvasView } from '../../controllers/canvas-view';export const InsertSlideFloatImageCommand: ICommand<{}> = {diff --git a/packages/slides-ui/src/controllers/shortcuts/editor.shortcuts.ts b/packages/slides-ui/src/controllers/shortcuts/editor.shortcuts.tsindex e70cd901c5..a464c6a70f 100644--- a/packages/slides-ui/src/controllers/shortcuts/editor.shortcuts.ts+++ b/packages/slides-ui/src/controllers/shortcuts/editor.shortcuts.ts@@ -14,10 +14,10 @@* limitations under the License.*/+import type { IShortcutItem } from '@univerjs/ui';import { DeleteLeftCommand } from '@univerjs/docs-ui';import { DeviceInputEventType } from '@univerjs/engine-render';import { KeyCode, MetaKeys } from '@univerjs/ui';-import type { IShortcutItem } from '@univerjs/ui';import { SetTextEditArrowOperation } from '../../commands/operations/text-edit.operation';import {whenEditorActivated,diff --git a/packages/slides-ui/src/plugin.ts b/packages/slides-ui/src/plugin.tsindex b4c40172d6..45180da400 100644--- a/packages/slides-ui/src/plugin.ts+++ b/packages/slides-ui/src/plugin.ts@@ -18,6 +18,7 @@ import type { Dependency, SlideDataModel } from '@univerjs/core';import type { IUniverSlidesUIConfig } from './controllers/config.schema';import { IConfigService, Inject, Injector, IUniverInstanceService, merge, mergeOverrideWithDependencies, Plugin, UniverInstanceType } from '@univerjs/core';import { IRenderManagerService } from '@univerjs/engine-render';+import pkg from '../package.json';import { CanvasView } from './controllers/canvas-view';import { defaultPluginConfig, SLIDES_UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';import { SlidePopupMenuController } from './controllers/popup-menu.controller';@@ -30,10 +31,10 @@ import { ISlideEditorManagerService, SlideEditorManagerService } from './serviceimport { SlideCanvasPopMangerService } from './services/slide-popup-manager.service';import { SlideRenderService } from './services/slide-render.service';-export const SLIDE_UI_PLUGIN_NAME = 'SLIDE_UI';-export class UniverSlidesUIPlugin extends Plugin {- static override pluginName = SLIDE_UI_PLUGIN_NAME;+ static override pluginName = 'UNIVER_SLIDES_UI_PLUGIN';+ static override packageName = pkg.name;+ static override version = pkg.version;static override type = UniverInstanceType.UNIVER_SLIDE;constructor(diff --git a/packages/slides-ui/src/services/slide-editor-manager.service.ts b/packages/slides-ui/src/services/slide-editor-manager.service.tsindex 30478a0525..69046e34ae 100644--- a/packages/slides-ui/src/services/slide-editor-manager.service.ts+++ b/packages/slides-ui/src/services/slide-editor-manager.service.ts@@ -15,8 +15,8 @@*/import type { IDisposable, IPosition, Nullable } from '@univerjs/core';-import { createIdentifier } from '@univerjs/core';import type { Observable } from 'rxjs';+import { createIdentifier } from '@univerjs/core';import { BehaviorSubject } from 'rxjs';export interface ICellEditorManagerParam extends Partial<IPosition> {diff --git a/packages/slides/src/plugin.ts b/packages/slides/src/plugin.tsindex 73f34a94ef..611a4b2a12 100644--- a/packages/slides/src/plugin.ts+++ b/packages/slides/src/plugin.ts@@ -18,18 +18,17 @@ import type { Dependency } from '@univerjs/core';import type { Engine } from '@univerjs/engine-render';import { IConfigService, Inject, Injector, merge, Plugin, UniverInstanceType } from '@univerjs/core';import { IRenderingEngine, IRenderManagerService } from '@univerjs/engine-render';+import pkg from '../package.json';import { defaultPluginConfig, SLIDES_PLUGIN_CONFIG_KEY } from './controllers/config.schema';// import { DocSelectionManagerService } from '@univerjs/docs';// import { CanvasView } from './views/render';export interface IUniverSlidesConfig {}-const DEFAULT_SLIDE_PLUGIN_DATA = {};--const PLUGIN_NAME = 'slides';-export class UniverSlidesPlugin extends Plugin {- static override pluginName = PLUGIN_NAME;+ static override pluginName = 'UNIVER_SLIDES_PLUGIN';+ static override packageName = pkg.name;+ static override version = pkg.version;static override type = UniverInstanceType.UNIVER_SLIDE;private _canvasEngine: Engine | null = null;diff --git a/packages/slides/src/views/render/adaptor.ts b/packages/slides/src/views/render/adaptor.tsindex fe13617523..5fd9731b81 100644--- a/packages/slides/src/views/render/adaptor.ts+++ b/packages/slides/src/views/render/adaptor.ts@@ -15,8 +15,8 @@*/import type { Injector, IPageElement, Nullable, PageElementType } from '@univerjs/core';-import { Registry } from '@univerjs/core';import type { BaseObject, Scene } from '@univerjs/engine-render';+import { Registry } from '@univerjs/core';export abstract class ObjectAdaptor {zIndex = 0;diff --git a/packages/slides/src/views/render/adaptors/docs-adaptor.ts b/packages/slides/src/views/render/adaptors/docs-adaptor.tsindex b0ce1ab837..7143336c58 100644--- a/packages/slides/src/views/render/adaptors/docs-adaptor.ts+++ b/packages/slides/src/views/render/adaptors/docs-adaptor.ts@@ -14,6 +14,8 @@* limitations under the License.*/+import type { EventState, Injector, IPageElement } from '@univerjs/core';+import type { BaseObject, IDocumentSkeletonDrawing, IPageRenderConfig, IWheelEvent } from '@univerjs/engine-render';import { DocumentDataModel, Inject, LocaleService, PageElementType } from '@univerjs/core';import {Documents,@@ -28,8 +30,6 @@ import {ScrollBar,Viewport,} from '@univerjs/engine-render';-import type { EventState, Injector, IPageElement } from '@univerjs/core';-import type { BaseObject, IDocumentSkeletonDrawing, IPageRenderConfig, IWheelEvent } from '@univerjs/engine-render';import { CanvasObjectProviderRegistry, ObjectAdaptor } from '../adaptor';diff --git a/packages/slides/src/views/render/adaptors/rich-text-adaptor.ts b/packages/slides/src/views/render/adaptors/rich-text-adaptor.tsindex 0a97a0d41b..bdd0f8654f 100644--- a/packages/slides/src/views/render/adaptors/rich-text-adaptor.ts+++ b/packages/slides/src/views/render/adaptors/rich-text-adaptor.ts@@ -15,10 +15,9 @@*/import type { Injector, IPageElement } from '@univerjs/core';-import { Inject, LocaleService, PageElementType } from '@univerjs/core';import type { IRichTextProps, Scene } from '@univerjs/engine-render';+import { Inject, LocaleService, PageElementType } from '@univerjs/core';import { RichText } from '@univerjs/engine-render';-import { CanvasObjectProviderRegistry, ObjectAdaptor } from '../adaptor';export class RichTextAdaptor extends ObjectAdaptor {diff --git a/packages/slides/src/views/render/adaptors/slide-adaptor.ts b/packages/slides/src/views/render/adaptors/slide-adaptor.tsindex be383f53b2..fda8a46c2f 100644--- a/packages/slides/src/views/render/adaptors/slide-adaptor.ts+++ b/packages/slides/src/views/render/adaptors/slide-adaptor.ts@@ -14,11 +14,10 @@* limitations under the License.*/-import { getColorStyle, Inject, Injector, PageElementType, SlideDataModel } from '@univerjs/core';-import { Rect, Scene, Slide, Viewport } from '@univerjs/engine-render';import type { IColorStyle, IPageElement, ISlidePage } from '@univerjs/core';import type { Engine } from '@univerjs/engine-render';-+import { getColorStyle, Inject, Injector, PageElementType, SlideDataModel } from '@univerjs/core';+import { Rect, Scene, Slide, Viewport } from '@univerjs/engine-render';import { CanvasObjectProviderRegistry, ObjectAdaptor } from '../adaptor';import { ObjectProvider } from '../object-provider';diff --git a/packages/slides/src/views/render/object-provider.ts b/packages/slides/src/views/render/object-provider.tsindex 905c3001d2..8c1cbd022c 100644--- a/packages/slides/src/views/render/object-provider.ts+++ b/packages/slides/src/views/render/object-provider.ts@@ -14,14 +14,12 @@* limitations under the License.*/-import './adaptors';-import type { IPageElement } from '@univerjs/core';-import { Inject, Injector, sortRules } from '@univerjs/core';import type { BaseObject, Scene } from '@univerjs/engine-render';-import type { ObjectAdaptor } from './adaptor';+import { Inject, Injector, sortRules } from '@univerjs/core';import { CanvasObjectProviderRegistry } from './adaptor';+import './adaptors';export class ObjectProvider {private _adaptors: ObjectAdaptor[] = [];diff --git a/packages/thread-comment-ui/src/plugin.ts b/packages/thread-comment-ui/src/plugin.tsindex fb608ece7c..0ecd67a40c 100644--- a/packages/thread-comment-ui/src/plugin.ts+++ b/packages/thread-comment-ui/src/plugin.ts@@ -18,6 +18,7 @@ import type { Dependency } from '@univerjs/core';import type { IUniverThreadCommentUIConfig } from './controllers/config.schema';import { DependentOn, ICommandService, IConfigService, Inject, Injector, merge, mergeOverrideWithDependencies, Plugin, UniverInstanceType } from '@univerjs/core';import { UniverThreadCommentPlugin } from '@univerjs/thread-comment';+import pkg from '../package.json';import { SetActiveCommentOperation, ToggleSheetCommentPanelOperation } from './commands/operations/comment.operations';import { defaultPluginConfig, THREAD_COMMENT_UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';import { ThreadCommentPanelService } from './services/thread-comment-panel.service';@@ -26,6 +27,8 @@ import { PLUGIN_NAME } from './types/const';@DependentOn(UniverThreadCommentPlugin)export class UniverThreadCommentUIPlugin extends Plugin {static override pluginName = PLUGIN_NAME;+ static override packageName = pkg.name;+ static override version = pkg.version;static override type = UniverInstanceType.UNIVER_UNKNOWN;constructor(diff --git a/packages/thread-comment/src/plugin.ts b/packages/thread-comment/src/plugin.tsindex 3f2ed250ab..c2ec721f8a 100644--- a/packages/thread-comment/src/plugin.ts+++ b/packages/thread-comment/src/plugin.ts@@ -17,6 +17,7 @@import type { Dependency } from '@univerjs/core';import type { IUniverThreadCommentConfig } from './controllers/config.schema';import { ICommandService, IConfigService, Inject, Injector, merge, mergeOverrideWithDependencies, Plugin, UniverInstanceType } from '@univerjs/core';+import pkg from '../package.json';import { AddCommentCommand, DeleteCommentCommand, DeleteCommentTreeCommand, ResolveCommentCommand, UpdateCommentCommand } from './commands/commands/comment.command';import { AddCommentMutation, DeleteCommentMutation, ResolveCommentMutation, UpdateCommentMutation, UpdateCommentRefMutation } from './commands/mutations/comment.mutation';import { defaultPluginConfig, THREAD_COMMENT_PLUGIN_CONFIG_KEY } from './controllers/config.schema';@@ -27,6 +28,8 @@ import { TC_PLUGIN_NAME } from './types/const';export class UniverThreadCommentPlugin extends Plugin {static override pluginName = TC_PLUGIN_NAME;+ static override packageName = pkg.name;+ static override version = pkg.version;static override type = UniverInstanceType.UNIVER_UNKNOWN;constructor(diff --git a/packages/ui-adapter-vue3/src/plugin.ts b/packages/ui-adapter-vue3/src/plugin.tsindex 5a0075ca4f..5af2457957 100644--- a/packages/ui-adapter-vue3/src/plugin.ts+++ b/packages/ui-adapter-vue3/src/plugin.ts@@ -19,6 +19,7 @@ import type { defineComponent } from 'vue';import { DependentOn, Inject, Injector, Plugin } from '@univerjs/core';import { ComponentManager, UniverUIPlugin } from '@univerjs/ui';import { h, render } from 'vue';+import pkg from '../package.json';/*** The plugin that allows Univer to use Vue 3 components as UI components.@@ -26,6 +27,8 @@ import { h, render } from 'vue';@DependentOn(UniverUIPlugin)export class UniverVue3AdapterPlugin extends Plugin {static override pluginName = 'UNIVER_UI_ADAPTER_VUE3_PLUGIN';+ static override packageName = pkg.name;+ static override version = pkg.version;constructor(private readonly _config = {},diff --git a/packages/ui-adapter-web-component/src/plugin.ts b/packages/ui-adapter-web-component/src/plugin.tsindex 0b768fe0b3..dd237d0615 100644--- a/packages/ui-adapter-web-component/src/plugin.ts+++ b/packages/ui-adapter-web-component/src/plugin.ts@@ -17,6 +17,7 @@import type { IComponent } from '@univerjs/ui';import { DependentOn, Inject, Injector, Plugin } from '@univerjs/core';import { ComponentManager, UniverUIPlugin } from '@univerjs/ui';+import pkg from '../package.json';/*** The plugin that allows Univer to use web components as UI components.@@ -24,6 +25,8 @@ import { ComponentManager, UniverUIPlugin } from '@univerjs/ui';@DependentOn(UniverUIPlugin)export class UniverWebComponentAdapterPlugin extends Plugin {static override pluginName = 'UNIVER_UI_ADAPTER_WEB_COMPONENT_PLUGIN';+ static override packageName = pkg.name;+ static override version = pkg.version;constructor(private readonly _config = {},diff --git a/packages/ui/src/index.ts b/packages/ui/src/index.tsindex 2adc6cc17c..d5a92cbeaa 100644--- a/packages/ui/src/index.ts+++ b/packages/ui/src/index.ts@@ -49,7 +49,7 @@ export { DesktopUIController } from './controllers/ui/ui-desktop.controller';export { SingleUnitUIController } from './controllers/ui/ui-shared.controller';export { IUIController, type IWorkbenchOptions } from './controllers/ui/ui.controller';export { UniverMobileUIPlugin } from './mobile-plugin';-export { DISABLE_AUTO_FOCUS_KEY, UNIVER_UI_PLUGIN_NAME, UniverUIPlugin } from './plugin';+export { DISABLE_AUTO_FOCUS_KEY, UniverUIPlugin } from './plugin';export { DesktopBeforeCloseService, IBeforeCloseService } from './services/before-close/before-close.service';export {BrowserClipboardService,diff --git a/packages/ui/src/mobile-plugin.ts b/packages/ui/src/mobile-plugin.tsindex a1b05f96e6..86c2a38e52 100644--- a/packages/ui/src/mobile-plugin.ts+++ b/packages/ui/src/mobile-plugin.ts@@ -17,6 +17,7 @@import type { IUniverUIConfig } from './controllers/config.schema';import { DependentOn, generateRandomId, IConfigService, IConfirmService, IContextService, ILocalStorageService, Inject, Injector, merge, mergeOverrideWithDependencies, Plugin, registerDependencies, touchDependencies } from '@univerjs/core';import { UniverRenderEnginePlugin } from '@univerjs/engine-render';+import pkg from '../package.json';import { ComponentManager } from './common/component-manager';import { ZIndexManager } from './common/z-index-manager';import { defaultPluginConfig, UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';@@ -57,8 +58,6 @@ import { ThemeSwitcherService } from './services/theme-switcher/theme-switcher.simport { DesktopZenZoneService } from './services/zen-zone/desktop-zen-zone.service';import { IZenZoneService } from './services/zen-zone/zen-zone.service';-export const UNIVER_UI_PLUGIN_NAME = 'UNIVER_MOBILE_UI_PLUGIN';-export const DISABLE_AUTO_FOCUS_KEY = 'DISABLE_AUTO_FOCUS';/**@@ -66,7 +65,9 @@ export const DISABLE_AUTO_FOCUS_KEY = 'DISABLE_AUTO_FOCUS';*/@DependentOn(UniverRenderEnginePlugin)export class UniverMobileUIPlugin extends Plugin {- static override pluginName = UNIVER_UI_PLUGIN_NAME;+ static override pluginName = 'UNIVER_MOBILE_UI_PLUGIN';+ static override packageName = pkg.name;+ static override version = pkg.version;constructor(private readonly _config: Partial<IUniverUIConfig> = defaultPluginConfig,diff --git a/packages/ui/src/plugin.ts b/packages/ui/src/plugin.tsindex 686159b434..b8c65d58bd 100644--- a/packages/ui/src/plugin.ts+++ b/packages/ui/src/plugin.ts@@ -17,6 +17,7 @@import type { IUniverUIConfig } from './controllers/config.schema';import { DependentOn, generateRandomId, IConfigService, IConfirmService, IContextService, ILocalStorageService, Inject, Injector, merge, mergeOverrideWithDependencies, Plugin, registerDependencies, touchDependencies } from '@univerjs/core';import { UniverRenderEnginePlugin } from '@univerjs/engine-render';+import pkg from '../package.json';import { ComponentManager } from './common/component-manager';import { ZIndexManager } from './common/z-index-manager';import { defaultPluginConfig, UI_PLUGIN_CONFIG_KEY } from './controllers/config.schema';@@ -59,8 +60,6 @@ import { ThemeSwitcherService } from './services/theme-switcher/theme-switcher.simport { DesktopZenZoneService } from './services/zen-zone/desktop-zen-zone.service';import { IZenZoneService } from './services/zen-zone/zen-zone.service';-export const UNIVER_UI_PLUGIN_NAME = 'UNIVER_UI_PLUGIN';-export const DISABLE_AUTO_FOCUS_KEY = 'DISABLE_AUTO_FOCUS';/**@@ -68,7 +67,9 @@ export const DISABLE_AUTO_FOCUS_KEY = 'DISABLE_AUTO_FOCUS';*/@DependentOn(UniverRenderEnginePlugin)export class UniverUIPlugin extends Plugin {- static override pluginName = UNIVER_UI_PLUGIN_NAME;+ static override pluginName = 'UNIVER_UI_PLUGIN';+ static override packageName = pkg.name;+ static override version = pkg.version;constructor(private readonly _config: Partial<IUniverUIConfig> = defaultPluginConfig,diff --git a/packages/ui/src/services/global-zone/global-zone.service.ts b/packages/ui/src/services/global-zone/global-zone.service.tsindex 926aff951c..41f155e818 100644--- a/packages/ui/src/services/global-zone/global-zone.service.ts+++ b/packages/ui/src/services/global-zone/global-zone.service.ts@@ -15,8 +15,8 @@*/import type { IDisposable } from '@univerjs/core';-import { createIdentifier } from '@univerjs/core';import type { Subject } from 'rxjs';+import { createIdentifier } from '@univerjs/core';export const IGlobalZoneService = createIdentifier<IGlobalZoneService>('univer.global-zone-service');diff --git a/packages/uniscript/src/plugin.ts b/packages/uniscript/src/plugin.tsindex 70903985ae..ad3ab24505 100644--- a/packages/uniscript/src/plugin.ts+++ b/packages/uniscript/src/plugin.ts@@ -17,16 +17,17 @@import type { Dependency } from '@univerjs/core';import type { IUniverUniscriptConfig } from './controllers/config.schema';import { IConfigService, Inject, Injector, merge, Plugin } from '@univerjs/core';+import pkg from '../package.json';import { defaultPluginConfig, UNISCRIPT_PLUGIN_CONFIG_KEY } from './controllers/config.schema';import { UniscriptController } from './controllers/uniscript.controller';import { ScriptEditorService } from './services/script-editor.service';import { IUniscriptExecutionService, UniscriptExecutionService } from './services/script-execution.service';import { ScriptPanelService } from './services/script-panel.service';-const PLUGIN_NAME = 'UNIVER_UNISCRIPT_PLUGIN';-export class UniverUniscriptPlugin extends Plugin {- static override pluginName = PLUGIN_NAME;+ static override pluginName = 'UNIVER_UNISCRIPT_PLUGIN';+ static override packageName = pkg.name;+ static override version = pkg.version;constructor(private readonly _config: Partial<IUniverUniscriptConfig> = defaultPluginConfig,diff --git a/packages/uniscript/src/services/script-execution.service.ts b/packages/uniscript/src/services/script-execution.service.tsindex cf84d1b144..e55599a41d 100644--- a/packages/uniscript/src/services/script-execution.service.ts+++ b/packages/uniscript/src/services/script-execution.service.ts@@ -15,7 +15,6 @@*/import { createIdentifier, Disposable, ILogService, Inject, Injector } from '@univerjs/core';-// eslint-disable-next-line univer/no-facade-imports-outside-facadeimport { FUniver } from '@univerjs/core/facade';export const IUniscriptExecutionService = createIdentifier<IUniscriptExecutionService>('univer.uniscript.execution-service');diff --git a/packages/watermark/src/plugin.ts b/packages/watermark/src/plugin.tsindex fc1bc34a50..084951a226 100644--- a/packages/watermark/src/plugin.ts+++ b/packages/watermark/src/plugin.ts@@ -19,15 +19,16 @@ import type { IWatermarkConfigWithType } from '@univerjs/engine-render';import type { IUniverWatermarkConfig } from './controllers/config.schema';import { IConfigService, ILocalStorageService, Inject, Injector, merge, Plugin, UniverInstanceType } from '@univerjs/core';import { IRenderManagerService, IWatermarkTypeEnum, UNIVER_WATERMARK_STORAGE_KEY } from '@univerjs/engine-render';+import pkg from '../package.json';import { WatermarkImageBaseConfig, WatermarkTextBaseConfig, WatermarkUserInfoBaseConfig } from './common/const';import { defaultPluginConfig, WATERMARK_PLUGIN_CONFIG_KEY } from './controllers/config.schema';import { WatermarkRenderController } from './controllers/watermark.render.controller';import { WatermarkService } from './services/watermark.service';-const PLUGIN_NAME = 'UNIVER_WATERMARK_PLUGIN';-export class UniverWatermarkPlugin extends Plugin {- static override pluginName = PLUGIN_NAME;+ static override pluginName = 'UNIVER_WATERMARK_PLUGIN';+ static override packageName = pkg.name;+ static override version = pkg.version;constructor(private readonly _config: Partial<IUniverWatermarkConfig> = defaultPluginConfig,