Skip to content

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.

feat(umd): add thread comment support to the UMD bundle (#2288)

白熱d909b5f01b0f
diff --git a/packages/sheets-thread-comment/package.json b/packages/sheets-thread-comment/package.json
index f84362b4be..0b9577c64a 100644
--- a/packages/sheets-thread-comment/package.json
+++ b/packages/sheets-thread-comment/package.json
@@ -18,9 +18,6 @@
"url": "https://github.com/dream-num/univer/issues"
},
"keywords": [],
- "sideEffects": [
- "**/*.css"
- ],
"exports": {
".": "./src/index.ts",
"./*": "./src/*"
@@ -87,7 +84,6 @@
"@univerjs/ui": "workspace:*",
"@wendellhu/redi": "^0.15.1",
"clsx": "^2.1.0",
- "less": "^4.2.0",
"react": "^18.2.0",
"rxjs": "^7.8.1",
"typescript": "^5.3.3",
diff --git a/packages/umd/package.json b/packages/umd/package.json
index ef6ce34343..582dd267f3 100644
--- a/packages/umd/package.json
+++ b/packages/umd/package.json
@@ -64,10 +64,13 @@
"@univerjs/sheets-find-replace": "workspace:*",
"@univerjs/sheets-formula": "workspace:*",
"@univerjs/sheets-numfmt": "workspace:*",
+ "@univerjs/sheets-thread-comment": "workspace:*",
"@univerjs/sheets-ui": "workspace:*",
"@univerjs/sheets-zen-editor": "workspace:*",
"@univerjs/slides": "workspace:*",
"@univerjs/slides-ui": "workspace:*",
+ "@univerjs/thread-comment": "workspace:*",
+ "@univerjs/thread-comment-ui": "workspace:*",
"@univerjs/ui": "workspace:*",
"@univerjs/uniscript": "workspace:*",
"@wendellhu/redi": "^0.15.1",
diff --git a/packages/umd/scripts/index.mjs b/packages/umd/scripts/index.mjs
index 13be47e3c1..2ae2ae79cc 100644
--- a/packages/umd/scripts/index.mjs
+++ b/packages/umd/scripts/index.mjs
@@ -42,6 +42,7 @@ function buildCSS() {
'@univerjs/sheets-data-validation',
'@univerjs/sheets-conditional-formatting-ui',
'@univerjs/sheets-filter-ui',
+ '@univerjs/thread-comment-ui',
'@univerjs/slides-ui',
'@univerjs/find-replace',
'@univerjs/uniscript',
@@ -114,6 +115,9 @@ function buildJS() {
'@univerjs/sheets-data-validation',
'@univerjs/sheets-filter',
'@univerjs/sheets-filter-ui',
+ '@univerjs/thread-comment',
+ '@univerjs/thread-comment-ui',
+ '@univerjs/sheets-thread-comment',
'@univerjs/slides',
'@univerjs/slides-ui',
'@univerjs/rpc',
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 3390fd9693..4732f9250b 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -1441,9 +1441,6 @@ importers:
clsx:
specifier: ^2.1.0
version: 2.1.1
- less:
- specifier: ^4.2.0
- version: 4.2.0
react:
specifier: ^18.2.0
version: 18.2.0
@@ -1894,6 +1891,9 @@ importers:
'@univerjs/sheets-numfmt':
specifier: workspace:*
version: link:../sheets-numfmt
+ '@univerjs/sheets-thread-comment':
+ specifier: workspace:*
+ version: link:../sheets-thread-comment
'@univerjs/sheets-ui':
specifier: workspace:*
version: link:../sheets-ui
@@ -1906,6 +1906,12 @@ importers:
'@univerjs/slides-ui':
specifier: workspace:*
version: link:../slides-ui
+ '@univerjs/thread-comment':
+ specifier: workspace:*
+ version: link:../thread-comment
+ '@univerjs/thread-comment-ui':
+ specifier: workspace:*
+ version: link:../thread-comment-ui
'@univerjs/ui':
specifier: workspace:*
version: link:../ui