@ckeditor/ckeditor5-comments 0.0.0-nightly-20240117.0 → 0.0.0-nightly-20240119.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 _0xdcf9=['focus','EXTERNAL_IMPORT_WORD_COMMENT','_createCommentInputView','extendTemplate','_createDropdown','icon','isVisible','creator','ck-annotation__actions','isEnabled','EXTERNAL_AVATAR','_config','panelView','Delete\x20comment?','pencil','removeComment','element','createCollection','mouseleave','dropdown','div','Reply...','author','listenTo','ck-annotation__user','ck-annotation__main','addMany','isConfirm','ck-comment__user','then','edit','ck-annotation__info-time','_createRemoveButton','fire','items','switchToEditMode','_attachActions','isRemovable','span','userView','ck-comment--remove','threeVerticalDots','attributes','actionIndicator','isReadOnly','ck-annotation__content-wrapper','panelPosition','removeButton','blur','ck-comment__info-name','ck-comment--info','placeholder','locale','set','bindTemplate','getExternalCommentNote','time','isSystemComment','change:isEnabled','some','isEditable','Remove','importWord','ck-comment__wrapper','source','formatDateTime','@external','_model','label','actionBar','bind','buttonView','setTemplate','isEditMode','change:isVisible','render','children','visibleView','Edit','execute','ck-comment__main','getTemplate','add','withText','name','remove','isExternal','ck-comment--remove-confirmation','Show\x20more\x20items','editButton','getUserViewNotificationText'];(function(_0x34004c,_0xdcf9e4){const _0x2c20d8=function(_0x55952c){while(--_0x55952c){_0x34004c['push'](_0x34004c['shift']());}};_0x2c20d8(++_0xdcf9e4);}(_0xdcf9,0x13e));const _0x2c20=function(_0x34004c,_0xdcf9e4){_0x34004c=_0x34004c-0x0;let _0x2c20d8=_0xdcf9[_0x34004c];return _0x2c20d8;};import{ButtonView as _0x4c23b1,createDropdown as _0x2ce9a5,ListView as _0x438702,ListItemView as _0x3de3b5}from'ckeditor5/src/ui.js';import{icons as _0x2cff69}from'ckeditor5/src/core.js';import{UserView as _0x229f70,ConfirmMixin as _0x2d49d4}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x696259 from'./basecommentview.js';import _0x32efc6 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x279df0}from'../../../utils/common-translations.js';export default class pt extends _0x2d49d4(_0x696259){constructor(_0x24ab9e,_0x2cffa1,_0x5a9eaa){super(_0x24ab9e,_0x2cffa1,_0x5a9eaa),this[_0x2c20('0x8')](_0x2c20('0x59'),null),this['set'](_0x2c20('0x6'),_0x279df0(_0x24ab9e,_0x2c20('0x43'))),this['bind']('authoredAt')['to'](_0x2cffa1),this[_0x2c20('0x19')]('resolvedAt')['to'](_0x2cffa1),this[_0x2c20('0x18')]=this[_0x2c20('0x3f')](),this['isSystemComment']||(this[_0x2c20('0x2c')]=this['_createEditButton'](),this[_0x2c20('0x2')]=this[_0x2c20('0x4e')](),this[_0x2c20('0x50')]=this['createCollection'](),this[_0x2c20('0x50')][_0x2c20('0x48')]([this['editButton'],this[_0x2c20('0x2')]]),this['dropdown']=this[_0x2c20('0x32')](),this[_0x2c20('0x18')][_0x2c20('0x25')](this[_0x2c20('0x41')])),this[_0x2c20('0x55')]=new _0x229f70(_0x24ab9e,_0x2cffa1['author'],this[_0x2c20('0x2d')]()),this['userView']['extendTemplate']({'attributes':{'class':[_0x2c20('0x4a'),_0x2c20('0x46')]}}),this['listenTo'](_0x2cffa1,'change:isRemovable',()=>this['cancelConfirm']()),this[_0x2c20('0x1b')](this[_0x2c20('0x24')]());}[_0x2c20('0x24')](){const _0x454bfc=this[_0x2c20('0x9')],_0x11e41c=[{'tag':_0x2c20('0x42'),'attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':_0x2c20('0x54'),'children':[{'text':this['userView'][_0x2c20('0x27')]}],'attributes':{'class':[_0x2c20('0x4'),'ck-annotation__info-name']}},{'tag':_0x2c20('0xb'),'attributes':{'datetime':_0x454bfc['to']('authoredAt'),'class':['ck-comment__info-time',_0x2c20('0x4d')]},'children':[{'text':_0x454bfc['to']('authoredAt',_0x23cb62=>this[_0x2c20('0x39')][_0x2c20('0x14')](_0x23cb62))}]}]},{'tag':_0x2c20('0x42'),'attributes':{'class':['ck-comment__actions',_0x2c20('0x36'),_0x454bfc['if']('isEditMode','ck-comment__actions--hidden'),_0x454bfc['if'](_0x2c20('0x1c'),'ck-annotation__actions--hidden')]},'children':this[_0x2c20('0x18')]},{'tag':_0x2c20('0x42'),'attributes':{'class':[_0x2c20('0x0')]},'children':this[_0x2c20('0x20')]}];return this[_0x2c20('0x16')][_0x2c20('0x29')]&&_0x11e41c['push']({'tag':_0x2c20('0x42'),'attributes':{'class':['ck-comment__external']},'children':[{'text':this[_0x2c20('0xa')]()}]}),{'tag':'li','attributes':{'class':[_0x2c20('0x12'),_0x454bfc['if'](_0x2c20('0x49'),_0x2c20('0x2a'))],'tabindex':-0x1},'children':[{'tag':_0x2c20('0x42'),'attributes':{'class':['ck-comment','ck-annotation',_0x454bfc['if'](_0x2c20('0x1c'),'ck-comment--edit'),_0x454bfc['if'](_0x2c20('0xc'),_0x2c20('0x5')),_0x454bfc['to'](_0x2c20('0x59'),_0x42bd0f=>_0x42bd0f?'ck-comment--'+_0x42bd0f:'')],'data-author-id':this[_0x2c20('0x16')][_0x2c20('0x44')]['id'],'data-comment-id':this[_0x2c20('0x16')]['id']},'children':[this[_0x2c20('0x55')],{'tag':'div','attributes':{'class':[_0x2c20('0x23'),_0x2c20('0x47')]},'children':_0x11e41c}]}]};}['_createEditButton'](){const _0xc21bf5=new _0x4c23b1(this[_0x2c20('0x7')]);return _0xc21bf5[_0x2c20('0x17')]=_0x279df0(this[_0x2c20('0x7')],_0x2c20('0x21')),_0xc21bf5[_0x2c20('0x33')]=_0x2cff69[_0x2c20('0x3c')],_0xc21bf5['withText']=!0x0,_0xc21bf5['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0xc21bf5['bind'](_0x2c20('0x37'))['to'](this['_model'],'isReadOnly',_0x28b4c7=>!_0x28b4c7),_0xc21bf5[_0x2c20('0x19')](_0x2c20('0x34'))['to'](this[_0x2c20('0x16')],_0x2c20('0xf')),_0xc21bf5['on']('execute',()=>this[_0x2c20('0x51')]()),_0xc21bf5;}[_0x2c20('0x4e')](){const _0x35231c=new _0x4c23b1(this[_0x2c20('0x7')]);return _0x35231c['label']=_0x279df0(this[_0x2c20('0x7')],_0x2c20('0x10')),_0x35231c[_0x2c20('0x33')]=_0x32efc6,_0x35231c[_0x2c20('0x26')]=!0x0,_0x35231c[_0x2c20('0x31')]({'attributes':{'class':_0x2c20('0x56')}}),_0x35231c[_0x2c20('0x19')](_0x2c20('0x37'))['to'](this[_0x2c20('0x16')],_0x2c20('0x5a'),_0x4cc46c=>!_0x4cc46c),_0x35231c[_0x2c20('0x19')](_0x2c20('0x34'))['to'](this[_0x2c20('0x16')],_0x2c20('0x53')),_0x35231c['on'](_0x2c20('0x22'),()=>{this['showConfirm'](_0x279df0(this[_0x2c20('0x7')],_0x2c20('0x3b')),this[_0x2c20('0x3e')])[_0x2c20('0x4b')](()=>{this[_0x2c20('0x4f')](_0x2c20('0x3d'),this[_0x2c20('0x16')]['id']);});}),_0x35231c;}[_0x2c20('0x32')](){const _0x2713ac=_0x2ce9a5(this[_0x2c20('0x7')]),_0x1f9add=_0x2713ac[_0x2c20('0x3a')][_0x2c20('0x1f')],_0x314cce=new _0x438702(this[_0x2c20('0x7')]),_0x6155a7=(_0x3222bb,_0x290678=-0x1)=>{const _0x1a9ebf=new _0x3de3b5(this[_0x2c20('0x7')]);_0x1a9ebf[_0x2c20('0x1f')][_0x2c20('0x25')](_0x3222bb);const _0x5bd30e=_0x290678>-0x1?_0x290678:_0x314cce[_0x2c20('0x50')]['length'];_0x314cce[_0x2c20('0x50')][_0x2c20('0x25')](_0x1a9ebf,_0x5bd30e),_0x2713ac[_0x2c20('0x45')](_0x3222bb,_0x2c20('0xd'),()=>{_0x2713ac[_0x2c20('0x37')]=[...this[_0x2c20('0x50')]][_0x2c20('0xe')](_0x43f571=>_0x43f571[_0x2c20('0x37')]);}),_0x2713ac[_0x2c20('0x45')](_0x3222bb,_0x2c20('0x1d'),()=>{_0x2713ac['buttonView'][_0x2c20('0x34')]=[...this[_0x2c20('0x50')]]['some'](_0x6b1e04=>_0x6b1e04['isVisible']);});};_0x2713ac[_0x2c20('0x1')]='sw',_0x2713ac[_0x2c20('0x1a')][_0x2c20('0x8')]({'label':_0x279df0(this['locale'],_0x2c20('0x2b')),'icon':_0x2cff69[_0x2c20('0x57')]}),_0x2713ac[_0x2c20('0x37')]=[...this[_0x2c20('0x50')]][_0x2c20('0xe')](_0x2c0da4=>_0x2c0da4[_0x2c20('0x37')]),_0x2713ac[_0x2c20('0x1a')][_0x2c20('0x34')]=[...this[_0x2c20('0x50')]][_0x2c20('0xe')](_0x5814d4=>_0x5814d4[_0x2c20('0x34')]);for(const _0x39441c of this[_0x2c20('0x50')])_0x6155a7(_0x39441c);return _0x1f9add[_0x2c20('0x25')](_0x314cce),_0x2713ac['listenTo'](this[_0x2c20('0x50')],_0x2c20('0x25'),(_0x4eedab,_0x10fb9a,_0x151b4e)=>{_0x6155a7(_0x10fb9a,_0x151b4e);}),_0x2713ac[_0x2c20('0x45')](this[_0x2c20('0x50')],_0x2c20('0x28'),(_0x313661,_0x1799c7,_0x49a33c)=>{_0x314cce[_0x2c20('0x50')][_0x2c20('0x28')](_0x49a33c);}),_0x2713ac;}['_attachActions'](_0x41cdef,_0x40ec35){const _0x507cfe=_0x41cdef&&_0x41cdef[_0x2c20('0x3e')];_0x507cfe&&(this[_0x2c20('0x45')](_0x507cfe,'mouseenter',()=>this[_0x2c20('0x59')]=_0x40ec35),this['listenTo'](_0x507cfe,_0x2c20('0x2e'),()=>this[_0x2c20('0x59')]=_0x40ec35),this[_0x2c20('0x45')](_0x507cfe,_0x2c20('0x40'),()=>this[_0x2c20('0x59')]=null),this[_0x2c20('0x45')](_0x507cfe,_0x2c20('0x3'),()=>this[_0x2c20('0x59')]=null));}[_0x2c20('0x30')](){const _0x515035=super[_0x2c20('0x30')]();return _0x515035[_0x2c20('0x19')](_0x2c20('0x6'))['to'](this),_0x515035;}[_0x2c20('0xa')](){return _0x2c20('0x11')===this['_model'][_0x2c20('0x58')][_0x2c20('0x15')][_0x2c20('0x13')]?_0x279df0(this[_0x2c20('0x7')],_0x2c20('0x2f')):_0x279df0(this[_0x2c20('0x7')],'EXTERNAL_COMMENT');}[_0x2c20('0x2d')](){return this['_model']['isExternal']?_0x2c20('0x11')===this['_model'][_0x2c20('0x58')]['@external'][_0x2c20('0x13')]?_0x279df0(this[_0x2c20('0x7')],'EXTERNAL_IMPORT_WORD_AVATAR',this[_0x2c20('0x16')][_0x2c20('0x35')][_0x2c20('0x27')]):_0x279df0(this[_0x2c20('0x7')],_0x2c20('0x38'),this[_0x2c20('0x16')]['creator'][_0x2c20('0x27')]):null;}[_0x2c20('0x1e')](){super[_0x2c20('0x1e')](),this[_0x2c20('0x52')](this[_0x2c20('0x2c')],_0x2c20('0x4c')),this[_0x2c20('0x52')](this['removeButton'],_0x2c20('0x28'));}}
23
+ const _0x1e21=['time','attributes','ck-comment--','isEditMode','Edit','editButton','icon','element','ck-annotation__user','source','bind','mouseleave','remove','ck-annotation__actions--hidden','actionIndicator','locale','panelView','items','render','ck-comment--edit','cancelConfirm','ck-annotation__info','ck-annotation__actions','author','extendTemplate','some','isRemovable','isSystemComment','removeComment','ck-comment__user','isReadOnly','removeButton','span','authoredAt','setTemplate','ck-comment__info-time','_createDropdown','ck-comment__info','focus','panelPosition','EXTERNAL_COMMENT','isEditable','formatDateTime','ck-annotation__main','change:isEnabled','Remove','getExternalCommentNote','ck-comment__main','@external','ck-comment__actions','placeholder','resolvedAt','Show\x20more\x20items','ck-annotation__info-time','ck-annotation__content-wrapper','buttonView','_attachActions','getTemplate','_createCommentInputView','actionBar','addMany','threeVerticalDots','_model','ck-comment__info-name','Delete\x20comment?','switchToEditMode','createCollection','getUserViewNotificationText','add','ck-comment','change:isVisible','length','name','_createRemoveButton','pencil','blur','ck-comment--info','_config','set','children','listenTo','ck-comment--remove','ck-comment__wrapper','dropdown','div','then','withText','isEnabled','change:isRemovable','isExternal','importWord','userView','_createEditButton','isConfirm','creator','ck-annotation','isVisible'];(function(_0x328105,_0x1e2132){const _0x481adc=function(_0x59d615){while(--_0x59d615){_0x328105['push'](_0x328105['shift']());}};_0x481adc(++_0x1e2132);}(_0x1e21,0x138));const _0x481a=function(_0x328105,_0x1e2132){_0x328105=_0x328105-0x0;let _0x481adc=_0x1e21[_0x328105];return _0x481adc;};import{ButtonView as _0x36f561,createDropdown as _0x3b3115,ListView as _0x1cc540,ListItemView as _0x387e1d}from'ckeditor5/src/ui.js';import{icons as _0x17e41c}from'ckeditor5/src/core.js';import{UserView as _0x4742ab,ConfirmMixin as _0x2b327c}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x1a933a from'./basecommentview.js';import _0x4ee0f6 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x1a2238}from'../../../utils/common-translations.js';export default class pt extends _0x2b327c(_0x1a933a){constructor(_0x349ae3,_0x48b77b,_0x5b8786){super(_0x349ae3,_0x48b77b,_0x5b8786),this[_0x481a('0x39')]('actionIndicator',null),this['set'](_0x481a('0x1d'),_0x1a2238(_0x349ae3,'Reply...')),this[_0x481a('0x56')](_0x481a('0xc'))['to'](_0x48b77b),this['bind'](_0x481a('0x1e'))['to'](_0x48b77b),this[_0x481a('0x26')]=this[_0x481a('0x2d')](),this[_0x481a('0x6')]||(this[_0x481a('0x51')]=this['_createEditButton'](),this['removeButton']=this[_0x481a('0x34')](),this[_0x481a('0x5d')]=this[_0x481a('0x2d')](),this[_0x481a('0x5d')][_0x481a('0x27')]([this[_0x481a('0x51')],this[_0x481a('0xa')]]),this[_0x481a('0x3e')]=this[_0x481a('0xf')](),this[_0x481a('0x26')][_0x481a('0x2f')](this[_0x481a('0x3e')])),this['userView']=new _0x4742ab(_0x349ae3,_0x48b77b[_0x481a('0x2')],this[_0x481a('0x2e')]()),this[_0x481a('0x46')]['extendTemplate']({'attributes':{'class':[_0x481a('0x8'),_0x481a('0x54')]}}),this['listenTo'](_0x48b77b,_0x481a('0x43'),()=>this[_0x481a('0x60')]()),this[_0x481a('0xd')](this[_0x481a('0x24')]());}['getTemplate'](){const _0x33c1ae=this['bindTemplate'],_0x49b697=[{'tag':_0x481a('0x3f'),'attributes':{'class':[_0x481a('0x10'),_0x481a('0x0')]},'children':[{'tag':_0x481a('0xb'),'children':[{'text':this[_0x481a('0x46')][_0x481a('0x33')]}],'attributes':{'class':[_0x481a('0x2a'),'ck-annotation__info-name']}},{'tag':_0x481a('0x4c'),'attributes':{'datetime':_0x33c1ae['to']('authoredAt'),'class':[_0x481a('0xe'),_0x481a('0x20')]},'children':[{'text':_0x33c1ae['to'](_0x481a('0xc'),_0x58df2b=>this[_0x481a('0x38')][_0x481a('0x15')](_0x58df2b))}]}]},{'tag':'div','attributes':{'class':[_0x481a('0x1c'),_0x481a('0x1'),_0x33c1ae['if'](_0x481a('0x4f'),'ck-comment__actions--hidden'),_0x33c1ae['if'](_0x481a('0x4f'),_0x481a('0x59'))]},'children':this[_0x481a('0x26')]},{'tag':_0x481a('0x3f'),'attributes':{'class':[_0x481a('0x21')]},'children':this['visibleView']}];return this[_0x481a('0x29')]['isExternal']&&_0x49b697['push']({'tag':_0x481a('0x3f'),'attributes':{'class':['ck-comment__external']},'children':[{'text':this[_0x481a('0x19')]()}]}),{'tag':'li','attributes':{'class':[_0x481a('0x3d'),_0x33c1ae['if'](_0x481a('0x48'),'ck-comment--remove-confirmation')],'tabindex':-0x1},'children':[{'tag':_0x481a('0x3f'),'attributes':{'class':[_0x481a('0x30'),_0x481a('0x4a'),_0x33c1ae['if'](_0x481a('0x4f'),_0x481a('0x5f')),_0x33c1ae['if'](_0x481a('0x6'),_0x481a('0x37')),_0x33c1ae['to']('actionIndicator',_0x324956=>_0x324956?_0x481a('0x4e')+_0x324956:'')],'data-author-id':this['_model'][_0x481a('0x2')]['id'],'data-comment-id':this['_model']['id']},'children':[this[_0x481a('0x46')],{'tag':'div','attributes':{'class':[_0x481a('0x1a'),_0x481a('0x16')]},'children':_0x49b697}]}]};}[_0x481a('0x47')](){const _0x2f49eb=new _0x36f561(this[_0x481a('0x5b')]);return _0x2f49eb['label']=_0x1a2238(this[_0x481a('0x5b')],_0x481a('0x50')),_0x2f49eb[_0x481a('0x52')]=_0x17e41c[_0x481a('0x35')],_0x2f49eb[_0x481a('0x41')]=!0x0,_0x2f49eb['extendTemplate']({'attributes':{'class':_0x481a('0x5f')}}),_0x2f49eb[_0x481a('0x56')](_0x481a('0x42'))['to'](this[_0x481a('0x29')],_0x481a('0x9'),_0x26a3c8=>!_0x26a3c8),_0x2f49eb[_0x481a('0x56')](_0x481a('0x4b'))['to'](this[_0x481a('0x29')],_0x481a('0x14')),_0x2f49eb['on']('execute',()=>this[_0x481a('0x2c')]()),_0x2f49eb;}[_0x481a('0x34')](){const _0x1f2b64=new _0x36f561(this[_0x481a('0x5b')]);return _0x1f2b64['label']=_0x1a2238(this['locale'],_0x481a('0x18')),_0x1f2b64[_0x481a('0x52')]=_0x4ee0f6,_0x1f2b64[_0x481a('0x41')]=!0x0,_0x1f2b64[_0x481a('0x3')]({'attributes':{'class':_0x481a('0x3c')}}),_0x1f2b64[_0x481a('0x56')](_0x481a('0x42'))['to'](this[_0x481a('0x29')],_0x481a('0x9'),_0x21e0e2=>!_0x21e0e2),_0x1f2b64[_0x481a('0x56')](_0x481a('0x4b'))['to'](this[_0x481a('0x29')],_0x481a('0x5')),_0x1f2b64['on']('execute',()=>{this['showConfirm'](_0x1a2238(this[_0x481a('0x5b')],_0x481a('0x2b')),this[_0x481a('0x53')])[_0x481a('0x40')](()=>{this['fire'](_0x481a('0x7'),this[_0x481a('0x29')]['id']);});}),_0x1f2b64;}[_0x481a('0xf')](){const _0x1badf2=_0x3b3115(this['locale']),_0x3bc0d3=_0x1badf2[_0x481a('0x5c')]['children'],_0x24f8ab=new _0x1cc540(this['locale']),_0x11518a=(_0x4b6011,_0x4d3828=-0x1)=>{const _0x950e66=new _0x387e1d(this['locale']);_0x950e66[_0x481a('0x3a')][_0x481a('0x2f')](_0x4b6011);const _0x2f8d58=_0x4d3828>-0x1?_0x4d3828:_0x24f8ab['items'][_0x481a('0x32')];_0x24f8ab[_0x481a('0x5d')][_0x481a('0x2f')](_0x950e66,_0x2f8d58),_0x1badf2[_0x481a('0x3b')](_0x4b6011,_0x481a('0x17'),()=>{_0x1badf2[_0x481a('0x42')]=[...this[_0x481a('0x5d')]][_0x481a('0x4')](_0x20649f=>_0x20649f['isEnabled']);}),_0x1badf2['listenTo'](_0x4b6011,_0x481a('0x31'),()=>{_0x1badf2[_0x481a('0x22')]['isVisible']=[...this[_0x481a('0x5d')]][_0x481a('0x4')](_0x3450c5=>_0x3450c5[_0x481a('0x4b')]);});};_0x1badf2[_0x481a('0x12')]='sw',_0x1badf2[_0x481a('0x22')][_0x481a('0x39')]({'label':_0x1a2238(this[_0x481a('0x5b')],_0x481a('0x1f')),'icon':_0x17e41c[_0x481a('0x28')]}),_0x1badf2[_0x481a('0x42')]=[...this['items']][_0x481a('0x4')](_0xe2a05f=>_0xe2a05f[_0x481a('0x42')]),_0x1badf2[_0x481a('0x22')]['isVisible']=[...this[_0x481a('0x5d')]]['some'](_0x22e41=>_0x22e41[_0x481a('0x4b')]);for(const _0x3ec12c of this[_0x481a('0x5d')])_0x11518a(_0x3ec12c);return _0x3bc0d3[_0x481a('0x2f')](_0x24f8ab),_0x1badf2[_0x481a('0x3b')](this[_0x481a('0x5d')],_0x481a('0x2f'),(_0x44cc8d,_0x367694,_0x305a39)=>{_0x11518a(_0x367694,_0x305a39);}),_0x1badf2[_0x481a('0x3b')](this['items'],_0x481a('0x58'),(_0x37ed0b,_0x202ada,_0x11ebe9)=>{_0x24f8ab[_0x481a('0x5d')][_0x481a('0x58')](_0x11ebe9);}),_0x1badf2;}[_0x481a('0x23')](_0x5ba7e9,_0x492ef9){const _0x4e385d=_0x5ba7e9&&_0x5ba7e9['element'];_0x4e385d&&(this['listenTo'](_0x4e385d,'mouseenter',()=>this['actionIndicator']=_0x492ef9),this[_0x481a('0x3b')](_0x4e385d,_0x481a('0x11'),()=>this[_0x481a('0x5a')]=_0x492ef9),this[_0x481a('0x3b')](_0x4e385d,_0x481a('0x57'),()=>this[_0x481a('0x5a')]=null),this[_0x481a('0x3b')](_0x4e385d,_0x481a('0x36'),()=>this['actionIndicator']=null));}[_0x481a('0x25')](){const _0x28858f=super['_createCommentInputView']();return _0x28858f[_0x481a('0x56')](_0x481a('0x1d'))['to'](this),_0x28858f;}['getExternalCommentNote'](){return _0x481a('0x45')===this[_0x481a('0x29')][_0x481a('0x4d')][_0x481a('0x1b')][_0x481a('0x55')]?_0x1a2238(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):_0x1a2238(this[_0x481a('0x5b')],_0x481a('0x13'));}['getUserViewNotificationText'](){return this[_0x481a('0x29')][_0x481a('0x44')]?_0x481a('0x45')===this[_0x481a('0x29')][_0x481a('0x4d')][_0x481a('0x1b')][_0x481a('0x55')]?_0x1a2238(this[_0x481a('0x5b')],'EXTERNAL_IMPORT_WORD_AVATAR',this[_0x481a('0x29')][_0x481a('0x49')][_0x481a('0x33')]):_0x1a2238(this['locale'],'EXTERNAL_AVATAR',this[_0x481a('0x29')]['creator'][_0x481a('0x33')]):null;}['render'](){super[_0x481a('0x5e')](),this[_0x481a('0x23')](this[_0x481a('0x51')],'edit'),this['_attachActions'](this[_0x481a('0xa')],_0x481a('0x58'));}}
package/src/comments.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2122=['Comments','requires','pluginName'];(function(_0x4a0ecb,_0x212247){var _0x201015=function(_0x4c7279){while(--_0x4c7279){_0x4a0ecb['push'](_0x4a0ecb['shift']());}};_0x201015(++_0x212247);}(_0x2122,0x19b));var _0x2010=function(_0x4a0ecb,_0x212247){_0x4a0ecb=_0x4a0ecb-0x0;var _0x201015=_0x2122[_0x4a0ecb];return _0x201015;};import{Plugin as _0x266d8f}from'ckeditor5/src/core.js';import _0x21d44d from'./comments/commentsrepository.js';import _0x457954 from'./comments/commentsediting.js';import _0x38680a from'./comments/commentsui.js';import _0x36eaba from'./commentsonly.js';import _0x375a26 from'./annotations/widesidebar.js';import _0x5b3445 from'./annotations/narrowsidebar.js';import _0x66f0f4 from'./annotations/inlineannotations.js';import _0x4ffae1 from'./comments/commentsarchiveui.js';import _0x11745d from'./comments/commentsarchive.js';export default class f extends _0x266d8f{static get[_0x2010('0x1')](){return[_0x21d44d,_0x457954,_0x38680a,_0x11745d,_0x4ffae1,_0x36eaba,_0x375a26,_0x5b3445,_0x66f0f4];}static get[_0x2010('0x2')](){return _0x2010('0x0');}}
23
+ var _0x4221=['requires'];(function(_0x2ffaca,_0x42219d){var _0x415830=function(_0x101427){while(--_0x101427){_0x2ffaca['push'](_0x2ffaca['shift']());}};_0x415830(++_0x42219d);}(_0x4221,0x12d));var _0x4158=function(_0x2ffaca,_0x42219d){_0x2ffaca=_0x2ffaca-0x0;var _0x415830=_0x4221[_0x2ffaca];return _0x415830;};import{Plugin as _0x560c8d}from'ckeditor5/src/core.js';import _0x520b3c from'./comments/commentsrepository.js';import _0xea227 from'./comments/commentsediting.js';import _0x51c98b from'./comments/commentsui.js';import _0x398e0c from'./commentsonly.js';import _0xd63ee2 from'./annotations/widesidebar.js';import _0x3b219f from'./annotations/narrowsidebar.js';import _0x456907 from'./annotations/inlineannotations.js';import _0x49b552 from'./comments/commentsarchiveui.js';import _0x1d4d6d from'./comments/commentsarchive.js';export default class f extends _0x560c8d{static get[_0x4158('0x0')](){return[_0x520b3c,_0xea227,_0x51c98b,_0x1d4d6d,_0x49b552,_0x398e0c,_0xd63ee2,_0x3b219f,_0x456907];}static get['pluginName'](){return'Comments';}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x18a8=['_disableCommentsOnlyMode','has','view','afterInit','pluginName','change:isEnabled','listenTo','stopListening','commentsOnly','set','clearForceDisabled','document','DragDrop','get','editor','CommentsOnly','isEnabled','requires','highest','forceDisabled','editing','stop','addCommentThread','plugins','config','commands','delete','_enableCommentsOnlyMode','commentsOnlyMode'];(function(_0x4b67e6,_0x18a86a){const _0x17c211=function(_0x4b18a0){while(--_0x4b18a0){_0x4b67e6['push'](_0x4b67e6['shift']());}};_0x17c211(++_0x18a86a);}(_0x18a8,0x1a1));const _0x17c2=function(_0x4b67e6,_0x18a86a){_0x4b67e6=_0x4b67e6-0x0;let _0x17c211=_0x18a8[_0x4b67e6];return _0x17c211;};import{Plugin as _0x1215b9}from'ckeditor5/src/core.js';import _0x13e59d from'./comments/commentsediting.js';export default class e extends _0x1215b9{static get[_0x17c2('0x16')](){return _0x17c2('0x4');}static get[_0x17c2('0x6')](){return[_0x13e59d];}constructor(_0x2504be){super(_0x2504be),this[_0x17c2('0x1b')](_0x17c2('0x5'),!0x1),this['on'](_0x17c2('0x17'),(_0x398d8d,_0x539acf,_0x101f69)=>{_0x101f69?this[_0x17c2('0x10')]():this[_0x17c2('0x12')]();});}[_0x17c2('0x15')](){!this[_0x17c2('0x5')]&&this[_0x17c2('0x3')][_0x17c2('0xd')][_0x17c2('0x2')](_0x17c2('0x1a'))&&(this[_0x17c2('0x5')]=!0x0);}[_0x17c2('0x10')](){for(const [_0x2172d8,_0xf6ee0e]of this['editor'][_0x17c2('0xe')])_0xf6ee0e['affectsData']&&_0x17c2('0xb')!==_0x2172d8&&_0xf6ee0e[_0x17c2('0x8')](_0x17c2('0x11'));this[_0x17c2('0x3')][_0x17c2('0xc')][_0x17c2('0x13')](_0x17c2('0x1'))&&this[_0x17c2('0x3')][_0x17c2('0xc')][_0x17c2('0x2')](_0x17c2('0x1'))[_0x17c2('0x8')](_0x17c2('0x11'));const _0x5e6dd1=this[_0x17c2('0x3')]['editing']['view'][_0x17c2('0x0')];this[_0x17c2('0x18')](_0x5e6dd1,'cut',_0x37c0e8=>_0x37c0e8[_0x17c2('0xa')](),{'priority':_0x17c2('0x7')}),this[_0x17c2('0x18')](_0x5e6dd1,'clipboardInput',_0x21e3c1=>_0x21e3c1[_0x17c2('0xa')](),{'priority':_0x17c2('0x7')}),this['listenTo'](_0x5e6dd1,_0x17c2('0xf'),_0x2e2988=>_0x2e2988[_0x17c2('0xa')](),{'priority':_0x17c2('0x7')});}['_disableCommentsOnlyMode'](){for(const [_0x4ffc37,_0x90703a]of this[_0x17c2('0x3')]['commands'])_0x90703a['affectsData']&&_0x17c2('0xb')!==_0x4ffc37&&_0x90703a[_0x17c2('0x1c')](_0x17c2('0x11'));this[_0x17c2('0x19')](this[_0x17c2('0x3')][_0x17c2('0x9')][_0x17c2('0x14')][_0x17c2('0x0')]);}}
23
+ const _0x2984=['commentsOnly','isEnabled','set','_enableCommentsOnlyMode','DragDrop','change:isEnabled','affectsData','document','has','commands','requires','editor','editing','pluginName','view','highest','forceDisabled','delete','CommentsOnly','stop','get','cut','afterInit','_disableCommentsOnlyMode','clearForceDisabled','addCommentThread','plugins','commentsOnlyMode','listenTo'];(function(_0xcf575e,_0x2984c2){const _0x39fdc0=function(_0x31a6ed){while(--_0x31a6ed){_0xcf575e['push'](_0xcf575e['shift']());}};_0x39fdc0(++_0x2984c2);}(_0x2984,0x9a));const _0x39fd=function(_0xcf575e,_0x2984c2){_0xcf575e=_0xcf575e-0x0;let _0x39fdc0=_0x2984[_0xcf575e];return _0x39fdc0;};import{Plugin as _0x749984}from'ckeditor5/src/core.js';import _0x2389f9 from'./comments/commentsediting.js';export default class e extends _0x749984{static get[_0x39fd('0x4')](){return _0x39fd('0x9');}static get[_0x39fd('0x1')](){return[_0x2389f9];}constructor(_0x26b6fc){super(_0x26b6fc),this[_0x39fd('0x16')](_0x39fd('0x15'),!0x1),this['on'](_0x39fd('0x19'),(_0x54d930,_0x5f3f69,_0x517b8d)=>{_0x517b8d?this[_0x39fd('0x17')]():this['_disableCommentsOnlyMode']();});}[_0x39fd('0xd')](){!this[_0x39fd('0x15')]&&this[_0x39fd('0x2')]['config'][_0x39fd('0xb')](_0x39fd('0x14'))&&(this['isEnabled']=!0x0);}[_0x39fd('0x17')](){for(const [_0x308335,_0xfb90bb]of this[_0x39fd('0x2')][_0x39fd('0x0')])_0xfb90bb['affectsData']&&_0x39fd('0x10')!==_0x308335&&_0xfb90bb[_0x39fd('0x7')](_0x39fd('0x12'));this[_0x39fd('0x2')][_0x39fd('0x11')][_0x39fd('0x1c')](_0x39fd('0x18'))&&this['editor'][_0x39fd('0x11')][_0x39fd('0xb')](_0x39fd('0x18'))[_0x39fd('0x7')](_0x39fd('0x12'));const _0x1f61a0=this[_0x39fd('0x2')]['editing'][_0x39fd('0x5')][_0x39fd('0x1b')];this[_0x39fd('0x13')](_0x1f61a0,_0x39fd('0xc'),_0x364e2b=>_0x364e2b['stop'](),{'priority':_0x39fd('0x6')}),this[_0x39fd('0x13')](_0x1f61a0,'clipboardInput',_0x37ec3d=>_0x37ec3d['stop'](),{'priority':_0x39fd('0x6')}),this[_0x39fd('0x13')](_0x1f61a0,_0x39fd('0x8'),_0x33849e=>_0x33849e[_0x39fd('0xa')](),{'priority':_0x39fd('0x6')});}[_0x39fd('0xe')](){for(const [_0x2f6333,_0x324c41]of this['editor']['commands'])_0x324c41[_0x39fd('0x1a')]&&_0x39fd('0x10')!==_0x2f6333&&_0x324c41[_0x39fd('0xf')](_0x39fd('0x12'));this['stopListening'](this['editor'][_0x39fd('0x3')][_0x39fd('0x5')][_0x39fd('0x1b')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x1655fb,_0x4d4c6e,_0x31e5f6){const t=_0x1655fb['t'];switch(_0x4d4c6e){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'},_0x31e5f6);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'},_0x31e5f6);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'},_0x31e5f6);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'},_0x31e5f6);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(_0x5d0efb,_0xd91e07,_0x40e400){const t=_0x5d0efb['t'];switch(_0xd91e07){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'},_0x40e400);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'},_0x40e400);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'},_0x40e400);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'},_0x40e400);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 _0x46b0=['attributeName','type','disconnect','attributes','cancel','characterData','observe','class','childList'];(function(_0x2d7e5f,_0x46b093){const _0x34dd74=function(_0x3c0226){while(--_0x3c0226){_0x2d7e5f['push'](_0x2d7e5f['shift']());}};_0x34dd74(++_0x46b093);}(_0x46b0,0x123));const _0x34dd=function(_0x2d7e5f,_0x46b093){_0x2d7e5f=_0x2d7e5f-0x0;let _0x34dd74=_0x46b0[_0x2d7e5f];return _0x34dd74;};import{throttle as _0x26b91b}from'lodash-es';export default function Dt(_0x3c4f4d){const _0x15c0d3=_0x26b91b(_0x3c4f4d,0x1e),_0x1c99b3=new MutationObserver(_0x20189a=>{for(const _0x351c1b of _0x20189a)(_0x34dd('0x0')==_0x351c1b[_0x34dd('0x7')]&&_0x34dd('0x4')==_0x351c1b[_0x34dd('0x6')]||_0x34dd('0x5')==_0x351c1b[_0x34dd('0x7')]||_0x34dd('0x2')==_0x351c1b['type'])&&_0x15c0d3();});return{'attach'(_0x3f6227){_0x1c99b3[_0x34dd('0x3')](_0x3f6227,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x1c99b3[_0x34dd('0x8')](),_0x15c0d3[_0x34dd('0x1')]();}};}
23
+ const _0x456c=['cancel','attributes','type','characterData','childList','observe','disconnect','attributeName'];(function(_0x4c73e8,_0x456cc7){const _0x3edcc1=function(_0x55c1c4){while(--_0x55c1c4){_0x4c73e8['push'](_0x4c73e8['shift']());}};_0x3edcc1(++_0x456cc7);}(_0x456c,0x1a5));const _0x3edc=function(_0x4c73e8,_0x456cc7){_0x4c73e8=_0x4c73e8-0x0;let _0x3edcc1=_0x456c[_0x4c73e8];return _0x3edcc1;};import{throttle as _0x235c06}from'lodash-es';export default function Dt(_0x2a311d){const _0xef8007=_0x235c06(_0x2a311d,0x1e),_0x5b0fff=new MutationObserver(_0x42fefc=>{for(const _0x328944 of _0x42fefc)(_0x3edc('0x4')==_0x328944[_0x3edc('0x5')]&&'class'==_0x328944[_0x3edc('0x2')]||_0x3edc('0x7')==_0x328944['type']||_0x3edc('0x6')==_0x328944[_0x3edc('0x5')])&&_0xef8007();});return{'attach'(_0x115a5a){_0x5b0fff[_0x3edc('0x0')](_0x115a5a,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x5b0fff[_0x3edc('0x1')](),_0xef8007[_0x3edc('0x3')]();}};}