@univerjs/sheets-thread-comment 0.5.2-nightly.202501031606 → 0.5.3-experimental.20250106-e3b7a39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/facade.js
CHANGED
|
@@ -211,10 +211,6 @@ class O extends b {
|
|
|
211
211
|
getComments() {
|
|
212
212
|
return this._injector.get(c).getSubUnitAll(this._workbook.getUnitId(), this._worksheet.getSheetId()).map((n) => this._injector.createInstance(d, n));
|
|
213
213
|
}
|
|
214
|
-
/**
|
|
215
|
-
* Subscribe to comment events.
|
|
216
|
-
* @param callback Callback function, param contains comment info and target cell.
|
|
217
|
-
*/
|
|
218
214
|
onCommented(t) {
|
|
219
215
|
return this._injector.get(h).onCommandExecuted((n) => {
|
|
220
216
|
if (n.id === I.id) {
|
|
@@ -8,15 +8,20 @@ export interface IFWorksheetCommentMixin {
|
|
|
8
8
|
* @returns all comments in the current sheet
|
|
9
9
|
*/
|
|
10
10
|
getComments(): FThreadComment[];
|
|
11
|
-
}
|
|
12
|
-
export declare class FWorksheetCommentMixin extends FWorksheet implements IFWorksheetCommentMixin {
|
|
13
|
-
getComments(): FThreadComment[];
|
|
14
11
|
/**
|
|
15
12
|
* Subscribe to comment events.
|
|
16
|
-
* @param callback Callback function, param contains comment info and target cell.
|
|
13
|
+
* @param callback (cellPos: Nullable<IHoverCellPosition>) => void Callback function, param contains comment info and target cell.
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* univerAPI.getActiveWorkbook().getActiveSheet().onCommented((params) => {...})
|
|
17
|
+
* ```
|
|
17
18
|
*/
|
|
18
19
|
onCommented(callback: (params: IAddCommentCommandParams) => void): IDisposable;
|
|
19
20
|
}
|
|
21
|
+
export declare class FWorksheetCommentMixin extends FWorksheet implements IFWorksheetCommentMixin {
|
|
22
|
+
getComments(): FThreadComment[];
|
|
23
|
+
onCommented(callback: (params: IAddCommentCommandParams) => void): IDisposable;
|
|
24
|
+
}
|
|
20
25
|
declare module '@univerjs/sheets/facade' {
|
|
21
26
|
interface FWorksheet extends IFWorksheetCommentMixin {
|
|
22
27
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs/sheets-thread-comment",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3-experimental.20250106-e3b7a39",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Univer sheets thread comment base plugin",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -51,17 +51,17 @@
|
|
|
51
51
|
"rxjs": ">=7.0.0"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@univerjs/
|
|
55
|
-
"@univerjs/sheets": "0.5.
|
|
56
|
-
"@univerjs/
|
|
57
|
-
"@univerjs/
|
|
54
|
+
"@univerjs/engine-formula": "0.5.3-experimental.20250106-e3b7a39",
|
|
55
|
+
"@univerjs/sheets": "0.5.3-experimental.20250106-e3b7a39",
|
|
56
|
+
"@univerjs/core": "0.5.3-experimental.20250106-e3b7a39",
|
|
57
|
+
"@univerjs/thread-comment": "0.5.3-experimental.20250106-e3b7a39"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"rxjs": "^7.8.1",
|
|
61
61
|
"typescript": "^5.7.2",
|
|
62
62
|
"vite": "^6.0.6",
|
|
63
63
|
"vitest": "^2.1.8",
|
|
64
|
-
"@univerjs-infra/shared": "0.5.
|
|
64
|
+
"@univerjs-infra/shared": "0.5.3"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"test": "vitest run",
|