@ckeditor/ckeditor5-comments 39.0.1 → 40.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/CHANGELOG.md +2 -2
  2. package/LICENSE.md +6 -6
  3. package/README.md +14 -14
  4. package/build/comments.js +1 -1
  5. package/build/translations/fa.js +1 -1
  6. package/build/translations/pt-br.js +1 -1
  7. package/lang/translations/af.po +1 -0
  8. package/lang/translations/ar.po +1 -0
  9. package/lang/translations/bg.po +1 -0
  10. package/lang/translations/bn.po +1 -0
  11. package/lang/translations/bs.po +1 -0
  12. package/lang/translations/ca.po +1 -0
  13. package/lang/translations/cs.po +1 -0
  14. package/lang/translations/da.po +1 -0
  15. package/lang/translations/de-ch.po +1 -0
  16. package/lang/translations/de.po +1 -0
  17. package/lang/translations/el.po +1 -0
  18. package/lang/translations/en-au.po +1 -0
  19. package/lang/translations/en.po +1 -0
  20. package/lang/translations/es-co.po +1 -0
  21. package/lang/translations/es.po +1 -0
  22. package/lang/translations/et.po +1 -0
  23. package/lang/translations/fa.po +10 -9
  24. package/lang/translations/fi.po +1 -0
  25. package/lang/translations/fr.po +1 -0
  26. package/lang/translations/gl.po +1 -0
  27. package/lang/translations/he.po +1 -0
  28. package/lang/translations/hi.po +1 -0
  29. package/lang/translations/hr.po +1 -0
  30. package/lang/translations/hu.po +1 -0
  31. package/lang/translations/id.po +1 -0
  32. package/lang/translations/it.po +1 -0
  33. package/lang/translations/ja.po +1 -0
  34. package/lang/translations/jv.po +1 -0
  35. package/lang/translations/ko.po +1 -0
  36. package/lang/translations/lt.po +1 -0
  37. package/lang/translations/lv.po +1 -0
  38. package/lang/translations/ms.po +1 -0
  39. package/lang/translations/nl.po +1 -0
  40. package/lang/translations/no.po +1 -0
  41. package/lang/translations/pl.po +1 -0
  42. package/lang/translations/pt-br.po +4 -3
  43. package/lang/translations/pt.po +1 -0
  44. package/lang/translations/ro.po +1 -0
  45. package/lang/translations/ru.po +1 -0
  46. package/lang/translations/sk.po +1 -0
  47. package/lang/translations/sq.po +1 -0
  48. package/lang/translations/sr-latn.po +1 -0
  49. package/lang/translations/sr.po +1 -0
  50. package/lang/translations/sv.po +1 -0
  51. package/lang/translations/th.po +1 -0
  52. package/lang/translations/tk.po +1 -0
  53. package/lang/translations/tr.po +1 -0
  54. package/lang/translations/tt.po +1 -0
  55. package/lang/translations/ug.po +1 -0
  56. package/lang/translations/uk.po +1 -0
  57. package/lang/translations/ur.po +1 -0
  58. package/lang/translations/vi.po +1 -0
  59. package/lang/translations/zh-cn.po +1 -0
  60. package/lang/translations/zh.po +1 -0
  61. package/package.json +3 -7
  62. package/src/annotations/annotation.d.ts +90 -90
  63. package/src/annotations/annotation.js +1 -1
  64. package/src/annotations/annotationcollection.d.ts +98 -98
  65. package/src/annotations/annotationcollection.js +1 -1
  66. package/src/annotations/annotations.d.ts +154 -154
  67. package/src/annotations/annotations.js +1 -1
  68. package/src/annotations/annotationsuis.d.ts +232 -232
  69. package/src/annotations/annotationsuis.js +1 -1
  70. package/src/annotations/editorannotations.d.ts +67 -67
  71. package/src/annotations/editorannotations.js +1 -1
  72. package/src/annotations/inlineannotations.d.ts +90 -90
  73. package/src/annotations/inlineannotations.js +1 -1
  74. package/src/annotations/narrowsidebar.d.ts +85 -85
  75. package/src/annotations/narrowsidebar.js +1 -1
  76. package/src/annotations/sidebar.d.ts +100 -100
  77. package/src/annotations/sidebar.js +1 -1
  78. package/src/annotations/view/annotationcounterbuttonview.d.ts +29 -29
  79. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  80. package/src/annotations/view/annotationview.d.ts +90 -90
  81. package/src/annotations/view/annotationview.js +1 -1
  82. package/src/annotations/view/sidebaritemview.d.ts +55 -55
  83. package/src/annotations/view/sidebaritemview.js +1 -1
  84. package/src/annotations/view/sidebarview.d.ts +32 -32
  85. package/src/annotations/view/sidebarview.js +1 -1
  86. package/src/annotations/widesidebar.d.ts +77 -77
  87. package/src/annotations/widesidebar.js +1 -1
  88. package/src/augmentation.d.ts +52 -52
  89. package/src/comments/addcommentthreadcommand.d.ts +35 -35
  90. package/src/comments/addcommentthreadcommand.js +1 -1
  91. package/src/comments/commentsarchive.d.ts +31 -31
  92. package/src/comments/commentsarchive.js +1 -1
  93. package/src/comments/commentsarchiveui.d.ts +38 -38
  94. package/src/comments/commentsarchiveui.js +1 -1
  95. package/src/comments/commentsediting.d.ts +79 -79
  96. package/src/comments/commentsediting.js +1 -1
  97. package/src/comments/commentsrepository.d.ts +1129 -1105
  98. package/src/comments/commentsrepository.js +1 -1
  99. package/src/comments/commentsui.d.ts +33 -33
  100. package/src/comments/commentsui.js +1 -1
  101. package/src/comments/integrations/commentsrestrictededitingmode.d.ts +17 -17
  102. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  103. package/src/comments/integrations/importword.d.ts +21 -21
  104. package/src/comments/integrations/importword.js +1 -1
  105. package/src/comments/ui/commenteditor/commenteditor.d.ts +36 -36
  106. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  107. package/src/comments/ui/commenteditor/commenteditorui.d.ts +31 -31
  108. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  109. package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +36 -36
  110. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  111. package/src/comments/ui/commentthreadcontroller.d.ts +64 -64
  112. package/src/comments/ui/commentthreadcontroller.js +1 -1
  113. package/src/comments/ui/view/basecommentthreadview.d.ts +119 -112
  114. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  115. package/src/comments/ui/view/basecommentview.d.ts +112 -112
  116. package/src/comments/ui/view/basecommentview.js +1 -1
  117. package/src/comments/ui/view/collapsedcommentsview.d.ts +13 -13
  118. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  119. package/src/comments/ui/view/commentcontentview.d.ts +14 -14
  120. package/src/comments/ui/view/commentcontentview.js +1 -1
  121. package/src/comments/ui/view/commentinputview.d.ts +86 -86
  122. package/src/comments/ui/view/commentinputview.js +1 -1
  123. package/src/comments/ui/view/commentsarchiveview.d.ts +38 -38
  124. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  125. package/src/comments/ui/view/commentslistview.d.ts +100 -100
  126. package/src/comments/ui/view/commentslistview.js +1 -1
  127. package/src/comments/ui/view/commentthreadheaderview.d.ts +50 -50
  128. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  129. package/src/comments/ui/view/commentthreadinputview.d.ts +41 -41
  130. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  131. package/src/comments/ui/view/commentthreadview.d.ts +118 -117
  132. package/src/comments/ui/view/commentthreadview.js +1 -1
  133. package/src/comments/ui/view/commentview.d.ts +243 -243
  134. package/src/comments/ui/view/commentview.js +1 -1
  135. package/src/comments.d.ts +35 -35
  136. package/src/comments.js +1 -1
  137. package/src/commentsonly.d.ts +33 -33
  138. package/src/commentsonly.js +1 -1
  139. package/src/config.d.ts +176 -176
  140. package/src/index.d.ts +24 -24
  141. package/src/utils/common-translations.d.ts +9 -9
  142. package/src/utils/common-translations.js +1 -1
  143. package/src/utils/createmutationobserver.d.ts +14 -14
  144. package/src/utils/createmutationobserver.js +1 -1
  145. package/theme/annotation-inline.css +2 -1
  146. package/theme/annotation.css +2 -3
  147. package/theme/comment.css +39 -38
  148. package/theme/commentinput.css +2 -1
  149. package/theme/commentmarker.css +7 -6
  150. package/theme/commentsarchive.css +2 -1
  151. package/theme/commentthread.css +68 -57
  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 +4 -3
  157. package/theme/sidebar.css +13 -12
@@ -1,90 +1,90 @@
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/view/annotationview
7
- * @publicApi
8
- */
9
- import { View, type ViewCollection } from 'ckeditor5/src/ui';
10
- import { FocusTracker, KeystrokeHandler, type Rect, type Locale } from 'ckeditor5/src/utils';
11
- import '../../../theme/annotation.css';
12
- /**
13
- * A wrapping view for any view added to the `Annotations` plugin.
14
- *
15
- * It introduces functionalities that make the given view ready to be used as an annotation, such as focus tracking, height resizing,
16
- * and other observable properties that help share current annotation state across different UIs.
17
- */
18
- export default class AnnotationView extends View {
19
- /**
20
- * Tracks focus on the annotation view.
21
- *
22
- * Add a DOM element to this focus tracker to prevent blurring annotation view
23
- * when the DOM element is focused.
24
- */
25
- readonly focusTracker: FocusTracker;
26
- readonly id: string;
27
- readonly keystrokes: KeystrokeHandler;
28
- /**
29
- * Target rectangle to which the annotation should be attached.
30
- *
31
- * @observable
32
- */
33
- targetRect: Rect | null;
34
- /**
35
- * Annotation view height.
36
- *
37
- * @observable
38
- */
39
- height: number;
40
- /**
41
- * Informs if an annotation is active.
42
- *
43
- * @observable
44
- */
45
- isActive: boolean;
46
- /**
47
- * Informs if there are unsaved changes in the annotation.
48
- *
49
- * @observable
50
- */
51
- isDirty: boolean;
52
- /**
53
- * The number of items in the annotation.
54
- *
55
- * @observable
56
- */
57
- length: number;
58
- /**
59
- * @observable
60
- */
61
- type: string;
62
- element: HTMLElement;
63
- /**
64
- * Collection for content views.
65
- */
66
- content: ViewCollection;
67
- /**
68
- * The inner annotation view.
69
- */
70
- mainView: AnnotationMainView;
71
- /**
72
- * @inheritDoc
73
- */
74
- constructor(locale: Locale, mainView: AnnotationMainView);
75
- /**
76
- * @inheritDoc
77
- */
78
- render(): void;
79
- /**
80
- * @inheritDoc
81
- */
82
- destroy(): void;
83
- /**
84
- * Focuses the annotation view.
85
- */
86
- focus(): void;
87
- }
88
- export interface AnnotationMainView extends View {
89
- isActive: boolean;
90
- }
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/view/annotationview
7
+ * @publicApi
8
+ */
9
+ import { View, type ViewCollection } from 'ckeditor5/src/ui';
10
+ import { FocusTracker, KeystrokeHandler, type Rect, type Locale } from 'ckeditor5/src/utils';
11
+ import '../../../theme/annotation.css';
12
+ /**
13
+ * A wrapping view for any view added to the `Annotations` plugin.
14
+ *
15
+ * It introduces functionalities that make the given view ready to be used as an annotation, such as focus tracking, height resizing,
16
+ * and other observable properties that help share current annotation state across different UIs.
17
+ */
18
+ export default class AnnotationView extends View {
19
+ /**
20
+ * Tracks focus on the annotation view.
21
+ *
22
+ * Add a DOM element to this focus tracker to prevent blurring annotation view
23
+ * when the DOM element is focused.
24
+ */
25
+ readonly focusTracker: FocusTracker;
26
+ readonly id: string;
27
+ readonly keystrokes: KeystrokeHandler;
28
+ /**
29
+ * Target rectangle to which the annotation should be attached.
30
+ *
31
+ * @observable
32
+ */
33
+ targetRect: Rect | null;
34
+ /**
35
+ * Annotation view height.
36
+ *
37
+ * @observable
38
+ */
39
+ height: number;
40
+ /**
41
+ * Informs if an annotation is active.
42
+ *
43
+ * @observable
44
+ */
45
+ isActive: boolean;
46
+ /**
47
+ * Informs if there are unsaved changes in the annotation.
48
+ *
49
+ * @observable
50
+ */
51
+ isDirty: boolean;
52
+ /**
53
+ * The number of items in the annotation.
54
+ *
55
+ * @observable
56
+ */
57
+ length: number;
58
+ /**
59
+ * @observable
60
+ */
61
+ type: string;
62
+ element: HTMLElement;
63
+ /**
64
+ * Collection for content views.
65
+ */
66
+ content: ViewCollection;
67
+ /**
68
+ * The inner annotation view.
69
+ */
70
+ mainView: AnnotationMainView;
71
+ /**
72
+ * @inheritDoc
73
+ */
74
+ constructor(locale: Locale, mainView: AnnotationMainView);
75
+ /**
76
+ * @inheritDoc
77
+ */
78
+ render(): void;
79
+ /**
80
+ * @inheritDoc
81
+ */
82
+ destroy(): void;
83
+ /**
84
+ * Focuses the annotation view.
85
+ */
86
+ focus(): void;
87
+ }
88
+ export interface AnnotationMainView extends View {
89
+ isActive: boolean;
90
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5bf1=['listenTo','length','clear','Esc','focus','mainView','bindTemplate','_mutationObserver','keystrokes','detach','focusTracker','content','render','height','_updateHeight','element','targetRect','set','isDirty','destroy','fire','createCollection','clientHeight','ck-annotation-wrapper--active','ck-annotation-wrapper','isActive','ck-rounded-corners'];(function(_0x219a45,_0x5bf183){const _0x21143b=function(_0x1a7940){while(--_0x1a7940){_0x219a45['push'](_0x219a45['shift']());}};_0x21143b(++_0x5bf183);}(_0x5bf1,0xf1));const _0x2114=function(_0x219a45,_0x5bf183){_0x219a45=_0x219a45-0x0;let _0x21143b=_0x5bf1[_0x219a45];return _0x21143b;};import{View as _0x2414d1}from'ckeditor5/src/ui';import{FocusTracker as _0x1a4edf,KeystrokeHandler as _0x20912c,uid as _0x34b6cc}from'ckeditor5/src/utils';import _0xf2b911 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x2414d1{constructor(_0x43b6e3,_0x1d5450){super(_0x43b6e3),this['id']=_0x34b6cc(),this[_0x2114('0xc')]=new _0x1a4edf(),this[_0x2114('0xa')]=new _0x20912c(),this[_0x2114('0xa')]['set'](_0x2114('0x5'),(_0x3e52c8,_0x44a500)=>this[_0x2114('0x16')](_0x2114('0x5'),_0x44a500)),this['set'](_0x2114('0x12'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set'](_0x2114('0xf'),0x0),this[_0x2114('0x13')](_0x2114('0x0'),!0x1),this[_0x2114('0x13')](_0x2114('0x14'),!0x1),this[_0x2114('0x13')](_0x2114('0x3'),0x0),this['set']('type',''),this['_mutationObserver']=_0xf2b911(()=>this[_0x2114('0x10')]()),this['content']=this[_0x2114('0x17')](),this[_0x2114('0xd')]['add'](_0x1d5450),this[_0x2114('0x7')]=_0x1d5450;const _0x33f60e=this[_0x2114('0x8')];this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x2114('0x1a'),_0x2114('0x1'),_0x33f60e['if']('isActive',_0x2114('0x19'))],'tabindex':-0x1},'children':this[_0x2114('0xd')]});}[_0x2114('0xe')](){super[_0x2114('0xe')](),this[_0x2114('0xc')]['add'](this[_0x2114('0x11')]),this[_0x2114('0xa')][_0x2114('0x2')](this[_0x2114('0x11')]),this[_0x2114('0x9')]['attach'](this[_0x2114('0x11')]);}[_0x2114('0x15')](){this[_0x2114('0xd')][_0x2114('0x4')](),this[_0x2114('0xa')]['destroy'](),this[_0x2114('0xc')][_0x2114('0x15')](),this[_0x2114('0x9')][_0x2114('0xb')](),super[_0x2114('0x15')]();}[_0x2114('0x6')](){this['element'][_0x2114('0x6')]();}[_0x2114('0x10')](){const _0x4c6cb8=this['element'][_0x2114('0x18')];_0x4c6cb8&&(this['height']=_0x4c6cb8);}}
23
+ const _0x40b4=['destroy','mainView','_mutationObserver','ck-annotation-wrapper','fire','clear','height','focus','set','isDirty','focusTracker','add','isActive','keystrokes','length','_updateHeight','ck-rounded-corners','listenTo','bindTemplate','createCollection','content','setTemplate','element'];(function(_0x3dd90c,_0x40b4e5){const _0x3e181a=function(_0x49d297){while(--_0x49d297){_0x3dd90c['push'](_0x3dd90c['shift']());}};_0x3e181a(++_0x40b4e5);}(_0x40b4,0x168));const _0x3e18=function(_0x3dd90c,_0x40b4e5){_0x3dd90c=_0x3dd90c-0x0;let _0x3e181a=_0x40b4[_0x3dd90c];return _0x3e181a;};import{View as _0x2ff44e}from'ckeditor5/src/ui';import{FocusTracker as _0x140637,KeystrokeHandler as _0x8f6e8a,uid as _0x269b70}from'ckeditor5/src/utils';import _0x4796c8 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x2ff44e{constructor(_0x55b29f,_0x38e050){super(_0x55b29f),this['id']=_0x269b70(),this[_0x3e18('0x12')]=new _0x140637(),this[_0x3e18('0x15')]=new _0x8f6e8a(),this[_0x3e18('0x15')][_0x3e18('0x10')]('Esc',(_0x97fddd,_0x1e9cdf)=>this[_0x3e18('0xc')]('Esc',_0x1e9cdf)),this[_0x3e18('0x10')]('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x3e18('0x10')]('height',0x0),this['set'](_0x3e18('0x14'),!0x1),this[_0x3e18('0x10')](_0x3e18('0x11'),!0x1),this[_0x3e18('0x10')](_0x3e18('0x16'),0x0),this[_0x3e18('0x10')]('type',''),this[_0x3e18('0xa')]=_0x4796c8(()=>this[_0x3e18('0x0')]()),this[_0x3e18('0x5')]=this[_0x3e18('0x4')](),this[_0x3e18('0x5')][_0x3e18('0x13')](_0x38e050),this[_0x3e18('0x9')]=_0x38e050;const _0x3d4a6b=this[_0x3e18('0x3')];this[_0x3e18('0x6')]({'tag':'div','attributes':{'class':['ck',_0x3e18('0xb'),_0x3e18('0x1'),_0x3d4a6b['if'](_0x3e18('0x14'),'ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this[_0x3e18('0x5')]});}['render'](){super['render'](),this['focusTracker']['add'](this['element']),this[_0x3e18('0x15')][_0x3e18('0x2')](this[_0x3e18('0x7')]),this[_0x3e18('0xa')]['attach'](this[_0x3e18('0x7')]);}['destroy'](){this[_0x3e18('0x5')][_0x3e18('0xd')](),this[_0x3e18('0x15')][_0x3e18('0x8')](),this['focusTracker'][_0x3e18('0x8')](),this['_mutationObserver']['detach'](),super[_0x3e18('0x8')]();}[_0x3e18('0xf')](){this[_0x3e18('0x7')]['focus']();}[_0x3e18('0x0')](){const _0x40ee8b=this['element']['clientHeight'];_0x40ee8b&&(this[_0x3e18('0xe')]=_0x40ee8b);}}
@@ -1,55 +1,55 @@
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/view/sidebaritemview
7
- * @publicApi
8
- */
9
- import { View, type ViewCollection } from 'ckeditor5/src/ui';
10
- import { type Locale } from 'ckeditor5/src/utils';
11
- /**
12
- * A wrapper view that wraps given {@link module:ui/view~View} to display it as a {@link module:comments/annotations/sidebar~Sidebar} item.
13
- */
14
- export default class SidebarItemView extends View {
15
- element: HTMLElement;
16
- /**
17
- * The item top offset.
18
- * Setting `0` as the initial value makes new items falling from heaven.
19
- *
20
- * @observable
21
- */
22
- top: number;
23
- /**
24
- * @observable
25
- */
26
- bottom: number;
27
- /**
28
- * @observable
29
- */
30
- height: number;
31
- /**
32
- * @observable
33
- */
34
- isAnimationDisabled: boolean;
35
- /**
36
- * A collection of content views.
37
- */
38
- content: ViewCollection;
39
- /**
40
- * @inheritDoc
41
- */
42
- constructor(locale: Locale);
43
- /**
44
- * @inheritDoc
45
- */
46
- render(): void;
47
- /**
48
- * Updates {@link #height the height property} according to the element's DOM height.
49
- */
50
- updateHeight(): void;
51
- /**
52
- * @inheritDoc
53
- */
54
- destroy(): void;
55
- }
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/view/sidebaritemview
7
+ * @publicApi
8
+ */
9
+ import { View, type ViewCollection } from 'ckeditor5/src/ui';
10
+ import { type Locale } from 'ckeditor5/src/utils';
11
+ /**
12
+ * A wrapper view that wraps given {@link module:ui/view~View} to display it as a {@link module:comments/annotations/sidebar~Sidebar} item.
13
+ */
14
+ export default class SidebarItemView extends View {
15
+ element: HTMLElement;
16
+ /**
17
+ * The item top offset.
18
+ * Setting `0` as the initial value makes new items falling from heaven.
19
+ *
20
+ * @observable
21
+ */
22
+ top: number;
23
+ /**
24
+ * @observable
25
+ */
26
+ bottom: number;
27
+ /**
28
+ * @observable
29
+ */
30
+ height: number;
31
+ /**
32
+ * @observable
33
+ */
34
+ isAnimationDisabled: boolean;
35
+ /**
36
+ * A collection of content views.
37
+ */
38
+ content: ViewCollection;
39
+ /**
40
+ * @inheritDoc
41
+ */
42
+ constructor(locale: Locale);
43
+ /**
44
+ * @inheritDoc
45
+ */
46
+ render(): void;
47
+ /**
48
+ * Updates {@link #height the height property} according to the element's DOM height.
49
+ */
50
+ updateHeight(): void;
51
+ /**
52
+ * @inheritDoc
53
+ */
54
+ destroy(): void;
55
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4cd9=['set','ck-sidebar-item','createCollection','attach','render','element','top','height','destroy','ck-sidebar-item--no-animation','bottom','content','clientHeight','setTemplate','isAnimationDisabled','_mutationObserver'];(function(_0x3ac335,_0x4cd9e0){const _0x1bd2de=function(_0x4832d4){while(--_0x4832d4){_0x3ac335['push'](_0x3ac335['shift']());}};_0x1bd2de(++_0x4cd9e0);}(_0x4cd9,0x15b));const _0x1bd2=function(_0x3ac335,_0x4cd9e0){_0x3ac335=_0x3ac335-0x0;let _0x1bd2de=_0x4cd9[_0x3ac335];return _0x1bd2de;};import{View as _0x1104c4}from'ckeditor5/src/ui';import{toUnit as _0x2afbe6}from'ckeditor5/src/utils';import _0x5b5912 from'../../utils/createmutationobserver';const At=_0x2afbe6('px');export default class C extends _0x1104c4{constructor(_0x26f921){super(_0x26f921),this[_0x1bd2('0x5')](_0x1bd2('0xb'),0x0),this[_0x1bd2('0x5')]('height',0x0),this['bind'](_0x1bd2('0xf'))['to'](this,_0x1bd2('0xb'),this,'height',(_0x5a2de1,_0x49780c)=>_0x5a2de1+_0x49780c),this[_0x1bd2('0x5')](_0x1bd2('0x3'),!0x1),this['_mutationObserver']=_0x5b5912(()=>this['updateHeight']()),this['_targetTop']=null,this[_0x1bd2('0x0')]=this[_0x1bd2('0x7')]();const _0x1d6592=this['bindTemplate'];this[_0x1bd2('0x2')]({'tag':'div','attributes':{'class':[_0x1bd2('0x6'),_0x1d6592['to'](_0x1bd2('0x3'),_0x44f2c2=>_0x44f2c2?_0x1bd2('0xe'):'')],'style':{'top':_0x1d6592['to'](_0x1bd2('0xb'),_0x421acf=>At(_0x421acf))}},'children':this[_0x1bd2('0x0')]});}[_0x1bd2('0x9')](){super[_0x1bd2('0x9')](),this[_0x1bd2('0x4')][_0x1bd2('0x8')](this[_0x1bd2('0xa')]);}['updateHeight'](){const _0x550b54=this[_0x1bd2('0xa')][_0x1bd2('0x1')];_0x550b54&&(this[_0x1bd2('0xc')]=_0x550b54);}['destroy'](){this[_0x1bd2('0x0')]['clear'](),this[_0x1bd2('0x4')]['detach'](),super[_0x1bd2('0xd')]();}}
23
+ const _0x4701=['_targetTop','bind','attach','destroy','ck-sidebar-item--no-animation','detach','updateHeight','ck-sidebar-item','top','set','content','bottom','_mutationObserver','isAnimationDisabled','height','clientHeight','element','render','setTemplate','clear'];(function(_0x103c55,_0x470168){const _0x3075e3=function(_0x28723b){while(--_0x28723b){_0x103c55['push'](_0x103c55['shift']());}};_0x3075e3(++_0x470168);}(_0x4701,0xa8));const _0x3075=function(_0x103c55,_0x470168){_0x103c55=_0x103c55-0x0;let _0x3075e3=_0x4701[_0x103c55];return _0x3075e3;};import{View as _0x2c198c}from'ckeditor5/src/ui';import{toUnit as _0x256a28}from'ckeditor5/src/utils';import _0x403f99 from'../../utils/createmutationobserver';const At=_0x256a28('px');export default class C extends _0x2c198c{constructor(_0x27619d){super(_0x27619d),this[_0x3075('0x1')](_0x3075('0x0'),0x0),this[_0x3075('0x1')](_0x3075('0x6'),0x0),this[_0x3075('0xd')](_0x3075('0x3'))['to'](this,_0x3075('0x0'),this,_0x3075('0x6'),(_0x4e3fe7,_0x213aa6)=>_0x4e3fe7+_0x213aa6),this[_0x3075('0x1')](_0x3075('0x5'),!0x1),this[_0x3075('0x4')]=_0x403f99(()=>this['updateHeight']()),this[_0x3075('0xc')]=null,this[_0x3075('0x2')]=this['createCollection']();const _0xbff470=this['bindTemplate'];this[_0x3075('0xa')]({'tag':'div','attributes':{'class':[_0x3075('0x13'),_0xbff470['to'](_0x3075('0x5'),_0x2ef87e=>_0x2ef87e?_0x3075('0x10'):'')],'style':{'top':_0xbff470['to'](_0x3075('0x0'),_0x1e33a4=>At(_0x1e33a4))}},'children':this[_0x3075('0x2')]});}[_0x3075('0x9')](){super[_0x3075('0x9')](),this['_mutationObserver'][_0x3075('0xe')](this[_0x3075('0x8')]);}[_0x3075('0x12')](){const _0x2a4162=this[_0x3075('0x8')][_0x3075('0x7')];_0x2a4162&&(this[_0x3075('0x6')]=_0x2a4162);}[_0x3075('0xf')](){this[_0x3075('0x2')][_0x3075('0xb')](),this[_0x3075('0x4')][_0x3075('0x11')](),super[_0x3075('0xf')]();}}
@@ -1,32 +1,32 @@
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/view/sidebarview
7
- * @publicApi
8
- */
9
- import { View, type ViewCollection } from 'ckeditor5/src/ui';
10
- import { type Locale } from 'ckeditor5/src/utils';
11
- import '../../../theme/sidebar.css';
12
- /**
13
- * The sidebar view class that displays the collection of sidebar item views.
14
- */
15
- export default class SidebarView extends View {
16
- /**
17
- * @observable
18
- */
19
- minHeight: number | null;
20
- /**
21
- * @observable
22
- */
23
- class: string;
24
- /**
25
- * A collection of sidebar item views.
26
- */
27
- list: ViewCollection;
28
- /**
29
- * @inheritDoc
30
- */
31
- constructor(locale: Locale);
32
- }
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/view/sidebarview
7
+ * @publicApi
8
+ */
9
+ import { View, type ViewCollection } from 'ckeditor5/src/ui';
10
+ import { type Locale } from 'ckeditor5/src/utils';
11
+ import '../../../theme/sidebar.css';
12
+ /**
13
+ * The sidebar view class that displays the collection of sidebar item views.
14
+ */
15
+ export default class SidebarView extends View {
16
+ /**
17
+ * @observable
18
+ */
19
+ minHeight: number | null;
20
+ /**
21
+ * @observable
22
+ */
23
+ class: string;
24
+ /**
25
+ * A collection of sidebar item views.
26
+ */
27
+ list: ViewCollection;
28
+ /**
29
+ * @inheritDoc
30
+ */
31
+ constructor(locale: Locale);
32
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x13f3=['list','set','number','div','setTemplate','ck-reset','minHeight','ck-sidebar','class'];(function(_0x22b394,_0x13f3a6){const _0x49f720=function(_0x3fcff5){while(--_0x3fcff5){_0x22b394['push'](_0x22b394['shift']());}};_0x49f720(++_0x13f3a6);}(_0x13f3,0xf5));const _0x49f7=function(_0x22b394,_0x13f3a6){_0x22b394=_0x22b394-0x0;let _0x49f720=_0x13f3[_0x22b394];return _0x49f720;};import{View as _0x616409}from'ckeditor5/src/ui';import{toUnit as _0x3eadf0}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x3eadf0('px');export default class T extends _0x616409{constructor(_0x140338){super(_0x140338);const _0x2c966b=this['bindTemplate'];this[_0x49f7('0x8')](_0x49f7('0x4'),0x0),this['set']('class',''),this['list']=this['createCollection'](),this[_0x49f7('0x2')]({'tag':_0x49f7('0x1'),'attributes':{'class':['ck',_0x49f7('0x5'),_0x49f7('0x3'),_0x2c966b['to'](_0x49f7('0x6'))],'style':{'minHeight':_0x2c966b['to']('minHeight',_0x54a5cb=>_0x49f7('0x0')==typeof _0x54a5cb?At(_0x54a5cb+0xa):null)}},'children':this[_0x49f7('0x7')]});}}
23
+ const _0xa290=['ck-sidebar','minHeight','class','createCollection','number','div','set','list'];(function(_0x5a43ba,_0xa2901){const _0xdeae24=function(_0x9d482f){while(--_0x9d482f){_0x5a43ba['push'](_0x5a43ba['shift']());}};_0xdeae24(++_0xa2901);}(_0xa290,0x1df));const _0xdeae=function(_0x5a43ba,_0xa2901){_0x5a43ba=_0x5a43ba-0x0;let _0xdeae24=_0xa290[_0x5a43ba];return _0xdeae24;};import{View as _0x5d563d}from'ckeditor5/src/ui';import{toUnit as _0x264c07}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x264c07('px');export default class T extends _0x5d563d{constructor(_0x489542){super(_0x489542);const _0xa08686=this['bindTemplate'];this[_0xdeae('0x7')](_0xdeae('0x2'),0x0),this[_0xdeae('0x7')](_0xdeae('0x3'),''),this[_0xdeae('0x0')]=this[_0xdeae('0x4')](),this['setTemplate']({'tag':_0xdeae('0x6'),'attributes':{'class':['ck',_0xdeae('0x1'),'ck-reset',_0xa08686['to'](_0xdeae('0x3'))],'style':{'minHeight':_0xa08686['to'](_0xdeae('0x2'),_0x264a02=>_0xdeae('0x5')==typeof _0x264a02?At(_0x264a02+0xa):null)}},'children':this[_0xdeae('0x0')]});}}
@@ -1,77 +1,77 @@
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/widesidebar
7
- * @publicApi
8
- */
9
- import { ContextPlugin, Context, type Editor } from 'ckeditor5/src/core';
10
- import AnnotationsUIs, { type AnnotationsUI } from './annotationsuis';
11
- import Sidebar from './sidebar';
12
- import type Annotation from './annotation';
13
- import type { default as AnnotationCollection } from './annotationcollection';
14
- /**
15
- * The wide sidebar UI for displaying annotations.
16
- *
17
- * In this implementation {@link module:comments/annotations/sidebar~Sidebar the sidebar} displays full
18
- * {@link module:comments/annotations/view/annotationview~AnnotationView annotation views}.
19
- *
20
- * To activate this UI use one of the following:
21
- *
22
- * ```ts
23
- * editor.plugins.get( 'AnnotationsUIs' ).switchTo( 'wideSidebar' );
24
- * editor.plugins.get( 'AnnotationsUIs' ).activate( 'wideSidebar', filter );
25
- * ```
26
- *
27
- * See {@link module:comments/annotations/annotationsuis~AnnotationsUIs}.
28
- */
29
- export default class WideSidebar extends ContextPlugin implements AnnotationsUI<ContextPlugin> {
30
- /**
31
- * An active annotation tracked by this UI.
32
- *
33
- * @observable
34
- */
35
- activeAnnotation: Annotation | null;
36
- isAttached: boolean;
37
- /**
38
- * A collection of annotations controlled by this UI.
39
- *
40
- * This property is readonly and should not be operated on directly. Use it only to read which annotations are added to this UI.
41
- *
42
- * It is set to `null` if `WideSidebar` is not {@link module:comments/annotations/widesidebar~WideSidebar#attach attached}.
43
- */
44
- annotations: AnnotationCollection | null;
45
- /**
46
- * @inheritDoc
47
- */
48
- static get requires(): readonly [typeof Sidebar, typeof AnnotationsUIs];
49
- /**
50
- * @inheritDoc
51
- */
52
- static get pluginName(): "WideSidebar";
53
- /**
54
- * @inheritDoc
55
- */
56
- constructor(context: Context | Editor);
57
- /**
58
- * @inheritDoc
59
- */
60
- init(): void;
61
- /**
62
- * Sets the active annotation for this UI.
63
- */
64
- setActiveAnnotation(annotation: Annotation | null): void;
65
- /**
66
- * @inheritDoc
67
- */
68
- attach(annotations: AnnotationCollection): void;
69
- /**
70
- * @inheritDoc
71
- */
72
- detach(): void;
73
- /**
74
- * @inheritDoc
75
- */
76
- destroy(): void;
77
- }
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/widesidebar
7
+ * @publicApi
8
+ */
9
+ import { ContextPlugin, Context, type Editor } from 'ckeditor5/src/core';
10
+ import AnnotationsUIs, { type AnnotationsUI } from './annotationsuis';
11
+ import Sidebar from './sidebar';
12
+ import type Annotation from './annotation';
13
+ import type { default as AnnotationCollection } from './annotationcollection';
14
+ /**
15
+ * The wide sidebar UI for displaying annotations.
16
+ *
17
+ * In this implementation {@link module:comments/annotations/sidebar~Sidebar the sidebar} displays full
18
+ * {@link module:comments/annotations/view/annotationview~AnnotationView annotation views}.
19
+ *
20
+ * To activate this UI use one of the following:
21
+ *
22
+ * ```ts
23
+ * editor.plugins.get( 'AnnotationsUIs' ).switchTo( 'wideSidebar' );
24
+ * editor.plugins.get( 'AnnotationsUIs' ).activate( 'wideSidebar', filter );
25
+ * ```
26
+ *
27
+ * See {@link module:comments/annotations/annotationsuis~AnnotationsUIs}.
28
+ */
29
+ export default class WideSidebar extends ContextPlugin implements AnnotationsUI<ContextPlugin> {
30
+ /**
31
+ * An active annotation tracked by this UI.
32
+ *
33
+ * @observable
34
+ */
35
+ activeAnnotation: Annotation | null;
36
+ isAttached: boolean;
37
+ /**
38
+ * A collection of annotations controlled by this UI.
39
+ *
40
+ * This property is readonly and should not be operated on directly. Use it only to read which annotations are added to this UI.
41
+ *
42
+ * It is set to `null` if `WideSidebar` is not {@link module:comments/annotations/widesidebar~WideSidebar#attach attached}.
43
+ */
44
+ annotations: AnnotationCollection | null;
45
+ /**
46
+ * @inheritDoc
47
+ */
48
+ static get requires(): readonly [typeof Sidebar, typeof AnnotationsUIs];
49
+ /**
50
+ * @inheritDoc
51
+ */
52
+ static get pluginName(): "WideSidebar";
53
+ /**
54
+ * @inheritDoc
55
+ */
56
+ constructor(context: Context | Editor);
57
+ /**
58
+ * @inheritDoc
59
+ */
60
+ init(): void;
61
+ /**
62
+ * Sets the active annotation for this UI.
63
+ */
64
+ setActiveAnnotation(annotation: Annotation | null): void;
65
+ /**
66
+ * @inheritDoc
67
+ */
68
+ attach(annotations: AnnotationCollection): void;
69
+ /**
70
+ * @inheritDoc
71
+ */
72
+ detach(): void;
73
+ /**
74
+ * @inheritDoc
75
+ */
76
+ destroy(): void;
77
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x10b0=['remove','from','stop','detach','ready','WideSidebar','add','annotations','activeAnnotation','addEventListener','EditorAnnotations','get','set','refreshPositioning','addAnnotation','attach','stopListening','has','setActiveAnnotation','pluginName','destroy','_annotations','uiUpdate','set:container','updateTargetRect','register','cancel','ck-sidebar--wide','isAttached','refresh','_refreshPositioningDebounced','wideSidebar','change:container','listenTo','_destroyEditorAnnotationsIntegration','plugins','context','editors','container','widesidebar-attach-already-attached','resize','_integrateWithEditorAnnotations','rearrange','_activeAnnotation','_editorAnnotations','high','focus','blur'];(function(_0x56c9c5,_0x10b0f0){const _0x918895=function(_0x128ddc){while(--_0x128ddc){_0x56c9c5['push'](_0x56c9c5['shift']());}};_0x918895(++_0x10b0f0);}(_0x10b0,0x1d0));const _0x9188=function(_0x56c9c5,_0x10b0f0){_0x56c9c5=_0x56c9c5-0x0;let _0x918895=_0x10b0[_0x56c9c5];return _0x918895;};import{ContextPlugin as _0x1bb172,Context as _0x369c18}from'ckeditor5/src/core';import _0x364217 from'./annotationsuis';import _0x43267f from'./sidebar';import{CKEditorError as _0x19fbbc,Collection as _0x3834c7}from'ckeditor5/src/utils';import{debounce as _0x379b69}from'lodash-es';import _0x160b49 from'./editorannotations';export default class i extends _0x1bb172{static get['requires'](){return[_0x43267f,_0x364217];}static get[_0x9188('0x23')](){return _0x9188('0x15');}constructor(_0x212daf){super(_0x212daf),this[_0x9188('0x2c')]=!0x1,this[_0x9188('0x1c')](_0x9188('0x18'),null),this[_0x9188('0x17')]=null,this[_0x9188('0xc')]=new _0x3834c7(),this[_0x9188('0x2e')]=_0x379b69(()=>{this[_0x9188('0x17')][_0x9188('0x1d')]();},0xfa,{'leading':!0x1});}['init'](){const _0x12210c=this[_0x9188('0x4')][_0x9188('0x3')][_0x9188('0x1b')](_0x364217),_0x501735=this[_0x9188('0x4')]['plugins'][_0x9188('0x1b')](_0x43267f);_0x12210c[_0x9188('0x29')](_0x9188('0x2f'),this),_0x501735[_0x9188('0x6')]&&_0x12210c['switchTo'](_0x9188('0x2f'));}['setActiveAnnotation'](_0x3571b6){if(_0x3571b6===this[_0x9188('0x18')])return;const _0x5d82eb=this[_0x9188('0x4')]['plugins'][_0x9188('0x1b')](_0x43267f);_0x5d82eb[_0x9188('0xb')]=_0x3571b6;const _0x48c0eb=this[_0x9188('0x18')];this['activeAnnotation']=_0x3571b6,_0x5d82eb[_0x9188('0x2d')]({'blurredAnnotation':_0x48c0eb,'activatedAnnotation':this[_0x9188('0x18')]});}[_0x9188('0x1f')](_0x21f3da){this['annotations']=_0x21f3da;const _0x124ff6=this['context'][_0x9188('0x3')][_0x9188('0x1b')](_0x43267f);if(_0x124ff6[_0x9188('0x25')]=_0x21f3da,this[_0x9188('0x2c')])throw new _0x19fbbc(_0x9188('0x7'),this);this[_0x9188('0x2c')]=!0x0,this[_0x9188('0x1')](_0x124ff6,_0x9188('0x27'),()=>{this[_0x9188('0x13')](),this[_0x9188('0x1')](_0x124ff6,_0x9188('0x0'),_0x2781ab=>{_0x2781ab['off'](),this[_0x9188('0x1f')](_0x21f3da);});}),_0x124ff6['_attachToContainer']({'viewClass':_0x9188('0x2b')});const _0x1a60ce=_0x62558a=>{_0x62558a[_0x9188('0x28')](),_0x124ff6[_0x9188('0x1e')](_0x62558a);};for(const _0x3461d5 of _0x21f3da)_0x1a60ce(_0x3461d5);this[_0x9188('0x1')](_0x21f3da,_0x9188('0x16'),(_0x56d488,_0x11c127)=>{_0x1a60ce(_0x11c127);}),this[_0x9188('0x1')](_0x21f3da,_0x9188('0x10'),(_0x32cb58,_0x36c53d,_0x5afd6a)=>{_0x124ff6[_0x9188('0xa')]({'removedAnnotation':_0x36c53d,'previousAnnotation':_0x21f3da['get'](_0x5afd6a-0x1),'nextAnnotation':_0x21f3da['get'](_0x5afd6a+0x1)}),_0x36c53d===this[_0x9188('0x18')]&&this[_0x9188('0x22')](null);},{'priority':_0x9188('0xd')}),this[_0x9188('0x1')](_0x21f3da,_0x9188('0xe'),(_0x11bc9f,_0x36ab4c)=>{this['setActiveAnnotation'](_0x36ab4c);}),this[_0x9188('0x1')](_0x21f3da,_0x9188('0xf'),()=>{this[_0x9188('0x22')](null);});const _0x5ed7df=this[_0x9188('0x4')]instanceof _0x369c18?this[_0x9188('0x4')][_0x9188('0x5')]:new _0x3834c7([this[_0x9188('0x4')]]);for(const _0x11a80a of _0x5ed7df)this[_0x9188('0x9')](_0x11a80a);this[_0x9188('0x1')](_0x5ed7df,_0x9188('0x16'),(_0xa51fe4,_0x5e0005)=>{this['listenTo'](_0x5e0005,_0x9188('0x14'),()=>{this[_0x9188('0x9')](_0x5e0005);});}),this['listenTo'](_0x5ed7df,'remove',(_0x1c672d,_0x440783)=>{_0x440783[_0x9188('0x3')][_0x9188('0x21')](_0x9188('0x1a'))&&this[_0x9188('0x2')](_0x440783['plugins']['get'](_0x9188('0x1a')));}),window[_0x9188('0x19')](_0x9188('0x8'),this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}[_0x9188('0x13')](){if(!this[_0x9188('0x2c')])throw new _0x19fbbc('widesidebar-detach-not-attached',this);this[_0x9188('0x22')](null);const _0x38ca72=this[_0x9188('0x4')]['plugins'][_0x9188('0x1b')](_0x43267f);_0x38ca72['_detachFromContainer'](this[_0x9188('0x17')]),this[_0x9188('0x20')](_0x38ca72),this[_0x9188('0x20')](this[_0x9188('0x17')]),this[_0x9188('0x4')]instanceof _0x369c18&&this[_0x9188('0x20')](this['context'][_0x9188('0x5')]);for(const _0x340786 of Array[_0x9188('0x11')](this[_0x9188('0xc')]))this[_0x9188('0x2')](_0x340786);window['removeEventListener'](_0x9188('0x8'),this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced'][_0x9188('0x2a')](),this['activeAnnotation']=null,this[_0x9188('0x2c')]=!0x1,this[_0x9188('0x17')]=null;}[_0x9188('0x24')](){this[_0x9188('0x2c')]&&this[_0x9188('0x13')]();}['_integrateWithEditorAnnotations'](_0x4aa962){const _0x463b64=_0x4aa962[_0x9188('0x3')][_0x9188('0x1b')](_0x160b49);if(!_0x463b64)return;const _0x3b0202=()=>{const _0x4199d0=_0x463b64['getOrderedSelectedAnnotations']({'annotations':this[_0x9188('0x17')],'activeAnnotation':this[_0x9188('0x18')]});this['setActiveAnnotation'](_0x4199d0[0x0]||null);};this[_0x9188('0x1')](_0x463b64,'refresh',_0x3b0202),this['listenTo'](_0x463b64,_0x9188('0xf'),(_0x529bd7,{isAnnotationTracked:_0x3fff23})=>{this[_0x9188('0x18')]&&_0x3fff23(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this[_0x9188('0x1')](_0x463b64,_0x9188('0x26'),()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],_0x9188('0xf'),_0x330a16=>{_0x463b64['hasDomSelection']()&&(_0x3b0202(),_0x330a16[_0x9188('0x12')]());},{'priority':_0x9188('0xd')}),this[_0x9188('0xc')][_0x9188('0x16')](_0x463b64);}[_0x9188('0x2')](_0x810b2c){this[_0x9188('0x20')](_0x810b2c),this[_0x9188('0xc')][_0x9188('0x10')](_0x810b2c);}}
23
+ const _0x4768=['remove','setActiveAnnotation','stopListening','annotations','stop','_attachToContainer','removeEventListener','container','widesidebar-attach-already-attached','pluginName','set:container','_integrateWithEditorAnnotations','register','getOrderedSelectedAnnotations','ready','detach','attach','context','has','isAttached','_detachFromContainer','EditorAnnotations','_editorAnnotations','activeAnnotation','blur','get','refresh','switchTo','listenTo','destroy','add','cancel','plugins','high','wideSidebar','_destroyEditorAnnotationsIntegration','updateTargetRect','off','_refreshPositioningDebounced','refreshPositioning','editors','from'];(function(_0x1072a9,_0x476829){const _0x40f204=function(_0x22dbe0){while(--_0x22dbe0){_0x1072a9['push'](_0x1072a9['shift']());}};_0x40f204(++_0x476829);}(_0x4768,0xa9));const _0x40f2=function(_0x1072a9,_0x476829){_0x1072a9=_0x1072a9-0x0;let _0x40f204=_0x4768[_0x1072a9];return _0x40f204;};import{ContextPlugin as _0x5428bc,Context as _0x124f05}from'ckeditor5/src/core';import _0x17d72b from'./annotationsuis';import _0x5da562 from'./sidebar';import{CKEditorError as _0x132103,Collection as _0x3f4b56}from'ckeditor5/src/utils';import{debounce as _0x429c63}from'lodash-es';import _0x3a894c from'./editorannotations';export default class i extends _0x5428bc{static get['requires'](){return[_0x5da562,_0x17d72b];}static get[_0x40f2('0x8')](){return'WideSidebar';}constructor(_0x12d10d){super(_0x12d10d),this[_0x40f2('0x12')]=!0x1,this['set'](_0x40f2('0x16'),null),this[_0x40f2('0x2')]=null,this[_0x40f2('0x15')]=new _0x3f4b56(),this[_0x40f2('0x25')]=_0x429c63(()=>{this[_0x40f2('0x2')][_0x40f2('0x26')]();},0xfa,{'leading':!0x1});}['init'](){const _0x1c593d=this[_0x40f2('0x10')][_0x40f2('0x1f')][_0x40f2('0x18')](_0x17d72b),_0x2547de=this[_0x40f2('0x10')][_0x40f2('0x1f')][_0x40f2('0x18')](_0x5da562);_0x1c593d[_0x40f2('0xb')]('wideSidebar',this),_0x2547de[_0x40f2('0x6')]&&_0x1c593d[_0x40f2('0x1a')](_0x40f2('0x21'));}[_0x40f2('0x0')](_0x51fb65){if(_0x51fb65===this[_0x40f2('0x16')])return;const _0x5604ba=this[_0x40f2('0x10')][_0x40f2('0x1f')][_0x40f2('0x18')](_0x5da562);_0x5604ba['_activeAnnotation']=_0x51fb65;const _0x109c66=this[_0x40f2('0x16')];this[_0x40f2('0x16')]=_0x51fb65,_0x5604ba[_0x40f2('0x19')]({'blurredAnnotation':_0x109c66,'activatedAnnotation':this[_0x40f2('0x16')]});}['attach'](_0x2fb05d){this[_0x40f2('0x2')]=_0x2fb05d;const _0x22da50=this['context'][_0x40f2('0x1f')][_0x40f2('0x18')](_0x5da562);if(_0x22da50['_annotations']=_0x2fb05d,this[_0x40f2('0x12')])throw new _0x132103(_0x40f2('0x7'),this);this[_0x40f2('0x12')]=!0x0,this['listenTo'](_0x22da50,_0x40f2('0x9'),()=>{this[_0x40f2('0xe')](),this[_0x40f2('0x1b')](_0x22da50,'change:container',_0x30a5f5=>{_0x30a5f5[_0x40f2('0x24')](),this[_0x40f2('0xf')](_0x2fb05d);});}),_0x22da50[_0x40f2('0x4')]({'viewClass':'ck-sidebar--wide'});const _0x2c855a=_0x169f10=>{_0x169f10[_0x40f2('0x23')](),_0x22da50['addAnnotation'](_0x169f10);};for(const _0x404f72 of _0x2fb05d)_0x2c855a(_0x404f72);this[_0x40f2('0x1b')](_0x2fb05d,_0x40f2('0x1d'),(_0x3bd032,_0x978b64)=>{_0x2c855a(_0x978b64);}),this[_0x40f2('0x1b')](_0x2fb05d,_0x40f2('0x29'),(_0x3018ba,_0x2ccb92,_0x227391)=>{_0x22da50['rearrange']({'removedAnnotation':_0x2ccb92,'previousAnnotation':_0x2fb05d['get'](_0x227391-0x1),'nextAnnotation':_0x2fb05d['get'](_0x227391+0x1)}),_0x2ccb92===this[_0x40f2('0x16')]&&this[_0x40f2('0x0')](null);},{'priority':_0x40f2('0x20')}),this[_0x40f2('0x1b')](_0x2fb05d,'focus',(_0x5cb369,_0x38f75a)=>{this[_0x40f2('0x0')](_0x38f75a);}),this['listenTo'](_0x2fb05d,_0x40f2('0x17'),()=>{this[_0x40f2('0x0')](null);});const _0x4698c5=this[_0x40f2('0x10')]instanceof _0x124f05?this[_0x40f2('0x10')][_0x40f2('0x27')]:new _0x3f4b56([this[_0x40f2('0x10')]]);for(const _0x2fd059 of _0x4698c5)this['_integrateWithEditorAnnotations'](_0x2fd059);this[_0x40f2('0x1b')](_0x4698c5,_0x40f2('0x1d'),(_0x2e1bbd,_0x40a875)=>{this[_0x40f2('0x1b')](_0x40a875,_0x40f2('0xd'),()=>{this[_0x40f2('0xa')](_0x40a875);});}),this[_0x40f2('0x1b')](_0x4698c5,'remove',(_0x34e1f9,_0x3783b5)=>{_0x3783b5[_0x40f2('0x1f')][_0x40f2('0x11')]('EditorAnnotations')&&this[_0x40f2('0x22')](_0x3783b5[_0x40f2('0x1f')][_0x40f2('0x18')](_0x40f2('0x14')));}),window['addEventListener']('resize',this[_0x40f2('0x25')]),this[_0x40f2('0x2')][_0x40f2('0x26')]();}[_0x40f2('0xe')](){if(!this[_0x40f2('0x12')])throw new _0x132103('widesidebar-detach-not-attached',this);this[_0x40f2('0x0')](null);const _0x368682=this['context'][_0x40f2('0x1f')][_0x40f2('0x18')](_0x5da562);_0x368682[_0x40f2('0x13')](this[_0x40f2('0x2')]),this[_0x40f2('0x1')](_0x368682),this[_0x40f2('0x1')](this['annotations']),this[_0x40f2('0x10')]instanceof _0x124f05&&this['stopListening'](this[_0x40f2('0x10')]['editors']);for(const _0x4fec44 of Array[_0x40f2('0x28')](this[_0x40f2('0x15')]))this[_0x40f2('0x22')](_0x4fec44);window[_0x40f2('0x5')]('resize',this['_refreshPositioningDebounced']),this[_0x40f2('0x25')][_0x40f2('0x1e')](),this[_0x40f2('0x16')]=null,this[_0x40f2('0x12')]=!0x1,this[_0x40f2('0x2')]=null;}[_0x40f2('0x1c')](){this[_0x40f2('0x12')]&&this[_0x40f2('0xe')]();}[_0x40f2('0xa')](_0x25ca37){const _0x49935e=_0x25ca37['plugins']['get'](_0x3a894c);if(!_0x49935e)return;const _0x154c80=()=>{const _0x290463=_0x49935e[_0x40f2('0xc')]({'annotations':this[_0x40f2('0x2')],'activeAnnotation':this[_0x40f2('0x16')]});this[_0x40f2('0x0')](_0x290463[0x0]||null);};this[_0x40f2('0x1b')](_0x49935e,_0x40f2('0x19'),_0x154c80),this[_0x40f2('0x1b')](_0x49935e,_0x40f2('0x17'),(_0x2e62bb,{isAnnotationTracked:_0x50ef0d})=>{this[_0x40f2('0x16')]&&_0x50ef0d(this[_0x40f2('0x16')])&&this[_0x40f2('0x0')](null);}),this['listenTo'](_0x49935e,'uiUpdate',()=>{this[_0x40f2('0x25')]();}),this[_0x40f2('0x1b')](this['annotations'],_0x40f2('0x17'),_0x26cac6=>{_0x49935e['hasDomSelection']()&&(_0x154c80(),_0x26cac6[_0x40f2('0x3')]());},{'priority':_0x40f2('0x20')}),this[_0x40f2('0x15')][_0x40f2('0x1d')](_0x49935e);}[_0x40f2('0x22')](_0x38fb85){this[_0x40f2('0x1')](_0x38fb85),this[_0x40f2('0x15')][_0x40f2('0x29')](_0x38fb85);}}