@ckeditor/ckeditor5-comments 40.0.0 → 40.1.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.
- package/LICENSE.md +3 -3
- package/build/comments.js +2 -2
- package/build/translations/af.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/bs.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/jv.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/contexts.json +2 -0
- package/lang/translations/af.po +8 -0
- package/lang/translations/ar.po +8 -0
- package/lang/translations/bg.po +8 -0
- package/lang/translations/bn.po +8 -0
- package/lang/translations/bs.po +8 -0
- package/lang/translations/ca.po +8 -0
- package/lang/translations/cs.po +8 -0
- package/lang/translations/da.po +8 -0
- package/lang/translations/de-ch.po +8 -0
- package/lang/translations/de.po +8 -0
- package/lang/translations/el.po +8 -0
- package/lang/translations/en-au.po +8 -0
- package/lang/translations/en.po +8 -0
- package/lang/translations/es-co.po +8 -0
- package/lang/translations/es.po +8 -0
- package/lang/translations/et.po +8 -0
- package/lang/translations/fa.po +8 -0
- package/lang/translations/fi.po +8 -0
- package/lang/translations/fr.po +8 -0
- package/lang/translations/gl.po +8 -0
- package/lang/translations/he.po +8 -0
- package/lang/translations/hi.po +8 -0
- package/lang/translations/hr.po +8 -0
- package/lang/translations/hu.po +8 -0
- package/lang/translations/id.po +8 -0
- package/lang/translations/it.po +8 -0
- package/lang/translations/ja.po +8 -0
- package/lang/translations/jv.po +8 -0
- package/lang/translations/ko.po +8 -0
- package/lang/translations/lt.po +8 -0
- package/lang/translations/lv.po +8 -0
- package/lang/translations/ms.po +8 -0
- package/lang/translations/nl.po +8 -0
- package/lang/translations/no.po +8 -0
- package/lang/translations/pl.po +8 -0
- package/lang/translations/pt-br.po +8 -0
- package/lang/translations/pt.po +8 -0
- package/lang/translations/ro.po +8 -0
- package/lang/translations/ru.po +8 -0
- package/lang/translations/sk.po +8 -0
- package/lang/translations/sq.po +8 -0
- package/lang/translations/sr-latn.po +8 -0
- package/lang/translations/sr.po +8 -0
- package/lang/translations/sv.po +8 -0
- package/lang/translations/th.po +8 -0
- package/lang/translations/tk.po +8 -0
- package/lang/translations/tr.po +8 -0
- package/lang/translations/tt.po +8 -0
- package/lang/translations/ug.po +8 -0
- package/lang/translations/uk.po +8 -0
- package/lang/translations/ur.po +8 -0
- package/lang/translations/vi.po +8 -0
- package/lang/translations/zh-cn.po +8 -0
- package/lang/translations/zh.po +8 -0
- package/package.json +3 -3
- package/src/annotations/annotation.d.ts +90 -90
- package/src/annotations/annotation.js +1 -1
- package/src/annotations/annotationcollection.d.ts +98 -98
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.d.ts +154 -154
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.d.ts +232 -232
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.d.ts +67 -67
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.d.ts +90 -90
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.d.ts +85 -85
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.d.ts +100 -100
- package/src/annotations/sidebar.js +1 -1
- package/src/annotations/view/annotationcounterbuttonview.d.ts +29 -29
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.d.ts +90 -90
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.d.ts +55 -55
- package/src/annotations/view/sidebaritemview.js +1 -1
- package/src/annotations/view/sidebarview.d.ts +32 -32
- package/src/annotations/view/sidebarview.js +1 -1
- package/src/annotations/widesidebar.d.ts +77 -77
- package/src/annotations/widesidebar.js +1 -1
- package/src/augmentation.d.ts +52 -52
- package/src/comments/addcommentthreadcommand.d.ts +35 -35
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsarchive.d.ts +31 -31
- package/src/comments/commentsarchive.js +1 -1
- package/src/comments/commentsarchiveui.d.ts +38 -38
- package/src/comments/commentsarchiveui.js +1 -1
- package/src/comments/commentsediting.d.ts +79 -79
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.d.ts +1129 -1129
- package/src/comments/commentsrepository.js +1 -1
- package/src/comments/commentsui.d.ts +33 -33
- package/src/comments/commentsui.js +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.d.ts +17 -17
- package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
- package/src/comments/integrations/importword.d.ts +21 -21
- package/src/comments/integrations/importword.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.d.ts +36 -36
- package/src/comments/ui/commenteditor/commenteditor.js +1 -1
- package/src/comments/ui/commenteditor/commenteditorui.d.ts +31 -31
- package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +36 -36
- package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
- package/src/comments/ui/commentthreadcontroller.d.ts +64 -64
- package/src/comments/ui/commentthreadcontroller.js +1 -1
- package/src/comments/ui/view/basecommentthreadview.d.ts +119 -119
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.d.ts +112 -112
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/collapsedcommentsview.d.ts +13 -13
- package/src/comments/ui/view/collapsedcommentsview.js +1 -1
- package/src/comments/ui/view/commentcontentview.d.ts +14 -14
- package/src/comments/ui/view/commentcontentview.js +1 -1
- package/src/comments/ui/view/commentinputview.d.ts +86 -86
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentsarchiveview.d.ts +38 -38
- package/src/comments/ui/view/commentsarchiveview.js +1 -1
- package/src/comments/ui/view/commentslistview.d.ts +100 -100
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.d.ts +50 -50
- package/src/comments/ui/view/commentthreadheaderview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.d.ts +41 -41
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/comments/ui/view/commentthreadview.d.ts +118 -118
- package/src/comments/ui/view/commentthreadview.js +1 -1
- package/src/comments/ui/view/commentview.d.ts +243 -243
- package/src/comments/ui/view/commentview.js +1 -1
- package/src/comments.d.ts +35 -35
- package/src/comments.js +1 -1
- package/src/commentsonly.d.ts +33 -33
- package/src/commentsonly.js +1 -1
- package/src/config.d.ts +176 -176
- package/src/index.d.ts +24 -24
- package/src/utils/common-translations.d.ts +9 -9
- package/src/utils/common-translations.js +1 -1
- package/src/utils/createmutationobserver.d.ts +14 -14
- package/src/utils/createmutationobserver.js +1 -1
- package/theme/comment.css +1 -1
package/src/comments.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x431e=['requires','Comments','pluginName'];(function(_0x3e4e76,_0x431e2e){var _0x4e6b4f=function(_0x2346f5){while(--_0x2346f5){_0x3e4e76['push'](_0x3e4e76['shift']());}};_0x4e6b4f(++_0x431e2e);}(_0x431e,0x169));var _0x4e6b=function(_0x3e4e76,_0x431e2e){_0x3e4e76=_0x3e4e76-0x0;var _0x4e6b4f=_0x431e[_0x3e4e76];return _0x4e6b4f;};import{Plugin as _0x3ff078}from'ckeditor5/src/core';import _0x2a9d29 from'./comments/commentsrepository';import _0x1cb983 from'./comments/commentsediting';import _0x56439d from'./comments/commentsui';import _0x19f712 from'./commentsonly';import _0x5cde61 from'./annotations/widesidebar';import _0x1b038c from'./annotations/narrowsidebar';import _0x3eb411 from'./annotations/inlineannotations';import _0xed6134 from'./comments/commentsarchiveui';import _0xf067d9 from'./comments/commentsarchive';export default class f extends _0x3ff078{static get[_0x4e6b('0x2')](){return[_0x2a9d29,_0x1cb983,_0x56439d,_0xf067d9,_0xed6134,_0x19f712,_0x5cde61,_0x1b038c,_0x3eb411];}static get[_0x4e6b('0x1')](){return _0x4e6b('0x0');}}
|
package/src/commentsonly.d.ts
CHANGED
|
@@ -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
|
+
}
|
package/src/commentsonly.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x9eab=['editor','set','affectsData','DragDrop','pluginName','view','stop','highest','afterInit','has','document','stopListening','editing','cut','get','isEnabled','listenTo','_disableCommentsOnlyMode','commands','forceDisabled','_enableCommentsOnlyMode','commentsOnly','delete','addCommentThread','requires','commentsOnlyMode','CommentsOnly','plugins'];(function(_0x180c1d,_0x9eabad){const _0x1879d7=function(_0x278d04){while(--_0x278d04){_0x180c1d['push'](_0x180c1d['shift']());}};_0x1879d7(++_0x9eabad);}(_0x9eab,0xc9));const _0x1879=function(_0x180c1d,_0x9eabad){_0x180c1d=_0x180c1d-0x0;let _0x1879d7=_0x9eab[_0x180c1d];return _0x1879d7;};import{Plugin as _0x5717bf}from'ckeditor5/src/core';import _0x3954e1 from'./comments/commentsediting';export default class n extends _0x5717bf{static get[_0x1879('0x1b')](){return _0x1879('0x15');}static get[_0x1879('0x13')](){return[_0x3954e1];}constructor(_0x9f61d1){super(_0x9f61d1),this[_0x1879('0x18')](_0x1879('0xa'),!0x1),this['on']('change:isEnabled',(_0x403db2,_0xe4334f,_0x110fda)=>{_0x110fda?this[_0x1879('0xf')]():this[_0x1879('0xc')]();});}[_0x1879('0x3')](){!this[_0x1879('0xa')]&&this[_0x1879('0x17')]['config'][_0x1879('0x9')](_0x1879('0x10'))&&(this[_0x1879('0xa')]=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x210d2e,_0x1b6141]of this[_0x1879('0x17')][_0x1879('0xd')])_0x1b6141[_0x1879('0x19')]&&_0x1879('0x12')!==_0x210d2e&&_0x1b6141[_0x1879('0xe')](_0x1879('0x14'));this[_0x1879('0x17')][_0x1879('0x16')][_0x1879('0x4')](_0x1879('0x1a'))&&this['editor']['plugins'][_0x1879('0x9')](_0x1879('0x1a'))[_0x1879('0xe')](_0x1879('0x14'));const _0x4f8ad8=this[_0x1879('0x17')][_0x1879('0x7')][_0x1879('0x0')][_0x1879('0x5')];this[_0x1879('0xb')](_0x4f8ad8,_0x1879('0x8'),_0x33cf4e=>_0x33cf4e[_0x1879('0x1')](),{'priority':_0x1879('0x2')}),this[_0x1879('0xb')](_0x4f8ad8,'clipboardInput',_0x15d9e6=>_0x15d9e6[_0x1879('0x1')](),{'priority':_0x1879('0x2')}),this['listenTo'](_0x4f8ad8,_0x1879('0x11'),_0x329abb=>_0x329abb['stop'](),{'priority':_0x1879('0x2')});}['_disableCommentsOnlyMode'](){for(const [_0x17c91c,_0x18e5af]of this[_0x1879('0x17')]['commands'])_0x18e5af[_0x1879('0x19')]&&_0x1879('0x12')!==_0x17c91c&&_0x18e5af['clearForceDisabled'](_0x1879('0x14'));this[_0x1879('0x6')](this['editor']['editing'][_0x1879('0x0')][_0x1879('0x5')]);}}
|
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(
|
|
23
|
+
export function getTranslation(_0x5d5eba,_0x21c754,_0x5aa97e){const t=_0x5d5eba['t'];switch(_0x21c754){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'},_0x5aa97e);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'},_0x5aa97e);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'},_0x5aa97e);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'},_0x5aa97e);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
|
|
23
|
+
const _0x3501=['disconnect','attributes','cancel','class','type','observe','childList','characterData'];(function(_0x25f005,_0x350107){const _0x24c8f5=function(_0x3b15ce){while(--_0x3b15ce){_0x25f005['push'](_0x25f005['shift']());}};_0x24c8f5(++_0x350107);}(_0x3501,0x103));const _0x24c8=function(_0x25f005,_0x350107){_0x25f005=_0x25f005-0x0;let _0x24c8f5=_0x3501[_0x25f005];return _0x24c8f5;};import{throttle as _0x2a73a2}from'lodash-es';export default function Dt(_0x3debe7){const _0x536907=_0x2a73a2(_0x3debe7,0x1e),_0x3f89fe=new MutationObserver(_0x53f00b=>{for(const _0x44f3c4 of _0x53f00b)(_0x24c8('0x6')==_0x44f3c4[_0x24c8('0x1')]&&_0x24c8('0x0')==_0x44f3c4['attributeName']||_0x24c8('0x3')==_0x44f3c4[_0x24c8('0x1')]||_0x24c8('0x4')==_0x44f3c4['type'])&&_0x536907();});return{'attach'(_0x18d16f){_0x3f89fe[_0x24c8('0x2')](_0x18d16f,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x3f89fe[_0x24c8('0x5')](),_0x536907[_0x24c8('0x7')]();}};}
|
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:
|
|
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
|
|