@ckeditor/ckeditor5-comments 0.0.0-nightly-20231029.0 → 0.0.0-nightly-20231031.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 _0x1628=['panelView','ck-annotation__info-name','_model','threeVerticalDots','bind','isSystemComment','formatDateTime','ck-comment--','Show\x20more\x20items','author','ck-comment','_createCommentInputView','label','isEnabled','_createDropdown','change:isVisible','ck-annotation__main','EXTERNAL_COMMENT','isConfirm','_createRemoveButton','remove','ck-comment__info-time','ck-annotation__actions','extendTemplate','ck-comment--remove-confirmation','resolvedAt','locale','setTemplate','EXTERNAL_AVATAR','buttonView','pencil','visibleView','ck-annotation__content-wrapper','ck-comment__user','userView','render','mouseleave','ck-comment__external','getUserViewNotificationText','execute','div','isEditMode','edit','listenTo','getTemplate','_createEditButton','importWord','placeholder','ck-annotation__user','name','Reply...','span','_config','showConfirm','actionBar','then','items','set','bindTemplate','add','ck-comment--remove','ck-annotation','mouseenter','ck-comment--edit','element','editButton','Edit','isEditable','ck-annotation__info','getExternalCommentNote','removeButton','dropdown','icon','authoredAt','_attachActions','source','isVisible','withText','ck-comment--info','length','EXTERNAL_IMPORT_WORD_AVATAR','ck-comment__actions','push','some','fire','actionIndicator','addMany','@external','creator','ck-comment__main','attributes','isReadOnly'];(function(_0x42b100,_0x1628f2){const _0x2189d6=function(_0x3ff86b){while(--_0x3ff86b){_0x42b100['push'](_0x42b100['shift']());}};_0x2189d6(++_0x1628f2);}(_0x1628,0x75));const _0x2189=function(_0x42b100,_0x1628f2){_0x42b100=_0x42b100-0x0;let _0x2189d6=_0x1628[_0x42b100];return _0x2189d6;};import{ButtonView as _0x36c10f,createDropdown as _0x448a08,ListView as _0x3bcb96,ListItemView as _0x35df14}from'ckeditor5/src/ui';import{icons as _0x206384}from'ckeditor5/src/core';import{UserView as _0x176acd,ConfirmMixin as _0x30bc47}from'ckeditor5-collaboration/src/collaboration-core';import _0x375024 from'./basecommentview';import _0xb2ce8c from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x1f40d9}from'../../../utils/common-translations';export default class ut extends _0x30bc47(_0x375024){constructor(_0x1804bb,_0x464c10,_0x548343){super(_0x1804bb,_0x464c10,_0x548343),this[_0x2189('0x20')](_0x2189('0x3c'),null),this['set'](_0x2189('0x16'),_0x1f40d9(_0x1804bb,_0x2189('0x19'))),this[_0x2189('0x47')](_0x2189('0x30'))['to'](_0x464c10),this['bind'](_0x2189('0x0'))['to'](_0x464c10),this[_0x2189('0x1d')]=this['createCollection'](),this[_0x2189('0x48')]||(this[_0x2189('0x28')]=this[_0x2189('0x14')](),this[_0x2189('0x2d')]=this[_0x2189('0x56')](),this[_0x2189('0x1f')]=this['createCollection'](),this[_0x2189('0x1f')][_0x2189('0x3d')]([this[_0x2189('0x28')],this[_0x2189('0x2d')]]),this[_0x2189('0x2e')]=this[_0x2189('0x51')](),this[_0x2189('0x1d')][_0x2189('0x22')](this[_0x2189('0x2e')])),this[_0x2189('0x9')]=new _0x176acd(_0x1804bb,_0x464c10[_0x2189('0x4c')],this['getUserViewNotificationText']()),this[_0x2189('0x9')][_0x2189('0x5a')]({'attributes':{'class':[_0x2189('0x8'),_0x2189('0x17')]}}),this[_0x2189('0x12')](_0x464c10,'change:isRemovable',()=>this['cancelConfirm']()),this[_0x2189('0x2')](this[_0x2189('0x13')]());}['getTemplate'](){const _0x22f81e=this[_0x2189('0x21')],_0x386d4a=[{'tag':_0x2189('0xf'),'attributes':{'class':['ck-comment__info',_0x2189('0x2b')]},'children':[{'tag':_0x2189('0x1a'),'children':[{'text':this[_0x2189('0x9')][_0x2189('0x18')]}],'attributes':{'class':['ck-comment__info-name',_0x2189('0x44')]}},{'tag':'time','attributes':{'datetime':_0x22f81e['to']('authoredAt'),'class':[_0x2189('0x58'),'ck-annotation__info-time']},'children':[{'text':_0x22f81e['to'](_0x2189('0x30'),_0x10c4d2=>this[_0x2189('0x1b')][_0x2189('0x49')](_0x10c4d2))}]}]},{'tag':_0x2189('0xf'),'attributes':{'class':[_0x2189('0x38'),_0x2189('0x59'),_0x22f81e['if'](_0x2189('0x10'),'ck-comment__actions--hidden'),_0x22f81e['if'](_0x2189('0x10'),'ck-annotation__actions--hidden')]},'children':this[_0x2189('0x1d')]},{'tag':_0x2189('0xf'),'attributes':{'class':[_0x2189('0x7')]},'children':this[_0x2189('0x6')]}];return this[_0x2189('0x45')]['isExternal']&&_0x386d4a[_0x2189('0x39')]({'tag':_0x2189('0xf'),'attributes':{'class':[_0x2189('0xc')]},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x22f81e['if'](_0x2189('0x55'),_0x2189('0x5b'))],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':[_0x2189('0x4d'),_0x2189('0x24'),_0x22f81e['if']('isEditMode',_0x2189('0x26')),_0x22f81e['if']('isSystemComment',_0x2189('0x35')),_0x22f81e['to'](_0x2189('0x3c'),_0x5154ac=>_0x5154ac?_0x2189('0x4a')+_0x5154ac:'')],'data-author-id':this[_0x2189('0x45')][_0x2189('0x4c')]['id'],'data-comment-id':this[_0x2189('0x45')]['id']},'children':[this['userView'],{'tag':_0x2189('0xf'),'attributes':{'class':[_0x2189('0x40'),_0x2189('0x53')]},'children':_0x386d4a}]}]};}['_createEditButton'](){const _0x37d265=new _0x36c10f(this[_0x2189('0x1')]);return _0x37d265['label']=_0x1f40d9(this[_0x2189('0x1')],_0x2189('0x29')),_0x37d265[_0x2189('0x2f')]=_0x206384[_0x2189('0x5')],_0x37d265[_0x2189('0x34')]=!0x0,_0x37d265['extendTemplate']({'attributes':{'class':_0x2189('0x26')}}),_0x37d265[_0x2189('0x47')](_0x2189('0x50'))['to'](this['_model'],_0x2189('0x42'),_0x3adf62=>!_0x3adf62),_0x37d265[_0x2189('0x47')](_0x2189('0x33'))['to'](this['_model'],_0x2189('0x2a')),_0x37d265['on'](_0x2189('0xe'),()=>this['switchToEditMode']()),_0x37d265;}[_0x2189('0x56')](){const _0x10aea6=new _0x36c10f(this['locale']);return _0x10aea6[_0x2189('0x4f')]=_0x1f40d9(this[_0x2189('0x1')],'Remove'),_0x10aea6[_0x2189('0x2f')]=_0xb2ce8c,_0x10aea6[_0x2189('0x34')]=!0x0,_0x10aea6[_0x2189('0x5a')]({'attributes':{'class':_0x2189('0x23')}}),_0x10aea6[_0x2189('0x47')](_0x2189('0x50'))['to'](this[_0x2189('0x45')],_0x2189('0x42'),_0x277f8f=>!_0x277f8f),_0x10aea6[_0x2189('0x47')](_0x2189('0x33'))['to'](this[_0x2189('0x45')],'isRemovable'),_0x10aea6['on'](_0x2189('0xe'),()=>{this[_0x2189('0x1c')](_0x1f40d9(this[_0x2189('0x1')],'Delete\x20comment?'),this[_0x2189('0x27')])[_0x2189('0x1e')](()=>{this[_0x2189('0x3b')]('removeComment',this[_0x2189('0x45')]['id']);});}),_0x10aea6;}[_0x2189('0x51')](){const _0x3c2737=_0x448a08(this[_0x2189('0x1')]),_0x3834e1=_0x3c2737[_0x2189('0x43')]['children'],_0x19e0fc=new _0x3bcb96(this[_0x2189('0x1')]),_0x2b2e52=(_0x2819d1,_0x469182=-0x1)=>{const _0x13f69e=new _0x35df14(this[_0x2189('0x1')]);_0x13f69e['children'][_0x2189('0x22')](_0x2819d1);const _0x33f79c=_0x469182>-0x1?_0x469182:_0x19e0fc['items'][_0x2189('0x36')];_0x19e0fc[_0x2189('0x1f')][_0x2189('0x22')](_0x13f69e,_0x33f79c),_0x3c2737['listenTo'](_0x2819d1,'change:isEnabled',()=>{_0x3c2737[_0x2189('0x50')]=[...this[_0x2189('0x1f')]]['some'](_0x516213=>_0x516213[_0x2189('0x50')]);}),_0x3c2737['listenTo'](_0x2819d1,_0x2189('0x52'),()=>{_0x3c2737[_0x2189('0x4')][_0x2189('0x33')]=[...this[_0x2189('0x1f')]][_0x2189('0x3a')](_0x3122da=>_0x3122da[_0x2189('0x33')]);});};_0x3c2737['panelPosition']='sw',_0x3c2737['buttonView'][_0x2189('0x20')]({'label':_0x1f40d9(this[_0x2189('0x1')],_0x2189('0x4b')),'icon':_0x206384[_0x2189('0x46')]}),_0x3c2737[_0x2189('0x50')]=[...this[_0x2189('0x1f')]][_0x2189('0x3a')](_0x558eb9=>_0x558eb9[_0x2189('0x50')]),_0x3c2737[_0x2189('0x4')][_0x2189('0x33')]=[...this[_0x2189('0x1f')]]['some'](_0xe95c63=>_0xe95c63[_0x2189('0x33')]);for(const _0x20e2fc of this[_0x2189('0x1f')])_0x2b2e52(_0x20e2fc);return _0x3834e1['add'](_0x19e0fc),_0x3c2737['listenTo'](this[_0x2189('0x1f')],'add',(_0x3bc967,_0x28578c,_0x1a734e)=>{_0x2b2e52(_0x28578c,_0x1a734e);}),_0x3c2737['listenTo'](this[_0x2189('0x1f')],_0x2189('0x57'),(_0x330ead,_0x844744,_0x3e17a3)=>{_0x19e0fc[_0x2189('0x1f')]['remove'](_0x3e17a3);}),_0x3c2737;}[_0x2189('0x31')](_0x47cc4f,_0x1e2073){const _0x393400=_0x47cc4f&&_0x47cc4f[_0x2189('0x27')];_0x393400&&(this[_0x2189('0x12')](_0x393400,_0x2189('0x25'),()=>this['actionIndicator']=_0x1e2073),this[_0x2189('0x12')](_0x393400,'focus',()=>this[_0x2189('0x3c')]=_0x1e2073),this[_0x2189('0x12')](_0x393400,_0x2189('0xb'),()=>this[_0x2189('0x3c')]=null),this[_0x2189('0x12')](_0x393400,'blur',()=>this[_0x2189('0x3c')]=null));}['_createCommentInputView'](){const _0x22b1ca=super[_0x2189('0x4e')]();return _0x22b1ca[_0x2189('0x47')]('placeholder')['to'](this),_0x22b1ca;}[_0x2189('0x2c')](){return _0x2189('0x15')===this[_0x2189('0x45')]['attributes'][_0x2189('0x3e')][_0x2189('0x32')]?_0x1f40d9(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):_0x1f40d9(this[_0x2189('0x1')],_0x2189('0x54'));}[_0x2189('0xd')](){return this[_0x2189('0x45')]['isExternal']?_0x2189('0x15')===this[_0x2189('0x45')][_0x2189('0x41')]['@external']['source']?_0x1f40d9(this[_0x2189('0x1')],_0x2189('0x37'),this[_0x2189('0x45')][_0x2189('0x3f')][_0x2189('0x18')]):_0x1f40d9(this[_0x2189('0x1')],_0x2189('0x3'),this[_0x2189('0x45')][_0x2189('0x3f')][_0x2189('0x18')]):null;}[_0x2189('0xa')](){super[_0x2189('0xa')](),this['_attachActions'](this[_0x2189('0x28')],_0x2189('0x11')),this['_attachActions'](this[_0x2189('0x2d')],_0x2189('0x57'));}}
23
+ const _0x33ed=['editButton','focus','ck-comment--remove-confirmation','getTemplate','@external','children','ck-comment__info-name','ck-comment','getExternalCommentNote','div','fire','pencil','setTemplate','ck-comment__external','extendTemplate','span','buttonView','isConfirm','threeVerticalDots','isReadOnly','Remove','removeButton','Edit','remove','source','_config','panelView','switchToEditMode','ck-annotation','locale','creator','add','ck-comment__actions--hidden','ck-annotation__info-name','withText','EXTERNAL_IMPORT_WORD_COMMENT','ck-comment__wrapper','_attachActions','label','author','ck-comment__info-time','ck-annotation__actions','name','visibleView','ck-comment__user','userView','listenTo','ck-annotation__info-time','createCollection','isExternal','ck-annotation__info','_model','_createCommentInputView','icon','_createRemoveButton','ck-comment__main','showConfirm','actionIndicator','items','element','set','dropdown','placeholder','ck-comment__actions','ck-comment--edit','actionBar','some','edit','ck-comment--','isEditMode','authoredAt','isVisible','isRemovable','execute','ck-annotation__content-wrapper','EXTERNAL_COMMENT','isEnabled','Show\x20more\x20items','time','EXTERNAL_IMPORT_WORD_AVATAR','isSystemComment','Reply...','change:isEnabled','_createDropdown','ck-comment__info','change:isVisible','ck-annotation__user','bind','blur','importWord','attributes','mouseenter','ck-annotation__main','formatDateTime','resolvedAt','mouseleave'];(function(_0x33b293,_0x33ed52){const _0x1998e4=function(_0x133c95){while(--_0x133c95){_0x33b293['push'](_0x33b293['shift']());}};_0x1998e4(++_0x33ed52);}(_0x33ed,0x13d));const _0x1998=function(_0x33b293,_0x33ed52){_0x33b293=_0x33b293-0x0;let _0x1998e4=_0x33ed[_0x33b293];return _0x1998e4;};import{ButtonView as _0x3e7410,createDropdown as _0x38841c,ListView as _0x55d384,ListItemView as _0x4268c8}from'ckeditor5/src/ui';import{icons as _0x51b2d0}from'ckeditor5/src/core';import{UserView as _0x53afc8,ConfirmMixin as _0x7a7491}from'ckeditor5-collaboration/src/collaboration-core';import _0xcfcd1 from'./basecommentview';import _0x4cb233 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x7cc4d4}from'../../../utils/common-translations';export default class ut extends _0x7a7491(_0xcfcd1){constructor(_0x111598,_0x391270,_0x1b3c12){super(_0x111598,_0x391270,_0x1b3c12),this[_0x1998('0x1f')](_0x1998('0x1c'),null),this[_0x1998('0x1f')]('placeholder',_0x7cc4d4(_0x111598,_0x1998('0x34'))),this[_0x1998('0x3a')](_0x1998('0x29'))['to'](_0x391270),this[_0x1998('0x3a')](_0x1998('0x41'))['to'](_0x391270),this['actionBar']=this[_0x1998('0x13')](),this[_0x1998('0x33')]||(this[_0x1998('0x43')]=this['_createEditButton'](),this[_0x1998('0x58')]=this[_0x1998('0x19')](),this[_0x1998('0x1d')]=this[_0x1998('0x13')](),this[_0x1998('0x1d')]['addMany']([this[_0x1998('0x43')],this['removeButton']]),this['dropdown']=this[_0x1998('0x36')](),this[_0x1998('0x24')][_0x1998('0x2')](this[_0x1998('0x20')])),this[_0x1998('0x10')]=new _0x53afc8(_0x111598,_0x391270[_0x1998('0xa')],this['getUserViewNotificationText']()),this['userView'][_0x1998('0x51')]({'attributes':{'class':[_0x1998('0xf'),_0x1998('0x39')]}}),this[_0x1998('0x11')](_0x391270,'change:isRemovable',()=>this['cancelConfirm']()),this[_0x1998('0x4f')](this[_0x1998('0x46')]());}[_0x1998('0x46')](){const _0x1fdad7=this['bindTemplate'],_0x7a8d93=[{'tag':'div','attributes':{'class':[_0x1998('0x37'),_0x1998('0x15')]},'children':[{'tag':_0x1998('0x52'),'children':[{'text':this[_0x1998('0x10')][_0x1998('0xd')]}],'attributes':{'class':[_0x1998('0x49'),_0x1998('0x4')]}},{'tag':_0x1998('0x31'),'attributes':{'datetime':_0x1fdad7['to']('authoredAt'),'class':[_0x1998('0xb'),_0x1998('0x12')]},'children':[{'text':_0x1fdad7['to'](_0x1998('0x29'),_0x5e3c29=>this[_0x1998('0x5c')][_0x1998('0x40')](_0x5e3c29))}]}]},{'tag':'div','attributes':{'class':[_0x1998('0x22'),_0x1998('0xc'),_0x1fdad7['if'](_0x1998('0x28'),_0x1998('0x3')),_0x1fdad7['if'](_0x1998('0x28'),'ck-annotation__actions--hidden')]},'children':this[_0x1998('0x24')]},{'tag':_0x1998('0x4c'),'attributes':{'class':[_0x1998('0x2d')]},'children':this[_0x1998('0xe')]}];return this[_0x1998('0x16')][_0x1998('0x14')]&&_0x7a8d93['push']({'tag':_0x1998('0x4c'),'attributes':{'class':[_0x1998('0x50')]},'children':[{'text':this[_0x1998('0x4b')]()}]}),{'tag':'li','attributes':{'class':[_0x1998('0x7'),_0x1fdad7['if'](_0x1998('0x54'),_0x1998('0x45'))],'tabindex':-0x1},'children':[{'tag':_0x1998('0x4c'),'attributes':{'class':[_0x1998('0x4a'),_0x1998('0x5f'),_0x1fdad7['if'](_0x1998('0x28'),_0x1998('0x23')),_0x1fdad7['if'](_0x1998('0x33'),'ck-comment--info'),_0x1fdad7['to'](_0x1998('0x1c'),_0xe9e448=>_0xe9e448?_0x1998('0x27')+_0xe9e448:'')],'data-author-id':this['_model'][_0x1998('0xa')]['id'],'data-comment-id':this[_0x1998('0x16')]['id']},'children':[this[_0x1998('0x10')],{'tag':_0x1998('0x4c'),'attributes':{'class':[_0x1998('0x1a'),_0x1998('0x3f')]},'children':_0x7a8d93}]}]};}['_createEditButton'](){const _0x56c6cc=new _0x3e7410(this[_0x1998('0x0')]);return _0x56c6cc[_0x1998('0x9')]=_0x7cc4d4(this[_0x1998('0x0')],_0x1998('0x59')),_0x56c6cc['icon']=_0x51b2d0[_0x1998('0x4e')],_0x56c6cc[_0x1998('0x5')]=!0x0,_0x56c6cc[_0x1998('0x51')]({'attributes':{'class':_0x1998('0x23')}}),_0x56c6cc[_0x1998('0x3a')]('isEnabled')['to'](this[_0x1998('0x16')],_0x1998('0x56'),_0x208080=>!_0x208080),_0x56c6cc[_0x1998('0x3a')](_0x1998('0x2a'))['to'](this[_0x1998('0x16')],'isEditable'),_0x56c6cc['on'](_0x1998('0x2c'),()=>this[_0x1998('0x5e')]()),_0x56c6cc;}['_createRemoveButton'](){const _0x443d7d=new _0x3e7410(this['locale']);return _0x443d7d[_0x1998('0x9')]=_0x7cc4d4(this[_0x1998('0x0')],_0x1998('0x57')),_0x443d7d[_0x1998('0x18')]=_0x4cb233,_0x443d7d[_0x1998('0x5')]=!0x0,_0x443d7d[_0x1998('0x51')]({'attributes':{'class':'ck-comment--remove'}}),_0x443d7d[_0x1998('0x3a')]('isEnabled')['to'](this[_0x1998('0x16')],_0x1998('0x56'),_0x5a6f2b=>!_0x5a6f2b),_0x443d7d[_0x1998('0x3a')]('isVisible')['to'](this[_0x1998('0x16')],_0x1998('0x2b')),_0x443d7d['on'](_0x1998('0x2c'),()=>{this[_0x1998('0x1b')](_0x7cc4d4(this['locale'],'Delete\x20comment?'),this[_0x1998('0x1e')])['then'](()=>{this[_0x1998('0x4d')]('removeComment',this[_0x1998('0x16')]['id']);});}),_0x443d7d;}[_0x1998('0x36')](){const _0x2c877c=_0x38841c(this[_0x1998('0x0')]),_0x5cfd63=_0x2c877c[_0x1998('0x5d')][_0x1998('0x48')],_0x38d91c=new _0x55d384(this[_0x1998('0x0')]),_0x101d82=(_0x46fd7d,_0x256d17=-0x1)=>{const _0x2f1ee5=new _0x4268c8(this[_0x1998('0x0')]);_0x2f1ee5[_0x1998('0x48')]['add'](_0x46fd7d);const _0x2745ee=_0x256d17>-0x1?_0x256d17:_0x38d91c[_0x1998('0x1d')]['length'];_0x38d91c['items']['add'](_0x2f1ee5,_0x2745ee),_0x2c877c[_0x1998('0x11')](_0x46fd7d,_0x1998('0x35'),()=>{_0x2c877c[_0x1998('0x2f')]=[...this[_0x1998('0x1d')]][_0x1998('0x25')](_0x482a1a=>_0x482a1a[_0x1998('0x2f')]);}),_0x2c877c[_0x1998('0x11')](_0x46fd7d,_0x1998('0x38'),()=>{_0x2c877c[_0x1998('0x53')][_0x1998('0x2a')]=[...this[_0x1998('0x1d')]]['some'](_0x6fa1b9=>_0x6fa1b9[_0x1998('0x2a')]);});};_0x2c877c['panelPosition']='sw',_0x2c877c[_0x1998('0x53')]['set']({'label':_0x7cc4d4(this[_0x1998('0x0')],_0x1998('0x30')),'icon':_0x51b2d0[_0x1998('0x55')]}),_0x2c877c[_0x1998('0x2f')]=[...this[_0x1998('0x1d')]][_0x1998('0x25')](_0x75fd61=>_0x75fd61[_0x1998('0x2f')]),_0x2c877c[_0x1998('0x53')][_0x1998('0x2a')]=[...this[_0x1998('0x1d')]]['some'](_0x43b509=>_0x43b509[_0x1998('0x2a')]);for(const _0x27a2d9 of this[_0x1998('0x1d')])_0x101d82(_0x27a2d9);return _0x5cfd63[_0x1998('0x2')](_0x38d91c),_0x2c877c['listenTo'](this['items'],_0x1998('0x2'),(_0xc1cc95,_0x56e6c4,_0x58fc90)=>{_0x101d82(_0x56e6c4,_0x58fc90);}),_0x2c877c[_0x1998('0x11')](this[_0x1998('0x1d')],'remove',(_0xc17ec4,_0x5dfd33,_0x54090d)=>{_0x38d91c[_0x1998('0x1d')][_0x1998('0x5a')](_0x54090d);}),_0x2c877c;}[_0x1998('0x8')](_0x23adc3,_0x43e591){const _0x24b624=_0x23adc3&&_0x23adc3[_0x1998('0x1e')];_0x24b624&&(this[_0x1998('0x11')](_0x24b624,_0x1998('0x3e'),()=>this['actionIndicator']=_0x43e591),this[_0x1998('0x11')](_0x24b624,_0x1998('0x44'),()=>this[_0x1998('0x1c')]=_0x43e591),this[_0x1998('0x11')](_0x24b624,_0x1998('0x42'),()=>this[_0x1998('0x1c')]=null),this[_0x1998('0x11')](_0x24b624,_0x1998('0x3b'),()=>this[_0x1998('0x1c')]=null));}[_0x1998('0x17')](){const _0x450802=super[_0x1998('0x17')]();return _0x450802[_0x1998('0x3a')](_0x1998('0x21'))['to'](this),_0x450802;}['getExternalCommentNote'](){return'importWord'===this['_model'][_0x1998('0x3d')][_0x1998('0x47')]['source']?_0x7cc4d4(this[_0x1998('0x0')],_0x1998('0x6')):_0x7cc4d4(this[_0x1998('0x0')],_0x1998('0x2e'));}['getUserViewNotificationText'](){return this[_0x1998('0x16')]['isExternal']?_0x1998('0x3c')===this[_0x1998('0x16')][_0x1998('0x3d')][_0x1998('0x47')][_0x1998('0x5b')]?_0x7cc4d4(this['locale'],_0x1998('0x32'),this[_0x1998('0x16')][_0x1998('0x1')]['name']):_0x7cc4d4(this[_0x1998('0x0')],'EXTERNAL_AVATAR',this[_0x1998('0x16')]['creator']['name']):null;}['render'](){super['render'](),this[_0x1998('0x8')](this['editButton'],_0x1998('0x26')),this[_0x1998('0x8')](this[_0x1998('0x58')],_0x1998('0x5a'));}}
package/src/comments.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2c36=['Comments','requires'];(function(_0x2e0a56,_0x2c36e2){var _0xbe0712=function(_0x95a00d){while(--_0x95a00d){_0x2e0a56['push'](_0x2e0a56['shift']());}};_0xbe0712(++_0x2c36e2);}(_0x2c36,0x125));var _0xbe07=function(_0x2e0a56,_0x2c36e2){_0x2e0a56=_0x2e0a56-0x0;var _0xbe0712=_0x2c36[_0x2e0a56];return _0xbe0712;};import{Plugin as _0xd6e5bc}from'ckeditor5/src/core';import _0x44ea92 from'./comments/commentsrepository';import _0x30d136 from'./comments/commentsediting';import _0x57bd04 from'./comments/commentsui';import _0x4b705f from'./commentsonly';import _0x57a8c7 from'./annotations/widesidebar';import _0x5f52b4 from'./annotations/narrowsidebar';import _0x45cc8f from'./annotations/inlineannotations';import _0x1e50d5 from'./comments/commentsarchiveui';import _0x1712fe from'./comments/commentsarchive';export default class f extends _0xd6e5bc{static get[_0xbe07('0x0')](){return[_0x44ea92,_0x30d136,_0x57bd04,_0x1712fe,_0x1e50d5,_0x4b705f,_0x57a8c7,_0x5f52b4,_0x45cc8f];}static get['pluginName'](){return _0xbe07('0x1');}}
23
+ var _0x484b=['Comments','requires','pluginName'];(function(_0x42a396,_0x484b37){var _0x303e2b=function(_0x3c3b73){while(--_0x3c3b73){_0x42a396['push'](_0x42a396['shift']());}};_0x303e2b(++_0x484b37);}(_0x484b,0x17c));var _0x303e=function(_0x42a396,_0x484b37){_0x42a396=_0x42a396-0x0;var _0x303e2b=_0x484b[_0x42a396];return _0x303e2b;};import{Plugin as _0x2a6d9e}from'ckeditor5/src/core';import _0x491e6a from'./comments/commentsrepository';import _0x11049c from'./comments/commentsediting';import _0x45e4f1 from'./comments/commentsui';import _0x3cc249 from'./commentsonly';import _0x33fb2d from'./annotations/widesidebar';import _0x5d847d from'./annotations/narrowsidebar';import _0x329a3f from'./annotations/inlineannotations';import _0x49c9da from'./comments/commentsarchiveui';import _0x5de822 from'./comments/commentsarchive';export default class f extends _0x2a6d9e{static get[_0x303e('0x2')](){return[_0x491e6a,_0x11049c,_0x45e4f1,_0x5de822,_0x49c9da,_0x3cc249,_0x33fb2d,_0x5d847d,_0x329a3f];}static get[_0x303e('0x0')](){return _0x303e('0x1');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4f6d=['clearForceDisabled','commentsOnly','isEnabled','_disableCommentsOnlyMode','get','clipboardInput','listenTo','plugins','stop','forceDisabled','highest','affectsData','editor','commands','editing','config','DragDrop','set','_enableCommentsOnlyMode','stopListening','has','view','addCommentThread','commentsOnlyMode','requires','pluginName'];(function(_0x699f61,_0x4f6d3f){const _0xfb3ce4=function(_0x1fa2d7){while(--_0x1fa2d7){_0x699f61['push'](_0x699f61['shift']());}};_0xfb3ce4(++_0x4f6d3f);}(_0x4f6d,0x7f));const _0xfb3c=function(_0x699f61,_0x4f6d3f){_0x699f61=_0x699f61-0x0;let _0xfb3ce4=_0x4f6d[_0x699f61];return _0xfb3ce4;};import{Plugin as _0x18ffa6}from'ckeditor5/src/core';import _0x145e37 from'./comments/commentsediting';export default class n extends _0x18ffa6{static get[_0xfb3c('0x2')](){return'CommentsOnly';}static get[_0xfb3c('0x1')](){return[_0x145e37];}constructor(_0x187968){super(_0x187968),this[_0xfb3c('0x14')](_0xfb3c('0x5'),!0x1),this['on']('change:isEnabled',(_0x5d7d18,_0x50835a,_0x271e35)=>{_0x271e35?this[_0xfb3c('0x15')]():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this[_0xfb3c('0xf')][_0xfb3c('0x12')]['get'](_0xfb3c('0x4'))&&(this[_0xfb3c('0x5')]=!0x0);}[_0xfb3c('0x15')](){for(const [_0x203d05,_0x936c9e]of this['editor'][_0xfb3c('0x10')])_0x936c9e[_0xfb3c('0xe')]&&_0xfb3c('0x19')!==_0x203d05&&_0x936c9e[_0xfb3c('0xc')](_0xfb3c('0x0'));this[_0xfb3c('0xf')]['plugins'][_0xfb3c('0x17')](_0xfb3c('0x13'))&&this[_0xfb3c('0xf')][_0xfb3c('0xa')][_0xfb3c('0x7')]('DragDrop')[_0xfb3c('0xc')](_0xfb3c('0x0'));const _0x1689cd=this[_0xfb3c('0xf')][_0xfb3c('0x11')][_0xfb3c('0x18')]['document'];this[_0xfb3c('0x9')](_0x1689cd,'cut',_0x2d2fe3=>_0x2d2fe3[_0xfb3c('0xb')](),{'priority':'highest'}),this[_0xfb3c('0x9')](_0x1689cd,_0xfb3c('0x8'),_0x331b34=>_0x331b34[_0xfb3c('0xb')](),{'priority':_0xfb3c('0xd')}),this[_0xfb3c('0x9')](_0x1689cd,'delete',_0x254330=>_0x254330[_0xfb3c('0xb')](),{'priority':_0xfb3c('0xd')});}[_0xfb3c('0x6')](){for(const [_0x4ecc66,_0x518360]of this['editor'][_0xfb3c('0x10')])_0x518360[_0xfb3c('0xe')]&&'addCommentThread'!==_0x4ecc66&&_0x518360[_0xfb3c('0x3')]('commentsOnlyMode');this[_0xfb3c('0x16')](this[_0xfb3c('0xf')]['editing'][_0xfb3c('0x18')]['document']);}}
23
+ const _0x3105=['listenTo','change:isEnabled','document','delete','config','forceDisabled','editing','CommentsOnly','afterInit','has','requires','commentsOnlyMode','commentsOnly','editor','highest','clearForceDisabled','view','plugins','isEnabled','DragDrop','clipboardInput','_disableCommentsOnlyMode','set','_enableCommentsOnlyMode','get','commands','stop','cut','addCommentThread','stopListening'];(function(_0x384542,_0x310590){const _0x46284e=function(_0x1fc81d){while(--_0x1fc81d){_0x384542['push'](_0x384542['shift']());}};_0x46284e(++_0x310590);}(_0x3105,0x150));const _0x4628=function(_0x384542,_0x310590){_0x384542=_0x384542-0x0;let _0x46284e=_0x3105[_0x384542];return _0x46284e;};import{Plugin as _0x4d2514}from'ckeditor5/src/core';import _0x53106b from'./comments/commentsediting';export default class n extends _0x4d2514{static get['pluginName'](){return _0x4628('0x1');}static get[_0x4628('0x4')](){return[_0x53106b];}constructor(_0x315c13){super(_0x315c13),this[_0x4628('0x10')]('isEnabled',!0x1),this['on'](_0x4628('0x19'),(_0x336685,_0x3f89d8,_0x425d2c)=>{_0x425d2c?this['_enableCommentsOnlyMode']():this[_0x4628('0xf')]();});}[_0x4628('0x2')](){!this['isEnabled']&&this[_0x4628('0x7')][_0x4628('0x1c')][_0x4628('0x12')](_0x4628('0x6'))&&(this[_0x4628('0xc')]=!0x0);}[_0x4628('0x11')](){for(const [_0x134f28,_0x2fc76f]of this[_0x4628('0x7')]['commands'])_0x2fc76f['affectsData']&&'addCommentThread'!==_0x134f28&&_0x2fc76f[_0x4628('0x1d')]('commentsOnlyMode');this[_0x4628('0x7')]['plugins'][_0x4628('0x3')](_0x4628('0xd'))&&this[_0x4628('0x7')][_0x4628('0xb')][_0x4628('0x12')](_0x4628('0xd'))['forceDisabled'](_0x4628('0x5'));const _0x1a5cc9=this[_0x4628('0x7')][_0x4628('0x0')][_0x4628('0xa')][_0x4628('0x1a')];this[_0x4628('0x18')](_0x1a5cc9,_0x4628('0x15'),_0x540007=>_0x540007[_0x4628('0x14')](),{'priority':_0x4628('0x8')}),this['listenTo'](_0x1a5cc9,_0x4628('0xe'),_0x471942=>_0x471942['stop'](),{'priority':_0x4628('0x8')}),this['listenTo'](_0x1a5cc9,_0x4628('0x1b'),_0x4c1397=>_0x4c1397[_0x4628('0x14')](),{'priority':_0x4628('0x8')});}[_0x4628('0xf')](){for(const [_0x11601a,_0x2bc9be]of this['editor'][_0x4628('0x13')])_0x2bc9be['affectsData']&&_0x4628('0x16')!==_0x11601a&&_0x2bc9be[_0x4628('0x9')]('commentsOnlyMode');this[_0x4628('0x17')](this['editor'][_0x4628('0x0')][_0x4628('0xa')][_0x4628('0x1a')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x1a18c9,_0x37c5d5,_0x1057cf){const t=_0x1a18c9['t'];switch(_0x37c5d5){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'},_0x1057cf);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'},_0x1057cf);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'},_0x1057cf);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'},_0x1057cf);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(_0x1c3189,_0x567ac5,_0xe35d93){const t=_0x1c3189['t'];switch(_0x567ac5){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'},_0xe35d93);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'},_0xe35d93);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'},_0xe35d93);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'},_0xe35d93);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 _0x53a3=['disconnect','type','attributeName','childList','cancel','attributes','observe','class','characterData'];(function(_0x570e8b,_0x53a3a9){const _0x3f9a68=function(_0x3fe808){while(--_0x3fe808){_0x570e8b['push'](_0x570e8b['shift']());}};_0x3f9a68(++_0x53a3a9);}(_0x53a3,0x1d2));const _0x3f9a=function(_0x570e8b,_0x53a3a9){_0x570e8b=_0x570e8b-0x0;let _0x3f9a68=_0x53a3[_0x570e8b];return _0x3f9a68;};import{throttle as _0x394c8b}from'lodash-es';export default function Dt(_0x465f5a){const _0x2e93f9=_0x394c8b(_0x465f5a,0x1e),_0x3a3948=new MutationObserver(_0x5d2c33=>{for(const _0x1ebed8 of _0x5d2c33)(_0x3f9a('0x7')==_0x1ebed8[_0x3f9a('0x3')]&&_0x3f9a('0x0')==_0x1ebed8[_0x3f9a('0x4')]||_0x3f9a('0x5')==_0x1ebed8['type']||_0x3f9a('0x1')==_0x1ebed8[_0x3f9a('0x3')])&&_0x2e93f9();});return{'attach'(_0x31d1fc){_0x3a3948[_0x3f9a('0x8')](_0x31d1fc,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x3a3948[_0x3f9a('0x2')](),_0x2e93f9[_0x3f9a('0x6')]();}};}
23
+ const _0x4d29=['characterData','cancel','type','childList','attributes','class'];(function(_0x4231e7,_0x4d29e7){const _0x4682c6=function(_0x422263){while(--_0x422263){_0x4231e7['push'](_0x4231e7['shift']());}};_0x4682c6(++_0x4d29e7);}(_0x4d29,0x17a));const _0x4682=function(_0x4231e7,_0x4d29e7){_0x4231e7=_0x4231e7-0x0;let _0x4682c6=_0x4d29[_0x4231e7];return _0x4682c6;};import{throttle as _0x552db6}from'lodash-es';export default function Dt(_0x3db93a){const _0x7e752d=_0x552db6(_0x3db93a,0x1e),_0x5d602f=new MutationObserver(_0x472d96=>{for(const _0x3bf9bc of _0x472d96)(_0x4682('0x4')==_0x3bf9bc[_0x4682('0x2')]&&_0x4682('0x5')==_0x3bf9bc['attributeName']||_0x4682('0x3')==_0x3bf9bc[_0x4682('0x2')]||_0x4682('0x0')==_0x3bf9bc[_0x4682('0x2')])&&_0x7e752d();});return{'attach'(_0x4779b5){_0x5d602f['observe'](_0x4779b5,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x5d602f['disconnect'](),_0x7e752d[_0x4682('0x1')]();}};}