@ckeditor/ckeditor5-comments 39.0.2 → 40.1.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 (170) hide show
  1. package/LICENSE.md +3 -3
  2. package/README.md +1 -1
  3. package/build/comments.js +2 -2
  4. package/build/translations/af.js +1 -1
  5. package/build/translations/ar.js +1 -1
  6. package/build/translations/bg.js +1 -1
  7. package/build/translations/bn.js +1 -1
  8. package/build/translations/bs.js +1 -1
  9. package/build/translations/ca.js +1 -1
  10. package/build/translations/cs.js +1 -1
  11. package/build/translations/da.js +1 -1
  12. package/build/translations/de-ch.js +1 -1
  13. package/build/translations/de.js +1 -1
  14. package/build/translations/el.js +1 -1
  15. package/build/translations/en-au.js +1 -1
  16. package/build/translations/es-co.js +1 -1
  17. package/build/translations/es.js +1 -1
  18. package/build/translations/et.js +1 -1
  19. package/build/translations/fa.js +1 -1
  20. package/build/translations/fi.js +1 -1
  21. package/build/translations/fr.js +1 -1
  22. package/build/translations/gl.js +1 -1
  23. package/build/translations/he.js +1 -1
  24. package/build/translations/hi.js +1 -1
  25. package/build/translations/hr.js +1 -1
  26. package/build/translations/hu.js +1 -1
  27. package/build/translations/id.js +1 -1
  28. package/build/translations/it.js +1 -1
  29. package/build/translations/ja.js +1 -1
  30. package/build/translations/jv.js +1 -1
  31. package/build/translations/ko.js +1 -1
  32. package/build/translations/lt.js +1 -1
  33. package/build/translations/lv.js +1 -1
  34. package/build/translations/ms.js +1 -1
  35. package/build/translations/nl.js +1 -1
  36. package/build/translations/no.js +1 -1
  37. package/build/translations/pl.js +1 -1
  38. package/build/translations/pt-br.js +1 -1
  39. package/build/translations/pt.js +1 -1
  40. package/build/translations/ro.js +1 -1
  41. package/build/translations/ru.js +1 -1
  42. package/build/translations/sk.js +1 -1
  43. package/build/translations/sq.js +1 -1
  44. package/build/translations/sr-latn.js +1 -1
  45. package/build/translations/sr.js +1 -1
  46. package/build/translations/sv.js +1 -1
  47. package/build/translations/th.js +1 -1
  48. package/build/translations/tk.js +1 -1
  49. package/build/translations/tr.js +1 -1
  50. package/build/translations/tt.js +1 -1
  51. package/build/translations/ug.js +1 -1
  52. package/build/translations/uk.js +1 -1
  53. package/build/translations/ur.js +1 -1
  54. package/build/translations/vi.js +1 -1
  55. package/build/translations/zh-cn.js +1 -1
  56. package/build/translations/zh.js +1 -1
  57. package/lang/contexts.json +2 -0
  58. package/lang/translations/af.po +8 -0
  59. package/lang/translations/ar.po +8 -0
  60. package/lang/translations/bg.po +8 -0
  61. package/lang/translations/bn.po +8 -0
  62. package/lang/translations/bs.po +8 -0
  63. package/lang/translations/ca.po +8 -0
  64. package/lang/translations/cs.po +8 -0
  65. package/lang/translations/da.po +8 -0
  66. package/lang/translations/de-ch.po +8 -0
  67. package/lang/translations/de.po +8 -0
  68. package/lang/translations/el.po +8 -0
  69. package/lang/translations/en-au.po +8 -0
  70. package/lang/translations/en.po +8 -0
  71. package/lang/translations/es-co.po +8 -0
  72. package/lang/translations/es.po +8 -0
  73. package/lang/translations/et.po +8 -0
  74. package/lang/translations/fa.po +8 -0
  75. package/lang/translations/fi.po +8 -0
  76. package/lang/translations/fr.po +8 -0
  77. package/lang/translations/gl.po +8 -0
  78. package/lang/translations/he.po +8 -0
  79. package/lang/translations/hi.po +8 -0
  80. package/lang/translations/hr.po +8 -0
  81. package/lang/translations/hu.po +8 -0
  82. package/lang/translations/id.po +8 -0
  83. package/lang/translations/it.po +8 -0
  84. package/lang/translations/ja.po +8 -0
  85. package/lang/translations/jv.po +8 -0
  86. package/lang/translations/ko.po +8 -0
  87. package/lang/translations/lt.po +8 -0
  88. package/lang/translations/lv.po +8 -0
  89. package/lang/translations/ms.po +8 -0
  90. package/lang/translations/nl.po +8 -0
  91. package/lang/translations/no.po +8 -0
  92. package/lang/translations/pl.po +8 -0
  93. package/lang/translations/pt-br.po +11 -3
  94. package/lang/translations/pt.po +8 -0
  95. package/lang/translations/ro.po +8 -0
  96. package/lang/translations/ru.po +8 -0
  97. package/lang/translations/sk.po +8 -0
  98. package/lang/translations/sq.po +8 -0
  99. package/lang/translations/sr-latn.po +8 -0
  100. package/lang/translations/sr.po +8 -0
  101. package/lang/translations/sv.po +8 -0
  102. package/lang/translations/th.po +8 -0
  103. package/lang/translations/tk.po +8 -0
  104. package/lang/translations/tr.po +8 -0
  105. package/lang/translations/tt.po +8 -0
  106. package/lang/translations/ug.po +8 -0
  107. package/lang/translations/uk.po +8 -0
  108. package/lang/translations/ur.po +8 -0
  109. package/lang/translations/vi.po +8 -0
  110. package/lang/translations/zh-cn.po +8 -0
  111. package/lang/translations/zh.po +8 -0
  112. package/package.json +3 -3
  113. package/src/annotations/annotation.js +1 -1
  114. package/src/annotations/annotationcollection.js +1 -1
  115. package/src/annotations/annotations.js +1 -1
  116. package/src/annotations/annotationsuis.js +1 -1
  117. package/src/annotations/editorannotations.js +1 -1
  118. package/src/annotations/inlineannotations.js +1 -1
  119. package/src/annotations/narrowsidebar.js +1 -1
  120. package/src/annotations/sidebar.js +1 -1
  121. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  122. package/src/annotations/view/annotationview.js +1 -1
  123. package/src/annotations/view/sidebaritemview.js +1 -1
  124. package/src/annotations/view/sidebarview.js +1 -1
  125. package/src/annotations/widesidebar.js +1 -1
  126. package/src/comments/addcommentthreadcommand.js +1 -1
  127. package/src/comments/commentsarchive.d.ts +2 -2
  128. package/src/comments/commentsarchive.js +1 -1
  129. package/src/comments/commentsarchiveui.d.ts +1 -1
  130. package/src/comments/commentsarchiveui.js +1 -1
  131. package/src/comments/commentsediting.js +1 -1
  132. package/src/comments/commentsrepository.d.ts +39 -15
  133. package/src/comments/commentsrepository.js +1 -1
  134. package/src/comments/commentsui.js +1 -1
  135. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  136. package/src/comments/integrations/importword.js +1 -1
  137. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  138. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  139. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  140. package/src/comments/ui/commentthreadcontroller.js +1 -1
  141. package/src/comments/ui/view/basecommentthreadview.d.ts +7 -0
  142. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  143. package/src/comments/ui/view/basecommentview.js +1 -1
  144. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  145. package/src/comments/ui/view/commentcontentview.js +1 -1
  146. package/src/comments/ui/view/commentinputview.js +1 -1
  147. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  148. package/src/comments/ui/view/commentslistview.js +1 -1
  149. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  150. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  151. package/src/comments/ui/view/commentthreadview.d.ts +1 -0
  152. package/src/comments/ui/view/commentthreadview.js +1 -1
  153. package/src/comments/ui/view/commentview.js +1 -1
  154. package/src/comments.js +1 -1
  155. package/src/commentsonly.js +1 -1
  156. package/src/utils/common-translations.js +1 -1
  157. package/src/utils/createmutationobserver.js +1 -1
  158. package/theme/annotation-inline.css +2 -1
  159. package/theme/annotation.css +2 -1
  160. package/theme/comment.css +3 -2
  161. package/theme/commentinput.css +2 -1
  162. package/theme/commentmarker.css +2 -1
  163. package/theme/commentsarchive.css +2 -1
  164. package/theme/commentthread.css +12 -1
  165. package/theme/icons/add-comment.svg +1 -1
  166. package/theme/icons/comments-archive.svg +1 -1
  167. package/theme/icons/edit-comment.svg +1 -1
  168. package/theme/icons/remove-comment.svg +1 -1
  169. package/theme/sidebar-narrow.css +2 -1
  170. package/theme/sidebar.css +2 -1
@@ -85,6 +85,14 @@ msgctxt "The tooltip for the comment toolbar button and the button that submits
85
85
  msgid "Comment"
86
86
  msgstr "Skomentuj"
87
87
 
88
+ msgctxt "A message read out by assistive technologies the moment the user selection moves into a comment."
89
+ msgid "ENTER_COMMENT_ANNOUNCEMENT"
90
+ msgstr "Przechodzenie do komentarza."
91
+
92
+ msgctxt "A message read out by assistive technologies the moment the user selection leaves a comment."
93
+ msgid "LEAVE_COMMENT_ANNOUNCEMENT"
94
+ msgstr "Opuszczanie komentarza."
95
+
88
96
  msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
89
97
  msgid "PENDING_ACTION_COMMENT_THREAD"
90
98
  msgstr "Niezapisana zmiana w wątku komentarzy."
@@ -19,7 +19,7 @@ msgstr ""
19
19
 
20
20
  msgctxt "The label for the comment editor."
21
21
  msgid "Comment editor"
22
- msgstr "Editar comentário"
22
+ msgstr "Editor de comentários"
23
23
 
24
24
  msgctxt "The label for the number of comments."
25
25
  msgid "NUMBER_OF_COMMENTS"
@@ -82,7 +82,15 @@ msgstr "Marcado como solucionado"
82
82
 
83
83
  msgctxt "The tooltip for the comment toolbar button and the button that submits a comment thread."
84
84
  msgid "Comment"
85
- msgstr "Comentário"
85
+ msgstr "Comentar"
86
+
87
+ msgctxt "A message read out by assistive technologies the moment the user selection moves into a comment."
88
+ msgid "ENTER_COMMENT_ANNOUNCEMENT"
89
+ msgstr "Inserindo um comentário."
90
+
91
+ msgctxt "A message read out by assistive technologies the moment the user selection leaves a comment."
92
+ msgid "LEAVE_COMMENT_ANNOUNCEMENT"
93
+ msgstr "Deixando um comentário."
86
94
 
87
95
  msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
88
96
  msgid "PENDING_ACTION_COMMENT_THREAD"
@@ -102,7 +110,7 @@ msgstr "Nome do autor mostrado vem de uma fonte externa (adicionado por %0)"
102
110
 
103
111
  msgctxt "The additional information that displayed author name comes from imported Word file."
104
112
  msgid "EXTERNAL_IMPORT_WORD_AVATAR"
105
- msgstr "Nome do autor mostrado vem de de um arquivo Word importado, importado por %0"
113
+ msgstr "Nome do autor mostrado vem de de um arquivo Word importado por %0"
106
114
 
107
115
  msgctxt "The label for the comments archive dropdown UI."
108
116
  msgid "COMMENTS_ARCHIVE"
@@ -84,6 +84,14 @@ msgctxt "The tooltip for the comment toolbar button and the button that submits
84
84
  msgid "Comment"
85
85
  msgstr "Comentário"
86
86
 
87
+ msgctxt "A message read out by assistive technologies the moment the user selection moves into a comment."
88
+ msgid "ENTER_COMMENT_ANNOUNCEMENT"
89
+ msgstr "Inserir um comentário."
90
+
91
+ msgctxt "A message read out by assistive technologies the moment the user selection leaves a comment."
92
+ msgid "LEAVE_COMMENT_ANNOUNCEMENT"
93
+ msgstr "Deixar um comentário."
94
+
87
95
  msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
88
96
  msgid "PENDING_ACTION_COMMENT_THREAD"
89
97
  msgstr "Alteração não guardada na linha de comentários."
@@ -84,6 +84,14 @@ msgctxt "The tooltip for the comment toolbar button and the button that submits
84
84
  msgid "Comment"
85
85
  msgstr "Comentează"
86
86
 
87
+ msgctxt "A message read out by assistive technologies the moment the user selection moves into a comment."
88
+ msgid "ENTER_COMMENT_ANNOUNCEMENT"
89
+ msgstr "Introducerea unui comentariu."
90
+
91
+ msgctxt "A message read out by assistive technologies the moment the user selection leaves a comment."
92
+ msgid "LEAVE_COMMENT_ANNOUNCEMENT"
93
+ msgstr "Lăsarea unui comentariu."
94
+
87
95
  msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
88
96
  msgid "PENDING_ACTION_COMMENT_THREAD"
89
97
  msgstr "O schimbare nesalvată în firul de comentarii."
@@ -85,6 +85,14 @@ msgctxt "The tooltip for the comment toolbar button and the button that submits
85
85
  msgid "Comment"
86
86
  msgstr "Комментарий"
87
87
 
88
+ msgctxt "A message read out by assistive technologies the moment the user selection moves into a comment."
89
+ msgid "ENTER_COMMENT_ANNOUNCEMENT"
90
+ msgstr "Ввод комментария."
91
+
92
+ msgctxt "A message read out by assistive technologies the moment the user selection leaves a comment."
93
+ msgid "LEAVE_COMMENT_ANNOUNCEMENT"
94
+ msgstr "Оставление комментария."
95
+
88
96
  msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
89
97
  msgid "PENDING_ACTION_COMMENT_THREAD"
90
98
  msgstr "Изменения в ветке комментариев не сохранены."
@@ -85,6 +85,14 @@ msgctxt "The tooltip for the comment toolbar button and the button that submits
85
85
  msgid "Comment"
86
86
  msgstr "Komentár"
87
87
 
88
+ msgctxt "A message read out by assistive technologies the moment the user selection moves into a comment."
89
+ msgid "ENTER_COMMENT_ANNOUNCEMENT"
90
+ msgstr "Zadávanie komentára."
91
+
92
+ msgctxt "A message read out by assistive technologies the moment the user selection leaves a comment."
93
+ msgid "LEAVE_COMMENT_ANNOUNCEMENT"
94
+ msgstr "Zanechanie komentára."
95
+
88
96
  msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
89
97
  msgid "PENDING_ACTION_COMMENT_THREAD"
90
98
  msgstr "Vo vlákne komentáru sú neuložené zmeny."
@@ -83,6 +83,14 @@ msgctxt "The tooltip for the comment toolbar button and the button that submits
83
83
  msgid "Comment"
84
84
  msgstr "Komento"
85
85
 
86
+ msgctxt "A message read out by assistive technologies the moment the user selection moves into a comment."
87
+ msgid "ENTER_COMMENT_ANNOUNCEMENT"
88
+ msgstr ""
89
+
90
+ msgctxt "A message read out by assistive technologies the moment the user selection leaves a comment."
91
+ msgid "LEAVE_COMMENT_ANNOUNCEMENT"
92
+ msgstr ""
93
+
86
94
  msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
87
95
  msgid "PENDING_ACTION_COMMENT_THREAD"
88
96
  msgstr ""
@@ -84,6 +84,14 @@ msgctxt "The tooltip for the comment toolbar button and the button that submits
84
84
  msgid "Comment"
85
85
  msgstr "Napomena"
86
86
 
87
+ msgctxt "A message read out by assistive technologies the moment the user selection moves into a comment."
88
+ msgid "ENTER_COMMENT_ANNOUNCEMENT"
89
+ msgstr ""
90
+
91
+ msgctxt "A message read out by assistive technologies the moment the user selection leaves a comment."
92
+ msgid "LEAVE_COMMENT_ANNOUNCEMENT"
93
+ msgstr ""
94
+
87
95
  msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
88
96
  msgid "PENDING_ACTION_COMMENT_THREAD"
89
97
  msgstr "Nesačuvana promena u niti napomena."
@@ -84,6 +84,14 @@ msgctxt "The tooltip for the comment toolbar button and the button that submits
84
84
  msgid "Comment"
85
85
  msgstr "Напомена"
86
86
 
87
+ msgctxt "A message read out by assistive technologies the moment the user selection moves into a comment."
88
+ msgid "ENTER_COMMENT_ANNOUNCEMENT"
89
+ msgstr "Unošenje komentara.​"
90
+
91
+ msgctxt "A message read out by assistive technologies the moment the user selection leaves a comment."
92
+ msgid "LEAVE_COMMENT_ANNOUNCEMENT"
93
+ msgstr "Napuštanje komentara."
94
+
87
95
  msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
88
96
  msgid "PENDING_ACTION_COMMENT_THREAD"
89
97
  msgstr "Несачувана измена у нити напомена."
@@ -83,6 +83,14 @@ msgctxt "The tooltip for the comment toolbar button and the button that submits
83
83
  msgid "Comment"
84
84
  msgstr "Kommentar"
85
85
 
86
+ msgctxt "A message read out by assistive technologies the moment the user selection moves into a comment."
87
+ msgid "ENTER_COMMENT_ANNOUNCEMENT"
88
+ msgstr "Skriver en kommentar."
89
+
90
+ msgctxt "A message read out by assistive technologies the moment the user selection leaves a comment."
91
+ msgid "LEAVE_COMMENT_ANNOUNCEMENT"
92
+ msgstr "Kommenterar."
93
+
86
94
  msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
87
95
  msgid "PENDING_ACTION_COMMENT_THREAD"
88
96
  msgstr "Osparad ändring i kommentarstråden."
@@ -82,6 +82,14 @@ msgctxt "The tooltip for the comment toolbar button and the button that submits
82
82
  msgid "Comment"
83
83
  msgstr "ข้อคิดเห็น"
84
84
 
85
+ msgctxt "A message read out by assistive technologies the moment the user selection moves into a comment."
86
+ msgid "ENTER_COMMENT_ANNOUNCEMENT"
87
+ msgstr "กำลังเข้าสู่ความคิดเห็น"
88
+
89
+ msgctxt "A message read out by assistive technologies the moment the user selection leaves a comment."
90
+ msgid "LEAVE_COMMENT_ANNOUNCEMENT"
91
+ msgstr "กำลังแสดงความคิดเห็น"
92
+
85
93
  msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
86
94
  msgid "PENDING_ACTION_COMMENT_THREAD"
87
95
  msgstr "การเปลี่ยนแปลงที่ยังไม่ได้บันทึกในชุดข้อคิดเห็น"
@@ -83,6 +83,14 @@ msgctxt "The tooltip for the comment toolbar button and the button that submits
83
83
  msgid "Comment"
84
84
  msgstr "Teswir"
85
85
 
86
+ msgctxt "A message read out by assistive technologies the moment the user selection moves into a comment."
87
+ msgid "ENTER_COMMENT_ANNOUNCEMENT"
88
+ msgstr ""
89
+
90
+ msgctxt "A message read out by assistive technologies the moment the user selection leaves a comment."
91
+ msgid "LEAVE_COMMENT_ANNOUNCEMENT"
92
+ msgstr ""
93
+
86
94
  msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
87
95
  msgid "PENDING_ACTION_COMMENT_THREAD"
88
96
  msgstr "Teswirler bölüminde saklanmadyk üýtgeşme."
@@ -83,6 +83,14 @@ msgctxt "The tooltip for the comment toolbar button and the button that submits
83
83
  msgid "Comment"
84
84
  msgstr "Yorum"
85
85
 
86
+ msgctxt "A message read out by assistive technologies the moment the user selection moves into a comment."
87
+ msgid "ENTER_COMMENT_ANNOUNCEMENT"
88
+ msgstr "Bir yorum giriliyor."
89
+
90
+ msgctxt "A message read out by assistive technologies the moment the user selection leaves a comment."
91
+ msgid "LEAVE_COMMENT_ANNOUNCEMENT"
92
+ msgstr "Bir yorum bırakılıyor."
93
+
86
94
  msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
87
95
  msgid "PENDING_ACTION_COMMENT_THREAD"
88
96
  msgstr "Yorum dizisinde kaydedilmemiş değişiklikler var."
@@ -82,6 +82,14 @@ msgctxt "The tooltip for the comment toolbar button and the button that submits
82
82
  msgid "Comment"
83
83
  msgstr "Аңлатма"
84
84
 
85
+ msgctxt "A message read out by assistive technologies the moment the user selection moves into a comment."
86
+ msgid "ENTER_COMMENT_ANNOUNCEMENT"
87
+ msgstr ""
88
+
89
+ msgctxt "A message read out by assistive technologies the moment the user selection leaves a comment."
90
+ msgid "LEAVE_COMMENT_ANNOUNCEMENT"
91
+ msgstr ""
92
+
85
93
  msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
86
94
  msgid "PENDING_ACTION_COMMENT_THREAD"
87
95
  msgstr ""
@@ -83,6 +83,14 @@ msgctxt "The tooltip for the comment toolbar button and the button that submits
83
83
  msgid "Comment"
84
84
  msgstr "ئىنكاس"
85
85
 
86
+ msgctxt "A message read out by assistive technologies the moment the user selection moves into a comment."
87
+ msgid "ENTER_COMMENT_ANNOUNCEMENT"
88
+ msgstr ""
89
+
90
+ msgctxt "A message read out by assistive technologies the moment the user selection leaves a comment."
91
+ msgid "LEAVE_COMMENT_ANNOUNCEMENT"
92
+ msgstr ""
93
+
86
94
  msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
87
95
  msgid "PENDING_ACTION_COMMENT_THREAD"
88
96
  msgstr "ئىنكاس رايونىدا ساقلانمىغان ئۆزگەرتىش مەۋجۇت"
@@ -85,6 +85,14 @@ msgctxt "The tooltip for the comment toolbar button and the button that submits
85
85
  msgid "Comment"
86
86
  msgstr "Коментар"
87
87
 
88
+ msgctxt "A message read out by assistive technologies the moment the user selection moves into a comment."
89
+ msgid "ENTER_COMMENT_ANNOUNCEMENT"
90
+ msgstr "Вхід у коментар."
91
+
92
+ msgctxt "A message read out by assistive technologies the moment the user selection leaves a comment."
93
+ msgid "LEAVE_COMMENT_ANNOUNCEMENT"
94
+ msgstr "Вихід з коментаря."
95
+
88
96
  msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
89
97
  msgid "PENDING_ACTION_COMMENT_THREAD"
90
98
  msgstr "Незбережена зміна ланцюжка коментарів."
@@ -83,6 +83,14 @@ msgctxt "The tooltip for the comment toolbar button and the button that submits
83
83
  msgid "Comment"
84
84
  msgstr "تبصرہ"
85
85
 
86
+ msgctxt "A message read out by assistive technologies the moment the user selection moves into a comment."
87
+ msgid "ENTER_COMMENT_ANNOUNCEMENT"
88
+ msgstr ""
89
+
90
+ msgctxt "A message read out by assistive technologies the moment the user selection leaves a comment."
91
+ msgid "LEAVE_COMMENT_ANNOUNCEMENT"
92
+ msgstr ""
93
+
86
94
  msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
87
95
  msgid "PENDING_ACTION_COMMENT_THREAD"
88
96
  msgstr "تبصرے دھاگے میں غیر محفوظ تبدیلیاں ہیں۔"
@@ -82,6 +82,14 @@ msgctxt "The tooltip for the comment toolbar button and the button that submits
82
82
  msgid "Comment"
83
83
  msgstr "Bình luận"
84
84
 
85
+ msgctxt "A message read out by assistive technologies the moment the user selection moves into a comment."
86
+ msgid "ENTER_COMMENT_ANNOUNCEMENT"
87
+ msgstr "Đang nhập bình luận."
88
+
89
+ msgctxt "A message read out by assistive technologies the moment the user selection leaves a comment."
90
+ msgid "LEAVE_COMMENT_ANNOUNCEMENT"
91
+ msgstr "Đang viết bình luận."
92
+
85
93
  msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
86
94
  msgid "PENDING_ACTION_COMMENT_THREAD"
87
95
  msgstr "Nội dung thay đổi chưa lưu trong chuỗi bình luận."
@@ -82,6 +82,14 @@ msgctxt "The tooltip for the comment toolbar button and the button that submits
82
82
  msgid "Comment"
83
83
  msgstr "评论"
84
84
 
85
+ msgctxt "A message read out by assistive technologies the moment the user selection moves into a comment."
86
+ msgid "ENTER_COMMENT_ANNOUNCEMENT"
87
+ msgstr "进入评论。"
88
+
89
+ msgctxt "A message read out by assistive technologies the moment the user selection leaves a comment."
90
+ msgid "LEAVE_COMMENT_ANNOUNCEMENT"
91
+ msgstr "离开评论。"
92
+
85
93
  msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
86
94
  msgid "PENDING_ACTION_COMMENT_THREAD"
87
95
  msgstr "评论区有未保存内容"
@@ -82,6 +82,14 @@ msgctxt "The tooltip for the comment toolbar button and the button that submits
82
82
  msgid "Comment"
83
83
  msgstr "留言"
84
84
 
85
+ msgctxt "A message read out by assistive technologies the moment the user selection moves into a comment."
86
+ msgid "ENTER_COMMENT_ANNOUNCEMENT"
87
+ msgstr "正在進入留言。"
88
+
89
+ msgctxt "A message read out by assistive technologies the moment the user selection leaves a comment."
90
+ msgid "LEAVE_COMMENT_ANNOUNCEMENT"
91
+ msgstr "正在留下留言。"
92
+
85
93
  msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
86
94
  msgid "PENDING_ACTION_COMMENT_THREAD"
87
95
  msgstr "討論串尚未儲存。"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-comments",
3
- "version": "39.0.2",
3
+ "version": "40.1.0",
4
4
  "description": "Collaborative comments feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -43,8 +43,8 @@
43
43
  "CHANGELOG.md"
44
44
  ],
45
45
  "dependencies": {
46
- "ckeditor5": "39.0.2",
47
- "ckeditor5-collaboration": "39.0.2",
46
+ "ckeditor5": "40.1.0",
47
+ "ckeditor5-collaboration": "40.1.0",
48
48
  "lodash-es": "4.17.21"
49
49
  },
50
50
  "types": "src/index.d.ts",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1dbc=['add','nodeType','isActive','_id','isArray','focusableElements','item','_assertCorrectTarget','innerView','remove','view','getClientRects','updateTargetRect','function','destroy','isVisible','focusTracker','_getNormalizedTarget','set','targetRect','stopListening','_type','annotation-invalid-target','filter','mainView','element','clear','_target'];(function(_0x3c0d50,_0x1dbcc6){const _0x4725d3=function(_0x11b84b){while(--_0x11b84b){_0x3c0d50['push'](_0x3c0d50['shift']());}};_0x4725d3(++_0x1dbcc6);}(_0x1dbc,0x160));const _0x4725=function(_0x3c0d50,_0x1dbcc6){_0x3c0d50=_0x3c0d50-0x0;let _0x4725d3=_0x1dbc[_0x3c0d50];return _0x4725d3;};import{CKEditorError as _0x1db29c,Rect as _0xcb6314,Collection as _0x4e6fc0,ObservableMixin as _0x52a241}from'ckeditor5/src/utils';export default class d extends _0x52a241(){constructor({view:_0x46791d,target:_0x7e4034,type:_0x164624,isVisible:_0x5e41ba=!0x0}){super(),this['view']=_0x46791d,this['view'][_0x4725('0x9')]||this[_0x4725('0x16')]['render'](),this[_0x4725('0x5')]=_0x164624,this[_0x4725('0xb')]=_0x7e4034,d[_0x4725('0x13')](this[_0x4725('0x1')]()),this[_0x4725('0x11')]=new _0x4e6fc0([this[_0x4725('0x16')]['element']],{'idProperty':_0x4725('0xf')}),this[_0x4725('0x11')]['on'](_0x4725('0xc'),(_0x3d9ef7,_0x146bbb)=>{this[_0x4725('0x16')][_0x4725('0x0')][_0x4725('0xc')](_0x146bbb);}),this[_0x4725('0x11')]['on'](_0x4725('0x15'),(_0x2e1e74,_0x5db11c)=>{this['view'][_0x4725('0x0')][_0x4725('0x15')](_0x5db11c);}),this[_0x4725('0x2')](_0x4725('0x1b'),_0x5e41ba);}get['type'](){return'function'==typeof this['_type']?this[_0x4725('0x5')]():this[_0x4725('0x5')];}get[_0x4725('0x14')](){return this[_0x4725('0x16')]['mainView'];}get['target'](){const _0x4b3a11=this[_0x4725('0x1')]();return d[_0x4725('0x13')](_0x4b3a11),_0x4b3a11;}get['targetRect'](){const _0x944a2c=this['target'];if(null===_0x944a2c)return null;if(_0x944a2c instanceof _0xcb6314)return _0x944a2c;const _0x17ffbc=_0x944a2c[_0x4725('0x7')](_0x40ecc1=>function(_0x110d6a){const _0x9f8b08=_0x110d6a['offsetParent'];if(_0x9f8b08)return!0x0;const _0x342091=_0x110d6a[_0x4725('0x17')]()[_0x4725('0x12')](0x0);return!!_0x342091;}(_0x40ecc1));return 0x0===_0x17ffbc['length']?null:new _0xcb6314(_0x17ffbc[0x0][_0x4725('0x17')]()[_0x4725('0x12')](0x0));}get[_0x4725('0xe')](){return this[_0x4725('0x16')][_0x4725('0xe')];}set['isActive'](_0x886171){this['view']['isActive']=_0x886171,this[_0x4725('0x16')][_0x4725('0x8')]['isActive']=_0x886171;}[_0x4725('0x18')](){this['view'][_0x4725('0x3')]=this[_0x4725('0x3')];}[_0x4725('0x1a')](){this[_0x4725('0x11')][_0x4725('0x4')](),this[_0x4725('0x11')][_0x4725('0xa')](),this['stopListening']();}['refreshVisibility'](){this[_0x4725('0x1b')]=!!this[_0x4725('0x3')];}static[_0x4725('0x13')](_0x31a8b0){if(!(null===_0x31a8b0||_0x31a8b0 instanceof _0xcb6314||Array[_0x4725('0x10')](_0x31a8b0)&&_0x31a8b0['every'](_0x450d34=>y(_0x450d34))))throw new _0x1db29c(_0x4725('0x6'),null,{'target':_0x31a8b0});}[_0x4725('0x1')](){const _0x561415=_0x4725('0x19')==typeof this[_0x4725('0xb')]?this[_0x4725('0xb')]():this[_0x4725('0xb')];return y(_0x561415)?[_0x561415]:_0x561415;}}function y(_0x2bbfe9){return null!==_0x2bbfe9&&'object'==typeof _0x2bbfe9&&_0x4725('0xd')in _0x2bbfe9&&0x1===_0x2bbfe9[_0x4725('0xd')];}
23
+ const _0x161e=['destroy','function','isVisible','length','element','render','focusableElements','targetRect','stopListening','refreshVisibility','set','add','item','focusTracker','_id','isArray','isActive','target','_target','_type','annotation-invalid-target','_assertCorrectTarget','nodeType','view','remove','filter','mainView','_getNormalizedTarget'];(function(_0x5a265f,_0x161e6b){const _0x2379ad=function(_0x13434a){while(--_0x13434a){_0x5a265f['push'](_0x5a265f['shift']());}};_0x2379ad(++_0x161e6b);}(_0x161e,0x1df));const _0x2379=function(_0x5a265f,_0x161e6b){_0x5a265f=_0x5a265f-0x0;let _0x2379ad=_0x161e[_0x5a265f];return _0x2379ad;};import{CKEditorError as _0x4092ee,Rect as _0xe69619,Collection as _0x414cc6,ObservableMixin as _0x192c8e}from'ckeditor5/src/utils';export default class d extends _0x192c8e(){constructor({view:_0x512b73,target:_0x39dad0,type:_0x5d872c,isVisible:_0x14b077=!0x0}){super(),this['view']=_0x512b73,this[_0x2379('0x14')][_0x2379('0x1')]||this['view'][_0x2379('0x2')](),this[_0x2379('0x10')]=_0x5d872c,this['_target']=_0x39dad0,d[_0x2379('0x12')](this[_0x2379('0x18')]()),this[_0x2379('0x3')]=new _0x414cc6([this[_0x2379('0x14')][_0x2379('0x1')]],{'idProperty':_0x2379('0xb')}),this[_0x2379('0x3')]['on'](_0x2379('0x8'),(_0x56f234,_0x5dbac2)=>{this[_0x2379('0x14')][_0x2379('0xa')][_0x2379('0x8')](_0x5dbac2);}),this['focusableElements']['on'](_0x2379('0x15'),(_0x18923d,_0x38f72b)=>{this[_0x2379('0x14')][_0x2379('0xa')][_0x2379('0x15')](_0x38f72b);}),this[_0x2379('0x7')](_0x2379('0x1b'),_0x14b077);}get['type'](){return _0x2379('0x1a')==typeof this[_0x2379('0x10')]?this[_0x2379('0x10')]():this[_0x2379('0x10')];}get['innerView'](){return this[_0x2379('0x14')][_0x2379('0x17')];}get[_0x2379('0xe')](){const _0x2ed343=this[_0x2379('0x18')]();return d['_assertCorrectTarget'](_0x2ed343),_0x2ed343;}get[_0x2379('0x4')](){const _0x1814e4=this[_0x2379('0xe')];if(null===_0x1814e4)return null;if(_0x1814e4 instanceof _0xe69619)return _0x1814e4;const _0x441d7f=_0x1814e4[_0x2379('0x16')](_0x400be6=>function(_0x2b0838){const _0x517849=_0x2b0838['offsetParent'];if(_0x517849)return!0x0;const _0x11371a=_0x2b0838['getClientRects']()[_0x2379('0x9')](0x0);return!!_0x11371a;}(_0x400be6));return 0x0===_0x441d7f[_0x2379('0x0')]?null:new _0xe69619(_0x441d7f[0x0]['getClientRects']()[_0x2379('0x9')](0x0));}get[_0x2379('0xd')](){return this['view'][_0x2379('0xd')];}set['isActive'](_0x86960b){this[_0x2379('0x14')]['isActive']=_0x86960b,this[_0x2379('0x14')][_0x2379('0x17')][_0x2379('0xd')]=_0x86960b;}['updateTargetRect'](){this[_0x2379('0x14')]['targetRect']=this[_0x2379('0x4')];}[_0x2379('0x19')](){this[_0x2379('0x3')][_0x2379('0x5')](),this[_0x2379('0x3')]['clear'](),this[_0x2379('0x5')]();}[_0x2379('0x6')](){this[_0x2379('0x1b')]=!!this[_0x2379('0x4')];}static[_0x2379('0x12')](_0x4ff387){if(!(null===_0x4ff387||_0x4ff387 instanceof _0xe69619||Array[_0x2379('0xc')](_0x4ff387)&&_0x4ff387['every'](_0x9cbdca=>y(_0x9cbdca))))throw new _0x4092ee(_0x2379('0x11'),null,{'target':_0x4ff387});}[_0x2379('0x18')](){const _0x59b30d=_0x2379('0x1a')==typeof this['_target']?this[_0x2379('0xf')]():this['_target'];return y(_0x59b30d)?[_0x59b30d]:_0x59b30d;}}function y(_0x4541bc){return null!==_0x4541bc&&'object'==typeof _0x4541bc&&_0x2379('0x13')in _0x4541bc&&0x1===_0x4541bc[_0x2379('0x13')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3b25=['stopListening','top','getIndex','change:isFocused','blur','updateTargetRect','refreshPositioning','_focusTracker','targetRect','innerView','annotationcollection-duplicated-item','length','getByView','add','_getOrderInContent','clear','view','has','remove','left','_sort','set','get','focusableElements','focusTracker','destroy','from','isFocused','annotationcollection-not-existing-item','_viewToAnnotation','getByInnerView','listenTo','_innerViewToAnnotation','delete','fire'];(function(_0x4cbf30,_0x3b25c0){const _0x2f0500=function(_0x384258){while(--_0x384258){_0x4cbf30['push'](_0x4cbf30['shift']());}};_0x2f0500(++_0x3b25c0);}(_0x3b25,0x78));const _0x2f05=function(_0x4cbf30,_0x3b25c0){_0x4cbf30=_0x4cbf30-0x0;let _0x2f0500=_0x3b25[_0x4cbf30];return _0x2f0500;};import{CKEditorError as _0x19bf33,Collection as _0x4c5e97,FocusTracker as _0x354511}from'ckeditor5/src/utils';export default class x extends _0x4c5e97{constructor(_0x51a849=[]){super(),this[_0x2f05('0x11')]=new Map(),this[_0x2f05('0xe')]=new Map(),this[_0x2f05('0x1b')]=new _0x354511(),this[_0x2f05('0x1b')]['on'](_0x2f05('0x17'),(_0x17dbc0,_0x69ef4a,_0x1dcd39)=>{_0x1dcd39||this[_0x2f05('0x13')](_0x2f05('0x18'));});for(const _0x1764ad of _0x51a849)this[_0x2f05('0x21')](_0x1764ad);}get[_0x2f05('0xc')](){return this[_0x2f05('0x1b')][_0x2f05('0xc')];}[_0x2f05('0x21')](_0x4e7e26){if(this[_0x2f05('0x2')](_0x4e7e26))throw new _0x19bf33(_0x2f05('0x1e'),null);this[_0x2f05('0x11')][_0x2f05('0x6')](_0x4e7e26['innerView'],_0x4e7e26),this[_0x2f05('0xe')][_0x2f05('0x6')](_0x4e7e26[_0x2f05('0x1')],_0x4e7e26);for(const _0x59a28c of _0x4e7e26[_0x2f05('0x8')])this[_0x2f05('0x1b')][_0x2f05('0x21')](_0x59a28c);this[_0x2f05('0x10')](_0x4e7e26['focusableElements'],'add',(_0x17d263,_0x1d5904)=>{this[_0x2f05('0x1b')][_0x2f05('0x21')](_0x1d5904);}),this[_0x2f05('0x10')](_0x4e7e26[_0x2f05('0x8')],_0x2f05('0x3'),(_0x197bb1,_0x4a9eea)=>{this[_0x2f05('0x1b')]['remove'](_0x4a9eea);}),this[_0x2f05('0x10')](_0x4e7e26[_0x2f05('0x1')]['focusTracker'],_0x2f05('0x17'),(_0x461e8d,_0x5c1e70,_0x4b0811)=>{_0x4b0811&&this[_0x2f05('0x13')]('focus',_0x4e7e26);}),_0x4e7e26[_0x2f05('0x19')]();const _0x1d87cc=this[_0x2f05('0x22')](_0x4e7e26[_0x2f05('0x1')][_0x2f05('0x1c')]);return super[_0x2f05('0x21')](_0x4e7e26,_0x1d87cc);}[_0x2f05('0x3')](_0x3d3fc7){if(!this[_0x2f05('0x2')](_0x3d3fc7))throw new _0x19bf33(_0x2f05('0xd'),null);this[_0x2f05('0x14')](_0x3d3fc7[_0x2f05('0x1')][_0x2f05('0x9')]),this[_0x2f05('0x14')](_0x3d3fc7[_0x2f05('0x8')]);for(const _0x5eaeb6 of _0x3d3fc7[_0x2f05('0x8')])this[_0x2f05('0x1b')]['remove'](_0x5eaeb6);return this['_viewToAnnotation'][_0x2f05('0x12')](_0x3d3fc7[_0x2f05('0x1')]),this[_0x2f05('0x11')]['delete'](_0x3d3fc7[_0x2f05('0x1d')]),super[_0x2f05('0x3')](_0x3d3fc7);}[_0x2f05('0xf')](_0x1a0a87){return this[_0x2f05('0x11')][_0x2f05('0x7')](_0x1a0a87);}[_0x2f05('0x20')](_0x4a083b){return this[_0x2f05('0xe')][_0x2f05('0x7')](_0x4a083b);}['destroy'](){super[_0x2f05('0x0')](),this['stopListening'](),this[_0x2f05('0x11')][_0x2f05('0x0')](),this[_0x2f05('0xe')][_0x2f05('0x0')](),this['_focusTracker'][_0x2f05('0xa')]();}[_0x2f05('0x1a')](){for(const _0x44cfdc of this)_0x44cfdc['updateTargetRect']();this[_0x2f05('0x5')]();}[_0x2f05('0x5')](){const _0x38cd01=Array[_0x2f05('0xb')](this)['sort']((_0x566c16,_0x4dade2)=>v(_0x566c16['view'][_0x2f05('0x1c')],_0x4dade2[_0x2f05('0x1')][_0x2f05('0x1c')]));for(let _0x8bdbd3=_0x38cd01[_0x2f05('0x1f')]-0x1;_0x8bdbd3>0x0;_0x8bdbd3--){const _0x26354d=_0x38cd01[_0x8bdbd3];_0x8bdbd3!==this[_0x2f05('0x16')](_0x26354d)&&(this[_0x2f05('0x3')](_0x26354d),this['add'](_0x26354d));}}['_getOrderInContent'](_0x405fff){let _0x968a3c=0x0;if(!_0x405fff)return this[_0x2f05('0x1f')];for(const _0x5bc0a3 of this){const _0x568a71=_0x5bc0a3[_0x2f05('0x1')][_0x2f05('0x1c')];if(_0x568a71){if(v(_0x405fff,_0x568a71)<0x0)return _0x968a3c;_0x968a3c++;}}return _0x968a3c;}}export function bindAnnotationCollections({source:_0x24d318,target:_0x432179,filter:_0x2eda4e}){for(const _0x2e78c5 of _0x24d318)_0x2eda4e(_0x2e78c5)&&_0x432179['add'](_0x2e78c5);_0x432179[_0x2f05('0x10')](_0x24d318,_0x2f05('0x21'),(_0x3ac4ae,_0x4bc8d6)=>{_0x2eda4e(_0x4bc8d6)&&_0x432179['add'](_0x4bc8d6);}),_0x432179[_0x2f05('0x10')](_0x24d318,_0x2f05('0x3'),(_0x160410,_0x2c76c8)=>{_0x432179[_0x2f05('0x2')](_0x2c76c8)&&_0x432179[_0x2f05('0x3')](_0x2c76c8);});}function v(_0x21679f,_0x108c4c){if(null===_0x21679f&&null===_0x108c4c)return 0x0;if(null===_0x21679f)return-0x1;if(null===_0x108c4c)return 0x1;const _0x4e3291=_0x21679f[_0x2f05('0x15')]-_0x108c4c[_0x2f05('0x15')];return 0x0==_0x4e3291?_0x21679f[_0x2f05('0x4')]-_0x108c4c[_0x2f05('0x4')]:_0x4e3291;}
23
+ const _0x1c1c=['fire','getByView','innerView','set','refreshPositioning','delete','from','getIndex','_innerViewToAnnotation','_getOrderInContent','left','annotationcollection-not-existing-item','stopListening','focusTracker','length','sort','get','_sort','remove','_viewToAnnotation','view','annotationcollection-duplicated-item','add','focusableElements','updateTargetRect','_focusTracker','change:isFocused','top','listenTo','blur','has','clear','isFocused','targetRect'];(function(_0x443c00,_0x1c1cae){const _0xcb4283=function(_0x2c84b0){while(--_0x2c84b0){_0x443c00['push'](_0x443c00['shift']());}};_0xcb4283(++_0x1c1cae);}(_0x1c1c,0x182));const _0xcb42=function(_0x443c00,_0x1c1cae){_0x443c00=_0x443c00-0x0;let _0xcb4283=_0x1c1c[_0x443c00];return _0xcb4283;};import{CKEditorError as _0x3bfe54,Collection as _0x304a37,FocusTracker as _0x41a0db}from'ckeditor5/src/utils';export default class x extends _0x304a37{constructor(_0x3a494e=[]){super(),this['_innerViewToAnnotation']=new Map(),this[_0xcb42('0x7')]=new Map(),this['_focusTracker']=new _0x41a0db(),this[_0xcb42('0xd')]['on'](_0xcb42('0xe'),(_0x563e11,_0x1e2ec5,_0x48d908)=>{_0x48d908||this[_0xcb42('0x16')](_0xcb42('0x11'));});for(const _0x58a9f4 of _0x3a494e)this[_0xcb42('0xa')](_0x58a9f4);}get[_0xcb42('0x14')](){return this[_0xcb42('0xd')][_0xcb42('0x14')];}[_0xcb42('0xa')](_0x162ff7){if(this[_0xcb42('0x12')](_0x162ff7))throw new _0x3bfe54(_0xcb42('0x9'),null);this[_0xcb42('0x1e')][_0xcb42('0x19')](_0x162ff7[_0xcb42('0x18')],_0x162ff7),this[_0xcb42('0x7')][_0xcb42('0x19')](_0x162ff7[_0xcb42('0x8')],_0x162ff7);for(const _0x16cae3 of _0x162ff7[_0xcb42('0xb')])this[_0xcb42('0xd')][_0xcb42('0xa')](_0x16cae3);this[_0xcb42('0x10')](_0x162ff7[_0xcb42('0xb')],_0xcb42('0xa'),(_0x2d9b0d,_0x466bf4)=>{this[_0xcb42('0xd')][_0xcb42('0xa')](_0x466bf4);}),this[_0xcb42('0x10')](_0x162ff7['focusableElements'],'remove',(_0x509400,_0xb4ca13)=>{this['_focusTracker'][_0xcb42('0x6')](_0xb4ca13);}),this[_0xcb42('0x10')](_0x162ff7[_0xcb42('0x8')]['focusTracker'],'change:isFocused',(_0x12e936,_0x1fc472,_0x13e4ff)=>{_0x13e4ff&&this[_0xcb42('0x16')]('focus',_0x162ff7);}),_0x162ff7[_0xcb42('0xc')]();const _0x34dffd=this[_0xcb42('0x1f')](_0x162ff7[_0xcb42('0x8')]['targetRect']);return super[_0xcb42('0xa')](_0x162ff7,_0x34dffd);}[_0xcb42('0x6')](_0x2fdfdf){if(!this[_0xcb42('0x12')](_0x2fdfdf))throw new _0x3bfe54(_0xcb42('0x21'),null);this[_0xcb42('0x0')](_0x2fdfdf[_0xcb42('0x8')][_0xcb42('0x1')]),this[_0xcb42('0x0')](_0x2fdfdf[_0xcb42('0xb')]);for(const _0x24785e of _0x2fdfdf[_0xcb42('0xb')])this[_0xcb42('0xd')]['remove'](_0x24785e);return this[_0xcb42('0x7')][_0xcb42('0x1b')](_0x2fdfdf[_0xcb42('0x8')]),this[_0xcb42('0x1e')][_0xcb42('0x1b')](_0x2fdfdf[_0xcb42('0x18')]),super['remove'](_0x2fdfdf);}['getByInnerView'](_0x47477d){return this['_innerViewToAnnotation'][_0xcb42('0x4')](_0x47477d);}[_0xcb42('0x17')](_0x3e6ea0){return this[_0xcb42('0x7')][_0xcb42('0x4')](_0x3e6ea0);}['destroy'](){super[_0xcb42('0x13')](),this[_0xcb42('0x0')](),this[_0xcb42('0x1e')]['clear'](),this[_0xcb42('0x7')][_0xcb42('0x13')](),this[_0xcb42('0xd')]['destroy']();}[_0xcb42('0x1a')](){for(const _0x16b08d of this)_0x16b08d[_0xcb42('0xc')]();this[_0xcb42('0x5')]();}[_0xcb42('0x5')](){const _0x54f767=Array[_0xcb42('0x1c')](this)[_0xcb42('0x3')]((_0x29ebf4,_0x4bb8fa)=>v(_0x29ebf4[_0xcb42('0x8')][_0xcb42('0x15')],_0x4bb8fa[_0xcb42('0x8')][_0xcb42('0x15')]));for(let _0x2c85dc=_0x54f767[_0xcb42('0x2')]-0x1;_0x2c85dc>0x0;_0x2c85dc--){const _0x1c9f27=_0x54f767[_0x2c85dc];_0x2c85dc!==this[_0xcb42('0x1d')](_0x1c9f27)&&(this[_0xcb42('0x6')](_0x1c9f27),this[_0xcb42('0xa')](_0x1c9f27));}}['_getOrderInContent'](_0x2ab955){let _0x4f7c7d=0x0;if(!_0x2ab955)return this[_0xcb42('0x2')];for(const _0x180f9c of this){const _0x24be7f=_0x180f9c[_0xcb42('0x8')][_0xcb42('0x15')];if(_0x24be7f){if(v(_0x2ab955,_0x24be7f)<0x0)return _0x4f7c7d;_0x4f7c7d++;}}return _0x4f7c7d;}}export function bindAnnotationCollections({source:_0x5353de,target:_0x4403f7,filter:_0x3f9b21}){for(const _0x330165 of _0x5353de)_0x3f9b21(_0x330165)&&_0x4403f7[_0xcb42('0xa')](_0x330165);_0x4403f7[_0xcb42('0x10')](_0x5353de,_0xcb42('0xa'),(_0x149eff,_0x40e1a9)=>{_0x3f9b21(_0x40e1a9)&&_0x4403f7[_0xcb42('0xa')](_0x40e1a9);}),_0x4403f7[_0xcb42('0x10')](_0x5353de,_0xcb42('0x6'),(_0x33f8c,_0x1503f1)=>{_0x4403f7[_0xcb42('0x12')](_0x1503f1)&&_0x4403f7[_0xcb42('0x6')](_0x1503f1);});}function v(_0x170a36,_0x565b6e){if(null===_0x170a36&&null===_0x565b6e)return 0x0;if(null===_0x170a36)return-0x1;if(null===_0x565b6e)return 0x1;const _0x376658=_0x170a36[_0xcb42('0xf')]-_0x565b6e['top'];return 0x0==_0x376658?_0x170a36[_0xcb42('0x20')]-_0x565b6e[_0xcb42('0x20')]:_0x376658;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x26b8=['remove','activate','createAnnotation','change:isVisible','refreshVisibility','add','focusTracker','getByInnerView','_removeActiveAnnotation','has','stopListening','collection','set','isVisible','fire','view','destroy','source','_activateAnnotation','_deactivateAllAnnotations','refreshPositioning','element','activeAnnotations','_addActiveAnnotation','Annotations','createAnnotationView','pluginName','_visibleAnnotations','_bindAnnotationsToVisibleAnnotations'];(function(_0x322e55,_0x26b8aa){const _0x6759d6=function(_0x511e88){while(--_0x511e88){_0x322e55['push'](_0x322e55['shift']());}};_0x6759d6(++_0x26b8aa);}(_0x26b8,0x136));const _0x6759=function(_0x322e55,_0x26b8aa){_0x322e55=_0x322e55-0x0;let _0x6759d6=_0x26b8[_0x322e55];return _0x6759d6;};import{ContextPlugin as _0x3a666}from'ckeditor5/src/core';import _0x4b4a3a from'./annotation';import _0x4a45ff from'./annotationcollection';import _0x231645 from'./view/annotationview';export default class b extends _0x3a666{static get[_0x6759('0x6')](){return _0x6759('0x4');}constructor(_0x14cc1b){super(_0x14cc1b),this[_0x6759('0x14')]=new _0x4a45ff(),this[_0x6759('0x7')]=new _0x4a45ff(),this[_0x6759('0x15')](_0x6759('0x2'),new Set()),this['_bindAnnotationsToVisibleAnnotations']();}[_0x6759('0xe')](_0x4abd01){this[_0x6759('0x14')][_0x6759('0xe')](_0x4abd01);}[_0x6759('0x9')](_0x3cb7b9){this[_0x6759('0x14')][_0x6759('0x9')](_0x3cb7b9),_0x3cb7b9[_0x6759('0x19')]();}[_0x6759('0xd')](){for(const _0x348423 of this[_0x6759('0x14')])_0x348423[_0x6759('0xd')]();}[_0x6759('0x0')](){this['_visibleAnnotations'][_0x6759('0x0')]();}[_0x6759('0x10')](_0x57311c){return this['collection']['getByInnerView'](_0x57311c);}['deactivateAll'](){this[_0x6759('0x17')](_0x6759('0x1c'));}['destroy'](){for(const _0x41e9db of this[_0x6759('0x14')])_0x41e9db[_0x6759('0x19')]();this[_0x6759('0x7')][_0x6759('0x19')](),this[_0x6759('0x14')][_0x6759('0x19')](),super['destroy']();}[_0x6759('0xa')](_0x579e36){this[_0x6759('0x17')](_0x6759('0x1b'),_0x579e36);}[_0x6759('0xb')](_0x5a371f){return new _0x4b4a3a(_0x5a371f);}[_0x6759('0x5')](_0x5de769,_0x3b09ef){return new _0x231645(_0x5de769,_0x3b09ef);}[_0x6759('0x3')](_0x1a8148){const _0x3d89cd=new Set(this[_0x6759('0x2')]);_0x3d89cd['add'](_0x1a8148),this[_0x6759('0x2')]=_0x3d89cd;}[_0x6759('0x11')](_0x22d4cd){const _0x4e97d2=new Set(this['activeAnnotations']);_0x4e97d2['delete'](_0x22d4cd),this[_0x6759('0x2')]=_0x4e97d2;}[_0x6759('0x8')](){const _0x5d848b=this['collection'],_0x26a0bc=this[_0x6759('0x7')];function _0x3a50af(_0x37ec18){const _0x3a00ac=_0x37ec18[_0x6759('0x1a')];_0x3a00ac[_0x6759('0x16')]&&!_0x26a0bc[_0x6759('0x12')](_0x3a00ac)?_0x26a0bc[_0x6759('0xe')](_0x3a00ac):!_0x3a00ac[_0x6759('0x16')]&&_0x26a0bc['has'](_0x3a00ac)&&_0x26a0bc[_0x6759('0x9')](_0x3a00ac),_0x3a00ac['view'][_0x6759('0xf')][_0x6759('0x9')](_0x3a00ac[_0x6759('0x18')][_0x6759('0x1')]),_0x3a00ac[_0x6759('0x18')][_0x6759('0xf')][_0x6759('0xe')](_0x3a00ac[_0x6759('0x18')][_0x6759('0x1')]);}this['listenTo'](_0x5d848b,_0x6759('0xe'),(_0x4efcca,_0x37e4f8)=>{_0x37e4f8[_0x6759('0x16')]&&_0x26a0bc[_0x6759('0xe')](_0x37e4f8),this['listenTo'](_0x37e4f8,_0x6759('0xc'),_0x3a50af);}),this['listenTo'](_0x5d848b,_0x6759('0x9'),(_0x311695,_0x2f5c80)=>{_0x26a0bc['has'](_0x2f5c80)&&_0x26a0bc[_0x6759('0x9')](_0x2f5c80),this[_0x6759('0x13')](_0x2f5c80,_0x6759('0xc'),_0x3a50af);});}}
23
+ const _0x1020=['add','stopListening','focusTracker','view','activate','pluginName','fire','activeAnnotations','refreshVisibility','_deactivateAllAnnotations','element','change:isVisible','isVisible','getByInnerView','destroy','source','refreshPositioning','delete','remove','createAnnotation','_activateAnnotation','collection','_removeActiveAnnotation','_addActiveAnnotation','set','createAnnotationView','listenTo','has','Annotations','_bindAnnotationsToVisibleAnnotations','_visibleAnnotations'];(function(_0xf0094a,_0x10205d){const _0x26df23=function(_0x14da1){while(--_0x14da1){_0xf0094a['push'](_0xf0094a['shift']());}};_0x26df23(++_0x10205d);}(_0x1020,0xa3));const _0x26df=function(_0xf0094a,_0x10205d){_0xf0094a=_0xf0094a-0x0;let _0x26df23=_0x1020[_0xf0094a];return _0x26df23;};import{ContextPlugin as _0x422129}from'ckeditor5/src/core';import _0x5aa74c from'./annotation';import _0x3c52f1 from'./annotationcollection';import _0x3b55d2 from'./view/annotationview';export default class b extends _0x422129{static get[_0x26df('0x1c')](){return _0x26df('0x14');}constructor(_0x294441){super(_0x294441),this[_0x26df('0xd')]=new _0x3c52f1(),this['_visibleAnnotations']=new _0x3c52f1(),this[_0x26df('0x10')](_0x26df('0x1e'),new Set()),this[_0x26df('0x15')]();}[_0x26df('0x17')](_0xa6a9b0){this[_0x26df('0xd')]['add'](_0xa6a9b0);}[_0x26df('0xa')](_0x4e9d92){this[_0x26df('0xd')][_0x26df('0xa')](_0x4e9d92),_0x4e9d92['destroy']();}['refreshVisibility'](){for(const _0x522fc4 of this['collection'])_0x522fc4[_0x26df('0x0')]();}[_0x26df('0x8')](){this[_0x26df('0x16')][_0x26df('0x8')]();}['getByInnerView'](_0x416020){return this[_0x26df('0xd')][_0x26df('0x5')](_0x416020);}['deactivateAll'](){this[_0x26df('0x1d')](_0x26df('0x1'));}[_0x26df('0x6')](){for(const _0x14821e of this[_0x26df('0xd')])_0x14821e[_0x26df('0x6')]();this['_visibleAnnotations'][_0x26df('0x6')](),this[_0x26df('0xd')][_0x26df('0x6')](),super[_0x26df('0x6')]();}[_0x26df('0x1b')](_0x259502){this['fire'](_0x26df('0xc'),_0x259502);}[_0x26df('0xb')](_0x26cdb5){return new _0x5aa74c(_0x26cdb5);}[_0x26df('0x11')](_0x128483,_0xa71a49){return new _0x3b55d2(_0x128483,_0xa71a49);}[_0x26df('0xf')](_0x2f3ca8){const _0x4ba131=new Set(this['activeAnnotations']);_0x4ba131[_0x26df('0x17')](_0x2f3ca8),this[_0x26df('0x1e')]=_0x4ba131;}[_0x26df('0xe')](_0xcedf5f){const _0x1f7ceb=new Set(this[_0x26df('0x1e')]);_0x1f7ceb[_0x26df('0x9')](_0xcedf5f),this[_0x26df('0x1e')]=_0x1f7ceb;}[_0x26df('0x15')](){const _0x35dece=this['collection'],_0x1babc0=this['_visibleAnnotations'];function _0x342878(_0x4fd65c){const _0x3e3f7c=_0x4fd65c[_0x26df('0x7')];_0x3e3f7c[_0x26df('0x4')]&&!_0x1babc0[_0x26df('0x13')](_0x3e3f7c)?_0x1babc0['add'](_0x3e3f7c):!_0x3e3f7c[_0x26df('0x4')]&&_0x1babc0[_0x26df('0x13')](_0x3e3f7c)&&_0x1babc0[_0x26df('0xa')](_0x3e3f7c),_0x3e3f7c[_0x26df('0x1a')][_0x26df('0x19')][_0x26df('0xa')](_0x3e3f7c['view'][_0x26df('0x2')]),_0x3e3f7c[_0x26df('0x1a')][_0x26df('0x19')]['add'](_0x3e3f7c[_0x26df('0x1a')][_0x26df('0x2')]);}this['listenTo'](_0x35dece,_0x26df('0x17'),(_0x302e39,_0x10f9c3)=>{_0x10f9c3[_0x26df('0x4')]&&_0x1babc0[_0x26df('0x17')](_0x10f9c3),this[_0x26df('0x12')](_0x10f9c3,'change:isVisible',_0x342878);}),this['listenTo'](_0x35dece,_0x26df('0xa'),(_0x32b0ff,_0x408062)=>{_0x1babc0[_0x26df('0x13')](_0x408062)&&_0x1babc0[_0x26df('0xa')](_0x408062),this[_0x26df('0x18')](_0x408062,_0x26df('0x3'),_0x342878);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5d8e=['push','get','_removeActiveAnnotation','annotationsuis-missing-ui','activeAnnotations','context','from','_addActiveAnnotation','function','refilterAnnotations','annotationsuis-register-invalid-interface','deactivate','deactivateAll','_uis','detach','_uisData','size','change:activeAnnotation','length','_assertAnnotationDoesNotBelongToMultipleUIs','setActiveAnnotation','annotationsuis-register-already-registered','_visibleAnnotations','isActive','attach','listenTo','collection','delete','activeUIs','filter','has','plugins','_setSelectedAnnotations','switchTo','set','register','_activateAnnotation','annotationsuis-annotation-mismatch','destroy','add','AnnotationsUIs','activate'];(function(_0xd4d5c2,_0x5d8e17){const _0x179655=function(_0x281a22){while(--_0x281a22){_0xd4d5c2['push'](_0xd4d5c2['shift']());}};_0x179655(++_0x5d8e17);}(_0x5d8e,0x9b));const _0x1796=function(_0xd4d5c2,_0x5d8e17){_0xd4d5c2=_0xd4d5c2-0x0;let _0x179655=_0x5d8e[_0xd4d5c2];return _0x179655;};import{ContextPlugin as _0x3ce081}from'ckeditor5/src/core';import{CKEditorError as _0x36e025}from'ckeditor5/src/utils';import _0x1d995f,{bindAnnotationCollections as _0x5a7ddb}from'./annotationcollection';import _0x28ad51 from'./annotations';export default class M extends _0x3ce081{static get['requires'](){return[_0x28ad51];}static get['pluginName'](){return _0x1796('0xb');}constructor(_0x5cf027){super(_0x5cf027),this[_0x1796('0x29')]=new Set(),this['_uis']=new Map(),this[_0x1796('0x1c')]=new Map();}['init'](){const _0x3cc2d8=this['context']['plugins'][_0x1796('0xe')](_0x28ad51);this[_0x1796('0x26')](_0x3cc2d8,_0x1796('0x7'),(_0x4ee690,_0x1964f6)=>{for(const _0x22e83c of this[_0x1796('0x29')]){const _0x4fd267=this[_0x1796('0x1a')]['get'](_0x22e83c);(0x0,this[_0x1796('0x1c')][_0x1796('0xe')](_0x22e83c)[_0x1796('0x0')])(_0x1964f6)&&_0x4fd267[_0x1796('0x21')](_0x1964f6);}}),this[_0x1796('0x26')](_0x3cc2d8,'_deactivateAllAnnotations',()=>{for(const _0x2637c5 of this['activeUIs']){this[_0x1796('0x1a')][_0x1796('0xe')](_0x2637c5)[_0x1796('0x21')](null);}}),this[_0x1796('0x26')](_0x3cc2d8[_0x1796('0x23')],_0x1796('0xa'),(_0x8d4f3b,_0x347311)=>{this[_0x1796('0x20')](_0x347311);});}['hasActive'](){return this[_0x1796('0x29')][_0x1796('0x1d')]>0x0;}[_0x1796('0x24')](_0x17233f){return this[_0x1796('0x29')][_0x1796('0x1')](_0x17233f);}[_0x1796('0xc')](_0x101f96,_0xa749bb=()=>!0x0){const _0x4eb829=this[_0x1796('0x12')]['plugins'][_0x1796('0xe')](_0x28ad51);if(!this[_0x1796('0x1a')][_0x1796('0x1')](_0x101f96))throw new _0x36e025('annotationsuis-missing-ui',this,{'uiName':_0x101f96});this[_0x1796('0x24')](_0x101f96)&&this[_0x1796('0x18')](_0x101f96),this[_0x1796('0x29')]['add'](_0x101f96);const _0x3293a2=new _0x1d995f(),_0x292b7a=_0x4eb829[_0x1796('0x23')];_0x5a7ddb({'source':_0x292b7a,'target':_0x3293a2,'filter':_0xa749bb}),this[_0x1796('0x1c')][_0x1796('0x5')](_0x101f96,{'collection':_0x3293a2,'filter':_0xa749bb});const _0x469d20=this[_0x1796('0x1a')][_0x1796('0xe')](_0x101f96);_0x469d20[_0x1796('0x25')](_0x3293a2),this[_0x1796('0x26')](_0x469d20,_0x1796('0x1e'),(_0x14519a,_0x39fc9f,_0x2b26ac,_0x5db4fa)=>{_0x5db4fa&&_0x4eb829[_0x1796('0xf')](_0x5db4fa),_0x2b26ac&&_0x4eb829[_0x1796('0x14')](_0x2b26ac);});}[_0x1796('0x18')](_0x55ce40){if(this[_0x1796('0x29')][_0x1796('0x28')](_0x55ce40),!this['_uis'][_0x1796('0x1')](_0x55ce40))throw new _0x36e025(_0x1796('0x10'),this,{'uiName':_0x55ce40});const _0x12aa6f=this['_uis'][_0x1796('0xe')](_0x55ce40);_0x12aa6f[_0x1796('0x1b')](),this['stopListening'](_0x12aa6f),this[_0x1796('0x1c')][_0x1796('0xe')](_0x55ce40)[_0x1796('0x27')]['destroy'](),this[_0x1796('0x1c')][_0x1796('0x28')](_0x55ce40);}[_0x1796('0x4')](_0x507e12){if(!this['_uis'][_0x1796('0x1')](_0x507e12))throw new _0x36e025(_0x1796('0x10'),this,{'uiName':_0x507e12});const _0x45f7df=this[_0x1796('0x12')][_0x1796('0x2')]['get'](_0x28ad51),_0x2112f1=Array['from'](_0x45f7df[_0x1796('0x11')])[0x0]||null;this[_0x1796('0x19')](),this['activate'](_0x507e12);const _0xd658d6=this[_0x1796('0x1a')][_0x1796('0xe')](_0x507e12);_0xd658d6[_0x1796('0x21')](_0x2112f1),_0xd658d6['_setSelectedAnnotations']&&_0x2112f1&&_0xd658d6[_0x1796('0x3')]([_0x2112f1]);}[_0x1796('0x19')](){for(const _0x2019e0 of this[_0x1796('0x29')])this[_0x1796('0x18')](_0x2019e0);}[_0x1796('0x6')](_0x4b040f,_0x1e526d){if(this[_0x1796('0x1a')][_0x1796('0x1')](_0x4b040f))throw new _0x36e025(_0x1796('0x22'));if(_0x1796('0x15')!=typeof _0x1e526d[_0x1796('0x25')]||_0x1796('0x15')!=typeof _0x1e526d[_0x1796('0x1b')]||_0x1796('0x15')!=typeof _0x1e526d[_0x1796('0x21')])throw new _0x36e025(_0x1796('0x17'),null);this[_0x1796('0x1a')]['set'](_0x4b040f,_0x1e526d);}[_0x1796('0x16')](){const _0x172430=this[_0x1796('0x12')][_0x1796('0x2')][_0x1796('0xe')](_0x28ad51)[_0x1796('0x27')],_0x53c910=new Map(),_0xaeb4fd=Array[_0x1796('0x13')](this[_0x1796('0x29')]);for(const _0x4fa98c of this[_0x1796('0x29')]){const _0xb4b8c1=this['_uisData'][_0x1796('0xe')](_0x4fa98c)[_0x1796('0x27')];for(const _0x166eca of _0xb4b8c1)_0x53c910['set'](_0x166eca,_0x4fa98c);}for(const _0xa4caf3 of _0x172430){const _0x2b57e8=_0x53c910[_0x1796('0xe')](_0xa4caf3);this[_0x1796('0x20')](_0xa4caf3);const _0x40405d=_0xaeb4fd['find'](_0x415caa=>this[_0x1796('0x1c')][_0x1796('0xe')](_0x415caa)[_0x1796('0x0')](_0xa4caf3));_0x2b57e8!==_0x40405d&&(_0x2b57e8&&this[_0x1796('0x1c')]['get'](_0x2b57e8)[_0x1796('0x27')]['remove'](_0xa4caf3),_0x40405d&&this[_0x1796('0x1c')]['get'](_0x40405d)[_0x1796('0x27')][_0x1796('0xa')](_0xa4caf3));}}['destroy'](){this['deactivateAll'](),super[_0x1796('0x9')]();}[_0x1796('0x20')](_0x4f4a26){const _0x3dc0ba=[];for(const _0x24a0d8 of this[_0x1796('0x29')]){(0x0,this['_uisData']['get'](_0x24a0d8)[_0x1796('0x0')])(_0x4f4a26)&&_0x3dc0ba[_0x1796('0xd')](_0x24a0d8);}if(_0x3dc0ba[_0x1796('0x1f')]>0x1)throw new _0x36e025(_0x1796('0x8'),null,{'matchedUIs':_0x3dc0ba,'annotationType':_0x4f4a26['type']});}}
23
+ const _0x48f7=['_addActiveAnnotation','from','init','stopListening','annotationsuis-missing-ui','detach','annotationsuis-register-invalid-interface','has','annotationsuis-register-already-registered','refilterAnnotations','_setSelectedAnnotations','size','deactivate','length','requires','setActiveAnnotation','pluginName','hasActive','destroy','_uis','filter','activeUIs','activate','collection','_activateAnnotation','_assertAnnotationDoesNotBelongToMultipleUIs','isActive','add','_uisData','plugins','_visibleAnnotations','_removeActiveAnnotation','set','get','register','push','deactivateAll','function','activeAnnotations','AnnotationsUIs','context','delete','listenTo','switchTo','attach','change:activeAnnotation'];(function(_0x53c21a,_0x48f750){const _0x5b66d4=function(_0x5db456){while(--_0x5db456){_0x53c21a['push'](_0x53c21a['shift']());}};_0x5b66d4(++_0x48f750);}(_0x48f7,0x1c4));const _0x5b66=function(_0x53c21a,_0x48f750){_0x53c21a=_0x53c21a-0x0;let _0x5b66d4=_0x48f7[_0x53c21a];return _0x5b66d4;};import{ContextPlugin as _0x2af20a}from'ckeditor5/src/core';import{CKEditorError as _0x1b896c}from'ckeditor5/src/utils';import _0x2ae025,{bindAnnotationCollections as _0x29b1c6}from'./annotationcollection';import _0x48a389 from'./annotations';export default class M extends _0x2af20a{static get[_0x5b66('0x16')](){return[_0x48a389];}static get[_0x5b66('0x18')](){return _0x5b66('0x1');}constructor(_0x1b6391){super(_0x1b6391),this[_0x5b66('0x1d')]=new Set(),this[_0x5b66('0x1b')]=new Map(),this[_0x5b66('0x24')]=new Map();}[_0x5b66('0xa')](){const _0x5208ea=this[_0x5b66('0x2')][_0x5b66('0x25')]['get'](_0x48a389);this[_0x5b66('0x4')](_0x5208ea,_0x5b66('0x20'),(_0x56bedc,_0x3fa75f)=>{for(const _0x48eee3 of this[_0x5b66('0x1d')]){const _0xacca70=this[_0x5b66('0x1b')][_0x5b66('0x29')](_0x48eee3);(0x0,this[_0x5b66('0x24')][_0x5b66('0x29')](_0x48eee3)[_0x5b66('0x1c')])(_0x3fa75f)&&_0xacca70[_0x5b66('0x17')](_0x3fa75f);}}),this[_0x5b66('0x4')](_0x5208ea,'_deactivateAllAnnotations',()=>{for(const _0x23d6fb of this[_0x5b66('0x1d')]){this[_0x5b66('0x1b')][_0x5b66('0x29')](_0x23d6fb)[_0x5b66('0x17')](null);}}),this[_0x5b66('0x4')](_0x5208ea[_0x5b66('0x26')],_0x5b66('0x23'),(_0x44ae5a,_0x22c549)=>{this[_0x5b66('0x21')](_0x22c549);});}[_0x5b66('0x19')](){return this[_0x5b66('0x1d')][_0x5b66('0x13')]>0x0;}[_0x5b66('0x22')](_0x2bcc6c){return this[_0x5b66('0x1d')]['has'](_0x2bcc6c);}['activate'](_0x4fdd2c,_0x134e91=()=>!0x0){const _0x257303=this[_0x5b66('0x2')][_0x5b66('0x25')][_0x5b66('0x29')](_0x48a389);if(!this['_uis'][_0x5b66('0xf')](_0x4fdd2c))throw new _0x1b896c(_0x5b66('0xc'),this,{'uiName':_0x4fdd2c});this[_0x5b66('0x22')](_0x4fdd2c)&&this[_0x5b66('0x14')](_0x4fdd2c),this[_0x5b66('0x1d')]['add'](_0x4fdd2c);const _0xf9c135=new _0x2ae025(),_0x4d7e74=_0x257303['_visibleAnnotations'];_0x29b1c6({'source':_0x4d7e74,'target':_0xf9c135,'filter':_0x134e91}),this['_uisData'][_0x5b66('0x28')](_0x4fdd2c,{'collection':_0xf9c135,'filter':_0x134e91});const _0x188e9a=this[_0x5b66('0x1b')][_0x5b66('0x29')](_0x4fdd2c);_0x188e9a[_0x5b66('0x6')](_0xf9c135),this['listenTo'](_0x188e9a,_0x5b66('0x7'),(_0x30a0ae,_0xd3c332,_0x46d218,_0x1c149d)=>{_0x1c149d&&_0x257303[_0x5b66('0x27')](_0x1c149d),_0x46d218&&_0x257303[_0x5b66('0x8')](_0x46d218);});}[_0x5b66('0x14')](_0x1caf5c){if(this[_0x5b66('0x1d')]['delete'](_0x1caf5c),!this[_0x5b66('0x1b')]['has'](_0x1caf5c))throw new _0x1b896c(_0x5b66('0xc'),this,{'uiName':_0x1caf5c});const _0x5be2c0=this[_0x5b66('0x1b')][_0x5b66('0x29')](_0x1caf5c);_0x5be2c0[_0x5b66('0xd')](),this[_0x5b66('0xb')](_0x5be2c0),this['_uisData'][_0x5b66('0x29')](_0x1caf5c)[_0x5b66('0x1f')]['destroy'](),this['_uisData'][_0x5b66('0x3')](_0x1caf5c);}[_0x5b66('0x5')](_0x2a4c4a){if(!this['_uis'][_0x5b66('0xf')](_0x2a4c4a))throw new _0x1b896c(_0x5b66('0xc'),this,{'uiName':_0x2a4c4a});const _0x91250b=this[_0x5b66('0x2')][_0x5b66('0x25')][_0x5b66('0x29')](_0x48a389),_0x748d59=Array[_0x5b66('0x9')](_0x91250b[_0x5b66('0x0')])[0x0]||null;this[_0x5b66('0x2c')](),this[_0x5b66('0x1e')](_0x2a4c4a);const _0x238cef=this[_0x5b66('0x1b')][_0x5b66('0x29')](_0x2a4c4a);_0x238cef['setActiveAnnotation'](_0x748d59),_0x238cef['_setSelectedAnnotations']&&_0x748d59&&_0x238cef[_0x5b66('0x12')]([_0x748d59]);}['deactivateAll'](){for(const _0x5db296 of this[_0x5b66('0x1d')])this[_0x5b66('0x14')](_0x5db296);}[_0x5b66('0x2a')](_0x1b53b0,_0x321df4){if(this[_0x5b66('0x1b')][_0x5b66('0xf')](_0x1b53b0))throw new _0x1b896c(_0x5b66('0x10'));if(_0x5b66('0x2d')!=typeof _0x321df4['attach']||'function'!=typeof _0x321df4['detach']||'function'!=typeof _0x321df4[_0x5b66('0x17')])throw new _0x1b896c(_0x5b66('0xe'),null);this['_uis'][_0x5b66('0x28')](_0x1b53b0,_0x321df4);}[_0x5b66('0x11')](){const _0x4503e3=this[_0x5b66('0x2')][_0x5b66('0x25')][_0x5b66('0x29')](_0x48a389)[_0x5b66('0x1f')],_0x4ae021=new Map(),_0x3ad206=Array[_0x5b66('0x9')](this['activeUIs']);for(const _0x159424 of this[_0x5b66('0x1d')]){const _0x2015d4=this[_0x5b66('0x24')][_0x5b66('0x29')](_0x159424)[_0x5b66('0x1f')];for(const _0x5b5996 of _0x2015d4)_0x4ae021['set'](_0x5b5996,_0x159424);}for(const _0x312ee2 of _0x4503e3){const _0x3a0e31=_0x4ae021[_0x5b66('0x29')](_0x312ee2);this[_0x5b66('0x21')](_0x312ee2);const _0x381d81=_0x3ad206['find'](_0xcc91e3=>this[_0x5b66('0x24')][_0x5b66('0x29')](_0xcc91e3)[_0x5b66('0x1c')](_0x312ee2));_0x3a0e31!==_0x381d81&&(_0x3a0e31&&this[_0x5b66('0x24')][_0x5b66('0x29')](_0x3a0e31)[_0x5b66('0x1f')]['remove'](_0x312ee2),_0x381d81&&this['_uisData']['get'](_0x381d81)['collection']['add'](_0x312ee2));}}['destroy'](){this[_0x5b66('0x2c')](),super[_0x5b66('0x1a')]();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1a582c){const _0x1a67ad=[];for(const _0x56da07 of this[_0x5b66('0x1d')]){(0x0,this[_0x5b66('0x24')][_0x5b66('0x29')](_0x56da07)[_0x5b66('0x1c')])(_0x1a582c)&&_0x1a67ad[_0x5b66('0x2b')](_0x56da07);}if(_0x1a67ad[_0x5b66('0x15')]>0x1)throw new _0x1b896c('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x1a67ad,'annotationType':_0x1a582c['type']});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x51c3=['annotation','getByInnerView','from','view','_editorAnnotations','document','change:isFocused','set','editor','getRanges','get','map','editorannotations-invalid-source-callback','refresh','innerView','cancel','isCollapsed','refreshSelectedViews','change:range','editing','getOrderedSelectedAnnotations','EditorAnnotations','uiUpdate','blur','collection','model','focusTracker','isReadOnly','sort','range','selection','add','listenTo','fire','element','init','remove','hasDomSelection','containsRange','addSourceCollector','_dataCollectors','directChange','isEqual','delete','pluginName','_editorAnnotationsData'];(function(_0x39f55b,_0x51c33e){const _0x5330f0=function(_0x39fcce){while(--_0x39fcce){_0x39f55b['push'](_0x39f55b['shift']());}};_0x5330f0(++_0x51c33e);}(_0x51c3,0x157));const _0x5330=function(_0x39f55b,_0x51c33e){_0x39f55b=_0x39f55b-0x0;let _0x5330f0=_0x51c3[_0x39f55b];return _0x5330f0;};import{Plugin as _0x1c8180}from'ckeditor5/src/core';import{CKEditorError as _0x5dd79e}from'ckeditor5/src/utils';import{debounce as _0x28dfa2}from'lodash-es';import _0x2bd8ec from'./annotations';export default class k extends _0x1c8180{static get['requires'](){return[_0x2bd8ec];}static get[_0x5330('0x17')](){return _0x5330('0x0');}constructor(_0x46f423){super(_0x46f423),this[_0x5330('0x13')]=new Set(),this[_0x5330('0x1d')]=new Set();}[_0x5330('0xe')](){const _0x1d82f0=this[_0x5330('0x21')],_0x5d9e6a=_0x1d82f0[_0x5330('0x4')][_0x5330('0x1e')]['selection'],_0xdc33e8=_0x28dfa2(()=>this['refreshSelectedViews'](),0xa);_0x5d9e6a['on'](_0x5330('0x2b'),(_0x3d1781,_0x1a312a)=>{_0x1a312a[_0x5330('0x14')]&&(_0xdc33e8[_0x5330('0x28')](),this[_0x5330('0x2a')]());}),this[_0x5330('0xb')](_0x1d82f0[_0x5330('0x2c')][_0x5330('0x1c')][_0x5330('0x1e')],_0x5330('0x1f'),(_0x217355,_0xdc1d9c,_0x5f4316)=>{_0x5f4316&&_0xdc33e8();}),this[_0x5330('0xb')](_0x1d82f0['ui'][_0x5330('0x5')],'change:isFocused',(_0x3986b3,_0x242e4f,_0x39680f)=>{_0x39680f||_0x1d82f0[_0x5330('0x6')]||this['fire'](_0x5330('0x2'),{'isAnnotationTracked':_0x297a59=>this['_editorAnnotationsData']['has'](_0x297a59[_0x5330('0x27')])});}),this[_0x5330('0xb')](this[_0x5330('0x21')]['ui'],'update',()=>this[_0x5330('0xc')](_0x5330('0x1')));}['registerAnnotation'](_0x2dec73){if(this[_0x5330('0x1d')]['has'](_0x2dec73[_0x5330('0x1c')]))return;this[_0x5330('0x1d')][_0x5330('0xa')](_0x2dec73[_0x5330('0x1c')]),this[_0x5330('0x21')]['ui']['focusTracker'][_0x5330('0xa')](_0x2dec73[_0x5330('0x1c')][_0x5330('0xd')]);const _0x23b86b=this['editor']['plugins'][_0x5330('0x23')](_0x2bd8ec);this['listenTo'](_0x23b86b[_0x5330('0x3')],_0x5330('0xf'),(_0xeedea5,_0x23ba73)=>{this[_0x5330('0x21')]['ui']['focusTracker'][_0x5330('0xf')](_0x23ba73[_0x5330('0x1c')][_0x5330('0xd')]),this[_0x5330('0x1d')][_0x5330('0x16')](_0x23ba73['view']);});}[_0x5330('0x10')](){return this['editor'][_0x5330('0x2c')][_0x5330('0x1c')]['hasDomSelection'];}[_0x5330('0x12')](_0x46e72c){if('function'!=typeof _0x46e72c)throw new _0x5dd79e(_0x5330('0x25'));this[_0x5330('0x13')][_0x5330('0xa')](_0x46e72c);}[_0x5330('0x2a')](){this[_0x5330('0xc')](_0x5330('0x26'));}[_0x5330('0x2d')]({activeAnnotation:_0x5e085c,annotations:_0x352b37}){const _0x2f2d9b=[],_0x23f338=this[_0x5330('0x21')][_0x5330('0x4')]['document'][_0x5330('0x9')],_0x50c42b=Array[_0x5330('0x1b')](_0x23f338[_0x5330('0x22')]());for(const [_0x1addda,_0x447952]of this[_0x5330('0x18')]){const _0x55461f=_0x23181e(_0x447952),_0x10ea97=_0x352b37[_0x5330('0x1a')](_0x1addda);_0x55461f&&_0x10ea97&&_0x2f2d9b['push']({'annotation':_0x10ea97,'range':_0x55461f});}function _0x23181e(_0x329fe6){for(const _0x1ed227 of _0x329fe6)for(const _0x36d07d of _0x50c42b)if(_0x1ed227[_0x5330('0x11')](_0x36d07d,!_0x23f338[_0x5330('0x29')]))return _0x1ed227;return null;}return _0x2f2d9b[_0x5330('0x7')]((_0x960c70,_0x3a1280)=>{const _0x1b6ce8=_0x960c70[_0x5330('0x8')],_0x43f488=_0x3a1280[_0x5330('0x8')];if(!_0x1b6ce8[_0x5330('0x15')](_0x43f488)){if(_0x1b6ce8[_0x5330('0x11')](_0x43f488,!0x0))return 0x1;if(_0x43f488[_0x5330('0x11')](_0x1b6ce8,!0x0))return-0x1;}return _0x960c70['annotation']==_0x5e085c?-0x1:_0x3a1280[_0x5330('0x19')]==_0x5e085c?0x1:0x0;})[_0x5330('0x24')](_0x42c564=>_0x42c564[_0x5330('0x19')]);}get[_0x5330('0x18')](){const _0x16d4cc=new Map();for(const _0x58b70d of Array['from'](this[_0x5330('0x13')]))for(const [_0xcdd404,_0x3d9b16]of _0x58b70d())_0x16d4cc[_0x5330('0x20')](_0xcdd404,_0x3d9b16);return _0x16d4cc;}}
23
+ const _0x55ca=['add','isEqual','_editorAnnotationsData','_editorAnnotations','containsRange','EditorAnnotations','get','set','remove','collection','fire','element','cancel','requires','init','plugins','selection','blur','editorannotations-invalid-source-callback','document','push','editing','directChange','view','model','editor','pluginName','from','has','sort','change:isFocused','hasDomSelection','addSourceCollector','registerAnnotation','isReadOnly','_dataCollectors','listenTo','getRanges','update','focusTracker','uiUpdate','change:range','function','range','refreshSelectedViews','refresh','annotation','innerView','getOrderedSelectedAnnotations'];(function(_0x1d8972,_0x55ca5f){const _0x506895=function(_0x3a1464){while(--_0x3a1464){_0x1d8972['push'](_0x1d8972['shift']());}};_0x506895(++_0x55ca5f);}(_0x55ca,0xe0));const _0x5068=function(_0x1d8972,_0x55ca5f){_0x1d8972=_0x1d8972-0x0;let _0x506895=_0x55ca[_0x1d8972];return _0x506895;};import{Plugin as _0x494aa4}from'ckeditor5/src/core';import{CKEditorError as _0x574ef8}from'ckeditor5/src/utils';import{debounce as _0x5e5713}from'lodash-es';import _0x5a0592 from'./annotations';export default class k extends _0x494aa4{static get[_0x5068('0x22')](){return[_0x5a0592];}static get[_0x5068('0x2f')](){return _0x5068('0x1a');}constructor(_0x294844){super(_0x294844),this['_dataCollectors']=new Set(),this[_0x5068('0x18')]=new Set();}[_0x5068('0x23')](){const _0x3a87d7=this[_0x5068('0x2e')],_0x67d997=_0x3a87d7[_0x5068('0x2d')][_0x5068('0x28')][_0x5068('0x25')],_0x102272=_0x5e5713(()=>this[_0x5068('0x10')](),0xa);_0x67d997['on'](_0x5068('0xd'),(_0x42e52f,_0x54ddb5)=>{_0x54ddb5[_0x5068('0x2b')]&&(_0x102272[_0x5068('0x21')](),this[_0x5068('0x10')]());}),this[_0x5068('0x8')](_0x3a87d7['editing']['view'][_0x5068('0x28')],_0x5068('0x2'),(_0x3b0b98,_0x1dc498,_0x4b03af)=>{_0x4b03af&&_0x102272();}),this[_0x5068('0x8')](_0x3a87d7['ui'][_0x5068('0xb')],'change:isFocused',(_0x58219a,_0x9b9043,_0x276a94)=>{_0x276a94||_0x3a87d7[_0x5068('0x6')]||this[_0x5068('0x1f')](_0x5068('0x26'),{'isAnnotationTracked':_0x147be0=>this[_0x5068('0x17')]['has'](_0x147be0[_0x5068('0x13')])});}),this['listenTo'](this[_0x5068('0x2e')]['ui'],_0x5068('0xa'),()=>this[_0x5068('0x1f')](_0x5068('0xc')));}[_0x5068('0x5')](_0x17d613){if(this['_editorAnnotations'][_0x5068('0x0')](_0x17d613[_0x5068('0x2c')]))return;this[_0x5068('0x18')][_0x5068('0x15')](_0x17d613['view']),this[_0x5068('0x2e')]['ui']['focusTracker'][_0x5068('0x15')](_0x17d613[_0x5068('0x2c')][_0x5068('0x20')]);const _0x4b6fa0=this[_0x5068('0x2e')][_0x5068('0x24')][_0x5068('0x1b')](_0x5a0592);this['listenTo'](_0x4b6fa0[_0x5068('0x1e')],_0x5068('0x1d'),(_0x426107,_0xea02a4)=>{this[_0x5068('0x2e')]['ui'][_0x5068('0xb')]['remove'](_0xea02a4[_0x5068('0x2c')][_0x5068('0x20')]),this[_0x5068('0x18')]['delete'](_0xea02a4[_0x5068('0x2c')]);});}[_0x5068('0x3')](){return this[_0x5068('0x2e')][_0x5068('0x2a')][_0x5068('0x2c')][_0x5068('0x3')];}[_0x5068('0x4')](_0x5e90d7){if(_0x5068('0xe')!=typeof _0x5e90d7)throw new _0x574ef8(_0x5068('0x27'));this['_dataCollectors']['add'](_0x5e90d7);}[_0x5068('0x10')](){this[_0x5068('0x1f')](_0x5068('0x11'));}[_0x5068('0x14')]({activeAnnotation:_0x3c0759,annotations:_0x32868f}){const _0x3d96c1=[],_0xd7e5ee=this[_0x5068('0x2e')]['model'][_0x5068('0x28')]['selection'],_0x217538=Array[_0x5068('0x30')](_0xd7e5ee[_0x5068('0x9')]());for(const [_0x26504f,_0x443548]of this['_editorAnnotationsData']){const _0x15ba55=_0x1f01ab(_0x443548),_0x189d1e=_0x32868f['getByInnerView'](_0x26504f);_0x15ba55&&_0x189d1e&&_0x3d96c1[_0x5068('0x29')]({'annotation':_0x189d1e,'range':_0x15ba55});}function _0x1f01ab(_0x4e4fc4){for(const _0xaa08ad of _0x4e4fc4)for(const _0x596e0d of _0x217538)if(_0xaa08ad[_0x5068('0x19')](_0x596e0d,!_0xd7e5ee['isCollapsed']))return _0xaa08ad;return null;}return _0x3d96c1[_0x5068('0x1')]((_0x33e197,_0x5da3c0)=>{const _0x3ffea0=_0x33e197[_0x5068('0xf')],_0xc8467a=_0x5da3c0[_0x5068('0xf')];if(!_0x3ffea0[_0x5068('0x16')](_0xc8467a)){if(_0x3ffea0[_0x5068('0x19')](_0xc8467a,!0x0))return 0x1;if(_0xc8467a[_0x5068('0x19')](_0x3ffea0,!0x0))return-0x1;}return _0x33e197[_0x5068('0x12')]==_0x3c0759?-0x1:_0x5da3c0[_0x5068('0x12')]==_0x3c0759?0x1:0x0;})['map'](_0x4c8eac=>_0x4c8eac['annotation']);}get[_0x5068('0x17')](){const _0x225a8d=new Map();for(const _0x396057 of Array[_0x5068('0x30')](this[_0x5068('0x7')]))for(const [_0x19ec01,_0x3df459]of _0x396057())_0x225a8d[_0x5068('0x1c')](_0x19ec01,_0x3df459);return _0x225a8d;}}