@ckeditor/ckeditor5-comments 0.0.0-nightly-20231206.0 → 0.0.0-nightly-20231208.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 (49) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/build/comments.js +1 -1
  3. package/build/translations/gl.js +1 -1
  4. package/build/translations/sr-latn.js +1 -1
  5. package/build/translations/ug.js +1 -1
  6. package/lang/translations/gl.po +2 -2
  7. package/lang/translations/sr-latn.po +3 -3
  8. package/lang/translations/ug.po +10 -10
  9. package/package.json +3 -3
  10. package/src/annotations/annotation.js +1 -1
  11. package/src/annotations/annotationcollection.js +1 -1
  12. package/src/annotations/annotations.js +1 -1
  13. package/src/annotations/annotationsuis.js +1 -1
  14. package/src/annotations/editorannotations.js +1 -1
  15. package/src/annotations/inlineannotations.js +1 -1
  16. package/src/annotations/narrowsidebar.js +1 -1
  17. package/src/annotations/sidebar.js +1 -1
  18. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  19. package/src/annotations/view/annotationview.js +1 -1
  20. package/src/annotations/view/sidebaritemview.js +1 -1
  21. package/src/annotations/view/sidebarview.js +1 -1
  22. package/src/annotations/widesidebar.js +1 -1
  23. package/src/comments/addcommentthreadcommand.js +1 -1
  24. package/src/comments/commentsarchive.js +1 -1
  25. package/src/comments/commentsarchiveui.js +1 -1
  26. package/src/comments/commentsediting.js +1 -1
  27. package/src/comments/commentsrepository.js +1 -1
  28. package/src/comments/commentsui.js +1 -1
  29. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  30. package/src/comments/integrations/importword.js +1 -1
  31. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  32. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  33. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  34. package/src/comments/ui/commentthreadcontroller.js +1 -1
  35. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  36. package/src/comments/ui/view/basecommentview.js +1 -1
  37. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  38. package/src/comments/ui/view/commentcontentview.js +1 -1
  39. package/src/comments/ui/view/commentinputview.js +1 -1
  40. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  41. package/src/comments/ui/view/commentslistview.js +1 -1
  42. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  43. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  44. package/src/comments/ui/view/commentthreadview.js +1 -1
  45. package/src/comments/ui/view/commentview.js +1 -1
  46. package/src/comments.js +1 -1
  47. package/src/commentsonly.js +1 -1
  48. package/src/utils/common-translations.js +1 -1
  49. package/src/utils/createmutationobserver.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4ebc=['length','Edit','push','addMany','change:isVisible','creator','_config','ck-annotation__info','isEditable','isSystemComment','formatDateTime','EXTERNAL_IMPORT_WORD_AVATAR','actionIndicator','isVisible','panelPosition','dropdown','ck-comment__user','focus','label','ck-comment--info','change:isRemovable','ck-annotation__info-time','author','name','EXTERNAL_COMMENT','div','listenTo','ck-annotation__main','isExternal','set','items','add','panelView','span','ck-comment--remove','attributes','getUserViewNotificationText','isConfirm','execute','placeholder','locale','_createRemoveButton','then','ck-comment__info','actionBar','ck-comment__external','some','cancelConfirm','icon','EXTERNAL_AVATAR','mouseleave','showConfirm','ck-annotation__user','withText','getExternalCommentNote','ck-comment__info-name','visibleView','@external','time','ck-comment__actions','Delete\x20comment?','_createEditButton','ck-comment--','mouseenter','change:isEnabled','remove','_createCommentInputView','Remove','extendTemplate','_createDropdown','isEditMode','_attachActions','_model','switchToEditMode','fire','userView','setTemplate','ck-comment--remove-confirmation','source','removeButton','importWord','ck-annotation__actions--hidden','children','ck-comment--edit','element','buttonView','threeVerticalDots','render','isRemovable','createCollection','isEnabled','Show\x20more\x20items','getTemplate','editButton','edit','bind'];(function(_0x46e711,_0x4ebcb0){const _0x539ac2=function(_0x3833d8){while(--_0x3833d8){_0x46e711['push'](_0x46e711['shift']());}};_0x539ac2(++_0x4ebcb0);}(_0x4ebc,0x18e));const _0x539a=function(_0x46e711,_0x4ebcb0){_0x46e711=_0x46e711-0x0;let _0x539ac2=_0x4ebc[_0x46e711];return _0x539ac2;};import{ButtonView as _0x246679,createDropdown as _0x288518,ListView as _0x1162a8,ListItemView as _0x5c9f8b}from'ckeditor5/src/ui';import{icons as _0x5ca02e}from'ckeditor5/src/core';import{UserView as _0x4663dc,ConfirmMixin as _0x7164d2}from'ckeditor5-collaboration/src/collaboration-core';import _0x488e73 from'./basecommentview';import _0x5a1238 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x5a6eef}from'../../../utils/common-translations';export default class pt extends _0x7164d2(_0x488e73){constructor(_0xe6758c,_0x81cd3e,_0x47dc40){super(_0xe6758c,_0x81cd3e,_0x47dc40),this[_0x539a('0xf')](_0x539a('0x5e'),null),this[_0x539a('0xf')](_0x539a('0x19'),_0x5a6eef(_0xe6758c,'Reply...')),this['bind']('authoredAt')['to'](_0x81cd3e),this[_0x539a('0x51')]('resolvedAt')['to'](_0x81cd3e),this['actionBar']=this[_0x539a('0x4b')](),this[_0x539a('0x5b')]||(this[_0x539a('0x4f')]=this[_0x539a('0x2f')](),this[_0x539a('0x41')]=this[_0x539a('0x1b')](),this[_0x539a('0x10')]=this[_0x539a('0x4b')](),this[_0x539a('0x10')][_0x539a('0x55')]([this['editButton'],this['removeButton']]),this[_0x539a('0x1')]=this[_0x539a('0x37')](),this[_0x539a('0x1e')][_0x539a('0x11')](this['dropdown'])),this['userView']=new _0x4663dc(_0xe6758c,_0x81cd3e['author'],this[_0x539a('0x16')]()),this[_0x539a('0x3d')][_0x539a('0x36')]({'attributes':{'class':[_0x539a('0x2'),_0x539a('0x26')]}}),this[_0x539a('0xc')](_0x81cd3e,_0x539a('0x6'),()=>this[_0x539a('0x21')]()),this[_0x539a('0x3e')](this[_0x539a('0x4e')]());}[_0x539a('0x4e')](){const _0x179f81=this['bindTemplate'],_0xecc325=[{'tag':_0x539a('0xb'),'attributes':{'class':[_0x539a('0x1d'),_0x539a('0x59')]},'children':[{'tag':_0x539a('0x13'),'children':[{'text':this['userView']['name']}],'attributes':{'class':[_0x539a('0x29'),'ck-annotation__info-name']}},{'tag':_0x539a('0x2c'),'attributes':{'datetime':_0x179f81['to']('authoredAt'),'class':['ck-comment__info-time',_0x539a('0x7')]},'children':[{'text':_0x179f81['to']('authoredAt',_0x552d98=>this[_0x539a('0x58')][_0x539a('0x5c')](_0x552d98))}]}]},{'tag':_0x539a('0xb'),'attributes':{'class':[_0x539a('0x2d'),'ck-annotation__actions',_0x179f81['if'](_0x539a('0x38'),'ck-comment__actions--hidden'),_0x179f81['if'](_0x539a('0x38'),_0x539a('0x43'))]},'children':this[_0x539a('0x1e')]},{'tag':_0x539a('0xb'),'attributes':{'class':['ck-annotation__content-wrapper']},'children':this[_0x539a('0x2a')]}];return this[_0x539a('0x3a')]['isExternal']&&_0xecc325[_0x539a('0x54')]({'tag':_0x539a('0xb'),'attributes':{'class':[_0x539a('0x1f')]},'children':[{'text':this[_0x539a('0x28')]()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x179f81['if'](_0x539a('0x17'),_0x539a('0x3f'))],'tabindex':-0x1},'children':[{'tag':_0x539a('0xb'),'attributes':{'class':['ck-comment','ck-annotation',_0x179f81['if']('isEditMode',_0x539a('0x45')),_0x179f81['if'](_0x539a('0x5b'),_0x539a('0x5')),_0x179f81['to'](_0x539a('0x5e'),_0x21c855=>_0x21c855?_0x539a('0x30')+_0x21c855:'')],'data-author-id':this['_model'][_0x539a('0x8')]['id'],'data-comment-id':this['_model']['id']},'children':[this['userView'],{'tag':_0x539a('0xb'),'attributes':{'class':['ck-comment__main',_0x539a('0xd')]},'children':_0xecc325}]}]};}['_createEditButton'](){const _0x596218=new _0x246679(this['locale']);return _0x596218[_0x539a('0x4')]=_0x5a6eef(this[_0x539a('0x1a')],_0x539a('0x53')),_0x596218[_0x539a('0x22')]=_0x5ca02e['pencil'],_0x596218[_0x539a('0x27')]=!0x0,_0x596218[_0x539a('0x36')]({'attributes':{'class':_0x539a('0x45')}}),_0x596218[_0x539a('0x51')]('isEnabled')['to'](this[_0x539a('0x3a')],'isReadOnly',_0x2bf742=>!_0x2bf742),_0x596218[_0x539a('0x51')](_0x539a('0x5f'))['to'](this[_0x539a('0x3a')],_0x539a('0x5a')),_0x596218['on'](_0x539a('0x18'),()=>this[_0x539a('0x3b')]()),_0x596218;}[_0x539a('0x1b')](){const _0x490fff=new _0x246679(this[_0x539a('0x1a')]);return _0x490fff[_0x539a('0x4')]=_0x5a6eef(this[_0x539a('0x1a')],_0x539a('0x35')),_0x490fff[_0x539a('0x22')]=_0x5a1238,_0x490fff[_0x539a('0x27')]=!0x0,_0x490fff[_0x539a('0x36')]({'attributes':{'class':_0x539a('0x14')}}),_0x490fff[_0x539a('0x51')](_0x539a('0x4c'))['to'](this[_0x539a('0x3a')],'isReadOnly',_0x506da4=>!_0x506da4),_0x490fff['bind']('isVisible')['to'](this[_0x539a('0x3a')],_0x539a('0x4a')),_0x490fff['on'](_0x539a('0x18'),()=>{this[_0x539a('0x25')](_0x5a6eef(this[_0x539a('0x1a')],_0x539a('0x2e')),this[_0x539a('0x46')])[_0x539a('0x1c')](()=>{this[_0x539a('0x3c')]('removeComment',this[_0x539a('0x3a')]['id']);});}),_0x490fff;}['_createDropdown'](){const _0x599e25=_0x288518(this[_0x539a('0x1a')]),_0x5dc5ad=_0x599e25[_0x539a('0x12')][_0x539a('0x44')],_0x409bb6=new _0x1162a8(this[_0x539a('0x1a')]),_0xf23bc5=(_0x2bcc25,_0x9453a0=-0x1)=>{const _0x48dbb4=new _0x5c9f8b(this[_0x539a('0x1a')]);_0x48dbb4['children']['add'](_0x2bcc25);const _0x11b90c=_0x9453a0>-0x1?_0x9453a0:_0x409bb6[_0x539a('0x10')][_0x539a('0x52')];_0x409bb6[_0x539a('0x10')][_0x539a('0x11')](_0x48dbb4,_0x11b90c),_0x599e25[_0x539a('0xc')](_0x2bcc25,_0x539a('0x32'),()=>{_0x599e25[_0x539a('0x4c')]=[...this[_0x539a('0x10')]][_0x539a('0x20')](_0xfb40c8=>_0xfb40c8[_0x539a('0x4c')]);}),_0x599e25[_0x539a('0xc')](_0x2bcc25,_0x539a('0x56'),()=>{_0x599e25[_0x539a('0x47')][_0x539a('0x5f')]=[...this[_0x539a('0x10')]][_0x539a('0x20')](_0xd1445c=>_0xd1445c[_0x539a('0x5f')]);});};_0x599e25[_0x539a('0x0')]='sw',_0x599e25[_0x539a('0x47')][_0x539a('0xf')]({'label':_0x5a6eef(this[_0x539a('0x1a')],_0x539a('0x4d')),'icon':_0x5ca02e[_0x539a('0x48')]}),_0x599e25[_0x539a('0x4c')]=[...this[_0x539a('0x10')]][_0x539a('0x20')](_0x29151e=>_0x29151e[_0x539a('0x4c')]),_0x599e25[_0x539a('0x47')][_0x539a('0x5f')]=[...this[_0x539a('0x10')]][_0x539a('0x20')](_0x39e011=>_0x39e011[_0x539a('0x5f')]);for(const _0x15b314 of this[_0x539a('0x10')])_0xf23bc5(_0x15b314);return _0x5dc5ad[_0x539a('0x11')](_0x409bb6),_0x599e25[_0x539a('0xc')](this[_0x539a('0x10')],'add',(_0x4e8531,_0x2bd09d,_0x6125f5)=>{_0xf23bc5(_0x2bd09d,_0x6125f5);}),_0x599e25[_0x539a('0xc')](this['items'],_0x539a('0x33'),(_0x2b5e8e,_0x3d0740,_0xd8664b)=>{_0x409bb6[_0x539a('0x10')][_0x539a('0x33')](_0xd8664b);}),_0x599e25;}[_0x539a('0x39')](_0x37963d,_0x8d85c8){const _0x308486=_0x37963d&&_0x37963d['element'];_0x308486&&(this['listenTo'](_0x308486,_0x539a('0x31'),()=>this[_0x539a('0x5e')]=_0x8d85c8),this[_0x539a('0xc')](_0x308486,_0x539a('0x3'),()=>this[_0x539a('0x5e')]=_0x8d85c8),this[_0x539a('0xc')](_0x308486,_0x539a('0x24'),()=>this[_0x539a('0x5e')]=null),this[_0x539a('0xc')](_0x308486,'blur',()=>this[_0x539a('0x5e')]=null));}[_0x539a('0x34')](){const _0x52df1f=super[_0x539a('0x34')]();return _0x52df1f[_0x539a('0x51')](_0x539a('0x19'))['to'](this),_0x52df1f;}[_0x539a('0x28')](){return _0x539a('0x42')===this['_model']['attributes'][_0x539a('0x2b')][_0x539a('0x40')]?_0x5a6eef(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):_0x5a6eef(this[_0x539a('0x1a')],_0x539a('0xa'));}[_0x539a('0x16')](){return this[_0x539a('0x3a')][_0x539a('0xe')]?_0x539a('0x42')===this[_0x539a('0x3a')][_0x539a('0x15')]['@external'][_0x539a('0x40')]?_0x5a6eef(this['locale'],_0x539a('0x5d'),this['_model'][_0x539a('0x57')][_0x539a('0x9')]):_0x5a6eef(this[_0x539a('0x1a')],_0x539a('0x23'),this[_0x539a('0x3a')][_0x539a('0x57')][_0x539a('0x9')]):null;}[_0x539a('0x49')](){super['render'](),this[_0x539a('0x39')](this[_0x539a('0x4f')],_0x539a('0x50')),this[_0x539a('0x39')](this[_0x539a('0x41')],_0x539a('0x33'));}}
23
+ const _0x25e8=['change:isRemovable','Remove','EXTERNAL_IMPORT_WORD_COMMENT','_attachActions','ck-comment__info','getUserViewNotificationText','name','ck-comment__user','userView','switchToEditMode','execute','addMany','ck-annotation__main','ck-comment__actions','listenTo','label','isRemovable','some','placeholder','Reply...','_createDropdown','ck-annotation__info-name','_createCommentInputView','cancelConfirm','change:isVisible','mouseleave','isVisible','ck-comment__wrapper','isEditable','ck-comment__external','remove','removeComment','edit','actionBar','@external','authoredAt','removeButton','bind','panelPosition','add','set','ck-comment__actions--hidden','ck-comment--edit','EXTERNAL_COMMENT','element','actionIndicator','isExternal','focus','Edit','bindTemplate','extendTemplate','pencil','mouseenter','ck-annotation__user','creator','EXTERNAL_AVATAR','_model','locale','isSystemComment','resolvedAt','Delete\x20comment?','ck-annotation__content-wrapper','author','render','ck-comment--info','ck-comment--remove-confirmation','getTemplate','ck-annotation__info','buttonView','ck-comment--remove','ck-annotation__actions--hidden','isEnabled','dropdown','createCollection','ck-annotation__info-time','panelView','_createRemoveButton','setTemplate','attributes','isConfirm','getExternalCommentNote','source','ck-comment__info-time','ck-annotation','children','editButton','change:isEnabled','ck-annotation__actions','icon','withText','items','div','time','isReadOnly','ck-comment','_config','isEditMode'];(function(_0x5bbd50,_0x25e8ce){const _0x333fd8=function(_0x5d7a71){while(--_0x5d7a71){_0x5bbd50['push'](_0x5bbd50['shift']());}};_0x333fd8(++_0x25e8ce);}(_0x25e8,0x1e5));const _0x333f=function(_0x5bbd50,_0x25e8ce){_0x5bbd50=_0x5bbd50-0x0;let _0x333fd8=_0x25e8[_0x5bbd50];return _0x333fd8;};import{ButtonView as _0x495d4b,createDropdown as _0x5b732f,ListView as _0x54d24e,ListItemView as _0x5893b8}from'ckeditor5/src/ui';import{icons as _0x11dbbc}from'ckeditor5/src/core';import{UserView as _0x429b8f,ConfirmMixin as _0xc12554}from'ckeditor5-collaboration/src/collaboration-core';import _0x5677e6 from'./basecommentview';import _0x358c85 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x171af0}from'../../../utils/common-translations';export default class pt extends _0xc12554(_0x5677e6){constructor(_0x147ffc,_0x306b1e,_0xddc840){super(_0x147ffc,_0x306b1e,_0xddc840),this[_0x333f('0x28')](_0x333f('0x2d'),null),this[_0x333f('0x28')](_0x333f('0x12'),_0x171af0(_0x147ffc,_0x333f('0x13'))),this[_0x333f('0x25')]('authoredAt')['to'](_0x306b1e),this[_0x333f('0x25')](_0x333f('0x3b'))['to'](_0x306b1e),this[_0x333f('0x21')]=this[_0x333f('0x49')](),this[_0x333f('0x3a')]||(this[_0x333f('0x55')]=this['_createEditButton'](),this[_0x333f('0x24')]=this[_0x333f('0x4c')](),this['items']=this[_0x333f('0x49')](),this[_0x333f('0x5a')][_0x333f('0xb')]([this[_0x333f('0x55')],this[_0x333f('0x24')]]),this[_0x333f('0x48')]=this[_0x333f('0x14')](),this[_0x333f('0x21')]['add'](this['dropdown'])),this[_0x333f('0x8')]=new _0x429b8f(_0x147ffc,_0x306b1e['author'],this[_0x333f('0x5')]()),this['userView'][_0x333f('0x32')]({'attributes':{'class':[_0x333f('0x7'),_0x333f('0x35')]}}),this['listenTo'](_0x306b1e,_0x333f('0x0'),()=>this[_0x333f('0x17')]()),this[_0x333f('0x4d')](this[_0x333f('0x42')]());}[_0x333f('0x42')](){const _0x13e36f=this[_0x333f('0x31')],_0x56f876=[{'tag':_0x333f('0x5b'),'attributes':{'class':[_0x333f('0x4'),_0x333f('0x43')]},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name',_0x333f('0x15')]}},{'tag':_0x333f('0x5c'),'attributes':{'datetime':_0x13e36f['to']('authoredAt'),'class':[_0x333f('0x52'),_0x333f('0x4a')]},'children':[{'text':_0x13e36f['to'](_0x333f('0x23'),_0x5a8427=>this[_0x333f('0x5f')]['formatDateTime'](_0x5a8427))}]}]},{'tag':_0x333f('0x5b'),'attributes':{'class':[_0x333f('0xd'),_0x333f('0x57'),_0x13e36f['if']('isEditMode',_0x333f('0x29')),_0x13e36f['if'](_0x333f('0x60'),_0x333f('0x46'))]},'children':this[_0x333f('0x21')]},{'tag':_0x333f('0x5b'),'attributes':{'class':[_0x333f('0x3d')]},'children':this['visibleView']}];return this[_0x333f('0x38')][_0x333f('0x2e')]&&_0x56f876['push']({'tag':'div','attributes':{'class':[_0x333f('0x1d')]},'children':[{'text':this[_0x333f('0x50')]()}]}),{'tag':'li','attributes':{'class':[_0x333f('0x1b'),_0x13e36f['if'](_0x333f('0x4f'),_0x333f('0x41'))],'tabindex':-0x1},'children':[{'tag':_0x333f('0x5b'),'attributes':{'class':[_0x333f('0x5e'),_0x333f('0x53'),_0x13e36f['if']('isEditMode',_0x333f('0x2a')),_0x13e36f['if'](_0x333f('0x3a'),_0x333f('0x40')),_0x13e36f['to'](_0x333f('0x2d'),_0x217d3e=>_0x217d3e?'ck-comment--'+_0x217d3e:'')],'data-author-id':this[_0x333f('0x38')][_0x333f('0x3e')]['id'],'data-comment-id':this[_0x333f('0x38')]['id']},'children':[this[_0x333f('0x8')],{'tag':_0x333f('0x5b'),'attributes':{'class':['ck-comment__main',_0x333f('0xc')]},'children':_0x56f876}]}]};}['_createEditButton'](){const _0x54705b=new _0x495d4b(this[_0x333f('0x39')]);return _0x54705b['label']=_0x171af0(this[_0x333f('0x39')],_0x333f('0x30')),_0x54705b[_0x333f('0x58')]=_0x11dbbc[_0x333f('0x33')],_0x54705b[_0x333f('0x59')]=!0x0,_0x54705b[_0x333f('0x32')]({'attributes':{'class':'ck-comment--edit'}}),_0x54705b['bind'](_0x333f('0x47'))['to'](this[_0x333f('0x38')],'isReadOnly',_0x6a623=>!_0x6a623),_0x54705b[_0x333f('0x25')](_0x333f('0x1a'))['to'](this[_0x333f('0x38')],_0x333f('0x1c')),_0x54705b['on']('execute',()=>this[_0x333f('0x9')]()),_0x54705b;}['_createRemoveButton'](){const _0x26bfb1=new _0x495d4b(this[_0x333f('0x39')]);return _0x26bfb1[_0x333f('0xf')]=_0x171af0(this[_0x333f('0x39')],_0x333f('0x1')),_0x26bfb1[_0x333f('0x58')]=_0x358c85,_0x26bfb1[_0x333f('0x59')]=!0x0,_0x26bfb1['extendTemplate']({'attributes':{'class':_0x333f('0x45')}}),_0x26bfb1[_0x333f('0x25')](_0x333f('0x47'))['to'](this[_0x333f('0x38')],_0x333f('0x5d'),_0x3c08e4=>!_0x3c08e4),_0x26bfb1[_0x333f('0x25')](_0x333f('0x1a'))['to'](this['_model'],_0x333f('0x10')),_0x26bfb1['on'](_0x333f('0xa'),()=>{this['showConfirm'](_0x171af0(this[_0x333f('0x39')],_0x333f('0x3c')),this[_0x333f('0x2c')])['then'](()=>{this['fire'](_0x333f('0x1f'),this['_model']['id']);});}),_0x26bfb1;}[_0x333f('0x14')](){const _0x533c1f=_0x5b732f(this['locale']),_0xfcc956=_0x533c1f[_0x333f('0x4b')][_0x333f('0x54')],_0x206a24=new _0x54d24e(this[_0x333f('0x39')]),_0x230bac=(_0x4b8436,_0x422607=-0x1)=>{const _0x20c007=new _0x5893b8(this['locale']);_0x20c007[_0x333f('0x54')][_0x333f('0x27')](_0x4b8436);const _0x5c91fc=_0x422607>-0x1?_0x422607:_0x206a24[_0x333f('0x5a')]['length'];_0x206a24[_0x333f('0x5a')][_0x333f('0x27')](_0x20c007,_0x5c91fc),_0x533c1f[_0x333f('0xe')](_0x4b8436,_0x333f('0x56'),()=>{_0x533c1f[_0x333f('0x47')]=[...this[_0x333f('0x5a')]][_0x333f('0x11')](_0x177524=>_0x177524[_0x333f('0x47')]);}),_0x533c1f[_0x333f('0xe')](_0x4b8436,_0x333f('0x18'),()=>{_0x533c1f[_0x333f('0x44')][_0x333f('0x1a')]=[...this[_0x333f('0x5a')]]['some'](_0x498586=>_0x498586[_0x333f('0x1a')]);});};_0x533c1f[_0x333f('0x26')]='sw',_0x533c1f[_0x333f('0x44')]['set']({'label':_0x171af0(this[_0x333f('0x39')],'Show\x20more\x20items'),'icon':_0x11dbbc['threeVerticalDots']}),_0x533c1f[_0x333f('0x47')]=[...this[_0x333f('0x5a')]][_0x333f('0x11')](_0x3e2a57=>_0x3e2a57[_0x333f('0x47')]),_0x533c1f[_0x333f('0x44')][_0x333f('0x1a')]=[...this[_0x333f('0x5a')]][_0x333f('0x11')](_0x1a57c0=>_0x1a57c0[_0x333f('0x1a')]);for(const _0x422bfe of this['items'])_0x230bac(_0x422bfe);return _0xfcc956[_0x333f('0x27')](_0x206a24),_0x533c1f[_0x333f('0xe')](this['items'],_0x333f('0x27'),(_0x3c5641,_0x339896,_0x593809)=>{_0x230bac(_0x339896,_0x593809);}),_0x533c1f[_0x333f('0xe')](this[_0x333f('0x5a')],_0x333f('0x1e'),(_0x463e8a,_0x58e10c,_0x364dad)=>{_0x206a24[_0x333f('0x5a')]['remove'](_0x364dad);}),_0x533c1f;}[_0x333f('0x3')](_0x1b4ffc,_0x17ffcb){const _0x49c183=_0x1b4ffc&&_0x1b4ffc[_0x333f('0x2c')];_0x49c183&&(this[_0x333f('0xe')](_0x49c183,_0x333f('0x34'),()=>this[_0x333f('0x2d')]=_0x17ffcb),this['listenTo'](_0x49c183,_0x333f('0x2f'),()=>this[_0x333f('0x2d')]=_0x17ffcb),this[_0x333f('0xe')](_0x49c183,_0x333f('0x19'),()=>this['actionIndicator']=null),this[_0x333f('0xe')](_0x49c183,'blur',()=>this['actionIndicator']=null));}[_0x333f('0x16')](){const _0x594146=super[_0x333f('0x16')]();return _0x594146[_0x333f('0x25')]('placeholder')['to'](this),_0x594146;}[_0x333f('0x50')](){return'importWord'===this['_model'][_0x333f('0x4e')][_0x333f('0x22')]['source']?_0x171af0(this[_0x333f('0x39')],_0x333f('0x2')):_0x171af0(this['locale'],_0x333f('0x2b'));}[_0x333f('0x5')](){return this[_0x333f('0x38')]['isExternal']?'importWord'===this[_0x333f('0x38')][_0x333f('0x4e')][_0x333f('0x22')][_0x333f('0x51')]?_0x171af0(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model'][_0x333f('0x36')][_0x333f('0x6')]):_0x171af0(this[_0x333f('0x39')],_0x333f('0x37'),this['_model']['creator'][_0x333f('0x6')]):null;}[_0x333f('0x3f')](){super[_0x333f('0x3f')](),this[_0x333f('0x3')](this[_0x333f('0x55')],_0x333f('0x20')),this[_0x333f('0x3')](this['removeButton'],_0x333f('0x1e'));}}
package/src/comments.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x30e4=['Comments','pluginName','requires'];(function(_0x4593b3,_0x30e478){var _0x14e947=function(_0xbdc467){while(--_0xbdc467){_0x4593b3['push'](_0x4593b3['shift']());}};_0x14e947(++_0x30e478);}(_0x30e4,0x188));var _0x14e9=function(_0x4593b3,_0x30e478){_0x4593b3=_0x4593b3-0x0;var _0x14e947=_0x30e4[_0x4593b3];return _0x14e947;};import{Plugin as _0xc57baf}from'ckeditor5/src/core';import _0x123025 from'./comments/commentsrepository';import _0x31685e from'./comments/commentsediting';import _0x9e4634 from'./comments/commentsui';import _0x4a87d9 from'./commentsonly';import _0x1338f0 from'./annotations/widesidebar';import _0x49e1d9 from'./annotations/narrowsidebar';import _0x9216a5 from'./annotations/inlineannotations';import _0x1275c4 from'./comments/commentsarchiveui';import _0xc33b26 from'./comments/commentsarchive';export default class f extends _0xc57baf{static get[_0x14e9('0x0')](){return[_0x123025,_0x31685e,_0x9e4634,_0xc33b26,_0x1275c4,_0x4a87d9,_0x1338f0,_0x49e1d9,_0x9216a5];}static get[_0x14e9('0x2')](){return _0x14e9('0x1');}}
23
+ var _0x2849=['pluginName','Comments','requires'];(function(_0xd0c791,_0x284909){var _0x1fc8da=function(_0x369429){while(--_0x369429){_0xd0c791['push'](_0xd0c791['shift']());}};_0x1fc8da(++_0x284909);}(_0x2849,0x9a));var _0x1fc8=function(_0xd0c791,_0x284909){_0xd0c791=_0xd0c791-0x0;var _0x1fc8da=_0x2849[_0xd0c791];return _0x1fc8da;};import{Plugin as _0x974264}from'ckeditor5/src/core';import _0xaff094 from'./comments/commentsrepository';import _0xa45851 from'./comments/commentsediting';import _0x73aa1d from'./comments/commentsui';import _0x36726d from'./commentsonly';import _0xa30448 from'./annotations/widesidebar';import _0x4cc647 from'./annotations/narrowsidebar';import _0x1bb3f5 from'./annotations/inlineannotations';import _0x570b79 from'./comments/commentsarchiveui';import _0x316ae9 from'./comments/commentsarchive';export default class f extends _0x974264{static get[_0x1fc8('0x1')](){return[_0xaff094,_0xa45851,_0x73aa1d,_0x316ae9,_0x570b79,_0x36726d,_0xa30448,_0x4cc647,_0x1bb3f5];}static get[_0x1fc8('0x2')](){return _0x1fc8('0x0');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x17c2=['isEnabled','commentsOnly','commands','plugins','CommentsOnly','has','set','DragDrop','document','affectsData','cut','view','commentsOnlyMode','config','listenTo','stop','editor','stopListening','pluginName','requires','change:isEnabled','_disableCommentsOnlyMode','addCommentThread','clipboardInput','_enableCommentsOnlyMode','highest','forceDisabled','editing','get','afterInit'];(function(_0x193884,_0x17c2a0){const _0x5222ea=function(_0x4fb628){while(--_0x4fb628){_0x193884['push'](_0x193884['shift']());}};_0x5222ea(++_0x17c2a0);}(_0x17c2,0xce));const _0x5222=function(_0x193884,_0x17c2a0){_0x193884=_0x193884-0x0;let _0x5222ea=_0x17c2[_0x193884];return _0x5222ea;};import{Plugin as _0x2525f8}from'ckeditor5/src/core';import _0x1dc3c9 from'./comments/commentsediting';export default class n extends _0x2525f8{static get[_0x5222('0x16')](){return _0x5222('0x8');}static get[_0x5222('0x17')](){return[_0x1dc3c9];}constructor(_0x468f9a){super(_0x468f9a),this[_0x5222('0xa')](_0x5222('0x4'),!0x1),this['on'](_0x5222('0x18'),(_0x152b98,_0x1aa0c9,_0x300f0b)=>{_0x300f0b?this[_0x5222('0x1c')]():this['_disableCommentsOnlyMode']();});}[_0x5222('0x3')](){!this['isEnabled']&&this[_0x5222('0x14')][_0x5222('0x11')][_0x5222('0x2')](_0x5222('0x5'))&&(this[_0x5222('0x4')]=!0x0);}[_0x5222('0x1c')](){for(const [_0x16a15a,_0x3771ef]of this[_0x5222('0x14')][_0x5222('0x6')])_0x3771ef[_0x5222('0xd')]&&_0x5222('0x1a')!==_0x16a15a&&_0x3771ef[_0x5222('0x0')](_0x5222('0x10'));this['editor'][_0x5222('0x7')][_0x5222('0x9')](_0x5222('0xb'))&&this[_0x5222('0x14')][_0x5222('0x7')][_0x5222('0x2')](_0x5222('0xb'))[_0x5222('0x0')](_0x5222('0x10'));const _0x1f2dd8=this[_0x5222('0x14')]['editing'][_0x5222('0xf')]['document'];this['listenTo'](_0x1f2dd8,_0x5222('0xe'),_0x2dc34e=>_0x2dc34e[_0x5222('0x13')](),{'priority':_0x5222('0x1d')}),this[_0x5222('0x12')](_0x1f2dd8,_0x5222('0x1b'),_0x422f8d=>_0x422f8d[_0x5222('0x13')](),{'priority':_0x5222('0x1d')}),this[_0x5222('0x12')](_0x1f2dd8,'delete',_0xb3ce8c=>_0xb3ce8c[_0x5222('0x13')](),{'priority':_0x5222('0x1d')});}[_0x5222('0x19')](){for(const [_0x4b7da8,_0x35ca56]of this[_0x5222('0x14')][_0x5222('0x6')])_0x35ca56[_0x5222('0xd')]&&_0x5222('0x1a')!==_0x4b7da8&&_0x35ca56['clearForceDisabled'](_0x5222('0x10'));this[_0x5222('0x15')](this[_0x5222('0x14')][_0x5222('0x1')]['view'][_0x5222('0xc')]);}}
23
+ const _0x43e3=['plugins','editing','editor','isEnabled','commentsOnly','highest','get','_disableCommentsOnlyMode','forceDisabled','requires','DragDrop','view','addCommentThread','stop','has','change:isEnabled','cut','affectsData','listenTo','set','commands','delete','clearForceDisabled','commentsOnlyMode','_enableCommentsOnlyMode','document'];(function(_0x22aa7c,_0x43e354){const _0x47c480=function(_0x360166){while(--_0x360166){_0x22aa7c['push'](_0x22aa7c['shift']());}};_0x47c480(++_0x43e354);}(_0x43e3,0xf5));const _0x47c4=function(_0x22aa7c,_0x43e354){_0x22aa7c=_0x22aa7c-0x0;let _0x47c480=_0x43e3[_0x22aa7c];return _0x47c480;};import{Plugin as _0x41f939}from'ckeditor5/src/core';import _0x377d76 from'./comments/commentsediting';export default class n extends _0x41f939{static get['pluginName'](){return'CommentsOnly';}static get[_0x47c4('0x18')](){return[_0x377d76];}constructor(_0x1f6100){super(_0x1f6100),this[_0x47c4('0x8')]('isEnabled',!0x1),this['on'](_0x47c4('0x4'),(_0x386da0,_0x1b6848,_0x45ad4c)=>{_0x45ad4c?this[_0x47c4('0xd')]():this[_0x47c4('0x16')]();});}['afterInit'](){!this[_0x47c4('0x12')]&&this[_0x47c4('0x11')]['config'][_0x47c4('0x15')](_0x47c4('0x13'))&&(this[_0x47c4('0x12')]=!0x0);}[_0x47c4('0xd')](){for(const [_0x37e667,_0x3024f1]of this[_0x47c4('0x11')][_0x47c4('0x9')])_0x3024f1['affectsData']&&_0x47c4('0x1')!==_0x37e667&&_0x3024f1[_0x47c4('0x17')](_0x47c4('0xc'));this[_0x47c4('0x11')][_0x47c4('0xf')][_0x47c4('0x3')](_0x47c4('0x19'))&&this[_0x47c4('0x11')][_0x47c4('0xf')]['get'](_0x47c4('0x19'))['forceDisabled'](_0x47c4('0xc'));const _0x1df3c8=this[_0x47c4('0x11')][_0x47c4('0x10')][_0x47c4('0x0')][_0x47c4('0xe')];this[_0x47c4('0x7')](_0x1df3c8,_0x47c4('0x5'),_0x51a604=>_0x51a604[_0x47c4('0x2')](),{'priority':_0x47c4('0x14')}),this['listenTo'](_0x1df3c8,'clipboardInput',_0x442a11=>_0x442a11[_0x47c4('0x2')](),{'priority':_0x47c4('0x14')}),this[_0x47c4('0x7')](_0x1df3c8,_0x47c4('0xa'),_0x27e2b2=>_0x27e2b2[_0x47c4('0x2')](),{'priority':_0x47c4('0x14')});}[_0x47c4('0x16')](){for(const [_0x4656a0,_0x2cf67d]of this['editor'][_0x47c4('0x9')])_0x2cf67d[_0x47c4('0x6')]&&_0x47c4('0x1')!==_0x4656a0&&_0x2cf67d[_0x47c4('0xb')](_0x47c4('0xc'));this['stopListening'](this[_0x47c4('0x11')][_0x47c4('0x10')][_0x47c4('0x0')]['document']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0xdd4f1b,_0x3b6667,_0x347e5d){const t=_0xdd4f1b['t'];switch(_0x3b6667){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'},_0x347e5d);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'},_0x347e5d);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'},_0x347e5d);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'},_0x347e5d);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(_0x10d26a,_0x15d2b4,_0x4058ce){const t=_0x10d26a['t'];switch(_0x15d2b4){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'},_0x4058ce);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'},_0x4058ce);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'},_0x4058ce);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'},_0x4058ce);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 _0x1c95=['class','observe','childList','type','attributes'];(function(_0x25e4e7,_0x1c950c){const _0x50ae2f=function(_0x3b1a1a){while(--_0x3b1a1a){_0x25e4e7['push'](_0x25e4e7['shift']());}};_0x50ae2f(++_0x1c950c);}(_0x1c95,0x103));const _0x50ae=function(_0x25e4e7,_0x1c950c){_0x25e4e7=_0x25e4e7-0x0;let _0x50ae2f=_0x1c95[_0x25e4e7];return _0x50ae2f;};import{throttle as _0x45a18e}from'lodash-es';export default function Dt(_0x8289c4){const _0x15df37=_0x45a18e(_0x8289c4,0x1e),_0x37170b=new MutationObserver(_0x555f92=>{for(const _0xb1eec7 of _0x555f92)(_0x50ae('0x0')==_0xb1eec7[_0x50ae('0x4')]&&_0x50ae('0x1')==_0xb1eec7['attributeName']||_0x50ae('0x3')==_0xb1eec7[_0x50ae('0x4')]||'characterData'==_0xb1eec7['type'])&&_0x15df37();});return{'attach'(_0x2f0916){_0x37170b[_0x50ae('0x2')](_0x2f0916,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x37170b['disconnect'](),_0x15df37['cancel']();}};}
23
+ const _0x1147=['attributeName','attributes','type','observe','cancel'];(function(_0x1e8c73,_0x1147fb){const _0x335524=function(_0x32bad1){while(--_0x32bad1){_0x1e8c73['push'](_0x1e8c73['shift']());}};_0x335524(++_0x1147fb);}(_0x1147,0xe4));const _0x3355=function(_0x1e8c73,_0x1147fb){_0x1e8c73=_0x1e8c73-0x0;let _0x335524=_0x1147[_0x1e8c73];return _0x335524;};import{throttle as _0x4c0f34}from'lodash-es';export default function Dt(_0x46d9cb){const _0x2d453f=_0x4c0f34(_0x46d9cb,0x1e),_0x158a11=new MutationObserver(_0x383f53=>{for(const _0x1d8dc9 of _0x383f53)(_0x3355('0x3')==_0x1d8dc9['type']&&'class'==_0x1d8dc9[_0x3355('0x2')]||'childList'==_0x1d8dc9[_0x3355('0x4')]||'characterData'==_0x1d8dc9[_0x3355('0x4')])&&_0x2d453f();});return{'attach'(_0x4ca76d){_0x158a11[_0x3355('0x0')](_0x4ca76d,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x158a11['disconnect'](),_0x2d453f[_0x3355('0x1')]();}};}