@ckeditor/ckeditor5-comments 38.2.0-alpha.1 → 39.0.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 (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.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/)",
@@ -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.0",
47
+ "ckeditor5-collaboration": "39.0.0",
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 _0x317b=['isVisible','every','mainView','element','_assertCorrectTarget','focusTracker','offsetParent','getClientRects','targetRect','focusableElements','view','remove','item','isArray','_type','length','render','innerView','_getNormalizedTarget','type','isActive','stopListening','_id','destroy','_target','annotation-invalid-target','clear','function','updateTargetRect','filter','refreshVisibility','target'];(function(_0x54fee5,_0x317bd7){const _0x518130=function(_0x51639c){while(--_0x51639c){_0x54fee5['push'](_0x54fee5['shift']());}};_0x518130(++_0x317bd7);}(_0x317b,0x1c9));const _0x5181=function(_0x54fee5,_0x317bd7){_0x54fee5=_0x54fee5-0x0;let _0x518130=_0x317b[_0x54fee5];return _0x518130;};import{CKEditorError as _0x5e5a3c,Rect as _0x3f9836,Collection as _0x41dd5c,ObservableMixin as _0x5958a7}from'ckeditor5/src/utils';export default class d extends _0x5958a7(){constructor({view:_0x3170ec,target:_0x119036,type:_0x34812b,isVisible:_0x2356ba=!0x0}){super(),this['view']=_0x3170ec,this[_0x5181('0x1')][_0x5181('0x1a')]||this[_0x5181('0x1')][_0x5181('0x7')](),this['_type']=_0x34812b,this[_0x5181('0xf')]=_0x119036,d[_0x5181('0x1b')](this[_0x5181('0x9')]()),this[_0x5181('0x0')]=new _0x41dd5c([this['view'][_0x5181('0x1a')]],{'idProperty':_0x5181('0xd')}),this[_0x5181('0x0')]['on']('add',(_0xf4383b,_0x329c2f)=>{this[_0x5181('0x1')][_0x5181('0x1c')]['add'](_0x329c2f);}),this[_0x5181('0x0')]['on'](_0x5181('0x2'),(_0x5a1799,_0x4539fc)=>{this['view'][_0x5181('0x1c')]['remove'](_0x4539fc);}),this['set']('isVisible',_0x2356ba);}get[_0x5181('0xa')](){return _0x5181('0x12')==typeof this[_0x5181('0x5')]?this[_0x5181('0x5')]():this[_0x5181('0x5')];}get[_0x5181('0x8')](){return this[_0x5181('0x1')][_0x5181('0x19')];}get[_0x5181('0x16')](){const _0x1b3a21=this[_0x5181('0x9')]();return d['_assertCorrectTarget'](_0x1b3a21),_0x1b3a21;}get[_0x5181('0x1f')](){const _0x59e800=this[_0x5181('0x16')];if(null===_0x59e800)return null;if(_0x59e800 instanceof _0x3f9836)return _0x59e800;const _0x27215a=_0x59e800[_0x5181('0x14')](_0x477085=>function(_0x1dbbbb){const _0x5997c1=_0x1dbbbb[_0x5181('0x1d')];if(_0x5997c1)return!0x0;const _0x1a7322=_0x1dbbbb[_0x5181('0x1e')]()[_0x5181('0x3')](0x0);return!!_0x1a7322;}(_0x477085));return 0x0===_0x27215a[_0x5181('0x6')]?null:new _0x3f9836(_0x27215a[0x0]['getClientRects']()[_0x5181('0x3')](0x0));}get[_0x5181('0xb')](){return this[_0x5181('0x1')]['isActive'];}set['isActive'](_0x5c07eb){this[_0x5181('0x1')]['isActive']=_0x5c07eb,this[_0x5181('0x1')][_0x5181('0x19')]['isActive']=_0x5c07eb;}[_0x5181('0x13')](){this[_0x5181('0x1')][_0x5181('0x1f')]=this[_0x5181('0x1f')];}[_0x5181('0xe')](){this[_0x5181('0x0')][_0x5181('0xc')](),this['focusableElements'][_0x5181('0x11')](),this[_0x5181('0xc')]();}[_0x5181('0x15')](){this[_0x5181('0x17')]=!!this[_0x5181('0x1f')];}static[_0x5181('0x1b')](_0x22d073){if(!(null===_0x22d073||_0x22d073 instanceof _0x3f9836||Array[_0x5181('0x4')](_0x22d073)&&_0x22d073[_0x5181('0x18')](_0xe413c4=>y(_0xe413c4))))throw new _0x5e5a3c(_0x5181('0x10'),null,{'target':_0x22d073});}['_getNormalizedTarget'](){const _0x1c5120=_0x5181('0x12')==typeof this[_0x5181('0xf')]?this[_0x5181('0xf')]():this[_0x5181('0xf')];return y(_0x1c5120)?[_0x1c5120]:_0x1c5120;}}function y(_0x322a87){return null!==_0x322a87&&'object'==typeof _0x322a87&&'nodeType'in _0x322a87&&0x1===_0x322a87['nodeType'];}
@@ -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 _0x5b23=['set','remove','getByView','annotationcollection-duplicated-item','stopListening','from','view','fire','targetRect','focus','blur','_sort','_viewToAnnotation','updateTargetRect','_innerViewToAnnotation','add','get','isFocused','innerView','getByInnerView','focusTracker','destroy','left','sort','listenTo','focusableElements','refreshPositioning','change:isFocused','_focusTracker','clear','annotationcollection-not-existing-item','length','delete','has','top','_getOrderInContent'];(function(_0x3642a9,_0x5b23f){const _0x58a8c7=function(_0x43496e){while(--_0x43496e){_0x3642a9['push'](_0x3642a9['shift']());}};_0x58a8c7(++_0x5b23f);}(_0x5b23,0x148));const _0x58a8=function(_0x3642a9,_0x5b23f){_0x3642a9=_0x3642a9-0x0;let _0x58a8c7=_0x5b23[_0x3642a9];return _0x58a8c7;};import{CKEditorError as _0x10c59a,Collection as _0x46c175,FocusTracker as _0xbe9477}from'ckeditor5/src/utils';export default class x extends _0x46c175{constructor(_0x488207=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this[_0x58a8('0x18')]=new _0xbe9477(),this[_0x58a8('0x18')]['on']('change:isFocused',(_0x419948,_0x3e6836,_0xfdf3d0)=>{_0xfdf3d0||this[_0x58a8('0x3')](_0x58a8('0x6'));});for(const _0x110af2 of _0x488207)this[_0x58a8('0xb')](_0x110af2);}get['isFocused'](){return this[_0x58a8('0x18')][_0x58a8('0xd')];}['add'](_0x5e5f79){if(this[_0x58a8('0x1d')](_0x5e5f79))throw new _0x10c59a(_0x58a8('0x23'),null);this['_innerViewToAnnotation']['set'](_0x5e5f79[_0x58a8('0xe')],_0x5e5f79),this[_0x58a8('0x8')][_0x58a8('0x20')](_0x5e5f79[_0x58a8('0x2')],_0x5e5f79);for(const _0x2c4bae of _0x5e5f79['focusableElements'])this['_focusTracker'][_0x58a8('0xb')](_0x2c4bae);this[_0x58a8('0x14')](_0x5e5f79[_0x58a8('0x15')],_0x58a8('0xb'),(_0x578a43,_0x3e9d9d)=>{this[_0x58a8('0x18')][_0x58a8('0xb')](_0x3e9d9d);}),this[_0x58a8('0x14')](_0x5e5f79[_0x58a8('0x15')],_0x58a8('0x21'),(_0x5ea45e,_0x380f08)=>{this['_focusTracker'][_0x58a8('0x21')](_0x380f08);}),this[_0x58a8('0x14')](_0x5e5f79[_0x58a8('0x2')][_0x58a8('0x10')],_0x58a8('0x17'),(_0x2f0851,_0x4f6c24,_0x51fee5)=>{_0x51fee5&&this['fire'](_0x58a8('0x5'),_0x5e5f79);}),_0x5e5f79['updateTargetRect']();const _0xe1477a=this['_getOrderInContent'](_0x5e5f79[_0x58a8('0x2')][_0x58a8('0x4')]);return super['add'](_0x5e5f79,_0xe1477a);}['remove'](_0x18a4d6){if(!this['has'](_0x18a4d6))throw new _0x10c59a(_0x58a8('0x1a'),null);this[_0x58a8('0x0')](_0x18a4d6['view'][_0x58a8('0x10')]),this['stopListening'](_0x18a4d6[_0x58a8('0x15')]);for(const _0x15445b of _0x18a4d6[_0x58a8('0x15')])this['_focusTracker'][_0x58a8('0x21')](_0x15445b);return this['_viewToAnnotation'][_0x58a8('0x1c')](_0x18a4d6[_0x58a8('0x2')]),this[_0x58a8('0xa')][_0x58a8('0x1c')](_0x18a4d6[_0x58a8('0xe')]),super[_0x58a8('0x21')](_0x18a4d6);}[_0x58a8('0xf')](_0x1ca694){return this[_0x58a8('0xa')][_0x58a8('0xc')](_0x1ca694);}[_0x58a8('0x22')](_0x338039){return this[_0x58a8('0x8')]['get'](_0x338039);}[_0x58a8('0x11')](){super[_0x58a8('0x19')](),this[_0x58a8('0x0')](),this['_innerViewToAnnotation'][_0x58a8('0x19')](),this[_0x58a8('0x8')][_0x58a8('0x19')](),this['_focusTracker'][_0x58a8('0x11')]();}[_0x58a8('0x16')](){for(const _0x51151b of this)_0x51151b[_0x58a8('0x9')]();this[_0x58a8('0x7')]();}[_0x58a8('0x7')](){const _0x3e9438=Array[_0x58a8('0x1')](this)[_0x58a8('0x13')]((_0x30e1cd,_0x19b6b7)=>v(_0x30e1cd[_0x58a8('0x2')][_0x58a8('0x4')],_0x19b6b7['view']['targetRect']));for(let _0x5a8e8a=_0x3e9438[_0x58a8('0x1b')]-0x1;_0x5a8e8a>0x0;_0x5a8e8a--){const _0x551d69=_0x3e9438[_0x5a8e8a];_0x5a8e8a!==this['getIndex'](_0x551d69)&&(this['remove'](_0x551d69),this[_0x58a8('0xb')](_0x551d69));}}[_0x58a8('0x1f')](_0x5d8d5e){let _0x2e3b32=0x0;if(!_0x5d8d5e)return this['length'];for(const _0x38b9f2 of this){const _0x371e2f=_0x38b9f2['view'][_0x58a8('0x4')];if(_0x371e2f){if(v(_0x5d8d5e,_0x371e2f)<0x0)return _0x2e3b32;_0x2e3b32++;}}return _0x2e3b32;}}export function bindAnnotationCollections({source:_0x2643f1,target:_0x5964db,filter:_0x4c3091}){for(const _0x4314ca of _0x2643f1)_0x4c3091(_0x4314ca)&&_0x5964db[_0x58a8('0xb')](_0x4314ca);_0x5964db['listenTo'](_0x2643f1,_0x58a8('0xb'),(_0x110954,_0x2793ab)=>{_0x4c3091(_0x2793ab)&&_0x5964db[_0x58a8('0xb')](_0x2793ab);}),_0x5964db['listenTo'](_0x2643f1,_0x58a8('0x21'),(_0x358075,_0x44e3ce)=>{_0x5964db[_0x58a8('0x1d')](_0x44e3ce)&&_0x5964db['remove'](_0x44e3ce);});}function v(_0x5b10b8,_0x453262){if(null===_0x5b10b8&&null===_0x453262)return 0x0;if(null===_0x5b10b8)return-0x1;if(null===_0x453262)return 0x1;const _0xb22f82=_0x5b10b8['top']-_0x453262[_0x58a8('0x1e')];return 0x0==_0xb22f82?_0x5b10b8[_0x58a8('0x12')]-_0x453262[_0x58a8('0x12')]:_0xb22f82;}
@@ -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 _0x1c8a=['remove','_deactivateAllAnnotations','pluginName','add','isVisible','fire','deactivateAll','listenTo','source','_bindAnnotationsToVisibleAnnotations','collection','destroy','change:isVisible','getByInnerView','view','_removeActiveAnnotation','element','_visibleAnnotations','refreshVisibility','_addActiveAnnotation','createAnnotationView','focusTracker','has','activeAnnotations','refreshPositioning','stopListening','Annotations'];(function(_0x301f86,_0x1c8aa0){const _0x4365b3=function(_0x53cb69){while(--_0x53cb69){_0x301f86['push'](_0x301f86['shift']());}};_0x4365b3(++_0x1c8aa0);}(_0x1c8a,0x12e));const _0x4365=function(_0x301f86,_0x1c8aa0){_0x301f86=_0x301f86-0x0;let _0x4365b3=_0x1c8a[_0x301f86];return _0x4365b3;};import{ContextPlugin as _0x44deee}from'ckeditor5/src/core';import _0x31dcba from'./annotation';import _0x3fff55 from'./annotationcollection';import _0x4ba6af from'./view/annotationview';export default class b extends _0x44deee{static get[_0x4365('0x18')](){return _0x4365('0x15');}constructor(_0x29dc26){super(_0x29dc26),this[_0x4365('0x5')]=new _0x3fff55(),this[_0x4365('0xc')]=new _0x3fff55(),this['set']('activeAnnotations',new Set()),this[_0x4365('0x4')]();}[_0x4365('0x19')](_0x5d6db0){this['collection'][_0x4365('0x19')](_0x5d6db0);}[_0x4365('0x16')](_0x335648){this[_0x4365('0x5')]['remove'](_0x335648),_0x335648['destroy']();}['refreshVisibility'](){for(const _0x20dfc1 of this['collection'])_0x20dfc1[_0x4365('0xd')]();}[_0x4365('0x13')](){this[_0x4365('0xc')][_0x4365('0x13')]();}[_0x4365('0x8')](_0x4eac8a){return this[_0x4365('0x5')]['getByInnerView'](_0x4eac8a);}[_0x4365('0x1')](){this['fire'](_0x4365('0x17'));}['destroy'](){for(const _0x298df4 of this[_0x4365('0x5')])_0x298df4[_0x4365('0x6')]();this[_0x4365('0xc')][_0x4365('0x6')](),this[_0x4365('0x5')]['destroy'](),super['destroy']();}['activate'](_0x295c30){this[_0x4365('0x0')]('_activateAnnotation',_0x295c30);}['createAnnotation'](_0x1b66ec){return new _0x31dcba(_0x1b66ec);}[_0x4365('0xf')](_0x412400,_0x2d3f1a){return new _0x4ba6af(_0x412400,_0x2d3f1a);}[_0x4365('0xe')](_0x496001){const _0x51f5a6=new Set(this[_0x4365('0x12')]);_0x51f5a6[_0x4365('0x19')](_0x496001),this[_0x4365('0x12')]=_0x51f5a6;}[_0x4365('0xa')](_0x48c1e7){const _0x4eeaf6=new Set(this['activeAnnotations']);_0x4eeaf6['delete'](_0x48c1e7),this[_0x4365('0x12')]=_0x4eeaf6;}[_0x4365('0x4')](){const _0x31e7f4=this['collection'],_0x27d796=this[_0x4365('0xc')];function _0x3dd518(_0xfb746d){const _0x4c7d08=_0xfb746d[_0x4365('0x3')];_0x4c7d08[_0x4365('0x1a')]&&!_0x27d796[_0x4365('0x11')](_0x4c7d08)?_0x27d796['add'](_0x4c7d08):!_0x4c7d08[_0x4365('0x1a')]&&_0x27d796[_0x4365('0x11')](_0x4c7d08)&&_0x27d796[_0x4365('0x16')](_0x4c7d08),_0x4c7d08[_0x4365('0x9')][_0x4365('0x10')]['remove'](_0x4c7d08[_0x4365('0x9')][_0x4365('0xb')]),_0x4c7d08[_0x4365('0x9')]['focusTracker'][_0x4365('0x19')](_0x4c7d08[_0x4365('0x9')]['element']);}this[_0x4365('0x2')](_0x31e7f4,_0x4365('0x19'),(_0x13a5e3,_0x52a530)=>{_0x52a530['isVisible']&&_0x27d796[_0x4365('0x19')](_0x52a530),this['listenTo'](_0x52a530,_0x4365('0x7'),_0x3dd518);}),this[_0x4365('0x2')](_0x31e7f4,_0x4365('0x16'),(_0xfccdc2,_0x386f9e)=>{_0x27d796[_0x4365('0x11')](_0x386f9e)&&_0x27d796['remove'](_0x386f9e),this[_0x4365('0x14')](_0x386f9e,_0x4365('0x7'),_0x3dd518);});}}
@@ -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
  *