@ckeditor/ckeditor5-comments 37.0.1 → 38.0.0-rc.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 (157) 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 +87 -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.d.ts +9 -4
  148. package/src/comments/ui/view/commentthreadview.js +1 -1
  149. package/src/comments/ui/view/commentview.d.ts +15 -7
  150. package/src/comments/ui/view/commentview.js +1 -1
  151. package/src/comments.js +1 -1
  152. package/src/commentsonly.js +1 -1
  153. package/src/utils/common-translations.js +1 -1
  154. package/src/utils/createmutationobserver.js +1 -1
  155. package/theme/comment.css +12 -3
  156. package/theme/commentinput.css +8 -6
  157. package/theme/commentsarchive.css +10 -2
@@ -47,15 +47,25 @@ export default class CommentView extends CommentView_base {
47
47
  */
48
48
  resolvedAt: Date | null;
49
49
  /**
50
- * Collection for action bar elements.
50
+ * Collection for UI elements that manage the comment.
51
+ *
52
+ * Elements that may be found in the action bar (depending on the comment view properties):
53
+ *
54
+ * * the resolve comment thread button (only if the comment is the first comment),
55
+ * * a dropdown with actions ({@link ~CommentView#dropdown `dropdown`}).
51
56
  */
52
57
  actionBar: ViewCollection;
53
58
  /**
54
59
  * View collection which holds all the comments dropdown elements.
60
+ *
61
+ * May include, depending on the view properties:
62
+ *
63
+ * * {@link ~CommentView#editButton `editButton`},
64
+ * * {@link ~CommentView#removeButton `removeButton`}.
55
65
  */
56
66
  items: ViewCollection<ButtonView>;
57
67
  /**
58
- * Dropdown containing comment action buttons.
68
+ * Dropdown containing comment action buttons defined in {@link ~CommentView#items `items`}.
59
69
  */
60
70
  dropdown: DropdownView;
61
71
  /**
@@ -103,6 +113,7 @@ export default class CommentView extends CommentView_base {
103
113
  * class: [
104
114
  * 'ck-comment',
105
115
  * 'ck-annotation',
116
+ * bind.if( 'isSystemComment', 'ck-comment--info' ),
106
117
  * bind.if( 'isEditMode', 'ck-comment--edit' ),
107
118
  * bind.to( 'actionIndicator', value => value ? `ck-comment--${ value }` : '' )
108
119
  * ],
@@ -169,10 +180,7 @@ export default class CommentView extends CommentView_base {
169
180
  * ]
170
181
  * },
171
182
  *
172
- * children: [
173
- * this.editButton,
174
- * this.removeButton
175
- * ]
183
+ * children: this.actionBar
176
184
  * },
177
185
  * {
178
186
  * tag: 'div',
@@ -191,7 +199,7 @@ export default class CommentView extends CommentView_base {
191
199
  * },
192
200
  *
193
201
  * children: [ {
194
- * text: getTranslation( this.locale, 'EXTERNAL_COMMENT' )
202
+ * text: this.getExternalCommentNote()
195
203
  * } ]
196
204
  * }
197
205
  * ]
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x54fa=['render','isEditable','ck-annotation__info','name','ck-comment--info','ck-comment--edit','ck-annotation__actions','ck-comment__main','getTemplate','threeVerticalDots','fire','push','getUserViewNotificationText','source','actionBar','ck-comment--remove','isReadOnly','extendTemplate','ck-annotation__user','attributes','buttonView','focus','time','Remove','bindTemplate','blur','label','ck-comment','bind','visibleView','some','isSystemComment','authoredAt','ck-annotation','Show\x20more\x20items','editButton','div','actionIndicator','_attachActions','isConfirm','ck-comment__external','removeButton','execute','getExternalCommentNote','author','panelView','_createRemoveButton','then','resolvedAt','isExternal','change:isVisible','ck-comment__actions--hidden','ck-comment__info-time','placeholder','listenTo','change:isEnabled','panelPosition','items','set','userView','_createDropdown','_model','EXTERNAL_IMPORT_WORD_COMMENT','change:isRemovable','ck-annotation__info-name','icon','mouseenter','pencil','isVisible','element','showConfirm','locale','dropdown','ck-comment--remove-confirmation','ck-annotation__content-wrapper','_createEditButton','setTemplate','_config','ck-comment--','Reply...','EXTERNAL_IMPORT_WORD_AVATAR','remove','ck-comment__info','createCollection','isEnabled','switchToEditMode','Edit','isRemovable','EXTERNAL_COMMENT','children','add','ck-annotation__main','isEditMode','edit','cancelConfirm','@external','mouseleave'];(function(_0x100fb2,_0x54fa7d){const _0x453fe6=function(_0xe262aa){while(--_0xe262aa){_0x100fb2['push'](_0x100fb2['shift']());}};_0x453fe6(++_0x54fa7d);}(_0x54fa,0xa7));const _0x453f=function(_0x100fb2,_0x54fa7d){_0x100fb2=_0x100fb2-0x0;let _0x453fe6=_0x54fa[_0x100fb2];return _0x453fe6;};import{ButtonView as _0x4e4cb3,createDropdown as _0x48fef9,ListView as _0x49d7af,ListItemView as _0x51ce5e}from'ckeditor5/src/ui';import{icons as _0x2c893f}from'ckeditor5/src/core';import{UserView as _0x4b399f,ConfirmMixin as _0x10e5a4}from'ckeditor5-collaboration/src/collaboration-core';import _0x686116 from'./basecommentview';import _0x46cfaa from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x45f14c}from'../../../utils/common-translations';export default class lt extends _0x10e5a4(_0x686116){constructor(_0x1b3d20,_0x4fb104,_0x5475a2){super(_0x1b3d20,_0x4fb104,_0x5475a2),this[_0x453f('0x55')](_0x453f('0x40'),null),this[_0x453f('0x55')](_0x453f('0x50'),_0x45f14c(_0x1b3d20,_0x453f('0x9'))),this[_0x453f('0x37')]('authoredAt')['to'](_0x4fb104),this['bind'](_0x453f('0x4b'))['to'](_0x4fb104),this[_0x453f('0x29')]=this[_0x453f('0xd')](),this[_0x453f('0x3a')]||(this[_0x453f('0x3e')]=this[_0x453f('0x5')](),this[_0x453f('0x44')]=this['_createRemoveButton'](),this[_0x453f('0x54')]=this[_0x453f('0xd')](),this[_0x453f('0x54')]['addMany']([this['editButton'],this[_0x453f('0x44')]]),this[_0x453f('0x2')]=this[_0x453f('0x57')](),this['actionBar'][_0x453f('0x14')](this[_0x453f('0x2')])),this[_0x453f('0x56')]=new _0x4b399f(_0x1b3d20,_0x4fb104[_0x453f('0x47')],this[_0x453f('0x27')]()),this[_0x453f('0x56')][_0x453f('0x2c')]({'attributes':{'class':['ck-comment__user',_0x453f('0x2d')]}}),this['listenTo'](_0x4fb104,_0x453f('0x5a'),()=>this[_0x453f('0x18')]()),this[_0x453f('0x6')](this[_0x453f('0x23')]());}[_0x453f('0x23')](){const _0x2c51db=this[_0x453f('0x33')],_0x52ed5d=[{'tag':_0x453f('0x3f'),'attributes':{'class':[_0x453f('0xc'),_0x453f('0x1d')]},'children':[{'tag':'span','children':[{'text':this[_0x453f('0x56')][_0x453f('0x1e')]}],'attributes':{'class':['ck-comment__info-name',_0x453f('0x5b')]}},{'tag':_0x453f('0x31'),'attributes':{'datetime':_0x2c51db['to'](_0x453f('0x3b')),'class':[_0x453f('0x4f'),'ck-annotation__info-time']},'children':[{'text':_0x2c51db['to'](_0x453f('0x3b'),_0x4eabe3=>this[_0x453f('0x7')]['formatDateTime'](_0x4eabe3))}]}]},{'tag':_0x453f('0x3f'),'attributes':{'class':['ck-comment__actions',_0x453f('0x21'),_0x2c51db['if'](_0x453f('0x16'),_0x453f('0x4e')),_0x2c51db['if']('isEditMode','ck-annotation__actions--hidden')]},'children':this[_0x453f('0x29')]},{'tag':_0x453f('0x3f'),'attributes':{'class':[_0x453f('0x4')]},'children':this[_0x453f('0x38')]}];return this[_0x453f('0x58')][_0x453f('0x4c')]&&_0x52ed5d[_0x453f('0x26')]({'tag':_0x453f('0x3f'),'attributes':{'class':[_0x453f('0x43')]},'children':[{'text':this[_0x453f('0x46')]()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x2c51db['if'](_0x453f('0x42'),_0x453f('0x3'))],'tabindex':-0x1},'children':[{'tag':_0x453f('0x3f'),'attributes':{'class':[_0x453f('0x36'),_0x453f('0x3c'),_0x2c51db['if'](_0x453f('0x16'),_0x453f('0x20')),_0x2c51db['if']('isSystemComment',_0x453f('0x1f')),_0x2c51db['to'](_0x453f('0x40'),_0x1d6e1c=>_0x1d6e1c?_0x453f('0x8')+_0x1d6e1c:'')],'data-author-id':this[_0x453f('0x58')][_0x453f('0x47')]['id'],'data-comment-id':this[_0x453f('0x58')]['id']},'children':[this[_0x453f('0x56')],{'tag':'div','attributes':{'class':[_0x453f('0x22'),_0x453f('0x15')]},'children':_0x52ed5d}]}]};}[_0x453f('0x5')](){const _0x1c80c2=new _0x4e4cb3(this['locale']);return _0x1c80c2[_0x453f('0x35')]=_0x45f14c(this['locale'],_0x453f('0x10')),_0x1c80c2[_0x453f('0x5c')]=_0x2c893f[_0x453f('0x5e')],_0x1c80c2['withText']=!0x0,_0x1c80c2[_0x453f('0x2c')]({'attributes':{'class':_0x453f('0x20')}}),_0x1c80c2[_0x453f('0x37')](_0x453f('0xe'))['to'](this[_0x453f('0x58')],'isReadOnly',_0x2e0ce3=>!_0x2e0ce3),_0x1c80c2[_0x453f('0x37')](_0x453f('0x5f'))['to'](this[_0x453f('0x58')],_0x453f('0x1c')),_0x1c80c2['on']('execute',()=>this[_0x453f('0xf')]()),_0x1c80c2;}[_0x453f('0x49')](){const _0x33a78a=new _0x4e4cb3(this[_0x453f('0x1')]);return _0x33a78a[_0x453f('0x35')]=_0x45f14c(this[_0x453f('0x1')],_0x453f('0x32')),_0x33a78a[_0x453f('0x5c')]=_0x46cfaa,_0x33a78a['withText']=!0x0,_0x33a78a[_0x453f('0x2c')]({'attributes':{'class':_0x453f('0x2a')}}),_0x33a78a[_0x453f('0x37')]('isEnabled')['to'](this[_0x453f('0x58')],_0x453f('0x2b'),_0x461774=>!_0x461774),_0x33a78a[_0x453f('0x37')](_0x453f('0x5f'))['to'](this[_0x453f('0x58')],_0x453f('0x11')),_0x33a78a['on'](_0x453f('0x45'),()=>{this[_0x453f('0x0')](_0x45f14c(this['locale'],'Delete\x20comment?'),this[_0x453f('0x60')])[_0x453f('0x4a')](()=>{this[_0x453f('0x25')]('removeComment',this[_0x453f('0x58')]['id']);});}),_0x33a78a;}[_0x453f('0x57')](){const _0x4695e6=_0x48fef9(this[_0x453f('0x1')]),_0x45a76f=_0x4695e6[_0x453f('0x48')][_0x453f('0x13')],_0x2dfde6=new _0x49d7af(this['locale']),_0x58b985=(_0x2f9b93,_0x44af28=-0x1)=>{const _0xf0bd03=new _0x51ce5e(this[_0x453f('0x1')]);_0xf0bd03[_0x453f('0x13')]['add'](_0x2f9b93);const _0x17dbf5=_0x44af28>-0x1?_0x44af28:_0x2dfde6['items']['length'];_0x2dfde6[_0x453f('0x54')]['add'](_0xf0bd03,_0x17dbf5),_0x4695e6[_0x453f('0x51')](_0x2f9b93,_0x453f('0x52'),()=>{_0x4695e6[_0x453f('0xe')]=[...this[_0x453f('0x54')]][_0x453f('0x39')](_0x27e39d=>_0x27e39d[_0x453f('0xe')]);}),_0x4695e6[_0x453f('0x51')](_0x2f9b93,_0x453f('0x4d'),()=>{_0x4695e6[_0x453f('0x2f')][_0x453f('0x5f')]=[...this[_0x453f('0x54')]][_0x453f('0x39')](_0x203cb8=>_0x203cb8['isVisible']);});};_0x4695e6[_0x453f('0x53')]='sw',_0x4695e6['buttonView'][_0x453f('0x55')]({'label':_0x45f14c(this[_0x453f('0x1')],_0x453f('0x3d')),'icon':_0x2c893f[_0x453f('0x24')]}),_0x4695e6[_0x453f('0xe')]=[...this[_0x453f('0x54')]][_0x453f('0x39')](_0x4ec3d1=>_0x4ec3d1['isEnabled']),_0x4695e6[_0x453f('0x2f')]['isVisible']=[...this[_0x453f('0x54')]][_0x453f('0x39')](_0x4c74ab=>_0x4c74ab['isVisible']);for(const _0x468700 of this[_0x453f('0x54')])_0x58b985(_0x468700);return _0x45a76f[_0x453f('0x14')](_0x2dfde6),_0x4695e6[_0x453f('0x51')](this[_0x453f('0x54')],'add',(_0x1920b9,_0x4f2b03,_0x27ead6)=>{_0x58b985(_0x4f2b03,_0x27ead6);}),_0x4695e6[_0x453f('0x51')](this[_0x453f('0x54')],'remove',(_0x4d7720,_0x40e47,_0x63e1d2)=>{_0x2dfde6[_0x453f('0x54')][_0x453f('0xb')](_0x63e1d2);}),_0x4695e6;}[_0x453f('0x41')](_0x24d967,_0x1384ff){const _0x277c8b=_0x24d967&&_0x24d967[_0x453f('0x60')];_0x277c8b&&(this[_0x453f('0x51')](_0x277c8b,_0x453f('0x5d'),()=>this[_0x453f('0x40')]=_0x1384ff),this[_0x453f('0x51')](_0x277c8b,_0x453f('0x30'),()=>this[_0x453f('0x40')]=_0x1384ff),this['listenTo'](_0x277c8b,_0x453f('0x1a'),()=>this[_0x453f('0x40')]=null),this['listenTo'](_0x277c8b,_0x453f('0x34'),()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0xf35e5d=super['_createCommentInputView']();return _0xf35e5d[_0x453f('0x37')](_0x453f('0x50'))['to'](this),_0xf35e5d;}[_0x453f('0x46')](){return'importWord'===this['_model'][_0x453f('0x2e')]['@external'][_0x453f('0x28')]?_0x45f14c(this['locale'],_0x453f('0x59')):_0x45f14c(this[_0x453f('0x1')],_0x453f('0x12'));}[_0x453f('0x27')](){return this['_model'][_0x453f('0x4c')]?'importWord'===this['_model'][_0x453f('0x2e')][_0x453f('0x19')][_0x453f('0x28')]?_0x45f14c(this[_0x453f('0x1')],_0x453f('0xa'),this[_0x453f('0x58')]['creator'][_0x453f('0x1e')]):_0x45f14c(this['locale'],'EXTERNAL_AVATAR',this[_0x453f('0x58')]['creator']['name']):null;}[_0x453f('0x1b')](){super[_0x453f('0x1b')](),this[_0x453f('0x41')](this[_0x453f('0x3e')],_0x453f('0x17')),this[_0x453f('0x41')](this['removeButton'],_0x453f('0xb'));}}
23
+ const _0xc561=['isConfirm','ck-annotation','extendTemplate','length','actionIndicator','ck-comment__info','actionBar','icon','addMany','children','attributes','_createDropdown','add','mouseleave','isEditMode','authoredAt','Remove','bindTemplate','isVisible','isRemovable','source','_attachActions','Edit','element','div','ck-comment--remove','ck-comment--edit','some','_model','change:isEnabled','switchToEditMode','_createRemoveButton','ck-comment__main','createCollection','threeVerticalDots','change:isVisible','placeholder','set','items','ck-comment','withText','importWord','_createCommentInputView','getUserViewNotificationText','author','listenTo','panelView','cancelConfirm','push','Reply...','change:isRemovable','time','ck-annotation__content-wrapper','ck-annotation__info-name','removeButton','ck-comment__actions','ck-comment__user','dropdown','edit','ck-annotation__info','userView','getTemplate','name','ck-annotation__main','bind','isSystemComment','formatDateTime','ck-comment__external','ck-annotation__info-time','editButton','_config','getExternalCommentNote','ck-comment--info','_createEditButton','buttonView','visibleView','isEditable','render','isEnabled','remove','ck-comment__info-time','resolvedAt','execute','removeComment','ck-annotation__actions--hidden','ck-comment__actions--hidden','label','span','isReadOnly','locale','then','Show\x20more\x20items','@external'];(function(_0x1921e2,_0xc5611e){const _0x3a8b6b=function(_0xb77491){while(--_0xb77491){_0x1921e2['push'](_0x1921e2['shift']());}};_0x3a8b6b(++_0xc5611e);}(_0xc561,0xcd));const _0x3a8b=function(_0x1921e2,_0xc5611e){_0x1921e2=_0x1921e2-0x0;let _0x3a8b6b=_0xc561[_0x1921e2];return _0x3a8b6b;};import{ButtonView as _0x410649,createDropdown as _0xdd1a86,ListView as _0xa7c8d5,ListItemView as _0x4a0a3b}from'ckeditor5/src/ui';import{icons as _0x2016c3}from'ckeditor5/src/core';import{UserView as _0x19a7f3,ConfirmMixin as _0x1b02ac}from'ckeditor5-collaboration/src/collaboration-core';import _0x3bd831 from'./basecommentview';import _0x36a0d2 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x5109fa}from'../../../utils/common-translations';export default class ut extends _0x1b02ac(_0x3bd831){constructor(_0x4e4302,_0x37544f,_0xf5d823){super(_0x4e4302,_0x37544f,_0xf5d823),this['set'](_0x3a8b('0x4e'),null),this[_0x3a8b('0x12')](_0x3a8b('0x11'),_0x5109fa(_0x4e4302,_0x3a8b('0x1e'))),this[_0x3a8b('0x2d')](_0x3a8b('0x59'))['to'](_0x37544f),this[_0x3a8b('0x2d')](_0x3a8b('0x3e'))['to'](_0x37544f),this[_0x3a8b('0x50')]=this[_0x3a8b('0xe')](),this[_0x3a8b('0x2e')]||(this[_0x3a8b('0x32')]=this['_createEditButton'](),this['removeButton']=this[_0x3a8b('0xc')](),this['items']=this[_0x3a8b('0xe')](),this['items'][_0x3a8b('0x52')]([this['editButton'],this[_0x3a8b('0x23')]]),this[_0x3a8b('0x26')]=this[_0x3a8b('0x55')](),this[_0x3a8b('0x50')][_0x3a8b('0x56')](this[_0x3a8b('0x26')])),this[_0x3a8b('0x29')]=new _0x19a7f3(_0x4e4302,_0x37544f[_0x3a8b('0x19')],this[_0x3a8b('0x18')]()),this[_0x3a8b('0x29')]['extendTemplate']({'attributes':{'class':[_0x3a8b('0x25'),'ck-annotation__user']}}),this[_0x3a8b('0x1a')](_0x37544f,_0x3a8b('0x1f'),()=>this[_0x3a8b('0x1c')]()),this['setTemplate'](this[_0x3a8b('0x2a')]());}[_0x3a8b('0x2a')](){const _0xa445d5=this[_0x3a8b('0x5b')],_0x5e9f50=[{'tag':_0x3a8b('0x5'),'attributes':{'class':[_0x3a8b('0x4f'),_0x3a8b('0x28')]},'children':[{'tag':_0x3a8b('0x44'),'children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name',_0x3a8b('0x22')]}},{'tag':_0x3a8b('0x20'),'attributes':{'datetime':_0xa445d5['to']('authoredAt'),'class':[_0x3a8b('0x3d'),_0x3a8b('0x31')]},'children':[{'text':_0xa445d5['to'](_0x3a8b('0x59'),_0x3c42fe=>this[_0x3a8b('0x33')][_0x3a8b('0x2f')](_0x3c42fe))}]}]},{'tag':_0x3a8b('0x5'),'attributes':{'class':[_0x3a8b('0x24'),'ck-annotation__actions',_0xa445d5['if']('isEditMode',_0x3a8b('0x42')),_0xa445d5['if'](_0x3a8b('0x58'),_0x3a8b('0x41'))]},'children':this[_0x3a8b('0x50')]},{'tag':_0x3a8b('0x5'),'attributes':{'class':[_0x3a8b('0x21')]},'children':this[_0x3a8b('0x38')]}];return this[_0x3a8b('0x9')]['isExternal']&&_0x5e9f50[_0x3a8b('0x1d')]({'tag':_0x3a8b('0x5'),'attributes':{'class':[_0x3a8b('0x30')]},'children':[{'text':this[_0x3a8b('0x34')]()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0xa445d5['if'](_0x3a8b('0x4a'),'ck-comment--remove-confirmation')],'tabindex':-0x1},'children':[{'tag':_0x3a8b('0x5'),'attributes':{'class':[_0x3a8b('0x14'),_0x3a8b('0x4b'),_0xa445d5['if'](_0x3a8b('0x58'),_0x3a8b('0x7')),_0xa445d5['if']('isSystemComment',_0x3a8b('0x35')),_0xa445d5['to']('actionIndicator',_0x407f57=>_0x407f57?'ck-comment--'+_0x407f57:'')],'data-author-id':this['_model'][_0x3a8b('0x19')]['id'],'data-comment-id':this[_0x3a8b('0x9')]['id']},'children':[this[_0x3a8b('0x29')],{'tag':_0x3a8b('0x5'),'attributes':{'class':[_0x3a8b('0xd'),_0x3a8b('0x2c')]},'children':_0x5e9f50}]}]};}[_0x3a8b('0x36')](){const _0x2b4c48=new _0x410649(this[_0x3a8b('0x46')]);return _0x2b4c48[_0x3a8b('0x43')]=_0x5109fa(this['locale'],_0x3a8b('0x3')),_0x2b4c48[_0x3a8b('0x51')]=_0x2016c3['pencil'],_0x2b4c48[_0x3a8b('0x15')]=!0x0,_0x2b4c48[_0x3a8b('0x4c')]({'attributes':{'class':_0x3a8b('0x7')}}),_0x2b4c48['bind'](_0x3a8b('0x3b'))['to'](this['_model'],'isReadOnly',_0x40e73b=>!_0x40e73b),_0x2b4c48[_0x3a8b('0x2d')](_0x3a8b('0x5c'))['to'](this[_0x3a8b('0x9')],_0x3a8b('0x39')),_0x2b4c48['on']('execute',()=>this[_0x3a8b('0xb')]()),_0x2b4c48;}['_createRemoveButton'](){const _0x477133=new _0x410649(this[_0x3a8b('0x46')]);return _0x477133[_0x3a8b('0x43')]=_0x5109fa(this[_0x3a8b('0x46')],_0x3a8b('0x5a')),_0x477133[_0x3a8b('0x51')]=_0x36a0d2,_0x477133[_0x3a8b('0x15')]=!0x0,_0x477133['extendTemplate']({'attributes':{'class':_0x3a8b('0x6')}}),_0x477133[_0x3a8b('0x2d')](_0x3a8b('0x3b'))['to'](this[_0x3a8b('0x9')],_0x3a8b('0x45'),_0x3cb959=>!_0x3cb959),_0x477133['bind'](_0x3a8b('0x5c'))['to'](this[_0x3a8b('0x9')],_0x3a8b('0x0')),_0x477133['on'](_0x3a8b('0x3f'),()=>{this['showConfirm'](_0x5109fa(this[_0x3a8b('0x46')],'Delete\x20comment?'),this[_0x3a8b('0x4')])[_0x3a8b('0x47')](()=>{this['fire'](_0x3a8b('0x40'),this[_0x3a8b('0x9')]['id']);});}),_0x477133;}[_0x3a8b('0x55')](){const _0x9b9cdb=_0xdd1a86(this[_0x3a8b('0x46')]),_0xc76dd9=_0x9b9cdb[_0x3a8b('0x1b')][_0x3a8b('0x53')],_0x110672=new _0xa7c8d5(this[_0x3a8b('0x46')]),_0x5e649e=(_0x2a9f7e,_0x4f8e93=-0x1)=>{const _0x299611=new _0x4a0a3b(this[_0x3a8b('0x46')]);_0x299611[_0x3a8b('0x53')]['add'](_0x2a9f7e);const _0x2b4830=_0x4f8e93>-0x1?_0x4f8e93:_0x110672[_0x3a8b('0x13')][_0x3a8b('0x4d')];_0x110672[_0x3a8b('0x13')][_0x3a8b('0x56')](_0x299611,_0x2b4830),_0x9b9cdb[_0x3a8b('0x1a')](_0x2a9f7e,_0x3a8b('0xa'),()=>{_0x9b9cdb[_0x3a8b('0x3b')]=[...this[_0x3a8b('0x13')]][_0x3a8b('0x8')](_0x4b7409=>_0x4b7409['isEnabled']);}),_0x9b9cdb[_0x3a8b('0x1a')](_0x2a9f7e,_0x3a8b('0x10'),()=>{_0x9b9cdb[_0x3a8b('0x37')]['isVisible']=[...this[_0x3a8b('0x13')]][_0x3a8b('0x8')](_0x439027=>_0x439027[_0x3a8b('0x5c')]);});};_0x9b9cdb['panelPosition']='sw',_0x9b9cdb[_0x3a8b('0x37')][_0x3a8b('0x12')]({'label':_0x5109fa(this['locale'],_0x3a8b('0x48')),'icon':_0x2016c3[_0x3a8b('0xf')]}),_0x9b9cdb['isEnabled']=[...this['items']][_0x3a8b('0x8')](_0x11f520=>_0x11f520['isEnabled']),_0x9b9cdb[_0x3a8b('0x37')][_0x3a8b('0x5c')]=[...this[_0x3a8b('0x13')]][_0x3a8b('0x8')](_0x442d46=>_0x442d46[_0x3a8b('0x5c')]);for(const _0x485e4c of this['items'])_0x5e649e(_0x485e4c);return _0xc76dd9[_0x3a8b('0x56')](_0x110672),_0x9b9cdb[_0x3a8b('0x1a')](this[_0x3a8b('0x13')],'add',(_0x1216be,_0x4b3d95,_0x2f465f)=>{_0x5e649e(_0x4b3d95,_0x2f465f);}),_0x9b9cdb[_0x3a8b('0x1a')](this[_0x3a8b('0x13')],_0x3a8b('0x3c'),(_0x4cca6c,_0x3836e7,_0x771bcc)=>{_0x110672['items'][_0x3a8b('0x3c')](_0x771bcc);}),_0x9b9cdb;}[_0x3a8b('0x2')](_0x5d2fef,_0x19e506){const _0x130f74=_0x5d2fef&&_0x5d2fef[_0x3a8b('0x4')];_0x130f74&&(this[_0x3a8b('0x1a')](_0x130f74,'mouseenter',()=>this[_0x3a8b('0x4e')]=_0x19e506),this[_0x3a8b('0x1a')](_0x130f74,'focus',()=>this[_0x3a8b('0x4e')]=_0x19e506),this[_0x3a8b('0x1a')](_0x130f74,_0x3a8b('0x57'),()=>this[_0x3a8b('0x4e')]=null),this[_0x3a8b('0x1a')](_0x130f74,'blur',()=>this[_0x3a8b('0x4e')]=null));}[_0x3a8b('0x17')](){const _0x498aaf=super[_0x3a8b('0x17')]();return _0x498aaf['bind'](_0x3a8b('0x11'))['to'](this),_0x498aaf;}[_0x3a8b('0x34')](){return _0x3a8b('0x16')===this['_model'][_0x3a8b('0x54')][_0x3a8b('0x49')]['source']?_0x5109fa(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):_0x5109fa(this[_0x3a8b('0x46')],'EXTERNAL_COMMENT');}[_0x3a8b('0x18')](){return this[_0x3a8b('0x9')]['isExternal']?_0x3a8b('0x16')===this['_model']['attributes'][_0x3a8b('0x49')][_0x3a8b('0x1')]?_0x5109fa(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this[_0x3a8b('0x9')]['creator'][_0x3a8b('0x2b')]):_0x5109fa(this['locale'],'EXTERNAL_AVATAR',this[_0x3a8b('0x9')]['creator'][_0x3a8b('0x2b')]):null;}[_0x3a8b('0x3a')](){super[_0x3a8b('0x3a')](),this['_attachActions'](this[_0x3a8b('0x32')],_0x3a8b('0x27')),this[_0x3a8b('0x2')](this[_0x3a8b('0x23')],'remove');}}
package/src/comments.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x59fa=['requires','Comments','pluginName'];(function(_0x40cf95,_0x59fa16){var _0x1e18d0=function(_0x1de0c4){while(--_0x1de0c4){_0x40cf95['push'](_0x40cf95['shift']());}};_0x1e18d0(++_0x59fa16);}(_0x59fa,0x174));var _0x1e18=function(_0x40cf95,_0x59fa16){_0x40cf95=_0x40cf95-0x0;var _0x1e18d0=_0x59fa[_0x40cf95];return _0x1e18d0;};import{Plugin as _0x2765c2}from'ckeditor5/src/core';import _0xb087d5 from'./comments/commentsrepository';import _0x345341 from'./comments/commentsediting';import _0x437742 from'./comments/commentsui';import _0x59eb92 from'./commentsonly';import _0x2d397a from'./annotations/widesidebar';import _0x48c2ee from'./annotations/narrowsidebar';import _0x3ea0da from'./annotations/inlineannotations';import _0x230a71 from'./comments/commentsarchiveui';import _0x3f261d from'./comments/commentsarchive';export default class f extends _0x2765c2{static get[_0x1e18('0x0')](){return[_0xb087d5,_0x345341,_0x437742,_0x3f261d,_0x230a71,_0x59eb92,_0x2d397a,_0x48c2ee,_0x3ea0da];}static get[_0x1e18('0x2')](){return _0x1e18('0x1');}}
23
+ var _0x4d73=['requires','pluginName','Comments'];(function(_0x5c81ac,_0x4d7374){var _0x44d59d=function(_0x43ae65){while(--_0x43ae65){_0x5c81ac['push'](_0x5c81ac['shift']());}};_0x44d59d(++_0x4d7374);}(_0x4d73,0x1e8));var _0x44d5=function(_0x5c81ac,_0x4d7374){_0x5c81ac=_0x5c81ac-0x0;var _0x44d59d=_0x4d73[_0x5c81ac];return _0x44d59d;};import{Plugin as _0x1ead23}from'ckeditor5/src/core';import _0x5f3c5f from'./comments/commentsrepository';import _0x54bf10 from'./comments/commentsediting';import _0x4c96b5 from'./comments/commentsui';import _0x35b930 from'./commentsonly';import _0x1231f7 from'./annotations/widesidebar';import _0x3c59ff from'./annotations/narrowsidebar';import _0x50a7ce from'./annotations/inlineannotations';import _0x3ef86d from'./comments/commentsarchiveui';import _0x3579da from'./comments/commentsarchive';export default class f extends _0x1ead23{static get[_0x44d5('0x1')](){return[_0x5f3c5f,_0x54bf10,_0x4c96b5,_0x3579da,_0x3ef86d,_0x35b930,_0x1231f7,_0x3c59ff,_0x50a7ce];}static get[_0x44d5('0x2')](){return _0x44d5('0x0');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2d61=['CommentsOnly','forceDisabled','addCommentThread','set','stop','change:isEnabled','view','clearForceDisabled','editing','document','listenTo','requires','_enableCommentsOnlyMode','commands','plugins','get','clipboardInput','afterInit','editor','stopListening','commentsOnlyMode','delete','isEnabled','commentsOnly','config','highest','_disableCommentsOnlyMode','affectsData','cut'];(function(_0x5d2349,_0x2d614d){const _0x2cea71=function(_0x44a636){while(--_0x44a636){_0x5d2349['push'](_0x5d2349['shift']());}};_0x2cea71(++_0x2d614d);}(_0x2d61,0x1eb));const _0x2cea=function(_0x5d2349,_0x2d614d){_0x5d2349=_0x5d2349-0x0;let _0x2cea71=_0x2d61[_0x5d2349];return _0x2cea71;};import{Plugin as _0x95d092}from'ckeditor5/src/core';import _0x326ef5 from'./comments/commentsediting';export default class n extends _0x95d092{static get['pluginName'](){return _0x2cea('0x2');}static get[_0x2cea('0xd')](){return[_0x326ef5];}constructor(_0x33e40b){super(_0x33e40b),this[_0x2cea('0x5')](_0x2cea('0x18'),!0x1),this['on'](_0x2cea('0x7'),(_0x4c7e18,_0x46ac7d,_0xe79061)=>{_0xe79061?this[_0x2cea('0xe')]():this['_disableCommentsOnlyMode']();});}[_0x2cea('0x13')](){!this[_0x2cea('0x18')]&&this[_0x2cea('0x14')][_0x2cea('0x1a')][_0x2cea('0x11')](_0x2cea('0x19'))&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x12aa46,_0x2bdcfa]of this[_0x2cea('0x14')]['commands'])_0x2bdcfa[_0x2cea('0x0')]&&'addCommentThread'!==_0x12aa46&&_0x2bdcfa[_0x2cea('0x3')](_0x2cea('0x16'));this['editor'][_0x2cea('0x10')]['has']('DragDrop')&&this[_0x2cea('0x14')][_0x2cea('0x10')]['get']('DragDrop')[_0x2cea('0x3')]('commentsOnlyMode');const _0x466651=this[_0x2cea('0x14')][_0x2cea('0xa')][_0x2cea('0x8')][_0x2cea('0xb')];this[_0x2cea('0xc')](_0x466651,_0x2cea('0x1'),_0x514c1d=>_0x514c1d[_0x2cea('0x6')](),{'priority':_0x2cea('0x1b')}),this[_0x2cea('0xc')](_0x466651,_0x2cea('0x12'),_0x3e38a3=>_0x3e38a3[_0x2cea('0x6')](),{'priority':_0x2cea('0x1b')}),this['listenTo'](_0x466651,_0x2cea('0x17'),_0x22fc74=>_0x22fc74[_0x2cea('0x6')](),{'priority':_0x2cea('0x1b')});}[_0x2cea('0x1c')](){for(const [_0x1793e3,_0x2fbaf3]of this[_0x2cea('0x14')][_0x2cea('0xf')])_0x2fbaf3[_0x2cea('0x0')]&&_0x2cea('0x4')!==_0x1793e3&&_0x2fbaf3[_0x2cea('0x9')](_0x2cea('0x16'));this[_0x2cea('0x15')](this[_0x2cea('0x14')][_0x2cea('0xa')]['view'][_0x2cea('0xb')]);}}
23
+ const _0x36e0=['clipboardInput','forceDisabled','listenTo','highest','requires','plugins','affectsData','config','_enableCommentsOnlyMode','editing','commentsOnlyMode','_disableCommentsOnlyMode','stopListening','isEnabled','set','stop','clearForceDisabled','DragDrop','editor','document','commands','addCommentThread','cut','change:isEnabled','commentsOnly','pluginName'];(function(_0x4d5c43,_0x36e0dd){const _0x318c34=function(_0x25bc5d){while(--_0x25bc5d){_0x4d5c43['push'](_0x4d5c43['shift']());}};_0x318c34(++_0x36e0dd);}(_0x36e0,0x1a9));const _0x318c=function(_0x4d5c43,_0x36e0dd){_0x4d5c43=_0x4d5c43-0x0;let _0x318c34=_0x36e0[_0x4d5c43];return _0x318c34;};import{Plugin as _0x3dc6b0}from'ckeditor5/src/core';import _0x2fad0a from'./comments/commentsediting';export default class n extends _0x3dc6b0{static get[_0x318c('0x10')](){return'CommentsOnly';}static get[_0x318c('0x15')](){return[_0x2fad0a];}constructor(_0x23f7d7){super(_0x23f7d7),this[_0x318c('0x5')](_0x318c('0x4'),!0x1),this['on'](_0x318c('0xe'),(_0x32f4d5,_0x21c047,_0x3d322c)=>{_0x3d322c?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this[_0x318c('0x4')]&&this[_0x318c('0x9')][_0x318c('0x18')]['get'](_0x318c('0xf'))&&(this['isEnabled']=!0x0);}[_0x318c('0x19')](){for(const [_0x2fcff1,_0x4c9331]of this['editor'][_0x318c('0xb')])_0x4c9331[_0x318c('0x17')]&&_0x318c('0xc')!==_0x2fcff1&&_0x4c9331[_0x318c('0x12')](_0x318c('0x1'));this[_0x318c('0x9')][_0x318c('0x16')]['has'](_0x318c('0x8'))&&this['editor'][_0x318c('0x16')]['get']('DragDrop')['forceDisabled'](_0x318c('0x1'));const _0x156b40=this[_0x318c('0x9')]['editing']['view'][_0x318c('0xa')];this[_0x318c('0x13')](_0x156b40,_0x318c('0xd'),_0x100797=>_0x100797[_0x318c('0x6')](),{'priority':_0x318c('0x14')}),this[_0x318c('0x13')](_0x156b40,_0x318c('0x11'),_0x2bfb27=>_0x2bfb27['stop'](),{'priority':_0x318c('0x14')}),this[_0x318c('0x13')](_0x156b40,'delete',_0x2bef7c=>_0x2bef7c[_0x318c('0x6')](),{'priority':_0x318c('0x14')});}[_0x318c('0x2')](){for(const [_0xf1bf33,_0x3ebe83]of this[_0x318c('0x9')][_0x318c('0xb')])_0x3ebe83[_0x318c('0x17')]&&_0x318c('0xc')!==_0xf1bf33&&_0x3ebe83[_0x318c('0x7')](_0x318c('0x1'));this[_0x318c('0x3')](this['editor'][_0x318c('0x0')]['view'][_0x318c('0xa')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x295c64,_0x225ac5,_0x1626cc){const t=_0x295c64['t'];switch(_0x225ac5){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'},_0x1626cc);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'},_0x1626cc);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'},_0x1626cc);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'},_0x1626cc);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(_0x5d86f9,_0x406380,_0x431430){const t=_0x5d86f9['t'];switch(_0x406380){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'},_0x431430);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'},_0x431430);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'},_0x431430);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'},_0x431430);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 _0x17df=['observe','attributeName','type','disconnect','cancel','attributes','class'];(function(_0x3d537e,_0x17dfce){const _0x265a11=function(_0x3d0f70){while(--_0x3d0f70){_0x3d537e['push'](_0x3d537e['shift']());}};_0x265a11(++_0x17dfce);}(_0x17df,0x165));const _0x265a=function(_0x3d537e,_0x17dfce){_0x3d537e=_0x3d537e-0x0;let _0x265a11=_0x17df[_0x3d537e];return _0x265a11;};import{throttle as _0x322333}from'lodash-es';export default function xt(_0x5cdb9b){const _0x333581=_0x322333(_0x5cdb9b,0x1e),_0x35e643=new MutationObserver(_0x30171a=>{for(const _0x4429ca of _0x30171a)(_0x265a('0x5')==_0x4429ca[_0x265a('0x2')]&&_0x265a('0x6')==_0x4429ca[_0x265a('0x1')]||'childList'==_0x4429ca['type'])&&_0x333581();});return{'attach'(_0x5466d3){_0x35e643[_0x265a('0x0')](_0x5466d3,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x35e643[_0x265a('0x3')](),_0x333581[_0x265a('0x4')]();}};}
23
+ const _0x4841=['type','childList','class','observe','attributeName','disconnect'];(function(_0x69792a,_0x48419c){const _0x3c26ff=function(_0x97aec7){while(--_0x97aec7){_0x69792a['push'](_0x69792a['shift']());}};_0x3c26ff(++_0x48419c);}(_0x4841,0x7f));const _0x3c26=function(_0x69792a,_0x48419c){_0x69792a=_0x69792a-0x0;let _0x3c26ff=_0x4841[_0x69792a];return _0x3c26ff;};import{throttle as _0xef00ca}from'lodash-es';export default function Lt(_0x36b9c5){const _0x10da92=_0xef00ca(_0x36b9c5,0x1e),_0x557a27=new MutationObserver(_0x365294=>{for(const _0x141392 of _0x365294)('attributes'==_0x141392[_0x3c26('0x5')]&&_0x3c26('0x1')==_0x141392[_0x3c26('0x3')]||_0x3c26('0x0')==_0x141392[_0x3c26('0x5')])&&_0x10da92();});return{'attach'(_0x5368ea){_0x557a27[_0x3c26('0x2')](_0x5368ea,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x557a27[_0x3c26('0x4')](),_0x10da92['cancel']();}};}
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 );