@ckeditor/ckeditor5-comments 40.2.0 → 41.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 (157) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +1 -1
  3. package/build/comments.js +2 -2
  4. package/lang/translations/af.po +1 -1
  5. package/lang/translations/ar.po +1 -1
  6. package/lang/translations/bg.po +1 -1
  7. package/lang/translations/bn.po +1 -1
  8. package/lang/translations/bs.po +1 -1
  9. package/lang/translations/ca.po +1 -1
  10. package/lang/translations/cs.po +1 -1
  11. package/lang/translations/da.po +1 -1
  12. package/lang/translations/de-ch.po +1 -1
  13. package/lang/translations/de.po +1 -1
  14. package/lang/translations/el.po +1 -1
  15. package/lang/translations/en-au.po +1 -1
  16. package/lang/translations/en.po +1 -1
  17. package/lang/translations/es-co.po +1 -1
  18. package/lang/translations/es.po +1 -1
  19. package/lang/translations/et.po +1 -1
  20. package/lang/translations/fa.po +1 -1
  21. package/lang/translations/fi.po +1 -1
  22. package/lang/translations/fr.po +1 -1
  23. package/lang/translations/gl.po +1 -1
  24. package/lang/translations/he.po +1 -1
  25. package/lang/translations/hi.po +1 -1
  26. package/lang/translations/hr.po +1 -1
  27. package/lang/translations/hu.po +1 -1
  28. package/lang/translations/id.po +1 -1
  29. package/lang/translations/it.po +1 -1
  30. package/lang/translations/ja.po +1 -1
  31. package/lang/translations/jv.po +1 -1
  32. package/lang/translations/ko.po +1 -1
  33. package/lang/translations/lt.po +1 -1
  34. package/lang/translations/lv.po +1 -1
  35. package/lang/translations/ms.po +1 -1
  36. package/lang/translations/nl.po +1 -1
  37. package/lang/translations/no.po +1 -1
  38. package/lang/translations/pl.po +1 -1
  39. package/lang/translations/pt-br.po +1 -1
  40. package/lang/translations/pt.po +1 -1
  41. package/lang/translations/ro.po +1 -1
  42. package/lang/translations/ru.po +1 -1
  43. package/lang/translations/sk.po +1 -1
  44. package/lang/translations/sq.po +1 -1
  45. package/lang/translations/sr-latn.po +1 -1
  46. package/lang/translations/sr.po +1 -1
  47. package/lang/translations/sv.po +1 -1
  48. package/lang/translations/th.po +1 -1
  49. package/lang/translations/tk.po +1 -1
  50. package/lang/translations/tr.po +1 -1
  51. package/lang/translations/tt.po +1 -1
  52. package/lang/translations/ug.po +1 -1
  53. package/lang/translations/uk.po +1 -1
  54. package/lang/translations/ur.po +1 -1
  55. package/lang/translations/vi.po +1 -1
  56. package/lang/translations/zh-cn.po +1 -1
  57. package/lang/translations/zh.po +1 -1
  58. package/package.json +4 -3
  59. package/src/annotations/annotation.d.ts +7 -7
  60. package/src/annotations/annotation.js +2 -2
  61. package/src/annotations/annotationcollection.d.ts +4 -4
  62. package/src/annotations/annotationcollection.js +2 -2
  63. package/src/annotations/annotations.d.ts +7 -7
  64. package/src/annotations/annotations.js +2 -2
  65. package/src/annotations/annotationsuis.d.ts +6 -6
  66. package/src/annotations/annotationsuis.js +2 -2
  67. package/src/annotations/editorannotations.d.ts +5 -5
  68. package/src/annotations/editorannotations.js +2 -2
  69. package/src/annotations/inlineannotations.d.ts +7 -7
  70. package/src/annotations/inlineannotations.js +2 -2
  71. package/src/annotations/narrowsidebar.d.ts +7 -7
  72. package/src/annotations/narrowsidebar.js +2 -2
  73. package/src/annotations/sidebar.d.ts +6 -6
  74. package/src/annotations/sidebar.js +2 -2
  75. package/src/annotations/view/annotationcounterbuttonview.d.ts +3 -3
  76. package/src/annotations/view/annotationcounterbuttonview.js +2 -2
  77. package/src/annotations/view/annotationview.d.ts +3 -3
  78. package/src/annotations/view/annotationview.js +2 -2
  79. package/src/annotations/view/sidebaritemview.d.ts +3 -3
  80. package/src/annotations/view/sidebaritemview.js +2 -2
  81. package/src/annotations/view/sidebarview.d.ts +3 -3
  82. package/src/annotations/view/sidebarview.js +2 -2
  83. package/src/annotations/widesidebar.d.ts +6 -6
  84. package/src/annotations/widesidebar.js +2 -2
  85. package/src/augmentation.d.ts +2 -2
  86. package/src/augmentation.js +1 -1
  87. package/src/comments/addcommentthreadcommand.d.ts +2 -2
  88. package/src/comments/addcommentthreadcommand.js +2 -2
  89. package/src/comments/commentsarchive.d.ts +5 -5
  90. package/src/comments/commentsarchive.js +2 -2
  91. package/src/comments/commentsarchiveui.d.ts +6 -6
  92. package/src/comments/commentsarchiveui.js +2 -2
  93. package/src/comments/commentsediting.d.ts +7 -7
  94. package/src/comments/commentsediting.js +2 -2
  95. package/src/comments/commentsrepository.d.ts +12 -12
  96. package/src/comments/commentsrepository.js +2 -2
  97. package/src/comments/commentsui.d.ts +6 -6
  98. package/src/comments/commentsui.js +2 -2
  99. package/src/comments/integrations/commentsrestrictededitingmode.d.ts +2 -2
  100. package/src/comments/integrations/commentsrestrictededitingmode.js +2 -2
  101. package/src/comments/integrations/importword.d.ts +2 -2
  102. package/src/comments/integrations/importword.js +2 -2
  103. package/src/comments/ui/commenteditor/commenteditor.d.ts +5 -5
  104. package/src/comments/ui/commenteditor/commenteditor.js +2 -2
  105. package/src/comments/ui/commenteditor/commenteditorui.d.ts +4 -4
  106. package/src/comments/ui/commenteditor/commenteditorui.js +2 -2
  107. package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +5 -5
  108. package/src/comments/ui/commenteditor/commenteditoruiview.js +2 -2
  109. package/src/comments/ui/commentthreadcontroller.d.ts +5 -5
  110. package/src/comments/ui/commentthreadcontroller.js +2 -2
  111. package/src/comments/ui/view/basecommentthreadview.d.ts +9 -9
  112. package/src/comments/ui/view/basecommentthreadview.js +2 -2
  113. package/src/comments/ui/view/basecommentview.d.ts +5 -5
  114. package/src/comments/ui/view/basecommentview.js +2 -2
  115. package/src/comments/ui/view/collapsedcommentsview.d.ts +3 -3
  116. package/src/comments/ui/view/collapsedcommentsview.js +2 -2
  117. package/src/comments/ui/view/commentcontentview.d.ts +3 -3
  118. package/src/comments/ui/view/commentcontentview.js +2 -2
  119. package/src/comments/ui/view/commentinputview.d.ts +5 -5
  120. package/src/comments/ui/view/commentinputview.js +2 -2
  121. package/src/comments/ui/view/commentsarchiveview.d.ts +4 -4
  122. package/src/comments/ui/view/commentsarchiveview.js +2 -2
  123. package/src/comments/ui/view/commentslistview.d.ts +6 -6
  124. package/src/comments/ui/view/commentslistview.js +2 -2
  125. package/src/comments/ui/view/commentthreadheaderview.d.ts +4 -4
  126. package/src/comments/ui/view/commentthreadheaderview.js +2 -2
  127. package/src/comments/ui/view/commentthreadinputview.d.ts +6 -6
  128. package/src/comments/ui/view/commentthreadinputview.js +2 -2
  129. package/src/comments/ui/view/commentthreadview.d.ts +8 -8
  130. package/src/comments/ui/view/commentthreadview.js +2 -2
  131. package/src/comments/ui/view/commentview.d.ts +9 -9
  132. package/src/comments/ui/view/commentview.js +2 -2
  133. package/src/comments.d.ts +11 -11
  134. package/src/comments.js +2 -2
  135. package/src/commentsonly.d.ts +3 -3
  136. package/src/commentsonly.js +2 -2
  137. package/src/config.d.ts +4 -4
  138. package/src/config.js +1 -1
  139. package/src/index.d.ts +21 -21
  140. package/src/index.js +2 -2
  141. package/src/utils/common-translations.d.ts +2 -2
  142. package/src/utils/common-translations.js +2 -2
  143. package/src/utils/createmutationobserver.d.ts +1 -1
  144. package/src/utils/createmutationobserver.js +2 -2
  145. package/theme/annotation-inline.css +1 -1
  146. package/theme/annotation.css +1 -1
  147. package/theme/comment.css +1 -1
  148. package/theme/commentinput.css +1 -1
  149. package/theme/commentmarker.css +1 -1
  150. package/theme/commentsarchive.css +2 -2
  151. package/theme/commentthread.css +1 -1
  152. package/theme/icons/add-comment.svg +1 -1
  153. package/theme/icons/comments-archive.svg +1 -1
  154. package/theme/icons/edit-comment.svg +1 -1
  155. package/theme/icons/remove-comment.svg +1 -1
  156. package/theme/sidebar-narrow.css +1 -1
  157. package/theme/sidebar.css +1 -1
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-comments",
3
- "version": "40.2.0",
3
+ "version": "41.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/)",
@@ -32,6 +32,7 @@
32
32
  "discussion",
33
33
  "discussions"
34
34
  ],
35
+ "type": "module",
35
36
  "main": "src/index.js",
36
37
  "files": [
37
38
  "build",
@@ -43,8 +44,8 @@
43
44
  "CHANGELOG.md"
44
45
  ],
45
46
  "dependencies": {
46
- "ckeditor5": "40.2.0",
47
- "ckeditor5-collaboration": "40.2.0",
47
+ "ckeditor5": "41.0.0",
48
+ "ckeditor5-collaboration": "41.0.0",
48
49
  "lodash-es": "4.17.21"
49
50
  },
50
51
  "types": "src/index.d.ts",
@@ -1,18 +1,18 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module comments/annotations/annotation
7
7
  * @publicApi
8
8
  */
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
+ import { Rect, Collection } from 'ckeditor5/src/utils.js';
10
+ import type { View } from 'ckeditor5/src/ui.js';
11
+ import type AnnotationView from './view/annotationview.js';
12
+ import type { AnnotationOptions } from './annotations.js';
13
13
  declare const Annotation_base: {
14
- new (): import("ckeditor5/src/utils").Observable;
15
- prototype: import("ckeditor5/src/utils").Observable;
14
+ new (): import("ckeditor5/src/utils.js").Observable;
15
+ prototype: import("ckeditor5/src/utils.js").Observable;
16
16
  };
17
17
  /**
18
18
  * Represents an annotation.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, 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 _0x2827=['_assertCorrectTarget','view','_id','targetRect','focusTracker','focusableElements','_type','add','getClientRects','set','type','isActive','target','item','nodeType','_target','refreshVisibility','annotation-invalid-target','innerView','clear','element','mainView','every','filter','function','object','render','_getNormalizedTarget'];(function(_0x32e621,_0x282778){const _0x5db835=function(_0x89c6f4){while(--_0x89c6f4){_0x32e621['push'](_0x32e621['shift']());}};_0x5db835(++_0x282778);}(_0x2827,0x13a));const _0x5db8=function(_0x32e621,_0x282778){_0x32e621=_0x32e621-0x0;let _0x5db835=_0x2827[_0x32e621];return _0x5db835;};import{CKEditorError as _0x56951b,Rect as _0x57d41d,Collection as _0x123d84,ObservableMixin as _0x2a9a26}from'ckeditor5/src/utils';export default class d extends _0x2a9a26(){constructor({view:_0x4bb367,target:_0x4a7122,type:_0x2282e5,isVisible:_0x313eb4=!0x0}){super(),this[_0x5db8('0x17')]=_0x4bb367,this[_0x5db8('0x17')]['element']||this[_0x5db8('0x17')][_0x5db8('0x14')](),this[_0x5db8('0x0')]=_0x2282e5,this[_0x5db8('0x9')]=_0x4a7122,d[_0x5db8('0x16')](this[_0x5db8('0x15')]()),this[_0x5db8('0x1b')]=new _0x123d84([this[_0x5db8('0x17')][_0x5db8('0xe')]],{'idProperty':_0x5db8('0x18')}),this[_0x5db8('0x1b')]['on']('add',(_0x14723f,_0x136925)=>{this[_0x5db8('0x17')][_0x5db8('0x1a')][_0x5db8('0x1')](_0x136925);}),this[_0x5db8('0x1b')]['on']('remove',(_0x5666cc,_0x443220)=>{this[_0x5db8('0x17')][_0x5db8('0x1a')]['remove'](_0x443220);}),this[_0x5db8('0x3')]('isVisible',_0x313eb4);}get[_0x5db8('0x4')](){return _0x5db8('0x12')==typeof this['_type']?this[_0x5db8('0x0')]():this[_0x5db8('0x0')];}get[_0x5db8('0xc')](){return this[_0x5db8('0x17')][_0x5db8('0xf')];}get[_0x5db8('0x6')](){const _0x1b4c21=this[_0x5db8('0x15')]();return d[_0x5db8('0x16')](_0x1b4c21),_0x1b4c21;}get[_0x5db8('0x19')](){const _0x3bbd0b=this[_0x5db8('0x6')];if(null===_0x3bbd0b)return null;if(_0x3bbd0b instanceof _0x57d41d)return _0x3bbd0b;const _0x1cb6af=_0x3bbd0b[_0x5db8('0x11')](_0x50280f=>function(_0x2b7f8b){const _0x32b9cb=_0x2b7f8b['offsetParent'];if(_0x32b9cb)return!0x0;const _0x563f74=_0x2b7f8b[_0x5db8('0x2')]()['item'](0x0);return!!_0x563f74;}(_0x50280f));return 0x0===_0x1cb6af['length']?null:new _0x57d41d(_0x1cb6af[0x0][_0x5db8('0x2')]()[_0x5db8('0x7')](0x0));}get[_0x5db8('0x5')](){return this['view'][_0x5db8('0x5')];}set[_0x5db8('0x5')](_0x2cef43){this[_0x5db8('0x17')][_0x5db8('0x5')]=_0x2cef43,this[_0x5db8('0x17')][_0x5db8('0xf')][_0x5db8('0x5')]=_0x2cef43;}['updateTargetRect'](){this[_0x5db8('0x17')][_0x5db8('0x19')]=this[_0x5db8('0x19')];}['destroy'](){this['focusableElements']['stopListening'](),this[_0x5db8('0x1b')][_0x5db8('0xd')](),this['stopListening']();}[_0x5db8('0xa')](){this['isVisible']=!!this[_0x5db8('0x19')];}static['_assertCorrectTarget'](_0x49ea84){if(!(null===_0x49ea84||_0x49ea84 instanceof _0x57d41d||Array['isArray'](_0x49ea84)&&_0x49ea84[_0x5db8('0x10')](_0x7767d0=>y(_0x7767d0))))throw new _0x56951b(_0x5db8('0xb'),null,{'target':_0x49ea84});}[_0x5db8('0x15')](){const _0x328f03=_0x5db8('0x12')==typeof this[_0x5db8('0x9')]?this['_target']():this['_target'];return y(_0x328f03)?[_0x328f03]:_0x328f03;}}function y(_0x5d533a){return null!==_0x5d533a&&_0x5db8('0x13')==typeof _0x5d533a&&_0x5db8('0x8')in _0x5d533a&&0x1===_0x5d533a[_0x5db8('0x8')];}
23
+ const _0x173e=['isVisible','_getNormalizedTarget','offsetParent','view','innerView','filter','stopListening','destroy','element','nodeType','isActive','annotation-invalid-target','render','targetRect','_target','_type','mainView','item','function','refreshVisibility','type','add','length','clear','target','updateTargetRect','_assertCorrectTarget','getClientRects','remove','focusableElements'];(function(_0x3b36c7,_0x173e5a){const _0x1ad8c6=function(_0x5024a7){while(--_0x5024a7){_0x3b36c7['push'](_0x3b36c7['shift']());}};_0x1ad8c6(++_0x173e5a);}(_0x173e,0x73));const _0x1ad8=function(_0x3b36c7,_0x173e5a){_0x3b36c7=_0x3b36c7-0x0;let _0x1ad8c6=_0x173e[_0x3b36c7];return _0x1ad8c6;};import{CKEditorError as _0x53208d,Rect as _0x4fc943,Collection as _0x27d3bd,ObservableMixin as _0x4ecd74}from'ckeditor5/src/utils.js';export default class d extends _0x4ecd74(){constructor({view:_0x57f543,target:_0x1a6f48,type:_0x89f46b,isVisible:_0x14370d=!0x0}){super(),this[_0x1ad8('0x8')]=_0x57f543,this[_0x1ad8('0x8')][_0x1ad8('0xd')]||this[_0x1ad8('0x8')][_0x1ad8('0x11')](),this[_0x1ad8('0x14')]=_0x89f46b,this[_0x1ad8('0x13')]=_0x1a6f48,d[_0x1ad8('0x1')](this[_0x1ad8('0x6')]()),this[_0x1ad8('0x4')]=new _0x27d3bd([this[_0x1ad8('0x8')][_0x1ad8('0xd')]],{'idProperty':'_id'}),this[_0x1ad8('0x4')]['on'](_0x1ad8('0x1a'),(_0x4fd34d,_0x4c120e)=>{this['view']['focusTracker'][_0x1ad8('0x1a')](_0x4c120e);}),this[_0x1ad8('0x4')]['on'](_0x1ad8('0x3'),(_0x4cc586,_0x5e00ce)=>{this['view']['focusTracker'][_0x1ad8('0x3')](_0x5e00ce);}),this['set'](_0x1ad8('0x5'),_0x14370d);}get[_0x1ad8('0x19')](){return _0x1ad8('0x17')==typeof this[_0x1ad8('0x14')]?this[_0x1ad8('0x14')]():this[_0x1ad8('0x14')];}get[_0x1ad8('0x9')](){return this[_0x1ad8('0x8')][_0x1ad8('0x15')];}get[_0x1ad8('0x1d')](){const _0x530bb4=this[_0x1ad8('0x6')]();return d[_0x1ad8('0x1')](_0x530bb4),_0x530bb4;}get[_0x1ad8('0x12')](){const _0x358253=this[_0x1ad8('0x1d')];if(null===_0x358253)return null;if(_0x358253 instanceof _0x4fc943)return _0x358253;const _0x5ede0b=_0x358253[_0x1ad8('0xa')](_0x239bc0=>function(_0x723d38){const _0x92a120=_0x723d38[_0x1ad8('0x7')];if(_0x92a120)return!0x0;const _0x3bb887=_0x723d38[_0x1ad8('0x2')]()[_0x1ad8('0x16')](0x0);return!!_0x3bb887;}(_0x239bc0));return 0x0===_0x5ede0b[_0x1ad8('0x1b')]?null:new _0x4fc943(_0x5ede0b[0x0][_0x1ad8('0x2')]()[_0x1ad8('0x16')](0x0));}get['isActive'](){return this[_0x1ad8('0x8')][_0x1ad8('0xf')];}set['isActive'](_0x5b8a21){this[_0x1ad8('0x8')][_0x1ad8('0xf')]=_0x5b8a21,this[_0x1ad8('0x8')]['mainView'][_0x1ad8('0xf')]=_0x5b8a21;}[_0x1ad8('0x0')](){this[_0x1ad8('0x8')][_0x1ad8('0x12')]=this[_0x1ad8('0x12')];}[_0x1ad8('0xc')](){this[_0x1ad8('0x4')]['stopListening'](),this['focusableElements'][_0x1ad8('0x1c')](),this[_0x1ad8('0xb')]();}[_0x1ad8('0x18')](){this[_0x1ad8('0x5')]=!!this['targetRect'];}static['_assertCorrectTarget'](_0x5b2ba0){if(!(null===_0x5b2ba0||_0x5b2ba0 instanceof _0x4fc943||Array['isArray'](_0x5b2ba0)&&_0x5b2ba0['every'](_0x4c5f80=>y(_0x4c5f80))))throw new _0x53208d(_0x1ad8('0x10'),null,{'target':_0x5b2ba0});}[_0x1ad8('0x6')](){const _0x560f9b=_0x1ad8('0x17')==typeof this[_0x1ad8('0x13')]?this['_target']():this[_0x1ad8('0x13')];return y(_0x560f9b)?[_0x560f9b]:_0x560f9b;}}function y(_0x157ebb){return null!==_0x157ebb&&'object'==typeof _0x157ebb&&'nodeType'in _0x157ebb&&0x1===_0x157ebb[_0x1ad8('0xe')];}
@@ -1,14 +1,14 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module comments/annotations/annotationcollection
7
7
  * @publicApi
8
8
  */
9
- import { Collection } from 'ckeditor5/src/utils';
10
- import type { View } from 'ckeditor5/src/ui';
11
- import type Annotation from './annotation';
9
+ import { Collection } from 'ckeditor5/src/utils.js';
10
+ import type { View } from 'ckeditor5/src/ui.js';
11
+ import type Annotation from './annotation.js';
12
12
  /**
13
13
  * A collection of {@link module:comments/annotations/annotation~Annotation annotations}.
14
14
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, 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 _0xeae4=['get','delete','refreshPositioning','_innerViewToAnnotation','_getOrderInContent','clear','listenTo','top','focusableElements','focus','fire','change:isFocused','targetRect','from','sort','set','remove','updateTargetRect','annotationcollection-not-existing-item','annotationcollection-duplicated-item','focusTracker','getIndex','_viewToAnnotation','add','getByInnerView','view','stopListening','_focusTracker','left','_sort','innerView','has','getByView'];(function(_0x3498fb,_0xeae45){const _0x622b05=function(_0x4a5300){while(--_0x4a5300){_0x3498fb['push'](_0x3498fb['shift']());}};_0x622b05(++_0xeae45);}(_0xeae4,0x141));const _0x622b=function(_0x3498fb,_0xeae45){_0x3498fb=_0x3498fb-0x0;let _0x622b05=_0xeae4[_0x3498fb];return _0x622b05;};import{CKEditorError as _0x4ea0f4,Collection as _0x12ef79,FocusTracker as _0x5a5c5b}from'ckeditor5/src/utils';export default class x extends _0x12ef79{constructor(_0x242eb7=[]){super(),this[_0x622b('0xc')]=new Map(),this[_0x622b('0x1f')]=new Map(),this[_0x622b('0x3')]=new _0x5a5c5b(),this[_0x622b('0x3')]['on'](_0x622b('0x14'),(_0x3800ff,_0x418b68,_0x4a8730)=>{_0x4a8730||this[_0x622b('0x13')]('blur');});for(const _0x2adb40 of _0x242eb7)this['add'](_0x2adb40);}get['isFocused'](){return this[_0x622b('0x3')]['isFocused'];}['add'](_0x3bc7c9){if(this[_0x622b('0x7')](_0x3bc7c9))throw new _0x4ea0f4(_0x622b('0x1c'),null);this['_innerViewToAnnotation'][_0x622b('0x18')](_0x3bc7c9[_0x622b('0x6')],_0x3bc7c9),this['_viewToAnnotation']['set'](_0x3bc7c9[_0x622b('0x1')],_0x3bc7c9);for(const _0x3dbbfb of _0x3bc7c9[_0x622b('0x11')])this[_0x622b('0x3')][_0x622b('0x20')](_0x3dbbfb);this[_0x622b('0xf')](_0x3bc7c9['focusableElements'],_0x622b('0x20'),(_0x2edaa0,_0x3b1054)=>{this[_0x622b('0x3')][_0x622b('0x20')](_0x3b1054);}),this[_0x622b('0xf')](_0x3bc7c9[_0x622b('0x11')],_0x622b('0x19'),(_0x9ed0c2,_0x18d0a2)=>{this[_0x622b('0x3')][_0x622b('0x19')](_0x18d0a2);}),this[_0x622b('0xf')](_0x3bc7c9[_0x622b('0x1')][_0x622b('0x1d')],_0x622b('0x14'),(_0x4f0208,_0x56c407,_0x162447)=>{_0x162447&&this[_0x622b('0x13')](_0x622b('0x12'),_0x3bc7c9);}),_0x3bc7c9[_0x622b('0x1a')]();const _0x40401f=this[_0x622b('0xd')](_0x3bc7c9[_0x622b('0x1')][_0x622b('0x15')]);return super[_0x622b('0x20')](_0x3bc7c9,_0x40401f);}[_0x622b('0x19')](_0x16d788){if(!this[_0x622b('0x7')](_0x16d788))throw new _0x4ea0f4(_0x622b('0x1b'),null);this[_0x622b('0x2')](_0x16d788[_0x622b('0x1')]['focusTracker']),this[_0x622b('0x2')](_0x16d788[_0x622b('0x11')]);for(const _0x5a5579 of _0x16d788[_0x622b('0x11')])this[_0x622b('0x3')][_0x622b('0x19')](_0x5a5579);return this[_0x622b('0x1f')][_0x622b('0xa')](_0x16d788['view']),this['_innerViewToAnnotation']['delete'](_0x16d788['innerView']),super[_0x622b('0x19')](_0x16d788);}[_0x622b('0x0')](_0x3b516e){return this[_0x622b('0xc')][_0x622b('0x9')](_0x3b516e);}[_0x622b('0x8')](_0x1bbd9f){return this[_0x622b('0x1f')]['get'](_0x1bbd9f);}['destroy'](){super[_0x622b('0xe')](),this[_0x622b('0x2')](),this[_0x622b('0xc')][_0x622b('0xe')](),this[_0x622b('0x1f')][_0x622b('0xe')](),this[_0x622b('0x3')]['destroy']();}[_0x622b('0xb')](){for(const _0x8c7ca5 of this)_0x8c7ca5[_0x622b('0x1a')]();this['_sort']();}[_0x622b('0x5')](){const _0x4b1932=Array[_0x622b('0x16')](this)[_0x622b('0x17')]((_0x4fd253,_0x56dde1)=>v(_0x4fd253[_0x622b('0x1')][_0x622b('0x15')],_0x56dde1[_0x622b('0x1')][_0x622b('0x15')]));for(let _0x377f97=_0x4b1932['length']-0x1;_0x377f97>0x0;_0x377f97--){const _0x1e05ff=_0x4b1932[_0x377f97];_0x377f97!==this[_0x622b('0x1e')](_0x1e05ff)&&(this[_0x622b('0x19')](_0x1e05ff),this['add'](_0x1e05ff));}}[_0x622b('0xd')](_0x5d12fa){let _0x24f088=0x0;if(!_0x5d12fa)return this['length'];for(const _0x1f038f of this){const _0x238a10=_0x1f038f[_0x622b('0x1')]['targetRect'];if(_0x238a10){if(v(_0x5d12fa,_0x238a10)<0x0)return _0x24f088;_0x24f088++;}}return _0x24f088;}}export function bindAnnotationCollections({source:_0x2daed8,target:_0x1d8e22,filter:_0x46a926}){for(const _0x33a052 of _0x2daed8)_0x46a926(_0x33a052)&&_0x1d8e22[_0x622b('0x20')](_0x33a052);_0x1d8e22['listenTo'](_0x2daed8,'add',(_0x21393b,_0x336d78)=>{_0x46a926(_0x336d78)&&_0x1d8e22[_0x622b('0x20')](_0x336d78);}),_0x1d8e22[_0x622b('0xf')](_0x2daed8,_0x622b('0x19'),(_0x487618,_0x528be2)=>{_0x1d8e22[_0x622b('0x7')](_0x528be2)&&_0x1d8e22['remove'](_0x528be2);});}function v(_0x55f0c0,_0x1b12e6){if(null===_0x55f0c0&&null===_0x1b12e6)return 0x0;if(null===_0x55f0c0)return-0x1;if(null===_0x1b12e6)return 0x1;const _0x4f69ff=_0x55f0c0[_0x622b('0x10')]-_0x1b12e6[_0x622b('0x10')];return 0x0==_0x4f69ff?_0x55f0c0['left']-_0x1b12e6[_0x622b('0x4')]:_0x4f69ff;}
23
+ const _0x144f=['listenTo','getByView','fire','annotationcollection-not-existing-item','remove','blur','top','isFocused','_innerViewToAnnotation','has','_focusTracker','_viewToAnnotation','innerView','destroy','add','getByInnerView','length','_sort','stopListening','get','sort','change:isFocused','focusTracker','delete','focus','clear','targetRect','_getOrderInContent','view','set','left','focusableElements'];(function(_0x172f04,_0x144fb2){const _0x3d33a9=function(_0x1ce6ca){while(--_0x1ce6ca){_0x172f04['push'](_0x172f04['shift']());}};_0x3d33a9(++_0x144fb2);}(_0x144f,0xc5));const _0x3d33=function(_0x172f04,_0x144fb2){_0x172f04=_0x172f04-0x0;let _0x3d33a9=_0x144f[_0x172f04];return _0x3d33a9;};import{CKEditorError as _0x571da8,Collection as _0x35ed74,FocusTracker as _0x2fa088}from'ckeditor5/src/utils.js';export default class x extends _0x35ed74{constructor(_0x992921=[]){super(),this['_innerViewToAnnotation']=new Map(),this[_0x3d33('0x6')]=new Map(),this[_0x3d33('0x5')]=new _0x2fa088(),this['_focusTracker']['on'](_0x3d33('0x10'),(_0x208cd7,_0x432464,_0x3286a4)=>{_0x3286a4||this[_0x3d33('0x1d')](_0x3d33('0x0'));});for(const _0x1fe578 of _0x992921)this[_0x3d33('0x9')](_0x1fe578);}get[_0x3d33('0x2')](){return this[_0x3d33('0x5')][_0x3d33('0x2')];}[_0x3d33('0x9')](_0x4f0941){if(this[_0x3d33('0x4')](_0x4f0941))throw new _0x571da8('annotationcollection-duplicated-item',null);this[_0x3d33('0x3')][_0x3d33('0x18')](_0x4f0941[_0x3d33('0x7')],_0x4f0941),this[_0x3d33('0x6')][_0x3d33('0x18')](_0x4f0941[_0x3d33('0x17')],_0x4f0941);for(const _0x19119b of _0x4f0941[_0x3d33('0x1a')])this['_focusTracker'][_0x3d33('0x9')](_0x19119b);this['listenTo'](_0x4f0941[_0x3d33('0x1a')],_0x3d33('0x9'),(_0x39ffc1,_0xfb85cc)=>{this['_focusTracker'][_0x3d33('0x9')](_0xfb85cc);}),this[_0x3d33('0x1b')](_0x4f0941[_0x3d33('0x1a')],_0x3d33('0x1f'),(_0x137037,_0xc3ad9)=>{this[_0x3d33('0x5')][_0x3d33('0x1f')](_0xc3ad9);}),this[_0x3d33('0x1b')](_0x4f0941['view'][_0x3d33('0x11')],_0x3d33('0x10'),(_0x56c8ca,_0x313ae4,_0x3aacbd)=>{_0x3aacbd&&this[_0x3d33('0x1d')](_0x3d33('0x13'),_0x4f0941);}),_0x4f0941['updateTargetRect']();const _0x1eaf5d=this['_getOrderInContent'](_0x4f0941[_0x3d33('0x17')][_0x3d33('0x15')]);return super[_0x3d33('0x9')](_0x4f0941,_0x1eaf5d);}['remove'](_0x38cb85){if(!this[_0x3d33('0x4')](_0x38cb85))throw new _0x571da8(_0x3d33('0x1e'),null);this[_0x3d33('0xd')](_0x38cb85[_0x3d33('0x17')]['focusTracker']),this[_0x3d33('0xd')](_0x38cb85[_0x3d33('0x1a')]);for(const _0x3ae7cc of _0x38cb85[_0x3d33('0x1a')])this[_0x3d33('0x5')][_0x3d33('0x1f')](_0x3ae7cc);return this[_0x3d33('0x6')][_0x3d33('0x12')](_0x38cb85[_0x3d33('0x17')]),this[_0x3d33('0x3')]['delete'](_0x38cb85[_0x3d33('0x7')]),super[_0x3d33('0x1f')](_0x38cb85);}[_0x3d33('0xa')](_0x234f8c){return this[_0x3d33('0x3')][_0x3d33('0xe')](_0x234f8c);}[_0x3d33('0x1c')](_0x43fcaa){return this[_0x3d33('0x6')]['get'](_0x43fcaa);}[_0x3d33('0x8')](){super[_0x3d33('0x14')](),this['stopListening'](),this[_0x3d33('0x3')]['clear'](),this[_0x3d33('0x6')][_0x3d33('0x14')](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x2f9643 of this)_0x2f9643['updateTargetRect']();this[_0x3d33('0xc')]();}[_0x3d33('0xc')](){const _0xb61b44=Array['from'](this)[_0x3d33('0xf')]((_0x12ca37,_0x556a21)=>v(_0x12ca37[_0x3d33('0x17')][_0x3d33('0x15')],_0x556a21['view']['targetRect']));for(let _0x14c827=_0xb61b44[_0x3d33('0xb')]-0x1;_0x14c827>0x0;_0x14c827--){const _0x18211b=_0xb61b44[_0x14c827];_0x14c827!==this['getIndex'](_0x18211b)&&(this['remove'](_0x18211b),this[_0x3d33('0x9')](_0x18211b));}}[_0x3d33('0x16')](_0x37e108){let _0x22347f=0x0;if(!_0x37e108)return this[_0x3d33('0xb')];for(const _0x5a31c6 of this){const _0x370e40=_0x5a31c6[_0x3d33('0x17')][_0x3d33('0x15')];if(_0x370e40){if(v(_0x37e108,_0x370e40)<0x0)return _0x22347f;_0x22347f++;}}return _0x22347f;}}export function bindAnnotationCollections({source:_0x379334,target:_0x541ebc,filter:_0x2bb11b}){for(const _0xc926c of _0x379334)_0x2bb11b(_0xc926c)&&_0x541ebc[_0x3d33('0x9')](_0xc926c);_0x541ebc[_0x3d33('0x1b')](_0x379334,_0x3d33('0x9'),(_0x35bef8,_0x41b169)=>{_0x2bb11b(_0x41b169)&&_0x541ebc[_0x3d33('0x9')](_0x41b169);}),_0x541ebc[_0x3d33('0x1b')](_0x379334,_0x3d33('0x1f'),(_0x354850,_0x1f4002)=>{_0x541ebc[_0x3d33('0x4')](_0x1f4002)&&_0x541ebc['remove'](_0x1f4002);});}function v(_0x846719,_0x4cbf39){if(null===_0x846719&&null===_0x4cbf39)return 0x0;if(null===_0x846719)return-0x1;if(null===_0x4cbf39)return 0x1;const _0x1c4814=_0x846719['top']-_0x4cbf39[_0x3d33('0x1')];return 0x0==_0x1c4814?_0x846719['left']-_0x4cbf39[_0x3d33('0x19')]:_0x1c4814;}
@@ -1,17 +1,17 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module comments/annotations/annotations
7
7
  * @publicApi
8
8
  */
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';
9
+ import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core.js';
10
+ import type { View } from 'ckeditor5/src/ui.js';
11
+ import { type Locale } from 'ckeditor5/src/utils.js';
12
+ import Annotation, { type AnnotationTarget } from './annotation.js';
13
+ import AnnotationCollection from './annotationcollection.js';
14
+ import AnnotationView, { type AnnotationMainView } from './view/annotationview.js';
15
15
  /**
16
16
  * Stores and manages all {@link module:comments/annotations/annotation~Annotation annotations} created
17
17
  * for the entire {@link module:core/context~Context} or {@link module:core/editor/editor~Editor}.