@univerjs/thread-comment-ui 0.24.0 → 0.25.0

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 (92) hide show
  1. package/lib/cjs/index.js +182 -124
  2. package/lib/cjs/locale/ar-SA.js +37 -0
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/de-DE.js +37 -0
  5. package/lib/cjs/locale/en-US.js +1 -1
  6. package/lib/cjs/locale/es-ES.js +1 -1
  7. package/lib/cjs/locale/fa-IR.js +1 -1
  8. package/lib/cjs/locale/fr-FR.js +1 -1
  9. package/lib/cjs/locale/id-ID.js +37 -0
  10. package/lib/cjs/locale/it-IT.js +37 -0
  11. package/lib/cjs/locale/ja-JP.js +1 -1
  12. package/lib/cjs/locale/ko-KR.js +1 -1
  13. package/lib/cjs/locale/pl-PL.js +37 -0
  14. package/lib/cjs/locale/pt-BR.js +37 -0
  15. package/lib/cjs/locale/ru-RU.js +1 -1
  16. package/lib/cjs/locale/sk-SK.js +1 -1
  17. package/lib/cjs/locale/vi-VN.js +1 -1
  18. package/lib/cjs/locale/zh-CN.js +1 -1
  19. package/lib/cjs/locale/zh-HK.js +37 -0
  20. package/lib/cjs/locale/zh-TW.js +1 -1
  21. package/lib/es/index.js +182 -124
  22. package/lib/es/locale/ar-SA.js +36 -0
  23. package/lib/es/locale/ca-ES.js +1 -1
  24. package/lib/es/locale/de-DE.js +36 -0
  25. package/lib/es/locale/en-US.js +1 -1
  26. package/lib/es/locale/es-ES.js +1 -1
  27. package/lib/es/locale/fa-IR.js +1 -1
  28. package/lib/es/locale/fr-FR.js +1 -1
  29. package/lib/es/locale/id-ID.js +36 -0
  30. package/lib/es/locale/it-IT.js +36 -0
  31. package/lib/es/locale/ja-JP.js +1 -1
  32. package/lib/es/locale/ko-KR.js +1 -1
  33. package/lib/es/locale/pl-PL.js +36 -0
  34. package/lib/es/locale/pt-BR.js +36 -0
  35. package/lib/es/locale/ru-RU.js +1 -1
  36. package/lib/es/locale/sk-SK.js +1 -1
  37. package/lib/es/locale/vi-VN.js +1 -1
  38. package/lib/es/locale/zh-CN.js +1 -1
  39. package/lib/es/locale/zh-HK.js +36 -0
  40. package/lib/es/locale/zh-TW.js +1 -1
  41. package/lib/index.js +182 -124
  42. package/lib/locale/ar-SA.js +36 -0
  43. package/lib/locale/ca-ES.js +1 -1
  44. package/lib/locale/de-DE.js +36 -0
  45. package/lib/locale/en-US.js +1 -1
  46. package/lib/locale/es-ES.js +1 -1
  47. package/lib/locale/fa-IR.js +1 -1
  48. package/lib/locale/fr-FR.js +1 -1
  49. package/lib/locale/id-ID.js +36 -0
  50. package/lib/locale/it-IT.js +36 -0
  51. package/lib/locale/ja-JP.js +1 -1
  52. package/lib/locale/ko-KR.js +1 -1
  53. package/lib/locale/pl-PL.js +36 -0
  54. package/lib/locale/pt-BR.js +36 -0
  55. package/lib/locale/ru-RU.js +1 -1
  56. package/lib/locale/sk-SK.js +1 -1
  57. package/lib/locale/vi-VN.js +1 -1
  58. package/lib/locale/zh-CN.js +1 -1
  59. package/lib/locale/zh-HK.js +36 -0
  60. package/lib/locale/zh-TW.js +1 -1
  61. package/lib/types/locale/ar-SA.d.ts +18 -0
  62. package/lib/types/locale/de-DE.d.ts +18 -0
  63. package/lib/types/locale/en-US.d.ts +1 -1
  64. package/lib/types/locale/id-ID.d.ts +18 -0
  65. package/lib/types/locale/it-IT.d.ts +18 -0
  66. package/lib/types/locale/pl-PL.d.ts +18 -0
  67. package/lib/types/locale/pt-BR.d.ts +18 -0
  68. package/lib/types/locale/zh-HK.d.ts +18 -0
  69. package/lib/types/views/thread-comment-editor/util.d.ts +8 -0
  70. package/lib/types/views/thread-comment-panel/util.d.ts +18 -0
  71. package/lib/types/views/thread-comment-tree/util.d.ts +25 -0
  72. package/lib/umd/index.js +4 -4
  73. package/lib/umd/locale/ar-SA.js +1 -0
  74. package/lib/umd/locale/ca-ES.js +1 -1
  75. package/lib/umd/locale/de-DE.js +1 -0
  76. package/lib/umd/locale/en-US.js +1 -1
  77. package/lib/umd/locale/es-ES.js +1 -1
  78. package/lib/umd/locale/fa-IR.js +1 -1
  79. package/lib/umd/locale/fr-FR.js +1 -1
  80. package/lib/umd/locale/id-ID.js +1 -0
  81. package/lib/umd/locale/it-IT.js +1 -0
  82. package/lib/umd/locale/ja-JP.js +1 -1
  83. package/lib/umd/locale/ko-KR.js +1 -1
  84. package/lib/umd/locale/pl-PL.js +1 -0
  85. package/lib/umd/locale/pt-BR.js +1 -0
  86. package/lib/umd/locale/ru-RU.js +1 -1
  87. package/lib/umd/locale/sk-SK.js +1 -1
  88. package/lib/umd/locale/vi-VN.js +1 -1
  89. package/lib/umd/locale/zh-CN.js +1 -1
  90. package/lib/umd/locale/zh-HK.js +1 -0
  91. package/lib/umd/locale/zh-TW.js +1 -1
  92. package/package.json +9 -9
@@ -0,0 +1,36 @@
1
+ //#region src/locale/ar-SA.ts
2
+ const locale = { "thread-comment-ui": {
3
+ panel: {
4
+ title: "إدارة التعليقات",
5
+ empty: "لا توجد تعليقات بعد",
6
+ filterEmpty: "لا توجد نتائج مطابقة",
7
+ reset: "إعادة ضبط التصفية",
8
+ addComment: "إضافة تعليق",
9
+ solved: "تم الحل"
10
+ },
11
+ editor: {
12
+ placeholder: "رد أو إشارة إلى آخرين باستخدام @",
13
+ reply: "تعليق",
14
+ cancel: "إلغاء",
15
+ save: "حفظ"
16
+ },
17
+ item: {
18
+ edit: "تحرير",
19
+ delete: "حذف هذا التعليق"
20
+ },
21
+ filter: {
22
+ sheet: {
23
+ all: "كل الأوراق",
24
+ current: "الورقة الحالية"
25
+ },
26
+ status: {
27
+ all: "كل التعليقات",
28
+ resolved: "تم الحل",
29
+ unsolved: "لم يتم الحل",
30
+ concernMe: "يتعلق بي"
31
+ }
32
+ }
33
+ } };
34
+
35
+ //#endregion
36
+ export { locale as default };
@@ -1,5 +1,5 @@
1
1
  //#region src/locale/ca-ES.ts
2
- const locale = { threadCommentUI: {
2
+ const locale = { "thread-comment-ui": {
3
3
  panel: {
4
4
  title: "Gestió de comentaris",
5
5
  empty: "Encara no hi ha comentaris",
@@ -0,0 +1,36 @@
1
+ //#region src/locale/de-DE.ts
2
+ const locale = { "thread-comment-ui": {
3
+ panel: {
4
+ title: "Kommentarverwaltung",
5
+ empty: "Noch keine Kommentare",
6
+ filterEmpty: "Kein Treffer",
7
+ reset: "Filter zurücksetzen",
8
+ addComment: "Kommentar hinzufügen",
9
+ solved: "Gelöst"
10
+ },
11
+ editor: {
12
+ placeholder: "Antworten oder andere mit @ erwähnen",
13
+ reply: "Kommentar",
14
+ cancel: "Abbrechen",
15
+ save: "Speichern"
16
+ },
17
+ item: {
18
+ edit: "Bearbeiten",
19
+ delete: "Diesen Kommentar löschen"
20
+ },
21
+ filter: {
22
+ sheet: {
23
+ all: "Alle Blätter",
24
+ current: "Aktuelles Blatt"
25
+ },
26
+ status: {
27
+ all: "Alle Kommentare",
28
+ resolved: "Gelöst",
29
+ unsolved: "Ungelöst",
30
+ concernMe: "Betrifft mich"
31
+ }
32
+ }
33
+ } };
34
+
35
+ //#endregion
36
+ export { locale as default };
@@ -14,7 +14,7 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- const locale = { threadCommentUI: {
17
+ const locale = { "thread-comment-ui": {
18
18
  panel: {
19
19
  title: "Comment Management",
20
20
  empty: "No comments yet",
@@ -1,5 +1,5 @@
1
1
  //#region src/locale/es-ES.ts
2
- const locale = { threadCommentUI: {
2
+ const locale = { "thread-comment-ui": {
3
3
  panel: {
4
4
  title: "Gestión de comentarios",
5
5
  empty: "Aún no hay comentarios",
@@ -1,5 +1,5 @@
1
1
  //#region src/locale/fa-IR.ts
2
- const locale = { threadCommentUI: {
2
+ const locale = { "thread-comment-ui": {
3
3
  panel: {
4
4
  title: "مدیریت نظرات",
5
5
  empty: "هنوز نظری وجود ندارد",
@@ -1,5 +1,5 @@
1
1
  //#region src/locale/fr-FR.ts
2
- const locale = { threadCommentUI: {
2
+ const locale = { "thread-comment-ui": {
3
3
  panel: {
4
4
  title: "Gestion des commentaires",
5
5
  empty: "Pas encore de commentaires",
@@ -0,0 +1,36 @@
1
+ //#region src/locale/id-ID.ts
2
+ const locale = { "thread-comment-ui": {
3
+ panel: {
4
+ title: "Manajemen Komentar",
5
+ empty: "Belum ada komentar",
6
+ filterEmpty: "Tidak ada hasil yang cocok",
7
+ reset: "Atur Ulang Filter",
8
+ addComment: "Tambah Komentar",
9
+ solved: "Terselesaikan"
10
+ },
11
+ editor: {
12
+ placeholder: "Balas atau tambahkan orang lain dengan @",
13
+ reply: "Komentar",
14
+ cancel: "Batal",
15
+ save: "Simpan"
16
+ },
17
+ item: {
18
+ edit: "Edit",
19
+ delete: "Hapus Komentar Ini"
20
+ },
21
+ filter: {
22
+ sheet: {
23
+ all: "Semua lembar",
24
+ current: "Lembar saat ini"
25
+ },
26
+ status: {
27
+ all: "Semua komentar",
28
+ resolved: "Terselesaikan",
29
+ unsolved: "Belum terselesaikan",
30
+ concernMe: "Yang menyangkut saya"
31
+ }
32
+ }
33
+ } };
34
+
35
+ //#endregion
36
+ export { locale as default };
@@ -0,0 +1,36 @@
1
+ //#region src/locale/it-IT.ts
2
+ const locale = { "thread-comment-ui": {
3
+ panel: {
4
+ title: "Gestione commenti",
5
+ empty: "Nessun commento",
6
+ filterEmpty: "Nessun risultato",
7
+ reset: "Reimposta filtro",
8
+ addComment: "Aggiungi commento",
9
+ solved: "Risolto"
10
+ },
11
+ editor: {
12
+ placeholder: "Rispondi o aggiungi altri con @",
13
+ reply: "Commenta",
14
+ cancel: "Annulla",
15
+ save: "Salva"
16
+ },
17
+ item: {
18
+ edit: "Modifica",
19
+ delete: "Elimina questo commento"
20
+ },
21
+ filter: {
22
+ sheet: {
23
+ all: "Tutti i fogli",
24
+ current: "Foglio corrente"
25
+ },
26
+ status: {
27
+ all: "Tutti i commenti",
28
+ resolved: "Risolti",
29
+ unsolved: "Non risolti",
30
+ concernMe: "Mi riguardano"
31
+ }
32
+ }
33
+ } };
34
+
35
+ //#endregion
36
+ export { locale as default };
@@ -1,5 +1,5 @@
1
1
  //#region src/locale/ja-JP.ts
2
- const locale = { threadCommentUI: {
2
+ const locale = { "thread-comment-ui": {
3
3
  panel: {
4
4
  title: "コメント管理",
5
5
  empty: "まだコメントはありません",
@@ -1,5 +1,5 @@
1
1
  //#region src/locale/ko-KR.ts
2
- const locale = { threadCommentUI: {
2
+ const locale = { "thread-comment-ui": {
3
3
  panel: {
4
4
  title: "댓글 관리",
5
5
  empty: "아직 댓글이 없습니다",
@@ -0,0 +1,36 @@
1
+ //#region src/locale/pl-PL.ts
2
+ const locale = { "thread-comment-ui": {
3
+ panel: {
4
+ title: "Zarządzanie komentarzami",
5
+ empty: "Brak komentarzy",
6
+ filterEmpty: "Brak wyników",
7
+ reset: "Resetuj filtr",
8
+ addComment: "Dodaj komentarz",
9
+ solved: "Rozwiązane"
10
+ },
11
+ editor: {
12
+ placeholder: "Odpowiedz lub dodaj innych za pomocą @",
13
+ reply: "Komentarz",
14
+ cancel: "Anuluj",
15
+ save: "Zapisz"
16
+ },
17
+ item: {
18
+ edit: "Edytuj",
19
+ delete: "Usuń ten komentarz"
20
+ },
21
+ filter: {
22
+ sheet: {
23
+ all: "Wszystkie arkusze",
24
+ current: "Bieżący arkusz"
25
+ },
26
+ status: {
27
+ all: "Wszystkie komentarze",
28
+ resolved: "Rozwiązane",
29
+ unsolved: "Nierozwiązane",
30
+ concernMe: "Dotyczące mnie"
31
+ }
32
+ }
33
+ } };
34
+
35
+ //#endregion
36
+ export { locale as default };
@@ -0,0 +1,36 @@
1
+ //#region src/locale/pt-BR.ts
2
+ const locale = { "thread-comment-ui": {
3
+ panel: {
4
+ title: "Gerenciamento de Comentários",
5
+ empty: "Nenhum comentário ainda",
6
+ filterEmpty: "Nenhum resultado correspondente",
7
+ reset: "Redefinir Filtro",
8
+ addComment: "Adicionar Comentário",
9
+ solved: "Resolvido"
10
+ },
11
+ editor: {
12
+ placeholder: "Responder ou mencionar outros com @",
13
+ reply: "Comentar",
14
+ cancel: "Cancelar",
15
+ save: "Salvar"
16
+ },
17
+ item: {
18
+ edit: "Editar",
19
+ delete: "Excluir Este Comentário"
20
+ },
21
+ filter: {
22
+ sheet: {
23
+ all: "Todas as planilhas",
24
+ current: "Planilha atual"
25
+ },
26
+ status: {
27
+ all: "Todos os comentários",
28
+ resolved: "Resolvidos",
29
+ unsolved: "Não resolvidos",
30
+ concernMe: "Me envolvem"
31
+ }
32
+ }
33
+ } };
34
+
35
+ //#endregion
36
+ export { locale as default };
@@ -1,5 +1,5 @@
1
1
  //#region src/locale/ru-RU.ts
2
- const locale = { threadCommentUI: {
2
+ const locale = { "thread-comment-ui": {
3
3
  panel: {
4
4
  title: "Управление комментариями",
5
5
  empty: "Комментариев пока нет",
@@ -1,5 +1,5 @@
1
1
  //#region src/locale/sk-SK.ts
2
- const locale = { threadCommentUI: {
2
+ const locale = { "thread-comment-ui": {
3
3
  panel: {
4
4
  title: "Správa komentárov",
5
5
  empty: "Zatiaľ žiadne komentáre",
@@ -1,5 +1,5 @@
1
1
  //#region src/locale/vi-VN.ts
2
- const locale = { threadCommentUI: {
2
+ const locale = { "thread-comment-ui": {
3
3
  panel: {
4
4
  title: "Quản lý Bình luận",
5
5
  empty: "Chưa có bình luận",
@@ -1,5 +1,5 @@
1
1
  //#region src/locale/zh-CN.ts
2
- const locale = { threadCommentUI: {
2
+ const locale = { "thread-comment-ui": {
3
3
  panel: {
4
4
  title: "评论管理",
5
5
  empty: "暂无评论",
@@ -0,0 +1,36 @@
1
+ //#region src/locale/zh-HK.ts
2
+ const locale = { "thread-comment-ui": {
3
+ panel: {
4
+ title: "評論管理",
5
+ empty: "暫無評論",
6
+ filterEmpty: "沒有符合的結果",
7
+ reset: "重置",
8
+ addComment: "新增評論",
9
+ solved: "已解決"
10
+ },
11
+ editor: {
12
+ placeholder: "回覆",
13
+ reply: "回覆",
14
+ cancel: "取消",
15
+ save: "儲存"
16
+ },
17
+ item: {
18
+ edit: "編輯",
19
+ delete: "刪除"
20
+ },
21
+ filter: {
22
+ sheet: {
23
+ all: "所有表格",
24
+ current: "當前表格"
25
+ },
26
+ status: {
27
+ all: "所有評論",
28
+ resolved: "已解決",
29
+ unsolved: "未解決",
30
+ concernMe: "與我有關"
31
+ }
32
+ }
33
+ } };
34
+
35
+ //#endregion
36
+ export { locale as default };
@@ -1,5 +1,5 @@
1
1
  //#region src/locale/zh-TW.ts
2
- const locale = { threadCommentUI: {
2
+ const locale = { "thread-comment-ui": {
3
3
  panel: {
4
4
  title: "評論管理",
5
5
  empty: "暫無評論",
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  declare const locale: {
17
- threadCommentUI: {
17
+ 'thread-comment-ui': {
18
18
  panel: {
19
19
  title: string;
20
20
  empty: string;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;
@@ -15,6 +15,12 @@
15
15
  */
16
16
  import type { IDocumentBody } from '@univerjs/core';
17
17
  import type { IThreadCommentMention } from '@univerjs/thread-comment';
18
+ interface IThreadCommentEditorFocusService {
19
+ focus: (editorId: string) => void;
20
+ }
21
+ interface IFocusableThreadCommentEditor {
22
+ focus: () => void;
23
+ }
18
24
  export type TextNode = {
19
25
  type: 'text';
20
26
  content: string;
@@ -24,3 +30,5 @@ export type TextNode = {
24
30
  };
25
31
  export declare const transformDocument2TextNodes: (doc: IDocumentBody) => TextNode[][];
26
32
  export declare const transformTextNodes2Document: (nodes: TextNode[]) => IDocumentBody;
33
+ export declare function focusThreadCommentEditor(editorService: IThreadCommentEditorFocusService, editorId: string, editor?: IFocusableThreadCommentEditor | null): void;
34
+ export {};
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { IThreadComment } from '@univerjs/thread-comment';
17
+ export type ThreadCommentPanelSection = 'unsolved' | 'solved';
18
+ export declare function getThreadCommentPanelItemKey(comment: IThreadComment, index: number, section: ThreadCommentPanelSection): string;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { ThreadCommentTreeLocation } from '../thread-comment-tree';
17
+ interface IGetThreadCommentEditorIdParams {
18
+ location: ThreadCommentTreeLocation;
19
+ unitId: string;
20
+ subUnitId: string;
21
+ commentId?: string;
22
+ fallbackId: string;
23
+ }
24
+ export declare function getThreadCommentEditorId(params: IGetThreadCommentEditorIdParams): string;
25
+ export {};