Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

fix: fix API not exported

Wenzhao Hub4913f93d748
diff --git a/packages/ui/src/index.ts b/packages/ui/src/index.ts
index 81ab913ff4..1e8f704ee4 100644
--- a/packages/ui/src/index.ts
+++ b/packages/ui/src/index.ts
@@ -27,8 +27,8 @@ export {
SharedController,
UndoShortcutItem,
} from './controllers/shared-shortcut.controller';
-export { IUIController } from './controllers/ui/ui.controller';
-export { DesktopUIPart, type IDesktopUIController } from './controllers/ui/ui-desktop.controller';
+export { IUIController, type IWorkbenchOptions } from './controllers/ui/ui.controller';
+export { DesktopUIController, DesktopUIPart, type IDesktopUIController } from './controllers/ui/ui-desktop.controller';
export { enUS, zhCN } from './locale';
export { DesktopBeforeCloseService, IBeforeCloseService } from './services/before-close/before-close.service';
export { CopyCommand, CutCommand, PasteCommand } from './services/clipboard/clipboard.command';
diff --git a/packages/ui/src/ui-plugin.ts b/packages/ui/src/ui-plugin.ts
index afaf5908f7..41f615b6e2 100644
--- a/packages/ui/src/ui-plugin.ts
+++ b/packages/ui/src/ui-plugin.ts
@@ -88,6 +88,7 @@ export class UniverUIPlugin extends Plugin {
override onStarting(_injector: Injector): void {
this._initDependencies(_injector);
+
this._initUI();
}
@@ -117,6 +118,7 @@ export class UniverUIPlugin extends Plugin {
[IEditorService, { useClass: EditorService }],
[IRangeSelectorService, { useClass: RangeSelectorService }],
[ICanvasPopupService, { useClass: CanvasPopupService }],
+
// controllers
[IUIController, { useClass: DesktopUIController }],
[SharedController],