@ckeditor/ckeditor5-comments 40.0.0 → 40.2.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 (197) hide show
  1. package/CHANGELOG.md +19 -19
  2. package/LICENSE.md +3 -3
  3. package/README.md +1 -1
  4. package/build/comments.js +2 -2
  5. package/build/translations/af.js +1 -1
  6. package/build/translations/ar.js +1 -1
  7. package/build/translations/bg.js +1 -1
  8. package/build/translations/bn.js +1 -1
  9. package/build/translations/bs.js +1 -1
  10. package/build/translations/ca.js +1 -1
  11. package/build/translations/cs.js +1 -1
  12. package/build/translations/da.js +1 -1
  13. package/build/translations/de-ch.js +1 -1
  14. package/build/translations/de.js +1 -1
  15. package/build/translations/el.js +1 -1
  16. package/build/translations/en-au.js +1 -1
  17. package/build/translations/es-co.js +1 -1
  18. package/build/translations/es.js +1 -1
  19. package/build/translations/et.js +1 -1
  20. package/build/translations/fa.js +1 -1
  21. package/build/translations/fi.js +1 -1
  22. package/build/translations/fr.js +1 -1
  23. package/build/translations/gl.js +1 -1
  24. package/build/translations/he.js +1 -1
  25. package/build/translations/hi.js +1 -1
  26. package/build/translations/hr.js +1 -1
  27. package/build/translations/hu.js +1 -1
  28. package/build/translations/id.js +1 -1
  29. package/build/translations/it.js +1 -1
  30. package/build/translations/ja.js +1 -1
  31. package/build/translations/jv.js +1 -1
  32. package/build/translations/ko.js +1 -1
  33. package/build/translations/lt.js +1 -1
  34. package/build/translations/lv.js +1 -1
  35. package/build/translations/ms.js +1 -1
  36. package/build/translations/nl.js +1 -1
  37. package/build/translations/no.js +1 -1
  38. package/build/translations/pl.js +1 -1
  39. package/build/translations/pt-br.js +1 -1
  40. package/build/translations/pt.js +1 -1
  41. package/build/translations/ro.js +1 -1
  42. package/build/translations/ru.js +1 -1
  43. package/build/translations/sk.js +1 -1
  44. package/build/translations/sq.js +1 -1
  45. package/build/translations/sr-latn.js +1 -1
  46. package/build/translations/sr.js +1 -1
  47. package/build/translations/sv.js +1 -1
  48. package/build/translations/th.js +1 -1
  49. package/build/translations/tk.js +1 -1
  50. package/build/translations/tr.js +1 -1
  51. package/build/translations/tt.js +1 -1
  52. package/build/translations/ug.js +1 -1
  53. package/build/translations/uk.js +1 -1
  54. package/build/translations/ur.js +1 -1
  55. package/build/translations/vi.js +1 -1
  56. package/build/translations/zh-cn.js +1 -1
  57. package/build/translations/zh.js +1 -1
  58. package/lang/contexts.json +2 -0
  59. package/lang/translations/af.po +8 -0
  60. package/lang/translations/ar.po +8 -0
  61. package/lang/translations/bg.po +8 -0
  62. package/lang/translations/bn.po +8 -0
  63. package/lang/translations/bs.po +8 -0
  64. package/lang/translations/ca.po +8 -0
  65. package/lang/translations/cs.po +8 -0
  66. package/lang/translations/da.po +8 -0
  67. package/lang/translations/de-ch.po +8 -0
  68. package/lang/translations/de.po +8 -0
  69. package/lang/translations/el.po +8 -0
  70. package/lang/translations/en-au.po +8 -0
  71. package/lang/translations/en.po +8 -0
  72. package/lang/translations/es-co.po +8 -0
  73. package/lang/translations/es.po +8 -0
  74. package/lang/translations/et.po +8 -0
  75. package/lang/translations/fa.po +8 -0
  76. package/lang/translations/fi.po +8 -0
  77. package/lang/translations/fr.po +8 -0
  78. package/lang/translations/gl.po +8 -0
  79. package/lang/translations/he.po +8 -0
  80. package/lang/translations/hi.po +8 -0
  81. package/lang/translations/hr.po +8 -0
  82. package/lang/translations/hu.po +8 -0
  83. package/lang/translations/id.po +8 -0
  84. package/lang/translations/it.po +8 -0
  85. package/lang/translations/ja.po +8 -0
  86. package/lang/translations/jv.po +8 -0
  87. package/lang/translations/ko.po +8 -0
  88. package/lang/translations/lt.po +8 -0
  89. package/lang/translations/lv.po +8 -0
  90. package/lang/translations/ms.po +8 -0
  91. package/lang/translations/nl.po +8 -0
  92. package/lang/translations/no.po +8 -0
  93. package/lang/translations/pl.po +8 -0
  94. package/lang/translations/pt-br.po +8 -0
  95. package/lang/translations/pt.po +8 -0
  96. package/lang/translations/ro.po +8 -0
  97. package/lang/translations/ru.po +8 -0
  98. package/lang/translations/sk.po +8 -0
  99. package/lang/translations/sq.po +8 -0
  100. package/lang/translations/sr-latn.po +9 -1
  101. package/lang/translations/sr.po +8 -0
  102. package/lang/translations/sv.po +8 -0
  103. package/lang/translations/th.po +8 -0
  104. package/lang/translations/tk.po +8 -0
  105. package/lang/translations/tr.po +8 -0
  106. package/lang/translations/tt.po +8 -0
  107. package/lang/translations/ug.po +16 -8
  108. package/lang/translations/uk.po +8 -0
  109. package/lang/translations/ur.po +8 -0
  110. package/lang/translations/vi.po +8 -0
  111. package/lang/translations/zh-cn.po +8 -0
  112. package/lang/translations/zh.po +8 -0
  113. package/package.json +3 -3
  114. package/src/annotations/annotation.d.ts +90 -90
  115. package/src/annotations/annotation.js +1 -1
  116. package/src/annotations/annotationcollection.d.ts +98 -98
  117. package/src/annotations/annotationcollection.js +1 -1
  118. package/src/annotations/annotations.d.ts +154 -154
  119. package/src/annotations/annotations.js +1 -1
  120. package/src/annotations/annotationsuis.d.ts +232 -232
  121. package/src/annotations/annotationsuis.js +1 -1
  122. package/src/annotations/editorannotations.d.ts +67 -67
  123. package/src/annotations/editorannotations.js +1 -1
  124. package/src/annotations/inlineannotations.d.ts +90 -90
  125. package/src/annotations/inlineannotations.js +1 -1
  126. package/src/annotations/narrowsidebar.d.ts +85 -85
  127. package/src/annotations/narrowsidebar.js +1 -1
  128. package/src/annotations/sidebar.d.ts +100 -100
  129. package/src/annotations/sidebar.js +1 -1
  130. package/src/annotations/view/annotationcounterbuttonview.d.ts +29 -29
  131. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  132. package/src/annotations/view/annotationview.d.ts +90 -90
  133. package/src/annotations/view/annotationview.js +1 -1
  134. package/src/annotations/view/sidebaritemview.d.ts +55 -55
  135. package/src/annotations/view/sidebaritemview.js +1 -1
  136. package/src/annotations/view/sidebarview.d.ts +32 -32
  137. package/src/annotations/view/sidebarview.js +1 -1
  138. package/src/annotations/widesidebar.d.ts +77 -77
  139. package/src/annotations/widesidebar.js +1 -1
  140. package/src/augmentation.d.ts +52 -52
  141. package/src/comments/addcommentthreadcommand.d.ts +35 -35
  142. package/src/comments/addcommentthreadcommand.js +1 -1
  143. package/src/comments/commentsarchive.d.ts +31 -31
  144. package/src/comments/commentsarchive.js +1 -1
  145. package/src/comments/commentsarchiveui.d.ts +38 -38
  146. package/src/comments/commentsarchiveui.js +1 -1
  147. package/src/comments/commentsediting.d.ts +79 -79
  148. package/src/comments/commentsediting.js +1 -1
  149. package/src/comments/commentsrepository.d.ts +1130 -1129
  150. package/src/comments/commentsrepository.js +1 -1
  151. package/src/comments/commentsui.d.ts +33 -33
  152. package/src/comments/commentsui.js +1 -1
  153. package/src/comments/integrations/commentsrestrictededitingmode.d.ts +17 -17
  154. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  155. package/src/comments/integrations/importword.d.ts +21 -21
  156. package/src/comments/integrations/importword.js +1 -1
  157. package/src/comments/ui/commenteditor/commenteditor.d.ts +36 -36
  158. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  159. package/src/comments/ui/commenteditor/commenteditorui.d.ts +31 -31
  160. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  161. package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +36 -36
  162. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  163. package/src/comments/ui/commentthreadcontroller.d.ts +64 -64
  164. package/src/comments/ui/commentthreadcontroller.js +1 -1
  165. package/src/comments/ui/view/basecommentthreadview.d.ts +119 -119
  166. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  167. package/src/comments/ui/view/basecommentview.d.ts +112 -112
  168. package/src/comments/ui/view/basecommentview.js +1 -1
  169. package/src/comments/ui/view/collapsedcommentsview.d.ts +13 -13
  170. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  171. package/src/comments/ui/view/commentcontentview.d.ts +14 -14
  172. package/src/comments/ui/view/commentcontentview.js +1 -1
  173. package/src/comments/ui/view/commentinputview.d.ts +86 -86
  174. package/src/comments/ui/view/commentinputview.js +1 -1
  175. package/src/comments/ui/view/commentsarchiveview.d.ts +38 -38
  176. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  177. package/src/comments/ui/view/commentslistview.d.ts +100 -100
  178. package/src/comments/ui/view/commentslistview.js +1 -1
  179. package/src/comments/ui/view/commentthreadheaderview.d.ts +50 -50
  180. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  181. package/src/comments/ui/view/commentthreadinputview.d.ts +41 -41
  182. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  183. package/src/comments/ui/view/commentthreadview.d.ts +118 -118
  184. package/src/comments/ui/view/commentthreadview.js +1 -1
  185. package/src/comments/ui/view/commentview.d.ts +243 -243
  186. package/src/comments/ui/view/commentview.js +1 -1
  187. package/src/comments.d.ts +35 -35
  188. package/src/comments.js +1 -1
  189. package/src/commentsonly.d.ts +33 -33
  190. package/src/commentsonly.js +1 -1
  191. package/src/config.d.ts +176 -176
  192. package/src/index.d.ts +24 -24
  193. package/src/utils/common-translations.d.ts +9 -9
  194. package/src/utils/common-translations.js +1 -1
  195. package/src/utils/createmutationobserver.d.ts +14 -14
  196. package/src/utils/createmutationobserver.js +1 -1
  197. package/theme/comment.css +1 -1
package/src/comments.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2c84=['requires'];(function(_0x4db78a,_0x2c844e){var _0x3d8ade=function(_0x339f7d){while(--_0x339f7d){_0x4db78a['push'](_0x4db78a['shift']());}};_0x3d8ade(++_0x2c844e);}(_0x2c84,0x1aa));var _0x3d8a=function(_0x4db78a,_0x2c844e){_0x4db78a=_0x4db78a-0x0;var _0x3d8ade=_0x2c84[_0x4db78a];return _0x3d8ade;};import{Plugin as _0x14ea1b}from'ckeditor5/src/core';import _0x395111 from'./comments/commentsrepository';import _0x2be9ac from'./comments/commentsediting';import _0xd1af8b from'./comments/commentsui';import _0x1c1ceb from'./commentsonly';import _0x387bcd from'./annotations/widesidebar';import _0x1c902d from'./annotations/narrowsidebar';import _0x34b33f from'./annotations/inlineannotations';import _0x5591c7 from'./comments/commentsarchiveui';import _0x1a49be from'./comments/commentsarchive';export default class f extends _0x14ea1b{static get[_0x3d8a('0x0')](){return[_0x395111,_0x2be9ac,_0xd1af8b,_0x1a49be,_0x5591c7,_0x1c1ceb,_0x387bcd,_0x1c902d,_0x34b33f];}static get['pluginName'](){return'Comments';}}
23
+ var _0x20b3=['pluginName','Comments'];(function(_0x5aa353,_0x20b3a7){var _0x49cacd=function(_0x15a2f7){while(--_0x15a2f7){_0x5aa353['push'](_0x5aa353['shift']());}};_0x49cacd(++_0x20b3a7);}(_0x20b3,0x1e1));var _0x49ca=function(_0x5aa353,_0x20b3a7){_0x5aa353=_0x5aa353-0x0;var _0x49cacd=_0x20b3[_0x5aa353];return _0x49cacd;};import{Plugin as _0x192fa8}from'ckeditor5/src/core';import _0x2e7169 from'./comments/commentsrepository';import _0x522d09 from'./comments/commentsediting';import _0x4f4e6b from'./comments/commentsui';import _0x3c0833 from'./commentsonly';import _0x303cb9 from'./annotations/widesidebar';import _0x503fb7 from'./annotations/narrowsidebar';import _0x436aa3 from'./annotations/inlineannotations';import _0x4d582c from'./comments/commentsarchiveui';import _0x252ba5 from'./comments/commentsarchive';export default class f extends _0x192fa8{static get['requires'](){return[_0x2e7169,_0x522d09,_0x4f4e6b,_0x252ba5,_0x4d582c,_0x3c0833,_0x303cb9,_0x503fb7,_0x436aa3];}static get[_0x49ca('0x1')](){return _0x49ca('0x0');}}
@@ -1,33 +1,33 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module comments/commentsonly
7
- * @publicApi
8
- */
9
- import { Plugin, type Editor } from 'ckeditor5/src/core';
10
- import CommentsEditing from './comments/commentsediting';
11
- /**
12
- * The `CommentsOnly` plugin allows you to put the editor in a mode where a user can only add, edit or delete comments.
13
- *
14
- * Check the {@glink features/collaboration/comments/comments-only-mode Comments-only mode} guide to learn how to use this plugin.
15
- */
16
- export default class CommentsOnly extends Plugin {
17
- /**
18
- * @inheritDoc
19
- */
20
- static get pluginName(): "CommentsOnly";
21
- /**
22
- * @inheritDoc
23
- */
24
- static get requires(): readonly [typeof CommentsEditing];
25
- /**
26
- * @inheritDoc
27
- */
28
- constructor(editor: Editor);
29
- /**
30
- * @inheritDoc
31
- */
32
- afterInit(): void;
33
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module comments/commentsonly
7
+ * @publicApi
8
+ */
9
+ import { Plugin, type Editor } from 'ckeditor5/src/core';
10
+ import CommentsEditing from './comments/commentsediting';
11
+ /**
12
+ * The `CommentsOnly` plugin allows you to put the editor in a mode where a user can only add, edit or delete comments.
13
+ *
14
+ * Check the {@glink features/collaboration/comments/comments-only-mode Comments-only mode} guide to learn how to use this plugin.
15
+ */
16
+ export default class CommentsOnly extends Plugin {
17
+ /**
18
+ * @inheritDoc
19
+ */
20
+ static get pluginName(): "CommentsOnly";
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ static get requires(): readonly [typeof CommentsEditing];
25
+ /**
26
+ * @inheritDoc
27
+ */
28
+ constructor(editor: Editor);
29
+ /**
30
+ * @inheritDoc
31
+ */
32
+ afterInit(): void;
33
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1955=['isEnabled','config','pluginName','listenTo','has','get','stop','DragDrop','requires','affectsData','editing','afterInit','document','_disableCommentsOnlyMode','view','commentsOnly','editor','forceDisabled','highest','set','commands','commentsOnlyMode','addCommentThread','plugins','clearForceDisabled','delete'];(function(_0x23fd9b,_0x19551b){const _0x3d56c4=function(_0x59da0c){while(--_0x59da0c){_0x23fd9b['push'](_0x23fd9b['shift']());}};_0x3d56c4(++_0x19551b);}(_0x1955,0xfb));const _0x3d56=function(_0x23fd9b,_0x19551b){_0x23fd9b=_0x23fd9b-0x0;let _0x3d56c4=_0x1955[_0x23fd9b];return _0x3d56c4;};import{Plugin as _0x323820}from'ckeditor5/src/core';import _0x5b799e from'./comments/commentsediting';export default class n extends _0x323820{static get[_0x3d56('0xb')](){return'CommentsOnly';}static get[_0x3d56('0x11')](){return[_0x5b799e];}constructor(_0x4a01f8){super(_0x4a01f8),this[_0x3d56('0x2')](_0x3d56('0x9'),!0x1),this['on']('change:isEnabled',(_0x498e24,_0x1611ec,_0x236ed2)=>{_0x236ed2?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}[_0x3d56('0x14')](){!this[_0x3d56('0x9')]&&this[_0x3d56('0x19')][_0x3d56('0xa')][_0x3d56('0xe')](_0x3d56('0x18'))&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x499c42,_0x58b504]of this[_0x3d56('0x19')][_0x3d56('0x3')])_0x58b504[_0x3d56('0x12')]&&'addCommentThread'!==_0x499c42&&_0x58b504[_0x3d56('0x0')](_0x3d56('0x4'));this[_0x3d56('0x19')][_0x3d56('0x6')][_0x3d56('0xd')]('DragDrop')&&this['editor']['plugins']['get'](_0x3d56('0x10'))['forceDisabled'](_0x3d56('0x4'));const _0x19aa1d=this[_0x3d56('0x19')][_0x3d56('0x13')][_0x3d56('0x17')][_0x3d56('0x15')];this[_0x3d56('0xc')](_0x19aa1d,'cut',_0x289243=>_0x289243['stop'](),{'priority':_0x3d56('0x1')}),this[_0x3d56('0xc')](_0x19aa1d,'clipboardInput',_0x3e7d72=>_0x3e7d72[_0x3d56('0xf')](),{'priority':'highest'}),this['listenTo'](_0x19aa1d,_0x3d56('0x8'),_0x48f4bc=>_0x48f4bc[_0x3d56('0xf')](),{'priority':_0x3d56('0x1')});}[_0x3d56('0x16')](){for(const [_0x4cd4db,_0x3e903f]of this[_0x3d56('0x19')][_0x3d56('0x3')])_0x3e903f[_0x3d56('0x12')]&&_0x3d56('0x5')!==_0x4cd4db&&_0x3e903f[_0x3d56('0x7')](_0x3d56('0x4'));this['stopListening'](this[_0x3d56('0x19')]['editing']['view']['document']);}}
23
+ const _0x1b09=['change:isEnabled','set','stopListening','_enableCommentsOnlyMode','stop','get','affectsData','cut','addCommentThread','editor','_disableCommentsOnlyMode','DragDrop','editing','highest','commands','listenTo','document','afterInit','delete','view','requires','clipboardInput','plugins','isEnabled','has','pluginName','CommentsOnly','commentsOnlyMode'];(function(_0x37d237,_0x1b0924){const _0x693e72=function(_0x7deaa8){while(--_0x7deaa8){_0x37d237['push'](_0x37d237['shift']());}};_0x693e72(++_0x1b0924);}(_0x1b09,0x14e));const _0x693e=function(_0x37d237,_0x1b0924){_0x37d237=_0x37d237-0x0;let _0x693e72=_0x1b09[_0x37d237];return _0x693e72;};import{Plugin as _0x4a7d83}from'ckeditor5/src/core';import _0x3cd906 from'./comments/commentsediting';export default class n extends _0x4a7d83{static get[_0x693e('0x1b')](){return _0x693e('0x0');}static get[_0x693e('0x16')](){return[_0x3cd906];}constructor(_0x1d24f2){super(_0x1d24f2),this[_0x693e('0x3')]('isEnabled',!0x1),this['on'](_0x693e('0x2'),(_0x3f3131,_0x2719d9,_0x140775)=>{_0x140775?this[_0x693e('0x5')]():this[_0x693e('0xc')]();});}[_0x693e('0x13')](){!this[_0x693e('0x19')]&&this[_0x693e('0xb')]['config'][_0x693e('0x7')]('commentsOnly')&&(this[_0x693e('0x19')]=!0x0);}[_0x693e('0x5')](){for(const [_0x3dee14,_0x4935aa]of this[_0x693e('0xb')][_0x693e('0x10')])_0x4935aa['affectsData']&&_0x693e('0xa')!==_0x3dee14&&_0x4935aa['forceDisabled'](_0x693e('0x1'));this[_0x693e('0xb')][_0x693e('0x18')][_0x693e('0x1a')](_0x693e('0xd'))&&this[_0x693e('0xb')]['plugins']['get'](_0x693e('0xd'))['forceDisabled'](_0x693e('0x1'));const _0x4dd045=this[_0x693e('0xb')]['editing']['view'][_0x693e('0x12')];this[_0x693e('0x11')](_0x4dd045,_0x693e('0x9'),_0x437953=>_0x437953[_0x693e('0x6')](),{'priority':_0x693e('0xf')}),this[_0x693e('0x11')](_0x4dd045,_0x693e('0x17'),_0x4026d7=>_0x4026d7['stop'](),{'priority':_0x693e('0xf')}),this[_0x693e('0x11')](_0x4dd045,_0x693e('0x14'),_0x4ab09a=>_0x4ab09a['stop'](),{'priority':_0x693e('0xf')});}[_0x693e('0xc')](){for(const [_0x258110,_0x45f9b2]of this[_0x693e('0xb')]['commands'])_0x45f9b2[_0x693e('0x8')]&&_0x693e('0xa')!==_0x258110&&_0x45f9b2['clearForceDisabled'](_0x693e('0x1'));this[_0x693e('0x4')](this['editor'][_0x693e('0xe')][_0x693e('0x15')][_0x693e('0x12')]);}}
package/src/config.d.ts CHANGED
@@ -1,176 +1,176 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module comments/config
7
- * @publicApi
8
- */
9
- import type { EditorConfig } from 'ckeditor5/src/core';
10
- import type CommentView from './comments/ui/view/commentview';
11
- import type BaseCommentThreadView from './comments/ui/view/basecommentthreadview';
12
- /**
13
- * The configuration of the comments feature.
14
- *
15
- * ```ts
16
- * ClassicEditor.create( {
17
- * comments: ... // Comments feature configuration.
18
- * } )
19
- * .then( ... )
20
- * .catch( ... );
21
- * ```
22
- *
23
- * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
24
- */
25
- export interface CommentsConfig {
26
- /**
27
- * The total number of comments shown when the thread view is collapsed.
28
- *
29
- * The comments are displayed in the following way:
30
- *
31
- * * The first comment is displayed.
32
- * * Some comments may be hidden (collapsed).
33
- * * An appropriate number of the most recent comments is displayed.
34
- *
35
- * For example, when this parameter is set to 3, when collapsed,
36
- * the thread view will display the first comment and two most recent comments.
37
- *
38
- * Defaults to `2`.
39
- */
40
- maxCommentsWhenCollapsed?: number;
41
- /**
42
- * The maximum total weight of a thread before the thread becomes collapsed when it is not active:
43
- *
44
- * * Thread weight is a sum of the weight of its comments.
45
- * * Comment weight is equal to the comment length.
46
- * * The minimal comment weight is 200.
47
- *
48
- * Defaults to `500`.
49
- */
50
- maxThreadTotalWeight?: number;
51
- /**
52
- * The maximum number of characters displayed in a comment when the thread view is collapsed.
53
- * Longer comments will be trimmed.
54
- *
55
- * Defaults to `140`.
56
- */
57
- maxCommentCharsWhenCollapsed?: number;
58
- /**
59
- * A view class to be used to create comment views.
60
- *
61
- * {@link module:comments/comments/ui/view/commentview~CommentView} is used by default when this property is not set.
62
- */
63
- CommentView?: typeof CommentView;
64
- /**
65
- * A view class to be used to create comment thread views
66
- * (used as annotations - in sidebar balloons or in inline annotations).
67
- *
68
- * {@link module:comments/comments/ui/view/commentthreadview~CommentThreadView} is used by default
69
- * when this property is not set.
70
- */
71
- CommentThreadView?: typeof BaseCommentThreadView;
72
- /**
73
- * Configuration for the comments editor.
74
- *
75
- * By using this property, you can customize the editor instance used in the comments
76
- * reply field (e.g. by adding plugins or changing features configuration).
77
- *
78
- * To use the default configuration (allows only for text input, no formatting), you can pass `{}`
79
- * to the comments editor configuration.
80
- *
81
- * ```ts
82
- * ClassicEditor.create( element, {
83
- * comments: {
84
- * editorConfig: {}
85
- * }
86
- * } );
87
- * ```
88
- *
89
- * To provide a better experience, you may add more plugins, that will extend the default editor configuration.
90
- *
91
- * ```ts
92
- * import Autoformat from '@ckeditor/ckeditor5-autoformat/src/autoformat';
93
- * import List from '@ckeditor/ckeditor5-list/src/list';
94
- * import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold';
95
- * import Italic from '@ckeditor/ckeditor5-italic/src/italic';
96
- *
97
- * ClassicEditor
98
- * .create( {
99
- * comments: {
100
- * editorConfig: {
101
- * extraPlugins: [ Autoformat, Bold, Italic, List ]
102
- * }
103
- * }
104
- * } )
105
- * ```
106
- *
107
- * Importing plugins may not be possible in some scenarios (e.g. when using a build created by the online builder tool).
108
- * In that case, it is possible to get the plugin constructors from the editor builtin plugins.
109
- *
110
- * ```ts
111
- * const extraCommentsPlugins = ClassicEditor.builtinPlugins.filter( plugin => {
112
- * return [ 'Bold', 'Italic', Autoformat, List ].includes( plugin.pluginName );
113
- * } );
114
- *
115
- *
116
- * ClassicEditor
117
- * .create( {
118
- * comments: {
119
- * editorConfig: {
120
- * extraPlugins: extraCommentsPlugins
121
- * }
122
- * }
123
- * } )
124
- * .then( ... )
125
- * .catch( ... );
126
- * ```
127
- */
128
- editorConfig?: EditorConfig;
129
- /**
130
- * A function that takes a `Date` object, formats it to a desired string and returns it.
131
- * It should be used when displaying the comment creation date.
132
- */
133
- formatDateTime?: (date: Date) => string;
134
- }
135
- /**
136
- * The configuration of the sidebar feature.
137
- *
138
- * ```ts
139
- * ClassicEditor
140
- * .create( {
141
- * sidebar: {
142
- * // Sidebar feature configuration.
143
- * }
144
- * } )
145
- * .then( ... )
146
- * .catch( ... );
147
- * ```
148
- *
149
- * See {@link module:core/editor/editorconfig~EditorConfig all editor configuration options}.
150
- */
151
- export interface SidebarConfig {
152
- /**
153
- * DOM element into which the sidebar will be inserted.
154
- */
155
- container?: HTMLElement;
156
- /**
157
- * Changes how the annotations are positioned inside the sidebar.
158
- *
159
- * If set to `true`, the top annotation in the sidebar will never be scrolled
160
- * above the top edge of the sidebar (which would make it hidden).
161
- *
162
- * On the other hand, with this setting enabled, if there is not enough space,
163
- * annotations will not be positioned exactly next to their linked elements
164
- * when selected.
165
- *
166
- * @default false
167
- */
168
- preventScrollOutOfView?: boolean;
169
- }
170
- export type CommentThreadConfig = Required<Omit<CommentsConfig, 'CommentThreadView'>>;
171
- export type CommentViewConfig = Required<Pick<CommentsConfig, 'maxCommentCharsWhenCollapsed' | 'formatDateTime' | 'editorConfig'>> & {
172
- /**
173
- * Defines whether the comment is created by the system.
174
- */
175
- isSystemComment?: boolean;
176
- };
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module comments/config
7
+ * @publicApi
8
+ */
9
+ import type { EditorConfig } from 'ckeditor5/src/core';
10
+ import type CommentView from './comments/ui/view/commentview';
11
+ import type BaseCommentThreadView from './comments/ui/view/basecommentthreadview';
12
+ /**
13
+ * The configuration of the comments feature.
14
+ *
15
+ * ```ts
16
+ * ClassicEditor.create( {
17
+ * comments: ... // Comments feature configuration.
18
+ * } )
19
+ * .then( ... )
20
+ * .catch( ... );
21
+ * ```
22
+ *
23
+ * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
24
+ */
25
+ export interface CommentsConfig {
26
+ /**
27
+ * The total number of comments shown when the thread view is collapsed.
28
+ *
29
+ * The comments are displayed in the following way:
30
+ *
31
+ * * The first comment is displayed.
32
+ * * Some comments may be hidden (collapsed).
33
+ * * An appropriate number of the most recent comments is displayed.
34
+ *
35
+ * For example, when this parameter is set to 3, when collapsed,
36
+ * the thread view will display the first comment and two most recent comments.
37
+ *
38
+ * Defaults to `2`.
39
+ */
40
+ maxCommentsWhenCollapsed?: number;
41
+ /**
42
+ * The maximum total weight of a thread before the thread becomes collapsed when it is not active:
43
+ *
44
+ * * Thread weight is a sum of the weight of its comments.
45
+ * * Comment weight is equal to the comment length.
46
+ * * The minimal comment weight is 200.
47
+ *
48
+ * Defaults to `500`.
49
+ */
50
+ maxThreadTotalWeight?: number;
51
+ /**
52
+ * The maximum number of characters displayed in a comment when the thread view is collapsed.
53
+ * Longer comments will be trimmed.
54
+ *
55
+ * Defaults to `140`.
56
+ */
57
+ maxCommentCharsWhenCollapsed?: number;
58
+ /**
59
+ * A view class to be used to create comment views.
60
+ *
61
+ * {@link module:comments/comments/ui/view/commentview~CommentView} is used by default when this property is not set.
62
+ */
63
+ CommentView?: typeof CommentView;
64
+ /**
65
+ * A view class to be used to create comment thread views
66
+ * (used as annotations - in sidebar balloons or in inline annotations).
67
+ *
68
+ * {@link module:comments/comments/ui/view/commentthreadview~CommentThreadView} is used by default
69
+ * when this property is not set.
70
+ */
71
+ CommentThreadView?: typeof BaseCommentThreadView;
72
+ /**
73
+ * Configuration for the comments editor.
74
+ *
75
+ * By using this property, you can customize the editor instance used in the comments
76
+ * reply field (e.g. by adding plugins or changing features configuration).
77
+ *
78
+ * To use the default configuration (allows only for text input, no formatting), you can pass `{}`
79
+ * to the comments editor configuration.
80
+ *
81
+ * ```ts
82
+ * ClassicEditor.create( element, {
83
+ * comments: {
84
+ * editorConfig: {}
85
+ * }
86
+ * } );
87
+ * ```
88
+ *
89
+ * To provide a better experience, you may add more plugins, that will extend the default editor configuration.
90
+ *
91
+ * ```ts
92
+ * import Autoformat from '@ckeditor/ckeditor5-autoformat/src/autoformat';
93
+ * import List from '@ckeditor/ckeditor5-list/src/list';
94
+ * import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold';
95
+ * import Italic from '@ckeditor/ckeditor5-italic/src/italic';
96
+ *
97
+ * ClassicEditor
98
+ * .create( {
99
+ * comments: {
100
+ * editorConfig: {
101
+ * extraPlugins: [ Autoformat, Bold, Italic, List ]
102
+ * }
103
+ * }
104
+ * } )
105
+ * ```
106
+ *
107
+ * Importing plugins may not be possible in some scenarios (e.g. when using a build created by the online builder tool).
108
+ * In that case, it is possible to get the plugin constructors from the editor builtin plugins.
109
+ *
110
+ * ```ts
111
+ * const extraCommentsPlugins = ClassicEditor.builtinPlugins.filter( plugin => {
112
+ * return [ 'Bold', 'Italic', Autoformat, List ].includes( plugin.pluginName );
113
+ * } );
114
+ *
115
+ *
116
+ * ClassicEditor
117
+ * .create( {
118
+ * comments: {
119
+ * editorConfig: {
120
+ * extraPlugins: extraCommentsPlugins
121
+ * }
122
+ * }
123
+ * } )
124
+ * .then( ... )
125
+ * .catch( ... );
126
+ * ```
127
+ */
128
+ editorConfig?: EditorConfig;
129
+ /**
130
+ * A function that takes a `Date` object, formats it to a desired string and returns it.
131
+ * It should be used when displaying the comment creation date.
132
+ */
133
+ formatDateTime?: (date: Date) => string;
134
+ }
135
+ /**
136
+ * The configuration of the sidebar feature.
137
+ *
138
+ * ```ts
139
+ * ClassicEditor
140
+ * .create( {
141
+ * sidebar: {
142
+ * // Sidebar feature configuration.
143
+ * }
144
+ * } )
145
+ * .then( ... )
146
+ * .catch( ... );
147
+ * ```
148
+ *
149
+ * See {@link module:core/editor/editorconfig~EditorConfig all editor configuration options}.
150
+ */
151
+ export interface SidebarConfig {
152
+ /**
153
+ * DOM element into which the sidebar will be inserted.
154
+ */
155
+ container?: HTMLElement;
156
+ /**
157
+ * Changes how the annotations are positioned inside the sidebar.
158
+ *
159
+ * If set to `true`, the top annotation in the sidebar will never be scrolled
160
+ * above the top edge of the sidebar (which would make it hidden).
161
+ *
162
+ * On the other hand, with this setting enabled, if there is not enough space,
163
+ * annotations will not be positioned exactly next to their linked elements
164
+ * when selected.
165
+ *
166
+ * @default false
167
+ */
168
+ preventScrollOutOfView?: boolean;
169
+ }
170
+ export type CommentThreadConfig = Required<Omit<CommentsConfig, 'CommentThreadView'>>;
171
+ export type CommentViewConfig = Required<Pick<CommentsConfig, 'maxCommentCharsWhenCollapsed' | 'formatDateTime' | 'editorConfig'>> & {
172
+ /**
173
+ * Defines whether the comment is created by the system.
174
+ */
175
+ isSystemComment?: boolean;
176
+ };
package/src/index.d.ts CHANGED
@@ -1,24 +1,24 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- export { default as Comments } from './comments';
6
- export { default as CommentsOnly } from './commentsonly';
7
- export { default as CommentsUI } from './comments/commentsui';
8
- export { default as CommentsRepository, CommentThread, Comment, type CommentDataJSON, type CommentThreadContext, type CommentThreadDataJSON } from './comments/commentsrepository';
9
- export { default as CommentThreadController } from './comments/ui/commentthreadcontroller';
10
- export { default as Annotations } from './annotations/annotations';
11
- export { default as AnnotationsUIs } from './annotations/annotationsuis';
12
- export { default as EditorAnnotations } from './annotations/editorannotations';
13
- export { default as InlineAnnotations } from './annotations/inlineannotations';
14
- export { default as WideSidebar } from './annotations/widesidebar';
15
- export { default as NarrowSidebar } from './annotations/narrowsidebar';
16
- export { default as AnnotationView } from './annotations/view/annotationview';
17
- export { default as BaseCommentView } from './comments/ui/view/basecommentview';
18
- export { default as BaseCommentThreadView } from './comments/ui/view/basecommentthreadview';
19
- export { default as CommentsListView } from './comments/ui/view/commentslistview';
20
- export { default as CommentView } from './comments/ui/view/commentview';
21
- export { default as CommentThreadInputView } from './comments/ui/view/commentthreadinputview';
22
- export type { CommentsConfig, SidebarConfig } from './config';
23
- export type { default as CommentsEditing } from './comments/commentsediting';
24
- import './augmentation';
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ export { default as Comments } from './comments';
6
+ export { default as CommentsOnly } from './commentsonly';
7
+ export { default as CommentsUI } from './comments/commentsui';
8
+ export { default as CommentsRepository, CommentThread, Comment, type CommentDataJSON, type CommentThreadContext, type CommentThreadDataJSON } from './comments/commentsrepository';
9
+ export { default as CommentThreadController } from './comments/ui/commentthreadcontroller';
10
+ export { default as Annotations } from './annotations/annotations';
11
+ export { default as AnnotationsUIs } from './annotations/annotationsuis';
12
+ export { default as EditorAnnotations } from './annotations/editorannotations';
13
+ export { default as InlineAnnotations } from './annotations/inlineannotations';
14
+ export { default as WideSidebar } from './annotations/widesidebar';
15
+ export { default as NarrowSidebar } from './annotations/narrowsidebar';
16
+ export { default as AnnotationView } from './annotations/view/annotationview';
17
+ export { default as BaseCommentView } from './comments/ui/view/basecommentview';
18
+ export { default as BaseCommentThreadView } from './comments/ui/view/basecommentthreadview';
19
+ export { default as CommentsListView } from './comments/ui/view/commentslistview';
20
+ export { default as CommentView } from './comments/ui/view/commentview';
21
+ export { default as CommentThreadInputView } from './comments/ui/view/commentthreadinputview';
22
+ export type { CommentsConfig, SidebarConfig } from './config';
23
+ export type { default as CommentsEditing } from './comments/commentsediting';
24
+ import './augmentation';
@@ -1,9 +1,9 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module comments/utils/common-translations
7
- */
8
- import type { Locale } from 'ckeditor5/src/utils';
9
- export declare function getTranslation(locale: Locale, id: string, values?: string | Array<string> | number): string;
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module comments/utils/common-translations
7
+ */
8
+ import type { Locale } from 'ckeditor5/src/utils';
9
+ export declare function getTranslation(locale: Locale, id: string, values?: string | Array<string> | number): string;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x12f146,_0x1d9d8d,_0x17a16f){const t=_0x12f146['t'];switch(_0x1d9d8d){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'},_0x17a16f);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'},_0x17a16f);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'},_0x17a16f);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'},_0x17a16f);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(_0x2d7dad,_0x4fcbf7,_0x56e142){const t=_0x2d7dad['t'];switch(_0x4fcbf7){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'LEAVE_COMMENT_ANNOUNCEMENT':return t({'string':'Leaving\x20a\x20comment.','id':'LEAVE_COMMENT_ANNOUNCEMENT'});case'ENTER_COMMENT_ANNOUNCEMENT':return t({'string':'Entering\x20a\x20comment.','id':'ENTER_COMMENT_ANNOUNCEMENT'});case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x56e142);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'},_0x56e142);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'},_0x56e142);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'},_0x56e142);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'';}}
@@ -1,14 +1,14 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * Creates mutation observer to observe changes that might cause height change.
7
- *
8
- * @param callback Callback executed after throttled mutations.
9
- */
10
- export default function createMutationObserver(callback: (...args: Array<any>) => unknown): MutationObserver;
11
- export interface MutationObserver {
12
- attach: (element: Node) => void;
13
- detach: () => void;
14
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * Creates mutation observer to observe changes that might cause height change.
7
+ *
8
+ * @param callback Callback executed after throttled mutations.
9
+ */
10
+ export default function createMutationObserver(callback: (...args: Array<any>) => unknown): MutationObserver;
11
+ export interface MutationObserver {
12
+ attach: (element: Node) => void;
13
+ detach: () => void;
14
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x355b=['observe','class','characterData','attributes','cancel','attributeName','disconnect','type'];(function(_0xc9c8d8,_0x355bcf){const _0x43cf04=function(_0x851ca9){while(--_0x851ca9){_0xc9c8d8['push'](_0xc9c8d8['shift']());}};_0x43cf04(++_0x355bcf);}(_0x355b,0x98));const _0x43cf=function(_0xc9c8d8,_0x355bcf){_0xc9c8d8=_0xc9c8d8-0x0;let _0x43cf04=_0x355b[_0xc9c8d8];return _0x43cf04;};import{throttle as _0x4f61e7}from'lodash-es';export default function Dt(_0x1467ca){const _0x4ae1f8=_0x4f61e7(_0x1467ca,0x1e),_0x4e228a=new MutationObserver(_0x41cc5d=>{for(const _0x47e9d9 of _0x41cc5d)(_0x43cf('0x3')==_0x47e9d9[_0x43cf('0x7')]&&_0x43cf('0x1')==_0x47e9d9[_0x43cf('0x5')]||'childList'==_0x47e9d9['type']||_0x43cf('0x2')==_0x47e9d9[_0x43cf('0x7')])&&_0x4ae1f8();});return{'attach'(_0x4c5b65){_0x4e228a[_0x43cf('0x0')](_0x4c5b65,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x4e228a[_0x43cf('0x6')](),_0x4ae1f8[_0x43cf('0x4')]();}};}
23
+ const _0x5adc=['class','attributes','observe','disconnect','type'];(function(_0x35d041,_0x5adc7b){const _0x14d3ad=function(_0xd86414){while(--_0xd86414){_0x35d041['push'](_0x35d041['shift']());}};_0x14d3ad(++_0x5adc7b);}(_0x5adc,0x146));const _0x14d3=function(_0x35d041,_0x5adc7b){_0x35d041=_0x35d041-0x0;let _0x14d3ad=_0x5adc[_0x35d041];return _0x14d3ad;};import{throttle as _0x3e8be4}from'lodash-es';export default function Dt(_0x57097){const _0x56af31=_0x3e8be4(_0x57097,0x1e),_0x47b1ab=new MutationObserver(_0x41b608=>{for(const _0x40eef9 of _0x41b608)(_0x14d3('0x0')==_0x40eef9[_0x14d3('0x3')]&&_0x14d3('0x4')==_0x40eef9['attributeName']||'childList'==_0x40eef9[_0x14d3('0x3')]||'characterData'==_0x40eef9[_0x14d3('0x3')])&&_0x56af31();});return{'attach'(_0x38c83b){_0x47b1ab[_0x14d3('0x1')](_0x38c83b,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x47b1ab[_0x14d3('0x2')](),_0x56af31['cancel']();}};}
package/theme/comment.css CHANGED
@@ -10,7 +10,7 @@
10
10
  :root {
11
11
  --ck-color-comment-background: hsl(210, 52%, 97%);
12
12
  --ck-color-comment-separator: hsl(210, 52%, 87%);
13
- --ck-color-comment-remove-background: hsl(0, 100%, 90%);
13
+ --ck-color-comment-remove-background: var(--ck-color-light-red);
14
14
  --ck-color-comment-input-background: var(--ck-color-comment-background);
15
15
  }
16
16