@ckeditor/ckeditor5-comments 37.0.0-rc.0 → 37.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 (42) hide show
  1. package/build/comments.js +1 -1
  2. package/package.json +2 -2
  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 _0x418d=['_createDropdown','ck-annotation__main','items','isVisible','attributes','resolvedAt','ck-comment--edit','threeVerticalDots','ck-comment','remove','element','isSystemComment','ck-annotation__info','ck-annotation','name','ck-annotation__actions','ck-annotation__user','some','authoredAt','isExternal','switchToEditMode','mouseenter','visibleView','panelPosition','buttonView','_config','ck-comment__info-name','actionBar','isConfirm','source','ck-comment--remove-confirmation','editButton','ck-comment__main','_model','removeButton','_attachActions','ck-annotation__actions--hidden','dropdown','extendTemplate','actionIndicator','ck-comment--','getExternalCommentNote','setTemplate','userView','isEditMode','importWord','@external','span','Remove','div','isRemovable','blur','isReadOnly','isEditable','createCollection','ck-comment__external','edit','getTemplate','panelView','placeholder','length','set','creator','ck-annotation__info-time','author','ck-comment--remove','isEnabled','bind','listenTo','locale','ck-comment__info-time','Reply...','Delete\x20comment?','withText','execute','showConfirm','_createCommentInputView','icon','label','EXTERNAL_IMPORT_WORD_COMMENT','ck-comment__actions','EXTERNAL_IMPORT_WORD_AVATAR','ck-comment__user','change:isVisible','time','render','EXTERNAL_AVATAR','_createEditButton','add','_createRemoveButton','push','mouseleave','Show\x20more\x20items','fire'];(function(_0x179787,_0x418dce){const _0x4d3d5b=function(_0x3c0303){while(--_0x3c0303){_0x179787['push'](_0x179787['shift']());}};_0x4d3d5b(++_0x418dce);}(_0x418d,0xc7));const _0x4d3d=function(_0x179787,_0x418dce){_0x179787=_0x179787-0x0;let _0x4d3d5b=_0x418d[_0x179787];return _0x4d3d5b;};import{ButtonView as _0x204e98,createDropdown as _0xff33e9,ListView as _0x593086,ListItemView as _0xf849bc}from'ckeditor5/src/ui';import{icons as _0x1dc253}from'ckeditor5/src/core';import{UserView as _0x3ee701,ConfirmMixin as _0x28c9d6}from'ckeditor5-collaboration/src/collaboration-core';import _0x268a7b from'./basecommentview';import _0x412cab from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0xd8bb4e}from'../../../utils/common-translations';export default class lt extends _0x28c9d6(_0x268a7b){constructor(_0x19c4b0,_0x4f1de5,_0x290fab){super(_0x19c4b0,_0x4f1de5,_0x290fab),this[_0x4d3d('0x32')](_0x4d3d('0x1c'),null),this[_0x4d3d('0x32')](_0x4d3d('0x30'),_0xd8bb4e(_0x19c4b0,_0x4d3d('0x3c'))),this[_0x4d3d('0x38')](_0x4d3d('0x7'))['to'](_0x4f1de5),this[_0x4d3d('0x38')](_0x4d3d('0x58'))['to'](_0x4f1de5),this[_0x4d3d('0x10')]=this['createCollection'](),this[_0x4d3d('0x0')]||(this[_0x4d3d('0x14')]=this[_0x4d3d('0x4c')](),this[_0x4d3d('0x17')]=this[_0x4d3d('0x4e')](),this[_0x4d3d('0x55')]=this[_0x4d3d('0x2b')](),this[_0x4d3d('0x55')]['addMany']([this[_0x4d3d('0x14')],this['removeButton']]),this[_0x4d3d('0x1a')]=this['_createDropdown'](),this[_0x4d3d('0x10')][_0x4d3d('0x4d')](this['dropdown'])),this[_0x4d3d('0x20')]=new _0x3ee701(_0x19c4b0,_0x4f1de5['author'],this['getUserViewNotificationText']()),this['userView'][_0x4d3d('0x1b')]({'attributes':{'class':[_0x4d3d('0x47'),_0x4d3d('0x5')]}}),this['listenTo'](_0x4f1de5,'change:isRemovable',()=>this['cancelConfirm']()),this[_0x4d3d('0x1f')](this[_0x4d3d('0x2e')]());}['getTemplate'](){const _0x5c9ad8=this['bindTemplate'],_0x385859=[{'tag':_0x4d3d('0x26'),'attributes':{'class':['ck-comment__info',_0x4d3d('0x1')]},'children':[{'tag':_0x4d3d('0x24'),'children':[{'text':this[_0x4d3d('0x20')]['name']}],'attributes':{'class':[_0x4d3d('0xf'),'ck-annotation__info-name']}},{'tag':_0x4d3d('0x49'),'attributes':{'datetime':_0x5c9ad8['to'](_0x4d3d('0x7')),'class':[_0x4d3d('0x3b'),_0x4d3d('0x34')]},'children':[{'text':_0x5c9ad8['to'](_0x4d3d('0x7'),_0x71d5d6=>this[_0x4d3d('0xe')]['formatDateTime'](_0x71d5d6))}]}]},{'tag':'div','attributes':{'class':[_0x4d3d('0x45'),_0x4d3d('0x4'),_0x5c9ad8['if']('isEditMode','ck-comment__actions--hidden'),_0x5c9ad8['if'](_0x4d3d('0x21'),_0x4d3d('0x19'))]},'children':this[_0x4d3d('0x10')]},{'tag':_0x4d3d('0x26'),'attributes':{'class':['ck-annotation__content-wrapper']},'children':this[_0x4d3d('0xb')]}];return this[_0x4d3d('0x16')][_0x4d3d('0x8')]&&_0x385859[_0x4d3d('0x4f')]({'tag':_0x4d3d('0x26'),'attributes':{'class':[_0x4d3d('0x2c')]},'children':[{'text':this[_0x4d3d('0x1e')]()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x5c9ad8['if'](_0x4d3d('0x11'),_0x4d3d('0x13'))],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':[_0x4d3d('0x5b'),_0x4d3d('0x2'),_0x5c9ad8['if']('isEditMode',_0x4d3d('0x59')),_0x5c9ad8['if'](_0x4d3d('0x0'),'ck-comment--info'),_0x5c9ad8['to'](_0x4d3d('0x1c'),_0x4ac92a=>_0x4ac92a?_0x4d3d('0x1d')+_0x4ac92a:'')],'data-author-id':this[_0x4d3d('0x16')][_0x4d3d('0x35')]['id'],'data-comment-id':this[_0x4d3d('0x16')]['id']},'children':[this[_0x4d3d('0x20')],{'tag':_0x4d3d('0x26'),'attributes':{'class':[_0x4d3d('0x15'),_0x4d3d('0x54')]},'children':_0x385859}]}]};}[_0x4d3d('0x4c')](){const _0xffa0e4=new _0x204e98(this[_0x4d3d('0x3a')]);return _0xffa0e4[_0x4d3d('0x43')]=_0xd8bb4e(this[_0x4d3d('0x3a')],'Edit'),_0xffa0e4['icon']=_0x1dc253['pencil'],_0xffa0e4['withText']=!0x0,_0xffa0e4[_0x4d3d('0x1b')]({'attributes':{'class':_0x4d3d('0x59')}}),_0xffa0e4[_0x4d3d('0x38')](_0x4d3d('0x37'))['to'](this['_model'],_0x4d3d('0x29'),_0x4bdd17=>!_0x4bdd17),_0xffa0e4[_0x4d3d('0x38')](_0x4d3d('0x56'))['to'](this[_0x4d3d('0x16')],_0x4d3d('0x2a')),_0xffa0e4['on'](_0x4d3d('0x3f'),()=>this[_0x4d3d('0x9')]()),_0xffa0e4;}['_createRemoveButton'](){const _0x59f8f0=new _0x204e98(this['locale']);return _0x59f8f0[_0x4d3d('0x43')]=_0xd8bb4e(this[_0x4d3d('0x3a')],_0x4d3d('0x25')),_0x59f8f0[_0x4d3d('0x42')]=_0x412cab,_0x59f8f0[_0x4d3d('0x3e')]=!0x0,_0x59f8f0[_0x4d3d('0x1b')]({'attributes':{'class':_0x4d3d('0x36')}}),_0x59f8f0[_0x4d3d('0x38')](_0x4d3d('0x37'))['to'](this[_0x4d3d('0x16')],_0x4d3d('0x29'),_0x12dd1a=>!_0x12dd1a),_0x59f8f0[_0x4d3d('0x38')]('isVisible')['to'](this['_model'],_0x4d3d('0x27')),_0x59f8f0['on'](_0x4d3d('0x3f'),()=>{this[_0x4d3d('0x40')](_0xd8bb4e(this[_0x4d3d('0x3a')],_0x4d3d('0x3d')),this[_0x4d3d('0x5d')])['then'](()=>{this[_0x4d3d('0x52')]('removeComment',this[_0x4d3d('0x16')]['id']);});}),_0x59f8f0;}[_0x4d3d('0x53')](){const _0x155f71=_0xff33e9(this[_0x4d3d('0x3a')]),_0x495836=_0x155f71[_0x4d3d('0x2f')]['children'],_0x505ee1=new _0x593086(this['locale']),_0x1ed2a2=(_0x157fb1,_0x150733=-0x1)=>{const _0x5c9f7d=new _0xf849bc(this[_0x4d3d('0x3a')]);_0x5c9f7d['children'][_0x4d3d('0x4d')](_0x157fb1);const _0xc7b912=_0x150733>-0x1?_0x150733:_0x505ee1[_0x4d3d('0x55')][_0x4d3d('0x31')];_0x505ee1[_0x4d3d('0x55')][_0x4d3d('0x4d')](_0x5c9f7d,_0xc7b912),_0x155f71['listenTo'](_0x157fb1,'change:isEnabled',()=>{_0x155f71[_0x4d3d('0x37')]=[...this[_0x4d3d('0x55')]][_0x4d3d('0x6')](_0xdd7733=>_0xdd7733[_0x4d3d('0x37')]);}),_0x155f71[_0x4d3d('0x39')](_0x157fb1,_0x4d3d('0x48'),()=>{_0x155f71[_0x4d3d('0xd')][_0x4d3d('0x56')]=[...this[_0x4d3d('0x55')]]['some'](_0x174a97=>_0x174a97[_0x4d3d('0x56')]);});};_0x155f71[_0x4d3d('0xc')]='sw',_0x155f71[_0x4d3d('0xd')][_0x4d3d('0x32')]({'label':_0xd8bb4e(this['locale'],_0x4d3d('0x51')),'icon':_0x1dc253[_0x4d3d('0x5a')]}),_0x155f71[_0x4d3d('0x37')]=[...this['items']][_0x4d3d('0x6')](_0x5de2a4=>_0x5de2a4['isEnabled']),_0x155f71[_0x4d3d('0xd')][_0x4d3d('0x56')]=[...this[_0x4d3d('0x55')]][_0x4d3d('0x6')](_0x298df4=>_0x298df4[_0x4d3d('0x56')]);for(const _0x8083d6 of this[_0x4d3d('0x55')])_0x1ed2a2(_0x8083d6);return _0x495836[_0x4d3d('0x4d')](_0x505ee1),_0x155f71[_0x4d3d('0x39')](this[_0x4d3d('0x55')],_0x4d3d('0x4d'),(_0x30f355,_0x463c7f,_0x2dd260)=>{_0x1ed2a2(_0x463c7f,_0x2dd260);}),_0x155f71[_0x4d3d('0x39')](this['items'],_0x4d3d('0x5c'),(_0x521fc8,_0x43e5ee,_0x190fad)=>{_0x505ee1[_0x4d3d('0x55')]['remove'](_0x190fad);}),_0x155f71;}[_0x4d3d('0x18')](_0x5b8add,_0xf2a4cc){const _0x5d541f=_0x5b8add&&_0x5b8add['element'];_0x5d541f&&(this[_0x4d3d('0x39')](_0x5d541f,_0x4d3d('0xa'),()=>this[_0x4d3d('0x1c')]=_0xf2a4cc),this[_0x4d3d('0x39')](_0x5d541f,'focus',()=>this[_0x4d3d('0x1c')]=_0xf2a4cc),this[_0x4d3d('0x39')](_0x5d541f,_0x4d3d('0x50'),()=>this[_0x4d3d('0x1c')]=null),this[_0x4d3d('0x39')](_0x5d541f,_0x4d3d('0x28'),()=>this['actionIndicator']=null));}[_0x4d3d('0x41')](){const _0x2f89d3=super[_0x4d3d('0x41')]();return _0x2f89d3[_0x4d3d('0x38')]('placeholder')['to'](this),_0x2f89d3;}['getExternalCommentNote'](){return _0x4d3d('0x22')===this['_model']['attributes']['@external']['source']?_0xd8bb4e(this[_0x4d3d('0x3a')],_0x4d3d('0x44')):_0xd8bb4e(this['locale'],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this[_0x4d3d('0x16')][_0x4d3d('0x8')]?'importWord'===this[_0x4d3d('0x16')][_0x4d3d('0x57')][_0x4d3d('0x23')][_0x4d3d('0x12')]?_0xd8bb4e(this[_0x4d3d('0x3a')],_0x4d3d('0x46'),this[_0x4d3d('0x16')][_0x4d3d('0x33')][_0x4d3d('0x3')]):_0xd8bb4e(this[_0x4d3d('0x3a')],_0x4d3d('0x4b'),this['_model'][_0x4d3d('0x33')]['name']):null;}[_0x4d3d('0x4a')](){super[_0x4d3d('0x4a')](),this[_0x4d3d('0x18')](this[_0x4d3d('0x14')],_0x4d3d('0x2d')),this['_attachActions'](this[_0x4d3d('0x17')],_0x4d3d('0x5c'));}}
23
+ const _0x56ac=['set','isVisible','Edit','ck-comment--edit','isEditMode','isExternal','creator','EXTERNAL_COMMENT','EXTERNAL_AVATAR','panelView','ck-annotation__actions','placeholder','editButton','actionIndicator','getUserViewNotificationText','source','ck-annotation','_model','length','addMany','render','children','attributes','div','userView','ck-comment--remove','author','mouseleave','isReadOnly','ck-comment__info','isEnabled','listenTo','ck-comment--remove-confirmation','ck-comment__info-time','focus','buttonView','showConfirm','execute','removeButton','remove','name','mouseenter','getTemplate','span','actionBar','element','importWord','ck-comment__actions','isConfirm','then','label','pencil','locale','_createCommentInputView','ck-annotation__content-wrapper','some','change:isRemovable','_attachActions','ck-comment__info-name','createCollection','ck-annotation__actions--hidden','withText','Show\x20more\x20items','extendTemplate','visibleView','isSystemComment','ck-comment--info','authoredAt','isEditable','bind','ck-comment__main','@external','items','isRemovable','_config','getExternalCommentNote','cancelConfirm','change:isVisible','_createRemoveButton','ck-annotation__info','_createEditButton','icon','_createDropdown','EXTERNAL_IMPORT_WORD_AVATAR','add','dropdown','resolvedAt','ck-comment__wrapper','edit'];(function(_0x4af85f,_0x56ac97){const _0x2565f1=function(_0x3ef609){while(--_0x3ef609){_0x4af85f['push'](_0x4af85f['shift']());}};_0x2565f1(++_0x56ac97);}(_0x56ac,0x19f));const _0x2565=function(_0x4af85f,_0x56ac97){_0x4af85f=_0x4af85f-0x0;let _0x2565f1=_0x56ac[_0x4af85f];return _0x2565f1;};import{ButtonView as _0x35b50e,createDropdown as _0x15901f,ListView as _0xbb2021,ListItemView as _0x297ea2}from'ckeditor5/src/ui';import{icons as _0x43724f}from'ckeditor5/src/core';import{UserView as _0x3170c7,ConfirmMixin as _0xbbc6a4}from'ckeditor5-collaboration/src/collaboration-core';import _0x471eff from'./basecommentview';import _0x50a064 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x5819f2}from'../../../utils/common-translations';export default class lt extends _0xbbc6a4(_0x471eff){constructor(_0x596a82,_0x409bc4,_0x66e3c9){super(_0x596a82,_0x409bc4,_0x66e3c9),this[_0x2565('0x1e')](_0x2565('0x2b'),null),this['set']('placeholder',_0x5819f2(_0x596a82,'Reply...')),this[_0x2565('0xa')](_0x2565('0x8'))['to'](_0x409bc4),this[_0x2565('0xa')](_0x2565('0x1b'))['to'](_0x409bc4),this[_0x2565('0x4a')]=this[_0x2565('0x0')](),this[_0x2565('0x6')]||(this[_0x2565('0x2a')]=this['_createEditButton'](),this[_0x2565('0x44')]=this[_0x2565('0x13')](),this['items']=this['createCollection'](),this[_0x2565('0xd')][_0x2565('0x31')]([this['editButton'],this[_0x2565('0x44')]]),this[_0x2565('0x1a')]=this['_createDropdown'](),this[_0x2565('0x4a')][_0x2565('0x19')](this[_0x2565('0x1a')])),this['userView']=new _0x3170c7(_0x596a82,_0x409bc4['author'],this['getUserViewNotificationText']()),this[_0x2565('0x36')][_0x2565('0x4')]({'attributes':{'class':['ck-comment__user','ck-annotation__user']}}),this['listenTo'](_0x409bc4,_0x2565('0x56'),()=>this[_0x2565('0x11')]()),this['setTemplate'](this[_0x2565('0x48')]());}[_0x2565('0x48')](){const _0x34e08d=this['bindTemplate'],_0x515131=[{'tag':'div','attributes':{'class':[_0x2565('0x3b'),_0x2565('0x14')]},'children':[{'tag':_0x2565('0x49'),'children':[{'text':this[_0x2565('0x36')][_0x2565('0x46')]}],'attributes':{'class':[_0x2565('0x58'),'ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x34e08d['to'](_0x2565('0x8')),'class':[_0x2565('0x3f'),'ck-annotation__info-time']},'children':[{'text':_0x34e08d['to'](_0x2565('0x8'),_0x17533b=>this[_0x2565('0xf')]['formatDateTime'](_0x17533b))}]}]},{'tag':'div','attributes':{'class':[_0x2565('0x4d'),_0x2565('0x28'),_0x34e08d['if'](_0x2565('0x22'),'ck-comment__actions--hidden'),_0x34e08d['if'](_0x2565('0x22'),_0x2565('0x1'))]},'children':this[_0x2565('0x4a')]},{'tag':_0x2565('0x35'),'attributes':{'class':[_0x2565('0x54')]},'children':this[_0x2565('0x5')]}];return this[_0x2565('0x2f')][_0x2565('0x23')]&&_0x515131['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this[_0x2565('0x10')]()}]}),{'tag':'li','attributes':{'class':[_0x2565('0x1c'),_0x34e08d['if'](_0x2565('0x4e'),_0x2565('0x3e'))],'tabindex':-0x1},'children':[{'tag':_0x2565('0x35'),'attributes':{'class':['ck-comment',_0x2565('0x2e'),_0x34e08d['if']('isEditMode',_0x2565('0x21')),_0x34e08d['if'](_0x2565('0x6'),_0x2565('0x7')),_0x34e08d['to'](_0x2565('0x2b'),_0x2e9715=>_0x2e9715?'ck-comment--'+_0x2e9715:'')],'data-author-id':this[_0x2565('0x2f')][_0x2565('0x38')]['id'],'data-comment-id':this['_model']['id']},'children':[this[_0x2565('0x36')],{'tag':_0x2565('0x35'),'attributes':{'class':[_0x2565('0xb'),'ck-annotation__main']},'children':_0x515131}]}]};}[_0x2565('0x15')](){const _0x3a7bca=new _0x35b50e(this[_0x2565('0x52')]);return _0x3a7bca[_0x2565('0x50')]=_0x5819f2(this[_0x2565('0x52')],_0x2565('0x20')),_0x3a7bca[_0x2565('0x16')]=_0x43724f[_0x2565('0x51')],_0x3a7bca[_0x2565('0x2')]=!0x0,_0x3a7bca[_0x2565('0x4')]({'attributes':{'class':_0x2565('0x21')}}),_0x3a7bca[_0x2565('0xa')]('isEnabled')['to'](this['_model'],_0x2565('0x3a'),_0x44341d=>!_0x44341d),_0x3a7bca[_0x2565('0xa')](_0x2565('0x1f'))['to'](this[_0x2565('0x2f')],_0x2565('0x9')),_0x3a7bca['on'](_0x2565('0x43'),()=>this['switchToEditMode']()),_0x3a7bca;}[_0x2565('0x13')](){const _0x506eaa=new _0x35b50e(this[_0x2565('0x52')]);return _0x506eaa[_0x2565('0x50')]=_0x5819f2(this[_0x2565('0x52')],'Remove'),_0x506eaa[_0x2565('0x16')]=_0x50a064,_0x506eaa['withText']=!0x0,_0x506eaa['extendTemplate']({'attributes':{'class':_0x2565('0x37')}}),_0x506eaa[_0x2565('0xa')](_0x2565('0x3c'))['to'](this[_0x2565('0x2f')],_0x2565('0x3a'),_0x3565b9=>!_0x3565b9),_0x506eaa['bind'](_0x2565('0x1f'))['to'](this[_0x2565('0x2f')],_0x2565('0xe')),_0x506eaa['on'](_0x2565('0x43'),()=>{this[_0x2565('0x42')](_0x5819f2(this[_0x2565('0x52')],'Delete\x20comment?'),this[_0x2565('0x4b')])[_0x2565('0x4f')](()=>{this['fire']('removeComment',this[_0x2565('0x2f')]['id']);});}),_0x506eaa;}[_0x2565('0x17')](){const _0x4eef91=_0x15901f(this['locale']),_0x4247e0=_0x4eef91[_0x2565('0x27')]['children'],_0x33db4b=new _0xbb2021(this[_0x2565('0x52')]),_0x3a451a=(_0x5732bb,_0x3fe66a=-0x1)=>{const _0x7cabff=new _0x297ea2(this[_0x2565('0x52')]);_0x7cabff[_0x2565('0x33')][_0x2565('0x19')](_0x5732bb);const _0x1fedf0=_0x3fe66a>-0x1?_0x3fe66a:_0x33db4b[_0x2565('0xd')][_0x2565('0x30')];_0x33db4b[_0x2565('0xd')][_0x2565('0x19')](_0x7cabff,_0x1fedf0),_0x4eef91[_0x2565('0x3d')](_0x5732bb,'change:isEnabled',()=>{_0x4eef91[_0x2565('0x3c')]=[...this[_0x2565('0xd')]][_0x2565('0x55')](_0x48b8cf=>_0x48b8cf['isEnabled']);}),_0x4eef91[_0x2565('0x3d')](_0x5732bb,_0x2565('0x12'),()=>{_0x4eef91['buttonView']['isVisible']=[...this['items']][_0x2565('0x55')](_0x2240af=>_0x2240af[_0x2565('0x1f')]);});};_0x4eef91['panelPosition']='sw',_0x4eef91[_0x2565('0x41')][_0x2565('0x1e')]({'label':_0x5819f2(this['locale'],_0x2565('0x3')),'icon':_0x43724f['threeVerticalDots']}),_0x4eef91[_0x2565('0x3c')]=[...this[_0x2565('0xd')]]['some'](_0x37be0f=>_0x37be0f[_0x2565('0x3c')]),_0x4eef91[_0x2565('0x41')][_0x2565('0x1f')]=[...this['items']][_0x2565('0x55')](_0x457dde=>_0x457dde[_0x2565('0x1f')]);for(const _0x56365c of this['items'])_0x3a451a(_0x56365c);return _0x4247e0['add'](_0x33db4b),_0x4eef91['listenTo'](this[_0x2565('0xd')],_0x2565('0x19'),(_0x398ebe,_0x409ee4,_0xf3411b)=>{_0x3a451a(_0x409ee4,_0xf3411b);}),_0x4eef91[_0x2565('0x3d')](this[_0x2565('0xd')],_0x2565('0x45'),(_0xf53f09,_0x4f8d1d,_0x59e6a8)=>{_0x33db4b[_0x2565('0xd')]['remove'](_0x59e6a8);}),_0x4eef91;}[_0x2565('0x57')](_0x210a0f,_0x4ef1d7){const _0x851492=_0x210a0f&&_0x210a0f[_0x2565('0x4b')];_0x851492&&(this['listenTo'](_0x851492,_0x2565('0x47'),()=>this[_0x2565('0x2b')]=_0x4ef1d7),this[_0x2565('0x3d')](_0x851492,_0x2565('0x40'),()=>this[_0x2565('0x2b')]=_0x4ef1d7),this[_0x2565('0x3d')](_0x851492,_0x2565('0x39'),()=>this[_0x2565('0x2b')]=null),this[_0x2565('0x3d')](_0x851492,'blur',()=>this[_0x2565('0x2b')]=null));}[_0x2565('0x53')](){const _0x5d59f7=super[_0x2565('0x53')]();return _0x5d59f7[_0x2565('0xa')](_0x2565('0x29'))['to'](this),_0x5d59f7;}[_0x2565('0x10')](){return'importWord'===this[_0x2565('0x2f')][_0x2565('0x34')][_0x2565('0xc')][_0x2565('0x2d')]?_0x5819f2(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):_0x5819f2(this[_0x2565('0x52')],_0x2565('0x25'));}[_0x2565('0x2c')](){return this['_model'][_0x2565('0x23')]?_0x2565('0x4c')===this['_model'][_0x2565('0x34')][_0x2565('0xc')][_0x2565('0x2d')]?_0x5819f2(this[_0x2565('0x52')],_0x2565('0x18'),this[_0x2565('0x2f')]['creator'][_0x2565('0x46')]):_0x5819f2(this[_0x2565('0x52')],_0x2565('0x26'),this['_model'][_0x2565('0x24')][_0x2565('0x46')]):null;}['render'](){super[_0x2565('0x32')](),this['_attachActions'](this[_0x2565('0x2a')],_0x2565('0x1d')),this[_0x2565('0x57')](this[_0x2565('0x44')],'remove');}}
package/src/comments.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x17a1=['pluginName','requires'];(function(_0x10e61d,_0x17a1fd){var _0x409905=function(_0x5c5b76){while(--_0x5c5b76){_0x10e61d['push'](_0x10e61d['shift']());}};_0x409905(++_0x17a1fd);}(_0x17a1,0xab));var _0x4099=function(_0x10e61d,_0x17a1fd){_0x10e61d=_0x10e61d-0x0;var _0x409905=_0x17a1[_0x10e61d];return _0x409905;};import{Plugin as _0x4adab4}from'ckeditor5/src/core';import _0x3d7f4a from'./comments/commentsrepository';import _0x469f49 from'./comments/commentsediting';import _0x12bf43 from'./comments/commentsui';import _0x124d5f from'./commentsonly';import _0x570825 from'./annotations/widesidebar';import _0x3c3870 from'./annotations/narrowsidebar';import _0x432eca from'./annotations/inlineannotations';import _0x21e10f from'./comments/commentsarchiveui';import _0x824c5d from'./comments/commentsarchive';export default class f extends _0x4adab4{static get[_0x4099('0x0')](){return[_0x3d7f4a,_0x469f49,_0x12bf43,_0x824c5d,_0x21e10f,_0x124d5f,_0x570825,_0x3c3870,_0x432eca];}static get[_0x4099('0x1')](){return'Comments';}}
23
+ var _0x4d7f=['requires','Comments'];(function(_0x11f95b,_0x4d7f32){var _0x4a099a=function(_0x11c6f){while(--_0x11c6f){_0x11f95b['push'](_0x11f95b['shift']());}};_0x4a099a(++_0x4d7f32);}(_0x4d7f,0xaf));var _0x4a09=function(_0x11f95b,_0x4d7f32){_0x11f95b=_0x11f95b-0x0;var _0x4a099a=_0x4d7f[_0x11f95b];return _0x4a099a;};import{Plugin as _0x5343d}from'ckeditor5/src/core';import _0x3c1f82 from'./comments/commentsrepository';import _0x26c783 from'./comments/commentsediting';import _0x76131c from'./comments/commentsui';import _0x4aab22 from'./commentsonly';import _0x1c4963 from'./annotations/widesidebar';import _0x599477 from'./annotations/narrowsidebar';import _0x5d40a0 from'./annotations/inlineannotations';import _0x2273f0 from'./comments/commentsarchiveui';import _0x1ce012 from'./comments/commentsarchive';export default class f extends _0x5343d{static get[_0x4a09('0x1')](){return[_0x3c1f82,_0x26c783,_0x76131c,_0x1ce012,_0x2273f0,_0x4aab22,_0x1c4963,_0x599477,_0x5d40a0];}static get['pluginName'](){return _0x4a09('0x0');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4dca=['stopListening','pluginName','commentsOnlyMode','requires','plugins','commentsOnly','delete','forceDisabled','view','_enableCommentsOnlyMode','change:isEnabled','affectsData','DragDrop','listenTo','config','stop','clearForceDisabled','has','editor','addCommentThread','get','afterInit','_disableCommentsOnlyMode','isEnabled','highest','document','editing','set','commands'];(function(_0x555372,_0x4dca72){const _0x26fdf9=function(_0x39ca2c){while(--_0x39ca2c){_0x555372['push'](_0x555372['shift']());}};_0x26fdf9(++_0x4dca72);}(_0x4dca,0x1ca));const _0x26fd=function(_0x555372,_0x4dca72){_0x555372=_0x555372-0x0;let _0x26fdf9=_0x4dca[_0x555372];return _0x26fdf9;};import{Plugin as _0x1134d3}from'ckeditor5/src/core';import _0xc23100 from'./comments/commentsediting';export default class n extends _0x1134d3{static get[_0x26fd('0x7')](){return'CommentsOnly';}static get[_0x26fd('0x9')](){return[_0xc23100];}constructor(_0x16a99e){super(_0x16a99e),this[_0x26fd('0x4')](_0x26fd('0x0'),!0x1),this['on'](_0x26fd('0x10'),(_0x263533,_0x59e7c7,_0x22ae74)=>{_0x22ae74?this['_enableCommentsOnlyMode']():this[_0x26fd('0x1c')]();});}[_0x26fd('0x1b')](){!this[_0x26fd('0x0')]&&this[_0x26fd('0x18')][_0x26fd('0x14')][_0x26fd('0x1a')](_0x26fd('0xb'))&&(this['isEnabled']=!0x0);}[_0x26fd('0xf')](){for(const [_0x55e8c5,_0x3f53a1]of this[_0x26fd('0x18')][_0x26fd('0x5')])_0x3f53a1[_0x26fd('0x11')]&&_0x26fd('0x19')!==_0x55e8c5&&_0x3f53a1[_0x26fd('0xd')](_0x26fd('0x8'));this[_0x26fd('0x18')][_0x26fd('0xa')][_0x26fd('0x17')](_0x26fd('0x12'))&&this[_0x26fd('0x18')][_0x26fd('0xa')][_0x26fd('0x1a')](_0x26fd('0x12'))[_0x26fd('0xd')]('commentsOnlyMode');const _0x56af2c=this[_0x26fd('0x18')][_0x26fd('0x3')]['view'][_0x26fd('0x2')];this[_0x26fd('0x13')](_0x56af2c,'cut',_0x5eee6b=>_0x5eee6b[_0x26fd('0x15')](),{'priority':_0x26fd('0x1')}),this['listenTo'](_0x56af2c,'clipboardInput',_0xdaa47c=>_0xdaa47c[_0x26fd('0x15')](),{'priority':_0x26fd('0x1')}),this[_0x26fd('0x13')](_0x56af2c,_0x26fd('0xc'),_0xc15f68=>_0xc15f68[_0x26fd('0x15')](),{'priority':_0x26fd('0x1')});}[_0x26fd('0x1c')](){for(const [_0x7d9bec,_0x137c45]of this[_0x26fd('0x18')][_0x26fd('0x5')])_0x137c45[_0x26fd('0x11')]&&_0x26fd('0x19')!==_0x7d9bec&&_0x137c45[_0x26fd('0x16')](_0x26fd('0x8'));this[_0x26fd('0x6')](this['editor'][_0x26fd('0x3')][_0x26fd('0xe')][_0x26fd('0x2')]);}}
23
+ const _0x3f45=['requires','view','has','document','CommentsOnly','highest','stop','_disableCommentsOnlyMode','addCommentThread','commentsOnlyMode','clipboardInput','commands','change:isEnabled','stopListening','DragDrop','config','editing','pluginName','_enableCommentsOnlyMode','listenTo','cut','isEnabled','affectsData','editor','plugins'];(function(_0x543f17,_0x3f4520){const _0x4272ae=function(_0x38fe36){while(--_0x38fe36){_0x543f17['push'](_0x543f17['shift']());}};_0x4272ae(++_0x3f4520);}(_0x3f45,0x1c6));const _0x4272=function(_0x543f17,_0x3f4520){_0x543f17=_0x543f17-0x0;let _0x4272ae=_0x3f45[_0x543f17];return _0x4272ae;};import{Plugin as _0x2bed2d}from'ckeditor5/src/core';import _0x41da6e from'./comments/commentsediting';export default class n extends _0x2bed2d{static get[_0x4272('0xd')](){return _0x4272('0x0');}static get[_0x4272('0x15')](){return[_0x41da6e];}constructor(_0x47098a){super(_0x47098a),this['set'](_0x4272('0x11'),!0x1),this['on'](_0x4272('0x8'),(_0x289b7d,_0x49b512,_0x318c08)=>{_0x318c08?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this[_0x4272('0x13')][_0x4272('0xb')]['get']('commentsOnly')&&(this[_0x4272('0x11')]=!0x0);}[_0x4272('0xe')](){for(const [_0x5ad78b,_0x4049f9]of this[_0x4272('0x13')][_0x4272('0x7')])_0x4049f9[_0x4272('0x12')]&&_0x4272('0x4')!==_0x5ad78b&&_0x4049f9['forceDisabled'](_0x4272('0x5'));this[_0x4272('0x13')][_0x4272('0x14')][_0x4272('0x17')]('DragDrop')&&this[_0x4272('0x13')][_0x4272('0x14')]['get'](_0x4272('0xa'))['forceDisabled'](_0x4272('0x5'));const _0x4c8622=this[_0x4272('0x13')][_0x4272('0xc')]['view'][_0x4272('0x18')];this[_0x4272('0xf')](_0x4c8622,_0x4272('0x10'),_0x4bf385=>_0x4bf385[_0x4272('0x2')](),{'priority':_0x4272('0x1')}),this[_0x4272('0xf')](_0x4c8622,_0x4272('0x6'),_0x3baaff=>_0x3baaff['stop'](),{'priority':_0x4272('0x1')}),this['listenTo'](_0x4c8622,'delete',_0x5913e5=>_0x5913e5[_0x4272('0x2')](),{'priority':_0x4272('0x1')});}[_0x4272('0x3')](){for(const [_0x310bb9,_0x53376b]of this[_0x4272('0x13')]['commands'])_0x53376b['affectsData']&&_0x4272('0x4')!==_0x310bb9&&_0x53376b['clearForceDisabled'](_0x4272('0x5'));this[_0x4272('0x9')](this[_0x4272('0x13')][_0x4272('0xc')][_0x4272('0x16')][_0x4272('0x18')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x325b1f,_0x28a934,_0x2297b7){const t=_0x325b1f['t'];switch(_0x28a934){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'Submit':return t('Submit');case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x2297b7);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'},_0x2297b7);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'},_0x2297b7);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'},_0x2297b7);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(_0x3ea227,_0x1c7c85,_0x321144){const t=_0x3ea227['t'];switch(_0x1c7c85){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'Submit':return t('Submit');case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x321144);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'},_0x321144);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'},_0x321144);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'},_0x321144);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 _0x4e8c=['childList','attributes','observe','cancel','disconnect','type','attributeName'];(function(_0x5af9e9,_0x4e8cbe){const _0x417088=function(_0x3af56c){while(--_0x3af56c){_0x5af9e9['push'](_0x5af9e9['shift']());}};_0x417088(++_0x4e8cbe);}(_0x4e8c,0x1e2));const _0x4170=function(_0x5af9e9,_0x4e8cbe){_0x5af9e9=_0x5af9e9-0x0;let _0x417088=_0x4e8c[_0x5af9e9];return _0x417088;};import{throttle as _0x365e48}from'lodash-es';export default function Lt(_0x3e9987){const _0x1e55d9=_0x365e48(_0x3e9987,0x1e),_0x2a2485=new MutationObserver(_0x1fbfbc=>{for(const _0x2f13a1 of _0x1fbfbc)(_0x4170('0x2')==_0x2f13a1[_0x4170('0x6')]&&'class'==_0x2f13a1[_0x4170('0x0')]||_0x4170('0x1')==_0x2f13a1[_0x4170('0x6')])&&_0x1e55d9();});return{'attach'(_0x25ab4f){_0x2a2485[_0x4170('0x3')](_0x25ab4f,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x2a2485[_0x4170('0x5')](),_0x1e55d9[_0x4170('0x4')]();}};}
23
+ const _0x1496=['cancel','type','childList','class','attributes','disconnect','observe'];(function(_0x490815,_0x1496fc){const _0x398a98=function(_0x1eef63){while(--_0x1eef63){_0x490815['push'](_0x490815['shift']());}};_0x398a98(++_0x1496fc);}(_0x1496,0x197));const _0x398a=function(_0x490815,_0x1496fc){_0x490815=_0x490815-0x0;let _0x398a98=_0x1496[_0x490815];return _0x398a98;};import{throttle as _0x514bb3}from'lodash-es';export default function Lt(_0x1c6ff6){const _0x1b17c8=_0x514bb3(_0x1c6ff6,0x1e),_0x51363a=new MutationObserver(_0x3c6b96=>{for(const _0x3c1871 of _0x3c6b96)(_0x398a('0x3')==_0x3c1871[_0x398a('0x0')]&&_0x398a('0x2')==_0x3c1871['attributeName']||_0x398a('0x1')==_0x3c1871[_0x398a('0x0')])&&_0x1b17c8();});return{'attach'(_0x12f8e0){_0x51363a[_0x398a('0x5')](_0x12f8e0,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x51363a[_0x398a('0x4')](),_0x1b17c8[_0x398a('0x6')]();}};}