@ckeditor/ckeditor5-comments 0.0.0-nightly-20231107.0 → 0.0.0-nightly-20231108.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 (43) hide show
  1. package/build/comments.js +1 -1
  2. package/lang/contexts.json +2 -0
  3. package/package.json +3 -3
  4. package/src/annotations/annotation.js +1 -1
  5. package/src/annotations/annotationcollection.js +1 -1
  6. package/src/annotations/annotations.js +1 -1
  7. package/src/annotations/annotationsuis.js +1 -1
  8. package/src/annotations/editorannotations.js +1 -1
  9. package/src/annotations/inlineannotations.js +1 -1
  10. package/src/annotations/narrowsidebar.js +1 -1
  11. package/src/annotations/sidebar.js +1 -1
  12. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  13. package/src/annotations/view/annotationview.js +1 -1
  14. package/src/annotations/view/sidebaritemview.js +1 -1
  15. package/src/annotations/view/sidebarview.js +1 -1
  16. package/src/annotations/widesidebar.js +1 -1
  17. package/src/comments/addcommentthreadcommand.js +1 -1
  18. package/src/comments/commentsarchive.js +1 -1
  19. package/src/comments/commentsarchiveui.js +1 -1
  20. package/src/comments/commentsediting.js +1 -1
  21. package/src/comments/commentsrepository.js +1 -1
  22. package/src/comments/commentsui.js +1 -1
  23. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  24. package/src/comments/integrations/importword.js +1 -1
  25. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  26. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  27. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  28. package/src/comments/ui/commentthreadcontroller.js +1 -1
  29. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  30. package/src/comments/ui/view/basecommentview.js +1 -1
  31. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  32. package/src/comments/ui/view/commentcontentview.js +1 -1
  33. package/src/comments/ui/view/commentinputview.js +1 -1
  34. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  35. package/src/comments/ui/view/commentslistview.js +1 -1
  36. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  37. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  38. package/src/comments/ui/view/commentthreadview.js +1 -1
  39. package/src/comments/ui/view/commentview.js +1 -1
  40. package/src/comments.js +1 -1
  41. package/src/commentsonly.js +1 -1
  42. package/src/utils/common-translations.js +1 -1
  43. package/src/utils/createmutationobserver.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xe5ca=['ck-annotation__info-time','change:isEnabled','dropdown','mouseenter','element','formatDateTime','children','locale','ck-annotation__actions--hidden','getUserViewNotificationText','cancelConfirm','isConfirm','edit','isReadOnly','isEditable','mouseleave','isEnabled','remove','ck-annotation__content-wrapper','div','items','add','ck-comment--remove','createCollection','ck-annotation__info-name','importWord','EXTERNAL_IMPORT_WORD_COMMENT','change:isRemovable','bind','addMany','fire','bindTemplate','ck-comment--','_model','icon','switchToEditMode','panelView','ck-comment__actions','execute','editButton','authoredAt','actionBar','isRemovable','getTemplate','ck-annotation','threeVerticalDots','ck-comment__info','_attachActions','pencil','span','removeButton','ck-annotation__info','ck-comment__main','ck-comment--edit','actionIndicator','buttonView','render','visibleView','isEditMode','_createEditButton','withText','Reply...','resolvedAt','ck-comment--remove-confirmation','length','removeComment','some','Remove','panelPosition','setTemplate','_createDropdown','isVisible','name','userView','attributes','ck-comment--info','EXTERNAL_COMMENT','focus','source','isSystemComment','ck-comment','EXTERNAL_IMPORT_WORD_AVATAR','listenTo','showConfirm','then','@external','ck-comment__info-name','push','placeholder','_createRemoveButton','Edit','EXTERNAL_AVATAR','creator','set','extendTemplate'];(function(_0x5db763,_0xe5ca19){const _0x228103=function(_0xbe6603){while(--_0xbe6603){_0x5db763['push'](_0x5db763['shift']());}};_0x228103(++_0xe5ca19);}(_0xe5ca,0x1ee));const _0x2281=function(_0x5db763,_0xe5ca19){_0x5db763=_0x5db763-0x0;let _0x228103=_0xe5ca[_0x5db763];return _0x228103;};import{ButtonView as _0x3a7b05,createDropdown as _0x2dc7c1,ListView as _0x42bc6b,ListItemView as _0x1fd12f}from'ckeditor5/src/ui';import{icons as _0x2210d2}from'ckeditor5/src/core';import{UserView as _0x5debe3,ConfirmMixin as _0x353ccd}from'ckeditor5-collaboration/src/collaboration-core';import _0x367b14 from'./basecommentview';import _0x4b14fc from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x116199}from'../../../utils/common-translations';export default class ut extends _0x353ccd(_0x367b14){constructor(_0x2e8cd6,_0x24e414,_0x4f97ad){super(_0x2e8cd6,_0x24e414,_0x4f97ad),this[_0x2281('0x4a')](_0x2281('0x23'),null),this['set']('placeholder',_0x116199(_0x2e8cd6,_0x2281('0x2a'))),this[_0x2281('0x9')]('authoredAt')['to'](_0x24e414),this[_0x2281('0x9')](_0x2281('0x2b'))['to'](_0x24e414),this['actionBar']=this[_0x2281('0x4')](),this[_0x2281('0x3c')]||(this[_0x2281('0x14')]=this['_createEditButton'](),this[_0x2281('0x1f')]=this[_0x2281('0x46')](),this[_0x2281('0x1')]=this[_0x2281('0x4')](),this[_0x2281('0x1')][_0x2281('0xa')]([this['editButton'],this[_0x2281('0x1f')]]),this[_0x2281('0x4e')]=this[_0x2281('0x33')](),this[_0x2281('0x16')][_0x2281('0x2')](this[_0x2281('0x4e')])),this['userView']=new _0x5debe3(_0x2e8cd6,_0x24e414['author'],this[_0x2281('0x55')]()),this[_0x2281('0x36')][_0x2281('0x4b')]({'attributes':{'class':['ck-comment__user','ck-annotation__user']}}),this[_0x2281('0x3f')](_0x24e414,_0x2281('0x8'),()=>this[_0x2281('0x56')]()),this[_0x2281('0x32')](this[_0x2281('0x18')]());}['getTemplate'](){const _0x23c131=this[_0x2281('0xc')],_0x44f48c=[{'tag':_0x2281('0x0'),'attributes':{'class':[_0x2281('0x1b'),_0x2281('0x20')]},'children':[{'tag':_0x2281('0x1e'),'children':[{'text':this[_0x2281('0x36')][_0x2281('0x35')]}],'attributes':{'class':[_0x2281('0x43'),_0x2281('0x5')]}},{'tag':'time','attributes':{'datetime':_0x23c131['to']('authoredAt'),'class':['ck-comment__info-time',_0x2281('0x4c')]},'children':[{'text':_0x23c131['to'](_0x2281('0x15'),_0x3d198a=>this['_config'][_0x2281('0x51')](_0x3d198a))}]}]},{'tag':'div','attributes':{'class':[_0x2281('0x12'),'ck-annotation__actions',_0x23c131['if'](_0x2281('0x27'),'ck-comment__actions--hidden'),_0x23c131['if'](_0x2281('0x27'),_0x2281('0x54'))]},'children':this['actionBar']},{'tag':'div','attributes':{'class':[_0x2281('0x5e')]},'children':this[_0x2281('0x26')]}];return this[_0x2281('0xe')]['isExternal']&&_0x44f48c[_0x2281('0x44')]({'tag':_0x2281('0x0'),'attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x23c131['if'](_0x2281('0x57'),_0x2281('0x2c'))],'tabindex':-0x1},'children':[{'tag':_0x2281('0x0'),'attributes':{'class':[_0x2281('0x3d'),_0x2281('0x19'),_0x23c131['if'](_0x2281('0x27'),_0x2281('0x22')),_0x23c131['if'](_0x2281('0x3c'),_0x2281('0x38')),_0x23c131['to'](_0x2281('0x23'),_0x3b26a5=>_0x3b26a5?_0x2281('0xd')+_0x3b26a5:'')],'data-author-id':this[_0x2281('0xe')]['author']['id'],'data-comment-id':this[_0x2281('0xe')]['id']},'children':[this[_0x2281('0x36')],{'tag':_0x2281('0x0'),'attributes':{'class':[_0x2281('0x21'),'ck-annotation__main']},'children':_0x44f48c}]}]};}[_0x2281('0x28')](){const _0xc76642=new _0x3a7b05(this['locale']);return _0xc76642['label']=_0x116199(this['locale'],_0x2281('0x47')),_0xc76642[_0x2281('0xf')]=_0x2210d2[_0x2281('0x1d')],_0xc76642[_0x2281('0x29')]=!0x0,_0xc76642[_0x2281('0x4b')]({'attributes':{'class':'ck-comment--edit'}}),_0xc76642[_0x2281('0x9')](_0x2281('0x5c'))['to'](this[_0x2281('0xe')],'isReadOnly',_0x1828e1=>!_0x1828e1),_0xc76642['bind'](_0x2281('0x34'))['to'](this[_0x2281('0xe')],_0x2281('0x5a')),_0xc76642['on'](_0x2281('0x13'),()=>this[_0x2281('0x10')]()),_0xc76642;}[_0x2281('0x46')](){const _0xdcceae=new _0x3a7b05(this['locale']);return _0xdcceae['label']=_0x116199(this[_0x2281('0x53')],_0x2281('0x30')),_0xdcceae['icon']=_0x4b14fc,_0xdcceae[_0x2281('0x29')]=!0x0,_0xdcceae[_0x2281('0x4b')]({'attributes':{'class':_0x2281('0x3')}}),_0xdcceae[_0x2281('0x9')](_0x2281('0x5c'))['to'](this[_0x2281('0xe')],_0x2281('0x59'),_0x1b911b=>!_0x1b911b),_0xdcceae[_0x2281('0x9')]('isVisible')['to'](this[_0x2281('0xe')],_0x2281('0x17')),_0xdcceae['on'](_0x2281('0x13'),()=>{this[_0x2281('0x40')](_0x116199(this[_0x2281('0x53')],'Delete\x20comment?'),this[_0x2281('0x50')])[_0x2281('0x41')](()=>{this[_0x2281('0xb')](_0x2281('0x2e'),this[_0x2281('0xe')]['id']);});}),_0xdcceae;}['_createDropdown'](){const _0x4887ed=_0x2dc7c1(this['locale']),_0x1469d3=_0x4887ed[_0x2281('0x11')][_0x2281('0x52')],_0x444a96=new _0x42bc6b(this[_0x2281('0x53')]),_0x3d73f6=(_0x252cc7,_0x4070b7=-0x1)=>{const _0x1d1282=new _0x1fd12f(this[_0x2281('0x53')]);_0x1d1282[_0x2281('0x52')][_0x2281('0x2')](_0x252cc7);const _0x19da27=_0x4070b7>-0x1?_0x4070b7:_0x444a96[_0x2281('0x1')][_0x2281('0x2d')];_0x444a96[_0x2281('0x1')]['add'](_0x1d1282,_0x19da27),_0x4887ed[_0x2281('0x3f')](_0x252cc7,_0x2281('0x4d'),()=>{_0x4887ed['isEnabled']=[...this[_0x2281('0x1')]][_0x2281('0x2f')](_0x3e2d90=>_0x3e2d90[_0x2281('0x5c')]);}),_0x4887ed['listenTo'](_0x252cc7,'change:isVisible',()=>{_0x4887ed[_0x2281('0x24')][_0x2281('0x34')]=[...this['items']][_0x2281('0x2f')](_0x1df883=>_0x1df883[_0x2281('0x34')]);});};_0x4887ed[_0x2281('0x31')]='sw',_0x4887ed[_0x2281('0x24')][_0x2281('0x4a')]({'label':_0x116199(this[_0x2281('0x53')],'Show\x20more\x20items'),'icon':_0x2210d2[_0x2281('0x1a')]}),_0x4887ed[_0x2281('0x5c')]=[...this[_0x2281('0x1')]][_0x2281('0x2f')](_0x587a44=>_0x587a44[_0x2281('0x5c')]),_0x4887ed[_0x2281('0x24')][_0x2281('0x34')]=[...this[_0x2281('0x1')]]['some'](_0x594e79=>_0x594e79[_0x2281('0x34')]);for(const _0x5346df of this[_0x2281('0x1')])_0x3d73f6(_0x5346df);return _0x1469d3[_0x2281('0x2')](_0x444a96),_0x4887ed[_0x2281('0x3f')](this['items'],'add',(_0x1b125b,_0x3f8d41,_0x54e9ea)=>{_0x3d73f6(_0x3f8d41,_0x54e9ea);}),_0x4887ed[_0x2281('0x3f')](this[_0x2281('0x1')],_0x2281('0x5d'),(_0x471215,_0x4c13a8,_0x18f58a)=>{_0x444a96['items']['remove'](_0x18f58a);}),_0x4887ed;}[_0x2281('0x1c')](_0x520bb9,_0x958a43){const _0x4e1335=_0x520bb9&&_0x520bb9[_0x2281('0x50')];_0x4e1335&&(this[_0x2281('0x3f')](_0x4e1335,_0x2281('0x4f'),()=>this['actionIndicator']=_0x958a43),this['listenTo'](_0x4e1335,_0x2281('0x3a'),()=>this[_0x2281('0x23')]=_0x958a43),this[_0x2281('0x3f')](_0x4e1335,_0x2281('0x5b'),()=>this['actionIndicator']=null),this[_0x2281('0x3f')](_0x4e1335,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x3429e1=super['_createCommentInputView']();return _0x3429e1[_0x2281('0x9')](_0x2281('0x45'))['to'](this),_0x3429e1;}['getExternalCommentNote'](){return _0x2281('0x6')===this[_0x2281('0xe')]['attributes'][_0x2281('0x42')][_0x2281('0x3b')]?_0x116199(this[_0x2281('0x53')],_0x2281('0x7')):_0x116199(this[_0x2281('0x53')],_0x2281('0x39'));}[_0x2281('0x55')](){return this[_0x2281('0xe')]['isExternal']?_0x2281('0x6')===this[_0x2281('0xe')][_0x2281('0x37')][_0x2281('0x42')]['source']?_0x116199(this['locale'],_0x2281('0x3e'),this[_0x2281('0xe')][_0x2281('0x49')]['name']):_0x116199(this[_0x2281('0x53')],_0x2281('0x48'),this[_0x2281('0xe')]['creator'][_0x2281('0x35')]):null;}[_0x2281('0x25')](){super['render'](),this[_0x2281('0x1c')](this[_0x2281('0x14')],_0x2281('0x58')),this['_attachActions'](this[_0x2281('0x1f')],_0x2281('0x5d'));}}
23
+ const _0x22ac=['set','ck-comment__info-time','isRemovable','bind','dropdown','ck-comment--edit','creator','getExternalCommentNote','editButton','getTemplate','length','panelView','ck-comment__info','removeComment','buttonView','actionIndicator','switchToEditMode','some','add','addMany','blur','isExternal','formatDateTime','withText','ck-annotation__main','_createRemoveButton','@external','label','ck-comment__actions','isEnabled','ck-comment--info','visibleView','ck-annotation__actions--hidden','execute','Edit','change:isRemovable','icon','ck-annotation__actions','EXTERNAL_IMPORT_WORD_AVATAR','ck-comment--','actionBar','_createEditButton','userView','mouseenter','Show\x20more\x20items','isReadOnly','source','ck-annotation','EXTERNAL_IMPORT_WORD_COMMENT','ck-annotation__user','_model','authoredAt','EXTERNAL_AVATAR','isConfirm','cancelConfirm','_createCommentInputView','ck-comment__external','_config','_attachActions','change:isVisible','ck-comment__info-name','isSystemComment','placeholder','locale','name','removeButton','ck-annotation__info-name','change:isEnabled','ck-comment--remove','push','ck-comment__wrapper','author','pencil','getUserViewNotificationText','Delete\x20comment?','_createDropdown','Remove','setTemplate','attributes','createCollection','children','isVisible','listenTo','items','focus','extendTemplate','render','remove','threeVerticalDots','isEditMode','ck-comment__actions--hidden','mouseleave','fire','div'];(function(_0x5394b1,_0x22aca3){const _0x12f081=function(_0x3519e7){while(--_0x3519e7){_0x5394b1['push'](_0x5394b1['shift']());}};_0x12f081(++_0x22aca3);}(_0x22ac,0x1c3));const _0x12f0=function(_0x5394b1,_0x22aca3){_0x5394b1=_0x5394b1-0x0;let _0x12f081=_0x22ac[_0x5394b1];return _0x12f081;};import{ButtonView as _0x4c1dab,createDropdown as _0x209409,ListView as _0x220637,ListItemView as _0x46a562}from'ckeditor5/src/ui';import{icons as _0x2536fb}from'ckeditor5/src/core';import{UserView as _0x1b4807,ConfirmMixin as _0x25cc39}from'ckeditor5-collaboration/src/collaboration-core';import _0x5adf4b from'./basecommentview';import _0x5ea30b from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0xf699b2}from'../../../utils/common-translations';export default class pt extends _0x25cc39(_0x5adf4b){constructor(_0x19e6e1,_0xc94c67,_0x564103){super(_0x19e6e1,_0xc94c67,_0x564103),this[_0x12f0('0x13')](_0x12f0('0x22'),null),this[_0x12f0('0x13')](_0x12f0('0x51'),_0xf699b2(_0x19e6e1,'Reply...')),this[_0x12f0('0x16')]('authoredAt')['to'](_0xc94c67),this['bind']('resolvedAt')['to'](_0xc94c67),this['actionBar']=this[_0x12f0('0x4')](),this[_0x12f0('0x50')]||(this[_0x12f0('0x1b')]=this[_0x12f0('0x3c')](),this[_0x12f0('0x54')]=this[_0x12f0('0x2c')](),this[_0x12f0('0x8')]=this[_0x12f0('0x4')](),this[_0x12f0('0x8')][_0x12f0('0x26')]([this[_0x12f0('0x1b')],this[_0x12f0('0x54')]]),this[_0x12f0('0x17')]=this[_0x12f0('0x0')](),this['actionBar'][_0x12f0('0x25')](this['dropdown'])),this['userView']=new _0x1b4807(_0x19e6e1,_0xc94c67[_0x12f0('0x5a')],this[_0x12f0('0x5c')]()),this[_0x12f0('0x3d')]['extendTemplate']({'attributes':{'class':['ck-comment__user',_0x12f0('0x44')]}}),this['listenTo'](_0xc94c67,_0x12f0('0x36'),()=>this[_0x12f0('0x49')]()),this[_0x12f0('0x2')](this[_0x12f0('0x1c')]());}[_0x12f0('0x1c')](){const _0xe5be8e=this['bindTemplate'],_0x2e7b8b=[{'tag':'div','attributes':{'class':[_0x12f0('0x1f'),'ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView'][_0x12f0('0x53')]}],'attributes':{'class':[_0x12f0('0x4f'),_0x12f0('0x55')]}},{'tag':'time','attributes':{'datetime':_0xe5be8e['to'](_0x12f0('0x46')),'class':[_0x12f0('0x14'),'ck-annotation__info-time']},'children':[{'text':_0xe5be8e['to'](_0x12f0('0x46'),_0x5e9d4e=>this[_0x12f0('0x4c')][_0x12f0('0x29')](_0x5e9d4e))}]}]},{'tag':_0x12f0('0x12'),'attributes':{'class':[_0x12f0('0x2f'),_0x12f0('0x38'),_0xe5be8e['if']('isEditMode',_0x12f0('0xf')),_0xe5be8e['if'](_0x12f0('0xe'),_0x12f0('0x33'))]},'children':this[_0x12f0('0x3b')]},{'tag':_0x12f0('0x12'),'attributes':{'class':['ck-annotation__content-wrapper']},'children':this[_0x12f0('0x32')]}];return this[_0x12f0('0x45')][_0x12f0('0x28')]&&_0x2e7b8b[_0x12f0('0x58')]({'tag':'div','attributes':{'class':[_0x12f0('0x4b')]},'children':[{'text':this[_0x12f0('0x1a')]()}]}),{'tag':'li','attributes':{'class':[_0x12f0('0x59'),_0xe5be8e['if'](_0x12f0('0x48'),'ck-comment--remove-confirmation')],'tabindex':-0x1},'children':[{'tag':_0x12f0('0x12'),'attributes':{'class':['ck-comment',_0x12f0('0x42'),_0xe5be8e['if'](_0x12f0('0xe'),_0x12f0('0x18')),_0xe5be8e['if'](_0x12f0('0x50'),_0x12f0('0x31')),_0xe5be8e['to'](_0x12f0('0x22'),_0x531497=>_0x531497?_0x12f0('0x3a')+_0x531497:'')],'data-author-id':this[_0x12f0('0x45')][_0x12f0('0x5a')]['id'],'data-comment-id':this[_0x12f0('0x45')]['id']},'children':[this[_0x12f0('0x3d')],{'tag':_0x12f0('0x12'),'attributes':{'class':['ck-comment__main',_0x12f0('0x2b')]},'children':_0x2e7b8b}]}]};}[_0x12f0('0x3c')](){const _0x40c61e=new _0x4c1dab(this[_0x12f0('0x52')]);return _0x40c61e[_0x12f0('0x2e')]=_0xf699b2(this['locale'],_0x12f0('0x35')),_0x40c61e['icon']=_0x2536fb[_0x12f0('0x5b')],_0x40c61e[_0x12f0('0x2a')]=!0x0,_0x40c61e['extendTemplate']({'attributes':{'class':_0x12f0('0x18')}}),_0x40c61e['bind'](_0x12f0('0x30'))['to'](this[_0x12f0('0x45')],_0x12f0('0x40'),_0x2c2d19=>!_0x2c2d19),_0x40c61e['bind'](_0x12f0('0x6'))['to'](this['_model'],'isEditable'),_0x40c61e['on'](_0x12f0('0x34'),()=>this[_0x12f0('0x23')]()),_0x40c61e;}[_0x12f0('0x2c')](){const _0x5bc999=new _0x4c1dab(this[_0x12f0('0x52')]);return _0x5bc999['label']=_0xf699b2(this[_0x12f0('0x52')],_0x12f0('0x1')),_0x5bc999[_0x12f0('0x37')]=_0x5ea30b,_0x5bc999[_0x12f0('0x2a')]=!0x0,_0x5bc999[_0x12f0('0xa')]({'attributes':{'class':_0x12f0('0x57')}}),_0x5bc999[_0x12f0('0x16')](_0x12f0('0x30'))['to'](this[_0x12f0('0x45')],_0x12f0('0x40'),_0x6bf7a8=>!_0x6bf7a8),_0x5bc999[_0x12f0('0x16')](_0x12f0('0x6'))['to'](this[_0x12f0('0x45')],_0x12f0('0x15')),_0x5bc999['on'](_0x12f0('0x34'),()=>{this['showConfirm'](_0xf699b2(this[_0x12f0('0x52')],_0x12f0('0x5d')),this['element'])['then'](()=>{this[_0x12f0('0x11')](_0x12f0('0x20'),this['_model']['id']);});}),_0x5bc999;}[_0x12f0('0x0')](){const _0x4fcd40=_0x209409(this[_0x12f0('0x52')]),_0x4bba02=_0x4fcd40[_0x12f0('0x1e')][_0x12f0('0x5')],_0x244ea6=new _0x220637(this[_0x12f0('0x52')]),_0x33dacc=(_0x3fcb92,_0x2eceff=-0x1)=>{const _0x16f406=new _0x46a562(this[_0x12f0('0x52')]);_0x16f406[_0x12f0('0x5')][_0x12f0('0x25')](_0x3fcb92);const _0x1f6405=_0x2eceff>-0x1?_0x2eceff:_0x244ea6['items'][_0x12f0('0x1d')];_0x244ea6[_0x12f0('0x8')]['add'](_0x16f406,_0x1f6405),_0x4fcd40[_0x12f0('0x7')](_0x3fcb92,_0x12f0('0x56'),()=>{_0x4fcd40[_0x12f0('0x30')]=[...this[_0x12f0('0x8')]][_0x12f0('0x24')](_0x203935=>_0x203935[_0x12f0('0x30')]);}),_0x4fcd40[_0x12f0('0x7')](_0x3fcb92,_0x12f0('0x4e'),()=>{_0x4fcd40[_0x12f0('0x21')][_0x12f0('0x6')]=[...this[_0x12f0('0x8')]][_0x12f0('0x24')](_0x27a2c3=>_0x27a2c3[_0x12f0('0x6')]);});};_0x4fcd40['panelPosition']='sw',_0x4fcd40[_0x12f0('0x21')][_0x12f0('0x13')]({'label':_0xf699b2(this[_0x12f0('0x52')],_0x12f0('0x3f')),'icon':_0x2536fb[_0x12f0('0xd')]}),_0x4fcd40[_0x12f0('0x30')]=[...this[_0x12f0('0x8')]][_0x12f0('0x24')](_0x2ef25a=>_0x2ef25a[_0x12f0('0x30')]),_0x4fcd40[_0x12f0('0x21')]['isVisible']=[...this['items']][_0x12f0('0x24')](_0x248268=>_0x248268['isVisible']);for(const _0x1edd17 of this['items'])_0x33dacc(_0x1edd17);return _0x4bba02[_0x12f0('0x25')](_0x244ea6),_0x4fcd40[_0x12f0('0x7')](this[_0x12f0('0x8')],_0x12f0('0x25'),(_0x9e71b0,_0x3cc862,_0x1c50f8)=>{_0x33dacc(_0x3cc862,_0x1c50f8);}),_0x4fcd40[_0x12f0('0x7')](this[_0x12f0('0x8')],_0x12f0('0xc'),(_0x29bfc9,_0x2b389a,_0x29d0fe)=>{_0x244ea6[_0x12f0('0x8')][_0x12f0('0xc')](_0x29d0fe);}),_0x4fcd40;}['_attachActions'](_0x444376,_0x363cf6){const _0x40529e=_0x444376&&_0x444376['element'];_0x40529e&&(this[_0x12f0('0x7')](_0x40529e,_0x12f0('0x3e'),()=>this[_0x12f0('0x22')]=_0x363cf6),this[_0x12f0('0x7')](_0x40529e,_0x12f0('0x9'),()=>this[_0x12f0('0x22')]=_0x363cf6),this['listenTo'](_0x40529e,_0x12f0('0x10'),()=>this[_0x12f0('0x22')]=null),this['listenTo'](_0x40529e,_0x12f0('0x27'),()=>this[_0x12f0('0x22')]=null));}[_0x12f0('0x4a')](){const _0x358ddd=super[_0x12f0('0x4a')]();return _0x358ddd[_0x12f0('0x16')](_0x12f0('0x51'))['to'](this),_0x358ddd;}[_0x12f0('0x1a')](){return'importWord'===this[_0x12f0('0x45')]['attributes'][_0x12f0('0x2d')][_0x12f0('0x41')]?_0xf699b2(this['locale'],_0x12f0('0x43')):_0xf699b2(this[_0x12f0('0x52')],'EXTERNAL_COMMENT');}[_0x12f0('0x5c')](){return this[_0x12f0('0x45')]['isExternal']?'importWord'===this['_model'][_0x12f0('0x3')][_0x12f0('0x2d')][_0x12f0('0x41')]?_0xf699b2(this[_0x12f0('0x52')],_0x12f0('0x39'),this[_0x12f0('0x45')][_0x12f0('0x19')][_0x12f0('0x53')]):_0xf699b2(this[_0x12f0('0x52')],_0x12f0('0x47'),this['_model']['creator'][_0x12f0('0x53')]):null;}['render'](){super[_0x12f0('0xb')](),this[_0x12f0('0x4d')](this['editButton'],'edit'),this[_0x12f0('0x4d')](this[_0x12f0('0x54')],'remove');}}
package/src/comments.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x520e=['pluginName','requires','Comments'];(function(_0x549ca1,_0x520edd){var _0x960e7=function(_0x1f9bcc){while(--_0x1f9bcc){_0x549ca1['push'](_0x549ca1['shift']());}};_0x960e7(++_0x520edd);}(_0x520e,0x1c7));var _0x960e=function(_0x549ca1,_0x520edd){_0x549ca1=_0x549ca1-0x0;var _0x960e7=_0x520e[_0x549ca1];return _0x960e7;};import{Plugin as _0x51046f}from'ckeditor5/src/core';import _0x1a78f4 from'./comments/commentsrepository';import _0x36ab10 from'./comments/commentsediting';import _0x7b280d from'./comments/commentsui';import _0x4af35d from'./commentsonly';import _0x29eb3d from'./annotations/widesidebar';import _0x3da097 from'./annotations/narrowsidebar';import _0x492b21 from'./annotations/inlineannotations';import _0x2f8227 from'./comments/commentsarchiveui';import _0x46fdfb from'./comments/commentsarchive';export default class f extends _0x51046f{static get[_0x960e('0x2')](){return[_0x1a78f4,_0x36ab10,_0x7b280d,_0x46fdfb,_0x2f8227,_0x4af35d,_0x29eb3d,_0x3da097,_0x492b21];}static get[_0x960e('0x1')](){return _0x960e('0x0');}}
23
+ var _0x4318=['requires','Comments','pluginName'];(function(_0x4c1e9b,_0x4318bb){var _0x1470ad=function(_0x5d4d18){while(--_0x5d4d18){_0x4c1e9b['push'](_0x4c1e9b['shift']());}};_0x1470ad(++_0x4318bb);}(_0x4318,0x77));var _0x1470=function(_0x4c1e9b,_0x4318bb){_0x4c1e9b=_0x4c1e9b-0x0;var _0x1470ad=_0x4318[_0x4c1e9b];return _0x1470ad;};import{Plugin as _0x365e2d}from'ckeditor5/src/core';import _0x173e08 from'./comments/commentsrepository';import _0x1acb8d from'./comments/commentsediting';import _0x173d79 from'./comments/commentsui';import _0x569a94 from'./commentsonly';import _0x2087e3 from'./annotations/widesidebar';import _0xc106ca from'./annotations/narrowsidebar';import _0x3f98c8 from'./annotations/inlineannotations';import _0x350f03 from'./comments/commentsarchiveui';import _0x2b2d4f from'./comments/commentsarchive';export default class f extends _0x365e2d{static get[_0x1470('0x1')](){return[_0x173e08,_0x1acb8d,_0x173d79,_0x2b2d4f,_0x350f03,_0x569a94,_0x2087e3,_0xc106ca,_0x3f98c8];}static get[_0x1470('0x0')](){return _0x1470('0x2');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1a55=['config','change:isEnabled','requires','stopListening','has','document','_disableCommentsOnlyMode','listenTo','highest','stop','clipboardInput','affectsData','plugins','view','get','editor','commentsOnlyMode','editing','set','DragDrop','isEnabled','clearForceDisabled','pluginName','addCommentThread'];(function(_0x426762,_0x1a5530){const _0x3673fd=function(_0x4fb9f6){while(--_0x4fb9f6){_0x426762['push'](_0x426762['shift']());}};_0x3673fd(++_0x1a5530);}(_0x1a55,0x17b));const _0x3673=function(_0x426762,_0x1a5530){_0x426762=_0x426762-0x0;let _0x3673fd=_0x1a55[_0x426762];return _0x3673fd;};import{Plugin as _0xf239a3}from'ckeditor5/src/core';import _0xc68720 from'./comments/commentsediting';export default class n extends _0xf239a3{static get[_0x3673('0x3')](){return'CommentsOnly';}static get[_0x3673('0x7')](){return[_0xc68720];}constructor(_0x102866){super(_0x102866),this[_0x3673('0x17')](_0x3673('0x1'),!0x1),this['on'](_0x3673('0x6'),(_0x11b8e4,_0x1f20da,_0x2507c9)=>{_0x2507c9?this['_enableCommentsOnlyMode']():this[_0x3673('0xb')]();});}['afterInit'](){!this[_0x3673('0x1')]&&this[_0x3673('0x14')][_0x3673('0x5')][_0x3673('0x13')]('commentsOnly')&&(this[_0x3673('0x1')]=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x34c1bf,_0x31405b]of this[_0x3673('0x14')]['commands'])_0x31405b[_0x3673('0x10')]&&_0x3673('0x4')!==_0x34c1bf&&_0x31405b['forceDisabled'](_0x3673('0x15'));this[_0x3673('0x14')][_0x3673('0x11')][_0x3673('0x9')](_0x3673('0x0'))&&this[_0x3673('0x14')][_0x3673('0x11')][_0x3673('0x13')](_0x3673('0x0'))['forceDisabled'](_0x3673('0x15'));const _0xac4c1f=this[_0x3673('0x14')][_0x3673('0x16')][_0x3673('0x12')][_0x3673('0xa')];this[_0x3673('0xc')](_0xac4c1f,'cut',_0x38280a=>_0x38280a[_0x3673('0xe')](),{'priority':_0x3673('0xd')}),this[_0x3673('0xc')](_0xac4c1f,_0x3673('0xf'),_0x55cf3c=>_0x55cf3c['stop'](),{'priority':'highest'}),this[_0x3673('0xc')](_0xac4c1f,'delete',_0x5d227d=>_0x5d227d[_0x3673('0xe')](),{'priority':_0x3673('0xd')});}[_0x3673('0xb')](){for(const [_0x413937,_0x459a2b]of this['editor']['commands'])_0x459a2b[_0x3673('0x10')]&&_0x3673('0x4')!==_0x413937&&_0x459a2b[_0x3673('0x2')]('commentsOnlyMode');this[_0x3673('0x8')](this['editor'][_0x3673('0x16')]['view']['document']);}}
23
+ const _0x3845=['view','document','editing','commentsOnlyMode','afterInit','stop','commands','affectsData','editor','isEnabled','plugins','set','delete','config','commentsOnly','forceDisabled','_enableCommentsOnlyMode','DragDrop','addCommentThread','highest','listenTo','get','_disableCommentsOnlyMode'];(function(_0x5a112f,_0x38455b){const _0x2c7910=function(_0x56bbcd){while(--_0x56bbcd){_0x5a112f['push'](_0x5a112f['shift']());}};_0x2c7910(++_0x38455b);}(_0x3845,0x1de));const _0x2c79=function(_0x5a112f,_0x38455b){_0x5a112f=_0x5a112f-0x0;let _0x2c7910=_0x3845[_0x5a112f];return _0x2c7910;};import{Plugin as _0x5c67b5}from'ckeditor5/src/core';import _0x35cbde from'./comments/commentsediting';export default class n extends _0x5c67b5{static get['pluginName'](){return'CommentsOnly';}static get['requires'](){return[_0x35cbde];}constructor(_0x29e9a6){super(_0x29e9a6),this[_0x2c79('0x10')](_0x2c79('0xe'),!0x1),this['on']('change:isEnabled',(_0xb967b0,_0x56a5a5,_0x3f666c)=>{_0x3f666c?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}[_0x2c79('0x9')](){!this[_0x2c79('0xe')]&&this[_0x2c79('0xd')][_0x2c79('0x12')][_0x2c79('0x3')](_0x2c79('0x13'))&&(this[_0x2c79('0xe')]=!0x0);}[_0x2c79('0x15')](){for(const [_0x44f731,_0x514c86]of this[_0x2c79('0xd')][_0x2c79('0xb')])_0x514c86[_0x2c79('0xc')]&&_0x2c79('0x0')!==_0x44f731&&_0x514c86[_0x2c79('0x14')](_0x2c79('0x8'));this['editor'][_0x2c79('0xf')]['has']('DragDrop')&&this[_0x2c79('0xd')][_0x2c79('0xf')][_0x2c79('0x3')](_0x2c79('0x16'))[_0x2c79('0x14')]('commentsOnlyMode');const _0x108bb2=this[_0x2c79('0xd')][_0x2c79('0x7')][_0x2c79('0x5')]['document'];this['listenTo'](_0x108bb2,'cut',_0x3d1121=>_0x3d1121[_0x2c79('0xa')](),{'priority':_0x2c79('0x1')}),this['listenTo'](_0x108bb2,'clipboardInput',_0x5f0644=>_0x5f0644[_0x2c79('0xa')](),{'priority':'highest'}),this[_0x2c79('0x2')](_0x108bb2,_0x2c79('0x11'),_0x3a31df=>_0x3a31df[_0x2c79('0xa')](),{'priority':'highest'});}[_0x2c79('0x4')](){for(const [_0x2264e9,_0x862903]of this['editor'][_0x2c79('0xb')])_0x862903[_0x2c79('0xc')]&&_0x2c79('0x0')!==_0x2264e9&&_0x862903['clearForceDisabled'](_0x2c79('0x8'));this['stopListening'](this[_0x2c79('0xd')][_0x2c79('0x7')]['view'][_0x2c79('0x6')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x1f54e3,_0xfd893e,_0x526682){const t=_0x1f54e3['t'];switch(_0xfd893e){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'},_0x526682);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'},_0x526682);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'},_0x526682);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'},_0x526682);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(_0x19f0d4,_0x4d7f11,_0x3d3ca3){const t=_0x19f0d4['t'];switch(_0x4d7f11){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'},_0x3d3ca3);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'},_0x3d3ca3);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'},_0x3d3ca3);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'},_0x3d3ca3);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 _0x5074=['attributes','observe','characterData','cancel','type','disconnect'];(function(_0x3d5628,_0x507494){const _0x3445df=function(_0x3e2af3){while(--_0x3e2af3){_0x3d5628['push'](_0x3d5628['shift']());}};_0x3445df(++_0x507494);}(_0x5074,0x165));const _0x3445=function(_0x3d5628,_0x507494){_0x3d5628=_0x3d5628-0x0;let _0x3445df=_0x5074[_0x3d5628];return _0x3445df;};import{throttle as _0x4aefd7}from'lodash-es';export default function Dt(_0x293008){const _0x4fbd21=_0x4aefd7(_0x293008,0x1e),_0x599961=new MutationObserver(_0x4601d3=>{for(const _0x54731a of _0x4601d3)(_0x3445('0x3')==_0x54731a[_0x3445('0x1')]&&'class'==_0x54731a['attributeName']||'childList'==_0x54731a[_0x3445('0x1')]||_0x3445('0x5')==_0x54731a['type'])&&_0x4fbd21();});return{'attach'(_0x3a2924){_0x599961[_0x3445('0x4')](_0x3a2924,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x599961[_0x3445('0x2')](),_0x4fbd21[_0x3445('0x0')]();}};}
23
+ const _0x5f27=['type','childList','disconnect','class','characterData','observe'];(function(_0x404a4e,_0x5f2799){const _0x5a814c=function(_0x426518){while(--_0x426518){_0x404a4e['push'](_0x404a4e['shift']());}};_0x5a814c(++_0x5f2799);}(_0x5f27,0x172));const _0x5a81=function(_0x404a4e,_0x5f2799){_0x404a4e=_0x404a4e-0x0;let _0x5a814c=_0x5f27[_0x404a4e];return _0x5a814c;};import{throttle as _0x90b3da}from'lodash-es';export default function Dt(_0x29865b){const _0x47991e=_0x90b3da(_0x29865b,0x1e),_0x32a110=new MutationObserver(_0x2f4824=>{for(const _0x377d81 of _0x2f4824)('attributes'==_0x377d81[_0x5a81('0x2')]&&_0x5a81('0x5')==_0x377d81['attributeName']||_0x5a81('0x3')==_0x377d81[_0x5a81('0x2')]||_0x5a81('0x0')==_0x377d81[_0x5a81('0x2')])&&_0x47991e();});return{'attach'(_0x32c280){_0x32a110[_0x5a81('0x1')](_0x32c280,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x32a110[_0x5a81('0x4')](),_0x47991e['cancel']();}};}