@ckeditor/ckeditor5-collaboration-core 48.2.0 → 48.3.0-alpha.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.
Files changed (201) hide show
  1. package/dist/augmentation.d.ts +28 -28
  2. package/dist/collaborationhistory.d.ts +16 -16
  3. package/dist/collaborationoperation.d.ts +16 -16
  4. package/dist/config.d.ts +139 -139
  5. package/dist/documentcompare.d.ts +115 -115
  6. package/dist/index-editor.css +80 -0
  7. package/dist/index.css +80 -0
  8. package/dist/index.d.ts +27 -26
  9. package/dist/index.js +1 -1
  10. package/dist/legacyerrors.d.ts +0 -4
  11. package/dist/permissions.d.ts +49 -49
  12. package/dist/suggestions/integrations/alignment.d.ts +10 -10
  13. package/dist/suggestions/integrations/basicstyles.d.ts +10 -10
  14. package/dist/suggestions/integrations/bookmark.d.ts +10 -10
  15. package/dist/suggestions/integrations/font.d.ts +10 -10
  16. package/dist/suggestions/integrations/footnotes.d.ts +10 -10
  17. package/dist/suggestions/integrations/generalhtmlsupport.d.ts +20 -20
  18. package/dist/suggestions/integrations/highlight.d.ts +10 -10
  19. package/dist/suggestions/integrations/horizontalline.d.ts +10 -10
  20. package/dist/suggestions/integrations/htmlembed.d.ts +10 -10
  21. package/dist/suggestions/integrations/image.d.ts +10 -10
  22. package/dist/suggestions/integrations/indent.d.ts +10 -10
  23. package/dist/suggestions/integrations/lineheight.d.ts +10 -10
  24. package/dist/suggestions/integrations/link.d.ts +10 -10
  25. package/dist/suggestions/integrations/list.d.ts +10 -10
  26. package/dist/suggestions/integrations/listproperties.d.ts +10 -10
  27. package/dist/suggestions/integrations/mediaembed.d.ts +10 -10
  28. package/dist/suggestions/integrations/multilevellist.d.ts +10 -10
  29. package/dist/suggestions/integrations/shiftenter.d.ts +10 -10
  30. package/dist/suggestions/integrations/table.d.ts +10 -10
  31. package/dist/suggestions/integrations/tablecellproperties.d.ts +10 -10
  32. package/dist/suggestions/integrations/tablefooters.d.ts +10 -10
  33. package/dist/suggestions/integrations/tableheadings.d.ts +10 -10
  34. package/dist/suggestions/integrations/tablelayout.d.ts +10 -10
  35. package/dist/suggestions/integrations/tableproperties.d.ts +10 -10
  36. package/dist/suggestions/integrations/uploadcare.d.ts +10 -10
  37. package/dist/suggestions/suggestionsconversion.d.ts +79 -79
  38. package/dist/suggestions/view/ariadescriptionview.d.ts +18 -18
  39. package/dist/suggestions/view/latefocusbuttonview.d.ts +29 -29
  40. package/dist/suggestionstyles.d.ts +17 -16
  41. package/dist/translations/af.js +1 -1
  42. package/dist/translations/af.umd.js +1 -1
  43. package/dist/translations/ar.js +1 -1
  44. package/dist/translations/ar.umd.js +1 -1
  45. package/dist/translations/ast.js +1 -1
  46. package/dist/translations/ast.umd.js +1 -1
  47. package/dist/translations/az.js +1 -1
  48. package/dist/translations/az.umd.js +1 -1
  49. package/dist/translations/be.js +1 -1
  50. package/dist/translations/be.umd.js +1 -1
  51. package/dist/translations/bg.js +1 -1
  52. package/dist/translations/bg.umd.js +1 -1
  53. package/dist/translations/bn.js +1 -1
  54. package/dist/translations/bn.umd.js +1 -1
  55. package/dist/translations/bs.js +1 -1
  56. package/dist/translations/bs.umd.js +1 -1
  57. package/dist/translations/ca.js +1 -1
  58. package/dist/translations/ca.umd.js +1 -1
  59. package/dist/translations/cs.js +1 -1
  60. package/dist/translations/cs.umd.js +1 -1
  61. package/dist/translations/da.js +1 -1
  62. package/dist/translations/da.umd.js +1 -1
  63. package/dist/translations/de-ch.js +1 -1
  64. package/dist/translations/de-ch.umd.js +1 -1
  65. package/dist/translations/de.js +1 -1
  66. package/dist/translations/de.umd.js +1 -1
  67. package/dist/translations/el.js +1 -1
  68. package/dist/translations/el.umd.js +1 -1
  69. package/dist/translations/en-au.js +1 -1
  70. package/dist/translations/en-au.umd.js +1 -1
  71. package/dist/translations/en-gb.js +1 -1
  72. package/dist/translations/en-gb.umd.js +1 -1
  73. package/dist/translations/en.js +1 -1
  74. package/dist/translations/en.umd.js +1 -1
  75. package/dist/translations/eo.js +1 -1
  76. package/dist/translations/eo.umd.js +1 -1
  77. package/dist/translations/es-co.js +1 -1
  78. package/dist/translations/es-co.umd.js +1 -1
  79. package/dist/translations/es.js +1 -1
  80. package/dist/translations/es.umd.js +1 -1
  81. package/dist/translations/et.js +1 -1
  82. package/dist/translations/et.umd.js +1 -1
  83. package/dist/translations/eu.js +1 -1
  84. package/dist/translations/eu.umd.js +1 -1
  85. package/dist/translations/fa.js +1 -1
  86. package/dist/translations/fa.umd.js +1 -1
  87. package/dist/translations/fi.js +1 -1
  88. package/dist/translations/fi.umd.js +1 -1
  89. package/dist/translations/fr.js +1 -1
  90. package/dist/translations/fr.umd.js +1 -1
  91. package/dist/translations/gl.js +1 -1
  92. package/dist/translations/gl.umd.js +1 -1
  93. package/dist/translations/gu.js +1 -1
  94. package/dist/translations/gu.umd.js +1 -1
  95. package/dist/translations/he.js +1 -1
  96. package/dist/translations/he.umd.js +1 -1
  97. package/dist/translations/hi.js +1 -1
  98. package/dist/translations/hi.umd.js +1 -1
  99. package/dist/translations/hr.js +1 -1
  100. package/dist/translations/hr.umd.js +1 -1
  101. package/dist/translations/hu.js +1 -1
  102. package/dist/translations/hu.umd.js +1 -1
  103. package/dist/translations/hy.js +1 -1
  104. package/dist/translations/hy.umd.js +1 -1
  105. package/dist/translations/id.js +1 -1
  106. package/dist/translations/id.umd.js +1 -1
  107. package/dist/translations/it.js +1 -1
  108. package/dist/translations/it.umd.js +1 -1
  109. package/dist/translations/ja.js +1 -1
  110. package/dist/translations/ja.umd.js +1 -1
  111. package/dist/translations/jv.js +1 -1
  112. package/dist/translations/jv.umd.js +1 -1
  113. package/dist/translations/kk.js +1 -1
  114. package/dist/translations/kk.umd.js +1 -1
  115. package/dist/translations/km.js +1 -1
  116. package/dist/translations/km.umd.js +1 -1
  117. package/dist/translations/kn.js +1 -1
  118. package/dist/translations/kn.umd.js +1 -1
  119. package/dist/translations/ko.js +1 -1
  120. package/dist/translations/ko.umd.js +1 -1
  121. package/dist/translations/ku.js +1 -1
  122. package/dist/translations/ku.umd.js +1 -1
  123. package/dist/translations/lt.js +1 -1
  124. package/dist/translations/lt.umd.js +1 -1
  125. package/dist/translations/lv.js +1 -1
  126. package/dist/translations/lv.umd.js +1 -1
  127. package/dist/translations/ms.js +1 -1
  128. package/dist/translations/ms.umd.js +1 -1
  129. package/dist/translations/nb.js +1 -1
  130. package/dist/translations/nb.umd.js +1 -1
  131. package/dist/translations/ne.js +1 -1
  132. package/dist/translations/ne.umd.js +1 -1
  133. package/dist/translations/nl.js +1 -1
  134. package/dist/translations/nl.umd.js +1 -1
  135. package/dist/translations/no.js +1 -1
  136. package/dist/translations/no.umd.js +1 -1
  137. package/dist/translations/oc.js +1 -1
  138. package/dist/translations/oc.umd.js +1 -1
  139. package/dist/translations/pl.js +1 -1
  140. package/dist/translations/pl.umd.js +1 -1
  141. package/dist/translations/pt-br.js +1 -1
  142. package/dist/translations/pt-br.umd.js +1 -1
  143. package/dist/translations/pt.js +1 -1
  144. package/dist/translations/pt.umd.js +1 -1
  145. package/dist/translations/ro.js +1 -1
  146. package/dist/translations/ro.umd.js +1 -1
  147. package/dist/translations/ru.js +1 -1
  148. package/dist/translations/ru.umd.js +1 -1
  149. package/dist/translations/si.js +1 -1
  150. package/dist/translations/si.umd.js +1 -1
  151. package/dist/translations/sk.js +1 -1
  152. package/dist/translations/sk.umd.js +1 -1
  153. package/dist/translations/sl.js +1 -1
  154. package/dist/translations/sl.umd.js +1 -1
  155. package/dist/translations/sq.js +1 -1
  156. package/dist/translations/sq.umd.js +1 -1
  157. package/dist/translations/sr-latn.js +1 -1
  158. package/dist/translations/sr-latn.umd.js +1 -1
  159. package/dist/translations/sr.js +1 -1
  160. package/dist/translations/sr.umd.js +1 -1
  161. package/dist/translations/sv.js +1 -1
  162. package/dist/translations/sv.umd.js +1 -1
  163. package/dist/translations/th.js +1 -1
  164. package/dist/translations/th.umd.js +1 -1
  165. package/dist/translations/ti.js +1 -1
  166. package/dist/translations/ti.umd.js +1 -1
  167. package/dist/translations/tk.js +1 -1
  168. package/dist/translations/tk.umd.js +1 -1
  169. package/dist/translations/tr.js +1 -1
  170. package/dist/translations/tr.umd.js +1 -1
  171. package/dist/translations/tt.js +1 -1
  172. package/dist/translations/tt.umd.js +1 -1
  173. package/dist/translations/ug.js +1 -1
  174. package/dist/translations/ug.umd.js +1 -1
  175. package/dist/translations/uk.js +1 -1
  176. package/dist/translations/uk.umd.js +1 -1
  177. package/dist/translations/ur.js +1 -1
  178. package/dist/translations/ur.umd.js +1 -1
  179. package/dist/translations/uz.js +1 -1
  180. package/dist/translations/uz.umd.js +1 -1
  181. package/dist/translations/vi.js +1 -1
  182. package/dist/translations/vi.umd.js +1 -1
  183. package/dist/translations/zh-cn.js +1 -1
  184. package/dist/translations/zh-cn.umd.js +1 -1
  185. package/dist/translations/zh.js +1 -1
  186. package/dist/translations/zh.umd.js +1 -1
  187. package/dist/ui/pillview.d.ts +103 -0
  188. package/dist/users/view/userview.d.ts +12 -12
  189. package/dist/users.d.ts +173 -173
  190. package/dist/utils/common-translations.d.ts +6 -6
  191. package/dist/utils/confirmmixin.d.ts +27 -17
  192. package/dist/utils/confirmview.d.ts +20 -20
  193. package/dist/utils/getdatetimeformatter.d.ts +31 -31
  194. package/dist/utils/getmarkerdomelement.d.ts +17 -17
  195. package/dist/utils/hashobject.d.ts +5 -5
  196. package/dist/utils/sanitizeeditorconfig.d.ts +11 -11
  197. package/dist/utils/setupthreadkeyboardnavigation.d.ts +31 -31
  198. package/dist/utils/suggestionmarkerutils.d.ts +13 -13
  199. package/dist/utils/surroundingmarkersdetector.d.ts +11 -11
  200. package/dist/utils/trim-html.d.ts +14 -14
  201. package/package.json +12 -12
package/dist/users.d.ts CHANGED
@@ -1,186 +1,186 @@
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 collaboration-core/users
7
- * @publicApi
8
- */
9
- import { ContextPlugin, type Context, type Editor } from '@ckeditor/ckeditor5-core';
10
- import { Collection } from '@ckeditor/ckeditor5-utils';
11
- import { Permissions } from './permissions.js';
12
- import '../theme/usercolors.css';
6
+ * @module collaboration-core/users
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 { Permissions } from "./permissions.js";
12
+ import "../theme/usercolors.css";
13
13
  /**
14
- * The `Users` plugin provides the basic interface for setting and getting users involved in the document editing process.
15
- */
14
+ * The `Users` plugin provides the basic interface for setting and getting users involved in the document editing process.
15
+ */
16
16
  export declare class Users extends ContextPlugin {
17
- /**
18
- * Holds all {@link module:collaboration-core/users~User users} added to the editor.
19
- *
20
- * Note, that the {@link module:collaboration-core/users~User#isAnonymous anonymous user} is always present in the editor.
21
- * You may want to filter it out when processing the users lists.
22
- *
23
- * ```ts
24
- * for ( const user of editor.plugins.get( 'Users' ).users ) {
25
- * if ( !user.isAnonymous ) {
26
- * console.log( user.name );
27
- * }
28
- * }
29
- * ```
30
- *
31
- * Use {@link #addUser} to add a new user.
32
- */
33
- readonly users: Collection<User>;
34
- /**
35
- * @inheritDoc
36
- */
37
- static get pluginName(): "Users";
38
- /**
39
- * @inheritDoc
40
- */
41
- static get isOfficialPlugin(): true;
42
- /**
43
- * @inheritDoc
44
- */
45
- static get isPremiumPlugin(): true;
46
- /**
47
- * @inheritDoc
48
- */
49
- static get requires(): readonly [typeof Permissions];
50
- /**
51
- * @inheritDoc
52
- */
53
- constructor(context: Context | Editor);
54
- /**
55
- * @inheritDoc
56
- */
57
- init(): void;
58
- /**
59
- * A reference to the local user or `null` if it has not been set.
60
- */
61
- get me(): User | null;
62
- /**
63
- * Adds a new user to the list of users.
64
- */
65
- addUser({ id, name, ...additionalData }: Partial<CollaborationUserData>): User;
66
- /**
67
- * Returns the user with a given ID.
68
- */
69
- getUser(id: string): User | null;
70
- /**
71
- * Sets an {@link module:collaboration-core/users~User#isAnonymous anonymous user} as {@link #me the local user}.
72
- *
73
- * The local user ID will be set to the value of `config.users.anonymousUserId` property. All actions performed by the local user
74
- * will be contributed to the anonymous user.
75
- */
76
- useAnonymousUser(): void;
77
- /**
78
- * Sets the user with the given ID as the local user ({@link #me}).
79
- *
80
- * The local user can be only set once (this includes setting anonymous as the local user).
81
- */
82
- defineMe(userId: string): void;
83
- /**
84
- * Returns the author of the operation. It returns {@link #me} by default if it is not overwritten.
85
- */
86
- getOperationAuthor(): User | null;
17
+ /**
18
+ * Holds all {@link module:collaboration-core/users~User users} added to the editor.
19
+ *
20
+ * Note, that the {@link module:collaboration-core/users~User#isAnonymous anonymous user} is always present in the editor.
21
+ * You may want to filter it out when processing the users lists.
22
+ *
23
+ * ```ts
24
+ * for ( const user of editor.plugins.get( 'Users' ).users ) {
25
+ * if ( !user.isAnonymous ) {
26
+ * console.log( user.name );
27
+ * }
28
+ * }
29
+ * ```
30
+ *
31
+ * Use {@link #addUser} to add a new user.
32
+ */
33
+ readonly users: Collection<User>;
34
+ /**
35
+ * @inheritDoc
36
+ */
37
+ static get pluginName(): "Users";
38
+ /**
39
+ * @inheritDoc
40
+ */
41
+ static override get isOfficialPlugin(): true;
42
+ /**
43
+ * @inheritDoc
44
+ */
45
+ static override get isPremiumPlugin(): true;
46
+ /**
47
+ * @inheritDoc
48
+ */
49
+ static get requires(): PluginDependenciesOf<[Permissions]>;
50
+ /**
51
+ * @inheritDoc
52
+ */
53
+ constructor(context: Context | Editor);
54
+ /**
55
+ * @inheritDoc
56
+ */
57
+ init(): void;
58
+ /**
59
+ * A reference to the local user or `null` if it has not been set.
60
+ */
61
+ get me(): User | null;
62
+ /**
63
+ * Adds a new user to the list of users.
64
+ */
65
+ addUser({ id, name, ...additionalData }: Partial<CollaborationUserData>): User;
66
+ /**
67
+ * Returns the user with a given ID.
68
+ */
69
+ getUser(id: string): User | null;
70
+ /**
71
+ * Sets an {@link module:collaboration-core/users~User#isAnonymous anonymous user} as {@link #me the local user}.
72
+ *
73
+ * The local user ID will be set to the value of `config.users.anonymousUserId` property. All actions performed by the local user
74
+ * will be contributed to the anonymous user.
75
+ */
76
+ useAnonymousUser(): void;
77
+ /**
78
+ * Sets the user with the given ID as the local user ({@link #me}).
79
+ *
80
+ * The local user can be only set once (this includes setting anonymous as the local user).
81
+ */
82
+ defineMe(userId: string): void;
83
+ /**
84
+ * Returns the author of the operation. It returns {@link #me} by default if it is not overwritten.
85
+ */
86
+ getOperationAuthor(): User | null;
87
87
  }
88
88
  /**
89
- * The representation of a single user that is involved in document editing.
90
- */
89
+ * The representation of a single user that is involved in document editing.
90
+ */
91
91
  export declare class User {
92
- /**
93
- * The ID of the user.
94
- */
95
- id: string;
96
- /**
97
- * CSS colors classes object for the user.
98
- */
99
- color: CollaborationUserColor;
100
- /**
101
- * The name of the user.
102
- */
103
- name: string;
104
- /**
105
- * The initials of the user.
106
- *
107
- * By default, the initials are composed of the user name's first and last words ignoring non-characters parts:
108
- *
109
- * * for `Joe Doe`, the initials are `JD`,
110
- * * for `Joe Doe (admin)`, the initials are `JD`,
111
- * * for `Anonymous` the initials are `A`,
112
- * * for `Katie John-Newman` the initials are `KJ`,
113
- * * for `Adam Daniel Smith` the initials are `AS`.
114
- *
115
- * The initials can be configured by
116
- * {@link module:collaboration-core/config~CollaborationUsersConfig#getInitialsCallback `UserConfig#getInitialsCallback`}.
117
- */
118
- readonly initials: string;
119
- /**
120
- * The URL pointing to the image with the avatar of the user.
121
- *
122
- * If avatar is not set, default avatar is used.
123
- */
124
- avatar: string | undefined;
125
- /**
126
- * @param data User data.
127
- * @param data.id The ID of the user.
128
- * @param data.color A helper object to generate CSS classes with the user color in the UI.
129
- * @param data.name The name of the user.
130
- * @param data.avatar The URL to the user avatar.
131
- * @param getInitialsCallback The custom callback configured via the editor configuration to calculate the initials.
132
- */
133
- constructor(data: CollaborationUserData, getInitialsCallback?: (name: string) => string);
134
- /**
135
- * Is `true` for the anonymous user, `false` otherwise.
136
- *
137
- * The anonymous user is used when there is no defined user for given resource.
138
- *
139
- * The situations when the anonymous user is used will depend on your application. For example, it can be used when the editor can be
140
- * used by "guest" users of your application, or when the original user's account was removed.
141
- */
142
- get isAnonymous(): boolean;
143
- /**
144
- * Is `true` for the {@link module:collaboration-core/users~Users#me local user}.
145
- */
146
- get isMe(): boolean;
92
+ /**
93
+ * The ID of the user.
94
+ */
95
+ id: string;
96
+ /**
97
+ * CSS colors classes object for the user.
98
+ */
99
+ color: CollaborationUserColor;
100
+ /**
101
+ * The name of the user.
102
+ */
103
+ name: string;
104
+ /**
105
+ * The initials of the user.
106
+ *
107
+ * By default, the initials are composed of the user name's first and last words ignoring non-characters parts:
108
+ *
109
+ * * for `Joe Doe`, the initials are `JD`,
110
+ * * for `Joe Doe (admin)`, the initials are `JD`,
111
+ * * for `Anonymous` the initials are `A`,
112
+ * * for `Katie John-Newman` the initials are `KJ`,
113
+ * * for `Adam Daniel Smith` the initials are `AS`.
114
+ *
115
+ * The initials can be configured by
116
+ * {@link module:collaboration-core/config~CollaborationUsersConfig#getInitialsCallback `UserConfig#getInitialsCallback`}.
117
+ */
118
+ readonly initials: string;
119
+ /**
120
+ * The URL pointing to the image with the avatar of the user.
121
+ *
122
+ * If avatar is not set, default avatar is used.
123
+ */
124
+ avatar: string | undefined;
125
+ /**
126
+ * @param data User data.
127
+ * @param data.id The ID of the user.
128
+ * @param data.color A helper object to generate CSS classes with the user color in the UI.
129
+ * @param data.name The name of the user.
130
+ * @param data.avatar The URL to the user avatar.
131
+ * @param getInitialsCallback The custom callback configured via the editor configuration to calculate the initials.
132
+ */
133
+ constructor(data: CollaborationUserData, getInitialsCallback?: (name: string) => string);
134
+ /**
135
+ * Is `true` for the anonymous user, `false` otherwise.
136
+ *
137
+ * The anonymous user is used when there is no defined user for given resource.
138
+ *
139
+ * The situations when the anonymous user is used will depend on your application. For example, it can be used when the editor can be
140
+ * used by "guest" users of your application, or when the original user's account was removed.
141
+ */
142
+ get isAnonymous(): boolean;
143
+ /**
144
+ * Is `true` for the {@link module:collaboration-core/users~Users#me local user}.
145
+ */
146
+ get isMe(): boolean;
147
147
  }
148
148
  /**
149
- * The color object used to generate specified CSS classes with an individual color number assigned to the user.
150
- */
149
+ * The color object used to generate specified CSS classes with an individual color number assigned to the user.
150
+ */
151
151
  export declare class CollaborationUserColor {
152
- constructor(colorId: number);
153
- /**
154
- * Color's unique id. Used as a part of the generated class names.
155
- *
156
- * You can use this value to implement more color-related classes.
157
- */
158
- get id(): number;
159
- /**
160
- * Returns CSS class for user avatar background color.
161
- */
162
- getBackgroundColorClass(): string;
163
- /**
164
- * Returns CSS class for user selection highlight (the selected range).
165
- */
166
- getSelectionClass(): string;
167
- /**
168
- * Returns CSS class for user caret position element (the pipe).
169
- */
170
- getMarkerClass(): string;
171
- /**
172
- * Returns a CSS variable reference to the user's color.
173
- */
174
- getColorVariable(): string;
175
- /**
176
- * Returns a CSS variable reference to the user's transparent color.
177
- */
178
- getColorAlphaVariable(): string;
152
+ constructor(colorId: number);
153
+ /**
154
+ * Color's unique id. Used as a part of the generated class names.
155
+ *
156
+ * You can use this value to implement more color-related classes.
157
+ */
158
+ get id(): number;
159
+ /**
160
+ * Returns CSS class for user avatar background color.
161
+ */
162
+ getBackgroundColorClass(): string;
163
+ /**
164
+ * Returns CSS class for user selection highlight (the selected range).
165
+ */
166
+ getSelectionClass(): string;
167
+ /**
168
+ * Returns CSS class for user caret position element (the pipe).
169
+ */
170
+ getMarkerClass(): string;
171
+ /**
172
+ * Returns a CSS variable reference to the user's color.
173
+ */
174
+ getColorVariable(): string;
175
+ /**
176
+ * Returns a CSS variable reference to the user's transparent color.
177
+ */
178
+ getColorAlphaVariable(): string;
179
179
  }
180
180
  export type CollaborationUserData = {
181
- id: string;
182
- color: CollaborationUserColor;
183
- name: string;
184
- avatar?: string;
185
- _isAnonymous?: boolean;
181
+ id: string;
182
+ color: CollaborationUserColor;
183
+ name: string;
184
+ avatar?: string;
185
+ _isAnonymous?: boolean;
186
186
  };
@@ -1,9 +1,9 @@
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 collaboration-core/utils/common-translations
7
- */
8
- import type { Locale } from '@ckeditor/ckeditor5-utils';
6
+ * @module collaboration-core/utils/common-translations
7
+ */
8
+ import type { Locale } from "@ckeditor/ckeditor5-utils";
9
9
  export declare function getTranslation(locale: Locale, id: string): string;
@@ -1,24 +1,34 @@
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 collaboration-core/utils/confirmmixin
7
- */
8
- import type { View } from '@ckeditor/ckeditor5-ui';
9
- import type { Locale, Mixed } from '@ckeditor/ckeditor5-utils';
6
+ * @module collaboration-core/utils/confirmmixin
7
+ */
8
+ import type { View } from "@ckeditor/ckeditor5-ui";
9
+ import type { Constructor, Locale, Mixed } from "@ckeditor/ckeditor5-utils";
10
10
  /**
11
- * Adds interface for showing confirmation view in the specific for `CommentThreadView` and `CommentView` structure
12
- * Confirm is always set to the `content` collection at the last position.
13
- */
14
- export declare function ConfirmMixin<Base extends new (...args: Array<any>) => View>(base: Base): Mixed<Base, ConfirmApi>;
11
+ * Constructor returned by {@link ~ConfirmMixin}. Use it to name a mixin base class before extending it.
12
+ *
13
+ * ```ts
14
+ * const MyConfirmBase: ConfirmMixinConstructor<typeof BaseClass> = ConfirmMixin( BaseClass );
15
+ *
16
+ * class MyConfirm extends MyConfirmBase {}
17
+ * ```
18
+ */
19
+ export type ConfirmMixinConstructor<Base extends Constructor<View>> = Mixed<Base, ConfirmApi>;
20
+ /**
21
+ * Adds interface for showing confirmation view in the specific for `CommentThreadView` and `CommentView` structure
22
+ * Confirm is always set to the `content` collection at the last position.
23
+ */
24
+ export declare function ConfirmMixin<Base extends Constructor<View>>(base: Base): ConfirmMixinConstructor<Base>;
15
25
  export interface ConfirmApi {
16
- isConfirm: boolean;
17
- locale: Locale;
18
- showConfirm(message: string, element: Element): Promise<unknown>;
19
- cancelConfirm(): void;
26
+ isConfirm: boolean;
27
+ locale: Locale;
28
+ showConfirm(message: string, element: Element): Promise<unknown>;
29
+ cancelConfirm(): void;
20
30
  }
21
31
  export type RemoveConfirmEvent = {
22
- name: 'removeConfirm';
23
- args: [];
32
+ name: "removeConfirm";
33
+ args: [];
24
34
  };
@@ -1,27 +1,27 @@
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 { View, type FocusableView } from '@ckeditor/ckeditor5-ui';
6
- import { type Locale } from '@ckeditor/ckeditor5-utils';
7
- import '../../theme/confirm.css';
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 { View, type FocusableView } from "@ckeditor/ckeditor5-ui";
6
+ import { type Locale } from "@ckeditor/ckeditor5-utils";
7
+ import "../../theme/confirm.css";
8
8
  export declare class ConfirmView extends View implements FocusableView {
9
- message: string;
10
- constructor(locale: Locale);
11
- /**
12
- * @inheritDoc
13
- */
14
- render(): void;
15
- /**
16
- * @inheritDoc
17
- */
18
- focus(): void;
9
+ message: string;
10
+ constructor(locale: Locale);
11
+ /**
12
+ * @inheritDoc
13
+ */
14
+ override render(): void;
15
+ /**
16
+ * @inheritDoc
17
+ */
18
+ focus(): void;
19
19
  }
20
20
  export type ConfirmViewCancelEvent = {
21
- name: 'cancel';
22
- args: [];
21
+ name: "cancel";
22
+ args: [];
23
23
  };
24
24
  export type ConfirmViewSubmitEvent = {
25
- name: 'submit';
26
- args: [];
25
+ name: "submit";
26
+ args: [];
27
27
  };
@@ -1,35 +1,35 @@
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 collaboration-core/utils/getdatetimeformatter
7
- * @publicApi
8
- */
9
- import type { LocaleConfig } from '../config.js';
10
- import { type Locale } from '@ckeditor/ckeditor5-utils';
6
+ * @module collaboration-core/utils/getdatetimeformatter
7
+ * @publicApi
8
+ */
9
+ import type { LocaleConfig } from "../config.js";
10
+ import { type Locale } from "@ckeditor/ckeditor5-utils";
11
11
  /**
12
- * Returns a function that formats the date to the set format.
13
- *
14
- * The default formatting can be changed by setting a custom formatting function to `config.locale.dateTimeFormat`.
15
- *
16
- * ```ts
17
- * import { DateTime } from 'luxon';
18
- *
19
- * ClassicEditor
20
- * .create( {
21
- * attachTo: document.querySelector( '#editor' ),
22
- * toolbar: {
23
- * items: [ 'bold', 'italic', '|', 'comment' ]
24
- * },
25
- * sidebar: {
26
- * container: document.querySelector( '#sidebar' )
27
- * },
28
- * locale: {
29
- * dateTimeFormat: date => DateTime.fromJSDate( date ).toFormat( 'dd/LL/yyyy' )
30
- * }
31
- * } )
32
- * .catch( error => console.error( error ) );
33
- * ```
34
- */
12
+ * Returns a function that formats the date to the set format.
13
+ *
14
+ * The default formatting can be changed by setting a custom formatting function to `config.locale.dateTimeFormat`.
15
+ *
16
+ * ```ts
17
+ * import { DateTime } from 'luxon';
18
+ *
19
+ * ClassicEditor
20
+ * .create( {
21
+ * attachTo: document.querySelector( '#editor' ),
22
+ * toolbar: {
23
+ * items: [ 'bold', 'italic', '|', 'comment' ]
24
+ * },
25
+ * sidebar: {
26
+ * container: document.querySelector( '#sidebar' )
27
+ * },
28
+ * locale: {
29
+ * dateTimeFormat: date => DateTime.fromJSDate( date ).toFormat( 'dd/LL/yyyy' )
30
+ * }
31
+ * } )
32
+ * .catch( error => console.error( error ) );
33
+ * ```
34
+ */
35
35
  export declare function getDateTimeFormatter(localeConfig?: LocaleConfig, locale?: Locale): (date: Date | string) => string;
@@ -1,22 +1,22 @@
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 { EditingController, Marker } from '@ckeditor/ckeditor5-engine';
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 { EditingController, Marker } from "@ckeditor/ckeditor5-engine";
6
6
  /**
7
- * Returns a first DOM element mapped with the marker.
8
- *
9
- * @param editing Editing controller instance.
10
- * @param marker Marker instance.
11
- */
7
+ * Returns a first DOM element mapped with the marker.
8
+ *
9
+ * @param editing Editing controller instance.
10
+ * @param marker Marker instance.
11
+ */
12
12
  export declare function getMarkerDomElement(editing: EditingController, marker: Marker): HTMLElement | null;
13
13
  /**
14
- * Returns all DOM elements mapped with all given markers. DOM elements are sorted by their client rects in top-most, left-most order.
15
- * Returns `null` if `markers` is empty or there are no DOM elements bound with the markers.
16
- *
17
- * Note, that markers should not intersect.
18
- *
19
- * @param editing Editing controller instance.
20
- * @param markers Markers instances.
21
- */
14
+ * Returns all DOM elements mapped with all given markers. DOM elements are sorted by their client rects in top-most, left-most order.
15
+ * Returns `null` if `markers` is empty or there are no DOM elements bound with the markers.
16
+ *
17
+ * Note, that markers should not intersect.
18
+ *
19
+ * @param editing Editing controller instance.
20
+ * @param markers Markers instances.
21
+ */
22
22
  export declare function getAllMarkersDomElementsSorted(editing: EditingController, markers: Array<Marker>): Array<HTMLElement> | null;
@@ -1,8 +1,8 @@
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 collaboration-core/utils/hashobject
7
- */
6
+ * @module collaboration-core/utils/hashobject
7
+ */
8
8
  export declare function hashObject(obj: Record<string, unknown>): string;
@@ -1,15 +1,15 @@
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 collaboration-core/utils/sanitizeeditorconfig
7
- */
8
- import type { Editor, EditorConfig } from '@ckeditor/ckeditor5-core';
6
+ * @module collaboration-core/utils/sanitizeeditorconfig
7
+ */
8
+ import type { Editor, EditorConfig } from "@ckeditor/ckeditor5-core";
9
9
  /**
10
- * A function that prepares config for internal editors removing all unnecessary plugins like RTC.
11
- *
12
- * @param editor The instance of the source editor.
13
- * @param extraBlackListedPlugins Additional list of plugins that should not be added to the config.
14
- */
10
+ * A function that prepares config for internal editors removing all unnecessary plugins like RTC.
11
+ *
12
+ * @param editor The instance of the source editor.
13
+ * @param extraBlackListedPlugins Additional list of plugins that should not be added to the config.
14
+ */
15
15
  export declare function sanitizeEditorConfig(editor: Editor, extraBlackListedPlugins?: Array<string>): EditorConfig;