@ckeditor/ckeditor5-comments 0.0.0-nightly-20231218.0 → 0.0.0-nightly-20231220.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 +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 _0x2aec=['addMany','editButton','bindTemplate','_createEditButton','ck-comment__info-name','ck-comment','isExternal','listenTo','EXTERNAL_COMMENT','getUserViewNotificationText','bind','removeButton','div','focus','withText','element','push','cancelConfirm','dropdown','length','_attachActions','some','authoredAt','formatDateTime','ck-comment__wrapper','importWord','isEditMode','ck-annotation__info','getTemplate','blur','isEditable','execute','EXTERNAL_AVATAR','fire','label','_model','_config','ck-comment__info-time','span','ck-comment__main','Show\x20more\x20items','isSystemComment','change:isVisible','ck-comment__actions','ck-comment--edit','isVisible','panelPosition','extendTemplate','add','change:isEnabled','set','ck-annotation__info-name','createCollection','_createDropdown','attributes','edit','Edit','isEnabled','render','panelView','mouseleave','placeholder','buttonView','ck-annotation__content-wrapper','remove','ck-annotation__user','author','ck-annotation__info-time','EXTERNAL_IMPORT_WORD_AVATAR','showConfirm','mouseenter','switchToEditMode','Delete\x20comment?','isReadOnly','isRemovable','locale','_createRemoveButton','name','Reply...','pencil','visibleView','userView','change:isRemovable','actionIndicator','ck-comment__user','_createCommentInputView','time','actionBar','ck-comment--','children','resolvedAt','ck-annotation__actions','items','ck-comment__info','icon','isConfirm','Remove','@external','threeVerticalDots','getExternalCommentNote','source'];(function(_0x2f5685,_0x2aecf3){const _0x553384=function(_0x4e1460){while(--_0x4e1460){_0x2f5685['push'](_0x2f5685['shift']());}};_0x553384(++_0x2aecf3);}(_0x2aec,0x12b));const _0x5533=function(_0x2f5685,_0x2aecf3){_0x2f5685=_0x2f5685-0x0;let _0x553384=_0x2aec[_0x2f5685];return _0x553384;};import{ButtonView as _0x32ea6c,createDropdown as _0x58ce66,ListView as _0x4ecc9d,ListItemView as _0x4ab384}from'ckeditor5/src/ui.js';import{icons as _0x2ff764}from'ckeditor5/src/core.js';import{UserView as _0x547097,ConfirmMixin as _0x2e66b1}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x229b16 from'./basecommentview.js';import _0x35d9d6 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x39d847}from'../../../utils/common-translations.js';export default class pt extends _0x2e66b1(_0x229b16){constructor(_0x4aa328,_0x3d554a,_0x1977c5){super(_0x4aa328,_0x3d554a,_0x1977c5),this[_0x5533('0x36')](_0x5533('0x57'),null),this['set'](_0x5533('0x41'),_0x39d847(_0x4aa328,_0x5533('0x52'))),this[_0x5533('0xe')]('authoredAt')['to'](_0x3d554a),this['bind'](_0x5533('0x5e'))['to'](_0x3d554a),this[_0x5533('0x5b')]=this[_0x5533('0x38')](),this[_0x5533('0x2d')]||(this[_0x5533('0x5')]=this['_createEditButton'](),this[_0x5533('0xf')]=this['_createRemoveButton'](),this[_0x5533('0x60')]=this[_0x5533('0x38')](),this[_0x5533('0x60')][_0x5533('0x4')]([this['editButton'],this['removeButton']]),this[_0x5533('0x16')]=this[_0x5533('0x39')](),this[_0x5533('0x5b')][_0x5533('0x34')](this[_0x5533('0x16')])),this['userView']=new _0x547097(_0x4aa328,_0x3d554a[_0x5533('0x46')],this[_0x5533('0xd')]()),this[_0x5533('0x55')][_0x5533('0x33')]({'attributes':{'class':[_0x5533('0x58'),_0x5533('0x45')]}}),this['listenTo'](_0x3d554a,_0x5533('0x56'),()=>this[_0x5533('0x15')]()),this['setTemplate'](this[_0x5533('0x20')]());}[_0x5533('0x20')](){const _0x378fd2=this[_0x5533('0x6')],_0x232fb1=[{'tag':_0x5533('0x10'),'attributes':{'class':[_0x5533('0x61'),_0x5533('0x1f')]},'children':[{'tag':_0x5533('0x2a'),'children':[{'text':this[_0x5533('0x55')][_0x5533('0x51')]}],'attributes':{'class':[_0x5533('0x8'),_0x5533('0x37')]}},{'tag':_0x5533('0x5a'),'attributes':{'datetime':_0x378fd2['to'](_0x5533('0x1a')),'class':[_0x5533('0x29'),_0x5533('0x47')]},'children':[{'text':_0x378fd2['to'](_0x5533('0x1a'),_0x507066=>this[_0x5533('0x28')][_0x5533('0x1b')](_0x507066))}]}]},{'tag':_0x5533('0x10'),'attributes':{'class':[_0x5533('0x2f'),_0x5533('0x5f'),_0x378fd2['if'](_0x5533('0x1e'),'ck-comment__actions--hidden'),_0x378fd2['if'](_0x5533('0x1e'),'ck-annotation__actions--hidden')]},'children':this['actionBar']},{'tag':_0x5533('0x10'),'attributes':{'class':[_0x5533('0x43')]},'children':this[_0x5533('0x54')]}];return this['_model']['isExternal']&&_0x232fb1[_0x5533('0x14')]({'tag':_0x5533('0x10'),'attributes':{'class':['ck-comment__external']},'children':[{'text':this[_0x5533('0x2')]()}]}),{'tag':'li','attributes':{'class':[_0x5533('0x1c'),_0x378fd2['if'](_0x5533('0x63'),'ck-comment--remove-confirmation')],'tabindex':-0x1},'children':[{'tag':_0x5533('0x10'),'attributes':{'class':[_0x5533('0x9'),'ck-annotation',_0x378fd2['if'](_0x5533('0x1e'),_0x5533('0x30')),_0x378fd2['if']('isSystemComment','ck-comment--info'),_0x378fd2['to'](_0x5533('0x57'),_0x182ef4=>_0x182ef4?_0x5533('0x5c')+_0x182ef4:'')],'data-author-id':this[_0x5533('0x27')][_0x5533('0x46')]['id'],'data-comment-id':this['_model']['id']},'children':[this['userView'],{'tag':_0x5533('0x10'),'attributes':{'class':[_0x5533('0x2b'),'ck-annotation__main']},'children':_0x232fb1}]}]};}[_0x5533('0x7')](){const _0x2c2fe3=new _0x32ea6c(this[_0x5533('0x4f')]);return _0x2c2fe3[_0x5533('0x26')]=_0x39d847(this['locale'],_0x5533('0x3c')),_0x2c2fe3['icon']=_0x2ff764[_0x5533('0x53')],_0x2c2fe3[_0x5533('0x12')]=!0x0,_0x2c2fe3[_0x5533('0x33')]({'attributes':{'class':_0x5533('0x30')}}),_0x2c2fe3[_0x5533('0xe')](_0x5533('0x3d'))['to'](this[_0x5533('0x27')],_0x5533('0x4d'),_0x5c3df2=>!_0x5c3df2),_0x2c2fe3[_0x5533('0xe')](_0x5533('0x31'))['to'](this['_model'],_0x5533('0x22')),_0x2c2fe3['on']('execute',()=>this[_0x5533('0x4b')]()),_0x2c2fe3;}[_0x5533('0x50')](){const _0x4f6ff1=new _0x32ea6c(this[_0x5533('0x4f')]);return _0x4f6ff1[_0x5533('0x26')]=_0x39d847(this[_0x5533('0x4f')],_0x5533('0x64')),_0x4f6ff1[_0x5533('0x62')]=_0x35d9d6,_0x4f6ff1[_0x5533('0x12')]=!0x0,_0x4f6ff1[_0x5533('0x33')]({'attributes':{'class':'ck-comment--remove'}}),_0x4f6ff1[_0x5533('0xe')](_0x5533('0x3d'))['to'](this[_0x5533('0x27')],_0x5533('0x4d'),_0x26df83=>!_0x26df83),_0x4f6ff1['bind']('isVisible')['to'](this[_0x5533('0x27')],_0x5533('0x4e')),_0x4f6ff1['on'](_0x5533('0x23'),()=>{this[_0x5533('0x49')](_0x39d847(this[_0x5533('0x4f')],_0x5533('0x4c')),this['element'])['then'](()=>{this[_0x5533('0x25')]('removeComment',this[_0x5533('0x27')]['id']);});}),_0x4f6ff1;}[_0x5533('0x39')](){const _0x320fbc=_0x58ce66(this[_0x5533('0x4f')]),_0x4c2359=_0x320fbc[_0x5533('0x3f')][_0x5533('0x5d')],_0x49e27a=new _0x4ecc9d(this[_0x5533('0x4f')]),_0x510ad9=(_0x3660c7,_0x1fc3d2=-0x1)=>{const _0x15ee66=new _0x4ab384(this[_0x5533('0x4f')]);_0x15ee66[_0x5533('0x5d')][_0x5533('0x34')](_0x3660c7);const _0xd27de2=_0x1fc3d2>-0x1?_0x1fc3d2:_0x49e27a[_0x5533('0x60')][_0x5533('0x17')];_0x49e27a[_0x5533('0x60')][_0x5533('0x34')](_0x15ee66,_0xd27de2),_0x320fbc['listenTo'](_0x3660c7,_0x5533('0x35'),()=>{_0x320fbc[_0x5533('0x3d')]=[...this[_0x5533('0x60')]][_0x5533('0x19')](_0x4b7a7e=>_0x4b7a7e['isEnabled']);}),_0x320fbc[_0x5533('0xb')](_0x3660c7,_0x5533('0x2e'),()=>{_0x320fbc[_0x5533('0x42')]['isVisible']=[...this[_0x5533('0x60')]]['some'](_0x24af8a=>_0x24af8a[_0x5533('0x31')]);});};_0x320fbc[_0x5533('0x32')]='sw',_0x320fbc['buttonView'][_0x5533('0x36')]({'label':_0x39d847(this[_0x5533('0x4f')],_0x5533('0x2c')),'icon':_0x2ff764[_0x5533('0x1')]}),_0x320fbc['isEnabled']=[...this[_0x5533('0x60')]][_0x5533('0x19')](_0xccdeb3=>_0xccdeb3[_0x5533('0x3d')]),_0x320fbc[_0x5533('0x42')][_0x5533('0x31')]=[...this[_0x5533('0x60')]][_0x5533('0x19')](_0x44ac6d=>_0x44ac6d[_0x5533('0x31')]);for(const _0x5b6c75 of this[_0x5533('0x60')])_0x510ad9(_0x5b6c75);return _0x4c2359[_0x5533('0x34')](_0x49e27a),_0x320fbc[_0x5533('0xb')](this[_0x5533('0x60')],'add',(_0x2e936e,_0xdd27cb,_0x4a99ba)=>{_0x510ad9(_0xdd27cb,_0x4a99ba);}),_0x320fbc['listenTo'](this[_0x5533('0x60')],_0x5533('0x44'),(_0x4115cf,_0x54835b,_0x4982bf)=>{_0x49e27a[_0x5533('0x60')][_0x5533('0x44')](_0x4982bf);}),_0x320fbc;}[_0x5533('0x18')](_0x43c63a,_0x5982ae){const _0x268dcc=_0x43c63a&&_0x43c63a[_0x5533('0x13')];_0x268dcc&&(this[_0x5533('0xb')](_0x268dcc,_0x5533('0x4a'),()=>this[_0x5533('0x57')]=_0x5982ae),this[_0x5533('0xb')](_0x268dcc,_0x5533('0x11'),()=>this[_0x5533('0x57')]=_0x5982ae),this[_0x5533('0xb')](_0x268dcc,_0x5533('0x40'),()=>this[_0x5533('0x57')]=null),this[_0x5533('0xb')](_0x268dcc,_0x5533('0x21'),()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x414a5f=super[_0x5533('0x59')]();return _0x414a5f[_0x5533('0xe')](_0x5533('0x41'))['to'](this),_0x414a5f;}['getExternalCommentNote'](){return _0x5533('0x1d')===this[_0x5533('0x27')][_0x5533('0x3a')][_0x5533('0x0')][_0x5533('0x3')]?_0x39d847(this[_0x5533('0x4f')],'EXTERNAL_IMPORT_WORD_COMMENT'):_0x39d847(this['locale'],_0x5533('0xc'));}[_0x5533('0xd')](){return this[_0x5533('0x27')][_0x5533('0xa')]?_0x5533('0x1d')===this[_0x5533('0x27')]['attributes'][_0x5533('0x0')][_0x5533('0x3')]?_0x39d847(this[_0x5533('0x4f')],_0x5533('0x48'),this['_model']['creator']['name']):_0x39d847(this[_0x5533('0x4f')],_0x5533('0x24'),this['_model']['creator'][_0x5533('0x51')]):null;}[_0x5533('0x3e')](){super[_0x5533('0x3e')](),this[_0x5533('0x18')](this[_0x5533('0x5')],_0x5533('0x3b')),this[_0x5533('0x18')](this[_0x5533('0xf')],_0x5533('0x44'));}}
23
+ const _0x1533=['setTemplate','change:isRemovable','dropdown','mouseenter','items','@external','time','Edit','EXTERNAL_IMPORT_WORD_AVATAR','ck-comment__actions--hidden','ck-comment--','_createDropdown','ck-comment__info-name','isExternal','resolvedAt','name','add','ck-comment__external','isReadOnly','blur','ck-annotation__actions--hidden','ck-annotation__info-time','ck-annotation__info','isEnabled','source','ck-comment--remove-confirmation','span','div','ck-comment__info','Delete\x20comment?','ck-annotation__content-wrapper','editButton','actionIndicator','placeholder','removeComment','_attachActions','ck-annotation__user','Reply...','author','panelView','listenTo','ck-comment__wrapper','creator','actionBar','getUserViewNotificationText','change:isVisible','_model','getTemplate','ck-annotation__actions','Remove','length','ck-comment--remove','authoredAt','pencil','icon','ck-comment--info','EXTERNAL_IMPORT_WORD_COMMENT','_createRemoveButton','execute','_createCommentInputView','getExternalCommentNote','set','ck-comment__info-time','isEditable','removeButton','isConfirm','userView','visibleView','remove','ck-comment__main','_createEditButton','buttonView','panelPosition','isRemovable','locale','bind','EXTERNAL_COMMENT','isVisible','extendTemplate','mouseleave','isEditMode','showConfirm','isSystemComment','some','children','threeVerticalDots','then','label','push','element','addMany','attributes','render','ck-annotation','importWord','ck-comment--edit','change:isEnabled','bindTemplate'];(function(_0x4e372d,_0x1533b3){const _0x2d9e41=function(_0x1bcf8b){while(--_0x1bcf8b){_0x4e372d['push'](_0x4e372d['shift']());}};_0x2d9e41(++_0x1533b3);}(_0x1533,0x1ac));const _0x2d9e=function(_0x4e372d,_0x1533b3){_0x4e372d=_0x4e372d-0x0;let _0x2d9e41=_0x1533[_0x4e372d];return _0x2d9e41;};import{ButtonView as _0x5bd594,createDropdown as _0x27e6a8,ListView as _0x550888,ListItemView as _0x4d8a25}from'ckeditor5/src/ui.js';import{icons as _0x413468}from'ckeditor5/src/core.js';import{UserView as _0x422b8a,ConfirmMixin as _0x256978}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x2d2ed2 from'./basecommentview.js';import _0x54dde4 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x51b360}from'../../../utils/common-translations.js';export default class pt extends _0x256978(_0x2d2ed2){constructor(_0x3d90d7,_0x51a085,_0x11fa7a){super(_0x3d90d7,_0x51a085,_0x11fa7a),this['set'](_0x2d9e('0x5e'),null),this[_0x2d9e('0x19')](_0x2d9e('0x5f'),_0x51b360(_0x3d90d7,_0x2d9e('0x1'))),this[_0x2d9e('0x27')](_0x2d9e('0x10'))['to'](_0x51a085),this[_0x2d9e('0x27')](_0x2d9e('0x4c'))['to'](_0x51a085),this[_0x2d9e('0x7')]=this['createCollection'](),this[_0x2d9e('0x2e')]||(this[_0x2d9e('0x5d')]=this[_0x2d9e('0x22')](),this[_0x2d9e('0x1c')]=this[_0x2d9e('0x15')](),this[_0x2d9e('0x42')]=this['createCollection'](),this['items'][_0x2d9e('0x36')]([this['editButton'],this[_0x2d9e('0x1c')]]),this[_0x2d9e('0x40')]=this['_createDropdown'](),this[_0x2d9e('0x7')][_0x2d9e('0x4e')](this[_0x2d9e('0x40')])),this[_0x2d9e('0x1e')]=new _0x422b8a(_0x3d90d7,_0x51a085[_0x2d9e('0x2')],this[_0x2d9e('0x8')]()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user',_0x2d9e('0x0')]}}),this[_0x2d9e('0x4')](_0x51a085,_0x2d9e('0x3f'),()=>this['cancelConfirm']()),this[_0x2d9e('0x3e')](this[_0x2d9e('0xb')]());}[_0x2d9e('0xb')](){const _0x5f45f1=this[_0x2d9e('0x3d')],_0x53a1a9=[{'tag':'div','attributes':{'class':[_0x2d9e('0x5a'),_0x2d9e('0x54')]},'children':[{'tag':_0x2d9e('0x58'),'children':[{'text':this['userView'][_0x2d9e('0x4d')]}],'attributes':{'class':[_0x2d9e('0x4a'),'ck-annotation__info-name']}},{'tag':_0x2d9e('0x44'),'attributes':{'datetime':_0x5f45f1['to']('authoredAt'),'class':[_0x2d9e('0x1a'),_0x2d9e('0x53')]},'children':[{'text':_0x5f45f1['to'](_0x2d9e('0x10'),_0x73d00=>this['_config']['formatDateTime'](_0x73d00))}]}]},{'tag':_0x2d9e('0x59'),'attributes':{'class':['ck-comment__actions',_0x2d9e('0xc'),_0x5f45f1['if'](_0x2d9e('0x2c'),_0x2d9e('0x47')),_0x5f45f1['if'](_0x2d9e('0x2c'),_0x2d9e('0x52'))]},'children':this[_0x2d9e('0x7')]},{'tag':_0x2d9e('0x59'),'attributes':{'class':[_0x2d9e('0x5c')]},'children':this[_0x2d9e('0x1f')]}];return this['_model'][_0x2d9e('0x4b')]&&_0x53a1a9[_0x2d9e('0x34')]({'tag':_0x2d9e('0x59'),'attributes':{'class':[_0x2d9e('0x4f')]},'children':[{'text':this[_0x2d9e('0x18')]()}]}),{'tag':'li','attributes':{'class':[_0x2d9e('0x5'),_0x5f45f1['if'](_0x2d9e('0x1d'),_0x2d9e('0x57'))],'tabindex':-0x1},'children':[{'tag':_0x2d9e('0x59'),'attributes':{'class':['ck-comment',_0x2d9e('0x39'),_0x5f45f1['if'](_0x2d9e('0x2c'),_0x2d9e('0x3b')),_0x5f45f1['if']('isSystemComment',_0x2d9e('0x13')),_0x5f45f1['to']('actionIndicator',_0x41d450=>_0x41d450?_0x2d9e('0x48')+_0x41d450:'')],'data-author-id':this[_0x2d9e('0xa')][_0x2d9e('0x2')]['id'],'data-comment-id':this[_0x2d9e('0xa')]['id']},'children':[this[_0x2d9e('0x1e')],{'tag':_0x2d9e('0x59'),'attributes':{'class':[_0x2d9e('0x21'),'ck-annotation__main']},'children':_0x53a1a9}]}]};}[_0x2d9e('0x22')](){const _0x254570=new _0x5bd594(this['locale']);return _0x254570[_0x2d9e('0x33')]=_0x51b360(this['locale'],_0x2d9e('0x45')),_0x254570[_0x2d9e('0x12')]=_0x413468[_0x2d9e('0x11')],_0x254570['withText']=!0x0,_0x254570[_0x2d9e('0x2a')]({'attributes':{'class':'ck-comment--edit'}}),_0x254570['bind'](_0x2d9e('0x55'))['to'](this[_0x2d9e('0xa')],_0x2d9e('0x50'),_0x31e7c9=>!_0x31e7c9),_0x254570[_0x2d9e('0x27')]('isVisible')['to'](this['_model'],_0x2d9e('0x1b')),_0x254570['on']('execute',()=>this['switchToEditMode']()),_0x254570;}[_0x2d9e('0x15')](){const _0x43768c=new _0x5bd594(this['locale']);return _0x43768c[_0x2d9e('0x33')]=_0x51b360(this[_0x2d9e('0x26')],_0x2d9e('0xd')),_0x43768c[_0x2d9e('0x12')]=_0x54dde4,_0x43768c['withText']=!0x0,_0x43768c['extendTemplate']({'attributes':{'class':_0x2d9e('0xf')}}),_0x43768c[_0x2d9e('0x27')](_0x2d9e('0x55'))['to'](this[_0x2d9e('0xa')],_0x2d9e('0x50'),_0x503fe0=>!_0x503fe0),_0x43768c[_0x2d9e('0x27')](_0x2d9e('0x29'))['to'](this[_0x2d9e('0xa')],_0x2d9e('0x25')),_0x43768c['on'](_0x2d9e('0x16'),()=>{this[_0x2d9e('0x2d')](_0x51b360(this[_0x2d9e('0x26')],_0x2d9e('0x5b')),this[_0x2d9e('0x35')])[_0x2d9e('0x32')](()=>{this['fire'](_0x2d9e('0x60'),this[_0x2d9e('0xa')]['id']);});}),_0x43768c;}[_0x2d9e('0x49')](){const _0x5c2f98=_0x27e6a8(this['locale']),_0x754ee5=_0x5c2f98[_0x2d9e('0x3')][_0x2d9e('0x30')],_0x279af4=new _0x550888(this[_0x2d9e('0x26')]),_0x3cb41c=(_0x4c7343,_0x54311f=-0x1)=>{const _0x693218=new _0x4d8a25(this[_0x2d9e('0x26')]);_0x693218[_0x2d9e('0x30')][_0x2d9e('0x4e')](_0x4c7343);const _0x3901a1=_0x54311f>-0x1?_0x54311f:_0x279af4['items'][_0x2d9e('0xe')];_0x279af4['items'][_0x2d9e('0x4e')](_0x693218,_0x3901a1),_0x5c2f98['listenTo'](_0x4c7343,_0x2d9e('0x3c'),()=>{_0x5c2f98[_0x2d9e('0x55')]=[...this[_0x2d9e('0x42')]][_0x2d9e('0x2f')](_0x287c1e=>_0x287c1e[_0x2d9e('0x55')]);}),_0x5c2f98[_0x2d9e('0x4')](_0x4c7343,_0x2d9e('0x9'),()=>{_0x5c2f98[_0x2d9e('0x23')][_0x2d9e('0x29')]=[...this[_0x2d9e('0x42')]]['some'](_0x193617=>_0x193617[_0x2d9e('0x29')]);});};_0x5c2f98[_0x2d9e('0x24')]='sw',_0x5c2f98['buttonView'][_0x2d9e('0x19')]({'label':_0x51b360(this[_0x2d9e('0x26')],'Show\x20more\x20items'),'icon':_0x413468[_0x2d9e('0x31')]}),_0x5c2f98[_0x2d9e('0x55')]=[...this['items']][_0x2d9e('0x2f')](_0x17c175=>_0x17c175['isEnabled']),_0x5c2f98['buttonView']['isVisible']=[...this[_0x2d9e('0x42')]][_0x2d9e('0x2f')](_0x1fdd81=>_0x1fdd81[_0x2d9e('0x29')]);for(const _0xd1358 of this[_0x2d9e('0x42')])_0x3cb41c(_0xd1358);return _0x754ee5['add'](_0x279af4),_0x5c2f98[_0x2d9e('0x4')](this[_0x2d9e('0x42')],_0x2d9e('0x4e'),(_0x47f196,_0x4989d7,_0x17c0f6)=>{_0x3cb41c(_0x4989d7,_0x17c0f6);}),_0x5c2f98[_0x2d9e('0x4')](this[_0x2d9e('0x42')],_0x2d9e('0x20'),(_0xe30e01,_0x4d506c,_0x4ef987)=>{_0x279af4['items']['remove'](_0x4ef987);}),_0x5c2f98;}[_0x2d9e('0x61')](_0x1b4daa,_0x5e0548){const _0x3b4d77=_0x1b4daa&&_0x1b4daa[_0x2d9e('0x35')];_0x3b4d77&&(this[_0x2d9e('0x4')](_0x3b4d77,_0x2d9e('0x41'),()=>this[_0x2d9e('0x5e')]=_0x5e0548),this[_0x2d9e('0x4')](_0x3b4d77,'focus',()=>this['actionIndicator']=_0x5e0548),this[_0x2d9e('0x4')](_0x3b4d77,_0x2d9e('0x2b'),()=>this[_0x2d9e('0x5e')]=null),this['listenTo'](_0x3b4d77,_0x2d9e('0x51'),()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0xf8b5c=super[_0x2d9e('0x17')]();return _0xf8b5c[_0x2d9e('0x27')](_0x2d9e('0x5f'))['to'](this),_0xf8b5c;}[_0x2d9e('0x18')](){return'importWord'===this['_model'][_0x2d9e('0x37')][_0x2d9e('0x43')][_0x2d9e('0x56')]?_0x51b360(this[_0x2d9e('0x26')],_0x2d9e('0x14')):_0x51b360(this[_0x2d9e('0x26')],_0x2d9e('0x28'));}[_0x2d9e('0x8')](){return this['_model'][_0x2d9e('0x4b')]?_0x2d9e('0x3a')===this[_0x2d9e('0xa')][_0x2d9e('0x37')][_0x2d9e('0x43')][_0x2d9e('0x56')]?_0x51b360(this[_0x2d9e('0x26')],_0x2d9e('0x46'),this['_model'][_0x2d9e('0x6')][_0x2d9e('0x4d')]):_0x51b360(this[_0x2d9e('0x26')],'EXTERNAL_AVATAR',this[_0x2d9e('0xa')]['creator'][_0x2d9e('0x4d')]):null;}[_0x2d9e('0x38')](){super[_0x2d9e('0x38')](),this[_0x2d9e('0x61')](this['editButton'],'edit'),this[_0x2d9e('0x61')](this[_0x2d9e('0x1c')],_0x2d9e('0x20'));}}
package/src/comments.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2f80=['pluginName','requires','Comments'];(function(_0x1b0e9b,_0x2f806d){var _0x1256aa=function(_0x1ef497){while(--_0x1ef497){_0x1b0e9b['push'](_0x1b0e9b['shift']());}};_0x1256aa(++_0x2f806d);}(_0x2f80,0xd5));var _0x1256=function(_0x1b0e9b,_0x2f806d){_0x1b0e9b=_0x1b0e9b-0x0;var _0x1256aa=_0x2f80[_0x1b0e9b];return _0x1256aa;};import{Plugin as _0x250f09}from'ckeditor5/src/core.js';import _0x31159a from'./comments/commentsrepository.js';import _0x4fc885 from'./comments/commentsediting.js';import _0x24649e from'./comments/commentsui.js';import _0x2b2eda from'./commentsonly.js';import _0x105646 from'./annotations/widesidebar.js';import _0x33d154 from'./annotations/narrowsidebar.js';import _0x16beb7 from'./annotations/inlineannotations.js';import _0x51922d from'./comments/commentsarchiveui.js';import _0x5e2eb1 from'./comments/commentsarchive.js';export default class f extends _0x250f09{static get[_0x1256('0x1')](){return[_0x31159a,_0x4fc885,_0x24649e,_0x5e2eb1,_0x51922d,_0x2b2eda,_0x105646,_0x33d154,_0x16beb7];}static get[_0x1256('0x0')](){return _0x1256('0x2');}}
23
+ var _0x3737=['pluginName'];(function(_0x4b0c70,_0x37373c){var _0x1e7a91=function(_0x35016d){while(--_0x35016d){_0x4b0c70['push'](_0x4b0c70['shift']());}};_0x1e7a91(++_0x37373c);}(_0x3737,0x19f));var _0x1e7a=function(_0x4b0c70,_0x37373c){_0x4b0c70=_0x4b0c70-0x0;var _0x1e7a91=_0x3737[_0x4b0c70];return _0x1e7a91;};import{Plugin as _0x40f6f6}from'ckeditor5/src/core.js';import _0x16724e from'./comments/commentsrepository.js';import _0x13cda9 from'./comments/commentsediting.js';import _0x5c91c9 from'./comments/commentsui.js';import _0x44a2c7 from'./commentsonly.js';import _0x353cf7 from'./annotations/widesidebar.js';import _0x343d98 from'./annotations/narrowsidebar.js';import _0x2961ed from'./annotations/inlineannotations.js';import _0x518553 from'./comments/commentsarchiveui.js';import _0x2a1d11 from'./comments/commentsarchive.js';export default class f extends _0x40f6f6{static get['requires'](){return[_0x16724e,_0x13cda9,_0x5c91c9,_0x2a1d11,_0x518553,_0x44a2c7,_0x353cf7,_0x343d98,_0x2961ed];}static get[_0x1e7a('0x0')](){return'Comments';}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5394=['listenTo','set','plugins','affectsData','editing','stop','document','editor','highest','commentsOnlyMode','clearForceDisabled','config','change:isEnabled','addCommentThread','_disableCommentsOnlyMode','afterInit','clipboardInput','delete','commentsOnly','CommentsOnly','get','forceDisabled','DragDrop','requires','cut','commands','isEnabled','view','has','_enableCommentsOnlyMode'];(function(_0x4d964e,_0x539430){const _0x323091=function(_0x1b8637){while(--_0x1b8637){_0x4d964e['push'](_0x4d964e['shift']());}};_0x323091(++_0x539430);}(_0x5394,0x1aa));const _0x3230=function(_0x4d964e,_0x539430){_0x4d964e=_0x4d964e-0x0;let _0x323091=_0x5394[_0x4d964e];return _0x323091;};import{Plugin as _0x2c92d6}from'ckeditor5/src/core.js';import _0x3e6188 from'./comments/commentsediting.js';export default class e extends _0x2c92d6{static get['pluginName'](){return _0x3230('0xd');}static get[_0x3230('0x11')](){return[_0x3e6188];}constructor(_0x84dae0){super(_0x84dae0),this[_0x3230('0x19')](_0x3230('0x14'),!0x1),this['on'](_0x3230('0x6'),(_0x2a295e,_0x2a15c0,_0x3389e8)=>{_0x3389e8?this[_0x3230('0x17')]():this[_0x3230('0x8')]();});}[_0x3230('0x9')](){!this[_0x3230('0x14')]&&this['editor'][_0x3230('0x5')]['get'](_0x3230('0xc'))&&(this[_0x3230('0x14')]=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x95e172,_0x52cc05]of this[_0x3230('0x1')][_0x3230('0x13')])_0x52cc05['affectsData']&&_0x3230('0x7')!==_0x95e172&&_0x52cc05[_0x3230('0xf')](_0x3230('0x3'));this[_0x3230('0x1')][_0x3230('0x1a')][_0x3230('0x16')](_0x3230('0x10'))&&this['editor'][_0x3230('0x1a')][_0x3230('0xe')]('DragDrop')[_0x3230('0xf')](_0x3230('0x3'));const _0x50612c=this[_0x3230('0x1')][_0x3230('0x1c')][_0x3230('0x15')][_0x3230('0x0')];this['listenTo'](_0x50612c,_0x3230('0x12'),_0x27fc2f=>_0x27fc2f[_0x3230('0x1d')](),{'priority':_0x3230('0x2')}),this[_0x3230('0x18')](_0x50612c,_0x3230('0xa'),_0xf2e400=>_0xf2e400[_0x3230('0x1d')](),{'priority':_0x3230('0x2')}),this[_0x3230('0x18')](_0x50612c,_0x3230('0xb'),_0x263cba=>_0x263cba['stop'](),{'priority':_0x3230('0x2')});}[_0x3230('0x8')](){for(const [_0x49c58e,_0x38d6cd]of this['editor'][_0x3230('0x13')])_0x38d6cd[_0x3230('0x1b')]&&'addCommentThread'!==_0x49c58e&&_0x38d6cd[_0x3230('0x4')](_0x3230('0x3'));this['stopListening'](this[_0x3230('0x1')][_0x3230('0x1c')][_0x3230('0x15')]['document']);}}
23
+ const _0x1cbf=['CommentsOnly','view','get','affectsData','requires','plugins','cut','editing','stopListening','commentsOnly','commentsOnlyMode','pluginName','editor','DragDrop','delete','_disableCommentsOnlyMode','highest','_enableCommentsOnlyMode','stop','afterInit','forceDisabled','isEnabled','commands','clearForceDisabled','change:isEnabled','document','listenTo'];(function(_0x25ef0f,_0x1cbf33){const _0x3efce0=function(_0x310403){while(--_0x310403){_0x25ef0f['push'](_0x25ef0f['shift']());}};_0x3efce0(++_0x1cbf33);}(_0x1cbf,0x103));const _0x3efc=function(_0x25ef0f,_0x1cbf33){_0x25ef0f=_0x25ef0f-0x0;let _0x3efce0=_0x1cbf[_0x25ef0f];return _0x3efce0;};import{Plugin as _0x7c06e2}from'ckeditor5/src/core.js';import _0x479eb6 from'./comments/commentsediting.js';export default class e extends _0x7c06e2{static get[_0x3efc('0x16')](){return _0x3efc('0xb');}static get[_0x3efc('0xf')](){return[_0x479eb6];}constructor(_0xc2764c){super(_0xc2764c),this['set'](_0x3efc('0x5'),!0x1),this['on'](_0x3efc('0x8'),(_0x285069,_0x23191d,_0x381916)=>{_0x381916?this[_0x3efc('0x1')]():this[_0x3efc('0x1a')]();});}[_0x3efc('0x3')](){!this[_0x3efc('0x5')]&&this[_0x3efc('0x17')]['config'][_0x3efc('0xd')](_0x3efc('0x14'))&&(this[_0x3efc('0x5')]=!0x0);}[_0x3efc('0x1')](){for(const [_0x5ed5a1,_0x24c150]of this[_0x3efc('0x17')]['commands'])_0x24c150['affectsData']&&'addCommentThread'!==_0x5ed5a1&&_0x24c150[_0x3efc('0x4')](_0x3efc('0x15'));this[_0x3efc('0x17')][_0x3efc('0x10')]['has'](_0x3efc('0x18'))&&this[_0x3efc('0x17')][_0x3efc('0x10')]['get'](_0x3efc('0x18'))[_0x3efc('0x4')](_0x3efc('0x15'));const _0x21eca3=this[_0x3efc('0x17')]['editing'][_0x3efc('0xc')][_0x3efc('0x9')];this['listenTo'](_0x21eca3,_0x3efc('0x11'),_0x5518cf=>_0x5518cf[_0x3efc('0x2')](),{'priority':_0x3efc('0x0')}),this[_0x3efc('0xa')](_0x21eca3,'clipboardInput',_0x180dbc=>_0x180dbc['stop'](),{'priority':'highest'}),this[_0x3efc('0xa')](_0x21eca3,_0x3efc('0x19'),_0xaf65e0=>_0xaf65e0['stop'](),{'priority':'highest'});}[_0x3efc('0x1a')](){for(const [_0x6adc37,_0x14993b]of this[_0x3efc('0x17')][_0x3efc('0x6')])_0x14993b[_0x3efc('0xe')]&&'addCommentThread'!==_0x6adc37&&_0x14993b[_0x3efc('0x7')](_0x3efc('0x15'));this[_0x3efc('0x13')](this[_0x3efc('0x17')][_0x3efc('0x12')][_0x3efc('0xc')][_0x3efc('0x9')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x3592f4,_0x3fd005,_0x561586){const t=_0x3592f4['t'];switch(_0x3fd005){case'PENDING_ACTION_COMMENT_THREAD':return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});case'Comment':return t('Comment');case'Reply...':return t('Reply...');case'Reply\x20to\x20reopen\x20discussion...':return t('Reply\x20to\x20reopen\x20discussion...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20was\x20made\x20on\x20an\x20element':return t('Comment\x20was\x20made\x20on\x20an\x20element');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Marked\x20as\x20resolved':return t('Marked\x20as\x20resolved');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Resolve':return t('Resolve');case'Reopen':return t('Reopen');case'Remove':return t('Remove');case'Reply':return t('Reply');case'Save':return t('Save');case'LEAVE_COMMENT_ANNOUNCEMENT':return t({'string':'Leaving\x20a\x20comment.','id':'LEAVE_COMMENT_ANNOUNCEMENT'});case'ENTER_COMMENT_ANNOUNCEMENT':return t({'string':'Entering\x20a\x20comment.','id':'ENTER_COMMENT_ANNOUNCEMENT'});case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x561586);case'TOO_LONG_COMMENT_ALERT':return t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},_0x561586);case'EXTERNAL_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20external\x20source.','id':'EXTERNAL_COMMENT'});case'EXTERNAL_IMPORT_WORD_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_COMMENT'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x561586);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x561586);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});default:return'';}}
23
+ export function getTranslation(_0x5ad421,_0x3b7aea,_0x516535){const t=_0x5ad421['t'];switch(_0x3b7aea){case'PENDING_ACTION_COMMENT_THREAD':return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});case'Comment':return t('Comment');case'Reply...':return t('Reply...');case'Reply\x20to\x20reopen\x20discussion...':return t('Reply\x20to\x20reopen\x20discussion...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20was\x20made\x20on\x20an\x20element':return t('Comment\x20was\x20made\x20on\x20an\x20element');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Marked\x20as\x20resolved':return t('Marked\x20as\x20resolved');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Resolve':return t('Resolve');case'Reopen':return t('Reopen');case'Remove':return t('Remove');case'Reply':return t('Reply');case'Save':return t('Save');case'LEAVE_COMMENT_ANNOUNCEMENT':return t({'string':'Leaving\x20a\x20comment.','id':'LEAVE_COMMENT_ANNOUNCEMENT'});case'ENTER_COMMENT_ANNOUNCEMENT':return t({'string':'Entering\x20a\x20comment.','id':'ENTER_COMMENT_ANNOUNCEMENT'});case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x516535);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'},_0x516535);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'},_0x516535);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'},_0x516535);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 _0x2d70=['attributeName','type','characterData','observe','attributes','disconnect'];(function(_0x202837,_0x2d70e2){const _0x49d8c5=function(_0x3fa982){while(--_0x3fa982){_0x202837['push'](_0x202837['shift']());}};_0x49d8c5(++_0x2d70e2);}(_0x2d70,0xeb));const _0x49d8=function(_0x202837,_0x2d70e2){_0x202837=_0x202837-0x0;let _0x49d8c5=_0x2d70[_0x202837];return _0x49d8c5;};import{throttle as _0xe5b44d}from'lodash-es';export default function Dt(_0x488330){const _0x434a7e=_0xe5b44d(_0x488330,0x1e),_0x4df688=new MutationObserver(_0x6cb12b=>{for(const _0x52fd2b of _0x6cb12b)(_0x49d8('0x3')==_0x52fd2b[_0x49d8('0x0')]&&'class'==_0x52fd2b[_0x49d8('0x5')]||'childList'==_0x52fd2b[_0x49d8('0x0')]||_0x49d8('0x1')==_0x52fd2b[_0x49d8('0x0')])&&_0x434a7e();});return{'attach'(_0x2bbcfe){_0x4df688[_0x49d8('0x2')](_0x2bbcfe,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x4df688[_0x49d8('0x4')](),_0x434a7e['cancel']();}};}
23
+ const _0x3848=['attributeName','class','type','disconnect','attributes','observe'];(function(_0xb275a2,_0x384888){const _0x57132f=function(_0x90cfe1){while(--_0x90cfe1){_0xb275a2['push'](_0xb275a2['shift']());}};_0x57132f(++_0x384888);}(_0x3848,0x92));const _0x5713=function(_0xb275a2,_0x384888){_0xb275a2=_0xb275a2-0x0;let _0x57132f=_0x3848[_0xb275a2];return _0x57132f;};import{throttle as _0x4237c0}from'lodash-es';export default function Dt(_0x155510){const _0x5f12c8=_0x4237c0(_0x155510,0x1e),_0x848b6c=new MutationObserver(_0x29254a=>{for(const _0x1f333b of _0x29254a)(_0x5713('0x2')==_0x1f333b['type']&&_0x5713('0x5')==_0x1f333b[_0x5713('0x4')]||'childList'==_0x1f333b[_0x5713('0x0')]||'characterData'==_0x1f333b['type'])&&_0x5f12c8();});return{'attach'(_0x24293b){_0x848b6c[_0x5713('0x3')](_0x24293b,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x848b6c[_0x5713('0x1')](),_0x5f12c8['cancel']();}};}