@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
|
@@ -1,243 +1,243 @@
|
|
|
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/comments/ui/view/commentview
|
|
7
|
-
* @publicApi
|
|
8
|
-
*/
|
|
9
|
-
import { type Locale } from 'ckeditor5/src/utils';
|
|
10
|
-
import { ButtonView, type TemplateDefinition, type ViewCollection, type DropdownView } from 'ckeditor5/src/ui';
|
|
11
|
-
import { UserView } from 'ckeditor5-collaboration/src/collaboration-core';
|
|
12
|
-
import BaseCommentView from './basecommentview';
|
|
13
|
-
import type { Comment } from '../../commentsrepository';
|
|
14
|
-
import type CommentInputView from './commentinputview';
|
|
15
|
-
import type { CommentViewConfig } from '../../../config';
|
|
16
|
-
declare const CommentView_base: import("ckeditor5/src/utils").Mixed<typeof BaseCommentView, import("@ckeditor/ckeditor5-collaboration-core/src/utils/confirmmixin").ConfirmApi>;
|
|
17
|
-
/**
|
|
18
|
-
* The default view for comment.
|
|
19
|
-
*/
|
|
20
|
-
export default class CommentView extends CommentView_base {
|
|
21
|
-
locale: Locale;
|
|
22
|
-
isConfirm: boolean;
|
|
23
|
-
cancelConfirm: () => void;
|
|
24
|
-
showConfirm: (key: string, element: unknown) => Promise<void>;
|
|
25
|
-
/**
|
|
26
|
-
* A property used by the template.
|
|
27
|
-
*
|
|
28
|
-
* It works as a visual indicator for the user that an action is about to be performed.
|
|
29
|
-
* The value of this property is used in setting the CSS class.
|
|
30
|
-
* The property is used when the user interacts with the view.
|
|
31
|
-
*
|
|
32
|
-
* @observable
|
|
33
|
-
*/
|
|
34
|
-
actionIndicator: string | null;
|
|
35
|
-
/**
|
|
36
|
-
* Comment editor placeholder value.
|
|
37
|
-
*
|
|
38
|
-
* @observable
|
|
39
|
-
*/
|
|
40
|
-
placeholder: string;
|
|
41
|
-
/**
|
|
42
|
-
* Comment creation date.
|
|
43
|
-
*
|
|
44
|
-
* @observable
|
|
45
|
-
*/
|
|
46
|
-
authoredAt: Date;
|
|
47
|
-
/**
|
|
48
|
-
* Comment resolved date.
|
|
49
|
-
*
|
|
50
|
-
* @observable
|
|
51
|
-
*/
|
|
52
|
-
resolvedAt: Date | null;
|
|
53
|
-
/**
|
|
54
|
-
* Collection for UI elements that manage the comment.
|
|
55
|
-
*
|
|
56
|
-
* Elements that may be found in the action bar (depending on the comment view properties):
|
|
57
|
-
*
|
|
58
|
-
* * the resolve comment thread button (only if the comment is the first comment),
|
|
59
|
-
* * a dropdown with actions ({@link ~CommentView#dropdown `dropdown`}).
|
|
60
|
-
*/
|
|
61
|
-
actionBar: ViewCollection;
|
|
62
|
-
/**
|
|
63
|
-
* View collection which holds all the comments dropdown elements.
|
|
64
|
-
*
|
|
65
|
-
* May include, depending on the view properties:
|
|
66
|
-
*
|
|
67
|
-
* * {@link ~CommentView#editButton `editButton`},
|
|
68
|
-
* * {@link ~CommentView#removeButton `removeButton`}.
|
|
69
|
-
*/
|
|
70
|
-
items: ViewCollection<ButtonView>;
|
|
71
|
-
/**
|
|
72
|
-
* Dropdown containing comment action buttons defined in {@link ~CommentView#items `items`}.
|
|
73
|
-
*/
|
|
74
|
-
dropdown: DropdownView;
|
|
75
|
-
/**
|
|
76
|
-
* Edit button view. Edit button switches the comment to the editing mode.
|
|
77
|
-
*/
|
|
78
|
-
editButton: ButtonView;
|
|
79
|
-
/**
|
|
80
|
-
* Remove button view. Remove button shows a confirmation box that fires the `removeComment` event when submitted.
|
|
81
|
-
*/
|
|
82
|
-
removeButton: ButtonView;
|
|
83
|
-
/**
|
|
84
|
-
* User view for the comment. Presents the comment author.
|
|
85
|
-
*/
|
|
86
|
-
userView: UserView;
|
|
87
|
-
/**
|
|
88
|
-
* @inheritDoc
|
|
89
|
-
*/
|
|
90
|
-
constructor(locale: Locale, model: Comment, config: CommentViewConfig);
|
|
91
|
-
/**
|
|
92
|
-
* Returns a template definition that will be passed to {@link module:ui/view~View#setTemplate}.
|
|
93
|
-
*
|
|
94
|
-
* Overwrite this method if you want to set a custom template for the comment view.
|
|
95
|
-
*
|
|
96
|
-
* The default template looks as follows:
|
|
97
|
-
*
|
|
98
|
-
* ```ts
|
|
99
|
-
* const bind = this.bindTemplate;
|
|
100
|
-
*
|
|
101
|
-
* {
|
|
102
|
-
* tag: 'li',
|
|
103
|
-
*
|
|
104
|
-
* attributes: {
|
|
105
|
-
* class: [
|
|
106
|
-
* 'ck-comment__wrapper',
|
|
107
|
-
* bind.if( 'isConfirm', 'ck-comment--remove-confirmation' )
|
|
108
|
-
* ],
|
|
109
|
-
* tabindex: -1
|
|
110
|
-
* },
|
|
111
|
-
*
|
|
112
|
-
* children: [
|
|
113
|
-
* {
|
|
114
|
-
* tag: 'div',
|
|
115
|
-
*
|
|
116
|
-
* attributes: {
|
|
117
|
-
* class: [
|
|
118
|
-
* 'ck-comment',
|
|
119
|
-
* 'ck-annotation',
|
|
120
|
-
* bind.if( 'isSystemComment', 'ck-comment--info' ),
|
|
121
|
-
* bind.if( 'isEditMode', 'ck-comment--edit' ),
|
|
122
|
-
* bind.to( 'actionIndicator', value => value ? `ck-comment--${ value }` : '' )
|
|
123
|
-
* ],
|
|
124
|
-
* 'data-author-id': this._model.author.id,
|
|
125
|
-
* 'data-comment-id': this._model.id
|
|
126
|
-
* },
|
|
127
|
-
*
|
|
128
|
-
* children: [
|
|
129
|
-
* this.userView,
|
|
130
|
-
* {
|
|
131
|
-
* tag: 'div',
|
|
132
|
-
*
|
|
133
|
-
* attributes: {
|
|
134
|
-
* class: [ 'ck-comment__main', 'ck-annotation__main' ]
|
|
135
|
-
* },
|
|
136
|
-
*
|
|
137
|
-
* children: [
|
|
138
|
-
* {
|
|
139
|
-
* tag: 'div',
|
|
140
|
-
*
|
|
141
|
-
* attributes: {
|
|
142
|
-
* class: [ 'ck-comment__info', 'ck-annotation__info' ]
|
|
143
|
-
* },
|
|
144
|
-
*
|
|
145
|
-
* children: [
|
|
146
|
-
* {
|
|
147
|
-
* tag: 'span',
|
|
148
|
-
*
|
|
149
|
-
* children: [
|
|
150
|
-
* {
|
|
151
|
-
* text: this.userView.name
|
|
152
|
-
* }
|
|
153
|
-
* ],
|
|
154
|
-
*
|
|
155
|
-
* attributes: {
|
|
156
|
-
* class: [ 'ck-comment__info-name', 'ck-annotation__info-name' ]
|
|
157
|
-
* }
|
|
158
|
-
* },
|
|
159
|
-
* {
|
|
160
|
-
* tag: 'time',
|
|
161
|
-
*
|
|
162
|
-
* attributes: {
|
|
163
|
-
* datetime: bind.to( 'authoredAt' ),
|
|
164
|
-
* class: [ 'ck-comment__info-time', 'ck-annotation__info-time' ]
|
|
165
|
-
* },
|
|
166
|
-
*
|
|
167
|
-
* children: [
|
|
168
|
-
* {
|
|
169
|
-
* text: bind.to( 'authoredAt', value => this._config.formatDateTime( value ) )
|
|
170
|
-
* }
|
|
171
|
-
* ]
|
|
172
|
-
* }
|
|
173
|
-
* ]
|
|
174
|
-
* },
|
|
175
|
-
* {
|
|
176
|
-
* tag: 'div',
|
|
177
|
-
*
|
|
178
|
-
* attributes: {
|
|
179
|
-
* class: [
|
|
180
|
-
* 'ck-comment__actions',
|
|
181
|
-
* 'ck-annotation__actions',
|
|
182
|
-
* bind.if( 'isEditMode', 'ck-comment__actions--hidden' ),
|
|
183
|
-
* bind.if( 'isEditMode', 'ck-annotation__actions--hidden' )
|
|
184
|
-
* ]
|
|
185
|
-
* },
|
|
186
|
-
*
|
|
187
|
-
* children: this.actionBar
|
|
188
|
-
* },
|
|
189
|
-
* {
|
|
190
|
-
* tag: 'div',
|
|
191
|
-
*
|
|
192
|
-
* attributes: {
|
|
193
|
-
* class: [ 'ck-annotation__content-wrapper' ]
|
|
194
|
-
* },
|
|
195
|
-
*
|
|
196
|
-
* children: this.visibleView
|
|
197
|
-
* },
|
|
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
|
-
protected _createCommentInputView(): CommentInputView;
|
|
225
|
-
/**
|
|
226
|
-
* Gets the translated note which indicates that the comment comes from an external source.
|
|
227
|
-
*/
|
|
228
|
-
getExternalCommentNote(): string;
|
|
229
|
-
/**
|
|
230
|
-
* Gets the translated notification text which indicates that author name comes from an external source.
|
|
231
|
-
*/
|
|
232
|
-
getUserViewNotificationText(): string | null;
|
|
233
|
-
/**
|
|
234
|
-
* @inheritDoc
|
|
235
|
-
*/
|
|
236
|
-
render(): void;
|
|
237
|
-
}
|
|
238
|
-
declare module 'ckeditor5/src/ui' {
|
|
239
|
-
interface DropdownView {
|
|
240
|
-
isVisible: boolean;
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
export {};
|
|
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/comments/ui/view/commentview
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { type Locale } from 'ckeditor5/src/utils';
|
|
10
|
+
import { ButtonView, type TemplateDefinition, type ViewCollection, type DropdownView } from 'ckeditor5/src/ui';
|
|
11
|
+
import { UserView } from 'ckeditor5-collaboration/src/collaboration-core';
|
|
12
|
+
import BaseCommentView from './basecommentview';
|
|
13
|
+
import type { Comment } from '../../commentsrepository';
|
|
14
|
+
import type CommentInputView from './commentinputview';
|
|
15
|
+
import type { CommentViewConfig } from '../../../config';
|
|
16
|
+
declare const CommentView_base: import("ckeditor5/src/utils").Mixed<typeof BaseCommentView, import("@ckeditor/ckeditor5-collaboration-core/src/utils/confirmmixin").ConfirmApi>;
|
|
17
|
+
/**
|
|
18
|
+
* The default view for comment.
|
|
19
|
+
*/
|
|
20
|
+
export default class CommentView extends CommentView_base {
|
|
21
|
+
locale: Locale;
|
|
22
|
+
isConfirm: boolean;
|
|
23
|
+
cancelConfirm: () => void;
|
|
24
|
+
showConfirm: (key: string, element: unknown) => Promise<void>;
|
|
25
|
+
/**
|
|
26
|
+
* A property used by the template.
|
|
27
|
+
*
|
|
28
|
+
* It works as a visual indicator for the user that an action is about to be performed.
|
|
29
|
+
* The value of this property is used in setting the CSS class.
|
|
30
|
+
* The property is used when the user interacts with the view.
|
|
31
|
+
*
|
|
32
|
+
* @observable
|
|
33
|
+
*/
|
|
34
|
+
actionIndicator: string | null;
|
|
35
|
+
/**
|
|
36
|
+
* Comment editor placeholder value.
|
|
37
|
+
*
|
|
38
|
+
* @observable
|
|
39
|
+
*/
|
|
40
|
+
placeholder: string;
|
|
41
|
+
/**
|
|
42
|
+
* Comment creation date.
|
|
43
|
+
*
|
|
44
|
+
* @observable
|
|
45
|
+
*/
|
|
46
|
+
authoredAt: Date;
|
|
47
|
+
/**
|
|
48
|
+
* Comment resolved date.
|
|
49
|
+
*
|
|
50
|
+
* @observable
|
|
51
|
+
*/
|
|
52
|
+
resolvedAt: Date | null;
|
|
53
|
+
/**
|
|
54
|
+
* Collection for UI elements that manage the comment.
|
|
55
|
+
*
|
|
56
|
+
* Elements that may be found in the action bar (depending on the comment view properties):
|
|
57
|
+
*
|
|
58
|
+
* * the resolve comment thread button (only if the comment is the first comment),
|
|
59
|
+
* * a dropdown with actions ({@link ~CommentView#dropdown `dropdown`}).
|
|
60
|
+
*/
|
|
61
|
+
actionBar: ViewCollection;
|
|
62
|
+
/**
|
|
63
|
+
* View collection which holds all the comments dropdown elements.
|
|
64
|
+
*
|
|
65
|
+
* May include, depending on the view properties:
|
|
66
|
+
*
|
|
67
|
+
* * {@link ~CommentView#editButton `editButton`},
|
|
68
|
+
* * {@link ~CommentView#removeButton `removeButton`}.
|
|
69
|
+
*/
|
|
70
|
+
items: ViewCollection<ButtonView>;
|
|
71
|
+
/**
|
|
72
|
+
* Dropdown containing comment action buttons defined in {@link ~CommentView#items `items`}.
|
|
73
|
+
*/
|
|
74
|
+
dropdown: DropdownView;
|
|
75
|
+
/**
|
|
76
|
+
* Edit button view. Edit button switches the comment to the editing mode.
|
|
77
|
+
*/
|
|
78
|
+
editButton: ButtonView;
|
|
79
|
+
/**
|
|
80
|
+
* Remove button view. Remove button shows a confirmation box that fires the `removeComment` event when submitted.
|
|
81
|
+
*/
|
|
82
|
+
removeButton: ButtonView;
|
|
83
|
+
/**
|
|
84
|
+
* User view for the comment. Presents the comment author.
|
|
85
|
+
*/
|
|
86
|
+
userView: UserView;
|
|
87
|
+
/**
|
|
88
|
+
* @inheritDoc
|
|
89
|
+
*/
|
|
90
|
+
constructor(locale: Locale, model: Comment, config: CommentViewConfig);
|
|
91
|
+
/**
|
|
92
|
+
* Returns a template definition that will be passed to {@link module:ui/view~View#setTemplate}.
|
|
93
|
+
*
|
|
94
|
+
* Overwrite this method if you want to set a custom template for the comment view.
|
|
95
|
+
*
|
|
96
|
+
* The default template looks as follows:
|
|
97
|
+
*
|
|
98
|
+
* ```ts
|
|
99
|
+
* const bind = this.bindTemplate;
|
|
100
|
+
*
|
|
101
|
+
* {
|
|
102
|
+
* tag: 'li',
|
|
103
|
+
*
|
|
104
|
+
* attributes: {
|
|
105
|
+
* class: [
|
|
106
|
+
* 'ck-comment__wrapper',
|
|
107
|
+
* bind.if( 'isConfirm', 'ck-comment--remove-confirmation' )
|
|
108
|
+
* ],
|
|
109
|
+
* tabindex: -1
|
|
110
|
+
* },
|
|
111
|
+
*
|
|
112
|
+
* children: [
|
|
113
|
+
* {
|
|
114
|
+
* tag: 'div',
|
|
115
|
+
*
|
|
116
|
+
* attributes: {
|
|
117
|
+
* class: [
|
|
118
|
+
* 'ck-comment',
|
|
119
|
+
* 'ck-annotation',
|
|
120
|
+
* bind.if( 'isSystemComment', 'ck-comment--info' ),
|
|
121
|
+
* bind.if( 'isEditMode', 'ck-comment--edit' ),
|
|
122
|
+
* bind.to( 'actionIndicator', value => value ? `ck-comment--${ value }` : '' )
|
|
123
|
+
* ],
|
|
124
|
+
* 'data-author-id': this._model.author.id,
|
|
125
|
+
* 'data-comment-id': this._model.id
|
|
126
|
+
* },
|
|
127
|
+
*
|
|
128
|
+
* children: [
|
|
129
|
+
* this.userView,
|
|
130
|
+
* {
|
|
131
|
+
* tag: 'div',
|
|
132
|
+
*
|
|
133
|
+
* attributes: {
|
|
134
|
+
* class: [ 'ck-comment__main', 'ck-annotation__main' ]
|
|
135
|
+
* },
|
|
136
|
+
*
|
|
137
|
+
* children: [
|
|
138
|
+
* {
|
|
139
|
+
* tag: 'div',
|
|
140
|
+
*
|
|
141
|
+
* attributes: {
|
|
142
|
+
* class: [ 'ck-comment__info', 'ck-annotation__info' ]
|
|
143
|
+
* },
|
|
144
|
+
*
|
|
145
|
+
* children: [
|
|
146
|
+
* {
|
|
147
|
+
* tag: 'span',
|
|
148
|
+
*
|
|
149
|
+
* children: [
|
|
150
|
+
* {
|
|
151
|
+
* text: this.userView.name
|
|
152
|
+
* }
|
|
153
|
+
* ],
|
|
154
|
+
*
|
|
155
|
+
* attributes: {
|
|
156
|
+
* class: [ 'ck-comment__info-name', 'ck-annotation__info-name' ]
|
|
157
|
+
* }
|
|
158
|
+
* },
|
|
159
|
+
* {
|
|
160
|
+
* tag: 'time',
|
|
161
|
+
*
|
|
162
|
+
* attributes: {
|
|
163
|
+
* datetime: bind.to( 'authoredAt' ),
|
|
164
|
+
* class: [ 'ck-comment__info-time', 'ck-annotation__info-time' ]
|
|
165
|
+
* },
|
|
166
|
+
*
|
|
167
|
+
* children: [
|
|
168
|
+
* {
|
|
169
|
+
* text: bind.to( 'authoredAt', value => this._config.formatDateTime( value ) )
|
|
170
|
+
* }
|
|
171
|
+
* ]
|
|
172
|
+
* }
|
|
173
|
+
* ]
|
|
174
|
+
* },
|
|
175
|
+
* {
|
|
176
|
+
* tag: 'div',
|
|
177
|
+
*
|
|
178
|
+
* attributes: {
|
|
179
|
+
* class: [
|
|
180
|
+
* 'ck-comment__actions',
|
|
181
|
+
* 'ck-annotation__actions',
|
|
182
|
+
* bind.if( 'isEditMode', 'ck-comment__actions--hidden' ),
|
|
183
|
+
* bind.if( 'isEditMode', 'ck-annotation__actions--hidden' )
|
|
184
|
+
* ]
|
|
185
|
+
* },
|
|
186
|
+
*
|
|
187
|
+
* children: this.actionBar
|
|
188
|
+
* },
|
|
189
|
+
* {
|
|
190
|
+
* tag: 'div',
|
|
191
|
+
*
|
|
192
|
+
* attributes: {
|
|
193
|
+
* class: [ 'ck-annotation__content-wrapper' ]
|
|
194
|
+
* },
|
|
195
|
+
*
|
|
196
|
+
* children: this.visibleView
|
|
197
|
+
* },
|
|
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
|
+
protected _createCommentInputView(): CommentInputView;
|
|
225
|
+
/**
|
|
226
|
+
* Gets the translated note which indicates that the comment comes from an external source.
|
|
227
|
+
*/
|
|
228
|
+
getExternalCommentNote(): string;
|
|
229
|
+
/**
|
|
230
|
+
* Gets the translated notification text which indicates that author name comes from an external source.
|
|
231
|
+
*/
|
|
232
|
+
getUserViewNotificationText(): string | null;
|
|
233
|
+
/**
|
|
234
|
+
* @inheritDoc
|
|
235
|
+
*/
|
|
236
|
+
render(): void;
|
|
237
|
+
}
|
|
238
|
+
declare module 'ckeditor5/src/ui' {
|
|
239
|
+
interface DropdownView {
|
|
240
|
+
isVisible: boolean;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
export {};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3f68=['getTemplate','ck-annotation__user','isRemovable','isSystemComment','actionIndicator','Edit','creator','Show\x20more\x20items','removeButton','push','items','remove','ck-comment','ck-comment--info','bind','isEditMode','EXTERNAL_IMPORT_WORD_AVATAR','ck-comment__user','name','ck-annotation__content-wrapper','add','_createEditButton','dropdown','cancelConfirm','ck-comment--edit','isConfirm','visibleView','focus','_config','execute','showConfirm','time','length','mouseenter','author','ck-comment__external','withText','change:isRemovable','children','_createDropdown','formatDateTime','change:isEnabled','authoredAt','Reply...','_createCommentInputView','blur','buttonView','some','threeVerticalDots','ck-annotation__info-time','listenTo','getExternalCommentNote','source','setTemplate','attributes','_createRemoveButton','@external','ck-comment__actions','isEnabled','mouseleave','ck-comment--remove-confirmation','getUserViewNotificationText','resolvedAt','div','actionBar','userView','render','ck-comment__wrapper','ck-comment__actions--hidden','locale','span','isReadOnly','addMany','ck-annotation__actions--hidden','ck-comment__info-name','ck-comment__info','Delete\x20comment?','ck-comment__main','isExternal','ck-annotation__info-name','isVisible','fire','element','label','createCollection','ck-annotation__info','ck-annotation__main','icon','_model','_attachActions','ck-comment--remove','editButton','placeholder','set','EXTERNAL_COMMENT','extendTemplate','ck-comment__info-time','change:isVisible'];(function(_0x88d6d9,_0x3f6811){const _0xfff2f6=function(_0xa6e247){while(--_0xa6e247){_0x88d6d9['push'](_0x88d6d9['shift']());}};_0xfff2f6(++_0x3f6811);}(_0x3f68,0x87));const _0xfff2=function(_0x88d6d9,_0x3f6811){_0x88d6d9=_0x88d6d9-0x0;let _0xfff2f6=_0x3f68[_0x88d6d9];return _0xfff2f6;};import{ButtonView as _0x4b11df,createDropdown as _0x67b45f,ListView as _0x69a907,ListItemView as _0xea08d3}from'ckeditor5/src/ui';import{icons as _0xf29b24}from'ckeditor5/src/core';import{UserView as _0x56e606,ConfirmMixin as _0xdad38d}from'ckeditor5-collaboration/src/collaboration-core';import _0x2de0b4 from'./basecommentview';import _0x1013ff from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x5c715f}from'../../../utils/common-translations';export default class pt extends _0xdad38d(_0x2de0b4){constructor(_0x4c3609,_0x409bb0,_0x2aa1a8){super(_0x4c3609,_0x409bb0,_0x2aa1a8),this[_0xfff2('0x38')](_0xfff2('0x41'),null),this[_0xfff2('0x38')](_0xfff2('0x37'),_0x5c715f(_0x4c3609,_0xfff2('0x6'))),this[_0xfff2('0x4b')]('authoredAt')['to'](_0x409bb0),this['bind'](_0xfff2('0x19'))['to'](_0x409bb0),this[_0xfff2('0x1b')]=this['createCollection'](),this[_0xfff2('0x40')]||(this[_0xfff2('0x36')]=this[_0xfff2('0x52')](),this[_0xfff2('0x45')]=this[_0xfff2('0x12')](),this['items']=this[_0xfff2('0x2f')](),this[_0xfff2('0x47')][_0xfff2('0x23')]([this[_0xfff2('0x36')],this[_0xfff2('0x45')]]),this[_0xfff2('0x53')]=this[_0xfff2('0x2')](),this['actionBar'][_0xfff2('0x51')](this['dropdown'])),this['userView']=new _0x56e606(_0x4c3609,_0x409bb0[_0xfff2('0x5f')],this['getUserViewNotificationText']()),this[_0xfff2('0x1c')]['extendTemplate']({'attributes':{'class':[_0xfff2('0x4e'),_0xfff2('0x3e')]}}),this['listenTo'](_0x409bb0,_0xfff2('0x0'),()=>this[_0xfff2('0x54')]()),this[_0xfff2('0x10')](this[_0xfff2('0x3d')]());}[_0xfff2('0x3d')](){const _0xb3ca68=this['bindTemplate'],_0x15955d=[{'tag':_0xfff2('0x1a'),'attributes':{'class':[_0xfff2('0x26'),_0xfff2('0x30')]},'children':[{'tag':_0xfff2('0x21'),'children':[{'text':this['userView'][_0xfff2('0x4f')]}],'attributes':{'class':[_0xfff2('0x25'),_0xfff2('0x2a')]}},{'tag':_0xfff2('0x5c'),'attributes':{'datetime':_0xb3ca68['to'](_0xfff2('0x5')),'class':[_0xfff2('0x3b'),_0xfff2('0xc')]},'children':[{'text':_0xb3ca68['to']('authoredAt',_0x3f1eb4=>this[_0xfff2('0x59')][_0xfff2('0x3')](_0x3f1eb4))}]}]},{'tag':'div','attributes':{'class':[_0xfff2('0x14'),'ck-annotation__actions',_0xb3ca68['if'](_0xfff2('0x4c'),_0xfff2('0x1f')),_0xb3ca68['if'](_0xfff2('0x4c'),_0xfff2('0x24'))]},'children':this[_0xfff2('0x1b')]},{'tag':_0xfff2('0x1a'),'attributes':{'class':[_0xfff2('0x50')]},'children':this[_0xfff2('0x57')]}];return this[_0xfff2('0x33')]['isExternal']&&_0x15955d[_0xfff2('0x46')]({'tag':'div','attributes':{'class':[_0xfff2('0x60')]},'children':[{'text':this[_0xfff2('0xe')]()}]}),{'tag':'li','attributes':{'class':[_0xfff2('0x1e'),_0xb3ca68['if'](_0xfff2('0x56'),_0xfff2('0x17'))],'tabindex':-0x1},'children':[{'tag':_0xfff2('0x1a'),'attributes':{'class':[_0xfff2('0x49'),'ck-annotation',_0xb3ca68['if'](_0xfff2('0x4c'),_0xfff2('0x55')),_0xb3ca68['if'](_0xfff2('0x40'),_0xfff2('0x4a')),_0xb3ca68['to'](_0xfff2('0x41'),_0x1ba2ab=>_0x1ba2ab?'ck-comment--'+_0x1ba2ab:'')],'data-author-id':this[_0xfff2('0x33')]['author']['id'],'data-comment-id':this[_0xfff2('0x33')]['id']},'children':[this['userView'],{'tag':_0xfff2('0x1a'),'attributes':{'class':[_0xfff2('0x28'),_0xfff2('0x31')]},'children':_0x15955d}]}]};}[_0xfff2('0x52')](){const _0x333f04=new _0x4b11df(this['locale']);return _0x333f04[_0xfff2('0x2e')]=_0x5c715f(this[_0xfff2('0x20')],_0xfff2('0x42')),_0x333f04[_0xfff2('0x32')]=_0xf29b24['pencil'],_0x333f04['withText']=!0x0,_0x333f04[_0xfff2('0x3a')]({'attributes':{'class':'ck-comment--edit'}}),_0x333f04[_0xfff2('0x4b')]('isEnabled')['to'](this[_0xfff2('0x33')],_0xfff2('0x22'),_0x2fb666=>!_0x2fb666),_0x333f04[_0xfff2('0x4b')]('isVisible')['to'](this[_0xfff2('0x33')],'isEditable'),_0x333f04['on'](_0xfff2('0x5a'),()=>this['switchToEditMode']()),_0x333f04;}[_0xfff2('0x12')](){const _0xbc1184=new _0x4b11df(this[_0xfff2('0x20')]);return _0xbc1184[_0xfff2('0x2e')]=_0x5c715f(this[_0xfff2('0x20')],'Remove'),_0xbc1184[_0xfff2('0x32')]=_0x1013ff,_0xbc1184[_0xfff2('0x61')]=!0x0,_0xbc1184[_0xfff2('0x3a')]({'attributes':{'class':_0xfff2('0x35')}}),_0xbc1184['bind'](_0xfff2('0x15'))['to'](this['_model'],_0xfff2('0x22'),_0x48db13=>!_0x48db13),_0xbc1184[_0xfff2('0x4b')](_0xfff2('0x2b'))['to'](this['_model'],_0xfff2('0x3f')),_0xbc1184['on'](_0xfff2('0x5a'),()=>{this[_0xfff2('0x5b')](_0x5c715f(this[_0xfff2('0x20')],_0xfff2('0x27')),this[_0xfff2('0x2d')])['then'](()=>{this[_0xfff2('0x2c')]('removeComment',this[_0xfff2('0x33')]['id']);});}),_0xbc1184;}[_0xfff2('0x2')](){const _0x489b80=_0x67b45f(this[_0xfff2('0x20')]),_0x362829=_0x489b80['panelView'][_0xfff2('0x1')],_0x5dd62b=new _0x69a907(this['locale']),_0x28c17e=(_0x979b27,_0x1275e5=-0x1)=>{const _0x571b99=new _0xea08d3(this[_0xfff2('0x20')]);_0x571b99[_0xfff2('0x1')][_0xfff2('0x51')](_0x979b27);const _0x42cb3f=_0x1275e5>-0x1?_0x1275e5:_0x5dd62b[_0xfff2('0x47')][_0xfff2('0x5d')];_0x5dd62b[_0xfff2('0x47')][_0xfff2('0x51')](_0x571b99,_0x42cb3f),_0x489b80[_0xfff2('0xd')](_0x979b27,_0xfff2('0x4'),()=>{_0x489b80[_0xfff2('0x15')]=[...this[_0xfff2('0x47')]][_0xfff2('0xa')](_0x32f83a=>_0x32f83a['isEnabled']);}),_0x489b80[_0xfff2('0xd')](_0x979b27,_0xfff2('0x3c'),()=>{_0x489b80[_0xfff2('0x9')][_0xfff2('0x2b')]=[...this[_0xfff2('0x47')]][_0xfff2('0xa')](_0x337916=>_0x337916[_0xfff2('0x2b')]);});};_0x489b80['panelPosition']='sw',_0x489b80[_0xfff2('0x9')][_0xfff2('0x38')]({'label':_0x5c715f(this[_0xfff2('0x20')],_0xfff2('0x44')),'icon':_0xf29b24[_0xfff2('0xb')]}),_0x489b80['isEnabled']=[...this[_0xfff2('0x47')]]['some'](_0x51ddbf=>_0x51ddbf[_0xfff2('0x15')]),_0x489b80['buttonView'][_0xfff2('0x2b')]=[...this['items']][_0xfff2('0xa')](_0x201f8a=>_0x201f8a[_0xfff2('0x2b')]);for(const _0x72debb of this['items'])_0x28c17e(_0x72debb);return _0x362829[_0xfff2('0x51')](_0x5dd62b),_0x489b80[_0xfff2('0xd')](this[_0xfff2('0x47')],_0xfff2('0x51'),(_0x1a724f,_0xd6469a,_0x19a607)=>{_0x28c17e(_0xd6469a,_0x19a607);}),_0x489b80[_0xfff2('0xd')](this[_0xfff2('0x47')],_0xfff2('0x48'),(_0x4c26f5,_0x36dacb,_0x28d52c)=>{_0x5dd62b[_0xfff2('0x47')]['remove'](_0x28d52c);}),_0x489b80;}[_0xfff2('0x34')](_0x52826f,_0x29a96f){const _0x2c1345=_0x52826f&&_0x52826f['element'];_0x2c1345&&(this[_0xfff2('0xd')](_0x2c1345,_0xfff2('0x5e'),()=>this[_0xfff2('0x41')]=_0x29a96f),this[_0xfff2('0xd')](_0x2c1345,_0xfff2('0x58'),()=>this[_0xfff2('0x41')]=_0x29a96f),this['listenTo'](_0x2c1345,_0xfff2('0x16'),()=>this[_0xfff2('0x41')]=null),this['listenTo'](_0x2c1345,_0xfff2('0x8'),()=>this[_0xfff2('0x41')]=null));}[_0xfff2('0x7')](){const _0x332593=super[_0xfff2('0x7')]();return _0x332593[_0xfff2('0x4b')]('placeholder')['to'](this),_0x332593;}['getExternalCommentNote'](){return'importWord'===this[_0xfff2('0x33')][_0xfff2('0x11')][_0xfff2('0x13')][_0xfff2('0xf')]?_0x5c715f(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):_0x5c715f(this['locale'],_0xfff2('0x39'));}[_0xfff2('0x18')](){return this[_0xfff2('0x33')][_0xfff2('0x29')]?'importWord'===this[_0xfff2('0x33')][_0xfff2('0x11')][_0xfff2('0x13')][_0xfff2('0xf')]?_0x5c715f(this['locale'],_0xfff2('0x4d'),this[_0xfff2('0x33')][_0xfff2('0x43')]['name']):_0x5c715f(this[_0xfff2('0x20')],'EXTERNAL_AVATAR',this[_0xfff2('0x33')]['creator'][_0xfff2('0x4f')]):null;}[_0xfff2('0x1d')](){super[_0xfff2('0x1d')](),this[_0xfff2('0x34')](this['editButton'],'edit'),this[_0xfff2('0x34')](this[_0xfff2('0x45')],_0xfff2('0x48'));}}
|
package/src/comments.d.ts
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
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/comments
|
|
7
|
-
* @publicApi
|
|
8
|
-
*/
|
|
9
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
10
|
-
import CommentsRepository from './comments/commentsrepository';
|
|
11
|
-
import CommentsEditing from './comments/commentsediting';
|
|
12
|
-
import CommentsUI from './comments/commentsui';
|
|
13
|
-
import CommentsOnly from './commentsonly';
|
|
14
|
-
import WideSidebar from './annotations/widesidebar';
|
|
15
|
-
import NarrowSidebar from './annotations/narrowsidebar';
|
|
16
|
-
import InlineAnnotations from './annotations/inlineannotations';
|
|
17
|
-
import CommentsArchiveUI from './comments/commentsarchiveui';
|
|
18
|
-
import CommentsArchive from './comments/commentsarchive';
|
|
19
|
-
/**
|
|
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
|
-
export default class Comments extends Plugin {
|
|
27
|
-
/**
|
|
28
|
-
* @inheritDoc
|
|
29
|
-
*/
|
|
30
|
-
static get requires(): readonly [typeof CommentsRepository, typeof CommentsEditing, typeof CommentsUI, typeof CommentsArchive, typeof CommentsArchiveUI, typeof CommentsOnly, typeof WideSidebar, typeof NarrowSidebar, typeof InlineAnnotations];
|
|
31
|
-
/**
|
|
32
|
-
* @inheritDoc
|
|
33
|
-
*/
|
|
34
|
-
static get pluginName(): "Comments";
|
|
35
|
-
}
|
|
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/comments
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
10
|
+
import CommentsRepository from './comments/commentsrepository';
|
|
11
|
+
import CommentsEditing from './comments/commentsediting';
|
|
12
|
+
import CommentsUI from './comments/commentsui';
|
|
13
|
+
import CommentsOnly from './commentsonly';
|
|
14
|
+
import WideSidebar from './annotations/widesidebar';
|
|
15
|
+
import NarrowSidebar from './annotations/narrowsidebar';
|
|
16
|
+
import InlineAnnotations from './annotations/inlineannotations';
|
|
17
|
+
import CommentsArchiveUI from './comments/commentsarchiveui';
|
|
18
|
+
import CommentsArchive from './comments/commentsarchive';
|
|
19
|
+
/**
|
|
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
|
+
export default class Comments extends Plugin {
|
|
27
|
+
/**
|
|
28
|
+
* @inheritDoc
|
|
29
|
+
*/
|
|
30
|
+
static get requires(): readonly [typeof CommentsRepository, typeof CommentsEditing, typeof CommentsUI, typeof CommentsArchive, typeof CommentsArchiveUI, typeof CommentsOnly, typeof WideSidebar, typeof NarrowSidebar, typeof InlineAnnotations];
|
|
31
|
+
/**
|
|
32
|
+
* @inheritDoc
|
|
33
|
+
*/
|
|
34
|
+
static get pluginName(): "Comments";
|
|
35
|
+
}
|