@ckeditor/ckeditor5-comments 39.0.0 → 39.0.1

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 _0x3dbe=['setTemplate','blur','ck-annotation__main','length','listenTo','formatDateTime','actionBar','threeVerticalDots','isSystemComment','placeholder','ck-annotation__user','ck-comment--','execute','pencil','ck-comment','importWord','ck-comment__info-time','removeButton','items','getUserViewNotificationText','render','userView','@external','span','cancelConfirm','then','Show\x20more\x20items','set','Reply...','ck-comment__info-name','_attachActions','isEditMode','push','visibleView','Delete\x20comment?','add','ck-comment--edit','locale','ck-annotation__actions','dropdown','change:isEnabled','_createEditButton','some','_createRemoveButton','panelView','ck-comment__actions','showConfirm','getExternalCommentNote','createCollection','change:isRemovable','isEnabled','ck-comment--info','ck-annotation__info','creator','div','attributes','removeComment','switchToEditMode','Edit','authoredAt','isExternal','_createDropdown','label','edit','ck-comment__info','bindTemplate','remove','ck-annotation__content-wrapper','ck-annotation','withText','editButton','actionIndicator','Remove','resolvedAt','_model','bind','ck-annotation__info-time','EXTERNAL_COMMENT','_createCommentInputView','EXTERNAL_IMPORT_WORD_AVATAR','isVisible','buttonView','ck-comment__external','icon','_config','isRemovable','getTemplate','source','children','addMany','element','ck-comment--remove-confirmation','time','panelPosition'];(function(_0x45be70,_0x3dbe7a){const _0x58308f=function(_0x54996c){while(--_0x54996c){_0x45be70['push'](_0x45be70['shift']());}};_0x58308f(++_0x3dbe7a);}(_0x3dbe,0x189));const _0x5830=function(_0x45be70,_0x3dbe7a){_0x45be70=_0x45be70-0x0;let _0x58308f=_0x3dbe[_0x45be70];return _0x58308f;};import{ButtonView as _0x551c51,createDropdown as _0x11fa72,ListView as _0x1fb435,ListItemView as _0x1e5e94}from'ckeditor5/src/ui';import{icons as _0x318b2c}from'ckeditor5/src/core';import{UserView as _0x294716,ConfirmMixin as _0x4753e4}from'ckeditor5-collaboration/src/collaboration-core';import _0x29014e from'./basecommentview';import _0x36d3bc from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x3c8b2e}from'../../../utils/common-translations';export default class ut extends _0x4753e4(_0x29014e){constructor(_0x1b48c2,_0x365d1,_0x58a8ae){super(_0x1b48c2,_0x365d1,_0x58a8ae),this[_0x5830('0xa')](_0x5830('0x36'),null),this[_0x5830('0xa')](_0x5830('0x56'),_0x3c8b2e(_0x1b48c2,_0x5830('0xb'))),this[_0x5830('0x3a')](_0x5830('0x2a'))['to'](_0x365d1),this['bind'](_0x5830('0x38'))['to'](_0x365d1),this[_0x5830('0x53')]=this[_0x5830('0x1f')](),this[_0x5830('0x55')]||(this[_0x5830('0x35')]=this['_createEditButton'](),this['removeButton']=this['_createRemoveButton'](),this['items']=this[_0x5830('0x1f')](),this[_0x5830('0x1')][_0x5830('0x48')]([this[_0x5830('0x35')],this[_0x5830('0x0')]]),this[_0x5830('0x16')]=this[_0x5830('0x2c')](),this[_0x5830('0x53')][_0x5830('0x12')](this[_0x5830('0x16')])),this[_0x5830('0x4')]=new _0x294716(_0x1b48c2,_0x365d1['author'],this[_0x5830('0x2')]()),this[_0x5830('0x4')]['extendTemplate']({'attributes':{'class':['ck-comment__user',_0x5830('0x57')]}}),this[_0x5830('0x51')](_0x365d1,_0x5830('0x20'),()=>this[_0x5830('0x7')]()),this[_0x5830('0x4d')](this['getTemplate']());}[_0x5830('0x45')](){const _0x57e52a=this[_0x5830('0x30')],_0x4f98d8=[{'tag':'div','attributes':{'class':[_0x5830('0x2f'),_0x5830('0x23')]},'children':[{'tag':_0x5830('0x6'),'children':[{'text':this[_0x5830('0x4')]['name']}],'attributes':{'class':[_0x5830('0xc'),'ck-annotation__info-name']}},{'tag':_0x5830('0x4b'),'attributes':{'datetime':_0x57e52a['to']('authoredAt'),'class':[_0x5830('0x5d'),_0x5830('0x3b')]},'children':[{'text':_0x57e52a['to'](_0x5830('0x2a'),_0x3c6709=>this[_0x5830('0x43')][_0x5830('0x52')](_0x3c6709))}]}]},{'tag':_0x5830('0x25'),'attributes':{'class':[_0x5830('0x1c'),_0x5830('0x15'),_0x57e52a['if'](_0x5830('0xe'),'ck-comment__actions--hidden'),_0x57e52a['if']('isEditMode','ck-annotation__actions--hidden')]},'children':this['actionBar']},{'tag':_0x5830('0x25'),'attributes':{'class':[_0x5830('0x32')]},'children':this[_0x5830('0x10')]}];return this['_model']['isExternal']&&_0x4f98d8[_0x5830('0xf')]({'tag':_0x5830('0x25'),'attributes':{'class':[_0x5830('0x41')]},'children':[{'text':this[_0x5830('0x1e')]()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x57e52a['if']('isConfirm',_0x5830('0x4a'))],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':[_0x5830('0x5b'),_0x5830('0x33'),_0x57e52a['if'](_0x5830('0xe'),'ck-comment--edit'),_0x57e52a['if'](_0x5830('0x55'),_0x5830('0x22')),_0x57e52a['to'](_0x5830('0x36'),_0x3dd824=>_0x3dd824?_0x5830('0x58')+_0x3dd824:'')],'data-author-id':this[_0x5830('0x39')]['author']['id'],'data-comment-id':this[_0x5830('0x39')]['id']},'children':[this[_0x5830('0x4')],{'tag':_0x5830('0x25'),'attributes':{'class':['ck-comment__main',_0x5830('0x4f')]},'children':_0x4f98d8}]}]};}[_0x5830('0x18')](){const _0x2fcf26=new _0x551c51(this[_0x5830('0x14')]);return _0x2fcf26[_0x5830('0x2d')]=_0x3c8b2e(this[_0x5830('0x14')],_0x5830('0x29')),_0x2fcf26[_0x5830('0x42')]=_0x318b2c[_0x5830('0x5a')],_0x2fcf26[_0x5830('0x34')]=!0x0,_0x2fcf26['extendTemplate']({'attributes':{'class':_0x5830('0x13')}}),_0x2fcf26['bind']('isEnabled')['to'](this[_0x5830('0x39')],'isReadOnly',_0x35ebf9=>!_0x35ebf9),_0x2fcf26[_0x5830('0x3a')]('isVisible')['to'](this['_model'],'isEditable'),_0x2fcf26['on']('execute',()=>this[_0x5830('0x28')]()),_0x2fcf26;}[_0x5830('0x1a')](){const _0x226b64=new _0x551c51(this[_0x5830('0x14')]);return _0x226b64['label']=_0x3c8b2e(this['locale'],_0x5830('0x37')),_0x226b64[_0x5830('0x42')]=_0x36d3bc,_0x226b64[_0x5830('0x34')]=!0x0,_0x226b64['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x226b64['bind'](_0x5830('0x21'))['to'](this[_0x5830('0x39')],'isReadOnly',_0x54f59c=>!_0x54f59c),_0x226b64[_0x5830('0x3a')]('isVisible')['to'](this[_0x5830('0x39')],_0x5830('0x44')),_0x226b64['on'](_0x5830('0x59'),()=>{this[_0x5830('0x1d')](_0x3c8b2e(this[_0x5830('0x14')],_0x5830('0x11')),this[_0x5830('0x49')])[_0x5830('0x8')](()=>{this['fire'](_0x5830('0x27'),this[_0x5830('0x39')]['id']);});}),_0x226b64;}[_0x5830('0x2c')](){const _0x239cea=_0x11fa72(this[_0x5830('0x14')]),_0x5cd13c=_0x239cea[_0x5830('0x1b')]['children'],_0x3129ef=new _0x1fb435(this[_0x5830('0x14')]),_0x77c72=(_0x27330e,_0x341e28=-0x1)=>{const _0x53d68b=new _0x1e5e94(this[_0x5830('0x14')]);_0x53d68b[_0x5830('0x47')][_0x5830('0x12')](_0x27330e);const _0x48b32c=_0x341e28>-0x1?_0x341e28:_0x3129ef['items'][_0x5830('0x50')];_0x3129ef[_0x5830('0x1')]['add'](_0x53d68b,_0x48b32c),_0x239cea[_0x5830('0x51')](_0x27330e,_0x5830('0x17'),()=>{_0x239cea[_0x5830('0x21')]=[...this[_0x5830('0x1')]][_0x5830('0x19')](_0x4a4ff1=>_0x4a4ff1['isEnabled']);}),_0x239cea[_0x5830('0x51')](_0x27330e,'change:isVisible',()=>{_0x239cea[_0x5830('0x40')][_0x5830('0x3f')]=[...this[_0x5830('0x1')]][_0x5830('0x19')](_0x1ac130=>_0x1ac130[_0x5830('0x3f')]);});};_0x239cea[_0x5830('0x4c')]='sw',_0x239cea[_0x5830('0x40')][_0x5830('0xa')]({'label':_0x3c8b2e(this[_0x5830('0x14')],_0x5830('0x9')),'icon':_0x318b2c[_0x5830('0x54')]}),_0x239cea[_0x5830('0x21')]=[...this[_0x5830('0x1')]][_0x5830('0x19')](_0x3f7532=>_0x3f7532[_0x5830('0x21')]),_0x239cea[_0x5830('0x40')][_0x5830('0x3f')]=[...this['items']]['some'](_0x510618=>_0x510618[_0x5830('0x3f')]);for(const _0x41ca45 of this[_0x5830('0x1')])_0x77c72(_0x41ca45);return _0x5cd13c['add'](_0x3129ef),_0x239cea[_0x5830('0x51')](this['items'],_0x5830('0x12'),(_0x1ecce5,_0x308446,_0x520049)=>{_0x77c72(_0x308446,_0x520049);}),_0x239cea[_0x5830('0x51')](this[_0x5830('0x1')],_0x5830('0x31'),(_0x10e68e,_0x57c06a,_0x531351)=>{_0x3129ef[_0x5830('0x1')][_0x5830('0x31')](_0x531351);}),_0x239cea;}[_0x5830('0xd')](_0x40bf30,_0x45836f){const _0x5df962=_0x40bf30&&_0x40bf30[_0x5830('0x49')];_0x5df962&&(this[_0x5830('0x51')](_0x5df962,'mouseenter',()=>this[_0x5830('0x36')]=_0x45836f),this['listenTo'](_0x5df962,'focus',()=>this[_0x5830('0x36')]=_0x45836f),this['listenTo'](_0x5df962,'mouseleave',()=>this['actionIndicator']=null),this[_0x5830('0x51')](_0x5df962,_0x5830('0x4e'),()=>this[_0x5830('0x36')]=null));}[_0x5830('0x3d')](){const _0x6af77a=super[_0x5830('0x3d')]();return _0x6af77a['bind']('placeholder')['to'](this),_0x6af77a;}[_0x5830('0x1e')](){return _0x5830('0x5c')===this[_0x5830('0x39')][_0x5830('0x26')][_0x5830('0x5')][_0x5830('0x46')]?_0x3c8b2e(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):_0x3c8b2e(this[_0x5830('0x14')],_0x5830('0x3c'));}['getUserViewNotificationText'](){return this[_0x5830('0x39')][_0x5830('0x2b')]?_0x5830('0x5c')===this[_0x5830('0x39')][_0x5830('0x26')][_0x5830('0x5')][_0x5830('0x46')]?_0x3c8b2e(this[_0x5830('0x14')],_0x5830('0x3e'),this[_0x5830('0x39')][_0x5830('0x24')]['name']):_0x3c8b2e(this[_0x5830('0x14')],'EXTERNAL_AVATAR',this[_0x5830('0x39')][_0x5830('0x24')]['name']):null;}[_0x5830('0x3')](){super[_0x5830('0x3')](),this[_0x5830('0xd')](this[_0x5830('0x35')],_0x5830('0x2e')),this[_0x5830('0xd')](this['removeButton'],_0x5830('0x31'));}}
23
+ const _0x283f=['ck-annotation__content-wrapper','ck-annotation__main','push','ck-comment__actions','icon','add','bind','EXTERNAL_IMPORT_WORD_COMMENT','@external','remove','set','Delete\x20comment?','visibleView','ck-comment__info-time','bindTemplate','then','authoredAt','label','setTemplate','source','items','length','actionBar','isVisible','some','buttonView','render','getUserViewNotificationText','Show\x20more\x20items','threeVerticalDots','fire','Edit','panelPosition','creator','edit','ck-annotation__actions','isRemovable','name','isEditable','div','listenTo','switchToEditMode','ck-comment--remove','userView','placeholder','locale','_createEditButton','ck-annotation','ck-comment__info','ck-annotation__info-time','isEnabled','actionIndicator','cancelConfirm','addMany','_model','ck-comment--edit','removeComment','Remove','panelView','isReadOnly','mouseenter','ck-comment--','_createDropdown','change:isVisible','_config','ck-annotation__user','element','editButton','attributes','getTemplate','isSystemComment','ck-comment__external','Reply...','_attachActions','span','isConfirm','ck-annotation__info','createCollection','_createCommentInputView','_createRemoveButton','change:isRemovable','blur','importWord','showConfirm','author','execute','mouseleave','extendTemplate','change:isEnabled','isEditMode','withText','focus','EXTERNAL_AVATAR','isExternal','ck-comment__user','removeButton'];(function(_0x28118d,_0x283fc8){const _0x5b7a01=function(_0x3c4d2b){while(--_0x3c4d2b){_0x28118d['push'](_0x28118d['shift']());}};_0x5b7a01(++_0x283fc8);}(_0x283f,0x10c));const _0x5b7a=function(_0x28118d,_0x283fc8){_0x28118d=_0x28118d-0x0;let _0x5b7a01=_0x283f[_0x28118d];return _0x5b7a01;};import{ButtonView as _0x479ce7,createDropdown as _0x3b2926,ListView as _0x3a7fb2,ListItemView as _0x3ef960}from'ckeditor5/src/ui';import{icons as _0x4bb238}from'ckeditor5/src/core';import{UserView as _0x855dec,ConfirmMixin as _0x39e3b4}from'ckeditor5-collaboration/src/collaboration-core';import _0x209590 from'./basecommentview';import _0x31b80c from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x3d446c}from'../../../utils/common-translations';export default class ut extends _0x39e3b4(_0x209590){constructor(_0xf4310a,_0x2854d8,_0x28cf05){super(_0xf4310a,_0x2854d8,_0x28cf05),this[_0x5b7a('0x1e')](_0x5b7a('0x47'),null),this[_0x5b7a('0x1e')](_0x5b7a('0x40'),_0x3d446c(_0xf4310a,_0x5b7a('0x5c'))),this[_0x5b7a('0x1a')]('authoredAt')['to'](_0x2854d8),this[_0x5b7a('0x1a')]('resolvedAt')['to'](_0x2854d8),this[_0x5b7a('0x2a')]=this[_0x5b7a('0x1')](),this['isSystemComment']||(this[_0x5b7a('0x57')]=this[_0x5b7a('0x42')](),this[_0x5b7a('0x13')]=this[_0x5b7a('0x3')](),this['items']=this[_0x5b7a('0x1')](),this[_0x5b7a('0x28')][_0x5b7a('0x49')]([this['editButton'],this[_0x5b7a('0x13')]]),this['dropdown']=this[_0x5b7a('0x52')](),this[_0x5b7a('0x2a')][_0x5b7a('0x19')](this['dropdown'])),this[_0x5b7a('0x3f')]=new _0x855dec(_0xf4310a,_0x2854d8[_0x5b7a('0x8')],this[_0x5b7a('0x2f')]()),this['userView'][_0x5b7a('0xb')]({'attributes':{'class':[_0x5b7a('0x12'),_0x5b7a('0x55')]}}),this[_0x5b7a('0x3c')](_0x2854d8,_0x5b7a('0x4'),()=>this[_0x5b7a('0x48')]()),this[_0x5b7a('0x26')](this[_0x5b7a('0x59')]());}[_0x5b7a('0x59')](){const _0x2142d1=this[_0x5b7a('0x22')],_0x3d46b3=[{'tag':_0x5b7a('0x3b'),'attributes':{'class':[_0x5b7a('0x44'),_0x5b7a('0x0')]},'children':[{'tag':_0x5b7a('0x5e'),'children':[{'text':this[_0x5b7a('0x3f')][_0x5b7a('0x39')]}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x2142d1['to']('authoredAt'),'class':[_0x5b7a('0x21'),_0x5b7a('0x45')]},'children':[{'text':_0x2142d1['to'](_0x5b7a('0x24'),_0x552db3=>this[_0x5b7a('0x54')]['formatDateTime'](_0x552db3))}]}]},{'tag':_0x5b7a('0x3b'),'attributes':{'class':[_0x5b7a('0x17'),_0x5b7a('0x37'),_0x2142d1['if'](_0x5b7a('0xd'),'ck-comment__actions--hidden'),_0x2142d1['if'](_0x5b7a('0xd'),'ck-annotation__actions--hidden')]},'children':this['actionBar']},{'tag':_0x5b7a('0x3b'),'attributes':{'class':[_0x5b7a('0x14')]},'children':this[_0x5b7a('0x20')]}];return this['_model'][_0x5b7a('0x11')]&&_0x3d46b3[_0x5b7a('0x16')]({'tag':_0x5b7a('0x3b'),'attributes':{'class':[_0x5b7a('0x5b')]},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x2142d1['if'](_0x5b7a('0x5f'),'ck-comment--remove-confirmation')],'tabindex':-0x1},'children':[{'tag':_0x5b7a('0x3b'),'attributes':{'class':['ck-comment',_0x5b7a('0x43'),_0x2142d1['if'](_0x5b7a('0xd'),_0x5b7a('0x4b')),_0x2142d1['if'](_0x5b7a('0x5a'),'ck-comment--info'),_0x2142d1['to']('actionIndicator',_0x17f8de=>_0x17f8de?_0x5b7a('0x51')+_0x17f8de:'')],'data-author-id':this[_0x5b7a('0x4a')][_0x5b7a('0x8')]['id'],'data-comment-id':this[_0x5b7a('0x4a')]['id']},'children':[this[_0x5b7a('0x3f')],{'tag':_0x5b7a('0x3b'),'attributes':{'class':['ck-comment__main',_0x5b7a('0x15')]},'children':_0x3d46b3}]}]};}['_createEditButton'](){const _0x2e5d51=new _0x479ce7(this[_0x5b7a('0x41')]);return _0x2e5d51[_0x5b7a('0x25')]=_0x3d446c(this[_0x5b7a('0x41')],_0x5b7a('0x33')),_0x2e5d51[_0x5b7a('0x18')]=_0x4bb238['pencil'],_0x2e5d51[_0x5b7a('0xe')]=!0x0,_0x2e5d51['extendTemplate']({'attributes':{'class':_0x5b7a('0x4b')}}),_0x2e5d51['bind'](_0x5b7a('0x46'))['to'](this[_0x5b7a('0x4a')],_0x5b7a('0x4f'),_0x5df5bb=>!_0x5df5bb),_0x2e5d51[_0x5b7a('0x1a')](_0x5b7a('0x2b'))['to'](this[_0x5b7a('0x4a')],_0x5b7a('0x3a')),_0x2e5d51['on'](_0x5b7a('0x9'),()=>this[_0x5b7a('0x3d')]()),_0x2e5d51;}[_0x5b7a('0x3')](){const _0x4f012f=new _0x479ce7(this['locale']);return _0x4f012f[_0x5b7a('0x25')]=_0x3d446c(this[_0x5b7a('0x41')],_0x5b7a('0x4d')),_0x4f012f[_0x5b7a('0x18')]=_0x31b80c,_0x4f012f[_0x5b7a('0xe')]=!0x0,_0x4f012f[_0x5b7a('0xb')]({'attributes':{'class':_0x5b7a('0x3e')}}),_0x4f012f['bind']('isEnabled')['to'](this[_0x5b7a('0x4a')],_0x5b7a('0x4f'),_0x4bbcfa=>!_0x4bbcfa),_0x4f012f[_0x5b7a('0x1a')](_0x5b7a('0x2b'))['to'](this[_0x5b7a('0x4a')],_0x5b7a('0x38')),_0x4f012f['on'](_0x5b7a('0x9'),()=>{this[_0x5b7a('0x7')](_0x3d446c(this[_0x5b7a('0x41')],_0x5b7a('0x1f')),this[_0x5b7a('0x56')])[_0x5b7a('0x23')](()=>{this[_0x5b7a('0x32')](_0x5b7a('0x4c'),this[_0x5b7a('0x4a')]['id']);});}),_0x4f012f;}['_createDropdown'](){const _0x408349=_0x3b2926(this[_0x5b7a('0x41')]),_0xf07b35=_0x408349[_0x5b7a('0x4e')]['children'],_0xfbbada=new _0x3a7fb2(this['locale']),_0x29b6d2=(_0x144bb0,_0x3c7119=-0x1)=>{const _0x2c3712=new _0x3ef960(this[_0x5b7a('0x41')]);_0x2c3712['children'][_0x5b7a('0x19')](_0x144bb0);const _0x3720cc=_0x3c7119>-0x1?_0x3c7119:_0xfbbada[_0x5b7a('0x28')][_0x5b7a('0x29')];_0xfbbada[_0x5b7a('0x28')][_0x5b7a('0x19')](_0x2c3712,_0x3720cc),_0x408349['listenTo'](_0x144bb0,_0x5b7a('0xc'),()=>{_0x408349[_0x5b7a('0x46')]=[...this['items']][_0x5b7a('0x2c')](_0x40117a=>_0x40117a['isEnabled']);}),_0x408349['listenTo'](_0x144bb0,_0x5b7a('0x53'),()=>{_0x408349['buttonView'][_0x5b7a('0x2b')]=[...this[_0x5b7a('0x28')]]['some'](_0x4e7f98=>_0x4e7f98[_0x5b7a('0x2b')]);});};_0x408349[_0x5b7a('0x34')]='sw',_0x408349[_0x5b7a('0x2d')]['set']({'label':_0x3d446c(this[_0x5b7a('0x41')],_0x5b7a('0x30')),'icon':_0x4bb238[_0x5b7a('0x31')]}),_0x408349[_0x5b7a('0x46')]=[...this['items']][_0x5b7a('0x2c')](_0x5cbc36=>_0x5cbc36[_0x5b7a('0x46')]),_0x408349['buttonView']['isVisible']=[...this['items']][_0x5b7a('0x2c')](_0x2d445b=>_0x2d445b[_0x5b7a('0x2b')]);for(const _0x284273 of this['items'])_0x29b6d2(_0x284273);return _0xf07b35['add'](_0xfbbada),_0x408349[_0x5b7a('0x3c')](this[_0x5b7a('0x28')],'add',(_0x4dc274,_0x1e1edb,_0x263501)=>{_0x29b6d2(_0x1e1edb,_0x263501);}),_0x408349[_0x5b7a('0x3c')](this['items'],_0x5b7a('0x1d'),(_0x364c70,_0x2165b6,_0x1df840)=>{_0xfbbada[_0x5b7a('0x28')][_0x5b7a('0x1d')](_0x1df840);}),_0x408349;}[_0x5b7a('0x5d')](_0x4aaed5,_0x31b314){const _0x194471=_0x4aaed5&&_0x4aaed5[_0x5b7a('0x56')];_0x194471&&(this[_0x5b7a('0x3c')](_0x194471,_0x5b7a('0x50'),()=>this[_0x5b7a('0x47')]=_0x31b314),this[_0x5b7a('0x3c')](_0x194471,_0x5b7a('0xf'),()=>this[_0x5b7a('0x47')]=_0x31b314),this[_0x5b7a('0x3c')](_0x194471,_0x5b7a('0xa'),()=>this[_0x5b7a('0x47')]=null),this[_0x5b7a('0x3c')](_0x194471,_0x5b7a('0x5'),()=>this[_0x5b7a('0x47')]=null));}[_0x5b7a('0x2')](){const _0x76190d=super[_0x5b7a('0x2')]();return _0x76190d['bind']('placeholder')['to'](this),_0x76190d;}['getExternalCommentNote'](){return _0x5b7a('0x6')===this[_0x5b7a('0x4a')][_0x5b7a('0x58')]['@external'][_0x5b7a('0x27')]?_0x3d446c(this[_0x5b7a('0x41')],_0x5b7a('0x1b')):_0x3d446c(this[_0x5b7a('0x41')],'EXTERNAL_COMMENT');}[_0x5b7a('0x2f')](){return this['_model'][_0x5b7a('0x11')]?_0x5b7a('0x6')===this[_0x5b7a('0x4a')][_0x5b7a('0x58')][_0x5b7a('0x1c')][_0x5b7a('0x27')]?_0x3d446c(this[_0x5b7a('0x41')],'EXTERNAL_IMPORT_WORD_AVATAR',this[_0x5b7a('0x4a')][_0x5b7a('0x35')][_0x5b7a('0x39')]):_0x3d446c(this['locale'],_0x5b7a('0x10'),this[_0x5b7a('0x4a')]['creator'][_0x5b7a('0x39')]):null;}[_0x5b7a('0x2e')](){super['render'](),this[_0x5b7a('0x5d')](this['editButton'],_0x5b7a('0x36')),this[_0x5b7a('0x5d')](this[_0x5b7a('0x13')],_0x5b7a('0x1d'));}}
package/src/comments.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0xfedd=['requires'];(function(_0x466877,_0xfedd32){var _0x53a64d=function(_0x41b16b){while(--_0x41b16b){_0x466877['push'](_0x466877['shift']());}};_0x53a64d(++_0xfedd32);}(_0xfedd,0x18c));var _0x53a6=function(_0x466877,_0xfedd32){_0x466877=_0x466877-0x0;var _0x53a64d=_0xfedd[_0x466877];return _0x53a64d;};import{Plugin as _0x2037f4}from'ckeditor5/src/core';import _0x38634b from'./comments/commentsrepository';import _0x1115f7 from'./comments/commentsediting';import _0x4fff45 from'./comments/commentsui';import _0x5a252b from'./commentsonly';import _0x4f82d6 from'./annotations/widesidebar';import _0xee4d97 from'./annotations/narrowsidebar';import _0x41369c from'./annotations/inlineannotations';import _0x2e542e from'./comments/commentsarchiveui';import _0x441c2f from'./comments/commentsarchive';export default class f extends _0x2037f4{static get[_0x53a6('0x0')](){return[_0x38634b,_0x1115f7,_0x4fff45,_0x441c2f,_0x2e542e,_0x5a252b,_0x4f82d6,_0xee4d97,_0x41369c];}static get['pluginName'](){return'Comments';}}
23
+ var _0x3506=['requires','pluginName'];(function(_0x516f74,_0x3506fe){var _0x265b37=function(_0xbabfd4){while(--_0xbabfd4){_0x516f74['push'](_0x516f74['shift']());}};_0x265b37(++_0x3506fe);}(_0x3506,0x1ba));var _0x265b=function(_0x516f74,_0x3506fe){_0x516f74=_0x516f74-0x0;var _0x265b37=_0x3506[_0x516f74];return _0x265b37;};import{Plugin as _0x20825f}from'ckeditor5/src/core';import _0x3b6d1a from'./comments/commentsrepository';import _0x38a97e from'./comments/commentsediting';import _0x4ef95f from'./comments/commentsui';import _0x277b46 from'./commentsonly';import _0x359663 from'./annotations/widesidebar';import _0x36757c from'./annotations/narrowsidebar';import _0x4fbd1b from'./annotations/inlineannotations';import _0x3fa7f8 from'./comments/commentsarchiveui';import _0x51da30 from'./comments/commentsarchive';export default class f extends _0x20825f{static get[_0x265b('0x0')](){return[_0x3b6d1a,_0x38a97e,_0x4ef95f,_0x51da30,_0x3fa7f8,_0x277b46,_0x359663,_0x36757c,_0x4fbd1b];}static get[_0x265b('0x1')](){return'Comments';}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3d0a=['forceDisabled','view','commentsOnlyMode','clipboardInput','commands','isEnabled','highest','requires','config','_disableCommentsOnlyMode','cut','editor','editing','stop','affectsData','_enableCommentsOnlyMode','change:isEnabled','DragDrop','commentsOnly','set','CommentsOnly','addCommentThread','afterInit','listenTo','stopListening','clearForceDisabled','plugins','get'];(function(_0x2e42ef,_0x3d0a67){const _0x32783f=function(_0xdc6ff){while(--_0xdc6ff){_0x2e42ef['push'](_0x2e42ef['shift']());}};_0x32783f(++_0x3d0a67);}(_0x3d0a,0x126));const _0x3278=function(_0x2e42ef,_0x3d0a67){_0x2e42ef=_0x2e42ef-0x0;let _0x32783f=_0x3d0a[_0x2e42ef];return _0x32783f;};import{Plugin as _0xb58c9e}from'ckeditor5/src/core';import _0x2bcc7e from'./comments/commentsediting';export default class n extends _0xb58c9e{static get['pluginName'](){return _0x3278('0x6');}static get[_0x3278('0x15')](){return[_0x2bcc7e];}constructor(_0x36d056){super(_0x36d056),this[_0x3278('0x5')](_0x3278('0x13'),!0x1),this['on'](_0x3278('0x2'),(_0x35822b,_0x4e363e,_0x5abe45)=>{_0x5abe45?this[_0x3278('0x1')]():this['_disableCommentsOnlyMode']();});}[_0x3278('0x8')](){!this[_0x3278('0x13')]&&this[_0x3278('0x19')][_0x3278('0x16')]['get'](_0x3278('0x4'))&&(this[_0x3278('0x13')]=!0x0);}[_0x3278('0x1')](){for(const [_0xce791c,_0x5839a1]of this[_0x3278('0x19')][_0x3278('0x12')])_0x5839a1['affectsData']&&_0x3278('0x7')!==_0xce791c&&_0x5839a1[_0x3278('0xe')](_0x3278('0x10'));this[_0x3278('0x19')][_0x3278('0xc')]['has'](_0x3278('0x3'))&&this[_0x3278('0x19')][_0x3278('0xc')][_0x3278('0xd')](_0x3278('0x3'))[_0x3278('0xe')](_0x3278('0x10'));const _0x1cc0f2=this[_0x3278('0x19')][_0x3278('0x1a')][_0x3278('0xf')]['document'];this[_0x3278('0x9')](_0x1cc0f2,_0x3278('0x18'),_0x4300af=>_0x4300af[_0x3278('0x1b')](),{'priority':_0x3278('0x14')}),this[_0x3278('0x9')](_0x1cc0f2,_0x3278('0x11'),_0x2f1c56=>_0x2f1c56[_0x3278('0x1b')](),{'priority':'highest'}),this[_0x3278('0x9')](_0x1cc0f2,'delete',_0x2c9988=>_0x2c9988['stop'](),{'priority':'highest'});}[_0x3278('0x17')](){for(const [_0x341290,_0x302b5f]of this['editor'][_0x3278('0x12')])_0x302b5f[_0x3278('0x0')]&&_0x3278('0x7')!==_0x341290&&_0x302b5f[_0x3278('0xb')](_0x3278('0x10'));this[_0x3278('0xa')](this['editor'][_0x3278('0x1a')][_0x3278('0xf')]['document']);}}
23
+ const _0x1f4d=['affectsData','requires','afterInit','addCommentThread','editor','config','get','has','commentsOnlyMode','isEnabled','CommentsOnly','commentsOnly','plugins','highest','commands','stop','view','set','editing','listenTo','pluginName','_disableCommentsOnlyMode','change:isEnabled','_enableCommentsOnlyMode','clearForceDisabled','DragDrop','document','forceDisabled','clipboardInput'];(function(_0x527184,_0x1f4d86){const _0x33db7f=function(_0x1d0122){while(--_0x1d0122){_0x527184['push'](_0x527184['shift']());}};_0x33db7f(++_0x1f4d86);}(_0x1f4d,0x1be));const _0x33db=function(_0x527184,_0x1f4d86){_0x527184=_0x527184-0x0;let _0x33db7f=_0x1f4d[_0x527184];return _0x33db7f;};import{Plugin as _0x38f1c7}from'ckeditor5/src/core';import _0x4e490b from'./comments/commentsediting';export default class n extends _0x38f1c7{static get[_0x33db('0x9')](){return _0x33db('0x1c');}static get[_0x33db('0x13')](){return[_0x4e490b];}constructor(_0x2c1ff1){super(_0x2c1ff1),this[_0x33db('0x6')](_0x33db('0x1b'),!0x1),this['on'](_0x33db('0xb'),(_0x200dfe,_0x21e1ff,_0x4b3edb)=>{_0x4b3edb?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}[_0x33db('0x14')](){!this[_0x33db('0x1b')]&&this[_0x33db('0x16')][_0x33db('0x17')]['get'](_0x33db('0x0'))&&(this['isEnabled']=!0x0);}[_0x33db('0xc')](){for(const [_0x2d0abc,_0x4ea5a1]of this[_0x33db('0x16')][_0x33db('0x3')])_0x4ea5a1[_0x33db('0x12')]&&_0x33db('0x15')!==_0x2d0abc&&_0x4ea5a1[_0x33db('0x10')](_0x33db('0x1a'));this[_0x33db('0x16')][_0x33db('0x1')][_0x33db('0x19')]('DragDrop')&&this[_0x33db('0x16')][_0x33db('0x1')][_0x33db('0x18')](_0x33db('0xe'))['forceDisabled'](_0x33db('0x1a'));const _0x35088b=this[_0x33db('0x16')][_0x33db('0x7')]['view'][_0x33db('0xf')];this[_0x33db('0x8')](_0x35088b,'cut',_0x4b91a7=>_0x4b91a7['stop'](),{'priority':_0x33db('0x2')}),this[_0x33db('0x8')](_0x35088b,_0x33db('0x11'),_0x550297=>_0x550297[_0x33db('0x4')](),{'priority':_0x33db('0x2')}),this[_0x33db('0x8')](_0x35088b,'delete',_0x5605a8=>_0x5605a8[_0x33db('0x4')](),{'priority':_0x33db('0x2')});}[_0x33db('0xa')](){for(const [_0x4a368a,_0x2e80b0]of this[_0x33db('0x16')][_0x33db('0x3')])_0x2e80b0[_0x33db('0x12')]&&'addCommentThread'!==_0x4a368a&&_0x2e80b0[_0x33db('0xd')]('commentsOnlyMode');this['stopListening'](this[_0x33db('0x16')][_0x33db('0x7')][_0x33db('0x5')][_0x33db('0xf')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x53200d,_0x134ddf,_0x5316f8){const t=_0x53200d['t'];switch(_0x134ddf){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'},_0x5316f8);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'},_0x5316f8);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'},_0x5316f8);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'},_0x5316f8);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(_0x566be7,_0x525cff,_0x30a043){const t=_0x566be7['t'];switch(_0x525cff){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'},_0x30a043);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'},_0x30a043);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'},_0x30a043);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'},_0x30a043);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 _0x47a3=['attributes','cancel','characterData','childList','attributeName','observe','type','disconnect','class'];(function(_0x462c1b,_0x47a3af){const _0x2acdf3=function(_0x31ad25){while(--_0x31ad25){_0x462c1b['push'](_0x462c1b['shift']());}};_0x2acdf3(++_0x47a3af);}(_0x47a3,0x18b));const _0x2acd=function(_0x462c1b,_0x47a3af){_0x462c1b=_0x462c1b-0x0;let _0x2acdf3=_0x47a3[_0x462c1b];return _0x2acdf3;};import{throttle as _0x541042}from'lodash-es';export default function Dt(_0x5d449a){const _0x5447a0=_0x541042(_0x5d449a,0x1e),_0x3313a8=new MutationObserver(_0x2dc140=>{for(const _0x2904c7 of _0x2dc140)(_0x2acd('0x1')==_0x2904c7[_0x2acd('0x7')]&&_0x2acd('0x0')==_0x2904c7[_0x2acd('0x5')]||_0x2acd('0x4')==_0x2904c7['type']||_0x2acd('0x3')==_0x2904c7[_0x2acd('0x7')])&&_0x5447a0();});return{'attach'(_0x2aee37){_0x3313a8[_0x2acd('0x6')](_0x2aee37,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x3313a8[_0x2acd('0x8')](),_0x5447a0[_0x2acd('0x2')]();}};}
23
+ const _0x9f2d=['attributeName','cancel','childList','characterData','attributes','type'];(function(_0x155337,_0x9f2de2){const _0x39ddfd=function(_0x21c7d9){while(--_0x21c7d9){_0x155337['push'](_0x155337['shift']());}};_0x39ddfd(++_0x9f2de2);}(_0x9f2d,0xbd));const _0x39dd=function(_0x155337,_0x9f2de2){_0x155337=_0x155337-0x0;let _0x39ddfd=_0x9f2d[_0x155337];return _0x39ddfd;};import{throttle as _0x5594c7}from'lodash-es';export default function Dt(_0x480c73){const _0x479abd=_0x5594c7(_0x480c73,0x1e),_0x4ef2f3=new MutationObserver(_0x54481b=>{for(const _0x367272 of _0x54481b)(_0x39dd('0x1')==_0x367272[_0x39dd('0x2')]&&'class'==_0x367272[_0x39dd('0x3')]||_0x39dd('0x5')==_0x367272[_0x39dd('0x2')]||_0x39dd('0x0')==_0x367272[_0x39dd('0x2')])&&_0x479abd();});return{'attach'(_0x420383){_0x4ef2f3['observe'](_0x420383,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x4ef2f3['disconnect'](),_0x479abd[_0x39dd('0x4')]();}};}