@ckeditor/ckeditor5-comments 48.2.0 → 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.
Files changed (195) hide show
  1. package/dist/annotations/annotation.d.ts +84 -87
  2. package/dist/annotations/annotationcollection.d.ts +83 -83
  3. package/dist/annotations/annotations.d.ts +148 -148
  4. package/dist/annotations/annotationsuis.d.ts +235 -235
  5. package/dist/annotations/editorannotations.d.ts +71 -71
  6. package/dist/annotations/inlineannotations.d.ts +93 -93
  7. package/dist/annotations/narrowsidebar.d.ts +88 -88
  8. package/dist/annotations/sidebar.d.ts +105 -105
  9. package/dist/annotations/view/annotationcounterbuttonview.d.ts +24 -24
  10. package/dist/annotations/view/annotationview.d.ts +83 -83
  11. package/dist/annotations/view/sidebaritemview.d.ts +54 -54
  12. package/dist/annotations/view/sidebarview.d.ts +48 -48
  13. package/dist/annotations/widesidebar.d.ts +80 -80
  14. package/dist/augmentation.d.ts +57 -57
  15. package/dist/comments/addcommentthreadcommand.d.ts +69 -69
  16. package/dist/comments/commentsarchive.d.ts +34 -34
  17. package/dist/comments/commentsarchiveui.d.ts +48 -48
  18. package/dist/comments/commentsediting.d.ts +90 -90
  19. package/dist/comments/commentsrepository.d.ts +1042 -1054
  20. package/dist/comments/commentsui.d.ts +40 -40
  21. package/dist/comments/integrations/clipboard.d.ts +21 -21
  22. package/dist/comments/integrations/commentsrestrictededitingmode.d.ts +12 -12
  23. package/dist/comments/integrations/importword.d.ts +16 -16
  24. package/dist/comments/integrations/showcommenthighlights.d.ts +14 -14
  25. package/dist/comments/ui/commenteditor/commenteditor.d.ts +33 -32
  26. package/dist/comments/ui/commenteditor/commenteditorui.d.ts +27 -27
  27. package/dist/comments/ui/commenteditor/commenteditoruiview.d.ts +32 -32
  28. package/dist/comments/ui/commentthreadcontroller.d.ts +62 -60
  29. package/dist/comments/ui/view/basecommentthreadview.d.ts +134 -134
  30. package/dist/comments/ui/view/basecommentview.d.ts +136 -136
  31. package/dist/comments/ui/view/collapsedcommentsview.d.ts +9 -9
  32. package/dist/comments/ui/view/commentcontentview.d.ts +10 -10
  33. package/dist/comments/ui/view/commentinputview.d.ts +93 -93
  34. package/dist/comments/ui/view/commentsarchiveview.d.ts +41 -41
  35. package/dist/comments/ui/view/commentslistview.d.ts +107 -107
  36. package/dist/comments/ui/view/commentthreadheadercontextview.d.ts +19 -19
  37. package/dist/comments/ui/view/commentthreadheaderview.d.ts +67 -67
  38. package/dist/comments/ui/view/commentthreadinputview.d.ts +51 -51
  39. package/dist/comments/ui/view/commentthreadview.d.ts +116 -116
  40. package/dist/comments/ui/view/commentview.d.ts +225 -230
  41. package/dist/comments.d.ts +38 -38
  42. package/dist/commentsonly.d.ts +36 -36
  43. package/dist/config.d.ts +186 -186
  44. package/dist/index.d.ts +35 -35
  45. package/dist/index.js +11 -11
  46. package/dist/translations/af.js +1 -1
  47. package/dist/translations/af.umd.js +1 -1
  48. package/dist/translations/ar.js +1 -1
  49. package/dist/translations/ar.umd.js +1 -1
  50. package/dist/translations/ast.js +1 -1
  51. package/dist/translations/ast.umd.js +1 -1
  52. package/dist/translations/az.js +1 -1
  53. package/dist/translations/az.umd.js +1 -1
  54. package/dist/translations/be.js +1 -1
  55. package/dist/translations/be.umd.js +1 -1
  56. package/dist/translations/bg.js +1 -1
  57. package/dist/translations/bg.umd.js +1 -1
  58. package/dist/translations/bn.js +1 -1
  59. package/dist/translations/bn.umd.js +1 -1
  60. package/dist/translations/bs.js +1 -1
  61. package/dist/translations/bs.umd.js +1 -1
  62. package/dist/translations/ca.js +1 -1
  63. package/dist/translations/ca.umd.js +1 -1
  64. package/dist/translations/cs.js +1 -1
  65. package/dist/translations/cs.umd.js +1 -1
  66. package/dist/translations/da.js +1 -1
  67. package/dist/translations/da.umd.js +1 -1
  68. package/dist/translations/de-ch.js +1 -1
  69. package/dist/translations/de-ch.umd.js +1 -1
  70. package/dist/translations/de.js +1 -1
  71. package/dist/translations/de.umd.js +1 -1
  72. package/dist/translations/el.js +1 -1
  73. package/dist/translations/el.umd.js +1 -1
  74. package/dist/translations/en-au.js +1 -1
  75. package/dist/translations/en-au.umd.js +1 -1
  76. package/dist/translations/en-gb.js +1 -1
  77. package/dist/translations/en-gb.umd.js +1 -1
  78. package/dist/translations/en.js +1 -1
  79. package/dist/translations/en.umd.js +1 -1
  80. package/dist/translations/eo.js +1 -1
  81. package/dist/translations/eo.umd.js +1 -1
  82. package/dist/translations/es-co.js +1 -1
  83. package/dist/translations/es-co.umd.js +1 -1
  84. package/dist/translations/es.js +1 -1
  85. package/dist/translations/es.umd.js +1 -1
  86. package/dist/translations/et.js +1 -1
  87. package/dist/translations/et.umd.js +1 -1
  88. package/dist/translations/eu.js +1 -1
  89. package/dist/translations/eu.umd.js +1 -1
  90. package/dist/translations/fa.js +1 -1
  91. package/dist/translations/fa.umd.js +1 -1
  92. package/dist/translations/fi.js +1 -1
  93. package/dist/translations/fi.umd.js +1 -1
  94. package/dist/translations/fr.js +1 -1
  95. package/dist/translations/fr.umd.js +1 -1
  96. package/dist/translations/gl.js +1 -1
  97. package/dist/translations/gl.umd.js +1 -1
  98. package/dist/translations/gu.js +1 -1
  99. package/dist/translations/gu.umd.js +1 -1
  100. package/dist/translations/he.js +1 -1
  101. package/dist/translations/he.umd.js +1 -1
  102. package/dist/translations/hi.js +1 -1
  103. package/dist/translations/hi.umd.js +1 -1
  104. package/dist/translations/hr.js +1 -1
  105. package/dist/translations/hr.umd.js +1 -1
  106. package/dist/translations/hu.js +1 -1
  107. package/dist/translations/hu.umd.js +1 -1
  108. package/dist/translations/hy.js +1 -1
  109. package/dist/translations/hy.umd.js +1 -1
  110. package/dist/translations/id.js +1 -1
  111. package/dist/translations/id.umd.js +1 -1
  112. package/dist/translations/it.js +1 -1
  113. package/dist/translations/it.umd.js +1 -1
  114. package/dist/translations/ja.js +1 -1
  115. package/dist/translations/ja.umd.js +1 -1
  116. package/dist/translations/jv.js +1 -1
  117. package/dist/translations/jv.umd.js +1 -1
  118. package/dist/translations/kk.js +1 -1
  119. package/dist/translations/kk.umd.js +1 -1
  120. package/dist/translations/km.js +1 -1
  121. package/dist/translations/km.umd.js +1 -1
  122. package/dist/translations/kn.js +1 -1
  123. package/dist/translations/kn.umd.js +1 -1
  124. package/dist/translations/ko.js +1 -1
  125. package/dist/translations/ko.umd.js +1 -1
  126. package/dist/translations/ku.js +1 -1
  127. package/dist/translations/ku.umd.js +1 -1
  128. package/dist/translations/lt.js +1 -1
  129. package/dist/translations/lt.umd.js +1 -1
  130. package/dist/translations/lv.js +1 -1
  131. package/dist/translations/lv.umd.js +1 -1
  132. package/dist/translations/ms.js +1 -1
  133. package/dist/translations/ms.umd.js +1 -1
  134. package/dist/translations/nb.js +1 -1
  135. package/dist/translations/nb.umd.js +1 -1
  136. package/dist/translations/ne.js +1 -1
  137. package/dist/translations/ne.umd.js +1 -1
  138. package/dist/translations/nl.js +1 -1
  139. package/dist/translations/nl.umd.js +1 -1
  140. package/dist/translations/no.js +1 -1
  141. package/dist/translations/no.umd.js +1 -1
  142. package/dist/translations/oc.js +1 -1
  143. package/dist/translations/oc.umd.js +1 -1
  144. package/dist/translations/pl.js +1 -1
  145. package/dist/translations/pl.umd.js +1 -1
  146. package/dist/translations/pt-br.js +1 -1
  147. package/dist/translations/pt-br.umd.js +1 -1
  148. package/dist/translations/pt.js +1 -1
  149. package/dist/translations/pt.umd.js +1 -1
  150. package/dist/translations/ro.js +1 -1
  151. package/dist/translations/ro.umd.js +1 -1
  152. package/dist/translations/ru.js +1 -1
  153. package/dist/translations/ru.umd.js +1 -1
  154. package/dist/translations/si.js +1 -1
  155. package/dist/translations/si.umd.js +1 -1
  156. package/dist/translations/sk.js +1 -1
  157. package/dist/translations/sk.umd.js +1 -1
  158. package/dist/translations/sl.js +1 -1
  159. package/dist/translations/sl.umd.js +1 -1
  160. package/dist/translations/sq.js +1 -1
  161. package/dist/translations/sq.umd.js +1 -1
  162. package/dist/translations/sr-latn.js +1 -1
  163. package/dist/translations/sr-latn.umd.js +1 -1
  164. package/dist/translations/sr.js +1 -1
  165. package/dist/translations/sr.umd.js +1 -1
  166. package/dist/translations/sv.js +1 -1
  167. package/dist/translations/sv.umd.js +1 -1
  168. package/dist/translations/th.js +1 -1
  169. package/dist/translations/th.umd.js +1 -1
  170. package/dist/translations/ti.js +1 -1
  171. package/dist/translations/ti.umd.js +1 -1
  172. package/dist/translations/tk.js +1 -1
  173. package/dist/translations/tk.umd.js +1 -1
  174. package/dist/translations/tr.js +1 -1
  175. package/dist/translations/tr.umd.js +1 -1
  176. package/dist/translations/tt.js +1 -1
  177. package/dist/translations/tt.umd.js +1 -1
  178. package/dist/translations/ug.js +1 -1
  179. package/dist/translations/ug.umd.js +1 -1
  180. package/dist/translations/uk.js +1 -1
  181. package/dist/translations/uk.umd.js +1 -1
  182. package/dist/translations/ur.js +1 -1
  183. package/dist/translations/ur.umd.js +1 -1
  184. package/dist/translations/uz.js +1 -1
  185. package/dist/translations/uz.umd.js +1 -1
  186. package/dist/translations/vi.js +1 -1
  187. package/dist/translations/vi.umd.js +1 -1
  188. package/dist/translations/zh-cn.js +1 -1
  189. package/dist/translations/zh-cn.umd.js +1 -1
  190. package/dist/translations/zh.js +1 -1
  191. package/dist/translations/zh.umd.js +1 -1
  192. package/dist/utils/common-translations.d.ts +6 -6
  193. package/dist/utils/createmutationobserver.d.ts +9 -9
  194. package/dist/utils/splitmarkername.d.ts +10 -10
  195. package/package.json +16 -16
@@ -1,45 +1,45 @@
1
1
  /**
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
- */
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
- * @module comments/comments/commentsui
7
- */
8
- import { Plugin } from '@ckeditor/ckeditor5-core';
9
- import { CommentsRepository } from './commentsrepository.js';
10
- import { CommentsEditing } from './commentsediting.js';
11
- import { EditorAnnotations } from '../annotations/editorannotations.js';
12
- import { Annotations } from '../annotations/annotations.js';
6
+ * @module comments/comments/commentsui
7
+ */
8
+ import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
9
+ import { CommentsRepository } from "./commentsrepository.js";
10
+ import { CommentsEditing } from "./commentsediting.js";
11
+ import { EditorAnnotations } from "../annotations/editorannotations.js";
12
+ import { Annotations } from "../annotations/annotations.js";
13
13
  /**
14
- * Creates `comment` {@link module:ui/button/buttonview~ButtonView ui button} and binds with
15
- * {@link module:comments/comments/addcommentthreadcommand~AddCommentThreadCommand}.
16
- *
17
- * Because of CommentsRepository handles UI of CommentThreads responsibility of this plugin is limited to
18
- * adjusting comments UX for the editor purpose.
19
- */
14
+ * Creates `comment` {@link module:ui/button/buttonview~ButtonView ui button} and binds with
15
+ * {@link module:comments/comments/addcommentthreadcommand~AddCommentThreadCommand}.
16
+ *
17
+ * Because of CommentsRepository handles UI of CommentThreads responsibility of this plugin is limited to
18
+ * adjusting comments UX for the editor purpose.
19
+ */
20
20
  export declare class CommentsUI extends Plugin {
21
- /**
22
- * @inheritDoc
23
- */
24
- static get pluginName(): "CommentsUI";
25
- /**
26
- * @inheritDoc
27
- */
28
- static get isOfficialPlugin(): true;
29
- /**
30
- * @inheritDoc
31
- */
32
- static get isPremiumPlugin(): true;
33
- /**
34
- * @inheritDoc
35
- */
36
- static get requires(): readonly [typeof CommentsRepository, typeof CommentsEditing, typeof EditorAnnotations, typeof Annotations];
37
- /**
38
- * @inheritDoc
39
- */
40
- init(): void;
41
- /**
42
- * @inheritDoc
43
- */
44
- destroy(): void;
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ static get pluginName(): "CommentsUI";
25
+ /**
26
+ * @inheritDoc
27
+ */
28
+ static override get isOfficialPlugin(): true;
29
+ /**
30
+ * @inheritDoc
31
+ */
32
+ static override get isPremiumPlugin(): true;
33
+ /**
34
+ * @inheritDoc
35
+ */
36
+ static get requires(): PluginDependenciesOf<[CommentsRepository, CommentsEditing, EditorAnnotations, Annotations]>;
37
+ /**
38
+ * @inheritDoc
39
+ */
40
+ init(): void;
41
+ /**
42
+ * @inheritDoc
43
+ */
44
+ override destroy(): void;
45
45
  }
@@ -1,26 +1,26 @@
1
1
  /**
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
- */
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
- * @module comments/comments/integrations/clipboard
7
- */
8
- import { Plugin, type Editor } from '@ckeditor/ckeditor5-core';
9
- import { ClipboardPipeline, ClipboardMarkersUtils } from '@ckeditor/ckeditor5-clipboard';
6
+ * @module comments/comments/integrations/clipboard
7
+ */
8
+ import { Plugin, type Editor, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
9
+ import { ClipboardPipeline, ClipboardMarkersUtils } from "@ckeditor/ckeditor5-clipboard";
10
10
  /**
11
- * Provides comments plugin integration for the clipboard feature.
12
- */
11
+ * Provides comments plugin integration for the clipboard feature.
12
+ */
13
13
  export declare class CommentsClipboard extends Plugin {
14
- /**
15
- * @inheritDoc
16
- */
17
- constructor(editor: Editor);
18
- /**
19
- * @inheritDoc
20
- */
21
- static get requires(): readonly [typeof ClipboardMarkersUtils, typeof ClipboardPipeline];
22
- /**
23
- * @inheritDoc
24
- */
25
- afterInit(): void;
14
+ /**
15
+ * @inheritDoc
16
+ */
17
+ constructor(editor: Editor);
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ static get requires(): PluginDependenciesOf<[ClipboardMarkersUtils, ClipboardPipeline]>;
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ afterInit(): void;
26
26
  }
@@ -1,17 +1,17 @@
1
1
  /**
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
- */
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
- * @module comments/comments/integrations/commentsrestrictededitingmode
7
- */
8
- import { Plugin } from '@ckeditor/ckeditor5-core';
6
+ * @module comments/comments/integrations/commentsrestrictededitingmode
7
+ */
8
+ import { Plugin } from "@ckeditor/ckeditor5-core";
9
9
  /**
10
- * Provides comments plugin integration for restricted editing mode feature from restricted editing package.
11
- */
10
+ * Provides comments plugin integration for restricted editing mode feature from restricted editing package.
11
+ */
12
12
  export declare class CommentsRestrictedEditingMode extends Plugin {
13
- /**
14
- * @inheritDoc
15
- */
16
- afterInit(): void;
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ afterInit(): void;
17
17
  }
@@ -1,21 +1,21 @@
1
1
  /**
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
- */
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
- * @module comments/comments/integrations/importword
7
- */
8
- import { Plugin, type Editor } from '@ckeditor/ckeditor5-core';
6
+ * @module comments/comments/integrations/importword
7
+ */
8
+ import { Plugin, type Editor } from "@ckeditor/ckeditor5-core";
9
9
  /**
10
- * Provides comments plugin integration for the import from Word feature.
11
- */
10
+ * Provides comments plugin integration for the import from Word feature.
11
+ */
12
12
  export declare class CommentsImportWord extends Plugin {
13
- /**
14
- * @inheritDoc
15
- */
16
- constructor(editor: Editor);
17
- /**
18
- * @inheritDoc
19
- */
20
- afterInit(): void;
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ constructor(editor: Editor);
17
+ /**
18
+ * @inheritDoc
19
+ */
20
+ afterInit(): void;
21
21
  }
@@ -1,19 +1,19 @@
1
1
  /**
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
- */
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
- * @module comments/comments/integrations/showcommenthighlights
7
- */
8
- import { Plugin } from '@ckeditor/ckeditor5-core';
6
+ * @module comments/comments/integrations/showcommenthighlights
7
+ */
8
+ import { Plugin } from "@ckeditor/ckeditor5-core";
9
9
  /**
10
- * Provides integrations for getting editor data with `showCommentHightlights` option enabled for the features that need it.
11
- * Some of them are similar or duplicates from the `showSuggestionHighlights` option handling in the track changes feature.
12
- * Unfortunately, for now there's no single place where they could be shared and reused, so both plugins have to add them separately.
13
- */
10
+ * Provides integrations for getting editor data with `showCommentHightlights` option enabled for the features that need it.
11
+ * Some of them are similar or duplicates from the `showSuggestionHighlights` option handling in the track changes feature.
12
+ * Unfortunately, for now there's no single place where they could be shared and reused, so both plugins have to add them separately.
13
+ */
14
14
  export declare class ShowCommentHighlights extends Plugin {
15
- /**
16
- * @inheritDoc
17
- */
18
- init(): void;
15
+ /**
16
+ * @inheritDoc
17
+ */
18
+ init(): void;
19
19
  }
@@ -1,36 +1,37 @@
1
1
  /**
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
- */
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
- * @module comments/comments/ui/commenteditor/commenteditor
7
- */
8
- import { Editor, type EditorConfig } from '@ckeditor/ckeditor5-core';
9
- import { CommentEditorUI } from './commenteditorui.js';
10
- import { type PlaceholderableViewElement } from '@ckeditor/ckeditor5-engine';
11
- declare const CommentEditor_base: import("@ckeditor/ckeditor5-utils").Mixed<typeof Editor, import("@ckeditor/ckeditor5-utils").Observable>;
12
- export declare class CommentEditor extends /* #__PURE__ -- @preserve */ CommentEditor_base {
13
- static defaultPlugins: EditorConfig['plugins'];
14
- /**
15
- * The input placeholder.
16
- *
17
- * @observable
18
- */
19
- placeholder: string;
20
- placeholderElement: PlaceholderableViewElement | undefined;
21
- ui: CommentEditorUI;
22
- /**
23
- * @inheritDoc
24
- */
25
- constructor(config?: EditorConfig);
26
- create(): Promise<unknown>;
27
- /**
28
- * @inheritDoc
29
- */
30
- destroy(): Promise<void>;
31
- /**
32
- * Place the selection at the end of the editor data and focus the editable.
33
- */
34
- focus(): void;
6
+ * @module comments/comments/ui/commenteditor/commenteditor
7
+ */
8
+ import { Editor, type EditorConfig } from "@ckeditor/ckeditor5-core";
9
+ import { CommentEditorUI } from "./commenteditorui.js";
10
+ import { type ObservableMixinConstructor } from "@ckeditor/ckeditor5-utils";
11
+ import { type PlaceholderableViewElement } from "@ckeditor/ckeditor5-engine";
12
+ declare const CommentEditorBase: ObservableMixinConstructor<typeof Editor>;
13
+ export declare class CommentEditor extends CommentEditorBase {
14
+ static defaultPlugins: EditorConfig["plugins"];
15
+ /**
16
+ * The input placeholder.
17
+ *
18
+ * @observable
19
+ */
20
+ placeholder: string;
21
+ placeholderElement: PlaceholderableViewElement | undefined;
22
+ ui: CommentEditorUI;
23
+ /**
24
+ * @inheritDoc
25
+ */
26
+ constructor(config?: EditorConfig);
27
+ create(): Promise<unknown>;
28
+ /**
29
+ * @inheritDoc
30
+ */
31
+ override destroy(): Promise<void>;
32
+ /**
33
+ * Place the selection at the end of the editor data and focus the editable.
34
+ */
35
+ override focus(): void;
35
36
  }
36
37
  export {};
@@ -1,31 +1,31 @@
1
1
  /**
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
- */
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
- * @module comments/comments/ui/commenteditor/commenteditorui
7
- */
8
- import { EditorUI } from '@ckeditor/ckeditor5-ui';
9
- import type { Editor } from '@ckeditor/ckeditor5-core';
10
- import { CommentEditorUIView } from './commenteditoruiview.js';
6
+ * @module comments/comments/ui/commenteditor/commenteditorui
7
+ */
8
+ import { EditorUI } from "@ckeditor/ckeditor5-ui";
9
+ import type { Editor } from "@ckeditor/ckeditor5-core";
10
+ import { CommentEditorUIView } from "./commenteditoruiview.js";
11
11
  export declare class CommentEditorUI extends EditorUI {
12
- /**
13
- * The main (top–most) view of the editor UI.
14
- */
15
- readonly view: CommentEditorUIView;
16
- /**
17
- * Creates an instance of the classic editor UI class.
18
- *
19
- * @param editor The editor instance.
20
- */
21
- constructor(editor: Editor);
22
- /**
23
- * @inheritDoc
24
- */
25
- get element(): HTMLElement | null;
26
- init(): void;
27
- /**
28
- * @inheritDoc
29
- */
30
- destroy(): void;
12
+ /**
13
+ * The main (top–most) view of the editor UI.
14
+ */
15
+ readonly view: CommentEditorUIView;
16
+ /**
17
+ * Creates an instance of the classic editor UI class.
18
+ *
19
+ * @param editor The editor instance.
20
+ */
21
+ constructor(editor: Editor);
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ override get element(): HTMLElement | null;
26
+ init(): void;
27
+ /**
28
+ * @inheritDoc
29
+ */
30
+ override destroy(): void;
31
31
  }
@@ -1,36 +1,36 @@
1
1
  /**
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
- */
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
- * @module comments/comments/ui/commenteditor/commenteditoruiview
7
- */
8
- import { InlineEditableUIView, EditorUIView, type ViewCollection } from '@ckeditor/ckeditor5-ui';
9
- import { type Locale } from '@ckeditor/ckeditor5-utils';
10
- import type { EditingView } from '@ckeditor/ckeditor5-engine';
6
+ * @module comments/comments/ui/commenteditor/commenteditoruiview
7
+ */
8
+ import { InlineEditableUIView, EditorUIView, type ViewCollection } from "@ckeditor/ckeditor5-ui";
9
+ import { type Locale } from "@ckeditor/ckeditor5-utils";
10
+ import type { EditingView } from "@ckeditor/ckeditor5-engine";
11
11
  export declare class CommentEditorUIView extends EditorUIView {
12
- /**
13
- * Collection of the child views located in the main (`.ck-editor__main`)
14
- * area of the UI.
15
- */
16
- readonly main: ViewCollection;
17
- /**
18
- * Editable UI view.
19
- */
20
- editable: InlineEditableUIView;
21
- /**
22
- * Creates an instance of the comments editor UI view.
23
- *
24
- * @param locale The locale instance.
25
- * @param editingView The editing view instance this view is related to.
26
- */
27
- constructor(locale: Locale, editingView: EditingView);
28
- /**
29
- * @inheritDoc
30
- */
31
- render(): void;
32
- /**
33
- * Focusable interface required by a FocusCycler.
34
- */
35
- focus(): void;
12
+ /**
13
+ * Collection of the child views located in the main (`.ck-editor__main`)
14
+ * area of the UI.
15
+ */
16
+ readonly main: ViewCollection;
17
+ /**
18
+ * Editable UI view.
19
+ */
20
+ editable: InlineEditableUIView;
21
+ /**
22
+ * Creates an instance of the comments editor UI view.
23
+ *
24
+ * @param locale The locale instance.
25
+ * @param editingView The editing view instance this view is related to.
26
+ */
27
+ constructor(locale: Locale, editingView: EditingView);
28
+ /**
29
+ * @inheritDoc
30
+ */
31
+ override render(): void;
32
+ /**
33
+ * Focusable interface required by a FocusCycler.
34
+ */
35
+ focus(): void;
36
36
  }
@@ -1,64 +1,66 @@
1
1
  /**
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 { CommentThread } from '../commentsrepository.js';
6
- import type { BaseCommentThreadView } from './view/basecommentthreadview.js';
7
- declare const CommentThreadController_base: {
8
- new (): import("@ckeditor/ckeditor5-utils").Observable;
9
- prototype: import("@ckeditor/ckeditor5-utils").Observable;
10
- };
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
+ */
11
5
  /**
12
- * Controller for a comment thread.
13
- *
14
- * It takes a comment thread view, listens to events fired by that view and based on them performs actions on a comment thread model.
15
- */
16
- export declare class CommentThreadController extends /* #__PURE__ -- @preserve */ CommentThreadController_base {
17
- model: CommentThread;
18
- view: BaseCommentThreadView;
19
- /**
20
- * @param model Comment thread model.
21
- * @param view Comment thread view.
22
- */
23
- constructor(model: CommentThread, view: BaseCommentThreadView);
24
- /**
25
- * Submits the comment thread.
26
- */
27
- submit(): void;
28
- /**
29
- * Removes the comment thread.
30
- */
31
- remove(): void;
32
- /**
33
- * Resolves the comment thread.
34
- */
35
- resolve(): void;
36
- /**
37
- * Reopens the comment thread.
38
- */
39
- reopen(): void;
40
- /**
41
- * Adds a comment to the comment thread.
42
- *
43
- * @param commentContent Comment content.
44
- */
45
- addComment(commentContent: string): void;
46
- /**
47
- * Updates a comment that belongs to the comment thread.
48
- *
49
- * @param commentId Id of the comment to update.
50
- * @param commentContent Updated comment content.
51
- */
52
- updateComment(commentId: string, commentContent: string): void;
53
- /**
54
- * Removes a comment from the comment thread.
55
- *
56
- * @param commentId Id of the comment to remove.
57
- */
58
- removeComment(commentId: string): void;
59
- /**
60
- * Destroys `CommentThreadController` instance.
61
- */
62
- destroy(): void;
6
+ * @module comments/comments/ui/commentthreadcontroller
7
+ * @publicApi
8
+ */
9
+ import { type ObservableMixinConstructor } from "@ckeditor/ckeditor5-utils";
10
+ import type { CommentThread } from "../commentsrepository.js";
11
+ import type { BaseCommentThreadView } from "./view/basecommentthreadview.js";
12
+ declare const _CommentThreadControllerBase: ObservableMixinConstructor;
13
+ /**
14
+ * Controller for a comment thread.
15
+ *
16
+ * It takes a comment thread view, listens to events fired by that view and based on them performs actions on a comment thread model.
17
+ */
18
+ export declare class CommentThreadController extends _CommentThreadControllerBase {
19
+ model: CommentThread;
20
+ view: BaseCommentThreadView;
21
+ /**
22
+ * @param model Comment thread model.
23
+ * @param view Comment thread view.
24
+ */
25
+ constructor(model: CommentThread, view: BaseCommentThreadView);
26
+ /**
27
+ * Submits the comment thread.
28
+ */
29
+ submit(): void;
30
+ /**
31
+ * Removes the comment thread.
32
+ */
33
+ remove(): void;
34
+ /**
35
+ * Resolves the comment thread.
36
+ */
37
+ resolve(): void;
38
+ /**
39
+ * Reopens the comment thread.
40
+ */
41
+ reopen(): void;
42
+ /**
43
+ * Adds a comment to the comment thread.
44
+ *
45
+ * @param commentContent Comment content.
46
+ */
47
+ addComment(commentContent: string): void;
48
+ /**
49
+ * Updates a comment that belongs to the comment thread.
50
+ *
51
+ * @param commentId Id of the comment to update.
52
+ * @param commentContent Updated comment content.
53
+ */
54
+ updateComment(commentId: string, commentContent: string): void;
55
+ /**
56
+ * Removes a comment from the comment thread.
57
+ *
58
+ * @param commentId Id of the comment to remove.
59
+ */
60
+ removeComment(commentId: string): void;
61
+ /**
62
+ * Destroys `CommentThreadController` instance.
63
+ */
64
+ destroy(): void;
63
65
  }
64
66
  export {};