@ckeditor/ckeditor5-comments 38.0.1 → 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 (98) hide show
  1. package/build/comments.js +1 -1
  2. package/build/translations/en-au.js +1 -1
  3. package/build/translations/it.js +1 -1
  4. package/build/translations/lv.js +1 -1
  5. package/build/translations/pt-br.js +1 -1
  6. package/build/translations/sk.js +1 -1
  7. package/build/translations/sq.js +1 -0
  8. package/lang/translations/en-au.po +1 -1
  9. package/lang/translations/it.po +1 -1
  10. package/lang/translations/lv.po +1 -1
  11. package/lang/translations/pt-br.po +1 -1
  12. package/lang/translations/sk.po +1 -1
  13. package/lang/translations/sq.po +111 -0
  14. package/package.json +10 -8
  15. package/src/annotations/annotation.d.ts +86 -86
  16. package/src/annotations/annotation.js +1 -1
  17. package/src/annotations/annotationcollection.d.ts +94 -94
  18. package/src/annotations/annotationcollection.js +1 -1
  19. package/src/annotations/annotations.d.ts +150 -150
  20. package/src/annotations/annotations.js +1 -1
  21. package/src/annotations/annotationsuis.d.ts +228 -227
  22. package/src/annotations/annotationsuis.js +1 -1
  23. package/src/annotations/editorannotations.d.ts +63 -62
  24. package/src/annotations/editorannotations.js +1 -1
  25. package/src/annotations/inlineannotations.d.ts +86 -84
  26. package/src/annotations/inlineannotations.js +1 -1
  27. package/src/annotations/narrowsidebar.d.ts +81 -80
  28. package/src/annotations/narrowsidebar.js +1 -1
  29. package/src/annotations/sidebar.d.ts +96 -96
  30. package/src/annotations/sidebar.js +1 -1
  31. package/src/annotations/view/annotationcounterbuttonview.d.ts +25 -25
  32. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  33. package/src/annotations/view/annotationview.d.ts +86 -86
  34. package/src/annotations/view/annotationview.js +1 -1
  35. package/src/annotations/view/sidebaritemview.d.ts +51 -51
  36. package/src/annotations/view/sidebaritemview.js +1 -1
  37. package/src/annotations/view/sidebarview.d.ts +28 -28
  38. package/src/annotations/view/sidebarview.js +1 -1
  39. package/src/annotations/widesidebar.d.ts +73 -72
  40. package/src/annotations/widesidebar.js +1 -1
  41. package/src/augmentation.d.ts +48 -48
  42. package/src/comments/addcommentthreadcommand.d.ts +31 -31
  43. package/src/comments/addcommentthreadcommand.js +1 -1
  44. package/src/comments/commentsarchive.d.ts +27 -25
  45. package/src/comments/commentsarchive.js +1 -1
  46. package/src/comments/commentsarchiveui.d.ts +34 -32
  47. package/src/comments/commentsarchiveui.js +1 -1
  48. package/src/comments/commentsediting.d.ts +75 -71
  49. package/src/comments/commentsediting.js +1 -1
  50. package/src/comments/commentsrepository.d.ts +1088 -1084
  51. package/src/comments/commentsrepository.js +1 -1
  52. package/src/comments/commentsui.d.ts +29 -25
  53. package/src/comments/commentsui.js +1 -1
  54. package/src/comments/integrations/commentsrestrictededitingmode.d.ts +13 -13
  55. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  56. package/src/comments/integrations/importword.d.ts +17 -17
  57. package/src/comments/integrations/importword.js +1 -1
  58. package/src/comments/ui/commenteditor/commenteditor.d.ts +32 -32
  59. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  60. package/src/comments/ui/commenteditor/commenteditorui.d.ts +27 -27
  61. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  62. package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +32 -32
  63. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  64. package/src/comments/ui/commentthreadcontroller.d.ts +64 -64
  65. package/src/comments/ui/commentthreadcontroller.js +1 -1
  66. package/src/comments/ui/view/basecommentthreadview.d.ts +108 -108
  67. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  68. package/src/comments/ui/view/basecommentview.d.ts +108 -108
  69. package/src/comments/ui/view/basecommentview.js +1 -1
  70. package/src/comments/ui/view/collapsedcommentsview.d.ts +9 -9
  71. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  72. package/src/comments/ui/view/commentcontentview.d.ts +10 -10
  73. package/src/comments/ui/view/commentcontentview.js +1 -1
  74. package/src/comments/ui/view/commentinputview.d.ts +82 -82
  75. package/src/comments/ui/view/commentinputview.js +1 -1
  76. package/src/comments/ui/view/commentsarchiveview.d.ts +34 -34
  77. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  78. package/src/comments/ui/view/commentslistview.d.ts +96 -96
  79. package/src/comments/ui/view/commentslistview.js +1 -1
  80. package/src/comments/ui/view/commentthreadheaderview.d.ts +46 -46
  81. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  82. package/src/comments/ui/view/commentthreadinputview.d.ts +37 -37
  83. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  84. package/src/comments/ui/view/commentthreadview.d.ts +113 -113
  85. package/src/comments/ui/view/commentthreadview.js +1 -1
  86. package/src/comments/ui/view/commentview.d.ts +239 -239
  87. package/src/comments/ui/view/commentview.js +1 -1
  88. package/src/comments.d.ts +31 -22
  89. package/src/comments.js +1 -1
  90. package/src/commentsonly.d.ts +29 -28
  91. package/src/commentsonly.js +1 -1
  92. package/src/config.d.ts +172 -172
  93. package/src/index.d.ts +21 -19
  94. package/src/index.js +1 -1
  95. package/src/utils/common-translations.d.ts +5 -5
  96. package/src/utils/common-translations.js +1 -1
  97. package/src/utils/createmutationobserver.d.ts +13 -13
  98. package/src/utils/createmutationobserver.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x58c3=['element','targetRect','set','bindTemplate','focusTracker','_updateHeight','listenTo','div','isDirty','render','destroy','setTemplate','createCollection','height','fire','attach','ck-rounded-corners','_mutationObserver','keystrokes','isActive','type','clear','mainView','add','focus','detach','length','content'];(function(_0xc28432,_0x58c387){const _0x4fb4ea=function(_0xb6c18d){while(--_0xb6c18d){_0xc28432['push'](_0xc28432['shift']());}};_0x4fb4ea(++_0x58c387);}(_0x58c3,0x97));const _0x4fb4=function(_0xc28432,_0x58c387){_0xc28432=_0xc28432-0x0;let _0x4fb4ea=_0x58c3[_0xc28432];return _0x4fb4ea;};import{View as _0x311bbf}from'ckeditor5/src/ui';import{FocusTracker as _0x2e0f78,KeystrokeHandler as _0x56b2b7,uid as _0x5da8c7}from'ckeditor5/src/utils';import _0x4fcebf from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x311bbf{constructor(_0x49ae2e,_0x5d1656){super(_0x49ae2e),this['id']=_0x5da8c7(),this[_0x4fb4('0x15')]=new _0x2e0f78(),this[_0x4fb4('0x7')]=new _0x56b2b7(),this[_0x4fb4('0x7')][_0x4fb4('0x13')]('Esc',(_0x23b745,_0x57c49f)=>this[_0x4fb4('0x3')]('Esc',_0x57c49f)),this[_0x4fb4('0x13')](_0x4fb4('0x12'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x4fb4('0x13')]('height',0x0),this[_0x4fb4('0x13')](_0x4fb4('0x8'),!0x1),this[_0x4fb4('0x13')](_0x4fb4('0x19'),!0x1),this[_0x4fb4('0x13')](_0x4fb4('0xf'),0x0),this['set'](_0x4fb4('0x9'),''),this[_0x4fb4('0x6')]=_0x4fcebf(()=>this['_updateHeight']()),this[_0x4fb4('0x10')]=this[_0x4fb4('0x1')](),this[_0x4fb4('0x10')]['add'](_0x5d1656),this[_0x4fb4('0xb')]=_0x5d1656;const _0x412c0e=this[_0x4fb4('0x14')];this[_0x4fb4('0x0')]({'tag':_0x4fb4('0x18'),'attributes':{'class':['ck','ck-annotation-wrapper',_0x4fb4('0x5'),_0x412c0e['if'](_0x4fb4('0x8'),'ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this[_0x4fb4('0x10')]});}[_0x4fb4('0x1a')](){super['render'](),this[_0x4fb4('0x15')][_0x4fb4('0xc')](this[_0x4fb4('0x11')]),this[_0x4fb4('0x7')][_0x4fb4('0x17')](this[_0x4fb4('0x11')]),this[_0x4fb4('0x6')][_0x4fb4('0x4')](this[_0x4fb4('0x11')]);}[_0x4fb4('0x1b')](){this[_0x4fb4('0x10')][_0x4fb4('0xa')](),this['keystrokes']['destroy'](),this[_0x4fb4('0x15')]['destroy'](),this[_0x4fb4('0x6')][_0x4fb4('0xe')](),super['destroy']();}[_0x4fb4('0xd')](){this[_0x4fb4('0x11')][_0x4fb4('0xd')]();}[_0x4fb4('0x16')](){const _0x5914dd=this[_0x4fb4('0x11')]['clientHeight'];_0x5914dd&&(this[_0x4fb4('0x2')]=_0x5914dd);}}
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);}}
@@ -1,51 +1,51 @@
1
- /**
2
- * @module comments/annotations/view/sidebaritemview
3
- * @publicApi
4
- */
5
- import { View, type ViewCollection } from 'ckeditor5/src/ui';
6
- import { type Locale } from 'ckeditor5/src/utils';
7
- /**
8
- * A wrapper view that wraps given {@link module:ui/view~View} to display it as a {@link module:comments/annotations/sidebar~Sidebar} item.
9
- */
10
- export default class SidebarItemView extends View {
11
- element: HTMLElement;
12
- /**
13
- * The item top offset.
14
- * Setting `0` as the initial value makes new items falling from heaven.
15
- *
16
- * @observable
17
- */
18
- top: number;
19
- /**
20
- * @observable
21
- */
22
- bottom: number;
23
- /**
24
- * @observable
25
- */
26
- height: number;
27
- /**
28
- * @observable
29
- */
30
- isAnimationDisabled: boolean;
31
- /**
32
- * A collection of content views.
33
- */
34
- content: ViewCollection;
35
- /**
36
- * @inheritDoc
37
- */
38
- constructor(locale: Locale);
39
- /**
40
- * @inheritDoc
41
- */
42
- render(): void;
43
- /**
44
- * Updates {@link #height the height property} according to the element's DOM height.
45
- */
46
- updateHeight(): void;
47
- /**
48
- * @inheritDoc
49
- */
50
- destroy(): void;
51
- }
1
+ /**
2
+ * @module comments/annotations/view/sidebaritemview
3
+ * @publicApi
4
+ */
5
+ import { View, type ViewCollection } from 'ckeditor5/src/ui';
6
+ import { type Locale } from 'ckeditor5/src/utils';
7
+ /**
8
+ * A wrapper view that wraps given {@link module:ui/view~View} to display it as a {@link module:comments/annotations/sidebar~Sidebar} item.
9
+ */
10
+ export default class SidebarItemView extends View {
11
+ element: HTMLElement;
12
+ /**
13
+ * The item top offset.
14
+ * Setting `0` as the initial value makes new items falling from heaven.
15
+ *
16
+ * @observable
17
+ */
18
+ top: number;
19
+ /**
20
+ * @observable
21
+ */
22
+ bottom: number;
23
+ /**
24
+ * @observable
25
+ */
26
+ height: number;
27
+ /**
28
+ * @observable
29
+ */
30
+ isAnimationDisabled: boolean;
31
+ /**
32
+ * A collection of content views.
33
+ */
34
+ content: ViewCollection;
35
+ /**
36
+ * @inheritDoc
37
+ */
38
+ constructor(locale: Locale);
39
+ /**
40
+ * @inheritDoc
41
+ */
42
+ render(): void;
43
+ /**
44
+ * Updates {@link #height the height property} according to the element's DOM height.
45
+ */
46
+ updateHeight(): void;
47
+ /**
48
+ * @inheritDoc
49
+ */
50
+ destroy(): void;
51
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5f14=['clear','_targetTop','content','set','isAnimationDisabled','bind','height','destroy','element','attach','setTemplate','render','clientHeight','ck-sidebar-item','_mutationObserver','updateHeight','ck-sidebar-item--no-animation'];(function(_0x48b4cf,_0x5f14f6){const _0x26b0bb=function(_0x1aeb66){while(--_0x1aeb66){_0x48b4cf['push'](_0x48b4cf['shift']());}};_0x26b0bb(++_0x5f14f6);}(_0x5f14,0x195));const _0x26b0=function(_0x48b4cf,_0x5f14f6){_0x48b4cf=_0x48b4cf-0x0;let _0x26b0bb=_0x5f14[_0x48b4cf];return _0x26b0bb;};import{View as _0x146eca}from'ckeditor5/src/ui';import{toUnit as _0x5d1dbf}from'ckeditor5/src/utils';import _0x4f0ee7 from'../../utils/createmutationobserver';const At=_0x5d1dbf('px');export default class C extends _0x146eca{constructor(_0x10b6a9){super(_0x10b6a9),this[_0x26b0('0x6')]('top',0x0),this[_0x26b0('0x6')](_0x26b0('0x9'),0x0),this[_0x26b0('0x8')]('bottom')['to'](this,'top',this,_0x26b0('0x9'),(_0x2d745f,_0x39bdae)=>_0x2d745f+_0x39bdae),this['set']('isAnimationDisabled',!0x1),this[_0x26b0('0x0')]=_0x4f0ee7(()=>this[_0x26b0('0x1')]()),this[_0x26b0('0x4')]=null,this[_0x26b0('0x5')]=this['createCollection']();const _0x3f4d49=this['bindTemplate'];this[_0x26b0('0xd')]({'tag':'div','attributes':{'class':[_0x26b0('0x10'),_0x3f4d49['to'](_0x26b0('0x7'),_0x652d58=>_0x652d58?_0x26b0('0x2'):'')],'style':{'top':_0x3f4d49['to']('top',_0x546fe6=>At(_0x546fe6))}},'children':this['content']});}[_0x26b0('0xe')](){super['render'](),this[_0x26b0('0x0')][_0x26b0('0xc')](this[_0x26b0('0xb')]);}[_0x26b0('0x1')](){const _0x35f08b=this['element'][_0x26b0('0xf')];_0x35f08b&&(this[_0x26b0('0x9')]=_0x35f08b);}[_0x26b0('0xa')](){this['content'][_0x26b0('0x3')](),this[_0x26b0('0x0')]['detach'](),super['destroy']();}}
23
+ const _0x2b06=['set','content','clear','_targetTop','height','ck-sidebar-item--no-animation','detach','isAnimationDisabled','attach','_mutationObserver','div','bottom','element','setTemplate','ck-sidebar-item','render','destroy','clientHeight','top'];(function(_0x18cb3f,_0x2b06d0){const _0x2423e1=function(_0x4f806c){while(--_0x4f806c){_0x18cb3f['push'](_0x18cb3f['shift']());}};_0x2423e1(++_0x2b06d0);}(_0x2b06,0xcc));const _0x2423=function(_0x18cb3f,_0x2b06d0){_0x18cb3f=_0x18cb3f-0x0;let _0x2423e1=_0x2b06[_0x18cb3f];return _0x2423e1;};import{View as _0x5b9002}from'ckeditor5/src/ui';import{toUnit as _0x266056}from'ckeditor5/src/utils';import _0x538eca from'../../utils/createmutationobserver';const At=_0x266056('px');export default class C extends _0x5b9002{constructor(_0x79e5b2){super(_0x79e5b2),this['set'](_0x2423('0x4'),0x0),this[_0x2423('0x5')](_0x2423('0x9'),0x0),this['bind'](_0x2423('0x10'))['to'](this,_0x2423('0x4'),this,'height',(_0x399b69,_0x3376e0)=>_0x399b69+_0x3376e0),this[_0x2423('0x5')](_0x2423('0xc'),!0x1),this[_0x2423('0xe')]=_0x538eca(()=>this['updateHeight']()),this[_0x2423('0x8')]=null,this[_0x2423('0x6')]=this['createCollection']();const _0x18f236=this['bindTemplate'];this[_0x2423('0x12')]({'tag':_0x2423('0xf'),'attributes':{'class':[_0x2423('0x0'),_0x18f236['to'](_0x2423('0xc'),_0x403d5b=>_0x403d5b?_0x2423('0xa'):'')],'style':{'top':_0x18f236['to']('top',_0xbf28b7=>At(_0xbf28b7))}},'children':this[_0x2423('0x6')]});}[_0x2423('0x1')](){super[_0x2423('0x1')](),this[_0x2423('0xe')][_0x2423('0xd')](this[_0x2423('0x11')]);}['updateHeight'](){const _0x3d5cf5=this['element'][_0x2423('0x3')];_0x3d5cf5&&(this[_0x2423('0x9')]=_0x3d5cf5);}[_0x2423('0x2')](){this[_0x2423('0x6')][_0x2423('0x7')](),this['_mutationObserver'][_0x2423('0xb')](),super['destroy']();}}
@@ -1,28 +1,28 @@
1
- /**
2
- * @module comments/annotations/view/sidebarview
3
- * @publicApi
4
- */
5
- import { View, type ViewCollection } from 'ckeditor5/src/ui';
6
- import { type Locale } from 'ckeditor5/src/utils';
7
- import '../../../theme/sidebar.css';
8
- /**
9
- * The sidebar view class that displays the collection of sidebar item views.
10
- */
11
- export default class SidebarView extends View {
12
- /**
13
- * @observable
14
- */
15
- minHeight: number | null;
16
- /**
17
- * @observable
18
- */
19
- class: string;
20
- /**
21
- * A collection of sidebar item views.
22
- */
23
- list: ViewCollection;
24
- /**
25
- * @inheritDoc
26
- */
27
- constructor(locale: Locale);
28
- }
1
+ /**
2
+ * @module comments/annotations/view/sidebarview
3
+ * @publicApi
4
+ */
5
+ import { View, type ViewCollection } from 'ckeditor5/src/ui';
6
+ import { type Locale } from 'ckeditor5/src/utils';
7
+ import '../../../theme/sidebar.css';
8
+ /**
9
+ * The sidebar view class that displays the collection of sidebar item views.
10
+ */
11
+ export default class SidebarView extends View {
12
+ /**
13
+ * @observable
14
+ */
15
+ minHeight: number | null;
16
+ /**
17
+ * @observable
18
+ */
19
+ class: string;
20
+ /**
21
+ * A collection of sidebar item views.
22
+ */
23
+ list: ViewCollection;
24
+ /**
25
+ * @inheritDoc
26
+ */
27
+ constructor(locale: Locale);
28
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x8f5e=['list','ck-sidebar','createCollection','minHeight','number','set','div','bindTemplate','ck-reset'];(function(_0x3013bb,_0x8f5e21){const _0x10d64e=function(_0x5c611a){while(--_0x5c611a){_0x3013bb['push'](_0x3013bb['shift']());}};_0x10d64e(++_0x8f5e21);}(_0x8f5e,0x12e));const _0x10d6=function(_0x3013bb,_0x8f5e21){_0x3013bb=_0x3013bb-0x0;let _0x10d64e=_0x8f5e[_0x3013bb];return _0x10d64e;};import{View as _0xcabc94}from'ckeditor5/src/ui';import{toUnit as _0x3ee03f}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x3ee03f('px');export default class T extends _0xcabc94{constructor(_0x12ca0d){super(_0x12ca0d);const _0x10a17f=this[_0x10d6('0x2')];this[_0x10d6('0x0')]('minHeight',0x0),this['set']('class',''),this['list']=this[_0x10d6('0x6')](),this['setTemplate']({'tag':_0x10d6('0x1'),'attributes':{'class':['ck',_0x10d6('0x5'),_0x10d6('0x3'),_0x10a17f['to']('class')],'style':{'minHeight':_0x10a17f['to'](_0x10d6('0x7'),_0xfc58be=>_0x10d6('0x8')==typeof _0xfc58be?At(_0xfc58be+0xa):null)}},'children':this[_0x10d6('0x4')]});}}
23
+ const _0x4e02=['setTemplate','ck-reset','set','bindTemplate','number','div','minHeight','list','class'];(function(_0x3dd761,_0x4e0285){const _0x3a5b0b=function(_0x5887af){while(--_0x5887af){_0x3dd761['push'](_0x3dd761['shift']());}};_0x3a5b0b(++_0x4e0285);}(_0x4e02,0x168));const _0x3a5b=function(_0x3dd761,_0x4e0285){_0x3dd761=_0x3dd761-0x0;let _0x3a5b0b=_0x4e02[_0x3dd761];return _0x3a5b0b;};import{View as _0x3fd748}from'ckeditor5/src/ui';import{toUnit as _0x5c858a}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x5c858a('px');export default class T extends _0x3fd748{constructor(_0x6da1e6){super(_0x6da1e6);const _0x468c2a=this[_0x3a5b('0x3')];this[_0x3a5b('0x2')](_0x3a5b('0x6'),0x0),this[_0x3a5b('0x2')](_0x3a5b('0x8'),''),this[_0x3a5b('0x7')]=this['createCollection'](),this[_0x3a5b('0x0')]({'tag':_0x3a5b('0x5'),'attributes':{'class':['ck','ck-sidebar',_0x3a5b('0x1'),_0x468c2a['to'](_0x3a5b('0x8'))],'style':{'minHeight':_0x468c2a['to'](_0x3a5b('0x6'),_0x3a3d17=>_0x3a5b('0x4')==typeof _0x3a3d17?At(_0x3a3d17+0xa):null)}},'children':this['list']});}}
@@ -1,72 +1,73 @@
1
- /**
2
- * @module comments/annotations/widesidebar
3
- * @publicApi
4
- */
5
- import { ContextPlugin, type ContextPluginDependencies, Context, type Editor } from 'ckeditor5/src/core';
6
- import { type AnnotationsUI } from './annotationsuis';
7
- import type Annotation from './annotation';
8
- import type AnnotationCollection from './annotationcollection';
9
- /**
10
- * The wide sidebar UI for displaying annotations.
11
- *
12
- * In this implementation {@link module:comments/annotations/sidebar~Sidebar the sidebar} displays full
13
- * {@link module:comments/annotations/view/annotationview~AnnotationView annotation views}.
14
- *
15
- * To activate this UI use one of the following:
16
- *
17
- * ```ts
18
- * editor.plugins.get( 'AnnotationsUIs' ).switchTo( 'wideSidebar' );
19
- * editor.plugins.get( 'AnnotationsUIs' ).activate( 'wideSidebar', filter );
20
- * ```
21
- *
22
- * See {@link module:comments/annotations/annotationsuis~AnnotationsUIs}.
23
- */
24
- export default class WideSidebar extends ContextPlugin implements AnnotationsUI<ContextPlugin> {
25
- /**
26
- * An active annotation tracked by this UI.
27
- *
28
- * @observable
29
- */
30
- activeAnnotation: Annotation | null;
31
- isAttached: boolean;
32
- /**
33
- * A collection of annotations controlled by this UI.
34
- *
35
- * This property is readonly and should not be operated on directly. Use it only to read which annotations are added to this UI.
36
- *
37
- * It is set to `null` if `WideSidebar` is not {@link module:comments/annotations/widesidebar~WideSidebar#attach attached}.
38
- */
39
- annotations: AnnotationCollection | null;
40
- /**
41
- * @inheritDoc
42
- */
43
- static get requires(): ContextPluginDependencies;
44
- /**
45
- * @inheritDoc
46
- */
47
- static get pluginName(): 'WideSidebar';
48
- /**
49
- * @inheritDoc
50
- */
51
- constructor(context: Context | Editor);
52
- /**
53
- * @inheritDoc
54
- */
55
- init(): void;
56
- /**
57
- * Sets the active annotation for this UI.
58
- */
59
- setActiveAnnotation(annotation: Annotation | null): void;
60
- /**
61
- * @inheritDoc
62
- */
63
- attach(annotations: AnnotationCollection): void;
64
- /**
65
- * @inheritDoc
66
- */
67
- detach(): void;
68
- /**
69
- * @inheritDoc
70
- */
71
- destroy(): void;
72
- }
1
+ /**
2
+ * @module comments/annotations/widesidebar
3
+ * @publicApi
4
+ */
5
+ import { ContextPlugin, Context, type Editor } from 'ckeditor5/src/core';
6
+ import AnnotationsUIs, { type AnnotationsUI } from './annotationsuis';
7
+ import Sidebar from './sidebar';
8
+ import type Annotation from './annotation';
9
+ import type { default as AnnotationCollection } from './annotationcollection';
10
+ /**
11
+ * The wide sidebar UI for displaying annotations.
12
+ *
13
+ * In this implementation {@link module:comments/annotations/sidebar~Sidebar the sidebar} displays full
14
+ * {@link module:comments/annotations/view/annotationview~AnnotationView annotation views}.
15
+ *
16
+ * To activate this UI use one of the following:
17
+ *
18
+ * ```ts
19
+ * editor.plugins.get( 'AnnotationsUIs' ).switchTo( 'wideSidebar' );
20
+ * editor.plugins.get( 'AnnotationsUIs' ).activate( 'wideSidebar', filter );
21
+ * ```
22
+ *
23
+ * See {@link module:comments/annotations/annotationsuis~AnnotationsUIs}.
24
+ */
25
+ export default class WideSidebar extends ContextPlugin implements AnnotationsUI<ContextPlugin> {
26
+ /**
27
+ * An active annotation tracked by this UI.
28
+ *
29
+ * @observable
30
+ */
31
+ activeAnnotation: Annotation | null;
32
+ isAttached: boolean;
33
+ /**
34
+ * A collection of annotations controlled by this UI.
35
+ *
36
+ * This property is readonly and should not be operated on directly. Use it only to read which annotations are added to this UI.
37
+ *
38
+ * It is set to `null` if `WideSidebar` is not {@link module:comments/annotations/widesidebar~WideSidebar#attach attached}.
39
+ */
40
+ annotations: AnnotationCollection | null;
41
+ /**
42
+ * @inheritDoc
43
+ */
44
+ static get requires(): readonly [typeof Sidebar, typeof AnnotationsUIs];
45
+ /**
46
+ * @inheritDoc
47
+ */
48
+ static get pluginName(): "WideSidebar";
49
+ /**
50
+ * @inheritDoc
51
+ */
52
+ constructor(context: Context | Editor);
53
+ /**
54
+ * @inheritDoc
55
+ */
56
+ init(): void;
57
+ /**
58
+ * Sets the active annotation for this UI.
59
+ */
60
+ setActiveAnnotation(annotation: Annotation | null): void;
61
+ /**
62
+ * @inheritDoc
63
+ */
64
+ attach(annotations: AnnotationCollection): void;
65
+ /**
66
+ * @inheritDoc
67
+ */
68
+ detach(): void;
69
+ /**
70
+ * @inheritDoc
71
+ */
72
+ destroy(): void;
73
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1f31=['removeEventListener','add','off','_activeAnnotation','_integrateWithEditorAnnotations','pluginName','refreshPositioning','get','set','activeAnnotation','resize','WideSidebar','focus','stopListening','change:container','container','EditorAnnotations','setActiveAnnotation','_refreshPositioningDebounced','plugins','switchTo','annotations','hasDomSelection','ready','wideSidebar','_editorAnnotations','widesidebar-detach-not-attached','context','has','high','destroy','stop','uiUpdate','addAnnotation','register','rearrange','blur','getOrderedSelectedAnnotations','isAttached','attach','detach','updateTargetRect','listenTo','_destroyEditorAnnotationsIntegration','ck-sidebar--wide','from','_detachFromContainer','editors','requires','refresh'];(function(_0x3d6a53,_0x1f31c0){const _0x229545=function(_0x297768){while(--_0x297768){_0x3d6a53['push'](_0x3d6a53['shift']());}};_0x229545(++_0x1f31c0);}(_0x1f31,0x166));const _0x2295=function(_0x3d6a53,_0x1f31c0){_0x3d6a53=_0x3d6a53-0x0;let _0x229545=_0x1f31[_0x3d6a53];return _0x229545;};import{ContextPlugin as _0x86cc,Context as _0x86c9ad}from'ckeditor5/src/core';import _0x3e6664 from'./annotationsuis';import _0xa91dc9 from'./sidebar';import{CKEditorError as _0x162069,Collection as _0x4b0703}from'ckeditor5/src/utils';import{debounce as _0x5e1c10}from'lodash-es';import _0x3b3c5d from'./editorannotations';export default class i extends _0x86cc{static get[_0x2295('0x28')](){return[_0xa91dc9,_0x3e6664];}static get[_0x2295('0x2f')](){return _0x2295('0x3');}constructor(_0x567623){super(_0x567623),this[_0x2295('0x1e')]=!0x1,this[_0x2295('0x0')]('activeAnnotation',null),this['annotations']=null,this[_0x2295('0x11')]=new _0x4b0703(),this[_0x2295('0xa')]=_0x5e1c10(()=>{this['annotations'][_0x2295('0x30')]();},0xfa,{'leading':!0x1});}['init'](){const _0x49816f=this[_0x2295('0x13')][_0x2295('0xb')][_0x2295('0x31')](_0x3e6664),_0x220a13=this[_0x2295('0x13')]['plugins'][_0x2295('0x31')](_0xa91dc9);_0x49816f[_0x2295('0x1a')](_0x2295('0x10'),this),_0x220a13[_0x2295('0x7')]&&_0x49816f[_0x2295('0xc')](_0x2295('0x10'));}[_0x2295('0x9')](_0x32d96d){if(_0x32d96d===this[_0x2295('0x1')])return;const _0x567ebd=this['context']['plugins'][_0x2295('0x31')](_0xa91dc9);_0x567ebd[_0x2295('0x2d')]=_0x32d96d;const _0x19b6f3=this[_0x2295('0x1')];this[_0x2295('0x1')]=_0x32d96d,_0x567ebd['refresh']({'blurredAnnotation':_0x19b6f3,'activatedAnnotation':this[_0x2295('0x1')]});}[_0x2295('0x1f')](_0x20f45c){this['annotations']=_0x20f45c;const _0x4f0712=this['context'][_0x2295('0xb')]['get'](_0xa91dc9);if(_0x4f0712['_annotations']=_0x20f45c,this[_0x2295('0x1e')])throw new _0x162069('widesidebar-attach-already-attached',this);this[_0x2295('0x1e')]=!0x0,this[_0x2295('0x22')](_0x4f0712,'set:container',()=>{this[_0x2295('0x20')](),this[_0x2295('0x22')](_0x4f0712,_0x2295('0x6'),_0x3b4ec7=>{_0x3b4ec7[_0x2295('0x2c')](),this[_0x2295('0x1f')](_0x20f45c);});}),_0x4f0712['_attachToContainer']({'viewClass':_0x2295('0x24')});const _0x43167e=_0x531bf2=>{_0x531bf2[_0x2295('0x21')](),_0x4f0712[_0x2295('0x19')](_0x531bf2);};for(const _0x312662 of _0x20f45c)_0x43167e(_0x312662);this[_0x2295('0x22')](_0x20f45c,_0x2295('0x2b'),(_0x5cc704,_0x28e37f)=>{_0x43167e(_0x28e37f);}),this[_0x2295('0x22')](_0x20f45c,'remove',(_0x4a7912,_0x2a2004,_0x2a1768)=>{_0x4f0712[_0x2295('0x1b')]({'removedAnnotation':_0x2a2004,'previousAnnotation':_0x20f45c['get'](_0x2a1768-0x1),'nextAnnotation':_0x20f45c[_0x2295('0x31')](_0x2a1768+0x1)}),_0x2a2004===this['activeAnnotation']&&this[_0x2295('0x9')](null);},{'priority':'high'}),this['listenTo'](_0x20f45c,_0x2295('0x4'),(_0x4e2ee6,_0x11a558)=>{this[_0x2295('0x9')](_0x11a558);}),this['listenTo'](_0x20f45c,'blur',()=>{this[_0x2295('0x9')](null);});const _0x4b46f2=this[_0x2295('0x13')]instanceof _0x86c9ad?this[_0x2295('0x13')]['editors']:new _0x4b0703([this[_0x2295('0x13')]]);for(const _0x20bd78 of _0x4b46f2)this[_0x2295('0x2e')](_0x20bd78);this[_0x2295('0x22')](_0x4b46f2,_0x2295('0x2b'),(_0xe26dd7,_0x393e97)=>{this[_0x2295('0x22')](_0x393e97,_0x2295('0xf'),()=>{this[_0x2295('0x2e')](_0x393e97);});}),this[_0x2295('0x22')](_0x4b46f2,'remove',(_0x10f25d,_0x2a3926)=>{_0x2a3926['plugins'][_0x2295('0x14')](_0x2295('0x8'))&&this['_destroyEditorAnnotationsIntegration'](_0x2a3926[_0x2295('0xb')]['get'](_0x2295('0x8')));}),window['addEventListener']('resize',this[_0x2295('0xa')]),this['annotations']['refreshPositioning']();}['detach'](){if(!this[_0x2295('0x1e')])throw new _0x162069(_0x2295('0x12'),this);this[_0x2295('0x9')](null);const _0x5e145d=this[_0x2295('0x13')][_0x2295('0xb')][_0x2295('0x31')](_0xa91dc9);_0x5e145d[_0x2295('0x26')](this['annotations']),this[_0x2295('0x5')](_0x5e145d),this[_0x2295('0x5')](this[_0x2295('0xd')]),this[_0x2295('0x13')]instanceof _0x86c9ad&&this['stopListening'](this['context'][_0x2295('0x27')]);for(const _0x124ce9 of Array[_0x2295('0x25')](this[_0x2295('0x11')]))this[_0x2295('0x23')](_0x124ce9);window[_0x2295('0x2a')](_0x2295('0x2'),this[_0x2295('0xa')]),this[_0x2295('0xa')]['cancel'](),this[_0x2295('0x1')]=null,this[_0x2295('0x1e')]=!0x1,this[_0x2295('0xd')]=null;}[_0x2295('0x16')](){this['isAttached']&&this[_0x2295('0x20')]();}['_integrateWithEditorAnnotations'](_0x4d2fc2){const _0xae8932=_0x4d2fc2['plugins'][_0x2295('0x31')](_0x3b3c5d);if(!_0xae8932)return;const _0x2cf1a6=()=>{const _0x491abd=_0xae8932[_0x2295('0x1d')]({'annotations':this[_0x2295('0xd')],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x491abd[0x0]||null);};this[_0x2295('0x22')](_0xae8932,_0x2295('0x29'),_0x2cf1a6),this['listenTo'](_0xae8932,_0x2295('0x1c'),(_0x120d87,{isAnnotationTracked:_0x235dc1})=>{this['activeAnnotation']&&_0x235dc1(this[_0x2295('0x1')])&&this[_0x2295('0x9')](null);}),this[_0x2295('0x22')](_0xae8932,_0x2295('0x18'),()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this[_0x2295('0xd')],_0x2295('0x1c'),_0x4dd17f=>{_0xae8932[_0x2295('0xe')]()&&(_0x2cf1a6(),_0x4dd17f[_0x2295('0x17')]());},{'priority':_0x2295('0x15')}),this[_0x2295('0x11')][_0x2295('0x2b')](_0xae8932);}[_0x2295('0x23')](_0x13543f){this[_0x2295('0x5')](_0x13543f),this['_editorAnnotations']['remove'](_0x13543f);}}
23
+ const _0x287b=['destroy','isAttached','setActiveAnnotation','hasDomSelection','refreshPositioning','_activeAnnotation','listenTo','activeAnnotation','set:container','ready','add','context','change:container','get','editors','addEventListener','pluginName','_destroyEditorAnnotationsIntegration','_integrateWithEditorAnnotations','getOrderedSelectedAnnotations','_editorAnnotations','remove','set','WideSidebar','has','off','resize','init','focus','detach','refresh','attach','container','requires','annotations','high','updateTargetRect','plugins','widesidebar-detach-not-attached','stopListening','register','from','stop','wideSidebar','cancel','rearrange','blur','_refreshPositioningDebounced','EditorAnnotations'];(function(_0x5c9088,_0x287b7d){const _0x2876e8=function(_0x16c842){while(--_0x16c842){_0x5c9088['push'](_0x5c9088['shift']());}};_0x2876e8(++_0x287b7d);}(_0x287b,0x1e9));const _0x2876=function(_0x5c9088,_0x287b7d){_0x5c9088=_0x5c9088-0x0;let _0x2876e8=_0x287b[_0x5c9088];return _0x2876e8;};import{ContextPlugin as _0x29c1b3,Context as _0x4ca8c8}from'ckeditor5/src/core';import _0xc49507 from'./annotationsuis';import _0xc75922 from'./sidebar';import{CKEditorError as _0x7f0e04,Collection as _0x591643}from'ckeditor5/src/utils';import{debounce as _0xc2632e}from'lodash-es';import _0x4498a2 from'./editorannotations';export default class i extends _0x29c1b3{static get[_0x2876('0x22')](){return[_0xc75922,_0xc49507];}static get[_0x2876('0x11')](){return _0x2876('0x18');}constructor(_0x5a95b2){super(_0x5a95b2),this['isAttached']=!0x1,this[_0x2876('0x17')](_0x2876('0x8'),null),this[_0x2876('0x23')]=null,this[_0x2876('0x15')]=new _0x591643(),this[_0x2876('0x30')]=_0xc2632e(()=>{this['annotations'][_0x2876('0x5')]();},0xfa,{'leading':!0x1});}[_0x2876('0x1c')](){const _0x456a0a=this['context'][_0x2876('0x26')][_0x2876('0xe')](_0xc49507),_0x3962a3=this[_0x2876('0xc')][_0x2876('0x26')][_0x2876('0xe')](_0xc75922);_0x456a0a[_0x2876('0x29')](_0x2876('0x2c'),this),_0x3962a3[_0x2876('0x21')]&&_0x456a0a['switchTo']('wideSidebar');}[_0x2876('0x3')](_0x5208d4){if(_0x5208d4===this[_0x2876('0x8')])return;const _0x71aeee=this[_0x2876('0xc')][_0x2876('0x26')][_0x2876('0xe')](_0xc75922);_0x71aeee[_0x2876('0x6')]=_0x5208d4;const _0x1aa7cc=this[_0x2876('0x8')];this[_0x2876('0x8')]=_0x5208d4,_0x71aeee[_0x2876('0x1f')]({'blurredAnnotation':_0x1aa7cc,'activatedAnnotation':this['activeAnnotation']});}[_0x2876('0x20')](_0x5042bc){this['annotations']=_0x5042bc;const _0x66009e=this[_0x2876('0xc')][_0x2876('0x26')][_0x2876('0xe')](_0xc75922);if(_0x66009e['_annotations']=_0x5042bc,this[_0x2876('0x2')])throw new _0x7f0e04('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this[_0x2876('0x7')](_0x66009e,_0x2876('0x9'),()=>{this[_0x2876('0x1e')](),this[_0x2876('0x7')](_0x66009e,_0x2876('0xd'),_0x18df59=>{_0x18df59[_0x2876('0x1a')](),this[_0x2876('0x20')](_0x5042bc);});}),_0x66009e['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x174e75=_0x303eb8=>{_0x303eb8[_0x2876('0x25')](),_0x66009e['addAnnotation'](_0x303eb8);};for(const _0x4c36c3 of _0x5042bc)_0x174e75(_0x4c36c3);this[_0x2876('0x7')](_0x5042bc,_0x2876('0xb'),(_0x21bfc1,_0x5c5828)=>{_0x174e75(_0x5c5828);}),this[_0x2876('0x7')](_0x5042bc,_0x2876('0x16'),(_0x1927f3,_0x5c604e,_0x158272)=>{_0x66009e[_0x2876('0x2e')]({'removedAnnotation':_0x5c604e,'previousAnnotation':_0x5042bc[_0x2876('0xe')](_0x158272-0x1),'nextAnnotation':_0x5042bc[_0x2876('0xe')](_0x158272+0x1)}),_0x5c604e===this[_0x2876('0x8')]&&this[_0x2876('0x3')](null);},{'priority':_0x2876('0x24')}),this[_0x2876('0x7')](_0x5042bc,_0x2876('0x1d'),(_0x1870b0,_0x5bea68)=>{this[_0x2876('0x3')](_0x5bea68);}),this['listenTo'](_0x5042bc,'blur',()=>{this[_0x2876('0x3')](null);});const _0x242523=this[_0x2876('0xc')]instanceof _0x4ca8c8?this[_0x2876('0xc')][_0x2876('0xf')]:new _0x591643([this[_0x2876('0xc')]]);for(const _0x12c183 of _0x242523)this['_integrateWithEditorAnnotations'](_0x12c183);this[_0x2876('0x7')](_0x242523,_0x2876('0xb'),(_0x18716b,_0x16db37)=>{this[_0x2876('0x7')](_0x16db37,_0x2876('0xa'),()=>{this[_0x2876('0x13')](_0x16db37);});}),this[_0x2876('0x7')](_0x242523,'remove',(_0x44b3c8,_0x43cd68)=>{_0x43cd68[_0x2876('0x26')][_0x2876('0x19')](_0x2876('0x0'))&&this[_0x2876('0x12')](_0x43cd68['plugins'][_0x2876('0xe')]('EditorAnnotations'));}),window[_0x2876('0x10')](_0x2876('0x1b'),this['_refreshPositioningDebounced']),this[_0x2876('0x23')][_0x2876('0x5')]();}['detach'](){if(!this['isAttached'])throw new _0x7f0e04(_0x2876('0x27'),this);this[_0x2876('0x3')](null);const _0x893d72=this[_0x2876('0xc')][_0x2876('0x26')][_0x2876('0xe')](_0xc75922);_0x893d72['_detachFromContainer'](this[_0x2876('0x23')]),this['stopListening'](_0x893d72),this['stopListening'](this[_0x2876('0x23')]),this[_0x2876('0xc')]instanceof _0x4ca8c8&&this['stopListening'](this[_0x2876('0xc')][_0x2876('0xf')]);for(const _0x4846a2 of Array[_0x2876('0x2a')](this[_0x2876('0x15')]))this[_0x2876('0x12')](_0x4846a2);window['removeEventListener']('resize',this[_0x2876('0x30')]),this['_refreshPositioningDebounced'][_0x2876('0x2d')](),this[_0x2876('0x8')]=null,this[_0x2876('0x2')]=!0x1,this[_0x2876('0x23')]=null;}[_0x2876('0x1')](){this[_0x2876('0x2')]&&this[_0x2876('0x1e')]();}[_0x2876('0x13')](_0x4303b9){const _0x184246=_0x4303b9[_0x2876('0x26')][_0x2876('0xe')](_0x4498a2);if(!_0x184246)return;const _0x178252=()=>{const _0x2d8ee0=_0x184246[_0x2876('0x14')]({'annotations':this['annotations'],'activeAnnotation':this[_0x2876('0x8')]});this[_0x2876('0x3')](_0x2d8ee0[0x0]||null);};this['listenTo'](_0x184246,_0x2876('0x1f'),_0x178252),this[_0x2876('0x7')](_0x184246,_0x2876('0x2f'),(_0xccca39,{isAnnotationTracked:_0x1f9292})=>{this['activeAnnotation']&&_0x1f9292(this[_0x2876('0x8')])&&this[_0x2876('0x3')](null);}),this['listenTo'](_0x184246,'uiUpdate',()=>{this[_0x2876('0x30')]();}),this['listenTo'](this[_0x2876('0x23')],_0x2876('0x2f'),_0x344fc1=>{_0x184246[_0x2876('0x4')]()&&(_0x178252(),_0x344fc1[_0x2876('0x2b')]());},{'priority':_0x2876('0x24')}),this[_0x2876('0x15')]['add'](_0x184246);}[_0x2876('0x12')](_0x3a11a1){this[_0x2876('0x28')](_0x3a11a1),this[_0x2876('0x15')][_0x2876('0x16')](_0x3a11a1);}}
@@ -1,48 +1,48 @@
1
- import type { CommentsConfig, SidebarConfig, Annotations, AnnotationsUIs, EditorAnnotations, CommentsRepository, CommentsUI } from './index';
2
- declare module '@ckeditor/ckeditor5-core' {
3
- interface EditorConfig {
4
- /**
5
- * The configuration of the comments feature.
6
- * Introduced by the {@link module:comments/comments~Comments} feature.
7
- *
8
- * Read more in {@link module:comments/config~CommentsConfig}.
9
- *
10
- * ```ts
11
- * ClassicEditor
12
- * .create( {
13
- * comments: ... // Locale editor configuration.
14
- * } )
15
- * .then( ... )
16
- * .catch( ... );
17
- * ```
18
- *
19
- * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
20
- */
21
- comments?: CommentsConfig;
22
- /**
23
- * The configuration of the sidebar feature.
24
- * Introduced by the {@link module:comments/annotations/sidebar~Sidebar} feature.
25
- */
26
- sidebar?: SidebarConfig;
27
- /**
28
- * Enables {@link module:comments/commentsonly~CommentsOnly comments-only mode} when the editor initializes.
29
- *
30
- * ```ts
31
- * ClassicEditor
32
- * .create( {
33
- * commentsOnly: true
34
- * } )
35
- * .then( ... )
36
- * .catch( ... );
37
- * ```
38
- */
39
- commentsOnly?: boolean;
40
- }
41
- interface PluginsMap {
42
- [Annotations.pluginName]: Annotations;
43
- [AnnotationsUIs.pluginName]: AnnotationsUIs;
44
- [EditorAnnotations.pluginName]: EditorAnnotations;
45
- [CommentsRepository.pluginName]: CommentsRepository;
46
- [CommentsUI.pluginName]: CommentsUI;
47
- }
48
- }
1
+ import type { CommentsConfig, SidebarConfig, Annotations, AnnotationsUIs, EditorAnnotations, CommentsRepository, CommentsUI } from './index';
2
+ declare module '@ckeditor/ckeditor5-core' {
3
+ interface EditorConfig {
4
+ /**
5
+ * The configuration of the comments feature.
6
+ * Introduced by the {@link module:comments/comments~Comments} feature.
7
+ *
8
+ * Read more in {@link module:comments/config~CommentsConfig}.
9
+ *
10
+ * ```ts
11
+ * ClassicEditor
12
+ * .create( {
13
+ * comments: ... // Locale editor configuration.
14
+ * } )
15
+ * .then( ... )
16
+ * .catch( ... );
17
+ * ```
18
+ *
19
+ * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
20
+ */
21
+ comments?: CommentsConfig;
22
+ /**
23
+ * The configuration of the sidebar feature.
24
+ * Introduced by the {@link module:comments/annotations/sidebar~Sidebar} feature.
25
+ */
26
+ sidebar?: SidebarConfig;
27
+ /**
28
+ * Enables {@link module:comments/commentsonly~CommentsOnly comments-only mode} when the editor initializes.
29
+ *
30
+ * ```ts
31
+ * ClassicEditor
32
+ * .create( {
33
+ * commentsOnly: true
34
+ * } )
35
+ * .then( ... )
36
+ * .catch( ... );
37
+ * ```
38
+ */
39
+ commentsOnly?: boolean;
40
+ }
41
+ interface PluginsMap {
42
+ [Annotations.pluginName]: Annotations;
43
+ [AnnotationsUIs.pluginName]: AnnotationsUIs;
44
+ [EditorAnnotations.pluginName]: EditorAnnotations;
45
+ [CommentsRepository.pluginName]: CommentsRepository;
46
+ [CommentsUI.pluginName]: CommentsUI;
47
+ }
48
+ }
@@ -1,31 +1,31 @@
1
- /**
2
- * @module comments/comments/addcommentthreadcommand
3
- * @publicApi
4
- */
5
- import { Command } from 'ckeditor5/src/core';
6
- /**
7
- * Adds a new CommentMarker what automatically adds corresponding CommentThread to the CommentsEditing#threads collection.
8
- * Note this command adds only a CommentThread draft, to make is public marker has to be changed to be managed using operation.
9
- *
10
- * ```ts
11
- * // If `threadId` is not specified, `addCommentThread()` will generate a unique ID and use it:
12
- * editor.execute( 'addCommentThread' );
13
- *
14
- * // If you want to specify the exact thread ID, pass it through the optional `threadId` configuration parameter.
15
- * editor.execute( 'addCommentThread', { threadId: 'thread-1' } );
16
- * ```
17
- */
18
- export default class AddCommentThreadCommand extends Command {
19
- /**
20
- * @inheritDoc
21
- */
22
- refresh(): void;
23
- /**
24
- * @fires execute
25
- * @param options Options for executed command.
26
- * @param options.threadId Id of comment marker that will be added.
27
- */
28
- execute({ threadId }?: {
29
- threadId?: string | undefined;
30
- }): void;
31
- }
1
+ /**
2
+ * @module comments/comments/addcommentthreadcommand
3
+ * @publicApi
4
+ */
5
+ import { Command } from 'ckeditor5/src/core';
6
+ /**
7
+ * Adds a new CommentMarker what automatically adds corresponding CommentThread to the CommentsEditing#threads collection.
8
+ * Note this command adds only a CommentThread draft, to make is public marker has to be changed to be managed using operation.
9
+ *
10
+ * ```ts
11
+ * // If `threadId` is not specified, `addCommentThread()` will generate a unique ID and use it:
12
+ * editor.execute( 'addCommentThread' );
13
+ *
14
+ * // If you want to specify the exact thread ID, pass it through the optional `threadId` configuration parameter.
15
+ * editor.execute( 'addCommentThread', { threadId: 'thread-1' } );
16
+ * ```
17
+ */
18
+ export default class AddCommentThreadCommand extends Command {
19
+ /**
20
+ * @inheritDoc
21
+ */
22
+ refresh(): void;
23
+ /**
24
+ * @fires execute
25
+ * @param options Options for executed command.
26
+ * @param options.threadId Id of comment marker that will be added.
27
+ */
28
+ execute({ threadId }?: {
29
+ threadId?: string | undefined;
30
+ }): void;
31
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2343=['editor','backward','addMarker','_trimToContent','element','document','getLastMatchingPosition','model','item','isEnabled','selection','end','schema','isObject','getRanges','change','_hasContent','tableCell','$textProxy','execute','createRange','refresh','push','_itemIsContent','comment:'];(function(_0x2d7bdb,_0x2343a2){const _0x30068d=function(_0x431087){while(--_0x431087){_0x2d7bdb['push'](_0x2d7bdb['shift']());}};_0x30068d(++_0x2343a2);}(_0x2343,0x123));const _0x3006=function(_0x2d7bdb,_0x2343a2){_0x2d7bdb=_0x2d7bdb-0x0;let _0x30068d=_0x2343[_0x2d7bdb];return _0x30068d;};import{Command as _0x1b4b5c}from'ckeditor5/src/core';import{uid as _0x41d9c0}from'ckeditor5/src/utils';export default class q extends _0x1b4b5c{[_0x3006('0x5')](){const _0x4dccf4=this[_0x3006('0x9')][_0x3006('0x10')][_0x3006('0xe')]['selection'];for(const _0xbed002 of _0x4dccf4[_0x3006('0x17')]())if(this[_0x3006('0x0')](_0xbed002))return void(this['isEnabled']=!0x0);this[_0x3006('0x12')]=!0x1;}[_0x3006('0x3')]({threadId:_0x8c60bb=_0x41d9c0()}={}){const _0x78220b=this[_0x3006('0x9')][_0x3006('0x10')],_0x27a7c4=[];for(const _0x22957e of _0x78220b[_0x3006('0xe')][_0x3006('0x13')][_0x3006('0x17')]())this[_0x3006('0x0')](_0x22957e)&&_0x27a7c4[_0x3006('0x6')](this[_0x3006('0xc')](_0x22957e));_0x78220b[_0x3006('0x18')](_0x6484c3=>{for(const _0x3af4b4 of _0x27a7c4){const _0x38a3bb=_0x41d9c0()['substr'](0x1,0x5),_0x2c568e=_0x3006('0x8')+_0x8c60bb+':'+_0x38a3bb;_0x6484c3[_0x3006('0xb')](_0x2c568e,{'range':_0x3af4b4,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x3006('0x0')](_0x282618){for(const _0x32ec47 of _0x282618['getItems']())if(this[_0x3006('0x7')](_0x32ec47))return!0x0;return!0x1;}[_0x3006('0x7')](_0x5bbce9){return _0x5bbce9['is'](_0x3006('0x2'))||this[_0x3006('0x9')]['model'][_0x3006('0x15')][_0x3006('0x16')](_0x5bbce9)&&!_0x5bbce9['is'](_0x3006('0xd'),_0x3006('0x1'));}[_0x3006('0xc')](_0x4ff6e9){const _0x4a799a=_0x50f52a=>!this[_0x3006('0x7')](_0x50f52a[_0x3006('0x11')]),_0x495c7e=_0x4ff6e9['start'][_0x3006('0xf')](_0x4a799a),_0x4e1f73=_0x4ff6e9[_0x3006('0x14')]['getLastMatchingPosition'](_0x4a799a,{'direction':_0x3006('0xa')});return this[_0x3006('0x9')]['model'][_0x3006('0x4')](_0x495c7e,_0x4e1f73);}}
23
+ const _0x7e00=['schema','addMarker','getRanges','document','_itemIsContent','change','backward','model','getItems','comment:','_hasContent','createRange','start','element','_trimToContent','item','editor','selection','isObject','isEnabled','execute','end','substr','getLastMatchingPosition'];(function(_0x274fd5,_0x7e000){const _0x2829e3=function(_0x1a69e0){while(--_0x1a69e0){_0x274fd5['push'](_0x274fd5['shift']());}};_0x2829e3(++_0x7e000);}(_0x7e00,0x109));const _0x2829=function(_0x274fd5,_0x7e000){_0x274fd5=_0x274fd5-0x0;let _0x2829e3=_0x7e00[_0x274fd5];return _0x2829e3;};import{Command as _0x129f26}from'ckeditor5/src/core';import{uid as _0x34765c}from'ckeditor5/src/utils';export default class q extends _0x129f26{['refresh'](){const _0x57c415=this[_0x2829('0xf')][_0x2829('0x6')][_0x2829('0x2')][_0x2829('0x10')];for(const _0x895b08 of _0x57c415[_0x2829('0x1')]())if(this[_0x2829('0x9')](_0x895b08))return void(this[_0x2829('0x12')]=!0x0);this[_0x2829('0x12')]=!0x1;}[_0x2829('0x13')]({threadId:_0x35af2f=_0x34765c()}={}){const _0x35ab11=this[_0x2829('0xf')][_0x2829('0x6')],_0x5a2a1e=[];for(const _0x333ce8 of _0x35ab11[_0x2829('0x2')][_0x2829('0x10')][_0x2829('0x1')]())this[_0x2829('0x9')](_0x333ce8)&&_0x5a2a1e['push'](this[_0x2829('0xd')](_0x333ce8));_0x35ab11[_0x2829('0x4')](_0xdbfb62=>{for(const _0x4e3089 of _0x5a2a1e){const _0x31a48c=_0x34765c()[_0x2829('0x15')](0x1,0x5),_0x26a8b6=_0x2829('0x8')+_0x35af2f+':'+_0x31a48c;_0xdbfb62[_0x2829('0x0')](_0x26a8b6,{'range':_0x4e3089,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x2829('0x9')](_0x208a0a){for(const _0x7e4d09 of _0x208a0a[_0x2829('0x7')]())if(this[_0x2829('0x3')](_0x7e4d09))return!0x0;return!0x1;}[_0x2829('0x3')](_0x2b4f5a){return _0x2b4f5a['is']('$textProxy')||this['editor']['model'][_0x2829('0x17')][_0x2829('0x11')](_0x2b4f5a)&&!_0x2b4f5a['is'](_0x2829('0xc'),'tableCell');}[_0x2829('0xd')](_0x5c88f8){const _0x76d80f=_0x3009c0=>!this[_0x2829('0x3')](_0x3009c0[_0x2829('0xe')]),_0x31375c=_0x5c88f8[_0x2829('0xb')][_0x2829('0x16')](_0x76d80f),_0x4beaf1=_0x5c88f8[_0x2829('0x14')][_0x2829('0x16')](_0x76d80f,{'direction':_0x2829('0x5')});return this['editor']['model'][_0x2829('0xa')](_0x31375c,_0x4beaf1);}}