@univerjs/docs-thread-comment-ui 0.23.0 → 0.24.0-insiders.20260527-b1d726f
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/cjs/index.js +9 -9
- package/lib/cjs/locale/ar-SA.js +9 -0
- package/lib/cjs/locale/ca-ES.js +9 -0
- package/lib/cjs/locale/de-DE.js +9 -0
- package/lib/cjs/locale/en-US.js +24 -0
- package/lib/cjs/locale/es-ES.js +9 -0
- package/lib/cjs/locale/fa-IR.js +9 -0
- package/lib/cjs/locale/fr-FR.js +9 -0
- package/lib/cjs/locale/id-ID.js +9 -0
- package/lib/cjs/locale/it-IT.js +9 -0
- package/lib/cjs/locale/ja-JP.js +9 -0
- package/lib/cjs/locale/ko-KR.js +9 -0
- package/lib/cjs/locale/pl-PL.js +9 -0
- package/lib/cjs/locale/pt-BR.js +9 -0
- package/lib/cjs/locale/ru-RU.js +9 -0
- package/lib/cjs/locale/sk-SK.js +9 -0
- package/lib/cjs/locale/vi-VN.js +9 -0
- package/lib/cjs/locale/zh-CN.js +9 -0
- package/lib/cjs/locale/zh-HK.js +9 -0
- package/lib/cjs/locale/zh-TW.js +9 -0
- package/lib/es/index.js +9 -9
- package/lib/es/locale/ar-SA.js +8 -0
- package/lib/es/locale/ca-ES.js +8 -0
- package/lib/es/locale/de-DE.js +8 -0
- package/lib/es/locale/en-US.js +23 -0
- package/lib/es/locale/es-ES.js +8 -0
- package/lib/es/locale/fa-IR.js +8 -0
- package/lib/es/locale/fr-FR.js +8 -0
- package/lib/es/locale/id-ID.js +8 -0
- package/lib/es/locale/it-IT.js +8 -0
- package/lib/es/locale/ja-JP.js +8 -0
- package/lib/es/locale/ko-KR.js +8 -0
- package/lib/es/locale/pl-PL.js +8 -0
- package/lib/es/locale/pt-BR.js +8 -0
- package/lib/es/locale/ru-RU.js +8 -0
- package/lib/es/locale/sk-SK.js +8 -0
- package/lib/es/locale/vi-VN.js +8 -0
- package/lib/es/locale/zh-CN.js +8 -0
- package/lib/es/locale/zh-HK.js +8 -0
- package/lib/es/locale/zh-TW.js +8 -0
- package/lib/index.js +9 -9
- package/lib/locale/ar-SA.js +8 -0
- package/lib/locale/ca-ES.js +8 -0
- package/lib/locale/de-DE.js +8 -0
- package/lib/locale/en-US.js +23 -0
- package/lib/locale/es-ES.js +8 -0
- package/lib/locale/fa-IR.js +8 -0
- package/lib/locale/fr-FR.js +8 -0
- package/lib/locale/id-ID.js +8 -0
- package/lib/locale/it-IT.js +8 -0
- package/lib/locale/ja-JP.js +8 -0
- package/lib/locale/ko-KR.js +8 -0
- package/lib/locale/pl-PL.js +8 -0
- package/lib/locale/pt-BR.js +8 -0
- package/lib/locale/ru-RU.js +8 -0
- package/lib/locale/sk-SK.js +8 -0
- package/lib/locale/vi-VN.js +8 -0
- package/lib/locale/zh-CN.js +8 -0
- package/lib/locale/zh-HK.js +8 -0
- package/lib/locale/zh-TW.js +8 -0
- package/lib/types/locale/ar-SA.d.ts +18 -0
- package/lib/types/locale/ca-ES.d.ts +18 -0
- package/lib/types/locale/de-DE.d.ts +18 -0
- package/lib/types/locale/en-US.d.ts +24 -0
- package/lib/types/locale/es-ES.d.ts +18 -0
- package/lib/types/locale/fa-IR.d.ts +18 -0
- package/lib/types/locale/fr-FR.d.ts +18 -0
- package/lib/types/locale/id-ID.d.ts +18 -0
- package/lib/types/locale/it-IT.d.ts +18 -0
- package/lib/types/locale/ja-JP.d.ts +18 -0
- package/lib/types/locale/ko-KR.d.ts +18 -0
- package/lib/types/locale/pl-PL.d.ts +18 -0
- package/lib/types/locale/pt-BR.d.ts +18 -0
- package/lib/types/locale/ru-RU.d.ts +18 -0
- package/lib/types/locale/sk-SK.d.ts +18 -0
- package/lib/types/locale/vi-VN.d.ts +18 -0
- package/lib/types/locale/zh-CN.d.ts +18 -0
- package/lib/types/locale/zh-HK.d.ts +18 -0
- package/lib/types/locale/zh-TW.d.ts +18 -0
- package/lib/umd/index.js +2 -2
- package/lib/umd/locale/ar-SA.js +1 -0
- package/lib/umd/locale/ca-ES.js +1 -0
- package/lib/umd/locale/de-DE.js +1 -0
- package/lib/umd/locale/en-US.js +1 -0
- package/lib/umd/locale/es-ES.js +1 -0
- package/lib/umd/locale/fa-IR.js +1 -0
- package/lib/umd/locale/fr-FR.js +1 -0
- package/lib/umd/locale/id-ID.js +1 -0
- package/lib/umd/locale/it-IT.js +1 -0
- package/lib/umd/locale/ja-JP.js +1 -0
- package/lib/umd/locale/ko-KR.js +1 -0
- package/lib/umd/locale/pl-PL.js +1 -0
- package/lib/umd/locale/pt-BR.js +1 -0
- package/lib/umd/locale/ru-RU.js +1 -0
- package/lib/umd/locale/sk-SK.js +1 -0
- package/lib/umd/locale/vi-VN.js +1 -0
- package/lib/umd/locale/zh-CN.js +1 -0
- package/lib/umd/locale/zh-HK.js +1 -0
- package/lib/umd/locale/zh-TW.js +1 -0
- package/package.json +15 -10
- package/LICENSE +0 -176
package/lib/cjs/index.js
CHANGED
|
@@ -182,7 +182,7 @@ const ShowCommentPanelOperation = {
|
|
|
182
182
|
const sidebarService = accessor.get(_univerjs_ui.ISidebarService);
|
|
183
183
|
if (!panelService.panelVisible || ((_sidebarService$optio = sidebarService.options.children) === null || _sidebarService$optio === void 0 ? void 0 : _sidebarService$optio.label) !== "univer.doc.thread-comment-panel") {
|
|
184
184
|
sidebarService.open({
|
|
185
|
-
header: { title: "
|
|
185
|
+
header: { title: "docs-thread-comment-ui.panel.title" },
|
|
186
186
|
children: { label: DOCS_THREAD_COMMENT_PANEL },
|
|
187
187
|
width: 320,
|
|
188
188
|
onClose: () => panelService.setPanelVisible(false)
|
|
@@ -202,7 +202,7 @@ const ToggleCommentPanelOperation = {
|
|
|
202
202
|
const sidebarService = accessor.get(_univerjs_ui.ISidebarService);
|
|
203
203
|
if (!panelService.panelVisible || ((_sidebarService$optio2 = sidebarService.options.children) === null || _sidebarService$optio2 === void 0 ? void 0 : _sidebarService$optio2.label) !== "univer.doc.thread-comment-panel") {
|
|
204
204
|
sidebarService.open({
|
|
205
|
-
header: { title: "
|
|
205
|
+
header: { title: "docs-thread-comment-ui.panel.title" },
|
|
206
206
|
children: { label: DOCS_THREAD_COMMENT_PANEL },
|
|
207
207
|
width: 320,
|
|
208
208
|
onClose: () => panelService.setPanelVisible(false)
|
|
@@ -222,7 +222,7 @@ const StartAddCommentOperation = {
|
|
|
222
222
|
handler(accessor) {
|
|
223
223
|
var _renderManagerService, _doc$getBody$dataStre, _doc$getBody;
|
|
224
224
|
const panelService = accessor.get(_univerjs_thread_comment_ui.ThreadCommentPanelService);
|
|
225
|
-
const doc = accessor.get(_univerjs_core.IUniverInstanceService).
|
|
225
|
+
const doc = accessor.get(_univerjs_core.IUniverInstanceService).getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_DOC);
|
|
226
226
|
const docSelectionManagerService = accessor.get(_univerjs_docs.DocSelectionManagerService);
|
|
227
227
|
const renderManagerService = accessor.get(_univerjs_engine_render.IRenderManagerService);
|
|
228
228
|
const userManagerService = accessor.get(_univerjs_core.UserManagerService);
|
|
@@ -273,7 +273,7 @@ const StartAddCommentOperation = {
|
|
|
273
273
|
//#endregion
|
|
274
274
|
//#region package.json
|
|
275
275
|
var name = "@univerjs/docs-thread-comment-ui";
|
|
276
|
-
var version = "0.
|
|
276
|
+
var version = "0.24.0-insiders.20260527-b1d726f";
|
|
277
277
|
|
|
278
278
|
//#endregion
|
|
279
279
|
//#region src/config/config.ts
|
|
@@ -377,8 +377,8 @@ function AddDocCommentMenuItemFactory(accessor) {
|
|
|
377
377
|
id: StartAddCommentOperation.id,
|
|
378
378
|
type: _univerjs_ui.MenuItemType.BUTTON,
|
|
379
379
|
icon: "CommentIcon",
|
|
380
|
-
title: "
|
|
381
|
-
tooltip: "
|
|
380
|
+
title: "docs-thread-comment-ui.panel.addComment",
|
|
381
|
+
tooltip: "docs-thread-comment-ui.panel.addComment",
|
|
382
382
|
hidden$: (0, _univerjs_ui.getMenuHiddenObservable)(accessor, _univerjs_core.UniverInstanceType.UNIVER_DOC, void 0, _univerjs_core.SHEET_EDITOR_UNITS),
|
|
383
383
|
disabled$: new rxjs.Observable(function(subscribe) {
|
|
384
384
|
const observer = accessor.get(_univerjs_docs.DocSelectionManagerService).textSelection$.pipe((0, rxjs.debounceTime)(16)).subscribe(() => {
|
|
@@ -395,8 +395,8 @@ function ToolbarDocCommentMenuItemFactory(accessor) {
|
|
|
395
395
|
id: ToggleCommentPanelOperation.id,
|
|
396
396
|
type: _univerjs_ui.MenuItemType.BUTTON,
|
|
397
397
|
icon: "CommentIcon",
|
|
398
|
-
title: "
|
|
399
|
-
tooltip: "
|
|
398
|
+
title: "docs-thread-comment-ui.panel.addComment",
|
|
399
|
+
tooltip: "docs-thread-comment-ui.panel.addComment",
|
|
400
400
|
hidden$: (0, _univerjs_ui.getMenuHiddenObservable)(accessor, _univerjs_core.UniverInstanceType.UNIVER_DOC)
|
|
401
401
|
};
|
|
402
402
|
}
|
|
@@ -569,7 +569,7 @@ let DocThreadCommentRenderController = class DocThreadCommentRenderController ex
|
|
|
569
569
|
this._docRenderController.reRender(activeComment.unitId);
|
|
570
570
|
return;
|
|
571
571
|
}
|
|
572
|
-
const unitId = (_this$_univerInstance = this._univerInstanceService.
|
|
572
|
+
const unitId = (_this$_univerInstance = this._univerInstanceService.getCurrentUnitOfType(_univerjs_core.UniverInstanceType.UNIVER_DOC)) === null || _this$_univerInstance === void 0 ? void 0 : _this$_univerInstance.getUnitId();
|
|
573
573
|
if (unitId) this._docRenderController.reRender(unitId);
|
|
574
574
|
}));
|
|
575
575
|
this.disposeWithMe(this._threadCommentModel.commentUpdate$.subscribe((update) => {
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/locale/en-US.ts
|
|
3
|
+
/**
|
|
4
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/
|
|
18
|
+
const locale = { "docs-thread-comment-ui": { panel: {
|
|
19
|
+
title: "Comment Management",
|
|
20
|
+
addComment: "Add Comment"
|
|
21
|
+
} } };
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
module.exports = locale;
|
package/lib/es/index.js
CHANGED
|
@@ -181,7 +181,7 @@ const ShowCommentPanelOperation = {
|
|
|
181
181
|
const sidebarService = accessor.get(ISidebarService);
|
|
182
182
|
if (!panelService.panelVisible || ((_sidebarService$optio = sidebarService.options.children) === null || _sidebarService$optio === void 0 ? void 0 : _sidebarService$optio.label) !== "univer.doc.thread-comment-panel") {
|
|
183
183
|
sidebarService.open({
|
|
184
|
-
header: { title: "
|
|
184
|
+
header: { title: "docs-thread-comment-ui.panel.title" },
|
|
185
185
|
children: { label: DOCS_THREAD_COMMENT_PANEL },
|
|
186
186
|
width: 320,
|
|
187
187
|
onClose: () => panelService.setPanelVisible(false)
|
|
@@ -201,7 +201,7 @@ const ToggleCommentPanelOperation = {
|
|
|
201
201
|
const sidebarService = accessor.get(ISidebarService);
|
|
202
202
|
if (!panelService.panelVisible || ((_sidebarService$optio2 = sidebarService.options.children) === null || _sidebarService$optio2 === void 0 ? void 0 : _sidebarService$optio2.label) !== "univer.doc.thread-comment-panel") {
|
|
203
203
|
sidebarService.open({
|
|
204
|
-
header: { title: "
|
|
204
|
+
header: { title: "docs-thread-comment-ui.panel.title" },
|
|
205
205
|
children: { label: DOCS_THREAD_COMMENT_PANEL },
|
|
206
206
|
width: 320,
|
|
207
207
|
onClose: () => panelService.setPanelVisible(false)
|
|
@@ -221,7 +221,7 @@ const StartAddCommentOperation = {
|
|
|
221
221
|
handler(accessor) {
|
|
222
222
|
var _renderManagerService, _doc$getBody$dataStre, _doc$getBody;
|
|
223
223
|
const panelService = accessor.get(ThreadCommentPanelService);
|
|
224
|
-
const doc = accessor.get(IUniverInstanceService).
|
|
224
|
+
const doc = accessor.get(IUniverInstanceService).getCurrentUnitOfType(UniverInstanceType.UNIVER_DOC);
|
|
225
225
|
const docSelectionManagerService = accessor.get(DocSelectionManagerService);
|
|
226
226
|
const renderManagerService = accessor.get(IRenderManagerService);
|
|
227
227
|
const userManagerService = accessor.get(UserManagerService);
|
|
@@ -272,7 +272,7 @@ const StartAddCommentOperation = {
|
|
|
272
272
|
//#endregion
|
|
273
273
|
//#region package.json
|
|
274
274
|
var name = "@univerjs/docs-thread-comment-ui";
|
|
275
|
-
var version = "0.
|
|
275
|
+
var version = "0.24.0-insiders.20260527-b1d726f";
|
|
276
276
|
|
|
277
277
|
//#endregion
|
|
278
278
|
//#region src/config/config.ts
|
|
@@ -376,8 +376,8 @@ function AddDocCommentMenuItemFactory(accessor) {
|
|
|
376
376
|
id: StartAddCommentOperation.id,
|
|
377
377
|
type: MenuItemType.BUTTON,
|
|
378
378
|
icon: "CommentIcon",
|
|
379
|
-
title: "
|
|
380
|
-
tooltip: "
|
|
379
|
+
title: "docs-thread-comment-ui.panel.addComment",
|
|
380
|
+
tooltip: "docs-thread-comment-ui.panel.addComment",
|
|
381
381
|
hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_DOC, void 0, SHEET_EDITOR_UNITS),
|
|
382
382
|
disabled$: new Observable(function(subscribe) {
|
|
383
383
|
const observer = accessor.get(DocSelectionManagerService).textSelection$.pipe(debounceTime(16)).subscribe(() => {
|
|
@@ -394,8 +394,8 @@ function ToolbarDocCommentMenuItemFactory(accessor) {
|
|
|
394
394
|
id: ToggleCommentPanelOperation.id,
|
|
395
395
|
type: MenuItemType.BUTTON,
|
|
396
396
|
icon: "CommentIcon",
|
|
397
|
-
title: "
|
|
398
|
-
tooltip: "
|
|
397
|
+
title: "docs-thread-comment-ui.panel.addComment",
|
|
398
|
+
tooltip: "docs-thread-comment-ui.panel.addComment",
|
|
399
399
|
hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_DOC)
|
|
400
400
|
};
|
|
401
401
|
}
|
|
@@ -568,7 +568,7 @@ let DocThreadCommentRenderController = class DocThreadCommentRenderController ex
|
|
|
568
568
|
this._docRenderController.reRender(activeComment.unitId);
|
|
569
569
|
return;
|
|
570
570
|
}
|
|
571
|
-
const unitId = (_this$_univerInstance = this._univerInstanceService.
|
|
571
|
+
const unitId = (_this$_univerInstance = this._univerInstanceService.getCurrentUnitOfType(UniverInstanceType.UNIVER_DOC)) === null || _this$_univerInstance === void 0 ? void 0 : _this$_univerInstance.getUnitId();
|
|
572
572
|
if (unitId) this._docRenderController.reRender(unitId);
|
|
573
573
|
}));
|
|
574
574
|
this.disposeWithMe(this._threadCommentModel.commentUpdate$.subscribe((update) => {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//#region src/locale/en-US.ts
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
const locale = { "docs-thread-comment-ui": { panel: {
|
|
18
|
+
title: "Comment Management",
|
|
19
|
+
addComment: "Add Comment"
|
|
20
|
+
} } };
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
export { locale as default };
|
package/lib/index.js
CHANGED
|
@@ -181,7 +181,7 @@ const ShowCommentPanelOperation = {
|
|
|
181
181
|
const sidebarService = accessor.get(ISidebarService);
|
|
182
182
|
if (!panelService.panelVisible || ((_sidebarService$optio = sidebarService.options.children) === null || _sidebarService$optio === void 0 ? void 0 : _sidebarService$optio.label) !== "univer.doc.thread-comment-panel") {
|
|
183
183
|
sidebarService.open({
|
|
184
|
-
header: { title: "
|
|
184
|
+
header: { title: "docs-thread-comment-ui.panel.title" },
|
|
185
185
|
children: { label: DOCS_THREAD_COMMENT_PANEL },
|
|
186
186
|
width: 320,
|
|
187
187
|
onClose: () => panelService.setPanelVisible(false)
|
|
@@ -201,7 +201,7 @@ const ToggleCommentPanelOperation = {
|
|
|
201
201
|
const sidebarService = accessor.get(ISidebarService);
|
|
202
202
|
if (!panelService.panelVisible || ((_sidebarService$optio2 = sidebarService.options.children) === null || _sidebarService$optio2 === void 0 ? void 0 : _sidebarService$optio2.label) !== "univer.doc.thread-comment-panel") {
|
|
203
203
|
sidebarService.open({
|
|
204
|
-
header: { title: "
|
|
204
|
+
header: { title: "docs-thread-comment-ui.panel.title" },
|
|
205
205
|
children: { label: DOCS_THREAD_COMMENT_PANEL },
|
|
206
206
|
width: 320,
|
|
207
207
|
onClose: () => panelService.setPanelVisible(false)
|
|
@@ -221,7 +221,7 @@ const StartAddCommentOperation = {
|
|
|
221
221
|
handler(accessor) {
|
|
222
222
|
var _renderManagerService, _doc$getBody$dataStre, _doc$getBody;
|
|
223
223
|
const panelService = accessor.get(ThreadCommentPanelService);
|
|
224
|
-
const doc = accessor.get(IUniverInstanceService).
|
|
224
|
+
const doc = accessor.get(IUniverInstanceService).getCurrentUnitOfType(UniverInstanceType.UNIVER_DOC);
|
|
225
225
|
const docSelectionManagerService = accessor.get(DocSelectionManagerService);
|
|
226
226
|
const renderManagerService = accessor.get(IRenderManagerService);
|
|
227
227
|
const userManagerService = accessor.get(UserManagerService);
|
|
@@ -272,7 +272,7 @@ const StartAddCommentOperation = {
|
|
|
272
272
|
//#endregion
|
|
273
273
|
//#region package.json
|
|
274
274
|
var name = "@univerjs/docs-thread-comment-ui";
|
|
275
|
-
var version = "0.
|
|
275
|
+
var version = "0.24.0-insiders.20260527-b1d726f";
|
|
276
276
|
|
|
277
277
|
//#endregion
|
|
278
278
|
//#region src/config/config.ts
|
|
@@ -376,8 +376,8 @@ function AddDocCommentMenuItemFactory(accessor) {
|
|
|
376
376
|
id: StartAddCommentOperation.id,
|
|
377
377
|
type: MenuItemType.BUTTON,
|
|
378
378
|
icon: "CommentIcon",
|
|
379
|
-
title: "
|
|
380
|
-
tooltip: "
|
|
379
|
+
title: "docs-thread-comment-ui.panel.addComment",
|
|
380
|
+
tooltip: "docs-thread-comment-ui.panel.addComment",
|
|
381
381
|
hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_DOC, void 0, SHEET_EDITOR_UNITS),
|
|
382
382
|
disabled$: new Observable(function(subscribe) {
|
|
383
383
|
const observer = accessor.get(DocSelectionManagerService).textSelection$.pipe(debounceTime(16)).subscribe(() => {
|
|
@@ -394,8 +394,8 @@ function ToolbarDocCommentMenuItemFactory(accessor) {
|
|
|
394
394
|
id: ToggleCommentPanelOperation.id,
|
|
395
395
|
type: MenuItemType.BUTTON,
|
|
396
396
|
icon: "CommentIcon",
|
|
397
|
-
title: "
|
|
398
|
-
tooltip: "
|
|
397
|
+
title: "docs-thread-comment-ui.panel.addComment",
|
|
398
|
+
tooltip: "docs-thread-comment-ui.panel.addComment",
|
|
399
399
|
hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_DOC)
|
|
400
400
|
};
|
|
401
401
|
}
|
|
@@ -568,7 +568,7 @@ let DocThreadCommentRenderController = class DocThreadCommentRenderController ex
|
|
|
568
568
|
this._docRenderController.reRender(activeComment.unitId);
|
|
569
569
|
return;
|
|
570
570
|
}
|
|
571
|
-
const unitId = (_this$_univerInstance = this._univerInstanceService.
|
|
571
|
+
const unitId = (_this$_univerInstance = this._univerInstanceService.getCurrentUnitOfType(UniverInstanceType.UNIVER_DOC)) === null || _this$_univerInstance === void 0 ? void 0 : _this$_univerInstance.getUnitId();
|
|
572
572
|
if (unitId) this._docRenderController.reRender(unitId);
|
|
573
573
|
}));
|
|
574
574
|
this.disposeWithMe(this._threadCommentModel.commentUpdate$.subscribe((update) => {
|