@ckeditor/ckeditor5-comments 32.0.0 → 33.0.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 (89) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +1 -1
  3. package/build/comments.js +5 -0
  4. package/build/translations/bs.js +1 -0
  5. package/build/translations/cs.js +1 -0
  6. package/build/translations/da.js +1 -0
  7. package/build/translations/de-ch.js +1 -0
  8. package/build/translations/de.js +1 -0
  9. package/build/translations/el.js +1 -0
  10. package/build/translations/en-au.js +1 -0
  11. package/build/translations/es.js +1 -0
  12. package/build/translations/et.js +1 -0
  13. package/build/translations/fr.js +1 -0
  14. package/build/translations/gl.js +1 -0
  15. package/build/translations/hi.js +1 -0
  16. package/build/translations/hr.js +1 -0
  17. package/build/translations/hu.js +1 -0
  18. package/build/translations/id.js +1 -0
  19. package/build/translations/it.js +1 -0
  20. package/build/translations/ja.js +1 -0
  21. package/build/translations/ko.js +1 -0
  22. package/build/translations/nl.js +1 -0
  23. package/build/translations/no.js +1 -0
  24. package/build/translations/pl.js +1 -0
  25. package/build/translations/pt-br.js +1 -0
  26. package/build/translations/ro.js +1 -0
  27. package/build/translations/ru.js +1 -0
  28. package/build/translations/sk.js +1 -0
  29. package/build/translations/sr-latn.js +1 -0
  30. package/build/translations/sr.js +1 -0
  31. package/build/translations/tk.js +1 -0
  32. package/build/translations/tr.js +1 -0
  33. package/build/translations/ug.js +1 -0
  34. package/build/translations/uk.js +1 -0
  35. package/build/translations/zh-cn.js +1 -0
  36. package/build/translations/zh.js +1 -0
  37. package/lang/translations/el.po +79 -0
  38. package/package.json +4 -9
  39. package/src/annotations/annotation.js +1 -1
  40. package/src/annotations/annotationcollection.js +1 -1
  41. package/src/annotations/annotations.js +1 -1
  42. package/src/annotations/annotationsuis.js +1 -1
  43. package/src/annotations/editorannotations.js +1 -1
  44. package/src/annotations/inlineannotations.js +1 -1
  45. package/src/annotations/narrowsidebar.js +1 -1
  46. package/src/annotations/sidebar.js +1 -1
  47. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  48. package/src/annotations/view/annotationview.js +1 -1
  49. package/src/annotations/view/sidebaritemview.js +1 -1
  50. package/src/annotations/view/sidebarview.js +1 -1
  51. package/src/annotations/widesidebar.js +1 -1
  52. package/src/comments/addcommentthreadcommand.js +1 -1
  53. package/src/comments/commentsediting.js +1 -1
  54. package/src/comments/commentsrepository.js +1 -1
  55. package/src/comments/commentsui.js +1 -1
  56. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  57. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  58. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  59. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  60. package/src/comments/ui/commentthreadcontroller.js +1 -1
  61. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  62. package/src/comments/ui/view/basecommentview.js +1 -1
  63. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  64. package/src/comments/ui/view/commentcontentview.js +1 -1
  65. package/src/comments/ui/view/commentinputview.js +1 -1
  66. package/src/comments/ui/view/commentslistview.js +1 -1
  67. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  68. package/src/comments/ui/view/commentthreadview.js +1 -1
  69. package/src/comments/ui/view/commentview.js +1 -1
  70. package/src/comments/ui/view/confirmmixin.js +1 -1
  71. package/src/comments/ui/view/confirmview.js +1 -1
  72. package/src/comments.js +1 -1
  73. package/src/commentsonly.js +1 -1
  74. package/src/{utils/getmarkerdomelement.js → index.js} +1 -1
  75. package/src/utils/common-translations.js +1 -1
  76. package/src/utils/createmutationobserver.js +1 -1
  77. package/theme/annotation-inline.css +1 -1
  78. package/theme/annotation.css +1 -1
  79. package/theme/comment.css +1 -1
  80. package/theme/commentinput.css +1 -1
  81. package/theme/commentmarker.css +1 -1
  82. package/theme/commentthread.css +1 -1
  83. package/theme/icons/add-comment.svg +1 -1
  84. package/theme/icons/edit-comment.svg +1 -1
  85. package/theme/icons/remove-comment.svg +1 -1
  86. package/theme/sidebar-narrow.css +1 -1
  87. package/theme/sidebar.css +1 -1
  88. package/src/utils/getdatetimeformatter.js +0 -23
  89. package/src/utils/trim-html.js +0 -23
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3f19=['destroy','refreshVisibleViews','hasDirtyComment','_rearrangeExpand','_updateHasDirtyComment','ck-thread__comments','remove','insert','_model','visibleViews','createCollection','delegate','from','element','isEditMode','commentViews','comments','count','CommentView','editorConfig','_config','_collapsedCommentsView','set','isActive','_shouldCollapse','some','maxCommentsWhenCollapsed','formatDateTime','expand','commentUpdated','_handleNewCommentModel','weight','maxCommentCharsWhenCollapsed','listenTo','_rearrangeCollapse','_handleRemoveCommentModel','equal','viewUid','length','focus','add','delete','render','updateComment'];(function(_0x29a391,_0x3f19d3){const _0x114998=function(_0x2e327a){while(--_0x2e327a){_0x29a391['push'](_0x29a391['shift']());}};_0x114998(++_0x3f19d3);}(_0x3f19,0x113));const _0x1149=function(_0x29a391,_0x3f19d3){_0x29a391=_0x29a391-0x0;let _0x114998=_0x3f19[_0x29a391];return _0x114998;};import{View as _0x1d559b}from'ckeditor5/src/ui';import{diff as _0x485b0a,Collection as _0x531cb6}from'ckeditor5/src/utils';import _0x143800 from'./collapsedcommentsview';export default class Tt extends _0x1d559b{constructor(_0x283575,_0x1727a5,_0x5d9572){super(_0x283575),this[_0x1149('0xb')]('hasDirtyComment',!0x1),this[_0x1149('0xb')](_0x1149('0x1b'),_0x1727a5[_0x1149('0x5')][_0x1149('0x1b')]),this[_0x1149('0xb')](_0x1149('0xc'),!0x1),this['_model']=_0x1727a5,this['_config']=_0x5d9572,this['commentViews']=this[_0x1149('0x2b')](),this[_0x1149('0x2a')]=this['createCollection'](),this[_0x1149('0xa')]=new _0x143800(_0x283575),this['_collapsedCommentsView']['bind'](_0x1149('0x6'))['to'](this,_0x1149('0x1b'),_0x3aec51=>_0x3aec51-this[_0x1149('0x9')][_0x1149('0xf')]);for(const _0x4796ba of _0x1727a5[_0x1149('0x5')])this[_0x1149('0x13')](_0x4796ba);this[_0x1149('0x16')](_0x1727a5[_0x1149('0x5')],_0x1149('0x1d'),(_0x2eb5b6,_0x30933f)=>{this[_0x1149('0x1b')]++,this[_0x1149('0x13')](_0x30933f),this[_0x1149('0x22')]();}),this[_0x1149('0x16')](_0x1727a5[_0x1149('0x5')],_0x1149('0x27'),(_0x39c2dc,_0x30c6ae)=>{this[_0x1149('0x1b')]--,this[_0x1149('0x18')](_0x30c6ae),this[_0x1149('0x22')]();}),this[_0x1149('0x16')](_0x1727a5,_0x1149('0x12'),()=>this['refreshVisibleViews']()),this['on']('change:isActive',()=>this[_0x1149('0x22')]()),this['on']('change:hasDirtyComment',()=>this[_0x1149('0x22')]()),this['setTemplate']({'tag':'ul','attributes':{'class':[_0x1149('0x26')]},'children':this[_0x1149('0x2a')]});}get[_0x1149('0xd')](){return this[_0x1149('0x29')][_0x1149('0x14')]>this[_0x1149('0x9')]['maxThreadTotalWeight']&&!this[_0x1149('0xc')]&&!this[_0x1149('0x23')];}[_0x1149('0x1f')](){super[_0x1149('0x1f')](),this[_0x1149('0x22')]();}[_0x1149('0x1c')](){this[_0x1149('0x2')][_0x1149('0x1c')]();}[_0x1149('0x21')](){this['_collapsedCommentsView'][_0x1149('0x21')]();for(const _0x7390fb of this[_0x1149('0x4')])_0x7390fb['destroy']();super[_0x1149('0x21')]();}[_0x1149('0x22')](){this[_0x1149('0xd')]?this[_0x1149('0x17')]():this['_rearrangeExpand']();}[_0x1149('0x13')](_0x37f6e4){const _0x2d8254=new this[(_0x1149('0x9'))][(_0x1149('0x7'))](this['locale'],_0x37f6e4,{'maxCommentCharsWhenCollapsed':this[_0x1149('0x9')][_0x1149('0x15')],'formatDateTime':this[_0x1149('0x9')][_0x1149('0x10')],'editorConfig':this[_0x1149('0x9')][_0x1149('0x8')]});_0x2d8254[_0x1149('0x1a')]=_0x37f6e4['id'],_0x2d8254[_0x1149('0x0')]('removeComment')['to'](this),_0x2d8254[_0x1149('0x0')](_0x1149('0x20'))['to'](this),this[_0x1149('0x16')](_0x2d8254,'change:isEditMode',()=>this[_0x1149('0x25')]()),this['commentViews'][_0x1149('0x1d')](_0x2d8254);}[_0x1149('0x18')](_0x25d2df){const _0x2ca23c=this[_0x1149('0x4')][_0x1149('0x27')](_0x25d2df['id']);this['stopListening'](_0x2ca23c),_0x2ca23c[_0x1149('0x3')]&&this[_0x1149('0x25')](),_0x2ca23c[_0x1149('0x21')]();}[_0x1149('0x25')](){this[_0x1149('0x23')]=Array[_0x1149('0x1')](this[_0x1149('0x4')])[_0x1149('0xe')](_0x4c7fab=>_0x4c7fab['isEditMode']);}[_0x1149('0x17')](){const _0x2dfcbc=function(_0x5a2975){const _0x1e14aa=new _0x531cb6();for(const _0x3a6b9a of _0x5a2975)_0x1e14aa[_0x1149('0x1d')](_0x3a6b9a);return _0x1e14aa;}(this[_0x1149('0x4')]),_0x5b6c6f=this[_0x1149('0xa')][_0x1149('0x6')];for(let _0x405df7=0x1;_0x405df7<=_0x5b6c6f;_0x405df7++)_0x2dfcbc[_0x1149('0x27')](0x1);for(const _0x482ed5 of _0x2dfcbc)_0x482ed5['collapse']();_0x5b6c6f>0x0&&_0x2dfcbc['add'](this[_0x1149('0xa')],0x1),Ut(_0x485b0a(Array['from'](this[_0x1149('0x2a')]),Array[_0x1149('0x1')](_0x2dfcbc)),this[_0x1149('0x2a')],_0x2dfcbc);}[_0x1149('0x24')](){Ut(_0x485b0a(Array[_0x1149('0x1')](this[_0x1149('0x2a')]),Array[_0x1149('0x1')](this['commentViews'])),this[_0x1149('0x2a')],this[_0x1149('0x4')]);for(const _0x41d41b of this[_0x1149('0x2a')])_0x41d41b[_0x1149('0x11')]();}}function Ut(_0x3923f1,_0x2ef5cc,_0xcf1225){let _0x346e05=0x0;for(const _0x4372c1 of _0x3923f1)switch(_0x4372c1){case _0x1149('0x28'):_0x2ef5cc[_0x1149('0x1d')](_0xcf1225['get'](_0x346e05),_0x346e05),_0x346e05++;break;case _0x1149('0x1e'):_0x2ef5cc[_0x1149('0x27')](_0x346e05);break;case _0x1149('0x19'):_0x346e05++;}}
23
+ const _0x2500=['createCollection','_updateHasDirtyComment','equal','length','listenTo','some','bind','expand','isEditMode','locale','remove','_config','collapse','stopListening','maxCommentsWhenCollapsed','comments','set','CommentView','visibleViews','hasDirtyComment','destroy','_shouldCollapse','count','focus','formatDateTime','weight','commentViews','maxCommentCharsWhenCollapsed','removeComment','get','insert','_handleRemoveCommentModel','viewUid','_handleNewCommentModel','_rearrangeCollapse','editorConfig','_collapsedCommentsView','add','commentUpdated','element','from','refreshVisibleViews','render','setTemplate','_rearrangeExpand','delegate','isActive'];(function(_0x588f0b,_0x250065){const _0x525bcc=function(_0xda124a){while(--_0xda124a){_0x588f0b['push'](_0x588f0b['shift']());}};_0x525bcc(++_0x250065);}(_0x2500,0x1d8));const _0x525b=function(_0x588f0b,_0x250065){_0x588f0b=_0x588f0b-0x0;let _0x525bcc=_0x2500[_0x588f0b];return _0x525bcc;};import{View as _0x5842d2}from'ckeditor5/src/ui';import{diff as _0x44c214,Collection as _0x3a4989}from'ckeditor5/src/utils';import _0x558647 from'./collapsedcommentsview';export default class ct extends _0x5842d2{constructor(_0x218c87,_0x1c68c8,_0x137d8c){super(_0x218c87),this['set'](_0x525b('0x11'),!0x1),this[_0x525b('0xe')]('length',_0x1c68c8[_0x525b('0xd')]['length']),this['set'](_0x525b('0x2c'),!0x1),this['_model']=_0x1c68c8,this[_0x525b('0x9')]=_0x137d8c,this['commentViews']=this['createCollection'](),this[_0x525b('0x10')]=this[_0x525b('0x2d')](),this[_0x525b('0x22')]=new _0x558647(_0x218c87),this['_collapsedCommentsView'][_0x525b('0x4')](_0x525b('0x14'))['to'](this,_0x525b('0x1'),_0x37ca35=>_0x37ca35-this[_0x525b('0x9')][_0x525b('0xc')]);for(const _0x3096b5 of _0x1c68c8['comments'])this[_0x525b('0x1f')](_0x3096b5);this[_0x525b('0x2')](_0x1c68c8[_0x525b('0xd')],_0x525b('0x23'),(_0x216391,_0x113a58)=>{this['length']++,this[_0x525b('0x1f')](_0x113a58),this[_0x525b('0x27')]();}),this[_0x525b('0x2')](_0x1c68c8[_0x525b('0xd')],'remove',(_0x1eb89d,_0x1defb4)=>{this[_0x525b('0x1')]--,this[_0x525b('0x1d')](_0x1defb4),this['refreshVisibleViews']();}),this['listenTo'](_0x1c68c8,_0x525b('0x24'),()=>this[_0x525b('0x27')]()),this['on']('change:isActive',()=>this[_0x525b('0x27')]()),this['on']('change:hasDirtyComment',()=>this['refreshVisibleViews']()),this[_0x525b('0x29')]({'tag':'ul','attributes':{'class':['ck-thread__comments']},'children':this[_0x525b('0x10')]});}get[_0x525b('0x13')](){return this['_model'][_0x525b('0x17')]>this[_0x525b('0x9')]['maxThreadTotalWeight']&&!this[_0x525b('0x2c')]&&!this['hasDirtyComment'];}['render'](){super[_0x525b('0x28')](),this[_0x525b('0x27')]();}['focus'](){this[_0x525b('0x25')][_0x525b('0x15')]();}[_0x525b('0x12')](){this[_0x525b('0x22')][_0x525b('0x12')]();for(const _0x4df196 of this[_0x525b('0x18')])_0x4df196[_0x525b('0x12')]();super[_0x525b('0x12')]();}['refreshVisibleViews'](){this[_0x525b('0x13')]?this[_0x525b('0x20')]():this[_0x525b('0x2a')]();}[_0x525b('0x1f')](_0x153d99){const _0xa8819f=new this[(_0x525b('0x9'))][(_0x525b('0xf'))](this[_0x525b('0x7')],_0x153d99,{'maxCommentCharsWhenCollapsed':this[_0x525b('0x9')][_0x525b('0x19')],'formatDateTime':this[_0x525b('0x9')][_0x525b('0x16')],'editorConfig':this[_0x525b('0x9')][_0x525b('0x21')]});_0xa8819f[_0x525b('0x1e')]=_0x153d99['id'],_0xa8819f['delegate'](_0x525b('0x1a'))['to'](this),_0xa8819f[_0x525b('0x2b')]('updateComment')['to'](this),this[_0x525b('0x2')](_0xa8819f,'change:isEditMode',()=>this[_0x525b('0x2e')]()),this['commentViews'][_0x525b('0x23')](_0xa8819f);}['_handleRemoveCommentModel'](_0x2036f4){const _0x14dd04=this['commentViews'][_0x525b('0x8')](_0x2036f4['id']);this[_0x525b('0xb')](_0x14dd04),_0x14dd04[_0x525b('0x6')]&&this[_0x525b('0x2e')](),_0x14dd04['destroy']();}[_0x525b('0x2e')](){this[_0x525b('0x11')]=Array['from'](this[_0x525b('0x18')])[_0x525b('0x3')](_0x41a3bf=>_0x41a3bf[_0x525b('0x6')]);}['_rearrangeCollapse'](){const _0x13d590=function(_0x4121a3){const _0x451437=new _0x3a4989();for(const _0x4c9314 of _0x4121a3)_0x451437[_0x525b('0x23')](_0x4c9314);return _0x451437;}(this[_0x525b('0x18')]),_0x2dd10c=this[_0x525b('0x22')][_0x525b('0x14')];for(let _0x55a34a=0x1;_0x55a34a<=_0x2dd10c;_0x55a34a++)_0x13d590['remove'](0x1);for(const _0x15b399 of _0x13d590)_0x15b399[_0x525b('0xa')]();_0x2dd10c>0x0&&_0x13d590[_0x525b('0x23')](this['_collapsedCommentsView'],0x1),Ut(_0x44c214(Array[_0x525b('0x26')](this[_0x525b('0x10')]),Array[_0x525b('0x26')](_0x13d590)),this[_0x525b('0x10')],_0x13d590);}['_rearrangeExpand'](){Ut(_0x44c214(Array[_0x525b('0x26')](this[_0x525b('0x10')]),Array['from'](this[_0x525b('0x18')])),this[_0x525b('0x10')],this[_0x525b('0x18')]);for(const _0x898436 of this[_0x525b('0x10')])_0x898436[_0x525b('0x5')]();}}function Ut(_0x4747f4,_0x157de8,_0x131c29){let _0x151bf0=0x0;for(const _0x125f35 of _0x4747f4)switch(_0x125f35){case _0x525b('0x1c'):_0x157de8['add'](_0x131c29[_0x525b('0x1b')](_0x151bf0),_0x151bf0),_0x151bf0++;break;case'delete':_0x157de8[_0x525b('0x8')](_0x151bf0);break;case _0x525b('0x0'):_0x151bf0++;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2d72=['bind','ck-thread__input','then','extendTemplate','showButtons','bindTemplate','setTemplate','destroy','focusTracker','userView','showInput','commentInputView','ck-comment__input-container','ck-thread__user','isFocused'];(function(_0x29d91d,_0x2d7288){var _0x1c17ec=function(_0x1f5f27){while(--_0x1f5f27){_0x29d91d['push'](_0x29d91d['shift']());}};_0x1c17ec(++_0x2d7288);}(_0x2d72,0x113));var _0x1c17=function(_0x29d91d,_0x2d7288){_0x29d91d=_0x29d91d-0x0;var _0x1c17ec=_0x2d72[_0x29d91d];return _0x1c17ec;};import{View as _0x34ab32}from'ckeditor5/src/ui';import _0x1ba69a from'./commentinputview';import _0x3c5abe from'@ckeditor/ckeditor5-collaboration-core/src/users/view/userview';export default class Rt extends _0x34ab32{constructor(_0xe5c80a,_0x52ec41,_0x532375){super(_0xe5c80a),this[_0x1c17('0x6')]=new _0x1ba69a(_0xe5c80a,_0x532375),this[_0x1c17('0x6')][_0x1c17('0xa')](_0x1c17('0xe'))['to'](this['commentInputView'][_0x1c17('0x3')],_0x1c17('0x9'),this['commentInputView'],'value',(_0x430e4e,_0x44a93b)=>_0x430e4e||!!_0x44a93b),this['set'](_0x1c17('0x5'),!0x1),this[_0x1c17('0x4')]=new _0x3c5abe(_0xe5c80a,_0x52ec41),this[_0x1c17('0x4')][_0x1c17('0xd')]({'attributes':{'class':_0x1c17('0x8')}}),this[_0x1c17('0x6')][_0x1c17('0xd')]({'attributes':{'class':_0x1c17('0xb')}}),this[_0x1c17('0x1')]({'tag':'div','attributes':{'class':[_0x1c17('0x7'),this[_0x1c17('0x0')]['if']('showInput','ck-comment__input-container--active')]},'children':[this[_0x1c17('0x4')],this['commentInputView']]});}['destroy'](){return this[_0x1c17('0x6')]['destroy']()[_0x1c17('0xc')](()=>super[_0x1c17('0x2')]());}}
23
+ var _0x5c5f=['isFocused','bindTemplate','ck-comment__input-container--active','then','ck-thread__input','value','commentInputView','focusTracker','userView','showInput','destroy','extendTemplate'];(function(_0x3bf806,_0x5c5f42){var _0x495155=function(_0x501457){while(--_0x501457){_0x3bf806['push'](_0x3bf806['shift']());}};_0x495155(++_0x5c5f42);}(_0x5c5f,0x160));var _0x4951=function(_0x3bf806,_0x5c5f42){_0x3bf806=_0x3bf806-0x0;var _0x495155=_0x5c5f[_0x3bf806];return _0x495155;};import{View as _0x64d64d}from'ckeditor5/src/ui';import _0x1c50f2 from'./commentinputview';import{UserView as _0x3e5ce2}from'ckeditor5-collaboration/src/collaboration-core';export default class dt extends _0x64d64d{constructor(_0x420bd4,_0x3cf3cf,_0x50cf5b){super(_0x420bd4),this[_0x4951('0x2')]=new _0x1c50f2(_0x420bd4,_0x50cf5b),this[_0x4951('0x2')]['bind']('showButtons')['to'](this[_0x4951('0x2')][_0x4951('0x3')],_0x4951('0x8'),this[_0x4951('0x2')],_0x4951('0x1'),(_0x4fe662,_0x7f47ae)=>_0x4fe662||!!_0x7f47ae),this['set'](_0x4951('0x5'),!0x1),this[_0x4951('0x4')]=new _0x3e5ce2(_0x420bd4,_0x3cf3cf),this[_0x4951('0x4')][_0x4951('0x7')]({'attributes':{'class':'ck-thread__user'}}),this[_0x4951('0x2')]['extendTemplate']({'attributes':{'class':_0x4951('0x0')}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-container',this[_0x4951('0x9')]['if'](_0x4951('0x5'),_0x4951('0xa'))]},'children':[this[_0x4951('0x4')],this['commentInputView']]});}[_0x4951('0x6')](){return this['commentInputView'][_0x4951('0x6')]()[_0x4951('0xb')](()=>super[_0x4951('0x6')]());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import It from'./basecommentthreadview';import{mix as _0x246230}from'ckeditor5/src/utils';import Wt from'./confirmmixin';export default class et extends It{constructor(_0x3abf28,_0x50137,_0x5b7664,_0x503741){super(_0x3abf28,_0x50137,_0x5b7664,_0x503741),this['set']('actionIndicator',null),this['containerElement']=null,this['locale']=_0x3abf28,this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x37dadc,_0x28e99b,_0x51fe94)=>{_0x51fe94||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x4d5950,_0x4cf501,_0x111431)=>{_0x111431&&this['_cancelAllConfirms']();}),this['length']>0x0?this['_bindFirstCommentView']():this['listenTo'](this['commentsListView']['commentViews'],'add',_0x3e3e14=>{this['_bindFirstCommentView'](),_0x3e3e14['off']();});}['getTemplate'](){const _0x3ad0f1=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck-thread',_0x3ad0f1['if']('isActive','ck-thread--active'),_0x3ad0f1['if']('isConfirm','ck-thread--remove-confirmation'),_0x3ad0f1['to']('actionIndicator',_0x4e338c=>_0x4e338c?'ck-thread--'+_0x4e338c:'')],'data-thread-id':this['_model']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':'ck-thread__container'},'children':[this['commentsListView'],this['commentThreadInputView']]}]};}['render'](){super['render'](),this['containerElement']=this['element']['querySelector']('.ck-thread__container');}['_cancelAllConfirms'](){this['cancelConfirm']();for(const _0x22c15d of this['commentsListView']['commentViews'])_0x22c15d['cancelConfirm']();}['_bindFirstCommentView'](){const {t:t}=this['locale'],_0x37da15=this['commentsListView']['commentViews']['get'](0x0);this['bind']('actionIndicator')['to'](_0x37da15,'actionIndicator',_0x18de38=>'remove'===_0x18de38?'remove':null),_0x37da15['placeholder']=t('Write\x20a\x20comment...'),_0x37da15['removeButton']['on']('execute',_0x32d7e2=>{_0x32d7e2['stop'](),this['showConfirm'](t('Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'});}}_0x246230(et,Wt);
23
+ import Rt from'./basecommentthreadview';import{mix as _0x241e02}from'ckeditor5/src/utils';import Wt from'./confirmmixin';export default class nt extends Rt{constructor(_0x24b0af,_0x21d8d3,_0x9c0497,_0x751fc3){super(_0x24b0af,_0x21d8d3,_0x9c0497,_0x751fc3),this['set']('actionIndicator',null),this['containerElement']=null,this['locale']=_0x24b0af,this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x3fe020,_0x332fb6,_0x441b88)=>{_0x441b88||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x4f3a0d,_0x43b4d6,_0x26dfbb)=>{_0x26dfbb&&this['_cancelAllConfirms']();}),this['length']>0x0?this['_bindFirstCommentView']():this['listenTo'](this['commentsListView']['commentViews'],'add',_0xa6a161=>{this['_bindFirstCommentView'](),_0xa6a161['off']();});}['getTemplate'](){const _0x3671ed=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck-thread',_0x3671ed['if']('isActive','ck-thread--active'),_0x3671ed['if']('isConfirm','ck-thread--remove-confirmation'),_0x3671ed['to']('actionIndicator',_0x476ce7=>_0x476ce7?'ck-thread--'+_0x476ce7:'')],'data-thread-id':this['_model']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':'ck-thread__container'},'children':[this['commentsListView'],this['commentThreadInputView']]}]};}['render'](){super['render'](),this['containerElement']=this['element']['querySelector']('.ck-thread__container');}['_cancelAllConfirms'](){this['cancelConfirm']();for(const _0x43167f of this['commentsListView']['commentViews'])_0x43167f['cancelConfirm']();}['_bindFirstCommentView'](){const {t:t}=this['locale'],_0x26e65a=this['commentsListView']['commentViews']['get'](0x0);this['bind']('actionIndicator')['to'](_0x26e65a,'actionIndicator',_0x2b70b0=>'remove'===_0x2b70b0?'remove':null),_0x26e65a['placeholder']=t('Write\x20a\x20comment...'),_0x26e65a['removeButton']['on']('execute',_0x5e245b=>{_0x5e245b['stop'](),this['showConfirm'](t('Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'});}}_0x241e02(nt,Wt);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{mix as _0x1a659b}from'ckeditor5/src/utils';import{ButtonView as mt}from'ckeditor5/src/ui';import Vt from'./basecommentview';import Jt from'@ckeditor/ckeditor5-collaboration-core/src/users/view/userview';import{icons as Yt}from'ckeditor5/src/core';import Kt from'../../../../theme/icons/remove-comment.svg';import Wt from'./confirmmixin';export default class nt extends Vt{constructor(_0x4ac9a3,_0x3ed53d,_0x2b97da){super(_0x4ac9a3,_0x3ed53d,_0x2b97da);const {t:t}=this['locale'];this['set']('actionIndicator',null),this['set']('placeholder',t('Reply...')),this['set']('createdAt',null),this['bind']('createdAt')['to'](_0x3ed53d),this['editButton']=this['_createEditButton'](),this['removeButton']=this['_createRemoveButton'](),this['userView']=new Jt(_0x4ac9a3,_0x3ed53d['author']),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user']}}),this['listenTo'](_0x3ed53d,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x49a9a1=this['bindTemplate'];return{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x49a9a1['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x49a9a1['if']('isEditMode','ck-comment--edit'),_0x49a9a1['to']('actionIndicator',_0x1a435c=>_0x1a435c?'ck-comment--'+_0x1a435c:'')],'data-author-id':this['_model']['author']['id'],'data-comment-id':this['_model']['id']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-comment__main','ck-annotation__main']},'children':[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x49a9a1['to']('createdAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x49a9a1['to']('createdAt',_0x4a3a0a=>this['_config']['formatDateTime'](_0x4a3a0a))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x49a9a1['if']('isEditMode','ck-comment__actions--hidden'),_0x49a9a1['if']('isEditMode','ck-annotation__actions--hidden')]},'children':[this['editButton'],this['removeButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']},'children':this['visibleView']}]}]}]};}['_createEditButton'](){const {t:t}=this['locale'],_0x2dd167=new mt(this['locale']);return _0x2dd167['label']=t('Edit'),_0x2dd167['icon']=Yt['pencil'],_0x2dd167['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x2dd167['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x233b22=>!_0x233b22),_0x2dd167['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x2dd167['on']('execute',()=>this['switchToEditMode']()),_0x2dd167;}['_createRemoveButton'](){const {t:t}=this['locale'],_0x3ab081=new mt(this['locale']);return _0x3ab081['label']=t('Remove'),_0x3ab081['icon']=Kt,_0x3ab081['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x3ab081['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x4424be=>!_0x4424be),_0x3ab081['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x3ab081['on']('execute',()=>{this['showConfirm'](t('Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x3ab081;}['_attachActions'](_0x33efe1,_0x3d9ccc){this['listenTo'](_0x33efe1,'mouseenter',()=>this['actionIndicator']=_0x3d9ccc),this['listenTo'](_0x33efe1,'focus',()=>this['actionIndicator']=_0x3d9ccc),this['listenTo'](_0x33efe1,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x33efe1,'blur',()=>this['actionIndicator']=null);}['_createCommentInputView'](){const _0xe45473=super['_createCommentInputView']();return _0xe45473['bind']('placeholder')['to'](this),_0xe45473;}['render'](){super['render'](),this['_attachActions'](this['editButton']['element'],'edit'),this['_attachActions'](this['removeButton']['element'],'remove');}}_0x1a659b(nt,Wt);
23
+ import{mix as _0x5e4b4d}from'ckeditor5/src/utils';import{ButtonView as mt}from'ckeditor5/src/ui';import Vt from'./basecommentview';import{UserView as It}from'ckeditor5-collaboration/src/collaboration-core';import{icons as Gt}from'ckeditor5/src/core';import Jt from'../../../../theme/icons/remove-comment.svg';import Wt from'./confirmmixin';export default class ot extends Vt{constructor(_0x1902a4,_0x25ee1e,_0x15c4f0){super(_0x1902a4,_0x25ee1e,_0x15c4f0);const {t:t}=this['locale'];this['set']('actionIndicator',null),this['set']('placeholder',t('Reply...')),this['set']('createdAt',null),this['bind']('createdAt')['to'](_0x25ee1e),this['editButton']=this['_createEditButton'](),this['removeButton']=this['_createRemoveButton'](),this['userView']=new It(_0x1902a4,_0x25ee1e['author']),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user']}}),this['listenTo'](_0x25ee1e,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x26adf4=this['bindTemplate'];return{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x26adf4['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x26adf4['if']('isEditMode','ck-comment--edit'),_0x26adf4['to']('actionIndicator',_0x1b12b8=>_0x1b12b8?'ck-comment--'+_0x1b12b8:'')],'data-author-id':this['_model']['author']['id'],'data-comment-id':this['_model']['id']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-comment__main','ck-annotation__main']},'children':[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x26adf4['to']('createdAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x26adf4['to']('createdAt',_0x3b8502=>this['_config']['formatDateTime'](_0x3b8502))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x26adf4['if']('isEditMode','ck-comment__actions--hidden'),_0x26adf4['if']('isEditMode','ck-annotation__actions--hidden')]},'children':[this['editButton'],this['removeButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']},'children':this['visibleView']}]}]}]};}['_createEditButton'](){const {t:t}=this['locale'],_0x2e3794=new mt(this['locale']);return _0x2e3794['label']=t('Edit'),_0x2e3794['icon']=Gt['pencil'],_0x2e3794['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x2e3794['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x5f2b87=>!_0x5f2b87),_0x2e3794['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x2e3794['on']('execute',()=>this['switchToEditMode']()),_0x2e3794;}['_createRemoveButton'](){const {t:t}=this['locale'],_0x276fba=new mt(this['locale']);return _0x276fba['label']=t('Remove'),_0x276fba['icon']=Jt,_0x276fba['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x276fba['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x305900=>!_0x305900),_0x276fba['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x276fba['on']('execute',()=>{this['showConfirm'](t('Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x276fba;}['_attachActions'](_0x529253,_0x47d857){this['listenTo'](_0x529253,'mouseenter',()=>this['actionIndicator']=_0x47d857),this['listenTo'](_0x529253,'focus',()=>this['actionIndicator']=_0x47d857),this['listenTo'](_0x529253,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x529253,'blur',()=>this['actionIndicator']=null);}['_createCommentInputView'](){const _0x1dac03=super['_createCommentInputView']();return _0x1dac03['bind']('placeholder')['to'](this),_0x1dac03;}['render'](){super['render'](),this['_attachActions'](this['editButton']['element'],'edit'),this['_attachActions'](this['removeButton']['element'],'remove');}}_0x5e4b4d(ot,Wt);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x5bb6=['destroy','set','once','element','cancel','deregisterChild','appendChild','locale','isConfirm','submit','confirmView','render','message','_removeConfirm','registerChild','fire'];(function(_0x5e7e7f,_0x5bb6be){var _0x145478=function(_0x34b9cd){while(--_0x34b9cd){_0x5e7e7f['push'](_0x5e7e7f['shift']());}};_0x145478(++_0x5bb6be);}(_0x5bb6,0x1f1));var _0x1454=function(_0x5e7e7f,_0x5bb6be){_0x5e7e7f=_0x5e7e7f-0x0;var _0x145478=_0x5bb6[_0x5e7e7f];return _0x145478;};import _0x3c6497 from'./confirmview';export default{'showConfirm'(_0xb94a4c,_0xb250ff){return this[_0x1454('0x9')]=new _0x3c6497(this[_0x1454('0x6')]),this['confirmView'][_0x1454('0xa')](),this['confirmView'][_0x1454('0xb')]=_0xb94a4c,this[_0x1454('0x9')][_0x1454('0x1')](_0x1454('0x3'),()=>{this[_0x1454('0xc')]();}),this[_0x1454('0x9')][_0x1454('0x1')](_0x1454('0x8'),()=>{this['_removeConfirm']();}),_0xb250ff[_0x1454('0x5')](this[_0x1454('0x9')]['element']),this[_0x1454('0xd')](this['confirmView']),this[_0x1454('0x0')](_0x1454('0x7'),!0x0),new Promise(_0x336210=>this[_0x1454('0x9')]['on'](_0x1454('0x8'),_0x336210));},'cancelConfirm'(){this[_0x1454('0x7')]&&this['confirmView'][_0x1454('0xe')](_0x1454('0x3'));},'_removeConfirm'(){this[_0x1454('0x9')][_0x1454('0x2')]['remove'](),this[_0x1454('0x4')](this[_0x1454('0x9')]),this['isConfirm']=!0x1,this[_0x1454('0x9')][_0x1454('0xf')](),delete this[_0x1454('0x9')];}};
23
+ var _0x27ed=['fire','locale','element','set','destroy','cancel','confirmView','isConfirm','remove','message','submit','once','render','appendChild','_removeConfirm'];(function(_0x4cb737,_0x27eda6){var _0x6dce51=function(_0x28e0ac){while(--_0x28e0ac){_0x4cb737['push'](_0x4cb737['shift']());}};_0x6dce51(++_0x27eda6);}(_0x27ed,0x1a6));var _0x6dce=function(_0x4cb737,_0x27eda6){_0x4cb737=_0x4cb737-0x0;var _0x6dce51=_0x27ed[_0x4cb737];return _0x6dce51;};import _0x5c64d9 from'./confirmview';export default{'showConfirm'(_0x13d624,_0xc0636d){return this[_0x6dce('0x4')]=new _0x5c64d9(this[_0x6dce('0xe')]),this[_0x6dce('0x4')][_0x6dce('0xa')](),this[_0x6dce('0x4')][_0x6dce('0x7')]=_0x13d624,this[_0x6dce('0x4')][_0x6dce('0x9')]('cancel',()=>{this['_removeConfirm']();}),this['confirmView'][_0x6dce('0x9')](_0x6dce('0x8'),()=>{this[_0x6dce('0xc')]();}),_0xc0636d[_0x6dce('0xb')](this[_0x6dce('0x4')][_0x6dce('0x0')]),this['registerChild'](this['confirmView']),this[_0x6dce('0x1')](_0x6dce('0x5'),!0x0),new Promise(_0xe5191d=>this['confirmView']['on'](_0x6dce('0x8'),_0xe5191d));},'cancelConfirm'(){this[_0x6dce('0x5')]&&this[_0x6dce('0x4')][_0x6dce('0xd')](_0x6dce('0x3'));},'_removeConfirm'(){this['confirmView']['element'][_0x6dce('0x6')](),this['deregisterChild'](this[_0x6dce('0x4')]),this[_0x6dce('0x5')]=!0x1,this[_0x6dce('0x4')][_0x6dce('0x2')](),delete this[_0x6dce('0x4')];}};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{View as bt,ButtonView as mt}from'ckeditor5/src/ui';import{icons as Yt}from'ckeditor5/src/core';export default class ii extends bt{constructor(_0x3ec896){super(_0x3ec896);const {t:t}=_0x3ec896,_0x8213cc=this['bindTemplate'];this['submitView']=this['_createButtonView'](_0x3ec896,t('Yes'),Yt['check'],'submit'),this['cancelView']=this['_createButtonView'](_0x3ec896,t('No'),Yt['cancel'],'cancel'),this['set']('message',t('Are\x20you\x20sure?')),this['setTemplate']({'tag':'div','attributes':{'class':['ck-thread__remove-confirm']},'children':[{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-inner'},'children':[{'tag':'p','children':[{'text':_0x8213cc['to']('message')}]},{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-actions'},'children':[this['submitView'],this['cancelView']]}]}]});}['_createButtonView'](_0x3dc72a,_0x5c34b0,_0x2da2ec,_0xb4f420){const _0x6a9146=new mt(_0x3dc72a);return _0x6a9146['label']=_0x5c34b0,_0x6a9146['icon']=_0x2da2ec,_0x6a9146['extendTemplate']({'attributes':{'class':'ck-thread__remove-confirm-'+_0xb4f420}}),_0x6a9146['on']('execute',()=>this['fire'](_0xb4f420)),_0x6a9146;}}
23
+ import{View as ht,ButtonView as mt}from'ckeditor5/src/ui';import{icons as Gt}from'ckeditor5/src/core';export default class ii extends ht{constructor(_0x3b5fa7){super(_0x3b5fa7);const {t:t}=_0x3b5fa7,_0x553810=this['bindTemplate'];this['submitView']=this['_createButtonView'](_0x3b5fa7,t('Yes'),Gt['check'],'submit'),this['cancelView']=this['_createButtonView'](_0x3b5fa7,t('No'),Gt['cancel'],'cancel'),this['set']('message',t('Are\x20you\x20sure?')),this['setTemplate']({'tag':'div','attributes':{'class':['ck-thread__remove-confirm']},'children':[{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-inner'},'children':[{'tag':'p','children':[{'text':_0x553810['to']('message')}]},{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-actions'},'children':[this['submitView'],this['cancelView']]}]}]});}['_createButtonView'](_0x20ca34,_0x37b9ba,_0x2e9b67,_0x58a11c){const _0x55b52d=new mt(_0x20ca34);return _0x55b52d['label']=_0x37b9ba,_0x55b52d['icon']=_0x2e9b67,_0x55b52d['extendTemplate']({'attributes':{'class':'ck-thread__remove-confirm-'+_0x58a11c}}),_0x55b52d['on']('execute',()=>this['fire'](_0x58a11c)),_0x55b52d;}}
package/src/comments.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x20ae=['Comments','pluginName'];(function(_0x411ad8,_0x20aee6){var _0x4506d7=function(_0x36fc05){while(--_0x36fc05){_0x411ad8['push'](_0x411ad8['shift']());}};_0x4506d7(++_0x20aee6);}(_0x20ae,0x75));var _0x4506=function(_0x411ad8,_0x20aee6){_0x411ad8=_0x411ad8-0x0;var _0x4506d7=_0x20ae[_0x411ad8];return _0x4506d7;};import{Plugin as _0x3189f8}from'ckeditor5/src/core';import _0x5ea630 from'./comments/commentsrepository';import _0x269700 from'./comments/commentsediting';import _0x2c7a03 from'./comments/commentsui';import _0x1f475e from'./commentsonly';import _0x5e718c from'./annotations/widesidebar';import _0x491040 from'./annotations/narrowsidebar';import _0x5b88b5 from'./annotations/inlineannotations';export default class c extends _0x3189f8{static get['requires'](){return[_0x5ea630,_0x269700,_0x2c7a03,_0x1f475e,_0x5e718c,_0x491040,_0x5b88b5];}static get[_0x4506('0x0')](){return _0x4506('0x1');}}
23
+ var _0x2967=['requires','pluginName','Comments'];(function(_0x735e60,_0x2967b6){var _0x2d6222=function(_0x367482){while(--_0x367482){_0x735e60['push'](_0x735e60['shift']());}};_0x2d6222(++_0x2967b6);}(_0x2967,0x82));var _0x2d62=function(_0x735e60,_0x2967b6){_0x735e60=_0x735e60-0x0;var _0x2d6222=_0x2967[_0x735e60];return _0x2d6222;};import{Plugin as _0x157fae}from'ckeditor5/src/core';import _0x471551 from'./comments/commentsrepository';import _0x2608e2 from'./comments/commentsediting';import _0x5bcd3a from'./comments/commentsui';import _0x1df1fa from'./commentsonly';import _0x30d62b from'./annotations/widesidebar';import _0x31482b from'./annotations/narrowsidebar';import _0x528d98 from'./annotations/inlineannotations';export default class c extends _0x157fae{static get[_0x2d62('0x2')](){return[_0x471551,_0x2608e2,_0x5bcd3a,_0x1df1fa,_0x30d62b,_0x31482b,_0x528d98];}static get[_0x2d62('0x0')](){return _0x2d62('0x1');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1db8=['isEnabled','stopListening','forceDisabled','commentsOnly','clipboardInput','afterInit','has','get','_disableCommentsOnlyMode','listenTo','commentsOnlyMode','CommentsOnly','addCommentThread','commands','cut','highest','DragDrop','requires','clearForceDisabled','delete','editing','stop','view','editor','document','_enableCommentsOnlyMode','affectsData'];(function(_0x577baf,_0x1db819){const _0x15cf44=function(_0x30b068){while(--_0x30b068){_0x577baf['push'](_0x577baf['shift']());}};_0x15cf44(++_0x1db819);}(_0x1db8,0x1d3));const _0x15cf=function(_0x577baf,_0x1db819){_0x577baf=_0x577baf-0x0;let _0x15cf44=_0x1db8[_0x577baf];return _0x15cf44;};import{Plugin as _0x2f7ac0}from'ckeditor5/src/core';import _0x2b09f3 from'./comments/commentsediting';export default class e extends _0x2f7ac0{static get['pluginName'](){return _0x15cf('0x3');}static get[_0x15cf('0x9')](){return[_0x2b09f3];}constructor(_0x4369b3){super(_0x4369b3),this['set']('isEnabled',null),this['on']('change:isEnabled',(_0x18e100,_0x250b49,_0x4c9d46)=>{_0x4c9d46?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}[_0x15cf('0x18')](){null===this[_0x15cf('0x13')]&&(this[_0x15cf('0x13')]=!!this[_0x15cf('0xf')]['config']['get'](_0x15cf('0x16')));}[_0x15cf('0x11')](){for(const [_0x2a1134,_0x545e4b]of this['editor']['commands'])_0x545e4b[_0x15cf('0x12')]&&_0x15cf('0x4')!==_0x2a1134&&_0x545e4b[_0x15cf('0x15')](_0x15cf('0x2'));this[_0x15cf('0xf')]['plugins'][_0x15cf('0x19')](_0x15cf('0x8'))&&this[_0x15cf('0xf')]['plugins'][_0x15cf('0x1a')](_0x15cf('0x8'))['forceDisabled']('commentsOnlyMode');const _0x350c3d=this[_0x15cf('0xf')]['editing']['view'][_0x15cf('0x10')];this[_0x15cf('0x1')](_0x350c3d,_0x15cf('0x6'),_0x158b9b=>_0x158b9b[_0x15cf('0xd')](),{'priority':_0x15cf('0x7')}),this[_0x15cf('0x1')](_0x350c3d,_0x15cf('0x17'),_0x1e8b0=>_0x1e8b0['stop'](),{'priority':_0x15cf('0x7')}),this[_0x15cf('0x1')](_0x350c3d,_0x15cf('0xb'),_0x2fd473=>_0x2fd473['stop'](),{'priority':_0x15cf('0x7')});}[_0x15cf('0x0')](){for(const [_0x48754c,_0x2181d7]of this['editor'][_0x15cf('0x5')])_0x2181d7['affectsData']&&_0x15cf('0x4')!==_0x48754c&&_0x2181d7[_0x15cf('0xa')](_0x15cf('0x2'));this[_0x15cf('0x14')](this['editor'][_0x15cf('0xc')][_0x15cf('0xe')][_0x15cf('0x10')]);}}
23
+ const _0x21a9=['_enableCommentsOnlyMode','get','DragDrop','highest','cut','plugins','commands','commentsOnlyMode','stop','has','forceDisabled','affectsData','stopListening','requires','delete','commentsOnly','isEnabled','listenTo','document','view','clearForceDisabled','editing','pluginName','change:isEnabled','clipboardInput','editor','set','addCommentThread'];(function(_0x5385b4,_0x21a9c8){const _0x5cf9bd=function(_0x449c7f){while(--_0x449c7f){_0x5385b4['push'](_0x5385b4['shift']());}};_0x5cf9bd(++_0x21a9c8);}(_0x21a9,0x1c3));const _0x5cf9=function(_0x5385b4,_0x21a9c8){_0x5385b4=_0x5385b4-0x0;let _0x5cf9bd=_0x21a9[_0x5385b4];return _0x5cf9bd;};import{Plugin as _0xa3ede1}from'ckeditor5/src/core';import _0x43bf87 from'./comments/commentsediting';export default class e extends _0xa3ede1{static get[_0x5cf9('0x13')](){return'CommentsOnly';}static get[_0x5cf9('0xa')](){return[_0x43bf87];}constructor(_0x1d2ab5){super(_0x1d2ab5),this[_0x5cf9('0x17')]('isEnabled',null),this['on'](_0x5cf9('0x14'),(_0x2275b9,_0x43c19d,_0x64fd8b)=>{_0x64fd8b?this[_0x5cf9('0x19')]():this['_disableCommentsOnlyMode']();});}['afterInit'](){null===this[_0x5cf9('0xd')]&&(this['isEnabled']=!!this[_0x5cf9('0x16')]['config'][_0x5cf9('0x1a')](_0x5cf9('0xc')));}[_0x5cf9('0x19')](){for(const [_0x10c387,_0x129b92]of this['editor'][_0x5cf9('0x3')])_0x129b92['affectsData']&&_0x5cf9('0x18')!==_0x10c387&&_0x129b92[_0x5cf9('0x7')](_0x5cf9('0x4'));this[_0x5cf9('0x16')][_0x5cf9('0x2')][_0x5cf9('0x6')](_0x5cf9('0x1b'))&&this[_0x5cf9('0x16')][_0x5cf9('0x2')][_0x5cf9('0x1a')](_0x5cf9('0x1b'))[_0x5cf9('0x7')]('commentsOnlyMode');const _0x244ebe=this[_0x5cf9('0x16')]['editing'][_0x5cf9('0x10')][_0x5cf9('0xf')];this[_0x5cf9('0xe')](_0x244ebe,_0x5cf9('0x1'),_0x3b0354=>_0x3b0354[_0x5cf9('0x5')](),{'priority':'highest'}),this[_0x5cf9('0xe')](_0x244ebe,_0x5cf9('0x15'),_0x51d6f8=>_0x51d6f8[_0x5cf9('0x5')](),{'priority':'highest'}),this[_0x5cf9('0xe')](_0x244ebe,_0x5cf9('0xb'),_0x92681f=>_0x92681f['stop'](),{'priority':_0x5cf9('0x0')});}['_disableCommentsOnlyMode'](){for(const [_0x25f677,_0x538b79]of this[_0x5cf9('0x16')][_0x5cf9('0x3')])_0x538b79[_0x5cf9('0x8')]&&'addCommentThread'!==_0x25f677&&_0x538b79[_0x5cf9('0x11')]('commentsOnlyMode');this[_0x5cf9('0x9')](this[_0x5cf9('0x16')][_0x5cf9('0x12')]['view'][_0x5cf9('0xf')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2308=['view','values','markerNameToElements','mapper','name','domConverter'];(function(_0x1c9957,_0x2308df){const _0x3f1e9a=function(_0x2580e8){while(--_0x2580e8){_0x1c9957['push'](_0x1c9957['shift']());}};_0x3f1e9a(++_0x2308df);}(_0x2308,0xdc));const _0x3f1e=function(_0x1c9957,_0x2308df){_0x1c9957=_0x1c9957-0x0;let _0x3f1e9a=_0x2308[_0x1c9957];return _0x3f1e9a;};import _0x1fd79d from'@ckeditor/ckeditor5-utils/src/first';export default function R(_0x49ed19,_0x70beeb){const _0x59a5d0=_0x49ed19[_0x3f1e('0x5')][_0x3f1e('0x4')](_0x70beeb[_0x3f1e('0x0')]),_0x544208=_0x1fd79d(_0x59a5d0[_0x3f1e('0x3')]());return _0x49ed19[_0x3f1e('0x2')][_0x3f1e('0x1')]['mapViewToDom'](_0x544208);}
23
+ export{default as Comments}from'./comments';export{default as CommentsOnly}from'./comments';export{default as Annotations}from'./annotations/annotations';export{default as AnnotationsUIs}from'./annotations/annotationsuis';export{default as InlineAnnotations}from'./annotations/inlineannotations';export{default as WideSidebar}from'./annotations/widesidebar';export{default as NarrowSidebar}from'./annotations/narrowsidebar';export{default as BaseCommentView}from'./comments/ui/view/basecommentview';export{default as BaseCommentThreadView}from'./comments/ui/view/basecommentthreadview';
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x308992,_0x342cef){const t=_0x308992['t'];if('PENDING_ACTION_COMMENT_THREAD'==_0x342cef)return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});}
23
+ export function getTranslation(_0x46e7b4,_0x1b566a){const t=_0x46e7b4['t'];if('PENDING_ACTION_COMMENT_THREAD'==_0x1b566a)return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1e98=['type','class','childList','attributeName','disconnect','attributes','observe'];(function(_0x544637,_0x1e98c3){const _0x185431=function(_0x19b706){while(--_0x19b706){_0x544637['push'](_0x544637['shift']());}};_0x185431(++_0x1e98c3);}(_0x1e98,0x1c6));const _0x1854=function(_0x544637,_0x1e98c3){_0x544637=_0x544637-0x0;let _0x185431=_0x1e98[_0x544637];return _0x185431;};import{throttle as _0x230b13}from'lodash-es';export default function ct(_0x36122e){const _0x392a30=_0x230b13(_0x36122e,0x1e),_0x595ed1=new MutationObserver(_0x527adb=>{for(const _0x2848c9 of _0x527adb)(_0x1854('0x6')==_0x2848c9[_0x1854('0x1')]&&_0x1854('0x2')==_0x2848c9[_0x1854('0x4')]||_0x1854('0x3')==_0x2848c9['type'])&&_0x392a30();});return{'attach'(_0x3ea022){_0x595ed1[_0x1854('0x0')](_0x3ea022,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x595ed1[_0x1854('0x5')](),_0x392a30['cancel']();}};}
23
+ const _0x377a=['observe','cancel','type','attributes','attributeName'];(function(_0x1ed5c7,_0x377a2d){const _0x3094ea=function(_0x14bf22){while(--_0x14bf22){_0x1ed5c7['push'](_0x1ed5c7['shift']());}};_0x3094ea(++_0x377a2d);}(_0x377a,0xe5));const _0x3094=function(_0x1ed5c7,_0x377a2d){_0x1ed5c7=_0x1ed5c7-0x0;let _0x3094ea=_0x377a[_0x1ed5c7];return _0x3094ea;};import{throttle as _0x584edc}from'lodash-es';export default function ut(_0x4025b2){const _0x35c76f=_0x584edc(_0x4025b2,0x1e),_0x2a4316=new MutationObserver(_0x2ee4a2=>{for(const _0x3fc623 of _0x2ee4a2)(_0x3094('0x4')==_0x3fc623[_0x3094('0x3')]&&'class'==_0x3fc623[_0x3094('0x0')]||'childList'==_0x3fc623[_0x3094('0x3')])&&_0x35c76f();});return{'attach'(_0x51096f){_0x2a4316[_0x3094('0x1')](_0x51096f,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x2a4316['disconnect'](),_0x35c76f[_0x3094('0x2')]();}};}
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2021, CKSource Holding sp. z o.o. All rights reserved.
6
+ * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
7
7
  */
8
8
 
9
9
  /* Common styles for inline comment and inline suggestion. */
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2021, CKSource Holding sp. z o.o. All rights reserved.
6
+ * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
7
7
  */
8
8
 
9
9
  /* Common styles for single comment and single suggestion. */
package/theme/comment.css CHANGED
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2021, CKSource Holding sp. z o.o. All rights reserved.
6
+ * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
7
7
  */
8
8
 
9
9
  :root {
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2021, CKSource Holding sp. z o.o. All rights reserved.
6
+ * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
7
7
  */
8
8
 
9
9
  .ck .ck-comment__input-container {
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2021, CKSource Holding sp. z o.o. All rights reserved.
6
+ * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
7
7
  */
8
8
 
9
9
  :root {
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2021, CKSource Holding sp. z o.o. All rights reserved.
6
+ * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
7
7
  */
8
8
 
9
9
  :root {
@@ -4,7 +4,7 @@
4
4
  CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
5
5
  all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
6
6
 
7
- Copyright (c) 2003-2021, CKSource Holding sp. z o.o. All rights reserved.
7
+ Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
8
8
 
9
9
  !-->
10
10
 
@@ -4,7 +4,7 @@
4
4
  CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
5
5
  all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
6
6
 
7
- Copyright (c) 2003-2021, CKSource Holding sp. z o.o. All rights reserved.
7
+ Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
8
8
 
9
9
  !-->
10
10
 
@@ -4,7 +4,7 @@
4
4
  CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
5
5
  all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
6
6
 
7
- Copyright (c) 2003-2021, CKSource Holding sp. z o.o. All rights reserved.
7
+ Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
8
8
 
9
9
  !-->
10
10
 
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2021, CKSource Holding sp. z o.o. All rights reserved.
6
+ * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
7
7
  */
8
8
 
9
9
  :root {
package/theme/sidebar.css CHANGED
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2021, CKSource Holding sp. z o.o. All rights reserved.
6
+ * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
7
7
  */
8
8
 
9
9
  :root {
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- const _0x5029=['\x27Last\x27\x20EEEE\x20hh:mma','string','MM-dd-yyyy\x20hh:mma','\x27Today\x27\x20hh:mma','dateTimeFormat','invalid-date-time-format'];(function(_0x7dd93e,_0x502904){const _0x46dd56=function(_0x5e4e1b){while(--_0x5e4e1b){_0x7dd93e['push'](_0x7dd93e['shift']());}};_0x46dd56(++_0x502904);}(_0x5029,0x85));const _0x46dd=function(_0x7dd93e,_0x502904){_0x7dd93e=_0x7dd93e-0x0;let _0x46dd56=_0x5029[_0x7dd93e];return _0x46dd56;};import _0xb7463c from'date-fns/format';import _0x157396 from'date-fns/parseISO';import _0x265157 from'date-fns/differenceInCalendarDays';import _0x4c1e6c from'@ckeditor/ckeditor5-utils/src/ckeditorerror';export default function Q(_0x30dee3={}){if(void 0x0!==_0x30dee3['dateTimeFormat']&&'function'!=typeof _0x30dee3[_0x46dd('0x3')])throw new _0x4c1e6c(_0x46dd('0x4'));return _0x2807a8=>{const _0x19816b=_0x46dd('0x0')==typeof _0x2807a8?_0x157396(_0x2807a8):_0x2807a8,_0x569b65=new Date(),_0x29537b=_0x265157(_0x569b65,_0x19816b);return _0x30dee3[_0x46dd('0x3')]?_0x30dee3[_0x46dd('0x3')](_0x19816b):_0xb7463c(_0x19816b,0x0===_0x29537b?_0x46dd('0x2'):0x1===_0x29537b?'\x27Yesterday\x27\x20hh:mma':_0x29537b<0x7?_0x46dd('0x5'):_0x46dd('0x1'));};}
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- const _0x1c71=['indexOf','push','split','slice','pop','substring','match','length','join','startsWith','replace'];(function(_0x223938,_0x1c712a){const _0x535f87=function(_0x505c7a){while(--_0x505c7a){_0x223938['push'](_0x223938['shift']());}};_0x535f87(++_0x1c712a);}(_0x1c71,0xf3));const _0x535f=function(_0x223938,_0x1c712a){_0x223938=_0x223938-0x0;let _0x535f87=_0x1c71[_0x223938];return _0x535f87;};export default function nn(_0x493643,{limit:_0x3c3d5e,suffix:_0x56369c='...'}){const _0x321e04=[];let _0x2b466d=0x0;const _0x3ce519=_0x493643[_0x535f('0x9')](/</g,'\x0a<')[_0x535f('0x9')](/>/g,'>\x0a')[_0x535f('0x9')](/^\n/g,'')[_0x535f('0x9')](/\n$/g,'')[_0x535f('0x1')]('\x0a');for(let _0x343a9b=0x0;_0x343a9b<_0x3ce519[_0x535f('0x6')];_0x343a9b++){let _0x4fad0d=_0x3ce519[_0x343a9b];const _0x42d1aa=tn(_0x4fad0d);if(_0x4fad0d[_0x535f('0x8')]('<')){if(_0x2b466d>=_0x3c3d5e){const _0x171217=_0x4fad0d[_0x535f('0x5')](/[a-zA-Z]+/)[0x0];_0x4fad0d['startsWith']('</')?(_0x321e04[_0x535f('0x6')]&&(_0x4fad0d=''),_0x321e04[_0x535f('0x3')]()):(_0x321e04[_0x535f('0x0')](_0x171217),_0x4fad0d='');}}else{if(_0x2b466d>=_0x3c3d5e)_0x4fad0d='';else{if(_0x2b466d+_0x42d1aa['length']>=_0x3c3d5e){let _0x49c6c0=_0x3c3d5e-_0x2b466d;if('\x20'===_0x42d1aa[_0x49c6c0-0x1])_0x49c6c0--;else{const _0x442cb7=_0x42d1aa[_0x535f('0x2')](_0x49c6c0)[_0x535f('0xa')]('\x20');-0x1!==_0x442cb7?_0x49c6c0+=_0x442cb7:_0x49c6c0=_0x4fad0d[_0x535f('0x6')];}_0x4fad0d=_0x42d1aa['slice'](0x0,_0x49c6c0)[_0x535f('0x7')]('')+_0x56369c,_0x2b466d=_0x3c3d5e;}else _0x2b466d+=_0x42d1aa[_0x535f('0x6')];}}_0x3ce519[_0x343a9b]=_0x4fad0d;}return _0x3ce519[_0x535f('0x7')]('\x0a')[_0x535f('0x9')](/\n/g,'');}function tn(_0x48e28b){const _0x506f3a=[];for(let _0x5df431=0x0;_0x5df431<_0x48e28b[_0x535f('0x6')];_0x5df431++){const _0x235e66=_0x48e28b[_0x535f('0x4')](_0x5df431)['match'](/^&[a-z0-9#]+;/);if(_0x235e66){const _0x3598c2=_0x235e66[0x0];_0x506f3a[_0x535f('0x0')](_0x3598c2),_0x5df431+=_0x3598c2[_0x535f('0x6')]-0x1;}else _0x506f3a[_0x535f('0x0')](_0x48e28b[_0x5df431]);}return _0x506f3a;}