@ckeditor/ckeditor5-comments 0.0.0-nightly-20230820.0 → 0.0.0-nightly-20230821.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 _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'));}}
23
+ const _0x14e7=['ck-annotation__actions','removeButton','buttonView','children','ck-comment__info','getTemplate','ck-comment','ck-comment--remove','panelPosition','source','_createCommentInputView','isEditMode','ck-comment__main','isReadOnly','mouseenter','isRemovable','isEditable','listenTo','Remove','div','_createDropdown','ck-comment__actions--hidden','addMany','ck-comment--','switchToEditMode','ck-comment__info-name','EXTERNAL_IMPORT_WORD_AVATAR','push','Reply...','isExternal','pencil','edit','locale','ck-comment__wrapper','focus','name','userView','placeholder','ck-annotation__actions--hidden','items','element','label','ck-comment__external','ck-comment--edit','icon','extendTemplate','change:isVisible','ck-annotation','attributes','Delete\x20comment?','ck-comment--remove-confirmation','Show\x20more\x20items','formatDateTime','authoredAt','Edit','author','bindTemplate','_config','remove','getUserViewNotificationText','threeVerticalDots','change:isEnabled','importWord','EXTERNAL_IMPORT_WORD_COMMENT','some','actionIndicator','creator','ck-annotation__main','isSystemComment','bind','_createEditButton','ck-annotation__user','set','isEnabled','isVisible','then','_createRemoveButton','getExternalCommentNote','dropdown','_model','createCollection','execute','length','render','mouseleave','@external','actionBar','ck-comment--info','cancelConfirm','_attachActions','add','editButton'];(function(_0x45ecb0,_0x14e78a){const _0x48e8c6=function(_0x268ccb){while(--_0x268ccb){_0x45ecb0['push'](_0x45ecb0['shift']());}};_0x48e8c6(++_0x14e78a);}(_0x14e7,0x18a));const _0x48e8=function(_0x45ecb0,_0x14e78a){_0x45ecb0=_0x45ecb0-0x0;let _0x48e8c6=_0x14e7[_0x45ecb0];return _0x48e8c6;};import{ButtonView as _0x5d87e6,createDropdown as _0x1af4aa,ListView as _0x40b1f5,ListItemView as _0x24bc42}from'ckeditor5/src/ui';import{icons as _0x15ee2a}from'ckeditor5/src/core';import{UserView as _0xf98439,ConfirmMixin as _0x3cc7d9}from'ckeditor5-collaboration/src/collaboration-core';import _0x48baf4 from'./basecommentview';import _0x4e43cf from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x54cbbf}from'../../../utils/common-translations';export default class ut extends _0x3cc7d9(_0x48baf4){constructor(_0x5c0a20,_0x1fca6c,_0x4a9704){super(_0x5c0a20,_0x1fca6c,_0x4a9704),this['set'](_0x48e8('0x27'),null),this[_0x48e8('0x2e')](_0x48e8('0xb'),_0x54cbbf(_0x5c0a20,_0x48e8('0x2'))),this[_0x48e8('0x2b')](_0x48e8('0x1b'))['to'](_0x1fca6c),this[_0x48e8('0x2b')]('resolvedAt')['to'](_0x1fca6c),this[_0x48e8('0x3c')]=this['createCollection'](),this[_0x48e8('0x2a')]||(this['editButton']=this[_0x48e8('0x2c')](),this[_0x48e8('0x43')]=this['_createRemoveButton'](),this['items']=this[_0x48e8('0x36')](),this[_0x48e8('0xd')][_0x48e8('0x58')]([this['editButton'],this['removeButton']]),this['dropdown']=this[_0x48e8('0x56')](),this[_0x48e8('0x3c')][_0x48e8('0x40')](this[_0x48e8('0x34')])),this[_0x48e8('0xa')]=new _0xf98439(_0x5c0a20,_0x1fca6c[_0x48e8('0x1d')],this['getUserViewNotificationText']()),this[_0x48e8('0xa')]['extendTemplate']({'attributes':{'class':['ck-comment__user',_0x48e8('0x2d')]}}),this[_0x48e8('0x53')](_0x1fca6c,'change:isRemovable',()=>this[_0x48e8('0x3e')]()),this['setTemplate'](this[_0x48e8('0x47')]());}[_0x48e8('0x47')](){const _0x3392e5=this[_0x48e8('0x1e')],_0x39d384=[{'tag':_0x48e8('0x55'),'attributes':{'class':[_0x48e8('0x46'),'ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this[_0x48e8('0xa')]['name']}],'attributes':{'class':[_0x48e8('0x5b'),'ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x3392e5['to'](_0x48e8('0x1b')),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3392e5['to'](_0x48e8('0x1b'),_0x15346d=>this[_0x48e8('0x1f')][_0x48e8('0x1a')](_0x15346d))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions',_0x48e8('0x42'),_0x3392e5['if'](_0x48e8('0x4d'),_0x48e8('0x57')),_0x3392e5['if'](_0x48e8('0x4d'),_0x48e8('0xc'))]},'children':this[_0x48e8('0x3c')]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']},'children':this['visibleView']}];return this[_0x48e8('0x35')][_0x48e8('0x3')]&&_0x39d384[_0x48e8('0x1')]({'tag':'div','attributes':{'class':[_0x48e8('0x10')]},'children':[{'text':this[_0x48e8('0x33')]()}]}),{'tag':'li','attributes':{'class':[_0x48e8('0x7'),_0x3392e5['if']('isConfirm',_0x48e8('0x18'))],'tabindex':-0x1},'children':[{'tag':_0x48e8('0x55'),'attributes':{'class':[_0x48e8('0x48'),_0x48e8('0x15'),_0x3392e5['if'](_0x48e8('0x4d'),'ck-comment--edit'),_0x3392e5['if']('isSystemComment',_0x48e8('0x3d')),_0x3392e5['to'](_0x48e8('0x27'),_0x210326=>_0x210326?_0x48e8('0x59')+_0x210326:'')],'data-author-id':this[_0x48e8('0x35')]['author']['id'],'data-comment-id':this[_0x48e8('0x35')]['id']},'children':[this[_0x48e8('0xa')],{'tag':_0x48e8('0x55'),'attributes':{'class':[_0x48e8('0x4e'),_0x48e8('0x29')]},'children':_0x39d384}]}]};}[_0x48e8('0x2c')](){const _0xfc4683=new _0x5d87e6(this['locale']);return _0xfc4683[_0x48e8('0xf')]=_0x54cbbf(this[_0x48e8('0x6')],_0x48e8('0x1c')),_0xfc4683['icon']=_0x15ee2a[_0x48e8('0x4')],_0xfc4683['withText']=!0x0,_0xfc4683[_0x48e8('0x13')]({'attributes':{'class':_0x48e8('0x11')}}),_0xfc4683[_0x48e8('0x2b')]('isEnabled')['to'](this[_0x48e8('0x35')],_0x48e8('0x4f'),_0x1b546d=>!_0x1b546d),_0xfc4683[_0x48e8('0x2b')]('isVisible')['to'](this[_0x48e8('0x35')],_0x48e8('0x52')),_0xfc4683['on'](_0x48e8('0x37'),()=>this[_0x48e8('0x5a')]()),_0xfc4683;}[_0x48e8('0x32')](){const _0x4fddf8=new _0x5d87e6(this['locale']);return _0x4fddf8[_0x48e8('0xf')]=_0x54cbbf(this[_0x48e8('0x6')],_0x48e8('0x54')),_0x4fddf8[_0x48e8('0x12')]=_0x4e43cf,_0x4fddf8['withText']=!0x0,_0x4fddf8[_0x48e8('0x13')]({'attributes':{'class':_0x48e8('0x49')}}),_0x4fddf8[_0x48e8('0x2b')]('isEnabled')['to'](this[_0x48e8('0x35')],_0x48e8('0x4f'),_0x37a493=>!_0x37a493),_0x4fddf8[_0x48e8('0x2b')]('isVisible')['to'](this[_0x48e8('0x35')],_0x48e8('0x51')),_0x4fddf8['on'](_0x48e8('0x37'),()=>{this['showConfirm'](_0x54cbbf(this[_0x48e8('0x6')],_0x48e8('0x17')),this[_0x48e8('0xe')])[_0x48e8('0x31')](()=>{this['fire']('removeComment',this[_0x48e8('0x35')]['id']);});}),_0x4fddf8;}['_createDropdown'](){const _0x3f9323=_0x1af4aa(this['locale']),_0x1a1ac4=_0x3f9323['panelView']['children'],_0x2dfb3d=new _0x40b1f5(this['locale']),_0x19280e=(_0x4bc5b1,_0x3da0b9=-0x1)=>{const _0x373ba2=new _0x24bc42(this[_0x48e8('0x6')]);_0x373ba2[_0x48e8('0x45')]['add'](_0x4bc5b1);const _0x1caa1a=_0x3da0b9>-0x1?_0x3da0b9:_0x2dfb3d[_0x48e8('0xd')][_0x48e8('0x38')];_0x2dfb3d[_0x48e8('0xd')]['add'](_0x373ba2,_0x1caa1a),_0x3f9323[_0x48e8('0x53')](_0x4bc5b1,_0x48e8('0x23'),()=>{_0x3f9323['isEnabled']=[...this[_0x48e8('0xd')]]['some'](_0x3fb78a=>_0x3fb78a['isEnabled']);}),_0x3f9323[_0x48e8('0x53')](_0x4bc5b1,_0x48e8('0x14'),()=>{_0x3f9323[_0x48e8('0x44')][_0x48e8('0x30')]=[...this[_0x48e8('0xd')]][_0x48e8('0x26')](_0x48a42b=>_0x48a42b[_0x48e8('0x30')]);});};_0x3f9323[_0x48e8('0x4a')]='sw',_0x3f9323[_0x48e8('0x44')][_0x48e8('0x2e')]({'label':_0x54cbbf(this['locale'],_0x48e8('0x19')),'icon':_0x15ee2a[_0x48e8('0x22')]}),_0x3f9323[_0x48e8('0x2f')]=[...this[_0x48e8('0xd')]]['some'](_0x1f2614=>_0x1f2614['isEnabled']),_0x3f9323[_0x48e8('0x44')][_0x48e8('0x30')]=[...this[_0x48e8('0xd')]][_0x48e8('0x26')](_0x2676ac=>_0x2676ac[_0x48e8('0x30')]);for(const _0x223ab7 of this[_0x48e8('0xd')])_0x19280e(_0x223ab7);return _0x1a1ac4[_0x48e8('0x40')](_0x2dfb3d),_0x3f9323[_0x48e8('0x53')](this['items'],_0x48e8('0x40'),(_0x2c193a,_0x1dd9b4,_0x17c117)=>{_0x19280e(_0x1dd9b4,_0x17c117);}),_0x3f9323['listenTo'](this[_0x48e8('0xd')],_0x48e8('0x20'),(_0x57dd1,_0x5e6fcc,_0x564944)=>{_0x2dfb3d[_0x48e8('0xd')][_0x48e8('0x20')](_0x564944);}),_0x3f9323;}[_0x48e8('0x3f')](_0x3a4ed0,_0xa44cee){const _0x2e7d75=_0x3a4ed0&&_0x3a4ed0[_0x48e8('0xe')];_0x2e7d75&&(this[_0x48e8('0x53')](_0x2e7d75,_0x48e8('0x50'),()=>this[_0x48e8('0x27')]=_0xa44cee),this[_0x48e8('0x53')](_0x2e7d75,_0x48e8('0x8'),()=>this[_0x48e8('0x27')]=_0xa44cee),this[_0x48e8('0x53')](_0x2e7d75,_0x48e8('0x3a'),()=>this[_0x48e8('0x27')]=null),this[_0x48e8('0x53')](_0x2e7d75,'blur',()=>this[_0x48e8('0x27')]=null));}[_0x48e8('0x4c')](){const _0x2749ba=super[_0x48e8('0x4c')]();return _0x2749ba[_0x48e8('0x2b')](_0x48e8('0xb'))['to'](this),_0x2749ba;}['getExternalCommentNote'](){return _0x48e8('0x24')===this[_0x48e8('0x35')][_0x48e8('0x16')]['@external'][_0x48e8('0x4b')]?_0x54cbbf(this['locale'],_0x48e8('0x25')):_0x54cbbf(this['locale'],'EXTERNAL_COMMENT');}[_0x48e8('0x21')](){return this[_0x48e8('0x35')]['isExternal']?'importWord'===this[_0x48e8('0x35')][_0x48e8('0x16')][_0x48e8('0x3b')]['source']?_0x54cbbf(this[_0x48e8('0x6')],_0x48e8('0x0'),this[_0x48e8('0x35')][_0x48e8('0x28')][_0x48e8('0x9')]):_0x54cbbf(this['locale'],'EXTERNAL_AVATAR',this[_0x48e8('0x35')][_0x48e8('0x28')][_0x48e8('0x9')]):null;}[_0x48e8('0x39')](){super['render'](),this[_0x48e8('0x3f')](this[_0x48e8('0x41')],_0x48e8('0x5')),this[_0x48e8('0x3f')](this['removeButton'],_0x48e8('0x20'));}}
package/src/comments.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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';}}
23
+ var _0x3fe2=['Comments','requires'];(function(_0x2d1699,_0x3fe2b1){var _0x5e9840=function(_0xf43a3b){while(--_0xf43a3b){_0x2d1699['push'](_0x2d1699['shift']());}};_0x5e9840(++_0x3fe2b1);}(_0x3fe2,0x121));var _0x5e98=function(_0x2d1699,_0x3fe2b1){_0x2d1699=_0x2d1699-0x0;var _0x5e9840=_0x3fe2[_0x2d1699];return _0x5e9840;};import{Plugin as _0x1b7d99}from'ckeditor5/src/core';import _0x19a3dd from'./comments/commentsrepository';import _0x5366ab from'./comments/commentsediting';import _0x460c20 from'./comments/commentsui';import _0x53d160 from'./commentsonly';import _0x29abb6 from'./annotations/widesidebar';import _0x3c7760 from'./annotations/narrowsidebar';import _0x1f9ce from'./annotations/inlineannotations';import _0x4ed878 from'./comments/commentsarchiveui';import _0x55dabe from'./comments/commentsarchive';export default class f extends _0x1b7d99{static get[_0x5e98('0x0')](){return[_0x19a3dd,_0x5366ab,_0x460c20,_0x55dabe,_0x4ed878,_0x53d160,_0x29abb6,_0x3c7760,_0x1f9ce];}static get['pluginName'](){return _0x5e98('0x1');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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')]);}}
23
+ const _0xa809=['config','addCommentThread','editing','delete','change:isEnabled','listenTo','stopListening','requires','CommentsOnly','forceDisabled','highest','editor','pluginName','commentsOnlyMode','commands','afterInit','cut','_disableCommentsOnlyMode','plugins','clearForceDisabled','set','DragDrop','_enableCommentsOnlyMode','clipboardInput','document','stop','affectsData','view','isEnabled'];(function(_0x292fe3,_0xa80979){const _0x422069=function(_0x11b478){while(--_0x11b478){_0x292fe3['push'](_0x292fe3['shift']());}};_0x422069(++_0xa80979);}(_0xa809,0x111));const _0x4220=function(_0x292fe3,_0xa80979){_0x292fe3=_0x292fe3-0x0;let _0x422069=_0xa809[_0x292fe3];return _0x422069;};import{Plugin as _0x4081e2}from'ckeditor5/src/core';import _0x5b26c1 from'./comments/commentsediting';export default class n extends _0x4081e2{static get[_0x4220('0x0')](){return _0x4220('0x19');}static get[_0x4220('0x18')](){return[_0x5b26c1];}constructor(_0x28efe2){super(_0x28efe2),this[_0x4220('0x8')](_0x4220('0x10'),!0x1),this['on'](_0x4220('0x15'),(_0x8f5493,_0x4c725e,_0x4d363d)=>{_0x4d363d?this[_0x4220('0xa')]():this[_0x4220('0x5')]();});}[_0x4220('0x3')](){!this[_0x4220('0x10')]&&this[_0x4220('0x1c')][_0x4220('0x11')]['get']('commentsOnly')&&(this[_0x4220('0x10')]=!0x0);}[_0x4220('0xa')](){for(const [_0x50d666,_0x85286d]of this[_0x4220('0x1c')][_0x4220('0x2')])_0x85286d[_0x4220('0xe')]&&_0x4220('0x12')!==_0x50d666&&_0x85286d[_0x4220('0x1a')](_0x4220('0x1'));this['editor'][_0x4220('0x6')]['has']('DragDrop')&&this['editor'][_0x4220('0x6')]['get'](_0x4220('0x9'))[_0x4220('0x1a')](_0x4220('0x1'));const _0x2977bb=this['editor'][_0x4220('0x13')][_0x4220('0xf')][_0x4220('0xc')];this[_0x4220('0x16')](_0x2977bb,_0x4220('0x4'),_0x4979b7=>_0x4979b7['stop'](),{'priority':_0x4220('0x1b')}),this[_0x4220('0x16')](_0x2977bb,_0x4220('0xb'),_0x5590fa=>_0x5590fa[_0x4220('0xd')](),{'priority':_0x4220('0x1b')}),this['listenTo'](_0x2977bb,_0x4220('0x14'),_0x2566bf=>_0x2566bf[_0x4220('0xd')](),{'priority':_0x4220('0x1b')});}['_disableCommentsOnlyMode'](){for(const [_0x20e2ad,_0x47a76d]of this[_0x4220('0x1c')]['commands'])_0x47a76d['affectsData']&&_0x4220('0x12')!==_0x20e2ad&&_0x47a76d[_0x4220('0x7')](_0x4220('0x1'));this[_0x4220('0x17')](this[_0x4220('0x1c')][_0x4220('0x13')][_0x4220('0xf')][_0x4220('0xc')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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'';}}
23
+ export function getTranslation(_0x362f0e,_0x15073c,_0x44a9f8){const t=_0x362f0e['t'];switch(_0x15073c){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'},_0x44a9f8);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'},_0x44a9f8);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'},_0x44a9f8);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'},_0x44a9f8);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 _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')]();}};}
23
+ const _0x18c3=['childList','disconnect','observe','type','class','characterData','attributes'];(function(_0x282dca,_0x18c3f3){const _0x397463=function(_0x2d49dc){while(--_0x2d49dc){_0x282dca['push'](_0x282dca['shift']());}};_0x397463(++_0x18c3f3);}(_0x18c3,0x10c));const _0x3974=function(_0x282dca,_0x18c3f3){_0x282dca=_0x282dca-0x0;let _0x397463=_0x18c3[_0x282dca];return _0x397463;};import{throttle as _0x262aa4}from'lodash-es';export default function Dt(_0x3f48b0){const _0x18ce01=_0x262aa4(_0x3f48b0,0x1e),_0x1a2d89=new MutationObserver(_0x3808e0=>{for(const _0x40f296 of _0x3808e0)(_0x3974('0x4')==_0x40f296[_0x3974('0x1')]&&_0x3974('0x2')==_0x40f296['attributeName']||_0x3974('0x5')==_0x40f296[_0x3974('0x1')]||_0x3974('0x3')==_0x40f296['type'])&&_0x18ce01();});return{'attach'(_0x372dd9){_0x1a2d89[_0x3974('0x0')](_0x372dd9,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x1a2d89[_0x3974('0x6')](),_0x18ce01['cancel']();}};}