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: fix `should be listed` issue (#125)
白熱137e7fe35c1a
diff --git a/.eslintrc.js b/.eslintrc.jsindex 2430d098d9..4c3d68d5b5 100644--- a/.eslintrc.js+++ b/.eslintrc.js@@ -32,7 +32,6 @@ module.exports = {'error',{devDependencies: true,- packageDir: ['./'],},],// turn on errors for missing importsdiff --git a/examples/univer-doc-ts/package.json b/examples/univer-doc-ts/package.jsonindex b6955e425e..f7f5c2e956 100644--- a/examples/univer-doc-ts/package.json+++ b/examples/univer-doc-ts/package.json@@ -19,6 +19,8 @@"devDependencies": {"@types/jest": "^27.5.2","@types/node": "^18.14.0",+ "@types/react": "^18.2.21",+ "@types/react-dom": "^18.2.7","enzyme": "^3.11.0","identity-obj-proxy": "^3.0.0","jest-dev-server": "^6.1.1",@@ -34,6 +36,8 @@"@univerjs/base-ui": "workspace:^0.0.1","@univerjs/common-plugin-data": "workspace:^0.0.1","@univerjs/core": "workspace:^0.0.1",- "@univerjs/ui-plugin-docs": "workspace:^0.0.1"+ "@univerjs/ui-plugin-docs": "workspace:^0.0.1",+ "react": "^18.2.0",+ "react-dom": "^18.2.0"}}\ No newline at end of filediff --git a/examples/univer-sheet-ts/package.json b/examples/univer-sheet-ts/package.jsonindex 88af397816..69d66edbf4 100644--- a/examples/univer-sheet-ts/package.json+++ b/examples/univer-sheet-ts/package.json@@ -17,6 +17,8 @@"@playwright/test": "^1.18.1","@types/jest": "^27.5.2","@types/node": "^18.14.0",+ "@types/react": "^18.2.21",+ "@types/react-dom": "^18.2.7","enzyme": "^3.11.0","esbuild": "^0.17.10","esbuild-style-plugin": "^1.6.1",@@ -34,12 +36,14 @@"@univerjs/base-ui": "workspace:^0.0.1","@univerjs/common-plugin-data": "workspace:^0.0.1","@univerjs/core": "workspace:^0.0.1",- "@univerjs/sheets-plugin-operation": "workspace:^0.0.1",+ "@univerjs/sheets-plugin-find": "workspace:^0.0.1","@univerjs/sheets-plugin-formula": "workspace:^0.0.1",+ "@univerjs/sheets-plugin-image": "workspace:^0.0.1","@univerjs/sheets-plugin-import-xlsx": "workspace:^0.0.1","@univerjs/sheets-plugin-numfmt": "workspace:^0.0.1",- "@univerjs/sheets-plugin-find": "workspace:^0.0.1",- "@univerjs/sheets-plugin-image": "workspace:^0.0.1",- "@univerjs/ui-plugin-sheets": "workspace:^0.0.1"+ "@univerjs/sheets-plugin-operation": "workspace:^0.0.1",+ "@univerjs/ui-plugin-sheets": "workspace:^0.0.1",+ "react": "^18.2.0",+ "react-dom": "^18.2.0"}}diff --git a/examples/univer-slide-ts/package.json b/examples/univer-slide-ts/package.jsonindex 6c4f709049..d297305fa3 100644--- a/examples/univer-slide-ts/package.json+++ b/examples/univer-slide-ts/package.json@@ -16,6 +16,8 @@"devDependencies": {"@types/jest": "^27.5.2","@types/node": "^18.14.0",+ "@types/react": "^18.2.21",+ "@types/react-dom": "^18.2.7","enzyme": "^3.11.0","identity-obj-proxy": "^3.0.0","jest-dev-server": "^6.1.1",@@ -31,6 +33,8 @@"@univerjs/base-ui": "workspace:^0.0.1","@univerjs/common-plugin-data": "workspace:^0.0.1","@univerjs/core": "workspace:^0.0.1",- "@univerjs/ui-plugin-slides": "workspace:^0.0.1"+ "@univerjs/ui-plugin-slides": "workspace:^0.0.1",+ "react": "^18.2.0",+ "react-dom": "^18.2.0"}}\ No newline at end of filediff --git a/examples/univer-vanilla-ts/package.json b/examples/univer-vanilla-ts/package.jsonindex 57831791bf..1670a244c2 100644--- a/examples/univer-vanilla-ts/package.json+++ b/examples/univer-vanilla-ts/package.json@@ -15,6 +15,8 @@"devDependencies": {"@types/jest": "^27.5.2","@types/node": "^18.14.0",+ "@types/react": "^18.2.21",+ "@types/react-dom": "^18.2.7","enzyme": "^3.11.0","esbuild": "^0.16.4","identity-obj-proxy": "^3.0.0",@@ -33,11 +35,13 @@"@univerjs/base-ui": "workspace:^0.0.1","@univerjs/common-plugin-data": "workspace:^0.0.1","@univerjs/core": "workspace:^0.0.1",- "@univerjs/sheets-plugin-operation": "workspace:^0.0.1","@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",+ "@univerjs/sheets-plugin-operation": "workspace:^0.0.1","@univerjs/ui-plugin-sheets": "workspace:^0.0.1",- "@univerjs/ui-plugin-slides": "workspace:^0.0.1"+ "@univerjs/ui-plugin-slides": "workspace:^0.0.1",+ "react": "^18.2.0",+ "react-dom": "^18.2.0"}}\ No newline at end of filediff --git a/package.json b/package.jsonindex efaca93149..c9b8a5bcb8 100644--- a/package.json+++ b/package.json@@ -80,9 +80,5 @@"packages/**/src/**/*.ts?(x)": ["eslint --fix"]- },- "dependencies": {- "react": "^18.2.0",- "react-dom": "^18.2.0"}}\ No newline at end of filediff --git a/packages/base-docs/package.json b/packages/base-docs/package.jsonindex 45cdf5041c..63eafcf2c6 100644--- a/packages/base-docs/package.json+++ b/packages/base-docs/package.json@@ -38,6 +38,8 @@"devDependencies": {"@types/jest": "^27.0.1","@types/node": "^18.14.0",+ "@types/react": "^18.2.21",+ "@types/react-dom": "^18.2.7","less": "^4.1.1","prettier": "^2.3.2","ts-jest": "29.0.1",@@ -50,6 +52,8 @@"@univerjs/common-plugin-data": "workspace:^0.0.1","@univerjs/core": "workspace:^0.0.1","@wendellhu/redi": "^0.12.7",- "css-vars-ponyfill": "^2.4.6"+ "css-vars-ponyfill": "^2.4.6",+ "react": "^18.2.0",+ "react-dom": "^18.2.0"}}\ No newline at end of filediff --git a/packages/base-formula-engine/package.json b/packages/base-formula-engine/package.jsonindex 245749ce9b..b02c0d1379 100644--- a/packages/base-formula-engine/package.json+++ b/packages/base-formula-engine/package.json@@ -39,6 +39,8 @@"devDependencies": {"@types/jest": "^27.5.2","@types/node": "^18.14.0",+ "@types/react": "^18.2.21",+ "@types/react-dom": "^18.2.7","jest-environment-jsdom": "^29.0.3","less": "^4.1.1","prettier": "^2.3.2",@@ -47,6 +49,8 @@},"dependencies": {"@univerjs/core": "workspace:^0.0.1",- "@wendellhu/redi": "^0.12.7"+ "@wendellhu/redi": "^0.12.7",+ "react": "^18.2.0",+ "react-dom": "^18.2.0"}}\ No newline at end of filediff --git a/packages/base-numfmt-engine/package.json b/packages/base-numfmt-engine/package.jsonindex a7a060c07e..596ba885be 100644--- a/packages/base-numfmt-engine/package.json+++ b/packages/base-numfmt-engine/package.json@@ -39,6 +39,8 @@"devDependencies": {"@types/jest": "^27.5.2","@types/node": "^18.14.0",+ "@types/react": "^18.2.21",+ "@types/react-dom": "^18.2.7","debug": "^4.3.3","identity-obj-proxy": "^3.0.0","jest-dev-server": "^6.1.1",@@ -48,6 +50,8 @@"ts-node": "^10.9.1"},"dependencies": {- "@univerjs/core": "workspace:^0.0.1"+ "@univerjs/core": "workspace:^0.0.1",+ "react": "^18.2.0",+ "react-dom": "^18.2.0"}}diff --git a/packages/base-render/package.json b/packages/base-render/package.jsonindex d26044fa35..839db94b24 100644--- a/packages/base-render/package.json+++ b/packages/base-render/package.json@@ -43,6 +43,8 @@"devDependencies": {"@types/jest": "^27.5.2","@types/node": "^18.14.0",+ "@types/react": "^18.2.21",+ "@types/react-dom": "^18.2.7","enzyme": "^3.11.0","identity-obj-proxy": "^3.0.0","jest-dev-server": "^6.1.1",@@ -53,6 +55,8 @@},"dependencies": {"@univerjs/core": "workspace:^0.0.1",- "@wendellhu/redi": "^0.12.7"+ "@wendellhu/redi": "^0.12.7",+ "react": "^18.2.0",+ "react-dom": "^18.2.0"}}\ No newline at end of filediff --git a/packages/base-sheets/package.json b/packages/base-sheets/package.jsonindex b2d5ce8093..c29de630f5 100644--- a/packages/base-sheets/package.json+++ b/packages/base-sheets/package.json@@ -44,6 +44,8 @@"devDependencies": {"@types/jest": "^27.5.2","@types/node": "^18.14.0",+ "@types/react": "^18.2.21",+ "@types/react-dom": "^18.2.7","enzyme": "^3.11.0","identity-obj-proxy": "^3.0.0","jest-dev-server": "^6.1.1",@@ -56,6 +58,8 @@"@univerjs/base-render": "workspace:^0.0.1","@univerjs/core": "workspace:^0.0.1","@wendellhu/redi": "^0.12.7",+ "react": "^18.2.0",+ "react-dom": "^18.2.0","rxjs": "^7.8.1"}}\ No newline at end of filediff --git a/packages/base-slides/package.json b/packages/base-slides/package.jsonindex e69a9acc89..d4031a9695 100644--- a/packages/base-slides/package.json+++ b/packages/base-slides/package.json@@ -38,6 +38,8 @@"devDependencies": {"@types/jest": "^27.0.1","@types/node": "^18.14.0",+ "@types/react": "^18.2.21",+ "@types/react-dom": "^18.2.7","less": "^4.1.1","prettier": "^2.3.2","ts-jest": "29.0.1",@@ -47,7 +49,9 @@"@univerjs/base-render": "workspace:^0.0.1","@univerjs/base-ui": "workspace:^0.0.1","@univerjs/core": "workspace:^0.0.1",+ "@wendellhu/redi": "^0.12.7","css-vars-ponyfill": "^2.4.6",- "@wendellhu/redi": "^0.12.7"+ "react": "^18.2.0",+ "react-dom": "^18.2.0"}}\ No newline at end of filediff --git a/packages/base-ui/package.json b/packages/base-ui/package.jsonindex 1faa572f8b..9a8ac5511d 100644--- a/packages/base-ui/package.json+++ b/packages/base-ui/package.json@@ -44,6 +44,8 @@"devDependencies": {"@types/jest": "^27.5.2","@types/node": "^18.14.0",+ "@types/react": "^18.2.21",+ "@types/react-dom": "^18.2.7","debug": "^4.3.3","enzyme": "^3.11.0","identity-obj-proxy": "^3.0.0",@@ -57,7 +59,9 @@"@univerjs/base-render": "workspace:^0.0.1","@univerjs/core": "workspace:^0.0.1","@wendellhu/redi": "^0.12.7",+ "react": "^18.2.0","react-colorful": "^5.3.0",+ "react-dom": "^18.2.0","rxjs": "^7.8.1"}}\ No newline at end of filediff --git a/packages/common-plugin-data/package.json b/packages/common-plugin-data/package.jsonindex 8f08c191ed..982d5d8475 100644--- a/packages/common-plugin-data/package.json+++ b/packages/common-plugin-data/package.json@@ -36,11 +36,15 @@},"license": "MIT","dependencies": {- "@univerjs/core": "workspace:^0.0.1"+ "@univerjs/core": "workspace:^0.0.1",+ "react": "^18.2.0",+ "react-dom": "^18.2.0"},"devDependencies": {"@types/jest": "^27.5.2","@types/node": "^18.14.0",+ "@types/react": "^18.2.21",+ "@types/react-dom": "^18.2.7","jest": "29.0.0","jest-dev-server": "^6.1.1","ts-jest": "29.0.1",diff --git a/packages/core/package.json b/packages/core/package.jsonindex f33ecab662..50cdf78345 100644--- a/packages/core/package.json+++ b/packages/core/package.json@@ -58,11 +58,15 @@"es6-proxy-polyfill": "^2.1.1","nanoid": "4.0.0","numeral": "^2.0.6",+ "react": "^18.2.0",+ "react-dom": "^18.2.0","rxjs": "^7.8.1"},"devDependencies": {"@types/jest": "^28.1.8","@types/node": "^18.14.0",+ "@types/react": "^18.2.21",+ "@types/react-dom": "^18.2.7","debug": "^4.3.4","jest": "29.0.0","jest-dev-server": "^6.1.1",diff --git a/packages/sheets-plugin-filter/package.json b/packages/sheets-plugin-filter/package.jsonindex 01e0408207..010ab18cf8 100644--- a/packages/sheets-plugin-filter/package.json+++ b/packages/sheets-plugin-filter/package.json@@ -37,6 +37,8 @@},"devDependencies": {"@types/jest": "27.0.3",+ "@types/react": "^18.2.21",+ "@types/react-dom": "^18.2.7","jest": "29.0.0","jest-environment-jsdom": "^29.0.3","less": "4.1.1",@@ -47,6 +49,8 @@"@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"+ "@univerjs/core": "workspace:^0.0.1",+ "react": "^18.2.0",+ "react-dom": "^18.2.0"}}diff --git a/packages/sheets-plugin-find/package.json b/packages/sheets-plugin-find/package.jsonindex 1cb027e308..b1385f6252 100644--- a/packages/sheets-plugin-find/package.json+++ b/packages/sheets-plugin-find/package.json@@ -39,6 +39,8 @@"devDependencies": {"@types/jest": "^27.5.2","@types/node": "^18.14.0",+ "@types/react": "^18.2.21",+ "@types/react-dom": "^18.2.7","debug": "^4.3.3","identity-obj-proxy": "^3.0.0","jest-dev-server": "^6.1.1",@@ -54,6 +56,8 @@"@univerjs/common-plugin-data": "workspace:^0.0.1","@univerjs/core": "workspace:^0.0.1","@univerjs/ui-plugin-sheets": "workspace:^0.0.1",- "@wendellhu/redi": "^0.12.7"+ "@wendellhu/redi": "^0.12.7",+ "react": "^18.2.0",+ "react-dom": "^18.2.0"}}diff --git a/packages/sheets-plugin-formula/package.json b/packages/sheets-plugin-formula/package.jsonindex 5984bea332..b1a61585c6 100644--- a/packages/sheets-plugin-formula/package.json+++ b/packages/sheets-plugin-formula/package.json@@ -39,6 +39,8 @@"devDependencies": {"@types/jest": "^27.5.2","@types/node": "^18.14.0",+ "@types/react": "^18.2.21",+ "@types/react-dom": "^18.2.7","debug": "^4.3.3","identity-obj-proxy": "^3.0.0","jest-dev-server": "^6.1.1",@@ -54,6 +56,8 @@"@univerjs/base-ui": "workspace:^0.0.1","@univerjs/core": "workspace:^0.0.1","@univerjs/ui-plugin-sheets": "workspace:^0.0.1",- "@wendellhu/redi": "^0.12.7"+ "@wendellhu/redi": "^0.12.7",+ "react": "^18.2.0",+ "react-dom": "^18.2.0"}}diff --git a/packages/sheets-plugin-image/package.json b/packages/sheets-plugin-image/package.jsonindex 80c63b9426..18a494786d 100644--- a/packages/sheets-plugin-image/package.json+++ b/packages/sheets-plugin-image/package.json@@ -39,6 +39,8 @@"devDependencies": {"@types/jest": "^27.5.2","@types/node": "^18.14.0",+ "@types/react": "^18.2.21",+ "@types/react-dom": "^18.2.7","debug": "^4.3.3","identity-obj-proxy": "^3.0.0","jest-dev-server": "^6.1.1",@@ -52,8 +54,10 @@"@univerjs/base-sheets": "workspace:^0.0.1","@univerjs/base-ui": "workspace:^0.0.1","@univerjs/common-plugin-data": "workspace:^0.0.1",- "@univerjs/ui-plugin-sheets": "workspace:^0.0.1","@univerjs/core": "workspace:^0.0.1",- "@wendellhu/redi": "^0.12.7"+ "@univerjs/ui-plugin-sheets": "workspace:^0.0.1",+ "@wendellhu/redi": "^0.12.7",+ "react": "^18.2.0",+ "react-dom": "^18.2.0"}}\ No newline at end of filediff --git a/packages/sheets-plugin-import-xlsx/package.json b/packages/sheets-plugin-import-xlsx/package.jsonindex 8795f17942..6cbdaed762 100644--- a/packages/sheets-plugin-import-xlsx/package.json+++ b/packages/sheets-plugin-import-xlsx/package.json@@ -39,6 +39,8 @@"devDependencies": {"@types/jest": "^27.0.1","@types/node": "^18.14.0",+ "@types/react": "^18.2.21",+ "@types/react-dom": "^18.2.7","less": "^4.1.1","prettier": "^2.3.2","ts-jest": "29.0.1",@@ -52,6 +54,8 @@"@univerjs/core": "workspace:^0.0.1","@univerjs/ui-plugin-sheets": "workspace:^0.0.1","@wendellhu/redi": "^0.12.7",- "luckyexcel": "^1.0.1"+ "luckyexcel": "^1.0.1",+ "react": "^18.2.0",+ "react-dom": "^18.2.0"}}\ No newline at end of filediff --git a/packages/sheets-plugin-numfmt/package.json b/packages/sheets-plugin-numfmt/package.jsonindex 8763a40273..385651bd78 100644--- a/packages/sheets-plugin-numfmt/package.json+++ b/packages/sheets-plugin-numfmt/package.json@@ -38,6 +38,8 @@"devDependencies": {"@types/jest": "^27.5.2","@types/node": "^18.14.0",+ "@types/react": "^18.2.21",+ "@types/react-dom": "^18.2.7","debug": "^4.3.3","identity-obj-proxy": "^3.0.0","jest-dev-server": "^6.1.1",@@ -54,6 +56,8 @@"@univerjs/common-plugin-data": "workspace:^0.0.1","@univerjs/core": "workspace:^0.0.1","@univerjs/ui-plugin-sheets": "workspace:^0.0.1",- "@wendellhu/redi": "^0.12.7"+ "@wendellhu/redi": "^0.12.7",+ "react": "^18.2.0",+ "react-dom": "^18.2.0"}}\ No newline at end of filediff --git a/packages/sheets-plugin-operation/package.json b/packages/sheets-plugin-operation/package.jsonindex efe79cfc9f..129ba1b549 100644--- a/packages/sheets-plugin-operation/package.json+++ b/packages/sheets-plugin-operation/package.json@@ -38,6 +38,8 @@},"devDependencies": {"@types/jest": "27.0.3",+ "@types/react": "^18.2.21",+ "@types/react-dom": "^18.2.7","jest": "29.0.0","jest-environment-jsdom": "^29.0.3","less": "4.1.1",@@ -50,6 +52,8 @@"@univerjs/common-plugin-data": "workspace:^0.0.1","@univerjs/core": "workspace:^0.0.1","@univerjs/ui-plugin-sheets": "workspace:^0.0.1",- "@wendellhu/redi": "^0.12.7"+ "@wendellhu/redi": "^0.12.7",+ "react": "^18.2.0",+ "react-dom": "^18.2.0"}}diff --git a/packages/ui-plugin-docs/package.json b/packages/ui-plugin-docs/package.jsonindex 7554443255..8884775a5e 100644--- a/packages/ui-plugin-docs/package.json+++ b/packages/ui-plugin-docs/package.json@@ -38,17 +38,21 @@"devDependencies": {"@types/jest": "^27.0.1","@types/node": "^16.4.6",+ "@types/react": "^18.2.21",+ "@types/react-dom": "^18.2.7","less": "^4.1.1","prettier": "^2.3.2","ts-jest": "29.0.1","ts-node": "^10.2.1"},"dependencies": {+ "@univerjs/base-docs": "workspace:^0.0.1","@univerjs/base-render": "workspace:^0.0.1","@univerjs/base-ui": "workspace:^0.0.1","@univerjs/core": "workspace:^0.0.1",- "@univerjs/base-docs": "workspace:^0.0.1","@wendellhu/redi": "^0.12.7",- "css-vars-ponyfill": "^2.4.6"+ "css-vars-ponyfill": "^2.4.6",+ "react": "^18.2.0",+ "react-dom": "^18.2.0"}}\ No newline at end of filediff --git a/packages/ui-plugin-sheets/package.json b/packages/ui-plugin-sheets/package.jsonindex 4112dee60d..27ed6bbb18 100644--- a/packages/ui-plugin-sheets/package.json+++ b/packages/ui-plugin-sheets/package.json@@ -43,6 +43,8 @@"devDependencies": {"@types/jest": "^27.0.1","@types/node": "^18.14.0",+ "@types/react": "^18.2.21",+ "@types/react-dom": "^18.2.7","less": "^4.1.1","prettier": "^2.3.2","ts-jest": "29.0.1",@@ -55,6 +57,8 @@"@univerjs/core": "workspace:^0.0.1","@wendellhu/redi": "^0.12.7","css-vars-ponyfill": "^2.4.6",+ "react": "^18.2.0",+ "react-dom": "^18.2.0","rxjs": "^7.8.1"}}\ No newline at end of filediff --git a/packages/ui-plugin-slides/package.json b/packages/ui-plugin-slides/package.jsonindex 207fb488e8..f8c8d18cd2 100644--- a/packages/ui-plugin-slides/package.json+++ b/packages/ui-plugin-slides/package.json@@ -38,6 +38,8 @@"devDependencies": {"@types/jest": "^27.0.1","@types/node": "^16.4.6",+ "@types/react": "^18.2.21",+ "@types/react-dom": "^18.2.7","less": "^4.1.1","prettier": "^2.3.2","ts-jest": "29.0.1",@@ -48,7 +50,9 @@"@univerjs/base-slides": "workspace:^0.0.1","@univerjs/base-ui": "workspace:^0.0.1","@univerjs/core": "workspace:^0.0.1",+ "@wendellhu/redi": "^0.12.7","css-vars-ponyfill": "^2.4.6",- "@wendellhu/redi": "^0.12.7"+ "react": "^18.2.0",+ "react-dom": "^18.2.0"}}\ No newline at end of filediff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex ec74abc10a..2c1e1bc296 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -7,13 +7,6 @@ settings:importers:.:- dependencies:- react:- specifier: ^18.2.0- version: 18.2.0- react-dom:- specifier: ^18.2.0- version: 18.2.0([email protected])devDependencies:'@changesets/cli':specifier: ^2.22.0@@ -159,6 +152,12 @@ importers:'@univerjs/ui-plugin-docs':specifier: workspace:^0.0.1version: link:../../packages/ui-plugin-docs+ react:+ specifier: ^18.2.0+ version: 18.2.0+ react-dom:+ specifier: ^18.2.0+ version: 18.2.0([email protected])devDependencies:'@types/jest':specifier: ^27.5.2@@ -166,6 +165,12 @@ importers:'@types/node':specifier: ^18.14.0version: 18.14.0+ '@types/react':+ specifier: ^18.2.21+ version: 18.2.21+ '@types/react-dom':+ specifier: ^18.2.7+ version: 18.2.7enzyme:specifier: ^3.11.0version: 3.11.0@@ -229,6 +234,12 @@ importers:'@univerjs/ui-plugin-sheets':specifier: workspace:^0.0.1version: link:../../packages/ui-plugin-sheets+ react:+ specifier: ^18.2.0+ version: 18.2.0+ react-dom:+ specifier: ^18.2.0+ version: 18.2.0([email protected])devDependencies:'@playwright/test':specifier: ^1.18.1@@ -239,6 +250,12 @@ importers:'@types/node':specifier: ^18.14.0version: 18.14.0+ '@types/react':+ specifier: ^18.2.21+ version: 18.2.21+ '@types/react-dom':+ specifier: ^18.2.7+ version: 18.2.7enzyme:specifier: ^3.11.0version: 3.11.0@@ -290,6 +307,12 @@ importers:'@univerjs/ui-plugin-slides':specifier: workspace:^0.0.1version: link:../../packages/ui-plugin-slides+ react:+ specifier: ^18.2.0+ version: 18.2.0+ react-dom:+ specifier: ^18.2.0+ version: 18.2.0([email protected])devDependencies:'@types/jest':specifier: ^27.5.2@@ -297,6 +320,12 @@ importers:'@types/node':specifier: ^18.14.0version: 18.14.0+ '@types/react':+ specifier: ^18.2.21+ version: 18.2.21+ '@types/react-dom':+ specifier: ^18.2.7+ version: 18.2.7enzyme:specifier: ^3.11.0version: 3.11.0@@ -363,6 +392,12 @@ importers:'@univerjs/ui-plugin-slides':specifier: workspace:^0.0.1version: link:../../packages/ui-plugin-slides+ react:+ specifier: ^18.2.0+ version: 18.2.0+ react-dom:+ specifier: ^18.2.0+ version: 18.2.0([email protected])devDependencies:'@types/jest':specifier: ^27.5.2@@ -370,6 +405,12 @@ importers:'@types/node':specifier: ^18.14.0version: 18.14.0+ '@types/react':+ specifier: ^18.2.21+ version: 18.2.21+ '@types/react-dom':+ specifier: ^18.2.7+ version: 18.2.7enzyme:specifier: ^3.11.0version: 3.11.0@@ -421,6 +462,12 @@ importers:css-vars-ponyfill:specifier: ^2.4.6version: 2.4.6+ react:+ specifier: ^18.2.0+ version: 18.2.0+ react-dom:+ specifier: ^18.2.0+ version: 18.2.0([email protected])devDependencies:'@types/jest':specifier: ^27.0.1@@ -428,6 +475,12 @@ importers:'@types/node':specifier: ^18.14.0version: 18.14.0+ '@types/react':+ specifier: ^18.2.21+ version: 18.2.21+ '@types/react-dom':+ specifier: ^18.2.7+ version: 18.2.7less:specifier: ^4.1.1version: 4.1.1@@ -449,6 +502,12 @@ importers:'@wendellhu/redi':specifier: ^0.12.7version: 0.12.7+ react:+ specifier: ^18.2.0+ version: 18.2.0+ react-dom:+ specifier: ^18.2.0+ version: 18.2.0([email protected])devDependencies:'@types/jest':specifier: ^27.5.2@@ -456,6 +515,12 @@ importers:'@types/node':specifier: ^18.14.0version: 18.14.0+ '@types/react':+ specifier: ^18.2.21+ version: 18.2.21+ '@types/react-dom':+ specifier: ^18.2.7+ version: 18.2.7jest-environment-jsdom:specifier: ^29.0.3version: 29.0.3@@ -477,6 +542,12 @@ importers:'@univerjs/core':specifier: workspace:^0.0.1version: link:../core+ react:+ specifier: ^18.2.0+ version: 18.2.0+ react-dom:+ specifier: ^18.2.0+ version: 18.2.0([email protected])devDependencies:'@types/jest':specifier: ^27.5.2@@ -484,6 +555,12 @@ importers:'@types/node':specifier: ^18.14.0version: 18.14.0+ '@types/react':+ specifier: ^18.2.21+ version: 18.2.21+ '@types/react-dom':+ specifier: ^18.2.7+ version: 18.2.7debug:specifier: ^4.3.3version: 4.3.4@@ -514,6 +591,12 @@ importers:'@wendellhu/redi':specifier: ^0.12.7version: 0.12.7+ react:+ specifier: ^18.2.0+ version: 18.2.0+ react-dom:+ specifier: ^18.2.0+ version: 18.2.0([email protected])devDependencies:'@types/jest':specifier: ^27.5.2@@ -521,6 +604,12 @@ importers:'@types/node':specifier: ^18.14.0version: 18.14.0+ '@types/react':+ specifier: ^18.2.21+ version: 18.2.21+ '@types/react-dom':+ specifier: ^18.2.7+ version: 18.2.7enzyme:specifier: ^3.11.0version: 3.11.0@@ -554,6 +643,12 @@ importers:'@wendellhu/redi':specifier: ^0.12.7version: 0.12.7+ react:+ specifier: ^18.2.0+ version: 18.2.0+ react-dom:+ specifier: ^18.2.0+ version: 18.2.0([email protected])rxjs:specifier: ^7.8.1version: 7.8.1@@ -564,6 +659,12 @@ importers:'@types/node':specifier: ^18.14.0version: 18.14.0+ '@types/react':+ specifier: ^18.2.21+ version: 18.2.21+ '@types/react-dom':+ specifier: ^18.2.7+ version: 18.2.7enzyme:specifier: ^3.11.0version: 3.11.0@@ -603,6 +704,12 @@ importers:css-vars-ponyfill:specifier: ^2.4.6version: 2.4.6+ react:+ specifier: ^18.2.0+ version: 18.2.0+ react-dom:+ specifier: ^18.2.0+ version: 18.2.0([email protected])devDependencies:'@types/jest':specifier: ^27.0.1@@ -610,6 +717,12 @@ importers:'@types/node':specifier: ^18.14.0version: 18.14.0+ '@types/react':+ specifier: ^18.2.21+ version: 18.2.21+ '@types/react-dom':+ specifier: ^18.2.7+ version: 18.2.7less:specifier: ^4.1.1version: 4.1.1@@ -634,9 +747,15 @@ importers:'@wendellhu/redi':specifier: ^0.12.7version: 0.12.7+ react:+ specifier: ^18.2.0+ version: 18.2.0react-colorful:specifier: ^5.3.0version: 5.3.0([email protected])([email protected])+ react-dom:+ specifier: ^18.2.0+ version: 18.2.0([email protected])rxjs:specifier: ^7.8.1version: 7.8.1@@ -647,6 +766,12 @@ importers:'@types/node':specifier: ^18.14.0version: 18.14.0+ '@types/react':+ specifier: ^18.2.21+ version: 18.2.21+ '@types/react-dom':+ specifier: ^18.2.7+ version: 18.2.7debug:specifier: ^4.3.3version: 4.3.4@@ -677,6 +802,12 @@ importers:'@univerjs/core':specifier: workspace:^0.0.1version: link:../core+ react:+ specifier: ^18.2.0+ version: 18.2.0+ react-dom:+ specifier: ^18.2.0+ version: 18.2.0([email protected])devDependencies:'@types/jest':specifier: ^27.5.2@@ -684,6 +815,12 @@ importers:'@types/node':specifier: ^18.14.0version: 18.14.0+ '@types/react':+ specifier: ^18.2.21+ version: 18.2.21+ '@types/react-dom':+ specifier: ^18.2.7+ version: 18.2.7jest:specifier: 29.0.0version: 29.0.0(@types/[email protected])([email protected])@@ -714,6 +851,12 @@ importers:numeral:specifier: ^2.0.6version: 2.0.6+ react:+ specifier: ^18.2.0+ version: 18.2.0+ react-dom:+ specifier: ^18.2.0+ version: 18.2.0([email protected])rxjs:specifier: ^7.8.1version: 7.8.1@@ -724,6 +867,12 @@ importers:'@types/node':specifier: ^18.14.0version: 18.14.0+ '@types/react':+ specifier: ^18.2.21+ version: 18.2.21+ '@types/react-dom':+ specifier: ^18.2.7+ version: 18.2.7debug:specifier: ^4.3.4version: 4.3.4@@ -763,10 +912,22 @@ importers:'@univerjs/core':specifier: workspace:^0.0.1version: link:../core+ react:+ specifier: ^18.2.0+ version: 18.2.0+ react-dom:+ specifier: ^18.2.0+ version: 18.2.0([email protected])devDependencies:'@types/jest':specifier: 27.0.3version: 27.0.3+ '@types/react':+ specifier: ^18.2.21+ version: 18.2.21+ '@types/react-dom':+ specifier: ^18.2.7+ version: 18.2.7jest:specifier: 29.0.0version: 29.0.0(@types/[email protected])([email protected])@@ -803,6 +964,12 @@ importers:'@wendellhu/redi':specifier: ^0.12.7version: 0.12.7+ react:+ specifier: ^18.2.0+ version: 18.2.0+ react-dom:+ specifier: ^18.2.0+ version: 18.2.0([email protected])devDependencies:'@types/jest':specifier: ^27.5.2@@ -810,6 +977,12 @@ importers:'@types/node':specifier: ^18.14.0version: 18.14.0+ '@types/react':+ specifier: ^18.2.21+ version: 18.2.21+ '@types/react-dom':+ specifier: ^18.2.7+ version: 18.2.7debug:specifier: ^4.3.3version: 4.3.4@@ -855,6 +1028,12 @@ importers:'@wendellhu/redi':specifier: ^0.12.7version: 0.12.7+ react:+ specifier: ^18.2.0+ version: 18.2.0+ react-dom:+ specifier: ^18.2.0+ version: 18.2.0([email protected])devDependencies:'@types/jest':specifier: ^27.5.2@@ -862,6 +1041,12 @@ importers:'@types/node':specifier: ^18.14.0version: 18.14.0+ '@types/react':+ specifier: ^18.2.21+ version: 18.2.21+ '@types/react-dom':+ specifier: ^18.2.7+ version: 18.2.7debug:specifier: ^4.3.3version: 4.3.4@@ -907,6 +1092,12 @@ importers:'@wendellhu/redi':specifier: ^0.12.7version: 0.12.7+ react:+ specifier: ^18.2.0+ version: 18.2.0+ react-dom:+ specifier: ^18.2.0+ version: 18.2.0([email protected])devDependencies:'@types/jest':specifier: ^27.5.2@@ -914,6 +1105,12 @@ importers:'@types/node':specifier: ^18.14.0version: 18.14.0+ '@types/react':+ specifier: ^18.2.21+ version: 18.2.21+ '@types/react-dom':+ specifier: ^18.2.7+ version: 18.2.7debug:specifier: ^4.3.3version: 4.3.4@@ -962,6 +1159,12 @@ importers:luckyexcel:specifier: ^1.0.1version: 1.0.1+ react:+ specifier: ^18.2.0+ version: 18.2.0+ react-dom:+ specifier: ^18.2.0+ version: 18.2.0([email protected])devDependencies:'@types/jest':specifier: ^27.0.1@@ -969,6 +1172,12 @@ importers:'@types/node':specifier: ^18.14.0version: 18.14.0+ '@types/react':+ specifier: ^18.2.21+ version: 18.2.21+ '@types/react-dom':+ specifier: ^18.2.7+ version: 18.2.7less:specifier: ^4.1.1version: 4.1.1@@ -1008,6 +1217,12 @@ importers:'@wendellhu/redi':specifier: ^0.12.7version: 0.12.7+ react:+ specifier: ^18.2.0+ version: 18.2.0+ react-dom:+ specifier: ^18.2.0+ version: 18.2.0([email protected])devDependencies:'@types/jest':specifier: ^27.5.2@@ -1015,6 +1230,12 @@ importers:'@types/node':specifier: ^18.14.0version: 18.14.0+ '@types/react':+ specifier: ^18.2.21+ version: 18.2.21+ '@types/react-dom':+ specifier: ^18.2.7+ version: 18.2.7debug:specifier: ^4.3.3version: 4.3.4@@ -1060,10 +1281,22 @@ importers:'@wendellhu/redi':specifier: ^0.12.7version: 0.12.7+ react:+ specifier: ^18.2.0+ version: 18.2.0+ react-dom:+ specifier: ^18.2.0+ version: 18.2.0([email protected])devDependencies:'@types/jest':specifier: 27.0.3version: 27.0.3+ '@types/react':+ specifier: ^18.2.21+ version: 18.2.21+ '@types/react-dom':+ specifier: ^18.2.7+ version: 18.2.7jest:specifier: 29.0.0version: 29.0.0(@types/[email protected])([email protected])@@ -1097,6 +1330,12 @@ importers:css-vars-ponyfill:specifier: ^2.4.6version: 2.4.6+ react:+ specifier: ^18.2.0+ version: 18.2.0+ react-dom:+ specifier: ^18.2.0+ version: 18.2.0([email protected])devDependencies:'@types/jest':specifier: ^27.0.1@@ -1104,6 +1343,12 @@ importers:'@types/node':specifier: ^16.4.6version: 16.4.6+ '@types/react':+ specifier: ^18.2.21+ version: 18.2.21+ '@types/react-dom':+ specifier: ^18.2.7+ version: 18.2.7less:specifier: ^4.1.1version: 4.1.1@@ -1137,6 +1382,12 @@ importers:css-vars-ponyfill:specifier: ^2.4.6version: 2.4.6+ react:+ specifier: ^18.2.0+ version: 18.2.0+ react-dom:+ specifier: ^18.2.0+ version: 18.2.0([email protected])rxjs:specifier: ^7.8.1version: 7.8.1@@ -1147,6 +1398,12 @@ importers:'@types/node':specifier: ^18.14.0version: 18.14.0+ '@types/react':+ specifier: ^18.2.21+ version: 18.2.21+ '@types/react-dom':+ specifier: ^18.2.7+ version: 18.2.7less:specifier: ^4.1.1version: 4.1.1@@ -1180,6 +1437,12 @@ importers:css-vars-ponyfill:specifier: ^2.4.6version: 2.4.6+ react:+ specifier: ^18.2.0+ version: 18.2.0+ react-dom:+ specifier: ^18.2.0+ version: 18.2.0([email protected])devDependencies:'@types/jest':specifier: ^27.0.1@@ -1187,6 +1450,12 @@ importers:'@types/node':specifier: ^16.4.6version: 16.4.6+ '@types/react':+ specifier: ^18.2.21+ version: 18.2.21+ '@types/react-dom':+ specifier: ^18.2.7+ version: 18.2.7less:specifier: ^4.1.1version: 4.1.1diff --git a/scripts/clean.js b/scripts/clean.jsindex 4c6012fca4..28272000d8 100644--- a/scripts/clean.js+++ b/scripts/clean.js@@ -1,27 +1,22 @@-const fs = require('fs');-const { join, resolve } = require('path');--function deleteNodeModules(directory) {- const files = fs.readdirSync(directory);-- files.forEach((file) => {- const filePath = join(directory, file);- const stat = fs.statSync(filePath);-- if (stat.isDirectory()) {- if (['node_modules', 'lib', 'dist'].includes(file)) {- console.log('Deleting:', filePath);- fs.rmSync(filePath, { recursive: true });- } else {- deleteNodeModules(filePath);- }- } else {- if (['package-lock.json', 'yarn.lock', 'pnpm-lock.yaml'].includes(file)) {- console.log('Deleting:', filePath);- fs.unlinkSync(filePath);- }- }- });-}--deleteNodeModules(resolve(__dirname, '../'));+const fs = require('fs');+const { join, resolve } = require('path');++function deleteNodeModules(directory) {+ const files = fs.readdirSync(directory);++ files.forEach((file) => {+ const filePath = join(directory, file);+ const stat = fs.statSync(filePath);++ if (stat.isDirectory()) {+ if (['node_modules', 'lib', 'dist'].includes(file)) {+ console.log('Deleting:', filePath);+ fs.rmSync(filePath, { recursive: true });+ } else {+ deleteNodeModules(filePath);+ }+ }+ });+}++deleteNodeModules(resolve(__dirname, '../'));