@ckeditor/ckeditor5-comments 0.0.0-nightly-20231214.0 → 0.0.0-nightly-20231216.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 _0x5c77=['remove','formatDateTime','updateComment','maxCommentsWhenCollapsed','bind','change:isEditMode','_updateHasDirtyComment','createCollection','_collapsedCommentsView','expand','delete','from','resolved','authoredAt','listenTo','maxCommentCharsWhenCollapsed','resolveCommentThread','visibleViews','count','collapse','_config','set','equal','isActive','commentUpdated','ck-thread__comments','_rearrangeExpand','editorDestroyed','_rearrangeCollapse','resolvedBy','_calculatePosition','_findOptimalIndex','resolvedAt','maxThreadTotalWeight','_shouldCollapse','change:isActive','isEditMode','focus','_handleNewCommentModel','commentViews','editorConfig','length','refreshVisibleViews','some','insert','delegate','hasDirtyComment','render','locale','destroy','_handleRemoveCommentModel','comments','change:isResolved','_model','add','Marked\x20as\x20resolved','resolvedCommentView','setTemplate'];(function(_0x5df6ec,_0x5c770c){const _0x1c5807=function(_0x6aacee){while(--_0x6aacee){_0x5df6ec['push'](_0x5df6ec['shift']());}};_0x1c5807(++_0x5c770c);}(_0x5c77,0x1ef));const _0x1c58=function(_0x5df6ec,_0x5c770c){_0x5df6ec=_0x5df6ec-0x0;let _0x1c5807=_0x5c77[_0x5df6ec];return _0x1c5807;};import{View as _0xd15916}from'ckeditor5/src/ui';import{diff as _0x56e7ee,Collection as _0x567300}from'ckeditor5/src/utils';import{getTranslation as _0xb83d06}from'../../../utils/common-translations';import _0x4ef17c from'./collapsedcommentsview';export default class Ct extends _0xd15916{constructor(_0x3c57fa,_0x240d6a,_0x53588f){super(_0x3c57fa),this[_0x1c58('0x30')]('hasDirtyComment',!0x1),this[_0x1c58('0x30')]('length',_0x240d6a['comments']['length']),this[_0x1c58('0x30')](_0x1c58('0x32'),!0x1),this['_model']=_0x240d6a,this[_0x1c58('0x2f')]=_0x53588f,this[_0x1c58('0x8')]=this[_0x1c58('0x22')](),this[_0x1c58('0x2c')]=this[_0x1c58('0x22')](),this[_0x1c58('0x19')]=null,this['_collapsedCommentsView']=new _0x4ef17c(_0x3c57fa),this[_0x1c58('0x23')][_0x1c58('0x1f')]('count')['to'](this,'length',_0x44282c=>_0x44282c-this[_0x1c58('0x2f')][_0x1c58('0x1e')]);for(const _0x11521a of _0x240d6a[_0x1c58('0x14')])this[_0x1c58('0x7')](_0x11521a);this['_handleInfoComment'](),this['listenTo'](_0x240d6a[_0x1c58('0x14')],_0x1c58('0x17'),(_0x485ad8,_0x5d8d2f)=>{const _0x3f5e75=this[_0x1c58('0x39')](_0x5d8d2f);this['length']++,this[_0x1c58('0x7')](_0x5d8d2f,_0x3f5e75),this[_0x1c58('0xb')]();}),this[_0x1c58('0x29')](_0x240d6a[_0x1c58('0x14')],'remove',(_0x265fb6,_0x75f85d)=>{this[_0x1c58('0xa')]--,this[_0x1c58('0x13')](_0x75f85d),this[_0x1c58('0xb')]();}),this[_0x1c58('0x29')](_0x240d6a,_0x1c58('0x33'),()=>this[_0x1c58('0xb')]()),this[_0x1c58('0x29')](_0x240d6a,_0x1c58('0x15'),()=>this['_handleInfoComment']()),this['on'](_0x1c58('0x4'),()=>this[_0x1c58('0xb')]()),this['on']('change:hasDirtyComment',()=>this[_0x1c58('0xb')]()),this[_0x1c58('0x1a')]({'tag':'ul','attributes':{'class':[_0x1c58('0x34')]},'children':this['visibleViews']});}get[_0x1c58('0x3')](){return this[_0x1c58('0x16')]['weight']>this[_0x1c58('0x2f')][_0x1c58('0x2')]&&!this[_0x1c58('0x32')]&&!this[_0x1c58('0xf')];}[_0x1c58('0x10')](){super[_0x1c58('0x10')](),this[_0x1c58('0xb')]();}[_0x1c58('0x6')](){this['element'][_0x1c58('0x6')]();}[_0x1c58('0x12')](){this[_0x1c58('0x23')]['destroy']();for(const _0x10e3be of this[_0x1c58('0x8')])_0x10e3be['destroy']();super[_0x1c58('0x12')]();}[_0x1c58('0xb')](){this['_shouldCollapse']?this[_0x1c58('0x37')]():this[_0x1c58('0x35')]();}[_0x1c58('0x7')](_0x471f8c,_0x2ee1ce){const _0x4d492f=new this[(_0x1c58('0x2f'))]['CommentView'](this[_0x1c58('0x11')],_0x471f8c,{'maxCommentCharsWhenCollapsed':this[_0x1c58('0x2f')][_0x1c58('0x2a')],'formatDateTime':this[_0x1c58('0x2f')]['formatDateTime'],'editorConfig':this[_0x1c58('0x2f')][_0x1c58('0x9')]});_0x4d492f['viewUid']=_0x471f8c['id'],_0x4d492f['delegate']('removeComment')['to'](this),_0x4d492f['delegate'](_0x1c58('0x1d'))['to'](this),_0x4d492f[_0x1c58('0xe')](_0x1c58('0x2b'))['to'](this),_0x4d492f[_0x1c58('0xe')]('editorReady')['to'](this),_0x4d492f[_0x1c58('0xe')](_0x1c58('0x36'))['to'](this),this['listenTo'](_0x4d492f,_0x1c58('0x20'),()=>this[_0x1c58('0x21')]()),this[_0x1c58('0x8')][_0x1c58('0x17')](_0x4d492f,_0x2ee1ce);}['_calculatePosition'](_0x1cf4f5){const _0x3e2e16=this[_0x1c58('0x16')]['_findOptimalIndex'](_0x1cf4f5);return this[_0x1c58('0x19')]?this[_0x1c58('0x19')][_0x1c58('0x28')]>_0x1cf4f5[_0x1c58('0x28')]?_0x3e2e16-0x1:_0x3e2e16:_0x3e2e16-0x1;}['_handleInfoComment'](){if(this[_0x1c58('0x16')][_0x1c58('0x38')]&&this[_0x1c58('0x16')][_0x1c58('0x1')]){const _0x4673e7={'id':_0x1c58('0x27'),'author':this[_0x1c58('0x16')][_0x1c58('0x38')],'authoredAt':this[_0x1c58('0x16')][_0x1c58('0x1')],'content':_0xb83d06(this[_0x1c58('0x11')],_0x1c58('0x18')),'attributes':{}};this[_0x1c58('0x19')]=new this['_config']['CommentView'](this[_0x1c58('0x11')],_0x4673e7,{'maxCommentCharsWhenCollapsed':this[_0x1c58('0x2f')][_0x1c58('0x2a')],'formatDateTime':this[_0x1c58('0x2f')][_0x1c58('0x1c')],'editorConfig':this['_config'][_0x1c58('0x9')],'isSystemComment':!0x0}),this[_0x1c58('0x8')]['add'](this[_0x1c58('0x19')],this[_0x1c58('0x16')][_0x1c58('0x0')](_0x4673e7));}else this['resolvedCommentView']&&(this[_0x1c58('0x8')]['remove'](this['resolvedCommentView']),this[_0x1c58('0x19')][_0x1c58('0x12')](),this[_0x1c58('0x19')]=null);this[_0x1c58('0xb')]();}[_0x1c58('0x13')](_0x47a8ef){const _0x49229e=this[_0x1c58('0x8')]['remove'](_0x47a8ef['id']);this['stopListening'](_0x49229e),_0x49229e[_0x1c58('0x5')]&&this['_updateHasDirtyComment'](),_0x49229e[_0x1c58('0x12')]();}[_0x1c58('0x21')](){this[_0x1c58('0xf')]=Array[_0x1c58('0x26')](this[_0x1c58('0x8')])[_0x1c58('0xc')](_0x407d61=>_0x407d61[_0x1c58('0x5')]);}[_0x1c58('0x37')](){const _0x56cb3e=function(_0x22bfe7){const _0x2bb95f=new _0x567300();for(const _0x58a8e0 of _0x22bfe7)_0x2bb95f['add'](_0x58a8e0);return _0x2bb95f;}(this[_0x1c58('0x8')]),_0x1aef86=this[_0x1c58('0x23')][_0x1c58('0x2d')];for(let _0x5d535d=0x1;_0x5d535d<=_0x1aef86;_0x5d535d++)_0x56cb3e[_0x1c58('0x1b')](0x1);for(const _0x2eded3 of _0x56cb3e)_0x2eded3[_0x1c58('0x2e')]();_0x1aef86>0x0&&_0x56cb3e[_0x1c58('0x17')](this['_collapsedCommentsView'],0x1),ss(_0x56e7ee(Array[_0x1c58('0x26')](this[_0x1c58('0x2c')]),Array[_0x1c58('0x26')](_0x56cb3e)),this[_0x1c58('0x2c')],_0x56cb3e);}[_0x1c58('0x35')](){ss(_0x56e7ee(Array['from'](this[_0x1c58('0x2c')]),Array['from'](this[_0x1c58('0x8')])),this[_0x1c58('0x2c')],this[_0x1c58('0x8')]);for(const _0x1fc112 of this[_0x1c58('0x2c')])_0x1fc112[_0x1c58('0x24')]();}}function ss(_0x5c0ce9,_0x15cd52,_0x1336fc){let _0x39568f=0x0;for(const _0x20f6aa of _0x5c0ce9)switch(_0x20f6aa){case _0x1c58('0xd'):_0x15cd52[_0x1c58('0x17')](_0x1336fc['get'](_0x39568f),_0x39568f),_0x39568f++;break;case _0x1c58('0x25'):_0x15cd52['remove'](_0x39568f);break;case _0x1c58('0x31'):_0x39568f++;}}
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 _0x4d8f=['.ck-context__value','overlay','length','_createReopenButton','.ck-context','ck-context--quotes','_model','listenTo','add','Reopen','isResolved','ck-context-wrapper','classList','render','locale','span','offsetWidth','bindTemplate','div','substring','ck-thread__header','value','element','_trimContextValue','mouseleave','hasContext','fire','isEnabled','bind','context','remove','_attachContextActions','label','reopenButtonView','contextValue','ck-context','isVisible','mouseenter','ck-annotation__actions','setTemplate','...','querySelector','scrollWidth'];(function(_0xe80085,_0x4d8f8e){const _0x4e4644=function(_0x5ac18f){while(--_0x5ac18f){_0xe80085['push'](_0xe80085['shift']());}};_0x4e4644(++_0x4d8f8e);}(_0x4d8f,0xa0));const _0x4e46=function(_0xe80085,_0x4d8f8e){_0xe80085=_0xe80085-0x0;let _0x4e4644=_0x4d8f[_0xe80085];return _0x4e4644;};import{View as _0x414fc7,ButtonView as _0x1e9af3}from'ckeditor5/src/ui';import{getTranslation as _0x458e9a}from'../../../utils/common-translations';import _0x2da717 from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Tt extends _0x414fc7{constructor(_0x11c93d,_0x476ed4){super(_0x11c93d);const _0x470028=this[_0x4e46('0x1d')];this[_0x4e46('0x12')]=_0x476ed4,this[_0x4e46('0x2')]=this[_0x4e46('0xf')](),this[_0x4e46('0x28')]('hasContext')['to'](this[_0x4e46('0x12')],_0x4e46('0x29'),_0x35543b=>!!_0x35543b),this[_0x4e46('0x28')](_0x4e46('0x3'))['to'](this[_0x4e46('0x12')],_0x4e46('0x29'),_0x579600=>_0x579600&&_0x579600[_0x4e46('0x21')]?this['_trimContextValue'](_0x579600['value']):_0x458e9a(this[_0x4e46('0x1a')],'Comment\x20was\x20made\x20on\x20an\x20element')),this[_0x4e46('0x8')]({'tag':_0x4e46('0x1e'),'attributes':{'class':[_0x4e46('0x20')]},'children':[{'tag':'div','attributes':{'class':[_0x4e46('0x17')]},'children':[{'tag':_0x4e46('0x1e'),'attributes':{'class':[_0x4e46('0x4'),_0x470028['if'](_0x4e46('0x25'),_0x4e46('0x11'))]},'children':[{'tag':_0x4e46('0x1b'),'attributes':{'class':['ck-context__value']},'children':[{'text':_0x470028['to'](_0x4e46('0x3'))}]}]}]},{'tag':_0x4e46('0x1e'),'attributes':{'class':[_0x4e46('0x7')]},'children':[this['reopenButtonView']]}]});}[_0x4e46('0x19')](){super[_0x4e46('0x19')](),this[_0x4e46('0x0')]();}[_0x4e46('0xf')](){const _0x115123=new _0x1e9af3(this[_0x4e46('0x1a')]);return _0x115123[_0x4e46('0x1')]=_0x458e9a(this[_0x4e46('0x1a')],_0x4e46('0x15')),_0x115123['tooltip']=_0x458e9a(this[_0x4e46('0x1a')],_0x4e46('0x15')),_0x115123['icon']=_0x2da717,_0x115123[_0x4e46('0x28')](_0x4e46('0x27'))['to'](this[_0x4e46('0x12')],'isReadOnly',_0x5be1c5=>!_0x5be1c5),_0x115123[_0x4e46('0x28')](_0x4e46('0x5'))['to'](this[_0x4e46('0x12')],'isResolvable',this['_model'],_0x4e46('0x16'),(_0x70afbe,_0x174784)=>_0x70afbe&&_0x174784),_0x115123['on']('execute',()=>{this[_0x4e46('0x26')]('reopenCommentThread',this[_0x4e46('0x12')]['id']);}),_0x115123;}[_0x4e46('0x23')](_0x5d9e48){if(_0x5d9e48[_0x4e46('0xe')]<0x96)return _0x5d9e48;const _0x3010f1=_0x5d9e48['lastIndexOf']('\x20',0x93);return _0x5d9e48[_0x4e46('0x1f')](0x0,_0x3010f1>-0x1?_0x3010f1:0x93)+_0x4e46('0x9');}[_0x4e46('0x0')](){const _0x26b759=this[_0x4e46('0x22')][_0x4e46('0xa')](_0x4e46('0x10')),_0x3f97c1=_0x26b759[_0x4e46('0xa')](_0x4e46('0xc'));this['listenTo'](_0x26b759,_0x4e46('0x6'),()=>{_0x3f97c1[_0x4e46('0x1c')]<_0x3f97c1[_0x4e46('0xb')]&&_0x26b759[_0x4e46('0x18')][_0x4e46('0x14')]('overlay');}),this[_0x4e46('0x13')](_0x26b759,_0x4e46('0x24'),()=>{_0x26b759[_0x4e46('0x18')][_0x4e46('0x2a')](_0x4e46('0xd'));});}}
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 _0x3e15=['ck-comment__input-container','commentInputView','editorDestroyed','then','change:showInput','focusTracker','isFocused','setTemplate','destroy','extendTemplate','editorReady','delegate','ck-thread__input','showButtons','set','showInput','bindTemplate','div','ck-comment__input-container--active','value','bind','userView'];(function(_0x430697,_0x3e154d){var _0x531a9a=function(_0x2abcdd){while(--_0x2abcdd){_0x430697['push'](_0x430697['shift']());}};_0x531a9a(++_0x3e154d);}(_0x3e15,0x17d));var _0x531a=function(_0x430697,_0x3e154d){_0x430697=_0x430697-0x0;var _0x531a9a=_0x3e15[_0x430697];return _0x531a9a;};import{View as _0x4d59dd}from'ckeditor5/src/ui';import _0x13250f from'./commentinputview';import{UserView as _0x40bace}from'ckeditor5-collaboration/src/collaboration-core';export default class At extends _0x4d59dd{constructor(_0x350a1b,_0x310b67,_0x38e613){super(_0x350a1b),this[_0x531a('0x10')]=new _0x13250f(_0x350a1b,_0x38e613),this[_0x531a('0x10')][_0x531a('0xd')](_0x531a('0x6'))['to'](this[_0x531a('0x10')][_0x531a('0x14')],_0x531a('0x15'),this[_0x531a('0x10')],_0x531a('0xc'),(_0x2b2102,_0x426049)=>_0x2b2102||!!_0x426049),this[_0x531a('0x7')](_0x531a('0x8'),!0x1),this['on'](_0x531a('0x13'),()=>{this[_0x531a('0x8')]&&!this[_0x531a('0x10')]['editor']&&this['commentInputView']['createEditor']();}),this['commentInputView'][_0x531a('0x4')](_0x531a('0x3'))['to'](this),this['commentInputView'][_0x531a('0x4')](_0x531a('0x11'))['to'](this),this[_0x531a('0xe')]=new _0x40bace(_0x350a1b,_0x310b67),this[_0x531a('0xe')][_0x531a('0x2')]({'attributes':{'class':'ck-thread__user'}}),this[_0x531a('0x10')][_0x531a('0x2')]({'attributes':{'class':_0x531a('0x5')}}),this[_0x531a('0x0')]({'tag':_0x531a('0xa'),'attributes':{'class':[_0x531a('0xf'),this[_0x531a('0x9')]['if'](_0x531a('0x8'),_0x531a('0xb'))]},'children':[this['userView'],this[_0x531a('0x10')]]});}[_0x531a('0x1')](){return this['commentInputView'][_0x531a('0x1')]()[_0x531a('0x12')](()=>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 _0xe0df=['high','extendTemplate','showConfirm','locale','div','unbind','querySelector','containerElement','resolveButton','get','commentThreadHeaderView','bind','actionIndicator','ck-thread--','_bindFirstCommentView','has','_boundFirstCommentView','commentViews','bindTemplate','isConfirm','commentThreadChildren','ck-thread--remove-confirmation','removeButton','check','render','commentsListView','change:archivedAt','Delete\x20comment\x20thread?','archivedAt','then','commentThreadInputView','Resolve','label','isActive','ck-thread','.ck-thread__container','createCollection','ck-thread--unlinked','fire','ck-thread--active','isUnlinked','cancelConfirm','remove','_createResolveButton','change:isActive','execute','_model','add','getTemplate','setTemplate','ck-reset_all-excluded','listenTo','actionBar','Write\x20a\x20comment...','ck-comment--resolve','resolveCommentThread','change:isReadOnly','isReadOnly','tooltip','isSystemComment','placeholder','addMany'];(function(_0x3ec212,_0xe0df03){const _0xdf91f5=function(_0x45c735){while(--_0x45c735){_0x3ec212['push'](_0x3ec212['shift']());}};_0xdf91f5(++_0xe0df03);}(_0xe0df,0x16b));const _0xdf91=function(_0x3ec212,_0xe0df03){_0x3ec212=_0x3ec212-0x0;let _0xdf91f5=_0xe0df[_0x3ec212];return _0xdf91f5;};import{ConfirmMixin as _0x11d0c7}from'ckeditor5-collaboration/src/collaboration-core';import{ButtonView as _0x5013f9}from'ckeditor5/src/ui';import{icons as _0x4ecac7}from'ckeditor5/src/core';import _0x410b12 from'./basecommentthreadview';import{getTranslation as _0x2bd97c}from'../../../utils/common-translations';export default class ft extends _0x11d0c7(_0x410b12){constructor(_0xfa7454,_0x23143a,_0x357423,_0x2f9b9b){super(_0xfa7454,_0x23143a,_0x357423,_0x2f9b9b),this[_0xdf91('0x1d')]=this[_0xdf91('0x2d')](),this[_0xdf91('0x1d')][_0xdf91('0x8')]([this[_0xdf91('0x22')],this[_0xdf91('0x27')]]),this[_0xdf91('0x37')][_0xdf91('0x25')]&&this['commentThreadChildren']['add'](this[_0xdf91('0x13')],0x0),this[_0xdf91('0x37')]['on'](_0xdf91('0x23'),(_0x34bebf,_0x4cf780,_0x124716)=>{_0x124716?this[_0xdf91('0x1d')][_0xdf91('0x18')](this['commentThreadHeaderView'])||this[_0xdf91('0x1d')][_0xdf91('0x38')](this[_0xdf91('0x13')],0x0):this[_0xdf91('0x1d')][_0xdf91('0x33')](this[_0xdf91('0x13')]);}),this['set'](_0xdf91('0x15'),null),this[_0xdf91('0x10')]=null,this[_0xdf91('0x19')]=null,this['locale']=_0xfa7454,this['resolveButton']=this[_0xdf91('0x34')](),this[_0xdf91('0x3a')](this[_0xdf91('0x39')]()),this['on'](_0xdf91('0x35'),(_0x28d693,_0x123368,_0x4c68ef)=>{_0x4c68ef||this['_cancelAllConfirms']();}),this[_0xdf91('0x3c')](this[_0xdf91('0x37')],_0xdf91('0x3'),(_0x4d35b8,_0x15aa20,_0x42da27)=>{_0x42da27&&this['_cancelAllConfirms']();}),this['length']>0x0&&this[_0xdf91('0x17')](),this[_0xdf91('0x3c')](this['commentsListView'][_0xdf91('0x1a')],_0xdf91('0x38'),()=>{this[_0xdf91('0x17')]();});}[_0xdf91('0x39')](){const _0x4c494f=this[_0xdf91('0x1b')];return{'tag':_0xdf91('0xd'),'attributes':{'class':[_0xdf91('0x2b'),_0xdf91('0x3b'),_0x4c494f['if'](_0xdf91('0x2a'),_0xdf91('0x30')),_0x4c494f['if'](_0xdf91('0x31'),_0xdf91('0x2e')),_0x4c494f['if'](_0xdf91('0x1c'),_0xdf91('0x1e')),_0x4c494f['to'](_0xdf91('0x15'),_0x28c73b=>_0x28c73b?_0xdf91('0x16')+_0x28c73b:'')],'data-thread-id':this[_0xdf91('0x37')]['id'],'tabindex':-0x1},'children':[{'tag':_0xdf91('0xd'),'attributes':{'class':'ck-thread__container'},'children':this[_0xdf91('0x1d')]}]};}[_0xdf91('0x21')](){super['render'](),this[_0xdf91('0x10')]=this['element'][_0xdf91('0xf')](_0xdf91('0x2c'));}['_cancelAllConfirms'](){this[_0xdf91('0x32')]();for(const _0x3f10ff of this[_0xdf91('0x22')][_0xdf91('0x1a')])_0x3f10ff[_0xdf91('0x32')]();}[_0xdf91('0x17')](){const {locale:_0x556c19}=this,_0x3b4282=this[_0xdf91('0x22')][_0xdf91('0x1a')][_0xdf91('0x12')](0x0);_0x3b4282===this[_0xdf91('0x19')]||_0x3b4282[_0xdf91('0x6')]||(this['_boundFirstCommentView']=_0x3b4282,this[_0xdf91('0xe')](_0xdf91('0x15')),this[_0xdf91('0x14')](_0xdf91('0x15'))['to'](_0x3b4282,_0xdf91('0x15'),_0x3df72d=>_0xdf91('0x33')===_0x3df72d?'remove':null),_0x3b4282[_0xdf91('0x7')]=_0x2bd97c(_0x556c19,_0xdf91('0x0')),_0x3b4282[_0xdf91('0x1f')]['on'](_0xdf91('0x36'),_0x8815e7=>{_0x8815e7['stop'](),this[_0xdf91('0xb')](_0x2bd97c(_0x556c19,_0xdf91('0x24')),this['containerElement'])[_0xdf91('0x26')](()=>{this[_0xdf91('0x2f')]('removeCommentThread');});},{'priority':_0xdf91('0x9')}),_0x3b4282[_0xdf91('0x3d')]['add'](this[_0xdf91('0x11')],0x0));}['_createResolveButton'](){const _0x3bfffc=new _0x5013f9(this[_0xdf91('0xc')]);return _0x3bfffc[_0xdf91('0x29')]=_0x2bd97c(this['locale'],'Resolve'),_0x3bfffc[_0xdf91('0x5')]=_0x2bd97c(this[_0xdf91('0xc')],_0xdf91('0x28')),_0x3bfffc['icon']=_0x4ecac7[_0xdf91('0x20')],_0x3bfffc[_0xdf91('0xa')]({'attributes':{'class':_0xdf91('0x1')}}),_0x3bfffc[_0xdf91('0x14')]('isEnabled')['to'](this[_0xdf91('0x37')],_0xdf91('0x4'),_0x4c156b=>!_0x4c156b),_0x3bfffc[_0xdf91('0x14')]('isVisible')['to'](this[_0xdf91('0x37')],'isResolvable',this[_0xdf91('0x37')],'isResolved',(_0x324a6d,_0x3909d0)=>_0x324a6d&&!_0x3909d0),_0x3bfffc['on']('execute',()=>{this[_0xdf91('0x2f')](_0xdf91('0x2'),this[_0xdf91('0x37')]['id']);}),_0x3bfffc;}}
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 _0x83a9=['ck-annotation__info','extendTemplate','getUserViewNotificationText','@external','ck-annotation__info-name','actionIndicator','isSystemComment','ck-comment--remove-confirmation','threeVerticalDots','bindTemplate','_model','ck-annotation','ck-comment--edit','isVisible','change:isRemovable','_config','children','render','isEnabled','ck-comment__user','listenTo','isRemovable','element','attributes','label','ck-annotation__content-wrapper','creator','blur','items','isEditable','ck-comment__main','removeButton','change:isEnabled','isConfirm','visibleView','_createCommentInputView','Reply...','push','withText','div','pencil','ck-comment','set','Delete\x20comment?','_createRemoveButton','Edit','actionBar','authoredAt','ck-comment--','some','createCollection','importWord','edit','resolvedAt','ck-comment--info','isEditMode','cancelConfirm','source','buttonView','_attachActions','ck-comment__info-name','mouseenter','ck-annotation__main','ck-comment__info','locale','dropdown','ck-comment__actions','icon','name','length','removeComment','bind','Show\x20more\x20items','focus','ck-comment__external','_createDropdown','author','isReadOnly','ck-comment--remove','placeholder','_createEditButton','EXTERNAL_IMPORT_WORD_AVATAR','execute','isExternal','getTemplate','userView','add','span','switchToEditMode','ck-annotation__info-time','mouseleave','ck-annotation__user','formatDateTime','getExternalCommentNote','panelView','editButton'];(function(_0x477b25,_0x83a9a9){const _0xb2623e=function(_0x358c1a){while(--_0x358c1a){_0x477b25['push'](_0x477b25['shift']());}};_0xb2623e(++_0x83a9a9);}(_0x83a9,0x190));const _0xb262=function(_0x477b25,_0x83a9a9){_0x477b25=_0x477b25-0x0;let _0xb2623e=_0x83a9[_0x477b25];return _0xb2623e;};import{ButtonView as _0x39df6f,createDropdown as _0xb31a49,ListView as _0x46557f,ListItemView as _0x284786}from'ckeditor5/src/ui';import{icons as _0x43a15d}from'ckeditor5/src/core';import{UserView as _0x5959bf,ConfirmMixin as _0x1ff770}from'ckeditor5-collaboration/src/collaboration-core';import _0x5651dc from'./basecommentview';import _0x53704c from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x3fa931}from'../../../utils/common-translations';export default class pt extends _0x1ff770(_0x5651dc){constructor(_0x56bde4,_0x4db560,_0x7db79f){super(_0x56bde4,_0x4db560,_0x7db79f),this['set'](_0xb262('0x55'),null),this[_0xb262('0x1a')](_0xb262('0x3f'),_0x3fa931(_0x56bde4,_0xb262('0x14'))),this[_0xb262('0x37')](_0xb262('0x1f'))['to'](_0x4db560),this['bind'](_0xb262('0x25'))['to'](_0x4db560),this[_0xb262('0x1e')]=this['createCollection'](),this[_0xb262('0x56')]||(this['editButton']=this[_0xb262('0x40')](),this[_0xb262('0xf')]=this[_0xb262('0x1c')](),this[_0xb262('0xc')]=this[_0xb262('0x22')](),this[_0xb262('0xc')]['addMany']([this[_0xb262('0x4f')],this['removeButton']]),this[_0xb262('0x31')]=this[_0xb262('0x3b')](),this[_0xb262('0x1e')][_0xb262('0x46')](this['dropdown'])),this[_0xb262('0x45')]=new _0x5959bf(_0x56bde4,_0x4db560['author'],this['getUserViewNotificationText']()),this[_0xb262('0x45')][_0xb262('0x51')]({'attributes':{'class':[_0xb262('0x3'),_0xb262('0x4b')]}}),this[_0xb262('0x4')](_0x4db560,_0xb262('0x5e'),()=>this[_0xb262('0x28')]()),this['setTemplate'](this[_0xb262('0x44')]());}['getTemplate'](){const _0x24b5bf=this[_0xb262('0x59')],_0x2166ee=[{'tag':_0xb262('0x17'),'attributes':{'class':[_0xb262('0x2f'),_0xb262('0x50')]},'children':[{'tag':_0xb262('0x47'),'children':[{'text':this[_0xb262('0x45')][_0xb262('0x34')]}],'attributes':{'class':[_0xb262('0x2c'),_0xb262('0x54')]}},{'tag':'time','attributes':{'datetime':_0x24b5bf['to'](_0xb262('0x1f')),'class':['ck-comment__info-time',_0xb262('0x49')]},'children':[{'text':_0x24b5bf['to']('authoredAt',_0x1aaae0=>this[_0xb262('0x5f')][_0xb262('0x4c')](_0x1aaae0))}]}]},{'tag':_0xb262('0x17'),'attributes':{'class':[_0xb262('0x32'),'ck-annotation__actions',_0x24b5bf['if'](_0xb262('0x27'),'ck-comment__actions--hidden'),_0x24b5bf['if']('isEditMode','ck-annotation__actions--hidden')]},'children':this[_0xb262('0x1e')]},{'tag':_0xb262('0x17'),'attributes':{'class':[_0xb262('0x9')]},'children':this[_0xb262('0x12')]}];return this[_0xb262('0x5a')][_0xb262('0x43')]&&_0x2166ee[_0xb262('0x15')]({'tag':_0xb262('0x17'),'attributes':{'class':[_0xb262('0x3a')]},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x24b5bf['if'](_0xb262('0x11'),_0xb262('0x57'))],'tabindex':-0x1},'children':[{'tag':_0xb262('0x17'),'attributes':{'class':[_0xb262('0x19'),_0xb262('0x5b'),_0x24b5bf['if'](_0xb262('0x27'),_0xb262('0x5c')),_0x24b5bf['if']('isSystemComment',_0xb262('0x26')),_0x24b5bf['to'](_0xb262('0x55'),_0x37b2a2=>_0x37b2a2?_0xb262('0x20')+_0x37b2a2:'')],'data-author-id':this['_model'][_0xb262('0x3c')]['id'],'data-comment-id':this[_0xb262('0x5a')]['id']},'children':[this[_0xb262('0x45')],{'tag':_0xb262('0x17'),'attributes':{'class':[_0xb262('0xe'),_0xb262('0x2e')]},'children':_0x2166ee}]}]};}[_0xb262('0x40')](){const _0x447bb7=new _0x39df6f(this[_0xb262('0x30')]);return _0x447bb7[_0xb262('0x8')]=_0x3fa931(this['locale'],_0xb262('0x1d')),_0x447bb7[_0xb262('0x33')]=_0x43a15d[_0xb262('0x18')],_0x447bb7[_0xb262('0x16')]=!0x0,_0x447bb7[_0xb262('0x51')]({'attributes':{'class':_0xb262('0x5c')}}),_0x447bb7['bind'](_0xb262('0x2'))['to'](this[_0xb262('0x5a')],_0xb262('0x3d'),_0x180b03=>!_0x180b03),_0x447bb7[_0xb262('0x37')](_0xb262('0x5d'))['to'](this[_0xb262('0x5a')],_0xb262('0xd')),_0x447bb7['on']('execute',()=>this[_0xb262('0x48')]()),_0x447bb7;}[_0xb262('0x1c')](){const _0x47a5ec=new _0x39df6f(this[_0xb262('0x30')]);return _0x47a5ec[_0xb262('0x8')]=_0x3fa931(this[_0xb262('0x30')],'Remove'),_0x47a5ec[_0xb262('0x33')]=_0x53704c,_0x47a5ec['withText']=!0x0,_0x47a5ec[_0xb262('0x51')]({'attributes':{'class':_0xb262('0x3e')}}),_0x47a5ec[_0xb262('0x37')]('isEnabled')['to'](this[_0xb262('0x5a')],_0xb262('0x3d'),_0x525488=>!_0x525488),_0x47a5ec['bind']('isVisible')['to'](this[_0xb262('0x5a')],_0xb262('0x5')),_0x47a5ec['on'](_0xb262('0x42'),()=>{this['showConfirm'](_0x3fa931(this['locale'],_0xb262('0x1b')),this[_0xb262('0x6')])['then'](()=>{this['fire'](_0xb262('0x36'),this[_0xb262('0x5a')]['id']);});}),_0x47a5ec;}[_0xb262('0x3b')](){const _0x271a9d=_0xb31a49(this[_0xb262('0x30')]),_0x4c4119=_0x271a9d[_0xb262('0x4e')]['children'],_0x1ff68e=new _0x46557f(this[_0xb262('0x30')]),_0x3ba4f0=(_0x276efd,_0x10c0b0=-0x1)=>{const _0x1d3fcc=new _0x284786(this[_0xb262('0x30')]);_0x1d3fcc[_0xb262('0x0')][_0xb262('0x46')](_0x276efd);const _0x2e609e=_0x10c0b0>-0x1?_0x10c0b0:_0x1ff68e[_0xb262('0xc')][_0xb262('0x35')];_0x1ff68e[_0xb262('0xc')][_0xb262('0x46')](_0x1d3fcc,_0x2e609e),_0x271a9d[_0xb262('0x4')](_0x276efd,_0xb262('0x10'),()=>{_0x271a9d['isEnabled']=[...this[_0xb262('0xc')]][_0xb262('0x21')](_0x44665e=>_0x44665e['isEnabled']);}),_0x271a9d['listenTo'](_0x276efd,'change:isVisible',()=>{_0x271a9d[_0xb262('0x2a')][_0xb262('0x5d')]=[...this[_0xb262('0xc')]][_0xb262('0x21')](_0x186534=>_0x186534[_0xb262('0x5d')]);});};_0x271a9d['panelPosition']='sw',_0x271a9d[_0xb262('0x2a')][_0xb262('0x1a')]({'label':_0x3fa931(this[_0xb262('0x30')],_0xb262('0x38')),'icon':_0x43a15d[_0xb262('0x58')]}),_0x271a9d['isEnabled']=[...this[_0xb262('0xc')]][_0xb262('0x21')](_0xb563a8=>_0xb563a8[_0xb262('0x2')]),_0x271a9d['buttonView']['isVisible']=[...this[_0xb262('0xc')]]['some'](_0x4cb7f4=>_0x4cb7f4[_0xb262('0x5d')]);for(const _0x22259b of this[_0xb262('0xc')])_0x3ba4f0(_0x22259b);return _0x4c4119[_0xb262('0x46')](_0x1ff68e),_0x271a9d[_0xb262('0x4')](this[_0xb262('0xc')],'add',(_0x2ee6b3,_0x33cbf3,_0x3847ac)=>{_0x3ba4f0(_0x33cbf3,_0x3847ac);}),_0x271a9d[_0xb262('0x4')](this[_0xb262('0xc')],'remove',(_0x2007e0,_0x28c1a0,_0xec5a61)=>{_0x1ff68e[_0xb262('0xc')]['remove'](_0xec5a61);}),_0x271a9d;}[_0xb262('0x2b')](_0x3f05c9,_0x2fed82){const _0x231975=_0x3f05c9&&_0x3f05c9[_0xb262('0x6')];_0x231975&&(this[_0xb262('0x4')](_0x231975,_0xb262('0x2d'),()=>this[_0xb262('0x55')]=_0x2fed82),this[_0xb262('0x4')](_0x231975,_0xb262('0x39'),()=>this['actionIndicator']=_0x2fed82),this['listenTo'](_0x231975,_0xb262('0x4a'),()=>this['actionIndicator']=null),this[_0xb262('0x4')](_0x231975,_0xb262('0xb'),()=>this['actionIndicator']=null));}[_0xb262('0x13')](){const _0xedd2c8=super[_0xb262('0x13')]();return _0xedd2c8[_0xb262('0x37')](_0xb262('0x3f'))['to'](this),_0xedd2c8;}[_0xb262('0x4d')](){return _0xb262('0x23')===this[_0xb262('0x5a')][_0xb262('0x7')][_0xb262('0x53')][_0xb262('0x29')]?_0x3fa931(this[_0xb262('0x30')],'EXTERNAL_IMPORT_WORD_COMMENT'):_0x3fa931(this[_0xb262('0x30')],'EXTERNAL_COMMENT');}[_0xb262('0x52')](){return this[_0xb262('0x5a')][_0xb262('0x43')]?_0xb262('0x23')===this['_model'][_0xb262('0x7')][_0xb262('0x53')][_0xb262('0x29')]?_0x3fa931(this['locale'],_0xb262('0x41'),this['_model'][_0xb262('0xa')][_0xb262('0x34')]):_0x3fa931(this[_0xb262('0x30')],'EXTERNAL_AVATAR',this[_0xb262('0x5a')]['creator'][_0xb262('0x34')]):null;}['render'](){super[_0xb262('0x1')](),this[_0xb262('0x2b')](this[_0xb262('0x4f')],_0xb262('0x24')),this[_0xb262('0x2b')](this[_0xb262('0xf')],'remove');}}
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 _0x1261=['pluginName','Comments','requires'];(function(_0x5bb480,_0x126173){var _0x1ff0e4=function(_0x184cb9){while(--_0x184cb9){_0x5bb480['push'](_0x5bb480['shift']());}};_0x1ff0e4(++_0x126173);}(_0x1261,0x1e5));var _0x1ff0=function(_0x5bb480,_0x126173){_0x5bb480=_0x5bb480-0x0;var _0x1ff0e4=_0x1261[_0x5bb480];return _0x1ff0e4;};import{Plugin as _0x115063}from'ckeditor5/src/core';import _0x264191 from'./comments/commentsrepository';import _0x4d71b0 from'./comments/commentsediting';import _0x14994c from'./comments/commentsui';import _0xb2d134 from'./commentsonly';import _0x4b274f from'./annotations/widesidebar';import _0xca1a8c from'./annotations/narrowsidebar';import _0x361af9 from'./annotations/inlineannotations';import _0x516456 from'./comments/commentsarchiveui';import _0x20d8c1 from'./comments/commentsarchive';export default class f extends _0x115063{static get[_0x1ff0('0x0')](){return[_0x264191,_0x4d71b0,_0x14994c,_0x20d8c1,_0x516456,_0xb2d134,_0x4b274f,_0xca1a8c,_0x361af9];}static get[_0x1ff0('0x1')](){return _0x1ff0('0x2');}}
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 _0x4e13=['_disableCommentsOnlyMode','commands','addCommentThread','pluginName','cut','has','affectsData','isEnabled','delete','listenTo','commentsOnlyMode','clipboardInput','highest','_enableCommentsOnlyMode','DragDrop','forceDisabled','document','CommentsOnly','editing','plugins','stop','editor','view','stopListening','commentsOnly','config','change:isEnabled','get','clearForceDisabled','afterInit'];(function(_0x976546,_0x4e134e){const _0x4747aa=function(_0x584ae4){while(--_0x584ae4){_0x976546['push'](_0x976546['shift']());}};_0x4747aa(++_0x4e134e);}(_0x4e13,0x8b));const _0x4747=function(_0x976546,_0x4e134e){_0x976546=_0x976546-0x0;let _0x4747aa=_0x4e13[_0x976546];return _0x4747aa;};import{Plugin as _0x48d114}from'ckeditor5/src/core';import _0xaf6db1 from'./comments/commentsediting';export default class n extends _0x48d114{static get[_0x4747('0xe')](){return _0x4747('0x1c');}static get['requires'](){return[_0xaf6db1];}constructor(_0x1c83c1){super(_0x1c83c1),this['set']('isEnabled',!0x1),this['on'](_0x4747('0x7'),(_0xed8d9c,_0xbe0d4e,_0x584e9f)=>{_0x584e9f?this['_enableCommentsOnlyMode']():this[_0x4747('0xb')]();});}[_0x4747('0xa')](){!this['isEnabled']&&this[_0x4747('0x2')][_0x4747('0x6')]['get'](_0x4747('0x5'))&&(this[_0x4747('0x12')]=!0x0);}[_0x4747('0x18')](){for(const [_0x6180f0,_0x45074b]of this[_0x4747('0x2')][_0x4747('0xc')])_0x45074b[_0x4747('0x11')]&&_0x4747('0xd')!==_0x6180f0&&_0x45074b[_0x4747('0x1a')]('commentsOnlyMode');this[_0x4747('0x2')][_0x4747('0x0')][_0x4747('0x10')](_0x4747('0x19'))&&this[_0x4747('0x2')][_0x4747('0x0')][_0x4747('0x8')]('DragDrop')[_0x4747('0x1a')]('commentsOnlyMode');const _0x105897=this[_0x4747('0x2')][_0x4747('0x1d')]['view'][_0x4747('0x1b')];this['listenTo'](_0x105897,_0x4747('0xf'),_0x4e67a6=>_0x4e67a6[_0x4747('0x1')](),{'priority':_0x4747('0x17')}),this[_0x4747('0x14')](_0x105897,_0x4747('0x16'),_0x243ff0=>_0x243ff0['stop'](),{'priority':_0x4747('0x17')}),this[_0x4747('0x14')](_0x105897,_0x4747('0x13'),_0x57e045=>_0x57e045[_0x4747('0x1')](),{'priority':_0x4747('0x17')});}[_0x4747('0xb')](){for(const [_0xc24efd,_0x13ca87]of this[_0x4747('0x2')]['commands'])_0x13ca87[_0x4747('0x11')]&&_0x4747('0xd')!==_0xc24efd&&_0x13ca87[_0x4747('0x9')](_0x4747('0x15'));this[_0x4747('0x4')](this[_0x4747('0x2')]['editing'][_0x4747('0x3')][_0x4747('0x1b')]);}}
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(_0x1be27e,_0x38beef,_0x5c81ec){const t=_0x1be27e['t'];switch(_0x38beef){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'},_0x5c81ec);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'},_0x5c81ec);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'},_0x5c81ec);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'},_0x5c81ec);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'';}}