@ckeditor/ckeditor5-comments 0.0.0-nightly-20230906.0 → 0.0.0-nightly-20230907.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/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.d.ts +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 _0x3413=['then','source','ck-annotation__main','showConfirm','Delete\x20comment?','ck-comment__actions--hidden','render','importWord','name','buttonView','_config','getExternalCommentNote','extendTemplate','setTemplate','bind','authoredAt','pencil','fire','icon','placeholder','editButton','ck-comment__wrapper','creator','ck-annotation__user','_createEditButton','switchToEditMode','getUserViewNotificationText','withText','threeVerticalDots','Remove','add','element','change:isRemovable','panelPosition','visibleView','author','push','removeButton','ck-annotation__content-wrapper','_createDropdown','ck-comment','ck-comment__user','dropdown','_createCommentInputView','ck-comment--info','remove','set','Show\x20more\x20items','listenTo','isReadOnly','ck-annotation__info-time','actionIndicator','isExternal','isVisible','isRemovable','userView','some','actionBar','EXTERNAL_IMPORT_WORD_COMMENT','createCollection','getTemplate','div','isEditable','ck-comment--edit','length','ck-annotation__actions','ck-comment__external','isEditMode','children','isConfirm','locale','isEnabled','_model','ck-comment__info-name','ck-comment__info','_attachActions','EXTERNAL_AVATAR','isSystemComment','bindTemplate','blur','Reply...','change:isEnabled','ck-comment__main','focus','execute','ck-annotation__info','attributes','items','mouseleave','ck-comment__info-time','_createRemoveButton','change:isVisible','ck-comment--','@external','ck-annotation'];(function(_0x3f0de4,_0x34132a){const _0x1e20a5=function(_0x35342){while(--_0x35342){_0x3f0de4['push'](_0x3f0de4['shift']());}};_0x1e20a5(++_0x34132a);}(_0x3413,0x16d));const _0x1e20=function(_0x3f0de4,_0x34132a){_0x3f0de4=_0x3f0de4-0x0;let _0x1e20a5=_0x3413[_0x3f0de4];return _0x1e20a5;};import{ButtonView as _0x30bbb2,createDropdown as _0x1701c8,ListView as _0x52be18,ListItemView as _0x42a671}from'ckeditor5/src/ui';import{icons as _0x483850}from'ckeditor5/src/core';import{UserView as _0x40b790,ConfirmMixin as _0xf2a491}from'ckeditor5-collaboration/src/collaboration-core';import _0x5f3cfd from'./basecommentview';import _0x559676 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x3e2c68}from'../../../utils/common-translations';export default class ut extends _0xf2a491(_0x5f3cfd){constructor(_0x37729c,_0x2e96c8,_0x328c5b){super(_0x37729c,_0x2e96c8,_0x328c5b),this[_0x1e20('0x3d')]('actionIndicator',null),this[_0x1e20('0x3d')](_0x1e20('0x22'),_0x3e2c68(_0x37729c,_0x1e20('0x0'))),this[_0x1e20('0x1d')](_0x1e20('0x1e'))['to'](_0x2e96c8),this[_0x1e20('0x1d')]('resolvedAt')['to'](_0x2e96c8),this[_0x1e20('0x48')]=this[_0x1e20('0x4a')](),this[_0x1e20('0x5c')]||(this[_0x1e20('0x23')]=this[_0x1e20('0x27')](),this[_0x1e20('0x34')]=this[_0x1e20('0xa')](),this[_0x1e20('0x7')]=this[_0x1e20('0x4a')](),this[_0x1e20('0x7')]['addMany']([this[_0x1e20('0x23')],this['removeButton']]),this['dropdown']=this[_0x1e20('0x36')](),this[_0x1e20('0x48')][_0x1e20('0x2d')](this[_0x1e20('0x39')])),this['userView']=new _0x40b790(_0x37729c,_0x2e96c8[_0x1e20('0x32')],this['getUserViewNotificationText']()),this[_0x1e20('0x46')][_0x1e20('0x1b')]({'attributes':{'class':[_0x1e20('0x38'),_0x1e20('0x26')]}}),this[_0x1e20('0x3f')](_0x2e96c8,_0x1e20('0x2f'),()=>this['cancelConfirm']()),this[_0x1e20('0x1c')](this[_0x1e20('0x4b')]());}[_0x1e20('0x4b')](){const _0x304a0f=this[_0x1e20('0x5d')],_0x65727f=[{'tag':_0x1e20('0x4c'),'attributes':{'class':[_0x1e20('0x59'),_0x1e20('0x5')]},'children':[{'tag':'span','children':[{'text':this[_0x1e20('0x46')][_0x1e20('0x17')]}],'attributes':{'class':[_0x1e20('0x58'),'ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x304a0f['to'](_0x1e20('0x1e')),'class':[_0x1e20('0x9'),_0x1e20('0x41')]},'children':[{'text':_0x304a0f['to'](_0x1e20('0x1e'),_0x13ea92=>this[_0x1e20('0x19')]['formatDateTime'](_0x13ea92))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions',_0x1e20('0x50'),_0x304a0f['if'](_0x1e20('0x52'),_0x1e20('0x14')),_0x304a0f['if'](_0x1e20('0x52'),'ck-annotation__actions--hidden')]},'children':this[_0x1e20('0x48')]},{'tag':_0x1e20('0x4c'),'attributes':{'class':[_0x1e20('0x35')]},'children':this[_0x1e20('0x31')]}];return this[_0x1e20('0x57')][_0x1e20('0x43')]&&_0x65727f[_0x1e20('0x33')]({'tag':_0x1e20('0x4c'),'attributes':{'class':[_0x1e20('0x51')]},'children':[{'text':this[_0x1e20('0x1a')]()}]}),{'tag':'li','attributes':{'class':[_0x1e20('0x24'),_0x304a0f['if'](_0x1e20('0x54'),'ck-comment--remove-confirmation')],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':[_0x1e20('0x37'),_0x1e20('0xe'),_0x304a0f['if'](_0x1e20('0x52'),'ck-comment--edit'),_0x304a0f['if'](_0x1e20('0x5c'),_0x1e20('0x3b')),_0x304a0f['to'](_0x1e20('0x42'),_0x4d6d1e=>_0x4d6d1e?_0x1e20('0xc')+_0x4d6d1e:'')],'data-author-id':this[_0x1e20('0x57')][_0x1e20('0x32')]['id'],'data-comment-id':this['_model']['id']},'children':[this['userView'],{'tag':_0x1e20('0x4c'),'attributes':{'class':[_0x1e20('0x2'),_0x1e20('0x11')]},'children':_0x65727f}]}]};}['_createEditButton'](){const _0x580c40=new _0x30bbb2(this[_0x1e20('0x55')]);return _0x580c40['label']=_0x3e2c68(this[_0x1e20('0x55')],'Edit'),_0x580c40[_0x1e20('0x21')]=_0x483850[_0x1e20('0x1f')],_0x580c40['withText']=!0x0,_0x580c40[_0x1e20('0x1b')]({'attributes':{'class':_0x1e20('0x4e')}}),_0x580c40['bind']('isEnabled')['to'](this[_0x1e20('0x57')],_0x1e20('0x40'),_0x6b5cfc=>!_0x6b5cfc),_0x580c40['bind'](_0x1e20('0x44'))['to'](this['_model'],_0x1e20('0x4d')),_0x580c40['on'](_0x1e20('0x4'),()=>this[_0x1e20('0x28')]()),_0x580c40;}[_0x1e20('0xa')](){const _0x4569c3=new _0x30bbb2(this['locale']);return _0x4569c3['label']=_0x3e2c68(this[_0x1e20('0x55')],_0x1e20('0x2c')),_0x4569c3[_0x1e20('0x21')]=_0x559676,_0x4569c3[_0x1e20('0x2a')]=!0x0,_0x4569c3[_0x1e20('0x1b')]({'attributes':{'class':'ck-comment--remove'}}),_0x4569c3[_0x1e20('0x1d')](_0x1e20('0x56'))['to'](this[_0x1e20('0x57')],_0x1e20('0x40'),_0x4beae3=>!_0x4beae3),_0x4569c3['bind'](_0x1e20('0x44'))['to'](this[_0x1e20('0x57')],_0x1e20('0x45')),_0x4569c3['on']('execute',()=>{this[_0x1e20('0x12')](_0x3e2c68(this[_0x1e20('0x55')],_0x1e20('0x13')),this[_0x1e20('0x2e')])[_0x1e20('0xf')](()=>{this[_0x1e20('0x20')]('removeComment',this[_0x1e20('0x57')]['id']);});}),_0x4569c3;}[_0x1e20('0x36')](){const _0x47dd67=_0x1701c8(this[_0x1e20('0x55')]),_0x44f6dc=_0x47dd67['panelView'][_0x1e20('0x53')],_0x5c2f42=new _0x52be18(this['locale']),_0x1f9de8=(_0xe2123a,_0x4e8b9a=-0x1)=>{const _0x3033f4=new _0x42a671(this[_0x1e20('0x55')]);_0x3033f4['children'][_0x1e20('0x2d')](_0xe2123a);const _0x209868=_0x4e8b9a>-0x1?_0x4e8b9a:_0x5c2f42[_0x1e20('0x7')][_0x1e20('0x4f')];_0x5c2f42['items']['add'](_0x3033f4,_0x209868),_0x47dd67[_0x1e20('0x3f')](_0xe2123a,_0x1e20('0x1'),()=>{_0x47dd67['isEnabled']=[...this[_0x1e20('0x7')]]['some'](_0x3580f6=>_0x3580f6['isEnabled']);}),_0x47dd67[_0x1e20('0x3f')](_0xe2123a,_0x1e20('0xb'),()=>{_0x47dd67['buttonView'][_0x1e20('0x44')]=[...this[_0x1e20('0x7')]][_0x1e20('0x47')](_0x4ce95e=>_0x4ce95e[_0x1e20('0x44')]);});};_0x47dd67[_0x1e20('0x30')]='sw',_0x47dd67['buttonView'][_0x1e20('0x3d')]({'label':_0x3e2c68(this[_0x1e20('0x55')],_0x1e20('0x3e')),'icon':_0x483850[_0x1e20('0x2b')]}),_0x47dd67['isEnabled']=[...this[_0x1e20('0x7')]][_0x1e20('0x47')](_0x4f35cd=>_0x4f35cd[_0x1e20('0x56')]),_0x47dd67[_0x1e20('0x18')]['isVisible']=[...this[_0x1e20('0x7')]][_0x1e20('0x47')](_0x34df47=>_0x34df47[_0x1e20('0x44')]);for(const _0x3f299a of this[_0x1e20('0x7')])_0x1f9de8(_0x3f299a);return _0x44f6dc[_0x1e20('0x2d')](_0x5c2f42),_0x47dd67[_0x1e20('0x3f')](this['items'],_0x1e20('0x2d'),(_0x4d967d,_0x333241,_0x183952)=>{_0x1f9de8(_0x333241,_0x183952);}),_0x47dd67[_0x1e20('0x3f')](this[_0x1e20('0x7')],_0x1e20('0x3c'),(_0x3a5994,_0x25eb93,_0x5bb1f9)=>{_0x5c2f42['items']['remove'](_0x5bb1f9);}),_0x47dd67;}[_0x1e20('0x5a')](_0xb13fd5,_0x14ad39){const _0x20bebf=_0xb13fd5&&_0xb13fd5[_0x1e20('0x2e')];_0x20bebf&&(this[_0x1e20('0x3f')](_0x20bebf,'mouseenter',()=>this[_0x1e20('0x42')]=_0x14ad39),this['listenTo'](_0x20bebf,_0x1e20('0x3'),()=>this[_0x1e20('0x42')]=_0x14ad39),this[_0x1e20('0x3f')](_0x20bebf,_0x1e20('0x8'),()=>this['actionIndicator']=null),this['listenTo'](_0x20bebf,_0x1e20('0x5e'),()=>this[_0x1e20('0x42')]=null));}['_createCommentInputView'](){const _0x284131=super[_0x1e20('0x3a')]();return _0x284131[_0x1e20('0x1d')]('placeholder')['to'](this),_0x284131;}[_0x1e20('0x1a')](){return _0x1e20('0x16')===this[_0x1e20('0x57')]['attributes'][_0x1e20('0xd')]['source']?_0x3e2c68(this[_0x1e20('0x55')],_0x1e20('0x49')):_0x3e2c68(this[_0x1e20('0x55')],'EXTERNAL_COMMENT');}[_0x1e20('0x29')](){return this[_0x1e20('0x57')]['isExternal']?_0x1e20('0x16')===this['_model'][_0x1e20('0x6')][_0x1e20('0xd')][_0x1e20('0x10')]?_0x3e2c68(this[_0x1e20('0x55')],'EXTERNAL_IMPORT_WORD_AVATAR',this[_0x1e20('0x57')][_0x1e20('0x25')][_0x1e20('0x17')]):_0x3e2c68(this[_0x1e20('0x55')],_0x1e20('0x5b'),this[_0x1e20('0x57')][_0x1e20('0x25')][_0x1e20('0x17')]):null;}[_0x1e20('0x15')](){super[_0x1e20('0x15')](),this[_0x1e20('0x5a')](this['editButton'],'edit'),this[_0x1e20('0x5a')](this[_0x1e20('0x34')],_0x1e20('0x3c'));}}
23
+ const _0x3415=['_createEditButton','ck-comment--remove-confirmation','ck-comment__info','isConfirm','render','remove','ck-comment','length','_model','extendTemplate','children','Remove','ck-comment__actions','name','ck-annotation','label','isEnabled','then','blur','isReadOnly','listenTo','div','edit','ck-comment__info-name','@external','change:isVisible','_createRemoveButton','ck-comment--remove','EXTERNAL_IMPORT_WORD_COMMENT','creator','importWord','some','withText','getExternalCommentNote','ck-comment--edit','focus','EXTERNAL_AVATAR','items','isEditMode','ck-comment__user','bind','Show\x20more\x20items','ck-annotation__info','ck-comment__external','addMany','Reply...','removeButton','isExternal','_createCommentInputView','ck-comment__main','removeComment','icon','mouseleave','source','placeholder','actionBar','actionIndicator','getUserViewNotificationText','author','authoredAt','visibleView','cancelConfirm','time','locale','isVisible','execute','ck-comment__info-time','span','add','ck-annotation__user','ck-annotation__info-time','fire','pencil','buttonView','createCollection','isRemovable','_attachActions','isSystemComment','EXTERNAL_IMPORT_WORD_AVATAR','ck-annotation__actions--hidden','ck-annotation__info-name','dropdown','push','element','editButton','getTemplate','set','Delete\x20comment?','userView'];(function(_0xfd1af5,_0x3415fb){const _0x12c766=function(_0x2c563f){while(--_0x2c563f){_0xfd1af5['push'](_0xfd1af5['shift']());}};_0x12c766(++_0x3415fb);}(_0x3415,0xa6));const _0x12c7=function(_0xfd1af5,_0x3415fb){_0xfd1af5=_0xfd1af5-0x0;let _0x12c766=_0x3415[_0xfd1af5];return _0x12c766;};import{ButtonView as _0x4fff79,createDropdown as _0x33963d,ListView as _0x20a591,ListItemView as _0x49db63}from'ckeditor5/src/ui';import{icons as _0x5bdefb}from'ckeditor5/src/core';import{UserView as _0x319623,ConfirmMixin as _0x379814}from'ckeditor5-collaboration/src/collaboration-core';import _0x541d36 from'./basecommentview';import _0x258f51 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x1e0dda}from'../../../utils/common-translations';export default class ut extends _0x379814(_0x541d36){constructor(_0x322a50,_0xeef191,_0x33bc15){super(_0x322a50,_0xeef191,_0x33bc15),this[_0x12c7('0x9')](_0x12c7('0x44'),null),this[_0x12c7('0x9')](_0x12c7('0x42'),_0x1e0dda(_0x322a50,_0x12c7('0x39'))),this['bind'](_0x12c7('0x47'))['to'](_0xeef191),this[_0x12c7('0x34')]('resolvedAt')['to'](_0xeef191),this[_0x12c7('0x43')]=this[_0x12c7('0x56')](),this[_0x12c7('0x0')]||(this[_0x12c7('0x7')]=this['_createEditButton'](),this[_0x12c7('0x3a')]=this[_0x12c7('0x26')](),this[_0x12c7('0x31')]=this['createCollection'](),this[_0x12c7('0x31')][_0x12c7('0x38')]([this[_0x12c7('0x7')],this[_0x12c7('0x3a')]]),this[_0x12c7('0x4')]=this['_createDropdown'](),this[_0x12c7('0x43')]['add'](this[_0x12c7('0x4')])),this['userView']=new _0x319623(_0x322a50,_0xeef191[_0x12c7('0x46')],this['getUserViewNotificationText']()),this[_0x12c7('0xb')][_0x12c7('0x15')]({'attributes':{'class':[_0x12c7('0x33'),_0x12c7('0x51')]}}),this[_0x12c7('0x20')](_0xeef191,'change:isRemovable',()=>this[_0x12c7('0x49')]()),this['setTemplate'](this['getTemplate']());}[_0x12c7('0x8')](){const _0x4e15e1=this['bindTemplate'],_0x583f1d=[{'tag':_0x12c7('0x21'),'attributes':{'class':[_0x12c7('0xe'),_0x12c7('0x36')]},'children':[{'tag':_0x12c7('0x4f'),'children':[{'text':this['userView'][_0x12c7('0x19')]}],'attributes':{'class':[_0x12c7('0x23'),_0x12c7('0x3')]}},{'tag':_0x12c7('0x4a'),'attributes':{'datetime':_0x4e15e1['to']('authoredAt'),'class':[_0x12c7('0x4e'),_0x12c7('0x52')]},'children':[{'text':_0x4e15e1['to'](_0x12c7('0x47'),_0x12ba31=>this['_config']['formatDateTime'](_0x12ba31))}]}]},{'tag':'div','attributes':{'class':[_0x12c7('0x18'),'ck-annotation__actions',_0x4e15e1['if'](_0x12c7('0x32'),'ck-comment__actions--hidden'),_0x4e15e1['if']('isEditMode',_0x12c7('0x2'))]},'children':this[_0x12c7('0x43')]},{'tag':_0x12c7('0x21'),'attributes':{'class':['ck-annotation__content-wrapper']},'children':this[_0x12c7('0x48')]}];return this[_0x12c7('0x14')][_0x12c7('0x3b')]&&_0x583f1d[_0x12c7('0x5')]({'tag':_0x12c7('0x21'),'attributes':{'class':[_0x12c7('0x37')]},'children':[{'text':this[_0x12c7('0x2d')]()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x4e15e1['if'](_0x12c7('0xf'),_0x12c7('0xd'))],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':[_0x12c7('0x12'),_0x12c7('0x1a'),_0x4e15e1['if'](_0x12c7('0x32'),_0x12c7('0x2e')),_0x4e15e1['if'](_0x12c7('0x0'),'ck-comment--info'),_0x4e15e1['to'](_0x12c7('0x44'),_0x3c588c=>_0x3c588c?'ck-comment--'+_0x3c588c:'')],'data-author-id':this[_0x12c7('0x14')][_0x12c7('0x46')]['id'],'data-comment-id':this['_model']['id']},'children':[this[_0x12c7('0xb')],{'tag':'div','attributes':{'class':[_0x12c7('0x3d'),'ck-annotation__main']},'children':_0x583f1d}]}]};}[_0x12c7('0xc')](){const _0x5c529c=new _0x4fff79(this[_0x12c7('0x4b')]);return _0x5c529c[_0x12c7('0x1b')]=_0x1e0dda(this[_0x12c7('0x4b')],'Edit'),_0x5c529c[_0x12c7('0x3f')]=_0x5bdefb[_0x12c7('0x54')],_0x5c529c['withText']=!0x0,_0x5c529c[_0x12c7('0x15')]({'attributes':{'class':_0x12c7('0x2e')}}),_0x5c529c[_0x12c7('0x34')]('isEnabled')['to'](this['_model'],_0x12c7('0x1f'),_0x30f3e3=>!_0x30f3e3),_0x5c529c[_0x12c7('0x34')]('isVisible')['to'](this[_0x12c7('0x14')],'isEditable'),_0x5c529c['on'](_0x12c7('0x4d'),()=>this['switchToEditMode']()),_0x5c529c;}[_0x12c7('0x26')](){const _0x2df1b8=new _0x4fff79(this[_0x12c7('0x4b')]);return _0x2df1b8[_0x12c7('0x1b')]=_0x1e0dda(this[_0x12c7('0x4b')],_0x12c7('0x17')),_0x2df1b8[_0x12c7('0x3f')]=_0x258f51,_0x2df1b8[_0x12c7('0x2c')]=!0x0,_0x2df1b8['extendTemplate']({'attributes':{'class':_0x12c7('0x27')}}),_0x2df1b8[_0x12c7('0x34')](_0x12c7('0x1c'))['to'](this[_0x12c7('0x14')],'isReadOnly',_0x581926=>!_0x581926),_0x2df1b8[_0x12c7('0x34')]('isVisible')['to'](this[_0x12c7('0x14')],_0x12c7('0x57')),_0x2df1b8['on'](_0x12c7('0x4d'),()=>{this['showConfirm'](_0x1e0dda(this[_0x12c7('0x4b')],_0x12c7('0xa')),this[_0x12c7('0x6')])[_0x12c7('0x1d')](()=>{this[_0x12c7('0x53')](_0x12c7('0x3e'),this[_0x12c7('0x14')]['id']);});}),_0x2df1b8;}['_createDropdown'](){const _0x2f695c=_0x33963d(this[_0x12c7('0x4b')]),_0x1e6f5c=_0x2f695c['panelView'][_0x12c7('0x16')],_0x51db95=new _0x20a591(this['locale']),_0x22587b=(_0xbb6675,_0x53cc25=-0x1)=>{const _0x564b21=new _0x49db63(this['locale']);_0x564b21['children']['add'](_0xbb6675);const _0x443387=_0x53cc25>-0x1?_0x53cc25:_0x51db95[_0x12c7('0x31')][_0x12c7('0x13')];_0x51db95[_0x12c7('0x31')][_0x12c7('0x50')](_0x564b21,_0x443387),_0x2f695c[_0x12c7('0x20')](_0xbb6675,'change:isEnabled',()=>{_0x2f695c[_0x12c7('0x1c')]=[...this[_0x12c7('0x31')]][_0x12c7('0x2b')](_0x561808=>_0x561808[_0x12c7('0x1c')]);}),_0x2f695c[_0x12c7('0x20')](_0xbb6675,_0x12c7('0x25'),()=>{_0x2f695c[_0x12c7('0x55')][_0x12c7('0x4c')]=[...this[_0x12c7('0x31')]][_0x12c7('0x2b')](_0x363b45=>_0x363b45[_0x12c7('0x4c')]);});};_0x2f695c['panelPosition']='sw',_0x2f695c[_0x12c7('0x55')][_0x12c7('0x9')]({'label':_0x1e0dda(this[_0x12c7('0x4b')],_0x12c7('0x35')),'icon':_0x5bdefb['threeVerticalDots']}),_0x2f695c['isEnabled']=[...this['items']][_0x12c7('0x2b')](_0x52c5c5=>_0x52c5c5[_0x12c7('0x1c')]),_0x2f695c[_0x12c7('0x55')][_0x12c7('0x4c')]=[...this[_0x12c7('0x31')]][_0x12c7('0x2b')](_0x28de94=>_0x28de94[_0x12c7('0x4c')]);for(const _0x3c5845 of this['items'])_0x22587b(_0x3c5845);return _0x1e6f5c[_0x12c7('0x50')](_0x51db95),_0x2f695c[_0x12c7('0x20')](this[_0x12c7('0x31')],'add',(_0x1a49ec,_0x54712c,_0x369564)=>{_0x22587b(_0x54712c,_0x369564);}),_0x2f695c[_0x12c7('0x20')](this[_0x12c7('0x31')],'remove',(_0x5a4c6d,_0x48d3b2,_0x15b393)=>{_0x51db95['items'][_0x12c7('0x11')](_0x15b393);}),_0x2f695c;}[_0x12c7('0x58')](_0x5b1e9d,_0x170ff9){const _0x5025a4=_0x5b1e9d&&_0x5b1e9d[_0x12c7('0x6')];_0x5025a4&&(this[_0x12c7('0x20')](_0x5025a4,'mouseenter',()=>this[_0x12c7('0x44')]=_0x170ff9),this[_0x12c7('0x20')](_0x5025a4,_0x12c7('0x2f'),()=>this[_0x12c7('0x44')]=_0x170ff9),this[_0x12c7('0x20')](_0x5025a4,_0x12c7('0x40'),()=>this[_0x12c7('0x44')]=null),this['listenTo'](_0x5025a4,_0x12c7('0x1e'),()=>this[_0x12c7('0x44')]=null));}['_createCommentInputView'](){const _0xe26202=super[_0x12c7('0x3c')]();return _0xe26202['bind'](_0x12c7('0x42'))['to'](this),_0xe26202;}[_0x12c7('0x2d')](){return _0x12c7('0x2a')===this[_0x12c7('0x14')]['attributes']['@external']['source']?_0x1e0dda(this[_0x12c7('0x4b')],_0x12c7('0x28')):_0x1e0dda(this[_0x12c7('0x4b')],'EXTERNAL_COMMENT');}[_0x12c7('0x45')](){return this['_model']['isExternal']?'importWord'===this[_0x12c7('0x14')]['attributes'][_0x12c7('0x24')][_0x12c7('0x41')]?_0x1e0dda(this['locale'],_0x12c7('0x1'),this[_0x12c7('0x14')][_0x12c7('0x29')][_0x12c7('0x19')]):_0x1e0dda(this['locale'],_0x12c7('0x30'),this[_0x12c7('0x14')][_0x12c7('0x29')][_0x12c7('0x19')]):null;}[_0x12c7('0x10')](){super['render'](),this[_0x12c7('0x58')](this[_0x12c7('0x7')],_0x12c7('0x22')),this[_0x12c7('0x58')](this[_0x12c7('0x3a')],'remove');}}
package/src/comments.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x44a5=['requires','Comments'];(function(_0x2122d4,_0x44a52f){var _0x4d0d5b=function(_0x266747){while(--_0x266747){_0x2122d4['push'](_0x2122d4['shift']());}};_0x4d0d5b(++_0x44a52f);}(_0x44a5,0xef));var _0x4d0d=function(_0x2122d4,_0x44a52f){_0x2122d4=_0x2122d4-0x0;var _0x4d0d5b=_0x44a5[_0x2122d4];return _0x4d0d5b;};import{Plugin as _0x208696}from'ckeditor5/src/core';import _0x2e96f0 from'./comments/commentsrepository';import _0x349409 from'./comments/commentsediting';import _0x4ddd9a from'./comments/commentsui';import _0x4b4899 from'./commentsonly';import _0x21591a from'./annotations/widesidebar';import _0x4fd2d7 from'./annotations/narrowsidebar';import _0x8423e1 from'./annotations/inlineannotations';import _0x5bccb6 from'./comments/commentsarchiveui';import _0x177b7f from'./comments/commentsarchive';export default class f extends _0x208696{static get[_0x4d0d('0x1')](){return[_0x2e96f0,_0x349409,_0x4ddd9a,_0x177b7f,_0x5bccb6,_0x4b4899,_0x21591a,_0x4fd2d7,_0x8423e1];}static get['pluginName'](){return _0x4d0d('0x0');}}
23
+ var _0x3257=['pluginName','Comments'];(function(_0x5ef94c,_0x3257a9){var _0x2dbfb8=function(_0x50332c){while(--_0x50332c){_0x5ef94c['push'](_0x5ef94c['shift']());}};_0x2dbfb8(++_0x3257a9);}(_0x3257,0x1f3));var _0x2dbf=function(_0x5ef94c,_0x3257a9){_0x5ef94c=_0x5ef94c-0x0;var _0x2dbfb8=_0x3257[_0x5ef94c];return _0x2dbfb8;};import{Plugin as _0x7e673a}from'ckeditor5/src/core';import _0x421080 from'./comments/commentsrepository';import _0x31d8f1 from'./comments/commentsediting';import _0x4c263d from'./comments/commentsui';import _0xc8e54e from'./commentsonly';import _0x11e35e from'./annotations/widesidebar';import _0x3a0d94 from'./annotations/narrowsidebar';import _0x3d8eb2 from'./annotations/inlineannotations';import _0x1b82eb from'./comments/commentsarchiveui';import _0x1b3b52 from'./comments/commentsarchive';export default class f extends _0x7e673a{static get['requires'](){return[_0x421080,_0x31d8f1,_0x4c263d,_0x1b3b52,_0x1b82eb,_0xc8e54e,_0x11e35e,_0x3a0d94,_0x3d8eb2];}static get[_0x2dbf('0x1')](){return _0x2dbf('0x0');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4cda=['_disableCommentsOnlyMode','pluginName','addCommentThread','_enableCommentsOnlyMode','config','delete','change:isEnabled','editing','requires','get','clipboardInput','commands','clearForceDisabled','stop','editor','document','plugins','listenTo','commentsOnlyMode','view','set','DragDrop','has','highest','isEnabled','cut','afterInit'];(function(_0x17b35c,_0x4cda32){const _0x4d84a8=function(_0x2a5442){while(--_0x2a5442){_0x17b35c['push'](_0x17b35c['shift']());}};_0x4d84a8(++_0x4cda32);}(_0x4cda,0xc7));const _0x4d84=function(_0x17b35c,_0x4cda32){_0x17b35c=_0x17b35c-0x0;let _0x4d84a8=_0x4cda[_0x17b35c];return _0x4d84a8;};import{Plugin as _0xa7a550}from'ckeditor5/src/core';import _0x46c51e from'./comments/commentsediting';export default class n extends _0xa7a550{static get[_0x4d84('0x12')](){return'CommentsOnly';}static get[_0x4d84('0x19')](){return[_0x46c51e];}constructor(_0x2b1773){super(_0x2b1773),this[_0x4d84('0xa')](_0x4d84('0xe'),!0x1),this['on'](_0x4d84('0x17'),(_0x9f69e,_0x42147d,_0x421e89)=>{_0x421e89?this[_0x4d84('0x14')]():this[_0x4d84('0x11')]();});}[_0x4d84('0x10')](){!this[_0x4d84('0xe')]&&this[_0x4d84('0x4')][_0x4d84('0x15')][_0x4d84('0x1a')]('commentsOnly')&&(this[_0x4d84('0xe')]=!0x0);}[_0x4d84('0x14')](){for(const [_0x421b92,_0x3fa5da]of this[_0x4d84('0x4')][_0x4d84('0x1')])_0x3fa5da['affectsData']&&_0x4d84('0x13')!==_0x421b92&&_0x3fa5da['forceDisabled'](_0x4d84('0x8'));this[_0x4d84('0x4')][_0x4d84('0x6')][_0x4d84('0xc')](_0x4d84('0xb'))&&this[_0x4d84('0x4')][_0x4d84('0x6')]['get'](_0x4d84('0xb'))['forceDisabled'](_0x4d84('0x8'));const _0x1b558a=this[_0x4d84('0x4')][_0x4d84('0x18')][_0x4d84('0x9')]['document'];this[_0x4d84('0x7')](_0x1b558a,_0x4d84('0xf'),_0x3cf7df=>_0x3cf7df[_0x4d84('0x3')](),{'priority':_0x4d84('0xd')}),this[_0x4d84('0x7')](_0x1b558a,_0x4d84('0x0'),_0x2238a6=>_0x2238a6['stop'](),{'priority':_0x4d84('0xd')}),this['listenTo'](_0x1b558a,_0x4d84('0x16'),_0x12d485=>_0x12d485['stop'](),{'priority':_0x4d84('0xd')});}[_0x4d84('0x11')](){for(const [_0x55deee,_0x231b92]of this[_0x4d84('0x4')][_0x4d84('0x1')])_0x231b92['affectsData']&&_0x4d84('0x13')!==_0x55deee&&_0x231b92[_0x4d84('0x2')](_0x4d84('0x8'));this['stopListening'](this['editor'][_0x4d84('0x18')][_0x4d84('0x9')][_0x4d84('0x5')]);}}
23
+ const _0x4439=['get','affectsData','CommentsOnly','_disableCommentsOnlyMode','_enableCommentsOnlyMode','change:isEnabled','addCommentThread','plugins','afterInit','cut','clipboardInput','listenTo','editing','editor','view','stopListening','DragDrop','config','requires','commentsOnly','delete','clearForceDisabled','commentsOnlyMode','document','stop','highest','isEnabled','forceDisabled','set'];(function(_0x270ab1,_0x4439ee){const _0x1358b6=function(_0x36cea2){while(--_0x36cea2){_0x270ab1['push'](_0x270ab1['shift']());}};_0x1358b6(++_0x4439ee);}(_0x4439,0x108));const _0x1358=function(_0x270ab1,_0x4439ee){_0x270ab1=_0x270ab1-0x0;let _0x1358b6=_0x4439[_0x270ab1];return _0x1358b6;};import{Plugin as _0x32d1d8}from'ckeditor5/src/core';import _0x3e7594 from'./comments/commentsediting';export default class n extends _0x32d1d8{static get['pluginName'](){return _0x1358('0x1c');}static get[_0x1358('0xf')](){return[_0x3e7594];}constructor(_0x100146){super(_0x100146),this[_0x1358('0x19')](_0x1358('0x17'),!0x1),this['on'](_0x1358('0x2'),(_0x4fd7e8,_0xa28f60,_0xf5c811)=>{_0xf5c811?this[_0x1358('0x1')]():this[_0x1358('0x0')]();});}[_0x1358('0x5')](){!this[_0x1358('0x17')]&&this[_0x1358('0xa')][_0x1358('0xe')][_0x1358('0x1a')](_0x1358('0x10'))&&(this[_0x1358('0x17')]=!0x0);}[_0x1358('0x1')](){for(const [_0x5eb686,_0x28b2c1]of this['editor']['commands'])_0x28b2c1[_0x1358('0x1b')]&&_0x1358('0x3')!==_0x5eb686&&_0x28b2c1[_0x1358('0x18')](_0x1358('0x13'));this['editor'][_0x1358('0x4')]['has'](_0x1358('0xd'))&&this[_0x1358('0xa')][_0x1358('0x4')][_0x1358('0x1a')](_0x1358('0xd'))['forceDisabled'](_0x1358('0x13'));const _0x4307de=this[_0x1358('0xa')][_0x1358('0x9')]['view'][_0x1358('0x14')];this[_0x1358('0x8')](_0x4307de,_0x1358('0x6'),_0x1cb102=>_0x1cb102[_0x1358('0x15')](),{'priority':_0x1358('0x16')}),this[_0x1358('0x8')](_0x4307de,_0x1358('0x7'),_0xa6fca9=>_0xa6fca9[_0x1358('0x15')](),{'priority':'highest'}),this[_0x1358('0x8')](_0x4307de,_0x1358('0x11'),_0x127d33=>_0x127d33[_0x1358('0x15')](),{'priority':_0x1358('0x16')});}[_0x1358('0x0')](){for(const [_0x2b9491,_0x1bc617]of this[_0x1358('0xa')]['commands'])_0x1bc617[_0x1358('0x1b')]&&_0x1358('0x3')!==_0x2b9491&&_0x1bc617[_0x1358('0x12')]('commentsOnlyMode');this[_0x1358('0xc')](this[_0x1358('0xa')][_0x1358('0x9')][_0x1358('0xb')][_0x1358('0x14')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x5d23f2,_0x1641d4,_0x1945dc){const t=_0x5d23f2['t'];switch(_0x1641d4){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'},_0x1945dc);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'},_0x1945dc);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'},_0x1945dc);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'},_0x1945dc);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(_0x4f325e,_0x262bc9,_0x3aaaba){const t=_0x4f325e['t'];switch(_0x262bc9){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'},_0x3aaaba);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'},_0x3aaaba);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'},_0x3aaaba);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'},_0x3aaaba);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 _0x4212=['attributeName','type','disconnect','attributes','characterData','observe','childList','cancel'];(function(_0x3c4c2d,_0x421281){const _0x2f9ef7=function(_0x2998ab){while(--_0x2998ab){_0x3c4c2d['push'](_0x3c4c2d['shift']());}};_0x2f9ef7(++_0x421281);}(_0x4212,0x161));const _0x2f9e=function(_0x3c4c2d,_0x421281){_0x3c4c2d=_0x3c4c2d-0x0;let _0x2f9ef7=_0x4212[_0x3c4c2d];return _0x2f9ef7;};import{throttle as _0x457498}from'lodash-es';export default function Dt(_0x1bf1ea){const _0xca3813=_0x457498(_0x1bf1ea,0x1e),_0x144e63=new MutationObserver(_0x15da34=>{for(const _0x4ec55f of _0x15da34)(_0x2f9e('0x2')==_0x4ec55f[_0x2f9e('0x0')]&&'class'==_0x4ec55f[_0x2f9e('0x7')]||_0x2f9e('0x5')==_0x4ec55f[_0x2f9e('0x0')]||_0x2f9e('0x3')==_0x4ec55f[_0x2f9e('0x0')])&&_0xca3813();});return{'attach'(_0x59967b){_0x144e63[_0x2f9e('0x4')](_0x59967b,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x144e63[_0x2f9e('0x1')](),_0xca3813[_0x2f9e('0x6')]();}};}
23
+ const _0x4a3a=['observe','attributeName','disconnect','type','characterData','attributes','childList','class'];(function(_0x1b8a42,_0x4a3a45){const _0x3600c8=function(_0x5dd057){while(--_0x5dd057){_0x1b8a42['push'](_0x1b8a42['shift']());}};_0x3600c8(++_0x4a3a45);}(_0x4a3a,0xd7));const _0x3600=function(_0x1b8a42,_0x4a3a45){_0x1b8a42=_0x1b8a42-0x0;let _0x3600c8=_0x4a3a[_0x1b8a42];return _0x3600c8;};import{throttle as _0x274837}from'lodash-es';export default function Dt(_0x35f696){const _0x394d10=_0x274837(_0x35f696,0x1e),_0x39870a=new MutationObserver(_0x1cf257=>{for(const _0x14f754 of _0x1cf257)(_0x3600('0x6')==_0x14f754[_0x3600('0x4')]&&_0x3600('0x0')==_0x14f754[_0x3600('0x2')]||_0x3600('0x7')==_0x14f754[_0x3600('0x4')]||_0x3600('0x5')==_0x14f754[_0x3600('0x4')])&&_0x394d10();});return{'attach'(_0x105567){_0x39870a[_0x3600('0x1')](_0x105567,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x39870a[_0x3600('0x3')](),_0x394d10['cancel']();}};}