@ckeditor/ckeditor5-comments 0.0.0-nightly-20230810.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 _0x1b47=['remove','getUserViewNotificationText','length','locale','isExternal','ck-comment--','isEnabled','pencil','importWord','_createEditButton','change:isEnabled','switchToEditMode','showConfirm','ck-comment__main','ck-comment--remove','attributes','push','cancelConfirm','_createRemoveButton','label','removeButton','ck-comment--edit','blur','creator','div','buttonView','span','isReadOnly','editButton','actionBar','ck-comment__wrapper','isRemovable','ck-annotation__actions','ck-annotation__actions--hidden','getExternalCommentNote','dropdown','setTemplate','EXTERNAL_IMPORT_WORD_COMMENT','render','ck-comment','_model','EXTERNAL_COMMENT','_config','actionIndicator','mouseenter','change:isVisible','children','ck-comment--remove-confirmation','isConfirm','_attachActions','_createCommentInputView','ck-annotation__user','placeholder','some','threeVerticalDots','isEditMode','name','set','ck-annotation','bindTemplate','authoredAt','author','ck-comment__info','Show\x20more\x20items','fire','listenTo','_createDropdown','getTemplate','addMany','source','isEditable','items','Edit','time','ck-annotation__main','ck-annotation__info','bind','ck-comment__info-name','ck-comment--info','add','createCollection','ck-annotation__content-wrapper','edit','isVisible','userView','ck-comment__external','icon','extendTemplate','formatDateTime','panelView','execute','@external','EXTERNAL_AVATAR','withText','mouseleave'];(function(_0x58e62f,_0x1b478b){const _0x2fd4ea=function(_0x15b8d8){while(--_0x15b8d8){_0x58e62f['push'](_0x58e62f['shift']());}};_0x2fd4ea(++_0x1b478b);}(_0x1b47,0x1d9));const _0x2fd4=function(_0x58e62f,_0x1b478b){_0x58e62f=_0x58e62f-0x0;let _0x2fd4ea=_0x1b47[_0x58e62f];return _0x2fd4ea;};import{ButtonView as _0x590c0c,createDropdown as _0x3976d2,ListView as _0x10cafb,ListItemView as _0x209afe}from'ckeditor5/src/ui';import{icons as _0x317c84}from'ckeditor5/src/core';import{UserView as _0x4b6d59,ConfirmMixin as _0x7d10d9}from'ckeditor5-collaboration/src/collaboration-core';import _0x1f3dbc from'./basecommentview';import _0x4b8a14 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x3f91db}from'../../../utils/common-translations';export default class ut extends _0x7d10d9(_0x1f3dbc){constructor(_0x189ccf,_0x401ef5,_0x457341){super(_0x189ccf,_0x401ef5,_0x457341),this[_0x2fd4('0x3b')](_0x2fd4('0x2d'),null),this['set'](_0x2fd4('0x36'),_0x3f91db(_0x189ccf,'Reply...')),this[_0x2fd4('0x4e')](_0x2fd4('0x3e'))['to'](_0x401ef5),this[_0x2fd4('0x4e')]('resolvedAt')['to'](_0x401ef5),this['actionBar']=this['createCollection'](),this['isSystemComment']||(this[_0x2fd4('0x1e')]=this[_0x2fd4('0xb')](),this['removeButton']=this['_createRemoveButton'](),this['items']=this[_0x2fd4('0x52')](),this['items'][_0x2fd4('0x46')]([this[_0x2fd4('0x1e')],this[_0x2fd4('0x16')]]),this['dropdown']=this[_0x2fd4('0x44')](),this[_0x2fd4('0x1f')][_0x2fd4('0x51')](this[_0x2fd4('0x25')])),this[_0x2fd4('0x56')]=new _0x4b6d59(_0x189ccf,_0x401ef5[_0x2fd4('0x3f')],this[_0x2fd4('0x3')]()),this[_0x2fd4('0x56')][_0x2fd4('0x59')]({'attributes':{'class':['ck-comment__user',_0x2fd4('0x35')]}}),this['listenTo'](_0x401ef5,'change:isRemovable',()=>this[_0x2fd4('0x13')]()),this[_0x2fd4('0x26')](this[_0x2fd4('0x45')]());}[_0x2fd4('0x45')](){const _0x49f675=this[_0x2fd4('0x3d')],_0x5a17c3=[{'tag':'div','attributes':{'class':[_0x2fd4('0x40'),_0x2fd4('0x4d')]},'children':[{'tag':_0x2fd4('0x1c'),'children':[{'text':this['userView'][_0x2fd4('0x3a')]}],'attributes':{'class':[_0x2fd4('0x4f'),'ck-annotation__info-name']}},{'tag':_0x2fd4('0x4b'),'attributes':{'datetime':_0x49f675['to'](_0x2fd4('0x3e')),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x49f675['to'](_0x2fd4('0x3e'),_0x24b582=>this[_0x2fd4('0x2c')][_0x2fd4('0x5a')](_0x24b582))}]}]},{'tag':_0x2fd4('0x1a'),'attributes':{'class':['ck-comment__actions',_0x2fd4('0x22'),_0x49f675['if']('isEditMode','ck-comment__actions--hidden'),_0x49f675['if'](_0x2fd4('0x39'),_0x2fd4('0x23'))]},'children':this[_0x2fd4('0x1f')]},{'tag':_0x2fd4('0x1a'),'attributes':{'class':[_0x2fd4('0x53')]},'children':this['visibleView']}];return this[_0x2fd4('0x2a')][_0x2fd4('0x6')]&&_0x5a17c3[_0x2fd4('0x12')]({'tag':_0x2fd4('0x1a'),'attributes':{'class':[_0x2fd4('0x57')]},'children':[{'text':this[_0x2fd4('0x24')]()}]}),{'tag':'li','attributes':{'class':[_0x2fd4('0x20'),_0x49f675['if'](_0x2fd4('0x32'),_0x2fd4('0x31'))],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':[_0x2fd4('0x29'),_0x2fd4('0x3c'),_0x49f675['if'](_0x2fd4('0x39'),_0x2fd4('0x17')),_0x49f675['if']('isSystemComment',_0x2fd4('0x50')),_0x49f675['to'](_0x2fd4('0x2d'),_0x10ea23=>_0x10ea23?_0x2fd4('0x7')+_0x10ea23:'')],'data-author-id':this[_0x2fd4('0x2a')]['author']['id'],'data-comment-id':this[_0x2fd4('0x2a')]['id']},'children':[this[_0x2fd4('0x56')],{'tag':'div','attributes':{'class':[_0x2fd4('0xf'),_0x2fd4('0x4c')]},'children':_0x5a17c3}]}]};}[_0x2fd4('0xb')](){const _0x1c595e=new _0x590c0c(this[_0x2fd4('0x5')]);return _0x1c595e[_0x2fd4('0x15')]=_0x3f91db(this[_0x2fd4('0x5')],_0x2fd4('0x4a')),_0x1c595e[_0x2fd4('0x58')]=_0x317c84[_0x2fd4('0x9')],_0x1c595e[_0x2fd4('0x0')]=!0x0,_0x1c595e[_0x2fd4('0x59')]({'attributes':{'class':_0x2fd4('0x17')}}),_0x1c595e[_0x2fd4('0x4e')](_0x2fd4('0x8'))['to'](this[_0x2fd4('0x2a')],_0x2fd4('0x1d'),_0xd3592f=>!_0xd3592f),_0x1c595e[_0x2fd4('0x4e')]('isVisible')['to'](this[_0x2fd4('0x2a')],_0x2fd4('0x48')),_0x1c595e['on'](_0x2fd4('0x5c'),()=>this[_0x2fd4('0xd')]()),_0x1c595e;}[_0x2fd4('0x14')](){const _0x3b395d=new _0x590c0c(this[_0x2fd4('0x5')]);return _0x3b395d['label']=_0x3f91db(this[_0x2fd4('0x5')],'Remove'),_0x3b395d['icon']=_0x4b8a14,_0x3b395d['withText']=!0x0,_0x3b395d['extendTemplate']({'attributes':{'class':_0x2fd4('0x10')}}),_0x3b395d['bind'](_0x2fd4('0x8'))['to'](this[_0x2fd4('0x2a')],'isReadOnly',_0x2d1775=>!_0x2d1775),_0x3b395d[_0x2fd4('0x4e')](_0x2fd4('0x55'))['to'](this['_model'],_0x2fd4('0x21')),_0x3b395d['on'](_0x2fd4('0x5c'),()=>{this[_0x2fd4('0xe')](_0x3f91db(this[_0x2fd4('0x5')],'Delete\x20comment?'),this['element'])['then'](()=>{this[_0x2fd4('0x42')]('removeComment',this[_0x2fd4('0x2a')]['id']);});}),_0x3b395d;}[_0x2fd4('0x44')](){const _0x7e66bc=_0x3976d2(this[_0x2fd4('0x5')]),_0x1f1edb=_0x7e66bc[_0x2fd4('0x5b')][_0x2fd4('0x30')],_0x49cd5a=new _0x10cafb(this[_0x2fd4('0x5')]),_0x2306ca=(_0x5d63f1,_0x233830=-0x1)=>{const _0xfd62eb=new _0x209afe(this['locale']);_0xfd62eb[_0x2fd4('0x30')][_0x2fd4('0x51')](_0x5d63f1);const _0xfc3780=_0x233830>-0x1?_0x233830:_0x49cd5a[_0x2fd4('0x49')][_0x2fd4('0x4')];_0x49cd5a['items'][_0x2fd4('0x51')](_0xfd62eb,_0xfc3780),_0x7e66bc[_0x2fd4('0x43')](_0x5d63f1,_0x2fd4('0xc'),()=>{_0x7e66bc[_0x2fd4('0x8')]=[...this[_0x2fd4('0x49')]][_0x2fd4('0x37')](_0x34f0f5=>_0x34f0f5[_0x2fd4('0x8')]);}),_0x7e66bc[_0x2fd4('0x43')](_0x5d63f1,_0x2fd4('0x2f'),()=>{_0x7e66bc['buttonView']['isVisible']=[...this[_0x2fd4('0x49')]][_0x2fd4('0x37')](_0x53d16e=>_0x53d16e[_0x2fd4('0x55')]);});};_0x7e66bc['panelPosition']='sw',_0x7e66bc['buttonView'][_0x2fd4('0x3b')]({'label':_0x3f91db(this[_0x2fd4('0x5')],_0x2fd4('0x41')),'icon':_0x317c84[_0x2fd4('0x38')]}),_0x7e66bc[_0x2fd4('0x8')]=[...this[_0x2fd4('0x49')]]['some'](_0x4af150=>_0x4af150[_0x2fd4('0x8')]),_0x7e66bc[_0x2fd4('0x1b')][_0x2fd4('0x55')]=[...this[_0x2fd4('0x49')]][_0x2fd4('0x37')](_0xfd017a=>_0xfd017a[_0x2fd4('0x55')]);for(const _0x46aaf6 of this[_0x2fd4('0x49')])_0x2306ca(_0x46aaf6);return _0x1f1edb[_0x2fd4('0x51')](_0x49cd5a),_0x7e66bc[_0x2fd4('0x43')](this[_0x2fd4('0x49')],_0x2fd4('0x51'),(_0x2048cf,_0x433a5e,_0x4cd146)=>{_0x2306ca(_0x433a5e,_0x4cd146);}),_0x7e66bc[_0x2fd4('0x43')](this[_0x2fd4('0x49')],'remove',(_0x5b753e,_0x1d97dc,_0x5a64a0)=>{_0x49cd5a['items']['remove'](_0x5a64a0);}),_0x7e66bc;}[_0x2fd4('0x33')](_0x449b29,_0x26aac5){const _0x500140=_0x449b29&&_0x449b29['element'];_0x500140&&(this[_0x2fd4('0x43')](_0x500140,_0x2fd4('0x2e'),()=>this[_0x2fd4('0x2d')]=_0x26aac5),this[_0x2fd4('0x43')](_0x500140,'focus',()=>this[_0x2fd4('0x2d')]=_0x26aac5),this[_0x2fd4('0x43')](_0x500140,_0x2fd4('0x1'),()=>this[_0x2fd4('0x2d')]=null),this[_0x2fd4('0x43')](_0x500140,_0x2fd4('0x18'),()=>this['actionIndicator']=null));}[_0x2fd4('0x34')](){const _0x4747b2=super['_createCommentInputView']();return _0x4747b2['bind']('placeholder')['to'](this),_0x4747b2;}[_0x2fd4('0x24')](){return _0x2fd4('0xa')===this[_0x2fd4('0x2a')]['attributes'][_0x2fd4('0x5d')][_0x2fd4('0x47')]?_0x3f91db(this[_0x2fd4('0x5')],_0x2fd4('0x27')):_0x3f91db(this['locale'],_0x2fd4('0x2b'));}[_0x2fd4('0x3')](){return this[_0x2fd4('0x2a')][_0x2fd4('0x6')]?_0x2fd4('0xa')===this['_model'][_0x2fd4('0x11')]['@external'][_0x2fd4('0x47')]?_0x3f91db(this[_0x2fd4('0x5')],'EXTERNAL_IMPORT_WORD_AVATAR',this[_0x2fd4('0x2a')][_0x2fd4('0x19')]['name']):_0x3f91db(this[_0x2fd4('0x5')],_0x2fd4('0x5e'),this['_model']['creator'][_0x2fd4('0x3a')]):null;}[_0x2fd4('0x28')](){super[_0x2fd4('0x28')](),this[_0x2fd4('0x33')](this[_0x2fd4('0x1e')],_0x2fd4('0x54')),this[_0x2fd4('0x33')](this[_0x2fd4('0x16')],_0x2fd4('0x2'));}}
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 _0x5164=['Comments','pluginName','requires'];(function(_0x51762e,_0x5164ae){var _0x4040be=function(_0x395e20){while(--_0x395e20){_0x51762e['push'](_0x51762e['shift']());}};_0x4040be(++_0x5164ae);}(_0x5164,0x79));var _0x4040=function(_0x51762e,_0x5164ae){_0x51762e=_0x51762e-0x0;var _0x4040be=_0x5164[_0x51762e];return _0x4040be;};import{Plugin as _0x2239a6}from'ckeditor5/src/core';import _0x390eb8 from'./comments/commentsrepository';import _0x43c9a5 from'./comments/commentsediting';import _0x4a3b96 from'./comments/commentsui';import _0x5c5238 from'./commentsonly';import _0x27561e from'./annotations/widesidebar';import _0x3379c4 from'./annotations/narrowsidebar';import _0x498227 from'./annotations/inlineannotations';import _0x520e0f from'./comments/commentsarchiveui';import _0x2164a5 from'./comments/commentsarchive';export default class f extends _0x2239a6{static get[_0x4040('0x1')](){return[_0x390eb8,_0x43c9a5,_0x4a3b96,_0x2164a5,_0x520e0f,_0x5c5238,_0x27561e,_0x3379c4,_0x498227];}static get[_0x4040('0x0')](){return _0x4040('0x2');}}
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 _0x2027=['forceDisabled','change:isEnabled','listenTo','document','pluginName','requires','addCommentThread','afterInit','plugins','clearForceDisabled','DragDrop','highest','editor','commands','commentsOnly','has','commentsOnlyMode','isEnabled','affectsData','stopListening','_enableCommentsOnlyMode','get','view','delete','set','stop'];(function(_0x1338bd,_0x202726){const _0x197e84=function(_0x4590ef){while(--_0x4590ef){_0x1338bd['push'](_0x1338bd['shift']());}};_0x197e84(++_0x202726);}(_0x2027,0xb4));const _0x197e=function(_0x1338bd,_0x202726){_0x1338bd=_0x1338bd-0x0;let _0x197e84=_0x2027[_0x1338bd];return _0x197e84;};import{Plugin as _0x4b8d95}from'ckeditor5/src/core';import _0x3a4615 from'./comments/commentsediting';export default class n extends _0x4b8d95{static get[_0x197e('0x6')](){return'CommentsOnly';}static get[_0x197e('0x7')](){return[_0x3a4615];}constructor(_0x54af87){super(_0x54af87),this[_0x197e('0x0')](_0x197e('0x13'),!0x1),this['on'](_0x197e('0x3'),(_0x24e35b,_0x545e6a,_0x139589)=>{_0x139589?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}[_0x197e('0x9')](){!this[_0x197e('0x13')]&&this[_0x197e('0xe')]['config'][_0x197e('0x17')](_0x197e('0x10'))&&(this['isEnabled']=!0x0);}[_0x197e('0x16')](){for(const [_0x38dce7,_0x9288b6]of this[_0x197e('0xe')][_0x197e('0xf')])_0x9288b6[_0x197e('0x14')]&&_0x197e('0x8')!==_0x38dce7&&_0x9288b6[_0x197e('0x2')](_0x197e('0x12'));this[_0x197e('0xe')][_0x197e('0xa')][_0x197e('0x11')](_0x197e('0xc'))&&this[_0x197e('0xe')][_0x197e('0xa')]['get']('DragDrop')[_0x197e('0x2')](_0x197e('0x12'));const _0x19fb34=this[_0x197e('0xe')]['editing'][_0x197e('0x18')][_0x197e('0x5')];this[_0x197e('0x4')](_0x19fb34,'cut',_0x5f2f10=>_0x5f2f10[_0x197e('0x1')](),{'priority':_0x197e('0xd')}),this['listenTo'](_0x19fb34,'clipboardInput',_0x38de49=>_0x38de49['stop'](),{'priority':_0x197e('0xd')}),this['listenTo'](_0x19fb34,_0x197e('0x19'),_0x4f5cbd=>_0x4f5cbd['stop'](),{'priority':_0x197e('0xd')});}['_disableCommentsOnlyMode'](){for(const [_0x17d7b6,_0x528c44]of this[_0x197e('0xe')]['commands'])_0x528c44[_0x197e('0x14')]&&'addCommentThread'!==_0x17d7b6&&_0x528c44[_0x197e('0xb')](_0x197e('0x12'));this[_0x197e('0x15')](this[_0x197e('0xe')]['editing'][_0x197e('0x18')][_0x197e('0x5')]);}}
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(_0x5ea912,_0x172295,_0x40225d){const t=_0x5ea912['t'];switch(_0x172295){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'},_0x40225d);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'},_0x40225d);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'},_0x40225d);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'},_0x40225d);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 _0x2dca=['attributes','type','disconnect','attributeName'];(function(_0x28690e,_0x2dca37){const _0x17eb82=function(_0x214c7e){while(--_0x214c7e){_0x28690e['push'](_0x28690e['shift']());}};_0x17eb82(++_0x2dca37);}(_0x2dca,0x6e));const _0x17eb=function(_0x28690e,_0x2dca37){_0x28690e=_0x28690e-0x0;let _0x17eb82=_0x2dca[_0x28690e];return _0x17eb82;};import{throttle as _0xab850d}from'lodash-es';export default function Dt(_0x38aaff){const _0x5a816f=_0xab850d(_0x38aaff,0x1e),_0x15c3ea=new MutationObserver(_0x3cf263=>{for(const _0x41f97c of _0x3cf263)(_0x17eb('0x2')==_0x41f97c['type']&&'class'==_0x41f97c[_0x17eb('0x1')]||'childList'==_0x41f97c[_0x17eb('0x3')]||'characterData'==_0x41f97c['type'])&&_0x5a816f();});return{'attach'(_0x51dd53){_0x15c3ea['observe'](_0x51dd53,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x15c3ea[_0x17eb('0x0')](),_0x5a816f['cancel']();}};}
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')]();}};}