@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.
Files changed (101) hide show
  1. package/lib/cjs/index.js +9 -9
  2. package/lib/cjs/locale/ar-SA.js +9 -0
  3. package/lib/cjs/locale/ca-ES.js +9 -0
  4. package/lib/cjs/locale/de-DE.js +9 -0
  5. package/lib/cjs/locale/en-US.js +24 -0
  6. package/lib/cjs/locale/es-ES.js +9 -0
  7. package/lib/cjs/locale/fa-IR.js +9 -0
  8. package/lib/cjs/locale/fr-FR.js +9 -0
  9. package/lib/cjs/locale/id-ID.js +9 -0
  10. package/lib/cjs/locale/it-IT.js +9 -0
  11. package/lib/cjs/locale/ja-JP.js +9 -0
  12. package/lib/cjs/locale/ko-KR.js +9 -0
  13. package/lib/cjs/locale/pl-PL.js +9 -0
  14. package/lib/cjs/locale/pt-BR.js +9 -0
  15. package/lib/cjs/locale/ru-RU.js +9 -0
  16. package/lib/cjs/locale/sk-SK.js +9 -0
  17. package/lib/cjs/locale/vi-VN.js +9 -0
  18. package/lib/cjs/locale/zh-CN.js +9 -0
  19. package/lib/cjs/locale/zh-HK.js +9 -0
  20. package/lib/cjs/locale/zh-TW.js +9 -0
  21. package/lib/es/index.js +9 -9
  22. package/lib/es/locale/ar-SA.js +8 -0
  23. package/lib/es/locale/ca-ES.js +8 -0
  24. package/lib/es/locale/de-DE.js +8 -0
  25. package/lib/es/locale/en-US.js +23 -0
  26. package/lib/es/locale/es-ES.js +8 -0
  27. package/lib/es/locale/fa-IR.js +8 -0
  28. package/lib/es/locale/fr-FR.js +8 -0
  29. package/lib/es/locale/id-ID.js +8 -0
  30. package/lib/es/locale/it-IT.js +8 -0
  31. package/lib/es/locale/ja-JP.js +8 -0
  32. package/lib/es/locale/ko-KR.js +8 -0
  33. package/lib/es/locale/pl-PL.js +8 -0
  34. package/lib/es/locale/pt-BR.js +8 -0
  35. package/lib/es/locale/ru-RU.js +8 -0
  36. package/lib/es/locale/sk-SK.js +8 -0
  37. package/lib/es/locale/vi-VN.js +8 -0
  38. package/lib/es/locale/zh-CN.js +8 -0
  39. package/lib/es/locale/zh-HK.js +8 -0
  40. package/lib/es/locale/zh-TW.js +8 -0
  41. package/lib/index.js +9 -9
  42. package/lib/locale/ar-SA.js +8 -0
  43. package/lib/locale/ca-ES.js +8 -0
  44. package/lib/locale/de-DE.js +8 -0
  45. package/lib/locale/en-US.js +23 -0
  46. package/lib/locale/es-ES.js +8 -0
  47. package/lib/locale/fa-IR.js +8 -0
  48. package/lib/locale/fr-FR.js +8 -0
  49. package/lib/locale/id-ID.js +8 -0
  50. package/lib/locale/it-IT.js +8 -0
  51. package/lib/locale/ja-JP.js +8 -0
  52. package/lib/locale/ko-KR.js +8 -0
  53. package/lib/locale/pl-PL.js +8 -0
  54. package/lib/locale/pt-BR.js +8 -0
  55. package/lib/locale/ru-RU.js +8 -0
  56. package/lib/locale/sk-SK.js +8 -0
  57. package/lib/locale/vi-VN.js +8 -0
  58. package/lib/locale/zh-CN.js +8 -0
  59. package/lib/locale/zh-HK.js +8 -0
  60. package/lib/locale/zh-TW.js +8 -0
  61. package/lib/types/locale/ar-SA.d.ts +18 -0
  62. package/lib/types/locale/ca-ES.d.ts +18 -0
  63. package/lib/types/locale/de-DE.d.ts +18 -0
  64. package/lib/types/locale/en-US.d.ts +24 -0
  65. package/lib/types/locale/es-ES.d.ts +18 -0
  66. package/lib/types/locale/fa-IR.d.ts +18 -0
  67. package/lib/types/locale/fr-FR.d.ts +18 -0
  68. package/lib/types/locale/id-ID.d.ts +18 -0
  69. package/lib/types/locale/it-IT.d.ts +18 -0
  70. package/lib/types/locale/ja-JP.d.ts +18 -0
  71. package/lib/types/locale/ko-KR.d.ts +18 -0
  72. package/lib/types/locale/pl-PL.d.ts +18 -0
  73. package/lib/types/locale/pt-BR.d.ts +18 -0
  74. package/lib/types/locale/ru-RU.d.ts +18 -0
  75. package/lib/types/locale/sk-SK.d.ts +18 -0
  76. package/lib/types/locale/vi-VN.d.ts +18 -0
  77. package/lib/types/locale/zh-CN.d.ts +18 -0
  78. package/lib/types/locale/zh-HK.d.ts +18 -0
  79. package/lib/types/locale/zh-TW.d.ts +18 -0
  80. package/lib/umd/index.js +2 -2
  81. package/lib/umd/locale/ar-SA.js +1 -0
  82. package/lib/umd/locale/ca-ES.js +1 -0
  83. package/lib/umd/locale/de-DE.js +1 -0
  84. package/lib/umd/locale/en-US.js +1 -0
  85. package/lib/umd/locale/es-ES.js +1 -0
  86. package/lib/umd/locale/fa-IR.js +1 -0
  87. package/lib/umd/locale/fr-FR.js +1 -0
  88. package/lib/umd/locale/id-ID.js +1 -0
  89. package/lib/umd/locale/it-IT.js +1 -0
  90. package/lib/umd/locale/ja-JP.js +1 -0
  91. package/lib/umd/locale/ko-KR.js +1 -0
  92. package/lib/umd/locale/pl-PL.js +1 -0
  93. package/lib/umd/locale/pt-BR.js +1 -0
  94. package/lib/umd/locale/ru-RU.js +1 -0
  95. package/lib/umd/locale/sk-SK.js +1 -0
  96. package/lib/umd/locale/vi-VN.js +1 -0
  97. package/lib/umd/locale/zh-CN.js +1 -0
  98. package/lib/umd/locale/zh-HK.js +1 -0
  99. package/lib/umd/locale/zh-TW.js +1 -0
  100. package/package.json +15 -10
  101. 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: "threadCommentUI.panel.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: "threadCommentUI.panel.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).getCurrentUnitForType(_univerjs_core.UniverInstanceType.UNIVER_DOC);
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.23.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: "threadCommentUI.panel.addComment",
381
- tooltip: "threadCommentUI.panel.addComment",
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: "threadCommentUI.panel.addComment",
399
- tooltip: "threadCommentUI.panel.addComment",
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.getCurrentUnitForType(_univerjs_core.UniverInstanceType.UNIVER_DOC)) === null || _this$_univerInstance === void 0 ? void 0 : _this$_univerInstance.getUnitId();
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,9 @@
1
+
2
+ //#region src/locale/ar-SA.ts
3
+ const locale = { "docs-thread-comment-ui": { panel: {
4
+ title: "إدارة التعليقات",
5
+ addComment: "إضافة تعليق"
6
+ } } };
7
+
8
+ //#endregion
9
+ module.exports = locale;
@@ -0,0 +1,9 @@
1
+
2
+ //#region src/locale/ca-ES.ts
3
+ const locale = { "docs-thread-comment-ui": { panel: {
4
+ title: "Gestió de comentaris",
5
+ addComment: "Afegeix un comentari"
6
+ } } };
7
+
8
+ //#endregion
9
+ module.exports = locale;
@@ -0,0 +1,9 @@
1
+
2
+ //#region src/locale/de-DE.ts
3
+ const locale = { "docs-thread-comment-ui": { panel: {
4
+ title: "Kommentarverwaltung",
5
+ addComment: "Kommentar hinzufügen"
6
+ } } };
7
+
8
+ //#endregion
9
+ module.exports = locale;
@@ -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;
@@ -0,0 +1,9 @@
1
+
2
+ //#region src/locale/es-ES.ts
3
+ const locale = { "docs-thread-comment-ui": { panel: {
4
+ title: "Gestión de comentarios",
5
+ addComment: "Añadir comentario"
6
+ } } };
7
+
8
+ //#endregion
9
+ module.exports = locale;
@@ -0,0 +1,9 @@
1
+
2
+ //#region src/locale/fa-IR.ts
3
+ const locale = { "docs-thread-comment-ui": { panel: {
4
+ title: "مدیریت نظرات",
5
+ addComment: "افزودن نظر"
6
+ } } };
7
+
8
+ //#endregion
9
+ module.exports = locale;
@@ -0,0 +1,9 @@
1
+
2
+ //#region src/locale/fr-FR.ts
3
+ const locale = { "docs-thread-comment-ui": { panel: {
4
+ title: "Gestion des commentaires",
5
+ addComment: "Ajouter un commentaire"
6
+ } } };
7
+
8
+ //#endregion
9
+ module.exports = locale;
@@ -0,0 +1,9 @@
1
+
2
+ //#region src/locale/id-ID.ts
3
+ const locale = { "docs-thread-comment-ui": { panel: {
4
+ title: "Manajemen Komentar",
5
+ addComment: "Tambah Komentar"
6
+ } } };
7
+
8
+ //#endregion
9
+ module.exports = locale;
@@ -0,0 +1,9 @@
1
+
2
+ //#region src/locale/it-IT.ts
3
+ const locale = { "docs-thread-comment-ui": { panel: {
4
+ title: "Gestione Commenti",
5
+ addComment: "Aggiungi Commento"
6
+ } } };
7
+
8
+ //#endregion
9
+ module.exports = locale;
@@ -0,0 +1,9 @@
1
+
2
+ //#region src/locale/ja-JP.ts
3
+ const locale = { "docs-thread-comment-ui": { panel: {
4
+ title: "コメント管理",
5
+ addComment: "コメントを追加"
6
+ } } };
7
+
8
+ //#endregion
9
+ module.exports = locale;
@@ -0,0 +1,9 @@
1
+
2
+ //#region src/locale/ko-KR.ts
3
+ const locale = { "docs-thread-comment-ui": { panel: {
4
+ title: "댓글 관리",
5
+ addComment: "댓글 추가"
6
+ } } };
7
+
8
+ //#endregion
9
+ module.exports = locale;
@@ -0,0 +1,9 @@
1
+
2
+ //#region src/locale/pl-PL.ts
3
+ const locale = { "docs-thread-comment-ui": { panel: {
4
+ title: "Zarządzanie komentarzami",
5
+ addComment: "Dodaj komentarz"
6
+ } } };
7
+
8
+ //#endregion
9
+ module.exports = locale;
@@ -0,0 +1,9 @@
1
+
2
+ //#region src/locale/pt-BR.ts
3
+ const locale = { "docs-thread-comment-ui": { panel: {
4
+ title: "Gerenciamento de Comentários",
5
+ addComment: "Adicionar Comentário"
6
+ } } };
7
+
8
+ //#endregion
9
+ module.exports = locale;
@@ -0,0 +1,9 @@
1
+
2
+ //#region src/locale/ru-RU.ts
3
+ const locale = { "docs-thread-comment-ui": { panel: {
4
+ title: "Управление комментариями",
5
+ addComment: "Добавить комментарий"
6
+ } } };
7
+
8
+ //#endregion
9
+ module.exports = locale;
@@ -0,0 +1,9 @@
1
+
2
+ //#region src/locale/sk-SK.ts
3
+ const locale = { "docs-thread-comment-ui": { panel: {
4
+ title: "Správa komentárov",
5
+ addComment: "Pridať komentár"
6
+ } } };
7
+
8
+ //#endregion
9
+ module.exports = locale;
@@ -0,0 +1,9 @@
1
+
2
+ //#region src/locale/vi-VN.ts
3
+ const locale = { "docs-thread-comment-ui": { panel: {
4
+ title: "Quản lý Bình luận",
5
+ addComment: "Thêm bình luận"
6
+ } } };
7
+
8
+ //#endregion
9
+ module.exports = locale;
@@ -0,0 +1,9 @@
1
+
2
+ //#region src/locale/zh-CN.ts
3
+ const locale = { "docs-thread-comment-ui": { panel: {
4
+ title: "评论管理",
5
+ addComment: "添加评论"
6
+ } } };
7
+
8
+ //#endregion
9
+ module.exports = locale;
@@ -0,0 +1,9 @@
1
+
2
+ //#region src/locale/zh-HK.ts
3
+ const locale = { "docs-thread-comment-ui": { panel: {
4
+ title: "評論管理",
5
+ addComment: "新增評論"
6
+ } } };
7
+
8
+ //#endregion
9
+ module.exports = locale;
@@ -0,0 +1,9 @@
1
+
2
+ //#region src/locale/zh-TW.ts
3
+ const locale = { "docs-thread-comment-ui": { panel: {
4
+ title: "評論管理",
5
+ addComment: "新增評論"
6
+ } } };
7
+
8
+ //#endregion
9
+ 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: "threadCommentUI.panel.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: "threadCommentUI.panel.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).getCurrentUnitForType(UniverInstanceType.UNIVER_DOC);
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.23.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: "threadCommentUI.panel.addComment",
380
- tooltip: "threadCommentUI.panel.addComment",
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: "threadCommentUI.panel.addComment",
398
- tooltip: "threadCommentUI.panel.addComment",
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.getCurrentUnitForType(UniverInstanceType.UNIVER_DOC)) === null || _this$_univerInstance === void 0 ? void 0 : _this$_univerInstance.getUnitId();
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,8 @@
1
+ //#region src/locale/ar-SA.ts
2
+ const locale = { "docs-thread-comment-ui": { panel: {
3
+ title: "إدارة التعليقات",
4
+ addComment: "إضافة تعليق"
5
+ } } };
6
+
7
+ //#endregion
8
+ export { locale as default };
@@ -0,0 +1,8 @@
1
+ //#region src/locale/ca-ES.ts
2
+ const locale = { "docs-thread-comment-ui": { panel: {
3
+ title: "Gestió de comentaris",
4
+ addComment: "Afegeix un comentari"
5
+ } } };
6
+
7
+ //#endregion
8
+ export { locale as default };
@@ -0,0 +1,8 @@
1
+ //#region src/locale/de-DE.ts
2
+ const locale = { "docs-thread-comment-ui": { panel: {
3
+ title: "Kommentarverwaltung",
4
+ addComment: "Kommentar hinzufügen"
5
+ } } };
6
+
7
+ //#endregion
8
+ export { locale as default };
@@ -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 };
@@ -0,0 +1,8 @@
1
+ //#region src/locale/es-ES.ts
2
+ const locale = { "docs-thread-comment-ui": { panel: {
3
+ title: "Gestión de comentarios",
4
+ addComment: "Añadir comentario"
5
+ } } };
6
+
7
+ //#endregion
8
+ export { locale as default };
@@ -0,0 +1,8 @@
1
+ //#region src/locale/fa-IR.ts
2
+ const locale = { "docs-thread-comment-ui": { panel: {
3
+ title: "مدیریت نظرات",
4
+ addComment: "افزودن نظر"
5
+ } } };
6
+
7
+ //#endregion
8
+ export { locale as default };
@@ -0,0 +1,8 @@
1
+ //#region src/locale/fr-FR.ts
2
+ const locale = { "docs-thread-comment-ui": { panel: {
3
+ title: "Gestion des commentaires",
4
+ addComment: "Ajouter un commentaire"
5
+ } } };
6
+
7
+ //#endregion
8
+ export { locale as default };
@@ -0,0 +1,8 @@
1
+ //#region src/locale/id-ID.ts
2
+ const locale = { "docs-thread-comment-ui": { panel: {
3
+ title: "Manajemen Komentar",
4
+ addComment: "Tambah Komentar"
5
+ } } };
6
+
7
+ //#endregion
8
+ export { locale as default };
@@ -0,0 +1,8 @@
1
+ //#region src/locale/it-IT.ts
2
+ const locale = { "docs-thread-comment-ui": { panel: {
3
+ title: "Gestione Commenti",
4
+ addComment: "Aggiungi Commento"
5
+ } } };
6
+
7
+ //#endregion
8
+ export { locale as default };
@@ -0,0 +1,8 @@
1
+ //#region src/locale/ja-JP.ts
2
+ const locale = { "docs-thread-comment-ui": { panel: {
3
+ title: "コメント管理",
4
+ addComment: "コメントを追加"
5
+ } } };
6
+
7
+ //#endregion
8
+ export { locale as default };
@@ -0,0 +1,8 @@
1
+ //#region src/locale/ko-KR.ts
2
+ const locale = { "docs-thread-comment-ui": { panel: {
3
+ title: "댓글 관리",
4
+ addComment: "댓글 추가"
5
+ } } };
6
+
7
+ //#endregion
8
+ export { locale as default };
@@ -0,0 +1,8 @@
1
+ //#region src/locale/pl-PL.ts
2
+ const locale = { "docs-thread-comment-ui": { panel: {
3
+ title: "Zarządzanie komentarzami",
4
+ addComment: "Dodaj komentarz"
5
+ } } };
6
+
7
+ //#endregion
8
+ export { locale as default };
@@ -0,0 +1,8 @@
1
+ //#region src/locale/pt-BR.ts
2
+ const locale = { "docs-thread-comment-ui": { panel: {
3
+ title: "Gerenciamento de Comentários",
4
+ addComment: "Adicionar Comentário"
5
+ } } };
6
+
7
+ //#endregion
8
+ export { locale as default };
@@ -0,0 +1,8 @@
1
+ //#region src/locale/ru-RU.ts
2
+ const locale = { "docs-thread-comment-ui": { panel: {
3
+ title: "Управление комментариями",
4
+ addComment: "Добавить комментарий"
5
+ } } };
6
+
7
+ //#endregion
8
+ export { locale as default };
@@ -0,0 +1,8 @@
1
+ //#region src/locale/sk-SK.ts
2
+ const locale = { "docs-thread-comment-ui": { panel: {
3
+ title: "Správa komentárov",
4
+ addComment: "Pridať komentár"
5
+ } } };
6
+
7
+ //#endregion
8
+ export { locale as default };
@@ -0,0 +1,8 @@
1
+ //#region src/locale/vi-VN.ts
2
+ const locale = { "docs-thread-comment-ui": { panel: {
3
+ title: "Quản lý Bình luận",
4
+ addComment: "Thêm bình luận"
5
+ } } };
6
+
7
+ //#endregion
8
+ export { locale as default };
@@ -0,0 +1,8 @@
1
+ //#region src/locale/zh-CN.ts
2
+ const locale = { "docs-thread-comment-ui": { panel: {
3
+ title: "评论管理",
4
+ addComment: "添加评论"
5
+ } } };
6
+
7
+ //#endregion
8
+ export { locale as default };
@@ -0,0 +1,8 @@
1
+ //#region src/locale/zh-HK.ts
2
+ const locale = { "docs-thread-comment-ui": { panel: {
3
+ title: "評論管理",
4
+ addComment: "新增評論"
5
+ } } };
6
+
7
+ //#endregion
8
+ export { locale as default };
@@ -0,0 +1,8 @@
1
+ //#region src/locale/zh-TW.ts
2
+ const locale = { "docs-thread-comment-ui": { panel: {
3
+ title: "評論管理",
4
+ addComment: "新增評論"
5
+ } } };
6
+
7
+ //#endregion
8
+ 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: "threadCommentUI.panel.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: "threadCommentUI.panel.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).getCurrentUnitForType(UniverInstanceType.UNIVER_DOC);
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.23.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: "threadCommentUI.panel.addComment",
380
- tooltip: "threadCommentUI.panel.addComment",
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: "threadCommentUI.panel.addComment",
398
- tooltip: "threadCommentUI.panel.addComment",
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.getCurrentUnitForType(UniverInstanceType.UNIVER_DOC)) === null || _this$_univerInstance === void 0 ? void 0 : _this$_univerInstance.getUnitId();
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,8 @@
1
+ //#region src/locale/ar-SA.ts
2
+ const locale = { "docs-thread-comment-ui": { panel: {
3
+ title: "إدارة التعليقات",
4
+ addComment: "إضافة تعليق"
5
+ } } };
6
+
7
+ //#endregion
8
+ export { locale as default };
@@ -0,0 +1,8 @@
1
+ //#region src/locale/ca-ES.ts
2
+ const locale = { "docs-thread-comment-ui": { panel: {
3
+ title: "Gestió de comentaris",
4
+ addComment: "Afegeix un comentari"
5
+ } } };
6
+
7
+ //#endregion
8
+ export { locale as default };