@ckeditor/ckeditor5-comments 0.0.0-nightly-20240130.0 → 0.0.0-nightly-20240131.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 _0x45b1=['EXTERNAL_AVATAR','time','authoredAt','then','items','listenTo','edit','_attachActions','ck-comment__wrapper','getExternalCommentNote','editButton','ck-annotation__actions','ck-comment__info','ck-annotation__content-wrapper','switchToEditMode','ck-comment__info-name','fire','panelView','name','isSystemComment','extendTemplate','author','@external','EXTERNAL_IMPORT_WORD_AVATAR','blur','ck-annotation__info-time','createCollection','threeVerticalDots','add','placeholder','source','ck-comment--edit','label','addMany','actionIndicator','change:isEnabled','showConfirm','ck-comment--remove-confirmation','_createEditButton','focus','Show\x20more\x20items','ck-comment__main','formatDateTime','ck-annotation__main','mouseenter','execute','isExternal','children','render','withText','bind','attributes','isEnabled','removeComment','importWord','isRemovable','creator','pencil','isEditMode','ck-annotation','icon','ck-comment__actions','isEditable','push','isVisible','_createDropdown','locale','ck-annotation__actions--hidden','getUserViewNotificationText','isReadOnly','set','setTemplate','dropdown','bindTemplate','element','Reply...','ck-comment','mouseleave','removeButton','ck-comment--remove','panelPosition','_createRemoveButton','_createCommentInputView','resolvedAt','div','ck-comment--','length','ck-comment__external','Edit','ck-annotation__info-name','visibleView','change:isRemovable','ck-comment--info','remove','cancelConfirm','userView','ck-annotation__user','_model','ck-comment__info-time','some','actionBar','buttonView','EXTERNAL_IMPORT_WORD_COMMENT','getTemplate'];(function(_0x58e8fc,_0x45b1c1){const _0x4e44da=function(_0x15d340){while(--_0x15d340){_0x58e8fc['push'](_0x58e8fc['shift']());}};_0x4e44da(++_0x45b1c1);}(_0x45b1,0x1d9));const _0x4e44=function(_0x58e8fc,_0x45b1c1){_0x58e8fc=_0x58e8fc-0x0;let _0x4e44da=_0x45b1[_0x58e8fc];return _0x4e44da;};import{ButtonView as _0x2ee5d0,createDropdown as _0x49851d,ListView as _0x38c68f,ListItemView as _0x2b38ec}from'ckeditor5/src/ui.js';import{icons as _0x3da1fd}from'ckeditor5/src/core.js';import{UserView as _0x5de31b,ConfirmMixin as _0x2251c0}from'ckeditor5-collaboration/src/collaboration-core.js';import _0xaa79f6 from'./basecommentview.js';import _0x410b29 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0xede983}from'../../../utils/common-translations.js';export default class pt extends _0x2251c0(_0xaa79f6){constructor(_0x21d6b7,_0x3f2d7a,_0x343b19){super(_0x21d6b7,_0x3f2d7a,_0x343b19),this[_0x4e44('0xd')](_0x4e44('0x51'),null),this[_0x4e44('0xd')](_0x4e44('0x4c'),_0xede983(_0x21d6b7,_0x4e44('0x12'))),this[_0x4e44('0x61')](_0x4e44('0x31'))['to'](_0x3f2d7a),this['bind'](_0x4e44('0x1a'))['to'](_0x3f2d7a),this[_0x4e44('0x2b')]=this[_0x4e44('0x49')](),this[_0x4e44('0x42')]||(this['editButton']=this[_0x4e44('0x55')](),this[_0x4e44('0x15')]=this[_0x4e44('0x18')](),this[_0x4e44('0x33')]=this['createCollection'](),this[_0x4e44('0x33')][_0x4e44('0x50')]([this[_0x4e44('0x39')],this[_0x4e44('0x15')]]),this[_0x4e44('0xf')]=this[_0x4e44('0x8')](),this[_0x4e44('0x2b')][_0x4e44('0x4b')](this[_0x4e44('0xf')])),this[_0x4e44('0x26')]=new _0x5de31b(_0x21d6b7,_0x3f2d7a[_0x4e44('0x44')],this['getUserViewNotificationText']()),this[_0x4e44('0x26')][_0x4e44('0x43')]({'attributes':{'class':['ck-comment__user',_0x4e44('0x27')]}}),this[_0x4e44('0x34')](_0x3f2d7a,_0x4e44('0x22'),()=>this[_0x4e44('0x25')]()),this[_0x4e44('0xe')](this[_0x4e44('0x2e')]());}[_0x4e44('0x2e')](){const _0x5c0efa=this[_0x4e44('0x10')],_0x5e286b=[{'tag':_0x4e44('0x1b'),'attributes':{'class':[_0x4e44('0x3b'),'ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this[_0x4e44('0x26')][_0x4e44('0x41')]}],'attributes':{'class':[_0x4e44('0x3e'),_0x4e44('0x20')]}},{'tag':_0x4e44('0x30'),'attributes':{'datetime':_0x5c0efa['to']('authoredAt'),'class':[_0x4e44('0x29'),_0x4e44('0x48')]},'children':[{'text':_0x5c0efa['to'](_0x4e44('0x31'),_0x566cc6=>this['_config'][_0x4e44('0x59')](_0x566cc6))}]}]},{'tag':'div','attributes':{'class':[_0x4e44('0x4'),_0x4e44('0x3a'),_0x5c0efa['if'](_0x4e44('0x1'),'ck-comment__actions--hidden'),_0x5c0efa['if'](_0x4e44('0x1'),_0x4e44('0xa'))]},'children':this[_0x4e44('0x2b')]},{'tag':_0x4e44('0x1b'),'attributes':{'class':[_0x4e44('0x3c')]},'children':this[_0x4e44('0x21')]}];return this['_model'][_0x4e44('0x5d')]&&_0x5e286b[_0x4e44('0x6')]({'tag':'div','attributes':{'class':[_0x4e44('0x1e')]},'children':[{'text':this[_0x4e44('0x38')]()}]}),{'tag':'li','attributes':{'class':[_0x4e44('0x37'),_0x5c0efa['if']('isConfirm',_0x4e44('0x54'))],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':[_0x4e44('0x13'),_0x4e44('0x2'),_0x5c0efa['if'](_0x4e44('0x1'),_0x4e44('0x4e')),_0x5c0efa['if'](_0x4e44('0x42'),_0x4e44('0x23')),_0x5c0efa['to'](_0x4e44('0x51'),_0x3a1cdd=>_0x3a1cdd?_0x4e44('0x1c')+_0x3a1cdd:'')],'data-author-id':this[_0x4e44('0x28')][_0x4e44('0x44')]['id'],'data-comment-id':this['_model']['id']},'children':[this[_0x4e44('0x26')],{'tag':_0x4e44('0x1b'),'attributes':{'class':[_0x4e44('0x58'),_0x4e44('0x5a')]},'children':_0x5e286b}]}]};}[_0x4e44('0x55')](){const _0x585d31=new _0x2ee5d0(this['locale']);return _0x585d31[_0x4e44('0x4f')]=_0xede983(this[_0x4e44('0x9')],_0x4e44('0x1f')),_0x585d31[_0x4e44('0x3')]=_0x3da1fd[_0x4e44('0x0')],_0x585d31[_0x4e44('0x60')]=!0x0,_0x585d31[_0x4e44('0x43')]({'attributes':{'class':_0x4e44('0x4e')}}),_0x585d31[_0x4e44('0x61')](_0x4e44('0x63'))['to'](this[_0x4e44('0x28')],_0x4e44('0xc'),_0x48145b=>!_0x48145b),_0x585d31[_0x4e44('0x61')](_0x4e44('0x7'))['to'](this['_model'],_0x4e44('0x5')),_0x585d31['on'](_0x4e44('0x5c'),()=>this[_0x4e44('0x3d')]()),_0x585d31;}[_0x4e44('0x18')](){const _0x4da9ce=new _0x2ee5d0(this['locale']);return _0x4da9ce['label']=_0xede983(this[_0x4e44('0x9')],'Remove'),_0x4da9ce[_0x4e44('0x3')]=_0x410b29,_0x4da9ce[_0x4e44('0x60')]=!0x0,_0x4da9ce[_0x4e44('0x43')]({'attributes':{'class':_0x4e44('0x16')}}),_0x4da9ce[_0x4e44('0x61')](_0x4e44('0x63'))['to'](this[_0x4e44('0x28')],_0x4e44('0xc'),_0x4ec7cf=>!_0x4ec7cf),_0x4da9ce[_0x4e44('0x61')]('isVisible')['to'](this[_0x4e44('0x28')],_0x4e44('0x66')),_0x4da9ce['on'](_0x4e44('0x5c'),()=>{this[_0x4e44('0x53')](_0xede983(this[_0x4e44('0x9')],'Delete\x20comment?'),this[_0x4e44('0x11')])[_0x4e44('0x32')](()=>{this[_0x4e44('0x3f')](_0x4e44('0x64'),this[_0x4e44('0x28')]['id']);});}),_0x4da9ce;}[_0x4e44('0x8')](){const _0x4a524f=_0x49851d(this[_0x4e44('0x9')]),_0x17e249=_0x4a524f[_0x4e44('0x40')]['children'],_0x108218=new _0x38c68f(this['locale']),_0x4595a7=(_0x4c9475,_0x4f6da1=-0x1)=>{const _0x1ff77d=new _0x2b38ec(this[_0x4e44('0x9')]);_0x1ff77d[_0x4e44('0x5e')][_0x4e44('0x4b')](_0x4c9475);const _0x2dc43a=_0x4f6da1>-0x1?_0x4f6da1:_0x108218[_0x4e44('0x33')][_0x4e44('0x1d')];_0x108218['items'][_0x4e44('0x4b')](_0x1ff77d,_0x2dc43a),_0x4a524f[_0x4e44('0x34')](_0x4c9475,_0x4e44('0x52'),()=>{_0x4a524f['isEnabled']=[...this[_0x4e44('0x33')]][_0x4e44('0x2a')](_0x46b52d=>_0x46b52d[_0x4e44('0x63')]);}),_0x4a524f['listenTo'](_0x4c9475,'change:isVisible',()=>{_0x4a524f[_0x4e44('0x2c')]['isVisible']=[...this[_0x4e44('0x33')]][_0x4e44('0x2a')](_0x1dd22d=>_0x1dd22d[_0x4e44('0x7')]);});};_0x4a524f[_0x4e44('0x17')]='sw',_0x4a524f[_0x4e44('0x2c')][_0x4e44('0xd')]({'label':_0xede983(this[_0x4e44('0x9')],_0x4e44('0x57')),'icon':_0x3da1fd[_0x4e44('0x4a')]}),_0x4a524f[_0x4e44('0x63')]=[...this[_0x4e44('0x33')]]['some'](_0x29912e=>_0x29912e[_0x4e44('0x63')]),_0x4a524f['buttonView'][_0x4e44('0x7')]=[...this[_0x4e44('0x33')]][_0x4e44('0x2a')](_0x3ef18e=>_0x3ef18e[_0x4e44('0x7')]);for(const _0x5ecffd of this[_0x4e44('0x33')])_0x4595a7(_0x5ecffd);return _0x17e249[_0x4e44('0x4b')](_0x108218),_0x4a524f[_0x4e44('0x34')](this[_0x4e44('0x33')],_0x4e44('0x4b'),(_0x52f882,_0x450a4e,_0x31276e)=>{_0x4595a7(_0x450a4e,_0x31276e);}),_0x4a524f[_0x4e44('0x34')](this[_0x4e44('0x33')],_0x4e44('0x24'),(_0x4b3d23,_0x1e2030,_0x3bcbce)=>{_0x108218[_0x4e44('0x33')][_0x4e44('0x24')](_0x3bcbce);}),_0x4a524f;}[_0x4e44('0x36')](_0x16698d,_0x5df484){const _0x502470=_0x16698d&&_0x16698d[_0x4e44('0x11')];_0x502470&&(this[_0x4e44('0x34')](_0x502470,_0x4e44('0x5b'),()=>this[_0x4e44('0x51')]=_0x5df484),this[_0x4e44('0x34')](_0x502470,_0x4e44('0x56'),()=>this['actionIndicator']=_0x5df484),this[_0x4e44('0x34')](_0x502470,_0x4e44('0x14'),()=>this[_0x4e44('0x51')]=null),this[_0x4e44('0x34')](_0x502470,_0x4e44('0x47'),()=>this[_0x4e44('0x51')]=null));}[_0x4e44('0x19')](){const _0x2c3f9a=super[_0x4e44('0x19')]();return _0x2c3f9a[_0x4e44('0x61')]('placeholder')['to'](this),_0x2c3f9a;}[_0x4e44('0x38')](){return _0x4e44('0x65')===this['_model'][_0x4e44('0x62')]['@external'][_0x4e44('0x4d')]?_0xede983(this[_0x4e44('0x9')],_0x4e44('0x2d')):_0xede983(this[_0x4e44('0x9')],'EXTERNAL_COMMENT');}[_0x4e44('0xb')](){return this['_model']['isExternal']?_0x4e44('0x65')===this[_0x4e44('0x28')][_0x4e44('0x62')][_0x4e44('0x45')][_0x4e44('0x4d')]?_0xede983(this[_0x4e44('0x9')],_0x4e44('0x46'),this['_model'][_0x4e44('0x67')][_0x4e44('0x41')]):_0xede983(this[_0x4e44('0x9')],_0x4e44('0x2f'),this[_0x4e44('0x28')][_0x4e44('0x67')]['name']):null;}[_0x4e44('0x5f')](){super['render'](),this[_0x4e44('0x36')](this[_0x4e44('0x39')],_0x4e44('0x35')),this[_0x4e44('0x36')](this[_0x4e44('0x15')],_0x4e44('0x24'));}}
23
+ const _0x144e=['@external','blur','time','ck-comment__external','ck-comment--info','ck-comment--remove-confirmation','listenTo','fire','edit','ck-comment__info-name','Edit','extendTemplate','locale','then','formatDateTime','mouseleave','placeholder','actionIndicator','element','attributes','createCollection','getExternalCommentNote','bindTemplate','EXTERNAL_COMMENT','name','add','ck-annotation__actions','threeVerticalDots','remove','userView','ck-comment--remove','ck-comment__actions','Delete\x20comment?','isConfirm','Reply...','EXTERNAL_AVATAR','author','isRemovable','ck-annotation__info-name','set','withText','div','panelPosition','pencil','children','ck-annotation__actions--hidden','render','ck-comment__main','showConfirm','isExternal','actionBar','getTemplate','change:isRemovable','Remove','_createRemoveButton','isReadOnly','items','creator','_createCommentInputView','importWord','EXTERNAL_IMPORT_WORD_AVATAR','isSystemComment','dropdown','ck-comment__actions--hidden','label','ck-annotation','execute','length','authoredAt','editButton','ck-annotation__content-wrapper','ck-comment','ck-comment--edit','isEnabled','change:isEnabled','removeButton','some','_model','_config','isEditMode','source','bind','isEditable','switchToEditMode','push','EXTERNAL_IMPORT_WORD_COMMENT','getUserViewNotificationText','ck-comment__wrapper','ck-comment__info','_attachActions','cancelConfirm','buttonView','isVisible','_createDropdown'];(function(_0x2571b9,_0x144e71){const _0x21d26a=function(_0x38c5dc){while(--_0x38c5dc){_0x2571b9['push'](_0x2571b9['shift']());}};_0x21d26a(++_0x144e71);}(_0x144e,0x101));const _0x21d2=function(_0x2571b9,_0x144e71){_0x2571b9=_0x2571b9-0x0;let _0x21d26a=_0x144e[_0x2571b9];return _0x21d26a;};import{ButtonView as _0x1246b3,createDropdown as _0x1715ed,ListView as _0x5c45bc,ListItemView as _0x2acbf0}from'ckeditor5/src/ui.js';import{icons as _0x71bd07}from'ckeditor5/src/core.js';import{UserView as _0xeb55ee,ConfirmMixin as _0x21f62e}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x3a6dfa from'./basecommentview.js';import _0x599bca from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x4c630a}from'../../../utils/common-translations.js';export default class pt extends _0x21f62e(_0x3a6dfa){constructor(_0x155ae5,_0x19e5ea,_0x340d47){super(_0x155ae5,_0x19e5ea,_0x340d47),this[_0x21d2('0x40')](_0x21d2('0x2a'),null),this[_0x21d2('0x40')](_0x21d2('0x29'),_0x4c630a(_0x155ae5,_0x21d2('0x3b'))),this[_0x21d2('0xc')]('authoredAt')['to'](_0x19e5ea),this[_0x21d2('0xc')]('resolvedAt')['to'](_0x19e5ea),this[_0x21d2('0x4b')]=this['createCollection'](),this['isSystemComment']||(this['editButton']=this['_createEditButton'](),this['removeButton']=this[_0x21d2('0x4f')](),this[_0x21d2('0x51')]=this[_0x21d2('0x2d')](),this['items']['addMany']([this[_0x21d2('0x0')],this[_0x21d2('0x6')]]),this[_0x21d2('0x57')]=this[_0x21d2('0x18')](),this[_0x21d2('0x4b')][_0x21d2('0x32')](this[_0x21d2('0x57')])),this[_0x21d2('0x36')]=new _0xeb55ee(_0x155ae5,_0x19e5ea[_0x21d2('0x3d')],this[_0x21d2('0x11')]()),this['userView'][_0x21d2('0x24')]({'attributes':{'class':['ck-comment__user','ck-annotation__user']}}),this[_0x21d2('0x1f')](_0x19e5ea,_0x21d2('0x4d'),()=>this[_0x21d2('0x15')]()),this['setTemplate'](this['getTemplate']());}[_0x21d2('0x4c')](){const _0x21b105=this[_0x21d2('0x2f')],_0x42c54f=[{'tag':'div','attributes':{'class':[_0x21d2('0x13'),'ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView'][_0x21d2('0x31')]}],'attributes':{'class':[_0x21d2('0x22'),_0x21d2('0x3f')]}},{'tag':_0x21d2('0x1b'),'attributes':{'datetime':_0x21b105['to'](_0x21d2('0x5d')),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x21b105['to'](_0x21d2('0x5d'),_0x1d168e=>this[_0x21d2('0x9')][_0x21d2('0x27')](_0x1d168e))}]}]},{'tag':_0x21d2('0x42'),'attributes':{'class':[_0x21d2('0x38'),_0x21d2('0x33'),_0x21b105['if']('isEditMode',_0x21d2('0x58')),_0x21b105['if'](_0x21d2('0xa'),_0x21d2('0x46'))]},'children':this['actionBar']},{'tag':_0x21d2('0x42'),'attributes':{'class':[_0x21d2('0x1')]},'children':this['visibleView']}];return this[_0x21d2('0x8')]['isExternal']&&_0x42c54f[_0x21d2('0xf')]({'tag':_0x21d2('0x42'),'attributes':{'class':[_0x21d2('0x1c')]},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':[_0x21d2('0x12'),_0x21b105['if'](_0x21d2('0x3a'),_0x21d2('0x1e'))],'tabindex':-0x1},'children':[{'tag':_0x21d2('0x42'),'attributes':{'class':[_0x21d2('0x2'),_0x21d2('0x5a'),_0x21b105['if'](_0x21d2('0xa'),_0x21d2('0x3')),_0x21b105['if'](_0x21d2('0x56'),_0x21d2('0x1d')),_0x21b105['to'](_0x21d2('0x2a'),_0x22ff35=>_0x22ff35?'ck-comment--'+_0x22ff35:'')],'data-author-id':this[_0x21d2('0x8')]['author']['id'],'data-comment-id':this['_model']['id']},'children':[this[_0x21d2('0x36')],{'tag':_0x21d2('0x42'),'attributes':{'class':[_0x21d2('0x48'),'ck-annotation__main']},'children':_0x42c54f}]}]};}['_createEditButton'](){const _0x2eac97=new _0x1246b3(this[_0x21d2('0x25')]);return _0x2eac97[_0x21d2('0x59')]=_0x4c630a(this[_0x21d2('0x25')],_0x21d2('0x23')),_0x2eac97['icon']=_0x71bd07[_0x21d2('0x44')],_0x2eac97[_0x21d2('0x41')]=!0x0,_0x2eac97['extendTemplate']({'attributes':{'class':_0x21d2('0x3')}}),_0x2eac97['bind'](_0x21d2('0x4'))['to'](this[_0x21d2('0x8')],'isReadOnly',_0xe9fde9=>!_0xe9fde9),_0x2eac97[_0x21d2('0xc')](_0x21d2('0x17'))['to'](this['_model'],_0x21d2('0xd')),_0x2eac97['on']('execute',()=>this[_0x21d2('0xe')]()),_0x2eac97;}[_0x21d2('0x4f')](){const _0x5d1d8b=new _0x1246b3(this[_0x21d2('0x25')]);return _0x5d1d8b[_0x21d2('0x59')]=_0x4c630a(this[_0x21d2('0x25')],_0x21d2('0x4e')),_0x5d1d8b['icon']=_0x599bca,_0x5d1d8b[_0x21d2('0x41')]=!0x0,_0x5d1d8b[_0x21d2('0x24')]({'attributes':{'class':_0x21d2('0x37')}}),_0x5d1d8b[_0x21d2('0xc')]('isEnabled')['to'](this[_0x21d2('0x8')],_0x21d2('0x50'),_0x5c2701=>!_0x5c2701),_0x5d1d8b[_0x21d2('0xc')](_0x21d2('0x17'))['to'](this[_0x21d2('0x8')],_0x21d2('0x3e')),_0x5d1d8b['on'](_0x21d2('0x5b'),()=>{this[_0x21d2('0x49')](_0x4c630a(this['locale'],_0x21d2('0x39')),this[_0x21d2('0x2b')])[_0x21d2('0x26')](()=>{this[_0x21d2('0x20')]('removeComment',this[_0x21d2('0x8')]['id']);});}),_0x5d1d8b;}['_createDropdown'](){const _0x2fd5fc=_0x1715ed(this['locale']),_0x30a542=_0x2fd5fc['panelView'][_0x21d2('0x45')],_0x226f98=new _0x5c45bc(this['locale']),_0x206d11=(_0x219f18,_0x5bc7d2=-0x1)=>{const _0x5c1ea3=new _0x2acbf0(this[_0x21d2('0x25')]);_0x5c1ea3[_0x21d2('0x45')]['add'](_0x219f18);const _0x2b64cd=_0x5bc7d2>-0x1?_0x5bc7d2:_0x226f98[_0x21d2('0x51')][_0x21d2('0x5c')];_0x226f98[_0x21d2('0x51')][_0x21d2('0x32')](_0x5c1ea3,_0x2b64cd),_0x2fd5fc[_0x21d2('0x1f')](_0x219f18,_0x21d2('0x5'),()=>{_0x2fd5fc[_0x21d2('0x4')]=[...this[_0x21d2('0x51')]][_0x21d2('0x7')](_0x39c785=>_0x39c785[_0x21d2('0x4')]);}),_0x2fd5fc[_0x21d2('0x1f')](_0x219f18,'change:isVisible',()=>{_0x2fd5fc[_0x21d2('0x16')][_0x21d2('0x17')]=[...this['items']][_0x21d2('0x7')](_0x1a4e77=>_0x1a4e77[_0x21d2('0x17')]);});};_0x2fd5fc[_0x21d2('0x43')]='sw',_0x2fd5fc['buttonView'][_0x21d2('0x40')]({'label':_0x4c630a(this[_0x21d2('0x25')],'Show\x20more\x20items'),'icon':_0x71bd07[_0x21d2('0x34')]}),_0x2fd5fc['isEnabled']=[...this['items']][_0x21d2('0x7')](_0x2adc1c=>_0x2adc1c[_0x21d2('0x4')]),_0x2fd5fc[_0x21d2('0x16')][_0x21d2('0x17')]=[...this[_0x21d2('0x51')]][_0x21d2('0x7')](_0x3dabbc=>_0x3dabbc[_0x21d2('0x17')]);for(const _0x5c9c66 of this[_0x21d2('0x51')])_0x206d11(_0x5c9c66);return _0x30a542[_0x21d2('0x32')](_0x226f98),_0x2fd5fc[_0x21d2('0x1f')](this[_0x21d2('0x51')],_0x21d2('0x32'),(_0x1f023c,_0x49a533,_0x40a7b5)=>{_0x206d11(_0x49a533,_0x40a7b5);}),_0x2fd5fc[_0x21d2('0x1f')](this['items'],'remove',(_0x1d4ac0,_0x5e935a,_0x4fc318)=>{_0x226f98['items'][_0x21d2('0x35')](_0x4fc318);}),_0x2fd5fc;}[_0x21d2('0x14')](_0x58a300,_0x5699d2){const _0x2a268c=_0x58a300&&_0x58a300[_0x21d2('0x2b')];_0x2a268c&&(this[_0x21d2('0x1f')](_0x2a268c,'mouseenter',()=>this[_0x21d2('0x2a')]=_0x5699d2),this['listenTo'](_0x2a268c,'focus',()=>this[_0x21d2('0x2a')]=_0x5699d2),this['listenTo'](_0x2a268c,_0x21d2('0x28'),()=>this[_0x21d2('0x2a')]=null),this['listenTo'](_0x2a268c,_0x21d2('0x1a'),()=>this[_0x21d2('0x2a')]=null));}[_0x21d2('0x53')](){const _0xda4cd9=super['_createCommentInputView']();return _0xda4cd9['bind'](_0x21d2('0x29'))['to'](this),_0xda4cd9;}[_0x21d2('0x2e')](){return _0x21d2('0x54')===this['_model'][_0x21d2('0x2c')][_0x21d2('0x19')]['source']?_0x4c630a(this[_0x21d2('0x25')],_0x21d2('0x10')):_0x4c630a(this['locale'],_0x21d2('0x30'));}[_0x21d2('0x11')](){return this[_0x21d2('0x8')][_0x21d2('0x4a')]?_0x21d2('0x54')===this[_0x21d2('0x8')]['attributes'][_0x21d2('0x19')][_0x21d2('0xb')]?_0x4c630a(this[_0x21d2('0x25')],_0x21d2('0x55'),this[_0x21d2('0x8')][_0x21d2('0x52')][_0x21d2('0x31')]):_0x4c630a(this['locale'],_0x21d2('0x3c'),this[_0x21d2('0x8')][_0x21d2('0x52')][_0x21d2('0x31')]):null;}[_0x21d2('0x47')](){super['render'](),this['_attachActions'](this[_0x21d2('0x0')],_0x21d2('0x21')),this[_0x21d2('0x14')](this['removeButton'],_0x21d2('0x35'));}}
package/src/comments.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x3ccf=['pluginName','requires'];(function(_0x49a7ed,_0x3ccf01){var _0x33986a=function(_0x2f286a){while(--_0x2f286a){_0x49a7ed['push'](_0x49a7ed['shift']());}};_0x33986a(++_0x3ccf01);}(_0x3ccf,0x199));var _0x3398=function(_0x49a7ed,_0x3ccf01){_0x49a7ed=_0x49a7ed-0x0;var _0x33986a=_0x3ccf[_0x49a7ed];return _0x33986a;};import{Plugin as _0x173284}from'ckeditor5/src/core.js';import _0x256f69 from'./comments/commentsrepository.js';import _0x1233f0 from'./comments/commentsediting.js';import _0x50add from'./comments/commentsui.js';import _0x37e470 from'./commentsonly.js';import _0x562cf4 from'./annotations/widesidebar.js';import _0x45b497 from'./annotations/narrowsidebar.js';import _0x1039b0 from'./annotations/inlineannotations.js';import _0x36fe9e from'./comments/commentsarchiveui.js';import _0x9f20c0 from'./comments/commentsarchive.js';export default class f extends _0x173284{static get[_0x3398('0x0')](){return[_0x256f69,_0x1233f0,_0x50add,_0x9f20c0,_0x36fe9e,_0x37e470,_0x562cf4,_0x45b497,_0x1039b0];}static get[_0x3398('0x1')](){return'Comments';}}
23
+ var _0xfd7b=['pluginName','Comments'];(function(_0x2b9453,_0xfd7bd2){var _0x5179fc=function(_0x381d17){while(--_0x381d17){_0x2b9453['push'](_0x2b9453['shift']());}};_0x5179fc(++_0xfd7bd2);}(_0xfd7b,0x11b));var _0x5179=function(_0x2b9453,_0xfd7bd2){_0x2b9453=_0x2b9453-0x0;var _0x5179fc=_0xfd7b[_0x2b9453];return _0x5179fc;};import{Plugin as _0x5653df}from'ckeditor5/src/core.js';import _0x78e7c4 from'./comments/commentsrepository.js';import _0xde7850 from'./comments/commentsediting.js';import _0x26448d from'./comments/commentsui.js';import _0x42742c from'./commentsonly.js';import _0x13ce12 from'./annotations/widesidebar.js';import _0x2c2f3e from'./annotations/narrowsidebar.js';import _0x2b010c from'./annotations/inlineannotations.js';import _0x137612 from'./comments/commentsarchiveui.js';import _0x976326 from'./comments/commentsarchive.js';export default class f extends _0x5653df{static get['requires'](){return[_0x78e7c4,_0xde7850,_0x26448d,_0x976326,_0x137612,_0x42742c,_0x13ce12,_0x2c2f3e,_0x2b010c];}static get[_0x5179('0x1')](){return _0x5179('0x0');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x409f=['requires','clearForceDisabled','delete','pluginName','cut','_enableCommentsOnlyMode','stop','listenTo','editor','affectsData','get','editing','CommentsOnly','set','commands','commentsOnlyMode','highest','change:isEnabled','stopListening','isEnabled','document','view','plugins','has','forceDisabled','DragDrop','commentsOnly','clipboardInput','_disableCommentsOnlyMode'];(function(_0x364ea1,_0x409fff){const _0x300c21=function(_0xce0b2b){while(--_0xce0b2b){_0x364ea1['push'](_0x364ea1['shift']());}};_0x300c21(++_0x409fff);}(_0x409f,0x148));const _0x300c=function(_0x364ea1,_0x409fff){_0x364ea1=_0x364ea1-0x0;let _0x300c21=_0x409f[_0x364ea1];return _0x300c21;};import{Plugin as _0x37ae89}from'ckeditor5/src/core.js';import _0xb3b3a0 from'./comments/commentsediting.js';export default class e extends _0x37ae89{static get[_0x300c('0x17')](){return _0x300c('0x3');}static get[_0x300c('0x14')](){return[_0xb3b3a0];}constructor(_0x2e2f04){super(_0x2e2f04),this[_0x300c('0x4')](_0x300c('0xa'),!0x1),this['on'](_0x300c('0x8'),(_0x400197,_0x4ac655,_0x1477c5)=>{_0x1477c5?this['_enableCommentsOnlyMode']():this[_0x300c('0x13')]();});}['afterInit'](){!this[_0x300c('0xa')]&&this[_0x300c('0x1c')]['config'][_0x300c('0x1')](_0x300c('0x11'))&&(this[_0x300c('0xa')]=!0x0);}[_0x300c('0x19')](){for(const [_0x659288,_0x2cfc13]of this[_0x300c('0x1c')][_0x300c('0x5')])_0x2cfc13['affectsData']&&'addCommentThread'!==_0x659288&&_0x2cfc13[_0x300c('0xf')](_0x300c('0x6'));this[_0x300c('0x1c')][_0x300c('0xd')][_0x300c('0xe')]('DragDrop')&&this[_0x300c('0x1c')]['plugins']['get'](_0x300c('0x10'))[_0x300c('0xf')](_0x300c('0x6'));const _0x2eb076=this['editor']['editing'][_0x300c('0xc')][_0x300c('0xb')];this[_0x300c('0x1b')](_0x2eb076,_0x300c('0x18'),_0x47ee37=>_0x47ee37[_0x300c('0x1a')](),{'priority':_0x300c('0x7')}),this['listenTo'](_0x2eb076,_0x300c('0x12'),_0x92c4ea=>_0x92c4ea[_0x300c('0x1a')](),{'priority':_0x300c('0x7')}),this[_0x300c('0x1b')](_0x2eb076,_0x300c('0x16'),_0x184d64=>_0x184d64[_0x300c('0x1a')](),{'priority':_0x300c('0x7')});}['_disableCommentsOnlyMode'](){for(const [_0x595954,_0x5dbc10]of this['editor'][_0x300c('0x5')])_0x5dbc10[_0x300c('0x0')]&&'addCommentThread'!==_0x595954&&_0x5dbc10[_0x300c('0x15')](_0x300c('0x6'));this[_0x300c('0x9')](this['editor'][_0x300c('0x2')]['view'][_0x300c('0xb')]);}}
23
+ const _0x406c=['change:isEnabled','highest','view','afterInit','requires','pluginName','set','cut','delete','plugins','editing','_enableCommentsOnlyMode','affectsData','commentsOnlyMode','document','commentsOnly','_disableCommentsOnlyMode','has','DragDrop','get','addCommentThread','commands','listenTo','editor','clearForceDisabled','stop','isEnabled','config','stopListening','forceDisabled'];(function(_0x11c310,_0x406caa){const _0x3281d8=function(_0x19948c){while(--_0x19948c){_0x11c310['push'](_0x11c310['shift']());}};_0x3281d8(++_0x406caa);}(_0x406c,0x68));const _0x3281=function(_0x11c310,_0x406caa){_0x11c310=_0x11c310-0x0;let _0x3281d8=_0x406c[_0x11c310];return _0x3281d8;};import{Plugin as _0x44f594}from'ckeditor5/src/core.js';import _0x42d2d3 from'./comments/commentsediting.js';export default class e extends _0x44f594{static get[_0x3281('0x15')](){return'CommentsOnly';}static get[_0x3281('0x14')](){return[_0x42d2d3];}constructor(_0x22495f){super(_0x22495f),this[_0x3281('0x16')](_0x3281('0xc'),!0x1),this['on'](_0x3281('0x10'),(_0x12f6ce,_0x56f0f0,_0x4e6af1)=>{_0x4e6af1?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}[_0x3281('0x13')](){!this[_0x3281('0xc')]&&this[_0x3281('0x9')][_0x3281('0xd')][_0x3281('0x5')](_0x3281('0x1'))&&(this[_0x3281('0xc')]=!0x0);}[_0x3281('0x1b')](){for(const [_0x3267ab,_0x3f2804]of this['editor'][_0x3281('0x7')])_0x3f2804[_0x3281('0x1c')]&&_0x3281('0x6')!==_0x3267ab&&_0x3f2804['forceDisabled'](_0x3281('0x1d'));this[_0x3281('0x9')][_0x3281('0x19')][_0x3281('0x3')](_0x3281('0x4'))&&this['editor']['plugins'][_0x3281('0x5')]('DragDrop')[_0x3281('0xf')](_0x3281('0x1d'));const _0x2bb54c=this['editor'][_0x3281('0x1a')][_0x3281('0x12')][_0x3281('0x0')];this['listenTo'](_0x2bb54c,_0x3281('0x17'),_0x308ad5=>_0x308ad5[_0x3281('0xb')](),{'priority':'highest'}),this['listenTo'](_0x2bb54c,'clipboardInput',_0x5ed2f2=>_0x5ed2f2[_0x3281('0xb')](),{'priority':_0x3281('0x11')}),this[_0x3281('0x8')](_0x2bb54c,_0x3281('0x18'),_0x36efc3=>_0x36efc3[_0x3281('0xb')](),{'priority':_0x3281('0x11')});}[_0x3281('0x2')](){for(const [_0x2e9592,_0x549ab7]of this[_0x3281('0x9')][_0x3281('0x7')])_0x549ab7[_0x3281('0x1c')]&&_0x3281('0x6')!==_0x2e9592&&_0x549ab7[_0x3281('0xa')](_0x3281('0x1d'));this[_0x3281('0xe')](this['editor'][_0x3281('0x1a')][_0x3281('0x12')]['document']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x23aac8,_0x194f8c,_0x2f4b50){const t=_0x23aac8['t'];switch(_0x194f8c){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'LEAVE_COMMENT_ANNOUNCEMENT':return t({'string':'Leaving\x20a\x20comment.','id':'LEAVE_COMMENT_ANNOUNCEMENT'});case'ENTER_COMMENT_ANNOUNCEMENT':return t({'string':'Entering\x20a\x20comment.','id':'ENTER_COMMENT_ANNOUNCEMENT'});case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x2f4b50);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'},_0x2f4b50);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'},_0x2f4b50);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'},_0x2f4b50);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(_0x6bd1fe,_0x101a6b,_0x19cb69){const t=_0x6bd1fe['t'];switch(_0x101a6b){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'LEAVE_COMMENT_ANNOUNCEMENT':return t({'string':'Leaving\x20a\x20comment.','id':'LEAVE_COMMENT_ANNOUNCEMENT'});case'ENTER_COMMENT_ANNOUNCEMENT':return t({'string':'Entering\x20a\x20comment.','id':'ENTER_COMMENT_ANNOUNCEMENT'});case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x19cb69);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'},_0x19cb69);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'},_0x19cb69);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'},_0x19cb69);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 _0x4ea7=['observe','cancel','characterData','attributes','attributeName','class','type','disconnect'];(function(_0x5730e1,_0x4ea76f){const _0xf29988=function(_0x500fb2){while(--_0x500fb2){_0x5730e1['push'](_0x5730e1['shift']());}};_0xf29988(++_0x4ea76f);}(_0x4ea7,0x1d2));const _0xf299=function(_0x5730e1,_0x4ea76f){_0x5730e1=_0x5730e1-0x0;let _0xf29988=_0x4ea7[_0x5730e1];return _0xf29988;};import{throttle as _0x513f09}from'lodash-es';export default function Dt(_0x1260d2){const _0x1c7500=_0x513f09(_0x1260d2,0x1e),_0x63ef17=new MutationObserver(_0x521413=>{for(const _0x544e84 of _0x521413)(_0xf299('0x1')==_0x544e84['type']&&_0xf299('0x3')==_0x544e84[_0xf299('0x2')]||'childList'==_0x544e84[_0xf299('0x4')]||_0xf299('0x0')==_0x544e84['type'])&&_0x1c7500();});return{'attach'(_0x59f44d){_0x63ef17[_0xf299('0x6')](_0x59f44d,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x63ef17[_0xf299('0x5')](),_0x1c7500[_0xf299('0x7')]();}};}
23
+ const _0x352f=['characterData','class','disconnect','observe','type','attributeName','cancel'];(function(_0x242579,_0x352f8f){const _0x58c9c6=function(_0x10f711){while(--_0x10f711){_0x242579['push'](_0x242579['shift']());}};_0x58c9c6(++_0x352f8f);}(_0x352f,0xfb));const _0x58c9=function(_0x242579,_0x352f8f){_0x242579=_0x242579-0x0;let _0x58c9c6=_0x352f[_0x242579];return _0x58c9c6;};import{throttle as _0x5ac04e}from'lodash-es';export default function Dt(_0x10efc6){const _0x20a348=_0x5ac04e(_0x10efc6,0x1e),_0x416eb9=new MutationObserver(_0x4321d2=>{for(const _0x253f4d of _0x4321d2)('attributes'==_0x253f4d[_0x58c9('0x5')]&&_0x58c9('0x2')==_0x253f4d[_0x58c9('0x6')]||'childList'==_0x253f4d[_0x58c9('0x5')]||_0x58c9('0x1')==_0x253f4d[_0x58c9('0x5')])&&_0x20a348();});return{'attach'(_0x4a804d){_0x416eb9[_0x58c9('0x4')](_0x4a804d,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x416eb9[_0x58c9('0x3')](),_0x20a348[_0x58c9('0x0')]();}};}