@ckeditor/ckeditor5-comments 0.0.0-nightly-20231215.0 → 0.0.0-nightly-20231217.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 (85) hide show
  1. package/build/comments.js +1 -1
  2. package/package.json +4 -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 +3 -3
  81. package/src/index.d.ts +20 -20
  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 _0x275c=['hasDirtyComment','count','change:isEditMode','length','add','CommentView','editorDestroyed','resolvedCommentView','resolved','equal','editorConfig','_handleNewCommentModel','removeComment','change:hasDirtyComment','_findOptimalIndex','element','Marked\x20as\x20resolved','expand','get','change:isActive','weight','listenTo','commentUpdated','refreshVisibleViews','isActive','commentViews','_config','_model','remove','insert','authoredAt','render','editorReady','updateComment','maxCommentsWhenCollapsed','collapse','delete','set','resolvedAt','_collapsedCommentsView','destroy','_shouldCollapse','_calculatePosition','locale','comments','_handleInfoComment','_handleRemoveCommentModel','maxThreadTotalWeight','resolvedBy','focus','_updateHasDirtyComment','maxCommentCharsWhenCollapsed','visibleViews','delegate','formatDateTime','from','isEditMode','bind','stopListening','createCollection'];(function(_0x35fa52,_0x275cb4){const _0x169b4a=function(_0x5bafa3){while(--_0x5bafa3){_0x35fa52['push'](_0x35fa52['shift']());}};_0x169b4a(++_0x275cb4);}(_0x275c,0x146));const _0x169b=function(_0x35fa52,_0x275cb4){_0x35fa52=_0x35fa52-0x0;let _0x169b4a=_0x275c[_0x35fa52];return _0x169b4a;};import{View as _0x1a4ad7}from'ckeditor5/src/ui';import{diff as _0x3bed8f,Collection as _0x1ca7a7}from'ckeditor5/src/utils';import{getTranslation as _0x2fbcda}from'../../../utils/common-translations';import _0x33505c from'./collapsedcommentsview';export default class Ct extends _0x1a4ad7{constructor(_0x3f3328,_0x28269a,_0x5e5e7b){super(_0x3f3328),this[_0x169b('0xb')]('hasDirtyComment',!0x1),this[_0x169b('0xb')](_0x169b('0x25'),_0x28269a[_0x169b('0x12')][_0x169b('0x25')]),this['set'](_0x169b('0x3a'),!0x1),this['_model']=_0x28269a,this[_0x169b('0x0')]=_0x5e5e7b,this['commentViews']=this['createCollection'](),this['visibleViews']=this[_0x169b('0x21')](),this[_0x169b('0x29')]=null,this[_0x169b('0xd')]=new _0x33505c(_0x3f3328),this[_0x169b('0xd')][_0x169b('0x1f')]('count')['to'](this,_0x169b('0x25'),_0x140279=>_0x140279-this['_config'][_0x169b('0x8')]);for(const _0x1ae9b0 of _0x28269a['comments'])this[_0x169b('0x2d')](_0x1ae9b0);this[_0x169b('0x13')](),this[_0x169b('0x37')](_0x28269a[_0x169b('0x12')],'add',(_0x2823d4,_0x382e9f)=>{const _0xcafe51=this['_calculatePosition'](_0x382e9f);this[_0x169b('0x25')]++,this[_0x169b('0x2d')](_0x382e9f,_0xcafe51),this['refreshVisibleViews']();}),this[_0x169b('0x37')](_0x28269a['comments'],_0x169b('0x2'),(_0x28a227,_0x37674b)=>{this[_0x169b('0x25')]--,this[_0x169b('0x14')](_0x37674b),this[_0x169b('0x39')]();}),this[_0x169b('0x37')](_0x28269a,_0x169b('0x38'),()=>this[_0x169b('0x39')]()),this[_0x169b('0x37')](_0x28269a,'change:isResolved',()=>this['_handleInfoComment']()),this['on'](_0x169b('0x35'),()=>this[_0x169b('0x39')]()),this['on'](_0x169b('0x2f'),()=>this[_0x169b('0x39')]()),this['setTemplate']({'tag':'ul','attributes':{'class':['ck-thread__comments']},'children':this[_0x169b('0x1a')]});}get[_0x169b('0xf')](){return this[_0x169b('0x1')][_0x169b('0x36')]>this[_0x169b('0x0')][_0x169b('0x15')]&&!this[_0x169b('0x3a')]&&!this['hasDirtyComment'];}[_0x169b('0x5')](){super[_0x169b('0x5')](),this['refreshVisibleViews']();}[_0x169b('0x17')](){this[_0x169b('0x31')][_0x169b('0x17')]();}[_0x169b('0xe')](){this[_0x169b('0xd')][_0x169b('0xe')]();for(const _0x5dc4af of this['commentViews'])_0x5dc4af[_0x169b('0xe')]();super[_0x169b('0xe')]();}[_0x169b('0x39')](){this[_0x169b('0xf')]?this['_rearrangeCollapse']():this['_rearrangeExpand']();}[_0x169b('0x2d')](_0x3aa1ff,_0x10d513){const _0x2de429=new this[(_0x169b('0x0'))][(_0x169b('0x27'))](this['locale'],_0x3aa1ff,{'maxCommentCharsWhenCollapsed':this['_config'][_0x169b('0x19')],'formatDateTime':this[_0x169b('0x0')][_0x169b('0x1c')],'editorConfig':this[_0x169b('0x0')][_0x169b('0x2c')]});_0x2de429['viewUid']=_0x3aa1ff['id'],_0x2de429[_0x169b('0x1b')](_0x169b('0x2e'))['to'](this),_0x2de429['delegate'](_0x169b('0x7'))['to'](this),_0x2de429[_0x169b('0x1b')]('resolveCommentThread')['to'](this),_0x2de429[_0x169b('0x1b')](_0x169b('0x6'))['to'](this),_0x2de429[_0x169b('0x1b')](_0x169b('0x28'))['to'](this),this['listenTo'](_0x2de429,_0x169b('0x24'),()=>this[_0x169b('0x18')]()),this[_0x169b('0x3b')][_0x169b('0x26')](_0x2de429,_0x10d513);}[_0x169b('0x10')](_0x418653){const _0x5c45b4=this[_0x169b('0x1')][_0x169b('0x30')](_0x418653);return this[_0x169b('0x29')]?this[_0x169b('0x29')][_0x169b('0x4')]>_0x418653[_0x169b('0x4')]?_0x5c45b4-0x1:_0x5c45b4:_0x5c45b4-0x1;}[_0x169b('0x13')](){if(this[_0x169b('0x1')][_0x169b('0x16')]&&this['_model'][_0x169b('0xc')]){const _0x1dd6d5={'id':_0x169b('0x2a'),'author':this[_0x169b('0x1')][_0x169b('0x16')],'authoredAt':this[_0x169b('0x1')][_0x169b('0xc')],'content':_0x2fbcda(this[_0x169b('0x11')],_0x169b('0x32')),'attributes':{}};this[_0x169b('0x29')]=new this[(_0x169b('0x0'))][(_0x169b('0x27'))](this['locale'],_0x1dd6d5,{'maxCommentCharsWhenCollapsed':this[_0x169b('0x0')][_0x169b('0x19')],'formatDateTime':this[_0x169b('0x0')][_0x169b('0x1c')],'editorConfig':this['_config'][_0x169b('0x2c')],'isSystemComment':!0x0}),this[_0x169b('0x3b')]['add'](this[_0x169b('0x29')],this[_0x169b('0x1')][_0x169b('0x30')](_0x1dd6d5));}else this[_0x169b('0x29')]&&(this['commentViews']['remove'](this['resolvedCommentView']),this[_0x169b('0x29')][_0x169b('0xe')](),this[_0x169b('0x29')]=null);this[_0x169b('0x39')]();}[_0x169b('0x14')](_0x7d3d5f){const _0x2850ba=this[_0x169b('0x3b')][_0x169b('0x2')](_0x7d3d5f['id']);this[_0x169b('0x20')](_0x2850ba),_0x2850ba['isEditMode']&&this['_updateHasDirtyComment'](),_0x2850ba[_0x169b('0xe')]();}['_updateHasDirtyComment'](){this[_0x169b('0x22')]=Array['from'](this[_0x169b('0x3b')])['some'](_0x1b072b=>_0x1b072b[_0x169b('0x1e')]);}['_rearrangeCollapse'](){const _0x3fdbe9=function(_0x689d0f){const _0x95f31f=new _0x1ca7a7();for(const _0x219d4f of _0x689d0f)_0x95f31f[_0x169b('0x26')](_0x219d4f);return _0x95f31f;}(this[_0x169b('0x3b')]),_0x5d20a0=this[_0x169b('0xd')][_0x169b('0x23')];for(let _0x535b92=0x1;_0x535b92<=_0x5d20a0;_0x535b92++)_0x3fdbe9[_0x169b('0x2')](0x1);for(const _0x1bcee1 of _0x3fdbe9)_0x1bcee1[_0x169b('0x9')]();_0x5d20a0>0x0&&_0x3fdbe9[_0x169b('0x26')](this['_collapsedCommentsView'],0x1),ss(_0x3bed8f(Array[_0x169b('0x1d')](this[_0x169b('0x1a')]),Array['from'](_0x3fdbe9)),this[_0x169b('0x1a')],_0x3fdbe9);}['_rearrangeExpand'](){ss(_0x3bed8f(Array[_0x169b('0x1d')](this[_0x169b('0x1a')]),Array[_0x169b('0x1d')](this[_0x169b('0x3b')])),this[_0x169b('0x1a')],this[_0x169b('0x3b')]);for(const _0x162bfd of this[_0x169b('0x1a')])_0x162bfd[_0x169b('0x33')]();}}function ss(_0xa76d34,_0x5d65f3,_0x1b9828){let _0x9f120a=0x0;for(const _0x35f60d of _0xa76d34)switch(_0x35f60d){case _0x169b('0x3'):_0x5d65f3[_0x169b('0x26')](_0x1b9828[_0x169b('0x34')](_0x9f120a),_0x9f120a),_0x9f120a++;break;case _0x169b('0xa'):_0x5d65f3['remove'](_0x9f120a);break;case _0x169b('0x2b'):_0x9f120a++;}}
23
+ const _0x5869=['isEditMode','some','from','editorConfig','remove','_handleRemoveCommentModel','resolvedCommentView','editorDestroyed','_rearrangeCollapse','commentUpdated','resolvedAt','_rearrangeExpand','isActive','authoredAt','resolvedBy','_handleNewCommentModel','listenTo','equal','_model','_config','expand','delegate','setTemplate','maxCommentsWhenCollapsed','editorReady','createCollection','maxCommentCharsWhenCollapsed','change:isResolved','Marked\x20as\x20resolved','hasDirtyComment','stopListening','updateComment','set','render','_findOptimalIndex','formatDateTime','bind','comments','refreshVisibleViews','change:isEditMode','change:isActive','CommentView','_updateHasDirtyComment','delete','locale','length','change:hasDirtyComment','_handleInfoComment','commentViews','resolved','_collapsedCommentsView','viewUid','visibleViews','maxThreadTotalWeight','focus','ck-thread__comments','_shouldCollapse','add','destroy','resolveCommentThread','weight'];(function(_0x378b74,_0x586989){const _0x1b1123=function(_0x4e9dc5){while(--_0x4e9dc5){_0x378b74['push'](_0x378b74['shift']());}};_0x1b1123(++_0x586989);}(_0x5869,0x14d));const _0x1b11=function(_0x378b74,_0x586989){_0x378b74=_0x378b74-0x0;let _0x1b1123=_0x5869[_0x378b74];return _0x1b1123;};import{View as _0x135ffe}from'ckeditor5/src/ui.js';import{diff as _0x553c3a,Collection as _0x31bd84}from'ckeditor5/src/utils.js';import{getTranslation as _0x1d858c}from'../../../utils/common-translations.js';import _0x121c39 from'./collapsedcommentsview.js';export default class vt extends _0x135ffe{constructor(_0x135048,_0x3e751a,_0x4270df){super(_0x135048),this[_0x1b11('0x4')](_0x1b11('0x1'),!0x1),this['set'](_0x1b11('0x11'),_0x3e751a['comments']['length']),this[_0x1b11('0x4')](_0x1b11('0x2d'),!0x1),this[_0x1b11('0x33')]=_0x3e751a,this[_0x1b11('0x34')]=_0x4270df,this[_0x1b11('0x14')]=this[_0x1b11('0x3a')](),this[_0x1b11('0x18')]=this[_0x1b11('0x3a')](),this[_0x1b11('0x27')]=null,this[_0x1b11('0x16')]=new _0x121c39(_0x135048),this[_0x1b11('0x16')][_0x1b11('0x8')]('count')['to'](this,_0x1b11('0x11'),_0xc65598=>_0xc65598-this[_0x1b11('0x34')][_0x1b11('0x38')]);for(const _0x408626 of _0x3e751a[_0x1b11('0x9')])this['_handleNewCommentModel'](_0x408626);this['_handleInfoComment'](),this[_0x1b11('0x31')](_0x3e751a[_0x1b11('0x9')],_0x1b11('0x1d'),(_0x29fe85,_0x5dafa9)=>{const _0x567a35=this['_calculatePosition'](_0x5dafa9);this[_0x1b11('0x11')]++,this[_0x1b11('0x30')](_0x5dafa9,_0x567a35),this[_0x1b11('0xa')]();}),this['listenTo'](_0x3e751a[_0x1b11('0x9')],_0x1b11('0x25'),(_0xf27e31,_0x339e36)=>{this['length']--,this[_0x1b11('0x26')](_0x339e36),this[_0x1b11('0xa')]();}),this['listenTo'](_0x3e751a,_0x1b11('0x2a'),()=>this[_0x1b11('0xa')]()),this[_0x1b11('0x31')](_0x3e751a,_0x1b11('0x3c'),()=>this[_0x1b11('0x13')]()),this['on'](_0x1b11('0xc'),()=>this['refreshVisibleViews']()),this['on'](_0x1b11('0x12'),()=>this[_0x1b11('0xa')]()),this[_0x1b11('0x37')]({'tag':'ul','attributes':{'class':[_0x1b11('0x1b')]},'children':this[_0x1b11('0x18')]});}get[_0x1b11('0x1c')](){return this['_model'][_0x1b11('0x20')]>this[_0x1b11('0x34')][_0x1b11('0x19')]&&!this[_0x1b11('0x2d')]&&!this[_0x1b11('0x1')];}[_0x1b11('0x5')](){super[_0x1b11('0x5')](),this[_0x1b11('0xa')]();}['focus'](){this['element'][_0x1b11('0x1a')]();}[_0x1b11('0x1e')](){this[_0x1b11('0x16')][_0x1b11('0x1e')]();for(const _0x3111ce of this[_0x1b11('0x14')])_0x3111ce[_0x1b11('0x1e')]();super['destroy']();}[_0x1b11('0xa')](){this[_0x1b11('0x1c')]?this['_rearrangeCollapse']():this[_0x1b11('0x2c')]();}[_0x1b11('0x30')](_0x180884,_0x2064b4){const _0x4df7d9=new this[(_0x1b11('0x34'))][(_0x1b11('0xd'))](this[_0x1b11('0x10')],_0x180884,{'maxCommentCharsWhenCollapsed':this[_0x1b11('0x34')][_0x1b11('0x3b')],'formatDateTime':this['_config'][_0x1b11('0x7')],'editorConfig':this[_0x1b11('0x34')][_0x1b11('0x24')]});_0x4df7d9[_0x1b11('0x17')]=_0x180884['id'],_0x4df7d9['delegate']('removeComment')['to'](this),_0x4df7d9[_0x1b11('0x36')](_0x1b11('0x3'))['to'](this),_0x4df7d9[_0x1b11('0x36')](_0x1b11('0x1f'))['to'](this),_0x4df7d9[_0x1b11('0x36')](_0x1b11('0x39'))['to'](this),_0x4df7d9[_0x1b11('0x36')](_0x1b11('0x28'))['to'](this),this['listenTo'](_0x4df7d9,_0x1b11('0xb'),()=>this[_0x1b11('0xe')]()),this[_0x1b11('0x14')]['add'](_0x4df7d9,_0x2064b4);}['_calculatePosition'](_0x4d4be7){const _0x33133a=this['_model'][_0x1b11('0x6')](_0x4d4be7);return this[_0x1b11('0x27')]?this[_0x1b11('0x27')][_0x1b11('0x2e')]>_0x4d4be7[_0x1b11('0x2e')]?_0x33133a-0x1:_0x33133a:_0x33133a-0x1;}['_handleInfoComment'](){if(this[_0x1b11('0x33')]['resolvedBy']&&this[_0x1b11('0x33')][_0x1b11('0x2b')]){const _0x4395c0={'id':_0x1b11('0x15'),'author':this[_0x1b11('0x33')][_0x1b11('0x2f')],'authoredAt':this['_model'][_0x1b11('0x2b')],'content':_0x1d858c(this[_0x1b11('0x10')],_0x1b11('0x0')),'attributes':{}};this[_0x1b11('0x27')]=new this['_config'][(_0x1b11('0xd'))](this[_0x1b11('0x10')],_0x4395c0,{'maxCommentCharsWhenCollapsed':this[_0x1b11('0x34')][_0x1b11('0x3b')],'formatDateTime':this[_0x1b11('0x34')][_0x1b11('0x7')],'editorConfig':this[_0x1b11('0x34')][_0x1b11('0x24')],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model'][_0x1b11('0x6')](_0x4395c0));}else this['resolvedCommentView']&&(this['commentViews'][_0x1b11('0x25')](this[_0x1b11('0x27')]),this['resolvedCommentView'][_0x1b11('0x1e')](),this[_0x1b11('0x27')]=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x194281){const _0x16ecb8=this[_0x1b11('0x14')][_0x1b11('0x25')](_0x194281['id']);this[_0x1b11('0x2')](_0x16ecb8),_0x16ecb8['isEditMode']&&this[_0x1b11('0xe')](),_0x16ecb8[_0x1b11('0x1e')]();}['_updateHasDirtyComment'](){this[_0x1b11('0x1')]=Array[_0x1b11('0x23')](this[_0x1b11('0x14')])[_0x1b11('0x22')](_0x5b715d=>_0x5b715d[_0x1b11('0x21')]);}[_0x1b11('0x29')](){const _0x338573=function(_0x1df4b0){const _0x2eab95=new _0x31bd84();for(const _0x5844d1 of _0x1df4b0)_0x2eab95[_0x1b11('0x1d')](_0x5844d1);return _0x2eab95;}(this[_0x1b11('0x14')]),_0x5e2006=this[_0x1b11('0x16')]['count'];for(let _0x33cf09=0x1;_0x33cf09<=_0x5e2006;_0x33cf09++)_0x338573[_0x1b11('0x25')](0x1);for(const _0x2fc782 of _0x338573)_0x2fc782['collapse']();_0x5e2006>0x0&&_0x338573[_0x1b11('0x1d')](this[_0x1b11('0x16')],0x1),is(_0x553c3a(Array[_0x1b11('0x23')](this[_0x1b11('0x18')]),Array[_0x1b11('0x23')](_0x338573)),this[_0x1b11('0x18')],_0x338573);}['_rearrangeExpand'](){is(_0x553c3a(Array[_0x1b11('0x23')](this[_0x1b11('0x18')]),Array[_0x1b11('0x23')](this[_0x1b11('0x14')])),this[_0x1b11('0x18')],this[_0x1b11('0x14')]);for(const _0x2fa3df of this[_0x1b11('0x18')])_0x2fa3df[_0x1b11('0x35')]();}}function is(_0x1e9144,_0x5192d9,_0x1c2e62){let _0x334aab=0x0;for(const _0x3c1623 of _0x1e9144)switch(_0x3c1623){case'insert':_0x5192d9[_0x1b11('0x1d')](_0x1c2e62['get'](_0x334aab),_0x334aab),_0x334aab++;break;case _0x1b11('0xf'):_0x5192d9['remove'](_0x334aab);break;case _0x1b11('0x32'):_0x334aab++;}}
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module comments/comments/ui/view/commentthreadheaderview
7
7
  */
8
- import { View, ButtonView } from 'ckeditor5/src/ui';
9
- import type { Locale } from 'ckeditor5/src/utils';
10
- import type { CommentThread } from '../../commentsrepository';
8
+ import { View, ButtonView } from 'ckeditor5/src/ui.js';
9
+ import type { Locale } from 'ckeditor5/src/utils.js';
10
+ import type { CommentThread } from '../../commentsrepository.js';
11
11
  export declare const MAX_CONTENT_LENGTH = 150;
12
12
  /**
13
13
  * A view for the comment thread header.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x40a5=['icon','Comment\x20was\x20made\x20on\x20an\x20element','tooltip','scrollWidth','reopenButtonView','isResolvable','locale','classList','bind','offsetWidth','isEnabled','_attachContextActions','mouseenter','.ck-context','_trimContextValue','ck-context','isVisible','fire','execute','querySelector','ck-annotation__actions','add','_model','listenTo','...','hasContext','isReadOnly','label','render','div','remove','reopenCommentThread','ck-context__value','context','contextValue','value','ck-thread__header','overlay','bindTemplate','Reopen','setTemplate','_createReopenButton'];(function(_0x1655df,_0x40a5b7){const _0x70cedb=function(_0x4d1a67){while(--_0x4d1a67){_0x1655df['push'](_0x1655df['shift']());}};_0x70cedb(++_0x40a5b7);}(_0x40a5,0xc1));const _0x70ce=function(_0x1655df,_0x40a5b7){_0x1655df=_0x1655df-0x0;let _0x70cedb=_0x40a5[_0x1655df];return _0x70cedb;};import{View as _0xe7d97f,ButtonView as _0x199c09}from'ckeditor5/src/ui';import{getTranslation as _0xdffab2}from'../../../utils/common-translations';import _0x489f17 from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Tt extends _0xe7d97f{constructor(_0x1e0614,_0xe5fe10){super(_0x1e0614);const _0x48be0f=this[_0x70ce('0xd')];this[_0x70ce('0x27')]=_0xe5fe10,this[_0x70ce('0x15')]=this[_0x70ce('0x10')](),this[_0x70ce('0x19')](_0x70ce('0x0'))['to'](this[_0x70ce('0x27')],_0x70ce('0x8'),_0x12f96f=>!!_0x12f96f),this['bind'](_0x70ce('0x9'))['to'](this['_model'],_0x70ce('0x8'),_0x4d55c0=>_0x4d55c0&&_0x4d55c0[_0x70ce('0xa')]?this[_0x70ce('0x1f')](_0x4d55c0[_0x70ce('0xa')]):_0xdffab2(this['locale'],_0x70ce('0x12'))),this[_0x70ce('0xf')]({'tag':_0x70ce('0x4'),'attributes':{'class':[_0x70ce('0xb')]},'children':[{'tag':_0x70ce('0x4'),'attributes':{'class':['ck-context-wrapper']},'children':[{'tag':_0x70ce('0x4'),'attributes':{'class':[_0x70ce('0x20'),_0x48be0f['if'](_0x70ce('0x0'),'ck-context--quotes')]},'children':[{'tag':'span','attributes':{'class':[_0x70ce('0x7')]},'children':[{'text':_0x48be0f['to'](_0x70ce('0x9'))}]}]}]},{'tag':'div','attributes':{'class':[_0x70ce('0x25')]},'children':[this[_0x70ce('0x15')]]}]});}['render'](){super[_0x70ce('0x3')](),this[_0x70ce('0x1c')]();}[_0x70ce('0x10')](){const _0x324808=new _0x199c09(this['locale']);return _0x324808[_0x70ce('0x2')]=_0xdffab2(this['locale'],_0x70ce('0xe')),_0x324808[_0x70ce('0x13')]=_0xdffab2(this[_0x70ce('0x17')],_0x70ce('0xe')),_0x324808[_0x70ce('0x11')]=_0x489f17,_0x324808[_0x70ce('0x19')](_0x70ce('0x1b'))['to'](this['_model'],_0x70ce('0x1'),_0x4758cd=>!_0x4758cd),_0x324808[_0x70ce('0x19')](_0x70ce('0x21'))['to'](this[_0x70ce('0x27')],_0x70ce('0x16'),this[_0x70ce('0x27')],'isResolved',(_0x4a9926,_0x2f4552)=>_0x4a9926&&_0x2f4552),_0x324808['on'](_0x70ce('0x23'),()=>{this[_0x70ce('0x22')](_0x70ce('0x6'),this['_model']['id']);}),_0x324808;}[_0x70ce('0x1f')](_0xa77eaf){if(_0xa77eaf['length']<0x96)return _0xa77eaf;const _0x3a6aca=_0xa77eaf['lastIndexOf']('\x20',0x93);return _0xa77eaf['substring'](0x0,_0x3a6aca>-0x1?_0x3a6aca:0x93)+_0x70ce('0x29');}['_attachContextActions'](){const _0x251fab=this['element']['querySelector'](_0x70ce('0x1e')),_0x3dbe76=_0x251fab[_0x70ce('0x24')]('.ck-context__value');this['listenTo'](_0x251fab,_0x70ce('0x1d'),()=>{_0x3dbe76[_0x70ce('0x1a')]<_0x3dbe76[_0x70ce('0x14')]&&_0x251fab[_0x70ce('0x18')][_0x70ce('0x26')](_0x70ce('0xc'));}),this[_0x70ce('0x28')](_0x251fab,'mouseleave',()=>{_0x251fab[_0x70ce('0x18')][_0x70ce('0x5')]('overlay');});}}
23
+ const _0x3816=['contextValue','ck-context','offsetWidth','context','_attachContextActions','icon','execute','bind','label','classList','listenTo','isResolved','_createReopenButton','lastIndexOf','Comment\x20was\x20made\x20on\x20an\x20element','_model','isVisible','length','isResolvable','Reopen','div','ck-thread__header','mouseleave','ck-context-wrapper','render','.ck-context__value','...','querySelector','ck-annotation__actions','.ck-context','value','isEnabled','bindTemplate','overlay','setTemplate','scrollWidth','isReadOnly','locale','tooltip','_trimContextValue','hasContext','ck-context__value','span','reopenButtonView','substring'];(function(_0x465288,_0x381609){const _0x542382=function(_0x50c4c8){while(--_0x50c4c8){_0x465288['push'](_0x465288['shift']());}};_0x542382(++_0x381609);}(_0x3816,0x18b));const _0x5423=function(_0x465288,_0x381609){_0x465288=_0x465288-0x0;let _0x542382=_0x3816[_0x465288];return _0x542382;};import{View as _0x2e1b31,ButtonView as _0x3081a6}from'ckeditor5/src/ui.js';import{getTranslation as _0x3bea70}from'../../../utils/common-translations.js';import _0xdd6354 from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Tt extends _0x2e1b31{constructor(_0x32694f,_0x34b46a){super(_0x32694f);const _0x2ffee4=this[_0x5423('0x2a')];this[_0x5423('0x19')]=_0x34b46a,this[_0x5423('0x8')]=this[_0x5423('0x16')](),this[_0x5423('0x11')](_0x5423('0x5'))['to'](this[_0x5423('0x19')],_0x5423('0xd'),_0x19c795=>!!_0x19c795),this[_0x5423('0x11')](_0x5423('0xa'))['to'](this[_0x5423('0x19')],_0x5423('0xd'),_0x4fdf09=>_0x4fdf09&&_0x4fdf09[_0x5423('0x28')]?this[_0x5423('0x4')](_0x4fdf09[_0x5423('0x28')]):_0x3bea70(this[_0x5423('0x2')],_0x5423('0x18'))),this[_0x5423('0x2c')]({'tag':_0x5423('0x1e'),'attributes':{'class':[_0x5423('0x1f')]},'children':[{'tag':'div','attributes':{'class':[_0x5423('0x21')]},'children':[{'tag':'div','attributes':{'class':[_0x5423('0xb'),_0x2ffee4['if']('hasContext','ck-context--quotes')]},'children':[{'tag':_0x5423('0x7'),'attributes':{'class':[_0x5423('0x6')]},'children':[{'text':_0x2ffee4['to'](_0x5423('0xa'))}]}]}]},{'tag':_0x5423('0x1e'),'attributes':{'class':[_0x5423('0x26')]},'children':[this[_0x5423('0x8')]]}]});}[_0x5423('0x22')](){super[_0x5423('0x22')](),this[_0x5423('0xe')]();}[_0x5423('0x16')](){const _0xfee07e=new _0x3081a6(this[_0x5423('0x2')]);return _0xfee07e[_0x5423('0x12')]=_0x3bea70(this[_0x5423('0x2')],_0x5423('0x1d')),_0xfee07e[_0x5423('0x3')]=_0x3bea70(this[_0x5423('0x2')],_0x5423('0x1d')),_0xfee07e[_0x5423('0xf')]=_0xdd6354,_0xfee07e[_0x5423('0x11')](_0x5423('0x29'))['to'](this['_model'],_0x5423('0x1'),_0x731dc9=>!_0x731dc9),_0xfee07e[_0x5423('0x11')](_0x5423('0x1a'))['to'](this[_0x5423('0x19')],_0x5423('0x1c'),this[_0x5423('0x19')],_0x5423('0x15'),(_0x23d6a8,_0x255412)=>_0x23d6a8&&_0x255412),_0xfee07e['on'](_0x5423('0x10'),()=>{this['fire']('reopenCommentThread',this[_0x5423('0x19')]['id']);}),_0xfee07e;}[_0x5423('0x4')](_0x2a55cc){if(_0x2a55cc[_0x5423('0x1b')]<0x96)return _0x2a55cc;const _0x4c35d7=_0x2a55cc[_0x5423('0x17')]('\x20',0x93);return _0x2a55cc[_0x5423('0x9')](0x0,_0x4c35d7>-0x1?_0x4c35d7:0x93)+_0x5423('0x24');}[_0x5423('0xe')](){const _0x31ff78=this['element'][_0x5423('0x25')](_0x5423('0x27')),_0x36624e=_0x31ff78[_0x5423('0x25')](_0x5423('0x23'));this[_0x5423('0x14')](_0x31ff78,'mouseenter',()=>{_0x36624e[_0x5423('0xc')]<_0x36624e[_0x5423('0x0')]&&_0x31ff78['classList']['add'](_0x5423('0x2b'));}),this[_0x5423('0x14')](_0x31ff78,_0x5423('0x20'),()=>{_0x31ff78[_0x5423('0x13')]['remove'](_0x5423('0x2b'));});}}
@@ -5,11 +5,11 @@
5
5
  /**
6
6
  * @module comments/comments/ui/view/commentthreadinputview
7
7
  */
8
- import { View } from 'ckeditor5/src/ui';
9
- import CommentInputView from './commentinputview';
10
- import type { Locale } from 'ckeditor5/src/utils';
11
- import type { EditorConfig } from 'ckeditor5/src/core';
12
- import { UserView, type User } from 'ckeditor5-collaboration/src/collaboration-core';
8
+ import { View } from 'ckeditor5/src/ui.js';
9
+ import CommentInputView from './commentinputview.js';
10
+ import type { Locale } from 'ckeditor5/src/utils.js';
11
+ import type { EditorConfig } from 'ckeditor5/src/core.js';
12
+ import { UserView, type User } from 'ckeditor5-collaboration/src/collaboration-core.js';
13
13
  /**
14
14
  * View that represents comment input area for a comment thread. Includes editor, user view and buttons.
15
15
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x1ac9=['extendTemplate','showButtons','editorReady','ck-thread__user','set','isFocused','userView','value','ck-comment__input-container--active','then','editorDestroyed','showInput','ck-comment__input-container','destroy','createEditor','div','commentInputView','delegate','editor'];(function(_0x3a1b28,_0x1ac901){var _0x1f1410=function(_0x463e8d){while(--_0x463e8d){_0x3a1b28['push'](_0x3a1b28['shift']());}};_0x1f1410(++_0x1ac901);}(_0x1ac9,0x158));var _0x1f14=function(_0x3a1b28,_0x1ac901){_0x3a1b28=_0x3a1b28-0x0;var _0x1f1410=_0x1ac9[_0x3a1b28];return _0x1f1410;};import{View as _0x56f4af}from'ckeditor5/src/ui';import _0x7afbef from'./commentinputview';import{UserView as _0x37cad8}from'ckeditor5-collaboration/src/collaboration-core';export default class At extends _0x56f4af{constructor(_0x49b15f,_0x58c5b7,_0x46c4e0){super(_0x49b15f),this[_0x1f14('0xe')]=new _0x7afbef(_0x49b15f,_0x46c4e0),this[_0x1f14('0xe')]['bind'](_0x1f14('0x12'))['to'](this[_0x1f14('0xe')]['focusTracker'],_0x1f14('0x3'),this[_0x1f14('0xe')],_0x1f14('0x5'),(_0xd2f48a,_0x390593)=>_0xd2f48a||!!_0x390593),this[_0x1f14('0x2')](_0x1f14('0x9'),!0x1),this['on']('change:showInput',()=>{this['showInput']&&!this[_0x1f14('0xe')][_0x1f14('0x10')]&&this[_0x1f14('0xe')][_0x1f14('0xc')]();}),this[_0x1f14('0xe')][_0x1f14('0xf')](_0x1f14('0x0'))['to'](this),this[_0x1f14('0xe')][_0x1f14('0xf')](_0x1f14('0x8'))['to'](this),this[_0x1f14('0x4')]=new _0x37cad8(_0x49b15f,_0x58c5b7),this['userView']['extendTemplate']({'attributes':{'class':_0x1f14('0x1')}}),this[_0x1f14('0xe')][_0x1f14('0x11')]({'attributes':{'class':'ck-thread__input'}}),this['setTemplate']({'tag':_0x1f14('0xd'),'attributes':{'class':[_0x1f14('0xa'),this['bindTemplate']['if']('showInput',_0x1f14('0x6'))]},'children':[this['userView'],this['commentInputView']]});}['destroy'](){return this['commentInputView'][_0x1f14('0xb')]()[_0x1f14('0x7')](()=>super['destroy']());}}
23
+ var _0x3e01=['ck-comment__input-container','change:showInput','isFocused','extendTemplate','createEditor','showInput','value','editorDestroyed','ck-comment__input-container--active','destroy','div','bind','ck-thread__input','then','bindTemplate','editor','commentInputView','delegate','editorReady','set','userView','showButtons'];(function(_0x1e07a9,_0x3e01f5){var _0x51730b=function(_0x186b7b){while(--_0x186b7b){_0x1e07a9['push'](_0x1e07a9['shift']());}};_0x51730b(++_0x3e01f5);}(_0x3e01,0xe2));var _0x5173=function(_0x1e07a9,_0x3e01f5){_0x1e07a9=_0x1e07a9-0x0;var _0x51730b=_0x3e01[_0x1e07a9];return _0x51730b;};import{View as _0x4bc2d6}from'ckeditor5/src/ui.js';import _0x1c1e60 from'./commentinputview.js';import{UserView as _0xff231b}from'ckeditor5-collaboration/src/collaboration-core.js';export default class Ct extends _0x4bc2d6{constructor(_0x485930,_0x197e07,_0x40e411){super(_0x485930),this[_0x5173('0xa')]=new _0x1c1e60(_0x485930,_0x40e411),this[_0x5173('0xa')][_0x5173('0x5')](_0x5173('0xf'))['to'](this[_0x5173('0xa')]['focusTracker'],_0x5173('0x12'),this['commentInputView'],_0x5173('0x0'),(_0x4a31a2,_0x553e68)=>_0x4a31a2||!!_0x553e68),this[_0x5173('0xd')](_0x5173('0x15'),!0x1),this['on'](_0x5173('0x11'),()=>{this[_0x5173('0x15')]&&!this['commentInputView'][_0x5173('0x9')]&&this['commentInputView'][_0x5173('0x14')]();}),this[_0x5173('0xa')][_0x5173('0xb')](_0x5173('0xc'))['to'](this),this[_0x5173('0xa')]['delegate'](_0x5173('0x1'))['to'](this),this['userView']=new _0xff231b(_0x485930,_0x197e07),this[_0x5173('0xe')][_0x5173('0x13')]({'attributes':{'class':'ck-thread__user'}}),this[_0x5173('0xa')][_0x5173('0x13')]({'attributes':{'class':_0x5173('0x6')}}),this['setTemplate']({'tag':_0x5173('0x4'),'attributes':{'class':[_0x5173('0x10'),this[_0x5173('0x8')]['if']('showInput',_0x5173('0x2'))]},'children':[this[_0x5173('0xe')],this[_0x5173('0xa')]]});}[_0x5173('0x3')](){return this[_0x5173('0xa')][_0x5173('0x3')]()[_0x5173('0x7')](()=>super[_0x5173('0x3')]());}}
@@ -6,13 +6,13 @@
6
6
  * @module comments/comments/ui/view/commentthreadview
7
7
  * @publicApi
8
8
  */
9
- import { type Locale } from 'ckeditor5/src/utils';
10
- import { type User } from 'ckeditor5-collaboration/src/collaboration-core';
11
- import { ButtonView, type TemplateDefinition, type ViewCollection } from 'ckeditor5/src/ui';
12
- import BaseCommentThreadView from './basecommentthreadview';
13
- import type { CommentThread } from '../../commentsrepository';
14
- import type { CommentThreadConfig } from '../../../config';
15
- declare const CommentThreadView_base: import("ckeditor5/src/utils").Mixed<typeof BaseCommentThreadView, import("@ckeditor/ckeditor5-collaboration-core/src/utils/confirmmixin").ConfirmApi>;
9
+ import { type Locale } from 'ckeditor5/src/utils.js';
10
+ import { type User } from 'ckeditor5-collaboration/src/collaboration-core.js';
11
+ import { ButtonView, type TemplateDefinition, type ViewCollection } from 'ckeditor5/src/ui.js';
12
+ import BaseCommentThreadView from './basecommentthreadview.js';
13
+ import type { CommentThread } from '../../commentsrepository.js';
14
+ import type { CommentThreadConfig } from '../../../config.js';
15
+ declare const CommentThreadView_base: import("ckeditor5/src/utils.js").Mixed<typeof BaseCommentThreadView, import("@ckeditor/ckeditor5-collaboration-core/src/utils/confirmmixin.js").ConfirmApi>;
16
16
  /**
17
17
  * The default view for comment thread.
18
18
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x567f=['Write\x20a\x20comment...','then','has','placeholder','actionIndicator','ck-thread','_model','get','element','commentsListView','commentThreadHeaderView','high','ck-thread__container','Delete\x20comment\x20thread?','isEnabled','change:archivedAt','label','ck-thread--active','remove','commentThreadChildren','addMany','setTemplate','_createResolveButton','ck-thread--','fire','containerElement','change:isActive','removeButton','tooltip','cancelConfirm','stop','.ck-thread__container','isActive','showConfirm','div','icon','render','bind','length','listenTo','_boundFirstCommentView','actionBar','isSystemComment','_bindFirstCommentView','execute','getTemplate','add','commentViews','isUnlinked','commentThreadInputView','resolveCommentThread','ck-thread--remove-confirmation','bindTemplate','locale','isConfirm','_cancelAllConfirms','ck-comment--resolve','change:isReadOnly','ck-reset_all-excluded','resolveButton','ck-thread--unlinked','Resolve'];(function(_0x1166df,_0x567f8a){const _0x4f0d84=function(_0x152315){while(--_0x152315){_0x1166df['push'](_0x1166df['shift']());}};_0x4f0d84(++_0x567f8a);}(_0x567f,0xad));const _0x4f0d=function(_0x1166df,_0x567f8a){_0x1166df=_0x1166df-0x0;let _0x4f0d84=_0x567f[_0x1166df];return _0x4f0d84;};import{ConfirmMixin as _0x27ef85}from'ckeditor5-collaboration/src/collaboration-core';import{ButtonView as _0x13ccae}from'ckeditor5/src/ui';import{icons as _0x182c2f}from'ckeditor5/src/core';import _0x46fe0d from'./basecommentthreadview';import{getTranslation as _0x49e2a5}from'../../../utils/common-translations';export default class ft extends _0x27ef85(_0x46fe0d){constructor(_0x327108,_0x4b19fb,_0x43eb65,_0x548654){super(_0x327108,_0x4b19fb,_0x43eb65,_0x548654),this[_0x4f0d('0x20')]=this['createCollection'](),this[_0x4f0d('0x20')][_0x4f0d('0x21')]([this[_0x4f0d('0x16')],this[_0x4f0d('0x0')]]),this['_model']['archivedAt']&&this[_0x4f0d('0x20')][_0x4f0d('0x3b')](this[_0x4f0d('0x17')],0x0),this[_0x4f0d('0x13')]['on'](_0x4f0d('0x1c'),(_0x3166f1,_0x5579c9,_0x18ca54)=>{_0x18ca54?this['commentThreadChildren'][_0x4f0d('0xf')](this[_0x4f0d('0x17')])||this[_0x4f0d('0x20')][_0x4f0d('0x3b')](this[_0x4f0d('0x17')],0x0):this[_0x4f0d('0x20')][_0x4f0d('0x1f')](this[_0x4f0d('0x17')]);}),this['set']('actionIndicator',null),this[_0x4f0d('0x26')]=null,this['_boundFirstCommentView']=null,this[_0x4f0d('0x4')]=_0x327108,this[_0x4f0d('0xa')]=this[_0x4f0d('0x23')](),this[_0x4f0d('0x22')](this[_0x4f0d('0x3a')]()),this['on'](_0x4f0d('0x27'),(_0x3b3c75,_0xd871ae,_0x3a2f51)=>{_0x3a2f51||this[_0x4f0d('0x6')]();}),this[_0x4f0d('0x34')](this['_model'],_0x4f0d('0x8'),(_0x4fd6c6,_0x34ff86,_0x16814e)=>{_0x16814e&&this['_cancelAllConfirms']();}),this[_0x4f0d('0x33')]>0x0&&this[_0x4f0d('0x38')](),this[_0x4f0d('0x34')](this[_0x4f0d('0x16')][_0x4f0d('0x3c')],_0x4f0d('0x3b'),()=>{this[_0x4f0d('0x38')]();});}['getTemplate'](){const _0x390017=this[_0x4f0d('0x3')];return{'tag':_0x4f0d('0x2f'),'attributes':{'class':[_0x4f0d('0x12'),_0x4f0d('0x9'),_0x390017['if'](_0x4f0d('0x2d'),_0x4f0d('0x1e')),_0x390017['if'](_0x4f0d('0x3d'),_0x4f0d('0xb')),_0x390017['if'](_0x4f0d('0x5'),_0x4f0d('0x2')),_0x390017['to'](_0x4f0d('0x11'),_0x5a1bee=>_0x5a1bee?_0x4f0d('0x24')+_0x5a1bee:'')],'data-thread-id':this[_0x4f0d('0x13')]['id'],'tabindex':-0x1},'children':[{'tag':_0x4f0d('0x2f'),'attributes':{'class':_0x4f0d('0x19')},'children':this['commentThreadChildren']}]};}['render'](){super[_0x4f0d('0x31')](),this[_0x4f0d('0x26')]=this[_0x4f0d('0x15')]['querySelector'](_0x4f0d('0x2c'));}[_0x4f0d('0x6')](){this[_0x4f0d('0x2a')]();for(const _0x2e63a8 of this[_0x4f0d('0x16')][_0x4f0d('0x3c')])_0x2e63a8[_0x4f0d('0x2a')]();}[_0x4f0d('0x38')](){const {locale:_0x36f4b9}=this,_0x511b8b=this[_0x4f0d('0x16')][_0x4f0d('0x3c')][_0x4f0d('0x14')](0x0);_0x511b8b===this[_0x4f0d('0x35')]||_0x511b8b[_0x4f0d('0x37')]||(this[_0x4f0d('0x35')]=_0x511b8b,this['unbind'](_0x4f0d('0x11')),this[_0x4f0d('0x32')](_0x4f0d('0x11'))['to'](_0x511b8b,'actionIndicator',_0x2dd415=>_0x4f0d('0x1f')===_0x2dd415?_0x4f0d('0x1f'):null),_0x511b8b[_0x4f0d('0x10')]=_0x49e2a5(_0x36f4b9,_0x4f0d('0xd')),_0x511b8b[_0x4f0d('0x28')]['on']('execute',_0x33e387=>{_0x33e387[_0x4f0d('0x2b')](),this[_0x4f0d('0x2e')](_0x49e2a5(_0x36f4b9,_0x4f0d('0x1a')),this[_0x4f0d('0x26')])[_0x4f0d('0xe')](()=>{this[_0x4f0d('0x25')]('removeCommentThread');});},{'priority':_0x4f0d('0x18')}),_0x511b8b[_0x4f0d('0x36')][_0x4f0d('0x3b')](this[_0x4f0d('0xa')],0x0));}[_0x4f0d('0x23')](){const _0x5309fe=new _0x13ccae(this[_0x4f0d('0x4')]);return _0x5309fe[_0x4f0d('0x1d')]=_0x49e2a5(this[_0x4f0d('0x4')],_0x4f0d('0xc')),_0x5309fe[_0x4f0d('0x29')]=_0x49e2a5(this[_0x4f0d('0x4')],_0x4f0d('0xc')),_0x5309fe[_0x4f0d('0x30')]=_0x182c2f['check'],_0x5309fe['extendTemplate']({'attributes':{'class':_0x4f0d('0x7')}}),_0x5309fe[_0x4f0d('0x32')](_0x4f0d('0x1b'))['to'](this[_0x4f0d('0x13')],'isReadOnly',_0x1e7402=>!_0x1e7402),_0x5309fe[_0x4f0d('0x32')]('isVisible')['to'](this[_0x4f0d('0x13')],'isResolvable',this[_0x4f0d('0x13')],'isResolved',(_0x587e34,_0x419382)=>_0x587e34&&!_0x419382),_0x5309fe['on'](_0x4f0d('0x39'),()=>{this['fire'](_0x4f0d('0x1'),this[_0x4f0d('0x13')]['id']);}),_0x5309fe;}}
23
+ const _0xfd30=['then','check','isResolved','bind','commentThreadHeaderView','actionIndicator','removeButton','icon','change:isReadOnly','_model','resolveCommentThread','commentsListView','_bindFirstCommentView','isActive','_boundFirstCommentView','remove','unbind','add','label','extendTemplate','execute','commentThreadInputView','actionBar','listenTo','resolveButton','_cancelAllConfirms','ck-thread--remove-confirmation','get','ck-comment--resolve','isReadOnly','isConfirm','locale','ck-thread__container','commentThreadChildren','fire','ck-thread','placeholder','getTemplate','element','cancelConfirm','set','querySelector','stop','tooltip','render','ck-thread--','createCollection','archivedAt','bindTemplate','removeCommentThread','showConfirm','isVisible','has','commentViews','ck-thread--unlinked','ck-reset_all-excluded','addMany','Resolve','.ck-thread__container','isResolvable','ck-thread--active','containerElement','high','div'];(function(_0x552d5f,_0xfd30a8){const _0x5eddf4=function(_0x304587){while(--_0x304587){_0x552d5f['push'](_0x552d5f['shift']());}};_0x5eddf4(++_0xfd30a8);}(_0xfd30,0x1ca));const _0x5edd=function(_0x552d5f,_0xfd30a8){_0x552d5f=_0x552d5f-0x0;let _0x5eddf4=_0xfd30[_0x552d5f];return _0x5eddf4;};import{ConfirmMixin as _0x3203e6}from'ckeditor5-collaboration/src/collaboration-core.js';import{ButtonView as _0x45201b}from'ckeditor5/src/ui.js';import{icons as _0x3a8342}from'ckeditor5/src/core.js';import _0x5096f8 from'./basecommentthreadview.js';import{getTranslation as _0xa26248}from'../../../utils/common-translations.js';export default class ft extends _0x3203e6(_0x5096f8){constructor(_0xf2d6a0,_0xef1df,_0x58c938,_0x44d19e){super(_0xf2d6a0,_0xef1df,_0x58c938,_0x44d19e),this[_0x5edd('0x17')]=this[_0x5edd('0x24')](),this[_0x5edd('0x17')][_0x5edd('0x2e')]([this[_0x5edd('0x1')],this[_0x5edd('0xb')]]),this[_0x5edd('0x3f')][_0x5edd('0x25')]&&this[_0x5edd('0x17')][_0x5edd('0x7')](this[_0x5edd('0x3a')],0x0),this[_0x5edd('0x3f')]['on']('change:archivedAt',(_0x49fcc7,_0x508da0,_0x1233d9)=>{_0x1233d9?this[_0x5edd('0x17')][_0x5edd('0x2a')](this[_0x5edd('0x3a')])||this[_0x5edd('0x17')][_0x5edd('0x7')](this[_0x5edd('0x3a')],0x0):this[_0x5edd('0x17')][_0x5edd('0x5')](this[_0x5edd('0x3a')]);}),this[_0x5edd('0x1e')]('actionIndicator',null),this[_0x5edd('0x33')]=null,this[_0x5edd('0x4')]=null,this['locale']=_0xf2d6a0,this[_0x5edd('0xe')]=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x2d78c5,_0x57c814,_0x21f16d)=>{_0x21f16d||this[_0x5edd('0xf')]();}),this[_0x5edd('0xd')](this[_0x5edd('0x3f')],_0x5edd('0x3e'),(_0x340164,_0x42f625,_0x38f263)=>{_0x38f263&&this[_0x5edd('0xf')]();}),this['length']>0x0&&this[_0x5edd('0x2')](),this[_0x5edd('0xd')](this[_0x5edd('0x1')]['commentViews'],_0x5edd('0x7'),()=>{this['_bindFirstCommentView']();});}[_0x5edd('0x1b')](){const _0x1ac3fc=this[_0x5edd('0x26')];return{'tag':_0x5edd('0x35'),'attributes':{'class':[_0x5edd('0x19'),_0x5edd('0x2d'),_0x1ac3fc['if'](_0x5edd('0x3'),_0x5edd('0x32')),_0x1ac3fc['if']('isUnlinked',_0x5edd('0x2c')),_0x1ac3fc['if'](_0x5edd('0x14'),_0x5edd('0x10')),_0x1ac3fc['to'](_0x5edd('0x3b'),_0x1df471=>_0x1df471?_0x5edd('0x23')+_0x1df471:'')],'data-thread-id':this[_0x5edd('0x3f')]['id'],'tabindex':-0x1},'children':[{'tag':_0x5edd('0x35'),'attributes':{'class':_0x5edd('0x16')},'children':this['commentThreadChildren']}]};}[_0x5edd('0x22')](){super[_0x5edd('0x22')](),this[_0x5edd('0x33')]=this[_0x5edd('0x1c')][_0x5edd('0x1f')](_0x5edd('0x30'));}[_0x5edd('0xf')](){this['cancelConfirm']();for(const _0x3a5c57 of this['commentsListView']['commentViews'])_0x3a5c57[_0x5edd('0x1d')]();}[_0x5edd('0x2')](){const {locale:_0x471881}=this,_0x5a9ef6=this[_0x5edd('0x1')][_0x5edd('0x2b')][_0x5edd('0x11')](0x0);_0x5a9ef6===this['_boundFirstCommentView']||_0x5a9ef6['isSystemComment']||(this[_0x5edd('0x4')]=_0x5a9ef6,this[_0x5edd('0x6')](_0x5edd('0x3b')),this[_0x5edd('0x39')]('actionIndicator')['to'](_0x5a9ef6,'actionIndicator',_0x5bf46b=>_0x5edd('0x5')===_0x5bf46b?_0x5edd('0x5'):null),_0x5a9ef6[_0x5edd('0x1a')]=_0xa26248(_0x471881,'Write\x20a\x20comment...'),_0x5a9ef6[_0x5edd('0x3c')]['on'](_0x5edd('0xa'),_0xb08aea=>{_0xb08aea[_0x5edd('0x20')](),this[_0x5edd('0x28')](_0xa26248(_0x471881,'Delete\x20comment\x20thread?'),this[_0x5edd('0x33')])[_0x5edd('0x36')](()=>{this[_0x5edd('0x18')](_0x5edd('0x27'));});},{'priority':_0x5edd('0x34')}),_0x5a9ef6[_0x5edd('0xc')][_0x5edd('0x7')](this[_0x5edd('0xe')],0x0));}['_createResolveButton'](){const _0x5ba29a=new _0x45201b(this[_0x5edd('0x15')]);return _0x5ba29a[_0x5edd('0x8')]=_0xa26248(this[_0x5edd('0x15')],_0x5edd('0x2f')),_0x5ba29a[_0x5edd('0x21')]=_0xa26248(this[_0x5edd('0x15')],_0x5edd('0x2f')),_0x5ba29a[_0x5edd('0x3d')]=_0x3a8342[_0x5edd('0x37')],_0x5ba29a[_0x5edd('0x9')]({'attributes':{'class':_0x5edd('0x12')}}),_0x5ba29a[_0x5edd('0x39')]('isEnabled')['to'](this[_0x5edd('0x3f')],_0x5edd('0x13'),_0x3dc764=>!_0x3dc764),_0x5ba29a['bind'](_0x5edd('0x29'))['to'](this[_0x5edd('0x3f')],_0x5edd('0x31'),this[_0x5edd('0x3f')],_0x5edd('0x38'),(_0x58cab7,_0x5cae4d)=>_0x58cab7&&!_0x5cae4d),_0x5ba29a['on']('execute',()=>{this['fire'](_0x5edd('0x0'),this['_model']['id']);}),_0x5ba29a;}}
@@ -6,14 +6,14 @@
6
6
  * @module comments/comments/ui/view/commentview
7
7
  * @publicApi
8
8
  */
9
- import { type Locale } from 'ckeditor5/src/utils';
10
- import { ButtonView, type TemplateDefinition, type ViewCollection, type DropdownView } from 'ckeditor5/src/ui';
11
- import { UserView } from 'ckeditor5-collaboration/src/collaboration-core';
12
- import BaseCommentView from './basecommentview';
13
- import type { Comment } from '../../commentsrepository';
14
- import type CommentInputView from './commentinputview';
15
- import type { CommentViewConfig } from '../../../config';
16
- declare const CommentView_base: import("ckeditor5/src/utils").Mixed<typeof BaseCommentView, import("@ckeditor/ckeditor5-collaboration-core/src/utils/confirmmixin").ConfirmApi>;
9
+ import { type Locale } from 'ckeditor5/src/utils.js';
10
+ import { ButtonView, type TemplateDefinition, type ViewCollection, type DropdownView } from 'ckeditor5/src/ui.js';
11
+ import { UserView } from 'ckeditor5-collaboration/src/collaboration-core.js';
12
+ import BaseCommentView from './basecommentview.js';
13
+ import type { Comment } from '../../commentsrepository.js';
14
+ import type CommentInputView from './commentinputview.js';
15
+ import type { CommentViewConfig } from '../../../config.js';
16
+ declare const CommentView_base: import("ckeditor5/src/utils.js").Mixed<typeof BaseCommentView, import("@ckeditor/ckeditor5-collaboration-core/src/utils/confirmmixin.js").ConfirmApi>;
17
17
  /**
18
18
  * The default view for comment.
19
19
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x28c2=['_createRemoveButton','change:isRemovable','ck-annotation__content-wrapper','EXTERNAL_IMPORT_WORD_COMMENT','listenTo','focus','bind','removeComment','some','ck-annotation__actions--hidden','Delete\x20comment?','icon','time','isReadOnly','div','attributes','ck-annotation','isRemovable','_attachActions','Remove','ck-comment--','ck-annotation__actions','ck-annotation__info-name','creator','panelView','getTemplate','blur','addMany','_createCommentInputView','execute','name','ck-comment__actions--hidden','withText','mouseleave','isEditMode','ck-annotation__info-time','@external','span','ck-comment--remove','ck-comment__actions','setTemplate','authoredAt','children','mouseenter','push','actionBar','_createDropdown','ck-comment__wrapper','buttonView','EXTERNAL_COMMENT','resolvedAt','createCollection','EXTERNAL_AVATAR','getExternalCommentNote','source','locale','isSystemComment','Reply...','placeholder','actionIndicator','ck-annotation__info','editButton','importWord','ck-comment__info-time','isExternal','isEditable','remove','_model','switchToEditMode','set','items','author','add','ck-comment__user','ck-annotation__main','extendTemplate','_config','getUserViewNotificationText','ck-comment__info','panelPosition','label','userView','isVisible','element','ck-comment--edit','edit','visibleView','ck-comment--remove-confirmation','removeButton','ck-comment--info','render','ck-comment','dropdown','threeVerticalDots','ck-comment__main','ck-annotation__user','Edit','fire','then','isEnabled'];(function(_0x121b78,_0x28c2f7){const _0x1e6b5f=function(_0x462e32){while(--_0x462e32){_0x121b78['push'](_0x121b78['shift']());}};_0x1e6b5f(++_0x28c2f7);}(_0x28c2,0xb0));const _0x1e6b=function(_0x121b78,_0x28c2f7){_0x121b78=_0x121b78-0x0;let _0x1e6b5f=_0x28c2[_0x121b78];return _0x1e6b5f;};import{ButtonView as _0x277896,createDropdown as _0x10ae6d,ListView as _0x12a9f2,ListItemView as _0x600fc9}from'ckeditor5/src/ui';import{icons as _0x28aa0d}from'ckeditor5/src/core';import{UserView as _0x2941af,ConfirmMixin as _0x41cfbd}from'ckeditor5-collaboration/src/collaboration-core';import _0x1bf420 from'./basecommentview';import _0x1883a7 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x5e2f40}from'../../../utils/common-translations';export default class pt extends _0x41cfbd(_0x1bf420){constructor(_0x235b5c,_0x154816,_0x283f86){super(_0x235b5c,_0x154816,_0x283f86),this['set'](_0x1e6b('0x53'),null),this[_0x1e6b('0x5d')](_0x1e6b('0x52'),_0x5e2f40(_0x235b5c,_0x1e6b('0x51'))),this[_0x1e6b('0x1e')](_0x1e6b('0x41'))['to'](_0x154816),this[_0x1e6b('0x1e')](_0x1e6b('0x4a'))['to'](_0x154816),this[_0x1e6b('0x45')]=this['createCollection'](),this[_0x1e6b('0x50')]||(this[_0x1e6b('0x55')]=this['_createEditButton'](),this[_0x1e6b('0xc')]=this[_0x1e6b('0x18')](),this['items']=this[_0x1e6b('0x4b')](),this['items'][_0x1e6b('0x33')]([this['editButton'],this[_0x1e6b('0xc')]]),this[_0x1e6b('0x10')]=this[_0x1e6b('0x46')](),this[_0x1e6b('0x45')][_0x1e6b('0x60')](this[_0x1e6b('0x10')])),this[_0x1e6b('0x5')]=new _0x2941af(_0x235b5c,_0x154816[_0x1e6b('0x5f')],this['getUserViewNotificationText']()),this[_0x1e6b('0x5')]['extendTemplate']({'attributes':{'class':[_0x1e6b('0x61'),_0x1e6b('0x13')]}}),this[_0x1e6b('0x1c')](_0x154816,_0x1e6b('0x19'),()=>this['cancelConfirm']()),this[_0x1e6b('0x40')](this['getTemplate']());}[_0x1e6b('0x31')](){const _0x1a748d=this['bindTemplate'],_0x24bc2f=[{'tag':_0x1e6b('0x26'),'attributes':{'class':[_0x1e6b('0x2'),_0x1e6b('0x54')]},'children':[{'tag':_0x1e6b('0x3d'),'children':[{'text':this['userView'][_0x1e6b('0x36')]}],'attributes':{'class':['ck-comment__info-name',_0x1e6b('0x2e')]}},{'tag':_0x1e6b('0x24'),'attributes':{'datetime':_0x1a748d['to'](_0x1e6b('0x41')),'class':[_0x1e6b('0x57'),_0x1e6b('0x3b')]},'children':[{'text':_0x1a748d['to'](_0x1e6b('0x41'),_0x4e3535=>this[_0x1e6b('0x0')]['formatDateTime'](_0x4e3535))}]}]},{'tag':_0x1e6b('0x26'),'attributes':{'class':[_0x1e6b('0x3f'),_0x1e6b('0x2d'),_0x1a748d['if'](_0x1e6b('0x3a'),_0x1e6b('0x37')),_0x1a748d['if'](_0x1e6b('0x3a'),_0x1e6b('0x21'))]},'children':this[_0x1e6b('0x45')]},{'tag':'div','attributes':{'class':[_0x1e6b('0x1a')]},'children':this[_0x1e6b('0xa')]}];return this[_0x1e6b('0x5b')][_0x1e6b('0x58')]&&_0x24bc2f[_0x1e6b('0x44')]({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this[_0x1e6b('0x4d')]()}]}),{'tag':'li','attributes':{'class':[_0x1e6b('0x47'),_0x1a748d['if']('isConfirm',_0x1e6b('0xb'))],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':[_0x1e6b('0xf'),_0x1e6b('0x28'),_0x1a748d['if'](_0x1e6b('0x3a'),_0x1e6b('0x8')),_0x1a748d['if'](_0x1e6b('0x50'),_0x1e6b('0xd')),_0x1a748d['to'](_0x1e6b('0x53'),_0x3168f3=>_0x3168f3?_0x1e6b('0x2c')+_0x3168f3:'')],'data-author-id':this[_0x1e6b('0x5b')][_0x1e6b('0x5f')]['id'],'data-comment-id':this['_model']['id']},'children':[this[_0x1e6b('0x5')],{'tag':_0x1e6b('0x26'),'attributes':{'class':[_0x1e6b('0x12'),_0x1e6b('0x62')]},'children':_0x24bc2f}]}]};}['_createEditButton'](){const _0x339955=new _0x277896(this[_0x1e6b('0x4f')]);return _0x339955['label']=_0x5e2f40(this[_0x1e6b('0x4f')],_0x1e6b('0x14')),_0x339955['icon']=_0x28aa0d['pencil'],_0x339955[_0x1e6b('0x38')]=!0x0,_0x339955['extendTemplate']({'attributes':{'class':_0x1e6b('0x8')}}),_0x339955['bind'](_0x1e6b('0x17'))['to'](this['_model'],_0x1e6b('0x25'),_0x15668a=>!_0x15668a),_0x339955[_0x1e6b('0x1e')](_0x1e6b('0x6'))['to'](this[_0x1e6b('0x5b')],_0x1e6b('0x59')),_0x339955['on'](_0x1e6b('0x35'),()=>this[_0x1e6b('0x5c')]()),_0x339955;}['_createRemoveButton'](){const _0x350a13=new _0x277896(this[_0x1e6b('0x4f')]);return _0x350a13[_0x1e6b('0x4')]=_0x5e2f40(this[_0x1e6b('0x4f')],_0x1e6b('0x2b')),_0x350a13[_0x1e6b('0x23')]=_0x1883a7,_0x350a13[_0x1e6b('0x38')]=!0x0,_0x350a13[_0x1e6b('0x63')]({'attributes':{'class':_0x1e6b('0x3e')}}),_0x350a13[_0x1e6b('0x1e')]('isEnabled')['to'](this['_model'],'isReadOnly',_0x270f10=>!_0x270f10),_0x350a13['bind'](_0x1e6b('0x6'))['to'](this[_0x1e6b('0x5b')],_0x1e6b('0x29')),_0x350a13['on'](_0x1e6b('0x35'),()=>{this['showConfirm'](_0x5e2f40(this[_0x1e6b('0x4f')],_0x1e6b('0x22')),this['element'])[_0x1e6b('0x16')](()=>{this[_0x1e6b('0x15')](_0x1e6b('0x1f'),this[_0x1e6b('0x5b')]['id']);});}),_0x350a13;}[_0x1e6b('0x46')](){const _0x52884e=_0x10ae6d(this['locale']),_0x9df9ce=_0x52884e[_0x1e6b('0x30')]['children'],_0x6b0892=new _0x12a9f2(this[_0x1e6b('0x4f')]),_0x411bc0=(_0xdd6ca0,_0x1e3547=-0x1)=>{const _0x31b65b=new _0x600fc9(this[_0x1e6b('0x4f')]);_0x31b65b[_0x1e6b('0x42')][_0x1e6b('0x60')](_0xdd6ca0);const _0x447aea=_0x1e3547>-0x1?_0x1e3547:_0x6b0892[_0x1e6b('0x5e')]['length'];_0x6b0892['items'][_0x1e6b('0x60')](_0x31b65b,_0x447aea),_0x52884e[_0x1e6b('0x1c')](_0xdd6ca0,'change:isEnabled',()=>{_0x52884e['isEnabled']=[...this[_0x1e6b('0x5e')]][_0x1e6b('0x20')](_0x38766b=>_0x38766b['isEnabled']);}),_0x52884e[_0x1e6b('0x1c')](_0xdd6ca0,'change:isVisible',()=>{_0x52884e['buttonView'][_0x1e6b('0x6')]=[...this[_0x1e6b('0x5e')]][_0x1e6b('0x20')](_0x153b85=>_0x153b85[_0x1e6b('0x6')]);});};_0x52884e[_0x1e6b('0x3')]='sw',_0x52884e[_0x1e6b('0x48')][_0x1e6b('0x5d')]({'label':_0x5e2f40(this[_0x1e6b('0x4f')],'Show\x20more\x20items'),'icon':_0x28aa0d[_0x1e6b('0x11')]}),_0x52884e['isEnabled']=[...this[_0x1e6b('0x5e')]][_0x1e6b('0x20')](_0x3a8f92=>_0x3a8f92[_0x1e6b('0x17')]),_0x52884e[_0x1e6b('0x48')][_0x1e6b('0x6')]=[...this[_0x1e6b('0x5e')]][_0x1e6b('0x20')](_0x52e0f8=>_0x52e0f8[_0x1e6b('0x6')]);for(const _0x15ac7e of this[_0x1e6b('0x5e')])_0x411bc0(_0x15ac7e);return _0x9df9ce[_0x1e6b('0x60')](_0x6b0892),_0x52884e[_0x1e6b('0x1c')](this[_0x1e6b('0x5e')],'add',(_0x464bdc,_0x55cd33,_0x366f5c)=>{_0x411bc0(_0x55cd33,_0x366f5c);}),_0x52884e[_0x1e6b('0x1c')](this[_0x1e6b('0x5e')],'remove',(_0x3b9cca,_0x3731c2,_0x336e5b)=>{_0x6b0892['items'][_0x1e6b('0x5a')](_0x336e5b);}),_0x52884e;}[_0x1e6b('0x2a')](_0x466223,_0x2e59ed){const _0x54e2e5=_0x466223&&_0x466223[_0x1e6b('0x7')];_0x54e2e5&&(this['listenTo'](_0x54e2e5,_0x1e6b('0x43'),()=>this['actionIndicator']=_0x2e59ed),this['listenTo'](_0x54e2e5,_0x1e6b('0x1d'),()=>this[_0x1e6b('0x53')]=_0x2e59ed),this[_0x1e6b('0x1c')](_0x54e2e5,_0x1e6b('0x39'),()=>this[_0x1e6b('0x53')]=null),this[_0x1e6b('0x1c')](_0x54e2e5,_0x1e6b('0x32'),()=>this[_0x1e6b('0x53')]=null));}[_0x1e6b('0x34')](){const _0x52d55a=super[_0x1e6b('0x34')]();return _0x52d55a[_0x1e6b('0x1e')](_0x1e6b('0x52'))['to'](this),_0x52d55a;}[_0x1e6b('0x4d')](){return'importWord'===this['_model'][_0x1e6b('0x27')][_0x1e6b('0x3c')][_0x1e6b('0x4e')]?_0x5e2f40(this['locale'],_0x1e6b('0x1b')):_0x5e2f40(this[_0x1e6b('0x4f')],_0x1e6b('0x49'));}[_0x1e6b('0x1')](){return this[_0x1e6b('0x5b')]['isExternal']?_0x1e6b('0x56')===this[_0x1e6b('0x5b')][_0x1e6b('0x27')][_0x1e6b('0x3c')][_0x1e6b('0x4e')]?_0x5e2f40(this[_0x1e6b('0x4f')],'EXTERNAL_IMPORT_WORD_AVATAR',this[_0x1e6b('0x5b')]['creator'][_0x1e6b('0x36')]):_0x5e2f40(this[_0x1e6b('0x4f')],_0x1e6b('0x4c'),this['_model'][_0x1e6b('0x2f')][_0x1e6b('0x36')]):null;}[_0x1e6b('0xe')](){super[_0x1e6b('0xe')](),this[_0x1e6b('0x2a')](this[_0x1e6b('0x55')],_0x1e6b('0x9')),this['_attachActions'](this['removeButton'],_0x1e6b('0x5a'));}}
23
+ const _0x2aec=['addMany','editButton','bindTemplate','_createEditButton','ck-comment__info-name','ck-comment','isExternal','listenTo','EXTERNAL_COMMENT','getUserViewNotificationText','bind','removeButton','div','focus','withText','element','push','cancelConfirm','dropdown','length','_attachActions','some','authoredAt','formatDateTime','ck-comment__wrapper','importWord','isEditMode','ck-annotation__info','getTemplate','blur','isEditable','execute','EXTERNAL_AVATAR','fire','label','_model','_config','ck-comment__info-time','span','ck-comment__main','Show\x20more\x20items','isSystemComment','change:isVisible','ck-comment__actions','ck-comment--edit','isVisible','panelPosition','extendTemplate','add','change:isEnabled','set','ck-annotation__info-name','createCollection','_createDropdown','attributes','edit','Edit','isEnabled','render','panelView','mouseleave','placeholder','buttonView','ck-annotation__content-wrapper','remove','ck-annotation__user','author','ck-annotation__info-time','EXTERNAL_IMPORT_WORD_AVATAR','showConfirm','mouseenter','switchToEditMode','Delete\x20comment?','isReadOnly','isRemovable','locale','_createRemoveButton','name','Reply...','pencil','visibleView','userView','change:isRemovable','actionIndicator','ck-comment__user','_createCommentInputView','time','actionBar','ck-comment--','children','resolvedAt','ck-annotation__actions','items','ck-comment__info','icon','isConfirm','Remove','@external','threeVerticalDots','getExternalCommentNote','source'];(function(_0x2f5685,_0x2aecf3){const _0x553384=function(_0x4e1460){while(--_0x4e1460){_0x2f5685['push'](_0x2f5685['shift']());}};_0x553384(++_0x2aecf3);}(_0x2aec,0x12b));const _0x5533=function(_0x2f5685,_0x2aecf3){_0x2f5685=_0x2f5685-0x0;let _0x553384=_0x2aec[_0x2f5685];return _0x553384;};import{ButtonView as _0x32ea6c,createDropdown as _0x58ce66,ListView as _0x4ecc9d,ListItemView as _0x4ab384}from'ckeditor5/src/ui.js';import{icons as _0x2ff764}from'ckeditor5/src/core.js';import{UserView as _0x547097,ConfirmMixin as _0x2e66b1}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x229b16 from'./basecommentview.js';import _0x35d9d6 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x39d847}from'../../../utils/common-translations.js';export default class pt extends _0x2e66b1(_0x229b16){constructor(_0x4aa328,_0x3d554a,_0x1977c5){super(_0x4aa328,_0x3d554a,_0x1977c5),this[_0x5533('0x36')](_0x5533('0x57'),null),this['set'](_0x5533('0x41'),_0x39d847(_0x4aa328,_0x5533('0x52'))),this[_0x5533('0xe')]('authoredAt')['to'](_0x3d554a),this['bind'](_0x5533('0x5e'))['to'](_0x3d554a),this[_0x5533('0x5b')]=this[_0x5533('0x38')](),this[_0x5533('0x2d')]||(this[_0x5533('0x5')]=this['_createEditButton'](),this[_0x5533('0xf')]=this['_createRemoveButton'](),this[_0x5533('0x60')]=this[_0x5533('0x38')](),this[_0x5533('0x60')][_0x5533('0x4')]([this['editButton'],this['removeButton']]),this[_0x5533('0x16')]=this[_0x5533('0x39')](),this[_0x5533('0x5b')][_0x5533('0x34')](this[_0x5533('0x16')])),this['userView']=new _0x547097(_0x4aa328,_0x3d554a[_0x5533('0x46')],this[_0x5533('0xd')]()),this[_0x5533('0x55')][_0x5533('0x33')]({'attributes':{'class':[_0x5533('0x58'),_0x5533('0x45')]}}),this['listenTo'](_0x3d554a,_0x5533('0x56'),()=>this[_0x5533('0x15')]()),this['setTemplate'](this[_0x5533('0x20')]());}[_0x5533('0x20')](){const _0x378fd2=this[_0x5533('0x6')],_0x232fb1=[{'tag':_0x5533('0x10'),'attributes':{'class':[_0x5533('0x61'),_0x5533('0x1f')]},'children':[{'tag':_0x5533('0x2a'),'children':[{'text':this[_0x5533('0x55')][_0x5533('0x51')]}],'attributes':{'class':[_0x5533('0x8'),_0x5533('0x37')]}},{'tag':_0x5533('0x5a'),'attributes':{'datetime':_0x378fd2['to'](_0x5533('0x1a')),'class':[_0x5533('0x29'),_0x5533('0x47')]},'children':[{'text':_0x378fd2['to'](_0x5533('0x1a'),_0x507066=>this[_0x5533('0x28')][_0x5533('0x1b')](_0x507066))}]}]},{'tag':_0x5533('0x10'),'attributes':{'class':[_0x5533('0x2f'),_0x5533('0x5f'),_0x378fd2['if'](_0x5533('0x1e'),'ck-comment__actions--hidden'),_0x378fd2['if'](_0x5533('0x1e'),'ck-annotation__actions--hidden')]},'children':this['actionBar']},{'tag':_0x5533('0x10'),'attributes':{'class':[_0x5533('0x43')]},'children':this[_0x5533('0x54')]}];return this['_model']['isExternal']&&_0x232fb1[_0x5533('0x14')]({'tag':_0x5533('0x10'),'attributes':{'class':['ck-comment__external']},'children':[{'text':this[_0x5533('0x2')]()}]}),{'tag':'li','attributes':{'class':[_0x5533('0x1c'),_0x378fd2['if'](_0x5533('0x63'),'ck-comment--remove-confirmation')],'tabindex':-0x1},'children':[{'tag':_0x5533('0x10'),'attributes':{'class':[_0x5533('0x9'),'ck-annotation',_0x378fd2['if'](_0x5533('0x1e'),_0x5533('0x30')),_0x378fd2['if']('isSystemComment','ck-comment--info'),_0x378fd2['to'](_0x5533('0x57'),_0x182ef4=>_0x182ef4?_0x5533('0x5c')+_0x182ef4:'')],'data-author-id':this[_0x5533('0x27')][_0x5533('0x46')]['id'],'data-comment-id':this['_model']['id']},'children':[this['userView'],{'tag':_0x5533('0x10'),'attributes':{'class':[_0x5533('0x2b'),'ck-annotation__main']},'children':_0x232fb1}]}]};}[_0x5533('0x7')](){const _0x2c2fe3=new _0x32ea6c(this[_0x5533('0x4f')]);return _0x2c2fe3[_0x5533('0x26')]=_0x39d847(this['locale'],_0x5533('0x3c')),_0x2c2fe3['icon']=_0x2ff764[_0x5533('0x53')],_0x2c2fe3[_0x5533('0x12')]=!0x0,_0x2c2fe3[_0x5533('0x33')]({'attributes':{'class':_0x5533('0x30')}}),_0x2c2fe3[_0x5533('0xe')](_0x5533('0x3d'))['to'](this[_0x5533('0x27')],_0x5533('0x4d'),_0x5c3df2=>!_0x5c3df2),_0x2c2fe3[_0x5533('0xe')](_0x5533('0x31'))['to'](this['_model'],_0x5533('0x22')),_0x2c2fe3['on']('execute',()=>this[_0x5533('0x4b')]()),_0x2c2fe3;}[_0x5533('0x50')](){const _0x4f6ff1=new _0x32ea6c(this[_0x5533('0x4f')]);return _0x4f6ff1[_0x5533('0x26')]=_0x39d847(this[_0x5533('0x4f')],_0x5533('0x64')),_0x4f6ff1[_0x5533('0x62')]=_0x35d9d6,_0x4f6ff1[_0x5533('0x12')]=!0x0,_0x4f6ff1[_0x5533('0x33')]({'attributes':{'class':'ck-comment--remove'}}),_0x4f6ff1[_0x5533('0xe')](_0x5533('0x3d'))['to'](this[_0x5533('0x27')],_0x5533('0x4d'),_0x26df83=>!_0x26df83),_0x4f6ff1['bind']('isVisible')['to'](this[_0x5533('0x27')],_0x5533('0x4e')),_0x4f6ff1['on'](_0x5533('0x23'),()=>{this[_0x5533('0x49')](_0x39d847(this[_0x5533('0x4f')],_0x5533('0x4c')),this['element'])['then'](()=>{this[_0x5533('0x25')]('removeComment',this[_0x5533('0x27')]['id']);});}),_0x4f6ff1;}[_0x5533('0x39')](){const _0x320fbc=_0x58ce66(this[_0x5533('0x4f')]),_0x4c2359=_0x320fbc[_0x5533('0x3f')][_0x5533('0x5d')],_0x49e27a=new _0x4ecc9d(this[_0x5533('0x4f')]),_0x510ad9=(_0x3660c7,_0x1fc3d2=-0x1)=>{const _0x15ee66=new _0x4ab384(this[_0x5533('0x4f')]);_0x15ee66[_0x5533('0x5d')][_0x5533('0x34')](_0x3660c7);const _0xd27de2=_0x1fc3d2>-0x1?_0x1fc3d2:_0x49e27a[_0x5533('0x60')][_0x5533('0x17')];_0x49e27a[_0x5533('0x60')][_0x5533('0x34')](_0x15ee66,_0xd27de2),_0x320fbc['listenTo'](_0x3660c7,_0x5533('0x35'),()=>{_0x320fbc[_0x5533('0x3d')]=[...this[_0x5533('0x60')]][_0x5533('0x19')](_0x4b7a7e=>_0x4b7a7e['isEnabled']);}),_0x320fbc[_0x5533('0xb')](_0x3660c7,_0x5533('0x2e'),()=>{_0x320fbc[_0x5533('0x42')]['isVisible']=[...this[_0x5533('0x60')]]['some'](_0x24af8a=>_0x24af8a[_0x5533('0x31')]);});};_0x320fbc[_0x5533('0x32')]='sw',_0x320fbc['buttonView'][_0x5533('0x36')]({'label':_0x39d847(this[_0x5533('0x4f')],_0x5533('0x2c')),'icon':_0x2ff764[_0x5533('0x1')]}),_0x320fbc['isEnabled']=[...this[_0x5533('0x60')]][_0x5533('0x19')](_0xccdeb3=>_0xccdeb3[_0x5533('0x3d')]),_0x320fbc[_0x5533('0x42')][_0x5533('0x31')]=[...this[_0x5533('0x60')]][_0x5533('0x19')](_0x44ac6d=>_0x44ac6d[_0x5533('0x31')]);for(const _0x5b6c75 of this[_0x5533('0x60')])_0x510ad9(_0x5b6c75);return _0x4c2359[_0x5533('0x34')](_0x49e27a),_0x320fbc[_0x5533('0xb')](this[_0x5533('0x60')],'add',(_0x2e936e,_0xdd27cb,_0x4a99ba)=>{_0x510ad9(_0xdd27cb,_0x4a99ba);}),_0x320fbc['listenTo'](this[_0x5533('0x60')],_0x5533('0x44'),(_0x4115cf,_0x54835b,_0x4982bf)=>{_0x49e27a[_0x5533('0x60')][_0x5533('0x44')](_0x4982bf);}),_0x320fbc;}[_0x5533('0x18')](_0x43c63a,_0x5982ae){const _0x268dcc=_0x43c63a&&_0x43c63a[_0x5533('0x13')];_0x268dcc&&(this[_0x5533('0xb')](_0x268dcc,_0x5533('0x4a'),()=>this[_0x5533('0x57')]=_0x5982ae),this[_0x5533('0xb')](_0x268dcc,_0x5533('0x11'),()=>this[_0x5533('0x57')]=_0x5982ae),this[_0x5533('0xb')](_0x268dcc,_0x5533('0x40'),()=>this[_0x5533('0x57')]=null),this[_0x5533('0xb')](_0x268dcc,_0x5533('0x21'),()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x414a5f=super[_0x5533('0x59')]();return _0x414a5f[_0x5533('0xe')](_0x5533('0x41'))['to'](this),_0x414a5f;}['getExternalCommentNote'](){return _0x5533('0x1d')===this[_0x5533('0x27')][_0x5533('0x3a')][_0x5533('0x0')][_0x5533('0x3')]?_0x39d847(this[_0x5533('0x4f')],'EXTERNAL_IMPORT_WORD_COMMENT'):_0x39d847(this['locale'],_0x5533('0xc'));}[_0x5533('0xd')](){return this[_0x5533('0x27')][_0x5533('0xa')]?_0x5533('0x1d')===this[_0x5533('0x27')]['attributes'][_0x5533('0x0')][_0x5533('0x3')]?_0x39d847(this[_0x5533('0x4f')],_0x5533('0x48'),this['_model']['creator']['name']):_0x39d847(this[_0x5533('0x4f')],_0x5533('0x24'),this['_model']['creator'][_0x5533('0x51')]):null;}[_0x5533('0x3e')](){super[_0x5533('0x3e')](),this[_0x5533('0x18')](this[_0x5533('0x5')],_0x5533('0x3b')),this[_0x5533('0x18')](this[_0x5533('0xf')],_0x5533('0x44'));}}
package/src/comments.d.ts CHANGED
@@ -6,16 +6,16 @@
6
6
  * @module comments/comments
7
7
  * @publicApi
8
8
  */
9
- import { Plugin } from 'ckeditor5/src/core';
10
- import CommentsRepository from './comments/commentsrepository';
11
- import CommentsEditing from './comments/commentsediting';
12
- import CommentsUI from './comments/commentsui';
13
- import CommentsOnly from './commentsonly';
14
- import WideSidebar from './annotations/widesidebar';
15
- import NarrowSidebar from './annotations/narrowsidebar';
16
- import InlineAnnotations from './annotations/inlineannotations';
17
- import CommentsArchiveUI from './comments/commentsarchiveui';
18
- import CommentsArchive from './comments/commentsarchive';
9
+ import { Plugin } from 'ckeditor5/src/core.js';
10
+ import CommentsRepository from './comments/commentsrepository.js';
11
+ import CommentsEditing from './comments/commentsediting.js';
12
+ import CommentsUI from './comments/commentsui.js';
13
+ import CommentsOnly from './commentsonly.js';
14
+ import WideSidebar from './annotations/widesidebar.js';
15
+ import NarrowSidebar from './annotations/narrowsidebar.js';
16
+ import InlineAnnotations from './annotations/inlineannotations.js';
17
+ import CommentsArchiveUI from './comments/commentsarchiveui.js';
18
+ import CommentsArchive from './comments/commentsarchive.js';
19
19
  /**
20
20
  * The comments plugin, which brings both the UI part and the editing part of this feature.
21
21
  *
package/src/comments.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x52bc=['pluginName','Comments'];(function(_0x3d939e,_0x52bcc6){var _0x4449ba=function(_0x5539e9){while(--_0x5539e9){_0x3d939e['push'](_0x3d939e['shift']());}};_0x4449ba(++_0x52bcc6);}(_0x52bc,0x166));var _0x4449=function(_0x3d939e,_0x52bcc6){_0x3d939e=_0x3d939e-0x0;var _0x4449ba=_0x52bc[_0x3d939e];return _0x4449ba;};import{Plugin as _0x5a1fe0}from'ckeditor5/src/core';import _0x2284f5 from'./comments/commentsrepository';import _0x5c568a from'./comments/commentsediting';import _0x1efadb from'./comments/commentsui';import _0x1dd602 from'./commentsonly';import _0x22a2e7 from'./annotations/widesidebar';import _0x5c214f from'./annotations/narrowsidebar';import _0x588f87 from'./annotations/inlineannotations';import _0x441043 from'./comments/commentsarchiveui';import _0x2c3769 from'./comments/commentsarchive';export default class f extends _0x5a1fe0{static get['requires'](){return[_0x2284f5,_0x5c568a,_0x1efadb,_0x2c3769,_0x441043,_0x1dd602,_0x22a2e7,_0x5c214f,_0x588f87];}static get[_0x4449('0x0')](){return _0x4449('0x1');}}
23
+ var _0x2f80=['pluginName','requires','Comments'];(function(_0x1b0e9b,_0x2f806d){var _0x1256aa=function(_0x1ef497){while(--_0x1ef497){_0x1b0e9b['push'](_0x1b0e9b['shift']());}};_0x1256aa(++_0x2f806d);}(_0x2f80,0xd5));var _0x1256=function(_0x1b0e9b,_0x2f806d){_0x1b0e9b=_0x1b0e9b-0x0;var _0x1256aa=_0x2f80[_0x1b0e9b];return _0x1256aa;};import{Plugin as _0x250f09}from'ckeditor5/src/core.js';import _0x31159a from'./comments/commentsrepository.js';import _0x4fc885 from'./comments/commentsediting.js';import _0x24649e from'./comments/commentsui.js';import _0x2b2eda from'./commentsonly.js';import _0x105646 from'./annotations/widesidebar.js';import _0x33d154 from'./annotations/narrowsidebar.js';import _0x16beb7 from'./annotations/inlineannotations.js';import _0x51922d from'./comments/commentsarchiveui.js';import _0x5e2eb1 from'./comments/commentsarchive.js';export default class f extends _0x250f09{static get[_0x1256('0x1')](){return[_0x31159a,_0x4fc885,_0x24649e,_0x5e2eb1,_0x51922d,_0x2b2eda,_0x105646,_0x33d154,_0x16beb7];}static get[_0x1256('0x0')](){return _0x1256('0x2');}}
@@ -6,8 +6,8 @@
6
6
  * @module comments/commentsonly
7
7
  * @publicApi
8
8
  */
9
- import { Plugin, type Editor } from 'ckeditor5/src/core';
10
- import CommentsEditing from './comments/commentsediting';
9
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
10
+ import CommentsEditing from './comments/commentsediting.js';
11
11
  /**
12
12
  * The `CommentsOnly` plugin allows you to put the editor in a mode where a user can only add, edit or delete comments.
13
13
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2289=['_disableCommentsOnlyMode','delete','requires','change:isEnabled','config','commands','addCommentThread','commentsOnlyMode','CommentsOnly','editor','listenTo','pluginName','has','affectsData','highest','afterInit','get','editing','document','cut','clipboardInput','commentsOnly','view','clearForceDisabled','forceDisabled','isEnabled','DragDrop','plugins','stop','set'];(function(_0x2f8aca,_0x228975){const _0x4f14bc=function(_0x5400c9){while(--_0x5400c9){_0x2f8aca['push'](_0x2f8aca['shift']());}};_0x4f14bc(++_0x228975);}(_0x2289,0x12b));const _0x4f14=function(_0x2f8aca,_0x228975){_0x2f8aca=_0x2f8aca-0x0;let _0x4f14bc=_0x2289[_0x2f8aca];return _0x4f14bc;};import{Plugin as _0x4b6834}from'ckeditor5/src/core';import _0x10856c from'./comments/commentsediting';export default class n extends _0x4b6834{static get[_0x4f14('0xc')](){return _0x4f14('0x9');}static get[_0x4f14('0x3')](){return[_0x10856c];}constructor(_0x35c102){super(_0x35c102),this[_0x4f14('0x0')]('isEnabled',!0x1),this['on'](_0x4f14('0x4'),(_0x1e8dab,_0x1e5424,_0x2096d9)=>{_0x2096d9?this['_enableCommentsOnlyMode']():this[_0x4f14('0x1')]();});}[_0x4f14('0x10')](){!this[_0x4f14('0x1a')]&&this[_0x4f14('0xa')][_0x4f14('0x5')][_0x4f14('0x11')](_0x4f14('0x16'))&&(this[_0x4f14('0x1a')]=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x281c31,_0x541f61]of this[_0x4f14('0xa')][_0x4f14('0x6')])_0x541f61[_0x4f14('0xe')]&&_0x4f14('0x7')!==_0x281c31&&_0x541f61[_0x4f14('0x19')](_0x4f14('0x8'));this[_0x4f14('0xa')]['plugins'][_0x4f14('0xd')](_0x4f14('0x1b'))&&this[_0x4f14('0xa')][_0x4f14('0x1c')][_0x4f14('0x11')](_0x4f14('0x1b'))[_0x4f14('0x19')](_0x4f14('0x8'));const _0x4c839c=this[_0x4f14('0xa')]['editing'][_0x4f14('0x17')][_0x4f14('0x13')];this[_0x4f14('0xb')](_0x4c839c,_0x4f14('0x14'),_0x14bfa9=>_0x14bfa9['stop'](),{'priority':_0x4f14('0xf')}),this['listenTo'](_0x4c839c,_0x4f14('0x15'),_0x36f45d=>_0x36f45d[_0x4f14('0x1d')](),{'priority':_0x4f14('0xf')}),this['listenTo'](_0x4c839c,_0x4f14('0x2'),_0x4db3e3=>_0x4db3e3[_0x4f14('0x1d')](),{'priority':'highest'});}[_0x4f14('0x1')](){for(const [_0x3d73f3,_0x262651]of this[_0x4f14('0xa')][_0x4f14('0x6')])_0x262651['affectsData']&&_0x4f14('0x7')!==_0x3d73f3&&_0x262651[_0x4f14('0x18')]('commentsOnlyMode');this['stopListening'](this[_0x4f14('0xa')][_0x4f14('0x12')][_0x4f14('0x17')]['document']);}}
23
+ const _0x5394=['listenTo','set','plugins','affectsData','editing','stop','document','editor','highest','commentsOnlyMode','clearForceDisabled','config','change:isEnabled','addCommentThread','_disableCommentsOnlyMode','afterInit','clipboardInput','delete','commentsOnly','CommentsOnly','get','forceDisabled','DragDrop','requires','cut','commands','isEnabled','view','has','_enableCommentsOnlyMode'];(function(_0x4d964e,_0x539430){const _0x323091=function(_0x1b8637){while(--_0x1b8637){_0x4d964e['push'](_0x4d964e['shift']());}};_0x323091(++_0x539430);}(_0x5394,0x1aa));const _0x3230=function(_0x4d964e,_0x539430){_0x4d964e=_0x4d964e-0x0;let _0x323091=_0x5394[_0x4d964e];return _0x323091;};import{Plugin as _0x2c92d6}from'ckeditor5/src/core.js';import _0x3e6188 from'./comments/commentsediting.js';export default class e extends _0x2c92d6{static get['pluginName'](){return _0x3230('0xd');}static get[_0x3230('0x11')](){return[_0x3e6188];}constructor(_0x84dae0){super(_0x84dae0),this[_0x3230('0x19')](_0x3230('0x14'),!0x1),this['on'](_0x3230('0x6'),(_0x2a295e,_0x2a15c0,_0x3389e8)=>{_0x3389e8?this[_0x3230('0x17')]():this[_0x3230('0x8')]();});}[_0x3230('0x9')](){!this[_0x3230('0x14')]&&this['editor'][_0x3230('0x5')]['get'](_0x3230('0xc'))&&(this[_0x3230('0x14')]=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x95e172,_0x52cc05]of this[_0x3230('0x1')][_0x3230('0x13')])_0x52cc05['affectsData']&&_0x3230('0x7')!==_0x95e172&&_0x52cc05[_0x3230('0xf')](_0x3230('0x3'));this[_0x3230('0x1')][_0x3230('0x1a')][_0x3230('0x16')](_0x3230('0x10'))&&this['editor'][_0x3230('0x1a')][_0x3230('0xe')]('DragDrop')[_0x3230('0xf')](_0x3230('0x3'));const _0x50612c=this[_0x3230('0x1')][_0x3230('0x1c')][_0x3230('0x15')][_0x3230('0x0')];this['listenTo'](_0x50612c,_0x3230('0x12'),_0x27fc2f=>_0x27fc2f[_0x3230('0x1d')](),{'priority':_0x3230('0x2')}),this[_0x3230('0x18')](_0x50612c,_0x3230('0xa'),_0xf2e400=>_0xf2e400[_0x3230('0x1d')](),{'priority':_0x3230('0x2')}),this[_0x3230('0x18')](_0x50612c,_0x3230('0xb'),_0x263cba=>_0x263cba['stop'](),{'priority':_0x3230('0x2')});}[_0x3230('0x8')](){for(const [_0x49c58e,_0x38d6cd]of this['editor'][_0x3230('0x13')])_0x38d6cd[_0x3230('0x1b')]&&'addCommentThread'!==_0x49c58e&&_0x38d6cd[_0x3230('0x4')](_0x3230('0x3'));this['stopListening'](this[_0x3230('0x1')][_0x3230('0x1c')][_0x3230('0x15')]['document']);}}
package/src/config.d.ts CHANGED
@@ -6,9 +6,9 @@
6
6
  * @module comments/config
7
7
  * @publicApi
8
8
  */
9
- import type { EditorConfig } from 'ckeditor5/src/core';
10
- import type CommentView from './comments/ui/view/commentview';
11
- import type BaseCommentThreadView from './comments/ui/view/basecommentthreadview';
9
+ import type { EditorConfig } from 'ckeditor5/src/core.js';
10
+ import type CommentView from './comments/ui/view/commentview.js';
11
+ import type BaseCommentThreadView from './comments/ui/view/basecommentthreadview.js';
12
12
  /**
13
13
  * The configuration of the comments feature.
14
14
  *
package/src/index.d.ts CHANGED
@@ -2,23 +2,23 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- export { default as Comments } from './comments';
6
- export { default as CommentsOnly } from './commentsonly';
7
- export { default as CommentsUI } from './comments/commentsui';
8
- export { default as CommentsRepository, CommentThread, Comment, type CommentDataJSON, type CommentThreadContext, type CommentThreadDataJSON } from './comments/commentsrepository';
9
- export { default as CommentThreadController } from './comments/ui/commentthreadcontroller';
10
- export { default as Annotations } from './annotations/annotations';
11
- export { default as AnnotationsUIs } from './annotations/annotationsuis';
12
- export { default as EditorAnnotations } from './annotations/editorannotations';
13
- export { default as InlineAnnotations } from './annotations/inlineannotations';
14
- export { default as WideSidebar } from './annotations/widesidebar';
15
- export { default as NarrowSidebar } from './annotations/narrowsidebar';
16
- export { default as AnnotationView } from './annotations/view/annotationview';
17
- export { default as BaseCommentView } from './comments/ui/view/basecommentview';
18
- export { default as BaseCommentThreadView } from './comments/ui/view/basecommentthreadview';
19
- export { default as CommentsListView } from './comments/ui/view/commentslistview';
20
- export { default as CommentView } from './comments/ui/view/commentview';
21
- export { default as CommentThreadInputView } from './comments/ui/view/commentthreadinputview';
22
- export type { CommentsConfig, SidebarConfig } from './config';
23
- export type { default as CommentsEditing } from './comments/commentsediting';
24
- import './augmentation';
5
+ export { default as Comments } from './comments.js';
6
+ export { default as CommentsOnly } from './commentsonly.js';
7
+ export { default as CommentsUI } from './comments/commentsui.js';
8
+ export { default as CommentsRepository, CommentThread, Comment, type CommentDataJSON, type CommentThreadContext, type CommentThreadDataJSON } from './comments/commentsrepository.js';
9
+ export { default as CommentThreadController } from './comments/ui/commentthreadcontroller.js';
10
+ export { default as Annotations } from './annotations/annotations.js';
11
+ export { default as AnnotationsUIs } from './annotations/annotationsuis.js';
12
+ export { default as EditorAnnotations } from './annotations/editorannotations.js';
13
+ export { default as InlineAnnotations } from './annotations/inlineannotations.js';
14
+ export { default as WideSidebar } from './annotations/widesidebar.js';
15
+ export { default as NarrowSidebar } from './annotations/narrowsidebar.js';
16
+ export { default as AnnotationView } from './annotations/view/annotationview.js';
17
+ export { default as BaseCommentView } from './comments/ui/view/basecommentview.js';
18
+ export { default as BaseCommentThreadView } from './comments/ui/view/basecommentthreadview.js';
19
+ export { default as CommentsListView } from './comments/ui/view/commentslistview.js';
20
+ export { default as CommentView } from './comments/ui/view/commentview.js';
21
+ export { default as CommentThreadInputView } from './comments/ui/view/commentthreadinputview.js';
22
+ export type { CommentsConfig, SidebarConfig } from './config.js';
23
+ export type { default as CommentsEditing } from './comments/commentsediting.js';
24
+ 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';
@@ -5,5 +5,5 @@
5
5
  /**
6
6
  * @module comments/utils/common-translations
7
7
  */
8
- import type { Locale } from 'ckeditor5/src/utils';
8
+ import type { Locale } from 'ckeditor5/src/utils.js';
9
9
  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(_0x2e3a6d,_0x426e6e,_0xcc5529){const t=_0x2e3a6d['t'];switch(_0x426e6e){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'LEAVE_COMMENT_ANNOUNCEMENT':return t({'string':'Leaving\x20a\x20comment.','id':'LEAVE_COMMENT_ANNOUNCEMENT'});case'ENTER_COMMENT_ANNOUNCEMENT':return t({'string':'Entering\x20a\x20comment.','id':'ENTER_COMMENT_ANNOUNCEMENT'});case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0xcc5529);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'},_0xcc5529);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'},_0xcc5529);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'},_0xcc5529);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(_0x3592f4,_0x3fd005,_0x561586){const t=_0x3592f4['t'];switch(_0x3fd005){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'LEAVE_COMMENT_ANNOUNCEMENT':return t({'string':'Leaving\x20a\x20comment.','id':'LEAVE_COMMENT_ANNOUNCEMENT'});case'ENTER_COMMENT_ANNOUNCEMENT':return t({'string':'Entering\x20a\x20comment.','id':'ENTER_COMMENT_ANNOUNCEMENT'});case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x561586);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'},_0x561586);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'},_0x561586);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'},_0x561586);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'';}}