@ckeditor/ckeditor5-comments 0.0.0-nightly-20231103.0 → 0.0.0-nightly-20231105.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 (43) hide show
  1. package/LICENSE.md +3 -3
  2. package/build/comments.js +1 -1
  3. package/package.json +3 -3
  4. package/src/annotations/annotation.js +1 -1
  5. package/src/annotations/annotationcollection.js +1 -1
  6. package/src/annotations/annotations.js +1 -1
  7. package/src/annotations/annotationsuis.js +1 -1
  8. package/src/annotations/editorannotations.js +1 -1
  9. package/src/annotations/inlineannotations.js +1 -1
  10. package/src/annotations/narrowsidebar.js +1 -1
  11. package/src/annotations/sidebar.js +1 -1
  12. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  13. package/src/annotations/view/annotationview.js +1 -1
  14. package/src/annotations/view/sidebaritemview.js +1 -1
  15. package/src/annotations/view/sidebarview.js +1 -1
  16. package/src/annotations/widesidebar.js +1 -1
  17. package/src/comments/addcommentthreadcommand.js +1 -1
  18. package/src/comments/commentsarchive.js +1 -1
  19. package/src/comments/commentsarchiveui.js +1 -1
  20. package/src/comments/commentsediting.js +1 -1
  21. package/src/comments/commentsrepository.js +1 -1
  22. package/src/comments/commentsui.js +1 -1
  23. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  24. package/src/comments/integrations/importword.js +1 -1
  25. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  26. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  27. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  28. package/src/comments/ui/commentthreadcontroller.js +1 -1
  29. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  30. package/src/comments/ui/view/basecommentview.js +1 -1
  31. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  32. package/src/comments/ui/view/commentcontentview.js +1 -1
  33. package/src/comments/ui/view/commentinputview.js +1 -1
  34. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  35. package/src/comments/ui/view/commentslistview.js +1 -1
  36. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  37. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  38. package/src/comments/ui/view/commentthreadview.js +1 -1
  39. package/src/comments/ui/view/commentview.js +1 -1
  40. package/src/comments.js +1 -1
  41. package/src/commentsonly.js +1 -1
  42. package/src/utils/common-translations.js +1 -1
  43. package/src/utils/createmutationobserver.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x297f=['attributes','div','@external','isExternal','_createEditButton','source','focus','ck-comment__info-name','removeButton','ck-comment--info','ck-comment--edit','ck-comment--remove','_createCommentInputView','children','EXTERNAL_IMPORT_WORD_COMMENT','length','EXTERNAL_IMPORT_WORD_AVATAR','_model','_config','listenTo','time','fire','EXTERNAL_COMMENT','mouseenter','isConfirm','removeComment','visibleView','ck-comment__info-time','ck-annotation__info-name','Edit','createCollection','EXTERNAL_AVATAR','ck-annotation__main','execute','getUserViewNotificationText','set','isSystemComment','then','creator','Show\x20more\x20items','name','pencil','isEnabled','Delete\x20comment?','addMany','setTemplate','change:isEnabled','actionIndicator','Remove','_createRemoveButton','isEditMode','buttonView','userView','locale','render','authoredAt','element','importWord','resolvedAt','editButton','threeVerticalDots','ck-annotation__user','_attachActions','getTemplate','dropdown','ck-comment__info','ck-comment','isReadOnly','ck-comment__user','author','ck-comment__wrapper','extendTemplate','actionBar','add','isRemovable','ck-comment--remove-confirmation','edit','formatDateTime','bind','items','ck-comment__actions--hidden','ck-comment__main','placeholder','ck-comment--','bindTemplate','ck-annotation__info','remove','blur','withText','some','push','isVisible','ck-comment__actions','panelView','isEditable','showConfirm','ck-comment__external','getExternalCommentNote','_createDropdown'];(function(_0x25b212,_0x297ff8){const _0x72e409=function(_0x347918){while(--_0x347918){_0x25b212['push'](_0x25b212['shift']());}};_0x72e409(++_0x297ff8);}(_0x297f,0x102));const _0x72e4=function(_0x25b212,_0x297ff8){_0x25b212=_0x25b212-0x0;let _0x72e409=_0x297f[_0x25b212];return _0x72e409;};import{ButtonView as _0x4f66c3,createDropdown as _0x2c9426,ListView as _0x4c7dd4,ListItemView as _0x2e4606}from'ckeditor5/src/ui';import{icons as _0x5badcd}from'ckeditor5/src/core';import{UserView as _0x1cad52,ConfirmMixin as _0x56452d}from'ckeditor5-collaboration/src/collaboration-core';import _0x50f8cc from'./basecommentview';import _0x493d47 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x23525e}from'../../../utils/common-translations';export default class ut extends _0x56452d(_0x50f8cc){constructor(_0x5b8565,_0x22525e,_0x44d081){super(_0x5b8565,_0x22525e,_0x44d081),this[_0x72e4('0x4a')](_0x72e4('0x56'),null),this[_0x72e4('0x4a')](_0x72e4('0x16'),_0x23525e(_0x5b8565,'Reply...')),this['bind'](_0x72e4('0x5e'))['to'](_0x22525e),this[_0x72e4('0x12')](_0x72e4('0x61'))['to'](_0x22525e),this['actionBar']=this[_0x72e4('0x45')](),this[_0x72e4('0x4b')]||(this[_0x72e4('0x62')]=this[_0x72e4('0x2b')](),this[_0x72e4('0x2f')]=this[_0x72e4('0x58')](),this['items']=this[_0x72e4('0x45')](),this[_0x72e4('0x13')][_0x72e4('0x53')]([this[_0x72e4('0x62')],this['removeButton']]),this[_0x72e4('0x4')]=this[_0x72e4('0x26')](),this[_0x72e4('0xc')][_0x72e4('0xd')](this[_0x72e4('0x4')])),this[_0x72e4('0x5b')]=new _0x1cad52(_0x5b8565,_0x22525e[_0x72e4('0x9')],this[_0x72e4('0x49')]()),this[_0x72e4('0x5b')][_0x72e4('0xb')]({'attributes':{'class':[_0x72e4('0x8'),_0x72e4('0x1')]}}),this[_0x72e4('0x3a')](_0x22525e,'change:isRemovable',()=>this['cancelConfirm']()),this[_0x72e4('0x54')](this[_0x72e4('0x3')]());}['getTemplate'](){const _0x391396=this[_0x72e4('0x18')],_0x272406=[{'tag':'div','attributes':{'class':[_0x72e4('0x5'),_0x72e4('0x19')]},'children':[{'tag':'span','children':[{'text':this[_0x72e4('0x5b')][_0x72e4('0x4f')]}],'attributes':{'class':[_0x72e4('0x2e'),_0x72e4('0x43')]}},{'tag':_0x72e4('0x3b'),'attributes':{'datetime':_0x391396['to'](_0x72e4('0x5e')),'class':[_0x72e4('0x42'),'ck-annotation__info-time']},'children':[{'text':_0x391396['to'](_0x72e4('0x5e'),_0x115029=>this[_0x72e4('0x39')][_0x72e4('0x11')](_0x115029))}]}]},{'tag':_0x72e4('0x28'),'attributes':{'class':[_0x72e4('0x20'),'ck-annotation__actions',_0x391396['if'](_0x72e4('0x59'),_0x72e4('0x14')),_0x391396['if']('isEditMode','ck-annotation__actions--hidden')]},'children':this[_0x72e4('0xc')]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']},'children':this[_0x72e4('0x41')]}];return this[_0x72e4('0x38')]['isExternal']&&_0x272406[_0x72e4('0x1e')]({'tag':_0x72e4('0x28'),'attributes':{'class':[_0x72e4('0x24')]},'children':[{'text':this[_0x72e4('0x25')]()}]}),{'tag':'li','attributes':{'class':[_0x72e4('0xa'),_0x391396['if'](_0x72e4('0x3f'),_0x72e4('0xf'))],'tabindex':-0x1},'children':[{'tag':_0x72e4('0x28'),'attributes':{'class':[_0x72e4('0x6'),'ck-annotation',_0x391396['if']('isEditMode',_0x72e4('0x31')),_0x391396['if'](_0x72e4('0x4b'),_0x72e4('0x30')),_0x391396['to'](_0x72e4('0x56'),_0x300c9b=>_0x300c9b?_0x72e4('0x17')+_0x300c9b:'')],'data-author-id':this[_0x72e4('0x38')]['author']['id'],'data-comment-id':this[_0x72e4('0x38')]['id']},'children':[this['userView'],{'tag':_0x72e4('0x28'),'attributes':{'class':[_0x72e4('0x15'),_0x72e4('0x47')]},'children':_0x272406}]}]};}['_createEditButton'](){const _0x1fea13=new _0x4f66c3(this[_0x72e4('0x5c')]);return _0x1fea13['label']=_0x23525e(this[_0x72e4('0x5c')],_0x72e4('0x44')),_0x1fea13['icon']=_0x5badcd[_0x72e4('0x50')],_0x1fea13[_0x72e4('0x1c')]=!0x0,_0x1fea13['extendTemplate']({'attributes':{'class':_0x72e4('0x31')}}),_0x1fea13[_0x72e4('0x12')](_0x72e4('0x51'))['to'](this[_0x72e4('0x38')],_0x72e4('0x7'),_0x56fd25=>!_0x56fd25),_0x1fea13[_0x72e4('0x12')](_0x72e4('0x1f'))['to'](this[_0x72e4('0x38')],_0x72e4('0x22')),_0x1fea13['on']('execute',()=>this['switchToEditMode']()),_0x1fea13;}[_0x72e4('0x58')](){const _0x556a45=new _0x4f66c3(this[_0x72e4('0x5c')]);return _0x556a45['label']=_0x23525e(this[_0x72e4('0x5c')],_0x72e4('0x57')),_0x556a45['icon']=_0x493d47,_0x556a45['withText']=!0x0,_0x556a45['extendTemplate']({'attributes':{'class':_0x72e4('0x32')}}),_0x556a45[_0x72e4('0x12')]('isEnabled')['to'](this['_model'],_0x72e4('0x7'),_0x547084=>!_0x547084),_0x556a45[_0x72e4('0x12')](_0x72e4('0x1f'))['to'](this['_model'],_0x72e4('0xe')),_0x556a45['on'](_0x72e4('0x48'),()=>{this[_0x72e4('0x23')](_0x23525e(this[_0x72e4('0x5c')],_0x72e4('0x52')),this['element'])[_0x72e4('0x4c')](()=>{this[_0x72e4('0x3c')](_0x72e4('0x40'),this[_0x72e4('0x38')]['id']);});}),_0x556a45;}[_0x72e4('0x26')](){const _0x5bab8c=_0x2c9426(this[_0x72e4('0x5c')]),_0xeb1424=_0x5bab8c[_0x72e4('0x21')][_0x72e4('0x34')],_0x34a1b3=new _0x4c7dd4(this['locale']),_0x1291a0=(_0xe72754,_0x4e3617=-0x1)=>{const _0x3ea75f=new _0x2e4606(this[_0x72e4('0x5c')]);_0x3ea75f['children'][_0x72e4('0xd')](_0xe72754);const _0x282cf6=_0x4e3617>-0x1?_0x4e3617:_0x34a1b3['items'][_0x72e4('0x36')];_0x34a1b3['items']['add'](_0x3ea75f,_0x282cf6),_0x5bab8c[_0x72e4('0x3a')](_0xe72754,_0x72e4('0x55'),()=>{_0x5bab8c['isEnabled']=[...this[_0x72e4('0x13')]][_0x72e4('0x1d')](_0x2a64b1=>_0x2a64b1['isEnabled']);}),_0x5bab8c[_0x72e4('0x3a')](_0xe72754,'change:isVisible',()=>{_0x5bab8c[_0x72e4('0x5a')][_0x72e4('0x1f')]=[...this[_0x72e4('0x13')]][_0x72e4('0x1d')](_0xdeb6cc=>_0xdeb6cc[_0x72e4('0x1f')]);});};_0x5bab8c['panelPosition']='sw',_0x5bab8c[_0x72e4('0x5a')][_0x72e4('0x4a')]({'label':_0x23525e(this['locale'],_0x72e4('0x4e')),'icon':_0x5badcd[_0x72e4('0x0')]}),_0x5bab8c['isEnabled']=[...this[_0x72e4('0x13')]][_0x72e4('0x1d')](_0xcb1303=>_0xcb1303[_0x72e4('0x51')]),_0x5bab8c[_0x72e4('0x5a')][_0x72e4('0x1f')]=[...this[_0x72e4('0x13')]]['some'](_0x4ecb8b=>_0x4ecb8b[_0x72e4('0x1f')]);for(const _0x167f2a of this[_0x72e4('0x13')])_0x1291a0(_0x167f2a);return _0xeb1424[_0x72e4('0xd')](_0x34a1b3),_0x5bab8c[_0x72e4('0x3a')](this['items'],_0x72e4('0xd'),(_0x3d7441,_0x4235d3,_0x544ab7)=>{_0x1291a0(_0x4235d3,_0x544ab7);}),_0x5bab8c[_0x72e4('0x3a')](this[_0x72e4('0x13')],'remove',(_0x419d78,_0x28c20c,_0x4a25f9)=>{_0x34a1b3[_0x72e4('0x13')][_0x72e4('0x1a')](_0x4a25f9);}),_0x5bab8c;}[_0x72e4('0x2')](_0x23dd86,_0x3dfd07){const _0x3bc2e9=_0x23dd86&&_0x23dd86[_0x72e4('0x5f')];_0x3bc2e9&&(this[_0x72e4('0x3a')](_0x3bc2e9,_0x72e4('0x3e'),()=>this[_0x72e4('0x56')]=_0x3dfd07),this[_0x72e4('0x3a')](_0x3bc2e9,_0x72e4('0x2d'),()=>this[_0x72e4('0x56')]=_0x3dfd07),this[_0x72e4('0x3a')](_0x3bc2e9,'mouseleave',()=>this[_0x72e4('0x56')]=null),this[_0x72e4('0x3a')](_0x3bc2e9,_0x72e4('0x1b'),()=>this[_0x72e4('0x56')]=null));}[_0x72e4('0x33')](){const _0xd25fe5=super[_0x72e4('0x33')]();return _0xd25fe5[_0x72e4('0x12')]('placeholder')['to'](this),_0xd25fe5;}[_0x72e4('0x25')](){return _0x72e4('0x60')===this[_0x72e4('0x38')][_0x72e4('0x27')]['@external'][_0x72e4('0x2c')]?_0x23525e(this[_0x72e4('0x5c')],_0x72e4('0x35')):_0x23525e(this[_0x72e4('0x5c')],_0x72e4('0x3d'));}['getUserViewNotificationText'](){return this[_0x72e4('0x38')][_0x72e4('0x2a')]?_0x72e4('0x60')===this[_0x72e4('0x38')]['attributes'][_0x72e4('0x29')][_0x72e4('0x2c')]?_0x23525e(this[_0x72e4('0x5c')],_0x72e4('0x37'),this[_0x72e4('0x38')][_0x72e4('0x4d')]['name']):_0x23525e(this[_0x72e4('0x5c')],_0x72e4('0x46'),this[_0x72e4('0x38')][_0x72e4('0x4d')][_0x72e4('0x4f')]):null;}[_0x72e4('0x5d')](){super[_0x72e4('0x5d')](),this[_0x72e4('0x2')](this['editButton'],_0x72e4('0x10')),this[_0x72e4('0x2')](this['removeButton'],_0x72e4('0x1a'));}}
23
+ const _0x5ead=['execute','locale','getTemplate','_createDropdown','change:isVisible','isReadOnly','ck-comment__user','Edit','mouseenter','blur','dropdown','icon','author','setTemplate','importWord','isSystemComment','_config','items','ck-annotation__content-wrapper','children','ck-comment--remove','remove','isEnabled','panelPosition','_model','_createCommentInputView','element','isExternal','ck-comment--info','creator','actionIndicator','source','withText','EXTERNAL_IMPORT_WORD_COMMENT','ck-comment__actions','ck-annotation','ck-comment--edit','ck-annotation__info','bind','isEditMode','ck-annotation__info-time','isConfirm','Delete\x20comment?','label','edit','formatDateTime','addMany','@external','placeholder','ck-annotation__info-name','editButton','resolvedAt','listenTo','ck-comment','threeVerticalDots','extendTemplate','add','change:isEnabled','then','EXTERNAL_COMMENT','ck-comment__actions--hidden','isRemovable','some','ck-comment--','_attachActions','createCollection','isVisible','ck-comment__external','Reply...','span','push','getExternalCommentNote','authoredAt','change:isRemovable','name','removeComment','set','ck-comment__info-name','userView','getUserViewNotificationText','actionBar','panelView','attributes','Show\x20more\x20items','render','cancelConfirm','ck-comment__info-time','Remove','_createRemoveButton','_createEditButton','removeButton','div','buttonView','switchToEditMode'];(function(_0x5c6ddd,_0x5ead62){const _0x351ae6=function(_0x5dd435){while(--_0x5dd435){_0x5c6ddd['push'](_0x5c6ddd['shift']());}};_0x351ae6(++_0x5ead62);}(_0x5ead,0x1e8));const _0x351a=function(_0x5c6ddd,_0x5ead62){_0x5c6ddd=_0x5c6ddd-0x0;let _0x351ae6=_0x5ead[_0x5c6ddd];return _0x351ae6;};import{ButtonView as _0x341eda,createDropdown as _0x3c6279,ListView as _0x18c006,ListItemView as _0x84f307}from'ckeditor5/src/ui';import{icons as _0x16dd2d}from'ckeditor5/src/core';import{UserView as _0x5c2a86,ConfirmMixin as _0x36fff6}from'ckeditor5-collaboration/src/collaboration-core';import _0x576c63 from'./basecommentview';import _0x363506 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x3e5032}from'../../../utils/common-translations';export default class ut extends _0x36fff6(_0x576c63){constructor(_0x2b5f4e,_0x26ee60,_0x5d5316){super(_0x2b5f4e,_0x26ee60,_0x5d5316),this[_0x351a('0x3a')]('actionIndicator',null),this[_0x351a('0x3a')](_0x351a('0x1e'),_0x3e5032(_0x2b5f4e,_0x351a('0x32'))),this[_0x351a('0x14')](_0x351a('0x36'))['to'](_0x26ee60),this[_0x351a('0x14')](_0x351a('0x21'))['to'](_0x26ee60),this[_0x351a('0x3e')]=this[_0x351a('0x2f')](),this[_0x351a('0x5b')]||(this[_0x351a('0x20')]=this['_createEditButton'](),this['removeButton']=this[_0x351a('0x46')](),this[_0x351a('0x5d')]=this[_0x351a('0x2f')](),this[_0x351a('0x5d')][_0x351a('0x1c')]([this[_0x351a('0x20')],this['removeButton']]),this[_0x351a('0x56')]=this[_0x351a('0x4f')](),this['actionBar'][_0x351a('0x26')](this[_0x351a('0x56')])),this[_0x351a('0x3c')]=new _0x5c2a86(_0x2b5f4e,_0x26ee60[_0x351a('0x58')],this[_0x351a('0x3d')]()),this[_0x351a('0x3c')][_0x351a('0x25')]({'attributes':{'class':[_0x351a('0x52'),'ck-annotation__user']}}),this[_0x351a('0x22')](_0x26ee60,_0x351a('0x37'),()=>this[_0x351a('0x43')]()),this[_0x351a('0x59')](this[_0x351a('0x4e')]());}[_0x351a('0x4e')](){const _0x2c4c9b=this['bindTemplate'],_0x477687=[{'tag':_0x351a('0x49'),'attributes':{'class':['ck-comment__info',_0x351a('0x13')]},'children':[{'tag':_0x351a('0x33'),'children':[{'text':this[_0x351a('0x3c')][_0x351a('0x38')]}],'attributes':{'class':[_0x351a('0x3b'),_0x351a('0x1f')]}},{'tag':'time','attributes':{'datetime':_0x2c4c9b['to'](_0x351a('0x36')),'class':[_0x351a('0x44'),_0x351a('0x16')]},'children':[{'text':_0x2c4c9b['to'](_0x351a('0x36'),_0x213aac=>this[_0x351a('0x5c')][_0x351a('0x1b')](_0x213aac))}]}]},{'tag':_0x351a('0x49'),'attributes':{'class':[_0x351a('0x10'),'ck-annotation__actions',_0x2c4c9b['if'](_0x351a('0x15'),_0x351a('0x2a')),_0x2c4c9b['if']('isEditMode','ck-annotation__actions--hidden')]},'children':this['actionBar']},{'tag':_0x351a('0x49'),'attributes':{'class':[_0x351a('0x0')]},'children':this['visibleView']}];return this[_0x351a('0x6')][_0x351a('0x9')]&&_0x477687[_0x351a('0x34')]({'tag':_0x351a('0x49'),'attributes':{'class':[_0x351a('0x31')]},'children':[{'text':this[_0x351a('0x35')]()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x2c4c9b['if'](_0x351a('0x17'),'ck-comment--remove-confirmation')],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':[_0x351a('0x23'),_0x351a('0x11'),_0x2c4c9b['if'](_0x351a('0x15'),_0x351a('0x12')),_0x2c4c9b['if'](_0x351a('0x5b'),_0x351a('0xa')),_0x2c4c9b['to'](_0x351a('0xc'),_0x3661c7=>_0x3661c7?_0x351a('0x2d')+_0x3661c7:'')],'data-author-id':this['_model'][_0x351a('0x58')]['id'],'data-comment-id':this[_0x351a('0x6')]['id']},'children':[this['userView'],{'tag':_0x351a('0x49'),'attributes':{'class':['ck-comment__main','ck-annotation__main']},'children':_0x477687}]}]};}[_0x351a('0x47')](){const _0xbd60f3=new _0x341eda(this['locale']);return _0xbd60f3['label']=_0x3e5032(this[_0x351a('0x4d')],_0x351a('0x53')),_0xbd60f3[_0x351a('0x57')]=_0x16dd2d['pencil'],_0xbd60f3['withText']=!0x0,_0xbd60f3[_0x351a('0x25')]({'attributes':{'class':_0x351a('0x12')}}),_0xbd60f3['bind'](_0x351a('0x4'))['to'](this[_0x351a('0x6')],_0x351a('0x51'),_0x2cc3c4=>!_0x2cc3c4),_0xbd60f3[_0x351a('0x14')](_0x351a('0x30'))['to'](this[_0x351a('0x6')],'isEditable'),_0xbd60f3['on'](_0x351a('0x4c'),()=>this[_0x351a('0x4b')]()),_0xbd60f3;}[_0x351a('0x46')](){const _0x212731=new _0x341eda(this[_0x351a('0x4d')]);return _0x212731[_0x351a('0x19')]=_0x3e5032(this[_0x351a('0x4d')],_0x351a('0x45')),_0x212731[_0x351a('0x57')]=_0x363506,_0x212731[_0x351a('0xe')]=!0x0,_0x212731['extendTemplate']({'attributes':{'class':_0x351a('0x2')}}),_0x212731[_0x351a('0x14')](_0x351a('0x4'))['to'](this[_0x351a('0x6')],'isReadOnly',_0x2bc5ba=>!_0x2bc5ba),_0x212731[_0x351a('0x14')](_0x351a('0x30'))['to'](this[_0x351a('0x6')],_0x351a('0x2b')),_0x212731['on'](_0x351a('0x4c'),()=>{this['showConfirm'](_0x3e5032(this[_0x351a('0x4d')],_0x351a('0x18')),this[_0x351a('0x8')])[_0x351a('0x28')](()=>{this['fire'](_0x351a('0x39'),this[_0x351a('0x6')]['id']);});}),_0x212731;}[_0x351a('0x4f')](){const _0x1e82f8=_0x3c6279(this['locale']),_0x432895=_0x1e82f8[_0x351a('0x3f')]['children'],_0x312326=new _0x18c006(this['locale']),_0x3d8cf1=(_0x4b26c3,_0xab3b84=-0x1)=>{const _0x3ffcfc=new _0x84f307(this[_0x351a('0x4d')]);_0x3ffcfc[_0x351a('0x1')][_0x351a('0x26')](_0x4b26c3);const _0x240cdf=_0xab3b84>-0x1?_0xab3b84:_0x312326[_0x351a('0x5d')]['length'];_0x312326[_0x351a('0x5d')][_0x351a('0x26')](_0x3ffcfc,_0x240cdf),_0x1e82f8[_0x351a('0x22')](_0x4b26c3,_0x351a('0x27'),()=>{_0x1e82f8[_0x351a('0x4')]=[...this[_0x351a('0x5d')]][_0x351a('0x2c')](_0x1ffc5f=>_0x1ffc5f[_0x351a('0x4')]);}),_0x1e82f8[_0x351a('0x22')](_0x4b26c3,_0x351a('0x50'),()=>{_0x1e82f8[_0x351a('0x4a')][_0x351a('0x30')]=[...this['items']][_0x351a('0x2c')](_0x4ca271=>_0x4ca271[_0x351a('0x30')]);});};_0x1e82f8[_0x351a('0x5')]='sw',_0x1e82f8['buttonView'][_0x351a('0x3a')]({'label':_0x3e5032(this['locale'],_0x351a('0x41')),'icon':_0x16dd2d[_0x351a('0x24')]}),_0x1e82f8[_0x351a('0x4')]=[...this[_0x351a('0x5d')]][_0x351a('0x2c')](_0x33573c=>_0x33573c[_0x351a('0x4')]),_0x1e82f8[_0x351a('0x4a')]['isVisible']=[...this[_0x351a('0x5d')]][_0x351a('0x2c')](_0x36b8f5=>_0x36b8f5[_0x351a('0x30')]);for(const _0x2f9c9b of this[_0x351a('0x5d')])_0x3d8cf1(_0x2f9c9b);return _0x432895['add'](_0x312326),_0x1e82f8[_0x351a('0x22')](this['items'],_0x351a('0x26'),(_0xbdefb3,_0x2e765c,_0x16a4e3)=>{_0x3d8cf1(_0x2e765c,_0x16a4e3);}),_0x1e82f8['listenTo'](this[_0x351a('0x5d')],_0x351a('0x3'),(_0x12714e,_0x22d4fa,_0x42b97f)=>{_0x312326[_0x351a('0x5d')][_0x351a('0x3')](_0x42b97f);}),_0x1e82f8;}[_0x351a('0x2e')](_0x565950,_0x413aa1){const _0x57c21f=_0x565950&&_0x565950[_0x351a('0x8')];_0x57c21f&&(this[_0x351a('0x22')](_0x57c21f,_0x351a('0x54'),()=>this[_0x351a('0xc')]=_0x413aa1),this[_0x351a('0x22')](_0x57c21f,'focus',()=>this[_0x351a('0xc')]=_0x413aa1),this[_0x351a('0x22')](_0x57c21f,'mouseleave',()=>this['actionIndicator']=null),this[_0x351a('0x22')](_0x57c21f,_0x351a('0x55'),()=>this['actionIndicator']=null));}[_0x351a('0x7')](){const _0x19cab7=super[_0x351a('0x7')]();return _0x19cab7[_0x351a('0x14')]('placeholder')['to'](this),_0x19cab7;}[_0x351a('0x35')](){return _0x351a('0x5a')===this['_model'][_0x351a('0x40')][_0x351a('0x1d')][_0x351a('0xd')]?_0x3e5032(this[_0x351a('0x4d')],_0x351a('0xf')):_0x3e5032(this[_0x351a('0x4d')],_0x351a('0x29'));}[_0x351a('0x3d')](){return this[_0x351a('0x6')]['isExternal']?'importWord'===this['_model'][_0x351a('0x40')][_0x351a('0x1d')][_0x351a('0xd')]?_0x3e5032(this[_0x351a('0x4d')],'EXTERNAL_IMPORT_WORD_AVATAR',this[_0x351a('0x6')][_0x351a('0xb')][_0x351a('0x38')]):_0x3e5032(this[_0x351a('0x4d')],'EXTERNAL_AVATAR',this[_0x351a('0x6')]['creator'][_0x351a('0x38')]):null;}[_0x351a('0x42')](){super[_0x351a('0x42')](),this[_0x351a('0x2e')](this[_0x351a('0x20')],_0x351a('0x1a')),this[_0x351a('0x2e')](this[_0x351a('0x48')],'remove');}}
package/src/comments.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x220f=['requires','Comments','pluginName'];(function(_0xd00ef7,_0x220fa6){var _0x101d30=function(_0x2b663d){while(--_0x2b663d){_0xd00ef7['push'](_0xd00ef7['shift']());}};_0x101d30(++_0x220fa6);}(_0x220f,0x9a));var _0x101d=function(_0xd00ef7,_0x220fa6){_0xd00ef7=_0xd00ef7-0x0;var _0x101d30=_0x220f[_0xd00ef7];return _0x101d30;};import{Plugin as _0x5a5b51}from'ckeditor5/src/core';import _0x31ef54 from'./comments/commentsrepository';import _0x14e2da from'./comments/commentsediting';import _0x198fd5 from'./comments/commentsui';import _0x24d280 from'./commentsonly';import _0x1edd90 from'./annotations/widesidebar';import _0x3187cb from'./annotations/narrowsidebar';import _0x11e443 from'./annotations/inlineannotations';import _0x504691 from'./comments/commentsarchiveui';import _0x8cfcea from'./comments/commentsarchive';export default class f extends _0x5a5b51{static get[_0x101d('0x2')](){return[_0x31ef54,_0x14e2da,_0x198fd5,_0x8cfcea,_0x504691,_0x24d280,_0x1edd90,_0x3187cb,_0x11e443];}static get[_0x101d('0x1')](){return _0x101d('0x0');}}
23
+ var _0x46f1=['requires','Comments','pluginName'];(function(_0x40f1e7,_0x46f1d5){var _0x270aac=function(_0x3e369f){while(--_0x3e369f){_0x40f1e7['push'](_0x40f1e7['shift']());}};_0x270aac(++_0x46f1d5);}(_0x46f1,0x175));var _0x270a=function(_0x40f1e7,_0x46f1d5){_0x40f1e7=_0x40f1e7-0x0;var _0x270aac=_0x46f1[_0x40f1e7];return _0x270aac;};import{Plugin as _0x4b942e}from'ckeditor5/src/core';import _0xd78ce6 from'./comments/commentsrepository';import _0x39d835 from'./comments/commentsediting';import _0x1a4cc3 from'./comments/commentsui';import _0x59cec6 from'./commentsonly';import _0x1e30e5 from'./annotations/widesidebar';import _0x3df04c from'./annotations/narrowsidebar';import _0x25a9f7 from'./annotations/inlineannotations';import _0x19ac7b from'./comments/commentsarchiveui';import _0x17fa34 from'./comments/commentsarchive';export default class f extends _0x4b942e{static get[_0x270a('0x2')](){return[_0xd78ce6,_0x39d835,_0x1a4cc3,_0x17fa34,_0x19ac7b,_0x59cec6,_0x1e30e5,_0x3df04c,_0x25a9f7];}static get[_0x270a('0x1')](){return _0x270a('0x0');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x33f7=['plugins','listenTo','stopListening','editor','get','isEnabled','affectsData','addCommentThread','_disableCommentsOnlyMode','requires','view','stop','afterInit','editing','set','pluginName','commentsOnlyMode','CommentsOnly','_enableCommentsOnlyMode','config','change:isEnabled','DragDrop','clearForceDisabled','document','forceDisabled','highest','clipboardInput','has','commentsOnly','delete'];(function(_0x3b70ad,_0x33f707){const _0x34d263=function(_0x5f3daf){while(--_0x5f3daf){_0x3b70ad['push'](_0x3b70ad['shift']());}};_0x34d263(++_0x33f707);}(_0x33f7,0x15d));const _0x34d2=function(_0x3b70ad,_0x33f707){_0x3b70ad=_0x3b70ad-0x0;let _0x34d263=_0x33f7[_0x3b70ad];return _0x34d263;};import{Plugin as _0x14528a}from'ckeditor5/src/core';import _0x3b2f2d from'./comments/commentsediting';export default class n extends _0x14528a{static get[_0x34d2('0x1a')](){return _0x34d2('0x1c');}static get[_0x34d2('0x14')](){return[_0x3b2f2d];}constructor(_0x48876d){super(_0x48876d),this[_0x34d2('0x19')](_0x34d2('0x10'),!0x1),this['on'](_0x34d2('0x1'),(_0x3b8ef1,_0x49e60e,_0x518523)=>{_0x518523?this[_0x34d2('0x1d')]():this['_disableCommentsOnlyMode']();});}[_0x34d2('0x17')](){!this['isEnabled']&&this[_0x34d2('0xe')][_0x34d2('0x0')]['get'](_0x34d2('0x9'))&&(this[_0x34d2('0x10')]=!0x0);}[_0x34d2('0x1d')](){for(const [_0x7bd7f0,_0x5b10b0]of this[_0x34d2('0xe')]['commands'])_0x5b10b0[_0x34d2('0x11')]&&_0x34d2('0x12')!==_0x7bd7f0&&_0x5b10b0['forceDisabled'](_0x34d2('0x1b'));this[_0x34d2('0xe')][_0x34d2('0xb')][_0x34d2('0x8')](_0x34d2('0x2'))&&this[_0x34d2('0xe')]['plugins'][_0x34d2('0xf')](_0x34d2('0x2'))[_0x34d2('0x5')](_0x34d2('0x1b'));const _0x177ca6=this[_0x34d2('0xe')]['editing'][_0x34d2('0x15')]['document'];this[_0x34d2('0xc')](_0x177ca6,'cut',_0x2cc8c3=>_0x2cc8c3[_0x34d2('0x16')](),{'priority':_0x34d2('0x6')}),this[_0x34d2('0xc')](_0x177ca6,_0x34d2('0x7'),_0x38ca00=>_0x38ca00[_0x34d2('0x16')](),{'priority':'highest'}),this['listenTo'](_0x177ca6,_0x34d2('0xa'),_0x219dad=>_0x219dad['stop'](),{'priority':_0x34d2('0x6')});}[_0x34d2('0x13')](){for(const [_0x419fde,_0x3d8516]of this[_0x34d2('0xe')]['commands'])_0x3d8516['affectsData']&&'addCommentThread'!==_0x419fde&&_0x3d8516[_0x34d2('0x3')](_0x34d2('0x1b'));this[_0x34d2('0xd')](this[_0x34d2('0xe')][_0x34d2('0x18')][_0x34d2('0x15')][_0x34d2('0x4')]);}}
23
+ const _0x199a=['afterInit','clipboardInput','editor','addCommentThread','forceDisabled','view','editing','_enableCommentsOnlyMode','clearForceDisabled','DragDrop','has','isEnabled','requires','affectsData','stop','_disableCommentsOnlyMode','set','document','config','listenTo','commentsOnlyMode','delete','plugins','stopListening','get','change:isEnabled','highest','commands','pluginName','commentsOnly'];(function(_0x453b11,_0x199a7d){const _0x1a06d9=function(_0x25a5c7){while(--_0x25a5c7){_0x453b11['push'](_0x453b11['shift']());}};_0x1a06d9(++_0x199a7d);}(_0x199a,0x187));const _0x1a06=function(_0x453b11,_0x199a7d){_0x453b11=_0x453b11-0x0;let _0x1a06d9=_0x199a[_0x453b11];return _0x1a06d9;};import{Plugin as _0x571ade}from'ckeditor5/src/core';import _0x499f65 from'./comments/commentsediting';export default class n extends _0x571ade{static get[_0x1a06('0x1b')](){return'CommentsOnly';}static get[_0x1a06('0xb')](){return[_0x499f65];}constructor(_0x548d29){super(_0x548d29),this[_0x1a06('0xf')]('isEnabled',!0x1),this['on'](_0x1a06('0x18'),(_0x506f7f,_0x98742b,_0x24a366)=>{_0x24a366?this[_0x1a06('0x6')]():this[_0x1a06('0xe')]();});}[_0x1a06('0x1d')](){!this[_0x1a06('0xa')]&&this['editor'][_0x1a06('0x11')][_0x1a06('0x17')](_0x1a06('0x1c'))&&(this['isEnabled']=!0x0);}[_0x1a06('0x6')](){for(const [_0x1f63b6,_0x34be2d]of this[_0x1a06('0x1')][_0x1a06('0x1a')])_0x34be2d[_0x1a06('0xc')]&&'addCommentThread'!==_0x1f63b6&&_0x34be2d['forceDisabled'](_0x1a06('0x13'));this[_0x1a06('0x1')][_0x1a06('0x15')][_0x1a06('0x9')](_0x1a06('0x8'))&&this['editor'][_0x1a06('0x15')][_0x1a06('0x17')]('DragDrop')[_0x1a06('0x3')](_0x1a06('0x13'));const _0x16f5ec=this[_0x1a06('0x1')][_0x1a06('0x5')][_0x1a06('0x4')][_0x1a06('0x10')];this['listenTo'](_0x16f5ec,'cut',_0x574765=>_0x574765[_0x1a06('0xd')](),{'priority':_0x1a06('0x19')}),this[_0x1a06('0x12')](_0x16f5ec,_0x1a06('0x0'),_0x3b4497=>_0x3b4497[_0x1a06('0xd')](),{'priority':_0x1a06('0x19')}),this['listenTo'](_0x16f5ec,_0x1a06('0x14'),_0x1ea50c=>_0x1ea50c['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x77971,_0x432079]of this[_0x1a06('0x1')][_0x1a06('0x1a')])_0x432079[_0x1a06('0xc')]&&_0x1a06('0x2')!==_0x77971&&_0x432079[_0x1a06('0x7')](_0x1a06('0x13'));this[_0x1a06('0x16')](this['editor'][_0x1a06('0x5')]['view'][_0x1a06('0x10')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x2ab7e6,_0x170b7b,_0x4174d2){const t=_0x2ab7e6['t'];switch(_0x170b7b){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'},_0x4174d2);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'},_0x4174d2);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'},_0x4174d2);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'},_0x4174d2);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(_0x1ab3ff,_0x70ea65,_0x4379a1){const t=_0x1ab3ff['t'];switch(_0x70ea65){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'},_0x4379a1);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'},_0x4379a1);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'},_0x4379a1);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'},_0x4379a1);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 _0x1808=['attributeName','cancel','disconnect','type','characterData','class'];(function(_0x3eaebc,_0x180802){const _0x122d4f=function(_0x544c27){while(--_0x544c27){_0x3eaebc['push'](_0x3eaebc['shift']());}};_0x122d4f(++_0x180802);}(_0x1808,0x16b));const _0x122d=function(_0x3eaebc,_0x180802){_0x3eaebc=_0x3eaebc-0x0;let _0x122d4f=_0x1808[_0x3eaebc];return _0x122d4f;};import{throttle as _0x54484b}from'lodash-es';export default function Dt(_0x535462){const _0x1578c7=_0x54484b(_0x535462,0x1e),_0x40e5b8=new MutationObserver(_0x354759=>{for(const _0x3488f1 of _0x354759)('attributes'==_0x3488f1[_0x122d('0x0')]&&_0x122d('0x2')==_0x3488f1[_0x122d('0x3')]||'childList'==_0x3488f1[_0x122d('0x0')]||_0x122d('0x1')==_0x3488f1[_0x122d('0x0')])&&_0x1578c7();});return{'attach'(_0x1bc6d0){_0x40e5b8['observe'](_0x1bc6d0,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x40e5b8[_0x122d('0x5')](),_0x1578c7[_0x122d('0x4')]();}};}
23
+ const _0x2476=['attributes','cancel','characterData','childList','type','class'];(function(_0x1a63d5,_0x247684){const _0x27ad97=function(_0xdaa3f7){while(--_0xdaa3f7){_0x1a63d5['push'](_0x1a63d5['shift']());}};_0x27ad97(++_0x247684);}(_0x2476,0xd2));const _0x27ad=function(_0x1a63d5,_0x247684){_0x1a63d5=_0x1a63d5-0x0;let _0x27ad97=_0x2476[_0x1a63d5];return _0x27ad97;};import{throttle as _0x2f4f72}from'lodash-es';export default function Dt(_0x41d3d7){const _0x2f1c=_0x2f4f72(_0x41d3d7,0x1e),_0x9e03cc=new MutationObserver(_0x450ba8=>{for(const _0x2e3ae3 of _0x450ba8)(_0x27ad('0x0')==_0x2e3ae3[_0x27ad('0x4')]&&_0x27ad('0x5')==_0x2e3ae3['attributeName']||_0x27ad('0x3')==_0x2e3ae3[_0x27ad('0x4')]||_0x27ad('0x2')==_0x2e3ae3[_0x27ad('0x4')])&&_0x2f1c();});return{'attach'(_0x662b4c){_0x9e03cc['observe'](_0x662b4c,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x9e03cc['disconnect'](),_0x2f1c[_0x27ad('0x1')]();}};}