@ckeditor/ckeditor5-comments 0.0.0-nightly-20230822.0 → 0.0.0-nightly-20230823.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 _0x5875=['ck-comment__actions--hidden','isEditable','actionIndicator','buttonView','change:isRemovable','EXTERNAL_COMMENT','listenTo','ck-comment--edit','bindTemplate','isRemovable','change:isVisible','Edit','items','_createEditButton','time','label','blur','_model','remove','isExternal','authoredAt','ck-annotation__info-time','removeButton','add','userView','ck-annotation','ck-annotation__actions','icon','ck-annotation__content-wrapper','dropdown','element','render','EXTERNAL_AVATAR','then','ck-comment__user','formatDateTime','createCollection','push','isVisible','extendTemplate','withText','locale','ck-annotation__info-name','_createRemoveButton','switchToEditMode','editButton','some','@external','_attachActions','focus','setTemplate','name','ck-comment--','addMany','_createDropdown','_config','ck-comment','ck-annotation__main','set','isEditMode','actionBar','_createCommentInputView','cancelConfirm','placeholder','ck-comment__info-name','edit','ck-annotation__user','ck-comment__external','ck-annotation__actions--hidden','author','ck-comment__actions','getUserViewNotificationText','source','isReadOnly','fire','change:isEnabled','EXTERNAL_IMPORT_WORD_COMMENT','EXTERNAL_IMPORT_WORD_AVATAR','isSystemComment','panelPosition','ck-comment--info','ck-comment__wrapper','attributes','Remove','div','threeVerticalDots','execute','isEnabled','bind','children','creator','ck-comment--remove-confirmation','isConfirm','span','ck-comment__info','Show\x20more\x20items','mouseenter','showConfirm','getExternalCommentNote'];(function(_0x5d294a,_0x5875ca){const _0x18c5c0=function(_0x171e2a){while(--_0x171e2a){_0x5d294a['push'](_0x5d294a['shift']());}};_0x18c5c0(++_0x5875ca);}(_0x5875,0x1eb));const _0x18c5=function(_0x5d294a,_0x5875ca){_0x5d294a=_0x5d294a-0x0;let _0x18c5c0=_0x5875[_0x5d294a];return _0x18c5c0;};import{ButtonView as _0x4a431d,createDropdown as _0x25f7b1,ListView as _0x180e08,ListItemView as _0x30a075}from'ckeditor5/src/ui';import{icons as _0x3e1275}from'ckeditor5/src/core';import{UserView as _0x4cddc8,ConfirmMixin as _0x2a5c18}from'ckeditor5-collaboration/src/collaboration-core';import _0x187f16 from'./basecommentview';import _0x4f6be3 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x26a082}from'../../../utils/common-translations';export default class ut extends _0x2a5c18(_0x187f16){constructor(_0x5d439a,_0x5450e5,_0x3cca0b){super(_0x5d439a,_0x5450e5,_0x3cca0b),this[_0x18c5('0x3e')](_0x18c5('0x6'),null),this['set'](_0x18c5('0x43'),_0x26a082(_0x5d439a,'Reply...')),this[_0x18c5('0x5c')](_0x18c5('0x18'))['to'](_0x5450e5),this[_0x18c5('0x5c')]('resolvedAt')['to'](_0x5450e5),this['actionBar']=this[_0x18c5('0x28')](),this[_0x18c5('0x52')]||(this[_0x18c5('0x31')]=this[_0x18c5('0x11')](),this[_0x18c5('0x1a')]=this[_0x18c5('0x2f')](),this[_0x18c5('0x10')]=this[_0x18c5('0x28')](),this[_0x18c5('0x10')][_0x18c5('0x39')]([this['editButton'],this[_0x18c5('0x1a')]]),this[_0x18c5('0x21')]=this[_0x18c5('0x3a')](),this[_0x18c5('0x40')]['add'](this[_0x18c5('0x21')])),this[_0x18c5('0x1c')]=new _0x4cddc8(_0x5d439a,_0x5450e5[_0x18c5('0x49')],this[_0x18c5('0x4b')]()),this[_0x18c5('0x1c')][_0x18c5('0x2b')]({'attributes':{'class':[_0x18c5('0x26'),_0x18c5('0x46')]}}),this[_0x18c5('0xa')](_0x5450e5,_0x18c5('0x8'),()=>this[_0x18c5('0x42')]()),this[_0x18c5('0x36')](this['getTemplate']());}['getTemplate'](){const _0x119a1d=this[_0x18c5('0xc')],_0x46c112=[{'tag':_0x18c5('0x58'),'attributes':{'class':[_0x18c5('0x62'),'ck-annotation__info']},'children':[{'tag':_0x18c5('0x61'),'children':[{'text':this[_0x18c5('0x1c')][_0x18c5('0x37')]}],'attributes':{'class':[_0x18c5('0x44'),_0x18c5('0x2e')]}},{'tag':_0x18c5('0x12'),'attributes':{'datetime':_0x119a1d['to'](_0x18c5('0x18')),'class':['ck-comment__info-time',_0x18c5('0x19')]},'children':[{'text':_0x119a1d['to']('authoredAt',_0x2a8c92=>this[_0x18c5('0x3b')][_0x18c5('0x27')](_0x2a8c92))}]}]},{'tag':'div','attributes':{'class':[_0x18c5('0x4a'),_0x18c5('0x1e'),_0x119a1d['if'](_0x18c5('0x3f'),_0x18c5('0x4')),_0x119a1d['if']('isEditMode',_0x18c5('0x48'))]},'children':this[_0x18c5('0x40')]},{'tag':'div','attributes':{'class':[_0x18c5('0x20')]},'children':this['visibleView']}];return this[_0x18c5('0x15')]['isExternal']&&_0x46c112[_0x18c5('0x29')]({'tag':_0x18c5('0x58'),'attributes':{'class':[_0x18c5('0x47')]},'children':[{'text':this[_0x18c5('0x3')]()}]}),{'tag':'li','attributes':{'class':[_0x18c5('0x55'),_0x119a1d['if'](_0x18c5('0x60'),_0x18c5('0x5f'))],'tabindex':-0x1},'children':[{'tag':_0x18c5('0x58'),'attributes':{'class':[_0x18c5('0x3c'),_0x18c5('0x1d'),_0x119a1d['if'](_0x18c5('0x3f'),_0x18c5('0xb')),_0x119a1d['if'](_0x18c5('0x52'),_0x18c5('0x54')),_0x119a1d['to'](_0x18c5('0x6'),_0x4f148b=>_0x4f148b?_0x18c5('0x38')+_0x4f148b:'')],'data-author-id':this[_0x18c5('0x15')]['author']['id'],'data-comment-id':this['_model']['id']},'children':[this[_0x18c5('0x1c')],{'tag':_0x18c5('0x58'),'attributes':{'class':['ck-comment__main',_0x18c5('0x3d')]},'children':_0x46c112}]}]};}['_createEditButton'](){const _0x454f4=new _0x4a431d(this[_0x18c5('0x2d')]);return _0x454f4[_0x18c5('0x13')]=_0x26a082(this[_0x18c5('0x2d')],_0x18c5('0xf')),_0x454f4[_0x18c5('0x1f')]=_0x3e1275['pencil'],_0x454f4['withText']=!0x0,_0x454f4[_0x18c5('0x2b')]({'attributes':{'class':'ck-comment--edit'}}),_0x454f4[_0x18c5('0x5c')](_0x18c5('0x5b'))['to'](this[_0x18c5('0x15')],'isReadOnly',_0x345371=>!_0x345371),_0x454f4[_0x18c5('0x5c')](_0x18c5('0x2a'))['to'](this[_0x18c5('0x15')],_0x18c5('0x5')),_0x454f4['on'](_0x18c5('0x5a'),()=>this[_0x18c5('0x30')]()),_0x454f4;}[_0x18c5('0x2f')](){const _0x398748=new _0x4a431d(this[_0x18c5('0x2d')]);return _0x398748[_0x18c5('0x13')]=_0x26a082(this[_0x18c5('0x2d')],_0x18c5('0x57')),_0x398748[_0x18c5('0x1f')]=_0x4f6be3,_0x398748[_0x18c5('0x2c')]=!0x0,_0x398748['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x398748[_0x18c5('0x5c')](_0x18c5('0x5b'))['to'](this['_model'],_0x18c5('0x4d'),_0x308159=>!_0x308159),_0x398748['bind']('isVisible')['to'](this['_model'],_0x18c5('0xd')),_0x398748['on'](_0x18c5('0x5a'),()=>{this[_0x18c5('0x2')](_0x26a082(this[_0x18c5('0x2d')],'Delete\x20comment?'),this[_0x18c5('0x22')])[_0x18c5('0x25')](()=>{this[_0x18c5('0x4e')]('removeComment',this[_0x18c5('0x15')]['id']);});}),_0x398748;}[_0x18c5('0x3a')](){const _0x4e54bd=_0x25f7b1(this[_0x18c5('0x2d')]),_0x3a8282=_0x4e54bd['panelView'][_0x18c5('0x5d')],_0x4467a0=new _0x180e08(this[_0x18c5('0x2d')]),_0x5805c6=(_0x2ab279,_0x5621b4=-0x1)=>{const _0x2221eb=new _0x30a075(this['locale']);_0x2221eb[_0x18c5('0x5d')][_0x18c5('0x1b')](_0x2ab279);const _0x2b6583=_0x5621b4>-0x1?_0x5621b4:_0x4467a0[_0x18c5('0x10')]['length'];_0x4467a0['items'][_0x18c5('0x1b')](_0x2221eb,_0x2b6583),_0x4e54bd[_0x18c5('0xa')](_0x2ab279,_0x18c5('0x4f'),()=>{_0x4e54bd[_0x18c5('0x5b')]=[...this['items']]['some'](_0x36b7db=>_0x36b7db[_0x18c5('0x5b')]);}),_0x4e54bd['listenTo'](_0x2ab279,_0x18c5('0xe'),()=>{_0x4e54bd[_0x18c5('0x7')]['isVisible']=[...this['items']][_0x18c5('0x32')](_0xd3fc8f=>_0xd3fc8f[_0x18c5('0x2a')]);});};_0x4e54bd[_0x18c5('0x53')]='sw',_0x4e54bd['buttonView'][_0x18c5('0x3e')]({'label':_0x26a082(this[_0x18c5('0x2d')],_0x18c5('0x0')),'icon':_0x3e1275[_0x18c5('0x59')]}),_0x4e54bd['isEnabled']=[...this[_0x18c5('0x10')]][_0x18c5('0x32')](_0x4dd728=>_0x4dd728['isEnabled']),_0x4e54bd['buttonView'][_0x18c5('0x2a')]=[...this[_0x18c5('0x10')]][_0x18c5('0x32')](_0x3942bd=>_0x3942bd[_0x18c5('0x2a')]);for(const _0x427bc2 of this[_0x18c5('0x10')])_0x5805c6(_0x427bc2);return _0x3a8282[_0x18c5('0x1b')](_0x4467a0),_0x4e54bd[_0x18c5('0xa')](this[_0x18c5('0x10')],_0x18c5('0x1b'),(_0x340719,_0x1053f9,_0xa5f1cc)=>{_0x5805c6(_0x1053f9,_0xa5f1cc);}),_0x4e54bd[_0x18c5('0xa')](this[_0x18c5('0x10')],_0x18c5('0x16'),(_0x1fd0c4,_0x37415c,_0x434056)=>{_0x4467a0[_0x18c5('0x10')][_0x18c5('0x16')](_0x434056);}),_0x4e54bd;}['_attachActions'](_0x54190a,_0x3aa39a){const _0x455ac8=_0x54190a&&_0x54190a['element'];_0x455ac8&&(this[_0x18c5('0xa')](_0x455ac8,_0x18c5('0x1'),()=>this[_0x18c5('0x6')]=_0x3aa39a),this[_0x18c5('0xa')](_0x455ac8,_0x18c5('0x35'),()=>this[_0x18c5('0x6')]=_0x3aa39a),this['listenTo'](_0x455ac8,'mouseleave',()=>this['actionIndicator']=null),this[_0x18c5('0xa')](_0x455ac8,_0x18c5('0x14'),()=>this[_0x18c5('0x6')]=null));}['_createCommentInputView'](){const _0x29f66d=super[_0x18c5('0x41')]();return _0x29f66d[_0x18c5('0x5c')](_0x18c5('0x43'))['to'](this),_0x29f66d;}[_0x18c5('0x3')](){return'importWord'===this['_model'][_0x18c5('0x56')][_0x18c5('0x33')][_0x18c5('0x4c')]?_0x26a082(this[_0x18c5('0x2d')],_0x18c5('0x50')):_0x26a082(this[_0x18c5('0x2d')],_0x18c5('0x9'));}[_0x18c5('0x4b')](){return this['_model'][_0x18c5('0x17')]?'importWord'===this[_0x18c5('0x15')][_0x18c5('0x56')][_0x18c5('0x33')][_0x18c5('0x4c')]?_0x26a082(this[_0x18c5('0x2d')],_0x18c5('0x51'),this[_0x18c5('0x15')][_0x18c5('0x5e')][_0x18c5('0x37')]):_0x26a082(this[_0x18c5('0x2d')],_0x18c5('0x24'),this['_model'][_0x18c5('0x5e')][_0x18c5('0x37')]):null;}[_0x18c5('0x23')](){super[_0x18c5('0x23')](),this[_0x18c5('0x34')](this['editButton'],_0x18c5('0x45')),this['_attachActions'](this[_0x18c5('0x1a')],_0x18c5('0x16'));}}
23
+ const _0x3052=['name','getTemplate','EXTERNAL_IMPORT_WORD_COMMENT','isRemovable','buttonView','creator','ck-annotation__user','isReadOnly','_attachActions','isVisible','change:isVisible','ck-annotation__main','ck-annotation__info-name','edit','isEnabled','importWord','ck-annotation__content-wrapper','label','time','ck-comment--remove','_config','threeVerticalDots','ck-annotation','some','length','mouseleave','setTemplate','items','author','userView','set','div','switchToEditMode','_model','getExternalCommentNote','icon','fire','@external','locale','extendTemplate','change:isRemovable','Remove','removeComment','editButton','ck-comment__info-name','remove','ck-comment__actions--hidden','ck-comment--remove-confirmation','listenTo','placeholder','isEditMode','ck-annotation__info-time','ck-comment__info-time','addMany','removeButton','isEditable','_createCommentInputView','_createRemoveButton','showConfirm','_createEditButton','execute','children','authoredAt','resolvedAt','EXTERNAL_IMPORT_WORD_AVATAR','ck-comment--edit','visibleView','dropdown','getUserViewNotificationText','element','panelView','source','ck-comment__external','panelPosition','isExternal','actionBar','isSystemComment','bind','_createDropdown','ck-comment__actions','ck-comment__info','formatDateTime','withText','push','createCollection','actionIndicator','attributes','Show\x20more\x20items','Delete\x20comment?','isConfirm','Reply...','add'];(function(_0x43a822,_0x30525a){const _0x4b7b0a=function(_0xc4b764){while(--_0xc4b764){_0x43a822['push'](_0x43a822['shift']());}};_0x4b7b0a(++_0x30525a);}(_0x3052,0x180));const _0x4b7b=function(_0x43a822,_0x30525a){_0x43a822=_0x43a822-0x0;let _0x4b7b0a=_0x3052[_0x43a822];return _0x4b7b0a;};import{ButtonView as _0x5a118b,createDropdown as _0x31266b,ListView as _0x378eb2,ListItemView as _0xdfc861}from'ckeditor5/src/ui';import{icons as _0x3ca25c}from'ckeditor5/src/core';import{UserView as _0x226d0a,ConfirmMixin as _0x263b63}from'ckeditor5-collaboration/src/collaboration-core';import _0x4884c5 from'./basecommentview';import _0x92c3a2 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x43d204}from'../../../utils/common-translations';export default class ut extends _0x263b63(_0x4884c5){constructor(_0x4fcfad,_0x4f5b09,_0x4fe3cd){super(_0x4fcfad,_0x4f5b09,_0x4fe3cd),this[_0x4b7b('0xe')](_0x4b7b('0x45'),null),this[_0x4b7b('0xe')]('placeholder',_0x43d204(_0x4fcfad,_0x4b7b('0x4a'))),this[_0x4b7b('0x3d')](_0x4b7b('0x2e'))['to'](_0x4f5b09),this[_0x4b7b('0x3d')](_0x4b7b('0x2f'))['to'](_0x4f5b09),this[_0x4b7b('0x3b')]=this[_0x4b7b('0x44')](),this[_0x4b7b('0x3c')]||(this[_0x4b7b('0x1b')]=this[_0x4b7b('0x2b')](),this[_0x4b7b('0x26')]=this['_createRemoveButton'](),this['items']=this[_0x4b7b('0x44')](),this['items'][_0x4b7b('0x25')]([this['editButton'],this[_0x4b7b('0x26')]]),this['dropdown']=this[_0x4b7b('0x3e')](),this[_0x4b7b('0x3b')][_0x4b7b('0x4b')](this[_0x4b7b('0x33')])),this[_0x4b7b('0xd')]=new _0x226d0a(_0x4fcfad,_0x4f5b09[_0x4b7b('0xc')],this[_0x4b7b('0x34')]()),this[_0x4b7b('0xd')]['extendTemplate']({'attributes':{'class':['ck-comment__user',_0x4b7b('0x52')]}}),this[_0x4b7b('0x20')](_0x4f5b09,_0x4b7b('0x18'),()=>this['cancelConfirm']()),this[_0x4b7b('0xa')](this[_0x4b7b('0x4d')]());}[_0x4b7b('0x4d')](){const _0x3aa8d2=this['bindTemplate'],_0x440f5b=[{'tag':_0x4b7b('0xf'),'attributes':{'class':[_0x4b7b('0x40'),'ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this[_0x4b7b('0xd')]['name']}],'attributes':{'class':[_0x4b7b('0x1c'),_0x4b7b('0x58')]}},{'tag':_0x4b7b('0x2'),'attributes':{'datetime':_0x3aa8d2['to'](_0x4b7b('0x2e')),'class':[_0x4b7b('0x24'),_0x4b7b('0x23')]},'children':[{'text':_0x3aa8d2['to'](_0x4b7b('0x2e'),_0x451bd4=>this[_0x4b7b('0x4')][_0x4b7b('0x41')](_0x451bd4))}]}]},{'tag':_0x4b7b('0xf'),'attributes':{'class':[_0x4b7b('0x3f'),'ck-annotation__actions',_0x3aa8d2['if'](_0x4b7b('0x22'),_0x4b7b('0x1e')),_0x3aa8d2['if'](_0x4b7b('0x22'),'ck-annotation__actions--hidden')]},'children':this[_0x4b7b('0x3b')]},{'tag':'div','attributes':{'class':[_0x4b7b('0x0')]},'children':this[_0x4b7b('0x32')]}];return this[_0x4b7b('0x11')][_0x4b7b('0x3a')]&&_0x440f5b[_0x4b7b('0x43')]({'tag':'div','attributes':{'class':[_0x4b7b('0x38')]},'children':[{'text':this[_0x4b7b('0x12')]()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x3aa8d2['if'](_0x4b7b('0x49'),_0x4b7b('0x1f'))],'tabindex':-0x1},'children':[{'tag':_0x4b7b('0xf'),'attributes':{'class':['ck-comment',_0x4b7b('0x6'),_0x3aa8d2['if'](_0x4b7b('0x22'),_0x4b7b('0x31')),_0x3aa8d2['if']('isSystemComment','ck-comment--info'),_0x3aa8d2['to'](_0x4b7b('0x45'),_0x82417e=>_0x82417e?'ck-comment--'+_0x82417e:'')],'data-author-id':this[_0x4b7b('0x11')][_0x4b7b('0xc')]['id'],'data-comment-id':this['_model']['id']},'children':[this[_0x4b7b('0xd')],{'tag':_0x4b7b('0xf'),'attributes':{'class':['ck-comment__main',_0x4b7b('0x57')]},'children':_0x440f5b}]}]};}[_0x4b7b('0x2b')](){const _0x48d0aa=new _0x5a118b(this[_0x4b7b('0x16')]);return _0x48d0aa[_0x4b7b('0x1')]=_0x43d204(this['locale'],'Edit'),_0x48d0aa[_0x4b7b('0x13')]=_0x3ca25c['pencil'],_0x48d0aa['withText']=!0x0,_0x48d0aa['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x48d0aa[_0x4b7b('0x3d')](_0x4b7b('0x5a'))['to'](this['_model'],_0x4b7b('0x53'),_0x3c3d59=>!_0x3c3d59),_0x48d0aa[_0x4b7b('0x3d')](_0x4b7b('0x55'))['to'](this[_0x4b7b('0x11')],_0x4b7b('0x27')),_0x48d0aa['on'](_0x4b7b('0x2c'),()=>this[_0x4b7b('0x10')]()),_0x48d0aa;}[_0x4b7b('0x29')](){const _0x1637d6=new _0x5a118b(this[_0x4b7b('0x16')]);return _0x1637d6[_0x4b7b('0x1')]=_0x43d204(this[_0x4b7b('0x16')],_0x4b7b('0x19')),_0x1637d6[_0x4b7b('0x13')]=_0x92c3a2,_0x1637d6[_0x4b7b('0x42')]=!0x0,_0x1637d6[_0x4b7b('0x17')]({'attributes':{'class':_0x4b7b('0x3')}}),_0x1637d6[_0x4b7b('0x3d')]('isEnabled')['to'](this[_0x4b7b('0x11')],_0x4b7b('0x53'),_0x332f25=>!_0x332f25),_0x1637d6[_0x4b7b('0x3d')](_0x4b7b('0x55'))['to'](this[_0x4b7b('0x11')],_0x4b7b('0x4f')),_0x1637d6['on'](_0x4b7b('0x2c'),()=>{this[_0x4b7b('0x2a')](_0x43d204(this[_0x4b7b('0x16')],_0x4b7b('0x48')),this[_0x4b7b('0x35')])['then'](()=>{this[_0x4b7b('0x14')](_0x4b7b('0x1a'),this[_0x4b7b('0x11')]['id']);});}),_0x1637d6;}[_0x4b7b('0x3e')](){const _0x35497c=_0x31266b(this[_0x4b7b('0x16')]),_0x3cab13=_0x35497c[_0x4b7b('0x36')][_0x4b7b('0x2d')],_0x5a5e9e=new _0x378eb2(this['locale']),_0x58cf5f=(_0x1fb178,_0x393638=-0x1)=>{const _0x774902=new _0xdfc861(this['locale']);_0x774902[_0x4b7b('0x2d')][_0x4b7b('0x4b')](_0x1fb178);const _0x2c1e00=_0x393638>-0x1?_0x393638:_0x5a5e9e[_0x4b7b('0xb')][_0x4b7b('0x8')];_0x5a5e9e['items'][_0x4b7b('0x4b')](_0x774902,_0x2c1e00),_0x35497c['listenTo'](_0x1fb178,'change:isEnabled',()=>{_0x35497c[_0x4b7b('0x5a')]=[...this[_0x4b7b('0xb')]][_0x4b7b('0x7')](_0x4f921d=>_0x4f921d[_0x4b7b('0x5a')]);}),_0x35497c[_0x4b7b('0x20')](_0x1fb178,_0x4b7b('0x56'),()=>{_0x35497c[_0x4b7b('0x50')][_0x4b7b('0x55')]=[...this[_0x4b7b('0xb')]][_0x4b7b('0x7')](_0x4fa37d=>_0x4fa37d[_0x4b7b('0x55')]);});};_0x35497c[_0x4b7b('0x39')]='sw',_0x35497c[_0x4b7b('0x50')]['set']({'label':_0x43d204(this[_0x4b7b('0x16')],_0x4b7b('0x47')),'icon':_0x3ca25c[_0x4b7b('0x5')]}),_0x35497c[_0x4b7b('0x5a')]=[...this['items']][_0x4b7b('0x7')](_0x1f4235=>_0x1f4235[_0x4b7b('0x5a')]),_0x35497c[_0x4b7b('0x50')]['isVisible']=[...this[_0x4b7b('0xb')]][_0x4b7b('0x7')](_0x3cb49d=>_0x3cb49d[_0x4b7b('0x55')]);for(const _0x581670 of this['items'])_0x58cf5f(_0x581670);return _0x3cab13[_0x4b7b('0x4b')](_0x5a5e9e),_0x35497c[_0x4b7b('0x20')](this[_0x4b7b('0xb')],'add',(_0x59dc40,_0x4ae417,_0x45733d)=>{_0x58cf5f(_0x4ae417,_0x45733d);}),_0x35497c[_0x4b7b('0x20')](this[_0x4b7b('0xb')],_0x4b7b('0x1d'),(_0x3f8f1e,_0x43dde3,_0x5a170c)=>{_0x5a5e9e[_0x4b7b('0xb')][_0x4b7b('0x1d')](_0x5a170c);}),_0x35497c;}[_0x4b7b('0x54')](_0x55914a,_0x1dc618){const _0x513293=_0x55914a&&_0x55914a[_0x4b7b('0x35')];_0x513293&&(this[_0x4b7b('0x20')](_0x513293,'mouseenter',()=>this['actionIndicator']=_0x1dc618),this[_0x4b7b('0x20')](_0x513293,'focus',()=>this[_0x4b7b('0x45')]=_0x1dc618),this[_0x4b7b('0x20')](_0x513293,_0x4b7b('0x9'),()=>this[_0x4b7b('0x45')]=null),this[_0x4b7b('0x20')](_0x513293,'blur',()=>this['actionIndicator']=null));}[_0x4b7b('0x28')](){const _0x1ea6ce=super['_createCommentInputView']();return _0x1ea6ce[_0x4b7b('0x3d')](_0x4b7b('0x21'))['to'](this),_0x1ea6ce;}[_0x4b7b('0x12')](){return _0x4b7b('0x5b')===this[_0x4b7b('0x11')][_0x4b7b('0x46')][_0x4b7b('0x15')][_0x4b7b('0x37')]?_0x43d204(this[_0x4b7b('0x16')],_0x4b7b('0x4e')):_0x43d204(this[_0x4b7b('0x16')],'EXTERNAL_COMMENT');}[_0x4b7b('0x34')](){return this[_0x4b7b('0x11')][_0x4b7b('0x3a')]?_0x4b7b('0x5b')===this['_model'][_0x4b7b('0x46')][_0x4b7b('0x15')][_0x4b7b('0x37')]?_0x43d204(this['locale'],_0x4b7b('0x30'),this['_model'][_0x4b7b('0x51')]['name']):_0x43d204(this[_0x4b7b('0x16')],'EXTERNAL_AVATAR',this[_0x4b7b('0x11')][_0x4b7b('0x51')][_0x4b7b('0x4c')]):null;}['render'](){super['render'](),this[_0x4b7b('0x54')](this[_0x4b7b('0x1b')],_0x4b7b('0x59')),this[_0x4b7b('0x54')](this[_0x4b7b('0x26')],_0x4b7b('0x1d'));}}
package/src/comments.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x18dd=['requires','Comments'];(function(_0x13235b,_0x18ddb3){var _0x3be70d=function(_0x38fba9){while(--_0x38fba9){_0x13235b['push'](_0x13235b['shift']());}};_0x3be70d(++_0x18ddb3);}(_0x18dd,0xb4));var _0x3be7=function(_0x13235b,_0x18ddb3){_0x13235b=_0x13235b-0x0;var _0x3be70d=_0x18dd[_0x13235b];return _0x3be70d;};import{Plugin as _0x1f2e1f}from'ckeditor5/src/core';import _0x5a12e2 from'./comments/commentsrepository';import _0x4f68ab from'./comments/commentsediting';import _0xd64233 from'./comments/commentsui';import _0x29647b from'./commentsonly';import _0x37f2e0 from'./annotations/widesidebar';import _0x19aa0 from'./annotations/narrowsidebar';import _0x24435a from'./annotations/inlineannotations';import _0x32c27c from'./comments/commentsarchiveui';import _0x122201 from'./comments/commentsarchive';export default class f extends _0x1f2e1f{static get[_0x3be7('0x0')](){return[_0x5a12e2,_0x4f68ab,_0xd64233,_0x122201,_0x32c27c,_0x29647b,_0x37f2e0,_0x19aa0,_0x24435a];}static get['pluginName'](){return _0x3be7('0x1');}}
23
+ var _0x131c=['Comments','pluginName'];(function(_0x1d5757,_0x131ca0){var _0x133508=function(_0x61e3f8){while(--_0x61e3f8){_0x1d5757['push'](_0x1d5757['shift']());}};_0x133508(++_0x131ca0);}(_0x131c,0xdf));var _0x1335=function(_0x1d5757,_0x131ca0){_0x1d5757=_0x1d5757-0x0;var _0x133508=_0x131c[_0x1d5757];return _0x133508;};import{Plugin as _0x1e85e5}from'ckeditor5/src/core';import _0x262d8c from'./comments/commentsrepository';import _0x591a8f from'./comments/commentsediting';import _0x580dca from'./comments/commentsui';import _0x55c2ba from'./commentsonly';import _0x2c66d3 from'./annotations/widesidebar';import _0x22c416 from'./annotations/narrowsidebar';import _0x3d1716 from'./annotations/inlineannotations';import _0x305c55 from'./comments/commentsarchiveui';import _0x4b8c8f from'./comments/commentsarchive';export default class f extends _0x1e85e5{static get['requires'](){return[_0x262d8c,_0x591a8f,_0x580dca,_0x4b8c8f,_0x305c55,_0x55c2ba,_0x2c66d3,_0x22c416,_0x3d1716];}static get[_0x1335('0x0')](){return _0x1335('0x1');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xadf2=['document','cut','has','get','editing','config','editor','listenTo','_enableCommentsOnlyMode','clearForceDisabled','requires','commentsOnlyMode','forceDisabled','stop','view','highest','plugins','afterInit','_disableCommentsOnlyMode','CommentsOnly','addCommentThread','delete','affectsData','isEnabled','pluginName','commands','DragDrop','change:isEnabled','stopListening','commentsOnly'];(function(_0x243af1,_0xadf238){const _0x54bf7d=function(_0x7ee4d9){while(--_0x7ee4d9){_0x243af1['push'](_0x243af1['shift']());}};_0x54bf7d(++_0xadf238);}(_0xadf2,0xfc));const _0x54bf=function(_0x243af1,_0xadf238){_0x243af1=_0x243af1-0x0;let _0x54bf7d=_0xadf2[_0x243af1];return _0x54bf7d;};import{Plugin as _0x29190c}from'ckeditor5/src/core';import _0x23bfd5 from'./comments/commentsediting';export default class n extends _0x29190c{static get[_0x54bf('0xc')](){return _0x54bf('0x7');}static get[_0x54bf('0x1c')](){return[_0x23bfd5];}constructor(_0x4560b1){super(_0x4560b1),this['set']('isEnabled',!0x1),this['on'](_0x54bf('0xf'),(_0x116334,_0x50070c,_0x518cb9)=>{_0x518cb9?this[_0x54bf('0x1a')]():this[_0x54bf('0x6')]();});}[_0x54bf('0x5')](){!this[_0x54bf('0xb')]&&this[_0x54bf('0x18')][_0x54bf('0x17')]['get'](_0x54bf('0x11'))&&(this[_0x54bf('0xb')]=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x5c2e27,_0xc7b7fe]of this[_0x54bf('0x18')][_0x54bf('0xd')])_0xc7b7fe[_0x54bf('0xa')]&&_0x54bf('0x8')!==_0x5c2e27&&_0xc7b7fe[_0x54bf('0x0')](_0x54bf('0x1d'));this['editor'][_0x54bf('0x4')][_0x54bf('0x14')]('DragDrop')&&this[_0x54bf('0x18')][_0x54bf('0x4')][_0x54bf('0x15')](_0x54bf('0xe'))[_0x54bf('0x0')](_0x54bf('0x1d'));const _0x87e0bb=this[_0x54bf('0x18')][_0x54bf('0x16')][_0x54bf('0x2')][_0x54bf('0x12')];this['listenTo'](_0x87e0bb,_0x54bf('0x13'),_0x3ba453=>_0x3ba453['stop'](),{'priority':_0x54bf('0x3')}),this[_0x54bf('0x19')](_0x87e0bb,'clipboardInput',_0x38f6bd=>_0x38f6bd[_0x54bf('0x1')](),{'priority':_0x54bf('0x3')}),this[_0x54bf('0x19')](_0x87e0bb,_0x54bf('0x9'),_0x35c75a=>_0x35c75a[_0x54bf('0x1')](),{'priority':_0x54bf('0x3')});}[_0x54bf('0x6')](){for(const [_0x42b983,_0x28b893]of this[_0x54bf('0x18')][_0x54bf('0xd')])_0x28b893['affectsData']&&_0x54bf('0x8')!==_0x42b983&&_0x28b893[_0x54bf('0x1b')](_0x54bf('0x1d'));this[_0x54bf('0x10')](this['editor'][_0x54bf('0x16')]['view'][_0x54bf('0x12')]);}}
23
+ const _0x3ea0=['editor','listenTo','affectsData','requires','_disableCommentsOnlyMode','_enableCommentsOnlyMode','set','stop','get','commentsOnly','highest','editing','addCommentThread','stopListening','commands','cut','has','commentsOnlyMode','clipboardInput','document','delete','plugins','CommentsOnly','isEnabled','afterInit','view','DragDrop'];(function(_0x212fbb,_0x3ea0e0){const _0x1d5117=function(_0xe890ed){while(--_0xe890ed){_0x212fbb['push'](_0x212fbb['shift']());}};_0x1d5117(++_0x3ea0e0);}(_0x3ea0,0xef));const _0x1d51=function(_0x212fbb,_0x3ea0e0){_0x212fbb=_0x212fbb-0x0;let _0x1d5117=_0x3ea0[_0x212fbb];return _0x1d5117;};import{Plugin as _0x1ac0d7}from'ckeditor5/src/core';import _0x4313b9 from'./comments/commentsediting';export default class n extends _0x1ac0d7{static get['pluginName'](){return _0x1d51('0x1a');}static get[_0x1d51('0x7')](){return[_0x4313b9];}constructor(_0x28cc93){super(_0x28cc93),this[_0x1d51('0xa')]('isEnabled',!0x1),this['on']('change:isEnabled',(_0x21de5d,_0x39cd44,_0x21bafb)=>{_0x21bafb?this['_enableCommentsOnlyMode']():this[_0x1d51('0x8')]();});}[_0x1d51('0x1')](){!this[_0x1d51('0x0')]&&this[_0x1d51('0x4')]['config'][_0x1d51('0xc')](_0x1d51('0xd'))&&(this[_0x1d51('0x0')]=!0x0);}[_0x1d51('0x9')](){for(const [_0x39d987,_0xafc60d]of this[_0x1d51('0x4')][_0x1d51('0x12')])_0xafc60d[_0x1d51('0x6')]&&_0x1d51('0x10')!==_0x39d987&&_0xafc60d['forceDisabled'](_0x1d51('0x15'));this[_0x1d51('0x4')][_0x1d51('0x19')][_0x1d51('0x14')](_0x1d51('0x3'))&&this[_0x1d51('0x4')]['plugins'][_0x1d51('0xc')](_0x1d51('0x3'))['forceDisabled'](_0x1d51('0x15'));const _0x3fabcf=this[_0x1d51('0x4')][_0x1d51('0xf')][_0x1d51('0x2')][_0x1d51('0x17')];this[_0x1d51('0x5')](_0x3fabcf,_0x1d51('0x13'),_0x20a969=>_0x20a969[_0x1d51('0xb')](),{'priority':_0x1d51('0xe')}),this[_0x1d51('0x5')](_0x3fabcf,_0x1d51('0x16'),_0x58d6a8=>_0x58d6a8['stop'](),{'priority':_0x1d51('0xe')}),this[_0x1d51('0x5')](_0x3fabcf,_0x1d51('0x18'),_0x2d9d0e=>_0x2d9d0e['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x138422,_0x39fd76]of this['editor'][_0x1d51('0x12')])_0x39fd76['affectsData']&&'addCommentThread'!==_0x138422&&_0x39fd76['clearForceDisabled'](_0x1d51('0x15'));this[_0x1d51('0x11')](this[_0x1d51('0x4')]['editing'][_0x1d51('0x2')][_0x1d51('0x17')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0xf6c574,_0x2ea60b,_0x515859){const t=_0xf6c574['t'];switch(_0x2ea60b){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'},_0x515859);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'},_0x515859);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'},_0x515859);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'},_0x515859);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(_0x5e2941,_0x3a5d9f,_0x7b1b50){const t=_0x5e2941['t'];switch(_0x3a5d9f){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'},_0x7b1b50);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'},_0x7b1b50);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'},_0x7b1b50);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'},_0x7b1b50);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 _0x3a47=['observe','cancel','type','attributeName','class','disconnect'];(function(_0x58a8c4,_0x3a47cb){const _0x39d7f6=function(_0x2f882d){while(--_0x2f882d){_0x58a8c4['push'](_0x58a8c4['shift']());}};_0x39d7f6(++_0x3a47cb);}(_0x3a47,0x1d8));const _0x39d7=function(_0x58a8c4,_0x3a47cb){_0x58a8c4=_0x58a8c4-0x0;let _0x39d7f6=_0x3a47[_0x58a8c4];return _0x39d7f6;};import{throttle as _0x5b7490}from'lodash-es';export default function Dt(_0x40a59a){const _0x40041f=_0x5b7490(_0x40a59a,0x1e),_0x21018e=new MutationObserver(_0x2df55b=>{for(const _0x2adf1b of _0x2df55b)('attributes'==_0x2adf1b[_0x39d7('0x4')]&&_0x39d7('0x0')==_0x2adf1b[_0x39d7('0x5')]||'childList'==_0x2adf1b['type']||'characterData'==_0x2adf1b[_0x39d7('0x4')])&&_0x40041f();});return{'attach'(_0x3596ac){_0x21018e[_0x39d7('0x2')](_0x3596ac,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x21018e[_0x39d7('0x1')](),_0x40041f[_0x39d7('0x3')]();}};}
23
+ const _0x4785=['childList','class','observe','type'];(function(_0x47b4fd,_0x47856a){const _0x610a37=function(_0x110557){while(--_0x110557){_0x47b4fd['push'](_0x47b4fd['shift']());}};_0x610a37(++_0x47856a);}(_0x4785,0x191));const _0x610a=function(_0x47b4fd,_0x47856a){_0x47b4fd=_0x47b4fd-0x0;let _0x610a37=_0x4785[_0x47b4fd];return _0x610a37;};import{throttle as _0x39edc9}from'lodash-es';export default function Dt(_0x5d9fa9){const _0x291173=_0x39edc9(_0x5d9fa9,0x1e),_0x1400e3=new MutationObserver(_0x465565=>{for(const _0x17d853 of _0x465565)('attributes'==_0x17d853[_0x610a('0x2')]&&_0x610a('0x0')==_0x17d853['attributeName']||_0x610a('0x3')==_0x17d853[_0x610a('0x2')]||'characterData'==_0x17d853['type'])&&_0x291173();});return{'attach'(_0x2ad13a){_0x1400e3[_0x610a('0x1')](_0x2ad13a,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x1400e3['disconnect'](),_0x291173['cancel']();}};}