@ckeditor/ckeditor5-comments 39.0.1 → 39.0.2

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 (107) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/LICENSE.md +5 -5
  3. package/README.md +13 -13
  4. package/build/comments.js +1 -1
  5. package/build/translations/fa.js +1 -1
  6. package/lang/translations/af.po +1 -0
  7. package/lang/translations/ar.po +1 -0
  8. package/lang/translations/bg.po +1 -0
  9. package/lang/translations/bn.po +1 -0
  10. package/lang/translations/bs.po +1 -0
  11. package/lang/translations/ca.po +1 -0
  12. package/lang/translations/cs.po +1 -0
  13. package/lang/translations/da.po +1 -0
  14. package/lang/translations/de-ch.po +1 -0
  15. package/lang/translations/de.po +1 -0
  16. package/lang/translations/el.po +1 -0
  17. package/lang/translations/en-au.po +1 -0
  18. package/lang/translations/en.po +1 -0
  19. package/lang/translations/es-co.po +1 -0
  20. package/lang/translations/es.po +1 -0
  21. package/lang/translations/et.po +1 -0
  22. package/lang/translations/fa.po +10 -9
  23. package/lang/translations/fi.po +1 -0
  24. package/lang/translations/fr.po +1 -0
  25. package/lang/translations/gl.po +1 -0
  26. package/lang/translations/he.po +1 -0
  27. package/lang/translations/hi.po +1 -0
  28. package/lang/translations/hr.po +1 -0
  29. package/lang/translations/hu.po +1 -0
  30. package/lang/translations/id.po +1 -0
  31. package/lang/translations/it.po +1 -0
  32. package/lang/translations/ja.po +1 -0
  33. package/lang/translations/jv.po +1 -0
  34. package/lang/translations/ko.po +1 -0
  35. package/lang/translations/lt.po +1 -0
  36. package/lang/translations/lv.po +1 -0
  37. package/lang/translations/ms.po +1 -0
  38. package/lang/translations/nl.po +1 -0
  39. package/lang/translations/no.po +1 -0
  40. package/lang/translations/pl.po +1 -0
  41. package/lang/translations/pt-br.po +1 -0
  42. package/lang/translations/pt.po +1 -0
  43. package/lang/translations/ro.po +1 -0
  44. package/lang/translations/ru.po +1 -0
  45. package/lang/translations/sk.po +1 -0
  46. package/lang/translations/sq.po +1 -0
  47. package/lang/translations/sr-latn.po +1 -0
  48. package/lang/translations/sr.po +1 -0
  49. package/lang/translations/sv.po +1 -0
  50. package/lang/translations/th.po +1 -0
  51. package/lang/translations/tk.po +1 -0
  52. package/lang/translations/tr.po +1 -0
  53. package/lang/translations/tt.po +1 -0
  54. package/lang/translations/ug.po +1 -0
  55. package/lang/translations/uk.po +1 -0
  56. package/lang/translations/ur.po +1 -0
  57. package/lang/translations/vi.po +1 -0
  58. package/lang/translations/zh-cn.po +1 -0
  59. package/lang/translations/zh.po +1 -0
  60. package/package.json +3 -7
  61. package/src/annotations/annotation.js +1 -1
  62. package/src/annotations/annotationcollection.js +1 -1
  63. package/src/annotations/annotations.js +1 -1
  64. package/src/annotations/annotationsuis.js +1 -1
  65. package/src/annotations/editorannotations.js +1 -1
  66. package/src/annotations/inlineannotations.js +1 -1
  67. package/src/annotations/narrowsidebar.js +1 -1
  68. package/src/annotations/sidebar.js +1 -1
  69. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  70. package/src/annotations/view/annotationview.js +1 -1
  71. package/src/annotations/view/sidebaritemview.js +1 -1
  72. package/src/annotations/view/sidebarview.js +1 -1
  73. package/src/annotations/widesidebar.js +1 -1
  74. package/src/comments/addcommentthreadcommand.js +1 -1
  75. package/src/comments/commentsarchive.js +1 -1
  76. package/src/comments/commentsarchiveui.js +1 -1
  77. package/src/comments/commentsediting.js +1 -1
  78. package/src/comments/commentsrepository.js +1 -1
  79. package/src/comments/commentsui.js +1 -1
  80. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  81. package/src/comments/integrations/importword.js +1 -1
  82. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  83. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  84. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  85. package/src/comments/ui/commentthreadcontroller.js +1 -1
  86. package/src/comments/ui/view/basecommentthreadview.d.ts +1 -1
  87. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  88. package/src/comments/ui/view/basecommentview.js +1 -1
  89. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  90. package/src/comments/ui/view/commentcontentview.js +1 -1
  91. package/src/comments/ui/view/commentinputview.js +1 -1
  92. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  93. package/src/comments/ui/view/commentslistview.js +1 -1
  94. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  95. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  96. package/src/comments/ui/view/commentthreadview.js +1 -1
  97. package/src/comments/ui/view/commentview.js +1 -1
  98. package/src/comments.js +1 -1
  99. package/src/commentsonly.js +1 -1
  100. package/src/utils/common-translations.js +1 -1
  101. package/src/utils/createmutationobserver.js +1 -1
  102. package/theme/annotation.css +0 -2
  103. package/theme/comment.css +37 -37
  104. package/theme/commentmarker.css +5 -5
  105. package/theme/commentthread.css +56 -56
  106. package/theme/sidebar-narrow.css +2 -2
  107. package/theme/sidebar.css +11 -11
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x283f=['ck-annotation__content-wrapper','ck-annotation__main','push','ck-comment__actions','icon','add','bind','EXTERNAL_IMPORT_WORD_COMMENT','@external','remove','set','Delete\x20comment?','visibleView','ck-comment__info-time','bindTemplate','then','authoredAt','label','setTemplate','source','items','length','actionBar','isVisible','some','buttonView','render','getUserViewNotificationText','Show\x20more\x20items','threeVerticalDots','fire','Edit','panelPosition','creator','edit','ck-annotation__actions','isRemovable','name','isEditable','div','listenTo','switchToEditMode','ck-comment--remove','userView','placeholder','locale','_createEditButton','ck-annotation','ck-comment__info','ck-annotation__info-time','isEnabled','actionIndicator','cancelConfirm','addMany','_model','ck-comment--edit','removeComment','Remove','panelView','isReadOnly','mouseenter','ck-comment--','_createDropdown','change:isVisible','_config','ck-annotation__user','element','editButton','attributes','getTemplate','isSystemComment','ck-comment__external','Reply...','_attachActions','span','isConfirm','ck-annotation__info','createCollection','_createCommentInputView','_createRemoveButton','change:isRemovable','blur','importWord','showConfirm','author','execute','mouseleave','extendTemplate','change:isEnabled','isEditMode','withText','focus','EXTERNAL_AVATAR','isExternal','ck-comment__user','removeButton'];(function(_0x28118d,_0x283fc8){const _0x5b7a01=function(_0x3c4d2b){while(--_0x3c4d2b){_0x28118d['push'](_0x28118d['shift']());}};_0x5b7a01(++_0x283fc8);}(_0x283f,0x10c));const _0x5b7a=function(_0x28118d,_0x283fc8){_0x28118d=_0x28118d-0x0;let _0x5b7a01=_0x283f[_0x28118d];return _0x5b7a01;};import{ButtonView as _0x479ce7,createDropdown as _0x3b2926,ListView as _0x3a7fb2,ListItemView as _0x3ef960}from'ckeditor5/src/ui';import{icons as _0x4bb238}from'ckeditor5/src/core';import{UserView as _0x855dec,ConfirmMixin as _0x39e3b4}from'ckeditor5-collaboration/src/collaboration-core';import _0x209590 from'./basecommentview';import _0x31b80c from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x3d446c}from'../../../utils/common-translations';export default class ut extends _0x39e3b4(_0x209590){constructor(_0xf4310a,_0x2854d8,_0x28cf05){super(_0xf4310a,_0x2854d8,_0x28cf05),this[_0x5b7a('0x1e')](_0x5b7a('0x47'),null),this[_0x5b7a('0x1e')](_0x5b7a('0x40'),_0x3d446c(_0xf4310a,_0x5b7a('0x5c'))),this[_0x5b7a('0x1a')]('authoredAt')['to'](_0x2854d8),this[_0x5b7a('0x1a')]('resolvedAt')['to'](_0x2854d8),this[_0x5b7a('0x2a')]=this[_0x5b7a('0x1')](),this['isSystemComment']||(this[_0x5b7a('0x57')]=this[_0x5b7a('0x42')](),this[_0x5b7a('0x13')]=this[_0x5b7a('0x3')](),this['items']=this[_0x5b7a('0x1')](),this[_0x5b7a('0x28')][_0x5b7a('0x49')]([this['editButton'],this[_0x5b7a('0x13')]]),this['dropdown']=this[_0x5b7a('0x52')](),this[_0x5b7a('0x2a')][_0x5b7a('0x19')](this['dropdown'])),this[_0x5b7a('0x3f')]=new _0x855dec(_0xf4310a,_0x2854d8[_0x5b7a('0x8')],this[_0x5b7a('0x2f')]()),this['userView'][_0x5b7a('0xb')]({'attributes':{'class':[_0x5b7a('0x12'),_0x5b7a('0x55')]}}),this[_0x5b7a('0x3c')](_0x2854d8,_0x5b7a('0x4'),()=>this[_0x5b7a('0x48')]()),this[_0x5b7a('0x26')](this[_0x5b7a('0x59')]());}[_0x5b7a('0x59')](){const _0x2142d1=this[_0x5b7a('0x22')],_0x3d46b3=[{'tag':_0x5b7a('0x3b'),'attributes':{'class':[_0x5b7a('0x44'),_0x5b7a('0x0')]},'children':[{'tag':_0x5b7a('0x5e'),'children':[{'text':this[_0x5b7a('0x3f')][_0x5b7a('0x39')]}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x2142d1['to']('authoredAt'),'class':[_0x5b7a('0x21'),_0x5b7a('0x45')]},'children':[{'text':_0x2142d1['to'](_0x5b7a('0x24'),_0x552db3=>this[_0x5b7a('0x54')]['formatDateTime'](_0x552db3))}]}]},{'tag':_0x5b7a('0x3b'),'attributes':{'class':[_0x5b7a('0x17'),_0x5b7a('0x37'),_0x2142d1['if'](_0x5b7a('0xd'),'ck-comment__actions--hidden'),_0x2142d1['if'](_0x5b7a('0xd'),'ck-annotation__actions--hidden')]},'children':this['actionBar']},{'tag':_0x5b7a('0x3b'),'attributes':{'class':[_0x5b7a('0x14')]},'children':this[_0x5b7a('0x20')]}];return this['_model'][_0x5b7a('0x11')]&&_0x3d46b3[_0x5b7a('0x16')]({'tag':_0x5b7a('0x3b'),'attributes':{'class':[_0x5b7a('0x5b')]},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x2142d1['if'](_0x5b7a('0x5f'),'ck-comment--remove-confirmation')],'tabindex':-0x1},'children':[{'tag':_0x5b7a('0x3b'),'attributes':{'class':['ck-comment',_0x5b7a('0x43'),_0x2142d1['if'](_0x5b7a('0xd'),_0x5b7a('0x4b')),_0x2142d1['if'](_0x5b7a('0x5a'),'ck-comment--info'),_0x2142d1['to']('actionIndicator',_0x17f8de=>_0x17f8de?_0x5b7a('0x51')+_0x17f8de:'')],'data-author-id':this[_0x5b7a('0x4a')][_0x5b7a('0x8')]['id'],'data-comment-id':this[_0x5b7a('0x4a')]['id']},'children':[this[_0x5b7a('0x3f')],{'tag':_0x5b7a('0x3b'),'attributes':{'class':['ck-comment__main',_0x5b7a('0x15')]},'children':_0x3d46b3}]}]};}['_createEditButton'](){const _0x2e5d51=new _0x479ce7(this[_0x5b7a('0x41')]);return _0x2e5d51[_0x5b7a('0x25')]=_0x3d446c(this[_0x5b7a('0x41')],_0x5b7a('0x33')),_0x2e5d51[_0x5b7a('0x18')]=_0x4bb238['pencil'],_0x2e5d51[_0x5b7a('0xe')]=!0x0,_0x2e5d51['extendTemplate']({'attributes':{'class':_0x5b7a('0x4b')}}),_0x2e5d51['bind'](_0x5b7a('0x46'))['to'](this[_0x5b7a('0x4a')],_0x5b7a('0x4f'),_0x5df5bb=>!_0x5df5bb),_0x2e5d51[_0x5b7a('0x1a')](_0x5b7a('0x2b'))['to'](this[_0x5b7a('0x4a')],_0x5b7a('0x3a')),_0x2e5d51['on'](_0x5b7a('0x9'),()=>this[_0x5b7a('0x3d')]()),_0x2e5d51;}[_0x5b7a('0x3')](){const _0x4f012f=new _0x479ce7(this['locale']);return _0x4f012f[_0x5b7a('0x25')]=_0x3d446c(this[_0x5b7a('0x41')],_0x5b7a('0x4d')),_0x4f012f[_0x5b7a('0x18')]=_0x31b80c,_0x4f012f[_0x5b7a('0xe')]=!0x0,_0x4f012f[_0x5b7a('0xb')]({'attributes':{'class':_0x5b7a('0x3e')}}),_0x4f012f['bind']('isEnabled')['to'](this[_0x5b7a('0x4a')],_0x5b7a('0x4f'),_0x4bbcfa=>!_0x4bbcfa),_0x4f012f[_0x5b7a('0x1a')](_0x5b7a('0x2b'))['to'](this[_0x5b7a('0x4a')],_0x5b7a('0x38')),_0x4f012f['on'](_0x5b7a('0x9'),()=>{this[_0x5b7a('0x7')](_0x3d446c(this[_0x5b7a('0x41')],_0x5b7a('0x1f')),this[_0x5b7a('0x56')])[_0x5b7a('0x23')](()=>{this[_0x5b7a('0x32')](_0x5b7a('0x4c'),this[_0x5b7a('0x4a')]['id']);});}),_0x4f012f;}['_createDropdown'](){const _0x408349=_0x3b2926(this[_0x5b7a('0x41')]),_0xf07b35=_0x408349[_0x5b7a('0x4e')]['children'],_0xfbbada=new _0x3a7fb2(this['locale']),_0x29b6d2=(_0x144bb0,_0x3c7119=-0x1)=>{const _0x2c3712=new _0x3ef960(this[_0x5b7a('0x41')]);_0x2c3712['children'][_0x5b7a('0x19')](_0x144bb0);const _0x3720cc=_0x3c7119>-0x1?_0x3c7119:_0xfbbada[_0x5b7a('0x28')][_0x5b7a('0x29')];_0xfbbada[_0x5b7a('0x28')][_0x5b7a('0x19')](_0x2c3712,_0x3720cc),_0x408349['listenTo'](_0x144bb0,_0x5b7a('0xc'),()=>{_0x408349[_0x5b7a('0x46')]=[...this['items']][_0x5b7a('0x2c')](_0x40117a=>_0x40117a['isEnabled']);}),_0x408349['listenTo'](_0x144bb0,_0x5b7a('0x53'),()=>{_0x408349['buttonView'][_0x5b7a('0x2b')]=[...this[_0x5b7a('0x28')]]['some'](_0x4e7f98=>_0x4e7f98[_0x5b7a('0x2b')]);});};_0x408349[_0x5b7a('0x34')]='sw',_0x408349[_0x5b7a('0x2d')]['set']({'label':_0x3d446c(this[_0x5b7a('0x41')],_0x5b7a('0x30')),'icon':_0x4bb238[_0x5b7a('0x31')]}),_0x408349[_0x5b7a('0x46')]=[...this['items']][_0x5b7a('0x2c')](_0x5cbc36=>_0x5cbc36[_0x5b7a('0x46')]),_0x408349['buttonView']['isVisible']=[...this['items']][_0x5b7a('0x2c')](_0x2d445b=>_0x2d445b[_0x5b7a('0x2b')]);for(const _0x284273 of this['items'])_0x29b6d2(_0x284273);return _0xf07b35['add'](_0xfbbada),_0x408349[_0x5b7a('0x3c')](this[_0x5b7a('0x28')],'add',(_0x4dc274,_0x1e1edb,_0x263501)=>{_0x29b6d2(_0x1e1edb,_0x263501);}),_0x408349[_0x5b7a('0x3c')](this['items'],_0x5b7a('0x1d'),(_0x364c70,_0x2165b6,_0x1df840)=>{_0xfbbada[_0x5b7a('0x28')][_0x5b7a('0x1d')](_0x1df840);}),_0x408349;}[_0x5b7a('0x5d')](_0x4aaed5,_0x31b314){const _0x194471=_0x4aaed5&&_0x4aaed5[_0x5b7a('0x56')];_0x194471&&(this[_0x5b7a('0x3c')](_0x194471,_0x5b7a('0x50'),()=>this[_0x5b7a('0x47')]=_0x31b314),this[_0x5b7a('0x3c')](_0x194471,_0x5b7a('0xf'),()=>this[_0x5b7a('0x47')]=_0x31b314),this[_0x5b7a('0x3c')](_0x194471,_0x5b7a('0xa'),()=>this[_0x5b7a('0x47')]=null),this[_0x5b7a('0x3c')](_0x194471,_0x5b7a('0x5'),()=>this[_0x5b7a('0x47')]=null));}[_0x5b7a('0x2')](){const _0x76190d=super[_0x5b7a('0x2')]();return _0x76190d['bind']('placeholder')['to'](this),_0x76190d;}['getExternalCommentNote'](){return _0x5b7a('0x6')===this[_0x5b7a('0x4a')][_0x5b7a('0x58')]['@external'][_0x5b7a('0x27')]?_0x3d446c(this[_0x5b7a('0x41')],_0x5b7a('0x1b')):_0x3d446c(this[_0x5b7a('0x41')],'EXTERNAL_COMMENT');}[_0x5b7a('0x2f')](){return this['_model'][_0x5b7a('0x11')]?_0x5b7a('0x6')===this[_0x5b7a('0x4a')][_0x5b7a('0x58')][_0x5b7a('0x1c')][_0x5b7a('0x27')]?_0x3d446c(this[_0x5b7a('0x41')],'EXTERNAL_IMPORT_WORD_AVATAR',this[_0x5b7a('0x4a')][_0x5b7a('0x35')][_0x5b7a('0x39')]):_0x3d446c(this['locale'],_0x5b7a('0x10'),this[_0x5b7a('0x4a')]['creator'][_0x5b7a('0x39')]):null;}[_0x5b7a('0x2e')](){super['render'](),this[_0x5b7a('0x5d')](this['editButton'],_0x5b7a('0x36')),this[_0x5b7a('0x5d')](this[_0x5b7a('0x13')],_0x5b7a('0x1d'));}}
23
+ const _0x4ea3=['div','isConfirm','ck-annotation__actions--hidden','setTemplate','Edit','ck-comment__external','edit','Reply...','ck-annotation__info-name','element','ck-comment--edit','formatDateTime','attributes','bind','_model','isSystemComment','change:isEnabled','some','authoredAt','createCollection','dropdown','creator','visibleView','ck-annotation','EXTERNAL_AVATAR','remove','icon','_config','Remove','_createEditButton','name','children','add','ck-comment__main','blur','author','locale','switchToEditMode','cancelConfirm','render','label','importWord','ck-comment--info','removeComment','mouseenter','set','editButton','execute','placeholder','ck-annotation__info-time','ck-comment','ck-comment__actions','_attachActions','extendTemplate','items','resolvedAt','ck-annotation__actions','ck-comment__info-name','buttonView','actionBar','panelPosition','ck-comment__info-time','getUserViewNotificationText','length','EXTERNAL_IMPORT_WORD_COMMENT','withText','time','isVisible','ck-annotation__main','removeButton','push','ck-comment--remove','source','userView','ck-comment__wrapper','ck-annotation__info','getExternalCommentNote','change:isVisible','@external','addMany','change:isRemovable','actionIndicator','isExternal','threeVerticalDots','getTemplate','_createRemoveButton','listenTo','EXTERNAL_COMMENT','isEnabled','isReadOnly','panelView','isEditMode','ck-annotation__content-wrapper'];(function(_0x44a862,_0x4ea341){const _0x15ad23=function(_0x1b22e3){while(--_0x1b22e3){_0x44a862['push'](_0x44a862['shift']());}};_0x15ad23(++_0x4ea341);}(_0x4ea3,0x184));const _0x15ad=function(_0x44a862,_0x4ea341){_0x44a862=_0x44a862-0x0;let _0x15ad23=_0x4ea3[_0x44a862];return _0x15ad23;};import{ButtonView as _0x1fe661,createDropdown as _0x3fa574,ListView as _0x5bde5b,ListItemView as _0x2bfa7d}from'ckeditor5/src/ui';import{icons as _0x26690e}from'ckeditor5/src/core';import{UserView as _0x567d64,ConfirmMixin as _0x58ef37}from'ckeditor5-collaboration/src/collaboration-core';import _0x15b155 from'./basecommentview';import _0x176189 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x4a6ef5}from'../../../utils/common-translations';export default class ut extends _0x58ef37(_0x15b155){constructor(_0x1df67a,_0x3436e6,_0x4126ad){super(_0x1df67a,_0x3436e6,_0x4126ad),this[_0x15ad('0x1d')](_0x15ad('0x41'),null),this['set'](_0x15ad('0x20'),_0x4a6ef5(_0x1df67a,_0x15ad('0x54'))),this[_0x15ad('0x5a')](_0x15ad('0x2'))['to'](_0x3436e6),this[_0x15ad('0x5a')](_0x15ad('0x27'))['to'](_0x3436e6),this[_0x15ad('0x2b')]=this['createCollection'](),this[_0x15ad('0x5c')]||(this['editButton']=this[_0x15ad('0xd')](),this['removeButton']=this['_createRemoveButton'](),this[_0x15ad('0x26')]=this[_0x15ad('0x3')](),this[_0x15ad('0x26')][_0x15ad('0x3f')]([this[_0x15ad('0x1e')],this[_0x15ad('0x35')]]),this[_0x15ad('0x4')]=this['_createDropdown'](),this[_0x15ad('0x2b')][_0x15ad('0x10')](this['dropdown'])),this[_0x15ad('0x39')]=new _0x567d64(_0x1df67a,_0x3436e6[_0x15ad('0x13')],this[_0x15ad('0x2e')]()),this[_0x15ad('0x39')][_0x15ad('0x25')]({'attributes':{'class':['ck-comment__user','ck-annotation__user']}}),this[_0x15ad('0x46')](_0x3436e6,_0x15ad('0x40'),()=>this[_0x15ad('0x16')]()),this[_0x15ad('0x50')](this[_0x15ad('0x44')]());}[_0x15ad('0x44')](){const _0x5bf2da=this['bindTemplate'],_0x5bbff8=[{'tag':_0x15ad('0x4d'),'attributes':{'class':['ck-comment__info',_0x15ad('0x3b')]},'children':[{'tag':'span','children':[{'text':this[_0x15ad('0x39')]['name']}],'attributes':{'class':[_0x15ad('0x29'),_0x15ad('0x55')]}},{'tag':_0x15ad('0x32'),'attributes':{'datetime':_0x5bf2da['to'](_0x15ad('0x2')),'class':[_0x15ad('0x2d'),_0x15ad('0x21')]},'children':[{'text':_0x5bf2da['to']('authoredAt',_0x5acb23=>this[_0x15ad('0xb')][_0x15ad('0x58')](_0x5acb23))}]}]},{'tag':_0x15ad('0x4d'),'attributes':{'class':[_0x15ad('0x23'),_0x15ad('0x28'),_0x5bf2da['if'](_0x15ad('0x4b'),'ck-comment__actions--hidden'),_0x5bf2da['if'](_0x15ad('0x4b'),_0x15ad('0x4f'))]},'children':this['actionBar']},{'tag':'div','attributes':{'class':[_0x15ad('0x4c')]},'children':this[_0x15ad('0x6')]}];return this[_0x15ad('0x5b')][_0x15ad('0x42')]&&_0x5bbff8[_0x15ad('0x36')]({'tag':_0x15ad('0x4d'),'attributes':{'class':[_0x15ad('0x52')]},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':[_0x15ad('0x3a'),_0x5bf2da['if'](_0x15ad('0x4e'),'ck-comment--remove-confirmation')],'tabindex':-0x1},'children':[{'tag':_0x15ad('0x4d'),'attributes':{'class':[_0x15ad('0x22'),_0x15ad('0x7'),_0x5bf2da['if'](_0x15ad('0x4b'),'ck-comment--edit'),_0x5bf2da['if']('isSystemComment',_0x15ad('0x1a')),_0x5bf2da['to'](_0x15ad('0x41'),_0x207d2d=>_0x207d2d?'ck-comment--'+_0x207d2d:'')],'data-author-id':this[_0x15ad('0x5b')][_0x15ad('0x13')]['id'],'data-comment-id':this[_0x15ad('0x5b')]['id']},'children':[this[_0x15ad('0x39')],{'tag':_0x15ad('0x4d'),'attributes':{'class':[_0x15ad('0x11'),_0x15ad('0x34')]},'children':_0x5bbff8}]}]};}[_0x15ad('0xd')](){const _0x3cd051=new _0x1fe661(this[_0x15ad('0x14')]);return _0x3cd051['label']=_0x4a6ef5(this[_0x15ad('0x14')],_0x15ad('0x51')),_0x3cd051[_0x15ad('0xa')]=_0x26690e['pencil'],_0x3cd051['withText']=!0x0,_0x3cd051[_0x15ad('0x25')]({'attributes':{'class':_0x15ad('0x57')}}),_0x3cd051[_0x15ad('0x5a')]('isEnabled')['to'](this['_model'],_0x15ad('0x49'),_0x45c376=>!_0x45c376),_0x3cd051[_0x15ad('0x5a')](_0x15ad('0x33'))['to'](this[_0x15ad('0x5b')],'isEditable'),_0x3cd051['on'](_0x15ad('0x1f'),()=>this[_0x15ad('0x15')]()),_0x3cd051;}[_0x15ad('0x45')](){const _0x202772=new _0x1fe661(this['locale']);return _0x202772[_0x15ad('0x18')]=_0x4a6ef5(this[_0x15ad('0x14')],_0x15ad('0xc')),_0x202772[_0x15ad('0xa')]=_0x176189,_0x202772[_0x15ad('0x31')]=!0x0,_0x202772[_0x15ad('0x25')]({'attributes':{'class':_0x15ad('0x37')}}),_0x202772['bind']('isEnabled')['to'](this[_0x15ad('0x5b')],'isReadOnly',_0x68e0d9=>!_0x68e0d9),_0x202772[_0x15ad('0x5a')](_0x15ad('0x33'))['to'](this[_0x15ad('0x5b')],'isRemovable'),_0x202772['on'](_0x15ad('0x1f'),()=>{this['showConfirm'](_0x4a6ef5(this[_0x15ad('0x14')],'Delete\x20comment?'),this[_0x15ad('0x56')])['then'](()=>{this['fire'](_0x15ad('0x1b'),this[_0x15ad('0x5b')]['id']);});}),_0x202772;}['_createDropdown'](){const _0x5e8461=_0x3fa574(this[_0x15ad('0x14')]),_0x28b0ab=_0x5e8461[_0x15ad('0x4a')][_0x15ad('0xf')],_0xee366e=new _0x5bde5b(this['locale']),_0x2eb37c=(_0x15729d,_0x52de11=-0x1)=>{const _0x25d32d=new _0x2bfa7d(this['locale']);_0x25d32d[_0x15ad('0xf')][_0x15ad('0x10')](_0x15729d);const _0x4fb6a9=_0x52de11>-0x1?_0x52de11:_0xee366e[_0x15ad('0x26')][_0x15ad('0x2f')];_0xee366e[_0x15ad('0x26')][_0x15ad('0x10')](_0x25d32d,_0x4fb6a9),_0x5e8461[_0x15ad('0x46')](_0x15729d,_0x15ad('0x0'),()=>{_0x5e8461[_0x15ad('0x48')]=[...this['items']][_0x15ad('0x1')](_0x30bf1a=>_0x30bf1a[_0x15ad('0x48')]);}),_0x5e8461[_0x15ad('0x46')](_0x15729d,_0x15ad('0x3d'),()=>{_0x5e8461['buttonView'][_0x15ad('0x33')]=[...this[_0x15ad('0x26')]][_0x15ad('0x1')](_0x2046b0=>_0x2046b0[_0x15ad('0x33')]);});};_0x5e8461[_0x15ad('0x2c')]='sw',_0x5e8461[_0x15ad('0x2a')]['set']({'label':_0x4a6ef5(this[_0x15ad('0x14')],'Show\x20more\x20items'),'icon':_0x26690e[_0x15ad('0x43')]}),_0x5e8461[_0x15ad('0x48')]=[...this[_0x15ad('0x26')]]['some'](_0x6f7172=>_0x6f7172['isEnabled']),_0x5e8461[_0x15ad('0x2a')][_0x15ad('0x33')]=[...this[_0x15ad('0x26')]][_0x15ad('0x1')](_0xf59733=>_0xf59733[_0x15ad('0x33')]);for(const _0x3ade5c of this['items'])_0x2eb37c(_0x3ade5c);return _0x28b0ab[_0x15ad('0x10')](_0xee366e),_0x5e8461[_0x15ad('0x46')](this[_0x15ad('0x26')],_0x15ad('0x10'),(_0x14cede,_0x1b2906,_0xe03262)=>{_0x2eb37c(_0x1b2906,_0xe03262);}),_0x5e8461[_0x15ad('0x46')](this[_0x15ad('0x26')],_0x15ad('0x9'),(_0x341c95,_0x53f78b,_0x51cacc)=>{_0xee366e[_0x15ad('0x26')][_0x15ad('0x9')](_0x51cacc);}),_0x5e8461;}[_0x15ad('0x24')](_0x11a505,_0x4621f4){const _0x23a05e=_0x11a505&&_0x11a505[_0x15ad('0x56')];_0x23a05e&&(this['listenTo'](_0x23a05e,_0x15ad('0x1c'),()=>this[_0x15ad('0x41')]=_0x4621f4),this['listenTo'](_0x23a05e,'focus',()=>this[_0x15ad('0x41')]=_0x4621f4),this['listenTo'](_0x23a05e,'mouseleave',()=>this['actionIndicator']=null),this[_0x15ad('0x46')](_0x23a05e,_0x15ad('0x12'),()=>this[_0x15ad('0x41')]=null));}['_createCommentInputView'](){const _0x36f230=super['_createCommentInputView']();return _0x36f230[_0x15ad('0x5a')](_0x15ad('0x20'))['to'](this),_0x36f230;}[_0x15ad('0x3c')](){return _0x15ad('0x19')===this[_0x15ad('0x5b')][_0x15ad('0x59')][_0x15ad('0x3e')][_0x15ad('0x38')]?_0x4a6ef5(this[_0x15ad('0x14')],_0x15ad('0x30')):_0x4a6ef5(this[_0x15ad('0x14')],_0x15ad('0x47'));}[_0x15ad('0x2e')](){return this['_model'][_0x15ad('0x42')]?'importWord'===this[_0x15ad('0x5b')][_0x15ad('0x59')]['@external']['source']?_0x4a6ef5(this[_0x15ad('0x14')],'EXTERNAL_IMPORT_WORD_AVATAR',this[_0x15ad('0x5b')][_0x15ad('0x5')][_0x15ad('0xe')]):_0x4a6ef5(this[_0x15ad('0x14')],_0x15ad('0x8'),this[_0x15ad('0x5b')]['creator'][_0x15ad('0xe')]):null;}[_0x15ad('0x17')](){super[_0x15ad('0x17')](),this[_0x15ad('0x24')](this[_0x15ad('0x1e')],_0x15ad('0x53')),this[_0x15ad('0x24')](this['removeButton'],'remove');}}
package/src/comments.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x3506=['requires','pluginName'];(function(_0x516f74,_0x3506fe){var _0x265b37=function(_0xbabfd4){while(--_0xbabfd4){_0x516f74['push'](_0x516f74['shift']());}};_0x265b37(++_0x3506fe);}(_0x3506,0x1ba));var _0x265b=function(_0x516f74,_0x3506fe){_0x516f74=_0x516f74-0x0;var _0x265b37=_0x3506[_0x516f74];return _0x265b37;};import{Plugin as _0x20825f}from'ckeditor5/src/core';import _0x3b6d1a from'./comments/commentsrepository';import _0x38a97e from'./comments/commentsediting';import _0x4ef95f from'./comments/commentsui';import _0x277b46 from'./commentsonly';import _0x359663 from'./annotations/widesidebar';import _0x36757c from'./annotations/narrowsidebar';import _0x4fbd1b from'./annotations/inlineannotations';import _0x3fa7f8 from'./comments/commentsarchiveui';import _0x51da30 from'./comments/commentsarchive';export default class f extends _0x20825f{static get[_0x265b('0x0')](){return[_0x3b6d1a,_0x38a97e,_0x4ef95f,_0x51da30,_0x3fa7f8,_0x277b46,_0x359663,_0x36757c,_0x4fbd1b];}static get[_0x265b('0x1')](){return'Comments';}}
23
+ var _0x13a3=['requires','Comments'];(function(_0x34d9e7,_0x13a3d8){var _0x317c40=function(_0x375eaa){while(--_0x375eaa){_0x34d9e7['push'](_0x34d9e7['shift']());}};_0x317c40(++_0x13a3d8);}(_0x13a3,0x142));var _0x317c=function(_0x34d9e7,_0x13a3d8){_0x34d9e7=_0x34d9e7-0x0;var _0x317c40=_0x13a3[_0x34d9e7];return _0x317c40;};import{Plugin as _0x5bdc40}from'ckeditor5/src/core';import _0x18b493 from'./comments/commentsrepository';import _0x493a58 from'./comments/commentsediting';import _0x328fe4 from'./comments/commentsui';import _0x40452c from'./commentsonly';import _0x4d7dfe from'./annotations/widesidebar';import _0x3b0414 from'./annotations/narrowsidebar';import _0x2a30d9 from'./annotations/inlineannotations';import _0x408ce8 from'./comments/commentsarchiveui';import _0x59df99 from'./comments/commentsarchive';export default class f extends _0x5bdc40{static get[_0x317c('0x0')](){return[_0x18b493,_0x493a58,_0x328fe4,_0x59df99,_0x408ce8,_0x40452c,_0x4d7dfe,_0x3b0414,_0x2a30d9];}static get['pluginName'](){return _0x317c('0x1');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1f4d=['affectsData','requires','afterInit','addCommentThread','editor','config','get','has','commentsOnlyMode','isEnabled','CommentsOnly','commentsOnly','plugins','highest','commands','stop','view','set','editing','listenTo','pluginName','_disableCommentsOnlyMode','change:isEnabled','_enableCommentsOnlyMode','clearForceDisabled','DragDrop','document','forceDisabled','clipboardInput'];(function(_0x527184,_0x1f4d86){const _0x33db7f=function(_0x1d0122){while(--_0x1d0122){_0x527184['push'](_0x527184['shift']());}};_0x33db7f(++_0x1f4d86);}(_0x1f4d,0x1be));const _0x33db=function(_0x527184,_0x1f4d86){_0x527184=_0x527184-0x0;let _0x33db7f=_0x1f4d[_0x527184];return _0x33db7f;};import{Plugin as _0x38f1c7}from'ckeditor5/src/core';import _0x4e490b from'./comments/commentsediting';export default class n extends _0x38f1c7{static get[_0x33db('0x9')](){return _0x33db('0x1c');}static get[_0x33db('0x13')](){return[_0x4e490b];}constructor(_0x2c1ff1){super(_0x2c1ff1),this[_0x33db('0x6')](_0x33db('0x1b'),!0x1),this['on'](_0x33db('0xb'),(_0x200dfe,_0x21e1ff,_0x4b3edb)=>{_0x4b3edb?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}[_0x33db('0x14')](){!this[_0x33db('0x1b')]&&this[_0x33db('0x16')][_0x33db('0x17')]['get'](_0x33db('0x0'))&&(this['isEnabled']=!0x0);}[_0x33db('0xc')](){for(const [_0x2d0abc,_0x4ea5a1]of this[_0x33db('0x16')][_0x33db('0x3')])_0x4ea5a1[_0x33db('0x12')]&&_0x33db('0x15')!==_0x2d0abc&&_0x4ea5a1[_0x33db('0x10')](_0x33db('0x1a'));this[_0x33db('0x16')][_0x33db('0x1')][_0x33db('0x19')]('DragDrop')&&this[_0x33db('0x16')][_0x33db('0x1')][_0x33db('0x18')](_0x33db('0xe'))['forceDisabled'](_0x33db('0x1a'));const _0x35088b=this[_0x33db('0x16')][_0x33db('0x7')]['view'][_0x33db('0xf')];this[_0x33db('0x8')](_0x35088b,'cut',_0x4b91a7=>_0x4b91a7['stop'](),{'priority':_0x33db('0x2')}),this[_0x33db('0x8')](_0x35088b,_0x33db('0x11'),_0x550297=>_0x550297[_0x33db('0x4')](),{'priority':_0x33db('0x2')}),this[_0x33db('0x8')](_0x35088b,'delete',_0x5605a8=>_0x5605a8[_0x33db('0x4')](),{'priority':_0x33db('0x2')});}[_0x33db('0xa')](){for(const [_0x4a368a,_0x2e80b0]of this[_0x33db('0x16')][_0x33db('0x3')])_0x2e80b0[_0x33db('0x12')]&&'addCommentThread'!==_0x4a368a&&_0x2e80b0[_0x33db('0xd')]('commentsOnlyMode');this['stopListening'](this[_0x33db('0x16')][_0x33db('0x7')][_0x33db('0x5')][_0x33db('0xf')]);}}
23
+ const _0x3af4=['forceDisabled','editor','plugins','view','set','affectsData','pluginName','clipboardInput','clearForceDisabled','_disableCommentsOnlyMode','commentsOnlyMode','isEnabled','get','DragDrop','_enableCommentsOnlyMode','highest','addCommentThread','cut','listenTo','delete','CommentsOnly','afterInit','stop','document','commentsOnly','commands','requires'];(function(_0x19e78d,_0x3af452){const _0x56a8f6=function(_0x593731){while(--_0x593731){_0x19e78d['push'](_0x19e78d['shift']());}};_0x56a8f6(++_0x3af452);}(_0x3af4,0xd0));const _0x56a8=function(_0x19e78d,_0x3af452){_0x19e78d=_0x19e78d-0x0;let _0x56a8f6=_0x3af4[_0x19e78d];return _0x56a8f6;};import{Plugin as _0x52b64e}from'ckeditor5/src/core';import _0x5491dd from'./comments/commentsediting';export default class n extends _0x52b64e{static get[_0x56a8('0xe')](){return _0x56a8('0x1');}static get[_0x56a8('0x7')](){return[_0x5491dd];}constructor(_0x20c964){super(_0x20c964),this[_0x56a8('0xc')](_0x56a8('0x13'),!0x1),this['on']('change:isEnabled',(_0x5c6f7e,_0xc9d358,_0x2ab83f)=>{_0x2ab83f?this['_enableCommentsOnlyMode']():this[_0x56a8('0x11')]();});}[_0x56a8('0x2')](){!this[_0x56a8('0x13')]&&this[_0x56a8('0x9')]['config'][_0x56a8('0x14')](_0x56a8('0x5'))&&(this['isEnabled']=!0x0);}[_0x56a8('0x16')](){for(const [_0x2aa2ff,_0x1185a0]of this[_0x56a8('0x9')][_0x56a8('0x6')])_0x1185a0['affectsData']&&_0x56a8('0x18')!==_0x2aa2ff&&_0x1185a0['forceDisabled'](_0x56a8('0x12'));this[_0x56a8('0x9')]['plugins']['has'](_0x56a8('0x15'))&&this[_0x56a8('0x9')][_0x56a8('0xa')]['get']('DragDrop')[_0x56a8('0x8')]('commentsOnlyMode');const _0x53206a=this[_0x56a8('0x9')]['editing'][_0x56a8('0xb')]['document'];this[_0x56a8('0x1a')](_0x53206a,_0x56a8('0x19'),_0x1188c7=>_0x1188c7['stop'](),{'priority':_0x56a8('0x17')}),this[_0x56a8('0x1a')](_0x53206a,_0x56a8('0xf'),_0x4b92b5=>_0x4b92b5[_0x56a8('0x3')](),{'priority':_0x56a8('0x17')}),this[_0x56a8('0x1a')](_0x53206a,_0x56a8('0x0'),_0x5b1904=>_0x5b1904[_0x56a8('0x3')](),{'priority':_0x56a8('0x17')});}['_disableCommentsOnlyMode'](){for(const [_0x1e8920,_0x294bff]of this[_0x56a8('0x9')][_0x56a8('0x6')])_0x294bff[_0x56a8('0xd')]&&_0x56a8('0x18')!==_0x1e8920&&_0x294bff[_0x56a8('0x10')](_0x56a8('0x12'));this['stopListening'](this[_0x56a8('0x9')]['editing']['view'][_0x56a8('0x4')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x566be7,_0x525cff,_0x30a043){const t=_0x566be7['t'];switch(_0x525cff){case'PENDING_ACTION_COMMENT_THREAD':return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});case'Comment':return t('Comment');case'Reply...':return t('Reply...');case'Reply\x20to\x20reopen\x20discussion...':return t('Reply\x20to\x20reopen\x20discussion...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20was\x20made\x20on\x20an\x20element':return t('Comment\x20was\x20made\x20on\x20an\x20element');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Marked\x20as\x20resolved':return t('Marked\x20as\x20resolved');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Resolve':return t('Resolve');case'Reopen':return t('Reopen');case'Remove':return t('Remove');case'Reply':return t('Reply');case'Save':return t('Save');case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x30a043);case'TOO_LONG_COMMENT_ALERT':return t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},_0x30a043);case'EXTERNAL_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20external\x20source.','id':'EXTERNAL_COMMENT'});case'EXTERNAL_IMPORT_WORD_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_COMMENT'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x30a043);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x30a043);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});default:return'';}}
23
+ export function getTranslation(_0x280819,_0x4474c1,_0x4f9eb3){const t=_0x280819['t'];switch(_0x4474c1){case'PENDING_ACTION_COMMENT_THREAD':return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});case'Comment':return t('Comment');case'Reply...':return t('Reply...');case'Reply\x20to\x20reopen\x20discussion...':return t('Reply\x20to\x20reopen\x20discussion...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20was\x20made\x20on\x20an\x20element':return t('Comment\x20was\x20made\x20on\x20an\x20element');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Marked\x20as\x20resolved':return t('Marked\x20as\x20resolved');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Resolve':return t('Resolve');case'Reopen':return t('Reopen');case'Remove':return t('Remove');case'Reply':return t('Reply');case'Save':return t('Save');case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x4f9eb3);case'TOO_LONG_COMMENT_ALERT':return t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},_0x4f9eb3);case'EXTERNAL_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20external\x20source.','id':'EXTERNAL_COMMENT'});case'EXTERNAL_IMPORT_WORD_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_COMMENT'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4f9eb3);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4f9eb3);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});default:return'';}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x9f2d=['attributeName','cancel','childList','characterData','attributes','type'];(function(_0x155337,_0x9f2de2){const _0x39ddfd=function(_0x21c7d9){while(--_0x21c7d9){_0x155337['push'](_0x155337['shift']());}};_0x39ddfd(++_0x9f2de2);}(_0x9f2d,0xbd));const _0x39dd=function(_0x155337,_0x9f2de2){_0x155337=_0x155337-0x0;let _0x39ddfd=_0x9f2d[_0x155337];return _0x39ddfd;};import{throttle as _0x5594c7}from'lodash-es';export default function Dt(_0x480c73){const _0x479abd=_0x5594c7(_0x480c73,0x1e),_0x4ef2f3=new MutationObserver(_0x54481b=>{for(const _0x367272 of _0x54481b)(_0x39dd('0x1')==_0x367272[_0x39dd('0x2')]&&'class'==_0x367272[_0x39dd('0x3')]||_0x39dd('0x5')==_0x367272[_0x39dd('0x2')]||_0x39dd('0x0')==_0x367272[_0x39dd('0x2')])&&_0x479abd();});return{'attach'(_0x420383){_0x4ef2f3['observe'](_0x420383,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x4ef2f3['disconnect'](),_0x479abd[_0x39dd('0x4')]();}};}
23
+ const _0x171e=['class','disconnect','characterData','cancel','attributeName','type','attributes'];(function(_0x2843f7,_0x171e7a){const _0x2bc9c9=function(_0x3a7d4e){while(--_0x3a7d4e){_0x2843f7['push'](_0x2843f7['shift']());}};_0x2bc9c9(++_0x171e7a);}(_0x171e,0x10d));const _0x2bc9=function(_0x2843f7,_0x171e7a){_0x2843f7=_0x2843f7-0x0;let _0x2bc9c9=_0x171e[_0x2843f7];return _0x2bc9c9;};import{throttle as _0x1875e8}from'lodash-es';export default function Dt(_0x4976fd){const _0x1ded84=_0x1875e8(_0x4976fd,0x1e),_0x39f067=new MutationObserver(_0xb4759c=>{for(const _0x13a24f of _0xb4759c)(_0x2bc9('0x3')==_0x13a24f[_0x2bc9('0x2')]&&_0x2bc9('0x4')==_0x13a24f[_0x2bc9('0x1')]||'childList'==_0x13a24f[_0x2bc9('0x2')]||_0x2bc9('0x6')==_0x13a24f[_0x2bc9('0x2')])&&_0x1ded84();});return{'attach'(_0x402197){_0x39f067['observe'](_0x402197,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x39f067[_0x2bc9('0x5')](),_0x1ded84[_0x2bc9('0x0')]();}};}
@@ -26,9 +26,7 @@
26
26
  transition: background-color 300ms ease;
27
27
  padding: var(--ck-spacing-standard);
28
28
  white-space: normal;
29
- }
30
29
 
31
- .ck .ck-annotation {
32
30
  & .ck-button {
33
31
  /* Overwrite CK5 button default styles. */
34
32
  background-color: transparent;
package/theme/comment.css CHANGED
@@ -41,7 +41,7 @@
41
41
 
42
42
  /* Half width of line. */
43
43
  - 2px
44
- );
44
+ );
45
45
  width: 4px;
46
46
  height: 100%;
47
47
  background-color: var(--ck-color-comment-separator);
@@ -68,48 +68,16 @@
68
68
  }
69
69
  }
70
70
 
71
- .ck .ck-comment--info {
72
- & .ck-comment__content {
73
- font-style: italic;
74
- }
75
- }
76
-
77
- .ck .ck-comment__main {
78
- & .ck-comment__input-wrapper {
79
- display: flex;
80
- flex-direction: column;
81
- position: relative;
82
- transition: all 300ms linear;
83
-
84
- & .ck-comment__input {
85
- padding: 0;
86
- }
87
- }
88
- }
89
-
90
71
  .ck .ck-comment__content {
91
72
  word-break: break-word;
92
73
  }
93
74
 
94
- .ck .ck-comment__user {
95
- /* Display user above vertical line. */
96
- z-index: var(--ck-z-default);
97
- }
98
-
99
- /* We need specificity 030 to beat styles in `commentinput.css`. */
100
- .ck-comment__input-actions .ck.ck-button.ck-comment__input-actions--submit {
101
- background: var(--ck-color-base-action);
102
- color: white;
103
-
104
- &:hover {
105
- background: var(--ck-color-button-save);
75
+ .ck .ck-comment--info {
76
+ & .ck-comment__content {
77
+ font-style: italic;
106
78
  }
107
79
  }
108
80
 
109
- .ck-comment__input-actions .ck.ck-button.ck-comment__input-actions--cancel {
110
- color: var(--ck-color-text);
111
- }
112
-
113
81
  /* Common styles for typography inside comment element and editable input.
114
82
  We are styling resetting list-style because of parent <ul> element. */
115
83
  .ck .ck-comment,
@@ -139,6 +107,38 @@ We are styling resetting list-style because of parent <ul> element. */
139
107
  }
140
108
  }
141
109
 
110
+ .ck .ck-comment__main {
111
+ & .ck-comment__input-wrapper {
112
+ display: flex;
113
+ flex-direction: column;
114
+ position: relative;
115
+ transition: all 300ms linear;
116
+
117
+ & .ck-comment__input {
118
+ padding: 0;
119
+ }
120
+ }
121
+ }
122
+
123
+ .ck .ck-comment__user {
124
+ /* Display user above vertical line. */
125
+ z-index: var(--ck-z-default);
126
+ }
127
+
128
+ /* We need specificity 030 to beat styles in `commentinput.css`. */
129
+ .ck-comment__input-actions .ck.ck-button.ck-comment__input-actions--submit {
130
+ background: var(--ck-color-base-action);
131
+ color: hsl(0, 0%, 100%);
132
+
133
+ &:hover {
134
+ background: var(--ck-color-button-save);
135
+ }
136
+ }
137
+
138
+ .ck-comment__input-actions .ck.ck-button.ck-comment__input-actions--cancel {
139
+ color: var(--ck-color-text);
140
+ }
141
+
142
142
  .ck .ck-comment__external {
143
143
  font-style: italic;
144
144
  color: var(--ck-color-annotation-info);
@@ -167,6 +167,6 @@ We are styling resetting list-style because of parent <ul> element. */
167
167
  & .ck-button__label {
168
168
  margin: 0 var(--ck-spacing-large);
169
169
  }
170
- }
170
+ }
171
171
  }
172
172
  }
@@ -28,6 +28,11 @@
28
28
  .ck-comment-marker--active {
29
29
  background: var(--ck-color-comment-marker-active);
30
30
 
31
+ /* See #2469. Inactive comment marker inside an active one should be highlighted too. */
32
+ & .ck-comment-marker {
33
+ background: var(--ck-color-comment-marker-active);
34
+ }
35
+
31
36
  &.ck-widget {
32
37
  border-color: var(--ck-color-comment-marker-active);
33
38
 
@@ -36,9 +41,4 @@
36
41
  background-color: var(--ck-color-comment-marker);
37
42
  }
38
43
  }
39
-
40
- /* See #2469. Inactive comment marker inside an active one should be highlighted too. */
41
- & .ck-comment-marker {
42
- background: var(--ck-color-comment-marker-active);
43
- }
44
44
  }
@@ -10,8 +10,8 @@
10
10
  --ck-color-thread-remove-background: var(--ck-color-comment-remove-background);
11
11
  --ck-color-comment-count: hsl(210, 52%, 57%);
12
12
 
13
- --ck-color-thread-header-background: #FDFADF;
14
- --ck-color-thread-header-active-background: #FFF4A8;
13
+ --ck-color-thread-header-background: hsl(54, 88%, 93%);
14
+ --ck-color-thread-header-active-background: hsl(52, 100%, 83%);
15
15
  }
16
16
 
17
17
  .ck .ck-thread {
@@ -76,7 +76,7 @@
76
76
  z-index: 2;
77
77
 
78
78
  background: var(--ck-color-base-background);
79
- box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
79
+ box-shadow: 0 2px 3px hsla(0, 0%, 100%, 0.2);
80
80
  border-radius: 2px;
81
81
  white-space: normal;
82
82
  box-sizing: border-box;
@@ -84,28 +84,6 @@
84
84
  }
85
85
  }
86
86
 
87
- /* Handle visibility of vertical line below avatars. */
88
- .ck .ck-thread__comments .ck-comment__wrapper {
89
- &:last-of-type {
90
- & .ck-comment::after {
91
- opacity: 0;
92
- }
93
- }
94
- }
95
-
96
- .ck .ck-thread__container {
97
- transition: transform 300ms ease;
98
- }
99
-
100
- .ck .ck-thread__comments {
101
- position: relative;
102
- z-index: var(--ck-z-default);
103
- list-style: none;
104
- margin: 0;
105
- padding: 0;
106
- border-radius: var(--ck-border-radius);
107
- }
108
-
109
87
  .ck .ck-thread__comment-count {
110
88
  /* Make avatar size in the comment smaller than in presence list. */
111
89
  --ck-user-avatar-size: 28px;
@@ -126,21 +104,6 @@
126
104
  }
127
105
  }
128
106
 
129
- .ck .ck-thread--active {
130
- & .ck-comment__options.ck-dropdown {
131
- display: block;
132
- }
133
-
134
- & .ck-thread__input {
135
- display: block;
136
- background-color: var(--ck-color-comment-background);
137
- }
138
-
139
- & .ck-thread__header {
140
- background-color: var(--ck-color-thread-header-active-background);
141
- }
142
- }
143
-
144
107
  .ck .ck-thread--remove {
145
108
  & .ck-comment {
146
109
  background-color: var(--ck-color-comment-remove-background);
@@ -166,6 +129,59 @@
166
129
  }
167
130
  }
168
131
 
132
+ /* Handle visibility of vertical line below avatars. */
133
+ .ck .ck-thread__comments .ck-comment__wrapper {
134
+ &:last-of-type {
135
+ & .ck-comment::after {
136
+ opacity: 0;
137
+ }
138
+ }
139
+ }
140
+
141
+ .ck .ck-thread__container {
142
+ transition: transform 300ms ease;
143
+ }
144
+
145
+ .ck .ck-thread__comments {
146
+ position: relative;
147
+ z-index: var(--ck-z-default);
148
+ list-style: none;
149
+ margin: 0;
150
+ padding: 0;
151
+ border-radius: var(--ck-border-radius);
152
+ }
153
+
154
+ .ck .ck-thread__input {
155
+ /* #1829. Firefox is wrongly rendering flex container width 100% with overflowed (non-spaced) text. */
156
+ width: calc( 100% - var(--ck-user-avatar-size) );
157
+ white-space: normal;
158
+
159
+ transition: background-color 200ms ease-in-out;
160
+ border-radius: var(--ck-border-radius);
161
+
162
+ /*
163
+ This is equal to the height of the wrapper when the editor instance is loaded.
164
+ Editor instance is loaded _after_ the comment view is created,
165
+ so the min-height is set to avoid jitter.
166
+ */
167
+ min-height: 38px;
168
+ }
169
+
170
+ .ck .ck-thread--active {
171
+ & .ck-comment__options.ck-dropdown {
172
+ display: block;
173
+ }
174
+
175
+ & .ck-thread__input {
176
+ display: block;
177
+ background-color: var(--ck-color-comment-background);
178
+ }
179
+
180
+ & .ck-thread__header {
181
+ background-color: var(--ck-color-thread-header-active-background);
182
+ }
183
+ }
184
+
169
185
  .ck .ck-thread--remove-confirmation {
170
186
  & .ck-thread__container {
171
187
  transform: translate3d( -100%, 0, 0 );
@@ -210,19 +226,3 @@
210
226
  margin: 0;
211
227
  }
212
228
  }
213
-
214
- .ck .ck-thread__input {
215
- /* #1829. Firefox is wrongly rendering flex container width 100% with overflowed (non-spaced) text. */
216
- width: calc( 100% - var(--ck-user-avatar-size) );
217
- white-space: normal;
218
-
219
- transition: background-color 200ms ease-in-out;
220
- border-radius: var(--ck-border-radius);
221
-
222
- /*
223
- This is equal to the height of the wrapper when the editor instance is loaded.
224
- Editor instance is loaded _after_ the comment view is created,
225
- so the min-height is set to avoid jitter.
226
- */
227
- min-height: 38px;
228
- }
@@ -47,14 +47,14 @@
47
47
  height: 16px;
48
48
  background: hsl(0, 0%, 20%);
49
49
  font-weight: bold;
50
- color: #fff;
50
+ color: hsl(0, 0%, 100%);
51
51
  font-size: var(--ck-annotation-counter-number-size);
52
52
  font-family: var(--ck-font-face);
53
53
  right: 0;
54
54
  top: -6px;
55
55
 
56
56
  /* Improve visibility of counter number. */
57
- text-shadow: -1px 0 2px #444, 1px 0 2px #444;
57
+ text-shadow: -1px 0 2px hsl(0, 0%, 27%), 1px 0 2px hsl(0, 0%, 27%);
58
58
 
59
59
  /* Display number perfectly center of circle. */
60
60
  display: flex;
package/theme/sidebar.css CHANGED
@@ -34,17 +34,8 @@
34
34
  box-shadow: var(--ck-color-annotation-wrapper-drop-shadow);
35
35
  }
36
36
 
37
- /* Handle case where annotation is inactive and users hover them. */
38
- .ck.ck-annotation-wrapper:not(.ck-annotation-wrapper--active):hover {
39
- box-shadow: var(--ck-drop-shadow);
40
- }
41
-
42
- .ck.ck-annotation-wrapper--active {
43
- box-shadow: var(--ck-drop-shadow-active);
44
- }
45
-
46
- .ck.ck-annotation-wrapper:hover,
47
- .ck.ck-annotation-wrapper--active {
37
+ .ck.ck-annotation-wrapper--active,
38
+ .ck.ck-annotation-wrapper:hover{
48
39
  & .ck-annotation__actions {
49
40
  opacity: 1;
50
41
 
@@ -61,3 +52,12 @@
61
52
  color: var(--ck-color-button-cancel)
62
53
  }
63
54
  }
55
+
56
+ /* Handle case where annotation is inactive and users hover them. */
57
+ .ck.ck-annotation-wrapper:not(.ck-annotation-wrapper--active):hover {
58
+ box-shadow: var(--ck-drop-shadow);
59
+ }
60
+
61
+ .ck.ck-annotation-wrapper--active {
62
+ box-shadow: var(--ck-drop-shadow-active);
63
+ }