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(debugger): move to packages-experimental folder
白熱47e695ceb6bb
diff --git a/packages/debugger/README.md b/packages-experimental/debugger/README.mdsimilarity index 100%rename from packages/debugger/README.mdrename to packages-experimental/debugger/README.mddiff --git a/packages/debugger/package.json b/packages-experimental/debugger/package.jsonsimilarity index 100%rename from packages/debugger/package.jsonrename to packages-experimental/debugger/package.jsondiff --git a/packages/debugger/src/commands/commands/float-dom.command.ts b/packages-experimental/debugger/src/commands/commands/float-dom.command.tssimilarity index 100%rename from packages/debugger/src/commands/commands/float-dom.command.tsrename to packages-experimental/debugger/src/commands/commands/float-dom.command.tsindex a913949120..e360e649ad 100644--- a/packages/debugger/src/commands/commands/float-dom.command.ts+++ b/packages-experimental/debugger/src/commands/commands/float-dom.command.ts@@ -14,9 +14,9 @@* limitations under the License.*/-import type { ICommand } from '@univerjs/core';import { CommandType } from '@univerjs/core';import { SheetCanvasFloatDomManagerService } from '@univerjs/sheets-drawing-ui';+import type { ICommand } from '@univerjs/core';export const CreateFloatDomCommand: ICommand = {id: 'debugger.command.create-float-dom',diff --git a/packages/debugger/src/commands/commands/unit.command.ts b/packages-experimental/debugger/src/commands/commands/unit.command.tssimilarity index 100%rename from packages/debugger/src/commands/commands/unit.command.tsrename to packages-experimental/debugger/src/commands/commands/unit.command.tsindex ab27564b42..e91ea037ab 100644--- a/packages/debugger/src/commands/commands/unit.command.ts+++ b/packages-experimental/debugger/src/commands/commands/unit.command.ts@@ -14,10 +14,10 @@* limitations under the License.*/-import type { ICommand, IWorkbookData, Univer, Workbook } from '@univerjs/core';import { CommandType, IUniverInstanceService, UniverInstanceType } from '@univerjs/core';-import type { FUniver } from '@univerjs/facade';import { IFileOpenerService } from '@univerjs/ui';+import type { ICommand, IWorkbookData, Univer, Workbook } from '@univerjs/core';+import type { FUniver } from '@univerjs/facade';declare global {// eslint-disable-next-line ts/naming-conventiondiff --git a/packages/debugger/src/commands/operations/cell.operation.ts b/packages-experimental/debugger/src/commands/operations/cell.operation.tssimilarity index 100%rename from packages/debugger/src/commands/operations/cell.operation.tsrename to packages-experimental/debugger/src/commands/operations/cell.operation.tsdiff --git a/packages/debugger/src/commands/operations/change-user.operation.ts b/packages-experimental/debugger/src/commands/operations/change-user.operation.tssimilarity index 100%rename from packages/debugger/src/commands/operations/change-user.operation.tsrename to packages-experimental/debugger/src/commands/operations/change-user.operation.tsindex 75fff119dd..46feb4be70 100644--- a/packages/debugger/src/commands/operations/change-user.operation.ts+++ b/packages-experimental/debugger/src/commands/operations/change-user.operation.ts@@ -14,9 +14,9 @@* limitations under the License.*/-import type { IAccessor, ICommand, Workbook } from '@univerjs/core';import { CommandType, createDefaultUser, IPermissionService, IUniverInstanceService, UniverInstanceType, UserManagerService } from '@univerjs/core';import { WorkbookManageCollaboratorPermission } from '@univerjs/sheets';+import type { IAccessor, ICommand, Workbook } from '@univerjs/core';export enum UnitRole {Reader = 0,diff --git a/packages/debugger/src/commands/operations/confirm.operation.ts b/packages-experimental/debugger/src/commands/operations/confirm.operation.tssimilarity index 100%rename from packages/debugger/src/commands/operations/confirm.operation.tsrename to packages-experimental/debugger/src/commands/operations/confirm.operation.tsindex 8708a8d8ab..9a153bdbca 100644--- a/packages/debugger/src/commands/operations/confirm.operation.ts+++ b/packages-experimental/debugger/src/commands/operations/confirm.operation.ts@@ -14,9 +14,9 @@* limitations under the License.*/-import type { IAccessor, ICommand } from '@univerjs/core';import { CommandType } from '@univerjs/core';import { IConfirmService } from '@univerjs/ui';+import type { IAccessor, ICommand } from '@univerjs/core';export interface IUIComponentCommandParams {value: string;diff --git a/packages/debugger/src/commands/operations/dialog.operation.ts b/packages-experimental/debugger/src/commands/operations/dialog.operation.tssimilarity index 100%rename from packages/debugger/src/commands/operations/dialog.operation.tsrename to packages-experimental/debugger/src/commands/operations/dialog.operation.tsindex c6ccf5b469..dcc5168d4d 100644--- a/packages/debugger/src/commands/operations/dialog.operation.ts+++ b/packages-experimental/debugger/src/commands/operations/dialog.operation.ts@@ -14,9 +14,9 @@* limitations under the License.*/-import type { IAccessor, ICommand } from '@univerjs/core';import { CommandType } from '@univerjs/core';import { IDialogService } from '@univerjs/ui';+import type { IAccessor, ICommand } from '@univerjs/core';export interface IUIComponentCommandParams {value: string;diff --git a/packages/debugger/src/commands/operations/locale.operation.ts b/packages-experimental/debugger/src/commands/operations/locale.operation.tssimilarity index 100%rename from packages/debugger/src/commands/operations/locale.operation.tsrename to packages-experimental/debugger/src/commands/operations/locale.operation.tsindex 1ae9b0d2d2..f355eb4767 100644--- a/packages/debugger/src/commands/operations/locale.operation.ts+++ b/packages-experimental/debugger/src/commands/operations/locale.operation.ts@@ -14,8 +14,8 @@* limitations under the License.*/-import type { IAccessor, ICommand, LocaleType } from '@univerjs/core';import { CommandType, LocaleService } from '@univerjs/core';+import type { IAccessor, ICommand, LocaleType } from '@univerjs/core';export interface ILocaleCommandParams {value: LocaleType;diff --git a/packages/debugger/src/commands/operations/message.operation.ts b/packages-experimental/debugger/src/commands/operations/message.operation.tssimilarity index 100%rename from packages/debugger/src/commands/operations/message.operation.tsrename to packages-experimental/debugger/src/commands/operations/message.operation.tsindex 5e18104189..67acb6aa29 100644--- a/packages/debugger/src/commands/operations/message.operation.ts+++ b/packages-experimental/debugger/src/commands/operations/message.operation.ts@@ -14,10 +14,10 @@* limitations under the License.*/-import type { IAccessor, ICommand } from '@univerjs/core';import { CommandType } from '@univerjs/core';import { MessageType } from '@univerjs/design';import { IMessageService } from '@univerjs/ui';+import type { IAccessor, ICommand } from '@univerjs/core';export const MessageOperation: ICommand = {id: 'debugger.operation.message',diff --git a/packages/debugger/src/commands/operations/notification.operation.ts b/packages-experimental/debugger/src/commands/operations/notification.operation.tssimilarity index 100%rename from packages/debugger/src/commands/operations/notification.operation.tsrename to packages-experimental/debugger/src/commands/operations/notification.operation.tsindex 9eeebbcdb1..1fb75df476 100644--- a/packages/debugger/src/commands/operations/notification.operation.ts+++ b/packages-experimental/debugger/src/commands/operations/notification.operation.ts@@ -14,9 +14,9 @@* limitations under the License.*/-import type { IAccessor, ICommand } from '@univerjs/core';import { CommandType } from '@univerjs/core';import { INotificationService } from '@univerjs/ui';+import type { IAccessor, ICommand } from '@univerjs/core';export interface IUIComponentCommandParams {value: string;diff --git a/packages/debugger/src/commands/operations/numfmt.operations.ts b/packages-experimental/debugger/src/commands/operations/numfmt.operations.tssimilarity index 100%rename from packages/debugger/src/commands/operations/numfmt.operations.tsrename to packages-experimental/debugger/src/commands/operations/numfmt.operations.tsindex fd128f3c32..4c1b1d0a8d 100644--- a/packages/debugger/src/commands/operations/numfmt.operations.ts+++ b/packages-experimental/debugger/src/commands/operations/numfmt.operations.ts@@ -14,8 +14,8 @@* limitations under the License.*/-import type { IAccessor, ICommand } from '@univerjs/core';import { CommandType, ICommandService } from '@univerjs/core';+import type { IAccessor, ICommand } from '@univerjs/core';export interface INumfmtOperationCommandParams {value: 'close' | 'open';diff --git a/packages/debugger/src/commands/operations/save-snapshot.operations.ts b/packages-experimental/debugger/src/commands/operations/save-snapshot.operations.tssimilarity index 100%rename from packages/debugger/src/commands/operations/save-snapshot.operations.tsrename to packages-experimental/debugger/src/commands/operations/save-snapshot.operations.tsindex 34da7f5982..71e48f9cf5 100644--- a/packages/debugger/src/commands/operations/save-snapshot.operations.ts+++ b/packages-experimental/debugger/src/commands/operations/save-snapshot.operations.ts@@ -14,11 +14,11 @@* limitations under the License.*/+import { CommandType, IResourceLoaderService, IUniverInstanceService, ObjectMatrix, UniverInstanceType } from '@univerjs/core';/* eslint-disable node/prefer-global/process */import type { DocumentDataModel, IAccessor, ICommand, IStyleData, IWorkbookData, Workbook } from '@univerjs/core';-import { CommandType, IResourceLoaderService, IUniverInstanceService, ObjectMatrix, UniverInstanceType } from '@univerjs/core';-import { RecordController } from '../../controllers/local-save/record.controller';import { ExportController } from '../../controllers/local-save/export.controller';+import { RecordController } from '../../controllers/local-save/record.controller';export interface ISaveSnapshotParams {value: 'sheet' | 'workbook' | 'record';diff --git a/packages/debugger/src/commands/operations/set.editable.operation.ts b/packages-experimental/debugger/src/commands/operations/set.editable.operation.tssimilarity index 100%rename from packages/debugger/src/commands/operations/set.editable.operation.tsrename to packages-experimental/debugger/src/commands/operations/set.editable.operation.tsindex 5a8379453a..0108e67b17 100644--- a/packages/debugger/src/commands/operations/set.editable.operation.ts+++ b/packages-experimental/debugger/src/commands/operations/set.editable.operation.ts@@ -14,9 +14,9 @@* limitations under the License.*/-import type { IAccessor, ICommand } from '@univerjs/core';import { CommandType, IPermissionService, IUniverInstanceService } from '@univerjs/core';import { getSheetCommandTarget, WorkbookEditablePermission, WorksheetEditPermission } from '@univerjs/sheets';+import type { IAccessor, ICommand } from '@univerjs/core';export interface ISetEditableCommandParams {value: 'sheet' | 'univer';diff --git a/packages/debugger/src/commands/operations/sidebar.operation.ts b/packages-experimental/debugger/src/commands/operations/sidebar.operation.tssimilarity index 100%rename from packages/debugger/src/commands/operations/sidebar.operation.tsrename to packages-experimental/debugger/src/commands/operations/sidebar.operation.tsindex e835c2c6cb..7634d51d6c 100644--- a/packages/debugger/src/commands/operations/sidebar.operation.ts+++ b/packages-experimental/debugger/src/commands/operations/sidebar.operation.ts@@ -14,9 +14,9 @@* limitations under the License.*/-import type { IAccessor, ICommand, Workbook } from '@univerjs/core';import { CommandType, IUniverInstanceService, UniverInstanceType } from '@univerjs/core';import { IEditorService, ISidebarService } from '@univerjs/ui';+import type { IAccessor, ICommand, Workbook } from '@univerjs/core';import { TEST_EDITOR_CONTAINER_COMPONENT } from '../../views/test-editor/component-name';export interface IUIComponentCommandParams {diff --git a/packages/debugger/src/commands/operations/theme.operation.ts b/packages-experimental/debugger/src/commands/operations/theme.operation.tssimilarity index 100%rename from packages/debugger/src/commands/operations/theme.operation.tsrename to packages-experimental/debugger/src/commands/operations/theme.operation.tsindex 8e80116bff..339aae36cb 100644--- a/packages/debugger/src/commands/operations/theme.operation.ts+++ b/packages-experimental/debugger/src/commands/operations/theme.operation.ts@@ -14,8 +14,8 @@* limitations under the License.*/-import type { IAccessor, ICommand, IStyleSheet } from '@univerjs/core';import { CommandType, ThemeService } from '@univerjs/core';+import type { IAccessor, ICommand, IStyleSheet } from '@univerjs/core';export interface IThemeCommandParams {value?: IStyleSheet;diff --git a/packages/debugger/src/components/Image.tsx b/packages-experimental/debugger/src/components/Image.tsxsimilarity index 100%rename from packages/debugger/src/components/Image.tsxrename to packages-experimental/debugger/src/components/Image.tsxdiff --git a/packages/debugger/src/components/VueI18nIcon.vue b/packages-experimental/debugger/src/components/VueI18nIcon.vuesimilarity index 100%rename from packages/debugger/src/components/VueI18nIcon.vuerename to packages-experimental/debugger/src/components/VueI18nIcon.vuediff --git a/packages/debugger/src/controllers/config.schema.ts b/packages-experimental/debugger/src/controllers/config.schema.tssimilarity index 100%rename from packages/debugger/src/controllers/config.schema.tsrename to packages-experimental/debugger/src/controllers/config.schema.tsdiff --git a/packages/debugger/src/controllers/debugger.controller.ts b/packages-experimental/debugger/src/controllers/debugger.controller.tssimilarity index 100%rename from packages/debugger/src/controllers/debugger.controller.tsrename to packages-experimental/debugger/src/controllers/debugger.controller.tsindex 3b7233e115..9a68d37677 100644--- a/packages/debugger/src/controllers/debugger.controller.ts+++ b/packages-experimental/debugger/src/controllers/debugger.controller.ts@@ -17,6 +17,10 @@import { Disposable, ICommandService, Inject, Injector, LifecycleStages, OnLifecycle } from '@univerjs/core';import { ComponentManager, IMenuManagerService } from '@univerjs/ui';+import { CreateFloatDomCommand } from '../commands/commands/float-dom.command';+import { CreateEmptySheetCommand, DisposeCurrentUnitCommand, DisposeUniverCommand, LoadSheetSnapshotCommand } from '../commands/commands/unit.command';+import { ShowCellContentOperation } from '../commands/operations/cell.operation';+import { ChangeUserCommand } from '../commands/operations/change-user.operation';import { ConfirmOperation } from '../commands/operations/confirm.operation';import { DialogOperation } from '../commands/operations/dialog.operation';import { LocaleOperation } from '../commands/operations/locale.operation';@@ -24,21 +28,17 @@ import { MessageOperation } from '../commands/operations/message.operation';import { NotificationOperation } from '../commands/operations/notification.operation';import { SaveSnapshotOptions } from '../commands/operations/save-snapshot.operations';import { SetEditable } from '../commands/operations/set.editable.operation';+import { SidebarOperation } from '../commands/operations/sidebar.operation';-import { ThemeOperation } from '../commands/operations/theme.operation';-import { TestEditorContainer } from '../views/test-editor/TestTextEditor';-import { TEST_EDITOR_CONTAINER_COMPONENT } from '../views/test-editor/component-name';+import { ThemeOperation } from '../commands/operations/theme.operation';+import { ImageDemo } from '../components/Image';// @ts-ignoreimport VueI18nIcon from '../components/VueI18nIcon.vue';--import { CreateEmptySheetCommand, DisposeCurrentUnitCommand, DisposeUniverCommand, LoadSheetSnapshotCommand } from '../commands/commands/unit.command';-import { CreateFloatDomCommand } from '../commands/commands/float-dom.command';-import { ImageDemo } from '../components/Image';-import { ChangeUserCommand } from '../commands/operations/change-user.operation';-import { ShowCellContentOperation } from '../commands/operations/cell.operation';-import { RecordController } from './local-save/record.controller';+import { TEST_EDITOR_CONTAINER_COMPONENT } from '../views/test-editor/component-name';+import { TestEditorContainer } from '../views/test-editor/TestTextEditor';import { ExportController } from './local-save/export.controller';+import { RecordController } from './local-save/record.controller';import { menuSchema } from './menu.schema';@OnLifecycle(LifecycleStages.Ready, DebuggerController)diff --git a/packages/debugger/src/controllers/e2e/data/default-doc.ts b/packages-experimental/debugger/src/controllers/e2e/data/default-doc.tssimilarity index 100%rename from packages/debugger/src/controllers/e2e/data/default-doc.tsrename to packages-experimental/debugger/src/controllers/e2e/data/default-doc.tsindex 99eadc790a..8a08176996 100644--- a/packages/debugger/src/controllers/e2e/data/default-doc.ts+++ b/packages-experimental/debugger/src/controllers/e2e/data/default-doc.ts@@ -14,9 +14,9 @@* limitations under the License.*/-import type { IDocumentData } from '@univerjs/core';import { BooleanNumber, DocumentFlavor } from '@univerjs/core';import { ptToPixel } from '@univerjs/engine-render';+import type { IDocumentData } from '@univerjs/core';// eslint-disable-next-line max-lines-per-functionexport function getDefaultDocData(): IDocumentData {diff --git a/packages/debugger/src/controllers/e2e/data/default-sheet.ts b/packages-experimental/debugger/src/controllers/e2e/data/default-sheet.tssimilarity index 100%rename from packages/debugger/src/controllers/e2e/data/default-sheet.tsrename to packages-experimental/debugger/src/controllers/e2e/data/default-sheet.tsindex 3b62c07f71..ce9e5692b1 100644--- a/packages/debugger/src/controllers/e2e/data/default-sheet.ts+++ b/packages-experimental/debugger/src/controllers/e2e/data/default-sheet.ts@@ -14,8 +14,8 @@* limitations under the License.*/-import type { IWorkbookData } from '@univerjs/core';import { LocaleType } from '@univerjs/core';+import type { IWorkbookData } from '@univerjs/core';export function getDefaultWorkbookData(): IWorkbookData {const DEFAULT_WORKBOOK_DATA_DEMO = {diff --git a/packages/debugger/src/controllers/e2e/e2e-memory.controller.ts b/packages-experimental/debugger/src/controllers/e2e/e2e-memory.controller.tssimilarity index 100%rename from packages/debugger/src/controllers/e2e/e2e-memory.controller.tsrename to packages-experimental/debugger/src/controllers/e2e/e2e-memory.controller.tsindex c3e2396a81..38c88c2527 100644--- a/packages/debugger/src/controllers/e2e/e2e-memory.controller.ts+++ b/packages-experimental/debugger/src/controllers/e2e/e2e-memory.controller.ts@@ -16,8 +16,8 @@import { Disposable, ICommandService, IUniverInstanceService, LifecycleStages, OnLifecycle, UniverInstanceType } from '@univerjs/core';import { DisposeUniverCommand } from '../../commands/commands/unit.command';-import { getDefaultWorkbookData } from './data/default-sheet';import { getDefaultDocData } from './data/default-doc';+import { getDefaultWorkbookData } from './data/default-sheet';const AWAIT_LOADING_TIMEOUT = 5000;const AWAIT_DISPOSING_TIMEOUT = 5000;diff --git a/packages/debugger/src/controllers/local-save/export.controller.ts b/packages-experimental/debugger/src/controllers/local-save/export.controller.tssimilarity index 100%rename from packages/debugger/src/controllers/local-save/export.controller.tsrename to packages-experimental/debugger/src/controllers/local-save/export.controller.tsdiff --git a/packages/debugger/src/controllers/local-save/record.controller.ts b/packages-experimental/debugger/src/controllers/local-save/record.controller.tssimilarity index 98%rename from packages/debugger/src/controllers/local-save/record.controller.tsrename to packages-experimental/debugger/src/controllers/local-save/record.controller.tsindex 4d659faa13..e028f7afb9 100644--- a/packages/debugger/src/controllers/local-save/record.controller.ts+++ b/packages-experimental/debugger/src/controllers/local-save/record.controller.ts@@ -64,6 +64,7 @@ export class RecordController {]);} catch (err) {console.error(`${commandInfo.id} unable to serialize`);+ console.error(err);}});return () => {diff --git a/packages/debugger/src/controllers/local-save/util.ts b/packages-experimental/debugger/src/controllers/local-save/util.tssimilarity index 100%rename from packages/debugger/src/controllers/local-save/util.tsrename to packages-experimental/debugger/src/controllers/local-save/util.tsdiff --git a/packages/debugger/src/controllers/menu.schema.ts b/packages-experimental/debugger/src/controllers/menu.schema.tssimilarity index 100%rename from packages/debugger/src/controllers/menu.schema.tsrename to packages-experimental/debugger/src/controllers/menu.schema.tsindex cd087c4d35..d1f83e0fdd 100644--- a/packages/debugger/src/controllers/menu.schema.ts+++ b/packages-experimental/debugger/src/controllers/menu.schema.ts@@ -15,7 +15,19 @@*/import { type MenuSchemaType, RibbonOthersGroup } from '@univerjs/ui';+import { CreateFloatDomCommand } from '../commands/commands/float-dom.command';+import { CreateEmptySheetCommand, DisposeCurrentUnitCommand, DisposeUniverCommand, LoadSheetSnapshotCommand } from '../commands/commands/unit.command';+import { ShowCellContentOperation } from '../commands/operations/cell.operation';+import { ChangeUserCommand } from '../commands/operations/change-user.operation';+import { ConfirmOperation } from '../commands/operations/confirm.operation';+import { DialogOperation } from '../commands/operations/dialog.operation';import { LocaleOperation } from '../commands/operations/locale.operation';+import { MessageOperation } from '../commands/operations/message.operation';+import { NotificationOperation } from '../commands/operations/notification.operation';+import { SaveSnapshotOptions } from '../commands/operations/save-snapshot.operations';+import { SetEditable } from '../commands/operations/set.editable.operation';+import { SidebarOperation } from '../commands/operations/sidebar.operation';+import { ThemeOperation } from '../commands/operations/theme.operation';import {ChangeUserMenuItemFactory,ConfirmMenuItemFactory,@@ -38,18 +50,6 @@ import {UNIT_ITEM_MENU_ID,UnitMenuItemFactory,} from '../controllers/menu';-import { ThemeOperation } from '../commands/operations/theme.operation';-import { NotificationOperation } from '../commands/operations/notification.operation';-import { ConfirmOperation } from '../commands/operations/confirm.operation';-import { DialogOperation } from '../commands/operations/dialog.operation';-import { MessageOperation } from '../commands/operations/message.operation';-import { SaveSnapshotOptions } from '../commands/operations/save-snapshot.operations';-import { SetEditable } from '../commands/operations/set.editable.operation';-import { SidebarOperation } from '../commands/operations/sidebar.operation';-import { CreateEmptySheetCommand, DisposeCurrentUnitCommand, DisposeUniverCommand, LoadSheetSnapshotCommand } from '../commands/commands/unit.command';-import { CreateFloatDomCommand } from '../commands/commands/float-dom.command';-import { ChangeUserCommand } from '../commands/operations/change-user.operation';-import { ShowCellContentOperation } from '../commands/operations/cell.operation';export const menuSchema: MenuSchemaType = {[RibbonOthersGroup.OTHERS]: {diff --git a/packages/debugger/src/controllers/menu.ts b/packages-experimental/debugger/src/controllers/menu.tssimilarity index 100%rename from packages/debugger/src/controllers/menu.tsrename to packages-experimental/debugger/src/controllers/menu.tsindex 30e3a808b4..dadc9461d5 100644--- a/packages/debugger/src/controllers/menu.ts+++ b/packages-experimental/debugger/src/controllers/menu.ts@@ -16,10 +16,14 @@import { LocaleType } from '@univerjs/core';import { defaultTheme, greenTheme } from '@univerjs/design';-import type { IMenuButtonItem, IMenuSelectorItem } from '@univerjs/ui';import { MenuItemType } from '@univerjs/ui';import type { IAccessor } from '@univerjs/core';+import type { IMenuButtonItem, IMenuSelectorItem } from '@univerjs/ui';+import { CreateFloatDomCommand } from '../commands/commands/float-dom.command';+import { CreateEmptySheetCommand, DisposeCurrentUnitCommand, DisposeUniverCommand, LoadSheetSnapshotCommand } from '../commands/commands/unit.command';+import { ShowCellContentOperation } from '../commands/operations/cell.operation';+import { ChangeUserCommand, UnitRole } from '../commands/operations/change-user.operation';import { ConfirmOperation } from '../commands/operations/confirm.operation';import { DialogOperation } from '../commands/operations/dialog.operation';import { LocaleOperation } from '../commands/operations/locale.operation';@@ -29,10 +33,6 @@ import { SaveSnapshotOptions } from '../commands/operations/save-snapshot.operatimport { SetEditable } from '../commands/operations/set.editable.operation';import { SidebarOperation } from '../commands/operations/sidebar.operation';import { ThemeOperation } from '../commands/operations/theme.operation';-import { CreateEmptySheetCommand, DisposeCurrentUnitCommand, DisposeUniverCommand, LoadSheetSnapshotCommand } from '../commands/commands/unit.command';-import { CreateFloatDomCommand } from '../commands/commands/float-dom.command';-import { ChangeUserCommand, UnitRole } from '../commands/operations/change-user.operation';-import { ShowCellContentOperation } from '../commands/operations/cell.operation';export function LocaleMenuItemFactory(accessor: IAccessor): IMenuSelectorItem {return {diff --git a/packages/debugger/src/controllers/performance-monitor.controller.ts b/packages-experimental/debugger/src/controllers/performance-monitor.controller.tssimilarity index 100%rename from packages/debugger/src/controllers/performance-monitor.controller.tsrename to packages-experimental/debugger/src/controllers/performance-monitor.controller.tsindex d405654761..9818724bcf 100644--- a/packages/debugger/src/controllers/performance-monitor.controller.ts+++ b/packages-experimental/debugger/src/controllers/performance-monitor.controller.ts@@ -14,11 +14,11 @@* limitations under the License.*/-import type { Nullable } from '@univerjs/core';import { Inject, IUniverInstanceService, LifecycleService, LifecycleStages, OnLifecycle, RxDisposable } from '@univerjs/core';import { IRenderManagerService } from '@univerjs/engine-render';-import type { Subscription } from 'rxjs';import { distinctUntilChanged, filter, take, takeUntil } from 'rxjs';+import type { Nullable } from '@univerjs/core';+import type { Subscription } from 'rxjs';@OnLifecycle(LifecycleStages.Rendered, PerformanceMonitorController)export class PerformanceMonitorController extends RxDisposable {diff --git a/packages/debugger/src/debugger-plugin.ts b/packages-experimental/debugger/src/debugger-plugin.tssimilarity index 100%rename from packages/debugger/src/debugger-plugin.tsrename to packages-experimental/debugger/src/debugger-plugin.tsindex 68353f18cd..15ec28c5a5 100644--- a/packages/debugger/src/debugger-plugin.ts+++ b/packages-experimental/debugger/src/debugger-plugin.ts@@ -17,11 +17,11 @@import { IConfigService, Inject, Injector, Plugin } from '@univerjs/core';import type { Dependency } from '@univerjs/core';+import { defaultPluginConfig, PLUGIN_CONFIG_KEY } from './controllers/config.schema';import { DebuggerController } from './controllers/debugger.controller';import { E2EMemoryController } from './controllers/e2e/e2e-memory.controller';import { PerformanceMonitorController } from './controllers/performance-monitor.controller';import type { IUniverDebuggerConfig } from './controllers/config.schema';-import { defaultPluginConfig, PLUGIN_CONFIG_KEY } from './controllers/config.schema';export class UniverDebuggerPlugin extends Plugin {static override pluginName = 'UNIVER_DEBUGGER_PLUGIN';diff --git a/packages/debugger/src/index.ts b/packages-experimental/debugger/src/index.tssimilarity index 100%rename from packages/debugger/src/index.tsrename to packages-experimental/debugger/src/index.tsdiff --git a/packages-experimental/debugger/src/views/test-editor/TestTextEditor.tsx b/packages-experimental/debugger/src/views/test-editor/TestTextEditor.tsxnew file mode 100644index 0000000000..4d5b0eadec--- /dev/null+++ b/packages-experimental/debugger/src/views/test-editor/TestTextEditor.tsx@@ -0,0 +1,117 @@+/**+ * Copyright 2023-present DreamNum Inc.+ *+ * 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 { createInternalEditorID, IUniverInstanceService, UniverInstanceType, useDependency } from '@univerjs/core';++import { Input } from '@univerjs/design';+import { RangeSelector, TextEditor } from '@univerjs/ui';+import React, { useState } from 'react';+import type { Workbook } from '@univerjs/core';++const editorStyle: React.CSSProperties = {+ width: '100%',+};++/**+ * Floating editor's container.+ */+export const TestEditorContainer = () => {+ const univerInstanceService = useDependency(IUniverInstanceService);+ const workbook = univerInstanceService.getCurrentUnitForType<Workbook>(UniverInstanceType.UNIVER_SHEET)!;+ if (workbook == null) {+ return;+ }++ const unitId = workbook.getUnitId();++ const sheetId = workbook.getActiveSheet()?.getSheetId();++ const [readonly, setReadonly] = useState(false);++ return (+ <div>+ <TextEditor+ id={createInternalEditorID('test-editor-1')}+ placeholder="please input value"+ openForSheetUnitId={unitId}+ openForSheetSubUnitId={sheetId}+ isReadonly={readonly}+ style={editorStyle}+ canvasStyle={{ fontSize: 10 }}+ value="I found one cent on the roadside."+ />+ <br />+ <TextEditor+ id={createInternalEditorID('test-editor-2')}+ placeholder="please input value"+ openForSheetUnitId={unitId}+ openForSheetSubUnitId={sheetId}+ isReadonly={readonly}+ onlyInputFormula+ style={editorStyle}+ canvasStyle={{ fontSize: 10 }}+ />+ <br />+ <TextEditor+ id={createInternalEditorID('test-editor-3')}+ placeholder="please input value"+ openForSheetUnitId={unitId}+ openForSheetSubUnitId={sheetId}+ isReadonly={readonly}+ onlyInputRange+ style={editorStyle}+ canvasStyle={{ fontSize: 10 }}+ />+ <br />+ <TextEditor+ id={createInternalEditorID('test-editor-4')}+ placeholder="please input value"+ openForSheetUnitId={unitId}+ openForSheetSubUnitId={sheetId}+ isReadonly={readonly}+ isSingle={false}+ onlyInputContent+ style={{ ...editorStyle, height: '140px' }}+ canvasStyle={{ fontSize: 14 }}+ />+ <br />+ <RangeSelector+ placeholder="please input value"+ id={createInternalEditorID('test-rangeSelector-1')}+ width={280}+ openForSheetUnitId={unitId}+ isReadonly={readonly}+ openForSheetSubUnitId={sheetId}+ />+ <br />+ <RangeSelector+ placeholder="please input value"+ value="I am a wolf man"+ id={createInternalEditorID('test-rangeSelector-2')}+ isSingleChoice+ isReadonly={readonly}+ openForSheetUnitId={unitId}+ openForSheetSubUnitId={sheetId}+ />+ <br />+ <Input placeholder="please input value" allowClear />+ <br />+ <button type="button" onClick={() => setReadonly(!readonly)}>+ {readonly === true ? 'enable' : 'disable'}+ </button>+ </div>+ );+};diff --git a/packages/debugger/src/views/test-editor/component-name.ts b/packages-experimental/debugger/src/views/test-editor/component-name.tssimilarity index 100%rename from packages/debugger/src/views/test-editor/component-name.tsrename to packages-experimental/debugger/src/views/test-editor/component-name.tsdiff --git a/packages/debugger/src/vite-env.d.ts b/packages-experimental/debugger/src/vite-env.d.tssimilarity index 100%rename from packages/debugger/src/vite-env.d.tsrename to packages-experimental/debugger/src/vite-env.d.tsdiff --git a/packages/debugger/tsconfig.json b/packages-experimental/debugger/tsconfig.jsonsimilarity index 100%rename from packages/debugger/tsconfig.jsonrename to packages-experimental/debugger/tsconfig.jsondiff --git a/packages/debugger/tsconfig.node.json b/packages-experimental/debugger/tsconfig.node.jsonsimilarity index 100%rename from packages/debugger/tsconfig.node.jsonrename to packages-experimental/debugger/tsconfig.node.jsondiff --git a/packages/debugger/vite.config.ts b/packages-experimental/debugger/vite.config.tssimilarity index 100%rename from packages/debugger/vite.config.tsrename to packages-experimental/debugger/vite.config.tsdiff --git a/packages/debugger/src/views/test-editor/TestTextEditor.tsx b/packages/debugger/src/views/test-editor/TestTextEditor.tsxdeleted file mode 100644index 3d52aab369..0000000000--- a/packages/debugger/src/views/test-editor/TestTextEditor.tsx+++ /dev/null@@ -1,64 +0,0 @@-/**- * Copyright 2023-present DreamNum Inc.- *- * 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 React, { useState } from 'react';--import { RangeSelector, TextEditor } from '@univerjs/ui';-import type { Workbook } from '@univerjs/core';-import { createInternalEditorID, IUniverInstanceService, UniverInstanceType, useDependency } from '@univerjs/core';-import { Input } from '@univerjs/design';--const editorStyle: React.CSSProperties = {- width: '100%',-};--/**- * Floating editor's container.- * @returns- */-export const TestEditorContainer = () => {- const univerInstanceService = useDependency(IUniverInstanceService);- const workbook = univerInstanceService.getCurrentUnitForType<Workbook>(UniverInstanceType.UNIVER_SHEET)!;- if (workbook == null) {- return;- }-- const unitId = workbook.getUnitId();-- const sheetId = workbook.getActiveSheet()?.getSheetId();-- const [readonly, setReadonly] = useState(false);-- return (- <div>- <TextEditor id={createInternalEditorID('test-editor-1')} placeholder="please input value" openForSheetUnitId={unitId} openForSheetSubUnitId={sheetId} isReadonly={readonly} style={editorStyle} canvasStyle={{ fontSize: 10 }} value="I found one cent on the roadside." />- <br></br>- <TextEditor id={createInternalEditorID('test-editor-2')} placeholder="please input value" openForSheetUnitId={unitId} openForSheetSubUnitId={sheetId} isReadonly={readonly} onlyInputFormula={true} style={editorStyle} canvasStyle={{ fontSize: 10 }} />- <br></br>- <TextEditor id={createInternalEditorID('test-editor-3')} placeholder="please input value" openForSheetUnitId={unitId} openForSheetSubUnitId={sheetId} isReadonly={readonly} onlyInputRange={true} style={editorStyle} canvasStyle={{ fontSize: 10 }} />- <br></br>- <TextEditor id={createInternalEditorID('test-editor-4')} placeholder="please input value" openForSheetUnitId={unitId} openForSheetSubUnitId={sheetId} isReadonly={readonly} isSingle={false} onlyInputContent={true} style={{ ...editorStyle, height: '140px' }} canvasStyle={{ fontSize: 14 }} />- <br></br>- <RangeSelector placeholder="please input value" id={createInternalEditorID('test-rangeSelector-1')} width={280} openForSheetUnitId={unitId} isReadonly={readonly} openForSheetSubUnitId={sheetId} />- <br></br>- <RangeSelector placeholder="please input value" value="I am a wolf man" id={createInternalEditorID('test-rangeSelector-2')} isSingleChoice={true} isReadonly={readonly} openForSheetUnitId={unitId} openForSheetSubUnitId={sheetId} />- <br></br>- <Input placeholder="please input value" allowClear />- <br></br>- <button onClick={() => setReadonly(!readonly)}>{readonly === true ? 'enable' : 'disable'}</button>- </div>- );-};diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 37d2a19ec3..2e559c6ab4 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -203,7 +203,7 @@ importers:version: link:../packages/data-validation'@univerjs/debugger':specifier: workspace:*- version: link:../packages/debugger+ version: link:../packages-experimental/debugger'@univerjs/design':specifier: workspace:*version: link:../packages/design@@ -401,6 +401,56 @@ importers:specifier: ^5.6.2version: 5.6.2+ packages-experimental/debugger:+ dependencies:+ '@univerjs/core':+ specifier: workspace:*+ version: link:../../packages/core+ '@univerjs/design':+ specifier: workspace:*+ version: link:../../packages/design+ '@univerjs/engine-render':+ specifier: workspace:*+ version: link:../../packages/engine-render+ '@univerjs/facade':+ specifier: workspace:*+ version: link:../../packages/facade+ '@univerjs/sheets':+ specifier: workspace:*+ version: link:../../packages/sheets+ '@univerjs/sheets-drawing-ui':+ specifier: workspace:*+ version: link:../../packages/sheets-drawing-ui+ '@univerjs/ui':+ specifier: workspace:*+ version: link:../../packages/ui+ react:+ specifier: ^16.9.0 || ^17.0.0 || ^18.0.0+ version: 18.3.1+ optionalDependencies:+ vue:+ specifier: '>=3.0.0'+ version: 3.4.38([email protected])+ devDependencies:+ '@univerjs-infra/shared':+ specifier: workspace:*+ version: link:../../common/shared+ '@vitejs/plugin-vue':+ specifier: ^5.1.3+ version: 5.1.3([email protected](@types/[email protected])([email protected])([email protected])([email protected]))([email protected]([email protected]))+ rxjs:+ specifier: ^7.8.1+ version: 7.8.1+ typescript:+ specifier: ^5.6.2+ version: 5.6.2+ vite:+ specifier: ^5.4.3+ vitest:+ specifier: ^2.0.5+ version: 2.0.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+packages-experimental/uni-docs-ui:dependencies:'@univerjs/core':@@ -805,56 +855,6 @@ importers:specifier: ^2.0.5version: 2.0.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])- packages/debugger:- dependencies:- '@univerjs/core':- specifier: workspace:*- version: link:../core- '@univerjs/design':- specifier: workspace:*- version: link:../design- '@univerjs/engine-render':- specifier: workspace:*- version: link:../engine-render- '@univerjs/facade':- specifier: workspace:*- version: link:../facade- '@univerjs/sheets':- specifier: workspace:*- version: link:../sheets- '@univerjs/sheets-drawing-ui':- specifier: workspace:*- version: link:../sheets-drawing-ui- '@univerjs/ui':- specifier: workspace:*- version: link:../ui- react:- specifier: ^16.9.0 || ^17.0.0 || ^18.0.0- version: 18.3.1- optionalDependencies:- vue:- specifier: '>=3.0.0'- version: 3.4.38([email protected])- devDependencies:- '@univerjs-infra/shared':- specifier: workspace:*- version: link:../../common/shared- '@vitejs/plugin-vue':- specifier: ^5.1.3- version: 5.1.3([email protected](@types/[email protected])([email protected])([email protected])([email protected]))([email protected]([email protected]))- rxjs:- specifier: ^7.8.1- version: 7.8.1- typescript:- specifier: ^5.6.2- version: 5.6.2- vite:- specifier: ^5.4.3- vitest:- specifier: ^2.0.5- version: 2.0.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])-packages/design:dependencies:'@rc-component/color-picker':