@ckeditor/ckeditor5-comments 35.4.0 → 36.0.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 (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 _0x4766=['ck-comment__info-time','isEditMode','editButton','ck-comment__actions--hidden','ck-annotation__content-wrapper','ck-annotation','ck-annotation__info','push','source','time','extendTemplate','isVisible','@external','_model','ck-comment--edit','locale','div','ck-comment--','EXTERNAL_IMPORT_WORD_AVATAR','removeButton','Reply...','_config','ck-annotation__main','Edit','listenTo','placeholder','bindTemplate','isRemovable','ck-annotation__actions--hidden','ck-comment__info','author','isExternal','pencil','_createCommentInputView','isEnabled','ck-comment--remove','focus','userView','element','Delete\x20comment?','getTemplate','_createEditButton','formatDateTime','isReadOnly','creator','set','showConfirm','change:isRemovable','isEditable','getExternalCommentNote','_attachActions','actionIndicator','then','Remove','cancelConfirm','visibleView','remove','span','ck-comment__user','ck-comment--remove-confirmation','_createRemoveButton','execute','name','importWord','icon','isConfirm','ck-comment__external','ck-comment__wrapper','authoredAt','bind','label','attributes','fire'];(function(_0x427390,_0x4766fc){const _0x416866=function(_0x53b1ae){while(--_0x53b1ae){_0x427390['push'](_0x427390['shift']());}};_0x416866(++_0x4766fc);}(_0x4766,0x75));const _0x4168=function(_0x427390,_0x4766fc){_0x427390=_0x427390-0x0;let _0x416866=_0x4766[_0x427390];return _0x416866;};import{mix as _0x363bf7}from'ckeditor5/src/utils';import{ButtonView as _0x36da23}from'ckeditor5/src/ui';import{icons as _0x1b12c7}from'ckeditor5/src/core';import{UserView as _0x26d65d,ConfirmMixin as _0x114c4d}from'ckeditor5-collaboration/src/collaboration-core';import _0x482ed6 from'./basecommentview';import _0x2ed031 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x2503ea}from'../../../utils/common-translations';export default class rt extends _0x482ed6{constructor(_0x1e890b,_0x35716e,_0x4e0e95){super(_0x1e890b,_0x35716e,_0x4e0e95),this['set'](_0x4168('0x7'),null),this[_0x4168('0x1')](_0x4168('0x36'),_0x2503ea(_0x1e890b,_0x4168('0x31'))),this['set'](_0x4168('0x18'),null),this[_0x4168('0x19')](_0x4168('0x18'))['to'](_0x35716e),this[_0x4168('0x1f')]=this[_0x4168('0x46')](),this[_0x4168('0x30')]=this[_0x4168('0x10')](),this['userView']=new _0x26d65d(_0x1e890b,_0x35716e[_0x4168('0x3b')],this['getUserViewNotificationText']()),this[_0x4168('0x42')][_0x4168('0x27')]({'attributes':{'class':[_0x4168('0xe'),'ck-annotation__user']}}),this[_0x4168('0x35')](_0x35716e,_0x4168('0x3'),()=>this[_0x4168('0xa')]()),this['setTemplate'](this[_0x4168('0x45')]());}['getTemplate'](){const _0x4f1221=this[_0x4168('0x37')],_0x675f31=[{'tag':_0x4168('0x2d'),'attributes':{'class':[_0x4168('0x3a'),_0x4168('0x23')]},'children':[{'tag':_0x4168('0xd'),'children':[{'text':this['userView'][_0x4168('0x12')]}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name']}},{'tag':_0x4168('0x26'),'attributes':{'datetime':_0x4f1221['to'](_0x4168('0x18')),'class':[_0x4168('0x1d'),'ck-annotation__info-time']},'children':[{'text':_0x4f1221['to'](_0x4168('0x18'),_0x43c47c=>this[_0x4168('0x32')][_0x4168('0x47')](_0x43c47c))}]}]},{'tag':_0x4168('0x2d'),'attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x4f1221['if'](_0x4168('0x1e'),_0x4168('0x20')),_0x4f1221['if'](_0x4168('0x1e'),_0x4168('0x39'))]},'children':[this[_0x4168('0x1f')],this[_0x4168('0x30')]]},{'tag':_0x4168('0x2d'),'attributes':{'class':[_0x4168('0x21')]},'children':this[_0x4168('0xb')]}];return this[_0x4168('0x2a')]['isExternal']&&_0x675f31[_0x4168('0x24')]({'tag':'div','attributes':{'class':[_0x4168('0x16')]},'children':[{'text':this[_0x4168('0x5')]()}]}),{'tag':'li','attributes':{'class':[_0x4168('0x17'),_0x4f1221['if'](_0x4168('0x15'),_0x4168('0xf'))],'tabindex':-0x1},'children':[{'tag':_0x4168('0x2d'),'attributes':{'class':['ck-comment',_0x4168('0x22'),_0x4f1221['if']('isEditMode',_0x4168('0x2b')),_0x4f1221['to'](_0x4168('0x7'),_0x1582a5=>_0x1582a5?_0x4168('0x2e')+_0x1582a5:'')],'data-author-id':this[_0x4168('0x2a')][_0x4168('0x3b')]['id'],'data-comment-id':this[_0x4168('0x2a')]['id']},'children':[this[_0x4168('0x42')],{'tag':_0x4168('0x2d'),'attributes':{'class':['ck-comment__main',_0x4168('0x33')]},'children':_0x675f31}]}]};}[_0x4168('0x46')](){const _0x4c5444=new _0x36da23(this[_0x4168('0x2c')]);return _0x4c5444[_0x4168('0x1a')]=_0x2503ea(this[_0x4168('0x2c')],_0x4168('0x34')),_0x4c5444[_0x4168('0x14')]=_0x1b12c7[_0x4168('0x3d')],_0x4c5444[_0x4168('0x27')]({'attributes':{'class':'ck-comment--edit'}}),_0x4c5444[_0x4168('0x19')](_0x4168('0x3f'))['to'](this[_0x4168('0x2a')],'isReadOnly',_0xf2c710=>!_0xf2c710),_0x4c5444['bind'](_0x4168('0x28'))['to'](this[_0x4168('0x2a')],_0x4168('0x4')),_0x4c5444['on'](_0x4168('0x11'),()=>this['switchToEditMode']()),_0x4c5444;}[_0x4168('0x10')](){const _0x23ddfe=new _0x36da23(this[_0x4168('0x2c')]);return _0x23ddfe[_0x4168('0x1a')]=_0x2503ea(this[_0x4168('0x2c')],_0x4168('0x9')),_0x23ddfe[_0x4168('0x14')]=_0x2ed031,_0x23ddfe[_0x4168('0x27')]({'attributes':{'class':_0x4168('0x40')}}),_0x23ddfe[_0x4168('0x19')](_0x4168('0x3f'))['to'](this[_0x4168('0x2a')],_0x4168('0x48'),_0x58719d=>!_0x58719d),_0x23ddfe['bind'](_0x4168('0x28'))['to'](this['_model'],_0x4168('0x38')),_0x23ddfe['on'](_0x4168('0x11'),()=>{this[_0x4168('0x2')](_0x2503ea(this[_0x4168('0x2c')],_0x4168('0x44')),this['element'])[_0x4168('0x8')](()=>{this[_0x4168('0x1c')]('removeComment',this[_0x4168('0x2a')]['id']);});}),_0x23ddfe;}[_0x4168('0x6')](_0x180833,_0x1ede3a){this[_0x4168('0x35')](_0x180833,'mouseenter',()=>this['actionIndicator']=_0x1ede3a),this[_0x4168('0x35')](_0x180833,_0x4168('0x41'),()=>this[_0x4168('0x7')]=_0x1ede3a),this[_0x4168('0x35')](_0x180833,'mouseleave',()=>this[_0x4168('0x7')]=null),this[_0x4168('0x35')](_0x180833,'blur',()=>this['actionIndicator']=null);}[_0x4168('0x3e')](){const _0x28b1d2=super['_createCommentInputView']();return _0x28b1d2[_0x4168('0x19')]('placeholder')['to'](this),_0x28b1d2;}[_0x4168('0x5')](){return _0x4168('0x13')===this[_0x4168('0x2a')][_0x4168('0x1b')]['@external'][_0x4168('0x25')]?_0x2503ea(this[_0x4168('0x2c')],'EXTERNAL_IMPORT_WORD_COMMENT'):_0x2503ea(this[_0x4168('0x2c')],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this[_0x4168('0x2a')][_0x4168('0x3c')]?_0x4168('0x13')===this[_0x4168('0x2a')][_0x4168('0x1b')][_0x4168('0x29')]['source']?_0x2503ea(this[_0x4168('0x2c')],_0x4168('0x2f'),this[_0x4168('0x2a')]['creator']['name']):_0x2503ea(this[_0x4168('0x2c')],'EXTERNAL_AVATAR',this[_0x4168('0x2a')][_0x4168('0x0')][_0x4168('0x12')]):null;}['render'](){super['render'](),this[_0x4168('0x6')](this[_0x4168('0x1f')][_0x4168('0x43')],'edit'),this[_0x4168('0x6')](this[_0x4168('0x30')][_0x4168('0x43')],_0x4168('0xc'));}}_0x363bf7(rt,_0x114c4d);
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 _0x48a0=['requires','pluginName'];(function(_0x2cf15a,_0x48a017){var _0x172c44=function(_0x195f57){while(--_0x195f57){_0x2cf15a['push'](_0x2cf15a['shift']());}};_0x172c44(++_0x48a017);}(_0x48a0,0x120));var _0x172c=function(_0x2cf15a,_0x48a017){_0x2cf15a=_0x2cf15a-0x0;var _0x172c44=_0x48a0[_0x2cf15a];return _0x172c44;};import{Plugin as _0x59cc19}from'ckeditor5/src/core';import _0x20f33a from'./comments/commentsrepository';import _0x56276d from'./comments/commentsediting';import _0x1622ac from'./comments/commentsui';import _0x511d13 from'./commentsonly';import _0x37f78f from'./annotations/widesidebar';import _0x4fb377 from'./annotations/narrowsidebar';import _0x5d9a1f from'./annotations/inlineannotations';export default class c extends _0x59cc19{static get[_0x172c('0x0')](){return[_0x20f33a,_0x56276d,_0x1622ac,_0x511d13,_0x37f78f,_0x4fb377,_0x5d9a1f];}static get[_0x172c('0x1')](){return'Comments';}}
@@ -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 _0x2581=['stop','document','_disableCommentsOnlyMode','DragDrop','forceDisabled','stopListening','_enableCommentsOnlyMode','plugins','addCommentThread','get','set','change:isEnabled','clearForceDisabled','view','isEnabled','affectsData','commentsOnly','cut','commentsOnlyMode','editing','highest','editor','delete','listenTo','requires','commands','CommentsOnly'];(function(_0x5b01b6,_0x2581e0){const _0x53fb6c=function(_0x4fdaba){while(--_0x4fdaba){_0x5b01b6['push'](_0x5b01b6['shift']());}};_0x53fb6c(++_0x2581e0);}(_0x2581,0x1e2));const _0x53fb=function(_0x5b01b6,_0x2581e0){_0x5b01b6=_0x5b01b6-0x0;let _0x53fb6c=_0x2581[_0x5b01b6];return _0x53fb6c;};import{Plugin as _0x33e6c2}from'ckeditor5/src/core';import _0x2426e7 from'./comments/commentsediting';export default class e extends _0x33e6c2{static get['pluginName'](){return _0x53fb('0x3');}static get[_0x53fb('0x1')](){return[_0x2426e7];}constructor(_0x212ab2){super(_0x212ab2),this[_0x53fb('0xe')](_0x53fb('0x12'),null),this['on'](_0x53fb('0xf'),(_0x1ba476,_0xe5dccd,_0x44ff4e)=>{_0x44ff4e?this[_0x53fb('0xa')]():this[_0x53fb('0x6')]();});}['afterInit'](){null===this[_0x53fb('0x12')]&&(this[_0x53fb('0x12')]=!!this[_0x53fb('0x19')]['config'][_0x53fb('0xd')](_0x53fb('0x14')));}[_0x53fb('0xa')](){for(const [_0x21b7ba,_0x1cb78a]of this[_0x53fb('0x19')]['commands'])_0x1cb78a[_0x53fb('0x13')]&&_0x53fb('0xc')!==_0x21b7ba&&_0x1cb78a['forceDisabled'](_0x53fb('0x16'));this['editor']['plugins']['has'](_0x53fb('0x7'))&&this[_0x53fb('0x19')][_0x53fb('0xb')][_0x53fb('0xd')](_0x53fb('0x7'))[_0x53fb('0x8')](_0x53fb('0x16'));const _0x4f9182=this[_0x53fb('0x19')][_0x53fb('0x17')]['view'][_0x53fb('0x5')];this['listenTo'](_0x4f9182,_0x53fb('0x15'),_0xa3b560=>_0xa3b560['stop'](),{'priority':_0x53fb('0x18')}),this['listenTo'](_0x4f9182,'clipboardInput',_0x1d2544=>_0x1d2544[_0x53fb('0x4')](),{'priority':_0x53fb('0x18')}),this[_0x53fb('0x0')](_0x4f9182,_0x53fb('0x1a'),_0x2b4f24=>_0x2b4f24[_0x53fb('0x4')](),{'priority':_0x53fb('0x18')});}[_0x53fb('0x6')](){for(const [_0x4c0713,_0x42975a]of this['editor'][_0x53fb('0x2')])_0x42975a[_0x53fb('0x13')]&&'addCommentThread'!==_0x4c0713&&_0x42975a[_0x53fb('0x10')](_0x53fb('0x16'));this[_0x53fb('0x9')](this['editor'][_0x53fb('0x17')][_0x53fb('0x11')][_0x53fb('0x5')]);}}
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(_0x322da9,_0x5eee15,_0x51518a){const t=_0x322da9['t'];switch(_0x5eee15){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'},_0x51518a);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'},_0x51518a);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'},_0x51518a);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'},_0x51518a);}}
@@ -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 _0x167a=['observe','childList','cancel','attributeName'];(function(_0x1f4df3,_0x167a09){const _0xa39ea8=function(_0x6e2b50){while(--_0x6e2b50){_0x1f4df3['push'](_0x1f4df3['shift']());}};_0xa39ea8(++_0x167a09);}(_0x167a,0xe7));const _0xa39e=function(_0x1f4df3,_0x167a09){_0x1f4df3=_0x1f4df3-0x0;let _0xa39ea8=_0x167a[_0x1f4df3];return _0xa39ea8;};import{throttle as _0x585607}from'lodash-es';export default function lt(_0x3c3dd1){const _0x57018d=_0x585607(_0x3c3dd1,0x1e),_0x7d3790=new MutationObserver(_0x103e55=>{for(const _0x1efbc3 of _0x103e55)('attributes'==_0x1efbc3['type']&&'class'==_0x1efbc3[_0xa39e('0x0')]||_0xa39e('0x2')==_0x1efbc3['type'])&&_0x57018d();});return{'attach'(_0x43adee){_0x7d3790[_0xa39e('0x1')](_0x43adee,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x7d3790['disconnect'](),_0x57018d[_0xa39e('0x3')]();}};}
@@ -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
  }