@ckeditor/ckeditor5-comments 38.2.0-alpha.0 → 38.2.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/build/comments.js +1 -1
  2. package/package.json +3 -3
  3. package/src/annotations/annotation.d.ts +6 -6
  4. package/src/annotations/annotation.js +1 -1
  5. package/src/annotations/annotationcollection.d.ts +3 -3
  6. package/src/annotations/annotationcollection.js +1 -1
  7. package/src/annotations/annotations.d.ts +6 -6
  8. package/src/annotations/annotations.js +1 -1
  9. package/src/annotations/annotationsuis.d.ts +5 -5
  10. package/src/annotations/annotationsuis.js +1 -1
  11. package/src/annotations/editorannotations.d.ts +4 -4
  12. package/src/annotations/editorannotations.js +1 -1
  13. package/src/annotations/inlineannotations.d.ts +6 -6
  14. package/src/annotations/inlineannotations.js +1 -1
  15. package/src/annotations/narrowsidebar.d.ts +6 -6
  16. package/src/annotations/narrowsidebar.js +1 -1
  17. package/src/annotations/sidebar.d.ts +5 -5
  18. package/src/annotations/sidebar.js +1 -1
  19. package/src/annotations/view/annotationcounterbuttonview.d.ts +2 -2
  20. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  21. package/src/annotations/view/annotationview.d.ts +2 -2
  22. package/src/annotations/view/annotationview.js +1 -1
  23. package/src/annotations/view/sidebaritemview.d.ts +2 -2
  24. package/src/annotations/view/sidebaritemview.js +1 -1
  25. package/src/annotations/view/sidebarview.d.ts +2 -2
  26. package/src/annotations/view/sidebarview.js +1 -1
  27. package/src/annotations/widesidebar.d.ts +5 -5
  28. package/src/annotations/widesidebar.js +1 -1
  29. package/src/augmentation.d.ts +1 -1
  30. package/src/comments/addcommentthreadcommand.d.ts +1 -1
  31. package/src/comments/addcommentthreadcommand.js +1 -1
  32. package/src/comments/commentsarchive.d.ts +4 -4
  33. package/src/comments/commentsarchive.js +1 -1
  34. package/src/comments/commentsarchiveui.d.ts +5 -5
  35. package/src/comments/commentsarchiveui.js +1 -1
  36. package/src/comments/commentsediting.d.ts +6 -6
  37. package/src/comments/commentsediting.js +1 -1
  38. package/src/comments/commentsrepository.d.ts +11 -11
  39. package/src/comments/commentsrepository.js +1 -1
  40. package/src/comments/commentsui.d.ts +5 -5
  41. package/src/comments/commentsui.js +1 -1
  42. package/src/comments/integrations/commentsrestrictededitingmode.d.ts +1 -1
  43. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  44. package/src/comments/integrations/importword.d.ts +1 -1
  45. package/src/comments/integrations/importword.js +1 -1
  46. package/src/comments/ui/commenteditor/commenteditor.d.ts +4 -4
  47. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  48. package/src/comments/ui/commenteditor/commenteditorui.d.ts +3 -3
  49. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  50. package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +3 -3
  51. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  52. package/src/comments/ui/commentthreadcontroller.d.ts +4 -4
  53. package/src/comments/ui/commentthreadcontroller.js +1 -1
  54. package/src/comments/ui/view/basecommentthreadview.d.ts +8 -8
  55. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  56. package/src/comments/ui/view/basecommentview.d.ts +4 -4
  57. package/src/comments/ui/view/basecommentview.js +1 -1
  58. package/src/comments/ui/view/collapsedcommentsview.d.ts +2 -2
  59. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  60. package/src/comments/ui/view/commentcontentview.d.ts +2 -2
  61. package/src/comments/ui/view/commentcontentview.js +1 -1
  62. package/src/comments/ui/view/commentinputview.d.ts +4 -4
  63. package/src/comments/ui/view/commentinputview.js +1 -1
  64. package/src/comments/ui/view/commentsarchiveview.d.ts +3 -3
  65. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  66. package/src/comments/ui/view/commentslistview.d.ts +5 -5
  67. package/src/comments/ui/view/commentslistview.js +1 -1
  68. package/src/comments/ui/view/commentthreadheaderview.d.ts +3 -3
  69. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  70. package/src/comments/ui/view/commentthreadinputview.d.ts +5 -5
  71. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  72. package/src/comments/ui/view/commentthreadview.d.ts +7 -7
  73. package/src/comments/ui/view/commentthreadview.js +1 -1
  74. package/src/comments/ui/view/commentview.d.ts +8 -8
  75. package/src/comments/ui/view/commentview.js +1 -1
  76. package/src/comments.d.ts +10 -10
  77. package/src/comments.js +1 -1
  78. package/src/commentsonly.d.ts +2 -2
  79. package/src/commentsonly.js +1 -1
  80. package/src/config.d.ts +7 -7
  81. package/src/index.d.ts +21 -21
  82. package/src/index.js +1 -1
  83. package/src/utils/common-translations.d.ts +1 -1
  84. package/src/utils/common-translations.js +1 -1
  85. package/src/utils/createmutationobserver.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x348f=['from','maxCommentCharsWhenCollapsed','_handleNewCommentModel','viewUid','maxThreadTotalWeight','delete','add','commentUpdated','render','removeComment','remove','locale','get','resolvedBy','stopListening','refreshVisibleViews','expand','listenTo','_handleRemoveCommentModel','some','isActive','length','_collapsedCommentsView','resolveCommentThread','_model','change:isEditMode','_rearrangeCollapse','CommentView','visibleViews','resolved','commentViews','resolvedCommentView','change:isResolved','_calculatePosition','hasDirtyComment','_config','weight','_rearrangeExpand','focus','isEditMode','editorConfig','set','count','ck-thread__comments','Marked\x20as\x20resolved','_handleInfoComment','_updateHasDirtyComment','formatDateTime','comments','resolvedAt','destroy','delegate','equal'];(function(_0x51c116,_0x348fd7){const _0x2ec9e6=function(_0x213bcd){while(--_0x213bcd){_0x51c116['push'](_0x51c116['shift']());}};_0x2ec9e6(++_0x348fd7);}(_0x348f,0x1bb));const _0x2ec9=function(_0x51c116,_0x348fd7){_0x51c116=_0x51c116-0x0;let _0x2ec9e6=_0x348f[_0x51c116];return _0x2ec9e6;};import{View as _0x950343}from'ckeditor5/src/ui';import{diff as _0x2f7962,Collection as _0x51ac3d}from'ckeditor5/src/utils';import{getTranslation as _0x290acc}from'../../../utils/common-translations';import _0x172298 from'./collapsedcommentsview';export default class Ct extends _0x950343{constructor(_0xb6eff4,_0x46c7de,_0x10682e){super(_0xb6eff4),this[_0x2ec9('0x16')](_0x2ec9('0xf'),!0x1),this[_0x2ec9('0x16')]('length',_0x46c7de[_0x2ec9('0x1d')][_0x2ec9('0x2')]),this[_0x2ec9('0x16')](_0x2ec9('0x1'),!0x1),this[_0x2ec9('0x5')]=_0x46c7de,this[_0x2ec9('0x10')]=_0x10682e,this[_0x2ec9('0xb')]=this['createCollection'](),this[_0x2ec9('0x9')]=this['createCollection'](),this[_0x2ec9('0xc')]=null,this[_0x2ec9('0x3')]=new _0x172298(_0xb6eff4),this[_0x2ec9('0x3')]['bind']('count')['to'](this,_0x2ec9('0x2'),_0xb157f3=>_0xb157f3-this[_0x2ec9('0x10')]['maxCommentsWhenCollapsed']);for(const _0x2c8ac9 of _0x46c7de[_0x2ec9('0x1d')])this[_0x2ec9('0x24')](_0x2c8ac9);this[_0x2ec9('0x1a')](),this[_0x2ec9('0x33')](_0x46c7de[_0x2ec9('0x1d')],_0x2ec9('0x28'),(_0x108fba,_0x17e3d5)=>{const _0xec7ed5=this[_0x2ec9('0xe')](_0x17e3d5);this[_0x2ec9('0x2')]++,this[_0x2ec9('0x24')](_0x17e3d5,_0xec7ed5),this['refreshVisibleViews']();}),this['listenTo'](_0x46c7de[_0x2ec9('0x1d')],_0x2ec9('0x2c'),(_0x321f56,_0x44f566)=>{this[_0x2ec9('0x2')]--,this[_0x2ec9('0x34')](_0x44f566),this[_0x2ec9('0x31')]();}),this[_0x2ec9('0x33')](_0x46c7de,_0x2ec9('0x29'),()=>this[_0x2ec9('0x31')]()),this[_0x2ec9('0x33')](_0x46c7de,_0x2ec9('0xd'),()=>this['_handleInfoComment']()),this['on']('change:isActive',()=>this['refreshVisibleViews']()),this['on']('change:hasDirtyComment',()=>this[_0x2ec9('0x31')]()),this['setTemplate']({'tag':'ul','attributes':{'class':[_0x2ec9('0x18')]},'children':this['visibleViews']});}get['_shouldCollapse'](){return this[_0x2ec9('0x5')][_0x2ec9('0x11')]>this[_0x2ec9('0x10')][_0x2ec9('0x26')]&&!this[_0x2ec9('0x1')]&&!this['hasDirtyComment'];}[_0x2ec9('0x2a')](){super[_0x2ec9('0x2a')](),this[_0x2ec9('0x31')]();}[_0x2ec9('0x13')](){this['element'][_0x2ec9('0x13')]();}[_0x2ec9('0x1f')](){this[_0x2ec9('0x3')][_0x2ec9('0x1f')]();for(const _0x47e1c4 of this[_0x2ec9('0xb')])_0x47e1c4[_0x2ec9('0x1f')]();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this[_0x2ec9('0x7')]():this[_0x2ec9('0x12')]();}[_0x2ec9('0x24')](_0x4d828e,_0x457533){const _0x187957=new this['_config'][(_0x2ec9('0x8'))](this[_0x2ec9('0x2d')],_0x4d828e,{'maxCommentCharsWhenCollapsed':this[_0x2ec9('0x10')][_0x2ec9('0x23')],'formatDateTime':this['_config'][_0x2ec9('0x1c')],'editorConfig':this[_0x2ec9('0x10')][_0x2ec9('0x15')]});_0x187957[_0x2ec9('0x25')]=_0x4d828e['id'],_0x187957[_0x2ec9('0x20')](_0x2ec9('0x2b'))['to'](this),_0x187957[_0x2ec9('0x20')]('updateComment')['to'](this),_0x187957[_0x2ec9('0x20')](_0x2ec9('0x4'))['to'](this),this['listenTo'](_0x187957,_0x2ec9('0x6'),()=>this[_0x2ec9('0x1b')]()),this['commentViews'][_0x2ec9('0x28')](_0x187957,_0x457533);}[_0x2ec9('0xe')](_0x321685){const _0x55d58c=this['_model']['_findOptimalIndex'](_0x321685);return this[_0x2ec9('0xc')]?this[_0x2ec9('0xc')]['authoredAt']>_0x321685['authoredAt']?_0x55d58c-0x1:_0x55d58c:_0x55d58c-0x1;}[_0x2ec9('0x1a')](){if(this[_0x2ec9('0x5')][_0x2ec9('0x2f')]&&this[_0x2ec9('0x5')][_0x2ec9('0x1e')]){const _0xef2efd={'id':_0x2ec9('0xa'),'author':this['_model'][_0x2ec9('0x2f')],'authoredAt':this[_0x2ec9('0x5')][_0x2ec9('0x1e')],'content':_0x290acc(this[_0x2ec9('0x2d')],_0x2ec9('0x19')),'attributes':{}};this[_0x2ec9('0xc')]=new this[(_0x2ec9('0x10'))][(_0x2ec9('0x8'))](this[_0x2ec9('0x2d')],_0xef2efd,{'maxCommentCharsWhenCollapsed':this['_config'][_0x2ec9('0x23')],'formatDateTime':this[_0x2ec9('0x10')][_0x2ec9('0x1c')],'editorConfig':this[_0x2ec9('0x10')][_0x2ec9('0x15')],'isSystemComment':!0x0}),this[_0x2ec9('0xb')][_0x2ec9('0x28')](this[_0x2ec9('0xc')],this['_model']['_findOptimalIndex'](_0xef2efd));}else this[_0x2ec9('0xc')]&&(this[_0x2ec9('0xb')][_0x2ec9('0x2c')](this[_0x2ec9('0xc')]),this[_0x2ec9('0xc')][_0x2ec9('0x1f')](),this['resolvedCommentView']=null);this[_0x2ec9('0x31')]();}[_0x2ec9('0x34')](_0x58d31c){const _0x573d07=this[_0x2ec9('0xb')][_0x2ec9('0x2c')](_0x58d31c['id']);this[_0x2ec9('0x30')](_0x573d07),_0x573d07[_0x2ec9('0x14')]&&this[_0x2ec9('0x1b')](),_0x573d07[_0x2ec9('0x1f')]();}['_updateHasDirtyComment'](){this[_0x2ec9('0xf')]=Array[_0x2ec9('0x22')](this[_0x2ec9('0xb')])[_0x2ec9('0x0')](_0x50eae5=>_0x50eae5[_0x2ec9('0x14')]);}[_0x2ec9('0x7')](){const _0x55ad26=function(_0x5292f2){const _0x273309=new _0x51ac3d();for(const _0x163bb1 of _0x5292f2)_0x273309[_0x2ec9('0x28')](_0x163bb1);return _0x273309;}(this['commentViews']),_0x2ed6df=this[_0x2ec9('0x3')][_0x2ec9('0x17')];for(let _0x3d98bc=0x1;_0x3d98bc<=_0x2ed6df;_0x3d98bc++)_0x55ad26[_0x2ec9('0x2c')](0x1);for(const _0x43fab5 of _0x55ad26)_0x43fab5['collapse']();_0x2ed6df>0x0&&_0x55ad26['add'](this[_0x2ec9('0x3')],0x1),ss(_0x2f7962(Array[_0x2ec9('0x22')](this[_0x2ec9('0x9')]),Array['from'](_0x55ad26)),this[_0x2ec9('0x9')],_0x55ad26);}['_rearrangeExpand'](){ss(_0x2f7962(Array[_0x2ec9('0x22')](this[_0x2ec9('0x9')]),Array[_0x2ec9('0x22')](this[_0x2ec9('0xb')])),this[_0x2ec9('0x9')],this[_0x2ec9('0xb')]);for(const _0xdef978 of this['visibleViews'])_0xdef978[_0x2ec9('0x32')]();}}function ss(_0x5ba05d,_0x4f30b5,_0x13f273){let _0x49c3b3=0x0;for(const _0x27bb71 of _0x5ba05d)switch(_0x27bb71){case'insert':_0x4f30b5[_0x2ec9('0x28')](_0x13f273[_0x2ec9('0x2e')](_0x49c3b3),_0x49c3b3),_0x49c3b3++;break;case _0x2ec9('0x27'):_0x4f30b5[_0x2ec9('0x2c')](_0x49c3b3);break;case _0x2ec9('0x21'):_0x49c3b3++;}}
23
+ const _0x1050=['from','weight','locale','expand','resolveCommentThread','set','delete','isEditMode','commentUpdated','isActive','commentViews','element','resolvedAt','maxThreadTotalWeight','editorConfig','insert','add','updateComment','render','_collapsedCommentsView','setTemplate','CommentView','remove','comments','_model','formatDateTime','_findOptimalIndex','_calculatePosition','maxCommentCharsWhenCollapsed','change:isEditMode','refreshVisibleViews','listenTo','_updateHasDirtyComment','bind','ck-thread__comments','resolvedCommentView','editorDestroyed','resolvedBy','visibleViews','length','_handleRemoveCommentModel','_handleNewCommentModel','destroy','_rearrangeCollapse','change:isResolved','delegate','hasDirtyComment','authoredAt','count','_config','resolved','createCollection','_handleInfoComment','focus','removeComment','maxCommentsWhenCollapsed','_rearrangeExpand','collapse'];(function(_0x537031,_0x105044){const _0x1f54ab=function(_0xbed12a){while(--_0xbed12a){_0x537031['push'](_0x537031['shift']());}};_0x1f54ab(++_0x105044);}(_0x1050,0x1c2));const _0x1f54=function(_0x537031,_0x105044){_0x537031=_0x537031-0x0;let _0x1f54ab=_0x1050[_0x537031];return _0x1f54ab;};import{View as _0x44b6bc}from'ckeditor5/src/ui.js';import{diff as _0xd6848a,Collection as _0x14eb67}from'ckeditor5/src/utils.js';import{getTranslation as _0x3b16e7}from'../../../utils/common-translations.js';import _0x2a3d54 from'./collapsedcommentsview.js';export default class vt extends _0x44b6bc{constructor(_0x11de42,_0x5765c4,_0x1a8e8e){super(_0x11de42),this['set'](_0x1f54('0x2'),!0x1),this[_0x1f54('0x13')](_0x1f54('0x35'),_0x5765c4[_0x1f54('0x25')][_0x1f54('0x35')]),this[_0x1f54('0x13')]('isActive',!0x1),this['_model']=_0x5765c4,this[_0x1f54('0x5')]=_0x1a8e8e,this[_0x1f54('0x18')]=this['createCollection'](),this[_0x1f54('0x34')]=this[_0x1f54('0x7')](),this[_0x1f54('0x31')]=null,this[_0x1f54('0x21')]=new _0x2a3d54(_0x11de42),this[_0x1f54('0x21')][_0x1f54('0x2f')](_0x1f54('0x4'))['to'](this,_0x1f54('0x35'),_0x283f0c=>_0x283f0c-this[_0x1f54('0x5')][_0x1f54('0xb')]);for(const _0x2eaac2 of _0x5765c4[_0x1f54('0x25')])this[_0x1f54('0x37')](_0x2eaac2);this[_0x1f54('0x8')](),this[_0x1f54('0x2d')](_0x5765c4[_0x1f54('0x25')],_0x1f54('0x1e'),(_0xc442cd,_0x5d076a)=>{const _0x235f39=this[_0x1f54('0x29')](_0x5d076a);this['length']++,this['_handleNewCommentModel'](_0x5d076a,_0x235f39),this[_0x1f54('0x2c')]();}),this[_0x1f54('0x2d')](_0x5765c4[_0x1f54('0x25')],_0x1f54('0x24'),(_0x4949ad,_0x1357b3)=>{this[_0x1f54('0x35')]--,this[_0x1f54('0x36')](_0x1357b3),this[_0x1f54('0x2c')]();}),this['listenTo'](_0x5765c4,_0x1f54('0x16'),()=>this['refreshVisibleViews']()),this['listenTo'](_0x5765c4,_0x1f54('0x0'),()=>this[_0x1f54('0x8')]()),this['on']('change:isActive',()=>this[_0x1f54('0x2c')]()),this['on']('change:hasDirtyComment',()=>this['refreshVisibleViews']()),this[_0x1f54('0x22')]({'tag':'ul','attributes':{'class':[_0x1f54('0x30')]},'children':this[_0x1f54('0x34')]});}get['_shouldCollapse'](){return this[_0x1f54('0x26')][_0x1f54('0xf')]>this[_0x1f54('0x5')][_0x1f54('0x1b')]&&!this[_0x1f54('0x17')]&&!this[_0x1f54('0x2')];}[_0x1f54('0x20')](){super[_0x1f54('0x20')](),this[_0x1f54('0x2c')]();}['focus'](){this[_0x1f54('0x19')][_0x1f54('0x9')]();}[_0x1f54('0x38')](){this[_0x1f54('0x21')][_0x1f54('0x38')]();for(const _0x2e7f72 of this[_0x1f54('0x18')])_0x2e7f72[_0x1f54('0x38')]();super[_0x1f54('0x38')]();}[_0x1f54('0x2c')](){this['_shouldCollapse']?this[_0x1f54('0x39')]():this[_0x1f54('0xc')]();}['_handleNewCommentModel'](_0x4139fb,_0x3f3e14){const _0x442dea=new this['_config'][(_0x1f54('0x23'))](this['locale'],_0x4139fb,{'maxCommentCharsWhenCollapsed':this[_0x1f54('0x5')][_0x1f54('0x2a')],'formatDateTime':this[_0x1f54('0x5')][_0x1f54('0x27')],'editorConfig':this[_0x1f54('0x5')][_0x1f54('0x1c')]});_0x442dea['viewUid']=_0x4139fb['id'],_0x442dea[_0x1f54('0x1')](_0x1f54('0xa'))['to'](this),_0x442dea['delegate'](_0x1f54('0x1f'))['to'](this),_0x442dea[_0x1f54('0x1')](_0x1f54('0x12'))['to'](this),_0x442dea[_0x1f54('0x1')]('editorReady')['to'](this),_0x442dea[_0x1f54('0x1')](_0x1f54('0x32'))['to'](this),this[_0x1f54('0x2d')](_0x442dea,_0x1f54('0x2b'),()=>this[_0x1f54('0x2e')]()),this[_0x1f54('0x18')][_0x1f54('0x1e')](_0x442dea,_0x3f3e14);}[_0x1f54('0x29')](_0x5dbd37){const _0x5e30da=this[_0x1f54('0x26')][_0x1f54('0x28')](_0x5dbd37);return this[_0x1f54('0x31')]?this[_0x1f54('0x31')]['authoredAt']>_0x5dbd37[_0x1f54('0x3')]?_0x5e30da-0x1:_0x5e30da:_0x5e30da-0x1;}[_0x1f54('0x8')](){if(this[_0x1f54('0x26')][_0x1f54('0x33')]&&this[_0x1f54('0x26')][_0x1f54('0x1a')]){const _0x31de3e={'id':_0x1f54('0x6'),'author':this[_0x1f54('0x26')][_0x1f54('0x33')],'authoredAt':this[_0x1f54('0x26')][_0x1f54('0x1a')],'content':_0x3b16e7(this[_0x1f54('0x10')],'Marked\x20as\x20resolved'),'attributes':{}};this[_0x1f54('0x31')]=new this['_config'][(_0x1f54('0x23'))](this[_0x1f54('0x10')],_0x31de3e,{'maxCommentCharsWhenCollapsed':this[_0x1f54('0x5')][_0x1f54('0x2a')],'formatDateTime':this[_0x1f54('0x5')]['formatDateTime'],'editorConfig':this['_config'][_0x1f54('0x1c')],'isSystemComment':!0x0}),this[_0x1f54('0x18')][_0x1f54('0x1e')](this[_0x1f54('0x31')],this[_0x1f54('0x26')]['_findOptimalIndex'](_0x31de3e));}else this[_0x1f54('0x31')]&&(this[_0x1f54('0x18')][_0x1f54('0x24')](this[_0x1f54('0x31')]),this[_0x1f54('0x31')]['destroy'](),this[_0x1f54('0x31')]=null);this[_0x1f54('0x2c')]();}[_0x1f54('0x36')](_0x4e625a){const _0xa6b6b0=this[_0x1f54('0x18')][_0x1f54('0x24')](_0x4e625a['id']);this['stopListening'](_0xa6b6b0),_0xa6b6b0[_0x1f54('0x15')]&&this[_0x1f54('0x2e')](),_0xa6b6b0[_0x1f54('0x38')]();}[_0x1f54('0x2e')](){this['hasDirtyComment']=Array[_0x1f54('0xe')](this[_0x1f54('0x18')])['some'](_0x567966=>_0x567966[_0x1f54('0x15')]);}[_0x1f54('0x39')](){const _0x4462a9=function(_0x1a9010){const _0x19b24d=new _0x14eb67();for(const _0x4d89bc of _0x1a9010)_0x19b24d[_0x1f54('0x1e')](_0x4d89bc);return _0x19b24d;}(this[_0x1f54('0x18')]),_0x47691f=this['_collapsedCommentsView'][_0x1f54('0x4')];for(let _0x3b4511=0x1;_0x3b4511<=_0x47691f;_0x3b4511++)_0x4462a9[_0x1f54('0x24')](0x1);for(const _0x560ee2 of _0x4462a9)_0x560ee2[_0x1f54('0xd')]();_0x47691f>0x0&&_0x4462a9[_0x1f54('0x1e')](this[_0x1f54('0x21')],0x1),ss(_0xd6848a(Array[_0x1f54('0xe')](this[_0x1f54('0x34')]),Array[_0x1f54('0xe')](_0x4462a9)),this['visibleViews'],_0x4462a9);}[_0x1f54('0xc')](){ss(_0xd6848a(Array[_0x1f54('0xe')](this[_0x1f54('0x34')]),Array['from'](this[_0x1f54('0x18')])),this[_0x1f54('0x34')],this[_0x1f54('0x18')]);for(const _0x46d44a of this[_0x1f54('0x34')])_0x46d44a[_0x1f54('0x11')]();}}function ss(_0x1ca2a9,_0x3d42c1,_0x599b90){let _0x56eaa8=0x0;for(const _0x4885cc of _0x1ca2a9)switch(_0x4885cc){case _0x1f54('0x1d'):_0x3d42c1[_0x1f54('0x1e')](_0x599b90['get'](_0x56eaa8),_0x56eaa8),_0x56eaa8++;break;case _0x1f54('0x14'):_0x3d42c1[_0x1f54('0x24')](_0x56eaa8);break;case'equal':_0x56eaa8++;}}
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * @module comments/comments/ui/view/commentthreadheaderview
3
3
  */
4
- import { View, ButtonView } from 'ckeditor5/src/ui';
5
- import type { Locale } from 'ckeditor5/src/utils';
6
- import type { CommentThread } from '../../commentsrepository';
4
+ import { View, ButtonView } from 'ckeditor5/src/ui.js';
5
+ import type { Locale } from 'ckeditor5/src/utils.js';
6
+ import type { CommentThread } from '../../commentsrepository.js';
7
7
  export declare const MAX_CONTENT_LENGTH = 150;
8
8
  /**
9
9
  * A view for the comment thread header.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2731=['Reopen','Comment\x20was\x20made\x20on\x20an\x20element','ck-context-wrapper','icon','setTemplate','reopenCommentThread','scrollWidth','offsetWidth','overlay','isVisible','...','mouseleave','div','listenTo','context','remove','value','execute','add','isResolvable','reopenButtonView','tooltip','lastIndexOf','element','ck-thread__header','render','bindTemplate','substring','span','bind','label','_createReopenButton','contextValue','locale','_trimContextValue','_attachContextActions','.ck-context__value','isReadOnly','ck-context','hasContext','ck-annotation__actions','querySelector','_model'];(function(_0x1345e5,_0x27319d){const _0xd5df99=function(_0x48d812){while(--_0x48d812){_0x1345e5['push'](_0x1345e5['shift']());}};_0xd5df99(++_0x27319d);}(_0x2731,0xb5));const _0xd5df=function(_0x1345e5,_0x27319d){_0x1345e5=_0x1345e5-0x0;let _0xd5df99=_0x2731[_0x1345e5];return _0xd5df99;};import{View as _0x35e8a1,ButtonView as _0x1d7068}from'ckeditor5/src/ui';import{getTranslation as _0x55cfef}from'../../../utils/common-translations';import _0x53adeb from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Tt extends _0x35e8a1{constructor(_0x3e5d4f,_0x7b4827){super(_0x3e5d4f);const _0x49d7cf=this[_0xd5df('0x11')];this[_0xd5df('0x21')]=_0x7b4827,this[_0xd5df('0xb')]=this[_0xd5df('0x16')](),this[_0xd5df('0x14')](_0xd5df('0x1e'))['to'](this[_0xd5df('0x21')],'context',_0x35b7c0=>!!_0x35b7c0),this[_0xd5df('0x14')]('contextValue')['to'](this['_model'],_0xd5df('0x5'),_0x1a6d63=>_0x1a6d63&&_0x1a6d63[_0xd5df('0x7')]?this[_0xd5df('0x19')](_0x1a6d63[_0xd5df('0x7')]):_0x55cfef(this[_0xd5df('0x18')],_0xd5df('0x23'))),this[_0xd5df('0x26')]({'tag':_0xd5df('0x3'),'attributes':{'class':[_0xd5df('0xf')]},'children':[{'tag':_0xd5df('0x3'),'attributes':{'class':[_0xd5df('0x24')]},'children':[{'tag':'div','attributes':{'class':[_0xd5df('0x1d'),_0x49d7cf['if'](_0xd5df('0x1e'),'ck-context--quotes')]},'children':[{'tag':_0xd5df('0x13'),'attributes':{'class':['ck-context__value']},'children':[{'text':_0x49d7cf['to'](_0xd5df('0x17'))}]}]}]},{'tag':_0xd5df('0x3'),'attributes':{'class':[_0xd5df('0x1f')]},'children':[this[_0xd5df('0xb')]]}]});}[_0xd5df('0x10')](){super[_0xd5df('0x10')](),this[_0xd5df('0x1a')]();}[_0xd5df('0x16')](){const _0x475c51=new _0x1d7068(this[_0xd5df('0x18')]);return _0x475c51[_0xd5df('0x15')]=_0x55cfef(this['locale'],_0xd5df('0x22')),_0x475c51[_0xd5df('0xc')]=_0x55cfef(this[_0xd5df('0x18')],'Reopen'),_0x475c51[_0xd5df('0x25')]=_0x53adeb,_0x475c51[_0xd5df('0x14')]('isEnabled')['to'](this[_0xd5df('0x21')],_0xd5df('0x1c'),_0x4e5c31=>!_0x4e5c31),_0x475c51[_0xd5df('0x14')](_0xd5df('0x0'))['to'](this['_model'],_0xd5df('0xa')),_0x475c51['on'](_0xd5df('0x8'),()=>{this['fire'](_0xd5df('0x27'),this['_model']['id']);}),_0x475c51;}['_trimContextValue'](_0x32691d){if(_0x32691d['length']<0x96)return _0x32691d;const _0x5bc842=_0x32691d[_0xd5df('0xd')]('\x20',0x93);return _0x32691d[_0xd5df('0x12')](0x0,_0x5bc842>-0x1?_0x5bc842:0x93)+_0xd5df('0x1');}[_0xd5df('0x1a')](){const _0xd4eb33=this[_0xd5df('0xe')][_0xd5df('0x20')]('.ck-context'),_0x2dfd8c=_0xd4eb33['querySelector'](_0xd5df('0x1b'));this[_0xd5df('0x4')](_0xd4eb33,'mouseenter',()=>{_0x2dfd8c[_0xd5df('0x29')]<_0x2dfd8c[_0xd5df('0x28')]&&_0xd4eb33['classList'][_0xd5df('0x9')](_0xd5df('0x2a'));}),this['listenTo'](_0xd4eb33,_0xd5df('0x2'),()=>{_0xd4eb33['classList'][_0xd5df('0x6')](_0xd5df('0x2a'));});}}
23
+ const _0x5082=['classList','icon','ck-annotation__actions','reopenCommentThread','listenTo','bind','lastIndexOf','querySelector','render','tooltip','mouseleave','substring','div','length','_trimContextValue','ck-context','reopenButtonView','ck-context-wrapper','overlay','fire','remove','context','span','locale','_createReopenButton','isReadOnly','ck-context--quotes','bindTemplate','value','.ck-context__value','...','hasContext','contextValue','_attachContextActions','.ck-context','label','_model','ck-context__value','Reopen'];(function(_0x20d351,_0x508277){const _0x16be7d=function(_0x41fbe0){while(--_0x41fbe0){_0x20d351['push'](_0x20d351['shift']());}};_0x16be7d(++_0x508277);}(_0x5082,0xed));const _0x16be=function(_0x20d351,_0x508277){_0x20d351=_0x20d351-0x0;let _0x16be7d=_0x5082[_0x20d351];return _0x16be7d;};import{View as _0x2364ef,ButtonView as _0x59fa77}from'ckeditor5/src/ui.js';import{getTranslation as _0x36b754}from'../../../utils/common-translations.js';import _0x4b2b34 from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Rt extends _0x2364ef{constructor(_0x314303,_0xd3df4d){super(_0x314303);const _0x35bdb8=this[_0x16be('0x18')];this[_0x16be('0x21')]=_0xd3df4d,this[_0x16be('0xd')]=this[_0x16be('0x15')](),this[_0x16be('0x2')](_0x16be('0x1c'))['to'](this['_model'],_0x16be('0x12'),_0x2f9b44=>!!_0x2f9b44),this[_0x16be('0x2')](_0x16be('0x1d'))['to'](this[_0x16be('0x21')],_0x16be('0x12'),_0x139c59=>_0x139c59&&_0x139c59[_0x16be('0x19')]?this[_0x16be('0xb')](_0x139c59[_0x16be('0x19')]):_0x36b754(this[_0x16be('0x14')],'Comment\x20was\x20made\x20on\x20an\x20element')),this['setTemplate']({'tag':_0x16be('0x9'),'attributes':{'class':['ck-thread__header']},'children':[{'tag':_0x16be('0x9'),'attributes':{'class':[_0x16be('0xe')]},'children':[{'tag':_0x16be('0x9'),'attributes':{'class':[_0x16be('0xc'),_0x35bdb8['if'](_0x16be('0x1c'),_0x16be('0x17'))]},'children':[{'tag':_0x16be('0x13'),'attributes':{'class':[_0x16be('0x22')]},'children':[{'text':_0x35bdb8['to']('contextValue')}]}]}]},{'tag':_0x16be('0x9'),'attributes':{'class':[_0x16be('0x26')]},'children':[this[_0x16be('0xd')]]}]});}[_0x16be('0x5')](){super[_0x16be('0x5')](),this[_0x16be('0x1e')]();}[_0x16be('0x15')](){const _0x30af88=new _0x59fa77(this[_0x16be('0x14')]);return _0x30af88[_0x16be('0x20')]=_0x36b754(this[_0x16be('0x14')],_0x16be('0x23')),_0x30af88[_0x16be('0x6')]=_0x36b754(this[_0x16be('0x14')],_0x16be('0x23')),_0x30af88[_0x16be('0x25')]=_0x4b2b34,_0x30af88['bind']('isEnabled')['to'](this[_0x16be('0x21')],_0x16be('0x16'),_0x56a1a9=>!_0x56a1a9),_0x30af88[_0x16be('0x2')]('isVisible')['to'](this[_0x16be('0x21')],'isResolvable'),_0x30af88['on']('execute',()=>{this[_0x16be('0x10')](_0x16be('0x0'),this[_0x16be('0x21')]['id']);}),_0x30af88;}['_trimContextValue'](_0x105748){if(_0x105748[_0x16be('0xa')]<0x96)return _0x105748;const _0x11a864=_0x105748[_0x16be('0x3')]('\x20',0x93);return _0x105748[_0x16be('0x8')](0x0,_0x11a864>-0x1?_0x11a864:0x93)+_0x16be('0x1b');}[_0x16be('0x1e')](){const _0x3b7d99=this['element'][_0x16be('0x4')](_0x16be('0x1f')),_0x47b09d=_0x3b7d99[_0x16be('0x4')](_0x16be('0x1a'));this['listenTo'](_0x3b7d99,'mouseenter',()=>{_0x47b09d['offsetWidth']<_0x47b09d['scrollWidth']&&_0x3b7d99[_0x16be('0x24')]['add'](_0x16be('0xf'));}),this[_0x16be('0x1')](_0x3b7d99,_0x16be('0x7'),()=>{_0x3b7d99[_0x16be('0x24')][_0x16be('0x11')](_0x16be('0xf'));});}}
@@ -1,11 +1,11 @@
1
1
  /**
2
2
  * @module comments/comments/ui/view/commentthreadinputview
3
3
  */
4
- import { View } from 'ckeditor5/src/ui';
5
- import CommentInputView from './commentinputview';
6
- import type { Locale } from 'ckeditor5/src/utils';
7
- import type { EditorConfig } from 'ckeditor5/src/core';
8
- import { UserView, type User } from 'ckeditor5-collaboration/src/collaboration-core';
4
+ import { View } from 'ckeditor5/src/ui.js';
5
+ import CommentInputView from './commentinputview.js';
6
+ import type { Locale } from 'ckeditor5/src/utils.js';
7
+ import type { EditorConfig } from 'ckeditor5/src/core.js';
8
+ import { UserView, type User } from 'ckeditor5-collaboration';
9
9
  /**
10
10
  * View that represents comment input area for a comment thread. Includes editor, user view and buttons.
11
11
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2c77=['focusTracker','set','bindTemplate','ck-comment__input-container--active','bind','editor','destroy','ck-comment__input-container','extendTemplate','then','change:showInput','value','showInput','div','ck-thread__user','commentInputView'];(function(_0x484efe,_0x2c771d){var _0x4d4632=function(_0x1134b9){while(--_0x1134b9){_0x484efe['push'](_0x484efe['shift']());}};_0x4d4632(++_0x2c771d);}(_0x2c77,0x194));var _0x4d46=function(_0x484efe,_0x2c771d){_0x484efe=_0x484efe-0x0;var _0x4d4632=_0x2c77[_0x484efe];return _0x4d4632;};import{View as _0x597d5b}from'ckeditor5/src/ui';import _0x44a0cb from'./commentinputview';import{UserView as _0x5dd418}from'ckeditor5-collaboration/src/collaboration-core';export default class At extends _0x597d5b{constructor(_0x30af0a,_0xa3fd69,_0x174963){super(_0x30af0a),this[_0x4d46('0xb')]=new _0x44a0cb(_0x30af0a,_0x174963),this['commentInputView'][_0x4d46('0x0')]('showButtons')['to'](this[_0x4d46('0xb')][_0x4d46('0xc')],'isFocused',this[_0x4d46('0xb')],_0x4d46('0x7'),(_0x538bea,_0x103dd5)=>_0x538bea||!!_0x103dd5),this[_0x4d46('0xd')](_0x4d46('0x8'),!0x1),this['on'](_0x4d46('0x6'),()=>{this['showInput']&&!this[_0x4d46('0xb')][_0x4d46('0x1')]&&this[_0x4d46('0xb')]['createEditor']();}),this['userView']=new _0x5dd418(_0x30af0a,_0xa3fd69),this['userView']['extendTemplate']({'attributes':{'class':_0x4d46('0xa')}}),this['commentInputView'][_0x4d46('0x4')]({'attributes':{'class':'ck-thread__input'}}),this['setTemplate']({'tag':_0x4d46('0x9'),'attributes':{'class':[_0x4d46('0x3'),this[_0x4d46('0xe')]['if'](_0x4d46('0x8'),_0x4d46('0xf'))]},'children':[this['userView'],this[_0x4d46('0xb')]]});}[_0x4d46('0x2')](){return this[_0x4d46('0xb')][_0x4d46('0x2')]()[_0x4d46('0x5')](()=>super[_0x4d46('0x2')]());}}
23
+ var _0x214b=['ck-comment__input-container','destroy','commentInputView','delegate','isFocused','editorReady','set','showInput','userView','ck-thread__input','then','setTemplate','bindTemplate','value','ck-thread__user','ck-comment__input-container--active','showButtons','extendTemplate','createEditor','focusTracker','bind'];(function(_0x54bd99,_0x214b9c){var _0x3d9d63=function(_0x530353){while(--_0x530353){_0x54bd99['push'](_0x54bd99['shift']());}};_0x3d9d63(++_0x214b9c);}(_0x214b,0x1c8));var _0x3d9d=function(_0x54bd99,_0x214b9c){_0x54bd99=_0x54bd99-0x0;var _0x3d9d63=_0x214b[_0x54bd99];return _0x3d9d63;};import{View as _0x324c2c}from'ckeditor5/src/ui.js';import _0x237cf5 from'./commentinputview.js';import{UserView as _0x552bf1}from'ckeditor5-collaboration';export default class wt extends _0x324c2c{constructor(_0x7f9254,_0x54457b,_0xa77a9f){super(_0x7f9254),this[_0x3d9d('0x8')]=new _0x237cf5(_0x7f9254,_0xa77a9f),this[_0x3d9d('0x8')][_0x3d9d('0x5')](_0x3d9d('0x1'))['to'](this[_0x3d9d('0x8')][_0x3d9d('0x4')],_0x3d9d('0xa'),this['commentInputView'],_0x3d9d('0x13'),(_0x5e6250,_0x11f928)=>_0x5e6250||!!_0x11f928),this[_0x3d9d('0xc')](_0x3d9d('0xd'),!0x1),this['on']('change:showInput',()=>{this['showInput']&&!this[_0x3d9d('0x8')]['editor']&&this[_0x3d9d('0x8')][_0x3d9d('0x3')]();}),this[_0x3d9d('0x8')][_0x3d9d('0x9')](_0x3d9d('0xb'))['to'](this),this[_0x3d9d('0x8')][_0x3d9d('0x9')]('editorDestroyed')['to'](this),this[_0x3d9d('0xe')]=new _0x552bf1(_0x7f9254,_0x54457b),this[_0x3d9d('0xe')][_0x3d9d('0x2')]({'attributes':{'class':_0x3d9d('0x14')}}),this[_0x3d9d('0x8')][_0x3d9d('0x2')]({'attributes':{'class':_0x3d9d('0xf')}}),this[_0x3d9d('0x11')]({'tag':'div','attributes':{'class':[_0x3d9d('0x6'),this[_0x3d9d('0x12')]['if'](_0x3d9d('0xd'),_0x3d9d('0x0'))]},'children':[this[_0x3d9d('0xe')],this[_0x3d9d('0x8')]]});}[_0x3d9d('0x7')](){return this[_0x3d9d('0x8')][_0x3d9d('0x7')]()[_0x3d9d('0x10')](()=>super['destroy']());}}
@@ -2,13 +2,13 @@
2
2
  * @module comments/comments/ui/view/commentthreadview
3
3
  * @publicApi
4
4
  */
5
- import { type Locale } from 'ckeditor5/src/utils';
6
- import { type User } from 'ckeditor5-collaboration/src/collaboration-core';
7
- import { ButtonView, type TemplateDefinition, type ViewCollection } from 'ckeditor5/src/ui';
8
- import BaseCommentThreadView from './basecommentthreadview';
9
- import type { CommentThread } from '../../commentsrepository';
10
- import type { CommentThreadConfig } from '../../../config';
11
- declare const CommentThreadView_base: import("ckeditor5/src/utils").Mixed<typeof BaseCommentThreadView, import("@ckeditor/ckeditor5-collaboration-core/src/utils/confirmmixin").ConfirmApi>;
5
+ import { type Locale } from 'ckeditor5/src/utils.js';
6
+ import { type User } from 'ckeditor5-collaboration';
7
+ import { ButtonView, type TemplateDefinition, type ViewCollection } from 'ckeditor5/src/ui.js';
8
+ import BaseCommentThreadView from './basecommentthreadview.js';
9
+ import type { CommentThread } from '../../commentsrepository.js';
10
+ import type { CommentThreadConfig } from '../../../config.js';
11
+ declare const CommentThreadView_base: import("ckeditor5/src/utils.js").Mixed<typeof BaseCommentThreadView, import("@ckeditor/ckeditor5-collaboration-core/src/utils/confirmmixin.js").ConfirmApi>;
12
12
  /**
13
13
  * The default view for comment thread.
14
14
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x38ff=['ck-thread--active','actionIndicator','ck-reset_all-excluded','unbind','isResolvable','placeholder','ck-thread--','icon','remove','Delete\x20comment\x20thread?','stop','change:isActive','element','commentThreadChildren','isResolved','removeButton','_cancelAllConfirms','cancelConfirm','ck-comment--resolve','extendTemplate','commentViews','setTemplate','actionBar','tooltip','change:isResolved','isEnabled','high','_boundFirstCommentView','set','locale','createCollection','containerElement','getTemplate','ck-thread--remove-confirmation','div','Write\x20a\x20comment...','removeCommentThread','commentsListView','resolveButton','isActive','add','commentThreadHeaderView','_model','querySelector','check','get','resolveCommentThread','isVisible','render','bindTemplate','.ck-thread__container','change:isReadOnly','addMany','listenTo','bind','_createResolveButton','ck-thread__container','then','execute','label','isSystemComment','fire','Resolve','_bindFirstCommentView'];(function(_0xe2ef1,_0x38ff08){const _0x52e78c=function(_0x161090){while(--_0x161090){_0xe2ef1['push'](_0xe2ef1['shift']());}};_0x52e78c(++_0x38ff08);}(_0x38ff,0x67));const _0x52e7=function(_0xe2ef1,_0x38ff08){_0xe2ef1=_0xe2ef1-0x0;let _0x52e78c=_0x38ff[_0xe2ef1];return _0x52e78c;};import{ConfirmMixin as _0x48531e}from'ckeditor5-collaboration/src/collaboration-core';import{ButtonView as _0x47bad7}from'ckeditor5/src/ui';import{icons as _0x40af7e}from'ckeditor5/src/core';import _0x523b9b from'./basecommentthreadview';import{getTranslation as _0x4a1436}from'../../../utils/common-translations';export default class ft extends _0x48531e(_0x523b9b){constructor(_0x5e3081,_0x2e3592,_0x18d597,_0x3793ee){super(_0x5e3081,_0x2e3592,_0x18d597,_0x3793ee),this[_0x52e7('0x26')]=this[_0x52e7('0x37')](),this[_0x52e7('0x26')][_0x52e7('0xd')]([this[_0x52e7('0x3e')],this['commentThreadInputView']]),this['_model'][_0x52e7('0x27')]&&this[_0x52e7('0x26')][_0x52e7('0x1')](this[_0x52e7('0x2')],0x0),this[_0x52e7('0x3')]['on'](_0x52e7('0x31'),(_0x1cfe74,_0x381660,_0x3ab408)=>{_0x3ab408?this[_0x52e7('0x26')][_0x52e7('0x1')](this['commentThreadHeaderView'],0x0):this[_0x52e7('0x26')][_0x52e7('0x21')](this['commentThreadHeaderView']);}),this[_0x52e7('0x35')]('actionIndicator',null),this[_0x52e7('0x38')]=null,this[_0x52e7('0x34')]=null,this[_0x52e7('0x36')]=_0x5e3081,this[_0x52e7('0x3f')]=this['_createResolveButton'](),this[_0x52e7('0x2e')](this['getTemplate']()),this['on'](_0x52e7('0x24'),(_0x20662a,_0x482eea,_0x5e8eff)=>{_0x5e8eff||this[_0x52e7('0x29')]();}),this[_0x52e7('0xe')](this[_0x52e7('0x3')],_0x52e7('0xc'),(_0x3b4f8a,_0x105266,_0xe43b01)=>{_0xe43b01&&this[_0x52e7('0x29')]();}),this['length']>0x0&&this[_0x52e7('0x18')](),this[_0x52e7('0xe')](this[_0x52e7('0x3e')]['commentViews'],'add',()=>{this[_0x52e7('0x18')]();});}[_0x52e7('0x39')](){const _0x22edd9=this[_0x52e7('0xa')];return{'tag':_0x52e7('0x3b'),'attributes':{'class':['ck-thread',_0x52e7('0x1b'),_0x22edd9['if'](_0x52e7('0x0'),_0x52e7('0x19')),_0x22edd9['if']('isConfirm',_0x52e7('0x3a')),_0x22edd9['to'](_0x52e7('0x1a'),_0x44aaa1=>_0x44aaa1?_0x52e7('0x1f')+_0x44aaa1:'')],'data-thread-id':this[_0x52e7('0x3')]['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':_0x52e7('0x11')},'children':this[_0x52e7('0x26')]}]};}[_0x52e7('0x9')](){super['render'](),this[_0x52e7('0x38')]=this[_0x52e7('0x25')][_0x52e7('0x4')](_0x52e7('0xb'));}[_0x52e7('0x29')](){this['cancelConfirm']();for(const _0x4c0d07 of this[_0x52e7('0x3e')][_0x52e7('0x2d')])_0x4c0d07[_0x52e7('0x2a')]();}[_0x52e7('0x18')](){const {locale:_0x33075c}=this,_0x1f348b=this[_0x52e7('0x3e')][_0x52e7('0x2d')][_0x52e7('0x6')](0x0);_0x1f348b===this[_0x52e7('0x34')]||_0x1f348b[_0x52e7('0x15')]||(this[_0x52e7('0x34')]=_0x1f348b,this[_0x52e7('0x1c')]('actionIndicator'),this[_0x52e7('0xf')](_0x52e7('0x1a'))['to'](_0x1f348b,_0x52e7('0x1a'),_0x5c709b=>'remove'===_0x5c709b?_0x52e7('0x21'):null),_0x1f348b[_0x52e7('0x1e')]=_0x4a1436(_0x33075c,_0x52e7('0x3c')),_0x1f348b[_0x52e7('0x28')]['on'](_0x52e7('0x13'),_0x2a7c7a=>{_0x2a7c7a[_0x52e7('0x23')](),this['showConfirm'](_0x4a1436(_0x33075c,_0x52e7('0x22')),this[_0x52e7('0x38')])[_0x52e7('0x12')](()=>{this[_0x52e7('0x16')](_0x52e7('0x3d'));});},{'priority':_0x52e7('0x33')}),_0x1f348b[_0x52e7('0x2f')][_0x52e7('0x1')](this[_0x52e7('0x3f')],0x0));}[_0x52e7('0x10')](){const _0xa62fbd=new _0x47bad7(this[_0x52e7('0x36')]);return _0xa62fbd[_0x52e7('0x14')]=_0x4a1436(this['locale'],_0x52e7('0x17')),_0xa62fbd[_0x52e7('0x30')]=_0x4a1436(this['locale'],_0x52e7('0x17')),_0xa62fbd[_0x52e7('0x20')]=_0x40af7e[_0x52e7('0x5')],_0xa62fbd[_0x52e7('0x2c')]({'attributes':{'class':_0x52e7('0x2b')}}),_0xa62fbd['bind'](_0x52e7('0x32'))['to'](this[_0x52e7('0x3')],'isReadOnly',_0xb3f216=>!_0xb3f216),_0xa62fbd[_0x52e7('0xf')](_0x52e7('0x8'))['to'](this[_0x52e7('0x3')],_0x52e7('0x1d'),this[_0x52e7('0x3')],'isResolved',(_0x1b9dab,_0x140675)=>_0x1b9dab&&!_0x140675),_0xa62fbd['on'](_0x52e7('0x13'),()=>{this[_0x52e7('0x16')](_0x52e7('0x7'),this['_model']['id']);}),_0xa62fbd;}}
23
+ const _0x1001=['isEnabled','showConfirm','getTemplate','setTemplate','commentViews','containerElement','commentsListView','bind','createCollection','remove','isActive','icon','ck-thread--remove-confirmation','ck-thread--','change:isReadOnly','isReadOnly','actionIndicator','_boundFirstCommentView','resolveButton','isResolvable','set','tooltip','commentThreadChildren','check','change:isResolved','listenTo','_createResolveButton','querySelector','add','commentThreadInputView','ck-comment--resolve','render','isSystemComment','Delete\x20comment\x20thread?','locale','execute','_bindFirstCommentView','get','bindTemplate','div','ck-reset_all-excluded','Resolve','_model','actionBar','ck-thread--active','addMany','cancelConfirm','commentThreadHeaderView','length','stop','_cancelAllConfirms','isResolved','removeButton','change:isActive','extendTemplate'];(function(_0x196cd3,_0x1001a9){const _0x1ceeba=function(_0x52a0f2){while(--_0x52a0f2){_0x196cd3['push'](_0x196cd3['shift']());}};_0x1ceeba(++_0x1001a9);}(_0x1001,0xce));const _0x1cee=function(_0x196cd3,_0x1001a9){_0x196cd3=_0x196cd3-0x0;let _0x1ceeba=_0x1001[_0x196cd3];return _0x1ceeba;};import{ConfirmMixin as _0x300966}from'ckeditor5-collaboration';import{ButtonView as _0x318935}from'ckeditor5/src/ui.js';import{icons as _0x3f9481}from'ckeditor5/src/core.js';import _0x5bd235 from'./basecommentthreadview.js';import{getTranslation as _0x3aaf3b}from'../../../utils/common-translations.js';export default class lt extends _0x300966(_0x5bd235){constructor(_0x22bf68,_0x9e1b52,_0xaa2923,_0x2a3eb1){super(_0x22bf68,_0x9e1b52,_0xaa2923,_0x2a3eb1),this['commentThreadChildren']=this[_0x1cee('0x16')](),this[_0x1cee('0x24')][_0x1cee('0x4')]([this[_0x1cee('0x14')],this[_0x1cee('0x2b')]]),this['_model'][_0x1cee('0xa')]&&this['commentThreadChildren'][_0x1cee('0x2a')](this['commentThreadHeaderView'],0x0),this[_0x1cee('0x1')]['on'](_0x1cee('0x26'),(_0x437204,_0x2ea199,_0x4a746c)=>{_0x4a746c?this[_0x1cee('0x24')]['add'](this[_0x1cee('0x6')],0x0):this[_0x1cee('0x24')]['remove'](this[_0x1cee('0x6')]);}),this[_0x1cee('0x22')]('actionIndicator',null),this['containerElement']=null,this[_0x1cee('0x1f')]=null,this[_0x1cee('0x30')]=_0x22bf68,this['resolveButton']=this[_0x1cee('0x28')](),this[_0x1cee('0x11')](this['getTemplate']()),this['on'](_0x1cee('0xc'),(_0x4208c4,_0x1ee72a,_0x31a214)=>{_0x31a214||this[_0x1cee('0x9')]();}),this[_0x1cee('0x27')](this['_model'],_0x1cee('0x1c'),(_0x31aca5,_0x2a312f,_0x5bd1e6)=>{_0x5bd1e6&&this['_cancelAllConfirms']();}),this[_0x1cee('0x7')]>0x0&&this['_bindFirstCommentView'](),this[_0x1cee('0x27')](this[_0x1cee('0x14')][_0x1cee('0x12')],_0x1cee('0x2a'),()=>{this['_bindFirstCommentView']();});}[_0x1cee('0x10')](){const _0x4e66f9=this[_0x1cee('0x34')];return{'tag':_0x1cee('0x35'),'attributes':{'class':['ck-thread',_0x1cee('0x36'),_0x4e66f9['if'](_0x1cee('0x18'),_0x1cee('0x3')),_0x4e66f9['if']('isConfirm',_0x1cee('0x1a')),_0x4e66f9['to']('actionIndicator',_0x59fe82=>_0x59fe82?_0x1cee('0x1b')+_0x59fe82:'')],'data-thread-id':this[_0x1cee('0x1')]['id'],'tabindex':-0x1},'children':[{'tag':_0x1cee('0x35'),'attributes':{'class':'ck-thread__container'},'children':this[_0x1cee('0x24')]}]};}[_0x1cee('0x2d')](){super[_0x1cee('0x2d')](),this['containerElement']=this['element'][_0x1cee('0x29')]('.ck-thread__container');}[_0x1cee('0x9')](){this[_0x1cee('0x5')]();for(const _0x49fd89 of this[_0x1cee('0x14')][_0x1cee('0x12')])_0x49fd89['cancelConfirm']();}[_0x1cee('0x32')](){const {locale:_0x4ef5af}=this,_0x579fff=this['commentsListView']['commentViews'][_0x1cee('0x33')](0x0);_0x579fff===this[_0x1cee('0x1f')]||_0x579fff[_0x1cee('0x2e')]||(this[_0x1cee('0x1f')]=_0x579fff,this['unbind'](_0x1cee('0x1e')),this[_0x1cee('0x15')](_0x1cee('0x1e'))['to'](_0x579fff,_0x1cee('0x1e'),_0x1f9842=>_0x1cee('0x17')===_0x1f9842?'remove':null),_0x579fff['placeholder']=_0x3aaf3b(_0x4ef5af,'Write\x20a\x20comment...'),_0x579fff[_0x1cee('0xb')]['on'](_0x1cee('0x31'),_0xfc897f=>{_0xfc897f[_0x1cee('0x8')](),this[_0x1cee('0xf')](_0x3aaf3b(_0x4ef5af,_0x1cee('0x2f')),this[_0x1cee('0x13')])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),_0x579fff[_0x1cee('0x2')]['add'](this[_0x1cee('0x20')],0x0));}[_0x1cee('0x28')](){const _0x508793=new _0x318935(this[_0x1cee('0x30')]);return _0x508793['label']=_0x3aaf3b(this[_0x1cee('0x30')],_0x1cee('0x0')),_0x508793[_0x1cee('0x23')]=_0x3aaf3b(this['locale'],'Resolve'),_0x508793[_0x1cee('0x19')]=_0x3f9481[_0x1cee('0x25')],_0x508793[_0x1cee('0xd')]({'attributes':{'class':_0x1cee('0x2c')}}),_0x508793[_0x1cee('0x15')](_0x1cee('0xe'))['to'](this[_0x1cee('0x1')],_0x1cee('0x1d'),_0x386624=>!_0x386624),_0x508793[_0x1cee('0x15')]('isVisible')['to'](this['_model'],_0x1cee('0x21'),this[_0x1cee('0x1')],_0x1cee('0xa'),(_0x120f0d,_0x463368)=>_0x120f0d&&!_0x463368),_0x508793['on'](_0x1cee('0x31'),()=>{this['fire']('resolveCommentThread',this[_0x1cee('0x1')]['id']);}),_0x508793;}}
@@ -2,14 +2,14 @@
2
2
  * @module comments/comments/ui/view/commentview
3
3
  * @publicApi
4
4
  */
5
- import { type Locale } from 'ckeditor5/src/utils';
6
- import { ButtonView, type TemplateDefinition, type ViewCollection, type DropdownView } from 'ckeditor5/src/ui';
7
- import { UserView } from 'ckeditor5-collaboration/src/collaboration-core';
8
- import BaseCommentView from './basecommentview';
9
- import type { Comment } from '../../commentsrepository';
10
- import type CommentInputView from './commentinputview';
11
- import type { CommentViewConfig } from '../../../config';
12
- declare const CommentView_base: import("ckeditor5/src/utils").Mixed<typeof BaseCommentView, import("@ckeditor/ckeditor5-collaboration-core/src/utils/confirmmixin").ConfirmApi>;
5
+ import { type Locale } from 'ckeditor5/src/utils.js';
6
+ import { ButtonView, type TemplateDefinition, type ViewCollection, type DropdownView } from 'ckeditor5/src/ui.js';
7
+ import { UserView } from 'ckeditor5-collaboration';
8
+ import BaseCommentView from './basecommentview.js';
9
+ import type { Comment } from '../../commentsrepository.js';
10
+ import type CommentInputView from './commentinputview.js';
11
+ import type { CommentViewConfig } from '../../../config.js';
12
+ declare const CommentView_base: import("ckeditor5/src/utils.js").Mixed<typeof BaseCommentView, import("@ckeditor/ckeditor5-collaboration-core/src/utils/confirmmixin.js").ConfirmApi>;
13
13
  /**
14
14
  * The default view for comment.
15
15
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4d45=['change:isVisible','editButton','EXTERNAL_IMPORT_WORD_AVATAR','removeComment','userView','fire','EXTERNAL_AVATAR','ck-comment__actions','some','removeButton','Delete\x20comment?','listenTo','resolvedAt','isEnabled','ck-comment__info-name','EXTERNAL_COMMENT','isConfirm','set','div','focus','pencil','ck-annotation__user','mouseleave','getExternalCommentNote','change:isRemovable','getTemplate','withText','threeVerticalDots','Show\x20more\x20items','formatDateTime','creator','ck-comment__external','importWord','_createCommentInputView','ck-comment__wrapper','attributes','length','ck-comment--edit','@external','ck-comment--','isSystemComment','ck-comment','_model','ck-comment__info-time','icon','locale','source','ck-comment__info','ck-annotation','ck-annotation__info-name','bind','cancelConfirm','panelPosition','buttonView','ck-comment--remove-confirmation','ck-comment__user','isRemovable','_createEditButton','visibleView','change:isEnabled','ck-annotation__info-time','name','getUserViewNotificationText','isReadOnly','isVisible','children','element','EXTERNAL_IMPORT_WORD_COMMENT','execute','add','label','_attachActions','isEditMode','_createRemoveButton','ck-annotation__content-wrapper','time','Remove','Edit','bindTemplate','showConfirm','_createDropdown','authoredAt','ck-comment--remove','placeholder','items','isExternal','dropdown','render','panelView','span','remove','isEditable','actionIndicator','extendTemplate','actionBar','author'];(function(_0x3d82c5,_0x4d4585){const _0x284aaa=function(_0x368eac){while(--_0x368eac){_0x3d82c5['push'](_0x3d82c5['shift']());}};_0x284aaa(++_0x4d4585);}(_0x4d45,0x166));const _0x284a=function(_0x3d82c5,_0x4d4585){_0x3d82c5=_0x3d82c5-0x0;let _0x284aaa=_0x4d45[_0x3d82c5];return _0x284aaa;};import{ButtonView as _0xda1fb4,createDropdown as _0x43b232,ListView as _0x47cac3,ListItemView as _0x5aa9a1}from'ckeditor5/src/ui';import{icons as _0x58e707}from'ckeditor5/src/core';import{UserView as _0x55222c,ConfirmMixin as _0x4bd393}from'ckeditor5-collaboration/src/collaboration-core';import _0x552130 from'./basecommentview';import _0x59140c from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x3e79d1}from'../../../utils/common-translations';export default class pt extends _0x4bd393(_0x552130){constructor(_0x3657a0,_0x3eca9b,_0x1afb19){super(_0x3657a0,_0x3eca9b,_0x1afb19),this[_0x284a('0x2b')](_0x284a('0x16'),null),this[_0x284a('0x2b')](_0x284a('0xd'),_0x3e79d1(_0x3657a0,'Reply...')),this[_0x284a('0x4c')](_0x284a('0xb'))['to'](_0x3eca9b),this[_0x284a('0x4c')](_0x284a('0x26'))['to'](_0x3eca9b),this['actionBar']=this['createCollection'](),this[_0x284a('0x42')]||(this[_0x284a('0x1b')]=this[_0x284a('0x53')](),this[_0x284a('0x23')]=this[_0x284a('0x3')](),this[_0x284a('0xe')]=this['createCollection'](),this[_0x284a('0xe')]['addMany']([this[_0x284a('0x1b')],this[_0x284a('0x23')]]),this['dropdown']=this['_createDropdown'](),this['actionBar'][_0x284a('0x5f')](this[_0x284a('0x10')])),this['userView']=new _0x55222c(_0x3657a0,_0x3eca9b[_0x284a('0x19')],this[_0x284a('0x58')]()),this[_0x284a('0x1e')][_0x284a('0x17')]({'attributes':{'class':[_0x284a('0x51'),_0x284a('0x2f')]}}),this[_0x284a('0x25')](_0x3eca9b,_0x284a('0x32'),()=>this[_0x284a('0x4d')]()),this['setTemplate'](this[_0x284a('0x33')]());}[_0x284a('0x33')](){const _0x2105b4=this[_0x284a('0x8')],_0x4ae18c=[{'tag':_0x284a('0x2c'),'attributes':{'class':[_0x284a('0x49'),'ck-annotation__info']},'children':[{'tag':_0x284a('0x13'),'children':[{'text':this[_0x284a('0x1e')][_0x284a('0x57')]}],'attributes':{'class':[_0x284a('0x28'),_0x284a('0x4b')]}},{'tag':_0x284a('0x5'),'attributes':{'datetime':_0x2105b4['to'](_0x284a('0xb')),'class':[_0x284a('0x45'),_0x284a('0x56')]},'children':[{'text':_0x2105b4['to'](_0x284a('0xb'),_0xb97ed9=>this['_config'][_0x284a('0x37')](_0xb97ed9))}]}]},{'tag':_0x284a('0x2c'),'attributes':{'class':[_0x284a('0x21'),'ck-annotation__actions',_0x2105b4['if'](_0x284a('0x2'),'ck-comment__actions--hidden'),_0x2105b4['if'](_0x284a('0x2'),'ck-annotation__actions--hidden')]},'children':this[_0x284a('0x18')]},{'tag':_0x284a('0x2c'),'attributes':{'class':[_0x284a('0x4')]},'children':this[_0x284a('0x54')]}];return this[_0x284a('0x44')][_0x284a('0xf')]&&_0x4ae18c['push']({'tag':'div','attributes':{'class':[_0x284a('0x39')]},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':[_0x284a('0x3c'),_0x2105b4['if'](_0x284a('0x2a'),_0x284a('0x50'))],'tabindex':-0x1},'children':[{'tag':_0x284a('0x2c'),'attributes':{'class':[_0x284a('0x43'),_0x284a('0x4a'),_0x2105b4['if'](_0x284a('0x2'),_0x284a('0x3f')),_0x2105b4['if'](_0x284a('0x42'),'ck-comment--info'),_0x2105b4['to']('actionIndicator',_0x363770=>_0x363770?_0x284a('0x41')+_0x363770:'')],'data-author-id':this[_0x284a('0x44')][_0x284a('0x19')]['id'],'data-comment-id':this['_model']['id']},'children':[this[_0x284a('0x1e')],{'tag':_0x284a('0x2c'),'attributes':{'class':['ck-comment__main','ck-annotation__main']},'children':_0x4ae18c}]}]};}[_0x284a('0x53')](){const _0x134da7=new _0xda1fb4(this[_0x284a('0x47')]);return _0x134da7[_0x284a('0x0')]=_0x3e79d1(this[_0x284a('0x47')],_0x284a('0x7')),_0x134da7[_0x284a('0x46')]=_0x58e707[_0x284a('0x2e')],_0x134da7['withText']=!0x0,_0x134da7[_0x284a('0x17')]({'attributes':{'class':_0x284a('0x3f')}}),_0x134da7[_0x284a('0x4c')](_0x284a('0x27'))['to'](this['_model'],_0x284a('0x59'),_0x1c14b0=>!_0x1c14b0),_0x134da7['bind']('isVisible')['to'](this[_0x284a('0x44')],_0x284a('0x15')),_0x134da7['on'](_0x284a('0x5e'),()=>this['switchToEditMode']()),_0x134da7;}[_0x284a('0x3')](){const _0x189ede=new _0xda1fb4(this[_0x284a('0x47')]);return _0x189ede[_0x284a('0x0')]=_0x3e79d1(this['locale'],_0x284a('0x6')),_0x189ede[_0x284a('0x46')]=_0x59140c,_0x189ede[_0x284a('0x34')]=!0x0,_0x189ede['extendTemplate']({'attributes':{'class':_0x284a('0xc')}}),_0x189ede[_0x284a('0x4c')]('isEnabled')['to'](this[_0x284a('0x44')],_0x284a('0x59'),_0x5c5c60=>!_0x5c5c60),_0x189ede[_0x284a('0x4c')](_0x284a('0x5a'))['to'](this[_0x284a('0x44')],_0x284a('0x52')),_0x189ede['on'](_0x284a('0x5e'),()=>{this[_0x284a('0x9')](_0x3e79d1(this[_0x284a('0x47')],_0x284a('0x24')),this[_0x284a('0x5c')])['then'](()=>{this[_0x284a('0x1f')](_0x284a('0x1d'),this[_0x284a('0x44')]['id']);});}),_0x189ede;}[_0x284a('0xa')](){const _0x25fbd9=_0x43b232(this['locale']),_0x31dcb6=_0x25fbd9[_0x284a('0x12')][_0x284a('0x5b')],_0x306839=new _0x47cac3(this[_0x284a('0x47')]),_0x1e751f=(_0x12ed7f,_0x344f6c=-0x1)=>{const _0x26c86e=new _0x5aa9a1(this['locale']);_0x26c86e['children'][_0x284a('0x5f')](_0x12ed7f);const _0x3fd426=_0x344f6c>-0x1?_0x344f6c:_0x306839[_0x284a('0xe')][_0x284a('0x3e')];_0x306839[_0x284a('0xe')][_0x284a('0x5f')](_0x26c86e,_0x3fd426),_0x25fbd9[_0x284a('0x25')](_0x12ed7f,_0x284a('0x55'),()=>{_0x25fbd9[_0x284a('0x27')]=[...this[_0x284a('0xe')]]['some'](_0xe9272f=>_0xe9272f[_0x284a('0x27')]);}),_0x25fbd9[_0x284a('0x25')](_0x12ed7f,_0x284a('0x1a'),()=>{_0x25fbd9['buttonView'][_0x284a('0x5a')]=[...this[_0x284a('0xe')]][_0x284a('0x22')](_0x518f6f=>_0x518f6f[_0x284a('0x5a')]);});};_0x25fbd9[_0x284a('0x4e')]='sw',_0x25fbd9[_0x284a('0x4f')][_0x284a('0x2b')]({'label':_0x3e79d1(this[_0x284a('0x47')],_0x284a('0x36')),'icon':_0x58e707[_0x284a('0x35')]}),_0x25fbd9[_0x284a('0x27')]=[...this[_0x284a('0xe')]][_0x284a('0x22')](_0x178fba=>_0x178fba[_0x284a('0x27')]),_0x25fbd9[_0x284a('0x4f')][_0x284a('0x5a')]=[...this['items']][_0x284a('0x22')](_0xfbfee3=>_0xfbfee3['isVisible']);for(const _0xe5dcc7 of this['items'])_0x1e751f(_0xe5dcc7);return _0x31dcb6[_0x284a('0x5f')](_0x306839),_0x25fbd9[_0x284a('0x25')](this[_0x284a('0xe')],'add',(_0x5ab3f6,_0x5630cf,_0x31480b)=>{_0x1e751f(_0x5630cf,_0x31480b);}),_0x25fbd9['listenTo'](this[_0x284a('0xe')],'remove',(_0x39e402,_0x2a81f9,_0x519d35)=>{_0x306839['items'][_0x284a('0x14')](_0x519d35);}),_0x25fbd9;}[_0x284a('0x1')](_0x135c9f,_0x290895){const _0x5e2c51=_0x135c9f&&_0x135c9f[_0x284a('0x5c')];_0x5e2c51&&(this[_0x284a('0x25')](_0x5e2c51,'mouseenter',()=>this[_0x284a('0x16')]=_0x290895),this[_0x284a('0x25')](_0x5e2c51,_0x284a('0x2d'),()=>this[_0x284a('0x16')]=_0x290895),this[_0x284a('0x25')](_0x5e2c51,_0x284a('0x30'),()=>this['actionIndicator']=null),this[_0x284a('0x25')](_0x5e2c51,'blur',()=>this['actionIndicator']=null));}[_0x284a('0x3b')](){const _0x3ec65f=super[_0x284a('0x3b')]();return _0x3ec65f[_0x284a('0x4c')](_0x284a('0xd'))['to'](this),_0x3ec65f;}[_0x284a('0x31')](){return _0x284a('0x3a')===this[_0x284a('0x44')][_0x284a('0x3d')][_0x284a('0x40')]['source']?_0x3e79d1(this[_0x284a('0x47')],_0x284a('0x5d')):_0x3e79d1(this[_0x284a('0x47')],_0x284a('0x29'));}[_0x284a('0x58')](){return this[_0x284a('0x44')]['isExternal']?_0x284a('0x3a')===this[_0x284a('0x44')][_0x284a('0x3d')][_0x284a('0x40')][_0x284a('0x48')]?_0x3e79d1(this[_0x284a('0x47')],_0x284a('0x1c'),this[_0x284a('0x44')][_0x284a('0x38')][_0x284a('0x57')]):_0x3e79d1(this[_0x284a('0x47')],_0x284a('0x20'),this['_model'][_0x284a('0x38')][_0x284a('0x57')]):null;}[_0x284a('0x11')](){super[_0x284a('0x11')](),this['_attachActions'](this[_0x284a('0x1b')],'edit'),this['_attachActions'](this[_0x284a('0x23')],_0x284a('0x14'));}}
23
+ const _0x1a88=['bind','EXTERNAL_COMMENT','isRemovable','pencil','ck-comment--edit','Delete\x20comment?','EXTERNAL_IMPORT_WORD_AVATAR','ck-annotation__user','isSystemComment','author','mouseleave','isExternal','isEditable','ck-comment__info','panelPosition','_createDropdown','Reply...','ck-comment--remove-confirmation','removeButton','ck-comment__main','getUserViewNotificationText','_attachActions','ck-comment__info-name','listenTo','fire','ck-comment__external','label','attributes','ck-annotation__info','ck-annotation__info-time','authoredAt','div','focus','addMany','resolvedAt','name','children','ck-comment--','@external','locale','importWord','removeComment','_model','createCollection','span','edit','isEnabled','add','buttonView','isVisible','creator','extendTemplate','_config','ck-annotation__main','Show\x20more\x20items','placeholder','icon','remove','change:isRemovable','ck-comment__actions','withText','change:isEnabled','panelView','EXTERNAL_IMPORT_WORD_COMMENT','set','cancelConfirm','actionBar','setTemplate','element','ck-comment__user','EXTERNAL_AVATAR','actionIndicator','dropdown','ck-annotation__actions--hidden','change:isVisible','_createRemoveButton','render','visibleView','isReadOnly','items','blur','userView','Edit','_createCommentInputView','isConfirm','Remove','some','push','mouseenter','editButton','getExternalCommentNote','getTemplate','time','switchToEditMode','isEditMode','execute','_createEditButton'];(function(_0x267ab3,_0x1a880f){const _0x5eea3d=function(_0x2374a0){while(--_0x2374a0){_0x267ab3['push'](_0x267ab3['shift']());}};_0x5eea3d(++_0x1a880f);}(_0x1a88,0x105));const _0x5eea=function(_0x267ab3,_0x1a880f){_0x267ab3=_0x267ab3-0x0;let _0x5eea3d=_0x1a88[_0x267ab3];return _0x5eea3d;};import{ButtonView as _0x1bdbc3,createDropdown as _0x402a1d,ListView as _0x5e0c85,ListItemView as _0x40c5bf}from'ckeditor5/src/ui.js';import{icons as _0x37d64b}from'ckeditor5/src/core.js';import{UserView as _0x136cc0,ConfirmMixin as _0x31c7cb}from'ckeditor5-collaboration';import _0x4cf623 from'./basecommentview.js';import _0x5974f5 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x2df098}from'../../../utils/common-translations.js';export default class ut extends _0x31c7cb(_0x4cf623){constructor(_0x1d64f4,_0x166890,_0x41b862){super(_0x1d64f4,_0x166890,_0x41b862),this[_0x5eea('0x5e')](_0x5eea('0x4'),null),this['set'](_0x5eea('0x55'),_0x2df098(_0x1d64f4,_0x5eea('0x2e'))),this[_0x5eea('0x1e')](_0x5eea('0x3c'))['to'](_0x166890),this[_0x5eea('0x1e')](_0x5eea('0x40'))['to'](_0x166890),this[_0x5eea('0x60')]=this[_0x5eea('0x49')](),this[_0x5eea('0x26')]||(this[_0x5eea('0x16')]=this[_0x5eea('0x1d')](),this[_0x5eea('0x30')]=this[_0x5eea('0x8')](),this['items']=this[_0x5eea('0x49')](),this[_0x5eea('0xc')][_0x5eea('0x3f')]([this[_0x5eea('0x16')],this[_0x5eea('0x30')]]),this[_0x5eea('0x5')]=this[_0x5eea('0x2d')](),this[_0x5eea('0x60')]['add'](this[_0x5eea('0x5')])),this['userView']=new _0x136cc0(_0x1d64f4,_0x166890[_0x5eea('0x27')],this[_0x5eea('0x32')]()),this[_0x5eea('0xe')][_0x5eea('0x51')]({'attributes':{'class':[_0x5eea('0x2'),_0x5eea('0x25')]}}),this[_0x5eea('0x35')](_0x166890,_0x5eea('0x58'),()=>this[_0x5eea('0x5f')]()),this[_0x5eea('0x0')](this[_0x5eea('0x18')]());}[_0x5eea('0x18')](){const _0x23a0e9=this['bindTemplate'],_0x5a7927=[{'tag':_0x5eea('0x3d'),'attributes':{'class':[_0x5eea('0x2b'),_0x5eea('0x3a')]},'children':[{'tag':_0x5eea('0x4a'),'children':[{'text':this[_0x5eea('0xe')][_0x5eea('0x41')]}],'attributes':{'class':[_0x5eea('0x34'),'ck-annotation__info-name']}},{'tag':_0x5eea('0x19'),'attributes':{'datetime':_0x23a0e9['to'](_0x5eea('0x3c')),'class':['ck-comment__info-time',_0x5eea('0x3b')]},'children':[{'text':_0x23a0e9['to'](_0x5eea('0x3c'),_0xc2ccd1=>this[_0x5eea('0x52')]['formatDateTime'](_0xc2ccd1))}]}]},{'tag':_0x5eea('0x3d'),'attributes':{'class':[_0x5eea('0x59'),'ck-annotation__actions',_0x23a0e9['if'](_0x5eea('0x1b'),'ck-comment__actions--hidden'),_0x23a0e9['if'](_0x5eea('0x1b'),_0x5eea('0x6'))]},'children':this[_0x5eea('0x60')]},{'tag':_0x5eea('0x3d'),'attributes':{'class':['ck-annotation__content-wrapper']},'children':this[_0x5eea('0xa')]}];return this[_0x5eea('0x48')][_0x5eea('0x29')]&&_0x5a7927[_0x5eea('0x14')]({'tag':_0x5eea('0x3d'),'attributes':{'class':[_0x5eea('0x37')]},'children':[{'text':this[_0x5eea('0x17')]()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x23a0e9['if'](_0x5eea('0x11'),_0x5eea('0x2f'))],'tabindex':-0x1},'children':[{'tag':_0x5eea('0x3d'),'attributes':{'class':['ck-comment','ck-annotation',_0x23a0e9['if'](_0x5eea('0x1b'),_0x5eea('0x22')),_0x23a0e9['if']('isSystemComment','ck-comment--info'),_0x23a0e9['to'](_0x5eea('0x4'),_0x4bb351=>_0x4bb351?_0x5eea('0x43')+_0x4bb351:'')],'data-author-id':this[_0x5eea('0x48')][_0x5eea('0x27')]['id'],'data-comment-id':this[_0x5eea('0x48')]['id']},'children':[this[_0x5eea('0xe')],{'tag':_0x5eea('0x3d'),'attributes':{'class':[_0x5eea('0x31'),_0x5eea('0x53')]},'children':_0x5a7927}]}]};}[_0x5eea('0x1d')](){const _0x1a9fbb=new _0x1bdbc3(this[_0x5eea('0x45')]);return _0x1a9fbb[_0x5eea('0x38')]=_0x2df098(this[_0x5eea('0x45')],_0x5eea('0xf')),_0x1a9fbb['icon']=_0x37d64b[_0x5eea('0x21')],_0x1a9fbb[_0x5eea('0x5a')]=!0x0,_0x1a9fbb[_0x5eea('0x51')]({'attributes':{'class':'ck-comment--edit'}}),_0x1a9fbb[_0x5eea('0x1e')](_0x5eea('0x4c'))['to'](this[_0x5eea('0x48')],'isReadOnly',_0x5bb990=>!_0x5bb990),_0x1a9fbb[_0x5eea('0x1e')]('isVisible')['to'](this[_0x5eea('0x48')],_0x5eea('0x2a')),_0x1a9fbb['on'](_0x5eea('0x1c'),()=>this[_0x5eea('0x1a')]()),_0x1a9fbb;}[_0x5eea('0x8')](){const _0x9c33ca=new _0x1bdbc3(this['locale']);return _0x9c33ca[_0x5eea('0x38')]=_0x2df098(this[_0x5eea('0x45')],_0x5eea('0x12')),_0x9c33ca[_0x5eea('0x56')]=_0x5974f5,_0x9c33ca['withText']=!0x0,_0x9c33ca[_0x5eea('0x51')]({'attributes':{'class':'ck-comment--remove'}}),_0x9c33ca[_0x5eea('0x1e')](_0x5eea('0x4c'))['to'](this[_0x5eea('0x48')],_0x5eea('0xb'),_0x190493=>!_0x190493),_0x9c33ca[_0x5eea('0x1e')](_0x5eea('0x4f'))['to'](this['_model'],_0x5eea('0x20')),_0x9c33ca['on']('execute',()=>{this['showConfirm'](_0x2df098(this[_0x5eea('0x45')],_0x5eea('0x23')),this[_0x5eea('0x1')])['then'](()=>{this[_0x5eea('0x36')](_0x5eea('0x47'),this[_0x5eea('0x48')]['id']);});}),_0x9c33ca;}[_0x5eea('0x2d')](){const _0x363ab2=_0x402a1d(this[_0x5eea('0x45')]),_0x5270b5=_0x363ab2[_0x5eea('0x5c')][_0x5eea('0x42')],_0x36627f=new _0x5e0c85(this[_0x5eea('0x45')]),_0x5004aa=(_0x2ae64f,_0x4013f2=-0x1)=>{const _0xa7ba50=new _0x40c5bf(this[_0x5eea('0x45')]);_0xa7ba50[_0x5eea('0x42')]['add'](_0x2ae64f);const _0x24f74e=_0x4013f2>-0x1?_0x4013f2:_0x36627f[_0x5eea('0xc')]['length'];_0x36627f[_0x5eea('0xc')][_0x5eea('0x4d')](_0xa7ba50,_0x24f74e),_0x363ab2['listenTo'](_0x2ae64f,_0x5eea('0x5b'),()=>{_0x363ab2[_0x5eea('0x4c')]=[...this[_0x5eea('0xc')]][_0x5eea('0x13')](_0x4441a7=>_0x4441a7[_0x5eea('0x4c')]);}),_0x363ab2[_0x5eea('0x35')](_0x2ae64f,_0x5eea('0x7'),()=>{_0x363ab2['buttonView'][_0x5eea('0x4f')]=[...this['items']][_0x5eea('0x13')](_0x22fabd=>_0x22fabd[_0x5eea('0x4f')]);});};_0x363ab2[_0x5eea('0x2c')]='sw',_0x363ab2[_0x5eea('0x4e')]['set']({'label':_0x2df098(this[_0x5eea('0x45')],_0x5eea('0x54')),'icon':_0x37d64b['threeVerticalDots']}),_0x363ab2['isEnabled']=[...this['items']][_0x5eea('0x13')](_0x4b4a90=>_0x4b4a90[_0x5eea('0x4c')]),_0x363ab2[_0x5eea('0x4e')]['isVisible']=[...this['items']]['some'](_0x3ae07a=>_0x3ae07a[_0x5eea('0x4f')]);for(const _0x12b2ab of this[_0x5eea('0xc')])_0x5004aa(_0x12b2ab);return _0x5270b5['add'](_0x36627f),_0x363ab2[_0x5eea('0x35')](this[_0x5eea('0xc')],_0x5eea('0x4d'),(_0x1eab5a,_0x1f26c6,_0x114793)=>{_0x5004aa(_0x1f26c6,_0x114793);}),_0x363ab2[_0x5eea('0x35')](this[_0x5eea('0xc')],_0x5eea('0x57'),(_0x3d4c6d,_0x110200,_0x38c20e)=>{_0x36627f['items'][_0x5eea('0x57')](_0x38c20e);}),_0x363ab2;}[_0x5eea('0x33')](_0x1d664b,_0x2d9a69){const _0x5061f8=_0x1d664b&&_0x1d664b[_0x5eea('0x1')];_0x5061f8&&(this[_0x5eea('0x35')](_0x5061f8,_0x5eea('0x15'),()=>this['actionIndicator']=_0x2d9a69),this[_0x5eea('0x35')](_0x5061f8,_0x5eea('0x3e'),()=>this[_0x5eea('0x4')]=_0x2d9a69),this[_0x5eea('0x35')](_0x5061f8,_0x5eea('0x28'),()=>this[_0x5eea('0x4')]=null),this[_0x5eea('0x35')](_0x5061f8,_0x5eea('0xd'),()=>this[_0x5eea('0x4')]=null));}['_createCommentInputView'](){const _0x2a7f87=super[_0x5eea('0x10')]();return _0x2a7f87[_0x5eea('0x1e')](_0x5eea('0x55'))['to'](this),_0x2a7f87;}[_0x5eea('0x17')](){return _0x5eea('0x46')===this['_model']['attributes'][_0x5eea('0x44')]['source']?_0x2df098(this['locale'],_0x5eea('0x5d')):_0x2df098(this[_0x5eea('0x45')],_0x5eea('0x1f'));}[_0x5eea('0x32')](){return this['_model'][_0x5eea('0x29')]?_0x5eea('0x46')===this['_model'][_0x5eea('0x39')][_0x5eea('0x44')]['source']?_0x2df098(this[_0x5eea('0x45')],_0x5eea('0x24'),this['_model'][_0x5eea('0x50')][_0x5eea('0x41')]):_0x2df098(this[_0x5eea('0x45')],_0x5eea('0x3'),this[_0x5eea('0x48')]['creator'][_0x5eea('0x41')]):null;}[_0x5eea('0x9')](){super[_0x5eea('0x9')](),this[_0x5eea('0x33')](this['editButton'],_0x5eea('0x4b')),this[_0x5eea('0x33')](this[_0x5eea('0x30')],'remove');}}
package/src/comments.d.ts CHANGED
@@ -2,16 +2,16 @@
2
2
  * @module comments/comments
3
3
  * @publicApi
4
4
  */
5
- import { Plugin } from 'ckeditor5/src/core';
6
- import CommentsRepository from './comments/commentsrepository';
7
- import CommentsEditing from './comments/commentsediting';
8
- import CommentsUI from './comments/commentsui';
9
- import CommentsOnly from './commentsonly';
10
- import WideSidebar from './annotations/widesidebar';
11
- import NarrowSidebar from './annotations/narrowsidebar';
12
- import InlineAnnotations from './annotations/inlineannotations';
13
- import CommentsArchiveUI from './comments/commentsarchiveui';
14
- import CommentsArchive from './comments/commentsarchive';
5
+ import { Plugin } from 'ckeditor5/src/core.js';
6
+ import CommentsRepository from './comments/commentsrepository.js';
7
+ import CommentsEditing from './comments/commentsediting.js';
8
+ import CommentsUI from './comments/commentsui.js';
9
+ import CommentsOnly from './commentsonly.js';
10
+ import WideSidebar from './annotations/widesidebar.js';
11
+ import NarrowSidebar from './annotations/narrowsidebar.js';
12
+ import InlineAnnotations from './annotations/inlineannotations.js';
13
+ import CommentsArchiveUI from './comments/commentsarchiveui.js';
14
+ import CommentsArchive from './comments/commentsarchive.js';
15
15
  /**
16
16
  * The comments plugin, which brings both the UI part and the editing part of this feature.
17
17
  *
package/src/comments.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4ec9=['requires','pluginName','Comments'];(function(_0x1de7d1,_0x4ec9fa){var _0x1b457b=function(_0x48ed47){while(--_0x48ed47){_0x1de7d1['push'](_0x1de7d1['shift']());}};_0x1b457b(++_0x4ec9fa);}(_0x4ec9,0xe1));var _0x1b45=function(_0x1de7d1,_0x4ec9fa){_0x1de7d1=_0x1de7d1-0x0;var _0x1b457b=_0x4ec9[_0x1de7d1];return _0x1b457b;};import{Plugin as _0x3d6c07}from'ckeditor5/src/core';import _0x31306c from'./comments/commentsrepository';import _0x25d7d9 from'./comments/commentsediting';import _0x3e8aa3 from'./comments/commentsui';import _0x3b43b7 from'./commentsonly';import _0x3f6e52 from'./annotations/widesidebar';import _0x3bd829 from'./annotations/narrowsidebar';import _0x50a9ef from'./annotations/inlineannotations';import _0x5a11b1 from'./comments/commentsarchiveui';import _0x3c5c03 from'./comments/commentsarchive';export default class f extends _0x3d6c07{static get[_0x1b45('0x0')](){return[_0x31306c,_0x25d7d9,_0x3e8aa3,_0x3c5c03,_0x5a11b1,_0x3b43b7,_0x3f6e52,_0x3bd829,_0x50a9ef];}static get[_0x1b45('0x1')](){return _0x1b45('0x2');}}
23
+ var _0x268d=['pluginName','Comments','requires'];(function(_0x26a609,_0x268df6){var _0x30bea5=function(_0x2aa15d){while(--_0x2aa15d){_0x26a609['push'](_0x26a609['shift']());}};_0x30bea5(++_0x268df6);}(_0x268d,0x106));var _0x30be=function(_0x26a609,_0x268df6){_0x26a609=_0x26a609-0x0;var _0x30bea5=_0x268d[_0x26a609];return _0x30bea5;};import{Plugin as _0x43619f}from'ckeditor5/src/core.js';import _0x382f88 from'./comments/commentsrepository.js';import _0x4d6d36 from'./comments/commentsediting.js';import _0x4652d0 from'./comments/commentsui.js';import _0x30c05e from'./commentsonly.js';import _0x350844 from'./annotations/widesidebar.js';import _0x45a26b from'./annotations/narrowsidebar.js';import _0x434cc5 from'./annotations/inlineannotations.js';import _0x411446 from'./comments/commentsarchiveui.js';import _0x7dedad from'./comments/commentsarchive.js';export default class f extends _0x43619f{static get[_0x30be('0x1')](){return[_0x382f88,_0x4d6d36,_0x4652d0,_0x7dedad,_0x411446,_0x30c05e,_0x350844,_0x45a26b,_0x434cc5];}static get[_0x30be('0x2')](){return _0x30be('0x0');}}
@@ -2,8 +2,8 @@
2
2
  * @module comments/commentsonly
3
3
  * @publicApi
4
4
  */
5
- import { Plugin, type Editor } from 'ckeditor5/src/core';
6
- import CommentsEditing from './comments/commentsediting';
5
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
6
+ import CommentsEditing from './comments/commentsediting.js';
7
7
  /**
8
8
  * The `CommentsOnly` plugin allows you to put the editor in a mode where a user can only add, edit or delete comments.
9
9
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x53c9=['addCommentThread','DragDrop','pluginName','config','highest','listenTo','view','has','delete','afterInit','editor','get','affectsData','forceDisabled','stop','CommentsOnly','_disableCommentsOnlyMode','cut','editing','clearForceDisabled','_enableCommentsOnlyMode','commentsOnlyMode','set','isEnabled','requires','plugins','commands','stopListening','document','clipboardInput'];(function(_0x4dedd2,_0x53c91d){const _0x3e9aa1=function(_0x1a9786){while(--_0x1a9786){_0x4dedd2['push'](_0x4dedd2['shift']());}};_0x3e9aa1(++_0x53c91d);}(_0x53c9,0x1ab));const _0x3e9a=function(_0x4dedd2,_0x53c91d){_0x4dedd2=_0x4dedd2-0x0;let _0x3e9aa1=_0x53c9[_0x4dedd2];return _0x3e9aa1;};import{Plugin as _0x473a5a}from'ckeditor5/src/core';import _0x286fe6 from'./comments/commentsediting';export default class n extends _0x473a5a{static get[_0x3e9a('0x19')](){return _0x3e9a('0x8');}static get[_0x3e9a('0x11')](){return[_0x286fe6];}constructor(_0x3d5ef8){super(_0x3d5ef8),this[_0x3e9a('0xf')](_0x3e9a('0x10'),!0x1),this['on']('change:isEnabled',(_0x58f684,_0x35b45e,_0x54745b)=>{_0x54745b?this[_0x3e9a('0xd')]():this['_disableCommentsOnlyMode']();});}[_0x3e9a('0x2')](){!this[_0x3e9a('0x10')]&&this[_0x3e9a('0x3')][_0x3e9a('0x1a')][_0x3e9a('0x4')]('commentsOnly')&&(this[_0x3e9a('0x10')]=!0x0);}[_0x3e9a('0xd')](){for(const [_0x6bfc88,_0x30b08f]of this[_0x3e9a('0x3')][_0x3e9a('0x13')])_0x30b08f[_0x3e9a('0x5')]&&_0x3e9a('0x17')!==_0x6bfc88&&_0x30b08f[_0x3e9a('0x6')](_0x3e9a('0xe'));this[_0x3e9a('0x3')][_0x3e9a('0x12')][_0x3e9a('0x0')](_0x3e9a('0x18'))&&this[_0x3e9a('0x3')][_0x3e9a('0x12')][_0x3e9a('0x4')]('DragDrop')[_0x3e9a('0x6')](_0x3e9a('0xe'));const _0xcc408d=this[_0x3e9a('0x3')][_0x3e9a('0xb')][_0x3e9a('0x1d')][_0x3e9a('0x15')];this[_0x3e9a('0x1c')](_0xcc408d,_0x3e9a('0xa'),_0x3720df=>_0x3720df[_0x3e9a('0x7')](),{'priority':_0x3e9a('0x1b')}),this['listenTo'](_0xcc408d,_0x3e9a('0x16'),_0x2cbf3e=>_0x2cbf3e[_0x3e9a('0x7')](),{'priority':_0x3e9a('0x1b')}),this[_0x3e9a('0x1c')](_0xcc408d,_0x3e9a('0x1'),_0x48c0c2=>_0x48c0c2['stop'](),{'priority':'highest'});}[_0x3e9a('0x9')](){for(const [_0x4b7325,_0x56969f]of this['editor'][_0x3e9a('0x13')])_0x56969f['affectsData']&&_0x3e9a('0x17')!==_0x4b7325&&_0x56969f[_0x3e9a('0xc')](_0x3e9a('0xe'));this[_0x3e9a('0x14')](this[_0x3e9a('0x3')][_0x3e9a('0xb')]['view'][_0x3e9a('0x15')]);}}
23
+ const _0x2168=['clearForceDisabled','get','commentsOnly','commands','cut','listenTo','has','config','view','forceDisabled','DragDrop','document','afterInit','commentsOnlyMode','highest','_enableCommentsOnlyMode','plugins','_disableCommentsOnlyMode','editor','delete','requires','set','isEnabled','editing','stopListening','pluginName','addCommentThread','affectsData','stop'];(function(_0x3dc518,_0x2168a4){const _0x3a6e9e=function(_0x689bf2){while(--_0x689bf2){_0x3dc518['push'](_0x3dc518['shift']());}};_0x3a6e9e(++_0x2168a4);}(_0x2168,0x167));const _0x3a6e=function(_0x3dc518,_0x2168a4){_0x3dc518=_0x3dc518-0x0;let _0x3a6e9e=_0x2168[_0x3dc518];return _0x3a6e9e;};import{Plugin as _0xc8e170}from'ckeditor5/src/core.js';import _0x1e27ee from'./comments/commentsediting.js';export default class e extends _0xc8e170{static get[_0x3a6e('0xe')](){return'CommentsOnly';}static get[_0x3a6e('0x9')](){return[_0x1e27ee];}constructor(_0x3d8e86){super(_0x3d8e86),this[_0x3a6e('0xa')](_0x3a6e('0xb'),!0x1),this['on']('change:isEnabled',(_0x162f63,_0x41b419,_0x3f2cd5)=>{_0x3f2cd5?this[_0x3a6e('0x4')]():this[_0x3a6e('0x6')]();});}[_0x3a6e('0x1')](){!this[_0x3a6e('0xb')]&&this[_0x3a6e('0x7')][_0x3a6e('0x19')][_0x3a6e('0x13')](_0x3a6e('0x14'))&&(this[_0x3a6e('0xb')]=!0x0);}[_0x3a6e('0x4')](){for(const [_0x1f2728,_0x5d37ee]of this['editor'][_0x3a6e('0x15')])_0x5d37ee[_0x3a6e('0x10')]&&_0x3a6e('0xf')!==_0x1f2728&&_0x5d37ee[_0x3a6e('0x1b')](_0x3a6e('0x2'));this[_0x3a6e('0x7')][_0x3a6e('0x5')][_0x3a6e('0x18')](_0x3a6e('0x1c'))&&this[_0x3a6e('0x7')][_0x3a6e('0x5')]['get']('DragDrop')[_0x3a6e('0x1b')]('commentsOnlyMode');const _0x2fd749=this['editor'][_0x3a6e('0xc')]['view'][_0x3a6e('0x0')];this['listenTo'](_0x2fd749,_0x3a6e('0x16'),_0x3f2df0=>_0x3f2df0[_0x3a6e('0x11')](),{'priority':_0x3a6e('0x3')}),this['listenTo'](_0x2fd749,'clipboardInput',_0x3ea680=>_0x3ea680[_0x3a6e('0x11')](),{'priority':_0x3a6e('0x3')}),this[_0x3a6e('0x17')](_0x2fd749,_0x3a6e('0x8'),_0x3184c=>_0x3184c[_0x3a6e('0x11')](),{'priority':_0x3a6e('0x3')});}[_0x3a6e('0x6')](){for(const [_0x397296,_0x187f31]of this[_0x3a6e('0x7')][_0x3a6e('0x15')])_0x187f31[_0x3a6e('0x10')]&&_0x3a6e('0xf')!==_0x397296&&_0x187f31[_0x3a6e('0x12')](_0x3a6e('0x2'));this[_0x3a6e('0xd')](this[_0x3a6e('0x7')][_0x3a6e('0xc')][_0x3a6e('0x1a')][_0x3a6e('0x0')]);}}
package/src/config.d.ts CHANGED
@@ -2,9 +2,9 @@
2
2
  * @module comments/config
3
3
  * @publicApi
4
4
  */
5
- import type { EditorConfig } from 'ckeditor5/src/core';
6
- import type CommentView from './comments/ui/view/commentview';
7
- import type BaseCommentThreadView from './comments/ui/view/basecommentthreadview';
5
+ import type { EditorConfig } from 'ckeditor5/src/core.js';
6
+ import type CommentView from './comments/ui/view/commentview.js';
7
+ import type BaseCommentThreadView from './comments/ui/view/basecommentthreadview.js';
8
8
  /**
9
9
  * The configuration of the comments feature.
10
10
  *
@@ -85,10 +85,10 @@ export interface CommentsConfig {
85
85
  * To provide a better experience, you may add more plugins, that will extend the default editor configuration.
86
86
  *
87
87
  * ```ts
88
- * import Autoformat from '@ckeditor/ckeditor5-autoformat/src/autoformat';
89
- * import List from '@ckeditor/ckeditor5-list/src/list';
90
- * import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold';
91
- * import Italic from '@ckeditor/ckeditor5-italic/src/italic';
88
+ * import Autoformat from '@ckeditor/ckeditor5-autoformat/src/autoformat.js';
89
+ * import List from '@ckeditor/ckeditor5-list/src/list.js';
90
+ * import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold.js';
91
+ * import Italic from '@ckeditor/ckeditor5-italic/src/italic.js';
92
92
  *
93
93
  * ClassicEditor
94
94
  * .create( {
package/src/index.d.ts CHANGED
@@ -1,21 +1,21 @@
1
- export { default as Comments } from './comments';
2
- export { default as CommentsOnly } from './commentsonly';
3
- export { default as CommentsUI } from './comments/commentsui';
4
- export { default as CommentsRepository, CommentThread, Comment } from './comments/commentsrepository';
5
- export { default as CommentThreadController } from './comments/ui/commentthreadcontroller';
6
- export { default as Annotations } from './annotations/annotations';
7
- export { default as AnnotationsUIs } from './annotations/annotationsuis';
8
- export { default as EditorAnnotations } from './annotations/editorannotations';
9
- export { default as InlineAnnotations } from './annotations/inlineannotations';
10
- export { default as WideSidebar } from './annotations/widesidebar';
11
- export { default as NarrowSidebar } from './annotations/narrowsidebar';
12
- export { default as AnnotationView } from './annotations/view/annotationview';
13
- export { default as BaseCommentView } from './comments/ui/view/basecommentview';
14
- export { default as BaseCommentThreadView } from './comments/ui/view/basecommentthreadview';
15
- export { default as CommentsListView } from './comments/ui/view/commentslistview';
16
- export { default as CommentView } from './comments/ui/view/commentview';
17
- export { default as CommentThreadInputView } from './comments/ui/view/commentthreadinputview';
18
- export type { CommentsConfig, SidebarConfig } from './config';
19
- export type { default as CommentsEditing } from './comments/commentsediting';
20
- export type { CommentDataJSON, CommentThreadContext } from './comments/commentsrepository';
21
- import './augmentation';
1
+ export { default as Comments } from './comments.js';
2
+ export { default as CommentsOnly } from './commentsonly.js';
3
+ export { default as CommentsUI } from './comments/commentsui.js';
4
+ export { default as CommentsRepository, CommentThread, Comment } from './comments/commentsrepository.js';
5
+ export { default as CommentThreadController } from './comments/ui/commentthreadcontroller.js';
6
+ export { default as Annotations } from './annotations/annotations.js';
7
+ export { default as AnnotationsUIs } from './annotations/annotationsuis.js';
8
+ export { default as EditorAnnotations } from './annotations/editorannotations.js';
9
+ export { default as InlineAnnotations } from './annotations/inlineannotations.js';
10
+ export { default as WideSidebar } from './annotations/widesidebar.js';
11
+ export { default as NarrowSidebar } from './annotations/narrowsidebar.js';
12
+ export { default as AnnotationView } from './annotations/view/annotationview.js';
13
+ export { default as BaseCommentView } from './comments/ui/view/basecommentview.js';
14
+ export { default as BaseCommentThreadView } from './comments/ui/view/basecommentthreadview.js';
15
+ export { default as CommentsListView } from './comments/ui/view/commentslistview.js';
16
+ export { default as CommentView } from './comments/ui/view/commentview.js';
17
+ export { default as CommentThreadInputView } from './comments/ui/view/commentthreadinputview.js';
18
+ export type { CommentsConfig, SidebarConfig } from './config.js';
19
+ export type { default as CommentsEditing } from './comments/commentsediting.js';
20
+ export type { CommentDataJSON, CommentThreadContext } from './comments/commentsrepository.js';
21
+ import './augmentation.js';
package/src/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export{default as Comments}from'./comments';export{default as CommentsOnly}from'./commentsonly';export{default as CommentsUI}from'./comments/commentsui';export{default as CommentsRepository,CommentThread,Comment}from'./comments/commentsrepository';export{default as CommentThreadController}from'./comments/ui/commentthreadcontroller';export{default as Annotations}from'./annotations/annotations';export{default as AnnotationsUIs}from'./annotations/annotationsuis';export{default as EditorAnnotations}from'./annotations/editorannotations';export{default as InlineAnnotations}from'./annotations/inlineannotations';export{default as WideSidebar}from'./annotations/widesidebar';export{default as NarrowSidebar}from'./annotations/narrowsidebar';export{default as AnnotationView}from'./annotations/view/annotationview';export{default as BaseCommentView}from'./comments/ui/view/basecommentview';export{default as BaseCommentThreadView}from'./comments/ui/view/basecommentthreadview';export{default as CommentsListView}from'./comments/ui/view/commentslistview';export{default as CommentView}from'./comments/ui/view/commentview';export{default as CommentThreadInputView}from'./comments/ui/view/commentthreadinputview';import'./augmentation';
23
+ export{default as Comments}from'./comments.js';export{default as CommentsOnly}from'./commentsonly.js';export{default as CommentsUI}from'./comments/commentsui.js';export{default as CommentsRepository,CommentThread,Comment}from'./comments/commentsrepository.js';export{default as CommentThreadController}from'./comments/ui/commentthreadcontroller.js';export{default as Annotations}from'./annotations/annotations.js';export{default as AnnotationsUIs}from'./annotations/annotationsuis.js';export{default as EditorAnnotations}from'./annotations/editorannotations.js';export{default as InlineAnnotations}from'./annotations/inlineannotations.js';export{default as WideSidebar}from'./annotations/widesidebar.js';export{default as NarrowSidebar}from'./annotations/narrowsidebar.js';export{default as AnnotationView}from'./annotations/view/annotationview.js';export{default as BaseCommentView}from'./comments/ui/view/basecommentview.js';export{default as BaseCommentThreadView}from'./comments/ui/view/basecommentthreadview.js';export{default as CommentsListView}from'./comments/ui/view/commentslistview.js';export{default as CommentView}from'./comments/ui/view/commentview.js';export{default as CommentThreadInputView}from'./comments/ui/view/commentthreadinputview.js';import'./augmentation.js';
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * @module comments/utils/common-translations
3
3
  */
4
- import type { Locale } from 'ckeditor5/src/utils';
4
+ import type { Locale } from 'ckeditor5/src/utils.js';
5
5
  export declare function getTranslation(locale: Locale, id: string, values?: string | Array<string> | number): string;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x90900,_0x11e235,_0x28c84c){const t=_0x90900['t'];switch(_0x11e235){case'PENDING_ACTION_COMMENT_THREAD':return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});case'Comment':return t('Comment');case'Reply...':return t('Reply...');case'Reply\x20to\x20reopen\x20discussion...':return t('Reply\x20to\x20reopen\x20discussion...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20was\x20made\x20on\x20an\x20element':return t('Comment\x20was\x20made\x20on\x20an\x20element');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Marked\x20as\x20resolved':return t('Marked\x20as\x20resolved');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Resolve':return t('Resolve');case'Reopen':return t('Reopen');case'Remove':return t('Remove');case'Reply':return t('Reply');case'Save':return t('Save');case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x28c84c);case'TOO_LONG_COMMENT_ALERT':return t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},_0x28c84c);case'EXTERNAL_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20external\x20source.','id':'EXTERNAL_COMMENT'});case'EXTERNAL_IMPORT_WORD_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_COMMENT'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x28c84c);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x28c84c);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});default:return'';}}
23
+ export function getTranslation(_0x3565df,_0x13bb13,_0x3d24bd){const t=_0x3565df['t'];switch(_0x13bb13){case'PENDING_ACTION_COMMENT_THREAD':return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});case'Comment':return t('Comment');case'Reply...':return t('Reply...');case'Reply\x20to\x20reopen\x20discussion...':return t('Reply\x20to\x20reopen\x20discussion...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20was\x20made\x20on\x20an\x20element':return t('Comment\x20was\x20made\x20on\x20an\x20element');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Marked\x20as\x20resolved':return t('Marked\x20as\x20resolved');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Resolve':return t('Resolve');case'Reopen':return t('Reopen');case'Remove':return t('Remove');case'Reply':return t('Reply');case'Save':return t('Save');case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x3d24bd);case'TOO_LONG_COMMENT_ALERT':return t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},_0x3d24bd);case'EXTERNAL_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20external\x20source.','id':'EXTERNAL_COMMENT'});case'EXTERNAL_IMPORT_WORD_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_COMMENT'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3d24bd);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3d24bd);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});default:return'';}}