@ckeditor/ckeditor5-comments 48.2.0 → 48.3.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/annotations/annotation.d.ts +84 -87
- package/dist/annotations/annotationcollection.d.ts +83 -83
- package/dist/annotations/annotations.d.ts +148 -148
- package/dist/annotations/annotationsuis.d.ts +235 -235
- package/dist/annotations/editorannotations.d.ts +71 -71
- package/dist/annotations/inlineannotations.d.ts +93 -93
- package/dist/annotations/narrowsidebar.d.ts +88 -88
- package/dist/annotations/sidebar.d.ts +105 -105
- package/dist/annotations/view/annotationcounterbuttonview.d.ts +24 -24
- package/dist/annotations/view/annotationview.d.ts +83 -83
- package/dist/annotations/view/sidebaritemview.d.ts +54 -54
- package/dist/annotations/view/sidebarview.d.ts +48 -48
- package/dist/annotations/widesidebar.d.ts +80 -80
- package/dist/augmentation.d.ts +57 -57
- package/dist/comments/addcommentthreadcommand.d.ts +69 -69
- package/dist/comments/commentsarchive.d.ts +34 -34
- package/dist/comments/commentsarchiveui.d.ts +48 -48
- package/dist/comments/commentsediting.d.ts +90 -90
- package/dist/comments/commentsrepository.d.ts +1042 -1054
- package/dist/comments/commentsui.d.ts +40 -40
- package/dist/comments/integrations/clipboard.d.ts +21 -21
- package/dist/comments/integrations/commentsrestrictededitingmode.d.ts +12 -12
- package/dist/comments/integrations/importword.d.ts +16 -16
- package/dist/comments/integrations/showcommenthighlights.d.ts +14 -14
- package/dist/comments/ui/commenteditor/commenteditor.d.ts +33 -32
- package/dist/comments/ui/commenteditor/commenteditorui.d.ts +27 -27
- package/dist/comments/ui/commenteditor/commenteditoruiview.d.ts +32 -32
- package/dist/comments/ui/commentthreadcontroller.d.ts +62 -60
- package/dist/comments/ui/view/basecommentthreadview.d.ts +134 -134
- package/dist/comments/ui/view/basecommentview.d.ts +136 -136
- package/dist/comments/ui/view/collapsedcommentsview.d.ts +9 -9
- package/dist/comments/ui/view/commentcontentview.d.ts +10 -10
- package/dist/comments/ui/view/commentinputview.d.ts +93 -93
- package/dist/comments/ui/view/commentsarchiveview.d.ts +41 -41
- package/dist/comments/ui/view/commentslistview.d.ts +107 -107
- package/dist/comments/ui/view/commentthreadheadercontextview.d.ts +19 -19
- package/dist/comments/ui/view/commentthreadheaderview.d.ts +67 -67
- package/dist/comments/ui/view/commentthreadinputview.d.ts +51 -51
- package/dist/comments/ui/view/commentthreadview.d.ts +116 -116
- package/dist/comments/ui/view/commentview.d.ts +225 -230
- package/dist/comments.d.ts +38 -38
- package/dist/commentsonly.d.ts +36 -36
- package/dist/config.d.ts +186 -186
- package/dist/index.d.ts +35 -35
- package/dist/index.js +11 -11
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/dist/utils/common-translations.d.ts +6 -6
- package/dist/utils/createmutationobserver.d.ts +9 -9
- package/dist/utils/splitmarkername.d.ts +10 -10
- package/package.json +16 -16
package/dist/config.d.ts
CHANGED
|
@@ -1,196 +1,196 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import type { EditorConfig, PartialBy } from
|
|
10
|
-
import { type CommentView } from
|
|
11
|
-
import { type BaseCommentThreadView } from
|
|
6
|
+
* @module comments/config
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import type { EditorConfig, PartialBy } from "@ckeditor/ckeditor5-core";
|
|
10
|
+
import { type CommentView } from "./comments/ui/view/commentview.js";
|
|
11
|
+
import { type BaseCommentThreadView } from "./comments/ui/view/basecommentthreadview.js";
|
|
12
12
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
25
|
export interface CommentsConfig {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
26
|
+
/**
|
|
27
|
+
* Specifies whether comment markers should be preserved on copy-paste and cut-and-paste actions.
|
|
28
|
+
*
|
|
29
|
+
* The following values are available:
|
|
30
|
+
*
|
|
31
|
+
* * `'default'` - the comments will be preserved on cut-paste and drag and drop actions only.
|
|
32
|
+
* * `'always'` - the markers will be preserved on all clipboard actions (cut, copy, drag and drop).
|
|
33
|
+
* * `'never'` - the markers will be ignored by clipboard.
|
|
34
|
+
*
|
|
35
|
+
* Defaults to `'default'`.
|
|
36
|
+
*/
|
|
37
|
+
copyMarkers?: CommentsClipboardCopyConfig;
|
|
38
|
+
/**
|
|
39
|
+
* The total number of comments shown when the thread view is collapsed.
|
|
40
|
+
*
|
|
41
|
+
* The comments are displayed in the following way:
|
|
42
|
+
*
|
|
43
|
+
* * The first comment is displayed.
|
|
44
|
+
* * Some comments may be hidden (collapsed).
|
|
45
|
+
* * An appropriate number of the most recent comments is displayed.
|
|
46
|
+
*
|
|
47
|
+
* For example, if this parameter is set to 3, when collapsed,
|
|
48
|
+
* the thread view will display the first comment and two most recent comments.
|
|
49
|
+
*
|
|
50
|
+
* Defaults to `2`.
|
|
51
|
+
*/
|
|
52
|
+
maxCommentsWhenCollapsed?: number;
|
|
53
|
+
/**
|
|
54
|
+
* The maximum total weight of a thread before the thread becomes collapsed when it is not active:
|
|
55
|
+
*
|
|
56
|
+
* * Thread weight is a sum of the weight of its comments.
|
|
57
|
+
* * Comment weight is equal to the comment length.
|
|
58
|
+
* * The minimal comment weight is 200.
|
|
59
|
+
*
|
|
60
|
+
* Defaults to `500`.
|
|
61
|
+
*/
|
|
62
|
+
maxThreadTotalWeight?: number;
|
|
63
|
+
/**
|
|
64
|
+
* The maximum number of characters displayed in a comment when the thread view is collapsed.
|
|
65
|
+
* Longer comments will be trimmed.
|
|
66
|
+
*
|
|
67
|
+
* Defaults to `140`.
|
|
68
|
+
*/
|
|
69
|
+
maxCommentCharsWhenCollapsed?: number;
|
|
70
|
+
/**
|
|
71
|
+
* A view class to be used to create comment views.
|
|
72
|
+
*
|
|
73
|
+
* {@link module:comments/comments/ui/view/commentview~CommentView} is used by default when this property is not set.
|
|
74
|
+
*/
|
|
75
|
+
CommentView?: typeof CommentView;
|
|
76
|
+
/**
|
|
77
|
+
* A view class to be used to create comment thread views
|
|
78
|
+
* (used as annotations - in sidebar balloons or in inline annotations).
|
|
79
|
+
*
|
|
80
|
+
* {@link module:comments/comments/ui/view/commentthreadview~CommentThreadView} is used by default
|
|
81
|
+
* when this property is not set.
|
|
82
|
+
*/
|
|
83
|
+
CommentThreadView?: typeof BaseCommentThreadView;
|
|
84
|
+
/**
|
|
85
|
+
* Configuration for the comments editor.
|
|
86
|
+
*
|
|
87
|
+
* By using this property, you can customize the editor instance used in the comments
|
|
88
|
+
* reply field (e.g. by adding plugins or changing features configuration).
|
|
89
|
+
*
|
|
90
|
+
* To use the default configuration (allows only for text input, no formatting), you can pass `{}`
|
|
91
|
+
* to the comments editor configuration.
|
|
92
|
+
*
|
|
93
|
+
* ```ts
|
|
94
|
+
* ClassicEditor.create( {
|
|
95
|
+
* attachTo: element,
|
|
96
|
+
* comments: {
|
|
97
|
+
* editorConfig: {}
|
|
98
|
+
* }
|
|
99
|
+
* } );
|
|
100
|
+
* ```
|
|
101
|
+
*
|
|
102
|
+
* To provide a better experience, you may add more plugins, that will extend the default editor configuration.
|
|
103
|
+
*
|
|
104
|
+
* ```ts
|
|
105
|
+
* import { Autoformat, List, Bold, Italic } from 'ckeditor5';
|
|
106
|
+
*
|
|
107
|
+
* ClassicEditor
|
|
108
|
+
* .create( {
|
|
109
|
+
* comments: {
|
|
110
|
+
* editorConfig: {
|
|
111
|
+
* extraPlugins: [ Autoformat, Bold, Italic, List ]
|
|
112
|
+
* }
|
|
113
|
+
* }
|
|
114
|
+
* } )
|
|
115
|
+
* ```
|
|
116
|
+
*
|
|
117
|
+
* Importing plugins may not be possible in some scenarios (e.g. when using a build created by the online builder tool).
|
|
118
|
+
* In that case, it is possible to get the plugin constructors from the editor builtin plugins.
|
|
119
|
+
*
|
|
120
|
+
* ```ts
|
|
121
|
+
* const extraCommentsPlugins = ClassicEditor.builtinPlugins.filter( plugin => {
|
|
122
|
+
* return [ 'Bold', 'Italic', Autoformat, List ].includes( plugin.pluginName );
|
|
123
|
+
* } );
|
|
124
|
+
*
|
|
125
|
+
*
|
|
126
|
+
* ClassicEditor
|
|
127
|
+
* .create( {
|
|
128
|
+
* comments: {
|
|
129
|
+
* editorConfig: {
|
|
130
|
+
* extraPlugins: extraCommentsPlugins
|
|
131
|
+
* }
|
|
132
|
+
* }
|
|
133
|
+
* } )
|
|
134
|
+
* .then( ... )
|
|
135
|
+
* .catch( ... );
|
|
136
|
+
* ```
|
|
137
|
+
*/
|
|
138
|
+
editorConfig?: EditorConfig;
|
|
139
|
+
/**
|
|
140
|
+
* A function that takes a `Date` object, formats it to a desired string and returns it.
|
|
141
|
+
* It should be used when displaying the comment creation date.
|
|
142
|
+
*/
|
|
143
|
+
formatDateTime?: (date: Date) => string;
|
|
144
144
|
}
|
|
145
145
|
/**
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
146
|
+
* The configuration of the sidebar feature.
|
|
147
|
+
*
|
|
148
|
+
* ```ts
|
|
149
|
+
* ClassicEditor
|
|
150
|
+
* .create( {
|
|
151
|
+
* sidebar: {
|
|
152
|
+
* // Sidebar feature configuration.
|
|
153
|
+
* }
|
|
154
|
+
* } )
|
|
155
|
+
* .then( ... )
|
|
156
|
+
* .catch( ... );
|
|
157
|
+
* ```
|
|
158
|
+
*
|
|
159
|
+
* See {@link module:core/editor/editorconfig~EditorConfig all editor configuration options}.
|
|
160
|
+
*/
|
|
161
161
|
export interface AnnotationsSidebarConfig {
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
162
|
+
/**
|
|
163
|
+
* DOM element into which the sidebar will be inserted.
|
|
164
|
+
*/
|
|
165
|
+
container?: HTMLElement;
|
|
166
|
+
/**
|
|
167
|
+
* Changes how the annotations are positioned inside the sidebar.
|
|
168
|
+
*
|
|
169
|
+
* If set to `true`, the top annotation in the sidebar will never be scrolled
|
|
170
|
+
* above the top edge of the sidebar (which would make it hidden).
|
|
171
|
+
*
|
|
172
|
+
* On the other hand, with this setting enabled, if there is not enough space,
|
|
173
|
+
* annotations will not be positioned exactly next to their linked elements
|
|
174
|
+
* when selected.
|
|
175
|
+
*
|
|
176
|
+
* @default false
|
|
177
|
+
*/
|
|
178
|
+
preventScrollOutOfView?: boolean;
|
|
179
179
|
}
|
|
180
|
-
export type CommentThreadConfig = PartialBy<Required<Omit<CommentsConfig,
|
|
181
|
-
export type CommentViewConfig = Required<Pick<CommentsConfig,
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
180
|
+
export type CommentThreadConfig = PartialBy<Required<Omit<CommentsConfig, "CommentThreadView">>, "copyMarkers">;
|
|
181
|
+
export type CommentViewConfig = Required<Pick<CommentsConfig, "maxCommentCharsWhenCollapsed" | "formatDateTime" | "editorConfig">> & {
|
|
182
|
+
/**
|
|
183
|
+
* Defines whether the comment is created by the system.
|
|
184
|
+
*/
|
|
185
|
+
isSystemComment?: boolean;
|
|
186
186
|
};
|
|
187
187
|
/**
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
export type CommentsClipboardCopyConfig =
|
|
188
|
+
* Specifies whether comment markers should be preserved on copy-paste and cut-paste actions.
|
|
189
|
+
*
|
|
190
|
+
* Following values are available:
|
|
191
|
+
*
|
|
192
|
+
* * `'default'` - the comments will be preserved on cut-paste and drag and drop actions only.
|
|
193
|
+
* * `'always'` - the markers will be preserved on all clipboard actions (cut, copy, drag and drop).
|
|
194
|
+
* * `'never'` - the markers will be ignored by clipboard.
|
|
195
|
+
*/
|
|
196
|
+
export type CommentsClipboardCopyConfig = "default" | "always" | "never";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export { Comments } from
|
|
9
|
-
export { CommentsOnly } from
|
|
10
|
-
export { CommentsUI } from
|
|
11
|
-
export { CommentsRepository, CommentThread, Comment, type CommentDataJSON, type CommentThreadContext, type CommentThreadDataJSON, type CommentsAdapter, type AddCommentThreadEventData, type CommentPermissionsConfig, type BaseCommentThread, type BaseComment, type BaseCommentData, type AddCommentThreadEvent, type CommentThreadData, type SubmitCommentThreadEvent, type UpdateCommentThreadEvent, type UpdateCommentThreadEventData, type ResolveCommentThreadEvent, type ResolveCommentThreadEventData, type ReopenCommentThreadEvent, type RemoveCommentThreadEvent, type AddCommentEvent, type CommentData, type CommentEventData, type UpdateCommentEvent, type UpdateCommentData, type UpdateCommentEventData, type RemoveCommentEvent } from
|
|
12
|
-
export { CommentThreadController } from
|
|
13
|
-
export { Annotation, type AnnotationEscapeEvent, type AnnotationTargetBase, type AnnotationTarget } from
|
|
14
|
-
export { Annotations, type AnnotationOptions, type ActivateAnnotationEvent, type DeactivateAllAnnotationsEvent } from
|
|
15
|
-
export { AnnotationCollection, bindAnnotationCollections, type AnnotationFocusEvent, type AnnotationBlurEvent } from
|
|
16
|
-
export { AnnotationsUIs, type AnnotationUI, type AnnotationsUI } from
|
|
17
|
-
export { EditorAnnotations } from
|
|
18
|
-
export { InlineAnnotations } from
|
|
19
|
-
export { Sidebar } from
|
|
20
|
-
export { WideSidebar } from
|
|
21
|
-
export { NarrowSidebar } from
|
|
22
|
-
export { AnnotationView, type AnnotationMainView } from
|
|
23
|
-
export { AnnotationsSidebarItemView } from
|
|
24
|
-
export { AnnotationsSidebarView } from
|
|
25
|
-
export { BaseCommentView, type UIAddCommentEvent, type UIUpdateCommentEvent, type UIRemoveCommentEvent } from
|
|
26
|
-
export { BaseCommentThreadView, type UISubmitCommentThreadEvent, type UIRemoveCommentThreadEvent, type UIResolveCommentThreadEvent } from
|
|
27
|
-
export { CommentsListView } from
|
|
28
|
-
export { CommentView } from
|
|
29
|
-
export { CommentThreadView } from
|
|
30
|
-
export { CommentThreadInputView } from
|
|
31
|
-
export { AddCommentThreadCommand } from
|
|
32
|
-
export { CommentsArchive } from
|
|
33
|
-
export { CommentsArchiveUI } from
|
|
34
|
-
export type { CommentsConfig, AnnotationsSidebarConfig, CommentsClipboardCopyConfig, CommentThreadConfig, CommentViewConfig } from
|
|
35
|
-
export { CommentsEditing } from
|
|
36
|
-
export { AnnotationCounterButtonView } from
|
|
37
|
-
import
|
|
6
|
+
* @module comments
|
|
7
|
+
*/
|
|
8
|
+
export { Comments } from "./comments.js";
|
|
9
|
+
export { CommentsOnly } from "./commentsonly.js";
|
|
10
|
+
export { CommentsUI } from "./comments/commentsui.js";
|
|
11
|
+
export { CommentsRepository, CommentThread, Comment, type CommentDataJSON, type CommentThreadContext, type CommentThreadDataJSON, type CommentsAdapter, type AddCommentThreadEventData, type CommentPermissionsConfig, type BaseCommentThread, type BaseComment, type BaseCommentData, type AddCommentThreadEvent, type CommentThreadData, type SubmitCommentThreadEvent, type UpdateCommentThreadEvent, type UpdateCommentThreadEventData, type ResolveCommentThreadEvent, type ResolveCommentThreadEventData, type ReopenCommentThreadEvent, type RemoveCommentThreadEvent, type AddCommentEvent, type CommentData, type CommentEventData, type UpdateCommentEvent, type UpdateCommentData, type UpdateCommentEventData, type RemoveCommentEvent } from "./comments/commentsrepository.js";
|
|
12
|
+
export { CommentThreadController } from "./comments/ui/commentthreadcontroller.js";
|
|
13
|
+
export { Annotation, type AnnotationEscapeEvent, type AnnotationTargetBase, type AnnotationTarget } from "./annotations/annotation.js";
|
|
14
|
+
export { Annotations, type AnnotationOptions, type ActivateAnnotationEvent, type DeactivateAllAnnotationsEvent } from "./annotations/annotations.js";
|
|
15
|
+
export { AnnotationCollection, bindAnnotationCollections, type AnnotationFocusEvent, type AnnotationBlurEvent } from "./annotations/annotationcollection.js";
|
|
16
|
+
export { AnnotationsUIs, type AnnotationUI, type AnnotationsUI } from "./annotations/annotationsuis.js";
|
|
17
|
+
export { EditorAnnotations } from "./annotations/editorannotations.js";
|
|
18
|
+
export { InlineAnnotations } from "./annotations/inlineannotations.js";
|
|
19
|
+
export { Sidebar } from "./annotations/sidebar.js";
|
|
20
|
+
export { WideSidebar } from "./annotations/widesidebar.js";
|
|
21
|
+
export { NarrowSidebar } from "./annotations/narrowsidebar.js";
|
|
22
|
+
export { AnnotationView, type AnnotationMainView } from "./annotations/view/annotationview.js";
|
|
23
|
+
export { AnnotationsSidebarItemView } from "./annotations/view/sidebaritemview.js";
|
|
24
|
+
export { AnnotationsSidebarView } from "./annotations/view/sidebarview.js";
|
|
25
|
+
export { BaseCommentView, type UIAddCommentEvent, type UIUpdateCommentEvent, type UIRemoveCommentEvent } from "./comments/ui/view/basecommentview.js";
|
|
26
|
+
export { BaseCommentThreadView, type UISubmitCommentThreadEvent, type UIRemoveCommentThreadEvent, type UIResolveCommentThreadEvent } from "./comments/ui/view/basecommentthreadview.js";
|
|
27
|
+
export { CommentsListView } from "./comments/ui/view/commentslistview.js";
|
|
28
|
+
export { CommentView } from "./comments/ui/view/commentview.js";
|
|
29
|
+
export { CommentThreadView } from "./comments/ui/view/commentthreadview.js";
|
|
30
|
+
export { CommentThreadInputView } from "./comments/ui/view/commentthreadinputview.js";
|
|
31
|
+
export { AddCommentThreadCommand } from "./comments/addcommentthreadcommand.js";
|
|
32
|
+
export { CommentsArchive } from "./comments/commentsarchive.js";
|
|
33
|
+
export { CommentsArchiveUI } from "./comments/commentsarchiveui.js";
|
|
34
|
+
export type { CommentsConfig, AnnotationsSidebarConfig, CommentsClipboardCopyConfig, CommentThreadConfig, CommentViewConfig } from "./config.js";
|
|
35
|
+
export { CommentsEditing } from "./comments/commentsediting.js";
|
|
36
|
+
export { AnnotationCounterButtonView } from "./annotations/view/annotationcounterbuttonview.js";
|
|
37
|
+
import "./augmentation.js";
|