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
refactor: add dependon to UniverDocsUIPlugin (#3519)
Ran Luode7e8b7f92b6
diff --git a/packages/docs-ui/src/docs-ui-plugin.ts b/packages/docs-ui/src/docs-ui-plugin.tsindex dafec943e6..54353189da 100644--- a/packages/docs-ui/src/docs-ui-plugin.ts+++ b/packages/docs-ui/src/docs-ui-plugin.ts@@ -14,7 +14,7 @@* limitations under the License.*/-import { ICommandService,+import { DependentOn, ICommandService,IConfigService,ILogService,Inject,@@ -24,7 +24,7 @@ import { ICommandService,Plugin, UniverInstanceType,} from '@univerjs/core';import { DocInterceptorService, DocSkeletonManagerService } from '@univerjs/docs';-import { IRenderManagerService } from '@univerjs/engine-render';+import { IRenderManagerService, UniverRenderEnginePlugin } from '@univerjs/engine-render';import { IShortcutService } from '@univerjs/ui';import type { Dependency } from '@univerjs/core';import { DOC_UI_PLUGIN_NAME } from './basics/const/plugin-name';@@ -94,6 +94,7 @@ import {import { ShiftTabShortCut } from './shortcuts/format.shortcut';import type { IUniverDocsUIConfig } from './controllers/config.schema';+@DependentOn(UniverRenderEnginePlugin)export class UniverDocsUIPlugin extends Plugin {static override pluginName = DOC_UI_PLUGIN_NAME;// static override type = UniverInstanceType.UNIVER_DOC;