@ckeditor/ckeditor5-comments 31.1.0 → 34.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 (125) hide show
  1. package/LICENSE.md +2 -2
  2. package/README.md +5 -2
  3. package/build/comments.js +5 -0
  4. package/build/translations/bs.js +1 -0
  5. package/build/translations/cs.js +1 -0
  6. package/build/translations/da.js +1 -0
  7. package/build/translations/de-ch.js +1 -0
  8. package/build/translations/de.js +1 -0
  9. package/build/translations/el.js +1 -0
  10. package/build/translations/en-au.js +1 -0
  11. package/build/translations/es.js +1 -0
  12. package/build/translations/et.js +1 -0
  13. package/build/translations/fr.js +1 -0
  14. package/build/translations/gl.js +1 -0
  15. package/build/translations/hi.js +1 -0
  16. package/build/translations/hr.js +1 -0
  17. package/build/translations/hu.js +1 -0
  18. package/build/translations/id.js +1 -0
  19. package/build/translations/it.js +1 -0
  20. package/build/translations/ja.js +1 -0
  21. package/build/translations/jv.js +1 -0
  22. package/build/translations/ko.js +1 -0
  23. package/build/translations/nl.js +1 -0
  24. package/build/translations/no.js +1 -0
  25. package/build/translations/pl.js +1 -0
  26. package/build/translations/pt-br.js +1 -0
  27. package/build/translations/ro.js +1 -0
  28. package/build/translations/ru.js +1 -0
  29. package/build/translations/sk.js +1 -0
  30. package/build/translations/sr-latn.js +1 -0
  31. package/build/translations/sr.js +1 -0
  32. package/build/translations/tk.js +1 -0
  33. package/build/translations/tr.js +1 -0
  34. package/build/translations/ug.js +1 -0
  35. package/build/translations/uk.js +1 -0
  36. package/build/translations/zh-cn.js +1 -0
  37. package/build/translations/zh.js +1 -0
  38. package/lang/contexts.json +0 -3
  39. package/lang/translations/bs.po +68 -0
  40. package/lang/translations/cs.po +1 -13
  41. package/lang/translations/da.po +1 -13
  42. package/lang/translations/de-ch.po +1 -13
  43. package/lang/translations/de.po +1 -13
  44. package/lang/translations/el.po +67 -0
  45. package/lang/translations/en-au.po +1 -13
  46. package/lang/translations/en.po +1 -13
  47. package/lang/translations/es.po +1 -13
  48. package/lang/translations/et.po +1 -13
  49. package/lang/translations/fr.po +1 -13
  50. package/lang/translations/gl.po +1 -13
  51. package/lang/translations/hi.po +1 -13
  52. package/lang/translations/hr.po +1 -13
  53. package/lang/translations/hu.po +1 -13
  54. package/lang/translations/id.po +1 -13
  55. package/lang/translations/it.po +1 -13
  56. package/lang/translations/ja.po +1 -13
  57. package/lang/translations/jv.po +66 -0
  58. package/lang/translations/ko.po +1 -13
  59. package/lang/translations/nl.po +1 -13
  60. package/lang/translations/no.po +1 -13
  61. package/lang/translations/pl.po +1 -13
  62. package/lang/translations/pt-br.po +1 -13
  63. package/lang/translations/ro.po +1 -13
  64. package/lang/translations/ru.po +1 -13
  65. package/lang/translations/sk.po +1 -13
  66. package/lang/translations/sr-latn.po +1 -13
  67. package/lang/translations/sr.po +1 -13
  68. package/lang/translations/tk.po +1 -13
  69. package/lang/translations/tr.po +1 -13
  70. package/lang/translations/ug.po +1 -13
  71. package/lang/translations/uk.po +1 -13
  72. package/lang/translations/zh-cn.po +1 -13
  73. package/lang/translations/zh.po +1 -13
  74. package/package.json +4 -9
  75. package/src/annotations/annotation.js +2 -2
  76. package/src/annotations/annotationcollection.js +2 -2
  77. package/src/annotations/annotations.js +2 -2
  78. package/src/annotations/annotationsuis.js +2 -2
  79. package/src/annotations/editorannotations.js +2 -2
  80. package/src/annotations/inlineannotations.js +2 -2
  81. package/src/annotations/narrowsidebar.js +2 -2
  82. package/src/annotations/sidebar.js +2 -2
  83. package/src/annotations/view/annotationcounterbuttonview.js +2 -2
  84. package/src/annotations/view/annotationview.js +2 -2
  85. package/src/annotations/view/sidebaritemview.js +2 -2
  86. package/src/annotations/view/sidebarview.js +2 -2
  87. package/src/annotations/widesidebar.js +2 -2
  88. package/src/comments/addcommentthreadcommand.js +2 -2
  89. package/src/comments/commentsediting.js +2 -2
  90. package/src/comments/commentsrepository.js +2 -2
  91. package/src/comments/commentsui.js +2 -2
  92. package/src/comments/integrations/commentsrestrictededitingmode.js +2 -2
  93. package/src/comments/ui/commenteditor/commenteditor.js +2 -2
  94. package/src/comments/ui/commenteditor/commenteditorui.js +2 -2
  95. package/src/comments/ui/commenteditor/commenteditoruiview.js +2 -2
  96. package/src/comments/ui/commentthreadcontroller.js +2 -2
  97. package/src/comments/ui/view/basecommentthreadview.js +2 -2
  98. package/src/comments/ui/view/basecommentview.js +2 -2
  99. package/src/comments/ui/view/collapsedcommentsview.js +2 -2
  100. package/src/comments/ui/view/commentcontentview.js +2 -2
  101. package/src/comments/ui/view/commentinputview.js +2 -2
  102. package/src/comments/ui/view/commentslistview.js +2 -2
  103. package/src/comments/ui/view/commentthreadinputview.js +2 -2
  104. package/src/comments/ui/view/commentthreadview.js +2 -2
  105. package/src/comments/ui/view/commentview.js +2 -2
  106. package/src/comments.js +2 -2
  107. package/src/commentsonly.js +2 -2
  108. package/src/{utils/getmarkerdomelement.js → index.js} +2 -2
  109. package/src/utils/common-translations.js +2 -2
  110. package/src/utils/createmutationobserver.js +2 -2
  111. package/theme/annotation-inline.css +1 -1
  112. package/theme/annotation.css +1 -1
  113. package/theme/comment.css +1 -1
  114. package/theme/commentinput.css +1 -1
  115. package/theme/commentmarker.css +1 -1
  116. package/theme/commentthread.css +1 -1
  117. package/theme/icons/add-comment.svg +1 -1
  118. package/theme/icons/edit-comment.svg +1 -1
  119. package/theme/icons/remove-comment.svg +1 -1
  120. package/theme/sidebar-narrow.css +1 -1
  121. package/theme/sidebar.css +1 -1
  122. package/src/comments/ui/view/confirmmixin.js +0 -23
  123. package/src/comments/ui/view/confirmview.js +0 -23
  124. package/src/utils/getdatetimeformatter.js +0 -23
  125. package/src/utils/trim-html.js +0 -23
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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 _0x7a72=['fire','create','getRoot','then','set','_updatePlaceholder','getChild','focus','document','initialData','view','low','defaultPlugins','placeholder','data','placeholderElement','ready','destroy','assign','change','initPlugins','model','name','childCount','plugins','config','get','createRoot','init'];(function(_0x374004,_0x7a721b){const _0x5cc88e=function(_0x227329){while(--_0x227329){_0x374004['push'](_0x374004['shift']());}};_0x5cc88e(++_0x7a721b);}(_0x7a72,0x14c));const _0x5cc8=function(_0x374004,_0x7a721b){_0x374004=_0x374004-0x0;let _0x5cc88e=_0x7a72[_0x374004];return _0x5cc88e;};import{Editor as _0x449947,DataApiMixin as _0x30b9dc}from'ckeditor5/src/core';import _0x37ee98 from'./commenteditorui';import{mix as _0x55e280,ObservableMixin as _0x2c3169}from'ckeditor5/src/utils';import{enablePlaceholder as _0x4a8997,disablePlaceholder as _0x234f29}from'ckeditor5/src/engine';import _0x4b7fc4 from'@ckeditor/ckeditor5-essentials/src/essentials';import{Paragraph as _0x14e1fe}from'ckeditor5/src/paragraph';import _0x490178 from'@ckeditor/ckeditor5-basic-styles/src/bold';import _0x2e53b8 from'@ckeditor/ckeditor5-basic-styles/src/italic';import _0x35534b from'@ckeditor/ckeditor5-list/src/list';import _0x5d2beb from'@ckeditor/ckeditor5-autoformat/src/autoformat';export default class zt extends _0x449947{constructor(_0x417e16={}){(_0x417e16=Object[_0x5cc8('0x5')]({},_0x417e16))['plugins']||(_0x417e16[_0x5cc8('0xb')]=zt[_0x5cc8('0x1c')]),super(_0x417e16),this['ui']=new _0x37ee98(this),this[_0x5cc8('0x14')](_0x5cc8('0x0'),''),this[_0x5cc8('0x8')][_0x5cc8('0x18')]['on'](_0x5cc8('0x6'),()=>this[_0x5cc8('0x15')](),{'priority':_0x5cc8('0x1b')}),this['on']('change:placeholder',()=>this[_0x5cc8('0x15')]()),this['model'][_0x5cc8('0x18')][_0x5cc8('0xe')]();}[_0x5cc8('0x11')](){const _0x1a39b3=this[_0x5cc8('0xc')][_0x5cc8('0xd')](_0x5cc8('0x19'))||'';return this[_0x5cc8('0x7')]()[_0x5cc8('0x13')](()=>this['ui']['init']())[_0x5cc8('0x13')](()=>this[_0x5cc8('0x1')][_0x5cc8('0xf')](_0x1a39b3))[_0x5cc8('0x13')](()=>this[_0x5cc8('0x10')](_0x5cc8('0x3')));}[_0x5cc8('0x4')](){return super[_0x5cc8('0x4')]()['then'](()=>this['ui'][_0x5cc8('0x4')]());}[_0x5cc8('0x17')](){this[_0x5cc8('0x8')][_0x5cc8('0x6')](_0x8391d0=>{const _0x57125a=this['model']['document']['getRoot'](),_0x501593=_0x57125a[_0x5cc8('0x16')](_0x57125a[_0x5cc8('0xa')]-0x1);_0x8391d0['setSelection'](_0x501593,'end'),this['editing'][_0x5cc8('0x1a')][_0x5cc8('0x17')]();});}[_0x5cc8('0x15')](){const _0xfc1d12=this['editing']['view'],_0x390aaf=_0xfc1d12[_0x5cc8('0x18')][_0x5cc8('0x12')](),_0x5aa576=_0x390aaf[_0x5cc8('0x16')](0x0);_0x390aaf[_0x5cc8('0xa')]>0x1||!_0x5aa576||'p'!=_0x5aa576[_0x5cc8('0x9')]?this['placeholderElement']&&(_0x234f29(_0xfc1d12,this[_0x5cc8('0x2')]),this[_0x5cc8('0x2')]=void 0x0):(_0x4a8997({'view':_0xfc1d12,'element':_0x5aa576,'text':this[_0x5cc8('0x0')],'keepOnFocus':!0x0}),this['placeholderElement']=_0x5aa576);}}_0x55e280(zt,_0x2c3169),_0x55e280(zt,_0x30b9dc),zt[_0x5cc8('0x1c')]=[_0x4b7fc4,_0x5d2beb,_0x14e1fe,_0x490178,_0x2e53b8,_0x35534b];
23
+ const _0x3bcd=['change','view','change:placeholder','document','placeholderElement','init','name','get','then','focus','getRoot','data','getChild','createRoot','destroy','setSelection','editing','config','assign','childCount','model','set','fire','plugins','defaultPlugins','_updatePlaceholder','create','low'];(function(_0x3d874e,_0x3bcd7a){const _0x3c343a=function(_0x45b9f4){while(--_0x45b9f4){_0x3d874e['push'](_0x3d874e['shift']());}};_0x3c343a(++_0x3bcd7a);}(_0x3bcd,0x166));const _0x3c34=function(_0x3d874e,_0x3bcd7a){_0x3d874e=_0x3d874e-0x0;let _0x3c343a=_0x3bcd[_0x3d874e];return _0x3c343a;};import{Editor as _0x520b8d,DataApiMixin as _0x2a29bf}from'ckeditor5/src/core';import _0x1b0f09 from'./commenteditorui';import{mix as _0x31b5f6,ObservableMixin as _0x3bfd61}from'ckeditor5/src/utils';import{enablePlaceholder as _0x5ac016,disablePlaceholder as _0x139348}from'ckeditor5/src/engine';import{Clipboard as _0x2f5e9d}from'ckeditor5/src/clipboard';import{Enter as _0x1909ab,ShiftEnter as _0x38a7f0}from'ckeditor5/src/enter';import{SelectAll as _0x4bdc4e}from'ckeditor5/src/select-all';import{Typing as _0x1366ce}from'ckeditor5/src/typing';import{Undo as _0x53420a}from'ckeditor5/src/undo';import{Paragraph as _0x1f7a15}from'ckeditor5/src/paragraph';export default class qt extends _0x520b8d{constructor(_0x28a8e3={}){(_0x28a8e3=Object[_0x3c34('0x18')]({},_0x28a8e3))[_0x3c34('0x1')]||(_0x28a8e3['plugins']=qt[_0x3c34('0x2')]),super(_0x28a8e3),this['ui']=new _0x1b0f09(this),this[_0x3c34('0x1b')]('placeholder',''),this['model'][_0x3c34('0x9')]['on']('change',()=>this[_0x3c34('0x3')](),{'priority':_0x3c34('0x5')}),this['on'](_0x3c34('0x8'),()=>this[_0x3c34('0x3')]()),this['model'][_0x3c34('0x9')][_0x3c34('0x13')]();}[_0x3c34('0x4')](){const _0x210b16=this[_0x3c34('0x17')][_0x3c34('0xd')]('initialData')||'';return this['initPlugins']()['then'](()=>this['ui'][_0x3c34('0xb')]())[_0x3c34('0xe')](()=>this[_0x3c34('0x11')][_0x3c34('0xb')](_0x210b16))['then'](()=>this[_0x3c34('0x0')]('ready'));}[_0x3c34('0x14')](){return super[_0x3c34('0x14')]()[_0x3c34('0xe')](()=>this['ui'][_0x3c34('0x14')]());}[_0x3c34('0xf')](){this[_0x3c34('0x1a')][_0x3c34('0x6')](_0x333f26=>{const _0x54da61=this['model'][_0x3c34('0x9')]['getRoot'](),_0xfde6b3=_0x54da61[_0x3c34('0x12')](_0x54da61[_0x3c34('0x19')]-0x1);_0x333f26[_0x3c34('0x15')](_0xfde6b3,'end'),this[_0x3c34('0x16')][_0x3c34('0x7')][_0x3c34('0xf')]();});}[_0x3c34('0x3')](){const _0x3d4242=this[_0x3c34('0x16')][_0x3c34('0x7')],_0x241ac4=_0x3d4242[_0x3c34('0x9')][_0x3c34('0x10')](),_0x3d47f1=_0x241ac4[_0x3c34('0x12')](0x0);_0x241ac4[_0x3c34('0x19')]>0x1||!_0x3d47f1||'p'!=_0x3d47f1[_0x3c34('0xc')]?this[_0x3c34('0xa')]&&(_0x139348(_0x3d4242,this[_0x3c34('0xa')]),this[_0x3c34('0xa')]=void 0x0):(_0x5ac016({'view':_0x3d4242,'element':_0x3d47f1,'text':this['placeholder'],'keepOnFocus':!0x0}),this[_0x3c34('0xa')]=_0x3d47f1);}}_0x31b5f6(qt,_0x3bfd61),_0x31b5f6(qt,_0x2a29bf),qt[_0x3c34('0x2')]=[_0x2f5e9d,_0x1909ab,_0x38a7f0,_0x4bdc4e,_0x1366ce,_0x53420a,_0x1f7a15];
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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 _0x3f48=['editing','view','focusTracker','element','destroy','editable','rootName','attachDomRoot','document','fire','bind','ready','setEditableElement','getRoot','name'];(function(_0x1ef5e5,_0x3f4825){const _0x276794=function(_0x181e4d){while(--_0x181e4d){_0x1ef5e5['push'](_0x1ef5e5['shift']());}};_0x276794(++_0x3f4825);}(_0x3f48,0xe6));const _0x2767=function(_0x1ef5e5,_0x3f4825){_0x1ef5e5=_0x1ef5e5-0x0;let _0x276794=_0x3f48[_0x1ef5e5];return _0x276794;};import{EditorUI as _0x558e35}from'ckeditor5/src/core';import _0x2c4e46 from'./commenteditoruiview';export default class wt extends _0x558e35{constructor(_0x2068fa){super(_0x2068fa),this['view']=new _0x2c4e46(_0x2068fa['locale'],_0x2068fa[_0x2767('0xa')][_0x2767('0xb')]);}get['element'](){return this[_0x2767('0xb')][_0x2767('0xd')];}['init'](){const _0x35967c=this['editor']['editing'][_0x2767('0xb')],_0x3c1201=this[_0x2767('0xb')]['editable'],_0x5e84cf=_0x35967c[_0x2767('0x3')][_0x2767('0x8')]();_0x3c1201[_0x2767('0x9')]=_0x5e84cf[_0x2767('0x1')],this[_0x2767('0xb')]['render']();const _0x1f28b0=_0x3c1201['element'];this[_0x2767('0x7')](_0x3c1201[_0x2767('0x9')],_0x1f28b0),this[_0x2767('0xc')]['add'](_0x1f28b0),this[_0x2767('0xb')][_0x2767('0x0')][_0x2767('0x5')]('isFocused')['to'](this[_0x2767('0xc')]),_0x35967c[_0x2767('0x2')](_0x1f28b0),this[_0x2767('0x4')](_0x2767('0x6'));}['destroy'](){this[_0x2767('0xb')][_0x2767('0xe')](),super[_0x2767('0xe')]();}}
23
+ const _0x2c00=['destroy','ready','setEditableElement','bind','name','document','editing','editor','getRoot','fire','init','view','render','attachDomRoot','focusTracker','element','editable','rootName'];(function(_0x5394bb,_0x2c002d){const _0x2a407c=function(_0x3bfa7e){while(--_0x3bfa7e){_0x5394bb['push'](_0x5394bb['shift']());}};_0x2a407c(++_0x2c002d);}(_0x2c00,0x1c3));const _0x2a40=function(_0x5394bb,_0x2c002d){_0x5394bb=_0x5394bb-0x0;let _0x2a407c=_0x2c00[_0x5394bb];return _0x2a407c;};import{EditorUI as _0x44a97d}from'ckeditor5/src/core';import _0x9364b6 from'./commenteditoruiview';export default class yt extends _0x44a97d{constructor(_0x3217cc){super(_0x3217cc),this['view']=new _0x9364b6(_0x3217cc['locale'],_0x3217cc[_0x2a40('0x5')]['view']);}get['element'](){return this[_0x2a40('0xa')]['element'];}[_0x2a40('0x9')](){const _0x24a044=this[_0x2a40('0x6')][_0x2a40('0x5')]['view'],_0x57135e=this[_0x2a40('0xa')][_0x2a40('0xf')],_0xfe2119=_0x24a044[_0x2a40('0x4')][_0x2a40('0x7')]();_0x57135e[_0x2a40('0x3')]=_0xfe2119[_0x2a40('0x10')],this[_0x2a40('0xa')][_0x2a40('0xb')]();const _0x468ea7=_0x57135e[_0x2a40('0xe')];this[_0x2a40('0x1')](_0x57135e[_0x2a40('0x3')],_0x468ea7),this[_0x2a40('0xd')]['add'](_0x468ea7),this[_0x2a40('0xa')][_0x2a40('0xf')][_0x2a40('0x2')]('isFocused')['to'](this['focusTracker']),_0x24a044[_0x2a40('0xc')](_0x468ea7),this[_0x2a40('0x8')](_0x2a40('0x0'));}[_0x2a40('0x11')](){this[_0x2a40('0xa')]['destroy'](),super[_0x2a40('0x11')]();}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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
- import{InlineEditableUIView as $t,EditorUIView as Ct,LabelView as Lt}from'ckeditor5/src/ui';import{uid as _0x52493a}from'ckeditor5/src/utils';export default class Bt extends Ct{constructor(_0x4f0aa4,_0x42d54a){super(_0x4f0aa4);const _0x4f6348=_0x52493a();this['main']=this['createCollection'](),this['editable']=new $t(_0x4f0aa4,_0x42d54a),this['_voiceLabelView']=this['_createVoiceLabel'](_0x4f6348,_0x4f0aa4),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'role':'comment','dir':_0x4f0aa4['uiLanguageDirection'],'lang':_0x4f0aa4['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x4f6348},'children':[this['_voiceLabelView'],{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}['_createVoiceLabel'](_0x2b419b,_0x3e83b1){const _0x125fed=new Lt(),{t:t}=_0x3e83b1;return _0x125fed['text']=t('Comment\x20editor'),_0x125fed['extendTemplate']({'attributes':{'id':'ck-editor__aria-label_'+_0x2b419b,'class':'ck-voice-label'}}),_0x125fed;}}
23
+ import{InlineEditableUIView as $t,EditorUIView as Ct,LabelView as Lt}from'ckeditor5/src/ui';import{uid as _0x51d464}from'ckeditor5/src/utils';export default class At extends Ct{constructor(_0xfda6a1,_0x167555){super(_0xfda6a1);const _0x3f7d2e=_0x51d464();this['main']=this['createCollection'](),this['editable']=new $t(_0xfda6a1,_0x167555),this['_voiceLabelView']=this['_createVoiceLabel'](_0x3f7d2e,_0xfda6a1),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'role':'comment','dir':_0xfda6a1['uiLanguageDirection'],'lang':_0xfda6a1['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x3f7d2e},'children':[this['_voiceLabelView'],{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}['_createVoiceLabel'](_0x3da27a,_0x4762a4){const _0x37ea71=new Lt(),{t:t}=_0x4762a4;return _0x37ea71['text']=t('Comment\x20editor'),_0x37ea71['extendTemplate']({'attributes':{'id':'ck-editor__aria-label_'+_0x3da27a,'class':'ck-voice-label'}}),_0x37ea71;}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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 _0x1e8b=['remove','removeComment','model','removeCommentThread','updateComment','listenTo','stopListening','destroy','_isAttached','addComment','view'];(function(_0x4b8dc4,_0x1e8bee){var _0x41d332=function(_0xafb1c9){while(--_0xafb1c9){_0x4b8dc4['push'](_0x4b8dc4['shift']());}};_0x41d332(++_0x1e8bee);}(_0x1e8b,0x1a1));var _0x41d3=function(_0x4b8dc4,_0x1e8bee){_0x4b8dc4=_0x4b8dc4-0x0;var _0x41d332=_0x1e8b[_0x4b8dc4];return _0x41d332;};import{ObservableMixin as _0x4ad0c7,mix as _0xee859a}from'ckeditor5/src/utils';export default class H{constructor(_0x214d18,_0x4c4c18){this[_0x41d3('0x3')]=_0x214d18,this[_0x41d3('0x3')]['_isAttached']=!0x0,this['view']=_0x4c4c18,this[_0x41d3('0x6')](_0x4c4c18,_0x41d3('0x4'),()=>this['remove']()),this[_0x41d3('0x6')](_0x4c4c18,'addComment',(_0x51a6ef,_0x275a75)=>this['addComment'](_0x275a75)),this['listenTo'](_0x4c4c18,_0x41d3('0x5'),(_0x3275d1,_0x22ac1e,_0x9a46b2)=>this['updateComment'](_0x22ac1e,_0x9a46b2)),this['listenTo'](_0x4c4c18,_0x41d3('0x2'),(_0xb7b149,_0x3617c2)=>this['removeComment'](_0x3617c2));}[_0x41d3('0x1')](){this[_0x41d3('0x3')][_0x41d3('0x1')]();}[_0x41d3('0xa')](_0x2874c0){this[_0x41d3('0x3')][_0x41d3('0xa')]({'content':_0x2874c0,'authorId':this[_0x41d3('0x0')]['_localUser']['id']});}[_0x41d3('0x5')](_0x34d8c5,_0x34d3cb){this['model']['getComment'](_0x34d8c5)['update']({'content':_0x34d3cb});}[_0x41d3('0x2')](_0x24d1b1){this['model']['getComment'](_0x24d1b1)[_0x41d3('0x1')]();}[_0x41d3('0x8')](){this[_0x41d3('0x7')](),this[_0x41d3('0x3')][_0x41d3('0x9')]=!0x1;}}_0xee859a(H,_0x4ad0c7);
23
+ var _0x59e9=['stopListening','remove','updateComment','addComment','listenTo','getComment','_isAttached','update','view','model','removeCommentThread','removeComment'];(function(_0x22918a,_0x59e976){var _0x54bc46=function(_0x3eb5c6){while(--_0x3eb5c6){_0x22918a['push'](_0x22918a['shift']());}};_0x54bc46(++_0x59e976);}(_0x59e9,0xf5));var _0x54bc=function(_0x22918a,_0x59e976){_0x22918a=_0x22918a-0x0;var _0x54bc46=_0x59e9[_0x22918a];return _0x54bc46;};import{ObservableMixin as _0x4e7695,mix as _0x381c52}from'ckeditor5/src/utils';export default class et{constructor(_0x4e44ad,_0x14634a){this['model']=_0x4e44ad,this[_0x54bc('0x4')][_0x54bc('0x1')]=!0x0,this['view']=_0x14634a,this[_0x54bc('0xb')](_0x14634a,_0x54bc('0x5'),()=>this[_0x54bc('0x8')]()),this[_0x54bc('0xb')](_0x14634a,_0x54bc('0xa'),(_0x2646f4,_0xddb65a)=>this[_0x54bc('0xa')](_0xddb65a)),this[_0x54bc('0xb')](_0x14634a,'updateComment',(_0x351f12,_0x3c44a0,_0x3e3d09)=>this[_0x54bc('0x9')](_0x3c44a0,_0x3e3d09)),this[_0x54bc('0xb')](_0x14634a,_0x54bc('0x6'),(_0x4a0d18,_0x36bacf)=>this['removeComment'](_0x36bacf));}[_0x54bc('0x8')](){this[_0x54bc('0x4')][_0x54bc('0x8')]();}[_0x54bc('0xa')](_0x60acb){this[_0x54bc('0x4')][_0x54bc('0xa')]({'content':_0x60acb,'authorId':this[_0x54bc('0x3')]['_localUser']['id']});}[_0x54bc('0x9')](_0x42d191,_0x34279c){this[_0x54bc('0x4')][_0x54bc('0x0')](_0x42d191)[_0x54bc('0x2')]({'content':_0x34279c});}['removeComment'](_0x3a9d3d){this['model']['getComment'](_0x3a9d3d)['remove']();}['destroy'](){this[_0x54bc('0x7')](),this[_0x54bc('0x4')]['_isAttached']=!0x1;}}_0x381c52(et,_0x4e7695);
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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
- import{View as bt}from'ckeditor5/src/ui';import Rt from'./commentthreadinputview';import Tt from'./commentslistview';export default class It extends bt{constructor(_0x3adf9d,_0x4ea749,_0xdc03ff,_0x4aaab3){super(_0x3adf9d),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x4ea749,this['_localUser']=_0xdc03ff,this['_config']=_0x4aaab3,this['commentsListView']=new Tt(_0x3adf9d,_0x4ea749,Object['assign']({'CommentView':this['_config']['CommentView']},_0x4aaab3)),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']),this['bind']('length')['to'](this['commentsListView'],'length'),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x367276,_0x5c76e7)=>_0x367276||!!_0x5c76e7);}['focus'](){this['element']['focus']();}['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const {t:t}=this['locale'],_0x18e0d6=new Rt(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4c0363=_0x18e0d6['commentInputView'];return _0x18e0d6['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',_0x4c0363,'value',(_0x2dbb63,_0x5efba3,_0x223929)=>!!_0x223929||_0x2dbb63&&!_0x5efba3),_0x4c0363['bind']('placeholder')['to'](this,'length',_0x18fc55=>t(_0x18fc55?'Reply...':'Write\x20a\x20comment...')),_0x4c0363['on']('submit',(_0x13dcdf,_0xb08bf4)=>{this['fire']('addComment',_0xb08bf4);}),_0x4c0363['on']('cancel',()=>{this['focus']();}),_0x4c0363['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x4c0363['on']('cancel',_0x3ac7a6=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x3ac7a6['stop']());}),this['on']('change:isActive',(_0x56f65f,_0x555c51,_0x39ae1d)=>{_0x39ae1d||this['length']||_0x4c0363['value']||this['fire']('removeCommentThread');}),_0x18e0d6;}}
23
+ import{View as ht}from'ckeditor5/src/ui';import dt from'./commentthreadinputview';import ct from'./commentslistview';export default class Rt extends ht{constructor(_0x5bdad1,_0x1a3a7e,_0x228f4f,_0xb2f3ee){super(_0x5bdad1),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x1a3a7e,this['_localUser']=_0x228f4f,this['_config']=_0xb2f3ee,this['commentsListView']=new ct(_0x5bdad1,_0x1a3a7e,Object['assign']({'CommentView':this['_config']['CommentView']},_0xb2f3ee)),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']),this['bind']('length')['to'](this['commentsListView'],'length'),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x55307a,_0x198e68)=>_0x55307a||!!_0x198e68);}['focus'](){this['element']['focus']();}['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const {t:t}=this['locale'],_0x1e1d42=new dt(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x519b31=_0x1e1d42['commentInputView'];return _0x1e1d42['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',_0x519b31,'value',(_0x94d79,_0xdbd480,_0x5b1fbb)=>!!_0x5b1fbb||_0x94d79&&!_0xdbd480),_0x519b31['bind']('placeholder')['to'](this,'length',_0xac9c1e=>t(_0xac9c1e?'Reply...':'Write\x20a\x20comment...')),_0x519b31['on']('submit',(_0x27b5a3,_0x3d15f2)=>{this['fire']('addComment',_0x3d15f2);}),_0x519b31['on']('cancel',()=>{this['focus']();}),_0x519b31['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x519b31['on']('cancel',_0xa298a8=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0xa298a8['stop']());}),this['on']('change:isActive',(_0x448dc2,_0x31af27,_0x4ffdf7)=>{_0x4ffdf7||this['length']||_0x519b31['value']||this['fire']('removeCommentThread');}),_0x1e1d42;}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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 _0x1dd8=['bind','collapse','initialData','set','remove','content','focus','_model','switchToEditMode','isCollapsed','locale','_createCommentInputView','isReadOnly','maxCommentCharsWhenCollapsed','isEditMode','value','visibleView','cancel','_config','submit','editorConfig','destroy','get','expand','editorReady','fire','updateComment','switchToDisplayMode','add','_createCommentContentView'];(function(_0xcbf781,_0x1dd8c5){const _0x9f07bb=function(_0x4cd12a){while(--_0x4cd12a){_0xcbf781['push'](_0xcbf781['shift']());}};_0x9f07bb(++_0x1dd8c5);}(_0x1dd8,0x99));const _0x9f07=function(_0xcbf781,_0x1dd8c5){_0xcbf781=_0xcbf781-0x0;let _0x9f07bb=_0x1dd8[_0xcbf781];return _0x9f07bb;};import{View as _0x3cf297}from'ckeditor5/src/ui';import _0x4f8058 from'./commentcontentview';import _0x567cf7 from'./commentinputview';import _0x3538aa from'../../../utils/trim-html';export default class Vt extends _0x3cf297{constructor(_0x104767,_0x74177b,_0x3cfa28){super(_0x104767),this[_0x9f07('0x4')]=_0x74177b,this['_config']=_0x3cfa28,this[_0x9f07('0x0')]('isEditMode',!0x1),this[_0x9f07('0x0')](_0x9f07('0x6'),!0x0),this[_0x9f07('0xd')]=this['createCollection'](),this['visibleView'][_0x9f07('0x19')](this[_0x9f07('0x1a')]());}[_0x9f07('0x14')](){this[_0x9f07('0x6')]=!0x1;}[_0x9f07('0x1c')](){this[_0x9f07('0xb')]||(this[_0x9f07('0x6')]=!0x0);}[_0x9f07('0x3')](){this['element'][_0x9f07('0x3')]();}async[_0x9f07('0x12')](){await this['visibleView'][_0x9f07('0x13')](0x0)[_0x9f07('0x12')](),super[_0x9f07('0x12')]();}[_0x9f07('0x5')](){this[_0x9f07('0xb')]||(this[_0x9f07('0xb')]=!0x0,this[_0x9f07('0xd')][_0x9f07('0x1')](0x0)[_0x9f07('0x12')](),this[_0x9f07('0xd')]['add'](this[_0x9f07('0x8')]()));}[_0x9f07('0x18')](){this[_0x9f07('0xb')]&&(this[_0x9f07('0xb')]=!0x1,this[_0x9f07('0xd')][_0x9f07('0x1')](0x0)[_0x9f07('0x12')](),this['visibleView'][_0x9f07('0x19')](this['_createCommentContentView']()));}[_0x9f07('0x1a')](){const _0x2a393b=new _0x4f8058(this[_0x9f07('0x7')]);return _0x2a393b[_0x9f07('0x1b')]('content')['to'](this[_0x9f07('0x4')],_0x9f07('0x2'),this,_0x9f07('0x6'),(_0x555ad1,_0x5460a0)=>_0x5460a0?_0x3538aa(_0x555ad1,{'limit':this[_0x9f07('0xf')][_0x9f07('0xa')]}):_0x555ad1),_0x2a393b;}[_0x9f07('0x8')](){this[_0x9f07('0xf')]['editorConfig']||(this['_config'][_0x9f07('0x11')]={}),this[_0x9f07('0xf')][_0x9f07('0x11')][_0x9f07('0x1d')]=this['_model'][_0x9f07('0x2')];const _0x54f76c=new _0x567cf7(this['locale'],this[_0x9f07('0xf')][_0x9f07('0x11')]);return _0x54f76c[_0x9f07('0xc')]=this[_0x9f07('0x4')][_0x9f07('0x2')],_0x54f76c[_0x9f07('0x1b')]('disabledSubmit')['to'](this[_0x9f07('0x4')],_0x9f07('0x9')),_0x54f76c['on'](_0x9f07('0x10'),(_0x4c7414,_0x5ed947)=>{this[_0x9f07('0x16')](_0x9f07('0x17'),this[_0x9f07('0x4')]['id'],_0x5ed947),this[_0x9f07('0x18')](),this[_0x9f07('0x3')]();}),_0x54f76c['on'](_0x9f07('0xe'),()=>{this[_0x9f07('0x18')](),this[_0x9f07('0x3')]();}),_0x54f76c['once'](_0x9f07('0x15'),()=>{_0x54f76c[_0x9f07('0x3')]();}),_0x54f76c;}}
23
+ const _0x2976=['_createCommentContentView','expand','isCollapsed','visibleView','destroy','set','createCollection','_config','_createCommentInputView','_model','fire','value','editorConfig','switchToDisplayMode','initialData','maxCommentCharsWhenCollapsed','add','element','isEditMode','disabledSubmit','isReadOnly','cancel','content','switchToEditMode','get','remove','focus','locale','updateComment'];(function(_0x56eb8e,_0x29767a){const _0x57405b=function(_0xcfffc4){while(--_0xcfffc4){_0x56eb8e['push'](_0x56eb8e['shift']());}};_0x57405b(++_0x29767a);}(_0x2976,0x1d1));const _0x5740=function(_0x56eb8e,_0x29767a){_0x56eb8e=_0x56eb8e-0x0;let _0x57405b=_0x2976[_0x56eb8e];return _0x57405b;};import{View as _0x1b40c6}from'ckeditor5/src/ui';import{trimHtml as _0x15ff53}from'ckeditor5-collaboration/src/collaboration-core';import _0x1c1a9a from'./commentcontentview';import _0x2a2876 from'./commentinputview';export default class Vt extends _0x1b40c6{constructor(_0x16a871,_0x506454,_0x3ebfcc){super(_0x16a871),this['_model']=_0x506454,this[_0x5740('0x6')]=_0x3ebfcc,this[_0x5740('0x4')](_0x5740('0x11'),!0x1),this[_0x5740('0x4')](_0x5740('0x1'),!0x0),this[_0x5740('0x2')]=this[_0x5740('0x5')](),this[_0x5740('0x2')][_0x5740('0xf')](this[_0x5740('0x1c')]());}[_0x5740('0x0')](){this[_0x5740('0x1')]=!0x1;}['collapse'](){this['isEditMode']||(this[_0x5740('0x1')]=!0x0);}[_0x5740('0x19')](){this[_0x5740('0x10')][_0x5740('0x19')]();}async['destroy'](){await this[_0x5740('0x2')][_0x5740('0x17')](0x0)[_0x5740('0x3')](),super[_0x5740('0x3')]();}[_0x5740('0x16')](){this['isEditMode']||(this[_0x5740('0x11')]=!0x0,this[_0x5740('0x2')][_0x5740('0x18')](0x0)[_0x5740('0x3')](),this[_0x5740('0x2')][_0x5740('0xf')](this[_0x5740('0x7')]()));}[_0x5740('0xc')](){this[_0x5740('0x11')]&&(this[_0x5740('0x11')]=!0x1,this[_0x5740('0x2')][_0x5740('0x18')](0x0)[_0x5740('0x3')](),this[_0x5740('0x2')][_0x5740('0xf')](this[_0x5740('0x1c')]()));}[_0x5740('0x1c')](){const _0x59ae16=new _0x1c1a9a(this['locale']);return _0x59ae16['bind'](_0x5740('0x15'))['to'](this[_0x5740('0x8')],_0x5740('0x15'),this,_0x5740('0x1'),(_0x1442d2,_0x29d9a2)=>_0x29d9a2?_0x15ff53(_0x1442d2,{'limit':this[_0x5740('0x6')][_0x5740('0xe')]}):_0x1442d2),_0x59ae16;}[_0x5740('0x7')](){this['_config'][_0x5740('0xb')]||(this['_config'][_0x5740('0xb')]={}),this[_0x5740('0x6')][_0x5740('0xb')][_0x5740('0xd')]=this[_0x5740('0x8')][_0x5740('0x15')];const _0xa06791=new _0x2a2876(this[_0x5740('0x1a')],this[_0x5740('0x6')][_0x5740('0xb')]);return _0xa06791[_0x5740('0xa')]=this[_0x5740('0x8')][_0x5740('0x15')],_0xa06791['bind'](_0x5740('0x12'))['to'](this[_0x5740('0x8')],_0x5740('0x13')),_0xa06791['on']('submit',(_0x358ec0,_0x50f43b)=>{this[_0x5740('0x9')](_0x5740('0x1b'),this[_0x5740('0x8')]['id'],_0x50f43b),this['switchToDisplayMode'](),this[_0x5740('0x19')]();}),_0xa06791['on'](_0x5740('0x14'),()=>{this['switchToDisplayMode'](),this[_0x5740('0x19')]();}),_0xa06791['once']('editorReady',()=>{_0xa06791[_0x5740('0x19')]();}),_0xa06791;}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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
- import{View as bt}from'ckeditor5/src/ui';export default class Nt extends bt{constructor(_0x105d53){super(_0x105d53);const {t:t}=_0x105d53,_0x2f66af=this['bindTemplate'];this['set']('count'),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x2f66af['to']('count',_0x2b5b73=>t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x2b5b73))}]});}}
23
+ import{View as ht}from'ckeditor5/src/ui';export default class Nt extends ht{constructor(_0x29edee){super(_0x29edee);const {t:t}=_0x29edee,_0x41d0a6=this['bindTemplate'];this['set']('count'),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x41d0a6['to']('count',_0xae26e=>t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0xae26e))}]});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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 _0xc5ae=['innerHTML','ck-annotation__content','render','content','div','setTemplate','ck-comment__content','element'];(function(_0x56a174,_0xc5aeaa){var _0x461212=function(_0x38cc31){while(--_0x38cc31){_0x56a174['push'](_0x56a174['shift']());}};_0x461212(++_0xc5aeaa);}(_0xc5ae,0x7a));var _0x4612=function(_0x56a174,_0xc5aeaa){_0x56a174=_0x56a174-0x0;var _0x461212=_0xc5ae[_0x56a174];return _0x461212;};import{View as _0x184894}from'ckeditor5/src/ui';export default class Mt extends _0x184894{constructor(_0x12557b){super(_0x12557b),this['set']('content',''),this[_0x4612('0x3')]({'tag':_0x4612('0x2'),'attributes':{'class':[_0x4612('0x4'),_0x4612('0x7')]}});}[_0x4612('0x0')](){super[_0x4612('0x0')](),this['on']('change:content',(_0x5e1e4d,_0x227ef1,_0x4ecc8d)=>{this[_0x4612('0x5')][_0x4612('0x6')]=_0x4ecc8d;}),this[_0x4612('0x5')][_0x4612('0x6')]=this[_0x4612('0x1')];}}
23
+ var _0x3b3f=['setTemplate','content','element','set','render','innerHTML','ck-annotation__content','change:content'];(function(_0x39da51,_0x3b3f1d){var _0x947a53=function(_0x332873){while(--_0x332873){_0x39da51['push'](_0x39da51['shift']());}};_0x947a53(++_0x3b3f1d);}(_0x3b3f,0x157));var _0x947a=function(_0x39da51,_0x3b3f1d){_0x39da51=_0x39da51-0x0;var _0x947a53=_0x3b3f[_0x39da51];return _0x947a53;};import{View as _0x71169a}from'ckeditor5/src/ui';export default class Et extends _0x71169a{constructor(_0x2ff9cd){super(_0x2ff9cd),this[_0x947a('0x4')](_0x947a('0x2'),''),this[_0x947a('0x1')]({'tag':'div','attributes':{'class':['ck-comment__content',_0x947a('0x7')]}});}[_0x947a('0x5')](){super[_0x947a('0x5')](),this['on'](_0x947a('0x0'),(_0xf94859,_0x2714ad,_0x14468e)=>{this[_0x947a('0x3')][_0x947a('0x6')]=_0x14468e;}),this[_0x947a('0x3')][_0x947a('0x6')]=this[_0x947a('0x2')];}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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
- import{View as bt,ViewCollection as St,FocusCycler as Gt,ButtonView as mt}from'ckeditor5/src/ui';import{FocusTracker as _0x197062,KeystrokeHandler as pt}from'ckeditor5/src/utils';import{icons as Yt}from'ckeditor5/src/core';import zt from'../commenteditor/commenteditor';export default class Et extends bt{constructor(_0x3ee17a,_0x5f3ded={}){super(_0x3ee17a);const {t:t}=_0x3ee17a;this['editor']=new zt(_0x5f3ded),this['keystrokes']=new pt(),this['focusTracker']=new _0x197062(),this['set']('value',_0x5f3ded['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',t('Reply...')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-comment__input-actions',this['bindTemplate']['if']('showButtons','ck-comment__input-actions--active')]},'children':[this['submitButtonView'],this['cancelButtonView']]}]}),this['keystrokes']['set']('Esc',(_0x36bef0,_0x4c54fd)=>{this['cancelButtonView']['fire']('execute'),_0x4c54fd();}),this['on']('submit',(_0x3142dc,_0xcb6aba)=>{_0xcb6aba['length']>0xfde8?(alert(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'},[_0xcb6aba['length'],0xfde8])),_0x3142dc['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render']();const {editor:_0x53cabf,element:_0x284de3}=this;this['keystrokes']['listenTo'](_0x284de3),this['focusTracker']['add'](_0x284de3),this['_editorCreationPromise']=_0x53cabf['create']()['then'](()=>{_0x284de3['insertBefore'](_0x53cabf['ui']['element'],_0x284de3['firstChild']),_0x53cabf['model']['document']['on']('change',()=>this['value']=_0x53cabf['getData']()),_0x53cabf['bind']('placeholder')['to'](this),this['_initializeFocusCycling'](_0x53cabf),this['fire']('editorReady');});}['focus'](){this['editor']['focus']();}async['destroy'](){this['_isDestroyed']||(this['_isDestroyed']=!0x0,this['isRendered']&&(await this['_editorCreationPromise'],await this['editor']['destroy']()),await super['destroy']());}['_createSubmitButton'](){const _0x3bd5ce=new mt(this['locale']),{t:t}=this['locale'];return _0x3bd5ce['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x3bd5ce['label']=t('Submit'),_0x3bd5ce['icon']=Yt['check'],_0x3bd5ce['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x3bd5ce['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x352ed9,_0x32c5cb)=>!_0x32c5cb&&!!_0x352ed9['trim']()),_0x3bd5ce;}['_createCancelButton'](){const _0x380c24=new mt(this['locale']),{t:t}=this['locale'];return _0x380c24['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x380c24['label']=t('Cancel'),_0x380c24['icon']=Yt['cancel'],_0x380c24['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x380c24;}['_initializeFocusCycling'](_0x120c21){const _0x5dab29=this['focusTracker'],_0x26d2ef=new St();[_0x120c21['ui']['view'],this['submitButtonView'],this['cancelButtonView']]['forEach'](_0x491d7b=>{_0x26d2ef['add'](_0x491d7b),_0x5dab29['add'](_0x491d7b['element']);});const _0x4b83ce=new Gt({'focusables':_0x26d2ef,'focusTracker':_0x5dab29});this['keystrokes']['set']('tab',(_0x360c28,_0x38da1f)=>{_0x4b83ce['focusNext'](),_0x38da1f();},{'priority':'low'}),this['keystrokes']['set']('shift\x20+\x20tab',(_0x25dbc4,_0x35b112)=>{_0x4b83ce['focusPrevious'](),_0x35b112();},{'priority':'low'});}}
23
+ import{View as ht,ViewCollection as Bt,FocusCycler as St,ButtonView as mt}from'ckeditor5/src/ui';import{FocusTracker as _0x2949e4,KeystrokeHandler as pt}from'ckeditor5/src/utils';import{icons as Gt}from'ckeditor5/src/core';import qt from'../commenteditor/commenteditor';export default class Tt extends ht{constructor(_0x374a64,_0x3bf09a={}){super(_0x374a64);const {t:t}=_0x374a64;this['editor']=new qt(_0x3bf09a),this['keystrokes']=new pt(),this['focusTracker']=new _0x2949e4(),this['set']('value',_0x3bf09a['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',t('Reply...')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-comment__input-actions',this['bindTemplate']['if']('showButtons','ck-comment__input-actions--active')]},'children':[this['submitButtonView'],this['cancelButtonView']]}]}),this['keystrokes']['set']('Esc',(_0xdffdb6,_0x2e24ba)=>{this['cancelButtonView']['fire']('execute'),_0x2e24ba();}),this['on']('submit',(_0x36c186,_0x31b09d)=>{_0x31b09d['length']>0xfde8?(alert(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'},[_0x31b09d['length'],0xfde8])),_0x36c186['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render']();const {editor:_0x26baba,element:_0x46854d}=this;this['keystrokes']['listenTo'](_0x46854d),this['focusTracker']['add'](_0x46854d),this['_editorCreationPromise']=_0x26baba['create']()['then'](()=>{_0x46854d['insertBefore'](_0x26baba['ui']['element'],_0x46854d['firstChild']),_0x26baba['model']['document']['on']('change',()=>this['value']=_0x26baba['getData']()),_0x26baba['bind']('placeholder')['to'](this),this['_initializeFocusCycling'](_0x26baba),this['fire']('editorReady');});}['focus'](){this['editor']['focus']();}async['destroy'](){this['_isDestroyed']||(this['_isDestroyed']=!0x0,this['isRendered']&&(await this['_editorCreationPromise'],await this['editor']['destroy']()),await super['destroy']());}['_createSubmitButton'](){const _0x297ab9=new mt(this['locale']),{t:t}=this['locale'];return _0x297ab9['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x297ab9['label']=t('Submit'),_0x297ab9['icon']=Gt['check'],_0x297ab9['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x297ab9['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x54e110,_0x2e044d)=>!_0x2e044d&&!!_0x54e110['trim']()),_0x297ab9;}['_createCancelButton'](){const _0x3ab44f=new mt(this['locale']),{t:t}=this['locale'];return _0x3ab44f['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x3ab44f['label']=t('Cancel'),_0x3ab44f['icon']=Gt['cancel'],_0x3ab44f['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x3ab44f;}['_initializeFocusCycling'](_0x18fa72){const _0x48aeff=this['focusTracker'],_0x1319a3=new Bt();[_0x18fa72['ui']['view'],this['submitButtonView'],this['cancelButtonView']]['forEach'](_0x5b853e=>{_0x1319a3['add'](_0x5b853e),_0x48aeff['add'](_0x5b853e['element']);});const _0x423243=new St({'focusables':_0x1319a3,'focusTracker':_0x48aeff});this['keystrokes']['set']('tab',(_0x1016fb,_0x17f9b8)=>{_0x423243['focusNext'](),_0x17f9b8();},{'priority':'low'}),this['keystrokes']['set']('shift\x20+\x20tab',(_0x298536,_0x1aff3b)=>{_0x423243['focusPrevious'](),_0x1aff3b();},{'priority':'low'});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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 _0x3b52=['comments','_handleRemoveCommentModel','refreshVisibleViews','_config','isEditMode','commentViews','createCollection','_handleNewCommentModel','hasDirtyComment','change:isActive','destroy','expand','render','_rearrangeExpand','_collapsedCommentsView','collapse','stopListening','isActive','get','ck-thread__comments','_updateHasDirtyComment','_model','maxCommentCharsWhenCollapsed','delegate','setTemplate','_shouldCollapse','from','equal','count','maxCommentsWhenCollapsed','maxThreadTotalWeight','_rearrangeCollapse','length','add','visibleViews','change:hasDirtyComment','some','locale','remove','set','listenTo','updateComment','focus','editorConfig'];(function(_0x5a668c,_0x3b525f){const _0x57acfc=function(_0x85fdd){while(--_0x85fdd){_0x5a668c['push'](_0x5a668c['shift']());}};_0x57acfc(++_0x3b525f);}(_0x3b52,0x1e0));const _0x57ac=function(_0x5a668c,_0x3b525f){_0x5a668c=_0x5a668c-0x0;let _0x57acfc=_0x3b52[_0x5a668c];return _0x57acfc;};import{View as _0x33b83e}from'ckeditor5/src/ui';import{diff as _0xb6db4,Collection as _0x465c5c}from'ckeditor5/src/utils';import _0x5b8495 from'./collapsedcommentsview';export default class Tt extends _0x33b83e{constructor(_0x21289d,_0x4b4e75,_0xa2279e){super(_0x21289d),this[_0x57ac('0x2b')](_0x57ac('0xc'),!0x1),this[_0x57ac('0x2b')]('length',_0x4b4e75[_0x57ac('0x4')]['length']),this[_0x57ac('0x2b')]('isActive',!0x1),this[_0x57ac('0x19')]=_0x4b4e75,this[_0x57ac('0x7')]=_0xa2279e,this['commentViews']=this['createCollection'](),this[_0x57ac('0x26')]=this[_0x57ac('0xa')](),this['_collapsedCommentsView']=new _0x5b8495(_0x21289d),this[_0x57ac('0x12')]['bind']('count')['to'](this,_0x57ac('0x24'),_0x142935=>_0x142935-this[_0x57ac('0x7')][_0x57ac('0x21')]);for(const _0x503c33 of _0x4b4e75[_0x57ac('0x4')])this[_0x57ac('0xb')](_0x503c33);this[_0x57ac('0x0')](_0x4b4e75['comments'],_0x57ac('0x25'),(_0x53cca0,_0x49aa8b)=>{this[_0x57ac('0x24')]++,this[_0x57ac('0xb')](_0x49aa8b),this[_0x57ac('0x6')]();}),this[_0x57ac('0x0')](_0x4b4e75[_0x57ac('0x4')],_0x57ac('0x2a'),(_0xf9a4cd,_0x3cce9e)=>{this[_0x57ac('0x24')]--,this[_0x57ac('0x5')](_0x3cce9e),this[_0x57ac('0x6')]();}),this[_0x57ac('0x0')](_0x4b4e75,'commentUpdated',()=>this[_0x57ac('0x6')]()),this['on'](_0x57ac('0xd'),()=>this[_0x57ac('0x6')]()),this['on'](_0x57ac('0x27'),()=>this[_0x57ac('0x6')]()),this[_0x57ac('0x1c')]({'tag':'ul','attributes':{'class':[_0x57ac('0x17')]},'children':this[_0x57ac('0x26')]});}get[_0x57ac('0x1d')](){return this['_model']['weight']>this['_config'][_0x57ac('0x22')]&&!this[_0x57ac('0x15')]&&!this[_0x57ac('0xc')];}[_0x57ac('0x10')](){super[_0x57ac('0x10')](),this['refreshVisibleViews']();}[_0x57ac('0x2')](){this['element'][_0x57ac('0x2')]();}[_0x57ac('0xe')](){this[_0x57ac('0x12')][_0x57ac('0xe')]();for(const _0x25a3ab of this[_0x57ac('0x9')])_0x25a3ab[_0x57ac('0xe')]();super[_0x57ac('0xe')]();}['refreshVisibleViews'](){this[_0x57ac('0x1d')]?this[_0x57ac('0x23')]():this[_0x57ac('0x11')]();}[_0x57ac('0xb')](_0x594ae9){const _0x57c9a9=new this[(_0x57ac('0x7'))]['CommentView'](this[_0x57ac('0x29')],_0x594ae9,{'maxCommentCharsWhenCollapsed':this['_config'][_0x57ac('0x1a')],'formatDateTime':this[_0x57ac('0x7')]['formatDateTime'],'editorConfig':this[_0x57ac('0x7')][_0x57ac('0x3')]});_0x57c9a9['viewUid']=_0x594ae9['id'],_0x57c9a9[_0x57ac('0x1b')]('removeComment')['to'](this),_0x57c9a9['delegate'](_0x57ac('0x1'))['to'](this),this[_0x57ac('0x0')](_0x57c9a9,'change:isEditMode',()=>this[_0x57ac('0x18')]()),this[_0x57ac('0x9')]['add'](_0x57c9a9);}['_handleRemoveCommentModel'](_0x12409f){const _0x192e94=this['commentViews'][_0x57ac('0x2a')](_0x12409f['id']);this[_0x57ac('0x14')](_0x192e94),_0x192e94['isEditMode']&&this['_updateHasDirtyComment'](),_0x192e94[_0x57ac('0xe')]();}['_updateHasDirtyComment'](){this[_0x57ac('0xc')]=Array['from'](this['commentViews'])[_0x57ac('0x28')](_0x428a0b=>_0x428a0b[_0x57ac('0x8')]);}['_rearrangeCollapse'](){const _0x20489c=function(_0x508f66){const _0x59598c=new _0x465c5c();for(const _0x4ecd3f of _0x508f66)_0x59598c[_0x57ac('0x25')](_0x4ecd3f);return _0x59598c;}(this[_0x57ac('0x9')]),_0x48e313=this[_0x57ac('0x12')][_0x57ac('0x20')];for(let _0x11a41b=0x1;_0x11a41b<=_0x48e313;_0x11a41b++)_0x20489c['remove'](0x1);for(const _0x528ad7 of _0x20489c)_0x528ad7[_0x57ac('0x13')]();_0x48e313>0x0&&_0x20489c[_0x57ac('0x25')](this[_0x57ac('0x12')],0x1),Ut(_0xb6db4(Array[_0x57ac('0x1e')](this[_0x57ac('0x26')]),Array['from'](_0x20489c)),this[_0x57ac('0x26')],_0x20489c);}[_0x57ac('0x11')](){Ut(_0xb6db4(Array[_0x57ac('0x1e')](this[_0x57ac('0x26')]),Array['from'](this[_0x57ac('0x9')])),this[_0x57ac('0x26')],this[_0x57ac('0x9')]);for(const _0x4f2049 of this[_0x57ac('0x26')])_0x4f2049[_0x57ac('0xf')]();}}function Ut(_0x190901,_0x5bd70b,_0x2d5205){let _0xb5d5d=0x0;for(const _0x15da43 of _0x190901)switch(_0x15da43){case'insert':_0x5bd70b[_0x57ac('0x25')](_0x2d5205[_0x57ac('0x16')](_0xb5d5d),_0xb5d5d),_0xb5d5d++;break;case'delete':_0x5bd70b[_0x57ac('0x2a')](_0xb5d5d);break;case _0x57ac('0x1f'):_0xb5d5d++;}}
23
+ const _0x3668=['collapse','editorConfig','weight','remove','_rearrangeCollapse','_shouldCollapse','from','bind','destroy','createCollection','visibleViews','formatDateTime','commentViews','_handleRemoveCommentModel','refreshVisibleViews','_updateHasDirtyComment','comments','removeComment','count','render','delete','hasDirtyComment','change:hasDirtyComment','isActive','_config','viewUid','_model','change:isEditMode','CommentView','expand','_collapsedCommentsView','maxThreadTotalWeight','set','maxCommentCharsWhenCollapsed','isEditMode','_rearrangeExpand','get','ck-thread__comments','locale','delegate','updateComment','commentUpdated','setTemplate','element','maxCommentsWhenCollapsed','add','listenTo','_handleNewCommentModel','stopListening','insert','length'];(function(_0x225b3e,_0x3668d2){const _0x2150fe=function(_0x3034c8){while(--_0x3034c8){_0x225b3e['push'](_0x225b3e['shift']());}};_0x2150fe(++_0x3668d2);}(_0x3668,0xf4));const _0x2150=function(_0x225b3e,_0x3668d2){_0x225b3e=_0x225b3e-0x0;let _0x2150fe=_0x3668[_0x225b3e];return _0x2150fe;};import{View as _0x5bd7ed}from'ckeditor5/src/ui';import{diff as _0x27a70e,Collection as _0x19170b}from'ckeditor5/src/utils';import _0x3319dd from'./collapsedcommentsview';export default class ct extends _0x5bd7ed{constructor(_0x5673f2,_0x34e2e9,_0x56410d){super(_0x5673f2),this[_0x2150('0x2b')](_0x2150('0x20'),!0x1),this[_0x2150('0x2b')]('length',_0x34e2e9[_0x2150('0x1b')][_0x2150('0xa')]),this[_0x2150('0x2b')](_0x2150('0x22'),!0x1),this[_0x2150('0x25')]=_0x34e2e9,this[_0x2150('0x23')]=_0x56410d,this['commentViews']=this[_0x2150('0x14')](),this[_0x2150('0x15')]=this[_0x2150('0x14')](),this[_0x2150('0x29')]=new _0x3319dd(_0x5673f2),this[_0x2150('0x29')][_0x2150('0x12')](_0x2150('0x1d'))['to'](this,_0x2150('0xa'),_0x51f9fb=>_0x51f9fb-this['_config'][_0x2150('0x4')]);for(const _0x7a7f6e of _0x34e2e9[_0x2150('0x1b')])this[_0x2150('0x7')](_0x7a7f6e);this[_0x2150('0x6')](_0x34e2e9['comments'],_0x2150('0x5'),(_0x49166c,_0x1c7b3a)=>{this[_0x2150('0xa')]++,this['_handleNewCommentModel'](_0x1c7b3a),this[_0x2150('0x19')]();}),this[_0x2150('0x6')](_0x34e2e9[_0x2150('0x1b')],_0x2150('0xe'),(_0x52092f,_0x4e1df4)=>{this[_0x2150('0xa')]--,this[_0x2150('0x18')](_0x4e1df4),this['refreshVisibleViews']();}),this['listenTo'](_0x34e2e9,_0x2150('0x1'),()=>this[_0x2150('0x19')]()),this['on']('change:isActive',()=>this['refreshVisibleViews']()),this['on'](_0x2150('0x21'),()=>this[_0x2150('0x19')]()),this[_0x2150('0x2')]({'tag':'ul','attributes':{'class':[_0x2150('0x30')]},'children':this[_0x2150('0x15')]});}get[_0x2150('0x10')](){return this[_0x2150('0x25')][_0x2150('0xd')]>this[_0x2150('0x23')][_0x2150('0x2a')]&&!this[_0x2150('0x22')]&&!this[_0x2150('0x20')];}[_0x2150('0x1e')](){super[_0x2150('0x1e')](),this[_0x2150('0x19')]();}['focus'](){this[_0x2150('0x3')]['focus']();}['destroy'](){this['_collapsedCommentsView'][_0x2150('0x13')]();for(const _0x4a1a60 of this[_0x2150('0x17')])_0x4a1a60[_0x2150('0x13')]();super['destroy']();}[_0x2150('0x19')](){this['_shouldCollapse']?this[_0x2150('0xf')]():this[_0x2150('0x2e')]();}[_0x2150('0x7')](_0x2dc06c){const _0x26d130=new this[(_0x2150('0x23'))][(_0x2150('0x27'))](this[_0x2150('0x31')],_0x2dc06c,{'maxCommentCharsWhenCollapsed':this[_0x2150('0x23')][_0x2150('0x2c')],'formatDateTime':this['_config'][_0x2150('0x16')],'editorConfig':this[_0x2150('0x23')][_0x2150('0xc')]});_0x26d130[_0x2150('0x24')]=_0x2dc06c['id'],_0x26d130['delegate'](_0x2150('0x1c'))['to'](this),_0x26d130[_0x2150('0x32')](_0x2150('0x0'))['to'](this),this[_0x2150('0x6')](_0x26d130,_0x2150('0x26'),()=>this[_0x2150('0x1a')]()),this[_0x2150('0x17')]['add'](_0x26d130);}['_handleRemoveCommentModel'](_0x1c8c73){const _0x24f7fb=this['commentViews'][_0x2150('0xe')](_0x1c8c73['id']);this[_0x2150('0x8')](_0x24f7fb),_0x24f7fb[_0x2150('0x2d')]&&this[_0x2150('0x1a')](),_0x24f7fb['destroy']();}[_0x2150('0x1a')](){this[_0x2150('0x20')]=Array['from'](this[_0x2150('0x17')])['some'](_0x4d879e=>_0x4d879e[_0x2150('0x2d')]);}['_rearrangeCollapse'](){const _0x2a9272=function(_0x3c8ed3){const _0x31d901=new _0x19170b();for(const _0x11b52f of _0x3c8ed3)_0x31d901['add'](_0x11b52f);return _0x31d901;}(this[_0x2150('0x17')]),_0x3a9b8e=this[_0x2150('0x29')][_0x2150('0x1d')];for(let _0x3cc20c=0x1;_0x3cc20c<=_0x3a9b8e;_0x3cc20c++)_0x2a9272[_0x2150('0xe')](0x1);for(const _0x4dad2d of _0x2a9272)_0x4dad2d[_0x2150('0xb')]();_0x3a9b8e>0x0&&_0x2a9272[_0x2150('0x5')](this[_0x2150('0x29')],0x1),Ut(_0x27a70e(Array[_0x2150('0x11')](this['visibleViews']),Array[_0x2150('0x11')](_0x2a9272)),this[_0x2150('0x15')],_0x2a9272);}['_rearrangeExpand'](){Ut(_0x27a70e(Array[_0x2150('0x11')](this[_0x2150('0x15')]),Array[_0x2150('0x11')](this[_0x2150('0x17')])),this['visibleViews'],this['commentViews']);for(const _0x3eae68 of this[_0x2150('0x15')])_0x3eae68[_0x2150('0x28')]();}}function Ut(_0x3ab9ad,_0x377459,_0x5af95d){let _0x497c2f=0x0;for(const _0x551ef6 of _0x3ab9ad)switch(_0x551ef6){case _0x2150('0x9'):_0x377459[_0x2150('0x5')](_0x5af95d[_0x2150('0x2f')](_0x497c2f),_0x497c2f),_0x497c2f++;break;case _0x2150('0x1f'):_0x377459[_0x2150('0xe')](_0x497c2f);break;case'equal':_0x497c2f++;}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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 _0x599b=['commentInputView','showInput','bindTemplate','userView','isFocused','ck-thread__user','setTemplate','destroy','ck-comment__input-container','div','extendTemplate','ck-comment__input-container--active','bind','value','focusTracker'];(function(_0x280399,_0x599b8b){var _0x1073d5=function(_0x533816){while(--_0x533816){_0x280399['push'](_0x280399['shift']());}};_0x1073d5(++_0x599b8b);}(_0x599b,0x10c));var _0x1073=function(_0x280399,_0x599b8b){_0x280399=_0x280399-0x0;var _0x1073d5=_0x599b[_0x280399];return _0x1073d5;};import{View as _0x31854f}from'ckeditor5/src/ui';import _0x1d74a7 from'./commentinputview';import _0xdac1f9 from'@ckeditor/ckeditor5-collaboration-core/src/users/view/userview';export default class Rt extends _0x31854f{constructor(_0xd25c71,_0x5eba98,_0x3024df){super(_0xd25c71),this[_0x1073('0x2')]=new _0x1d74a7(_0xd25c71,_0x3024df),this['commentInputView'][_0x1073('0xe')]('showButtons')['to'](this[_0x1073('0x2')][_0x1073('0x1')],_0x1073('0x6'),this[_0x1073('0x2')],_0x1073('0x0'),(_0x2c883d,_0xcfdc5c)=>_0x2c883d||!!_0xcfdc5c),this['set']('showInput',!0x1),this[_0x1073('0x5')]=new _0xdac1f9(_0xd25c71,_0x5eba98),this[_0x1073('0x5')]['extendTemplate']({'attributes':{'class':_0x1073('0x7')}}),this[_0x1073('0x2')][_0x1073('0xc')]({'attributes':{'class':'ck-thread__input'}}),this[_0x1073('0x8')]({'tag':_0x1073('0xb'),'attributes':{'class':[_0x1073('0xa'),this[_0x1073('0x4')]['if'](_0x1073('0x3'),_0x1073('0xd'))]},'children':[this[_0x1073('0x5')],this[_0x1073('0x2')]]});}['destroy'](){return this['commentInputView'][_0x1073('0x9')]()['then'](()=>super[_0x1073('0x9')]());}}
23
+ var _0x5d2d=['then','showInput','ck-comment__input-container','setTemplate','commentInputView','div','bindTemplate','userView','bind','ck-comment__input-container--active','extendTemplate','set','showButtons','destroy','ck-thread__user'];(function(_0xc6d9aa,_0x5d2d6e){var _0x330cc7=function(_0x35fa3e){while(--_0x35fa3e){_0xc6d9aa['push'](_0xc6d9aa['shift']());}};_0x330cc7(++_0x5d2d6e);}(_0x5d2d,0x98));var _0x330c=function(_0xc6d9aa,_0x5d2d6e){_0xc6d9aa=_0xc6d9aa-0x0;var _0x330cc7=_0x5d2d[_0xc6d9aa];return _0x330cc7;};import{View as _0x5a00ca}from'ckeditor5/src/ui';import _0x1ac974 from'./commentinputview';import{UserView as _0x3d7bc8}from'ckeditor5-collaboration/src/collaboration-core';export default class dt extends _0x5a00ca{constructor(_0x47d8fd,_0x530ddc,_0x4404c0){super(_0x47d8fd),this[_0x330c('0x2')]=new _0x1ac974(_0x47d8fd,_0x4404c0),this[_0x330c('0x2')][_0x330c('0x6')](_0x330c('0xa'))['to'](this[_0x330c('0x2')]['focusTracker'],'isFocused',this[_0x330c('0x2')],'value',(_0x3a8e16,_0x56cdd9)=>_0x3a8e16||!!_0x56cdd9),this[_0x330c('0x9')](_0x330c('0xe'),!0x1),this[_0x330c('0x5')]=new _0x3d7bc8(_0x47d8fd,_0x530ddc),this[_0x330c('0x5')][_0x330c('0x8')]({'attributes':{'class':_0x330c('0xc')}}),this[_0x330c('0x2')][_0x330c('0x8')]({'attributes':{'class':'ck-thread__input'}}),this[_0x330c('0x1')]({'tag':_0x330c('0x3'),'attributes':{'class':[_0x330c('0x0'),this[_0x330c('0x4')]['if'](_0x330c('0xe'),_0x330c('0x7'))]},'children':[this[_0x330c('0x5')],this[_0x330c('0x2')]]});}[_0x330c('0xb')](){return this[_0x330c('0x2')][_0x330c('0xb')]()[_0x330c('0xd')](()=>super[_0x330c('0xb')]());}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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
- import It from'./basecommentthreadview';import{mix as _0x57466c}from'ckeditor5/src/utils';import Wt from'./confirmmixin';export default class et extends It{constructor(_0x586870,_0x1c1066,_0x32322c,_0x50191e){super(_0x586870,_0x1c1066,_0x32322c,_0x50191e),this['set']('actionIndicator',null),this['containerElement']=null,this['locale']=_0x586870,this['setTemplate'](this['_getTemplate']()),this['on']('change:isActive',(_0x2bd3e3,_0x5cecd9,_0x226952)=>{_0x226952||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x32fbae,_0x397a7f,_0x16a3f6)=>{_0x16a3f6&&this['_cancelAllConfirms']();}),this['length']>0x0?this['_bindFirstCommentView']():this['listenTo'](this['commentsListView']['commentViews'],'add',_0x246d68=>{this['_bindFirstCommentView'](),_0x246d68['off']();});}['_getTemplate'](){const _0x21afc3=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck-thread',_0x21afc3['if']('isActive','ck-thread--active'),_0x21afc3['if']('isConfirm','ck-thread--remove-confirmation'),_0x21afc3['to']('actionIndicator',_0x42ccc1=>_0x42ccc1?'ck-thread--'+_0x42ccc1:'')],'data-thread-id':this['_model']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':'ck-thread__container'},'children':[this['commentsListView'],this['commentThreadInputView']]}]};}['render'](){super['render'](),this['containerElement']=this['element']['querySelector']('.ck-thread__container');}['_cancelAllConfirms'](){this['cancelConfirm']();for(const _0xe5e879 of this['commentsListView']['commentViews'])_0xe5e879['cancelConfirm']();}['_bindFirstCommentView'](){const {t:t}=this['locale'],_0x294f4b=this['commentsListView']['commentViews']['get'](0x0);this['bind']('actionIndicator')['to'](_0x294f4b,'actionIndicator',_0x117f5c=>'remove'===_0x117f5c?'remove':null),_0x294f4b['placeholder']=t('Write\x20a\x20comment...'),_0x294f4b['removeButton']['on']('execute',_0x26e20e=>{_0x26e20e['stop'](),this['showConfirm'](t('Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'});}}_0x57466c(et,Wt);
23
+ import{mix as _0x23b50a}from'ckeditor5/src/utils';import{ConfirmMixin as Wt}from'ckeditor5-collaboration/src/collaboration-core';import Rt from'./basecommentthreadview';export default class nt extends Rt{constructor(_0x5cfe3b,_0x33e49e,_0x47d701,_0x4e76e2){super(_0x5cfe3b,_0x33e49e,_0x47d701,_0x4e76e2),this['set']('actionIndicator',null),this['containerElement']=null,this['locale']=_0x5cfe3b,this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x442347,_0x5d51e1,_0x2f112e)=>{_0x2f112e||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x524558,_0x466f88,_0x57e8ac)=>{_0x57e8ac&&this['_cancelAllConfirms']();}),this['length']>0x0?this['_bindFirstCommentView']():this['listenTo'](this['commentsListView']['commentViews'],'add',_0x532627=>{this['_bindFirstCommentView'](),_0x532627['off']();});}['getTemplate'](){const _0x2f83dd=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck-thread',_0x2f83dd['if']('isActive','ck-thread--active'),_0x2f83dd['if']('isConfirm','ck-thread--remove-confirmation'),_0x2f83dd['to']('actionIndicator',_0x1e563f=>_0x1e563f?'ck-thread--'+_0x1e563f:'')],'data-thread-id':this['_model']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':'ck-thread__container'},'children':[this['commentsListView'],this['commentThreadInputView']]}]};}['render'](){super['render'](),this['containerElement']=this['element']['querySelector']('.ck-thread__container');}['_cancelAllConfirms'](){this['cancelConfirm']();for(const _0x1bf5e7 of this['commentsListView']['commentViews'])_0x1bf5e7['cancelConfirm']();}['_bindFirstCommentView'](){const {t:t}=this['locale'],_0x5df131=this['commentsListView']['commentViews']['get'](0x0);this['bind']('actionIndicator')['to'](_0x5df131,'actionIndicator',_0x1c09a8=>'remove'===_0x1c09a8?'remove':null),_0x5df131['placeholder']=t('Write\x20a\x20comment...'),_0x5df131['removeButton']['on']('execute',_0x34b031=>{_0x34b031['stop'](),this['showConfirm'](t('Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'});}}_0x23b50a(nt,Wt);
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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
- import{mix as _0x27d280}from'ckeditor5/src/utils';import{ButtonView as mt}from'ckeditor5/src/ui';import Vt from'./basecommentview';import Jt from'@ckeditor/ckeditor5-collaboration-core/src/users/view/userview';import{icons as Yt}from'ckeditor5/src/core';import Kt from'../../../../theme/icons/remove-comment.svg';import Wt from'./confirmmixin';export default class nt extends Vt{constructor(_0x561d2a,_0x452fd3,_0x1e7662){super(_0x561d2a,_0x452fd3,_0x1e7662);const {t:t}=this['locale'];this['set']('actionIndicator',null),this['set']('placeholder',t('Reply...')),this['set']('createdAt',null),this['bind']('createdAt')['to'](_0x452fd3),this['editButton']=this['_createEditButton'](),this['removeButton']=this['_createRemoveButton'](),this['userView']=new Jt(_0x561d2a,_0x452fd3['author']),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user']}}),this['listenTo'](_0x452fd3,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['_getTemplate']());}['_getTemplate'](){const _0x29fd99=this['bindTemplate'];return{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x29fd99['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x29fd99['if']('isEditMode','ck-comment--edit'),_0x29fd99['to']('actionIndicator',_0x353fed=>_0x353fed?'ck-comment--'+_0x353fed:'')],'data-author-id':this['_model']['author']['id'],'data-comment-id':this['_model']['id']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-comment__main','ck-annotation__main']},'children':[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x29fd99['to']('createdAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x29fd99['to']('createdAt',_0x5ba23c=>this['_config']['formatDateTime'](_0x5ba23c))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x29fd99['if']('isEditMode','ck-comment__actions--hidden'),_0x29fd99['if']('isEditMode','ck-annotation__actions--hidden')]},'children':[this['editButton'],this['removeButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']},'children':this['visibleView']}]}]}]};}['_createEditButton'](){const {t:t}=this['locale'],_0x59f91b=new mt(this['locale']);return _0x59f91b['label']=t('Edit'),_0x59f91b['icon']=Yt['pencil'],_0x59f91b['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x59f91b['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x3116dd=>!_0x3116dd),_0x59f91b['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x59f91b['on']('execute',()=>this['switchToEditMode']()),_0x59f91b;}['_createRemoveButton'](){const {t:t}=this['locale'],_0x4f3fd6=new mt(this['locale']);return _0x4f3fd6['label']=t('Remove'),_0x4f3fd6['icon']=Kt,_0x4f3fd6['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x4f3fd6['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x29b31c=>!_0x29b31c),_0x4f3fd6['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x4f3fd6['on']('execute',()=>{this['showConfirm'](t('Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x4f3fd6;}['_attachActions'](_0x466c0e,_0x47b4ac){this['listenTo'](_0x466c0e,'mouseenter',()=>this['actionIndicator']=_0x47b4ac),this['listenTo'](_0x466c0e,'focus',()=>this['actionIndicator']=_0x47b4ac),this['listenTo'](_0x466c0e,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x466c0e,'blur',()=>this['actionIndicator']=null);}['_createCommentInputView'](){const _0x5362ab=super['_createCommentInputView']();return _0x5362ab['bind']('placeholder')['to'](this),_0x5362ab;}['render'](){super['render'](),this['_attachActions'](this['editButton']['element'],'edit'),this['_attachActions'](this['removeButton']['element'],'remove');}}_0x27d280(nt,Wt);
23
+ import{mix as _0x191255}from'ckeditor5/src/utils';import{ButtonView as mt}from'ckeditor5/src/ui';import{icons as Gt}from'ckeditor5/src/core';import{UserView as It,ConfirmMixin as Wt}from'ckeditor5-collaboration/src/collaboration-core';import Vt from'./basecommentview';import Jt from'../../../../theme/icons/remove-comment.svg';export default class ot extends Vt{constructor(_0x4e6cee,_0x189c42,_0x4f426e){super(_0x4e6cee,_0x189c42,_0x4f426e);const {t:t}=this['locale'];this['set']('actionIndicator',null),this['set']('placeholder',t('Reply...')),this['set']('createdAt',null),this['bind']('createdAt')['to'](_0x189c42),this['editButton']=this['_createEditButton'](),this['removeButton']=this['_createRemoveButton'](),this['userView']=new It(_0x4e6cee,_0x189c42['author']),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user']}}),this['listenTo'](_0x189c42,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x1a0af4=this['bindTemplate'];return{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x1a0af4['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x1a0af4['if']('isEditMode','ck-comment--edit'),_0x1a0af4['to']('actionIndicator',_0x5b9824=>_0x5b9824?'ck-comment--'+_0x5b9824:'')],'data-author-id':this['_model']['author']['id'],'data-comment-id':this['_model']['id']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-comment__main','ck-annotation__main']},'children':[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x1a0af4['to']('createdAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1a0af4['to']('createdAt',_0x51fed3=>this['_config']['formatDateTime'](_0x51fed3))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x1a0af4['if']('isEditMode','ck-comment__actions--hidden'),_0x1a0af4['if']('isEditMode','ck-annotation__actions--hidden')]},'children':[this['editButton'],this['removeButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']},'children':this['visibleView']}]}]}]};}['_createEditButton'](){const {t:t}=this['locale'],_0x1e1916=new mt(this['locale']);return _0x1e1916['label']=t('Edit'),_0x1e1916['icon']=Gt['pencil'],_0x1e1916['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x1e1916['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x15f2b1=>!_0x15f2b1),_0x1e1916['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x1e1916['on']('execute',()=>this['switchToEditMode']()),_0x1e1916;}['_createRemoveButton'](){const {t:t}=this['locale'],_0xaeb519=new mt(this['locale']);return _0xaeb519['label']=t('Remove'),_0xaeb519['icon']=Jt,_0xaeb519['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0xaeb519['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x117c75=>!_0x117c75),_0xaeb519['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0xaeb519['on']('execute',()=>{this['showConfirm'](t('Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0xaeb519;}['_attachActions'](_0x4bf817,_0x4e6825){this['listenTo'](_0x4bf817,'mouseenter',()=>this['actionIndicator']=_0x4e6825),this['listenTo'](_0x4bf817,'focus',()=>this['actionIndicator']=_0x4e6825),this['listenTo'](_0x4bf817,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x4bf817,'blur',()=>this['actionIndicator']=null);}['_createCommentInputView'](){const _0xc0a757=super['_createCommentInputView']();return _0xc0a757['bind']('placeholder')['to'](this),_0xc0a757;}['render'](){super['render'](),this['_attachActions'](this['editButton']['element'],'edit'),this['_attachActions'](this['removeButton']['element'],'remove');}}_0x191255(ot,Wt);
package/src/comments.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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 _0x16da=['pluginName','Comments','requires'];(function(_0x22bad5,_0x16da83){var _0x49e1fa=function(_0x38714e){while(--_0x38714e){_0x22bad5['push'](_0x22bad5['shift']());}};_0x49e1fa(++_0x16da83);}(_0x16da,0xf6));var _0x49e1=function(_0x22bad5,_0x16da83){_0x22bad5=_0x22bad5-0x0;var _0x49e1fa=_0x16da[_0x22bad5];return _0x49e1fa;};import{Plugin as _0x45f1dd}from'ckeditor5/src/core';import _0x4d6658 from'./comments/commentsrepository';import _0x3f7222 from'./comments/commentsediting';import _0x4a9ef6 from'./comments/commentsui';import _0x8f22dd from'./commentsonly';import _0x5b30dc from'./annotations/widesidebar';import _0x4a2aff from'./annotations/narrowsidebar';import _0x1c87df from'./annotations/inlineannotations';export default class c extends _0x45f1dd{static get[_0x49e1('0x2')](){return[_0x4d6658,_0x3f7222,_0x4a9ef6,_0x8f22dd,_0x5b30dc,_0x4a2aff,_0x1c87df];}static get[_0x49e1('0x0')](){return _0x49e1('0x1');}}
23
+ var _0x47cb=['Comments','pluginName'];(function(_0xe9bf64,_0x47cb46){var _0xe646fc=function(_0x51dc50){while(--_0x51dc50){_0xe9bf64['push'](_0xe9bf64['shift']());}};_0xe646fc(++_0x47cb46);}(_0x47cb,0xa1));var _0xe646=function(_0xe9bf64,_0x47cb46){_0xe9bf64=_0xe9bf64-0x0;var _0xe646fc=_0x47cb[_0xe9bf64];return _0xe646fc;};import{Plugin as _0xf52208}from'ckeditor5/src/core';import _0x5cb3cc from'./comments/commentsrepository';import _0x47ab0a from'./comments/commentsediting';import _0x4d6834 from'./comments/commentsui';import _0xd64a0d from'./commentsonly';import _0x4aae4d from'./annotations/widesidebar';import _0x348547 from'./annotations/narrowsidebar';import _0x23f0c5 from'./annotations/inlineannotations';export default class c extends _0xf52208{static get['requires'](){return[_0x5cb3cc,_0x47ab0a,_0x4d6834,_0xd64a0d,_0x4aae4d,_0x348547,_0x23f0c5];}static get[_0xe646('0x0')](){return _0xe646('0x1');}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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 _0x2a5c=['set','listenTo','_enableCommentsOnlyMode','view','clipboardInput','stop','cut','stopListening','forceDisabled','isEnabled','_disableCommentsOnlyMode','pluginName','document','has','highest','change:isEnabled','commentsOnlyMode','commentsOnly','addCommentThread','delete','commands','afterInit','get','DragDrop','editor','affectsData','plugins','editing','config'];(function(_0x1a6fb3,_0x2a5ce1){const _0x2b03d0=function(_0x1221af){while(--_0x1221af){_0x1a6fb3['push'](_0x1a6fb3['shift']());}};_0x2b03d0(++_0x2a5ce1);}(_0x2a5c,0xd3));const _0x2b03=function(_0x1a6fb3,_0x2a5ce1){_0x1a6fb3=_0x1a6fb3-0x0;let _0x2b03d0=_0x2a5c[_0x1a6fb3];return _0x2b03d0;};import{Plugin as _0x18ecf5}from'ckeditor5/src/core';import _0x3d1b9d from'./comments/commentsediting';export default class e extends _0x18ecf5{static get[_0x2b03('0x3')](){return'CommentsOnly';}static get['requires'](){return[_0x3d1b9d];}constructor(_0x5bd8fb){super(_0x5bd8fb),this[_0x2b03('0x15')](_0x2b03('0x1'),null),this['on'](_0x2b03('0x7'),(_0x17a75a,_0x17349c,_0x530167)=>{_0x530167?this[_0x2b03('0x17')]():this[_0x2b03('0x2')]();});}[_0x2b03('0xd')](){null===this[_0x2b03('0x1')]&&(this[_0x2b03('0x1')]=!!this[_0x2b03('0x10')][_0x2b03('0x14')]['get'](_0x2b03('0x9')));}[_0x2b03('0x17')](){for(const [_0x306083,_0x166594]of this['editor'][_0x2b03('0xc')])_0x166594[_0x2b03('0x11')]&&'addCommentThread'!==_0x306083&&_0x166594[_0x2b03('0x0')](_0x2b03('0x8'));this[_0x2b03('0x10')][_0x2b03('0x12')][_0x2b03('0x5')](_0x2b03('0xf'))&&this[_0x2b03('0x10')][_0x2b03('0x12')][_0x2b03('0xe')](_0x2b03('0xf'))[_0x2b03('0x0')](_0x2b03('0x8'));const _0x44074d=this[_0x2b03('0x10')][_0x2b03('0x13')][_0x2b03('0x18')][_0x2b03('0x4')];this[_0x2b03('0x16')](_0x44074d,_0x2b03('0x1b'),_0x1f091c=>_0x1f091c[_0x2b03('0x1a')](),{'priority':_0x2b03('0x6')}),this['listenTo'](_0x44074d,_0x2b03('0x19'),_0x454643=>_0x454643['stop'](),{'priority':_0x2b03('0x6')}),this[_0x2b03('0x16')](_0x44074d,_0x2b03('0xb'),_0x2f0df2=>_0x2f0df2[_0x2b03('0x1a')](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x24da27,_0x5cf8c5]of this[_0x2b03('0x10')][_0x2b03('0xc')])_0x5cf8c5[_0x2b03('0x11')]&&_0x2b03('0xa')!==_0x24da27&&_0x5cf8c5['clearForceDisabled'](_0x2b03('0x8'));this[_0x2b03('0x1c')](this[_0x2b03('0x10')]['editing'][_0x2b03('0x18')][_0x2b03('0x4')]);}}
23
+ const _0x3314=['commentsOnlyMode','delete','addCommentThread','listenTo','view','pluginName','highest','get','clipboardInput','requires','editor','afterInit','editing','config','stop','set','clearForceDisabled','commentsOnly','affectsData','change:isEnabled','commands','isEnabled','forceDisabled','CommentsOnly','plugins','document','DragDrop','cut'];(function(_0x1d3cd9,_0x33140e){const _0x84cc91=function(_0x2c6427){while(--_0x2c6427){_0x1d3cd9['push'](_0x1d3cd9['shift']());}};_0x84cc91(++_0x33140e);}(_0x3314,0xde));const _0x84cc=function(_0x1d3cd9,_0x33140e){_0x1d3cd9=_0x1d3cd9-0x0;let _0x84cc91=_0x3314[_0x1d3cd9];return _0x84cc91;};import{Plugin as _0x3efed5}from'ckeditor5/src/core';import _0x571ab4 from'./comments/commentsediting';export default class e extends _0x3efed5{static get[_0x84cc('0x7')](){return _0x84cc('0x19');}static get[_0x84cc('0xb')](){return[_0x571ab4];}constructor(_0x410184){super(_0x410184),this[_0x84cc('0x11')]('isEnabled',null),this['on'](_0x84cc('0x15'),(_0x26208e,_0x412ef1,_0x3daf3f)=>{_0x3daf3f?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}[_0x84cc('0xd')](){null===this[_0x84cc('0x17')]&&(this[_0x84cc('0x17')]=!!this[_0x84cc('0xc')][_0x84cc('0xf')][_0x84cc('0x9')](_0x84cc('0x13')));}['_enableCommentsOnlyMode'](){for(const [_0x195cd3,_0x34ed44]of this[_0x84cc('0xc')]['commands'])_0x34ed44[_0x84cc('0x14')]&&_0x84cc('0x4')!==_0x195cd3&&_0x34ed44[_0x84cc('0x18')](_0x84cc('0x2'));this[_0x84cc('0xc')]['plugins']['has']('DragDrop')&&this['editor'][_0x84cc('0x1a')][_0x84cc('0x9')](_0x84cc('0x0'))[_0x84cc('0x18')]('commentsOnlyMode');const _0x5403de=this[_0x84cc('0xc')][_0x84cc('0xe')][_0x84cc('0x6')]['document'];this[_0x84cc('0x5')](_0x5403de,_0x84cc('0x1'),_0x59d969=>_0x59d969[_0x84cc('0x10')](),{'priority':'highest'}),this[_0x84cc('0x5')](_0x5403de,_0x84cc('0xa'),_0x4f4563=>_0x4f4563[_0x84cc('0x10')](),{'priority':_0x84cc('0x8')}),this['listenTo'](_0x5403de,_0x84cc('0x3'),_0x3fbad5=>_0x3fbad5[_0x84cc('0x10')](),{'priority':_0x84cc('0x8')});}['_disableCommentsOnlyMode'](){for(const [_0x9d9766,_0x2224ee]of this[_0x84cc('0xc')][_0x84cc('0x16')])_0x2224ee[_0x84cc('0x14')]&&_0x84cc('0x4')!==_0x9d9766&&_0x2224ee[_0x84cc('0x12')](_0x84cc('0x2'));this['stopListening'](this['editor'][_0x84cc('0xe')]['view'][_0x84cc('0x1b')]);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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 _0x2623=['mapper','domConverter','markerNameToElements','mapViewToDom','values'];(function(_0xe6ccbc,_0x2623bf){const _0x275c89=function(_0x4c0e06){while(--_0x4c0e06){_0xe6ccbc['push'](_0xe6ccbc['shift']());}};_0x275c89(++_0x2623bf);}(_0x2623,0xa0));const _0x275c=function(_0xe6ccbc,_0x2623bf){_0xe6ccbc=_0xe6ccbc-0x0;let _0x275c89=_0x2623[_0xe6ccbc];return _0x275c89;};import _0x2668ab from'@ckeditor/ckeditor5-utils/src/first';export default function R(_0x6995e6,_0x4956c3){const _0x3541e5=_0x6995e6[_0x275c('0x0')][_0x275c('0x2')](_0x4956c3['name']),_0x5a1af0=_0x2668ab(_0x3541e5[_0x275c('0x4')]());return _0x6995e6['view'][_0x275c('0x1')][_0x275c('0x3')](_0x5a1af0);}
23
+ export{default as Comments}from'./comments';export{default as CommentsOnly}from'./comments';export{default as Annotations}from'./annotations/annotations';export{default as AnnotationsUIs}from'./annotations/annotationsuis';export{default as InlineAnnotations}from'./annotations/inlineannotations';export{default as WideSidebar}from'./annotations/widesidebar';export{default as NarrowSidebar}from'./annotations/narrowsidebar';export{default as BaseCommentView}from'./comments/ui/view/basecommentview';export{default as BaseCommentThreadView}from'./comments/ui/view/basecommentthreadview';
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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(_0x4bdbfe,_0x35bf07){const t=_0x4bdbfe['t'];if('PENDING_ACTION_COMMENT_THREAD'==_0x35bf07)return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});}
23
+ export function getTranslation(_0x263b39,_0xcd0479){const t=_0x263b39['t'];if('PENDING_ACTION_COMMENT_THREAD'==_0xcd0479)return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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 _0x4619=['attributes','type','disconnect','childList','cancel','observe','attributeName','class'];(function(_0x2f2708,_0x4619a8){const _0x5e79b4=function(_0x7618){while(--_0x7618){_0x2f2708['push'](_0x2f2708['shift']());}};_0x5e79b4(++_0x4619a8);}(_0x4619,0x12a));const _0x5e79=function(_0x2f2708,_0x4619a8){_0x2f2708=_0x2f2708-0x0;let _0x5e79b4=_0x4619[_0x2f2708];return _0x5e79b4;};import{throttle as _0x2c257b}from'lodash-es';export default function ct(_0x4e4d3a){const _0x483d0d=_0x2c257b(_0x4e4d3a,0x1e),_0x33d897=new MutationObserver(_0x614627=>{for(const _0x1dc865 of _0x614627)(_0x5e79('0x6')==_0x1dc865['type']&&_0x5e79('0x5')==_0x1dc865[_0x5e79('0x4')]||_0x5e79('0x1')==_0x1dc865[_0x5e79('0x7')])&&_0x483d0d();});return{'attach'(_0x706871){_0x33d897[_0x5e79('0x3')](_0x706871,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x33d897[_0x5e79('0x0')](),_0x483d0d[_0x5e79('0x2')]();}};}
23
+ const _0x7808=['type','childList','observe','disconnect','attributeName','attributes'];(function(_0x167f8b,_0x7808f3){const _0x194aa4=function(_0x36985d){while(--_0x36985d){_0x167f8b['push'](_0x167f8b['shift']());}};_0x194aa4(++_0x7808f3);}(_0x7808,0xc2));const _0x194a=function(_0x167f8b,_0x7808f3){_0x167f8b=_0x167f8b-0x0;let _0x194aa4=_0x7808[_0x167f8b];return _0x194aa4;};import{throttle as _0x14e8c7}from'lodash-es';export default function ut(_0x266595){const _0x294357=_0x14e8c7(_0x266595,0x1e),_0xb9acf=new MutationObserver(_0x4b565e=>{for(const _0x2251ff of _0x4b565e)(_0x194a('0x3')==_0x2251ff['type']&&'class'==_0x2251ff[_0x194a('0x2')]||_0x194a('0x5')==_0x2251ff[_0x194a('0x4')])&&_0x294357();});return{'attach'(_0x110746){_0xb9acf[_0x194a('0x0')](_0x110746,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0xb9acf[_0x194a('0x1')](),_0x294357['cancel']();}};}
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2021, CKSource Frederico Knabben. All rights reserved.
6
+ * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
7
7
  */
8
8
 
9
9
  /* Common styles for inline comment and inline suggestion. */
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2021, CKSource Frederico Knabben. All rights reserved.
6
+ * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
7
7
  */
8
8
 
9
9
  /* Common styles for single comment and single suggestion. */
package/theme/comment.css CHANGED
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2021, CKSource Frederico Knabben. All rights reserved.
6
+ * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
7
7
  */
8
8
 
9
9
  :root {
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2021, CKSource Frederico Knabben. All rights reserved.
6
+ * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
7
7
  */
8
8
 
9
9
  .ck .ck-comment__input-container {
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2021, CKSource Frederico Knabben. All rights reserved.
6
+ * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
7
7
  */
8
8
 
9
9
  :root {