@ckeditor/ckeditor5-comments 0.0.0-nightly-20230710.1 → 0.0.0-nightly-20230711.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 _0xf280=['isExternal','ck-annotation__info-name','resolvedAt','change:isVisible','isEditable','isConfirm','removeButton','element','@external','ck-comment__info-time','placeholder','panelPosition','remove','ck-comment--remove-confirmation','dropdown','setTemplate','_createRemoveButton','items','_attachActions','isSystemComment','EXTERNAL_AVATAR','isEnabled','createCollection','_createDropdown','ck-annotation__actions','blur','ck-comment__actions','creator','fire','threeVerticalDots','render','label','_model','ck-annotation__user','ck-annotation__main','isRemovable','ck-comment__info-name','ck-annotation__actions--hidden','switchToEditMode','ck-comment--edit','attributes','change:isRemovable','ck-comment__info','mouseenter','ck-comment__wrapper','ck-comment--','isEditMode','locale','importWord','actionBar','listenTo','push','cancelConfirm','extendTemplate','children','userView','withText','_createCommentInputView','removeComment','visibleView','actionIndicator','bind','getExternalCommentNote','set','length','isReadOnly','Reply...','ck-annotation__info','ck-annotation__content-wrapper','edit','EXTERNAL_IMPORT_WORD_AVATAR','pencil','some','panelView','add','div','buttonView','EXTERNAL_IMPORT_WORD_COMMENT','editButton','name','authoredAt','formatDateTime','getTemplate','mouseleave','time','change:isEnabled','ck-annotation','execute','ck-comment__user','ck-annotation__info-time','EXTERNAL_COMMENT','Show\x20more\x20items','isVisible','Delete\x20comment?','icon','author'];(function(_0x1ec54d,_0xf28066){const _0x57b995=function(_0x5aa4b1){while(--_0x5aa4b1){_0x1ec54d['push'](_0x1ec54d['shift']());}};_0x57b995(++_0xf28066);}(_0xf280,0x6c));const _0x57b9=function(_0x1ec54d,_0xf28066){_0x1ec54d=_0x1ec54d-0x0;let _0x57b995=_0xf280[_0x1ec54d];return _0x57b995;};import{ButtonView as _0x501e9d,createDropdown as _0x5f3b6c,ListView as _0x183e73,ListItemView as _0x1d2e94}from'ckeditor5/src/ui';import{icons as _0x5d3a4c}from'ckeditor5/src/core';import{UserView as _0x3a6890,ConfirmMixin as _0x3e6027}from'ckeditor5-collaboration/src/collaboration-core';import _0x192e6e from'./basecommentview';import _0x470558 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x33ec04}from'../../../utils/common-translations';export default class ut extends _0x3e6027(_0x192e6e){constructor(_0x67fbd6,_0x1d8b25,_0x48b611){super(_0x67fbd6,_0x1d8b25,_0x48b611),this[_0x57b9('0x33')](_0x57b9('0x30'),null),this[_0x57b9('0x33')](_0x57b9('0x5e'),_0x33ec04(_0x67fbd6,_0x57b9('0x36'))),this[_0x57b9('0x31')](_0x57b9('0x44'))['to'](_0x1d8b25),this[_0x57b9('0x31')](_0x57b9('0x56'))['to'](_0x1d8b25),this['actionBar']=this[_0x57b9('0xa')](),this[_0x57b9('0x7')]||(this[_0x57b9('0x42')]=this['_createEditButton'](),this[_0x57b9('0x5a')]=this[_0x57b9('0x4')](),this[_0x57b9('0x5')]=this['createCollection'](),this[_0x57b9('0x5')]['addMany']([this[_0x57b9('0x42')],this[_0x57b9('0x5a')]]),this[_0x57b9('0x2')]=this[_0x57b9('0xb')](),this[_0x57b9('0x25')]['add'](this[_0x57b9('0x2')])),this['userView']=new _0x3a6890(_0x67fbd6,_0x1d8b25['author'],this['getUserViewNotificationText']()),this[_0x57b9('0x2b')][_0x57b9('0x29')]({'attributes':{'class':[_0x57b9('0x4c'),_0x57b9('0x15')]}}),this['listenTo'](_0x1d8b25,_0x57b9('0x1d'),()=>this[_0x57b9('0x28')]()),this[_0x57b9('0x3')](this[_0x57b9('0x46')]());}['getTemplate'](){const _0x52be29=this['bindTemplate'],_0x37a3e5=[{'tag':'div','attributes':{'class':[_0x57b9('0x1e'),_0x57b9('0x37')]},'children':[{'tag':'span','children':[{'text':this[_0x57b9('0x2b')]['name']}],'attributes':{'class':[_0x57b9('0x18'),_0x57b9('0x55')]}},{'tag':_0x57b9('0x48'),'attributes':{'datetime':_0x52be29['to'](_0x57b9('0x44')),'class':[_0x57b9('0x5d'),_0x57b9('0x4d')]},'children':[{'text':_0x52be29['to'](_0x57b9('0x44'),_0xa0b3e=>this['_config'][_0x57b9('0x45')](_0xa0b3e))}]}]},{'tag':_0x57b9('0x3f'),'attributes':{'class':[_0x57b9('0xe'),_0x57b9('0xc'),_0x52be29['if'](_0x57b9('0x22'),'ck-comment__actions--hidden'),_0x52be29['if'](_0x57b9('0x22'),_0x57b9('0x19'))]},'children':this['actionBar']},{'tag':_0x57b9('0x3f'),'attributes':{'class':[_0x57b9('0x38')]},'children':this[_0x57b9('0x2f')]}];return this['_model'][_0x57b9('0x54')]&&_0x37a3e5[_0x57b9('0x27')]({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this[_0x57b9('0x32')]()}]}),{'tag':'li','attributes':{'class':[_0x57b9('0x20'),_0x52be29['if'](_0x57b9('0x59'),_0x57b9('0x1'))],'tabindex':-0x1},'children':[{'tag':_0x57b9('0x3f'),'attributes':{'class':['ck-comment',_0x57b9('0x4a'),_0x52be29['if'](_0x57b9('0x22'),_0x57b9('0x1b')),_0x52be29['if'](_0x57b9('0x7'),'ck-comment--info'),_0x52be29['to'](_0x57b9('0x30'),_0x575d86=>_0x575d86?_0x57b9('0x21')+_0x575d86:'')],'data-author-id':this[_0x57b9('0x14')][_0x57b9('0x53')]['id'],'data-comment-id':this[_0x57b9('0x14')]['id']},'children':[this[_0x57b9('0x2b')],{'tag':_0x57b9('0x3f'),'attributes':{'class':['ck-comment__main',_0x57b9('0x16')]},'children':_0x37a3e5}]}]};}['_createEditButton'](){const _0x22dbec=new _0x501e9d(this[_0x57b9('0x23')]);return _0x22dbec['label']=_0x33ec04(this['locale'],'Edit'),_0x22dbec[_0x57b9('0x52')]=_0x5d3a4c[_0x57b9('0x3b')],_0x22dbec['withText']=!0x0,_0x22dbec['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x22dbec[_0x57b9('0x31')]('isEnabled')['to'](this[_0x57b9('0x14')],_0x57b9('0x35'),_0x908305=>!_0x908305),_0x22dbec[_0x57b9('0x31')](_0x57b9('0x50'))['to'](this[_0x57b9('0x14')],_0x57b9('0x58')),_0x22dbec['on'](_0x57b9('0x4b'),()=>this[_0x57b9('0x1a')]()),_0x22dbec;}[_0x57b9('0x4')](){const _0x1f600c=new _0x501e9d(this['locale']);return _0x1f600c[_0x57b9('0x13')]=_0x33ec04(this[_0x57b9('0x23')],'Remove'),_0x1f600c[_0x57b9('0x52')]=_0x470558,_0x1f600c[_0x57b9('0x2c')]=!0x0,_0x1f600c[_0x57b9('0x29')]({'attributes':{'class':'ck-comment--remove'}}),_0x1f600c[_0x57b9('0x31')](_0x57b9('0x9'))['to'](this[_0x57b9('0x14')],_0x57b9('0x35'),_0x30909f=>!_0x30909f),_0x1f600c['bind'](_0x57b9('0x50'))['to'](this[_0x57b9('0x14')],_0x57b9('0x17')),_0x1f600c['on'](_0x57b9('0x4b'),()=>{this['showConfirm'](_0x33ec04(this[_0x57b9('0x23')],_0x57b9('0x51')),this[_0x57b9('0x5b')])['then'](()=>{this[_0x57b9('0x10')](_0x57b9('0x2e'),this[_0x57b9('0x14')]['id']);});}),_0x1f600c;}[_0x57b9('0xb')](){const _0x2e6ddd=_0x5f3b6c(this[_0x57b9('0x23')]),_0x846ee1=_0x2e6ddd[_0x57b9('0x3d')]['children'],_0x6f90a2=new _0x183e73(this[_0x57b9('0x23')]),_0x580a8b=(_0x120a2c,_0x37d354=-0x1)=>{const _0x161fe9=new _0x1d2e94(this[_0x57b9('0x23')]);_0x161fe9[_0x57b9('0x2a')][_0x57b9('0x3e')](_0x120a2c);const _0x1d992c=_0x37d354>-0x1?_0x37d354:_0x6f90a2['items'][_0x57b9('0x34')];_0x6f90a2[_0x57b9('0x5')][_0x57b9('0x3e')](_0x161fe9,_0x1d992c),_0x2e6ddd['listenTo'](_0x120a2c,_0x57b9('0x49'),()=>{_0x2e6ddd['isEnabled']=[...this[_0x57b9('0x5')]][_0x57b9('0x3c')](_0xf89422=>_0xf89422[_0x57b9('0x9')]);}),_0x2e6ddd[_0x57b9('0x26')](_0x120a2c,_0x57b9('0x57'),()=>{_0x2e6ddd[_0x57b9('0x40')][_0x57b9('0x50')]=[...this['items']][_0x57b9('0x3c')](_0x56d777=>_0x56d777['isVisible']);});};_0x2e6ddd[_0x57b9('0x5f')]='sw',_0x2e6ddd['buttonView']['set']({'label':_0x33ec04(this[_0x57b9('0x23')],_0x57b9('0x4f')),'icon':_0x5d3a4c[_0x57b9('0x11')]}),_0x2e6ddd['isEnabled']=[...this['items']][_0x57b9('0x3c')](_0x5948cd=>_0x5948cd['isEnabled']),_0x2e6ddd['buttonView'][_0x57b9('0x50')]=[...this[_0x57b9('0x5')]][_0x57b9('0x3c')](_0xb7fb79=>_0xb7fb79[_0x57b9('0x50')]);for(const _0x94e2b9 of this[_0x57b9('0x5')])_0x580a8b(_0x94e2b9);return _0x846ee1[_0x57b9('0x3e')](_0x6f90a2),_0x2e6ddd[_0x57b9('0x26')](this['items'],_0x57b9('0x3e'),(_0x238a13,_0xffdfb2,_0x586d2c)=>{_0x580a8b(_0xffdfb2,_0x586d2c);}),_0x2e6ddd['listenTo'](this[_0x57b9('0x5')],_0x57b9('0x0'),(_0x5df3be,_0x9fda36,_0x1cbdc7)=>{_0x6f90a2[_0x57b9('0x5')][_0x57b9('0x0')](_0x1cbdc7);}),_0x2e6ddd;}[_0x57b9('0x6')](_0x305aed,_0x295f51){const _0x4b7ca0=_0x305aed&&_0x305aed[_0x57b9('0x5b')];_0x4b7ca0&&(this[_0x57b9('0x26')](_0x4b7ca0,_0x57b9('0x1f'),()=>this[_0x57b9('0x30')]=_0x295f51),this[_0x57b9('0x26')](_0x4b7ca0,'focus',()=>this[_0x57b9('0x30')]=_0x295f51),this[_0x57b9('0x26')](_0x4b7ca0,_0x57b9('0x47'),()=>this[_0x57b9('0x30')]=null),this[_0x57b9('0x26')](_0x4b7ca0,_0x57b9('0xd'),()=>this[_0x57b9('0x30')]=null));}[_0x57b9('0x2d')](){const _0x119029=super[_0x57b9('0x2d')]();return _0x119029[_0x57b9('0x31')](_0x57b9('0x5e'))['to'](this),_0x119029;}[_0x57b9('0x32')](){return _0x57b9('0x24')===this[_0x57b9('0x14')][_0x57b9('0x1c')][_0x57b9('0x5c')]['source']?_0x33ec04(this[_0x57b9('0x23')],_0x57b9('0x41')):_0x33ec04(this[_0x57b9('0x23')],_0x57b9('0x4e'));}['getUserViewNotificationText'](){return this[_0x57b9('0x14')][_0x57b9('0x54')]?_0x57b9('0x24')===this[_0x57b9('0x14')][_0x57b9('0x1c')][_0x57b9('0x5c')]['source']?_0x33ec04(this[_0x57b9('0x23')],_0x57b9('0x3a'),this[_0x57b9('0x14')][_0x57b9('0xf')][_0x57b9('0x43')]):_0x33ec04(this[_0x57b9('0x23')],_0x57b9('0x8'),this[_0x57b9('0x14')]['creator'][_0x57b9('0x43')]):null;}[_0x57b9('0x12')](){super[_0x57b9('0x12')](),this[_0x57b9('0x6')](this[_0x57b9('0x42')],_0x57b9('0x39')),this[_0x57b9('0x6')](this['removeButton'],_0x57b9('0x0'));}}
23
+ const _0x6c24=['actionBar','creator','Delete\x20comment?','_attachActions','push','ck-comment__wrapper','userView','_model','div','icon','author','@external','edit','getExternalCommentNote','label','Reply...','isEnabled','element','ck-annotation__content-wrapper','editButton','dropdown','getUserViewNotificationText','isVisible','ck-comment__main','isEditable','children','Remove','_config','isExternal','ck-comment--info','mouseenter','authoredAt','EXTERNAL_IMPORT_WORD_AVATAR','EXTERNAL_AVATAR','blur','resolvedAt','isEditMode','_createEditButton','execute','buttonView','removeButton','ck-comment__external','ck-comment__info','ck-comment--remove-confirmation','ck-comment--edit','threeVerticalDots','cancelConfirm','_createDropdown','then','ck-annotation__info-name','span','_createRemoveButton','ck-comment__info-name','actionIndicator','importWord','time','setTemplate','ck-comment__actions--hidden','change:isRemovable','ck-annotation__actions','panelView','listenTo','getTemplate','attributes','ck-annotation','items','EXTERNAL_COMMENT','some','isReadOnly','source','ck-annotation__actions--hidden','length','locale','isRemovable','addMany','name','visibleView','ck-comment__actions','remove','removeComment','add','ck-annotation__info','change:isEnabled','withText','ck-comment__user','fire','EXTERNAL_IMPORT_WORD_COMMENT','Show\x20more\x20items','formatDateTime','bindTemplate','switchToEditMode','bind','ck-annotation__user','isConfirm','placeholder','_createCommentInputView','extendTemplate','render','ck-comment--remove'];(function(_0x36f012,_0x6c2441){const _0x53373a=function(_0x52a39c){while(--_0x52a39c){_0x36f012['push'](_0x36f012['shift']());}};_0x53373a(++_0x6c2441);}(_0x6c24,0x14a));const _0x5337=function(_0x36f012,_0x6c2441){_0x36f012=_0x36f012-0x0;let _0x53373a=_0x6c24[_0x36f012];return _0x53373a;};import{ButtonView as _0x466d05,createDropdown as _0xc3ccec,ListView as _0x3d6d2f,ListItemView as _0x5eecf0}from'ckeditor5/src/ui';import{icons as _0x520e47}from'ckeditor5/src/core';import{UserView as _0x483cb8,ConfirmMixin as _0x11d8c1}from'ckeditor5-collaboration/src/collaboration-core';import _0x2e4d33 from'./basecommentview';import _0x5a181f from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x1a9e52}from'../../../utils/common-translations';export default class ut extends _0x11d8c1(_0x2e4d33){constructor(_0x116434,_0x595214,_0x3ea401){super(_0x116434,_0x595214,_0x3ea401),this['set'](_0x5337('0x14'),null),this['set'](_0x5337('0x3d'),_0x1a9e52(_0x116434,_0x5337('0x51'))),this[_0x5337('0x3a')](_0x5337('0x61'))['to'](_0x595214),this[_0x5337('0x3a')](_0x5337('0x2'))['to'](_0x595214),this[_0x5337('0x42')]=this['createCollection'](),this['isSystemComment']||(this[_0x5337('0x55')]=this[_0x5337('0x4')](),this[_0x5337('0x7')]=this[_0x5337('0x12')](),this[_0x5337('0x20')]=this['createCollection'](),this['items'][_0x5337('0x29')]([this['editButton'],this[_0x5337('0x7')]]),this[_0x5337('0x56')]=this['_createDropdown'](),this[_0x5337('0x42')][_0x5337('0x2f')](this[_0x5337('0x56')])),this[_0x5337('0x48')]=new _0x483cb8(_0x116434,_0x595214['author'],this[_0x5337('0x57')]()),this[_0x5337('0x48')][_0x5337('0x3f')]({'attributes':{'class':[_0x5337('0x33'),_0x5337('0x3b')]}}),this['listenTo'](_0x595214,_0x5337('0x19'),()=>this[_0x5337('0xd')]()),this[_0x5337('0x17')](this[_0x5337('0x1d')]());}[_0x5337('0x1d')](){const _0x16654c=this[_0x5337('0x38')],_0x5067b0=[{'tag':_0x5337('0x4a'),'attributes':{'class':[_0x5337('0x9'),_0x5337('0x30')]},'children':[{'tag':_0x5337('0x11'),'children':[{'text':this['userView'][_0x5337('0x2a')]}],'attributes':{'class':[_0x5337('0x13'),_0x5337('0x10')]}},{'tag':_0x5337('0x16'),'attributes':{'datetime':_0x16654c['to'](_0x5337('0x61')),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x16654c['to'](_0x5337('0x61'),_0x16cc64=>this[_0x5337('0x5d')][_0x5337('0x37')](_0x16cc64))}]}]},{'tag':_0x5337('0x4a'),'attributes':{'class':[_0x5337('0x2c'),_0x5337('0x1a'),_0x16654c['if'](_0x5337('0x3'),_0x5337('0x18')),_0x16654c['if'](_0x5337('0x3'),_0x5337('0x25'))]},'children':this[_0x5337('0x42')]},{'tag':_0x5337('0x4a'),'attributes':{'class':[_0x5337('0x54')]},'children':this[_0x5337('0x2b')]}];return this[_0x5337('0x49')][_0x5337('0x5e')]&&_0x5067b0[_0x5337('0x46')]({'tag':_0x5337('0x4a'),'attributes':{'class':[_0x5337('0x8')]},'children':[{'text':this[_0x5337('0x4f')]()}]}),{'tag':'li','attributes':{'class':[_0x5337('0x47'),_0x16654c['if'](_0x5337('0x3c'),_0x5337('0xa'))],'tabindex':-0x1},'children':[{'tag':_0x5337('0x4a'),'attributes':{'class':['ck-comment',_0x5337('0x1f'),_0x16654c['if'](_0x5337('0x3'),_0x5337('0xb')),_0x16654c['if']('isSystemComment',_0x5337('0x5f')),_0x16654c['to']('actionIndicator',_0xca85d1=>_0xca85d1?'ck-comment--'+_0xca85d1:'')],'data-author-id':this[_0x5337('0x49')][_0x5337('0x4c')]['id'],'data-comment-id':this['_model']['id']},'children':[this[_0x5337('0x48')],{'tag':_0x5337('0x4a'),'attributes':{'class':[_0x5337('0x59'),'ck-annotation__main']},'children':_0x5067b0}]}]};}[_0x5337('0x4')](){const _0x2786c1=new _0x466d05(this[_0x5337('0x27')]);return _0x2786c1[_0x5337('0x50')]=_0x1a9e52(this[_0x5337('0x27')],'Edit'),_0x2786c1[_0x5337('0x4b')]=_0x520e47['pencil'],_0x2786c1[_0x5337('0x32')]=!0x0,_0x2786c1[_0x5337('0x3f')]({'attributes':{'class':'ck-comment--edit'}}),_0x2786c1[_0x5337('0x3a')]('isEnabled')['to'](this['_model'],_0x5337('0x23'),_0x3315da=>!_0x3315da),_0x2786c1['bind'](_0x5337('0x58'))['to'](this[_0x5337('0x49')],_0x5337('0x5a')),_0x2786c1['on'](_0x5337('0x5'),()=>this[_0x5337('0x39')]()),_0x2786c1;}['_createRemoveButton'](){const _0x4d00b5=new _0x466d05(this['locale']);return _0x4d00b5[_0x5337('0x50')]=_0x1a9e52(this[_0x5337('0x27')],_0x5337('0x5c')),_0x4d00b5[_0x5337('0x4b')]=_0x5a181f,_0x4d00b5['withText']=!0x0,_0x4d00b5['extendTemplate']({'attributes':{'class':_0x5337('0x41')}}),_0x4d00b5['bind']('isEnabled')['to'](this[_0x5337('0x49')],_0x5337('0x23'),_0x36bf70=>!_0x36bf70),_0x4d00b5[_0x5337('0x3a')]('isVisible')['to'](this['_model'],_0x5337('0x28')),_0x4d00b5['on']('execute',()=>{this['showConfirm'](_0x1a9e52(this[_0x5337('0x27')],_0x5337('0x44')),this[_0x5337('0x53')])[_0x5337('0xf')](()=>{this[_0x5337('0x34')](_0x5337('0x2e'),this['_model']['id']);});}),_0x4d00b5;}[_0x5337('0xe')](){const _0x4a1cb7=_0xc3ccec(this[_0x5337('0x27')]),_0x264331=_0x4a1cb7[_0x5337('0x1b')][_0x5337('0x5b')],_0x54a179=new _0x3d6d2f(this[_0x5337('0x27')]),_0x384e55=(_0x557af2,_0x459a9e=-0x1)=>{const _0x522529=new _0x5eecf0(this['locale']);_0x522529[_0x5337('0x5b')][_0x5337('0x2f')](_0x557af2);const _0x20e06b=_0x459a9e>-0x1?_0x459a9e:_0x54a179[_0x5337('0x20')][_0x5337('0x26')];_0x54a179[_0x5337('0x20')]['add'](_0x522529,_0x20e06b),_0x4a1cb7['listenTo'](_0x557af2,_0x5337('0x31'),()=>{_0x4a1cb7['isEnabled']=[...this[_0x5337('0x20')]][_0x5337('0x22')](_0x3fef15=>_0x3fef15['isEnabled']);}),_0x4a1cb7[_0x5337('0x1c')](_0x557af2,'change:isVisible',()=>{_0x4a1cb7[_0x5337('0x6')][_0x5337('0x58')]=[...this['items']][_0x5337('0x22')](_0xae5dd1=>_0xae5dd1[_0x5337('0x58')]);});};_0x4a1cb7['panelPosition']='sw',_0x4a1cb7['buttonView']['set']({'label':_0x1a9e52(this[_0x5337('0x27')],_0x5337('0x36')),'icon':_0x520e47[_0x5337('0xc')]}),_0x4a1cb7[_0x5337('0x52')]=[...this['items']][_0x5337('0x22')](_0x3c37ca=>_0x3c37ca[_0x5337('0x52')]),_0x4a1cb7[_0x5337('0x6')][_0x5337('0x58')]=[...this[_0x5337('0x20')]]['some'](_0xe2c3bc=>_0xe2c3bc[_0x5337('0x58')]);for(const _0x202700 of this['items'])_0x384e55(_0x202700);return _0x264331[_0x5337('0x2f')](_0x54a179),_0x4a1cb7['listenTo'](this['items'],'add',(_0xf0cdf9,_0x14b659,_0x2d2203)=>{_0x384e55(_0x14b659,_0x2d2203);}),_0x4a1cb7[_0x5337('0x1c')](this['items'],_0x5337('0x2d'),(_0x2b5195,_0x1eef21,_0x360d5e)=>{_0x54a179[_0x5337('0x20')][_0x5337('0x2d')](_0x360d5e);}),_0x4a1cb7;}[_0x5337('0x45')](_0x5eb892,_0x19e7fd){const _0x5829b2=_0x5eb892&&_0x5eb892['element'];_0x5829b2&&(this['listenTo'](_0x5829b2,_0x5337('0x60'),()=>this[_0x5337('0x14')]=_0x19e7fd),this[_0x5337('0x1c')](_0x5829b2,'focus',()=>this[_0x5337('0x14')]=_0x19e7fd),this['listenTo'](_0x5829b2,'mouseleave',()=>this[_0x5337('0x14')]=null),this[_0x5337('0x1c')](_0x5829b2,_0x5337('0x1'),()=>this[_0x5337('0x14')]=null));}[_0x5337('0x3e')](){const _0x1ff688=super[_0x5337('0x3e')]();return _0x1ff688[_0x5337('0x3a')](_0x5337('0x3d'))['to'](this),_0x1ff688;}[_0x5337('0x4f')](){return _0x5337('0x15')===this[_0x5337('0x49')][_0x5337('0x1e')][_0x5337('0x4d')][_0x5337('0x24')]?_0x1a9e52(this[_0x5337('0x27')],_0x5337('0x35')):_0x1a9e52(this[_0x5337('0x27')],_0x5337('0x21'));}['getUserViewNotificationText'](){return this[_0x5337('0x49')][_0x5337('0x5e')]?_0x5337('0x15')===this[_0x5337('0x49')][_0x5337('0x1e')][_0x5337('0x4d')][_0x5337('0x24')]?_0x1a9e52(this[_0x5337('0x27')],_0x5337('0x62'),this[_0x5337('0x49')]['creator']['name']):_0x1a9e52(this['locale'],_0x5337('0x0'),this[_0x5337('0x49')][_0x5337('0x43')][_0x5337('0x2a')]):null;}[_0x5337('0x40')](){super[_0x5337('0x40')](),this[_0x5337('0x45')](this[_0x5337('0x55')],_0x5337('0x4e')),this[_0x5337('0x45')](this[_0x5337('0x7')],'remove');}}
package/src/comments.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x3a83=['pluginName'];(function(_0x3ce18b,_0x3a83dd){var _0x4dfddc=function(_0x23626b){while(--_0x23626b){_0x3ce18b['push'](_0x3ce18b['shift']());}};_0x4dfddc(++_0x3a83dd);}(_0x3a83,0x163));var _0x4dfd=function(_0x3ce18b,_0x3a83dd){_0x3ce18b=_0x3ce18b-0x0;var _0x4dfddc=_0x3a83[_0x3ce18b];return _0x4dfddc;};import{Plugin as _0x1ea529}from'ckeditor5/src/core';import _0x5ca359 from'./comments/commentsrepository';import _0xb4f587 from'./comments/commentsediting';import _0x3e9f02 from'./comments/commentsui';import _0x4db118 from'./commentsonly';import _0x331307 from'./annotations/widesidebar';import _0xfa57aa from'./annotations/narrowsidebar';import _0x51bb75 from'./annotations/inlineannotations';import _0x31fafb from'./comments/commentsarchiveui';import _0x44e6d4 from'./comments/commentsarchive';export default class f extends _0x1ea529{static get['requires'](){return[_0x5ca359,_0xb4f587,_0x3e9f02,_0x44e6d4,_0x31fafb,_0x4db118,_0x331307,_0xfa57aa,_0x51bb75];}static get[_0x4dfd('0x0')](){return'Comments';}}
23
+ var _0x1afd=['pluginName','Comments','requires'];(function(_0x3ce69d,_0x1afdd8){var _0x2aaca9=function(_0x4ea9a9){while(--_0x4ea9a9){_0x3ce69d['push'](_0x3ce69d['shift']());}};_0x2aaca9(++_0x1afdd8);}(_0x1afd,0x164));var _0x2aac=function(_0x3ce69d,_0x1afdd8){_0x3ce69d=_0x3ce69d-0x0;var _0x2aaca9=_0x1afd[_0x3ce69d];return _0x2aaca9;};import{Plugin as _0x579450}from'ckeditor5/src/core';import _0x5d909b from'./comments/commentsrepository';import _0x4ade46 from'./comments/commentsediting';import _0x28e21a from'./comments/commentsui';import _0x521a8e from'./commentsonly';import _0x52abed from'./annotations/widesidebar';import _0x1f3331 from'./annotations/narrowsidebar';import _0x2e6162 from'./annotations/inlineannotations';import _0x2f9e66 from'./comments/commentsarchiveui';import _0x11fb1a from'./comments/commentsarchive';export default class f extends _0x579450{static get[_0x2aac('0x0')](){return[_0x5d909b,_0x4ade46,_0x28e21a,_0x11fb1a,_0x2f9e66,_0x521a8e,_0x52abed,_0x1f3331,_0x2e6162];}static get[_0x2aac('0x1')](){return _0x2aac('0x2');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x328a=['DragDrop','stop','commands','commentsOnlyMode','editing','delete','set','pluginName','requires','plugins','forceDisabled','affectsData','document','isEnabled','commentsOnly','highest','change:isEnabled','_disableCommentsOnlyMode','addCommentThread','CommentsOnly','listenTo','clearForceDisabled','view','_enableCommentsOnlyMode','has','editor','get','clipboardInput'];(function(_0x2c0e40,_0x328acd){const _0x206784=function(_0x4fafbe){while(--_0x4fafbe){_0x2c0e40['push'](_0x2c0e40['shift']());}};_0x206784(++_0x328acd);}(_0x328a,0x11d));const _0x2067=function(_0x2c0e40,_0x328acd){_0x2c0e40=_0x2c0e40-0x0;let _0x206784=_0x328a[_0x2c0e40];return _0x206784;};import{Plugin as _0x4d605d}from'ckeditor5/src/core';import _0x15b3d4 from'./comments/commentsediting';export default class n extends _0x4d605d{static get[_0x2067('0x2')](){return _0x2067('0xe');}static get[_0x2067('0x3')](){return[_0x15b3d4];}constructor(_0x4d2e89){super(_0x4d2e89),this[_0x2067('0x1')](_0x2067('0x8'),!0x1),this['on'](_0x2067('0xb'),(_0x144705,_0x4a0940,_0x5c6129)=>{_0x5c6129?this[_0x2067('0x12')]():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this[_0x2067('0x8')]&&this[_0x2067('0x14')]['config'][_0x2067('0x15')](_0x2067('0x9'))&&(this[_0x2067('0x8')]=!0x0);}[_0x2067('0x12')](){for(const [_0x3b8b83,_0x3a1ee5]of this['editor']['commands'])_0x3a1ee5[_0x2067('0x6')]&&'addCommentThread'!==_0x3b8b83&&_0x3a1ee5[_0x2067('0x5')](_0x2067('0x1a'));this['editor'][_0x2067('0x4')][_0x2067('0x13')](_0x2067('0x17'))&&this[_0x2067('0x14')][_0x2067('0x4')]['get'](_0x2067('0x17'))[_0x2067('0x5')](_0x2067('0x1a'));const _0x145296=this[_0x2067('0x14')][_0x2067('0x1b')][_0x2067('0x11')][_0x2067('0x7')];this[_0x2067('0xf')](_0x145296,'cut',_0x436828=>_0x436828[_0x2067('0x18')](),{'priority':_0x2067('0xa')}),this['listenTo'](_0x145296,_0x2067('0x16'),_0x46ded7=>_0x46ded7[_0x2067('0x18')](),{'priority':'highest'}),this['listenTo'](_0x145296,_0x2067('0x0'),_0x4355ee=>_0x4355ee[_0x2067('0x18')](),{'priority':_0x2067('0xa')});}[_0x2067('0xc')](){for(const [_0x256b01,_0x3cacd3]of this[_0x2067('0x14')][_0x2067('0x19')])_0x3cacd3[_0x2067('0x6')]&&_0x2067('0xd')!==_0x256b01&&_0x3cacd3[_0x2067('0x10')]('commentsOnlyMode');this['stopListening'](this[_0x2067('0x14')][_0x2067('0x1b')]['view'][_0x2067('0x7')]);}}
23
+ const _0x1ad2=['DragDrop','plugins','isEnabled','commands','get','document','set','change:isEnabled','editor','listenTo','view','CommentsOnly','stop','has','delete','requires','cut','editing','clearForceDisabled','commentsOnly','forceDisabled','highest','addCommentThread','_enableCommentsOnlyMode','_disableCommentsOnlyMode','pluginName','commentsOnlyMode','affectsData'];(function(_0x727801,_0x1ad25b){const _0x576bdf=function(_0x2f60f2){while(--_0x2f60f2){_0x727801['push'](_0x727801['shift']());}};_0x576bdf(++_0x1ad25b);}(_0x1ad2,0x82));const _0x576b=function(_0x727801,_0x1ad25b){_0x727801=_0x727801-0x0;let _0x576bdf=_0x1ad2[_0x727801];return _0x576bdf;};import{Plugin as _0x28dacb}from'ckeditor5/src/core';import _0x59f875 from'./comments/commentsediting';export default class n extends _0x28dacb{static get[_0x576b('0x7')](){return _0x576b('0x15');}static get[_0x576b('0x19')](){return[_0x59f875];}constructor(_0x1fccba){super(_0x1fccba),this[_0x576b('0x10')](_0x576b('0xc'),!0x1),this['on'](_0x576b('0x11'),(_0x6d9f40,_0x37dbe4,_0x39c354)=>{_0x39c354?this[_0x576b('0x5')]():this[_0x576b('0x6')]();});}['afterInit'](){!this['isEnabled']&&this[_0x576b('0x12')]['config'][_0x576b('0xe')](_0x576b('0x1'))&&(this['isEnabled']=!0x0);}[_0x576b('0x5')](){for(const [_0x4804ac,_0x17252c]of this[_0x576b('0x12')][_0x576b('0xd')])_0x17252c[_0x576b('0x9')]&&'addCommentThread'!==_0x4804ac&&_0x17252c['forceDisabled'](_0x576b('0x8'));this[_0x576b('0x12')][_0x576b('0xb')][_0x576b('0x17')](_0x576b('0xa'))&&this[_0x576b('0x12')][_0x576b('0xb')][_0x576b('0xe')]('DragDrop')[_0x576b('0x2')]('commentsOnlyMode');const _0x1907da=this['editor'][_0x576b('0x1b')][_0x576b('0x14')][_0x576b('0xf')];this[_0x576b('0x13')](_0x1907da,_0x576b('0x1a'),_0x5a9a98=>_0x5a9a98[_0x576b('0x16')](),{'priority':'highest'}),this[_0x576b('0x13')](_0x1907da,'clipboardInput',_0x60452d=>_0x60452d[_0x576b('0x16')](),{'priority':_0x576b('0x3')}),this['listenTo'](_0x1907da,_0x576b('0x18'),_0x32af51=>_0x32af51[_0x576b('0x16')](),{'priority':'highest'});}[_0x576b('0x6')](){for(const [_0x2f0c58,_0x123481]of this[_0x576b('0x12')][_0x576b('0xd')])_0x123481[_0x576b('0x9')]&&_0x576b('0x4')!==_0x2f0c58&&_0x123481[_0x576b('0x0')](_0x576b('0x8'));this['stopListening'](this[_0x576b('0x12')][_0x576b('0x1b')]['view'][_0x576b('0xf')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x5145e2,_0x321afc,_0x359389){const t=_0x5145e2['t'];switch(_0x321afc){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'},_0x359389);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'},_0x359389);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'},_0x359389);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'},_0x359389);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(_0x36669b,_0x38d8cb,_0x45903f){const t=_0x36669b['t'];switch(_0x38d8cb){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'},_0x45903f);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'},_0x45903f);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'},_0x45903f);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'},_0x45903f);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 _0xbbd6=['observe','childList','characterData','type','disconnect','cancel'];(function(_0xbde8c4,_0xbbd6e4){const _0x8d9d46=function(_0x26b0cb){while(--_0x26b0cb){_0xbde8c4['push'](_0xbde8c4['shift']());}};_0x8d9d46(++_0xbbd6e4);}(_0xbbd6,0x95));const _0x8d9d=function(_0xbde8c4,_0xbbd6e4){_0xbde8c4=_0xbde8c4-0x0;let _0x8d9d46=_0xbbd6[_0xbde8c4];return _0x8d9d46;};import{throttle as _0x7be3c7}from'lodash-es';export default function Dt(_0x3116c4){const _0x273f4a=_0x7be3c7(_0x3116c4,0x1e),_0x366b8a=new MutationObserver(_0x150f1c=>{for(const _0xadfabb of _0x150f1c)('attributes'==_0xadfabb[_0x8d9d('0x4')]&&'class'==_0xadfabb['attributeName']||_0x8d9d('0x2')==_0xadfabb['type']||_0x8d9d('0x3')==_0xadfabb[_0x8d9d('0x4')])&&_0x273f4a();});return{'attach'(_0x16711e){_0x366b8a[_0x8d9d('0x1')](_0x16711e,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x366b8a[_0x8d9d('0x5')](),_0x273f4a[_0x8d9d('0x0')]();}};}
23
+ const _0x5741=['disconnect','characterData','observe','type'];(function(_0x281d62,_0x57412f){const _0x1775be=function(_0x3fd26f){while(--_0x3fd26f){_0x281d62['push'](_0x281d62['shift']());}};_0x1775be(++_0x57412f);}(_0x5741,0x10c));const _0x1775=function(_0x281d62,_0x57412f){_0x281d62=_0x281d62-0x0;let _0x1775be=_0x5741[_0x281d62];return _0x1775be;};import{throttle as _0x49b422}from'lodash-es';export default function Dt(_0x47db38){const _0x3f57e3=_0x49b422(_0x47db38,0x1e),_0x3bd334=new MutationObserver(_0x590fd9=>{for(const _0x37b10a of _0x590fd9)('attributes'==_0x37b10a[_0x1775('0x3')]&&'class'==_0x37b10a['attributeName']||'childList'==_0x37b10a[_0x1775('0x3')]||_0x1775('0x1')==_0x37b10a['type'])&&_0x3f57e3();});return{'attach'(_0x53dc5d){_0x3bd334[_0x1775('0x2')](_0x53dc5d,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x3bd334[_0x1775('0x0')](),_0x3f57e3['cancel']();}};}