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
chore(ui): export mock service for testing (#5128)
Wenzhao Hu7949d82244db
diff --git a/packages/ui/src/index.ts b/packages/ui/src/index.tsindex 7831ee3a0b..c11328bb4d 100644--- a/packages/ui/src/index.ts+++ b/packages/ui/src/index.ts@@ -113,13 +113,12 @@ export { DesktopZenZoneService } from './services/zen-zone/desktop-zen-zone.servexport { IZenZoneService } from './services/zen-zone/zen-zone.service';export { FloatDomSingle } from './views/components/dom/FloatDom';export { PrintFloatDomSingle } from './views/components/dom/print';-export { DISABLE_AUTO_FOCUS_KEY, UniverUIPlugin } from './ui-plugin';--export { UNIVER_UI_PLUGIN_NAME } from './ui-plugin';+export { DISABLE_AUTO_FOCUS_KEY, UNIVER_UI_PLUGIN_NAME, UniverUIPlugin } from './ui-plugin';export * from './utils';export { ComponentContainer, type IComponentContainerProps, useComponentsOfPart } from './views/components/ComponentContainer';export { ZenZone } from './views/components/zen-zone/ZenZone';export { Menu as DesktopMenu } from './components/menu/desktop/Menu';+// #region - workbench componentsexport { type IConfirmPartMethodOptions } from './views/components/confirm-part/interface';@@ -141,3 +140,7 @@ export { type ISidebarMethodOptions, Sidebar } from './views/components/sidebar/export { ToggleShortcutPanelOperation } from './commands/operations/toggle-shortcut-panel.operation';// #endregion++// #region testing+export { MockMessageService } from './services/message/__testing__/mock-message.service.ts';+// #endregiondiff --git a/packages/ui/src/services/message/__testing__/mock-message.service.ts b/packages/ui/src/services/message/__testing__/mock-message.service.tsindex a332f040c3..8d68e35e90 100644--- a/packages/ui/src/services/message/__testing__/mock-message.service.ts+++ b/packages/ui/src/services/message/__testing__/mock-message.service.ts@@ -22,6 +22,8 @@ import { toDisposable } from '@univerjs/core';/*** This is a mocked message service for testing purposes.+ *+ * @ignore*/export class MockMessageService implements IMessageService {show(_options: IMessageProps): IDisposable {