@ckeditor/ckeditor5-comments 38.1.0 → 38.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/build/comments.js +1 -1
  2. package/package.json +3 -3
  3. package/src/annotations/annotation.d.ts +86 -86
  4. package/src/annotations/annotation.js +1 -1
  5. package/src/annotations/annotationcollection.d.ts +94 -94
  6. package/src/annotations/annotationcollection.js +1 -1
  7. package/src/annotations/annotations.d.ts +150 -150
  8. package/src/annotations/annotations.js +1 -1
  9. package/src/annotations/annotationsuis.d.ts +228 -228
  10. package/src/annotations/annotationsuis.js +1 -1
  11. package/src/annotations/editorannotations.d.ts +63 -63
  12. package/src/annotations/editorannotations.js +1 -1
  13. package/src/annotations/inlineannotations.d.ts +86 -86
  14. package/src/annotations/inlineannotations.js +1 -1
  15. package/src/annotations/narrowsidebar.d.ts +81 -81
  16. package/src/annotations/narrowsidebar.js +1 -1
  17. package/src/annotations/sidebar.d.ts +96 -96
  18. package/src/annotations/sidebar.js +1 -1
  19. package/src/annotations/view/annotationcounterbuttonview.d.ts +25 -25
  20. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  21. package/src/annotations/view/annotationview.d.ts +86 -86
  22. package/src/annotations/view/annotationview.js +1 -1
  23. package/src/annotations/view/sidebaritemview.d.ts +51 -51
  24. package/src/annotations/view/sidebaritemview.js +1 -1
  25. package/src/annotations/view/sidebarview.d.ts +28 -28
  26. package/src/annotations/view/sidebarview.js +1 -1
  27. package/src/annotations/widesidebar.d.ts +73 -73
  28. package/src/annotations/widesidebar.js +1 -1
  29. package/src/augmentation.d.ts +48 -48
  30. package/src/comments/addcommentthreadcommand.d.ts +31 -31
  31. package/src/comments/addcommentthreadcommand.js +1 -1
  32. package/src/comments/commentsarchive.d.ts +27 -27
  33. package/src/comments/commentsarchive.js +1 -1
  34. package/src/comments/commentsarchiveui.d.ts +34 -34
  35. package/src/comments/commentsarchiveui.js +1 -1
  36. package/src/comments/commentsediting.d.ts +75 -75
  37. package/src/comments/commentsediting.js +1 -1
  38. package/src/comments/commentsrepository.d.ts +1088 -1088
  39. package/src/comments/commentsrepository.js +1 -1
  40. package/src/comments/commentsui.d.ts +29 -29
  41. package/src/comments/commentsui.js +1 -1
  42. package/src/comments/integrations/commentsrestrictededitingmode.d.ts +13 -13
  43. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  44. package/src/comments/integrations/importword.d.ts +17 -17
  45. package/src/comments/integrations/importword.js +1 -1
  46. package/src/comments/ui/commenteditor/commenteditor.d.ts +32 -32
  47. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  48. package/src/comments/ui/commenteditor/commenteditorui.d.ts +27 -27
  49. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  50. package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +32 -32
  51. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  52. package/src/comments/ui/commentthreadcontroller.d.ts +64 -64
  53. package/src/comments/ui/commentthreadcontroller.js +1 -1
  54. package/src/comments/ui/view/basecommentthreadview.d.ts +108 -108
  55. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  56. package/src/comments/ui/view/basecommentview.d.ts +108 -108
  57. package/src/comments/ui/view/basecommentview.js +1 -1
  58. package/src/comments/ui/view/collapsedcommentsview.d.ts +9 -9
  59. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  60. package/src/comments/ui/view/commentcontentview.d.ts +10 -10
  61. package/src/comments/ui/view/commentcontentview.js +1 -1
  62. package/src/comments/ui/view/commentinputview.d.ts +82 -82
  63. package/src/comments/ui/view/commentinputview.js +1 -1
  64. package/src/comments/ui/view/commentsarchiveview.d.ts +34 -34
  65. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  66. package/src/comments/ui/view/commentslistview.d.ts +96 -96
  67. package/src/comments/ui/view/commentslistview.js +1 -1
  68. package/src/comments/ui/view/commentthreadheaderview.d.ts +46 -46
  69. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  70. package/src/comments/ui/view/commentthreadinputview.d.ts +37 -37
  71. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  72. package/src/comments/ui/view/commentthreadview.d.ts +113 -113
  73. package/src/comments/ui/view/commentthreadview.js +1 -1
  74. package/src/comments/ui/view/commentview.d.ts +239 -239
  75. package/src/comments/ui/view/commentview.js +1 -1
  76. package/src/comments.d.ts +31 -31
  77. package/src/comments.js +1 -1
  78. package/src/commentsonly.d.ts +29 -29
  79. package/src/commentsonly.js +1 -1
  80. package/src/config.d.ts +172 -172
  81. package/src/index.d.ts +21 -21
  82. package/src/utils/common-translations.d.ts +5 -5
  83. package/src/utils/common-translations.js +1 -1
  84. package/src/utils/createmutationobserver.d.ts +13 -13
  85. package/src/utils/createmutationobserver.js +1 -1
@@ -1,96 +1,96 @@
1
- /**
2
- * @module comments/annotations/sidebar
3
- * @publicApi
4
- */
5
- import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core';
6
- import type { View } from 'ckeditor5/src/ui';
7
- import SidebarView from './view/sidebarview';
8
- import SidebarItemView from './view/sidebaritemview';
9
- import type Annotation from './annotation';
10
- /**
11
- * Displays {@link module:comments/annotations/annotationcollection~AnnotationCollection annotations} inside a sidebar.
12
- *
13
- * `Sidebar` provides a {@link module:comments/annotations/view/sidebarview~SidebarView} which can be injected at any place on a website.
14
- *
15
- * It's main role is to display and correctly position annotation views added to the sidebar, accordingly to their target elements
16
- * or `Rect`s.
17
- *
18
- * The following plugins use `Sidebar` to provide annotations UI:
19
- *
20
- * * {@link module:comments/annotations/widesidebar~WideSidebar}
21
- * * {@link module:comments/annotations/narrowsidebar~NarrowSidebar}
22
- *
23
- * The sidebar plugin introduces {@link module:comments/annotations/view/sidebaritemview~SidebarItemView} which is a wrapper view for
24
- * {@link module:comments/annotations/view/annotationview~AnnotationView}. It adds an interface needed for positioning views inside
25
- * the sidebar.
26
- *
27
- * Structure of items:
28
- *
29
- * |-> SidebarItemView -> AnnotationView -> added View
30
- * Sidebar#view#list -|-> SidebarItemView -> AnnotationView -> added View
31
- * |-> ...
32
- */
33
- export default class Sidebar extends ContextPlugin {
34
- /**
35
- * Container element into which sidebar is injected (in the DOM).
36
- *
37
- * @observable
38
- */
39
- container: HTMLElement | null;
40
- /**
41
- * Sidebar view.
42
- */
43
- view: SidebarView;
44
- /**
45
- * @inheritDoc
46
- */
47
- static get pluginName(): "Sidebar";
48
- /**
49
- * @inheritDoc
50
- */
51
- constructor(context: Context | Editor);
52
- /**
53
- * @inheritDoc
54
- */
55
- init(): void;
56
- /**
57
- * Sets a new sidebar container.
58
- */
59
- setContainer(container: HTMLElement): void;
60
- /**
61
- * Rearranges annotations when the annotation is removed.
62
- */
63
- rearrange({ removedAnnotation, previousAnnotation, nextAnnotation }: {
64
- removedAnnotation: Annotation;
65
- previousAnnotation: Annotation | null;
66
- nextAnnotation: Annotation | null;
67
- }): void;
68
- /**
69
- * Refreshes sidebar items when one of the annotations is activated.
70
- *
71
- * @param options.activatedAnnotation The activated annotation.
72
- * @param options.blurredAnnotation The previously active annotation.
73
- * @param options.disableAnimationOnActivatedAnnotation Disables animation on the activated annotation.
74
- */
75
- refresh({ blurredAnnotation, activatedAnnotation, disableAnimationOnActivatedAnnotation }: {
76
- blurredAnnotation: Annotation | null;
77
- activatedAnnotation: Annotation | null;
78
- disableAnimationOnActivatedAnnotation?: boolean;
79
- }): void;
80
- /**
81
- * Creates new {@link module:comments/annotations/view/sidebaritemview~SidebarItemView} and binds its
82
- * position with {@link module:comments/annotations/view/annotationview~AnnotationView} target position.
83
- *
84
- * By default, annotation's view will be displayed in the sidebar. However, you can provide any other view
85
- * to be displayed instead using `annotationToDisplay`. `annotation` will be then used only to gather data needed by `Sidebar`.
86
- */
87
- addAnnotation(annotation: Annotation, viewToDisplay?: View): SidebarItemView;
88
- /**
89
- * Returns sidebar item view that wraps given annotation view.
90
- */
91
- getSidebarItemView(annotation: Annotation): SidebarItemView | undefined;
92
- /**
93
- * @inheritDoc
94
- */
95
- destroy(): void;
96
- }
1
+ /**
2
+ * @module comments/annotations/sidebar
3
+ * @publicApi
4
+ */
5
+ import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core';
6
+ import type { View } from 'ckeditor5/src/ui';
7
+ import SidebarView from './view/sidebarview';
8
+ import SidebarItemView from './view/sidebaritemview';
9
+ import type Annotation from './annotation';
10
+ /**
11
+ * Displays {@link module:comments/annotations/annotationcollection~AnnotationCollection annotations} inside a sidebar.
12
+ *
13
+ * `Sidebar` provides a {@link module:comments/annotations/view/sidebarview~SidebarView} which can be injected at any place on a website.
14
+ *
15
+ * It's main role is to display and correctly position annotation views added to the sidebar, accordingly to their target elements
16
+ * or `Rect`s.
17
+ *
18
+ * The following plugins use `Sidebar` to provide annotations UI:
19
+ *
20
+ * * {@link module:comments/annotations/widesidebar~WideSidebar}
21
+ * * {@link module:comments/annotations/narrowsidebar~NarrowSidebar}
22
+ *
23
+ * The sidebar plugin introduces {@link module:comments/annotations/view/sidebaritemview~SidebarItemView} which is a wrapper view for
24
+ * {@link module:comments/annotations/view/annotationview~AnnotationView}. It adds an interface needed for positioning views inside
25
+ * the sidebar.
26
+ *
27
+ * Structure of items:
28
+ *
29
+ * |-> SidebarItemView -> AnnotationView -> added View
30
+ * Sidebar#view#list -|-> SidebarItemView -> AnnotationView -> added View
31
+ * |-> ...
32
+ */
33
+ export default class Sidebar extends ContextPlugin {
34
+ /**
35
+ * Container element into which sidebar is injected (in the DOM).
36
+ *
37
+ * @observable
38
+ */
39
+ container: HTMLElement | null;
40
+ /**
41
+ * Sidebar view.
42
+ */
43
+ view: SidebarView;
44
+ /**
45
+ * @inheritDoc
46
+ */
47
+ static get pluginName(): "Sidebar";
48
+ /**
49
+ * @inheritDoc
50
+ */
51
+ constructor(context: Context | Editor);
52
+ /**
53
+ * @inheritDoc
54
+ */
55
+ init(): void;
56
+ /**
57
+ * Sets a new sidebar container.
58
+ */
59
+ setContainer(container: HTMLElement): void;
60
+ /**
61
+ * Rearranges annotations when the annotation is removed.
62
+ */
63
+ rearrange({ removedAnnotation, previousAnnotation, nextAnnotation }: {
64
+ removedAnnotation: Annotation;
65
+ previousAnnotation: Annotation | null;
66
+ nextAnnotation: Annotation | null;
67
+ }): void;
68
+ /**
69
+ * Refreshes sidebar items when one of the annotations is activated.
70
+ *
71
+ * @param options.activatedAnnotation The activated annotation.
72
+ * @param options.blurredAnnotation The previously active annotation.
73
+ * @param options.disableAnimationOnActivatedAnnotation Disables animation on the activated annotation.
74
+ */
75
+ refresh({ blurredAnnotation, activatedAnnotation, disableAnimationOnActivatedAnnotation }: {
76
+ blurredAnnotation: Annotation | null;
77
+ activatedAnnotation: Annotation | null;
78
+ disableAnimationOnActivatedAnnotation?: boolean;
79
+ }): void;
80
+ /**
81
+ * Creates new {@link module:comments/annotations/view/sidebaritemview~SidebarItemView} and binds its
82
+ * position with {@link module:comments/annotations/view/annotationview~AnnotationView} target position.
83
+ *
84
+ * By default, annotation's view will be displayed in the sidebar. However, you can provide any other view
85
+ * to be displayed instead using `annotationToDisplay`. `annotation` will be then used only to gather data needed by `Sidebar`.
86
+ */
87
+ addAnnotation(annotation: Annotation, viewToDisplay?: View): SidebarItemView;
88
+ /**
89
+ * Returns sidebar item view that wraps given annotation view.
90
+ */
91
+ getSidebarItemView(annotation: Annotation): SidebarItemView | undefined;
92
+ /**
93
+ * @inheritDoc
94
+ */
95
+ destroy(): void;
96
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x18a9=['target','sidebar-attachtocontainer-missing-container','get','Sidebar','setContainer','isAnimationDisabled','destroy','getIndex','unbind','content','_getItemAfter','isActive','remove','element','last','nodeType','addAnnotation','_createSidebarView','_alignForBottomChange','length','bind','top','init','_alignAfterItem','_annotationToSidebarItemView','object','_activeAnnotation','appendChild','list','config','_detachFromContainer','_getMaxAvailableTop','height','_attachToContainer','sidebar-setcontainer-invalid-element','change:targetRect','_sidebarItemViewToAnnotation','_annotations','_recalculate','_alignToTargetRect','sidebar.preventScrollOutOfView','define','listenTo','_alignForTopChange','context','change:top','_destroySidebarItemView','_spaceBetweenItems','delete','_updateLastItem','change:bottom','_getItemBefore','bottom','_recalculateBuffer','class','stopListening','updateHeight','set','minHeight','_setItemTop','_getTargetTop','_targetTop','getSidebarItemView','render','pluginName','max','_alignBeforeItem','view','targetRect','_lastItem','rearrange','refresh','container'];(function(_0x29b5ad,_0x18a980){const _0x1ed2fc=function(_0x1ef86d){while(--_0x1ef86d){_0x29b5ad['push'](_0x29b5ad['shift']());}};_0x1ed2fc(++_0x18a980);}(_0x18a9,0x113));const _0x1ed2=function(_0x29b5ad,_0x18a980){_0x29b5ad=_0x29b5ad-0x0;let _0x1ed2fc=_0x18a9[_0x29b5ad];return _0x1ed2fc;};import{ContextPlugin as _0x56355e}from'ckeditor5/src/core';import{Rect as _0x820160,CKEditorError as _0x2cf731}from'ckeditor5/src/utils';import _0x1b39e5 from'./view/sidebarview';import _0x593386 from'./view/sidebaritemview';export default class z extends _0x56355e{static get[_0x1ed2('0x8')](){return _0x1ed2('0x14');}constructor(_0x3ce4d1){super(_0x3ce4d1),this[_0x1ed2('0x1')](_0x1ed2('0xd'),void 0x0),this['view']=this['_createSidebarView'](),this['set'](_0x1ed2('0x10'),null),this[_0x1ed2('0x40')]=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x1ed2('0x29')]=new Map(),this[_0x1ed2('0x3d')][_0x1ed2('0x2e')][_0x1ed2('0x3a')]('sidebar.preventScrollOutOfView',!0x1),this[_0x1ed2('0x36')]=null,this[_0x1ed2('0x2b')]=null,this[_0x1ed2('0x46')]=[];}[_0x1ed2('0x27')](){const _0x3a5479=this[_0x1ed2('0x3d')][_0x1ed2('0x2e')][_0x1ed2('0x13')]('sidebar.container');_0x3a5479&&this[_0x1ed2('0x15')](_0x3a5479);}[_0x1ed2('0x15')](_0x4d45bc){if(!y(_0x4d45bc))throw new _0x2cf731(_0x1ed2('0x33'));this[_0x1ed2('0x10')]=_0x4d45bc;}[_0x1ed2('0x32')]({viewClass:_0x58c9b8='',spaceBetweenItems:_0x1ec3d0=0x19}={}){if(!y(this[_0x1ed2('0x10')]))throw new _0x2cf731(_0x1ed2('0x12'),this);this[_0x1ed2('0x10')][_0x1ed2('0x2c')](this[_0x1ed2('0xb')][_0x1ed2('0x1e')]),this['view'][_0x1ed2('0x47')]=_0x58c9b8,this[_0x1ed2('0x40')]=_0x1ec3d0;}[_0x1ed2('0xe')]({removedAnnotation:_0xcd3221,previousAnnotation:_0x356bd6,nextAnnotation:_0x24a5b2}){const _0x4c5645=this[_0x1ed2('0x6')](_0xcd3221);this[_0x1ed2('0xb')][_0x1ed2('0x2d')][_0x1ed2('0x1d')](_0x4c5645),this[_0x1ed2('0x3f')](_0xcd3221),_0x356bd6&&this[_0x1ed2('0x38')](this[_0x1ed2('0x6')](_0x356bd6)),_0x24a5b2&&this[_0x1ed2('0x38')](this[_0x1ed2('0x6')](_0x24a5b2)),this[_0x1ed2('0x42')]();}[_0x1ed2('0xf')]({blurredAnnotation:_0x2aae38,activatedAnnotation:_0x1e8417,disableAnimationOnActivatedAnnotation:_0xc81d6c}){if(this[_0x1ed2('0x2b')]=_0x1e8417,_0x2aae38){_0x2aae38[_0x1ed2('0x1c')]=!0x1;const _0x54c299=this[_0x1ed2('0x6')](_0x2aae38);_0x54c299&&_0xc81d6c&&(_0x54c299['isAnimationDisabled']=!0x1);}if(_0x1e8417){const _0x47e6c7=this[_0x1ed2('0x6')](_0x1e8417);_0x47e6c7&&(_0x1e8417[_0x1ed2('0x1c')]=!0x0,_0xc81d6c&&(_0x47e6c7[_0x1ed2('0x16')]=!0x0,_0x47e6c7[_0x1ed2('0x26')]+=0x1),this[_0x1ed2('0x38')](_0x47e6c7));}}[_0x1ed2('0x2f')](_0x5a0acd){if(this[_0x1ed2('0x48')](),this[_0x1ed2('0xb')]['element'][_0x1ed2('0x1d')](),_0x5a0acd)for(const _0x3b0381 of _0x5a0acd)this[_0x1ed2('0x3f')](_0x3b0381);this[_0x1ed2('0xb')][_0x1ed2('0x2d')]['clear'](),this['view'][_0x1ed2('0x47')]='',this[_0x1ed2('0xd')]=null;}[_0x1ed2('0x21')](_0x3a27e9,_0x5951e5){_0x5951e5||(_0x5951e5=_0x3a27e9['view']);const _0x50e973=new _0x593386(this[_0x1ed2('0x3d')]['locale']);this[_0x1ed2('0x35')]['set'](_0x50e973,_0x3a27e9),this[_0x1ed2('0x29')][_0x1ed2('0x1')](_0x3a27e9,_0x50e973),_0x50e973['content']['add'](_0x5951e5),this['listenTo'](_0x3a27e9[_0x1ed2('0xb')],_0x1ed2('0x34'),(_0x14aa3b,_0xe139c1,_0x816752)=>{const _0x1a7b0f=this[_0x1ed2('0x4')](_0x3a27e9,_0x816752);_0x50e973['_targetTop']!=_0x1a7b0f&&(_0x50e973[_0x1ed2('0x5')]=_0x1a7b0f,this[_0x1ed2('0x3')](_0x50e973,_0x1a7b0f));}),this[_0x1ed2('0x3b')](_0x50e973,_0x1ed2('0x3e'),()=>{this['_recalculate'](_0x50e973,'top');}),this['listenTo'](_0x50e973,_0x1ed2('0x43'),()=>{this[_0x1ed2('0x37')](_0x50e973,'bottom');}),this['_alignToTargetRect'](_0x50e973);const _0x2122a8=this[_0x1ed2('0x44')](_0x50e973);if(_0x2122a8)this[_0x1ed2('0x28')](_0x2122a8,_0x50e973)||this['_alignToTargetRect'](_0x50e973);else this[_0x1ed2('0x38')](_0x50e973);return this[_0x1ed2('0x42')](),this[_0x1ed2('0xb')][_0x1ed2('0x2d')]['add'](_0x50e973),_0x50e973;}[_0x1ed2('0x3c')](_0x36dae1){if(!_0x36dae1[_0x1ed2('0x1a')][_0x1ed2('0x24')])return;const _0x115899=this[_0x1ed2('0x44')](_0x36dae1);if(!_0x115899)return;const _0xc369ac=this[_0x1ed2('0x35')]['get'](_0x115899),_0x4817c0=this['_activeAnnotation'];_0x4817c0&&_0x4817c0===_0xc369ac?this[_0x1ed2('0x28')](_0x115899,_0x36dae1):this['_alignBeforeItem'](_0x36dae1,_0x115899);}[_0x1ed2('0x23')](_0xb73389){if(!_0xb73389[_0x1ed2('0x1a')][_0x1ed2('0x24')])return;const _0x3feb6c=this[_0x1ed2('0x1b')](_0xb73389);if(!_0x3feb6c)return;const _0xf2826d=this[_0x1ed2('0x35')][_0x1ed2('0x13')](_0x3feb6c),_0x40b498=this[_0x1ed2('0x3d')][_0x1ed2('0x2e')]['get'](_0x1ed2('0x39')),_0x41824e=this[_0x1ed2('0x2b')];_0x41824e&&_0x41824e===_0xf2826d&&_0x40b498?(this[_0x1ed2('0xa')](_0x3feb6c,_0xb73389),this[_0x1ed2('0x28')](_0xb73389,_0x3feb6c)):_0x41824e&&_0x41824e===_0xf2826d?this['_alignBeforeItem'](_0x3feb6c,_0xb73389):this[_0x1ed2('0x28')](_0xb73389,_0x3feb6c);}[_0x1ed2('0x37')](_0x5e398a,_0x521fc1){0x0===this[_0x1ed2('0x46')][_0x1ed2('0x24')]&&setTimeout(()=>{for(const {sidebarItemView:_0x48c38e,changedProp:_0x2a5e80}of this[_0x1ed2('0x46')])_0x1ed2('0x26')===_0x2a5e80?this[_0x1ed2('0x3c')](_0x48c38e):this[_0x1ed2('0x23')](_0x48c38e);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x5e398a,'changedProp':_0x521fc1});}['getSidebarItemView'](_0x29a6b4){return this[_0x1ed2('0x29')][_0x1ed2('0x13')](_0x29a6b4);}[_0x1ed2('0x17')](){this[_0x1ed2('0xb')][_0x1ed2('0x17')]();}[_0x1ed2('0x3f')](_0x1328e3){const _0x48daef=this[_0x1ed2('0x6')](_0x1328e3);this['stopListening'](_0x48daef),this['stopListening'](_0x1328e3[_0x1ed2('0xb')]),_0x48daef[_0x1ed2('0x17')](),this[_0x1ed2('0x29')]['delete'](_0x1328e3),this[_0x1ed2('0x35')][_0x1ed2('0x41')](_0x48daef);}[_0x1ed2('0x22')](){const _0x108b05=new _0x1b39e5(this[_0x1ed2('0x3d')]['locale']);return _0x108b05[_0x1ed2('0x7')](),this['on']('change:_lastItem',(_0x31f93a,_0x5bce0c,_0x3f595e,_0x599620)=>{_0x599620&&_0x108b05[_0x1ed2('0x19')](_0x1ed2('0x2')),_0x3f595e?_0x108b05[_0x1ed2('0x25')](_0x1ed2('0x2'))['to'](_0x3f595e,_0x1ed2('0x45')):_0x108b05[_0x1ed2('0x2')]=null;}),_0x108b05;}[_0x1ed2('0x42')](){var _0x2c4459;this[_0x1ed2('0xd')]=(null===(_0x2c4459=this[_0x1ed2('0x36')])||void 0x0===_0x2c4459?void 0x0:_0x2c4459[_0x1ed2('0x1f')])?this['getSidebarItemView'](this[_0x1ed2('0x36')]['last']):null;}[_0x1ed2('0x44')](_0x5db258){var _0x5a0eee;const _0x46d4be=this[_0x1ed2('0x35')][_0x1ed2('0x13')](_0x5db258),_0x5451b4=_0x46d4be&&(null===(_0x5a0eee=this[_0x1ed2('0x36')])||void 0x0===_0x5a0eee?void 0x0:_0x5a0eee[_0x1ed2('0x13')](this[_0x1ed2('0x36')][_0x1ed2('0x18')](_0x46d4be)-0x1));return _0x5451b4&&this[_0x1ed2('0x6')](_0x5451b4)||null;}[_0x1ed2('0x1b')](_0x11f931){var _0x531238;const _0x70557d=this['_sidebarItemViewToAnnotation'][_0x1ed2('0x13')](_0x11f931),_0x5d15da=_0x70557d&&(null===(_0x531238=this[_0x1ed2('0x36')])||void 0x0===_0x531238?void 0x0:_0x531238['get'](this['_annotations'][_0x1ed2('0x18')](_0x70557d)+0x1));return _0x5d15da&&this['getSidebarItemView'](_0x5d15da)||null;}[_0x1ed2('0xa')](_0x165992,_0x98724b){_0x165992[_0x1ed2('0x0')]();const _0x3193ca=H(_0x98724b[_0x1ed2('0x45')]+this[_0x1ed2('0x40')],_0x165992[_0x1ed2('0x26')]);return!!_0x3193ca&&(this['_setItemTop'](_0x98724b,_0x98724b[_0x1ed2('0x26')]-_0x3193ca),!0x0);}[_0x1ed2('0x28')](_0x1f9388,_0x5b28a6){_0x1f9388[_0x1ed2('0x0')]();const _0x25c360=H(_0x1f9388[_0x1ed2('0x45')]+this['_spaceBetweenItems'],_0x5b28a6[_0x1ed2('0x26')]);return!!_0x25c360&&(this[_0x1ed2('0x3')](_0x5b28a6,_0x5b28a6[_0x1ed2('0x26')]+_0x25c360,!0x1),!0x0);}[_0x1ed2('0x38')](_0x3b7abb){const _0x992b19=this[_0x1ed2('0x35')][_0x1ed2('0x13')](_0x3b7abb);if(!_0x992b19||!_0x992b19['target']||!_0x992b19['targetRect'])return;const _0x15add2=this[_0x1ed2('0x4')](_0x992b19,_0x992b19[_0x1ed2('0xc')]);this['_setItemTop'](_0x3b7abb,_0x15add2);}[_0x1ed2('0x4')](_0x5bcd96,_0x4517de){if(null===_0x4517de)return 0x0;if(_0x5bcd96[_0x1ed2('0x11')]instanceof _0x820160)return _0x4517de[_0x1ed2('0x26')];{const _0x172f31=new _0x820160(this[_0x1ed2('0xb')][_0x1ed2('0x1e')])[_0x1ed2('0x26')];return _0x4517de[_0x1ed2('0x26')]-_0x172f31;}}['_setItemTop'](_0x24f63a,_0x48bf74,_0x44be7c=this[_0x1ed2('0x3d')][_0x1ed2('0x2e')][_0x1ed2('0x13')]('sidebar.preventScrollOutOfView')){_0x44be7c&&(_0x48bf74=Math[_0x1ed2('0x9')](_0x48bf74,this[_0x1ed2('0x30')](_0x24f63a))),_0x24f63a['top']=_0x48bf74;}['_getMaxAvailableTop'](_0x59f71b){let _0x1610a1=this[_0x1ed2('0x44')](_0x59f71b),_0x4a00c9=0x0;for(;_0x1610a1;)_0x1610a1[_0x1ed2('0x0')](),_0x4a00c9+=this[_0x1ed2('0x40')]+_0x1610a1[_0x1ed2('0x31')],_0x1610a1=this[_0x1ed2('0x44')](_0x1610a1);return _0x4a00c9;}}function H(_0x1ff1a2,_0x2ae9f7){return Math[_0x1ed2('0x9')](_0x1ff1a2-_0x2ae9f7,0x0);}function y(_0x355441){return null!==_0x355441&&_0x1ed2('0x2a')==typeof _0x355441&&0x1===_0x355441[_0x1ed2('0x20')];}
23
+ const _0x3bab=['bind','getSidebarItemView','view','_recalculate','_attachToContainer','minHeight','_recalculateBuffer','content','add','stopListening','Sidebar','change:_lastItem','_createSidebarView','_destroySidebarItemView','define','bottom','set','_alignForTopChange','_annotations','length','element','_sidebarItemViewToAnnotation','isActive','unbind','listenTo','_lastItem','sidebar.container','_targetTop','_setItemTop','_alignAfterItem','targetRect','getIndex','_alignForBottomChange','top','push','_getTargetTop','_getItemBefore','_annotationToSidebarItemView','_alignBeforeItem','isAnimationDisabled','_getItemAfter','_spaceBetweenItems','context','setContainer','remove','last','get','container','change:targetRect','nodeType','target','list','locale','config','_alignToTargetRect','class','refresh','pluginName','object','sidebar.preventScrollOutOfView','height','destroy','_getMaxAvailableTop','_activeAnnotation','delete','addAnnotation','max','_updateLastItem','updateHeight','appendChild'];(function(_0x14b031,_0x3bab67){const _0x4f9b2d=function(_0x185d62){while(--_0x185d62){_0x14b031['push'](_0x14b031['shift']());}};_0x4f9b2d(++_0x3bab67);}(_0x3bab,0xba));const _0x4f9b=function(_0x14b031,_0x3bab67){_0x14b031=_0x14b031-0x0;let _0x4f9b2d=_0x3bab[_0x14b031];return _0x4f9b2d;};import{ContextPlugin as _0xf8adb8}from'ckeditor5/src/core';import{Rect as _0x1e0c47,CKEditorError as _0x3bc4dc}from'ckeditor5/src/utils';import _0x81af48 from'./view/sidebarview';import _0x20ba33 from'./view/sidebaritemview';export default class z extends _0xf8adb8{static get[_0x4f9b('0xb')](){return _0x4f9b('0x22');}constructor(_0x3d17b5){super(_0x3d17b5),this[_0x4f9b('0x28')](_0x4f9b('0x31'),void 0x0),this[_0x4f9b('0x1a')]=this[_0x4f9b('0x24')](),this['set'](_0x4f9b('0x1'),null),this['_spaceBetweenItems']=0x19,this[_0x4f9b('0x2d')]=new Map(),this[_0x4f9b('0x3d')]=new Map(),this[_0x4f9b('0x42')][_0x4f9b('0x7')][_0x4f9b('0x26')](_0x4f9b('0xd'),!0x1),this[_0x4f9b('0x2a')]=null,this[_0x4f9b('0x11')]=null,this[_0x4f9b('0x1e')]=[];}['init'](){const _0x2643fb=this[_0x4f9b('0x42')][_0x4f9b('0x7')][_0x4f9b('0x0')](_0x4f9b('0x32'));_0x2643fb&&this[_0x4f9b('0x43')](_0x2643fb);}[_0x4f9b('0x43')](_0xbaa845){if(!y(_0xbaa845))throw new _0x3bc4dc('sidebar-setcontainer-invalid-element');this[_0x4f9b('0x1')]=_0xbaa845;}[_0x4f9b('0x1c')]({viewClass:_0x569449='',spaceBetweenItems:_0x436bd4=0x19}={}){if(!y(this['container']))throw new _0x3bc4dc('sidebar-attachtocontainer-missing-container',this);this[_0x4f9b('0x1')][_0x4f9b('0x17')](this[_0x4f9b('0x1a')][_0x4f9b('0x2c')]),this[_0x4f9b('0x1a')][_0x4f9b('0x9')]=_0x569449,this[_0x4f9b('0x41')]=_0x436bd4;}['rearrange']({removedAnnotation:_0x3fab40,previousAnnotation:_0x3cf8b6,nextAnnotation:_0x4a7a40}){const _0x131904=this['getSidebarItemView'](_0x3fab40);this[_0x4f9b('0x1a')][_0x4f9b('0x5')][_0x4f9b('0x44')](_0x131904),this['_destroySidebarItemView'](_0x3fab40),_0x3cf8b6&&this[_0x4f9b('0x8')](this[_0x4f9b('0x19')](_0x3cf8b6)),_0x4a7a40&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x4a7a40)),this['_updateLastItem']();}[_0x4f9b('0xa')]({blurredAnnotation:_0x5148fe,activatedAnnotation:_0x4f1367,disableAnimationOnActivatedAnnotation:_0x315a0d}){if(this[_0x4f9b('0x11')]=_0x4f1367,_0x5148fe){_0x5148fe[_0x4f9b('0x2e')]=!0x1;const _0x2a58f8=this[_0x4f9b('0x19')](_0x5148fe);_0x2a58f8&&_0x315a0d&&(_0x2a58f8['isAnimationDisabled']=!0x1);}if(_0x4f1367){const _0x988d7e=this['getSidebarItemView'](_0x4f1367);_0x988d7e&&(_0x4f1367[_0x4f9b('0x2e')]=!0x0,_0x315a0d&&(_0x988d7e[_0x4f9b('0x3f')]=!0x0,_0x988d7e[_0x4f9b('0x39')]+=0x1),this[_0x4f9b('0x8')](_0x988d7e));}}['_detachFromContainer'](_0xd727db){if(this['stopListening'](),this[_0x4f9b('0x1a')]['element'][_0x4f9b('0x44')](),_0xd727db)for(const _0x362938 of _0xd727db)this['_destroySidebarItemView'](_0x362938);this[_0x4f9b('0x1a')][_0x4f9b('0x5')]['clear'](),this[_0x4f9b('0x1a')][_0x4f9b('0x9')]='',this['_lastItem']=null;}[_0x4f9b('0x13')](_0x1b1943,_0xe4f9f3){_0xe4f9f3||(_0xe4f9f3=_0x1b1943[_0x4f9b('0x1a')]);const _0x43dcf5=new _0x20ba33(this[_0x4f9b('0x42')][_0x4f9b('0x6')]);this['_sidebarItemViewToAnnotation'][_0x4f9b('0x28')](_0x43dcf5,_0x1b1943),this[_0x4f9b('0x3d')][_0x4f9b('0x28')](_0x1b1943,_0x43dcf5),_0x43dcf5[_0x4f9b('0x1f')][_0x4f9b('0x20')](_0xe4f9f3),this['listenTo'](_0x1b1943[_0x4f9b('0x1a')],_0x4f9b('0x2'),(_0xe4ecf4,_0x30b392,_0xe3f31d)=>{const _0x1a5180=this[_0x4f9b('0x3b')](_0x1b1943,_0xe3f31d);_0x43dcf5[_0x4f9b('0x33')]!=_0x1a5180&&(_0x43dcf5[_0x4f9b('0x33')]=_0x1a5180,this[_0x4f9b('0x34')](_0x43dcf5,_0x1a5180));}),this[_0x4f9b('0x30')](_0x43dcf5,'change:top',()=>{this['_recalculate'](_0x43dcf5,'top');}),this[_0x4f9b('0x30')](_0x43dcf5,'change:bottom',()=>{this[_0x4f9b('0x1b')](_0x43dcf5,_0x4f9b('0x27'));}),this[_0x4f9b('0x8')](_0x43dcf5);const _0x21a962=this['_getItemBefore'](_0x43dcf5);if(_0x21a962)this[_0x4f9b('0x35')](_0x21a962,_0x43dcf5)||this[_0x4f9b('0x8')](_0x43dcf5);else this['_alignToTargetRect'](_0x43dcf5);return this[_0x4f9b('0x15')](),this['view'][_0x4f9b('0x5')]['add'](_0x43dcf5),_0x43dcf5;}[_0x4f9b('0x29')](_0x45981e){if(!_0x45981e[_0x4f9b('0x1f')][_0x4f9b('0x2b')])return;const _0x4e4875=this['_getItemBefore'](_0x45981e);if(!_0x4e4875)return;const _0x4dc6eb=this[_0x4f9b('0x2d')]['get'](_0x4e4875),_0x185ada=this[_0x4f9b('0x11')];_0x185ada&&_0x185ada===_0x4dc6eb?this[_0x4f9b('0x35')](_0x4e4875,_0x45981e):this[_0x4f9b('0x3e')](_0x45981e,_0x4e4875);}['_alignForBottomChange'](_0x476b19){if(!_0x476b19[_0x4f9b('0x1f')][_0x4f9b('0x2b')])return;const _0xba35d5=this[_0x4f9b('0x40')](_0x476b19);if(!_0xba35d5)return;const _0x4ec154=this[_0x4f9b('0x2d')][_0x4f9b('0x0')](_0xba35d5),_0x3d0768=this['context'][_0x4f9b('0x7')][_0x4f9b('0x0')](_0x4f9b('0xd')),_0x3595ca=this[_0x4f9b('0x11')];_0x3595ca&&_0x3595ca===_0x4ec154&&_0x3d0768?(this[_0x4f9b('0x3e')](_0xba35d5,_0x476b19),this[_0x4f9b('0x35')](_0x476b19,_0xba35d5)):_0x3595ca&&_0x3595ca===_0x4ec154?this['_alignBeforeItem'](_0xba35d5,_0x476b19):this[_0x4f9b('0x35')](_0x476b19,_0xba35d5);}[_0x4f9b('0x1b')](_0x5d5537,_0x3354d2){0x0===this[_0x4f9b('0x1e')]['length']&&setTimeout(()=>{for(const {sidebarItemView:_0xc5741b,changedProp:_0x5156d1}of this['_recalculateBuffer'])_0x4f9b('0x39')===_0x5156d1?this[_0x4f9b('0x29')](_0xc5741b):this[_0x4f9b('0x38')](_0xc5741b);this[_0x4f9b('0x1e')]=[];},0xa),this['_recalculateBuffer'][_0x4f9b('0x3a')]({'sidebarItemView':_0x5d5537,'changedProp':_0x3354d2});}[_0x4f9b('0x19')](_0x3bc564){return this[_0x4f9b('0x3d')][_0x4f9b('0x0')](_0x3bc564);}[_0x4f9b('0xf')](){this[_0x4f9b('0x1a')]['destroy']();}[_0x4f9b('0x25')](_0x50a8da){const _0x4b67a8=this[_0x4f9b('0x19')](_0x50a8da);this[_0x4f9b('0x21')](_0x4b67a8),this[_0x4f9b('0x21')](_0x50a8da[_0x4f9b('0x1a')]),_0x4b67a8[_0x4f9b('0xf')](),this[_0x4f9b('0x3d')][_0x4f9b('0x12')](_0x50a8da),this['_sidebarItemViewToAnnotation'][_0x4f9b('0x12')](_0x4b67a8);}['_createSidebarView'](){const _0x3f1134=new _0x81af48(this[_0x4f9b('0x42')][_0x4f9b('0x6')]);return _0x3f1134['render'](),this['on'](_0x4f9b('0x23'),(_0x32bc99,_0x3ac888,_0x3f7755,_0x40458c)=>{_0x40458c&&_0x3f1134[_0x4f9b('0x2f')](_0x4f9b('0x1d')),_0x3f7755?_0x3f1134[_0x4f9b('0x18')](_0x4f9b('0x1d'))['to'](_0x3f7755,'bottom'):_0x3f1134[_0x4f9b('0x1d')]=null;}),_0x3f1134;}[_0x4f9b('0x15')](){var _0x762803;this[_0x4f9b('0x31')]=(null===(_0x762803=this['_annotations'])||void 0x0===_0x762803?void 0x0:_0x762803[_0x4f9b('0x45')])?this[_0x4f9b('0x19')](this[_0x4f9b('0x2a')][_0x4f9b('0x45')]):null;}[_0x4f9b('0x3c')](_0x7c7af6){var _0x4d8ad9;const _0x6ccdda=this[_0x4f9b('0x2d')][_0x4f9b('0x0')](_0x7c7af6),_0x21ede9=_0x6ccdda&&(null===(_0x4d8ad9=this['_annotations'])||void 0x0===_0x4d8ad9?void 0x0:_0x4d8ad9['get'](this[_0x4f9b('0x2a')]['getIndex'](_0x6ccdda)-0x1));return _0x21ede9&&this['getSidebarItemView'](_0x21ede9)||null;}[_0x4f9b('0x40')](_0x3dabcf){var _0x1a5937;const _0x1fbf48=this[_0x4f9b('0x2d')][_0x4f9b('0x0')](_0x3dabcf),_0x3b4312=_0x1fbf48&&(null===(_0x1a5937=this['_annotations'])||void 0x0===_0x1a5937?void 0x0:_0x1a5937[_0x4f9b('0x0')](this[_0x4f9b('0x2a')][_0x4f9b('0x37')](_0x1fbf48)+0x1));return _0x3b4312&&this[_0x4f9b('0x19')](_0x3b4312)||null;}['_alignBeforeItem'](_0x1e03c8,_0xadc272){_0x1e03c8['updateHeight']();const _0x142354=H(_0xadc272[_0x4f9b('0x27')]+this[_0x4f9b('0x41')],_0x1e03c8['top']);return!!_0x142354&&(this[_0x4f9b('0x34')](_0xadc272,_0xadc272['top']-_0x142354),!0x0);}[_0x4f9b('0x35')](_0x559f5e,_0x38b176){_0x559f5e[_0x4f9b('0x16')]();const _0x19b3a4=H(_0x559f5e[_0x4f9b('0x27')]+this[_0x4f9b('0x41')],_0x38b176['top']);return!!_0x19b3a4&&(this[_0x4f9b('0x34')](_0x38b176,_0x38b176[_0x4f9b('0x39')]+_0x19b3a4,!0x1),!0x0);}[_0x4f9b('0x8')](_0x7a6feb){const _0x3ec344=this['_sidebarItemViewToAnnotation'][_0x4f9b('0x0')](_0x7a6feb);if(!_0x3ec344||!_0x3ec344[_0x4f9b('0x4')]||!_0x3ec344[_0x4f9b('0x36')])return;const _0x5e5ffe=this['_getTargetTop'](_0x3ec344,_0x3ec344[_0x4f9b('0x36')]);this['_setItemTop'](_0x7a6feb,_0x5e5ffe);}['_getTargetTop'](_0x5d2a34,_0x58b338){if(null===_0x58b338)return 0x0;if(_0x5d2a34[_0x4f9b('0x4')]instanceof _0x1e0c47)return _0x58b338['top'];{const _0x5c4ea6=new _0x1e0c47(this[_0x4f9b('0x1a')][_0x4f9b('0x2c')])[_0x4f9b('0x39')];return _0x58b338[_0x4f9b('0x39')]-_0x5c4ea6;}}[_0x4f9b('0x34')](_0x3a69b0,_0xcb0f71,_0x3f3a31=this[_0x4f9b('0x42')][_0x4f9b('0x7')][_0x4f9b('0x0')]('sidebar.preventScrollOutOfView')){_0x3f3a31&&(_0xcb0f71=Math[_0x4f9b('0x14')](_0xcb0f71,this[_0x4f9b('0x10')](_0x3a69b0))),_0x3a69b0[_0x4f9b('0x39')]=_0xcb0f71;}['_getMaxAvailableTop'](_0x37c800){let _0x5ccb58=this['_getItemBefore'](_0x37c800),_0x1fb74c=0x0;for(;_0x5ccb58;)_0x5ccb58[_0x4f9b('0x16')](),_0x1fb74c+=this[_0x4f9b('0x41')]+_0x5ccb58[_0x4f9b('0xe')],_0x5ccb58=this[_0x4f9b('0x3c')](_0x5ccb58);return _0x1fb74c;}}function H(_0x2ed72c,_0x52fe30){return Math[_0x4f9b('0x14')](_0x2ed72c-_0x52fe30,0x0);}function y(_0x5c29a8){return null!==_0x5c29a8&&_0x4f9b('0xc')==typeof _0x5c29a8&&0x1===_0x5c29a8[_0x4f9b('0x3')];}
@@ -1,25 +1,25 @@
1
- /**
2
- * @module comments/annotations/view/annotationcounterbuttonview
3
- * @publicApi
4
- */
5
- import { ButtonView, View } from 'ckeditor5/src/ui';
6
- import type { Locale } from 'ckeditor5/src/utils';
7
- /**
8
- * A view used in the sidebar by {@link module:comments/annotations/narrowsidebar~NarrowSidebar}.
9
- */
10
- export default class AnnotationCounterButtonView extends ButtonView {
11
- /**
12
- * @observable
13
- */
14
- isDirty: boolean;
15
- /**
16
- * @observable
17
- */
18
- number: number;
19
- /**
20
- * @observable
21
- */
22
- annotationType: string;
23
- counterView: View;
24
- constructor(locale: Locale);
25
- }
1
+ /**
2
+ * @module comments/annotations/view/annotationcounterbuttonview
3
+ * @publicApi
4
+ */
5
+ import { ButtonView, View } from 'ckeditor5/src/ui';
6
+ import type { Locale } from 'ckeditor5/src/utils';
7
+ /**
8
+ * A view used in the sidebar by {@link module:comments/annotations/narrowsidebar~NarrowSidebar}.
9
+ */
10
+ export default class AnnotationCounterButtonView extends ButtonView {
11
+ /**
12
+ * @observable
13
+ */
14
+ isDirty: boolean;
15
+ /**
16
+ * @observable
17
+ */
18
+ number: number;
19
+ /**
20
+ * @observable
21
+ */
22
+ annotationType: string;
23
+ counterView: View;
24
+ constructor(locale: Locale);
25
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x376d=['ck-annotation-counter','bind','ck-annotation-counter__badge','...','extendTemplate','annotationType','span','number','icon','isDirty','bindTemplate','counterView','add','_badge','set','children','ck-annotation-counter__badge--','setTemplate'];(function(_0x5ef05a,_0x376d3c){const _0x4c678e=function(_0x4ef46a){while(--_0x4ef46a){_0x5ef05a['push'](_0x5ef05a['shift']());}};_0x4c678e(++_0x376d3c);}(_0x376d,0x1f3));const _0x4c67=function(_0x5ef05a,_0x376d3c){_0x5ef05a=_0x5ef05a-0x0;let _0x4c678e=_0x376d[_0x5ef05a];return _0x4c678e;};import{ButtonView as _0x4643ee,View as _0x4d62ef}from'ckeditor5/src/ui';import _0x12c60f from'../../../theme/icons/add-comment.svg';export default class D extends _0x4643ee{constructor(_0xb08f15){super(_0xb08f15);const _0x5cc611=this[_0x4c67('0xf')];this[_0x4c67('0x1')](_0x4c67('0xe'),!0x1),this[_0x4c67('0x1')]('number',0x0),this[_0x4c67('0x6')]('_badge')['to'](this,_0x4c67('0xe'),this,_0x4c67('0xc'),(_0x1d2990,_0x5797b3)=>_0x1d2990?_0x4c67('0x8'):_0x5797b3['toString']()),this[_0x4c67('0x1')](_0x4c67('0xa'),''),this[_0x4c67('0xd')]=_0x12c60f,this[_0x4c67('0x9')]({'attributes':{'class':[_0x4c67('0x5')]}}),this[_0x4c67('0x10')]=new _0x4d62ef(),this[_0x4c67('0x10')][_0x4c67('0x4')]({'tag':_0x4c67('0xb'),'attributes':{'class':[_0x4c67('0x7'),_0x5cc611['to'](_0x4c67('0xa'),_0x5c4753=>_0x4c67('0x3')+_0x5c4753),_0x5cc611['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x5cc611['to'](_0x4c67('0x0'))}]}),this[_0x4c67('0x2')][_0x4c67('0x11')](this[_0x4c67('0x10')]);}}
23
+ const _0x25bf=['children','ck-annotation-counter','ck-annotation-counter__badge','add','toString','annotationType','...','number','counterView','bindTemplate','bind','_badge','icon','extendTemplate','isDirty','set','setTemplate'];(function(_0xb67ce5,_0x25bf2f){const _0x559d1f=function(_0x5038d4){while(--_0x5038d4){_0xb67ce5['push'](_0xb67ce5['shift']());}};_0x559d1f(++_0x25bf2f);}(_0x25bf,0x93));const _0x559d=function(_0xb67ce5,_0x25bf2f){_0xb67ce5=_0xb67ce5-0x0;let _0x559d1f=_0x25bf[_0xb67ce5];return _0x559d1f;};import{ButtonView as _0x2367d3,View as _0x40fcf5}from'ckeditor5/src/ui';import _0x4f02d5 from'../../../theme/icons/add-comment.svg';export default class D extends _0x2367d3{constructor(_0x41741e){super(_0x41741e);const _0x349384=this[_0x559d('0xf')];this[_0x559d('0x4')](_0x559d('0x3'),!0x1),this[_0x559d('0x4')](_0x559d('0xd'),0x0),this[_0x559d('0x10')](_0x559d('0x0'))['to'](this,'isDirty',this,_0x559d('0xd'),(_0x553606,_0x49ac8c)=>_0x553606?_0x559d('0xc'):_0x49ac8c[_0x559d('0xa')]()),this[_0x559d('0x4')](_0x559d('0xb'),''),this[_0x559d('0x1')]=_0x4f02d5,this[_0x559d('0x2')]({'attributes':{'class':[_0x559d('0x7')]}}),this['counterView']=new _0x40fcf5(),this[_0x559d('0xe')][_0x559d('0x5')]({'tag':'span','attributes':{'class':[_0x559d('0x8'),_0x349384['to'](_0x559d('0xb'),_0x31b8c8=>'ck-annotation-counter__badge--'+_0x31b8c8),_0x349384['if'](_0x559d('0x3'),'ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x349384['to'](_0x559d('0x0'))}]}),this[_0x559d('0x6')][_0x559d('0x9')](this[_0x559d('0xe')]);}}
@@ -1,86 +1,86 @@
1
- /**
2
- * @module comments/annotations/view/annotationview
3
- * @publicApi
4
- */
5
- import { View, type ViewCollection } from 'ckeditor5/src/ui';
6
- import { FocusTracker, KeystrokeHandler, type Rect, type Locale } from 'ckeditor5/src/utils';
7
- import '../../../theme/annotation.css';
8
- /**
9
- * A wrapping view for any view added to the `Annotations` plugin.
10
- *
11
- * It introduces functionalities that make the given view ready to be used as an annotation, such as focus tracking, height resizing,
12
- * and other observable properties that help share current annotation state across different UIs.
13
- */
14
- export default class AnnotationView extends View {
15
- /**
16
- * Tracks focus on the annotation view.
17
- *
18
- * Add a DOM element to this focus tracker to prevent blurring annotation view
19
- * when the DOM element is focused.
20
- */
21
- readonly focusTracker: FocusTracker;
22
- readonly id: string;
23
- readonly keystrokes: KeystrokeHandler;
24
- /**
25
- * Target rectangle to which the annotation should be attached.
26
- *
27
- * @observable
28
- */
29
- targetRect: Rect | null;
30
- /**
31
- * Annotation view height.
32
- *
33
- * @observable
34
- */
35
- height: number;
36
- /**
37
- * Informs if an annotation is active.
38
- *
39
- * @observable
40
- */
41
- isActive: boolean;
42
- /**
43
- * Informs if there are unsaved changes in the annotation.
44
- *
45
- * @observable
46
- */
47
- isDirty: boolean;
48
- /**
49
- * The number of items in the annotation.
50
- *
51
- * @observable
52
- */
53
- length: number;
54
- /**
55
- * @observable
56
- */
57
- type: string;
58
- element: HTMLElement;
59
- /**
60
- * Collection for content views.
61
- */
62
- content: ViewCollection;
63
- /**
64
- * The inner annotation view.
65
- */
66
- mainView: AnnotationMainView;
67
- /**
68
- * @inheritDoc
69
- */
70
- constructor(locale: Locale, mainView: AnnotationMainView);
71
- /**
72
- * @inheritDoc
73
- */
74
- render(): void;
75
- /**
76
- * @inheritDoc
77
- */
78
- destroy(): void;
79
- /**
80
- * Focuses the annotation view.
81
- */
82
- focus(): void;
83
- }
84
- export interface AnnotationMainView extends View {
85
- isActive: boolean;
86
- }
1
+ /**
2
+ * @module comments/annotations/view/annotationview
3
+ * @publicApi
4
+ */
5
+ import { View, type ViewCollection } from 'ckeditor5/src/ui';
6
+ import { FocusTracker, KeystrokeHandler, type Rect, type Locale } from 'ckeditor5/src/utils';
7
+ import '../../../theme/annotation.css';
8
+ /**
9
+ * A wrapping view for any view added to the `Annotations` plugin.
10
+ *
11
+ * It introduces functionalities that make the given view ready to be used as an annotation, such as focus tracking, height resizing,
12
+ * and other observable properties that help share current annotation state across different UIs.
13
+ */
14
+ export default class AnnotationView extends View {
15
+ /**
16
+ * Tracks focus on the annotation view.
17
+ *
18
+ * Add a DOM element to this focus tracker to prevent blurring annotation view
19
+ * when the DOM element is focused.
20
+ */
21
+ readonly focusTracker: FocusTracker;
22
+ readonly id: string;
23
+ readonly keystrokes: KeystrokeHandler;
24
+ /**
25
+ * Target rectangle to which the annotation should be attached.
26
+ *
27
+ * @observable
28
+ */
29
+ targetRect: Rect | null;
30
+ /**
31
+ * Annotation view height.
32
+ *
33
+ * @observable
34
+ */
35
+ height: number;
36
+ /**
37
+ * Informs if an annotation is active.
38
+ *
39
+ * @observable
40
+ */
41
+ isActive: boolean;
42
+ /**
43
+ * Informs if there are unsaved changes in the annotation.
44
+ *
45
+ * @observable
46
+ */
47
+ isDirty: boolean;
48
+ /**
49
+ * The number of items in the annotation.
50
+ *
51
+ * @observable
52
+ */
53
+ length: number;
54
+ /**
55
+ * @observable
56
+ */
57
+ type: string;
58
+ element: HTMLElement;
59
+ /**
60
+ * Collection for content views.
61
+ */
62
+ content: ViewCollection;
63
+ /**
64
+ * The inner annotation view.
65
+ */
66
+ mainView: AnnotationMainView;
67
+ /**
68
+ * @inheritDoc
69
+ */
70
+ constructor(locale: Locale, mainView: AnnotationMainView);
71
+ /**
72
+ * @inheritDoc
73
+ */
74
+ render(): void;
75
+ /**
76
+ * @inheritDoc
77
+ */
78
+ destroy(): void;
79
+ /**
80
+ * Focuses the annotation view.
81
+ */
82
+ focus(): void;
83
+ }
84
+ export interface AnnotationMainView extends View {
85
+ isActive: boolean;
86
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3e36=['content','keystrokes','ck-annotation-wrapper','clientHeight','listenTo','destroy','render','element','set','isDirty','bindTemplate','clear','focusTracker','height','_mutationObserver','targetRect','detach','createCollection','isActive','Esc','type','focus','ck-annotation-wrapper--active','add','length','attach','_updateHeight','mainView'];(function(_0x4bcd81,_0x3e36b6){const _0x206c25=function(_0x353bec){while(--_0x353bec){_0x4bcd81['push'](_0x4bcd81['shift']());}};_0x206c25(++_0x3e36b6);}(_0x3e36,0x1a2));const _0x206c=function(_0x4bcd81,_0x3e36b6){_0x4bcd81=_0x4bcd81-0x0;let _0x206c25=_0x3e36[_0x4bcd81];return _0x206c25;};import{View as _0x47c69d}from'ckeditor5/src/ui';import{FocusTracker as _0x38e1da,KeystrokeHandler as _0x52cc56,uid as _0x5bd060}from'ckeditor5/src/utils';import _0x2191a1 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x47c69d{constructor(_0x2d0a00,_0x19481a){super(_0x2d0a00),this['id']=_0x5bd060(),this['focusTracker']=new _0x38e1da(),this[_0x206c('0x3')]=new _0x52cc56(),this[_0x206c('0x3')][_0x206c('0xa')](_0x206c('0x15'),(_0x40956e,_0x58863f)=>this['fire'](_0x206c('0x15'),_0x58863f)),this[_0x206c('0xa')](_0x206c('0x11'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x206c('0xa')](_0x206c('0xf'),0x0),this['set'](_0x206c('0x14'),!0x1),this[_0x206c('0xa')](_0x206c('0xb'),!0x1),this[_0x206c('0xa')](_0x206c('0x1a'),0x0),this[_0x206c('0xa')](_0x206c('0x16'),''),this['_mutationObserver']=_0x2191a1(()=>this[_0x206c('0x0')]()),this[_0x206c('0x2')]=this[_0x206c('0x13')](),this['content'][_0x206c('0x19')](_0x19481a),this[_0x206c('0x1')]=_0x19481a;const _0x2c647c=this[_0x206c('0xc')];this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x206c('0x4'),'ck-rounded-corners',_0x2c647c['if'](_0x206c('0x14'),_0x206c('0x18'))],'tabindex':-0x1},'children':this['content']});}[_0x206c('0x8')](){super[_0x206c('0x8')](),this[_0x206c('0xe')][_0x206c('0x19')](this[_0x206c('0x9')]),this['keystrokes'][_0x206c('0x6')](this[_0x206c('0x9')]),this[_0x206c('0x10')][_0x206c('0x1b')](this[_0x206c('0x9')]);}[_0x206c('0x7')](){this['content'][_0x206c('0xd')](),this[_0x206c('0x3')][_0x206c('0x7')](),this[_0x206c('0xe')]['destroy'](),this[_0x206c('0x10')][_0x206c('0x12')](),super[_0x206c('0x7')]();}[_0x206c('0x17')](){this[_0x206c('0x9')]['focus']();}[_0x206c('0x0')](){const _0x580d3e=this[_0x206c('0x9')][_0x206c('0x5')];_0x580d3e&&(this[_0x206c('0xf')]=_0x580d3e);}}
23
+ const _0x4cfc=['targetRect','_mutationObserver','isActive','detach','element','listenTo','_updateHeight','ck-annotation-wrapper','keystrokes','ck-annotation-wrapper--active','clear','type','focusTracker','div','content','clientHeight','height','length','render','focus','set','mainView','isDirty','bindTemplate','destroy','ck-rounded-corners','add','Esc'];(function(_0x539484,_0x4cfcfa){const _0x2c4e5d=function(_0x3330a2){while(--_0x3330a2){_0x539484['push'](_0x539484['shift']());}};_0x2c4e5d(++_0x4cfcfa);}(_0x4cfc,0x1c3));const _0x2c4e=function(_0x539484,_0x4cfcfa){_0x539484=_0x539484-0x0;let _0x2c4e5d=_0x4cfc[_0x539484];return _0x2c4e5d;};import{View as _0x646bcc}from'ckeditor5/src/ui';import{FocusTracker as _0x40adf4,KeystrokeHandler as _0x3229c5,uid as _0x127ea5}from'ckeditor5/src/utils';import _0x390461 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x646bcc{constructor(_0x4cd026,_0x6f0b65){super(_0x4cd026),this['id']=_0x127ea5(),this['focusTracker']=new _0x40adf4(),this[_0x2c4e('0x5')]=new _0x3229c5(),this['keystrokes'][_0x2c4e('0x11')](_0x2c4e('0x18'),(_0x43aeee,_0x10a1ee)=>this['fire']('Esc',_0x10a1ee)),this['set'](_0x2c4e('0x19'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set'](_0x2c4e('0xd'),0x0),this[_0x2c4e('0x11')](_0x2c4e('0x1b'),!0x1),this['set'](_0x2c4e('0x13'),!0x1),this[_0x2c4e('0x11')](_0x2c4e('0xe'),0x0),this[_0x2c4e('0x11')](_0x2c4e('0x8'),''),this[_0x2c4e('0x1a')]=_0x390461(()=>this[_0x2c4e('0x3')]()),this[_0x2c4e('0xb')]=this['createCollection'](),this[_0x2c4e('0xb')][_0x2c4e('0x17')](_0x6f0b65),this[_0x2c4e('0x12')]=_0x6f0b65;const _0x34dbeb=this[_0x2c4e('0x14')];this['setTemplate']({'tag':_0x2c4e('0xa'),'attributes':{'class':['ck',_0x2c4e('0x4'),_0x2c4e('0x16'),_0x34dbeb['if'](_0x2c4e('0x1b'),_0x2c4e('0x6'))],'tabindex':-0x1},'children':this[_0x2c4e('0xb')]});}['render'](){super[_0x2c4e('0xf')](),this['focusTracker'][_0x2c4e('0x17')](this[_0x2c4e('0x1')]),this['keystrokes'][_0x2c4e('0x2')](this[_0x2c4e('0x1')]),this[_0x2c4e('0x1a')]['attach'](this[_0x2c4e('0x1')]);}['destroy'](){this[_0x2c4e('0xb')][_0x2c4e('0x7')](),this[_0x2c4e('0x5')][_0x2c4e('0x15')](),this[_0x2c4e('0x9')]['destroy'](),this[_0x2c4e('0x1a')][_0x2c4e('0x0')](),super[_0x2c4e('0x15')]();}[_0x2c4e('0x10')](){this[_0x2c4e('0x1')]['focus']();}[_0x2c4e('0x3')](){const _0x19df2e=this[_0x2c4e('0x1')][_0x2c4e('0xc')];_0x19df2e&&(this[_0x2c4e('0xd')]=_0x19df2e);}}