@ckeditor/ckeditor5-comments 0.0.0-nightly-20230818.0 → 0.0.0-nightly-20230819.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 _0x31bc=['isEnabled','importWord','length','isVisible','panelPosition','showConfirm','ck-comment--remove','isReadOnly','pencil','fire','element','bindTemplate','ck-annotation__content-wrapper','change:isVisible','@external','_createRemoveButton','mouseleave','getTemplate','actionBar','remove','createCollection','ck-comment--info','ck-annotation__main','isSystemComment','span','ck-comment__info-name','extendTemplate','ck-comment--edit','_createEditButton','isRemovable','add','ck-comment__main','EXTERNAL_IMPORT_WORD_AVATAR','EXTERNAL_COMMENT','getExternalCommentNote','time','resolvedAt','then','ck-comment__user','_createDropdown','_model','switchToEditMode','execute','isEditMode','icon','setTemplate','_createCommentInputView','withText','ck-comment__actions--hidden','isEditable','attributes','removeComment','_attachActions','dropdown','name','panelView','buttonView','EXTERNAL_AVATAR','mouseenter','ck-annotation__user','bind','some','locale','children','_config','cancelConfirm','userView','ck-annotation__actions','label','authoredAt','ck-comment--','items','visibleView','render','addMany','set','getUserViewNotificationText','isExternal','actionIndicator','placeholder','focus','editButton','author','creator','div','listenTo','ck-annotation','threeVerticalDots','ck-comment','Reply...','source','ck-comment__external','ck-annotation__info-name','ck-comment__info'];(function(_0x1c5bf0,_0x31bc99){const _0x55b999=function(_0x4a491f){while(--_0x4a491f){_0x1c5bf0['push'](_0x1c5bf0['shift']());}};_0x55b999(++_0x31bc99);}(_0x31bc,0xdb));const _0x55b9=function(_0x1c5bf0,_0x31bc99){_0x1c5bf0=_0x1c5bf0-0x0;let _0x55b999=_0x31bc[_0x1c5bf0];return _0x55b999;};import{ButtonView as _0x38f13c,createDropdown as _0x3d0387,ListView as _0x409949,ListItemView as _0x471e0a}from'ckeditor5/src/ui';import{icons as _0x451d9b}from'ckeditor5/src/core';import{UserView as _0x1febfa,ConfirmMixin as _0x3502cf}from'ckeditor5-collaboration/src/collaboration-core';import _0xa4aaaf from'./basecommentview';import _0x245428 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x3ac33d}from'../../../utils/common-translations';export default class ut extends _0x3502cf(_0xa4aaaf){constructor(_0xdeb7c2,_0x3706d1,_0x1148a7){super(_0xdeb7c2,_0x3706d1,_0x1148a7),this[_0x55b9('0x2c')](_0x55b9('0x2f'),null),this[_0x55b9('0x2c')]('placeholder',_0x3ac33d(_0xdeb7c2,_0x55b9('0x3a'))),this[_0x55b9('0x1d')]('authoredAt')['to'](_0x3706d1),this[_0x55b9('0x1d')](_0x55b9('0x5'))['to'](_0x3706d1),this[_0x55b9('0x51')]=this[_0x55b9('0x53')](),this[_0x55b9('0x56')]||(this[_0x55b9('0x32')]=this[_0x55b9('0x5b')](),this['removeButton']=this[_0x55b9('0x4e')](),this['items']=this['createCollection'](),this[_0x55b9('0x28')][_0x55b9('0x2b')]([this[_0x55b9('0x32')],this['removeButton']]),this[_0x55b9('0x16')]=this['_createDropdown'](),this['actionBar'][_0x55b9('0x5d')](this[_0x55b9('0x16')])),this[_0x55b9('0x23')]=new _0x1febfa(_0xdeb7c2,_0x3706d1[_0x55b9('0x33')],this[_0x55b9('0x2d')]()),this[_0x55b9('0x23')][_0x55b9('0x59')]({'attributes':{'class':[_0x55b9('0x7'),_0x55b9('0x1c')]}}),this[_0x55b9('0x36')](_0x3706d1,'change:isRemovable',()=>this[_0x55b9('0x22')]()),this[_0x55b9('0xe')](this[_0x55b9('0x50')]());}[_0x55b9('0x50')](){const _0x2386e8=this[_0x55b9('0x4a')],_0x1d614b=[{'tag':'div','attributes':{'class':[_0x55b9('0x3e'),'ck-annotation__info']},'children':[{'tag':_0x55b9('0x57'),'children':[{'text':this[_0x55b9('0x23')][_0x55b9('0x17')]}],'attributes':{'class':[_0x55b9('0x58'),_0x55b9('0x3d')]}},{'tag':_0x55b9('0x4'),'attributes':{'datetime':_0x2386e8['to'](_0x55b9('0x26')),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2386e8['to'](_0x55b9('0x26'),_0x3ea2de=>this[_0x55b9('0x21')]['formatDateTime'](_0x3ea2de))}]}]},{'tag':_0x55b9('0x35'),'attributes':{'class':['ck-comment__actions',_0x55b9('0x24'),_0x2386e8['if'](_0x55b9('0xc'),_0x55b9('0x11')),_0x2386e8['if'](_0x55b9('0xc'),'ck-annotation__actions--hidden')]},'children':this['actionBar']},{'tag':_0x55b9('0x35'),'attributes':{'class':[_0x55b9('0x4b')]},'children':this[_0x55b9('0x29')]}];return this[_0x55b9('0x9')][_0x55b9('0x2e')]&&_0x1d614b['push']({'tag':_0x55b9('0x35'),'attributes':{'class':[_0x55b9('0x3c')]},'children':[{'text':this[_0x55b9('0x3')]()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x2386e8['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1},'children':[{'tag':_0x55b9('0x35'),'attributes':{'class':[_0x55b9('0x39'),_0x55b9('0x37'),_0x2386e8['if'](_0x55b9('0xc'),_0x55b9('0x5a')),_0x2386e8['if'](_0x55b9('0x56'),_0x55b9('0x54')),_0x2386e8['to'](_0x55b9('0x2f'),_0x5a25f7=>_0x5a25f7?_0x55b9('0x27')+_0x5a25f7:'')],'data-author-id':this[_0x55b9('0x9')]['author']['id'],'data-comment-id':this['_model']['id']},'children':[this['userView'],{'tag':_0x55b9('0x35'),'attributes':{'class':[_0x55b9('0x0'),_0x55b9('0x55')]},'children':_0x1d614b}]}]};}[_0x55b9('0x5b')](){const _0xfa0a9f=new _0x38f13c(this[_0x55b9('0x1f')]);return _0xfa0a9f['label']=_0x3ac33d(this[_0x55b9('0x1f')],'Edit'),_0xfa0a9f[_0x55b9('0xd')]=_0x451d9b[_0x55b9('0x47')],_0xfa0a9f[_0x55b9('0x10')]=!0x0,_0xfa0a9f[_0x55b9('0x59')]({'attributes':{'class':_0x55b9('0x5a')}}),_0xfa0a9f[_0x55b9('0x1d')](_0x55b9('0x3f'))['to'](this['_model'],_0x55b9('0x46'),_0x4fcc27=>!_0x4fcc27),_0xfa0a9f['bind'](_0x55b9('0x42'))['to'](this['_model'],_0x55b9('0x12')),_0xfa0a9f['on'](_0x55b9('0xb'),()=>this[_0x55b9('0xa')]()),_0xfa0a9f;}[_0x55b9('0x4e')](){const _0x217129=new _0x38f13c(this[_0x55b9('0x1f')]);return _0x217129[_0x55b9('0x25')]=_0x3ac33d(this['locale'],'Remove'),_0x217129[_0x55b9('0xd')]=_0x245428,_0x217129[_0x55b9('0x10')]=!0x0,_0x217129[_0x55b9('0x59')]({'attributes':{'class':_0x55b9('0x45')}}),_0x217129[_0x55b9('0x1d')]('isEnabled')['to'](this[_0x55b9('0x9')],_0x55b9('0x46'),_0x592c56=>!_0x592c56),_0x217129[_0x55b9('0x1d')]('isVisible')['to'](this['_model'],_0x55b9('0x5c')),_0x217129['on'](_0x55b9('0xb'),()=>{this[_0x55b9('0x44')](_0x3ac33d(this[_0x55b9('0x1f')],'Delete\x20comment?'),this['element'])[_0x55b9('0x6')](()=>{this[_0x55b9('0x48')](_0x55b9('0x14'),this[_0x55b9('0x9')]['id']);});}),_0x217129;}[_0x55b9('0x8')](){const _0x5cf572=_0x3d0387(this[_0x55b9('0x1f')]),_0x3c2259=_0x5cf572[_0x55b9('0x18')][_0x55b9('0x20')],_0x11df49=new _0x409949(this[_0x55b9('0x1f')]),_0x167d11=(_0x40e9f9,_0x393670=-0x1)=>{const _0x36a2d3=new _0x471e0a(this['locale']);_0x36a2d3[_0x55b9('0x20')][_0x55b9('0x5d')](_0x40e9f9);const _0x1e2ea9=_0x393670>-0x1?_0x393670:_0x11df49['items'][_0x55b9('0x41')];_0x11df49['items'][_0x55b9('0x5d')](_0x36a2d3,_0x1e2ea9),_0x5cf572[_0x55b9('0x36')](_0x40e9f9,'change:isEnabled',()=>{_0x5cf572[_0x55b9('0x3f')]=[...this[_0x55b9('0x28')]]['some'](_0x22f9c8=>_0x22f9c8['isEnabled']);}),_0x5cf572[_0x55b9('0x36')](_0x40e9f9,_0x55b9('0x4c'),()=>{_0x5cf572['buttonView'][_0x55b9('0x42')]=[...this[_0x55b9('0x28')]][_0x55b9('0x1e')](_0xa81492=>_0xa81492[_0x55b9('0x42')]);});};_0x5cf572[_0x55b9('0x43')]='sw',_0x5cf572[_0x55b9('0x19')][_0x55b9('0x2c')]({'label':_0x3ac33d(this['locale'],'Show\x20more\x20items'),'icon':_0x451d9b[_0x55b9('0x38')]}),_0x5cf572['isEnabled']=[...this['items']][_0x55b9('0x1e')](_0x3d5892=>_0x3d5892[_0x55b9('0x3f')]),_0x5cf572[_0x55b9('0x19')]['isVisible']=[...this[_0x55b9('0x28')]][_0x55b9('0x1e')](_0x58c30e=>_0x58c30e[_0x55b9('0x42')]);for(const _0x24b2d2 of this[_0x55b9('0x28')])_0x167d11(_0x24b2d2);return _0x3c2259[_0x55b9('0x5d')](_0x11df49),_0x5cf572[_0x55b9('0x36')](this[_0x55b9('0x28')],_0x55b9('0x5d'),(_0x5d170a,_0x2c85ec,_0x202195)=>{_0x167d11(_0x2c85ec,_0x202195);}),_0x5cf572['listenTo'](this[_0x55b9('0x28')],_0x55b9('0x52'),(_0x2f6015,_0x12bf92,_0x289938)=>{_0x11df49[_0x55b9('0x28')]['remove'](_0x289938);}),_0x5cf572;}[_0x55b9('0x15')](_0x582fce,_0x4ad9e3){const _0x399c56=_0x582fce&&_0x582fce[_0x55b9('0x49')];_0x399c56&&(this['listenTo'](_0x399c56,_0x55b9('0x1b'),()=>this[_0x55b9('0x2f')]=_0x4ad9e3),this[_0x55b9('0x36')](_0x399c56,_0x55b9('0x31'),()=>this['actionIndicator']=_0x4ad9e3),this[_0x55b9('0x36')](_0x399c56,_0x55b9('0x4f'),()=>this[_0x55b9('0x2f')]=null),this['listenTo'](_0x399c56,'blur',()=>this[_0x55b9('0x2f')]=null));}[_0x55b9('0xf')](){const _0xc72c12=super[_0x55b9('0xf')]();return _0xc72c12[_0x55b9('0x1d')](_0x55b9('0x30'))['to'](this),_0xc72c12;}[_0x55b9('0x3')](){return _0x55b9('0x40')===this[_0x55b9('0x9')]['attributes'][_0x55b9('0x4d')]['source']?_0x3ac33d(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):_0x3ac33d(this['locale'],_0x55b9('0x2'));}[_0x55b9('0x2d')](){return this[_0x55b9('0x9')][_0x55b9('0x2e')]?_0x55b9('0x40')===this['_model'][_0x55b9('0x13')][_0x55b9('0x4d')][_0x55b9('0x3b')]?_0x3ac33d(this['locale'],_0x55b9('0x1'),this[_0x55b9('0x9')][_0x55b9('0x34')][_0x55b9('0x17')]):_0x3ac33d(this[_0x55b9('0x1f')],_0x55b9('0x1a'),this[_0x55b9('0x9')]['creator'][_0x55b9('0x17')]):null;}[_0x55b9('0x2a')](){super['render'](),this['_attachActions'](this[_0x55b9('0x32')],'edit'),this[_0x55b9('0x15')](this['removeButton'],_0x55b9('0x52'));}}
23
+ const _0x4c40=['execute','edit','isConfirm','actionIndicator','ck-annotation','userView','getUserViewNotificationText','ck-comment__info-name','authoredAt','isSystemComment','element','Edit','listenTo','_createRemoveButton','change:isRemovable','cancelConfirm','EXTERNAL_AVATAR','mouseleave','creator','isEnabled','getTemplate','ck-annotation__content-wrapper','importWord','panelView','author','EXTERNAL_IMPORT_WORD_AVATAR','blur','div','editButton','isReadOnly','EXTERNAL_COMMENT','set','ck-annotation__actions--hidden','ck-annotation__info-name','addMany','EXTERNAL_IMPORT_WORD_COMMENT','ck-comment__info','name','resolvedAt','visibleView','dropdown','ck-comment__actions--hidden','buttonView','ck-comment__wrapper','change:isVisible','_model','then','some','_createCommentInputView','time','Show\x20more\x20items','locale','attributes','length','fire','createCollection','extendTemplate','showConfirm','label','ck-comment__user','icon','_createEditButton','ck-comment--remove-confirmation','isEditMode','remove','ck-comment--','ck-annotation__actions','@external','span','isEditable','threeVerticalDots','withText','source','_config','isVisible','_attachActions','actionBar','getExternalCommentNote','isExternal','setTemplate','ck-comment--remove','items','switchToEditMode','ck-annotation__info','bind','ck-annotation__main','Remove','add','bindTemplate','ck-comment','removeButton','mouseenter','_createDropdown','pencil','removeComment','ck-annotation__info-time','render','ck-comment--edit','panelPosition','ck-comment__info-time','ck-annotation__user','placeholder'];(function(_0x2211fb,_0x4c4079){const _0x19f896=function(_0x27ade8){while(--_0x27ade8){_0x2211fb['push'](_0x2211fb['shift']());}};_0x19f896(++_0x4c4079);}(_0x4c40,0xf3));const _0x19f8=function(_0x2211fb,_0x4c4079){_0x2211fb=_0x2211fb-0x0;let _0x19f896=_0x4c40[_0x2211fb];return _0x19f896;};import{ButtonView as _0x270bd9,createDropdown as _0x1a7d3c,ListView as _0x452d6d,ListItemView as _0x378b41}from'ckeditor5/src/ui';import{icons as _0x20bdf9}from'ckeditor5/src/core';import{UserView as _0x4e0e56,ConfirmMixin as _0x380185}from'ckeditor5-collaboration/src/collaboration-core';import _0x6daadd from'./basecommentview';import _0x471cdf from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x317437}from'../../../utils/common-translations';export default class ut extends _0x380185(_0x6daadd){constructor(_0x326065,_0x4ee8f4,_0x5e3781){super(_0x326065,_0x4ee8f4,_0x5e3781),this['set'](_0x19f8('0x42'),null),this[_0x19f8('0x5e')](_0x19f8('0x3e'),_0x317437(_0x326065,'Reply...')),this[_0x19f8('0x2d')](_0x19f8('0x47'))['to'](_0x4ee8f4),this[_0x19f8('0x2d')](_0x19f8('0x65'))['to'](_0x4ee8f4),this[_0x19f8('0x25')]=this[_0x19f8('0x10')](),this[_0x19f8('0x48')]||(this[_0x19f8('0x5b')]=this['_createEditButton'](),this[_0x19f8('0x33')]=this[_0x19f8('0x4c')](),this[_0x19f8('0x2a')]=this[_0x19f8('0x10')](),this[_0x19f8('0x2a')][_0x19f8('0x61')]([this[_0x19f8('0x5b')],this[_0x19f8('0x33')]]),this[_0x19f8('0x1')]=this[_0x19f8('0x35')](),this[_0x19f8('0x25')]['add'](this['dropdown'])),this[_0x19f8('0x44')]=new _0x4e0e56(_0x326065,_0x4ee8f4[_0x19f8('0x57')],this[_0x19f8('0x45')]()),this[_0x19f8('0x44')][_0x19f8('0x11')]({'attributes':{'class':[_0x19f8('0x14'),_0x19f8('0x3d')]}}),this[_0x19f8('0x4b')](_0x4ee8f4,_0x19f8('0x4d'),()=>this[_0x19f8('0x4e')]()),this[_0x19f8('0x28')](this[_0x19f8('0x53')]());}[_0x19f8('0x53')](){const _0x4ce37a=this[_0x19f8('0x31')],_0x4b56ab=[{'tag':_0x19f8('0x5a'),'attributes':{'class':[_0x19f8('0x63'),_0x19f8('0x2c')]},'children':[{'tag':_0x19f8('0x1d'),'children':[{'text':this[_0x19f8('0x44')][_0x19f8('0x64')]}],'attributes':{'class':[_0x19f8('0x46'),_0x19f8('0x60')]}},{'tag':_0x19f8('0xa'),'attributes':{'datetime':_0x4ce37a['to'](_0x19f8('0x47')),'class':[_0x19f8('0x3c'),_0x19f8('0x38')]},'children':[{'text':_0x4ce37a['to'](_0x19f8('0x47'),_0x48772f=>this[_0x19f8('0x22')]['formatDateTime'](_0x48772f))}]}]},{'tag':_0x19f8('0x5a'),'attributes':{'class':['ck-comment__actions',_0x19f8('0x1b'),_0x4ce37a['if']('isEditMode',_0x19f8('0x2')),_0x4ce37a['if']('isEditMode',_0x19f8('0x5f'))]},'children':this['actionBar']},{'tag':_0x19f8('0x5a'),'attributes':{'class':[_0x19f8('0x54')]},'children':this[_0x19f8('0x0')]}];return this[_0x19f8('0x6')][_0x19f8('0x27')]&&_0x4b56ab['push']({'tag':_0x19f8('0x5a'),'attributes':{'class':['ck-comment__external']},'children':[{'text':this[_0x19f8('0x26')]()}]}),{'tag':'li','attributes':{'class':[_0x19f8('0x4'),_0x4ce37a['if'](_0x19f8('0x41'),_0x19f8('0x17'))],'tabindex':-0x1},'children':[{'tag':_0x19f8('0x5a'),'attributes':{'class':[_0x19f8('0x32'),_0x19f8('0x43'),_0x4ce37a['if'](_0x19f8('0x18'),_0x19f8('0x3a')),_0x4ce37a['if'](_0x19f8('0x48'),'ck-comment--info'),_0x4ce37a['to']('actionIndicator',_0x3c23e4=>_0x3c23e4?_0x19f8('0x1a')+_0x3c23e4:'')],'data-author-id':this['_model']['author']['id'],'data-comment-id':this[_0x19f8('0x6')]['id']},'children':[this['userView'],{'tag':_0x19f8('0x5a'),'attributes':{'class':['ck-comment__main',_0x19f8('0x2e')]},'children':_0x4b56ab}]}]};}[_0x19f8('0x16')](){const _0x12ff4f=new _0x270bd9(this['locale']);return _0x12ff4f[_0x19f8('0x13')]=_0x317437(this['locale'],_0x19f8('0x4a')),_0x12ff4f[_0x19f8('0x15')]=_0x20bdf9[_0x19f8('0x36')],_0x12ff4f[_0x19f8('0x20')]=!0x0,_0x12ff4f[_0x19f8('0x11')]({'attributes':{'class':_0x19f8('0x3a')}}),_0x12ff4f[_0x19f8('0x2d')](_0x19f8('0x52'))['to'](this['_model'],_0x19f8('0x5c'),_0x56a9be=>!_0x56a9be),_0x12ff4f[_0x19f8('0x2d')](_0x19f8('0x23'))['to'](this[_0x19f8('0x6')],_0x19f8('0x1e')),_0x12ff4f['on']('execute',()=>this[_0x19f8('0x2b')]()),_0x12ff4f;}[_0x19f8('0x4c')](){const _0x502340=new _0x270bd9(this['locale']);return _0x502340[_0x19f8('0x13')]=_0x317437(this[_0x19f8('0xc')],_0x19f8('0x2f')),_0x502340['icon']=_0x471cdf,_0x502340[_0x19f8('0x20')]=!0x0,_0x502340['extendTemplate']({'attributes':{'class':_0x19f8('0x29')}}),_0x502340['bind']('isEnabled')['to'](this[_0x19f8('0x6')],_0x19f8('0x5c'),_0x23e131=>!_0x23e131),_0x502340['bind'](_0x19f8('0x23'))['to'](this[_0x19f8('0x6')],'isRemovable'),_0x502340['on'](_0x19f8('0x3f'),()=>{this[_0x19f8('0x12')](_0x317437(this[_0x19f8('0xc')],'Delete\x20comment?'),this[_0x19f8('0x49')])[_0x19f8('0x7')](()=>{this[_0x19f8('0xf')](_0x19f8('0x37'),this['_model']['id']);});}),_0x502340;}[_0x19f8('0x35')](){const _0x3b1dbd=_0x1a7d3c(this[_0x19f8('0xc')]),_0xe6ee5e=_0x3b1dbd[_0x19f8('0x56')]['children'],_0x242d48=new _0x452d6d(this['locale']),_0x205cca=(_0x48780d,_0x114b4d=-0x1)=>{const _0x1dee6f=new _0x378b41(this[_0x19f8('0xc')]);_0x1dee6f['children'][_0x19f8('0x30')](_0x48780d);const _0x48d5b0=_0x114b4d>-0x1?_0x114b4d:_0x242d48['items'][_0x19f8('0xe')];_0x242d48[_0x19f8('0x2a')][_0x19f8('0x30')](_0x1dee6f,_0x48d5b0),_0x3b1dbd['listenTo'](_0x48780d,'change:isEnabled',()=>{_0x3b1dbd[_0x19f8('0x52')]=[...this[_0x19f8('0x2a')]][_0x19f8('0x8')](_0x4da1b2=>_0x4da1b2['isEnabled']);}),_0x3b1dbd[_0x19f8('0x4b')](_0x48780d,_0x19f8('0x5'),()=>{_0x3b1dbd[_0x19f8('0x3')][_0x19f8('0x23')]=[...this['items']]['some'](_0x536696=>_0x536696[_0x19f8('0x23')]);});};_0x3b1dbd[_0x19f8('0x3b')]='sw',_0x3b1dbd[_0x19f8('0x3')][_0x19f8('0x5e')]({'label':_0x317437(this[_0x19f8('0xc')],_0x19f8('0xb')),'icon':_0x20bdf9[_0x19f8('0x1f')]}),_0x3b1dbd[_0x19f8('0x52')]=[...this['items']][_0x19f8('0x8')](_0x91d475=>_0x91d475[_0x19f8('0x52')]),_0x3b1dbd[_0x19f8('0x3')][_0x19f8('0x23')]=[...this['items']][_0x19f8('0x8')](_0x52010f=>_0x52010f['isVisible']);for(const _0x25818b of this[_0x19f8('0x2a')])_0x205cca(_0x25818b);return _0xe6ee5e['add'](_0x242d48),_0x3b1dbd[_0x19f8('0x4b')](this['items'],_0x19f8('0x30'),(_0x3b6a65,_0x30c3e6,_0x579ed1)=>{_0x205cca(_0x30c3e6,_0x579ed1);}),_0x3b1dbd['listenTo'](this[_0x19f8('0x2a')],_0x19f8('0x19'),(_0x59d1fc,_0x11b20a,_0x5b88a2)=>{_0x242d48[_0x19f8('0x2a')][_0x19f8('0x19')](_0x5b88a2);}),_0x3b1dbd;}[_0x19f8('0x24')](_0x219ea9,_0x3b6f73){const _0x163426=_0x219ea9&&_0x219ea9['element'];_0x163426&&(this[_0x19f8('0x4b')](_0x163426,_0x19f8('0x34'),()=>this[_0x19f8('0x42')]=_0x3b6f73),this[_0x19f8('0x4b')](_0x163426,'focus',()=>this[_0x19f8('0x42')]=_0x3b6f73),this['listenTo'](_0x163426,_0x19f8('0x50'),()=>this[_0x19f8('0x42')]=null),this[_0x19f8('0x4b')](_0x163426,_0x19f8('0x59'),()=>this[_0x19f8('0x42')]=null));}['_createCommentInputView'](){const _0x2a6543=super[_0x19f8('0x9')]();return _0x2a6543[_0x19f8('0x2d')](_0x19f8('0x3e'))['to'](this),_0x2a6543;}['getExternalCommentNote'](){return _0x19f8('0x55')===this[_0x19f8('0x6')][_0x19f8('0xd')][_0x19f8('0x1c')][_0x19f8('0x21')]?_0x317437(this[_0x19f8('0xc')],_0x19f8('0x62')):_0x317437(this['locale'],_0x19f8('0x5d'));}[_0x19f8('0x45')](){return this[_0x19f8('0x6')][_0x19f8('0x27')]?_0x19f8('0x55')===this[_0x19f8('0x6')][_0x19f8('0xd')][_0x19f8('0x1c')][_0x19f8('0x21')]?_0x317437(this['locale'],_0x19f8('0x58'),this['_model'][_0x19f8('0x51')][_0x19f8('0x64')]):_0x317437(this['locale'],_0x19f8('0x4f'),this[_0x19f8('0x6')][_0x19f8('0x51')][_0x19f8('0x64')]):null;}[_0x19f8('0x39')](){super[_0x19f8('0x39')](),this[_0x19f8('0x24')](this[_0x19f8('0x5b')],_0x19f8('0x40')),this['_attachActions'](this[_0x19f8('0x33')],_0x19f8('0x19'));}}
package/src/comments.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2c1e=['Comments','pluginName'];(function(_0x2f2848,_0x2c1e70){var _0x51b307=function(_0x3c5f9e){while(--_0x3c5f9e){_0x2f2848['push'](_0x2f2848['shift']());}};_0x51b307(++_0x2c1e70);}(_0x2c1e,0x12a));var _0x51b3=function(_0x2f2848,_0x2c1e70){_0x2f2848=_0x2f2848-0x0;var _0x51b307=_0x2c1e[_0x2f2848];return _0x51b307;};import{Plugin as _0x592557}from'ckeditor5/src/core';import _0x2c4dc8 from'./comments/commentsrepository';import _0x6b588e from'./comments/commentsediting';import _0x1eac6b from'./comments/commentsui';import _0x75dd73 from'./commentsonly';import _0x279c36 from'./annotations/widesidebar';import _0x48751d from'./annotations/narrowsidebar';import _0x6b3866 from'./annotations/inlineannotations';import _0x514ac6 from'./comments/commentsarchiveui';import _0xb6a71f from'./comments/commentsarchive';export default class f extends _0x592557{static get['requires'](){return[_0x2c4dc8,_0x6b588e,_0x1eac6b,_0xb6a71f,_0x514ac6,_0x75dd73,_0x279c36,_0x48751d,_0x6b3866];}static get[_0x51b3('0x1')](){return _0x51b3('0x0');}}
23
+ var _0x425e=['pluginName','requires'];(function(_0x401cbe,_0x425ea8){var _0x248d47=function(_0x294807){while(--_0x294807){_0x401cbe['push'](_0x401cbe['shift']());}};_0x248d47(++_0x425ea8);}(_0x425e,0x171));var _0x248d=function(_0x401cbe,_0x425ea8){_0x401cbe=_0x401cbe-0x0;var _0x248d47=_0x425e[_0x401cbe];return _0x248d47;};import{Plugin as _0x5ae094}from'ckeditor5/src/core';import _0x868d1b from'./comments/commentsrepository';import _0x14f7d9 from'./comments/commentsediting';import _0x292605 from'./comments/commentsui';import _0x139c86 from'./commentsonly';import _0x337370 from'./annotations/widesidebar';import _0x20c84b from'./annotations/narrowsidebar';import _0x380af2 from'./annotations/inlineannotations';import _0x1ba9b7 from'./comments/commentsarchiveui';import _0xa8bbee from'./comments/commentsarchive';export default class f extends _0x5ae094{static get[_0x248d('0x0')](){return[_0x868d1b,_0x14f7d9,_0x292605,_0xa8bbee,_0x1ba9b7,_0x139c86,_0x337370,_0x20c84b,_0x380af2];}static get[_0x248d('0x1')](){return'Comments';}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5aff=['isEnabled','_enableCommentsOnlyMode','afterInit','delete','listenTo','view','highest','CommentsOnly','stop','change:isEnabled','document','cut','forceDisabled','stopListening','affectsData','editing','commands','editor','clearForceDisabled','commentsOnlyMode','commentsOnly','addCommentThread','_disableCommentsOnlyMode','requires','clipboardInput','plugins','config','DragDrop'];(function(_0x201e95,_0x5aff62){const _0x3408ee=function(_0x30ee12){while(--_0x30ee12){_0x201e95['push'](_0x201e95['shift']());}};_0x3408ee(++_0x5aff62);}(_0x5aff,0xeb));const _0x3408=function(_0x201e95,_0x5aff62){_0x201e95=_0x201e95-0x0;let _0x3408ee=_0x5aff[_0x201e95];return _0x3408ee;};import{Plugin as _0x1640c0}from'ckeditor5/src/core';import _0x18638f from'./comments/commentsediting';export default class n extends _0x1640c0{static get['pluginName'](){return _0x3408('0x18');}static get[_0x3408('0xc')](){return[_0x18638f];}constructor(_0x3e8244){super(_0x3e8244),this['set'](_0x3408('0x11'),!0x1),this['on'](_0x3408('0x1a'),(_0x479434,_0x17eb87,_0x4b2321)=>{_0x4b2321?this[_0x3408('0x12')]():this[_0x3408('0xb')]();});}[_0x3408('0x13')](){!this[_0x3408('0x11')]&&this['editor'][_0x3408('0xf')]['get'](_0x3408('0x9'))&&(this[_0x3408('0x11')]=!0x0);}[_0x3408('0x12')](){for(const [_0x4d701c,_0x197cc1]of this['editor'][_0x3408('0x5')])_0x197cc1[_0x3408('0x3')]&&'addCommentThread'!==_0x4d701c&&_0x197cc1[_0x3408('0x1')](_0x3408('0x8'));this[_0x3408('0x6')][_0x3408('0xe')]['has']('DragDrop')&&this['editor'][_0x3408('0xe')]['get'](_0x3408('0x10'))[_0x3408('0x1')](_0x3408('0x8'));const _0x5be38a=this[_0x3408('0x6')][_0x3408('0x4')][_0x3408('0x16')][_0x3408('0x1b')];this[_0x3408('0x15')](_0x5be38a,_0x3408('0x0'),_0x3fb614=>_0x3fb614[_0x3408('0x19')](),{'priority':'highest'}),this[_0x3408('0x15')](_0x5be38a,_0x3408('0xd'),_0x2b86f8=>_0x2b86f8[_0x3408('0x19')](),{'priority':'highest'}),this[_0x3408('0x15')](_0x5be38a,_0x3408('0x14'),_0x53ab17=>_0x53ab17[_0x3408('0x19')](),{'priority':_0x3408('0x17')});}[_0x3408('0xb')](){for(const [_0x3676d4,_0x4b1b64]of this[_0x3408('0x6')][_0x3408('0x5')])_0x4b1b64[_0x3408('0x3')]&&_0x3408('0xa')!==_0x3676d4&&_0x4b1b64[_0x3408('0x7')](_0x3408('0x8'));this[_0x3408('0x2')](this[_0x3408('0x6')]['editing'][_0x3408('0x16')][_0x3408('0x1b')]);}}
23
+ const _0x5eae=['document','addCommentThread','plugins','requires','afterInit','clearForceDisabled','affectsData','CommentsOnly','clipboardInput','forceDisabled','highest','stopListening','DragDrop','commentsOnlyMode','_disableCommentsOnlyMode','editor','get','_enableCommentsOnlyMode','commentsOnly','view','listenTo','cut','isEnabled','stop','set','editing','delete'];(function(_0x4a4568,_0x5eaea7){const _0x44f260=function(_0x1a2d23){while(--_0x1a2d23){_0x4a4568['push'](_0x4a4568['shift']());}};_0x44f260(++_0x5eaea7);}(_0x5eae,0x19c));const _0x44f2=function(_0x4a4568,_0x5eaea7){_0x4a4568=_0x4a4568-0x0;let _0x44f260=_0x5eae[_0x4a4568];return _0x44f260;};import{Plugin as _0x557494}from'ckeditor5/src/core';import _0x5c170c from'./comments/commentsediting';export default class n extends _0x557494{static get['pluginName'](){return _0x44f2('0x0');}static get[_0x44f2('0x17')](){return[_0x5c170c];}constructor(_0x3ec8c0){super(_0x3ec8c0),this[_0x44f2('0x11')](_0x44f2('0xf'),!0x1),this['on']('change:isEnabled',(_0x185cc7,_0x4f3a46,_0x163eaf)=>{_0x163eaf?this[_0x44f2('0xa')]():this['_disableCommentsOnlyMode']();});}[_0x44f2('0x18')](){!this['isEnabled']&&this[_0x44f2('0x8')]['config'][_0x44f2('0x9')](_0x44f2('0xb'))&&(this[_0x44f2('0xf')]=!0x0);}[_0x44f2('0xa')](){for(const [_0x15b72b,_0x19527e]of this[_0x44f2('0x8')]['commands'])_0x19527e[_0x44f2('0x1a')]&&_0x44f2('0x15')!==_0x15b72b&&_0x19527e[_0x44f2('0x2')]('commentsOnlyMode');this[_0x44f2('0x8')]['plugins']['has'](_0x44f2('0x5'))&&this[_0x44f2('0x8')][_0x44f2('0x16')]['get'](_0x44f2('0x5'))[_0x44f2('0x2')](_0x44f2('0x6'));const _0x474c16=this[_0x44f2('0x8')][_0x44f2('0x12')][_0x44f2('0xc')][_0x44f2('0x14')];this[_0x44f2('0xd')](_0x474c16,_0x44f2('0xe'),_0x3cc85c=>_0x3cc85c[_0x44f2('0x10')](),{'priority':_0x44f2('0x3')}),this['listenTo'](_0x474c16,_0x44f2('0x1'),_0xfacb9a=>_0xfacb9a[_0x44f2('0x10')](),{'priority':_0x44f2('0x3')}),this[_0x44f2('0xd')](_0x474c16,_0x44f2('0x13'),_0x570200=>_0x570200[_0x44f2('0x10')](),{'priority':_0x44f2('0x3')});}[_0x44f2('0x7')](){for(const [_0x22fd31,_0x363153]of this['editor']['commands'])_0x363153['affectsData']&&_0x44f2('0x15')!==_0x22fd31&&_0x363153[_0x44f2('0x19')](_0x44f2('0x6'));this[_0x44f2('0x4')](this['editor'][_0x44f2('0x12')][_0x44f2('0xc')][_0x44f2('0x14')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x5d2e39,_0x3eab12,_0x284ccb){const t=_0x5d2e39['t'];switch(_0x3eab12){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'},_0x284ccb);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'},_0x284ccb);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'},_0x284ccb);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'},_0x284ccb);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(_0x4b81e3,_0x311826,_0x51758f){const t=_0x4b81e3['t'];switch(_0x311826){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'},_0x51758f);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'},_0x51758f);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'},_0x51758f);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'},_0x51758f);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 _0x1371=['disconnect','observe','characterData','type','attributes','cancel','childList','class'];(function(_0x2b0416,_0x137163){const _0x2a2265=function(_0x41449d){while(--_0x41449d){_0x2b0416['push'](_0x2b0416['shift']());}};_0x2a2265(++_0x137163);}(_0x1371,0x118));const _0x2a22=function(_0x2b0416,_0x137163){_0x2b0416=_0x2b0416-0x0;let _0x2a2265=_0x1371[_0x2b0416];return _0x2a2265;};import{throttle as _0x1b8c51}from'lodash-es';export default function Dt(_0x4ad6b9){const _0x45aa5f=_0x1b8c51(_0x4ad6b9,0x1e),_0x13c793=new MutationObserver(_0x2ea7bc=>{for(const _0x32be03 of _0x2ea7bc)(_0x2a22('0x4')==_0x32be03[_0x2a22('0x3')]&&_0x2a22('0x7')==_0x32be03['attributeName']||_0x2a22('0x6')==_0x32be03[_0x2a22('0x3')]||_0x2a22('0x2')==_0x32be03[_0x2a22('0x3')])&&_0x45aa5f();});return{'attach'(_0x94c885){_0x13c793[_0x2a22('0x1')](_0x94c885,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x13c793[_0x2a22('0x0')](),_0x45aa5f[_0x2a22('0x5')]();}};}
23
+ const _0x2546=['observe','cancel','type','attributeName','characterData','childList'];(function(_0x9f10c,_0x254637){const _0x3cb636=function(_0xf744ad){while(--_0xf744ad){_0x9f10c['push'](_0x9f10c['shift']());}};_0x3cb636(++_0x254637);}(_0x2546,0x66));const _0x3cb6=function(_0x9f10c,_0x254637){_0x9f10c=_0x9f10c-0x0;let _0x3cb636=_0x2546[_0x9f10c];return _0x3cb636;};import{throttle as _0x5731ed}from'lodash-es';export default function Dt(_0x5a4509){const _0x274704=_0x5731ed(_0x5a4509,0x1e),_0x5c3d0b=new MutationObserver(_0x19bb51=>{for(const _0x556cf4 of _0x19bb51)('attributes'==_0x556cf4['type']&&'class'==_0x556cf4[_0x3cb6('0x3')]||_0x3cb6('0x5')==_0x556cf4[_0x3cb6('0x2')]||_0x3cb6('0x4')==_0x556cf4[_0x3cb6('0x2')])&&_0x274704();});return{'attach'(_0x56a23b){_0x5c3d0b[_0x3cb6('0x0')](_0x56a23b,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x5c3d0b['disconnect'](),_0x274704[_0x3cb6('0x1')]();}};}