@ckeditor/ckeditor5-comments 37.1.0 → 38.0.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. package/build/comments.js +2 -2
  2. package/build/translations/af.js +1 -1
  3. package/build/translations/ar.js +1 -1
  4. package/build/translations/bg.js +1 -1
  5. package/build/translations/bn.js +1 -1
  6. package/build/translations/bs.js +1 -1
  7. package/build/translations/ca.js +1 -1
  8. package/build/translations/cs.js +1 -1
  9. package/build/translations/da.js +1 -1
  10. package/build/translations/de-ch.js +1 -1
  11. package/build/translations/de.js +1 -1
  12. package/build/translations/el.js +1 -1
  13. package/build/translations/en-au.js +1 -1
  14. package/build/translations/es-co.js +1 -1
  15. package/build/translations/es.js +1 -1
  16. package/build/translations/et.js +1 -1
  17. package/build/translations/fa.js +1 -1
  18. package/build/translations/fi.js +1 -1
  19. package/build/translations/fr.js +1 -1
  20. package/build/translations/gl.js +1 -1
  21. package/build/translations/he.js +1 -1
  22. package/build/translations/hi.js +1 -1
  23. package/build/translations/hr.js +1 -1
  24. package/build/translations/hu.js +1 -1
  25. package/build/translations/id.js +1 -1
  26. package/build/translations/it.js +1 -1
  27. package/build/translations/ja.js +1 -1
  28. package/build/translations/jv.js +1 -1
  29. package/build/translations/ko.js +1 -1
  30. package/build/translations/lt.js +1 -1
  31. package/build/translations/lv.js +1 -1
  32. package/build/translations/ms.js +1 -1
  33. package/build/translations/nl.js +1 -1
  34. package/build/translations/no.js +1 -1
  35. package/build/translations/pl.js +1 -1
  36. package/build/translations/pt-br.js +1 -1
  37. package/build/translations/pt.js +1 -1
  38. package/build/translations/ro.js +1 -1
  39. package/build/translations/ru.js +1 -1
  40. package/build/translations/sk.js +1 -1
  41. package/build/translations/sr-latn.js +1 -1
  42. package/build/translations/sr.js +1 -1
  43. package/build/translations/sv.js +1 -1
  44. package/build/translations/th.js +1 -1
  45. package/build/translations/tk.js +1 -1
  46. package/build/translations/tr.js +1 -1
  47. package/build/translations/tt.js +1 -1
  48. package/build/translations/ug.js +1 -1
  49. package/build/translations/uk.js +1 -1
  50. package/build/translations/ur.js +1 -1
  51. package/build/translations/vi.js +1 -1
  52. package/build/translations/zh-cn.js +1 -1
  53. package/build/translations/zh.js +1 -1
  54. package/ckeditor5-metadata.json +5 -0
  55. package/lang/contexts.json +2 -2
  56. package/lang/translations/af.po +5 -5
  57. package/lang/translations/ar.po +5 -5
  58. package/lang/translations/bg.po +5 -5
  59. package/lang/translations/bn.po +5 -5
  60. package/lang/translations/bs.po +4 -4
  61. package/lang/translations/ca.po +5 -5
  62. package/lang/translations/cs.po +5 -5
  63. package/lang/translations/da.po +5 -5
  64. package/lang/translations/de-ch.po +5 -5
  65. package/lang/translations/de.po +5 -5
  66. package/lang/translations/el.po +5 -5
  67. package/lang/translations/en-au.po +16 -16
  68. package/lang/translations/en.po +4 -4
  69. package/lang/translations/es-co.po +5 -5
  70. package/lang/translations/es.po +5 -5
  71. package/lang/translations/et.po +5 -5
  72. package/lang/translations/fa.po +5 -5
  73. package/lang/translations/fi.po +5 -5
  74. package/lang/translations/fr.po +5 -5
  75. package/lang/translations/gl.po +5 -5
  76. package/lang/translations/he.po +5 -5
  77. package/lang/translations/hi.po +5 -5
  78. package/lang/translations/hr.po +16 -16
  79. package/lang/translations/hu.po +5 -5
  80. package/lang/translations/id.po +5 -5
  81. package/lang/translations/it.po +5 -5
  82. package/lang/translations/ja.po +5 -5
  83. package/lang/translations/jv.po +5 -5
  84. package/lang/translations/ko.po +5 -5
  85. package/lang/translations/lt.po +5 -5
  86. package/lang/translations/lv.po +5 -5
  87. package/lang/translations/ms.po +5 -5
  88. package/lang/translations/nl.po +5 -5
  89. package/lang/translations/no.po +5 -5
  90. package/lang/translations/pl.po +5 -5
  91. package/lang/translations/pt-br.po +5 -5
  92. package/lang/translations/pt.po +5 -5
  93. package/lang/translations/ro.po +5 -5
  94. package/lang/translations/ru.po +5 -5
  95. package/lang/translations/sk.po +5 -5
  96. package/lang/translations/sr-latn.po +12 -12
  97. package/lang/translations/sr.po +12 -12
  98. package/lang/translations/sv.po +5 -5
  99. package/lang/translations/th.po +5 -5
  100. package/lang/translations/tk.po +5 -5
  101. package/lang/translations/tr.po +5 -5
  102. package/lang/translations/tt.po +4 -4
  103. package/lang/translations/ug.po +5 -5
  104. package/lang/translations/uk.po +5 -5
  105. package/lang/translations/ur.po +5 -5
  106. package/lang/translations/vi.po +5 -5
  107. package/lang/translations/zh-cn.po +5 -5
  108. package/lang/translations/zh.po +5 -5
  109. package/package.json +3 -3
  110. package/src/annotations/annotation.js +1 -1
  111. package/src/annotations/annotationcollection.js +1 -1
  112. package/src/annotations/annotations.js +1 -1
  113. package/src/annotations/annotationsuis.js +1 -1
  114. package/src/annotations/editorannotations.js +1 -1
  115. package/src/annotations/inlineannotations.js +1 -1
  116. package/src/annotations/narrowsidebar.js +1 -1
  117. package/src/annotations/sidebar.js +1 -1
  118. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  119. package/src/annotations/view/annotationview.js +1 -1
  120. package/src/annotations/view/sidebaritemview.js +1 -1
  121. package/src/annotations/view/sidebarview.js +1 -1
  122. package/src/annotations/widesidebar.js +1 -1
  123. package/src/augmentation.d.ts +2 -8
  124. package/src/comments/addcommentthreadcommand.js +1 -1
  125. package/src/comments/commentsarchive.js +1 -1
  126. package/src/comments/commentsarchiveui.js +1 -1
  127. package/src/comments/commentsediting.js +1 -1
  128. package/src/comments/commentsrepository.d.ts +16 -12
  129. package/src/comments/commentsrepository.js +1 -1
  130. package/src/comments/commentsui.js +1 -1
  131. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  132. package/src/comments/integrations/importword.js +1 -1
  133. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  134. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  135. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  136. package/src/comments/ui/commentthreadcontroller.js +1 -1
  137. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  138. package/src/comments/ui/view/basecommentview.js +1 -1
  139. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  140. package/src/comments/ui/view/commentcontentview.js +1 -1
  141. package/src/comments/ui/view/commentinputview.d.ts +6 -0
  142. package/src/comments/ui/view/commentinputview.js +1 -1
  143. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  144. package/src/comments/ui/view/commentslistview.js +1 -1
  145. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  146. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  147. package/src/comments/ui/view/commentthreadview.js +1 -1
  148. package/src/comments/ui/view/commentview.d.ts +2 -2
  149. package/src/comments/ui/view/commentview.js +1 -1
  150. package/src/comments.js +1 -1
  151. package/src/commentsonly.js +1 -1
  152. package/src/utils/common-translations.js +1 -1
  153. package/src/utils/createmutationobserver.js +1 -1
  154. package/theme/comment.css +12 -3
  155. package/theme/commentinput.css +8 -6
  156. package/theme/commentsarchive.css +10 -2
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3e33=['element','time','ck-comment__user','removeButton','items','ck-annotation__content-wrapper','_createEditButton','some','ck-annotation__actions','remove','EXTERNAL_AVATAR','editButton','EXTERNAL_IMPORT_WORD_COMMENT','render','author','change:isEnabled','ck-comment__info-time','ck-comment--','showConfirm','actionBar','getTemplate','ck-annotation__info-time','_createRemoveButton','label','isEnabled','setTemplate','importWord','buttonView','ck-comment__actions','cancelConfirm','pencil','getExternalCommentNote','ck-comment__info','visibleView','blur','add','name','_model','Reply...','isEditable','_attachActions','@external','isReadOnly','panelPosition','children','icon','div','ck-comment--info','ck-comment--remove-confirmation','resolvedAt','listenTo','focus','dropdown','_config','isExternal','isEditMode','then','execute','userView','fire','formatDateTime','isVisible','EXTERNAL_IMPORT_WORD_AVATAR','ck-comment__external','ck-comment__main','edit','locale','panelView','placeholder','isRemovable','authoredAt','ck-annotation__main','actionIndicator','Remove','_createCommentInputView','isSystemComment','ck-comment--edit','bind','mouseenter','createCollection','ck-comment__actions--hidden','Delete\x20comment?','set','Show\x20more\x20items','Edit','withText','source','ck-annotation__user','addMany','length','extendTemplate','removeComment'];(function(_0x88841a,_0x3e335d){const _0xa3e5f5=function(_0x5209f1){while(--_0x5209f1){_0x88841a['push'](_0x88841a['shift']());}};_0xa3e5f5(++_0x3e335d);}(_0x3e33,0x87));const _0xa3e5=function(_0x88841a,_0x3e335d){_0x88841a=_0x88841a-0x0;let _0xa3e5f5=_0x3e33[_0x88841a];return _0xa3e5f5;};import{ButtonView as _0x2f0860,createDropdown as _0x5e6e08,ListView as _0x128d99,ListItemView as _0x128197}from'ckeditor5/src/ui';import{icons as _0x3956a8}from'ckeditor5/src/core';import{UserView as _0x17566e,ConfirmMixin as _0x326f70}from'ckeditor5-collaboration/src/collaboration-core';import _0x258114 from'./basecommentview';import _0x27b608 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x5e1084}from'../../../utils/common-translations';export default class lt extends _0x326f70(_0x258114){constructor(_0x5c8a55,_0x3e28f7,_0x1574b1){super(_0x5c8a55,_0x3e28f7,_0x1574b1),this['set']('actionIndicator',null),this[_0xa3e5('0x27')](_0xa3e5('0x19'),_0x5e1084(_0x5c8a55,_0xa3e5('0x57'))),this[_0xa3e5('0x22')](_0xa3e5('0x1b'))['to'](_0x3e28f7),this[_0xa3e5('0x22')](_0xa3e5('0x6'))['to'](_0x3e28f7),this['actionBar']=this[_0xa3e5('0x24')](),this[_0xa3e5('0x20')]||(this[_0xa3e5('0x3c')]=this[_0xa3e5('0x37')](),this[_0xa3e5('0x34')]=this[_0xa3e5('0x47')](),this['items']=this['createCollection'](),this['items'][_0xa3e5('0x2d')]([this['editButton'],this[_0xa3e5('0x34')]]),this['dropdown']=this['_createDropdown'](),this[_0xa3e5('0x44')][_0xa3e5('0x54')](this[_0xa3e5('0x9')])),this['userView']=new _0x17566e(_0x5c8a55,_0x3e28f7['author'],this['getUserViewNotificationText']()),this[_0xa3e5('0xf')][_0xa3e5('0x2f')]({'attributes':{'class':[_0xa3e5('0x33'),_0xa3e5('0x2c')]}}),this['listenTo'](_0x3e28f7,'change:isRemovable',()=>this[_0xa3e5('0x4e')]()),this[_0xa3e5('0x4a')](this[_0xa3e5('0x45')]());}[_0xa3e5('0x45')](){const _0x28cbc6=this['bindTemplate'],_0x894353=[{'tag':_0xa3e5('0x3'),'attributes':{'class':[_0xa3e5('0x51'),'ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this[_0xa3e5('0xf')][_0xa3e5('0x55')]}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name']}},{'tag':_0xa3e5('0x32'),'attributes':{'datetime':_0x28cbc6['to'](_0xa3e5('0x1b')),'class':[_0xa3e5('0x41'),_0xa3e5('0x46')]},'children':[{'text':_0x28cbc6['to'](_0xa3e5('0x1b'),_0x355697=>this[_0xa3e5('0xa')][_0xa3e5('0x11')](_0x355697))}]}]},{'tag':_0xa3e5('0x3'),'attributes':{'class':[_0xa3e5('0x4d'),_0xa3e5('0x39'),_0x28cbc6['if'](_0xa3e5('0xc'),_0xa3e5('0x25')),_0x28cbc6['if']('isEditMode','ck-annotation__actions--hidden')]},'children':this[_0xa3e5('0x44')]},{'tag':_0xa3e5('0x3'),'attributes':{'class':[_0xa3e5('0x36')]},'children':this[_0xa3e5('0x52')]}];return this[_0xa3e5('0x56')][_0xa3e5('0xb')]&&_0x894353['push']({'tag':'div','attributes':{'class':[_0xa3e5('0x14')]},'children':[{'text':this[_0xa3e5('0x50')]()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x28cbc6['if']('isConfirm',_0xa3e5('0x5'))],'tabindex':-0x1},'children':[{'tag':_0xa3e5('0x3'),'attributes':{'class':['ck-comment','ck-annotation',_0x28cbc6['if'](_0xa3e5('0xc'),'ck-comment--edit'),_0x28cbc6['if']('isSystemComment',_0xa3e5('0x4')),_0x28cbc6['to'](_0xa3e5('0x1d'),_0x2a639a=>_0x2a639a?_0xa3e5('0x42')+_0x2a639a:'')],'data-author-id':this[_0xa3e5('0x56')][_0xa3e5('0x3f')]['id'],'data-comment-id':this[_0xa3e5('0x56')]['id']},'children':[this[_0xa3e5('0xf')],{'tag':_0xa3e5('0x3'),'attributes':{'class':[_0xa3e5('0x15'),_0xa3e5('0x1c')]},'children':_0x894353}]}]};}[_0xa3e5('0x37')](){const _0x2692ff=new _0x2f0860(this['locale']);return _0x2692ff[_0xa3e5('0x48')]=_0x5e1084(this['locale'],_0xa3e5('0x29')),_0x2692ff[_0xa3e5('0x2')]=_0x3956a8[_0xa3e5('0x4f')],_0x2692ff[_0xa3e5('0x2a')]=!0x0,_0x2692ff[_0xa3e5('0x2f')]({'attributes':{'class':_0xa3e5('0x21')}}),_0x2692ff[_0xa3e5('0x22')](_0xa3e5('0x49'))['to'](this['_model'],_0xa3e5('0x5b'),_0x8790e3=>!_0x8790e3),_0x2692ff[_0xa3e5('0x22')]('isVisible')['to'](this[_0xa3e5('0x56')],_0xa3e5('0x58')),_0x2692ff['on'](_0xa3e5('0xe'),()=>this['switchToEditMode']()),_0x2692ff;}[_0xa3e5('0x47')](){const _0x5498e7=new _0x2f0860(this['locale']);return _0x5498e7[_0xa3e5('0x48')]=_0x5e1084(this['locale'],_0xa3e5('0x1e')),_0x5498e7[_0xa3e5('0x2')]=_0x27b608,_0x5498e7[_0xa3e5('0x2a')]=!0x0,_0x5498e7[_0xa3e5('0x2f')]({'attributes':{'class':'ck-comment--remove'}}),_0x5498e7[_0xa3e5('0x22')]('isEnabled')['to'](this[_0xa3e5('0x56')],_0xa3e5('0x5b'),_0x76cfb9=>!_0x76cfb9),_0x5498e7['bind']('isVisible')['to'](this[_0xa3e5('0x56')],_0xa3e5('0x1a')),_0x5498e7['on']('execute',()=>{this[_0xa3e5('0x43')](_0x5e1084(this[_0xa3e5('0x17')],_0xa3e5('0x26')),this[_0xa3e5('0x31')])[_0xa3e5('0xd')](()=>{this[_0xa3e5('0x10')](_0xa3e5('0x30'),this['_model']['id']);});}),_0x5498e7;}['_createDropdown'](){const _0xc3a15=_0x5e6e08(this[_0xa3e5('0x17')]),_0x4471c5=_0xc3a15[_0xa3e5('0x18')]['children'],_0x16a338=new _0x128d99(this[_0xa3e5('0x17')]),_0x480418=(_0xd8a20d,_0x381289=-0x1)=>{const _0x7404f7=new _0x128197(this[_0xa3e5('0x17')]);_0x7404f7[_0xa3e5('0x1')]['add'](_0xd8a20d);const _0x567617=_0x381289>-0x1?_0x381289:_0x16a338[_0xa3e5('0x35')][_0xa3e5('0x2e')];_0x16a338[_0xa3e5('0x35')]['add'](_0x7404f7,_0x567617),_0xc3a15['listenTo'](_0xd8a20d,_0xa3e5('0x40'),()=>{_0xc3a15[_0xa3e5('0x49')]=[...this['items']][_0xa3e5('0x38')](_0x5e047e=>_0x5e047e[_0xa3e5('0x49')]);}),_0xc3a15[_0xa3e5('0x7')](_0xd8a20d,'change:isVisible',()=>{_0xc3a15[_0xa3e5('0x4c')][_0xa3e5('0x12')]=[...this[_0xa3e5('0x35')]]['some'](_0x25aac9=>_0x25aac9['isVisible']);});};_0xc3a15[_0xa3e5('0x0')]='sw',_0xc3a15[_0xa3e5('0x4c')]['set']({'label':_0x5e1084(this[_0xa3e5('0x17')],_0xa3e5('0x28')),'icon':_0x3956a8['threeVerticalDots']}),_0xc3a15[_0xa3e5('0x49')]=[...this['items']][_0xa3e5('0x38')](_0x3cfd9b=>_0x3cfd9b['isEnabled']),_0xc3a15['buttonView']['isVisible']=[...this['items']][_0xa3e5('0x38')](_0x4b142f=>_0x4b142f[_0xa3e5('0x12')]);for(const _0x3507cf of this['items'])_0x480418(_0x3507cf);return _0x4471c5[_0xa3e5('0x54')](_0x16a338),_0xc3a15['listenTo'](this['items'],_0xa3e5('0x54'),(_0x262732,_0x300b0c,_0x38a766)=>{_0x480418(_0x300b0c,_0x38a766);}),_0xc3a15['listenTo'](this[_0xa3e5('0x35')],_0xa3e5('0x3a'),(_0x4c2c36,_0x31c472,_0x16c86b)=>{_0x16a338[_0xa3e5('0x35')][_0xa3e5('0x3a')](_0x16c86b);}),_0xc3a15;}['_attachActions'](_0x34231e,_0x4d4e6d){const _0xb2c144=_0x34231e&&_0x34231e['element'];_0xb2c144&&(this['listenTo'](_0xb2c144,_0xa3e5('0x23'),()=>this[_0xa3e5('0x1d')]=_0x4d4e6d),this[_0xa3e5('0x7')](_0xb2c144,_0xa3e5('0x8'),()=>this['actionIndicator']=_0x4d4e6d),this[_0xa3e5('0x7')](_0xb2c144,'mouseleave',()=>this[_0xa3e5('0x1d')]=null),this[_0xa3e5('0x7')](_0xb2c144,_0xa3e5('0x53'),()=>this[_0xa3e5('0x1d')]=null));}[_0xa3e5('0x1f')](){const _0x1f45d4=super[_0xa3e5('0x1f')]();return _0x1f45d4['bind'](_0xa3e5('0x19'))['to'](this),_0x1f45d4;}[_0xa3e5('0x50')](){return _0xa3e5('0x4b')===this[_0xa3e5('0x56')]['attributes'][_0xa3e5('0x5a')][_0xa3e5('0x2b')]?_0x5e1084(this[_0xa3e5('0x17')],_0xa3e5('0x3d')):_0x5e1084(this['locale'],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this[_0xa3e5('0x56')][_0xa3e5('0xb')]?_0xa3e5('0x4b')===this[_0xa3e5('0x56')]['attributes'][_0xa3e5('0x5a')][_0xa3e5('0x2b')]?_0x5e1084(this['locale'],_0xa3e5('0x13'),this[_0xa3e5('0x56')]['creator'][_0xa3e5('0x55')]):_0x5e1084(this[_0xa3e5('0x17')],_0xa3e5('0x3b'),this[_0xa3e5('0x56')]['creator']['name']):null;}[_0xa3e5('0x3e')](){super['render'](),this['_attachActions'](this[_0xa3e5('0x3c')],_0xa3e5('0x16')),this[_0xa3e5('0x59')](this[_0xa3e5('0x34')],_0xa3e5('0x3a'));}}
23
+ const _0x1f14=['render','Remove','ck-comment__info-time','div','isExternal','ck-comment--remove','label','isEnabled','some','ck-annotation__user','ck-annotation__info-name','buttonView','addMany','resolvedAt','createCollection','EXTERNAL_IMPORT_WORD_COMMENT','@external','actionBar','EXTERNAL_COMMENT','_config','execute','isEditMode','editButton','children','userView','mouseleave','dropdown','edit','ck-annotation__info','_createDropdown','push','icon','listenTo','ck-comment','threeVerticalDots','isReadOnly','add','ck-annotation__info-time','isConfirm','ck-annotation','getExternalCommentNote','getTemplate','isSystemComment','element','ck-annotation__actions','Edit','setTemplate','pencil','attributes','set','extendTemplate','_model','Delete\x20comment?','removeComment','locale','_createCommentInputView','ck-comment--edit','getUserViewNotificationText','remove','items','ck-comment__info-name','change:isVisible','creator','isRemovable','ck-comment--remove-confirmation','_attachActions','bind','ck-comment__external','ck-comment__main','source','fire','ck-comment--','formatDateTime','_createRemoveButton','switchToEditMode','isVisible','importWord','withText','actionIndicator','author','ck-comment__actions','blur','placeholder','ck-annotation__actions--hidden','span','EXTERNAL_AVATAR','name','authoredAt','Show\x20more\x20items','EXTERNAL_IMPORT_WORD_AVATAR','ck-annotation__main','removeButton','change:isEnabled','ck-comment__info'];(function(_0x5a86e5,_0x1f1425){const _0x4e247f=function(_0x1b5107){while(--_0x1b5107){_0x5a86e5['push'](_0x5a86e5['shift']());}};_0x4e247f(++_0x1f1425);}(_0x1f14,0x1e0));const _0x4e24=function(_0x5a86e5,_0x1f1425){_0x5a86e5=_0x5a86e5-0x0;let _0x4e247f=_0x1f14[_0x5a86e5];return _0x4e247f;};import{ButtonView as _0x5ee641,createDropdown as _0xc5467f,ListView as _0x28e1d8,ListItemView as _0x2c5eed}from'ckeditor5/src/ui';import{icons as _0x579628}from'ckeditor5/src/core';import{UserView as _0x770e51,ConfirmMixin as _0x46ba21}from'ckeditor5-collaboration/src/collaboration-core';import _0xef0f62 from'./basecommentview';import _0x5a133a from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x177691}from'../../../utils/common-translations';export default class q extends _0x46ba21(_0xef0f62){constructor(_0xcb827f,_0x3c2815,_0x3d5303){super(_0xcb827f,_0x3c2815,_0x3d5303),this[_0x4e24('0x27')](_0x4e24('0x44'),null),this[_0x4e24('0x27')](_0x4e24('0x48'),_0x177691(_0xcb827f,'Reply...')),this[_0x4e24('0x38')]('authoredAt')['to'](_0x3c2815),this[_0x4e24('0x38')](_0x4e24('0x3'))['to'](_0x3c2815),this[_0x4e24('0x7')]=this[_0x4e24('0x4')](),this[_0x4e24('0x20')]||(this[_0x4e24('0xc')]=this['_createEditButton'](),this['removeButton']=this[_0x4e24('0x3f')](),this[_0x4e24('0x31')]=this[_0x4e24('0x4')](),this[_0x4e24('0x31')][_0x4e24('0x2')]([this[_0x4e24('0xc')],this[_0x4e24('0x51')]]),this[_0x4e24('0x10')]=this['_createDropdown'](),this[_0x4e24('0x7')][_0x4e24('0x1a')](this['dropdown'])),this[_0x4e24('0xe')]=new _0x770e51(_0xcb827f,_0x3c2815['author'],this['getUserViewNotificationText']()),this['userView'][_0x4e24('0x28')]({'attributes':{'class':['ck-comment__user',_0x4e24('0x5d')]}}),this[_0x4e24('0x16')](_0x3c2815,'change:isRemovable',()=>this['cancelConfirm']()),this[_0x4e24('0x24')](this[_0x4e24('0x1f')]());}['getTemplate'](){const _0xc81e4f=this['bindTemplate'],_0x20e495=[{'tag':'div','attributes':{'class':[_0x4e24('0x53'),_0x4e24('0x12')]},'children':[{'tag':_0x4e24('0x4a'),'children':[{'text':this[_0x4e24('0xe')][_0x4e24('0x4c')]}],'attributes':{'class':[_0x4e24('0x32'),_0x4e24('0x0')]}},{'tag':'time','attributes':{'datetime':_0xc81e4f['to']('authoredAt'),'class':[_0x4e24('0x56'),_0x4e24('0x1b')]},'children':[{'text':_0xc81e4f['to'](_0x4e24('0x4d'),_0x3d1798=>this[_0x4e24('0x9')][_0x4e24('0x3e')](_0x3d1798))}]}]},{'tag':_0x4e24('0x57'),'attributes':{'class':[_0x4e24('0x46'),_0x4e24('0x22'),_0xc81e4f['if']('isEditMode','ck-comment__actions--hidden'),_0xc81e4f['if'](_0x4e24('0xb'),_0x4e24('0x49'))]},'children':this['actionBar']},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']},'children':this['visibleView']}];return this[_0x4e24('0x29')][_0x4e24('0x58')]&&_0x20e495[_0x4e24('0x14')]({'tag':_0x4e24('0x57'),'attributes':{'class':[_0x4e24('0x39')]},'children':[{'text':this[_0x4e24('0x1e')]()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0xc81e4f['if'](_0x4e24('0x1c'),_0x4e24('0x36'))],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':[_0x4e24('0x17'),_0x4e24('0x1d'),_0xc81e4f['if']('isEditMode',_0x4e24('0x2e')),_0xc81e4f['if']('isSystemComment','ck-comment--info'),_0xc81e4f['to'](_0x4e24('0x44'),_0x180ca8=>_0x180ca8?_0x4e24('0x3d')+_0x180ca8:'')],'data-author-id':this['_model'][_0x4e24('0x45')]['id'],'data-comment-id':this[_0x4e24('0x29')]['id']},'children':[this['userView'],{'tag':_0x4e24('0x57'),'attributes':{'class':[_0x4e24('0x3a'),_0x4e24('0x50')]},'children':_0x20e495}]}]};}['_createEditButton'](){const _0x447423=new _0x5ee641(this[_0x4e24('0x2c')]);return _0x447423[_0x4e24('0x5a')]=_0x177691(this['locale'],_0x4e24('0x23')),_0x447423[_0x4e24('0x15')]=_0x579628[_0x4e24('0x25')],_0x447423[_0x4e24('0x43')]=!0x0,_0x447423['extendTemplate']({'attributes':{'class':_0x4e24('0x2e')}}),_0x447423[_0x4e24('0x38')]('isEnabled')['to'](this[_0x4e24('0x29')],'isReadOnly',_0x25bc39=>!_0x25bc39),_0x447423[_0x4e24('0x38')]('isVisible')['to'](this['_model'],'isEditable'),_0x447423['on'](_0x4e24('0xa'),()=>this[_0x4e24('0x40')]()),_0x447423;}['_createRemoveButton'](){const _0x5cb304=new _0x5ee641(this[_0x4e24('0x2c')]);return _0x5cb304[_0x4e24('0x5a')]=_0x177691(this['locale'],_0x4e24('0x55')),_0x5cb304['icon']=_0x5a133a,_0x5cb304[_0x4e24('0x43')]=!0x0,_0x5cb304[_0x4e24('0x28')]({'attributes':{'class':_0x4e24('0x59')}}),_0x5cb304['bind']('isEnabled')['to'](this['_model'],_0x4e24('0x19'),_0x123363=>!_0x123363),_0x5cb304['bind'](_0x4e24('0x41'))['to'](this['_model'],_0x4e24('0x35')),_0x5cb304['on']('execute',()=>{this['showConfirm'](_0x177691(this[_0x4e24('0x2c')],_0x4e24('0x2a')),this[_0x4e24('0x21')])['then'](()=>{this[_0x4e24('0x3c')](_0x4e24('0x2b'),this[_0x4e24('0x29')]['id']);});}),_0x5cb304;}[_0x4e24('0x13')](){const _0x3aa78a=_0xc5467f(this[_0x4e24('0x2c')]),_0x48c07a=_0x3aa78a['panelView'][_0x4e24('0xd')],_0x39de88=new _0x28e1d8(this[_0x4e24('0x2c')]),_0x4b34db=(_0x17c2e6,_0x563c26=-0x1)=>{const _0x184ef3=new _0x2c5eed(this[_0x4e24('0x2c')]);_0x184ef3[_0x4e24('0xd')][_0x4e24('0x1a')](_0x17c2e6);const _0x132db3=_0x563c26>-0x1?_0x563c26:_0x39de88[_0x4e24('0x31')]['length'];_0x39de88['items'][_0x4e24('0x1a')](_0x184ef3,_0x132db3),_0x3aa78a[_0x4e24('0x16')](_0x17c2e6,_0x4e24('0x52'),()=>{_0x3aa78a[_0x4e24('0x5b')]=[...this[_0x4e24('0x31')]][_0x4e24('0x5c')](_0x456113=>_0x456113[_0x4e24('0x5b')]);}),_0x3aa78a[_0x4e24('0x16')](_0x17c2e6,_0x4e24('0x33'),()=>{_0x3aa78a['buttonView'][_0x4e24('0x41')]=[...this[_0x4e24('0x31')]][_0x4e24('0x5c')](_0x4334cd=>_0x4334cd[_0x4e24('0x41')]);});};_0x3aa78a['panelPosition']='sw',_0x3aa78a[_0x4e24('0x1')][_0x4e24('0x27')]({'label':_0x177691(this[_0x4e24('0x2c')],_0x4e24('0x4e')),'icon':_0x579628[_0x4e24('0x18')]}),_0x3aa78a[_0x4e24('0x5b')]=[...this[_0x4e24('0x31')]][_0x4e24('0x5c')](_0x4baec0=>_0x4baec0[_0x4e24('0x5b')]),_0x3aa78a[_0x4e24('0x1')][_0x4e24('0x41')]=[...this[_0x4e24('0x31')]][_0x4e24('0x5c')](_0x51790f=>_0x51790f[_0x4e24('0x41')]);for(const _0x2a224a of this[_0x4e24('0x31')])_0x4b34db(_0x2a224a);return _0x48c07a[_0x4e24('0x1a')](_0x39de88),_0x3aa78a[_0x4e24('0x16')](this['items'],_0x4e24('0x1a'),(_0x4e68e2,_0x4e28cf,_0x20b583)=>{_0x4b34db(_0x4e28cf,_0x20b583);}),_0x3aa78a[_0x4e24('0x16')](this[_0x4e24('0x31')],_0x4e24('0x30'),(_0x34b60a,_0x18a68e,_0x5cc101)=>{_0x39de88[_0x4e24('0x31')][_0x4e24('0x30')](_0x5cc101);}),_0x3aa78a;}[_0x4e24('0x37')](_0x200433,_0x30aced){const _0x253c3f=_0x200433&&_0x200433[_0x4e24('0x21')];_0x253c3f&&(this['listenTo'](_0x253c3f,'mouseenter',()=>this[_0x4e24('0x44')]=_0x30aced),this[_0x4e24('0x16')](_0x253c3f,'focus',()=>this['actionIndicator']=_0x30aced),this[_0x4e24('0x16')](_0x253c3f,_0x4e24('0xf'),()=>this[_0x4e24('0x44')]=null),this[_0x4e24('0x16')](_0x253c3f,_0x4e24('0x47'),()=>this[_0x4e24('0x44')]=null));}[_0x4e24('0x2d')](){const _0x1071b2=super[_0x4e24('0x2d')]();return _0x1071b2[_0x4e24('0x38')](_0x4e24('0x48'))['to'](this),_0x1071b2;}[_0x4e24('0x1e')](){return'importWord'===this[_0x4e24('0x29')][_0x4e24('0x26')][_0x4e24('0x6')][_0x4e24('0x3b')]?_0x177691(this['locale'],_0x4e24('0x5')):_0x177691(this[_0x4e24('0x2c')],_0x4e24('0x8'));}[_0x4e24('0x2f')](){return this['_model'][_0x4e24('0x58')]?_0x4e24('0x42')===this[_0x4e24('0x29')][_0x4e24('0x26')][_0x4e24('0x6')][_0x4e24('0x3b')]?_0x177691(this[_0x4e24('0x2c')],_0x4e24('0x4f'),this[_0x4e24('0x29')][_0x4e24('0x34')][_0x4e24('0x4c')]):_0x177691(this['locale'],_0x4e24('0x4b'),this['_model'][_0x4e24('0x34')][_0x4e24('0x4c')]):null;}[_0x4e24('0x54')](){super[_0x4e24('0x54')](),this[_0x4e24('0x37')](this[_0x4e24('0xc')],_0x4e24('0x11')),this[_0x4e24('0x37')](this[_0x4e24('0x51')],_0x4e24('0x30'));}}
package/src/comments.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x117f=['Comments'];(function(_0x82bf1f,_0x117f57){var _0x31bf30=function(_0x32dd5c){while(--_0x32dd5c){_0x82bf1f['push'](_0x82bf1f['shift']());}};_0x31bf30(++_0x117f57);}(_0x117f,0x86));var _0x31bf=function(_0x82bf1f,_0x117f57){_0x82bf1f=_0x82bf1f-0x0;var _0x31bf30=_0x117f[_0x82bf1f];return _0x31bf30;};import{Plugin as _0x54cdb3}from'ckeditor5/src/core';import _0x4021fd from'./comments/commentsrepository';import _0x3b8738 from'./comments/commentsediting';import _0x389476 from'./comments/commentsui';import _0x1d6ca4 from'./commentsonly';import _0x43ce51 from'./annotations/widesidebar';import _0x559b9d from'./annotations/narrowsidebar';import _0x189829 from'./annotations/inlineannotations';import _0x4f0c3a from'./comments/commentsarchiveui';import _0x548f0a from'./comments/commentsarchive';export default class f extends _0x54cdb3{static get['requires'](){return[_0x4021fd,_0x3b8738,_0x389476,_0x548f0a,_0x4f0c3a,_0x1d6ca4,_0x43ce51,_0x559b9d,_0x189829];}static get['pluginName'](){return _0x31bf('0x0');}}
23
+ var _0x3052=['requires','pluginName'];(function(_0x5bb6ee,_0x305243){var _0x200e0d=function(_0x5889df){while(--_0x5889df){_0x5bb6ee['push'](_0x5bb6ee['shift']());}};_0x200e0d(++_0x305243);}(_0x3052,0x1e5));var _0x200e=function(_0x5bb6ee,_0x305243){_0x5bb6ee=_0x5bb6ee-0x0;var _0x200e0d=_0x3052[_0x5bb6ee];return _0x200e0d;};import{Plugin as _0x20adae}from'ckeditor5/src/core';import _0x54dbca from'./comments/commentsrepository';import _0x5f45c5 from'./comments/commentsediting';import _0x5f091d from'./comments/commentsui';import _0x25accb from'./commentsonly';import _0xc5de6e from'./annotations/widesidebar';import _0x40da50 from'./annotations/narrowsidebar';import _0x30a11f from'./annotations/inlineannotations';import _0x502b45 from'./comments/commentsarchiveui';import _0x171bd5 from'./comments/commentsarchive';export default class f extends _0x20adae{static get[_0x200e('0x1')](){return[_0x54dbca,_0x5f45c5,_0x5f091d,_0x171bd5,_0x502b45,_0x25accb,_0xc5de6e,_0x40da50,_0x30a11f];}static get[_0x200e('0x0')](){return'Comments';}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x33d7=['_disableCommentsOnlyMode','pluginName','editor','cut','view','delete','forceDisabled','plugins','has','commentsOnlyMode','get','listenTo','addCommentThread','change:isEnabled','editing','_enableCommentsOnlyMode','stop','clipboardInput','affectsData','isEnabled','config','CommentsOnly','commands','DragDrop','afterInit','document','highest'];(function(_0x2702a3,_0x33d746){const _0x105acc=function(_0x46f2df){while(--_0x46f2df){_0x2702a3['push'](_0x2702a3['shift']());}};_0x105acc(++_0x33d746);}(_0x33d7,0x108));const _0x105a=function(_0x2702a3,_0x33d746){_0x2702a3=_0x2702a3-0x0;let _0x105acc=_0x33d7[_0x2702a3];return _0x105acc;};import{Plugin as _0xfe1d2c}from'ckeditor5/src/core';import _0x3c49fa from'./comments/commentsediting';export default class n extends _0xfe1d2c{static get[_0x105a('0x7')](){return _0x105a('0x0');}static get['requires'](){return[_0x3c49fa];}constructor(_0x28fa47){super(_0x28fa47),this['set'](_0x105a('0x19'),!0x1),this['on'](_0x105a('0x13'),(_0x4ea04c,_0x46f351,_0x3bd6c3)=>{_0x3bd6c3?this[_0x105a('0x15')]():this[_0x105a('0x6')]();});}[_0x105a('0x3')](){!this[_0x105a('0x19')]&&this[_0x105a('0x8')][_0x105a('0x1a')][_0x105a('0x10')]('commentsOnly')&&(this[_0x105a('0x19')]=!0x0);}[_0x105a('0x15')](){for(const [_0x4a4f4e,_0x508f45]of this[_0x105a('0x8')][_0x105a('0x1')])_0x508f45[_0x105a('0x18')]&&_0x105a('0x12')!==_0x4a4f4e&&_0x508f45[_0x105a('0xc')](_0x105a('0xf'));this['editor'][_0x105a('0xd')][_0x105a('0xe')](_0x105a('0x2'))&&this['editor']['plugins'][_0x105a('0x10')](_0x105a('0x2'))[_0x105a('0xc')](_0x105a('0xf'));const _0x488562=this[_0x105a('0x8')][_0x105a('0x14')]['view']['document'];this[_0x105a('0x11')](_0x488562,_0x105a('0x9'),_0x33f2ce=>_0x33f2ce[_0x105a('0x16')](),{'priority':_0x105a('0x5')}),this[_0x105a('0x11')](_0x488562,_0x105a('0x17'),_0x13f806=>_0x13f806[_0x105a('0x16')](),{'priority':_0x105a('0x5')}),this[_0x105a('0x11')](_0x488562,_0x105a('0xb'),_0x103cf3=>_0x103cf3['stop'](),{'priority':_0x105a('0x5')});}['_disableCommentsOnlyMode'](){for(const [_0x540b64,_0x109340]of this[_0x105a('0x8')]['commands'])_0x109340[_0x105a('0x18')]&&'addCommentThread'!==_0x540b64&&_0x109340['clearForceDisabled'](_0x105a('0xf'));this['stopListening'](this[_0x105a('0x8')][_0x105a('0x14')][_0x105a('0xa')][_0x105a('0x4')]);}}
23
+ const _0x3894=['isEnabled','commands','addCommentThread','editor','stopListening','editing','listenTo','commentsOnly','config','_disableCommentsOnlyMode','plugins','commentsOnlyMode','has','clipboardInput','view','get','clearForceDisabled','requires','forceDisabled','stop','_enableCommentsOnlyMode','document','DragDrop','change:isEnabled','delete','affectsData','set','afterInit'];(function(_0x5cc9a9,_0x389481){const _0x1e4514=function(_0xa3816e){while(--_0xa3816e){_0x5cc9a9['push'](_0x5cc9a9['shift']());}};_0x1e4514(++_0x389481);}(_0x3894,0x1ea));const _0x1e45=function(_0x5cc9a9,_0x389481){_0x5cc9a9=_0x5cc9a9-0x0;let _0x1e4514=_0x3894[_0x5cc9a9];return _0x1e4514;};import{Plugin as _0xb6c723}from'ckeditor5/src/core';import _0x404093 from'./comments/commentsediting';export default class n extends _0xb6c723{static get['pluginName'](){return'CommentsOnly';}static get[_0x1e45('0x3')](){return[_0x404093];}constructor(_0x26100f){super(_0x26100f),this[_0x1e45('0xc')](_0x1e45('0xe'),!0x1),this['on'](_0x1e45('0x9'),(_0x35402f,_0xaf61ab,_0x40b9e2)=>{_0x40b9e2?this[_0x1e45('0x6')]():this[_0x1e45('0x17')]();});}[_0x1e45('0xd')](){!this['isEnabled']&&this[_0x1e45('0x11')][_0x1e45('0x16')][_0x1e45('0x1')](_0x1e45('0x15'))&&(this[_0x1e45('0xe')]=!0x0);}[_0x1e45('0x6')](){for(const [_0x20755b,_0x344abb]of this[_0x1e45('0x11')][_0x1e45('0xf')])_0x344abb[_0x1e45('0xb')]&&_0x1e45('0x10')!==_0x20755b&&_0x344abb[_0x1e45('0x4')](_0x1e45('0x19'));this['editor'][_0x1e45('0x18')][_0x1e45('0x1a')]('DragDrop')&&this[_0x1e45('0x11')][_0x1e45('0x18')][_0x1e45('0x1')](_0x1e45('0x8'))['forceDisabled'](_0x1e45('0x19'));const _0x33aafa=this[_0x1e45('0x11')][_0x1e45('0x13')]['view'][_0x1e45('0x7')];this[_0x1e45('0x14')](_0x33aafa,'cut',_0x4d9fb3=>_0x4d9fb3[_0x1e45('0x5')](),{'priority':'highest'}),this['listenTo'](_0x33aafa,_0x1e45('0x1b'),_0x2063dc=>_0x2063dc[_0x1e45('0x5')](),{'priority':'highest'}),this['listenTo'](_0x33aafa,_0x1e45('0xa'),_0x2618c4=>_0x2618c4['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x1e3171,_0x263ce0]of this[_0x1e45('0x11')][_0x1e45('0xf')])_0x263ce0[_0x1e45('0xb')]&&'addCommentThread'!==_0x1e3171&&_0x263ce0[_0x1e45('0x2')](_0x1e45('0x19'));this[_0x1e45('0x12')](this[_0x1e45('0x11')]['editing'][_0x1e45('0x0')]['document']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x3f7099,_0x51b149,_0x517a41){const t=_0x3f7099['t'];switch(_0x51b149){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'Submit':return t('Submit');case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x517a41);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'},_0x517a41);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'},_0x517a41);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'},_0x517a41);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(_0x27f309,_0x4918f7,_0x22c36a){const t=_0x27f309['t'];switch(_0x4918f7){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'},_0x22c36a);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'},_0x22c36a);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'},_0x22c36a);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'},_0x22c36a);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 _0x349d=['observe','attributes','type','attributeName','class','disconnect','childList'];(function(_0x58df9b,_0x349d51){const _0x48358b=function(_0x1b3e49){while(--_0x1b3e49){_0x58df9b['push'](_0x58df9b['shift']());}};_0x48358b(++_0x349d51);}(_0x349d,0x1d9));const _0x4835=function(_0x58df9b,_0x349d51){_0x58df9b=_0x58df9b-0x0;let _0x48358b=_0x349d[_0x58df9b];return _0x48358b;};import{throttle as _0x47991f}from'lodash-es';export default function Lt(_0x23d2b9){const _0x42f88f=_0x47991f(_0x23d2b9,0x1e),_0xc979a9=new MutationObserver(_0x22f655=>{for(const _0x4094f2 of _0x22f655)(_0x4835('0x4')==_0x4094f2[_0x4835('0x5')]&&_0x4835('0x0')==_0x4094f2[_0x4835('0x6')]||_0x4835('0x2')==_0x4094f2[_0x4835('0x5')])&&_0x42f88f();});return{'attach'(_0x4ac826){_0xc979a9[_0x4835('0x3')](_0x4ac826,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0xc979a9[_0x4835('0x1')](),_0x42f88f['cancel']();}};}
23
+ const _0x5c1e=['attributes','type','cancel','disconnect','attributeName'];(function(_0x3cfd7d,_0x5c1ed2){const _0x335e96=function(_0x372981){while(--_0x372981){_0x3cfd7d['push'](_0x3cfd7d['shift']());}};_0x335e96(++_0x5c1ed2);}(_0x5c1e,0x164));const _0x335e=function(_0x3cfd7d,_0x5c1ed2){_0x3cfd7d=_0x3cfd7d-0x0;let _0x335e96=_0x5c1e[_0x3cfd7d];return _0x335e96;};import{throttle as _0x242a84}from'lodash-es';export default function st(_0x2e5162){const _0x185693=_0x242a84(_0x2e5162,0x1e),_0x47d22a=new MutationObserver(_0x4fbb3e=>{for(const _0x42036c of _0x4fbb3e)(_0x335e('0x4')==_0x42036c['type']&&'class'==_0x42036c[_0x335e('0x3')]||'childList'==_0x42036c[_0x335e('0x0')])&&_0x185693();});return{'attach'(_0x13cde2){_0x47d22a['observe'](_0x13cde2,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x47d22a[_0x335e('0x2')](),_0x185693[_0x335e('0x1')]();}};}
package/theme/comment.css CHANGED
@@ -62,6 +62,10 @@
62
62
  &::after {
63
63
  opacity: 0;
64
64
  }
65
+
66
+ .ck-comment__input-actions {
67
+ margin-top: var(--ck-spacing-standard);
68
+ }
65
69
  }
66
70
 
67
71
  .ck .ck-comment--info {
@@ -92,13 +96,18 @@
92
96
  z-index: var(--ck-z-default);
93
97
  }
94
98
 
95
- /* We need specificity 030 to beat styles in `commentinput.css`. */
99
+ /* We need specificity 030 to beat styles in `commentinput.css`. */
96
100
  .ck-comment__input-actions .ck.ck-button.ck-comment__input-actions--submit {
97
- color: var(--ck-color-button-save);
101
+ background: var(--ck-color-base-action);
102
+ color: white;
103
+
104
+ &:hover {
105
+ background: var(--ck-color-button-save);
106
+ }
98
107
  }
99
108
 
100
109
  .ck-comment__input-actions .ck.ck-button.ck-comment__input-actions--cancel {
101
- color: var(--ck-color-button-cancel);
110
+ color: var(--ck-color-text);
102
111
  }
103
112
 
104
113
  /* Common styles for typography inside comment element and editable input.
@@ -68,15 +68,17 @@ See: ckeditor5-theme-lark/theme/ckeditor5-ui/components/editorui/editorui.css. *
68
68
  display: block;
69
69
  }
70
70
 
71
- & .ck-button {
71
+ & .ck.ck-button {
72
72
  /* Overwrite CK5 button default styles. */
73
- background-color: transparent;
74
- min-width: unset;
75
- min-height: unset;
73
+ display: inline-flex;
74
+ justify-content: center;
75
+ align-items: center;
76
76
  cursor: pointer;
77
- color: var(--ck-color-annotations-icon);
78
- border-radius: var(--ck-border-radius);
77
+ min-height: var(--ck-ui-component-min-height);
78
+ min-width: 60px;
79
79
  font-size: var(--ck-annotation-button-size);
80
+ margin-left: var(--ck-spacing-large);
81
+ padding: 0 var(--ck-spacing-medium);
80
82
  }
81
83
 
82
84
  & .ck-button.ck-disabled {
@@ -6,10 +6,15 @@
6
6
  * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
7
7
  */
8
8
 
9
+ .ck .ck-comments-archive-dropdown {
10
+ &.ck-dropdown__panel {
11
+ z-index: var( --ck-z-modal );
12
+ }
13
+ }
14
+
9
15
  .ck .ck-comments-archive {
10
- width: 315px;
16
+ width: 320px;
11
17
  max-height: 450px;
12
- overflow: auto;
13
18
  box-sizing: content-box;
14
19
 
15
20
  & .ck-annotation {
@@ -17,10 +22,13 @@
17
22
  }
18
23
 
19
24
  & .ck-comments-archive__header, & .ck-comments-archive__content {
25
+ overflow: auto;
26
+ max-height: 410px;
20
27
  padding: var( --ck-spacing-large );
21
28
  }
22
29
 
23
30
  & .ck-comments-archive__header {
31
+ max-height: 40px;
24
32
  line-height: var( --ck-font-size-base );
25
33
  font-weight: bold;
26
34
  border-bottom: 1px solid var( --ck-color-toolbar-border );