@ckeditor/ckeditor5-comments 38.2.0-alpha.1 → 39.0.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/README.md +0 -1
- package/build/comments.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/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.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/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.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.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sq.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/tr.js +1 -1
- package/build/translations/uk.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/translations/ar.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +12 -12
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/sq.po +2 -2
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +4 -5
- package/src/annotations/annotation.d.ts +10 -6
- package/src/annotations/annotation.js +2 -2
- package/src/annotations/annotationcollection.d.ts +7 -3
- package/src/annotations/annotationcollection.js +2 -2
- package/src/annotations/annotations.d.ts +10 -6
- package/src/annotations/annotations.js +2 -2
- package/src/annotations/annotationsuis.d.ts +9 -5
- package/src/annotations/annotationsuis.js +2 -2
- package/src/annotations/editorannotations.d.ts +8 -4
- package/src/annotations/editorannotations.js +2 -2
- package/src/annotations/inlineannotations.d.ts +10 -6
- package/src/annotations/inlineannotations.js +2 -2
- package/src/annotations/narrowsidebar.d.ts +10 -6
- package/src/annotations/narrowsidebar.js +2 -2
- package/src/annotations/sidebar.d.ts +9 -5
- package/src/annotations/sidebar.js +2 -2
- package/src/annotations/view/annotationcounterbuttonview.d.ts +6 -2
- package/src/annotations/view/annotationcounterbuttonview.js +2 -2
- package/src/annotations/view/annotationview.d.ts +6 -2
- package/src/annotations/view/annotationview.js +2 -2
- package/src/annotations/view/sidebaritemview.d.ts +6 -2
- package/src/annotations/view/sidebaritemview.js +2 -2
- package/src/annotations/view/sidebarview.d.ts +6 -2
- package/src/annotations/view/sidebarview.js +2 -2
- package/src/annotations/widesidebar.d.ts +9 -5
- package/src/annotations/widesidebar.js +2 -2
- package/src/augmentation.d.ts +5 -1
- package/src/augmentation.js +1 -1
- package/src/comments/addcommentthreadcommand.d.ts +5 -1
- package/src/comments/addcommentthreadcommand.js +2 -2
- package/src/comments/commentsarchive.d.ts +8 -4
- package/src/comments/commentsarchive.js +2 -2
- package/src/comments/commentsarchiveui.d.ts +9 -5
- package/src/comments/commentsarchiveui.js +2 -2
- package/src/comments/commentsediting.d.ts +10 -6
- package/src/comments/commentsediting.js +2 -2
- package/src/comments/commentsrepository.d.ts +30 -13
- package/src/comments/commentsrepository.js +2 -2
- package/src/comments/commentsui.d.ts +9 -5
- package/src/comments/commentsui.js +2 -2
- package/src/comments/integrations/commentsrestrictededitingmode.d.ts +5 -1
- package/src/comments/integrations/commentsrestrictededitingmode.js +2 -2
- package/src/comments/integrations/importword.d.ts +5 -1
- package/src/comments/integrations/importword.js +2 -2
- package/src/comments/ui/commenteditor/commenteditor.d.ts +9 -5
- package/src/comments/ui/commenteditor/commenteditor.js +2 -2
- package/src/comments/ui/commenteditor/commenteditorui.d.ts +7 -3
- package/src/comments/ui/commenteditor/commenteditorui.js +2 -2
- package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +7 -3
- package/src/comments/ui/commenteditor/commenteditoruiview.js +2 -2
- package/src/comments/ui/commentthreadcontroller.d.ts +6 -6
- package/src/comments/ui/commentthreadcontroller.js +2 -2
- package/src/comments/ui/view/basecommentthreadview.d.ts +12 -8
- package/src/comments/ui/view/basecommentthreadview.js +2 -2
- package/src/comments/ui/view/basecommentview.d.ts +8 -4
- package/src/comments/ui/view/basecommentview.js +2 -2
- package/src/comments/ui/view/collapsedcommentsview.d.ts +6 -2
- package/src/comments/ui/view/collapsedcommentsview.js +2 -2
- package/src/comments/ui/view/commentcontentview.d.ts +6 -2
- package/src/comments/ui/view/commentcontentview.js +2 -2
- package/src/comments/ui/view/commentinputview.d.ts +8 -4
- package/src/comments/ui/view/commentinputview.js +2 -2
- package/src/comments/ui/view/commentsarchiveview.d.ts +7 -3
- package/src/comments/ui/view/commentsarchiveview.js +2 -2
- package/src/comments/ui/view/commentslistview.d.ts +9 -5
- package/src/comments/ui/view/commentslistview.js +2 -2
- package/src/comments/ui/view/commentthreadheaderview.d.ts +7 -3
- package/src/comments/ui/view/commentthreadheaderview.js +2 -2
- package/src/comments/ui/view/commentthreadinputview.d.ts +9 -5
- package/src/comments/ui/view/commentthreadinputview.js +2 -2
- package/src/comments/ui/view/commentthreadview.d.ts +11 -7
- package/src/comments/ui/view/commentthreadview.js +2 -2
- package/src/comments/ui/view/commentview.d.ts +12 -8
- package/src/comments/ui/view/commentview.js +2 -2
- package/src/comments.d.ts +14 -10
- package/src/comments.js +2 -2
- package/src/commentsonly.d.ts +6 -2
- package/src/commentsonly.js +2 -2
- package/src/config.d.ts +11 -7
- package/src/config.js +1 -1
- package/src/index.d.ts +24 -21
- package/src/index.js +2 -2
- package/src/utils/common-translations.d.ts +5 -1
- package/src/utils/common-translations.js +2 -2
- package/src/utils/createmutationobserver.d.ts +2 -1
- package/src/utils/createmutationobserver.js +2 -2
|
@@ -1,17 +1,21 @@
|
|
|
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
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module comments/comments/commentsrepository
|
|
3
7
|
* @publicApi
|
|
4
8
|
*/
|
|
5
|
-
import { Context, PendingActions, ContextPlugin, Editor } from 'ckeditor5/src/core
|
|
6
|
-
import { Collection } from 'ckeditor5/src/utils
|
|
7
|
-
import { Users, type User } from 'ckeditor5-collaboration';
|
|
8
|
-
import CommentThreadController from './ui/commentthreadcontroller
|
|
9
|
+
import { Context, PendingActions, ContextPlugin, Editor } from 'ckeditor5/src/core';
|
|
10
|
+
import { Collection } from 'ckeditor5/src/utils';
|
|
11
|
+
import { Users, type User } from 'ckeditor5-collaboration/src/collaboration-core';
|
|
12
|
+
import CommentThreadController from './ui/commentthreadcontroller';
|
|
9
13
|
import '../../theme/comment.css';
|
|
10
14
|
import '../../theme/commentthread.css';
|
|
11
15
|
import '../../theme/commentinput.css';
|
|
12
|
-
import Annotation, { type AnnotationTarget } from '../annotations/annotation
|
|
13
|
-
import Annotations from '../annotations/annotations
|
|
14
|
-
import type BaseCommentThreadView from './ui/view/basecommentthreadview
|
|
16
|
+
import Annotation, { type AnnotationTarget } from '../annotations/annotation';
|
|
17
|
+
import Annotations from '../annotations/annotations';
|
|
18
|
+
import type BaseCommentThreadView from './ui/view/basecommentthreadview';
|
|
15
19
|
/**
|
|
16
20
|
* Stores the list of {@link module:comments/comments/commentsrepository~CommentThread}
|
|
17
21
|
* and provides event-driven API for managing them. It is also responsible for using the comments adapter
|
|
@@ -245,11 +249,11 @@ interface CommentPermissionsConfig {
|
|
|
245
249
|
*/
|
|
246
250
|
admin: boolean;
|
|
247
251
|
/**
|
|
248
|
-
* Allows for editing and removing any comments created by
|
|
252
|
+
* Allows for editing and removing any comments created by other users.
|
|
249
253
|
*/
|
|
250
254
|
modifyAll: boolean;
|
|
251
255
|
/**
|
|
252
|
-
* Allows for editing and removing comments created by this user.
|
|
256
|
+
* Allows for adding new comments as well as editing and removing comments created by this user.
|
|
253
257
|
*/
|
|
254
258
|
write: boolean;
|
|
255
259
|
/**
|
|
@@ -258,8 +262,8 @@ interface CommentPermissionsConfig {
|
|
|
258
262
|
resolve: boolean;
|
|
259
263
|
}
|
|
260
264
|
declare const CommentThread_base: {
|
|
261
|
-
new (): import("ckeditor5/src/utils
|
|
262
|
-
prototype: import("ckeditor5/src/utils
|
|
265
|
+
new (): import("ckeditor5/src/utils").Observable;
|
|
266
|
+
prototype: import("ckeditor5/src/utils").Observable;
|
|
263
267
|
};
|
|
264
268
|
/**
|
|
265
269
|
* Comment thread representation.
|
|
@@ -278,6 +282,12 @@ export declare class CommentThread extends CommentThread_base {
|
|
|
278
282
|
* @observable
|
|
279
283
|
*/
|
|
280
284
|
isRemovable: boolean;
|
|
285
|
+
/**
|
|
286
|
+
* Informs if a user has permission to add a new comment to the comment thread.
|
|
287
|
+
*
|
|
288
|
+
* @observable
|
|
289
|
+
*/
|
|
290
|
+
canComment: boolean;
|
|
281
291
|
/**
|
|
282
292
|
* User id which resolved the comment thread.
|
|
283
293
|
*
|
|
@@ -290,6 +300,12 @@ export declare class CommentThread extends CommentThread_base {
|
|
|
290
300
|
* @observable
|
|
291
301
|
*/
|
|
292
302
|
resolvedAt: Date | null;
|
|
303
|
+
/**
|
|
304
|
+
* Date when the comment thread has been removed.
|
|
305
|
+
*
|
|
306
|
+
* @observable
|
|
307
|
+
*/
|
|
308
|
+
deletedAt: Date | null;
|
|
293
309
|
/**
|
|
294
310
|
* Informs if the comment thread is resolved.
|
|
295
311
|
*
|
|
@@ -323,6 +339,7 @@ export declare class CommentThread extends CommentThread_base {
|
|
|
323
339
|
attributes: Record<string, unknown>;
|
|
324
340
|
resolvedAt: Date | null;
|
|
325
341
|
resolvedBy: User | null;
|
|
342
|
+
deletedAt: Date | null;
|
|
326
343
|
isResolvable: boolean;
|
|
327
344
|
isSubmitted: boolean;
|
|
328
345
|
});
|
|
@@ -448,8 +465,8 @@ export declare class CommentThread extends CommentThread_base {
|
|
|
448
465
|
toJSON(): CommentThreadDataJSON;
|
|
449
466
|
}
|
|
450
467
|
declare const Comment_base: {
|
|
451
|
-
new (): import("ckeditor5/src/utils
|
|
452
|
-
prototype: import("ckeditor5/src/utils
|
|
468
|
+
new (): import("ckeditor5/src/utils").Observable;
|
|
469
|
+
prototype: import("ckeditor5/src/utils").Observable;
|
|
453
470
|
};
|
|
454
471
|
/**
|
|
455
472
|
* Single comment representation. A part of a {@link module:comments/comments/commentsrepository~CommentThread commentThread}.
|