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: add preset example (#7127)
wpxp1234560b121e395ff1
diff --git a/examples/package.json b/examples/package.jsonindex 56b411db37..4b9929140a 100644--- a/examples/package.json+++ b/examples/package.json@@ -42,7 +42,17 @@"@univerjs/preset-docs-drawing": "workspace:*","@univerjs/preset-docs-hyper-link": "workspace:*","@univerjs/preset-docs-thread-comment": "workspace:*",+ "@univerjs/preset-sheets-conditional-formatting": "workspace:*","@univerjs/preset-sheets-core": "workspace:*",+ "@univerjs/preset-sheets-data-validation": "workspace:*",+ "@univerjs/preset-sheets-drawing": "workspace:*",+ "@univerjs/preset-sheets-filter": "workspace:*",+ "@univerjs/preset-sheets-find-replace": "workspace:*",+ "@univerjs/preset-sheets-hyper-link": "workspace:*",+ "@univerjs/preset-sheets-note": "workspace:*",+ "@univerjs/preset-sheets-sort": "workspace:*",+ "@univerjs/preset-sheets-table": "workspace:*",+ "@univerjs/preset-sheets-thread-comment": "workspace:*","@univerjs/presets": "workspace:*","@univerjs/rpc": "workspace:*","@univerjs/rpc-node": "workspace:*",diff --git a/examples/src/preset-docs-core/main.ts b/examples/src/preset-docs-core/main.tsindex 30d33e78d8..7495ef0e60 100644--- a/examples/src/preset-docs-core/main.ts+++ b/examples/src/preset-docs-core/main.ts@@ -14,6 +14,8 @@* limitations under the License.*/+import type { FUniver, Univer } from '@univerjs/presets';+import { DEFAULT_DOCUMENT_DATA_SIMPLE } from '@univerjs/mockdata';import { UniverDocsCorePreset } from '@univerjs/preset-docs-core';@@ -56,13 +58,13 @@ const { univer, univerAPI } = createUniver({univer.createUnit(UniverInstanceType.UNIVER_DOC, DEFAULT_DOCUMENT_DATA_SIMPLE);+window.univer = univer;+window.univerAPI = univerAPI;+declare global {// eslint-disable-next-line ts/naming-conventioninterface Window {- univer?: typeof univer;- univerAPI?: typeof univerAPI;+ univer?: Univer;+ univerAPI?: FUniver;}}--window.univer = univer;-window.univerAPI = univerAPI;diff --git a/examples/src/preset-sheets-core-with-worker/main.ts b/examples/src/preset-sheets-core-with-worker/main.tsnew file mode 100644index 0000000000..7bc8fcb094--- /dev/null+++ b/examples/src/preset-sheets-core-with-worker/main.ts@@ -0,0 +1,104 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * 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 type { FUniver, Univer } from '@univerjs/presets';++import { DEFAULT_WORKBOOK_DATA_DEMO } from '@univerjs/mockdata';++import { UniverSheetsConditionalFormattingPreset } from '@univerjs/preset-sheets-conditional-formatting';+import UniverPresetSheetsConditionalFormattingZhCN from '@univerjs/preset-sheets-conditional-formatting/locales/zh-CN';++import { UniverSheetsCorePreset } from '@univerjs/preset-sheets-core';+import UniverPresetSheetsCoreZhCN from '@univerjs/preset-sheets-core/locales/zh-CN';++import { UniverSheetsDataValidationPreset } from '@univerjs/preset-sheets-data-validation';+import UniverPresetSheetsDataValidationZhCN from '@univerjs/preset-sheets-data-validation/locales/zh-CN';++import { UniverSheetsDrawingPreset } from '@univerjs/preset-sheets-drawing';+import UniverPresetSheetsDrawingZhCN from '@univerjs/preset-sheets-drawing/locales/zh-CN';++import { UniverSheetsFilterPreset } from '@univerjs/preset-sheets-filter';+import UniverPresetSheetsFilterZhCN from '@univerjs/preset-sheets-filter/locales/zh-CN';++import { UniverSheetsFindReplacePreset } from '@univerjs/preset-sheets-find-replace';+import UniverPresetSheetsFindReplaceZhCN from '@univerjs/preset-sheets-find-replace/locales/zh-CN';++import { UniverSheetsHyperLinkPreset } from '@univerjs/preset-sheets-hyper-link';+import UniverPresetSheetsHyperLinkZhCN from '@univerjs/preset-sheets-hyper-link/locales/zh-CN';++import { UniverSheetsNotePreset } from '@univerjs/preset-sheets-note';+import UniverPresetSheetsNoteZhCN from '@univerjs/preset-sheets-note/locales/zh-CN';++import { UniverSheetsSortPreset } from '@univerjs/preset-sheets-sort';+import UniverPresetSheetsSortZhCN from '@univerjs/preset-sheets-sort/locales/zh-CN';++import { UniverSheetsTablePreset } from '@univerjs/preset-sheets-table';+import UniverPresetSheetsTableZhCN from '@univerjs/preset-sheets-table/locales/zh-CN';++import { UniverSheetsThreadCommentPreset } from '@univerjs/preset-sheets-thread-comment';+import UniverPresetSheetsThreadCommentZhCN from '@univerjs/preset-sheets-thread-comment/locales/zh-CN';++import { createUniver, defaultTheme, LocaleType, mergeLocales } from '@univerjs/presets';++import '../global.css';++const { univer, univerAPI } = createUniver({+ locale: LocaleType.ZH_CN,+ locales: {+ zhCN: mergeLocales(+ UniverPresetSheetsCoreZhCN,+ UniverPresetSheetsDrawingZhCN,+ UniverPresetSheetsConditionalFormattingZhCN,+ UniverPresetSheetsDataValidationZhCN,+ UniverPresetSheetsFilterZhCN,+ UniverPresetSheetsFindReplaceZhCN,+ UniverPresetSheetsHyperLinkZhCN,+ UniverPresetSheetsNoteZhCN,+ UniverPresetSheetsSortZhCN,+ UniverPresetSheetsTableZhCN,+ UniverPresetSheetsThreadCommentZhCN+ ),+ },+ theme: defaultTheme,+ presets: [+ UniverSheetsCorePreset({+ workerURL: new Worker(new URL('./worker.js', import.meta.url), { type: 'module' }),+ }),+ UniverSheetsDrawingPreset(),+ UniverSheetsConditionalFormattingPreset(),+ UniverSheetsFilterPreset(),+ UniverSheetsHyperLinkPreset(),+ UniverSheetsDataValidationPreset(),+ UniverSheetsFindReplacePreset(),+ UniverSheetsNotePreset(),+ UniverSheetsSortPreset(),+ UniverSheetsTablePreset(),+ UniverSheetsThreadCommentPreset(),+ ],+});++univerAPI.createWorkbook(DEFAULT_WORKBOOK_DATA_DEMO);++window.univer = univer;+window.univerAPI = univerAPI;++declare global {+ // eslint-disable-next-line ts/naming-convention+ interface Window {+ univer?: Univer;+ univerAPI?: FUniver;+ }+}diff --git a/examples/src/preset-sheets-core/worker.ts b/examples/src/preset-sheets-core-with-worker/worker.tssimilarity index 58%rename from examples/src/preset-sheets-core/worker.tsrename to examples/src/preset-sheets-core-with-worker/worker.tsindex 183470fe5a..1a19350e28 100644--- a/examples/src/preset-sheets-core/worker.ts+++ b/examples/src/preset-sheets-core-with-worker/worker.ts@@ -14,11 +14,24 @@* limitations under the License.*/+import UniverPresetSheetsCoreZhCN from '@univerjs/preset-sheets-core/locales/zh-CN';import { UniverSheetsCoreWorkerPreset } from '@univerjs/preset-sheets-core/worker';-import { createUniver } from '@univerjs/presets';++import UniverPresetSheetsFilterZhCN from '@univerjs/preset-sheets-filter/locales/zh-CN';+import { UniverSheetsFilterWorkerPreset } from '@univerjs/preset-sheets-filter/worker';++import { createUniver, LocaleType, mergeLocales } from '@univerjs/presets';createUniver({+ locale: LocaleType.ZH_CN,+ locales: {+ zhCN: mergeLocales(+ UniverPresetSheetsCoreZhCN,+ UniverPresetSheetsFilterZhCN+ ),+ },presets: [UniverSheetsCoreWorkerPreset(),+ UniverSheetsFilterWorkerPreset(),],});diff --git a/examples/src/preset-sheets-core/custom-plugin/import-csv-button.ts b/examples/src/preset-sheets-core/custom-plugin/import-csv-button.tsnew file mode 100644index 0000000000..73d436cccc--- /dev/null+++ b/examples/src/preset-sheets-core/custom-plugin/import-csv-button.ts@@ -0,0 +1,227 @@+/**+ * Copyright 2023-present DreamNum Co., Ltd.+ *+ * 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 type { ISetRangeValuesMutationParams, ISetWorksheetColumnCountMutationParams, ISetWorksheetRowCountMutationParams } from '@univerjs/preset-sheets-core';+import type { ICommand, IMutationInfo, Workbook } from '@univerjs/presets';+import { FolderIcon } from '@univerjs/icons';+import {+ IconManager,+ IMenuManagerService,+ MenuItemType,+ RibbonStartGroup,+ SetRangeValuesMutation,+ SetRangeValuesUndoMutationFactory,+ SetWorksheetColumnCountMutation,+ SetWorksheetColumnCountUndoMutationFactory,+ SetWorksheetRowCountMutation,+ SetWorksheetRowCountUndoMutationFactory,+} from '@univerjs/preset-sheets-core';+import {+ CommandType,+ covertCellValues,+ ICommandService,+ Inject,+ Injector,+ IUndoRedoService,+ IUniverInstanceService,+ Plugin,+ sequenceExecute,+ UniverInstanceType,+} from '@univerjs/presets';++/**+ * wait user select csv file+ */+function waitUserSelectCSVFile(onSelect: (data: {+ data: string[][];+ colsCount: number;+ rowsCount: number;+}) => boolean): Promise<boolean> {+ return new Promise((resolve) => {+ const input = document.createElement('input');+ input.type = 'file';+ input.accept = '.csv';+ input.click();++ input.onchange = () => {+ const file = input.files?.[0];+ if (!file) {+ return;+ }++ const reader = new FileReader();+ reader.onload = () => {+ const text = reader.result;+ if (typeof text !== 'string') {+ return;+ }++ // tip: use npm package to parse csv+ const rows = text.split(/\r\n|\n/);+ const data = rows.map((line) => line.split(','));++ const colsCount = data.reduce((max, row) => Math.max(max, row.length), 0);++ const result = onSelect({+ data,+ colsCount,+ rowsCount: data.length,+ });++ resolve(result);+ };+ reader.readAsText(file);+ };+ });+}++/**+ * Import CSV Button Plugin+ * A simple Plugin example, show how to write a plugin.+ */+class ImportCSVButtonPlugin extends Plugin {+ static override pluginName = 'import-csv-plugin';++ constructor(+ _config: null,+ @Inject(Injector) readonly _injector: Injector,+ @Inject(IMenuManagerService) private readonly _menuManagerService: IMenuManagerService,+ @Inject(ICommandService) private readonly _commandService: ICommandService,+ @Inject(IconManager) private readonly _iconManager: IconManager+ ) {+ super();+ }++ /**+ * The first lifecycle of the plugin mounted on the Univer instance,+ * the Univer business instance has not been created at this time.+ * The plugin should add its own module to the dependency injection system at this lifecycle.+ * It is not recommended to initialize the internal module of the plugin outside this lifecycle.+ */++ override onStarting() {+ // register icon component+ this.disposeWithMe(+ this._iconManager.register('FolderIcon2', FolderIcon)+ );++ const buttonId = 'import-csv-button';++ const command: ICommand = {+ type: CommandType.OPERATION,+ id: buttonId,+ handler: (accessor) => {+ // inject univer instance service+ const univerInstanceService = accessor.get(IUniverInstanceService);+ const commandService = accessor.get(ICommandService);+ const undoRedoService = accessor.get(IUndoRedoService);++ // get current sheet+ const worksheet = univerInstanceService.getCurrentUnitOfType<Workbook>(UniverInstanceType.UNIVER_SHEET)!.getActiveSheet();+ const unitId = worksheet.getUnitId();+ const subUnitId = worksheet.getSheetId();++ // wait user select csv file, then assemble multiple mutations operation to enable correct undo/redo+ return waitUserSelectCSVFile(({ data, rowsCount, colsCount }) => {+ const redoMutations: IMutationInfo[] = [];+ const undoMutations: IMutationInfo[] = [];++ // set sheet row count+ const setRowCountMutationRedoParams: ISetWorksheetRowCountMutationParams = {+ unitId,+ subUnitId,+ rowCount: rowsCount,+ };+ const setRowCountMutationUndoParams: ISetWorksheetRowCountMutationParams = SetWorksheetRowCountUndoMutationFactory(+ accessor,+ setRowCountMutationRedoParams+ );+ redoMutations.push({ id: SetWorksheetRowCountMutation.id, params: setRowCountMutationRedoParams });+ undoMutations.push({ id: SetWorksheetRowCountMutation.id, params: setRowCountMutationUndoParams });++ // set sheet column count+ const setColumnCountMutationRedoParams: ISetWorksheetColumnCountMutationParams = {+ unitId,+ subUnitId,+ columnCount: colsCount,+ };+ const setColumnCountMutationUndoParams: ISetWorksheetColumnCountMutationParams = SetWorksheetColumnCountUndoMutationFactory(+ accessor,+ setColumnCountMutationRedoParams+ );+ redoMutations.push({ id: SetWorksheetColumnCountMutation.id, params: setColumnCountMutationRedoParams });+ undoMutations.unshift({ id: SetWorksheetColumnCountMutation.id, params: setColumnCountMutationUndoParams });++ // parse csv to univer data+ const cellValue = covertCellValues(data, {+ startColumn: 0, // start column index+ startRow: 0, // start row index+ endColumn: colsCount - 1, // end column index+ endRow: rowsCount - 1, // end row index+ });++ // set sheet data+ const setRangeValuesMutationRedoParams: ISetRangeValuesMutationParams = {+ unitId,+ subUnitId,+ cellValue,+ };+ const setRangeValuesMutationUndoParams: ISetRangeValuesMutationParams = SetRangeValuesUndoMutationFactory(+ accessor,+ setRangeValuesMutationRedoParams+ );+ redoMutations.push({ id: SetRangeValuesMutation.id, params: setRangeValuesMutationRedoParams });+ undoMutations.unshift({ id: SetRangeValuesMutation.id, params: setRangeValuesMutationUndoParams });++ const result = sequenceExecute(redoMutations, commandService);++ if (result.result) {+ undoRedoService.pushUndoRedo({+ unitID: unitId,+ undoMutations,+ redoMutations,+ });++ return true;+ }++ return false;+ });+ },+ };++ const menuItemFactory = () => ({+ id: buttonId,+ title: 'Import CSV',+ tooltip: 'Import CSV',+ icon: 'FolderIcon2', // icon name+ type: MenuItemType.BUTTON,+ });++ this._menuManagerService.mergeMenu({+ [RibbonStartGroup.OTHERS]: {+ [buttonId]: {+ order: 10,+ menuItemFactory,+ },+ },+ });++ this._commandService.registerCommand(command);+ }+}++export default ImportCSVButtonPlugin;diff --git a/examples/src/preset-sheets-core/main.ts b/examples/src/preset-sheets-core/main.tsindex 3e9dc6bd63..8bc4bec3da 100644--- a/examples/src/preset-sheets-core/main.ts+++ b/examples/src/preset-sheets-core/main.ts@@ -14,36 +14,91 @@* limitations under the License.*/-import { DEFAULT_WORKBOOK_DATA_DEMO } from '@univerjs/mockdata';+import type { FUniver, Univer } from '@univerjs/presets';++import { UniverSheetsConditionalFormattingPreset } from '@univerjs/preset-sheets-conditional-formatting';+import UniverPresetSheetsConditionalFormattingZhCN from '@univerjs/preset-sheets-conditional-formatting/locales/zh-CN';+import { UniverSheetsCorePreset } from '@univerjs/preset-sheets-core';import UniverPresetSheetsCoreZhCN from '@univerjs/preset-sheets-core/locales/zh-CN';-import { createUniver, LocaleType, LogLevel, mergeLocales } from '@univerjs/presets';++import { UniverSheetsDataValidationPreset } from '@univerjs/preset-sheets-data-validation';+import UniverPresetSheetsDataValidationZhCN from '@univerjs/preset-sheets-data-validation/locales/zh-CN';++import { UniverSheetsDrawingPreset } from '@univerjs/preset-sheets-drawing';+import UniverPresetSheetsDrawingZhCN from '@univerjs/preset-sheets-drawing/locales/zh-CN';++import { UniverSheetsFilterPreset } from '@univerjs/preset-sheets-filter';+import UniverPresetSheetsFilterZhCN from '@univerjs/preset-sheets-filter/locales/zh-CN';++import { UniverSheetsFindReplacePreset } from '@univerjs/preset-sheets-find-replace';+import UniverPresetSheetsFindReplaceZhCN from '@univerjs/preset-sheets-find-replace/locales/zh-CN';++import { UniverSheetsHyperLinkPreset } from '@univerjs/preset-sheets-hyper-link';+import UniverPresetSheetsHyperLinkZhCN from '@univerjs/preset-sheets-hyper-link/locales/zh-CN';++import { UniverSheetsNotePreset } from '@univerjs/preset-sheets-note';+import UniverPresetSheetsNoteZhCN from '@univerjs/preset-sheets-note/locales/zh-CN';++import { UniverSheetsSortPreset } from '@univerjs/preset-sheets-sort';+import UniverPresetSheetsSortZhCN from '@univerjs/preset-sheets-sort/locales/zh-CN';++import { UniverSheetsTablePreset } from '@univerjs/preset-sheets-table';+import UniverPresetSheetsTableZhCN from '@univerjs/preset-sheets-table/locales/zh-CN';++import { UniverSheetsThreadCommentPreset } from '@univerjs/preset-sheets-thread-comment';+import UniverPresetSheetsThreadCommentZhCN from '@univerjs/preset-sheets-thread-comment/locales/zh-CN';++import { createUniver, defaultTheme, LocaleType, mergeLocales } from '@univerjs/presets';+import ImportCSVButtonPlugin from './custom-plugin/import-csv-button';import '../global.css';const { univer, univerAPI } = createUniver({locale: LocaleType.ZH_CN,locales: {- [LocaleType.ZH_CN]: mergeLocales(UniverPresetSheetsCoreZhCN),+ zhCN: mergeLocales(+ UniverPresetSheetsCoreZhCN,+ UniverPresetSheetsDrawingZhCN,+ UniverPresetSheetsConditionalFormattingZhCN,+ UniverPresetSheetsDataValidationZhCN,+ UniverPresetSheetsFilterZhCN,+ UniverPresetSheetsFindReplaceZhCN,+ UniverPresetSheetsHyperLinkZhCN,+ UniverPresetSheetsNoteZhCN,+ UniverPresetSheetsSortZhCN,+ UniverPresetSheetsTableZhCN,+ UniverPresetSheetsThreadCommentZhCN+ ),},- logLevel: LogLevel.VERBOSE,+ theme: defaultTheme,presets: [- UniverSheetsCorePreset({- container: 'app',- workerURL: new Worker(new URL('./worker.js', import.meta.url), { type: 'module' }),- }),+ UniverSheetsCorePreset(),+ UniverSheetsDrawingPreset(),+ UniverSheetsConditionalFormattingPreset(),+ UniverSheetsFilterPreset(),+ UniverSheetsHyperLinkPreset(),+ UniverSheetsDataValidationPreset(),+ UniverSheetsFindReplacePreset(),+ UniverSheetsNotePreset(),+ UniverSheetsSortPreset(),+ UniverSheetsTablePreset(),+ UniverSheetsThreadCommentPreset(),+ ],+ plugins: [+ ImportCSVButtonPlugin,],});-univerAPI.createWorkbook(DEFAULT_WORKBOOK_DATA_DEMO);+univerAPI.createWorkbook({ name: 'Test Sheet' });++window.univer = univer;+window.univerAPI = univerAPI;declare global {// eslint-disable-next-line ts/naming-conventioninterface Window {- univer?: typeof univer;- univerAPI?: typeof univerAPI;+ univer?: Univer;+ univerAPI?: FUniver;}}--window.univer = univer;-window.univerAPI = univerAPI;diff --git a/examples/src/sheets/custom/import-csv-button.ts b/examples/src/sheets/custom/import-csv-button.tsindex 4f2bdfc9cc..13cd26d573 100644--- a/examples/src/sheets/custom/import-csv-button.ts+++ b/examples/src/sheets/custom/import-csv-button.ts@@ -38,7 +38,7 @@ import {SetWorksheetRowCountUndoMutationFactory,} from '@univerjs/sheets';import {- ComponentManager,+ IconManager,IMenuManagerService,MenuItemType,RibbonOthersGroup,@@ -94,14 +94,10 @@ class ImportCSVButtonPlugin extends Plugin {constructor(_config: null,- // inject injector, required@Inject(Injector) readonly _injector: Injector,- // inject menu service, to add toolbar button- @Inject(IMenuManagerService) private readonly menuManagerService: IMenuManagerService,- // inject command service, to register command handler- @Inject(ICommandService) private readonly commandService: ICommandService,- // inject component manager, to register icon component- @Inject(ComponentManager) private readonly componentManager: ComponentManager+ @Inject(IMenuManagerService) private readonly _menuManagerService: IMenuManagerService,+ @Inject(ICommandService) private readonly _commandService: ICommandService,+ @Inject(IconManager) private readonly _iconManager: IconManager) {super();}@@ -116,7 +112,7 @@ class ImportCSVButtonPlugin extends Plugin {override onStarting() {// register icon componentthis.disposeWithMe(- this.componentManager.register('FolderIcon2', FolderIcon)+ this._iconManager.register('FolderIcon2', FolderIcon));const buttonId = 'import-csv-button';@@ -212,7 +208,7 @@ class ImportCSVButtonPlugin extends Plugin {type: MenuItemType.BUTTON,});- this.menuManagerService.mergeMenu({+ this._menuManagerService.mergeMenu({[RibbonOthersGroup.OTHERS]: {[buttonId]: {order: 10,@@ -221,7 +217,7 @@ class ImportCSVButtonPlugin extends Plugin {},});- this.commandService.registerCommand(command);+ this._commandService.registerCommand(command);}}diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 9f566a2efa..3395288083 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -535,9 +535,39 @@ importers:'@univerjs/preset-docs-thread-comment':specifier: workspace:*version: link:../presets/packages/preset-docs-thread-comment+ '@univerjs/preset-sheets-conditional-formatting':+ specifier: workspace:*+ version: link:../presets/packages/preset-sheets-conditional-formatting'@univerjs/preset-sheets-core':specifier: workspace:*version: link:../presets/packages/preset-sheets-core+ '@univerjs/preset-sheets-data-validation':+ specifier: workspace:*+ version: link:../presets/packages/preset-sheets-data-validation+ '@univerjs/preset-sheets-drawing':+ specifier: workspace:*+ version: link:../presets/packages/preset-sheets-drawing+ '@univerjs/preset-sheets-filter':+ specifier: workspace:*+ version: link:../presets/packages/preset-sheets-filter+ '@univerjs/preset-sheets-find-replace':+ specifier: workspace:*+ version: link:../presets/packages/preset-sheets-find-replace+ '@univerjs/preset-sheets-hyper-link':+ specifier: workspace:*+ version: link:../presets/packages/preset-sheets-hyper-link+ '@univerjs/preset-sheets-note':+ specifier: workspace:*+ version: link:../presets/packages/preset-sheets-note+ '@univerjs/preset-sheets-sort':+ specifier: workspace:*+ version: link:../presets/packages/preset-sheets-sort+ '@univerjs/preset-sheets-table':+ specifier: workspace:*+ version: link:../presets/packages/preset-sheets-table+ '@univerjs/preset-sheets-thread-comment':+ specifier: workspace:*+ version: link:../presets/packages/preset-sheets-thread-comment'@univerjs/presets':specifier: workspace:*version: link:../presets