@ckeditor/ckeditor5-comments 0.0.0-nightly-20230913.0 → 0.0.0-nightly-20230914.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 _0x4832=['fire','panelPosition','change:isEnabled','add','removeButton','isExternal','EXTERNAL_AVATAR','formatDateTime','switchToEditMode','actionIndicator','ck-comment__user','push','bind','withText','ck-comment__actions','dropdown','attributes','editButton','panelView','label','@external','change:isRemovable','some','_createDropdown','createCollection','extendTemplate','name','isSystemComment','set','_model','creator','time','actionBar','ck-comment__external','author','userView','showConfirm','isEnabled','then','resolvedAt','isVisible','ck-comment__actions--hidden','visibleView','isRemovable','locale','addMany','isReadOnly','_createEditButton','ck-comment__info','blur','buttonView','isEditMode','ck-comment--remove','removeComment','ck-comment--','getExternalCommentNote','_createCommentInputView','mouseleave','EXTERNAL_COMMENT','icon','remove','ck-annotation__actions','isEditable','authoredAt','Remove','listenTo','span','isConfirm','setTemplate','source','importWord','Delete\x20comment?','ck-annotation','ck-comment--remove-confirmation','getUserViewNotificationText','ck-comment__wrapper','length','ck-annotation__info-time','Show\x20more\x20items','ck-annotation__actions--hidden','ck-comment','mouseenter','render','Edit','ck-comment--edit','pencil','cancelConfirm','element','EXTERNAL_IMPORT_WORD_AVATAR','ck-comment__info-time','edit','ck-annotation__user','div','ck-annotation__info','items','threeVerticalDots','execute','children','Reply...','getTemplate','_attachActions','_config'];(function(_0x8fa153,_0x483275){const _0x1e6d3d=function(_0x147bfc){while(--_0x147bfc){_0x8fa153['push'](_0x8fa153['shift']());}};_0x1e6d3d(++_0x483275);}(_0x4832,0x89));const _0x1e6d=function(_0x8fa153,_0x483275){_0x8fa153=_0x8fa153-0x0;let _0x1e6d3d=_0x4832[_0x8fa153];return _0x1e6d3d;};import{ButtonView as _0x546eba,createDropdown as _0x156db7,ListView as _0x4be8b5,ListItemView as _0x346d89}from'ckeditor5/src/ui';import{icons as _0x2fa512}from'ckeditor5/src/core';import{UserView as _0x36140f,ConfirmMixin as _0x211ed5}from'ckeditor5-collaboration/src/collaboration-core';import _0x28ee32 from'./basecommentview';import _0x480f07 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x5b3d43}from'../../../utils/common-translations';export default class ut extends _0x211ed5(_0x28ee32){constructor(_0x3255cc,_0x284e44,_0xc56311){super(_0x3255cc,_0x284e44,_0xc56311),this[_0x1e6d('0x5f')](_0x1e6d('0x4c'),null),this[_0x1e6d('0x5f')]('placeholder',_0x5b3d43(_0x3255cc,_0x1e6d('0x3f'))),this[_0x1e6d('0x4f')](_0x1e6d('0x1c'))['to'](_0x284e44),this[_0x1e6d('0x4f')](_0x1e6d('0x4'))['to'](_0x284e44),this['actionBar']=this[_0x1e6d('0x5b')](),this[_0x1e6d('0x5e')]||(this[_0x1e6d('0x54')]=this[_0x1e6d('0xc')](),this[_0x1e6d('0x47')]=this['_createRemoveButton'](),this[_0x1e6d('0x3b')]=this['createCollection'](),this[_0x1e6d('0x3b')][_0x1e6d('0xa')]([this[_0x1e6d('0x54')],this['removeButton']]),this[_0x1e6d('0x52')]=this['_createDropdown'](),this['actionBar'][_0x1e6d('0x46')](this[_0x1e6d('0x52')])),this[_0x1e6d('0x0')]=new _0x36140f(_0x3255cc,_0x284e44['author'],this[_0x1e6d('0x27')]()),this['userView'][_0x1e6d('0x5c')]({'attributes':{'class':[_0x1e6d('0x4d'),_0x1e6d('0x38')]}}),this[_0x1e6d('0x1e')](_0x284e44,_0x1e6d('0x58'),()=>this[_0x1e6d('0x33')]()),this[_0x1e6d('0x21')](this[_0x1e6d('0x40')]());}['getTemplate'](){const _0x31fbaf=this['bindTemplate'],_0x414275=[{'tag':_0x1e6d('0x39'),'attributes':{'class':[_0x1e6d('0xd'),_0x1e6d('0x3a')]},'children':[{'tag':_0x1e6d('0x1f'),'children':[{'text':this[_0x1e6d('0x0')][_0x1e6d('0x5d')]}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name']}},{'tag':_0x1e6d('0x62'),'attributes':{'datetime':_0x31fbaf['to']('authoredAt'),'class':[_0x1e6d('0x36'),_0x1e6d('0x2a')]},'children':[{'text':_0x31fbaf['to'](_0x1e6d('0x1c'),_0x39f171=>this[_0x1e6d('0x42')][_0x1e6d('0x4a')](_0x39f171))}]}]},{'tag':'div','attributes':{'class':[_0x1e6d('0x51'),_0x1e6d('0x1a'),_0x31fbaf['if'](_0x1e6d('0x10'),_0x1e6d('0x6')),_0x31fbaf['if'](_0x1e6d('0x10'),_0x1e6d('0x2c'))]},'children':this[_0x1e6d('0x63')]},{'tag':_0x1e6d('0x39'),'attributes':{'class':['ck-annotation__content-wrapper']},'children':this[_0x1e6d('0x7')]}];return this['_model'][_0x1e6d('0x48')]&&_0x414275[_0x1e6d('0x4e')]({'tag':_0x1e6d('0x39'),'attributes':{'class':[_0x1e6d('0x64')]},'children':[{'text':this[_0x1e6d('0x14')]()}]}),{'tag':'li','attributes':{'class':[_0x1e6d('0x28'),_0x31fbaf['if'](_0x1e6d('0x20'),_0x1e6d('0x26'))],'tabindex':-0x1},'children':[{'tag':_0x1e6d('0x39'),'attributes':{'class':[_0x1e6d('0x2d'),_0x1e6d('0x25'),_0x31fbaf['if']('isEditMode',_0x1e6d('0x31')),_0x31fbaf['if'](_0x1e6d('0x5e'),'ck-comment--info'),_0x31fbaf['to'](_0x1e6d('0x4c'),_0x376ae7=>_0x376ae7?_0x1e6d('0x13')+_0x376ae7:'')],'data-author-id':this['_model'][_0x1e6d('0x65')]['id'],'data-comment-id':this[_0x1e6d('0x60')]['id']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-comment__main','ck-annotation__main']},'children':_0x414275}]}]};}[_0x1e6d('0xc')](){const _0x1a7db6=new _0x546eba(this[_0x1e6d('0x9')]);return _0x1a7db6[_0x1e6d('0x56')]=_0x5b3d43(this[_0x1e6d('0x9')],_0x1e6d('0x30')),_0x1a7db6[_0x1e6d('0x18')]=_0x2fa512[_0x1e6d('0x32')],_0x1a7db6['withText']=!0x0,_0x1a7db6[_0x1e6d('0x5c')]({'attributes':{'class':_0x1e6d('0x31')}}),_0x1a7db6[_0x1e6d('0x4f')](_0x1e6d('0x2'))['to'](this[_0x1e6d('0x60')],_0x1e6d('0xb'),_0xc816e=>!_0xc816e),_0x1a7db6[_0x1e6d('0x4f')]('isVisible')['to'](this[_0x1e6d('0x60')],_0x1e6d('0x1b')),_0x1a7db6['on'](_0x1e6d('0x3d'),()=>this[_0x1e6d('0x4b')]()),_0x1a7db6;}['_createRemoveButton'](){const _0x51e91d=new _0x546eba(this['locale']);return _0x51e91d[_0x1e6d('0x56')]=_0x5b3d43(this[_0x1e6d('0x9')],_0x1e6d('0x1d')),_0x51e91d[_0x1e6d('0x18')]=_0x480f07,_0x51e91d[_0x1e6d('0x50')]=!0x0,_0x51e91d['extendTemplate']({'attributes':{'class':_0x1e6d('0x11')}}),_0x51e91d[_0x1e6d('0x4f')](_0x1e6d('0x2'))['to'](this[_0x1e6d('0x60')],_0x1e6d('0xb'),_0x6f5a58=>!_0x6f5a58),_0x51e91d[_0x1e6d('0x4f')](_0x1e6d('0x5'))['to'](this[_0x1e6d('0x60')],_0x1e6d('0x8')),_0x51e91d['on'](_0x1e6d('0x3d'),()=>{this[_0x1e6d('0x1')](_0x5b3d43(this[_0x1e6d('0x9')],_0x1e6d('0x24')),this['element'])[_0x1e6d('0x3')](()=>{this[_0x1e6d('0x43')](_0x1e6d('0x12'),this['_model']['id']);});}),_0x51e91d;}[_0x1e6d('0x5a')](){const _0x40c0c3=_0x156db7(this['locale']),_0xe088f0=_0x40c0c3[_0x1e6d('0x55')]['children'],_0x37eadd=new _0x4be8b5(this[_0x1e6d('0x9')]),_0x38c533=(_0x4d307b,_0x12030a=-0x1)=>{const _0x31deef=new _0x346d89(this[_0x1e6d('0x9')]);_0x31deef[_0x1e6d('0x3e')][_0x1e6d('0x46')](_0x4d307b);const _0x14c66a=_0x12030a>-0x1?_0x12030a:_0x37eadd['items'][_0x1e6d('0x29')];_0x37eadd['items']['add'](_0x31deef,_0x14c66a),_0x40c0c3[_0x1e6d('0x1e')](_0x4d307b,_0x1e6d('0x45'),()=>{_0x40c0c3[_0x1e6d('0x2')]=[...this[_0x1e6d('0x3b')]][_0x1e6d('0x59')](_0x5e9295=>_0x5e9295[_0x1e6d('0x2')]);}),_0x40c0c3[_0x1e6d('0x1e')](_0x4d307b,'change:isVisible',()=>{_0x40c0c3['buttonView'][_0x1e6d('0x5')]=[...this[_0x1e6d('0x3b')]][_0x1e6d('0x59')](_0x15b79b=>_0x15b79b['isVisible']);});};_0x40c0c3[_0x1e6d('0x44')]='sw',_0x40c0c3[_0x1e6d('0xf')][_0x1e6d('0x5f')]({'label':_0x5b3d43(this[_0x1e6d('0x9')],_0x1e6d('0x2b')),'icon':_0x2fa512[_0x1e6d('0x3c')]}),_0x40c0c3['isEnabled']=[...this[_0x1e6d('0x3b')]][_0x1e6d('0x59')](_0x1bb9ab=>_0x1bb9ab[_0x1e6d('0x2')]),_0x40c0c3[_0x1e6d('0xf')]['isVisible']=[...this[_0x1e6d('0x3b')]][_0x1e6d('0x59')](_0x39ec62=>_0x39ec62[_0x1e6d('0x5')]);for(const _0x54949c of this[_0x1e6d('0x3b')])_0x38c533(_0x54949c);return _0xe088f0[_0x1e6d('0x46')](_0x37eadd),_0x40c0c3['listenTo'](this[_0x1e6d('0x3b')],'add',(_0x10ba92,_0x29d6c2,_0x2bf058)=>{_0x38c533(_0x29d6c2,_0x2bf058);}),_0x40c0c3['listenTo'](this['items'],_0x1e6d('0x19'),(_0x3ca55f,_0x3e6c60,_0x416653)=>{_0x37eadd[_0x1e6d('0x3b')][_0x1e6d('0x19')](_0x416653);}),_0x40c0c3;}[_0x1e6d('0x41')](_0x65a947,_0x338d76){const _0x4b6376=_0x65a947&&_0x65a947[_0x1e6d('0x34')];_0x4b6376&&(this[_0x1e6d('0x1e')](_0x4b6376,_0x1e6d('0x2e'),()=>this['actionIndicator']=_0x338d76),this[_0x1e6d('0x1e')](_0x4b6376,'focus',()=>this['actionIndicator']=_0x338d76),this['listenTo'](_0x4b6376,_0x1e6d('0x16'),()=>this[_0x1e6d('0x4c')]=null),this['listenTo'](_0x4b6376,_0x1e6d('0xe'),()=>this[_0x1e6d('0x4c')]=null));}[_0x1e6d('0x15')](){const _0x6f2a09=super[_0x1e6d('0x15')]();return _0x6f2a09[_0x1e6d('0x4f')]('placeholder')['to'](this),_0x6f2a09;}[_0x1e6d('0x14')](){return'importWord'===this[_0x1e6d('0x60')][_0x1e6d('0x53')][_0x1e6d('0x57')][_0x1e6d('0x22')]?_0x5b3d43(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):_0x5b3d43(this[_0x1e6d('0x9')],_0x1e6d('0x17'));}['getUserViewNotificationText'](){return this[_0x1e6d('0x60')][_0x1e6d('0x48')]?_0x1e6d('0x23')===this[_0x1e6d('0x60')]['attributes'][_0x1e6d('0x57')]['source']?_0x5b3d43(this[_0x1e6d('0x9')],_0x1e6d('0x35'),this[_0x1e6d('0x60')]['creator']['name']):_0x5b3d43(this['locale'],_0x1e6d('0x49'),this['_model'][_0x1e6d('0x61')][_0x1e6d('0x5d')]):null;}[_0x1e6d('0x2f')](){super[_0x1e6d('0x2f')](),this[_0x1e6d('0x41')](this[_0x1e6d('0x54')],_0x1e6d('0x37')),this[_0x1e6d('0x41')](this['removeButton'],_0x1e6d('0x19'));}}
23
+ const _0x5a40=['ck-annotation__main','isEditMode','isReadOnly','div','add','removeButton','userView','EXTERNAL_AVATAR','ck-comment','name','source','_createRemoveButton','ck-comment--info','showConfirm','panelView','_createCommentInputView','panelPosition','fire','bind','isVisible','@external','_attachActions','ck-annotation__info-time','blur','listenTo','locale','edit','_config','execute','render','_createEditButton','span','_createDropdown','focus','Remove','icon','ck-comment__user','dropdown','attributes','EXTERNAL_COMMENT','ck-comment--edit','importWord','ck-comment__external','removeComment','remove','editButton','push','ck-annotation__info-name','element','ck-annotation__info','label','set','ck-comment--','ck-annotation__actions--hidden','placeholder','ck-annotation__user','change:isEnabled','ck-comment__info','_model','buttonView','children','bindTemplate','time','withText','isConfirm','ck-comment--remove','cancelConfirm','authoredAt','Reply...','actionBar','addMany','items','setTemplate','formatDateTime','actionIndicator','getTemplate','ck-comment__info-time','ck-annotation__content-wrapper','isExternal','isSystemComment','isEnabled','threeVerticalDots','change:isVisible','Delete\x20comment?','ck-comment__wrapper','Edit','switchToEditMode','getExternalCommentNote','some','ck-annotation__actions','isEditable','EXTERNAL_IMPORT_WORD_COMMENT','author','pencil'];(function(_0x1b96b9,_0x5a4066){const _0x2fd28c=function(_0xab74e5){while(--_0xab74e5){_0x1b96b9['push'](_0x1b96b9['shift']());}};_0x2fd28c(++_0x5a4066);}(_0x5a40,0xd7));const _0x2fd2=function(_0x1b96b9,_0x5a4066){_0x1b96b9=_0x1b96b9-0x0;let _0x2fd28c=_0x5a40[_0x1b96b9];return _0x2fd28c;};import{ButtonView as _0x192805,createDropdown as _0x5b480a,ListView as _0x5d888c,ListItemView as _0x764e98}from'ckeditor5/src/ui';import{icons as _0x5f8eee}from'ckeditor5/src/core';import{UserView as _0x169513,ConfirmMixin as _0x4bfcfa}from'ckeditor5-collaboration/src/collaboration-core';import _0x191a4d from'./basecommentview';import _0x530252 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x2ef3b7}from'../../../utils/common-translations';export default class ut extends _0x4bfcfa(_0x191a4d){constructor(_0x5a92bd,_0x5a445d,_0x4a5816){super(_0x5a92bd,_0x5a445d,_0x4a5816),this['set'](_0x2fd2('0x2f'),null),this[_0x2fd2('0x18')](_0x2fd2('0x1b'),_0x2ef3b7(_0x5a92bd,_0x2fd2('0x29'))),this[_0x2fd2('0x55')](_0x2fd2('0x28'))['to'](_0x5a445d),this['bind']('resolvedAt')['to'](_0x5a445d),this[_0x2fd2('0x2a')]=this['createCollection'](),this['isSystemComment']||(this[_0x2fd2('0x12')]=this[_0x2fd2('0x3')](),this[_0x2fd2('0x48')]=this[_0x2fd2('0x4e')](),this[_0x2fd2('0x2c')]=this['createCollection'](),this[_0x2fd2('0x2c')][_0x2fd2('0x2b')]([this[_0x2fd2('0x12')],this[_0x2fd2('0x48')]]),this[_0x2fd2('0xa')]=this[_0x2fd2('0x5')](),this['actionBar'][_0x2fd2('0x47')](this['dropdown'])),this[_0x2fd2('0x49')]=new _0x169513(_0x5a92bd,_0x5a445d[_0x2fd2('0x41')],this['getUserViewNotificationText']()),this[_0x2fd2('0x49')]['extendTemplate']({'attributes':{'class':[_0x2fd2('0x9'),_0x2fd2('0x1c')]}}),this['listenTo'](_0x5a445d,'change:isRemovable',()=>this[_0x2fd2('0x27')]()),this[_0x2fd2('0x2d')](this[_0x2fd2('0x30')]());}[_0x2fd2('0x30')](){const _0x80f850=this[_0x2fd2('0x22')],_0x1b9c7c=[{'tag':_0x2fd2('0x46'),'attributes':{'class':[_0x2fd2('0x1e'),_0x2fd2('0x16')]},'children':[{'tag':_0x2fd2('0x4'),'children':[{'text':this[_0x2fd2('0x49')][_0x2fd2('0x4c')]}],'attributes':{'class':['ck-comment__info-name',_0x2fd2('0x14')]}},{'tag':_0x2fd2('0x23'),'attributes':{'datetime':_0x80f850['to'](_0x2fd2('0x28')),'class':[_0x2fd2('0x31'),_0x2fd2('0x59')]},'children':[{'text':_0x80f850['to'](_0x2fd2('0x28'),_0x20f9ba=>this[_0x2fd2('0x0')][_0x2fd2('0x2e')](_0x20f9ba))}]}]},{'tag':_0x2fd2('0x46'),'attributes':{'class':['ck-comment__actions',_0x2fd2('0x3e'),_0x80f850['if']('isEditMode','ck-comment__actions--hidden'),_0x80f850['if'](_0x2fd2('0x44'),_0x2fd2('0x1a'))]},'children':this['actionBar']},{'tag':_0x2fd2('0x46'),'attributes':{'class':[_0x2fd2('0x32')]},'children':this['visibleView']}];return this[_0x2fd2('0x1f')][_0x2fd2('0x33')]&&_0x1b9c7c[_0x2fd2('0x13')]({'tag':'div','attributes':{'class':[_0x2fd2('0xf')]},'children':[{'text':this[_0x2fd2('0x3c')]()}]}),{'tag':'li','attributes':{'class':[_0x2fd2('0x39'),_0x80f850['if'](_0x2fd2('0x25'),'ck-comment--remove-confirmation')],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':[_0x2fd2('0x4b'),'ck-annotation',_0x80f850['if'](_0x2fd2('0x44'),_0x2fd2('0xd')),_0x80f850['if'](_0x2fd2('0x34'),_0x2fd2('0x4f')),_0x80f850['to'](_0x2fd2('0x2f'),_0x3f266a=>_0x3f266a?_0x2fd2('0x19')+_0x3f266a:'')],'data-author-id':this[_0x2fd2('0x1f')][_0x2fd2('0x41')]['id'],'data-comment-id':this['_model']['id']},'children':[this[_0x2fd2('0x49')],{'tag':_0x2fd2('0x46'),'attributes':{'class':['ck-comment__main',_0x2fd2('0x43')]},'children':_0x1b9c7c}]}]};}[_0x2fd2('0x3')](){const _0x2d5a42=new _0x192805(this[_0x2fd2('0x5c')]);return _0x2d5a42[_0x2fd2('0x17')]=_0x2ef3b7(this['locale'],_0x2fd2('0x3a')),_0x2d5a42[_0x2fd2('0x8')]=_0x5f8eee[_0x2fd2('0x42')],_0x2d5a42[_0x2fd2('0x24')]=!0x0,_0x2d5a42['extendTemplate']({'attributes':{'class':_0x2fd2('0xd')}}),_0x2d5a42[_0x2fd2('0x55')](_0x2fd2('0x35'))['to'](this[_0x2fd2('0x1f')],_0x2fd2('0x45'),_0x56c54c=>!_0x56c54c),_0x2d5a42[_0x2fd2('0x55')]('isVisible')['to'](this[_0x2fd2('0x1f')],_0x2fd2('0x3f')),_0x2d5a42['on'](_0x2fd2('0x1'),()=>this[_0x2fd2('0x3b')]()),_0x2d5a42;}[_0x2fd2('0x4e')](){const _0x2ef744=new _0x192805(this[_0x2fd2('0x5c')]);return _0x2ef744[_0x2fd2('0x17')]=_0x2ef3b7(this[_0x2fd2('0x5c')],_0x2fd2('0x7')),_0x2ef744[_0x2fd2('0x8')]=_0x530252,_0x2ef744[_0x2fd2('0x24')]=!0x0,_0x2ef744['extendTemplate']({'attributes':{'class':_0x2fd2('0x26')}}),_0x2ef744[_0x2fd2('0x55')]('isEnabled')['to'](this[_0x2fd2('0x1f')],_0x2fd2('0x45'),_0x36a665=>!_0x36a665),_0x2ef744[_0x2fd2('0x55')]('isVisible')['to'](this['_model'],'isRemovable'),_0x2ef744['on']('execute',()=>{this[_0x2fd2('0x50')](_0x2ef3b7(this['locale'],_0x2fd2('0x38')),this[_0x2fd2('0x15')])['then'](()=>{this[_0x2fd2('0x54')](_0x2fd2('0x10'),this[_0x2fd2('0x1f')]['id']);});}),_0x2ef744;}[_0x2fd2('0x5')](){const _0x19bdbb=_0x5b480a(this[_0x2fd2('0x5c')]),_0x5de224=_0x19bdbb[_0x2fd2('0x51')]['children'],_0x383bba=new _0x5d888c(this['locale']),_0x34e138=(_0x31b352,_0x41dee0=-0x1)=>{const _0x1df78f=new _0x764e98(this[_0x2fd2('0x5c')]);_0x1df78f[_0x2fd2('0x21')][_0x2fd2('0x47')](_0x31b352);const _0x39658c=_0x41dee0>-0x1?_0x41dee0:_0x383bba[_0x2fd2('0x2c')]['length'];_0x383bba[_0x2fd2('0x2c')]['add'](_0x1df78f,_0x39658c),_0x19bdbb['listenTo'](_0x31b352,_0x2fd2('0x1d'),()=>{_0x19bdbb[_0x2fd2('0x35')]=[...this[_0x2fd2('0x2c')]][_0x2fd2('0x3d')](_0x3bb8c2=>_0x3bb8c2['isEnabled']);}),_0x19bdbb[_0x2fd2('0x5b')](_0x31b352,_0x2fd2('0x37'),()=>{_0x19bdbb['buttonView'][_0x2fd2('0x56')]=[...this['items']][_0x2fd2('0x3d')](_0x2da1e0=>_0x2da1e0[_0x2fd2('0x56')]);});};_0x19bdbb[_0x2fd2('0x53')]='sw',_0x19bdbb['buttonView'][_0x2fd2('0x18')]({'label':_0x2ef3b7(this[_0x2fd2('0x5c')],'Show\x20more\x20items'),'icon':_0x5f8eee[_0x2fd2('0x36')]}),_0x19bdbb[_0x2fd2('0x35')]=[...this['items']][_0x2fd2('0x3d')](_0x34bbe3=>_0x34bbe3['isEnabled']),_0x19bdbb[_0x2fd2('0x20')]['isVisible']=[...this[_0x2fd2('0x2c')]][_0x2fd2('0x3d')](_0x50b551=>_0x50b551[_0x2fd2('0x56')]);for(const _0x4feeb5 of this['items'])_0x34e138(_0x4feeb5);return _0x5de224[_0x2fd2('0x47')](_0x383bba),_0x19bdbb[_0x2fd2('0x5b')](this['items'],_0x2fd2('0x47'),(_0x2f91d8,_0x462f91,_0x833f81)=>{_0x34e138(_0x462f91,_0x833f81);}),_0x19bdbb[_0x2fd2('0x5b')](this[_0x2fd2('0x2c')],_0x2fd2('0x11'),(_0x293b9c,_0x29f9ca,_0x19e03d)=>{_0x383bba[_0x2fd2('0x2c')]['remove'](_0x19e03d);}),_0x19bdbb;}['_attachActions'](_0x18dc54,_0x4ce738){const _0xfa223d=_0x18dc54&&_0x18dc54[_0x2fd2('0x15')];_0xfa223d&&(this['listenTo'](_0xfa223d,'mouseenter',()=>this[_0x2fd2('0x2f')]=_0x4ce738),this[_0x2fd2('0x5b')](_0xfa223d,_0x2fd2('0x6'),()=>this[_0x2fd2('0x2f')]=_0x4ce738),this[_0x2fd2('0x5b')](_0xfa223d,'mouseleave',()=>this[_0x2fd2('0x2f')]=null),this['listenTo'](_0xfa223d,_0x2fd2('0x5a'),()=>this[_0x2fd2('0x2f')]=null));}[_0x2fd2('0x52')](){const _0x2766df=super[_0x2fd2('0x52')]();return _0x2766df[_0x2fd2('0x55')](_0x2fd2('0x1b'))['to'](this),_0x2766df;}[_0x2fd2('0x3c')](){return'importWord'===this[_0x2fd2('0x1f')][_0x2fd2('0xb')][_0x2fd2('0x57')][_0x2fd2('0x4d')]?_0x2ef3b7(this['locale'],_0x2fd2('0x40')):_0x2ef3b7(this[_0x2fd2('0x5c')],_0x2fd2('0xc'));}['getUserViewNotificationText'](){return this[_0x2fd2('0x1f')]['isExternal']?_0x2fd2('0xe')===this[_0x2fd2('0x1f')]['attributes'][_0x2fd2('0x57')][_0x2fd2('0x4d')]?_0x2ef3b7(this[_0x2fd2('0x5c')],'EXTERNAL_IMPORT_WORD_AVATAR',this[_0x2fd2('0x1f')]['creator'][_0x2fd2('0x4c')]):_0x2ef3b7(this[_0x2fd2('0x5c')],_0x2fd2('0x4a'),this['_model']['creator'][_0x2fd2('0x4c')]):null;}['render'](){super[_0x2fd2('0x2')](),this['_attachActions'](this[_0x2fd2('0x12')],_0x2fd2('0x5d')),this[_0x2fd2('0x58')](this[_0x2fd2('0x48')],_0x2fd2('0x11'));}}
package/src/comments.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x1d67=['Comments','pluginName'];(function(_0x2c5732,_0x1d67d0){var _0x204ffd=function(_0x5e3e91){while(--_0x5e3e91){_0x2c5732['push'](_0x2c5732['shift']());}};_0x204ffd(++_0x1d67d0);}(_0x1d67,0x6f));var _0x204f=function(_0x2c5732,_0x1d67d0){_0x2c5732=_0x2c5732-0x0;var _0x204ffd=_0x1d67[_0x2c5732];return _0x204ffd;};import{Plugin as _0x38cfd8}from'ckeditor5/src/core';import _0x2bf153 from'./comments/commentsrepository';import _0x5e9fe1 from'./comments/commentsediting';import _0x1b7b65 from'./comments/commentsui';import _0x382bff from'./commentsonly';import _0x30781d from'./annotations/widesidebar';import _0x364995 from'./annotations/narrowsidebar';import _0x349690 from'./annotations/inlineannotations';import _0x2ee6d5 from'./comments/commentsarchiveui';import _0x350dd1 from'./comments/commentsarchive';export default class f extends _0x38cfd8{static get['requires'](){return[_0x2bf153,_0x5e9fe1,_0x1b7b65,_0x350dd1,_0x2ee6d5,_0x382bff,_0x30781d,_0x364995,_0x349690];}static get[_0x204f('0x0')](){return _0x204f('0x1');}}
23
+ var _0x1f0c=['requires','Comments','pluginName'];(function(_0x3bf97f,_0x1f0c66){var _0x3c7bf1=function(_0x3b08e1){while(--_0x3b08e1){_0x3bf97f['push'](_0x3bf97f['shift']());}};_0x3c7bf1(++_0x1f0c66);}(_0x1f0c,0x160));var _0x3c7b=function(_0x3bf97f,_0x1f0c66){_0x3bf97f=_0x3bf97f-0x0;var _0x3c7bf1=_0x1f0c[_0x3bf97f];return _0x3c7bf1;};import{Plugin as _0x3cf0fd}from'ckeditor5/src/core';import _0x541ef7 from'./comments/commentsrepository';import _0x4acb21 from'./comments/commentsediting';import _0x5ef7dd from'./comments/commentsui';import _0x48108a from'./commentsonly';import _0x12828d from'./annotations/widesidebar';import _0x318217 from'./annotations/narrowsidebar';import _0xb6eb1c from'./annotations/inlineannotations';import _0x57e154 from'./comments/commentsarchiveui';import _0x5a89d1 from'./comments/commentsarchive';export default class f extends _0x3cf0fd{static get[_0x3c7b('0x2')](){return[_0x541ef7,_0x4acb21,_0x5ef7dd,_0x5a89d1,_0x57e154,_0x48108a,_0x12828d,_0x318217,_0xb6eb1c];}static get[_0x3c7b('0x1')](){return _0x3c7b('0x0');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3eab=['afterInit','commentsOnly','cut','clipboardInput','affectsData','stopListening','highest','stop','DragDrop','forceDisabled','isEnabled','editing','commands','plugins','addCommentThread','CommentsOnly','_enableCommentsOnlyMode','editor','clearForceDisabled','has','document','get','commentsOnlyMode','listenTo','pluginName','_disableCommentsOnlyMode'];(function(_0xa0a55,_0x3eabec){const _0x201ed1=function(_0x16ae3e){while(--_0x16ae3e){_0xa0a55['push'](_0xa0a55['shift']());}};_0x201ed1(++_0x3eabec);}(_0x3eab,0x66));const _0x201e=function(_0xa0a55,_0x3eabec){_0xa0a55=_0xa0a55-0x0;let _0x201ed1=_0x3eab[_0xa0a55];return _0x201ed1;};import{Plugin as _0x1b5583}from'ckeditor5/src/core';import _0x25c4fb from'./comments/commentsediting';export default class n extends _0x1b5583{static get[_0x201e('0x0')](){return _0x201e('0x11');}static get['requires'](){return[_0x25c4fb];}constructor(_0xe6718e){super(_0xe6718e),this['set'](_0x201e('0xc'),!0x1),this['on']('change:isEnabled',(_0x2bb9a9,_0x138b73,_0x28d17b)=>{_0x28d17b?this['_enableCommentsOnlyMode']():this[_0x201e('0x1')]();});}[_0x201e('0x2')](){!this[_0x201e('0xc')]&&this[_0x201e('0x13')]['config'][_0x201e('0x17')](_0x201e('0x3'))&&(this[_0x201e('0xc')]=!0x0);}[_0x201e('0x12')](){for(const [_0x4ade4e,_0x4a18c2]of this[_0x201e('0x13')]['commands'])_0x4a18c2[_0x201e('0x6')]&&_0x201e('0x10')!==_0x4ade4e&&_0x4a18c2[_0x201e('0xb')](_0x201e('0x18'));this[_0x201e('0x13')][_0x201e('0xf')][_0x201e('0x15')](_0x201e('0xa'))&&this[_0x201e('0x13')][_0x201e('0xf')][_0x201e('0x17')](_0x201e('0xa'))[_0x201e('0xb')](_0x201e('0x18'));const _0x23b0b7=this['editor'][_0x201e('0xd')]['view']['document'];this[_0x201e('0x19')](_0x23b0b7,_0x201e('0x4'),_0x28522d=>_0x28522d[_0x201e('0x9')](),{'priority':_0x201e('0x8')}),this[_0x201e('0x19')](_0x23b0b7,_0x201e('0x5'),_0x40c895=>_0x40c895[_0x201e('0x9')](),{'priority':_0x201e('0x8')}),this[_0x201e('0x19')](_0x23b0b7,'delete',_0x402af3=>_0x402af3[_0x201e('0x9')](),{'priority':_0x201e('0x8')});}[_0x201e('0x1')](){for(const [_0x319663,_0x1bfc47]of this[_0x201e('0x13')][_0x201e('0xe')])_0x1bfc47[_0x201e('0x6')]&&_0x201e('0x10')!==_0x319663&&_0x1bfc47[_0x201e('0x14')](_0x201e('0x18'));this[_0x201e('0x7')](this['editor'][_0x201e('0xd')]['view'][_0x201e('0x16')]);}}
23
+ const _0x482f=['highest','forceDisabled','has','requires','editor','delete','clearForceDisabled','commentsOnly','document','CommentsOnly','listenTo','clipboardInput','pluginName','affectsData','DragDrop','cut','_enableCommentsOnlyMode','plugins','commands','afterInit','change:isEnabled','get','isEnabled','view','editing','_disableCommentsOnlyMode','stop','commentsOnlyMode'];(function(_0x56d625,_0x482fec){const _0x2901a7=function(_0x38de01){while(--_0x38de01){_0x56d625['push'](_0x56d625['shift']());}};_0x2901a7(++_0x482fec);}(_0x482f,0x1d1));const _0x2901=function(_0x56d625,_0x482fec){_0x56d625=_0x56d625-0x0;let _0x2901a7=_0x482f[_0x56d625];return _0x2901a7;};import{Plugin as _0x3d0ec3}from'ckeditor5/src/core';import _0x671841 from'./comments/commentsediting';export default class n extends _0x3d0ec3{static get[_0x2901('0x17')](){return _0x2901('0x14');}static get[_0x2901('0xe')](){return[_0x671841];}constructor(_0x391d2a){super(_0x391d2a),this['set']('isEnabled',!0x1),this['on'](_0x2901('0x3'),(_0x597d5f,_0x15009f,_0x22c2a3)=>{_0x22c2a3?this[_0x2901('0x1b')]():this[_0x2901('0x8')]();});}[_0x2901('0x2')](){!this[_0x2901('0x5')]&&this['editor']['config'][_0x2901('0x4')](_0x2901('0x12'))&&(this[_0x2901('0x5')]=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x2c0dcf,_0x1f8914]of this[_0x2901('0xf')][_0x2901('0x1')])_0x1f8914[_0x2901('0x18')]&&'addCommentThread'!==_0x2c0dcf&&_0x1f8914[_0x2901('0xc')]('commentsOnlyMode');this[_0x2901('0xf')][_0x2901('0x0')][_0x2901('0xd')](_0x2901('0x19'))&&this[_0x2901('0xf')]['plugins'][_0x2901('0x4')](_0x2901('0x19'))[_0x2901('0xc')](_0x2901('0xa'));const _0x308053=this['editor'][_0x2901('0x7')][_0x2901('0x6')][_0x2901('0x13')];this['listenTo'](_0x308053,_0x2901('0x1a'),_0xb1c1f7=>_0xb1c1f7[_0x2901('0x9')](),{'priority':_0x2901('0xb')}),this[_0x2901('0x15')](_0x308053,_0x2901('0x16'),_0x1a2e10=>_0x1a2e10[_0x2901('0x9')](),{'priority':'highest'}),this[_0x2901('0x15')](_0x308053,_0x2901('0x10'),_0x440f01=>_0x440f01[_0x2901('0x9')](),{'priority':_0x2901('0xb')});}[_0x2901('0x8')](){for(const [_0xf22ecf,_0x360b73]of this[_0x2901('0xf')][_0x2901('0x1')])_0x360b73['affectsData']&&'addCommentThread'!==_0xf22ecf&&_0x360b73[_0x2901('0x11')]('commentsOnlyMode');this['stopListening'](this[_0x2901('0xf')][_0x2901('0x7')][_0x2901('0x6')][_0x2901('0x13')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x46052c,_0x1b4034,_0x533a41){const t=_0x46052c['t'];switch(_0x1b4034){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'},_0x533a41);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'},_0x533a41);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'},_0x533a41);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'},_0x533a41);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(_0x2c8043,_0x1b75d0,_0x2e9b82){const t=_0x2c8043['t'];switch(_0x1b75d0){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'},_0x2e9b82);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'},_0x2e9b82);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'},_0x2e9b82);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'},_0x2e9b82);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 _0x47e2=['disconnect','characterData','cancel','type','childList','observe','attributeName','class','attributes'];(function(_0x3242f2,_0x47e25e){const _0x50d182=function(_0x45d27e){while(--_0x45d27e){_0x3242f2['push'](_0x3242f2['shift']());}};_0x50d182(++_0x47e25e);}(_0x47e2,0x137));const _0x50d1=function(_0x3242f2,_0x47e25e){_0x3242f2=_0x3242f2-0x0;let _0x50d182=_0x47e2[_0x3242f2];return _0x50d182;};import{throttle as _0x47ebff}from'lodash-es';export default function Dt(_0x8647f4){const _0x4d5699=_0x47ebff(_0x8647f4,0x1e),_0x49f33a=new MutationObserver(_0x3f8552=>{for(const _0x85e8d9 of _0x3f8552)(_0x50d1('0x3')==_0x85e8d9[_0x50d1('0x7')]&&_0x50d1('0x2')==_0x85e8d9[_0x50d1('0x1')]||_0x50d1('0x8')==_0x85e8d9[_0x50d1('0x7')]||_0x50d1('0x5')==_0x85e8d9['type'])&&_0x4d5699();});return{'attach'(_0xdde2e9){_0x49f33a[_0x50d1('0x0')](_0xdde2e9,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x49f33a[_0x50d1('0x4')](),_0x4d5699[_0x50d1('0x6')]();}};}
23
+ const _0xebfb=['class','childList','cancel','type','attributes','characterData'];(function(_0xe525b7,_0xebfb28){const _0x2c1051=function(_0x550d02){while(--_0x550d02){_0xe525b7['push'](_0xe525b7['shift']());}};_0x2c1051(++_0xebfb28);}(_0xebfb,0xa0));const _0x2c10=function(_0xe525b7,_0xebfb28){_0xe525b7=_0xe525b7-0x0;let _0x2c1051=_0xebfb[_0xe525b7];return _0x2c1051;};import{throttle as _0x485d08}from'lodash-es';export default function Dt(_0x2726e6){const _0x57ddba=_0x485d08(_0x2726e6,0x1e),_0x1d9548=new MutationObserver(_0x4f4e76=>{for(const _0x59f07b of _0x4f4e76)(_0x2c10('0x0')==_0x59f07b[_0x2c10('0x5')]&&_0x2c10('0x2')==_0x59f07b['attributeName']||_0x2c10('0x3')==_0x59f07b[_0x2c10('0x5')]||_0x2c10('0x1')==_0x59f07b[_0x2c10('0x5')])&&_0x57ddba();});return{'attach'(_0x1f043d){_0x1d9548['observe'](_0x1f043d,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x1d9548['disconnect'](),_0x57ddba[_0x2c10('0x4')]();}};}