diff --git a/apps/client/package.json b/apps/client/package.json index dd837b42df..c113f23215 100644 --- a/apps/client/package.json +++ b/apps/client/package.json @@ -36,6 +36,7 @@ "@triliumnext/share-theme": "workspace:*", "@triliumnext/split.js": "workspace:*", "@univerjs/preset-sheets-core": "0.16.1", + "@univerjs/preset-sheets-note": "0.16.1", "@univerjs/presets": "0.16.1", "@zumer/snapdom": "2.0.2", "autocomplete.js": "0.38.1", diff --git a/apps/client/src/widgets/type_widgets/Spreadsheet.tsx b/apps/client/src/widgets/type_widgets/Spreadsheet.tsx index 2062cec760..649c09a141 100644 --- a/apps/client/src/widgets/type_widgets/Spreadsheet.tsx +++ b/apps/client/src/widgets/type_widgets/Spreadsheet.tsx @@ -2,13 +2,14 @@ import "@univerjs/preset-sheets-core/lib/index.css"; import "./Spreadsheet.css"; import { UniverSheetsCorePreset } from '@univerjs/preset-sheets-core'; -import UniverPresetSheetsCoreEnUS from '@univerjs/preset-sheets-core/locales/en-US'; +import sheetsCoreEnUS from '@univerjs/preset-sheets-core/locales/en-US'; +import { UniverSheetsNotePreset } from '@univerjs/preset-sheets-note'; +import sheetsNoteEnUS from '@univerjs/preset-sheets-note/locales/en-US'; import { CommandType, createUniver, FUniver, IDisposable, IWorkbookData, LocaleType, mergeLocales } from '@univerjs/presets'; import { MutableRef, useEffect, useRef } from "preact/hooks"; import NoteContext from "../../components/note_context"; import FNote from "../../entities/fnote"; -import server from "../../services/server"; import { SavedData, useColorScheme, useEditorSpacedUpdate, useTriliumEvent } from "../react/hooks"; import { TypeWidgetProps } from "./type_widget"; @@ -44,13 +45,15 @@ function useInitializeSpreadsheet(containerRef: MutableRef