@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
|
@@ -1,236 +1,231 @@
|
|
|
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 Locale } from
|
|
10
|
-
import { ButtonView, type TemplateDefinition, type DropdownView, type FocusableView, type ViewCollection } from
|
|
11
|
-
import { UserView } from
|
|
12
|
-
import { BaseCommentView } from
|
|
13
|
-
import type { Comment } from
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
declare const CommentView_base: import("@ckeditor/ckeditor5-utils").Mixed<typeof BaseCommentView, import("@ckeditor/ckeditor5-collaboration-core").ConfirmApi>;
|
|
6
|
+
* @module comments/comments/ui/view/commentview
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { type Locale } from "@ckeditor/ckeditor5-utils";
|
|
10
|
+
import { ButtonView, type TemplateDefinition, type DropdownView, type FocusableView, type ViewCollection } from "@ckeditor/ckeditor5-ui";
|
|
11
|
+
import { UserView, type ConfirmMixinConstructor } from "@ckeditor/ckeditor5-collaboration-core";
|
|
12
|
+
import { BaseCommentView } from "./basecommentview.js";
|
|
13
|
+
import type { Comment } from "../../commentsrepository.js";
|
|
14
|
+
import type { CommentViewConfig } from "../../../config.js";
|
|
15
|
+
declare const _CommentViewBase: ConfirmMixinConstructor<typeof BaseCommentView>;
|
|
17
16
|
/**
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
export declare class CommentView extends
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* @inheritDoc
|
|
228
|
-
*/
|
|
229
|
-
render(): void;
|
|
17
|
+
* The default view for comment.
|
|
18
|
+
*/
|
|
19
|
+
export declare class CommentView extends _CommentViewBase {
|
|
20
|
+
locale: Locale;
|
|
21
|
+
cancelConfirm: () => void;
|
|
22
|
+
showConfirm: (key: string, element: unknown) => Promise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* A property used by the template.
|
|
25
|
+
*
|
|
26
|
+
* It works as a visual indicator for the user that an action is about to be performed.
|
|
27
|
+
* The value of this property is used in setting the CSS class.
|
|
28
|
+
* The property is used when the user interacts with the view.
|
|
29
|
+
*
|
|
30
|
+
* @observable
|
|
31
|
+
*/
|
|
32
|
+
actionIndicator: string | null;
|
|
33
|
+
/**
|
|
34
|
+
* Comment editor placeholder value.
|
|
35
|
+
*
|
|
36
|
+
* @observable
|
|
37
|
+
*/
|
|
38
|
+
placeholder: string;
|
|
39
|
+
/**
|
|
40
|
+
* Comment creation date.
|
|
41
|
+
*
|
|
42
|
+
* @observable
|
|
43
|
+
*/
|
|
44
|
+
authoredAt: Date;
|
|
45
|
+
/**
|
|
46
|
+
* Comment resolved date.
|
|
47
|
+
*
|
|
48
|
+
* @observable
|
|
49
|
+
*/
|
|
50
|
+
resolvedAt: Date | null;
|
|
51
|
+
/**
|
|
52
|
+
* Collection for UI elements that manage the comment.
|
|
53
|
+
*
|
|
54
|
+
* Elements that may be found in the action bar (depending on the comment view properties):
|
|
55
|
+
*
|
|
56
|
+
* * the resolve comment thread button (only if the comment is the first comment),
|
|
57
|
+
* * a dropdown with actions ({@link ~CommentView#dropdown `dropdown`}).
|
|
58
|
+
*/
|
|
59
|
+
actionBar: ViewCollection<FocusableView>;
|
|
60
|
+
/**
|
|
61
|
+
* View collection which holds all the comments dropdown elements.
|
|
62
|
+
*
|
|
63
|
+
* May include, depending on the view properties:
|
|
64
|
+
*
|
|
65
|
+
* * {@link ~CommentView#editButton `editButton`},
|
|
66
|
+
* * {@link ~CommentView#removeButton `removeButton`}.
|
|
67
|
+
*/
|
|
68
|
+
items: ViewCollection<ButtonView>;
|
|
69
|
+
/**
|
|
70
|
+
* Dropdown containing comment action buttons defined in {@link ~CommentView#items `items`}.
|
|
71
|
+
*/
|
|
72
|
+
dropdown: DropdownView;
|
|
73
|
+
/**
|
|
74
|
+
* Edit button view. Edit button switches the comment to the editing mode.
|
|
75
|
+
*/
|
|
76
|
+
editButton: ButtonView;
|
|
77
|
+
/**
|
|
78
|
+
* Remove button view. Remove button shows a confirmation box that fires the `removeComment` event when submitted.
|
|
79
|
+
*/
|
|
80
|
+
removeButton: ButtonView;
|
|
81
|
+
/**
|
|
82
|
+
* User view for the comment. Presents the comment author.
|
|
83
|
+
*/
|
|
84
|
+
userView: UserView;
|
|
85
|
+
/**
|
|
86
|
+
* @inheritDoc
|
|
87
|
+
*/
|
|
88
|
+
constructor(locale: Locale, model: Comment, config: CommentViewConfig);
|
|
89
|
+
/**
|
|
90
|
+
* Returns a template definition that will be passed to {@link module:ui/view~View#setTemplate}.
|
|
91
|
+
*
|
|
92
|
+
* Overwrite this method if you want to set a custom template for the comment view.
|
|
93
|
+
*
|
|
94
|
+
* The default template looks as follows:
|
|
95
|
+
*
|
|
96
|
+
* ```ts
|
|
97
|
+
* const bind = this.bindTemplate;
|
|
98
|
+
*
|
|
99
|
+
* {
|
|
100
|
+
* tag: 'li',
|
|
101
|
+
*
|
|
102
|
+
* attributes: {
|
|
103
|
+
* class: [ 'ck-comment__wrapper' ],
|
|
104
|
+
* tabindex: -1,
|
|
105
|
+
* 'aria-label': bind.to( 'ariaLabel' ),
|
|
106
|
+
* 'aria-describedby': this.ariaDescriptionView.id,
|
|
107
|
+
* role: 'listitem'
|
|
108
|
+
* },
|
|
109
|
+
*
|
|
110
|
+
* children: [
|
|
111
|
+
* {
|
|
112
|
+
* tag: 'div',
|
|
113
|
+
*
|
|
114
|
+
* attributes: {
|
|
115
|
+
* class: [
|
|
116
|
+
* 'ck-comment',
|
|
117
|
+
* 'ck-annotation',
|
|
118
|
+
* bind.if( 'isSystemComment', 'ck-comment--info' ),
|
|
119
|
+
* bind.if( 'isEditMode', 'ck-comment--edit' ),
|
|
120
|
+
* bind.to( 'actionIndicator', value => value ? `ck-comment--${ value }` : '' )
|
|
121
|
+
* ],
|
|
122
|
+
* 'data-author-id': this._model.author.id,
|
|
123
|
+
* 'data-comment-id': this._model.id,
|
|
124
|
+
* role: 'group'
|
|
125
|
+
* },
|
|
126
|
+
*
|
|
127
|
+
* children: [
|
|
128
|
+
* this.userView,
|
|
129
|
+
* {
|
|
130
|
+
* tag: 'div',
|
|
131
|
+
*
|
|
132
|
+
* attributes: {
|
|
133
|
+
* class: [ 'ck-comment__main', 'ck-annotation__main' ]
|
|
134
|
+
* },
|
|
135
|
+
*
|
|
136
|
+
* children: [
|
|
137
|
+
* {
|
|
138
|
+
* tag: 'div',
|
|
139
|
+
*
|
|
140
|
+
* attributes: {
|
|
141
|
+
* class: [ 'ck-comment__info', 'ck-annotation__info' ]
|
|
142
|
+
* },
|
|
143
|
+
*
|
|
144
|
+
* children: [
|
|
145
|
+
* {
|
|
146
|
+
* tag: 'span',
|
|
147
|
+
*
|
|
148
|
+
* children: [
|
|
149
|
+
* {
|
|
150
|
+
* text: this.userView.name
|
|
151
|
+
* }
|
|
152
|
+
* ],
|
|
153
|
+
*
|
|
154
|
+
* attributes: {
|
|
155
|
+
* class: [ 'ck-comment__info-name', 'ck-annotation__info-name' ]
|
|
156
|
+
* }
|
|
157
|
+
* },
|
|
158
|
+
* {
|
|
159
|
+
* tag: 'time',
|
|
160
|
+
*
|
|
161
|
+
* attributes: {
|
|
162
|
+
* datetime: bind.to( 'authoredAt' ),
|
|
163
|
+
* class: [ 'ck-comment__info-time', 'ck-annotation__info-time' ]
|
|
164
|
+
* },
|
|
165
|
+
*
|
|
166
|
+
* children: [
|
|
167
|
+
* {
|
|
168
|
+
* text: bind.to( 'authoredAt', value => this._config.formatDateTime( value ) )
|
|
169
|
+
* }
|
|
170
|
+
* ]
|
|
171
|
+
* }
|
|
172
|
+
* ]
|
|
173
|
+
* },
|
|
174
|
+
* {
|
|
175
|
+
* tag: 'div',
|
|
176
|
+
*
|
|
177
|
+
* attributes: {
|
|
178
|
+
* class: [
|
|
179
|
+
* 'ck-comment__actions',
|
|
180
|
+
* 'ck-annotation__actions',
|
|
181
|
+
* bind.if( 'isEditMode', 'ck-comment__actions--hidden' ),
|
|
182
|
+
* bind.if( 'isEditMode', 'ck-annotation__actions--hidden' )
|
|
183
|
+
* ]
|
|
184
|
+
* },
|
|
185
|
+
*
|
|
186
|
+
* children: this.actionBar
|
|
187
|
+
* },
|
|
188
|
+
* {
|
|
189
|
+
* tag: 'div',
|
|
190
|
+
*
|
|
191
|
+
* attributes: {
|
|
192
|
+
* class: [ 'ck-annotation__content-wrapper' ]
|
|
193
|
+
* },
|
|
194
|
+
*
|
|
195
|
+
* children: this.visibleView
|
|
196
|
+
* },
|
|
197
|
+
* this.ariaDescriptionView,
|
|
198
|
+
* {
|
|
199
|
+
* tag: 'div',
|
|
200
|
+
*
|
|
201
|
+
* attributes: {
|
|
202
|
+
* class: [ 'ck-comment__external' ]
|
|
203
|
+
* },
|
|
204
|
+
*
|
|
205
|
+
* children: [ {
|
|
206
|
+
* text: this.getExternalCommentNote()
|
|
207
|
+
* } ]
|
|
208
|
+
* }
|
|
209
|
+
* ]
|
|
210
|
+
* }
|
|
211
|
+
*
|
|
212
|
+
* ]
|
|
213
|
+
* }
|
|
214
|
+
* ]
|
|
215
|
+
* }
|
|
216
|
+
* ```
|
|
217
|
+
*
|
|
218
|
+
* @returns Definition of comment thread view's template.
|
|
219
|
+
*/
|
|
220
|
+
getTemplate(): TemplateDefinition;
|
|
221
|
+
/**
|
|
222
|
+
* @inheritDoc
|
|
223
|
+
*/
|
|
224
|
+
override render(): void;
|
|
230
225
|
}
|
|
231
|
-
declare module
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
226
|
+
declare module "@ckeditor/ckeditor5-ui" {
|
|
227
|
+
interface DropdownView {
|
|
228
|
+
isVisible: boolean;
|
|
229
|
+
}
|
|
235
230
|
}
|
|
236
231
|
export {};
|
package/dist/comments.d.ts
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
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 { Plugin } from
|
|
10
|
-
import { CommentsRepository } from
|
|
11
|
-
import { CommentsEditing } from
|
|
12
|
-
import { CommentsUI } from
|
|
13
|
-
import { CommentsOnly } from
|
|
14
|
-
import { WideSidebar } from
|
|
15
|
-
import { NarrowSidebar } from
|
|
16
|
-
import { InlineAnnotations } from
|
|
17
|
-
import { CommentsArchiveUI } from
|
|
18
|
-
import { CommentsArchive } from
|
|
6
|
+
* @module comments/comments
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
10
|
+
import { CommentsRepository } from "./comments/commentsrepository.js";
|
|
11
|
+
import { CommentsEditing } from "./comments/commentsediting.js";
|
|
12
|
+
import { CommentsUI } from "./comments/commentsui.js";
|
|
13
|
+
import { CommentsOnly } from "./commentsonly.js";
|
|
14
|
+
import { WideSidebar } from "./annotations/widesidebar.js";
|
|
15
|
+
import { NarrowSidebar } from "./annotations/narrowsidebar.js";
|
|
16
|
+
import { InlineAnnotations } from "./annotations/inlineannotations.js";
|
|
17
|
+
import { CommentsArchiveUI } from "./comments/commentsarchiveui.js";
|
|
18
|
+
import { CommentsArchive } from "./comments/commentsarchive.js";
|
|
19
19
|
/**
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
* The comments plugin, which brings both the UI part and the editing part of this feature.
|
|
21
|
+
*
|
|
22
|
+
* It registers {@link module:comments/comments/addcommentthreadcommand~AddCommentThreadCommand the `AddCommentThreadCommand` command}.
|
|
23
|
+
*
|
|
24
|
+
* To learn more about the comments feature refer to the {@glink features/collaboration/comments/comments Comments} guide.
|
|
25
|
+
*/
|
|
26
26
|
export declare class Comments extends Plugin {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
27
|
+
/**
|
|
28
|
+
* @inheritDoc
|
|
29
|
+
*/
|
|
30
|
+
static get requires(): PluginDependenciesOf<[CommentsRepository, CommentsEditing, CommentsUI, CommentsArchive, CommentsArchiveUI, CommentsOnly, WideSidebar, NarrowSidebar, InlineAnnotations]>;
|
|
31
|
+
/**
|
|
32
|
+
* @inheritDoc
|
|
33
|
+
*/
|
|
34
|
+
static get pluginName(): "Comments";
|
|
35
|
+
/**
|
|
36
|
+
* @inheritDoc
|
|
37
|
+
*/
|
|
38
|
+
static override get isOfficialPlugin(): true;
|
|
39
|
+
/**
|
|
40
|
+
* @inheritDoc
|
|
41
|
+
*/
|
|
42
|
+
static override get isPremiumPlugin(): true;
|
|
43
43
|
}
|
package/dist/commentsonly.d.ts
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
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 { Plugin, type Editor } from
|
|
10
|
-
import { CommentsEditing } from
|
|
6
|
+
* @module comments/commentsonly
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin, type Editor, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
10
|
+
import { CommentsEditing } from "./comments/commentsediting.js";
|
|
11
11
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
16
|
export declare class CommentsOnly extends Plugin {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
17
|
+
/**
|
|
18
|
+
* @inheritDoc
|
|
19
|
+
*/
|
|
20
|
+
static get pluginName(): "CommentsOnly";
|
|
21
|
+
/**
|
|
22
|
+
* @inheritDoc
|
|
23
|
+
*/
|
|
24
|
+
static override get isOfficialPlugin(): true;
|
|
25
|
+
/**
|
|
26
|
+
* @inheritDoc
|
|
27
|
+
*/
|
|
28
|
+
static override get isPremiumPlugin(): true;
|
|
29
|
+
/**
|
|
30
|
+
* @inheritDoc
|
|
31
|
+
*/
|
|
32
|
+
static get requires(): PluginDependenciesOf<[CommentsEditing]>;
|
|
33
|
+
/**
|
|
34
|
+
* @inheritDoc
|
|
35
|
+
*/
|
|
36
|
+
constructor(editor: Editor);
|
|
37
|
+
/**
|
|
38
|
+
* @inheritDoc
|
|
39
|
+
*/
|
|
40
|
+
afterInit(): void;
|
|
41
41
|
}
|