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
build(sheet): npm run start:dev with esbuild
Dushusir2d277f2fa582
diff --git a/examples/univer-doc-ts/package.json b/examples/univer-doc-ts/package.jsonindex 9dc16d7311..d3a00e1e81 100644--- a/examples/univer-doc-ts/package.json+++ b/examples/univer-doc-ts/package.json@@ -52,6 +52,6 @@"@univerjs/base-ui": "workspace:^0.0.1","@univerjs/common-plugin-data": "workspace:^0.0.1","@univerjs/core": "workspace:^0.0.1",- "preact": "^10.5.14"+ "preact": "^10.12.1"}}diff --git a/examples/univer-preact-ts/package.json b/examples/univer-preact-ts/package.jsonindex 8242e84a49..6cb9096cfd 100644--- a/examples/univer-preact-ts/package.json+++ b/examples/univer-preact-ts/package.json@@ -55,6 +55,6 @@"@univerjs/sheets-plugin-formula": "workspace:^0.0.1","@univerjs/sheets-plugin-import-xlsx": "workspace:^0.0.1","@univerjs/sheets-plugin-numfmt": "workspace:^0.0.1",- "preact": "^10.5.14"+ "preact": "^10.12.1"}}diff --git a/examples/univer-sheet-ts/local/index.html b/examples/univer-sheet-ts/local/index.htmlindex 08b2f47c2c..ecd17d3258 100644--- a/examples/univer-sheet-ts/local/index.html+++ b/examples/univer-sheet-ts/local/index.html@@ -16,7 +16,7 @@}</style>- <script src="./main.js"></script>+<script>new EventSource('/esbuild').addEventListener('change', () => {console.info('reload--')@@ -28,6 +28,8 @@<body><div id="app" style="z-index: 1; position: fixed; font-size: 20px; color: green;"></div><div id="universheet" style="height: 100%;"></div>++ <script src="./main.js"></script></body></html>\ No newline at end of filediff --git a/examples/univer-sheet-ts/package.json b/examples/univer-sheet-ts/package.jsonindex 98f7b878e9..a82a1e707b 100644--- a/examples/univer-sheet-ts/package.json+++ b/examples/univer-sheet-ts/package.json@@ -58,6 +58,6 @@"@univerjs/sheets-plugin-import-xlsx": "workspace:^0.0.1","@univerjs/sheets-plugin-numfmt": "workspace:^0.0.1","@univerjs/ui-plugin-sheets": "workspace:^0.0.1",- "preact": "^10.5.14"+ "preact": "^10.12.1"}}diff --git a/examples/univer-sheet-ts/public/index.html b/examples/univer-sheet-ts/public/index.htmlindex 08b2f47c2c..ecd17d3258 100644--- a/examples/univer-sheet-ts/public/index.html+++ b/examples/univer-sheet-ts/public/index.html@@ -16,7 +16,7 @@}</style>- <script src="./main.js"></script>+<script>new EventSource('/esbuild').addEventListener('change', () => {console.info('reload--')@@ -28,6 +28,8 @@<body><div id="app" style="z-index: 1; position: fixed; font-size: 20px; color: green;"></div><div id="universheet" style="height: 100%;"></div>++ <script src="./main.js"></script></body></html>\ No newline at end of filediff --git a/examples/univer-sheet-ts/scripts/build.ts b/examples/univer-sheet-ts/scripts/build.tsindex 6bb00f9e47..4c487410de 100644--- a/examples/univer-sheet-ts/scripts/build.ts+++ b/examples/univer-sheet-ts/scripts/build.ts@@ -1,9 +1,11 @@// scripts/build.tsimport { build } from "esbuild";import { promises } from "fs";-import { commonBuildOptions, paths } from "./common";+import { commonBuildOptions, hasFolder, paths } from "./common";-promises.rm(paths.out, { recursive: true });+if (hasFolder(paths.outDev)) {+ promises.rm(paths.out, { recursive: true });+}build({...commonBuildOptions,diff --git a/examples/univer-sheet-ts/scripts/common.ts b/examples/univer-sheet-ts/scripts/common.tsindex 04064e9ecf..7ebe6b42f7 100644--- a/examples/univer-sheet-ts/scripts/common.ts+++ b/examples/univer-sheet-ts/scripts/common.ts@@ -2,6 +2,7 @@import { BuildOptions } from "esbuild";import stylePlugin from 'esbuild-style-plugin'import { resolve } from "path";+import { existsSync, lstatSync } from "fs";const root = process.cwd();export const paths = {entry: resolve(root, "./src/main.tsx"),@@ -25,4 +26,15 @@ export const commonBuildOptions: BuildOptions = {}})]-};\ No newline at end of file+};++export function hasFolder(target) {++ if (existsSync(target)) {+ if (lstatSync(target).isDirectory()) {+ return true+ }+ }+ return false++}\ No newline at end of filediff --git a/examples/univer-sheet-ts/scripts/start.ts b/examples/univer-sheet-ts/scripts/start.tsindex 62bfc1f143..4f9a3b88b0 100644--- a/examples/univer-sheet-ts/scripts/start.ts+++ b/examples/univer-sheet-ts/scripts/start.ts@@ -1,21 +1,19 @@import * as esbuild from 'esbuild'-import { commonBuildOptions, paths } from "./common";+import { commonBuildOptions, hasFolder, paths } from "./common";import { promises } from "fs";(async () => {- await promises.rm(paths.outDev, { recursive: true });+ if (hasFolder(paths.outDev)) {+ await promises.rm(paths.outDev, { recursive: true });+ }await promises.mkdir(paths.outDev);await promises.copyFile(paths.index, `${paths.outDev}/index.html`);let ctx = await esbuild.context({...commonBuildOptions,outdir: paths.outDev,sourcemap: false,- // jsx: 'transform',- loader:{- '.tsx':'jsx'- }})await ctx.watch()@@ -24,6 +22,16 @@ import { promises } from "fs";servedir: paths.outDev,})- console.log('local server:', host, port);+ let url = `http://localhost:${port}`;++ console.log('local server:', url);++ var start =+ process.platform == "darwin"+ ? "open"+ : process.platform == "win32"+ ? "start"+ : "xdg-open";+ require("child_process").exec(start + " " + url);})();\ No newline at end of filediff --git a/examples/univer-sheet-ts/src/main.tsx b/examples/univer-sheet-ts/src/main.tsxindex b80f0c5e8d..96aecf499b 100644--- a/examples/univer-sheet-ts/src/main.tsx+++ b/examples/univer-sheet-ts/src/main.tsx@@ -56,9 +56,11 @@ univer.install(new RenderEngine());const universheet = UniverSheet.newInstance(DEFAULT_WORKBOOK_DATA_DEMO);// sheet.installPlugin(new RenderEngine());univer.addUniverSheet(universheet);-+console.info('univr--',univer)// base-sheetuniversheet.installPlugin(new SheetPlugin());++console.info('universheet--',universheet)// universheet.installPlugin(new FormulaPlugin(DEFAULT_FORMULA_DATA_DEMO));// ui-plugin-sheets@@ -67,7 +69,7 @@ univer.install(container: 'universheet',}));-FormulaPlugin.create(DEFAULT_FORMULA_DATA_DEMO1).installTo(universheet);+// FormulaPlugin.create(DEFAULT_FORMULA_DATA_DEMO1).installTo(universheet);// sheets-plugin-ui univer.install(new SheetsUI)// sheets-plugin-ui univer.install(new SheetsUI// const univerSheetDemo = UniverSheet.newInstance(DEFAULT_WORKBOOK_DATA_DEMO);diff --git a/examples/univer-sheet-ts/tsconfig.json b/examples/univer-sheet-ts/tsconfig.jsonindex 804a985266..7d8b1f32ba 100644--- a/examples/univer-sheet-ts/tsconfig.json+++ b/examples/univer-sheet-ts/tsconfig.json@@ -20,13 +20,15 @@"baseUrl": "./","skipLibCheck": true,"esModuleInterop": true, // auto allowSyntheticDefaultImports true- "jsx": "preserve", //+ "jsx": "preserve","jsxFactory": "h","jsxFragmentFactory": "Fragment",+ // "jsx": "react-jsx",+ // "jsxImportSource": "preact","experimentalDecorators": true,"emitDecoratorMetadata": true,"suppressImplicitAnyIndexErrors": true,"strictPropertyInitialization": false,},- "include": ["src/**/*", "test/**/*.test.(ts|tsx|js)"]+ "include": ["src/**/*", "test/**/*.test.(ts|tsx|js)","preact"]}diff --git a/examples/univer-slide-ts/package.json b/examples/univer-slide-ts/package.jsonindex d38b400cb5..5639735dac 100644--- a/examples/univer-slide-ts/package.json+++ b/examples/univer-slide-ts/package.json@@ -49,6 +49,6 @@"@univerjs/base-ui": "workspace:^0.0.1","@univerjs/common-plugin-data": "workspace:^0.0.1","@univerjs/core": "workspace:^0.0.1",- "preact": "^10.5.14"+ "preact": "^10.12.1"}}diff --git a/examples/univer-vanilla-ts/package.json b/examples/univer-vanilla-ts/package.jsonindex 6f73199d84..f2924753f1 100644--- a/examples/univer-vanilla-ts/package.json+++ b/examples/univer-vanilla-ts/package.json@@ -56,6 +56,6 @@"@univerjs/sheets-plugin-import-xlsx": "workspace:^0.0.1","@univerjs/sheets-plugin-numfmt": "workspace:^0.0.1","@univerjs/ui-plugin-sheets": "workspace:^0.0.1",- "preact": "^10.5.14"+ "preact": "^10.12.1"}}diff --git a/packages/base-docs/package.json b/packages/base-docs/package.jsonindex c25c10dee8..71aa3f5bd9 100644--- a/packages/base-docs/package.json+++ b/packages/base-docs/package.json@@ -58,6 +58,6 @@"@univerjs/common-plugin-data": "workspace:^0.0.1","@univerjs/core": "workspace:^0.0.1","css-vars-ponyfill": "^2.4.6",- "preact": "^10.5.14"+ "preact": "^10.12.1"}}diff --git a/packages/base-formula-engine/package.json b/packages/base-formula-engine/package.jsonindex 341581a160..0af2676e97 100644--- a/packages/base-formula-engine/package.json+++ b/packages/base-formula-engine/package.json@@ -54,6 +54,6 @@},"dependencies": {"@univerjs/core": "workspace:^0.0.1",- "preact": "^10.5.14"+ "preact": "^10.12.1"}}diff --git a/packages/base-slides/package.json b/packages/base-slides/package.jsonindex 5b9b800f28..5c6f3fb6ba 100644--- a/packages/base-slides/package.json+++ b/packages/base-slides/package.json@@ -58,6 +58,6 @@"@univerjs/common-plugin-data": "workspace:^0.0.1","@univerjs/core": "workspace:^0.0.1","css-vars-ponyfill": "^2.4.6",- "preact": "^10.5.14"+ "preact": "^10.12.1"}}diff --git a/packages/base-ui/package.json b/packages/base-ui/package.jsonindex 60c87cdbb2..a9a6cc0a54 100644--- a/packages/base-ui/package.json+++ b/packages/base-ui/package.json@@ -66,7 +66,7 @@"dependencies": {"@univerjs/base-render": "workspace:^0.0.1","@univerjs/core": "workspace:^0.0.1",- "preact": "^10.5.14",+ "preact": "^10.12.1","react-colorful": "^5.3.0"}}diff --git a/packages/base-ui/src/Components/CanvasIcon/CanvasIcon.tsx b/packages/base-ui/src/Components/CanvasIcon/CanvasIcon.tsxindex d435c988d2..f2831e8cd3 100644--- a/packages/base-ui/src/Components/CanvasIcon/CanvasIcon.tsx+++ b/packages/base-ui/src/Components/CanvasIcon/CanvasIcon.tsx@@ -1,6 +1,5 @@import { Component, createRef, RefObject } from '../../Framework';import Style from './index.module.less';-type IProps = {width: string;height: string;diff --git a/packages/base-ui/tsconfig.json b/packages/base-ui/tsconfig.jsonindex fd9e4edd9b..ab1b56129c 100644--- a/packages/base-ui/tsconfig.json+++ b/packages/base-ui/tsconfig.json@@ -21,11 +21,13 @@"esModuleInterop": true, // auto allowSyntheticDefaultImports tru"suppressImplicitAnyIndexErrors": true,"experimentalDecorators": true,- "jsx": "preserve",- "jsxFactory": "h",- "jsxFragmentFactory": "Fragment",+ // "jsx": "preserve",+ // "jsxFactory": "h",+ // "jsxFragmentFactory": "Fragment",+ "jsx": "react-jsx",+ "jsxImportSource": "preact","strictPropertyInitialization": false,"types": ["jest", "node", "@types/jest"]},- "include": ["src/**/*", "test/**/*.test.(ts|tsx|js)"]+ "include": ["src/**/*", "test/**/*.test.(ts|tsx|js)","preact"]}diff --git a/packages/common-plugin-collaboration/package.json b/packages/common-plugin-collaboration/package.jsonindex c4977955a9..26d3521f8a 100644--- a/packages/common-plugin-collaboration/package.json+++ b/packages/common-plugin-collaboration/package.json@@ -60,6 +60,6 @@"@univerjs/base-ui": "workspace:^0.0.1","@univerjs/common-plugin-data": "workspace:^0.0.1","@univerjs/core": "workspace:^0.0.1",- "preact": "^10.5.14"+ "preact": "^10.12.1"}}diff --git a/packages/sheets-plugin-alternating-colors/package.json b/packages/sheets-plugin-alternating-colors/package.jsonindex 40290e404f..13cd1539bb 100644--- a/packages/sheets-plugin-alternating-colors/package.json+++ b/packages/sheets-plugin-alternating-colors/package.json@@ -53,6 +53,6 @@"@univerjs/base-ui": "workspace:^0.0.1","@univerjs/common-plugin-data": "workspace:^0.0.1","@univerjs/core": "workspace:^0.0.1",- "preact": "^10.5.14"+ "preact": "^10.12.1"}}diff --git a/packages/sheets-plugin-clipboard/package.json b/packages/sheets-plugin-clipboard/package.jsonindex d2ebed3c49..4093233f11 100644--- a/packages/sheets-plugin-clipboard/package.json+++ b/packages/sheets-plugin-clipboard/package.json@@ -44,11 +44,11 @@"vite-plugin-external": "1.2.3"},"dependencies": {- "@univerjs/base-ui": "workspace:^0.0.1","@univerjs/base-render": "workspace:^0.0.1","@univerjs/base-sheets": "workspace:^0.0.1",+ "@univerjs/base-ui": "workspace:^0.0.1","@univerjs/common-plugin-data": "workspace:^0.0.1","@univerjs/core": "workspace:^0.0.1",- "preact": "^10.5.14"+ "preact": "^10.12.1"}}diff --git a/packages/sheets-plugin-comment/package.json b/packages/sheets-plugin-comment/package.jsonindex a7cafd7501..285e586a38 100644--- a/packages/sheets-plugin-comment/package.json+++ b/packages/sheets-plugin-comment/package.json@@ -52,6 +52,6 @@"@univerjs/base-ui": "workspace:^0.0.1","@univerjs/common-plugin-data": "workspace:^0.0.1","@univerjs/core": "workspace:^0.0.1",- "preact": "^10.5.14"+ "preact": "^10.12.1"}}diff --git a/packages/sheets-plugin-conditional-format/package.json b/packages/sheets-plugin-conditional-format/package.jsonindex 958630f0a0..b982d1983f 100644--- a/packages/sheets-plugin-conditional-format/package.json+++ b/packages/sheets-plugin-conditional-format/package.json@@ -53,6 +53,6 @@"@univerjs/base-ui": "workspace:^0.0.1","@univerjs/common-plugin-data": "workspace:^0.0.1","@univerjs/core": "workspace:^0.0.1",- "preact": "^10.5.14"+ "preact": "^10.12.1"}}diff --git a/packages/sheets-plugin-data-validation/package.json b/packages/sheets-plugin-data-validation/package.jsonindex d3bc5ff665..250f76979c 100644--- a/packages/sheets-plugin-data-validation/package.json+++ b/packages/sheets-plugin-data-validation/package.json@@ -53,6 +53,6 @@"@univerjs/base-ui": "workspace:^0.0.1","@univerjs/common-plugin-data": "workspace:^0.0.1","@univerjs/core": "workspace:^0.0.1",- "preact": "^10.5.14"+ "preact": "^10.12.1"}}diff --git a/packages/sheets-plugin-filter/package.json b/packages/sheets-plugin-filter/package.jsonindex c09fb6840a..687e1c34e6 100644--- a/packages/sheets-plugin-filter/package.json+++ b/packages/sheets-plugin-filter/package.json@@ -44,11 +44,11 @@"vite-plugin-external": "1.2.3"},"dependencies": {- "@univerjs/base-ui": "workspace:^0.0.1","@univerjs/base-render": "workspace:^0.0.1","@univerjs/base-sheets": "workspace:^0.0.1",+ "@univerjs/base-ui": "workspace:^0.0.1","@univerjs/common-plugin-data": "workspace:^0.0.1","@univerjs/core": "workspace:^0.0.1",- "preact": "^10.5.14"+ "preact": "^10.12.1"}}diff --git a/packages/sheets-plugin-find/package.json b/packages/sheets-plugin-find/package.jsonindex 5e4b741b40..1c24d0db31 100644--- a/packages/sheets-plugin-find/package.json+++ b/packages/sheets-plugin-find/package.json@@ -53,6 +53,6 @@"@univerjs/base-ui": "workspace:^0.0.1","@univerjs/common-plugin-data": "workspace:^0.0.1","@univerjs/core": "workspace:^0.0.1",- "preact": "^10.5.14"+ "preact": "^10.12.1"}}diff --git a/packages/sheets-plugin-freeze/package.json b/packages/sheets-plugin-freeze/package.jsonindex b59e47c1dd..66ca7b7662 100644--- a/packages/sheets-plugin-freeze/package.json+++ b/packages/sheets-plugin-freeze/package.json@@ -52,6 +52,6 @@"@univerjs/base-ui": "workspace:^0.0.1","@univerjs/common-plugin-data": "workspace:^0.0.1","@univerjs/core": "workspace:^0.0.1",- "preact": "^10.5.14"+ "preact": "^10.12.1"}}diff --git a/packages/sheets-plugin-group/package.json b/packages/sheets-plugin-group/package.jsonindex 97f42e4cd1..7aa26b3000 100644--- a/packages/sheets-plugin-group/package.json+++ b/packages/sheets-plugin-group/package.json@@ -57,6 +57,6 @@"@univerjs/base-ui": "workspace:^0.0.1","@univerjs/common-plugin-data": "workspace:^0.0.1","@univerjs/core": "workspace:^0.0.1",- "preact": "^10.5.14"+ "preact": "^10.12.1"}}diff --git a/packages/sheets-plugin-image/package.json b/packages/sheets-plugin-image/package.jsonindex df049d09c1..da9b81b43c 100644--- a/packages/sheets-plugin-image/package.json+++ b/packages/sheets-plugin-image/package.json@@ -53,6 +53,6 @@"@univerjs/base-ui": "workspace:^0.0.1","@univerjs/common-plugin-data": "workspace:^0.0.1","@univerjs/core": "workspace:^0.0.1",- "preact": "^10.5.14"+ "preact": "^10.12.1"}}diff --git a/packages/sheets-plugin-import-xlsx/package.json b/packages/sheets-plugin-import-xlsx/package.jsonindex 49c9db35b2..c81b886169 100644--- a/packages/sheets-plugin-import-xlsx/package.json+++ b/packages/sheets-plugin-import-xlsx/package.json@@ -58,6 +58,6 @@"@univerjs/common-plugin-data": "workspace:^0.0.1","@univerjs/core": "workspace:^0.0.1","luckyexcel": "^1.0.1",- "preact": "^10.5.14"+ "preact": "^10.12.1"}}diff --git a/packages/sheets-plugin-link/package.json b/packages/sheets-plugin-link/package.jsonindex fe6b46fc0f..0178604849 100644--- a/packages/sheets-plugin-link/package.json+++ b/packages/sheets-plugin-link/package.json@@ -53,6 +53,6 @@"@univerjs/base-ui": "workspace:^0.0.1","@univerjs/common-plugin-data": "workspace:^0.0.1","@univerjs/core": "workspace:^0.0.1",- "preact": "^10.5.14"+ "preact": "^10.12.1"}}diff --git a/packages/sheets-plugin-numfmt/package.json b/packages/sheets-plugin-numfmt/package.jsonindex e4f66e8ab2..4539a6eeac 100644--- a/packages/sheets-plugin-numfmt/package.json+++ b/packages/sheets-plugin-numfmt/package.json@@ -54,6 +54,6 @@"@univerjs/base-ui": "workspace:^0.0.1","@univerjs/common-plugin-data": "workspace:^0.0.1","@univerjs/core": "workspace:^0.0.1",- "preact": "^10.5.14"+ "preact": "^10.12.1"}}diff --git a/packages/sheets-plugin-pivot-table/package.json b/packages/sheets-plugin-pivot-table/package.jsonindex 4a2bdfba6b..0d89bc825e 100644--- a/packages/sheets-plugin-pivot-table/package.json+++ b/packages/sheets-plugin-pivot-table/package.json@@ -52,6 +52,6 @@"@univerjs/base-ui": "workspace:^0.0.1","@univerjs/common-plugin-data": "workspace:^0.0.1","@univerjs/core": "workspace:^0.0.1",- "preact": "^10.5.14"+ "preact": "^10.12.1"}}diff --git a/packages/sheets-plugin-print/package.json b/packages/sheets-plugin-print/package.jsonindex 53763a3559..7d863e123f 100644--- a/packages/sheets-plugin-print/package.json+++ b/packages/sheets-plugin-print/package.json@@ -52,6 +52,6 @@"@univerjs/base-ui": "workspace:^0.0.1","@univerjs/common-plugin-data": "workspace:^0.0.1","@univerjs/core": "workspace:^0.0.1",- "preact": "^10.5.14"+ "preact": "^10.12.1"}}diff --git a/packages/sheets-plugin-protection/package.json b/packages/sheets-plugin-protection/package.jsonindex ef1cb054e9..32e80d1189 100644--- a/packages/sheets-plugin-protection/package.json+++ b/packages/sheets-plugin-protection/package.json@@ -52,6 +52,6 @@"@univerjs/base-ui": "workspace:^0.0.1","@univerjs/common-plugin-data": "workspace:^0.0.1","@univerjs/core": "workspace:^0.0.1",- "preact": "^10.5.14"+ "preact": "^10.12.1"}}diff --git a/packages/sheets-plugin-screenshot/package.json b/packages/sheets-plugin-screenshot/package.jsonindex 3508ff1aaf..350dbaa19f 100644--- a/packages/sheets-plugin-screenshot/package.json+++ b/packages/sheets-plugin-screenshot/package.json@@ -53,6 +53,6 @@"@univerjs/base-ui": "workspace:^0.0.1","@univerjs/common-plugin-data": "workspace:^0.0.1","@univerjs/core": "workspace:^0.0.1",- "preact": "^10.5.14"+ "preact": "^10.12.1"}}diff --git a/packages/sheets-plugin-sort/package.json b/packages/sheets-plugin-sort/package.jsonindex 8e1a48731a..a08f07d91b 100644--- a/packages/sheets-plugin-sort/package.json+++ b/packages/sheets-plugin-sort/package.json@@ -53,6 +53,6 @@"@univerjs/base-ui": "workspace:^0.0.1","@univerjs/common-plugin-data": "workspace:^0.0.1","@univerjs/core": "workspace:^0.0.1",- "preact": "^10.5.14"+ "preact": "^10.12.1"}}diff --git a/packages/sheets-plugin-split-column/package.json b/packages/sheets-plugin-split-column/package.jsonindex 9d31ab7b56..e27ab54031 100644--- a/packages/sheets-plugin-split-column/package.json+++ b/packages/sheets-plugin-split-column/package.json@@ -53,6 +53,6 @@"@univerjs/base-ui": "workspace:^0.0.1","@univerjs/common-plugin-data": "workspace:^0.0.1","@univerjs/core": "workspace:^0.0.1",- "preact": "^10.5.14"+ "preact": "^10.12.1"}}diff --git a/packages/ui-plugin-sheets/package.json b/packages/ui-plugin-sheets/package.jsonindex 20b89a0bc8..59f3be19b5 100644--- a/packages/ui-plugin-sheets/package.json+++ b/packages/ui-plugin-sheets/package.json@@ -69,6 +69,7 @@"@univerjs/base-sheets": "workspace:^0.0.1","@univerjs/base-ui": "workspace:^0.0.1","@univerjs/core": "workspace:^0.0.1",- "css-vars-ponyfill": "^2.4.6"+ "css-vars-ponyfill": "^2.4.6",+ "preact": "^10.12.1"}}diff --git a/packages/ui-plugin-sheets/tsconfig.json b/packages/ui-plugin-sheets/tsconfig.jsonindex fc81cbd47e..0caf4189bc 100644--- a/packages/ui-plugin-sheets/tsconfig.json+++ b/packages/ui-plugin-sheets/tsconfig.json@@ -21,11 +21,13 @@"esModuleInterop": true, // auto allowSyntheticDefaultImports tru"suppressImplicitAnyIndexErrors": true,"experimentalDecorators": true,- "jsx": "preserve",- "jsxFactory": "h",- "jsxFragmentFactory": "Fragment",+ // "jsx": "preserve",+ // "jsxFactory": "h",+ // "jsxFragmentFactory": "Fragment",+ "jsx": "react-jsx",+ "jsxImportSource": "preact","strictPropertyInitialization": false,"types": ["jest", "node", "@types/jest"]},- "include": ["src/**/*", "test/**/*.test.(ts|tsx|js)"]+ "include": ["src/**/*", "test/**/*.test.(ts|tsx|js)", "preact"]}