@ckeditor/ckeditor5-comments 0.0.0-nightly-20240124.0 → 0.0.0-nightly-20240126.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 _0x3aeb=['name','ck-annotation__info-name','set','ck-comment--remove-confirmation','ck-comment--','EXTERNAL_AVATAR','ck-comment__info-time','isExternal','getTemplate','push','Reply...','author','Remove','ck-comment--remove','bind','actionIndicator','extendTemplate','ck-comment__main','ck-annotation__info-time','EXTERNAL_IMPORT_WORD_AVATAR','addMany','creator','editButton','listenTo','label','@external','userView','isConfirm','Edit','ck-comment__wrapper','children','mouseleave','EXTERNAL_IMPORT_WORD_COMMENT','ck-comment','authoredAt','_createEditButton','remove','ck-comment__actions--hidden','some','formatDateTime','_createDropdown','removeButton','switchToEditMode','panelPosition','importWord','dropdown','change:isRemovable','isEnabled','items','source','_createRemoveButton','buttonView','_config','ck-comment__actions','getUserViewNotificationText','ck-annotation__actions','locale','isEditMode','isSystemComment','showConfirm','isEditable','setTemplate','attributes','execute','fire','icon','Delete\x20comment?','_attachActions','focus','_createCommentInputView','bindTemplate','element','isReadOnly','blur','mouseenter','edit','ck-comment__info','withText','getExternalCommentNote','add','then','change:isEnabled','ck-annotation__content-wrapper','pencil','threeVerticalDots','visibleView','_model','EXTERNAL_COMMENT','panelView','ck-comment--edit','isVisible','placeholder','actionBar','render','Show\x20more\x20items','isRemovable','length','div'];(function(_0x253b42,_0x3aeb32){const _0x36b832=function(_0x23dc61){while(--_0x23dc61){_0x253b42['push'](_0x253b42['shift']());}};_0x36b832(++_0x3aeb32);}(_0x3aeb,0x100));const _0x36b8=function(_0x253b42,_0x3aeb32){_0x253b42=_0x253b42-0x0;let _0x36b832=_0x3aeb[_0x253b42];return _0x36b832;};import{ButtonView as _0x11be45,createDropdown as _0x32b7f0,ListView as _0x5de59f,ListItemView as _0x1e8c71}from'ckeditor5/src/ui.js';import{icons as _0x48dfa7}from'ckeditor5/src/core.js';import{UserView as _0x2b159e,ConfirmMixin as _0x566938}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x27583d from'./basecommentview.js';import _0x55285e from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x380c0}from'../../../utils/common-translations.js';export default class pt extends _0x566938(_0x27583d){constructor(_0x73c6c2,_0x382fa8,_0x3f3019){super(_0x73c6c2,_0x382fa8,_0x3f3019),this[_0x36b8('0x28')](_0x36b8('0x35'),null),this[_0x36b8('0x28')](_0x36b8('0x1f'),_0x380c0(_0x73c6c2,_0x36b8('0x30'))),this['bind'](_0x36b8('0x48'))['to'](_0x382fa8),this['bind']('resolvedAt')['to'](_0x382fa8),this['actionBar']=this['createCollection'](),this[_0x36b8('0x60')]||(this[_0x36b8('0x3c')]=this[_0x36b8('0x49')](),this[_0x36b8('0x4f')]=this[_0x36b8('0x58')](),this[_0x36b8('0x56')]=this['createCollection'](),this[_0x36b8('0x56')][_0x36b8('0x3a')]([this['editButton'],this[_0x36b8('0x4f')]]),this[_0x36b8('0x53')]=this[_0x36b8('0x4e')](),this[_0x36b8('0x20')][_0x36b8('0x13')](this[_0x36b8('0x53')])),this[_0x36b8('0x40')]=new _0x2b159e(_0x73c6c2,_0x382fa8[_0x36b8('0x31')],this[_0x36b8('0x5c')]()),this[_0x36b8('0x40')][_0x36b8('0x36')]({'attributes':{'class':['ck-comment__user','ck-annotation__user']}}),this['listenTo'](_0x382fa8,_0x36b8('0x54'),()=>this['cancelConfirm']()),this[_0x36b8('0x1')](this['getTemplate']());}[_0x36b8('0x2e')](){const _0x1f676c=this[_0x36b8('0xa')],_0x3ce5cf=[{'tag':'div','attributes':{'class':[_0x36b8('0x10'),'ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView'][_0x36b8('0x26')]}],'attributes':{'class':['ck-comment__info-name',_0x36b8('0x27')]}},{'tag':'time','attributes':{'datetime':_0x1f676c['to'](_0x36b8('0x48')),'class':[_0x36b8('0x2c'),_0x36b8('0x38')]},'children':[{'text':_0x1f676c['to'](_0x36b8('0x48'),_0x1af45a=>this[_0x36b8('0x5a')][_0x36b8('0x4d')](_0x1af45a))}]}]},{'tag':'div','attributes':{'class':[_0x36b8('0x5b'),_0x36b8('0x5d'),_0x1f676c['if'](_0x36b8('0x5f'),_0x36b8('0x4b')),_0x1f676c['if']('isEditMode','ck-annotation__actions--hidden')]},'children':this[_0x36b8('0x20')]},{'tag':'div','attributes':{'class':[_0x36b8('0x16')]},'children':this[_0x36b8('0x19')]}];return this[_0x36b8('0x1a')][_0x36b8('0x2d')]&&_0x3ce5cf[_0x36b8('0x2f')]({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':[_0x36b8('0x43'),_0x1f676c['if'](_0x36b8('0x41'),_0x36b8('0x29'))],'tabindex':-0x1},'children':[{'tag':_0x36b8('0x25'),'attributes':{'class':[_0x36b8('0x47'),'ck-annotation',_0x1f676c['if'](_0x36b8('0x5f'),_0x36b8('0x1d')),_0x1f676c['if'](_0x36b8('0x60'),'ck-comment--info'),_0x1f676c['to'](_0x36b8('0x35'),_0x416e51=>_0x416e51?_0x36b8('0x2a')+_0x416e51:'')],'data-author-id':this[_0x36b8('0x1a')][_0x36b8('0x31')]['id'],'data-comment-id':this[_0x36b8('0x1a')]['id']},'children':[this[_0x36b8('0x40')],{'tag':_0x36b8('0x25'),'attributes':{'class':[_0x36b8('0x37'),'ck-annotation__main']},'children':_0x3ce5cf}]}]};}['_createEditButton'](){const _0x133e64=new _0x11be45(this['locale']);return _0x133e64[_0x36b8('0x3e')]=_0x380c0(this[_0x36b8('0x5e')],_0x36b8('0x42')),_0x133e64[_0x36b8('0x5')]=_0x48dfa7[_0x36b8('0x17')],_0x133e64[_0x36b8('0x11')]=!0x0,_0x133e64['extendTemplate']({'attributes':{'class':_0x36b8('0x1d')}}),_0x133e64['bind'](_0x36b8('0x55'))['to'](this['_model'],_0x36b8('0xc'),_0x5520b3=>!_0x5520b3),_0x133e64[_0x36b8('0x34')]('isVisible')['to'](this[_0x36b8('0x1a')],_0x36b8('0x0')),_0x133e64['on'](_0x36b8('0x3'),()=>this[_0x36b8('0x50')]()),_0x133e64;}['_createRemoveButton'](){const _0x306996=new _0x11be45(this['locale']);return _0x306996[_0x36b8('0x3e')]=_0x380c0(this[_0x36b8('0x5e')],_0x36b8('0x32')),_0x306996[_0x36b8('0x5')]=_0x55285e,_0x306996['withText']=!0x0,_0x306996['extendTemplate']({'attributes':{'class':_0x36b8('0x33')}}),_0x306996[_0x36b8('0x34')](_0x36b8('0x55'))['to'](this['_model'],_0x36b8('0xc'),_0x2e6cb5=>!_0x2e6cb5),_0x306996[_0x36b8('0x34')](_0x36b8('0x1e'))['to'](this['_model'],_0x36b8('0x23')),_0x306996['on'](_0x36b8('0x3'),()=>{this[_0x36b8('0x61')](_0x380c0(this[_0x36b8('0x5e')],_0x36b8('0x6')),this[_0x36b8('0xb')])[_0x36b8('0x14')](()=>{this[_0x36b8('0x4')]('removeComment',this[_0x36b8('0x1a')]['id']);});}),_0x306996;}[_0x36b8('0x4e')](){const _0x269b59=_0x32b7f0(this[_0x36b8('0x5e')]),_0x3f7aed=_0x269b59[_0x36b8('0x1c')][_0x36b8('0x44')],_0x56da6c=new _0x5de59f(this[_0x36b8('0x5e')]),_0x5e0ea7=(_0x29c91b,_0x5c72ff=-0x1)=>{const _0x380407=new _0x1e8c71(this['locale']);_0x380407['children'][_0x36b8('0x13')](_0x29c91b);const _0x3ea650=_0x5c72ff>-0x1?_0x5c72ff:_0x56da6c[_0x36b8('0x56')][_0x36b8('0x24')];_0x56da6c[_0x36b8('0x56')]['add'](_0x380407,_0x3ea650),_0x269b59[_0x36b8('0x3d')](_0x29c91b,_0x36b8('0x15'),()=>{_0x269b59[_0x36b8('0x55')]=[...this[_0x36b8('0x56')]][_0x36b8('0x4c')](_0x4f4156=>_0x4f4156[_0x36b8('0x55')]);}),_0x269b59[_0x36b8('0x3d')](_0x29c91b,'change:isVisible',()=>{_0x269b59[_0x36b8('0x59')][_0x36b8('0x1e')]=[...this[_0x36b8('0x56')]][_0x36b8('0x4c')](_0x2a00cd=>_0x2a00cd['isVisible']);});};_0x269b59[_0x36b8('0x51')]='sw',_0x269b59[_0x36b8('0x59')][_0x36b8('0x28')]({'label':_0x380c0(this[_0x36b8('0x5e')],_0x36b8('0x22')),'icon':_0x48dfa7[_0x36b8('0x18')]}),_0x269b59[_0x36b8('0x55')]=[...this[_0x36b8('0x56')]][_0x36b8('0x4c')](_0x5a60aa=>_0x5a60aa[_0x36b8('0x55')]),_0x269b59[_0x36b8('0x59')][_0x36b8('0x1e')]=[...this[_0x36b8('0x56')]]['some'](_0x673144=>_0x673144[_0x36b8('0x1e')]);for(const _0x53b150 of this[_0x36b8('0x56')])_0x5e0ea7(_0x53b150);return _0x3f7aed['add'](_0x56da6c),_0x269b59[_0x36b8('0x3d')](this[_0x36b8('0x56')],_0x36b8('0x13'),(_0x2bc2f8,_0x43c49c,_0x26f7f2)=>{_0x5e0ea7(_0x43c49c,_0x26f7f2);}),_0x269b59['listenTo'](this['items'],_0x36b8('0x4a'),(_0x564160,_0x1baa47,_0x707c1d)=>{_0x56da6c[_0x36b8('0x56')]['remove'](_0x707c1d);}),_0x269b59;}[_0x36b8('0x7')](_0x5a4a06,_0x31b48a){const _0x8c72fe=_0x5a4a06&&_0x5a4a06[_0x36b8('0xb')];_0x8c72fe&&(this[_0x36b8('0x3d')](_0x8c72fe,_0x36b8('0xe'),()=>this['actionIndicator']=_0x31b48a),this['listenTo'](_0x8c72fe,_0x36b8('0x8'),()=>this['actionIndicator']=_0x31b48a),this[_0x36b8('0x3d')](_0x8c72fe,_0x36b8('0x45'),()=>this[_0x36b8('0x35')]=null),this[_0x36b8('0x3d')](_0x8c72fe,_0x36b8('0xd'),()=>this[_0x36b8('0x35')]=null));}[_0x36b8('0x9')](){const _0x10b256=super['_createCommentInputView']();return _0x10b256['bind']('placeholder')['to'](this),_0x10b256;}[_0x36b8('0x12')](){return _0x36b8('0x52')===this[_0x36b8('0x1a')][_0x36b8('0x2')][_0x36b8('0x3f')][_0x36b8('0x57')]?_0x380c0(this[_0x36b8('0x5e')],_0x36b8('0x46')):_0x380c0(this[_0x36b8('0x5e')],_0x36b8('0x1b'));}[_0x36b8('0x5c')](){return this['_model'][_0x36b8('0x2d')]?_0x36b8('0x52')===this['_model'][_0x36b8('0x2')]['@external'][_0x36b8('0x57')]?_0x380c0(this[_0x36b8('0x5e')],_0x36b8('0x39'),this[_0x36b8('0x1a')][_0x36b8('0x3b')]['name']):_0x380c0(this[_0x36b8('0x5e')],_0x36b8('0x2b'),this[_0x36b8('0x1a')][_0x36b8('0x3b')][_0x36b8('0x26')]):null;}[_0x36b8('0x21')](){super[_0x36b8('0x21')](),this['_attachActions'](this[_0x36b8('0x3c')],_0x36b8('0xf')),this['_attachActions'](this[_0x36b8('0x4f')],_0x36b8('0x4a'));}}
23
+ const _0x3190=['editButton','Show\x20more\x20items','ck-annotation__info','authoredAt','userView','set','getUserViewNotificationText','listenTo','element','Delete\x20comment?','pencil','isEditable','EXTERNAL_IMPORT_WORD_COMMENT','ck-comment__info','_attachActions','placeholder','render','createCollection','time','visibleView','ck-comment__actions--hidden','name','_config','ck-comment__user','children','ck-comment--remove-confirmation','blur','EXTERNAL_AVATAR','actionIndicator','isReadOnly','EXTERNAL_COMMENT','_model','ck-annotation__user','ck-comment__actions','focus','buttonView','ck-annotation','actionBar','some','ck-annotation__info-time','ck-annotation__actions--hidden','mouseenter','removeButton','isVisible','change:isVisible','author','change:isEnabled','span','creator','ck-comment--','isSystemComment','removeComment','ck-comment--edit','panelView','bind','ck-comment__wrapper','ck-annotation__actions','push','importWord','showConfirm','dropdown','_createDropdown','locale','div','add','setTemplate','cancelConfirm','ck-annotation__main','items','extendTemplate','isEnabled','label','icon','ck-annotation__content-wrapper','_createEditButton','threeVerticalDots','isRemovable','_createRemoveButton','@external','_createCommentInputView','Remove','panelPosition','source','ck-comment__main','length','execute','isEditMode','getTemplate','remove','ck-comment__info-name','attributes','isExternal','isConfirm','ck-comment__info-time'];(function(_0x1675e1,_0x31909d){const _0x2e8729=function(_0x3118b6){while(--_0x3118b6){_0x1675e1['push'](_0x1675e1['shift']());}};_0x2e8729(++_0x31909d);}(_0x3190,0xc2));const _0x2e87=function(_0x1675e1,_0x31909d){_0x1675e1=_0x1675e1-0x0;let _0x2e8729=_0x3190[_0x1675e1];return _0x2e8729;};import{ButtonView as _0x21ee3b,createDropdown as _0x1be20c,ListView as _0x59eadf,ListItemView as _0x1aa8df}from'ckeditor5/src/ui.js';import{icons as _0x25b32b}from'ckeditor5/src/core.js';import{UserView as _0xe1f376,ConfirmMixin as _0x348f19}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x348ec5 from'./basecommentview.js';import _0x4583cb from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x382230}from'../../../utils/common-translations.js';export default class pt extends _0x348f19(_0x348ec5){constructor(_0x395d63,_0x382f18,_0x2cad0f){super(_0x395d63,_0x382f18,_0x2cad0f),this[_0x2e87('0x5d')]('actionIndicator',null),this[_0x2e87('0x5d')](_0x2e87('0x9'),_0x382230(_0x395d63,'Reply...')),this[_0x2e87('0x30')](_0x2e87('0x5b'))['to'](_0x382f18),this[_0x2e87('0x30')]('resolvedAt')['to'](_0x382f18),this[_0x2e87('0x1f')]=this[_0x2e87('0xb')](),this['isSystemComment']||(this[_0x2e87('0x58')]=this['_createEditButton'](),this[_0x2e87('0x24')]=this[_0x2e87('0x47')](),this[_0x2e87('0x3e')]=this[_0x2e87('0xb')](),this[_0x2e87('0x3e')]['addMany']([this[_0x2e87('0x58')],this[_0x2e87('0x24')]]),this[_0x2e87('0x36')]=this[_0x2e87('0x37')](),this['actionBar'][_0x2e87('0x3a')](this[_0x2e87('0x36')])),this[_0x2e87('0x5c')]=new _0xe1f376(_0x395d63,_0x382f18[_0x2e87('0x27')],this[_0x2e87('0x0')]()),this['userView'][_0x2e87('0x3f')]({'attributes':{'class':[_0x2e87('0x11'),_0x2e87('0x1a')]}}),this['listenTo'](_0x382f18,'change:isRemovable',()=>this[_0x2e87('0x3c')]()),this[_0x2e87('0x3b')](this[_0x2e87('0x51')]());}[_0x2e87('0x51')](){const _0x3c6b95=this['bindTemplate'],_0x470f05=[{'tag':_0x2e87('0x39'),'attributes':{'class':[_0x2e87('0x7'),_0x2e87('0x5a')]},'children':[{'tag':_0x2e87('0x29'),'children':[{'text':this['userView'][_0x2e87('0xf')]}],'attributes':{'class':[_0x2e87('0x53'),'ck-annotation__info-name']}},{'tag':_0x2e87('0xc'),'attributes':{'datetime':_0x3c6b95['to']('authoredAt'),'class':[_0x2e87('0x57'),_0x2e87('0x21')]},'children':[{'text':_0x3c6b95['to'](_0x2e87('0x5b'),_0x316389=>this[_0x2e87('0x10')]['formatDateTime'](_0x316389))}]}]},{'tag':_0x2e87('0x39'),'attributes':{'class':[_0x2e87('0x1b'),_0x2e87('0x32'),_0x3c6b95['if']('isEditMode',_0x2e87('0xe')),_0x3c6b95['if']('isEditMode',_0x2e87('0x22'))]},'children':this[_0x2e87('0x1f')]},{'tag':_0x2e87('0x39'),'attributes':{'class':[_0x2e87('0x43')]},'children':this[_0x2e87('0xd')]}];return this[_0x2e87('0x19')][_0x2e87('0x55')]&&_0x470f05[_0x2e87('0x33')]({'tag':_0x2e87('0x39'),'attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':[_0x2e87('0x31'),_0x3c6b95['if'](_0x2e87('0x56'),_0x2e87('0x13'))],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-comment',_0x2e87('0x1e'),_0x3c6b95['if'](_0x2e87('0x50'),_0x2e87('0x2e')),_0x3c6b95['if'](_0x2e87('0x2c'),'ck-comment--info'),_0x3c6b95['to'](_0x2e87('0x16'),_0x2a26e7=>_0x2a26e7?_0x2e87('0x2b')+_0x2a26e7:'')],'data-author-id':this[_0x2e87('0x19')][_0x2e87('0x27')]['id'],'data-comment-id':this[_0x2e87('0x19')]['id']},'children':[this['userView'],{'tag':_0x2e87('0x39'),'attributes':{'class':[_0x2e87('0x4d'),_0x2e87('0x3d')]},'children':_0x470f05}]}]};}[_0x2e87('0x44')](){const _0x410ca2=new _0x21ee3b(this[_0x2e87('0x38')]);return _0x410ca2[_0x2e87('0x41')]=_0x382230(this[_0x2e87('0x38')],'Edit'),_0x410ca2[_0x2e87('0x42')]=_0x25b32b[_0x2e87('0x4')],_0x410ca2['withText']=!0x0,_0x410ca2[_0x2e87('0x3f')]({'attributes':{'class':_0x2e87('0x2e')}}),_0x410ca2['bind'](_0x2e87('0x40'))['to'](this[_0x2e87('0x19')],_0x2e87('0x17'),_0x38554b=>!_0x38554b),_0x410ca2[_0x2e87('0x30')](_0x2e87('0x25'))['to'](this[_0x2e87('0x19')],_0x2e87('0x5')),_0x410ca2['on'](_0x2e87('0x4f'),()=>this['switchToEditMode']()),_0x410ca2;}[_0x2e87('0x47')](){const _0x1aa7c7=new _0x21ee3b(this['locale']);return _0x1aa7c7[_0x2e87('0x41')]=_0x382230(this[_0x2e87('0x38')],_0x2e87('0x4a')),_0x1aa7c7[_0x2e87('0x42')]=_0x4583cb,_0x1aa7c7['withText']=!0x0,_0x1aa7c7[_0x2e87('0x3f')]({'attributes':{'class':'ck-comment--remove'}}),_0x1aa7c7[_0x2e87('0x30')](_0x2e87('0x40'))['to'](this[_0x2e87('0x19')],_0x2e87('0x17'),_0x49ce9c=>!_0x49ce9c),_0x1aa7c7[_0x2e87('0x30')](_0x2e87('0x25'))['to'](this[_0x2e87('0x19')],_0x2e87('0x46')),_0x1aa7c7['on'](_0x2e87('0x4f'),()=>{this[_0x2e87('0x35')](_0x382230(this[_0x2e87('0x38')],_0x2e87('0x3')),this[_0x2e87('0x2')])['then'](()=>{this['fire'](_0x2e87('0x2d'),this[_0x2e87('0x19')]['id']);});}),_0x1aa7c7;}[_0x2e87('0x37')](){const _0x3a1a4a=_0x1be20c(this[_0x2e87('0x38')]),_0x583695=_0x3a1a4a[_0x2e87('0x2f')][_0x2e87('0x12')],_0x4d59c9=new _0x59eadf(this['locale']),_0xfc1496=(_0xa2c5ee,_0x42370e=-0x1)=>{const _0x222bea=new _0x1aa8df(this[_0x2e87('0x38')]);_0x222bea[_0x2e87('0x12')][_0x2e87('0x3a')](_0xa2c5ee);const _0xefc6aa=_0x42370e>-0x1?_0x42370e:_0x4d59c9[_0x2e87('0x3e')][_0x2e87('0x4e')];_0x4d59c9[_0x2e87('0x3e')][_0x2e87('0x3a')](_0x222bea,_0xefc6aa),_0x3a1a4a['listenTo'](_0xa2c5ee,_0x2e87('0x28'),()=>{_0x3a1a4a[_0x2e87('0x40')]=[...this[_0x2e87('0x3e')]]['some'](_0x13718e=>_0x13718e[_0x2e87('0x40')]);}),_0x3a1a4a[_0x2e87('0x1')](_0xa2c5ee,_0x2e87('0x26'),()=>{_0x3a1a4a[_0x2e87('0x1d')]['isVisible']=[...this[_0x2e87('0x3e')]][_0x2e87('0x20')](_0xf1097b=>_0xf1097b[_0x2e87('0x25')]);});};_0x3a1a4a[_0x2e87('0x4b')]='sw',_0x3a1a4a['buttonView'][_0x2e87('0x5d')]({'label':_0x382230(this[_0x2e87('0x38')],_0x2e87('0x59')),'icon':_0x25b32b[_0x2e87('0x45')]}),_0x3a1a4a[_0x2e87('0x40')]=[...this[_0x2e87('0x3e')]][_0x2e87('0x20')](_0x4aa799=>_0x4aa799[_0x2e87('0x40')]),_0x3a1a4a[_0x2e87('0x1d')][_0x2e87('0x25')]=[...this['items']][_0x2e87('0x20')](_0x40041f=>_0x40041f[_0x2e87('0x25')]);for(const _0x48d28d of this[_0x2e87('0x3e')])_0xfc1496(_0x48d28d);return _0x583695[_0x2e87('0x3a')](_0x4d59c9),_0x3a1a4a['listenTo'](this[_0x2e87('0x3e')],_0x2e87('0x3a'),(_0x26844c,_0x30b254,_0x470c28)=>{_0xfc1496(_0x30b254,_0x470c28);}),_0x3a1a4a[_0x2e87('0x1')](this['items'],'remove',(_0x39a138,_0x2fe09b,_0x899a2)=>{_0x4d59c9[_0x2e87('0x3e')]['remove'](_0x899a2);}),_0x3a1a4a;}['_attachActions'](_0x1a270e,_0x430579){const _0x5b22fa=_0x1a270e&&_0x1a270e[_0x2e87('0x2')];_0x5b22fa&&(this[_0x2e87('0x1')](_0x5b22fa,_0x2e87('0x23'),()=>this[_0x2e87('0x16')]=_0x430579),this[_0x2e87('0x1')](_0x5b22fa,_0x2e87('0x1c'),()=>this[_0x2e87('0x16')]=_0x430579),this[_0x2e87('0x1')](_0x5b22fa,'mouseleave',()=>this[_0x2e87('0x16')]=null),this[_0x2e87('0x1')](_0x5b22fa,_0x2e87('0x14'),()=>this[_0x2e87('0x16')]=null));}['_createCommentInputView'](){const _0x8cb1af=super[_0x2e87('0x49')]();return _0x8cb1af[_0x2e87('0x30')](_0x2e87('0x9'))['to'](this),_0x8cb1af;}['getExternalCommentNote'](){return _0x2e87('0x34')===this[_0x2e87('0x19')][_0x2e87('0x54')]['@external'][_0x2e87('0x4c')]?_0x382230(this[_0x2e87('0x38')],_0x2e87('0x6')):_0x382230(this[_0x2e87('0x38')],_0x2e87('0x18'));}[_0x2e87('0x0')](){return this[_0x2e87('0x19')][_0x2e87('0x55')]?_0x2e87('0x34')===this[_0x2e87('0x19')][_0x2e87('0x54')][_0x2e87('0x48')]['source']?_0x382230(this[_0x2e87('0x38')],'EXTERNAL_IMPORT_WORD_AVATAR',this[_0x2e87('0x19')][_0x2e87('0x2a')][_0x2e87('0xf')]):_0x382230(this['locale'],_0x2e87('0x15'),this[_0x2e87('0x19')][_0x2e87('0x2a')][_0x2e87('0xf')]):null;}['render'](){super[_0x2e87('0xa')](),this[_0x2e87('0x8')](this[_0x2e87('0x58')],'edit'),this['_attachActions'](this[_0x2e87('0x24')],_0x2e87('0x52'));}}
package/src/comments.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x3f0a=['Comments','requires'];(function(_0x54e6db,_0x3f0a0a){var _0x5d9f6a=function(_0x3a6a01){while(--_0x3a6a01){_0x54e6db['push'](_0x54e6db['shift']());}};_0x5d9f6a(++_0x3f0a0a);}(_0x3f0a,0x1c8));var _0x5d9f=function(_0x54e6db,_0x3f0a0a){_0x54e6db=_0x54e6db-0x0;var _0x5d9f6a=_0x3f0a[_0x54e6db];return _0x5d9f6a;};import{Plugin as _0x41359c}from'ckeditor5/src/core.js';import _0x553709 from'./comments/commentsrepository.js';import _0x53b49b from'./comments/commentsediting.js';import _0x338607 from'./comments/commentsui.js';import _0x54bc18 from'./commentsonly.js';import _0x249ab6 from'./annotations/widesidebar.js';import _0x511361 from'./annotations/narrowsidebar.js';import _0x15bbce from'./annotations/inlineannotations.js';import _0x4c2167 from'./comments/commentsarchiveui.js';import _0x2488cb from'./comments/commentsarchive.js';export default class f extends _0x41359c{static get[_0x5d9f('0x1')](){return[_0x553709,_0x53b49b,_0x338607,_0x2488cb,_0x4c2167,_0x54bc18,_0x249ab6,_0x511361,_0x15bbce];}static get['pluginName'](){return _0x5d9f('0x0');}}
23
+ var _0x5e83=['requires','Comments','pluginName'];(function(_0x803933,_0x5e83e5){var _0x5ececd=function(_0x319268){while(--_0x319268){_0x803933['push'](_0x803933['shift']());}};_0x5ececd(++_0x5e83e5);}(_0x5e83,0x85));var _0x5ece=function(_0x803933,_0x5e83e5){_0x803933=_0x803933-0x0;var _0x5ececd=_0x5e83[_0x803933];return _0x5ececd;};import{Plugin as _0x23e02c}from'ckeditor5/src/core.js';import _0x7bfc1e from'./comments/commentsrepository.js';import _0x26ad2e from'./comments/commentsediting.js';import _0x5b40b4 from'./comments/commentsui.js';import _0x43041a from'./commentsonly.js';import _0x5d2998 from'./annotations/widesidebar.js';import _0x4c0414 from'./annotations/narrowsidebar.js';import _0x74d9ab from'./annotations/inlineannotations.js';import _0x4864ef from'./comments/commentsarchiveui.js';import _0x5f40b9 from'./comments/commentsarchive.js';export default class f extends _0x23e02c{static get[_0x5ece('0x2')](){return[_0x7bfc1e,_0x26ad2e,_0x5b40b4,_0x5f40b9,_0x4864ef,_0x43041a,_0x5d2998,_0x4c0414,_0x74d9ab];}static get[_0x5ece('0x1')](){return _0x5ece('0x0');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1240=['forceDisabled','addCommentThread','document','view','config','editing','change:isEnabled','_disableCommentsOnlyMode','_enableCommentsOnlyMode','listenTo','plugins','pluginName','delete','stopListening','highest','affectsData','editor','CommentsOnly','commentsOnlyMode','stop','isEnabled','clearForceDisabled','commands','has','commentsOnly','DragDrop'];(function(_0x1d0f05,_0x1240df){const _0x343c86=function(_0x4aa31d){while(--_0x4aa31d){_0x1d0f05['push'](_0x1d0f05['shift']());}};_0x343c86(++_0x1240df);}(_0x1240,0xde));const _0x343c=function(_0x1d0f05,_0x1240df){_0x1d0f05=_0x1d0f05-0x0;let _0x343c86=_0x1240[_0x1d0f05];return _0x343c86;};import{Plugin as _0x47f0b3}from'ckeditor5/src/core.js';import _0x214a13 from'./comments/commentsediting.js';export default class e extends _0x47f0b3{static get[_0x343c('0x17')](){return _0x343c('0x3');}static get['requires'](){return[_0x214a13];}constructor(_0x2c87ff){super(_0x2c87ff),this['set'](_0x343c('0x6'),!0x1),this['on'](_0x343c('0x12'),(_0x16fe80,_0x44ade2,_0x5be4fa)=>{_0x5be4fa?this[_0x343c('0x14')]():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this[_0x343c('0x6')]&&this[_0x343c('0x2')][_0x343c('0x10')]['get'](_0x343c('0xa'))&&(this[_0x343c('0x6')]=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x186e3e,_0x5e4eef]of this[_0x343c('0x2')]['commands'])_0x5e4eef[_0x343c('0x1')]&&_0x343c('0xd')!==_0x186e3e&&_0x5e4eef[_0x343c('0xc')](_0x343c('0x4'));this['editor'][_0x343c('0x16')][_0x343c('0x9')](_0x343c('0xb'))&&this[_0x343c('0x2')][_0x343c('0x16')]['get']('DragDrop')['forceDisabled'](_0x343c('0x4'));const _0x45004f=this[_0x343c('0x2')][_0x343c('0x11')][_0x343c('0xf')][_0x343c('0xe')];this[_0x343c('0x15')](_0x45004f,'cut',_0x5ba935=>_0x5ba935[_0x343c('0x5')](),{'priority':_0x343c('0x0')}),this[_0x343c('0x15')](_0x45004f,'clipboardInput',_0x1403fc=>_0x1403fc[_0x343c('0x5')](),{'priority':_0x343c('0x0')}),this[_0x343c('0x15')](_0x45004f,_0x343c('0x18'),_0x11418b=>_0x11418b[_0x343c('0x5')](),{'priority':'highest'});}[_0x343c('0x13')](){for(const [_0x5b71f6,_0x461937]of this[_0x343c('0x2')][_0x343c('0x8')])_0x461937['affectsData']&&_0x343c('0xd')!==_0x5b71f6&&_0x461937[_0x343c('0x7')](_0x343c('0x4'));this[_0x343c('0x19')](this[_0x343c('0x2')]['editing'][_0x343c('0xf')][_0x343c('0xe')]);}}
23
+ const _0x5ab7=['affectsData','config','_enableCommentsOnlyMode','editing','listenTo','delete','commentsOnlyMode','plugins','cut','set','commands','isEnabled','clearForceDisabled','clipboardInput','requires','has','document','addCommentThread','get','afterInit','forceDisabled','DragDrop','editor','highest','view','stop'];(function(_0x52ed1f,_0x5ab7f3){const _0x5ca37e=function(_0x4b8acc){while(--_0x4b8acc){_0x52ed1f['push'](_0x52ed1f['shift']());}};_0x5ca37e(++_0x5ab7f3);}(_0x5ab7,0x1c0));const _0x5ca3=function(_0x52ed1f,_0x5ab7f3){_0x52ed1f=_0x52ed1f-0x0;let _0x5ca37e=_0x5ab7[_0x52ed1f];return _0x5ca37e;};import{Plugin as _0x1cf95b}from'ckeditor5/src/core.js';import _0x390ca7 from'./comments/commentsediting.js';export default class e extends _0x1cf95b{static get['pluginName'](){return'CommentsOnly';}static get[_0x5ca3('0x8')](){return[_0x390ca7];}constructor(_0x49895c){super(_0x49895c),this[_0x5ca3('0x3')](_0x5ca3('0x5'),!0x1),this['on']('change:isEnabled',(_0x1870c2,_0x282815,_0x2eff73)=>{_0x2eff73?this[_0x5ca3('0x16')]():this['_disableCommentsOnlyMode']();});}[_0x5ca3('0xd')](){!this[_0x5ca3('0x5')]&&this[_0x5ca3('0x10')][_0x5ca3('0x15')][_0x5ca3('0xc')]('commentsOnly')&&(this[_0x5ca3('0x5')]=!0x0);}[_0x5ca3('0x16')](){for(const [_0x582617,_0x399b81]of this['editor']['commands'])_0x399b81[_0x5ca3('0x14')]&&_0x5ca3('0xb')!==_0x582617&&_0x399b81['forceDisabled'](_0x5ca3('0x0'));this[_0x5ca3('0x10')][_0x5ca3('0x1')][_0x5ca3('0x9')](_0x5ca3('0xf'))&&this[_0x5ca3('0x10')][_0x5ca3('0x1')]['get']('DragDrop')[_0x5ca3('0xe')]('commentsOnlyMode');const _0x5aaf0e=this['editor'][_0x5ca3('0x17')]['view'][_0x5ca3('0xa')];this[_0x5ca3('0x18')](_0x5aaf0e,_0x5ca3('0x2'),_0xf5a23d=>_0xf5a23d[_0x5ca3('0x13')](),{'priority':_0x5ca3('0x11')}),this['listenTo'](_0x5aaf0e,_0x5ca3('0x7'),_0x57e529=>_0x57e529[_0x5ca3('0x13')](),{'priority':_0x5ca3('0x11')}),this[_0x5ca3('0x18')](_0x5aaf0e,_0x5ca3('0x19'),_0x473cb7=>_0x473cb7[_0x5ca3('0x13')](),{'priority':_0x5ca3('0x11')});}['_disableCommentsOnlyMode'](){for(const [_0x71d1a5,_0x3492cd]of this['editor'][_0x5ca3('0x4')])_0x3492cd[_0x5ca3('0x14')]&&_0x5ca3('0xb')!==_0x71d1a5&&_0x3492cd[_0x5ca3('0x6')](_0x5ca3('0x0'));this['stopListening'](this[_0x5ca3('0x10')][_0x5ca3('0x17')][_0x5ca3('0x12')][_0x5ca3('0xa')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x248c9f,_0x17cd86,_0x2b94c9){const t=_0x248c9f['t'];switch(_0x17cd86){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'},_0x2b94c9);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'},_0x2b94c9);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'},_0x2b94c9);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'},_0x2b94c9);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(_0x79c5cc,_0x59defd,_0x473354){const t=_0x79c5cc['t'];switch(_0x59defd){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'},_0x473354);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'},_0x473354);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'},_0x473354);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'},_0x473354);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 _0x2201=['type','disconnect','characterData','childList','class','cancel','observe','attributeName'];(function(_0x3fdec5,_0x2201fe){const _0x5ae6db=function(_0x1b3802){while(--_0x1b3802){_0x3fdec5['push'](_0x3fdec5['shift']());}};_0x5ae6db(++_0x2201fe);}(_0x2201,0x170));const _0x5ae6=function(_0x3fdec5,_0x2201fe){_0x3fdec5=_0x3fdec5-0x0;let _0x5ae6db=_0x2201[_0x3fdec5];return _0x5ae6db;};import{throttle as _0x5c432e}from'lodash-es';export default function Dt(_0x79c693){const _0x1abe0d=_0x5c432e(_0x79c693,0x1e),_0x2d21c2=new MutationObserver(_0x2a1928=>{for(const _0x154cb7 of _0x2a1928)('attributes'==_0x154cb7[_0x5ae6('0x0')]&&_0x5ae6('0x4')==_0x154cb7[_0x5ae6('0x7')]||_0x5ae6('0x3')==_0x154cb7['type']||_0x5ae6('0x2')==_0x154cb7[_0x5ae6('0x0')])&&_0x1abe0d();});return{'attach'(_0x7a7275){_0x2d21c2[_0x5ae6('0x6')](_0x7a7275,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x2d21c2[_0x5ae6('0x1')](),_0x1abe0d[_0x5ae6('0x5')]();}};}
23
+ const _0x490f=['class','observe','characterData','disconnect','type','childList','attributes','cancel','attributeName'];(function(_0x224795,_0x490fa8){const _0x539ec0=function(_0x4af77d){while(--_0x4af77d){_0x224795['push'](_0x224795['shift']());}};_0x539ec0(++_0x490fa8);}(_0x490f,0xf4));const _0x539e=function(_0x224795,_0x490fa8){_0x224795=_0x224795-0x0;let _0x539ec0=_0x490f[_0x224795];return _0x539ec0;};import{throttle as _0x153d09}from'lodash-es';export default function Dt(_0x2287e6){const _0x361458=_0x153d09(_0x2287e6,0x1e),_0x21ebc3=new MutationObserver(_0x40f57f=>{for(const _0x226905 of _0x40f57f)(_0x539e('0x5')==_0x226905[_0x539e('0x3')]&&_0x539e('0x8')==_0x226905[_0x539e('0x7')]||_0x539e('0x4')==_0x226905['type']||_0x539e('0x1')==_0x226905[_0x539e('0x3')])&&_0x361458();});return{'attach'(_0x3ef749){_0x21ebc3[_0x539e('0x0')](_0x3ef749,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x21ebc3[_0x539e('0x2')](),_0x361458[_0x539e('0x6')]();}};}