@ckeditor/ckeditor5-comments 38.2.0-alpha.1 → 39.0.1

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 (163) hide show
  1. package/README.md +0 -1
  2. package/build/comments.js +1 -1
  3. package/build/translations/ar.js +1 -1
  4. package/build/translations/bg.js +1 -1
  5. package/build/translations/bn.js +1 -1
  6. package/build/translations/ca.js +1 -1
  7. package/build/translations/cs.js +1 -1
  8. package/build/translations/da.js +1 -1
  9. package/build/translations/de.js +1 -1
  10. package/build/translations/el.js +1 -1
  11. package/build/translations/es.js +1 -1
  12. package/build/translations/et.js +1 -1
  13. package/build/translations/fi.js +1 -1
  14. package/build/translations/fr.js +1 -1
  15. package/build/translations/gl.js +1 -1
  16. package/build/translations/he.js +1 -1
  17. package/build/translations/hi.js +1 -1
  18. package/build/translations/hr.js +1 -1
  19. package/build/translations/hu.js +1 -1
  20. package/build/translations/id.js +1 -1
  21. package/build/translations/ja.js +1 -1
  22. package/build/translations/ko.js +1 -1
  23. package/build/translations/lt.js +1 -1
  24. package/build/translations/ms.js +1 -1
  25. package/build/translations/nl.js +1 -1
  26. package/build/translations/no.js +1 -1
  27. package/build/translations/pl.js +1 -1
  28. package/build/translations/pt.js +1 -1
  29. package/build/translations/ro.js +1 -1
  30. package/build/translations/ru.js +1 -1
  31. package/build/translations/sq.js +1 -1
  32. package/build/translations/sr.js +1 -1
  33. package/build/translations/sv.js +1 -1
  34. package/build/translations/th.js +1 -1
  35. package/build/translations/tr.js +1 -1
  36. package/build/translations/uk.js +1 -1
  37. package/build/translations/vi.js +1 -1
  38. package/build/translations/zh-cn.js +1 -1
  39. package/build/translations/zh.js +1 -1
  40. package/lang/translations/ar.po +1 -1
  41. package/lang/translations/bg.po +1 -1
  42. package/lang/translations/bn.po +1 -1
  43. package/lang/translations/ca.po +1 -1
  44. package/lang/translations/cs.po +1 -1
  45. package/lang/translations/da.po +1 -1
  46. package/lang/translations/de.po +1 -1
  47. package/lang/translations/el.po +1 -1
  48. package/lang/translations/es.po +1 -1
  49. package/lang/translations/et.po +1 -1
  50. package/lang/translations/fi.po +1 -1
  51. package/lang/translations/fr.po +1 -1
  52. package/lang/translations/gl.po +12 -12
  53. package/lang/translations/he.po +1 -1
  54. package/lang/translations/hi.po +1 -1
  55. package/lang/translations/hr.po +1 -1
  56. package/lang/translations/hu.po +1 -1
  57. package/lang/translations/id.po +1 -1
  58. package/lang/translations/ja.po +1 -1
  59. package/lang/translations/ko.po +1 -1
  60. package/lang/translations/lt.po +1 -1
  61. package/lang/translations/ms.po +1 -1
  62. package/lang/translations/nl.po +1 -1
  63. package/lang/translations/no.po +1 -1
  64. package/lang/translations/pl.po +1 -1
  65. package/lang/translations/pt.po +1 -1
  66. package/lang/translations/ro.po +1 -1
  67. package/lang/translations/ru.po +1 -1
  68. package/lang/translations/sq.po +2 -2
  69. package/lang/translations/sr.po +1 -1
  70. package/lang/translations/sv.po +1 -1
  71. package/lang/translations/th.po +1 -1
  72. package/lang/translations/tr.po +1 -1
  73. package/lang/translations/uk.po +1 -1
  74. package/lang/translations/vi.po +1 -1
  75. package/lang/translations/zh-cn.po +1 -1
  76. package/lang/translations/zh.po +1 -1
  77. package/package.json +4 -5
  78. package/src/annotations/annotation.d.ts +10 -6
  79. package/src/annotations/annotation.js +2 -2
  80. package/src/annotations/annotationcollection.d.ts +7 -3
  81. package/src/annotations/annotationcollection.js +2 -2
  82. package/src/annotations/annotations.d.ts +10 -6
  83. package/src/annotations/annotations.js +2 -2
  84. package/src/annotations/annotationsuis.d.ts +9 -5
  85. package/src/annotations/annotationsuis.js +2 -2
  86. package/src/annotations/editorannotations.d.ts +8 -4
  87. package/src/annotations/editorannotations.js +2 -2
  88. package/src/annotations/inlineannotations.d.ts +10 -6
  89. package/src/annotations/inlineannotations.js +2 -2
  90. package/src/annotations/narrowsidebar.d.ts +10 -6
  91. package/src/annotations/narrowsidebar.js +2 -2
  92. package/src/annotations/sidebar.d.ts +9 -5
  93. package/src/annotations/sidebar.js +2 -2
  94. package/src/annotations/view/annotationcounterbuttonview.d.ts +6 -2
  95. package/src/annotations/view/annotationcounterbuttonview.js +2 -2
  96. package/src/annotations/view/annotationview.d.ts +6 -2
  97. package/src/annotations/view/annotationview.js +2 -2
  98. package/src/annotations/view/sidebaritemview.d.ts +6 -2
  99. package/src/annotations/view/sidebaritemview.js +2 -2
  100. package/src/annotations/view/sidebarview.d.ts +6 -2
  101. package/src/annotations/view/sidebarview.js +2 -2
  102. package/src/annotations/widesidebar.d.ts +9 -5
  103. package/src/annotations/widesidebar.js +2 -2
  104. package/src/augmentation.d.ts +5 -1
  105. package/src/augmentation.js +1 -1
  106. package/src/comments/addcommentthreadcommand.d.ts +5 -1
  107. package/src/comments/addcommentthreadcommand.js +2 -2
  108. package/src/comments/commentsarchive.d.ts +8 -4
  109. package/src/comments/commentsarchive.js +2 -2
  110. package/src/comments/commentsarchiveui.d.ts +9 -5
  111. package/src/comments/commentsarchiveui.js +2 -2
  112. package/src/comments/commentsediting.d.ts +10 -6
  113. package/src/comments/commentsediting.js +2 -2
  114. package/src/comments/commentsrepository.d.ts +30 -13
  115. package/src/comments/commentsrepository.js +2 -2
  116. package/src/comments/commentsui.d.ts +9 -5
  117. package/src/comments/commentsui.js +2 -2
  118. package/src/comments/integrations/commentsrestrictededitingmode.d.ts +5 -1
  119. package/src/comments/integrations/commentsrestrictededitingmode.js +2 -2
  120. package/src/comments/integrations/importword.d.ts +5 -1
  121. package/src/comments/integrations/importword.js +2 -2
  122. package/src/comments/ui/commenteditor/commenteditor.d.ts +9 -5
  123. package/src/comments/ui/commenteditor/commenteditor.js +2 -2
  124. package/src/comments/ui/commenteditor/commenteditorui.d.ts +7 -3
  125. package/src/comments/ui/commenteditor/commenteditorui.js +2 -2
  126. package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +7 -3
  127. package/src/comments/ui/commenteditor/commenteditoruiview.js +2 -2
  128. package/src/comments/ui/commentthreadcontroller.d.ts +6 -6
  129. package/src/comments/ui/commentthreadcontroller.js +2 -2
  130. package/src/comments/ui/view/basecommentthreadview.d.ts +12 -8
  131. package/src/comments/ui/view/basecommentthreadview.js +2 -2
  132. package/src/comments/ui/view/basecommentview.d.ts +8 -4
  133. package/src/comments/ui/view/basecommentview.js +2 -2
  134. package/src/comments/ui/view/collapsedcommentsview.d.ts +6 -2
  135. package/src/comments/ui/view/collapsedcommentsview.js +2 -2
  136. package/src/comments/ui/view/commentcontentview.d.ts +6 -2
  137. package/src/comments/ui/view/commentcontentview.js +2 -2
  138. package/src/comments/ui/view/commentinputview.d.ts +8 -4
  139. package/src/comments/ui/view/commentinputview.js +2 -2
  140. package/src/comments/ui/view/commentsarchiveview.d.ts +7 -3
  141. package/src/comments/ui/view/commentsarchiveview.js +2 -2
  142. package/src/comments/ui/view/commentslistview.d.ts +9 -5
  143. package/src/comments/ui/view/commentslistview.js +2 -2
  144. package/src/comments/ui/view/commentthreadheaderview.d.ts +7 -3
  145. package/src/comments/ui/view/commentthreadheaderview.js +2 -2
  146. package/src/comments/ui/view/commentthreadinputview.d.ts +9 -5
  147. package/src/comments/ui/view/commentthreadinputview.js +2 -2
  148. package/src/comments/ui/view/commentthreadview.d.ts +11 -7
  149. package/src/comments/ui/view/commentthreadview.js +2 -2
  150. package/src/comments/ui/view/commentview.d.ts +12 -8
  151. package/src/comments/ui/view/commentview.js +2 -2
  152. package/src/comments.d.ts +14 -10
  153. package/src/comments.js +2 -2
  154. package/src/commentsonly.d.ts +6 -2
  155. package/src/commentsonly.js +2 -2
  156. package/src/config.d.ts +11 -7
  157. package/src/config.js +1 -1
  158. package/src/index.d.ts +24 -21
  159. package/src/index.js +2 -2
  160. package/src/utils/common-translations.d.ts +5 -1
  161. package/src/utils/common-translations.js +2 -2
  162. package/src/utils/createmutationobserver.d.ts +2 -1
  163. package/src/utils/createmutationobserver.js +2 -2
@@ -36,7 +36,7 @@ msgstr "Responder…"
36
36
 
37
37
  msgctxt "The placeholder for the reply field when the comment thread is resolved."
38
38
  msgid "Reply to reopen discussion..."
39
- msgstr ""
39
+ msgstr "Responder para volver abrir a discusión..."
40
40
 
41
41
  msgctxt "The placeholder for the new commend field."
42
42
  msgid "Write a comment..."
@@ -44,7 +44,7 @@ msgstr "Escribir un comentario…"
44
44
 
45
45
  msgctxt "The information that comment was made on element and has no context"
46
46
  msgid "Comment was made on an element"
47
- msgstr ""
47
+ msgstr "Comentouse un elemento"
48
48
 
49
49
  msgctxt "The label for the button that enables editing a comment."
50
50
  msgid "Edit"
@@ -52,11 +52,11 @@ msgstr "Editar"
52
52
 
53
53
  msgctxt "The label for the button that resolves a comment thread."
54
54
  msgid "Resolve"
55
- msgstr ""
55
+ msgstr "Solucionar"
56
56
 
57
57
  msgctxt "The label for the button that reopens a resolved comment thread."
58
58
  msgid "Reopen"
59
- msgstr ""
59
+ msgstr "Volver abrir"
60
60
 
61
61
  msgctxt "The label for the button that deletes a comment."
62
62
  msgid "Remove"
@@ -64,7 +64,7 @@ msgstr "Retirar"
64
64
 
65
65
  msgctxt "The label for for the button that adds a reply to a comment thread."
66
66
  msgid "Reply"
67
- msgstr ""
67
+ msgstr "Responder"
68
68
 
69
69
  msgctxt "The confirmation message shown after pressing the delete comment button."
70
70
  msgid "Delete comment?"
@@ -76,7 +76,7 @@ msgstr "Eliminar o fío de comentarios?"
76
76
 
77
77
  msgctxt "A message informing that the comment has been resolved"
78
78
  msgid "Marked as resolved"
79
- msgstr ""
79
+ msgstr "Marcado como solucionado"
80
80
 
81
81
  msgctxt "The tooltip for the comment toolbar button and the button that submits a comment thread."
82
82
  msgid "Comment"
@@ -88,24 +88,24 @@ msgstr "Cambio sen gardar no fío de comentarios."
88
88
 
89
89
  msgctxt "The additional information that comments comes from external source."
90
90
  msgid "EXTERNAL_COMMENT"
91
- msgstr ""
91
+ msgstr "Este comentario procede dunha fonte externa."
92
92
 
93
93
  msgctxt "The additional information that comments comes from imported Word file."
94
94
  msgid "EXTERNAL_IMPORT_WORD_COMMENT"
95
- msgstr ""
95
+ msgstr "Este comentario procede dun ficheiro de Word importado."
96
96
 
97
97
  msgctxt "The additional information that displayed author name comes from an external source."
98
98
  msgid "EXTERNAL_AVATAR"
99
- msgstr ""
99
+ msgstr "O nome do autor amosado procede dunha fonte externa (engadido por %0)"
100
100
 
101
101
  msgctxt "The additional information that displayed author name comes from imported Word file."
102
102
  msgid "EXTERNAL_IMPORT_WORD_AVATAR"
103
- msgstr ""
103
+ msgstr "O nome do autor amosado procede dun documento de Word importado por %0"
104
104
 
105
105
  msgctxt "The label for the comments archive dropdown UI."
106
106
  msgid "COMMENTS_ARCHIVE"
107
- msgstr ""
107
+ msgstr "Arquivo de comentarios"
108
108
 
109
109
  msgctxt "The information that comments archive is empty."
110
110
  msgid "EMPTY_COMMENTS_ARCHIVE"
111
- msgstr ""
111
+ msgstr "Non hai fíos de comentarios arquivados."
@@ -66,7 +66,7 @@ msgstr "הסר"
66
66
 
67
67
  msgctxt "The label for for the button that adds a reply to a comment thread."
68
68
  msgid "Reply"
69
- msgstr ""
69
+ msgstr "תשובה"
70
70
 
71
71
  msgctxt "The confirmation message shown after pressing the delete comment button."
72
72
  msgid "Delete comment?"
@@ -64,7 +64,7 @@ msgstr "Remove"
64
64
 
65
65
  msgctxt "The label for for the button that adds a reply to a comment thread."
66
66
  msgid "Reply"
67
- msgstr ""
67
+ msgstr "जवाब दें"
68
68
 
69
69
  msgctxt "The confirmation message shown after pressing the delete comment button."
70
70
  msgid "Delete comment?"
@@ -65,7 +65,7 @@ msgstr "Ukloni"
65
65
 
66
66
  msgctxt "The label for for the button that adds a reply to a comment thread."
67
67
  msgid "Reply"
68
- msgstr ""
68
+ msgstr "Odgovori..."
69
69
 
70
70
  msgctxt "The confirmation message shown after pressing the delete comment button."
71
71
  msgid "Delete comment?"
@@ -64,7 +64,7 @@ msgstr "Eltávolítás"
64
64
 
65
65
  msgctxt "The label for for the button that adds a reply to a comment thread."
66
66
  msgid "Reply"
67
- msgstr ""
67
+ msgstr "Válaszol"
68
68
 
69
69
  msgctxt "The confirmation message shown after pressing the delete comment button."
70
70
  msgid "Delete comment?"
@@ -63,7 +63,7 @@ msgstr "Hapus"
63
63
 
64
64
  msgctxt "The label for for the button that adds a reply to a comment thread."
65
65
  msgid "Reply"
66
- msgstr ""
66
+ msgstr "Balas"
67
67
 
68
68
  msgctxt "The confirmation message shown after pressing the delete comment button."
69
69
  msgid "Delete comment?"
@@ -63,7 +63,7 @@ msgstr "削除"
63
63
 
64
64
  msgctxt "The label for for the button that adds a reply to a comment thread."
65
65
  msgid "Reply"
66
- msgstr ""
66
+ msgstr "返信します"
67
67
 
68
68
  msgctxt "The confirmation message shown after pressing the delete comment button."
69
69
  msgid "Delete comment?"
@@ -63,7 +63,7 @@ msgstr "삭제"
63
63
 
64
64
  msgctxt "The label for for the button that adds a reply to a comment thread."
65
65
  msgid "Reply"
66
- msgstr ""
66
+ msgstr "회신"
67
67
 
68
68
  msgctxt "The confirmation message shown after pressing the delete comment button."
69
69
  msgid "Delete comment?"
@@ -66,7 +66,7 @@ msgstr "Pašalinti"
66
66
 
67
67
  msgctxt "The label for for the button that adds a reply to a comment thread."
68
68
  msgid "Reply"
69
- msgstr ""
69
+ msgstr "Atsakyti"
70
70
 
71
71
  msgctxt "The confirmation message shown after pressing the delete comment button."
72
72
  msgid "Delete comment?"
@@ -63,7 +63,7 @@ msgstr "Buang"
63
63
 
64
64
  msgctxt "The label for for the button that adds a reply to a comment thread."
65
65
  msgid "Reply"
66
- msgstr ""
66
+ msgstr "Balas"
67
67
 
68
68
  msgctxt "The confirmation message shown after pressing the delete comment button."
69
69
  msgid "Delete comment?"
@@ -64,7 +64,7 @@ msgstr "Verwijderen"
64
64
 
65
65
  msgctxt "The label for for the button that adds a reply to a comment thread."
66
66
  msgid "Reply"
67
- msgstr ""
67
+ msgstr "Reageren"
68
68
 
69
69
  msgctxt "The confirmation message shown after pressing the delete comment button."
70
70
  msgid "Delete comment?"
@@ -64,7 +64,7 @@ msgstr "Fjern"
64
64
 
65
65
  msgctxt "The label for for the button that adds a reply to a comment thread."
66
66
  msgid "Reply"
67
- msgstr ""
67
+ msgstr "Svar"
68
68
 
69
69
  msgctxt "The confirmation message shown after pressing the delete comment button."
70
70
  msgid "Delete comment?"
@@ -66,7 +66,7 @@ msgstr "Usuń"
66
66
 
67
67
  msgctxt "The label for for the button that adds a reply to a comment thread."
68
68
  msgid "Reply"
69
- msgstr ""
69
+ msgstr "Odpowiedz"
70
70
 
71
71
  msgctxt "The confirmation message shown after pressing the delete comment button."
72
72
  msgid "Delete comment?"
@@ -65,7 +65,7 @@ msgstr "Remover"
65
65
 
66
66
  msgctxt "The label for for the button that adds a reply to a comment thread."
67
67
  msgid "Reply"
68
- msgstr ""
68
+ msgstr "Responder"
69
69
 
70
70
  msgctxt "The confirmation message shown after pressing the delete comment button."
71
71
  msgid "Delete comment?"
@@ -65,7 +65,7 @@ msgstr "Șterge"
65
65
 
66
66
  msgctxt "The label for for the button that adds a reply to a comment thread."
67
67
  msgid "Reply"
68
- msgstr ""
68
+ msgstr "Răspunde"
69
69
 
70
70
  msgctxt "The confirmation message shown after pressing the delete comment button."
71
71
  msgid "Delete comment?"
@@ -66,7 +66,7 @@ msgstr "Удалить"
66
66
 
67
67
  msgctxt "The label for for the button that adds a reply to a comment thread."
68
68
  msgid "Reply"
69
- msgstr ""
69
+ msgstr "Ответить"
70
70
 
71
71
  msgctxt "The confirmation message shown after pressing the delete comment button."
72
72
  msgid "Delete comment?"
@@ -64,7 +64,7 @@ msgstr "Largo"
64
64
 
65
65
  msgctxt "The label for for the button that adds a reply to a comment thread."
66
66
  msgid "Reply"
67
- msgstr ""
67
+ msgstr "Përgjigju"
68
68
 
69
69
  msgctxt "The confirmation message shown after pressing the delete comment button."
70
70
  msgid "Delete comment?"
@@ -80,7 +80,7 @@ msgstr ""
80
80
 
81
81
  msgctxt "The tooltip for the comment toolbar button and the button that submits a comment thread."
82
82
  msgid "Comment"
83
- msgstr ""
83
+ msgstr "Komento"
84
84
 
85
85
  msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
86
86
  msgid "PENDING_ACTION_COMMENT_THREAD"
@@ -65,7 +65,7 @@ msgstr "Одстрани"
65
65
 
66
66
  msgctxt "The label for for the button that adds a reply to a comment thread."
67
67
  msgid "Reply"
68
- msgstr ""
68
+ msgstr "Odgovori"
69
69
 
70
70
  msgctxt "The confirmation message shown after pressing the delete comment button."
71
71
  msgid "Delete comment?"
@@ -64,7 +64,7 @@ msgstr "Ta bort"
64
64
 
65
65
  msgctxt "The label for for the button that adds a reply to a comment thread."
66
66
  msgid "Reply"
67
- msgstr ""
67
+ msgstr "Svara"
68
68
 
69
69
  msgctxt "The confirmation message shown after pressing the delete comment button."
70
70
  msgid "Delete comment?"
@@ -63,7 +63,7 @@ msgstr "ลบ"
63
63
 
64
64
  msgctxt "The label for for the button that adds a reply to a comment thread."
65
65
  msgid "Reply"
66
- msgstr ""
66
+ msgstr "ตอบ"
67
67
 
68
68
  msgctxt "The confirmation message shown after pressing the delete comment button."
69
69
  msgid "Delete comment?"
@@ -64,7 +64,7 @@ msgstr "Sil"
64
64
 
65
65
  msgctxt "The label for for the button that adds a reply to a comment thread."
66
66
  msgid "Reply"
67
- msgstr ""
67
+ msgstr "Yanıtla"
68
68
 
69
69
  msgctxt "The confirmation message shown after pressing the delete comment button."
70
70
  msgid "Delete comment?"
@@ -66,7 +66,7 @@ msgstr "Видалити"
66
66
 
67
67
  msgctxt "The label for for the button that adds a reply to a comment thread."
68
68
  msgid "Reply"
69
- msgstr ""
69
+ msgstr "Відповісти"
70
70
 
71
71
  msgctxt "The confirmation message shown after pressing the delete comment button."
72
72
  msgid "Delete comment?"
@@ -63,7 +63,7 @@ msgstr "Xóa"
63
63
 
64
64
  msgctxt "The label for for the button that adds a reply to a comment thread."
65
65
  msgid "Reply"
66
- msgstr ""
66
+ msgstr "Trả lời"
67
67
 
68
68
  msgctxt "The confirmation message shown after pressing the delete comment button."
69
69
  msgid "Delete comment?"
@@ -63,7 +63,7 @@ msgstr "删除"
63
63
 
64
64
  msgctxt "The label for for the button that adds a reply to a comment thread."
65
65
  msgid "Reply"
66
- msgstr ""
66
+ msgstr "回复"
67
67
 
68
68
  msgctxt "The confirmation message shown after pressing the delete comment button."
69
69
  msgid "Delete comment?"
@@ -63,7 +63,7 @@ msgstr "刪除"
63
63
 
64
64
  msgctxt "The label for for the button that adds a reply to a comment thread."
65
65
  msgid "Reply"
66
- msgstr ""
66
+ msgstr "回覆"
67
67
 
68
68
  msgctxt "The confirmation message shown after pressing the delete comment button."
69
69
  msgid "Delete comment?"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-comments",
3
- "version": "38.2.0-alpha.1",
3
+ "version": "39.0.1",
4
4
  "description": "Collaborative comments feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -33,7 +33,6 @@
33
33
  "discussions"
34
34
  ],
35
35
  "main": "src/index.js",
36
- "type": "module",
37
36
  "files": [
38
37
  "build",
39
38
  "lang",
@@ -44,9 +43,9 @@
44
43
  "CHANGELOG.md"
45
44
  ],
46
45
  "dependencies": {
47
- "ckeditor5": "38.2.0-alpha.1",
48
- "ckeditor5-collaboration": "38.2.0-alpha.1",
49
- "lodash-es": "^4.17.11"
46
+ "ckeditor5": "39.0.1",
47
+ "ckeditor5-collaboration": "39.0.1",
48
+ "lodash-es": "4.17.21"
50
49
  },
51
50
  "engines": {
52
51
  "node": ">=16.0.0",
@@ -1,14 +1,18 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module comments/annotations/annotation
3
7
  * @publicApi
4
8
  */
5
- import { Rect, Collection } from 'ckeditor5/src/utils.js';
6
- import type { View } from 'ckeditor5/src/ui.js';
7
- import type AnnotationView from './view/annotationview.js';
8
- import type { AnnotationOptions } from './annotations.js';
9
+ import { Rect, Collection } from 'ckeditor5/src/utils';
10
+ import type { View } from 'ckeditor5/src/ui';
11
+ import type AnnotationView from './view/annotationview';
12
+ import type { AnnotationOptions } from './annotations';
9
13
  declare const Annotation_base: {
10
- new (): import("ckeditor5/src/utils.js").Observable;
11
- prototype: import("ckeditor5/src/utils.js").Observable;
14
+ new (): import("ckeditor5/src/utils").Observable;
15
+ prototype: import("ckeditor5/src/utils").Observable;
12
16
  };
13
17
  /**
14
18
  * Represents an annotation.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x7d4a=['annotation-invalid-target','view','set','focusableElements','add','every','filter','destroy','targetRect','isArray','remove','function','_getNormalizedTarget','_type','refreshVisibility','render','target','item','mainView','_target','_assertCorrectTarget','isActive','stopListening','focusTracker','nodeType','offsetParent','isVisible','innerView'];(function(_0x504d8a,_0x7d4a06){const _0x59dd62=function(_0x3e80b2){while(--_0x3e80b2){_0x504d8a['push'](_0x504d8a['shift']());}};_0x59dd62(++_0x7d4a06);}(_0x7d4a,0x1b5));const _0x59dd=function(_0x504d8a,_0x7d4a06){_0x504d8a=_0x504d8a-0x0;let _0x59dd62=_0x7d4a[_0x504d8a];return _0x59dd62;};import{CKEditorError as _0xa45750,Rect as _0x3e2b36,Collection as _0x2ad174,ObservableMixin as _0x3bb101}from'ckeditor5/src/utils.js';export default class d extends _0x3bb101(){constructor({view:_0x211616,target:_0x31ce7f,type:_0x3e88d7,isVisible:_0x18d2f4=!0x0}){super(),this[_0x59dd('0xc')]=_0x211616,this[_0x59dd('0xc')]['element']||this['view'][_0x59dd('0x1a')](),this[_0x59dd('0x18')]=_0x3e88d7,this[_0x59dd('0x2')]=_0x31ce7f,d['_assertCorrectTarget'](this[_0x59dd('0x17')]()),this[_0x59dd('0xe')]=new _0x2ad174([this[_0x59dd('0xc')]['element']],{'idProperty':'_id'}),this['focusableElements']['on'](_0x59dd('0xf'),(_0x8d3004,_0x379474)=>{this[_0x59dd('0xc')]['focusTracker'][_0x59dd('0xf')](_0x379474);}),this[_0x59dd('0xe')]['on'](_0x59dd('0x15'),(_0x53b9fc,_0x46c2e0)=>{this[_0x59dd('0xc')][_0x59dd('0x6')]['remove'](_0x46c2e0);}),this[_0x59dd('0xd')](_0x59dd('0x9'),_0x18d2f4);}get['type'](){return _0x59dd('0x16')==typeof this[_0x59dd('0x18')]?this[_0x59dd('0x18')]():this[_0x59dd('0x18')];}get[_0x59dd('0xa')](){return this[_0x59dd('0xc')][_0x59dd('0x1')];}get[_0x59dd('0x1b')](){const _0x517248=this[_0x59dd('0x17')]();return d[_0x59dd('0x3')](_0x517248),_0x517248;}get['targetRect'](){const _0x435a17=this['target'];if(null===_0x435a17)return null;if(_0x435a17 instanceof _0x3e2b36)return _0x435a17;const _0x3d6dfc=_0x435a17[_0x59dd('0x11')](_0x32bea4=>function(_0x48449f){const _0xbc8711=_0x48449f[_0x59dd('0x8')];if(_0xbc8711)return!0x0;const _0x1f9c8e=_0x48449f['getClientRects']()['item'](0x0);return!!_0x1f9c8e;}(_0x32bea4));return 0x0===_0x3d6dfc['length']?null:new _0x3e2b36(_0x3d6dfc[0x0]['getClientRects']()[_0x59dd('0x0')](0x0));}get['isActive'](){return this[_0x59dd('0xc')]['isActive'];}set[_0x59dd('0x4')](_0x7bc304){this[_0x59dd('0xc')][_0x59dd('0x4')]=_0x7bc304,this[_0x59dd('0xc')][_0x59dd('0x1')][_0x59dd('0x4')]=_0x7bc304;}['updateTargetRect'](){this[_0x59dd('0xc')][_0x59dd('0x13')]=this[_0x59dd('0x13')];}[_0x59dd('0x12')](){this[_0x59dd('0xe')]['stopListening'](),this['focusableElements']['clear'](),this[_0x59dd('0x5')]();}[_0x59dd('0x19')](){this[_0x59dd('0x9')]=!!this[_0x59dd('0x13')];}static[_0x59dd('0x3')](_0x1ce8f7){if(!(null===_0x1ce8f7||_0x1ce8f7 instanceof _0x3e2b36||Array[_0x59dd('0x14')](_0x1ce8f7)&&_0x1ce8f7[_0x59dd('0x10')](_0x579a58=>y(_0x579a58))))throw new _0xa45750(_0x59dd('0xb'),null,{'target':_0x1ce8f7});}['_getNormalizedTarget'](){const _0x5861b5=_0x59dd('0x16')==typeof this['_target']?this[_0x59dd('0x2')]():this[_0x59dd('0x2')];return y(_0x5861b5)?[_0x5861b5]:_0x5861b5;}}function y(_0x414a91){return null!==_0x414a91&&'object'==typeof _0x414a91&&_0x59dd('0x7')in _0x414a91&&0x1===_0x414a91['nodeType'];}
23
+ const _0x36d6=['refreshVisibility','targetRect','stopListening','view','_assertCorrectTarget','render','item','isVisible','length','isActive','nodeType','element','type','function','remove','focusTracker','focusableElements','_id','_target','annotation-invalid-target','target','_getNormalizedTarget','every','offsetParent','filter','mainView','add','_type','getClientRects'];(function(_0x2a0870,_0x36d6f2){const _0x494858=function(_0x5ad8f4){while(--_0x5ad8f4){_0x2a0870['push'](_0x2a0870['shift']());}};_0x494858(++_0x36d6f2);}(_0x36d6,0x114));const _0x4948=function(_0x2a0870,_0x36d6f2){_0x2a0870=_0x2a0870-0x0;let _0x494858=_0x36d6[_0x2a0870];return _0x494858;};import{CKEditorError as _0x302764,Rect as _0x59d830,Collection as _0x39193d,ObservableMixin as _0x1f988c}from'ckeditor5/src/utils';export default class d extends _0x1f988c(){constructor({view:_0x1c6efe,target:_0x39d939,type:_0x32d894,isVisible:_0x16c96e=!0x0}){super(),this[_0x4948('0x11')]=_0x1c6efe,this[_0x4948('0x11')][_0x4948('0x19')]||this['view'][_0x4948('0x13')](),this[_0x4948('0xc')]=_0x32d894,this[_0x4948('0x3')]=_0x39d939,d[_0x4948('0x12')](this[_0x4948('0x6')]()),this[_0x4948('0x1')]=new _0x39193d([this['view'][_0x4948('0x19')]],{'idProperty':_0x4948('0x2')}),this[_0x4948('0x1')]['on'](_0x4948('0xb'),(_0x2bc25f,_0x3b2b91)=>{this[_0x4948('0x11')][_0x4948('0x0')][_0x4948('0xb')](_0x3b2b91);}),this[_0x4948('0x1')]['on']('remove',(_0x166795,_0x1061ca)=>{this[_0x4948('0x11')][_0x4948('0x0')][_0x4948('0x1c')](_0x1061ca);}),this['set'](_0x4948('0x15'),_0x16c96e);}get[_0x4948('0x1a')](){return'function'==typeof this['_type']?this[_0x4948('0xc')]():this[_0x4948('0xc')];}get['innerView'](){return this[_0x4948('0x11')][_0x4948('0xa')];}get[_0x4948('0x5')](){const _0xda31d8=this['_getNormalizedTarget']();return d[_0x4948('0x12')](_0xda31d8),_0xda31d8;}get[_0x4948('0xf')](){const _0x57927f=this[_0x4948('0x5')];if(null===_0x57927f)return null;if(_0x57927f instanceof _0x59d830)return _0x57927f;const _0x48e3b9=_0x57927f[_0x4948('0x9')](_0x2424ac=>function(_0x331e58){const _0x206050=_0x331e58[_0x4948('0x8')];if(_0x206050)return!0x0;const _0x3cccbb=_0x331e58[_0x4948('0xd')]()[_0x4948('0x14')](0x0);return!!_0x3cccbb;}(_0x2424ac));return 0x0===_0x48e3b9[_0x4948('0x16')]?null:new _0x59d830(_0x48e3b9[0x0][_0x4948('0xd')]()[_0x4948('0x14')](0x0));}get[_0x4948('0x17')](){return this[_0x4948('0x11')][_0x4948('0x17')];}set[_0x4948('0x17')](_0x40d013){this[_0x4948('0x11')][_0x4948('0x17')]=_0x40d013,this[_0x4948('0x11')]['mainView']['isActive']=_0x40d013;}['updateTargetRect'](){this[_0x4948('0x11')][_0x4948('0xf')]=this['targetRect'];}['destroy'](){this[_0x4948('0x1')][_0x4948('0x10')](),this[_0x4948('0x1')]['clear'](),this[_0x4948('0x10')]();}[_0x4948('0xe')](){this[_0x4948('0x15')]=!!this['targetRect'];}static[_0x4948('0x12')](_0x2c9c21){if(!(null===_0x2c9c21||_0x2c9c21 instanceof _0x59d830||Array['isArray'](_0x2c9c21)&&_0x2c9c21[_0x4948('0x7')](_0x3c965f=>y(_0x3c965f))))throw new _0x302764(_0x4948('0x4'),null,{'target':_0x2c9c21});}[_0x4948('0x6')](){const _0x187840=_0x4948('0x1b')==typeof this['_target']?this[_0x4948('0x3')]():this[_0x4948('0x3')];return y(_0x187840)?[_0x187840]:_0x187840;}}function y(_0x30ac72){return null!==_0x30ac72&&'object'==typeof _0x30ac72&&_0x4948('0x18')in _0x30ac72&&0x1===_0x30ac72[_0x4948('0x18')];}
@@ -1,10 +1,14 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module comments/annotations/annotationcollection
3
7
  * @publicApi
4
8
  */
5
- import { Collection } from 'ckeditor5/src/utils.js';
6
- import type { View } from 'ckeditor5/src/ui.js';
7
- import type Annotation from './annotation.js';
9
+ import { Collection } from 'ckeditor5/src/utils';
10
+ import type { View } from 'ckeditor5/src/ui';
11
+ import type Annotation from './annotation';
8
12
  /**
9
13
  * A collection of {@link module:comments/annotations/annotation~Annotation annotations}.
10
14
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x101e=['updateTargetRect','_focusTracker','destroy','fire','getByInnerView','view','left','getByView','_innerViewToAnnotation','change:isFocused','add','annotationcollection-duplicated-item','innerView','isFocused','annotationcollection-not-existing-item','focusTracker','getIndex','from','_sort','listenTo','set','get','_viewToAnnotation','_getOrderInContent','has','sort','clear','remove','focusableElements','targetRect','top','stopListening','length','delete','blur'];(function(_0x55457a,_0x101e05){const _0xe04e4b=function(_0x4ef2da){while(--_0x4ef2da){_0x55457a['push'](_0x55457a['shift']());}};_0xe04e4b(++_0x101e05);}(_0x101e,0x1ca));const _0xe04e=function(_0x55457a,_0x101e05){_0x55457a=_0x55457a-0x0;let _0xe04e4b=_0x101e[_0x55457a];return _0xe04e4b;};import{CKEditorError as _0xaa3ab7,Collection as _0x26cb33,FocusTracker as _0x339725}from'ckeditor5/src/utils.js';export default class x extends _0x26cb33{constructor(_0x2a8091=[]){super(),this['_innerViewToAnnotation']=new Map(),this[_0xe04e('0x13')]=new Map(),this['_focusTracker']=new _0x339725(),this['_focusTracker']['on'](_0xe04e('0x6'),(_0x1becd6,_0x3e48f4,_0x5f2210)=>{_0x5f2210||this['fire'](_0xe04e('0x1f'));});for(const _0xf3be07 of _0x2a8091)this[_0xe04e('0x7')](_0xf3be07);}get[_0xe04e('0xa')](){return this[_0xe04e('0x21')][_0xe04e('0xa')];}[_0xe04e('0x7')](_0xa4d2c6){if(this['has'](_0xa4d2c6))throw new _0xaa3ab7(_0xe04e('0x8'),null);this[_0xe04e('0x5')]['set'](_0xa4d2c6[_0xe04e('0x9')],_0xa4d2c6),this[_0xe04e('0x13')][_0xe04e('0x11')](_0xa4d2c6[_0xe04e('0x2')],_0xa4d2c6);for(const _0x97943 of _0xa4d2c6[_0xe04e('0x19')])this['_focusTracker'][_0xe04e('0x7')](_0x97943);this['listenTo'](_0xa4d2c6[_0xe04e('0x19')],_0xe04e('0x7'),(_0x3264a8,_0x198f96)=>{this[_0xe04e('0x21')]['add'](_0x198f96);}),this[_0xe04e('0x10')](_0xa4d2c6['focusableElements'],_0xe04e('0x18'),(_0xf11a48,_0x2d9520)=>{this[_0xe04e('0x21')][_0xe04e('0x18')](_0x2d9520);}),this[_0xe04e('0x10')](_0xa4d2c6[_0xe04e('0x2')][_0xe04e('0xc')],_0xe04e('0x6'),(_0x11b79f,_0x5235b2,_0xcb138f)=>{_0xcb138f&&this[_0xe04e('0x0')]('focus',_0xa4d2c6);}),_0xa4d2c6[_0xe04e('0x20')]();const _0x201d93=this[_0xe04e('0x14')](_0xa4d2c6[_0xe04e('0x2')]['targetRect']);return super['add'](_0xa4d2c6,_0x201d93);}[_0xe04e('0x18')](_0x3863dd){if(!this[_0xe04e('0x15')](_0x3863dd))throw new _0xaa3ab7(_0xe04e('0xb'),null);this[_0xe04e('0x1c')](_0x3863dd[_0xe04e('0x2')]['focusTracker']),this['stopListening'](_0x3863dd[_0xe04e('0x19')]);for(const _0x587c04 of _0x3863dd[_0xe04e('0x19')])this[_0xe04e('0x21')]['remove'](_0x587c04);return this[_0xe04e('0x13')][_0xe04e('0x1e')](_0x3863dd[_0xe04e('0x2')]),this[_0xe04e('0x5')][_0xe04e('0x1e')](_0x3863dd[_0xe04e('0x9')]),super[_0xe04e('0x18')](_0x3863dd);}[_0xe04e('0x1')](_0x5ebfa5){return this[_0xe04e('0x5')][_0xe04e('0x12')](_0x5ebfa5);}[_0xe04e('0x4')](_0x423c58){return this['_viewToAnnotation'][_0xe04e('0x12')](_0x423c58);}[_0xe04e('0x22')](){super[_0xe04e('0x17')](),this['stopListening'](),this['_innerViewToAnnotation'][_0xe04e('0x17')](),this[_0xe04e('0x13')][_0xe04e('0x17')](),this[_0xe04e('0x21')]['destroy']();}['refreshPositioning'](){for(const _0x4b0c06 of this)_0x4b0c06[_0xe04e('0x20')]();this[_0xe04e('0xf')]();}[_0xe04e('0xf')](){const _0x204071=Array[_0xe04e('0xe')](this)[_0xe04e('0x16')]((_0x17510a,_0x39a16d)=>v(_0x17510a[_0xe04e('0x2')][_0xe04e('0x1a')],_0x39a16d[_0xe04e('0x2')][_0xe04e('0x1a')]));for(let _0x520d0b=_0x204071['length']-0x1;_0x520d0b>0x0;_0x520d0b--){const _0x353a44=_0x204071[_0x520d0b];_0x520d0b!==this[_0xe04e('0xd')](_0x353a44)&&(this['remove'](_0x353a44),this[_0xe04e('0x7')](_0x353a44));}}['_getOrderInContent'](_0xb2d1f2){let _0x114243=0x0;if(!_0xb2d1f2)return this[_0xe04e('0x1d')];for(const _0xbea4fc of this){const _0x57026c=_0xbea4fc[_0xe04e('0x2')][_0xe04e('0x1a')];if(_0x57026c){if(v(_0xb2d1f2,_0x57026c)<0x0)return _0x114243;_0x114243++;}}return _0x114243;}}export function bindAnnotationCollections({source:_0x5320d2,target:_0xc6a7c2,filter:_0x4dfe48}){for(const _0x25b9f1 of _0x5320d2)_0x4dfe48(_0x25b9f1)&&_0xc6a7c2[_0xe04e('0x7')](_0x25b9f1);_0xc6a7c2[_0xe04e('0x10')](_0x5320d2,_0xe04e('0x7'),(_0x5d529b,_0x5a94de)=>{_0x4dfe48(_0x5a94de)&&_0xc6a7c2[_0xe04e('0x7')](_0x5a94de);}),_0xc6a7c2['listenTo'](_0x5320d2,_0xe04e('0x18'),(_0x542d68,_0x1393ff)=>{_0xc6a7c2[_0xe04e('0x15')](_0x1393ff)&&_0xc6a7c2[_0xe04e('0x18')](_0x1393ff);});}function v(_0x347684,_0x3a99b7){if(null===_0x347684&&null===_0x3a99b7)return 0x0;if(null===_0x347684)return-0x1;if(null===_0x3a99b7)return 0x1;const _0x48d24f=_0x347684[_0xe04e('0x1b')]-_0x3a99b7[_0xe04e('0x1b')];return 0x0==_0x48d24f?_0x347684[_0xe04e('0x3')]-_0x3a99b7[_0xe04e('0x3')]:_0x48d24f;}
23
+ const _0x3fe3=['from','getByView','view','getByInnerView','annotationcollection-duplicated-item','_innerViewToAnnotation','isFocused','focusTracker','stopListening','add','annotationcollection-not-existing-item','fire','focus','_sort','targetRect','change:isFocused','clear','remove','has','delete','destroy','set','length','focusableElements','get','_viewToAnnotation','_getOrderInContent','listenTo','getIndex','updateTargetRect','_focusTracker','innerView','left','top','sort'];(function(_0x77fc86,_0x3fe357){const _0x575ee8=function(_0x9ac481){while(--_0x9ac481){_0x77fc86['push'](_0x77fc86['shift']());}};_0x575ee8(++_0x3fe357);}(_0x3fe3,0x83));const _0x575e=function(_0x77fc86,_0x3fe357){_0x77fc86=_0x77fc86-0x0;let _0x575ee8=_0x3fe3[_0x77fc86];return _0x575ee8;};import{CKEditorError as _0x413dc6,Collection as _0x20da9a,FocusTracker as _0x242223}from'ckeditor5/src/utils';export default class x extends _0x20da9a{constructor(_0x1a6264=[]){super(),this[_0x575e('0xe')]=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x242223(),this['_focusTracker']['on'](_0x575e('0x18'),(_0x5c57d5,_0x7c5cbc,_0x3452d9)=>{_0x3452d9||this[_0x575e('0x14')]('blur');});for(const _0x5dce02 of _0x1a6264)this['add'](_0x5dce02);}get[_0x575e('0xf')](){return this['_focusTracker']['isFocused'];}['add'](_0xe4aecb){if(this[_0x575e('0x1b')](_0xe4aecb))throw new _0x413dc6(_0x575e('0xd'),null);this[_0x575e('0xe')][_0x575e('0x1e')](_0xe4aecb[_0x575e('0x5')],_0xe4aecb),this['_viewToAnnotation']['set'](_0xe4aecb['view'],_0xe4aecb);for(const _0xb53497 of _0xe4aecb[_0x575e('0x20')])this[_0x575e('0x4')][_0x575e('0x12')](_0xb53497);this[_0x575e('0x1')](_0xe4aecb[_0x575e('0x20')],_0x575e('0x12'),(_0x5350cc,_0x3673c6)=>{this[_0x575e('0x4')][_0x575e('0x12')](_0x3673c6);}),this[_0x575e('0x1')](_0xe4aecb[_0x575e('0x20')],_0x575e('0x1a'),(_0x2e1c44,_0x52f966)=>{this[_0x575e('0x4')][_0x575e('0x1a')](_0x52f966);}),this[_0x575e('0x1')](_0xe4aecb['view'][_0x575e('0x10')],'change:isFocused',(_0x5a2026,_0x2c516b,_0xbb8256)=>{_0xbb8256&&this[_0x575e('0x14')](_0x575e('0x15'),_0xe4aecb);}),_0xe4aecb['updateTargetRect']();const _0x5a089a=this[_0x575e('0x0')](_0xe4aecb[_0x575e('0xb')]['targetRect']);return super['add'](_0xe4aecb,_0x5a089a);}['remove'](_0x3893c5){if(!this[_0x575e('0x1b')](_0x3893c5))throw new _0x413dc6(_0x575e('0x13'),null);this[_0x575e('0x11')](_0x3893c5['view']['focusTracker']),this[_0x575e('0x11')](_0x3893c5[_0x575e('0x20')]);for(const _0x414460 of _0x3893c5['focusableElements'])this[_0x575e('0x4')][_0x575e('0x1a')](_0x414460);return this[_0x575e('0x22')][_0x575e('0x1c')](_0x3893c5[_0x575e('0xb')]),this['_innerViewToAnnotation']['delete'](_0x3893c5['innerView']),super[_0x575e('0x1a')](_0x3893c5);}[_0x575e('0xc')](_0xd8007b){return this[_0x575e('0xe')][_0x575e('0x21')](_0xd8007b);}[_0x575e('0xa')](_0x1ea035){return this[_0x575e('0x22')][_0x575e('0x21')](_0x1ea035);}['destroy'](){super['clear'](),this[_0x575e('0x11')](),this[_0x575e('0xe')][_0x575e('0x19')](),this[_0x575e('0x22')][_0x575e('0x19')](),this[_0x575e('0x4')][_0x575e('0x1d')]();}['refreshPositioning'](){for(const _0x431bf0 of this)_0x431bf0[_0x575e('0x3')]();this['_sort']();}[_0x575e('0x16')](){const _0x2f83c0=Array[_0x575e('0x9')](this)[_0x575e('0x8')]((_0x20e222,_0x519771)=>v(_0x20e222[_0x575e('0xb')][_0x575e('0x17')],_0x519771[_0x575e('0xb')][_0x575e('0x17')]));for(let _0x257fb7=_0x2f83c0[_0x575e('0x1f')]-0x1;_0x257fb7>0x0;_0x257fb7--){const _0x2a36e5=_0x2f83c0[_0x257fb7];_0x257fb7!==this[_0x575e('0x2')](_0x2a36e5)&&(this[_0x575e('0x1a')](_0x2a36e5),this[_0x575e('0x12')](_0x2a36e5));}}[_0x575e('0x0')](_0x1efea3){let _0x57453b=0x0;if(!_0x1efea3)return this[_0x575e('0x1f')];for(const _0x5f54d0 of this){const _0xaed341=_0x5f54d0[_0x575e('0xb')][_0x575e('0x17')];if(_0xaed341){if(v(_0x1efea3,_0xaed341)<0x0)return _0x57453b;_0x57453b++;}}return _0x57453b;}}export function bindAnnotationCollections({source:_0x437e47,target:_0x1601bf,filter:_0x182738}){for(const _0x370d19 of _0x437e47)_0x182738(_0x370d19)&&_0x1601bf[_0x575e('0x12')](_0x370d19);_0x1601bf[_0x575e('0x1')](_0x437e47,_0x575e('0x12'),(_0x4ea21b,_0x22c5cd)=>{_0x182738(_0x22c5cd)&&_0x1601bf[_0x575e('0x12')](_0x22c5cd);}),_0x1601bf[_0x575e('0x1')](_0x437e47,_0x575e('0x1a'),(_0x568a1f,_0x3c13d5)=>{_0x1601bf[_0x575e('0x1b')](_0x3c13d5)&&_0x1601bf[_0x575e('0x1a')](_0x3c13d5);});}function v(_0x3301f9,_0x24ee94){if(null===_0x3301f9&&null===_0x24ee94)return 0x0;if(null===_0x3301f9)return-0x1;if(null===_0x24ee94)return 0x1;const _0xb609a5=_0x3301f9[_0x575e('0x7')]-_0x24ee94['top'];return 0x0==_0xb609a5?_0x3301f9[_0x575e('0x6')]-_0x24ee94['left']:_0xb609a5;}
@@ -1,13 +1,17 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module comments/annotations/annotations
3
7
  * @publicApi
4
8
  */
5
- import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core.js';
6
- import type { View } from 'ckeditor5/src/ui.js';
7
- import { type Locale } from 'ckeditor5/src/utils.js';
8
- import Annotation, { type AnnotationTarget } from './annotation.js';
9
- import AnnotationCollection from './annotationcollection.js';
10
- import AnnotationView, { type AnnotationMainView } from './view/annotationview.js';
9
+ import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core';
10
+ import type { View } from 'ckeditor5/src/ui';
11
+ import { type Locale } from 'ckeditor5/src/utils';
12
+ import Annotation, { type AnnotationTarget } from './annotation';
13
+ import AnnotationCollection from './annotationcollection';
14
+ import AnnotationView, { type AnnotationMainView } from './view/annotationview';
11
15
  /**
12
16
  * Stores and manages all {@link module:comments/annotations/annotation~Annotation annotations} created
13
17
  * for the entire {@link module:core/context~Context} or {@link module:core/editor/editor~Editor}.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5a99=['element','focusTracker','listenTo','Annotations','deactivateAll','_addActiveAnnotation','collection','getByInnerView','add','change:isVisible','stopListening','_bindAnnotationsToVisibleAnnotations','refreshVisibility','delete','pluginName','refreshPositioning','has','view','fire','destroy','_activateAnnotation','_visibleAnnotations','remove','activeAnnotations','isVisible','source'];(function(_0x59d138,_0x5a9928){const _0x5a84f9=function(_0x18fa55){while(--_0x18fa55){_0x59d138['push'](_0x59d138['shift']());}};_0x5a84f9(++_0x5a9928);}(_0x5a99,0x1dd));const _0x5a84=function(_0x59d138,_0x5a9928){_0x59d138=_0x59d138-0x0;let _0x5a84f9=_0x5a99[_0x59d138];return _0x5a84f9;};import{ContextPlugin as _0x14d2ba}from'ckeditor5/src/core.js';import _0x3d0bdf from'./annotation.js';import _0x18883b from'./annotationcollection.js';import _0x28232b from'./view/annotationview.js';export default class b extends _0x14d2ba{static get[_0x5a84('0x5')](){return _0x5a84('0x14');}constructor(_0x47ddb4){super(_0x47ddb4),this[_0x5a84('0x17')]=new _0x18883b(),this['_visibleAnnotations']=new _0x18883b(),this['set']('activeAnnotations',new Set()),this[_0x5a84('0x2')]();}[_0x5a84('0x19')](_0x5b217c){this[_0x5a84('0x17')][_0x5a84('0x19')](_0x5b217c);}[_0x5a84('0xd')](_0x502335){this[_0x5a84('0x17')][_0x5a84('0xd')](_0x502335),_0x502335[_0x5a84('0xa')]();}[_0x5a84('0x3')](){for(const _0x37531d of this['collection'])_0x37531d[_0x5a84('0x3')]();}[_0x5a84('0x6')](){this['_visibleAnnotations'][_0x5a84('0x6')]();}[_0x5a84('0x18')](_0x4a6554){return this[_0x5a84('0x17')]['getByInnerView'](_0x4a6554);}[_0x5a84('0x15')](){this['fire']('_deactivateAllAnnotations');}[_0x5a84('0xa')](){for(const _0x34665c of this[_0x5a84('0x17')])_0x34665c[_0x5a84('0xa')]();this[_0x5a84('0xc')][_0x5a84('0xa')](),this[_0x5a84('0x17')][_0x5a84('0xa')](),super[_0x5a84('0xa')]();}['activate'](_0x48e6c0){this[_0x5a84('0x9')](_0x5a84('0xb'),_0x48e6c0);}['createAnnotation'](_0xa2492){return new _0x3d0bdf(_0xa2492);}['createAnnotationView'](_0x35c266,_0x42f684){return new _0x28232b(_0x35c266,_0x42f684);}[_0x5a84('0x16')](_0x1c528d){const _0x1c9701=new Set(this[_0x5a84('0xe')]);_0x1c9701[_0x5a84('0x19')](_0x1c528d),this[_0x5a84('0xe')]=_0x1c9701;}['_removeActiveAnnotation'](_0x5953b7){const _0x3f02df=new Set(this[_0x5a84('0xe')]);_0x3f02df[_0x5a84('0x4')](_0x5953b7),this['activeAnnotations']=_0x3f02df;}[_0x5a84('0x2')](){const _0x37781a=this[_0x5a84('0x17')],_0x1c5a41=this['_visibleAnnotations'];function _0x50a938(_0x4228e2){const _0x371cb6=_0x4228e2[_0x5a84('0x10')];_0x371cb6[_0x5a84('0xf')]&&!_0x1c5a41['has'](_0x371cb6)?_0x1c5a41[_0x5a84('0x19')](_0x371cb6):!_0x371cb6['isVisible']&&_0x1c5a41[_0x5a84('0x7')](_0x371cb6)&&_0x1c5a41[_0x5a84('0xd')](_0x371cb6),_0x371cb6[_0x5a84('0x8')][_0x5a84('0x12')][_0x5a84('0xd')](_0x371cb6['view'][_0x5a84('0x11')]),_0x371cb6[_0x5a84('0x8')]['focusTracker'][_0x5a84('0x19')](_0x371cb6['view'][_0x5a84('0x11')]);}this[_0x5a84('0x13')](_0x37781a,_0x5a84('0x19'),(_0x1689fc,_0x4a0dab)=>{_0x4a0dab[_0x5a84('0xf')]&&_0x1c5a41['add'](_0x4a0dab),this['listenTo'](_0x4a0dab,_0x5a84('0x0'),_0x50a938);}),this['listenTo'](_0x37781a,_0x5a84('0xd'),(_0x410f44,_0x3d9224)=>{_0x1c5a41[_0x5a84('0x7')](_0x3d9224)&&_0x1c5a41[_0x5a84('0xd')](_0x3d9224),this[_0x5a84('0x1')](_0x3d9224,_0x5a84('0x0'),_0x50a938);});}}
23
+ const _0x5af9=['change:isVisible','has','refreshPositioning','source','refreshVisibility','createAnnotationView','delete','activate','collection','isVisible','activeAnnotations','createAnnotation','_activateAnnotation','destroy','view','getByInnerView','Annotations','fire','deactivateAll','_addActiveAnnotation','set','_deactivateAllAnnotations','add','remove','_removeActiveAnnotation','element','focusTracker','listenTo','_visibleAnnotations','_bindAnnotationsToVisibleAnnotations'];(function(_0x12f9db,_0x5af9f5){const _0x5219ee=function(_0x3b80cf){while(--_0x3b80cf){_0x12f9db['push'](_0x12f9db['shift']());}};_0x5219ee(++_0x5af9f5);}(_0x5af9,0xb3));const _0x5219=function(_0x12f9db,_0x5af9f5){_0x12f9db=_0x12f9db-0x0;let _0x5219ee=_0x5af9[_0x12f9db];return _0x5219ee;};import{ContextPlugin as _0x25ada4}from'ckeditor5/src/core';import _0x9cfe95 from'./annotation';import _0x3ed50e from'./annotationcollection';import _0x22f3e5 from'./view/annotationview';export default class b extends _0x25ada4{static get['pluginName'](){return _0x5219('0x11');}constructor(_0x2df73){super(_0x2df73),this['collection']=new _0x3ed50e(),this[_0x5219('0x1d')]=new _0x3ed50e(),this[_0x5219('0x15')]('activeAnnotations',new Set()),this[_0x5219('0x0')]();}[_0x5219('0x17')](_0x499b01){this[_0x5219('0x9')][_0x5219('0x17')](_0x499b01);}[_0x5219('0x18')](_0x51e582){this[_0x5219('0x9')][_0x5219('0x18')](_0x51e582),_0x51e582[_0x5219('0xe')]();}[_0x5219('0x5')](){for(const _0x19f1cb of this[_0x5219('0x9')])_0x19f1cb['refreshVisibility']();}[_0x5219('0x3')](){this['_visibleAnnotations'][_0x5219('0x3')]();}[_0x5219('0x10')](_0x5a0987){return this[_0x5219('0x9')][_0x5219('0x10')](_0x5a0987);}[_0x5219('0x13')](){this[_0x5219('0x12')](_0x5219('0x16'));}[_0x5219('0xe')](){for(const _0x3ec537 of this[_0x5219('0x9')])_0x3ec537[_0x5219('0xe')]();this['_visibleAnnotations'][_0x5219('0xe')](),this['collection'][_0x5219('0xe')](),super[_0x5219('0xe')]();}[_0x5219('0x8')](_0x24d0dd){this[_0x5219('0x12')](_0x5219('0xd'),_0x24d0dd);}[_0x5219('0xc')](_0x18e8ff){return new _0x9cfe95(_0x18e8ff);}[_0x5219('0x6')](_0x1cdc1d,_0x47073c){return new _0x22f3e5(_0x1cdc1d,_0x47073c);}[_0x5219('0x14')](_0x1b3f05){const _0xb9cf19=new Set(this[_0x5219('0xb')]);_0xb9cf19[_0x5219('0x17')](_0x1b3f05),this[_0x5219('0xb')]=_0xb9cf19;}[_0x5219('0x19')](_0x516289){const _0x71394f=new Set(this[_0x5219('0xb')]);_0x71394f[_0x5219('0x7')](_0x516289),this['activeAnnotations']=_0x71394f;}[_0x5219('0x0')](){const _0x535ddf=this[_0x5219('0x9')],_0x36582a=this[_0x5219('0x1d')];function _0x3a657e(_0x3b4f65){const _0x17f4df=_0x3b4f65[_0x5219('0x4')];_0x17f4df['isVisible']&&!_0x36582a['has'](_0x17f4df)?_0x36582a['add'](_0x17f4df):!_0x17f4df['isVisible']&&_0x36582a[_0x5219('0x2')](_0x17f4df)&&_0x36582a[_0x5219('0x18')](_0x17f4df),_0x17f4df[_0x5219('0xf')][_0x5219('0x1b')][_0x5219('0x18')](_0x17f4df[_0x5219('0xf')][_0x5219('0x1a')]),_0x17f4df[_0x5219('0xf')][_0x5219('0x1b')][_0x5219('0x17')](_0x17f4df[_0x5219('0xf')]['element']);}this[_0x5219('0x1c')](_0x535ddf,_0x5219('0x17'),(_0x3ae8c9,_0x571df8)=>{_0x571df8[_0x5219('0xa')]&&_0x36582a[_0x5219('0x17')](_0x571df8),this[_0x5219('0x1c')](_0x571df8,_0x5219('0x1'),_0x3a657e);}),this[_0x5219('0x1c')](_0x535ddf,_0x5219('0x18'),(_0x42a2ae,_0x4577b9)=>{_0x36582a[_0x5219('0x2')](_0x4577b9)&&_0x36582a[_0x5219('0x18')](_0x4577b9),this['stopListening'](_0x4577b9,_0x5219('0x1'),_0x3a657e);});}}
@@ -1,12 +1,16 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module comments/annotations/annotationsuis
3
7
  * @publicApi
4
8
  */
5
- import { ContextPlugin, type Plugin, type Editor, type Context } from 'ckeditor5/src/core.js';
6
- import { type Emitter } from 'ckeditor5/src/utils.js';
7
- import AnnotationCollection from './annotationcollection.js';
8
- import Annotations from './annotations.js';
9
- import type Annotation from './annotation.js';
9
+ import { ContextPlugin, type Plugin, type Editor, type Context } from 'ckeditor5/src/core';
10
+ import { type Emitter } from 'ckeditor5/src/utils';
11
+ import AnnotationCollection from './annotationcollection';
12
+ import Annotations from './annotations';
13
+ import type Annotation from './annotation';
10
14
  /**
11
15
  * A repository of annotations UIs.
12
16
  *