@ckeditor/ckeditor5-comments 31.0.0 → 33.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 (122) hide show
  1. package/LICENSE.md +2 -2
  2. package/README.md +2 -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/ko.js +1 -0
  22. package/build/translations/nl.js +1 -0
  23. package/build/translations/no.js +1 -0
  24. package/build/translations/pl.js +1 -0
  25. package/build/translations/pt-br.js +1 -0
  26. package/build/translations/ro.js +1 -0
  27. package/build/translations/ru.js +1 -0
  28. package/build/translations/sk.js +1 -0
  29. package/build/translations/sr-latn.js +1 -0
  30. package/build/translations/sr.js +1 -0
  31. package/build/translations/tk.js +1 -0
  32. package/build/translations/tr.js +1 -0
  33. package/build/translations/ug.js +1 -0
  34. package/build/translations/uk.js +1 -0
  35. package/build/translations/zh-cn.js +1 -0
  36. package/build/translations/zh.js +1 -0
  37. package/lang/translations/bs.po +80 -0
  38. package/lang/translations/cs.po +1 -1
  39. package/lang/translations/da.po +79 -0
  40. package/lang/translations/de-ch.po +1 -1
  41. package/lang/translations/de.po +1 -1
  42. package/lang/translations/el.po +79 -0
  43. package/lang/translations/en-au.po +1 -1
  44. package/lang/translations/en.po +1 -1
  45. package/lang/translations/es.po +1 -1
  46. package/lang/translations/et.po +1 -1
  47. package/lang/translations/fr.po +1 -1
  48. package/lang/translations/gl.po +1 -1
  49. package/lang/translations/hi.po +1 -1
  50. package/lang/translations/hr.po +1 -1
  51. package/lang/translations/hu.po +1 -1
  52. package/lang/translations/id.po +78 -0
  53. package/lang/translations/it.po +1 -1
  54. package/lang/translations/ja.po +1 -1
  55. package/lang/translations/ko.po +1 -1
  56. package/lang/translations/nl.po +1 -1
  57. package/lang/translations/no.po +1 -1
  58. package/lang/translations/pl.po +1 -1
  59. package/lang/translations/pt-br.po +1 -1
  60. package/lang/translations/ro.po +1 -1
  61. package/lang/translations/ru.po +1 -1
  62. package/lang/translations/sk.po +1 -1
  63. package/lang/translations/sr-latn.po +1 -1
  64. package/lang/translations/sr.po +1 -1
  65. package/lang/translations/tk.po +1 -1
  66. package/lang/translations/tr.po +1 -1
  67. package/lang/translations/ug.po +1 -1
  68. package/lang/translations/uk.po +1 -1
  69. package/lang/translations/zh-cn.po +1 -1
  70. package/lang/translations/zh.po +1 -1
  71. package/package.json +4 -9
  72. package/src/annotations/annotation.js +2 -2
  73. package/src/annotations/annotationcollection.js +2 -2
  74. package/src/annotations/annotations.js +2 -2
  75. package/src/annotations/annotationsuis.js +2 -2
  76. package/src/annotations/editorannotations.js +2 -2
  77. package/src/annotations/inlineannotations.js +2 -2
  78. package/src/annotations/narrowsidebar.js +2 -2
  79. package/src/annotations/sidebar.js +2 -2
  80. package/src/annotations/view/annotationcounterbuttonview.js +2 -2
  81. package/src/annotations/view/annotationview.js +2 -2
  82. package/src/annotations/view/sidebaritemview.js +2 -2
  83. package/src/annotations/view/sidebarview.js +2 -2
  84. package/src/annotations/widesidebar.js +2 -2
  85. package/src/comments/addcommentthreadcommand.js +2 -2
  86. package/src/comments/commentsediting.js +2 -2
  87. package/src/comments/commentsrepository.js +2 -2
  88. package/src/comments/commentsui.js +2 -2
  89. package/src/comments/integrations/commentsrestrictededitingmode.js +2 -2
  90. package/src/comments/ui/commenteditor/commenteditor.js +2 -2
  91. package/src/comments/ui/commenteditor/commenteditorui.js +2 -2
  92. package/src/comments/ui/commenteditor/commenteditoruiview.js +2 -2
  93. package/src/comments/ui/commentthreadcontroller.js +2 -2
  94. package/src/comments/ui/view/basecommentthreadview.js +2 -2
  95. package/src/comments/ui/view/basecommentview.js +2 -2
  96. package/src/comments/ui/view/collapsedcommentsview.js +2 -2
  97. package/src/comments/ui/view/commentcontentview.js +2 -2
  98. package/src/comments/ui/view/commentinputview.js +2 -2
  99. package/src/comments/ui/view/commentslistview.js +2 -2
  100. package/src/comments/ui/view/commentthreadinputview.js +2 -2
  101. package/src/comments/ui/view/commentthreadview.js +2 -2
  102. package/src/comments/ui/view/commentview.js +2 -2
  103. package/src/comments/ui/view/confirmmixin.js +2 -2
  104. package/src/comments/ui/view/confirmview.js +2 -2
  105. package/src/comments.js +2 -2
  106. package/src/commentsonly.js +2 -2
  107. package/src/{utils/getmarkerdomelement.js → index.js} +2 -2
  108. package/src/utils/common-translations.js +2 -2
  109. package/src/utils/createmutationobserver.js +2 -2
  110. package/theme/annotation-inline.css +1 -1
  111. package/theme/annotation.css +1 -1
  112. package/theme/comment.css +1 -1
  113. package/theme/commentinput.css +1 -1
  114. package/theme/commentmarker.css +1 -1
  115. package/theme/commentthread.css +1 -1
  116. package/theme/icons/add-comment.svg +1 -1
  117. package/theme/icons/edit-comment.svg +1 -1
  118. package/theme/icons/remove-comment.svg +1 -1
  119. package/theme/sidebar-narrow.css +1 -1
  120. package/theme/sidebar.css +1 -1
  121. package/src/utils/getdatetimeformatter.js +0 -23
  122. 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
- import{View as bt}from'ckeditor5/src/ui';export default class Nt extends bt{constructor(_0x566eae){super(_0x566eae);const {t:t}=_0x566eae,_0x4653a6=this['bindTemplate'];this['set']('count'),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x4653a6['to']('count',_0x121f37=>t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x121f37))}]});}}
23
+ import{View as ht}from'ckeditor5/src/ui';export default class Nt extends ht{constructor(_0x2c47db){super(_0x2c47db);const {t:t}=_0x2c47db,_0x4253db=this['bindTemplate'];this['set']('count'),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x4253db['to']('count',_0x4bb268=>t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x4bb268))}]});}}
@@ -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 _0x5041=['ck-comment__content','render','element','content','set','innerHTML'];(function(_0x12cd69,_0x5041e1){var _0x5a32e8=function(_0x5decc7){while(--_0x5decc7){_0x12cd69['push'](_0x12cd69['shift']());}};_0x5a32e8(++_0x5041e1);}(_0x5041,0xb3));var _0x5a32=function(_0x12cd69,_0x5041e1){_0x12cd69=_0x12cd69-0x0;var _0x5a32e8=_0x5041[_0x12cd69];return _0x5a32e8;};import{View as _0x4412f7}from'ckeditor5/src/ui';export default class Mt extends _0x4412f7{constructor(_0x5ba408){super(_0x5ba408),this[_0x5a32('0x5')]('content',''),this['setTemplate']({'tag':'div','attributes':{'class':[_0x5a32('0x1'),'ck-annotation__content']}});}[_0x5a32('0x2')](){super[_0x5a32('0x2')](),this['on']('change:content',(_0x3e1209,_0x37cbaf,_0x2b1169)=>{this[_0x5a32('0x3')][_0x5a32('0x0')]=_0x2b1169;}),this[_0x5a32('0x3')][_0x5a32('0x0')]=this[_0x5a32('0x4')];}}
23
+ var _0x57c2=['innerHTML','ck-annotation__content','element','setTemplate','change:content','content','ck-comment__content','render'];(function(_0x22f568,_0x57c2d7){var _0x3a9c38=function(_0x365fbd){while(--_0x365fbd){_0x22f568['push'](_0x22f568['shift']());}};_0x3a9c38(++_0x57c2d7);}(_0x57c2,0xf6));var _0x3a9c=function(_0x22f568,_0x57c2d7){_0x22f568=_0x22f568-0x0;var _0x3a9c38=_0x57c2[_0x22f568];return _0x3a9c38;};import{View as _0x1df3a4}from'ckeditor5/src/ui';export default class Et extends _0x1df3a4{constructor(_0x240cca){super(_0x240cca),this['set'](_0x3a9c('0x7'),''),this[_0x3a9c('0x5')]({'tag':'div','attributes':{'class':[_0x3a9c('0x0'),_0x3a9c('0x3')]}});}['render'](){super[_0x3a9c('0x1')](),this['on'](_0x3a9c('0x6'),(_0x293978,_0x4ffe5b,_0x1bf013)=>{this[_0x3a9c('0x4')][_0x3a9c('0x2')]=_0x1bf013;}),this[_0x3a9c('0x4')][_0x3a9c('0x2')]=this[_0x3a9c('0x7')];}}
@@ -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 _0x52e288,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(_0x17f159,_0x5ebf4f={}){super(_0x17f159);const {t:t}=_0x17f159;this['editor']=new zt(_0x5ebf4f),this['keystrokes']=new pt(),this['focusTracker']=new _0x52e288(),this['set']('value',_0x5ebf4f['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',(_0x43f6ce,_0x464c3a)=>{this['cancelButtonView']['fire']('execute'),_0x464c3a();}),this['on']('submit',(_0x177452,_0x4c320c)=>{_0x4c320c['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'},[_0x4c320c['length'],0xfde8])),_0x177452['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render']();const {editor:_0x115056,element:_0x16b107}=this;this['keystrokes']['listenTo'](_0x16b107),this['focusTracker']['add'](_0x16b107),this['_editorCreationPromise']=_0x115056['create']()['then'](()=>{_0x16b107['insertBefore'](_0x115056['ui']['element'],_0x16b107['firstChild']),_0x115056['model']['document']['on']('change',()=>this['value']=_0x115056['getData']()),_0x115056['bind']('placeholder')['to'](this),this['_initializeFocusCycling'](_0x115056),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 _0x580103=new mt(this['locale']),{t:t}=this['locale'];return _0x580103['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x580103['label']=t('Submit'),_0x580103['icon']=Yt['check'],_0x580103['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x580103['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x61b5fe,_0x184c7f)=>!_0x184c7f&&!!_0x61b5fe['trim']()),_0x580103;}['_createCancelButton'](){const _0x32867d=new mt(this['locale']),{t:t}=this['locale'];return _0x32867d['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x32867d['label']=t('Cancel'),_0x32867d['icon']=Yt['cancel'],_0x32867d['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x32867d;}['_initializeFocusCycling'](_0x293f05){const _0x31ced7=this['focusTracker'],_0x56f2b0=new St();[_0x293f05['ui']['view'],this['submitButtonView'],this['cancelButtonView']]['forEach'](_0x25af29=>{_0x56f2b0['add'](_0x25af29),_0x31ced7['add'](_0x25af29['element']);});const _0x43a235=new Gt({'focusables':_0x56f2b0,'focusTracker':_0x31ced7});this['keystrokes']['set']('tab',(_0x5b43db,_0x41141a)=>{_0x43a235['focusNext'](),_0x41141a();},{'priority':'low'}),this['keystrokes']['set']('shift\x20+\x20tab',(_0x352195,_0x21ba3d)=>{_0x43a235['focusPrevious'](),_0x21ba3d();},{'priority':'low'});}}
23
+ import{View as ht,ViewCollection as Bt,FocusCycler as St,ButtonView as mt}from'ckeditor5/src/ui';import{FocusTracker as _0x183981,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(_0x2e88a5,_0x264e34={}){super(_0x2e88a5);const {t:t}=_0x2e88a5;this['editor']=new qt(_0x264e34),this['keystrokes']=new pt(),this['focusTracker']=new _0x183981(),this['set']('value',_0x264e34['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',(_0x1cb92c,_0x4d1c4c)=>{this['cancelButtonView']['fire']('execute'),_0x4d1c4c();}),this['on']('submit',(_0x205e8f,_0x960e44)=>{_0x960e44['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'},[_0x960e44['length'],0xfde8])),_0x205e8f['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render']();const {editor:_0x1952f7,element:_0x163d84}=this;this['keystrokes']['listenTo'](_0x163d84),this['focusTracker']['add'](_0x163d84),this['_editorCreationPromise']=_0x1952f7['create']()['then'](()=>{_0x163d84['insertBefore'](_0x1952f7['ui']['element'],_0x163d84['firstChild']),_0x1952f7['model']['document']['on']('change',()=>this['value']=_0x1952f7['getData']()),_0x1952f7['bind']('placeholder')['to'](this),this['_initializeFocusCycling'](_0x1952f7),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 _0x2da0ed=new mt(this['locale']),{t:t}=this['locale'];return _0x2da0ed['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x2da0ed['label']=t('Submit'),_0x2da0ed['icon']=Gt['check'],_0x2da0ed['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x2da0ed['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x2888d7,_0x7d3a92)=>!_0x7d3a92&&!!_0x2888d7['trim']()),_0x2da0ed;}['_createCancelButton'](){const _0x1b21b8=new mt(this['locale']),{t:t}=this['locale'];return _0x1b21b8['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x1b21b8['label']=t('Cancel'),_0x1b21b8['icon']=Gt['cancel'],_0x1b21b8['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x1b21b8;}['_initializeFocusCycling'](_0x3e83fd){const _0x28c33b=this['focusTracker'],_0x25a881=new Bt();[_0x3e83fd['ui']['view'],this['submitButtonView'],this['cancelButtonView']]['forEach'](_0x26d4c9=>{_0x25a881['add'](_0x26d4c9),_0x28c33b['add'](_0x26d4c9['element']);});const _0x4cdec5=new St({'focusables':_0x25a881,'focusTracker':_0x28c33b});this['keystrokes']['set']('tab',(_0x3b1a5f,_0x6e0ca0)=>{_0x4cdec5['focusNext'](),_0x6e0ca0();},{'priority':'low'}),this['keystrokes']['set']('shift\x20+\x20tab',(_0x445987,_0x16f99c)=>{_0x4cdec5['focusPrevious'](),_0x16f99c();},{'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 _0xa180=['from','_updateHasDirtyComment','insert','comments','change:isEditMode','weight','set','commentUpdated','visibleViews','delegate','count','destroy','maxThreadTotalWeight','add','listenTo','_rearrangeExpand','CommentView','_config','refreshVisibleViews','isEditMode','equal','change:hasDirtyComment','element','_rearrangeCollapse','createCollection','delete','render','formatDateTime','_model','setTemplate','_handleRemoveCommentModel','remove','expand','length','focus','hasDirtyComment','_collapsedCommentsView','bind','maxCommentsWhenCollapsed','viewUid','_handleNewCommentModel','maxCommentCharsWhenCollapsed','_shouldCollapse','commentViews','ck-thread__comments','change:isActive'];(function(_0x292cc9,_0xa18060){const _0xa1a5ef=function(_0x67fd8){while(--_0x67fd8){_0x292cc9['push'](_0x292cc9['shift']());}};_0xa1a5ef(++_0xa18060);}(_0xa180,0x111));const _0xa1a5=function(_0x292cc9,_0xa18060){_0x292cc9=_0x292cc9-0x0;let _0xa1a5ef=_0xa180[_0x292cc9];return _0xa1a5ef;};import{View as _0x543951}from'ckeditor5/src/ui';import{diff as _0x3f0723,Collection as _0x51ca13}from'ckeditor5/src/utils';import _0x40e95a from'./collapsedcommentsview';export default class Tt extends _0x543951{constructor(_0x416bd8,_0x266860,_0x5a0c4f){super(_0x416bd8),this[_0xa1a5('0x9')]('hasDirtyComment',!0x1),this[_0xa1a5('0x9')](_0xa1a5('0x24'),_0x266860['comments'][_0xa1a5('0x24')]),this[_0xa1a5('0x9')]('isActive',!0x1),this['_model']=_0x266860,this[_0xa1a5('0x14')]=_0x5a0c4f,this['commentViews']=this[_0xa1a5('0x1b')](),this[_0xa1a5('0xb')]=this[_0xa1a5('0x1b')](),this['_collapsedCommentsView']=new _0x40e95a(_0x416bd8),this['_collapsedCommentsView'][_0xa1a5('0x28')](_0xa1a5('0xd'))['to'](this,_0xa1a5('0x24'),_0x5789bb=>_0x5789bb-this[_0xa1a5('0x14')][_0xa1a5('0x29')]);for(const _0x35f08b of _0x266860[_0xa1a5('0x6')])this[_0xa1a5('0x2b')](_0x35f08b);this['listenTo'](_0x266860['comments'],_0xa1a5('0x10'),(_0x294ad1,_0xbaf1ec)=>{this[_0xa1a5('0x24')]++,this[_0xa1a5('0x2b')](_0xbaf1ec),this[_0xa1a5('0x15')]();}),this[_0xa1a5('0x11')](_0x266860[_0xa1a5('0x6')],'remove',(_0xa4f03a,_0x25702f)=>{this[_0xa1a5('0x24')]--,this[_0xa1a5('0x21')](_0x25702f),this[_0xa1a5('0x15')]();}),this['listenTo'](_0x266860,_0xa1a5('0xa'),()=>this[_0xa1a5('0x15')]()),this['on'](_0xa1a5('0x2'),()=>this[_0xa1a5('0x15')]()),this['on'](_0xa1a5('0x18'),()=>this['refreshVisibleViews']()),this[_0xa1a5('0x20')]({'tag':'ul','attributes':{'class':[_0xa1a5('0x1')]},'children':this[_0xa1a5('0xb')]});}get[_0xa1a5('0x2d')](){return this[_0xa1a5('0x1f')][_0xa1a5('0x8')]>this[_0xa1a5('0x14')][_0xa1a5('0xf')]&&!this['isActive']&&!this[_0xa1a5('0x26')];}[_0xa1a5('0x1d')](){super[_0xa1a5('0x1d')](),this['refreshVisibleViews']();}[_0xa1a5('0x25')](){this[_0xa1a5('0x19')][_0xa1a5('0x25')]();}[_0xa1a5('0xe')](){this[_0xa1a5('0x27')]['destroy']();for(const _0x567f75 of this[_0xa1a5('0x0')])_0x567f75['destroy']();super[_0xa1a5('0xe')]();}[_0xa1a5('0x15')](){this[_0xa1a5('0x2d')]?this[_0xa1a5('0x1a')]():this[_0xa1a5('0x12')]();}[_0xa1a5('0x2b')](_0x17d349){const _0x13ad43=new this[(_0xa1a5('0x14'))][(_0xa1a5('0x13'))](this['locale'],_0x17d349,{'maxCommentCharsWhenCollapsed':this[_0xa1a5('0x14')][_0xa1a5('0x2c')],'formatDateTime':this['_config'][_0xa1a5('0x1e')],'editorConfig':this[_0xa1a5('0x14')]['editorConfig']});_0x13ad43[_0xa1a5('0x2a')]=_0x17d349['id'],_0x13ad43[_0xa1a5('0xc')]('removeComment')['to'](this),_0x13ad43[_0xa1a5('0xc')]('updateComment')['to'](this),this[_0xa1a5('0x11')](_0x13ad43,_0xa1a5('0x7'),()=>this[_0xa1a5('0x4')]()),this['commentViews']['add'](_0x13ad43);}['_handleRemoveCommentModel'](_0xb4954f){const _0x1adff4=this['commentViews']['remove'](_0xb4954f['id']);this['stopListening'](_0x1adff4),_0x1adff4[_0xa1a5('0x16')]&&this[_0xa1a5('0x4')](),_0x1adff4[_0xa1a5('0xe')]();}[_0xa1a5('0x4')](){this[_0xa1a5('0x26')]=Array[_0xa1a5('0x3')](this[_0xa1a5('0x0')])['some'](_0x2f8886=>_0x2f8886[_0xa1a5('0x16')]);}['_rearrangeCollapse'](){const _0xc13fa1=function(_0x111fa5){const _0x58f1f9=new _0x51ca13();for(const _0x575a90 of _0x111fa5)_0x58f1f9[_0xa1a5('0x10')](_0x575a90);return _0x58f1f9;}(this[_0xa1a5('0x0')]),_0x2d8536=this['_collapsedCommentsView'][_0xa1a5('0xd')];for(let _0x5db0a7=0x1;_0x5db0a7<=_0x2d8536;_0x5db0a7++)_0xc13fa1[_0xa1a5('0x22')](0x1);for(const _0x3ce02c of _0xc13fa1)_0x3ce02c['collapse']();_0x2d8536>0x0&&_0xc13fa1['add'](this[_0xa1a5('0x27')],0x1),Ut(_0x3f0723(Array[_0xa1a5('0x3')](this['visibleViews']),Array[_0xa1a5('0x3')](_0xc13fa1)),this[_0xa1a5('0xb')],_0xc13fa1);}['_rearrangeExpand'](){Ut(_0x3f0723(Array[_0xa1a5('0x3')](this[_0xa1a5('0xb')]),Array[_0xa1a5('0x3')](this[_0xa1a5('0x0')])),this[_0xa1a5('0xb')],this[_0xa1a5('0x0')]);for(const _0x3fb007 of this[_0xa1a5('0xb')])_0x3fb007[_0xa1a5('0x23')]();}}function Ut(_0x3fb33a,_0xa98444,_0x35e0c0){let _0x47cb2e=0x0;for(const _0x27b319 of _0x3fb33a)switch(_0x27b319){case _0xa1a5('0x5'):_0xa98444[_0xa1a5('0x10')](_0x35e0c0['get'](_0x47cb2e),_0x47cb2e),_0x47cb2e++;break;case _0xa1a5('0x1c'):_0xa98444[_0xa1a5('0x22')](_0x47cb2e);break;case _0xa1a5('0x17'):_0x47cb2e++;}}
23
+ const _0x2500=['createCollection','_updateHasDirtyComment','equal','length','listenTo','some','bind','expand','isEditMode','locale','remove','_config','collapse','stopListening','maxCommentsWhenCollapsed','comments','set','CommentView','visibleViews','hasDirtyComment','destroy','_shouldCollapse','count','focus','formatDateTime','weight','commentViews','maxCommentCharsWhenCollapsed','removeComment','get','insert','_handleRemoveCommentModel','viewUid','_handleNewCommentModel','_rearrangeCollapse','editorConfig','_collapsedCommentsView','add','commentUpdated','element','from','refreshVisibleViews','render','setTemplate','_rearrangeExpand','delegate','isActive'];(function(_0x588f0b,_0x250065){const _0x525bcc=function(_0xda124a){while(--_0xda124a){_0x588f0b['push'](_0x588f0b['shift']());}};_0x525bcc(++_0x250065);}(_0x2500,0x1d8));const _0x525b=function(_0x588f0b,_0x250065){_0x588f0b=_0x588f0b-0x0;let _0x525bcc=_0x2500[_0x588f0b];return _0x525bcc;};import{View as _0x5842d2}from'ckeditor5/src/ui';import{diff as _0x44c214,Collection as _0x3a4989}from'ckeditor5/src/utils';import _0x558647 from'./collapsedcommentsview';export default class ct extends _0x5842d2{constructor(_0x218c87,_0x1c68c8,_0x137d8c){super(_0x218c87),this['set'](_0x525b('0x11'),!0x1),this[_0x525b('0xe')]('length',_0x1c68c8[_0x525b('0xd')]['length']),this['set'](_0x525b('0x2c'),!0x1),this['_model']=_0x1c68c8,this[_0x525b('0x9')]=_0x137d8c,this['commentViews']=this['createCollection'](),this[_0x525b('0x10')]=this[_0x525b('0x2d')](),this[_0x525b('0x22')]=new _0x558647(_0x218c87),this['_collapsedCommentsView'][_0x525b('0x4')](_0x525b('0x14'))['to'](this,_0x525b('0x1'),_0x37ca35=>_0x37ca35-this[_0x525b('0x9')][_0x525b('0xc')]);for(const _0x3096b5 of _0x1c68c8['comments'])this[_0x525b('0x1f')](_0x3096b5);this[_0x525b('0x2')](_0x1c68c8[_0x525b('0xd')],_0x525b('0x23'),(_0x216391,_0x113a58)=>{this['length']++,this[_0x525b('0x1f')](_0x113a58),this[_0x525b('0x27')]();}),this[_0x525b('0x2')](_0x1c68c8[_0x525b('0xd')],'remove',(_0x1eb89d,_0x1defb4)=>{this[_0x525b('0x1')]--,this[_0x525b('0x1d')](_0x1defb4),this['refreshVisibleViews']();}),this['listenTo'](_0x1c68c8,_0x525b('0x24'),()=>this[_0x525b('0x27')]()),this['on']('change:isActive',()=>this[_0x525b('0x27')]()),this['on']('change:hasDirtyComment',()=>this['refreshVisibleViews']()),this[_0x525b('0x29')]({'tag':'ul','attributes':{'class':['ck-thread__comments']},'children':this[_0x525b('0x10')]});}get[_0x525b('0x13')](){return this['_model'][_0x525b('0x17')]>this[_0x525b('0x9')]['maxThreadTotalWeight']&&!this[_0x525b('0x2c')]&&!this['hasDirtyComment'];}['render'](){super[_0x525b('0x28')](),this[_0x525b('0x27')]();}['focus'](){this[_0x525b('0x25')][_0x525b('0x15')]();}[_0x525b('0x12')](){this[_0x525b('0x22')][_0x525b('0x12')]();for(const _0x4df196 of this[_0x525b('0x18')])_0x4df196[_0x525b('0x12')]();super[_0x525b('0x12')]();}['refreshVisibleViews'](){this[_0x525b('0x13')]?this[_0x525b('0x20')]():this[_0x525b('0x2a')]();}[_0x525b('0x1f')](_0x153d99){const _0xa8819f=new this[(_0x525b('0x9'))][(_0x525b('0xf'))](this[_0x525b('0x7')],_0x153d99,{'maxCommentCharsWhenCollapsed':this[_0x525b('0x9')][_0x525b('0x19')],'formatDateTime':this[_0x525b('0x9')][_0x525b('0x16')],'editorConfig':this[_0x525b('0x9')][_0x525b('0x21')]});_0xa8819f[_0x525b('0x1e')]=_0x153d99['id'],_0xa8819f['delegate'](_0x525b('0x1a'))['to'](this),_0xa8819f[_0x525b('0x2b')]('updateComment')['to'](this),this[_0x525b('0x2')](_0xa8819f,'change:isEditMode',()=>this[_0x525b('0x2e')]()),this['commentViews'][_0x525b('0x23')](_0xa8819f);}['_handleRemoveCommentModel'](_0x2036f4){const _0x14dd04=this['commentViews'][_0x525b('0x8')](_0x2036f4['id']);this[_0x525b('0xb')](_0x14dd04),_0x14dd04[_0x525b('0x6')]&&this[_0x525b('0x2e')](),_0x14dd04['destroy']();}[_0x525b('0x2e')](){this[_0x525b('0x11')]=Array['from'](this[_0x525b('0x18')])[_0x525b('0x3')](_0x41a3bf=>_0x41a3bf[_0x525b('0x6')]);}['_rearrangeCollapse'](){const _0x13d590=function(_0x4121a3){const _0x451437=new _0x3a4989();for(const _0x4c9314 of _0x4121a3)_0x451437[_0x525b('0x23')](_0x4c9314);return _0x451437;}(this[_0x525b('0x18')]),_0x2dd10c=this[_0x525b('0x22')][_0x525b('0x14')];for(let _0x55a34a=0x1;_0x55a34a<=_0x2dd10c;_0x55a34a++)_0x13d590['remove'](0x1);for(const _0x15b399 of _0x13d590)_0x15b399[_0x525b('0xa')]();_0x2dd10c>0x0&&_0x13d590[_0x525b('0x23')](this['_collapsedCommentsView'],0x1),Ut(_0x44c214(Array[_0x525b('0x26')](this[_0x525b('0x10')]),Array[_0x525b('0x26')](_0x13d590)),this[_0x525b('0x10')],_0x13d590);}['_rearrangeExpand'](){Ut(_0x44c214(Array[_0x525b('0x26')](this[_0x525b('0x10')]),Array['from'](this[_0x525b('0x18')])),this[_0x525b('0x10')],this[_0x525b('0x18')]);for(const _0x898436 of this[_0x525b('0x10')])_0x898436[_0x525b('0x5')]();}}function Ut(_0x4747f4,_0x157de8,_0x131c29){let _0x151bf0=0x0;for(const _0x125f35 of _0x4747f4)switch(_0x125f35){case _0x525b('0x1c'):_0x157de8['add'](_0x131c29[_0x525b('0x1b')](_0x151bf0),_0x151bf0),_0x151bf0++;break;case'delete':_0x157de8[_0x525b('0x8')](_0x151bf0);break;case _0x525b('0x0'):_0x151bf0++;}}
@@ -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 _0x526f=['userView','bindTemplate','focusTracker','extendTemplate','set','showButtons','ck-comment__input-container','bind','then','destroy','ck-comment__input-container--active','commentInputView','div','ck-thread__input','showInput','isFocused','value','ck-thread__user'];(function(_0x2a6ad9,_0x526f84){var _0x2175a3=function(_0x3295b3){while(--_0x3295b3){_0x2a6ad9['push'](_0x2a6ad9['shift']());}};_0x2175a3(++_0x526f84);}(_0x526f,0x6f));var _0x2175=function(_0x2a6ad9,_0x526f84){_0x2a6ad9=_0x2a6ad9-0x0;var _0x2175a3=_0x526f[_0x2a6ad9];return _0x2175a3;};import{View as _0x4f775c}from'ckeditor5/src/ui';import _0x37da92 from'./commentinputview';import _0x5efbbf from'@ckeditor/ckeditor5-collaboration-core/src/users/view/userview';export default class Rt extends _0x4f775c{constructor(_0x2cc481,_0x24c350,_0x5dd81b){super(_0x2cc481),this[_0x2175('0x8')]=new _0x37da92(_0x2cc481,_0x5dd81b),this[_0x2175('0x8')][_0x2175('0x4')](_0x2175('0x2'))['to'](this[_0x2175('0x8')][_0x2175('0x11')],_0x2175('0xc'),this[_0x2175('0x8')],_0x2175('0xd'),(_0x389cef,_0x3876d1)=>_0x389cef||!!_0x3876d1),this[_0x2175('0x1')](_0x2175('0xb'),!0x1),this['userView']=new _0x5efbbf(_0x2cc481,_0x24c350),this['userView']['extendTemplate']({'attributes':{'class':_0x2175('0xe')}}),this[_0x2175('0x8')][_0x2175('0x0')]({'attributes':{'class':_0x2175('0xa')}}),this['setTemplate']({'tag':_0x2175('0x9'),'attributes':{'class':[_0x2175('0x3'),this[_0x2175('0x10')]['if'](_0x2175('0xb'),_0x2175('0x7'))]},'children':[this[_0x2175('0xf')],this['commentInputView']]});}[_0x2175('0x6')](){return this[_0x2175('0x8')][_0x2175('0x6')]()[_0x2175('0x5')](()=>super['destroy']());}}
23
+ var _0x5c5f=['isFocused','bindTemplate','ck-comment__input-container--active','then','ck-thread__input','value','commentInputView','focusTracker','userView','showInput','destroy','extendTemplate'];(function(_0x3bf806,_0x5c5f42){var _0x495155=function(_0x501457){while(--_0x501457){_0x3bf806['push'](_0x3bf806['shift']());}};_0x495155(++_0x5c5f42);}(_0x5c5f,0x160));var _0x4951=function(_0x3bf806,_0x5c5f42){_0x3bf806=_0x3bf806-0x0;var _0x495155=_0x5c5f[_0x3bf806];return _0x495155;};import{View as _0x64d64d}from'ckeditor5/src/ui';import _0x1c50f2 from'./commentinputview';import{UserView as _0x3e5ce2}from'ckeditor5-collaboration/src/collaboration-core';export default class dt extends _0x64d64d{constructor(_0x420bd4,_0x3cf3cf,_0x50cf5b){super(_0x420bd4),this[_0x4951('0x2')]=new _0x1c50f2(_0x420bd4,_0x50cf5b),this[_0x4951('0x2')]['bind']('showButtons')['to'](this[_0x4951('0x2')][_0x4951('0x3')],_0x4951('0x8'),this[_0x4951('0x2')],_0x4951('0x1'),(_0x4fe662,_0x7f47ae)=>_0x4fe662||!!_0x7f47ae),this['set'](_0x4951('0x5'),!0x1),this[_0x4951('0x4')]=new _0x3e5ce2(_0x420bd4,_0x3cf3cf),this[_0x4951('0x4')][_0x4951('0x7')]({'attributes':{'class':'ck-thread__user'}}),this[_0x4951('0x2')]['extendTemplate']({'attributes':{'class':_0x4951('0x0')}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-container',this[_0x4951('0x9')]['if'](_0x4951('0x5'),_0x4951('0xa'))]},'children':[this[_0x4951('0x4')],this['commentInputView']]});}[_0x4951('0x6')](){return this['commentInputView'][_0x4951('0x6')]()[_0x4951('0xb')](()=>super[_0x4951('0x6')]());}}
@@ -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 _0x397ece}from'ckeditor5/src/utils';import Wt from'./confirmmixin';export default class et extends It{constructor(_0x5db37e,_0x40052d,_0x4134d7,_0x476f79){super(_0x5db37e,_0x40052d,_0x4134d7,_0x476f79),this['set']('actionIndicator',null),this['containerElement']=null,this['locale']=_0x5db37e,this['setTemplate'](this['_getTemplate']()),this['on']('change:isActive',(_0x40b1ce,_0x47ce2b,_0x367c6b)=>{_0x367c6b||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x2408e8,_0x552be9,_0x31deb6)=>{_0x31deb6&&this['_cancelAllConfirms']();}),this['length']>0x0?this['_bindFirstCommentView']():this['listenTo'](this['commentsListView']['commentViews'],'add',_0x59b52b=>{this['_bindFirstCommentView'](),_0x59b52b['off']();});}['_getTemplate'](){const _0x1fca07=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck-thread',_0x1fca07['if']('isActive','ck-thread--active'),_0x1fca07['if']('isConfirm','ck-thread--remove-confirmation'),_0x1fca07['to']('actionIndicator',_0x4c6dd4=>_0x4c6dd4?'ck-thread--'+_0x4c6dd4:'')],'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 _0x137bc4 of this['commentsListView']['commentViews'])_0x137bc4['cancelConfirm']();}['_bindFirstCommentView'](){const {t:t}=this['locale'],_0x51664a=this['commentsListView']['commentViews']['get'](0x0);this['bind']('actionIndicator')['to'](_0x51664a,'actionIndicator',_0xba5f10=>'remove'===_0xba5f10?'remove':null),_0x51664a['placeholder']=t('Write\x20a\x20comment...'),_0x51664a['removeButton']['on']('execute',_0x2ed9c0=>{_0x2ed9c0['stop'](),this['showConfirm'](t('Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'});}}_0x397ece(et,Wt);
23
+ import Rt from'./basecommentthreadview';import{mix as _0x241e02}from'ckeditor5/src/utils';import Wt from'./confirmmixin';export default class nt extends Rt{constructor(_0x24b0af,_0x21d8d3,_0x9c0497,_0x751fc3){super(_0x24b0af,_0x21d8d3,_0x9c0497,_0x751fc3),this['set']('actionIndicator',null),this['containerElement']=null,this['locale']=_0x24b0af,this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x3fe020,_0x332fb6,_0x441b88)=>{_0x441b88||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x4f3a0d,_0x43b4d6,_0x26dfbb)=>{_0x26dfbb&&this['_cancelAllConfirms']();}),this['length']>0x0?this['_bindFirstCommentView']():this['listenTo'](this['commentsListView']['commentViews'],'add',_0xa6a161=>{this['_bindFirstCommentView'](),_0xa6a161['off']();});}['getTemplate'](){const _0x3671ed=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck-thread',_0x3671ed['if']('isActive','ck-thread--active'),_0x3671ed['if']('isConfirm','ck-thread--remove-confirmation'),_0x3671ed['to']('actionIndicator',_0x476ce7=>_0x476ce7?'ck-thread--'+_0x476ce7:'')],'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 _0x43167f of this['commentsListView']['commentViews'])_0x43167f['cancelConfirm']();}['_bindFirstCommentView'](){const {t:t}=this['locale'],_0x26e65a=this['commentsListView']['commentViews']['get'](0x0);this['bind']('actionIndicator')['to'](_0x26e65a,'actionIndicator',_0x2b70b0=>'remove'===_0x2b70b0?'remove':null),_0x26e65a['placeholder']=t('Write\x20a\x20comment...'),_0x26e65a['removeButton']['on']('execute',_0x5e245b=>{_0x5e245b['stop'](),this['showConfirm'](t('Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'});}}_0x241e02(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 _0x5d3c69}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(_0x389e43,_0x5c1e53,_0x281cae){super(_0x389e43,_0x5c1e53,_0x281cae);const {t:t}=this['locale'];this['set']('actionIndicator',null),this['set']('placeholder',t('Reply...')),this['set']('createdAt',null),this['bind']('createdAt')['to'](_0x5c1e53),this['editButton']=this['_createEditButton'](),this['removeButton']=this['_createRemoveButton'](),this['userView']=new Jt(_0x389e43,_0x5c1e53['author']),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user']}}),this['listenTo'](_0x5c1e53,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['_getTemplate']());}['_getTemplate'](){const _0x2cff3c=this['bindTemplate'];return{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x2cff3c['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x2cff3c['if']('isEditMode','ck-comment--edit'),_0x2cff3c['to']('actionIndicator',_0x40da0b=>_0x40da0b?'ck-comment--'+_0x40da0b:'')],'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':_0x2cff3c['to']('createdAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2cff3c['to']('createdAt',_0x4c18eb=>this['_config']['formatDateTime'](_0x4c18eb))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x2cff3c['if']('isEditMode','ck-comment__actions--hidden'),_0x2cff3c['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'],_0x391d39=new mt(this['locale']);return _0x391d39['label']=t('Edit'),_0x391d39['icon']=Yt['pencil'],_0x391d39['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x391d39['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x139a1d=>!_0x139a1d),_0x391d39['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x391d39['on']('execute',()=>this['switchToEditMode']()),_0x391d39;}['_createRemoveButton'](){const {t:t}=this['locale'],_0x489601=new mt(this['locale']);return _0x489601['label']=t('Remove'),_0x489601['icon']=Kt,_0x489601['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x489601['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x26cd5a=>!_0x26cd5a),_0x489601['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x489601['on']('execute',()=>{this['showConfirm'](t('Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x489601;}['_attachActions'](_0x3a61bd,_0x57fc7a){this['listenTo'](_0x3a61bd,'mouseenter',()=>this['actionIndicator']=_0x57fc7a),this['listenTo'](_0x3a61bd,'focus',()=>this['actionIndicator']=_0x57fc7a),this['listenTo'](_0x3a61bd,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x3a61bd,'blur',()=>this['actionIndicator']=null);}['_createCommentInputView'](){const _0x28ad35=super['_createCommentInputView']();return _0x28ad35['bind']('placeholder')['to'](this),_0x28ad35;}['render'](){super['render'](),this['_attachActions'](this['editButton']['element'],'edit'),this['_attachActions'](this['removeButton']['element'],'remove');}}_0x5d3c69(nt,Wt);
23
+ import{mix as _0x5e4b4d}from'ckeditor5/src/utils';import{ButtonView as mt}from'ckeditor5/src/ui';import Vt from'./basecommentview';import{UserView as It}from'ckeditor5-collaboration/src/collaboration-core';import{icons as Gt}from'ckeditor5/src/core';import Jt from'../../../../theme/icons/remove-comment.svg';import Wt from'./confirmmixin';export default class ot extends Vt{constructor(_0x1902a4,_0x25ee1e,_0x15c4f0){super(_0x1902a4,_0x25ee1e,_0x15c4f0);const {t:t}=this['locale'];this['set']('actionIndicator',null),this['set']('placeholder',t('Reply...')),this['set']('createdAt',null),this['bind']('createdAt')['to'](_0x25ee1e),this['editButton']=this['_createEditButton'](),this['removeButton']=this['_createRemoveButton'](),this['userView']=new It(_0x1902a4,_0x25ee1e['author']),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user']}}),this['listenTo'](_0x25ee1e,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x26adf4=this['bindTemplate'];return{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x26adf4['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x26adf4['if']('isEditMode','ck-comment--edit'),_0x26adf4['to']('actionIndicator',_0x1b12b8=>_0x1b12b8?'ck-comment--'+_0x1b12b8:'')],'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':_0x26adf4['to']('createdAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x26adf4['to']('createdAt',_0x3b8502=>this['_config']['formatDateTime'](_0x3b8502))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x26adf4['if']('isEditMode','ck-comment__actions--hidden'),_0x26adf4['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'],_0x2e3794=new mt(this['locale']);return _0x2e3794['label']=t('Edit'),_0x2e3794['icon']=Gt['pencil'],_0x2e3794['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x2e3794['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x5f2b87=>!_0x5f2b87),_0x2e3794['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x2e3794['on']('execute',()=>this['switchToEditMode']()),_0x2e3794;}['_createRemoveButton'](){const {t:t}=this['locale'],_0x276fba=new mt(this['locale']);return _0x276fba['label']=t('Remove'),_0x276fba['icon']=Jt,_0x276fba['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x276fba['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x305900=>!_0x305900),_0x276fba['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x276fba['on']('execute',()=>{this['showConfirm'](t('Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x276fba;}['_attachActions'](_0x529253,_0x47d857){this['listenTo'](_0x529253,'mouseenter',()=>this['actionIndicator']=_0x47d857),this['listenTo'](_0x529253,'focus',()=>this['actionIndicator']=_0x47d857),this['listenTo'](_0x529253,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x529253,'blur',()=>this['actionIndicator']=null);}['_createCommentInputView'](){const _0x1dac03=super['_createCommentInputView']();return _0x1dac03['bind']('placeholder')['to'](this),_0x1dac03;}['render'](){super['render'](),this['_attachActions'](this['editButton']['element'],'edit'),this['_attachActions'](this['removeButton']['element'],'remove');}}_0x5e4b4d(ot,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
- var _0x4319=['fire','set','appendChild','registerChild','submit','element','render','remove','_removeConfirm','once','deregisterChild','isConfirm','confirmView','cancel','locale','destroy'];(function(_0x5e6f1d,_0x4319fb){var _0x5bee74=function(_0x5d2cd0){while(--_0x5d2cd0){_0x5e6f1d['push'](_0x5e6f1d['shift']());}};_0x5bee74(++_0x4319fb);}(_0x4319,0x1f1));var _0x5bee=function(_0x5e6f1d,_0x4319fb){_0x5e6f1d=_0x5e6f1d-0x0;var _0x5bee74=_0x4319[_0x5e6f1d];return _0x5bee74;};import _0xa8ccc8 from'./confirmview';export default{'showConfirm'(_0x443e72,_0x3a03e6){return this[_0x5bee('0xb')]=new _0xa8ccc8(this[_0x5bee('0xd')]),this[_0x5bee('0xb')][_0x5bee('0x5')](),this['confirmView']['message']=_0x443e72,this['confirmView'][_0x5bee('0x8')](_0x5bee('0xc'),()=>{this[_0x5bee('0x7')]();}),this['confirmView'][_0x5bee('0x8')]('submit',()=>{this[_0x5bee('0x7')]();}),_0x3a03e6[_0x5bee('0x1')](this['confirmView']['element']),this[_0x5bee('0x2')](this[_0x5bee('0xb')]),this[_0x5bee('0x0')](_0x5bee('0xa'),!0x0),new Promise(_0x108ade=>this[_0x5bee('0xb')]['on'](_0x5bee('0x3'),_0x108ade));},'cancelConfirm'(){this[_0x5bee('0xa')]&&this[_0x5bee('0xb')][_0x5bee('0xf')](_0x5bee('0xc'));},'_removeConfirm'(){this[_0x5bee('0xb')][_0x5bee('0x4')][_0x5bee('0x6')](),this[_0x5bee('0x9')](this[_0x5bee('0xb')]),this[_0x5bee('0xa')]=!0x1,this['confirmView'][_0x5bee('0xe')](),delete this[_0x5bee('0xb')];}};
23
+ var _0x27ed=['fire','locale','element','set','destroy','cancel','confirmView','isConfirm','remove','message','submit','once','render','appendChild','_removeConfirm'];(function(_0x4cb737,_0x27eda6){var _0x6dce51=function(_0x28e0ac){while(--_0x28e0ac){_0x4cb737['push'](_0x4cb737['shift']());}};_0x6dce51(++_0x27eda6);}(_0x27ed,0x1a6));var _0x6dce=function(_0x4cb737,_0x27eda6){_0x4cb737=_0x4cb737-0x0;var _0x6dce51=_0x27ed[_0x4cb737];return _0x6dce51;};import _0x5c64d9 from'./confirmview';export default{'showConfirm'(_0x13d624,_0xc0636d){return this[_0x6dce('0x4')]=new _0x5c64d9(this[_0x6dce('0xe')]),this[_0x6dce('0x4')][_0x6dce('0xa')](),this[_0x6dce('0x4')][_0x6dce('0x7')]=_0x13d624,this[_0x6dce('0x4')][_0x6dce('0x9')]('cancel',()=>{this['_removeConfirm']();}),this['confirmView'][_0x6dce('0x9')](_0x6dce('0x8'),()=>{this[_0x6dce('0xc')]();}),_0xc0636d[_0x6dce('0xb')](this[_0x6dce('0x4')][_0x6dce('0x0')]),this['registerChild'](this['confirmView']),this[_0x6dce('0x1')](_0x6dce('0x5'),!0x0),new Promise(_0xe5191d=>this['confirmView']['on'](_0x6dce('0x8'),_0xe5191d));},'cancelConfirm'(){this[_0x6dce('0x5')]&&this[_0x6dce('0x4')][_0x6dce('0xd')](_0x6dce('0x3'));},'_removeConfirm'(){this['confirmView']['element'][_0x6dce('0x6')](),this['deregisterChild'](this[_0x6dce('0x4')]),this[_0x6dce('0x5')]=!0x1,this[_0x6dce('0x4')][_0x6dce('0x2')](),delete this[_0x6dce('0x4')];}};
@@ -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,ButtonView as mt}from'ckeditor5/src/ui';import{icons as Yt}from'ckeditor5/src/core';export default class ii extends bt{constructor(_0x2fc29a){super(_0x2fc29a);const {t:t}=_0x2fc29a,_0x586691=this['bindTemplate'];this['submitView']=this['_createButtonView'](_0x2fc29a,t('Yes'),Yt['check'],'submit'),this['cancelView']=this['_createButtonView'](_0x2fc29a,t('No'),Yt['cancel'],'cancel'),this['set']('message',t('Are\x20you\x20sure?')),this['setTemplate']({'tag':'div','attributes':{'class':['ck-thread__remove-confirm']},'children':[{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-inner'},'children':[{'tag':'p','children':[{'text':_0x586691['to']('message')}]},{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-actions'},'children':[this['submitView'],this['cancelView']]}]}]});}['_createButtonView'](_0x47e923,_0x21b0ab,_0x2b510c,_0x3573ba){const _0x230fde=new mt(_0x47e923);return _0x230fde['label']=_0x21b0ab,_0x230fde['icon']=_0x2b510c,_0x230fde['extendTemplate']({'attributes':{'class':'ck-thread__remove-confirm-'+_0x3573ba}}),_0x230fde['on']('execute',()=>this['fire'](_0x3573ba)),_0x230fde;}}
23
+ import{View as ht,ButtonView as mt}from'ckeditor5/src/ui';import{icons as Gt}from'ckeditor5/src/core';export default class ii extends ht{constructor(_0x3b5fa7){super(_0x3b5fa7);const {t:t}=_0x3b5fa7,_0x553810=this['bindTemplate'];this['submitView']=this['_createButtonView'](_0x3b5fa7,t('Yes'),Gt['check'],'submit'),this['cancelView']=this['_createButtonView'](_0x3b5fa7,t('No'),Gt['cancel'],'cancel'),this['set']('message',t('Are\x20you\x20sure?')),this['setTemplate']({'tag':'div','attributes':{'class':['ck-thread__remove-confirm']},'children':[{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-inner'},'children':[{'tag':'p','children':[{'text':_0x553810['to']('message')}]},{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-actions'},'children':[this['submitView'],this['cancelView']]}]}]});}['_createButtonView'](_0x20ca34,_0x37b9ba,_0x2e9b67,_0x58a11c){const _0x55b52d=new mt(_0x20ca34);return _0x55b52d['label']=_0x37b9ba,_0x55b52d['icon']=_0x2e9b67,_0x55b52d['extendTemplate']({'attributes':{'class':'ck-thread__remove-confirm-'+_0x58a11c}}),_0x55b52d['on']('execute',()=>this['fire'](_0x58a11c)),_0x55b52d;}}
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 _0x5409=['pluginName','requires'];(function(_0x1a03b2,_0x54095a){var _0x3c0948=function(_0x58260a){while(--_0x58260a){_0x1a03b2['push'](_0x1a03b2['shift']());}};_0x3c0948(++_0x54095a);}(_0x5409,0x6a));var _0x3c09=function(_0x1a03b2,_0x54095a){_0x1a03b2=_0x1a03b2-0x0;var _0x3c0948=_0x5409[_0x1a03b2];return _0x3c0948;};import{Plugin as _0x33c462}from'ckeditor5/src/core';import _0x2c7697 from'./comments/commentsrepository';import _0x1c5fc9 from'./comments/commentsediting';import _0x177e2e from'./comments/commentsui';import _0x2589d9 from'./commentsonly';import _0x237a03 from'./annotations/widesidebar';import _0x1b9b63 from'./annotations/narrowsidebar';import _0x2edf6b from'./annotations/inlineannotations';export default class c extends _0x33c462{static get[_0x3c09('0x1')](){return[_0x2c7697,_0x1c5fc9,_0x177e2e,_0x2589d9,_0x237a03,_0x1b9b63,_0x2edf6b];}static get[_0x3c09('0x0')](){return'Comments';}}
23
+ var _0x2967=['requires','pluginName','Comments'];(function(_0x735e60,_0x2967b6){var _0x2d6222=function(_0x367482){while(--_0x367482){_0x735e60['push'](_0x735e60['shift']());}};_0x2d6222(++_0x2967b6);}(_0x2967,0x82));var _0x2d62=function(_0x735e60,_0x2967b6){_0x735e60=_0x735e60-0x0;var _0x2d6222=_0x2967[_0x735e60];return _0x2d6222;};import{Plugin as _0x157fae}from'ckeditor5/src/core';import _0x471551 from'./comments/commentsrepository';import _0x2608e2 from'./comments/commentsediting';import _0x5bcd3a from'./comments/commentsui';import _0x1df1fa from'./commentsonly';import _0x30d62b from'./annotations/widesidebar';import _0x31482b from'./annotations/narrowsidebar';import _0x528d98 from'./annotations/inlineannotations';export default class c extends _0x157fae{static get[_0x2d62('0x2')](){return[_0x471551,_0x2608e2,_0x5bcd3a,_0x1df1fa,_0x30d62b,_0x31482b,_0x528d98];}static get[_0x2d62('0x0')](){return _0x2d62('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 _0x4bf4=['addCommentThread','view','commentsOnlyMode','get','stopListening','_disableCommentsOnlyMode','isEnabled','stop','editor','set','listenTo','commentsOnly','editing','affectsData','requires','CommentsOnly','_enableCommentsOnlyMode','document','DragDrop','clearForceDisabled','plugins','highest','delete','forceDisabled','has','pluginName','commands'];(function(_0x48e44e,_0x4bf46f){const _0x2e4f85=function(_0x1fc67b){while(--_0x1fc67b){_0x48e44e['push'](_0x48e44e['shift']());}};_0x2e4f85(++_0x4bf46f);}(_0x4bf4,0x196));const _0x2e4f=function(_0x48e44e,_0x4bf46f){_0x48e44e=_0x48e44e-0x0;let _0x2e4f85=_0x4bf4[_0x48e44e];return _0x2e4f85;};import{Plugin as _0x179591}from'ckeditor5/src/core';import _0x1deb6e from'./comments/commentsediting';export default class e extends _0x179591{static get[_0x2e4f('0x18')](){return _0x2e4f('0xe');}static get[_0x2e4f('0xd')](){return[_0x1deb6e];}constructor(_0x2b64bb){super(_0x2b64bb),this[_0x2e4f('0x8')](_0x2e4f('0x5'),null),this['on']('change:isEnabled',(_0x2b44f3,_0xbbbe68,_0x2c66f8)=>{_0x2c66f8?this[_0x2e4f('0xf')]():this['_disableCommentsOnlyMode']();});}['afterInit'](){null===this[_0x2e4f('0x5')]&&(this[_0x2e4f('0x5')]=!!this['editor']['config'][_0x2e4f('0x2')](_0x2e4f('0xa')));}['_enableCommentsOnlyMode'](){for(const [_0x50b384,_0x572aad]of this[_0x2e4f('0x7')][_0x2e4f('0x19')])_0x572aad[_0x2e4f('0xc')]&&_0x2e4f('0x1a')!==_0x50b384&&_0x572aad[_0x2e4f('0x16')]('commentsOnlyMode');this[_0x2e4f('0x7')][_0x2e4f('0x13')][_0x2e4f('0x17')]('DragDrop')&&this[_0x2e4f('0x7')][_0x2e4f('0x13')][_0x2e4f('0x2')](_0x2e4f('0x11'))[_0x2e4f('0x16')](_0x2e4f('0x1'));const _0x27014c=this[_0x2e4f('0x7')][_0x2e4f('0xb')][_0x2e4f('0x0')]['document'];this[_0x2e4f('0x9')](_0x27014c,'cut',_0xd001ef=>_0xd001ef[_0x2e4f('0x6')](),{'priority':_0x2e4f('0x14')}),this['listenTo'](_0x27014c,'clipboardInput',_0x12f50c=>_0x12f50c[_0x2e4f('0x6')](),{'priority':_0x2e4f('0x14')}),this[_0x2e4f('0x9')](_0x27014c,_0x2e4f('0x15'),_0x3ad44f=>_0x3ad44f['stop'](),{'priority':_0x2e4f('0x14')});}[_0x2e4f('0x4')](){for(const [_0x14d906,_0x1a0089]of this['editor'][_0x2e4f('0x19')])_0x1a0089['affectsData']&&_0x2e4f('0x1a')!==_0x14d906&&_0x1a0089[_0x2e4f('0x12')](_0x2e4f('0x1'));this[_0x2e4f('0x3')](this[_0x2e4f('0x7')][_0x2e4f('0xb')]['view'][_0x2e4f('0x10')]);}}
23
+ const _0x21a9=['_enableCommentsOnlyMode','get','DragDrop','highest','cut','plugins','commands','commentsOnlyMode','stop','has','forceDisabled','affectsData','stopListening','requires','delete','commentsOnly','isEnabled','listenTo','document','view','clearForceDisabled','editing','pluginName','change:isEnabled','clipboardInput','editor','set','addCommentThread'];(function(_0x5385b4,_0x21a9c8){const _0x5cf9bd=function(_0x449c7f){while(--_0x449c7f){_0x5385b4['push'](_0x5385b4['shift']());}};_0x5cf9bd(++_0x21a9c8);}(_0x21a9,0x1c3));const _0x5cf9=function(_0x5385b4,_0x21a9c8){_0x5385b4=_0x5385b4-0x0;let _0x5cf9bd=_0x21a9[_0x5385b4];return _0x5cf9bd;};import{Plugin as _0xa3ede1}from'ckeditor5/src/core';import _0x43bf87 from'./comments/commentsediting';export default class e extends _0xa3ede1{static get[_0x5cf9('0x13')](){return'CommentsOnly';}static get[_0x5cf9('0xa')](){return[_0x43bf87];}constructor(_0x1d2ab5){super(_0x1d2ab5),this[_0x5cf9('0x17')]('isEnabled',null),this['on'](_0x5cf9('0x14'),(_0x2275b9,_0x43c19d,_0x64fd8b)=>{_0x64fd8b?this[_0x5cf9('0x19')]():this['_disableCommentsOnlyMode']();});}['afterInit'](){null===this[_0x5cf9('0xd')]&&(this['isEnabled']=!!this[_0x5cf9('0x16')]['config'][_0x5cf9('0x1a')](_0x5cf9('0xc')));}[_0x5cf9('0x19')](){for(const [_0x10c387,_0x129b92]of this['editor'][_0x5cf9('0x3')])_0x129b92['affectsData']&&_0x5cf9('0x18')!==_0x10c387&&_0x129b92[_0x5cf9('0x7')](_0x5cf9('0x4'));this[_0x5cf9('0x16')][_0x5cf9('0x2')][_0x5cf9('0x6')](_0x5cf9('0x1b'))&&this[_0x5cf9('0x16')][_0x5cf9('0x2')][_0x5cf9('0x1a')](_0x5cf9('0x1b'))[_0x5cf9('0x7')]('commentsOnlyMode');const _0x244ebe=this[_0x5cf9('0x16')]['editing'][_0x5cf9('0x10')][_0x5cf9('0xf')];this[_0x5cf9('0xe')](_0x244ebe,_0x5cf9('0x1'),_0x3b0354=>_0x3b0354[_0x5cf9('0x5')](),{'priority':'highest'}),this[_0x5cf9('0xe')](_0x244ebe,_0x5cf9('0x15'),_0x51d6f8=>_0x51d6f8[_0x5cf9('0x5')](),{'priority':'highest'}),this[_0x5cf9('0xe')](_0x244ebe,_0x5cf9('0xb'),_0x92681f=>_0x92681f['stop'](),{'priority':_0x5cf9('0x0')});}['_disableCommentsOnlyMode'](){for(const [_0x25f677,_0x538b79]of this[_0x5cf9('0x16')][_0x5cf9('0x3')])_0x538b79[_0x5cf9('0x8')]&&'addCommentThread'!==_0x25f677&&_0x538b79[_0x5cf9('0x11')]('commentsOnlyMode');this[_0x5cf9('0x9')](this[_0x5cf9('0x16')][_0x5cf9('0x12')]['view'][_0x5cf9('0xf')]);}}
@@ -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 _0x36ab=['values','markerNameToElements','name','domConverter','mapper','view'];(function(_0x4fb680,_0x36ab64){const _0x1bd2e3=function(_0x172699){while(--_0x172699){_0x4fb680['push'](_0x4fb680['shift']());}};_0x1bd2e3(++_0x36ab64);}(_0x36ab,0x1b3));const _0x1bd2=function(_0x4fb680,_0x36ab64){_0x4fb680=_0x4fb680-0x0;let _0x1bd2e3=_0x36ab[_0x4fb680];return _0x1bd2e3;};import _0x379a38 from'@ckeditor/ckeditor5-utils/src/first';export default function M(_0x65a588,_0x453554){const _0x619e78=_0x65a588[_0x1bd2('0x1')][_0x1bd2('0x4')](_0x453554[_0x1bd2('0x5')]),_0x534434=_0x379a38(_0x619e78[_0x1bd2('0x3')]());return _0x65a588[_0x1bd2('0x2')][_0x1bd2('0x0')]['mapViewToDom'](_0x534434);}
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(_0x7b4d10,_0x14351e){const t=_0x7b4d10['t'];if('PENDING_ACTION_COMMENT_THREAD'==_0x14351e)return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});}
23
+ export function getTranslation(_0x46e7b4,_0x1b566a){const t=_0x46e7b4['t'];if('PENDING_ACTION_COMMENT_THREAD'==_0x1b566a)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 _0x11a0=['disconnect','observe','attributes','type','class','childList','cancel'];(function(_0x3b4eaf,_0x11a09d){const _0x38ccf2=function(_0x41c28e){while(--_0x41c28e){_0x3b4eaf['push'](_0x3b4eaf['shift']());}};_0x38ccf2(++_0x11a09d);}(_0x11a0,0x15d));const _0x38cc=function(_0x3b4eaf,_0x11a09d){_0x3b4eaf=_0x3b4eaf-0x0;let _0x38ccf2=_0x11a0[_0x3b4eaf];return _0x38ccf2;};import{throttle as _0x5eb47b}from'lodash-es';export default function ct(_0x195612){const _0x529206=_0x5eb47b(_0x195612,0x1e),_0xb97f77=new MutationObserver(_0x2f7fec=>{for(const _0xeb9778 of _0x2f7fec)(_0x38cc('0x3')==_0xeb9778[_0x38cc('0x4')]&&_0x38cc('0x5')==_0xeb9778['attributeName']||_0x38cc('0x6')==_0xeb9778[_0x38cc('0x4')])&&_0x529206();});return{'attach'(_0x32caf1){_0xb97f77[_0x38cc('0x2')](_0x32caf1,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0xb97f77[_0x38cc('0x1')](),_0x529206[_0x38cc('0x0')]();}};}
23
+ const _0x377a=['observe','cancel','type','attributes','attributeName'];(function(_0x1ed5c7,_0x377a2d){const _0x3094ea=function(_0x14bf22){while(--_0x14bf22){_0x1ed5c7['push'](_0x1ed5c7['shift']());}};_0x3094ea(++_0x377a2d);}(_0x377a,0xe5));const _0x3094=function(_0x1ed5c7,_0x377a2d){_0x1ed5c7=_0x1ed5c7-0x0;let _0x3094ea=_0x377a[_0x1ed5c7];return _0x3094ea;};import{throttle as _0x584edc}from'lodash-es';export default function ut(_0x4025b2){const _0x35c76f=_0x584edc(_0x4025b2,0x1e),_0x2a4316=new MutationObserver(_0x2ee4a2=>{for(const _0x3fc623 of _0x2ee4a2)(_0x3094('0x4')==_0x3fc623[_0x3094('0x3')]&&'class'==_0x3fc623[_0x3094('0x0')]||'childList'==_0x3fc623[_0x3094('0x3')])&&_0x35c76f();});return{'attach'(_0x51096f){_0x2a4316[_0x3094('0x1')](_0x51096f,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x2a4316['disconnect'](),_0x35c76f[_0x3094('0x2')]();}};}
@@ -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 {
@@ -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 {
@@ -4,7 +4,7 @@
4
4
  CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
5
5
  all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
6
6
 
7
- Copyright (c) 2003-2021, CKSource Frederico Knabben. All rights reserved.
7
+ Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
8
8
 
9
9
  !-->
10
10
 
@@ -4,7 +4,7 @@
4
4
  CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
5
5
  all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
6
6
 
7
- Copyright (c) 2003-2021, CKSource Frederico Knabben. All rights reserved.
7
+ Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
8
8
 
9
9
  !-->
10
10
 
@@ -4,7 +4,7 @@
4
4
  CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
5
5
  all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
6
6
 
7
- Copyright (c) 2003-2021, CKSource Frederico Knabben. All rights reserved.
7
+ Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
8
8
 
9
9
  !-->
10
10
 
@@ -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 {
package/theme/sidebar.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 {
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- const _0x5ed7=['invalid-date-time-format','dateTimeFormat','\x27Last\x27\x20EEEE\x20hh:mma','function','\x27Today\x27\x20hh:mma'];(function(_0x4bcf8d,_0x5ed7af){const _0x505b48=function(_0xc36bcb){while(--_0xc36bcb){_0x4bcf8d['push'](_0x4bcf8d['shift']());}};_0x505b48(++_0x5ed7af);}(_0x5ed7,0x1a2));const _0x505b=function(_0x4bcf8d,_0x5ed7af){_0x4bcf8d=_0x4bcf8d-0x0;let _0x505b48=_0x5ed7[_0x4bcf8d];return _0x505b48;};import _0x57f122 from'date-fns/format';import _0x5eb0cd from'date-fns/parseISO';import _0x506666 from'date-fns/differenceInCalendarDays';import _0x6b54dc from'@ckeditor/ckeditor5-utils/src/ckeditorerror';export default function J(_0x2a1ff0={}){if(void 0x0!==_0x2a1ff0[_0x505b('0x3')]&&_0x505b('0x0')!=typeof _0x2a1ff0[_0x505b('0x3')])throw new _0x6b54dc(_0x505b('0x2'));return _0x1b01b4=>{const _0x22873b='string'==typeof _0x1b01b4?_0x5eb0cd(_0x1b01b4):_0x1b01b4,_0x430fa9=new Date(),_0x18fa01=_0x506666(_0x430fa9,_0x22873b);return _0x2a1ff0[_0x505b('0x3')]?_0x2a1ff0[_0x505b('0x3')](_0x22873b):_0x57f122(_0x22873b,0x0===_0x18fa01?_0x505b('0x1'):0x1===_0x18fa01?'\x27Yesterday\x27\x20hh:mma':_0x18fa01<0x7?_0x505b('0x4'):'MM-dd-yyyy\x20hh:mma');};}
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- const _0x1f36=['slice','join','pop','replace','push','startsWith','length','match','indexOf','substring'];(function(_0x10f697,_0x1f36b8){const _0x5433d3=function(_0x119035){while(--_0x119035){_0x10f697['push'](_0x10f697['shift']());}};_0x5433d3(++_0x1f36b8);}(_0x1f36,0xab));const _0x5433=function(_0x10f697,_0x1f36b8){_0x10f697=_0x10f697-0x0;let _0x5433d3=_0x1f36[_0x10f697];return _0x5433d3;};export default function nn(_0x59488e,{limit:_0x5f478e,suffix:_0x199053='...'}){const _0x156d95=[];let _0x27c7cd=0x0;const _0x50c39f=_0x59488e['replace'](/</g,'\x0a<')[_0x5433('0x2')](/>/g,'>\x0a')[_0x5433('0x2')](/^\n/g,'')[_0x5433('0x2')](/\n$/g,'')['split']('\x0a');for(let _0x2623bc=0x0;_0x2623bc<_0x50c39f[_0x5433('0x5')];_0x2623bc++){let _0x431f5f=_0x50c39f[_0x2623bc];const _0x30fa99=tn(_0x431f5f);if(_0x431f5f[_0x5433('0x4')]('<')){if(_0x27c7cd>=_0x5f478e){const _0x3cb775=_0x431f5f[_0x5433('0x6')](/[a-zA-Z]+/)[0x0];_0x431f5f[_0x5433('0x4')]('</')?(_0x156d95[_0x5433('0x5')]&&(_0x431f5f=''),_0x156d95[_0x5433('0x1')]()):(_0x156d95['push'](_0x3cb775),_0x431f5f='');}}else{if(_0x27c7cd>=_0x5f478e)_0x431f5f='';else{if(_0x27c7cd+_0x30fa99['length']>=_0x5f478e){let _0x40285d=_0x5f478e-_0x27c7cd;if('\x20'===_0x30fa99[_0x40285d-0x1])_0x40285d--;else{const _0x2c0aa0=_0x30fa99[_0x5433('0x9')](_0x40285d)[_0x5433('0x7')]('\x20');-0x1!==_0x2c0aa0?_0x40285d+=_0x2c0aa0:_0x40285d=_0x431f5f['length'];}_0x431f5f=_0x30fa99[_0x5433('0x9')](0x0,_0x40285d)[_0x5433('0x0')]('')+_0x199053,_0x27c7cd=_0x5f478e;}else _0x27c7cd+=_0x30fa99[_0x5433('0x5')];}}_0x50c39f[_0x2623bc]=_0x431f5f;}return _0x50c39f[_0x5433('0x0')]('\x0a')[_0x5433('0x2')](/\n/g,'');}function tn(_0x21a7c3){const _0x1cbf43=[];for(let _0x39ec61=0x0;_0x39ec61<_0x21a7c3[_0x5433('0x5')];_0x39ec61++){const _0x155bd2=_0x21a7c3[_0x5433('0x8')](_0x39ec61)['match'](/^&[a-z0-9#]+;/);if(_0x155bd2){const _0x1af5d3=_0x155bd2[0x0];_0x1cbf43[_0x5433('0x3')](_0x1af5d3),_0x39ec61+=_0x1af5d3[_0x5433('0x5')]-0x1;}else _0x1cbf43['push'](_0x21a7c3[_0x39ec61]);}return _0x1cbf43;}