@ckeditor/ckeditor5-comments 40.0.0 → 40.2.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 (197) hide show
  1. package/CHANGELOG.md +19 -19
  2. package/LICENSE.md +3 -3
  3. package/README.md +1 -1
  4. package/build/comments.js +2 -2
  5. package/build/translations/af.js +1 -1
  6. package/build/translations/ar.js +1 -1
  7. package/build/translations/bg.js +1 -1
  8. package/build/translations/bn.js +1 -1
  9. package/build/translations/bs.js +1 -1
  10. package/build/translations/ca.js +1 -1
  11. package/build/translations/cs.js +1 -1
  12. package/build/translations/da.js +1 -1
  13. package/build/translations/de-ch.js +1 -1
  14. package/build/translations/de.js +1 -1
  15. package/build/translations/el.js +1 -1
  16. package/build/translations/en-au.js +1 -1
  17. package/build/translations/es-co.js +1 -1
  18. package/build/translations/es.js +1 -1
  19. package/build/translations/et.js +1 -1
  20. package/build/translations/fa.js +1 -1
  21. package/build/translations/fi.js +1 -1
  22. package/build/translations/fr.js +1 -1
  23. package/build/translations/gl.js +1 -1
  24. package/build/translations/he.js +1 -1
  25. package/build/translations/hi.js +1 -1
  26. package/build/translations/hr.js +1 -1
  27. package/build/translations/hu.js +1 -1
  28. package/build/translations/id.js +1 -1
  29. package/build/translations/it.js +1 -1
  30. package/build/translations/ja.js +1 -1
  31. package/build/translations/jv.js +1 -1
  32. package/build/translations/ko.js +1 -1
  33. package/build/translations/lt.js +1 -1
  34. package/build/translations/lv.js +1 -1
  35. package/build/translations/ms.js +1 -1
  36. package/build/translations/nl.js +1 -1
  37. package/build/translations/no.js +1 -1
  38. package/build/translations/pl.js +1 -1
  39. package/build/translations/pt-br.js +1 -1
  40. package/build/translations/pt.js +1 -1
  41. package/build/translations/ro.js +1 -1
  42. package/build/translations/ru.js +1 -1
  43. package/build/translations/sk.js +1 -1
  44. package/build/translations/sq.js +1 -1
  45. package/build/translations/sr-latn.js +1 -1
  46. package/build/translations/sr.js +1 -1
  47. package/build/translations/sv.js +1 -1
  48. package/build/translations/th.js +1 -1
  49. package/build/translations/tk.js +1 -1
  50. package/build/translations/tr.js +1 -1
  51. package/build/translations/tt.js +1 -1
  52. package/build/translations/ug.js +1 -1
  53. package/build/translations/uk.js +1 -1
  54. package/build/translations/ur.js +1 -1
  55. package/build/translations/vi.js +1 -1
  56. package/build/translations/zh-cn.js +1 -1
  57. package/build/translations/zh.js +1 -1
  58. package/lang/contexts.json +2 -0
  59. package/lang/translations/af.po +8 -0
  60. package/lang/translations/ar.po +8 -0
  61. package/lang/translations/bg.po +8 -0
  62. package/lang/translations/bn.po +8 -0
  63. package/lang/translations/bs.po +8 -0
  64. package/lang/translations/ca.po +8 -0
  65. package/lang/translations/cs.po +8 -0
  66. package/lang/translations/da.po +8 -0
  67. package/lang/translations/de-ch.po +8 -0
  68. package/lang/translations/de.po +8 -0
  69. package/lang/translations/el.po +8 -0
  70. package/lang/translations/en-au.po +8 -0
  71. package/lang/translations/en.po +8 -0
  72. package/lang/translations/es-co.po +8 -0
  73. package/lang/translations/es.po +8 -0
  74. package/lang/translations/et.po +8 -0
  75. package/lang/translations/fa.po +8 -0
  76. package/lang/translations/fi.po +8 -0
  77. package/lang/translations/fr.po +8 -0
  78. package/lang/translations/gl.po +8 -0
  79. package/lang/translations/he.po +8 -0
  80. package/lang/translations/hi.po +8 -0
  81. package/lang/translations/hr.po +8 -0
  82. package/lang/translations/hu.po +8 -0
  83. package/lang/translations/id.po +8 -0
  84. package/lang/translations/it.po +8 -0
  85. package/lang/translations/ja.po +8 -0
  86. package/lang/translations/jv.po +8 -0
  87. package/lang/translations/ko.po +8 -0
  88. package/lang/translations/lt.po +8 -0
  89. package/lang/translations/lv.po +8 -0
  90. package/lang/translations/ms.po +8 -0
  91. package/lang/translations/nl.po +8 -0
  92. package/lang/translations/no.po +8 -0
  93. package/lang/translations/pl.po +8 -0
  94. package/lang/translations/pt-br.po +8 -0
  95. package/lang/translations/pt.po +8 -0
  96. package/lang/translations/ro.po +8 -0
  97. package/lang/translations/ru.po +8 -0
  98. package/lang/translations/sk.po +8 -0
  99. package/lang/translations/sq.po +8 -0
  100. package/lang/translations/sr-latn.po +9 -1
  101. package/lang/translations/sr.po +8 -0
  102. package/lang/translations/sv.po +8 -0
  103. package/lang/translations/th.po +8 -0
  104. package/lang/translations/tk.po +8 -0
  105. package/lang/translations/tr.po +8 -0
  106. package/lang/translations/tt.po +8 -0
  107. package/lang/translations/ug.po +16 -8
  108. package/lang/translations/uk.po +8 -0
  109. package/lang/translations/ur.po +8 -0
  110. package/lang/translations/vi.po +8 -0
  111. package/lang/translations/zh-cn.po +8 -0
  112. package/lang/translations/zh.po +8 -0
  113. package/package.json +3 -3
  114. package/src/annotations/annotation.d.ts +90 -90
  115. package/src/annotations/annotation.js +1 -1
  116. package/src/annotations/annotationcollection.d.ts +98 -98
  117. package/src/annotations/annotationcollection.js +1 -1
  118. package/src/annotations/annotations.d.ts +154 -154
  119. package/src/annotations/annotations.js +1 -1
  120. package/src/annotations/annotationsuis.d.ts +232 -232
  121. package/src/annotations/annotationsuis.js +1 -1
  122. package/src/annotations/editorannotations.d.ts +67 -67
  123. package/src/annotations/editorannotations.js +1 -1
  124. package/src/annotations/inlineannotations.d.ts +90 -90
  125. package/src/annotations/inlineannotations.js +1 -1
  126. package/src/annotations/narrowsidebar.d.ts +85 -85
  127. package/src/annotations/narrowsidebar.js +1 -1
  128. package/src/annotations/sidebar.d.ts +100 -100
  129. package/src/annotations/sidebar.js +1 -1
  130. package/src/annotations/view/annotationcounterbuttonview.d.ts +29 -29
  131. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  132. package/src/annotations/view/annotationview.d.ts +90 -90
  133. package/src/annotations/view/annotationview.js +1 -1
  134. package/src/annotations/view/sidebaritemview.d.ts +55 -55
  135. package/src/annotations/view/sidebaritemview.js +1 -1
  136. package/src/annotations/view/sidebarview.d.ts +32 -32
  137. package/src/annotations/view/sidebarview.js +1 -1
  138. package/src/annotations/widesidebar.d.ts +77 -77
  139. package/src/annotations/widesidebar.js +1 -1
  140. package/src/augmentation.d.ts +52 -52
  141. package/src/comments/addcommentthreadcommand.d.ts +35 -35
  142. package/src/comments/addcommentthreadcommand.js +1 -1
  143. package/src/comments/commentsarchive.d.ts +31 -31
  144. package/src/comments/commentsarchive.js +1 -1
  145. package/src/comments/commentsarchiveui.d.ts +38 -38
  146. package/src/comments/commentsarchiveui.js +1 -1
  147. package/src/comments/commentsediting.d.ts +79 -79
  148. package/src/comments/commentsediting.js +1 -1
  149. package/src/comments/commentsrepository.d.ts +1130 -1129
  150. package/src/comments/commentsrepository.js +1 -1
  151. package/src/comments/commentsui.d.ts +33 -33
  152. package/src/comments/commentsui.js +1 -1
  153. package/src/comments/integrations/commentsrestrictededitingmode.d.ts +17 -17
  154. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  155. package/src/comments/integrations/importword.d.ts +21 -21
  156. package/src/comments/integrations/importword.js +1 -1
  157. package/src/comments/ui/commenteditor/commenteditor.d.ts +36 -36
  158. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  159. package/src/comments/ui/commenteditor/commenteditorui.d.ts +31 -31
  160. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  161. package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +36 -36
  162. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  163. package/src/comments/ui/commentthreadcontroller.d.ts +64 -64
  164. package/src/comments/ui/commentthreadcontroller.js +1 -1
  165. package/src/comments/ui/view/basecommentthreadview.d.ts +119 -119
  166. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  167. package/src/comments/ui/view/basecommentview.d.ts +112 -112
  168. package/src/comments/ui/view/basecommentview.js +1 -1
  169. package/src/comments/ui/view/collapsedcommentsview.d.ts +13 -13
  170. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  171. package/src/comments/ui/view/commentcontentview.d.ts +14 -14
  172. package/src/comments/ui/view/commentcontentview.js +1 -1
  173. package/src/comments/ui/view/commentinputview.d.ts +86 -86
  174. package/src/comments/ui/view/commentinputview.js +1 -1
  175. package/src/comments/ui/view/commentsarchiveview.d.ts +38 -38
  176. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  177. package/src/comments/ui/view/commentslistview.d.ts +100 -100
  178. package/src/comments/ui/view/commentslistview.js +1 -1
  179. package/src/comments/ui/view/commentthreadheaderview.d.ts +50 -50
  180. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  181. package/src/comments/ui/view/commentthreadinputview.d.ts +41 -41
  182. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  183. package/src/comments/ui/view/commentthreadview.d.ts +118 -118
  184. package/src/comments/ui/view/commentthreadview.js +1 -1
  185. package/src/comments/ui/view/commentview.d.ts +243 -243
  186. package/src/comments/ui/view/commentview.js +1 -1
  187. package/src/comments.d.ts +35 -35
  188. package/src/comments.js +1 -1
  189. package/src/commentsonly.d.ts +33 -33
  190. package/src/commentsonly.js +1 -1
  191. package/src/config.d.ts +176 -176
  192. package/src/index.d.ts +24 -24
  193. package/src/utils/common-translations.d.ts +9 -9
  194. package/src/utils/common-translations.js +1 -1
  195. package/src/utils/createmutationobserver.d.ts +14 -14
  196. package/src/utils/createmutationobserver.js +1 -1
  197. package/theme/comment.css +1 -1
@@ -1,98 +1,98 @@
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
- */
5
- /**
6
- * @module comments/annotations/annotationcollection
7
- * @publicApi
8
- */
9
- import { Collection } from 'ckeditor5/src/utils';
10
- import type { View } from 'ckeditor5/src/ui';
11
- import type Annotation from './annotation';
12
- /**
13
- * A collection of {@link module:comments/annotations/annotation~Annotation annotations}.
14
- *
15
- * It implements methods for managing annotations and creates a focus tracker for them to make it easier to manage
16
- * the focus for all annotations.
17
- *
18
- * `AnnotationCollection` fires {@link module:comments/annotations/annotationcollection~AnnotationCollection#event:focus} when an annotation
19
- * becomes focused and {@link module:comments/annotations/annotationcollection~AnnotationCollection#event:blur} when all annotations
20
- * lose focus.
21
- */
22
- export default class AnnotationCollection extends Collection<Annotation> {
23
- /**
24
- * @param annotations Initial annotations.
25
- */
26
- constructor(annotations?: Iterable<Annotation>);
27
- /**
28
- * Equals to `true` when one of the annotation in the collection is focused.
29
- */
30
- get isFocused(): boolean;
31
- /**
32
- * Adds an annotation to the collection.
33
- */
34
- add(annotation: Annotation): this;
35
- /**
36
- * Removes the annotation from the collection.
37
- */
38
- remove(annotation: Annotation): Annotation;
39
- /**
40
- * Gets the annotation for a given annotation view's inner view.
41
- */
42
- getByInnerView(innerView: View): Annotation | undefined;
43
- /**
44
- * Gets the annotation for a given annotation view.
45
- */
46
- getByView(view: View): Annotation | undefined;
47
- /**
48
- * Destroys all bindings and clears the collection.
49
- */
50
- destroy(): void;
51
- /**
52
- * Refreshes the positioning of all annotations and sorts them topmost and leftmost.
53
- */
54
- refreshPositioning(): void;
55
- }
56
- /**
57
- * Fired when an annotation becomes active.
58
- *
59
- * @eventName ~AnnotationCollection#focus
60
- * @param annotation An annotation that was focused.
61
- */
62
- export type AnnotationFocusEvent = {
63
- name: 'focus';
64
- args: [annotation: Annotation];
65
- };
66
- /**
67
- * Fired when all annotations become blurred.
68
- *
69
- * @eventName ~AnnotationCollection#blur
70
- */
71
- export type AnnotationBlurEvent = {
72
- name: 'blur';
73
- args: [];
74
- };
75
- /**
76
- * A helper function that binds two {@link module:comments/annotations/annotationcollection~AnnotationCollection AnnotationCollection}s
77
- * and allows filtering items based on the passed callback.
78
- *
79
- * Since {@link module:comments/annotations/annotationcollection~AnnotationCollection#refreshPositioning}
80
- * sorts the annotations by removing and inserting items, the binding implemented by the `bindTo()` method is lost. This is why
81
- * this helper needs to be used.
82
- *
83
- * This helper is used by the annotations UIs to filter which annotations from the
84
- * {@link module:comments/annotations/annotations~Annotations#collection main annotation collection} should be handled by
85
- * a given annotations UI.
86
- *
87
- * @param `options.source` The source collection
88
- * from which the annotations will be taken.
89
- * @param `options.target` The target collection
90
- * that will be synced to the source collection.
91
- * @param options.filter Filtering function that gets an annotation and should return `true` if the annotation should be
92
- * copied to the `target` collection.
93
- */
94
- export declare function bindAnnotationCollections({ source, target, filter }: {
95
- source: AnnotationCollection;
96
- target: AnnotationCollection;
97
- filter: (annotation: Annotation) => boolean;
98
- }): void;
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
+ */
5
+ /**
6
+ * @module comments/annotations/annotationcollection
7
+ * @publicApi
8
+ */
9
+ import { Collection } from 'ckeditor5/src/utils';
10
+ import type { View } from 'ckeditor5/src/ui';
11
+ import type Annotation from './annotation';
12
+ /**
13
+ * A collection of {@link module:comments/annotations/annotation~Annotation annotations}.
14
+ *
15
+ * It implements methods for managing annotations and creates a focus tracker for them to make it easier to manage
16
+ * the focus for all annotations.
17
+ *
18
+ * `AnnotationCollection` fires {@link module:comments/annotations/annotationcollection~AnnotationCollection#event:focus} when an annotation
19
+ * becomes focused and {@link module:comments/annotations/annotationcollection~AnnotationCollection#event:blur} when all annotations
20
+ * lose focus.
21
+ */
22
+ export default class AnnotationCollection extends Collection<Annotation> {
23
+ /**
24
+ * @param annotations Initial annotations.
25
+ */
26
+ constructor(annotations?: Iterable<Annotation>);
27
+ /**
28
+ * Equals to `true` when one of the annotation in the collection is focused.
29
+ */
30
+ get isFocused(): boolean;
31
+ /**
32
+ * Adds an annotation to the collection.
33
+ */
34
+ add(annotation: Annotation): this;
35
+ /**
36
+ * Removes the annotation from the collection.
37
+ */
38
+ remove(annotation: Annotation): Annotation;
39
+ /**
40
+ * Gets the annotation for a given annotation view's inner view.
41
+ */
42
+ getByInnerView(innerView: View): Annotation | undefined;
43
+ /**
44
+ * Gets the annotation for a given annotation view.
45
+ */
46
+ getByView(view: View): Annotation | undefined;
47
+ /**
48
+ * Destroys all bindings and clears the collection.
49
+ */
50
+ destroy(): void;
51
+ /**
52
+ * Refreshes the positioning of all annotations and sorts them topmost and leftmost.
53
+ */
54
+ refreshPositioning(): void;
55
+ }
56
+ /**
57
+ * Fired when an annotation becomes active.
58
+ *
59
+ * @eventName ~AnnotationCollection#focus
60
+ * @param annotation An annotation that was focused.
61
+ */
62
+ export type AnnotationFocusEvent = {
63
+ name: 'focus';
64
+ args: [annotation: Annotation];
65
+ };
66
+ /**
67
+ * Fired when all annotations become blurred.
68
+ *
69
+ * @eventName ~AnnotationCollection#blur
70
+ */
71
+ export type AnnotationBlurEvent = {
72
+ name: 'blur';
73
+ args: [];
74
+ };
75
+ /**
76
+ * A helper function that binds two {@link module:comments/annotations/annotationcollection~AnnotationCollection AnnotationCollection}s
77
+ * and allows filtering items based on the passed callback.
78
+ *
79
+ * Since {@link module:comments/annotations/annotationcollection~AnnotationCollection#refreshPositioning}
80
+ * sorts the annotations by removing and inserting items, the binding implemented by the `bindTo()` method is lost. This is why
81
+ * this helper needs to be used.
82
+ *
83
+ * This helper is used by the annotations UIs to filter which annotations from the
84
+ * {@link module:comments/annotations/annotations~Annotations#collection main annotation collection} should be handled by
85
+ * a given annotations UI.
86
+ *
87
+ * @param `options.source` The source collection
88
+ * from which the annotations will be taken.
89
+ * @param `options.target` The target collection
90
+ * that will be synced to the source collection.
91
+ * @param options.filter Filtering function that gets an annotation and should return `true` if the annotation should be
92
+ * copied to the `target` collection.
93
+ */
94
+ export declare function bindAnnotationCollections({ source, target, filter }: {
95
+ source: AnnotationCollection;
96
+ target: AnnotationCollection;
97
+ filter: (annotation: Annotation) => boolean;
98
+ }): void;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x300a=['clear','blur','_viewToAnnotation','refreshPositioning','focus','targetRect','innerView','_getOrderInContent','_sort','sort','stopListening','getIndex','isFocused','annotationcollection-duplicated-item','get','top','destroy','_focusTracker','view','set','focusTracker','from','getByView','annotationcollection-not-existing-item','remove','updateTargetRect','delete','focusableElements','_innerViewToAnnotation','add','change:isFocused','listenTo','fire','length','has','left'];(function(_0x47293b,_0x300ad2){const _0x2aa787=function(_0x4d1f77){while(--_0x4d1f77){_0x47293b['push'](_0x47293b['shift']());}};_0x2aa787(++_0x300ad2);}(_0x300a,0x18f));const _0x2aa7=function(_0x47293b,_0x300ad2){_0x47293b=_0x47293b-0x0;let _0x2aa787=_0x300a[_0x47293b];return _0x2aa787;};import{CKEditorError as _0xe8b752,Collection as _0x5a8df0,FocusTracker as _0xbd9cbf}from'ckeditor5/src/utils';export default class x extends _0x5a8df0{constructor(_0x5563ff=[]){super(),this[_0x2aa7('0x19')]=new Map(),this[_0x2aa7('0x23')]=new Map(),this[_0x2aa7('0xe')]=new _0xbd9cbf(),this[_0x2aa7('0xe')]['on'](_0x2aa7('0x1b'),(_0x5cab3b,_0x2760fe,_0x49a8a7)=>{_0x49a8a7||this['fire'](_0x2aa7('0x22'));});for(const _0x4d0933 of _0x5563ff)this[_0x2aa7('0x1a')](_0x4d0933);}get[_0x2aa7('0x9')](){return this[_0x2aa7('0xe')]['isFocused'];}[_0x2aa7('0x1a')](_0x565a90){if(this[_0x2aa7('0x1f')](_0x565a90))throw new _0xe8b752(_0x2aa7('0xa'),null);this['_innerViewToAnnotation'][_0x2aa7('0x10')](_0x565a90[_0x2aa7('0x3')],_0x565a90),this[_0x2aa7('0x23')]['set'](_0x565a90[_0x2aa7('0xf')],_0x565a90);for(const _0x2ebe89 of _0x565a90[_0x2aa7('0x18')])this[_0x2aa7('0xe')][_0x2aa7('0x1a')](_0x2ebe89);this[_0x2aa7('0x1c')](_0x565a90[_0x2aa7('0x18')],_0x2aa7('0x1a'),(_0x5659fc,_0x5c2842)=>{this[_0x2aa7('0xe')][_0x2aa7('0x1a')](_0x5c2842);}),this[_0x2aa7('0x1c')](_0x565a90[_0x2aa7('0x18')],_0x2aa7('0x15'),(_0x280d93,_0x4ffbf8)=>{this[_0x2aa7('0xe')][_0x2aa7('0x15')](_0x4ffbf8);}),this['listenTo'](_0x565a90[_0x2aa7('0xf')][_0x2aa7('0x11')],_0x2aa7('0x1b'),(_0x186994,_0x47f681,_0x493958)=>{_0x493958&&this[_0x2aa7('0x1d')](_0x2aa7('0x1'),_0x565a90);}),_0x565a90[_0x2aa7('0x16')]();const _0x715f5e=this[_0x2aa7('0x4')](_0x565a90[_0x2aa7('0xf')][_0x2aa7('0x2')]);return super[_0x2aa7('0x1a')](_0x565a90,_0x715f5e);}[_0x2aa7('0x15')](_0x3958ac){if(!this[_0x2aa7('0x1f')](_0x3958ac))throw new _0xe8b752(_0x2aa7('0x14'),null);this[_0x2aa7('0x7')](_0x3958ac['view'][_0x2aa7('0x11')]),this[_0x2aa7('0x7')](_0x3958ac[_0x2aa7('0x18')]);for(const _0x1655ad of _0x3958ac[_0x2aa7('0x18')])this[_0x2aa7('0xe')][_0x2aa7('0x15')](_0x1655ad);return this[_0x2aa7('0x23')][_0x2aa7('0x17')](_0x3958ac['view']),this[_0x2aa7('0x19')][_0x2aa7('0x17')](_0x3958ac[_0x2aa7('0x3')]),super[_0x2aa7('0x15')](_0x3958ac);}['getByInnerView'](_0x1bf81a){return this[_0x2aa7('0x19')]['get'](_0x1bf81a);}[_0x2aa7('0x13')](_0x1b432e){return this[_0x2aa7('0x23')][_0x2aa7('0xb')](_0x1b432e);}['destroy'](){super[_0x2aa7('0x21')](),this['stopListening'](),this['_innerViewToAnnotation'][_0x2aa7('0x21')](),this['_viewToAnnotation'][_0x2aa7('0x21')](),this[_0x2aa7('0xe')][_0x2aa7('0xd')]();}[_0x2aa7('0x0')](){for(const _0x4f4c64 of this)_0x4f4c64[_0x2aa7('0x16')]();this['_sort']();}[_0x2aa7('0x5')](){const _0x19cdf2=Array[_0x2aa7('0x12')](this)[_0x2aa7('0x6')]((_0x44a2fe,_0x144263)=>v(_0x44a2fe['view'][_0x2aa7('0x2')],_0x144263[_0x2aa7('0xf')]['targetRect']));for(let _0x5ad0db=_0x19cdf2[_0x2aa7('0x1e')]-0x1;_0x5ad0db>0x0;_0x5ad0db--){const _0x4c4cc4=_0x19cdf2[_0x5ad0db];_0x5ad0db!==this[_0x2aa7('0x8')](_0x4c4cc4)&&(this[_0x2aa7('0x15')](_0x4c4cc4),this['add'](_0x4c4cc4));}}[_0x2aa7('0x4')](_0x1baa72){let _0xcbcef6=0x0;if(!_0x1baa72)return this[_0x2aa7('0x1e')];for(const _0x3ae349 of this){const _0x4f43ba=_0x3ae349['view'][_0x2aa7('0x2')];if(_0x4f43ba){if(v(_0x1baa72,_0x4f43ba)<0x0)return _0xcbcef6;_0xcbcef6++;}}return _0xcbcef6;}}export function bindAnnotationCollections({source:_0x458f95,target:_0xc6af4c,filter:_0x2a19b5}){for(const _0x2782fc of _0x458f95)_0x2a19b5(_0x2782fc)&&_0xc6af4c[_0x2aa7('0x1a')](_0x2782fc);_0xc6af4c[_0x2aa7('0x1c')](_0x458f95,'add',(_0x6db8dc,_0x2c7e9b)=>{_0x2a19b5(_0x2c7e9b)&&_0xc6af4c['add'](_0x2c7e9b);}),_0xc6af4c['listenTo'](_0x458f95,_0x2aa7('0x15'),(_0x598ab2,_0x54a55f)=>{_0xc6af4c['has'](_0x54a55f)&&_0xc6af4c[_0x2aa7('0x15')](_0x54a55f);});}function v(_0x1cd544,_0x2d6eb5){if(null===_0x1cd544&&null===_0x2d6eb5)return 0x0;if(null===_0x1cd544)return-0x1;if(null===_0x2d6eb5)return 0x1;const _0x2d5c9b=_0x1cd544[_0x2aa7('0xc')]-_0x2d6eb5[_0x2aa7('0xc')];return 0x0==_0x2d5c9b?_0x1cd544[_0x2aa7('0x20')]-_0x2d6eb5['left']:_0x2d5c9b;}
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;}
@@ -1,154 +1,154 @@
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
- */
5
- /**
6
- * @module comments/annotations/annotations
7
- * @publicApi
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';
15
- /**
16
- * Stores and manages all {@link module:comments/annotations/annotation~Annotation annotations} created
17
- * for the entire {@link module:core/context~Context} or {@link module:core/editor/editor~Editor}.
18
- *
19
- * It allows for {@link module:comments/annotations/annotations~Annotations#add adding} and
20
- * {@link module:comments/annotations/annotations~Annotations#remove removing} annotations.
21
- *
22
- * It manages {@link module:comments/annotations/annotations~Annotations#activate activating} and
23
- * {@link module:comments/annotations/annotations~Annotations#deactivateAll deactivating} annotations. Using those methods will
24
- * result in setting {@link module:comments/annotations/annotationsuis~AnnotationUI#activeAnnotation} in the appropriate
25
- * {@link module:comments/annotations/annotationsuis~AnnotationsUI annotations UI} plugins.
26
- *
27
- * All active annotations are stored in {@link module:comments/annotations/annotations~Annotations#activeAnnotations}.
28
- *
29
- * `Annotations` is linked with {@link module:comments/annotations/annotationsuis~AnnotationsUIs}, which listens to events fired by
30
- * `Annotations` and propagates information to and from annotations UI plugins.
31
- */
32
- export default class Annotations extends ContextPlugin {
33
- /**
34
- * A set of currently active annotations.
35
- *
36
- * @observable
37
- */
38
- activeAnnotations: Set<Annotation>;
39
- /**
40
- * A collection of all annotations. It should not be operated on directly.
41
- */
42
- readonly collection: AnnotationCollection;
43
- /**
44
- * @inheritDoc
45
- */
46
- static get pluginName(): "Annotations";
47
- /**
48
- * @inheritDoc
49
- */
50
- constructor(context: Context | Editor);
51
- /**
52
- * Adds an annotation to the collection.
53
- */
54
- add(annotation: Annotation): void;
55
- /**
56
- * Removes the given annotation from the collection.
57
- */
58
- remove(annotation: Annotation): void;
59
- /**
60
- * Refreshes the visibility of annotations based on the visibility of their annotation targets.
61
- *
62
- * This method should be called when one or more annotations' targets changed their visibility,
63
- * for example when one of the editors was shown or hidden.
64
- *
65
- * This method recalculates all annotations' {@link module:comments/annotations/annotation~Annotation#isVisible `isVisible`} property.
66
- */
67
- refreshVisibility(): void;
68
- /**
69
- * Refreshes the positioning of all visible annotations and sorts them topmost and leftmost.
70
- */
71
- refreshPositioning(): void;
72
- /**
73
- * Returns the annotation that "contains" the given annotation view's inner view.
74
- */
75
- getByInnerView(innerView: View): Annotation | undefined;
76
- /**
77
- * Deactivates all active annotations.
78
- *
79
- * @fires _deactivateAllAnnotations
80
- */
81
- deactivateAll(): void;
82
- /**
83
- * @inheritDoc
84
- */
85
- destroy(): void;
86
- /**
87
- * Activates the given annotation.
88
- *
89
- * If annotations UI that handles the given annotation already has an active annotation,
90
- * then it deactivates it and activates the provided one.
91
- *
92
- * @fires _activateAnnotation
93
- */
94
- activate(annotation: Annotation): void;
95
- /**
96
- * Creates an annotation.
97
- *
98
- * ```ts
99
- * const annotationView = annotations.createAnnotationView( editor.locale, innerView );
100
- *
101
- * const annotation = annotations.createAnnotation( {
102
- * view: annotationView,
103
- * target: document.getElementById( 'target' ),
104
- * type: 'comment'
105
- * } );
106
- * ```
107
- *
108
- * @returns An annotation.
109
- */
110
- createAnnotation(options: AnnotationOptions): Annotation;
111
- /**
112
- * Creates an annotation view wrapper for the annotation content.
113
- *
114
- * ```ts
115
- * const innerView = createCustomView();
116
- * const annotationView = annotations.createAnnotationView( editor.locale, innerView );
117
- * ```
118
- *
119
- * @returns An annotation view.
120
- */
121
- createAnnotationView(locale: Locale, view: AnnotationMainView): AnnotationView;
122
- }
123
- /**
124
- * The configuration options which are used to create new {@link module:comments/annotations/annotation~Annotation annotations}.
125
- *
126
- * @param view The annotation view.
127
- * @param target The annotation target.
128
- * @param type The annotation type.
129
- * @param isVisible The initial visibility of the annotation.
130
- */
131
- export interface AnnotationOptions {
132
- view: AnnotationView;
133
- target: AnnotationTarget;
134
- type: string | (() => string);
135
- isVisible?: boolean;
136
- }
137
- /**
138
- * An internal event that fires when the annotation should be activated.
139
- *
140
- * @eventName ~Annotations#_activateAnnotation
141
- */
142
- export type ActivateAnnotationEvent = {
143
- name: '_activateAnnotation';
144
- args: [annotation: Annotation];
145
- };
146
- /**
147
- * An internal event that fires when all annotations should be deactivated.
148
- *
149
- * @eventName ~Annotations#_deactivateAllAnnotations
150
- */
151
- export type DeactivateAllAnnotationsEvent = {
152
- name: '_deactivateAllAnnotations';
153
- args: [];
154
- };
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
+ */
5
+ /**
6
+ * @module comments/annotations/annotations
7
+ * @publicApi
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';
15
+ /**
16
+ * Stores and manages all {@link module:comments/annotations/annotation~Annotation annotations} created
17
+ * for the entire {@link module:core/context~Context} or {@link module:core/editor/editor~Editor}.
18
+ *
19
+ * It allows for {@link module:comments/annotations/annotations~Annotations#add adding} and
20
+ * {@link module:comments/annotations/annotations~Annotations#remove removing} annotations.
21
+ *
22
+ * It manages {@link module:comments/annotations/annotations~Annotations#activate activating} and
23
+ * {@link module:comments/annotations/annotations~Annotations#deactivateAll deactivating} annotations. Using those methods will
24
+ * result in setting {@link module:comments/annotations/annotationsuis~AnnotationUI#activeAnnotation} in the appropriate
25
+ * {@link module:comments/annotations/annotationsuis~AnnotationsUI annotations UI} plugins.
26
+ *
27
+ * All active annotations are stored in {@link module:comments/annotations/annotations~Annotations#activeAnnotations}.
28
+ *
29
+ * `Annotations` is linked with {@link module:comments/annotations/annotationsuis~AnnotationsUIs}, which listens to events fired by
30
+ * `Annotations` and propagates information to and from annotations UI plugins.
31
+ */
32
+ export default class Annotations extends ContextPlugin {
33
+ /**
34
+ * A set of currently active annotations.
35
+ *
36
+ * @observable
37
+ */
38
+ activeAnnotations: Set<Annotation>;
39
+ /**
40
+ * A collection of all annotations. It should not be operated on directly.
41
+ */
42
+ readonly collection: AnnotationCollection;
43
+ /**
44
+ * @inheritDoc
45
+ */
46
+ static get pluginName(): "Annotations";
47
+ /**
48
+ * @inheritDoc
49
+ */
50
+ constructor(context: Context | Editor);
51
+ /**
52
+ * Adds an annotation to the collection.
53
+ */
54
+ add(annotation: Annotation): void;
55
+ /**
56
+ * Removes the given annotation from the collection.
57
+ */
58
+ remove(annotation: Annotation): void;
59
+ /**
60
+ * Refreshes the visibility of annotations based on the visibility of their annotation targets.
61
+ *
62
+ * This method should be called when one or more annotations' targets changed their visibility,
63
+ * for example when one of the editors was shown or hidden.
64
+ *
65
+ * This method recalculates all annotations' {@link module:comments/annotations/annotation~Annotation#isVisible `isVisible`} property.
66
+ */
67
+ refreshVisibility(): void;
68
+ /**
69
+ * Refreshes the positioning of all visible annotations and sorts them topmost and leftmost.
70
+ */
71
+ refreshPositioning(): void;
72
+ /**
73
+ * Returns the annotation that "contains" the given annotation view's inner view.
74
+ */
75
+ getByInnerView(innerView: View): Annotation | undefined;
76
+ /**
77
+ * Deactivates all active annotations.
78
+ *
79
+ * @fires _deactivateAllAnnotations
80
+ */
81
+ deactivateAll(): void;
82
+ /**
83
+ * @inheritDoc
84
+ */
85
+ destroy(): void;
86
+ /**
87
+ * Activates the given annotation.
88
+ *
89
+ * If annotations UI that handles the given annotation already has an active annotation,
90
+ * then it deactivates it and activates the provided one.
91
+ *
92
+ * @fires _activateAnnotation
93
+ */
94
+ activate(annotation: Annotation): void;
95
+ /**
96
+ * Creates an annotation.
97
+ *
98
+ * ```ts
99
+ * const annotationView = annotations.createAnnotationView( editor.locale, innerView );
100
+ *
101
+ * const annotation = annotations.createAnnotation( {
102
+ * view: annotationView,
103
+ * target: document.getElementById( 'target' ),
104
+ * type: 'comment'
105
+ * } );
106
+ * ```
107
+ *
108
+ * @returns An annotation.
109
+ */
110
+ createAnnotation(options: AnnotationOptions): Annotation;
111
+ /**
112
+ * Creates an annotation view wrapper for the annotation content.
113
+ *
114
+ * ```ts
115
+ * const innerView = createCustomView();
116
+ * const annotationView = annotations.createAnnotationView( editor.locale, innerView );
117
+ * ```
118
+ *
119
+ * @returns An annotation view.
120
+ */
121
+ createAnnotationView(locale: Locale, view: AnnotationMainView): AnnotationView;
122
+ }
123
+ /**
124
+ * The configuration options which are used to create new {@link module:comments/annotations/annotation~Annotation annotations}.
125
+ *
126
+ * @param view The annotation view.
127
+ * @param target The annotation target.
128
+ * @param type The annotation type.
129
+ * @param isVisible The initial visibility of the annotation.
130
+ */
131
+ export interface AnnotationOptions {
132
+ view: AnnotationView;
133
+ target: AnnotationTarget;
134
+ type: string | (() => string);
135
+ isVisible?: boolean;
136
+ }
137
+ /**
138
+ * An internal event that fires when the annotation should be activated.
139
+ *
140
+ * @eventName ~Annotations#_activateAnnotation
141
+ */
142
+ export type ActivateAnnotationEvent = {
143
+ name: '_activateAnnotation';
144
+ args: [annotation: Annotation];
145
+ };
146
+ /**
147
+ * An internal event that fires when all annotations should be deactivated.
148
+ *
149
+ * @eventName ~Annotations#_deactivateAllAnnotations
150
+ */
151
+ export type DeactivateAllAnnotationsEvent = {
152
+ name: '_deactivateAllAnnotations';
153
+ args: [];
154
+ };
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2741=['view','remove','refreshVisibility','pluginName','getByInnerView','element','Annotations','focusTracker','set','stopListening','collection','change:isVisible','refreshPositioning','activeAnnotations','isVisible','createAnnotationView','_deactivateAllAnnotations','deactivateAll','_visibleAnnotations','has','createAnnotation','_activateAnnotation','destroy','add','delete','_removeActiveAnnotation','activate'];(function(_0x575018,_0x2741b8){const _0x558989=function(_0x4236f4){while(--_0x4236f4){_0x575018['push'](_0x575018['shift']());}};_0x558989(++_0x2741b8);}(_0x2741,0x1d3));const _0x5589=function(_0x575018,_0x2741b8){_0x575018=_0x575018-0x0;let _0x558989=_0x2741[_0x575018];return _0x558989;};import{ContextPlugin as _0x36b842}from'ckeditor5/src/core';import _0x27df80 from'./annotation';import _0x4c6d8a from'./annotationcollection';import _0x49014c from'./view/annotationview';export default class b extends _0x36b842{static get[_0x5589('0x16')](){return _0x5589('0x19');}constructor(_0x5d7fe1){super(_0x5d7fe1),this[_0x5589('0x2')]=new _0x4c6d8a(),this['_visibleAnnotations']=new _0x4c6d8a(),this[_0x5589('0x0')](_0x5589('0x5'),new Set()),this['_bindAnnotationsToVisibleAnnotations']();}[_0x5589('0xf')](_0x3ac2ea){this[_0x5589('0x2')]['add'](_0x3ac2ea);}['remove'](_0x1fd251){this['collection']['remove'](_0x1fd251),_0x1fd251['destroy']();}[_0x5589('0x15')](){for(const _0x400b3d of this['collection'])_0x400b3d[_0x5589('0x15')]();}[_0x5589('0x4')](){this[_0x5589('0xa')]['refreshPositioning']();}[_0x5589('0x17')](_0x30c02a){return this[_0x5589('0x2')][_0x5589('0x17')](_0x30c02a);}[_0x5589('0x9')](){this['fire'](_0x5589('0x8'));}[_0x5589('0xe')](){for(const _0x8d05fe of this[_0x5589('0x2')])_0x8d05fe[_0x5589('0xe')]();this['_visibleAnnotations'][_0x5589('0xe')](),this[_0x5589('0x2')][_0x5589('0xe')](),super[_0x5589('0xe')]();}[_0x5589('0x12')](_0x119214){this['fire'](_0x5589('0xd'),_0x119214);}[_0x5589('0xc')](_0x58213b){return new _0x27df80(_0x58213b);}[_0x5589('0x7')](_0x2f3e05,_0x37443e){return new _0x49014c(_0x2f3e05,_0x37443e);}['_addActiveAnnotation'](_0x13be01){const _0x1cc4f0=new Set(this['activeAnnotations']);_0x1cc4f0[_0x5589('0xf')](_0x13be01),this['activeAnnotations']=_0x1cc4f0;}[_0x5589('0x11')](_0x3fa313){const _0x5883c7=new Set(this['activeAnnotations']);_0x5883c7[_0x5589('0x10')](_0x3fa313),this[_0x5589('0x5')]=_0x5883c7;}['_bindAnnotationsToVisibleAnnotations'](){const _0x2d2205=this['collection'],_0x522c92=this[_0x5589('0xa')];function _0x5e7d30(_0x35f99e){const _0xe13085=_0x35f99e['source'];_0xe13085[_0x5589('0x6')]&&!_0x522c92[_0x5589('0xb')](_0xe13085)?_0x522c92[_0x5589('0xf')](_0xe13085):!_0xe13085[_0x5589('0x6')]&&_0x522c92['has'](_0xe13085)&&_0x522c92['remove'](_0xe13085),_0xe13085[_0x5589('0x13')][_0x5589('0x1a')][_0x5589('0x14')](_0xe13085[_0x5589('0x13')][_0x5589('0x18')]),_0xe13085[_0x5589('0x13')][_0x5589('0x1a')]['add'](_0xe13085[_0x5589('0x13')][_0x5589('0x18')]);}this['listenTo'](_0x2d2205,_0x5589('0xf'),(_0x18885a,_0x2dcada)=>{_0x2dcada['isVisible']&&_0x522c92[_0x5589('0xf')](_0x2dcada),this['listenTo'](_0x2dcada,_0x5589('0x3'),_0x5e7d30);}),this['listenTo'](_0x2d2205,'remove',(_0x245b7c,_0xb424ff)=>{_0x522c92['has'](_0xb424ff)&&_0x522c92['remove'](_0xb424ff),this[_0x5589('0x1')](_0xb424ff,_0x5589('0x3'),_0x5e7d30);});}}
23
+ const _0x2fc5=['deactivateAll','createAnnotation','stopListening','activeAnnotations','_activateAnnotation','activate','collection','createAnnotationView','delete','set','destroy','_removeActiveAnnotation','element','isVisible','refreshPositioning','_deactivateAllAnnotations','pluginName','source','view','change:isVisible','_visibleAnnotations','remove','listenTo','_bindAnnotationsToVisibleAnnotations','getByInnerView','has','Annotations','fire','add'];(function(_0x2039ff,_0x2fc512){const _0x1005e3=function(_0x20aa12){while(--_0x20aa12){_0x2039ff['push'](_0x2039ff['shift']());}};_0x1005e3(++_0x2fc512);}(_0x2fc5,0xeb));const _0x1005=function(_0x2039ff,_0x2fc512){_0x2039ff=_0x2039ff-0x0;let _0x1005e3=_0x2fc5[_0x2039ff];return _0x1005e3;};import{ContextPlugin as _0x202184}from'ckeditor5/src/core';import _0x4db80b from'./annotation';import _0x46d8cf from'./annotationcollection';import _0x3dc909 from'./view/annotationview';export default class b extends _0x202184{static get[_0x1005('0xd')](){return _0x1005('0x17');}constructor(_0x5de84f){super(_0x5de84f),this[_0x1005('0x3')]=new _0x46d8cf(),this['_visibleAnnotations']=new _0x46d8cf(),this[_0x1005('0x6')](_0x1005('0x0'),new Set()),this[_0x1005('0x14')]();}[_0x1005('0x19')](_0x344d87){this[_0x1005('0x3')][_0x1005('0x19')](_0x344d87);}[_0x1005('0x12')](_0x52aa76){this['collection'][_0x1005('0x12')](_0x52aa76),_0x52aa76[_0x1005('0x7')]();}['refreshVisibility'](){for(const _0xf8e732 of this[_0x1005('0x3')])_0xf8e732['refreshVisibility']();}[_0x1005('0xb')](){this[_0x1005('0x11')]['refreshPositioning']();}[_0x1005('0x15')](_0x19c69e){return this[_0x1005('0x3')][_0x1005('0x15')](_0x19c69e);}[_0x1005('0x1a')](){this[_0x1005('0x18')](_0x1005('0xc'));}[_0x1005('0x7')](){for(const _0x2c9288 of this[_0x1005('0x3')])_0x2c9288['destroy']();this[_0x1005('0x11')][_0x1005('0x7')](),this[_0x1005('0x3')][_0x1005('0x7')](),super[_0x1005('0x7')]();}[_0x1005('0x2')](_0x20f666){this['fire'](_0x1005('0x1'),_0x20f666);}[_0x1005('0x1b')](_0x9d00ad){return new _0x4db80b(_0x9d00ad);}[_0x1005('0x4')](_0x105b98,_0x57df5c){return new _0x3dc909(_0x105b98,_0x57df5c);}['_addActiveAnnotation'](_0x4116e1){const _0x20ea4e=new Set(this['activeAnnotations']);_0x20ea4e[_0x1005('0x19')](_0x4116e1),this[_0x1005('0x0')]=_0x20ea4e;}[_0x1005('0x8')](_0x292139){const _0x1b0155=new Set(this[_0x1005('0x0')]);_0x1b0155[_0x1005('0x5')](_0x292139),this[_0x1005('0x0')]=_0x1b0155;}[_0x1005('0x14')](){const _0x5e66f7=this['collection'],_0x37a79f=this[_0x1005('0x11')];function _0xae28c4(_0x3b3cda){const _0x166e3e=_0x3b3cda[_0x1005('0xe')];_0x166e3e[_0x1005('0xa')]&&!_0x37a79f[_0x1005('0x16')](_0x166e3e)?_0x37a79f['add'](_0x166e3e):!_0x166e3e[_0x1005('0xa')]&&_0x37a79f[_0x1005('0x16')](_0x166e3e)&&_0x37a79f[_0x1005('0x12')](_0x166e3e),_0x166e3e[_0x1005('0xf')]['focusTracker'][_0x1005('0x12')](_0x166e3e['view'][_0x1005('0x9')]),_0x166e3e['view']['focusTracker']['add'](_0x166e3e[_0x1005('0xf')][_0x1005('0x9')]);}this['listenTo'](_0x5e66f7,_0x1005('0x19'),(_0x104dc4,_0x2ab8c5)=>{_0x2ab8c5[_0x1005('0xa')]&&_0x37a79f['add'](_0x2ab8c5),this[_0x1005('0x13')](_0x2ab8c5,'change:isVisible',_0xae28c4);}),this[_0x1005('0x13')](_0x5e66f7,_0x1005('0x12'),(_0x23d4da,_0x11a9d5)=>{_0x37a79f['has'](_0x11a9d5)&&_0x37a79f[_0x1005('0x12')](_0x11a9d5),this[_0x1005('0x1c')](_0x11a9d5,_0x1005('0x10'),_0xae28c4);});}}