@ckeditor/ckeditor5-comments 35.4.0 → 36.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/build/comments.js +2 -2
  2. package/build/translations/sr-latn.js +1 -1
  3. package/build/translations/sr.js +1 -1
  4. package/build/translations/ug.js +1 -1
  5. package/lang/translations/af.po +1 -1
  6. package/lang/translations/ar.po +1 -1
  7. package/lang/translations/bg.po +1 -1
  8. package/lang/translations/bn.po +1 -1
  9. package/lang/translations/bs.po +1 -1
  10. package/lang/translations/ca.po +1 -1
  11. package/lang/translations/cs.po +1 -1
  12. package/lang/translations/da.po +1 -1
  13. package/lang/translations/de-ch.po +1 -1
  14. package/lang/translations/de.po +1 -1
  15. package/lang/translations/el.po +1 -1
  16. package/lang/translations/en-au.po +1 -1
  17. package/lang/translations/en.po +1 -1
  18. package/lang/translations/es-co.po +1 -1
  19. package/lang/translations/es.po +1 -1
  20. package/lang/translations/et.po +1 -1
  21. package/lang/translations/fa.po +1 -1
  22. package/lang/translations/fi.po +1 -1
  23. package/lang/translations/fr.po +1 -1
  24. package/lang/translations/gl.po +1 -1
  25. package/lang/translations/he.po +1 -1
  26. package/lang/translations/hi.po +1 -1
  27. package/lang/translations/hr.po +1 -1
  28. package/lang/translations/hu.po +1 -1
  29. package/lang/translations/id.po +1 -1
  30. package/lang/translations/it.po +1 -1
  31. package/lang/translations/ja.po +1 -1
  32. package/lang/translations/jv.po +1 -1
  33. package/lang/translations/ko.po +1 -1
  34. package/lang/translations/lt.po +1 -1
  35. package/lang/translations/lv.po +1 -1
  36. package/lang/translations/ms.po +1 -1
  37. package/lang/translations/nl.po +1 -1
  38. package/lang/translations/no.po +1 -1
  39. package/lang/translations/pl.po +1 -1
  40. package/lang/translations/pt-br.po +1 -1
  41. package/lang/translations/pt.po +1 -1
  42. package/lang/translations/ro.po +1 -1
  43. package/lang/translations/ru.po +1 -1
  44. package/lang/translations/sk.po +1 -1
  45. package/lang/translations/sr-latn.po +5 -5
  46. package/lang/translations/sr.po +5 -5
  47. package/lang/translations/sv.po +1 -1
  48. package/lang/translations/th.po +1 -1
  49. package/lang/translations/tk.po +1 -1
  50. package/lang/translations/tr.po +1 -1
  51. package/lang/translations/tt.po +1 -1
  52. package/lang/translations/ug.po +7 -7
  53. package/lang/translations/uk.po +1 -1
  54. package/lang/translations/ur.po +1 -1
  55. package/lang/translations/vi.po +1 -1
  56. package/lang/translations/zh-cn.po +1 -1
  57. package/lang/translations/zh.po +1 -1
  58. package/package.json +3 -3
  59. package/src/annotations/annotation.js +2 -2
  60. package/src/annotations/annotationcollection.js +2 -2
  61. package/src/annotations/annotations.js +2 -2
  62. package/src/annotations/annotationsuis.js +2 -2
  63. package/src/annotations/editorannotations.js +2 -2
  64. package/src/annotations/inlineannotations.js +2 -2
  65. package/src/annotations/narrowsidebar.js +2 -2
  66. package/src/annotations/sidebar.js +2 -2
  67. package/src/annotations/view/annotationcounterbuttonview.js +2 -2
  68. package/src/annotations/view/annotationview.js +2 -2
  69. package/src/annotations/view/sidebaritemview.js +2 -2
  70. package/src/annotations/view/sidebarview.js +2 -2
  71. package/src/annotations/widesidebar.js +2 -2
  72. package/src/comments/addcommentthreadcommand.js +2 -2
  73. package/src/comments/commentsediting.js +2 -2
  74. package/src/comments/commentsrepository.js +2 -2
  75. package/src/comments/commentsui.js +2 -2
  76. package/src/comments/integrations/commentsrestrictededitingmode.js +2 -2
  77. package/src/comments/integrations/importword.js +2 -2
  78. package/src/comments/ui/commenteditor/commenteditor.js +2 -2
  79. package/src/comments/ui/commenteditor/commenteditorui.js +2 -2
  80. package/src/comments/ui/commenteditor/commenteditoruiview.js +2 -2
  81. package/src/comments/ui/commentthreadcontroller.js +2 -2
  82. package/src/comments/ui/view/basecommentthreadview.js +2 -2
  83. package/src/comments/ui/view/basecommentview.js +2 -2
  84. package/src/comments/ui/view/collapsedcommentsview.js +2 -2
  85. package/src/comments/ui/view/commentcontentview.js +2 -2
  86. package/src/comments/ui/view/commentinputview.js +2 -2
  87. package/src/comments/ui/view/commentslistview.js +2 -2
  88. package/src/comments/ui/view/commentthreadinputview.js +2 -2
  89. package/src/comments/ui/view/commentthreadview.js +2 -2
  90. package/src/comments/ui/view/commentview.js +2 -2
  91. package/src/comments.js +2 -2
  92. package/src/commentsonly.js +2 -2
  93. package/src/index.js +1 -1
  94. package/src/utils/common-translations.js +2 -2
  95. package/src/utils/createmutationobserver.js +2 -2
  96. package/theme/commentthread.css +7 -0
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4567=['edit','isReadOnly','ck-annotation__info','EXTERNAL_IMPORT_WORD_AVATAR','ck-comment__info-time','importWord','change:isRemovable','ck-comment--remove-confirmation','listenTo','EXTERNAL_IMPORT_WORD_COMMENT','ck-annotation__info-name','label','Remove','fire','isConfirm','isExternal','removeComment','ck-comment__wrapper','ck-comment__info-name','ck-comment__external','ck-comment__user','extendTemplate','locale','ck-comment--edit','ck-annotation__content-wrapper','remove','source','ck-comment','Reply...','userView','element','removeButton','ck-annotation__main','mouseleave','render','_attachActions','isVisible','isRemovable','ck-comment__info','set','getUserViewNotificationText','Edit','push','editButton','name','placeholder','div','setTemplate','cancelConfirm','mouseenter','attributes','actionIndicator','visibleView','isEditMode','icon','getExternalCommentNote','author','ck-comment__actions','time','_model','authoredAt','@external','isEnabled','ck-annotation__user','creator','switchToEditMode','ck-annotation__info-time','formatDateTime','bind','ck-annotation','EXTERNAL_AVATAR','_createEditButton','execute','_createRemoveButton','_createCommentInputView','ck-annotation__actions--hidden','EXTERNAL_COMMENT','_config','then'];(function(_0x15f12d,_0x4567e7){const _0x12c61c=function(_0xc75229){while(--_0xc75229){_0x15f12d['push'](_0x15f12d['shift']());}};_0x12c61c(++_0x4567e7);}(_0x4567,0xc0));const _0x12c6=function(_0x15f12d,_0x4567e7){_0x15f12d=_0x15f12d-0x0;let _0x12c61c=_0x4567[_0x15f12d];return _0x12c61c;};import{mix as _0x1a4a33}from'ckeditor5/src/utils';import{ButtonView as _0x5265fa}from'ckeditor5/src/ui';import{icons as _0x3b9602}from'ckeditor5/src/core';import{UserView as _0x5e7507,ConfirmMixin as _0x1baa50}from'ckeditor5-collaboration/src/collaboration-core';import _0x306010 from'./basecommentview';import _0x1919c9 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x5d5a42}from'../../../utils/common-translations';export default class it extends _0x306010{constructor(_0xed626f,_0x327ae3,_0x938e8){super(_0xed626f,_0x327ae3,_0x938e8),this[_0x12c6('0x5')](_0x12c6('0x11'),null),this['set'](_0x12c6('0xb'),_0x5d5a42(_0xed626f,_0x12c6('0x49'))),this[_0x12c6('0x5')](_0x12c6('0x1a'),null),this['bind'](_0x12c6('0x1a'))['to'](_0x327ae3),this[_0x12c6('0x9')]=this[_0x12c6('0x25')](),this['removeButton']=this[_0x12c6('0x27')](),this[_0x12c6('0x4a')]=new _0x5e7507(_0xed626f,_0x327ae3[_0x12c6('0x16')],this[_0x12c6('0x6')]()),this[_0x12c6('0x4a')][_0x12c6('0x42')]({'attributes':{'class':[_0x12c6('0x41'),_0x12c6('0x1d')]}}),this[_0x12c6('0x35')](_0x327ae3,_0x12c6('0x33'),()=>this[_0x12c6('0xe')]()),this[_0x12c6('0xd')](this['getTemplate']());}['getTemplate'](){const _0x5ee4c2=this['bindTemplate'],_0x237e43=[{'tag':_0x12c6('0xc'),'attributes':{'class':[_0x12c6('0x4'),_0x12c6('0x2f')]},'children':[{'tag':'span','children':[{'text':this[_0x12c6('0x4a')][_0x12c6('0xa')]}],'attributes':{'class':[_0x12c6('0x3f'),_0x12c6('0x37')]}},{'tag':_0x12c6('0x18'),'attributes':{'datetime':_0x5ee4c2['to'](_0x12c6('0x1a')),'class':[_0x12c6('0x31'),_0x12c6('0x20')]},'children':[{'text':_0x5ee4c2['to'](_0x12c6('0x1a'),_0xe55b63=>this[_0x12c6('0x2b')][_0x12c6('0x21')](_0xe55b63))}]}]},{'tag':_0x12c6('0xc'),'attributes':{'class':[_0x12c6('0x17'),'ck-annotation__actions',_0x5ee4c2['if'](_0x12c6('0x13'),'ck-comment__actions--hidden'),_0x5ee4c2['if'](_0x12c6('0x13'),_0x12c6('0x29'))]},'children':[this['editButton'],this['removeButton']]},{'tag':'div','attributes':{'class':[_0x12c6('0x45')]},'children':this[_0x12c6('0x12')]}];return this['_model'][_0x12c6('0x3c')]&&_0x237e43[_0x12c6('0x8')]({'tag':_0x12c6('0xc'),'attributes':{'class':[_0x12c6('0x40')]},'children':[{'text':this[_0x12c6('0x15')]()}]}),{'tag':'li','attributes':{'class':[_0x12c6('0x3e'),_0x5ee4c2['if'](_0x12c6('0x3b'),_0x12c6('0x34'))],'tabindex':-0x1},'children':[{'tag':_0x12c6('0xc'),'attributes':{'class':[_0x12c6('0x48'),_0x12c6('0x23'),_0x5ee4c2['if']('isEditMode',_0x12c6('0x44')),_0x5ee4c2['to'](_0x12c6('0x11'),_0x1a3a1e=>_0x1a3a1e?'ck-comment--'+_0x1a3a1e:'')],'data-author-id':this['_model']['author']['id'],'data-comment-id':this['_model']['id']},'children':[this[_0x12c6('0x4a')],{'tag':'div','attributes':{'class':['ck-comment__main',_0x12c6('0x4d')]},'children':_0x237e43}]}]};}[_0x12c6('0x25')](){const _0x191dfe=new _0x5265fa(this[_0x12c6('0x43')]);return _0x191dfe[_0x12c6('0x38')]=_0x5d5a42(this['locale'],_0x12c6('0x7')),_0x191dfe['icon']=_0x3b9602['pencil'],_0x191dfe[_0x12c6('0x42')]({'attributes':{'class':'ck-comment--edit'}}),_0x191dfe[_0x12c6('0x22')](_0x12c6('0x1c'))['to'](this[_0x12c6('0x19')],_0x12c6('0x2e'),_0x2478f9=>!_0x2478f9),_0x191dfe[_0x12c6('0x22')](_0x12c6('0x2'))['to'](this['_model'],'isEditable'),_0x191dfe['on'](_0x12c6('0x26'),()=>this[_0x12c6('0x1f')]()),_0x191dfe;}[_0x12c6('0x27')](){const _0x55882b=new _0x5265fa(this[_0x12c6('0x43')]);return _0x55882b[_0x12c6('0x38')]=_0x5d5a42(this[_0x12c6('0x43')],_0x12c6('0x39')),_0x55882b[_0x12c6('0x14')]=_0x1919c9,_0x55882b['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x55882b['bind']('isEnabled')['to'](this['_model'],_0x12c6('0x2e'),_0x56f362=>!_0x56f362),_0x55882b[_0x12c6('0x22')](_0x12c6('0x2'))['to'](this['_model'],_0x12c6('0x3')),_0x55882b['on']('execute',()=>{this['showConfirm'](_0x5d5a42(this[_0x12c6('0x43')],'Delete\x20comment?'),this[_0x12c6('0x4b')])[_0x12c6('0x2c')](()=>{this[_0x12c6('0x3a')](_0x12c6('0x3d'),this[_0x12c6('0x19')]['id']);});}),_0x55882b;}[_0x12c6('0x1')](_0x4f584b,_0x383a14){this['listenTo'](_0x4f584b,_0x12c6('0xf'),()=>this[_0x12c6('0x11')]=_0x383a14),this[_0x12c6('0x35')](_0x4f584b,'focus',()=>this[_0x12c6('0x11')]=_0x383a14),this[_0x12c6('0x35')](_0x4f584b,_0x12c6('0x4e'),()=>this[_0x12c6('0x11')]=null),this[_0x12c6('0x35')](_0x4f584b,'blur',()=>this[_0x12c6('0x11')]=null);}[_0x12c6('0x28')](){const _0x1a6ba8=super[_0x12c6('0x28')]();return _0x1a6ba8[_0x12c6('0x22')](_0x12c6('0xb'))['to'](this),_0x1a6ba8;}[_0x12c6('0x15')](){return _0x12c6('0x32')===this['_model']['attributes'][_0x12c6('0x1b')][_0x12c6('0x47')]?_0x5d5a42(this[_0x12c6('0x43')],_0x12c6('0x36')):_0x5d5a42(this[_0x12c6('0x43')],_0x12c6('0x2a'));}[_0x12c6('0x6')](){return this[_0x12c6('0x19')][_0x12c6('0x3c')]?'importWord'===this[_0x12c6('0x19')][_0x12c6('0x10')][_0x12c6('0x1b')][_0x12c6('0x47')]?_0x5d5a42(this[_0x12c6('0x43')],_0x12c6('0x30'),this['_model'][_0x12c6('0x1e')][_0x12c6('0xa')]):_0x5d5a42(this['locale'],_0x12c6('0x24'),this[_0x12c6('0x19')]['creator'][_0x12c6('0xa')]):null;}[_0x12c6('0x0')](){super[_0x12c6('0x0')](),this[_0x12c6('0x1')](this[_0x12c6('0x9')][_0x12c6('0x4b')],_0x12c6('0x2d')),this[_0x12c6('0x1')](this[_0x12c6('0x4c')][_0x12c6('0x4b')],_0x12c6('0x46'));}}_0x1a4a33(it,_0x1baa50);
23
+ const _0x2bd9=['extendTemplate','placeholder','ck-comment--remove','cancelConfirm','creator','ck-comment__user','ck-annotation__content-wrapper','ck-annotation__actions--hidden','locale','EXTERNAL_COMMENT','ck-comment__actions','isVisible','getExternalCommentNote','ck-comment__info-name','isRemovable','actionIndicator','_createRemoveButton','fire','ck-comment--','then','isReadOnly','ck-comment__actions--hidden','editButton','blur','removeButton','ck-annotation__info-name','ck-annotation__actions','Delete\x20comment?','ck-comment__main','icon','change:isRemovable','mouseleave','render','isEditMode','Remove','_model','_createEditButton','formatDateTime','pencil','bindTemplate','execute','set','element','authoredAt','EXTERNAL_IMPORT_WORD_AVATAR','label','EXTERNAL_IMPORT_WORD_COMMENT','edit','Edit','bind','ck-comment__info-time','getTemplate','div','ck-comment__external','getUserViewNotificationText','ck-comment__wrapper','isEditable','visibleView','attributes','_createCommentInputView','push','focus','isExternal','mouseenter','switchToEditMode','showConfirm','remove','EXTERNAL_AVATAR','userView','_attachActions','_config','isConfirm','time','author','importWord','ck-annotation__info-time','ck-comment--edit','listenTo','ck-annotation'];(function(_0x3e0304,_0x2bd9f5){const _0x1e9361=function(_0x503b85){while(--_0x503b85){_0x3e0304['push'](_0x3e0304['shift']());}};_0x1e9361(++_0x2bd9f5);}(_0x2bd9,0x168));const _0x1e93=function(_0x3e0304,_0x2bd9f5){_0x3e0304=_0x3e0304-0x0;let _0x1e9361=_0x2bd9[_0x3e0304];return _0x1e9361;};import{mix as _0x53506f}from'ckeditor5/src/utils';import{ButtonView as _0x6ab18b}from'ckeditor5/src/ui';import{icons as _0x375560}from'ckeditor5/src/core';import{UserView as _0x2ff62a,ConfirmMixin as _0xe1f3b3}from'ckeditor5-collaboration/src/collaboration-core';import _0x5c4c45 from'./basecommentview';import _0x3a01bc from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x4b4e96}from'../../../utils/common-translations';export default class rt extends _0x5c4c45{constructor(_0x465856,_0x6ca9db,_0x34ddf4){super(_0x465856,_0x6ca9db,_0x34ddf4),this['set'](_0x1e93('0x32'),null),this[_0x1e93('0x4c')](_0x1e93('0x24'),_0x4b4e96(_0x465856,'Reply...')),this[_0x1e93('0x4c')](_0x1e93('0x4e'),null),this['bind'](_0x1e93('0x4e'))['to'](_0x6ca9db),this[_0x1e93('0x39')]=this[_0x1e93('0x47')](),this[_0x1e93('0x3b')]=this['_createRemoveButton'](),this[_0x1e93('0x18')]=new _0x2ff62a(_0x465856,_0x6ca9db[_0x1e93('0x1d')],this[_0x1e93('0xa')]()),this['userView']['extendTemplate']({'attributes':{'class':[_0x1e93('0x28'),'ck-annotation__user']}}),this[_0x1e93('0x21')](_0x6ca9db,_0x1e93('0x41'),()=>this[_0x1e93('0x26')]()),this['setTemplate'](this[_0x1e93('0x7')]());}[_0x1e93('0x7')](){const _0x1c57f1=this[_0x1e93('0x4a')],_0x223904=[{'tag':_0x1e93('0x8'),'attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this[_0x1e93('0x18')]['name']}],'attributes':{'class':[_0x1e93('0x30'),_0x1e93('0x3c')]}},{'tag':_0x1e93('0x1c'),'attributes':{'datetime':_0x1c57f1['to']('authoredAt'),'class':[_0x1e93('0x6'),_0x1e93('0x1f')]},'children':[{'text':_0x1c57f1['to'](_0x1e93('0x4e'),_0x48b640=>this[_0x1e93('0x1a')][_0x1e93('0x48')](_0x48b640))}]}]},{'tag':'div','attributes':{'class':[_0x1e93('0x2d'),_0x1e93('0x3d'),_0x1c57f1['if'](_0x1e93('0x44'),_0x1e93('0x38')),_0x1c57f1['if'](_0x1e93('0x44'),_0x1e93('0x2a'))]},'children':[this[_0x1e93('0x39')],this[_0x1e93('0x3b')]]},{'tag':_0x1e93('0x8'),'attributes':{'class':[_0x1e93('0x29')]},'children':this[_0x1e93('0xd')]}];return this[_0x1e93('0x46')][_0x1e93('0x12')]&&_0x223904[_0x1e93('0x10')]({'tag':_0x1e93('0x8'),'attributes':{'class':[_0x1e93('0x9')]},'children':[{'text':this[_0x1e93('0x2f')]()}]}),{'tag':'li','attributes':{'class':[_0x1e93('0xb'),_0x1c57f1['if'](_0x1e93('0x1b'),'ck-comment--remove-confirmation')],'tabindex':-0x1},'children':[{'tag':_0x1e93('0x8'),'attributes':{'class':['ck-comment',_0x1e93('0x22'),_0x1c57f1['if']('isEditMode',_0x1e93('0x20')),_0x1c57f1['to'](_0x1e93('0x32'),_0xfd4ff8=>_0xfd4ff8?_0x1e93('0x35')+_0xfd4ff8:'')],'data-author-id':this[_0x1e93('0x46')][_0x1e93('0x1d')]['id'],'data-comment-id':this['_model']['id']},'children':[this['userView'],{'tag':'div','attributes':{'class':[_0x1e93('0x3f'),'ck-annotation__main']},'children':_0x223904}]}]};}[_0x1e93('0x47')](){const _0x43ef8e=new _0x6ab18b(this[_0x1e93('0x2b')]);return _0x43ef8e['label']=_0x4b4e96(this[_0x1e93('0x2b')],_0x1e93('0x4')),_0x43ef8e[_0x1e93('0x40')]=_0x375560[_0x1e93('0x49')],_0x43ef8e[_0x1e93('0x23')]({'attributes':{'class':_0x1e93('0x20')}}),_0x43ef8e[_0x1e93('0x5')]('isEnabled')['to'](this['_model'],_0x1e93('0x37'),_0xd24f17=>!_0xd24f17),_0x43ef8e[_0x1e93('0x5')](_0x1e93('0x2e'))['to'](this[_0x1e93('0x46')],_0x1e93('0xc')),_0x43ef8e['on'](_0x1e93('0x4b'),()=>this[_0x1e93('0x14')]()),_0x43ef8e;}[_0x1e93('0x33')](){const _0x4830aa=new _0x6ab18b(this['locale']);return _0x4830aa[_0x1e93('0x1')]=_0x4b4e96(this[_0x1e93('0x2b')],_0x1e93('0x45')),_0x4830aa[_0x1e93('0x40')]=_0x3a01bc,_0x4830aa[_0x1e93('0x23')]({'attributes':{'class':_0x1e93('0x25')}}),_0x4830aa[_0x1e93('0x5')]('isEnabled')['to'](this[_0x1e93('0x46')],_0x1e93('0x37'),_0x5ce09d=>!_0x5ce09d),_0x4830aa[_0x1e93('0x5')](_0x1e93('0x2e'))['to'](this[_0x1e93('0x46')],_0x1e93('0x31')),_0x4830aa['on'](_0x1e93('0x4b'),()=>{this[_0x1e93('0x15')](_0x4b4e96(this['locale'],_0x1e93('0x3e')),this[_0x1e93('0x4d')])[_0x1e93('0x36')](()=>{this[_0x1e93('0x34')]('removeComment',this['_model']['id']);});}),_0x4830aa;}['_attachActions'](_0x3ab93b,_0x45b1f3){this[_0x1e93('0x21')](_0x3ab93b,_0x1e93('0x13'),()=>this[_0x1e93('0x32')]=_0x45b1f3),this['listenTo'](_0x3ab93b,_0x1e93('0x11'),()=>this[_0x1e93('0x32')]=_0x45b1f3),this['listenTo'](_0x3ab93b,_0x1e93('0x42'),()=>this[_0x1e93('0x32')]=null),this['listenTo'](_0x3ab93b,_0x1e93('0x3a'),()=>this['actionIndicator']=null);}[_0x1e93('0xf')](){const _0x3bae17=super[_0x1e93('0xf')]();return _0x3bae17[_0x1e93('0x5')](_0x1e93('0x24'))['to'](this),_0x3bae17;}[_0x1e93('0x2f')](){return'importWord'===this[_0x1e93('0x46')][_0x1e93('0xe')]['@external']['source']?_0x4b4e96(this['locale'],_0x1e93('0x2')):_0x4b4e96(this[_0x1e93('0x2b')],_0x1e93('0x2c'));}[_0x1e93('0xa')](){return this[_0x1e93('0x46')][_0x1e93('0x12')]?_0x1e93('0x1e')===this[_0x1e93('0x46')][_0x1e93('0xe')]['@external']['source']?_0x4b4e96(this[_0x1e93('0x2b')],_0x1e93('0x0'),this[_0x1e93('0x46')][_0x1e93('0x27')]['name']):_0x4b4e96(this['locale'],_0x1e93('0x17'),this['_model'][_0x1e93('0x27')]['name']):null;}[_0x1e93('0x43')](){super['render'](),this['_attachActions'](this['editButton'][_0x1e93('0x4d')],_0x1e93('0x3')),this[_0x1e93('0x19')](this['removeButton'][_0x1e93('0x4d')],_0x1e93('0x16'));}}_0x53506f(rt,_0xe1f3b3);
package/src/comments.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x20fd=['pluginName','requires','Comments'];(function(_0x58faf9,_0x20fdfc){var _0x1da88a=function(_0x3cee21){while(--_0x3cee21){_0x58faf9['push'](_0x58faf9['shift']());}};_0x1da88a(++_0x20fdfc);}(_0x20fd,0x1da));var _0x1da8=function(_0x58faf9,_0x20fdfc){_0x58faf9=_0x58faf9-0x0;var _0x1da88a=_0x20fd[_0x58faf9];return _0x1da88a;};import{Plugin as _0x1ef9b2}from'ckeditor5/src/core';import _0x339680 from'./comments/commentsrepository';import _0x44c23f from'./comments/commentsediting';import _0x9e75af from'./comments/commentsui';import _0x8789c5 from'./commentsonly';import _0x185d6c from'./annotations/widesidebar';import _0x3def7d from'./annotations/narrowsidebar';import _0x257673 from'./annotations/inlineannotations';export default class c extends _0x1ef9b2{static get[_0x1da8('0x1')](){return[_0x339680,_0x44c23f,_0x9e75af,_0x8789c5,_0x185d6c,_0x3def7d,_0x257673];}static get[_0x1da8('0x0')](){return _0x1da8('0x2');}}
23
+ var _0x3c67=['Comments','pluginName'];(function(_0x2034dd,_0x3c67a1){var _0x541e17=function(_0x5c03d3){while(--_0x5c03d3){_0x2034dd['push'](_0x2034dd['shift']());}};_0x541e17(++_0x3c67a1);}(_0x3c67,0xeb));var _0x541e=function(_0x2034dd,_0x3c67a1){_0x2034dd=_0x2034dd-0x0;var _0x541e17=_0x3c67[_0x2034dd];return _0x541e17;};import{Plugin as _0x3cb9d8}from'ckeditor5/src/core';import _0x5528e9 from'./comments/commentsrepository';import _0x1e78ca from'./comments/commentsediting';import _0x150365 from'./comments/commentsui';import _0x555682 from'./commentsonly';import _0x1b494c from'./annotations/widesidebar';import _0x177f4a from'./annotations/narrowsidebar';import _0x7ad4d5 from'./annotations/inlineannotations';export default class c extends _0x3cb9d8{static get['requires'](){return[_0x5528e9,_0x1e78ca,_0x150365,_0x555682,_0x1b494c,_0x177f4a,_0x7ad4d5];}static get[_0x541e('0x0')](){return _0x541e('0x1');}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4400=['listenTo','affectsData','clearForceDisabled','clipboardInput','afterInit','editing','editor','DragDrop','set','config','has','commands','view','forceDisabled','highest','commentsOnlyMode','_disableCommentsOnlyMode','document','cut','delete','plugins','stop','change:isEnabled','pluginName','get','addCommentThread','requires','stopListening','_enableCommentsOnlyMode','isEnabled'];(function(_0x30cf5d,_0x440078){const _0x243286=function(_0xfd809f){while(--_0xfd809f){_0x30cf5d['push'](_0x30cf5d['shift']());}};_0x243286(++_0x440078);}(_0x4400,0x131));const _0x2432=function(_0x30cf5d,_0x440078){_0x30cf5d=_0x30cf5d-0x0;let _0x243286=_0x4400[_0x30cf5d];return _0x243286;};import{Plugin as _0x1b2a2c}from'ckeditor5/src/core';import _0x54d5dc from'./comments/commentsediting';export default class e extends _0x1b2a2c{static get[_0x2432('0x12')](){return'CommentsOnly';}static get[_0x2432('0x15')](){return[_0x54d5dc];}constructor(_0x4a2156){super(_0x4a2156),this[_0x2432('0x3')](_0x2432('0x18'),null),this['on'](_0x2432('0x11'),(_0x20ca7d,_0xdd0d47,_0x43d950)=>{_0x43d950?this[_0x2432('0x17')]():this[_0x2432('0xb')]();});}[_0x2432('0x1d')](){null===this['isEnabled']&&(this[_0x2432('0x18')]=!!this[_0x2432('0x1')][_0x2432('0x4')][_0x2432('0x13')]('commentsOnly'));}[_0x2432('0x17')](){for(const [_0x2625bf,_0x5ee3a0]of this['editor']['commands'])_0x5ee3a0[_0x2432('0x1a')]&&'addCommentThread'!==_0x2625bf&&_0x5ee3a0[_0x2432('0x8')](_0x2432('0xa'));this[_0x2432('0x1')]['plugins'][_0x2432('0x5')](_0x2432('0x2'))&&this[_0x2432('0x1')][_0x2432('0xf')]['get'](_0x2432('0x2'))['forceDisabled'](_0x2432('0xa'));const _0x19b0c5=this['editor'][_0x2432('0x0')][_0x2432('0x7')]['document'];this[_0x2432('0x19')](_0x19b0c5,_0x2432('0xd'),_0x21cbb4=>_0x21cbb4[_0x2432('0x10')](),{'priority':_0x2432('0x9')}),this[_0x2432('0x19')](_0x19b0c5,_0x2432('0x1c'),_0x1380ba=>_0x1380ba['stop'](),{'priority':'highest'}),this[_0x2432('0x19')](_0x19b0c5,_0x2432('0xe'),_0x5f109a=>_0x5f109a[_0x2432('0x10')](),{'priority':_0x2432('0x9')});}['_disableCommentsOnlyMode'](){for(const [_0x436158,_0x5f0b31]of this[_0x2432('0x1')][_0x2432('0x6')])_0x5f0b31['affectsData']&&_0x2432('0x14')!==_0x436158&&_0x5f0b31[_0x2432('0x1b')](_0x2432('0xa'));this[_0x2432('0x16')](this['editor'][_0x2432('0x0')]['view'][_0x2432('0xc')]);}}
23
+ const _0x107a=['commentsOnly','isEnabled','get','addCommentThread','plugins','pluginName','clearForceDisabled','delete','CommentsOnly','commentsOnlyMode','highest','editing','forceDisabled','editor','document','stop','afterInit','view','_enableCommentsOnlyMode','config','listenTo','clipboardInput','commands','set','DragDrop','_disableCommentsOnlyMode'];(function(_0x4b42e6,_0x107a90){const _0x3356b7=function(_0x1448c7){while(--_0x1448c7){_0x4b42e6['push'](_0x4b42e6['shift']());}};_0x3356b7(++_0x107a90);}(_0x107a,0x1a0));const _0x3356=function(_0x4b42e6,_0x107a90){_0x4b42e6=_0x4b42e6-0x0;let _0x3356b7=_0x107a[_0x4b42e6];return _0x3356b7;};import{Plugin as _0x174458}from'ckeditor5/src/core';import _0x16f913 from'./comments/commentsediting';export default class e extends _0x174458{static get[_0x3356('0x5')](){return _0x3356('0x8');}static get['requires'](){return[_0x16f913];}constructor(_0x1c062c){super(_0x1c062c),this[_0x3356('0x17')](_0x3356('0x1'),null),this['on']('change:isEnabled',(_0x16bdb7,_0x5799e1,_0x1f6cfd)=>{_0x1f6cfd?this[_0x3356('0x12')]():this[_0x3356('0x19')]();});}[_0x3356('0x10')](){null===this[_0x3356('0x1')]&&(this[_0x3356('0x1')]=!!this[_0x3356('0xd')][_0x3356('0x13')][_0x3356('0x2')](_0x3356('0x0')));}[_0x3356('0x12')](){for(const [_0x1986ff,_0x9d97a4]of this['editor']['commands'])_0x9d97a4['affectsData']&&_0x3356('0x3')!==_0x1986ff&&_0x9d97a4[_0x3356('0xc')]('commentsOnlyMode');this[_0x3356('0xd')]['plugins']['has']('DragDrop')&&this['editor'][_0x3356('0x4')][_0x3356('0x2')](_0x3356('0x18'))[_0x3356('0xc')](_0x3356('0x9'));const _0x4ad6de=this[_0x3356('0xd')][_0x3356('0xb')][_0x3356('0x11')][_0x3356('0xe')];this[_0x3356('0x14')](_0x4ad6de,'cut',_0x505c95=>_0x505c95[_0x3356('0xf')](),{'priority':_0x3356('0xa')}),this[_0x3356('0x14')](_0x4ad6de,_0x3356('0x15'),_0x1320e3=>_0x1320e3[_0x3356('0xf')](),{'priority':_0x3356('0xa')}),this[_0x3356('0x14')](_0x4ad6de,_0x3356('0x7'),_0x20974c=>_0x20974c[_0x3356('0xf')](),{'priority':_0x3356('0xa')});}[_0x3356('0x19')](){for(const [_0x304aee,_0x3a2546]of this[_0x3356('0xd')][_0x3356('0x16')])_0x3a2546['affectsData']&&_0x3356('0x3')!==_0x304aee&&_0x3a2546[_0x3356('0x6')]('commentsOnlyMode');this['stopListening'](this[_0x3356('0xd')][_0x3356('0xb')]['view'][_0x3356('0xe')]);}}
package/src/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0xbf7eda,_0x5336c2,_0x49322a){const t=_0xbf7eda['t'];switch(_0x5336c2){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'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Remove':return t('Remove');case'Submit':return t('Submit');case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x49322a);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'},_0x49322a);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'},_0x49322a);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'},_0x49322a);}}
23
+ export function getTranslation(_0x5209e8,_0x2f6b20,_0x5e89e3){const t=_0x5209e8['t'];switch(_0x2f6b20){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'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Remove':return t('Remove');case'Submit':return t('Submit');case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x5e89e3);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'},_0x5e89e3);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'},_0x5e89e3);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'},_0x5e89e3);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xe57b=['attributeName','type','cancel','class','disconnect','observe','childList','attributes'];(function(_0x16f646,_0xe57be2){const _0x5d8aab=function(_0x5a3301){while(--_0x5a3301){_0x16f646['push'](_0x16f646['shift']());}};_0x5d8aab(++_0xe57be2);}(_0xe57b,0xc4));const _0x5d8a=function(_0x16f646,_0xe57be2){_0x16f646=_0x16f646-0x0;let _0x5d8aab=_0xe57b[_0x16f646];return _0x5d8aab;};import{throttle as _0x4be667}from'lodash-es';export default function ht(_0x2accb9){const _0x1bd556=_0x4be667(_0x2accb9,0x1e),_0x13cfec=new MutationObserver(_0xfaaf4d=>{for(const _0x4ee53b of _0xfaaf4d)(_0x5d8a('0x3')==_0x4ee53b[_0x5d8a('0x5')]&&_0x5d8a('0x7')==_0x4ee53b[_0x5d8a('0x4')]||_0x5d8a('0x2')==_0x4ee53b['type'])&&_0x1bd556();});return{'attach'(_0x1d3af4){_0x13cfec[_0x5d8a('0x1')](_0x1d3af4,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x13cfec[_0x5d8a('0x0')](),_0x1bd556[_0x5d8a('0x6')]();}};}
23
+ const _0x1644=['disconnect','attributeName','attributes','type','observe','childList','cancel','class'];(function(_0x5496d9,_0x1644e1){const _0x4b0532=function(_0x305d02){while(--_0x305d02){_0x5496d9['push'](_0x5496d9['shift']());}};_0x4b0532(++_0x1644e1);}(_0x1644,0x1c7));const _0x4b05=function(_0x5496d9,_0x1644e1){_0x5496d9=_0x5496d9-0x0;let _0x4b0532=_0x1644[_0x5496d9];return _0x4b0532;};import{throttle as _0x418539}from'lodash-es';export default function lt(_0x3c8558){const _0x446637=_0x418539(_0x3c8558,0x1e),_0x4310f6=new MutationObserver(_0x4c0d51=>{for(const _0x32d601 of _0x4c0d51)(_0x4b05('0x3')==_0x32d601[_0x4b05('0x4')]&&_0x4b05('0x0')==_0x32d601[_0x4b05('0x2')]||_0x4b05('0x6')==_0x32d601[_0x4b05('0x4')])&&_0x446637();});return{'attach'(_0x27e656){_0x4310f6[_0x4b05('0x5')](_0x27e656,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x4310f6[_0x4b05('0x1')](),_0x446637[_0x4b05('0x7')]();}};}
@@ -151,4 +151,11 @@
151
151
 
152
152
  transition: background-color 200ms ease-in-out;
153
153
  border-radius: var(--ck-border-radius);
154
+
155
+ /*
156
+ This is equal to the height of the wrapper when the editor instance is loaded.
157
+ Editor instance is loaded _after_ the comment view is created,
158
+ so the min-height is set to avoid jitter.
159
+ */
160
+ min-height: 38px;
154
161
  }