@ckeditor/ckeditor5-comments 40.1.0 → 40.2.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 (51) hide show
  1. package/CHANGELOG.md +19 -19
  2. package/README.md +1 -1
  3. package/build/comments.js +1 -1
  4. package/build/translations/gl.js +1 -1
  5. package/build/translations/sr-latn.js +1 -1
  6. package/build/translations/ug.js +1 -1
  7. package/lang/translations/gl.po +2 -2
  8. package/lang/translations/sr-latn.po +3 -3
  9. package/lang/translations/ug.po +10 -10
  10. package/package.json +3 -3
  11. package/src/annotations/annotation.js +1 -1
  12. package/src/annotations/annotationcollection.js +1 -1
  13. package/src/annotations/annotations.js +1 -1
  14. package/src/annotations/annotationsuis.js +1 -1
  15. package/src/annotations/editorannotations.js +1 -1
  16. package/src/annotations/inlineannotations.js +1 -1
  17. package/src/annotations/narrowsidebar.js +1 -1
  18. package/src/annotations/sidebar.js +1 -1
  19. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  20. package/src/annotations/view/annotationview.js +1 -1
  21. package/src/annotations/view/sidebaritemview.js +1 -1
  22. package/src/annotations/view/sidebarview.js +1 -1
  23. package/src/annotations/widesidebar.js +1 -1
  24. package/src/comments/addcommentthreadcommand.js +1 -1
  25. package/src/comments/commentsarchive.js +1 -1
  26. package/src/comments/commentsarchiveui.js +1 -1
  27. package/src/comments/commentsediting.js +1 -1
  28. package/src/comments/commentsrepository.d.ts +1 -0
  29. package/src/comments/commentsrepository.js +1 -1
  30. package/src/comments/commentsui.js +1 -1
  31. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  32. package/src/comments/integrations/importword.js +1 -1
  33. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  34. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  35. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  36. package/src/comments/ui/commentthreadcontroller.js +1 -1
  37. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  38. package/src/comments/ui/view/basecommentview.js +1 -1
  39. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  40. package/src/comments/ui/view/commentcontentview.js +1 -1
  41. package/src/comments/ui/view/commentinputview.js +1 -1
  42. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  43. package/src/comments/ui/view/commentslistview.js +1 -1
  44. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  45. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  46. package/src/comments/ui/view/commentthreadview.js +1 -1
  47. package/src/comments/ui/view/commentview.js +1 -1
  48. package/src/comments.js +1 -1
  49. package/src/commentsonly.js +1 -1
  50. package/src/utils/common-translations.js +1 -1
  51. package/src/utils/createmutationobserver.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3f68=['getTemplate','ck-annotation__user','isRemovable','isSystemComment','actionIndicator','Edit','creator','Show\x20more\x20items','removeButton','push','items','remove','ck-comment','ck-comment--info','bind','isEditMode','EXTERNAL_IMPORT_WORD_AVATAR','ck-comment__user','name','ck-annotation__content-wrapper','add','_createEditButton','dropdown','cancelConfirm','ck-comment--edit','isConfirm','visibleView','focus','_config','execute','showConfirm','time','length','mouseenter','author','ck-comment__external','withText','change:isRemovable','children','_createDropdown','formatDateTime','change:isEnabled','authoredAt','Reply...','_createCommentInputView','blur','buttonView','some','threeVerticalDots','ck-annotation__info-time','listenTo','getExternalCommentNote','source','setTemplate','attributes','_createRemoveButton','@external','ck-comment__actions','isEnabled','mouseleave','ck-comment--remove-confirmation','getUserViewNotificationText','resolvedAt','div','actionBar','userView','render','ck-comment__wrapper','ck-comment__actions--hidden','locale','span','isReadOnly','addMany','ck-annotation__actions--hidden','ck-comment__info-name','ck-comment__info','Delete\x20comment?','ck-comment__main','isExternal','ck-annotation__info-name','isVisible','fire','element','label','createCollection','ck-annotation__info','ck-annotation__main','icon','_model','_attachActions','ck-comment--remove','editButton','placeholder','set','EXTERNAL_COMMENT','extendTemplate','ck-comment__info-time','change:isVisible'];(function(_0x88d6d9,_0x3f6811){const _0xfff2f6=function(_0xa6e247){while(--_0xa6e247){_0x88d6d9['push'](_0x88d6d9['shift']());}};_0xfff2f6(++_0x3f6811);}(_0x3f68,0x87));const _0xfff2=function(_0x88d6d9,_0x3f6811){_0x88d6d9=_0x88d6d9-0x0;let _0xfff2f6=_0x3f68[_0x88d6d9];return _0xfff2f6;};import{ButtonView as _0x4b11df,createDropdown as _0x67b45f,ListView as _0x69a907,ListItemView as _0xea08d3}from'ckeditor5/src/ui';import{icons as _0xf29b24}from'ckeditor5/src/core';import{UserView as _0x56e606,ConfirmMixin as _0xdad38d}from'ckeditor5-collaboration/src/collaboration-core';import _0x2de0b4 from'./basecommentview';import _0x1013ff from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x5c715f}from'../../../utils/common-translations';export default class pt extends _0xdad38d(_0x2de0b4){constructor(_0x4c3609,_0x409bb0,_0x2aa1a8){super(_0x4c3609,_0x409bb0,_0x2aa1a8),this[_0xfff2('0x38')](_0xfff2('0x41'),null),this[_0xfff2('0x38')](_0xfff2('0x37'),_0x5c715f(_0x4c3609,_0xfff2('0x6'))),this[_0xfff2('0x4b')]('authoredAt')['to'](_0x409bb0),this['bind'](_0xfff2('0x19'))['to'](_0x409bb0),this[_0xfff2('0x1b')]=this['createCollection'](),this[_0xfff2('0x40')]||(this[_0xfff2('0x36')]=this[_0xfff2('0x52')](),this[_0xfff2('0x45')]=this[_0xfff2('0x12')](),this['items']=this[_0xfff2('0x2f')](),this[_0xfff2('0x47')][_0xfff2('0x23')]([this[_0xfff2('0x36')],this[_0xfff2('0x45')]]),this[_0xfff2('0x53')]=this[_0xfff2('0x2')](),this['actionBar'][_0xfff2('0x51')](this['dropdown'])),this['userView']=new _0x56e606(_0x4c3609,_0x409bb0[_0xfff2('0x5f')],this['getUserViewNotificationText']()),this[_0xfff2('0x1c')]['extendTemplate']({'attributes':{'class':[_0xfff2('0x4e'),_0xfff2('0x3e')]}}),this['listenTo'](_0x409bb0,_0xfff2('0x0'),()=>this[_0xfff2('0x54')]()),this[_0xfff2('0x10')](this[_0xfff2('0x3d')]());}[_0xfff2('0x3d')](){const _0xb3ca68=this['bindTemplate'],_0x15955d=[{'tag':_0xfff2('0x1a'),'attributes':{'class':[_0xfff2('0x26'),_0xfff2('0x30')]},'children':[{'tag':_0xfff2('0x21'),'children':[{'text':this['userView'][_0xfff2('0x4f')]}],'attributes':{'class':[_0xfff2('0x25'),_0xfff2('0x2a')]}},{'tag':_0xfff2('0x5c'),'attributes':{'datetime':_0xb3ca68['to'](_0xfff2('0x5')),'class':[_0xfff2('0x3b'),_0xfff2('0xc')]},'children':[{'text':_0xb3ca68['to']('authoredAt',_0x3f1eb4=>this[_0xfff2('0x59')][_0xfff2('0x3')](_0x3f1eb4))}]}]},{'tag':'div','attributes':{'class':[_0xfff2('0x14'),'ck-annotation__actions',_0xb3ca68['if'](_0xfff2('0x4c'),_0xfff2('0x1f')),_0xb3ca68['if'](_0xfff2('0x4c'),_0xfff2('0x24'))]},'children':this[_0xfff2('0x1b')]},{'tag':_0xfff2('0x1a'),'attributes':{'class':[_0xfff2('0x50')]},'children':this[_0xfff2('0x57')]}];return this[_0xfff2('0x33')]['isExternal']&&_0x15955d[_0xfff2('0x46')]({'tag':'div','attributes':{'class':[_0xfff2('0x60')]},'children':[{'text':this[_0xfff2('0xe')]()}]}),{'tag':'li','attributes':{'class':[_0xfff2('0x1e'),_0xb3ca68['if'](_0xfff2('0x56'),_0xfff2('0x17'))],'tabindex':-0x1},'children':[{'tag':_0xfff2('0x1a'),'attributes':{'class':[_0xfff2('0x49'),'ck-annotation',_0xb3ca68['if'](_0xfff2('0x4c'),_0xfff2('0x55')),_0xb3ca68['if'](_0xfff2('0x40'),_0xfff2('0x4a')),_0xb3ca68['to'](_0xfff2('0x41'),_0x1ba2ab=>_0x1ba2ab?'ck-comment--'+_0x1ba2ab:'')],'data-author-id':this[_0xfff2('0x33')]['author']['id'],'data-comment-id':this[_0xfff2('0x33')]['id']},'children':[this['userView'],{'tag':_0xfff2('0x1a'),'attributes':{'class':[_0xfff2('0x28'),_0xfff2('0x31')]},'children':_0x15955d}]}]};}[_0xfff2('0x52')](){const _0x333f04=new _0x4b11df(this['locale']);return _0x333f04[_0xfff2('0x2e')]=_0x5c715f(this[_0xfff2('0x20')],_0xfff2('0x42')),_0x333f04[_0xfff2('0x32')]=_0xf29b24['pencil'],_0x333f04['withText']=!0x0,_0x333f04[_0xfff2('0x3a')]({'attributes':{'class':'ck-comment--edit'}}),_0x333f04[_0xfff2('0x4b')]('isEnabled')['to'](this[_0xfff2('0x33')],_0xfff2('0x22'),_0x2fb666=>!_0x2fb666),_0x333f04[_0xfff2('0x4b')]('isVisible')['to'](this[_0xfff2('0x33')],'isEditable'),_0x333f04['on'](_0xfff2('0x5a'),()=>this['switchToEditMode']()),_0x333f04;}[_0xfff2('0x12')](){const _0xbc1184=new _0x4b11df(this[_0xfff2('0x20')]);return _0xbc1184[_0xfff2('0x2e')]=_0x5c715f(this[_0xfff2('0x20')],'Remove'),_0xbc1184[_0xfff2('0x32')]=_0x1013ff,_0xbc1184[_0xfff2('0x61')]=!0x0,_0xbc1184[_0xfff2('0x3a')]({'attributes':{'class':_0xfff2('0x35')}}),_0xbc1184['bind'](_0xfff2('0x15'))['to'](this['_model'],_0xfff2('0x22'),_0x48db13=>!_0x48db13),_0xbc1184[_0xfff2('0x4b')](_0xfff2('0x2b'))['to'](this['_model'],_0xfff2('0x3f')),_0xbc1184['on'](_0xfff2('0x5a'),()=>{this[_0xfff2('0x5b')](_0x5c715f(this[_0xfff2('0x20')],_0xfff2('0x27')),this[_0xfff2('0x2d')])['then'](()=>{this[_0xfff2('0x2c')]('removeComment',this[_0xfff2('0x33')]['id']);});}),_0xbc1184;}[_0xfff2('0x2')](){const _0x489b80=_0x67b45f(this[_0xfff2('0x20')]),_0x362829=_0x489b80['panelView'][_0xfff2('0x1')],_0x5dd62b=new _0x69a907(this['locale']),_0x28c17e=(_0x979b27,_0x1275e5=-0x1)=>{const _0x571b99=new _0xea08d3(this[_0xfff2('0x20')]);_0x571b99[_0xfff2('0x1')][_0xfff2('0x51')](_0x979b27);const _0x42cb3f=_0x1275e5>-0x1?_0x1275e5:_0x5dd62b[_0xfff2('0x47')][_0xfff2('0x5d')];_0x5dd62b[_0xfff2('0x47')][_0xfff2('0x51')](_0x571b99,_0x42cb3f),_0x489b80[_0xfff2('0xd')](_0x979b27,_0xfff2('0x4'),()=>{_0x489b80[_0xfff2('0x15')]=[...this[_0xfff2('0x47')]][_0xfff2('0xa')](_0x32f83a=>_0x32f83a['isEnabled']);}),_0x489b80[_0xfff2('0xd')](_0x979b27,_0xfff2('0x3c'),()=>{_0x489b80[_0xfff2('0x9')][_0xfff2('0x2b')]=[...this[_0xfff2('0x47')]][_0xfff2('0xa')](_0x337916=>_0x337916[_0xfff2('0x2b')]);});};_0x489b80['panelPosition']='sw',_0x489b80[_0xfff2('0x9')][_0xfff2('0x38')]({'label':_0x5c715f(this[_0xfff2('0x20')],_0xfff2('0x44')),'icon':_0xf29b24[_0xfff2('0xb')]}),_0x489b80['isEnabled']=[...this[_0xfff2('0x47')]]['some'](_0x51ddbf=>_0x51ddbf[_0xfff2('0x15')]),_0x489b80['buttonView'][_0xfff2('0x2b')]=[...this['items']][_0xfff2('0xa')](_0x201f8a=>_0x201f8a[_0xfff2('0x2b')]);for(const _0x72debb of this['items'])_0x28c17e(_0x72debb);return _0x362829[_0xfff2('0x51')](_0x5dd62b),_0x489b80[_0xfff2('0xd')](this[_0xfff2('0x47')],_0xfff2('0x51'),(_0x1a724f,_0xd6469a,_0x19a607)=>{_0x28c17e(_0xd6469a,_0x19a607);}),_0x489b80[_0xfff2('0xd')](this[_0xfff2('0x47')],_0xfff2('0x48'),(_0x4c26f5,_0x36dacb,_0x28d52c)=>{_0x5dd62b[_0xfff2('0x47')]['remove'](_0x28d52c);}),_0x489b80;}[_0xfff2('0x34')](_0x52826f,_0x29a96f){const _0x2c1345=_0x52826f&&_0x52826f['element'];_0x2c1345&&(this[_0xfff2('0xd')](_0x2c1345,_0xfff2('0x5e'),()=>this[_0xfff2('0x41')]=_0x29a96f),this[_0xfff2('0xd')](_0x2c1345,_0xfff2('0x58'),()=>this[_0xfff2('0x41')]=_0x29a96f),this['listenTo'](_0x2c1345,_0xfff2('0x16'),()=>this[_0xfff2('0x41')]=null),this['listenTo'](_0x2c1345,_0xfff2('0x8'),()=>this[_0xfff2('0x41')]=null));}[_0xfff2('0x7')](){const _0x332593=super[_0xfff2('0x7')]();return _0x332593[_0xfff2('0x4b')]('placeholder')['to'](this),_0x332593;}['getExternalCommentNote'](){return'importWord'===this[_0xfff2('0x33')][_0xfff2('0x11')][_0xfff2('0x13')][_0xfff2('0xf')]?_0x5c715f(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):_0x5c715f(this['locale'],_0xfff2('0x39'));}[_0xfff2('0x18')](){return this[_0xfff2('0x33')][_0xfff2('0x29')]?'importWord'===this[_0xfff2('0x33')][_0xfff2('0x11')][_0xfff2('0x13')][_0xfff2('0xf')]?_0x5c715f(this['locale'],_0xfff2('0x4d'),this[_0xfff2('0x33')][_0xfff2('0x43')]['name']):_0x5c715f(this[_0xfff2('0x20')],'EXTERNAL_AVATAR',this[_0xfff2('0x33')]['creator'][_0xfff2('0x4f')]):null;}[_0xfff2('0x1d')](){super[_0xfff2('0x1d')](),this[_0xfff2('0x34')](this['editButton'],'edit'),this[_0xfff2('0x34')](this[_0xfff2('0x45')],_0xfff2('0x48'));}}
23
+ const _0x48fe=['threeVerticalDots','withText','label','EXTERNAL_COMMENT','_model','getUserViewNotificationText','ck-annotation__content-wrapper','ck-comment--','items','ck-comment--remove-confirmation','authoredAt','buttonView','ck-annotation__info-name','render','placeholder','resolvedAt','ck-comment--remove','listenTo','ck-annotation__user','isEnabled','attributes','pencil','ck-comment__external','Reply...','edit','name','EXTERNAL_IMPORT_WORD_COMMENT','change:isVisible','author','removeButton','isSystemComment','element','div','set','then','actionIndicator','remove','ck-annotation__actions','_createRemoveButton','icon','some','isEditable','_createEditButton','add','visibleView','_createDropdown','_config','Edit','execute','_attachActions','bind','createCollection','ck-annotation__info-time','fire','mouseenter','change:isRemovable','actionBar','ck-comment__main','panelView','length','addMany','extendTemplate','ck-annotation__main','isVisible','switchToEditMode','Show\x20more\x20items','time','source','focus','EXTERNAL_IMPORT_WORD_AVATAR','isExternal','change:isEnabled','isEditMode','creator','ck-annotation__info','_createCommentInputView','push','mouseleave','ck-comment--info','getTemplate','setTemplate','ck-annotation__actions--hidden','dropdown','getExternalCommentNote','ck-comment__user','ck-comment__info-time','EXTERNAL_AVATAR','userView','editButton','cancelConfirm','locale','ck-comment--edit','isRemovable'];(function(_0x5855ca,_0x48feb5){const _0x1cbac6=function(_0x1f73ca){while(--_0x1f73ca){_0x5855ca['push'](_0x5855ca['shift']());}};_0x1cbac6(++_0x48feb5);}(_0x48fe,0x1d7));const _0x1cba=function(_0x5855ca,_0x48feb5){_0x5855ca=_0x5855ca-0x0;let _0x1cbac6=_0x48fe[_0x5855ca];return _0x1cbac6;};import{ButtonView as _0x3cfdd2,createDropdown as _0x2d9710,ListView as _0x589f3c,ListItemView as _0x5dced1}from'ckeditor5/src/ui';import{icons as _0xbdd823}from'ckeditor5/src/core';import{UserView as _0x3853fb,ConfirmMixin as _0x1ec7ca}from'ckeditor5-collaboration/src/collaboration-core';import _0x362b1e from'./basecommentview';import _0xeafeae from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x486c69}from'../../../utils/common-translations';export default class pt extends _0x1ec7ca(_0x362b1e){constructor(_0x2d7950,_0x94af1,_0x2b133d){super(_0x2d7950,_0x94af1,_0x2b133d),this[_0x1cba('0x1b')](_0x1cba('0x1d'),null),this[_0x1cba('0x1b')](_0x1cba('0x8'),_0x486c69(_0x2d7950,_0x1cba('0x11'))),this[_0x1cba('0x2c')](_0x1cba('0x4'))['to'](_0x94af1),this[_0x1cba('0x2c')](_0x1cba('0x9'))['to'](_0x94af1),this[_0x1cba('0x32')]=this[_0x1cba('0x2d')](),this[_0x1cba('0x18')]||(this[_0x1cba('0x52')]=this['_createEditButton'](),this[_0x1cba('0x17')]=this[_0x1cba('0x20')](),this[_0x1cba('0x2')]=this[_0x1cba('0x2d')](),this['items'][_0x1cba('0x36')]([this['editButton'],this[_0x1cba('0x17')]]),this[_0x1cba('0x4c')]=this[_0x1cba('0x27')](),this[_0x1cba('0x32')][_0x1cba('0x25')](this['dropdown'])),this['userView']=new _0x3853fb(_0x2d7950,_0x94af1[_0x1cba('0x16')],this[_0x1cba('0x5c')]()),this[_0x1cba('0x51')][_0x1cba('0x37')]({'attributes':{'class':[_0x1cba('0x4e'),_0x1cba('0xc')]}}),this[_0x1cba('0xb')](_0x94af1,_0x1cba('0x31'),()=>this[_0x1cba('0x53')]()),this[_0x1cba('0x4a')](this[_0x1cba('0x49')]());}[_0x1cba('0x49')](){const _0x172edb=this['bindTemplate'],_0x2b77f7=[{'tag':_0x1cba('0x1a'),'attributes':{'class':['ck-comment__info',_0x1cba('0x44')]},'children':[{'tag':'span','children':[{'text':this[_0x1cba('0x51')][_0x1cba('0x13')]}],'attributes':{'class':['ck-comment__info-name',_0x1cba('0x6')]}},{'tag':_0x1cba('0x3c'),'attributes':{'datetime':_0x172edb['to']('authoredAt'),'class':[_0x1cba('0x4f'),_0x1cba('0x2e')]},'children':[{'text':_0x172edb['to'](_0x1cba('0x4'),_0x499ae0=>this[_0x1cba('0x28')]['formatDateTime'](_0x499ae0))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions',_0x1cba('0x1f'),_0x172edb['if']('isEditMode','ck-comment__actions--hidden'),_0x172edb['if']('isEditMode',_0x1cba('0x4b'))]},'children':this[_0x1cba('0x32')]},{'tag':_0x1cba('0x1a'),'attributes':{'class':[_0x1cba('0x0')]},'children':this[_0x1cba('0x26')]}];return this[_0x1cba('0x5b')][_0x1cba('0x40')]&&_0x2b77f7[_0x1cba('0x46')]({'tag':_0x1cba('0x1a'),'attributes':{'class':[_0x1cba('0x10')]},'children':[{'text':this[_0x1cba('0x4d')]()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x172edb['if']('isConfirm',_0x1cba('0x3'))],'tabindex':-0x1},'children':[{'tag':_0x1cba('0x1a'),'attributes':{'class':['ck-comment','ck-annotation',_0x172edb['if'](_0x1cba('0x42'),'ck-comment--edit'),_0x172edb['if'](_0x1cba('0x18'),_0x1cba('0x48')),_0x172edb['to'](_0x1cba('0x1d'),_0x4fdc68=>_0x4fdc68?_0x1cba('0x1')+_0x4fdc68:'')],'data-author-id':this[_0x1cba('0x5b')]['author']['id'],'data-comment-id':this['_model']['id']},'children':[this[_0x1cba('0x51')],{'tag':_0x1cba('0x1a'),'attributes':{'class':[_0x1cba('0x33'),_0x1cba('0x38')]},'children':_0x2b77f7}]}]};}[_0x1cba('0x24')](){const _0x310e85=new _0x3cfdd2(this[_0x1cba('0x54')]);return _0x310e85[_0x1cba('0x59')]=_0x486c69(this[_0x1cba('0x54')],_0x1cba('0x29')),_0x310e85[_0x1cba('0x21')]=_0xbdd823[_0x1cba('0xf')],_0x310e85[_0x1cba('0x58')]=!0x0,_0x310e85[_0x1cba('0x37')]({'attributes':{'class':_0x1cba('0x55')}}),_0x310e85[_0x1cba('0x2c')](_0x1cba('0xd'))['to'](this['_model'],'isReadOnly',_0x1b9c3a=>!_0x1b9c3a),_0x310e85[_0x1cba('0x2c')](_0x1cba('0x39'))['to'](this[_0x1cba('0x5b')],_0x1cba('0x23')),_0x310e85['on']('execute',()=>this[_0x1cba('0x3a')]()),_0x310e85;}[_0x1cba('0x20')](){const _0x2d155a=new _0x3cfdd2(this[_0x1cba('0x54')]);return _0x2d155a[_0x1cba('0x59')]=_0x486c69(this[_0x1cba('0x54')],'Remove'),_0x2d155a['icon']=_0xeafeae,_0x2d155a[_0x1cba('0x58')]=!0x0,_0x2d155a[_0x1cba('0x37')]({'attributes':{'class':_0x1cba('0xa')}}),_0x2d155a[_0x1cba('0x2c')]('isEnabled')['to'](this[_0x1cba('0x5b')],'isReadOnly',_0x326304=>!_0x326304),_0x2d155a[_0x1cba('0x2c')](_0x1cba('0x39'))['to'](this[_0x1cba('0x5b')],_0x1cba('0x56')),_0x2d155a['on'](_0x1cba('0x2a'),()=>{this['showConfirm'](_0x486c69(this[_0x1cba('0x54')],'Delete\x20comment?'),this['element'])[_0x1cba('0x1c')](()=>{this[_0x1cba('0x2f')]('removeComment',this[_0x1cba('0x5b')]['id']);});}),_0x2d155a;}[_0x1cba('0x27')](){const _0x53cceb=_0x2d9710(this[_0x1cba('0x54')]),_0x54570c=_0x53cceb[_0x1cba('0x34')]['children'],_0x47059e=new _0x589f3c(this['locale']),_0x54683d=(_0x424d5e,_0x339095=-0x1)=>{const _0x30cc53=new _0x5dced1(this[_0x1cba('0x54')]);_0x30cc53['children']['add'](_0x424d5e);const _0x370f5d=_0x339095>-0x1?_0x339095:_0x47059e['items'][_0x1cba('0x35')];_0x47059e[_0x1cba('0x2')][_0x1cba('0x25')](_0x30cc53,_0x370f5d),_0x53cceb['listenTo'](_0x424d5e,_0x1cba('0x41'),()=>{_0x53cceb['isEnabled']=[...this[_0x1cba('0x2')]]['some'](_0x58b96f=>_0x58b96f[_0x1cba('0xd')]);}),_0x53cceb[_0x1cba('0xb')](_0x424d5e,_0x1cba('0x15'),()=>{_0x53cceb[_0x1cba('0x5')][_0x1cba('0x39')]=[...this[_0x1cba('0x2')]][_0x1cba('0x22')](_0x1ada26=>_0x1ada26[_0x1cba('0x39')]);});};_0x53cceb['panelPosition']='sw',_0x53cceb['buttonView'][_0x1cba('0x1b')]({'label':_0x486c69(this[_0x1cba('0x54')],_0x1cba('0x3b')),'icon':_0xbdd823[_0x1cba('0x57')]}),_0x53cceb['isEnabled']=[...this[_0x1cba('0x2')]][_0x1cba('0x22')](_0x4f9274=>_0x4f9274[_0x1cba('0xd')]),_0x53cceb['buttonView'][_0x1cba('0x39')]=[...this[_0x1cba('0x2')]]['some'](_0x13f43a=>_0x13f43a[_0x1cba('0x39')]);for(const _0x342d22 of this[_0x1cba('0x2')])_0x54683d(_0x342d22);return _0x54570c['add'](_0x47059e),_0x53cceb[_0x1cba('0xb')](this['items'],_0x1cba('0x25'),(_0x52442f,_0xc0c66e,_0x5d0939)=>{_0x54683d(_0xc0c66e,_0x5d0939);}),_0x53cceb[_0x1cba('0xb')](this[_0x1cba('0x2')],_0x1cba('0x1e'),(_0x5e362f,_0x466ae6,_0x3f45e1)=>{_0x47059e['items']['remove'](_0x3f45e1);}),_0x53cceb;}[_0x1cba('0x2b')](_0x559145,_0x3a5d7a){const _0x5a2a40=_0x559145&&_0x559145[_0x1cba('0x19')];_0x5a2a40&&(this[_0x1cba('0xb')](_0x5a2a40,_0x1cba('0x30'),()=>this[_0x1cba('0x1d')]=_0x3a5d7a),this[_0x1cba('0xb')](_0x5a2a40,_0x1cba('0x3e'),()=>this[_0x1cba('0x1d')]=_0x3a5d7a),this[_0x1cba('0xb')](_0x5a2a40,_0x1cba('0x47'),()=>this['actionIndicator']=null),this[_0x1cba('0xb')](_0x5a2a40,'blur',()=>this[_0x1cba('0x1d')]=null));}[_0x1cba('0x45')](){const _0x23fc0a=super['_createCommentInputView']();return _0x23fc0a['bind'](_0x1cba('0x8'))['to'](this),_0x23fc0a;}['getExternalCommentNote'](){return'importWord'===this[_0x1cba('0x5b')][_0x1cba('0xe')]['@external'][_0x1cba('0x3d')]?_0x486c69(this[_0x1cba('0x54')],_0x1cba('0x14')):_0x486c69(this[_0x1cba('0x54')],_0x1cba('0x5a'));}[_0x1cba('0x5c')](){return this[_0x1cba('0x5b')][_0x1cba('0x40')]?'importWord'===this[_0x1cba('0x5b')]['attributes']['@external']['source']?_0x486c69(this[_0x1cba('0x54')],_0x1cba('0x3f'),this['_model'][_0x1cba('0x43')]['name']):_0x486c69(this[_0x1cba('0x54')],_0x1cba('0x50'),this['_model'][_0x1cba('0x43')][_0x1cba('0x13')]):null;}[_0x1cba('0x7')](){super[_0x1cba('0x7')](),this['_attachActions'](this[_0x1cba('0x52')],_0x1cba('0x12')),this['_attachActions'](this[_0x1cba('0x17')],_0x1cba('0x1e'));}}
package/src/comments.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x431e=['requires','Comments','pluginName'];(function(_0x3e4e76,_0x431e2e){var _0x4e6b4f=function(_0x2346f5){while(--_0x2346f5){_0x3e4e76['push'](_0x3e4e76['shift']());}};_0x4e6b4f(++_0x431e2e);}(_0x431e,0x169));var _0x4e6b=function(_0x3e4e76,_0x431e2e){_0x3e4e76=_0x3e4e76-0x0;var _0x4e6b4f=_0x431e[_0x3e4e76];return _0x4e6b4f;};import{Plugin as _0x3ff078}from'ckeditor5/src/core';import _0x2a9d29 from'./comments/commentsrepository';import _0x1cb983 from'./comments/commentsediting';import _0x56439d from'./comments/commentsui';import _0x19f712 from'./commentsonly';import _0x5cde61 from'./annotations/widesidebar';import _0x1b038c from'./annotations/narrowsidebar';import _0x3eb411 from'./annotations/inlineannotations';import _0xed6134 from'./comments/commentsarchiveui';import _0xf067d9 from'./comments/commentsarchive';export default class f extends _0x3ff078{static get[_0x4e6b('0x2')](){return[_0x2a9d29,_0x1cb983,_0x56439d,_0xf067d9,_0xed6134,_0x19f712,_0x5cde61,_0x1b038c,_0x3eb411];}static get[_0x4e6b('0x1')](){return _0x4e6b('0x0');}}
23
+ var _0x20b3=['pluginName','Comments'];(function(_0x5aa353,_0x20b3a7){var _0x49cacd=function(_0x15a2f7){while(--_0x15a2f7){_0x5aa353['push'](_0x5aa353['shift']());}};_0x49cacd(++_0x20b3a7);}(_0x20b3,0x1e1));var _0x49ca=function(_0x5aa353,_0x20b3a7){_0x5aa353=_0x5aa353-0x0;var _0x49cacd=_0x20b3[_0x5aa353];return _0x49cacd;};import{Plugin as _0x192fa8}from'ckeditor5/src/core';import _0x2e7169 from'./comments/commentsrepository';import _0x522d09 from'./comments/commentsediting';import _0x4f4e6b from'./comments/commentsui';import _0x3c0833 from'./commentsonly';import _0x303cb9 from'./annotations/widesidebar';import _0x503fb7 from'./annotations/narrowsidebar';import _0x436aa3 from'./annotations/inlineannotations';import _0x4d582c from'./comments/commentsarchiveui';import _0x252ba5 from'./comments/commentsarchive';export default class f extends _0x192fa8{static get['requires'](){return[_0x2e7169,_0x522d09,_0x4f4e6b,_0x252ba5,_0x4d582c,_0x3c0833,_0x303cb9,_0x503fb7,_0x436aa3];}static get[_0x49ca('0x1')](){return _0x49ca('0x0');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x9eab=['editor','set','affectsData','DragDrop','pluginName','view','stop','highest','afterInit','has','document','stopListening','editing','cut','get','isEnabled','listenTo','_disableCommentsOnlyMode','commands','forceDisabled','_enableCommentsOnlyMode','commentsOnly','delete','addCommentThread','requires','commentsOnlyMode','CommentsOnly','plugins'];(function(_0x180c1d,_0x9eabad){const _0x1879d7=function(_0x278d04){while(--_0x278d04){_0x180c1d['push'](_0x180c1d['shift']());}};_0x1879d7(++_0x9eabad);}(_0x9eab,0xc9));const _0x1879=function(_0x180c1d,_0x9eabad){_0x180c1d=_0x180c1d-0x0;let _0x1879d7=_0x9eab[_0x180c1d];return _0x1879d7;};import{Plugin as _0x5717bf}from'ckeditor5/src/core';import _0x3954e1 from'./comments/commentsediting';export default class n extends _0x5717bf{static get[_0x1879('0x1b')](){return _0x1879('0x15');}static get[_0x1879('0x13')](){return[_0x3954e1];}constructor(_0x9f61d1){super(_0x9f61d1),this[_0x1879('0x18')](_0x1879('0xa'),!0x1),this['on']('change:isEnabled',(_0x403db2,_0xe4334f,_0x110fda)=>{_0x110fda?this[_0x1879('0xf')]():this[_0x1879('0xc')]();});}[_0x1879('0x3')](){!this[_0x1879('0xa')]&&this[_0x1879('0x17')]['config'][_0x1879('0x9')](_0x1879('0x10'))&&(this[_0x1879('0xa')]=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x210d2e,_0x1b6141]of this[_0x1879('0x17')][_0x1879('0xd')])_0x1b6141[_0x1879('0x19')]&&_0x1879('0x12')!==_0x210d2e&&_0x1b6141[_0x1879('0xe')](_0x1879('0x14'));this[_0x1879('0x17')][_0x1879('0x16')][_0x1879('0x4')](_0x1879('0x1a'))&&this['editor']['plugins'][_0x1879('0x9')](_0x1879('0x1a'))[_0x1879('0xe')](_0x1879('0x14'));const _0x4f8ad8=this[_0x1879('0x17')][_0x1879('0x7')][_0x1879('0x0')][_0x1879('0x5')];this[_0x1879('0xb')](_0x4f8ad8,_0x1879('0x8'),_0x33cf4e=>_0x33cf4e[_0x1879('0x1')](),{'priority':_0x1879('0x2')}),this[_0x1879('0xb')](_0x4f8ad8,'clipboardInput',_0x15d9e6=>_0x15d9e6[_0x1879('0x1')](),{'priority':_0x1879('0x2')}),this['listenTo'](_0x4f8ad8,_0x1879('0x11'),_0x329abb=>_0x329abb['stop'](),{'priority':_0x1879('0x2')});}['_disableCommentsOnlyMode'](){for(const [_0x17c91c,_0x18e5af]of this[_0x1879('0x17')]['commands'])_0x18e5af[_0x1879('0x19')]&&_0x1879('0x12')!==_0x17c91c&&_0x18e5af['clearForceDisabled'](_0x1879('0x14'));this[_0x1879('0x6')](this['editor']['editing'][_0x1879('0x0')][_0x1879('0x5')]);}}
23
+ const _0x1b09=['change:isEnabled','set','stopListening','_enableCommentsOnlyMode','stop','get','affectsData','cut','addCommentThread','editor','_disableCommentsOnlyMode','DragDrop','editing','highest','commands','listenTo','document','afterInit','delete','view','requires','clipboardInput','plugins','isEnabled','has','pluginName','CommentsOnly','commentsOnlyMode'];(function(_0x37d237,_0x1b0924){const _0x693e72=function(_0x7deaa8){while(--_0x7deaa8){_0x37d237['push'](_0x37d237['shift']());}};_0x693e72(++_0x1b0924);}(_0x1b09,0x14e));const _0x693e=function(_0x37d237,_0x1b0924){_0x37d237=_0x37d237-0x0;let _0x693e72=_0x1b09[_0x37d237];return _0x693e72;};import{Plugin as _0x4a7d83}from'ckeditor5/src/core';import _0x3cd906 from'./comments/commentsediting';export default class n extends _0x4a7d83{static get[_0x693e('0x1b')](){return _0x693e('0x0');}static get[_0x693e('0x16')](){return[_0x3cd906];}constructor(_0x1d24f2){super(_0x1d24f2),this[_0x693e('0x3')]('isEnabled',!0x1),this['on'](_0x693e('0x2'),(_0x3f3131,_0x2719d9,_0x140775)=>{_0x140775?this[_0x693e('0x5')]():this[_0x693e('0xc')]();});}[_0x693e('0x13')](){!this[_0x693e('0x19')]&&this[_0x693e('0xb')]['config'][_0x693e('0x7')]('commentsOnly')&&(this[_0x693e('0x19')]=!0x0);}[_0x693e('0x5')](){for(const [_0x3dee14,_0x4935aa]of this[_0x693e('0xb')][_0x693e('0x10')])_0x4935aa['affectsData']&&_0x693e('0xa')!==_0x3dee14&&_0x4935aa['forceDisabled'](_0x693e('0x1'));this[_0x693e('0xb')][_0x693e('0x18')][_0x693e('0x1a')](_0x693e('0xd'))&&this[_0x693e('0xb')]['plugins']['get'](_0x693e('0xd'))['forceDisabled'](_0x693e('0x1'));const _0x4dd045=this[_0x693e('0xb')]['editing']['view'][_0x693e('0x12')];this[_0x693e('0x11')](_0x4dd045,_0x693e('0x9'),_0x437953=>_0x437953[_0x693e('0x6')](),{'priority':_0x693e('0xf')}),this[_0x693e('0x11')](_0x4dd045,_0x693e('0x17'),_0x4026d7=>_0x4026d7['stop'](),{'priority':_0x693e('0xf')}),this[_0x693e('0x11')](_0x4dd045,_0x693e('0x14'),_0x4ab09a=>_0x4ab09a['stop'](),{'priority':_0x693e('0xf')});}[_0x693e('0xc')](){for(const [_0x258110,_0x45f9b2]of this[_0x693e('0xb')]['commands'])_0x45f9b2[_0x693e('0x8')]&&_0x693e('0xa')!==_0x258110&&_0x45f9b2['clearForceDisabled'](_0x693e('0x1'));this[_0x693e('0x4')](this['editor'][_0x693e('0xe')][_0x693e('0x15')][_0x693e('0x12')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x5d5eba,_0x21c754,_0x5aa97e){const t=_0x5d5eba['t'];switch(_0x21c754){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'},_0x5aa97e);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'},_0x5aa97e);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'},_0x5aa97e);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'},_0x5aa97e);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(_0x2d7dad,_0x4fcbf7,_0x56e142){const t=_0x2d7dad['t'];switch(_0x4fcbf7){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'},_0x56e142);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'},_0x56e142);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'},_0x56e142);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'},_0x56e142);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 _0x3501=['disconnect','attributes','cancel','class','type','observe','childList','characterData'];(function(_0x25f005,_0x350107){const _0x24c8f5=function(_0x3b15ce){while(--_0x3b15ce){_0x25f005['push'](_0x25f005['shift']());}};_0x24c8f5(++_0x350107);}(_0x3501,0x103));const _0x24c8=function(_0x25f005,_0x350107){_0x25f005=_0x25f005-0x0;let _0x24c8f5=_0x3501[_0x25f005];return _0x24c8f5;};import{throttle as _0x2a73a2}from'lodash-es';export default function Dt(_0x3debe7){const _0x536907=_0x2a73a2(_0x3debe7,0x1e),_0x3f89fe=new MutationObserver(_0x53f00b=>{for(const _0x44f3c4 of _0x53f00b)(_0x24c8('0x6')==_0x44f3c4[_0x24c8('0x1')]&&_0x24c8('0x0')==_0x44f3c4['attributeName']||_0x24c8('0x3')==_0x44f3c4[_0x24c8('0x1')]||_0x24c8('0x4')==_0x44f3c4['type'])&&_0x536907();});return{'attach'(_0x18d16f){_0x3f89fe[_0x24c8('0x2')](_0x18d16f,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x3f89fe[_0x24c8('0x5')](),_0x536907[_0x24c8('0x7')]();}};}
23
+ const _0x5adc=['class','attributes','observe','disconnect','type'];(function(_0x35d041,_0x5adc7b){const _0x14d3ad=function(_0xd86414){while(--_0xd86414){_0x35d041['push'](_0x35d041['shift']());}};_0x14d3ad(++_0x5adc7b);}(_0x5adc,0x146));const _0x14d3=function(_0x35d041,_0x5adc7b){_0x35d041=_0x35d041-0x0;let _0x14d3ad=_0x5adc[_0x35d041];return _0x14d3ad;};import{throttle as _0x3e8be4}from'lodash-es';export default function Dt(_0x57097){const _0x56af31=_0x3e8be4(_0x57097,0x1e),_0x47b1ab=new MutationObserver(_0x41b608=>{for(const _0x40eef9 of _0x41b608)(_0x14d3('0x0')==_0x40eef9[_0x14d3('0x3')]&&_0x14d3('0x4')==_0x40eef9['attributeName']||'childList'==_0x40eef9[_0x14d3('0x3')]||'characterData'==_0x40eef9[_0x14d3('0x3')])&&_0x56af31();});return{'attach'(_0x38c83b){_0x47b1ab[_0x14d3('0x1')](_0x38c83b,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x47b1ab[_0x14d3('0x2')](),_0x56af31['cancel']();}};}