@ckeditor/ckeditor5-comments 38.0.0 → 38.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/build/comments.js +1 -1
  2. package/package.json +3 -3
  3. package/src/annotations/annotation.js +1 -1
  4. package/src/annotations/annotationcollection.js +1 -1
  5. package/src/annotations/annotations.js +1 -1
  6. package/src/annotations/annotationsuis.js +1 -1
  7. package/src/annotations/editorannotations.js +1 -1
  8. package/src/annotations/inlineannotations.js +1 -1
  9. package/src/annotations/narrowsidebar.js +1 -1
  10. package/src/annotations/sidebar.js +1 -1
  11. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  12. package/src/annotations/view/annotationview.js +1 -1
  13. package/src/annotations/view/sidebaritemview.js +1 -1
  14. package/src/annotations/view/sidebarview.js +1 -1
  15. package/src/annotations/widesidebar.js +1 -1
  16. package/src/comments/addcommentthreadcommand.js +1 -1
  17. package/src/comments/commentsarchive.js +1 -1
  18. package/src/comments/commentsarchiveui.js +1 -1
  19. package/src/comments/commentsediting.js +1 -1
  20. package/src/comments/commentsrepository.js +1 -1
  21. package/src/comments/commentsui.js +1 -1
  22. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  23. package/src/comments/integrations/importword.js +1 -1
  24. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  25. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  26. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  27. package/src/comments/ui/commentthreadcontroller.js +1 -1
  28. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  29. package/src/comments/ui/view/basecommentview.js +1 -1
  30. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  31. package/src/comments/ui/view/commentcontentview.js +1 -1
  32. package/src/comments/ui/view/commentinputview.js +1 -1
  33. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  34. package/src/comments/ui/view/commentslistview.js +1 -1
  35. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  36. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  37. package/src/comments/ui/view/commentthreadview.js +1 -1
  38. package/src/comments/ui/view/commentview.js +1 -1
  39. package/src/comments.js +1 -1
  40. package/src/commentsonly.js +1 -1
  41. package/src/utils/common-translations.js +1 -1
  42. package/src/utils/createmutationobserver.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2c99=['ck-comment--remove-confirmation','@external','ck-annotation__content-wrapper','ck-comment','attributes','dropdown','change:isRemovable','label','bindTemplate','EXTERNAL_IMPORT_WORD_COMMENT','some','userView','removeButton','render','_config','isVisible','visibleView','importWord','name','set','threeVerticalDots','_createEditButton','time','execute','focus','ck-comment__actions','length','ck-comment__info','getExternalCommentNote','icon','fire','blur','isRemovable','ck-comment--info','listenTo','change:isEnabled','switchToEditMode','ck-annotation__info-name','Remove','remove','mouseenter','Reply...','editButton','ck-annotation','ck-comment__external','div','creator','push','ck-comment__user','children','_createDropdown','bind','EXTERNAL_COMMENT','actionBar','add','isEditMode','_model','change:isVisible','_attachActions','isEnabled','author','source','locale','ck-annotation__actions','ck-comment--edit','createCollection','ck-comment__info-time','ck-comment--','authoredAt','ck-annotation__user','withText','isReadOnly','ck-annotation__actions--hidden','ck-comment__info-name','_createCommentInputView','ck-comment__wrapper','ck-comment--remove','then','isConfirm','edit','removeComment','panelPosition','resolvedAt','span','formatDateTime','_createRemoveButton','items','isSystemComment','element','pencil','buttonView','setTemplate','Show\x20more\x20items','actionIndicator','addMany','isExternal','placeholder','extendTemplate','Delete\x20comment?'];(function(_0x5adee8,_0x2c99e0){const _0x367ec2=function(_0x131575){while(--_0x131575){_0x5adee8['push'](_0x5adee8['shift']());}};_0x367ec2(++_0x2c99e0);}(_0x2c99,0x1e2));const _0x367e=function(_0x5adee8,_0x2c99e0){_0x5adee8=_0x5adee8-0x0;let _0x367ec2=_0x2c99[_0x5adee8];return _0x367ec2;};import{ButtonView as _0x33532a,createDropdown as _0x532566,ListView as _0x334e72,ListItemView as _0x1e30c2}from'ckeditor5/src/ui';import{icons as _0x4ccbe2}from'ckeditor5/src/core';import{UserView as _0x15762e,ConfirmMixin as _0x52c744}from'ckeditor5-collaboration/src/collaboration-core';import _0x21c778 from'./basecommentview';import _0x1083f0 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x3350b0}from'../../../utils/common-translations';export default class pt extends _0x52c744(_0x21c778){constructor(_0x306423,_0x4ef01c,_0x582a02){super(_0x306423,_0x4ef01c,_0x582a02),this[_0x367e('0x20')]('actionIndicator',null),this[_0x367e('0x20')](_0x367e('0xa'),_0x3350b0(_0x306423,_0x367e('0x36'))),this[_0x367e('0x40')]('authoredAt')['to'](_0x4ef01c),this[_0x367e('0x40')](_0x367e('0x5f'))['to'](_0x4ef01c),this[_0x367e('0x42')]=this[_0x367e('0x4e')](),this[_0x367e('0x1')]||(this[_0x367e('0x37')]=this[_0x367e('0x22')](),this['removeButton']=this[_0x367e('0x62')](),this[_0x367e('0x0')]=this[_0x367e('0x4e')](),this[_0x367e('0x0')][_0x367e('0x8')]([this[_0x367e('0x37')],this[_0x367e('0x19')]]),this[_0x367e('0x12')]=this[_0x367e('0x3f')](),this[_0x367e('0x42')][_0x367e('0x43')](this['dropdown'])),this['userView']=new _0x15762e(_0x306423,_0x4ef01c[_0x367e('0x49')],this['getUserViewNotificationText']()),this[_0x367e('0x18')][_0x367e('0xb')]({'attributes':{'class':[_0x367e('0x3d'),_0x367e('0x52')]}}),this[_0x367e('0x2f')](_0x4ef01c,_0x367e('0x13'),()=>this['cancelConfirm']()),this[_0x367e('0x5')](this['getTemplate']());}['getTemplate'](){const _0x3bdb1a=this[_0x367e('0x15')],_0x4f2874=[{'tag':'div','attributes':{'class':[_0x367e('0x28'),'ck-annotation__info']},'children':[{'tag':_0x367e('0x60'),'children':[{'text':this['userView']['name']}],'attributes':{'class':[_0x367e('0x56'),_0x367e('0x32')]}},{'tag':_0x367e('0x23'),'attributes':{'datetime':_0x3bdb1a['to'](_0x367e('0x51')),'class':[_0x367e('0x4f'),'ck-annotation__info-time']},'children':[{'text':_0x3bdb1a['to'](_0x367e('0x51'),_0x5060c8=>this[_0x367e('0x1b')][_0x367e('0x61')](_0x5060c8))}]}]},{'tag':_0x367e('0x3a'),'attributes':{'class':[_0x367e('0x26'),_0x367e('0x4c'),_0x3bdb1a['if'](_0x367e('0x44'),'ck-comment__actions--hidden'),_0x3bdb1a['if'](_0x367e('0x44'),_0x367e('0x55'))]},'children':this['actionBar']},{'tag':_0x367e('0x3a'),'attributes':{'class':[_0x367e('0xf')]},'children':this[_0x367e('0x1d')]}];return this[_0x367e('0x45')][_0x367e('0x9')]&&_0x4f2874[_0x367e('0x3c')]({'tag':_0x367e('0x3a'),'attributes':{'class':[_0x367e('0x39')]},'children':[{'text':this[_0x367e('0x29')]()}]}),{'tag':'li','attributes':{'class':[_0x367e('0x58'),_0x3bdb1a['if'](_0x367e('0x5b'),_0x367e('0xd'))],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':[_0x367e('0x10'),_0x367e('0x38'),_0x3bdb1a['if'](_0x367e('0x44'),'ck-comment--edit'),_0x3bdb1a['if']('isSystemComment',_0x367e('0x2e')),_0x3bdb1a['to'](_0x367e('0x7'),_0x1b1a12=>_0x1b1a12?_0x367e('0x50')+_0x1b1a12:'')],'data-author-id':this[_0x367e('0x45')][_0x367e('0x49')]['id'],'data-comment-id':this[_0x367e('0x45')]['id']},'children':[this[_0x367e('0x18')],{'tag':_0x367e('0x3a'),'attributes':{'class':['ck-comment__main','ck-annotation__main']},'children':_0x4f2874}]}]};}['_createEditButton'](){const _0x371468=new _0x33532a(this[_0x367e('0x4b')]);return _0x371468[_0x367e('0x14')]=_0x3350b0(this['locale'],'Edit'),_0x371468[_0x367e('0x2a')]=_0x4ccbe2[_0x367e('0x3')],_0x371468[_0x367e('0x53')]=!0x0,_0x371468[_0x367e('0xb')]({'attributes':{'class':_0x367e('0x4d')}}),_0x371468[_0x367e('0x40')](_0x367e('0x48'))['to'](this[_0x367e('0x45')],_0x367e('0x54'),_0x32779f=>!_0x32779f),_0x371468[_0x367e('0x40')](_0x367e('0x1c'))['to'](this[_0x367e('0x45')],'isEditable'),_0x371468['on'](_0x367e('0x24'),()=>this[_0x367e('0x31')]()),_0x371468;}[_0x367e('0x62')](){const _0x3c4c5e=new _0x33532a(this[_0x367e('0x4b')]);return _0x3c4c5e[_0x367e('0x14')]=_0x3350b0(this['locale'],_0x367e('0x33')),_0x3c4c5e[_0x367e('0x2a')]=_0x1083f0,_0x3c4c5e[_0x367e('0x53')]=!0x0,_0x3c4c5e['extendTemplate']({'attributes':{'class':_0x367e('0x59')}}),_0x3c4c5e['bind'](_0x367e('0x48'))['to'](this[_0x367e('0x45')],_0x367e('0x54'),_0x4f308a=>!_0x4f308a),_0x3c4c5e[_0x367e('0x40')](_0x367e('0x1c'))['to'](this[_0x367e('0x45')],_0x367e('0x2d')),_0x3c4c5e['on'](_0x367e('0x24'),()=>{this['showConfirm'](_0x3350b0(this['locale'],_0x367e('0xc')),this[_0x367e('0x2')])[_0x367e('0x5a')](()=>{this[_0x367e('0x2b')](_0x367e('0x5d'),this['_model']['id']);});}),_0x3c4c5e;}[_0x367e('0x3f')](){const _0x5a7f0f=_0x532566(this[_0x367e('0x4b')]),_0x3207b7=_0x5a7f0f['panelView'][_0x367e('0x3e')],_0x2a1d00=new _0x334e72(this[_0x367e('0x4b')]),_0x57be2d=(_0x54896b,_0x3408d6=-0x1)=>{const _0x2c5c53=new _0x1e30c2(this[_0x367e('0x4b')]);_0x2c5c53[_0x367e('0x3e')][_0x367e('0x43')](_0x54896b);const _0x498f0f=_0x3408d6>-0x1?_0x3408d6:_0x2a1d00[_0x367e('0x0')][_0x367e('0x27')];_0x2a1d00[_0x367e('0x0')][_0x367e('0x43')](_0x2c5c53,_0x498f0f),_0x5a7f0f['listenTo'](_0x54896b,_0x367e('0x30'),()=>{_0x5a7f0f[_0x367e('0x48')]=[...this['items']][_0x367e('0x17')](_0x353517=>_0x353517[_0x367e('0x48')]);}),_0x5a7f0f[_0x367e('0x2f')](_0x54896b,_0x367e('0x46'),()=>{_0x5a7f0f[_0x367e('0x4')][_0x367e('0x1c')]=[...this['items']]['some'](_0x4c1c00=>_0x4c1c00[_0x367e('0x1c')]);});};_0x5a7f0f[_0x367e('0x5e')]='sw',_0x5a7f0f[_0x367e('0x4')]['set']({'label':_0x3350b0(this[_0x367e('0x4b')],_0x367e('0x6')),'icon':_0x4ccbe2[_0x367e('0x21')]}),_0x5a7f0f['isEnabled']=[...this[_0x367e('0x0')]]['some'](_0xc0f01=>_0xc0f01['isEnabled']),_0x5a7f0f[_0x367e('0x4')][_0x367e('0x1c')]=[...this[_0x367e('0x0')]][_0x367e('0x17')](_0x33d4b6=>_0x33d4b6[_0x367e('0x1c')]);for(const _0x2614b0 of this['items'])_0x57be2d(_0x2614b0);return _0x3207b7[_0x367e('0x43')](_0x2a1d00),_0x5a7f0f[_0x367e('0x2f')](this['items'],_0x367e('0x43'),(_0x4841c2,_0x58745c,_0x3ba116)=>{_0x57be2d(_0x58745c,_0x3ba116);}),_0x5a7f0f['listenTo'](this[_0x367e('0x0')],_0x367e('0x34'),(_0x4ecd19,_0x457f3a,_0x23a8b7)=>{_0x2a1d00['items'][_0x367e('0x34')](_0x23a8b7);}),_0x5a7f0f;}[_0x367e('0x47')](_0x38ab0b,_0x2533d3){const _0x96fdb5=_0x38ab0b&&_0x38ab0b['element'];_0x96fdb5&&(this[_0x367e('0x2f')](_0x96fdb5,_0x367e('0x35'),()=>this[_0x367e('0x7')]=_0x2533d3),this[_0x367e('0x2f')](_0x96fdb5,_0x367e('0x25'),()=>this['actionIndicator']=_0x2533d3),this[_0x367e('0x2f')](_0x96fdb5,'mouseleave',()=>this[_0x367e('0x7')]=null),this[_0x367e('0x2f')](_0x96fdb5,_0x367e('0x2c'),()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x346d6f=super[_0x367e('0x57')]();return _0x346d6f['bind'](_0x367e('0xa'))['to'](this),_0x346d6f;}[_0x367e('0x29')](){return _0x367e('0x1e')===this['_model'][_0x367e('0x11')][_0x367e('0xe')][_0x367e('0x4a')]?_0x3350b0(this[_0x367e('0x4b')],_0x367e('0x16')):_0x3350b0(this[_0x367e('0x4b')],_0x367e('0x41'));}['getUserViewNotificationText'](){return this[_0x367e('0x45')][_0x367e('0x9')]?_0x367e('0x1e')===this['_model'][_0x367e('0x11')][_0x367e('0xe')][_0x367e('0x4a')]?_0x3350b0(this[_0x367e('0x4b')],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model'][_0x367e('0x3b')][_0x367e('0x1f')]):_0x3350b0(this[_0x367e('0x4b')],'EXTERNAL_AVATAR',this[_0x367e('0x45')][_0x367e('0x3b')][_0x367e('0x1f')]):null;}[_0x367e('0x1a')](){super[_0x367e('0x1a')](),this[_0x367e('0x47')](this['editButton'],_0x367e('0x5c')),this[_0x367e('0x47')](this[_0x367e('0x19')],_0x367e('0x34'));}}
23
+ const _0x287f=['blur','EXTERNAL_IMPORT_WORD_AVATAR','mouseenter','element','remove','_config','ck-annotation__main','addMany','span','fire','actionIndicator','ck-comment--remove','isRemovable','isEditMode','set','author','getUserViewNotificationText','mouseleave','getTemplate','creator','isEnabled','importWord','ck-annotation__info','ck-annotation__content-wrapper','EXTERNAL_AVATAR','actionBar','cancelConfirm','ck-comment__info-name','EXTERNAL_IMPORT_WORD_COMMENT','focus','some','Remove','ck-annotation__actions--hidden','render','length','isExternal','pencil','label','ck-comment--edit','name','@external','isSystemComment','Delete\x20comment?','isVisible','time','ck-annotation','change:isEnabled','isEditable','change:isVisible','_createRemoveButton','ck-comment--info','showConfirm','ck-comment__info','ck-comment--remove-confirmation','listenTo','extendTemplate','bind','icon','createCollection','source','ck-comment__user','_createEditButton','isReadOnly','ck-annotation__info-time','attributes','formatDateTime','change:isRemovable','buttonView','then','setTemplate','ck-annotation__user','withText','userView','visibleView','panelView','ck-annotation__actions','_createDropdown','ck-comment__actions--hidden','_model','div','items','panelPosition','dropdown','authoredAt','ck-comment','removeComment','editButton','_createCommentInputView','_attachActions','switchToEditMode','locale','children','removeButton','add','ck-comment__actions','edit','getExternalCommentNote','ck-comment--','placeholder','push'];(function(_0x3dffd7,_0x287fde){const _0x235553=function(_0xd386c8){while(--_0xd386c8){_0x3dffd7['push'](_0x3dffd7['shift']());}};_0x235553(++_0x287fde);}(_0x287f,0x168));const _0x2355=function(_0x3dffd7,_0x287fde){_0x3dffd7=_0x3dffd7-0x0;let _0x235553=_0x287f[_0x3dffd7];return _0x235553;};import{ButtonView as _0x1ff546,createDropdown as _0x30f412,ListView as _0x488ae2,ListItemView as _0x6bc0fc}from'ckeditor5/src/ui';import{icons as _0x4cff73}from'ckeditor5/src/core';import{UserView as _0x5b6071,ConfirmMixin as _0x2cae58}from'ckeditor5-collaboration/src/collaboration-core';import _0x3bcc36 from'./basecommentview';import _0x2d24dd from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x28e672}from'../../../utils/common-translations';export default class ut extends _0x2cae58(_0x3bcc36){constructor(_0x2e6cf2,_0x6a21bc,_0x245a3f){super(_0x2e6cf2,_0x6a21bc,_0x245a3f),this[_0x2355('0x36')](_0x2355('0x32'),null),this['set'](_0x2355('0x26'),_0x28e672(_0x2e6cf2,'Reply...')),this[_0x2355('0x60')](_0x2355('0x17'))['to'](_0x6a21bc),this[_0x2355('0x60')]('resolvedAt')['to'](_0x6a21bc),this[_0x2355('0x41')]=this[_0x2355('0x62')](),this['isSystemComment']||(this[_0x2355('0x1a')]=this['_createEditButton'](),this[_0x2355('0x20')]=this['_createRemoveButton'](),this[_0x2355('0x14')]=this[_0x2355('0x62')](),this['items'][_0x2355('0x2f')]([this['editButton'],this[_0x2355('0x20')]]),this[_0x2355('0x16')]=this[_0x2355('0x10')](),this['actionBar'][_0x2355('0x21')](this[_0x2355('0x16')])),this['userView']=new _0x5b6071(_0x2e6cf2,_0x6a21bc['author'],this[_0x2355('0x38')]()),this[_0x2355('0xc')][_0x2355('0x5f')]({'attributes':{'class':[_0x2355('0x0'),_0x2355('0xa')]}}),this[_0x2355('0x5e')](_0x6a21bc,_0x2355('0x6'),()=>this[_0x2355('0x42')]()),this[_0x2355('0x9')](this[_0x2355('0x3a')]());}['getTemplate'](){const _0x5816b6=this['bindTemplate'],_0x3e47f7=[{'tag':'div','attributes':{'class':[_0x2355('0x5c'),_0x2355('0x3e')]},'children':[{'tag':_0x2355('0x30'),'children':[{'text':this['userView']['name']}],'attributes':{'class':[_0x2355('0x43'),'ck-annotation__info-name']}},{'tag':_0x2355('0x54'),'attributes':{'datetime':_0x5816b6['to']('authoredAt'),'class':['ck-comment__info-time',_0x2355('0x3')]},'children':[{'text':_0x5816b6['to'](_0x2355('0x17'),_0x47740d=>this[_0x2355('0x2d')][_0x2355('0x5')](_0x47740d))}]}]},{'tag':'div','attributes':{'class':[_0x2355('0x22'),_0x2355('0xf'),_0x5816b6['if']('isEditMode',_0x2355('0x11')),_0x5816b6['if'](_0x2355('0x35'),_0x2355('0x48'))]},'children':this[_0x2355('0x41')]},{'tag':_0x2355('0x13'),'attributes':{'class':[_0x2355('0x3f')]},'children':this[_0x2355('0xd')]}];return this[_0x2355('0x12')][_0x2355('0x4b')]&&_0x3e47f7[_0x2355('0x27')]({'tag':_0x2355('0x13'),'attributes':{'class':['ck-comment__external']},'children':[{'text':this[_0x2355('0x24')]()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x5816b6['if']('isConfirm',_0x2355('0x5d'))],'tabindex':-0x1},'children':[{'tag':_0x2355('0x13'),'attributes':{'class':[_0x2355('0x18'),_0x2355('0x55'),_0x5816b6['if']('isEditMode',_0x2355('0x4e')),_0x5816b6['if'](_0x2355('0x51'),_0x2355('0x5a')),_0x5816b6['to']('actionIndicator',_0x264c65=>_0x264c65?_0x2355('0x25')+_0x264c65:'')],'data-author-id':this[_0x2355('0x12')][_0x2355('0x37')]['id'],'data-comment-id':this[_0x2355('0x12')]['id']},'children':[this[_0x2355('0xc')],{'tag':_0x2355('0x13'),'attributes':{'class':['ck-comment__main',_0x2355('0x2e')]},'children':_0x3e47f7}]}]};}[_0x2355('0x1')](){const _0x56672b=new _0x1ff546(this[_0x2355('0x1e')]);return _0x56672b[_0x2355('0x4d')]=_0x28e672(this[_0x2355('0x1e')],'Edit'),_0x56672b[_0x2355('0x61')]=_0x4cff73[_0x2355('0x4c')],_0x56672b[_0x2355('0xb')]=!0x0,_0x56672b[_0x2355('0x5f')]({'attributes':{'class':_0x2355('0x4e')}}),_0x56672b[_0x2355('0x60')](_0x2355('0x3c'))['to'](this['_model'],_0x2355('0x2'),_0x8b18dd=>!_0x8b18dd),_0x56672b[_0x2355('0x60')](_0x2355('0x53'))['to'](this['_model'],_0x2355('0x57')),_0x56672b['on']('execute',()=>this[_0x2355('0x1d')]()),_0x56672b;}[_0x2355('0x59')](){const _0x4f083e=new _0x1ff546(this[_0x2355('0x1e')]);return _0x4f083e[_0x2355('0x4d')]=_0x28e672(this[_0x2355('0x1e')],_0x2355('0x47')),_0x4f083e[_0x2355('0x61')]=_0x2d24dd,_0x4f083e[_0x2355('0xb')]=!0x0,_0x4f083e['extendTemplate']({'attributes':{'class':_0x2355('0x33')}}),_0x4f083e['bind']('isEnabled')['to'](this[_0x2355('0x12')],_0x2355('0x2'),_0x6f2145=>!_0x6f2145),_0x4f083e['bind']('isVisible')['to'](this[_0x2355('0x12')],_0x2355('0x34')),_0x4f083e['on']('execute',()=>{this[_0x2355('0x5b')](_0x28e672(this[_0x2355('0x1e')],_0x2355('0x52')),this[_0x2355('0x2b')])[_0x2355('0x8')](()=>{this[_0x2355('0x31')](_0x2355('0x19'),this['_model']['id']);});}),_0x4f083e;}[_0x2355('0x10')](){const _0x254fda=_0x30f412(this[_0x2355('0x1e')]),_0x5e17d4=_0x254fda[_0x2355('0xe')][_0x2355('0x1f')],_0x2c2d54=new _0x488ae2(this[_0x2355('0x1e')]),_0x27570b=(_0x2c2605,_0x3dae66=-0x1)=>{const _0x176e01=new _0x6bc0fc(this['locale']);_0x176e01[_0x2355('0x1f')]['add'](_0x2c2605);const _0x6a33e=_0x3dae66>-0x1?_0x3dae66:_0x2c2d54[_0x2355('0x14')][_0x2355('0x4a')];_0x2c2d54[_0x2355('0x14')]['add'](_0x176e01,_0x6a33e),_0x254fda['listenTo'](_0x2c2605,_0x2355('0x56'),()=>{_0x254fda[_0x2355('0x3c')]=[...this[_0x2355('0x14')]][_0x2355('0x46')](_0x5b568f=>_0x5b568f[_0x2355('0x3c')]);}),_0x254fda['listenTo'](_0x2c2605,_0x2355('0x58'),()=>{_0x254fda[_0x2355('0x7')]['isVisible']=[...this['items']]['some'](_0x45accb=>_0x45accb[_0x2355('0x53')]);});};_0x254fda[_0x2355('0x15')]='sw',_0x254fda[_0x2355('0x7')][_0x2355('0x36')]({'label':_0x28e672(this[_0x2355('0x1e')],'Show\x20more\x20items'),'icon':_0x4cff73['threeVerticalDots']}),_0x254fda[_0x2355('0x3c')]=[...this[_0x2355('0x14')]][_0x2355('0x46')](_0x2e7af8=>_0x2e7af8[_0x2355('0x3c')]),_0x254fda[_0x2355('0x7')]['isVisible']=[...this['items']][_0x2355('0x46')](_0x1c81fe=>_0x1c81fe[_0x2355('0x53')]);for(const _0x324b84 of this['items'])_0x27570b(_0x324b84);return _0x5e17d4[_0x2355('0x21')](_0x2c2d54),_0x254fda['listenTo'](this[_0x2355('0x14')],'add',(_0x95002,_0x1e7f5b,_0xaf9d93)=>{_0x27570b(_0x1e7f5b,_0xaf9d93);}),_0x254fda['listenTo'](this[_0x2355('0x14')],_0x2355('0x2c'),(_0x4a3d80,_0x3456b4,_0x4bfe74)=>{_0x2c2d54[_0x2355('0x14')][_0x2355('0x2c')](_0x4bfe74);}),_0x254fda;}[_0x2355('0x1c')](_0x2b0909,_0x87bb3e){const _0x3d0303=_0x2b0909&&_0x2b0909[_0x2355('0x2b')];_0x3d0303&&(this[_0x2355('0x5e')](_0x3d0303,_0x2355('0x2a'),()=>this['actionIndicator']=_0x87bb3e),this[_0x2355('0x5e')](_0x3d0303,_0x2355('0x45'),()=>this[_0x2355('0x32')]=_0x87bb3e),this[_0x2355('0x5e')](_0x3d0303,_0x2355('0x39'),()=>this[_0x2355('0x32')]=null),this[_0x2355('0x5e')](_0x3d0303,_0x2355('0x28'),()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x59f5d5=super[_0x2355('0x1b')]();return _0x59f5d5['bind'](_0x2355('0x26'))['to'](this),_0x59f5d5;}[_0x2355('0x24')](){return _0x2355('0x3d')===this[_0x2355('0x12')][_0x2355('0x4')]['@external'][_0x2355('0x63')]?_0x28e672(this[_0x2355('0x1e')],_0x2355('0x44')):_0x28e672(this[_0x2355('0x1e')],'EXTERNAL_COMMENT');}[_0x2355('0x38')](){return this[_0x2355('0x12')]['isExternal']?_0x2355('0x3d')===this['_model'][_0x2355('0x4')][_0x2355('0x50')][_0x2355('0x63')]?_0x28e672(this[_0x2355('0x1e')],_0x2355('0x29'),this[_0x2355('0x12')][_0x2355('0x3b')]['name']):_0x28e672(this['locale'],_0x2355('0x40'),this[_0x2355('0x12')][_0x2355('0x3b')][_0x2355('0x4f')]):null;}[_0x2355('0x49')](){super['render'](),this[_0x2355('0x1c')](this[_0x2355('0x1a')],_0x2355('0x23')),this['_attachActions'](this[_0x2355('0x20')],'remove');}}
package/src/comments.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x1398=['requires','Comments','pluginName'];(function(_0x2a79dc,_0x1398c0){var _0xb8f01b=function(_0x4739bb){while(--_0x4739bb){_0x2a79dc['push'](_0x2a79dc['shift']());}};_0xb8f01b(++_0x1398c0);}(_0x1398,0x116));var _0xb8f0=function(_0x2a79dc,_0x1398c0){_0x2a79dc=_0x2a79dc-0x0;var _0xb8f01b=_0x1398[_0x2a79dc];return _0xb8f01b;};import{Plugin as _0xb1bc59}from'ckeditor5/src/core';import _0x4a7ce7 from'./comments/commentsrepository';import _0x5396a9 from'./comments/commentsediting';import _0x213654 from'./comments/commentsui';import _0x292bd7 from'./commentsonly';import _0x31cbd3 from'./annotations/widesidebar';import _0x3c8eb3 from'./annotations/narrowsidebar';import _0x26fa59 from'./annotations/inlineannotations';import _0x319967 from'./comments/commentsarchiveui';import _0x456673 from'./comments/commentsarchive';export default class f extends _0xb1bc59{static get[_0xb8f0('0x1')](){return[_0x4a7ce7,_0x5396a9,_0x213654,_0x456673,_0x319967,_0x292bd7,_0x31cbd3,_0x3c8eb3,_0x26fa59];}static get[_0xb8f0('0x0')](){return _0xb8f0('0x2');}}
23
+ var _0x55ed=['requires','pluginName','Comments'];(function(_0x3b1871,_0x55ed00){var _0x3bcb1d=function(_0x4ac3f2){while(--_0x4ac3f2){_0x3b1871['push'](_0x3b1871['shift']());}};_0x3bcb1d(++_0x55ed00);}(_0x55ed,0x15c));var _0x3bcb=function(_0x3b1871,_0x55ed00){_0x3b1871=_0x3b1871-0x0;var _0x3bcb1d=_0x55ed[_0x3b1871];return _0x3bcb1d;};import{Plugin as _0x339be8}from'ckeditor5/src/core';import _0x4a2b50 from'./comments/commentsrepository';import _0x389889 from'./comments/commentsediting';import _0x11be11 from'./comments/commentsui';import _0x5b872d from'./commentsonly';import _0x220c4e from'./annotations/widesidebar';import _0xf07e94 from'./annotations/narrowsidebar';import _0x456b0b from'./annotations/inlineannotations';import _0xd92656 from'./comments/commentsarchiveui';import _0x5bd62b from'./comments/commentsarchive';export default class f extends _0x339be8{static get[_0x3bcb('0x0')](){return[_0x4a2b50,_0x389889,_0x11be11,_0x5bd62b,_0xd92656,_0x5b872d,_0x220c4e,_0xf07e94,_0x456b0b];}static get[_0x3bcb('0x1')](){return _0x3bcb('0x2');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4ba0=['set','delete','view','cut','addCommentThread','pluginName','editor','get','plugins','requires','highest','stopListening','document','config','change:isEnabled','afterInit','_disableCommentsOnlyMode','commands','commentsOnlyMode','DragDrop','isEnabled','clipboardInput','stop','commentsOnly','affectsData','listenTo','_enableCommentsOnlyMode','clearForceDisabled','forceDisabled'];(function(_0x57bbcc,_0x4ba04e){const _0x144800=function(_0x59b076){while(--_0x59b076){_0x57bbcc['push'](_0x57bbcc['shift']());}};_0x144800(++_0x4ba04e);}(_0x4ba0,0x1d4));const _0x1448=function(_0x57bbcc,_0x4ba04e){_0x57bbcc=_0x57bbcc-0x0;let _0x144800=_0x4ba0[_0x57bbcc];return _0x144800;};import{Plugin as _0x2e3917}from'ckeditor5/src/core';import _0x2c287f from'./comments/commentsediting';export default class n extends _0x2e3917{static get[_0x1448('0x1')](){return'CommentsOnly';}static get[_0x1448('0x5')](){return[_0x2c287f];}constructor(_0x5bd9a5){super(_0x5bd9a5),this[_0x1448('0x19')](_0x1448('0x10'),!0x1),this['on'](_0x1448('0xa'),(_0x1c3b9e,_0x425b35,_0x3418fb)=>{_0x3418fb?this[_0x1448('0x16')]():this[_0x1448('0xc')]();});}[_0x1448('0xb')](){!this[_0x1448('0x10')]&&this[_0x1448('0x2')][_0x1448('0x9')]['get'](_0x1448('0x13'))&&(this[_0x1448('0x10')]=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x3777f3,_0x172631]of this[_0x1448('0x2')][_0x1448('0xd')])_0x172631['affectsData']&&_0x1448('0x0')!==_0x3777f3&&_0x172631[_0x1448('0x18')]('commentsOnlyMode');this[_0x1448('0x2')][_0x1448('0x4')]['has'](_0x1448('0xf'))&&this[_0x1448('0x2')][_0x1448('0x4')][_0x1448('0x3')](_0x1448('0xf'))['forceDisabled'](_0x1448('0xe'));const _0x4a781e=this['editor']['editing']['view']['document'];this[_0x1448('0x15')](_0x4a781e,_0x1448('0x1c'),_0x129f09=>_0x129f09[_0x1448('0x12')](),{'priority':_0x1448('0x6')}),this[_0x1448('0x15')](_0x4a781e,_0x1448('0x11'),_0x443683=>_0x443683['stop'](),{'priority':_0x1448('0x6')}),this[_0x1448('0x15')](_0x4a781e,_0x1448('0x1a'),_0x469fd4=>_0x469fd4[_0x1448('0x12')](),{'priority':_0x1448('0x6')});}[_0x1448('0xc')](){for(const [_0x3140ba,_0x179ad1]of this[_0x1448('0x2')]['commands'])_0x179ad1[_0x1448('0x14')]&&_0x1448('0x0')!==_0x3140ba&&_0x179ad1[_0x1448('0x17')](_0x1448('0xe'));this[_0x1448('0x7')](this['editor']['editing'][_0x1448('0x1b')][_0x1448('0x8')]);}}
23
+ const _0x1e2d=['stop','clipboardInput','delete','commentsOnlyMode','get','requires','isEnabled','editor','cut','clearForceDisabled','document','DragDrop','commentsOnly','view','affectsData','highest','listenTo','afterInit','_disableCommentsOnlyMode','commands','addCommentThread','set','pluginName','forceDisabled','plugins','editing','_enableCommentsOnlyMode'];(function(_0x1f33b5,_0x1e2ddd){const _0x5c8ee7=function(_0x1b3abf){while(--_0x1b3abf){_0x1f33b5['push'](_0x1f33b5['shift']());}};_0x5c8ee7(++_0x1e2ddd);}(_0x1e2d,0xe7));const _0x5c8e=function(_0x1f33b5,_0x1e2ddd){_0x1f33b5=_0x1f33b5-0x0;let _0x5c8ee7=_0x1e2d[_0x1f33b5];return _0x5c8ee7;};import{Plugin as _0x56dc34}from'ckeditor5/src/core';import _0x2b607a from'./comments/commentsediting';export default class n extends _0x56dc34{static get[_0x5c8e('0x7')](){return'CommentsOnly';}static get[_0x5c8e('0x11')](){return[_0x2b607a];}constructor(_0xf2c022){super(_0xf2c022),this[_0x5c8e('0x6')](_0x5c8e('0x12'),!0x1),this['on']('change:isEnabled',(_0x1e6451,_0x2892c2,_0x59a76d)=>{_0x59a76d?this['_enableCommentsOnlyMode']():this[_0x5c8e('0x3')]();});}[_0x5c8e('0x2')](){!this[_0x5c8e('0x12')]&&this[_0x5c8e('0x13')]['config']['get'](_0x5c8e('0x18'))&&(this[_0x5c8e('0x12')]=!0x0);}[_0x5c8e('0xb')](){for(const [_0x5b98f7,_0x3e853d]of this[_0x5c8e('0x13')][_0x5c8e('0x4')])_0x3e853d[_0x5c8e('0x1a')]&&_0x5c8e('0x5')!==_0x5b98f7&&_0x3e853d[_0x5c8e('0x8')]('commentsOnlyMode');this[_0x5c8e('0x13')][_0x5c8e('0x9')]['has'](_0x5c8e('0x17'))&&this[_0x5c8e('0x13')][_0x5c8e('0x9')][_0x5c8e('0x10')](_0x5c8e('0x17'))[_0x5c8e('0x8')](_0x5c8e('0xf'));const _0x4aaaba=this[_0x5c8e('0x13')][_0x5c8e('0xa')][_0x5c8e('0x19')]['document'];this['listenTo'](_0x4aaaba,_0x5c8e('0x14'),_0x897b53=>_0x897b53[_0x5c8e('0xc')](),{'priority':_0x5c8e('0x0')}),this[_0x5c8e('0x1')](_0x4aaaba,_0x5c8e('0xd'),_0x88df69=>_0x88df69[_0x5c8e('0xc')](),{'priority':_0x5c8e('0x0')}),this['listenTo'](_0x4aaaba,_0x5c8e('0xe'),_0x3ba3a2=>_0x3ba3a2['stop'](),{'priority':_0x5c8e('0x0')});}[_0x5c8e('0x3')](){for(const [_0x402263,_0x441875]of this[_0x5c8e('0x13')][_0x5c8e('0x4')])_0x441875['affectsData']&&_0x5c8e('0x5')!==_0x402263&&_0x441875[_0x5c8e('0x15')](_0x5c8e('0xf'));this['stopListening'](this[_0x5c8e('0x13')][_0x5c8e('0xa')][_0x5c8e('0x19')][_0x5c8e('0x16')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x231f24,_0x5579fd,_0x29415a){const t=_0x231f24['t'];switch(_0x5579fd){case'PENDING_ACTION_COMMENT_THREAD':return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});case'Comment':return t('Comment');case'Reply...':return t('Reply...');case'Reply\x20to\x20reopen\x20discussion...':return t('Reply\x20to\x20reopen\x20discussion...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20was\x20made\x20on\x20an\x20element':return t('Comment\x20was\x20made\x20on\x20an\x20element');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Marked\x20as\x20resolved':return t('Marked\x20as\x20resolved');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Resolve':return t('Resolve');case'Reopen':return t('Reopen');case'Remove':return t('Remove');case'Reply':return t('Reply');case'Save':return t('Save');case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x29415a);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'},_0x29415a);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'},_0x29415a);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'},_0x29415a);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(_0x583790,_0xf36a53,_0x55c026){const t=_0x583790['t'];switch(_0xf36a53){case'PENDING_ACTION_COMMENT_THREAD':return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});case'Comment':return t('Comment');case'Reply...':return t('Reply...');case'Reply\x20to\x20reopen\x20discussion...':return t('Reply\x20to\x20reopen\x20discussion...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20was\x20made\x20on\x20an\x20element':return t('Comment\x20was\x20made\x20on\x20an\x20element');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Marked\x20as\x20resolved':return t('Marked\x20as\x20resolved');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Resolve':return t('Resolve');case'Reopen':return t('Reopen');case'Remove':return t('Remove');case'Reply':return t('Reply');case'Save':return t('Save');case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x55c026);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'},_0x55c026);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'},_0x55c026);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'},_0x55c026);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'';}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xf788=['disconnect','childList','cancel','attributes','class','attributeName','type'];(function(_0x1d1d80,_0xf7883a){const _0xa5f791=function(_0x212285){while(--_0x212285){_0x1d1d80['push'](_0x1d1d80['shift']());}};_0xa5f791(++_0xf7883a);}(_0xf788,0xde));const _0xa5f7=function(_0x1d1d80,_0xf7883a){_0x1d1d80=_0x1d1d80-0x0;let _0xa5f791=_0xf788[_0x1d1d80];return _0xa5f791;};import{throttle as _0x557286}from'lodash-es';export default function q(_0x185d45){const _0x5e181a=_0x557286(_0x185d45,0x1e),_0x4cc39e=new MutationObserver(_0x1aff02=>{for(const _0x4e159f of _0x1aff02)(_0xa5f7('0x5')==_0x4e159f[_0xa5f7('0x1')]&&_0xa5f7('0x6')==_0x4e159f[_0xa5f7('0x0')]||_0xa5f7('0x3')==_0x4e159f[_0xa5f7('0x1')])&&_0x5e181a();});return{'attach'(_0x3ac540){_0x4cc39e['observe'](_0x3ac540,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x4cc39e[_0xa5f7('0x2')](),_0x5e181a[_0xa5f7('0x4')]();}};}
23
+ const _0x6f8b=['attributes','observe','cancel','childList','attributeName','disconnect','type'];(function(_0x2f298f,_0x6f8b2){const _0x409c11=function(_0x3e3cf3){while(--_0x3e3cf3){_0x2f298f['push'](_0x2f298f['shift']());}};_0x409c11(++_0x6f8b2);}(_0x6f8b,0x12a));const _0x409c=function(_0x2f298f,_0x6f8b2){_0x2f298f=_0x2f298f-0x0;let _0x409c11=_0x6f8b[_0x2f298f];return _0x409c11;};import{throttle as _0x4b7dcd}from'lodash-es';export default function Lt(_0x378d21){const _0x3ee472=_0x4b7dcd(_0x378d21,0x1e),_0xa9073a=new MutationObserver(_0x5717a8=>{for(const _0xed3d6d of _0x5717a8)(_0x409c('0x3')==_0xed3d6d[_0x409c('0x2')]&&'class'==_0xed3d6d[_0x409c('0x0')]||_0x409c('0x6')==_0xed3d6d[_0x409c('0x2')])&&_0x3ee472();});return{'attach'(_0xef7001){_0xa9073a[_0x409c('0x4')](_0xef7001,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0xa9073a[_0x409c('0x1')](),_0x3ee472[_0x409c('0x5')]();}};}