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(plugin): move clipboard extension manager to base-component, merge clipboard-office to clipboard all-in-one plugin
Dushusir1fcea70f2f4e
diff --git a/.github/contributing-zh.md b/.github/contributing-zh.mdindex ee2b8d5018..a58958e779 100644--- a/.github/contributing-zh.md+++ b/.github/contributing-zh.md@@ -277,9 +277,11 @@ pnpm install核心能力的扩展,依靠 Plugin、Registry 和 Register 来提供1. Plugin:大的功能块,使用插件扩展核心能力,核心提供了 install 安装插件-2. Registry:插件内部小的功能块,使用核心提供的一个 Registry 静态注册方法,方便在项目初始化的时候快速搜集内部模块的扩展实例+2. Registry:插件内部小的功能块,使用核心提供的一个 Registry 静态注册方法,方便在项目初始化的时候快速搜集内部模块的扩展实例。它是一种设计模式3. Register:Register 将上一步 Registry 注册的方法,再统一动态注册管理,并且提供直接将内部模块动态注册上去的方法,以便开发者在外部进行动态扩增加某一个模块+通常情况下,一个插件内部的小模块,就是使用静态 load 的方式快速搜集模块,再动态 add 到核心的注册管理器上。如果模块比较简单,也可以直接将插件内部的模块直接 add 到注册管理器。+## 插件开发实践### 新建插件@@ -1238,7 +1240,6 @@ univerSheetUp.installPlugin(new UniverComponentSheet());univerSheetUp.installPlugin(new SheetPlugin({container: 'universheet-demo-up',- layout: 'auto',}));// 加载筛选插件@@ -1278,7 +1279,6 @@ univerSheetUp.installPlugin(new UniverComponentSheet());univerSheetUp.installPlugin(new SheetPlugin({container: 'universheet-demo-up',- layout: 'auto',}));@@ -1330,7 +1330,6 @@ const workbookConfig = {// 可选的spreadsheetConfig插件配置const spreadsheetConfig = {container: 'universheet-demo-up',- layout: 'auto',};// 统一配置入口diff --git a/cli/src/templates/base/src/main.tsx b/cli/src/templates/base/src/main.tsxindex 5ca32e1af6..51aca7c6db 100644--- a/cli/src/templates/base/src/main.tsx+++ b/cli/src/templates/base/src/main.tsx@@ -9,7 +9,6 @@ import { <%= projectUpperValue %>Plugin } from './<%= projectUpperValue %>Pluginconst uiDefaultConfigUp = {container: 'universheet',- layout: 'auto',};const univerSheet = UniverSheet.newInstance(DEFAULT_WORKBOOK_DATA);diff --git a/cli/src/templates/common-plugin/src/main.tsx b/cli/src/templates/common-plugin/src/main.tsxindex 17a9b29d35..5601488de3 100644--- a/cli/src/templates/common-plugin/src/main.tsx+++ b/cli/src/templates/common-plugin/src/main.tsx@@ -11,7 +11,6 @@ import { <%= projectUpperValue %>Plugin } from './<%= projectUpperValue %>Plugin// sheetconst sheetPluginConfig = {container: 'universheet',- layout: 'auto',};const univerSheet = UniverSheet.newInstance(DEFAULT_WORKBOOK_DATA);@@ -26,7 +25,6 @@ univerSheet.installPlugin(new <%= projectUpperValue %>Plugin());const docPluginConfig = {container: 'univerdoc',- layout: 'auto',};const univerDoc = UniverDoc.newInstance();@@ -41,7 +39,6 @@ univerDoc.installPlugin(new <%= projectUpperValue %>Plugin());const slidePluginConfig = {container: 'universlide',- layout: 'auto'};const univerSlide = UniverSlide.newInstance();diff --git a/cli/src/templates/docs-plugin/src/main.tsx b/cli/src/templates/docs-plugin/src/main.tsxindex 376b752ed7..64f589ae07 100644--- a/cli/src/templates/docs-plugin/src/main.tsx+++ b/cli/src/templates/docs-plugin/src/main.tsx@@ -8,7 +8,6 @@ import { <%= projectUpperValue %>Plugin } from './<%= projectUpperValue %>Pluginconst uiDefaultConfigUp = {container: 'univerdoc',- layout: 'auto',};const univerDoc = UniverDoc.newInstance();diff --git a/cli/src/templates/sheets-plugin/src/main.tsx b/cli/src/templates/sheets-plugin/src/main.tsxindex 5ca32e1af6..51aca7c6db 100644--- a/cli/src/templates/sheets-plugin/src/main.tsx+++ b/cli/src/templates/sheets-plugin/src/main.tsx@@ -9,7 +9,6 @@ import { <%= projectUpperValue %>Plugin } from './<%= projectUpperValue %>Pluginconst uiDefaultConfigUp = {container: 'universheet',- layout: 'auto',};const univerSheet = UniverSheet.newInstance(DEFAULT_WORKBOOK_DATA);diff --git a/cli/src/templates/slides-plugin/src/main.tsx b/cli/src/templates/slides-plugin/src/main.tsxindex a2fbfd77c8..747bd993c4 100644--- a/cli/src/templates/slides-plugin/src/main.tsx+++ b/cli/src/templates/slides-plugin/src/main.tsx@@ -7,7 +7,7 @@ import { <%= projectUpperValue %>Plugin } from './<%= projectUpperValue %>Pluginconst uiDefaultConfigUp = {container: 'universlide',- layout: 'auto',+};const univerSlide = UniverSlide.newInstance();diff --git a/examples/univer-preact-ts/package.json b/examples/univer-preact-ts/package.jsonindex aa7d432cac..b345e7e577 100644--- a/examples/univer-preact-ts/package.json+++ b/examples/univer-preact-ts/package.json@@ -49,10 +49,8 @@"@univer/base-sheets": "workspace:^0.0.1","@univer/base-slides": "workspace:^0.0.1","@univer/common-plugin-data": "workspace:^0.0.1",- "@univer/common-plugin-register": "workspace:^0.0.1","@univer/core": "workspace:^0.0.1","@univer/sheets-plugin-clipboard": "workspace:^0.0.1",- "@univer/sheets-plugin-clipboard-office": "workspace:^0.0.1","@univer/sheets-plugin-formula": "workspace:^0.0.1","@univer/sheets-plugin-numfmt": "workspace:^0.0.1","@univer/style-universheet": "workspace:^0.0.1",diff --git a/examples/univer-preact-ts/src/index.ts b/examples/univer-preact-ts/src/index.tsindex 24d52e0094..cd9ca71e00 100644--- a/examples/univer-preact-ts/src/index.ts+++ b/examples/univer-preact-ts/src/index.ts@@ -1,5 +1,5 @@import { IDocumentData, ISlideData, IWorkbookConfig, UniverDoc, UniverSheet, UniverSlide } from '@univer/core';-import * as UniverCore from '@univer/core'+import * as UniverCore from '@univer/core';import { RenderEngine } from '@univer/base-render';import { UniverComponentSheet } from '@univer/style-universheet';import { ISheetPluginConfig, SheetPlugin } from '@univer/base-sheets';@@ -8,14 +8,12 @@ import { ISlidePluginConfig, SlidePlugin } from '@univer/base-slides';import { DEFAULT_WORKBOOK_DATA } from '@univer/common-plugin-data';import { DEFAULT_FORMULA_DATA, FormulaPlugin, IFormulaConfig } from '@univer/sheets-plugin-formula';import { INumfmtPluginConfig, NumfmtPlugin } from '@univer/sheets-plugin-numfmt';-import { RegisterPlugin } from '@univer/common-plugin-register';import { ClipboardPlugin } from '@univer/sheets-plugin-clipboard';-import { ClipboardOfficePlugin } from '@univer/sheets-plugin-clipboard-office';interface ISheetPropsCustom {coreConfig?: Partial<IWorkbookConfig>;baseSheetsConfig?: ISheetPluginConfig;- numfmtConfig?:INumfmtPluginConfig;+ numfmtConfig?: INumfmtPluginConfig;formulaConfig?: IFormulaConfig;}@@ -33,9 +31,7 @@ class UniverSheetCustom {universheet.installPlugin(new NumfmtPlugin(config.numfmtConfig));FormulaPlugin.create(config.formulaConfig).installTo(universheet);- universheet.installPlugin(new RegisterPlugin());universheet.installPlugin(new ClipboardPlugin());- universheet.installPlugin(new ClipboardOfficePlugin());return universheet;}@@ -107,4 +103,4 @@ const univerSlideCustom = function (config?: ISlidePropsCustom) {return new UniverSlideCustom().init(config);};-export {UniverCore, univerSheetCustom,univerDocCustom,univerSlideCustom, DEFAULT_WORKBOOK_DATA, DEFAULT_FORMULA_DATA };+export { UniverCore, univerSheetCustom, univerDocCustom, univerSlideCustom, DEFAULT_WORKBOOK_DATA, DEFAULT_FORMULA_DATA };diff --git a/examples/univer-vanilla-ts/package.json b/examples/univer-vanilla-ts/package.jsonindex 11a8535621..8f84e60ad9 100644--- a/examples/univer-vanilla-ts/package.json+++ b/examples/univer-vanilla-ts/package.json@@ -44,15 +44,14 @@"vite-plugin-external": "1.2.3"},"dependencies": {+ "@univer/base-component": "workspace:^0.0.1","@univer/base-docs": "workspace:^0.0.1","@univer/base-render": "workspace:^0.0.1","@univer/base-sheets": "workspace:^0.0.1","@univer/base-slides": "workspace:^0.0.1","@univer/common-plugin-data": "workspace:^0.0.1",- "@univer/common-plugin-register": "workspace:^0.0.1","@univer/core": "workspace:^0.0.1","@univer/sheets-plugin-clipboard": "workspace:^0.0.1",- "@univer/sheets-plugin-clipboard-office": "workspace:^0.0.1","@univer/sheets-plugin-formula": "workspace:^0.0.1","@univer/sheets-plugin-numfmt": "workspace:^0.0.1","@univer/style-universheet": "workspace:^0.0.1",diff --git a/examples/univer-vanilla-ts/src/main.tsx b/examples/univer-vanilla-ts/src/main.tsxindex 83f5626bad..fb897806d6 100644--- a/examples/univer-vanilla-ts/src/main.tsx+++ b/examples/univer-vanilla-ts/src/main.tsx@@ -11,9 +11,8 @@ import {DEFAULT_WORKBOOK_DATA,DEFAULT_WORKBOOK_DATA_DOWN,} from '@univer/common-plugin-data';-import { RegisterPlugin } from '@univer/common-plugin-register';import { ClipboardPlugin } from '@univer/sheets-plugin-clipboard';-import { ClipboardOfficePlugin } from '@univer/sheets-plugin-clipboard-office';+import { BaseComponentPlugin } from '@univer/base-component';const uiDefaultConfigUp = {container: 'universheet-demo-up',@@ -50,17 +49,14 @@ const uiDefaultConfigUp = {const univerSheetUp = UniverSheet.newInstance(DEFAULT_WORKBOOK_DATA);univerSheetUp.installPlugin(new RenderEngine());+univerSheetUp.installPlugin(new UniverComponentSheet());univerSheetUp.installPlugin(new SheetPlugin(uiDefaultConfigUp));-+univerSheetUp.installPlugin(new BaseComponentPlugin());univerSheetUp.installPlugin(new NumfmtPlugin());FormulaPlugin.create(DEFAULT_FORMULA_DATA).installTo(univerSheetUp);-univerSheetUp.installPlugin(new RegisterPlugin());univerSheetUp.installPlugin(new ClipboardPlugin());-univerSheetUp.installPlugin(new ClipboardOfficePlugin());--const univerSheetDown = UniverSheet.newInstance();univerSheetDown.installPlugin(new RenderEngine());@@ -70,6 +66,4 @@ univerSheetDown.installPlugin(new SheetPlugin());univerSheetDown.installPlugin(new NumfmtPlugin());FormulaPlugin.create().installTo(univerSheetDown);-univerSheetDown.installPlugin(new RegisterPlugin());univerSheetDown.installPlugin(new ClipboardPlugin());-univerSheetDown.installPlugin(new ClipboardOfficePlugin());diff --git a/packages/base-component/src/BaseComponentPlugin.ts b/packages/base-component/src/BaseComponentPlugin.tsnew file mode 100644index 0000000000..ef79757289--- /dev/null+++ b/packages/base-component/src/BaseComponentPlugin.ts@@ -0,0 +1,43 @@+import { Plugin, UniverSheet, UniverDoc, UniverSlide, PLUGIN_NAMES } from '@univer/core';++import { RegisterManager } from './Common/RegisterManager';++export class BaseComponentPlugin extends Plugin {+ private _registerManager: RegisterManager;++ constructor() {+ super(PLUGIN_NAMES.BASE_COMPONENT);+ }++ static create() {+ return new BaseComponentPlugin();+ }++ installTo(univerInstance: UniverSheet | UniverDoc | UniverSlide) {+ univerInstance.installPlugin(this);+ }++ initialize(): void {+ const context = this.getContext();++ this.setRegisterManager();+ }++ setRegisterManager() {+ this._registerManager = new RegisterManager(this);+ }++ /**+ * usage this._clipboardExtensionManager.handle(data);+ * @returns+ */+ getRegisterManager(): RegisterManager {+ return this._registerManager;+ }++ onMounted(): void {+ this.initialize();+ }++ onDestroy(): void {}+}diff --git a/packages/common-plugin-register/src/Basic/Interfaces/IClipboardData.ts b/packages/base-component/src/Basics/Interfaces/IClipboardData.tssimilarity index 100%rename from packages/common-plugin-register/src/Basic/Interfaces/IClipboardData.tsrename to packages/base-component/src/Basics/Interfaces/IClipboardData.tsdiff --git a/packages/common-plugin-register/src/Basic/Interfaces/PasteType.ts b/packages/base-component/src/Basics/Interfaces/PasteType.tssimilarity index 100%rename from packages/common-plugin-register/src/Basic/Interfaces/PasteType.tsrename to packages/base-component/src/Basics/Interfaces/PasteType.tsdiff --git a/packages/common-plugin-register/src/Basic/Interfaces/index.ts b/packages/base-component/src/Basics/Interfaces/index.tssimilarity index 100%rename from packages/common-plugin-register/src/Basic/Interfaces/index.tsrename to packages/base-component/src/Basics/Interfaces/index.tsdiff --git a/packages/common-plugin-register/src/Basic/Register/Clipboard/ClipboardExtensionFactory.ts b/packages/base-component/src/Basics/Register/Clipboard/ClipboardExtensionFactory.tssimilarity index 86%rename from packages/common-plugin-register/src/Basic/Register/Clipboard/ClipboardExtensionFactory.tsrename to packages/base-component/src/Basics/Register/Clipboard/ClipboardExtensionFactory.tsindex aa28726f44..5aaee4c8e8 100644--- a/packages/common-plugin-register/src/Basic/Register/Clipboard/ClipboardExtensionFactory.ts+++ b/packages/base-component/src/Basics/Register/Clipboard/ClipboardExtensionFactory.ts@@ -1,5 +1,5 @@-import { IClipboardData } from './../../Interfaces/IClipboardData';-import { IKeyValue, Plugin } from '@univer/core';+import { Plugin } from '@univer/core';+import { IClipboardData } from '../../Interfaces/IClipboardData';/*** 转化table html/json为jsondiff --git a/packages/common-plugin-register/src/Basic/Register/Clipboard/ClipboardExtensionManager.ts b/packages/base-component/src/Basics/Register/Clipboard/ClipboardExtensionManager.tssimilarity index 92%rename from packages/common-plugin-register/src/Basic/Register/Clipboard/ClipboardExtensionManager.tsrename to packages/base-component/src/Basics/Register/Clipboard/ClipboardExtensionManager.tsindex 11d2c1502b..90b856909a 100644--- a/packages/common-plugin-register/src/Basic/Register/Clipboard/ClipboardExtensionManager.ts+++ b/packages/base-component/src/Basics/Register/Clipboard/ClipboardExtensionManager.ts@@ -1,11 +1,11 @@-import { IClipboardData } from '../../Interfaces/IClipboardData';+import { IClipboardData } from '../../Interfaces';import { PasteType } from '../../Interfaces/PasteType';import { BaseClipboardExtension, BaseClipboardExtensionFactory } from './ClipboardExtensionFactory';import { ClipboardExtensionRegister } from './ClipboardExtensionRegister';import { Clipboard } from '../../Shared/Clipboard';export class ClipboardExtensionManager {- private _clipboardExtensionFactoryList: Array<BaseClipboardExtensionFactory>;+ private _clipboardExtensionFactoryList: BaseClipboardExtensionFactory[];// mounted on the instanceprivate _register: ClipboardExtensionRegister;diff --git a/packages/common-plugin-register/src/Basic/Register/Clipboard/ClipboardExtensionRegister.ts b/packages/base-component/src/Basics/Register/Clipboard/ClipboardExtensionRegister.tssimilarity index 64%rename from packages/common-plugin-register/src/Basic/Register/Clipboard/ClipboardExtensionRegister.tsrename to packages/base-component/src/Basics/Register/Clipboard/ClipboardExtensionRegister.tsindex 4e0c100977..facafb572a 100644--- a/packages/common-plugin-register/src/Basic/Register/Clipboard/ClipboardExtensionRegister.ts+++ b/packages/base-component/src/Basics/Register/Clipboard/ClipboardExtensionRegister.ts@@ -1,15 +1,14 @@import { sortRules } from '@univer/core';-import { IClipboardData } from '../../Interfaces/IClipboardData';import { BaseClipboardExtensionFactory } from './ClipboardExtensionFactory';export class ClipboardExtensionRegister {- private _clipboardExtensionFactoryList: Array<BaseClipboardExtensionFactory> = [];+ private _clipboardExtensionFactoryList: BaseClipboardExtensionFactory[] = [];- get clipboardExtensionFactoryList(): Array<BaseClipboardExtensionFactory> {+ get clipboardExtensionFactoryList(): BaseClipboardExtensionFactory[] {return this._clipboardExtensionFactoryList;}- add(...extensionFactoryList: Array<BaseClipboardExtensionFactory>) {+ add(...extensionFactoryList: BaseClipboardExtensionFactory[]) {this._clipboardExtensionFactoryList.push(...extensionFactoryList);this._clipboardExtensionFactoryList.sort(sortRules);}diff --git a/packages/common-plugin-register/src/Basic/Register/Clipboard/index.ts b/packages/base-component/src/Basics/Register/Clipboard/index.tssimilarity index 100%rename from packages/common-plugin-register/src/Basic/Register/Clipboard/index.tsrename to packages/base-component/src/Basics/Register/Clipboard/index.tsdiff --git a/packages/common-plugin-register/src/Basic/Register/index.ts b/packages/base-component/src/Basics/Register/index.tssimilarity index 100%rename from packages/common-plugin-register/src/Basic/Register/index.tsrename to packages/base-component/src/Basics/Register/index.tsdiff --git a/packages/common-plugin-register/src/Basic/Shared/Clipboard.ts b/packages/base-component/src/Basics/Shared/Clipboard.tssimilarity index 100%rename from packages/common-plugin-register/src/Basic/Shared/Clipboard.tsrename to packages/base-component/src/Basics/Shared/Clipboard.tsdiff --git a/packages/common-plugin-register/src/Basic/Shared/index.ts b/packages/base-component/src/Basics/Shared/index.tssimilarity index 100%rename from packages/common-plugin-register/src/Basic/Shared/index.tsrename to packages/base-component/src/Basics/Shared/index.tsdiff --git a/packages/common-plugin-register/src/Basic/index.ts b/packages/base-component/src/Basics/index.tssimilarity index 64%rename from packages/common-plugin-register/src/Basic/index.tsrename to packages/base-component/src/Basics/index.tsindex e5d7abda99..576e69c7f3 100644--- a/packages/common-plugin-register/src/Basic/index.ts+++ b/packages/base-component/src/Basics/index.ts@@ -1,8 +1,6 @@-// @index(['./*.ts','./**/index.ts'], f => `export * from '${f.path}'`)-export * from './Const/index';-export * from './Enum/index';-export * from './Interfaces/index';-export * from './Register/Clipboard/index';-export * from './Register/index';-export * from './Shared/index';-// @endindex+// @index(['./*.ts','./**/index.ts'], f => `export * from '${f.path}'`)++export * from './Interfaces/index';+export * from './Register/index';+export * from './Shared/index';+// @endindexdiff --git a/packages/base-component/src/Common/RegisterManager.ts b/packages/base-component/src/Common/RegisterManager.tsnew file mode 100644index 0000000000..4e7028d079--- /dev/null+++ b/packages/base-component/src/Common/RegisterManager.ts@@ -0,0 +1,42 @@+import { Plugin } from '@univer/core';+import { IClipboardData } from '../Basics/Interfaces';+import { ClipboardExtensionManager } from '../Basics/Register';++export class RegisterManager {+ private _clipboardExtensionManager: ClipboardExtensionManager;++ constructor(private _plugin: Plugin) {+ this.initialize();+ }++ initialize(): void {+ this.setExtensionManager();+ }++ setExtensionManager() {+ const onKeyPasteObservable = this._plugin.getContext().getObserverManager().getObserver<ClipboardEvent>('onKeyPasteObservable', 'core');++ if (onKeyPasteObservable && !onKeyPasteObservable.hasObservers()) {+ onKeyPasteObservable.add((evt: ClipboardEvent) => {+ this._clipboardExtensionManager.pasteResolver(evt).then((data: IClipboardData) => {+ this._clipboardExtensionManager.handle(data);+ });+ });+ }+ this._clipboardExtensionManager = new ClipboardExtensionManager();+ }++ /**+ * usage this._clipboardExtensionManager.handle(data);+ * @returns+ */+ getClipboardExtensionManager(): ClipboardExtensionManager {+ return this._clipboardExtensionManager;+ }++ onMounted(): void {+ this.initialize();+ }++ onDestroy(): void {}+}diff --git a/packages/base-component/src/Types/index.d.ts b/packages/base-component/src/Types/index.d.tsindex 2b26e989ef..ae1f7267fb 100644--- a/packages/base-component/src/Types/index.d.ts+++ b/packages/base-component/src/Types/index.d.ts@@ -1,2 +1,2 @@export * from '../index';-declare module '@univer/base-component' { }+declare module '@univer/base-component' {}diff --git a/packages/base-component/src/index.ts b/packages/base-component/src/index.tsindex 69faf04f7e..fb8b6e7fdd 100644--- a/packages/base-component/src/index.ts+++ b/packages/base-component/src/index.ts@@ -1,4 +1,5 @@export * from './BaseComponent';+export * from './Basics';export * from './Common';export * from './Components';export * from './Enum';@@ -6,3 +7,4 @@ export * from './Framework';export * from './IData';export * from './Utils';export * from './Helpers';+export * from './BaseComponentPlugin';diff --git a/packages/base-docs/src/DocPlugin.tsx b/packages/base-docs/src/DocPlugin.tsxindex 7c4679005b..05a57f0aeb 100644--- a/packages/base-docs/src/DocPlugin.tsx+++ b/packages/base-docs/src/DocPlugin.tsx@@ -5,7 +5,7 @@ import { Component, getRefElement, isElement, ISlotProps, RefObject, render } frimport { DocPluginObserve, install } from './Basic/Observer';import { ToolBarController } from './Controller/ToolBarController';import { DocContainerController } from './Controller/DocContainerController';-import { BaseDocContainerConfig, DocContainer, IDocPluginConfigBase, ILayout } from './View/UI/DocContainer';+import { BaseDocContainerConfig, defaultLayout, DocContainer, IDocPluginConfigBase, ILayout } from './View/UI/DocContainer';import { InfoBarController } from './Controller/InfoBarController';import { Engine, RenderEngine } from '@univer/base-render';import { CanvasView } from './View/Render/CanvasView';@@ -16,7 +16,7 @@ export interface IDocPluginConfig extends IDocPluginConfigBase {const DEFAULT_DOCUMENT_PLUGIN_DATA = {container: 'univerdoc',- layout: 'auto',+ layout: defaultLayout,};export class DocPlugin extends Plugin<DocPluginObserve, DocContext> {@@ -79,13 +79,13 @@ export class DocPlugin extends Plugin<DocPluginObserve, DocContext> {const layout = this._config.layout as ILayout;- if (layout === 'auto' || layout.toolBar) {+ if (layout.toolBar) {this._toolBarControl = new ToolBarController(this);}- if (layout === 'auto' || layout.infoBar) {+ if (layout.infoBar) {this._infoBarControl = new InfoBarController(this);}-+this._toolBarControl = new ToolBarController(this);this._infoBarControl = new InfoBarController(this);this._docContainerController = new DocContainerController(this);diff --git a/packages/base-docs/src/View/UI/DocContainer/DocContainer.tsx b/packages/base-docs/src/View/UI/DocContainer/DocContainer.tsxindex 3eb2f8da2b..ae52278622 100644--- a/packages/base-docs/src/View/UI/DocContainer/DocContainer.tsx+++ b/packages/base-docs/src/View/UI/DocContainer/DocContainer.tsx@@ -16,14 +16,7 @@ import {} from '@univer/base-component';import { AsyncFunction, ContextBase, DocContext, IKeyType, LocaleType, PLUGIN_NAMES, Tools, Workbook } from '@univer/core';import cssVars from 'css-vars-ponyfill';-import {- Container,- Content,- Footer,- Header,- Layout,- Sider,-} from '@univer/style-universheet';+import { Container, Content, Footer, Header, Layout, Sider } from '@univer/style-universheet';import defaultSkin from '@univer/style-universheet/assets/css/skin/default.module.less';import darkSkin from '@univer/style-universheet/assets/css/skin/dark.module.less';// All skins' less file@@ -35,7 +28,7 @@ import { DocPlugin } from '../../../DocPlugin';import { InfoBar } from '../InfoBar';export interface IDocPluginConfigBase {- layout: string | ILayout;+ layout: ILayout;}interface IShowToolBarConfig {@@ -121,7 +114,7 @@ export interface ILayout {}export interface IDocPluginConfigBase {- layout: string | ILayout;+ layout: ILayout;}export interface BaseDocContainerConfig extends BaseComponentProps, IDocPluginConfigBase {diff --git a/packages/base-sheets/src/Controller/Selection/SelectionControlDragDrop.ts b/packages/base-sheets/src/Controller/Selection/SelectionControlDragDrop.tsindex e760db886f..b13ced50ce 100644--- a/packages/base-sheets/src/Controller/Selection/SelectionControlDragDrop.ts+++ b/packages/base-sheets/src/Controller/Selection/SelectionControlDragDrop.ts@@ -83,22 +83,18 @@ export class SelectionControlDragAndDrop {bottomControl.onPointerEnterObserver.add((evt: IPointerEvent | IMouseEvent) => {bottomControl.cursor = CURSOR_TYPE.MOVE;- console.log('onPointerEnterObserver');});bottomControl.onPointerLeaveObserver.add((evt: IPointerEvent | IMouseEvent) => {bottomControl.resetCursor();- console.log('onPointerLeaveObserver');});bottomControl.onPointerDownObserver.add((evt: IPointerEvent | IMouseEvent) => {- console.log('onPointerDownObserver');this.dragDown(evt, Direction.BOTTOM);});bottomControl.onPointerUpObserver.add((evt: IPointerEvent | IMouseEvent) => {bottomControl.resetCursor();- console.log('onPointerUpObserver');});// init drag render boxdiff --git a/packages/base-sheets/src/Controller/SheetContainerController.ts b/packages/base-sheets/src/Controller/SheetContainerController.tsindex 7ce580c3ed..14f277bf39 100644--- a/packages/base-sheets/src/Controller/SheetContainerController.ts+++ b/packages/base-sheets/src/Controller/SheetContainerController.ts@@ -1,12 +1,12 @@-import { BooleanNumber, CommandManager, ContextBase, ISheetActionData, LocaleType, PLUGIN_NAMES, SheetActionBase, Tools, Workbook } from '@univer/core';+import { BooleanNumber, CommandManager, ContextBase, ISheetActionData, LocaleType, PLUGIN_NAMES, SheetActionBase, Workbook } from '@univer/core';import { BaseComponentSheet, BaseComponentRender, BaseComponentProps } from '@univer/base-component';import { CellRangeModal } from '../View/UI/Common/CellRange/CellRangeModal';import { SheetPlugin } from '../SheetPlugin';import { IShowToolBarConfig } from '../Model';import { SheetContainer } from '../View/UI/SheetContainer';-import { DefaultSheetContainerConfig } from '../Basics';import { IHideRightMenuConfig } from './RightMenuController';+import { DefaultSheetContainerConfig } from '../Basics';// All skins' less fileexport interface IShowContainerConfig {@@ -47,13 +47,13 @@ export interface IShowContainerConfig {}export interface ILayout {- sheetContainerConfig?: IShowContainerConfig | string;+ sheetContainerConfig?: IShowContainerConfig;toolBarConfig?: IShowToolBarConfig;rightMenuConfig?: IHideRightMenuConfig;}-export interface ISheetPluginConfigBase extends ILayout {- layout?: ILayout;+export interface ISheetPluginConfigBase {+ layout: ILayout;}export interface BaseSheetContainerConfig extends BaseComponentProps, ISheetPluginConfigBase {@@ -83,10 +83,11 @@ export class SheetContainerController {this._initialize();- this._defaultLayout =- this._config.layout === 'auto'- ? Tools.deepClone(DefaultSheetContainerConfig) // The defaultLayout must be cloned, otherwise the layout object will be referenced in multiple instances- : Tools.deepMerge(DefaultSheetContainerConfig, this._config.layout?.sheetContainerConfig);+ this._defaultLayout = this._config.layout?.sheetContainerConfig || DefaultSheetContainerConfig;+ // this._defaultLayout =+ // this._config.layout === 'auto'+ // ? Tools.deepClone(DefaultSheetContainerConfig) // The defaultLayout must be cloned, otherwise the layout object will be referenced in multiple instances+ // : Tools.deepMerge(DefaultSheetContainerConfig, this._config.layout?.sheetContainerConfig);}private _initialize() {diff --git a/packages/base-sheets/src/Controller/ToolBarController.ts b/packages/base-sheets/src/Controller/ToolBarController.tsindex f7672c5617..0385ff88e0 100644--- a/packages/base-sheets/src/Controller/ToolBarController.ts+++ b/packages/base-sheets/src/Controller/ToolBarController.ts@@ -1,5 +1,5 @@import { BaseComponentRender } from '@univer/base-component';-import { Range, Tools, BorderType, BorderStyleTypes, HorizontalAlign, VerticalAlign, WrapStrategy, DEFAULT_STYLES } from '@univer/core';+import { Range, BorderType, BorderStyleTypes, HorizontalAlign, VerticalAlign, WrapStrategy, DEFAULT_STYLES } from '@univer/core';import { ColorPicker } from '@univer/style-universheet';import { SheetPlugin } from '../SheetPlugin';@@ -130,7 +130,8 @@ export class ToolBarController {this._initRegisterComponent();- const toolbarConfig = config ? Tools.deepClone(DefaultToolbarConfig) : Tools.deepMerge(DefaultToolbarConfig, config);+ // const toolbarConfig = config ? Tools.deepClone(DefaultToolbarConfig) : Tools.deepMerge(DefaultToolbarConfig, config);+ const toolbarConfig = config || DefaultToolbarConfig;this._borderInfo = {color: '#000',diff --git a/packages/base-sheets/src/SheetPlugin.tsx b/packages/base-sheets/src/SheetPlugin.tsxindex e13010a9f3..da53aa9e79 100644--- a/packages/base-sheets/src/SheetPlugin.tsx+++ b/packages/base-sheets/src/SheetPlugin.tsx@@ -30,7 +30,6 @@ import {SheetContainerController,ToolBarController,BaseSheetContainerConfig,- IShowContainerConfig,} from './Controller';import { IToolBarItemProps } from './Model/ToolBarModel';import { ModalGroupController } from './Controller/ModalGroupController';@@ -142,26 +141,26 @@ export class SheetPlugin extends Plugin<SheetPluginObserve, SheetContext> {this._sheetContainerController = new SheetContainerController(this, config);// TODO rightMenu config- if (sheetContainerConfig === 'auto' || (sheetContainerConfig as IShowContainerConfig).rightMenu) {+ if (sheetContainerConfig?.rightMenu) {this._rightMenuControl = new RightMenuController(this, rightMenuConfig);}- if (sheetContainerConfig === 'auto' || (sheetContainerConfig as IShowContainerConfig).toolBar) {+ if (sheetContainerConfig?.toolBar) {this._toolBarControl = new ToolBarController(this, toolBarConfig);}- if (sheetContainerConfig === 'auto' || (sheetContainerConfig as IShowContainerConfig).infoBar) {+ if (sheetContainerConfig?.infoBar) {this._infoBarControl = new InfoBarController(this);}- if (sheetContainerConfig === 'auto' || (sheetContainerConfig as IShowContainerConfig).sheetBar) {+ if (sheetContainerConfig?.sheetBar) {this._sheetBarControl = new SheetBarControl(this);}this._cellEditorController = new CellEditorController(this);this._antLineController = new AntLineControl(this);- if (sheetContainerConfig === 'auto' || (sheetContainerConfig as IShowContainerConfig).countBar) {+ if (sheetContainerConfig?.countBar) {this._countBarController = new CountBarController(this);}- if (sheetContainerConfig === 'auto' || (sheetContainerConfig as IShowContainerConfig).formulaBar) {+ if (sheetContainerConfig?.formulaBar) {this._formulaBarController = new FormulaBarController(this);}diff --git a/packages/base-slides/src/SlidePlugin.tsx b/packages/base-slides/src/SlidePlugin.tsxindex 665d6553e8..5a3bd8079a 100644--- a/packages/base-slides/src/SlidePlugin.tsx+++ b/packages/base-slides/src/SlidePlugin.tsx@@ -6,7 +6,7 @@ import { install, SlidePluginObserve } from './Basic/Observer';import { ToolBarController } from './Controller/ToolBarController';import { SlideContainerController } from './Controller/SlideContainerController';import { InfoBarController } from './Controller/InfoBarController';-import { BaseSlideContainerConfig, ILayout, ISlidePluginConfigBase, SlideContainer } from './View/UI/SlideContainer';+import { BaseSlideContainerConfig, defaultLayout, ILayout, ISlidePluginConfigBase, SlideContainer } from './View/UI/SlideContainer';import { SlideBarController } from './Controller/SlideBarController';import { CanvasView } from './View/Render';@@ -16,7 +16,7 @@ export interface ISlidePluginConfig extends ISlidePluginConfigBase {const DEFAULT_SLIDE_PLUGIN_DATA = {container: 'universlide',- layout: 'auto',+ layout: defaultLayout,};export class SlidePlugin extends Plugin<SlidePluginObserve, SlideContext> {@@ -83,13 +83,13 @@ export class SlidePlugin extends Plugin<SlidePluginObserve, SlideContext> {const layout = this._config.layout as ILayout;- if (layout === 'auto' || layout.toolBar) {+ if (layout.toolBar) {this._toolBarControl = new ToolBarController(this);}- if (layout === 'auto' || layout.infoBar) {+ if (layout.infoBar) {this._infoBarControl = new InfoBarController(this);}-+this._slideBarControl = new SlideBarController(this);this._slideContainerController = new SlideContainerController(this);diff --git a/packages/base-slides/src/View/UI/SlideContainer/SlideContainer.tsx b/packages/base-slides/src/View/UI/SlideContainer/SlideContainer.tsxindex 6a65ff4c17..c73f6d8ed2 100644--- a/packages/base-slides/src/View/UI/SlideContainer/SlideContainer.tsx+++ b/packages/base-slides/src/View/UI/SlideContainer/SlideContainer.tsx@@ -16,14 +16,7 @@ import {} from '@univer/base-component';import { AsyncFunction, SlideContext, IKeyType, LocaleType, PLUGIN_NAMES, Tools, Workbook } from '@univer/core';import cssVars from 'css-vars-ponyfill';-import {- Container,- Content,- Footer,- Header,- Layout,- Sider,-} from '@univer/style-universheet';+import { Container, Content, Footer, Header, Layout, Sider } from '@univer/style-universheet';import defaultSkin from '@univer/style-universheet/assets/css/skin/default.module.less';import darkSkin from '@univer/style-universheet/assets/css/skin/dark.module.less';// All skins' less file@@ -36,7 +29,7 @@ import { InfoBar } from '../InfoBar';import { SlideBar } from '../SlideBar/SlideBar';export interface ISlidePluginConfigBase {- layout: string | ILayout;+ layout: ILayout;}interface IShowToolBarConfig {@@ -122,7 +115,7 @@ export interface ILayout {}export interface ISlidePluginConfigBase {- layout: string | ILayout;+ layout: ILayout;}export interface BaseSlideContainerConfig extends BaseComponentProps, ISlidePluginConfigBase {@@ -654,8 +647,8 @@ export class SlideContainer extends Component<BaseSlideContainerProps, IState> {<Sider style={{ display: layout.outerLeft ? 'block' : 'none' }}></Sider><Layout className={style.mainContent} style={{ position: 'relative' }}><Header style={{ display: layout.header ? 'block' : 'none' }}>- {layout.infoBar && <InfoBar></InfoBar>}- {layout.toolBar && <ToolBar toolList={[]}></ToolBar>}+ {layout.infoBar && <InfoBar></InfoBar>}+ {layout.toolBar && <ToolBar toolList={[]}></ToolBar>}</Header><Layout><Siderdiff --git a/packages/common-plugin-register/.eslintrc.js b/packages/common-plugin-register/.eslintrc.jsdeleted file mode 100644index 7f4cf3e7ba..0000000000--- a/packages/common-plugin-register/.eslintrc.js+++ /dev/null@@ -1,51 +0,0 @@-module.exports = {- env: {- browser: true,- es2021: true,- node: true,- },- parser: '@typescript-eslint/parser',- extends: [- 'airbnb-typescript',- 'prettier',- 'eslint:recommended',- 'plugin:import/recommended',- 'plugin:import/typescript',- ],- parserOptions: {- ecmaVersion: 12,- sourceType: 'module',- project: './tsconfig.json',- },- plugins: ['@typescript-eslint', 'prettier', 'import'],- rules: {- 'prettier/prettier': [- 'error',- {- endOfLine: 'auto',- },- ],- 'import/prefer-default-export': 'off',- 'import/no-extraneous-dependencies': [- 'error',- { devDependencies: true },- ],- // turn on errors for missing imports- 'import/no-unresolved': 'error',- },- settings: {- 'import/parsers': {- '@typescript-eslint/parser': ['.ts', '.tsx'],- },- 'import/resolver': {- typescript: {- alwaysTryTypes: true, // always try to resolve config under `<root>@config` directory even it doesn't contain any source code, like `@config/unist`-- // Choose from one of the "project" configs below or omit to use <root>/tsconfig.json by default-- // use <root>/path/to/folder/tsconfig.json- project: './tsconfig.json',- },- },- },-};diff --git a/packages/common-plugin-register/.gitignore b/packages/common-plugin-register/.gitignoredeleted file mode 100644index 12e1bd6bec..0000000000--- a/packages/common-plugin-register/.gitignore+++ /dev/null@@ -1,101 +0,0 @@-#ide-*.DS_Store-.idea-.vscode--#npm-package-lock.json--dist-lib-docs/.vuepress/dist--# Logs-logs-*.log-npm-debug.log*-yarn-debug.log*-yarn-error.log*-lerna-debug.log*--# Runtime config-pids-*.pid-*.seed-*.pid.lock--# Directory for instrumented libs generated by jscoverage/JSCover-lib-cov--# Coverage directory used by tools like istanbul-coverage--# nyc test coverage-.nyc_output--# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)-.grunt--# Bower dependency directory (https://bower.io/)-bower_components--# node-waf configuration-.lock-wscript--# Compiled binary addons (https://nodejs.org/api/addons.html)-build/Release--# Dependency directories-node_modules-jspm_packages/--# TypeScript v1 declaration files-typings/--# Optional npm cache directory-.npm--# Optional eslint cache-.eslintcache--# Optional REPL History-.node_repl_history--# Output of 'npm pack'-*.tgz--# Yarn Integrity file-.yarn-integrity--# dotenv environment variables file-.env--# next.js build output-.next--#lerna-changelog-.changelog---#editor workspace file-.idea/---.DS_Store--.history-# examples---# Production-/build--# Generated files-.docusaurus-.cache-loader--# Misc-.env.local-.env.development.local-.env.test.local-.env.production.localdiff --git a/packages/common-plugin-register/.prettierrc.cjs b/packages/common-plugin-register/.prettierrc.cjsdeleted file mode 100644index 6604107223..0000000000--- a/packages/common-plugin-register/.prettierrc.cjs+++ /dev/null@@ -1,7 +0,0 @@-module.exports = {- singleQuote: true,- trailingComma: 'es5',- tabWidth: 4,- semi: true,- printWidth: 180,-};diff --git a/packages/common-plugin-register/README-zh.md b/packages/common-plugin-register/README-zh.mddeleted file mode 100644index 5edddb534c..0000000000--- a/packages/common-plugin-register/README-zh.md+++ /dev/null@@ -1,55 +0,0 @@-# style-universheet--简体中文 | [English](./README.md)--## 介绍--UniverSheet Register插件--### 安装--```bash-npm i @univer/common-plugin-register-```--### 使用--```js-impport {Register} from '@univer/common-plugin-register'--const univerSheet = new UniverSheet();-univerSheet.installPlugin(new Register());-```--## 本地开发--### 环境--- [Node.js](https://nodejs.org/en/) Version >= 10-- [npm](https://www.npmjs.com/) Version >= 6--### 安装--```-pnpm install-```--### 开发--```-# 当前目录 ./packages/common-plugin-register/-npm run dev--# 或者项目根目录 ./-pnpm run --filter @univer/common-plugin-register dev-```--### 打包--```-# 当前目录 ./packages/common-plugin-register/-npm run build--# 或者根目录 ./-pnpm run --filter @univer/common-plugin-register build-```diff --git a/packages/common-plugin-register/README.md b/packages/common-plugin-register/README.mddeleted file mode 100644index 93d5dc081a..0000000000--- a/packages/common-plugin-register/README.md+++ /dev/null@@ -1,55 +0,0 @@-# style-universheet--English| [简体中文](./README-zh.md)--## Introduction--UniverSheet Plugin Register--### Installation--```bash-npm i @univer/common-plugin-register-```--### Usage--```js-impport {Register} from '@univer/common-plugin-register'--const univerSheet = new UniverSheet();-univerSheet.installPlugin(new Register());-```--## Local development--### Requirements--- [Node.js](https://nodejs.org/en/) Version >= 10-- [npm](https://www.npmjs.com/) Version >= 6--### Installation--```-pnpm install-```--### Development--```-# Current directory ./packages/common-plugin-register/-npm run dev--# Or project root directory ./-pnpm run --filter @univer/common-plugin-register dev-```--### Package--```-# Current directory ./packages/common-plugin-register/-npm run build--# Or root directory ./-pnpm run --filter @univer/common-plugin-register build-```diff --git a/packages/common-plugin-register/index.html b/packages/common-plugin-register/index.htmldeleted file mode 100644index 87007e935e..0000000000--- a/packages/common-plugin-register/index.html+++ /dev/null@@ -1,26 +0,0 @@-<!DOCTYPE html>-<html lang="en">--<head>- <meta charset="UTF-8" />- <link rel="icon" type="image/svg+xml" href="favicon.svg" />- <meta name="viewport" content="width=device-width, initial-scale=1.0" />- <title>Univer</title>- <style>- html,- body {- height: 100%;- margin: 0;- }- </style>-</head>--<body>- <div id="app" style="position:absolute;z-index: 99999;"></div>- <div id="universheet" style="height: 30vh;"></div>- <div id="univerdoc" style="height: 30vh;"></div>- <div id="universlide" style="height: 30vh;"></div>- <script type="module" src="/src/main.tsx"></script>-</body>--</html>\ No newline at end of filediff --git a/packages/common-plugin-register/jest.config.js b/packages/common-plugin-register/jest.config.jsdeleted file mode 100644index 73ef4bae42..0000000000--- a/packages/common-plugin-register/jest.config.js+++ /dev/null@@ -1,18 +0,0 @@-/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */-module.exports = {- preset: 'ts-jest',- testEnvironment: 'jsdom',- moduleFileExtensions: ['js', 'ts', 'tsx'],-- roots: ['<rootDir>/src'],- testMatch: ['**/__tests__/**/*.+(ts|tsx|js)', '**/?(*.)+(spec|test).+(ts|tsx|js)'],- transform: {- '^.+\\.(ts|tsx)$': 'ts-jest',- '^.+\\.tsx?$': 'babel-jest', // https://github.com/kulshekhar/ts-jest/issues/937#issuecomment-455431207- },- globals: {- 'ts-jest': {- tsConfig: 'tsconfig.test.json',- },- },-};diff --git a/packages/common-plugin-register/package.json b/packages/common-plugin-register/package.jsondeleted file mode 100644index 449a122800..0000000000--- a/packages/common-plugin-register/package.json+++ /dev/null@@ -1,56 +0,0 @@-{- "name": "@univer/common-plugin-register",- "version": "0.0.1",- "description": "UniverSheet normal common-plugin-register",- "keywords": [],- "author": "DreamNum <[email protected]>",- "license": "MIT",- "main": "./src/index.ts",- "module": "./src/index.ts",- "types": "./src/Types/index.d.ts",- "publishConfig": {- "main": "./lib/univer-common-plugin-register.cjs.js",- "module": "./lib/univer-common-plugin-register.es.js",- "types": "./lib/index.d.ts"- },- "exports": {- ".": "./src/index.ts",- "./*": "./src/*"- },- "directories": {- "lib": "lib"- },- "scripts": {- "test": "jest",- "dev": "vite",- "build": "tsc && vite build",- "watch": "vite build",- "link": "pnpm link ./",- "serve": "vite preview"- },- "devDependencies": {- "@preact/preset-vite": "2.0.0",- "@testing-library/preact": "^2.0.1",- "@types/jest": "^27.0.1",- "@types/node": "^16.4.6",- "@vitejs/plugin-legacy": "^1.5.1",- "eslint": "^8.22.0",- "eslint-config-airbnb-typescript": "^17.0.0",- "eslint-config-prettier": "^8.3.0",- "eslint-plugin-import": "^2.23.4",- "eslint-plugin-prettier": "^3.4.0",- "eslint-plugin-jsx-a11y": "^6.5.1",- "eslint-plugin-react": "^7.28.0",- "eslint-plugin-react-hooks": "^4.3.0",- "less": "^4.1.1",- "prettier": "^2.3.2",- "ts-jest": "29.0.1",- "ts-node": "^10.2.1",- "typescript": "^4.4.1-rc",- "vite": "^2.4.4"- },- "dependencies": {- "@univer/core": "workspace:^0.0.1",- "preact": "^10.5.14"- }-}diff --git a/packages/common-plugin-register/src/Basic/Const/PLUGIN_NAME.ts b/packages/common-plugin-register/src/Basic/Const/PLUGIN_NAME.tsdeleted file mode 100644index 003ecdf0da..0000000000--- a/packages/common-plugin-register/src/Basic/Const/PLUGIN_NAME.ts+++ /dev/null@@ -1 +0,0 @@-export const REGISTER_PLUGIN_NAME = 'register';diff --git a/packages/common-plugin-register/src/Basic/Const/index.ts b/packages/common-plugin-register/src/Basic/Const/index.tsdeleted file mode 100644index 0dc96d927a..0000000000--- a/packages/common-plugin-register/src/Basic/Const/index.ts+++ /dev/null@@ -1 +0,0 @@-export * from './PLUGIN_NAME';diff --git a/packages/common-plugin-register/src/Basic/Enum/index.ts b/packages/common-plugin-register/src/Basic/Enum/index.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/common-plugin-register/src/Locale/en.ts b/packages/common-plugin-register/src/Locale/en.tsdeleted file mode 100644index 9b93414d00..0000000000--- a/packages/common-plugin-register/src/Locale/en.ts+++ /dev/null@@ -1,8 +0,0 @@-export default {- register: {- tooltip: 'Register',- one:'one',- two:'two',- three:'three',- },-};diff --git a/packages/common-plugin-register/src/Locale/index.ts b/packages/common-plugin-register/src/Locale/index.tsdeleted file mode 100644index 3ac4bcd0fd..0000000000--- a/packages/common-plugin-register/src/Locale/index.ts+++ /dev/null@@ -1,4 +0,0 @@-import zh from './zh';-import en from './en';--export { zh, en };diff --git a/packages/common-plugin-register/src/Locale/zh.ts b/packages/common-plugin-register/src/Locale/zh.tsdeleted file mode 100644index fe0cab6665..0000000000--- a/packages/common-plugin-register/src/Locale/zh.ts+++ /dev/null@@ -1,8 +0,0 @@-export default {- register: {- tooltip: 'Register',- one:'一',- two:'二',- three:'三',- },-};diff --git a/packages/common-plugin-register/src/Model/index.ts b/packages/common-plugin-register/src/Model/index.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/common-plugin-register/src/RegisterPlugin.tsx b/packages/common-plugin-register/src/RegisterPlugin.tsxdeleted file mode 100644index 2e33a51899..0000000000--- a/packages/common-plugin-register/src/RegisterPlugin.tsx+++ /dev/null@@ -1,62 +0,0 @@-import { Plugin, UniverSheet, UniverDoc, UniverSlide, PLUGIN_NAMES } from '@univer/core';-import { zh, en } from './Locale';-import { REGISTER_PLUGIN_NAME } from './Basic/Const/PLUGIN_NAME';-import { ClipboardExtensionManager } from './Basic/Register';-import { IClipboardData } from './Basic';--export class RegisterPlugin extends Plugin {- private _clipboardExtensionManager: ClipboardExtensionManager;-- constructor() {- super(REGISTER_PLUGIN_NAME);- }-- static create() {- return new RegisterPlugin();- }-- installTo(univerInstance: UniverSheet | UniverDoc | UniverSlide) {- univerInstance.installPlugin(this);- }-- initialize(): void {- const context = this.getContext();-- /**- * load more Locale object- */- context.getLocale().load({- en,- zh,- });-- this.setExtensionManager();- }-- setExtensionManager() {- const onKeyPasteObservable = this.getContext().getObserverManager().getObserver<ClipboardEvent>('onKeyPasteObservable', 'core');-- if (onKeyPasteObservable && !onKeyPasteObservable.hasObservers()) {- onKeyPasteObservable.add((evt: ClipboardEvent) => {- this._clipboardExtensionManager.pasteResolver(evt).then((data: IClipboardData) => {- this._clipboardExtensionManager.handle(data);- });- });- }- this._clipboardExtensionManager = new ClipboardExtensionManager();- }-- /**- * usage this._clipboardExtensionManager.handle(data);- * @returns- */- getClipboardExtensionManager(): ClipboardExtensionManager {- return this._clipboardExtensionManager;- }-- onMounted(): void {- this.initialize();- }-- onDestroy(): void {}-}diff --git a/packages/common-plugin-register/src/Service/index.ts b/packages/common-plugin-register/src/Service/index.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/common-plugin-register/src/Types/index.d.ts b/packages/common-plugin-register/src/Types/index.d.tsdeleted file mode 100644index 91f1f64fc8..0000000000--- a/packages/common-plugin-register/src/Types/index.d.ts+++ /dev/null@@ -1,10 +0,0 @@-/// <reference types="vite/client" />--export * from '../index';-declare module '@univer/common-plugin-register' {}--// use css module-declare module '*.less' {- const resource: { [key: string]: string };- export = resource;-}diff --git a/packages/common-plugin-register/src/Types/preact.d.ts b/packages/common-plugin-register/src/Types/preact.d.tsdeleted file mode 100644index 0d092b3751..0000000000--- a/packages/common-plugin-register/src/Types/preact.d.ts+++ /dev/null@@ -1,4 +0,0 @@-/// <reference types="enzyme-adapter-preact-pure" />-import JSX = preact.JSX;--declare module 'enzyme';diff --git a/packages/common-plugin-register/src/View/Render/index.ts b/packages/common-plugin-register/src/View/Render/index.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/common-plugin-register/src/View/UI/index.ts b/packages/common-plugin-register/src/View/UI/index.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/common-plugin-register/src/index.ts b/packages/common-plugin-register/src/index.tsdeleted file mode 100644index 370b473a81..0000000000--- a/packages/common-plugin-register/src/index.ts+++ /dev/null@@ -1,3 +0,0 @@-export * from './Basic';-export * from './RegisterPlugin';-diff --git a/packages/common-plugin-register/tsconfig.json b/packages/common-plugin-register/tsconfig.jsondeleted file mode 100644index fc81cbd47e..0000000000--- a/packages/common-plugin-register/tsconfig.json+++ /dev/null@@ -1,31 +0,0 @@-{- "compilerOptions": {- "rootDir": "./",- "outDir": "lib",- "target": "ESNext",-- "lib": ["ESNext", "DOM", "WebWorker"],- "module": "ESNext",- "moduleResolution": "Node", //This value is needed for Node.js.-- "declaration": true,- "declarationDir": "./lib",- "declarationMap": true,- "sourceMap": true,- "resolveJsonModule": true,- "strict": true,- "allowJs": true,-- "baseUrl": "./",- "skipLibCheck": true,- "esModuleInterop": true, // auto allowSyntheticDefaultImports tru- "suppressImplicitAnyIndexErrors": true,- "experimentalDecorators": true,- "jsx": "preserve",- "jsxFactory": "h",- "jsxFragmentFactory": "Fragment",- "strictPropertyInitialization": false,- "types": ["jest", "node", "@types/jest"]- },- "include": ["src/**/*", "test/**/*.test.(ts|tsx|js)"]-}diff --git a/packages/common-plugin-register/tsconfig.ref.json b/packages/common-plugin-register/tsconfig.ref.jsondeleted file mode 100644index 0c86b2c554..0000000000--- a/packages/common-plugin-register/tsconfig.ref.json+++ /dev/null@@ -1,7 +0,0 @@-{- "extends": "./tsconfig.json",- "include": ["src/**/*"],- "compilerOptions": {- "composite": true- }-}diff --git a/packages/common-plugin-register/tsconfig.test.json b/packages/common-plugin-register/tsconfig.test.jsondeleted file mode 100644index a2ac02c4ae..0000000000--- a/packages/common-plugin-register/tsconfig.test.json+++ /dev/null@@ -1,7 +0,0 @@-{- "extends": "./tsconfig.json",- "compilerOptions": {- "jsx": "react-jsx",- "jsxImportSource": "preact"- }-}diff --git a/packages/common-plugin-register/vite.config.ts b/packages/common-plugin-register/vite.config.tsdeleted file mode 100644index 020ecd6209..0000000000--- a/packages/common-plugin-register/vite.config.ts+++ /dev/null@@ -1,44 +0,0 @@-import { defineConfig } from 'vite';-import path from 'path';-import preact from '@preact/preset-vite';-import legacy from '@vitejs/plugin-legacy';-import { name, version } from './package.json';--const resolve = (url: string) => path.resolve(__dirname, url);--export default defineConfig({- build: {- // lib: {- // entry: resolve('src/index.ts'),- // name: 'BaseStyleUniver',- // formats: ['es', 'umd'],- // fileName: 'index',- // },- // outDir: './lib',- },- define: {- pkgJson: { name, version },- },- css: {- modules: {- localsConvention: 'camelCaseOnly', // dash to camelCase conversion// .apply-color -> applyColor- generateScopedName: 'univer-[local]', // custom prefix class name- },- preprocessorOptions: {- less: {- javascriptEnabled: true,- },- },- },- server: {- port: 3103,- open: true, // Automatically open the app in the browser on server start.- },- plugins: [- preact(),- legacy({- targets: ['ie >= 11'],- additionalLegacyPolyfills: ['regenerator-runtime/runtime'],- }),- ],-});diff --git a/packages/sheets-plugin-alternating-colors/src/main.tsx b/packages/sheets-plugin-alternating-colors/src/main.tsxindex 98c9f340aa..142f87bcc0 100644--- a/packages/sheets-plugin-alternating-colors/src/main.tsx+++ b/packages/sheets-plugin-alternating-colors/src/main.tsx@@ -6,7 +6,6 @@ import { UniverComponentSheet } from '@univer/style-universheet';const uiDefaultConfigUp = {container: 'universheet-demo-up',- layout: 'auto',};const univerSheetUp = UniverSheet.newInstance(DEFAULT_WORKBOOK_DATA);diff --git a/packages/sheets-plugin-clipboard-office/.eslintrc.js b/packages/sheets-plugin-clipboard-office/.eslintrc.jsdeleted file mode 100644index 7f4cf3e7ba..0000000000--- a/packages/sheets-plugin-clipboard-office/.eslintrc.js+++ /dev/null@@ -1,51 +0,0 @@-module.exports = {- env: {- browser: true,- es2021: true,- node: true,- },- parser: '@typescript-eslint/parser',- extends: [- 'airbnb-typescript',- 'prettier',- 'eslint:recommended',- 'plugin:import/recommended',- 'plugin:import/typescript',- ],- parserOptions: {- ecmaVersion: 12,- sourceType: 'module',- project: './tsconfig.json',- },- plugins: ['@typescript-eslint', 'prettier', 'import'],- rules: {- 'prettier/prettier': [- 'error',- {- endOfLine: 'auto',- },- ],- 'import/prefer-default-export': 'off',- 'import/no-extraneous-dependencies': [- 'error',- { devDependencies: true },- ],- // turn on errors for missing imports- 'import/no-unresolved': 'error',- },- settings: {- 'import/parsers': {- '@typescript-eslint/parser': ['.ts', '.tsx'],- },- 'import/resolver': {- typescript: {- alwaysTryTypes: true, // always try to resolve config under `<root>@config` directory even it doesn't contain any source code, like `@config/unist`-- // Choose from one of the "project" configs below or omit to use <root>/tsconfig.json by default-- // use <root>/path/to/folder/tsconfig.json- project: './tsconfig.json',- },- },- },-};diff --git a/packages/sheets-plugin-clipboard-office/.gitignore b/packages/sheets-plugin-clipboard-office/.gitignoredeleted file mode 100644index 12e1bd6bec..0000000000--- a/packages/sheets-plugin-clipboard-office/.gitignore+++ /dev/null@@ -1,101 +0,0 @@-#ide-*.DS_Store-.idea-.vscode--#npm-package-lock.json--dist-lib-docs/.vuepress/dist--# Logs-logs-*.log-npm-debug.log*-yarn-debug.log*-yarn-error.log*-lerna-debug.log*--# Runtime config-pids-*.pid-*.seed-*.pid.lock--# Directory for instrumented libs generated by jscoverage/JSCover-lib-cov--# Coverage directory used by tools like istanbul-coverage--# nyc test coverage-.nyc_output--# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)-.grunt--# Bower dependency directory (https://bower.io/)-bower_components--# node-waf configuration-.lock-wscript--# Compiled binary addons (https://nodejs.org/api/addons.html)-build/Release--# Dependency directories-node_modules-jspm_packages/--# TypeScript v1 declaration files-typings/--# Optional npm cache directory-.npm--# Optional eslint cache-.eslintcache--# Optional REPL History-.node_repl_history--# Output of 'npm pack'-*.tgz--# Yarn Integrity file-.yarn-integrity--# dotenv environment variables file-.env--# next.js build output-.next--#lerna-changelog-.changelog---#editor workspace file-.idea/---.DS_Store--.history-# examples---# Production-/build--# Generated files-.docusaurus-.cache-loader--# Misc-.env.local-.env.development.local-.env.test.local-.env.production.localdiff --git a/packages/sheets-plugin-clipboard-office/.prettierrc.cjs b/packages/sheets-plugin-clipboard-office/.prettierrc.cjsdeleted file mode 100644index 6604107223..0000000000--- a/packages/sheets-plugin-clipboard-office/.prettierrc.cjs+++ /dev/null@@ -1,7 +0,0 @@-module.exports = {- singleQuote: true,- trailingComma: 'es5',- tabWidth: 4,- semi: true,- printWidth: 180,-};diff --git a/packages/sheets-plugin-clipboard-office/README-zh.md b/packages/sheets-plugin-clipboard-office/README-zh.mddeleted file mode 100644index 97626389bd..0000000000--- a/packages/sheets-plugin-clipboard-office/README-zh.md+++ /dev/null@@ -1,55 +0,0 @@-# style-universheet--简体中文 | [English](./README.md)--## 介绍--UniverSheet ClipboardOffice插件--### 安装--```bash-npm i @univer/sheets-plugin-clipboard-office-```--### 使用--```js-impport {ClipboardOffice} from '@univer/sheets-plugin-clipboard-office'--const univerSheet = new UniverSheet();-univerSheet.installPlugin(new ClipboardOffice());-```--## 本地开发--### 环境--- [Node.js](https://nodejs.org/en/) Version >= 10-- [npm](https://www.npmjs.com/) Version >= 6--### 安装--```-pnpm install-```--### 开发--```-# 当前目录 ./packages/sheets-plugin-clipboard-office/-npm run dev--# 或者项目根目录 ./-pnpm run --filter @univer/sheets-plugin-clipboard-office dev-```--### 打包--```-# 当前目录 ./packages/sheets-plugin-clipboard-office/-npm run build--# 或者根目录 ./-pnpm run --filter @univer/sheets-plugin-clipboard-office build-```diff --git a/packages/sheets-plugin-clipboard-office/README.md b/packages/sheets-plugin-clipboard-office/README.mddeleted file mode 100644index 9eb23d8ba3..0000000000--- a/packages/sheets-plugin-clipboard-office/README.md+++ /dev/null@@ -1,55 +0,0 @@-# style-universheet--English| [简体中文](./README-zh.md)--## Introduction--UniverSheet Plugin ClipboardOffice--### Installation--```bash-npm i @univer/sheets-plugin-clipboard-office-```--### Usage--```js-impport {ClipboardOffice} from '@univer/sheets-plugin-clipboard-office'--const univerSheet = new UniverSheet();-univerSheet.installPlugin(new ClipboardOffice());-```--## Local development--### Requirements--- [Node.js](https://nodejs.org/en/) Version >= 10-- [npm](https://www.npmjs.com/) Version >= 6--### Installation--```-pnpm install-```--### Development--```-# Current directory ./packages/sheets-plugin-clipboard-office/-npm run dev--# Or project root directory ./-pnpm run --filter @univer/sheets-plugin-clipboard-office dev-```--### Package--```-# Current directory ./packages/sheets-plugin-clipboard-office/-npm run build--# Or root directory ./-pnpm run --filter @univer/sheets-plugin-clipboard-office build-```diff --git a/packages/sheets-plugin-clipboard-office/index.html b/packages/sheets-plugin-clipboard-office/index.htmldeleted file mode 100644index 1fa3bb8e2e..0000000000--- a/packages/sheets-plugin-clipboard-office/index.html+++ /dev/null@@ -1,24 +0,0 @@-<!DOCTYPE html>-<html lang="en">--<head>- <meta charset="UTF-8" />- <link rel="icon" type="image/svg+xml" href="favicon.svg" />- <meta name="viewport" content="width=device-width, initial-scale=1.0" />- <title>UniverSheet</title>- <style>- html,- body {- height: 100%;- margin: 0;- }- </style>-</head>--<body>- <div id="app" style="position:absolute;z-index: 99999;"></div>- <div id="universheet" style="height: 100%;"></div>- <script type="module" src="/src/main.tsx"></script>-</body>--</html>\ No newline at end of filediff --git a/packages/sheets-plugin-clipboard-office/jest.config.js b/packages/sheets-plugin-clipboard-office/jest.config.jsdeleted file mode 100644index 73ef4bae42..0000000000--- a/packages/sheets-plugin-clipboard-office/jest.config.js+++ /dev/null@@ -1,18 +0,0 @@-/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */-module.exports = {- preset: 'ts-jest',- testEnvironment: 'jsdom',- moduleFileExtensions: ['js', 'ts', 'tsx'],-- roots: ['<rootDir>/src'],- testMatch: ['**/__tests__/**/*.+(ts|tsx|js)', '**/?(*.)+(spec|test).+(ts|tsx|js)'],- transform: {- '^.+\\.(ts|tsx)$': 'ts-jest',- '^.+\\.tsx?$': 'babel-jest', // https://github.com/kulshekhar/ts-jest/issues/937#issuecomment-455431207- },- globals: {- 'ts-jest': {- tsConfig: 'tsconfig.test.json',- },- },-};diff --git a/packages/sheets-plugin-clipboard-office/package.json b/packages/sheets-plugin-clipboard-office/package.jsondeleted file mode 100644index cfa5f02cd3..0000000000--- a/packages/sheets-plugin-clipboard-office/package.json+++ /dev/null@@ -1,57 +0,0 @@-{- "name": "@univer/sheets-plugin-clipboard-office",- "version": "0.0.1",- "description": "UniverSheet normal sheets-plugin-clipboard-office",- "keywords": [],- "author": "DreamNum <[email protected]>",- "license": "MIT",- "main": "./src/index.ts",- "module": "./src/index.ts",- "types": "./src/Types/index.d.ts",- "publishConfig": {- "main": "./lib/univer-sheets-plugin-clipboard-office.cjs.js",- "module": "./lib/univer-sheets-plugin-clipboard-office.es.js",- "types": "./lib/index.d.ts"- },- "exports": {- ".": "./src/index.ts",- "./*": "./src/*"- },- "directories": {- "lib": "lib"- },- "scripts": {- "test": "jest",- "dev": "vite",- "build": "tsc && vite build",- "watch": "vite build",- "link": "pnpm link ./",- "serve": "vite preview"- },- "devDependencies": {- "@preact/preset-vite": "2.0.0",- "@testing-library/preact": "^2.0.1",- "@types/jest": "^27.0.1",- "@types/node": "^16.4.6",- "@vitejs/plugin-legacy": "^1.5.1",- "eslint": "^8.22.0",- "eslint-config-airbnb-typescript": "^17.0.0",- "eslint-config-prettier": "^8.3.0",- "eslint-plugin-import": "^2.23.4",- "eslint-plugin-prettier": "^3.4.0",- "eslint-plugin-jsx-a11y": "^6.5.1",- "eslint-plugin-react": "^7.28.0",- "eslint-plugin-react-hooks": "^4.3.0",- "less": "^4.1.1",- "prettier": "^2.3.2",- "ts-jest": "29.0.1",- "ts-node": "^10.2.1",- "typescript": "^4.4.1-rc",- "vite": "^2.4.4"- },- "dependencies": {- "@univer/common-plugin-register": "workspace:^0.0.1",- "@univer/core": "workspace:^0.0.1",- "preact": "^10.5.14"- }-}diff --git a/packages/sheets-plugin-clipboard-office/src/Basic/Const/PLUGIN_NAME.ts b/packages/sheets-plugin-clipboard-office/src/Basic/Const/PLUGIN_NAME.tsdeleted file mode 100644index 7e840dba90..0000000000--- a/packages/sheets-plugin-clipboard-office/src/Basic/Const/PLUGIN_NAME.ts+++ /dev/null@@ -1 +0,0 @@-export const CLIPBOARD_OFFICE_PLUGIN_NAME = 'clipboardOffice';diff --git a/packages/sheets-plugin-clipboard-office/src/Basic/Const/index.ts b/packages/sheets-plugin-clipboard-office/src/Basic/Const/index.tsdeleted file mode 100644index 0dc96d927a..0000000000--- a/packages/sheets-plugin-clipboard-office/src/Basic/Const/index.ts+++ /dev/null@@ -1 +0,0 @@-export * from './PLUGIN_NAME';diff --git a/packages/sheets-plugin-clipboard-office/src/Basic/Enum/index.ts b/packages/sheets-plugin-clipboard-office/src/Basic/Enum/index.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/sheets-plugin-clipboard-office/src/Basic/Register/index.ts b/packages/sheets-plugin-clipboard-office/src/Basic/Register/index.tsdeleted file mode 100644index 380a06edd3..0000000000--- a/packages/sheets-plugin-clipboard-office/src/Basic/Register/index.ts+++ /dev/null@@ -1 +0,0 @@-export * from './ClipboardOfficeExtension';diff --git a/packages/sheets-plugin-clipboard-office/src/Basic/Shared/index.ts b/packages/sheets-plugin-clipboard-office/src/Basic/Shared/index.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/sheets-plugin-clipboard-office/src/Basic/index.ts b/packages/sheets-plugin-clipboard-office/src/Basic/index.tsdeleted file mode 100644index 640d1bb8b3..0000000000--- a/packages/sheets-plugin-clipboard-office/src/Basic/index.ts+++ /dev/null@@ -1,4 +0,0 @@-export * from './Const';-export * from './Enum';-export * from '../Locale';-export * from './Shared';diff --git a/packages/sheets-plugin-clipboard-office/src/ClipboardOfficePlugin.tsx b/packages/sheets-plugin-clipboard-office/src/ClipboardOfficePlugin.tsxdeleted file mode 100644index e7ed98a31c..0000000000--- a/packages/sheets-plugin-clipboard-office/src/ClipboardOfficePlugin.tsx+++ /dev/null@@ -1,59 +0,0 @@-import { Plugin, SheetContext, UniverSheet } from '@univer/core';-import { zh, en } from './Locale';-import { CLIPBOARD_OFFICE_PLUGIN_NAME } from './Basic/Const/PLUGIN_NAME';-import { ClipboardOfficeController } from './Controller/ClipboardOfficeController';-import { RegisterPlugin, REGISTER_PLUGIN_NAME } from '@univer/common-plugin-register';-import { ClipboardOfficeExtensionFactory } from './Basic/Register';--export interface IClipboardOfficePluginConfig {}--export class ClipboardOfficePlugin extends Plugin<any, SheetContext> {- private _clipboardOfficeController: ClipboardOfficeController;-- private _clipboardOfficeExtensionFactory: ClipboardOfficeExtensionFactory;-- constructor(config?: IClipboardOfficePluginConfig) {- super(CLIPBOARD_OFFICE_PLUGIN_NAME);- }-- static create(config?: IClipboardOfficePluginConfig) {- return new ClipboardOfficePlugin(config);- }-- installTo(universheetInstance: UniverSheet) {- universheetInstance.installPlugin(this);- }-- initialize(): void {- const context = this.getContext();-- /**- * load more Locale object- */- context.getLocale().load({- en: en,- zh: zh,- });-- this._clipboardOfficeController = new ClipboardOfficeController(this);-- this.registerExtension();- }-- registerExtension() {- const clipboardRegister = this.getContext().getPluginManager().getRequirePluginByName<RegisterPlugin>(REGISTER_PLUGIN_NAME).getClipboardExtensionManager().getRegister();-- this._clipboardOfficeExtensionFactory = new ClipboardOfficeExtensionFactory(this);- clipboardRegister.add(this._clipboardOfficeExtensionFactory);- }-- onMounted(): void {- this.initialize();- }-- onDestroy(): void {- const clipboardRegister = this.getContext().getPluginManager().getRequirePluginByName<RegisterPlugin>(REGISTER_PLUGIN_NAME).getClipboardExtensionManager().getRegister();-- clipboardRegister.delete(this._clipboardOfficeExtensionFactory);- }-}diff --git a/packages/sheets-plugin-clipboard-office/src/Controller/ClipboardOfficeController.ts b/packages/sheets-plugin-clipboard-office/src/Controller/ClipboardOfficeController.tsdeleted file mode 100644index e9ee83cd56..0000000000--- a/packages/sheets-plugin-clipboard-office/src/Controller/ClipboardOfficeController.ts+++ /dev/null@@ -1,9 +0,0 @@-import { ClipboardOfficePlugin } from '../ClipboardOfficePlugin';--export class ClipboardOfficeController {- protected _plugin: ClipboardOfficePlugin;-- constructor(plugin: ClipboardOfficePlugin) {- this._plugin = plugin;- }-}diff --git a/packages/sheets-plugin-clipboard-office/src/Controller/index.ts b/packages/sheets-plugin-clipboard-office/src/Controller/index.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/sheets-plugin-clipboard-office/src/Locale/en.ts b/packages/sheets-plugin-clipboard-office/src/Locale/en.tsdeleted file mode 100644index 6a9f149348..0000000000--- a/packages/sheets-plugin-clipboard-office/src/Locale/en.ts+++ /dev/null@@ -1,8 +0,0 @@-export default {- clipboardOffice: {- tooltip: 'ClipboardOffice',- one:'one',- two:'two',- three:'three',- },-};diff --git a/packages/sheets-plugin-clipboard-office/src/Locale/index.ts b/packages/sheets-plugin-clipboard-office/src/Locale/index.tsdeleted file mode 100644index 3ac4bcd0fd..0000000000--- a/packages/sheets-plugin-clipboard-office/src/Locale/index.ts+++ /dev/null@@ -1,4 +0,0 @@-import zh from './zh';-import en from './en';--export { zh, en };diff --git a/packages/sheets-plugin-clipboard-office/src/Locale/zh.ts b/packages/sheets-plugin-clipboard-office/src/Locale/zh.tsdeleted file mode 100644index 6372cd0f07..0000000000--- a/packages/sheets-plugin-clipboard-office/src/Locale/zh.ts+++ /dev/null@@ -1,8 +0,0 @@-export default {- clipboardOffice: {- tooltip: 'ClipboardOffice',- one:'一',- two:'二',- three:'三',- },-};diff --git a/packages/sheets-plugin-clipboard-office/src/Model/index.ts b/packages/sheets-plugin-clipboard-office/src/Model/index.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/sheets-plugin-clipboard-office/src/Service/index.ts b/packages/sheets-plugin-clipboard-office/src/Service/index.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/sheets-plugin-clipboard-office/src/Types/index.d.ts b/packages/sheets-plugin-clipboard-office/src/Types/index.d.tsdeleted file mode 100644index c104202495..0000000000--- a/packages/sheets-plugin-clipboard-office/src/Types/index.d.ts+++ /dev/null@@ -1,10 +0,0 @@-/// <reference types="vite/client" />--export * from '../index';-declare module '@univer/sheets-plugin-clipboard-office' {}--// use css module-declare module '*.less' {- const resource: { [key: string]: string };- export = resource;-}diff --git a/packages/sheets-plugin-clipboard-office/src/Types/preact.d.ts b/packages/sheets-plugin-clipboard-office/src/Types/preact.d.tsdeleted file mode 100644index 0d092b3751..0000000000--- a/packages/sheets-plugin-clipboard-office/src/Types/preact.d.ts+++ /dev/null@@ -1,4 +0,0 @@-/// <reference types="enzyme-adapter-preact-pure" />-import JSX = preact.JSX;--declare module 'enzyme';diff --git a/packages/sheets-plugin-clipboard-office/src/View/Render/index.ts b/packages/sheets-plugin-clipboard-office/src/View/Render/index.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/sheets-plugin-clipboard-office/src/View/UI/index.ts b/packages/sheets-plugin-clipboard-office/src/View/UI/index.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/sheets-plugin-clipboard-office/src/index.ts b/packages/sheets-plugin-clipboard-office/src/index.tsdeleted file mode 100644index 13900e4d96..0000000000--- a/packages/sheets-plugin-clipboard-office/src/index.ts+++ /dev/null@@ -1 +0,0 @@-export * from './ClipboardOfficePlugin';diff --git a/packages/sheets-plugin-clipboard-office/src/main.tsx b/packages/sheets-plugin-clipboard-office/src/main.tsxdeleted file mode 100644index eda94d565d..0000000000--- a/packages/sheets-plugin-clipboard-office/src/main.tsx+++ /dev/null@@ -1,22 +0,0 @@-import { UniverSheet } from '@univer/core';-import { RenderEngine } from '@univer/base-render';-import { SheetPlugin } from '@univer/base-sheets';-import { UniverComponentSheet } from '@univer/style-universheet';-import { DEFAULT_WORKBOOK_DATA } from '@univer/common-plugin-data';--import { ClipboardOfficePlugin } from './ClipboardOfficePlugin';-import { RegisterPlugin } from '@univer/common-plugin-register';--const uiDefaultConfigUp = {- container: 'universheet',- layout: 'auto',-};--const univerSheet = UniverSheet.newInstance(DEFAULT_WORKBOOK_DATA);--univerSheet.installPlugin(new RenderEngine());-univerSheet.installPlugin(new UniverComponentSheet());--univerSheet.installPlugin(new SheetPlugin(uiDefaultConfigUp));-univerSheet.installPlugin(new RegisterPlugin());-univerSheet.installPlugin(new ClipboardOfficePlugin());diff --git a/packages/sheets-plugin-clipboard-office/tsconfig.json b/packages/sheets-plugin-clipboard-office/tsconfig.jsondeleted file mode 100644index fc81cbd47e..0000000000--- a/packages/sheets-plugin-clipboard-office/tsconfig.json+++ /dev/null@@ -1,31 +0,0 @@-{- "compilerOptions": {- "rootDir": "./",- "outDir": "lib",- "target": "ESNext",-- "lib": ["ESNext", "DOM", "WebWorker"],- "module": "ESNext",- "moduleResolution": "Node", //This value is needed for Node.js.-- "declaration": true,- "declarationDir": "./lib",- "declarationMap": true,- "sourceMap": true,- "resolveJsonModule": true,- "strict": true,- "allowJs": true,-- "baseUrl": "./",- "skipLibCheck": true,- "esModuleInterop": true, // auto allowSyntheticDefaultImports tru- "suppressImplicitAnyIndexErrors": true,- "experimentalDecorators": true,- "jsx": "preserve",- "jsxFactory": "h",- "jsxFragmentFactory": "Fragment",- "strictPropertyInitialization": false,- "types": ["jest", "node", "@types/jest"]- },- "include": ["src/**/*", "test/**/*.test.(ts|tsx|js)"]-}diff --git a/packages/sheets-plugin-clipboard-office/tsconfig.ref.json b/packages/sheets-plugin-clipboard-office/tsconfig.ref.jsondeleted file mode 100644index 0c86b2c554..0000000000--- a/packages/sheets-plugin-clipboard-office/tsconfig.ref.json+++ /dev/null@@ -1,7 +0,0 @@-{- "extends": "./tsconfig.json",- "include": ["src/**/*"],- "compilerOptions": {- "composite": true- }-}diff --git a/packages/sheets-plugin-clipboard-office/tsconfig.test.json b/packages/sheets-plugin-clipboard-office/tsconfig.test.jsondeleted file mode 100644index a2ac02c4ae..0000000000--- a/packages/sheets-plugin-clipboard-office/tsconfig.test.json+++ /dev/null@@ -1,7 +0,0 @@-{- "extends": "./tsconfig.json",- "compilerOptions": {- "jsx": "react-jsx",- "jsxImportSource": "preact"- }-}diff --git a/packages/sheets-plugin-clipboard-office/vite.config.ts b/packages/sheets-plugin-clipboard-office/vite.config.tsdeleted file mode 100644index 020ecd6209..0000000000--- a/packages/sheets-plugin-clipboard-office/vite.config.ts+++ /dev/null@@ -1,44 +0,0 @@-import { defineConfig } from 'vite';-import path from 'path';-import preact from '@preact/preset-vite';-import legacy from '@vitejs/plugin-legacy';-import { name, version } from './package.json';--const resolve = (url: string) => path.resolve(__dirname, url);--export default defineConfig({- build: {- // lib: {- // entry: resolve('src/index.ts'),- // name: 'BaseStyleUniver',- // formats: ['es', 'umd'],- // fileName: 'index',- // },- // outDir: './lib',- },- define: {- pkgJson: { name, version },- },- css: {- modules: {- localsConvention: 'camelCaseOnly', // dash to camelCase conversion// .apply-color -> applyColor- generateScopedName: 'univer-[local]', // custom prefix class name- },- preprocessorOptions: {- less: {- javascriptEnabled: true,- },- },- },- server: {- port: 3103,- open: true, // Automatically open the app in the browser on server start.- },- plugins: [- preact(),- legacy({- targets: ['ie >= 11'],- additionalLegacyPolyfills: ['regenerator-runtime/runtime'],- }),- ],-});diff --git a/packages/sheets-plugin-clipboard/package.json b/packages/sheets-plugin-clipboard/package.jsonindex 1808272486..55fd53c8c9 100644--- a/packages/sheets-plugin-clipboard/package.json+++ b/packages/sheets-plugin-clipboard/package.json@@ -46,7 +46,6 @@"@univer/base-render": "workspace:^0.0.1","@univer/base-sheets": "workspace:^0.0.1","@univer/common-plugin-data": "workspace:^0.0.1",- "@univer/common-plugin-register": "workspace:^0.0.1","@univer/core": "workspace:^0.0.1","@univer/sheets-plugin-conditional-format": "workspace:^0.0.1","@univer/style-universheet": "workspace:^0.0.1",diff --git a/packages/sheets-plugin-clipboard/src/Basics/Register/ClipboardExtension.ts b/packages/sheets-plugin-clipboard/src/Basics/Register/ClipboardExtension.tsindex 8287a167bd..591161d301 100644--- a/packages/sheets-plugin-clipboard/src/Basics/Register/ClipboardExtension.ts+++ b/packages/sheets-plugin-clipboard/src/Basics/Register/ClipboardExtension.ts@@ -1,5 +1,4 @@-import { handelTableToJson, handlePlainToJson } from '@univer/base-component';-import { BaseClipboardExtension, BaseClipboardExtensionFactory, IClipboardData } from '@univer/common-plugin-register';+import { BaseClipboardExtension, BaseClipboardExtensionFactory, handelTableToJson, handlePlainToJson, IClipboardData } from '@univer/base-component';import { ClipboardPlugin } from '../../ClipboardPlugin';export class ClipboardExtension extends BaseClipboardExtension<ClipboardPlugin> {diff --git a/packages/sheets-plugin-clipboard-office/src/Basic/Register/ClipboardOfficeExtension.ts b/packages/sheets-plugin-clipboard/src/Basics/Register/ClipboardOfficeExtension.tssimilarity index 61%rename from packages/sheets-plugin-clipboard-office/src/Basic/Register/ClipboardOfficeExtension.tsrename to packages/sheets-plugin-clipboard/src/Basics/Register/ClipboardOfficeExtension.tsindex 7983bb756a..8b4c730657 100644--- a/packages/sheets-plugin-clipboard-office/src/Basic/Register/ClipboardOfficeExtension.ts+++ b/packages/sheets-plugin-clipboard/src/Basics/Register/ClipboardOfficeExtension.ts@@ -1,17 +1,20 @@-import { BaseClipboardExtension, BaseClipboardExtensionFactory, IClipboardData } from '@univer/common-plugin-register';-import { ClipboardOfficePlugin } from '../../ClipboardOfficePlugin';+import { BaseClipboardExtension, BaseClipboardExtensionFactory, IClipboardData } from '@univer/base-component';+import { ClipboardPlugin } from '../../ClipboardPlugin';-export class ClipboardOfficeExtension extends BaseClipboardExtension {+/**+ * TODO+ */+export class ClipboardOfficeExtension extends BaseClipboardExtension<ClipboardPlugin> {execute() {}}-export class ClipboardOfficeExtensionFactory extends BaseClipboardExtensionFactory<ClipboardOfficePlugin> {+export class ClipboardOfficeExtensionFactory extends BaseClipboardExtensionFactory<ClipboardPlugin> {get zIndex(): number {return 2;}create(data: IClipboardData): BaseClipboardExtension {- return new ClipboardOfficeExtension(data);+ return new ClipboardOfficeExtension(data, this._plugin);}check(data: IClipboardData): false | BaseClipboardExtension {diff --git a/packages/sheets-plugin-clipboard/src/ClipboardPlugin.tsx b/packages/sheets-plugin-clipboard/src/ClipboardPlugin.tsxindex f1b428d585..19f2f05ebf 100644--- a/packages/sheets-plugin-clipboard/src/ClipboardPlugin.tsx+++ b/packages/sheets-plugin-clipboard/src/ClipboardPlugin.tsx@@ -1,9 +1,10 @@-import { SheetContext, Plugin, UniverSheet } from '@univer/core';-import { RegisterPlugin, REGISTER_PLUGIN_NAME } from '@univer/common-plugin-register';+import { SheetContext, Plugin, UniverSheet, PLUGIN_NAMES } from '@univer/core';+import { BaseComponentPlugin } from '@univer/base-component';import { en, zh } from './Locale';import { CLIPBOARD_PLUGIN } from './Const';import { Copy, Paste, UniverCopy, UniverPaste } from './Domain';import { ClipboardExtensionFactory } from './Basics/Register/ClipboardExtension';+import { ClipboardOfficeExtensionFactory } from './Basics/Register/ClipboardOfficeExtension';interface CopyResolver {name: string;@@ -24,6 +25,8 @@ export class ClipboardPlugin extends Plugin<any, SheetContext> {private _clipboardExtensionFactory: ClipboardExtensionFactory;+ private _clipboardOfficeExtensionFactory: ClipboardOfficeExtensionFactory;+constructor() {super(CLIPBOARD_PLUGIN);}@@ -37,10 +40,19 @@ export class ClipboardPlugin extends Plugin<any, SheetContext> {}registerExtension() {- const clipboardRegister = this.getContext().getPluginManager().getRequirePluginByName<RegisterPlugin>(REGISTER_PLUGIN_NAME).getClipboardExtensionManager().getRegister();+ const clipboardRegister = this.getContext()+ .getPluginManager()+ .getRequirePluginByName<BaseComponentPlugin>(PLUGIN_NAMES.BASE_COMPONENT)+ .getRegisterManager()+ .getClipboardExtensionManager()+ .getRegister();+ // const clipboardRegister = this.getContext().getPluginManager().getRequirePluginByName<RegisterPlugin>(REGISTER_PLUGIN_NAME).getClipboardExtensionManager().getRegister();this._clipboardExtensionFactory = new ClipboardExtensionFactory(this);clipboardRegister.add(this._clipboardExtensionFactory);++ this._clipboardOfficeExtensionFactory = new ClipboardOfficeExtensionFactory(this);+ clipboardRegister.add(this._clipboardOfficeExtensionFactory);}installTo(universheetInstance: UniverSheet) {@@ -48,8 +60,15 @@ export class ClipboardPlugin extends Plugin<any, SheetContext> {}onDestroy(): void {- const clipboardRegister = this.getContext().getPluginManager().getRequirePluginByName<RegisterPlugin>(REGISTER_PLUGIN_NAME).getClipboardExtensionManager().getRegister();+ const clipboardRegister = this.getContext()+ .getPluginManager()+ .getRequirePluginByName<BaseComponentPlugin>(PLUGIN_NAMES.BASE_COMPONENT)+ .getRegisterManager()+ .getClipboardExtensionManager()+ .getRegister();clipboardRegister.delete(this._clipboardExtensionFactory);++ clipboardRegister.delete(this._clipboardOfficeExtensionFactory);}onMounted(context: SheetContext): void {diff --git a/packages/sheets-plugin-clipboard/src/main.tsx b/packages/sheets-plugin-clipboard/src/main.tsxdeleted file mode 100644index cbab74aed1..0000000000--- a/packages/sheets-plugin-clipboard/src/main.tsx+++ /dev/null@@ -1,45 +0,0 @@-import { UniverSheet } from '@univer/core';-import { RenderEngine } from '@univer/base-render';-import { DEFAULT_WORKBOOK_DATA, DEFAULT_WORKBOOK_DATA_DOWN } from '@univer/common-plugin-data';-import { SheetPlugin } from '@univer/base-sheets';-import { UniverComponentSheet } from '@univer/style-universheet';-import { RegisterPlugin } from '@univer/common-plugin-register';-import { ClipboardPlugin } from './ClipboardPlugin';--const uiDefaultConfigUp = {- container: 'universheet-demo-up',- layout: 'auto',-};--const univerSheetUp = UniverSheet.newInstance(DEFAULT_WORKBOOK_DATA);-univerSheetUp.installPlugin(new RenderEngine());-univerSheetUp.installPlugin(new UniverComponentSheet());-univerSheetUp.installPlugin(new SheetPlugin(uiDefaultConfigUp));-univerSheetUp.installPlugin(new RegisterPlugin());-univerSheetUp.installPlugin(new ClipboardPlugin());--const uiDefaultConfigDown = {- container: 'universheet-demo-down',- selections: {- 'sheet-0001': [- {- selection: {- startRow: 2,- endRow: 2,- startColumn: 3,- endColumn: 3,- },- cell: {- row: 2,- column: 3,- },- },- ],- },-};--const univerSheetDown = UniverSheet.newInstance(DEFAULT_WORKBOOK_DATA_DOWN);-univerSheetDown.installPlugin(new RenderEngine());-univerSheetDown.installPlugin(new UniverComponentSheet());--univerSheetDown.installPlugin(new SheetPlugin(uiDefaultConfigDown));diff --git a/packages/sheets-plugin-comment/src/main.tsx b/packages/sheets-plugin-comment/src/main.tsxindex 2b80e99486..ec35e8a6c9 100644--- a/packages/sheets-plugin-comment/src/main.tsx+++ b/packages/sheets-plugin-comment/src/main.tsx@@ -6,7 +6,6 @@ import { UniverComponentSheet } from '@univer/style-universheet';const uiDefaultConfigUp = {container: 'universheet-demo-up',- layout: 'auto',};const univerSheetUp = UniverSheet.newInstance(DEFAULT_WORKBOOK_DATA);diff --git a/packages/sheets-plugin-conditional-format/src/main.tsx b/packages/sheets-plugin-conditional-format/src/main.tsxindex d4d0deb9f3..bc9d52cb10 100644--- a/packages/sheets-plugin-conditional-format/src/main.tsx+++ b/packages/sheets-plugin-conditional-format/src/main.tsx@@ -6,7 +6,6 @@ import { UniverComponentSheet } from '@univer/style-universheet';const uiDefaultConfigUp = {container: 'universheet-demo-up',- layout: 'auto',};const univerSheetUp = UniverSheet.newInstance(DEFAULT_WORKBOOK_DATA);diff --git a/packages/sheets-plugin-data-validation/src/main.tsx b/packages/sheets-plugin-data-validation/src/main.tsxindex 8bfecf8177..4d9c4d0921 100644--- a/packages/sheets-plugin-data-validation/src/main.tsx+++ b/packages/sheets-plugin-data-validation/src/main.tsx@@ -6,7 +6,6 @@ import { UniverComponentSheet } from '@univer/style-universheet';const uiDefaultConfigUp = {container: 'universheet-demo-up',- layout: 'auto',};const univerSheetUp = UniverSheet.newInstance(DEFAULT_WORKBOOK_DATA);diff --git a/packages/sheets-plugin-filter/src/main.tsx b/packages/sheets-plugin-filter/src/main.tsxindex c581841a90..6c075c2331 100644--- a/packages/sheets-plugin-filter/src/main.tsx+++ b/packages/sheets-plugin-filter/src/main.tsx@@ -6,7 +6,6 @@ import { UniverComponentSheet } from '@univer/style-universheet';const uiDefaultConfigUp = {container: 'universheet-demo-up',- layout: 'auto',};const univerSheetUp = UniverSheet.newInstance(DEFAULT_WORKBOOK_DATA);diff --git a/packages/sheets-plugin-find/src/main.tsx b/packages/sheets-plugin-find/src/main.tsxindex 36a8946c26..2eeb883c33 100644--- a/packages/sheets-plugin-find/src/main.tsx+++ b/packages/sheets-plugin-find/src/main.tsx@@ -1,6 +1,5 @@const uiDefaultConfigUp = {container: 'universheet-demo-up',- layout: 'auto',};const uiDefaultConfigDown = {container: 'universheet-demo-down',@@ -24,9 +23,7 @@ const uiDefaultConfigDown = {};const uiDefaultConfigLeft = {container: 'universheet-demo-left',- layout: 'auto',};const uiDefaultConfigRight = {container: 'universheet-demo-right',- layout: 'auto',};diff --git a/packages/sheets-plugin-formula/src/main.tsx b/packages/sheets-plugin-formula/src/main.tsxindex 17a7d380db..1b654b24c3 100644--- a/packages/sheets-plugin-formula/src/main.tsx+++ b/packages/sheets-plugin-formula/src/main.tsx@@ -6,7 +6,6 @@ import { UniverComponentSheet } from '@univer/style-universheet';const uiDefaultConfigUp = {container: 'universheet-demo-up',- layout: 'auto',};const univerSheetUp = UniverSheet.newInstance(DEFAULT_WORKBOOK_DATA);diff --git a/packages/sheets-plugin-freeze/src/main.tsx b/packages/sheets-plugin-freeze/src/main.tsxindex 2b6ea79518..9525839500 100644--- a/packages/sheets-plugin-freeze/src/main.tsx+++ b/packages/sheets-plugin-freeze/src/main.tsx@@ -6,7 +6,6 @@ import { UniverComponentSheet } from '@univer/style-universheet';const uiDefaultConfigUp = {container: 'universheet-demo-up',- layout: 'auto',};const univerSheetUp = UniverSheet.newInstance(DEFAULT_WORKBOOK_DATA);diff --git a/packages/sheets-plugin-group/src/main.tsx b/packages/sheets-plugin-group/src/main.tsxindex 17564279cf..9388310b17 100644--- a/packages/sheets-plugin-group/src/main.tsx+++ b/packages/sheets-plugin-group/src/main.tsx@@ -8,7 +8,6 @@ import { GroupPlugin } from './GroupPlugin';const uiDefaultConfigUp = {container: 'universheet-demo',- layout: 'auto',};const univerSheetUp = UniverSheet.newInstance(DEFAULT_WORKBOOK_DATA);diff --git a/packages/sheets-plugin-image/src/main.tsx b/packages/sheets-plugin-image/src/main.tsxindex 762997c840..72a02585e4 100644--- a/packages/sheets-plugin-image/src/main.tsx+++ b/packages/sheets-plugin-image/src/main.tsx@@ -6,7 +6,6 @@ import { UniverComponentSheet } from '@univer/style-universheet';const uiDefaultConfigUp = {container: 'universheet-demo-up',- layout: 'auto',};const univerSheetUp = UniverSheet.newInstance(DEFAULT_WORKBOOK_DATA);univerSheetUp.installPlugin(new RenderEngine());diff --git a/packages/sheets-plugin-import-xlsx/src/main.tsx b/packages/sheets-plugin-import-xlsx/src/main.tsxindex 5693b29beb..f56f399def 100644--- a/packages/sheets-plugin-import-xlsx/src/main.tsx+++ b/packages/sheets-plugin-import-xlsx/src/main.tsx@@ -8,7 +8,6 @@ import { ImportXlsxPlugin } from './ImportXlsxPlugin';const uiDefaultConfigUp = {container: 'universheet',- layout: 'auto',};const univerSheetUp = UniverSheet.newInstance(DEFAULT_WORKBOOK_DATA);diff --git a/packages/sheets-plugin-link/src/main.tsx b/packages/sheets-plugin-link/src/main.tsxindex 15b556f135..6de8ab51e3 100644--- a/packages/sheets-plugin-link/src/main.tsx+++ b/packages/sheets-plugin-link/src/main.tsx@@ -6,7 +6,6 @@ import { UniverComponentSheet } from '@univer/style-universheet';const uiDefaultConfigUp = {container: 'universheet-demo-up',- layout: 'auto',};const univerSheetUp = UniverSheet.newInstance(DEFAULT_WORKBOOK_DATA);univerSheetUp.installPlugin(new RenderEngine());diff --git a/packages/sheets-plugin-pivot-table/src/main.tsx b/packages/sheets-plugin-pivot-table/src/main.tsxindex dd3b5336e0..5cbd573b03 100644--- a/packages/sheets-plugin-pivot-table/src/main.tsx+++ b/packages/sheets-plugin-pivot-table/src/main.tsx@@ -6,7 +6,6 @@ import { UniverComponentSheet } from '@univer/style-universheet';const uiDefaultConfigUp = {container: 'universheet-demo-up',- layout: 'auto',};const univerSheetUp = UniverSheet.newInstance(DEFAULT_WORKBOOK_DATA);diff --git a/packages/sheets-plugin-print/src/main.tsx b/packages/sheets-plugin-print/src/main.tsxindex 9ab9735275..662e7fdcf5 100644--- a/packages/sheets-plugin-print/src/main.tsx+++ b/packages/sheets-plugin-print/src/main.tsx@@ -6,7 +6,6 @@ import { UniverComponentSheet } from '@univer/style-universheet';const uiDefaultConfigUp = {container: 'universheet-demo-up',- layout: 'auto',};const univerSheetUp = UniverSheet.newInstance(DEFAULT_WORKBOOK_DATA);diff --git a/packages/sheets-plugin-protection/src/main.tsx b/packages/sheets-plugin-protection/src/main.tsxindex d7847a1726..5b1052721e 100644--- a/packages/sheets-plugin-protection/src/main.tsx+++ b/packages/sheets-plugin-protection/src/main.tsx@@ -6,7 +6,6 @@ import { UniverComponentSheet } from '@univer/style-universheet';const uiDefaultConfigUp = {container: 'universheet-demo',- layout: 'auto',};const univerSheetUp = UniverSheet.newInstance(DEFAULT_WORKBOOK_DATA);diff --git a/packages/sheets-plugin-screenshot/src/main.tsx b/packages/sheets-plugin-screenshot/src/main.tsxindex 4f8fed84ee..c589ceabfd 100644--- a/packages/sheets-plugin-screenshot/src/main.tsx+++ b/packages/sheets-plugin-screenshot/src/main.tsx@@ -6,7 +6,6 @@ import { UniverComponentSheet } from '@univer/style-universheet';const uiDefaultConfigUp = {container: 'universheet-demo-up',- layout: 'auto',};const univerSheetUp = UniverSheet.newInstance(DEFAULT_WORKBOOK_DATA);diff --git a/packages/sheets-plugin-split-column/src/main.tsx b/packages/sheets-plugin-split-column/src/main.tsxindex 374d4efd1d..e084ad8d35 100644--- a/packages/sheets-plugin-split-column/src/main.tsx+++ b/packages/sheets-plugin-split-column/src/main.tsx@@ -6,7 +6,6 @@ import { UniverComponentSheet } from '@univer/style-universheet';const uiDefaultConfigUp = {container: 'universheet-demo-up',- layout: 'auto',};const univerSheetUp = UniverSheet.newInstance(DEFAULT_WORKBOOK_DATA);