@ckeditor/ckeditor5-comments 37.0.1 → 38.0.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. package/build/comments.js +2 -2
  2. package/build/translations/af.js +1 -1
  3. package/build/translations/ar.js +1 -1
  4. package/build/translations/bg.js +1 -1
  5. package/build/translations/bn.js +1 -1
  6. package/build/translations/bs.js +1 -1
  7. package/build/translations/ca.js +1 -1
  8. package/build/translations/cs.js +1 -1
  9. package/build/translations/da.js +1 -1
  10. package/build/translations/de-ch.js +1 -1
  11. package/build/translations/de.js +1 -1
  12. package/build/translations/el.js +1 -1
  13. package/build/translations/en-au.js +1 -1
  14. package/build/translations/es-co.js +1 -1
  15. package/build/translations/es.js +1 -1
  16. package/build/translations/et.js +1 -1
  17. package/build/translations/fa.js +1 -1
  18. package/build/translations/fi.js +1 -1
  19. package/build/translations/fr.js +1 -1
  20. package/build/translations/gl.js +1 -1
  21. package/build/translations/he.js +1 -1
  22. package/build/translations/hi.js +1 -1
  23. package/build/translations/hr.js +1 -1
  24. package/build/translations/hu.js +1 -1
  25. package/build/translations/id.js +1 -1
  26. package/build/translations/it.js +1 -1
  27. package/build/translations/ja.js +1 -1
  28. package/build/translations/jv.js +1 -1
  29. package/build/translations/ko.js +1 -1
  30. package/build/translations/lt.js +1 -1
  31. package/build/translations/lv.js +1 -1
  32. package/build/translations/ms.js +1 -1
  33. package/build/translations/nl.js +1 -1
  34. package/build/translations/no.js +1 -1
  35. package/build/translations/pl.js +1 -1
  36. package/build/translations/pt-br.js +1 -1
  37. package/build/translations/pt.js +1 -1
  38. package/build/translations/ro.js +1 -1
  39. package/build/translations/ru.js +1 -1
  40. package/build/translations/sk.js +1 -1
  41. package/build/translations/sr-latn.js +1 -1
  42. package/build/translations/sr.js +1 -1
  43. package/build/translations/sv.js +1 -1
  44. package/build/translations/th.js +1 -1
  45. package/build/translations/tk.js +1 -1
  46. package/build/translations/tr.js +1 -1
  47. package/build/translations/tt.js +1 -1
  48. package/build/translations/ug.js +1 -1
  49. package/build/translations/uk.js +1 -1
  50. package/build/translations/ur.js +1 -1
  51. package/build/translations/vi.js +1 -1
  52. package/build/translations/zh-cn.js +1 -1
  53. package/build/translations/zh.js +1 -1
  54. package/ckeditor5-metadata.json +5 -0
  55. package/lang/contexts.json +2 -2
  56. package/lang/translations/af.po +5 -5
  57. package/lang/translations/ar.po +5 -5
  58. package/lang/translations/bg.po +5 -5
  59. package/lang/translations/bn.po +5 -5
  60. package/lang/translations/bs.po +4 -4
  61. package/lang/translations/ca.po +5 -5
  62. package/lang/translations/cs.po +5 -5
  63. package/lang/translations/da.po +5 -5
  64. package/lang/translations/de-ch.po +5 -5
  65. package/lang/translations/de.po +5 -5
  66. package/lang/translations/el.po +5 -5
  67. package/lang/translations/en-au.po +16 -16
  68. package/lang/translations/en.po +4 -4
  69. package/lang/translations/es-co.po +5 -5
  70. package/lang/translations/es.po +5 -5
  71. package/lang/translations/et.po +5 -5
  72. package/lang/translations/fa.po +5 -5
  73. package/lang/translations/fi.po +5 -5
  74. package/lang/translations/fr.po +5 -5
  75. package/lang/translations/gl.po +5 -5
  76. package/lang/translations/he.po +5 -5
  77. package/lang/translations/hi.po +5 -5
  78. package/lang/translations/hr.po +16 -16
  79. package/lang/translations/hu.po +5 -5
  80. package/lang/translations/id.po +5 -5
  81. package/lang/translations/it.po +5 -5
  82. package/lang/translations/ja.po +5 -5
  83. package/lang/translations/jv.po +5 -5
  84. package/lang/translations/ko.po +5 -5
  85. package/lang/translations/lt.po +5 -5
  86. package/lang/translations/lv.po +5 -5
  87. package/lang/translations/ms.po +5 -5
  88. package/lang/translations/nl.po +5 -5
  89. package/lang/translations/no.po +5 -5
  90. package/lang/translations/pl.po +5 -5
  91. package/lang/translations/pt-br.po +5 -5
  92. package/lang/translations/pt.po +5 -5
  93. package/lang/translations/ro.po +5 -5
  94. package/lang/translations/ru.po +5 -5
  95. package/lang/translations/sk.po +5 -5
  96. package/lang/translations/sr-latn.po +12 -12
  97. package/lang/translations/sr.po +12 -12
  98. package/lang/translations/sv.po +5 -5
  99. package/lang/translations/th.po +5 -5
  100. package/lang/translations/tk.po +5 -5
  101. package/lang/translations/tr.po +5 -5
  102. package/lang/translations/tt.po +4 -4
  103. package/lang/translations/ug.po +5 -5
  104. package/lang/translations/uk.po +5 -5
  105. package/lang/translations/ur.po +5 -5
  106. package/lang/translations/vi.po +5 -5
  107. package/lang/translations/zh-cn.po +5 -5
  108. package/lang/translations/zh.po +5 -5
  109. package/package.json +3 -3
  110. package/src/annotations/annotation.js +1 -1
  111. package/src/annotations/annotationcollection.js +1 -1
  112. package/src/annotations/annotations.js +1 -1
  113. package/src/annotations/annotationsuis.js +1 -1
  114. package/src/annotations/editorannotations.js +1 -1
  115. package/src/annotations/inlineannotations.js +1 -1
  116. package/src/annotations/narrowsidebar.js +1 -1
  117. package/src/annotations/sidebar.js +1 -1
  118. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  119. package/src/annotations/view/annotationview.js +1 -1
  120. package/src/annotations/view/sidebaritemview.js +1 -1
  121. package/src/annotations/view/sidebarview.js +1 -1
  122. package/src/annotations/widesidebar.js +1 -1
  123. package/src/augmentation.d.ts +2 -8
  124. package/src/comments/addcommentthreadcommand.js +1 -1
  125. package/src/comments/commentsarchive.js +1 -1
  126. package/src/comments/commentsarchiveui.js +1 -1
  127. package/src/comments/commentsediting.js +1 -1
  128. package/src/comments/commentsrepository.d.ts +87 -12
  129. package/src/comments/commentsrepository.js +1 -1
  130. package/src/comments/commentsui.js +1 -1
  131. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  132. package/src/comments/integrations/importword.js +1 -1
  133. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  134. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  135. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  136. package/src/comments/ui/commentthreadcontroller.js +1 -1
  137. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  138. package/src/comments/ui/view/basecommentview.js +1 -1
  139. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  140. package/src/comments/ui/view/commentcontentview.js +1 -1
  141. package/src/comments/ui/view/commentinputview.d.ts +6 -0
  142. package/src/comments/ui/view/commentinputview.js +1 -1
  143. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  144. package/src/comments/ui/view/commentslistview.js +1 -1
  145. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  146. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  147. package/src/comments/ui/view/commentthreadview.d.ts +9 -4
  148. package/src/comments/ui/view/commentthreadview.js +1 -1
  149. package/src/comments/ui/view/commentview.d.ts +15 -7
  150. package/src/comments/ui/view/commentview.js +1 -1
  151. package/src/comments.js +1 -1
  152. package/src/commentsonly.js +1 -1
  153. package/src/utils/common-translations.js +1 -1
  154. package/src/utils/createmutationobserver.js +1 -1
  155. package/theme/comment.css +12 -3
  156. package/theme/commentinput.css +8 -6
  157. package/theme/commentsarchive.css +10 -2
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x37de=['_updateHeight','content','render','focus','add','clientHeight','set','length','ck-annotation-wrapper--active','keystrokes','createCollection','_mutationObserver','targetRect','mainView','listenTo','destroy','ck-rounded-corners','isActive','type','focusTracker','height','bindTemplate','Esc','isDirty','element','div'];(function(_0x29eb82,_0x37de81){const _0x194187=function(_0x14bb68){while(--_0x14bb68){_0x29eb82['push'](_0x29eb82['shift']());}};_0x194187(++_0x37de81);}(_0x37de,0x114));const _0x1941=function(_0x29eb82,_0x37de81){_0x29eb82=_0x29eb82-0x0;let _0x194187=_0x37de[_0x29eb82];return _0x194187;};import{View as _0x3052d7}from'ckeditor5/src/ui';import{FocusTracker as _0x162558,KeystrokeHandler as _0x16cac4,uid as _0x3dfc40}from'ckeditor5/src/utils';import _0x105fdf from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x3052d7{constructor(_0x21868f,_0x4616e4){super(_0x21868f),this['id']=_0x3dfc40(),this[_0x1941('0x3')]=new _0x162558(),this[_0x1941('0x13')]=new _0x16cac4(),this[_0x1941('0x13')]['set']('Esc',(_0x1b46b7,_0x7d59b4)=>this['fire'](_0x1941('0x6'),_0x7d59b4)),this[_0x1941('0x10')](_0x1941('0x16'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x1941('0x10')](_0x1941('0x4'),0x0),this[_0x1941('0x10')]('isActive',!0x1),this[_0x1941('0x10')](_0x1941('0x7'),!0x1),this[_0x1941('0x10')](_0x1941('0x11'),0x0),this[_0x1941('0x10')](_0x1941('0x2'),''),this[_0x1941('0x15')]=_0x105fdf(()=>this['_updateHeight']()),this[_0x1941('0xb')]=this[_0x1941('0x14')](),this[_0x1941('0xb')][_0x1941('0xe')](_0x4616e4),this[_0x1941('0x17')]=_0x4616e4;const _0x18ab71=this[_0x1941('0x5')];this['setTemplate']({'tag':_0x1941('0x9'),'attributes':{'class':['ck','ck-annotation-wrapper',_0x1941('0x0'),_0x18ab71['if'](_0x1941('0x1'),_0x1941('0x12'))],'tabindex':-0x1},'children':this['content']});}[_0x1941('0xc')](){super[_0x1941('0xc')](),this[_0x1941('0x3')][_0x1941('0xe')](this[_0x1941('0x8')]),this[_0x1941('0x13')][_0x1941('0x18')](this[_0x1941('0x8')]),this[_0x1941('0x15')]['attach'](this['element']);}[_0x1941('0x19')](){this[_0x1941('0xb')]['clear'](),this[_0x1941('0x13')][_0x1941('0x19')](),this[_0x1941('0x3')][_0x1941('0x19')](),this[_0x1941('0x15')]['detach'](),super[_0x1941('0x19')]();}[_0x1941('0xd')](){this['element']['focus']();}[_0x1941('0xa')](){const _0xe3e7=this[_0x1941('0x8')][_0x1941('0xf')];_0xe3e7&&(this['height']=_0xe3e7);}}
23
+ const _0x11c7=['mainView','clear','focus','focusTracker','isDirty','bindTemplate','listenTo','destroy','targetRect','_mutationObserver','length','type','element','keystrokes','fire','content','div','detach','ck-annotation-wrapper','_updateHeight','add','setTemplate','createCollection','ck-rounded-corners','clientHeight','height','render','set','attach'];(function(_0x31340a,_0x11c7a5){const _0x1c31c4=function(_0x796af3){while(--_0x796af3){_0x31340a['push'](_0x31340a['shift']());}};_0x1c31c4(++_0x11c7a5);}(_0x11c7,0x132));const _0x1c31=function(_0x31340a,_0x11c7a5){_0x31340a=_0x31340a-0x0;let _0x1c31c4=_0x11c7[_0x31340a];return _0x1c31c4;};import{View as _0x3adafb}from'ckeditor5/src/ui';import{FocusTracker as _0x21becf,KeystrokeHandler as _0x57ec8,uid as _0x535337}from'ckeditor5/src/utils';import _0x11d613 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x3adafb{constructor(_0x283bcb,_0x4d1019){super(_0x283bcb),this['id']=_0x535337(),this[_0x1c31('0x10')]=new _0x21becf(),this[_0x1c31('0x1a')]=new _0x57ec8(),this[_0x1c31('0x1a')][_0x1c31('0xb')]('Esc',(_0x5704f0,_0x29b3a2)=>this[_0x1c31('0x1b')]('Esc',_0x29b3a2)),this[_0x1c31('0xb')](_0x1c31('0x15'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set'](_0x1c31('0x9'),0x0),this[_0x1c31('0xb')]('isActive',!0x1),this[_0x1c31('0xb')](_0x1c31('0x11'),!0x1),this[_0x1c31('0xb')](_0x1c31('0x17'),0x0),this[_0x1c31('0xb')](_0x1c31('0x18'),''),this[_0x1c31('0x16')]=_0x11d613(()=>this[_0x1c31('0x3')]()),this[_0x1c31('0x1c')]=this[_0x1c31('0x6')](),this[_0x1c31('0x1c')][_0x1c31('0x4')](_0x4d1019),this[_0x1c31('0xd')]=_0x4d1019;const _0x515b45=this[_0x1c31('0x12')];this[_0x1c31('0x5')]({'tag':_0x1c31('0x0'),'attributes':{'class':['ck',_0x1c31('0x2'),_0x1c31('0x7'),_0x515b45['if']('isActive','ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this['content']});}[_0x1c31('0xa')](){super['render'](),this['focusTracker'][_0x1c31('0x4')](this['element']),this[_0x1c31('0x1a')][_0x1c31('0x13')](this['element']),this[_0x1c31('0x16')][_0x1c31('0xc')](this['element']);}[_0x1c31('0x14')](){this[_0x1c31('0x1c')][_0x1c31('0xe')](),this[_0x1c31('0x1a')]['destroy'](),this[_0x1c31('0x10')]['destroy'](),this[_0x1c31('0x16')][_0x1c31('0x1')](),super['destroy']();}[_0x1c31('0xf')](){this[_0x1c31('0x19')][_0x1c31('0xf')]();}[_0x1c31('0x3')](){const _0x34b286=this['element'][_0x1c31('0x8')];_0x34b286&&(this['height']=_0x34b286);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2661=['element','div','createCollection','set','ck-sidebar-item','height','attach','bind','destroy','_mutationObserver','top','bottom','bindTemplate','clear','updateHeight','content','isAnimationDisabled','_targetTop','render','detach'];(function(_0x1f4b13,_0x2661c6){const _0x302595=function(_0x1dd898){while(--_0x1dd898){_0x1f4b13['push'](_0x1f4b13['shift']());}};_0x302595(++_0x2661c6);}(_0x2661,0xe7));const _0x3025=function(_0x1f4b13,_0x2661c6){_0x1f4b13=_0x1f4b13-0x0;let _0x302595=_0x2661[_0x1f4b13];return _0x302595;};import{View as _0x6ebf4c}from'ckeditor5/src/ui';import{toUnit as _0x5a431d}from'ckeditor5/src/utils';import _0x4f925a from'../../utils/createmutationobserver';const At=_0x5a431d('px');export default class C extends _0x6ebf4c{constructor(_0x1a0956){super(_0x1a0956),this[_0x3025('0xc')](_0x3025('0x13'),0x0),this[_0x3025('0xc')](_0x3025('0xe'),0x0),this[_0x3025('0x10')](_0x3025('0x0'))['to'](this,_0x3025('0x13'),this,_0x3025('0xe'),(_0x5b446d,_0x5b935d)=>_0x5b446d+_0x5b935d),this[_0x3025('0xc')](_0x3025('0x5'),!0x1),this[_0x3025('0x12')]=_0x4f925a(()=>this['updateHeight']()),this[_0x3025('0x6')]=null,this[_0x3025('0x4')]=this[_0x3025('0xb')]();const _0x817b8d=this[_0x3025('0x1')];this['setTemplate']({'tag':_0x3025('0xa'),'attributes':{'class':[_0x3025('0xd'),_0x817b8d['to']('isAnimationDisabled',_0x3f3de0=>_0x3f3de0?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x817b8d['to'](_0x3025('0x13'),_0x15ddd5=>At(_0x15ddd5))}},'children':this[_0x3025('0x4')]});}[_0x3025('0x7')](){super['render'](),this['_mutationObserver'][_0x3025('0xf')](this[_0x3025('0x9')]);}[_0x3025('0x3')](){const _0x475157=this['element']['clientHeight'];_0x475157&&(this[_0x3025('0xe')]=_0x475157);}[_0x3025('0x11')](){this[_0x3025('0x4')][_0x3025('0x2')](),this[_0x3025('0x12')][_0x3025('0x8')](),super['destroy']();}}
23
+ const _0xed55=['ck-sidebar-item--no-animation','set','height','top','destroy','content','div','updateHeight','_mutationObserver','_targetTop','detach','bottom','element','attach','bindTemplate','bind','isAnimationDisabled','render'];(function(_0x330cd2,_0xed55c8){const _0x296ddc=function(_0x59e0f0){while(--_0x59e0f0){_0x330cd2['push'](_0x330cd2['shift']());}};_0x296ddc(++_0xed55c8);}(_0xed55,0x13a));const _0x296d=function(_0x330cd2,_0xed55c8){_0x330cd2=_0x330cd2-0x0;let _0x296ddc=_0xed55[_0x330cd2];return _0x296ddc;};import{View as _0xe51d84}from'ckeditor5/src/ui';import{toUnit as _0x3ac519}from'ckeditor5/src/utils';import _0x14c931 from'../../utils/createmutationobserver';const At=_0x3ac519('px');export default class C extends _0xe51d84{constructor(_0x3c830b){super(_0x3c830b),this['set'](_0x296d('0xd'),0x0),this[_0x296d('0xb')](_0x296d('0xc'),0x0),this[_0x296d('0x7')](_0x296d('0x3'))['to'](this,'top',this,_0x296d('0xc'),(_0x1ed3de,_0xd09928)=>_0x1ed3de+_0xd09928),this[_0x296d('0xb')]('isAnimationDisabled',!0x1),this[_0x296d('0x0')]=_0x14c931(()=>this[_0x296d('0x11')]()),this[_0x296d('0x1')]=null,this[_0x296d('0xf')]=this['createCollection']();const _0x350ca2=this[_0x296d('0x6')];this['setTemplate']({'tag':_0x296d('0x10'),'attributes':{'class':['ck-sidebar-item',_0x350ca2['to'](_0x296d('0x8'),_0x1c2367=>_0x1c2367?_0x296d('0xa'):'')],'style':{'top':_0x350ca2['to'](_0x296d('0xd'),_0x1bb168=>At(_0x1bb168))}},'children':this['content']});}[_0x296d('0x9')](){super[_0x296d('0x9')](),this[_0x296d('0x0')][_0x296d('0x5')](this['element']);}[_0x296d('0x11')](){const _0x3736c3=this[_0x296d('0x4')]['clientHeight'];_0x3736c3&&(this[_0x296d('0xc')]=_0x3736c3);}[_0x296d('0xe')](){this[_0x296d('0xf')]['clear'](),this[_0x296d('0x0')][_0x296d('0x2')](),super[_0x296d('0xe')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb998=['list','set','class','ck-reset','minHeight','div','bindTemplate','createCollection','number','ck-sidebar'];(function(_0x482db5,_0xb998cf){const _0x1f985d=function(_0x10ec82){while(--_0x10ec82){_0x482db5['push'](_0x482db5['shift']());}};_0x1f985d(++_0xb998cf);}(_0xb998,0x76));const _0x1f98=function(_0x482db5,_0xb998cf){_0x482db5=_0x482db5-0x0;let _0x1f985d=_0xb998[_0x482db5];return _0x1f985d;};import{View as _0x369dcc}from'ckeditor5/src/ui';import{toUnit as _0x2915ab}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x2915ab('px');export default class T extends _0x369dcc{constructor(_0x50612d){super(_0x50612d);const _0x391902=this[_0x1f98('0x8')];this[_0x1f98('0x3')]('minHeight',0x0),this['set'](_0x1f98('0x4'),''),this['list']=this[_0x1f98('0x9')](),this['setTemplate']({'tag':_0x1f98('0x7'),'attributes':{'class':['ck',_0x1f98('0x1'),_0x1f98('0x5'),_0x391902['to'](_0x1f98('0x4'))],'style':{'minHeight':_0x391902['to'](_0x1f98('0x6'),_0x5a70b0=>_0x1f98('0x0')==typeof _0x5a70b0?At(_0x5a70b0+0xa):null)}},'children':this[_0x1f98('0x2')]});}}
23
+ const _0x1f1a=['class','minHeight','ck-reset','list','set','setTemplate','bindTemplate','div','createCollection','number'];(function(_0x36799c,_0x1f1a58){const _0xdaa1cc=function(_0x1c1675){while(--_0x1c1675){_0x36799c['push'](_0x36799c['shift']());}};_0xdaa1cc(++_0x1f1a58);}(_0x1f1a,0x149));const _0xdaa1=function(_0x36799c,_0x1f1a58){_0x36799c=_0x36799c-0x0;let _0xdaa1cc=_0x1f1a[_0x36799c];return _0xdaa1cc;};import{View as _0x25e601}from'ckeditor5/src/ui';import{toUnit as _0x57bc44}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x57bc44('px');export default class T extends _0x25e601{constructor(_0x23121b){super(_0x23121b);const _0x9403b9=this[_0xdaa1('0x7')];this['set'](_0xdaa1('0x2'),0x0),this[_0xdaa1('0x5')]('class',''),this['list']=this[_0xdaa1('0x9')](),this[_0xdaa1('0x6')]({'tag':_0xdaa1('0x8'),'attributes':{'class':['ck','ck-sidebar',_0xdaa1('0x3'),_0x9403b9['to'](_0xdaa1('0x1'))],'style':{'minHeight':_0x9403b9['to'](_0xdaa1('0x2'),_0x43a66f=>_0xdaa1('0x0')==typeof _0x43a66f?At(_0x43a66f+0xa):null)}},'children':this[_0xdaa1('0x4')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3839=['plugins','_editorAnnotations','isAttached','widesidebar-attach-already-attached','activeAnnotation','add','context','get','init','_destroyEditorAnnotationsIntegration','_refreshPositioningDebounced','off','editors','refresh','switchTo','stop','blur','destroy','_activeAnnotation','addAnnotation','rearrange','uiUpdate','stopListening','cancel','resize','ck-sidebar--wide','addEventListener','from','listenTo','attach','setActiveAnnotation','remove','_integrateWithEditorAnnotations','wideSidebar','focus','detach','high','getOrderedSelectedAnnotations','change:container','requires','register','_annotations','hasDomSelection','annotations','EditorAnnotations','refreshPositioning','has'];(function(_0x22093b,_0x38398e){const _0x5aecdc=function(_0x8e0ab7){while(--_0x8e0ab7){_0x22093b['push'](_0x22093b['shift']());}};_0x5aecdc(++_0x38398e);}(_0x3839,0x6c));const _0x5aec=function(_0x22093b,_0x38398e){_0x22093b=_0x22093b-0x0;let _0x5aecdc=_0x3839[_0x22093b];return _0x5aecdc;};import{ContextPlugin as _0x2b1d56,Context as _0x35e3c8}from'ckeditor5/src/core';import _0x45a77e from'./annotationsuis';import _0x4ee65a from'./sidebar';import{CKEditorError as _0x530bc0,Collection as _0x158aca}from'ckeditor5/src/utils';import{debounce as _0x50c916}from'lodash-es';import _0x37fc3c from'./editorannotations';export default class i extends _0x2b1d56{static get[_0x5aec('0x19')](){return[_0x4ee65a,_0x45a77e];}static get['pluginName'](){return'WideSidebar';}constructor(_0x41c9de){super(_0x41c9de),this['isAttached']=!0x1,this['set'](_0x5aec('0x25'),null),this[_0x5aec('0x1d')]=null,this[_0x5aec('0x22')]=new _0x158aca(),this[_0x5aec('0x2b')]=_0x50c916(()=>{this[_0x5aec('0x1d')][_0x5aec('0x1f')]();},0xfa,{'leading':!0x1});}[_0x5aec('0x29')](){const _0x4de960=this[_0x5aec('0x27')]['plugins'][_0x5aec('0x28')](_0x45a77e),_0x18b601=this['context'][_0x5aec('0x21')][_0x5aec('0x28')](_0x4ee65a);_0x4de960[_0x5aec('0x1a')](_0x5aec('0x13'),this),_0x18b601['container']&&_0x4de960[_0x5aec('0x0')](_0x5aec('0x13'));}['setActiveAnnotation'](_0x544239){if(_0x544239===this['activeAnnotation'])return;const _0x57cc05=this[_0x5aec('0x27')][_0x5aec('0x21')][_0x5aec('0x28')](_0x4ee65a);_0x57cc05[_0x5aec('0x4')]=_0x544239;const _0xfe4d9b=this['activeAnnotation'];this[_0x5aec('0x25')]=_0x544239,_0x57cc05[_0x5aec('0x2e')]({'blurredAnnotation':_0xfe4d9b,'activatedAnnotation':this[_0x5aec('0x25')]});}[_0x5aec('0xf')](_0x46e263){this[_0x5aec('0x1d')]=_0x46e263;const _0x1c1c74=this[_0x5aec('0x27')][_0x5aec('0x21')][_0x5aec('0x28')](_0x4ee65a);if(_0x1c1c74[_0x5aec('0x1b')]=_0x46e263,this[_0x5aec('0x23')])throw new _0x530bc0(_0x5aec('0x24'),this);this[_0x5aec('0x23')]=!0x0,this['listenTo'](_0x1c1c74,'set:container',()=>{this[_0x5aec('0x15')](),this['listenTo'](_0x1c1c74,_0x5aec('0x18'),_0x2679cb=>{_0x2679cb[_0x5aec('0x2c')](),this[_0x5aec('0xf')](_0x46e263);});}),_0x1c1c74['_attachToContainer']({'viewClass':_0x5aec('0xb')});const _0x21e9c9=_0x2db907=>{_0x2db907['updateTargetRect'](),_0x1c1c74[_0x5aec('0x5')](_0x2db907);};for(const _0x3edad3 of _0x46e263)_0x21e9c9(_0x3edad3);this[_0x5aec('0xe')](_0x46e263,_0x5aec('0x26'),(_0x1b0b97,_0x3ae780)=>{_0x21e9c9(_0x3ae780);}),this[_0x5aec('0xe')](_0x46e263,_0x5aec('0x11'),(_0x4e92ff,_0x99abfa,_0x2b56f5)=>{_0x1c1c74[_0x5aec('0x6')]({'removedAnnotation':_0x99abfa,'previousAnnotation':_0x46e263[_0x5aec('0x28')](_0x2b56f5-0x1),'nextAnnotation':_0x46e263[_0x5aec('0x28')](_0x2b56f5+0x1)}),_0x99abfa===this[_0x5aec('0x25')]&&this['setActiveAnnotation'](null);},{'priority':'high'}),this[_0x5aec('0xe')](_0x46e263,_0x5aec('0x14'),(_0x54cf04,_0x55f14e)=>{this[_0x5aec('0x10')](_0x55f14e);}),this[_0x5aec('0xe')](_0x46e263,'blur',()=>{this[_0x5aec('0x10')](null);});const _0x1a4dd0=this[_0x5aec('0x27')]instanceof _0x35e3c8?this['context'][_0x5aec('0x2d')]:new _0x158aca([this[_0x5aec('0x27')]]);for(const _0x5cb9b2 of _0x1a4dd0)this[_0x5aec('0x12')](_0x5cb9b2);this['listenTo'](_0x1a4dd0,_0x5aec('0x26'),(_0x283f55,_0xf4762d)=>{this['listenTo'](_0xf4762d,'ready',()=>{this[_0x5aec('0x12')](_0xf4762d);});}),this[_0x5aec('0xe')](_0x1a4dd0,_0x5aec('0x11'),(_0x58b407,_0x2244c2)=>{_0x2244c2[_0x5aec('0x21')][_0x5aec('0x20')](_0x5aec('0x1e'))&&this[_0x5aec('0x2a')](_0x2244c2[_0x5aec('0x21')][_0x5aec('0x28')](_0x5aec('0x1e')));}),window[_0x5aec('0xc')]('resize',this[_0x5aec('0x2b')]),this['annotations'][_0x5aec('0x1f')]();}[_0x5aec('0x15')](){if(!this[_0x5aec('0x23')])throw new _0x530bc0('widesidebar-detach-not-attached',this);this[_0x5aec('0x10')](null);const _0xd6ef21=this['context'][_0x5aec('0x21')][_0x5aec('0x28')](_0x4ee65a);_0xd6ef21['_detachFromContainer'](this[_0x5aec('0x1d')]),this['stopListening'](_0xd6ef21),this[_0x5aec('0x8')](this[_0x5aec('0x1d')]),this[_0x5aec('0x27')]instanceof _0x35e3c8&&this[_0x5aec('0x8')](this[_0x5aec('0x27')][_0x5aec('0x2d')]);for(const _0x2c6145 of Array[_0x5aec('0xd')](this['_editorAnnotations']))this[_0x5aec('0x2a')](_0x2c6145);window['removeEventListener'](_0x5aec('0xa'),this['_refreshPositioningDebounced']),this[_0x5aec('0x2b')][_0x5aec('0x9')](),this['activeAnnotation']=null,this[_0x5aec('0x23')]=!0x1,this['annotations']=null;}[_0x5aec('0x3')](){this['isAttached']&&this[_0x5aec('0x15')]();}['_integrateWithEditorAnnotations'](_0x291a92){const _0x5778a9=_0x291a92['plugins'][_0x5aec('0x28')](_0x37fc3c);if(!_0x5778a9)return;const _0x695746=()=>{const _0x1f4361=_0x5778a9[_0x5aec('0x17')]({'annotations':this[_0x5aec('0x1d')],'activeAnnotation':this[_0x5aec('0x25')]});this[_0x5aec('0x10')](_0x1f4361[0x0]||null);};this[_0x5aec('0xe')](_0x5778a9,'refresh',_0x695746),this[_0x5aec('0xe')](_0x5778a9,_0x5aec('0x2'),(_0x476e7f,{isAnnotationTracked:_0x4bf3f4})=>{this[_0x5aec('0x25')]&&_0x4bf3f4(this[_0x5aec('0x25')])&&this[_0x5aec('0x10')](null);}),this[_0x5aec('0xe')](_0x5778a9,_0x5aec('0x7'),()=>{this[_0x5aec('0x2b')]();}),this[_0x5aec('0xe')](this[_0x5aec('0x1d')],_0x5aec('0x2'),_0x4ecb32=>{_0x5778a9[_0x5aec('0x1c')]()&&(_0x695746(),_0x4ecb32[_0x5aec('0x1')]());},{'priority':_0x5aec('0x16')}),this[_0x5aec('0x22')][_0x5aec('0x26')](_0x5778a9);}[_0x5aec('0x2a')](_0x3fee24){this['stopListening'](_0x3fee24),this[_0x5aec('0x22')][_0x5aec('0x11')](_0x3fee24);}}
23
+ const _0x2dfc=['stopListening','add','plugins','activeAnnotation','addEventListener','ready','switchTo','get','destroy','WideSidebar','listenTo','_detachFromContainer','_attachToContainer','from','container','_refreshPositioningDebounced','off','context','rearrange','setActiveAnnotation','refreshPositioning','wideSidebar','addAnnotation','resize','_integrateWithEditorAnnotations','change:container','editors','uiUpdate','stop','annotations','hasDomSelection','high','refresh','has','_activeAnnotation','widesidebar-attach-already-attached','_annotations','_destroyEditorAnnotationsIntegration','blur','remove','focus','getOrderedSelectedAnnotations','_editorAnnotations','register','updateTargetRect','detach','widesidebar-detach-not-attached','ck-sidebar--wide','set','EditorAnnotations','isAttached','set:container','attach'];(function(_0x4d5380,_0x2dfc9b){const _0x3c5fce=function(_0x3f4d46){while(--_0x3f4d46){_0x4d5380['push'](_0x4d5380['shift']());}};_0x3c5fce(++_0x2dfc9b);}(_0x2dfc,0x1a9));const _0x3c5f=function(_0x4d5380,_0x2dfc9b){_0x4d5380=_0x4d5380-0x0;let _0x3c5fce=_0x2dfc[_0x4d5380];return _0x3c5fce;};import{ContextPlugin as _0x30b123,Context as _0x21a90c}from'ckeditor5/src/core';import _0x31cab3 from'./annotationsuis';import _0x4baecd from'./sidebar';import{CKEditorError as _0x36a6fa,Collection as _0x35a59f}from'ckeditor5/src/utils';import{debounce as _0x4490b0}from'lodash-es';import _0x382b32 from'./editorannotations';export default class i extends _0x30b123{static get['requires'](){return[_0x4baecd,_0x31cab3];}static get['pluginName'](){return _0x3c5f('0x8');}constructor(_0x18ad2b){super(_0x18ad2b),this[_0x3c5f('0x31')]=!0x1,this[_0x3c5f('0x2f')](_0x3c5f('0x2'),null),this[_0x3c5f('0x1c')]=null,this[_0x3c5f('0x29')]=new _0x35a59f(),this[_0x3c5f('0xe')]=_0x4490b0(()=>{this[_0x3c5f('0x1c')][_0x3c5f('0x13')]();},0xfa,{'leading':!0x1});}['init'](){const _0x2800ff=this[_0x3c5f('0x10')]['plugins'][_0x3c5f('0x6')](_0x31cab3),_0xe9be35=this['context'][_0x3c5f('0x1')][_0x3c5f('0x6')](_0x4baecd);_0x2800ff[_0x3c5f('0x2a')]('wideSidebar',this),_0xe9be35[_0x3c5f('0xd')]&&_0x2800ff[_0x3c5f('0x5')](_0x3c5f('0x14'));}[_0x3c5f('0x12')](_0x34d4d0){if(_0x34d4d0===this['activeAnnotation'])return;const _0x40c782=this[_0x3c5f('0x10')][_0x3c5f('0x1')][_0x3c5f('0x6')](_0x4baecd);_0x40c782[_0x3c5f('0x21')]=_0x34d4d0;const _0xcef5be=this[_0x3c5f('0x2')];this['activeAnnotation']=_0x34d4d0,_0x40c782['refresh']({'blurredAnnotation':_0xcef5be,'activatedAnnotation':this[_0x3c5f('0x2')]});}[_0x3c5f('0x33')](_0x575797){this[_0x3c5f('0x1c')]=_0x575797;const _0xbfe73d=this[_0x3c5f('0x10')]['plugins'][_0x3c5f('0x6')](_0x4baecd);if(_0xbfe73d[_0x3c5f('0x23')]=_0x575797,this[_0x3c5f('0x31')])throw new _0x36a6fa(_0x3c5f('0x22'),this);this['isAttached']=!0x0,this[_0x3c5f('0x9')](_0xbfe73d,_0x3c5f('0x32'),()=>{this[_0x3c5f('0x2c')](),this[_0x3c5f('0x9')](_0xbfe73d,_0x3c5f('0x18'),_0x15f7bc=>{_0x15f7bc[_0x3c5f('0xf')](),this[_0x3c5f('0x33')](_0x575797);});}),_0xbfe73d[_0x3c5f('0xb')]({'viewClass':_0x3c5f('0x2e')});const _0x5b84fb=_0x15dd39=>{_0x15dd39[_0x3c5f('0x2b')](),_0xbfe73d[_0x3c5f('0x15')](_0x15dd39);};for(const _0x60a246 of _0x575797)_0x5b84fb(_0x60a246);this[_0x3c5f('0x9')](_0x575797,_0x3c5f('0x0'),(_0x2fa826,_0x5106f5)=>{_0x5b84fb(_0x5106f5);}),this['listenTo'](_0x575797,_0x3c5f('0x26'),(_0x2927e0,_0x116e11,_0x2bf00d)=>{_0xbfe73d[_0x3c5f('0x11')]({'removedAnnotation':_0x116e11,'previousAnnotation':_0x575797['get'](_0x2bf00d-0x1),'nextAnnotation':_0x575797['get'](_0x2bf00d+0x1)}),_0x116e11===this[_0x3c5f('0x2')]&&this[_0x3c5f('0x12')](null);},{'priority':_0x3c5f('0x1e')}),this[_0x3c5f('0x9')](_0x575797,_0x3c5f('0x27'),(_0x2bc635,_0x29a94c)=>{this[_0x3c5f('0x12')](_0x29a94c);}),this[_0x3c5f('0x9')](_0x575797,_0x3c5f('0x25'),()=>{this[_0x3c5f('0x12')](null);});const _0x4f23cd=this[_0x3c5f('0x10')]instanceof _0x21a90c?this[_0x3c5f('0x10')][_0x3c5f('0x19')]:new _0x35a59f([this['context']]);for(const _0x5f1183 of _0x4f23cd)this[_0x3c5f('0x17')](_0x5f1183);this[_0x3c5f('0x9')](_0x4f23cd,_0x3c5f('0x0'),(_0x551dff,_0x3318c1)=>{this[_0x3c5f('0x9')](_0x3318c1,_0x3c5f('0x4'),()=>{this[_0x3c5f('0x17')](_0x3318c1);});}),this[_0x3c5f('0x9')](_0x4f23cd,_0x3c5f('0x26'),(_0x2658a3,_0x45347b)=>{_0x45347b['plugins'][_0x3c5f('0x20')](_0x3c5f('0x30'))&&this['_destroyEditorAnnotationsIntegration'](_0x45347b['plugins'][_0x3c5f('0x6')](_0x3c5f('0x30')));}),window[_0x3c5f('0x3')](_0x3c5f('0x16'),this[_0x3c5f('0xe')]),this[_0x3c5f('0x1c')][_0x3c5f('0x13')]();}[_0x3c5f('0x2c')](){if(!this[_0x3c5f('0x31')])throw new _0x36a6fa(_0x3c5f('0x2d'),this);this[_0x3c5f('0x12')](null);const _0x5acd79=this[_0x3c5f('0x10')]['plugins'][_0x3c5f('0x6')](_0x4baecd);_0x5acd79[_0x3c5f('0xa')](this['annotations']),this['stopListening'](_0x5acd79),this[_0x3c5f('0x34')](this[_0x3c5f('0x1c')]),this['context']instanceof _0x21a90c&&this[_0x3c5f('0x34')](this[_0x3c5f('0x10')][_0x3c5f('0x19')]);for(const _0x1c4ad1 of Array[_0x3c5f('0xc')](this[_0x3c5f('0x29')]))this[_0x3c5f('0x24')](_0x1c4ad1);window['removeEventListener'](_0x3c5f('0x16'),this['_refreshPositioningDebounced']),this[_0x3c5f('0xe')]['cancel'](),this[_0x3c5f('0x2')]=null,this[_0x3c5f('0x31')]=!0x1,this[_0x3c5f('0x1c')]=null;}[_0x3c5f('0x7')](){this[_0x3c5f('0x31')]&&this[_0x3c5f('0x2c')]();}['_integrateWithEditorAnnotations'](_0x5774dd){const _0x132221=_0x5774dd[_0x3c5f('0x1')][_0x3c5f('0x6')](_0x382b32);if(!_0x132221)return;const _0x5018=()=>{const _0x500097=_0x132221[_0x3c5f('0x28')]({'annotations':this[_0x3c5f('0x1c')],'activeAnnotation':this[_0x3c5f('0x2')]});this['setActiveAnnotation'](_0x500097[0x0]||null);};this['listenTo'](_0x132221,_0x3c5f('0x1f'),_0x5018),this['listenTo'](_0x132221,_0x3c5f('0x25'),(_0x3234a4,{isAnnotationTracked:_0x5e9c5b})=>{this[_0x3c5f('0x2')]&&_0x5e9c5b(this['activeAnnotation'])&&this[_0x3c5f('0x12')](null);}),this[_0x3c5f('0x9')](_0x132221,_0x3c5f('0x1a'),()=>{this[_0x3c5f('0xe')]();}),this[_0x3c5f('0x9')](this['annotations'],_0x3c5f('0x25'),_0x22ceea=>{_0x132221[_0x3c5f('0x1d')]()&&(_0x5018(),_0x22ceea[_0x3c5f('0x1b')]());},{'priority':_0x3c5f('0x1e')}),this[_0x3c5f('0x29')]['add'](_0x132221);}['_destroyEditorAnnotationsIntegration'](_0x2834b5){this['stopListening'](_0x2834b5),this[_0x3c5f('0x29')][_0x3c5f('0x26')](_0x2834b5);}}
@@ -1,4 +1,4 @@
1
- import type { CommentsConfig, SidebarConfig, Annotations, EditorAnnotations, CommentsRepository, CommentsUI } from './index';
1
+ import type { CommentsConfig, SidebarConfig, Annotations, AnnotationsUIs, EditorAnnotations, CommentsRepository, CommentsUI } from './index';
2
2
  declare module '@ckeditor/ckeditor5-core' {
3
3
  interface EditorConfig {
4
4
  /**
@@ -37,16 +37,10 @@ declare module '@ckeditor/ckeditor5-core' {
37
37
  * ```
38
38
  */
39
39
  commentsOnly?: boolean;
40
- /**
41
- * The license key for the CKEditor 5 premium features.
42
- *
43
- * If you do not have a key yet, please [contact us](https://ckeditor.com/contact/) or
44
- * [order a trial](https://orders.ckeditor.com/trial/premium-features).
45
- */
46
- licenseKey?: string;
47
40
  }
48
41
  interface PluginsMap {
49
42
  [Annotations.pluginName]: Annotations;
43
+ [AnnotationsUIs.pluginName]: AnnotationsUIs;
50
44
  [EditorAnnotations.pluginName]: EditorAnnotations;
51
45
  [CommentsRepository.pluginName]: CommentsRepository;
52
46
  [CommentsUI.pluginName]: CommentsUI;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5cd4=['getLastMatchingPosition','model','_itemIsContent','isObject','backward','_hasContent','change','addMarker','getRanges','push','isEnabled','editor','refresh','document','schema','_trimToContent','element','selection','start','getItems','execute','comment:'];(function(_0x3fc088,_0x5cd4fb){const _0x303352=function(_0x591157){while(--_0x591157){_0x3fc088['push'](_0x3fc088['shift']());}};_0x303352(++_0x5cd4fb);}(_0x5cd4,0x170));const _0x3033=function(_0x3fc088,_0x5cd4fb){_0x3fc088=_0x3fc088-0x0;let _0x303352=_0x5cd4[_0x3fc088];return _0x303352;};import{Command as _0x104dc8}from'ckeditor5/src/core';import{uid as _0x76ef2d}from'ckeditor5/src/utils';export default class q extends _0x104dc8{[_0x3033('0x12')](){const _0xd55eef=this[_0x3033('0x11')][_0x3033('0x7')][_0x3033('0x13')][_0x3033('0x1')];for(const _0x31992a of _0xd55eef[_0x3033('0xe')]())if(this[_0x3033('0xb')](_0x31992a))return void(this[_0x3033('0x10')]=!0x0);this[_0x3033('0x10')]=!0x1;}[_0x3033('0x4')]({threadId:_0x4a9286=_0x76ef2d()}={}){const _0x3bdd2c=this[_0x3033('0x11')][_0x3033('0x7')],_0x37de9f=[];for(const _0xf3b891 of _0x3bdd2c[_0x3033('0x13')]['selection'][_0x3033('0xe')]())this[_0x3033('0xb')](_0xf3b891)&&_0x37de9f[_0x3033('0xf')](this['_trimToContent'](_0xf3b891));_0x3bdd2c[_0x3033('0xc')](_0xd62814=>{for(const _0x51bb55 of _0x37de9f){const _0x3270ed=_0x76ef2d()['substr'](0x1,0x5),_0x3067fa=_0x3033('0x5')+_0x4a9286+':'+_0x3270ed;_0xd62814[_0x3033('0xd')](_0x3067fa,{'range':_0x51bb55,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x44ee99){for(const _0x5a688a of _0x44ee99[_0x3033('0x3')]())if(this[_0x3033('0x8')](_0x5a688a))return!0x0;return!0x1;}[_0x3033('0x8')](_0x16d33f){return _0x16d33f['is']('$textProxy')||this['editor'][_0x3033('0x7')][_0x3033('0x14')][_0x3033('0x9')](_0x16d33f)&&!_0x16d33f['is'](_0x3033('0x0'),'tableCell');}[_0x3033('0x15')](_0x18bdab){const _0x25c4ed=_0x12eed1=>!this[_0x3033('0x8')](_0x12eed1['item']),_0x162699=_0x18bdab[_0x3033('0x2')][_0x3033('0x6')](_0x25c4ed),_0x4a9e81=_0x18bdab['end'][_0x3033('0x6')](_0x25c4ed,{'direction':_0x3033('0xa')});return this[_0x3033('0x11')][_0x3033('0x7')]['createRange'](_0x162699,_0x4a9e81);}}
23
+ const _0x1874=['start','addMarker','end','isEnabled','execute','push','change','selection','substr','getLastMatchingPosition','createRange','_itemIsContent','getRanges','document','item','backward','comment:','model','tableCell','editor','element','_trimToContent','_hasContent'];(function(_0x1d2a2b,_0x187485){const _0x12991a=function(_0xc35cdd){while(--_0xc35cdd){_0x1d2a2b['push'](_0x1d2a2b['shift']());}};_0x12991a(++_0x187485);}(_0x1874,0xde));const _0x1299=function(_0x1d2a2b,_0x187485){_0x1d2a2b=_0x1d2a2b-0x0;let _0x12991a=_0x1874[_0x1d2a2b];return _0x12991a;};import{Command as _0x285fb5}from'ckeditor5/src/core';import{uid as _0x5c1ad5}from'ckeditor5/src/utils';export default class q extends _0x285fb5{['refresh'](){const _0x4d9b39=this['editor'][_0x1299('0x2')][_0x1299('0x15')][_0x1299('0xf')];for(const _0xd02b39 of _0x4d9b39[_0x1299('0x14')]())if(this[_0x1299('0x7')](_0xd02b39))return void(this[_0x1299('0xb')]=!0x0);this[_0x1299('0xb')]=!0x1;}[_0x1299('0xc')]({threadId:_0xf550b0=_0x5c1ad5()}={}){const _0x2f590c=this[_0x1299('0x4')][_0x1299('0x2')],_0x9d0f0f=[];for(const _0x577ecc of _0x2f590c['document'][_0x1299('0xf')][_0x1299('0x14')]())this[_0x1299('0x7')](_0x577ecc)&&_0x9d0f0f[_0x1299('0xd')](this['_trimToContent'](_0x577ecc));_0x2f590c[_0x1299('0xe')](_0x2e838c=>{for(const _0xee8b2b of _0x9d0f0f){const _0x3e6531=_0x5c1ad5()[_0x1299('0x10')](0x1,0x5),_0x424bdd=_0x1299('0x1')+_0xf550b0+':'+_0x3e6531;_0x2e838c[_0x1299('0x9')](_0x424bdd,{'range':_0xee8b2b,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x4d9a2a){for(const _0x12d47e of _0x4d9a2a['getItems']())if(this[_0x1299('0x13')](_0x12d47e))return!0x0;return!0x1;}['_itemIsContent'](_0x25c7ca){return _0x25c7ca['is']('$textProxy')||this[_0x1299('0x4')][_0x1299('0x2')]['schema']['isObject'](_0x25c7ca)&&!_0x25c7ca['is'](_0x1299('0x5'),_0x1299('0x3'));}[_0x1299('0x6')](_0xff5a34){const _0x44fce5=_0x5060a6=>!this[_0x1299('0x13')](_0x5060a6[_0x1299('0x16')]),_0x24fd6c=_0xff5a34[_0x1299('0x8')][_0x1299('0x11')](_0x44fce5),_0x28f422=_0xff5a34[_0x1299('0xa')][_0x1299('0x11')](_0x44fce5,{'direction':_0x1299('0x0')});return this[_0x1299('0x4')][_0x1299('0x2')][_0x1299('0x12')](_0x24fd6c,_0x28f422);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x54f7=['remove','get','init','has','length','collection','context','resolvedAt','CommentsArchive','listenTo','isActive','add','findIndex','removeCommentThread','getCommentThread','requires','resolveCommentThread','pluginName','resolvedThreads','_calculatePosition','focus','plugins','highest'];(function(_0x9e00f7,_0x54f7c6){const _0x49ab87=function(_0x4d47ca){while(--_0x4d47ca){_0x9e00f7['push'](_0x9e00f7['shift']());}};_0x49ab87(++_0x54f7c6);}(_0x54f7,0x8d));const _0x49ab=function(_0x9e00f7,_0x54f7c6){_0x9e00f7=_0x9e00f7-0x0;let _0x49ab87=_0x54f7[_0x9e00f7];return _0x49ab87;};import{ContextPlugin as _0x294886}from'ckeditor5/src/core';import{Collection as _0x4f9b3a}from'ckeditor5/src/utils';import _0x5f211e from'./commentsrepository';import _0x5943af from'../annotations/annotations';export default class p extends _0x294886{static get[_0x49ab('0xe')](){return _0x49ab('0x5');}static get[_0x49ab('0xc')](){return[_0x5f211e,_0x5943af];}constructor(_0x36bd09){super(_0x36bd09),this[_0x49ab('0xf')]=new _0x4f9b3a();}[_0x49ab('0x16')](){const _0x3ae98c=this[_0x49ab('0x3')],_0xebe76a=_0x3ae98c[_0x49ab('0x12')]['get'](_0x5f211e),_0x8d2099=_0x3ae98c[_0x49ab('0x12')][_0x49ab('0x15')](_0x5943af);this[_0x49ab('0x6')](_0xebe76a,'addCommentThread',(_0x25eef4,{threadId:_0x1b8dbd,resolvedAt:_0x19d2fd})=>{if(_0x19d2fd){const _0x13f919=_0xebe76a['getCommentThread'](_0x1b8dbd);this[_0x49ab('0xf')][_0x49ab('0x8')](_0x13f919,this[_0x49ab('0x10')](_0x19d2fd));}}),this[_0x49ab('0x6')](_0xebe76a,_0x49ab('0xd'),(_0x434d35,{threadId:_0x5d93d9,resolvedAt:_0x6ad1ee})=>{const _0x41ffca=_0xebe76a['getCommentThread'](_0x5d93d9);this['resolvedThreads'][_0x49ab('0x8')](_0x41ffca,this[_0x49ab('0x10')](_0x6ad1ee));},{'priority':'highest'}),this['listenTo'](_0xebe76a,'reopenCommentThread',(_0x52d567,{threadId:_0x211098})=>{const _0x3a6c3b=_0xebe76a[_0x49ab('0xb')](_0x211098);this[_0x49ab('0xf')][_0x49ab('0x0')](_0x3a6c3b)&&this[_0x49ab('0xf')][_0x49ab('0x14')](_0x3a6c3b);},{'priority':'highest'}),this[_0x49ab('0x6')](_0xebe76a,_0x49ab('0xa'),(_0x2e6a60,{threadId:_0x17b71f})=>{const _0x32ff76=_0xebe76a[_0x49ab('0xb')](_0x17b71f);this['resolvedThreads']['has'](_0x32ff76)&&this[_0x49ab('0xf')][_0x49ab('0x14')](_0x32ff76);},{'priority':_0x49ab('0x13')}),this['listenTo'](_0x8d2099[_0x49ab('0x2')],_0x49ab('0x11'),(_0x25ad96,_0x293204)=>{_0x293204[_0x49ab('0x7')]=!0x0,_0x8d2099['activate'](_0x293204);});}[_0x49ab('0x10')](_0x47bc4d){const _0x146658=[...this[_0x49ab('0xf')]][_0x49ab('0x9')](_0x1fdf7b=>_0x1fdf7b[_0x49ab('0x4')]<_0x47bc4d);return _0x146658>-0x1?_0x146658:this[_0x49ab('0xf')][_0x49ab('0x1')];}}
23
+ const _0x3888=['has','add','activate','listenTo','requires','highest','remove','removeCommentThread','reopenCommentThread','CommentsArchive','plugins','resolveCommentThread','resolvedThreads','get','resolvedAt','focus','collection','getCommentThread','_calculatePosition','init','isActive','length','addCommentThread'];(function(_0x1d516d,_0x3888b9){const _0xb38479=function(_0x1c2572){while(--_0x1c2572){_0x1d516d['push'](_0x1d516d['shift']());}};_0xb38479(++_0x3888b9);}(_0x3888,0xdf));const _0xb384=function(_0x1d516d,_0x3888b9){_0x1d516d=_0x1d516d-0x0;let _0xb38479=_0x3888[_0x1d516d];return _0xb38479;};import{ContextPlugin as _0x4d47bf}from'ckeditor5/src/core';import{Collection as _0x24d668}from'ckeditor5/src/utils';import _0x44d39a from'./commentsrepository';import _0x42eb98 from'../annotations/annotations';export default class p extends _0x4d47bf{static get['pluginName'](){return _0xb384('0x10');}static get[_0xb384('0xb')](){return[_0x44d39a,_0x42eb98];}constructor(_0xc20572){super(_0xc20572),this[_0xb384('0x13')]=new _0x24d668();}[_0xb384('0x3')](){const _0x377de7=this['context'],_0x49fe4e=_0x377de7[_0xb384('0x11')]['get'](_0x44d39a),_0x45c2a8=_0x377de7[_0xb384('0x11')][_0xb384('0x14')](_0x42eb98);this['listenTo'](_0x49fe4e,_0xb384('0x6'),(_0x4bbd3a,{threadId:_0x575a6e,resolvedAt:_0x18adf4,deletedAt:_0x3ca5f3})=>{if(_0x18adf4&&!_0x3ca5f3){const _0x5364cc=_0x49fe4e[_0xb384('0x1')](_0x575a6e);this['resolvedThreads'][_0xb384('0x8')](_0x5364cc,this[_0xb384('0x2')](_0x18adf4));}}),this[_0xb384('0xa')](_0x49fe4e,_0xb384('0x12'),(_0x1a00de,{threadId:_0x230d35,resolvedAt:_0x1c62f9})=>{const _0x2097b1=_0x49fe4e[_0xb384('0x1')](_0x230d35);this['resolvedThreads'][_0xb384('0x8')](_0x2097b1,this[_0xb384('0x2')](_0x1c62f9));},{'priority':'highest'}),this['listenTo'](_0x49fe4e,_0xb384('0xf'),(_0x388ee0,{threadId:_0x2167a7})=>{const _0x200fb9=_0x49fe4e['getCommentThread'](_0x2167a7);this['resolvedThreads'][_0xb384('0x7')](_0x200fb9)&&this[_0xb384('0x13')][_0xb384('0xd')](_0x200fb9);},{'priority':_0xb384('0xc')}),this[_0xb384('0xa')](_0x49fe4e,_0xb384('0xe'),(_0x256434,{threadId:_0x2e7a81})=>{const _0x43c9ac=_0x49fe4e['getCommentThread'](_0x2e7a81);this[_0xb384('0x13')]['has'](_0x43c9ac)&&this['resolvedThreads'][_0xb384('0xd')](_0x43c9ac);},{'priority':'highest'}),this[_0xb384('0xa')](_0x45c2a8[_0xb384('0x0')],_0xb384('0x16'),(_0x4d7f4,_0x3cb999)=>{_0x3cb999[_0xb384('0x4')]=!0x0,_0x45c2a8[_0xb384('0x9')](_0x3cb999);});}[_0xb384('0x2')](_0x5e0ffd){const _0x31f6a1=[...this['resolvedThreads']]['findIndex'](_0x40667f=>_0x40667f[_0xb384('0x15')]<_0x5e0ffd);return _0x31f6a1>-0x1?_0x31f6a1:this[_0xb384('0x13')][_0xb384('0x5')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x350a=['locale','annotationViews','COMMENTS_ARCHIVE','Annotations','add','remove','change:isOpen','CommentsRepository','listenTo','panelView','commentsArchiveView','_threadToController','config','plugins','_createArchiveUIDropdown','stopListening','channelId','editor','isVisible','children','buttonView','view','get','set','resolvedThreads','collaboration.channelId','init'];(function(_0x563b00,_0x350a9a){const _0x3b6687=function(_0x43a552){while(--_0x43a552){_0x563b00['push'](_0x563b00['shift']());}};_0x3b6687(++_0x350a9a);}(_0x350a,0x1ce));const _0x3b66=function(_0x563b00,_0x350a9a){_0x563b00=_0x563b00-0x0;let _0x3b6687=_0x350a[_0x563b00];return _0x3b6687;};import'../../theme/commentsarchive.css';import{Plugin as _0x40a41}from'ckeditor5/src/core';import{createDropdown as _0x5077b7,ViewCollection as _0x5e9f22}from'ckeditor5/src/ui';import _0x464d0e from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x10b587}from'../utils/common-translations';import _0x847500 from'./ui/view/commentsarchiveview';import _0x3c59ad from'./commentsarchive';export default class a extends _0x40a41{static get['pluginName'](){return'CommentsArchiveUI';}static get['requires'](){return[_0x3c59ad];}constructor(_0x3d18d7){super(_0x3d18d7),this[_0x3b66('0x19')]=new _0x5e9f22();}[_0x3b66('0x17')](){this['editor']['ui']['componentFactory'][_0x3b66('0x1')]('commentsArchive',()=>this[_0x3b66('0xb')]());const _0x2bc0fc=this[_0x3b66('0xe')][_0x3b66('0xa')][_0x3b66('0x13')](_0x3c59ad),_0x5d5d94=this[_0x3b66('0xe')]['plugins'][_0x3b66('0x13')](_0x3b66('0x0')),_0x537b84=this[_0x3b66('0xe')][_0x3b66('0xa')][_0x3b66('0x13')](_0x3b66('0x4'));this[_0x3b66('0x5')](_0x2bc0fc[_0x3b66('0x15')],_0x3b66('0x1'),(_0xa02117,_0x1f0aac,_0x1ffa6b)=>{const _0x1f1485=this[_0x3b66('0xe')][_0x3b66('0x9')][_0x3b66('0x13')](_0x3b66('0x16'));if(!_0x1f1485||_0x1f0aac['channelId']===_0x1f1485){const _0x389b3c=_0x537b84[_0x3b66('0x8')][_0x3b66('0x13')](_0x1f0aac),_0x250f32=_0x5d5d94['getByInnerView'](_0x389b3c[_0x3b66('0x12')]);_0x250f32[_0x3b66('0xf')]?this[_0x3b66('0x5')](_0x250f32,'change:isVisible',(_0x320593,_0x53d284,_0x28070a)=>{_0x28070a||(this['annotationViews'][_0x3b66('0x1')](_0x250f32[_0x3b66('0x12')],_0x1ffa6b),this[_0x3b66('0xc')](_0x250f32));}):this[_0x3b66('0x19')][_0x3b66('0x1')](_0x250f32[_0x3b66('0x12')],_0x1ffa6b);}}),this[_0x3b66('0x5')](_0x2bc0fc['resolvedThreads'],'remove',(_0xfc08af,_0x1b6c5a)=>{const _0x93191d=this[_0x3b66('0xe')]['config'][_0x3b66('0x13')]('collaboration.channelId');if(!_0x93191d||_0x1b6c5a[_0x3b66('0xd')]===_0x93191d){const _0x2c28b2=_0x537b84[_0x3b66('0x8')]['get'](_0x1b6c5a),_0x13bf6d=_0x5d5d94['getByInnerView'](_0x2c28b2['view'])['view'];this[_0x3b66('0x19')][_0x3b66('0x2')](_0x13bf6d);}});}[_0x3b66('0xb')](){const _0x10481c=this['editor'],_0x10cba1=_0x5077b7(_0x10481c[_0x3b66('0x18')]);return _0x10cba1[_0x3b66('0x11')][_0x3b66('0x14')]({'icon':_0x464d0e,'label':_0x10b587(_0x10481c['locale'],_0x3b66('0x1a')),'tooltip':!0x0}),_0x10cba1['on'](_0x3b66('0x3'),()=>{this[_0x3b66('0x7')]||(this[_0x3b66('0x7')]=new _0x847500(_0x10481c[_0x3b66('0x18')],this['annotationViews']),_0x10cba1[_0x3b66('0x6')][_0x3b66('0x10')][_0x3b66('0x1')](this[_0x3b66('0x7')]));}),_0x10cba1;}}
23
+ const _0x5b67=['change:isVisible','set','_threadToController','panelView','add','view','channelId','annotationViews','isOpen','listenTo','getByInnerView','requires','stop','locale','ck-comments-archive-dropdown','forEach','Annotations','_pendingThreads','CommentsRepository','querySelectorAll','stopListening','commentsArchiveView','children','editor','splice','collaboration.channelId','render','push','resolvedThreads','config','get','remove','COMMENTS_ARCHIVE','change:isFocused','focusTracker','extendTemplate','innerView','_createArchiveUIDropdown','init','buttonView','plugins','collection'];(function(_0x27a89b,_0x5b67df){const _0x4c0cfc=function(_0x2283f6){while(--_0x2283f6){_0x27a89b['push'](_0x27a89b['shift']());}};_0x4c0cfc(++_0x5b67df);}(_0x5b67,0x10a));const _0x4c0c=function(_0x27a89b,_0x5b67df){_0x27a89b=_0x27a89b-0x0;let _0x4c0cfc=_0x5b67[_0x27a89b];return _0x4c0cfc;};import'../../theme/commentsarchive.css';import{Plugin as _0x2d31ba}from'ckeditor5/src/core';import{createDropdown as _0x1a7520,clickOutsideHandler as _0x3c5363,ViewCollection as _0x3c4c11}from'ckeditor5/src/ui';import _0xf3a6db from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x39853b}from'../utils/common-translations';import _0x6cabf3 from'./ui/view/commentsarchiveview';import _0x5b62d5 from'./commentsarchive';export default class a extends _0x2d31ba{static get['pluginName'](){return'CommentsArchiveUI';}static get[_0x4c0c('0x27')](){return[_0x5b62d5];}constructor(_0x46b7e3){super(_0x46b7e3),this[_0x4c0c('0x23')]=new _0x3c4c11(),this[_0x4c0c('0x3')]=[];}[_0x4c0c('0x18')](){this[_0x4c0c('0x9')]['ui']['componentFactory']['add']('commentsArchive',()=>this[_0x4c0c('0x17')]());const _0xea6263=this['editor'][_0x4c0c('0x1a')][_0x4c0c('0x10')](_0x5b62d5),_0x2fb563=this['editor'][_0x4c0c('0x1a')][_0x4c0c('0x10')](_0x4c0c('0x2')),_0x18dd03=this['editor'][_0x4c0c('0x1a')]['get'](_0x4c0c('0x4'));this['listenTo'](_0xea6263[_0x4c0c('0xe')],'add',(_0x5d7fe4,_0x167bbc,_0x43a7ef)=>{const _0xe86c0e=this['editor']['config'][_0x4c0c('0x10')](_0x4c0c('0xb'));if(!_0xe86c0e||_0x167bbc[_0x4c0c('0x22')]===_0xe86c0e){const _0x5b48a6=_0x18dd03[_0x4c0c('0x1e')][_0x4c0c('0x10')](_0x167bbc);if(!_0x5b48a6)return void this[_0x4c0c('0x3')][_0x4c0c('0xd')]({'thread':_0x167bbc,'position':_0x43a7ef});const _0x3a407d=_0x2fb563[_0x4c0c('0x26')](_0x5b48a6['view']);_0x3a407d['isVisible']?this['listenTo'](_0x3a407d,_0x4c0c('0x1c'),(_0x5993e3,_0x58a677,_0xcfaadf)=>{_0xcfaadf||(this['annotationViews']['add'](_0x3a407d[_0x4c0c('0x21')],_0x43a7ef),this[_0x4c0c('0x6')](_0x3a407d));}):this[_0x4c0c('0x23')][_0x4c0c('0x20')](_0x3a407d[_0x4c0c('0x21')],_0x43a7ef);}}),this[_0x4c0c('0x25')](_0x2fb563[_0x4c0c('0x1b')],_0x4c0c('0x20'),(_0x26413b,_0x15bd19)=>{this[_0x4c0c('0x3')][_0x4c0c('0x1')](({thread:_0x3067ca,position:_0x5c4a2b},_0x11653b)=>{const _0x48f871=_0x18dd03[_0x4c0c('0x1e')][_0x4c0c('0x10')](_0x3067ca);_0x48f871&&_0x15bd19[_0x4c0c('0x16')]===_0x48f871[_0x4c0c('0x21')]&&(this['annotationViews']['add'](_0x15bd19['view'],_0x5c4a2b),this[_0x4c0c('0x3')][_0x4c0c('0xa')](_0x11653b,0x1));});}),this[_0x4c0c('0x25')](_0xea6263[_0x4c0c('0xe')],_0x4c0c('0x11'),(_0x4ad096,_0x41653e)=>{const _0x12bd34=this[_0x4c0c('0x9')][_0x4c0c('0xf')][_0x4c0c('0x10')](_0x4c0c('0xb'));if(!_0x12bd34||_0x41653e[_0x4c0c('0x22')]===_0x12bd34){const _0x2730f1=_0x18dd03[_0x4c0c('0x1e')][_0x4c0c('0x10')](_0x41653e),_0x1f3296=_0x2fb563[_0x4c0c('0x26')](_0x2730f1[_0x4c0c('0x21')])[_0x4c0c('0x21')];this['annotationViews']['remove'](_0x1f3296);}});}[_0x4c0c('0x17')](){const _0x13733f=this[_0x4c0c('0x9')],_0x40aee1=_0x1a7520(_0x13733f[_0x4c0c('0x29')]);return _0x40aee1['on'](_0x4c0c('0xc'),()=>{_0x40aee1['stopListening'](document,'mousedown'),_0x3c5363({'emitter':_0x40aee1,'activator':()=>_0x40aee1[_0x4c0c('0x24')],'callback':()=>{_0x40aee1[_0x4c0c('0x24')]=!0x1;},'contextElements':()=>[_0x40aee1['element'],...document[_0x4c0c('0x5')]('.ck.ck-body')]});}),_0x40aee1[_0x4c0c('0x14')]['on'](_0x4c0c('0x13'),_0x3f1c5b=>{_0x3f1c5b[_0x4c0c('0x28')]();},{'priority':'high'}),_0x40aee1[_0x4c0c('0x19')][_0x4c0c('0x1d')]({'icon':_0xf3a6db,'label':_0x39853b(_0x13733f[_0x4c0c('0x29')],_0x4c0c('0x12')),'tooltip':!0x0}),_0x40aee1[_0x4c0c('0x1f')][_0x4c0c('0x15')]({'attributes':{'class':_0x4c0c('0x0')}}),_0x40aee1['on']('change:isOpen',(_0x280399,_0xb2bfc8,_0x48c8ba)=>{this[_0x4c0c('0x7')]||(this[_0x4c0c('0x7')]=new _0x6cabf3(_0x13733f[_0x4c0c('0x29')],this[_0x4c0c('0x23')])),_0x48c8ba?_0x40aee1[_0x4c0c('0x1f')][_0x4c0c('0x8')][_0x4c0c('0x20')](this[_0x4c0c('0x7')]):_0x40aee1['panelView'][_0x4c0c('0x8')]['remove'](this[_0x4c0c('0x7')]);}),_0x40aee1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3874=['filter','editor','consumable','map','set','context','isCollapsed','ck-comment-marker--active','markerToData','then','getChangedMarkers','createElement','collaboration.channelId','hasMarkerForId','reopen','removeMarker:','hasContent','init','upcast','item','$graveyard','schema','focus','text','pluginName','activeMarker','plugins','$textProxy','editingDowncast','change:activeMarker','affectsData','_threads','registerAnnotation','getAllMarkersForId','end','data','length','registerPostFixer','change:isThreadsLoadingPaused','state','switchReadOnly','listenTo','getRange','$marker','markerName','createPositionBefore','getWalker','getCommentThread','attachTo','hasDomSelection','ignoreResolvedComments','_getTargetForId','_getTextContext','_threadToController','low','_attachMarkerToThread','enqueueChange','start','delete','comment:','comment','_hasTargetInContent','includes','change:isReadOnly','requires','addComment','conversion','has','scrollToThreadMarker','hasCommentThread','model','updateMarker','_initializeMarkerConverters','_reconvertMarkers','addMarker:','for','push','commands','resolve','isResolved','fetchCommentThread','isLocal','_attachedThreads','isObject','getAttribute','_detachCommentThread','config','document','dataDowncast','once','change','split','root','removeMarker','get','getCommentThreads','reconvertMarker','reopenCommentThread','newRange','addCommentThread','createRange','openNewCommentThread','view','size','destroy','render','markers','differ','getByInnerView','high','getItems','add','destroyed','_handleMarkerAddAndRemove','rootName','ready','consume','_handleThreadMarker','editing'];(function(_0x1908f2,_0x3874cb){const _0x4cb106=function(_0x20c7d3){while(--_0x20c7d3){_0x1908f2['push'](_0x1908f2['shift']());}};_0x4cb106(++_0x3874cb);}(_0x3874,0xcd));const _0x4cb1=function(_0x1908f2,_0x3874cb){_0x1908f2=_0x1908f2-0x0;let _0x4cb106=_0x3874[_0x1908f2];return _0x4cb106;};import{Plugin as _0x4420cc}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x30fd16}from'ckeditor5/src/utils';import _0xb966a4 from'./commentsrepository';import _0x4269ca from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x487a33}from'ckeditor5-collaboration/src/collaboration-core';import _0x5a9151 from'../annotations/editorannotations';import _0x366d26 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x38fc9c from'./integrations/importword';import _0x3d2997 from'../annotations/annotations';export default class r extends _0x4420cc{static get[_0x4cb1('0x61')](){return[_0xb966a4,_0x5a9151,_0x366d26,_0x38fc9c];}static get[_0x4cb1('0x39')](){return'CommentsEditing';}constructor(_0x25d5ec){super(_0x25d5ec),this[_0x4cb1('0x25')]('isThreadsLoadingPaused',!0x0),_0x25d5ec[_0x4cb1('0x44')][_0x4cb1('0x3')](_0x4cb1('0x1d'),()=>this['isThreadsLoadingPaused']=!0x1),this[_0x4cb1('0x25')]('activeMarker',null),this['on'](_0x4cb1('0x3e'),(_0x26ee77,_0x2a0bcf,_0x5c27ff,_0x301e90)=>{const _0x4a52d1=_0x5c27ff?tt(_0x5c27ff)['id']:null;if(_0x25d5ec[_0x4cb1('0x67')]['change'](()=>{if(_0x4a52d1){const _0x298230=this[_0x4cb1('0x42')](_0x4a52d1);for(const _0x2f6d8a of _0x298230)_0x25d5ec[_0x4cb1('0x20')][_0x4cb1('0xa')](_0x2f6d8a);}if(_0x301e90){const {id:_0xa7f974}=tt(_0x301e90),_0x118a79=this['getAllMarkersForId'](_0xa7f974);for(const _0x5462b0 of _0x118a79)_0x25d5ec[_0x4cb1('0x20')]['reconvertMarker'](_0x5462b0);}}),_0x4a52d1){const _0x3d28ba=_0x25d5ec['plugins'][_0x4cb1('0x8')](_0xb966a4)['getCommentThread'](_0x4a52d1);_0x3d28ba&&_0x3d28ba[_0x4cb1('0x70')]&&this[_0x4cb1('0x65')](_0x4a52d1);}}),this[_0x4cb1('0x73')]=new Map();}[_0x4cb1('0x32')](){const _0x100379=this[_0x4cb1('0x22')],_0x3b055f=_0x100379[_0x4cb1('0x3b')][_0x4cb1('0x8')](_0xb966a4),_0x2de7fe=_0x100379[_0x4cb1('0x0')][_0x4cb1('0x8')](_0x4cb1('0x2d'));_0x100379[_0x4cb1('0x6e')][_0x4cb1('0x19')](_0x4cb1('0xd'),new _0x4269ca(_0x100379)),this['listenTo'](_0x100379,_0x4cb1('0x60'),(_0x1742f6,_0x2b1da4,_0x46a07b)=>{_0x3b055f[_0x4cb1('0x49')](_0x46a07b,_0x100379[_0x4cb1('0x0')][_0x4cb1('0x8')](_0x4cb1('0x2d')));}),this[_0x4cb1('0x4a')](_0x3b055f,Z('addCommentThread',_0x2de7fe),(_0x12094d,{threadId:_0x5595d8})=>{const _0x321495=_0x100379[_0x4cb1('0x3b')][_0x4cb1('0x8')](_0x5a9151),_0x2c8968=this[_0x4cb1('0x22')][_0x4cb1('0x3b')][_0x4cb1('0x8')](_0xb966a4)['getCommentThread'](_0x5595d8);if(_0x2c8968&&_0x2c8968[_0x4cb1('0x70')]&&!this[_0x4cb1('0x73')][_0x4cb1('0x64')](_0x5595d8)){const _0x21cdf0=_0x2c8968['attachTo'](()=>this[_0x4cb1('0x54')](_0x2c8968['id']));_0x321495[_0x4cb1('0x41')](_0x21cdf0),this[_0x4cb1('0x73')][_0x4cb1('0x25')](_0x5595d8,[]),0x0===this[_0x4cb1('0x42')](_0x5595d8)['length']&&(_0x2c8968[_0x4cb1('0x5e')]=!0x1);}}),this[_0x4cb1('0x4a')](_0x3b055f,Z('removeCommentThread',_0x2de7fe),(_0xc16180,{threadId:_0x13a550})=>{_0x100379['model'][_0x4cb1('0x59')]({'isUndoable':!0x1},_0x1ca19a=>{const _0x70457f=this[_0x4cb1('0x42')](_0x13a550);this[_0x4cb1('0x73')][_0x4cb1('0x5b')](_0x13a550);for(const _0x34728f of _0x70457f)_0x1ca19a[_0x4cb1('0x7')](_0x34728f);});},{'priority':_0x4cb1('0x17')}),this['listenTo'](_0x3b055f,Z('resolveCommentThread',_0x2de7fe),(_0x126a40,{threadId:_0x4b2cc5})=>{this[_0x4cb1('0x6a')](_0x4b2cc5),this[_0x4cb1('0x22')][_0x4cb1('0x20')][_0x4cb1('0x10')][_0x4cb1('0x52')]&&this[_0x4cb1('0x22')]['editing']['view'][_0x4cb1('0x37')]();},{'priority':'low'}),this[_0x4cb1('0x4a')](_0x3b055f,Z(_0x4cb1('0xb'),_0x2de7fe),(_0x190ad1,{threadId:_0x3ac937})=>{this['_reconvertMarkers'](_0x3ac937);},{'priority':_0x4cb1('0x57')}),this['listenTo'](_0x3b055f,Z(_0x4cb1('0x62'),_0x2de7fe),(_0x3364aa,{threadId:_0x99b22a,isFromAdapter:_0x341b55})=>{const _0x49f722=this[_0x4cb1('0x42')](_0x99b22a);if(_0x341b55||0x0==_0x49f722[_0x4cb1('0x45')]||!_0x3b055f[_0x4cb1('0x66')](_0x99b22a))return;0x1===_0x3b055f[_0x4cb1('0x50')](_0x99b22a)[_0x4cb1('0x45')]&&_0x100379[_0x4cb1('0x67')][_0x4cb1('0x59')]({'isUndoable':!0x1},_0x3a1182=>{for(const _0x300512 of _0x49f722)_0x3a1182[_0x4cb1('0x68')](_0x300512,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this[_0x4cb1('0x69')](),this[_0x4cb1('0x1b')]();}['destroy'](){const _0x542320=this[_0x4cb1('0x22')][_0x4cb1('0x3b')][_0x4cb1('0x8')](_0xb966a4),_0x160db8=this[_0x4cb1('0x22')][_0x4cb1('0x0')][_0x4cb1('0x8')]('collaboration.channelId');for(const _0x1943e5 of _0x542320[_0x4cb1('0x9')]({'channelId':_0x160db8}))_0x542320[_0x4cb1('0x76')](_0x1943e5['id']),_0x542320[_0x4cb1('0x40')][_0x4cb1('0x5b')](_0x1943e5['id']);super[_0x4cb1('0x12')]();}[_0x4cb1('0x2e')](_0x34784f){return this['getAllMarkersForId'](_0x34784f)['length']>0x0;}[_0x4cb1('0x42')](_0x4291fd){return(this[_0x4cb1('0x73')][_0x4cb1('0x8')](_0x4291fd)||[])[_0x4cb1('0x24')](_0x3b5767=>this[_0x4cb1('0x22')][_0x4cb1('0x67')][_0x4cb1('0x14')][_0x4cb1('0x8')](_0x3b5767))[_0x4cb1('0x21')](_0xf15b0a=>_0xf15b0a);}['scrollToThreadMarker'](_0x5afe10){const _0x41f4e2=this['_getTargetForId'](_0x5afe10);_0x41f4e2&&setTimeout(()=>{this[_0x4cb1('0x3a')]&&tt(this[_0x4cb1('0x3a')])['id']===_0x5afe10&&_0x30fd16({'target':_0x41f4e2[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x4cb1('0x6a')](_0x2b1f53){this[_0x4cb1('0x22')]['model']['change'](()=>{for(const _0x19821c of this[_0x4cb1('0x42')](_0x2b1f53))this[_0x4cb1('0x22')][_0x4cb1('0x20')][_0x4cb1('0xa')](_0x19821c);});}[_0x4cb1('0x69')](){const _0xdb29f2=this[_0x4cb1('0x22')];_0xdb29f2['conversion'][_0x4cb1('0x6c')](_0x4cb1('0x3d'))['markerToHighlight']({'model':_0x4cb1('0x5d'),'view':(_0x376e37,_0x13808a)=>{const {id:_0x3bf795}=tt(_0x376e37[_0x4cb1('0x4d')]),_0x350702=_0xdb29f2[_0x4cb1('0x3b')][_0x4cb1('0x8')](_0xb966a4)[_0x4cb1('0x50')](_0x3bf795),_0x2ab25e=this[_0x4cb1('0x3a')]&&tt(this[_0x4cb1('0x3a')])['id']===_0x3bf795;if(_0x350702&&_0x350702[_0x4cb1('0x70')]&&!_0x2ab25e&&_0x376e37[_0x4cb1('0x34')])return _0x13808a['consumable'][_0x4cb1('0x1e')](_0x376e37[_0x4cb1('0x34')],_0x4cb1('0x6b')+_0x376e37['markerName']),_0x13808a[_0x4cb1('0x23')][_0x4cb1('0x1e')](_0x376e37['item'],_0x4cb1('0x30')+_0x376e37[_0x4cb1('0x4d')]),{'classes':[]};const _0x3045df=['ck-comment-marker'];return _0x2ab25e&&_0x3045df[_0x4cb1('0x6d')](_0x4cb1('0x28')),{'classes':_0x3045df,'attributes':{'data-comment':_0x3bf795}};}}),_0xdb29f2['conversion']['for'](_0x4cb1('0x2'))[_0x4cb1('0x29')]({'model':'comment','view':(_0x3d768c,{options:_0x100a6e})=>{const _0x3eb854=_0xdb29f2[_0x4cb1('0x3b')][_0x4cb1('0x8')](_0xb966a4),_0x5b798c=_0xdb29f2[_0x4cb1('0x67')][_0x4cb1('0x14')][_0x4cb1('0x8')](_0x3d768c),{id:_0x4ceb02,part:_0x35869c}=tt(_0x3d768c),_0x44d6d2=_0x3eb854['getCommentThread'](_0x4ceb02);return _0x5b798c&&!_0x5b798c[_0x4cb1('0x3f')]||_0x44d6d2&&_0x44d6d2['isResolved']&&_0x100a6e[_0x4cb1('0x53')]?null:{'group':_0x4cb1('0x5d'),'name':_0x35869c?_0x4ceb02+':'+_0x35869c:_0x4ceb02};}}),_0xdb29f2[_0x4cb1('0x63')][_0x4cb1('0x6c')]('upcast')['elementToElement']({'view':{'name':_0x4cb1('0x5d'),'attributes':{'id':/^\w/}},'model':(_0x212c35,{writer:_0x91bd2e})=>_0x91bd2e[_0x4cb1('0x2c')](_0x4cb1('0x4c'),{'data-name':_0x4cb1('0x5c')+_0x212c35[_0x4cb1('0x75')]('id')})}),_0xdb29f2[_0x4cb1('0x63')][_0x4cb1('0x6c')](_0x4cb1('0x33'))['dataToMarker']({'view':_0x4cb1('0x5d')});}['_handleMarkerAddAndRemove'](){const _0x3868bd=this[_0x4cb1('0x22')],_0x6c569d=_0x3868bd[_0x4cb1('0x3b')]['get'](_0xb966a4),_0xa99be8=new Set();_0x3868bd[_0x4cb1('0x67')][_0x4cb1('0x1')][_0x4cb1('0x46')](_0x577521=>{let _0x58cb9b=!0x1;for(const {name:_0xf33bbe,data:_0x3ae008}of _0x3868bd['model'][_0x4cb1('0x1')]['differ'][_0x4cb1('0x2b')]()){const {group:_0x13264c,id:_0x114a0e}=tt(_0xf33bbe);let _0x2f39d5=_0x3ae008['newRange'];if(_0x4cb1('0x5d')!==_0x13264c||!_0x2f39d5)continue;const _0x48d146=_0x4cb1('0x35')===_0x2f39d5[_0x4cb1('0x6')][_0x4cb1('0x1c')];_0x48d146||(_0x2f39d5=ot(_0x2f39d5,_0x3868bd[_0x4cb1('0x67')]),!_0x2f39d5||!_0x3ae008[_0x4cb1('0xc')]||_0x2f39d5['isEqual'](_0x3ae008['newRange']))?!_0x2f39d5||!_0x3868bd[_0x4cb1('0x67')][_0x4cb1('0x31')](_0x2f39d5)||this['_attachedThreads']['has'](_0x114a0e)&&_0x48d146?(_0x577521['removeMarker'](_0xf33bbe),_0x58cb9b=!0x0):_0x48d146||(this['isThreadsLoadingPaused']?_0xa99be8[_0x4cb1('0x19')](_0xf33bbe):this[_0x4cb1('0x1f')](_0xf33bbe,_0x114a0e)):(_0x577521[_0x4cb1('0x68')](_0xf33bbe,{'range':_0x2f39d5}),_0x58cb9b=!0x0);}return _0x58cb9b;}),this['on'](_0x4cb1('0x47'),(_0x38a46f,_0x15fd57,_0xca1943)=>{if(!_0xca1943&&_0xa99be8[_0x4cb1('0x11')])for(const _0x2d85cd of _0xa99be8){const {id:_0x3ee91d}=tt(_0x2d85cd);_0xa99be8[_0x4cb1('0x5b')](_0x3ee91d),_0x3868bd[_0x4cb1('0x67')][_0x4cb1('0x14')][_0x4cb1('0x8')](_0x2d85cd)&&this[_0x4cb1('0x1f')](_0x2d85cd,_0x3ee91d);}}),this['listenTo'](_0x3868bd[_0x4cb1('0x67')][_0x4cb1('0x1')],_0x4cb1('0x4'),(_0x30281e,_0x265f00)=>{for(const {name:_0x631582,data:{newRange:_0x36fa20}}of _0x3868bd[_0x4cb1('0x67')][_0x4cb1('0x1')][_0x4cb1('0x15')][_0x4cb1('0x2b')]()){const {group:_0x43f5aa,id:_0x18eb5f}=tt(_0x631582);if(_0x4cb1('0x5d')!==_0x43f5aa)continue;const _0x271b3d=_0x6c569d['getCommentThread'](_0x18eb5f),_0x1605f6=this[_0x4cb1('0x2e')](_0x18eb5f);_0x271b3d&&(_0x271b3d[_0x4cb1('0x5e')]||_0x3868bd[_0x4cb1('0x20')]['view'][_0x4cb1('0x3')](_0x4cb1('0x13'),()=>{const _0x4823ad=_0x3868bd[_0x4cb1('0x3b')]['get'](_0x3d2997),_0x557abb=_0x6c569d[_0x4cb1('0x56')]['get'](_0x271b3d)[_0x4cb1('0x10')];_0x4823ad[_0x4cb1('0x16')](_0x557abb)['refreshVisibility']();},{'priority':_0x4cb1('0x57')}),_0x271b3d['_hasTargetInContent']=_0x1605f6||!!_0x36fa20),!_0x36fa20&&_0x265f00[_0x4cb1('0x72')]&&(_0xa99be8['delete'](_0x18eb5f),_0x271b3d&&!_0x271b3d['isResolved']&&!_0x1605f6&&this[_0x4cb1('0x73')]['has'](_0x18eb5f)&&(this[_0x4cb1('0x73')]['delete'](_0x18eb5f),_0x271b3d[_0x4cb1('0x6f')]()));}});}[_0x4cb1('0x54')](_0x4e44e5){const _0x71cc15=this[_0x4cb1('0x22')],_0x217220=this['getAllMarkersForId'](_0x4e44e5);return _0x487a33(_0x71cc15['editing'],_0x217220);}[_0x4cb1('0x55')](_0x394e83){const _0x474577=this[_0x4cb1('0x42')](_0x394e83);let _0x58ab5f='',_0x4d7e2b=!0x1;for(const _0x1868c2 of _0x474577){const _0x3517e9=_0x1868c2[_0x4cb1('0x4b')]();for(const _0x3d6093 of Array['from'](_0x3517e9[_0x4cb1('0x18')]()))_0x3d6093['is'](_0x4cb1('0x3c'))?(_0x58ab5f&&_0x4d7e2b&&(_0x58ab5f+='\x20',_0x4d7e2b=!0x1),_0x58ab5f+=_0x3d6093[_0x4cb1('0x44')]):_0x4d7e2b=!0x0;_0x4d7e2b=!0x0;}return _0x58ab5f['substring'](0x0,0x96);}[_0x4cb1('0x58')](_0x5e3bad,_0x4e9fc0){const _0x3e6fcd=this[_0x4cb1('0x22')],_0x29b03c=_0x3e6fcd[_0x4cb1('0x3b')]['get'](_0xb966a4);let _0xf04ff4=_0x29b03c[_0x4cb1('0x50')](_0x4e9fc0);if(this['_attachedThreads'][_0x4cb1('0x64')](_0x4e9fc0)){const _0x40f546=this[_0x4cb1('0x73')][_0x4cb1('0x8')](_0x4e9fc0);return _0x40f546[_0x4cb1('0x5f')](_0x5e3bad)||_0x40f546['push'](_0x5e3bad),_0xf04ff4;}this[_0x4cb1('0x73')][_0x4cb1('0x25')](_0x4e9fc0,[_0x5e3bad]);const _0x4171aa=_0x3e6fcd['config']['get'](_0x4cb1('0x2d')),_0xd011ca=_0x3e6fcd[_0x4cb1('0x3b')][_0x4cb1('0x8')](_0x5a9151);if(_0xf04ff4&&_0xf04ff4[_0x4cb1('0x70')])return _0xf04ff4[_0x4cb1('0x2f')](),_0xf04ff4;return!this[_0x4cb1('0x42')](_0x4e9fc0)[0x0]['managedUsingOperations']?_0x3e6fcd['editing'][_0x4cb1('0x10')][_0x4cb1('0x3')]('render',()=>{const _0x43cb69=_0x3e6fcd['plugins'][_0x4cb1('0x8')](_0x3d2997);_0xf04ff4=_0x29b03c[_0x4cb1('0xf')]({'channelId':_0x4171aa,'threadId':_0x4e9fc0,'target':()=>this[_0x4cb1('0x54')](_0x4e9fc0),'context':{'type':_0x4cb1('0x38'),'value':this[_0x4cb1('0x55')](_0x4e9fc0)}});const _0x40c356=_0x29b03c[_0x4cb1('0x56')][_0x4cb1('0x8')](_0xf04ff4)['view'],_0x199cf9=_0x43cb69[_0x4cb1('0x16')](_0x40c356);_0x199cf9&&_0xd011ca[_0x4cb1('0x41')](_0x199cf9);},{'priority':_0x4cb1('0x57')}):_0x29b03c[_0x4cb1('0x71')]({'channelId':_0x4171aa,'threadId':_0x4e9fc0})[_0x4cb1('0x2a')](_0x2e60d6=>{if(_0x4cb1('0x1a')!==_0x3e6fcd[_0x4cb1('0x48')]){if(_0xf04ff4=_0x2e60d6,_0xf04ff4){const _0x318287=_0xf04ff4[_0x4cb1('0x51')](()=>this['_getTargetForId'](_0x4e9fc0));_0xd011ca[_0x4cb1('0x41')](_0x318287);}else{const _0x2e7eff=this[_0x4cb1('0x42')](_0x4e9fc0);_0x3e6fcd[_0x4cb1('0x67')]['change'](_0x455611=>{for(const _0x344ffd of _0x2e7eff)_0x455611[_0x4cb1('0x7')](_0x344ffd);});}}}),_0xf04ff4;}['_handleThreadMarker'](_0xd39dbe,_0x2c42a4){const _0x57dab6=this[_0x4cb1('0x58')](_0xd39dbe,_0x2c42a4);_0x57dab6&&!_0x57dab6[_0x4cb1('0x26')]&&_0x57dab6['setContext']({'type':_0x4cb1('0x38'),'value':this['_getTextContext'](_0x2c42a4)});}}function Z(_0x28bf95,_0x33c710){return _0x33c710?_0x28bf95+':'+_0x33c710:_0x28bf95;}function tt(_0x1f783a){const _0x30da5e=_0x1f783a[_0x4cb1('0x5')](':');return{'group':_0x30da5e[0x0],'id':_0x30da5e[0x1],'part':_0x30da5e[0x2]};}function ot(_0x47c213,_0x113ac9){const _0x851503=_0x113ac9[_0x4cb1('0x36')],_0x33a870=_0x113ac9[_0x4cb1('0xe')](_0x47c213[_0x4cb1('0x5a')]);for(const _0xe05622 of _0x47c213[_0x4cb1('0x4f')]()){const {type:_0x4e7dec,item:_0x88da54,nextPosition:_0x369c14}=_0xe05622;if(_0x4cb1('0x38')===_0x4e7dec||_0x851503[_0x4cb1('0x74')](_0x88da54)){const _0x43761e=_0x113ac9[_0x4cb1('0x4e')](_0x88da54);_0x33a870[_0x4cb1('0x27')]&&(_0x33a870[_0x4cb1('0x5a')]=_0x43761e),_0x33a870[_0x4cb1('0x43')]=_0x369c14;}}return _0x33a870[_0x4cb1('0x27')]?null:_0x33a870;}
23
+ const _0x1926=['markerName','rootName','createPositionBefore','listenTo','_getTargetForId','add','_reconvertMarkers','addCommentThread','editing','refreshVisibility','comment','delete','newRange','editingDowncast','upcast','removeMarker:','addMarker:','high','schema','_handleMarkerAddAndRemove','isObject','model','getAttribute','isLocal','scrollToThreadMarker','state','render','item','low','managedUsingOperations','dataDowncast','_threadToController','resolveCommentThread','set','start','_threads','getByInnerView','init','text','has','hasContent','registerAnnotation','$graveyard','split','differ','size','conversion','removeMarker','requires','for','change:isReadOnly','_handleThreadMarker','document','getCommentThreads','createRange','getWalker','length','getChangedMarkers','$textProxy','_getTextContext','registerPostFixer','_initializeMarkerConverters','ck-comment-marker','ready','reconvertMarker','fetchCommentThread','updateMarker','hasDomSelection','once','elementToElement','isThreadsLoadingPaused','end','affectsData','includes','activeMarker','isEqual','enqueueChange','isCollapsed','_detachCommentThread','hasMarkerForId','attachTo','isResolved','_attachedThreads','root','getCommentThread','editor','view','getAllMarkersForId','getRange','hasCommentThread','data','$marker','reopenCommentThread','consume','markerToData','comment:','change:isThreadsLoadingPaused','_hasTargetInContent','change','get','markers','createElement','commands','plugins','removeCommentThread','config','destroy','collaboration.channelId','focus'];(function(_0x433327,_0x192624){const _0x372847=function(_0x7d764){while(--_0x7d764){_0x433327['push'](_0x433327['shift']());}};_0x372847(++_0x192624);}(_0x1926,0x17e));const _0x3728=function(_0x433327,_0x192624){_0x433327=_0x433327-0x0;let _0x372847=_0x1926[_0x433327];return _0x372847;};import{Plugin as _0x47dafc}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x1d7eac}from'ckeditor5/src/utils';import _0x1c7b93 from'./commentsrepository';import _0x50880f from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x47761f}from'ckeditor5-collaboration/src/collaboration-core';import _0x3ba335 from'../annotations/editorannotations';import _0x116685 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x42bf36 from'./integrations/importword';import _0x3dab from'../annotations/annotations';export default class r extends _0x47dafc{static get[_0x3728('0x66')](){return[_0x1c7b93,_0x3ba335,_0x116685,_0x42bf36];}static get['pluginName'](){return'CommentsEditing';}constructor(_0x1eebf9){super(_0x1eebf9),this['set'](_0x3728('0xf'),!0x0),_0x1eebf9['data'][_0x3728('0xd')](_0x3728('0x8'),()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x530a7c,_0x5e54bf,_0x176ff5,_0xff0643)=>{const _0x541315=_0x176ff5?ot(_0x176ff5)['id']:null;if(_0x1eebf9[_0x3728('0x4b')]['change'](()=>{if(_0x541315){const _0x437d54=this[_0x3728('0x20')](_0x541315);for(const _0x36f95a of _0x437d54)_0x1eebf9['editing'][_0x3728('0x9')](_0x36f95a);}if(_0xff0643){const {id:_0xcaed97}=ot(_0xff0643),_0xe3db67=this[_0x3728('0x20')](_0xcaed97);for(const _0x20f82d of _0xe3db67)_0x1eebf9['editing']['reconvertMarker'](_0x20f82d);}}),_0x541315){const _0x219487=_0x1eebf9[_0x3728('0x30')][_0x3728('0x2c')](_0x1c7b93)['getCommentThread'](_0x541315);_0x219487&&_0x219487[_0x3728('0x1a')]&&this[_0x3728('0x4e')](_0x541315);}}),this[_0x3728('0x1b')]=new Map();}[_0x3728('0x5b')](){const _0x2946de=this[_0x3728('0x1e')],_0x4e95f9=_0x2946de['plugins'][_0x3728('0x2c')](_0x1c7b93),_0x1728c6=_0x2946de[_0x3728('0x32')][_0x3728('0x2c')]('collaboration.channelId');_0x2946de[_0x3728('0x2f')][_0x3728('0x3b')](_0x3728('0x3d'),new _0x50880f(_0x2946de)),this[_0x3728('0x39')](_0x2946de,_0x3728('0x68'),(_0x44cf85,_0x42a0ee,_0x4eb269)=>{_0x4e95f9['switchReadOnly'](_0x4eb269,_0x2946de[_0x3728('0x32')][_0x3728('0x2c')](_0x3728('0x34')));}),this[_0x3728('0x39')](_0x4e95f9,tt(_0x3728('0x3d'),_0x1728c6),(_0x27d545,{threadId:_0x5b17ec})=>{const _0x3c7f17=_0x2946de[_0x3728('0x30')]['get'](_0x3ba335),_0x2b1040=this[_0x3728('0x1e')][_0x3728('0x30')][_0x3728('0x2c')](_0x1c7b93)[_0x3728('0x1d')](_0x5b17ec);if(_0x2b1040&&_0x2b1040[_0x3728('0x1a')]&&!this[_0x3728('0x1b')]['has'](_0x5b17ec)){const _0x423cc2=_0x2b1040[_0x3728('0x19')](()=>this['_getTargetForId'](_0x2b1040['id']));_0x3c7f17['registerAnnotation'](_0x423cc2),this[_0x3728('0x1b')][_0x3728('0x57')](_0x5b17ec,[]),0x0===this[_0x3728('0x20')](_0x5b17ec)[_0x3728('0x1')]&&(_0x2b1040[_0x3728('0x2a')]=!0x1);}}),this[_0x3728('0x39')](_0x4e95f9,tt(_0x3728('0x31'),_0x1728c6),(_0x4da86a,{threadId:_0x3c8f90})=>{_0x2946de[_0x3728('0x4b')][_0x3728('0x15')]({'isUndoable':!0x1},_0x5ca8ff=>{const _0x21065c=this[_0x3728('0x20')](_0x3c8f90);this[_0x3728('0x1b')][_0x3728('0x41')](_0x3c8f90);for(const _0x45b0e7 of _0x21065c)_0x5ca8ff[_0x3728('0x65')](_0x45b0e7);});},{'priority':_0x3728('0x47')}),this[_0x3728('0x39')](_0x4e95f9,tt(_0x3728('0x56'),_0x1728c6),(_0x18b164,{threadId:_0x35d8ad})=>{this[_0x3728('0x3c')](_0x35d8ad),this[_0x3728('0x1e')][_0x3728('0x3e')][_0x3728('0x1f')][_0x3728('0xc')]&&this[_0x3728('0x1e')][_0x3728('0x3e')][_0x3728('0x1f')][_0x3728('0x35')]();},{'priority':_0x3728('0x52')}),this[_0x3728('0x39')](_0x4e95f9,tt(_0x3728('0x25'),_0x1728c6),(_0x17e802,{threadId:_0x1725ec})=>{this[_0x3728('0x3c')](_0x1725ec);},{'priority':_0x3728('0x52')}),this['listenTo'](_0x4e95f9,tt('addComment',_0x1728c6),(_0x37c2a5,{threadId:_0x1ccb15,isFromAdapter:_0x300bc2})=>{const _0x1ba2c0=this[_0x3728('0x20')](_0x1ccb15);if(_0x300bc2||0x0==_0x1ba2c0['length']||!_0x4e95f9[_0x3728('0x22')](_0x1ccb15))return;0x1===_0x4e95f9[_0x3728('0x1d')](_0x1ccb15)[_0x3728('0x1')]&&_0x2946de[_0x3728('0x4b')][_0x3728('0x15')]({'isUndoable':!0x1},_0x8f086c=>{for(const _0x420148 of _0x1ba2c0)_0x8f086c[_0x3728('0xb')](_0x420148,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x3728('0x52')}),this[_0x3728('0x6')](),this['_handleMarkerAddAndRemove']();}['destroy'](){const _0x134e22=this[_0x3728('0x1e')]['plugins'][_0x3728('0x2c')](_0x1c7b93),_0x3ed974=this['editor'][_0x3728('0x32')][_0x3728('0x2c')](_0x3728('0x34'));for(const _0x2671f3 of _0x134e22[_0x3728('0x6b')]({'channelId':_0x3ed974}))_0x134e22[_0x3728('0x17')](_0x2671f3['id']),_0x134e22[_0x3728('0x59')][_0x3728('0x41')](_0x2671f3['id']);super[_0x3728('0x33')]();}[_0x3728('0x18')](_0x129705){return this['getAllMarkersForId'](_0x129705)['length']>0x0;}[_0x3728('0x20')](_0x57a240){return(this[_0x3728('0x1b')]['get'](_0x57a240)||[])['map'](_0x3f5f1c=>this['editor']['model'][_0x3728('0x2d')]['get'](_0x3f5f1c))['filter'](_0x53fddc=>_0x53fddc);}[_0x3728('0x4e')](_0x2807ba){const _0x3e85fe=this[_0x3728('0x3a')](_0x2807ba);_0x3e85fe&&setTimeout(()=>{this[_0x3728('0x13')]&&ot(this['activeMarker'])['id']===_0x2807ba&&_0x1d7eac({'target':_0x3e85fe[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x3728('0x3c')](_0x3a496e){this[_0x3728('0x1e')][_0x3728('0x4b')][_0x3728('0x2b')](()=>{for(const _0x55a01 of this[_0x3728('0x20')](_0x3a496e))this[_0x3728('0x1e')][_0x3728('0x3e')][_0x3728('0x9')](_0x55a01);});}[_0x3728('0x6')](){const _0x37742f=this[_0x3728('0x1e')];_0x37742f['conversion'][_0x3728('0x67')](_0x3728('0x43'))['markerToHighlight']({'model':_0x3728('0x40'),'view':(_0x12fd27,_0x241353)=>{const {id:_0x356e26}=ot(_0x12fd27[_0x3728('0x36')]),_0x4f13fd=_0x37742f['plugins'][_0x3728('0x2c')](_0x1c7b93)[_0x3728('0x1d')](_0x356e26),_0xfba0aa=this[_0x3728('0x13')]&&ot(this['activeMarker'])['id']===_0x356e26;if(_0x4f13fd&&_0x4f13fd[_0x3728('0x1a')]&&!_0xfba0aa&&_0x12fd27['item'])return _0x241353['consumable'][_0x3728('0x26')](_0x12fd27[_0x3728('0x51')],_0x3728('0x46')+_0x12fd27['markerName']),_0x241353['consumable'][_0x3728('0x26')](_0x12fd27[_0x3728('0x51')],_0x3728('0x45')+_0x12fd27[_0x3728('0x36')]),{'classes':[]};const _0x231971=[_0x3728('0x7')];return _0xfba0aa&&_0x231971['push']('ck-comment-marker--active'),{'classes':_0x231971,'attributes':{'data-comment':_0x356e26}};}}),_0x37742f[_0x3728('0x64')][_0x3728('0x67')](_0x3728('0x54'))[_0x3728('0x27')]({'model':'comment','view':(_0x35e268,{options:_0x5af231})=>{const _0x315eaa=_0x37742f[_0x3728('0x30')][_0x3728('0x2c')](_0x1c7b93),_0x189d68=_0x37742f[_0x3728('0x4b')]['markers'][_0x3728('0x2c')](_0x35e268),{id:_0xc7086b,part:_0x3dce8c}=ot(_0x35e268),_0x54f8fd=_0x315eaa[_0x3728('0x1d')](_0xc7086b);return _0x189d68&&!_0x189d68[_0x3728('0x11')]||_0x54f8fd&&_0x54f8fd['isResolved']&&_0x5af231['ignoreResolvedComments']?null:{'group':'comment','name':_0x3dce8c?_0xc7086b+':'+_0x3dce8c:_0xc7086b};}}),_0x37742f[_0x3728('0x64')][_0x3728('0x67')](_0x3728('0x44'))[_0x3728('0xe')]({'view':{'name':_0x3728('0x40'),'attributes':{'id':/^\w/}},'model':(_0x38b4c5,{writer:_0xee6da7})=>_0xee6da7[_0x3728('0x2e')](_0x3728('0x24'),{'data-name':_0x3728('0x28')+_0x38b4c5[_0x3728('0x4c')]('id')})}),_0x37742f[_0x3728('0x64')]['for'](_0x3728('0x44'))['dataToMarker']({'view':_0x3728('0x40')});}[_0x3728('0x49')](){const _0x205af7=this[_0x3728('0x1e')],_0x17a94d=_0x205af7['plugins'][_0x3728('0x2c')](_0x1c7b93),_0x53a1a6=new Set();_0x205af7[_0x3728('0x4b')][_0x3728('0x6a')][_0x3728('0x5')](_0x302446=>{let _0x1b9dd0=!0x1;for(const {name:_0x5b4dae,data:_0x37b25a}of _0x205af7[_0x3728('0x4b')]['document'][_0x3728('0x62')][_0x3728('0x2')]()){const {group:_0x3bf436,id:_0x59953a}=ot(_0x5b4dae);let _0x35bfb4=_0x37b25a['newRange'];if(_0x3728('0x40')!==_0x3bf436||!_0x35bfb4)continue;const _0x4d6224=_0x3728('0x60')===_0x35bfb4[_0x3728('0x1c')][_0x3728('0x37')];_0x4d6224||(_0x35bfb4=et(_0x35bfb4,_0x205af7[_0x3728('0x4b')]),!_0x35bfb4||!_0x37b25a[_0x3728('0x42')]||_0x35bfb4[_0x3728('0x14')](_0x37b25a[_0x3728('0x42')]))?!_0x35bfb4||!_0x205af7[_0x3728('0x4b')][_0x3728('0x5e')](_0x35bfb4)||this['_attachedThreads']['has'](_0x59953a)&&_0x4d6224?(_0x302446[_0x3728('0x65')](_0x5b4dae),_0x1b9dd0=!0x0):_0x4d6224||(this['isThreadsLoadingPaused']?_0x53a1a6[_0x3728('0x3b')](_0x5b4dae):this[_0x3728('0x69')](_0x5b4dae,_0x59953a)):(_0x302446[_0x3728('0xb')](_0x5b4dae,{'range':_0x35bfb4}),_0x1b9dd0=!0x0);}return _0x1b9dd0;}),this['on'](_0x3728('0x29'),(_0xd9ab27,_0x5417b4,_0xdb7cbf)=>{if(!_0xdb7cbf&&_0x53a1a6[_0x3728('0x63')])for(const _0x33d135 of _0x53a1a6){const {id:_0x55ecf6}=ot(_0x33d135);_0x53a1a6[_0x3728('0x41')](_0x55ecf6),_0x205af7[_0x3728('0x4b')][_0x3728('0x2d')][_0x3728('0x2c')](_0x33d135)&&this[_0x3728('0x69')](_0x33d135,_0x55ecf6);}}),this[_0x3728('0x39')](_0x205af7['model'][_0x3728('0x6a')],_0x3728('0x2b'),(_0x47209f,_0x359e01)=>{for(const {name:_0x43e19d,data:{newRange:_0x53e19d}}of _0x205af7[_0x3728('0x4b')][_0x3728('0x6a')]['differ']['getChangedMarkers']()){const {group:_0x3dbbdb,id:_0xfe3330}=ot(_0x43e19d);if(_0x3728('0x40')!==_0x3dbbdb)continue;const _0xc1f7eb=_0x17a94d[_0x3728('0x1d')](_0xfe3330),_0x9aa514=this[_0x3728('0x18')](_0xfe3330);_0xc1f7eb&&(_0xc1f7eb[_0x3728('0x2a')]||_0x205af7['editing'][_0x3728('0x1f')][_0x3728('0xd')](_0x3728('0x50'),()=>{const _0x166a1e=_0x205af7[_0x3728('0x30')][_0x3728('0x2c')](_0x3dab),_0x68510b=_0x17a94d[_0x3728('0x55')][_0x3728('0x2c')](_0xc1f7eb)[_0x3728('0x1f')];_0x166a1e['getByInnerView'](_0x68510b)[_0x3728('0x3f')]();},{'priority':_0x3728('0x52')}),_0xc1f7eb[_0x3728('0x2a')]=_0x9aa514||!!_0x53e19d),!_0x53e19d&&_0x359e01[_0x3728('0x4d')]&&(_0x53a1a6[_0x3728('0x41')](_0xfe3330),_0xc1f7eb&&!_0xc1f7eb[_0x3728('0x1a')]&&!_0x9aa514&&this[_0x3728('0x1b')][_0x3728('0x5d')](_0xfe3330)&&(this[_0x3728('0x1b')][_0x3728('0x41')](_0xfe3330),_0xc1f7eb['resolve']()));}});}[_0x3728('0x3a')](_0x1e7858){const _0x39d8e5=this[_0x3728('0x1e')],_0x1911d9=this[_0x3728('0x20')](_0x1e7858);return _0x47761f(_0x39d8e5[_0x3728('0x3e')],_0x1911d9);}[_0x3728('0x4')](_0x708b18){const _0x17c063=this[_0x3728('0x20')](_0x708b18);let _0x320569='',_0x3a61d0=!0x1;for(const _0x10de6f of _0x17c063){const _0x1aabde=_0x10de6f[_0x3728('0x21')]();for(const _0x37feff of Array['from'](_0x1aabde['getItems']()))_0x37feff['is'](_0x3728('0x3'))?(_0x320569&&_0x3a61d0&&(_0x320569+='\x20',_0x3a61d0=!0x1),_0x320569+=_0x37feff[_0x3728('0x23')]):_0x3a61d0=!0x0;_0x3a61d0=!0x0;}return _0x320569['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x58dbda,_0x24bc5d){const _0x1ad144=this['editor'],_0x314045=_0x1ad144[_0x3728('0x30')][_0x3728('0x2c')](_0x1c7b93);let _0x474c1d=_0x314045[_0x3728('0x1d')](_0x24bc5d);if(this['_attachedThreads'][_0x3728('0x5d')](_0x24bc5d)){const _0x19fcfa=this['_attachedThreads'][_0x3728('0x2c')](_0x24bc5d);return _0x19fcfa[_0x3728('0x12')](_0x58dbda)||_0x19fcfa['push'](_0x58dbda),_0x474c1d;}this[_0x3728('0x1b')][_0x3728('0x57')](_0x24bc5d,[_0x58dbda]);const _0x4b7980=_0x1ad144[_0x3728('0x32')][_0x3728('0x2c')](_0x3728('0x34')),_0x1732db=_0x1ad144[_0x3728('0x30')][_0x3728('0x2c')](_0x3ba335);if(_0x474c1d&&_0x474c1d['isResolved'])return _0x474c1d['reopen'](),_0x474c1d;return!this[_0x3728('0x20')](_0x24bc5d)[0x0][_0x3728('0x53')]?_0x1ad144[_0x3728('0x3e')]['view'][_0x3728('0xd')](_0x3728('0x50'),()=>{const _0xfc8134=_0x1ad144[_0x3728('0x30')][_0x3728('0x2c')](_0x3dab);_0x474c1d=_0x314045['openNewCommentThread']({'channelId':_0x4b7980,'threadId':_0x24bc5d,'target':()=>this[_0x3728('0x3a')](_0x24bc5d),'context':{'type':_0x3728('0x5c'),'value':this['_getTextContext'](_0x24bc5d)}});const _0x5b2d01=_0x314045['_threadToController'][_0x3728('0x2c')](_0x474c1d)[_0x3728('0x1f')],_0x5ebd88=_0xfc8134[_0x3728('0x5a')](_0x5b2d01);_0x5ebd88&&_0x1732db['registerAnnotation'](_0x5ebd88);},{'priority':_0x3728('0x52')}):_0x314045[_0x3728('0xa')]({'channelId':_0x4b7980,'threadId':_0x24bc5d})['then'](_0x11468a=>{if('destroyed'!==_0x1ad144[_0x3728('0x4f')]){if(_0x474c1d=_0x11468a,_0x474c1d){const _0x109715=_0x474c1d['attachTo'](()=>this[_0x3728('0x3a')](_0x24bc5d));_0x1732db[_0x3728('0x5f')](_0x109715),_0x474c1d[_0x3728('0x1a')]&&this[_0x3728('0x3c')](_0x24bc5d);}else{const _0x3d408a=this[_0x3728('0x20')](_0x24bc5d);_0x1ad144[_0x3728('0x4b')][_0x3728('0x2b')](_0x2d5a15=>{for(const _0x3d45e6 of _0x3d408a)_0x2d5a15[_0x3728('0x65')](_0x3d45e6);});}}}),_0x474c1d;}[_0x3728('0x69')](_0x1f6f6f,_0xb4d9ee){const _0x1482e2=this['_attachMarkerToThread'](_0x1f6f6f,_0xb4d9ee);_0x1482e2&&!_0x1482e2['context']&&_0x1482e2['setContext']({'type':_0x3728('0x5c'),'value':this[_0x3728('0x4')](_0xb4d9ee)});}}function tt(_0x3e83b6,_0x2c65a8){return _0x2c65a8?_0x3e83b6+':'+_0x2c65a8:_0x3e83b6;}function ot(_0x28b9be){const _0x329aa0=_0x28b9be[_0x3728('0x61')](':');return{'group':_0x329aa0[0x0],'id':_0x329aa0[0x1],'part':_0x329aa0[0x2]};}function et(_0x4ec5c5,_0x1f7b35){const _0x42c39c=_0x1f7b35[_0x3728('0x48')],_0xcd91c6=_0x1f7b35[_0x3728('0x6c')](_0x4ec5c5['start']);for(const _0x150bcc of _0x4ec5c5[_0x3728('0x0')]()){const {type:_0x33bf1c,item:_0xb27784,nextPosition:_0x387a86}=_0x150bcc;if('text'===_0x33bf1c||_0x42c39c[_0x3728('0x4a')](_0xb27784)){const _0x5753ba=_0x1f7b35[_0x3728('0x38')](_0xb27784);_0xcd91c6[_0x3728('0x16')]&&(_0xcd91c6[_0x3728('0x58')]=_0x5753ba),_0xcd91c6[_0x3728('0x10')]=_0x387a86;}}return _0xcd91c6['isCollapsed']?null:_0xcd91c6;}
@@ -133,12 +133,15 @@ export default class CommentsRepository extends ContextPlugin {
133
133
  * {@link module:comments/comments/commentsrepository~CommentThread#removeAttribute}.
134
134
  * @param data.isResolvable Indicates whether the comment thread can become resolved.
135
135
  * Set this flag to `false` to disable the possibility of resolving given comment thread.
136
+ * @param data.isSubmitted Indicates whether the comment thread has been submitted.
137
+ * Comment thread is submitted after adding the first comment, however, in some cases,
138
+ * it could be necessary to manage it in a custom way (e.g. track changes).
136
139
  * @param data.isFromAdapter A flag describing whether the added data
137
140
  * comes from an adapter (`true`) or is a new data (`false`). If set to `true`, the
138
141
  * comment data will be added only in the editor and will not be sent to the adapter.
139
142
  * @returns The added comment thread.
140
143
  */
141
- addCommentThread({ channelId, threadId, comments, resolvedAt, resolvedBy, target, context, attributes, isResolvable, isSubmitted, isFromAdapter }?: AddCommentThreadEventData): CommentThread | undefined;
144
+ addCommentThread({ channelId, threadId, comments, resolvedAt, resolvedBy, target, context, attributes, isResolvable, isSubmitted, deletedAt, isFromAdapter }?: AddCommentThreadEventData): CommentThread | undefined;
142
145
  /**
143
146
  * Creates a new, empty comment thread.
144
147
  *
@@ -180,7 +183,7 @@ export default class CommentsRepository extends ContextPlugin {
180
183
  * comment data will be added only in the editor and will not be sent to the adapter.
181
184
  * @returns The updated comment thread.
182
185
  */
183
- updateCommentThread({ channelId, threadId, context, attributes, isFromAdapter }?: UpdateCommentThreadEventData): CommentThread;
186
+ updateCommentThread({ channelId, threadId, context, attributes, isFromAdapter }: UpdateCommentThreadEventData): CommentThread;
184
187
  /**
185
188
  * Returns comment thread of given id.
186
189
  */
@@ -230,6 +233,24 @@ export default class CommentsRepository extends ContextPlugin {
230
233
  * @param commentThreadView Comment thread view.
231
234
  */
232
235
  createCommentThreadController(commentThreadModel: CommentThread, commentThreadView: BaseCommentThreadView): CommentThreadController;
236
+ /**
237
+ * Gets permissions set for repository (or default if permissions was not set).
238
+ */
239
+ getPermissions(channelId?: string | symbol): CommentPermissionsConfig;
240
+ }
241
+ interface CommentPermissionsConfig {
242
+ /**
243
+ * Allows for removing other users' threads.
244
+ */
245
+ admin: boolean;
246
+ /**
247
+ * Allows for editing and removing any comments created by any user.
248
+ */
249
+ modifyAll: boolean;
250
+ /**
251
+ * Allows for editing and removing comments created by this user.
252
+ */
253
+ write: boolean;
233
254
  }
234
255
  declare const CommentThread_base: {
235
256
  new (): import("ckeditor5/src/utils").Observable;
@@ -622,7 +643,7 @@ export type CommentThreadContext = null | {
622
643
  * @param threadId The ID of the comment thread.
623
644
  * @param isFromAdapter A flag describing whether the operation was done on a remote client (`true`) or a local one (`false`).
624
645
  */
625
- interface BaseCommentThread {
646
+ export interface BaseCommentThread {
626
647
  channelId: string | symbol;
627
648
  threadId: string;
628
649
  isFromAdapter?: boolean;
@@ -630,14 +651,14 @@ interface BaseCommentThread {
630
651
  /**
631
652
  * @param commentId The comment ID.
632
653
  */
633
- interface BaseComment extends BaseCommentThread {
654
+ export interface BaseComment extends BaseCommentThread {
634
655
  commentId: string;
635
656
  }
636
657
  /**
637
658
  * @param content The comment content.
638
659
  * @param attributes Comment custom attributes.
639
660
  */
640
- interface BaseCommentData {
661
+ export interface BaseCommentData {
641
662
  content: string;
642
663
  attributes: Record<string, any>;
643
664
  }
@@ -669,7 +690,7 @@ export type AddCommentThreadEvent = {
669
690
  */
670
691
  export type CommentThreadData = BaseCommentThread & Partial<{
671
692
  context: CommentThreadContext;
672
- attributes: Record<string, any> | null;
693
+ attributes: Record<string, any>;
673
694
  resolvedAt: Date | null;
674
695
  resolvedBy: string | null;
675
696
  }>;
@@ -682,6 +703,7 @@ export type AddCommentThreadEventData = CommentThreadData & {
682
703
  target?: AnnotationTarget;
683
704
  isResolvable?: boolean;
684
705
  isSubmitted?: boolean;
706
+ deletedAt?: Date | null;
685
707
  };
686
708
  /**
687
709
  * Fired whenever a new comment thread is submitted and occurs after creating the first comment.
@@ -868,6 +890,7 @@ export type CommentThreadDataJSON = {
868
890
  resolvedAt: Date | null;
869
891
  resolvedBy: string | null;
870
892
  comments: Array<CommentDataJSON>;
893
+ attributes: Record<string, unknown>;
871
894
  };
872
895
  /**
873
896
  * Comments adapter.
@@ -881,6 +904,20 @@ export type CommentThreadDataJSON = {
881
904
  export interface CommentsAdapter {
882
905
  /**
883
906
  * Called whenever a new comment thread is created.
907
+ *
908
+ * The object which is passed as a parameter can contain the following properties:
909
+ * * channelId: string | symbol;
910
+ * * threadId: string;
911
+ * * context?: {@link module:comments/comments/commentsrepository~CommentThreadContext CommentThreadContext};
912
+ * * comments?: Array<{@link module:comments/comments/commentsrepository~CommentDataJSON CommentDataJSON}>;
913
+ * * resolvedAt?: Date | null;
914
+ * * resolvedBy?: string | null;
915
+ * * attributes?: Record<string, any> | null;
916
+ *
917
+ * It should return a promise that resolves with the new comment thread data.
918
+ * The resolved data object should contain the following properties:
919
+ * * threadId: string;
920
+ * * comments: Array<\{ commentId: string; createdAt: Date; \}>;
884
921
  */
885
922
  addCommentThread: (data: Omit<CommentThreadData, 'isFromAdapter'> & {
886
923
  comments: Array<CommentDataJSON>;
@@ -895,7 +932,12 @@ export interface CommentsAdapter {
895
932
  * Called when the editor needs the data for a comment thread.
896
933
  *
897
934
  * It should return a promise that resolves with the comment thread data.
898
- * The resolved data object should also have the `isFromAdapter` property set to `true`.
935
+ * The resolved data object should contain the following properties:
936
+ * * threadId: string;
937
+ * * comments: Array<\{ commentId?: string; authorId: string; createdAt: Date; content: string; attributes: Record<string, any>; \}>;
938
+ * * resolvedAt?: Date | null;
939
+ * * resolvedBy?: string | null;
940
+ * * attributes: Record<string, unknown>;
899
941
  *
900
942
  * @param data.channelId The ID of the document or context to which the comment is added.
901
943
  * @param data.threadId The ID of the comment thread that the comment is added to.
@@ -910,13 +952,30 @@ export interface CommentsAdapter {
910
952
  /**
911
953
  * Called each time the user changes the existing comment thread.
912
954
  *
955
+ * Keep in mind that for security reasons, the `authorId`, `createdAt`, `resolvedBy` and `resolvedAt` properties
956
+ * are not passed in the `updateCommentThread()` call and you should not set them as a result of this call.
957
+ *
913
958
  * It updates the comment data in the database and returns a promise
914
959
  * that will be resolved when the update is completed.
960
+ *
961
+ * The object which is passed as a parameter can contain the following properties:
962
+ * * channelId: string | symbol;
963
+ * * threadId: string;
964
+ * * context?: {@link module:comments/comments/commentsrepository~CommentThreadContext};
965
+ * * attributes?: Record<string, any> | null;
915
966
  */
916
967
  updateCommentThread: (data: Omit<UpdateCommentThreadEventData, 'isFromAdapter'>) => Promise<void>;
917
968
  /**
918
969
  * Called each time the user resolves a comment thread.
919
970
  *
971
+ * Should set `resolvedAt` and `resolvedBy` properties in your database and should resolve with an object
972
+ * containing these two properties and returns a promise that will be resolved when the operation is completed.
973
+ *
974
+ * The resolved data object should contain the following properties:
975
+ * * threadId: string;
976
+ * * resolvedAt: Date;
977
+ * * resolvedBy: string;
978
+ *
920
979
  * @param data.channelId The ID of the document or context that the comment thread is removed from.
921
980
  * @param data.threadId The ID of the thread to remove.
922
981
  */
@@ -928,6 +987,9 @@ export interface CommentsAdapter {
928
987
  /**
929
988
  * Called when the user reopens a resolved comment thread.
930
989
  *
990
+ * Should set `resolvedAt` and `resolvedBy` properties to `null` in your database and returns a promise
991
+ * that will be resolved when the operation is completed.
992
+ *
931
993
  * @param data.channelId The ID of the document or context that the comment thread is removed from.
932
994
  * @param data.threadId The ID of the thread to remove.
933
995
  */
@@ -935,11 +997,6 @@ export interface CommentsAdapter {
935
997
  /**
936
998
  * Called each time the user removes a comment thread.
937
999
  *
938
- * Keep in mind that comment thread removal happens only
939
- * for comment threads created outside of the editor.
940
- * You do not need to implement this method if you use
941
- * the comments feature inside the editor only.
942
- *
943
1000
  * It should return a promise that resolves when the thread is removed.
944
1001
  *
945
1002
  * @param data.channelId The ID of the document or context that the comment thread is removed from.
@@ -968,6 +1025,17 @@ export interface CommentsAdapter {
968
1025
  * and to save it as a string in your database and then to parse the
969
1026
  * value from JSON when loading comments.
970
1027
  *
1028
+ * The object which is passed as a parameter can contain the following properties:
1029
+ * * channelId: string | symbol;
1030
+ * * threadId: string;
1031
+ * * commentId: string;
1032
+ * * content: string;
1033
+ * * attributes: Record<string, any>;
1034
+ *
1035
+ * The resolved data object should contain the following properties:
1036
+ * * commentId: string;
1037
+ * * createdAt: Date;
1038
+ *
971
1039
  * @param data.channelId The ID of the document or context to which the comment is added.
972
1040
  * @param data.threadId The ID of the comment thread that the comment is added to.
973
1041
  * @param data.commentId The comment ID.
@@ -987,6 +1055,13 @@ export interface CommentsAdapter {
987
1055
  * Keep in mind that the `data` parameter only contains the
988
1056
  * properties of a comment that have changed.
989
1057
  *
1058
+ * The object which is passed as a parameter can contain the following properties:
1059
+ * * channelId: string | symbol;
1060
+ * * threadId: string;
1061
+ * * commentId: string;
1062
+ * * content?: string;
1063
+ * * attributes?: Record<string, any>;
1064
+ *
990
1065
  * @param data.channelId The ID of the document or context where the comment is updated.
991
1066
  * @param data.threadId The ID of the comment thread where the comment is updated.
992
1067
  * @param data.commentId The ID of the comment to update.