@ckeditor/ckeditor5-comments 0.0.0-nightly-20230811.0 → 0.0.0-nightly-20230812.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/build/comments.js +1 -1
  2. package/package.json +3 -3
  3. package/src/annotations/annotation.js +1 -1
  4. package/src/annotations/annotationcollection.js +1 -1
  5. package/src/annotations/annotations.js +1 -1
  6. package/src/annotations/annotationsuis.js +1 -1
  7. package/src/annotations/editorannotations.js +1 -1
  8. package/src/annotations/inlineannotations.js +1 -1
  9. package/src/annotations/narrowsidebar.js +1 -1
  10. package/src/annotations/sidebar.js +1 -1
  11. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  12. package/src/annotations/view/annotationview.js +1 -1
  13. package/src/annotations/view/sidebaritemview.js +1 -1
  14. package/src/annotations/view/sidebarview.js +1 -1
  15. package/src/annotations/widesidebar.js +1 -1
  16. package/src/comments/addcommentthreadcommand.js +1 -1
  17. package/src/comments/commentsarchive.js +1 -1
  18. package/src/comments/commentsarchiveui.js +1 -1
  19. package/src/comments/commentsediting.js +1 -1
  20. package/src/comments/commentsrepository.js +1 -1
  21. package/src/comments/commentsui.js +1 -1
  22. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  23. package/src/comments/integrations/importword.js +1 -1
  24. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  25. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  26. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  27. package/src/comments/ui/commentthreadcontroller.js +1 -1
  28. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  29. package/src/comments/ui/view/basecommentview.js +1 -1
  30. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  31. package/src/comments/ui/view/commentcontentview.js +1 -1
  32. package/src/comments/ui/view/commentinputview.js +1 -1
  33. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  34. package/src/comments/ui/view/commentslistview.js +1 -1
  35. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  36. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  37. package/src/comments/ui/view/commentthreadview.js +1 -1
  38. package/src/comments/ui/view/commentview.js +1 -1
  39. package/src/comments.js +1 -1
  40. package/src/commentsonly.js +1 -1
  41. package/src/utils/common-translations.js +1 -1
  42. package/src/utils/createmutationobserver.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x350f=['editButton','extendTemplate','attributes','remove','label','ck-comment--edit','creator','actionIndicator','ck-comment__info','_createDropdown','fire','_attachActions','EXTERNAL_IMPORT_WORD_COMMENT','switchToEditMode','placeholder','bind','author','mouseenter','isConfirm','ck-annotation__info','visibleView','getTemplate','change:isRemovable','EXTERNAL_AVATAR','getExternalCommentNote','ck-annotation__user','mouseleave','cancelConfirm','name','ck-comment__actions','addMany','render','isVisible','some','isReadOnly','panelPosition','focus','buttonView','ck-comment__wrapper','ck-comment--info','createCollection','actionBar','execute','ck-comment--remove-confirmation','resolvedAt','ck-comment__info-name','source','children','removeButton','threeVerticalDots','ck-annotation__actions','isExternal','element','ck-annotation__actions--hidden','_createEditButton','isSystemComment','Show\x20more\x20items','isEditMode','EXTERNAL_COMMENT','userView','ck-comment','ck-comment--','_createCommentInputView','Edit','blur','icon','bindTemplate','showConfirm','dropdown','ck-annotation__info-name','authoredAt','getUserViewNotificationText','_model','set','div','@external','listenTo','items','isRemovable','importWord','isEnabled','ck-annotation__content-wrapper','length','pencil','ck-comment__external','isEditable','withText','add','time','locale','setTemplate'];(function(_0x4dadd7,_0x350f4b){const _0x43f6b1=function(_0x17d43a){while(--_0x17d43a){_0x4dadd7['push'](_0x4dadd7['shift']());}};_0x43f6b1(++_0x350f4b);}(_0x350f,0x1aa));const _0x43f6=function(_0x4dadd7,_0x350f4b){_0x4dadd7=_0x4dadd7-0x0;let _0x43f6b1=_0x350f[_0x4dadd7];return _0x43f6b1;};import{ButtonView as _0x3f5be4,createDropdown as _0x12da78,ListView as _0x408a7e,ListItemView as _0x4f84f4}from'ckeditor5/src/ui';import{icons as _0x4db487}from'ckeditor5/src/core';import{UserView as _0x9dab13,ConfirmMixin as _0x2cf039}from'ckeditor5-collaboration/src/collaboration-core';import _0xc93648 from'./basecommentview';import _0x3a856d from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x17b445}from'../../../utils/common-translations';export default class pt extends _0x2cf039(_0xc93648){constructor(_0x39b5ec,_0x28a2dc,_0x4c2881){super(_0x39b5ec,_0x28a2dc,_0x4c2881),this[_0x43f6('0xb')](_0x43f6('0x24'),null),this[_0x43f6('0xb')](_0x43f6('0x2b'),_0x17b445(_0x39b5ec,'Reply...')),this['bind'](_0x43f6('0x8'))['to'](_0x28a2dc),this[_0x43f6('0x2c')](_0x43f6('0x49'))['to'](_0x28a2dc),this[_0x43f6('0x46')]=this['createCollection'](),this['isSystemComment']||(this['editButton']=this[_0x43f6('0x53')](),this[_0x43f6('0x4d')]=this['_createRemoveButton'](),this['items']=this[_0x43f6('0x45')](),this[_0x43f6('0xf')][_0x43f6('0x3b')]([this[_0x43f6('0x1d')],this[_0x43f6('0x4d')]]),this['dropdown']=this['_createDropdown'](),this[_0x43f6('0x46')][_0x43f6('0x19')](this[_0x43f6('0x6')])),this[_0x43f6('0x58')]=new _0x9dab13(_0x39b5ec,_0x28a2dc[_0x43f6('0x2d')],this[_0x43f6('0x9')]()),this[_0x43f6('0x58')]['extendTemplate']({'attributes':{'class':['ck-comment__user',_0x43f6('0x36')]}}),this[_0x43f6('0xe')](_0x28a2dc,_0x43f6('0x33'),()=>this[_0x43f6('0x38')]()),this[_0x43f6('0x1c')](this[_0x43f6('0x32')]());}[_0x43f6('0x32')](){const _0x16117a=this[_0x43f6('0x4')],_0x552e8a=[{'tag':_0x43f6('0xc'),'attributes':{'class':[_0x43f6('0x25'),_0x43f6('0x30')]},'children':[{'tag':'span','children':[{'text':this['userView'][_0x43f6('0x39')]}],'attributes':{'class':[_0x43f6('0x4a'),_0x43f6('0x7')]}},{'tag':_0x43f6('0x1a'),'attributes':{'datetime':_0x16117a['to'](_0x43f6('0x8')),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x16117a['to'](_0x43f6('0x8'),_0x2285c3=>this['_config']['formatDateTime'](_0x2285c3))}]}]},{'tag':_0x43f6('0xc'),'attributes':{'class':[_0x43f6('0x3a'),_0x43f6('0x4f'),_0x16117a['if']('isEditMode','ck-comment__actions--hidden'),_0x16117a['if']('isEditMode',_0x43f6('0x52'))]},'children':this[_0x43f6('0x46')]},{'tag':_0x43f6('0xc'),'attributes':{'class':[_0x43f6('0x13')]},'children':this[_0x43f6('0x31')]}];return this[_0x43f6('0xa')]['isExternal']&&_0x552e8a['push']({'tag':_0x43f6('0xc'),'attributes':{'class':[_0x43f6('0x16')]},'children':[{'text':this[_0x43f6('0x35')]()}]}),{'tag':'li','attributes':{'class':[_0x43f6('0x43'),_0x16117a['if'](_0x43f6('0x2f'),_0x43f6('0x48'))],'tabindex':-0x1},'children':[{'tag':_0x43f6('0xc'),'attributes':{'class':[_0x43f6('0x59'),'ck-annotation',_0x16117a['if'](_0x43f6('0x56'),_0x43f6('0x22')),_0x16117a['if'](_0x43f6('0x54'),_0x43f6('0x44')),_0x16117a['to'](_0x43f6('0x24'),_0x2417dd=>_0x2417dd?_0x43f6('0x5a')+_0x2417dd:'')],'data-author-id':this[_0x43f6('0xa')]['author']['id'],'data-comment-id':this[_0x43f6('0xa')]['id']},'children':[this[_0x43f6('0x58')],{'tag':_0x43f6('0xc'),'attributes':{'class':['ck-comment__main','ck-annotation__main']},'children':_0x552e8a}]}]};}[_0x43f6('0x53')](){const _0x162ecc=new _0x3f5be4(this[_0x43f6('0x1b')]);return _0x162ecc['label']=_0x17b445(this[_0x43f6('0x1b')],_0x43f6('0x1')),_0x162ecc[_0x43f6('0x3')]=_0x4db487[_0x43f6('0x15')],_0x162ecc[_0x43f6('0x18')]=!0x0,_0x162ecc[_0x43f6('0x1e')]({'attributes':{'class':_0x43f6('0x22')}}),_0x162ecc['bind'](_0x43f6('0x12'))['to'](this[_0x43f6('0xa')],_0x43f6('0x3f'),_0xf984f7=>!_0xf984f7),_0x162ecc[_0x43f6('0x2c')]('isVisible')['to'](this[_0x43f6('0xa')],_0x43f6('0x17')),_0x162ecc['on']('execute',()=>this[_0x43f6('0x2a')]()),_0x162ecc;}['_createRemoveButton'](){const _0x1d1f94=new _0x3f5be4(this['locale']);return _0x1d1f94[_0x43f6('0x21')]=_0x17b445(this[_0x43f6('0x1b')],'Remove'),_0x1d1f94[_0x43f6('0x3')]=_0x3a856d,_0x1d1f94[_0x43f6('0x18')]=!0x0,_0x1d1f94[_0x43f6('0x1e')]({'attributes':{'class':'ck-comment--remove'}}),_0x1d1f94[_0x43f6('0x2c')]('isEnabled')['to'](this[_0x43f6('0xa')],'isReadOnly',_0x407638=>!_0x407638),_0x1d1f94[_0x43f6('0x2c')](_0x43f6('0x3d'))['to'](this[_0x43f6('0xa')],_0x43f6('0x10')),_0x1d1f94['on'](_0x43f6('0x47'),()=>{this[_0x43f6('0x5')](_0x17b445(this[_0x43f6('0x1b')],'Delete\x20comment?'),this[_0x43f6('0x51')])['then'](()=>{this[_0x43f6('0x27')]('removeComment',this['_model']['id']);});}),_0x1d1f94;}[_0x43f6('0x26')](){const _0x3bfd10=_0x12da78(this[_0x43f6('0x1b')]),_0x164e7c=_0x3bfd10['panelView'][_0x43f6('0x4c')],_0x1be354=new _0x408a7e(this['locale']),_0x5ba7cb=(_0x179253,_0x180a6b=-0x1)=>{const _0x474489=new _0x4f84f4(this[_0x43f6('0x1b')]);_0x474489[_0x43f6('0x4c')][_0x43f6('0x19')](_0x179253);const _0x2a013d=_0x180a6b>-0x1?_0x180a6b:_0x1be354[_0x43f6('0xf')][_0x43f6('0x14')];_0x1be354[_0x43f6('0xf')][_0x43f6('0x19')](_0x474489,_0x2a013d),_0x3bfd10[_0x43f6('0xe')](_0x179253,'change:isEnabled',()=>{_0x3bfd10[_0x43f6('0x12')]=[...this['items']][_0x43f6('0x3e')](_0x53542f=>_0x53542f[_0x43f6('0x12')]);}),_0x3bfd10[_0x43f6('0xe')](_0x179253,'change:isVisible',()=>{_0x3bfd10['buttonView']['isVisible']=[...this[_0x43f6('0xf')]][_0x43f6('0x3e')](_0x3aecb6=>_0x3aecb6[_0x43f6('0x3d')]);});};_0x3bfd10[_0x43f6('0x40')]='sw',_0x3bfd10[_0x43f6('0x42')][_0x43f6('0xb')]({'label':_0x17b445(this[_0x43f6('0x1b')],_0x43f6('0x55')),'icon':_0x4db487[_0x43f6('0x4e')]}),_0x3bfd10[_0x43f6('0x12')]=[...this[_0x43f6('0xf')]][_0x43f6('0x3e')](_0x434b0c=>_0x434b0c[_0x43f6('0x12')]),_0x3bfd10['buttonView'][_0x43f6('0x3d')]=[...this[_0x43f6('0xf')]][_0x43f6('0x3e')](_0x505e72=>_0x505e72['isVisible']);for(const _0x307429 of this[_0x43f6('0xf')])_0x5ba7cb(_0x307429);return _0x164e7c[_0x43f6('0x19')](_0x1be354),_0x3bfd10[_0x43f6('0xe')](this[_0x43f6('0xf')],_0x43f6('0x19'),(_0x4d81d2,_0x2cb196,_0x130855)=>{_0x5ba7cb(_0x2cb196,_0x130855);}),_0x3bfd10[_0x43f6('0xe')](this['items'],'remove',(_0x30d0aa,_0x8acad1,_0x4be19a)=>{_0x1be354[_0x43f6('0xf')]['remove'](_0x4be19a);}),_0x3bfd10;}['_attachActions'](_0x2fc126,_0x4a9fe7){const _0x4fb7a5=_0x2fc126&&_0x2fc126[_0x43f6('0x51')];_0x4fb7a5&&(this[_0x43f6('0xe')](_0x4fb7a5,_0x43f6('0x2e'),()=>this[_0x43f6('0x24')]=_0x4a9fe7),this[_0x43f6('0xe')](_0x4fb7a5,_0x43f6('0x41'),()=>this[_0x43f6('0x24')]=_0x4a9fe7),this[_0x43f6('0xe')](_0x4fb7a5,_0x43f6('0x37'),()=>this[_0x43f6('0x24')]=null),this['listenTo'](_0x4fb7a5,_0x43f6('0x2'),()=>this[_0x43f6('0x24')]=null));}[_0x43f6('0x0')](){const _0x4ee639=super['_createCommentInputView']();return _0x4ee639[_0x43f6('0x2c')](_0x43f6('0x2b'))['to'](this),_0x4ee639;}['getExternalCommentNote'](){return _0x43f6('0x11')===this[_0x43f6('0xa')][_0x43f6('0x1f')][_0x43f6('0xd')][_0x43f6('0x4b')]?_0x17b445(this[_0x43f6('0x1b')],_0x43f6('0x29')):_0x17b445(this[_0x43f6('0x1b')],_0x43f6('0x57'));}[_0x43f6('0x9')](){return this[_0x43f6('0xa')][_0x43f6('0x50')]?_0x43f6('0x11')===this['_model'][_0x43f6('0x1f')][_0x43f6('0xd')][_0x43f6('0x4b')]?_0x17b445(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this[_0x43f6('0xa')][_0x43f6('0x23')][_0x43f6('0x39')]):_0x17b445(this[_0x43f6('0x1b')],_0x43f6('0x34'),this[_0x43f6('0xa')][_0x43f6('0x23')][_0x43f6('0x39')]):null;}[_0x43f6('0x3c')](){super[_0x43f6('0x3c')](),this[_0x43f6('0x28')](this[_0x43f6('0x1d')],'edit'),this[_0x43f6('0x28')](this['removeButton'],_0x43f6('0x20'));}}
23
+ const _0x12a2=['resolvedAt','extendTemplate','isVisible','pencil','EXTERNAL_AVATAR','_attachActions','execute','importWord','change:isRemovable','setTemplate','change:isEnabled','name','Remove','some','getExternalCommentNote','isConfirm','visibleView','remove','getUserViewNotificationText','ck-annotation__content-wrapper','ck-comment--edit','editButton','items','switchToEditMode','span','icon','isExternal','add','_model','buttonView','cancelConfirm','render','getTemplate','locale','bind','dropdown','ck-comment__actions--hidden','addMany','ck-comment__info-name','_createCommentInputView','ck-comment__external','ck-annotation__actions','EXTERNAL_COMMENT','createCollection','set','actionBar','isEditMode','_createEditButton','source','length','ck-annotation__main','div','mouseenter','ck-comment__actions','Delete\x20comment?','removeButton','push','element','_createDropdown','panelView','bindTemplate','_config','EXTERNAL_IMPORT_WORD_COMMENT','edit','ck-annotation__actions--hidden','focus','ck-annotation__info-time','label','formatDateTime','ck-comment--remove','isReadOnly','threeVerticalDots','ck-comment__info','children','mouseleave','blur','_createRemoveButton','ck-comment__info-time','listenTo','time','ck-comment--','ck-comment--remove-confirmation','author','userView','showConfirm','isSystemComment','ck-annotation__info-name','Reply...','@external','placeholder','authoredAt','creator','ck-comment--info','actionIndicator','EXTERNAL_IMPORT_WORD_AVATAR','isEnabled','attributes'];(function(_0xc6406e,_0x12a2f2){const _0x4dd80c=function(_0xf723ae){while(--_0xf723ae){_0xc6406e['push'](_0xc6406e['shift']());}};_0x4dd80c(++_0x12a2f2);}(_0x12a2,0x98));const _0x4dd8=function(_0xc6406e,_0x12a2f2){_0xc6406e=_0xc6406e-0x0;let _0x4dd80c=_0x12a2[_0xc6406e];return _0x4dd80c;};import{ButtonView as _0x32643e,createDropdown as _0x44c235,ListView as _0x4fefd9,ListItemView as _0x34bd23}from'ckeditor5/src/ui';import{icons as _0x1041d4}from'ckeditor5/src/core';import{UserView as _0x19f860,ConfirmMixin as _0x35eb45}from'ckeditor5-collaboration/src/collaboration-core';import _0x226ee0 from'./basecommentview';import _0x5e8d19 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x1880b4}from'../../../utils/common-translations';export default class ut extends _0x35eb45(_0x226ee0){constructor(_0x12c468,_0x25c84f,_0x4b3420){super(_0x12c468,_0x25c84f,_0x4b3420),this['set'](_0x4dd8('0x26'),null),this[_0x4dd8('0x56')](_0x4dd8('0x22'),_0x1880b4(_0x12c468,_0x4dd8('0x20'))),this[_0x4dd8('0x4c')](_0x4dd8('0x23'))['to'](_0x25c84f),this['bind'](_0x4dd8('0x2a'))['to'](_0x25c84f),this[_0x4dd8('0x57')]=this['createCollection'](),this[_0x4dd8('0x1e')]||(this[_0x4dd8('0x3f')]=this[_0x4dd8('0x59')](),this['removeButton']=this[_0x4dd8('0x15')](),this[_0x4dd8('0x40')]=this[_0x4dd8('0x55')](),this[_0x4dd8('0x40')][_0x4dd8('0x4f')]([this[_0x4dd8('0x3f')],this['removeButton']]),this['dropdown']=this[_0x4dd8('0x3')](),this[_0x4dd8('0x57')][_0x4dd8('0x45')](this[_0x4dd8('0x4d')])),this['userView']=new _0x19f860(_0x12c468,_0x25c84f[_0x4dd8('0x1b')],this[_0x4dd8('0x3c')]()),this[_0x4dd8('0x1c')][_0x4dd8('0x2b')]({'attributes':{'class':['ck-comment__user','ck-annotation__user']}}),this[_0x4dd8('0x17')](_0x25c84f,_0x4dd8('0x32'),()=>this[_0x4dd8('0x48')]()),this[_0x4dd8('0x33')](this[_0x4dd8('0x4a')]());}[_0x4dd8('0x4a')](){const _0x3cc6e4=this[_0x4dd8('0x5')],_0xe93dbf=[{'tag':_0x4dd8('0x5d'),'attributes':{'class':[_0x4dd8('0x11'),'ck-annotation__info']},'children':[{'tag':_0x4dd8('0x42'),'children':[{'text':this['userView'][_0x4dd8('0x35')]}],'attributes':{'class':[_0x4dd8('0x50'),_0x4dd8('0x1f')]}},{'tag':_0x4dd8('0x18'),'attributes':{'datetime':_0x3cc6e4['to'](_0x4dd8('0x23')),'class':[_0x4dd8('0x16'),_0x4dd8('0xb')]},'children':[{'text':_0x3cc6e4['to'](_0x4dd8('0x23'),_0xde5fda=>this[_0x4dd8('0x6')][_0x4dd8('0xd')](_0xde5fda))}]}]},{'tag':'div','attributes':{'class':[_0x4dd8('0x5f'),_0x4dd8('0x53'),_0x3cc6e4['if'](_0x4dd8('0x58'),_0x4dd8('0x4e')),_0x3cc6e4['if'](_0x4dd8('0x58'),_0x4dd8('0x9'))]},'children':this[_0x4dd8('0x57')]},{'tag':'div','attributes':{'class':[_0x4dd8('0x3d')]},'children':this[_0x4dd8('0x3a')]}];return this[_0x4dd8('0x46')][_0x4dd8('0x44')]&&_0xe93dbf[_0x4dd8('0x1')]({'tag':_0x4dd8('0x5d'),'attributes':{'class':[_0x4dd8('0x52')]},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x3cc6e4['if'](_0x4dd8('0x39'),_0x4dd8('0x1a'))],'tabindex':-0x1},'children':[{'tag':_0x4dd8('0x5d'),'attributes':{'class':['ck-comment','ck-annotation',_0x3cc6e4['if']('isEditMode',_0x4dd8('0x3e')),_0x3cc6e4['if'](_0x4dd8('0x1e'),_0x4dd8('0x25')),_0x3cc6e4['to']('actionIndicator',_0x404dd4=>_0x404dd4?_0x4dd8('0x19')+_0x404dd4:'')],'data-author-id':this[_0x4dd8('0x46')][_0x4dd8('0x1b')]['id'],'data-comment-id':this[_0x4dd8('0x46')]['id']},'children':[this[_0x4dd8('0x1c')],{'tag':'div','attributes':{'class':['ck-comment__main',_0x4dd8('0x5c')]},'children':_0xe93dbf}]}]};}[_0x4dd8('0x59')](){const _0x4540d7=new _0x32643e(this[_0x4dd8('0x4b')]);return _0x4540d7['label']=_0x1880b4(this[_0x4dd8('0x4b')],'Edit'),_0x4540d7[_0x4dd8('0x43')]=_0x1041d4[_0x4dd8('0x2d')],_0x4540d7['withText']=!0x0,_0x4540d7['extendTemplate']({'attributes':{'class':_0x4dd8('0x3e')}}),_0x4540d7[_0x4dd8('0x4c')]('isEnabled')['to'](this[_0x4dd8('0x46')],_0x4dd8('0xf'),_0x173301=>!_0x173301),_0x4540d7[_0x4dd8('0x4c')](_0x4dd8('0x2c'))['to'](this[_0x4dd8('0x46')],'isEditable'),_0x4540d7['on']('execute',()=>this[_0x4dd8('0x41')]()),_0x4540d7;}[_0x4dd8('0x15')](){const _0x5bcb85=new _0x32643e(this[_0x4dd8('0x4b')]);return _0x5bcb85[_0x4dd8('0xc')]=_0x1880b4(this[_0x4dd8('0x4b')],_0x4dd8('0x36')),_0x5bcb85[_0x4dd8('0x43')]=_0x5e8d19,_0x5bcb85['withText']=!0x0,_0x5bcb85[_0x4dd8('0x2b')]({'attributes':{'class':_0x4dd8('0xe')}}),_0x5bcb85['bind']('isEnabled')['to'](this[_0x4dd8('0x46')],'isReadOnly',_0xc38b82=>!_0xc38b82),_0x5bcb85[_0x4dd8('0x4c')](_0x4dd8('0x2c'))['to'](this[_0x4dd8('0x46')],'isRemovable'),_0x5bcb85['on'](_0x4dd8('0x30'),()=>{this[_0x4dd8('0x1d')](_0x1880b4(this[_0x4dd8('0x4b')],_0x4dd8('0x60')),this[_0x4dd8('0x2')])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x5bcb85;}[_0x4dd8('0x3')](){const _0x2cd023=_0x44c235(this[_0x4dd8('0x4b')]),_0x1201ca=_0x2cd023[_0x4dd8('0x4')][_0x4dd8('0x12')],_0x578e88=new _0x4fefd9(this['locale']),_0x3600ca=(_0x3e7700,_0x34165c=-0x1)=>{const _0xea2b7d=new _0x34bd23(this[_0x4dd8('0x4b')]);_0xea2b7d[_0x4dd8('0x12')][_0x4dd8('0x45')](_0x3e7700);const _0x509a02=_0x34165c>-0x1?_0x34165c:_0x578e88[_0x4dd8('0x40')][_0x4dd8('0x5b')];_0x578e88['items'][_0x4dd8('0x45')](_0xea2b7d,_0x509a02),_0x2cd023['listenTo'](_0x3e7700,_0x4dd8('0x34'),()=>{_0x2cd023[_0x4dd8('0x28')]=[...this['items']][_0x4dd8('0x37')](_0x475916=>_0x475916[_0x4dd8('0x28')]);}),_0x2cd023[_0x4dd8('0x17')](_0x3e7700,'change:isVisible',()=>{_0x2cd023[_0x4dd8('0x47')]['isVisible']=[...this[_0x4dd8('0x40')]][_0x4dd8('0x37')](_0x47f336=>_0x47f336['isVisible']);});};_0x2cd023['panelPosition']='sw',_0x2cd023[_0x4dd8('0x47')][_0x4dd8('0x56')]({'label':_0x1880b4(this[_0x4dd8('0x4b')],'Show\x20more\x20items'),'icon':_0x1041d4[_0x4dd8('0x10')]}),_0x2cd023[_0x4dd8('0x28')]=[...this['items']]['some'](_0x317e41=>_0x317e41[_0x4dd8('0x28')]),_0x2cd023[_0x4dd8('0x47')]['isVisible']=[...this[_0x4dd8('0x40')]][_0x4dd8('0x37')](_0x14eaa5=>_0x14eaa5['isVisible']);for(const _0x5c2e73 of this[_0x4dd8('0x40')])_0x3600ca(_0x5c2e73);return _0x1201ca[_0x4dd8('0x45')](_0x578e88),_0x2cd023[_0x4dd8('0x17')](this[_0x4dd8('0x40')],_0x4dd8('0x45'),(_0x479f1b,_0x227f11,_0x36d8ab)=>{_0x3600ca(_0x227f11,_0x36d8ab);}),_0x2cd023['listenTo'](this['items'],_0x4dd8('0x3b'),(_0x1df556,_0x6d9139,_0x36f861)=>{_0x578e88['items']['remove'](_0x36f861);}),_0x2cd023;}[_0x4dd8('0x2f')](_0x3c0319,_0x577987){const _0x312d94=_0x3c0319&&_0x3c0319[_0x4dd8('0x2')];_0x312d94&&(this[_0x4dd8('0x17')](_0x312d94,_0x4dd8('0x5e'),()=>this[_0x4dd8('0x26')]=_0x577987),this[_0x4dd8('0x17')](_0x312d94,_0x4dd8('0xa'),()=>this['actionIndicator']=_0x577987),this[_0x4dd8('0x17')](_0x312d94,_0x4dd8('0x13'),()=>this['actionIndicator']=null),this['listenTo'](_0x312d94,_0x4dd8('0x14'),()=>this[_0x4dd8('0x26')]=null));}['_createCommentInputView'](){const _0x3fa69d=super[_0x4dd8('0x51')]();return _0x3fa69d[_0x4dd8('0x4c')](_0x4dd8('0x22'))['to'](this),_0x3fa69d;}[_0x4dd8('0x38')](){return _0x4dd8('0x31')===this['_model'][_0x4dd8('0x29')][_0x4dd8('0x21')][_0x4dd8('0x5a')]?_0x1880b4(this[_0x4dd8('0x4b')],_0x4dd8('0x7')):_0x1880b4(this['locale'],_0x4dd8('0x54'));}['getUserViewNotificationText'](){return this[_0x4dd8('0x46')]['isExternal']?_0x4dd8('0x31')===this['_model'][_0x4dd8('0x29')][_0x4dd8('0x21')][_0x4dd8('0x5a')]?_0x1880b4(this[_0x4dd8('0x4b')],_0x4dd8('0x27'),this[_0x4dd8('0x46')][_0x4dd8('0x24')]['name']):_0x1880b4(this['locale'],_0x4dd8('0x2e'),this[_0x4dd8('0x46')][_0x4dd8('0x24')]['name']):null;}[_0x4dd8('0x49')](){super['render'](),this[_0x4dd8('0x2f')](this['editButton'],_0x4dd8('0x8')),this[_0x4dd8('0x2f')](this[_0x4dd8('0x0')],'remove');}}
package/src/comments.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x71c4=['requires','pluginName'];(function(_0x25bb78,_0x71c401){var _0x44acb3=function(_0x1c370b){while(--_0x1c370b){_0x25bb78['push'](_0x25bb78['shift']());}};_0x44acb3(++_0x71c401);}(_0x71c4,0x102));var _0x44ac=function(_0x25bb78,_0x71c401){_0x25bb78=_0x25bb78-0x0;var _0x44acb3=_0x71c4[_0x25bb78];return _0x44acb3;};import{Plugin as _0x5cb7d0}from'ckeditor5/src/core';import _0x396753 from'./comments/commentsrepository';import _0x453f78 from'./comments/commentsediting';import _0x3514e2 from'./comments/commentsui';import _0x15c880 from'./commentsonly';import _0xd7cb8c from'./annotations/widesidebar';import _0x5ab6d8 from'./annotations/narrowsidebar';import _0x3fbe49 from'./annotations/inlineannotations';import _0x25689c from'./comments/commentsarchiveui';import _0x4bf462 from'./comments/commentsarchive';export default class f extends _0x5cb7d0{static get[_0x44ac('0x0')](){return[_0x396753,_0x453f78,_0x3514e2,_0x4bf462,_0x25689c,_0x15c880,_0xd7cb8c,_0x5ab6d8,_0x3fbe49];}static get[_0x44ac('0x1')](){return'Comments';}}
23
+ var _0x1c22=['pluginName','requires','Comments'];(function(_0x3d19ff,_0x1c221d){var _0x50128f=function(_0x342f72){while(--_0x342f72){_0x3d19ff['push'](_0x3d19ff['shift']());}};_0x50128f(++_0x1c221d);}(_0x1c22,0x164));var _0x5012=function(_0x3d19ff,_0x1c221d){_0x3d19ff=_0x3d19ff-0x0;var _0x50128f=_0x1c22[_0x3d19ff];return _0x50128f;};import{Plugin as _0x521ea6}from'ckeditor5/src/core';import _0x470d77 from'./comments/commentsrepository';import _0x449724 from'./comments/commentsediting';import _0x1ac3d2 from'./comments/commentsui';import _0xf81af8 from'./commentsonly';import _0x488ea8 from'./annotations/widesidebar';import _0x16203f from'./annotations/narrowsidebar';import _0x11d2c6 from'./annotations/inlineannotations';import _0x561459 from'./comments/commentsarchiveui';import _0x4fb64d from'./comments/commentsarchive';export default class f extends _0x521ea6{static get[_0x5012('0x2')](){return[_0x470d77,_0x449724,_0x1ac3d2,_0x4fb64d,_0x561459,_0xf81af8,_0x488ea8,_0x16203f,_0x11d2c6];}static get[_0x5012('0x1')](){return _0x5012('0x0');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3ba5=['config','cut','listenTo','get','_enableCommentsOnlyMode','highest','isEnabled','stopListening','document','has','clearForceDisabled','requires','commands','change:isEnabled','affectsData','DragDrop','_disableCommentsOnlyMode','pluginName','addCommentThread','forceDisabled','editing','editor','delete','set','plugins','stop','commentsOnly','CommentsOnly','commentsOnlyMode'];(function(_0x1d5ee3,_0x3ba534){const _0x309d22=function(_0x3eb247){while(--_0x3eb247){_0x1d5ee3['push'](_0x1d5ee3['shift']());}};_0x309d22(++_0x3ba534);}(_0x3ba5,0xdf));const _0x309d=function(_0x1d5ee3,_0x3ba534){_0x1d5ee3=_0x1d5ee3-0x0;let _0x309d22=_0x3ba5[_0x1d5ee3];return _0x309d22;};import{Plugin as _0x204a70}from'ckeditor5/src/core';import _0x19588c from'./comments/commentsediting';export default class n extends _0x204a70{static get[_0x309d('0x1a')](){return _0x309d('0x7');}static get[_0x309d('0x14')](){return[_0x19588c];}constructor(_0x4e8579){super(_0x4e8579),this[_0x309d('0x3')](_0x309d('0xf'),!0x1),this['on'](_0x309d('0x16'),(_0x1605c8,_0x1b2e96,_0xa13aa2)=>{_0xa13aa2?this[_0x309d('0xd')]():this[_0x309d('0x19')]();});}['afterInit'](){!this[_0x309d('0xf')]&&this['editor'][_0x309d('0x9')][_0x309d('0xc')](_0x309d('0x6'))&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x448170,_0xaf608f]of this[_0x309d('0x1')][_0x309d('0x15')])_0xaf608f[_0x309d('0x17')]&&_0x309d('0x1b')!==_0x448170&&_0xaf608f['forceDisabled']('commentsOnlyMode');this['editor'][_0x309d('0x4')][_0x309d('0x12')](_0x309d('0x18'))&&this[_0x309d('0x1')][_0x309d('0x4')][_0x309d('0xc')](_0x309d('0x18'))[_0x309d('0x1c')](_0x309d('0x8'));const _0x4d818c=this['editor'][_0x309d('0x0')]['view'][_0x309d('0x11')];this['listenTo'](_0x4d818c,_0x309d('0xa'),_0x60517c=>_0x60517c['stop'](),{'priority':'highest'}),this[_0x309d('0xb')](_0x4d818c,'clipboardInput',_0x4e3046=>_0x4e3046[_0x309d('0x5')](),{'priority':_0x309d('0xe')}),this['listenTo'](_0x4d818c,_0x309d('0x2'),_0x313f79=>_0x313f79[_0x309d('0x5')](),{'priority':_0x309d('0xe')});}[_0x309d('0x19')](){for(const [_0x21ecba,_0x3a3b90]of this[_0x309d('0x1')][_0x309d('0x15')])_0x3a3b90[_0x309d('0x17')]&&_0x309d('0x1b')!==_0x21ecba&&_0x3a3b90[_0x309d('0x13')]('commentsOnlyMode');this[_0x309d('0x10')](this['editor'][_0x309d('0x0')]['view'][_0x309d('0x11')]);}}
23
+ const _0x4d37=['_enableCommentsOnlyMode','_disableCommentsOnlyMode','delete','clearForceDisabled','commentsOnly','set','forceDisabled','editing','CommentsOnly','affectsData','commentsOnlyMode','commands','clipboardInput','editor','highest','plugins','addCommentThread','listenTo','config','isEnabled','view','document','afterInit','pluginName','has','get','DragDrop','stop'];(function(_0x44b470,_0x4d376a){const _0x2cb691=function(_0x17f5cd){while(--_0x17f5cd){_0x44b470['push'](_0x44b470['shift']());}};_0x2cb691(++_0x4d376a);}(_0x4d37,0x184));const _0x2cb6=function(_0x44b470,_0x4d376a){_0x44b470=_0x44b470-0x0;let _0x2cb691=_0x4d37[_0x44b470];return _0x2cb691;};import{Plugin as _0x137fe9}from'ckeditor5/src/core';import _0x4ab726 from'./comments/commentsediting';export default class n extends _0x137fe9{static get[_0x2cb6('0x1b')](){return _0x2cb6('0xc');}static get['requires'](){return[_0x4ab726];}constructor(_0x10f12a){super(_0x10f12a),this[_0x2cb6('0x9')](_0x2cb6('0x17'),!0x1),this['on']('change:isEnabled',(_0x341a6f,_0x2456a0,_0x3963f1)=>{_0x3963f1?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}[_0x2cb6('0x1a')](){!this[_0x2cb6('0x17')]&&this['editor'][_0x2cb6('0x16')][_0x2cb6('0x1')](_0x2cb6('0x8'))&&(this[_0x2cb6('0x17')]=!0x0);}[_0x2cb6('0x4')](){for(const [_0x2a2c7a,_0x486fef]of this[_0x2cb6('0x11')][_0x2cb6('0xf')])_0x486fef[_0x2cb6('0xd')]&&_0x2cb6('0x14')!==_0x2a2c7a&&_0x486fef[_0x2cb6('0xa')](_0x2cb6('0xe'));this['editor'][_0x2cb6('0x13')][_0x2cb6('0x0')](_0x2cb6('0x2'))&&this['editor'][_0x2cb6('0x13')][_0x2cb6('0x1')](_0x2cb6('0x2'))[_0x2cb6('0xa')](_0x2cb6('0xe'));const _0x1b8e67=this[_0x2cb6('0x11')][_0x2cb6('0xb')]['view']['document'];this[_0x2cb6('0x15')](_0x1b8e67,'cut',_0x4b345e=>_0x4b345e['stop'](),{'priority':_0x2cb6('0x12')}),this[_0x2cb6('0x15')](_0x1b8e67,_0x2cb6('0x10'),_0x1d01c6=>_0x1d01c6[_0x2cb6('0x3')](),{'priority':_0x2cb6('0x12')}),this[_0x2cb6('0x15')](_0x1b8e67,_0x2cb6('0x6'),_0x4836bf=>_0x4836bf[_0x2cb6('0x3')](),{'priority':_0x2cb6('0x12')});}[_0x2cb6('0x5')](){for(const [_0x4e0264,_0x1e80fe]of this[_0x2cb6('0x11')]['commands'])_0x1e80fe['affectsData']&&'addCommentThread'!==_0x4e0264&&_0x1e80fe[_0x2cb6('0x7')]('commentsOnlyMode');this['stopListening'](this[_0x2cb6('0x11')][_0x2cb6('0xb')][_0x2cb6('0x18')][_0x2cb6('0x19')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x1d11a4,_0xa97837,_0x3f986d){const t=_0x1d11a4['t'];switch(_0xa97837){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'},_0x3f986d);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'},_0x3f986d);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'},_0x3f986d);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'},_0x3f986d);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(_0x503224,_0x25b442,_0x18dd17){const t=_0x503224['t'];switch(_0x25b442){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'},_0x18dd17);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'},_0x18dd17);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'},_0x18dd17);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'},_0x18dd17);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 _0x2a40=['cancel','characterData','childList','class','type'];(function(_0x55967d,_0x2a4020){const _0x3ab1bd=function(_0x48cc5d){while(--_0x48cc5d){_0x55967d['push'](_0x55967d['shift']());}};_0x3ab1bd(++_0x2a4020);}(_0x2a40,0x1cb));const _0x3ab1=function(_0x55967d,_0x2a4020){_0x55967d=_0x55967d-0x0;let _0x3ab1bd=_0x2a40[_0x55967d];return _0x3ab1bd;};import{throttle as _0x477221}from'lodash-es';export default function q(_0x4a17f7){const _0x202b9b=_0x477221(_0x4a17f7,0x1e),_0x3d5a6f=new MutationObserver(_0x1b4da2=>{for(const _0x22bf3f of _0x1b4da2)('attributes'==_0x22bf3f[_0x3ab1('0x0')]&&_0x3ab1('0x4')==_0x22bf3f['attributeName']||_0x3ab1('0x3')==_0x22bf3f[_0x3ab1('0x0')]||_0x3ab1('0x2')==_0x22bf3f[_0x3ab1('0x0')])&&_0x202b9b();});return{'attach'(_0x141638){_0x3d5a6f['observe'](_0x141638,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x3d5a6f['disconnect'](),_0x202b9b[_0x3ab1('0x1')]();}};}
23
+ const _0x1ad6=['disconnect','type','attributeName','attributes','cancel','childList','class'];(function(_0x21fdbe,_0x1ad63e){const _0xf33b2a=function(_0xcacac){while(--_0xcacac){_0x21fdbe['push'](_0x21fdbe['shift']());}};_0xf33b2a(++_0x1ad63e);}(_0x1ad6,0xf2));const _0xf33b=function(_0x21fdbe,_0x1ad63e){_0x21fdbe=_0x21fdbe-0x0;let _0xf33b2a=_0x1ad6[_0x21fdbe];return _0xf33b2a;};import{throttle as _0x3be218}from'lodash-es';export default function Dt(_0x5485ac){const _0x4e3a21=_0x3be218(_0x5485ac,0x1e),_0xd002d8=new MutationObserver(_0x2a9a91=>{for(const _0x215feb of _0x2a9a91)(_0xf33b('0x6')==_0x215feb[_0xf33b('0x4')]&&_0xf33b('0x2')==_0x215feb[_0xf33b('0x5')]||_0xf33b('0x1')==_0x215feb[_0xf33b('0x4')]||'characterData'==_0x215feb[_0xf33b('0x4')])&&_0x4e3a21();});return{'attach'(_0x4b9a0d){_0xd002d8['observe'](_0x4b9a0d,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0xd002d8[_0xf33b('0x3')](),_0x4e3a21[_0xf33b('0x0')]();}};}