Skip to content

Commit

Permalink
fix: fix API not exported
Browse files Browse the repository at this point in the history
  • Loading branch information
wzhudev committed Apr 23, 2024
1 parent 00b30e5 commit b4913f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ui/src/index.ts
Expand Up @@ -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';
Expand Down
2 changes: 2 additions & 0 deletions packages/ui/src/ui-plugin.ts
Expand Up @@ -88,6 +88,7 @@ export class UniverUIPlugin extends Plugin {

override onStarting(_injector: Injector): void {
this._initDependencies(_injector);

this._initUI();
}

Expand Down Expand Up @@ -117,6 +118,7 @@ export class UniverUIPlugin extends Plugin {
[IEditorService, { useClass: EditorService }],
[IRangeSelectorService, { useClass: RangeSelectorService }],
[ICanvasPopupService, { useClass: CanvasPopupService }],

// controllers
[IUIController, { useClass: DesktopUIController }],
[SharedController],
Expand Down

0 comments on commit b4913f9

Please sign in to comment.