@ckeditor/ckeditor5-comments 38.0.0-rc.0 → 38.0.0-rc.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 _0xc561=['isConfirm','ck-annotation','extendTemplate','length','actionIndicator','ck-comment__info','actionBar','icon','addMany','children','attributes','_createDropdown','add','mouseleave','isEditMode','authoredAt','Remove','bindTemplate','isVisible','isRemovable','source','_attachActions','Edit','element','div','ck-comment--remove','ck-comment--edit','some','_model','change:isEnabled','switchToEditMode','_createRemoveButton','ck-comment__main','createCollection','threeVerticalDots','change:isVisible','placeholder','set','items','ck-comment','withText','importWord','_createCommentInputView','getUserViewNotificationText','author','listenTo','panelView','cancelConfirm','push','Reply...','change:isRemovable','time','ck-annotation__content-wrapper','ck-annotation__info-name','removeButton','ck-comment__actions','ck-comment__user','dropdown','edit','ck-annotation__info','userView','getTemplate','name','ck-annotation__main','bind','isSystemComment','formatDateTime','ck-comment__external','ck-annotation__info-time','editButton','_config','getExternalCommentNote','ck-comment--info','_createEditButton','buttonView','visibleView','isEditable','render','isEnabled','remove','ck-comment__info-time','resolvedAt','execute','removeComment','ck-annotation__actions--hidden','ck-comment__actions--hidden','label','span','isReadOnly','locale','then','Show\x20more\x20items','@external'];(function(_0x1921e2,_0xc5611e){const _0x3a8b6b=function(_0xb77491){while(--_0xb77491){_0x1921e2['push'](_0x1921e2['shift']());}};_0x3a8b6b(++_0xc5611e);}(_0xc561,0xcd));const _0x3a8b=function(_0x1921e2,_0xc5611e){_0x1921e2=_0x1921e2-0x0;let _0x3a8b6b=_0xc561[_0x1921e2];return _0x3a8b6b;};import{ButtonView as _0x410649,createDropdown as _0xdd1a86,ListView as _0xa7c8d5,ListItemView as _0x4a0a3b}from'ckeditor5/src/ui';import{icons as _0x2016c3}from'ckeditor5/src/core';import{UserView as _0x19a7f3,ConfirmMixin as _0x1b02ac}from'ckeditor5-collaboration/src/collaboration-core';import _0x3bd831 from'./basecommentview';import _0x36a0d2 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x5109fa}from'../../../utils/common-translations';export default class ut extends _0x1b02ac(_0x3bd831){constructor(_0x4e4302,_0x37544f,_0xf5d823){super(_0x4e4302,_0x37544f,_0xf5d823),this['set'](_0x3a8b('0x4e'),null),this[_0x3a8b('0x12')](_0x3a8b('0x11'),_0x5109fa(_0x4e4302,_0x3a8b('0x1e'))),this[_0x3a8b('0x2d')](_0x3a8b('0x59'))['to'](_0x37544f),this[_0x3a8b('0x2d')](_0x3a8b('0x3e'))['to'](_0x37544f),this[_0x3a8b('0x50')]=this[_0x3a8b('0xe')](),this[_0x3a8b('0x2e')]||(this[_0x3a8b('0x32')]=this['_createEditButton'](),this['removeButton']=this[_0x3a8b('0xc')](),this['items']=this[_0x3a8b('0xe')](),this['items'][_0x3a8b('0x52')]([this['editButton'],this[_0x3a8b('0x23')]]),this[_0x3a8b('0x26')]=this[_0x3a8b('0x55')](),this[_0x3a8b('0x50')][_0x3a8b('0x56')](this[_0x3a8b('0x26')])),this[_0x3a8b('0x29')]=new _0x19a7f3(_0x4e4302,_0x37544f[_0x3a8b('0x19')],this[_0x3a8b('0x18')]()),this[_0x3a8b('0x29')]['extendTemplate']({'attributes':{'class':[_0x3a8b('0x25'),'ck-annotation__user']}}),this[_0x3a8b('0x1a')](_0x37544f,_0x3a8b('0x1f'),()=>this[_0x3a8b('0x1c')]()),this['setTemplate'](this[_0x3a8b('0x2a')]());}[_0x3a8b('0x2a')](){const _0xa445d5=this[_0x3a8b('0x5b')],_0x5e9f50=[{'tag':_0x3a8b('0x5'),'attributes':{'class':[_0x3a8b('0x4f'),_0x3a8b('0x28')]},'children':[{'tag':_0x3a8b('0x44'),'children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name',_0x3a8b('0x22')]}},{'tag':_0x3a8b('0x20'),'attributes':{'datetime':_0xa445d5['to']('authoredAt'),'class':[_0x3a8b('0x3d'),_0x3a8b('0x31')]},'children':[{'text':_0xa445d5['to'](_0x3a8b('0x59'),_0x3c42fe=>this[_0x3a8b('0x33')][_0x3a8b('0x2f')](_0x3c42fe))}]}]},{'tag':_0x3a8b('0x5'),'attributes':{'class':[_0x3a8b('0x24'),'ck-annotation__actions',_0xa445d5['if']('isEditMode',_0x3a8b('0x42')),_0xa445d5['if'](_0x3a8b('0x58'),_0x3a8b('0x41'))]},'children':this[_0x3a8b('0x50')]},{'tag':_0x3a8b('0x5'),'attributes':{'class':[_0x3a8b('0x21')]},'children':this[_0x3a8b('0x38')]}];return this[_0x3a8b('0x9')]['isExternal']&&_0x5e9f50[_0x3a8b('0x1d')]({'tag':_0x3a8b('0x5'),'attributes':{'class':[_0x3a8b('0x30')]},'children':[{'text':this[_0x3a8b('0x34')]()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0xa445d5['if'](_0x3a8b('0x4a'),'ck-comment--remove-confirmation')],'tabindex':-0x1},'children':[{'tag':_0x3a8b('0x5'),'attributes':{'class':[_0x3a8b('0x14'),_0x3a8b('0x4b'),_0xa445d5['if'](_0x3a8b('0x58'),_0x3a8b('0x7')),_0xa445d5['if']('isSystemComment',_0x3a8b('0x35')),_0xa445d5['to']('actionIndicator',_0x407f57=>_0x407f57?'ck-comment--'+_0x407f57:'')],'data-author-id':this['_model'][_0x3a8b('0x19')]['id'],'data-comment-id':this[_0x3a8b('0x9')]['id']},'children':[this[_0x3a8b('0x29')],{'tag':_0x3a8b('0x5'),'attributes':{'class':[_0x3a8b('0xd'),_0x3a8b('0x2c')]},'children':_0x5e9f50}]}]};}[_0x3a8b('0x36')](){const _0x2b4c48=new _0x410649(this[_0x3a8b('0x46')]);return _0x2b4c48[_0x3a8b('0x43')]=_0x5109fa(this['locale'],_0x3a8b('0x3')),_0x2b4c48[_0x3a8b('0x51')]=_0x2016c3['pencil'],_0x2b4c48[_0x3a8b('0x15')]=!0x0,_0x2b4c48[_0x3a8b('0x4c')]({'attributes':{'class':_0x3a8b('0x7')}}),_0x2b4c48['bind'](_0x3a8b('0x3b'))['to'](this['_model'],'isReadOnly',_0x40e73b=>!_0x40e73b),_0x2b4c48[_0x3a8b('0x2d')](_0x3a8b('0x5c'))['to'](this[_0x3a8b('0x9')],_0x3a8b('0x39')),_0x2b4c48['on']('execute',()=>this[_0x3a8b('0xb')]()),_0x2b4c48;}['_createRemoveButton'](){const _0x477133=new _0x410649(this[_0x3a8b('0x46')]);return _0x477133[_0x3a8b('0x43')]=_0x5109fa(this[_0x3a8b('0x46')],_0x3a8b('0x5a')),_0x477133[_0x3a8b('0x51')]=_0x36a0d2,_0x477133[_0x3a8b('0x15')]=!0x0,_0x477133['extendTemplate']({'attributes':{'class':_0x3a8b('0x6')}}),_0x477133[_0x3a8b('0x2d')](_0x3a8b('0x3b'))['to'](this[_0x3a8b('0x9')],_0x3a8b('0x45'),_0x3cb959=>!_0x3cb959),_0x477133['bind'](_0x3a8b('0x5c'))['to'](this[_0x3a8b('0x9')],_0x3a8b('0x0')),_0x477133['on'](_0x3a8b('0x3f'),()=>{this['showConfirm'](_0x5109fa(this[_0x3a8b('0x46')],'Delete\x20comment?'),this[_0x3a8b('0x4')])[_0x3a8b('0x47')](()=>{this['fire'](_0x3a8b('0x40'),this[_0x3a8b('0x9')]['id']);});}),_0x477133;}[_0x3a8b('0x55')](){const _0x9b9cdb=_0xdd1a86(this[_0x3a8b('0x46')]),_0xc76dd9=_0x9b9cdb[_0x3a8b('0x1b')][_0x3a8b('0x53')],_0x110672=new _0xa7c8d5(this[_0x3a8b('0x46')]),_0x5e649e=(_0x2a9f7e,_0x4f8e93=-0x1)=>{const _0x299611=new _0x4a0a3b(this[_0x3a8b('0x46')]);_0x299611[_0x3a8b('0x53')]['add'](_0x2a9f7e);const _0x2b4830=_0x4f8e93>-0x1?_0x4f8e93:_0x110672[_0x3a8b('0x13')][_0x3a8b('0x4d')];_0x110672[_0x3a8b('0x13')][_0x3a8b('0x56')](_0x299611,_0x2b4830),_0x9b9cdb[_0x3a8b('0x1a')](_0x2a9f7e,_0x3a8b('0xa'),()=>{_0x9b9cdb[_0x3a8b('0x3b')]=[...this[_0x3a8b('0x13')]][_0x3a8b('0x8')](_0x4b7409=>_0x4b7409['isEnabled']);}),_0x9b9cdb[_0x3a8b('0x1a')](_0x2a9f7e,_0x3a8b('0x10'),()=>{_0x9b9cdb[_0x3a8b('0x37')]['isVisible']=[...this[_0x3a8b('0x13')]][_0x3a8b('0x8')](_0x439027=>_0x439027[_0x3a8b('0x5c')]);});};_0x9b9cdb['panelPosition']='sw',_0x9b9cdb[_0x3a8b('0x37')][_0x3a8b('0x12')]({'label':_0x5109fa(this['locale'],_0x3a8b('0x48')),'icon':_0x2016c3[_0x3a8b('0xf')]}),_0x9b9cdb['isEnabled']=[...this['items']][_0x3a8b('0x8')](_0x11f520=>_0x11f520['isEnabled']),_0x9b9cdb[_0x3a8b('0x37')][_0x3a8b('0x5c')]=[...this[_0x3a8b('0x13')]][_0x3a8b('0x8')](_0x442d46=>_0x442d46[_0x3a8b('0x5c')]);for(const _0x485e4c of this['items'])_0x5e649e(_0x485e4c);return _0xc76dd9[_0x3a8b('0x56')](_0x110672),_0x9b9cdb[_0x3a8b('0x1a')](this[_0x3a8b('0x13')],'add',(_0x1216be,_0x4b3d95,_0x2f465f)=>{_0x5e649e(_0x4b3d95,_0x2f465f);}),_0x9b9cdb[_0x3a8b('0x1a')](this[_0x3a8b('0x13')],_0x3a8b('0x3c'),(_0x4cca6c,_0x3836e7,_0x771bcc)=>{_0x110672['items'][_0x3a8b('0x3c')](_0x771bcc);}),_0x9b9cdb;}[_0x3a8b('0x2')](_0x5d2fef,_0x19e506){const _0x130f74=_0x5d2fef&&_0x5d2fef[_0x3a8b('0x4')];_0x130f74&&(this[_0x3a8b('0x1a')](_0x130f74,'mouseenter',()=>this[_0x3a8b('0x4e')]=_0x19e506),this[_0x3a8b('0x1a')](_0x130f74,'focus',()=>this[_0x3a8b('0x4e')]=_0x19e506),this[_0x3a8b('0x1a')](_0x130f74,_0x3a8b('0x57'),()=>this[_0x3a8b('0x4e')]=null),this[_0x3a8b('0x1a')](_0x130f74,'blur',()=>this[_0x3a8b('0x4e')]=null));}[_0x3a8b('0x17')](){const _0x498aaf=super[_0x3a8b('0x17')]();return _0x498aaf['bind'](_0x3a8b('0x11'))['to'](this),_0x498aaf;}[_0x3a8b('0x34')](){return _0x3a8b('0x16')===this['_model'][_0x3a8b('0x54')][_0x3a8b('0x49')]['source']?_0x5109fa(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):_0x5109fa(this[_0x3a8b('0x46')],'EXTERNAL_COMMENT');}[_0x3a8b('0x18')](){return this[_0x3a8b('0x9')]['isExternal']?_0x3a8b('0x16')===this['_model']['attributes'][_0x3a8b('0x49')][_0x3a8b('0x1')]?_0x5109fa(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this[_0x3a8b('0x9')]['creator'][_0x3a8b('0x2b')]):_0x5109fa(this['locale'],'EXTERNAL_AVATAR',this[_0x3a8b('0x9')]['creator'][_0x3a8b('0x2b')]):null;}[_0x3a8b('0x3a')](){super[_0x3a8b('0x3a')](),this['_attachActions'](this[_0x3a8b('0x32')],_0x3a8b('0x27')),this[_0x3a8b('0x2')](this[_0x3a8b('0x23')],'remove');}}
23
+ const _0x1f14=['render','Remove','ck-comment__info-time','div','isExternal','ck-comment--remove','label','isEnabled','some','ck-annotation__user','ck-annotation__info-name','buttonView','addMany','resolvedAt','createCollection','EXTERNAL_IMPORT_WORD_COMMENT','@external','actionBar','EXTERNAL_COMMENT','_config','execute','isEditMode','editButton','children','userView','mouseleave','dropdown','edit','ck-annotation__info','_createDropdown','push','icon','listenTo','ck-comment','threeVerticalDots','isReadOnly','add','ck-annotation__info-time','isConfirm','ck-annotation','getExternalCommentNote','getTemplate','isSystemComment','element','ck-annotation__actions','Edit','setTemplate','pencil','attributes','set','extendTemplate','_model','Delete\x20comment?','removeComment','locale','_createCommentInputView','ck-comment--edit','getUserViewNotificationText','remove','items','ck-comment__info-name','change:isVisible','creator','isRemovable','ck-comment--remove-confirmation','_attachActions','bind','ck-comment__external','ck-comment__main','source','fire','ck-comment--','formatDateTime','_createRemoveButton','switchToEditMode','isVisible','importWord','withText','actionIndicator','author','ck-comment__actions','blur','placeholder','ck-annotation__actions--hidden','span','EXTERNAL_AVATAR','name','authoredAt','Show\x20more\x20items','EXTERNAL_IMPORT_WORD_AVATAR','ck-annotation__main','removeButton','change:isEnabled','ck-comment__info'];(function(_0x5a86e5,_0x1f1425){const _0x4e247f=function(_0x1b5107){while(--_0x1b5107){_0x5a86e5['push'](_0x5a86e5['shift']());}};_0x4e247f(++_0x1f1425);}(_0x1f14,0x1e0));const _0x4e24=function(_0x5a86e5,_0x1f1425){_0x5a86e5=_0x5a86e5-0x0;let _0x4e247f=_0x1f14[_0x5a86e5];return _0x4e247f;};import{ButtonView as _0x5ee641,createDropdown as _0xc5467f,ListView as _0x28e1d8,ListItemView as _0x2c5eed}from'ckeditor5/src/ui';import{icons as _0x579628}from'ckeditor5/src/core';import{UserView as _0x770e51,ConfirmMixin as _0x46ba21}from'ckeditor5-collaboration/src/collaboration-core';import _0xef0f62 from'./basecommentview';import _0x5a133a from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x177691}from'../../../utils/common-translations';export default class q extends _0x46ba21(_0xef0f62){constructor(_0xcb827f,_0x3c2815,_0x3d5303){super(_0xcb827f,_0x3c2815,_0x3d5303),this[_0x4e24('0x27')](_0x4e24('0x44'),null),this[_0x4e24('0x27')](_0x4e24('0x48'),_0x177691(_0xcb827f,'Reply...')),this[_0x4e24('0x38')]('authoredAt')['to'](_0x3c2815),this[_0x4e24('0x38')](_0x4e24('0x3'))['to'](_0x3c2815),this[_0x4e24('0x7')]=this[_0x4e24('0x4')](),this[_0x4e24('0x20')]||(this[_0x4e24('0xc')]=this['_createEditButton'](),this['removeButton']=this[_0x4e24('0x3f')](),this[_0x4e24('0x31')]=this[_0x4e24('0x4')](),this[_0x4e24('0x31')][_0x4e24('0x2')]([this[_0x4e24('0xc')],this[_0x4e24('0x51')]]),this[_0x4e24('0x10')]=this['_createDropdown'](),this[_0x4e24('0x7')][_0x4e24('0x1a')](this['dropdown'])),this[_0x4e24('0xe')]=new _0x770e51(_0xcb827f,_0x3c2815['author'],this['getUserViewNotificationText']()),this['userView'][_0x4e24('0x28')]({'attributes':{'class':['ck-comment__user',_0x4e24('0x5d')]}}),this[_0x4e24('0x16')](_0x3c2815,'change:isRemovable',()=>this['cancelConfirm']()),this[_0x4e24('0x24')](this[_0x4e24('0x1f')]());}['getTemplate'](){const _0xc81e4f=this['bindTemplate'],_0x20e495=[{'tag':'div','attributes':{'class':[_0x4e24('0x53'),_0x4e24('0x12')]},'children':[{'tag':_0x4e24('0x4a'),'children':[{'text':this[_0x4e24('0xe')][_0x4e24('0x4c')]}],'attributes':{'class':[_0x4e24('0x32'),_0x4e24('0x0')]}},{'tag':'time','attributes':{'datetime':_0xc81e4f['to']('authoredAt'),'class':[_0x4e24('0x56'),_0x4e24('0x1b')]},'children':[{'text':_0xc81e4f['to'](_0x4e24('0x4d'),_0x3d1798=>this[_0x4e24('0x9')][_0x4e24('0x3e')](_0x3d1798))}]}]},{'tag':_0x4e24('0x57'),'attributes':{'class':[_0x4e24('0x46'),_0x4e24('0x22'),_0xc81e4f['if']('isEditMode','ck-comment__actions--hidden'),_0xc81e4f['if'](_0x4e24('0xb'),_0x4e24('0x49'))]},'children':this['actionBar']},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']},'children':this['visibleView']}];return this[_0x4e24('0x29')][_0x4e24('0x58')]&&_0x20e495[_0x4e24('0x14')]({'tag':_0x4e24('0x57'),'attributes':{'class':[_0x4e24('0x39')]},'children':[{'text':this[_0x4e24('0x1e')]()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0xc81e4f['if'](_0x4e24('0x1c'),_0x4e24('0x36'))],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':[_0x4e24('0x17'),_0x4e24('0x1d'),_0xc81e4f['if']('isEditMode',_0x4e24('0x2e')),_0xc81e4f['if']('isSystemComment','ck-comment--info'),_0xc81e4f['to'](_0x4e24('0x44'),_0x180ca8=>_0x180ca8?_0x4e24('0x3d')+_0x180ca8:'')],'data-author-id':this['_model'][_0x4e24('0x45')]['id'],'data-comment-id':this[_0x4e24('0x29')]['id']},'children':[this['userView'],{'tag':_0x4e24('0x57'),'attributes':{'class':[_0x4e24('0x3a'),_0x4e24('0x50')]},'children':_0x20e495}]}]};}['_createEditButton'](){const _0x447423=new _0x5ee641(this[_0x4e24('0x2c')]);return _0x447423[_0x4e24('0x5a')]=_0x177691(this['locale'],_0x4e24('0x23')),_0x447423[_0x4e24('0x15')]=_0x579628[_0x4e24('0x25')],_0x447423[_0x4e24('0x43')]=!0x0,_0x447423['extendTemplate']({'attributes':{'class':_0x4e24('0x2e')}}),_0x447423[_0x4e24('0x38')]('isEnabled')['to'](this[_0x4e24('0x29')],'isReadOnly',_0x25bc39=>!_0x25bc39),_0x447423[_0x4e24('0x38')]('isVisible')['to'](this['_model'],'isEditable'),_0x447423['on'](_0x4e24('0xa'),()=>this[_0x4e24('0x40')]()),_0x447423;}['_createRemoveButton'](){const _0x5cb304=new _0x5ee641(this[_0x4e24('0x2c')]);return _0x5cb304[_0x4e24('0x5a')]=_0x177691(this['locale'],_0x4e24('0x55')),_0x5cb304['icon']=_0x5a133a,_0x5cb304[_0x4e24('0x43')]=!0x0,_0x5cb304[_0x4e24('0x28')]({'attributes':{'class':_0x4e24('0x59')}}),_0x5cb304['bind']('isEnabled')['to'](this['_model'],_0x4e24('0x19'),_0x123363=>!_0x123363),_0x5cb304['bind'](_0x4e24('0x41'))['to'](this['_model'],_0x4e24('0x35')),_0x5cb304['on']('execute',()=>{this['showConfirm'](_0x177691(this[_0x4e24('0x2c')],_0x4e24('0x2a')),this[_0x4e24('0x21')])['then'](()=>{this[_0x4e24('0x3c')](_0x4e24('0x2b'),this[_0x4e24('0x29')]['id']);});}),_0x5cb304;}[_0x4e24('0x13')](){const _0x3aa78a=_0xc5467f(this[_0x4e24('0x2c')]),_0x48c07a=_0x3aa78a['panelView'][_0x4e24('0xd')],_0x39de88=new _0x28e1d8(this[_0x4e24('0x2c')]),_0x4b34db=(_0x17c2e6,_0x563c26=-0x1)=>{const _0x184ef3=new _0x2c5eed(this[_0x4e24('0x2c')]);_0x184ef3[_0x4e24('0xd')][_0x4e24('0x1a')](_0x17c2e6);const _0x132db3=_0x563c26>-0x1?_0x563c26:_0x39de88[_0x4e24('0x31')]['length'];_0x39de88['items'][_0x4e24('0x1a')](_0x184ef3,_0x132db3),_0x3aa78a[_0x4e24('0x16')](_0x17c2e6,_0x4e24('0x52'),()=>{_0x3aa78a[_0x4e24('0x5b')]=[...this[_0x4e24('0x31')]][_0x4e24('0x5c')](_0x456113=>_0x456113[_0x4e24('0x5b')]);}),_0x3aa78a[_0x4e24('0x16')](_0x17c2e6,_0x4e24('0x33'),()=>{_0x3aa78a['buttonView'][_0x4e24('0x41')]=[...this[_0x4e24('0x31')]][_0x4e24('0x5c')](_0x4334cd=>_0x4334cd[_0x4e24('0x41')]);});};_0x3aa78a['panelPosition']='sw',_0x3aa78a[_0x4e24('0x1')][_0x4e24('0x27')]({'label':_0x177691(this[_0x4e24('0x2c')],_0x4e24('0x4e')),'icon':_0x579628[_0x4e24('0x18')]}),_0x3aa78a[_0x4e24('0x5b')]=[...this[_0x4e24('0x31')]][_0x4e24('0x5c')](_0x4baec0=>_0x4baec0[_0x4e24('0x5b')]),_0x3aa78a[_0x4e24('0x1')][_0x4e24('0x41')]=[...this[_0x4e24('0x31')]][_0x4e24('0x5c')](_0x51790f=>_0x51790f[_0x4e24('0x41')]);for(const _0x2a224a of this[_0x4e24('0x31')])_0x4b34db(_0x2a224a);return _0x48c07a[_0x4e24('0x1a')](_0x39de88),_0x3aa78a[_0x4e24('0x16')](this['items'],_0x4e24('0x1a'),(_0x4e68e2,_0x4e28cf,_0x20b583)=>{_0x4b34db(_0x4e28cf,_0x20b583);}),_0x3aa78a[_0x4e24('0x16')](this[_0x4e24('0x31')],_0x4e24('0x30'),(_0x34b60a,_0x18a68e,_0x5cc101)=>{_0x39de88[_0x4e24('0x31')][_0x4e24('0x30')](_0x5cc101);}),_0x3aa78a;}[_0x4e24('0x37')](_0x200433,_0x30aced){const _0x253c3f=_0x200433&&_0x200433[_0x4e24('0x21')];_0x253c3f&&(this['listenTo'](_0x253c3f,'mouseenter',()=>this[_0x4e24('0x44')]=_0x30aced),this[_0x4e24('0x16')](_0x253c3f,'focus',()=>this['actionIndicator']=_0x30aced),this[_0x4e24('0x16')](_0x253c3f,_0x4e24('0xf'),()=>this[_0x4e24('0x44')]=null),this[_0x4e24('0x16')](_0x253c3f,_0x4e24('0x47'),()=>this[_0x4e24('0x44')]=null));}[_0x4e24('0x2d')](){const _0x1071b2=super[_0x4e24('0x2d')]();return _0x1071b2[_0x4e24('0x38')](_0x4e24('0x48'))['to'](this),_0x1071b2;}[_0x4e24('0x1e')](){return'importWord'===this[_0x4e24('0x29')][_0x4e24('0x26')][_0x4e24('0x6')][_0x4e24('0x3b')]?_0x177691(this['locale'],_0x4e24('0x5')):_0x177691(this[_0x4e24('0x2c')],_0x4e24('0x8'));}[_0x4e24('0x2f')](){return this['_model'][_0x4e24('0x58')]?_0x4e24('0x42')===this[_0x4e24('0x29')][_0x4e24('0x26')][_0x4e24('0x6')][_0x4e24('0x3b')]?_0x177691(this[_0x4e24('0x2c')],_0x4e24('0x4f'),this[_0x4e24('0x29')][_0x4e24('0x34')][_0x4e24('0x4c')]):_0x177691(this['locale'],_0x4e24('0x4b'),this['_model'][_0x4e24('0x34')][_0x4e24('0x4c')]):null;}[_0x4e24('0x54')](){super[_0x4e24('0x54')](),this[_0x4e24('0x37')](this[_0x4e24('0xc')],_0x4e24('0x11')),this[_0x4e24('0x37')](this[_0x4e24('0x51')],_0x4e24('0x30'));}}
package/src/comments.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4d73=['requires','pluginName','Comments'];(function(_0x5c81ac,_0x4d7374){var _0x44d59d=function(_0x43ae65){while(--_0x43ae65){_0x5c81ac['push'](_0x5c81ac['shift']());}};_0x44d59d(++_0x4d7374);}(_0x4d73,0x1e8));var _0x44d5=function(_0x5c81ac,_0x4d7374){_0x5c81ac=_0x5c81ac-0x0;var _0x44d59d=_0x4d73[_0x5c81ac];return _0x44d59d;};import{Plugin as _0x1ead23}from'ckeditor5/src/core';import _0x5f3c5f from'./comments/commentsrepository';import _0x54bf10 from'./comments/commentsediting';import _0x4c96b5 from'./comments/commentsui';import _0x35b930 from'./commentsonly';import _0x1231f7 from'./annotations/widesidebar';import _0x3c59ff from'./annotations/narrowsidebar';import _0x50a7ce from'./annotations/inlineannotations';import _0x3ef86d from'./comments/commentsarchiveui';import _0x3579da from'./comments/commentsarchive';export default class f extends _0x1ead23{static get[_0x44d5('0x1')](){return[_0x5f3c5f,_0x54bf10,_0x4c96b5,_0x3579da,_0x3ef86d,_0x35b930,_0x1231f7,_0x3c59ff,_0x50a7ce];}static get[_0x44d5('0x2')](){return _0x44d5('0x0');}}
23
+ var _0x3052=['requires','pluginName'];(function(_0x5bb6ee,_0x305243){var _0x200e0d=function(_0x5889df){while(--_0x5889df){_0x5bb6ee['push'](_0x5bb6ee['shift']());}};_0x200e0d(++_0x305243);}(_0x3052,0x1e5));var _0x200e=function(_0x5bb6ee,_0x305243){_0x5bb6ee=_0x5bb6ee-0x0;var _0x200e0d=_0x3052[_0x5bb6ee];return _0x200e0d;};import{Plugin as _0x20adae}from'ckeditor5/src/core';import _0x54dbca from'./comments/commentsrepository';import _0x5f45c5 from'./comments/commentsediting';import _0x5f091d from'./comments/commentsui';import _0x25accb from'./commentsonly';import _0xc5de6e from'./annotations/widesidebar';import _0x40da50 from'./annotations/narrowsidebar';import _0x30a11f from'./annotations/inlineannotations';import _0x502b45 from'./comments/commentsarchiveui';import _0x171bd5 from'./comments/commentsarchive';export default class f extends _0x20adae{static get[_0x200e('0x1')](){return[_0x54dbca,_0x5f45c5,_0x5f091d,_0x171bd5,_0x502b45,_0x25accb,_0xc5de6e,_0x40da50,_0x30a11f];}static get[_0x200e('0x0')](){return'Comments';}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x36e0=['clipboardInput','forceDisabled','listenTo','highest','requires','plugins','affectsData','config','_enableCommentsOnlyMode','editing','commentsOnlyMode','_disableCommentsOnlyMode','stopListening','isEnabled','set','stop','clearForceDisabled','DragDrop','editor','document','commands','addCommentThread','cut','change:isEnabled','commentsOnly','pluginName'];(function(_0x4d5c43,_0x36e0dd){const _0x318c34=function(_0x25bc5d){while(--_0x25bc5d){_0x4d5c43['push'](_0x4d5c43['shift']());}};_0x318c34(++_0x36e0dd);}(_0x36e0,0x1a9));const _0x318c=function(_0x4d5c43,_0x36e0dd){_0x4d5c43=_0x4d5c43-0x0;let _0x318c34=_0x36e0[_0x4d5c43];return _0x318c34;};import{Plugin as _0x3dc6b0}from'ckeditor5/src/core';import _0x2fad0a from'./comments/commentsediting';export default class n extends _0x3dc6b0{static get[_0x318c('0x10')](){return'CommentsOnly';}static get[_0x318c('0x15')](){return[_0x2fad0a];}constructor(_0x23f7d7){super(_0x23f7d7),this[_0x318c('0x5')](_0x318c('0x4'),!0x1),this['on'](_0x318c('0xe'),(_0x32f4d5,_0x21c047,_0x3d322c)=>{_0x3d322c?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this[_0x318c('0x4')]&&this[_0x318c('0x9')][_0x318c('0x18')]['get'](_0x318c('0xf'))&&(this['isEnabled']=!0x0);}[_0x318c('0x19')](){for(const [_0x2fcff1,_0x4c9331]of this['editor'][_0x318c('0xb')])_0x4c9331[_0x318c('0x17')]&&_0x318c('0xc')!==_0x2fcff1&&_0x4c9331[_0x318c('0x12')](_0x318c('0x1'));this[_0x318c('0x9')][_0x318c('0x16')]['has'](_0x318c('0x8'))&&this['editor'][_0x318c('0x16')]['get']('DragDrop')['forceDisabled'](_0x318c('0x1'));const _0x156b40=this[_0x318c('0x9')]['editing']['view'][_0x318c('0xa')];this[_0x318c('0x13')](_0x156b40,_0x318c('0xd'),_0x100797=>_0x100797[_0x318c('0x6')](),{'priority':_0x318c('0x14')}),this[_0x318c('0x13')](_0x156b40,_0x318c('0x11'),_0x2bfb27=>_0x2bfb27['stop'](),{'priority':_0x318c('0x14')}),this[_0x318c('0x13')](_0x156b40,'delete',_0x2bef7c=>_0x2bef7c[_0x318c('0x6')](),{'priority':_0x318c('0x14')});}[_0x318c('0x2')](){for(const [_0xf1bf33,_0x3ebe83]of this[_0x318c('0x9')][_0x318c('0xb')])_0x3ebe83[_0x318c('0x17')]&&_0x318c('0xc')!==_0xf1bf33&&_0x3ebe83[_0x318c('0x7')](_0x318c('0x1'));this[_0x318c('0x3')](this['editor'][_0x318c('0x0')]['view'][_0x318c('0xa')]);}}
23
+ const _0x3894=['isEnabled','commands','addCommentThread','editor','stopListening','editing','listenTo','commentsOnly','config','_disableCommentsOnlyMode','plugins','commentsOnlyMode','has','clipboardInput','view','get','clearForceDisabled','requires','forceDisabled','stop','_enableCommentsOnlyMode','document','DragDrop','change:isEnabled','delete','affectsData','set','afterInit'];(function(_0x5cc9a9,_0x389481){const _0x1e4514=function(_0xa3816e){while(--_0xa3816e){_0x5cc9a9['push'](_0x5cc9a9['shift']());}};_0x1e4514(++_0x389481);}(_0x3894,0x1ea));const _0x1e45=function(_0x5cc9a9,_0x389481){_0x5cc9a9=_0x5cc9a9-0x0;let _0x1e4514=_0x3894[_0x5cc9a9];return _0x1e4514;};import{Plugin as _0xb6c723}from'ckeditor5/src/core';import _0x404093 from'./comments/commentsediting';export default class n extends _0xb6c723{static get['pluginName'](){return'CommentsOnly';}static get[_0x1e45('0x3')](){return[_0x404093];}constructor(_0x26100f){super(_0x26100f),this[_0x1e45('0xc')](_0x1e45('0xe'),!0x1),this['on'](_0x1e45('0x9'),(_0x35402f,_0xaf61ab,_0x40b9e2)=>{_0x40b9e2?this[_0x1e45('0x6')]():this[_0x1e45('0x17')]();});}[_0x1e45('0xd')](){!this['isEnabled']&&this[_0x1e45('0x11')][_0x1e45('0x16')][_0x1e45('0x1')](_0x1e45('0x15'))&&(this[_0x1e45('0xe')]=!0x0);}[_0x1e45('0x6')](){for(const [_0x20755b,_0x344abb]of this[_0x1e45('0x11')][_0x1e45('0xf')])_0x344abb[_0x1e45('0xb')]&&_0x1e45('0x10')!==_0x20755b&&_0x344abb[_0x1e45('0x4')](_0x1e45('0x19'));this['editor'][_0x1e45('0x18')][_0x1e45('0x1a')]('DragDrop')&&this[_0x1e45('0x11')][_0x1e45('0x18')][_0x1e45('0x1')](_0x1e45('0x8'))['forceDisabled'](_0x1e45('0x19'));const _0x33aafa=this[_0x1e45('0x11')][_0x1e45('0x13')]['view'][_0x1e45('0x7')];this[_0x1e45('0x14')](_0x33aafa,'cut',_0x4d9fb3=>_0x4d9fb3[_0x1e45('0x5')](),{'priority':'highest'}),this['listenTo'](_0x33aafa,_0x1e45('0x1b'),_0x2063dc=>_0x2063dc[_0x1e45('0x5')](),{'priority':'highest'}),this['listenTo'](_0x33aafa,_0x1e45('0xa'),_0x2618c4=>_0x2618c4['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x1e3171,_0x263ce0]of this[_0x1e45('0x11')][_0x1e45('0xf')])_0x263ce0[_0x1e45('0xb')]&&'addCommentThread'!==_0x1e3171&&_0x263ce0[_0x1e45('0x2')](_0x1e45('0x19'));this[_0x1e45('0x12')](this[_0x1e45('0x11')]['editing'][_0x1e45('0x0')]['document']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x5d86f9,_0x406380,_0x431430){const t=_0x5d86f9['t'];switch(_0x406380){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'},_0x431430);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'},_0x431430);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'},_0x431430);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'},_0x431430);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(_0x27f309,_0x4918f7,_0x22c36a){const t=_0x27f309['t'];switch(_0x4918f7){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'},_0x22c36a);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'},_0x22c36a);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'},_0x22c36a);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'},_0x22c36a);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 _0x4841=['type','childList','class','observe','attributeName','disconnect'];(function(_0x69792a,_0x48419c){const _0x3c26ff=function(_0x97aec7){while(--_0x97aec7){_0x69792a['push'](_0x69792a['shift']());}};_0x3c26ff(++_0x48419c);}(_0x4841,0x7f));const _0x3c26=function(_0x69792a,_0x48419c){_0x69792a=_0x69792a-0x0;let _0x3c26ff=_0x4841[_0x69792a];return _0x3c26ff;};import{throttle as _0xef00ca}from'lodash-es';export default function Lt(_0x36b9c5){const _0x10da92=_0xef00ca(_0x36b9c5,0x1e),_0x557a27=new MutationObserver(_0x365294=>{for(const _0x141392 of _0x365294)('attributes'==_0x141392[_0x3c26('0x5')]&&_0x3c26('0x1')==_0x141392[_0x3c26('0x3')]||_0x3c26('0x0')==_0x141392[_0x3c26('0x5')])&&_0x10da92();});return{'attach'(_0x5368ea){_0x557a27[_0x3c26('0x2')](_0x5368ea,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x557a27[_0x3c26('0x4')](),_0x10da92['cancel']();}};}
23
+ const _0x5c1e=['attributes','type','cancel','disconnect','attributeName'];(function(_0x3cfd7d,_0x5c1ed2){const _0x335e96=function(_0x372981){while(--_0x372981){_0x3cfd7d['push'](_0x3cfd7d['shift']());}};_0x335e96(++_0x5c1ed2);}(_0x5c1e,0x164));const _0x335e=function(_0x3cfd7d,_0x5c1ed2){_0x3cfd7d=_0x3cfd7d-0x0;let _0x335e96=_0x5c1e[_0x3cfd7d];return _0x335e96;};import{throttle as _0x242a84}from'lodash-es';export default function st(_0x2e5162){const _0x185693=_0x242a84(_0x2e5162,0x1e),_0x47d22a=new MutationObserver(_0x4fbb3e=>{for(const _0x42036c of _0x4fbb3e)(_0x335e('0x4')==_0x42036c['type']&&'class'==_0x42036c[_0x335e('0x3')]||'childList'==_0x42036c[_0x335e('0x0')])&&_0x185693();});return{'attach'(_0x13cde2){_0x47d22a['observe'](_0x13cde2,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x47d22a[_0x335e('0x2')](),_0x185693[_0x335e('0x1')]();}};}