@ckeditor/ckeditor5-comments 38.0.1 → 38.1.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 (71) hide show
  1. package/build/comments.js +1 -1
  2. package/build/translations/en-au.js +1 -1
  3. package/build/translations/it.js +1 -1
  4. package/build/translations/lv.js +1 -1
  5. package/build/translations/pt-br.js +1 -1
  6. package/build/translations/sk.js +1 -1
  7. package/build/translations/sq.js +1 -0
  8. package/lang/translations/en-au.po +1 -1
  9. package/lang/translations/it.po +1 -1
  10. package/lang/translations/lv.po +1 -1
  11. package/lang/translations/pt-br.po +1 -1
  12. package/lang/translations/sk.po +1 -1
  13. package/lang/translations/sq.po +111 -0
  14. package/package.json +10 -8
  15. package/src/annotations/annotation.js +1 -1
  16. package/src/annotations/annotationcollection.js +1 -1
  17. package/src/annotations/annotations.d.ts +1 -1
  18. package/src/annotations/annotations.js +1 -1
  19. package/src/annotations/annotationsuis.d.ts +4 -3
  20. package/src/annotations/annotationsuis.js +1 -1
  21. package/src/annotations/editorannotations.d.ts +4 -3
  22. package/src/annotations/editorannotations.js +1 -1
  23. package/src/annotations/inlineannotations.d.ts +6 -4
  24. package/src/annotations/inlineannotations.js +1 -1
  25. package/src/annotations/narrowsidebar.d.ts +6 -5
  26. package/src/annotations/narrowsidebar.js +1 -1
  27. package/src/annotations/sidebar.d.ts +1 -1
  28. package/src/annotations/sidebar.js +1 -1
  29. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  30. package/src/annotations/view/annotationview.js +1 -1
  31. package/src/annotations/view/sidebaritemview.js +1 -1
  32. package/src/annotations/view/sidebarview.js +1 -1
  33. package/src/annotations/widesidebar.d.ts +6 -5
  34. package/src/annotations/widesidebar.js +1 -1
  35. package/src/comments/addcommentthreadcommand.js +1 -1
  36. package/src/comments/commentsarchive.d.ts +6 -4
  37. package/src/comments/commentsarchive.js +1 -1
  38. package/src/comments/commentsarchiveui.d.ts +6 -4
  39. package/src/comments/commentsarchiveui.js +1 -1
  40. package/src/comments/commentsediting.d.ts +7 -3
  41. package/src/comments/commentsediting.js +1 -1
  42. package/src/comments/commentsrepository.d.ts +9 -5
  43. package/src/comments/commentsrepository.js +1 -1
  44. package/src/comments/commentsui.d.ts +7 -3
  45. package/src/comments/commentsui.js +1 -1
  46. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  47. package/src/comments/integrations/importword.js +1 -1
  48. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  49. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  50. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  51. package/src/comments/ui/commentthreadcontroller.d.ts +1 -1
  52. package/src/comments/ui/commentthreadcontroller.js +1 -1
  53. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  54. package/src/comments/ui/view/basecommentview.js +1 -1
  55. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  56. package/src/comments/ui/view/commentcontentview.js +1 -1
  57. package/src/comments/ui/view/commentinputview.js +1 -1
  58. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  59. package/src/comments/ui/view/commentslistview.js +1 -1
  60. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  61. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  62. package/src/comments/ui/view/commentthreadview.js +1 -1
  63. package/src/comments/ui/view/commentview.js +1 -1
  64. package/src/comments.d.ts +12 -3
  65. package/src/comments.js +1 -1
  66. package/src/commentsonly.d.ts +4 -3
  67. package/src/commentsonly.js +1 -1
  68. package/src/index.d.ts +3 -1
  69. package/src/index.js +1 -1
  70. package/src/utils/common-translations.js +1 -1
  71. package/src/utils/createmutationobserver.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x287f=['blur','EXTERNAL_IMPORT_WORD_AVATAR','mouseenter','element','remove','_config','ck-annotation__main','addMany','span','fire','actionIndicator','ck-comment--remove','isRemovable','isEditMode','set','author','getUserViewNotificationText','mouseleave','getTemplate','creator','isEnabled','importWord','ck-annotation__info','ck-annotation__content-wrapper','EXTERNAL_AVATAR','actionBar','cancelConfirm','ck-comment__info-name','EXTERNAL_IMPORT_WORD_COMMENT','focus','some','Remove','ck-annotation__actions--hidden','render','length','isExternal','pencil','label','ck-comment--edit','name','@external','isSystemComment','Delete\x20comment?','isVisible','time','ck-annotation','change:isEnabled','isEditable','change:isVisible','_createRemoveButton','ck-comment--info','showConfirm','ck-comment__info','ck-comment--remove-confirmation','listenTo','extendTemplate','bind','icon','createCollection','source','ck-comment__user','_createEditButton','isReadOnly','ck-annotation__info-time','attributes','formatDateTime','change:isRemovable','buttonView','then','setTemplate','ck-annotation__user','withText','userView','visibleView','panelView','ck-annotation__actions','_createDropdown','ck-comment__actions--hidden','_model','div','items','panelPosition','dropdown','authoredAt','ck-comment','removeComment','editButton','_createCommentInputView','_attachActions','switchToEditMode','locale','children','removeButton','add','ck-comment__actions','edit','getExternalCommentNote','ck-comment--','placeholder','push'];(function(_0x3dffd7,_0x287fde){const _0x235553=function(_0xd386c8){while(--_0xd386c8){_0x3dffd7['push'](_0x3dffd7['shift']());}};_0x235553(++_0x287fde);}(_0x287f,0x168));const _0x2355=function(_0x3dffd7,_0x287fde){_0x3dffd7=_0x3dffd7-0x0;let _0x235553=_0x287f[_0x3dffd7];return _0x235553;};import{ButtonView as _0x1ff546,createDropdown as _0x30f412,ListView as _0x488ae2,ListItemView as _0x6bc0fc}from'ckeditor5/src/ui';import{icons as _0x4cff73}from'ckeditor5/src/core';import{UserView as _0x5b6071,ConfirmMixin as _0x2cae58}from'ckeditor5-collaboration/src/collaboration-core';import _0x3bcc36 from'./basecommentview';import _0x2d24dd from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x28e672}from'../../../utils/common-translations';export default class ut extends _0x2cae58(_0x3bcc36){constructor(_0x2e6cf2,_0x6a21bc,_0x245a3f){super(_0x2e6cf2,_0x6a21bc,_0x245a3f),this[_0x2355('0x36')](_0x2355('0x32'),null),this['set'](_0x2355('0x26'),_0x28e672(_0x2e6cf2,'Reply...')),this[_0x2355('0x60')](_0x2355('0x17'))['to'](_0x6a21bc),this[_0x2355('0x60')]('resolvedAt')['to'](_0x6a21bc),this[_0x2355('0x41')]=this[_0x2355('0x62')](),this['isSystemComment']||(this[_0x2355('0x1a')]=this['_createEditButton'](),this[_0x2355('0x20')]=this['_createRemoveButton'](),this[_0x2355('0x14')]=this[_0x2355('0x62')](),this['items'][_0x2355('0x2f')]([this['editButton'],this[_0x2355('0x20')]]),this[_0x2355('0x16')]=this[_0x2355('0x10')](),this['actionBar'][_0x2355('0x21')](this[_0x2355('0x16')])),this['userView']=new _0x5b6071(_0x2e6cf2,_0x6a21bc['author'],this[_0x2355('0x38')]()),this[_0x2355('0xc')][_0x2355('0x5f')]({'attributes':{'class':[_0x2355('0x0'),_0x2355('0xa')]}}),this[_0x2355('0x5e')](_0x6a21bc,_0x2355('0x6'),()=>this[_0x2355('0x42')]()),this[_0x2355('0x9')](this[_0x2355('0x3a')]());}['getTemplate'](){const _0x5816b6=this['bindTemplate'],_0x3e47f7=[{'tag':'div','attributes':{'class':[_0x2355('0x5c'),_0x2355('0x3e')]},'children':[{'tag':_0x2355('0x30'),'children':[{'text':this['userView']['name']}],'attributes':{'class':[_0x2355('0x43'),'ck-annotation__info-name']}},{'tag':_0x2355('0x54'),'attributes':{'datetime':_0x5816b6['to']('authoredAt'),'class':['ck-comment__info-time',_0x2355('0x3')]},'children':[{'text':_0x5816b6['to'](_0x2355('0x17'),_0x47740d=>this[_0x2355('0x2d')][_0x2355('0x5')](_0x47740d))}]}]},{'tag':'div','attributes':{'class':[_0x2355('0x22'),_0x2355('0xf'),_0x5816b6['if']('isEditMode',_0x2355('0x11')),_0x5816b6['if'](_0x2355('0x35'),_0x2355('0x48'))]},'children':this[_0x2355('0x41')]},{'tag':_0x2355('0x13'),'attributes':{'class':[_0x2355('0x3f')]},'children':this[_0x2355('0xd')]}];return this[_0x2355('0x12')][_0x2355('0x4b')]&&_0x3e47f7[_0x2355('0x27')]({'tag':_0x2355('0x13'),'attributes':{'class':['ck-comment__external']},'children':[{'text':this[_0x2355('0x24')]()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x5816b6['if']('isConfirm',_0x2355('0x5d'))],'tabindex':-0x1},'children':[{'tag':_0x2355('0x13'),'attributes':{'class':[_0x2355('0x18'),_0x2355('0x55'),_0x5816b6['if']('isEditMode',_0x2355('0x4e')),_0x5816b6['if'](_0x2355('0x51'),_0x2355('0x5a')),_0x5816b6['to']('actionIndicator',_0x264c65=>_0x264c65?_0x2355('0x25')+_0x264c65:'')],'data-author-id':this[_0x2355('0x12')][_0x2355('0x37')]['id'],'data-comment-id':this[_0x2355('0x12')]['id']},'children':[this[_0x2355('0xc')],{'tag':_0x2355('0x13'),'attributes':{'class':['ck-comment__main',_0x2355('0x2e')]},'children':_0x3e47f7}]}]};}[_0x2355('0x1')](){const _0x56672b=new _0x1ff546(this[_0x2355('0x1e')]);return _0x56672b[_0x2355('0x4d')]=_0x28e672(this[_0x2355('0x1e')],'Edit'),_0x56672b[_0x2355('0x61')]=_0x4cff73[_0x2355('0x4c')],_0x56672b[_0x2355('0xb')]=!0x0,_0x56672b[_0x2355('0x5f')]({'attributes':{'class':_0x2355('0x4e')}}),_0x56672b[_0x2355('0x60')](_0x2355('0x3c'))['to'](this['_model'],_0x2355('0x2'),_0x8b18dd=>!_0x8b18dd),_0x56672b[_0x2355('0x60')](_0x2355('0x53'))['to'](this['_model'],_0x2355('0x57')),_0x56672b['on']('execute',()=>this[_0x2355('0x1d')]()),_0x56672b;}[_0x2355('0x59')](){const _0x4f083e=new _0x1ff546(this[_0x2355('0x1e')]);return _0x4f083e[_0x2355('0x4d')]=_0x28e672(this[_0x2355('0x1e')],_0x2355('0x47')),_0x4f083e[_0x2355('0x61')]=_0x2d24dd,_0x4f083e[_0x2355('0xb')]=!0x0,_0x4f083e['extendTemplate']({'attributes':{'class':_0x2355('0x33')}}),_0x4f083e['bind']('isEnabled')['to'](this[_0x2355('0x12')],_0x2355('0x2'),_0x6f2145=>!_0x6f2145),_0x4f083e['bind']('isVisible')['to'](this[_0x2355('0x12')],_0x2355('0x34')),_0x4f083e['on']('execute',()=>{this[_0x2355('0x5b')](_0x28e672(this[_0x2355('0x1e')],_0x2355('0x52')),this[_0x2355('0x2b')])[_0x2355('0x8')](()=>{this[_0x2355('0x31')](_0x2355('0x19'),this['_model']['id']);});}),_0x4f083e;}[_0x2355('0x10')](){const _0x254fda=_0x30f412(this[_0x2355('0x1e')]),_0x5e17d4=_0x254fda[_0x2355('0xe')][_0x2355('0x1f')],_0x2c2d54=new _0x488ae2(this[_0x2355('0x1e')]),_0x27570b=(_0x2c2605,_0x3dae66=-0x1)=>{const _0x176e01=new _0x6bc0fc(this['locale']);_0x176e01[_0x2355('0x1f')]['add'](_0x2c2605);const _0x6a33e=_0x3dae66>-0x1?_0x3dae66:_0x2c2d54[_0x2355('0x14')][_0x2355('0x4a')];_0x2c2d54[_0x2355('0x14')]['add'](_0x176e01,_0x6a33e),_0x254fda['listenTo'](_0x2c2605,_0x2355('0x56'),()=>{_0x254fda[_0x2355('0x3c')]=[...this[_0x2355('0x14')]][_0x2355('0x46')](_0x5b568f=>_0x5b568f[_0x2355('0x3c')]);}),_0x254fda['listenTo'](_0x2c2605,_0x2355('0x58'),()=>{_0x254fda[_0x2355('0x7')]['isVisible']=[...this['items']]['some'](_0x45accb=>_0x45accb[_0x2355('0x53')]);});};_0x254fda[_0x2355('0x15')]='sw',_0x254fda[_0x2355('0x7')][_0x2355('0x36')]({'label':_0x28e672(this[_0x2355('0x1e')],'Show\x20more\x20items'),'icon':_0x4cff73['threeVerticalDots']}),_0x254fda[_0x2355('0x3c')]=[...this[_0x2355('0x14')]][_0x2355('0x46')](_0x2e7af8=>_0x2e7af8[_0x2355('0x3c')]),_0x254fda[_0x2355('0x7')]['isVisible']=[...this['items']][_0x2355('0x46')](_0x1c81fe=>_0x1c81fe[_0x2355('0x53')]);for(const _0x324b84 of this['items'])_0x27570b(_0x324b84);return _0x5e17d4[_0x2355('0x21')](_0x2c2d54),_0x254fda['listenTo'](this[_0x2355('0x14')],'add',(_0x95002,_0x1e7f5b,_0xaf9d93)=>{_0x27570b(_0x1e7f5b,_0xaf9d93);}),_0x254fda['listenTo'](this[_0x2355('0x14')],_0x2355('0x2c'),(_0x4a3d80,_0x3456b4,_0x4bfe74)=>{_0x2c2d54[_0x2355('0x14')][_0x2355('0x2c')](_0x4bfe74);}),_0x254fda;}[_0x2355('0x1c')](_0x2b0909,_0x87bb3e){const _0x3d0303=_0x2b0909&&_0x2b0909[_0x2355('0x2b')];_0x3d0303&&(this[_0x2355('0x5e')](_0x3d0303,_0x2355('0x2a'),()=>this['actionIndicator']=_0x87bb3e),this[_0x2355('0x5e')](_0x3d0303,_0x2355('0x45'),()=>this[_0x2355('0x32')]=_0x87bb3e),this[_0x2355('0x5e')](_0x3d0303,_0x2355('0x39'),()=>this[_0x2355('0x32')]=null),this[_0x2355('0x5e')](_0x3d0303,_0x2355('0x28'),()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x59f5d5=super[_0x2355('0x1b')]();return _0x59f5d5['bind'](_0x2355('0x26'))['to'](this),_0x59f5d5;}[_0x2355('0x24')](){return _0x2355('0x3d')===this[_0x2355('0x12')][_0x2355('0x4')]['@external'][_0x2355('0x63')]?_0x28e672(this[_0x2355('0x1e')],_0x2355('0x44')):_0x28e672(this[_0x2355('0x1e')],'EXTERNAL_COMMENT');}[_0x2355('0x38')](){return this[_0x2355('0x12')]['isExternal']?_0x2355('0x3d')===this['_model'][_0x2355('0x4')][_0x2355('0x50')][_0x2355('0x63')]?_0x28e672(this[_0x2355('0x1e')],_0x2355('0x29'),this[_0x2355('0x12')][_0x2355('0x3b')]['name']):_0x28e672(this['locale'],_0x2355('0x40'),this[_0x2355('0x12')][_0x2355('0x3b')][_0x2355('0x4f')]):null;}[_0x2355('0x49')](){super['render'](),this[_0x2355('0x1c')](this[_0x2355('0x1a')],_0x2355('0x23')),this['_attachActions'](this[_0x2355('0x20')],'remove');}}
23
+ const _0x44ad=['authoredAt','ck-comment__wrapper','locale','source','isEditable','ck-comment--','set','visibleView','placeholder','isEnabled','span','bindTemplate','editButton','ck-annotation__info','isEditMode','author','bind','isExternal','then','_createEditButton','EXTERNAL_COMMENT','creator','div','change:isRemovable','blur','isVisible','ck-comment--edit','ck-comment__info','cancelConfirm','addMany','ck-comment--info','_config','_createCommentInputView','execute','getUserViewNotificationText','name','ck-annotation__info-name','length','ck-comment','withText','_createRemoveButton','dropdown','ck-annotation__main','some','ck-comment__user','ck-annotation','children','threeVerticalDots','ck-comment__actions','change:isVisible','EXTERNAL_AVATAR','isConfirm','isSystemComment','items','listenTo','extendTemplate','removeButton','getTemplate','push','add','ck-comment__main','EXTERNAL_IMPORT_WORD_AVATAR','actionBar','removeComment','@external','_createDropdown','pencil','_model','focus','_attachActions','panelPosition','time','isRemovable','createCollection','change:isEnabled','actionIndicator','ck-annotation__content-wrapper','panelView','userView','attributes','switchToEditMode','ck-annotation__actions--hidden','mouseleave','formatDateTime','ck-comment__info-time','Delete\x20comment?','Edit','showConfirm','setTemplate','icon','ck-comment__external','ck-annotation__info-time','buttonView','ck-comment__info-name','importWord','remove','getExternalCommentNote'];(function(_0x350dd9,_0x44ad5e){const _0x2f163c=function(_0xa8a009){while(--_0xa8a009){_0x350dd9['push'](_0x350dd9['shift']());}};_0x2f163c(++_0x44ad5e);}(_0x44ad,0x143));const _0x2f16=function(_0x350dd9,_0x44ad5e){_0x350dd9=_0x350dd9-0x0;let _0x2f163c=_0x44ad[_0x350dd9];return _0x2f163c;};import{ButtonView as _0x56babd,createDropdown as _0x1e27a5,ListView as _0x1faf33,ListItemView as _0x38736e}from'ckeditor5/src/ui';import{icons as _0x2e7e6c}from'ckeditor5/src/core';import{UserView as _0x4565e3,ConfirmMixin as _0xa0cd65}from'ckeditor5-collaboration/src/collaboration-core';import _0x4d86a9 from'./basecommentview';import _0x359fd6 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x1579f7}from'../../../utils/common-translations';export default class ut extends _0xa0cd65(_0x4d86a9){constructor(_0x5e9b28,_0x5efbac,_0xe91beb){super(_0x5e9b28,_0x5efbac,_0xe91beb),this[_0x2f16('0x47')](_0x2f16('0x2b'),null),this[_0x2f16('0x47')](_0x2f16('0x49'),_0x1579f7(_0x5e9b28,'Reply...')),this[_0x2f16('0x51')](_0x2f16('0x41'))['to'](_0x5efbac),this[_0x2f16('0x51')]('resolvedAt')['to'](_0x5efbac),this[_0x2f16('0x1e')]=this[_0x2f16('0x29')](),this[_0x2f16('0x14')]||(this[_0x2f16('0x4d')]=this[_0x2f16('0x54')](),this[_0x2f16('0x18')]=this['_createRemoveButton'](),this[_0x2f16('0x15')]=this[_0x2f16('0x29')](),this[_0x2f16('0x15')][_0x2f16('0x5e')]([this[_0x2f16('0x4d')],this[_0x2f16('0x18')]]),this[_0x2f16('0x9')]=this['_createDropdown'](),this[_0x2f16('0x1e')]['add'](this[_0x2f16('0x9')])),this[_0x2f16('0x2e')]=new _0x4565e3(_0x5e9b28,_0x5efbac[_0x2f16('0x50')],this[_0x2f16('0x2')]()),this[_0x2f16('0x2e')][_0x2f16('0x17')]({'attributes':{'class':[_0x2f16('0xc'),'ck-annotation__user']}}),this['listenTo'](_0x5efbac,_0x2f16('0x58'),()=>this[_0x2f16('0x5d')]()),this[_0x2f16('0x38')](this[_0x2f16('0x19')]());}[_0x2f16('0x19')](){const _0x3f5eec=this[_0x2f16('0x4c')],_0x22fc54=[{'tag':'div','attributes':{'class':[_0x2f16('0x5c'),_0x2f16('0x4e')]},'children':[{'tag':_0x2f16('0x4b'),'children':[{'text':this[_0x2f16('0x2e')][_0x2f16('0x3')]}],'attributes':{'class':[_0x2f16('0x3d'),_0x2f16('0x4')]}},{'tag':_0x2f16('0x27'),'attributes':{'datetime':_0x3f5eec['to'](_0x2f16('0x41')),'class':[_0x2f16('0x34'),_0x2f16('0x3b')]},'children':[{'text':_0x3f5eec['to'](_0x2f16('0x41'),_0x1f2c07=>this[_0x2f16('0x60')][_0x2f16('0x33')](_0x1f2c07))}]}]},{'tag':_0x2f16('0x57'),'attributes':{'class':[_0x2f16('0x10'),'ck-annotation__actions',_0x3f5eec['if'](_0x2f16('0x4f'),'ck-comment__actions--hidden'),_0x3f5eec['if'](_0x2f16('0x4f'),_0x2f16('0x31'))]},'children':this[_0x2f16('0x1e')]},{'tag':_0x2f16('0x57'),'attributes':{'class':[_0x2f16('0x2c')]},'children':this[_0x2f16('0x48')]}];return this[_0x2f16('0x23')][_0x2f16('0x52')]&&_0x22fc54[_0x2f16('0x1a')]({'tag':_0x2f16('0x57'),'attributes':{'class':[_0x2f16('0x3a')]},'children':[{'text':this[_0x2f16('0x40')]()}]}),{'tag':'li','attributes':{'class':[_0x2f16('0x42'),_0x3f5eec['if'](_0x2f16('0x13'),'ck-comment--remove-confirmation')],'tabindex':-0x1},'children':[{'tag':_0x2f16('0x57'),'attributes':{'class':[_0x2f16('0x6'),_0x2f16('0xd'),_0x3f5eec['if']('isEditMode',_0x2f16('0x5b')),_0x3f5eec['if'](_0x2f16('0x14'),_0x2f16('0x5f')),_0x3f5eec['to'](_0x2f16('0x2b'),_0x744036=>_0x744036?_0x2f16('0x46')+_0x744036:'')],'data-author-id':this['_model'][_0x2f16('0x50')]['id'],'data-comment-id':this['_model']['id']},'children':[this[_0x2f16('0x2e')],{'tag':_0x2f16('0x57'),'attributes':{'class':[_0x2f16('0x1c'),_0x2f16('0xa')]},'children':_0x22fc54}]}]};}['_createEditButton'](){const _0x35fe75=new _0x56babd(this[_0x2f16('0x43')]);return _0x35fe75['label']=_0x1579f7(this[_0x2f16('0x43')],_0x2f16('0x36')),_0x35fe75['icon']=_0x2e7e6c[_0x2f16('0x22')],_0x35fe75[_0x2f16('0x7')]=!0x0,_0x35fe75[_0x2f16('0x17')]({'attributes':{'class':_0x2f16('0x5b')}}),_0x35fe75[_0x2f16('0x51')](_0x2f16('0x4a'))['to'](this[_0x2f16('0x23')],'isReadOnly',_0x3559c1=>!_0x3559c1),_0x35fe75['bind'](_0x2f16('0x5a'))['to'](this[_0x2f16('0x23')],_0x2f16('0x45')),_0x35fe75['on'](_0x2f16('0x1'),()=>this[_0x2f16('0x30')]()),_0x35fe75;}[_0x2f16('0x8')](){const _0x3d96fd=new _0x56babd(this[_0x2f16('0x43')]);return _0x3d96fd['label']=_0x1579f7(this[_0x2f16('0x43')],'Remove'),_0x3d96fd[_0x2f16('0x39')]=_0x359fd6,_0x3d96fd['withText']=!0x0,_0x3d96fd[_0x2f16('0x17')]({'attributes':{'class':'ck-comment--remove'}}),_0x3d96fd['bind'](_0x2f16('0x4a'))['to'](this[_0x2f16('0x23')],'isReadOnly',_0x5ed64e=>!_0x5ed64e),_0x3d96fd['bind'](_0x2f16('0x5a'))['to'](this[_0x2f16('0x23')],_0x2f16('0x28')),_0x3d96fd['on'](_0x2f16('0x1'),()=>{this[_0x2f16('0x37')](_0x1579f7(this[_0x2f16('0x43')],_0x2f16('0x35')),this['element'])[_0x2f16('0x53')](()=>{this['fire'](_0x2f16('0x1f'),this[_0x2f16('0x23')]['id']);});}),_0x3d96fd;}[_0x2f16('0x21')](){const _0x509d44=_0x1e27a5(this['locale']),_0x46692f=_0x509d44[_0x2f16('0x2d')][_0x2f16('0xe')],_0x1b258e=new _0x1faf33(this[_0x2f16('0x43')]),_0x50acfd=(_0x461eca,_0x2dab4f=-0x1)=>{const _0x369d90=new _0x38736e(this[_0x2f16('0x43')]);_0x369d90[_0x2f16('0xe')][_0x2f16('0x1b')](_0x461eca);const _0x2c5f94=_0x2dab4f>-0x1?_0x2dab4f:_0x1b258e[_0x2f16('0x15')][_0x2f16('0x5')];_0x1b258e[_0x2f16('0x15')]['add'](_0x369d90,_0x2c5f94),_0x509d44[_0x2f16('0x16')](_0x461eca,_0x2f16('0x2a'),()=>{_0x509d44[_0x2f16('0x4a')]=[...this[_0x2f16('0x15')]][_0x2f16('0xb')](_0x5eb5be=>_0x5eb5be[_0x2f16('0x4a')]);}),_0x509d44['listenTo'](_0x461eca,_0x2f16('0x11'),()=>{_0x509d44[_0x2f16('0x3c')][_0x2f16('0x5a')]=[...this['items']][_0x2f16('0xb')](_0x5e711c=>_0x5e711c['isVisible']);});};_0x509d44[_0x2f16('0x26')]='sw',_0x509d44['buttonView'][_0x2f16('0x47')]({'label':_0x1579f7(this[_0x2f16('0x43')],'Show\x20more\x20items'),'icon':_0x2e7e6c[_0x2f16('0xf')]}),_0x509d44[_0x2f16('0x4a')]=[...this[_0x2f16('0x15')]][_0x2f16('0xb')](_0xa7682d=>_0xa7682d[_0x2f16('0x4a')]),_0x509d44[_0x2f16('0x3c')][_0x2f16('0x5a')]=[...this[_0x2f16('0x15')]][_0x2f16('0xb')](_0xd4b20b=>_0xd4b20b[_0x2f16('0x5a')]);for(const _0x57d5c7 of this[_0x2f16('0x15')])_0x50acfd(_0x57d5c7);return _0x46692f['add'](_0x1b258e),_0x509d44[_0x2f16('0x16')](this[_0x2f16('0x15')],_0x2f16('0x1b'),(_0x930333,_0xf5baa8,_0xb236d)=>{_0x50acfd(_0xf5baa8,_0xb236d);}),_0x509d44[_0x2f16('0x16')](this[_0x2f16('0x15')],_0x2f16('0x3f'),(_0x12ed27,_0x3ce1c0,_0x4e9f5)=>{_0x1b258e['items'][_0x2f16('0x3f')](_0x4e9f5);}),_0x509d44;}[_0x2f16('0x25')](_0x3bb538,_0xf54543){const _0x9ce480=_0x3bb538&&_0x3bb538['element'];_0x9ce480&&(this['listenTo'](_0x9ce480,'mouseenter',()=>this[_0x2f16('0x2b')]=_0xf54543),this[_0x2f16('0x16')](_0x9ce480,_0x2f16('0x24'),()=>this[_0x2f16('0x2b')]=_0xf54543),this[_0x2f16('0x16')](_0x9ce480,_0x2f16('0x32'),()=>this[_0x2f16('0x2b')]=null),this['listenTo'](_0x9ce480,_0x2f16('0x59'),()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x526664=super[_0x2f16('0x0')]();return _0x526664[_0x2f16('0x51')](_0x2f16('0x49'))['to'](this),_0x526664;}[_0x2f16('0x40')](){return _0x2f16('0x3e')===this[_0x2f16('0x23')][_0x2f16('0x2f')][_0x2f16('0x20')][_0x2f16('0x44')]?_0x1579f7(this[_0x2f16('0x43')],'EXTERNAL_IMPORT_WORD_COMMENT'):_0x1579f7(this[_0x2f16('0x43')],_0x2f16('0x55'));}[_0x2f16('0x2')](){return this[_0x2f16('0x23')][_0x2f16('0x52')]?'importWord'===this[_0x2f16('0x23')][_0x2f16('0x2f')]['@external'][_0x2f16('0x44')]?_0x1579f7(this['locale'],_0x2f16('0x1d'),this[_0x2f16('0x23')][_0x2f16('0x56')][_0x2f16('0x3')]):_0x1579f7(this['locale'],_0x2f16('0x12'),this[_0x2f16('0x23')]['creator'][_0x2f16('0x3')]):null;}['render'](){super['render'](),this[_0x2f16('0x25')](this[_0x2f16('0x4d')],'edit'),this[_0x2f16('0x25')](this[_0x2f16('0x18')],_0x2f16('0x3f'));}}
package/src/comments.d.ts CHANGED
@@ -2,7 +2,16 @@
2
2
  * @module comments/comments
3
3
  * @publicApi
4
4
  */
5
- import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
5
+ import { Plugin } from 'ckeditor5/src/core';
6
+ import CommentsRepository from './comments/commentsrepository';
7
+ import CommentsEditing from './comments/commentsediting';
8
+ import CommentsUI from './comments/commentsui';
9
+ import CommentsOnly from './commentsonly';
10
+ import WideSidebar from './annotations/widesidebar';
11
+ import NarrowSidebar from './annotations/narrowsidebar';
12
+ import InlineAnnotations from './annotations/inlineannotations';
13
+ import CommentsArchiveUI from './comments/commentsarchiveui';
14
+ import CommentsArchive from './comments/commentsarchive';
6
15
  /**
7
16
  * The comments plugin, which brings both the UI part and the editing part of this feature.
8
17
  *
@@ -14,9 +23,9 @@ export default class Comments extends Plugin {
14
23
  /**
15
24
  * @inheritDoc
16
25
  */
17
- static get requires(): PluginDependencies;
26
+ static get requires(): readonly [typeof CommentsRepository, typeof CommentsEditing, typeof CommentsUI, typeof CommentsArchive, typeof CommentsArchiveUI, typeof CommentsOnly, typeof WideSidebar, typeof NarrowSidebar, typeof InlineAnnotations];
18
27
  /**
19
28
  * @inheritDoc
20
29
  */
21
- static get pluginName(): 'Comments';
30
+ static get pluginName(): "Comments";
22
31
  }
package/src/comments.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x55ed=['requires','pluginName','Comments'];(function(_0x3b1871,_0x55ed00){var _0x3bcb1d=function(_0x4ac3f2){while(--_0x4ac3f2){_0x3b1871['push'](_0x3b1871['shift']());}};_0x3bcb1d(++_0x55ed00);}(_0x55ed,0x15c));var _0x3bcb=function(_0x3b1871,_0x55ed00){_0x3b1871=_0x3b1871-0x0;var _0x3bcb1d=_0x55ed[_0x3b1871];return _0x3bcb1d;};import{Plugin as _0x339be8}from'ckeditor5/src/core';import _0x4a2b50 from'./comments/commentsrepository';import _0x389889 from'./comments/commentsediting';import _0x11be11 from'./comments/commentsui';import _0x5b872d from'./commentsonly';import _0x220c4e from'./annotations/widesidebar';import _0xf07e94 from'./annotations/narrowsidebar';import _0x456b0b from'./annotations/inlineannotations';import _0xd92656 from'./comments/commentsarchiveui';import _0x5bd62b from'./comments/commentsarchive';export default class f extends _0x339be8{static get[_0x3bcb('0x0')](){return[_0x4a2b50,_0x389889,_0x11be11,_0x5bd62b,_0xd92656,_0x5b872d,_0x220c4e,_0xf07e94,_0x456b0b];}static get[_0x3bcb('0x1')](){return _0x3bcb('0x2');}}
23
+ var _0x36ba=['pluginName'];(function(_0x2f2706,_0x36baad){var _0x2f6746=function(_0x26b964){while(--_0x26b964){_0x2f2706['push'](_0x2f2706['shift']());}};_0x2f6746(++_0x36baad);}(_0x36ba,0x12a));var _0x2f67=function(_0x2f2706,_0x36baad){_0x2f2706=_0x2f2706-0x0;var _0x2f6746=_0x36ba[_0x2f2706];return _0x2f6746;};import{Plugin as _0x3c26a1}from'ckeditor5/src/core';import _0x50d7cb from'./comments/commentsrepository';import _0x5d8858 from'./comments/commentsediting';import _0x5c6f83 from'./comments/commentsui';import _0x25930c from'./commentsonly';import _0x3196fb from'./annotations/widesidebar';import _0x321225 from'./annotations/narrowsidebar';import _0x55a81f from'./annotations/inlineannotations';import _0x24412b from'./comments/commentsarchiveui';import _0x51171e from'./comments/commentsarchive';export default class f extends _0x3c26a1{static get['requires'](){return[_0x50d7cb,_0x5d8858,_0x5c6f83,_0x51171e,_0x24412b,_0x25930c,_0x3196fb,_0x321225,_0x55a81f];}static get[_0x2f67('0x0')](){return'Comments';}}
@@ -2,7 +2,8 @@
2
2
  * @module comments/commentsonly
3
3
  * @publicApi
4
4
  */
5
- import { Plugin, type PluginDependencies, type Editor } from 'ckeditor5/src/core';
5
+ import { Plugin, type Editor } from 'ckeditor5/src/core';
6
+ import CommentsEditing from './comments/commentsediting';
6
7
  /**
7
8
  * The `CommentsOnly` plugin allows you to put the editor in a mode where a user can only add, edit or delete comments.
8
9
  *
@@ -12,11 +13,11 @@ export default class CommentsOnly extends Plugin {
12
13
  /**
13
14
  * @inheritDoc
14
15
  */
15
- static get pluginName(): 'CommentsOnly';
16
+ static get pluginName(): "CommentsOnly";
16
17
  /**
17
18
  * @inheritDoc
18
19
  */
19
- static get requires(): PluginDependencies;
20
+ static get requires(): readonly [typeof CommentsEditing];
20
21
  /**
21
22
  * @inheritDoc
22
23
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1e2d=['stop','clipboardInput','delete','commentsOnlyMode','get','requires','isEnabled','editor','cut','clearForceDisabled','document','DragDrop','commentsOnly','view','affectsData','highest','listenTo','afterInit','_disableCommentsOnlyMode','commands','addCommentThread','set','pluginName','forceDisabled','plugins','editing','_enableCommentsOnlyMode'];(function(_0x1f33b5,_0x1e2ddd){const _0x5c8ee7=function(_0x1b3abf){while(--_0x1b3abf){_0x1f33b5['push'](_0x1f33b5['shift']());}};_0x5c8ee7(++_0x1e2ddd);}(_0x1e2d,0xe7));const _0x5c8e=function(_0x1f33b5,_0x1e2ddd){_0x1f33b5=_0x1f33b5-0x0;let _0x5c8ee7=_0x1e2d[_0x1f33b5];return _0x5c8ee7;};import{Plugin as _0x56dc34}from'ckeditor5/src/core';import _0x2b607a from'./comments/commentsediting';export default class n extends _0x56dc34{static get[_0x5c8e('0x7')](){return'CommentsOnly';}static get[_0x5c8e('0x11')](){return[_0x2b607a];}constructor(_0xf2c022){super(_0xf2c022),this[_0x5c8e('0x6')](_0x5c8e('0x12'),!0x1),this['on']('change:isEnabled',(_0x1e6451,_0x2892c2,_0x59a76d)=>{_0x59a76d?this['_enableCommentsOnlyMode']():this[_0x5c8e('0x3')]();});}[_0x5c8e('0x2')](){!this[_0x5c8e('0x12')]&&this[_0x5c8e('0x13')]['config']['get'](_0x5c8e('0x18'))&&(this[_0x5c8e('0x12')]=!0x0);}[_0x5c8e('0xb')](){for(const [_0x5b98f7,_0x3e853d]of this[_0x5c8e('0x13')][_0x5c8e('0x4')])_0x3e853d[_0x5c8e('0x1a')]&&_0x5c8e('0x5')!==_0x5b98f7&&_0x3e853d[_0x5c8e('0x8')]('commentsOnlyMode');this[_0x5c8e('0x13')][_0x5c8e('0x9')]['has'](_0x5c8e('0x17'))&&this[_0x5c8e('0x13')][_0x5c8e('0x9')][_0x5c8e('0x10')](_0x5c8e('0x17'))[_0x5c8e('0x8')](_0x5c8e('0xf'));const _0x4aaaba=this[_0x5c8e('0x13')][_0x5c8e('0xa')][_0x5c8e('0x19')]['document'];this['listenTo'](_0x4aaaba,_0x5c8e('0x14'),_0x897b53=>_0x897b53[_0x5c8e('0xc')](),{'priority':_0x5c8e('0x0')}),this[_0x5c8e('0x1')](_0x4aaaba,_0x5c8e('0xd'),_0x88df69=>_0x88df69[_0x5c8e('0xc')](),{'priority':_0x5c8e('0x0')}),this['listenTo'](_0x4aaaba,_0x5c8e('0xe'),_0x3ba3a2=>_0x3ba3a2['stop'](),{'priority':_0x5c8e('0x0')});}[_0x5c8e('0x3')](){for(const [_0x402263,_0x441875]of this[_0x5c8e('0x13')][_0x5c8e('0x4')])_0x441875['affectsData']&&_0x5c8e('0x5')!==_0x402263&&_0x441875[_0x5c8e('0x15')](_0x5c8e('0xf'));this['stopListening'](this[_0x5c8e('0x13')][_0x5c8e('0xa')][_0x5c8e('0x19')][_0x5c8e('0x16')]);}}
23
+ const _0x498e=['CommentsOnly','isEnabled','get','editing','requires','afterInit','addCommentThread','config','document','commands','DragDrop','commentsOnlyMode','affectsData','change:isEnabled','stop','clipboardInput','stopListening','plugins','highest','editor','listenTo','_enableCommentsOnlyMode','view','forceDisabled','_disableCommentsOnlyMode','delete'];(function(_0x95da8d,_0x498e0f){const _0x11f650=function(_0x254459){while(--_0x254459){_0x95da8d['push'](_0x95da8d['shift']());}};_0x11f650(++_0x498e0f);}(_0x498e,0x8b));const _0x11f6=function(_0x95da8d,_0x498e0f){_0x95da8d=_0x95da8d-0x0;let _0x11f650=_0x498e[_0x95da8d];return _0x11f650;};import{Plugin as _0x35cf9d}from'ckeditor5/src/core';import _0x447cee from'./comments/commentsediting';export default class n extends _0x35cf9d{static get['pluginName'](){return _0x11f6('0x11');}static get[_0x11f6('0x15')](){return[_0x447cee];}constructor(_0x473402){super(_0x473402),this['set'](_0x11f6('0x12'),!0x1),this['on'](_0x11f6('0x4'),(_0x69acd9,_0x3ca0b2,_0x3771ba)=>{_0x3771ba?this[_0x11f6('0xc')]():this[_0x11f6('0xf')]();});}[_0x11f6('0x16')](){!this['isEnabled']&&this['editor'][_0x11f6('0x18')][_0x11f6('0x13')]('commentsOnly')&&(this[_0x11f6('0x12')]=!0x0);}[_0x11f6('0xc')](){for(const [_0x5ef8be,_0x45da19]of this['editor'][_0x11f6('0x0')])_0x45da19[_0x11f6('0x3')]&&_0x11f6('0x17')!==_0x5ef8be&&_0x45da19[_0x11f6('0xe')]('commentsOnlyMode');this['editor'][_0x11f6('0x8')]['has'](_0x11f6('0x1'))&&this[_0x11f6('0xa')]['plugins'][_0x11f6('0x13')](_0x11f6('0x1'))[_0x11f6('0xe')](_0x11f6('0x2'));const _0x3ca2ea=this[_0x11f6('0xa')]['editing'][_0x11f6('0xd')][_0x11f6('0x19')];this[_0x11f6('0xb')](_0x3ca2ea,'cut',_0x26554e=>_0x26554e['stop'](),{'priority':'highest'}),this[_0x11f6('0xb')](_0x3ca2ea,_0x11f6('0x6'),_0x5876d2=>_0x5876d2[_0x11f6('0x5')](),{'priority':'highest'}),this[_0x11f6('0xb')](_0x3ca2ea,_0x11f6('0x10'),_0x19f268=>_0x19f268[_0x11f6('0x5')](),{'priority':_0x11f6('0x9')});}[_0x11f6('0xf')](){for(const [_0x396cc2,_0x3d37d2]of this[_0x11f6('0xa')][_0x11f6('0x0')])_0x3d37d2[_0x11f6('0x3')]&&'addCommentThread'!==_0x396cc2&&_0x3d37d2['clearForceDisabled'](_0x11f6('0x2'));this[_0x11f6('0x7')](this[_0x11f6('0xa')][_0x11f6('0x14')][_0x11f6('0xd')]['document']);}}
package/src/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { default as Comments } from './comments';
2
- export { default as CommentsOnly } from './comments';
2
+ export { default as CommentsOnly } from './commentsonly';
3
3
  export { default as CommentsUI } from './comments/commentsui';
4
4
  export { default as CommentsRepository, CommentThread, Comment } from './comments/commentsrepository';
5
5
  export { default as CommentThreadController } from './comments/ui/commentthreadcontroller';
@@ -16,4 +16,6 @@ export { default as CommentsListView } from './comments/ui/view/commentslistview
16
16
  export { default as CommentView } from './comments/ui/view/commentview';
17
17
  export { default as CommentThreadInputView } from './comments/ui/view/commentthreadinputview';
18
18
  export type { CommentsConfig, SidebarConfig } from './config';
19
+ export type { default as CommentsEditing } from './comments/commentsediting';
20
+ export type { CommentDataJSON, CommentThreadContext } from './comments/commentsrepository';
19
21
  import './augmentation';
package/src/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export{default as Comments}from'./comments';export{default as CommentsOnly}from'./comments';export{default as CommentsUI}from'./comments/commentsui';export{default as CommentsRepository,CommentThread,Comment}from'./comments/commentsrepository';export{default as CommentThreadController}from'./comments/ui/commentthreadcontroller';export{default as Annotations}from'./annotations/annotations';export{default as AnnotationsUIs}from'./annotations/annotationsuis';export{default as EditorAnnotations}from'./annotations/editorannotations';export{default as InlineAnnotations}from'./annotations/inlineannotations';export{default as WideSidebar}from'./annotations/widesidebar';export{default as NarrowSidebar}from'./annotations/narrowsidebar';export{default as AnnotationView}from'./annotations/view/annotationview';export{default as BaseCommentView}from'./comments/ui/view/basecommentview';export{default as BaseCommentThreadView}from'./comments/ui/view/basecommentthreadview';export{default as CommentsListView}from'./comments/ui/view/commentslistview';export{default as CommentView}from'./comments/ui/view/commentview';export{default as CommentThreadInputView}from'./comments/ui/view/commentthreadinputview';import'./augmentation';
23
+ export{default as Comments}from'./comments';export{default as CommentsOnly}from'./commentsonly';export{default as CommentsUI}from'./comments/commentsui';export{default as CommentsRepository,CommentThread,Comment}from'./comments/commentsrepository';export{default as CommentThreadController}from'./comments/ui/commentthreadcontroller';export{default as Annotations}from'./annotations/annotations';export{default as AnnotationsUIs}from'./annotations/annotationsuis';export{default as EditorAnnotations}from'./annotations/editorannotations';export{default as InlineAnnotations}from'./annotations/inlineannotations';export{default as WideSidebar}from'./annotations/widesidebar';export{default as NarrowSidebar}from'./annotations/narrowsidebar';export{default as AnnotationView}from'./annotations/view/annotationview';export{default as BaseCommentView}from'./comments/ui/view/basecommentview';export{default as BaseCommentThreadView}from'./comments/ui/view/basecommentthreadview';export{default as CommentsListView}from'./comments/ui/view/commentslistview';export{default as CommentView}from'./comments/ui/view/commentview';export{default as CommentThreadInputView}from'./comments/ui/view/commentthreadinputview';import'./augmentation';
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x583790,_0xf36a53,_0x55c026){const t=_0x583790['t'];switch(_0xf36a53){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'},_0x55c026);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'},_0x55c026);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'},_0x55c026);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'},_0x55c026);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(_0x2e3a4b,_0x297c16,_0x237ee2){const t=_0x2e3a4b['t'];switch(_0x297c16){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'},_0x237ee2);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'},_0x237ee2);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'},_0x237ee2);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'},_0x237ee2);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 _0x6f8b=['attributes','observe','cancel','childList','attributeName','disconnect','type'];(function(_0x2f298f,_0x6f8b2){const _0x409c11=function(_0x3e3cf3){while(--_0x3e3cf3){_0x2f298f['push'](_0x2f298f['shift']());}};_0x409c11(++_0x6f8b2);}(_0x6f8b,0x12a));const _0x409c=function(_0x2f298f,_0x6f8b2){_0x2f298f=_0x2f298f-0x0;let _0x409c11=_0x6f8b[_0x2f298f];return _0x409c11;};import{throttle as _0x4b7dcd}from'lodash-es';export default function Lt(_0x378d21){const _0x3ee472=_0x4b7dcd(_0x378d21,0x1e),_0xa9073a=new MutationObserver(_0x5717a8=>{for(const _0xed3d6d of _0x5717a8)(_0x409c('0x3')==_0xed3d6d[_0x409c('0x2')]&&'class'==_0xed3d6d[_0x409c('0x0')]||_0x409c('0x6')==_0xed3d6d[_0x409c('0x2')])&&_0x3ee472();});return{'attach'(_0xef7001){_0xa9073a[_0x409c('0x4')](_0xef7001,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0xa9073a[_0x409c('0x1')](),_0x3ee472[_0x409c('0x5')]();}};}
23
+ const _0x572a=['disconnect','type','attributes','observe','childList','attributeName'];(function(_0xfced96,_0x572a78){const _0x224b74=function(_0x30d968){while(--_0x30d968){_0xfced96['push'](_0xfced96['shift']());}};_0x224b74(++_0x572a78);}(_0x572a,0xa6));const _0x224b=function(_0xfced96,_0x572a78){_0xfced96=_0xfced96-0x0;let _0x224b74=_0x572a[_0xfced96];return _0x224b74;};import{throttle as _0x343cb9}from'lodash-es';export default function Dt(_0x3f7a1c){const _0x2a38de=_0x343cb9(_0x3f7a1c,0x1e),_0x3d44c2=new MutationObserver(_0x461a94=>{for(const _0x445337 of _0x461a94)(_0x224b('0x4')==_0x445337[_0x224b('0x3')]&&'class'==_0x445337[_0x224b('0x1')]||_0x224b('0x0')==_0x445337[_0x224b('0x3')]||'characterData'==_0x445337[_0x224b('0x3')])&&_0x2a38de();});return{'attach'(_0x31ab14){_0x3d44c2[_0x224b('0x5')](_0x31ab14,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x3d44c2[_0x224b('0x2')](),_0x2a38de['cancel']();}};}