@ckeditor/ckeditor5-comments 0.0.0-nightly-20230818.1 → 0.0.0-nightly-20230820.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 _0x517a=['EXTERNAL_AVATAR','_createRemoveButton','getUserViewNotificationText','buttonView','author','EXTERNAL_IMPORT_WORD_COMMENT','addMany','Delete\x20comment?','bindTemplate','children','change:isRemovable','isEditable','label','bind','execute','isSystemComment','isEditMode','pencil','element','editButton','icon','edit','isReadOnly','_createCommentInputView','ck-comment__info-time','ck-comment__main','source','ck-annotation__actions','mouseleave','getTemplate','removeComment','ck-comment__actions--hidden','threeVerticalDots','ck-annotation','ck-comment__info','authoredAt','getExternalCommentNote','showConfirm','then','actionBar','setTemplate','formatDateTime','@external','isEnabled','resolvedAt','ck-annotation__info-name','change:isEnabled','actionIndicator','render','blur','name','ck-annotation__actions--hidden','set','Remove','_createDropdown','mouseenter','attributes','userView','ck-comment--info','ck-annotation__content-wrapper','dropdown','EXTERNAL_COMMENT','ck-comment__info-name','ck-annotation__info','remove','removeButton','panelPosition','locale','ck-comment','_createEditButton','isExternal','ck-comment--','add','span','_model','Edit','some','ck-annotation__main','visibleView','listenTo','ck-comment--remove-confirmation','EXTERNAL_IMPORT_WORD_AVATAR','focus','_attachActions','extendTemplate','cancelConfirm','importWord','withText','div','placeholder','isConfirm','fire','ck-comment--remove','Show\x20more\x20items','creator','isVisible','items'];(function(_0x3e1350,_0x517acf){const _0x1e6319=function(_0x5948f3){while(--_0x5948f3){_0x3e1350['push'](_0x3e1350['shift']());}};_0x1e6319(++_0x517acf);}(_0x517a,0x169));const _0x1e63=function(_0x3e1350,_0x517acf){_0x3e1350=_0x3e1350-0x0;let _0x1e6319=_0x517a[_0x3e1350];return _0x1e6319;};import{ButtonView as _0x29c0ae,createDropdown as _0xff52be,ListView as _0x1b6ada,ListItemView as _0xac9140}from'ckeditor5/src/ui';import{icons as _0x11242a}from'ckeditor5/src/core';import{UserView as _0xe0e2f6,ConfirmMixin as _0x22ea75}from'ckeditor5-collaboration/src/collaboration-core';import _0x39094e from'./basecommentview';import _0x5eec24 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x2c71bd}from'../../../utils/common-translations';export default class ut extends _0x22ea75(_0x39094e){constructor(_0x36cb3d,_0x3d4b3a,_0x55f109){super(_0x36cb3d,_0x3d4b3a,_0x55f109),this[_0x1e63('0x4f')](_0x1e63('0x4a'),null),this['set'](_0x1e63('0x13'),_0x2c71bd(_0x36cb3d,'Reply...')),this[_0x1e63('0x28')](_0x1e63('0x3e'))['to'](_0x3d4b3a),this['bind'](_0x1e63('0x47'))['to'](_0x3d4b3a),this['actionBar']=this['createCollection'](),this[_0x1e63('0x2a')]||(this['editButton']=this[_0x1e63('0x60')](),this[_0x1e63('0x5c')]=this[_0x1e63('0x1c')](),this[_0x1e63('0x1a')]=this['createCollection'](),this[_0x1e63('0x1a')][_0x1e63('0x21')]([this['editButton'],this['removeButton']]),this[_0x1e63('0x57')]=this[_0x1e63('0x51')](),this[_0x1e63('0x42')][_0x1e63('0x2')](this['dropdown'])),this[_0x1e63('0x54')]=new _0xe0e2f6(_0x36cb3d,_0x3d4b3a[_0x1e63('0x1f')],this[_0x1e63('0x1d')]()),this[_0x1e63('0x54')]['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user']}}),this[_0x1e63('0x9')](_0x3d4b3a,_0x1e63('0x25'),()=>this[_0x1e63('0xf')]()),this[_0x1e63('0x43')](this[_0x1e63('0x38')]());}[_0x1e63('0x38')](){const _0x4f6d7a=this[_0x1e63('0x23')],_0x39b010=[{'tag':'div','attributes':{'class':[_0x1e63('0x3d'),_0x1e63('0x5a')]},'children':[{'tag':_0x1e63('0x3'),'children':[{'text':this[_0x1e63('0x54')][_0x1e63('0x4d')]}],'attributes':{'class':[_0x1e63('0x59'),_0x1e63('0x48')]}},{'tag':'time','attributes':{'datetime':_0x4f6d7a['to'](_0x1e63('0x3e')),'class':[_0x1e63('0x33'),'ck-annotation__info-time']},'children':[{'text':_0x4f6d7a['to'](_0x1e63('0x3e'),_0x346e4c=>this['_config'][_0x1e63('0x44')](_0x346e4c))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions',_0x1e63('0x36'),_0x4f6d7a['if'](_0x1e63('0x2b'),_0x1e63('0x3a')),_0x4f6d7a['if']('isEditMode',_0x1e63('0x4e'))]},'children':this['actionBar']},{'tag':'div','attributes':{'class':[_0x1e63('0x56')]},'children':this[_0x1e63('0x8')]}];return this[_0x1e63('0x4')]['isExternal']&&_0x39b010['push']({'tag':_0x1e63('0x12'),'attributes':{'class':['ck-comment__external']},'children':[{'text':this[_0x1e63('0x3f')]()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x4f6d7a['if'](_0x1e63('0x14'),_0x1e63('0xa'))],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':[_0x1e63('0x5f'),_0x1e63('0x3c'),_0x4f6d7a['if'](_0x1e63('0x2b'),'ck-comment--edit'),_0x4f6d7a['if'](_0x1e63('0x2a'),_0x1e63('0x55')),_0x4f6d7a['to'](_0x1e63('0x4a'),_0x2497aa=>_0x2497aa?_0x1e63('0x1')+_0x2497aa:'')],'data-author-id':this[_0x1e63('0x4')][_0x1e63('0x1f')]['id'],'data-comment-id':this[_0x1e63('0x4')]['id']},'children':[this[_0x1e63('0x54')],{'tag':_0x1e63('0x12'),'attributes':{'class':[_0x1e63('0x34'),_0x1e63('0x7')]},'children':_0x39b010}]}]};}[_0x1e63('0x60')](){const _0x4ba201=new _0x29c0ae(this[_0x1e63('0x5e')]);return _0x4ba201['label']=_0x2c71bd(this[_0x1e63('0x5e')],_0x1e63('0x5')),_0x4ba201['icon']=_0x11242a[_0x1e63('0x2c')],_0x4ba201['withText']=!0x0,_0x4ba201[_0x1e63('0xe')]({'attributes':{'class':'ck-comment--edit'}}),_0x4ba201['bind'](_0x1e63('0x46'))['to'](this[_0x1e63('0x4')],'isReadOnly',_0x196f15=>!_0x196f15),_0x4ba201[_0x1e63('0x28')](_0x1e63('0x19'))['to'](this[_0x1e63('0x4')],_0x1e63('0x26')),_0x4ba201['on'](_0x1e63('0x29'),()=>this['switchToEditMode']()),_0x4ba201;}['_createRemoveButton'](){const _0x774156=new _0x29c0ae(this[_0x1e63('0x5e')]);return _0x774156[_0x1e63('0x27')]=_0x2c71bd(this[_0x1e63('0x5e')],_0x1e63('0x50')),_0x774156[_0x1e63('0x2f')]=_0x5eec24,_0x774156[_0x1e63('0x11')]=!0x0,_0x774156['extendTemplate']({'attributes':{'class':_0x1e63('0x16')}}),_0x774156['bind'](_0x1e63('0x46'))['to'](this[_0x1e63('0x4')],_0x1e63('0x31'),_0x6e9156=>!_0x6e9156),_0x774156[_0x1e63('0x28')](_0x1e63('0x19'))['to'](this[_0x1e63('0x4')],'isRemovable'),_0x774156['on'](_0x1e63('0x29'),()=>{this[_0x1e63('0x40')](_0x2c71bd(this[_0x1e63('0x5e')],_0x1e63('0x22')),this[_0x1e63('0x2d')])[_0x1e63('0x41')](()=>{this[_0x1e63('0x15')](_0x1e63('0x39'),this['_model']['id']);});}),_0x774156;}['_createDropdown'](){const _0x2f06ba=_0xff52be(this[_0x1e63('0x5e')]),_0x3808c5=_0x2f06ba['panelView'][_0x1e63('0x24')],_0x1b355c=new _0x1b6ada(this[_0x1e63('0x5e')]),_0x1ec790=(_0x15da29,_0x5b241c=-0x1)=>{const _0x285cb3=new _0xac9140(this[_0x1e63('0x5e')]);_0x285cb3['children'][_0x1e63('0x2')](_0x15da29);const _0x55b1b6=_0x5b241c>-0x1?_0x5b241c:_0x1b355c[_0x1e63('0x1a')]['length'];_0x1b355c[_0x1e63('0x1a')][_0x1e63('0x2')](_0x285cb3,_0x55b1b6),_0x2f06ba[_0x1e63('0x9')](_0x15da29,_0x1e63('0x49'),()=>{_0x2f06ba['isEnabled']=[...this[_0x1e63('0x1a')]][_0x1e63('0x6')](_0xa1b33e=>_0xa1b33e['isEnabled']);}),_0x2f06ba[_0x1e63('0x9')](_0x15da29,'change:isVisible',()=>{_0x2f06ba[_0x1e63('0x1e')]['isVisible']=[...this[_0x1e63('0x1a')]][_0x1e63('0x6')](_0x5851c6=>_0x5851c6[_0x1e63('0x19')]);});};_0x2f06ba[_0x1e63('0x5d')]='sw',_0x2f06ba[_0x1e63('0x1e')]['set']({'label':_0x2c71bd(this[_0x1e63('0x5e')],_0x1e63('0x17')),'icon':_0x11242a[_0x1e63('0x3b')]}),_0x2f06ba[_0x1e63('0x46')]=[...this['items']][_0x1e63('0x6')](_0x35316e=>_0x35316e['isEnabled']),_0x2f06ba[_0x1e63('0x1e')]['isVisible']=[...this['items']][_0x1e63('0x6')](_0x1304df=>_0x1304df[_0x1e63('0x19')]);for(const _0x1c4f89 of this[_0x1e63('0x1a')])_0x1ec790(_0x1c4f89);return _0x3808c5[_0x1e63('0x2')](_0x1b355c),_0x2f06ba[_0x1e63('0x9')](this[_0x1e63('0x1a')],_0x1e63('0x2'),(_0x2e8155,_0x255a0f,_0x28f73b)=>{_0x1ec790(_0x255a0f,_0x28f73b);}),_0x2f06ba[_0x1e63('0x9')](this[_0x1e63('0x1a')],_0x1e63('0x5b'),(_0x27cd51,_0x558145,_0xdbee3a)=>{_0x1b355c[_0x1e63('0x1a')][_0x1e63('0x5b')](_0xdbee3a);}),_0x2f06ba;}['_attachActions'](_0x4b2535,_0x4d5ea2){const _0x5ed500=_0x4b2535&&_0x4b2535[_0x1e63('0x2d')];_0x5ed500&&(this[_0x1e63('0x9')](_0x5ed500,_0x1e63('0x52'),()=>this['actionIndicator']=_0x4d5ea2),this['listenTo'](_0x5ed500,_0x1e63('0xc'),()=>this[_0x1e63('0x4a')]=_0x4d5ea2),this['listenTo'](_0x5ed500,_0x1e63('0x37'),()=>this[_0x1e63('0x4a')]=null),this[_0x1e63('0x9')](_0x5ed500,_0x1e63('0x4c'),()=>this[_0x1e63('0x4a')]=null));}[_0x1e63('0x32')](){const _0x1d1342=super[_0x1e63('0x32')]();return _0x1d1342['bind'](_0x1e63('0x13'))['to'](this),_0x1d1342;}[_0x1e63('0x3f')](){return'importWord'===this['_model'][_0x1e63('0x53')][_0x1e63('0x45')][_0x1e63('0x35')]?_0x2c71bd(this['locale'],_0x1e63('0x20')):_0x2c71bd(this[_0x1e63('0x5e')],_0x1e63('0x58'));}['getUserViewNotificationText'](){return this[_0x1e63('0x4')][_0x1e63('0x0')]?_0x1e63('0x10')===this[_0x1e63('0x4')][_0x1e63('0x53')][_0x1e63('0x45')][_0x1e63('0x35')]?_0x2c71bd(this['locale'],_0x1e63('0xb'),this[_0x1e63('0x4')]['creator'][_0x1e63('0x4d')]):_0x2c71bd(this[_0x1e63('0x5e')],_0x1e63('0x1b'),this['_model'][_0x1e63('0x18')][_0x1e63('0x4d')]):null;}[_0x1e63('0x4b')](){super[_0x1e63('0x4b')](),this[_0x1e63('0xd')](this[_0x1e63('0x2e')],_0x1e63('0x30')),this['_attachActions'](this[_0x1e63('0x5c')],'remove');}}
23
+ const _0x4c40=['execute','edit','isConfirm','actionIndicator','ck-annotation','userView','getUserViewNotificationText','ck-comment__info-name','authoredAt','isSystemComment','element','Edit','listenTo','_createRemoveButton','change:isRemovable','cancelConfirm','EXTERNAL_AVATAR','mouseleave','creator','isEnabled','getTemplate','ck-annotation__content-wrapper','importWord','panelView','author','EXTERNAL_IMPORT_WORD_AVATAR','blur','div','editButton','isReadOnly','EXTERNAL_COMMENT','set','ck-annotation__actions--hidden','ck-annotation__info-name','addMany','EXTERNAL_IMPORT_WORD_COMMENT','ck-comment__info','name','resolvedAt','visibleView','dropdown','ck-comment__actions--hidden','buttonView','ck-comment__wrapper','change:isVisible','_model','then','some','_createCommentInputView','time','Show\x20more\x20items','locale','attributes','length','fire','createCollection','extendTemplate','showConfirm','label','ck-comment__user','icon','_createEditButton','ck-comment--remove-confirmation','isEditMode','remove','ck-comment--','ck-annotation__actions','@external','span','isEditable','threeVerticalDots','withText','source','_config','isVisible','_attachActions','actionBar','getExternalCommentNote','isExternal','setTemplate','ck-comment--remove','items','switchToEditMode','ck-annotation__info','bind','ck-annotation__main','Remove','add','bindTemplate','ck-comment','removeButton','mouseenter','_createDropdown','pencil','removeComment','ck-annotation__info-time','render','ck-comment--edit','panelPosition','ck-comment__info-time','ck-annotation__user','placeholder'];(function(_0x2211fb,_0x4c4079){const _0x19f896=function(_0x27ade8){while(--_0x27ade8){_0x2211fb['push'](_0x2211fb['shift']());}};_0x19f896(++_0x4c4079);}(_0x4c40,0xf3));const _0x19f8=function(_0x2211fb,_0x4c4079){_0x2211fb=_0x2211fb-0x0;let _0x19f896=_0x4c40[_0x2211fb];return _0x19f896;};import{ButtonView as _0x270bd9,createDropdown as _0x1a7d3c,ListView as _0x452d6d,ListItemView as _0x378b41}from'ckeditor5/src/ui';import{icons as _0x20bdf9}from'ckeditor5/src/core';import{UserView as _0x4e0e56,ConfirmMixin as _0x380185}from'ckeditor5-collaboration/src/collaboration-core';import _0x6daadd from'./basecommentview';import _0x471cdf from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x317437}from'../../../utils/common-translations';export default class ut extends _0x380185(_0x6daadd){constructor(_0x326065,_0x4ee8f4,_0x5e3781){super(_0x326065,_0x4ee8f4,_0x5e3781),this['set'](_0x19f8('0x42'),null),this[_0x19f8('0x5e')](_0x19f8('0x3e'),_0x317437(_0x326065,'Reply...')),this[_0x19f8('0x2d')](_0x19f8('0x47'))['to'](_0x4ee8f4),this[_0x19f8('0x2d')](_0x19f8('0x65'))['to'](_0x4ee8f4),this[_0x19f8('0x25')]=this[_0x19f8('0x10')](),this[_0x19f8('0x48')]||(this[_0x19f8('0x5b')]=this['_createEditButton'](),this[_0x19f8('0x33')]=this[_0x19f8('0x4c')](),this[_0x19f8('0x2a')]=this[_0x19f8('0x10')](),this[_0x19f8('0x2a')][_0x19f8('0x61')]([this[_0x19f8('0x5b')],this[_0x19f8('0x33')]]),this[_0x19f8('0x1')]=this[_0x19f8('0x35')](),this[_0x19f8('0x25')]['add'](this['dropdown'])),this[_0x19f8('0x44')]=new _0x4e0e56(_0x326065,_0x4ee8f4[_0x19f8('0x57')],this[_0x19f8('0x45')]()),this[_0x19f8('0x44')][_0x19f8('0x11')]({'attributes':{'class':[_0x19f8('0x14'),_0x19f8('0x3d')]}}),this[_0x19f8('0x4b')](_0x4ee8f4,_0x19f8('0x4d'),()=>this[_0x19f8('0x4e')]()),this[_0x19f8('0x28')](this[_0x19f8('0x53')]());}[_0x19f8('0x53')](){const _0x4ce37a=this[_0x19f8('0x31')],_0x4b56ab=[{'tag':_0x19f8('0x5a'),'attributes':{'class':[_0x19f8('0x63'),_0x19f8('0x2c')]},'children':[{'tag':_0x19f8('0x1d'),'children':[{'text':this[_0x19f8('0x44')][_0x19f8('0x64')]}],'attributes':{'class':[_0x19f8('0x46'),_0x19f8('0x60')]}},{'tag':_0x19f8('0xa'),'attributes':{'datetime':_0x4ce37a['to'](_0x19f8('0x47')),'class':[_0x19f8('0x3c'),_0x19f8('0x38')]},'children':[{'text':_0x4ce37a['to'](_0x19f8('0x47'),_0x48772f=>this[_0x19f8('0x22')]['formatDateTime'](_0x48772f))}]}]},{'tag':_0x19f8('0x5a'),'attributes':{'class':['ck-comment__actions',_0x19f8('0x1b'),_0x4ce37a['if']('isEditMode',_0x19f8('0x2')),_0x4ce37a['if']('isEditMode',_0x19f8('0x5f'))]},'children':this['actionBar']},{'tag':_0x19f8('0x5a'),'attributes':{'class':[_0x19f8('0x54')]},'children':this[_0x19f8('0x0')]}];return this[_0x19f8('0x6')][_0x19f8('0x27')]&&_0x4b56ab['push']({'tag':_0x19f8('0x5a'),'attributes':{'class':['ck-comment__external']},'children':[{'text':this[_0x19f8('0x26')]()}]}),{'tag':'li','attributes':{'class':[_0x19f8('0x4'),_0x4ce37a['if'](_0x19f8('0x41'),_0x19f8('0x17'))],'tabindex':-0x1},'children':[{'tag':_0x19f8('0x5a'),'attributes':{'class':[_0x19f8('0x32'),_0x19f8('0x43'),_0x4ce37a['if'](_0x19f8('0x18'),_0x19f8('0x3a')),_0x4ce37a['if'](_0x19f8('0x48'),'ck-comment--info'),_0x4ce37a['to']('actionIndicator',_0x3c23e4=>_0x3c23e4?_0x19f8('0x1a')+_0x3c23e4:'')],'data-author-id':this['_model']['author']['id'],'data-comment-id':this[_0x19f8('0x6')]['id']},'children':[this['userView'],{'tag':_0x19f8('0x5a'),'attributes':{'class':['ck-comment__main',_0x19f8('0x2e')]},'children':_0x4b56ab}]}]};}[_0x19f8('0x16')](){const _0x12ff4f=new _0x270bd9(this['locale']);return _0x12ff4f[_0x19f8('0x13')]=_0x317437(this['locale'],_0x19f8('0x4a')),_0x12ff4f[_0x19f8('0x15')]=_0x20bdf9[_0x19f8('0x36')],_0x12ff4f[_0x19f8('0x20')]=!0x0,_0x12ff4f[_0x19f8('0x11')]({'attributes':{'class':_0x19f8('0x3a')}}),_0x12ff4f[_0x19f8('0x2d')](_0x19f8('0x52'))['to'](this['_model'],_0x19f8('0x5c'),_0x56a9be=>!_0x56a9be),_0x12ff4f[_0x19f8('0x2d')](_0x19f8('0x23'))['to'](this[_0x19f8('0x6')],_0x19f8('0x1e')),_0x12ff4f['on']('execute',()=>this[_0x19f8('0x2b')]()),_0x12ff4f;}[_0x19f8('0x4c')](){const _0x502340=new _0x270bd9(this['locale']);return _0x502340[_0x19f8('0x13')]=_0x317437(this[_0x19f8('0xc')],_0x19f8('0x2f')),_0x502340['icon']=_0x471cdf,_0x502340[_0x19f8('0x20')]=!0x0,_0x502340['extendTemplate']({'attributes':{'class':_0x19f8('0x29')}}),_0x502340['bind']('isEnabled')['to'](this[_0x19f8('0x6')],_0x19f8('0x5c'),_0x23e131=>!_0x23e131),_0x502340['bind'](_0x19f8('0x23'))['to'](this[_0x19f8('0x6')],'isRemovable'),_0x502340['on'](_0x19f8('0x3f'),()=>{this[_0x19f8('0x12')](_0x317437(this[_0x19f8('0xc')],'Delete\x20comment?'),this[_0x19f8('0x49')])[_0x19f8('0x7')](()=>{this[_0x19f8('0xf')](_0x19f8('0x37'),this['_model']['id']);});}),_0x502340;}[_0x19f8('0x35')](){const _0x3b1dbd=_0x1a7d3c(this[_0x19f8('0xc')]),_0xe6ee5e=_0x3b1dbd[_0x19f8('0x56')]['children'],_0x242d48=new _0x452d6d(this['locale']),_0x205cca=(_0x48780d,_0x114b4d=-0x1)=>{const _0x1dee6f=new _0x378b41(this[_0x19f8('0xc')]);_0x1dee6f['children'][_0x19f8('0x30')](_0x48780d);const _0x48d5b0=_0x114b4d>-0x1?_0x114b4d:_0x242d48['items'][_0x19f8('0xe')];_0x242d48[_0x19f8('0x2a')][_0x19f8('0x30')](_0x1dee6f,_0x48d5b0),_0x3b1dbd['listenTo'](_0x48780d,'change:isEnabled',()=>{_0x3b1dbd[_0x19f8('0x52')]=[...this[_0x19f8('0x2a')]][_0x19f8('0x8')](_0x4da1b2=>_0x4da1b2['isEnabled']);}),_0x3b1dbd[_0x19f8('0x4b')](_0x48780d,_0x19f8('0x5'),()=>{_0x3b1dbd[_0x19f8('0x3')][_0x19f8('0x23')]=[...this['items']]['some'](_0x536696=>_0x536696[_0x19f8('0x23')]);});};_0x3b1dbd[_0x19f8('0x3b')]='sw',_0x3b1dbd[_0x19f8('0x3')][_0x19f8('0x5e')]({'label':_0x317437(this[_0x19f8('0xc')],_0x19f8('0xb')),'icon':_0x20bdf9[_0x19f8('0x1f')]}),_0x3b1dbd[_0x19f8('0x52')]=[...this['items']][_0x19f8('0x8')](_0x91d475=>_0x91d475[_0x19f8('0x52')]),_0x3b1dbd[_0x19f8('0x3')][_0x19f8('0x23')]=[...this['items']][_0x19f8('0x8')](_0x52010f=>_0x52010f['isVisible']);for(const _0x25818b of this[_0x19f8('0x2a')])_0x205cca(_0x25818b);return _0xe6ee5e['add'](_0x242d48),_0x3b1dbd[_0x19f8('0x4b')](this['items'],_0x19f8('0x30'),(_0x3b6a65,_0x30c3e6,_0x579ed1)=>{_0x205cca(_0x30c3e6,_0x579ed1);}),_0x3b1dbd['listenTo'](this[_0x19f8('0x2a')],_0x19f8('0x19'),(_0x59d1fc,_0x11b20a,_0x5b88a2)=>{_0x242d48[_0x19f8('0x2a')][_0x19f8('0x19')](_0x5b88a2);}),_0x3b1dbd;}[_0x19f8('0x24')](_0x219ea9,_0x3b6f73){const _0x163426=_0x219ea9&&_0x219ea9['element'];_0x163426&&(this[_0x19f8('0x4b')](_0x163426,_0x19f8('0x34'),()=>this[_0x19f8('0x42')]=_0x3b6f73),this[_0x19f8('0x4b')](_0x163426,'focus',()=>this[_0x19f8('0x42')]=_0x3b6f73),this['listenTo'](_0x163426,_0x19f8('0x50'),()=>this[_0x19f8('0x42')]=null),this[_0x19f8('0x4b')](_0x163426,_0x19f8('0x59'),()=>this[_0x19f8('0x42')]=null));}['_createCommentInputView'](){const _0x2a6543=super[_0x19f8('0x9')]();return _0x2a6543[_0x19f8('0x2d')](_0x19f8('0x3e'))['to'](this),_0x2a6543;}['getExternalCommentNote'](){return _0x19f8('0x55')===this[_0x19f8('0x6')][_0x19f8('0xd')][_0x19f8('0x1c')][_0x19f8('0x21')]?_0x317437(this[_0x19f8('0xc')],_0x19f8('0x62')):_0x317437(this['locale'],_0x19f8('0x5d'));}[_0x19f8('0x45')](){return this[_0x19f8('0x6')][_0x19f8('0x27')]?_0x19f8('0x55')===this[_0x19f8('0x6')][_0x19f8('0xd')][_0x19f8('0x1c')][_0x19f8('0x21')]?_0x317437(this['locale'],_0x19f8('0x58'),this['_model'][_0x19f8('0x51')][_0x19f8('0x64')]):_0x317437(this['locale'],_0x19f8('0x4f'),this[_0x19f8('0x6')][_0x19f8('0x51')][_0x19f8('0x64')]):null;}[_0x19f8('0x39')](){super[_0x19f8('0x39')](),this[_0x19f8('0x24')](this[_0x19f8('0x5b')],_0x19f8('0x40')),this['_attachActions'](this[_0x19f8('0x33')],_0x19f8('0x19'));}}
package/src/comments.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x5caa=['requires','pluginName','Comments'];(function(_0x30728e,_0x5caa70){var _0x13d8b1=function(_0x51ee89){while(--_0x51ee89){_0x30728e['push'](_0x30728e['shift']());}};_0x13d8b1(++_0x5caa70);}(_0x5caa,0x12f));var _0x13d8=function(_0x30728e,_0x5caa70){_0x30728e=_0x30728e-0x0;var _0x13d8b1=_0x5caa[_0x30728e];return _0x13d8b1;};import{Plugin as _0x7b41cb}from'ckeditor5/src/core';import _0x2323f1 from'./comments/commentsrepository';import _0xeee709 from'./comments/commentsediting';import _0x431e73 from'./comments/commentsui';import _0x18a4da from'./commentsonly';import _0x28dc4d from'./annotations/widesidebar';import _0x431d63 from'./annotations/narrowsidebar';import _0x293b48 from'./annotations/inlineannotations';import _0x514d4c from'./comments/commentsarchiveui';import _0x5d9ff0 from'./comments/commentsarchive';export default class f extends _0x7b41cb{static get[_0x13d8('0x0')](){return[_0x2323f1,_0xeee709,_0x431e73,_0x5d9ff0,_0x514d4c,_0x18a4da,_0x28dc4d,_0x431d63,_0x293b48];}static get[_0x13d8('0x1')](){return _0x13d8('0x2');}}
23
+ var _0x425e=['pluginName','requires'];(function(_0x401cbe,_0x425ea8){var _0x248d47=function(_0x294807){while(--_0x294807){_0x401cbe['push'](_0x401cbe['shift']());}};_0x248d47(++_0x425ea8);}(_0x425e,0x171));var _0x248d=function(_0x401cbe,_0x425ea8){_0x401cbe=_0x401cbe-0x0;var _0x248d47=_0x425e[_0x401cbe];return _0x248d47;};import{Plugin as _0x5ae094}from'ckeditor5/src/core';import _0x868d1b from'./comments/commentsrepository';import _0x14f7d9 from'./comments/commentsediting';import _0x292605 from'./comments/commentsui';import _0x139c86 from'./commentsonly';import _0x337370 from'./annotations/widesidebar';import _0x20c84b from'./annotations/narrowsidebar';import _0x380af2 from'./annotations/inlineannotations';import _0x1ba9b7 from'./comments/commentsarchiveui';import _0xa8bbee from'./comments/commentsarchive';export default class f extends _0x5ae094{static get[_0x248d('0x0')](){return[_0x868d1b,_0x14f7d9,_0x292605,_0xa8bbee,_0x1ba9b7,_0x139c86,_0x337370,_0x20c84b,_0x380af2];}static get[_0x248d('0x1')](){return'Comments';}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2d9f=['listenTo','config','editing','clearForceDisabled','clipboardInput','view','cut','affectsData','_disableCommentsOnlyMode','has','addCommentThread','plugins','commands','change:isEnabled','afterInit','forceDisabled','isEnabled','highest','_enableCommentsOnlyMode','DragDrop','get','document','stopListening','stop','requires','commentsOnlyMode','set','editor'];(function(_0x3dd0cc,_0x2d9feb){const _0x4b8137=function(_0x35a7d7){while(--_0x35a7d7){_0x3dd0cc['push'](_0x3dd0cc['shift']());}};_0x4b8137(++_0x2d9feb);}(_0x2d9f,0x167));const _0x4b81=function(_0x3dd0cc,_0x2d9feb){_0x3dd0cc=_0x3dd0cc-0x0;let _0x4b8137=_0x2d9f[_0x3dd0cc];return _0x4b8137;};import{Plugin as _0x4043d2}from'ckeditor5/src/core';import _0x256f33 from'./comments/commentsediting';export default class n extends _0x4043d2{static get['pluginName'](){return'CommentsOnly';}static get[_0x4b81('0x1')](){return[_0x256f33];}constructor(_0x231764){super(_0x231764),this[_0x4b81('0x3')](_0x4b81('0x15'),!0x1),this['on'](_0x4b81('0x12'),(_0x1dc391,_0x512a34,_0x23fa08)=>{_0x23fa08?this['_enableCommentsOnlyMode']():this[_0x4b81('0xd')]();});}[_0x4b81('0x13')](){!this[_0x4b81('0x15')]&&this[_0x4b81('0x4')][_0x4b81('0x6')][_0x4b81('0x19')]('commentsOnly')&&(this[_0x4b81('0x15')]=!0x0);}[_0x4b81('0x17')](){for(const [_0x3589d0,_0x3a3fda]of this[_0x4b81('0x4')][_0x4b81('0x11')])_0x3a3fda['affectsData']&&_0x4b81('0xf')!==_0x3589d0&&_0x3a3fda['forceDisabled'](_0x4b81('0x2'));this[_0x4b81('0x4')][_0x4b81('0x10')][_0x4b81('0xe')](_0x4b81('0x18'))&&this[_0x4b81('0x4')][_0x4b81('0x10')][_0x4b81('0x19')]('DragDrop')[_0x4b81('0x14')](_0x4b81('0x2'));const _0x4f37ef=this[_0x4b81('0x4')][_0x4b81('0x7')][_0x4b81('0xa')][_0x4b81('0x1a')];this[_0x4b81('0x5')](_0x4f37ef,_0x4b81('0xb'),_0x20a47e=>_0x20a47e[_0x4b81('0x0')](),{'priority':_0x4b81('0x16')}),this['listenTo'](_0x4f37ef,_0x4b81('0x9'),_0x5204a7=>_0x5204a7[_0x4b81('0x0')](),{'priority':_0x4b81('0x16')}),this[_0x4b81('0x5')](_0x4f37ef,'delete',_0x2f3896=>_0x2f3896['stop'](),{'priority':_0x4b81('0x16')});}['_disableCommentsOnlyMode'](){for(const [_0x5a3d22,_0x2321a0]of this[_0x4b81('0x4')][_0x4b81('0x11')])_0x2321a0[_0x4b81('0xc')]&&_0x4b81('0xf')!==_0x5a3d22&&_0x2321a0[_0x4b81('0x8')](_0x4b81('0x2'));this[_0x4b81('0x1b')](this['editor'][_0x4b81('0x7')][_0x4b81('0xa')][_0x4b81('0x1a')]);}}
23
+ const _0x5eae=['document','addCommentThread','plugins','requires','afterInit','clearForceDisabled','affectsData','CommentsOnly','clipboardInput','forceDisabled','highest','stopListening','DragDrop','commentsOnlyMode','_disableCommentsOnlyMode','editor','get','_enableCommentsOnlyMode','commentsOnly','view','listenTo','cut','isEnabled','stop','set','editing','delete'];(function(_0x4a4568,_0x5eaea7){const _0x44f260=function(_0x1a2d23){while(--_0x1a2d23){_0x4a4568['push'](_0x4a4568['shift']());}};_0x44f260(++_0x5eaea7);}(_0x5eae,0x19c));const _0x44f2=function(_0x4a4568,_0x5eaea7){_0x4a4568=_0x4a4568-0x0;let _0x44f260=_0x5eae[_0x4a4568];return _0x44f260;};import{Plugin as _0x557494}from'ckeditor5/src/core';import _0x5c170c from'./comments/commentsediting';export default class n extends _0x557494{static get['pluginName'](){return _0x44f2('0x0');}static get[_0x44f2('0x17')](){return[_0x5c170c];}constructor(_0x3ec8c0){super(_0x3ec8c0),this[_0x44f2('0x11')](_0x44f2('0xf'),!0x1),this['on']('change:isEnabled',(_0x185cc7,_0x4f3a46,_0x163eaf)=>{_0x163eaf?this[_0x44f2('0xa')]():this['_disableCommentsOnlyMode']();});}[_0x44f2('0x18')](){!this['isEnabled']&&this[_0x44f2('0x8')]['config'][_0x44f2('0x9')](_0x44f2('0xb'))&&(this[_0x44f2('0xf')]=!0x0);}[_0x44f2('0xa')](){for(const [_0x15b72b,_0x19527e]of this[_0x44f2('0x8')]['commands'])_0x19527e[_0x44f2('0x1a')]&&_0x44f2('0x15')!==_0x15b72b&&_0x19527e[_0x44f2('0x2')]('commentsOnlyMode');this[_0x44f2('0x8')]['plugins']['has'](_0x44f2('0x5'))&&this[_0x44f2('0x8')][_0x44f2('0x16')]['get'](_0x44f2('0x5'))[_0x44f2('0x2')](_0x44f2('0x6'));const _0x474c16=this[_0x44f2('0x8')][_0x44f2('0x12')][_0x44f2('0xc')][_0x44f2('0x14')];this[_0x44f2('0xd')](_0x474c16,_0x44f2('0xe'),_0x3cc85c=>_0x3cc85c[_0x44f2('0x10')](),{'priority':_0x44f2('0x3')}),this['listenTo'](_0x474c16,_0x44f2('0x1'),_0xfacb9a=>_0xfacb9a[_0x44f2('0x10')](),{'priority':_0x44f2('0x3')}),this[_0x44f2('0xd')](_0x474c16,_0x44f2('0x13'),_0x570200=>_0x570200[_0x44f2('0x10')](),{'priority':_0x44f2('0x3')});}[_0x44f2('0x7')](){for(const [_0x22fd31,_0x363153]of this['editor']['commands'])_0x363153['affectsData']&&_0x44f2('0x15')!==_0x22fd31&&_0x363153[_0x44f2('0x19')](_0x44f2('0x6'));this[_0x44f2('0x4')](this['editor'][_0x44f2('0x12')][_0x44f2('0xc')][_0x44f2('0x14')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0xd857a0,_0x2a6ed8,_0x4e6df4){const t=_0xd857a0['t'];switch(_0x2a6ed8){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'},_0x4e6df4);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'},_0x4e6df4);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'},_0x4e6df4);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'},_0x4e6df4);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(_0x4b81e3,_0x311826,_0x51758f){const t=_0x4b81e3['t'];switch(_0x311826){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'},_0x51758f);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'},_0x51758f);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'},_0x51758f);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'},_0x51758f);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 _0x4ce2=['cancel','attributeName','attributes','characterData','type','observe'];(function(_0x24b001,_0x4ce2a1){const _0x35a239=function(_0x11c44f){while(--_0x11c44f){_0x24b001['push'](_0x24b001['shift']());}};_0x35a239(++_0x4ce2a1);}(_0x4ce2,0xfe));const _0x35a2=function(_0x24b001,_0x4ce2a1){_0x24b001=_0x24b001-0x0;let _0x35a239=_0x4ce2[_0x24b001];return _0x35a239;};import{throttle as _0x12de45}from'lodash-es';export default function Dt(_0x4ebebe){const _0x2cc0f2=_0x12de45(_0x4ebebe,0x1e),_0x16a660=new MutationObserver(_0x193fd7=>{for(const _0x3115a4 of _0x193fd7)(_0x35a2('0x0')==_0x3115a4[_0x35a2('0x2')]&&'class'==_0x3115a4[_0x35a2('0x5')]||'childList'==_0x3115a4['type']||_0x35a2('0x1')==_0x3115a4[_0x35a2('0x2')])&&_0x2cc0f2();});return{'attach'(_0x30a8fe){_0x16a660[_0x35a2('0x3')](_0x30a8fe,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x16a660['disconnect'](),_0x2cc0f2[_0x35a2('0x4')]();}};}
23
+ const _0x2546=['observe','cancel','type','attributeName','characterData','childList'];(function(_0x9f10c,_0x254637){const _0x3cb636=function(_0xf744ad){while(--_0xf744ad){_0x9f10c['push'](_0x9f10c['shift']());}};_0x3cb636(++_0x254637);}(_0x2546,0x66));const _0x3cb6=function(_0x9f10c,_0x254637){_0x9f10c=_0x9f10c-0x0;let _0x3cb636=_0x2546[_0x9f10c];return _0x3cb636;};import{throttle as _0x5731ed}from'lodash-es';export default function Dt(_0x5a4509){const _0x274704=_0x5731ed(_0x5a4509,0x1e),_0x5c3d0b=new MutationObserver(_0x19bb51=>{for(const _0x556cf4 of _0x19bb51)('attributes'==_0x556cf4['type']&&'class'==_0x556cf4[_0x3cb6('0x3')]||_0x3cb6('0x5')==_0x556cf4[_0x3cb6('0x2')]||_0x3cb6('0x4')==_0x556cf4[_0x3cb6('0x2')])&&_0x274704();});return{'attach'(_0x56a23b){_0x5c3d0b[_0x3cb6('0x0')](_0x56a23b,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x5c3d0b['disconnect'](),_0x274704[_0x3cb6('0x1')]();}};}