@ckeditor/ckeditor5-comments 43.3.1-alpha.0 → 44.0.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 (205) hide show
  1. package/README.md +16 -6
  2. package/build/comments.js +1 -1
  3. package/dist/augmentation.d.ts +8 -1
  4. package/dist/comments/commentsarchiveui.d.ts +7 -0
  5. package/dist/comments/commentsediting.d.ts +4 -0
  6. package/dist/comments/commentsrepository.d.ts +1 -6
  7. package/dist/comments/commentsui.d.ts +4 -0
  8. package/dist/index-editor.css +37 -37
  9. package/dist/index.css +46 -46
  10. package/dist/index.d.ts +1 -0
  11. package/dist/index.js +9 -9
  12. package/dist/translations/af.js +1 -1
  13. package/dist/translations/af.umd.js +1 -1
  14. package/dist/translations/ar.js +1 -1
  15. package/dist/translations/ar.umd.js +1 -1
  16. package/dist/translations/ast.js +1 -1
  17. package/dist/translations/ast.umd.js +1 -1
  18. package/dist/translations/az.js +1 -1
  19. package/dist/translations/az.umd.js +1 -1
  20. package/dist/translations/bg.js +1 -1
  21. package/dist/translations/bg.umd.js +1 -1
  22. package/dist/translations/bn.js +1 -1
  23. package/dist/translations/bn.umd.js +1 -1
  24. package/dist/translations/bs.js +1 -1
  25. package/dist/translations/bs.umd.js +1 -1
  26. package/dist/translations/ca.js +1 -1
  27. package/dist/translations/ca.umd.js +1 -1
  28. package/dist/translations/cs.js +1 -1
  29. package/dist/translations/cs.umd.js +1 -1
  30. package/dist/translations/da.js +1 -1
  31. package/dist/translations/da.umd.js +1 -1
  32. package/dist/translations/de-ch.js +1 -1
  33. package/dist/translations/de-ch.umd.js +1 -1
  34. package/dist/translations/de.js +1 -1
  35. package/dist/translations/de.umd.js +1 -1
  36. package/dist/translations/el.js +1 -1
  37. package/dist/translations/el.umd.js +1 -1
  38. package/dist/translations/en-au.js +1 -1
  39. package/dist/translations/en-au.umd.js +1 -1
  40. package/dist/translations/en-gb.js +1 -1
  41. package/dist/translations/en-gb.umd.js +1 -1
  42. package/dist/translations/en.js +1 -1
  43. package/dist/translations/en.umd.js +1 -1
  44. package/dist/translations/eo.js +1 -1
  45. package/dist/translations/eo.umd.js +1 -1
  46. package/dist/translations/es-co.js +1 -1
  47. package/dist/translations/es-co.umd.js +1 -1
  48. package/dist/translations/es.js +1 -1
  49. package/dist/translations/es.umd.js +1 -1
  50. package/dist/translations/et.js +1 -1
  51. package/dist/translations/et.umd.js +1 -1
  52. package/dist/translations/eu.js +1 -1
  53. package/dist/translations/eu.umd.js +1 -1
  54. package/dist/translations/fa.js +1 -1
  55. package/dist/translations/fa.umd.js +1 -1
  56. package/dist/translations/fi.js +1 -1
  57. package/dist/translations/fi.umd.js +1 -1
  58. package/dist/translations/fr.js +1 -1
  59. package/dist/translations/fr.umd.js +1 -1
  60. package/dist/translations/gl.js +1 -1
  61. package/dist/translations/gl.umd.js +1 -1
  62. package/dist/translations/gu.js +1 -1
  63. package/dist/translations/gu.umd.js +1 -1
  64. package/dist/translations/he.js +1 -1
  65. package/dist/translations/he.umd.js +1 -1
  66. package/dist/translations/hi.js +1 -1
  67. package/dist/translations/hi.umd.js +1 -1
  68. package/dist/translations/hr.js +1 -1
  69. package/dist/translations/hr.umd.js +1 -1
  70. package/dist/translations/hu.js +1 -1
  71. package/dist/translations/hu.umd.js +1 -1
  72. package/dist/translations/hy.js +1 -1
  73. package/dist/translations/hy.umd.js +1 -1
  74. package/dist/translations/id.js +1 -1
  75. package/dist/translations/id.umd.js +1 -1
  76. package/dist/translations/it.js +1 -1
  77. package/dist/translations/it.umd.js +1 -1
  78. package/dist/translations/ja.js +1 -1
  79. package/dist/translations/ja.umd.js +1 -1
  80. package/dist/translations/jv.js +1 -1
  81. package/dist/translations/jv.umd.js +1 -1
  82. package/dist/translations/kk.js +1 -1
  83. package/dist/translations/kk.umd.js +1 -1
  84. package/dist/translations/km.js +1 -1
  85. package/dist/translations/km.umd.js +1 -1
  86. package/dist/translations/kn.js +1 -1
  87. package/dist/translations/kn.umd.js +1 -1
  88. package/dist/translations/ko.js +1 -1
  89. package/dist/translations/ko.umd.js +1 -1
  90. package/dist/translations/ku.js +1 -1
  91. package/dist/translations/ku.umd.js +1 -1
  92. package/dist/translations/lt.js +1 -1
  93. package/dist/translations/lt.umd.js +1 -1
  94. package/dist/translations/lv.js +1 -1
  95. package/dist/translations/lv.umd.js +1 -1
  96. package/dist/translations/ms.js +1 -1
  97. package/dist/translations/ms.umd.js +1 -1
  98. package/dist/translations/nb.js +1 -1
  99. package/dist/translations/nb.umd.js +1 -1
  100. package/dist/translations/ne.js +1 -1
  101. package/dist/translations/ne.umd.js +1 -1
  102. package/dist/translations/nl.js +1 -1
  103. package/dist/translations/nl.umd.js +1 -1
  104. package/dist/translations/no.js +1 -1
  105. package/dist/translations/no.umd.js +1 -1
  106. package/dist/translations/oc.js +1 -1
  107. package/dist/translations/oc.umd.js +1 -1
  108. package/dist/translations/pl.js +1 -1
  109. package/dist/translations/pl.umd.js +1 -1
  110. package/dist/translations/pt-br.js +1 -1
  111. package/dist/translations/pt-br.umd.js +1 -1
  112. package/dist/translations/pt.js +1 -1
  113. package/dist/translations/pt.umd.js +1 -1
  114. package/dist/translations/ro.js +1 -1
  115. package/dist/translations/ro.umd.js +1 -1
  116. package/dist/translations/ru.js +1 -1
  117. package/dist/translations/ru.umd.js +1 -1
  118. package/dist/translations/si.js +1 -1
  119. package/dist/translations/si.umd.js +1 -1
  120. package/dist/translations/sk.js +1 -1
  121. package/dist/translations/sk.umd.js +1 -1
  122. package/dist/translations/sl.js +1 -1
  123. package/dist/translations/sl.umd.js +1 -1
  124. package/dist/translations/sq.js +1 -1
  125. package/dist/translations/sq.umd.js +1 -1
  126. package/dist/translations/sr-latn.js +1 -1
  127. package/dist/translations/sr-latn.umd.js +1 -1
  128. package/dist/translations/sr.js +1 -1
  129. package/dist/translations/sr.umd.js +1 -1
  130. package/dist/translations/sv.js +1 -1
  131. package/dist/translations/sv.umd.js +1 -1
  132. package/dist/translations/th.js +1 -1
  133. package/dist/translations/th.umd.js +1 -1
  134. package/dist/translations/ti.js +1 -1
  135. package/dist/translations/ti.umd.js +1 -1
  136. package/dist/translations/tk.js +1 -1
  137. package/dist/translations/tk.umd.js +1 -1
  138. package/dist/translations/tr.js +1 -1
  139. package/dist/translations/tr.umd.js +1 -1
  140. package/dist/translations/tt.js +1 -1
  141. package/dist/translations/tt.umd.js +1 -1
  142. package/dist/translations/ug.js +1 -1
  143. package/dist/translations/ug.umd.js +1 -1
  144. package/dist/translations/uk.js +1 -1
  145. package/dist/translations/uk.umd.js +1 -1
  146. package/dist/translations/ur.js +1 -1
  147. package/dist/translations/ur.umd.js +1 -1
  148. package/dist/translations/uz.js +1 -1
  149. package/dist/translations/uz.umd.js +1 -1
  150. package/dist/translations/vi.js +1 -1
  151. package/dist/translations/vi.umd.js +1 -1
  152. package/dist/translations/zh-cn.js +1 -1
  153. package/dist/translations/zh-cn.umd.js +1 -1
  154. package/dist/translations/zh.js +1 -1
  155. package/dist/translations/zh.umd.js +1 -1
  156. package/package.json +15 -15
  157. package/src/annotations/annotation.js +2 -2
  158. package/src/annotations/annotationcollection.js +1 -1
  159. package/src/annotations/annotations.js +1 -1
  160. package/src/annotations/annotationsuis.js +1 -1
  161. package/src/annotations/editorannotations.js +1 -1
  162. package/src/annotations/inlineannotations.js +1 -1
  163. package/src/annotations/narrowsidebar.js +1 -1
  164. package/src/annotations/sidebar.js +1 -1
  165. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  166. package/src/annotations/view/annotationview.js +1 -1
  167. package/src/annotations/view/sidebaritemview.js +1 -1
  168. package/src/annotations/view/sidebarview.js +1 -1
  169. package/src/annotations/widesidebar.js +1 -1
  170. package/src/augmentation.d.ts +8 -1
  171. package/src/comments/addcommentthreadcommand.js +1 -1
  172. package/src/comments/commentsarchive.js +1 -1
  173. package/src/comments/commentsarchiveui.d.ts +7 -0
  174. package/src/comments/commentsarchiveui.js +1 -1
  175. package/src/comments/commentsediting.d.ts +4 -0
  176. package/src/comments/commentsediting.js +1 -1
  177. package/src/comments/commentsrepository.d.ts +1 -6
  178. package/src/comments/commentsrepository.js +3 -3
  179. package/src/comments/commentsui.d.ts +4 -0
  180. package/src/comments/commentsui.js +1 -1
  181. package/src/comments/integrations/clipboard.js +1 -1
  182. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  183. package/src/comments/integrations/importword.js +1 -1
  184. package/src/comments/ui/commenteditor/commenteditor.js +2 -2
  185. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  186. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  187. package/src/comments/ui/commentthreadcontroller.js +2 -2
  188. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  189. package/src/comments/ui/view/basecommentview.js +1 -1
  190. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  191. package/src/comments/ui/view/commentcontentview.js +1 -1
  192. package/src/comments/ui/view/commentinputview.js +1 -1
  193. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  194. package/src/comments/ui/view/commentslistview.js +1 -1
  195. package/src/comments/ui/view/commentthreadheadercontextview.js +1 -1
  196. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  197. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  198. package/src/comments/ui/view/commentthreadview.js +2 -2
  199. package/src/comments/ui/view/commentview.js +2 -2
  200. package/src/comments.js +1 -1
  201. package/src/commentsonly.js +1 -1
  202. package/src/index.d.ts +1 -0
  203. package/src/index.js +1 -1
  204. package/src/utils/common-translations.js +1 -1
  205. package/src/utils/createmutationobserver.js +1 -1
@@ -6,7 +6,7 @@
6
6
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
7
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
8
  */
9
- import type { CommentsConfig, SidebarConfig, Annotations, AnnotationsUIs, EditorAnnotations, CommentsRepository, CommentsUI } from './index.js';
9
+ import type { CommentsConfig, SidebarConfig, Annotations, AnnotationsUIs, EditorAnnotations, InlineAnnotations, WideSidebar, NarrowSidebar, Comments, CommentsRepository, CommentsUI, CommentsOnly, CommentsArchive, CommentsArchiveUI } from './index.js';
10
10
  declare module '@ckeditor/ckeditor5-core' {
11
11
  interface EditorConfig {
12
12
  /**
@@ -50,7 +50,14 @@ declare module '@ckeditor/ckeditor5-core' {
50
50
  [Annotations.pluginName]: Annotations;
51
51
  [AnnotationsUIs.pluginName]: AnnotationsUIs;
52
52
  [EditorAnnotations.pluginName]: EditorAnnotations;
53
+ [InlineAnnotations.pluginName]: InlineAnnotations;
54
+ [WideSidebar.pluginName]: WideSidebar;
55
+ [NarrowSidebar.pluginName]: NarrowSidebar;
56
+ [Comments.pluginName]: Comments;
53
57
  [CommentsRepository.pluginName]: CommentsRepository;
54
58
  [CommentsUI.pluginName]: CommentsUI;
59
+ [CommentsOnly.pluginName]: CommentsOnly;
60
+ [CommentsArchive.pluginName]: CommentsArchive;
61
+ [CommentsArchiveUI.pluginName]: CommentsArchiveUI;
55
62
  }
56
63
  }
@@ -21,7 +21,14 @@ import type AnnotationView from '../annotations/view/annotationview.js';
21
21
  * archived comment thread annotation views.
22
22
  */
23
23
  export default class CommentsArchiveUI extends Plugin {
24
+ /**
25
+ * The view that is rendered in the dialog.
26
+ */
24
27
  commentsArchiveView: CommentsArchiveView | undefined;
28
+ /**
29
+ * The view collection of {@link module:comments/annotations/view/annotationview~AnnotationView}
30
+ * that is displayed inside {@link #commentsArchiveView}.
31
+ */
25
32
  annotationViews: ViewCollection<AnnotationView>;
26
33
  /**
27
34
  * @inheritDoc
@@ -67,6 +67,10 @@ export default class CommentsEditing extends Plugin {
67
67
  * @inheritDoc
68
68
  */
69
69
  init(): void;
70
+ /**
71
+ * @inheritDoc
72
+ */
73
+ afterInit(): void;
70
74
  /**
71
75
  * @inheritDoc
72
76
  */
@@ -10,7 +10,7 @@
10
10
  * @module comments/comments/commentsrepository
11
11
  * @publicApi
12
12
  */
13
- import { Context, PendingActions, ContextPlugin, Editor } from 'ckeditor5/src/core.js';
13
+ import { PendingActions, ContextPlugin, Editor, type Context } from 'ckeditor5/src/core.js';
14
14
  import { Collection } from 'ckeditor5/src/utils.js';
15
15
  import { Users, type User } from 'ckeditor5-collaboration/src/collaboration-core.js';
16
16
  import CommentThreadController from './ui/commentthreadcontroller.js';
@@ -55,7 +55,6 @@ import type { default as BaseCommentThreadView } from './ui/view/basecommentthre
55
55
  * For more information about the comments adapter see {@link module:comments/comments/commentsrepository~CommentsAdapter}.
56
56
  */
57
57
  export default class CommentsRepository extends ContextPlugin {
58
- licenseKey: string;
59
58
  /**
60
59
  * The currently active comment thread.
61
60
  * An annotation with this thread will be marked as active.
@@ -87,10 +86,6 @@ export default class CommentsRepository extends ContextPlugin {
87
86
  * @inheritDoc
88
87
  */
89
88
  init(): void;
90
- /**
91
- * @inheritDoc
92
- */
93
- afterInit(): void;
94
89
  /**
95
90
  * An adapter object that should communicate with the data source to fetch or save the comments data.
96
91
  */
@@ -42,4 +42,8 @@ export default class CommentsUI extends Plugin {
42
42
  * @inheritDoc
43
43
  */
44
44
  init(): void;
45
+ /**
46
+ * @inheritDoc
47
+ */
48
+ destroy(): void;
45
49
  }
@@ -34,43 +34,6 @@
34
34
  background-color:var(--ck-color-comment-marker);
35
35
  }
36
36
 
37
- .ck .ck-comments-archive-dropdown.ck-dropdown__panel{
38
- z-index:var(--ck-z-panel);
39
- }
40
-
41
- .ck .ck-comments-archive{
42
- width:400px;
43
- max-height:450px;
44
- box-sizing:content-box;
45
- }
46
-
47
- .ck .ck-comments-archive .ck-annotation{
48
- animation:none;
49
- }
50
-
51
- .ck .ck-comments-archive .ck-comments-archive__header, .ck .ck-comments-archive .ck-comments-archive__content{
52
- overflow:auto;
53
- max-height:410px;
54
- padding:var(--ck-spacing-large);
55
- }
56
-
57
- .ck .ck-comments-archive .ck-comments-archive__header{
58
- max-height:40px;
59
- line-height:var(--ck-font-size-base);
60
- font-weight:bold;
61
- border-bottom:1px solid var(--ck-color-toolbar-border);
62
- }
63
-
64
- .ck .ck-comments-archive .ck-comments-archive__content .ck-annotation-wrapper:not(:last-child){
65
- margin-bottom:var(--ck-spacing-large);
66
- }
67
-
68
- .ck .ck-comments-archive .ck-comments-archive__info{
69
- text-align:center;
70
- font-style:italic;
71
- color:var(--ck-color-annotation-info);
72
- }
73
-
74
37
  :root{
75
38
  --ck-color-comment-background:hsl(210, 52%, 97%);
76
39
  --ck-color-comment-separator:hsl(210, 52%, 87%);
@@ -845,3 +808,40 @@
845
808
  opacity:1;
846
809
  }
847
810
  }
811
+
812
+ .ck .ck-comments-archive-dropdown.ck-dropdown__panel{
813
+ z-index:var(--ck-z-panel);
814
+ }
815
+
816
+ .ck .ck-comments-archive{
817
+ width:400px;
818
+ max-height:450px;
819
+ box-sizing:content-box;
820
+ }
821
+
822
+ .ck .ck-comments-archive .ck-annotation{
823
+ animation:none;
824
+ }
825
+
826
+ .ck .ck-comments-archive .ck-comments-archive__header, .ck .ck-comments-archive .ck-comments-archive__content{
827
+ overflow:auto;
828
+ max-height:410px;
829
+ padding:var(--ck-spacing-large);
830
+ }
831
+
832
+ .ck .ck-comments-archive .ck-comments-archive__header{
833
+ max-height:40px;
834
+ line-height:var(--ck-font-size-base);
835
+ font-weight:bold;
836
+ border-bottom:1px solid var(--ck-color-toolbar-border);
837
+ }
838
+
839
+ .ck .ck-comments-archive .ck-comments-archive__content .ck-annotation-wrapper:not(:last-child){
840
+ margin-bottom:var(--ck-spacing-large);
841
+ }
842
+
843
+ .ck .ck-comments-archive .ck-comments-archive__info{
844
+ text-align:center;
845
+ font-style:italic;
846
+ color:var(--ck-color-annotation-info);
847
+ }
package/dist/index.css CHANGED
@@ -60,52 +60,6 @@
60
60
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
61
61
  */
62
62
 
63
- .ck .ck-comments-archive-dropdown.ck-dropdown__panel {
64
- z-index: var( --ck-z-panel );
65
- }
66
-
67
- .ck .ck-comments-archive {
68
- width: 400px;
69
- max-height: 450px;
70
- box-sizing: content-box;
71
- }
72
-
73
- .ck .ck-comments-archive .ck-annotation {
74
- animation: none;
75
- }
76
-
77
- .ck .ck-comments-archive .ck-comments-archive__header, .ck .ck-comments-archive .ck-comments-archive__content {
78
- overflow: auto;
79
- max-height: 410px;
80
- padding: var( --ck-spacing-large );
81
- }
82
-
83
- .ck .ck-comments-archive .ck-comments-archive__header {
84
- max-height: 40px;
85
- line-height: var( --ck-font-size-base );
86
- font-weight: bold;
87
- border-bottom: 1px solid var( --ck-color-toolbar-border );
88
- }
89
-
90
- .ck .ck-comments-archive .ck-comments-archive__content .ck-annotation-wrapper:not(:last-child) {
91
- margin-bottom: var( --ck-spacing-large );
92
- }
93
-
94
- .ck .ck-comments-archive .ck-comments-archive__info {
95
- text-align: center;
96
- font-style: italic;
97
- color: var( --ck-color-annotation-info );
98
- }
99
-
100
- /*
101
- * What you're currently looking at is the source code of a legally protected, proprietary software.
102
- * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
103
- * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
104
- *
105
- * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
106
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
107
- */
108
-
109
63
  /*
110
64
  * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
111
65
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
@@ -1075,3 +1029,49 @@ See: ckeditor5-theme-lark/theme/ckeditor5-ui/components/editorui/editorui.css. *
1075
1029
  opacity: 1;
1076
1030
  }
1077
1031
  }
1032
+
1033
+ /*
1034
+ * What you're currently looking at is the source code of a legally protected, proprietary software.
1035
+ * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
1036
+ * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
1037
+ *
1038
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
1039
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
1040
+ */
1041
+
1042
+ .ck .ck-comments-archive-dropdown.ck-dropdown__panel {
1043
+ z-index: var( --ck-z-panel );
1044
+ }
1045
+
1046
+ .ck .ck-comments-archive {
1047
+ width: 400px;
1048
+ max-height: 450px;
1049
+ box-sizing: content-box;
1050
+ }
1051
+
1052
+ .ck .ck-comments-archive .ck-annotation {
1053
+ animation: none;
1054
+ }
1055
+
1056
+ .ck .ck-comments-archive .ck-comments-archive__header, .ck .ck-comments-archive .ck-comments-archive__content {
1057
+ overflow: auto;
1058
+ max-height: 410px;
1059
+ padding: var( --ck-spacing-large );
1060
+ }
1061
+
1062
+ .ck .ck-comments-archive .ck-comments-archive__header {
1063
+ max-height: 40px;
1064
+ line-height: var( --ck-font-size-base );
1065
+ font-weight: bold;
1066
+ border-bottom: 1px solid var( --ck-color-toolbar-border );
1067
+ }
1068
+
1069
+ .ck .ck-comments-archive .ck-comments-archive__content .ck-annotation-wrapper:not(:last-child) {
1070
+ margin-bottom: var( --ck-spacing-large );
1071
+ }
1072
+
1073
+ .ck .ck-comments-archive .ck-comments-archive__info {
1074
+ text-align: center;
1075
+ font-style: italic;
1076
+ color: var( --ck-color-annotation-info );
1077
+ }
package/dist/index.d.ts CHANGED
@@ -27,6 +27,7 @@ export { default as CommentView } from './comments/ui/view/commentview.js';
27
27
  export { default as CommentThreadView } from './comments/ui/view/commentthreadview.js';
28
28
  export { default as CommentThreadInputView } from './comments/ui/view/commentthreadinputview.js';
29
29
  export { default as CommentsArchive } from './comments/commentsarchive.js';
30
+ export { default as CommentsArchiveUI } from './comments/commentsarchiveui.js';
30
31
  export type { CommentsConfig, SidebarConfig, CommentsClipboardCopyConfig, CommentThreadConfig } from './config.js';
31
32
  export type { default as CommentsEditing } from './comments/commentsediting.js';
32
33
  import './augmentation.js';