@ckeditor/ckeditor5-comments 48.2.0-alpha.7 → 48.3.0-alpha.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/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/augmentation.d.ts
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import type { CommentsConfig, AnnotationsSidebarConfig, Annotations, AnnotationsUIs, EditorAnnotations, InlineAnnotations, WideSidebar, NarrowSidebar, Comments, CommentsRepository, CommentsUI, CommentsOnly, CommentsArchive, CommentsArchiveUI } from
|
|
6
|
-
declare module
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
-
|
|
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
|
+
import type { CommentsConfig, AnnotationsSidebarConfig, Annotations, AnnotationsUIs, EditorAnnotations, InlineAnnotations, WideSidebar, NarrowSidebar, Comments, CommentsRepository, CommentsUI, CommentsOnly, CommentsArchive, CommentsArchiveUI } from "./index.js";
|
|
6
|
+
declare module "@ckeditor/ckeditor5-core" {
|
|
7
|
+
interface EditorConfig {
|
|
8
|
+
/**
|
|
9
|
+
* The configuration of the comments feature.
|
|
10
|
+
* Introduced by the {@link module:comments/comments~Comments} feature.
|
|
11
|
+
*
|
|
12
|
+
* Read more in {@link module:comments/config~CommentsConfig}.
|
|
13
|
+
*
|
|
14
|
+
* ```ts
|
|
15
|
+
* ClassicEditor
|
|
16
|
+
* .create( {
|
|
17
|
+
* comments: ... // Locale editor configuration.
|
|
18
|
+
* } )
|
|
19
|
+
* .then( ... )
|
|
20
|
+
* .catch( ... );
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
|
|
24
|
+
*/
|
|
25
|
+
comments?: CommentsConfig;
|
|
26
|
+
/**
|
|
27
|
+
* The configuration of the sidebar feature.
|
|
28
|
+
* Introduced by the {@link module:comments/annotations/sidebar~Sidebar} feature.
|
|
29
|
+
*/
|
|
30
|
+
sidebar?: AnnotationsSidebarConfig;
|
|
31
|
+
/**
|
|
32
|
+
* Enables {@link module:comments/commentsonly~CommentsOnly comments-only mode} when the editor initializes.
|
|
33
|
+
*
|
|
34
|
+
* ```ts
|
|
35
|
+
* ClassicEditor
|
|
36
|
+
* .create( {
|
|
37
|
+
* commentsOnly: true
|
|
38
|
+
* } )
|
|
39
|
+
* .then( ... )
|
|
40
|
+
* .catch( ... );
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
commentsOnly?: boolean;
|
|
44
|
+
}
|
|
45
|
+
interface PluginsMap {
|
|
46
|
+
[Annotations.pluginName]: Annotations;
|
|
47
|
+
[AnnotationsUIs.pluginName]: AnnotationsUIs;
|
|
48
|
+
[EditorAnnotations.pluginName]: EditorAnnotations;
|
|
49
|
+
[InlineAnnotations.pluginName]: InlineAnnotations;
|
|
50
|
+
[WideSidebar.pluginName]: WideSidebar;
|
|
51
|
+
[NarrowSidebar.pluginName]: NarrowSidebar;
|
|
52
|
+
[Comments.pluginName]: Comments;
|
|
53
|
+
[CommentsRepository.pluginName]: CommentsRepository;
|
|
54
|
+
[CommentsUI.pluginName]: CommentsUI;
|
|
55
|
+
[CommentsOnly.pluginName]: CommentsOnly;
|
|
56
|
+
[CommentsArchive.pluginName]: CommentsArchive;
|
|
57
|
+
[CommentsArchiveUI.pluginName]: CommentsArchiveUI;
|
|
58
|
+
}
|
|
59
59
|
}
|
|
@@ -1,74 +1,74 @@
|
|
|
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 { Command, type Editor } from
|
|
10
|
-
import type { ModelRange } from
|
|
6
|
+
* @module comments/comments/addcommentthreadcommand
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Command, type Editor } from "@ckeditor/ckeditor5-core";
|
|
10
|
+
import type { ModelRange } from "@ckeditor/ckeditor5-engine";
|
|
11
11
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
12
|
+
* Adds a new comment marker, what also automatically adds a corresponding {@link module:comments/comments/commentsrepository~CommentThread}
|
|
13
|
+
* in {@link module:comments/comments/commentsrepository~CommentsRepository}.
|
|
14
|
+
*
|
|
15
|
+
* By default, this command creates an empty comment thread on content selected in the editor.
|
|
16
|
+
* The related marker is "local only", is not managed using operations, and it does not affect editor data.
|
|
17
|
+
* The user is expected to write and submit the first comment. When first comment is submitted, the marker is changed to use operations,
|
|
18
|
+
* which means that it is saved in data, and is propagated to other users in real-time-collaboration. This happens outside of this command.
|
|
19
|
+
*
|
|
20
|
+
* You can specify custom ranges by passing the `ranges` option to create the comment thread on specified content
|
|
21
|
+
* instead of the current selection.
|
|
22
|
+
*
|
|
23
|
+
* You can provide content for the first comment using the `comment` option. Then, the created thread will contain this initial comment.
|
|
24
|
+
* The thread will be automatically submitted, and the related marker will be propagated to other users and will affect editor data.
|
|
25
|
+
*
|
|
26
|
+
* Usage:
|
|
27
|
+
* ```ts
|
|
28
|
+
* // Create a draft comment thread on the current selection.
|
|
29
|
+
* // If `threadId` is not specified, `addCommentThread()` will generate a unique ID and use it:
|
|
30
|
+
* editor.execute( 'addCommentThread' );
|
|
31
|
+
*
|
|
32
|
+
* // Create a draft comment thread on custom ranges:
|
|
33
|
+
* editor.execute( 'addCommentThread', { ranges: [ myRange1, myRange2 ] } );
|
|
34
|
+
*
|
|
35
|
+
* // Create a public comment thread with an initial comment:
|
|
36
|
+
* editor.execute( 'addCommentThread', { comment: 'Initial comment text' } );
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* A comment thread can be added only on ranges that contain content. If the current document selection, or passed ranges
|
|
40
|
+
* do not contain any content, the command will throw an error.
|
|
41
|
+
*
|
|
42
|
+
* You can use {@link #hasContent} observable property to check whether the current selection has any content.
|
|
43
|
+
*/
|
|
44
44
|
export declare class AddCommentThreadCommand extends Command {
|
|
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
|
-
|
|
45
|
+
/**
|
|
46
|
+
* Indicates whether the current selection contains content.
|
|
47
|
+
*
|
|
48
|
+
* @observable
|
|
49
|
+
*/
|
|
50
|
+
hasContent: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* @inheritDoc
|
|
53
|
+
*/
|
|
54
|
+
constructor(editor: Editor);
|
|
55
|
+
/**
|
|
56
|
+
* @inheritDoc
|
|
57
|
+
*/
|
|
58
|
+
override refresh(): void;
|
|
59
|
+
/**
|
|
60
|
+
* Executes the command to add a new comment thread.
|
|
61
|
+
*
|
|
62
|
+
* @fires execute
|
|
63
|
+
* @param options Options for executed command.
|
|
64
|
+
* @param options.threadId Id of comment marker that will be added. If not provided, a unique id will be generated.
|
|
65
|
+
* @param options.ranges Array of ranges to use instead of current selection. If not provided,
|
|
66
|
+
* the current selection will be used.
|
|
67
|
+
* @param options.comment Initial comment text. If provided, the created comment thread will contain this comment as its first entry.
|
|
68
|
+
*/
|
|
69
|
+
override execute({ threadId, ranges, comment }?: {
|
|
70
|
+
threadId?: string;
|
|
71
|
+
ranges?: Array<ModelRange>;
|
|
72
|
+
comment?: string;
|
|
73
|
+
}): void;
|
|
74
74
|
}
|
|
@@ -1,39 +1,39 @@
|
|
|
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 { ContextPlugin, type Context, type Editor } from
|
|
10
|
-
import { Collection } from
|
|
11
|
-
import { CommentsRepository, type CommentThread } from
|
|
12
|
-
import { Annotations } from
|
|
6
|
+
* @module comments/comments/commentsarchive
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { ContextPlugin, type Context, type Editor, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
10
|
+
import { Collection } from "@ckeditor/ckeditor5-utils";
|
|
11
|
+
import { CommentsRepository, type CommentThread } from "./commentsrepository.js";
|
|
12
|
+
import { Annotations } from "../annotations/annotations.js";
|
|
13
13
|
/**
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
* This plugin handles all operations on archived threads needed for the comments archive.
|
|
15
|
+
*/
|
|
16
16
|
export declare class CommentsArchive extends ContextPlugin {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
17
|
+
archivedThreads: Collection<CommentThread>;
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static get pluginName(): "CommentsArchive";
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static override get isOfficialPlugin(): true;
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
static override get isPremiumPlugin(): true;
|
|
30
|
+
/**
|
|
31
|
+
* @inheritDoc
|
|
32
|
+
*/
|
|
33
|
+
static get requires(): PluginDependenciesOf<[CommentsRepository, Annotations]>;
|
|
34
|
+
constructor(context: Context | Editor);
|
|
35
|
+
/**
|
|
36
|
+
* @inheritDoc
|
|
37
|
+
*/
|
|
38
|
+
init(): void;
|
|
39
39
|
}
|
|
@@ -1,53 +1,53 @@
|
|
|
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
|
|
10
|
-
import { Plugin, type Editor } from
|
|
11
|
-
import { ViewCollection, Dialog } from
|
|
12
|
-
import { CommentsArchiveView } from
|
|
13
|
-
import { CommentsArchive } from
|
|
14
|
-
import { type AnnotationView } from
|
|
6
|
+
* @module comments/comments/commentsarchiveui
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import "../../theme/commentsarchive.css";
|
|
10
|
+
import { Plugin, type Editor, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
11
|
+
import { ViewCollection, Dialog } from "@ckeditor/ckeditor5-ui";
|
|
12
|
+
import { CommentsArchiveView } from "./ui/view/commentsarchiveview.js";
|
|
13
|
+
import { CommentsArchive } from "./commentsarchive.js";
|
|
14
|
+
import { type AnnotationView } from "../annotations/view/annotationview.js";
|
|
15
15
|
/**
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
* Creates comments archive {@link module:ui/dropdown/dropdownview~DropdownView ui dropdown} and binds with
|
|
17
|
+
* archived comment thread annotation views.
|
|
18
|
+
*/
|
|
19
19
|
export declare class CommentsArchiveUI extends Plugin {
|
|
20
|
-
|
|
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
|
-
|
|
20
|
+
/**
|
|
21
|
+
* The view that is rendered in the dialog.
|
|
22
|
+
*/
|
|
23
|
+
commentsArchiveView: CommentsArchiveView | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* The view collection of {@link module:comments/annotations/view/annotationview~AnnotationView}
|
|
26
|
+
* that is displayed inside {@link #commentsArchiveView}.
|
|
27
|
+
*/
|
|
28
|
+
annotationViews: ViewCollection<AnnotationView>;
|
|
29
|
+
/**
|
|
30
|
+
* @inheritDoc
|
|
31
|
+
*/
|
|
32
|
+
static get pluginName(): "CommentsArchiveUI";
|
|
33
|
+
/**
|
|
34
|
+
* @inheritDoc
|
|
35
|
+
*/
|
|
36
|
+
static override get isOfficialPlugin(): true;
|
|
37
|
+
/**
|
|
38
|
+
* @inheritDoc
|
|
39
|
+
*/
|
|
40
|
+
static override get isPremiumPlugin(): true;
|
|
41
|
+
/**
|
|
42
|
+
* @inheritDoc
|
|
43
|
+
*/
|
|
44
|
+
static get requires(): PluginDependenciesOf<[CommentsArchive, Dialog]>;
|
|
45
|
+
/**
|
|
46
|
+
* @inheritDoc
|
|
47
|
+
*/
|
|
48
|
+
constructor(editor: Editor);
|
|
49
|
+
/**
|
|
50
|
+
* @inheritDoc
|
|
51
|
+
*/
|
|
52
|
+
init(): void;
|
|
53
53
|
}
|
|
@@ -1,95 +1,95 @@
|
|
|
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 type { Marker } from
|
|
11
|
-
import { CommentsRepository } from
|
|
12
|
-
import { Users } from
|
|
13
|
-
import { EditorAnnotations } from
|
|
14
|
-
import { CommentsRestrictedEditingMode } from
|
|
15
|
-
import { CommentsImportWord } from
|
|
16
|
-
import { CommentsClipboard } from
|
|
17
|
-
import { ShowCommentHighlights } from
|
|
18
|
-
import
|
|
6
|
+
* @module comments/comments/commentsediting
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin, type Editor, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
10
|
+
import type { Marker } from "@ckeditor/ckeditor5-engine";
|
|
11
|
+
import { CommentsRepository } from "./commentsrepository.js";
|
|
12
|
+
import { Users } from "@ckeditor/ckeditor5-collaboration-core";
|
|
13
|
+
import { EditorAnnotations } from "../annotations/editorannotations.js";
|
|
14
|
+
import { CommentsRestrictedEditingMode } from "./integrations/commentsrestrictededitingmode.js";
|
|
15
|
+
import { CommentsImportWord } from "./integrations/importword.js";
|
|
16
|
+
import { CommentsClipboard } from "./integrations/clipboard.js";
|
|
17
|
+
import { ShowCommentHighlights } from "./integrations/showcommenthighlights.js";
|
|
18
|
+
import "../../theme/commentmarker.css";
|
|
19
19
|
/**
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
* Plugin that keeps in sync comments in {@link module:comments/comments/commentsrepository~CommentsRepository} with
|
|
21
|
+
* {@link module:engine/model/markercollection~Marker comment markers}.
|
|
22
|
+
*/
|
|
23
23
|
export declare class CommentsEditing extends Plugin {
|
|
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
|
-
|
|
24
|
+
/**
|
|
25
|
+
* If set to `true`, the plugin won't load comment thread for the new marker immediately after the marker is added to the editor.
|
|
26
|
+
* Instead, the plugin will wait until the flag will be set to `false` and then load missing comments.
|
|
27
|
+
*
|
|
28
|
+
* It's useful to hold fetching comments from the server when comments are used with real-time collaboration.
|
|
29
|
+
* When a user connects to an existing document, the operations from the history need to be applied one by one.
|
|
30
|
+
* An operation which added a new comment marker might be followed by an operation which removes that marker, so it's not
|
|
31
|
+
* necessary to make an additional request then.
|
|
32
|
+
*
|
|
33
|
+
* @observable
|
|
34
|
+
*/
|
|
35
|
+
isThreadsLoadingPaused: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Name of the active comment marker.
|
|
38
|
+
*
|
|
39
|
+
* Markers conversion checks if comment should be marked as active and adds/removes additional css class during the conversion.
|
|
40
|
+
*
|
|
41
|
+
* @observable
|
|
42
|
+
*/
|
|
43
|
+
activeMarker: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* @inheritDoc
|
|
46
|
+
*/
|
|
47
|
+
static get requires(): PluginDependenciesOf<[CommentsRepository, EditorAnnotations, Users, CommentsRestrictedEditingMode, CommentsImportWord, CommentsClipboard, ShowCommentHighlights]>;
|
|
48
|
+
/**
|
|
49
|
+
* @inheritDoc
|
|
50
|
+
*/
|
|
51
|
+
static get pluginName(): "CommentsEditing";
|
|
52
|
+
/**
|
|
53
|
+
* @inheritDoc
|
|
54
|
+
*/
|
|
55
|
+
static override get isOfficialPlugin(): true;
|
|
56
|
+
/**
|
|
57
|
+
* @inheritDoc
|
|
58
|
+
*/
|
|
59
|
+
static override get isPremiumPlugin(): true;
|
|
60
|
+
/**
|
|
61
|
+
* @inheritDoc
|
|
62
|
+
*/
|
|
63
|
+
constructor(editor: Editor);
|
|
64
|
+
/**
|
|
65
|
+
* @inheritDoc
|
|
66
|
+
*/
|
|
67
|
+
init(): void;
|
|
68
|
+
/**
|
|
69
|
+
* @inheritDoc
|
|
70
|
+
*/
|
|
71
|
+
afterInit(): void;
|
|
72
|
+
/**
|
|
73
|
+
* @inheritDoc
|
|
74
|
+
*/
|
|
75
|
+
override destroy(): void;
|
|
76
|
+
/**
|
|
77
|
+
* Returns `true` if there is at least one marker in the content that is related to a comment thread with given `threadId`.
|
|
78
|
+
*
|
|
79
|
+
* @param threadId Comment thread id.
|
|
80
|
+
*/
|
|
81
|
+
hasMarkerForId(threadId: string): boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Returns all markers that are related to the comment thread with the given `threadId`.
|
|
84
|
+
*
|
|
85
|
+
* @param threadId Comment thread id.
|
|
86
|
+
* @returns Array with all markers related to given comment thread.
|
|
87
|
+
*/
|
|
88
|
+
getAllMarkersForId(threadId: string): Array<Marker>;
|
|
89
|
+
/**
|
|
90
|
+
* Scrolls editing view to the first thread marker.
|
|
91
|
+
*
|
|
92
|
+
* @param threadId Comment thread id.
|
|
93
|
+
*/
|
|
94
|
+
scrollToThreadMarker(threadId: string): void;
|
|
95
95
|
}
|